Lines Matching refs:safe_needed
191 static void *get_image_page(gfp_t gfp_mask, int safe_needed) in get_image_page() argument
196 if (safe_needed) in get_image_page()
298 int safe_needed; /* if set, only "safe" pages are allocated */ member
302 int safe_needed) in chain_init() argument
307 ca->safe_needed = safe_needed; in chain_init()
317 lp = ca->safe_needed ? __get_safe_page(ca->gfp_mask) : in chain_alloc()
442 static struct rtree_node *alloc_rtree_node(gfp_t gfp_mask, int safe_needed, in alloc_rtree_node() argument
452 node->data = get_image_page(gfp_mask, safe_needed); in alloc_rtree_node()
469 int safe_needed, struct chain_allocator *ca) in add_rtree_block() argument
486 node = alloc_rtree_node(gfp_mask, safe_needed, ca, in add_rtree_block()
497 block = alloc_rtree_node(gfp_mask, safe_needed, ca, &zone->leaves); in add_rtree_block()
509 node = alloc_rtree_node(gfp_mask, safe_needed, ca, in add_rtree_block()
539 int safe_needed, in create_zone_bm_rtree() argument
560 if (add_rtree_block(zone, gfp_mask, safe_needed, ca)) { in create_zone_bm_rtree()
685 int safe_needed) in memory_bm_create() argument
692 chain_init(&ca, gfp_mask, safe_needed); in memory_bm_create()
702 zone = create_zone_bm_rtree(gfp_mask, safe_needed, &ca, in memory_bm_create()
2037 static inline int get_highmem_buffer(int safe_needed) in get_highmem_buffer() argument
2039 buffer = get_image_page(GFP_ATOMIC, safe_needed); in get_highmem_buffer()
2067 static inline int get_highmem_buffer(int safe_needed) { return 0; } in get_highmem_buffer() argument