Lines Matching +defs:dev +defs:attrs
160 void iommu_dma_get_resv_regions(struct device *dev, struct list_head *list) in iommu_dma_get_resv_regions()
194 static int iova_reserve_pci_windows(struct pci_dev *dev, in iova_reserve_pci_windows()
237 static int iova_reserve_iommu_regions(struct device *dev, in iova_reserve_iommu_regions()
302 u64 size, struct device *dev) in iommu_dma_init_domain()
358 static int iommu_dma_deferred_attach(struct device *dev, in iommu_dma_deferred_attach()
383 unsigned long attrs) in dma_info_to_prot()
403 size_t size, u64 dma_limit, struct device *dev) in iommu_dma_alloc_iova()
458 static void __iommu_dma_unmap(struct device *dev, dma_addr_t dma_addr, in __iommu_dma_unmap()
480 static dma_addr_t __iommu_dma_map(struct device *dev, phys_addr_t phys, in __iommu_dma_map()
512 static struct page **__iommu_dma_alloc_pages(struct device *dev, in __iommu_dma_alloc_pages()
582 static void *iommu_dma_alloc_remap(struct device *dev, size_t size, in iommu_dma_alloc_remap()
584 unsigned long attrs) in iommu_dma_alloc_remap()
673 static void iommu_dma_sync_single_for_cpu(struct device *dev, in iommu_dma_sync_single_for_cpu()
685 static void iommu_dma_sync_single_for_device(struct device *dev, in iommu_dma_sync_single_for_device()
697 static void iommu_dma_sync_sg_for_cpu(struct device *dev, in iommu_dma_sync_sg_for_cpu()
711 static void iommu_dma_sync_sg_for_device(struct device *dev, in iommu_dma_sync_sg_for_device()
725 static dma_addr_t iommu_dma_map_page(struct device *dev, struct page *page, in iommu_dma_map_page()
727 unsigned long attrs) in iommu_dma_map_page()
741 static void iommu_dma_unmap_page(struct device *dev, dma_addr_t dma_handle, in iommu_dma_unmap_page()
742 size_t size, enum dma_data_direction dir, unsigned long attrs) in iommu_dma_unmap_page()
756 static int __finalise_sg(struct device *dev, struct scatterlist *sg, int nents, in __finalise_sg()
831 static int iommu_dma_map_sg(struct device *dev, struct scatterlist *sg, in iommu_dma_map_sg()
832 int nents, enum dma_data_direction dir, unsigned long attrs) in iommu_dma_map_sg()
909 static void iommu_dma_unmap_sg(struct device *dev, struct scatterlist *sg, in iommu_dma_unmap_sg()
910 int nents, enum dma_data_direction dir, unsigned long attrs) in iommu_dma_unmap_sg()
933 static dma_addr_t iommu_dma_map_resource(struct device *dev, phys_addr_t phys, in iommu_dma_map_resource()
934 size_t size, enum dma_data_direction dir, unsigned long attrs) in iommu_dma_map_resource()
941 static void iommu_dma_unmap_resource(struct device *dev, dma_addr_t handle, in iommu_dma_unmap_resource()
942 size_t size, enum dma_data_direction dir, unsigned long attrs) in iommu_dma_unmap_resource()
947 static void __iommu_dma_free(struct device *dev, size_t size, void *cpu_addr) in __iommu_dma_free()
978 static void iommu_dma_free(struct device *dev, size_t size, void *cpu_addr, in iommu_dma_free()
979 dma_addr_t handle, unsigned long attrs) in iommu_dma_free()
985 static void *iommu_dma_alloc_pages(struct device *dev, size_t size, in iommu_dma_alloc_pages()
986 struct page **pagep, gfp_t gfp, unsigned long attrs) in iommu_dma_alloc_pages()
1022 static void *iommu_dma_alloc(struct device *dev, size_t size, in iommu_dma_alloc()
1023 dma_addr_t *handle, gfp_t gfp, unsigned long attrs) in iommu_dma_alloc()
1058 static void *iommu_dma_alloc_noncoherent(struct device *dev, size_t size, in iommu_dma_alloc_noncoherent()
1074 static void iommu_dma_free_noncoherent(struct device *dev, size_t size, in iommu_dma_free_noncoherent()
1085 static int iommu_dma_mmap(struct device *dev, struct vm_area_struct *vma, in iommu_dma_mmap()
1087 unsigned long attrs) in iommu_dma_mmap()
1116 static int iommu_dma_get_sgtable(struct device *dev, struct sg_table *sgt, in iommu_dma_get_sgtable()
1118 unsigned long attrs) in iommu_dma_get_sgtable()
1143 static unsigned long iommu_dma_get_merge_boundary(struct device *dev) in iommu_dma_get_merge_boundary()
1176 void iommu_setup_dma_ops(struct device *dev, u64 dma_base, u64 size) in iommu_setup_dma_ops()
1199 static struct iommu_dma_msi_page *iommu_dma_get_msi_page(struct device *dev, in iommu_dma_get_msi_page()
1239 struct device *dev = msi_desc_to_dev(desc); in iommu_dma_prepare_msi() local
1268 struct device *dev = msi_desc_to_dev(desc); in iommu_dma_compose_msi_msg() local