Home
last modified time | relevance | path

Searched refs:counters (Results 1 – 25 of 105) sorted by relevance

12345

/drivers/infiniband/core/
A Duverbs_std_types_counters.c48 ret = counters->device->ops.destroy_counters(counters); in uverbs_free_counters()
51 kfree(counters); in uverbs_free_counters()
61 struct ib_counters *counters; in UVERBS_HANDLER() local
73 if (!counters) in UVERBS_HANDLER()
76 counters->device = ib_dev; in UVERBS_HANDLER()
77 counters->uobject = uobj; in UVERBS_HANDLER()
78 uobj->object = counters; in UVERBS_HANDLER()
79 atomic_set(&counters->usecnt, 0); in UVERBS_HANDLER()
83 kfree(counters); in UVERBS_HANDLER()
93 struct ib_counters *counters = in UVERBS_HANDLER() local
[all …]
/drivers/net/ethernet/aquantia/atlantic/macsec/
A Dmacsec_api.c1873 memset(counters, 0, sizeof(*counters)); in aq_mss_get_egress_sc_counters()
1927 memset(counters, 0, sizeof(*counters)); in aq_mss_get_egress_sa_counters()
1956 counters->untagged_pkts[0] = in get_egress_common_counters()
1958 counters->untagged_pkts[1] = in get_egress_common_counters()
1989 memset(counters, 0, sizeof(*counters)); in aq_mss_get_egress_common_counters()
2166 memset(counters, 0, sizeof(*counters)); in aq_mss_get_ingress_sa_counters()
2210 counters->untagged_pkts[0] = in get_ingress_common_counters()
2212 counters->untagged_pkts[1] = in get_ingress_common_counters()
2270 counters->too_long_pkts[0] = in get_ingress_common_counters()
2272 counters->too_long_pkts[1] = in get_ingress_common_counters()
[all …]
A Dmacsec_api.h271 struct aq_mss_egress_sc_counters *counters,
280 struct aq_mss_egress_sa_counters *counters,
288 struct aq_mss_egress_common_counters *counters);
299 struct aq_mss_ingress_sa_counters *counters,
307 struct aq_mss_ingress_common_counters *counters);
/drivers/perf/amlogic/
A Dmeson_ddr_pmu_core.c147 memset(&pmu->counters, 0, sizeof(pmu->counters)); in meson_ddr_perf_event_start()
359 sum_cnter = &pmu->counters; in dmc_irq_handler()
376 counters.all_req, in dmc_irq_handler()
377 counters.all_cnt, in dmc_irq_handler()
378 counters.channel_cnt[0], in dmc_irq_handler()
379 counters.channel_cnt[1], in dmc_irq_handler()
380 counters.channel_cnt[2], in dmc_irq_handler()
381 counters.channel_cnt[3], in dmc_irq_handler()
383 pmu->counters.all_req, in dmc_irq_handler()
384 pmu->counters.all_cnt, in dmc_irq_handler()
[all …]
/drivers/gpu/drm/v3d/
A Dv3d_perfmon.c200 const struct v3d_perf_counter_desc *counters = NULL; in v3d_perfmon_init() local
204 counters = v3d_v71_performance_counters; in v3d_perfmon_init()
207 counters = v3d_v42_performance_counters; in v3d_perfmon_init()
212 v3d->perfmon_info.counters = counters; in v3d_perfmon_init()
243 u32 channel = V3D_SET_FIELD_VER(perfmon->counters[i], V3D_PCTR_S0, in v3d_perfmon_start()
247 channel |= V3D_SET_FIELD_VER(i < ncounters ? perfmon->counters[i] : 0, in v3d_perfmon_start()
250 channel |= V3D_SET_FIELD_VER(i < ncounters ? perfmon->counters[i] : 0, in v3d_perfmon_start()
253 channel |= V3D_SET_FIELD_VER(i < ncounters ? perfmon->counters[i] : 0, in v3d_perfmon_start()
352 if (req->counters[i] >= v3d->perfmon_info.max_counters) in v3d_perfmon_create_ioctl()
362 perfmon->counters[i] = req->counters[i]; in v3d_perfmon_create_ioctl()
[all …]
/drivers/net/wireless/intel/iwlwifi/mld/
A Dlow_latency.c44 struct iwl_mld_low_latency_packets_counters *counters = in iwl_mld_calc_low_latency() local
47 spin_lock_bh(&counters->lock); in iwl_mld_calc_low_latency()
49 total_vo_vi_pkts += counters->vo_vi[mac_id]; in iwl_mld_calc_low_latency()
52 counters->vo_vi[mac_id] = 0; in iwl_mld_calc_low_latency()
54 spin_unlock_bh(&counters->lock); in iwl_mld_calc_low_latency()
267 struct iwl_mld_low_latency_packets_counters *counters; in iwl_mld_low_latency_update_counters() local
275 if (WARN_ON_ONCE(fw_id >= ARRAY_SIZE(counters->vo_vi) || in iwl_mld_low_latency_update_counters()
285 counters = &mld->low_latency.pkts_counters[queue]; in iwl_mld_low_latency_update_counters()
287 spin_lock_bh(&counters->lock); in iwl_mld_low_latency_update_counters()
288 counters->vo_vi[fw_id]++; in iwl_mld_low_latency_update_counters()
[all …]
/drivers/accessibility/speakup/
A Dkeyhelp.c51 u_char *kp, counters[MAXFUNCS], ch, ch1; in build_key_data() local
56 memset(counters, 0, sizeof(counters)); in build_key_data()
66 counters[*kp]++; in build_key_data()
70 if (counters[i] == 0) in build_key_data()
73 offset += (counters[i] + 1); in build_key_data()
90 counters[ch1]--; in build_key_data()
94 p_key = key_data + offset + counters[ch1]; in build_key_data()
/drivers/net/wireless/silabs/wfx/
A Ddebug.c65 struct wfx_hif_mib_extended_count_table counters[3]; in wfx_counters_show() local
67 for (i = 0; i < ARRAY_SIZE(counters); i++) { in wfx_counters_show()
68 ret = wfx_hif_get_counters_table(wdev, i, counters + i); in wfx_counters_show()
79 le32_to_cpu(counters[2].count_##name), \ in wfx_counters_show()
80 le32_to_cpu(counters[0].count_##name), \ in wfx_counters_show()
81 le32_to_cpu(counters[1].count_##name)) in wfx_counters_show()
117 for (i = 0; i < ARRAY_SIZE(counters[0].reserved); i++) in wfx_counters_show()
119 le32_to_cpu(counters[2].reserved[i]), in wfx_counters_show()
120 le32_to_cpu(counters[0].reserved[i]), in wfx_counters_show()
121 le32_to_cpu(counters[1].reserved[i])); in wfx_counters_show()
/drivers/scsi/elx/efct/
A Defct_xport.c118 counters[EFCT_HW_LINK_STAT_CRC_COUNT].counter; in efct_xport_link_stats_cb()
130 counters[EFCT_HW_HOST_STAT_TX_KBYTE_COUNT].counter; in efct_xport_host_stats_cb()
132 counters[EFCT_HW_HOST_STAT_RX_KBYTE_COUNT].counter; in efct_xport_host_stats_cb()
134 counters[EFCT_HW_HOST_STAT_TX_FRAME_COUNT].counter; in efct_xport_host_stats_cb()
136 counters[EFCT_HW_HOST_STAT_RX_FRAME_COUNT].counter; in efct_xport_host_stats_cb()
143 struct efct_hw_link_stat_counts *counters, in efct_xport_async_link_stats_cb() argument
157 counters[EFCT_HW_LINK_STAT_CRC_COUNT].counter; in efct_xport_async_link_stats_cb()
162 struct efct_hw_host_stat_counts *counters, in efct_xport_async_host_stats_cb() argument
168 counters[EFCT_HW_HOST_STAT_TX_KBYTE_COUNT].counter; in efct_xport_async_host_stats_cb()
170 counters[EFCT_HW_HOST_STAT_RX_KBYTE_COUNT].counter; in efct_xport_async_host_stats_cb()
[all …]
/drivers/net/wireless/ti/wl18xx/
A Dmain.c1200 fw_status->counters.tx_released_pkts = in wl18xx_convert_fw_status_8_9_1()
1202 fw_status->counters.tx_lnk_free_pkts = in wl18xx_convert_fw_status_8_9_1()
1204 fw_status->counters.tx_lnk_sec_pn16 = in wl18xx_convert_fw_status_8_9_1()
1208 fw_status->counters.tx_last_rate = in wl18xx_convert_fw_status_8_9_1()
1212 fw_status->counters.hlid = in wl18xx_convert_fw_status_8_9_1()
1213 int_fw_status->counters.hlid; in wl18xx_convert_fw_status_8_9_1()
1240 fw_status->counters.tx_released_pkts = in wl18xx_convert_fw_status_8_9_0()
1242 fw_status->counters.tx_lnk_free_pkts = in wl18xx_convert_fw_status_8_9_0()
1246 fw_status->counters.tx_last_rate = in wl18xx_convert_fw_status_8_9_0()
1250 fw_status->counters.hlid = in wl18xx_convert_fw_status_8_9_0()
[all …]
A Dtx.c152 hlid = wl->fw_status->counters.hlid; in wl18xx_tx_immediate_complete()
156 wl->fw_status->counters.tx_last_rate; in wl18xx_tx_immediate_complete()
158 wl->fw_status->counters.tx_last_rate_mbps; in wl18xx_tx_immediate_complete()
/drivers/net/ethernet/mellanox/mlx5/core/
A Dfs_counters.c48 struct xarray counters; member
115 XA_STATE(xas, &fc_stats->counters, 0); in mlx5_fc_stats_query_all_counters()
202 xa_for_each(&fc_stats->counters, id, counter) in mlx5_fc_num_counters()
273 err = xa_err(xa_store(&fc_stats->counters, id, counter, GFP_KERNEL)); in mlx5_fc_create()
300 xa_erase(&fc_stats->counters, counter->id); in mlx5_fc_destroy()
314 xa_init(&fc_stats->counters); in mlx5_init_fc_stats()
349 xa_for_each(&fc_stats->counters, id, counter) { in mlx5_cleanup_fc_stats()
350 xa_erase(&fc_stats->counters, id); in mlx5_cleanup_fc_stats()
353 xa_destroy(&fc_stats->counters); in mlx5_cleanup_fc_stats()
/drivers/crypto/nx/
A Dnx-common-pseries.c130 struct ibm_nx842_counters *counters; member
143 atomic64_inc(&dev->counters->_x); \
402 ibm_nx842_incr_hist(local_devdata->counters->comp_times, in nx842_pseries_compress()
768 new_devdata->counters = old_devdata->counters; in nx842_OF_upd()
888 atomic64_read(&local_devdata->counters->_name)); \
931 times = local_devdata->counters->comp_times; in nx842_timehist_show()
933 times = local_devdata->counters->decomp_times; in nx842_timehist_show()
1040 new_devdata->counters = kzalloc(sizeof(*new_devdata->counters), in nx842_probe()
1042 if (!new_devdata->counters) { in nx842_probe()
1105 kfree(new_devdata->counters); in nx842_probe()
[all …]
/drivers/comedi/drivers/
A Daddi_apci_1564.c164 unsigned long counters; /* base address of 32-bit counters */ member
191 if (devpriv->counters) { in apci1564_reset()
192 unsigned long iobase = devpriv->counters + ADDI_TCW_CTRL_REG; in apci1564_reset()
237 if (devpriv->counters) { in apci1564_interrupt()
241 iobase = devpriv->counters + APCI1564_COUNTER(chan); in apci1564_interrupt()
579 unsigned long iobase = devpriv->counters + APCI1564_COUNTER(chan); in apci1564_counter_insn_config()
629 unsigned long iobase = devpriv->counters + APCI1564_COUNTER(chan); in apci1564_counter_insn_write()
648 unsigned long iobase = devpriv->counters + APCI1564_COUNTER(chan); in apci1564_counter_insn_read()
687 devpriv->counters = pci_resource_start(pcidev, 1); in apci1564_auto_attach()
753 if (devpriv->counters) { in apci1564_auto_attach()
/drivers/edac/
A Dedac_device.h111 struct edac_device_counter counters; /* basic UE and CE counters */ member
127 struct edac_device_counter counters; /* instance counters */ member
210 struct edac_device_counter counters; member
A Dedac_device.c508 block->counters.ce_count += count; in edac_device_handle_ce_count()
512 instance->counters.ce_count += count; in edac_device_handle_ce_count()
513 edac_dev->counters.ce_count += count; in edac_device_handle_ce_count()
554 block->counters.ue_count += count; in edac_device_handle_ue_count()
558 instance->counters.ue_count += count; in edac_device_handle_ue_count()
559 edac_dev->counters.ue_count += count; in edac_device_handle_ue_count()
/drivers/net/ethernet/realtek/
A Dr8169_main.c733 struct rtl8169_counters *counters; member
1854 struct rtl8169_counters *counters = tp->counters; in rtl8169_init_counter_offsets() local
1891 struct rtl8169_counters *counters; in rtl8169_get_ethtool_stats() local
1893 counters = tp->counters; in rtl8169_get_ethtool_stats()
2241 le64_to_cpu(tp->counters->tx_packets); in rtl8169_get_eth_mac_stats()
2251 le64_to_cpu(tp->counters->tx_errors); in rtl8169_get_eth_mac_stats()
2263 le64_to_cpu(tp->counters->tx_octets); in rtl8169_get_eth_mac_stats()
2269 le64_to_cpu(tp->counters->rx_octets); in rtl8169_get_eth_mac_stats()
4924 struct rtl8169_counters *counters = tp->counters; in rtl8169_get_stats64() local
5544 tp->counters = dmam_alloc_coherent (&pdev->dev, sizeof(*tp->counters), in rtl_init_one()
[all …]
/drivers/platform/mellanox/
A Dmlxbf-pmc.c126 size_t counters; member
1365 if (cnt_num >= pmc->block[blk_num].counters) in mlxbf_pmc_program_counter()
1478 if (cnt_num >= pmc->block[blk_num].counters) in mlxbf_pmc_read_counter()
1489 pmc->block[blk_num].counters * MLXBF_PMC_REG_SIZE; in mlxbf_pmc_read_counter()
1589 if (cnt_num >= pmc->block[blk_num].counters) in mlxbf_pmc_read_event()
1600 pmc->block[blk_num].counters * MLXBF_PMC_REG_SIZE; in mlxbf_pmc_read_event()
1906 MLXBF_PMC_CRSPACE_PERFMON_CTL(pmc->block[blk_num].counters), in mlxbf_pmc_enable_store()
2031 dev, pmc->block[blk_num].counters, in mlxbf_pmc_init_perftype_counter()
2037 dev, pmc->block[blk_num].counters, in mlxbf_pmc_init_perftype_counter()
2043 for (j = 0; j < pmc->block[blk_num].counters; ++j) { in mlxbf_pmc_init_perftype_counter()
[all …]
/drivers/gpu/drm/xe/
A Dxe_gt_stats.c26 atomic64_add(incr, &gt->stats.counters[id]); in xe_gt_stats_incr()
49 atomic64_read(&gt->stats.counters[id])); in xe_gt_stats_print_info()
/drivers/infiniband/hw/mlx5/
A Dcounters.c162 static int mlx5_ib_read_counters(struct ib_counters *counters, in mlx5_ib_read_counters() argument
166 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters); in mlx5_ib_read_counters()
186 ret = mcounters->read_counters(counters->device, &mread_attr); in mlx5_ib_read_counters()
206 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters); in mlx5_ib_destroy_counters()
208 mlx5_ib_counters_clear_description(counters); in mlx5_ib_destroy_counters()
210 mlx5_fc_destroy(to_mdev(counters->device)->mdev, in mlx5_ib_destroy_counters()
215 static int mlx5_ib_create_counters(struct ib_counters *counters, in mlx5_ib_create_counters() argument
218 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters); in mlx5_ib_create_counters()
1033 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters); in counters_set_description()
1138 if (!counters || atomic_read(&counters->usecnt) != 1) in mlx5_ib_counters_clear_description()
[all …]
/drivers/net/ethernet/realtek/rtase/
A Drtase_main.c1577 const struct rtase_counters *counters; in rtase_dump_state() local
1620 counters = tp->tally_vaddr; in rtase_dump_state()
1624 le64_to_cpu(counters->tx_packets)); in rtase_dump_state()
1628 le64_to_cpu(counters->tx_errors)); in rtase_dump_state()
1630 le32_to_cpu(counters->rx_errors)); in rtase_dump_state()
1632 le16_to_cpu(counters->rx_missed)); in rtase_dump_state()
1661 const struct rtase_counters *counters; in rtase_get_stats64() local
1663 counters = tp->tally_vaddr; in rtase_get_stats64()
1861 const struct rtase_counters *counters; in rtase_get_eth_mac_stats() local
1863 counters = tp->tally_vaddr; in rtase_get_eth_mac_stats()
[all …]
/drivers/vdpa/
A DKconfig79 bool "expose steering counters on debugfs"
82 Expose RX steering counters in debugfs to aid in debugging. For each VLAN
83 or non VLAN interface, two hardware counters are added to the RX flow
85 The counters counts the number of packets and bytes and exposes them in
86 debugfs. Once can read the counters using, e.g.:
/drivers/gpu/drm/msm/adreno/
A Da5xx_preempt.c252 void *counters; in preempt_init_ring() local
264 counters = msm_gem_kernel_new(gpu->dev, in preempt_init_ring()
267 if (IS_ERR(counters)) { in preempt_init_ring()
269 return PTR_ERR(counters); in preempt_init_ring()
/drivers/firmware/arm_scmi/
A Ddriver.c131 atomic_t counters[SCMI_DEBUG_COUNTERS_LAST]; member
613 scmi_inc_count(info->dbg->counters, XFERS_INFLIGHT); in scmi_xfer_inflight_register_unlocked()
1110 scmi_inc_count(info->dbg->counters, ERR_MSG_NOMEM); in scmi_handle_notification()
1189 scmi_inc_count(info->dbg->counters, RESPONSE_OK); in scmi_handle_response()
1464 scmi_inc_count(info->dbg->counters, SENT_FAIL); in do_xfer()
1471 scmi_inc_count(info->dbg->counters, SENT_OK); in do_xfer()
1476 scmi_inc_count(info->dbg->counters, ERR_PROTOCOL); in do_xfer()
2936 atomic_set(&dbg->counters[i], 0); in reset_all_on_write()
2950 struct dentry *counters; in scmi_debugfs_counters_setup() local
2953 counters = debugfs_create_dir("counters", trans); in scmi_debugfs_counters_setup()
[all …]
/drivers/md/dm-vdo/indexer/
A Dsparse-cache.c121 struct cached_index_counters counters; in __aligned() local
319 chapter->counters.consecutive_misses = 0; in score_search_hit()
326 chapter->counters.consecutive_misses++; in score_search_miss()
327 if (chapter->counters.consecutive_misses > cache->skip_threshold) in score_search_miss()
472 chapter->counters.consecutive_misses = 0; in cache_chapter_index()

Completed in 88 milliseconds

12345