Lines Matching refs:state
147 const struct pwm_state *state)
154 duty = state->duty_cycle;
155 period = state->period;
163 if (state->polarity == PWM_POLARITY_INVERSED)
248 const struct pwm_state *state)
254 if (!state->enabled) {
255 if (state->polarity == PWM_POLARITY_INVERSED) {
277 err = meson_pwm_calc(meson, pwm, state);
305 struct pwm_state *state)
312 if (!state)
319 state->enabled = value & channel_data->pwm_en_mask;
325 state->period = meson_pwm_cnt_to_ns(chip, pwm, channel->lo + channel->hi);
326 state->duty_cycle = meson_pwm_cnt_to_ns(chip, pwm, channel->hi);
328 state->polarity = PWM_POLARITY_NORMAL;