Lines Matching refs:obj_size
101 static inline size_t __idx_to_offset(size_t idx, size_t obj_size)
103 if (__builtin_constant_p(obj_size))
104 BUILD_BUG_ON(obj_size > PAGE_SIZE);
106 BUG_ON(obj_size > PAGE_SIZE);
108 if (!is_power_of_2(obj_size)) {
109 size_t objs_per_page = PAGE_SIZE / obj_size;
112 (idx % objs_per_page) * obj_size;
114 return idx * obj_size;
186 size_t obj_size)
188 if (iter->offset + obj_size < iter->offset) {
194 iter->offset += obj_size;
196 if (!is_power_of_2(obj_size) &&
197 (iter->offset & (PAGE_SIZE - 1)) + obj_size > PAGE_SIZE)