Lines Matching refs:cr1
24 u32 cr1; member
118 u32 cr1, sms; in stm32_count_function_set() local
138 regmap_read(priv->regmap, TIM_CR1, &cr1); in stm32_count_function_set()
148 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, cr1); in stm32_count_function_set()
159 u32 cr1; in stm32_count_direction_read() local
161 regmap_read(priv->regmap, TIM_CR1, &cr1); in stm32_count_direction_read()
162 direction = (cr1 & TIM_CR1_DIR) ? "backward" : "forward"; in stm32_count_direction_read()
207 u32 cr1; in stm32_count_enable_read() local
209 regmap_read(priv->regmap, TIM_CR1, &cr1); in stm32_count_enable_read()
211 return scnprintf(buf, PAGE_SIZE, "%d\n", (bool)(cr1 & TIM_CR1_CEN)); in stm32_count_enable_read()
221 u32 cr1; in stm32_count_enable_write() local
229 regmap_read(priv->regmap, TIM_CR1, &cr1); in stm32_count_enable_write()
230 if (!(cr1 & TIM_CR1_CEN)) in stm32_count_enable_write()
236 regmap_read(priv->regmap, TIM_CR1, &cr1); in stm32_count_enable_write()
238 if (cr1 & TIM_CR1_CEN) in stm32_count_enable_write()
400 regmap_read(priv->regmap, TIM_CR1, &priv->bak.cr1); in stm32_timer_cnt_suspend()
428 regmap_write(priv->regmap, TIM_CR1, priv->bak.cr1); in stm32_timer_cnt_resume()