Lines Matching refs:gfp
195 * @gfp: gfp flags when allocating the zbud pool structure
200 static struct zbud_pool *zbud_create_pool(gfp_t gfp)
205 pool = kzalloc(sizeof(struct zbud_pool), gfp);
231 * @gfp: gfp flags used if the pool needs to grow
239 * gfp should not set __GFP_HIGHMEM as highmem pages cannot be used
243 * gfp arguments are invalid or -ENOMEM if the pool was unable to allocate
246 static int zbud_alloc(struct zbud_pool *pool, size_t size, gfp_t gfp,
254 if (!size || (gfp & __GFP_HIGHMEM))
277 page = alloc_page(gfp);
383 static void *zbud_zpool_create(const char *name, gfp_t gfp)
385 return zbud_create_pool(gfp);
393 static int zbud_zpool_malloc(void *pool, size_t size, gfp_t gfp,
396 return zbud_alloc(pool, size, gfp, handle);