Home
last modified time | relevance | path

Searched refs:usb_role (Results 1 – 25 of 27) sorted by relevance

12

/linux/include/linux/usb/
A Drole.h10 enum usb_role { enum
17 enum usb_role role);
18 typedef enum usb_role (*usb_role_switch_get_t)(struct usb_role_switch *sw);
52 int usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role);
53 enum usb_role usb_role_switch_get_role(struct usb_role_switch *sw);
68 const char *usb_role_string(enum usb_role role);
71 enum usb_role role) in usb_role_switch_set_role()
76 static inline enum usb_role usb_role_switch_get_role(struct usb_role_switch *sw) in usb_role_switch_get_role()
113 static inline const char *usb_role_string(enum usb_role role) in usb_role_string()
/linux/drivers/usb/cdns3/
A Dcore.c28 static int cdns_role_start(struct cdns *cdns, enum usb_role role) in cdns_role_start()
56 enum usb_role role = cdns->role; in cdns_role_stop()
211 static enum usb_role cdns_hw_role_state_machine(struct cdns *cdns) in cdns_hw_role_state_machine()
213 enum usb_role role = USB_ROLE_NONE; in cdns_hw_role_state_machine()
299 enum usb_role real_role, current_role; in cdns_hw_role_switch()
341 static enum usb_role cdns_role_get(struct usb_role_switch *sw) in cdns_role_get()
357 static int cdns_role_set(struct usb_role_switch *sw, enum usb_role role) in cdns_role_set()
528 enum usb_role real_role; in cdns_resume()
A Dcore.h105 enum usb_role role;
/linux/drivers/usb/roles/
A Dclass.c22 enum usb_role role;
42 int usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role) in usb_role_switch_set_role()
70 enum usb_role usb_role_switch_get_role(struct usb_role_switch *sw) in usb_role_switch_get_role()
72 enum usb_role role; in usb_role_switch_get_role()
217 const char *usb_role_string(enum usb_role role) in usb_role_string()
230 enum usb_role role = usb_role_switch_get_role(sw); in role_show()
A Dintel-xhci-usb-role-switch.c56 enum usb_role role) in intel_xhci_usb_set_role()
131 static enum usb_role intel_xhci_usb_get_role(struct usb_role_switch *sw) in intel_xhci_usb_get_role()
134 enum usb_role role; in intel_xhci_usb_get_role()
/linux/drivers/usb/mtu3/
A Dmtu3_dr.c135 enum usb_role desired_role = otg_sx->desired_role; in ssusb_mode_sw_work()
136 enum usb_role current_role; in ssusb_mode_sw_work()
176 static void ssusb_set_mode(struct otg_switch_mtk *otg_sx, enum usb_role role) in ssusb_set_mode()
262 static int ssusb_role_sw_set(struct usb_role_switch *sw, enum usb_role role) in ssusb_role_sw_set()
272 static enum usb_role ssusb_role_sw_get(struct usb_role_switch *sw) in ssusb_role_sw_get()
A Dmtu3.h215 enum usb_role desired_role;
216 enum usb_role default_role;
/linux/drivers/usb/typec/
A Dhd3ss3220.c49 static enum usb_role hd3ss3220_get_attached_state(struct hd3ss3220 *hd3ss3220) in hd3ss3220_get_attached_state()
52 enum usb_role attached_state; in hd3ss3220_get_attached_state()
78 enum usb_role role_val; in hd3ss3220_dr_set()
104 enum usb_role role_state = hd3ss3220_get_attached_state(hd3ss3220); in hd3ss3220_set_role()
A Dstusb160x.c331 enum usb_role usb_role = USB_ROLE_NONE; in stusb160x_set_data_role() local
335 usb_role = USB_ROLE_HOST; in stusb160x_set_data_role()
337 usb_role = USB_ROLE_DEVICE; in stusb160x_set_data_role()
340 usb_role_switch_set_role(chip->role_sw, usb_role); in stusb160x_set_data_role()
A Dqcom-pmic-typec.c69 enum usb_role role; in qcom_pmic_typec_check_connection()
/linux/Documentation/ABI/testing/
A Dsysfs-class-usb_role1 What: /sys/class/usb_role/
9 What: /sys/class/usb_role/<switch>/role
/linux/drivers/usb/musb/
A Dmediatek.c50 enum usb_role role;
118 static int mtk_otg_switch_set(struct mtk_glue *glue, enum usb_role role) in mtk_otg_switch_set()
122 enum usb_role new_role; in mtk_otg_switch_set()
170 static int musb_usb_role_sx_set(struct usb_role_switch *sw, enum usb_role role) in musb_usb_role_sx_set()
175 static enum usb_role musb_usb_role_sx_get(struct usb_role_switch *sw) in musb_usb_role_sx_get()
275 enum usb_role new_role; in mtk_musb_set_mode()
A Djz4740.c79 enum usb_role role) in jz4740_musb_role_switch_set()
/linux/drivers/misc/
A Dhisi_hikey_usb.c44 enum usb_role role;
98 enum usb_role role; in relay_set_role_switch()
130 static int hub_usb_role_switch_set(struct usb_role_switch *sw, enum usb_role role) in hub_usb_role_switch_set()
/linux/drivers/usb/chipidea/
A Dci.h294 static inline enum usb_role ci_role_to_usb_role(struct ci_hdrc *ci) in ci_role_to_usb_role()
304 static inline enum ci_role usb_role_to_ci_role(enum usb_role role) in usb_role_to_ci_role()
A Dcore.c592 static enum usb_role ci_usb_role_switch_get(struct usb_role_switch *sw) in ci_usb_role_switch_get()
595 enum usb_role role; in ci_usb_role_switch_get()
606 enum usb_role role) in ci_usb_role_switch_set()
610 enum usb_role current_role = ci_role_to_usb_role(ci); in ci_usb_role_switch_set()
/linux/drivers/usb/dwc3/
A Ddrd.c489 enum usb_role role) in dwc3_usb_role_switch_set()
513 static enum usb_role dwc3_usb_role_switch_get(struct usb_role_switch *sw) in dwc3_usb_role_switch_get()
517 enum usb_role role; in dwc3_usb_role_switch_get()
A Ddwc3-meson-g12a.c522 enum usb_role role) in dwc3_meson_g12a_role_set()
542 static enum usb_role dwc3_meson_g12a_role_get(struct usb_role_switch *sw) in dwc3_meson_g12a_role_get()
/linux/drivers/usb/common/
A Dusb-conn-gpio.c33 enum usb_role last_role;
67 enum usb_role role; in usb_conn_detect_cable()
/linux/drivers/usb/typec/mux/
A Dintel_pmc_mux.c129 enum usb_role role;
388 static int pmc_usb_connect(struct pmc_usb_port *port, enum usb_role role) in pmc_usb_connect()
467 static int pmc_usb_set_role(struct usb_role_switch *sw, enum usb_role role) in pmc_usb_set_role()
/linux/drivers/extcon/
A Dextcon-axp288.c168 enum usb_role role; in axp288_get_id_pin()
182 enum usb_role role; in axp288_usb_role_work()
/linux/drivers/usb/gadget/udc/
A Drenesas_usb3.c344 enum usb_role role;
356 enum usb_role connection_state;
2359 static enum usb_role renesas_usb3_role_switch_get(struct usb_role_switch *sw) in renesas_usb3_role_switch_get()
2362 enum usb_role cur_role; in renesas_usb3_role_switch_get()
2372 enum usb_role role) in handle_ext_role_switch_states()
2376 enum usb_role cur_role = renesas_usb3_role_switch_get(usb3->role_sw); in handle_ext_role_switch_states()
2424 enum usb_role role) in handle_role_switch_states()
2428 enum usb_role cur_role = renesas_usb3_role_switch_get(usb3->role_sw); in handle_role_switch_states()
2443 enum usb_role role) in renesas_usb3_role_switch_set()
/linux/drivers/usb/dwc2/
A Ddrd.c72 static int dwc2_drd_role_sw_set(struct usb_role_switch *sw, enum usb_role role) in dwc2_drd_role_sw_set()
/linux/drivers/usb/typec/tcpm/
A Dtcpm.c928 enum usb_role usb_role, in tcpm_mux_set() argument
934 state, usb_role, orientation); in tcpm_mux_set()
941 ret = usb_role_switch_set_role(port->role_sw, usb_role); in tcpm_mux_set()
1031 enum usb_role usb_role; in tcpm_set_roles() local
1041 usb_role = USB_ROLE_HOST; in tcpm_set_roles()
1043 usb_role = USB_ROLE_DEVICE; in tcpm_set_roles()
1047 usb_role = USB_ROLE_HOST; in tcpm_set_roles()
1049 usb_role = USB_ROLE_NONE; in tcpm_set_roles()
1056 usb_role = USB_ROLE_DEVICE; in tcpm_set_roles()
1058 usb_role = USB_ROLE_NONE; in tcpm_set_roles()
[all …]
/linux/drivers/phy/tegra/
A Dxusb.c586 static enum usb_phy_events to_usb_phy_event(enum usb_role role) in to_usb_phy_event()
605 enum usb_role role = usb_role_switch_get_role(port->usb_role_sw); in tegra_xusb_usb_phy_work()
616 enum usb_role role) in tegra_xusb_role_sw_set()

Completed in 71 milliseconds

12