Searched refs:tcmp (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/drivers/clocksource/ |
D | timer-imx-gpt.c | 176 unsigned long tcmp; in mx1_2_set_next_event() local 178 tcmp = readl_relaxed(imxtm->base + MX1_2_TCN) + evt; in mx1_2_set_next_event() 180 writel_relaxed(tcmp, imxtm->base + MX1_2_TCMP); in mx1_2_set_next_event() 182 return (int)(tcmp - readl_relaxed(imxtm->base + MX1_2_TCN)) < 0 ? in mx1_2_set_next_event() 190 unsigned long tcmp; in v2_set_next_event() local 192 tcmp = readl_relaxed(imxtm->base + V2_TCN) + evt; in v2_set_next_event() 194 writel_relaxed(tcmp, imxtm->base + V2_TCMP); in v2_set_next_event() 197 (int)(tcmp - readl_relaxed(imxtm->base + V2_TCN)) < 0 ? in v2_set_next_event()
|
/linux-6.12.1/drivers/pwm/ |
D | pwm-samsung.c | 313 u32 tin_ns = chan->tin_ns, tcnt, tcmp, oldtcmp; in __pwm_samsung_config() local 344 tcmp = duty_ns / tin_ns; in __pwm_samsung_config() 347 if (!tcmp) in __pwm_samsung_config() 348 ++tcmp; in __pwm_samsung_config() 350 tcmp = tcnt - tcmp; in __pwm_samsung_config() 355 --tcmp; in __pwm_samsung_config() 357 dev_dbg(pwmchip_parent(chip), "tin_ns=%u, tcmp=%u/%u\n", tin_ns, tcmp, tcnt); in __pwm_samsung_config() 361 writel(tcmp, our_chip->base + REG_TCMPB(pwm->hwpwm)); in __pwm_samsung_config()
|