Lines Matching refs:gfp_mask

181 		      gfp_t gfp_mask, int node_id)  in mempool_init_node()  argument
191 gfp_mask, node_id); in mempool_init_node()
201 element = pool->alloc(gfp_mask, pool->pool_data); in mempool_init_node()
262 gfp_t gfp_mask, int node_id) in mempool_create_node() argument
266 pool = kzalloc_node(sizeof(*pool), gfp_mask, node_id); in mempool_create_node()
271 gfp_mask, node_id)) { in mempool_create_node()
374 void *mempool_alloc(mempool_t *pool, gfp_t gfp_mask) in mempool_alloc() argument
381 VM_WARN_ON_ONCE(gfp_mask & __GFP_ZERO); in mempool_alloc()
382 might_sleep_if(gfp_mask & __GFP_DIRECT_RECLAIM); in mempool_alloc()
384 gfp_mask |= __GFP_NOMEMALLOC; /* don't allocate emergency reserves */ in mempool_alloc()
385 gfp_mask |= __GFP_NORETRY; /* don't loop in __alloc_pages */ in mempool_alloc()
386 gfp_mask |= __GFP_NOWARN; /* failures are OK */ in mempool_alloc()
388 gfp_temp = gfp_mask & ~(__GFP_DIRECT_RECLAIM|__GFP_IO); in mempool_alloc()
414 if (gfp_temp != gfp_mask) { in mempool_alloc()
416 gfp_temp = gfp_mask; in mempool_alloc()
421 if (!(gfp_mask & __GFP_DIRECT_RECLAIM)) { in mempool_alloc()
508 void *mempool_alloc_slab(gfp_t gfp_mask, void *pool_data) in mempool_alloc_slab() argument
512 return kmem_cache_alloc(mem, gfp_mask); in mempool_alloc_slab()
527 void *mempool_kmalloc(gfp_t gfp_mask, void *pool_data) in mempool_kmalloc() argument
530 return kmalloc(size, gfp_mask); in mempool_kmalloc()
544 void *mempool_alloc_pages(gfp_t gfp_mask, void *pool_data) in mempool_alloc_pages() argument
547 return alloc_pages(gfp_mask, order); in mempool_alloc_pages()