Lines Matching refs:n_rem
763 int n_shift, n_rem, r_zeroes_number, version; in balance_leaf_paste_right_shift() local
795 n_rem = tb->insert_size[0] - tb->rbytes; in balance_leaf_paste_right_shift()
796 if (n_rem < 0) in balance_leaf_paste_right_shift()
797 n_rem = 0; in balance_leaf_paste_right_shift()
799 temp_rem = n_rem; in balance_leaf_paste_right_shift()
805 temp_rem = n_rem << shift; in balance_leaf_paste_right_shift()
816 if (n_rem > tb->zeroes_num) { in balance_leaf_paste_right_shift()
818 r_body = body + n_rem - tb->zeroes_num; in balance_leaf_paste_right_shift()
821 r_zeroes_number = tb->zeroes_num - n_rem; in balance_leaf_paste_right_shift()
825 leaf_paste_in_buffer(&bi, 0, n_shift, tb->insert_size[0] - n_rem, in balance_leaf_paste_right_shift()
831 tb->insert_size[0] = n_rem; in balance_leaf_paste_right_shift()
832 if (!n_rem) in balance_leaf_paste_right_shift()
1073 int n_shift, n_rem, r_zeroes_number, shift; in balance_leaf_new_nodes_paste_shift() local
1106 n_rem = tb->insert_size[0] - tb->sbytes[i]; in balance_leaf_new_nodes_paste_shift()
1107 if (n_rem < 0) in balance_leaf_new_nodes_paste_shift()
1108 n_rem = 0; in balance_leaf_new_nodes_paste_shift()
1112 if (n_rem > tb->zeroes_num) { in balance_leaf_new_nodes_paste_shift()
1114 r_body = body + n_rem - tb->zeroes_num; in balance_leaf_new_nodes_paste_shift()
1117 r_zeroes_number = tb->zeroes_num - n_rem; in balance_leaf_new_nodes_paste_shift()
1121 leaf_paste_in_buffer(&bi, 0, n_shift, tb->insert_size[0] - n_rem, in balance_leaf_new_nodes_paste_shift()
1130 add_le_ih_k_offset(tmp, n_rem << shift); in balance_leaf_new_nodes_paste_shift()
1132 tb->insert_size[0] = n_rem; in balance_leaf_new_nodes_paste_shift()
1133 if (!n_rem) in balance_leaf_new_nodes_paste_shift()