Lines Matching refs:ctrl

95 	u32 ctrl = apbt_readl(timer, APBTMR_N_CONTROL);  in apbt_enable_int()  local
98 ctrl &= ~APBTMR_CONTROL_INT; in apbt_enable_int()
99 apbt_writel(timer, ctrl, APBTMR_N_CONTROL); in apbt_enable_int()
105 u32 ctrl; in apbt_shutdown() local
110 ctrl = apbt_readl(&dw_ced->timer, APBTMR_N_CONTROL); in apbt_shutdown()
111 ctrl &= ~APBTMR_CONTROL_ENABLE; in apbt_shutdown()
112 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_shutdown()
119 u32 ctrl; in apbt_set_oneshot() local
124 ctrl = apbt_readl(&dw_ced->timer, APBTMR_N_CONTROL); in apbt_set_oneshot()
130 ctrl &= ~APBTMR_CONTROL_ENABLE; in apbt_set_oneshot()
131 ctrl &= ~APBTMR_CONTROL_MODE_PERIODIC; in apbt_set_oneshot()
133 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_set_oneshot()
135 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_set_oneshot()
142 ctrl &= ~APBTMR_CONTROL_INT; in apbt_set_oneshot()
143 ctrl |= APBTMR_CONTROL_ENABLE; in apbt_set_oneshot()
144 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_set_oneshot()
152 u32 ctrl; in apbt_set_periodic() local
157 ctrl = apbt_readl(&dw_ced->timer, APBTMR_N_CONTROL); in apbt_set_periodic()
158 ctrl |= APBTMR_CONTROL_MODE_PERIODIC; in apbt_set_periodic()
159 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_set_periodic()
164 ctrl &= ~APBTMR_CONTROL_ENABLE; in apbt_set_periodic()
165 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_set_periodic()
169 ctrl |= APBTMR_CONTROL_ENABLE; in apbt_set_periodic()
170 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_set_periodic()
188 u32 ctrl; in apbt_next_event() local
192 ctrl = apbt_readl_relaxed(&dw_ced->timer, APBTMR_N_CONTROL); in apbt_next_event()
193 ctrl &= ~APBTMR_CONTROL_ENABLE; in apbt_next_event()
194 apbt_writel_relaxed(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_next_event()
197 ctrl |= APBTMR_CONTROL_ENABLE; in apbt_next_event()
198 apbt_writel_relaxed(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_next_event()
294 u32 ctrl = apbt_readl(&dw_cs->timer, APBTMR_N_CONTROL); in dw_apb_clocksource_start() local
296 ctrl &= ~APBTMR_CONTROL_ENABLE; in dw_apb_clocksource_start()
297 apbt_writel(&dw_cs->timer, ctrl, APBTMR_N_CONTROL); in dw_apb_clocksource_start()
300 ctrl &= ~APBTMR_CONTROL_MODE_PERIODIC; in dw_apb_clocksource_start()
301 ctrl |= (APBTMR_CONTROL_ENABLE | APBTMR_CONTROL_INT); in dw_apb_clocksource_start()
302 apbt_writel(&dw_cs->timer, ctrl, APBTMR_N_CONTROL); in dw_apb_clocksource_start()