Lines Matching refs:ctrl
119 u16 ctrl; in nios2_timer_start() local
121 ctrl = timer_readw(timer, ALTERA_TIMER_CONTROL_REG); in nios2_timer_start()
122 ctrl |= ALTERA_TIMER_CONTROL_START_MSK; in nios2_timer_start()
123 timer_writew(timer, ctrl, ALTERA_TIMER_CONTROL_REG); in nios2_timer_start()
128 u16 ctrl; in nios2_timer_stop() local
130 ctrl = timer_readw(timer, ALTERA_TIMER_CONTROL_REG); in nios2_timer_stop()
131 ctrl |= ALTERA_TIMER_CONTROL_STOP_MSK; in nios2_timer_stop()
132 timer_writew(timer, ctrl, ALTERA_TIMER_CONTROL_REG); in nios2_timer_stop()
138 u16 ctrl; in nios2_timer_config() local
144 ctrl = timer_readw(timer, ALTERA_TIMER_CONTROL_REG); in nios2_timer_config()
146 timer_writew(timer, ctrl | ALTERA_TIMER_CONTROL_STOP_MSK, in nios2_timer_config()
153 ctrl |= ALTERA_TIMER_CONTROL_START_MSK | ALTERA_TIMER_CONTROL_ITO_MSK; in nios2_timer_config()
155 ctrl |= ALTERA_TIMER_CONTROL_CONT_MSK; in nios2_timer_config()
157 ctrl &= ~ALTERA_TIMER_CONTROL_CONT_MSK; in nios2_timer_config()
158 timer_writew(timer, ctrl, ALTERA_TIMER_CONTROL_REG); in nios2_timer_config()
283 unsigned int ctrl; in nios2_clocksource_init() local
303 ctrl = ALTERA_TIMER_CONTROL_CONT_MSK | ALTERA_TIMER_CONTROL_START_MSK; in nios2_clocksource_init()
304 timer_writew(&nios2_cs.timer, ctrl, ALTERA_TIMER_CONTROL_REG); in nios2_clocksource_init()