Lines Matching refs:period
148 * @period: period (in nanoseconds) of the generated pulses
182 u64 period;
412 static int lpg_calc_freq(struct lpg_channel *chan, uint64_t period)
427 * The PWM period is determined by:
430 * period = --------------------------
440 * The PWM framework wants a period of equal or lower length than requested,
441 * reject anything below minimum period.
460 if (period <= min_period)
463 /* Limit period to largest possible value, to avoid overflows */
466 if (period > max_period)
467 period = max_period;
473 * period * refclk
481 u64 numerator = period * clk_rate_arr[clk_sel];
499 error = period - actual;
514 chan->period = best_period;
824 duty = div_u64(brightness * chan->period, cdev->max_brightness);
884 unsigned int period;
896 period = (*delay_on + *delay_off) * NSEC_PER_MSEC;
901 lpg_calc_freq(chan, period);
916 duty = div_u64(chan->pwm_value * chan->period, LPG_RESOLUTION_9BIT);
918 *delay_off = div_u64(chan->period - duty, NSEC_PER_MSEC);
1215 * - Updating both duty and period is not done atomically, so the output signal
1233 ret = lpg_calc_freq(chan, state->period);
1288 state->period = DIV_ROUND_UP_ULL((u64)NSEC_PER_SEC * (1 << resolution) *
1292 state->period = 0;
1303 if (state->duty_cycle > state->period)
1304 state->duty_cycle = state->period;