Lines Matching refs:handoff
1338 IOHibernateHandoff * handoff; in IOHibernateDone() local
1340 for (handoff = (IOHibernateHandoff *) vars->handoffBuffer->getBytesNoCopy(); in IOHibernateDone()
1342 handoff = (IOHibernateHandoff *) &handoff->data[handoff->bytecount]) { in IOHibernateDone()
1343 HIBPRINT("handoff %p, %x, %x\n", handoff, handoff->type, handoff->bytecount); in IOHibernateDone()
1344 uint8_t * __unused data = &handoff->data[0]; in IOHibernateDone()
1345 switch (handoff->type) { in IOHibernateDone()
1373 (vm_offset_t)data, (vm_size_t)handoff->bytecount); in IOHibernateDone()
1382 md = IOBufferMemoryDescriptor::withBytes(data, handoff->bytecount, kIODirectionOutIn); in IOHibernateDone()
1391 done = (kIOHibernateHandoffType != (handoff->type & 0xFFFF0000)); in IOHibernateDone()
2455 IOHibernateHandoff * handoff; in hibernate_machine_init() local
2462 for (handoff = (IOHibernateHandoff *) vars->handoffBuffer->getBytesNoCopy(); in hibernate_machine_init()
2464 handoff = (IOHibernateHandoff *) &handoff->data[handoff->bytecount]) { in hibernate_machine_init()
2465 if (((uint8_t*)handoff < handoffStart) || in hibernate_machine_init()
2466 (&handoff->data[handoff->bytecount] > handoffEnd)) { in hibernate_machine_init()
2470 uint8_t * data = &handoff->data[0]; in hibernate_machine_init()
2471 switch (handoff->type) { in hibernate_machine_init()
2477 if (handoff->bytecount == sizeof(*gIOHibernateGraphicsInfo)) { in hibernate_machine_init()
2485 wakevars = (hibernate_cryptwakevars_t *) &handoff->data[0]; in hibernate_machine_init()
2486 if (handoff->bytecount == sizeof(*wakevars)) { in hibernate_machine_init()
2489 panic("kIOHibernateHandoffTypeCryptVars(%d)", handoff->bytecount); in hibernate_machine_init()
2493 bzero(data, handoff->bytecount); in hibernate_machine_init()
2497 if (handoff->bytecount == vars->volumeCryptKeySize) { in hibernate_machine_init()
2501 panic("kIOHibernateHandoffTypeVolumeCryptKey(%d)", handoff->bytecount); in hibernate_machine_init()
2510 hibernate_newruntime_map(data, handoff->bytecount, in hibernate_machine_init()
2531 done = (kIOHibernateHandoffType != (handoff->type & 0xFFFF0000)); in hibernate_machine_init()