• Home
  • Raw
  • Download

Lines Matching refs:header

58 	uint32_t nr_entries = le32_to_cpu(n->header.nr_entries);  in node_shift()
59 uint32_t value_size = le32_to_cpu(n->header.value_size); in node_shift()
72 BUG_ON(nr_entries + shift > le32_to_cpu(n->header.max_entries)); in node_shift()
84 uint32_t nr_left = le32_to_cpu(left->header.nr_entries); in node_copy()
85 uint32_t value_size = le32_to_cpu(left->header.value_size); in node_copy()
86 BUG_ON(value_size != le32_to_cpu(right->header.value_size)); in node_copy()
90 BUG_ON(nr_left + shift > le32_to_cpu(left->header.max_entries)); in node_copy()
98 BUG_ON(shift > le32_to_cpu(right->header.max_entries)); in node_copy()
113 unsigned nr_entries = le32_to_cpu(n->header.nr_entries); in delete_at()
115 uint32_t value_size = le32_to_cpu(n->header.value_size); in delete_at()
128 n->header.nr_entries = cpu_to_le32(nr_entries - 1); in delete_at()
133 return le32_to_cpu(n->header.max_entries) / 3; in merge_threshold()
175 uint32_t nr_left = le32_to_cpu(left->header.nr_entries); in shift()
176 uint32_t nr_right = le32_to_cpu(right->header.nr_entries); in shift()
177 uint32_t max_entries = le32_to_cpu(left->header.max_entries); in shift()
178 uint32_t r_max_entries = le32_to_cpu(right->header.max_entries); in shift()
195 left->header.nr_entries = cpu_to_le32(nr_left - count); in shift()
196 right->header.nr_entries = cpu_to_le32(nr_right + count); in shift()
204 uint32_t nr_left = le32_to_cpu(left->header.nr_entries); in __rebalance2()
205 uint32_t nr_right = le32_to_cpu(right->header.nr_entries); in __rebalance2()
213 left->header.nr_entries = cpu_to_le32(nr_left + nr_right); in __rebalance2()
271 uint32_t max_entries = le32_to_cpu(left->header.max_entries); in delete_center_node()
276 left->header.nr_entries = cpu_to_le32(nr_left + shift); in delete_center_node()
283 right->header.nr_entries = cpu_to_le32(nr_right + shift); in delete_center_node()
303 uint32_t max_entries = le32_to_cpu(left->header.max_entries); in redistribute3()
346 uint32_t nr_left = le32_to_cpu(left->header.nr_entries); in __rebalance3()
347 uint32_t nr_center = le32_to_cpu(center->header.nr_entries); in __rebalance3()
348 uint32_t nr_right = le32_to_cpu(right->header.nr_entries); in __rebalance3()
352 BUG_ON(left->header.max_entries != center->header.max_entries); in __rebalance3()
353 BUG_ON(center->header.max_entries != right->header.max_entries); in __rebalance3()
424 *result = le32_to_cpu(n->header.nr_entries); in get_nr_entries()
439 if (le32_to_cpu(n->header.nr_entries) == 1) { in rebalance_children()
466 has_right_sibling = i < (le32_to_cpu(n->header.nr_entries) - 1); in rebalance_children()
485 (i >= le32_to_cpu(n->header.nr_entries)) || in do_leaf()
523 if (le32_to_cpu(n->header.flags) & LEAF_NODE) in remove_raw()
531 if (le32_to_cpu(n->header.flags) & LEAF_NODE) in remove_raw()
578 BUG_ON(index < 0 || index >= le32_to_cpu(n->header.nr_entries)); in dm_btree_remove()