Lines Matching refs:period
7 * - The .apply callback doesn't complete the currently running period before
106 * Set duty > period. This trick allows the TCU channels in TCU2 mode to
129 unsigned long period, duty;
134 * Limit the clock to a maximum rate that still gives us a period value
137 do_div(tmp, state->period);
156 /* Calculate period value */
157 tmp = (unsigned long long)rate * state->period;
159 period = tmp;
166 if (duty >= period)
167 duty = period - 1;
183 /* Set period */
184 regmap_write(jz->map, TCU_REG_TDFRc(pwm->hwpwm), period);
194 * duty value, then becomes active until the timer reaches the period
195 * value. In theory, we should then use (period - duty) as the real duty