Lines Matching defs:fwnode
623 static struct pwm_chip *fwnode_to_pwmchip(struct fwnode_handle *fwnode)
630 if (chip->dev && device_match_fwnode(chip->dev, fwnode)) {
752 * @fwnode: firmware node to get the "pwms" property from
754 * Returns the PWM device parsed from the fwnode and index specified in the
767 static struct pwm_device *acpi_pwm_get(const struct fwnode_handle *fwnode)
776 ret = __acpi_node_get_property_reference(fwnode, "pwms", 0, 3, &args);
783 chip = fwnode_to_pwmchip(args.fwnode);
851 const struct fwnode_handle *fwnode = dev ? dev_fwnode(dev) : NULL;
862 if (is_of_node(fwnode))
863 return of_pwm_get(dev, to_of_node(fwnode), con_id);
866 if (is_acpi_node(fwnode)) {
867 pwm = acpi_pwm_get(fwnode);
1024 * @fwnode: firmware node to get the PWM from
1034 struct fwnode_handle *fwnode,
1040 if (is_of_node(fwnode))
1041 pwm = of_pwm_get(dev, to_of_node(fwnode), con_id);
1042 else if (is_acpi_node(fwnode))
1043 pwm = acpi_pwm_get(fwnode);