Lines Matching refs:cmr
89 u32 bmr, cmr; in mchp_tc_count_function_write() local
92 regmap_read(priv->regmap, ATMEL_TC_REG(priv->channel[0], CMR), &cmr); in mchp_tc_count_function_write()
95 cmr &= ~ATMEL_TC_WAVE; in mchp_tc_count_function_write()
103 cmr |= ATMEL_TC_TIMER_CLOCK2; in mchp_tc_count_function_write()
105 cmr |= ATMEL_TC_TIMER_CLOCK1; in mchp_tc_count_function_write()
107 cmr |= ATMEL_TC_CMR_MASK; in mchp_tc_count_function_write()
108 cmr &= ~(ATMEL_TC_ABETRG | ATMEL_TC_XC0); in mchp_tc_count_function_write()
121 cmr |= ATMEL_TC_ETRGEDG_RISING | ATMEL_TC_ABETRG | ATMEL_TC_XC0; in mchp_tc_count_function_write()
129 regmap_write(priv->regmap, ATMEL_TC_REG(priv->channel[0], CMR), cmr); in mchp_tc_count_function_write()
137 ATMEL_TC_REG(priv->channel[1], CMR), cmr); in mchp_tc_count_function_write()
172 u32 cmr; in mchp_tc_count_action_read() local
174 regmap_read(priv->regmap, ATMEL_TC_REG(priv->channel[0], CMR), &cmr); in mchp_tc_count_action_read()
176 switch (cmr & ATMEL_TC_ETRGEDG) { in mchp_tc_count_action_read()