Home
last modified time | relevance | path

Searched refs:TIM_CR1_CEN (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/drivers/counter/
H A Dstm32-timer-cnt.c140 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0); in stm32_count_function_set()
148 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, cr1); in stm32_count_function_set()
211 return scnprintf(buf, PAGE_SIZE, "%d\n", (bool)(cr1 & TIM_CR1_CEN)); in stm32_count_enable_read()
230 if (!(cr1 & TIM_CR1_CEN)) in stm32_count_enable_write()
233 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, in stm32_count_enable_write()
234 TIM_CR1_CEN); in stm32_count_enable_write()
237 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0); in stm32_count_enable_write()
238 if (cr1 & TIM_CR1_CEN) in stm32_count_enable_write()
403 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0); in stm32_timer_cnt_suspend()
/kernel/linux/linux-6.6/drivers/counter/
H A Dstm32-timer-cnt.c125 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0); in stm32_count_function_write()
133 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, cr1); in stm32_count_function_write()
188 *enable = cr1 & TIM_CR1_CEN; in stm32_count_enable_read()
201 if (!(cr1 & TIM_CR1_CEN)) in stm32_count_enable_write()
204 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, in stm32_count_enable_write()
205 TIM_CR1_CEN); in stm32_count_enable_write()
208 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0); in stm32_count_enable_write()
209 if (cr1 & TIM_CR1_CEN) in stm32_count_enable_write()
369 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0); in stm32_timer_cnt_suspend()
/kernel/linux/linux-5.10/drivers/iio/trigger/
H A Dstm32-timer-trigger.c174 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, TIM_CR1_CEN); in stm32_timer_start()
192 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0); in stm32_timer_stop()
248 if (cr1 & TIM_CR1_CEN) { in stm32_tt_read_frequency()
459 *val = (dat & TIM_CR1_CEN) ? 1 : 0; in stm32_counter_read_raw()
500 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, in stm32_counter_write_raw()
501 TIM_CR1_CEN); in stm32_counter_write_raw()
503 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, in stm32_counter_write_raw()
822 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0); in stm32_timer_trigger_remove()
845 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, in stm32_timer_trigger_suspend()
[all...]
/kernel/linux/linux-6.6/drivers/iio/trigger/
H A Dstm32-timer-trigger.c175 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, TIM_CR1_CEN); in stm32_timer_start()
193 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0); in stm32_timer_stop()
249 if (cr1 & TIM_CR1_CEN) { in stm32_tt_read_frequency()
460 *val = (dat & TIM_CR1_CEN) ? 1 : 0; in stm32_counter_read_raw()
501 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, in stm32_counter_write_raw()
502 TIM_CR1_CEN); in stm32_counter_write_raw()
504 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, in stm32_counter_write_raw()
823 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0); in stm32_timer_trigger_remove()
846 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, in stm32_timer_trigger_suspend()
[all...]
/kernel/linux/linux-5.10/drivers/pwm/
H A Dpwm-stm32.c119 regmap_set_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN); in stm32_pwm_raw_capture()
164 regmap_clear_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN); in stm32_pwm_raw_capture()
420 regmap_set_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN); in stm32_pwm_enable()
438 regmap_clear_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN); in stm32_pwm_disable()
/kernel/linux/linux-6.6/drivers/pwm/
H A Dpwm-stm32.c119 regmap_set_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN); in stm32_pwm_raw_capture()
164 regmap_clear_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN); in stm32_pwm_raw_capture()
424 regmap_set_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN); in stm32_pwm_enable()
442 regmap_clear_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN); in stm32_pwm_disable()
/kernel/linux/linux-5.10/drivers/clocksource/
H A Dtimer-stm32.c34 #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()
/kernel/linux/linux-6.6/drivers/clocksource/
H A Dtimer-stm32.c34 #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()
/kernel/linux/linux-5.10/include/linux/mfd/
H A Dstm32-timers.h35 #define TIM_CR1_CEN BIT(0) /* Counter Enable */ macro
/kernel/linux/linux-6.6/include/linux/mfd/
H A Dstm32-timers.h36 #define TIM_CR1_CEN BIT(0) /* Counter Enable */ macro

Completed in 9 milliseconds