Home
last modified time | relevance | path

Searched refs:USB_ROLE_DEVICE (Results 1 – 25 of 37) sorted by relevance

12

/linux-6.15/drivers/usb/mtu3/
H A Dmtu3_dr.c137 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()
/linux-6.15/drivers/usb/cdns3/
H A Dcore.c33 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()
546 else if (cdns->role == USB_ROLE_DEVICE) in cdns_resume()
H A Dcore.h107 struct cdns_role_driver *roles[USB_ROLE_DEVICE + 1];
/linux-6.15/drivers/usb/dwc2/
H A Ddrd.c93 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()
/linux-6.15/drivers/usb/roles/
H A Dintel-xhci-usb-role-switch.c95 case USB_ROLE_DEVICE: in intel_xhci_usb_set_role()
144 role = USB_ROLE_DEVICE; in intel_xhci_usb_get_role()
H A Dclass.c256 [USB_ROLE_DEVICE] = "device",
/linux-6.15/drivers/usb/misc/
H A Dqcom_eud.c51 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.15/drivers/usb/musb/
H A Dmediatek.c87 case USB_ROLE_DEVICE: in mtk_otg_switch_set()
90 new_role = USB_ROLE_DEVICE; in mtk_otg_switch_set()
232 new_role = USB_ROLE_DEVICE; in mtk_musb_set_mode()
443 glue->role = USB_ROLE_DEVICE; in mtk_musb_probe()
H A Djz4740.c92 case USB_ROLE_DEVICE: in jz4740_musb_role_switch_set()
/linux-6.15/include/linux/usb/
H A Drole.h13 USB_ROLE_DEVICE, enumerator
/linux-6.15/drivers/usb/dwc3/
H A Ddrd.c456 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()
H A Ddwc3-rtk.c74 case USB_ROLE_DEVICE: in switch_usb2_role()
322 rtk->cur_role = USB_ROLE_DEVICE; in dwc3_rtk_probe_dwc3_core()
/linux-6.15/drivers/usb/chipidea/
H A Dci.h325 return USB_ROLE_DEVICE; in ci_role_to_usb_role()
334 else if (role == USB_ROLE_DEVICE) in usb_role_to_ci_role()
/linux-6.15/drivers/usb/common/
H A Dusb-conn-gpio.c84 role = USB_ROLE_DEVICE; in usb_conn_detect_cable()
147 val->intval = info->last_role == USB_ROLE_DEVICE; in usb_charger_get_property()
/linux-6.15/drivers/usb/typec/
H A Dhd3ss3220.c170 attached_state = USB_ROLE_DEVICE; in hd3ss3220_get_attached_state()
209 case USB_ROLE_DEVICE: in hd3ss3220_set_role()
H A Dstusb160x.c337 usb_role = USB_ROLE_DEVICE; in stusb160x_set_data_role()
H A Drt1719.c201 usb_role = USB_ROLE_DEVICE; in rt1719_set_data_role()
/linux-6.15/drivers/extcon/
H A Dextcon-usbc-tusb320.c313 usb_role = USB_ROLE_DEVICE; in tusb320_typec_irq_handler()
340 usb_role = USB_ROLE_DEVICE; in tusb320_typec_irq_handler()
H A Dextcon-ptn5150.c91 usb_role = USB_ROLE_DEVICE; in ptn5150_check_state()
H A Dextcon-axp288.c190 role = USB_ROLE_DEVICE; in axp288_usb_role_work()
H A Dextcon-intel-cht-wc.c333 role = USB_ROLE_DEVICE; in cht_wc_extcon_pwrsrc_event()
/linux-6.15/drivers/misc/
H A Dhisi_hikey_usb.c114 case USB_ROLE_DEVICE: in relay_set_role_switch()
/linux-6.15/drivers/usb/gadget/udc/
H A Drenesas_usb3.c744 usb3->role = host ? USB_ROLE_HOST : USB_ROLE_DEVICE; in usb3_set_mode_by_role_sw()
2443 cur_role = usb3_is_host(usb3) ? USB_ROLE_HOST : USB_ROLE_DEVICE; in renesas_usb3_role_switch_get()
2473 case USB_ROLE_DEVICE: in handle_ext_role_switch_states()
2475 usb3->connection_state = USB_ROLE_DEVICE; in handle_ext_role_switch_states()
2503 } else if (cur_role == USB_ROLE_DEVICE) { in handle_ext_role_switch_states()
2524 if (cur_role == USB_ROLE_HOST && role == USB_ROLE_DEVICE) { in handle_role_switch_states()
2527 } else if (cur_role == USB_ROLE_DEVICE && role == USB_ROLE_HOST) { in handle_role_switch_states()
/linux-6.15/drivers/phy/tegra/
H A Dxusb.c590 [USB_ROLE_DEVICE] = "device",
596 case USB_ROLE_DEVICE: in to_usb_phy_event()
735 role = USB_ROLE_DEVICE; in tegra_xusb_parse_usb_role_default_mode()
/linux-6.15/drivers/usb/typec/mux/
H A Dintel_pmc_mux.c478 u8 ufp = role == USB_ROLE_DEVICE ? 1 : 0; in pmc_usb_connect()

12