Lines Matching +full:data +full:- +full:role
1 // SPDX-License-Identifier: GPL-2.0
17 enum usb_role role);
21 * struct usb_role_switch_desc - USB Role Switch Descriptor
22 * @fwnode: The device node to be associated with the role switch
26 * @set: Callback for setting the role
27 * @get: Callback for getting the role (optional)
28 * @allow_userspace_control: If true userspace may change the role through sysfs
29 * @driver_data: Private data pointer
33 * device controller behind the USB connector with the role switch. If
52 int usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role);
66 void usb_role_switch_set_drvdata(struct usb_role_switch *sw, void *data);
68 const char *usb_role_string(enum usb_role role);
71 enum usb_role role) in usb_role_switch_set_role() argument
83 return ERR_PTR(-ENODEV); in usb_role_switch_get()
89 return ERR_PTR(-ENODEV); in fwnode_usb_role_switch_get()
104 return ERR_PTR(-ENODEV); in usb_role_switch_register()
110 usb_role_switch_set_drvdata(struct usb_role_switch *sw, void *data) in usb_role_switch_set_drvdata() argument
119 static inline const char *usb_role_string(enum usb_role role) in usb_role_string() argument