Lines Matching defs:state
86 const struct pwm_state *state)
98 tmp = DIV_ROUND_CLOSEST_ULL(state->duty_cycle, DWC_CLK_PERIOD_NS);
103 tmp = DIV_ROUND_CLOSEST_ULL(state->period - state->duty_cycle,
139 __dwc_pwm_set_enable(dwc, pwm->hwpwm, state->enabled);
145 const struct pwm_state *state)
149 if (state->polarity != PWM_POLARITY_INVERSED)
152 if (state->enabled) {
153 if (!pwm->state.enabled)
155 return __dwc_pwm_configure_timer(dwc, pwm, state);
157 if (pwm->state.enabled) {
167 struct pwm_state *state)
174 state->enabled = !!(dwc_pwm_readl(dwc,
180 state->duty_cycle = duty;
186 state->period = period;
188 state->polarity = PWM_POLARITY_INVERSED;
271 if (dwc->chip.pwms[i].state.enabled) {