Lines Matching refs:pwm_device
35 static struct pwm_device *pwm_to_device(unsigned int pwm) in pwm_to_device()
68 struct pwm_device *pwm = &chip->pwms[i]; in free_pwms()
102 static int pwm_device_request(struct pwm_device *pwm, const char *label) in pwm_device_request()
134 struct pwm_device *
137 struct pwm_device *pwm; in of_pwm_xlate_with_flags()
164 static struct pwm_device *
167 struct pwm_device *pwm; in of_pwm_simple_xlate()
215 int pwm_set_chip_data(struct pwm_device *pwm, void *data) in pwm_set_chip_data()
232 void *pwm_get_chip_data(struct pwm_device *pwm) in pwm_get_chip_data()
276 struct pwm_device *pwm; in pwmchip_add_with_polarity()
365 struct pwm_device *pwm = &chip->pwms[i]; in pwmchip_remove()
396 struct pwm_device *pwm_request(int pwm, const char *label) in pwm_request()
398 struct pwm_device *dev; in pwm_request()
433 struct pwm_device *pwm_request_from_chip(struct pwm_chip *chip, in pwm_request_from_chip()
437 struct pwm_device *pwm; in pwm_request_from_chip()
461 void pwm_free(struct pwm_device *pwm) in pwm_free()
467 static void pwm_apply_state_debug(struct pwm_device *pwm, in pwm_apply_state_debug()
573 int pwm_apply_state(struct pwm_device *pwm, const struct pwm_state *state) in pwm_apply_state()
667 int pwm_capture(struct pwm_device *pwm, struct pwm_capture *result, in pwm_capture()
694 int pwm_adjust_config(struct pwm_device *pwm) in pwm_adjust_config()
760 struct pwm_device *pwm) in pwm_device_link_add()
805 struct pwm_device *of_pwm_get(struct device *dev, struct device_node *np, in of_pwm_get()
808 struct pwm_device *pwm = NULL; in of_pwm_get()
909 static struct pwm_device *acpi_pwm_get(struct fwnode_handle *fwnode) in acpi_pwm_get()
911 struct pwm_device *pwm = ERR_PTR(-ENODEV); in acpi_pwm_get()
998 struct pwm_device *pwm_get(struct device *dev, const char *con_id) in pwm_get()
1001 struct pwm_device *pwm; in pwm_get()
1112 void pwm_put(struct pwm_device *pwm) in pwm_put()
1138 pwm_put(*(struct pwm_device **)res); in devm_pwm_release()
1152 struct pwm_device *devm_pwm_get(struct device *dev, const char *con_id) in devm_pwm_get()
1154 struct pwm_device **ptr, *pwm; in devm_pwm_get()
1184 struct pwm_device *devm_of_pwm_get(struct device *dev, struct device_node *np, in devm_of_pwm_get()
1187 struct pwm_device **ptr, *pwm; in devm_of_pwm_get()
1217 struct pwm_device *devm_fwnode_pwm_get(struct device *dev, in devm_fwnode_pwm_get()
1221 struct pwm_device **ptr, *pwm = ERR_PTR(-ENODEV); in devm_fwnode_pwm_get()
1245 struct pwm_device **p = res; in devm_pwm_match()
1262 void devm_pwm_put(struct device *dev, struct pwm_device *pwm) in devm_pwm_put()
1274 struct pwm_device *pwm = &chip->pwms[i]; in pwm_dbg_show()