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()
462 * The lowlevel driver either ignored .polarity (which is a bug) or as in pwm_apply_debug()
463 * best effort inverted .polarity and fixed .duty_cycle respectively. in pwm_apply_debug()
466 if (s1.enabled && s1.polarity != state->polarity) { in pwm_apply_debug()
467 s2.polarity = state->polarity; in pwm_apply_debug()
475 if (s2.polarity != state->polarity && in pwm_apply_debug()
477 dev_warn(pwmchip_parent(chip), ".apply ignored .polarity\n"); in pwm_apply_debug()
480 last->polarity == state->polarity && in pwm_apply_debug()
497 last->polarity == state->polarity && in pwm_apply_debug()
534 s1.polarity != last->polarity || in pwm_apply_debug()
539 s1.enabled, s1.polarity, s1.duty_cycle, s1.period, in pwm_apply_debug()
540 last->enabled, last->polarity, last->duty_cycle, in pwm_apply_debug()
581 * This ensures that you can e.g. change the polarity while in __pwm_apply()
600 state->polarity == pwm->state.polarity && in __pwm_apply()
614 * The rounding is wrong here for states with inverted polarity. in __pwm_apply()
805 * In either case, we setup the new period and polarity, and assign a in pwm_adjust_config()
811 state.polarity = pargs.polarity; in pwm_adjust_config()
829 * If the polarity changed, we should also change the duty cycle. in pwm_adjust_config()
831 if (pargs.polarity != state.polarity) { in pwm_adjust_config()
832 state.polarity = pargs.polarity; in pwm_adjust_config()
996 pwm->args.polarity = PWM_POLARITY_NORMAL; in of_pwm_xlate_with_flags()
998 pwm->args.polarity = PWM_POLARITY_INVERSED; in of_pwm_xlate_with_flags()
1032 pwm->args.polarity = PWM_POLARITY_NORMAL; in of_pwm_single_xlate()
1034 pwm->args.polarity = PWM_POLARITY_INVERSED; in of_pwm_single_xlate()
1184 const char *polarity = "unknown"; in polarity_show() local
1189 switch (state.polarity) { in polarity_show()
1191 polarity = "normal"; in polarity_show()
1195 polarity = "inversed"; in polarity_show()
1199 return sysfs_emit(buf, "%s\n", polarity); in polarity_show()
1208 enum pwm_polarity polarity; in polarity_store() local
1213 polarity = PWM_POLARITY_NORMAL; in polarity_store()
1215 polarity = PWM_POLARITY_INVERSED; in polarity_store()
1222 state.polarity = polarity; in polarity_store()
1246 static DEVICE_ATTR_RW(polarity);
1825 pwm->args.polarity = PWM_POLARITY_NORMAL; in acpi_pwm_get()
1828 pwm->args.polarity = PWM_POLARITY_INVERSED; in acpi_pwm_get()
1953 pwm->args.polarity = chosen->polarity; in pwm_get()
2238 seq_printf(s, " polarity: %s", in pwm_dbg_show()
2239 state.polarity ? "inverse" : "normal"); in pwm_dbg_show()