Lines Matching refs:last
120 pwm->last = pwm->state; in pwm_device_request()
388 struct pwm_state *last = &pwm->last; in pwm_apply_debug() local
430 last->polarity == state->polarity && in pwm_apply_debug()
431 last->period > s2.period && in pwm_apply_debug()
432 last->period <= state->period) in pwm_apply_debug()
435 state->period, s2.period, last->period); in pwm_apply_debug()
443 last->polarity == state->polarity && in pwm_apply_debug()
444 last->period == s2.period && in pwm_apply_debug()
445 last->duty_cycle > s2.duty_cycle && in pwm_apply_debug()
446 last->duty_cycle <= state->duty_cycle) in pwm_apply_debug()
451 last->duty_cycle, last->period); in pwm_apply_debug()
467 *last = s1; in pwm_apply_debug()
472 *last = (struct pwm_state){ 0 }; in pwm_apply_debug()
473 err = chip->ops->get_state(chip, pwm, last); in pwm_apply_debug()
474 trace_pwm_get(pwm, last, err); in pwm_apply_debug()
479 if (s1.enabled != last->enabled || in pwm_apply_debug()
480 s1.polarity != last->polarity || in pwm_apply_debug()
481 (s1.enabled && s1.period != last->period) || in pwm_apply_debug()
482 (s1.enabled && s1.duty_cycle != last->duty_cycle)) { in pwm_apply_debug()
486 last->enabled, last->polarity, last->duty_cycle, in pwm_apply_debug()
487 last->period); in pwm_apply_debug()