static void ehci_queues_rip_unused(EHCIState *ehci, int async)

{

    EHCIQueueHead *head = async ? &ehci->aqueues : &ehci->pqueues;

    EHCIQueue *q, *tmp;



    QTAILQ_FOREACH_SAFE(q, head, next, tmp) {

        if (q->seen) {

            q->seen = 0;

            q->ts = ehci->last_run_ns;

            continue;

        }

        if (ehci->last_run_ns < q->ts + 250000000) {

            /* allow 0.25 sec idle */

            continue;

        }

        ehci_free_queue(q, async);

    }

}

static void ehci_queues_rip_unused(EHCIState *ehci, int async)

{

    EHCIQueueHead *head = async ? &ehci->aqueues : &ehci->pqueues;

    EHCIQueue *q, *tmp;



    QTAILQ_FOREACH_SAFE(q, head, next, tmp) {

        if (q->seen) {

            q->seen = 0;

            q->ts = ehci->last_run_ns;

            continue;

        }

        if (ehci->last_run_ns < q->ts + 250000000) {

            

            continue;

        }

        ehci_free_queue(q, async);

    }

}

static void ehci_queues_rip_unused(EHCIState *ehci, int async)         if (ehci->last_run_ns < q->ts + 250000000) {
static void FUNC_0(EHCIState *VAR_0, int VAR_1)

{

    EHCIQueueHead *head = VAR_1 ? &VAR_0->aqueues : &VAR_0->pqueues;

    EHCIQueue *q, *tmp;



    QTAILQ_FOREACH_SAFE(q, head, next, tmp) {

        if (q->seen) {

            q->seen = 0;

            q->ts = VAR_0->last_run_ns;

            continue;

        }

        if (VAR_0->last_run_ns < q->ts + 250000000) {

            

            continue;

        }

        ehci_free_queue(q, VAR_1);

    }

}

static void FUNC_0(EHCIState *VAR_0, int VAR_1)
{ EHCIQueueHead *head = VAR_1 ? &VAR_0->aqueues : &VAR_0->pqueues; EHCIQueue *q, *tmp; QTAILQ_FOREACH_SAFE(q, head, next, tmp) { if (q->seen) { q->seen = 0; q->ts = VAR_0->last_run_ns; continue; } if (VAR_0->last_run_ns < q->ts + 250000000) { continue; } ehci_free_queue(q, VAR_1); } }