Home
last modified time | relevance | path

Searched refs:TIMER_CTL_REG (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/clocksource/
H A Dtimer-sun4i.c32 #define TIMER_CTL_REG(val) (0x10 * val + 0x10) macro
60 u32 val = readl(base + TIMER_CTL_REG(timer)); in sun4i_clkevt_time_stop()
61 writel(val & ~TIMER_CTL_ENABLE, base + TIMER_CTL_REG(timer)); in sun4i_clkevt_time_stop()
74 u32 val = readl(base + TIMER_CTL_REG(timer)); in sun4i_clkevt_time_start()
82 base + TIMER_CTL_REG(timer)); in sun4i_clkevt_time_start()
181 timer_of_base(&to) + TIMER_CTL_REG(1)); in sun4i_timer_init()
203 timer_of_base(&to) + TIMER_CTL_REG(0)); in sun4i_timer_init()
H A Dtimer-sun5i.c29 #define TIMER_CTL_REG(val) (0x20 * (val) + 0x10) macro
83 u32 val = readl(ce->timer.base + TIMER_CTL_REG(timer)); in sun5i_clkevt_time_stop()
84 writel(val & ~TIMER_CTL_ENABLE, ce->timer.base + TIMER_CTL_REG(timer)); in sun5i_clkevt_time_stop()
96 u32 val = readl(ce->timer.base + TIMER_CTL_REG(timer)); in sun5i_clkevt_time_start()
104 ce->timer.base + TIMER_CTL_REG(timer)); in sun5i_clkevt_time_start()
224 base + TIMER_CTL_REG(1)); in sun5i_setup_clocksource()
/kernel/linux/linux-6.6/drivers/clocksource/
H A Dtimer-sun4i.c30 #define TIMER_CTL_REG(val) (0x10 * val + 0x10) macro
58 u32 val = readl(base + TIMER_CTL_REG(timer)); in sun4i_clkevt_time_stop()
59 writel(val & ~TIMER_CTL_ENABLE, base + TIMER_CTL_REG(timer)); in sun4i_clkevt_time_stop()
72 u32 val = readl(base + TIMER_CTL_REG(timer)); in sun4i_clkevt_time_start()
80 base + TIMER_CTL_REG(timer)); in sun4i_clkevt_time_start()
180 timer_of_base(&to) + TIMER_CTL_REG(1)); in sun4i_timer_init()
202 timer_of_base(&to) + TIMER_CTL_REG(0)); in sun4i_timer_init()
H A Dtimer-sun5i.c24 #define TIMER_CTL_REG(val) (0x20 * (val) + 0x10) macro
68 u32 val = readl(ce->base + TIMER_CTL_REG(timer)); in sun5i_clkevt_time_stop()
69 writel(val & ~TIMER_CTL_ENABLE, ce->base + TIMER_CTL_REG(timer)); in sun5i_clkevt_time_stop()
81 u32 val = readl(ce->base + TIMER_CTL_REG(timer)); in sun5i_clkevt_time_start()
89 ce->base + TIMER_CTL_REG(timer)); in sun5i_clkevt_time_start()
181 base + TIMER_CTL_REG(1)); in sun5i_setup_clocksource()

Completed in 3 milliseconds