Lines Matching refs:size
19 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_common_get_sgtable() argument
27 sg_set_page(sgt->sgl, page, PAGE_ALIGN(size), 0); in dma_common_get_sgtable()
36 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_common_mmap() argument
41 unsigned long count = PAGE_ALIGN(size) >> PAGE_SHIFT; in dma_common_mmap()
48 if (dma_mmap_from_dev_coherent(dev, vma, cpu_addr, size, &ret)) in dma_common_mmap()
63 struct page *dma_common_alloc_pages(struct device *dev, size_t size, in dma_common_alloc_pages() argument
69 page = dma_alloc_contiguous(dev, size, gfp); in dma_common_alloc_pages()
71 page = alloc_pages_node(dev_to_node(dev), gfp, get_order(size)); in dma_common_alloc_pages()
75 *dma_handle = ops->map_page(dev, page, 0, size, dir, in dma_common_alloc_pages()
78 dma_free_contiguous(dev, page, size); in dma_common_alloc_pages()
82 memset(page_address(page), 0, size); in dma_common_alloc_pages()
86 void dma_common_free_pages(struct device *dev, size_t size, struct page *page, in dma_common_free_pages() argument
92 ops->unmap_page(dev, dma_handle, size, dir, in dma_common_free_pages()
94 dma_free_contiguous(dev, page, size); in dma_common_free_pages()