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