Home
last modified time | relevance | path

Searched refs:nstats (Results 1 – 8 of 8) sorted by relevance

/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_stats.c1117 struct net_device_stats *nstats = &bp->dev->stats; in bnx2x_net_stats_update() local
1121 nstats->rx_packets = in bnx2x_net_stats_update()
1126 nstats->tx_packets = in bnx2x_net_stats_update()
1131 nstats->rx_bytes = bnx2x_hilo(&estats->total_bytes_received_hi); in bnx2x_net_stats_update()
1133 nstats->tx_bytes = bnx2x_hilo(&estats->total_bytes_transmitted_hi); in bnx2x_net_stats_update()
1141 nstats->rx_dropped = tmp + bp->net_stats_old.rx_dropped; in bnx2x_net_stats_update()
1143 nstats->tx_dropped = 0; in bnx2x_net_stats_update()
1145 nstats->multicast = in bnx2x_net_stats_update()
1148 nstats->collisions = in bnx2x_net_stats_update()
1151 nstats->rx_length_errors = in bnx2x_net_stats_update()
[all …]
/drivers/net/ethernet/renesas/
Dravb_main.c1462 struct net_device_stats *nstats, *stats0, *stats1; in ravb_get_stats() local
1464 nstats = &ndev->stats; in ravb_get_stats()
1468 nstats->tx_dropped += ravb_read(ndev, TROCR); in ravb_get_stats()
1470 nstats->collisions += ravb_read(ndev, CDCR); in ravb_get_stats()
1472 nstats->tx_carrier_errors += ravb_read(ndev, LCCR); in ravb_get_stats()
1475 nstats->tx_carrier_errors += ravb_read(ndev, CERCR); in ravb_get_stats()
1477 nstats->tx_carrier_errors += ravb_read(ndev, CEECR); in ravb_get_stats()
1480 nstats->rx_packets = stats0->rx_packets + stats1->rx_packets; in ravb_get_stats()
1481 nstats->tx_packets = stats0->tx_packets + stats1->tx_packets; in ravb_get_stats()
1482 nstats->rx_bytes = stats0->rx_bytes + stats1->rx_bytes; in ravb_get_stats()
[all …]
/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_hw.c1368 unsigned int nstats = min(6U, rem); in t4vf_get_port_stats() local
1383 FW_VI_STATS_CMD_NSTATS_V(nstats)); in t4vf_get_port_stats()
1388 memcpy(fwsp, &rpl.u.ctl.stat0, sizeof(__be64) * nstats); in t4vf_get_port_stats()
1390 rem -= nstats; in t4vf_get_port_stats()
1391 fwsp += nstats; in t4vf_get_port_stats()
/drivers/scsi/csiostor/
Dcsio_mb.h51 uint8_t nstats; member
Dcsio_mb.c1038 cmdp->u.ctl.nstats_port = FW_FCOE_STATS_CMD_NSTATS(portparams->nstats) | in csio_fcoe_read_portparams_init_mb()
1065 memcpy(dst, src, (portparams->nstats * 8)); in csio_mb_process_portparams_rsp()
Dcsio_lnode.c1396 portparams.nstats = 6; in csio_get_phy_port_stats()
1398 portparams.nstats = 4; in csio_get_phy_port_stats()
/drivers/net/ethernet/ibm/emac/
Dcore.h264 struct net_device_stats nstats; member
Dcore.c1922 struct net_device_stats *nst = &dev->nstats; in emac_stats()