• Home
  • Raw
  • Download

Lines Matching refs:first

312 				     int first, int cpy_num)  in leaf_copy_items_entirely()  argument
324 RFALSE(B_NR_ITEMS(src) - first < cpy_num, in leaf_copy_items_entirely()
326 B_NR_ITEMS(src), cpy_num, first); in leaf_copy_items_entirely()
358 memcpy(ih, item_head(src, first), cpy_num * IH_SIZE); in leaf_copy_items_entirely()
385 item_body(src, (first + cpy_num - 1)), in leaf_copy_items_entirely()
815 int first, int del_num);
828 int first, int del_num, int del_bytes) in leaf_delete_items() argument
836 RFALSE(first < 0 in leaf_delete_items()
837 || first + del_num > item_amount, in leaf_delete_items()
839 "no so much items (%d) to delete (only %d)", first, in leaf_delete_items()
840 first + del_num, item_amount); in leaf_delete_items()
845 if (first == 0 && del_num == item_amount && del_bytes == -1) { in leaf_delete_items()
853 leaf_delete_items_entirely(cur_bi, first, del_num); in leaf_delete_items()
860 leaf_delete_items_entirely(cur_bi, first, del_num - 1); in leaf_delete_items()
875 leaf_delete_items_entirely(cur_bi, first + 1, in leaf_delete_items()
1241 int first, int del_num) in leaf_delete_items_entirely() argument
1259 RFALSE(first < 0 || first + del_num > nr, in leaf_delete_items_entirely()
1260 "10220: first=%d, number=%d, there is %d items", first, del_num, in leaf_delete_items_entirely()
1263 if (first == 0 && del_num == nr) { in leaf_delete_items_entirely()
1271 ih = item_head(bh, first); in leaf_delete_items_entirely()
1274 j = (first == 0) ? bh->b_size : ih_location(ih - 1); in leaf_delete_items_entirely()
1277 last_loc = ih_location(&ih[nr - 1 - first]); in leaf_delete_items_entirely()
1284 memmove(ih, ih + del_num, (nr - first - del_num) * IH_SIZE); in leaf_delete_items_entirely()
1287 for (i = first; i < nr - del_num; i++) in leaf_delete_items_entirely()
1288 put_ih_location(&ih[i - first], in leaf_delete_items_entirely()
1289 ih_location(&ih[i - first]) + (j - in leaf_delete_items_entirely()