Searched refs:counters (Results 51 - 75 of 163) sorted by relevance

1234567

/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfs_counters.c42 /* Max number of counters to query in bulk read is 32K */
118 /* skip counters that are in idr, but not yet in counters list */
126 return counter ? &counter->list : &fc_stats->counters;
194 /* number of counters to query inc. the last counter */
206 list_for_each_entry_from(counter, &fc_stats->counters, list) {
252 "Can't increase flow counters bulk query buffer size, insufficient memory, bulk_size(%d)\n",
265 "Flow counters bulk query buffer size increased, bulk_size(%d)\n",
276 /* Take dellist first to ensure that counters cannot be deleted before
284 if (addlist || !list_empty(&fc_stats->counters))
[all...]
/linux-master/drivers/gpu/drm/vc4/
H A Dvc4_perfmon.c9 * The V3D block provides 16 hardware counters which can count various events.
81 perfmon->counters[i] += V3D_READ(V3D_PCTR(i));
157 /* Number of monitored counters cannot exceed HW limits. */
168 perfmon = kzalloc(struct_size(perfmon, counters, req->ncounters),
247 if (copy_to_user(u64_to_user_ptr(req->values_ptr), perfmon->counters,
/linux-master/drivers/infiniband/hw/mlx5/
H A Dcounters.c9 #include "counters.h"
139 static int mlx5_ib_read_counters(struct ib_counters *counters, argument
143 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters);
163 ret = mcounters->read_counters(counters->device, &mread_attr);
167 /* do the pass over the counters data array to assign according to the
181 static int mlx5_ib_destroy_counters(struct ib_counters *counters) argument
183 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters);
185 mlx5_ib_counters_clear_description(counters);
187 mlx5_fc_destroy(to_mdev(counters->device)->mdev,
192 static int mlx5_ib_create_counters(struct ib_counters *counters, argument
853 counters_set_description( struct ib_counters *counters, enum mlx5_ib_counters_type counters_type, struct mlx5_ib_flow_counters_desc *desc_data, u32 ncounters) argument
958 mlx5_ib_counters_clear_description(struct ib_counters *counters) argument
[all...]
/linux-master/fs/btrfs/
H A Dcompression.c677 /* Buckets store counters for each byte value */
1248 * Use 16 u32 counters for calculating new position in buf array
1260 u32 counters[COUNTERS_SIZE]; local
1269 * counters. Example: 48 33 4 ... in 64bit array
1283 memset(counters, 0, sizeof(counters));
1288 counters[addr]++;
1292 counters[i] += counters[i - 1];
1297 counters[add
[all...]
/linux-master/drivers/platform/mellanox/
H A Dmlxbf-pmc.c111 * @counters: Number of counters in the block
112 * @type: Type of counters in the block
123 size_t counters; member in struct:mlxbf_pmc_block_info
168 * @evt_num: Event number used to program counters
1089 /* Method to enable/disable/reset l3cache counters */
1111 /* Disable all counters before programming them */
1198 MLXBF_PMC_CRSPACE_PERFMON_VAL0(pmc->block[blk_num].counters) +
1209 if (cnt_num >= pmc->block[blk_num].counters)
1305 MLXBF_PMC_CRSPACE_PERFMON_VAL0(pmc->block[blk_num].counters)
[all...]
/linux-master/drivers/md/dm-vdo/indexer/
H A Dsparse-cache.c84 * These counters are essentially fields of the struct cached_chapter_index, but are segregated
118 * The cache-aligned counters change often and are placed at the end of the structure to
121 struct cached_index_counters counters; local
319 chapter->counters.consecutive_misses = 0;
326 chapter->counters.consecutive_misses++;
327 if (chapter->counters.consecutive_misses > cache->skip_threshold)
472 chapter->counters.consecutive_misses = 0;
/linux-master/net/bridge/netfilter/
H A Debtables.c31 /* Each cpu has its own set of counters, so there is no need for write_lock in
33 * For reading or updating the counters, the user context needs to
37 /* The size of each set of counters is altered to get cache alignment */
213 cb_base = COUNTER_BASE(private->counters, private->nentries,
988 struct ebt_counter *counters, unsigned int nentries)
993 /* counters of cpu 0 */
994 memcpy(counters, oldcounters,
997 /* add other counters to those of cpu 0 */
1003 ADD_COUNTER(counters[i], counter_base[i].bcnt,
1017 /* the user wants counters bac
987 get_counters(const struct ebt_counter *oldcounters, struct ebt_counter *counters, unsigned int nentries) argument
1378 do_update_counters(struct net *net, const char *name, struct ebt_counter __user *counters, unsigned int num_counters, unsigned int len) argument
1601 compat_uptr_t counters; member in struct:compat_ebt_replace
[all...]
/linux-master/arch/loongarch/kernel/
H A Dperf_event.c439 /* Don't read disabled counters! */
506 * First we pause the local counters, so that when we are locked
507 * here, the counters are all paused. When it gets locked due to
664 int counters = loongarch_pmu.num_counters; local
666 for (n = 0; n < counters; n++) {
690 * counters don't differentiate between read and write
859 int counters; local
864 pr_info("Performance counters: ");
865 counters = ((read_cpucfg(LOONGARCH_CPUCFG6) & CPUCFG6_PMNUM) >> 4) + 1;
867 loongarch_pmu.num_counters = counters;
[all...]
/linux-master/tools/testing/selftests/net/mptcp/
H A Dmptcp_sockopt.sh99 local counters values
100 counters=$(ip netns exec $ns $tables -v -L OUTPUT | grep DROP)
101 values=${counters%DROP*}
/linux-master/drivers/edac/
H A Dedac_pci.h86 /* Event counters for the this whole EDAC Device */
87 struct edac_pci_counter counters; member in struct:edac_pci_ctl_info
H A Dedac_pci_sysfs.c61 return sprintf(data, "%u\n", atomic_read(&pci->counters.pe_count));
67 return sprintf(data, "%u\n", atomic_read(&pci->counters.npe_count));
695 atomic_inc(&pci->counters.pe_count);
720 atomic_inc(&pci->counters.npe_count);
/linux-master/drivers/infiniband/core/
H A DMakefile14 nldev.o restrack.o counters.o ib_core_uverbs.o \
/linux-master/drivers/comedi/drivers/
H A Dni_tio.h108 struct ni_gpct *counters; member in struct:ni_gpct_device
/linux-master/include/linux/netfilter_bridge/
H A Debtables.h88 struct ebt_counter counters[] ____cacheline_aligned;
/linux-master/drivers/perf/hisilicon/
H A Dhisi_uncore_pmu.c3 * HiSilicon SoC Hardware event counters support
70 int counters = 1; local
82 counters++;
91 counters++;
94 /* The group can not count events more than the counters in the HW */
95 return counters <= hisi_pmu->num_counters;
193 * We do not support sampling as the counters are all
201 * The uncore counters not specific to any CPU, so cannot
209 * available counters in hardware.
278 * The HiSilicon PMU counters suppor
[all...]
/linux-master/fs/bcachefs/
H A DMakefile76 sb-counters.o \
/linux-master/drivers/net/wireless/ti/wlcore/
H A Drx.c213 hlid = status->counters.hlid;
217 status->counters.tx_last_rate_mbps;
/linux-master/include/linux/
H A Dpercpu_counter.h28 s32 __percpu *counters; member in struct:percpu_counter
130 return (fbc->counters != NULL);
/linux-master/drivers/perf/
H A Dthunderx2_pmu.c14 * Each UNCORE PMU device consists of 4 independent programmable counters.
30 /* 1 byte per counter(4 counters).
35 /* bits[3:0] to select counters, are indexed from 8 to 15. */
88 * L3C have 4 32-bit counters and the CCPI2 has 8 64-bit counters.
402 /* enable and start counters.
447 /* reset[4], enable[0] and start[1] counters */
528 struct perf_event *event, int *counters)
536 *counters = *counters
527 tx2_uncore_validate_event(struct pmu *pmu, struct perf_event *event, int *counters) argument
548 int counters = 0; local
[all...]
H A Dqcom_l3_pmu.c29 /* Number of counters on each PMU */
168 * Used to implement two types of hardware counters, standard (32bits) and
170 * implement long counters. This support is exposed via the 'lc' flag field
185 * 64bit counters are implemented by chaining two of the 32bit physical
186 * counters. The PMU only supports chaining of adjacent even/odd pairs
205 /* Initialize the hardware counters and reset prev_count*/
217 /* Finally, enable the counters */
231 /* Disable the counters */
267 * 32bit counters use a single physical counter and a hardware feature that
269 * the counter. This feature allows the counters t
455 int counters = 0; local
[all...]
/linux-master/drivers/net/wireless/st/cw1200/
H A Ddebug.c295 struct wsm_mib_counters_table counters; local
297 ret = wsm_get_counters_table(priv, &counters);
303 __le32_to_cpu(counters.name))
373 debugfs_create_file("counters", 0400, d->debugfs_phy, priv,
/linux-master/drivers/net/wireless/ti/wl18xx/
H A Dmain.c1199 fw_status->counters.tx_released_pkts =
1200 int_fw_status->counters.tx_released_pkts;
1201 fw_status->counters.tx_lnk_free_pkts =
1202 int_fw_status->counters.tx_lnk_free_pkts;
1203 fw_status->counters.tx_voice_released_blks =
1204 int_fw_status->counters.tx_voice_released_blks;
1205 fw_status->counters.tx_last_rate =
1206 int_fw_status->counters.tx_last_rate;
1207 fw_status->counters.tx_last_rate_mbps =
1208 int_fw_status->counters
[all...]
/linux-master/include/rdma/
H A Duverbs_std_types.h131 struct ib_counters **counters; member in struct:ib_uflow_resources
/linux-master/tools/testing/selftests/netfilter/
H A Dnft_meta.sh127 echo "OK: nftables meta iif/oif counters at expected values"
134 ip netns exec "$ns0" nft reset counters > /dev/null
/linux-master/arch/x86/include/asm/xen/
H A Dinterface.h263 uint32_t counters; member in struct:xen_pmu_amd_ctxt

Completed in 287 milliseconds

1234567