Home
last modified time | relevance | path

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

/Linux-v6.6/arch/arm/include/asm/
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()
/Linux-v6.6/arch/arm64/include/asm/
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()
/Linux-v6.6/drivers/clocksource/
Darm_arch_timer.c916 u32 cntkctl = arch_timer_get_cntkctl(); in arch_timer_evtstrm_enable() local
921 cntkctl |= ARCH_TIMER_EVT_INTERVAL_SCALE; in arch_timer_evtstrm_enable()
927 cntkctl &= ~ARCH_TIMER_EVT_TRIGGER_MASK; in arch_timer_evtstrm_enable()
929 cntkctl |= (divider << ARCH_TIMER_EVT_TRIGGER_SHIFT) in arch_timer_evtstrm_enable()
931 arch_timer_set_cntkctl(cntkctl); in arch_timer_evtstrm_enable()
960 u32 cntkctl = arch_timer_get_cntkctl(); in arch_counter_set_user_access() local
964 cntkctl &= ~(ARCH_TIMER_USR_PT_ACCESS_EN in arch_counter_set_user_access()
978 cntkctl |= ARCH_TIMER_USR_VCT_ACCESS_EN; in arch_counter_set_user_access()
980 arch_timer_set_cntkctl(cntkctl); in arch_counter_set_user_access()