Home | History | Annotate | Download | only in samsung

Lines Matching refs:timer

91 	struct exynos_pwm_timer * const timer = pwm->pwm_priv;
97 tcon &= ~TCON_START(timer->timer_index);
98 tcon |= TCON_UPDATE(timer->timer_index);
100 tcon &= ~TCON_UPDATE(timer->timer_index);
101 tcon |= TCON_START(timer->timer_index);
102 tcon |= TCON_AUTO_RELOAD(timer->timer_index);
106 tcon &= ~TCON_AUTO_RELOAD(timer->timer_index);
116 struct exynos_pwm_timer * const timer = pwm->pwm_priv;
121 tcntb = PWM_READ(sc, TCNTB(timer->timer_index));
122 tcmpb = PWM_READ(sc, TCMPB(timer->timer_index));
124 conf->polarity = (tcon & TCON_OUTINV(timer->timer_index)) ? PWM_ACTIVE_HIGH : PWM_ACTIVE_LOW;
134 struct exynos_pwm_timer * const timer = pwm->pwm_priv;
140 tcon |= TCON_OUTINV(timer->timer_index);
142 tcon &= ~TCON_OUTINV(timer->timer_index);
151 PWM_WRITE(sc, TCNTB(timer->timer_index), tcntb - 1);
152 PWM_WRITE(sc, TCMPB(timer->timer_index), tcmpb - 1);
155 tcon |= TCON_UPDATE(timer->timer_index);
156 tcon |= TCON_AUTO_RELOAD(timer->timer_index);
159 tcon &= ~TCON_UPDATE(timer->timer_index);
169 struct exynos_pwm_timer *timer;
183 timer = &sc->sc_timer[index];
185 /* Set initial timer polarity and period from specifier */
186 exynos_pwm_get_config(&timer->timer_pwm, &conf);
189 exynos_pwm_set_config(&timer->timer_pwm, &conf);
191 return &timer->timer_pwm;