Lines Matching refs:curSeg

1315 	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()
1473 remain = curSeg.fLength - newLength; in genIOVMSegments()
1474 state->fIOVMAddr = newLength + curSeg.fIOVMAddr; in genIOVMSegments()
1476 curSeg.fLength = newLength; in genIOVMSegments()
1480 UInt64 addr = curSeg.fIOVMAddr; in genIOVMSegments()
1485 DEBG("sparse switch %qx, %qx ", addr, curSeg.fLength); in genIOVMSegments()
1500 curSeg.fIOVMAddr = ptoa_64(vm_page_get_phys_page(remap)) in genIOVMSegments()
1506 if (newLength < curSeg.fLength) { in genIOVMSegments()
1507 remain = curSeg.fLength - newLength; in genIOVMSegments()
1510 curSeg.fLength = newLength; in genIOVMSegments()
1514 DEBG("-> %qx, %qx offset %qx\n", curSeg.fIOVMAddr, curSeg.fLength, offset); in genIOVMSegments()
1522 if (curSeg.fLength > fMaxSegmentSize) { in genIOVMSegments()
1523 leftover += curSeg.fLength - fMaxSegmentSize; in genIOVMSegments()
1524 curSeg.fLength = fMaxSegmentSize; in genIOVMSegments()
1525 state->fIOVMAddr = curSeg.fLength + curSeg.fIOVMAddr; in genIOVMSegments()
1531 reduce = (curSeg.fLength & fAlignMaskLength); in genIOVMSegments()
1532 if (reduce && (curSeg.fLength > reduce)) { in genIOVMSegments()
1534 curSeg.fLength -= reduce; in genIOVMSegments()
1535 state->fIOVMAddr = curSeg.fLength + curSeg.fIOVMAddr; in genIOVMSegments()
1542 if (reduce && (curSeg.fLength > reduce)) { in genIOVMSegments()
1544 curSeg.fLength -= reduce; in genIOVMSegments()
1545 state->fIOVMAddr = curSeg.fLength + curSeg.fIOVMAddr; in genIOVMSegments()
1552 curSeg.fIOVMAddr, curSeg.fLength); in genIOVMSegments()
1564 misaligned = (0 != (mask & curSeg.fIOVMAddr)); in genIOVMSegments()
1567 misaligned |= (0 != (mask & curSeg.fLength)); in genIOVMSegments()
1571 DEBG("cursor misaligned %qx:%qx\n", curSeg.fIOVMAddr, curSeg.fLength); in genIOVMSegments()
1573 curSegValid = curSeg.fIOVMAddr = 0; in genIOVMSegments()
1580 curSeg.fLength -= (offset - memLength); in genIOVMSegments()
1593 IOLog("DMA[%p] outseg 0x%qx, 0x%qx\n", this, curSeg.fIOVMAddr, curSeg.fLength); in genIOVMSegments()
1596 ret = (*outSegFunc)(reference, this, curSeg, segmentsP, segIndex++); in genIOVMSegments()
1597 curSegValid = curSeg.fIOVMAddr = 0; in genIOVMSegments()
1607 IOLog("DMA[%p] outseg 0x%qx, 0x%qx\n", this, curSeg.fIOVMAddr, curSeg.fLength); in genIOVMSegments()
1610 ret = (*outSegFunc)(reference, this, curSeg, segmentsP, segIndex++); in genIOVMSegments()