Lines Matching refs:period
127 u_int period, duty, clk_div, hi, lo;
157 period = period_hz * 1000000000ULL / sc->sc_clkfreq;
161 conf->period = period;
181 u_int period, duty, clk_div, hi, lo;
186 period = conf->period;
188 if (period == 0)
190 KASSERT(period >= duty);
192 duty = period - duty;
194 /* calculate the period to be within the maximum value (0xffff) */
198 period_hz = ((uint64_t)sc->sc_clkfreq * period + 500000000ULL) /
264 "%s: %s: polarity=%s, DutuCycle/Period=%uns/%uns(%u%%) : "
269 conf->duty_cycle, conf->period,
270 conf->duty_cycle * 100 / conf->period,
291 const u_int period = be32toh(pwm[2]);
297 * if polarity or period in pwm-tag is different from the copy of
304 pwmchan->mpc_conf.period - pwmchan->mpc_conf.duty_cycle;
307 if (pwmchan->mpc_conf.period != period) {
308 if (pwmchan->mpc_conf.period == 0) {
313 period / pwmchan->mpc_conf.period;
315 pwmchan->mpc_conf.period = period;