Lines Matching refs:dma_handle

157 			       dma_addr_t dma_handle, const unsigned char *buf,  in rocker_dma_test_one()  argument
191 dma_addr_t dma_handle; in rocker_dma_test_offset() local
202 dma_handle = dma_map_single(&pdev->dev, buf, ROCKER_TEST_DMA_BUF_SIZE, in rocker_dma_test_offset()
204 if (dma_mapping_error(&pdev->dev, dma_handle)) { in rocker_dma_test_offset()
209 rocker_write64(rocker, TEST_DMA_ADDR, dma_handle); in rocker_dma_test_offset()
214 dma_handle, buf, expect, in rocker_dma_test_offset()
221 dma_handle, buf, expect, in rocker_dma_test_offset()
230 dma_handle, buf, expect, in rocker_dma_test_offset()
236 dma_unmap_single(&pdev->dev, dma_handle, ROCKER_TEST_DMA_BUF_SIZE, in rocker_dma_test_offset()
499 dma_addr_t dma_handle; in rocker_dma_ring_bufs_alloc() local
508 dma_handle = dma_map_single(&pdev->dev, buf, buf_size, in rocker_dma_ring_bufs_alloc()
510 if (dma_mapping_error(&pdev->dev, dma_handle)) { in rocker_dma_ring_bufs_alloc()
518 dma_unmap_addr_set(desc_info, mapaddr, dma_handle); in rocker_dma_ring_bufs_alloc()
520 desc->buf_addr = dma_handle; in rocker_dma_ring_bufs_alloc()
678 dma_addr_t dma_handle; in rocker_dma_rx_ring_skb_map() local
680 dma_handle = dma_map_single(&pdev->dev, skb->data, buf_len, in rocker_dma_rx_ring_skb_map()
682 if (dma_mapping_error(&pdev->dev, dma_handle)) in rocker_dma_rx_ring_skb_map()
684 if (rocker_tlv_put_u64(desc_info, ROCKER_TLV_RX_FRAG_ADDR, dma_handle)) in rocker_dma_rx_ring_skb_map()
691 dma_unmap_single(&pdev->dev, dma_handle, buf_len, DMA_FROM_DEVICE); in rocker_dma_rx_ring_skb_map()
731 dma_addr_t dma_handle; in rocker_dma_rx_ring_skb_unmap() local
737 dma_handle = rocker_tlv_get_u64(attrs[ROCKER_TLV_RX_FRAG_ADDR]); in rocker_dma_rx_ring_skb_unmap()
739 dma_unmap_single(&pdev->dev, dma_handle, len, DMA_FROM_DEVICE); in rocker_dma_rx_ring_skb_unmap()
1832 dma_addr_t dma_handle; in rocker_tx_desc_frags_unmap() local
1842 dma_handle = rocker_tlv_get_u64(frag_attrs[ROCKER_TLV_TX_FRAG_ATTR_ADDR]); in rocker_tx_desc_frags_unmap()
1844 dma_unmap_single(&pdev->dev, dma_handle, len, DMA_TO_DEVICE); in rocker_tx_desc_frags_unmap()
1854 dma_addr_t dma_handle; in rocker_tx_desc_frag_map_put() local
1857 dma_handle = dma_map_single(&pdev->dev, buf, buf_len, DMA_TO_DEVICE); in rocker_tx_desc_frag_map_put()
1858 if (unlikely(dma_mapping_error(&pdev->dev, dma_handle))) { in rocker_tx_desc_frag_map_put()
1867 dma_handle)) in rocker_tx_desc_frag_map_put()
1878 dma_unmap_single(&pdev->dev, dma_handle, buf_len, DMA_TO_DEVICE); in rocker_tx_desc_frag_map_put()