Searched refs:USB_ROLE_DEVICE (Results 1 – 20 of 20) sorted by relevance
137 current_role = ssusb->is_host ? USB_ROLE_HOST : USB_ROLE_DEVICE; in ssusb_mode_sw_work() 142 if (otg_sx->default_role == USB_ROLE_DEVICE) in ssusb_mode_sw_work() 143 desired_role = USB_ROLE_DEVICE; in ssusb_mode_sw_work() 161 case USB_ROLE_DEVICE: in ssusb_mode_sw_work() 192 ssusb_set_mode(otg_sx, event ? USB_ROLE_HOST : USB_ROLE_DEVICE); in ssusb_id_notifier() 220 ssusb_set_mode(otg_sx, USB_ROLE_DEVICE); in ssusb_extcon_register() 235 ssusb_set_mode(otg_sx, to_host ? USB_ROLE_HOST : USB_ROLE_DEVICE); in ssusb_mode_switch() 275 return ssusb->is_host ? USB_ROLE_HOST : USB_ROLE_DEVICE; in ssusb_role_sw_get() 290 otg_sx->default_role = USB_ROLE_DEVICE; in ssusb_role_sw_register()
33 if (WARN_ON(role > USB_ROLE_DEVICE)) in cdns_role_start() 59 if (WARN_ON(role > USB_ROLE_DEVICE)) in cdns_role_stop() 186 ret = cdns_role_start(cdns, USB_ROLE_DEVICE); in cdns_core_init_role() 221 role = USB_ROLE_DEVICE; in cdns_hw_role_state_machine() 246 role = USB_ROLE_DEVICE; in cdns_hw_role_state_machine() 252 case USB_ROLE_DEVICE: /* from GADGET, we can only change to NONE*/ in cdns_hw_role_state_machine() 381 case USB_ROLE_DEVICE: in cdns_role_set() 545 else if (cdns->role == USB_ROLE_DEVICE) in cdns_resume()
105 struct cdns_role_driver *roles[USB_ROLE_DEVICE + 1];
2023 cdns->roles[USB_ROLE_DEVICE] = rdrv; in cdnsp_gadget_init()
3506 cdns->roles[USB_ROLE_DEVICE] = rdrv; in cdns3_gadget_init()
93 if ((role == USB_ROLE_DEVICE && hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_drd_role_sw_set()127 role = USB_ROLE_DEVICE; in dwc2_drd_role_sw_set()141 } else if (role == USB_ROLE_DEVICE) { in dwc2_drd_role_sw_set()230 role = USB_ROLE_DEVICE; in dwc2_drd_resume()236 else if (role == USB_ROLE_DEVICE) in dwc2_drd_resume()
170 attached_state = USB_ROLE_DEVICE;209 case USB_ROLE_DEVICE: in hd3ss3220_probe()
201 usb_role = USB_ROLE_DEVICE; in rt1719_set_data_role()
504 return anx7411_set_usb_role(ctx, USB_ROLE_DEVICE); in anx7411_data_role_detect()
456 case USB_ROLE_DEVICE: in dwc3_usb_role_switch_set()483 role = USB_ROLE_DEVICE; in dwc3_usb_role_switch_get()492 role = USB_ROLE_DEVICE; in dwc3_usb_role_switch_get()
13 USB_ROLE_DEVICE, enumerator
313 usb_role = USB_ROLE_DEVICE; in tusb320_typec_irq_handler()340 usb_role = USB_ROLE_DEVICE; in tusb320_typec_irq_handler()
91 usb_role = USB_ROLE_DEVICE; in ptn5150_check_state()
190 role = USB_ROLE_DEVICE; in axp288_usb_role_work()
333 role = USB_ROLE_DEVICE; in cht_wc_extcon_pwrsrc_event()
114 case USB_ROLE_DEVICE: in relay_set_role_switch()
1119 u_role = USB_ROLE_DEVICE; in ucsi_partner_change()1661 u_role = USB_ROLE_DEVICE; in ucsi_register_port()
260 role_val = USB_ROLE_DEVICE; in tps6598x_set_data_role()
824 } else if (submode == USB_ROLE_DEVICE) { in tegra186_utmi_phy_set_mode()
1931 } else if (submode == USB_ROLE_DEVICE) { in tegra210_usb2_phy_set_mode()