pvscsi_update_irq_status(PVSCSIState *s)

{

    PCIDevice *d = PCI_DEVICE(s);

    bool should_raise = s->reg_interrupt_enabled & s->reg_interrupt_status;



    trace_pvscsi_update_irq_level(should_raise, s->reg_interrupt_enabled,

                                  s->reg_interrupt_status);



    if (s->msi_used && msi_enabled(d)) {

        if (should_raise) {

            trace_pvscsi_update_irq_msi();

            msi_notify(d, PVSCSI_VECTOR_COMPLETION);

        }

        return;

    }



    pci_set_irq(d, !!should_raise);

}

pvscsi_update_irq_status(PVSCSIState *s)

{

    PCIDevice *d = PCI_DEVICE(s);

    bool should_raise = s->reg_interrupt_enabled & s->reg_interrupt_status;



    trace_pvscsi_update_irq_level(should_raise, s->reg_interrupt_enabled,

                                  s->reg_interrupt_status);



    if (s->msi_used && msi_enabled(d)) {

        if (should_raise) {

            trace_pvscsi_update_irq_msi();

            msi_notify(d, PVSCSI_VECTOR_COMPLETION);

        }

        return;

    }



    pci_set_irq(d, !!should_raise);

}

FUNC_0(PVSCSIState *VAR_0)

{

    PCIDevice *d = PCI_DEVICE(VAR_0);

    bool should_raise = VAR_0->reg_interrupt_enabled & VAR_0->reg_interrupt_status;



    trace_pvscsi_update_irq_level(should_raise, VAR_0->reg_interrupt_enabled,

                                  VAR_0->reg_interrupt_status);



    if (VAR_0->msi_used && msi_enabled(d)) {

        if (should_raise) {

            trace_pvscsi_update_irq_msi();

            msi_notify(d, PVSCSI_VECTOR_COMPLETION);

        }

        return;

    }



    pci_set_irq(d, !!should_raise);

}

FUNC_0(PVSCSIState *VAR_0)
{ PCIDevice *d = PCI_DEVICE(VAR_0); bool should_raise = VAR_0->reg_interrupt_enabled & VAR_0->reg_interrupt_status; trace_pvscsi_update_irq_level(should_raise, VAR_0->reg_interrupt_enabled,
VAR_0->reg_interrupt_status); if (VAR_0->msi_used && msi_enabled(d)) { if (should_raise) { trace_pvscsi_update_irq_msi(); msi_notify(d, PVSCSI_VECTOR_COMPLETION); } return; } pci_set_irq(d, !!should_raise); }