Lines Matching refs:gfp
104 gfp_t gfp) in dma_alloc_coherent_mask() argument
110 dma_mask = (gfp & GFP_DMA) ? DMA_BIT_MASK(24) : DMA_BIT_MASK(32); in dma_alloc_coherent_mask()
115 static inline gfp_t dma_alloc_coherent_gfp_flags(struct device *dev, gfp_t gfp) in dma_alloc_coherent_gfp_flags() argument
117 unsigned long dma_mask = dma_alloc_coherent_mask(dev, gfp); in dma_alloc_coherent_gfp_flags()
120 gfp |= GFP_DMA; in dma_alloc_coherent_gfp_flags()
122 if (dma_mask <= DMA_BIT_MASK(32) && !(gfp & GFP_DMA)) in dma_alloc_coherent_gfp_flags()
123 gfp |= GFP_DMA32; in dma_alloc_coherent_gfp_flags()
125 return gfp; in dma_alloc_coherent_gfp_flags()
132 gfp_t gfp, struct dma_attrs *attrs) in dma_alloc_attrs() argument
137 gfp &= ~(__GFP_DMA | __GFP_HIGHMEM | __GFP_DMA32); in dma_alloc_attrs()
152 dma_alloc_coherent_gfp_flags(dev, gfp), attrs); in dma_alloc_attrs()