Lines Matching refs:cr1
110 u32 cr1, sms; in stm32_count_function_set() local
128 regmap_read(priv->regmap, TIM_CR1, &cr1); in stm32_count_function_set()
142 regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, cr1); in stm32_count_function_set()
153 u32 cr1; in stm32_count_direction_read() local
155 regmap_read(priv->regmap, TIM_CR1, &cr1); in stm32_count_direction_read()
156 direction = (cr1 & TIM_CR1_DIR) ? "backward" : "forward"; in stm32_count_direction_read()
199 u32 cr1; in stm32_count_enable_read() local
201 regmap_read(priv->regmap, TIM_CR1, &cr1); in stm32_count_enable_read()
203 return scnprintf(buf, PAGE_SIZE, "%d\n", (bool)(cr1 & TIM_CR1_CEN)); in stm32_count_enable_read()
213 u32 cr1; in stm32_count_enable_write() local
221 regmap_read(priv->regmap, TIM_CR1, &cr1); in stm32_count_enable_write()
222 if (!(cr1 & TIM_CR1_CEN)) in stm32_count_enable_write()
228 regmap_read(priv->regmap, TIM_CR1, &cr1); in stm32_count_enable_write()
230 if (cr1 & TIM_CR1_CEN) in stm32_count_enable_write()