Lines Matching defs:before
342 * we will insert items before 0-th or nr-th item in dest buffer.
900 /* insert item into the leaf node in position before */
901 void leaf_insert_into_buf(struct buffer_info *bi, int before,
926 /* get item new item must be inserted before */
927 ih = item_head(bh, before);
930 last_loc = nr ? ih_location(&ih[nr - before - 1]) : bh->b_size;
931 unmoved_loc = before ? ih_location(ih - 1) : bh->b_size;
948 memmove(ih + 1, ih, IH_SIZE * (nr - before));
952 for (i = before; i < nr + 1; i++) {
953 unmoved_loc -= ih_item_len(&ih[i - before]);
954 put_ih_location(&ih[i - before], unmoved_loc);
1312 * before to item_num-th item
1316 int before,
1338 RFALSE(ih_entry_count(ih) < before,
1339 "10230: there are no entry we paste entries before. entry_count = %d, before = %d",
1340 ih_entry_count(ih), before);
1351 (before ? deh_location(&deh[before - 1])
1355 for (i = ih_entry_count(ih) - 1; i >= before; i--)
1361 for (i = 0; i < before; i++)
1376 deh += before;
1394 /* change item key if necessary (when we paste before 0-th entry */
1395 if (!before) {