Searched refs:tcmpb (Results 1 - 1 of 1) sorted by relevance

/netbsd-current/sys/arch/arm/samsung/
H A Dexynos_pwm.c118 uint32_t tcon, tcntb, tcmpb; local
122 tcmpb = PWM_READ(sc, TCMPB(timer->timer_index));
126 conf->duty_cycle = (u_int)(((uint64_t)tcmpb * 1000000000) / sc->sc_clkfreq);
136 uint32_t tcon, tcntb, tcmpb; local
146 tcmpb = conf->duty_cycle / (1000000000 / sc->sc_clkfreq);
147 if (tcmpb == 0)
148 tcmpb = 1;
149 tcmpb = tcntb - tcmpb;
152 PWM_WRITE(sc, TCMPB(timer->timer_index), tcmpb
[all...]

Completed in 177 milliseconds