Lines Matching refs:handoff
1305 IOHibernateHandoff * handoff; in IOHibernateDone() local
1307 for (handoff = (IOHibernateHandoff *) vars->handoffBuffer->getBytesNoCopy(); in IOHibernateDone()
1309 handoff = (IOHibernateHandoff *) &handoff->data[handoff->bytecount]) { in IOHibernateDone()
1310 HIBPRINT("handoff %p, %x, %x\n", handoff, handoff->type, handoff->bytecount); in IOHibernateDone()
1311 uint8_t * __unused data = &handoff->data[0]; in IOHibernateDone()
1312 switch (handoff->type) { in IOHibernateDone()
1340 (vm_offset_t)data, (vm_size_t)handoff->bytecount); in IOHibernateDone()
1349 md = IOBufferMemoryDescriptor::withBytes(data, handoff->bytecount, kIODirectionOutIn); in IOHibernateDone()
1358 done = (kIOHibernateHandoffType != (handoff->type & 0xFFFF0000)); in IOHibernateDone()
2402 IOHibernateHandoff * handoff; in hibernate_machine_init() local
2409 for (handoff = (IOHibernateHandoff *) vars->handoffBuffer->getBytesNoCopy(); in hibernate_machine_init()
2411 handoff = (IOHibernateHandoff *) &handoff->data[handoff->bytecount]) { in hibernate_machine_init()
2412 if (((uint8_t*)handoff < handoffStart) || in hibernate_machine_init()
2413 (&handoff->data[handoff->bytecount] > handoffEnd)) { in hibernate_machine_init()
2417 uint8_t * data = &handoff->data[0]; in hibernate_machine_init()
2418 switch (handoff->type) { in hibernate_machine_init()
2424 if (handoff->bytecount == sizeof(*gIOHibernateGraphicsInfo)) { in hibernate_machine_init()
2432 wakevars = (hibernate_cryptwakevars_t *) &handoff->data[0]; in hibernate_machine_init()
2433 if (handoff->bytecount == sizeof(*wakevars)) { in hibernate_machine_init()
2436 panic("kIOHibernateHandoffTypeCryptVars(%d)", handoff->bytecount); in hibernate_machine_init()
2440 bzero(data, handoff->bytecount); in hibernate_machine_init()
2444 if (handoff->bytecount == vars->volumeCryptKeySize) { in hibernate_machine_init()
2448 panic("kIOHibernateHandoffTypeVolumeCryptKey(%d)", handoff->bytecount); in hibernate_machine_init()
2457 hibernate_newruntime_map(data, handoff->bytecount, in hibernate_machine_init()
2478 done = (kIOHibernateHandoffType != (handoff->type & 0xFFFF0000)); in hibernate_machine_init()