Lines Matching full:role
21 #include <linux/usb/role.h>
43 enum usb_role role; member
97 enum usb_role role; in relay_set_role_switch() local
103 switch (hisi_hikey_usb->role) { in relay_set_role_switch()
123 role = hisi_hikey_usb->role; in relay_set_role_switch()
126 usb_role_switch_set_role(sw, role); in relay_set_role_switch()
129 static int hub_usb_role_switch_set(struct usb_role_switch *sw, enum usb_role role) in hub_usb_role_switch_set() argument
137 hisi_hikey_usb->role = role; in hub_usb_role_switch_set()
151 if (!device_property_read_bool(dev, "usb-role-switch")) in hisi_hikey_usb_of_role_switch()
183 dev_err(dev, "get device role switch failed with error %ld\n", in hisi_hikey_usb_of_role_switch()
199 "failed to register hub role with error %ld\n", in hisi_hikey_usb_of_role_switch()