Lines Matching refs:nr_right
176 uint32_t nr_right = le32_to_cpu(right->header.nr_entries); in shift() local
182 BUG_ON(nr_right + count > max_entries); in shift()
196 right->header.nr_entries = cpu_to_le32(nr_right + count); in shift()
205 uint32_t nr_right = le32_to_cpu(right->header.nr_entries); in __rebalance2() local
208 if (nr_left + nr_right < threshold) { in __rebalance2()
212 node_copy(left, right, -nr_right); in __rebalance2()
213 left->header.nr_entries = cpu_to_le32(nr_left + nr_right); in __rebalance2()
225 unsigned target_left = (nr_left + nr_right) / 2; in __rebalance2()
269 uint32_t nr_left, uint32_t nr_center, uint32_t nr_right) in delete_center_node() argument
280 BUG_ON((nr_right + shift) > max_entries); in delete_center_node()
283 right->header.nr_entries = cpu_to_le32(nr_right + shift); in delete_center_node()
300 uint32_t nr_left, uint32_t nr_center, uint32_t nr_right) in redistribute3() argument
304 unsigned target = (nr_left + nr_center + nr_right) / 3; in redistribute3()
307 if (nr_left < nr_right) { in redistribute3()
315 nr_right += s; in redistribute3()
319 shift(center, right, target - nr_right); in redistribute3()
322 s = target - nr_right; in redistribute3()
348 uint32_t nr_right = le32_to_cpu(right->header.nr_entries); in __rebalance3() local
355 if ((nr_left + nr_center + nr_right) < threshold) in __rebalance3()
357 nr_left, nr_center, nr_right); in __rebalance3()
360 nr_left, nr_center, nr_right); in __rebalance3()