• Home
  • Raw
  • Download

Lines Matching refs:gfp

149 	dma_addr_t *handle, gfp_t gfp, struct dma_attrs *attrs);
258 static struct page *__dma_alloc_buffer(struct device *dev, size_t size, gfp_t gfp) in __dma_alloc_buffer() argument
263 page = alloc_pages(gfp, order); in __dma_alloc_buffer()
298 static void *__alloc_remap_buffer(struct device *dev, size_t size, gfp_t gfp,
303 __dma_alloc_remap(struct page *page, size_t size, gfp_t gfp, pgprot_t prot, in __dma_alloc_remap() argument
354 gfp_t gfp = GFP_KERNEL | GFP_DMA; in atomic_pool_init() local
366 ptr = __alloc_remap_buffer(NULL, atomic_pool_size, gfp, prot, in atomic_pool_init()
472 static void *__alloc_remap_buffer(struct device *dev, size_t size, gfp_t gfp, in __alloc_remap_buffer() argument
478 page = __dma_alloc_buffer(dev, size, gfp); in __alloc_remap_buffer()
484 ptr = __dma_alloc_remap(page, size, gfp, prot, caller); in __alloc_remap_buffer()
592 #define __alloc_remap_buffer(dev, size, gfp, prot, ret, c, wv) NULL argument
601 static void *__alloc_simple_buffer(struct device *dev, size_t size, gfp_t gfp, in __alloc_simple_buffer() argument
605 page = __dma_alloc_buffer(dev, size, gfp); in __alloc_simple_buffer()
616 gfp_t gfp, pgprot_t prot, bool is_coherent, in __dma_alloc() argument
637 gfp |= GFP_DMA; in __dma_alloc()
646 gfp &= ~(__GFP_COMP); in __dma_alloc()
653 addr = __alloc_simple_buffer(dev, size, gfp, &page); in __dma_alloc()
654 else if (dev_get_cma_area(dev) && (gfp & __GFP_DIRECT_RECLAIM)) in __dma_alloc()
658 addr = __alloc_simple_buffer(dev, size, gfp, &page); in __dma_alloc()
659 else if (!gfpflags_allow_blocking(gfp)) in __dma_alloc()
662 addr = __alloc_remap_buffer(dev, size, gfp, prot, &page, in __dma_alloc()
676 gfp_t gfp, struct dma_attrs *attrs) in arm_dma_alloc() argument
680 return __dma_alloc(dev, size, handle, gfp, prot, false, in arm_dma_alloc()
685 dma_addr_t *handle, gfp_t gfp, struct dma_attrs *attrs) in arm_coherent_dma_alloc() argument
687 return __dma_alloc(dev, size, handle, gfp, PAGE_KERNEL, true, in arm_coherent_dma_alloc()
1144 gfp_t gfp, struct dma_attrs *attrs) in __iommu_alloc_buffer() argument
1178 gfp |= __GFP_NOWARN | __GFP_HIGHMEM; in __iommu_alloc_buffer()
1189 pages[i] = alloc_pages(gfp | __GFP_NORETRY, order); in __iommu_alloc_buffer()
1199 pages[i] = alloc_pages(gfp, 0); in __iommu_alloc_buffer()
1254 __iommu_alloc_remap(struct page **pages, size_t size, gfp_t gfp, pgprot_t prot, in __iommu_alloc_remap() argument
1375 dma_addr_t *handle, gfp_t gfp, struct dma_attrs *attrs) in arm_iommu_alloc_attrs() argument
1384 if (!gfpflags_allow_blocking(gfp)) in arm_iommu_alloc_attrs()
1394 gfp &= ~(__GFP_COMP); in arm_iommu_alloc_attrs()
1396 pages = __iommu_alloc_buffer(dev, size, gfp, attrs); in arm_iommu_alloc_attrs()
1407 addr = __iommu_alloc_remap(pages, size, gfp, prot, in arm_iommu_alloc_attrs()