Lines Matching refs:first
121 /* Do the first page. It may have an offset. */
352 * Now at the first iovec to load. Load each iovec
481 * entries for the first 'length' bytes of the 'original' list are
550 * 'sg' and the new first entry in 'original'. We also
571 * scatter/gather list 'first'. If there is not enough space in
572 * 'first', EFBIG is returned.
575 sglist_join(struct sglist *first, struct sglist *second)
585 * If the first entry in 'second' can be appended to the last entry
586 * in 'first' then set append to '1'.
589 flast = &first->sg_segs[first->sg_nseg - 1];
591 if (first->sg_nseg != 0 &&
595 /* Make sure 'first' has enough room. */
596 if (first->sg_nseg + second->sg_nseg - append > first->sg_maxseg)
599 /* Merge last in 'first' and first in 'second' if needed. */
603 /* Append new segments from 'second' to 'first'. */
604 bcopy(first->sg_segs + first->sg_nseg, second->sg_segs + append,
606 first->sg_nseg += second->sg_nseg - append;
649 * When we hit the first segment, store its index
650 * in 'fseg' and the offset into the first segment
701 /* Fixup first and last segments if needed. */