Lines Matching refs:safe_needed
189 static void *get_image_page(gfp_t gfp_mask, int safe_needed) in get_image_page() argument
194 if (safe_needed) in get_image_page()
296 int safe_needed; /* if set, only "safe" pages are allocated */ member
300 int safe_needed) in chain_init() argument
305 ca->safe_needed = safe_needed; in chain_init()
315 lp = ca->safe_needed ? __get_safe_page(ca->gfp_mask) : in chain_alloc()
440 static struct rtree_node *alloc_rtree_node(gfp_t gfp_mask, int safe_needed, in alloc_rtree_node() argument
450 node->data = get_image_page(gfp_mask, safe_needed); in alloc_rtree_node()
467 int safe_needed, struct chain_allocator *ca) in add_rtree_block() argument
484 node = alloc_rtree_node(gfp_mask, safe_needed, ca, in add_rtree_block()
495 block = alloc_rtree_node(gfp_mask, safe_needed, ca, &zone->leaves); in add_rtree_block()
507 node = alloc_rtree_node(gfp_mask, safe_needed, ca, in add_rtree_block()
537 int safe_needed, in create_zone_bm_rtree() argument
558 if (add_rtree_block(zone, gfp_mask, safe_needed, ca)) { in create_zone_bm_rtree()
683 int safe_needed) in memory_bm_create() argument
690 chain_init(&ca, gfp_mask, safe_needed); in memory_bm_create()
700 zone = create_zone_bm_rtree(gfp_mask, safe_needed, &ca, in memory_bm_create()
1988 static inline int get_highmem_buffer(int safe_needed) in get_highmem_buffer() argument
1990 buffer = get_image_page(GFP_ATOMIC, safe_needed); in get_highmem_buffer()
2018 static inline int get_highmem_buffer(int safe_needed) { return 0; } in get_highmem_buffer() argument