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 dma_alloc_noncoherent() argument
120 gfp = massage_gfp_flags(dev, gfp); in dma_alloc_noncoherent()
122 ret = (void *) __get_free_pages(gfp, get_order(size)); in dma_alloc_noncoherent()
134 dma_addr_t * dma_handle, gfp_t gfp, struct dma_attrs *attrs) in mips_dma_alloc_coherent() argument
143 gfp = massage_gfp_flags(dev, gfp); in mips_dma_alloc_coherent()
145 if (IS_ENABLED(CONFIG_DMA_CMA) && !(gfp & GFP_ATOMIC)) in mips_dma_alloc_coherent()
149 page = alloc_pages(gfp, get_order(size)); in mips_dma_alloc_coherent()