Home
last modified time | relevance | path

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

12345678910>>...38

/drivers/infiniband/hw/ocrdma/
Docrdma_stats.c90 char *stats = dev->stats_mem.debugfs_mem, *pcur; in ocrdma_resource_stats() local
95 memset(stats, 0, (OCRDMA_MAX_DBGFS_MEM)); in ocrdma_resource_stats()
97 pcur = stats; in ocrdma_resource_stats()
98 pcur += ocrdma_add_stat(stats, pcur, "active_dpp_pds", in ocrdma_resource_stats()
100 pcur += ocrdma_add_stat(stats, pcur, "active_non_dpp_pds", in ocrdma_resource_stats()
102 pcur += ocrdma_add_stat(stats, pcur, "active_rc_dpp_qps", in ocrdma_resource_stats()
104 pcur += ocrdma_add_stat(stats, pcur, "active_uc_dpp_qps", in ocrdma_resource_stats()
106 pcur += ocrdma_add_stat(stats, pcur, "active_ud_dpp_qps", in ocrdma_resource_stats()
108 pcur += ocrdma_add_stat(stats, pcur, "active_rc_non_dpp_qps", in ocrdma_resource_stats()
110 pcur += ocrdma_add_stat(stats, pcur, "active_uc_non_dpp_qps", in ocrdma_resource_stats()
[all …]
/drivers/net/wireless/rtlwifi/
Dstats.c123 rtlpriv->stats.pwdb_all_cnt += pstatus->rx_pwdb_all; in rtl_process_ui_rssi()
124 rtlpriv->stats.rssi_calculate_cnt++; in rtl_process_ui_rssi()
126 if (rtlpriv->stats.ui_rssi.total_num++ >= PHY_RSSI_SLID_WIN_MAX) { in rtl_process_ui_rssi()
127 rtlpriv->stats.ui_rssi.total_num = PHY_RSSI_SLID_WIN_MAX; in rtl_process_ui_rssi()
128 last_rssi = rtlpriv->stats.ui_rssi.elements[ in rtl_process_ui_rssi()
129 rtlpriv->stats.ui_rssi.index]; in rtl_process_ui_rssi()
130 rtlpriv->stats.ui_rssi.total_val -= last_rssi; in rtl_process_ui_rssi()
132 rtlpriv->stats.ui_rssi.total_val += pstatus->signalstrength; in rtl_process_ui_rssi()
133 rtlpriv->stats.ui_rssi.elements[rtlpriv->stats.ui_rssi.index++] = in rtl_process_ui_rssi()
135 if (rtlpriv->stats.ui_rssi.index >= PHY_RSSI_SLID_WIN_MAX) in rtl_process_ui_rssi()
[all …]
/drivers/net/wireless/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/staging/lustre/lustre/obdclass/
Dlprocfs_status.c594 void lprocfs_stats_collect(struct lprocfs_stats *stats, int idx, in lprocfs_stats_collect() argument
604 if (stats == NULL) { in lprocfs_stats_collect()
612 num_entry = lprocfs_stats_lock(stats, LPROCFS_GET_NUM_CPU, &flags); in lprocfs_stats_collect()
615 if (stats->ls_percpu[i] == NULL) in lprocfs_stats_collect()
617 percpu_cntr = lprocfs_stats_counter_get(stats, i, idx); in lprocfs_stats_collect()
628 lprocfs_stats_unlock(stats, LPROCFS_GET_NUM_CPU, &flags); in lprocfs_stats_collect()
1017 int lprocfs_stats_alloc_one(struct lprocfs_stats *stats, unsigned int cpuid) in lprocfs_stats_alloc_one() argument
1025 LASSERT(stats->ls_percpu[cpuid] == NULL); in lprocfs_stats_alloc_one()
1026 LASSERT((stats->ls_flags & LPROCFS_STATS_FLAG_NOPERCPU) == 0); in lprocfs_stats_alloc_one()
1028 percpusize = lprocfs_stats_counter_size(stats); in lprocfs_stats_alloc_one()
[all …]
Dlprocfs_counters.c47 void lprocfs_counter_add(struct lprocfs_stats *stats, int idx, long amount) in lprocfs_counter_add() argument
54 if (stats == NULL) in lprocfs_counter_add()
57 LASSERTF(0 <= idx && idx < stats->ls_num, in lprocfs_counter_add()
58 "idx %d, ls_num %hu\n", idx, stats->ls_num); in lprocfs_counter_add()
62 smp_id = lprocfs_stats_lock(stats, LPROCFS_GET_SMP_ID, &flags); in lprocfs_counter_add()
66 header = &stats->ls_cnt_header[idx]; in lprocfs_counter_add()
67 percpu_cntr = lprocfs_stats_counter_get(stats, smp_id, idx); in lprocfs_counter_add()
82 (stats->ls_flags & LPROCFS_STATS_FLAG_IRQ_SAFE) != 0) in lprocfs_counter_add()
94 lprocfs_stats_unlock(stats, LPROCFS_GET_SMP_ID, &flags); in lprocfs_counter_add()
98 void lprocfs_counter_sub(struct lprocfs_stats *stats, int idx, long amount) in lprocfs_counter_sub() argument
[all …]
/drivers/staging/rtl8192e/rtl8192e/
Dr8192E_cmdpkt.c109 priv->stats.txfeedbackok++; in cmpk_count_txstatistic()
110 priv->stats.txoktotal++; in cmpk_count_txstatistic()
111 priv->stats.txokbytestotal += pstx_fb->pkt_length; in cmpk_count_txstatistic()
112 priv->stats.txokinperiod++; in cmpk_count_txstatistic()
115 priv->stats.txmulticast++; in cmpk_count_txstatistic()
116 priv->stats.txbytesmulticast += pstx_fb->pkt_length; in cmpk_count_txstatistic()
118 priv->stats.txbroadcast++; in cmpk_count_txstatistic()
119 priv->stats.txbytesbroadcast += pstx_fb->pkt_length; in cmpk_count_txstatistic()
121 priv->stats.txunicast++; in cmpk_count_txstatistic()
122 priv->stats.txbytesunicast += pstx_fb->pkt_length; in cmpk_count_txstatistic()
[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.c215 struct fnic_stats *stats) in fnic_get_stats_data() argument
232 (u64)atomic64_read(&stats->io_stats.active_ios), in fnic_get_stats_data()
233 (u64)atomic64_read(&stats->io_stats.max_active_ios), in fnic_get_stats_data()
234 (u64)atomic64_read(&stats->io_stats.num_ios), in fnic_get_stats_data()
235 (u64)atomic64_read(&stats->io_stats.io_completions), in fnic_get_stats_data()
236 (u64)atomic64_read(&stats->io_stats.io_failures), in fnic_get_stats_data()
237 (u64)atomic64_read(&stats->io_stats.io_not_found), in fnic_get_stats_data()
238 (u64)atomic64_read(&stats->io_stats.alloc_failures), in fnic_get_stats_data()
239 (u64)atomic64_read(&stats->io_stats.ioreq_null), in fnic_get_stats_data()
240 (u64)atomic64_read(&stats->io_stats.sc_null)); in fnic_get_stats_data()
[all …]
/drivers/net/wireless/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/misc/
Dvmw_balloon.c207 struct vmballoon_stats stats; member
228 STATS_INC(b->stats.start); in vmballoon_send_start()
235 STATS_INC(b->stats.start_fail); in vmballoon_send_start()
266 STATS_INC(b->stats.guest_type); in vmballoon_send_guest_id()
272 STATS_INC(b->stats.guest_type_fail); in vmballoon_send_guest_id()
300 STATS_INC(b->stats.target); in vmballoon_send_get_target()
309 STATS_INC(b->stats.target_fail); in vmballoon_send_get_target()
328 STATS_INC(b->stats.lock); in vmballoon_send_lock_page()
335 STATS_INC(b->stats.lock_fail); in vmballoon_send_lock_page()
352 STATS_INC(b->stats.unlock); in vmballoon_send_unlock_page()
[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/staging/lustre/lustre/include/
Dlprocfs_status.h383 extern int lprocfs_stats_alloc_one(struct lprocfs_stats *stats,
389 static inline int lprocfs_stats_lock(struct lprocfs_stats *stats, int opc, in lprocfs_stats_lock() argument
399 if (stats->ls_flags & LPROCFS_STATS_FLAG_NOPERCPU) { in lprocfs_stats_lock()
400 if (stats->ls_flags & LPROCFS_STATS_FLAG_IRQ_SAFE) in lprocfs_stats_lock()
401 spin_lock_irqsave(&stats->ls_lock, *flags); in lprocfs_stats_lock()
403 spin_lock(&stats->ls_lock); in lprocfs_stats_lock()
408 if (unlikely(stats->ls_percpu[cpuid] == NULL)) { in lprocfs_stats_lock()
409 rc = lprocfs_stats_alloc_one(stats, cpuid); in lprocfs_stats_lock()
419 if (stats->ls_flags & LPROCFS_STATS_FLAG_NOPERCPU) { in lprocfs_stats_lock()
420 if (stats->ls_flags & LPROCFS_STATS_FLAG_IRQ_SAFE) in lprocfs_stats_lock()
[all …]
/drivers/net/wireless/ath/ath6kl/
Dmain.c703 struct target_stats *stats = &vif->target_stats; in ath6kl_update_target_stats() local
713 stats->tx_pkt += le32_to_cpu(tgt_stats->stats.tx.pkt); in ath6kl_update_target_stats()
714 stats->tx_byte += le32_to_cpu(tgt_stats->stats.tx.byte); in ath6kl_update_target_stats()
715 stats->tx_ucast_pkt += le32_to_cpu(tgt_stats->stats.tx.ucast_pkt); in ath6kl_update_target_stats()
716 stats->tx_ucast_byte += le32_to_cpu(tgt_stats->stats.tx.ucast_byte); in ath6kl_update_target_stats()
717 stats->tx_mcast_pkt += le32_to_cpu(tgt_stats->stats.tx.mcast_pkt); in ath6kl_update_target_stats()
718 stats->tx_mcast_byte += le32_to_cpu(tgt_stats->stats.tx.mcast_byte); in ath6kl_update_target_stats()
719 stats->tx_bcast_pkt += le32_to_cpu(tgt_stats->stats.tx.bcast_pkt); in ath6kl_update_target_stats()
720 stats->tx_bcast_byte += le32_to_cpu(tgt_stats->stats.tx.bcast_byte); in ath6kl_update_target_stats()
721 stats->tx_rts_success_cnt += in ath6kl_update_target_stats()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Den_port.c119 struct net_device_stats *stats = &priv->stats; in mlx4_en_DUMP_ETH_STATS() local
138 stats->rx_packets = 0; in mlx4_en_DUMP_ETH_STATS()
139 stats->rx_bytes = 0; in mlx4_en_DUMP_ETH_STATS()
143 stats->rx_packets += priv->rx_ring[i]->packets; in mlx4_en_DUMP_ETH_STATS()
144 stats->rx_bytes += priv->rx_ring[i]->bytes; in mlx4_en_DUMP_ETH_STATS()
148 stats->tx_packets = 0; in mlx4_en_DUMP_ETH_STATS()
149 stats->tx_bytes = 0; in mlx4_en_DUMP_ETH_STATS()
159 stats->tx_packets += ring->packets; in mlx4_en_DUMP_ETH_STATS()
160 stats->tx_bytes += ring->bytes; in mlx4_en_DUMP_ETH_STATS()
168 stats->rx_errors = be64_to_cpu(mlx4_en_stats->PCS) + in mlx4_en_DUMP_ETH_STATS()
[all …]
/drivers/net/ethernet/arc/
Demac_main.c156 struct net_device_stats *stats = &ndev->stats; in arc_emac_tx_clean() local
170 stats->tx_errors++; in arc_emac_tx_clean()
171 stats->tx_dropped++; in arc_emac_tx_clean()
174 stats->tx_carrier_errors++; in arc_emac_tx_clean()
177 stats->collisions++; in arc_emac_tx_clean()
180 stats->tx_fifo_errors++; in arc_emac_tx_clean()
182 stats->tx_packets++; in arc_emac_tx_clean()
183 stats->tx_bytes += skb->len; in arc_emac_tx_clean()
223 struct net_device_stats *stats = &ndev->stats; in arc_emac_rx() local
248 stats->rx_errors++; in arc_emac_rx()
[all …]
/drivers/net/fddi/
Ddefxx.c2018 bp->stats.gen.rx_packets = bp->rcv_total_frames; in dfx_ctl_get_stats()
2019 bp->stats.gen.tx_packets = bp->xmt_total_frames; in dfx_ctl_get_stats()
2020 bp->stats.gen.rx_bytes = bp->rcv_total_bytes; in dfx_ctl_get_stats()
2021 bp->stats.gen.tx_bytes = bp->xmt_total_bytes; in dfx_ctl_get_stats()
2022 bp->stats.gen.rx_errors = bp->rcv_crc_errors + in dfx_ctl_get_stats()
2025 bp->stats.gen.tx_errors = bp->xmt_length_errors; in dfx_ctl_get_stats()
2026 bp->stats.gen.rx_dropped = bp->rcv_discards; in dfx_ctl_get_stats()
2027 bp->stats.gen.tx_dropped = bp->xmt_discards; in dfx_ctl_get_stats()
2028 bp->stats.gen.multicast = bp->rcv_multicast_frames; in dfx_ctl_get_stats()
2029 bp->stats.gen.collisions = 0; /* always zero (0) for FDDI */ in dfx_ctl_get_stats()
[all …]
/drivers/media/dvb-frontends/
Dtc90522.c208 struct dtv_fe_stats *stats; in tc90522s_get_frontend() local
247 stats = &c->strength; in tc90522s_get_frontend()
248 stats->len = 0; in tc90522s_get_frontend()
256 stats = &c->cnr; in tc90522s_get_frontend()
257 stats->len = 1; in tc90522s_get_frontend()
258 stats->stat[0].scale = FE_SCALE_NOT_AVAILABLE; in tc90522s_get_frontend()
283 stats->stat[0].svalue = cn >> 3; in tc90522s_get_frontend()
284 stats->stat[0].scale = FE_SCALE_DECIBEL; in tc90522s_get_frontend()
288 stats = &c->post_bit_error; in tc90522s_get_frontend()
289 memset(stats, 0, sizeof(*stats)); in tc90522s_get_frontend()
[all …]
/drivers/net/ethernet/sun/
Dsunqe.c264 dev->stats.tx_errors++; in qe_is_bolixed()
269 dev->stats.tx_errors++; in qe_is_bolixed()
270 dev->stats.tx_carrier_errors++; in qe_is_bolixed()
275 dev->stats.tx_errors++; in qe_is_bolixed()
281 dev->stats.tx_errors++; in qe_is_bolixed()
282 dev->stats.collisions++; in qe_is_bolixed()
288 dev->stats.tx_errors++; in qe_is_bolixed()
301 dev->stats.tx_errors += 256; in qe_is_bolixed()
302 dev->stats.collisions += 256; in qe_is_bolixed()
307 dev->stats.tx_errors++; in qe_is_bolixed()
[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/intel/ixgb/
Dixgb_main.c1605 return &netdev->stats; in ixgb_get_stats()
1674 adapter->stats.mprcl += (multi & 0xFFFFFFFF); in ixgb_update_stats()
1675 adapter->stats.mprch += (multi >> 32); in ixgb_update_stats()
1676 adapter->stats.bprcl += bcast_l; in ixgb_update_stats()
1677 adapter->stats.bprch += bcast_h; in ixgb_update_stats()
1679 adapter->stats.mprcl += IXGB_READ_REG(&adapter->hw, MPRCL); in ixgb_update_stats()
1680 adapter->stats.mprch += IXGB_READ_REG(&adapter->hw, MPRCH); in ixgb_update_stats()
1681 adapter->stats.bprcl += IXGB_READ_REG(&adapter->hw, BPRCL); in ixgb_update_stats()
1682 adapter->stats.bprch += IXGB_READ_REG(&adapter->hw, BPRCH); in ixgb_update_stats()
1684 adapter->stats.tprl += IXGB_READ_REG(&adapter->hw, TPRL); in ixgb_update_stats()
[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 …]
/drivers/media/usb/uvc/
Duvc_video.c718 if (stream->stats.stream.nb_frames == 0 && in uvc_video_stats_decode()
719 stream->stats.frame.nb_packets == 0) in uvc_video_stats_decode()
720 ktime_get_ts(&stream->stats.stream.start_ts); in uvc_video_stats_decode()
743 stream->stats.frame.nb_invalid++; in uvc_video_stats_decode()
757 if (has_pts && stream->stats.frame.nb_pts) { in uvc_video_stats_decode()
758 if (stream->stats.frame.pts != pts) { in uvc_video_stats_decode()
759 stream->stats.frame.nb_pts_diffs++; in uvc_video_stats_decode()
760 stream->stats.frame.last_pts_diff = in uvc_video_stats_decode()
761 stream->stats.frame.nb_packets; in uvc_video_stats_decode()
766 stream->stats.frame.nb_pts++; in uvc_video_stats_decode()
[all …]
/drivers/net/wireless/rtlwifi/rtl8192se/
Dtrx.c181 rtlpriv->stats.rx_snr_db[i] = in _rtl92se_query_rxphystatus()
260 bool rtl92se_rx_query_desc(struct ieee80211_hw *hw, struct rtl_stats *stats, in rtl92se_rx_query_desc() argument
269 stats->length = (u16)GET_RX_STATUS_DESC_PKT_LEN(pdesc); in rtl92se_rx_query_desc()
270 stats->rx_drvinfo_size = (u8)GET_RX_STATUS_DESC_DRVINFO_SIZE(pdesc) * 8; in rtl92se_rx_query_desc()
271 stats->rx_bufshift = (u8)(GET_RX_STATUS_DESC_SHIFT(pdesc) & 0x03); in rtl92se_rx_query_desc()
272 stats->icv = (u16)GET_RX_STATUS_DESC_ICV(pdesc); in rtl92se_rx_query_desc()
273 stats->crc = (u16)GET_RX_STATUS_DESC_CRC32(pdesc); in rtl92se_rx_query_desc()
274 stats->hwerror = (u16)(stats->crc | stats->icv); in rtl92se_rx_query_desc()
275 stats->decrypted = !GET_RX_STATUS_DESC_SWDEC(pdesc); in rtl92se_rx_query_desc()
277 stats->rate = (u8)GET_RX_STATUS_DESC_RX_MCS(pdesc); in rtl92se_rx_query_desc()
[all …]
/drivers/md/
Ddm-stats.c187 void dm_stats_init(struct dm_stats *stats) in dm_stats_init() argument
192 mutex_init(&stats->mutex); in dm_stats_init()
193 INIT_LIST_HEAD(&stats->list); in dm_stats_init()
194 stats->last = alloc_percpu(struct dm_stats_last_position); in dm_stats_init()
196 last = per_cpu_ptr(stats->last, cpu); in dm_stats_init()
202 void dm_stats_cleanup(struct dm_stats *stats) in dm_stats_cleanup() argument
208 while (!list_empty(&stats->list)) { in dm_stats_cleanup()
209 s = container_of(stats->list.next, struct dm_stat, list_entry); in dm_stats_cleanup()
226 free_percpu(stats->last); in dm_stats_cleanup()
229 static int dm_stats_create(struct dm_stats *stats, sector_t start, sector_t end, in dm_stats_create() argument
[all …]

12345678910>>...38