Searched refs:newLength (Results 1 – 3 of 3) sorted by relevance
72 unsigned int newLength; in initWithCString() local79 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() local127 newLength = (unsigned int) (inlength + 1); in initWithStringOfLength()128 newString = (char *)kalloc_data(newLength, in initWithStringOfLength()[all …]
1482 UInt64 remain, newLength; in genIOVMSegments() local1484 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() local1518 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 …]
6228 size_t newLength; in appendBytes() local6229 if (os_add_overflow(oldLength, length, &newLength)) { in appendBytes()6233 if (!setLength(newLength)) { in appendBytes()