static void uhci_async_cancel_device(UHCIState *s, USBDevice *dev)

{

    UHCIQueue *queue;

    UHCIAsync *curr, *n;



    QTAILQ_FOREACH(queue, &s->queues, next) {

        QTAILQ_FOREACH_SAFE(curr, &queue->asyncs, next, n) {

            if (!usb_packet_is_inflight(&curr->packet) ||

                curr->packet.ep->dev != dev) {

                continue;

            }

            uhci_async_cancel(curr);

        }

    }

}

static void uhci_async_cancel_device(UHCIState *s, USBDevice *dev)

{

    UHCIQueue *queue;

    UHCIAsync *curr, *n;



    QTAILQ_FOREACH(queue, &s->queues, next) {

        QTAILQ_FOREACH_SAFE(curr, &queue->asyncs, next, n) {

            if (!usb_packet_is_inflight(&curr->packet) ||

                curr->packet.ep->dev != dev) {

                continue;

            }

            uhci_async_cancel(curr);

        }

    }

}

static void FUNC_0(UHCIState *VAR_0, USBDevice *VAR_1)

{

    UHCIQueue *queue;

    UHCIAsync *curr, *n;



    QTAILQ_FOREACH(queue, &VAR_0->queues, next) {

        QTAILQ_FOREACH_SAFE(curr, &queue->asyncs, next, n) {

            if (!usb_packet_is_inflight(&curr->packet) ||

                curr->packet.ep->VAR_1 != VAR_1) {

                continue;

            }

            uhci_async_cancel(curr);

        }

    }

}

static void FUNC_0(UHCIState *VAR_0, USBDevice *VAR_1)
{ UHCIQueue *queue; UHCIAsync *curr, *n; QTAILQ_FOREACH(queue, &VAR_0->queues, next) { QTAILQ_FOREACH_SAFE(curr, &queue->asyncs, next, n) { if (!usb_packet_is_inflight(&curr->packet) ||
curr->packet.ep->VAR_1 != VAR_1) { continue; } uhci_async_cancel(curr); } } }