• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/

Lines Matching refs:curSeg

873     Segment64 curSeg = { 0, 0 };
915 if (!curSeg.fIOVMAddr) {
919 curSeg.fIOVMAddr = state->fIOVMAddr | bypassMask;
920 curSeg.fLength = length;
923 else if ((curSeg.fIOVMAddr + curSeg.fLength == state->fIOVMAddr)) {
926 curSeg.fLength += length;
935 if ((curSeg.fIOVMAddr + curSeg.fLength - 1) > maxPhys)
939 curSeg.fIOVMAddr = 0;
943 else if (curSeg.fIOVMAddr <= maxPhys)
947 newLength = (maxPhys + 1 - curSeg.fIOVMAddr);
948 DEBG("trunc %qx, %qx-> %qx\n", curSeg.fIOVMAddr, curSeg.fLength, newLength);
949 remain = curSeg.fLength - newLength;
950 state->fIOVMAddr = newLength + curSeg.fIOVMAddr;
951 curSeg.fLength = newLength;
957 DEBG("sparse switch %qx, %qx ", curSeg.fIOVMAddr, curSeg.fLength);
958 if (trunc_page_64(curSeg.fIOVMAddr) == gIOCopyMapper->mapAddr(
962 curSeg.fIOVMAddr = ptoa_64(internalState->fCopyPageAlloc + internalState->fNextRemapIndex)
963 + (curSeg.fIOVMAddr & PAGE_MASK);
964 internalState->fNextRemapIndex += atop_64(round_page(curSeg.fLength));
968 if (trunc_page_64(curSeg.fIOVMAddr) == gIOCopyMapper->mapAddr(
971 curSeg.fIOVMAddr = ptoa_64(internalState->fCopyPageAlloc + checkRemapIndex)
972 + (curSeg.fIOVMAddr & PAGE_MASK);
973 internalState->fNextRemapIndex = checkRemapIndex + atop_64(round_page(curSeg.fLength));
977 DEBG("-> %qx, %qx\n", curSeg.fIOVMAddr, curSeg.fLength);
982 if (curSeg.fLength > fMaxSegmentSize)
984 UInt64 remain = curSeg.fLength - fMaxSegmentSize;
986 state->fIOVMAddr = fMaxSegmentSize + curSeg.fIOVMAddr;
987 curSeg.fLength = fMaxSegmentSize;
994 && (0 != (fAlignMask & curSeg.fIOVMAddr)))
996 curSeg.fIOVMAddr = 0;
1003 curSeg.fLength -= (offset - memLength);
1014 ret = (*outSegFunc)(reference, this, curSeg, segmentsP, segIndex++);
1015 curSeg.fIOVMAddr = 0;
1021 if (curSeg.fIOVMAddr) {
1022 ret = (*outSegFunc)(reference, this, curSeg, segmentsP, segIndex++);