Lines Matching refs:remaining
1102 IOByteCount remaining;
1111 remaining = length = min(length, _length - offset);
1112 while (remaining) { // (process another target segment?)
1120 // Clip segment length to remaining
1121 if (srcLen > remaining)
1122 srcLen = remaining;
1129 remaining -= srcLen;
1132 assert(!remaining);
1134 return length - remaining;
1141 IOByteCount remaining;
1153 remaining = length = min(length, _length - offset);
1154 while (remaining) { // (process another target segment?)
1162 // Clip segment length to remaining
1163 if (dstLen > remaining)
1164 dstLen = remaining;
1171 remaining -= dstLen;
1174 assert(!remaining);
1176 return length - remaining;
1702 IOByteCount remaining;
1718 remaining = length = min(length, getLength() - offset);
1719 while (remaining)
1729 // Clip segment length to remaining
1730 if (dstLen > remaining)
1731 dstLen = remaining;
1736 remaining -= dstLen;
1739 return (remaining ? kIOReturnUnderrun : kIOReturnSuccess);