Searched full:usb_role_switch (Results 1 – 25 of 39) sorted by relevance
12
/linux/include/linux/usb/ |
H A D | role.h | 8 struct usb_role_switch; 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); 54 struct usb_role_switch *usb_role_switch_get(struct device *dev); 55 struct usb_role_switch *fwnode_usb_role_switch_get(struct fwnode_handle *node); 56 void usb_role_switch_put(struct usb_role_switch *sw); 58 struct usb_role_switch * 61 struct usb_role_switch * [all …]
|
/linux/drivers/usb/roles/ |
H A D | class.c | 23 struct usb_role_switch { struct 40 #define to_role_switch(d) container_of(d, struct usb_role_switch, dev) argument 75 int usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role) in usb_role_switch_set_role() 106 enum usb_role usb_role_switch_get_role(struct usb_role_switch *sw) in usb_role_switch_get_role() 139 static struct usb_role_switch * 162 struct usb_role_switch *usb_role_switch_get(struct device *dev) in usb_role_switch_get() 164 struct usb_role_switch *sw; in usb_role_switch_get() 185 struct usb_role_switch *fwnode_usb_role_switch_get(struct fwnode_handle *fwnode) in fwnode_usb_role_switch_get() 187 struct usb_role_switch *sw; in fwnode_usb_role_switch_get() 206 void usb_role_switch_put(struct usb_role_switch *sw) in usb_role_switch_put() [all …]
|
H A D | Kconfig | 3 config USB_ROLE_SWITCH config 16 if USB_ROLE_SWITCH 29 endif # USB_ROLE_SWITCH
|
/linux/drivers/usb/typec/ |
H A D | Kconfig | 58 depends on USB_ROLE_SWITCH 69 depends on USB_ROLE_SWITCH || !USB_ROLE_SWITCH 83 depends on USB_ROLE_SWITCH 93 depends on USB_ROLE_SWITCH || !USB_ROLE_SWITCH
|
/linux/drivers/extcon/ |
H A D | Kconfig | 27 select USB_ROLE_SWITCH 66 select USB_ROLE_SWITCH 147 depends on USB_ROLE_SWITCH || !USB_ROLE_SWITCH 201 depends on USB_ROLE_SWITCH || !USB_ROLE_SWITCH
|
/linux/drivers/misc/ |
H A D | hisi_hikey_usb.c | 40 struct usb_role_switch *hub_role_sw; 42 struct usb_role_switch *dev_role_sw; 96 struct usb_role_switch *sw; 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()
|
/linux/drivers/usb/dwc3/ |
H A D | Kconfig | 8 select USB_ROLE_SWITCH if USB_DWC3_DUAL_ROLE 106 select USB_ROLE_SWITCH 185 select USB_ROLE_SWITCH
|
H A D | dwc3-meson-g12a.c | 262 struct usb_role_switch *role_switch; 515 static int dwc3_meson_g12a_role_set(struct usb_role_switch *sw, in dwc3_meson_g12a_role_set() 536 static enum usb_role dwc3_meson_g12a_role_get(struct usb_role_switch *sw) in dwc3_meson_g12a_role_get()
|
H A D | drd.c | 446 static int dwc3_usb_role_switch_set(struct usb_role_switch *sw, in dwc3_usb_role_switch_set() 471 static enum usb_role dwc3_usb_role_switch_get(struct usb_role_switch *sw) in dwc3_usb_role_switch_get()
|
/linux/drivers/usb/typec/ucsi/ |
H A D | Kconfig | 6 depends on USB_ROLE_SWITCH || !USB_ROLE_SWITCH
|
/linux/drivers/usb/musb/ |
H A D | Kconfig | 106 select USB_ROLE_SWITCH 113 select USB_ROLE_SWITCH
|
/linux/drivers/usb/typec/tipd/ |
H A D | Kconfig | 6 select USB_ROLE_SWITCH
|
/linux/drivers/usb/chipidea/ |
H A D | Kconfig | 9 select USB_ROLE_SWITCH
|
/linux/drivers/usb/dwc2/ |
H A D | drd.c | 86 static int dwc2_drd_role_sw_set(struct usb_role_switch *sw, enum usb_role role) in dwc2_drd_role_sw_set() 176 struct usb_role_switch *role_sw; in dwc2_drd_init()
|
H A D | Kconfig | 8 select USB_ROLE_SWITCH
|
/linux/drivers/usb/common/ |
H A D | Kconfig | 41 select USB_ROLE_SWITCH
|
H A D | usb-conn-gpio.c | 37 struct usb_role_switch *role_sw;
|
/linux/drivers/usb/mtu3/ |
H A D | Kconfig | 47 select USB_ROLE_SWITCH
|
/linux/drivers/usb/typec/tcpm/ |
H A D | Kconfig | 6 select USB_ROLE_SWITCH
|
/linux/drivers/usb/cdns3/ |
H A D | Kconfig | 5 select USB_ROLE_SWITCH
|
H A D | core.h | 116 struct usb_role_switch *role_sw;
|
/linux/drivers/platform/chrome/ |
H A D | Kconfig | 250 depends on USB_ROLE_SWITCH
|
/linux/drivers/usb/typec/mux/ |
H A D | intel_pmc_mux.c | 138 struct usb_role_switch *usb_sw; 555 static int pmc_usb_set_role(struct usb_role_switch *sw, enum usb_role role) in pmc_usb_set_role()
|
/linux/drivers/usb/misc/ |
H A D | Kconfig | 150 select USB_ROLE_SWITCH
|
/linux/drivers/phy/tegra/ |
H A D | xusb.h | 285 struct usb_role_switch *usb_role_sw;
|
12