Lines Matching refs:size
22 size_t size; member
32 dma_free_attrs(dev, this->size, this->vaddr, this->dma_handle, in dmam_release()
41 WARN_ON(this->size != match->size || in dmam_match()
61 void *dmam_alloc_coherent(struct device *dev, size_t size, in dmam_alloc_coherent() argument
71 vaddr = dma_alloc_coherent(dev, size, dma_handle, gfp); in dmam_alloc_coherent()
79 dr->size = size; in dmam_alloc_coherent()
96 void dmam_free_coherent(struct device *dev, size_t size, void *vaddr, in dmam_free_coherent() argument
99 struct dma_devres match_data = { size, vaddr, dma_handle }; in dmam_free_coherent()
101 dma_free_coherent(dev, size, vaddr, dma_handle); in dmam_free_coherent()
120 void *dmam_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, in dmam_alloc_attrs() argument
130 vaddr = dma_alloc_attrs(dev, size, dma_handle, gfp, attrs); in dmam_alloc_attrs()
138 dr->size = size; in dmam_alloc_attrs()
168 dma_addr_t device_addr, size_t size, int flags) in dmam_declare_coherent_memory() argument
177 rc = dma_declare_coherent_memory(dev, phys_addr, device_addr, size, in dmam_declare_coherent_memory()
206 void *cpu_addr, dma_addr_t handle, size_t size) in dma_common_get_sgtable() argument
215 sg_set_page(sgt->sgl, page, PAGE_ALIGN(size), 0); in dma_common_get_sgtable()
224 void *cpu_addr, dma_addr_t dma_addr, size_t size) in dma_common_mmap() argument
229 unsigned long count = PAGE_ALIGN(size) >> PAGE_SHIFT; in dma_common_mmap()
235 if (dma_mmap_from_dev_coherent(dev, vma, cpu_addr, size, &ret)) in dma_common_mmap()
252 size_t size, unsigned long vm_flags, pgprot_t prot, in __dma_common_pages_remap() argument
257 area = get_vm_area_caller(size, vm_flags, caller); in __dma_common_pages_remap()
273 void *dma_common_pages_remap(struct page **pages, size_t size, in dma_common_pages_remap() argument
279 area = __dma_common_pages_remap(pages, size, vm_flags, prot, caller); in dma_common_pages_remap()
293 void *dma_common_contiguous_remap(struct page *page, size_t size, in dma_common_contiguous_remap() argument
301 pages = kmalloc(sizeof(struct page *) << get_order(size), GFP_KERNEL); in dma_common_contiguous_remap()
305 for (i = 0; i < (size >> PAGE_SHIFT); i++) in dma_common_contiguous_remap()
308 area = __dma_common_pages_remap(pages, size, vm_flags, prot, caller); in dma_common_contiguous_remap()
320 void dma_common_free_remap(void *cpu_addr, size_t size, unsigned long vm_flags) in dma_common_free_remap() argument
329 unmap_kernel_range((unsigned long)cpu_addr, PAGE_ALIGN(size)); in dma_common_free_remap()