Lines Matching defs:gfp
141 static void *zbud_zpool_create(const char *name, gfp_t gfp,
147 pool = zbud_create_pool(gfp, zpool_ops ? &zbud_zpool_ops : NULL);
160 static int zbud_zpool_malloc(void *pool, size_t size, gfp_t gfp,
163 return zbud_alloc(pool, size, gfp, handle);
301 * @gfp: gfp flags when allocating the zbud pool structure
307 struct zbud_pool *zbud_create_pool(gfp_t gfp, const struct zbud_ops *ops)
312 pool = kzalloc(sizeof(struct zbud_pool), gfp);
340 * @gfp: gfp flags used if the pool needs to grow
348 * gfp should not set __GFP_HIGHMEM as highmem pages cannot be used
352 * gfp arguments are invalid or -ENOMEM if the pool was unable to allocate
355 int zbud_alloc(struct zbud_pool *pool, size_t size, gfp_t gfp,
363 if (!size || (gfp & __GFP_HIGHMEM))
386 page = alloc_page(gfp);