Lines Matching refs:dma_handle

158 			       dma_addr_t dma_handle, const unsigned char *buf,  in rocker_dma_test_one()  argument
192 dma_addr_t dma_handle; in rocker_dma_test_offset() local
203 dma_handle = dma_map_single(&pdev->dev, buf, ROCKER_TEST_DMA_BUF_SIZE, in rocker_dma_test_offset()
205 if (dma_mapping_error(&pdev->dev, dma_handle)) { in rocker_dma_test_offset()
210 rocker_write64(rocker, TEST_DMA_ADDR, dma_handle); in rocker_dma_test_offset()
215 dma_handle, buf, expect, in rocker_dma_test_offset()
222 dma_handle, buf, expect, in rocker_dma_test_offset()
231 dma_handle, buf, expect, in rocker_dma_test_offset()
237 dma_unmap_single(&pdev->dev, dma_handle, ROCKER_TEST_DMA_BUF_SIZE, in rocker_dma_test_offset()
500 dma_addr_t dma_handle; in rocker_dma_ring_bufs_alloc() local
509 dma_handle = dma_map_single(&pdev->dev, buf, buf_size, in rocker_dma_ring_bufs_alloc()
511 if (dma_mapping_error(&pdev->dev, dma_handle)) { in rocker_dma_ring_bufs_alloc()
519 dma_unmap_addr_set(desc_info, mapaddr, dma_handle); in rocker_dma_ring_bufs_alloc()
521 desc->buf_addr = dma_handle; in rocker_dma_ring_bufs_alloc()
679 dma_addr_t dma_handle; in rocker_dma_rx_ring_skb_map() local
681 dma_handle = dma_map_single(&pdev->dev, skb->data, buf_len, in rocker_dma_rx_ring_skb_map()
683 if (dma_mapping_error(&pdev->dev, dma_handle)) in rocker_dma_rx_ring_skb_map()
685 if (rocker_tlv_put_u64(desc_info, ROCKER_TLV_RX_FRAG_ADDR, dma_handle)) in rocker_dma_rx_ring_skb_map()
692 dma_unmap_single(&pdev->dev, dma_handle, buf_len, DMA_FROM_DEVICE); in rocker_dma_rx_ring_skb_map()
732 dma_addr_t dma_handle; in rocker_dma_rx_ring_skb_unmap() local
738 dma_handle = rocker_tlv_get_u64(attrs[ROCKER_TLV_RX_FRAG_ADDR]); in rocker_dma_rx_ring_skb_unmap()
740 dma_unmap_single(&pdev->dev, dma_handle, len, DMA_FROM_DEVICE); in rocker_dma_rx_ring_skb_unmap()
1833 dma_addr_t dma_handle; in rocker_tx_desc_frags_unmap() local
1843 dma_handle = rocker_tlv_get_u64(frag_attrs[ROCKER_TLV_TX_FRAG_ATTR_ADDR]); in rocker_tx_desc_frags_unmap()
1845 dma_unmap_single(&pdev->dev, dma_handle, len, DMA_TO_DEVICE); in rocker_tx_desc_frags_unmap()
1855 dma_addr_t dma_handle; in rocker_tx_desc_frag_map_put() local
1858 dma_handle = dma_map_single(&pdev->dev, buf, buf_len, DMA_TO_DEVICE); in rocker_tx_desc_frag_map_put()
1859 if (unlikely(dma_mapping_error(&pdev->dev, dma_handle))) { in rocker_tx_desc_frag_map_put()
1868 dma_handle)) in rocker_tx_desc_frag_map_put()
1879 dma_unmap_single(&pdev->dev, dma_handle, buf_len, DMA_TO_DEVICE); in rocker_tx_desc_frag_map_put()