/linux-6.3-rc2/drivers/usb/mtu3/ |
A D | mtu3_dr.c | 136 current_role = ssusb->is_host ? USB_ROLE_HOST : USB_ROLE_DEVICE; in ssusb_mode_sw_work() 141 if (otg_sx->default_role == USB_ROLE_DEVICE) in ssusb_mode_sw_work() 142 desired_role = USB_ROLE_DEVICE; in ssusb_mode_sw_work() 160 case USB_ROLE_DEVICE: in ssusb_mode_sw_work() 191 ssusb_set_mode(otg_sx, event ? USB_ROLE_HOST : USB_ROLE_DEVICE); in ssusb_id_notifier() 219 ssusb_set_mode(otg_sx, USB_ROLE_DEVICE); in ssusb_extcon_register() 234 ssusb_set_mode(otg_sx, to_host ? USB_ROLE_HOST : USB_ROLE_DEVICE); in ssusb_mode_switch() 274 return ssusb->is_host ? USB_ROLE_HOST : USB_ROLE_DEVICE; in ssusb_role_sw_get() 289 otg_sx->default_role = USB_ROLE_DEVICE; in ssusb_role_sw_register()
|
/linux-6.3-rc2/drivers/usb/cdns3/ |
A D | core.c | 32 if (WARN_ON(role > USB_ROLE_DEVICE)) in cdns_role_start() 58 if (WARN_ON(role > USB_ROLE_DEVICE)) in cdns_role_stop() 185 ret = cdns_role_start(cdns, USB_ROLE_DEVICE); in cdns_core_init_role() 220 role = USB_ROLE_DEVICE; in cdns_hw_role_state_machine() 245 role = USB_ROLE_DEVICE; in cdns_hw_role_state_machine() 251 case USB_ROLE_DEVICE: /* from GADGET, we can only change to NONE*/ in cdns_hw_role_state_machine() 380 case USB_ROLE_DEVICE: in cdns_role_set() 548 else if (cdns->role == USB_ROLE_DEVICE) in cdns_resume()
|
A D | core.h | 104 struct cdns_role_driver *roles[USB_ROLE_DEVICE + 1];
|
/linux-6.3-rc2/drivers/usb/dwc2/ |
A D | drd.c | 92 if ((role == USB_ROLE_DEVICE && hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_drd_role_sw_set() 126 role = USB_ROLE_DEVICE; in dwc2_drd_role_sw_set() 131 } else if (role == USB_ROLE_DEVICE) { in dwc2_drd_role_sw_set() 220 role = USB_ROLE_DEVICE; in dwc2_drd_resume() 226 else if (role == USB_ROLE_DEVICE) in dwc2_drd_resume()
|
/linux-6.3-rc2/drivers/usb/typec/ |
A D | hd3ss3220.c | 69 attached_state = USB_ROLE_DEVICE; in hd3ss3220_get_attached_state() 89 role_val = USB_ROLE_DEVICE; in hd3ss3220_dr_set() 119 case USB_ROLE_DEVICE: in hd3ss3220_set_role()
|
A D | qcom-pmic-typec.c | 82 role = (stat & SNK_SRC_MODE) ? USB_ROLE_HOST : USB_ROLE_DEVICE; in qcom_pmic_typec_check_connection()
|
A D | stusb160x.c | 337 usb_role = USB_ROLE_DEVICE; in stusb160x_set_data_role()
|
/linux-6.3-rc2/drivers/usb/roles/ |
A D | intel-xhci-usb-role-switch.c | 95 case USB_ROLE_DEVICE: in intel_xhci_usb_set_role() 144 role = USB_ROLE_DEVICE; in intel_xhci_usb_get_role()
|
A D | class.c | 217 [USB_ROLE_DEVICE] = "device",
|
/linux-6.3-rc2/drivers/usb/misc/ |
A D | qcom_eud.c | 51 return usb_role_switch_set_role(priv->role_sw, USB_ROLE_DEVICE); in enable_eud() 158 ret = usb_role_switch_set_role(chip->role_sw, USB_ROLE_DEVICE); in handle_eud_irq_thread()
|
/linux-6.3-rc2/drivers/usb/musb/ |
A D | mediatek.c | 86 case USB_ROLE_DEVICE: in mtk_otg_switch_set() 89 new_role = USB_ROLE_DEVICE; in mtk_otg_switch_set() 231 new_role = USB_ROLE_DEVICE; in mtk_musb_set_mode() 443 glue->role = USB_ROLE_DEVICE; in mtk_musb_probe()
|
A D | jz4740.c | 92 case USB_ROLE_DEVICE: in jz4740_musb_role_switch_set()
|
/linux-6.3-rc2/drivers/usb/chipidea/ |
A D | ci.h | 304 return USB_ROLE_DEVICE; in ci_role_to_usb_role() 313 else if (role == USB_ROLE_DEVICE) in usb_role_to_ci_role()
|
/linux-6.3-rc2/include/linux/usb/ |
A D | role.h | 13 USB_ROLE_DEVICE, enumerator
|
/linux-6.3-rc2/drivers/usb/dwc3/ |
A D | drd.c | 453 case USB_ROLE_DEVICE: in dwc3_usb_role_switch_set() 480 role = USB_ROLE_DEVICE; in dwc3_usb_role_switch_get() 489 role = USB_ROLE_DEVICE; in dwc3_usb_role_switch_get()
|
/linux-6.3-rc2/drivers/usb/common/ |
A D | usb-conn-gpio.c | 82 role = USB_ROLE_DEVICE; in usb_conn_detect_cable() 143 val->intval = info->last_role == USB_ROLE_DEVICE; in usb_charger_get_property()
|
/linux-6.3-rc2/drivers/misc/ |
A D | hisi_hikey_usb.c | 115 case USB_ROLE_DEVICE: in relay_set_role_switch()
|
/linux-6.3-rc2/drivers/usb/gadget/udc/ |
A D | renesas_usb3.c | 745 usb3->role = host ? USB_ROLE_HOST : USB_ROLE_DEVICE; in usb3_set_mode_by_role_sw() 2444 cur_role = usb3_is_host(usb3) ? USB_ROLE_HOST : USB_ROLE_DEVICE; in renesas_usb3_role_switch_get() 2474 case USB_ROLE_DEVICE: in handle_ext_role_switch_states() 2476 usb3->connection_state = USB_ROLE_DEVICE; in handle_ext_role_switch_states() 2504 } else if (cur_role == USB_ROLE_DEVICE) { in handle_ext_role_switch_states() 2525 if (cur_role == USB_ROLE_HOST && role == USB_ROLE_DEVICE) { in handle_role_switch_states() 2528 } else if (cur_role == USB_ROLE_DEVICE && role == USB_ROLE_HOST) { in handle_role_switch_states()
|
/linux-6.3-rc2/drivers/extcon/ |
A D | extcon-ptn5150.c | 91 usb_role = USB_ROLE_DEVICE; in ptn5150_check_state()
|
A D | extcon-axp288.c | 190 role = USB_ROLE_DEVICE; in axp288_usb_role_work()
|
A D | extcon-intel-cht-wc.c | 333 role = USB_ROLE_DEVICE; in cht_wc_extcon_pwrsrc_event()
|
/linux-6.3-rc2/drivers/phy/tegra/ |
A D | xusb.c | 589 [USB_ROLE_DEVICE] = "device", 595 case USB_ROLE_DEVICE: in to_usb_phy_event() 729 role = USB_ROLE_DEVICE; in tegra_xusb_parse_usb_role_default_mode()
|
/linux-6.3-rc2/drivers/usb/typec/mux/ |
A D | intel_pmc_mux.c | 418 u8 ufp = role == USB_ROLE_DEVICE ? 1 : 0; in pmc_usb_connect()
|
/linux-6.3-rc2/drivers/usb/typec/ucsi/ |
A D | ucsi.c | 805 u_role = USB_ROLE_DEVICE; in ucsi_partner_change() 1274 u_role = USB_ROLE_DEVICE; in ucsi_register_port()
|
/linux-6.3-rc2/drivers/usb/typec/tipd/ |
A D | core.c | 224 role_val = USB_ROLE_DEVICE; in tps6598x_set_data_role()
|