/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_xgmac.c | 312 struct mac_hw_stats *hw_stats = &drv->mac_cb->hw_stats; in hns_xgmac_update_stats() local 315 hw_stats->tx_fragment_err in hns_xgmac_update_stats() 317 hw_stats->tx_undersize in hns_xgmac_update_stats() 319 hw_stats->tx_under_min_pkts in hns_xgmac_update_stats() 321 hw_stats->tx_64bytes = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_64OCTETS); in hns_xgmac_update_stats() 322 hw_stats->tx_65to127 in hns_xgmac_update_stats() 324 hw_stats->tx_128to255 in hns_xgmac_update_stats() 326 hw_stats->tx_256to511 in hns_xgmac_update_stats() 328 hw_stats->tx_512to1023 in hns_xgmac_update_stats() 330 hw_stats->tx_1024to1518 in hns_xgmac_update_stats() [all …]
|
D | hns_dsaf_gmac.c | 312 struct mac_hw_stats *hw_stats = NULL; in hns_gmac_update_stats() local 315 hw_stats = &drv->mac_cb->hw_stats; in hns_gmac_update_stats() 318 hw_stats->rx_good_bytes in hns_gmac_update_stats() 320 hw_stats->rx_bad_bytes in hns_gmac_update_stats() 322 hw_stats->rx_uc_pkts += dsaf_read_dev(drv, GMAC_RX_UC_PKTS_REG); in hns_gmac_update_stats() 323 hw_stats->rx_mc_pkts += dsaf_read_dev(drv, GMAC_RX_MC_PKTS_REG); in hns_gmac_update_stats() 324 hw_stats->rx_bc_pkts += dsaf_read_dev(drv, GMAC_RX_BC_PKTS_REG); in hns_gmac_update_stats() 325 hw_stats->rx_64bytes in hns_gmac_update_stats() 327 hw_stats->rx_65to127 in hns_gmac_update_stats() 329 hw_stats->rx_128to255 in hns_gmac_update_stats() [all …]
|
D | hns_dsaf_ppe.c | 356 struct hns_ppe_hw_stats *hw_stats = &ppe_cb->hw_stats; in hns_ppe_update_stats() local 358 hw_stats->rx_pkts_from_sw in hns_ppe_update_stats() 360 hw_stats->rx_pkts in hns_ppe_update_stats() 362 hw_stats->rx_drop_no_bd in hns_ppe_update_stats() 364 hw_stats->rx_alloc_buf_fail in hns_ppe_update_stats() 366 hw_stats->rx_alloc_buf_wait in hns_ppe_update_stats() 368 hw_stats->rx_drop_no_buf in hns_ppe_update_stats() 370 hw_stats->rx_err_fifo_full in hns_ppe_update_stats() 373 hw_stats->tx_bd_form_rcb in hns_ppe_update_stats() 375 hw_stats->tx_pkts_from_rcb in hns_ppe_update_stats() [all …]
|
D | hns_ae_adapt.c | 516 rx_missed_errors = ppe_cb->hw_stats.rx_drop_no_buf; in hns_ae_update_stats() 517 tx_errors += ppe_cb->hw_stats.tx_err_checksum in hns_ae_update_stats() 518 + ppe_cb->hw_stats.tx_err_fifo_empty; in hns_ae_update_stats() 523 rx_missed_errors += dsaf_dev->hw_stats[port].bp_drop; in hns_ae_update_stats() 524 rx_missed_errors += dsaf_dev->hw_stats[port].pad_drop; in hns_ae_update_stats() 525 rx_missed_errors += dsaf_dev->hw_stats[port].crc_false; in hns_ae_update_stats() 530 tx_dropped += dsaf_dev->hw_stats[port].bp_drop; in hns_ae_update_stats() 531 tx_dropped += dsaf_dev->hw_stats[port].pad_drop; in hns_ae_update_stats() 532 tx_dropped += dsaf_dev->hw_stats[port].crc_false; in hns_ae_update_stats() 533 tx_dropped += dsaf_dev->hw_stats[port].rslt_drop; in hns_ae_update_stats() [all …]
|
D | hns_dsaf_rcb.c | 735 struct hns_ring_hw_stats *hw_stats = &ring->hw_stats; in hns_rcb_update_stats() local 737 hw_stats->rx_pkts += dsaf_read_dev(queue, in hns_rcb_update_stats() 741 hw_stats->ppe_rx_ok_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats() 743 hw_stats->ppe_rx_drop_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats() 746 hw_stats->tx_pkts += dsaf_read_dev(queue, in hns_rcb_update_stats() 750 hw_stats->ppe_tx_ok_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats() 752 hw_stats->ppe_tx_drop_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats() 766 struct hns_ring_hw_stats *hw_stats = &ring->hw_stats; in hns_rcb_get_stats() local 768 regs_buff[0] = hw_stats->tx_pkts; in hns_rcb_get_stats() 769 regs_buff[1] = hw_stats->ppe_tx_ok_pkts; in hns_rcb_get_stats() [all …]
|
D | hns_dsaf_main.c | 1867 struct dsaf_hw_stats *hw_stats in hns_dsaf_update_stats() local 1868 = &dsaf_dev->hw_stats[node_num]; in hns_dsaf_update_stats() 1870 hw_stats->pad_drop += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() 1872 hw_stats->man_pkts += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() 1874 hw_stats->rx_pkts += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() 1876 hw_stats->rx_pkt_id += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() 1878 hw_stats->rx_pause_frame += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() 1880 hw_stats->release_buf_num += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() 1882 hw_stats->sbm_drop += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() 1884 hw_stats->crc_false += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() [all …]
|
D | hns_dsaf_mac.c | 883 txpkts = mac_cb->txpkt_for_led - mac_cb->hw_stats.tx_good_pkts; in hns_set_led_opt() 884 rxpkts = mac_cb->rxpkt_for_led - mac_cb->hw_stats.rx_good_pkts; in hns_set_led_opt() 889 mac_cb->txpkt_for_led = mac_cb->hw_stats.tx_good_pkts; in hns_set_led_opt() 890 mac_cb->rxpkt_for_led = mac_cb->hw_stats.rx_good_pkts; in hns_set_led_opt()
|
D | hns_dsaf_ppe.h | 69 struct hns_ppe_hw_stats hw_stats; member
|
D | hns_dsaf_rcb.h | 83 struct hns_ring_hw_stats hw_stats; member
|
/drivers/net/ethernet/atheros/alx/ |
D | main.c | 1184 struct alx_hw_stats *hw_stats = &alx->hw.stats; in alx_get_stats64() local 1190 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in alx_get_stats64() 1191 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in alx_get_stats64() 1192 net_stats->multicast = hw_stats->rx_mcast; in alx_get_stats64() 1193 net_stats->collisions = hw_stats->tx_single_col + in alx_get_stats64() 1194 hw_stats->tx_multi_col + in alx_get_stats64() 1195 hw_stats->tx_late_col + in alx_get_stats64() 1196 hw_stats->tx_abort_col; in alx_get_stats64() 1198 net_stats->rx_errors = hw_stats->rx_frag + in alx_get_stats64() 1199 hw_stats->rx_fcs_err + in alx_get_stats64() [all …]
|
/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_main.c | 1176 struct atl1e_hw_stats *hw_stats = &adapter->hw_stats; in atl1e_get_stats() local 1179 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in atl1e_get_stats() 1180 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in atl1e_get_stats() 1181 net_stats->multicast = hw_stats->rx_mcast; in atl1e_get_stats() 1182 net_stats->collisions = hw_stats->tx_1_col + in atl1e_get_stats() 1183 hw_stats->tx_2_col + in atl1e_get_stats() 1184 hw_stats->tx_late_col + in atl1e_get_stats() 1185 hw_stats->tx_abort_col; in atl1e_get_stats() 1187 net_stats->rx_errors = hw_stats->rx_frag + in atl1e_get_stats() 1188 hw_stats->rx_fcs_err + in atl1e_get_stats() [all …]
|
/drivers/net/ethernet/atheros/atl1c/ |
D | atl1c_main.c | 1468 stats_item = &adapter->hw_stats.rx_ok; in atl1c_update_hw_stats() 1477 stats_item = &adapter->hw_stats.tx_ok; in atl1c_update_hw_stats() 1496 struct atl1c_hw_stats *hw_stats = &adapter->hw_stats; in atl1c_get_stats() local 1500 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in atl1c_get_stats() 1501 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in atl1c_get_stats() 1502 net_stats->multicast = hw_stats->rx_mcast; in atl1c_get_stats() 1503 net_stats->collisions = hw_stats->tx_1_col + in atl1c_get_stats() 1504 hw_stats->tx_2_col + in atl1c_get_stats() 1505 hw_stats->tx_late_col + in atl1c_get_stats() 1506 hw_stats->tx_abort_col; in atl1c_get_stats() [all …]
|
/drivers/net/ethernet/neterion/vxge/ |
D | vxge-config.c | 1512 struct vxge_hw_vpath_stats_hw_info *hw_stats) in __vxge_hw_vpath_stats_get() argument 1525 hw_stats->ini_num_mwr_sent = in __vxge_hw_vpath_stats_get() 1529 hw_stats->ini_num_mrd_sent = in __vxge_hw_vpath_stats_get() 1533 hw_stats->ini_num_cpl_rcvd = in __vxge_hw_vpath_stats_get() 1537 hw_stats->ini_num_mwr_byte_sent = in __vxge_hw_vpath_stats_get() 1541 hw_stats->ini_num_cpl_byte_rcvd = in __vxge_hw_vpath_stats_get() 1545 hw_stats->wrcrdtarb_xoff = in __vxge_hw_vpath_stats_get() 1549 hw_stats->rdcrdtarb_xoff = in __vxge_hw_vpath_stats_get() 1553 hw_stats->vpath_genstats_count0 = in __vxge_hw_vpath_stats_get() 1558 hw_stats->vpath_genstats_count1 = in __vxge_hw_vpath_stats_get() [all …]
|
D | vxge-ethtool.c | 233 struct vxge_hw_device_stats_hw_info *hw_stats; in vxge_get_ethtool_stats() local 258 hw_stats = kzalloc(sizeof(struct vxge_hw_device_stats_hw_info), in vxge_get_ethtool_stats() 260 if (hw_stats == NULL) { in vxge_get_ethtool_stats() 285 status = vxge_hw_device_stats_get(hldev, hw_stats); in vxge_get_ethtool_stats() 296 vpath_info = hw_stats->vpath_info[j]; in vxge_get_ethtool_stats() 530 vpath_info = hw_stats->vpath_info[j]; in vxge_get_ethtool_stats() 590 kfree(hw_stats); in vxge_get_ethtool_stats()
|
/drivers/net/ethernet/ |
D | dnet.c | 364 u32 *p = &bp->hw_stats.rx_pkt_ignr; in dnet_update_stats() 365 u32 *end = &bp->hw_stats.rx_byte + 1; in dnet_update_stats() 374 p = &bp->hw_stats.tx_unicast; in dnet_update_stats() 375 end = &bp->hw_stats.tx_byte + 1; in dnet_update_stats() 718 struct dnet_stats *hwstat = &bp->hw_stats; in dnet_get_stats()
|
D | dnet.h | 213 struct dnet_stats hw_stats; member
|
/drivers/net/ethernet/emulex/benet/ |
D | be_main.c | 329 return &cmd->hw_stats; in hw_stats_from_cmd() 333 return &cmd->hw_stats; in hw_stats_from_cmd() 337 return &cmd->hw_stats; in hw_stats_from_cmd() 345 struct be_hw_stats_v0 *hw_stats = hw_stats_from_cmd(adapter); in be_erx_stats_from_cmd() local 347 return &hw_stats->erx; in be_erx_stats_from_cmd() 349 struct be_hw_stats_v1 *hw_stats = hw_stats_from_cmd(adapter); in be_erx_stats_from_cmd() local 351 return &hw_stats->erx; in be_erx_stats_from_cmd() 353 struct be_hw_stats_v2 *hw_stats = hw_stats_from_cmd(adapter); in be_erx_stats_from_cmd() local 355 return &hw_stats->erx; in be_erx_stats_from_cmd() 361 struct be_hw_stats_v0 *hw_stats = hw_stats_from_cmd(adapter); in populate_be_v0_stats() local [all …]
|
/drivers/media/platform/sti/c8sectpfe/ |
D | c8sectpfe-core.c | 383 struct c8sectpfe_hw *hw = &fei->hw_stats; in c8sectpfe_getconfig() 416 for_each_set_bit(bit, &tmp, fei->hw_stats.num_ib) { in c8sectpfe_idle_irq_handler() 754 fei->tsin_count > fei->hw_stats.num_ib) { in c8sectpfe_probe() 792 if (tsin->tsin_id > fei->hw_stats.num_ib) { in c8sectpfe_probe() 796 tsin->tsin_id, fei->hw_stats.num_ib); in c8sectpfe_probe()
|
D | c8sectpfe-core.h | 84 struct c8sectpfe_hw hw_stats; member
|
/drivers/net/ethernet/chelsio/cxgb/ |
D | vsc7326.c | 595 } hw_stats[] = { in port_stats_update() local 621 }, *p = hw_stats; in port_stats_update() 626 for (i = 0; i < ARRAY_SIZE(hw_stats); i++) in port_stats_update()
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt.c | 2404 if (cpr->hw_stats) { in bnxt_free_stats() 2405 dma_free_coherent(&pdev->dev, size, cpr->hw_stats, in bnxt_free_stats() 2407 cpr->hw_stats = NULL; in bnxt_free_stats() 2423 cpr->hw_stats = dma_alloc_coherent(&pdev->dev, size, in bnxt_alloc_stats() 2426 if (!cpr->hw_stats) in bnxt_alloc_stats() 4787 struct ctx_hw_stats *hw_stats = cpr->hw_stats; in bnxt_get_stats64() local 4789 stats->rx_packets += le64_to_cpu(hw_stats->rx_ucast_pkts); in bnxt_get_stats64() 4790 stats->rx_packets += le64_to_cpu(hw_stats->rx_mcast_pkts); in bnxt_get_stats64() 4791 stats->rx_packets += le64_to_cpu(hw_stats->rx_bcast_pkts); in bnxt_get_stats64() 4793 stats->tx_packets += le64_to_cpu(hw_stats->tx_ucast_pkts); in bnxt_get_stats64() [all …]
|
/drivers/net/ethernet/cavium/thunder/ |
D | nicvf_main.c | 1313 struct nicvf_hw_stats *stats = &nic->hw_stats; in nicvf_update_stats() 1364 struct nicvf_hw_stats *hw_stats = &nic->hw_stats; in nicvf_get_stats64() local 1369 stats->rx_bytes = hw_stats->rx_bytes; in nicvf_get_stats64() 1372 stats->multicast = hw_stats->rx_mcast_frames; in nicvf_get_stats64() 1374 stats->tx_bytes = hw_stats->tx_bytes_ok; in nicvf_get_stats64()
|
/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_ethtool.c | 469 char *hw_stats = (char *)&adapter->stats; in pch_gbe_get_ethtool_stats() local 473 char *p = hw_stats + gstats->offset; in pch_gbe_get_ethtool_stats()
|
/drivers/net/ethernet/ti/ |
D | netcp_ethss.c | 675 u64 *hw_stats; member 1736 gbe_dev->hw_stats[i] = 0; in gbe_reset_mod_stats() 1757 gbe_dev->hw_stats[et_stats_entry] += delta; in gbe_update_hw_stats_entry() 1768 data[i] = gbe_dev->hw_stats[i]; in gbe_update_stats() 1817 data[et_entry] = gbe_dev->hw_stats[et_entry]; in gbe_update_stats_ver14() 2762 gbe_dev->hw_stats = devm_kzalloc(gbe_dev->dev, in set_xgbe_ethss10_priv() 2765 if (!gbe_dev->hw_stats) { in set_xgbe_ethss10_priv() 2881 gbe_dev->hw_stats = devm_kzalloc(gbe_dev->dev, in set_gbe_ethss14_priv() 2884 if (!gbe_dev->hw_stats) { in set_gbe_ethss14_priv() 2952 gbe_dev->hw_stats = devm_kzalloc(gbe_dev->dev, in set_gbenu_ethss_priv() [all …]
|
/drivers/net/ethernet/brocade/bna/ |
D | bnad_ethtool.c | 897 stats64 = (u64 *) &bnad->stats.bna_stats->hw_stats; in bnad_get_ethtool_stats() 909 hw_stats.txf_stats[i]; in bnad_get_ethtool_stats() 922 hw_stats.rxf_stats[i]; in bnad_get_ethtool_stats()
|