| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192d/ |
| H A D | trx_common.c | 21 struct rtl_stats *pstats, in _rtl92d_query_rxphystatus() argument 41 pstats->packet_matchbssid = packet_match_bssid; in _rtl92d_query_rxphystatus() 42 pstats->packet_toself = packet_toself; in _rtl92d_query_rxphystatus() 43 pstats->packet_beacon = packet_beacon; in _rtl92d_query_rxphystatus() 44 pstats->is_cck = is_cck_rate; in _rtl92d_query_rxphystatus() 45 pstats->rx_mimo_sig_qual[0] = -1; in _rtl92d_query_rxphystatus() 46 pstats->rx_mimo_sig_qual[1] = -1; in _rtl92d_query_rxphystatus() 110 pstats->rx_pwdb_all = pwdb_all; in _rtl92d_query_rxphystatus() 111 pstats->recvsignalpower = rx_pwr_all; in _rtl92d_query_rxphystatus() 115 if (pstats->rx_pwdb_all > 40) { in _rtl92d_query_rxphystatus() [all …]
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
| H A D | trx.c | 27 struct rtl_stats *pstats, in _rtl92ce_query_rxphystatus() argument 44 pstats->packet_matchbssid = packet_match_bssid; in _rtl92ce_query_rxphystatus() 45 pstats->packet_toself = packet_toself; in _rtl92ce_query_rxphystatus() 46 pstats->is_cck = is_cck_rate; in _rtl92ce_query_rxphystatus() 47 pstats->packet_beacon = packet_beacon; in _rtl92ce_query_rxphystatus() 48 pstats->rx_mimo_sig_qual[0] = -1; in _rtl92ce_query_rxphystatus() 49 pstats->rx_mimo_sig_qual[1] = -1; in _rtl92ce_query_rxphystatus() 123 pstats->rx_pwdb_all = pwdb_all; in _rtl92ce_query_rxphystatus() 124 pstats->recvsignalpower = rx_pwr_all; in _rtl92ce_query_rxphystatus() 130 if (pstats->rx_pwdb_all > 40) in _rtl92ce_query_rxphystatus() [all …]
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
| H A D | trx.c | 36 struct rtl_stats *pstats, __le32 *pdesc, in _rtl92se_query_rxphystatus() argument 49 bool is_cck = pstats->is_cck; in _rtl92se_query_rxphystatus() 51 pstats->packet_matchbssid = packet_match_bssid; in _rtl92se_query_rxphystatus() 52 pstats->packet_toself = packet_toself; in _rtl92se_query_rxphystatus() 53 pstats->packet_beacon = packet_beacon; in _rtl92se_query_rxphystatus() 54 pstats->rx_mimo_sig_qual[0] = -1; in _rtl92se_query_rxphystatus() 55 pstats->rx_mimo_sig_qual[1] = -1; in _rtl92se_query_rxphystatus() 123 pstats->rx_pwdb_all = pwdb_all; in _rtl92se_query_rxphystatus() 124 pstats->recvsignalpower = rx_pwr_all; in _rtl92se_query_rxphystatus() 128 if (pstats->rx_pwdb_all > 40) { in _rtl92se_query_rxphystatus() [all …]
|
| /linux/drivers/net/ethernet/amd/ |
| H A D | nmclan_cs.c | 1133 static void pr_linux_stats(struct net_device_stats *pstats) in pr_linux_stats() argument 1137 (long)pstats->rx_packets, (long)pstats->tx_packets); in pr_linux_stats() 1139 (long)pstats->rx_errors, (long)pstats->tx_errors); in pr_linux_stats() 1141 (long)pstats->rx_dropped, (long)pstats->tx_dropped); in pr_linux_stats() 1143 (long)pstats->multicast, (long)pstats->collisions); in pr_linux_stats() 1146 (long)pstats->rx_length_errors, (long)pstats->rx_over_errors); in pr_linux_stats() 1148 (long)pstats->rx_crc_errors, (long)pstats->rx_frame_errors); in pr_linux_stats() 1150 (long)pstats->rx_fifo_errors, (long)pstats->rx_missed_errors); in pr_linux_stats() 1153 (long)pstats->tx_aborted_errors, (long)pstats->tx_carrier_errors); in pr_linux_stats() 1155 (long)pstats->tx_fifo_errors, (long)pstats->tx_heartbeat_errors); in pr_linux_stats() [all …]
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
| H A D | mac.c | 571 struct rtl_stats *pstats, in _rtl92c_query_rxphystatus() argument 590 pstats->packet_matchbssid = packet_match_bssid; in _rtl92c_query_rxphystatus() 591 pstats->packet_toself = packet_toself; in _rtl92c_query_rxphystatus() 592 pstats->packet_beacon = packet_beacon; in _rtl92c_query_rxphystatus() 593 pstats->is_cck = is_cck_rate; in _rtl92c_query_rxphystatus() 594 pstats->RX_SIGQ[0] = -1; in _rtl92c_query_rxphystatus() 595 pstats->RX_SIGQ[1] = -1; in _rtl92c_query_rxphystatus() 644 pstats->rx_pwdb_all = pwdb_all; in _rtl92c_query_rxphystatus() 645 pstats->recvsignalpower = rx_pwr_all; in _rtl92c_query_rxphystatus() 649 if (pstats->rx_pwdb_all > 40) in _rtl92c_query_rxphystatus() [all …]
|
| H A D | mac.h | 124 struct rtl_stats *pstats,
|
| /linux/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_stats.c | 551 struct host_port_stats *pstats = bnx2x_sp(bp, port_stats); in bnx2x_bmac_stats_update() local 628 pstats->pfc_frames_tx_hi = new->tx_stat_gtpp_hi; in bnx2x_bmac_stats_update() 629 pstats->pfc_frames_tx_lo = new->tx_stat_gtpp_lo; in bnx2x_bmac_stats_update() 631 pstats->pfc_frames_rx_hi = new->rx_stat_grpp_hi; in bnx2x_bmac_stats_update() 632 pstats->pfc_frames_rx_lo = new->rx_stat_grpp_lo; in bnx2x_bmac_stats_update() 636 pstats->mac_stx[1].rx_stat_mac_xpf_hi; in bnx2x_bmac_stats_update() 638 pstats->mac_stx[1].rx_stat_mac_xpf_lo; in bnx2x_bmac_stats_update() 641 pstats->mac_stx[1].tx_stat_outxoffsent_hi; in bnx2x_bmac_stats_update() 643 pstats->mac_stx[1].tx_stat_outxoffsent_lo; in bnx2x_bmac_stats_update() 646 pstats->pfc_frames_rx_hi; in bnx2x_bmac_stats_update() [all …]
|
| H A D | bnx2x_stats.h | 396 DIFF_64(diff.hi, new->s##_hi, pstats->mac_stx[0].t##_hi, \ 397 diff.lo, new->s##_lo, pstats->mac_stx[0].t##_lo); \ 398 pstats->mac_stx[0].t##_hi = new->s##_hi; \ 399 pstats->mac_stx[0].t##_lo = new->s##_lo; \ 400 ADD_64(pstats->mac_stx[1].t##_hi, diff.hi, \ 401 pstats->mac_stx[1].t##_lo, diff.lo); \ 421 ADD_64(pstats->mac_stx[1].t##_hi, new->diff##_hi, \ 422 pstats->mac_stx[1].t##_lo, new->diff##_lo); \ 427 ADD_EXTEND_64(pstats->mac_stx[1].s##_hi, \ 428 pstats->mac_stx[1].s##_lo, \
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | htt_rx.c | 3667 struct ath10k_per_peer_tx_stats *pstats, in ath10k_accumulate_per_peer_tx_stats() argument 3681 mcs = ATH10K_HW_MCS_RATE(pstats->ratecode); in ath10k_accumulate_per_peer_tx_stats() 3691 STATS_OP_FMT(SUCC).vht[0][mcs] += pstats->succ_bytes; in ath10k_accumulate_per_peer_tx_stats() 3692 STATS_OP_FMT(SUCC).vht[1][mcs] += pstats->succ_pkts; in ath10k_accumulate_per_peer_tx_stats() 3693 STATS_OP_FMT(FAIL).vht[0][mcs] += pstats->failed_bytes; in ath10k_accumulate_per_peer_tx_stats() 3694 STATS_OP_FMT(FAIL).vht[1][mcs] += pstats->failed_pkts; in ath10k_accumulate_per_peer_tx_stats() 3695 STATS_OP_FMT(RETRY).vht[0][mcs] += pstats->retry_bytes; in ath10k_accumulate_per_peer_tx_stats() 3696 STATS_OP_FMT(RETRY).vht[1][mcs] += pstats->retry_pkts; in ath10k_accumulate_per_peer_tx_stats() 3698 STATS_OP_FMT(SUCC).ht[0][ht_idx] += pstats->succ_bytes; in ath10k_accumulate_per_peer_tx_stats() 3699 STATS_OP_FMT(SUCC).ht[1][ht_idx] += pstats->succ_pkts; in ath10k_accumulate_per_peer_tx_stats() [all …]
|
| /linux/drivers/net/vxlan/ |
| H A D | vxlan_vnifilter.c | 122 struct vxlan_vni_stats_pcpu *pstats; in vxlan_vnifilter_stats_get() local 126 pstats = per_cpu_ptr(vninode->stats, i); in vxlan_vnifilter_stats_get() 128 start = u64_stats_fetch_begin(&pstats->syncp); in vxlan_vnifilter_stats_get() 129 memcpy(&temp, &pstats->stats, sizeof(temp)); in vxlan_vnifilter_stats_get() 130 } while (u64_stats_fetch_retry(&pstats->syncp, start)); in vxlan_vnifilter_stats_get() 146 struct vxlan_vni_stats_pcpu *pstats = this_cpu_ptr(vninode->stats); in vxlan_vnifilter_stats_add() local 148 u64_stats_update_begin(&pstats->syncp); in vxlan_vnifilter_stats_add() 151 pstats->stats.rx_bytes += len; in vxlan_vnifilter_stats_add() 152 pstats->stats.rx_packets++; in vxlan_vnifilter_stats_add() 155 pstats->stats.rx_drops++; in vxlan_vnifilter_stats_add() [all …]
|
| /linux/drivers/infiniband/hw/ocrdma/ |
| H A D | ocrdma_stats.c | 468 char *pstats = dev->stats_mem.debugfs_mem; in ocrdma_tx_dbg_stats() local 474 memset(pstats, 0, (OCRDMA_MAX_DBGFS_MEM)); in ocrdma_tx_dbg_stats() 477 pstats += snprintf(pstats, 80, "DW[%d] = 0x%x\n", i, in ocrdma_tx_dbg_stats() 486 char *pstats = dev->stats_mem.debugfs_mem; in ocrdma_rx_dbg_stats() local 492 memset(pstats, 0, (OCRDMA_MAX_DBGFS_MEM)); in ocrdma_rx_dbg_stats() 495 pstats += snprintf(pstats, 80, "DW[%d] = 0x%x\n", i, in ocrdma_rx_dbg_stats() 641 struct ocrdma_stats *pstats = filp->private_data; in ocrdma_dbgfs_ops_write() local 642 struct ocrdma_dev *dev = pstats->dev; in ocrdma_dbgfs_ops_write() 654 switch (pstats->type) { in ocrdma_dbgfs_ops_write() 689 struct ocrdma_stats *pstats = filp->private_data; in ocrdma_dbgfs_ops_read() local [all …]
|
| /linux/drivers/net/ethernet/synopsys/ |
| H A D | dwc-xlgmac-net.c | 771 struct xlgmac_stats *pstats = &pdata->stats; in xlgmac_get_stats64() local 775 s->rx_packets = pstats->rxframecount_gb; in xlgmac_get_stats64() 776 s->rx_bytes = pstats->rxoctetcount_gb; in xlgmac_get_stats64() 777 s->rx_errors = pstats->rxframecount_gb - in xlgmac_get_stats64() 778 pstats->rxbroadcastframes_g - in xlgmac_get_stats64() 779 pstats->rxmulticastframes_g - in xlgmac_get_stats64() 780 pstats->rxunicastframes_g; in xlgmac_get_stats64() 781 s->multicast = pstats->rxmulticastframes_g; in xlgmac_get_stats64() 782 s->rx_length_errors = pstats->rxlengtherror; in xlgmac_get_stats64() 783 s->rx_crc_errors = pstats->rxcrcerror; in xlgmac_get_stats64() [all …]
|
| /linux/net/netfilter/ |
| H A D | nf_tables_core.c | 182 struct nft_stats __percpu *pstats; in nft_update_chain_stats() local 187 pstats = READ_ONCE(base_chain->stats); in nft_update_chain_stats() 188 if (pstats) { in nft_update_chain_stats() 190 stats = this_cpu_ptr(pstats); in nft_update_chain_stats()
|
| /linux/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_fcoe.c | 678 struct fcoe_tx_stat pstats; in _qed_fcoe_get_pstats() local 681 memset(&pstats, 0, sizeof(pstats)); in _qed_fcoe_get_pstats() 684 qed_memcpy_from(p_hwfn, p_ptt, &pstats, pstats_addr, sizeof(pstats)); in _qed_fcoe_get_pstats() 686 p_stats->fcoe_tx_byte_cnt = HILO_64_REGPAIR(pstats.fcoe_tx_byte_cnt); in _qed_fcoe_get_pstats() 688 HILO_64_REGPAIR(pstats.fcoe_tx_data_pkt_cnt); in _qed_fcoe_get_pstats() 690 HILO_64_REGPAIR(pstats.fcoe_tx_xfer_pkt_cnt); in _qed_fcoe_get_pstats() 692 HILO_64_REGPAIR(pstats.fcoe_tx_other_pkt_cnt); in _qed_fcoe_get_pstats()
|
| H A D | qed_l2.c | 1609 *p_addr = p_resp->pfdev_info.stats_info.pstats.address; in __qed_get_vport_pstats_addrlen() 1610 *p_len = p_resp->pfdev_info.stats_info.pstats.len; in __qed_get_vport_pstats_addrlen() 1618 struct eth_pstorm_per_queue_stat pstats; in __qed_get_vport_pstats() local 1624 memset(&pstats, 0, sizeof(pstats)); in __qed_get_vport_pstats() 1625 qed_memcpy_from(p_hwfn, p_ptt, &pstats, pstats_addr, pstats_len); in __qed_get_vport_pstats() 1628 HILO_64_REGPAIR(pstats.sent_ucast_bytes); in __qed_get_vport_pstats() 1630 HILO_64_REGPAIR(pstats.sent_mcast_bytes); in __qed_get_vport_pstats() 1632 HILO_64_REGPAIR(pstats.sent_bcast_bytes); in __qed_get_vport_pstats() 1634 HILO_64_REGPAIR(pstats.sent_ucast_pkts); in __qed_get_vport_pstats() 1636 HILO_64_REGPAIR(pstats.sent_mcast_pkts); in __qed_get_vport_pstats() [all …]
|
| H A D | qed_iscsi.c | 987 struct pstorm_iscsi_stats_drv pstats; in _qed_iscsi_get_pstats() local 990 memset(&pstats, 0, sizeof(pstats)); in _qed_iscsi_get_pstats() 993 qed_memcpy_from(p_hwfn, p_ptt, &pstats, pstats_addr, sizeof(pstats)); in _qed_iscsi_get_pstats() 996 HILO_64_REGPAIR(pstats.iscsi_tx_bytes_cnt); in _qed_iscsi_get_pstats() 998 HILO_64_REGPAIR(pstats.iscsi_tx_packet_cnt); in _qed_iscsi_get_pstats()
|
| H A D | qed_ll2.c | 2301 struct core_ll2_pstorm_per_queue_stat pstats; in _qed_ll2_get_pstats() local 2305 memset(&pstats, 0, sizeof(pstats)); in _qed_ll2_get_pstats() 2308 qed_memcpy_from(p_hwfn, p_ptt, &pstats, pstats_addr, sizeof(pstats)); in _qed_ll2_get_pstats() 2310 p_stats->sent_ucast_bytes += HILO_64_REGPAIR(pstats.sent_ucast_bytes); in _qed_ll2_get_pstats() 2311 p_stats->sent_mcast_bytes += HILO_64_REGPAIR(pstats.sent_mcast_bytes); in _qed_ll2_get_pstats() 2312 p_stats->sent_bcast_bytes += HILO_64_REGPAIR(pstats.sent_bcast_bytes); in _qed_ll2_get_pstats() 2313 p_stats->sent_ucast_pkts += HILO_64_REGPAIR(pstats.sent_ucast_pkts); in _qed_ll2_get_pstats() 2314 p_stats->sent_mcast_pkts += HILO_64_REGPAIR(pstats.sent_mcast_pkts); in _qed_ll2_get_pstats() 2315 p_stats->sent_bcast_pkts += HILO_64_REGPAIR(pstats.sent_bcast_pkts); in _qed_ll2_get_pstats()
|
| H A D | qed_vf.h | 145 struct pfvf_storm_stats pstats; member
|
| H A D | qed_sriov.c | 1527 p_stats->pstats.address = PXP_VF_BAR0_START_PSDM_ZONE_B + in qed_iov_vf_mbx_acquire_stats() 1530 p_stats->pstats.len = sizeof(struct eth_pstorm_per_queue_stat); in qed_iov_vf_mbx_acquire_stats()
|
| /linux/drivers/net/ethernet/amd/xgbe/ |
| H A D | xgbe-drv.c | 1825 struct xgbe_mmc_stats *pstats = &pdata->mmc_stats; in xgbe_get_stats64() local 1831 s->rx_packets = pstats->rxframecount_gb; in xgbe_get_stats64() 1832 s->rx_bytes = pstats->rxoctetcount_gb; in xgbe_get_stats64() 1833 s->rx_errors = pstats->rxframecount_gb - in xgbe_get_stats64() 1834 pstats->rxbroadcastframes_g - in xgbe_get_stats64() 1835 pstats->rxmulticastframes_g - in xgbe_get_stats64() 1836 pstats->rxunicastframes_g; in xgbe_get_stats64() 1837 s->multicast = pstats->rxmulticastframes_g; in xgbe_get_stats64() 1838 s->rx_length_errors = pstats->rxlengtherror; in xgbe_get_stats64() 1839 s->rx_crc_errors = pstats->rxcrcerror; in xgbe_get_stats64() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_stats.c | 884 struct mlx5e_pport_stats *pstats = &priv->stats.pport; variable 894 out = pstats->IEEE_802_3_counters; 1042 struct mlx5e_pport_stats *pstats = &priv->stats.pport; variable 1049 out = pstats->RFC_2863_counters; 1101 struct mlx5e_pport_stats *pstats = &priv->stats.pport; variable 1111 out = pstats->RFC_2819_counters; 1344 struct mlx5e_pport_stats *pstats = &priv->stats.pport; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS() local 1351 out = pstats->phy_counters; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS() 1356 out = pstats->phy_statistical_counters; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS() 1364 out = pstats->phy_recovery_counters; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS() [all …]
|
| H A D | en_dcbnl.c | 348 struct mlx5e_pport_stats *pstats = &priv->stats.pport; in mlx5e_dcbnl_ieee_getpfc() local 353 pfc->requests[i] = PPORT_PER_PRIO_GET(pstats, i, tx_pause); in mlx5e_dcbnl_ieee_getpfc() 354 pfc->indications[i] = PPORT_PER_PRIO_GET(pstats, i, rx_pause); in mlx5e_dcbnl_ieee_getpfc()
|
| /linux/drivers/net/dsa/qca/ |
| H A D | ar9331.c | 611 struct ethtool_pause_stats *pstats = &port->pause_stats; in ar9331_read_stats() local 652 pstats->tx_pause_frames += raw.txpause; in ar9331_read_stats() 653 pstats->rx_pause_frames += raw.rxpause; in ar9331_read_stats()
|
| /linux/drivers/net/dsa/microchip/ |
| H A D | ksz_common.c | 2227 struct ethtool_pause_stats *pstats; in ksz_r_mib_stats64() local 2235 pstats = &mib->pause_stats; in ksz_r_mib_stats64() 2269 pstats->tx_pause_frames = raw->tx_pause; in ksz_r_mib_stats64() 2270 pstats->rx_pause_frames = raw->rx_pause; in ksz_r_mib_stats64() 2283 struct ethtool_pause_stats *pstats; in ksz88xx_r_mib_stats64() local 2290 pstats = &mib->pause_stats; in ksz88xx_r_mib_stats64() 2324 pstats->tx_pause_frames = raw->tx_pause; in ksz88xx_r_mib_stats64() 2325 pstats->rx_pause_frames = raw->rx_pause; in ksz88xx_r_mib_stats64()
|
| /linux/kernel/bpf/ |
| H A D | core.c | 166 struct bpf_prog_stats *pstats; in bpf_prog_alloc() local 168 pstats = per_cpu_ptr(prog->stats, cpu); in bpf_prog_alloc() 169 u64_stats_init(&pstats->syncp); in bpf_prog_alloc()
|