Lines Matching refs:cmr
87 u32 bmr, cmr; in mchp_tc_count_function_write() local
90 regmap_read(priv->regmap, ATMEL_TC_REG(priv->channel[0], CMR), &cmr); in mchp_tc_count_function_write()
93 cmr &= ~ATMEL_TC_WAVE; in mchp_tc_count_function_write()
101 cmr |= ATMEL_TC_TIMER_CLOCK2; in mchp_tc_count_function_write()
103 cmr |= ATMEL_TC_TIMER_CLOCK1; in mchp_tc_count_function_write()
105 cmr |= ATMEL_TC_CMR_MASK; in mchp_tc_count_function_write()
106 cmr &= ~(ATMEL_TC_ABETRG | ATMEL_TC_XC0); in mchp_tc_count_function_write()
119 cmr |= ATMEL_TC_ETRGEDG_RISING | ATMEL_TC_ABETRG | ATMEL_TC_XC0; in mchp_tc_count_function_write()
127 regmap_write(priv->regmap, ATMEL_TC_REG(priv->channel[0], CMR), cmr); in mchp_tc_count_function_write()
135 ATMEL_TC_REG(priv->channel[1], CMR), cmr); in mchp_tc_count_function_write()
170 u32 cmr; in mchp_tc_count_action_read() local
183 regmap_read(priv->regmap, ATMEL_TC_REG(priv->channel[0], CMR), &cmr); in mchp_tc_count_action_read()
185 switch (cmr & ATMEL_TC_ETRGEDG) { in mchp_tc_count_action_read()