Lines Matching refs:polarity
65 if (s1.enabled && s1.polarity != state->polarity) { in pwm_apply_debug()
66 s2.polarity = state->polarity; in pwm_apply_debug()
74 if (s2.polarity != state->polarity && in pwm_apply_debug()
79 last->polarity == state->polarity && in pwm_apply_debug()
92 last->polarity == state->polarity && in pwm_apply_debug()
129 s1.polarity != last->polarity || in pwm_apply_debug()
134 s1.enabled, s1.polarity, s1.duty_cycle, s1.period, in pwm_apply_debug()
135 last->enabled, last->polarity, last->duty_cycle, in pwm_apply_debug()
193 state->polarity == pwm->state.polarity && in __pwm_apply()
291 state.polarity = pargs.polarity; in pwm_adjust_config()
311 if (pargs.polarity != state.polarity) { in pwm_adjust_config()
312 state.polarity = pargs.polarity; in pwm_adjust_config()
462 pwm->args.polarity = PWM_POLARITY_NORMAL; in of_pwm_xlate_with_flags()
464 pwm->args.polarity = PWM_POLARITY_INVERSED; in of_pwm_xlate_with_flags()
482 pwm->args.polarity = PWM_POLARITY_NORMAL; in of_pwm_single_xlate()
484 pwm->args.polarity = PWM_POLARITY_INVERSED; in of_pwm_single_xlate()
634 const char *polarity = "unknown"; in polarity_show() local
639 switch (state.polarity) { in polarity_show()
641 polarity = "normal"; in polarity_show()
645 polarity = "inversed"; in polarity_show()
649 return sysfs_emit(buf, "%s\n", polarity); in polarity_show()
658 enum pwm_polarity polarity; in polarity_store() local
663 polarity = PWM_POLARITY_NORMAL; in polarity_store()
665 polarity = PWM_POLARITY_INVERSED; in polarity_store()
672 state.polarity = polarity; in polarity_store()
696 static DEVICE_ATTR_RW(polarity);
1362 pwm->args.polarity = PWM_POLARITY_NORMAL; in acpi_pwm_get()
1365 pwm->args.polarity = PWM_POLARITY_INVERSED; in acpi_pwm_get()
1520 pwm->args.polarity = chosen->polarity; in pwm_get()
1645 state.polarity ? "inverse" : "normal"); in pwm_dbg_show()