Lines Matching refs:index
80 static int cros_ec_pwm_set_duty(struct cros_ec_pwm_device *ec_pwm, u8 index,
102 ret = cros_ec_dt_type_to_pwm_type(index, ¶ms->pwm_type);
104 dev_err(ec->dev, "Invalid PWM type index: %d\n", index);
107 params->index = 0;
110 params->index = index;
116 static int cros_ec_pwm_get_duty(struct cros_ec_pwm_device *ec_pwm, u8 index)
139 ret = cros_ec_dt_type_to_pwm_type(index, ¶ms->pwm_type);
141 dev_err(ec->dev, "Invalid PWM type index: %d\n", index);
144 params->index = 0;
147 params->index = index;
256 /* The index field is only 8 bits */