Searched refs:TIMER_PERIOD (Results 1 – 4 of 4) sorted by relevance
14 #define TIMER_PERIOD 10 /* 10 ns period for 100 MHz frequency */ macro20 return qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) / TIMER_PERIOD; in cpu_loongarch_get_constant_timer_counter()30 return (expire - now) / TIMER_PERIOD; in cpu_loongarch_get_constant_timer_ticks()42 next = now + (value & CONSTANT_TIMER_TICK_MASK) * TIMER_PERIOD; in cpu_loongarch_store_constant_timer_config()57 next = now + (env->CSR_TCFG & CONSTANT_TIMER_TICK_MASK) * TIMER_PERIOD; in loongarch_constant_timer_cb()
13 #define TIMER_PERIOD 10 /* 10 ns period for 100 Mhz frequency */ macro17 return NANOSECONDS_PER_SECOND / TIMER_PERIOD; in mips_gictimer_get_freq()27 (uint32_t)(now / TIMER_PERIOD); in gic_vptimer_update()28 next = now + (uint64_t)wait * TIMER_PERIOD; in gic_vptimer_update()67 return gictimer->sh_counterlo + (uint32_t)(now / TIMER_PERIOD); in mips_gictimer_get_sh_count()81 gictimer->sh_counterlo = count - (uint32_t)(now / TIMER_PERIOD); in mips_gictimer_store_sh_count()121 (uint32_t)(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) / TIMER_PERIOD); in mips_gictimer_stop_count()
93 #define TIMER_PERIOD 500ULL // 500ns macro410 ptimer_set_period(s->cputimer[i].timer, TIMER_PERIOD); in slavio_timer_init()
27 #define TIMER_PERIOD 50 /* 50 ns period for 20 MHz timer */ macro60 DIV_ROUND_UP(now - or1k_timer->clk_offset, TIMER_PERIOD); in cpu_openrisc_count_update()82 next = now + (uint64_t)wait * TIMER_PERIOD; in cpu_openrisc_timer_update()