/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_xgmac.c | 314 struct mac_hw_stats *hw_stats = &drv->mac_cb->hw_stats; in hns_xgmac_update_stats() local 317 hw_stats->tx_fragment_err in hns_xgmac_update_stats() 319 hw_stats->tx_undersize in hns_xgmac_update_stats() 321 hw_stats->tx_under_min_pkts in hns_xgmac_update_stats() 323 hw_stats->tx_64bytes = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_64OCTETS); in hns_xgmac_update_stats() 324 hw_stats->tx_65to127 in hns_xgmac_update_stats() 326 hw_stats->tx_128to255 in hns_xgmac_update_stats() 328 hw_stats->tx_256to511 in hns_xgmac_update_stats() 330 hw_stats->tx_512to1023 in hns_xgmac_update_stats() 332 hw_stats->tx_1024to1518 in hns_xgmac_update_stats() [all …]
|
D | hns_dsaf_gmac.c | 380 struct mac_hw_stats *hw_stats = NULL; in hns_gmac_update_stats() local 383 hw_stats = &drv->mac_cb->hw_stats; in hns_gmac_update_stats() 386 hw_stats->rx_good_bytes in hns_gmac_update_stats() 388 hw_stats->rx_bad_bytes in hns_gmac_update_stats() 390 hw_stats->rx_uc_pkts += dsaf_read_dev(drv, GMAC_RX_UC_PKTS_REG); in hns_gmac_update_stats() 391 hw_stats->rx_mc_pkts += dsaf_read_dev(drv, GMAC_RX_MC_PKTS_REG); in hns_gmac_update_stats() 392 hw_stats->rx_bc_pkts += dsaf_read_dev(drv, GMAC_RX_BC_PKTS_REG); in hns_gmac_update_stats() 393 hw_stats->rx_64bytes in hns_gmac_update_stats() 395 hw_stats->rx_65to127 in hns_gmac_update_stats() 397 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 | 675 rx_missed_errors = ppe_cb->hw_stats.rx_drop_no_buf; in hns_ae_update_stats() 676 tx_errors += ppe_cb->hw_stats.tx_err_checksum in hns_ae_update_stats() 677 + ppe_cb->hw_stats.tx_err_fifo_empty; in hns_ae_update_stats() 682 rx_missed_errors += dsaf_dev->hw_stats[port].bp_drop; in hns_ae_update_stats() 683 rx_missed_errors += dsaf_dev->hw_stats[port].pad_drop; in hns_ae_update_stats() 684 rx_missed_errors += dsaf_dev->hw_stats[port].crc_false; in hns_ae_update_stats() 689 tx_dropped += dsaf_dev->hw_stats[port].bp_drop; in hns_ae_update_stats() 690 tx_dropped += dsaf_dev->hw_stats[port].pad_drop; in hns_ae_update_stats() 691 tx_dropped += dsaf_dev->hw_stats[port].crc_false; in hns_ae_update_stats() 692 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
|
/kernel/linux/linux-5.10/net/sched/ |
D | sch_gred.c | 355 struct tc_gred_qopt_offload *hw_stats; in gred_offload_dump_stats() local 359 hw_stats = kzalloc(sizeof(*hw_stats), GFP_KERNEL); in gred_offload_dump_stats() 360 if (!hw_stats) in gred_offload_dump_stats() 363 hw_stats->command = TC_GRED_STATS; in gred_offload_dump_stats() 364 hw_stats->handle = sch->handle; in gred_offload_dump_stats() 365 hw_stats->parent = sch->parent; in gred_offload_dump_stats() 369 hw_stats->stats.xstats[i] = &table->tab[i]->stats; in gred_offload_dump_stats() 371 ret = qdisc_offload_dump_helper(sch, TC_SETUP_QDISC_GRED, hw_stats); in gred_offload_dump_stats() 378 table->tab[i]->packetsin += hw_stats->stats.bstats[i].packets; in gred_offload_dump_stats() 379 table->tab[i]->bytesin += hw_stats->stats.bstats[i].bytes; in gred_offload_dump_stats() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mediatek/ |
D | mtk_eth_soc.c | 681 struct mtk_hw_stats *hw_stats = mac->hw_stats; in mtk_stats_update_mac() local 684 u64_stats_update_begin(&hw_stats->syncp); in mtk_stats_update_mac() 687 hw_stats->tx_packets += mtk_r32(mac->hw, MT7628_SDM_TPCNT); in mtk_stats_update_mac() 688 hw_stats->tx_bytes += mtk_r32(mac->hw, MT7628_SDM_TBCNT); in mtk_stats_update_mac() 689 hw_stats->rx_packets += mtk_r32(mac->hw, MT7628_SDM_RPCNT); in mtk_stats_update_mac() 690 hw_stats->rx_bytes += mtk_r32(mac->hw, MT7628_SDM_RBCNT); in mtk_stats_update_mac() 691 hw_stats->rx_checksum_errors += in mtk_stats_update_mac() 694 unsigned int offs = hw_stats->reg_offset; in mtk_stats_update_mac() 697 hw_stats->rx_bytes += mtk_r32(mac->hw, in mtk_stats_update_mac() 701 hw_stats->rx_bytes += (stats << 32); in mtk_stats_update_mac() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/alx/ |
D | main.c | 1631 struct alx_hw_stats *hw_stats = &alx->hw.stats; in alx_get_stats64() local 1637 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in alx_get_stats64() 1638 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in alx_get_stats64() 1639 net_stats->multicast = hw_stats->rx_mcast; in alx_get_stats64() 1640 net_stats->collisions = hw_stats->tx_single_col + in alx_get_stats64() 1641 hw_stats->tx_multi_col + in alx_get_stats64() 1642 hw_stats->tx_late_col + in alx_get_stats64() 1643 hw_stats->tx_abort_col; in alx_get_stats64() 1645 net_stats->rx_errors = hw_stats->rx_frag + in alx_get_stats64() 1646 hw_stats->rx_fcs_err + in alx_get_stats64() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/atl1c/ |
D | atl1c_main.c | 1455 stats_item = &adapter->hw_stats.rx_ok; in atl1c_update_hw_stats() 1464 stats_item = &adapter->hw_stats.tx_ok; in atl1c_update_hw_stats() 1483 struct atl1c_hw_stats *hw_stats = &adapter->hw_stats; in atl1c_get_stats() local 1487 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in atl1c_get_stats() 1488 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in atl1c_get_stats() 1489 net_stats->multicast = hw_stats->rx_mcast; in atl1c_get_stats() 1490 net_stats->collisions = hw_stats->tx_1_col + in atl1c_get_stats() 1491 hw_stats->tx_2_col + in atl1c_get_stats() 1492 hw_stats->tx_late_col + in atl1c_get_stats() 1493 hw_stats->tx_abort_col; in atl1c_get_stats() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/ |
D | am65-cpsw-ethtool.c | 644 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()
|
/kernel/linux/linux-5.10/include/net/ |
D | flow_offload.h | 199 enum flow_action_hw_stats hw_stats; member 316 if (i && action_entry->hw_stats != last_hw_stats) { in flow_action_mixed_hw_stats_check() 320 last_hw_stats = action_entry->hw_stats; in flow_action_mixed_hw_stats_check() 348 WARN_ON_ONCE(!action_entry->hw_stats); in __flow_action_hw_stats_check() 351 ~action_entry->hw_stats & FLOW_ACTION_HW_STATS_ANY) { in __flow_action_hw_stats_check() 355 !(action_entry->hw_stats & BIT(allow_bit))) { in __flow_action_hw_stats_check()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/neterion/vxge/ |
D | vxge-config.c | 1511 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 …]
|
D | vxge-ethtool.c | 240 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()
|
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
D | sysfs.c | 64 struct rdma_hw_stats *hw_stats; member 839 stats = dev->hw_stats; in show_hw_stats() 843 stats = port->hw_stats; in show_hw_stats() 869 stats = dev->hw_stats; in show_stats_lifespan() 873 stats = p->hw_stats; in show_stats_lifespan() 904 stats = dev->hw_stats; in set_stats_lifespan() 908 stats = p->hw_stats; in set_stats_lifespan() 1019 port->hw_stats = stats; in setup_hw_stats() 1021 device->port_data[port_num].hw_stats = stats; in setup_hw_stats() 1028 device->hw_stats = stats; in setup_hw_stats() [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/ |
D | i40iw_virtchnl.c | 257 struct i40iw_dev_hw_stats *hw_stats) in vchnl_pf_send_get_pe_stats_resp() argument 267 *((struct i40iw_dev_hw_stats *)vchnl_msg_resp->iw_chnl_buf) = *hw_stats; in vchnl_pf_send_get_pe_stats_resp() 540 i40iw_hw_stats_read_all(stats, &stats->hw_stats); in i40iw_vchnl_recv_pf() 542 vchnl_pf_send_get_pe_stats_resp(dev, vf_id, vchnl_msg, &stats->hw_stats); in i40iw_vchnl_recv_pf() 732 struct i40iw_dev_hw_stats *hw_stats) in i40iw_vchnl_vf_get_pe_stats() argument 741 vchnl_req.parm = hw_stats; in i40iw_vchnl_vf_get_pe_stats() 742 vchnl_req.parm_len = sizeof(*hw_stats); in i40iw_vchnl_vf_get_pe_stats()
|
D | i40iw_virtchnl.h | 123 struct i40iw_dev_hw_stats *hw_stats);
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/media/platform/sti/c8sectpfe/ |
D | c8sectpfe-core.c | 378 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/thunder/ |
D | nicvf_main.c | 1664 struct nicvf_hw_stats *stats = &nic->hw_stats; in nicvf_update_stats() 1727 struct nicvf_hw_stats *hw_stats = &nic->hw_stats; in nicvf_get_stats64() local 1731 stats->rx_bytes = hw_stats->rx_bytes; in nicvf_get_stats64() 1732 stats->rx_packets = hw_stats->rx_frames; in nicvf_get_stats64() 1733 stats->rx_dropped = hw_stats->rx_drops; in nicvf_get_stats64() 1734 stats->multicast = hw_stats->rx_mcast_frames; in nicvf_get_stats64() 1736 stats->tx_bytes = hw_stats->tx_bytes; in nicvf_get_stats64() 1737 stats->tx_packets = hw_stats->tx_frames; in nicvf_get_stats64() 1738 stats->tx_dropped = hw_stats->tx_drops; in nicvf_get_stats64()
|