Lines Matching refs:gfp
78 static gfp_t massage_gfp_flags(const struct device *dev, gfp_t gfp) in massage_gfp_flags() argument
83 gfp &= ~(__GFP_DMA | __GFP_DMA32 | __GFP_HIGHMEM); in massage_gfp_flags()
110 gfp |= __GFP_NORETRY; in massage_gfp_flags()
112 return gfp | dma_flag; in massage_gfp_flags()
116 dma_addr_t * dma_handle, gfp_t gfp) in mips_dma_alloc_noncoherent() argument
120 gfp = massage_gfp_flags(dev, gfp); in mips_dma_alloc_noncoherent()
122 ret = (void *) __get_free_pages(gfp, get_order(size)); in mips_dma_alloc_noncoherent()
133 dma_addr_t * dma_handle, gfp_t gfp, struct dma_attrs *attrs) in mips_dma_alloc_coherent() argument
144 return mips_dma_alloc_noncoherent(dev, size, dma_handle, gfp); in mips_dma_alloc_coherent()
146 gfp = massage_gfp_flags(dev, gfp); in mips_dma_alloc_coherent()
148 if (IS_ENABLED(CONFIG_DMA_CMA) && gfpflags_allow_blocking(gfp)) in mips_dma_alloc_coherent()
152 page = alloc_pages(gfp, get_order(size)); in mips_dma_alloc_coherent()