static void mptsas_update_interrupt(MPTSASState *s)

{

    PCIDevice *pci = (PCIDevice *) s;

    uint32_t state = s->intr_status & ~(s->intr_mask | MPI_HIS_IOP_DOORBELL_STATUS);



    if (s->msi_in_use && msi_enabled(pci)) {

        if (state) {

            trace_mptsas_irq_msi(s);

            msi_notify(pci, 0);

        }

    }



    trace_mptsas_irq_intx(s, !!state);

    pci_set_irq(pci, !!state);

}

static void mptsas_update_interrupt(MPTSASState *s)

{

    PCIDevice *pci = (PCIDevice *) s;

    uint32_t state = s->intr_status & ~(s->intr_mask | MPI_HIS_IOP_DOORBELL_STATUS);



    if (s->msi_in_use && msi_enabled(pci)) {

        if (state) {

            trace_mptsas_irq_msi(s);

            msi_notify(pci, 0);

        }

    }



    trace_mptsas_irq_intx(s, !!state);

    pci_set_irq(pci, !!state);

}

static void FUNC_0(MPTSASState *VAR_0)

{

    PCIDevice *pci = (PCIDevice *) VAR_0;

    uint32_t state = VAR_0->intr_status & ~(VAR_0->intr_mask | MPI_HIS_IOP_DOORBELL_STATUS);



    if (VAR_0->msi_in_use && msi_enabled(pci)) {

        if (state) {

            trace_mptsas_irq_msi(VAR_0);

            msi_notify(pci, 0);

        }

    }



    trace_mptsas_irq_intx(VAR_0, !!state);

    pci_set_irq(pci, !!state);

}

static void FUNC_0(MPTSASState *VAR_0)
{ PCIDevice *pci = (PCIDevice *) VAR_0; uint32_t state = VAR_0->intr_status & ~(VAR_0->intr_mask | MPI_HIS_IOP_DOORBELL_STATUS); if (VAR_0->msi_in_use && msi_enabled(pci)) { if (state) { trace_mptsas_irq_msi(VAR_0); msi_notify(pci, 0); } } trace_mptsas_irq_intx(VAR_0, !!state); pci_set_irq(pci, !!state); }