Home
last modified time | relevance | path

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

/drivers/staging/sbe-2t3e3/
Dnetdev.c62 struct net_device_stats *nstats = &dev->stats; in t3e3_get_stats() local
66 memset(nstats, 0, sizeof(struct net_device_stats)); in t3e3_get_stats()
67 nstats->rx_packets = stats->in_packets; in t3e3_get_stats()
68 nstats->tx_packets = stats->out_packets; in t3e3_get_stats()
69 nstats->rx_bytes = stats->in_bytes; in t3e3_get_stats()
70 nstats->tx_bytes = stats->out_bytes; in t3e3_get_stats()
72 nstats->rx_errors = stats->in_errors; in t3e3_get_stats()
73 nstats->tx_errors = stats->out_errors; in t3e3_get_stats()
74 nstats->rx_crc_errors = stats->in_error_crc; in t3e3_get_stats()
77 nstats->rx_dropped = stats->in_dropped; in t3e3_get_stats()
[all …]
/drivers/staging/cxt1e1/
Dlinux.c341 struct net_device_stats *nstats; in chan_get_stats() local
356 nstats = &ndev->stats; in chan_get_stats()
359 memset (nstats, 0, sizeof (struct net_device_stats)); in chan_get_stats()
360 nstats->rx_packets = stats->rx_packets; in chan_get_stats()
361 nstats->tx_packets = stats->tx_packets; in chan_get_stats()
362 nstats->rx_bytes = stats->rx_bytes; in chan_get_stats()
363 nstats->tx_bytes = stats->tx_bytes; in chan_get_stats()
364 nstats->rx_errors = stats->rx_length_errors + in chan_get_stats()
370 nstats->tx_errors = stats->tx_dropped + in chan_get_stats()
373 nstats->rx_dropped = stats->rx_dropped; in chan_get_stats()
[all …]
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_stats.c1128 struct net_device_stats *nstats = &bp->dev->stats; in bnx2x_net_stats_update() local
1132 nstats->rx_packets = in bnx2x_net_stats_update()
1137 nstats->tx_packets = in bnx2x_net_stats_update()
1142 nstats->rx_bytes = bnx2x_hilo(&estats->total_bytes_received_hi); in bnx2x_net_stats_update()
1144 nstats->tx_bytes = bnx2x_hilo(&estats->total_bytes_transmitted_hi); in bnx2x_net_stats_update()
1152 nstats->rx_dropped = tmp + bp->net_stats_old.rx_dropped; in bnx2x_net_stats_update()
1154 nstats->tx_dropped = 0; in bnx2x_net_stats_update()
1156 nstats->multicast = in bnx2x_net_stats_update()
1159 nstats->collisions = in bnx2x_net_stats_update()
1162 nstats->rx_length_errors = in bnx2x_net_stats_update()
[all …]
/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_hw.c1207 unsigned int nstats = min(6U, rem); in t4vf_get_port_stats() local
1222 FW_VI_STATS_CMD_NSTATS(nstats)); in t4vf_get_port_stats()
1227 memcpy(fwsp, &rpl.u.ctl.stat0, sizeof(__be64) * nstats); in t4vf_get_port_stats()
1229 rem -= nstats; in t4vf_get_port_stats()
1230 fwsp += nstats; in t4vf_get_port_stats()
/drivers/scsi/csiostor/
Dcsio_mb.h51 uint8_t nstats; member
Dcsio_mb.c1113 cmdp->u.ctl.nstats_port = FW_FCOE_STATS_CMD_NSTATS(portparams->nstats) | in csio_fcoe_read_portparams_init_mb()
1140 memcpy(dst, src, (portparams->nstats * 8)); in csio_mb_process_portparams_rsp()
Dcsio_lnode.c1386 portparams.nstats = 6; in csio_get_phy_port_stats()
1388 portparams.nstats = 4; in csio_get_phy_port_stats()
/drivers/net/ethernet/ibm/emac/
Dcore.h265 struct net_device_stats nstats; member
Dcore.c1910 struct net_device_stats *nst = &dev->nstats; in emac_stats()