Home
last modified time | relevance | path

Searched refs:newLength (Results 1 – 3 of 3) sorted by relevance

/xnu-11215/libkern/c++/
H A DOSString.cpp72 unsigned int newLength; in initWithCString() local
79 newLength = (unsigned int) strnlen(cString, kMaxStringLength); in initWithCString()
80 if (newLength >= kMaxStringLength) { in initWithCString()
84 newLength++; in initWithCString()
85 newString = (char *)kalloc_data(newLength, in initWithCString()
91 bcopy(cString, newString, newLength); in initWithCString()
98 length = newLength; in initWithCString()
109 unsigned int newLength; in initWithStringOfLength() local
127 newLength = (unsigned int) (inlength + 1); in initWithStringOfLength()
128 newString = (char *)kalloc_data(newLength, in initWithStringOfLength()
[all …]
/xnu-11215/iokit/Kernel/
H A DIODMACommand.cpp1482 UInt64 remain, newLength; in genIOVMSegments() local
1484 newLength = (maxPhys + 1 - curSeg.fIOVMAddr); in genIOVMSegments()
1486 remain = curSeg.fLength - newLength; in genIOVMSegments()
1487 state->fIOVMAddr = newLength + curSeg.fIOVMAddr; in genIOVMSegments()
1489 curSeg.fLength = newLength; in genIOVMSegments()
1496 UInt64 remain, newLength; in genIOVMSegments() local
1518 newLength = PAGE_SIZE - (addr & PAGE_MASK); in genIOVMSegments()
1519 if (newLength < curSeg.fLength) { in genIOVMSegments()
1520 remain = curSeg.fLength - newLength; in genIOVMSegments()
1521 state->fIOVMAddr = addr + newLength; in genIOVMSegments()
[all …]
H A DIOMemoryDescriptor.cpp6228 size_t newLength; in appendBytes() local
6229 if (os_add_overflow(oldLength, length, &newLength)) { in appendBytes()
6233 if (!setLength(newLength)) { in appendBytes()