Lines Matching refs:desc_rx
469 struct cppi5_host_desc_t *desc_rx; in prueth_dma_rx_push() local
475 desc_rx = k3_cppi_desc_pool_alloc(rx_chn->desc_pool); in prueth_dma_rx_push()
476 if (!desc_rx) { in prueth_dma_rx_push()
480 desc_dma = k3_cppi_desc_pool_virt2dma(rx_chn->desc_pool, desc_rx); in prueth_dma_rx_push()
484 k3_cppi_desc_pool_free(rx_chn->desc_pool, desc_rx); in prueth_dma_rx_push()
489 cppi5_hdesc_init(desc_rx, CPPI5_INFO0_HDESC_EPIB_PRESENT, in prueth_dma_rx_push()
492 cppi5_hdesc_attach_buf(desc_rx, buf_dma, skb_tailroom(skb), buf_dma, skb_tailroom(skb)); in prueth_dma_rx_push()
494 swdata = cppi5_hdesc_get_swdata(desc_rx); in prueth_dma_rx_push()
498 desc_rx, desc_dma); in prueth_dma_rx_push()
543 struct cppi5_host_desc_t *desc_rx; in emac_rx_packet() local
560 desc_rx = k3_cppi_desc_pool_dma2virt(rx_chn->desc_pool, desc_dma); in emac_rx_packet()
562 swdata = cppi5_hdesc_get_swdata(desc_rx); in emac_rx_packet()
565 psdata = cppi5_hdesc_get_psdata(desc_rx); in emac_rx_packet()
570 cppi5_hdesc_get_obuf(desc_rx, &buf_dma, &buf_dma_len); in emac_rx_packet()
572 pkt_len = cppi5_hdesc_get_pktlen(desc_rx); in emac_rx_packet()
575 cppi5_desc_get_tags_ids(&desc_rx->hdr, &port_id, NULL); in emac_rx_packet()
578 k3_cppi_desc_pool_free(rx_chn->desc_pool, desc_rx); in emac_rx_packet()
613 struct cppi5_host_desc_t *desc_rx; in prueth_rx_cleanup() local
619 desc_rx = k3_cppi_desc_pool_dma2virt(rx_chn->desc_pool, desc_dma); in prueth_rx_cleanup()
620 swdata = cppi5_hdesc_get_swdata(desc_rx); in prueth_rx_cleanup()
622 cppi5_hdesc_get_obuf(desc_rx, &buf_dma, &buf_dma_len); in prueth_rx_cleanup()
627 k3_cppi_desc_pool_free(rx_chn->desc_pool, desc_rx); in prueth_rx_cleanup()