Lines Matching defs:radix
3 #include <linux/generic-radix-tree.h>
51 * Returns pointer to the specified byte @offset within @radix, or NULL if not
54 void *__genradix_ptr(struct __genradix *radix, size_t offset)
56 struct genradix_root *r = READ_ONCE(radix->root);
101 * Returns pointer to the specified byte @offset within @radix, allocating it if
104 void *__genradix_ptr_alloc(struct __genradix *radix, size_t offset,
107 struct genradix_root *v = READ_ONCE(radix->root);
131 if ((v = cmpxchg_release(&radix->root, r, new_root)) == r) {
163 struct __genradix *radix,
174 r = READ_ONCE(radix->root);
228 int __genradix_prealloc(struct __genradix *radix, size_t size,
234 if (!__genradix_ptr_alloc(radix, offset, gfp_mask))
241 void __genradix_free(struct __genradix *radix)
243 struct genradix_root *r = xchg(&radix->root, NULL);