Home
last modified time | relevance | path

Searched refs:TIM_CR1_CEN (Results 1 – 6 of 6) sorted by relevance

/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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, 0); in stm32_timer_trigger_suspend()
/OK3568_Linux_fs/kernel/drivers/pwm/
H A Dpwm-stm32.c119 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, TIM_CR1_CEN); in stm32_pwm_raw_capture()
164 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0); in stm32_pwm_raw_capture()
420 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, TIM_CR1_CEN); in stm32_pwm_enable()
438 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0); in stm32_pwm_disable()
/OK3568_Linux_fs/u-boot/arch/arm/mach-stm32/stm32f4/
H A Dtimer.c43 #define TIM_CR1_CEN (1 << 0) macro
61 writel(TIM_CR1_CEN, &tim->cr1); in timer_init()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/include/linux/mfd/
H A Dstm32-timers.h35 #define TIM_CR1_CEN BIT(0) /* Counter Enable */ macro