static void vmxnet3_fill_stats(VMXNET3State *s)

{

    int i;



    if (!s->device_active)

        return;



    for (i = 0; i < s->txq_num; i++) {

        pci_dma_write(PCI_DEVICE(s),

                      s->txq_descr[i].tx_stats_pa,

                      &s->txq_descr[i].txq_stats,

                      sizeof(s->txq_descr[i].txq_stats));

    }



    for (i = 0; i < s->rxq_num; i++) {

        pci_dma_write(PCI_DEVICE(s),

                      s->rxq_descr[i].rx_stats_pa,

                      &s->rxq_descr[i].rxq_stats,

                      sizeof(s->rxq_descr[i].rxq_stats));

    }

}

static void vmxnet3_fill_stats(VMXNET3State *s)

{

    int i;



    if (!s->device_active)

        return;



    for (i = 0; i < s->txq_num; i++) {

        pci_dma_write(PCI_DEVICE(s),

                      s->txq_descr[i].tx_stats_pa,

                      &s->txq_descr[i].txq_stats,

                      sizeof(s->txq_descr[i].txq_stats));

    }



    for (i = 0; i < s->rxq_num; i++) {

        pci_dma_write(PCI_DEVICE(s),

                      s->rxq_descr[i].rx_stats_pa,

                      &s->rxq_descr[i].rxq_stats,

                      sizeof(s->rxq_descr[i].rxq_stats));

    }

}

        pci_dma_write(PCI_DEVICE(s),         pci_dma_write(PCI_DEVICE(s),
static void FUNC_0(VMXNET3State *VAR_0)

{

    int VAR_1;



    if (!VAR_0->device_active)

        return;



    for (VAR_1 = 0; VAR_1 < VAR_0->txq_num; VAR_1++) {

        pci_dma_write(PCI_DEVICE(VAR_0),

                      VAR_0->txq_descr[VAR_1].tx_stats_pa,

                      &VAR_0->txq_descr[VAR_1].txq_stats,

                      sizeof(VAR_0->txq_descr[VAR_1].txq_stats));

    }



    for (VAR_1 = 0; VAR_1 < VAR_0->rxq_num; VAR_1++) {

        pci_dma_write(PCI_DEVICE(VAR_0),

                      VAR_0->rxq_descr[VAR_1].rx_stats_pa,

                      &VAR_0->rxq_descr[VAR_1].rxq_stats,

                      sizeof(VAR_0->rxq_descr[VAR_1].rxq_stats));

    }

}

static void FUNC_0(VMXNET3State *VAR_0)
{ int VAR_1; if (!VAR_0->device_active)
return; for (VAR_1 = 0; VAR_1 < VAR_0->txq_num; VAR_1++) { pci_dma_write(PCI_DEVICE(VAR_0),
VAR_0->txq_descr[VAR_1].tx_stats_pa,
&VAR_0->txq_descr[VAR_1].txq_stats,
sizeof(VAR_0->txq_descr[VAR_1].txq_stats)); } for (VAR_1 = 0; VAR_1 < VAR_0->rxq_num; VAR_1++) { pci_dma_write(PCI_DEVICE(VAR_0),
VAR_0->rxq_descr[VAR_1].rx_stats_pa,
&VAR_0->rxq_descr[VAR_1].rxq_stats,
sizeof(VAR_0->rxq_descr[VAR_1].rxq_stats)); } }