Lines Matching refs:sw
16 typedef int (*usb_role_switch_set_t)(struct usb_role_switch *sw,
18 typedef enum usb_role (*usb_role_switch_get_t)(struct usb_role_switch *sw);
52 int usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role);
53 enum usb_role usb_role_switch_get_role(struct usb_role_switch *sw);
56 void usb_role_switch_put(struct usb_role_switch *sw);
64 void usb_role_switch_unregister(struct usb_role_switch *sw);
66 void usb_role_switch_set_drvdata(struct usb_role_switch *sw, void *data);
67 void *usb_role_switch_get_drvdata(struct usb_role_switch *sw);
70 static inline int usb_role_switch_set_role(struct usb_role_switch *sw, in usb_role_switch_set_role() argument
76 static inline enum usb_role usb_role_switch_get_role(struct usb_role_switch *sw) in usb_role_switch_get_role() argument
92 static inline void usb_role_switch_put(struct usb_role_switch *sw) { } in usb_role_switch_put() argument
107 static inline void usb_role_switch_unregister(struct usb_role_switch *sw) { } in usb_role_switch_unregister() argument
110 usb_role_switch_set_drvdata(struct usb_role_switch *sw, void *data) in usb_role_switch_set_drvdata() argument
114 static inline void *usb_role_switch_get_drvdata(struct usb_role_switch *sw) in usb_role_switch_get_drvdata() argument