Home
last modified time | relevance | path

Searched refs:cntkctl (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/arch/arm/include/asm/
H A Darch_timer.h124 u32 cntkctl; in arch_timer_get_cntkctl() local
125 asm volatile("mrc p15, 0, %0, c14, c1, 0" : "=r" (cntkctl)); in arch_timer_get_cntkctl()
126 return cntkctl; in arch_timer_get_cntkctl()
129 static inline void arch_timer_set_cntkctl(u32 cntkctl) in arch_timer_set_cntkctl() argument
131 asm volatile("mcr p15, 0, %0, c14, c1, 0" : : "r" (cntkctl)); in arch_timer_set_cntkctl()
/openbmc/linux/arch/arm64/include/asm/
H A Darch_timer.h164 static inline void arch_timer_set_cntkctl(u32 cntkctl) in arch_timer_set_cntkctl() argument
166 write_sysreg(cntkctl, cntkctl_el1); in arch_timer_set_cntkctl()
/openbmc/linux/drivers/clocksource/
H A Darm_arch_timer.c917 u32 cntkctl = arch_timer_get_cntkctl(); in arch_timer_evtstrm_enable() local
922 cntkctl |= ARCH_TIMER_EVT_INTERVAL_SCALE; in arch_timer_evtstrm_enable()
928 cntkctl &= ~ARCH_TIMER_EVT_TRIGGER_MASK; in arch_timer_evtstrm_enable()
930 cntkctl |= (divider << ARCH_TIMER_EVT_TRIGGER_SHIFT) in arch_timer_evtstrm_enable()
932 arch_timer_set_cntkctl(cntkctl); in arch_timer_evtstrm_enable()
961 u32 cntkctl = arch_timer_get_cntkctl(); in arch_counter_set_user_access() local
965 cntkctl &= ~(ARCH_TIMER_USR_PT_ACCESS_EN in arch_counter_set_user_access()
979 cntkctl |= ARCH_TIMER_USR_VCT_ACCESS_EN; in arch_counter_set_user_access()
981 arch_timer_set_cntkctl(cntkctl); in arch_counter_set_user_access()
/openbmc/qemu/target/arm/
H A Dhelper.c2498 uint32_t cntkctl; in gt_cntfrq_access() local
2504 cntkctl = env->cp15.cnthctl_el2; in gt_cntfrq_access()
2506 cntkctl = env->cp15.c14_cntkctl; in gt_cntfrq_access()
2508 if (!extract32(cntkctl, 0, 2)) { in gt_cntfrq_access()