void usb_wakeup(USBEndpoint *ep, unsigned int stream)

{

    USBDevice *dev = ep->dev;

    USBBus *bus = usb_bus_from_device(dev);











    if (dev->remote_wakeup && dev->port && dev->port->ops->wakeup) {

        dev->port->ops->wakeup(dev->port);


    if (bus->ops->wakeup_endpoint) {

        bus->ops->wakeup_endpoint(bus, ep, stream);


void usb_wakeup(USBEndpoint *ep, unsigned int stream)

{

    USBDevice *dev = ep->dev;

    USBBus *bus = usb_bus_from_device(dev);











    if (dev->remote_wakeup && dev->port && dev->port->ops->wakeup) {

        dev->port->ops->wakeup(dev->port);


    if (bus->ops->wakeup_endpoint) {

        bus->ops->wakeup_endpoint(bus, ep, stream);


void FUNC_0(USBEndpoint *VAR_0, unsigned int VAR_1)

{

    USBDevice *dev = VAR_0->dev;

    USBBus *bus = usb_bus_from_device(dev);











    if (dev->remote_wakeup && dev->port && dev->port->ops->wakeup) {

        dev->port->ops->wakeup(dev->port);


    if (bus->ops->wakeup_endpoint) {

        bus->ops->wakeup_endpoint(bus, VAR_0, VAR_1);


void FUNC_0(USBEndpoint *VAR_0, unsigned int VAR_1)
{ USBDevice *dev = VAR_0->dev; USBBus *bus = usb_bus_from_device(dev); if (dev->remote_wakeup && dev->port && dev->port->ops->wakeup) { dev->port->ops->wakeup(dev->port); if (bus->ops->wakeup_endpoint) { bus->ops->wakeup_endpoint(bus, VAR_0, VAR_1);