Lines Matching full:polarity
64 bool enable, enum pwm_polarity polarity) in stm32_pwm_lp_compare_channel_apply() argument
79 /* Must disable CC channel (CCxE) to modify polarity (CCxP), then re-enable */ in stm32_pwm_lp_compare_channel_apply()
81 (polarity != FIELD_GET(STM32_LPTIM_CC2P, ccmr1)); in stm32_pwm_lp_compare_channel_apply()
84 val = FIELD_PREP(STM32_LPTIM_CC2P, polarity); in stm32_pwm_lp_compare_channel_apply()
88 (polarity != FIELD_GET(STM32_LPTIM_CC1P, ccmr1)); in stm32_pwm_lp_compare_channel_apply()
91 val = FIELD_PREP(STM32_LPTIM_CC1P, polarity); in stm32_pwm_lp_compare_channel_apply()
139 state->polarity); in stm32_pwm_lp_apply()
214 ((FIELD_GET(STM32_LPTIM_WAVPOL, cfgr) != state->polarity) && !priv->num_cc_chans)) { in stm32_pwm_lp_apply()
224 val |= FIELD_PREP(STM32_LPTIM_WAVPOL, state->polarity); in stm32_pwm_lp_apply()
272 ret = stm32_pwm_lp_compare_channel_apply(priv, pwm->hwpwm, true, state->polarity); in stm32_pwm_lp_apply()
328 state->polarity = FIELD_GET(STM32_LPTIM_CC2P, ccmr1); in stm32_pwm_lp_get_state()
330 state->polarity = FIELD_GET(STM32_LPTIM_CC1P, ccmr1); in stm32_pwm_lp_get_state()
332 state->polarity = FIELD_GET(STM32_LPTIM_WAVPOL, val); in stm32_pwm_lp_get_state()