Lines Matching refs:count
127 s->count = 0; in init_ro_spine()
136 for (i = 0; i < s->count; i++) in exit_ro_spine()
144 if (s->count == 2) { in ro_step()
147 s->count--; in ro_step()
150 r = bn_read_lock(s->info, new_child, s->nodes + s->count); in ro_step()
152 s->count++; in ro_step()
159 BUG_ON(!s->count); in ro_pop()
160 --s->count; in ro_pop()
161 unlock_block(s->info, s->nodes[s->count]); in ro_pop()
168 BUG_ON(!s->count); in ro_node()
169 block = s->nodes[s->count - 1]; in ro_node()
179 s->count = 0; in init_shadow_spine()
186 for (i = 0; i < s->count; i++) in exit_shadow_spine()
195 if (s->count == 2) { in shadow_step()
198 s->count--; in shadow_step()
201 r = bn_shadow(s->info, b, vt, s->nodes + s->count); in shadow_step()
203 if (!s->count) in shadow_step()
206 s->count++; in shadow_step()
214 BUG_ON(!s->count); in shadow_current()
216 return s->nodes[s->count - 1]; in shadow_current()
221 BUG_ON(s->count != 2); in shadow_parent()
223 return s->count == 2 ? s->nodes[0] : NULL; in shadow_parent()
228 return s->count >= 2; in shadow_has_parent()
236 static void le64_inc(void *context, const void *value_le, unsigned int count) in le64_inc() argument
238 dm_tm_with_runs(context, value_le, count, dm_tm_inc_range); in le64_inc()
241 static void le64_dec(void *context, const void *value_le, unsigned int count) in le64_dec() argument
243 dm_tm_with_runs(context, value_le, count, dm_tm_dec_range); in le64_dec()