Lines Matching full:polarity
57 * representing waveforms with inverted polarity using negative values in DEFINE_GUARD()
82 .polarity = PWM_POLARITY_NORMAL, in pwm_wf2state()
89 .polarity = PWM_POLARITY_INVERSED, in pwm_wf2state()
103 if (state->polarity == PWM_POLARITY_NORMAL) in pwm_state2wf()
461 * The lowlevel driver either ignored .polarity (which is a bug) or as in pwm_apply_debug()
462 * best effort inverted .polarity and fixed .duty_cycle respectively. in pwm_apply_debug()
465 if (s1.enabled && s1.polarity != state->polarity) { in pwm_apply_debug()
466 s2.polarity = state->polarity; in pwm_apply_debug()
474 if (s2.polarity != state->polarity && in pwm_apply_debug()
476 dev_warn(pwmchip_parent(chip), ".apply ignored .polarity\n"); in pwm_apply_debug()
479 last->polarity == state->polarity && in pwm_apply_debug()
496 last->polarity == state->polarity && in pwm_apply_debug()
533 s1.polarity != last->polarity || in pwm_apply_debug()
538 s1.enabled, s1.polarity, s1.duty_cycle, s1.period, in pwm_apply_debug()
539 last->enabled, last->polarity, last->duty_cycle, in pwm_apply_debug()
580 * This ensures that you can e.g. change the polarity while in __pwm_apply()
599 state->polarity == pwm->state.polarity && in __pwm_apply()
613 * The rounding is wrong here for states with inverted polarity. in __pwm_apply()
804 * In either case, we setup the new period and polarity, and assign a in pwm_adjust_config()
810 state.polarity = pargs.polarity; in pwm_adjust_config()
828 * If the polarity changed, we should also change the duty cycle. in pwm_adjust_config()
830 if (pargs.polarity != state.polarity) { in pwm_adjust_config()
831 state.polarity = pargs.polarity; in pwm_adjust_config()
995 pwm->args.polarity = PWM_POLARITY_NORMAL; in of_pwm_xlate_with_flags()
997 pwm->args.polarity = PWM_POLARITY_INVERSED; in of_pwm_xlate_with_flags()
1015 pwm->args.polarity = PWM_POLARITY_NORMAL; in of_pwm_single_xlate()
1017 pwm->args.polarity = PWM_POLARITY_INVERSED; in of_pwm_single_xlate()
1167 const char *polarity = "unknown"; in polarity_show() local
1172 switch (state.polarity) { in polarity_show()
1174 polarity = "normal"; in polarity_show()
1178 polarity = "inversed"; in polarity_show()
1182 return sysfs_emit(buf, "%s\n", polarity); in polarity_show()
1191 enum pwm_polarity polarity; in polarity_store() local
1196 polarity = PWM_POLARITY_NORMAL; in polarity_store()
1198 polarity = PWM_POLARITY_INVERSED; in polarity_store()
1205 state.polarity = polarity; in polarity_store()
1229 static DEVICE_ATTR_RW(polarity);
1809 pwm->args.polarity = PWM_POLARITY_NORMAL; in acpi_pwm_get()
1812 pwm->args.polarity = PWM_POLARITY_INVERSED; in acpi_pwm_get()
1937 pwm->args.polarity = chosen->polarity; in pwm_get()
2222 seq_printf(s, " polarity: %s", in pwm_dbg_show()
2223 state.polarity ? "inverse" : "normal"); in pwm_dbg_show()