Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_stats.c1120 struct net_device_stats *nstats = &bp->dev->stats; in bnx2x_net_stats_update() local
1124 nstats->rx_packets = in bnx2x_net_stats_update()
1129 nstats->tx_packets = in bnx2x_net_stats_update()
1134 nstats->rx_bytes = bnx2x_hilo(&estats->total_bytes_received_hi); in bnx2x_net_stats_update()
1136 nstats->tx_bytes = bnx2x_hilo(&estats->total_bytes_transmitted_hi); in bnx2x_net_stats_update()
1144 nstats->rx_dropped = tmp + bp->net_stats_old.rx_dropped; in bnx2x_net_stats_update()
1146 nstats->tx_dropped = 0; in bnx2x_net_stats_update()
1148 nstats->multicast = in bnx2x_net_stats_update()
1151 nstats->collisions = in bnx2x_net_stats_update()
1154 nstats->rx_length_errors = in bnx2x_net_stats_update()
[all …]
/linux-5.19.10/drivers/net/ethernet/renesas/
Dravb_main.c2080 struct net_device_stats *nstats, *stats0, *stats1; in ravb_get_stats() local
2082 nstats = &ndev->stats; in ravb_get_stats()
2086 nstats->tx_dropped += ravb_read(ndev, TROCR); in ravb_get_stats()
2091 nstats->collisions += ravb_read(ndev, CXR41); in ravb_get_stats()
2093 nstats->tx_carrier_errors += ravb_read(ndev, CXR42); in ravb_get_stats()
2097 nstats->rx_packets = stats0->rx_packets; in ravb_get_stats()
2098 nstats->tx_packets = stats0->tx_packets; in ravb_get_stats()
2099 nstats->rx_bytes = stats0->rx_bytes; in ravb_get_stats()
2100 nstats->tx_bytes = stats0->tx_bytes; in ravb_get_stats()
2101 nstats->multicast = stats0->multicast; in ravb_get_stats()
[all …]
/linux-5.19.10/drivers/net/phy/mscc/
Dmscc_main.c127 return priv->nstats; in vsc85xx_get_sset_count()
138 for (i = 0; i < priv->nstats; i++) in vsc85xx_get_strings()
168 for (i = 0; i < priv->nstats; i++) in vsc85xx_get_stats()
2212 vsc8531->nstats = ARRAY_SIZE(vsc85xx_hw_stats); in vsc8514_probe()
2213 vsc8531->stats = devm_kcalloc(&phydev->mdio.dev, vsc8531->nstats, in vsc8514_probe()
2241 vsc8531->nstats = ARRAY_SIZE(vsc8584_hw_stats); in vsc8574_probe()
2242 vsc8531->stats = devm_kcalloc(&phydev->mdio.dev, vsc8531->nstats, in vsc8574_probe()
2276 vsc8531->nstats = ARRAY_SIZE(vsc8584_hw_stats); in vsc8584_probe()
2277 vsc8531->stats = devm_kcalloc(&phydev->mdio.dev, vsc8531->nstats, in vsc8584_probe()
2316 vsc8531->nstats = ARRAY_SIZE(vsc85xx_hw_stats); in vsc85xx_probe()
[all …]
Dmscc.h369 int nstats; member
/linux-5.19.10/drivers/staging/ks7010/
Dks_hostif.c349 priv->nstats.rx_errors++; in hostif_data_indication_wpa()
425 priv->nstats.rx_errors++; in hostif_data_indication()
438 priv->nstats.rx_errors++; in hostif_data_indication()
460 priv->nstats.rx_dropped++; in hostif_data_indication()
480 priv->nstats.rx_dropped++; in hostif_data_indication()
501 priv->nstats.rx_errors++; in hostif_data_indication()
512 priv->nstats.rx_packets++; in hostif_data_indication()
513 priv->nstats.rx_bytes += rx_ind_size; in hostif_data_indication()
Dks_wlan.h441 struct net_device_stats nstats; member
Dks7010_sdio.c938 memset(&priv->nstats, 0, sizeof(priv->nstats)); in ks7010_private_init()
Dks_wlan_net.c2482 return &priv->nstats; in ks_wlan_get_stats()
2511 priv->nstats.tx_errors++; in ks_wlan_tx_timeout()
2546 priv->nstats.tx_packets++; in send_packet_complete()
2552 priv->nstats.tx_bytes += skb->len; in send_packet_complete()
/linux-5.19.10/drivers/scsi/csiostor/
Dcsio_mb.h51 uint8_t nstats; member
Dcsio_mb.c1042 cmdp->u.ctl.nstats_port = FW_FCOE_STATS_CMD_NSTATS(portparams->nstats) | in csio_fcoe_read_portparams_init_mb()
1069 memcpy(dst, src, (portparams->nstats * 8)); in csio_mb_process_portparams_rsp()
Dcsio_lnode.c1403 portparams.nstats = 6; in csio_get_phy_port_stats()
1405 portparams.nstats = 4; in csio_get_phy_port_stats()
/linux-5.19.10/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_hw.c1779 unsigned int nstats = min(6U, rem); in t4vf_get_port_stats() local
1794 FW_VI_STATS_CMD_NSTATS_V(nstats)); in t4vf_get_port_stats()
1799 memcpy(fwsp, &rpl.u.ctl.stat0, sizeof(__be64) * nstats); in t4vf_get_port_stats()
1801 rem -= nstats; in t4vf_get_port_stats()
1802 fwsp += nstats; in t4vf_get_port_stats()
/linux-5.19.10/drivers/net/ethernet/fungible/funeth/
Dfuneth_main.c1477 unsigned int nstats; in fun_init_stats_area() local
1482 nstats = PORT_MAC_RX_STATS_MAX + PORT_MAC_TX_STATS_MAX + in fun_init_stats_area()
1485 fp->stats = dma_alloc_coherent(&fp->pdev->dev, nstats * sizeof(u64), in fun_init_stats_area()
1494 unsigned int nstats; in fun_free_stats_area() local
1497 nstats = PORT_MAC_RX_STATS_MAX + PORT_MAC_TX_STATS_MAX; in fun_free_stats_area()
1498 dma_free_coherent(&fp->pdev->dev, nstats * sizeof(u64), in fun_free_stats_area()