Lines Matching full:dcb
40 /* Frame DMA DCB format
80 struct sparx5_rx_dcb_hw *dcb, in sparx5_fdma_rx_add_dcb() argument
87 struct sparx5_db_hw *db = &dcb->db[idx]; in sparx5_fdma_rx_add_dcb()
91 dcb->nextptr = FDMA_DCB_INVALID_DATA; in sparx5_fdma_rx_add_dcb()
92 dcb->info = FDMA_DCB_INFO_DATAL(FDMA_XTR_BUFFER_SIZE); in sparx5_fdma_rx_add_dcb()
94 rx->last_entry = dcb; in sparx5_fdma_rx_add_dcb()
98 struct sparx5_tx_dcb_hw *dcb, in sparx5_fdma_tx_add_dcb() argument
105 struct sparx5_db_hw *db = &dcb->db[idx]; in sparx5_fdma_tx_add_dcb()
109 dcb->nextptr = FDMA_DCB_INVALID_DATA; in sparx5_fdma_tx_add_dcb()
110 dcb->info = FDMA_DCB_INFO_DATAL(FDMA_XTR_BUFFER_SIZE); in sparx5_fdma_tx_add_dcb()
215 /* Check if the DCB is done */ in sparx5_fdma_rx_get_frame()
269 /* Check if the DCB can be reused */ in sparx5_fdma_napi_callback()
272 /* As the DCB can be reused, just advance the dcb_index in sparx5_fdma_napi_callback()
273 * pointer and set the nextptr in the DCB in sparx5_fdma_napi_callback()
296 struct sparx5_tx_dcb_hw *dcb) in sparx5_fdma_next_dcb() argument
300 next_dcb = dcb; in sparx5_fdma_next_dcb()
304 ((unsigned long)tx->first_entry + FDMA_DCB_MAX * sizeof(*dcb))) in sparx5_fdma_next_dcb()
347 struct sparx5_rx_dcb_hw *dcb; in sparx5_fdma_rx_alloc() local
360 /* Now for each dcb allocate the db */ in sparx5_fdma_rx_alloc()
362 dcb = &rx->dcb_entries[idx]; in sparx5_fdma_rx_alloc()
363 dcb->info = 0; in sparx5_fdma_rx_alloc()
369 struct sparx5_db_hw *db_hw = &dcb->db[jdx]; in sparx5_fdma_rx_alloc()
382 sparx5_fdma_rx_add_dcb(rx, dcb, rx->dma + sizeof(*dcb) * idx); in sparx5_fdma_rx_alloc()
394 struct sparx5_tx_dcb_hw *dcb; in sparx5_fdma_tx_alloc() local
406 /* Now for each dcb allocate the db */ in sparx5_fdma_tx_alloc()
408 dcb = &tx->curr_entry[idx]; in sparx5_fdma_tx_alloc()
409 dcb->info = 0; in sparx5_fdma_tx_alloc()
412 struct sparx5_db_hw *db_hw = &dcb->db[jdx]; in sparx5_fdma_tx_alloc()
431 sparx5_fdma_tx_add_dcb(tx, dcb, tx->dma + sizeof(*dcb) * idx); in sparx5_fdma_tx_alloc()
434 tx->curr_entry = dcb; in sparx5_fdma_tx_alloc()