Lines Matching refs:cmr
101 u32 bmr, cmr; in mchp_tc_count_function_set() local
104 regmap_read(priv->regmap, ATMEL_TC_REG(priv->channel[0], CMR), &cmr); in mchp_tc_count_function_set()
107 cmr &= ~ATMEL_TC_WAVE; in mchp_tc_count_function_set()
115 cmr |= ATMEL_TC_TIMER_CLOCK2; in mchp_tc_count_function_set()
117 cmr |= ATMEL_TC_TIMER_CLOCK1; in mchp_tc_count_function_set()
119 cmr |= ATMEL_TC_CMR_MASK; in mchp_tc_count_function_set()
120 cmr &= ~(ATMEL_TC_ABETRG | ATMEL_TC_XC0); in mchp_tc_count_function_set()
133 cmr |= ATMEL_TC_ETRGEDG_RISING | ATMEL_TC_ABETRG | ATMEL_TC_XC0; in mchp_tc_count_function_set()
138 regmap_write(priv->regmap, ATMEL_TC_REG(priv->channel[0], CMR), cmr); in mchp_tc_count_function_set()
146 ATMEL_TC_REG(priv->channel[1], CMR), cmr); in mchp_tc_count_function_set()
181 u32 cmr; in mchp_tc_count_action_get() local
194 regmap_read(priv->regmap, ATMEL_TC_REG(priv->channel[0], CMR), &cmr); in mchp_tc_count_action_get()
196 switch (cmr & ATMEL_TC_ETRGEDG) { in mchp_tc_count_action_get()