Searched refs:TIM_CR1_CEN (Results 1 – 4 of 4) sorted by relevance
/drivers/iio/trigger/ |
D | stm32-timer-trigger.c | 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() [all …]
|
/drivers/counter/ |
D | stm32-timer-cnt.c | 130 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0); in stm32_count_function_set() 142 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, cr1); in stm32_count_function_set() 203 return scnprintf(buf, PAGE_SIZE, "%d\n", (bool)(cr1 & TIM_CR1_CEN)); in stm32_count_enable_read() 222 if (!(cr1 & TIM_CR1_CEN)) in stm32_count_enable_write() 225 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, in stm32_count_enable_write() 226 TIM_CR1_CEN); in stm32_count_enable_write() 229 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0); in stm32_count_enable_write() 230 if (cr1 & TIM_CR1_CEN) in stm32_count_enable_write()
|
/drivers/pwm/ |
D | pwm-stm32.c | 116 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, TIM_CR1_CEN); in stm32_pwm_raw_capture() 161 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0); in stm32_pwm_raw_capture() 419 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, TIM_CR1_CEN); in stm32_pwm_enable() 437 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0); in stm32_pwm_disable()
|
/drivers/clocksource/ |
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()
|