Lines Matching refs:nr_entries
61 uint32_t nr_entries = le32_to_cpu(n->header.nr_entries); in node_shift() local
66 BUG_ON(shift > nr_entries); in node_shift()
70 (nr_entries - shift) * sizeof(__le64)); in node_shift()
73 (nr_entries - shift) * value_size); in node_shift()
75 BUG_ON(nr_entries + shift > le32_to_cpu(n->header.max_entries)); in node_shift()
78 nr_entries * sizeof(__le64)); in node_shift()
81 nr_entries * value_size); in node_shift()
87 uint32_t nr_left = le32_to_cpu(left->header.nr_entries); in node_copy()
129 unsigned nr_entries = le32_to_cpu(n->header.nr_entries); in delete_at() local
130 unsigned nr_to_copy = nr_entries - (index + 1); in delete_at()
132 BUG_ON(index >= nr_entries); in delete_at()
144 n->header.nr_entries = cpu_to_le32(nr_entries - 1); in delete_at()
192 uint32_t nr_left = le32_to_cpu(left->header.nr_entries); in shift()
193 uint32_t nr_right = le32_to_cpu(right->header.nr_entries); in shift()
227 left->header.nr_entries = cpu_to_le32(nr_left - count); in shift()
228 right->header.nr_entries = cpu_to_le32(nr_right + count); in shift()
239 uint32_t nr_left = le32_to_cpu(left->header.nr_entries); in __rebalance2()
240 uint32_t nr_right = le32_to_cpu(right->header.nr_entries); in __rebalance2()
254 left->header.nr_entries = cpu_to_le32(nr_left + nr_right); in __rebalance2()
321 left->header.nr_entries = cpu_to_le32(nr_left + shift); in delete_center_node()
333 right->header.nr_entries = cpu_to_le32(nr_right + shift); in delete_center_node()
421 uint32_t nr_left = le32_to_cpu(left->header.nr_entries); in __rebalance3()
422 uint32_t nr_center = le32_to_cpu(center->header.nr_entries); in __rebalance3()
423 uint32_t nr_right = le32_to_cpu(right->header.nr_entries); in __rebalance3()
487 if (le32_to_cpu(n->header.nr_entries) == 1) { in rebalance_children()
508 has_right_sibling = i < (le32_to_cpu(n->header.nr_entries) - 1); in rebalance_children()
527 (i >= le32_to_cpu(n->header.nr_entries)) || in do_leaf()
614 BUG_ON(index < 0 || index >= le32_to_cpu(n->header.nr_entries)); in dm_btree_remove()
719 if (index >= le32_to_cpu(n->header.nr_entries)) { in remove_one()