/Linux-v4.19/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_xgmac.c | 317 struct mac_hw_stats *hw_stats = &drv->mac_cb->hw_stats; in hns_xgmac_update_stats() local 320 hw_stats->tx_fragment_err in hns_xgmac_update_stats() 322 hw_stats->tx_undersize in hns_xgmac_update_stats() 324 hw_stats->tx_under_min_pkts in hns_xgmac_update_stats() 326 hw_stats->tx_64bytes = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_64OCTETS); in hns_xgmac_update_stats() 327 hw_stats->tx_65to127 in hns_xgmac_update_stats() 329 hw_stats->tx_128to255 in hns_xgmac_update_stats() 331 hw_stats->tx_256to511 in hns_xgmac_update_stats() 333 hw_stats->tx_512to1023 in hns_xgmac_update_stats() 335 hw_stats->tx_1024to1518 in hns_xgmac_update_stats() [all …]
|
D | hns_dsaf_gmac.c | 378 struct mac_hw_stats *hw_stats = NULL; in hns_gmac_update_stats() local 381 hw_stats = &drv->mac_cb->hw_stats; in hns_gmac_update_stats() 384 hw_stats->rx_good_bytes in hns_gmac_update_stats() 386 hw_stats->rx_bad_bytes in hns_gmac_update_stats() 388 hw_stats->rx_uc_pkts += dsaf_read_dev(drv, GMAC_RX_UC_PKTS_REG); in hns_gmac_update_stats() 389 hw_stats->rx_mc_pkts += dsaf_read_dev(drv, GMAC_RX_MC_PKTS_REG); in hns_gmac_update_stats() 390 hw_stats->rx_bc_pkts += dsaf_read_dev(drv, GMAC_RX_BC_PKTS_REG); in hns_gmac_update_stats() 391 hw_stats->rx_64bytes in hns_gmac_update_stats() 393 hw_stats->rx_65to127 in hns_gmac_update_stats() 395 hw_stats->rx_128to255 in hns_gmac_update_stats() [all …]
|
D | hns_dsaf_ppe.c | 418 struct hns_ppe_hw_stats *hw_stats = &ppe_cb->hw_stats; in hns_ppe_update_stats() local 420 hw_stats->rx_pkts_from_sw in hns_ppe_update_stats() 422 hw_stats->rx_pkts in hns_ppe_update_stats() 424 hw_stats->rx_drop_no_bd in hns_ppe_update_stats() 426 hw_stats->rx_alloc_buf_fail in hns_ppe_update_stats() 428 hw_stats->rx_alloc_buf_wait in hns_ppe_update_stats() 430 hw_stats->rx_drop_no_buf in hns_ppe_update_stats() 432 hw_stats->rx_err_fifo_full in hns_ppe_update_stats() 435 hw_stats->tx_bd_form_rcb in hns_ppe_update_stats() 437 hw_stats->tx_pkts_from_rcb in hns_ppe_update_stats() [all …]
|
D | hns_ae_adapt.c | 680 rx_missed_errors = ppe_cb->hw_stats.rx_drop_no_buf; in hns_ae_update_stats() 681 tx_errors += ppe_cb->hw_stats.tx_err_checksum in hns_ae_update_stats() 682 + ppe_cb->hw_stats.tx_err_fifo_empty; in hns_ae_update_stats() 687 rx_missed_errors += dsaf_dev->hw_stats[port].bp_drop; in hns_ae_update_stats() 688 rx_missed_errors += dsaf_dev->hw_stats[port].pad_drop; in hns_ae_update_stats() 689 rx_missed_errors += dsaf_dev->hw_stats[port].crc_false; in hns_ae_update_stats() 694 tx_dropped += dsaf_dev->hw_stats[port].bp_drop; in hns_ae_update_stats() 695 tx_dropped += dsaf_dev->hw_stats[port].pad_drop; in hns_ae_update_stats() 696 tx_dropped += dsaf_dev->hw_stats[port].crc_false; in hns_ae_update_stats() 697 tx_dropped += dsaf_dev->hw_stats[port].rslt_drop; in hns_ae_update_stats() [all …]
|
D | hns_dsaf_rcb.c | 827 struct hns_ring_hw_stats *hw_stats = &ring->hw_stats; in hns_rcb_update_stats() local 829 hw_stats->rx_pkts += dsaf_read_dev(queue, in hns_rcb_update_stats() 833 hw_stats->ppe_rx_ok_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats() 835 hw_stats->ppe_rx_drop_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats() 838 hw_stats->tx_pkts += dsaf_read_dev(queue, in hns_rcb_update_stats() 842 hw_stats->ppe_tx_ok_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats() 844 hw_stats->ppe_tx_drop_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats() 858 struct hns_ring_hw_stats *hw_stats = &ring->hw_stats; in hns_rcb_get_stats() local 860 regs_buff[0] = hw_stats->tx_pkts; in hns_rcb_get_stats() 861 regs_buff[1] = hw_stats->ppe_tx_ok_pkts; in hns_rcb_get_stats() [all …]
|
D | hns_dsaf_main.c | 2135 struct dsaf_hw_stats *hw_stats in hns_dsaf_update_stats() local 2136 = &dsaf_dev->hw_stats[node_num]; in hns_dsaf_update_stats() 2141 hw_stats->pad_drop += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() 2143 hw_stats->man_pkts += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() 2145 hw_stats->rx_pkts += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() 2147 hw_stats->rx_pkt_id += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() 2152 hw_stats->rx_pause_frame += in hns_dsaf_update_stats() 2155 hw_stats->release_buf_num += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() 2157 hw_stats->sbm_drop += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() 2159 hw_stats->crc_false += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() [all …]
|
D | hns_dsaf_ppe.h | 80 struct hns_ppe_hw_stats hw_stats; member
|
D | hns_dsaf_rcb.h | 101 struct hns_ring_hw_stats hw_stats; member
|
/Linux-v4.19/drivers/staging/mt7621-eth/ |
D | mtk_eth_soc.c | 433 struct mtk_hw_stats *hw_stats = mac->hw_stats; in mtk_stats_update_mac() local 437 base += hw_stats->reg_offset; in mtk_stats_update_mac() 439 u64_stats_update_begin(&hw_stats->syncp); in mtk_stats_update_mac() 442 hw_stats->rx_bytes += mtk_r32(mac->hw, base); in mtk_stats_update_mac() 445 hw_stats->rx_bytes += (stats << 32); in mtk_stats_update_mac() 446 hw_stats->rx_packets += mtk_r32(mac->hw, base + 0x08); in mtk_stats_update_mac() 447 hw_stats->rx_overflow += mtk_r32(mac->hw, base + 0x10); in mtk_stats_update_mac() 448 hw_stats->rx_fcs_errors += mtk_r32(mac->hw, base + 0x14); in mtk_stats_update_mac() 449 hw_stats->rx_short_errors += mtk_r32(mac->hw, base + 0x18); in mtk_stats_update_mac() 450 hw_stats->rx_long_errors += mtk_r32(mac->hw, base + 0x1c); in mtk_stats_update_mac() [all …]
|
/Linux-v4.19/drivers/net/ethernet/mediatek/ |
D | mtk_eth_soc.c | 493 struct mtk_hw_stats *hw_stats = mac->hw_stats; in mtk_stats_update_mac() local 497 base += hw_stats->reg_offset; in mtk_stats_update_mac() 499 u64_stats_update_begin(&hw_stats->syncp); in mtk_stats_update_mac() 501 hw_stats->rx_bytes += mtk_r32(mac->hw, base); in mtk_stats_update_mac() 504 hw_stats->rx_bytes += (stats << 32); in mtk_stats_update_mac() 505 hw_stats->rx_packets += mtk_r32(mac->hw, base + 0x08); in mtk_stats_update_mac() 506 hw_stats->rx_overflow += mtk_r32(mac->hw, base + 0x10); in mtk_stats_update_mac() 507 hw_stats->rx_fcs_errors += mtk_r32(mac->hw, base + 0x14); in mtk_stats_update_mac() 508 hw_stats->rx_short_errors += mtk_r32(mac->hw, base + 0x18); in mtk_stats_update_mac() 509 hw_stats->rx_long_errors += mtk_r32(mac->hw, base + 0x1c); in mtk_stats_update_mac() [all …]
|
/Linux-v4.19/drivers/net/ethernet/atheros/alx/ |
D | main.c | 1633 struct alx_hw_stats *hw_stats = &alx->hw.stats; in alx_get_stats64() local 1639 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in alx_get_stats64() 1640 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in alx_get_stats64() 1641 net_stats->multicast = hw_stats->rx_mcast; in alx_get_stats64() 1642 net_stats->collisions = hw_stats->tx_single_col + in alx_get_stats64() 1643 hw_stats->tx_multi_col + in alx_get_stats64() 1644 hw_stats->tx_late_col + in alx_get_stats64() 1645 hw_stats->tx_abort_col; in alx_get_stats64() 1647 net_stats->rx_errors = hw_stats->rx_frag + in alx_get_stats64() 1648 hw_stats->rx_fcs_err + in alx_get_stats64() [all …]
|
/Linux-v4.19/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_main.c | 1168 struct atl1e_hw_stats *hw_stats = &adapter->hw_stats; in atl1e_get_stats() local 1171 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in atl1e_get_stats() 1172 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in atl1e_get_stats() 1173 net_stats->multicast = hw_stats->rx_mcast; in atl1e_get_stats() 1174 net_stats->collisions = hw_stats->tx_1_col + in atl1e_get_stats() 1175 hw_stats->tx_2_col + in atl1e_get_stats() 1176 hw_stats->tx_late_col + in atl1e_get_stats() 1177 hw_stats->tx_abort_col; in atl1e_get_stats() 1179 net_stats->rx_errors = hw_stats->rx_frag + in atl1e_get_stats() 1180 hw_stats->rx_fcs_err + in atl1e_get_stats() [all …]
|
/Linux-v4.19/drivers/net/ethernet/atheros/atl1c/ |
D | atl1c_main.c | 1471 stats_item = &adapter->hw_stats.rx_ok; in atl1c_update_hw_stats() 1480 stats_item = &adapter->hw_stats.tx_ok; in atl1c_update_hw_stats() 1499 struct atl1c_hw_stats *hw_stats = &adapter->hw_stats; in atl1c_get_stats() local 1503 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in atl1c_get_stats() 1504 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in atl1c_get_stats() 1505 net_stats->multicast = hw_stats->rx_mcast; in atl1c_get_stats() 1506 net_stats->collisions = hw_stats->tx_1_col + in atl1c_get_stats() 1507 hw_stats->tx_2_col + in atl1c_get_stats() 1508 hw_stats->tx_late_col + in atl1c_get_stats() 1509 hw_stats->tx_abort_col; in atl1c_get_stats() [all …]
|
/Linux-v4.19/drivers/net/ethernet/neterion/vxge/ |
D | vxge-config.c | 1507 struct vxge_hw_vpath_stats_hw_info *hw_stats) in __vxge_hw_vpath_stats_get() argument 1520 hw_stats->ini_num_mwr_sent = in __vxge_hw_vpath_stats_get() 1524 hw_stats->ini_num_mrd_sent = in __vxge_hw_vpath_stats_get() 1528 hw_stats->ini_num_cpl_rcvd = in __vxge_hw_vpath_stats_get() 1532 hw_stats->ini_num_mwr_byte_sent = in __vxge_hw_vpath_stats_get() 1536 hw_stats->ini_num_cpl_byte_rcvd = in __vxge_hw_vpath_stats_get() 1540 hw_stats->wrcrdtarb_xoff = in __vxge_hw_vpath_stats_get() 1544 hw_stats->rdcrdtarb_xoff = in __vxge_hw_vpath_stats_get() 1548 hw_stats->vpath_genstats_count0 = in __vxge_hw_vpath_stats_get() 1553 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()
|
/Linux-v4.19/drivers/infiniband/core/ |
D | sysfs.c | 63 struct rdma_hw_stats *hw_stats; member 816 stats = dev->hw_stats; in show_hw_stats() 820 stats = port->hw_stats; in show_hw_stats() 846 stats = dev->hw_stats; in show_stats_lifespan() 850 stats = p->hw_stats; in show_stats_lifespan() 881 stats = dev->hw_stats; in set_stats_lifespan() 885 stats = p->hw_stats; in set_stats_lifespan() 996 port->hw_stats = stats; in setup_hw_stats() 1003 device->hw_stats = stats; in setup_hw_stats() 1284 if (port->hw_stats) { in free_port_list_attributes() [all …]
|
/Linux-v4.19/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);
|
/Linux-v4.19/drivers/net/ethernet/ |
D | dnet.c | 347 u32 *p = &bp->hw_stats.rx_pkt_ignr; in dnet_update_stats() 348 u32 *end = &bp->hw_stats.rx_byte + 1; in dnet_update_stats() 357 p = &bp->hw_stats.tx_unicast; in dnet_update_stats() 358 end = &bp->hw_stats.tx_byte + 1; in dnet_update_stats() 701 struct dnet_stats *hwstat = &bp->hw_stats; in dnet_get_stats()
|
D | dnet.h | 213 struct dnet_stats hw_stats; member
|
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_main.c | 401 u64 *data = (u64 *)(&hdev->hw_stats.all_64_bit_stats); in hclge_64_bit_update_stats() 457 all_32_bit_stats = &hdev->hw_stats.all_32_bit_stats; in hclge_32_bit_update_stats() 505 u64 *data = (u64 *)(&hdev->hw_stats.mac_stats); in hclge_mac_update_stats() 674 static void hclge_update_netstat(struct hclge_hw_stats *hw_stats, in hclge_update_netstat() argument 678 net_stats->rx_dropped = hw_stats->all_32_bit_stats.ssu_full_drop_num; in hclge_update_netstat() 679 net_stats->rx_dropped += hw_stats->all_32_bit_stats.ppp_key_drop_num; in hclge_update_netstat() 680 net_stats->rx_dropped += hw_stats->all_32_bit_stats.ssu_key_drop_num; in hclge_update_netstat() 682 net_stats->rx_errors = hw_stats->mac_stats.mac_rx_oversize_pkt_num; in hclge_update_netstat() 683 net_stats->rx_errors += hw_stats->mac_stats.mac_rx_undersize_pkt_num; in hclge_update_netstat() 684 net_stats->rx_errors += hw_stats->all_32_bit_stats.igu_rx_no_eof_pkt; in hclge_update_netstat() [all …]
|
/Linux-v4.19/drivers/net/ethernet/cavium/thunder/ |
D | nicvf_main.c | 1609 struct nicvf_hw_stats *stats = &nic->hw_stats; in nicvf_update_stats() 1672 struct nicvf_hw_stats *hw_stats = &nic->hw_stats; in nicvf_get_stats64() local 1676 stats->rx_bytes = hw_stats->rx_bytes; in nicvf_get_stats64() 1677 stats->rx_packets = hw_stats->rx_frames; in nicvf_get_stats64() 1678 stats->rx_dropped = hw_stats->rx_drops; in nicvf_get_stats64() 1679 stats->multicast = hw_stats->rx_mcast_frames; in nicvf_get_stats64() 1681 stats->tx_bytes = hw_stats->tx_bytes; in nicvf_get_stats64() 1682 stats->tx_packets = hw_stats->tx_frames; in nicvf_get_stats64() 1683 stats->tx_dropped = hw_stats->tx_drops; in nicvf_get_stats64()
|
/Linux-v4.19/drivers/media/platform/sti/c8sectpfe/ |
D | c8sectpfe-core.c | 379 struct c8sectpfe_hw *hw = &fei->hw_stats; in c8sectpfe_getconfig() 412 for_each_set_bit(bit, &tmp, fei->hw_stats.num_ib) { in c8sectpfe_idle_irq_handler() 750 fei->tsin_count > fei->hw_stats.num_ib) { in c8sectpfe_probe() 788 if (tsin->tsin_id > fei->hw_stats.num_ib) { in c8sectpfe_probe() 791 tsin->tsin_id, fei->hw_stats.num_ib); in c8sectpfe_probe()
|
/Linux-v4.19/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()
|
/Linux-v4.19/drivers/net/ethernet/emulex/benet/ |
D | be_main.c | 391 return &cmd->hw_stats; in hw_stats_from_cmd() 395 return &cmd->hw_stats; in hw_stats_from_cmd() 399 return &cmd->hw_stats; in hw_stats_from_cmd() 407 struct be_hw_stats_v0 *hw_stats = hw_stats_from_cmd(adapter); in be_erx_stats_from_cmd() local 409 return &hw_stats->erx; in be_erx_stats_from_cmd() 411 struct be_hw_stats_v1 *hw_stats = hw_stats_from_cmd(adapter); in be_erx_stats_from_cmd() local 413 return &hw_stats->erx; in be_erx_stats_from_cmd() 415 struct be_hw_stats_v2 *hw_stats = hw_stats_from_cmd(adapter); in be_erx_stats_from_cmd() local 417 return &hw_stats->erx; in be_erx_stats_from_cmd() 423 struct be_hw_stats_v0 *hw_stats = hw_stats_from_cmd(adapter); in populate_be_v0_stats() local [all …]
|