Lines Matching defs:period
18 * period
21 * period
30 * @period: reference period
42 u64 period;
53 * @period: PWM period (in nanoseconds)
59 u64 period;
112 static inline void pwm_set_period(struct pwm_device *pwm, u64 period)
115 pwm->state.period = period;
125 return state.period;
165 * that first retrieves the current PWM state and the replaces the period
171 * ->duty_cycle value exceed the pwm_args->period one, which would trigger
185 state->period = args.period;
196 * in nanosecond) into a value relative to the period.
205 if (!state->period) {
209 return DIV_ROUND_CLOSEST_ULL((u64)state->duty_cycle * scale, state->period);
236 state->duty_cycle = DIV_ROUND_CLOSEST_ULL((u64)duty_cycle * state->period, scale);
251 * @config: configure duty cycles and period length for this PWM
298 * @period: period of the PWM signal (in nanoseconds)
302 unsigned int period;
334 if (state.duty_cycle == duty_ns && state.period == period_ns) {
339 state.period = period_ns;
517 * where the polarity and period are set according to pwm_args info.
528 * the PWM device and set the reference period and polarity config.
538 state.period = pwm->args.period;
549 unsigned int period;
556 .provider = (_provider), .index = (_index), .dev_id = (_dev_id), .con_id = (_con_id), .period = (_period), \