e1000e_init_msix(E1000EState *s)

{

    PCIDevice *d = PCI_DEVICE(s);

    int res = msix_init(PCI_DEVICE(s), E1000E_MSIX_VEC_NUM,

                        &s->msix,

                        E1000E_MSIX_IDX, E1000E_MSIX_TABLE,

                        &s->msix,

                        E1000E_MSIX_IDX, E1000E_MSIX_PBA,

                        0xA0);



    if (res < 0) {

        trace_e1000e_msix_init_fail(res);

    } else {

        if (!e1000e_use_msix_vectors(s, E1000E_MSIX_VEC_NUM)) {

            msix_uninit(d, &s->msix, &s->msix);

        }

    }

}

e1000e_init_msix(E1000EState *s)

{

    PCIDevice *d = PCI_DEVICE(s);

    int res = msix_init(PCI_DEVICE(s), E1000E_MSIX_VEC_NUM,

                        &s->msix,

                        E1000E_MSIX_IDX, E1000E_MSIX_TABLE,

                        &s->msix,

                        E1000E_MSIX_IDX, E1000E_MSIX_PBA,

                        0xA0);



    if (res < 0) {

        trace_e1000e_msix_init_fail(res);

    } else {

        if (!e1000e_use_msix_vectors(s, E1000E_MSIX_VEC_NUM)) {

            msix_uninit(d, &s->msix, &s->msix);

        }

    }

}

                        0xA0);
FUNC_0(E1000EState *VAR_0)

{

    PCIDevice *d = PCI_DEVICE(VAR_0);

    int VAR_1 = msix_init(PCI_DEVICE(VAR_0), E1000E_MSIX_VEC_NUM,

                        &VAR_0->msix,

                        E1000E_MSIX_IDX, E1000E_MSIX_TABLE,

                        &VAR_0->msix,

                        E1000E_MSIX_IDX, E1000E_MSIX_PBA,

                        0xA0);



    if (VAR_1 < 0) {

        trace_e1000e_msix_init_fail(VAR_1);

    } else {

        if (!e1000e_use_msix_vectors(VAR_0, E1000E_MSIX_VEC_NUM)) {

            msix_uninit(d, &VAR_0->msix, &VAR_0->msix);

        }

    }

}

FUNC_0(E1000EState *VAR_0)
{ PCIDevice *d = PCI_DEVICE(VAR_0); int VAR_1 = msix_init(PCI_DEVICE(VAR_0), E1000E_MSIX_VEC_NUM,
&VAR_0->msix,
E1000E_MSIX_IDX, E1000E_MSIX_TABLE,
&VAR_0->msix,
E1000E_MSIX_IDX, E1000E_MSIX_PBA,
0xA0); if (VAR_1 < 0) { trace_e1000e_msix_init_fail(VAR_1); } else { if (!e1000e_use_msix_vectors(VAR_0, E1000E_MSIX_VEC_NUM)) { msix_uninit(d, &VAR_0->msix, &VAR_0->msix); } } }