Lines Matching refs:cpy_num

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()
327 RFALSE(cpy_num < 0, "vs-10110: can not copy negative amount of items"); in leaf_copy_items_entirely()
334 if (cpy_num == 0) in leaf_copy_items_entirely()
350 RFALSE(blkh_free_space(blkh) < cpy_num * IH_SIZE, in leaf_copy_items_entirely()
352 B_FREE_SPACE(dest), cpy_num * IH_SIZE); in leaf_copy_items_entirely()
355 memmove(ih + cpy_num, ih, (nr - dest_before) * IH_SIZE); in leaf_copy_items_entirely()
358 memcpy(ih, item_head(src, first), cpy_num * IH_SIZE); in leaf_copy_items_entirely()
360 free_space -= (IH_SIZE * cpy_num); in leaf_copy_items_entirely()
365 for (i = dest_before; i < nr + cpy_num; i++) { in leaf_copy_items_entirely()
371 last_loc = ih_location(&ih[nr + cpy_num - 1 - dest_before]); in leaf_copy_items_entirely()
372 last_inserted_loc = ih_location(&ih[cpy_num - 1]); in leaf_copy_items_entirely()
385 item_body(src, (first + cpy_num - 1)), in leaf_copy_items_entirely()
389 set_blkh_nr_item(blkh, nr + cpy_num); in leaf_copy_items_entirely()
403 IH_SIZE * cpy_num)); in leaf_copy_items_entirely()
522 int last_first, int cpy_num, int cpy_bytes) in leaf_copy_items() argument
531 RFALSE(B_NR_ITEMS(src) < cpy_num, in leaf_copy_items()
533 cpy_num); in leaf_copy_items()
534 RFALSE(cpy_num < 0, "vs-10240: cpy_num < 0 (%d)", cpy_num); in leaf_copy_items()
536 if (cpy_num == 0) in leaf_copy_items()
542 if (cpy_num == 1) in leaf_copy_items()
552 cpy_num -= i; in leaf_copy_items()
553 if (cpy_num == 0) in leaf_copy_items()
562 pos, cpy_num); in leaf_copy_items()
569 pos, cpy_num - 1); in leaf_copy_items()
576 cpy_num + pos - 1, cpy_bytes); in leaf_copy_items()
581 if (cpy_num == 1) in leaf_copy_items()
593 cpy_num -= i; in leaf_copy_items()
594 if (cpy_num == 0) in leaf_copy_items()
597 pos = src_nr_item - cpy_num - i; in leaf_copy_items()
604 pos, cpy_num); in leaf_copy_items()
611 pos + 1, cpy_num - 1); in leaf_copy_items()