/kernel/linux/linux-5.10/drivers/usb/dwc2/ |
D | drd.c | 145 struct usb_role_switch *role_sw; in dwc2_drd_init() local 156 role_sw = usb_role_switch_register(hsotg->dev, &role_sw_desc); in dwc2_drd_init() 157 if (IS_ERR(role_sw)) { in dwc2_drd_init() 158 ret = PTR_ERR(role_sw); in dwc2_drd_init() 164 hsotg->role_sw = role_sw; in dwc2_drd_init() 176 if (hsotg->role_sw && !hsotg->params.external_id_pin_ctl) { in dwc2_drd_suspend() 189 if (hsotg->role_sw && !hsotg->params.external_id_pin_ctl) { in dwc2_drd_resume() 200 if (hsotg->role_sw) in dwc2_drd_exit() 201 usb_role_switch_unregister(hsotg->role_sw); in dwc2_drd_exit()
|
D | core.h | 1060 struct usb_role_switch *role_sw; member
|
D | gadget.c | 3596 if (!hsotg->role_sw || (dwc2_readl(hsotg, GOTGCTL) & GOTGCTL_BSESVLD)) in dwc2_hsotg_core_connect()
|
/kernel/linux/linux-5.10/drivers/usb/typec/ |
D | hd3ss3220.c | 38 struct usb_role_switch *role_sw; member 92 usb_role_switch_set_role(hd3ss3220->role_sw, role_val); in hd3ss3220_dr_set() 106 usb_role_switch_set_role(hd3ss3220->role_sw, role_state); in hd3ss3220_set_role() 179 hd3ss3220->role_sw = fwnode_usb_role_switch_get(connector); in hd3ss3220_probe() 188 hd3ss3220->role_sw = usb_role_switch_get(hd3ss3220->dev); in hd3ss3220_probe() 191 if (IS_ERR(hd3ss3220->role_sw)) { in hd3ss3220_probe() 192 ret = PTR_ERR(hd3ss3220->role_sw); in hd3ss3220_probe() 243 usb_role_switch_put(hd3ss3220->role_sw); in hd3ss3220_probe() 255 usb_role_switch_put(hd3ss3220->role_sw); in hd3ss3220_remove()
|
D | qcom-pmic-typec.c | 40 struct usb_role_switch *role_sw; member 93 usb_role_switch_set_role(qcom_usb->role_sw, role); in qcom_pmic_typec_check_connection() 196 qcom_usb->role_sw = fwnode_usb_role_switch_get(dev_fwnode(qcom_usb->dev)); in qcom_pmic_typec_probe() 197 if (IS_ERR(qcom_usb->role_sw)) { in qcom_pmic_typec_probe() 198 if (PTR_ERR(qcom_usb->role_sw) != -EPROBE_DEFER) in qcom_pmic_typec_probe() 200 ret = PTR_ERR(qcom_usb->role_sw); in qcom_pmic_typec_probe() 223 usb_role_switch_put(qcom_usb->role_sw); in qcom_pmic_typec_probe() 236 usb_role_switch_set_role(qcom_usb->role_sw, USB_ROLE_NONE); in qcom_pmic_typec_remove() 240 usb_role_switch_put(qcom_usb->role_sw); in qcom_pmic_typec_remove()
|
D | stusb160x.c | 163 struct usb_role_switch *role_sw; member 340 usb_role_switch_set_role(chip->role_sw, usb_role); in stusb160x_set_data_role() 742 chip->role_sw = fwnode_usb_role_switch_get(fwnode); in stusb160x_probe() 743 if (IS_ERR(chip->role_sw)) { in stusb160x_probe() 744 ret = PTR_ERR(chip->role_sw); in stusb160x_probe() 779 if (chip->role_sw) in stusb160x_probe() 780 usb_role_switch_put(chip->role_sw); in stusb160x_probe() 807 if (chip->role_sw) in stusb160x_remove() 808 usb_role_switch_put(chip->role_sw); in stusb160x_remove()
|
D | tps6598x.c | 97 struct usb_role_switch *role_sw; member 207 usb_role_switch_set_role(tps->role_sw, role_val); in tps6598x_set_data_role() 521 tps->role_sw = fwnode_usb_role_switch_get(fwnode); in tps6598x_probe() 522 if (IS_ERR(tps->role_sw)) { in tps6598x_probe() 523 ret = PTR_ERR(tps->role_sw); in tps6598x_probe() 590 usb_role_switch_put(tps->role_sw); in tps6598x_probe() 603 usb_role_switch_put(tps->role_sw); in tps6598x_remove()
|
/kernel/linux/linux-5.10/drivers/usb/common/ |
D | usb-conn-gpio.c | 32 struct usb_role_switch *role_sw; member 97 ret = usb_role_switch_set_role(info->role_sw, role); in usb_conn_detect_cable() 231 info->role_sw = usb_role_switch_get(dev); in usb_conn_probe() 232 if (IS_ERR(info->role_sw)) { in usb_conn_probe() 233 if (PTR_ERR(info->role_sw) != -EPROBE_DEFER) in usb_conn_probe() 236 return PTR_ERR(info->role_sw); in usb_conn_probe() 285 usb_role_switch_put(info->role_sw); in usb_conn_probe() 298 usb_role_switch_put(info->role_sw); in usb_conn_remove()
|
/kernel/linux/linux-5.10/drivers/extcon/ |
D | extcon-axp288.c | 99 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() 338 info->role_sw = usb_role_switch_find_by_fwnode(fwnode); in axp288_extcon_find_role_sw() 341 return info->role_sw ? 0 : -EPROBE_DEFER; in axp288_extcon_find_role_sw() 369 if (info->role_sw) { in axp288_extcon_probe() 438 if (info->role_sw) { in axp288_extcon_probe()
|
/kernel/linux/linux-5.10/drivers/usb/roles/ |
D | intel-xhci-usb-role-switch.c | 46 struct usb_role_switch *role_sw; member 186 data->role_sw = usb_role_switch_register(dev, &sw_desc); in intel_xhci_usb_probe() 187 if (IS_ERR(data->role_sw)) { in intel_xhci_usb_probe() 189 return PTR_ERR(data->role_sw); in intel_xhci_usb_probe() 204 usb_role_switch_unregister(data->role_sw); in intel_xhci_usb_remove()
|
/kernel/linux/linux-5.10/drivers/usb/musb/ |
D | jz4740.c | 24 struct usb_role_switch *role_sw; member 123 glue->role_sw = usb_role_switch_register(dev, &role_sw_desc); in jz4740_musb_init() 124 if (IS_ERR(glue->role_sw)) { in jz4740_musb_init() 126 return PTR_ERR(glue->role_sw); in jz4740_musb_init() 144 usb_role_switch_unregister(glue->role_sw); in jz4740_musb_exit()
|
D | mediatek.c | 51 struct usb_role_switch *role_sw; member 190 glue->role_sw = usb_role_switch_register(glue->dev, &role_sx_desc); in mtk_otg_switch_init() 192 return PTR_ERR_OR_ZERO(glue->role_sw); in mtk_otg_switch_init() 197 return usb_role_switch_unregister(glue->role_sw); in mtk_otg_switch_exit()
|
/kernel/linux/linux-5.10/drivers/usb/cdns3/ |
D | core.c | 294 if (cdns->role_sw) in cdns3_hw_role_switch() 550 cdns->role_sw = usb_role_switch_register(dev, &sw_desc); in cdns3_probe() 551 if (IS_ERR(cdns->role_sw)) { in cdns3_probe() 552 ret = PTR_ERR(cdns->role_sw); in cdns3_probe() 598 if (cdns->role_sw) in cdns3_probe() 599 usb_role_switch_unregister(cdns->role_sw); in cdns3_probe() 624 usb_role_switch_unregister(cdns->role_sw); in cdns3_remove()
|
D | core.h | 112 struct usb_role_switch *role_sw; member
|
/kernel/linux/linux-5.10/drivers/platform/chrome/ |
D | cros_ec_typec.c | 43 struct usb_role_switch *role_sw; member 127 port->role_sw = fwnode_usb_role_switch_get(fwnode); in cros_typec_get_switch_handles() 128 if (IS_ERR(port->role_sw)) { in cros_typec_get_switch_handles() 136 usb_role_switch_put(port->role_sw); in cros_typec_get_switch_handles() 178 usb_role_switch_set_role(port->role_sw, USB_ROLE_NONE); in cros_typec_remove_partner() 194 usb_role_switch_put(typec->ports[i]->role_sw); in cros_unregister_ports() 553 ret = usb_role_switch_set_role(typec->ports[port_num]->role_sw, in cros_typec_configure_mux()
|
/kernel/linux/linux-5.10/drivers/usb/dwc3/ |
D | drd.c | 555 dwc->role_sw = usb_role_switch_register(dwc->dev, &dwc3_role_switch); in dwc3_setup_role_switch() 556 if (IS_ERR(dwc->role_sw)) in dwc3_setup_role_switch() 557 return PTR_ERR(dwc->role_sw); in dwc3_setup_role_switch() 626 if (dwc->role_sw) in dwc3_drd_exit() 627 usb_role_switch_unregister(dwc->role_sw); in dwc3_drd_exit()
|
D | core.h | 1124 struct usb_role_switch *role_sw; member
|
/kernel/linux/linux-5.10/drivers/usb/mtu3/ |
D | mtu3_dr.c | 358 otg_sx->role_sw = usb_role_switch_register(ssusb->dev, &role_sx_desc); in ssusb_role_sw_register() 360 return PTR_ERR_OR_ZERO(otg_sx->role_sw); in ssusb_role_sw_register() 387 usb_role_switch_unregister(otg_sx->role_sw); in ssusb_otg_switch_exit()
|
D | mtu3.h | 218 struct usb_role_switch *role_sw; member
|
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/ |
D | renesas_usb3.c | 341 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() 2376 enum usb_role cur_role = renesas_usb3_role_switch_get(usb3->role_sw); in handle_ext_role_switch_states() 2430 enum usb_role cur_role = renesas_usb3_role_switch_get(usb3->role_sw); in handle_role_switch_states() 2572 usb_role_switch_unregister(usb3->role_sw); in renesas_usb3_remove() 2838 usb3->role_sw = usb_role_switch_register(&pdev->dev, in renesas_usb3_probe() 2840 if (!IS_ERR(usb3->role_sw)) { in renesas_usb3_probe() 2844 usb_role_switch_unregister(usb3->role_sw); in renesas_usb3_probe() 2845 usb3->role_sw = NULL; in renesas_usb3_probe() [all …]
|
/kernel/linux/linux-5.10/drivers/usb/typec/tcpm/ |
D | tcpm.c | 256 struct usb_role_switch *role_sw; member 733 if (port->role_sw) { in tcpm_mux_set() 734 ret = usb_role_switch_set_role(port->role_sw, usb_role); in tcpm_mux_set() 5151 port->role_sw = usb_role_switch_get(port->dev); in tcpm_register_port() 5152 if (IS_ERR(port->role_sw)) { in tcpm_register_port() 5153 err = PTR_ERR(port->role_sw); in tcpm_register_port() 5176 usb_role_switch_put(port->role_sw); in tcpm_register_port() 5196 usb_role_switch_put(port->role_sw); in tcpm_unregister_port()
|
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/ |
D | 0034_linux_drivers_usb_vfio_wdt_tty_uio.patch | 2782 if (cdns->role_sw) 2783 usb_role_switch_unregister(cdns->role_sw); 2835 + if (cdns->role_sw) { 2836 + cdns->role = cdns3_role_get(cdns->role_sw);
|