Lines Matching refs:curSeg
137 PhysicalSegment curSeg = { 0, 0 }; in genPhysicalSegments() local
152 if (!curSeg.location) { in genPhysicalSegments()
154 curSeg = seg; in genPhysicalSegments()
156 } else if ((curSeg.location + curSeg.length == seg.location)) { in genPhysicalSegments()
158 curSeg.length += seg.length; in genPhysicalSegments()
163 if ((curSeg.length > maxSegmentSize)) { in genPhysicalSegments()
164 seg.location = curSeg.location + maxSegmentSize; in genPhysicalSegments()
165 seg.length = curSeg.length - maxSegmentSize; in genPhysicalSegments()
167 curSeg.length -= seg.length; in genPhysicalSegments()
171 curSeg.length -= curTransferSize - inMaxTransferSize; in genPhysicalSegments()
181 (*outSeg)(curSeg, inSegments, curSegIndex++); in genPhysicalSegments()
182 curSeg.location = 0; in genPhysicalSegments()
186 if (curSeg.location) { in genPhysicalSegments()
187 (*outSeg)(curSeg, inSegments, curSegIndex++); in genPhysicalSegments()