Lines Matching refs:curSeg

1023     Segment64 curSeg = { 0, 0 };
1076 if ((curSeg.fIOVMAddr + curSeg.fLength) == state->fIOVMAddr) {
1079 curSeg.fLength += length;
1090 if (!curSeg.fIOVMAddr)
1094 curSeg.fIOVMAddr = state->fIOVMAddr | bypassMask;
1095 curSeg.fLength = length;
1101 if ((kWalkClient & op) && (curSeg.fIOVMAddr + curSeg.fLength - 1) > maxPhys)
1105 curSeg.fIOVMAddr = 0;
1109 else if (curSeg.fIOVMAddr <= maxPhys)
1113 newLength = (maxPhys + 1 - curSeg.fIOVMAddr);
1114 DEBG("trunc %qx, %qx-> %qx\n", curSeg.fIOVMAddr, curSeg.fLength, newLength);
1115 remain = curSeg.fLength - newLength;
1116 state->fIOVMAddr = newLength + curSeg.fIOVMAddr;
1117 curSeg.fLength = newLength;
1123 UInt64 addr = curSeg.fIOVMAddr;
1128 DEBG("sparse switch %qx, %qx ", addr, curSeg.fLength);
1142 curSeg.fIOVMAddr = ptoa_64(vm_page_get_phys_page(remap))
1147 if (newLength < curSeg.fLength)
1149 remain = curSeg.fLength - newLength;
1151 curSeg.fLength = newLength;
1155 DEBG("-> %qx, %qx offset %qx\n", curSeg.fIOVMAddr, curSeg.fLength, offset);
1159 if (curSeg.fLength > fMaxSegmentSize)
1161 UInt64 remain = curSeg.fLength - fMaxSegmentSize;
1163 state->fIOVMAddr = fMaxSegmentSize + curSeg.fIOVMAddr;
1164 curSeg.fLength = fMaxSegmentSize;
1171 && (0 != (internalState->fSourceAlignMask & curSeg.fIOVMAddr)))
1173 curSeg.fIOVMAddr = 0;
1180 curSeg.fLength -= (offset - memLength);
1191 ret = (*outSegFunc)(reference, this, curSeg, segmentsP, segIndex++);
1192 curSeg.fIOVMAddr = 0;
1198 if (curSeg.fIOVMAddr) {
1199 ret = (*outSegFunc)(reference, this, curSeg, segmentsP, segIndex++);