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