Lines Matching +defs:dev +defs:attrs

42 	struct device *dev;  member
52 struct device *dev; member
141 static struct page *__dma_alloc_buffer(struct device *dev, size_t size, in __dma_alloc_buffer()
328 static void *__alloc_remap_buffer(struct device *dev, size_t size, gfp_t gfp, in __alloc_remap_buffer()
391 static void *__alloc_from_contiguous(struct device *dev, size_t size, in __alloc_from_contiguous()
426 static void __free_from_contiguous(struct device *dev, struct page *page, in __free_from_contiguous()
438 static inline pgprot_t __get_dma_pgprot(unsigned long attrs, pgprot_t prot) in __get_dma_pgprot()
446 static void *__alloc_simple_buffer(struct device *dev, size_t size, gfp_t gfp, in __alloc_simple_buffer()
533 static void *__dma_alloc(struct device *dev, size_t size, dma_addr_t *handle, in __dma_alloc()
535 unsigned long attrs, const void *caller) in __dma_alloc()
605 static void __arm_dma_free(struct device *dev, size_t size, void *cpu_addr, in __arm_dma_free()
606 dma_addr_t handle, unsigned long attrs, in __arm_dma_free()
733 static int __dma_info_to_prot(enum dma_data_direction dir, unsigned long attrs) in __dma_info_to_prot()
852 static struct page **__iommu_alloc_buffer(struct device *dev, size_t size, in __iommu_alloc_buffer()
853 gfp_t gfp, unsigned long attrs, in __iommu_alloc_buffer()
940 static int __iommu_free_buffer(struct device *dev, struct page **pages, in __iommu_free_buffer()
941 size_t size, unsigned long attrs) in __iommu_free_buffer()
962 __iommu_create_mapping(struct device *dev, struct page **pages, size_t size, in __iommu_create_mapping()
963 unsigned long attrs) in __iommu_create_mapping()
1002 static int __iommu_remove_mapping(struct device *dev, dma_addr_t iova, size_t size) in __iommu_remove_mapping()
1029 static struct page **__iommu_get_pages(void *cpu_addr, unsigned long attrs) in __iommu_get_pages()
1040 static void *__iommu_alloc_simple(struct device *dev, size_t size, gfp_t gfp, in __iommu_alloc_simple()
1042 unsigned long attrs) in __iommu_alloc_simple()
1065 static void __iommu_free_atomic(struct device *dev, void *cpu_addr, in __iommu_free_atomic()
1075 static void *arm_iommu_alloc_attrs(struct device *dev, size_t size, in arm_iommu_alloc_attrs()
1076 dma_addr_t *handle, gfp_t gfp, unsigned long attrs) in arm_iommu_alloc_attrs()
1115 static int arm_iommu_mmap_attrs(struct device *dev, struct vm_area_struct *vma, in arm_iommu_mmap_attrs()
1117 unsigned long attrs) in arm_iommu_mmap_attrs()
1143 static void arm_iommu_free_attrs(struct device *dev, size_t size, void *cpu_addr, in arm_iommu_free_attrs()
1144 dma_addr_t handle, unsigned long attrs) in arm_iommu_free_attrs()
1168 static int arm_iommu_get_sgtable(struct device *dev, struct sg_table *sgt, in arm_iommu_get_sgtable()
1170 size_t size, unsigned long attrs) in arm_iommu_get_sgtable()
1185 static int __map_sg_chunk(struct device *dev, struct scatterlist *sg, in __map_sg_chunk()
1187 enum dma_data_direction dir, unsigned long attrs) in __map_sg_chunk()
1240 static int arm_iommu_map_sg(struct device *dev, struct scatterlist *sg, in arm_iommu_map_sg()
1241 int nents, enum dma_data_direction dir, unsigned long attrs) in arm_iommu_map_sg()
1297 static void arm_iommu_unmap_sg(struct device *dev, in arm_iommu_unmap_sg()
1300 unsigned long attrs) in arm_iommu_unmap_sg()
1322 static void arm_iommu_sync_sg_for_cpu(struct device *dev, in arm_iommu_sync_sg_for_cpu()
1344 static void arm_iommu_sync_sg_for_device(struct device *dev, in arm_iommu_sync_sg_for_device()
1368 static dma_addr_t arm_iommu_map_page(struct device *dev, struct page *page, in arm_iommu_map_page()
1370 unsigned long attrs) in arm_iommu_map_page()
1405 static void arm_iommu_unmap_page(struct device *dev, dma_addr_t handle, in arm_iommu_unmap_page()
1406 size_t size, enum dma_data_direction dir, unsigned long attrs) in arm_iommu_unmap_page()
1433 static dma_addr_t arm_iommu_map_resource(struct device *dev, in arm_iommu_map_resource()
1435 enum dma_data_direction dir, unsigned long attrs) in arm_iommu_map_resource()
1467 static void arm_iommu_unmap_resource(struct device *dev, dma_addr_t dma_handle, in arm_iommu_unmap_resource()
1469 unsigned long attrs) in arm_iommu_unmap_resource()
1483 static void arm_iommu_sync_single_for_cpu(struct device *dev, in arm_iommu_sync_single_for_cpu()
1498 static void arm_iommu_sync_single_for_device(struct device *dev, in arm_iommu_sync_single_for_device()
1643 static int __arm_iommu_attach_device(struct device *dev, in __arm_iommu_attach_device()
1672 int arm_iommu_attach_device(struct device *dev, in arm_iommu_attach_device()
1693 void arm_iommu_detach_device(struct device *dev) in arm_iommu_detach_device()
1712 static void arm_setup_iommu_dma_ops(struct device *dev, u64 dma_base, u64 size, in arm_setup_iommu_dma_ops()
1734 static void arm_teardown_iommu_dma_ops(struct device *dev) in arm_teardown_iommu_dma_ops()
1747 static void arm_setup_iommu_dma_ops(struct device *dev, u64 dma_base, u64 size, in arm_setup_iommu_dma_ops()
1752 static void arm_teardown_iommu_dma_ops(struct device *dev) { } in arm_teardown_iommu_dma_ops()
1756 void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size, in arch_setup_dma_ops()
1783 void arch_teardown_dma_ops(struct device *dev) in arch_teardown_dma_ops()
1807 void *arch_dma_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle, in arch_dma_alloc()
1808 gfp_t gfp, unsigned long attrs) in arch_dma_alloc()
1815 void arch_dma_free(struct device *dev, size_t size, void *cpu_addr, in arch_dma_free()
1816 dma_addr_t dma_handle, unsigned long attrs) in arch_dma_free()