Lines Matching refs:remaining
306 IOByteCount remaining; in IOMemoryDescriptorWriteFromPhysical() local
308 remaining = length = min(length, md->getLength() - offset); in IOMemoryDescriptorWriteFromPhysical()
309 while (remaining) { // (process another target segment?) in IOMemoryDescriptorWriteFromPhysical()
319 if (dstLen > remaining) { in IOMemoryDescriptorWriteFromPhysical()
320 dstLen = remaining; in IOMemoryDescriptorWriteFromPhysical()
331 remaining -= dstLen; in IOMemoryDescriptorWriteFromPhysical()
334 assert(!remaining); in IOMemoryDescriptorWriteFromPhysical()
336 return remaining ? kIOReturnUnderrun : kIOReturnSuccess; in IOMemoryDescriptorWriteFromPhysical()
346 IOByteCount remaining; in IOMemoryDescriptorReadToPhysical() local
348 remaining = length = min(length, md->getLength() - offset); in IOMemoryDescriptorReadToPhysical()
349 while (remaining) { // (process another target segment?) in IOMemoryDescriptorReadToPhysical()
359 if (dstLen > remaining) { in IOMemoryDescriptorReadToPhysical()
360 dstLen = remaining; in IOMemoryDescriptorReadToPhysical()
371 remaining -= dstLen; in IOMemoryDescriptorReadToPhysical()
374 assert(!remaining); in IOMemoryDescriptorReadToPhysical()
376 return remaining ? kIOReturnUnderrun : kIOReturnSuccess; in IOMemoryDescriptorReadToPhysical()