Home
last modified time | relevance | path

Searched refs:hw_stats (Results 1 – 25 of 69) sorted by relevance

123

/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_xgmac.c301 struct mac_hw_stats *hw_stats = &drv->mac_cb->hw_stats; in hns_xgmac_update_stats() local
304 hw_stats->tx_fragment_err in hns_xgmac_update_stats()
306 hw_stats->tx_undersize in hns_xgmac_update_stats()
308 hw_stats->tx_under_min_pkts in hns_xgmac_update_stats()
310 hw_stats->tx_64bytes = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_64OCTETS); in hns_xgmac_update_stats()
311 hw_stats->tx_65to127 in hns_xgmac_update_stats()
313 hw_stats->tx_128to255 in hns_xgmac_update_stats()
315 hw_stats->tx_256to511 in hns_xgmac_update_stats()
317 hw_stats->tx_512to1023 in hns_xgmac_update_stats()
319 hw_stats->tx_1024to1518 in hns_xgmac_update_stats()
[all …]
Dhns_dsaf_gmac.c364 struct mac_hw_stats *hw_stats = NULL; in hns_gmac_update_stats() local
367 hw_stats = &drv->mac_cb->hw_stats; in hns_gmac_update_stats()
370 hw_stats->rx_good_bytes in hns_gmac_update_stats()
372 hw_stats->rx_bad_bytes in hns_gmac_update_stats()
374 hw_stats->rx_uc_pkts += dsaf_read_dev(drv, GMAC_RX_UC_PKTS_REG); in hns_gmac_update_stats()
375 hw_stats->rx_mc_pkts += dsaf_read_dev(drv, GMAC_RX_MC_PKTS_REG); in hns_gmac_update_stats()
376 hw_stats->rx_bc_pkts += dsaf_read_dev(drv, GMAC_RX_BC_PKTS_REG); in hns_gmac_update_stats()
377 hw_stats->rx_64bytes in hns_gmac_update_stats()
379 hw_stats->rx_65to127 in hns_gmac_update_stats()
381 hw_stats->rx_128to255 in hns_gmac_update_stats()
[all …]
Dhns_dsaf_ppe.c416 struct hns_ppe_hw_stats *hw_stats = &ppe_cb->hw_stats; in hns_ppe_update_stats() local
418 hw_stats->rx_pkts_from_sw in hns_ppe_update_stats()
420 hw_stats->rx_pkts in hns_ppe_update_stats()
422 hw_stats->rx_drop_no_bd in hns_ppe_update_stats()
424 hw_stats->rx_alloc_buf_fail in hns_ppe_update_stats()
426 hw_stats->rx_alloc_buf_wait in hns_ppe_update_stats()
428 hw_stats->rx_drop_no_buf in hns_ppe_update_stats()
430 hw_stats->rx_err_fifo_full in hns_ppe_update_stats()
433 hw_stats->tx_bd_form_rcb in hns_ppe_update_stats()
435 hw_stats->tx_pkts_from_rcb in hns_ppe_update_stats()
[all …]
Dhns_ae_adapt.c655 rx_missed_errors = ppe_cb->hw_stats.rx_drop_no_buf; in hns_ae_update_stats()
656 tx_errors += ppe_cb->hw_stats.tx_err_checksum in hns_ae_update_stats()
657 + ppe_cb->hw_stats.tx_err_fifo_empty; in hns_ae_update_stats()
662 rx_missed_errors += dsaf_dev->hw_stats[port].bp_drop; in hns_ae_update_stats()
663 rx_missed_errors += dsaf_dev->hw_stats[port].pad_drop; in hns_ae_update_stats()
664 rx_missed_errors += dsaf_dev->hw_stats[port].crc_false; in hns_ae_update_stats()
669 tx_dropped += dsaf_dev->hw_stats[port].bp_drop; in hns_ae_update_stats()
670 tx_dropped += dsaf_dev->hw_stats[port].pad_drop; in hns_ae_update_stats()
671 tx_dropped += dsaf_dev->hw_stats[port].crc_false; in hns_ae_update_stats()
672 tx_dropped += dsaf_dev->hw_stats[port].rslt_drop; in hns_ae_update_stats()
[all …]
Dhns_dsaf_rcb.c825 struct hns_ring_hw_stats *hw_stats = &ring->hw_stats; in hns_rcb_update_stats() local
827 hw_stats->rx_pkts += dsaf_read_dev(queue, in hns_rcb_update_stats()
831 hw_stats->ppe_rx_ok_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats()
833 hw_stats->ppe_rx_drop_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats()
836 hw_stats->tx_pkts += dsaf_read_dev(queue, in hns_rcb_update_stats()
840 hw_stats->ppe_tx_ok_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats()
842 hw_stats->ppe_tx_drop_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats()
856 struct hns_ring_hw_stats *hw_stats = &ring->hw_stats; in hns_rcb_get_stats() local
858 regs_buff[0] = hw_stats->tx_pkts; in hns_rcb_get_stats()
859 regs_buff[1] = hw_stats->ppe_tx_ok_pkts; in hns_rcb_get_stats()
[all …]
Dhns_dsaf_main.c2205 struct dsaf_hw_stats *hw_stats in hns_dsaf_update_stats() local
2206 = &dsaf_dev->hw_stats[node_num]; in hns_dsaf_update_stats()
2211 hw_stats->pad_drop += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats()
2213 hw_stats->man_pkts += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats()
2215 hw_stats->rx_pkts += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats()
2217 hw_stats->rx_pkt_id += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats()
2222 hw_stats->rx_pause_frame += in hns_dsaf_update_stats()
2225 hw_stats->release_buf_num += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats()
2227 hw_stats->sbm_drop += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats()
2229 hw_stats->crc_false += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats()
[all …]
Dhns_dsaf_ppe.h76 struct hns_ppe_hw_stats hw_stats; member
Dhns_dsaf_mac.c1236 txpkts = mac_cb->txpkt_for_led - mac_cb->hw_stats.tx_good_pkts; in hns_set_led_opt()
1237 rxpkts = mac_cb->rxpkt_for_led - mac_cb->hw_stats.rx_good_pkts; in hns_set_led_opt()
1242 mac_cb->txpkt_for_led = mac_cb->hw_stats.tx_good_pkts; in hns_set_led_opt()
1243 mac_cb->rxpkt_for_led = mac_cb->hw_stats.rx_good_pkts; in hns_set_led_opt()
Dhns_dsaf_rcb.h97 struct hns_ring_hw_stats hw_stats; member
/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c691 struct mtk_hw_stats *hw_stats = mac->hw_stats; in mtk_stats_update_mac() local
694 u64_stats_update_begin(&hw_stats->syncp); in mtk_stats_update_mac()
697 hw_stats->tx_packets += mtk_r32(mac->hw, MT7628_SDM_TPCNT); in mtk_stats_update_mac()
698 hw_stats->tx_bytes += mtk_r32(mac->hw, MT7628_SDM_TBCNT); in mtk_stats_update_mac()
699 hw_stats->rx_packets += mtk_r32(mac->hw, MT7628_SDM_RPCNT); in mtk_stats_update_mac()
700 hw_stats->rx_bytes += mtk_r32(mac->hw, MT7628_SDM_RBCNT); in mtk_stats_update_mac()
701 hw_stats->rx_checksum_errors += in mtk_stats_update_mac()
704 unsigned int offs = hw_stats->reg_offset; in mtk_stats_update_mac()
707 hw_stats->rx_bytes += mtk_r32(mac->hw, in mtk_stats_update_mac()
711 hw_stats->rx_bytes += (stats << 32); in mtk_stats_update_mac()
[all …]
/drivers/net/ethernet/atheros/alx/
Dmain.c1655 struct alx_hw_stats *hw_stats = &alx->hw.stats; in alx_get_stats64() local
1661 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in alx_get_stats64()
1662 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in alx_get_stats64()
1663 net_stats->multicast = hw_stats->rx_mcast; in alx_get_stats64()
1664 net_stats->collisions = hw_stats->tx_single_col + in alx_get_stats64()
1665 hw_stats->tx_multi_col + in alx_get_stats64()
1666 hw_stats->tx_late_col + in alx_get_stats64()
1667 hw_stats->tx_abort_col; in alx_get_stats64()
1669 net_stats->rx_errors = hw_stats->rx_frag + in alx_get_stats64()
1670 hw_stats->rx_fcs_err + in alx_get_stats64()
[all …]
/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c1158 struct atl1e_hw_stats *hw_stats = &adapter->hw_stats; in atl1e_get_stats() local
1161 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in atl1e_get_stats()
1162 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in atl1e_get_stats()
1163 net_stats->multicast = hw_stats->rx_mcast; in atl1e_get_stats()
1164 net_stats->collisions = hw_stats->tx_1_col + in atl1e_get_stats()
1165 hw_stats->tx_2_col + in atl1e_get_stats()
1166 hw_stats->tx_late_col + in atl1e_get_stats()
1167 hw_stats->tx_abort_col; in atl1e_get_stats()
1169 net_stats->rx_errors = hw_stats->rx_frag + in atl1e_get_stats()
1170 hw_stats->rx_fcs_err + in atl1e_get_stats()
[all …]
/drivers/net/ethernet/atheros/atl1c/
Datl1c_main.c1519 stats_item = &adapter->hw_stats.rx_ok; in atl1c_update_hw_stats()
1528 stats_item = &adapter->hw_stats.tx_ok; in atl1c_update_hw_stats()
1547 struct atl1c_hw_stats *hw_stats = &adapter->hw_stats; in atl1c_get_stats() local
1551 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in atl1c_get_stats()
1552 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in atl1c_get_stats()
1553 net_stats->multicast = hw_stats->rx_mcast; in atl1c_get_stats()
1554 net_stats->collisions = hw_stats->tx_1_col + in atl1c_get_stats()
1555 hw_stats->tx_2_col + in atl1c_get_stats()
1556 hw_stats->tx_late_col + in atl1c_get_stats()
1557 hw_stats->tx_abort_col; in atl1c_get_stats()
[all …]
/drivers/net/ethernet/ti/
Dam65-cpsw-ethtool.c644 const struct am65_cpsw_ethtool_stat *hw_stats; in am65_cpsw_get_strings() local
651 hw_stats = am65_host_stats; in am65_cpsw_get_strings()
653 memcpy(p, hw_stats[i].desc, ETH_GSTRING_LEN); in am65_cpsw_get_strings()
658 hw_stats = am65_slave_stats; in am65_cpsw_get_strings()
660 memcpy(p, hw_stats[i].desc, ETH_GSTRING_LEN); in am65_cpsw_get_strings()
680 const struct am65_cpsw_ethtool_stat *hw_stats; in am65_cpsw_get_ethtool_stats() local
688 hw_stats = am65_host_stats; in am65_cpsw_get_ethtool_stats()
691 hw_stats[i].offset); in am65_cpsw_get_ethtool_stats()
694 hw_stats = am65_slave_stats; in am65_cpsw_get_ethtool_stats()
697 hw_stats[i].offset); in am65_cpsw_get_ethtool_stats()
/drivers/net/ethernet/neterion/vxge/
Dvxge-config.c1511 struct vxge_hw_vpath_stats_hw_info *hw_stats) in __vxge_hw_vpath_stats_get() argument
1524 hw_stats->ini_num_mwr_sent = in __vxge_hw_vpath_stats_get()
1528 hw_stats->ini_num_mrd_sent = in __vxge_hw_vpath_stats_get()
1532 hw_stats->ini_num_cpl_rcvd = in __vxge_hw_vpath_stats_get()
1536 hw_stats->ini_num_mwr_byte_sent = in __vxge_hw_vpath_stats_get()
1540 hw_stats->ini_num_cpl_byte_rcvd = in __vxge_hw_vpath_stats_get()
1544 hw_stats->wrcrdtarb_xoff = in __vxge_hw_vpath_stats_get()
1548 hw_stats->rdcrdtarb_xoff = in __vxge_hw_vpath_stats_get()
1552 hw_stats->vpath_genstats_count0 = in __vxge_hw_vpath_stats_get()
1557 hw_stats->vpath_genstats_count1 = in __vxge_hw_vpath_stats_get()
[all …]
Dvxge-ethtool.c240 struct vxge_hw_device_stats_hw_info *hw_stats; in vxge_get_ethtool_stats() local
265 hw_stats = kzalloc(sizeof(struct vxge_hw_device_stats_hw_info), in vxge_get_ethtool_stats()
267 if (hw_stats == NULL) { in vxge_get_ethtool_stats()
292 status = vxge_hw_device_stats_get(hldev, hw_stats); in vxge_get_ethtool_stats()
303 vpath_info = hw_stats->vpath_info[j]; in vxge_get_ethtool_stats()
537 vpath_info = hw_stats->vpath_info[j]; in vxge_get_ethtool_stats()
597 kfree(hw_stats); in vxge_get_ethtool_stats()
/drivers/net/ethernet/intel/fm10k/
Dfm10k_iov.c681 struct fm10k_hw_stats_q *hw_stats; in fm10k_ndo_get_vf_stats() local
689 hw_stats = iov_data->vf_info[vf_idx].stats; in fm10k_ndo_get_vf_stats()
692 stats->rx_packets += hw_stats[idx].rx_packets.count; in fm10k_ndo_get_vf_stats()
693 stats->tx_packets += hw_stats[idx].tx_packets.count; in fm10k_ndo_get_vf_stats()
694 stats->rx_bytes += hw_stats[idx].rx_bytes.count; in fm10k_ndo_get_vf_stats()
695 stats->tx_bytes += hw_stats[idx].tx_bytes.count; in fm10k_ndo_get_vf_stats()
696 stats->rx_dropped += hw_stats[idx].rx_drops.count; in fm10k_ndo_get_vf_stats()
/drivers/net/ethernet/
Ddnet.c342 u32 *p = &bp->hw_stats.rx_pkt_ignr; in dnet_update_stats()
343 u32 *end = &bp->hw_stats.rx_byte + 1; in dnet_update_stats()
352 p = &bp->hw_stats.tx_unicast; in dnet_update_stats()
353 end = &bp->hw_stats.tx_byte + 1; in dnet_update_stats()
693 struct dnet_stats *hwstat = &bp->hw_stats; in dnet_get_stats()
Ddnet.h209 struct dnet_stats hw_stats; member
/drivers/net/ethernet/emulex/benet/
Dbe_main.c386 return &cmd->hw_stats; in hw_stats_from_cmd()
390 return &cmd->hw_stats; in hw_stats_from_cmd()
394 return &cmd->hw_stats; in hw_stats_from_cmd()
402 struct be_hw_stats_v0 *hw_stats = hw_stats_from_cmd(adapter); in be_erx_stats_from_cmd() local
404 return &hw_stats->erx; in be_erx_stats_from_cmd()
406 struct be_hw_stats_v1 *hw_stats = hw_stats_from_cmd(adapter); in be_erx_stats_from_cmd() local
408 return &hw_stats->erx; in be_erx_stats_from_cmd()
410 struct be_hw_stats_v2 *hw_stats = hw_stats_from_cmd(adapter); in be_erx_stats_from_cmd() local
412 return &hw_stats->erx; in be_erx_stats_from_cmd()
418 struct be_hw_stats_v0 *hw_stats = hw_stats_from_cmd(adapter); in populate_be_v0_stats() local
[all …]
/drivers/net/ethernet/cavium/thunder/
Dnicvf_main.c1661 struct nicvf_hw_stats *stats = &nic->hw_stats; in nicvf_update_stats()
1724 struct nicvf_hw_stats *hw_stats = &nic->hw_stats; in nicvf_get_stats64() local
1728 stats->rx_bytes = hw_stats->rx_bytes; in nicvf_get_stats64()
1729 stats->rx_packets = hw_stats->rx_frames; in nicvf_get_stats64()
1730 stats->rx_dropped = hw_stats->rx_drops; in nicvf_get_stats64()
1731 stats->multicast = hw_stats->rx_mcast_frames; in nicvf_get_stats64()
1733 stats->tx_bytes = hw_stats->tx_bytes; in nicvf_get_stats64()
1734 stats->tx_packets = hw_stats->tx_frames; in nicvf_get_stats64()
1735 stats->tx_dropped = hw_stats->tx_drops; in nicvf_get_stats64()
/drivers/media/platform/sti/c8sectpfe/
Dc8sectpfe-core.c378 struct c8sectpfe_hw *hw = &fei->hw_stats; in c8sectpfe_getconfig()
411 for_each_set_bit(bit, &tmp, fei->hw_stats.num_ib) { in c8sectpfe_idle_irq_handler()
744 fei->tsin_count > fei->hw_stats.num_ib) { in c8sectpfe_probe()
782 if (tsin->tsin_id > fei->hw_stats.num_ib) { in c8sectpfe_probe()
785 tsin->tsin_id, fei->hw_stats.num_ib); in c8sectpfe_probe()
/drivers/net/ethernet/chelsio/cxgb/
Dvsc7326.c591 } hw_stats[] = { in port_stats_update() local
617 }, *p = hw_stats; in port_stats_update()
622 for (i = 0; i < ARRAY_SIZE(hw_stats); i++) in port_stats_update()
/drivers/net/phy/mscc/
Dmscc_main.c139 strlcpy(data + i * ETH_GSTRING_LEN, priv->hw_stats[i].string, in vsc85xx_get_strings()
148 val = phy_read_paged(phydev, priv->hw_stats[i].page, in vsc85xx_get_stat()
149 priv->hw_stats[i].reg); in vsc85xx_get_stat()
153 val = val & priv->hw_stats[i].mask; in vsc85xx_get_stat()
2213 vsc8531->hw_stats = vsc85xx_hw_stats; in vsc8514_probe()
2242 vsc8531->hw_stats = vsc8584_hw_stats; in vsc8574_probe()
2277 vsc8531->hw_stats = vsc8584_hw_stats; in vsc8584_probe()
2317 vsc8531->hw_stats = vsc85xx_hw_stats; in vsc85xx_probe()
/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c465 char *hw_stats = (char *)&adapter->stats; in pch_gbe_get_ethtool_stats() local
469 char *p = hw_stats + gstats->offset; in pch_gbe_get_ethtool_stats()

123