Lines Matching refs:gfp

148 	dma_addr_t *handle, gfp_t gfp, struct dma_attrs *attrs);
254 static struct page *__dma_alloc_buffer(struct device *dev, size_t size, gfp_t gfp) in __dma_alloc_buffer() argument
259 page = alloc_pages(gfp, order); in __dma_alloc_buffer()
294 static void *__alloc_remap_buffer(struct device *dev, size_t size, gfp_t gfp,
299 __dma_alloc_remap(struct page *page, size_t size, gfp_t gfp, pgprot_t prot, in __dma_alloc_remap() argument
350 gfp_t gfp = GFP_KERNEL | GFP_DMA; in atomic_pool_init() local
362 ptr = __alloc_remap_buffer(NULL, atomic_pool_size, gfp, prot, in atomic_pool_init()
468 static void *__alloc_remap_buffer(struct device *dev, size_t size, gfp_t gfp, in __alloc_remap_buffer() argument
474 page = __dma_alloc_buffer(dev, size, gfp); in __alloc_remap_buffer()
480 ptr = __dma_alloc_remap(page, size, gfp, prot, caller); in __alloc_remap_buffer()
588 #define __alloc_remap_buffer(dev, size, gfp, prot, ret, c, wv) NULL argument
597 static void *__alloc_simple_buffer(struct device *dev, size_t size, gfp_t gfp, in __alloc_simple_buffer() argument
601 page = __dma_alloc_buffer(dev, size, gfp); in __alloc_simple_buffer()
612 gfp_t gfp, pgprot_t prot, bool is_coherent, in __dma_alloc() argument
633 gfp |= GFP_DMA; in __dma_alloc()
642 gfp &= ~(__GFP_COMP); in __dma_alloc()
649 addr = __alloc_simple_buffer(dev, size, gfp, &page); in __dma_alloc()
650 else if (!(gfp & __GFP_WAIT)) in __dma_alloc()
653 addr = __alloc_remap_buffer(dev, size, gfp, prot, &page, caller, want_vaddr); in __dma_alloc()
668 gfp_t gfp, struct dma_attrs *attrs) in arm_dma_alloc() argument
676 return __dma_alloc(dev, size, handle, gfp, prot, false, in arm_dma_alloc()
681 dma_addr_t *handle, gfp_t gfp, struct dma_attrs *attrs) in arm_coherent_dma_alloc() argument
689 return __dma_alloc(dev, size, handle, gfp, prot, true, in arm_coherent_dma_alloc()
1116 gfp_t gfp, struct dma_attrs *attrs) in __iommu_alloc_buffer() argument
1150 gfp |= __GFP_NOWARN | __GFP_HIGHMEM; in __iommu_alloc_buffer()
1161 pages[i] = alloc_pages(gfp | __GFP_NORETRY, order); in __iommu_alloc_buffer()
1171 pages[i] = alloc_pages(gfp, 0); in __iommu_alloc_buffer()
1226 __iommu_alloc_remap(struct page **pages, size_t size, gfp_t gfp, pgprot_t prot, in __iommu_alloc_remap() argument
1345 dma_addr_t *handle, gfp_t gfp, struct dma_attrs *attrs) in arm_iommu_alloc_attrs() argument
1354 if (!(gfp & __GFP_WAIT)) in arm_iommu_alloc_attrs()
1364 gfp &= ~(__GFP_COMP); in arm_iommu_alloc_attrs()
1366 pages = __iommu_alloc_buffer(dev, size, gfp, attrs); in arm_iommu_alloc_attrs()
1377 addr = __iommu_alloc_remap(pages, size, gfp, prot, in arm_iommu_alloc_attrs()