Lines Matching refs:src_bi

31 					   struct buffer_info *src_bi,  in internal_define_dest_src_infos()  argument
35 memset(src_bi, 0, sizeof(struct buffer_info)); in internal_define_dest_src_infos()
41 src_bi->tb = tb; in internal_define_dest_src_infos()
42 src_bi->bi_bh = PATH_H_PBUFFER(tb->tb_path, h); in internal_define_dest_src_infos()
43 src_bi->bi_parent = PATH_H_PPARENT(tb->tb_path, h); in internal_define_dest_src_infos()
44 src_bi->bi_position = PATH_H_POSITION(tb->tb_path, h + 1); in internal_define_dest_src_infos()
53 src_bi->tb = tb; in internal_define_dest_src_infos()
54 src_bi->bi_bh = tb->L[h]; in internal_define_dest_src_infos()
55 src_bi->bi_parent = tb->FL[h]; in internal_define_dest_src_infos()
56 src_bi->bi_position = get_left_neighbor_position(tb, h); in internal_define_dest_src_infos()
68 src_bi->tb = tb; in internal_define_dest_src_infos()
69 src_bi->bi_bh = tb->R[h]; in internal_define_dest_src_infos()
70 src_bi->bi_parent = tb->FR[h]; in internal_define_dest_src_infos()
71 src_bi->bi_position = get_right_neighbor_position(tb, h); in internal_define_dest_src_infos()
81 src_bi->tb = tb; in internal_define_dest_src_infos()
82 src_bi->bi_bh = PATH_H_PBUFFER(tb->tb_path, h); in internal_define_dest_src_infos()
83 src_bi->bi_parent = PATH_H_PPARENT(tb->tb_path, h); in internal_define_dest_src_infos()
84 src_bi->bi_position = PATH_H_POSITION(tb->tb_path, h + 1); in internal_define_dest_src_infos()
395 struct buffer_info *src_bi, in internal_move_pointers_items() argument
402 internal_copy_pointers_items(dest_bi, src_bi->bi_bh, last_first, in internal_move_pointers_items()
412 internal_delete_pointers_items(src_bi, first_pointer, in internal_move_pointers_items()
419 B_NR_ITEMS(src_bi->bi_bh)) + 1) ? 0 : j - cpy_num + in internal_move_pointers_items()
422 internal_delete_pointers_items(src_bi, in internal_move_pointers_items()
496 struct buffer_info dest_bi, src_bi; in internal_shift_left() local
500 internal_define_dest_src_infos(mode, tb, h, &dest_bi, &src_bi, in internal_shift_left()
513 if (B_NR_ITEMS(src_bi.bi_bh) == pointer_amount - 1) { in internal_shift_left()
514 if (src_bi.bi_position /*src->b_item_order */ == 0) in internal_shift_left()
516 src_bi. in internal_shift_left()
519 replace_key(tb, cf, d_key_position, src_bi.bi_bh, in internal_shift_left()
523 internal_move_pointers_items(&dest_bi, &src_bi, FIRST_TO_LAST, in internal_shift_left()
537 struct buffer_info dest_bi, src_bi; in internal_shift1_left() local
542 &dest_bi, &src_bi, &d_key_position, &cf); in internal_shift1_left()
550 internal_move_pointers_items(&dest_bi, &src_bi, FIRST_TO_LAST, in internal_shift1_left()
568 struct buffer_info dest_bi, src_bi; in internal_shift_right() local
573 internal_define_dest_src_infos(mode, tb, h, &dest_bi, &src_bi, in internal_shift_right()
576 nr = B_NR_ITEMS(src_bi.bi_bh); in internal_shift_right()
585 RFALSE(src_bi.bi_bh != PATH_H_PBUFFER(tb->tb_path, h) /*tb->S[h] */ || in internal_shift_right()
588 src_bi.bi_bh, PATH_H_PBUFFER(tb->tb_path, h)); in internal_shift_right()
594 replace_key(tb, cf, d_key_position, src_bi.bi_bh, in internal_shift_right()
599 internal_move_pointers_items(&dest_bi, &src_bi, LAST_TO_FIRST, in internal_shift_right()
612 struct buffer_info dest_bi, src_bi; in internal_shift1_right() local
617 &dest_bi, &src_bi, &d_key_position, &cf); in internal_shift1_right()
624 internal_move_pointers_items(&dest_bi, &src_bi, LAST_TO_FIRST, in internal_shift1_right()
1043 struct buffer_info dest_bi, src_bi; in balance_internal() local
1054 src_bi.tb = tb; in balance_internal()
1055 src_bi.bi_bh = tbSh; in balance_internal()
1056 src_bi.bi_parent = PATH_H_PPARENT(tb->tb_path, h); in balance_internal()
1057 src_bi.bi_position = PATH_H_POSITION(tb->tb_path, h + 1); in balance_internal()
1068 internal_move_pointers_items(&dest_bi, &src_bi, in balance_internal()
1081 internal_move_pointers_items(&dest_bi, &src_bi, in balance_internal()
1102 internal_move_pointers_items(&dest_bi, &src_bi, in balance_internal()