Lines Matching refs:ctrl
65 unsigned long ctrl = apbt_readl(timer, APBTMR_N_CONTROL); in apbt_disable_int() local
67 ctrl |= APBTMR_CONTROL_INT; in apbt_disable_int()
68 apbt_writel(timer, ctrl, APBTMR_N_CONTROL); in apbt_disable_int()
106 unsigned long ctrl = apbt_readl(timer, APBTMR_N_CONTROL); in apbt_enable_int() local
109 ctrl &= ~APBTMR_CONTROL_INT; in apbt_enable_int()
110 apbt_writel(timer, ctrl, APBTMR_N_CONTROL); in apbt_enable_int()
116 unsigned long ctrl; in apbt_shutdown() local
121 ctrl = apbt_readl(&dw_ced->timer, APBTMR_N_CONTROL); in apbt_shutdown()
122 ctrl &= ~APBTMR_CONTROL_ENABLE; in apbt_shutdown()
123 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_shutdown()
130 unsigned long ctrl; in apbt_set_oneshot() local
135 ctrl = apbt_readl(&dw_ced->timer, APBTMR_N_CONTROL); in apbt_set_oneshot()
141 ctrl &= ~APBTMR_CONTROL_ENABLE; in apbt_set_oneshot()
142 ctrl &= ~APBTMR_CONTROL_MODE_PERIODIC; in apbt_set_oneshot()
144 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_set_oneshot()
146 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_set_oneshot()
153 ctrl &= ~APBTMR_CONTROL_INT; in apbt_set_oneshot()
154 ctrl |= APBTMR_CONTROL_ENABLE; in apbt_set_oneshot()
155 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_set_oneshot()
163 unsigned long ctrl; in apbt_set_periodic() local
168 ctrl = apbt_readl(&dw_ced->timer, APBTMR_N_CONTROL); in apbt_set_periodic()
169 ctrl |= APBTMR_CONTROL_MODE_PERIODIC; in apbt_set_periodic()
170 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_set_periodic()
175 ctrl &= ~APBTMR_CONTROL_ENABLE; in apbt_set_periodic()
176 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_set_periodic()
180 ctrl |= APBTMR_CONTROL_ENABLE; in apbt_set_periodic()
181 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_set_periodic()
199 unsigned long ctrl; in apbt_next_event() local
203 ctrl = apbt_readl(&dw_ced->timer, APBTMR_N_CONTROL); in apbt_next_event()
204 ctrl &= ~APBTMR_CONTROL_ENABLE; in apbt_next_event()
205 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_next_event()
208 ctrl |= APBTMR_CONTROL_ENABLE; in apbt_next_event()
209 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_next_event()
326 unsigned long ctrl = apbt_readl(&dw_cs->timer, APBTMR_N_CONTROL); in dw_apb_clocksource_start() local
328 ctrl &= ~APBTMR_CONTROL_ENABLE; in dw_apb_clocksource_start()
329 apbt_writel(&dw_cs->timer, ctrl, APBTMR_N_CONTROL); in dw_apb_clocksource_start()
332 ctrl &= ~APBTMR_CONTROL_MODE_PERIODIC; in dw_apb_clocksource_start()
333 ctrl |= (APBTMR_CONTROL_ENABLE | APBTMR_CONTROL_INT); in dw_apb_clocksource_start()
334 apbt_writel(&dw_cs->timer, ctrl, APBTMR_N_CONTROL); in dw_apb_clocksource_start()