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_set_mode() local
127 ctrl = apbt_readl(&dw_ced->timer, APBTMR_N_CONTROL); in apbt_set_mode()
128 ctrl |= APBTMR_CONTROL_MODE_PERIODIC; in apbt_set_mode()
129 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_set_mode()
134 ctrl &= ~APBTMR_CONTROL_ENABLE; in apbt_set_mode()
135 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_set_mode()
139 ctrl |= APBTMR_CONTROL_ENABLE; in apbt_set_mode()
140 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_set_mode()
144 ctrl = apbt_readl(&dw_ced->timer, APBTMR_N_CONTROL); in apbt_set_mode()
150 ctrl &= ~APBTMR_CONTROL_ENABLE; in apbt_set_mode()
151 ctrl &= ~APBTMR_CONTROL_MODE_PERIODIC; in apbt_set_mode()
153 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_set_mode()
155 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_set_mode()
162 ctrl &= ~APBTMR_CONTROL_INT; in apbt_set_mode()
163 ctrl |= APBTMR_CONTROL_ENABLE; in apbt_set_mode()
164 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_set_mode()
169 ctrl = apbt_readl(&dw_ced->timer, APBTMR_N_CONTROL); in apbt_set_mode()
170 ctrl &= ~APBTMR_CONTROL_ENABLE; in apbt_set_mode()
171 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_set_mode()
183 unsigned long ctrl; in apbt_next_event() local
187 ctrl = apbt_readl(&dw_ced->timer, APBTMR_N_CONTROL); in apbt_next_event()
188 ctrl &= ~APBTMR_CONTROL_ENABLE; in apbt_next_event()
189 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_next_event()
192 ctrl |= APBTMR_CONTROL_ENABLE; in apbt_next_event()
193 apbt_writel(&dw_ced->timer, ctrl, APBTMR_N_CONTROL); in apbt_next_event()
306 unsigned long ctrl = apbt_readl(&dw_cs->timer, APBTMR_N_CONTROL); in dw_apb_clocksource_start() local
308 ctrl &= ~APBTMR_CONTROL_ENABLE; in dw_apb_clocksource_start()
309 apbt_writel(&dw_cs->timer, ctrl, APBTMR_N_CONTROL); in dw_apb_clocksource_start()
312 ctrl &= ~APBTMR_CONTROL_MODE_PERIODIC; in dw_apb_clocksource_start()
313 ctrl |= (APBTMR_CONTROL_ENABLE | APBTMR_CONTROL_INT); in dw_apb_clocksource_start()
314 apbt_writel(&dw_cs->timer, ctrl, APBTMR_N_CONTROL); in dw_apb_clocksource_start()