Lines Matching refs:polarity
155 pwm->args.polarity = PWM_POLARITY_NORMAL;
158 pwm->args.polarity = PWM_POLARITY_INVERSED;
265 * @polarity: initial polarity of PWM channels
268 * will be used. The initial polarity for all channels is specified by the
269 * @polarity parameter.
274 enum pwm_polarity polarity)
306 pwm->state.polarity = polarity;
336 * will be used. The initial polarity for all channels is normal.
491 * The lowlevel driver either ignored .polarity (which is a bug) or as
492 * best effort inverted .polarity and fixed .duty_cycle respectively.
495 if (s1.enabled && s1.polarity != state->polarity) {
496 s2.polarity = state->polarity;
504 if (s2.polarity != state->polarity &&
506 dev_warn(chip->dev, ".apply ignored .polarity\n");
509 last->polarity == state->polarity &&
522 last->polarity == state->polarity &&
557 s1.polarity != last->polarity ||
562 s1.enabled, s1.polarity, s1.duty_cycle, s1.period,
563 last->enabled, last->polarity, last->duty_cycle,
586 state->polarity == pwm->state.polarity &&
608 if (state->polarity != pwm->state.polarity) {
613 * Changing the polarity of a running PWM is
623 state->polarity);
627 pwm->state.polarity = state->polarity;
707 * In either case, we setup the new period and polarity, and assign a
713 state.polarity = pargs.polarity;
731 * If the polarity changed, we should also change the duty cycle.
733 if (pargs.polarity != state.polarity) {
734 state.polarity = pargs.polarity;
940 pwm->args.polarity = PWM_POLARITY_NORMAL;
943 pwm->args.polarity = PWM_POLARITY_INVERSED;
1102 pwm->args.polarity = chosen->polarity;
1289 seq_printf(s, " polarity: %s",
1290 state.polarity ? "inverse" : "normal");