Lines Matching defs:dev
40 static void dmam_release(struct device *dev, void *res) in dmam_release()
48 static int dmam_match(struct device *dev, void *res, void *match_data) in dmam_match()
69 void dmam_free_coherent(struct device *dev, size_t size, void *vaddr, in dmam_free_coherent()
93 void *dmam_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, in dmam_alloc_attrs()
120 static bool dma_go_direct(struct device *dev, dma_addr_t mask, in dma_go_direct()
143 static inline bool dma_alloc_direct(struct device *dev, in dma_alloc_direct()
149 static inline bool dma_map_direct(struct device *dev, in dma_map_direct()
155 dma_addr_t dma_map_phys(struct device *dev, phys_addr_t phys, size_t size, in dma_map_phys()
184 dma_addr_t dma_map_page_attrs(struct device *dev, struct page *page, in dma_map_page_attrs()
201 void dma_unmap_phys(struct device *dev, dma_addr_t addr, size_t size, in dma_unmap_phys()
220 void dma_unmap_page_attrs(struct device *dev, dma_addr_t addr, size_t size, in dma_unmap_page_attrs()
230 static int __dma_map_sg_attrs(struct device *dev, struct scatterlist *sg, in __dma_map_sg_attrs()
279 unsigned int dma_map_sg_attrs(struct device *dev, struct scatterlist *sg, in dma_map_sg_attrs()
318 int dma_map_sgtable(struct device *dev, struct sg_table *sgt, in dma_map_sgtable()
331 void dma_unmap_sg_attrs(struct device *dev, struct scatterlist *sg, in dma_unmap_sg_attrs()
350 dma_addr_t dma_map_resource(struct device *dev, phys_addr_t phys_addr, in dma_map_resource()
361 void dma_unmap_resource(struct device *dev, dma_addr_t addr, size_t size, in dma_unmap_resource()
369 void __dma_sync_single_for_cpu(struct device *dev, dma_addr_t addr, size_t size, in __dma_sync_single_for_cpu()
386 void __dma_sync_single_for_device(struct device *dev, dma_addr_t addr, in __dma_sync_single_for_device()
403 void __dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, in __dma_sync_sg_for_cpu()
420 void __dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, in __dma_sync_sg_for_device()
437 bool __dma_need_sync(struct device *dev, dma_addr_t dma_addr) in __dma_need_sync()
460 bool dma_need_unmap(struct device *dev) in dma_need_unmap()
470 static void dma_setup_need_sync(struct device *dev) in dma_setup_need_sync()
492 static inline void dma_setup_need_sync(struct device *dev) { } in dma_setup_need_sync()
506 int dma_get_sgtable_attrs(struct device *dev, struct sg_table *sgt, in dma_get_sgtable_attrs()
529 pgprot_t dma_pgprot(struct device *dev, pgprot_t prot, unsigned long attrs) in dma_pgprot()
548 bool dma_can_mmap(struct device *dev) in dma_can_mmap()
573 int dma_mmap_attrs(struct device *dev, struct vm_area_struct *vma, in dma_mmap_attrs()
591 u64 dma_get_required_mask(struct device *dev) in dma_get_required_mask()
616 void *dma_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, in dma_alloc_attrs()
660 void dma_free_attrs(struct device *dev, size_t size, void *cpu_addr, in dma_free_attrs()
691 static struct page *__dma_alloc_pages(struct device *dev, size_t size, in __dma_alloc_pages()
713 struct page *dma_alloc_pages(struct device *dev, size_t size, in dma_alloc_pages()
729 static void __dma_free_pages(struct device *dev, size_t size, struct page *page, in __dma_free_pages()
743 void dma_free_pages(struct device *dev, size_t size, struct page *page, in dma_free_pages()
752 int dma_mmap_pages(struct device *dev, struct vm_area_struct *vma, in dma_mmap_pages()
765 static struct sg_table *alloc_single_sgt(struct device *dev, size_t size, in alloc_single_sgt()
789 struct sg_table *dma_alloc_noncontiguous(struct device *dev, size_t size, in dma_alloc_noncontiguous()
815 static void free_single_sgt(struct device *dev, size_t size, in free_single_sgt()
824 void dma_free_noncontiguous(struct device *dev, size_t size, in dma_free_noncontiguous()
837 void *dma_vmap_noncontiguous(struct device *dev, size_t size, in dma_vmap_noncontiguous()
848 void dma_vunmap_noncontiguous(struct device *dev, void *vaddr) in dma_vunmap_noncontiguous()
855 int dma_mmap_noncontiguous(struct device *dev, struct vm_area_struct *vma, in dma_mmap_noncontiguous()
864 static int dma_supported(struct device *dev, u64 mask) in dma_supported()
887 bool dma_pci_p2pdma_supported(struct device *dev) in dma_pci_p2pdma_supported()
902 int dma_set_mask(struct device *dev, u64 mask) in dma_set_mask()
921 int dma_set_coherent_mask(struct device *dev, u64 mask) in dma_set_coherent_mask()
937 static bool __dma_addressing_limited(struct device *dev) in __dma_addressing_limited()
958 bool dma_addressing_limited(struct device *dev) in dma_addressing_limited()
968 size_t dma_max_mapping_size(struct device *dev) in dma_max_mapping_size()
984 size_t dma_opt_mapping_size(struct device *dev) in dma_opt_mapping_size()
998 unsigned long dma_get_merge_boundary(struct device *dev) in dma_get_merge_boundary()