Lines Matching defs:seg
129 PhysicalSegment seg = { 0, 0 };
131 while ((seg.location) || (fromPosition < inDescriptorLength))
133 if (!seg.location)
135 seg.location = inDescriptor->getPhysicalSegment(
136 fromPosition, (IOByteCount*)&seg.length);
137 assert(seg.location);
138 assert(seg.length);
139 fromPosition += seg.length;
144 curTransferSize += seg.length;
145 curSeg = seg;
146 seg.location = 0;
148 else if ((curSeg.location + curSeg.length == seg.location))
150 curTransferSize += seg.length;
151 curSeg.length += seg.length;
152 seg.location = 0;
155 if (!seg.location)
159 seg.location = curSeg.location + maxSegmentSize;
160 seg.length = curSeg.length - maxSegmentSize;
161 curTransferSize -= seg.length;
162 curSeg.length -= seg.length;
173 if (seg.location)