Lines Matching full:pwms
68 struct pwm_device *pwm = &chip->pwms[i]; in free_pwms()
75 kfree(chip->pwms); in free_pwms()
76 chip->pwms = NULL; in free_pwms()
292 chip->pwms = kcalloc(chip->npwm, sizeof(*pwm), GFP_KERNEL); in pwmchip_add_with_polarity()
293 if (!chip->pwms) { in pwmchip_add_with_polarity()
301 pwm = &chip->pwms[i]; in pwmchip_add_with_polarity()
365 struct pwm_device *pwm = &chip->pwms[i]; in pwmchip_remove()
444 pwm = &chip->pwms[index]; in pwm_request_from_chip()
792 * "pwms" property of a device tree node or a negative error-code on failure.
796 * If con_id is NULL, the first PWM device listed in the "pwms" property will
821 err = of_parse_phandle_with_args(np, "pwms", "#pwm-cells", index, in of_pwm_get()
824 pr_err("%s(): can't parse \"pwms\" property\n", __func__); in of_pwm_get()
893 * acpi_pwm_get() - request a PWM via parsing "pwms" property in ACPI
897 * "pwms" property or a negative error-code on failure.
903 * Package () {"pwms", Package ()
920 ret = __acpi_node_get_property_reference(fwnode, "pwms", 0, 3, &args); in acpi_pwm_get()
1274 struct pwm_device *pwm = &chip->pwms[i]; in pwm_dbg_show()