Lines Matching defs:state
65 const struct pwm_state *state)
72 if (state->polarity != PWM_POLARITY_NORMAL || state->period < pc->period)
75 if (!state->enabled)
78 duty_cycle = min_t(u64, state->duty_cycle, pc->period);
90 struct pwm_state *state)
95 state->enabled = regmap_test_bits(pc->regmap, LGM_PWM_FAN_CON0,
97 state->polarity = PWM_POLARITY_NORMAL;
98 state->period = pc->period; /* fixed period */
102 state->duty_cycle = DIV_ROUND_UP(duty * pc->period, LGM_PWM_MAX_DUTY_CYCLE);