Lines Matching defs:gfp
282 * @gfp: Memory allocation flags.
297 bool xas_nomem(struct xa_state *xas, gfp_t gfp)
304 gfp |= __GFP_ACCOUNT;
305 xas->xa_alloc = kmem_cache_alloc(radix_tree_node_cachep, gfp);
318 * @gfp: Memory allocation flags.
324 static bool __xas_nomem(struct xa_state *xas, gfp_t gfp)
334 gfp |= __GFP_ACCOUNT;
335 if (gfpflags_allow_blocking(gfp)) {
337 xas->xa_alloc = kmem_cache_alloc(radix_tree_node_cachep, gfp);
340 xas->xa_alloc = kmem_cache_alloc(radix_tree_node_cachep, gfp);
369 gfp_t gfp = GFP_NOWAIT | __GFP_NOWARN;
372 gfp |= __GFP_ACCOUNT;
374 node = kmem_cache_alloc(radix_tree_node_cachep, gfp);
993 * @gfp: Memory allocation flags.
1000 * Context: May sleep if @gfp flags permit.
1003 gfp_t gfp)
1019 node = kmem_cache_alloc(radix_tree_node_cachep, gfp);
1526 * @gfp: Memory allocation flags.
1533 * release and reacquire xa_lock if @gfp flags permit.
1536 void *__xa_store(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)
1550 } while (__xas_nomem(&xas, gfp));
1561 * @gfp: Memory allocation flags.
1568 * May sleep if the @gfp flags permit.
1573 void *xa_store(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)
1578 curr = __xa_store(xa, index, entry, gfp);
1591 * @gfp: Memory allocation flags.
1598 * release and reacquire xa_lock if @gfp flags permit.
1602 void *old, void *entry, gfp_t gfp)
1617 } while (__xas_nomem(&xas, gfp));
1628 * @gfp: Memory allocation flags.
1635 * release and reacquire xa_lock if @gfp flags permit.
1639 int __xa_insert(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)
1658 } while (__xas_nomem(&xas, gfp));
1702 * @gfp: Memory allocation flags.
1710 * if the @gfp flags permit.
1715 unsigned long last, void *entry, gfp_t gfp)
1744 } while (xas_nomem(&xas, gfp));
1797 * @gfp: Memory allocation flags.
1804 * release and reacquire xa_lock if @gfp flags permit.
1809 struct xa_limit limit, gfp_t gfp)
1830 } while (__xas_nomem(&xas, gfp));
1843 * @gfp: Memory allocation flags.
1852 * release and reacquire xa_lock if @gfp flags permit.
1858 struct xa_limit limit, u32 *next, gfp_t gfp)
1864 ret = __xa_alloc(xa, id, entry, limit, gfp);
1872 ret = __xa_alloc(xa, id, entry, limit, gfp);