static void spapr_msi_setmsg(PCIDevice *pdev, hwaddr addr, bool msix,

                             unsigned first_irq, unsigned req_num)

{

    unsigned i;

    MSIMessage msg = { .address = addr, .data = first_irq };



    if (!msix) {

        msi_set_message(pdev, msg);

        trace_spapr_pci_msi_setup(pdev->name, 0, msg.address);

        return;

    }



    for (i = 0; i < req_num; ++i, ++msg.data) {

        msix_set_message(pdev, i, msg);

        trace_spapr_pci_msi_setup(pdev->name, i, msg.address);

    }

}

static void spapr_msi_setmsg(PCIDevice *pdev, hwaddr addr, bool msix,

                             unsigned first_irq, unsigned req_num)

{

    unsigned i;

    MSIMessage msg = { .address = addr, .data = first_irq };



    if (!msix) {

        msi_set_message(pdev, msg);

        trace_spapr_pci_msi_setup(pdev->name, 0, msg.address);

        return;

    }



    for (i = 0; i < req_num; ++i, ++msg.data) {

        msix_set_message(pdev, i, msg);

        trace_spapr_pci_msi_setup(pdev->name, i, msg.address);

    }

}

    for (i = 0; i < req_num; ++i, ++msg.data) {
static void FUNC_0(PCIDevice *VAR_0, hwaddr VAR_1, bool VAR_2,

                             unsigned VAR_3, unsigned VAR_4)

{

    unsigned VAR_5;

    MSIMessage msg = { .address = VAR_1, .data = VAR_3 };



    if (!VAR_2) {

        msi_set_message(VAR_0, msg);

        trace_spapr_pci_msi_setup(VAR_0->name, 0, msg.address);

        return;

    }



    for (VAR_5 = 0; VAR_5 < VAR_4; ++VAR_5, ++msg.data) {

        msix_set_message(VAR_0, VAR_5, msg);

        trace_spapr_pci_msi_setup(VAR_0->name, VAR_5, msg.address);

    }

}

static void FUNC_0(PCIDevice *VAR_0, hwaddr VAR_1, bool VAR_2,
unsigned VAR_3, unsigned VAR_4)
{ unsigned VAR_5; MSIMessage msg = { .address = VAR_1, .data = VAR_3 }; if (!VAR_2) { msi_set_message(VAR_0, msg); trace_spapr_pci_msi_setup(VAR_0->name, 0, msg.address); return; } for (VAR_5 = 0; VAR_5 < VAR_4; ++VAR_5, ++msg.data) { msix_set_message(VAR_0, VAR_5, msg); trace_spapr_pci_msi_setup(VAR_0->name, VAR_5, msg.address); } }