Lines Matching refs:TIM_CR1
139 regmap_read(priv->regmap, TIM_CR1, &cr1); in stm32_timer_start()
145 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_ARPE, TIM_CR1_ARPE); in stm32_timer_start()
159 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, TIM_CR1_CEN); in stm32_timer_start()
172 regmap_read(priv->regmap, TIM_CR1, &cr1); in stm32_timer_stop()
177 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_ARPE, 0); in stm32_timer_stop()
178 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0); in stm32_timer_stop()
218 regmap_read(priv->regmap, TIM_CR1, &cr1); in stm32_tt_read_frequency()
414 regmap_read(priv->regmap, TIM_CR1, &dat); in stm32_counter_read_raw()
452 regmap_read(priv->regmap, TIM_CR1, &dat); in stm32_counter_write_raw()
455 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, in stm32_counter_write_raw()
458 regmap_read(priv->regmap, TIM_CR1, &dat); in stm32_counter_write_raw()
459 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, in stm32_counter_write_raw()
568 regmap_read(priv->regmap, TIM_CR1, &val); in stm32_set_enable_mode()
669 return regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_DIR, in stm32_set_count_direction()
679 regmap_read(priv->regmap, TIM_CR1, &cr1); in stm32_get_count_direction()
718 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_ARPE, 0); in stm32_count_set_preset()