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
214 if (nr_left + nr_right < threshold) { in __rebalance2()
218 node_copy(left, right, -nr_right); in __rebalance2()
219 left->header.nr_entries = cpu_to_le32(nr_left + nr_right); in __rebalance2()
231 unsigned target_left = (nr_left + nr_right) / 2; in __rebalance2()
272 uint32_t nr_left, uint32_t nr_center, uint32_t nr_right) in delete_center_node() argument
283 BUG_ON((nr_right + shift) > max_entries); in delete_center_node()
286 right->header.nr_entries = cpu_to_le32(nr_right + shift); in delete_center_node()
303 uint32_t nr_left, uint32_t nr_center, uint32_t nr_right) in redistribute3() argument
307 unsigned total = nr_left + nr_center + nr_right; in redistribute3()
315 if (nr_left < nr_right) { in redistribute3()
323 nr_right += s; in redistribute3()
327 shift(center, right, target_right - nr_right); in redistribute3()
330 s = target_right - nr_right; in redistribute3()
356 uint32_t nr_right = le32_to_cpu(right->header.nr_entries); in __rebalance3() local
363 if ((nr_left + nr_center + nr_right) < threshold) in __rebalance3()
365 nr_left, nr_center, nr_right); in __rebalance3()
368 nr_left, nr_center, nr_right); in __rebalance3()