Lines Matching defs:state
101 const struct pwm_state *state)
108 if (state->polarity != PWM_POLARITY_NORMAL)
120 period_cycles = min_t(u64, state->period, U32_MAX * NSEC_PER_SEC);
127 duty_cycles = min_t(u64, state->duty_cycle, U32_MAX * NSEC_PER_SEC);
149 if (state->enabled) {
174 struct pwm_state *state)
183 state->period = xilinx_timer_get_period(priv, tlr0, tcsr0);
184 state->duty_cycle = xilinx_timer_get_period(priv, tlr1, tcsr1);
185 state->enabled = xilinx_timer_pwm_enabled(tcsr0, tcsr1);
186 state->polarity = PWM_POLARITY_NORMAL;
192 if (state->period == state->duty_cycle)
193 state->duty_cycle = 0;