Lines Matching full:polarity
125 pwm->args.polarity = PWM_POLARITY_NORMAL; in of_pwm_xlate_with_flags()
129 pwm->args.polarity = PWM_POLARITY_INVERSED; in of_pwm_xlate_with_flags()
153 pwm->args.polarity = PWM_POLARITY_NORMAL; in of_pwm_single_xlate()
156 pwm->args.polarity = PWM_POLARITY_INVERSED; in of_pwm_single_xlate()
358 * The lowlevel driver either ignored .polarity (which is a bug) or as in pwm_apply_debug()
359 * best effort inverted .polarity and fixed .duty_cycle respectively. in pwm_apply_debug()
362 if (s1.enabled && s1.polarity != state->polarity) { in pwm_apply_debug()
363 s2.polarity = state->polarity; in pwm_apply_debug()
371 if (s2.polarity != state->polarity && in pwm_apply_debug()
373 dev_warn(chip->dev, ".apply ignored .polarity\n"); in pwm_apply_debug()
376 last->polarity == state->polarity && in pwm_apply_debug()
389 last->polarity == state->polarity && in pwm_apply_debug()
426 s1.polarity != last->polarity || in pwm_apply_debug()
431 s1.enabled, s1.polarity, s1.duty_cycle, s1.period, in pwm_apply_debug()
432 last->enabled, last->polarity, last->duty_cycle, in pwm_apply_debug()
455 state->polarity == pwm->state.polarity && in __pwm_apply()
574 * In either case, we setup the new period and polarity, and assign a in pwm_adjust_config()
580 state.polarity = pargs.polarity; in pwm_adjust_config()
598 * If the polarity changed, we should also change the duty cycle. in pwm_adjust_config()
600 if (pargs.polarity != state.polarity) { in pwm_adjust_config()
601 state.polarity = pargs.polarity; in pwm_adjust_config()
779 pwm->args.polarity = PWM_POLARITY_NORMAL; in acpi_pwm_get()
782 pwm->args.polarity = PWM_POLARITY_INVERSED; in acpi_pwm_get()
941 pwm->args.polarity = chosen->polarity; in pwm_get()
1062 seq_printf(s, " polarity: %s", in pwm_dbg_show()
1063 state.polarity ? "inverse" : "normal"); in pwm_dbg_show()