Lines Matching full:duty
35 * @duty_cycle: cached duty cycle
81 u16 duty) in cros_ec_pwm_set_duty() argument
99 params->duty = duty; in cros_ec_pwm_set_duty()
154 return resp->duty; in cros_ec_pwm_get_duty()
173 * EC doesn't separate the concept of duty cycle and enabled, but in cros_ec_pwm_apply()
196 dev_err(chip->dev, "error getting initial duty: %d\n", ret); in cros_ec_pwm_get_state()
205 * Note that "disabled" and "duty cycle == 0" are treated the same. If in cros_ec_pwm_get_state()
206 * the cached duty cycle is not zero, used the cached duty cycle. This in cros_ec_pwm_get_state()
207 * ensures that the configured duty cycle is kept across a disable and in cros_ec_pwm_get_state()
211 * will be 0 and the actual duty cycle read from the EC is used. in cros_ec_pwm_get_state()
249 * of PWMs it supports directly, so we have to read the pwm duty cycle for