Lines Matching refs:gfp
30 #include <linux/gfp.h>
564 * @gfp: GFP flags for the allocation.
574 static struct page *alloc_dma_pages(gfp_t gfp, size_t bytes, u64 phys_limit)
581 page = alloc_pages(gfp, order);
608 * @gfp: GFP flags for the allocation.
613 u64 phys_limit, gfp_t gfp)
621 if (!gfpflags_allow_blocking(gfp) && dev && force_dma_unencrypted(dev)) {
627 return dma_alloc_from_pool(dev, bytes, &vaddr, gfp,
631 gfp &= ~GFP_ZONEMASK;
633 gfp |= __GFP_DMA;
635 gfp |= __GFP_DMA32;
637 while (IS_ERR(page = alloc_dma_pages(gfp, bytes, phys_limit))) {
640 !(gfp & (__GFP_DMA32 | __GFP_DMA)))
641 gfp |= __GFP_DMA32;
643 !(gfp & __GFP_DMA))
644 gfp = (gfp & ~__GFP_DMA32) | __GFP_DMA;
675 * @gfp: GFP flags for the allocations.
685 unsigned int nareas, u64 phys_limit, gfp_t gfp)
699 pool = kzalloc(pool_size, gfp);
705 while (!(tlb = swiotlb_alloc_tlb(dev, tlb_size, phys_limit, gfp))) {
715 __get_free_pages(gfp, slot_order);