Lines Matching defs:nic_stats
1504 struct cp_dma_stats *nic_stats;
1508 nic_stats = dma_alloc_coherent(&cp->pdev->dev, sizeof(*nic_stats),
1510 if (!nic_stats)
1528 tmp_stats[i++] = le64_to_cpu(nic_stats->tx_ok);
1529 tmp_stats[i++] = le64_to_cpu(nic_stats->rx_ok);
1530 tmp_stats[i++] = le64_to_cpu(nic_stats->tx_err);
1531 tmp_stats[i++] = le32_to_cpu(nic_stats->rx_err);
1532 tmp_stats[i++] = le16_to_cpu(nic_stats->rx_fifo);
1533 tmp_stats[i++] = le16_to_cpu(nic_stats->frame_align);
1534 tmp_stats[i++] = le32_to_cpu(nic_stats->tx_ok_1col);
1535 tmp_stats[i++] = le32_to_cpu(nic_stats->tx_ok_mcol);
1536 tmp_stats[i++] = le64_to_cpu(nic_stats->rx_ok_phys);
1537 tmp_stats[i++] = le64_to_cpu(nic_stats->rx_ok_bcast);
1538 tmp_stats[i++] = le32_to_cpu(nic_stats->rx_ok_mcast);
1539 tmp_stats[i++] = le16_to_cpu(nic_stats->tx_abort);
1540 tmp_stats[i++] = le16_to_cpu(nic_stats->tx_underrun);
1544 dma_free_coherent(&cp->pdev->dev, sizeof(*nic_stats), nic_stats, dma);