Home
last modified time | relevance | path

Searched refs:curSeg (Results 1 – 2 of 2) sorted by relevance

/xnu-8020.101.4/iokit/Kernel/
H A DIOMemoryCursor.cpp137 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()
[all …]
H A DIODMACommand.cpp1315 Segment64 curSeg = { 0, 0 }; in genIOVMSegments() local
1438 if (curSegValid && ((curSeg.fIOVMAddr + curSeg.fLength) == state->fIOVMAddr)) { in genIOVMSegments()
1441 curSeg.fLength += length; in genIOVMSegments()
1455 curSeg.fIOVMAddr = state->fIOVMAddr; in genIOVMSegments()
1456 curSeg.fLength = length; in genIOVMSegments()
1463 if ((kWalkClient & op) && (curSeg.fIOVMAddr + curSeg.fLength - 1) > maxPhys) { in genIOVMSegments()
1465 curSegValid = curSeg.fIOVMAddr = 0; in genIOVMSegments()
1468 } else if (curSeg.fIOVMAddr <= maxPhys) { in genIOVMSegments()
1471 newLength = (maxPhys + 1 - curSeg.fIOVMAddr); in genIOVMSegments()
1472 DEBG("trunc %qx, %qx-> %qx\n", curSeg.fIOVMAddr, curSeg.fLength, newLength); in genIOVMSegments()
[all …]