Searched refs:tcmp (Results 1 - 3 of 3) sorted by relevance
/linux-4.4.14/arch/arm/mach-imx/ |
H A D | epit.c | 99 unsigned long tcmp; epit_set_next_event() local 101 tcmp = __raw_readl(timer_base + EPITCNR); epit_set_next_event() 103 __raw_writel(tcmp - evt, timer_base + EPITCMPR); epit_set_next_event()
|
/linux-4.4.14/drivers/clocksource/ |
H A D | timer-imx-gpt.c | 189 unsigned long tcmp; mx1_2_set_next_event() local 191 tcmp = readl_relaxed(imxtm->base + MX1_2_TCN) + evt; mx1_2_set_next_event() 193 writel_relaxed(tcmp, imxtm->base + MX1_2_TCMP); mx1_2_set_next_event() 195 return (int)(tcmp - readl_relaxed(imxtm->base + MX1_2_TCN)) < 0 ? mx1_2_set_next_event() 203 unsigned long tcmp; v2_set_next_event() local 205 tcmp = readl_relaxed(imxtm->base + V2_TCN) + evt; v2_set_next_event() 207 writel_relaxed(tcmp, imxtm->base + V2_TCMP); v2_set_next_event() 210 (int)(tcmp - readl_relaxed(imxtm->base + V2_TCN)) < 0 ? v2_set_next_event()
|
/linux-4.4.14/drivers/pwm/ |
H A D | pwm-samsung.c | 296 u32 tin_ns = chan->tin_ns, tcnt, tcmp, oldtcmp; pwm_samsung_config() local 338 tcmp = duty_ns / tin_ns; pwm_samsung_config() 341 if (!tcmp) pwm_samsung_config() 342 ++tcmp; pwm_samsung_config() 344 tcmp = tcnt - tcmp; pwm_samsung_config() 349 --tcmp; pwm_samsung_config() 352 "tin_ns=%u, tcmp=%u/%u\n", tin_ns, tcmp, tcnt); pwm_samsung_config() 356 writel(tcmp, our_chip->base + REG_TCMPB(pwm->hwpwm)); pwm_samsung_config()
|
Completed in 148 milliseconds