Lines Matching full:pwms
58 struct pwm_device *pwm = &chip->pwms[i]; in free_pwms()
65 kfree(chip->pwms); in free_pwms()
66 chip->pwms = NULL; in free_pwms()
278 chip->pwms = kcalloc(chip->npwm, sizeof(*pwm), GFP_KERNEL); in pwmchip_add()
279 if (!chip->pwms) { in pwmchip_add()
285 pwm = &chip->pwms[i]; in pwmchip_add()
417 pwm = &chip->pwms[index]; in pwm_request_from_chip()
724 * "pwms" property of a device tree node or a negative error-code on failure.
728 * If con_id is NULL, the first PWM device listed in the "pwms" property will
753 err = of_parse_phandle_with_args(np, "pwms", "#pwm-cells", index, in of_pwm_get()
756 pr_err("%s(): can't parse \"pwms\" property\n", __func__); in of_pwm_get()
802 * acpi_pwm_get() - request a PWM via parsing "pwms" property in ACPI
803 * @fwnode: firmware node to get the "pwms" property from
806 * "pwms" property or a negative error-code on failure.
812 * Package () {"pwms", Package ()
827 ret = __acpi_node_get_property_reference(fwnode, "pwms", 0, 3, &args); in acpi_pwm_get()
1112 struct pwm_device *pwm = &chip->pwms[i]; in pwm_dbg_show()