Lines Matching refs:fwnode
27 static struct gpio_device *swnode_get_gpio_device(struct fwnode_handle *fwnode) in swnode_get_gpio_device() argument
32 gdev_node = to_software_node(fwnode); in swnode_get_gpio_device()
44 gdev = gpio_device_find_by_fwnode(fwnode); in swnode_get_gpio_device()
48 static int swnode_gpio_get_reference(const struct fwnode_handle *fwnode, in swnode_gpio_get_reference() argument
56 return fwnode_property_get_reference_args(fwnode, propname, NULL, 2, idx, args); in swnode_gpio_get_reference()
59 struct gpio_desc *swnode_find_gpio(struct fwnode_handle *fwnode, in swnode_find_gpio() argument
69 swnode = to_software_node(fwnode); in swnode_find_gpio()
74 ret = swnode_gpio_get_reference(fwnode, propname, idx, &args); in swnode_find_gpio()
80 __func__, propname, fwnode, idx); in swnode_find_gpio()
85 swnode_get_gpio_device(args.fwnode); in swnode_find_gpio()
86 fwnode_handle_put(args.fwnode); in swnode_find_gpio()
98 __func__, propname, fwnode, idx, PTR_ERR_OR_ZERO(desc)); in swnode_find_gpio()
113 int swnode_gpio_count(const struct fwnode_handle *fwnode, const char *con_id) in swnode_gpio_count() argument
125 while (swnode_gpio_get_reference(fwnode, propname, count, &args) == 0) { in swnode_gpio_count()
126 fwnode_handle_put(args.fwnode); in swnode_gpio_count()