Lines Matching refs:_radix
85 #define genradix_init(_radix) \ argument
87 *(_radix) = (typeof(*_radix)) __GENRADIX_INITIALIZER; \
98 #define genradix_free(_radix) __genradix_free(&(_radix)->tree) argument
117 #define __genradix_cast(_radix) (typeof((_radix)->type[0]) *) argument
118 #define __genradix_obj_size(_radix) sizeof((_radix)->type[0]) argument
119 #define __genradix_idx_to_offset(_radix, _idx) \ argument
120 __idx_to_offset(_idx, __genradix_obj_size(_radix))
131 #define genradix_ptr(_radix, _idx) \ argument
132 (__genradix_cast(_radix) \
133 __genradix_ptr(&(_radix)->tree, \
134 __genradix_idx_to_offset(_radix, _idx)))
147 #define genradix_ptr_alloc(_radix, _idx, _gfp) \ argument
148 (__genradix_cast(_radix) \
149 __genradix_ptr_alloc(&(_radix)->tree, \
150 __genradix_idx_to_offset(_radix, _idx), \
163 #define genradix_iter_init(_radix, _idx) \ argument
166 .offset = __genradix_idx_to_offset((_radix), (_idx)),\
179 #define genradix_iter_peek(_iter, _radix) \ argument
180 (__genradix_cast(_radix) \
181 __genradix_iter_peek(_iter, &(_radix)->tree, \
182 PAGE_SIZE / __genradix_obj_size(_radix)))
196 #define genradix_iter_advance(_iter, _radix) \ argument
197 __genradix_iter_advance(_iter, __genradix_obj_size(_radix))
199 #define genradix_for_each_from(_radix, _iter, _p, _start) \ argument
200 for (_iter = genradix_iter_init(_radix, _start); \
201 (_p = genradix_iter_peek(&_iter, _radix)) != NULL; \
202 genradix_iter_advance(&_iter, _radix))
213 #define genradix_for_each(_radix, _iter, _p) \ argument
214 genradix_for_each_from(_radix, _iter, _p, 0)
226 #define genradix_prealloc(_radix, _nr, _gfp) \ argument
227 __genradix_prealloc(&(_radix)->tree, \
228 __genradix_idx_to_offset(_radix, _nr + 1),\