Lines Matching +defs:val +defs:to

27 #define GPT_IRQ_ENABLE(val)     BIT((val) - 1)  argument
29 #define GPT_IRQ_ACK(val) BIT((val) - 1) argument
31 #define GPT_CTRL_REG(val) (0x10 * (val)) argument
32 #define GPT_CTRL_OP(val) (((val) & 0x3) << 4) argument
40 #define GPT_CLK_REG(val) (0x04 + (0x10 * (val))) argument
41 #define GPT_CLK_SRC(val) (((val) & 0x1) << 4) argument
47 #define GPT_CNT_REG(val) (0x08 + (0x10 * (val))) argument
48 #define GPT_CMP_REG(val) (0x0C + (0x10 * (val))) argument
56 #define SYST_CON_REG(to) (timer_of_base(to) + SYST_CON) argument
57 #define SYST_VAL_REG(to) (timer_of_base(to) + SYST_VAL) argument
75 static void mtk_syst_ack_irq(struct timer_of *to) in mtk_syst_ack_irq()
85 struct timer_of *to = to_timer_of(clkevt); in mtk_syst_handler() local
96 struct timer_of *to = to_timer_of(clkevt); in mtk_syst_clkevt_next_event() local
139 static void mtk_gpt_clkevt_time_stop(struct timer_of *to, u8 timer) in mtk_gpt_clkevt_time_stop()
141 u32 val; in mtk_gpt_clkevt_time_stop() local
148 static void mtk_gpt_clkevt_time_setup(struct timer_of *to, in mtk_gpt_clkevt_time_setup()
154 static void mtk_gpt_clkevt_time_start(struct timer_of *to, in mtk_gpt_clkevt_time_start()
157 u32 val; in mtk_gpt_clkevt_time_start() local
185 struct timer_of *to = to_timer_of(clk); in mtk_gpt_clkevt_set_periodic() local
197 struct timer_of *to = to_timer_of(clk); in mtk_gpt_clkevt_next_event() local
209 struct timer_of *to = to_timer_of(clkevt); in mtk_gpt_interrupt() local
219 __init mtk_gpt_setup(struct timer_of *to, u8 timer, u8 option) in mtk_gpt_setup()
233 static void mtk_gpt_enable_irq(struct timer_of *to, u8 timer) in mtk_gpt_enable_irq()
235 u32 val; in mtk_gpt_enable_irq() local
250 struct timer_of *to = to_timer_of(clk); in mtk_gpt_resume() local
257 struct timer_of *to = to_timer_of(clk); in mtk_gpt_suspend() local
270 static struct timer_of to = { variable