Searched refs:usb_role (Results 1 – 14 of 14) sorted by relevance
/Linux-v5.4/include/linux/usb/ |
D | role.h | 10 enum usb_role { enum 16 typedef int (*usb_role_switch_set_t)(struct device *dev, enum usb_role role); 17 typedef enum usb_role (*usb_role_switch_get_t)(struct device *dev); 47 int usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role); 48 enum usb_role usb_role_switch_get_role(struct usb_role_switch *sw); 59 enum usb_role role) in usb_role_switch_set_role() 64 static inline enum usb_role usb_role_switch_get_role(struct usb_role_switch *sw) in usb_role_switch_get_role()
|
/Linux-v5.4/drivers/usb/cdns3/ |
D | core.c | 37 static int cdns3_role_start(struct cdns3 *cdns, enum usb_role role) in cdns3_role_start() 65 enum usb_role role = cdns->role; in cdns3_role_stop() 85 static enum usb_role cdsn3_hw_role_state_machine(struct cdns3 *cdns); 201 static enum usb_role cdsn3_hw_role_state_machine(struct cdns3 *cdns) in cdsn3_hw_role_state_machine() 203 enum usb_role role; in cdsn3_hw_role_state_machine() 291 enum usb_role real_role, current_role; in cdns3_hw_role_switch() 333 static enum usb_role cdns3_role_get(struct device *dev) in cdns3_role_get() 349 static int cdns3_role_set(struct device *dev, enum usb_role role) in cdns3_role_set()
|
D | core.h | 84 enum usb_role role;
|
/Linux-v5.4/drivers/usb/roles/ |
D | class.c | 22 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() 68 enum usb_role usb_role_switch_get_role(struct usb_role_switch *sw) in usb_role_switch_get_role() 70 enum usb_role role; in usb_role_switch_get_role() 200 enum usb_role role = usb_role_switch_get_role(sw); in role_show()
|
D | intel-xhci-usb-role-switch.c | 54 static int intel_xhci_usb_set_role(struct device *dev, enum usb_role role) in intel_xhci_usb_set_role() 129 static enum usb_role intel_xhci_usb_get_role(struct device *dev) in intel_xhci_usb_get_role() 132 enum usb_role role; in intel_xhci_usb_get_role()
|
/Linux-v5.4/Documentation/ABI/testing/ |
D | sysfs-class-usb_role | 1 What: /sys/class/usb_role/ 9 What: /sys/class/usb_role/<switch>/role
|
/Linux-v5.4/drivers/usb/mtu3/ |
D | mtu3_dr.c | 323 static int ssusb_role_sw_set(struct device *dev, enum usb_role role) in ssusb_role_sw_set() 337 static enum usb_role ssusb_role_sw_get(struct device *dev) in ssusb_role_sw_get() 340 enum usb_role role; in ssusb_role_sw_get()
|
/Linux-v5.4/drivers/usb/common/ |
D | usb-conn-gpio.c | 32 enum usb_role last_role; 63 enum usb_role role; in usb_conn_detect_cable()
|
/Linux-v5.4/drivers/extcon/ |
D | extcon-axp288.c | 167 enum usb_role role; in axp288_get_id_pin() 181 enum usb_role role; in axp288_usb_role_work()
|
/Linux-v5.4/drivers/usb/gadget/udc/ |
D | renesas_usb3.c | 344 enum usb_role role; 356 enum usb_role connection_state; 2343 static enum usb_role renesas_usb3_role_switch_get(struct device *dev) in renesas_usb3_role_switch_get() 2346 enum usb_role cur_role; in renesas_usb3_role_switch_get() 2356 enum usb_role role) in handle_ext_role_switch_states() 2360 enum usb_role cur_role = renesas_usb3_role_switch_get(dev); in handle_ext_role_switch_states() 2408 enum usb_role role) in handle_role_switch_states() 2412 enum usb_role cur_role = renesas_usb3_role_switch_get(dev); in handle_role_switch_states() 2427 enum usb_role role) in renesas_usb3_role_switch_set()
|
/Linux-v5.4/drivers/usb/dwc3/ |
D | dwc3-meson-g12a.c | 324 static int dwc3_meson_g12a_role_set(struct device *dev, enum usb_role role) in dwc3_meson_g12a_role_set() 341 static enum usb_role dwc3_meson_g12a_role_get(struct device *dev) in dwc3_meson_g12a_role_get()
|
/Linux-v5.4/drivers/usb/chipidea/ |
D | core.c | 603 static enum usb_role ci_usb_role_switch_get(struct device *dev) in ci_usb_role_switch_get() 606 enum usb_role role; in ci_usb_role_switch_get() 616 static int ci_usb_role_switch_set(struct device *dev, enum usb_role role) in ci_usb_role_switch_set() 620 enum usb_role current_role = ci_role_to_usb_role(ci); in ci_usb_role_switch_set()
|
D | ci.h | 295 static inline enum usb_role ci_role_to_usb_role(struct ci_hdrc *ci) in ci_role_to_usb_role()
|
/Linux-v5.4/drivers/usb/typec/tcpm/ |
D | tcpm.c | 657 enum usb_role usb_role, in tcpm_mux_set() argument 663 state, usb_role, orientation); in tcpm_mux_set() 670 ret = usb_role_switch_set_role(port->role_sw, usb_role); in tcpm_mux_set() 792 enum usb_role usb_role; in tcpm_set_roles() local 801 usb_role = USB_ROLE_HOST; in tcpm_set_roles() 803 usb_role = USB_ROLE_DEVICE; in tcpm_set_roles() 805 ret = tcpm_mux_set(port, TYPEC_STATE_USB, usb_role, orientation); in tcpm_set_roles()
|