Lines Matching refs:dma_handle
628 dma_addr_t dma_handle = sg->dma_address; in ppc_iommu_unmap_sg() local
632 npages = iommu_num_pages(dma_handle, sg->dma_length, in ppc_iommu_unmap_sg()
634 __iommu_free(tbl, dma_handle, npages); in ppc_iommu_unmap_sg()
858 dma_addr_t dma_handle = DMA_MAPPING_ERROR; in iommu_map_page() local
875 dma_handle = iommu_alloc(dev, tbl, vaddr, npages, direction, in iommu_map_page()
878 if (dma_handle == DMA_MAPPING_ERROR) { in iommu_map_page()
886 dma_handle |= (uaddr & ~IOMMU_PAGE_MASK(tbl)); in iommu_map_page()
889 return dma_handle; in iommu_map_page()
892 void iommu_unmap_page(struct iommu_table *tbl, dma_addr_t dma_handle, in iommu_unmap_page() argument
901 npages = iommu_num_pages(dma_handle, size, in iommu_unmap_page()
903 iommu_free(tbl, dma_handle, npages); in iommu_unmap_page()
912 size_t size, dma_addr_t *dma_handle, in iommu_alloc_coherent() argument
957 *dma_handle = mapping | ((u64)ret & (tcesize - 1)); in iommu_alloc_coherent()
962 void *vaddr, dma_addr_t dma_handle) in iommu_free_coherent() argument
969 iommu_free(tbl, dma_handle, nio_pages); in iommu_free_coherent()