role_sw 99 drivers/extcon/extcon-axp288.c struct usb_role_switch *role_sw; role_sw 173 drivers/extcon/extcon-axp288.c role = usb_role_switch_get_role(info->role_sw); role_sw 193 drivers/extcon/extcon-axp288.c ret = usb_role_switch_set_role(info->role_sw, role); role_sw 269 drivers/extcon/extcon-axp288.c if (info->role_sw && info->vbus_attach != vbus_attach) { role_sw 322 drivers/extcon/extcon-axp288.c usb_role_switch_put(info->role_sw); role_sw 346 drivers/extcon/extcon-axp288.c info->role_sw = usb_role_switch_get(dev); role_sw 347 drivers/extcon/extcon-axp288.c if (IS_ERR(info->role_sw)) role_sw 348 drivers/extcon/extcon-axp288.c return PTR_ERR(info->role_sw); role_sw 349 drivers/extcon/extcon-axp288.c if (info->role_sw) { role_sw 418 drivers/extcon/extcon-axp288.c if (info->role_sw) { role_sw 532 drivers/usb/cdns3/core.c cdns->role_sw = usb_role_switch_register(dev, &cdns3_switch_desc); role_sw 533 drivers/usb/cdns3/core.c if (IS_ERR(cdns->role_sw)) { role_sw 534 drivers/usb/cdns3/core.c ret = PTR_ERR(cdns->role_sw); role_sw 564 drivers/usb/cdns3/core.c usb_role_switch_unregister(cdns->role_sw); role_sw 592 drivers/usb/cdns3/core.c usb_role_switch_unregister(cdns->role_sw); role_sw 92 drivers/usb/cdns3/core.h struct usb_role_switch *role_sw; role_sw 31 drivers/usb/common/usb-conn-gpio.c struct usb_role_switch *role_sw; role_sw 93 drivers/usb/common/usb-conn-gpio.c ret = usb_role_switch_set_role(info->role_sw, role); role_sw 164 drivers/usb/common/usb-conn-gpio.c info->role_sw = usb_role_switch_get(dev); role_sw 165 drivers/usb/common/usb-conn-gpio.c if (IS_ERR(info->role_sw)) { role_sw 166 drivers/usb/common/usb-conn-gpio.c if (PTR_ERR(info->role_sw) != -EPROBE_DEFER) role_sw 169 drivers/usb/common/usb-conn-gpio.c return PTR_ERR(info->role_sw); role_sw 214 drivers/usb/common/usb-conn-gpio.c usb_role_switch_put(info->role_sw); role_sw 227 drivers/usb/common/usb-conn-gpio.c usb_role_switch_put(info->role_sw); role_sw 341 drivers/usb/gadget/udc/renesas_usb3.c struct usb_role_switch *role_sw; role_sw 672 drivers/usb/gadget/udc/renesas_usb3.c usb_role_switch_set_role(usb3->role_sw, usb3->role); role_sw 685 drivers/usb/gadget/udc/renesas_usb3.c if (usb3->role_sw) { role_sw 2553 drivers/usb/gadget/udc/renesas_usb3.c usb_role_switch_unregister(usb3->role_sw); role_sw 2822 drivers/usb/gadget/udc/renesas_usb3.c usb3->role_sw = usb_role_switch_register(&pdev->dev, role_sw 2824 drivers/usb/gadget/udc/renesas_usb3.c if (!IS_ERR(usb3->role_sw)) { role_sw 2828 drivers/usb/gadget/udc/renesas_usb3.c usb_role_switch_unregister(usb3->role_sw); role_sw 2829 drivers/usb/gadget/udc/renesas_usb3.c usb3->role_sw = NULL; role_sw 2832 drivers/usb/gadget/udc/renesas_usb3.c usb3->role_sw = NULL; role_sw 218 drivers/usb/mtu3/mtu3.h struct usb_role_switch *role_sw; role_sw 359 drivers/usb/mtu3/mtu3_dr.c otg_sx->role_sw = usb_role_switch_register(ssusb->dev, &role_sx_desc); role_sw 361 drivers/usb/mtu3/mtu3_dr.c return PTR_ERR_OR_ZERO(otg_sx->role_sw); role_sw 388 drivers/usb/mtu3/mtu3_dr.c usb_role_switch_unregister(otg_sx->role_sw); role_sw 45 drivers/usb/roles/intel-xhci-usb-role-switch.c struct usb_role_switch *role_sw; role_sw 182 drivers/usb/roles/intel-xhci-usb-role-switch.c data->role_sw = usb_role_switch_register(dev, &sw_desc); role_sw 183 drivers/usb/roles/intel-xhci-usb-role-switch.c if (IS_ERR(data->role_sw)) { role_sw 185 drivers/usb/roles/intel-xhci-usb-role-switch.c return PTR_ERR(data->role_sw); role_sw 200 drivers/usb/roles/intel-xhci-usb-role-switch.c usb_role_switch_unregister(data->role_sw); role_sw 204 drivers/usb/typec/tcpm/tcpm.c struct usb_role_switch *role_sw; role_sw 669 drivers/usb/typec/tcpm/tcpm.c if (port->role_sw) { role_sw 670 drivers/usb/typec/tcpm/tcpm.c ret = usb_role_switch_set_role(port->role_sw, usb_role); role_sw 4810 drivers/usb/typec/tcpm/tcpm.c port->role_sw = usb_role_switch_get(port->dev); role_sw 4811 drivers/usb/typec/tcpm/tcpm.c if (IS_ERR(port->role_sw)) { role_sw 4812 drivers/usb/typec/tcpm/tcpm.c err = PTR_ERR(port->role_sw); role_sw 4857 drivers/usb/typec/tcpm/tcpm.c usb_role_switch_put(port->role_sw); role_sw 4873 drivers/usb/typec/tcpm/tcpm.c usb_role_switch_put(port->role_sw);