Lines Matching refs:ctrl
116 u16 ctrl; in nios2_timer_start() local
118 ctrl = timer_readw(timer, ALTERA_TIMER_CONTROL_REG); in nios2_timer_start()
119 ctrl |= ALTERA_TIMER_CONTROL_START_MSK; in nios2_timer_start()
120 timer_writew(timer, ctrl, ALTERA_TIMER_CONTROL_REG); in nios2_timer_start()
125 u16 ctrl; in nios2_timer_stop() local
127 ctrl = timer_readw(timer, ALTERA_TIMER_CONTROL_REG); in nios2_timer_stop()
128 ctrl |= ALTERA_TIMER_CONTROL_STOP_MSK; in nios2_timer_stop()
129 timer_writew(timer, ctrl, ALTERA_TIMER_CONTROL_REG); in nios2_timer_stop()
135 u16 ctrl; in nios2_timer_config() local
141 ctrl = timer_readw(timer, ALTERA_TIMER_CONTROL_REG); in nios2_timer_config()
143 timer_writew(timer, ctrl | ALTERA_TIMER_CONTROL_STOP_MSK, in nios2_timer_config()
150 ctrl |= ALTERA_TIMER_CONTROL_START_MSK | ALTERA_TIMER_CONTROL_ITO_MSK; in nios2_timer_config()
152 ctrl |= ALTERA_TIMER_CONTROL_CONT_MSK; in nios2_timer_config()
154 ctrl &= ~ALTERA_TIMER_CONTROL_CONT_MSK; in nios2_timer_config()
155 timer_writew(timer, ctrl, ALTERA_TIMER_CONTROL_REG); in nios2_timer_config()
265 unsigned int ctrl; in nios2_clocksource_init() local
280 ctrl = ALTERA_TIMER_CONTROL_CONT_MSK | ALTERA_TIMER_CONTROL_START_MSK; in nios2_clocksource_init()
281 timer_writew(&nios2_cs.timer, ctrl, ALTERA_TIMER_CONTROL_REG); in nios2_clocksource_init()