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_page_attrs(struct device *dev, struct page *page, in dma_map_page_attrs()
183 void dma_unmap_page_attrs(struct device *dev, dma_addr_t addr, size_t size, in dma_unmap_page_attrs()
201 static int __dma_map_sg_attrs(struct device *dev, struct scatterlist *sg, in __dma_map_sg_attrs()
250 unsigned int dma_map_sg_attrs(struct device *dev, struct scatterlist *sg, in dma_map_sg_attrs()
289 int dma_map_sgtable(struct device *dev, struct sg_table *sgt, in dma_map_sgtable()
302 void dma_unmap_sg_attrs(struct device *dev, struct scatterlist *sg, in dma_unmap_sg_attrs()
321 dma_addr_t dma_map_resource(struct device *dev, phys_addr_t phys_addr, in dma_map_resource()
345 void dma_unmap_resource(struct device *dev, dma_addr_t addr, size_t size, in dma_unmap_resource()
363 void __dma_sync_single_for_cpu(struct device *dev, dma_addr_t addr, size_t size, in __dma_sync_single_for_cpu()
380 void __dma_sync_single_for_device(struct device *dev, dma_addr_t addr, in __dma_sync_single_for_device()
397 void __dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, in __dma_sync_sg_for_cpu()
414 void __dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, in __dma_sync_sg_for_device()
431 bool __dma_need_sync(struct device *dev, dma_addr_t dma_addr) in __dma_need_sync()
454 bool dma_need_unmap(struct device *dev) in dma_need_unmap()
464 static void dma_setup_need_sync(struct device *dev) in dma_setup_need_sync()
486 static inline void dma_setup_need_sync(struct device *dev) { } in dma_setup_need_sync()
500 int dma_get_sgtable_attrs(struct device *dev, struct sg_table *sgt, in dma_get_sgtable_attrs()
523 pgprot_t dma_pgprot(struct device *dev, pgprot_t prot, unsigned long attrs) in dma_pgprot()
542 bool dma_can_mmap(struct device *dev) in dma_can_mmap()
567 int dma_mmap_attrs(struct device *dev, struct vm_area_struct *vma, in dma_mmap_attrs()
585 u64 dma_get_required_mask(struct device *dev) in dma_get_required_mask()
610 void *dma_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, in dma_alloc_attrs()
654 void dma_free_attrs(struct device *dev, size_t size, void *cpu_addr, in dma_free_attrs()
685 static struct page *__dma_alloc_pages(struct device *dev, size_t size, in __dma_alloc_pages()
707 struct page *dma_alloc_pages(struct device *dev, size_t size, in dma_alloc_pages()
723 static void __dma_free_pages(struct device *dev, size_t size, struct page *page, in __dma_free_pages()
737 void dma_free_pages(struct device *dev, size_t size, struct page *page, in dma_free_pages()
746 int dma_mmap_pages(struct device *dev, struct vm_area_struct *vma, in dma_mmap_pages()
759 static struct sg_table *alloc_single_sgt(struct device *dev, size_t size, in alloc_single_sgt()
783 struct sg_table *dma_alloc_noncontiguous(struct device *dev, size_t size, in dma_alloc_noncontiguous()
809 static void free_single_sgt(struct device *dev, size_t size, in free_single_sgt()
818 void dma_free_noncontiguous(struct device *dev, size_t size, in dma_free_noncontiguous()
831 void *dma_vmap_noncontiguous(struct device *dev, size_t size, in dma_vmap_noncontiguous()
842 void dma_vunmap_noncontiguous(struct device *dev, void *vaddr) in dma_vunmap_noncontiguous()
849 int dma_mmap_noncontiguous(struct device *dev, struct vm_area_struct *vma, in dma_mmap_noncontiguous()
858 static int dma_supported(struct device *dev, u64 mask) in dma_supported()
881 bool dma_pci_p2pdma_supported(struct device *dev) in dma_pci_p2pdma_supported()
896 int dma_set_mask(struct device *dev, u64 mask) in dma_set_mask()
915 int dma_set_coherent_mask(struct device *dev, u64 mask) in dma_set_coherent_mask()
931 static bool __dma_addressing_limited(struct device *dev) in __dma_addressing_limited()
952 bool dma_addressing_limited(struct device *dev) in dma_addressing_limited()
962 size_t dma_max_mapping_size(struct device *dev) in dma_max_mapping_size()
978 size_t dma_opt_mapping_size(struct device *dev) in dma_opt_mapping_size()
992 unsigned long dma_get_merge_boundary(struct device *dev) in dma_get_merge_boundary()