Lines Matching refs:new_end
3921 unsigned char new_end) in mas_wr_node_store() argument
3932 if (!mte_is_root(mas->node) && (new_end <= mt_min_slots[wr_mas->type]) && in mas_wr_node_store()
3986 if (new_end < node_pivots) in mas_wr_node_store()
3987 dst_pivots[new_end] = mas->max; in mas_wr_node_store()
3990 mas_leaf_set_meta(mas, newnode, dst_pivots, maple_leaf_64, new_end); in mas_wr_node_store()
4110 unsigned char new_end = wr_mas->node_end + 2; in mas_wr_new_end() local
4112 new_end -= wr_mas->offset_end - mas->offset; in mas_wr_new_end()
4114 new_end--; in mas_wr_new_end()
4117 new_end--; in mas_wr_new_end()
4119 return new_end; in mas_wr_new_end()
4134 unsigned char new_end) in mas_wr_append() argument
4151 if (new_end < mt_pivots[wr_mas->type]) { in mas_wr_append()
4152 wr_mas->pivots[new_end] = wr_mas->pivots[end]; in mas_wr_append()
4153 ma_set_meta(wr_mas->node, wr_mas->type, 0, new_end); in mas_wr_append()
4157 if (new_end == end + 1) { in mas_wr_append()
4160 rcu_assign_pointer(slots[new_end], wr_mas->entry); in mas_wr_append()
4162 mas->offset = new_end; in mas_wr_append()
4165 rcu_assign_pointer(slots[new_end], wr_mas->content); in mas_wr_append()
4171 rcu_assign_pointer(slots[new_end], wr_mas->content); in mas_wr_append()
4181 trace_ma_write(__func__, mas, new_end, wr_mas->entry); in mas_wr_append()
4204 unsigned char new_end; in mas_wr_modify() local
4218 new_end = mas_wr_new_end(wr_mas); in mas_wr_modify()
4219 if (new_end >= mt_slots[wr_mas->type]) in mas_wr_modify()
4223 if (mas_wr_append(wr_mas, new_end)) in mas_wr_modify()
4226 if (new_end == wr_mas->node_end && mas_wr_slot_store(wr_mas)) in mas_wr_modify()
4229 if (mas_wr_node_store(wr_mas, new_end)) in mas_wr_modify()