Searched refs:tcmp (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.4/drivers/clocksource/ |
D | timer-imx-gpt.c | 177 unsigned long tcmp; in mx1_2_set_next_event() local 179 tcmp = readl_relaxed(imxtm->base + MX1_2_TCN) + evt; in mx1_2_set_next_event() 181 writel_relaxed(tcmp, imxtm->base + MX1_2_TCMP); in mx1_2_set_next_event() 183 return (int)(tcmp - readl_relaxed(imxtm->base + MX1_2_TCN)) < 0 ? in mx1_2_set_next_event() 191 unsigned long tcmp; in v2_set_next_event() local 193 tcmp = readl_relaxed(imxtm->base + V2_TCN) + evt; in v2_set_next_event() 195 writel_relaxed(tcmp, imxtm->base + V2_TCMP); in v2_set_next_event() 198 (int)(tcmp - readl_relaxed(imxtm->base + V2_TCN)) < 0 ? in v2_set_next_event()
|
/Linux-v5.4/drivers/pwm/ |
D | pwm-samsung.c | 308 u32 tin_ns = chan->tin_ns, tcnt, tcmp, oldtcmp; in __pwm_samsung_config() local 347 tcmp = duty_ns / tin_ns; in __pwm_samsung_config() 350 if (!tcmp) in __pwm_samsung_config() 351 ++tcmp; in __pwm_samsung_config() 353 tcmp = tcnt - tcmp; in __pwm_samsung_config() 358 --tcmp; in __pwm_samsung_config() 361 "tin_ns=%u, tcmp=%u/%u\n", tin_ns, tcmp, tcnt); in __pwm_samsung_config() 365 writel(tcmp, our_chip->base + REG_TCMPB(pwm->hwpwm)); in __pwm_samsung_config()
|