Lines Matching refs:gfp_mask
95 static void *get_image_page(gfp_t gfp_mask, int safe_needed) in get_image_page() argument
99 res = (void *)get_zeroed_page(gfp_mask); in get_image_page()
105 res = (void *)get_zeroed_page(gfp_mask); in get_image_page()
114 unsigned long get_safe_page(gfp_t gfp_mask) in get_safe_page() argument
116 return (unsigned long)get_image_page(gfp_mask, PG_SAFE); in get_safe_page()
119 static struct page *alloc_image_page(gfp_t gfp_mask) in alloc_image_page() argument
123 page = alloc_page(gfp_mask); in alloc_image_page()
189 gfp_t gfp_mask; /* mask for allocating pages */ member
194 chain_init(struct chain_allocator *ca, gfp_t gfp_mask, int safe_needed) in chain_init() argument
198 ca->gfp_mask = gfp_mask; in chain_init()
209 lp = get_image_page(ca->gfp_mask, ca->safe_needed); in chain_alloc()
344 static int create_mem_extents(struct list_head *list, gfp_t gfp_mask) in create_mem_extents() argument
365 new_ext = kzalloc(sizeof(struct mem_extent), gfp_mask); in create_mem_extents()
401 memory_bm_create(struct memory_bitmap *bm, gfp_t gfp_mask, int safe_needed) in memory_bm_create() argument
408 chain_init(&ca, gfp_mask, safe_needed); in memory_bm_create()
411 error = create_mem_extents(&mem_extents, gfp_mask); in memory_bm_create()
427 bb->data = get_image_page(gfp_mask, safe_needed); in memory_bm_create()