Lines Matching refs:handoff
1387 IOHibernateHandoff * handoff; in IOHibernateDone() local
1389 for (handoff = (IOHibernateHandoff *) vars->handoffBuffer->getBytesNoCopy(); in IOHibernateDone()
1391 handoff = (IOHibernateHandoff *) &handoff->data[handoff->bytecount]) { in IOHibernateDone()
1392 HIBPRINT("handoff %p, %x, %x\n", handoff, handoff->type, handoff->bytecount); in IOHibernateDone()
1393 uint8_t * __unused data = &handoff->data[0]; in IOHibernateDone()
1394 switch (handoff->type) { in IOHibernateDone()
1422 (vm_offset_t)data, (vm_size_t)handoff->bytecount); in IOHibernateDone()
1431 md = IOBufferMemoryDescriptor::withBytes(data, handoff->bytecount, kIODirectionOutIn); in IOHibernateDone()
1440 done = (kIOHibernateHandoffType != (handoff->type & 0xFFFF0000)); in IOHibernateDone()
2513 IOHibernateHandoff * handoff; in hibernate_machine_init() local
2520 for (handoff = (IOHibernateHandoff *) vars->handoffBuffer->getBytesNoCopy(); in hibernate_machine_init()
2522 handoff = (IOHibernateHandoff *) &handoff->data[handoff->bytecount]) { in hibernate_machine_init()
2523 if (((uint8_t*)handoff < handoffStart) || in hibernate_machine_init()
2524 (&handoff->data[handoff->bytecount] > handoffEnd)) { in hibernate_machine_init()
2528 uint8_t * data = &handoff->data[0]; in hibernate_machine_init()
2529 switch (handoff->type) { in hibernate_machine_init()
2535 if (handoff->bytecount == sizeof(*gIOHibernateGraphicsInfo)) { in hibernate_machine_init()
2543 wakevars = (hibernate_cryptwakevars_t *) &handoff->data[0]; in hibernate_machine_init()
2544 if (handoff->bytecount == sizeof(*wakevars)) { in hibernate_machine_init()
2547 panic("kIOHibernateHandoffTypeCryptVars(%d)", handoff->bytecount); in hibernate_machine_init()
2551 bzero(data, handoff->bytecount); in hibernate_machine_init()
2555 if (handoff->bytecount == vars->volumeCryptKeySize) { in hibernate_machine_init()
2559 panic("kIOHibernateHandoffTypeVolumeCryptKey(%d)", handoff->bytecount); in hibernate_machine_init()
2568 hibernate_newruntime_map(data, handoff->bytecount, in hibernate_machine_init()
2589 done = (kIOHibernateHandoffType != (handoff->type & 0xFFFF0000)); in hibernate_machine_init()