Lines Matching full:polarity
144 pwm->args.polarity = PWM_POLARITY_NORMAL; in of_pwm_xlate_with_flags()
147 pwm->args.polarity = PWM_POLARITY_INVERSED; in of_pwm_xlate_with_flags()
243 * @polarity: initial polarity of PWM channels
246 * will be used. The initial polarity for all channels is specified by the
247 * @polarity parameter.
252 enum pwm_polarity polarity) in pwmchip_add_with_polarity() argument
284 pwm->state.polarity = polarity; in pwmchip_add_with_polarity()
317 * will be used. The initial polarity for all channels is normal.
466 state->polarity == pwm->state.polarity && in pwm_apply_state()
480 if (state->polarity != pwm->state.polarity) { in pwm_apply_state()
485 * Changing the polarity of a running PWM is in pwm_apply_state()
495 state->polarity); in pwm_apply_state()
499 pwm->state.polarity = state->polarity; in pwm_apply_state()
579 * In either case, we setup the new period and polarity, and assign a in pwm_adjust_config()
585 state.polarity = pargs.polarity; in pwm_adjust_config()
603 * If the polarity changed, we should also change the duty cycle. in pwm_adjust_config()
605 if (pargs.polarity != state.polarity) { in pwm_adjust_config()
606 state.polarity = pargs.polarity; in pwm_adjust_config()
812 pwm->args.polarity = PWM_POLARITY_NORMAL; in acpi_pwm_get()
815 pwm->args.polarity = PWM_POLARITY_INVERSED; in acpi_pwm_get()
974 pwm->args.polarity = chosen->polarity; in pwm_get()
1161 seq_printf(s, " polarity: %s", in pwm_dbg_show()
1162 state.polarity ? "inverse" : "normal"); in pwm_dbg_show()