/drivers/staging/lustre/lustre/obdclass/ |
H A D | lprocfs_counters.c | 47 void lprocfs_counter_add(struct lprocfs_stats *stats, int idx, long amount) argument 54 if (stats == NULL) 57 LASSERTF(0 <= idx && idx < stats->ls_num, 58 "idx %d, ls_num %hu\n", idx, stats->ls_num); 60 /* With per-client stats, statistics are allocated only for 62 smp_id = lprocfs_stats_lock(stats, LPROCFS_GET_SMP_ID, &flags); 66 header = &stats->ls_cnt_header[idx]; 67 percpu_cntr = lprocfs_stats_counter_get(stats, smp_id, idx); 82 (stats->ls_flags & LPROCFS_STATS_FLAG_IRQ_SAFE) != 0) 94 lprocfs_stats_unlock(stats, LPROCFS_GET_SMP_I 98 lprocfs_counter_sub(struct lprocfs_stats *stats, int idx, long amount) argument [all...] |
H A D | lprocfs_status.c | 227 MODULE_PARM_DESC(lprocfs_no_percpu_stats, "Do not alloc percpu data for lprocfs stats"); 594 void lprocfs_stats_collect(struct lprocfs_stats *stats, int idx, argument 604 if (stats == NULL) { 612 num_entry = lprocfs_stats_lock(stats, LPROCFS_GET_NUM_CPU, &flags); 615 if (stats->ls_percpu[i] == NULL) 617 percpu_cntr = lprocfs_stats_counter_get(stats, i, idx); 628 lprocfs_stats_unlock(stats, LPROCFS_GET_NUM_CPU, &flags); 1017 int lprocfs_stats_alloc_one(struct lprocfs_stats *stats, unsigned int cpuid) argument 1025 LASSERT(stats->ls_percpu[cpuid] == NULL); 1026 LASSERT((stats 1057 struct lprocfs_stats *stats; local 1112 struct lprocfs_stats *stats = *statsh; local 1137 lprocfs_clear_stats(struct lprocfs_stats *stats) argument 1171 struct lprocfs_stats *stats = seq->private; local 1180 struct lprocfs_stats *stats = p->private; local 1198 struct lprocfs_stats *stats = p->private; local 1268 lprocfs_register_stats(struct proc_dir_entry *root, const char *name, struct lprocfs_stats *stats) argument 1283 lprocfs_counter_init(struct lprocfs_stats *stats, int index, unsigned conf, const char *name, const char *units) argument 1326 lprocfs_init_ops_stats(int num_private_stats, struct lprocfs_stats *stats) argument 1380 struct lprocfs_stats *stats; local 1431 lprocfs_init_mps_stats(int num_private_stats, struct lprocfs_stats *stats) argument 1471 struct lprocfs_stats *stats; local 1508 struct lprocfs_stats *stats = obd->md_stats; local 1557 struct nid_stat *stats = (struct nid_stat *)m->private; local 1593 struct nid_stat *stats = (struct nid_stat *)m->private; local [all...] |
/drivers/net/wireless/rtlwifi/ |
H A D | stats.c | 26 #include "stats.h" 123 rtlpriv->stats.pwdb_all_cnt += pstatus->rx_pwdb_all; 124 rtlpriv->stats.rssi_calculate_cnt++; 126 if (rtlpriv->stats.ui_rssi.total_num++ >= PHY_RSSI_SLID_WIN_MAX) { 127 rtlpriv->stats.ui_rssi.total_num = PHY_RSSI_SLID_WIN_MAX; 128 last_rssi = rtlpriv->stats.ui_rssi.elements[ 129 rtlpriv->stats.ui_rssi.index]; 130 rtlpriv->stats.ui_rssi.total_val -= last_rssi; 132 rtlpriv->stats.ui_rssi.total_val += pstatus->signalstrength; 133 rtlpriv->stats [all...] |
/drivers/net/wireless/cw1200/ |
H A D | queue.c | 31 struct cw1200_queue_stats *stats = queue->stats; local 35 ieee80211_stop_queue(stats->priv->hw, queue->queue_id); 41 struct cw1200_queue_stats *stats = queue->stats; local 46 ieee80211_wake_queue(stats->priv->hw, queue->queue_id); 69 static void cw1200_queue_post_gc(struct cw1200_queue_stats *stats, argument 76 stats->skb_dtor(stats->priv, item->skb, &item->txpriv); 96 struct cw1200_queue_stats *stats local 145 cw1200_queue_stats_init(struct cw1200_queue_stats *stats, size_t map_capacity, cw1200_queue_skb_dtor_t skb_dtor, struct cw1200_common *priv) argument 165 cw1200_queue_init(struct cw1200_queue *queue, struct cw1200_queue_stats *stats, u8 queue_id, size_t capacity, unsigned long ttl) argument 209 struct cw1200_queue_stats *stats = queue->stats; local 241 cw1200_queue_stats_deinit(struct cw1200_queue_stats *stats) argument 289 struct cw1200_queue_stats *stats = queue->stats; local 343 struct cw1200_queue_stats *stats = queue->stats; local 381 struct cw1200_queue_stats *stats = queue->stats; local 421 struct cw1200_queue_stats *stats = queue->stats; local 450 struct cw1200_queue_stats *stats = queue->stats; local 561 cw1200_queue_stats_is_empty(struct cw1200_queue_stats *stats, u32 link_id_map) argument [all...] |
/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma_stats.c | 43 pr_err("%s: No space in stats buff\n", __func__); 62 pr_err("%s: stats mbox allocation failed\n", __func__); 71 pr_err("%s: stats debugfs mem allocation failed\n", __func__); 90 char *stats = dev->stats_mem.debugfs_mem, *pcur; local 95 memset(stats, 0, (OCRDMA_MAX_DBGFS_MEM)); 97 pcur = stats; 98 pcur += ocrdma_add_stat(stats, pcur, "active_dpp_pds", 100 pcur += ocrdma_add_stat(stats, pcur, "active_non_dpp_pds", 102 pcur += ocrdma_add_stat(stats, pcur, "active_rc_dpp_qps", 104 pcur += ocrdma_add_stat(stats, pcu 207 char *stats = dev->stats_mem.debugfs_mem, *pcur; local 254 char *stats = dev->stats_mem.debugfs_mem, *pcur; local 297 char *stats = dev->stats_mem.debugfs_mem, *pcur; local 330 char *stats = dev->stats_mem.debugfs_mem, *pcur; local 351 char *stats = dev->stats_mem.debugfs_mem, *pcur; local 377 char *stats = dev->stats_mem.debugfs_mem, *pcur; local [all...] |
/drivers/staging/rtl8192e/rtl8192e/ |
H A D | r8192E_cmdpkt.c | 109 priv->stats.txfeedbackok++; 110 priv->stats.txoktotal++; 111 priv->stats.txokbytestotal += pstx_fb->pkt_length; 112 priv->stats.txokinperiod++; 115 priv->stats.txmulticast++; 116 priv->stats.txbytesmulticast += pstx_fb->pkt_length; 118 priv->stats.txbroadcast++; 119 priv->stats.txbytesbroadcast += pstx_fb->pkt_length; 121 priv->stats.txunicast++; 122 priv->stats [all...] |
/drivers/staging/rtl8192u/ |
H A D | r819xU_cmdpkt.c | 104 priv->stats.txfeedbackok++; 105 priv->stats.txoktotal++; 106 priv->stats.txokbytestotal += pstx_fb->pkt_length; 107 priv->stats.txokinperiod++; 111 priv->stats.txmulticast++; 112 priv->stats.txbytesmulticast += pstx_fb->pkt_length; 114 priv->stats.txbroadcast++; 115 priv->stats.txbytesbroadcast += pstx_fb->pkt_length; 117 priv->stats.txunicast++; 118 priv->stats [all...] |
/drivers/crypto/nx/ |
H A D | nx_debugfs.c | 54 dfs->dfs_root, (u32 *)&drv->stats.aes_ops); 59 (u32 *)&drv->stats.sha256_ops); 64 (u32 *)&drv->stats.sha512_ops); 69 (u64 *)&drv->stats.aes_bytes); 74 (u64 *)&drv->stats.sha256_bytes); 79 (u64 *)&drv->stats.sha512_bytes); 83 dfs->dfs_root, (u32 *)&drv->stats.errors); 88 (u32 *)&drv->stats.last_error); 93 (u32 *)&drv->stats.last_error_pid);
|
/drivers/scsi/fnic/ |
H A D | fnic_trace.c | 203 * fnic_get_stats_data - Copy fnic stats buffer to a memory file 204 * @fnic_dbgfs_t: pointer to debugfs fnic stats buffer 207 * This routine gathers the fnic stats debugfs data from the fnic_stats struct 215 struct fnic_stats *stats) 232 (u64)atomic64_read(&stats->io_stats.active_ios), 233 (u64)atomic64_read(&stats->io_stats.max_active_ios), 234 (u64)atomic64_read(&stats->io_stats.num_ios), 235 (u64)atomic64_read(&stats->io_stats.io_completions), 236 (u64)atomic64_read(&stats->io_stats.io_failures), 237 (u64)atomic64_read(&stats 214 fnic_get_stats_data(struct stats_debug_info *debug, struct fnic_stats *stats) argument [all...] |
/drivers/misc/ |
H A D | vmw_balloon.c | 207 struct vmballoon_stats stats; member in struct:vmballoon 228 STATS_INC(b->stats.start); 235 STATS_INC(b->stats.start_fail); 266 STATS_INC(b->stats.guest_type); 272 STATS_INC(b->stats.guest_type_fail); 299 /* update stats */ 300 STATS_INC(b->stats.target); 309 STATS_INC(b->stats.target_fail); 328 STATS_INC(b->stats.lock); 335 STATS_INC(b->stats 693 struct vmballoon_stats *stats = &b->stats; local [all...] |
/drivers/net/can/ |
H A D | vcan.c | 75 struct net_device_stats *stats = &dev->stats; local 77 stats->rx_packets++; 78 stats->rx_bytes += cfd->len; 90 struct net_device_stats *stats = &dev->stats; local 96 stats->tx_packets++; 97 stats->tx_bytes += cfd->len; 110 stats->rx_packets++; 111 stats [all...] |
/drivers/infiniband/hw/cxgb4/ |
H A D | resource.c | 114 mutex_lock(&rdev->stats.lock); 115 rdev->stats.qid.cur += rdev->qpmask + 1; 116 mutex_unlock(&rdev->stats.lock); 145 mutex_lock(&rdev->stats.lock); 146 if (rdev->stats.qid.cur > rdev->stats.qid.max) 147 rdev->stats.qid.max = rdev->stats.qid.cur; 148 mutex_unlock(&rdev->stats.lock); 183 mutex_lock(&rdev->stats [all...] |
/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_port.c | 119 struct net_device_stats *stats = &priv->stats; local 138 stats->rx_packets = 0; 139 stats->rx_bytes = 0; 143 stats->rx_packets += priv->rx_ring[i]->packets; 144 stats->rx_bytes += priv->rx_ring[i]->bytes; 148 stats->tx_packets = 0; 149 stats->tx_bytes = 0; 159 stats->tx_packets += ring->packets; 160 stats [all...] |
/drivers/net/wireless/rtlwifi/rtl8192de/ |
H A D | trx.c | 228 rtlpriv->stats.rx_snr_db[i] = 271 if (rtlpriv->stats.rx_rssi_percentage[rfpath] == 0) { 272 rtlpriv->stats.rx_rssi_percentage[rfpath] = 277 rtlpriv->stats.rx_rssi_percentage[rfpath]) { 278 rtlpriv->stats.rx_rssi_percentage[rfpath] = 279 ((rtlpriv->stats.rx_rssi_percentage[rfpath] * 283 rtlpriv->stats.rx_rssi_percentage[rfpath] = 284 rtlpriv->stats.rx_rssi_percentage[rfpath] + 1; 286 rtlpriv->stats.rx_rssi_percentage[rfpath] = 287 ((rtlpriv->stats 479 rtl92de_rx_query_desc(struct ieee80211_hw *hw, struct rtl_stats *stats, struct ieee80211_rx_status *rx_status, u8 *p_desc, struct sk_buff *skb) argument [all...] |
/drivers/cpuidle/governors/ |
H A D | ladder.c | 37 } stats; member in struct:ladder_device_state 56 ldev->states[old_idx].stats.promotion_count = 0; 57 ldev->states[old_idx].stats.demotion_count = 0; 95 last_state->stats.promotion_count++; 96 last_state->stats.demotion_count = 0; 97 if (last_state->stats.promotion_count >= last_state->threshold.promotion_count) { 120 last_state->stats.demotion_count++; 121 last_state->stats.promotion_count = 0; 122 if (last_state->stats.demotion_count >= last_state->threshold.demotion_count) { 151 lstate->stats [all...] |
/drivers/net/ |
H A D | nlmon.c | 18 struct pcpu_lstats *stats = this_cpu_ptr(dev->lstats); local 20 u64_stats_update_begin(&stats->syncp); 21 stats->bytes += len; 22 stats->packets++; 23 u64_stats_update_end(&stats->syncp); 80 nlmon_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *stats) argument 102 stats->rx_packets = packets; 103 stats->tx_packets = 0; 105 stats->rx_bytes = bytes; 106 stats [all...] |
/drivers/net/wireless/ath/ath6kl/ |
H A D | main.c | 703 struct target_stats *stats = &vif->target_stats; local 711 ath6kl_dbg(ATH6KL_DBG_TRC, "updating target stats\n"); 713 stats->tx_pkt += le32_to_cpu(tgt_stats->stats.tx.pkt); 714 stats->tx_byte += le32_to_cpu(tgt_stats->stats.tx.byte); 715 stats->tx_ucast_pkt += le32_to_cpu(tgt_stats->stats.tx.ucast_pkt); 716 stats->tx_ucast_byte += le32_to_cpu(tgt_stats->stats [all...] |
/drivers/net/ethernet/arc/ |
H A D | emac_main.c | 156 struct net_device_stats *stats = &ndev->stats; local 170 stats->tx_errors++; 171 stats->tx_dropped++; 174 stats->tx_carrier_errors++; 177 stats->collisions++; 180 stats->tx_fifo_errors++; 182 stats->tx_packets++; 183 stats->tx_bytes += skb->len; 223 struct net_device_stats *stats local 339 struct net_device_stats *stats = &ndev->stats; local 550 struct net_device_stats *stats = &ndev->stats; local 586 struct net_device_stats *stats = &ndev->stats; local [all...] |
/drivers/net/wireless/ti/wlcore/ |
H A D | debugfs.h | 77 struct struct_type *stats = wl->stats.fw_stats; \ 82 stats->sub.name); \ 97 struct struct_type *stats = wl->stats.fw_stats; \ 105 buf, i, stats->sub.name[i]); \ 117 DEBUGFS_ADD(sub## _ ##name, stats)
|
/drivers/staging/lustre/lustre/include/ |
H A D | lprocfs_status.h | 155 * for irq context counter, i.e. stats with 176 LPROCFS_STATS_FLAG_NOPERCPU = 0x0001, /* stats have no percpu 197 /* Lock used when there are no percpu stats areas; For percpu stats, 383 extern int lprocfs_stats_alloc_one(struct lprocfs_stats *stats, 389 static inline int lprocfs_stats_lock(struct lprocfs_stats *stats, int opc, argument 399 if (stats->ls_flags & LPROCFS_STATS_FLAG_NOPERCPU) { 400 if (stats->ls_flags & LPROCFS_STATS_FLAG_IRQ_SAFE) 401 spin_lock_irqsave(&stats->ls_lock, *flags); 403 spin_lock(&stats 431 lprocfs_stats_unlock(struct lprocfs_stats *stats, int opc, unsigned long *flags) argument 465 lprocfs_stats_counter_size(struct lprocfs_stats *stats) argument 482 lprocfs_stats_counter_get(struct lprocfs_stats *stats, unsigned int cpuid, int index) argument 516 lprocfs_stats_collector(struct lprocfs_stats *stats, int idx, enum lprocfs_fields_flags field) argument 816 lprocfs_counter_add(struct lprocfs_stats *stats, int index, long amount) argument 819 lprocfs_counter_incr(struct lprocfs_stats *stats, int index) argument 822 lprocfs_counter_sub(struct lprocfs_stats *stats, int index, long amount) argument 825 lprocfs_counter_decr(struct lprocfs_stats *stats, int index) argument 828 lprocfs_counter_init(struct lprocfs_stats *stats, int index, unsigned conf, const char *name, const char *units) argument 841 lprocfs_clear_stats(struct lprocfs_stats *stats) argument 843 lprocfs_free_stats(struct lprocfs_stats **stats) argument 845 lprocfs_register_stats(struct proc_dir_entry *root, const char *name, struct lprocfs_stats *stats) argument 849 lprocfs_init_ops_stats(int num_private_stats, struct lprocfs_stats *stats) argument 852 lprocfs_init_mps_stats(int num_private_stats, struct lprocfs_stats *stats) argument 990 lprocfs_stats_collect(struct lprocfs_stats *stats, int idx, struct lprocfs_counter *cnt) argument 994 lprocfs_stats_collector(struct lprocfs_stats *stats, int idx, enum lprocfs_fields_flags field) argument [all...] |
/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | debugfs.c | 148 struct mlx5_cmd_stats *stats; local 156 stats = filp->private_data; 157 spin_lock_irq(&stats->lock); 158 if (stats->n) 159 field = div64_u64(stats->sum, stats->n); 160 spin_unlock_irq(&stats->lock); 175 struct mlx5_cmd_stats *stats; local 177 stats = filp->private_data; 178 spin_lock_irq(&stats 197 struct mlx5_cmd_stats *stats; local [all...] |
/drivers/md/bcache/ |
H A D | stats.c | 2 * bcache stats code 8 #include "stats.h" 135 static void scale_stats(struct cache_stats *stats, unsigned long rescale_at) argument 137 if (++stats->rescale == rescale_at) { 138 stats->rescale = 0; 139 scale_stat(&stats->cache_hits); 140 scale_stat(&stats->cache_misses); 141 scale_stat(&stats->cache_bypass_hits); 142 scale_stat(&stats->cache_bypass_misses); 143 scale_stat(&stats 183 mark_cache_stats(struct cache_stat_collector *stats, bool hit, bool bypass) argument [all...] |
/drivers/net/fddi/skfp/ |
H A D | skfddi.c | 677 /* Fill the bp->stats structure with driver-maintained counters */ 685 /* Fill the bp->stats structure with the SMT MIB object values */ 687 memcpy(bp->stats.smt_station_id, &bp->cmd_rsp_virt->smt_mib_get.smt_station_id, sizeof(bp->cmd_rsp_virt->smt_mib_get.smt_station_id)); 688 bp->stats.smt_op_version_id = bp->cmd_rsp_virt->smt_mib_get.smt_op_version_id; 689 bp->stats.smt_hi_version_id = bp->cmd_rsp_virt->smt_mib_get.smt_hi_version_id; 690 bp->stats.smt_lo_version_id = bp->cmd_rsp_virt->smt_mib_get.smt_lo_version_id; 691 memcpy(bp->stats.smt_user_data, &bp->cmd_rsp_virt->smt_mib_get.smt_user_data, sizeof(bp->cmd_rsp_virt->smt_mib_get.smt_user_data)); 692 bp->stats.smt_mib_version_id = bp->cmd_rsp_virt->smt_mib_get.smt_mib_version_id; 693 bp->stats.smt_mac_cts = bp->cmd_rsp_virt->smt_mib_get.smt_mac_ct; 694 bp->stats [all...] |
/drivers/net/ethernet/toshiba/ |
H A D | spider_net_ethtool.c | 143 struct ethtool_stats *stats, u64 *data) 147 data[0] = netdev->stats.tx_packets; 148 data[1] = netdev->stats.tx_bytes; 149 data[2] = netdev->stats.rx_packets; 150 data[3] = netdev->stats.rx_bytes; 151 data[4] = netdev->stats.tx_errors; 152 data[5] = netdev->stats.tx_dropped; 153 data[6] = netdev->stats.rx_dropped; 142 spider_net_get_ethtool_stats(struct net_device *netdev, struct ethtool_stats *stats, u64 *data) argument
|
/drivers/net/wireless/rtlwifi/rtl8192ce/ |
H A D | trx.c | 33 #include "../stats.h" 242 rtlpriv->stats.rx_snr_db[i] = 339 struct rtl_stats *stats, 347 stats->length = (u16) GET_RX_DESC_PKT_LEN(pdesc); 348 stats->rx_drvinfo_size = (u8) GET_RX_DESC_DRV_INFO_SIZE(pdesc) * 350 stats->rx_bufshift = (u8) (GET_RX_DESC_SHIFT(pdesc) & 0x03); 351 stats->icv = (u16) GET_RX_DESC_ICV(pdesc); 352 stats->crc = (u16) GET_RX_DESC_CRC32(pdesc); 353 stats->hwerror = (stats 338 rtl92ce_rx_query_desc(struct ieee80211_hw *hw, struct rtl_stats *stats, struct ieee80211_rx_status *rx_status, u8 *p_desc, struct sk_buff *skb) argument [all...] |