Searched refs:ATMEL_TC_REG (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/drivers/clocksource/ |
D | timer-atmel-tcb.c | 60 upper = readl_relaxed(tcaddr + ATMEL_TC_REG(1, CV)); in tc_get_cycles() 61 lower = readl_relaxed(tcaddr + ATMEL_TC_REG(0, CV)); in tc_get_cycles() 62 } while (upper != readl_relaxed(tcaddr + ATMEL_TC_REG(1, CV))); in tc_get_cycles() 70 return readl_relaxed(tcaddr + ATMEL_TC_REG(0, CV)); in tc_get_cycles32() 78 tcb_cache[i].cmr = readl(tcaddr + ATMEL_TC_REG(i, CMR)); in tc_clksrc_suspend() 79 tcb_cache[i].imr = readl(tcaddr + ATMEL_TC_REG(i, IMR)); in tc_clksrc_suspend() 80 tcb_cache[i].rc = readl(tcaddr + ATMEL_TC_REG(i, RC)); in tc_clksrc_suspend() 81 tcb_cache[i].clken = !!(readl(tcaddr + ATMEL_TC_REG(i, SR)) & in tc_clksrc_suspend() 94 writel(tcb_cache[i].cmr, tcaddr + ATMEL_TC_REG(i, CMR)); in tc_clksrc_resume() 95 writel(tcb_cache[i].rc, tcaddr + ATMEL_TC_REG(i, RC)); in tc_clksrc_resume() [all …]
|
/linux-6.1.9/drivers/pwm/ |
D | pwm-atmel-tcb.c | 107 regmap_read(tcbpwmc->regmap, ATMEL_TC_REG(tcbpwmc->channel, CMR), &cmr); in atmel_tcb_pwm_request() 115 ATMEL_TC_REG(tcbpwmc->channel, RA), in atmel_tcb_pwm_request() 119 ATMEL_TC_REG(tcbpwmc->channel, RB), in atmel_tcb_pwm_request() 123 regmap_read(tcbpwmc->regmap, ATMEL_TC_REG(tcbpwmc->channel, RC), in atmel_tcb_pwm_request() 131 regmap_write(tcbpwmc->regmap, ATMEL_TC_REG(tcbpwmc->channel, CMR), cmr); in atmel_tcb_pwm_request() 168 regmap_read(tcbpwmc->regmap, ATMEL_TC_REG(tcbpwmc->channel, CMR), &cmr); in atmel_tcb_pwm_disable() 185 regmap_write(tcbpwmc->regmap, ATMEL_TC_REG(tcbpwmc->channel, CMR), cmr); in atmel_tcb_pwm_disable() 193 ATMEL_TC_REG(tcbpwmc->channel, CCR), in atmel_tcb_pwm_disable() 198 ATMEL_TC_REG(tcbpwmc->channel, CCR), in atmel_tcb_pwm_disable() 225 regmap_read(tcbpwmc->regmap, ATMEL_TC_REG(tcbpwmc->channel, CMR), &cmr); in atmel_tcb_pwm_enable() [all …]
|
/linux-6.1.9/drivers/counter/ |
D | microchip-tcb-capture.c | 91 regmap_read(priv->regmap, ATMEL_TC_REG(priv->channel[0], CMR), &cmr); in mchp_tc_count_function_write() 128 regmap_write(priv->regmap, ATMEL_TC_REG(priv->channel[0], CMR), cmr); in mchp_tc_count_function_write() 131 regmap_write(priv->regmap, ATMEL_TC_REG(priv->channel[0], CCR), in mchp_tc_count_function_write() 136 ATMEL_TC_REG(priv->channel[1], CMR), cmr); in mchp_tc_count_function_write() 138 ATMEL_TC_REG(priv->channel[1], CCR), in mchp_tc_count_function_write() 153 regmap_read(priv->regmap, ATMEL_TC_REG(priv->channel[0], SR), &sr); in mchp_tc_count_signal_read() 184 regmap_read(priv->regmap, ATMEL_TC_REG(priv->channel[0], CMR), &cmr); in mchp_tc_count_action_read() 235 ATMEL_TC_REG(priv->channel[0], CMR), in mchp_tc_count_action_write() 245 regmap_read(priv->regmap, ATMEL_TC_REG(priv->channel[0], CV), &cnt); in mchp_tc_count_read()
|
/linux-6.1.9/include/soc/at91/ |
D | atmel_tcb.h | 137 #define ATMEL_TC_REG(idx, reg) (ATMEL_TC_CHAN(idx) + ATMEL_TC_ ## reg) macro
|