Home
last modified time | relevance | path

Searched refs:cntfrq (Results 1 – 5 of 5) sorted by relevance

/openbmc/u-boot/arch/arm/cpu/armv8/
H A Dgeneric_timer.c18 unsigned long cntfrq; in get_tbclk() local
19 asm volatile("mrs %0, cntfrq_el0" : "=r" (cntfrq)); in get_tbclk()
20 return cntfrq; in get_tbclk()
/openbmc/qemu/hw/timer/
H A Dsse-timer.c229 r = s->cntfrq; in sse_timer_read()
289 s->cntfrq = value; in sse_timer_write()
379 s->cntfrq = 0; in sse_timer_reset()
433 VMSTATE_UINT32(cntfrq, SSETimer),
/openbmc/qemu/include/hw/timer/
H A Dsse-timer.h46 uint32_t cntfrq; member
/openbmc/qemu/target/arm/hvf/
H A Dhvf.c1802 uint32_t cntfrq; in hvf_wfi() local
1826 cntfrq = gt_cntfrq_period_ns(arm_cpu); in hvf_wfi()
1827 seconds = muldiv64(ticks_to_sleep, cntfrq, NANOSECONDS_PER_SECOND); in hvf_wfi()
1828 ticks_to_sleep -= muldiv64(seconds, NANOSECONDS_PER_SECOND, cntfrq); in hvf_wfi()
1829 nanos = ticks_to_sleep * cntfrq; in hvf_wfi()
/openbmc/u-boot/arch/arm/cpu/armv8/fsl-layerscape/
H A Dcpu.c1145 unsigned long cntfrq = COUNTER_FREQUENCY_REAL; in timer_init() local
1149 asm volatile("msr cntfrq_el0, %0" : : "r" (cntfrq) : "memory"); in timer_init()