Lines Matching refs:fwnode
39 static struct gpio_chip *swnode_get_chip(struct fwnode_handle *fwnode)
44 chip_node = to_software_node(fwnode);
52 struct gpio_desc *swnode_find_gpio(struct fwnode_handle *fwnode,
63 swnode = to_software_node(fwnode);
73 error = fwnode_property_get_reference_args(fwnode, propname, NULL, 2, idx, &args);
76 __func__, propname, fwnode, idx);
80 chip = swnode_get_chip(args.fwnode);
81 fwnode_handle_put(args.fwnode);
89 __func__, propname, fwnode, idx, PTR_ERR_OR_ZERO(desc));
96 * @fwnode: firmware node of the GPIO consumer, can be %NULL for
104 int swnode_gpio_count(const struct fwnode_handle *fwnode, const char *con_id)
117 while (fwnode_property_get_reference_args(fwnode, propname, NULL, 0,
119 fwnode_handle_put(args.fwnode);