Lines Matching refs:offset
54 void *__genradix_ptr(struct __genradix *radix, size_t offset) in __genradix_ptr() argument
60 if (ilog2(offset) >= genradix_depth_shift(level)) in __genradix_ptr()
71 n = n->children[offset >> genradix_depth_shift(level)]; in __genradix_ptr()
72 offset &= genradix_depth_size(level) - 1; in __genradix_ptr()
75 return &n->data[offset]; in __genradix_ptr()
104 void *__genradix_ptr_alloc(struct __genradix *radix, size_t offset, in __genradix_ptr_alloc() argument
118 if (n && ilog2(offset) < genradix_depth_shift(level)) in __genradix_ptr_alloc()
139 &n->children[offset >> genradix_depth_shift(level)]; in __genradix_ptr_alloc()
140 offset &= genradix_depth_size(level) - 1; in __genradix_ptr_alloc()
158 return &n->data[offset]; in __genradix_ptr_alloc()
177 if (ilog2(iter->offset) >= genradix_depth_shift(level)) in __genradix_iter_peek()
183 i = (iter->offset >> genradix_depth_shift(level)) & in __genradix_iter_peek()
188 iter->offset = round_down(iter->offset + in __genradix_iter_peek()
191 iter->pos = (iter->offset >> PAGE_SHIFT) * in __genradix_iter_peek()
200 return &n->data[iter->offset & (PAGE_SIZE - 1)]; in __genradix_iter_peek()
220 size_t offset; in __genradix_prealloc() local
222 for (offset = 0; offset < size; offset += PAGE_SIZE) in __genradix_prealloc()
223 if (!__genradix_ptr_alloc(radix, offset, gfp_mask)) in __genradix_prealloc()