/qemu/hw/core/ |
H A D | ptimer.c | 28 int64_t period; member 54 uint64_t period; in ptimer_reload() local 79 period = s->period; in ptimer_reload() 86 if (s->period == 0 && s->period_frac == 0) { in ptimer_reload() 141 if (s->enabled == 1 && (delta * period < 10000) && in ptimer_reload() 143 period = 10000 / delta; in ptimer_reload() 148 s->next_event = s->last_event + delta * period; in ptimer_reload() 223 uint64_t period = s->period; in ptimer_get_count() local 225 if (!oneshot && (s->delta * period < 10000) && in ptimer_get_count() 227 period = 10000 / s->delta; in ptimer_get_count() [all …]
|
H A D | clock.c | 53 bool clock_set(Clock *clk, uint64_t period) in clock_set() argument 55 if (clk->period == period) { in clock_set() 58 trace_clock_set(CLOCK_PATH(clk), CLOCK_PERIOD_TO_HZ(clk->period), in clock_set() 59 CLOCK_PERIOD_TO_HZ(period)); in clock_set() 60 clk->period = period; in clock_set() 71 return muldiv64(clk->period, clk->multiplier, clk->divider); in clock_get_child_period() 91 if (child->period != child_period) { in clock_propagate_period() 95 child->period = child_period; in clock_propagate_period() 97 CLOCK_PERIOD_TO_HZ(child->period), in clock_propagate_period() 120 clk->period = clock_get_child_period(src); in clock_set_source() [all …]
|
H A D | clock-vmstate.c | 57 VMSTATE_UINT64(period, Clock),
|
/qemu/util/ |
H A D | timed-average.c | 60 int64_t period) in update_expiration() argument 63 int64_t elapsed = (now - w->expiration) % period; in update_expiration() 65 int64_t remaining = period - elapsed; in update_expiration() 100 uint64_t period) in timed_average_init() argument 109 ta->period = (uint64_t) period * 4 / 3; in timed_average_init() 117 ta->windows[0].expiration = now + ta->period / 2; in timed_average_init() 118 ta->windows[1].expiration = now + ta->period; in timed_average_init() 133 assert(ta->period != 0); in check_expirations() 140 update_expiration(w, now, ta->period); in check_expirations() 154 *elapsed = ta->period - remaining; in check_expirations()
|
/qemu/include/hw/ |
H A D | clock.h | 78 uint64_t period; member 238 return clk->period; in clock_get() 278 mulu64(&ns_low, &ns_high, clk->period, ticks); in clock_ticks_to_ns() 315 if (clk->period == 0) { in clock_ns_to_ticks() 319 divu128(&lo, &hi, clk->period); in clock_ns_to_ticks()
|
H A D | ptimer.h | 174 void ptimer_set_period(ptimer_state *s, int64_t period);
|
/qemu/docs/devel/ |
H A D | clocks.rst | 56 The state of a clock is its period; it is stored as an integer 63 the current period of a clock to be fetched at any time. When a clock 73 The 0 period value is converted to 0 in hertz and vice versa. 0 always means 148 At creation, the period of the clock is 0: the clock is disabled. You can 151 Note that if you are creating a clock with a fixed period which will never 184 * ``ClockPreUpdate`` : called when the input clock's period is about to 186 which it needs to know the old value of the clock period. During 188 ``clock_ticks_to_ns()`` will use the old period. 189 * ``ClockUpdate`` : called after the input clock's period has changed. 191 will use the new period. [all …]
|
H A D | conflict-resolution.rst | 56 5. A public reprimand plus a mandatory cooling off period. The cooling 57 off period may require, for example, one or more of the following: 61 events. The cooling off period is voluntary but may escalate to a
|
/qemu/hw/rtc/ |
H A D | mc146818rtc.c | 102 periodic_clock_to_ns(s->period / c); in rtc_coalesced_timer_update() 156 uint32_t period; in periodic_timer_update() local 159 period = rtc_periodic_clock_ticks(s); in periodic_timer_update() 160 s->period = period; in periodic_timer_update() 162 if (!period) { in periodic_timer_update() 204 s->irq_coalesced = lost_clock / s->period; in periodic_timer_update() 205 lost_clock %= s->period; in periodic_timer_update() 207 old_period != s->period) { in periodic_timer_update() 210 s->irq_coalesced, old_period, s->period); in periodic_timer_update() 218 lost_clock = MIN(lost_clock, period); in periodic_timer_update() [all …]
|
/qemu/hw/ppc/ |
H A D | ppc_booke.c | 149 uint64_t period; in booke_update_fixed_timer() local 162 period = 1ULL << target_bit; in booke_update_fixed_timer() 163 delta_tick = period - (tb & (period - 1)); in booke_update_fixed_timer() 166 if (tb & period) { in booke_update_fixed_timer() 167 ticks = period; in booke_update_fixed_timer()
|
/qemu/hw/timer/ |
H A D | hpet.c | 60 uint64_t period; /* Last value written to comparator */ member 321 VMSTATE_UINT64(period, HPETTimer), 370 uint64_t period = t->period; in hpet_timer() local 373 if (timer_is_periodic(t) && period != 0) { in hpet_timer() 375 t->cmp64 += period; in hpet_timer() 575 timer->period = (uint32_t)timer->period; in hpet_ram_write() 597 timer->period = deposit64(timer->period, shift, len, value); in hpet_ram_write() 646 timer->period = 0ULL; in hpet_reset()
|
/qemu/rust/hw/timer/hpet/src/ |
H A D | device.rs | 206 period: u64, field 226 period: 0, in init() 425 self.period = u64::from(self.period as u32); // truncate! in set_tn_cfg_reg() 454 self.period = self.period.deposit(shift, length, value); in set_tn_cmp_reg() 478 self.period = 0; in reset() 484 let period: u64 = self.period; in callback() localVariable 487 if self.is_periodic() && period != 0 { in callback() 489 self.cmp64 += period; in callback() 1006 vmstate_of!(HPETTimer, period),
|
/qemu/include/qemu/ |
H A D | timed-average.h | 47 uint64_t period; /* period in nanoseconds */ member 56 uint64_t period);
|
/qemu/qapi/ |
H A D | audio.json | 96 # @period-length: the period length in microseconds 107 '*period-length': 'uint32', 496 # @timer-period: timer period (in microseconds, 0: use lowest 505 '*timer-period': 'uint32' },
|
H A D | migration.json | 871 # @x-vcpu-dirty-limit-period: Periodic time (in milliseconds) of dirty 892 # @x-vcpu-dirty-limit-period are experimental. 911 { 'name': 'x-vcpu-dirty-limit-period', 'features': ['unstable'] }, 1052 # @x-vcpu-dirty-limit-period: Periodic time (in milliseconds) of dirty 1073 # @x-vcpu-dirty-limit-period are experimental. 1106 '*x-vcpu-dirty-limit-period': { 'type': 'uint64', 1262 # @x-vcpu-dirty-limit-period: Periodic time (in milliseconds) of dirty 1283 # @x-vcpu-dirty-limit-period are experimental. 1313 '*x-vcpu-dirty-limit-period': { 'type': 'uint64', 2101 # @calc-time: time period for which dirty page rate was measured, [all …]
|
/qemu/include/hw/rtc/ |
H A D | mc146818rtc.h | 44 uint32_t period; member
|
/qemu/system/ |
H A D | dirtylimit.c | 81 int64_t period = DIRTYLIMIT_CALC_TIME_MS; in vcpu_dirty_rate_stat_collect() local 84 period = migrate_vcpu_dirty_limit_period(); in vcpu_dirty_rate_stat_collect() 88 vcpu_calculate_dirtyrate(period, in vcpu_dirty_rate_stat_collect()
|
/qemu/include/hw/xen/interface/io/ |
H A D | fbif.h | 83 uint32_t period; /* period of refresh, in ms, member
|
/qemu/audio/ |
H A D | trace-events | 26 pw_period(uint64_t quantum, uint32_t rate) "period =%" PRIu64 "/%u"
|
/qemu/hw/arm/ |
H A D | omap1.c | 3484 int64_t period; member 3494 timer_mod(s->tm, qemu_clock_get_ms(QEMU_CLOCK_VIRTUAL) + s->period - s->on); in omap_lpg_tick() 3504 int64_t on, period = 1, ticks = 1000; in omap_lpg_update() local 3510 on = period; in omap_lpg_update() 3512 period = muldiv64(ticks, per[s->control & 7], /* PERCTRL */ in omap_lpg_update() 3519 if (on == period && s->on < s->period) { in omap_lpg_update() 3523 } else if (on && (on != s->on || period != s->period)) { in omap_lpg_update() 3526 s->period = period; in omap_lpg_update() 3532 s->period = period; in omap_lpg_update()
|
/qemu/include/standard-headers/linux/ |
H A D | input.h | 404 uint16_t period; member
|
/qemu/hw/display/ |
H A D | xenfb.c | 701 static void xenfb_send_refresh_period(struct XenFB *xenfb, int period) in xenfb_send_refresh_period() argument 707 event.refresh_period.period = period; in xenfb_send_refresh_period()
|
/qemu/docs/devel/migration/ |
H A D | dirty-limit.rst | 44 Calculate a suitable sleep period for each virtual CPU, which will be
|
/qemu/pc-bios/keymaps/ |
H A D | sv | 252 period 0x34
|
/qemu/tests/qtest/migration/ |
H A D | precopy-tests.c | 1072 const int64_t period, in migrate_dirty_limit_wait_showup() argument 1079 migrate_set_parameter_int(from, "x-vcpu-dirty-limit-period", period); in migrate_dirty_limit_wait_showup()
|