/openbmc/linux/include/linux/usb/ |
H A D | role.h | 10 enum usb_role { enum 17 enum usb_role role); 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); 68 const char *usb_role_string(enum usb_role role); 71 enum usb_role role) in usb_role_switch_set_role() 76 static inline enum usb_role usb_role_switch_get_role(struct usb_role_switch *sw) in usb_role_switch_get_role() 119 static inline const char *usb_role_string(enum usb_role role) in usb_role_string()
|
/openbmc/linux/drivers/usb/typec/ |
H A D | hd3ss3220.c | 42 enum usb_role role_state; 53 static enum usb_role hd3ss3220_get_attached_state(struct hd3ss3220 *hd3ss3220) in hd3ss3220_get_attached_state() 56 enum usb_role attached_state; in hd3ss3220_get_attached_state() 82 enum usb_role role_val; in hd3ss3220_dr_set() 108 enum usb_role role_state = hd3ss3220_get_attached_state(hd3ss3220); in hd3ss3220_set_role() 135 enum usb_role role_state = hd3ss3220_get_attached_state(hd3ss3220); in output_poll_execute()
|
H A D | stusb160x.c | 331 enum usb_role usb_role = USB_ROLE_NONE; in stusb160x_set_data_role() local 335 usb_role = USB_ROLE_HOST; in stusb160x_set_data_role() 337 usb_role = USB_ROLE_DEVICE; in stusb160x_set_data_role() 340 usb_role_switch_set_role(chip->role_sw, usb_role); in stusb160x_set_data_role()
|
H A D | rt1719.c | 201 enum usb_role usb_role = USB_ROLE_NONE; in rt1719_set_data_role() local 205 usb_role = USB_ROLE_HOST; in rt1719_set_data_role() 207 usb_role = USB_ROLE_DEVICE; in rt1719_set_data_role() 210 usb_role_switch_set_role(data->role_sw, usb_role); in rt1719_set_data_role()
|
/openbmc/linux/drivers/extcon/ |
H A D | extcon-ptn5150.c | 75 enum usb_role usb_role = USB_ROLE_NONE; in ptn5150_check_state() local 91 usb_role = USB_ROLE_DEVICE; in ptn5150_check_state() 102 usb_role = USB_ROLE_HOST; in ptn5150_check_state() 108 if (usb_role) { in ptn5150_check_state() 109 ret = usb_role_switch_set_role(info->role_sw, usb_role); in ptn5150_check_state() 112 usb_role_string(usb_role), ret); in ptn5150_check_state()
|
H A D | extcon-usbc-tusb320.c | 283 enum usb_role usb_role; in tusb320_typec_irq_handler() local 306 usb_role = USB_ROLE_HOST; in tusb320_typec_irq_handler() 312 usb_role = USB_ROLE_DEVICE; in tusb320_typec_irq_handler() 324 usb_role = USB_ROLE_NONE; in tusb320_typec_irq_handler() 332 usb_role = USB_ROLE_HOST; in tusb320_typec_irq_handler() 339 usb_role = USB_ROLE_DEVICE; in tusb320_typec_irq_handler() 350 usb_role = USB_ROLE_NONE; in tusb320_typec_irq_handler() 360 usb_role_switch_set_role(priv->role_sw, usb_role); in tusb320_typec_irq_handler()
|
H A D | extcon-axp288.c | 168 enum usb_role role; in axp288_get_id_pin() 182 enum usb_role role; in axp288_usb_role_work()
|
/openbmc/linux/drivers/usb/roles/ |
H A D | class.c | 18 .name = "usb_role", 25 enum usb_role role; 46 int usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role) in usb_role_switch_set_role() 77 enum usb_role usb_role_switch_get_role(struct usb_role_switch *sw) in usb_role_switch_get_role() 79 enum usb_role role; in usb_role_switch_get_role() 230 const char *usb_role_string(enum usb_role role) in usb_role_string() 243 enum usb_role role = usb_role_switch_get_role(sw); in role_show()
|
H A D | intel-xhci-usb-role-switch.c | 56 enum usb_role role) in intel_xhci_usb_set_role() 131 static enum usb_role intel_xhci_usb_get_role(struct usb_role_switch *sw) in intel_xhci_usb_get_role() 134 enum usb_role role; in intel_xhci_usb_get_role()
|
/openbmc/linux/drivers/usb/cdns3/ |
H A D | core.c | 29 static int cdns_role_start(struct cdns *cdns, enum usb_role role) in cdns_role_start() 57 enum usb_role role = cdns->role; in cdns_role_stop() 212 static enum usb_role cdns_hw_role_state_machine(struct cdns *cdns) in cdns_hw_role_state_machine() 214 enum usb_role role = USB_ROLE_NONE; in cdns_hw_role_state_machine() 300 enum usb_role real_role, current_role; in cdns_hw_role_switch() 342 static enum usb_role cdns_role_get(struct usb_role_switch *sw) in cdns_role_get() 358 static int cdns_role_set(struct usb_role_switch *sw, enum usb_role role) in cdns_role_set() 527 enum usb_role real_role; in cdns_resume()
|
H A D | core.h | 106 enum usb_role role;
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-usb_role | 1 What: /sys/class/usb_role/ 9 What: /sys/class/usb_role/<switch>/role
|
/openbmc/linux/drivers/usb/mtu3/ |
H A D | mtu3_dr.c | 133 enum usb_role desired_role = otg_sx->desired_role; in ssusb_mode_sw_work() 134 enum usb_role current_role; in ssusb_mode_sw_work() 174 static void ssusb_set_mode(struct otg_switch_mtk *otg_sx, enum usb_role role) in ssusb_set_mode() 260 static int ssusb_role_sw_set(struct usb_role_switch *sw, enum usb_role role) in ssusb_role_sw_set() 270 static enum usb_role ssusb_role_sw_get(struct usb_role_switch *sw) in ssusb_role_sw_get()
|
H A D | mtu3.h | 216 enum usb_role desired_role; 217 enum usb_role default_role;
|
/openbmc/linux/drivers/usb/musb/ |
H A D | mediatek.c | 51 enum usb_role role; 66 static int mtk_otg_switch_set(struct mtk_glue *glue, enum usb_role role) in mtk_otg_switch_set() 70 enum usb_role new_role; in mtk_otg_switch_set() 118 static int musb_usb_role_sx_set(struct usb_role_switch *sw, enum usb_role role) in musb_usb_role_sx_set() 123 static enum usb_role musb_usb_role_sx_get(struct usb_role_switch *sw) in musb_usb_role_sx_get() 223 enum usb_role new_role; in mtk_musb_set_mode()
|
H A D | jz4740.c | 80 enum usb_role role) in jz4740_musb_role_switch_set()
|
/openbmc/linux/drivers/misc/ |
H A D | hisi_hikey_usb.c | 44 enum usb_role role; 98 enum usb_role role; in relay_set_role_switch() 130 static int hub_usb_role_switch_set(struct usb_role_switch *sw, enum usb_role role) in hub_usb_role_switch_set()
|
/openbmc/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() 220 enum usb_role role; in dwc2_drd_resume()
|
/openbmc/linux/Documentation/devicetree/bindings/soc/qcom/ |
H A D | qcom,pmic-glink.yaml | 70 remote-endpoint = <&usb_role>;
|
/openbmc/linux/drivers/usb/dwc3/ |
H A D | drd.c | 444 enum usb_role role) in dwc3_usb_role_switch_set() 468 static enum usb_role dwc3_usb_role_switch_get(struct usb_role_switch *sw) in dwc3_usb_role_switch_get() 472 enum usb_role role; in dwc3_usb_role_switch_get()
|
/openbmc/linux/drivers/usb/common/ |
H A D | usb-conn-gpio.c | 33 enum usb_role last_role; 68 enum usb_role role; in usb_conn_detect_cable()
|
/openbmc/linux/drivers/usb/typec/mux/ |
H A D | intel_pmc_mux.c | 142 enum usb_role role; 453 static int pmc_usb_connect(struct pmc_usb_port *port, enum usb_role role) in pmc_usb_connect() 532 static int pmc_usb_set_role(struct usb_role_switch *sw, enum usb_role role) in pmc_usb_set_role()
|
/openbmc/linux/drivers/usb/gadget/udc/ |
H A D | renesas_usb3.c | 351 enum usb_role role; 363 enum usb_role connection_state; 2437 static enum usb_role renesas_usb3_role_switch_get(struct usb_role_switch *sw) in renesas_usb3_role_switch_get() 2440 enum usb_role cur_role; in renesas_usb3_role_switch_get() 2450 enum usb_role role) in handle_ext_role_switch_states() 2454 enum usb_role cur_role = renesas_usb3_role_switch_get(usb3->role_sw); in handle_ext_role_switch_states() 2518 enum usb_role role) in handle_role_switch_states() 2522 enum usb_role cur_role = renesas_usb3_role_switch_get(usb3->role_sw); in handle_role_switch_states() 2537 enum usb_role role) in renesas_usb3_role_switch_set()
|
/openbmc/linux/drivers/usb/chipidea/ |
H A D | ci.h | 320 static inline enum usb_role ci_role_to_usb_role(struct ci_hdrc *ci) in ci_role_to_usb_role() 330 static inline enum ci_role usb_role_to_ci_role(enum usb_role role) in usb_role_to_ci_role()
|
/openbmc/linux/drivers/phy/tegra/ |
H A D | xusb.c | 593 static enum usb_phy_events to_usb_phy_event(enum usb_role role) in to_usb_phy_event() 612 enum usb_role role = usb_role_switch_get_role(port->usb_role_sw); in tegra_xusb_usb_phy_work() 623 enum usb_role role) in tegra_xusb_role_sw_set() 727 enum usb_role role = USB_ROLE_NONE; in tegra_xusb_parse_usb_role_default_mode()
|