Lines Matching refs:desc_pool

65 	if (rx_chn->desc_pool)  in prueth_cleanup_rx_chns()
66 k3_cppi_desc_pool_destroy(rx_chn->desc_pool); in prueth_cleanup_rx_chns()
79 if (tx_chn->desc_pool) in prueth_cleanup_tx_chns()
80 k3_cppi_desc_pool_destroy(tx_chn->desc_pool); in prueth_cleanup_tx_chns()
124 next_desc = k3_cppi_desc_pool_dma2virt(tx_chn->desc_pool, in prueth_xmit_free()
135 k3_cppi_desc_pool_free(tx_chn->desc_pool, next_desc); in prueth_xmit_free()
138 k3_cppi_desc_pool_free(tx_chn->desc_pool, first_desc); in prueth_xmit_free()
168 desc_tx = k3_cppi_desc_pool_dma2virt(tx_chn->desc_pool, in emac_tx_complete_packets()
195 (k3_cppi_desc_pool_avail(tx_chn->desc_pool) >= in emac_tx_complete_packets()
307 tx_chn->desc_pool = in prueth_init_tx_chns()
312 if (IS_ERR(tx_chn->desc_pool)) { in prueth_init_tx_chns()
313 ret = PTR_ERR(tx_chn->desc_pool); in prueth_init_tx_chns()
314 tx_chn->desc_pool = NULL; in prueth_init_tx_chns()
376 rx_chn->desc_pool = k3_cppi_desc_pool_create_name(rx_chn->dma_dev, in prueth_init_rx_chns()
380 if (IS_ERR(rx_chn->desc_pool)) { in prueth_init_rx_chns()
381 ret = PTR_ERR(rx_chn->desc_pool); in prueth_init_rx_chns()
382 rx_chn->desc_pool = NULL; in prueth_init_rx_chns()
450 desc_rx = k3_cppi_desc_pool_alloc(rx_chn->desc_pool); in prueth_dma_rx_push()
455 desc_dma = k3_cppi_desc_pool_virt2dma(rx_chn->desc_pool, desc_rx); in prueth_dma_rx_push()
459 k3_cppi_desc_pool_free(rx_chn->desc_pool, desc_rx); in prueth_dma_rx_push()
529 desc_rx = k3_cppi_desc_pool_dma2virt(rx_chn->desc_pool, desc_dma); in emac_rx_packet()
547 k3_cppi_desc_pool_free(rx_chn->desc_pool, desc_rx); in emac_rx_packet()
586 desc_rx = k3_cppi_desc_pool_dma2virt(rx_chn->desc_pool, desc_dma); in prueth_rx_cleanup()
594 k3_cppi_desc_pool_free(rx_chn->desc_pool, desc_rx); in prueth_rx_cleanup()
719 first_desc = k3_cppi_desc_pool_alloc(tx_chn->desc_pool); in emac_ndo_start_xmit()
761 next_desc = k3_cppi_desc_pool_alloc(tx_chn->desc_pool); in emac_ndo_start_xmit()
772 k3_cppi_desc_pool_free(tx_chn->desc_pool, next_desc); in emac_ndo_start_xmit()
782 desc_dma = k3_cppi_desc_pool_virt2dma(tx_chn->desc_pool, in emac_ndo_start_xmit()
796 desc_dma = k3_cppi_desc_pool_virt2dma(tx_chn->desc_pool, first_desc); in emac_ndo_start_xmit()
809 if (k3_cppi_desc_pool_avail(tx_chn->desc_pool) < MAX_SKB_FRAGS) { in emac_ndo_start_xmit()
814 if (k3_cppi_desc_pool_avail(tx_chn->desc_pool) >= in emac_ndo_start_xmit()
858 desc_tx = k3_cppi_desc_pool_dma2virt(tx_chn->desc_pool, desc_dma); in prueth_tx_cleanup()