Lines Matching defs:fwnode
97 static void *usb_role_switch_match(const struct fwnode_handle *fwnode, const char *id,
102 if (id && !fwnode_property_present(fwnode, id))
105 dev = class_find_device_by_fwnode(&role_class, fwnode);
111 usb_role_switch_is_parent(struct fwnode_handle *fwnode)
113 struct fwnode_handle *parent = fwnode_get_parent(fwnode);
151 * @fwnode: The caller device node
154 * the switch using fwnode instead of device entry.
156 struct usb_role_switch *fwnode_usb_role_switch_get(struct fwnode_handle *fwnode)
160 sw = usb_role_switch_is_parent(fwnode);
162 sw = fwnode_connection_find_match(fwnode, "usb-role-switch",
187 * usb_role_switch_find_by_fwnode - Find USB role switch with its fwnode
188 * @fwnode: fwnode of the USB Role Switch
190 * Finds and returns role switch with @fwnode. The reference count for the
194 usb_role_switch_find_by_fwnode(const struct fwnode_handle *fwnode)
199 if (!fwnode)
202 dev = class_find_device_by_fwnode(&role_class, fwnode);
351 sw->dev.fwnode = desc->fwnode;