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