Lines Matching refs:nic_stats
1542 struct cp_dma_stats *nic_stats; in cp_get_ethtool_stats() local
1546 nic_stats = dma_alloc_coherent(&cp->pdev->dev, sizeof(*nic_stats), in cp_get_ethtool_stats()
1548 if (!nic_stats) in cp_get_ethtool_stats()
1566 tmp_stats[i++] = le64_to_cpu(nic_stats->tx_ok); in cp_get_ethtool_stats()
1567 tmp_stats[i++] = le64_to_cpu(nic_stats->rx_ok); in cp_get_ethtool_stats()
1568 tmp_stats[i++] = le64_to_cpu(nic_stats->tx_err); in cp_get_ethtool_stats()
1569 tmp_stats[i++] = le32_to_cpu(nic_stats->rx_err); in cp_get_ethtool_stats()
1570 tmp_stats[i++] = le16_to_cpu(nic_stats->rx_fifo); in cp_get_ethtool_stats()
1571 tmp_stats[i++] = le16_to_cpu(nic_stats->frame_align); in cp_get_ethtool_stats()
1572 tmp_stats[i++] = le32_to_cpu(nic_stats->tx_ok_1col); in cp_get_ethtool_stats()
1573 tmp_stats[i++] = le32_to_cpu(nic_stats->tx_ok_mcol); in cp_get_ethtool_stats()
1574 tmp_stats[i++] = le64_to_cpu(nic_stats->rx_ok_phys); in cp_get_ethtool_stats()
1575 tmp_stats[i++] = le64_to_cpu(nic_stats->rx_ok_bcast); in cp_get_ethtool_stats()
1576 tmp_stats[i++] = le32_to_cpu(nic_stats->rx_ok_mcast); in cp_get_ethtool_stats()
1577 tmp_stats[i++] = le16_to_cpu(nic_stats->tx_abort); in cp_get_ethtool_stats()
1578 tmp_stats[i++] = le16_to_cpu(nic_stats->tx_underrun); in cp_get_ethtool_stats()
1582 dma_free_coherent(&cp->pdev->dev, sizeof(*nic_stats), nic_stats, dma); in cp_get_ethtool_stats()