Searched refs:TIM_CR1_CEN (Results 1 – 5 of 5) sorted by relevance
| /linux-6.15/drivers/counter/ |
| H A D | stm32-timer-cnt.c | 144 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0); in stm32_count_function_write() 152 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, cr1); in stm32_count_function_write() 207 *enable = cr1 & TIM_CR1_CEN; in stm32_count_enable_read() 221 if (!(cr1 & TIM_CR1_CEN)) { in stm32_count_enable_write() 229 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, in stm32_count_enable_write() 230 TIM_CR1_CEN); in stm32_count_enable_write() 233 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0); in stm32_count_enable_write() 234 if (cr1 & TIM_CR1_CEN) in stm32_count_enable_write() 809 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0); in stm32_timer_cnt_suspend()
|
| /linux-6.15/drivers/iio/trigger/ |
| H A D | stm32-timer-trigger.c | 180 regmap_set_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN); in stm32_timer_start() 197 regmap_clear_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN); in stm32_timer_stop() 253 if (cr1 & TIM_CR1_CEN) { in stm32_tt_read_frequency() 465 *val = (dat & TIM_CR1_CEN) ? 1 : 0; in stm32_counter_read_raw() 509 regmap_set_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN); in stm32_counter_write_raw() 511 regmap_clear_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN); in stm32_counter_write_raw() 835 regmap_clear_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN); in stm32_timer_trigger_remove() 856 regmap_clear_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN); in stm32_timer_trigger_suspend()
|
| /linux-6.15/drivers/clocksource/ |
| H A D | timer-stm32.c | 34 #define TIM_CR1_CEN BIT(0) macro 114 writel_relaxed(TIM_CR1_UDIS | TIM_CR1_CEN, timer_of_base(to) + TIM_CR1); in stm32_timer_start()
|
| /linux-6.15/drivers/pwm/ |
| H A D | pwm-stm32.c | 394 regmap_set_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN); in stm32_pwm_write_waveform() 418 ret = regmap_clear_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN); in stm32_pwm_write_waveform() 483 regmap_set_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN); in stm32_pwm_raw_capture() 528 regmap_clear_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN); in stm32_pwm_raw_capture()
|
| /linux-6.15/include/linux/mfd/ |
| H A D | stm32-timers.h | 40 #define TIM_CR1_CEN BIT(0) /* Counter Enable */ macro
|