Home
last modified time | relevance | path

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

12

/linux/drivers/usb/mtu3/
A Dmtu3_dr.c138 current_role = ssusb->is_host ? USB_ROLE_HOST : USB_ROLE_DEVICE; in ssusb_mode_sw_work()
143 if (otg_sx->default_role == USB_ROLE_DEVICE) in ssusb_mode_sw_work()
144 desired_role = USB_ROLE_DEVICE; in ssusb_mode_sw_work()
162 case USB_ROLE_DEVICE: in ssusb_mode_sw_work()
193 ssusb_set_mode(otg_sx, event ? USB_ROLE_HOST : USB_ROLE_DEVICE); in ssusb_id_notifier()
221 ssusb_set_mode(otg_sx, USB_ROLE_DEVICE); in ssusb_extcon_register()
236 ssusb_set_mode(otg_sx, to_host ? USB_ROLE_HOST : USB_ROLE_DEVICE); in ssusb_mode_switch()
276 return ssusb->is_host ? USB_ROLE_HOST : USB_ROLE_DEVICE; in ssusb_role_sw_get()
291 otg_sx->default_role = USB_ROLE_DEVICE; in ssusb_role_sw_register()
/linux/drivers/usb/cdns3/
A Dcore.c32 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 Dcore.h104 struct cdns_role_driver *roles[USB_ROLE_DEVICE + 1];
/linux/drivers/usb/typec/
A Dhd3ss3220.c65 attached_state = USB_ROLE_DEVICE; in hd3ss3220_get_attached_state()
85 role_val = USB_ROLE_DEVICE; in hd3ss3220_dr_set()
115 case USB_ROLE_DEVICE: 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()
A Dstusb160x.c337 usb_role = USB_ROLE_DEVICE; in stusb160x_set_data_role()
/linux/drivers/usb/roles/
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()
A Dclass.c214 [USB_ROLE_DEVICE] = "device",
/linux/drivers/usb/dwc2/
A Ddrd.c79 if ((role == USB_ROLE_DEVICE && hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_drd_role_sw_set()
110 } else if (role == USB_ROLE_DEVICE) { in dwc2_drd_role_sw_set()
/linux/drivers/usb/musb/
A Dmediatek.c139 case USB_ROLE_DEVICE: in mtk_otg_switch_set()
142 new_role = USB_ROLE_DEVICE; in mtk_otg_switch_set()
284 new_role = USB_ROLE_DEVICE; in mtk_musb_set_mode()
495 glue->role = USB_ROLE_DEVICE; in mtk_musb_probe()
A Djz4740.c88 case USB_ROLE_DEVICE: in jz4740_musb_role_switch_set()
/linux/drivers/usb/chipidea/
A Dci.h299 return USB_ROLE_DEVICE; in ci_role_to_usb_role()
308 else if (role == USB_ROLE_DEVICE) in usb_role_to_ci_role()
A Dcore.c621 if (current_role == USB_ROLE_DEVICE) in ci_usb_role_switch_set()
639 if (role == USB_ROLE_DEVICE) in ci_usb_role_switch_set()
/linux/drivers/usb/dwc3/
A Ddrd.c498 case USB_ROLE_DEVICE: in dwc3_usb_role_switch_set()
525 role = USB_ROLE_DEVICE; in dwc3_usb_role_switch_get()
534 role = USB_ROLE_DEVICE; in dwc3_usb_role_switch_get()
A Ddwc3-meson-g12a.c547 USB_ROLE_HOST : USB_ROLE_DEVICE; in dwc3_meson_g12a_role_get()
/linux/drivers/usb/common/
A Dusb-conn-gpio.c82 role = USB_ROLE_DEVICE; in usb_conn_detect_cable()
143 val->intval = info->last_role == USB_ROLE_DEVICE; in usb_charger_get_property()
/linux/include/linux/usb/
A Drole.h13 USB_ROLE_DEVICE, enumerator
/linux/drivers/misc/
A Dhisi_hikey_usb.c115 case USB_ROLE_DEVICE: in relay_set_role_switch()
/linux/drivers/usb/gadget/udc/
A Drenesas_usb3.c686 usb3->role = host ? USB_ROLE_HOST : USB_ROLE_DEVICE; in usb3_set_mode_by_role_sw()
2365 cur_role = usb3_is_host(usb3) ? USB_ROLE_HOST : USB_ROLE_DEVICE; in renesas_usb3_role_switch_get()
2385 case USB_ROLE_DEVICE: in handle_ext_role_switch_states()
2387 usb3->connection_state = USB_ROLE_DEVICE; in handle_ext_role_switch_states()
2409 } else if (cur_role == USB_ROLE_DEVICE) { in handle_ext_role_switch_states()
2430 if (cur_role == USB_ROLE_HOST && role == USB_ROLE_DEVICE) { in handle_role_switch_states()
2433 } else if (cur_role == USB_ROLE_DEVICE && role == USB_ROLE_HOST) { in handle_role_switch_states()
/linux/drivers/extcon/
A Dextcon-axp288.c190 role = USB_ROLE_DEVICE; in axp288_usb_role_work()
/linux/drivers/usb/typec/ucsi/
A Ducsi.c712 u_role = USB_ROLE_DEVICE; in ucsi_partner_change()
1119 u_role = USB_ROLE_DEVICE; in ucsi_register_port()
/linux/drivers/phy/tegra/
A Dxusb.c583 [USB_ROLE_DEVICE] = "device",
589 case USB_ROLE_DEVICE: in to_usb_phy_event()
/linux/drivers/usb/typec/mux/
A Dintel_pmc_mux.c390 u8 ufp = role == USB_ROLE_DEVICE ? 1 : 0; in pmc_usb_connect()
/linux/drivers/usb/typec/tipd/
A Dcore.c220 role_val = USB_ROLE_DEVICE; in tps6598x_set_data_role()
/linux/drivers/platform/chrome/
A Dcros_ec_typec.c539 ? USB_ROLE_HOST : USB_ROLE_DEVICE); in cros_typec_configure_mux()

Completed in 57 milliseconds

12