Lines Matching refs:fLength
517 length = segment.fLength; in segmentOp()
848 length = fMDSummary.fLength; in prepare()
917 mapArgs.fLength = state->fPreparedLength; in prepare()
930 && (mapArgs.fAllocLength != mapArgs.fLength)) { in prepare()
946 assert(mapArgs.fAllocLength > mapArgs.fLength); in prepare()
965 segLen = walkArgs->fLength; in prepare()
1007 segLen = walkArgs->fLength; in prepare()
1198 UInt64 length = min(segment.fLength, context->remaining); in transferSegment()
1345 state->fLength = memLength - offset; in genIOVMSegments()
1405 state->fLength = length; in genIOVMSegments()
1433 for (checkOffset = 0; checkOffset < state->fLength;) { in genIOVMSegments()
1442 state->fIOVMAddr + checkOffset, mapperPhys, phys, state->fLength); in genIOVMSegments()
1450 assert(state->fLength); in genIOVMSegments()
1451 if (curSegValid && ((curSeg.fIOVMAddr + curSeg.fLength) == state->fIOVMAddr)) { in genIOVMSegments()
1452 UInt64 length = state->fLength; in genIOVMSegments()
1454 curSeg.fLength += length; in genIOVMSegments()
1458 internalState->fIOVMAddrValid = state->fIOVMAddr = state->fLength = 0; // At end in genIOVMSegments()
1466 UInt64 length = state->fLength; in genIOVMSegments()
1469 curSeg.fLength = length; in genIOVMSegments()
1476 if ((kWalkClient & op) && (curSeg.fIOVMAddr + curSeg.fLength - 1) > maxPhys) { in genIOVMSegments()
1485 DEBG("trunc %qx, %qx-> %qx\n", curSeg.fIOVMAddr, curSeg.fLength, newLength); in genIOVMSegments()
1486 remain = curSeg.fLength - newLength; in genIOVMSegments()
1489 curSeg.fLength = newLength; in genIOVMSegments()
1490 state->fLength = remain; in genIOVMSegments()
1498 DEBG("sparse switch %qx, %qx ", addr, curSeg.fLength); in genIOVMSegments()
1519 if (newLength < curSeg.fLength) { in genIOVMSegments()
1520 remain = curSeg.fLength - newLength; in genIOVMSegments()
1523 curSeg.fLength = newLength; in genIOVMSegments()
1524 state->fLength = remain; in genIOVMSegments()
1527 DEBG("-> %qx, %qx offset %qx\n", curSeg.fIOVMAddr, curSeg.fLength, offset); in genIOVMSegments()
1535 if (curSeg.fLength > fMaxSegmentSize) { in genIOVMSegments()
1536 leftover += curSeg.fLength - fMaxSegmentSize; in genIOVMSegments()
1537 curSeg.fLength = fMaxSegmentSize; in genIOVMSegments()
1538 state->fIOVMAddr = curSeg.fLength + curSeg.fIOVMAddr; in genIOVMSegments()
1544 reduce = (curSeg.fLength & fAlignMaskLength); in genIOVMSegments()
1545 if (reduce && (curSeg.fLength > reduce)) { in genIOVMSegments()
1547 curSeg.fLength -= reduce; in genIOVMSegments()
1548 state->fIOVMAddr = curSeg.fLength + curSeg.fIOVMAddr; in genIOVMSegments()
1555 if (reduce && (curSeg.fLength > reduce)) { in genIOVMSegments()
1557 curSeg.fLength -= reduce; in genIOVMSegments()
1558 state->fIOVMAddr = curSeg.fLength + curSeg.fIOVMAddr; in genIOVMSegments()
1565 curSeg.fIOVMAddr, curSeg.fLength); in genIOVMSegments()
1566 state->fLength = leftover; in genIOVMSegments()
1580 misaligned |= (0 != (mask & curSeg.fLength)); in genIOVMSegments()
1584 DEBG("cursor misaligned %qx:%qx\n", curSeg.fIOVMAddr, curSeg.fLength); in genIOVMSegments()
1593 curSeg.fLength -= (offset - memLength); in genIOVMSegments()
1595 internalState->fIOVMAddrValid = state->fIOVMAddr = state->fLength = 0; // At end in genIOVMSegments()
1606 IOLog("DMA[%p] outseg 0x%qx, 0x%qx\n", this, curSeg.fIOVMAddr, curSeg.fLength); in genIOVMSegments()
1620 IOLog("DMA[%p] outseg 0x%qx, 0x%qx\n", this, curSeg.fIOVMAddr, curSeg.fLength); in genIOVMSegments()
1643 && ((segment.fIOVMAddr + segment.fLength - 1) >> target->fNumAddressBits) in clientOutputSegment()
1645 DEBG("kIOReturnMessageTooLarge(fNumAddressBits) %qx, %qx\n", segment.fIOVMAddr, segment.fLength); in clientOutputSegment()
1650 DEBG("kIOReturnMessageTooLarge(fOutSeg) %qx, %qx\n", segment.fIOVMAddr, segment.fLength); in clientOutputSegment()
1673 base[outSegIndex].fLength = (UInt32) segment.fLength; in OutputHost32()
1684 OSWriteBigInt32(vSegList, offLen, (UInt32) segment.fLength); in OutputBig32()
1695 OSWriteLittleInt32(vSegList, offLen, (UInt32) segment.fLength); in OutputLittle32()
1715 OSWriteBigInt64(vSegList, offLen, (UInt64) segment.fLength); in OutputBig64()
1726 OSWriteLittleInt64(vSegList, offLen, (UInt64) segment.fLength); in OutputLittle64()