Lines Matching refs:handoff
1346 IOHibernateHandoff * handoff; in IOHibernateDone() local
1348 for (handoff = (IOHibernateHandoff *) vars->handoffBuffer->getBytesNoCopy(); in IOHibernateDone()
1350 handoff = (IOHibernateHandoff *) &handoff->data[handoff->bytecount]) { in IOHibernateDone()
1351 HIBPRINT("handoff %p, %x, %x\n", handoff, handoff->type, handoff->bytecount); in IOHibernateDone()
1352 uint8_t * __unused data = &handoff->data[0]; in IOHibernateDone()
1353 switch (handoff->type) { in IOHibernateDone()
1381 (vm_offset_t)data, (vm_size_t)handoff->bytecount); in IOHibernateDone()
1390 md = IOBufferMemoryDescriptor::withBytes(data, handoff->bytecount, kIODirectionOutIn); in IOHibernateDone()
1399 done = (kIOHibernateHandoffType != (handoff->type & 0xFFFF0000)); in IOHibernateDone()
2468 IOHibernateHandoff * handoff; in hibernate_machine_init() local
2475 for (handoff = (IOHibernateHandoff *) vars->handoffBuffer->getBytesNoCopy(); in hibernate_machine_init()
2477 handoff = (IOHibernateHandoff *) &handoff->data[handoff->bytecount]) { in hibernate_machine_init()
2478 if (((uint8_t*)handoff < handoffStart) || in hibernate_machine_init()
2479 (&handoff->data[handoff->bytecount] > handoffEnd)) { in hibernate_machine_init()
2483 uint8_t * data = &handoff->data[0]; in hibernate_machine_init()
2484 switch (handoff->type) { in hibernate_machine_init()
2490 if (handoff->bytecount == sizeof(*gIOHibernateGraphicsInfo)) { in hibernate_machine_init()
2498 wakevars = (hibernate_cryptwakevars_t *) &handoff->data[0]; in hibernate_machine_init()
2499 if (handoff->bytecount == sizeof(*wakevars)) { in hibernate_machine_init()
2502 panic("kIOHibernateHandoffTypeCryptVars(%d)", handoff->bytecount); in hibernate_machine_init()
2506 bzero(data, handoff->bytecount); in hibernate_machine_init()
2510 if (handoff->bytecount == vars->volumeCryptKeySize) { in hibernate_machine_init()
2514 panic("kIOHibernateHandoffTypeVolumeCryptKey(%d)", handoff->bytecount); in hibernate_machine_init()
2523 hibernate_newruntime_map(data, handoff->bytecount, in hibernate_machine_init()
2544 done = (kIOHibernateHandoffType != (handoff->type & 0xFFFF0000)); in hibernate_machine_init()