Lines Matching refs:sg_segs

66 		(sgsave).ss_len = (sg)->sg_segs[(sgsave).sg_nseg - 1].ss_len; \
74 (sg)->sg_segs[(sgsave).sg_nseg - 1].ss_len = (sgsave).ss_len; \
131 ss = sg->sg_segs; in _sglist_append_buf()
136 ss = &sg->sg_segs[sg->sg_nseg - 1]; in _sglist_append_buf()
363 sg->sg_segs[0].ss_paddr = paddr; in sglist_append_phys()
364 sg->sg_segs[0].ss_len = len; in sglist_append_phys()
368 ss = &sg->sg_segs[sg->sg_nseg - 1]; in sglist_append_phys()
505 sg->sg_segs[0].ss_paddr = VM_PAGE_TO_PHYS(m[0]) + pgoff; in sglist_append_vmpages()
506 sg->sg_segs[0].ss_len = seglen; in sglist_append_vmpages()
512 ss = &sg->sg_segs[sg->sg_nseg - 1]; in sglist_append_vmpages()
565 ss = &sg->sg_segs[sg->sg_nseg - 1]; in sglist_append_sglist()
567 if (offset >= source->sg_segs[i].ss_len) { in sglist_append_sglist()
568 offset -= source->sg_segs[i].ss_len; in sglist_append_sglist()
571 seglen = source->sg_segs[i].ss_len - offset; in sglist_append_sglist()
575 source->sg_segs[i].ss_paddr + offset, seglen); in sglist_append_sglist()
727 bcopy(sg->sg_segs, new->sg_segs, sizeof(struct sglist_seg) * in sglist_clone()
744 space += sg->sg_segs[i].ss_len; in sglist_length()
781 space += original->sg_segs[i].ss_len; in sglist_split()
813 bcopy(original->sg_segs, sg->sg_segs, count * in sglist_split()
825 sg->sg_segs[count].ss_len -= split; in sglist_split()
826 original->sg_segs[count].ss_paddr = in sglist_split()
827 sg->sg_segs[count].ss_paddr + split; in sglist_split()
828 original->sg_segs[count].ss_len = split; in sglist_split()
833 bcopy(original->sg_segs + count, original->sg_segs, count * in sglist_split()
858 flast = &first->sg_segs[first->sg_nseg - 1]; in sglist_join()
859 sfirst = &second->sg_segs[0]; in sglist_join()
873 bcopy(first->sg_segs + first->sg_nseg, second->sg_segs + append, in sglist_join()
915 space += original->sg_segs[i].ss_len; in sglist_slice()
925 original->sg_segs[i].ss_len); in sglist_slice()
966 bcopy(original->sg_segs + fseg, sg->sg_segs, in sglist_slice()
972 sg->sg_segs[0].ss_paddr += foffs; in sglist_slice()
973 sg->sg_segs[0].ss_len -= foffs; in sglist_slice()
975 (long)sg->sg_segs[0].ss_paddr, sg->sg_segs[0].ss_len); in sglist_slice()
978 sg->sg_segs[count - 1].ss_len -= loffs; in sglist_slice()
980 sg->sg_segs[count - 1].ss_len); in sglist_slice()