Lines Matching refs:gfp
86 gfp_t gfp, unsigned long attrs) in dmam_alloc_attrs() argument
91 dr = devres_alloc(dmam_release, sizeof(*dr), gfp); in dmam_alloc_attrs()
95 vaddr = dma_alloc_attrs(dev, size, dma_handle, gfp, attrs); in dmam_alloc_attrs()
550 dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp) in __dma_alloc_pages() argument
556 if (WARN_ON_ONCE(gfp & (__GFP_DMA | __GFP_DMA32 | __GFP_HIGHMEM))) in __dma_alloc_pages()
561 return dma_direct_alloc_pages(dev, size, dma_handle, dir, gfp); in __dma_alloc_pages()
564 return ops->alloc_pages(dev, size, dma_handle, dir, gfp); in __dma_alloc_pages()
568 dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp) in dma_alloc_pages() argument
570 struct page *page = __dma_alloc_pages(dev, size, dma_handle, dir, gfp); in dma_alloc_pages()
612 enum dma_data_direction dir, gfp_t gfp) in alloc_single_sgt() argument
617 sgt = kmalloc(sizeof(*sgt), gfp); in alloc_single_sgt()
620 if (sg_alloc_table(sgt, 1, gfp)) in alloc_single_sgt()
622 page = __dma_alloc_pages(dev, size, &sgt->sgl->dma_address, dir, gfp); in alloc_single_sgt()
636 enum dma_data_direction dir, gfp_t gfp, unsigned long attrs) in dma_alloc_noncontiguous() argument
645 sgt = ops->alloc_noncontiguous(dev, size, dir, gfp, attrs); in dma_alloc_noncontiguous()
647 sgt = alloc_single_sgt(dev, size, dir, gfp); in dma_alloc_noncontiguous()