Lines Matching refs:timer_index
68 u_int timer_index; member
97 tcon &= ~TCON_START(timer->timer_index); in exynos_pwm_enable()
98 tcon |= TCON_UPDATE(timer->timer_index); in exynos_pwm_enable()
100 tcon &= ~TCON_UPDATE(timer->timer_index); in exynos_pwm_enable()
101 tcon |= TCON_START(timer->timer_index); in exynos_pwm_enable()
102 tcon |= TCON_AUTO_RELOAD(timer->timer_index); in exynos_pwm_enable()
106 tcon &= ~TCON_AUTO_RELOAD(timer->timer_index); in exynos_pwm_enable()
121 tcntb = PWM_READ(sc, TCNTB(timer->timer_index)); in exynos_pwm_get_config()
122 tcmpb = PWM_READ(sc, TCMPB(timer->timer_index)); in exynos_pwm_get_config()
124 conf->polarity = (tcon & TCON_OUTINV(timer->timer_index)) ? PWM_ACTIVE_HIGH : PWM_ACTIVE_LOW; in exynos_pwm_get_config()
140 tcon |= TCON_OUTINV(timer->timer_index); in exynos_pwm_set_config()
142 tcon &= ~TCON_OUTINV(timer->timer_index); in exynos_pwm_set_config()
151 PWM_WRITE(sc, TCNTB(timer->timer_index), tcntb - 1); in exynos_pwm_set_config()
152 PWM_WRITE(sc, TCMPB(timer->timer_index), tcmpb - 1); in exynos_pwm_set_config()
155 tcon |= TCON_UPDATE(timer->timer_index); in exynos_pwm_set_config()
156 tcon |= TCON_AUTO_RELOAD(timer->timer_index); in exynos_pwm_set_config()
159 tcon &= ~TCON_UPDATE(timer->timer_index); in exynos_pwm_set_config()
238 sc->sc_timer[n].timer_index = n; in exynos_pwm_attach()