Home
last modified time | relevance | path

Searched refs:stats (Results 1 – 25 of 1327) sorted by relevance

12345678910>>...54

/drivers/infiniband/hw/bnxt_re/
Dhw_counters.c116 struct rdma_hw_stats *stats, in bnxt_re_ib_get_hw_stats() argument
120 struct ctx_hw_stats *bnxt_re_stats = rdev->qplib_ctx.stats.dma; in bnxt_re_ib_get_hw_stats()
123 if (!port || !stats) in bnxt_re_ib_get_hw_stats()
126 stats->value[BNXT_RE_ACTIVE_QP] = atomic_read(&rdev->qp_count); in bnxt_re_ib_get_hw_stats()
127 stats->value[BNXT_RE_ACTIVE_SRQ] = atomic_read(&rdev->srq_count); in bnxt_re_ib_get_hw_stats()
128 stats->value[BNXT_RE_ACTIVE_CQ] = atomic_read(&rdev->cq_count); in bnxt_re_ib_get_hw_stats()
129 stats->value[BNXT_RE_ACTIVE_MR] = atomic_read(&rdev->mr_count); in bnxt_re_ib_get_hw_stats()
130 stats->value[BNXT_RE_ACTIVE_MW] = atomic_read(&rdev->mw_count); in bnxt_re_ib_get_hw_stats()
132 stats->value[BNXT_RE_RECOVERABLE_ERRORS] = in bnxt_re_ib_get_hw_stats()
134 stats->value[BNXT_RE_RX_DROPS] = in bnxt_re_ib_get_hw_stats()
[all …]
/drivers/cpufreq/
Dcpufreq_stats.c30 static void cpufreq_stats_update(struct cpufreq_stats *stats, in cpufreq_stats_update() argument
35 stats->time_in_state[stats->last_index] += cur_time - time; in cpufreq_stats_update()
36 stats->last_time = cur_time; in cpufreq_stats_update()
39 static void cpufreq_stats_reset_table(struct cpufreq_stats *stats) in cpufreq_stats_reset_table() argument
41 unsigned int count = stats->max_state; in cpufreq_stats_reset_table()
43 memset(stats->time_in_state, 0, count * sizeof(u64)); in cpufreq_stats_reset_table()
44 memset(stats->trans_table, 0, count * count * sizeof(int)); in cpufreq_stats_reset_table()
45 stats->last_time = get_jiffies_64(); in cpufreq_stats_reset_table()
46 stats->total_trans = 0; in cpufreq_stats_reset_table()
49 WRITE_ONCE(stats->reset_pending, 0); in cpufreq_stats_reset_table()
[all …]
/drivers/infiniband/hw/ocrdma/
Docrdma_stats.c104 char *stats = dev->stats_mem.debugfs_mem, *pcur; in ocrdma_resource_stats() local
109 memset(stats, 0, (OCRDMA_MAX_DBGFS_MEM)); in ocrdma_resource_stats()
111 pcur = stats; in ocrdma_resource_stats()
112 pcur += ocrdma_add_stat(stats, pcur, "active_dpp_pds", in ocrdma_resource_stats()
114 pcur += ocrdma_add_stat(stats, pcur, "active_non_dpp_pds", in ocrdma_resource_stats()
116 pcur += ocrdma_add_stat(stats, pcur, "active_rc_dpp_qps", in ocrdma_resource_stats()
118 pcur += ocrdma_add_stat(stats, pcur, "active_uc_dpp_qps", in ocrdma_resource_stats()
120 pcur += ocrdma_add_stat(stats, pcur, "active_ud_dpp_qps", in ocrdma_resource_stats()
122 pcur += ocrdma_add_stat(stats, pcur, "active_rc_non_dpp_qps", in ocrdma_resource_stats()
124 pcur += ocrdma_add_stat(stats, pcur, "active_uc_non_dpp_qps", in ocrdma_resource_stats()
[all …]
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Ddebug.c102 struct macstat stats; in brcms_debugfs_macstat_read() local
106 stats = *(drvr->wlc->core->macstat_snapshot); in brcms_debugfs_macstat_read()
109 seq_printf(s, "txallfrm: %d\n", stats.txallfrm); in brcms_debugfs_macstat_read()
110 seq_printf(s, "txrtsfrm: %d\n", stats.txrtsfrm); in brcms_debugfs_macstat_read()
111 seq_printf(s, "txctsfrm: %d\n", stats.txctsfrm); in brcms_debugfs_macstat_read()
112 seq_printf(s, "txackfrm: %d\n", stats.txackfrm); in brcms_debugfs_macstat_read()
113 seq_printf(s, "txdnlfrm: %d\n", stats.txdnlfrm); in brcms_debugfs_macstat_read()
114 seq_printf(s, "txbcnfrm: %d\n", stats.txbcnfrm); in brcms_debugfs_macstat_read()
116 for (i = 0; i < ARRAY_SIZE(stats.txfunfl); i++) in brcms_debugfs_macstat_read()
117 seq_printf(s, " %d", stats.txfunfl[i]); in brcms_debugfs_macstat_read()
[all …]
/drivers/net/wireless/realtek/rtlwifi/
Dstats.c80 rtlpriv->stats.pwdb_all_cnt += pstatus->rx_pwdb_all; in rtl_process_ui_rssi()
81 rtlpriv->stats.rssi_calculate_cnt++; in rtl_process_ui_rssi()
83 if (rtlpriv->stats.ui_rssi.total_num++ >= PHY_RSSI_SLID_WIN_MAX) { in rtl_process_ui_rssi()
84 rtlpriv->stats.ui_rssi.total_num = PHY_RSSI_SLID_WIN_MAX; in rtl_process_ui_rssi()
85 last_rssi = rtlpriv->stats.ui_rssi.elements[ in rtl_process_ui_rssi()
86 rtlpriv->stats.ui_rssi.index]; in rtl_process_ui_rssi()
87 rtlpriv->stats.ui_rssi.total_val -= last_rssi; in rtl_process_ui_rssi()
89 rtlpriv->stats.ui_rssi.total_val += pstatus->signalstrength; in rtl_process_ui_rssi()
90 rtlpriv->stats.ui_rssi.elements[rtlpriv->stats.ui_rssi.index++] = in rtl_process_ui_rssi()
92 if (rtlpriv->stats.ui_rssi.index >= PHY_RSSI_SLID_WIN_MAX) in rtl_process_ui_rssi()
[all …]
/drivers/infiniband/hw/hfi1/
Dvnic_main.c66 #define SUM_GRP_COUNTERS(stats, qstats, x_grp) do { \ argument
69 dst64 = &stats->x_grp.unicast; \
70 dst64 <= &stats->x_grp.s_1519_max;) { \
80 struct opa_vnic_stats *stats) in hfi1_vnic_update_stats() argument
87 struct opa_vnic_stats *qstats = &vinfo->stats[i]; in hfi1_vnic_update_stats()
88 struct rtnl_link_stats64 *qnstats = &vinfo->stats[i].netstats; in hfi1_vnic_update_stats()
90 stats->netstats.tx_fifo_errors += qnstats->tx_fifo_errors; in hfi1_vnic_update_stats()
91 stats->netstats.tx_carrier_errors += qnstats->tx_carrier_errors; in hfi1_vnic_update_stats()
92 stats->tx_drop_state += qstats->tx_drop_state; in hfi1_vnic_update_stats()
93 stats->tx_dlid_zero += qstats->tx_dlid_zero; in hfi1_vnic_update_stats()
[all …]
/drivers/scsi/snic/
Dsnic_debugfs.c121 struct snic_stats *stats = &snic->s_stats; in snic_reset_stats_write() local
122 u64 *io_stats_p = (u64 *) &stats->io; in snic_reset_stats_write()
123 u64 *fw_stats_p = (u64 *) &stats->fw; in snic_reset_stats_write()
148 atomic64_read(&stats->io.active)); in snic_reset_stats_write()
149 memset(&stats->abts, 0, sizeof(struct snic_abort_stats)); in snic_reset_stats_write()
150 memset(&stats->reset, 0, sizeof(struct snic_reset_stats)); in snic_reset_stats_write()
151 memset(&stats->misc, 0, sizeof(struct snic_misc_stats)); in snic_reset_stats_write()
182 struct snic_stats *stats = &snic->s_stats; in snic_stats_show() local
193 maxio_tm = (u64) atomic64_read(&stats->io.max_time); in snic_stats_show()
209 (u64) atomic64_read(&stats->io.active), in snic_stats_show()
[all …]
/drivers/net/wireless/st/cw1200/
Dqueue.c28 struct cw1200_queue_stats *stats = queue->stats; in __cw1200_queue_lock() local
32 ieee80211_stop_queue(stats->priv->hw, queue->queue_id); in __cw1200_queue_lock()
38 struct cw1200_queue_stats *stats = queue->stats; in __cw1200_queue_unlock() local
43 ieee80211_wake_queue(stats->priv->hw, queue->queue_id); in __cw1200_queue_unlock()
66 static void cw1200_queue_post_gc(struct cw1200_queue_stats *stats, in cw1200_queue_post_gc() argument
73 stats->skb_dtor(stats->priv, item->skb, &item->txpriv); in cw1200_queue_post_gc()
92 struct cw1200_queue_stats *stats = queue->stats; in __cw1200_queue_gc() local
101 spin_lock_bh(&stats->lock); in __cw1200_queue_gc()
102 --stats->num_queued; in __cw1200_queue_gc()
103 if (!--stats->link_map_cache[item->txpriv.link_id]) in __cw1200_queue_gc()
[all …]
/drivers/scsi/fnic/
Dfnic_trace.c216 struct fnic_stats *stats) in fnic_get_stats_data() argument
235 (s64)stats->stats_timestamps.last_reset_time.tv_sec, in fnic_get_stats_data()
236 stats->stats_timestamps.last_reset_time.tv_nsec, in fnic_get_stats_data()
237 (s64)stats->stats_timestamps.last_read_time.tv_sec, in fnic_get_stats_data()
238 stats->stats_timestamps.last_read_time.tv_nsec, in fnic_get_stats_data()
239 (s64)timespec64_sub(val1, stats->stats_timestamps.last_reset_time).tv_sec, in fnic_get_stats_data()
240 timespec64_sub(val1, stats->stats_timestamps.last_reset_time).tv_nsec, in fnic_get_stats_data()
241 (s64)timespec64_sub(val1, stats->stats_timestamps.last_read_time).tv_sec, in fnic_get_stats_data()
242 timespec64_sub(val1, stats->stats_timestamps.last_read_time).tv_nsec); in fnic_get_stats_data()
244 stats->stats_timestamps.last_read_time = val1; in fnic_get_stats_data()
[all …]
/drivers/staging/media/rkisp1/
Drkisp1-stats.c25 struct rkisp1_stats *stats = video_get_drvdata(video); in rkisp1_stats_enum_fmt_meta_cap() local
30 f->pixelformat = stats->vdev_fmt.fmt.meta.dataformat; in rkisp1_stats_enum_fmt_meta_cap()
38 struct rkisp1_stats *stats = video_get_drvdata(video); in rkisp1_stats_g_fmt_meta_cap() local
45 meta->dataformat = stats->vdev_fmt.fmt.meta.dataformat; in rkisp1_stats_g_fmt_meta_cap()
46 meta->buffersize = stats->vdev_fmt.fmt.meta.buffersize; in rkisp1_stats_g_fmt_meta_cap()
97 struct rkisp1_stats *stats = vq->drv_priv; in rkisp1_stats_vb2_queue_setup() local
106 INIT_LIST_HEAD(&stats->stat); in rkisp1_stats_vb2_queue_setup()
138 struct rkisp1_stats *stats = vq->drv_priv; in rkisp1_stats_vb2_stop_streaming() local
142 spin_lock_irq(&stats->lock); in rkisp1_stats_vb2_stop_streaming()
143 stats->is_streaming = false; in rkisp1_stats_vb2_stop_streaming()
[all …]
/drivers/infiniband/ulp/rtrs/
Drtrs-clt-stats.c17 struct rtrs_clt_stats *stats = sess->stats; in rtrs_clt_update_wc_stats() local
22 s = this_cpu_ptr(stats->pcpu_stats); in rtrs_clt_update_wc_stats()
27 s = per_cpu_ptr(stats->pcpu_stats, con->cpu); in rtrs_clt_update_wc_stats()
32 void rtrs_clt_inc_failover_cnt(struct rtrs_clt_stats *stats) in rtrs_clt_inc_failover_cnt() argument
36 s = this_cpu_ptr(stats->pcpu_stats); in rtrs_clt_inc_failover_cnt()
40 int rtrs_clt_stats_migration_cnt_to_str(struct rtrs_clt_stats *stats, in rtrs_clt_stats_migration_cnt_to_str() argument
54 s = per_cpu_ptr(stats->pcpu_stats, cpu); in rtrs_clt_stats_migration_cnt_to_str()
61 s = per_cpu_ptr(stats->pcpu_stats, cpu); in rtrs_clt_stats_migration_cnt_to_str()
70 int rtrs_clt_stats_reconnects_to_str(struct rtrs_clt_stats *stats, char *buf, in rtrs_clt_stats_reconnects_to_str() argument
74 stats->reconnects.successful_cnt, in rtrs_clt_stats_reconnects_to_str()
[all …]
/drivers/infiniband/hw/cxgb4/
Dresource.c125 mutex_lock(&rdev->stats.lock); in c4iw_get_cqid()
126 rdev->stats.qid.cur += rdev->qpmask + 1; in c4iw_get_cqid()
127 mutex_unlock(&rdev->stats.lock); in c4iw_get_cqid()
156 mutex_lock(&rdev->stats.lock); in c4iw_get_cqid()
157 if (rdev->stats.qid.cur > rdev->stats.qid.max) in c4iw_get_cqid()
158 rdev->stats.qid.max = rdev->stats.qid.cur; in c4iw_get_cqid()
159 mutex_unlock(&rdev->stats.lock); in c4iw_get_cqid()
194 mutex_lock(&rdev->stats.lock); in c4iw_get_qpid()
195 rdev->stats.qid.fail++; in c4iw_get_qpid()
196 mutex_unlock(&rdev->stats.lock); in c4iw_get_qpid()
[all …]
/drivers/staging/rtl8192u/
Dr819xU_cmdpkt.c89 priv->stats.txfeedbackok++; in cmpk_count_txstatistic()
90 priv->stats.txoktotal++; in cmpk_count_txstatistic()
91 priv->stats.txokbytestotal += pstx_fb->pkt_length; in cmpk_count_txstatistic()
92 priv->stats.txokinperiod++; in cmpk_count_txstatistic()
96 priv->stats.txmulticast++; in cmpk_count_txstatistic()
97 priv->stats.txbytesmulticast += pstx_fb->pkt_length; in cmpk_count_txstatistic()
99 priv->stats.txbroadcast++; in cmpk_count_txstatistic()
100 priv->stats.txbytesbroadcast += pstx_fb->pkt_length; in cmpk_count_txstatistic()
102 priv->stats.txunicast++; in cmpk_count_txstatistic()
103 priv->stats.txbytesunicast += pstx_fb->pkt_length; in cmpk_count_txstatistic()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Dtrx.c151 rtlpriv->stats.rx_snr_db[i] = in _rtl92de_query_rxphystatus()
194 if (rtlpriv->stats.rx_rssi_percentage[rfpath] == 0) { in rtl92d_loop_over_paths()
195 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl92d_loop_over_paths()
200 rtlpriv->stats.rx_rssi_percentage[rfpath]) { in rtl92d_loop_over_paths()
201 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl92d_loop_over_paths()
202 ((rtlpriv->stats.rx_rssi_percentage[rfpath] * in rtl92d_loop_over_paths()
206 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl92d_loop_over_paths()
207 rtlpriv->stats.rx_rssi_percentage[rfpath] + 1; in rtl92d_loop_over_paths()
209 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl92d_loop_over_paths()
210 ((rtlpriv->stats.rx_rssi_percentage[rfpath] * in rtl92d_loop_over_paths()
[all …]
/drivers/net/ethernet/netronome/nfp/
Dnfp_net_repr.c31 struct nfp_repr_pcpu_stats *stats; in nfp_repr_inc_tx_stats() local
35 this_cpu_inc(repr->stats->tx_drops); in nfp_repr_inc_tx_stats()
39 stats = this_cpu_ptr(repr->stats); in nfp_repr_inc_tx_stats()
40 u64_stats_update_begin(&stats->syncp); in nfp_repr_inc_tx_stats()
41 stats->tx_packets++; in nfp_repr_inc_tx_stats()
42 stats->tx_bytes += len; in nfp_repr_inc_tx_stats()
43 u64_stats_update_end(&stats->syncp); in nfp_repr_inc_tx_stats()
49 struct nfp_repr_pcpu_stats *stats; in nfp_repr_inc_rx_stats() local
51 stats = this_cpu_ptr(repr->stats); in nfp_repr_inc_rx_stats()
52 u64_stats_update_begin(&stats->syncp); in nfp_repr_inc_rx_stats()
[all …]
/drivers/net/fddi/skfp/
Dskfddi.c683 …memcpy(bp->stats.smt_station_id, &bp->cmd_rsp_virt->smt_mib_get.smt_station_id, sizeof(bp->cmd_rsp… in skfp_ctl_get_stats()
684 bp->stats.smt_op_version_id = bp->cmd_rsp_virt->smt_mib_get.smt_op_version_id; in skfp_ctl_get_stats()
685 bp->stats.smt_hi_version_id = bp->cmd_rsp_virt->smt_mib_get.smt_hi_version_id; in skfp_ctl_get_stats()
686 bp->stats.smt_lo_version_id = bp->cmd_rsp_virt->smt_mib_get.smt_lo_version_id; in skfp_ctl_get_stats()
687 …memcpy(bp->stats.smt_user_data, &bp->cmd_rsp_virt->smt_mib_get.smt_user_data, sizeof(bp->cmd_rsp_v… in skfp_ctl_get_stats()
688 bp->stats.smt_mib_version_id = bp->cmd_rsp_virt->smt_mib_get.smt_mib_version_id; in skfp_ctl_get_stats()
689 bp->stats.smt_mac_cts = bp->cmd_rsp_virt->smt_mib_get.smt_mac_ct; in skfp_ctl_get_stats()
690 bp->stats.smt_non_master_cts = bp->cmd_rsp_virt->smt_mib_get.smt_non_master_ct; in skfp_ctl_get_stats()
691 bp->stats.smt_master_cts = bp->cmd_rsp_virt->smt_mib_get.smt_master_ct; in skfp_ctl_get_stats()
692 bp->stats.smt_available_paths = bp->cmd_rsp_virt->smt_mib_get.smt_available_paths; in skfp_ctl_get_stats()
[all …]
/drivers/thermal/
Dthermal_sysfs.c742 static void update_time_in_state(struct cooling_dev_stats *stats) in update_time_in_state() argument
746 delta = ktime_sub(now, stats->last_time); in update_time_in_state()
747 stats->time_in_state[stats->state] = in update_time_in_state()
748 ktime_add(stats->time_in_state[stats->state], delta); in update_time_in_state()
749 stats->last_time = now; in update_time_in_state()
755 struct cooling_dev_stats *stats = cdev->stats; in thermal_cooling_device_stats_update() local
757 if (!stats) in thermal_cooling_device_stats_update()
760 spin_lock(&stats->lock); in thermal_cooling_device_stats_update()
762 if (stats->state == new_state) in thermal_cooling_device_stats_update()
765 update_time_in_state(stats); in thermal_cooling_device_stats_update()
[all …]
/drivers/net/ethernet/aquantia/atlantic/
Daq_ring.c73 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages()
74 self->stats.rx.pg_flips++; in aq_get_rxpages()
75 u64_stats_update_end(&self->stats.rx.syncp); in aq_get_rxpages()
82 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages()
83 self->stats.rx.pg_losts++; in aq_get_rxpages()
84 u64_stats_update_end(&self->stats.rx.syncp); in aq_get_rxpages()
88 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages()
89 self->stats.rx.pg_reuses++; in aq_get_rxpages()
90 u64_stats_update_end(&self->stats.rx.syncp); in aq_get_rxpages()
98 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages()
[all …]
Daq_macsec.c134 struct aq_macsec_common_stats *stats) in aq_get_macsec_common_stats() argument
145 stats->in.ctl_pkts = STATS_2x32_TO_64(ingress_counters.ctl_pkts); in aq_get_macsec_common_stats()
146 stats->in.tagged_miss_pkts = in aq_get_macsec_common_stats()
148 stats->in.untagged_miss_pkts = in aq_get_macsec_common_stats()
150 stats->in.notag_pkts = STATS_2x32_TO_64(ingress_counters.notag_pkts); in aq_get_macsec_common_stats()
151 stats->in.untagged_pkts = in aq_get_macsec_common_stats()
153 stats->in.bad_tag_pkts = in aq_get_macsec_common_stats()
155 stats->in.no_sci_pkts = STATS_2x32_TO_64(ingress_counters.no_sci_pkts); in aq_get_macsec_common_stats()
156 stats->in.unknown_sci_pkts = in aq_get_macsec_common_stats()
158 stats->in.ctrl_prt_pass_pkts = in aq_get_macsec_common_stats()
[all …]
/drivers/net/wireless/ath/ath6kl/
Dmain.c708 struct target_stats *stats = &vif->target_stats; in ath6kl_update_target_stats() local
718 stats->tx_pkt += le32_to_cpu(tgt_stats->stats.tx.pkt); in ath6kl_update_target_stats()
719 stats->tx_byte += le32_to_cpu(tgt_stats->stats.tx.byte); in ath6kl_update_target_stats()
720 stats->tx_ucast_pkt += le32_to_cpu(tgt_stats->stats.tx.ucast_pkt); in ath6kl_update_target_stats()
721 stats->tx_ucast_byte += le32_to_cpu(tgt_stats->stats.tx.ucast_byte); in ath6kl_update_target_stats()
722 stats->tx_mcast_pkt += le32_to_cpu(tgt_stats->stats.tx.mcast_pkt); in ath6kl_update_target_stats()
723 stats->tx_mcast_byte += le32_to_cpu(tgt_stats->stats.tx.mcast_byte); in ath6kl_update_target_stats()
724 stats->tx_bcast_pkt += le32_to_cpu(tgt_stats->stats.tx.bcast_pkt); in ath6kl_update_target_stats()
725 stats->tx_bcast_byte += le32_to_cpu(tgt_stats->stats.tx.bcast_byte); in ath6kl_update_target_stats()
726 stats->tx_rts_success_cnt += in ath6kl_update_target_stats()
[all …]
/drivers/net/wireless/ath/ath10k/
Ddebugfs_sta.c13 struct ath10k_sta_tid_stats *stats, in ath10k_rx_stats_update_amsdu_subfrm() argument
17 stats->rx_pkt_amsdu[ATH10K_AMSDU_SUBFRM_NUM_1]++; in ath10k_rx_stats_update_amsdu_subfrm()
19 stats->rx_pkt_amsdu[ATH10K_AMSDU_SUBFRM_NUM_2]++; in ath10k_rx_stats_update_amsdu_subfrm()
21 stats->rx_pkt_amsdu[ATH10K_AMSDU_SUBFRM_NUM_3]++; in ath10k_rx_stats_update_amsdu_subfrm()
23 stats->rx_pkt_amsdu[ATH10K_AMSDU_SUBFRM_NUM_4]++; in ath10k_rx_stats_update_amsdu_subfrm()
25 stats->rx_pkt_amsdu[ATH10K_AMSDU_SUBFRM_NUM_MORE]++; in ath10k_rx_stats_update_amsdu_subfrm()
29 struct ath10k_sta_tid_stats *stats, in ath10k_rx_stats_update_ampdu_subfrm() argument
33 stats->rx_pkt_ampdu[ATH10K_AMPDU_SUBFRM_NUM_10]++; in ath10k_rx_stats_update_ampdu_subfrm()
35 stats->rx_pkt_ampdu[ATH10K_AMPDU_SUBFRM_NUM_20]++; in ath10k_rx_stats_update_ampdu_subfrm()
37 stats->rx_pkt_ampdu[ATH10K_AMPDU_SUBFRM_NUM_30]++; in ath10k_rx_stats_update_ampdu_subfrm()
[all …]
/drivers/net/ethernet/qualcomm/emac/
Demac.c304 struct emac_stats *stats = &adpt->stats; in emac_update_hw_stats() local
305 u64 *stats_itr = &adpt->stats.rx_ok; in emac_update_hw_stats()
317 stats->rx_crc_align += readl_relaxed(base + EMAC_RXMAC_STATC_REG23); in emac_update_hw_stats()
318 stats->rx_jabbers += readl_relaxed(base + EMAC_RXMAC_STATC_REG24); in emac_update_hw_stats()
322 stats_itr = &stats->tx_ok; in emac_update_hw_stats()
331 stats->tx_col += readl_relaxed(base + EMAC_TXMAC_STATC_REG25); in emac_update_hw_stats()
339 struct emac_stats *stats = &adpt->stats; in emac_get_stats64() local
341 spin_lock(&stats->lock); in emac_get_stats64()
346 net_stats->rx_packets = stats->rx_ok; in emac_get_stats64()
347 net_stats->tx_packets = stats->tx_ok; in emac_get_stats64()
[all …]
/drivers/net/ethernet/arc/
Demac_main.c113 struct net_device_stats *stats = &ndev->stats; in arc_emac_tx_clean() local
127 stats->tx_errors++; in arc_emac_tx_clean()
128 stats->tx_dropped++; in arc_emac_tx_clean()
131 stats->tx_carrier_errors++; in arc_emac_tx_clean()
134 stats->collisions++; in arc_emac_tx_clean()
137 stats->tx_fifo_errors++; in arc_emac_tx_clean()
139 stats->tx_packets++; in arc_emac_tx_clean()
140 stats->tx_bytes += skb->len; in arc_emac_tx_clean()
181 struct net_device_stats *stats = &ndev->stats; in arc_emac_rx() local
206 stats->rx_errors++; in arc_emac_rx()
[all …]
/drivers/net/fddi/
Ddefxx.c2092 bp->stats.gen.rx_packets = bp->rcv_total_frames; in dfx_ctl_get_stats()
2093 bp->stats.gen.tx_packets = bp->xmt_total_frames; in dfx_ctl_get_stats()
2094 bp->stats.gen.rx_bytes = bp->rcv_total_bytes; in dfx_ctl_get_stats()
2095 bp->stats.gen.tx_bytes = bp->xmt_total_bytes; in dfx_ctl_get_stats()
2096 bp->stats.gen.rx_errors = bp->rcv_crc_errors + in dfx_ctl_get_stats()
2099 bp->stats.gen.tx_errors = bp->xmt_length_errors; in dfx_ctl_get_stats()
2100 bp->stats.gen.rx_dropped = bp->rcv_discards; in dfx_ctl_get_stats()
2101 bp->stats.gen.tx_dropped = bp->xmt_discards; in dfx_ctl_get_stats()
2102 bp->stats.gen.multicast = bp->rcv_multicast_frames; in dfx_ctl_get_stats()
2103 bp->stats.gen.collisions = 0; /* always zero (0) for FDDI */ in dfx_ctl_get_stats()
[all …]
/drivers/media/dvb-frontends/
Dtc90522.c199 struct dtv_fe_stats *stats; in tc90522s_get_frontend() local
241 stats = &c->strength; in tc90522s_get_frontend()
242 stats->len = 0; in tc90522s_get_frontend()
250 stats = &c->cnr; in tc90522s_get_frontend()
251 stats->len = 1; in tc90522s_get_frontend()
252 stats->stat[0].scale = FE_SCALE_NOT_AVAILABLE; in tc90522s_get_frontend()
277 stats->stat[0].svalue = cn >> 3; in tc90522s_get_frontend()
278 stats->stat[0].scale = FE_SCALE_DECIBEL; in tc90522s_get_frontend()
282 stats = &c->post_bit_error; in tc90522s_get_frontend()
283 memset(stats, 0, sizeof(*stats)); in tc90522s_get_frontend()
[all …]

12345678910>>...54