Lines Matching defs:first
123 /* Do the first page. It may have an offset. */
392 * Now at the first iovec to load. Load each iovec
521 * entries for the first 'length' bytes of the 'original' list are
590 * 'sg' and the new first entry in 'original'. We also
611 * scatter/gather list 'first'. If there is not enough space in
612 * 'first', EFBIG is returned.
615 sglist_join(struct sglist *first, struct sglist *second)
625 * If the first entry in 'second' can be appended to the last entry
626 * in 'first' then set append to '1'.
629 flast = &first->sg_segs[first->sg_nseg - 1];
631 if (first->sg_nseg != 0 &&
635 /* Make sure 'first' has enough room. */
636 if (first->sg_nseg + second->sg_nseg - append > first->sg_maxseg)
639 /* Merge last in 'first' and first in 'second' if needed. */
643 /* Append new segments from 'second' to 'first'. */
644 bcopy(first->sg_segs + first->sg_nseg, second->sg_segs + append,
646 first->sg_nseg += second->sg_nseg - append;
689 * When we hit the first segment, store its index
690 * in 'fseg' and the offset into the first segment
741 /* Fixup first and last segments if needed. */