Home
last modified time | relevance | path

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

12345678910>>...42

/drivers/cpufreq/
Dcpufreq_stats.c33 static int cpufreq_stats_update(struct cpufreq_stats *stats) in cpufreq_stats_update() argument
38 stats->time_in_state[stats->last_index] += cur_time - stats->last_time; in cpufreq_stats_update()
39 stats->last_time = cur_time; in cpufreq_stats_update()
46 return sprintf(buf, "%d\n", policy->stats->total_trans); in show_total_trans()
51 struct cpufreq_stats *stats = policy->stats; in show_time_in_state() local
58 cpufreq_stats_update(stats); in show_time_in_state()
59 for (i = 0; i < stats->state_num; i++) { in show_time_in_state()
60 len += sprintf(buf + len, "%u %llu\n", stats->freq_table[i], in show_time_in_state()
62 jiffies_64_to_clock_t(stats->time_in_state[i])); in show_time_in_state()
70 struct cpufreq_stats *stats = policy->stats; in show_trans_table() local
[all …]
/drivers/infiniband/hw/ocrdma/
Docrdma_stats.c108 char *stats = dev->stats_mem.debugfs_mem, *pcur; in ocrdma_resource_stats() local
113 memset(stats, 0, (OCRDMA_MAX_DBGFS_MEM)); in ocrdma_resource_stats()
115 pcur = stats; in ocrdma_resource_stats()
116 pcur += ocrdma_add_stat(stats, pcur, "active_dpp_pds", in ocrdma_resource_stats()
118 pcur += ocrdma_add_stat(stats, pcur, "active_non_dpp_pds", in ocrdma_resource_stats()
120 pcur += ocrdma_add_stat(stats, pcur, "active_rc_dpp_qps", in ocrdma_resource_stats()
122 pcur += ocrdma_add_stat(stats, pcur, "active_uc_dpp_qps", in ocrdma_resource_stats()
124 pcur += ocrdma_add_stat(stats, pcur, "active_ud_dpp_qps", in ocrdma_resource_stats()
126 pcur += ocrdma_add_stat(stats, pcur, "active_rc_non_dpp_qps", in ocrdma_resource_stats()
128 pcur += ocrdma_add_stat(stats, pcur, "active_uc_non_dpp_qps", in ocrdma_resource_stats()
[all …]
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Ddebug.c112 struct macstat stats; in brcms_debugfs_macstat_read() local
116 stats = *(drvr->wlc->core->macstat_snapshot); in brcms_debugfs_macstat_read()
119 seq_printf(s, "txallfrm: %d\n", stats.txallfrm); in brcms_debugfs_macstat_read()
120 seq_printf(s, "txrtsfrm: %d\n", stats.txrtsfrm); in brcms_debugfs_macstat_read()
121 seq_printf(s, "txctsfrm: %d\n", stats.txctsfrm); in brcms_debugfs_macstat_read()
122 seq_printf(s, "txackfrm: %d\n", stats.txackfrm); in brcms_debugfs_macstat_read()
123 seq_printf(s, "txdnlfrm: %d\n", stats.txdnlfrm); in brcms_debugfs_macstat_read()
124 seq_printf(s, "txbcnfrm: %d\n", stats.txbcnfrm); in brcms_debugfs_macstat_read()
126 for (i = 0; i < ARRAY_SIZE(stats.txfunfl); i++) in brcms_debugfs_macstat_read()
127 seq_printf(s, " %d", stats.txfunfl[i]); in brcms_debugfs_macstat_read()
[all …]
/drivers/net/wireless/realtek/rtlwifi/
Dstats.c101 rtlpriv->stats.pwdb_all_cnt += pstatus->rx_pwdb_all; in rtl_process_ui_rssi()
102 rtlpriv->stats.rssi_calculate_cnt++; in rtl_process_ui_rssi()
104 if (rtlpriv->stats.ui_rssi.total_num++ >= PHY_RSSI_SLID_WIN_MAX) { in rtl_process_ui_rssi()
105 rtlpriv->stats.ui_rssi.total_num = PHY_RSSI_SLID_WIN_MAX; in rtl_process_ui_rssi()
106 last_rssi = rtlpriv->stats.ui_rssi.elements[ in rtl_process_ui_rssi()
107 rtlpriv->stats.ui_rssi.index]; in rtl_process_ui_rssi()
108 rtlpriv->stats.ui_rssi.total_val -= last_rssi; in rtl_process_ui_rssi()
110 rtlpriv->stats.ui_rssi.total_val += pstatus->signalstrength; in rtl_process_ui_rssi()
111 rtlpriv->stats.ui_rssi.elements[rtlpriv->stats.ui_rssi.index++] = in rtl_process_ui_rssi()
113 if (rtlpriv->stats.ui_rssi.index >= PHY_RSSI_SLID_WIN_MAX) in rtl_process_ui_rssi()
[all …]
/drivers/net/wireless/st/cw1200/
Dqueue.c31 struct cw1200_queue_stats *stats = queue->stats; in __cw1200_queue_lock() local
35 ieee80211_stop_queue(stats->priv->hw, queue->queue_id); in __cw1200_queue_lock()
41 struct cw1200_queue_stats *stats = queue->stats; in __cw1200_queue_unlock() local
46 ieee80211_wake_queue(stats->priv->hw, queue->queue_id); in __cw1200_queue_unlock()
69 static void cw1200_queue_post_gc(struct cw1200_queue_stats *stats, in cw1200_queue_post_gc() argument
76 stats->skb_dtor(stats->priv, item->skb, &item->txpriv); in cw1200_queue_post_gc()
96 struct cw1200_queue_stats *stats = queue->stats; in __cw1200_queue_gc() local
105 spin_lock_bh(&stats->lock); in __cw1200_queue_gc()
106 --stats->num_queued; in __cw1200_queue_gc()
107 if (!--stats->link_map_cache[item->txpriv.link_id]) in __cw1200_queue_gc()
[all …]
/drivers/scsi/snic/
Dsnic_debugfs.c141 struct snic_stats *stats = &snic->s_stats; in snic_reset_stats_write() local
142 u64 *io_stats_p = (u64 *) &stats->io; in snic_reset_stats_write()
143 u64 *fw_stats_p = (u64 *) &stats->fw; in snic_reset_stats_write()
168 atomic64_read(&stats->io.active)); in snic_reset_stats_write()
169 memset(&stats->abts, 0, sizeof(struct snic_abort_stats)); in snic_reset_stats_write()
170 memset(&stats->reset, 0, sizeof(struct snic_reset_stats)); in snic_reset_stats_write()
171 memset(&stats->misc, 0, sizeof(struct snic_misc_stats)); in snic_reset_stats_write()
202 struct snic_stats *stats = &snic->s_stats; in snic_stats_show() local
213 maxio_tm = (u64) atomic64_read(&stats->io.max_time); in snic_stats_show()
229 (u64) atomic64_read(&stats->io.active), in snic_stats_show()
[all …]
/drivers/staging/rtl8192u/
Dr819xU_cmdpkt.c104 priv->stats.txfeedbackok++; in cmpk_count_txstatistic()
105 priv->stats.txoktotal++; in cmpk_count_txstatistic()
106 priv->stats.txokbytestotal += pstx_fb->pkt_length; in cmpk_count_txstatistic()
107 priv->stats.txokinperiod++; in cmpk_count_txstatistic()
111 priv->stats.txmulticast++; in cmpk_count_txstatistic()
112 priv->stats.txbytesmulticast += pstx_fb->pkt_length; in cmpk_count_txstatistic()
114 priv->stats.txbroadcast++; in cmpk_count_txstatistic()
115 priv->stats.txbytesbroadcast += pstx_fb->pkt_length; in cmpk_count_txstatistic()
117 priv->stats.txunicast++; in cmpk_count_txstatistic()
118 priv->stats.txbytesunicast += pstx_fb->pkt_length; in cmpk_count_txstatistic()
[all …]
/drivers/infiniband/hw/cxgb4/
Dresource.c114 mutex_lock(&rdev->stats.lock); in c4iw_get_cqid()
115 rdev->stats.qid.cur += rdev->qpmask + 1; in c4iw_get_cqid()
116 mutex_unlock(&rdev->stats.lock); in c4iw_get_cqid()
145 mutex_lock(&rdev->stats.lock); in c4iw_get_cqid()
146 if (rdev->stats.qid.cur > rdev->stats.qid.max) in c4iw_get_cqid()
147 rdev->stats.qid.max = rdev->stats.qid.cur; in c4iw_get_cqid()
148 mutex_unlock(&rdev->stats.lock); in c4iw_get_cqid()
183 mutex_lock(&rdev->stats.lock); in c4iw_get_qpid()
184 rdev->stats.qid.fail++; in c4iw_get_qpid()
185 mutex_unlock(&rdev->stats.lock); in c4iw_get_qpid()
[all …]
/drivers/scsi/fnic/
Dfnic_trace.c216 struct fnic_stats *stats) in fnic_get_stats_data() argument
233 (u64)atomic64_read(&stats->io_stats.active_ios), in fnic_get_stats_data()
234 (u64)atomic64_read(&stats->io_stats.max_active_ios), in fnic_get_stats_data()
235 (u64)atomic64_read(&stats->io_stats.num_ios), in fnic_get_stats_data()
236 (u64)atomic64_read(&stats->io_stats.io_completions), in fnic_get_stats_data()
237 (u64)atomic64_read(&stats->io_stats.io_failures), in fnic_get_stats_data()
238 (u64)atomic64_read(&stats->io_stats.io_not_found), in fnic_get_stats_data()
239 (u64)atomic64_read(&stats->io_stats.alloc_failures), in fnic_get_stats_data()
240 (u64)atomic64_read(&stats->io_stats.ioreq_null), in fnic_get_stats_data()
241 (u64)atomic64_read(&stats->io_stats.sc_null)); in fnic_get_stats_data()
[all …]
/drivers/staging/lustre/lustre/obdclass/
Dlprocfs_counters.c44 void lprocfs_counter_add(struct lprocfs_stats *stats, int idx, long amount) in lprocfs_counter_add() argument
51 if (!stats) in lprocfs_counter_add()
54 LASSERTF(0 <= idx && idx < stats->ls_num, in lprocfs_counter_add()
55 "idx %d, ls_num %hu\n", idx, stats->ls_num); in lprocfs_counter_add()
60 smp_id = lprocfs_stats_lock(stats, LPROCFS_GET_SMP_ID, &flags); in lprocfs_counter_add()
64 header = &stats->ls_cnt_header[idx]; in lprocfs_counter_add()
65 percpu_cntr = lprocfs_stats_counter_get(stats, smp_id, idx); in lprocfs_counter_add()
77 (stats->ls_flags & LPROCFS_STATS_FLAG_IRQ_SAFE) != 0) in lprocfs_counter_add()
89 lprocfs_stats_unlock(stats, LPROCFS_GET_SMP_ID, &flags); in lprocfs_counter_add()
93 void lprocfs_counter_sub(struct lprocfs_stats *stats, int idx, long amount) in lprocfs_counter_sub() argument
[all …]
Dlprocfs_status.c588 void lprocfs_stats_collect(struct lprocfs_stats *stats, int idx, in lprocfs_stats_collect() argument
598 if (!stats) { in lprocfs_stats_collect()
606 num_entry = lprocfs_stats_lock(stats, LPROCFS_GET_NUM_CPU, &flags); in lprocfs_stats_collect()
609 if (!stats->ls_percpu[i]) in lprocfs_stats_collect()
611 percpu_cntr = lprocfs_stats_counter_get(stats, i, idx); in lprocfs_stats_collect()
622 lprocfs_stats_unlock(stats, LPROCFS_GET_NUM_CPU, &flags); in lprocfs_stats_collect()
1016 int lprocfs_stats_alloc_one(struct lprocfs_stats *stats, unsigned int cpuid) in lprocfs_stats_alloc_one() argument
1024 LASSERT(!stats->ls_percpu[cpuid]); in lprocfs_stats_alloc_one()
1025 LASSERT((stats->ls_flags & LPROCFS_STATS_FLAG_NOPERCPU) == 0); in lprocfs_stats_alloc_one()
1027 percpusize = lprocfs_stats_counter_size(stats); in lprocfs_stats_alloc_one()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Dtrx.c228 rtlpriv->stats.rx_snr_db[i] = in _rtl92de_query_rxphystatus()
271 if (rtlpriv->stats.rx_rssi_percentage[rfpath] == 0) { in rtl92d_loop_over_paths()
272 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl92d_loop_over_paths()
277 rtlpriv->stats.rx_rssi_percentage[rfpath]) { in rtl92d_loop_over_paths()
278 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl92d_loop_over_paths()
279 ((rtlpriv->stats.rx_rssi_percentage[rfpath] * in rtl92d_loop_over_paths()
283 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl92d_loop_over_paths()
284 rtlpriv->stats.rx_rssi_percentage[rfpath] + 1; in rtl92d_loop_over_paths()
286 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl92d_loop_over_paths()
287 ((rtlpriv->stats.rx_rssi_percentage[rfpath] * in rtl92d_loop_over_paths()
[all …]
/drivers/net/fddi/skfp/
Dskfddi.c687 …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()
688 bp->stats.smt_op_version_id = bp->cmd_rsp_virt->smt_mib_get.smt_op_version_id; in skfp_ctl_get_stats()
689 bp->stats.smt_hi_version_id = bp->cmd_rsp_virt->smt_mib_get.smt_hi_version_id; in skfp_ctl_get_stats()
690 bp->stats.smt_lo_version_id = bp->cmd_rsp_virt->smt_mib_get.smt_lo_version_id; in skfp_ctl_get_stats()
691 …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()
692 bp->stats.smt_mib_version_id = bp->cmd_rsp_virt->smt_mib_get.smt_mib_version_id; in skfp_ctl_get_stats()
693 bp->stats.smt_mac_cts = bp->cmd_rsp_virt->smt_mib_get.smt_mac_ct; in skfp_ctl_get_stats()
694 bp->stats.smt_non_master_cts = bp->cmd_rsp_virt->smt_mib_get.smt_non_master_ct; in skfp_ctl_get_stats()
695 bp->stats.smt_master_cts = bp->cmd_rsp_virt->smt_mib_get.smt_master_ct; in skfp_ctl_get_stats()
696 bp->stats.smt_available_paths = bp->cmd_rsp_virt->smt_mib_get.smt_available_paths; in skfp_ctl_get_stats()
[all …]
/drivers/misc/
Dvmw_balloon.c303 struct vmballoon_stats stats; member
327 STATS_INC(b->stats.start); in vmballoon_send_start()
351 STATS_INC(b->stats.start_fail); in vmballoon_send_start()
384 STATS_INC(b->stats.guest_type); in vmballoon_send_guest_id()
390 STATS_INC(b->stats.guest_type_fail); in vmballoon_send_guest_id()
427 STATS_INC(b->stats.target); in vmballoon_send_get_target()
436 STATS_INC(b->stats.target_fail); in vmballoon_send_get_target()
455 STATS_INC(b->stats.lock[false]); in vmballoon_send_lock_page()
462 STATS_INC(b->stats.lock_fail[false]); in vmballoon_send_lock_page()
472 STATS_INC(b->stats.lock[is_2m_pages]); in vmballoon_send_batched_lock()
[all …]
/drivers/net/wireless/ath/ath6kl/
Dmain.c702 struct target_stats *stats = &vif->target_stats; in ath6kl_update_target_stats() local
712 stats->tx_pkt += le32_to_cpu(tgt_stats->stats.tx.pkt); in ath6kl_update_target_stats()
713 stats->tx_byte += le32_to_cpu(tgt_stats->stats.tx.byte); in ath6kl_update_target_stats()
714 stats->tx_ucast_pkt += le32_to_cpu(tgt_stats->stats.tx.ucast_pkt); in ath6kl_update_target_stats()
715 stats->tx_ucast_byte += le32_to_cpu(tgt_stats->stats.tx.ucast_byte); in ath6kl_update_target_stats()
716 stats->tx_mcast_pkt += le32_to_cpu(tgt_stats->stats.tx.mcast_pkt); in ath6kl_update_target_stats()
717 stats->tx_mcast_byte += le32_to_cpu(tgt_stats->stats.tx.mcast_byte); in ath6kl_update_target_stats()
718 stats->tx_bcast_pkt += le32_to_cpu(tgt_stats->stats.tx.bcast_pkt); in ath6kl_update_target_stats()
719 stats->tx_bcast_byte += le32_to_cpu(tgt_stats->stats.tx.bcast_byte); in ath6kl_update_target_stats()
720 stats->tx_rts_success_cnt += in ath6kl_update_target_stats()
[all …]
/drivers/staging/lustre/lustre/include/
Dlprocfs_status.h375 int lprocfs_stats_alloc_one(struct lprocfs_stats *stats, unsigned int cpuid);
404 static inline int lprocfs_stats_lock(struct lprocfs_stats *stats, in lprocfs_stats_lock() argument
408 if (stats->ls_flags & LPROCFS_STATS_FLAG_NOPERCPU) { in lprocfs_stats_lock()
409 if (stats->ls_flags & LPROCFS_STATS_FLAG_IRQ_SAFE) in lprocfs_stats_lock()
410 spin_lock_irqsave(&stats->ls_lock, *flags); in lprocfs_stats_lock()
412 spin_lock(&stats->ls_lock); in lprocfs_stats_lock()
420 if (unlikely(!stats->ls_percpu[cpuid])) { in lprocfs_stats_lock()
421 int rc = lprocfs_stats_alloc_one(stats, cpuid); in lprocfs_stats_lock()
431 return stats->ls_biggest_alloc_num; in lprocfs_stats_lock()
450 static inline void lprocfs_stats_unlock(struct lprocfs_stats *stats, in lprocfs_stats_unlock() argument
[all …]
/drivers/net/fddi/
Ddefxx.c2079 bp->stats.gen.rx_packets = bp->rcv_total_frames; in dfx_ctl_get_stats()
2080 bp->stats.gen.tx_packets = bp->xmt_total_frames; in dfx_ctl_get_stats()
2081 bp->stats.gen.rx_bytes = bp->rcv_total_bytes; in dfx_ctl_get_stats()
2082 bp->stats.gen.tx_bytes = bp->xmt_total_bytes; in dfx_ctl_get_stats()
2083 bp->stats.gen.rx_errors = bp->rcv_crc_errors + in dfx_ctl_get_stats()
2086 bp->stats.gen.tx_errors = bp->xmt_length_errors; in dfx_ctl_get_stats()
2087 bp->stats.gen.rx_dropped = bp->rcv_discards; in dfx_ctl_get_stats()
2088 bp->stats.gen.tx_dropped = bp->xmt_discards; in dfx_ctl_get_stats()
2089 bp->stats.gen.multicast = bp->rcv_multicast_frames; in dfx_ctl_get_stats()
2090 bp->stats.gen.collisions = 0; /* always zero (0) for FDDI */ in dfx_ctl_get_stats()
[all …]
/drivers/net/ethernet/qualcomm/emac/
Demac.c327 struct emac_stats *stats = &adpt->stats; in emac_get_stats64() local
328 u64 *stats_itr = &adpt->stats.rx_ok; in emac_get_stats64()
331 spin_lock(&stats->lock); in emac_get_stats64()
342 adpt->stats.rx_crc_align += val; in emac_get_stats64()
344 adpt->stats.rx_jabbers += val; in emac_get_stats64()
348 stats_itr = &adpt->stats.tx_ok; in emac_get_stats64()
359 adpt->stats.tx_col += val; in emac_get_stats64()
362 net_stats->rx_packets = stats->rx_ok; in emac_get_stats64()
363 net_stats->tx_packets = stats->tx_ok; in emac_get_stats64()
364 net_stats->rx_bytes = stats->rx_byte_cnt; in emac_get_stats64()
[all …]
/drivers/media/dvb-frontends/
Dtc90522.c208 struct dtv_fe_stats *stats; in tc90522s_get_frontend() local
250 stats = &c->strength; in tc90522s_get_frontend()
251 stats->len = 0; in tc90522s_get_frontend()
259 stats = &c->cnr; in tc90522s_get_frontend()
260 stats->len = 1; in tc90522s_get_frontend()
261 stats->stat[0].scale = FE_SCALE_NOT_AVAILABLE; in tc90522s_get_frontend()
286 stats->stat[0].svalue = cn >> 3; in tc90522s_get_frontend()
287 stats->stat[0].scale = FE_SCALE_DECIBEL; in tc90522s_get_frontend()
291 stats = &c->post_bit_error; in tc90522s_get_frontend()
292 memset(stats, 0, sizeof(*stats)); in tc90522s_get_frontend()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Dtrx.c305 struct rtl_stats *stats, in rtl92cu_rx_query_desc() argument
313 stats->length = (u16) GET_RX_DESC_PKT_LEN(pdesc); in rtl92cu_rx_query_desc()
314 stats->rx_drvinfo_size = (u8)GET_RX_DESC_DRVINFO_SIZE(pdesc) * in rtl92cu_rx_query_desc()
316 stats->rx_bufshift = (u8) (GET_RX_DESC_SHIFT(pdesc) & 0x03); in rtl92cu_rx_query_desc()
317 stats->icv = (u16) GET_RX_DESC_ICV(pdesc); in rtl92cu_rx_query_desc()
318 stats->crc = (u16) GET_RX_DESC_CRC32(pdesc); in rtl92cu_rx_query_desc()
319 stats->hwerror = (stats->crc | stats->icv); in rtl92cu_rx_query_desc()
320 stats->decrypted = !GET_RX_DESC_SWDEC(pdesc); in rtl92cu_rx_query_desc()
321 stats->rate = (u8) GET_RX_DESC_RX_MCS(pdesc); in rtl92cu_rx_query_desc()
322 stats->shortpreamble = (u16) GET_RX_DESC_SPLCP(pdesc); in rtl92cu_rx_query_desc()
[all …]
/drivers/net/ethernet/arc/
Demac_main.c115 struct net_device_stats *stats = &ndev->stats; in arc_emac_tx_clean() local
129 stats->tx_errors++; in arc_emac_tx_clean()
130 stats->tx_dropped++; in arc_emac_tx_clean()
133 stats->tx_carrier_errors++; in arc_emac_tx_clean()
136 stats->collisions++; in arc_emac_tx_clean()
139 stats->tx_fifo_errors++; in arc_emac_tx_clean()
141 stats->tx_packets++; in arc_emac_tx_clean()
142 stats->tx_bytes += skb->len; in arc_emac_tx_clean()
183 struct net_device_stats *stats = &ndev->stats; in arc_emac_rx() local
208 stats->rx_errors++; in arc_emac_rx()
[all …]
/drivers/net/ethernet/sun/
Dsunqe.c265 dev->stats.tx_errors++; in qe_is_bolixed()
270 dev->stats.tx_errors++; in qe_is_bolixed()
271 dev->stats.tx_carrier_errors++; in qe_is_bolixed()
276 dev->stats.tx_errors++; in qe_is_bolixed()
282 dev->stats.tx_errors++; in qe_is_bolixed()
283 dev->stats.collisions++; in qe_is_bolixed()
289 dev->stats.tx_errors++; in qe_is_bolixed()
302 dev->stats.tx_errors += 256; in qe_is_bolixed()
303 dev->stats.collisions += 256; in qe_is_bolixed()
308 dev->stats.tx_errors++; in qe_is_bolixed()
[all …]
/drivers/net/ethernet/intel/ixgb/
Dixgb_main.c1606 return &netdev->stats; in ixgb_get_stats()
1675 adapter->stats.mprcl += (multi & 0xFFFFFFFF); in ixgb_update_stats()
1676 adapter->stats.mprch += (multi >> 32); in ixgb_update_stats()
1677 adapter->stats.bprcl += bcast_l; in ixgb_update_stats()
1678 adapter->stats.bprch += bcast_h; in ixgb_update_stats()
1680 adapter->stats.mprcl += IXGB_READ_REG(&adapter->hw, MPRCL); in ixgb_update_stats()
1681 adapter->stats.mprch += IXGB_READ_REG(&adapter->hw, MPRCH); in ixgb_update_stats()
1682 adapter->stats.bprcl += IXGB_READ_REG(&adapter->hw, BPRCL); in ixgb_update_stats()
1683 adapter->stats.bprch += IXGB_READ_REG(&adapter->hw, BPRCH); in ixgb_update_stats()
1685 adapter->stats.tprl += IXGB_READ_REG(&adapter->hw, TPRL); in ixgb_update_stats()
[all …]
/drivers/net/wireless/ath/ath9k/
Ddebug.c32 sc->debug.stats.istats.sync_cause_all++; in ath9k_debug_sync_cause()
34 sc->debug.stats.istats.sync_rtc_irq++; in ath9k_debug_sync_cause()
36 sc->debug.stats.istats.sync_mac_irq++; in ath9k_debug_sync_cause()
38 sc->debug.stats.istats.eeprom_illegal_access++; in ath9k_debug_sync_cause()
40 sc->debug.stats.istats.apb_timeout++; in ath9k_debug_sync_cause()
42 sc->debug.stats.istats.pci_mode_conflict++; in ath9k_debug_sync_cause()
44 sc->debug.stats.istats.host1_fatal++; in ath9k_debug_sync_cause()
46 sc->debug.stats.istats.host1_perr++; in ath9k_debug_sync_cause()
48 sc->debug.stats.istats.trcv_fifo_perr++; in ath9k_debug_sync_cause()
50 sc->debug.stats.istats.radm_cpl_ep++; in ath9k_debug_sync_cause()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Ddebugfs.c148 struct mlx5_cmd_stats *stats; in average_read() local
156 stats = filp->private_data; in average_read()
157 spin_lock_irq(&stats->lock); in average_read()
158 if (stats->n) in average_read()
159 field = div64_u64(stats->sum, stats->n); in average_read()
160 spin_unlock_irq(&stats->lock); in average_read()
175 struct mlx5_cmd_stats *stats; in average_write() local
177 stats = filp->private_data; in average_write()
178 spin_lock_irq(&stats->lock); in average_write()
179 stats->sum = 0; in average_write()
[all …]

12345678910>>...42