Lines Matching refs:data

61   The kernel segment "__HIB" is written uncompressed to the image. This segment of code and data 
81 only code & data in that section is safe to call since all the other wired pages are still
130 the data, an offset to the disk and length (block aligned 64 bit numbers), and completion callback.
736 OSData * data;
799 (void *) (uintptr_t) true, (void *) &data);
813 data = OSData::withBytes(tail + 1, strlen(tail + 1));
814 data->appendBytes(str2, strlen(str2));
818 *imagePath = data;
1124 OSData * data;
1257 &vars->fileVars, &vars->fileExtents, &data,
1329 gIOOptionsEntry->setProperty(sym, data);
1332 data->release();
1371 data = OSData::withBytes(&rtcVars, sizeof(rtcVars));
1372 if (data)
1377 IOService::getPMRootDomain()->setProperty(gIOHibernateRTCVariablesKey, data);
1387 gIOOptionsEntry->setProperty(sym, data); /* intentional insecure backup of rtc boot vars */
1393 data->release();
1397 data = OSDynamicCast(OSData, gIOChosenEntry->getProperty(kIOHibernateMachineSignatureKey));
1398 if (data)
1399 gIOHibernateCurrentHeader->machineSignature = *((UInt32 *)data->getBytesNoCopy());
1405 data = OSDynamicCast(OSData, gIOChosenEntry->getProperty("boot-device-path"));
1406 if (data)
1415 loadOptionHeader.FilePathLength = data->getLength();
1421 gIOHibernateBoot0082Data->appendBytes(data);
1445 data = OSData::withBytes(&vars->wiredCryptKey[0], sizeof(vars->wiredCryptKey));
1447 if (sym && data)
1448 gIOOptionsEntry->setProperty(sym, data);
1451 if (data)
1452 data->release();
1455 data = OSData::withCapacity(16);
1457 if (sym && data)
1473 data->appendBytes(&value, sizeof(value));
1475 gIOOptionsEntry->setProperty(sym, data);
1479 if (data)
1480 data->release();
1672 OSData * data;
1696 && (data = OSDynamicCast(OSData,
1699 UInt32 flags = *((UInt32 *)data->getBytesNoCopy());
1838 * is not backed by coin cell. Remove Hibernate data from NVRAM.
1876 handoff = (IOHibernateHandoff *) &handoff->data[handoff->bytecount])
1879 uint8_t * data = &handoff->data[0];
1887 MergeDeviceTree((DeviceTreeNode *) data, IOService::getServiceRoot());
1894 md = IOBufferMemoryDescriptor::withBytes(data, handoff->bytecount, kIODirectionOutIn);
1950 data = OSDynamicCast(OSData, gIOChosenEntry->getProperty(kIOScreenLockStateKey));
1951 if (data) switch (*((uint32_t *)data->getBytesNoCopy()))
1982 OSData * data = OSData::withBytesNoCopy(&gIOHibernateState, sizeof(gIOHibernateState));
1983 if (data)
1985 rootDomain->setProperty(kIOHibernateStateKey, data);
1986 data->release();
2058 uint8_t * data;
2100 // encryption data. "iv" is the "initial vector".
2474 data = (src + page_size);
2476 data = src;
2483 err = IOPolledFileWrite(vars->fileVars, data, (pageCompressedSize + 3) & ~3, cryptvars);
2722 handoff = (IOHibernateHandoff *) &handoff->data[handoff->bytecount])
2725 uint8_t * data = &handoff->data[0];
2733 bcopy(data, gIOHibernateGraphicsInfo, sizeof(*gIOHibernateGraphicsInfo));
2740 wakevars = (hibernate_cryptwakevars_t *) &handoff->data[0];
2744 bzero(data, handoff->bytecount);
2748 hibernate_newruntime_map(data, handoff->bytecount,
2755 // HIBPRINT("DTLookupEntry %d\n", DTLookupEntry((const DTEntry) data, "/chosen", &chosen));
2952 OSData * data;
2958 data = OSDynamicCast(OSData, IOService::getPMRootDomain()->getProperty(kIOHibernateSMCVariablesKey));
2959 if (!data) return;
2961 smcVars = (typeof(smcVars)) data->getBytesNoCopy();