Searched refs:tcmp (Results 1 – 3 of 3) sorted by relevance
133 unsigned long tcmp; in mx1_2_set_next_event() local135 tcmp = __raw_readl(timer_base + MX1_2_TCN) + evt; in mx1_2_set_next_event()137 __raw_writel(tcmp, timer_base + MX1_2_TCMP); in mx1_2_set_next_event()139 return (int)(tcmp - __raw_readl(timer_base + MX1_2_TCN)) < 0 ? in mx1_2_set_next_event()146 unsigned long tcmp; in v2_set_next_event() local148 tcmp = __raw_readl(timer_base + V2_TCN) + evt; in v2_set_next_event()150 __raw_writel(tcmp, timer_base + V2_TCMP); in v2_set_next_event()152 return (int)(tcmp - __raw_readl(timer_base + V2_TCN)) < 0 ? in v2_set_next_event()
99 unsigned long tcmp; in epit_set_next_event() local101 tcmp = __raw_readl(timer_base + EPITCNR); in epit_set_next_event()103 __raw_writel(tcmp - evt, timer_base + EPITCMPR); in epit_set_next_event()
169 long tcmp; in pwm_config() local188 tcmp = __raw_readl(S3C2410_TCMPB(pwm->pwm_id)); in pwm_config()216 tcmp = duty_ns / tin_ns; in pwm_config()217 tcmp = tcnt - tcmp; in pwm_config()220 if (tcmp == tcnt) in pwm_config()221 tcmp--; in pwm_config()223 pwm_dbg(pwm, "tin_ns=%lu, tcmp=%ld/%lu\n", tin_ns, tcmp, tcnt); in pwm_config()225 if (tcmp < 0) in pwm_config()226 tcmp = 0; in pwm_config()232 __raw_writel(tcmp, S3C2410_TCMPB(pwm->pwm_id)); in pwm_config()