Lines Matching refs:_pwm
218 static int tpu_pwm_request(struct pwm_chip *chip, struct pwm_device *_pwm) in tpu_pwm_request() argument
223 if (_pwm->hwpwm >= TPU_CHANNEL_MAX) in tpu_pwm_request()
231 pwm->channel = _pwm->hwpwm; in tpu_pwm_request()
239 pwm_set_chip_data(_pwm, pwm); in tpu_pwm_request()
244 static void tpu_pwm_free(struct pwm_chip *chip, struct pwm_device *_pwm) in tpu_pwm_free() argument
246 struct tpu_pwm_device *pwm = pwm_get_chip_data(_pwm); in tpu_pwm_free()
252 static int tpu_pwm_config(struct pwm_chip *chip, struct pwm_device *_pwm, in tpu_pwm_config() argument
256 struct tpu_pwm_device *pwm = pwm_get_chip_data(_pwm); in tpu_pwm_config()
304 if (!pwm_is_enabled(_pwm)) in tpu_pwm_config()
335 static int tpu_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *_pwm, in tpu_pwm_set_polarity() argument
338 struct tpu_pwm_device *pwm = pwm_get_chip_data(_pwm); in tpu_pwm_set_polarity()
345 static int tpu_pwm_enable(struct pwm_chip *chip, struct pwm_device *_pwm) in tpu_pwm_enable() argument
347 struct tpu_pwm_device *pwm = pwm_get_chip_data(_pwm); in tpu_pwm_enable()
367 static void tpu_pwm_disable(struct pwm_chip *chip, struct pwm_device *_pwm) in tpu_pwm_disable() argument
369 struct tpu_pwm_device *pwm = pwm_get_chip_data(_pwm); in tpu_pwm_disable()