Lines Matching +defs:val +defs:timer
22 #define TIMER_IRQ_EN(val) BIT(val) argument
24 #define TIMER_CTL_REG(val) (0x20 * (val) + 0x10) argument
27 #define TIMER_CTL_CLK_PRES(val) (((val) & 0x7) << 4) argument
29 #define TIMER_INTVAL_LO_REG(val) (0x20 * (val) + 0x14) argument
30 #define TIMER_INTVAL_HI_REG(val) (0x20 * (val) + 0x18) argument
31 #define TIMER_CNTVAL_LO_REG(val) (0x20 * (val) + 0x1c) argument
32 #define TIMER_CNTVAL_HI_REG(val) (0x20 * (val) + 0x20) argument
66 static void sun5i_clkevt_time_stop(struct sun5i_timer *ce, u8 timer) in sun5i_clkevt_time_stop()
68 u32 val = readl(ce->base + TIMER_CTL_REG(timer)); in sun5i_clkevt_time_stop() local
74 static void sun5i_clkevt_time_setup(struct sun5i_timer *ce, u8 timer, u32 delay) in sun5i_clkevt_time_setup()
79 static void sun5i_clkevt_time_start(struct sun5i_timer *ce, u8 timer, bool periodic) in sun5i_clkevt_time_start()
81 u32 val = readl(ce->base + TIMER_CTL_REG(timer)); in sun5i_clkevt_time_start() local
205 u32 val; in sun5i_setup_clockevent() local