Lines Matching refs:role
16 #include <linux/usb/role.h>
51 enum usb_role role;
66 static int mtk_otg_switch_set(struct mtk_glue *glue, enum usb_role role)
72 if (role == glue->role)
75 switch (role) {
80 if (glue->role == USB_ROLE_NONE)
93 if (glue->role == USB_ROLE_NONE)
103 if (glue->role != USB_ROLE_NONE)
112 glue->role = new_role;
118 static int musb_usb_role_sx_set(struct usb_role_switch *sw, enum usb_role role)
120 return mtk_otg_switch_set(usb_role_switch_get_drvdata(sw), role);
127 return glue->role;
440 glue->role = USB_ROLE_HOST;
444 glue->role = USB_ROLE_DEVICE;
448 glue->role = USB_ROLE_NONE;