/linux-6.1.9/drivers/net/ethernet/hisilicon/hns/ |
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 …]
|
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 …]
|
D | hns_dsaf_ppe.c | 416 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 …]
|
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 …]
|
D | hns_dsaf_rcb.c | 825 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 …]
|
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 …]
|
D | hns_dsaf_ppe.h | 76 struct hns_ppe_hw_stats hw_stats; member
|
/linux-6.1.9/drivers/infiniband/hw/bnxt_re/ |
D | hw_counters.c | 257 struct ctx_hw_stats *hw_stats = NULL; in bnxt_re_ib_get_hw_stats() local 261 hw_stats = rdev->qplib_ctx.stats.dma; in bnxt_re_ib_get_hw_stats() 273 if (hw_stats) { in bnxt_re_ib_get_hw_stats() 275 le64_to_cpu(hw_stats->tx_bcast_pkts); in bnxt_re_ib_get_hw_stats() 277 le64_to_cpu(hw_stats->rx_error_pkts); in bnxt_re_ib_get_hw_stats() 279 le64_to_cpu(hw_stats->rx_discard_pkts); in bnxt_re_ib_get_hw_stats() 281 le64_to_cpu(hw_stats->rx_ucast_pkts); in bnxt_re_ib_get_hw_stats() 283 le64_to_cpu(hw_stats->rx_ucast_bytes); in bnxt_re_ib_get_hw_stats() 285 le64_to_cpu(hw_stats->tx_ucast_pkts); in bnxt_re_ib_get_hw_stats() 287 le64_to_cpu(hw_stats->tx_ucast_bytes); in bnxt_re_ib_get_hw_stats()
|
/linux-6.1.9/net/sched/ |
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 …]
|
/linux-6.1.9/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_main.c | 1155 struct atl1e_hw_stats *hw_stats = &adapter->hw_stats; in atl1e_get_stats() local 1158 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in atl1e_get_stats() 1159 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in atl1e_get_stats() 1160 net_stats->multicast = hw_stats->rx_mcast; in atl1e_get_stats() 1161 net_stats->collisions = hw_stats->tx_1_col + in atl1e_get_stats() 1162 hw_stats->tx_2_col + in atl1e_get_stats() 1163 hw_stats->tx_late_col + in atl1e_get_stats() 1164 hw_stats->tx_abort_col; in atl1e_get_stats() 1166 net_stats->rx_errors = hw_stats->rx_frag + in atl1e_get_stats() 1167 hw_stats->rx_fcs_err + in atl1e_get_stats() [all …]
|
/linux-6.1.9/drivers/net/ethernet/mediatek/ |
D | mtk_eth_soc.c | 788 struct mtk_hw_stats *hw_stats = mac->hw_stats; in mtk_stats_update_mac() local 791 u64_stats_update_begin(&hw_stats->syncp); in mtk_stats_update_mac() 794 hw_stats->tx_packets += mtk_r32(mac->hw, MT7628_SDM_TPCNT); in mtk_stats_update_mac() 795 hw_stats->tx_bytes += mtk_r32(mac->hw, MT7628_SDM_TBCNT); in mtk_stats_update_mac() 796 hw_stats->rx_packets += mtk_r32(mac->hw, MT7628_SDM_RPCNT); in mtk_stats_update_mac() 797 hw_stats->rx_bytes += mtk_r32(mac->hw, MT7628_SDM_RBCNT); in mtk_stats_update_mac() 798 hw_stats->rx_checksum_errors += in mtk_stats_update_mac() 802 unsigned int offs = hw_stats->reg_offset; in mtk_stats_update_mac() 805 hw_stats->rx_bytes += mtk_r32(mac->hw, reg_map->gdm1_cnt + offs); in mtk_stats_update_mac() 808 hw_stats->rx_bytes += (stats << 32); in mtk_stats_update_mac() [all …]
|
/linux-6.1.9/drivers/net/ethernet/atheros/alx/ |
D | main.c | 1655 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 …]
|
/linux-6.1.9/drivers/net/ethernet/atheros/atl1c/ |
D | atl1c_main.c | 1531 stats_item = &adapter->hw_stats.rx_ok; in atl1c_update_hw_stats() 1540 stats_item = &adapter->hw_stats.tx_ok; in atl1c_update_hw_stats() 1559 struct atl1c_hw_stats *hw_stats = &adapter->hw_stats; in atl1c_get_stats() local 1563 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in atl1c_get_stats() 1564 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in atl1c_get_stats() 1565 net_stats->multicast = hw_stats->rx_mcast; in atl1c_get_stats() 1566 net_stats->collisions = hw_stats->tx_1_col + in atl1c_get_stats() 1567 hw_stats->tx_2_col + in atl1c_get_stats() 1568 hw_stats->tx_late_col + in atl1c_get_stats() 1569 hw_stats->tx_abort_col; in atl1c_get_stats() [all …]
|
/linux-6.1.9/drivers/net/ethernet/ti/ |
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()
|
/linux-6.1.9/include/net/ |
D | act_api.h | 45 u8 hw_stats; member 93 static inline enum flow_action_hw_stats tc_act_hw_stats(u8 hw_stats) in tc_act_hw_stats() argument 95 if (WARN_ON_ONCE(hw_stats > TCA_ACT_HW_STATS_ANY)) in tc_act_hw_stats() 97 else if (!hw_stats) in tc_act_hw_stats() 100 return hw_stats; in tc_act_hw_stats()
|
D | flow_offload.h | 224 enum flow_action_hw_stats hw_stats; member 362 if (i && action_entry->hw_stats != last_hw_stats) { in flow_action_mixed_hw_stats_check() 366 last_hw_stats = action_entry->hw_stats; in flow_action_mixed_hw_stats_check() 394 WARN_ON_ONCE(!action_entry->hw_stats); in __flow_action_hw_stats_check() 397 ~action_entry->hw_stats & FLOW_ACTION_HW_STATS_ANY) { in __flow_action_hw_stats_check() 401 !(action_entry->hw_stats & BIT(allow_bit))) { in __flow_action_hw_stats_check()
|
/linux-6.1.9/drivers/net/ethernet/intel/fm10k/ |
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()
|
/linux-6.1.9/drivers/net/ethernet/ |
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()
|
D | dnet.h | 209 struct dnet_stats hw_stats; member
|
/linux-6.1.9/tools/testing/selftests/drivers/net/mlxsw/ |
D | tc_action_hw_stats.sh | 86 skip_sw dst_ip 192.0.2.2 action drop hw_stats delayed
|
D | sch_red_core.sh | 679 action mirred egress mirror dev $swp2 hw_stats disabled 727 action trap hw_stats disabled 755 action trap_fwd hw_stats disabled
|
/linux-6.1.9/drivers/net/ethernet/emulex/benet/ |
D | be_main.c | 386 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 …]
|
/linux-6.1.9/drivers/media/platform/st/sti/c8sectpfe/ |
D | c8sectpfe-core.c | 376 struct c8sectpfe_hw *hw = &fei->hw_stats; in c8sectpfe_getconfig() 409 for_each_set_bit(bit, &tmp, fei->hw_stats.num_ib) { in c8sectpfe_idle_irq_handler() 735 fei->tsin_count > fei->hw_stats.num_ib) { in c8sectpfe_probe() 773 if (tsin->tsin_id > fei->hw_stats.num_ib) { in c8sectpfe_probe() 776 tsin->tsin_id, fei->hw_stats.num_ib); in c8sectpfe_probe()
|
/linux-6.1.9/drivers/net/ethernet/cavium/thunder/ |
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()
|
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb/ |
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()
|