Lines Matching refs:remaining
2539 IOByteCount remaining; in readBytes() local
2562 remaining = length = min(length, _length - offset); in readBytes()
2563 while (remaining) { // (process another target segment?) in readBytes()
2573 if (srcLen > remaining) { in readBytes()
2574 srcLen = remaining; in readBytes()
2585 remaining -= srcLen; in readBytes()
2592 assert(!remaining); in readBytes()
2594 return length - remaining; in readBytes()
2602 IOByteCount remaining; in writeBytes() local
2631 remaining = length = min(length, _length - offset); in writeBytes()
2632 while (remaining) { // (process another target segment?) in writeBytes()
2642 if (dstLen > remaining) { in writeBytes()
2643 dstLen = remaining; in writeBytes()
2657 remaining -= dstLen; in writeBytes()
2664 assert(!remaining); in writeBytes()
2674 return length - remaining; in writeBytes()
3860 …che_incoherent_io_flush64(addr64_t pa, unsigned int count, unsigned int remaining, unsigned int *r…
3861 …che_incoherent_io_store64(addr64_t pa, unsigned int count, unsigned int remaining, unsigned int *r…
3895 IOByteCount remaining; in performOperation() local
3899 …void (*func_ext)(addr64_t pa, unsigned int count, unsigned int remaining, unsigned int *result) = … in performOperation()
3958 remaining = length = min(length, getLength() - offset); in performOperation()
3959 while (remaining) { in performOperation()
3970 if (dstLen > remaining) { in performOperation()
3971 dstLen = remaining; in performOperation()
3976 if (remaining > UINT_MAX) { in performOperation()
3977 remaining = UINT_MAX; in performOperation()
3985 (*func_ext)(dstAddr64, (unsigned int) dstLen, (unsigned int) remaining, &res); in performOperation()
3987 remaining = 0; in performOperation()
3996 remaining -= dstLen; in performOperation()
4003 return remaining ? kIOReturnUnderrun : kIOReturnSuccess; in performOperation()