Lines Matching refs:_pwm
210 static int tpu_pwm_request(struct pwm_chip *chip, struct pwm_device *_pwm)
215 if (_pwm->hwpwm >= TPU_CHANNEL_MAX)
223 pwm->channel = _pwm->hwpwm;
231 pwm_set_chip_data(_pwm, pwm);
236 static void tpu_pwm_free(struct pwm_chip *chip, struct pwm_device *_pwm)
238 struct tpu_pwm_device *pwm = pwm_get_chip_data(_pwm);
244 static int tpu_pwm_config(struct pwm_chip *chip, struct pwm_device *_pwm,
248 struct tpu_pwm_device *pwm = pwm_get_chip_data(_pwm);
296 if (!pwm_is_enabled(_pwm))
327 static int tpu_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *_pwm,
330 struct tpu_pwm_device *pwm = pwm_get_chip_data(_pwm);
337 static int tpu_pwm_enable(struct pwm_chip *chip, struct pwm_device *_pwm)
339 struct tpu_pwm_device *pwm = pwm_get_chip_data(_pwm);
359 static void tpu_pwm_disable(struct pwm_chip *chip, struct pwm_device *_pwm)
361 struct tpu_pwm_device *pwm = pwm_get_chip_data(_pwm);