Home
last modified time | relevance | path

Searched refs:role_sw (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.4/drivers/usb/common/
Dusb-conn-gpio.c31 struct usb_role_switch *role_sw; member
93 ret = usb_role_switch_set_role(info->role_sw, role); in usb_conn_detect_cable()
163 info->role_sw = usb_role_switch_get(dev); in usb_conn_probe()
164 if (IS_ERR(info->role_sw)) { in usb_conn_probe()
165 if (PTR_ERR(info->role_sw) != -EPROBE_DEFER) in usb_conn_probe()
168 return PTR_ERR(info->role_sw); in usb_conn_probe()
213 usb_role_switch_put(info->role_sw); in usb_conn_probe()
226 usb_role_switch_put(info->role_sw); in usb_conn_remove()
/Linux-v5.4/drivers/extcon/
Dextcon-axp288.c99 struct usb_role_switch *role_sw; member
173 role = usb_role_switch_get_role(info->role_sw); in axp288_get_id_pin()
193 ret = usb_role_switch_set_role(info->role_sw, role); in axp288_usb_role_work()
269 if (info->role_sw && info->vbus_attach != vbus_attach) { in axp288_handle_chrg_det_event()
322 usb_role_switch_put(info->role_sw); in axp288_put_role_sw()
346 info->role_sw = usb_role_switch_get(dev); in axp288_extcon_probe()
347 if (IS_ERR(info->role_sw)) in axp288_extcon_probe()
348 return PTR_ERR(info->role_sw); in axp288_extcon_probe()
349 if (info->role_sw) { in axp288_extcon_probe()
418 if (info->role_sw) { in axp288_extcon_probe()
/Linux-v5.4/drivers/usb/roles/
Dintel-xhci-usb-role-switch.c45 struct usb_role_switch *role_sw; member
182 data->role_sw = usb_role_switch_register(dev, &sw_desc); in intel_xhci_usb_probe()
183 if (IS_ERR(data->role_sw)) { in intel_xhci_usb_probe()
185 return PTR_ERR(data->role_sw); in intel_xhci_usb_probe()
200 usb_role_switch_unregister(data->role_sw); in intel_xhci_usb_remove()
/Linux-v5.4/drivers/usb/cdns3/
Dcore.c532 cdns->role_sw = usb_role_switch_register(dev, &cdns3_switch_desc); in cdns3_probe()
533 if (IS_ERR(cdns->role_sw)) { in cdns3_probe()
534 ret = PTR_ERR(cdns->role_sw); in cdns3_probe()
564 usb_role_switch_unregister(cdns->role_sw); in cdns3_probe()
592 usb_role_switch_unregister(cdns->role_sw); in cdns3_remove()
Dcore.h92 struct usb_role_switch *role_sw; member
/Linux-v5.4/drivers/usb/mtu3/
Dmtu3_dr.c359 otg_sx->role_sw = usb_role_switch_register(ssusb->dev, &role_sx_desc); in ssusb_role_sw_register()
361 return PTR_ERR_OR_ZERO(otg_sx->role_sw); in ssusb_role_sw_register()
388 usb_role_switch_unregister(otg_sx->role_sw); in ssusb_otg_switch_exit()
Dmtu3.h218 struct usb_role_switch *role_sw; member
/Linux-v5.4/drivers/usb/gadget/udc/
Drenesas_usb3.c341 struct usb_role_switch *role_sw; member
672 usb_role_switch_set_role(usb3->role_sw, usb3->role); in renesas_usb3_role_work()
685 if (usb3->role_sw) { in usb3_set_mode_by_role_sw()
2553 usb_role_switch_unregister(usb3->role_sw); in renesas_usb3_remove()
2822 usb3->role_sw = usb_role_switch_register(&pdev->dev, in renesas_usb3_probe()
2824 if (!IS_ERR(usb3->role_sw)) { in renesas_usb3_probe()
2828 usb_role_switch_unregister(usb3->role_sw); in renesas_usb3_probe()
2829 usb3->role_sw = NULL; in renesas_usb3_probe()
2832 usb3->role_sw = NULL; in renesas_usb3_probe()
/Linux-v5.4/drivers/usb/typec/tcpm/
Dtcpm.c204 struct usb_role_switch *role_sw; member
669 if (port->role_sw) { in tcpm_mux_set()
670 ret = usb_role_switch_set_role(port->role_sw, usb_role); in tcpm_mux_set()
4784 port->role_sw = usb_role_switch_get(port->dev); in tcpm_register_port()
4785 if (IS_ERR(port->role_sw)) { in tcpm_register_port()
4786 err = PTR_ERR(port->role_sw); in tcpm_register_port()
4831 usb_role_switch_put(port->role_sw); in tcpm_register_port()
4847 usb_role_switch_put(port->role_sw); in tcpm_unregister_port()