Lines Matching defs:handle
643 * @dma_handle: Out argument for allocated DMA handle
930 * IOVA granules for the IOMMU driver to handle. With some clever
1023 static void iommu_dma_unmap_resource(struct device *dev, dma_addr_t handle, size_t size, enum dma_data_direction dir,
1026 iommu_dma_unmap_ext(dev, handle, size);
1063 static void iommu_dma_free(struct device *dev, size_t size, void *cpu_addr, dma_addr_t handle, unsigned long attrs)
1065 iommu_dma_unmap_ext(dev, handle, size);
1108 static void *iommu_dma_alloc(struct device *dev, size_t size, dma_addr_t *handle, gfp_t gfp, unsigned long attrs)
1118 return iommu_dma_alloc_remap(dev, size, handle, gfp, dma_pgprot(dev, PAGE_KERNEL, attrs), attrs);
1130 *handle = iommu_dma_map_ext(dev, page_to_phys(page), size, ioprot, dev->coherent_dma_mask);
1131 if (*handle == DMA_MAPPING_ERROR) {
1140 static void *iommu_dma_alloc_noncoherent(struct device *dev, size_t size, dma_addr_t *handle,
1146 page = dma_common_alloc_pages(dev, size, handle, dir, gfp);
1153 return iommu_dma_alloc_remap(dev, size, handle, gfp | __GFP_ZERO, PAGE_KERNEL, 0);
1156 static void iommu_dma_free_noncoherent(struct device *dev, size_t size, void *cpu_addr, dma_addr_t handle,
1159 iommu_dma_unmap_ext(dev, handle, size);