/openbmc/linux/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_dsaf_xgmac.c | 301 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 …]
|
H A D | hns_dsaf_gmac.c | 364 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 …]
|
H A D | hns_dsaf_ppe.c | 413 struct hns_ppe_hw_stats *hw_stats = &ppe_cb->hw_stats; in hns_ppe_update_stats() local 415 hw_stats->rx_pkts_from_sw in hns_ppe_update_stats() 417 hw_stats->rx_pkts in hns_ppe_update_stats() 419 hw_stats->rx_drop_no_bd in hns_ppe_update_stats() 421 hw_stats->rx_alloc_buf_fail in hns_ppe_update_stats() 423 hw_stats->rx_alloc_buf_wait in hns_ppe_update_stats() 425 hw_stats->rx_drop_no_buf in hns_ppe_update_stats() 427 hw_stats->rx_err_fifo_full in hns_ppe_update_stats() 430 hw_stats->tx_bd_form_rcb in hns_ppe_update_stats() 432 hw_stats->tx_pkts_from_rcb in hns_ppe_update_stats() [all …]
|
H A D | hns_ae_adapt.c | 654 rx_missed_errors = ppe_cb->hw_stats.rx_drop_no_buf; in hns_ae_update_stats() 655 tx_errors += ppe_cb->hw_stats.tx_err_checksum in hns_ae_update_stats() 656 + ppe_cb->hw_stats.tx_err_fifo_empty; in hns_ae_update_stats() 661 rx_missed_errors += dsaf_dev->hw_stats[port].bp_drop; in hns_ae_update_stats() 662 rx_missed_errors += dsaf_dev->hw_stats[port].pad_drop; in hns_ae_update_stats() 663 rx_missed_errors += dsaf_dev->hw_stats[port].crc_false; in hns_ae_update_stats() 668 tx_dropped += dsaf_dev->hw_stats[port].bp_drop; in hns_ae_update_stats() 669 tx_dropped += dsaf_dev->hw_stats[port].pad_drop; in hns_ae_update_stats() 670 tx_dropped += dsaf_dev->hw_stats[port].crc_false; in hns_ae_update_stats() 671 tx_dropped += dsaf_dev->hw_stats[port].rslt_drop; in hns_ae_update_stats() [all …]
|
H A D | hns_dsaf_rcb.c | 821 struct hns_ring_hw_stats *hw_stats = &ring->hw_stats; in hns_rcb_update_stats() local 823 hw_stats->rx_pkts += dsaf_read_dev(queue, in hns_rcb_update_stats() 827 hw_stats->ppe_rx_ok_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats() 829 hw_stats->ppe_rx_drop_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats() 832 hw_stats->tx_pkts += dsaf_read_dev(queue, in hns_rcb_update_stats() 836 hw_stats->ppe_tx_ok_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats() 838 hw_stats->ppe_tx_drop_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats() 852 struct hns_ring_hw_stats *hw_stats = &ring->hw_stats; in hns_rcb_get_stats() local 854 regs_buff[0] = hw_stats->tx_pkts; in hns_rcb_get_stats() 855 regs_buff[1] = hw_stats->ppe_tx_ok_pkts; in hns_rcb_get_stats() [all …]
|
H A D | hns_dsaf_main.c | 2205 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 …]
|
H A D | hns_dsaf_ppe.h | 76 struct hns_ppe_hw_stats hw_stats; member
|
/openbmc/linux/drivers/infiniband/hw/bnxt_re/ |
H A D | hw_counters.c | 304 struct ctx_hw_stats *hw_stats = NULL; in bnxt_re_ib_get_hw_stats() local 307 hw_stats = rdev->qplib_ctx.stats.dma; in bnxt_re_ib_get_hw_stats() 331 if (hw_stats) { in bnxt_re_ib_get_hw_stats() 333 le64_to_cpu(hw_stats->tx_bcast_pkts); in bnxt_re_ib_get_hw_stats() 335 le64_to_cpu(hw_stats->tx_discard_pkts); in bnxt_re_ib_get_hw_stats() 337 le64_to_cpu(hw_stats->tx_error_pkts); in bnxt_re_ib_get_hw_stats() 339 le64_to_cpu(hw_stats->rx_error_pkts); in bnxt_re_ib_get_hw_stats() 341 le64_to_cpu(hw_stats->rx_discard_pkts); in bnxt_re_ib_get_hw_stats() 343 le64_to_cpu(hw_stats->rx_ucast_pkts); in bnxt_re_ib_get_hw_stats() 345 le64_to_cpu(hw_stats->rx_ucast_bytes); in bnxt_re_ib_get_hw_stats() [all …]
|
/openbmc/linux/net/sched/ |
H A D | sch_gred.c | 357 struct tc_gred_qopt_offload *hw_stats; in gred_offload_dump_stats() local 362 hw_stats = kzalloc(sizeof(*hw_stats), GFP_KERNEL); in gred_offload_dump_stats() 363 if (!hw_stats) in gred_offload_dump_stats() 366 hw_stats->command = TC_GRED_STATS; in gred_offload_dump_stats() 367 hw_stats->handle = sch->handle; in gred_offload_dump_stats() 368 hw_stats->parent = sch->parent; in gred_offload_dump_stats() 371 gnet_stats_basic_sync_init(&hw_stats->stats.bstats[i]); in gred_offload_dump_stats() 373 hw_stats->stats.xstats[i] = &table->tab[i]->stats; in gred_offload_dump_stats() 376 ret = qdisc_offload_dump_helper(sch, TC_SETUP_QDISC_GRED, hw_stats); in gred_offload_dump_stats() 384 table->tab[i]->packetsin += u64_stats_read(&hw_stats->stats.bstats[i].packets); in gred_offload_dump_stats() [all …]
|
/openbmc/linux/drivers/net/ethernet/atheros/atl1e/ |
H A D | atl1e_main.c | 1158 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 …]
|
/openbmc/linux/drivers/net/ethernet/mediatek/ |
H A D | mtk_eth_soc.c | 965 struct mtk_hw_stats *hw_stats = mac->hw_stats; in mtk_stats_update_mac() local 968 u64_stats_update_begin(&hw_stats->syncp); in mtk_stats_update_mac() 971 hw_stats->tx_packets += mtk_r32(mac->hw, MT7628_SDM_TPCNT); in mtk_stats_update_mac() 972 hw_stats->tx_bytes += mtk_r32(mac->hw, MT7628_SDM_TBCNT); in mtk_stats_update_mac() 973 hw_stats->rx_packets += mtk_r32(mac->hw, MT7628_SDM_RPCNT); in mtk_stats_update_mac() 974 hw_stats->rx_bytes += mtk_r32(mac->hw, MT7628_SDM_RBCNT); in mtk_stats_update_mac() 975 hw_stats->rx_checksum_errors += in mtk_stats_update_mac() 979 unsigned int offs = hw_stats->reg_offset; in mtk_stats_update_mac() 982 hw_stats->rx_bytes += mtk_r32(mac->hw, reg_map->gdm1_cnt + offs); in mtk_stats_update_mac() 985 hw_stats->rx_bytes += (stats << 32); in mtk_stats_update_mac() [all …]
|
/openbmc/linux/drivers/net/ethernet/atheros/alx/ |
H A D | main.c | 1654 struct alx_hw_stats *hw_stats = &alx->hw.stats; in alx_get_stats64() local 1660 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in alx_get_stats64() 1661 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in alx_get_stats64() 1662 net_stats->multicast = hw_stats->rx_mcast; in alx_get_stats64() 1663 net_stats->collisions = hw_stats->tx_single_col + in alx_get_stats64() 1664 hw_stats->tx_multi_col + in alx_get_stats64() 1665 hw_stats->tx_late_col + in alx_get_stats64() 1666 hw_stats->tx_abort_col; in alx_get_stats64() 1668 net_stats->rx_errors = hw_stats->rx_frag + in alx_get_stats64() 1669 hw_stats->rx_fcs_err + in alx_get_stats64() [all …]
|
/openbmc/linux/drivers/net/ethernet/atheros/atl1c/ |
H A D | atl1c_main.c | 1509 stats_item = &adapter->hw_stats.rx_ok; in atl1c_update_hw_stats() 1518 stats_item = &adapter->hw_stats.tx_ok; in atl1c_update_hw_stats() 1537 struct atl1c_hw_stats *hw_stats = &adapter->hw_stats; in atl1c_get_stats() local 1541 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in atl1c_get_stats() 1542 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in atl1c_get_stats() 1543 net_stats->multicast = hw_stats->rx_mcast; in atl1c_get_stats() 1544 net_stats->collisions = hw_stats->tx_1_col + in atl1c_get_stats() 1545 hw_stats->tx_2_col + in atl1c_get_stats() 1546 hw_stats->tx_late_col + in atl1c_get_stats() 1547 hw_stats->tx_abort_col; in atl1c_get_stats() [all …]
|
/openbmc/linux/drivers/net/ethernet/ti/ |
H A D | am65-cpsw-ethtool.c | 609 const struct am65_cpsw_ethtool_stat *hw_stats; in am65_cpsw_get_strings() local 616 hw_stats = am65_host_stats; in am65_cpsw_get_strings() 618 memcpy(p, hw_stats[i].desc, ETH_GSTRING_LEN); in am65_cpsw_get_strings() 623 hw_stats = am65_slave_stats; in am65_cpsw_get_strings() 625 memcpy(p, hw_stats[i].desc, ETH_GSTRING_LEN); in am65_cpsw_get_strings() 645 const struct am65_cpsw_ethtool_stat *hw_stats; in am65_cpsw_get_ethtool_stats() local 653 hw_stats = am65_host_stats; in am65_cpsw_get_ethtool_stats() 656 hw_stats[i].offset); in am65_cpsw_get_ethtool_stats() 659 hw_stats = am65_slave_stats; in am65_cpsw_get_ethtool_stats() 662 hw_stats[i].offset); in am65_cpsw_get_ethtool_stats()
|
/openbmc/linux/include/net/ |
H A D | act_api.h | 45 u8 hw_stats; member 94 static inline enum flow_action_hw_stats tc_act_hw_stats(u8 hw_stats) in tc_act_hw_stats() argument 96 if (WARN_ON_ONCE(hw_stats > TCA_ACT_HW_STATS_ANY)) in tc_act_hw_stats() 98 else if (!hw_stats) in tc_act_hw_stats() 101 return hw_stats; in tc_act_hw_stats()
|
H A D | flow_offload.h | 239 enum flow_action_hw_stats hw_stats; member 378 if (i && action_entry->hw_stats != last_hw_stats) { in flow_action_mixed_hw_stats_check() 382 last_hw_stats = action_entry->hw_stats; in flow_action_mixed_hw_stats_check() 410 WARN_ON_ONCE(!action_entry->hw_stats); in __flow_action_hw_stats_check() 413 ~action_entry->hw_stats & FLOW_ACTION_HW_STATS_ANY) { in __flow_action_hw_stats_check() 417 !(action_entry->hw_stats & BIT(allow_bit))) { in __flow_action_hw_stats_check()
|
/openbmc/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_iov.c | 681 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()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ipsec_stats.c | 98 mlx5e_accel_ipsec_fs_read_stats(priv, &priv->ipsec->hw_stats); in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS() 100 data[idx++] = MLX5E_READ_CTR_ATOMIC64(&priv->ipsec->hw_stats, in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS()
|
/openbmc/linux/drivers/net/ethernet/ |
H A D | dnet.c | 342 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()
|
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | tc_action_hw_stats.sh | 86 skip_sw dst_ip 192.0.2.2 action drop hw_stats delayed
|
H A D | sch_red_core.sh | 678 action mirred egress mirror dev $swp2 hw_stats disabled 726 action trap hw_stats disabled 754 action trap_fwd hw_stats disabled
|
/openbmc/linux/drivers/net/ethernet/emulex/benet/ |
H A D | be_main.c | 385 return &cmd->hw_stats; in hw_stats_from_cmd() 389 return &cmd->hw_stats; in hw_stats_from_cmd() 393 return &cmd->hw_stats; in hw_stats_from_cmd() 401 struct be_hw_stats_v0 *hw_stats = hw_stats_from_cmd(adapter); in be_erx_stats_from_cmd() local 403 return &hw_stats->erx; in be_erx_stats_from_cmd() 405 struct be_hw_stats_v1 *hw_stats = hw_stats_from_cmd(adapter); in be_erx_stats_from_cmd() local 407 return &hw_stats->erx; in be_erx_stats_from_cmd() 409 struct be_hw_stats_v2 *hw_stats = hw_stats_from_cmd(adapter); in be_erx_stats_from_cmd() local 411 return &hw_stats->erx; in be_erx_stats_from_cmd() 417 struct be_hw_stats_v0 *hw_stats = hw_stats_from_cmd(adapter); in populate_be_v0_stats() local [all …]
|
/openbmc/linux/drivers/net/ethernet/cavium/thunder/ |
H A D | nicvf_main.c | 1660 struct nicvf_hw_stats *stats = &nic->hw_stats; in nicvf_update_stats() 1723 struct nicvf_hw_stats *hw_stats = &nic->hw_stats; in nicvf_get_stats64() local 1727 stats->rx_bytes = hw_stats->rx_bytes; in nicvf_get_stats64() 1728 stats->rx_packets = hw_stats->rx_frames; in nicvf_get_stats64() 1729 stats->rx_dropped = hw_stats->rx_drops; in nicvf_get_stats64() 1730 stats->multicast = hw_stats->rx_mcast_frames; in nicvf_get_stats64() 1732 stats->tx_bytes = hw_stats->tx_bytes; in nicvf_get_stats64() 1733 stats->tx_packets = hw_stats->tx_frames; in nicvf_get_stats64() 1734 stats->tx_dropped = hw_stats->tx_drops; in nicvf_get_stats64()
|
/openbmc/linux/drivers/media/platform/st/sti/c8sectpfe/ |
H A D | c8sectpfe-core.c | 380 struct c8sectpfe_hw *hw = &fei->hw_stats; in c8sectpfe_getconfig() 413 for_each_set_bit(bit, &tmp, fei->hw_stats.num_ib) { in c8sectpfe_idle_irq_handler() 739 fei->tsin_count > fei->hw_stats.num_ib) { in c8sectpfe_probe() 777 if (tsin->tsin_id > fei->hw_stats.num_ib) { in c8sectpfe_probe() 780 tsin->tsin_id, fei->hw_stats.num_ib); in c8sectpfe_probe()
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A D | vsc7326.c | 591 } 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()
|