• Home
  • Raw
  • Download

Lines Matching refs:se

836     SaveStateEntry *se, **pse;  in register_savevm_live()  local
839 se = qemu_malloc(sizeof(SaveStateEntry)); in register_savevm_live()
840 pstrcpy(se->idstr, sizeof(se->idstr), idstr); in register_savevm_live()
841 se->instance_id = (instance_id == -1) ? 0 : instance_id; in register_savevm_live()
842 se->version_id = version_id; in register_savevm_live()
843 se->section_id = global_section_id++; in register_savevm_live()
844 se->save_live_state = save_live_state; in register_savevm_live()
845 se->save_state = save_state; in register_savevm_live()
846 se->load_state = load_state; in register_savevm_live()
847 se->opaque = opaque; in register_savevm_live()
848 se->next = NULL; in register_savevm_live()
854 && strcmp(se->idstr, (*pse)->idstr) == 0 in register_savevm_live()
855 && se->instance_id <= (*pse)->instance_id) in register_savevm_live()
856 se->instance_id = (*pse)->instance_id + 1; in register_savevm_live()
859 *pse = se; in register_savevm_live()
902 SaveStateEntry *se; in qemu_savevm_state_begin() local
907 for (se = first_se; se != NULL; se = se->next) { in qemu_savevm_state_begin()
910 if (se->save_live_state == NULL) in qemu_savevm_state_begin()
915 qemu_put_be32(f, se->section_id); in qemu_savevm_state_begin()
918 len = strlen(se->idstr); in qemu_savevm_state_begin()
920 qemu_put_buffer(f, (uint8_t *)se->idstr, len); in qemu_savevm_state_begin()
922 qemu_put_be32(f, se->instance_id); in qemu_savevm_state_begin()
923 qemu_put_be32(f, se->version_id); in qemu_savevm_state_begin()
925 se->save_live_state(f, QEMU_VM_SECTION_START, se->opaque); in qemu_savevm_state_begin()
936 SaveStateEntry *se; in qemu_savevm_state_iterate() local
939 for (se = first_se; se != NULL; se = se->next) { in qemu_savevm_state_iterate()
940 if (se->save_live_state == NULL) in qemu_savevm_state_iterate()
945 qemu_put_be32(f, se->section_id); in qemu_savevm_state_iterate()
947 ret &= !!se->save_live_state(f, QEMU_VM_SECTION_PART, se->opaque); in qemu_savevm_state_iterate()
961 SaveStateEntry *se; in qemu_savevm_state_complete() local
963 for (se = first_se; se != NULL; se = se->next) { in qemu_savevm_state_complete()
964 if (se->save_live_state == NULL) in qemu_savevm_state_complete()
969 qemu_put_be32(f, se->section_id); in qemu_savevm_state_complete()
971 se->save_live_state(f, QEMU_VM_SECTION_END, se->opaque); in qemu_savevm_state_complete()
974 for(se = first_se; se != NULL; se = se->next) { in qemu_savevm_state_complete()
977 if (se->save_state == NULL) in qemu_savevm_state_complete()
982 qemu_put_be32(f, se->section_id); in qemu_savevm_state_complete()
985 len = strlen(se->idstr); in qemu_savevm_state_complete()
987 qemu_put_buffer(f, (uint8_t *)se->idstr, len); in qemu_savevm_state_complete()
989 qemu_put_be32(f, se->instance_id); in qemu_savevm_state_complete()
990 qemu_put_be32(f, se->version_id); in qemu_savevm_state_complete()
992 se->save_state(f, se->opaque); in qemu_savevm_state_complete()
1037 SaveStateEntry *se; in find_se() local
1039 for(se = first_se; se != NULL; se = se->next) { in find_se()
1040 if (!strcmp(se->idstr, idstr) && in find_se()
1041 instance_id == se->instance_id) in find_se()
1042 return se; in find_se()
1048 SaveStateEntry *se; member
1056 SaveStateEntry *se; in qemu_loadvm_state_v2() local
1073 se = find_se(idstr, instance_id); in qemu_loadvm_state_v2()
1074 if (!se) { in qemu_loadvm_state_v2()
1078 ret = se->load_state(f, se->opaque, version_id); in qemu_loadvm_state_v2()
1120 SaveStateEntry *se; in qemu_loadvm_state() local
1136 se = find_se(idstr, instance_id); in qemu_loadvm_state()
1137 if (se == NULL) { in qemu_loadvm_state()
1144 if (version_id > se->version_id) { in qemu_loadvm_state()
1146 version_id, idstr, se->version_id); in qemu_loadvm_state()
1154 le->se = se; in qemu_loadvm_state()
1160 if (le->se->load_state(f, le->se->opaque, le->version_id)) { in qemu_loadvm_state()
1177 le->se->load_state(f, le->se->opaque, le->version_id); in qemu_loadvm_state()