Lines Matching refs:ctrl
112 u16 ctrl; in nios2_timer_start() local
114 ctrl = timer_readw(timer, ALTERA_TIMER_CONTROL_REG); in nios2_timer_start()
115 ctrl |= ALTERA_TIMER_CONTROL_START_MSK; in nios2_timer_start()
116 timer_writew(timer, ctrl, ALTERA_TIMER_CONTROL_REG); in nios2_timer_start()
121 u16 ctrl; in nios2_timer_stop() local
123 ctrl = timer_readw(timer, ALTERA_TIMER_CONTROL_REG); in nios2_timer_stop()
124 ctrl |= ALTERA_TIMER_CONTROL_STOP_MSK; in nios2_timer_stop()
125 timer_writew(timer, ctrl, ALTERA_TIMER_CONTROL_REG); in nios2_timer_stop()
131 u16 ctrl; in nios2_timer_config() local
137 ctrl = timer_readw(timer, ALTERA_TIMER_CONTROL_REG); in nios2_timer_config()
139 timer_writew(timer, ctrl | ALTERA_TIMER_CONTROL_STOP_MSK, in nios2_timer_config()
146 ctrl |= ALTERA_TIMER_CONTROL_START_MSK | ALTERA_TIMER_CONTROL_ITO_MSK; in nios2_timer_config()
148 ctrl |= ALTERA_TIMER_CONTROL_CONT_MSK; in nios2_timer_config()
150 ctrl &= ~ALTERA_TIMER_CONTROL_CONT_MSK; in nios2_timer_config()
151 timer_writew(timer, ctrl, ALTERA_TIMER_CONTROL_REG); in nios2_timer_config()
252 unsigned int ctrl; in nios2_clocksource_init() local
267 ctrl = ALTERA_TIMER_CONTROL_CONT_MSK | ALTERA_TIMER_CONTROL_START_MSK; in nios2_clocksource_init()
268 timer_writew(&nios2_cs.timer, ctrl, ALTERA_TIMER_CONTROL_REG); in nios2_clocksource_init()