Home
last modified time | relevance | path

Searched refs:USB_ROLE_HOST (Results 1 – 25 of 34) sorted by relevance

12

/linux-6.3-rc2/drivers/usb/dwc2/
A Ddrd.c93 (role == USB_ROLE_HOST && hsotg->dr_mode == USB_DR_MODE_PERIPHERAL)) in dwc2_drd_role_sw_set()
124 role = USB_ROLE_HOST; in dwc2_drd_role_sw_set()
129 if (role == USB_ROLE_HOST) { in dwc2_drd_role_sw_set()
151 dwc2_force_mode(hsotg, role == USB_ROLE_HOST); in dwc2_drd_role_sw_set()
158 role == USB_ROLE_HOST ? "A" : "B"); in dwc2_drd_role_sw_set()
218 role = USB_ROLE_HOST; in dwc2_drd_resume()
224 if (role == USB_ROLE_HOST) in dwc2_drd_resume()
229 dwc2_force_mode(hsotg, role == USB_ROLE_HOST); in dwc2_drd_resume()
233 role == USB_ROLE_HOST ? "A" : "B"); in dwc2_drd_resume()
/linux-6.3-rc2/drivers/usb/mtu3/
A Dmtu3_dr.c136 current_role = ssusb->is_host ? USB_ROLE_HOST : USB_ROLE_DEVICE; in ssusb_mode_sw_work()
140 desired_role = USB_ROLE_HOST; in ssusb_mode_sw_work()
153 case USB_ROLE_HOST: in ssusb_mode_sw_work()
191 ssusb_set_mode(otg_sx, event ? USB_ROLE_HOST : USB_ROLE_DEVICE); in ssusb_id_notifier()
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()
291 otg_sx->default_role = USB_ROLE_HOST; in ssusb_role_sw_register()
/linux-6.3-rc2/drivers/usb/cdns3/
A Dcore.c190 ret = cdns_role_start(cdns, USB_ROLE_HOST); in cdns_core_init_role()
218 role = USB_ROLE_HOST; in cdns_hw_role_state_machine()
243 role = USB_ROLE_HOST; in cdns_hw_role_state_machine()
247 case USB_ROLE_HOST: /* from HOST, we can only change to NONE */ in cdns_hw_role_state_machine()
370 case USB_ROLE_HOST: in cdns_role_set()
412 if ((cdns->role == USB_ROLE_HOST) && cdns->host_dev) in cdns_wakeup_irq()
546 if (cdns->role == USB_ROLE_HOST) in cdns_resume()
A Dhost.c140 cdns->roles[USB_ROLE_HOST] = rdrv; in cdns_host_init()
A Dcdns3-imx.c261 if (cdns->role != USB_ROLE_HOST) in cdns_imx_platform_suspend()
/linux-6.3-rc2/drivers/usb/roles/
A Dintel-xhci-usb-role-switch.c90 case USB_ROLE_HOST: in intel_xhci_usb_set_role()
116 if (!!(val & HOST_MODE) == (role == USB_ROLE_HOST)) { in intel_xhci_usb_set_role()
142 role = USB_ROLE_HOST; in intel_xhci_usb_get_role()
A Dclass.c216 [USB_ROLE_HOST] = "host",
/linux-6.3-rc2/drivers/usb/common/
A Dusb-conn-gpio.c80 role = USB_ROLE_HOST; in usb_conn_detect_cable()
94 if (info->last_role == USB_ROLE_HOST && info->vbus) in usb_conn_detect_cable()
101 if (role == USB_ROLE_HOST && info->vbus) { in usb_conn_detect_cable()
276 if (info->last_role == USB_ROLE_HOST && info->vbus) in usb_conn_remove()
/linux-6.3-rc2/drivers/usb/typec/
A Dhd3ss3220.c66 attached_state = USB_ROLE_HOST; in hd3ss3220_get_attached_state()
86 role_val = USB_ROLE_HOST; in hd3ss3220_dr_set()
116 case USB_ROLE_HOST: in hd3ss3220_set_role()
A Dqcom-pmic-typec.c82 role = (stat & SNK_SRC_MODE) ? USB_ROLE_HOST : USB_ROLE_DEVICE; in qcom_pmic_typec_check_connection()
83 if (role == USB_ROLE_HOST) in qcom_pmic_typec_check_connection()
A Dstusb160x.c335 usb_role = USB_ROLE_HOST; in stusb160x_set_data_role()
/linux-6.3-rc2/drivers/usb/musb/
A Dmediatek.c75 case USB_ROLE_HOST: in mtk_otg_switch_set()
78 new_role = USB_ROLE_HOST; in mtk_otg_switch_set()
227 new_role = USB_ROLE_HOST; in mtk_musb_set_mode()
439 glue->role = USB_ROLE_HOST; in mtk_musb_probe()
A Djz4740.c95 case USB_ROLE_HOST: in jz4740_musb_role_switch_set()
/linux-6.3-rc2/drivers/usb/chipidea/
A Dci.h302 return USB_ROLE_HOST; in ci_role_to_usb_role()
311 if (role == USB_ROLE_HOST) in usb_role_to_ci_role()
/linux-6.3-rc2/include/linux/usb/
A Drole.h12 USB_ROLE_HOST, enumerator
/linux-6.3-rc2/drivers/usb/dwc3/
A Ddrd.c450 case USB_ROLE_HOST: in dwc3_usb_role_switch_set()
477 role = USB_ROLE_HOST; in dwc3_usb_role_switch_get()
487 role = USB_ROLE_HOST; in dwc3_usb_role_switch_get()
A Ddwc3-meson-g12a.c530 mode = (role == USB_ROLE_HOST) ? PHY_MODE_USB_HOST in dwc3_meson_g12a_role_set()
547 USB_ROLE_HOST : USB_ROLE_DEVICE; in dwc3_meson_g12a_role_get()
/linux-6.3-rc2/drivers/extcon/
A Dextcon-axp288.c175 return role != USB_ROLE_HOST; in axp288_get_id_pin()
188 role = USB_ROLE_HOST; in axp288_usb_role_work()
A Dextcon-ptn5150.c102 usb_role = USB_ROLE_HOST; in ptn5150_check_state()
A Dextcon-intel-cht-wc.c331 role = USB_ROLE_HOST; in cht_wc_extcon_pwrsrc_event()
/linux-6.3-rc2/drivers/usb/gadget/udc/
A Drenesas_usb3.c745 usb3->role = host ? USB_ROLE_HOST : USB_ROLE_DEVICE; in usb3_set_mode_by_role_sw()
786 !usb3->forced_b_device) || usb3->connection_state == USB_ROLE_HOST) in usb3_check_id()
2444 cur_role = usb3_is_host(usb3) ? USB_ROLE_HOST : USB_ROLE_DEVICE; in renesas_usb3_role_switch_get()
2460 if (!usb3->is_rzv2m && cur_role == USB_ROLE_HOST) in handle_ext_role_switch_states()
2483 } else if (cur_role == USB_ROLE_HOST) { in handle_ext_role_switch_states()
2491 case USB_ROLE_HOST: in handle_ext_role_switch_states()
2499 usb3->connection_state = USB_ROLE_HOST; 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/usb/misc/
A Dqcom_eud.c160 ret = usb_role_switch_set_role(chip->role_sw, USB_ROLE_HOST); in handle_eud_irq_thread()
/linux-6.3-rc2/drivers/misc/
A Dhisi_hikey_usb.c110 case USB_ROLE_HOST: in relay_set_role_switch()
/linux-6.3-rc2/drivers/phy/tegra/
A Dxusb.c588 [USB_ROLE_HOST] = "host",
598 case USB_ROLE_HOST: in to_usb_phy_event()
727 role = USB_ROLE_HOST; in tegra_xusb_parse_usb_role_default_mode()
/linux-6.3-rc2/drivers/usb/typec/ucsi/
A Ducsi.c799 u_role = USB_ROLE_HOST; in ucsi_partner_change()
1268 u_role = USB_ROLE_HOST; in ucsi_register_port()

Completed in 39 milliseconds

12