static void uhci_queue_free(UHCIQueue *queue)

{

    UHCIState *s = queue->uhci;

    UHCIAsync *async;



    while (!QTAILQ_EMPTY(&queue->asyncs)) {

        async = QTAILQ_FIRST(&queue->asyncs);

        uhci_async_cancel(async);

    }



    trace_usb_uhci_queue_del(queue->token);

    QTAILQ_REMOVE(&s->queues, queue, next);

    g_free(queue);

}

static void uhci_queue_free(UHCIQueue *queue)

{

    UHCIState *s = queue->uhci;

    UHCIAsync *async;



    while (!QTAILQ_EMPTY(&queue->asyncs)) {

        async = QTAILQ_FIRST(&queue->asyncs);

        uhci_async_cancel(async);

    }



    trace_usb_uhci_queue_del(queue->token);

    QTAILQ_REMOVE(&s->queues, queue, next);

    g_free(queue);

}

static void uhci_queue_free(UHCIQueue *queue)     trace_usb_uhci_queue_del(queue->token);
static void FUNC_0(UHCIQueue *VAR_0)

{

    UHCIState *s = VAR_0->uhci;

    UHCIAsync *async;



    while (!QTAILQ_EMPTY(&VAR_0->asyncs)) {

        async = QTAILQ_FIRST(&VAR_0->asyncs);

        uhci_async_cancel(async);

    }



    trace_usb_uhci_queue_del(VAR_0->token);

    QTAILQ_REMOVE(&s->queues, VAR_0, next);

    g_free(VAR_0);

}

static void FUNC_0(UHCIQueue *VAR_0)
{ UHCIState *s = VAR_0->uhci; UHCIAsync *async; while (!QTAILQ_EMPTY(&VAR_0->asyncs)) { async = QTAILQ_FIRST(&VAR_0->asyncs); uhci_async_cancel(async); } trace_usb_uhci_queue_del(VAR_0->token); QTAILQ_REMOVE(&s->queues, VAR_0, next); g_free(VAR_0); }