Lines Matching refs:buf_dma
313 dma_addr_t buf_dma; in am65_cpsw_nuss_rx_push() local
323 buf_dma = dma_map_single(rx_chn->dma_dev, skb->data, pkt_len, in am65_cpsw_nuss_rx_push()
325 if (unlikely(dma_mapping_error(rx_chn->dma_dev, buf_dma))) { in am65_cpsw_nuss_rx_push()
333 k3_udma_glue_rx_dma_to_cppi5_addr(rx_chn->rx_chn, &buf_dma); in am65_cpsw_nuss_rx_push()
334 cppi5_hdesc_attach_buf(desc_rx, buf_dma, skb_tailroom(skb), buf_dma, skb_tailroom(skb)); in am65_cpsw_nuss_rx_push()
654 dma_addr_t buf_dma; in am65_cpsw_nuss_rx_cleanup() local
661 cppi5_hdesc_get_obuf(desc_rx, &buf_dma, &buf_dma_len); in am65_cpsw_nuss_rx_cleanup()
662 k3_udma_glue_rx_cppi5_to_dma_addr(rx_chn->rx_chn, &buf_dma); in am65_cpsw_nuss_rx_cleanup()
664 dma_unmap_single(rx_chn->dma_dev, buf_dma, buf_dma_len, DMA_FROM_DEVICE); in am65_cpsw_nuss_rx_cleanup()
725 dma_addr_t desc_dma, buf_dma; in am65_cpsw_nuss_rx_packets() local
752 cppi5_hdesc_get_obuf(desc_rx, &buf_dma, &buf_dma_len); in am65_cpsw_nuss_rx_packets()
753 k3_udma_glue_rx_cppi5_to_dma_addr(rx_chn->rx_chn, &buf_dma); in am65_cpsw_nuss_rx_packets()
768 dma_unmap_single(rx_chn->dma_dev, buf_dma, buf_dma_len, DMA_FROM_DEVICE); in am65_cpsw_nuss_rx_packets()
847 dma_addr_t buf_dma, next_desc_dma; in am65_cpsw_nuss_xmit_free() local
853 cppi5_hdesc_get_obuf(first_desc, &buf_dma, &buf_dma_len); in am65_cpsw_nuss_xmit_free()
854 k3_udma_glue_tx_cppi5_to_dma_addr(tx_chn->tx_chn, &buf_dma); in am65_cpsw_nuss_xmit_free()
856 dma_unmap_single(tx_chn->dma_dev, buf_dma, buf_dma_len, DMA_TO_DEVICE); in am65_cpsw_nuss_xmit_free()
863 cppi5_hdesc_get_obuf(next_desc, &buf_dma, &buf_dma_len); in am65_cpsw_nuss_xmit_free()
864 k3_udma_glue_tx_cppi5_to_dma_addr(tx_chn->tx_chn, &buf_dma); in am65_cpsw_nuss_xmit_free()
866 dma_unmap_page(tx_chn->dma_dev, buf_dma, buf_dma_len, in am65_cpsw_nuss_xmit_free()
1082 dma_addr_t desc_dma, buf_dma; in am65_cpsw_nuss_ndo_slave_xmit() local
1102 buf_dma = dma_map_single(tx_chn->dma_dev, skb->data, pkt_len, in am65_cpsw_nuss_ndo_slave_xmit()
1104 if (unlikely(dma_mapping_error(tx_chn->dma_dev, buf_dma))) { in am65_cpsw_nuss_ndo_slave_xmit()
1113 dma_unmap_single(tx_chn->dma_dev, buf_dma, pkt_len, in am65_cpsw_nuss_ndo_slave_xmit()
1124 k3_udma_glue_tx_dma_to_cppi5_addr(tx_chn->tx_chn, &buf_dma); in am65_cpsw_nuss_ndo_slave_xmit()
1125 cppi5_hdesc_attach_buf(first_desc, buf_dma, pkt_len, buf_dma, pkt_len); in am65_cpsw_nuss_ndo_slave_xmit()
1160 buf_dma = skb_frag_dma_map(tx_chn->dma_dev, frag, 0, frag_size, in am65_cpsw_nuss_ndo_slave_xmit()
1162 if (unlikely(dma_mapping_error(tx_chn->dma_dev, buf_dma))) { in am65_cpsw_nuss_ndo_slave_xmit()
1170 k3_udma_glue_tx_dma_to_cppi5_addr(tx_chn->tx_chn, &buf_dma); in am65_cpsw_nuss_ndo_slave_xmit()
1172 buf_dma, frag_size, buf_dma, frag_size); in am65_cpsw_nuss_ndo_slave_xmit()