Lines Matching refs:TIM_CR1_CEN
140 if (!(cr1 & TIM_CR1_CEN)) in stm32_timer_start()
159 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, TIM_CR1_CEN); in stm32_timer_start()
173 if (cr1 & TIM_CR1_CEN) in stm32_timer_stop()
178 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0); in stm32_timer_stop()
222 if (cr1 & TIM_CR1_CEN) { in stm32_tt_read_frequency()
415 *val = (dat & TIM_CR1_CEN) ? 1 : 0; in stm32_counter_read_raw()
453 if (!(dat & TIM_CR1_CEN)) in stm32_counter_write_raw()
455 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, in stm32_counter_write_raw()
456 TIM_CR1_CEN); in stm32_counter_write_raw()
459 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, in stm32_counter_write_raw()
461 if (dat & TIM_CR1_CEN) in stm32_counter_write_raw()
569 if (!(val & TIM_CR1_CEN)) in stm32_set_enable_mode()