Lines Matching refs:value
51 time_t value = qemu_clock_get_ms(clock) / 1000; in qemu_ref_timedate() local
54 value -= rtc_realtime_clock_offset; in qemu_ref_timedate()
57 value += rtc_ref_start_datetime; in qemu_ref_timedate()
61 value -= rtc_host_datetime_offset; in qemu_ref_timedate()
67 return value; in qemu_ref_timedate()
142 const char *value; in configure_rtc() local
149 value = qemu_opt_get(opts, "base"); in configure_rtc()
150 if (value) { in configure_rtc()
151 if (!strcmp(value, "utc")) { in configure_rtc()
153 } else if (!strcmp(value, "localtime")) { in configure_rtc()
158 configure_rtc_base_datetime(value); in configure_rtc()
161 value = qemu_opt_get(opts, "clock"); in configure_rtc()
162 if (value) { in configure_rtc()
163 if (!strcmp(value, "host")) { in configure_rtc()
165 } else if (!strcmp(value, "rt")) { in configure_rtc()
167 } else if (!strcmp(value, "vm")) { in configure_rtc()
170 error_report("invalid option value '%s'", value); in configure_rtc()
174 value = qemu_opt_get(opts, "driftfix"); in configure_rtc()
175 if (value) { in configure_rtc()
176 if (!strcmp(value, "slew")) { in configure_rtc()
184 } else if (!strcmp(value, "none")) { in configure_rtc()
187 error_report("invalid option value '%s'", value); in configure_rtc()