Searched refs:clock_type (Results 1 – 9 of 9) sorted by relevance
| /openbmc/qemu/util/ |
| H A D | timed-average.c | 99 void timed_average_init(TimedAverage *ta, QEMUClockType clock_type, in timed_average_init() argument 102 int64_t now = qemu_clock_get_ns(clock_type); in timed_average_init() 110 ta->clock_type = clock_type; in timed_average_init() 130 int64_t now = qemu_clock_get_ns(ta->clock_type); in check_expirations()
|
| H A D | throttle.c | 208 aio_timer_new(new_context, tt->clock_type, SCALE_NS, in throttle_timers_attach_aio_context() 237 QEMUClockType clock_type, in throttle_timers_init() argument 245 tt->clock_type = clock_type; in throttle_timers_init() 397 QEMUClockType clock_type, in throttle_config() argument 410 ts->previous_leak = qemu_clock_get_ns(clock_type); in throttle_config() 436 int64_t now = qemu_clock_get_ns(tt->clock_type); in throttle_schedule_timer()
|
| /openbmc/qemu/block/ |
| H A D | accounting.c | 32 static QEMUClockType clock_type = QEMU_CLOCK_REALTIME; variable 39 clock_type = QEMU_CLOCK_VIRTUAL; in block_acct_init() 89 timed_average_init(&s->latency[i], clock_type, in block_acct_add_interval() 111 cookie->start_time_ns = qemu_clock_get_ns(clock_type); in block_acct_start() 207 int64_t time_ns = qemu_clock_get_ns(clock_type); in block_account_one_io() 266 stats->last_access_time_ns = qemu_clock_get_ns(clock_type); in block_acct_invalid() 283 return qemu_clock_get_ns(clock_type) - stats->last_access_time_ns; in block_acct_idle_time_ns()
|
| H A D | throttle-groups.c | 78 QEMUClockType clock_type; member 345 int64_t now = qemu_clock_get_ns(tg->clock_type); in schedule_next_request() 480 throttle_config(ts, tg->clock_type, cfg); in throttle_group_config() 568 tg->clock_type, in throttle_group_register_tgm() 758 tg->clock_type = QEMU_CLOCK_REALTIME; in throttle_group_obj_init() 761 tg->clock_type = QEMU_CLOCK_VIRTUAL; in throttle_group_obj_init() 794 throttle_config(&tg->ts, tg->clock_type, &cfg); in throttle_group_obj_complete() 905 throttle_config(&tg->ts, tg->clock_type, &cfg); in throttle_group_set_limits()
|
| /openbmc/qemu/include/qemu/ |
| H A D | throttle.h | 110 QEMUClockType clock_type; /* the clock used */ member 127 QEMUClockType clock_type, 147 QEMUClockType clock_type,
|
| H A D | timed-average.h | 52 QEMUClockType clock_type; /* the clock used */ member 55 void timed_average_init(TimedAverage *ta, QEMUClockType clock_type,
|
| /openbmc/qemu/tests/unit/ |
| H A D | test-aio.c | 49 QEMUClockType clock_type; member 69 qemu_clock_get_ns(data->clock_type) + data->ns); in timer_test_cb() 375 .clock_type = QEMU_CLOCK_REALTIME }; in test_timer_schedule() 385 aio_timer_init(ctx, &data.timer, data.clock_type, in test_timer_schedule() 388 qemu_clock_get_ns(data.clock_type) + in test_timer_schedule() 706 .clock_type = QEMU_CLOCK_REALTIME }; in test_source_timer_schedule() 717 aio_timer_init(ctx, &data.timer, data.clock_type, in test_source_timer_schedule() 719 expiry = qemu_clock_get_ns(data.clock_type) + in test_source_timer_schedule() 737 g_assert(qemu_clock_get_ns(data.clock_type) > expiry); in test_source_timer_schedule()
|
| H A D | test-throttle.c | 171 g_assert(tt->clock_type == QEMU_CLOCK_VIRTUAL); in test_init() 203 g_assert(tt->clock_type == QEMU_CLOCK_VIRTUAL); in test_init_readonly() 235 g_assert(tt->clock_type == QEMU_CLOCK_VIRTUAL); in test_init_writeonly()
|
| /openbmc/phosphor-net-ipmid/ |
| H A D | sessions_manager.cpp | 337 timer.expiry() - boost::asio::steady_timer::clock_type::now(); in scheduleSessionCleaner()
|