Lines Matching refs:vi
61 struct virtual_item *vi, in sd_create_vi() argument
64 vi->vi_index = TYPE_STAT_DATA; in sd_create_vi()
68 static int sd_check_left(struct virtual_item *vi, int free, in sd_check_left() argument
75 static int sd_check_right(struct virtual_item *vi, int free) in sd_check_right() argument
80 static int sd_part_size(struct virtual_item *vi, int first, int count) in sd_part_size() argument
86 static int sd_unit_num(struct virtual_item *vi) in sd_unit_num() argument
88 return vi->vi_item_len - IH_SIZE; in sd_unit_num()
91 static void sd_print_vi(struct virtual_item *vi) in sd_print_vi() argument
95 vi->vi_index, vi->vi_type, vi->vi_ih); in sd_print_vi()
151 struct virtual_item *vi, in direct_create_vi() argument
154 vi->vi_index = TYPE_DIRECT; in direct_create_vi()
158 static int direct_check_left(struct virtual_item *vi, int free, in direct_check_left() argument
167 static int direct_check_right(struct virtual_item *vi, int free) in direct_check_right() argument
169 return direct_check_left(vi, free, 0, 0); in direct_check_right()
172 static int direct_part_size(struct virtual_item *vi, int first, int count) in direct_part_size() argument
177 static int direct_unit_num(struct virtual_item *vi) in direct_unit_num() argument
179 return vi->vi_item_len - IH_SIZE; in direct_unit_num()
182 static void direct_print_vi(struct virtual_item *vi) in direct_print_vi() argument
186 vi->vi_index, vi->vi_type, vi->vi_ih); in direct_print_vi()
289 struct virtual_item *vi, in indirect_create_vi() argument
292 vi->vi_index = TYPE_INDIRECT; in indirect_create_vi()
296 static int indirect_check_left(struct virtual_item *vi, int free, in indirect_check_left() argument
305 static int indirect_check_right(struct virtual_item *vi, int free) in indirect_check_right() argument
307 return indirect_check_left(vi, free, 0, 0); in indirect_check_right()
314 static int indirect_part_size(struct virtual_item *vi, int first, int units) in indirect_part_size() argument
320 static int indirect_unit_num(struct virtual_item *vi) in indirect_unit_num() argument
323 return vi->vi_item_len - IH_SIZE; in indirect_unit_num()
326 static void indirect_print_vi(struct virtual_item *vi) in indirect_print_vi() argument
330 vi->vi_index, vi->vi_type, vi->vi_ih); in indirect_print_vi()
459 struct virtual_item *vi, in direntry_create_vi() argument
462 struct direntry_uarea *dir_u = vi->vi_uarea; in direntry_create_vi()
467 vi->vi_index = TYPE_DIRENTRY; in direntry_create_vi()
469 BUG_ON(!(vi->vi_ih) || !vi->vi_item); in direntry_create_vi()
472 if (le_ih_k_offset(vi->vi_ih) == DOT_OFFSET) in direntry_create_vi()
475 deh = (struct reiserfs_de_head *)(vi->vi_item); in direntry_create_vi()
478 dir_u->entry_count = ih_entry_count(vi->vi_ih) + in direntry_create_vi()
486 (j ? deh_location(&deh[j - 1]) : ih_item_len(vi->vi_ih)) - in direntry_create_vi()
505 if (l + IH_SIZE != vi->vi_item_len + in direntry_create_vi()
525 static int direntry_check_left(struct virtual_item *vi, int free, in direntry_check_left() argument
530 struct direntry_uarea *dir_u = vi->vi_uarea; in direntry_check_left()
555 static int direntry_check_right(struct virtual_item *vi, int free) in direntry_check_right() argument
559 struct direntry_uarea *dir_u = vi->vi_uarea; in direntry_check_right()
580 static int direntry_part_size(struct virtual_item *vi, int first, int count) in direntry_part_size() argument
584 struct direntry_uarea *dir_u = vi->vi_uarea; in direntry_part_size()
599 static int direntry_unit_num(struct virtual_item *vi) in direntry_unit_num() argument
601 struct direntry_uarea *dir_u = vi->vi_uarea; in direntry_unit_num()
606 static void direntry_print_vi(struct virtual_item *vi) in direntry_print_vi() argument
609 struct direntry_uarea *dir_u = vi->vi_uarea; in direntry_print_vi()
613 vi->vi_index, vi->vi_type, vi->vi_ih, dir_u->flags); in direntry_print_vi()
670 struct virtual_item *vi, in errcatch_create_vi() argument
683 static int errcatch_check_left(struct virtual_item *vi, int free, in errcatch_check_left() argument
691 static int errcatch_check_right(struct virtual_item *vi, int free) in errcatch_check_right() argument
698 static int errcatch_part_size(struct virtual_item *vi, int first, int count) in errcatch_part_size() argument
705 static int errcatch_unit_num(struct virtual_item *vi) in errcatch_unit_num() argument
712 static void errcatch_print_vi(struct virtual_item *vi) in errcatch_print_vi() argument