• Home
  • Raw
  • Download

Lines Matching refs:gfp_mask

180 		      gfp_t gfp_mask, int node_id)  in mempool_init_node()  argument
190 gfp_mask, node_id); in mempool_init_node()
200 element = pool->alloc(gfp_mask, pool->pool_data); in mempool_init_node()
261 gfp_t gfp_mask, int node_id) in mempool_create_node() argument
265 pool = kzalloc_node(sizeof(*pool), gfp_mask, node_id); in mempool_create_node()
270 gfp_mask, node_id)) { in mempool_create_node()
373 void *mempool_alloc(mempool_t *pool, gfp_t gfp_mask) in mempool_alloc() argument
380 VM_WARN_ON_ONCE(gfp_mask & __GFP_ZERO); in mempool_alloc()
381 might_sleep_if(gfp_mask & __GFP_DIRECT_RECLAIM); in mempool_alloc()
383 gfp_mask |= __GFP_NOMEMALLOC; /* don't allocate emergency reserves */ in mempool_alloc()
384 gfp_mask |= __GFP_NORETRY; /* don't loop in __alloc_pages */ in mempool_alloc()
385 gfp_mask |= __GFP_NOWARN; /* failures are OK */ in mempool_alloc()
387 gfp_temp = gfp_mask & ~(__GFP_DIRECT_RECLAIM|__GFP_IO); in mempool_alloc()
413 if (gfp_temp != gfp_mask) { in mempool_alloc()
415 gfp_temp = gfp_mask; in mempool_alloc()
420 if (!(gfp_mask & __GFP_DIRECT_RECLAIM)) { in mempool_alloc()
507 void *mempool_alloc_slab(gfp_t gfp_mask, void *pool_data) in mempool_alloc_slab() argument
511 return kmem_cache_alloc(mem, gfp_mask); in mempool_alloc_slab()
526 void *mempool_kmalloc(gfp_t gfp_mask, void *pool_data) in mempool_kmalloc() argument
529 return kmalloc(size, gfp_mask); in mempool_kmalloc()
543 void *mempool_alloc_pages(gfp_t gfp_mask, void *pool_data) in mempool_alloc_pages() argument
546 return alloc_pages(gfp_mask, order); in mempool_alloc_pages()