Lines Matching refs:pwm_device
44 static struct pwm_device *pwm_to_device(unsigned int pwm) in pwm_to_device()
77 struct pwm_device *pwm = &chip->pwms[i]; in free_pwms()
111 static int pwm_device_request(struct pwm_device *pwm, const char *label) in pwm_device_request()
135 struct pwm_device *
138 struct pwm_device *pwm; in of_pwm_xlate_with_flags()
165 static struct pwm_device *
168 struct pwm_device *pwm; in of_pwm_simple_xlate()
216 int pwm_set_chip_data(struct pwm_device *pwm, void *data) in pwm_set_chip_data()
233 void *pwm_get_chip_data(struct pwm_device *pwm) in pwm_get_chip_data()
266 struct pwm_device *pwm; in pwmchip_add_with_polarity()
356 struct pwm_device *pwm = &chip->pwms[i]; in pwmchip_remove()
389 struct pwm_device *pwm_request(int pwm, const char *label) in pwm_request()
391 struct pwm_device *dev; in pwm_request()
426 struct pwm_device *pwm_request_from_chip(struct pwm_chip *chip, in pwm_request_from_chip()
430 struct pwm_device *pwm; in pwm_request_from_chip()
454 void pwm_free(struct pwm_device *pwm) in pwm_free()
467 int pwm_apply_state(struct pwm_device *pwm, struct pwm_state *state) in pwm_apply_state()
547 int pwm_capture(struct pwm_device *pwm, struct pwm_capture *result, in pwm_capture()
574 int pwm_adjust_config(struct pwm_device *pwm) in pwm_adjust_config()
658 struct pwm_device *of_pwm_get(struct device_node *np, const char *con_id) in of_pwm_get()
660 struct pwm_device *pwm = NULL; in of_pwm_get()
762 struct pwm_device *pwm_get(struct device *dev, const char *con_id) in pwm_get()
765 struct pwm_device *pwm; in pwm_get()
862 void pwm_put(struct pwm_device *pwm) in pwm_put()
887 pwm_put(*(struct pwm_device **)res); in devm_pwm_release()
901 struct pwm_device *devm_pwm_get(struct device *dev, const char *con_id) in devm_pwm_get()
903 struct pwm_device **ptr, *pwm; in devm_pwm_get()
933 struct pwm_device *devm_of_pwm_get(struct device *dev, struct device_node *np, in devm_of_pwm_get()
936 struct pwm_device **ptr, *pwm; in devm_of_pwm_get()
956 struct pwm_device **p = res; in devm_pwm_match()
973 void devm_pwm_put(struct device *dev, struct pwm_device *pwm) in devm_pwm_put()
985 struct pwm_device *pwm = &chip->pwms[i]; in pwm_dbg_show()