• Home
  • Raw
  • Download

Lines Matching refs:se

805     SaveStateEntry *se, **pse;  in register_savevm_live()  local
808 se = qemu_malloc(sizeof(SaveStateEntry)); in register_savevm_live()
809 pstrcpy(se->idstr, sizeof(se->idstr), idstr); in register_savevm_live()
810 se->instance_id = (instance_id == -1) ? 0 : instance_id; in register_savevm_live()
811 se->version_id = version_id; in register_savevm_live()
812 se->section_id = global_section_id++; in register_savevm_live()
813 se->save_live_state = save_live_state; in register_savevm_live()
814 se->save_state = save_state; in register_savevm_live()
815 se->load_state = load_state; in register_savevm_live()
816 se->opaque = opaque; in register_savevm_live()
817 se->next = NULL; in register_savevm_live()
823 && strcmp(se->idstr, (*pse)->idstr) == 0 in register_savevm_live()
824 && se->instance_id <= (*pse)->instance_id) in register_savevm_live()
825 se->instance_id = (*pse)->instance_id + 1; in register_savevm_live()
828 *pse = se; in register_savevm_live()
871 SaveStateEntry *se; in qemu_savevm_state_begin() local
876 for (se = first_se; se != NULL; se = se->next) { in qemu_savevm_state_begin()
879 if (se->save_live_state == NULL) in qemu_savevm_state_begin()
884 qemu_put_be32(f, se->section_id); in qemu_savevm_state_begin()
887 len = strlen(se->idstr); in qemu_savevm_state_begin()
889 qemu_put_buffer(f, (uint8_t *)se->idstr, len); in qemu_savevm_state_begin()
891 qemu_put_be32(f, se->instance_id); in qemu_savevm_state_begin()
892 qemu_put_be32(f, se->version_id); in qemu_savevm_state_begin()
894 se->save_live_state(f, QEMU_VM_SECTION_START, se->opaque); in qemu_savevm_state_begin()
905 SaveStateEntry *se; in qemu_savevm_state_iterate() local
908 for (se = first_se; se != NULL; se = se->next) { in qemu_savevm_state_iterate()
909 if (se->save_live_state == NULL) in qemu_savevm_state_iterate()
914 qemu_put_be32(f, se->section_id); in qemu_savevm_state_iterate()
916 ret &= !!se->save_live_state(f, QEMU_VM_SECTION_PART, se->opaque); in qemu_savevm_state_iterate()
930 SaveStateEntry *se; in qemu_savevm_state_complete() local
932 for (se = first_se; se != NULL; se = se->next) { in qemu_savevm_state_complete()
933 if (se->save_live_state == NULL) in qemu_savevm_state_complete()
938 qemu_put_be32(f, se->section_id); in qemu_savevm_state_complete()
940 se->save_live_state(f, QEMU_VM_SECTION_END, se->opaque); in qemu_savevm_state_complete()
943 for(se = first_se; se != NULL; se = se->next) { in qemu_savevm_state_complete()
946 if (se->save_state == NULL) in qemu_savevm_state_complete()
951 qemu_put_be32(f, se->section_id); in qemu_savevm_state_complete()
954 len = strlen(se->idstr); in qemu_savevm_state_complete()
956 qemu_put_buffer(f, (uint8_t *)se->idstr, len); in qemu_savevm_state_complete()
958 qemu_put_be32(f, se->instance_id); in qemu_savevm_state_complete()
959 qemu_put_be32(f, se->version_id); in qemu_savevm_state_complete()
961 se->save_state(f, se->opaque); in qemu_savevm_state_complete()
1006 SaveStateEntry *se; in find_se() local
1008 for(se = first_se; se != NULL; se = se->next) { in find_se()
1009 if (!strcmp(se->idstr, idstr) && in find_se()
1010 instance_id == se->instance_id) in find_se()
1011 return se; in find_se()
1017 SaveStateEntry *se; member
1025 SaveStateEntry *se; in qemu_loadvm_state_v2() local
1042 se = find_se(idstr, instance_id); in qemu_loadvm_state_v2()
1043 if (!se) { in qemu_loadvm_state_v2()
1047 ret = se->load_state(f, se->opaque, version_id); in qemu_loadvm_state_v2()
1084 SaveStateEntry *se; in qemu_loadvm_state() local
1100 se = find_se(idstr, instance_id); in qemu_loadvm_state()
1101 if (se == NULL) { in qemu_loadvm_state()
1108 if (version_id > se->version_id) { in qemu_loadvm_state()
1110 version_id, idstr, se->version_id); in qemu_loadvm_state()
1118 le->se = se; in qemu_loadvm_state()
1124 if (le->se->load_state(f, le->se->opaque, le->version_id)) { in qemu_loadvm_state()
1141 le->se->load_state(f, le->se->opaque, le->version_id); in qemu_loadvm_state()