Lines Matching refs:gfp_mask
189 static void *get_image_page(gfp_t gfp_mask, int safe_needed) in get_image_page() argument
193 res = (void *)get_zeroed_page(gfp_mask); in get_image_page()
199 res = (void *)get_zeroed_page(gfp_mask); in get_image_page()
208 static void *__get_safe_page(gfp_t gfp_mask) in __get_safe_page() argument
217 return get_image_page(gfp_mask, PG_SAFE); in __get_safe_page()
220 unsigned long get_safe_page(gfp_t gfp_mask) in get_safe_page() argument
222 return (unsigned long)__get_safe_page(gfp_mask); in get_safe_page()
225 static struct page *alloc_image_page(gfp_t gfp_mask) in alloc_image_page() argument
229 page = alloc_page(gfp_mask); in alloc_image_page()
295 gfp_t gfp_mask; /* mask for allocating pages */ member
299 static void chain_init(struct chain_allocator *ca, gfp_t gfp_mask, in chain_init() argument
304 ca->gfp_mask = gfp_mask; in chain_init()
315 lp = ca->safe_needed ? __get_safe_page(ca->gfp_mask) : in chain_alloc()
316 get_image_page(ca->gfp_mask, PG_ANY); in chain_alloc()
435 static struct rtree_node *alloc_rtree_node(gfp_t gfp_mask, int safe_needed, in alloc_rtree_node() argument
445 node->data = get_image_page(gfp_mask, safe_needed); in alloc_rtree_node()
461 static int add_rtree_block(struct mem_zone_bm_rtree *zone, gfp_t gfp_mask, in add_rtree_block() argument
479 node = alloc_rtree_node(gfp_mask, safe_needed, ca, in add_rtree_block()
490 block = alloc_rtree_node(gfp_mask, safe_needed, ca, &zone->leaves); in add_rtree_block()
502 node = alloc_rtree_node(gfp_mask, safe_needed, ca, in add_rtree_block()
531 static struct mem_zone_bm_rtree *create_zone_bm_rtree(gfp_t gfp_mask, in create_zone_bm_rtree() argument
553 if (add_rtree_block(zone, gfp_mask, safe_needed, ca)) { in create_zone_bm_rtree()
620 static int create_mem_extents(struct list_head *list, gfp_t gfp_mask) in create_mem_extents() argument
641 new_ext = kzalloc(sizeof(struct mem_extent), gfp_mask); in create_mem_extents()
676 static int memory_bm_create(struct memory_bitmap *bm, gfp_t gfp_mask, in memory_bm_create() argument
684 chain_init(&ca, gfp_mask, safe_needed); in memory_bm_create()
687 error = create_mem_extents(&mem_extents, gfp_mask); in memory_bm_create()
694 zone = create_zone_bm_rtree(gfp_mask, safe_needed, &ca, in memory_bm_create()