Lines Matching defs:duty
30 * @duty_cycle: cached duty cycle
61 static int cros_ec_pwm_set_duty(struct cros_ec_device *ec, u8 index, u16 duty)
77 params->duty = duty;
112 return resp->duty;
128 * EC doesn't separate the concept of duty cycle and enabled, but
151 dev_err(chip->dev, "error getting initial duty: %d\n", ret);
160 * Note that "disabled" and "duty cycle == 0" are treated the same. If
161 * the cached duty cycle is not zero, used the cached duty cycle. This
162 * ensures that the configured duty cycle is kept across a disable and
166 * will be 0 and the actual duty cycle read from the EC is used.
202 * of PWMs it supports directly, so we have to read the pwm duty cycle for