Home
last modified time | relevance | path

Searched refs:getLength (Results 1 – 25 of 46) sorted by relevance

12

/xnu-11215/iokit/Kernel/
H A DIOExtensiblePaniclog.cpp160 if ((uuid == nullptr) || (uuid->getLength() > sizeof(uuid_t))) { in Create_Impl()
164 if ((data_id == nullptr) || (data_id->getLength() > MAX_DATA_ID_SIZE)) { in Create_Impl()
168 memcpy(&uuid_copy, uuid->getBytesNoCopy(), uuid->getLength()); in Create_Impl()
226 if (ext_paniclog_insert_data(extPaniclogHandle, addr, data->getLength()) != 0) { in InsertData_Impl()
242 if (ext_paniclog_append_data(extPaniclogHandle, addr, data->getLength()) != 0) { in AppendData_Impl()
H A DIODeviceTreeSupport.cpp338 propSize = propObj->getLength(); in IODTGetLoaderInfo()
397 defaultSize = defaultObj->getLength(); in IODTGetDefault()
567 && (sizeof(UInt32) <= (len = data->getLength()))) { in IODTFindInterruptParent()
670 endMap = map + (data->getLength() / sizeof(UInt32)); in IODTMapOneInterrupt()
938 lastName = names + data->getLength(); in CompareKey()
941 lastName = names + string->getLength() + 1; in CompareKey()
948 keyLen = key->getLength(); in CompareKey()
1271 if ((propLen = prop->getLength())) { in IODTResolveAddressCell()
1402 num = addressProperty->getLength() / (4 * cells); in IODTResolveAddressing()
1465 if (data->getLength() <= 4) { in IODTFindSlotName()
[all …]
H A DIOPlatformExpert.cpp860 len = ((OSData *)inObj)->getLength(); in getCStringForObject()
1022 if (data && data->getLength() == 4) { in PEHaltRestartInternal()
1200 *len = data->getLength(); in PEReadNVRAMProperty()
1494 if (data && (data->getLength() == sizeof(UInt8))) { in registerNVRAMController()
1675 assert(tmpData->getLength() >= sizeof(UInt32)); in createNubs()
2022 serialNumberSize = myProperty->getLength(); in createSystemSerialNumberString()
2217 if (data1 && data1->getLength() == 8) { in generatePlatformUUID()
2221 if (data2 && data2->getLength() == 4) { in generatePlatformUUID()
2248 if (data && data->getLength() == 16) { in generatePlatformUUID()
2255 SHA1Update( &context, data->getBytesNoCopy(), data->getLength()); in generatePlatformUUID()
[all …]
H A DIODMAController.cpp63 if (dmaParentData->getLength() == sizeof(UInt32)) { in getController()
66 if (dmaIndex >= dmaParentData->getLength() / sizeof(UInt32)) { in getController()
H A DIOMultiMemoryDescriptor.cpp126 _length += descriptors[index]->getLength(); in initWithDescriptors()
250 if (offset < _descriptors[index]->getLength()) { in getPhysicalSegment()
253 offset -= _descriptors[index]->getLength(); in getPhysicalSegment()
331 chunk = _descriptors[index]->getLength(); in doMap()
H A DIOHibernateIO.cpp308 remaining = length = min(length, md->getLength() - offset); in IOMemoryDescriptorWriteFromPhysical()
348 remaining = length = min(length, md->getLength() - offset); in IOMemoryDescriptorReadToPhysical()
787 if (data && data->getLength() >= 4) { in IOHibernateSystemSleep()
790 if (data && (data->getLength() <= UINT16_MAX)) { in IOHibernateSystemSleep()
863 data->getBytesNoCopy(), data->getLength(), &kprintf); in IOHibernateSystemSleep()
909 data->getBytesNoCopy(), data->getLength(), &kprintf); in IOSetBootImageNVRAM()
943 count = vars->fileExtents->getLength(); in IOWriteExtentsToFile()
1816 count = vars->fileVars->fileExtents->getLength(); in hibernate_write_image()
1926 count = (uint32_t) vars->previewBuffer->getLength(); in hibernate_write_image()
2251 count = vars->fileVars->fileExtents->getLength(); in hibernate_write_image()
[all …]
H A DIOWorkloadConfig.cpp467 if (defaultPhase->getLength() == 0) { in parseRoot()
488 if (id->getLength() == 0) { in parseWorkloadIDTable()
832 *size = serialize->getLength(); in IOUnparseWorkloadConfig()
H A DIOSubMemoryDescriptor.cpp67 if (parent && ((offset + length) > parent->getLength())) { in initSubRange()
H A DIOInterleavedMemoryDescriptor.cpp138 if ((offset + length) > descriptor->getLength()) { in setMemoryDescriptor()
H A DIOPolledInterface.cpp660 (extentsData->getLength() / sizeof(IOPolledFileExtent)) - 1, in IOPolledFileOpen()
663 if (extentsData->getLength() < sizeof(IOPolledFileExtent)) { in IOPolledFileOpen()
854 assert(vars->pollers->ioBuffer->getLength() <= UINT_MAX); in IOPolledFilePollersSetup()
855 vars->bufferSize = (typeof(vars->bufferSize))(vars->pollers->ioBuffer->getLength() >> 1); in IOPolledFilePollersSetup()
H A DIONVRAM.cpp819 if ((data != NULL) && (data->getLength() == sizeof(hibernateState))) { in hibernateState()
1876 propDataSize = (OSDynamicPtrCast<OSString>(propObject))->getLength(); in setPropertyWithGUIDAndName()
1892 tmpString->getLength()); in setPropertyWithGUIDAndName()
1897 propDataSize = (OSDynamicPtrCast<OSData>(propObject))->getLength(); in setPropertyWithGUIDAndName()
1898 …YSTEM_NVRAM, "write", "%s as data with size %#x", name, ((OSData *)propObject.get())->getLength()); in setPropertyWithGUIDAndName()
1902 if ((propObject != nullptr) && ((OSDynamicPtrCast<OSData>(propObject))->getLength() == 0)) { in setPropertyWithGUIDAndName()
/xnu-11215/iokit/Tests/
H A DTestContainers.cpp145 TEST_ASSERT('d', "1b", !test1->getLength()); in testData()
150 TEST_ASSERT('d', "1g", !test1->getLength()); in testData()
162 TEST_ASSERT('d', "2b", !test1->getLength()); in testData()
165 TEST_ASSERT('d', "2e", test1->getLength() == DATA_SIZE_1); in testData()
192 TEST_ASSERT('d', "3b", test1->getLength() == sizeof(testData)); in testData()
197 TEST_ASSERT('d', "3g", test1->getLength() == sizeof(testData)); in testData()
213 TEST_ASSERT('d', "4b", !test1->getLength()); in testData()
275 TEST_ASSERT('s', "1d", strlen(testC00) == test1->getLength()); in testString()
H A DTestIOMemoryDescriptor.cpp144 …ngInTask(kernel_task, 0, kIOMapAnywhere | kIOMapGuardedSmall, ptoa(7), mmd->getLength() - ptoa(7)); in IOMultMemoryDescriptorTest()
149 assert(ptoa(4) == map->getLength()); in IOMultMemoryDescriptorTest()
383 assert(offset == md->getLength()); in IOMemoryRemoteTest()
392 for (dmaOffset = 0, idx = 0; dmaOffset < md->getLength(); idx++) { in IOMemoryRemoteTest()
401 assert(dmaOffset == md->getLength()); in IOMemoryRemoteTest()
681 map = mmd->createMappingInTask(kernel_task, 0, kIOMapAnywhere, 0, mmd->getLength()); in IOGuardPageMDTest()
693 assert(page_size * leftGuardSize + page_size + page_size * rightGuardSize == map->getLength()); in IOGuardPageMDTest()
719 assert(iobmd->getLength() == round_page(iobmdCapacity)); in IOGuardPageMDTest()
730 …= iobmd->createMappingInTask(kernel_task, 0, kIOMapAnywhere | kIOMapUnique, 0, iobmd->getLength()); in IOGuardPageMDTest()
731 assert(map->getLength() == iobmd->getLength()); in IOGuardPageMDTest()
[all …]
/xnu-11215/libkern/libkern/c++/
H A DOSValueObject.h231 getLength() const in getLength() function
469 bzero(data, getLength()); in init()
499 memcpy(data, &value, getLength()); in setValue()
548 return memcmp(data, &value, getLength()) == 0; in isEqualTo()
H A DOSString.h322 virtual unsigned int getLength() const;
H A DOSSerialize.h309 virtual unsigned int getLength() const;
/xnu-11215/iokit/bsddev/
H A DDINetBootHook.cpp372 if (!data || (data->getLength() != sizeof(uint64_t))) { in di_root_ramfile()
381 if (!data || (data->getLength() == 0) || in di_root_ramfile()
382 ((data->getLength() & (sizeof(IOAddressRange) - 1)) != 0)) { in di_root_ramfile()
394 extentCount = extentData->getLength() / sizeof(IOAddressRange); in di_root_ramfile()
H A DIOKitBSDInit.cpp437 unsigned int length = uuid_data->getLength(); in IOGetBootUUID()
466 unsigned int length = uuid_data->getLength(); in IOGetApfsPrebootUUID()
495 unsigned int length = uuid_data->getLength(); in IOGetAssociatedApfsVolgroupUUID()
525 unsigned int length = path_prefix_data->getLength(); in IOGetBootObjectsPath()
555 unsigned int length = manifest_hash_data->getLength(); in IOGetBootManifestHash()
1089 *packet_length = data->getLength(); in IOBSDRegistryEntryGetData()
1541 string_length = string->getLength() + 1; in copyOSStringAsCString()
1685 len = str->getLength() + 1; in IOVnodeGetEntitlement()
/xnu-11215/libkern/c++/Tests/TestSerialization/test2/
H A Dtest2_main.cpp143 IOLog("serialized object's length = %d, capacity = %d\n", s->getLength(), s->getCapacity()); in test2_start()
159 s2->getLength(), s2->getCapacity()); in test2_start()
/xnu-11215/libkern/c++/
H A DOSSerializeBinary.cpp197 header = indexData->getLength() / sizeof(uint32_t); in binarySerialize()
229 assert(indexData->getLength() > (tagIdx * sizeof(uint32_t))); in binarySerializeInternal()
307 len = (sym->getLength() + 1); in binarySerializeInternal()
311 len = str->getLength(); in binarySerializeInternal()
315 len = ldata->getLength(); in binarySerializeInternal()
H A DOSString.cpp261 OSString::getLength() const in getLength() function in OSString
333 unsigned int dataLen = obj->getLength(); in isEqualTo()
H A DOSData.cpp245 OSData::getLength() const in getLength() function in OSData
470 stringLen = obj->getLength(); in isEqualTo()
/xnu-11215/libkern/c++/Tests/TestSerialization/test1/
H A Dtest1_main.cpp83 IOLog("serialized object's length = %d, capacity = %d\n", s->getLength(), s->getCapacity()); in test1_start()
/xnu-11215/libsa/
H A Dbootstrap.cpp306 …id *)&kernelcache_uuid, (const void *)loaded_kcUUID->getBytesNoCopy(), loaded_kcUUID->getLength()); in readPrelinkedExtensions()
310 …py((void *)&auxkc_uuid, (const void *)loaded_kcUUID->getBytesNoCopy(), loaded_kcUUID->getLength()); in readPrelinkedExtensions()
/xnu-11215/iokit/IOKit/
H A DIOMemoryDescriptor.h658 virtual IOByteCount getLength() const;
940 virtual IOByteCount getLength(void);
1293 return getLength(); in getSize()

12