Lines Matching refs:fwnode
1207 static struct pwm_chip *fwnode_to_pwmchip(struct fwnode_handle *fwnode)
1215 if (pwmchip_parent(chip) && device_match_fwnode(pwmchip_parent(chip), fwnode)) {
1311 * @fwnode: firmware node to get the "pwms" property from
1313 * Returns the PWM device parsed from the fwnode and index specified in the
1326 static struct pwm_device *acpi_pwm_get(const struct fwnode_handle *fwnode)
1335 ret = __acpi_node_get_property_reference(fwnode, "pwms", 0, 3, &args);
1342 chip = fwnode_to_pwmchip(args.fwnode);
1413 const struct fwnode_handle *fwnode = dev ? dev_fwnode(dev) : NULL;
1424 if (is_of_node(fwnode))
1425 return of_pwm_get(dev, to_of_node(fwnode), con_id);
1428 if (is_acpi_node(fwnode)) {
1429 pwm = acpi_pwm_get(fwnode);
1591 * @fwnode: firmware node to get the PWM from
1601 struct fwnode_handle *fwnode,
1607 if (is_of_node(fwnode))
1608 pwm = of_pwm_get(dev, to_of_node(fwnode), con_id);
1609 else if (is_acpi_node(fwnode))
1610 pwm = acpi_pwm_get(fwnode);