/Linux-v6.1/kernel/gcov/ |
D | clang.c | 74 u32 num_counters; member 128 void llvm_gcda_emit_arcs(u32 num_counters, u64 *counters) in llvm_gcda_emit_arcs() argument 133 info->num_counters = num_counters; in llvm_gcda_emit_arcs() 231 sizeof(fn->counters[0]) * fn->num_counters); in gcov_info_reset() 281 for (i = 0; i < sfn_ptr->num_counters; i++) in gcov_info_add() 297 cv_size = fn->num_counters * sizeof(fn->counters[0]); in gcov_fn_info_dup() 387 pos += store_gcov_u32(buffer, pos, fi_ptr->num_counters * 2); in convert_to_gcda() 388 for (i = 0; i < fi_ptr->num_counters; i++) in convert_to_gcda()
|
/Linux-v6.1/drivers/infiniband/hw/mlx5/ |
D | counters.c | 280 int ret, num_counters; in do_get_hw_stats() local 286 num_counters = cnts->num_q_counters + in do_get_hw_stats() 324 return num_counters; in do_get_hw_stats() 382 int num_counters, num_hw_counters, num_op_counters; in mlx5_ib_get_hw_stats() local 389 num_counters = num_hw_counters + cnts->num_op_counters; in mlx5_ib_get_hw_stats() 391 if (index < 0 || index > num_counters) in mlx5_ib_get_hw_stats() 395 else if (index >= num_hw_counters && index < num_counters) in mlx5_ib_get_hw_stats() 563 u32 num_counters, num_op_counters; in __mlx5_ib_alloc_counters() local 565 num_counters = ARRAY_SIZE(basic_q_cnts); in __mlx5_ib_alloc_counters() 568 num_counters += ARRAY_SIZE(out_of_seq_q_cnts); in __mlx5_ib_alloc_counters() [all …]
|
/Linux-v6.1/arch/x86/events/intel/ |
D | uncore_snbep.c | 885 .num_counters = 2, 1042 .num_counters = 4, 1152 .num_counters = 4, 1245 .num_counters = 4, 1253 .num_counters = 4, 1265 .num_counters = 4, 1281 .num_counters = 4, 1290 .num_counters = 3, 1656 .num_counters = 2, 1787 .num_counters = 4, [all …]
|
D | uncore_snb.c | 289 .num_counters = 2, 307 .num_counters = 2, 367 .num_counters = 4, 405 .num_counters = 2, 432 .num_counters = 1, 446 .num_counters = 1, 550 .num_counters = 2, 562 .num_counters = 2, 576 .num_counters = 1, 884 .num_counters = 5, [all …]
|
D | core.c | 2849 int num_counters = hybrid(cpuc->pmu, num_counters); in intel_pmu_reset() local 2853 if (!num_counters) in intel_pmu_reset() 2860 for (idx = 0; idx < num_counters; idx++) { in intel_pmu_reset() 4101 for (idx = 0; idx < x86_pmu.num_counters; idx++) { in core_guest_get_msrs() 4119 *nr = x86_pmu.num_counters; in core_guest_get_msrs() 4134 for (idx = 0; idx < x86_pmu.num_counters; idx++) { in core_pmu_enable_all() 4522 if (!check_hw_exists(&pmu->pmu, pmu->num_counters, pmu->num_counters_fixed)) in init_hybrid_pmu() 4532 x86_pmu_show_pmu_cap(pmu->num_counters, pmu->num_counters_fixed, in init_hybrid_pmu() 5614 static void intel_pmu_check_num_counters(int *num_counters, in intel_pmu_check_num_counters() argument 5618 if (*num_counters > INTEL_PMC_MAX_GENERIC) { in intel_pmu_check_num_counters() [all …]
|
/Linux-v6.1/drivers/perf/ |
D | arm_dsu_pmu.c | 121 s8 num_counters; member 244 return (idx < dsu_pmu->num_counters) || in dsu_pmu_counter_valid() 313 idx = find_first_zero_bit(used_mask, dsu_pmu->num_counters); in dsu_pmu_get_event_idx() 314 if (idx >= dsu_pmu->num_counters) in dsu_pmu_get_event_idx() 601 dsu_pmu->num_counters = -1; in dsu_pmu_alloc() 670 u64 num_counters; in dsu_pmu_probe_pmu() local 673 num_counters = (__dsu_pmu_read_pmcr() >> CLUSTERPMCR_N_SHIFT) & in dsu_pmu_probe_pmu() 676 if (WARN_ON(num_counters > 31)) in dsu_pmu_probe_pmu() 677 num_counters = 31; in dsu_pmu_probe_pmu() 678 dsu_pmu->num_counters = num_counters; in dsu_pmu_probe_pmu() [all …]
|
D | arm_smmuv3_pmu.c | 129 unsigned int num_counters; member 299 unsigned int cur_idx, num_ctrs = smmu_pmu->num_counters; in smmu_pmu_apply_event_filter() 330 unsigned int num_ctrs = smmu_pmu->num_counters; in smmu_pmu_get_event_idx() 399 if (++group_num_events > smmu_pmu->num_counters) in smmu_pmu_event_init() 410 if (++group_num_events > smmu_pmu->num_counters) in smmu_pmu_event_init() 668 for_each_set_bit(idx, ovs, smmu_pmu->num_counters) { in smmu_pmu_handle_irq() 746 u64 counter_present_mask = GENMASK_ULL(smmu_pmu->num_counters - 1, 0); in smmu_pmu_reset() 866 smmu_pmu->num_counters = FIELD_GET(SMMU_PMCG_CFGR_NCTR, cfgr) + 1; in smmu_pmu_probe() 913 &res_0->start, smmu_pmu->num_counters, in smmu_pmu_probe()
|
D | qcom_l2_pmu.c | 113 int num_counters; member 344 int num_ctrs = cluster->l2cache_pmu->num_counters - 1; in l2_cache_get_event_idx() 388 int num_counters = cluster->l2cache_pmu->num_counters; in l2_cache_handle_irq() local 396 for_each_set_bit(idx, cluster->used_counters, num_counters) { in l2_cache_handle_irq() 920 l2cache_pmu->num_counters = get_num_counters(); in l2_cache_pmu_probe() 927 l2_cycle_ctr_idx = l2cache_pmu->num_counters - 1; in l2_cache_pmu_probe() 928 l2_counter_present_mask = GENMASK(l2cache_pmu->num_counters - 2, 0) | in l2_cache_pmu_probe()
|
/Linux-v6.1/arch/x86/events/ |
D | core.c | 194 int i, num_counters = x86_pmu.num_counters; in get_possible_num_counters() local 197 return num_counters; in get_possible_num_counters() 200 num_counters = max_t(int, num_counters, x86_pmu.hybrid_pmu[i].num_counters); in get_possible_num_counters() 202 return num_counters; in get_possible_num_counters() 207 int i, num_counters = get_possible_num_counters(); in reserve_pmc_hardware() local 209 for (i = 0; i < num_counters; i++) { in reserve_pmc_hardware() 214 for (i = 0; i < num_counters; i++) { in reserve_pmc_hardware() 225 i = num_counters; in reserve_pmc_hardware() 236 int i, num_counters = get_possible_num_counters(); in release_pmc_hardware() local 238 for (i = 0; i < num_counters; i++) { in release_pmc_hardware() [all …]
|
/Linux-v6.1/drivers/net/ethernet/marvell/prestera/ |
D | prestera_counter.c | 28 u32 num_counters; member 156 &block->num_counters); in prestera_counter_block_get() 160 block->stats = kcalloc(block->num_counters, in prestera_counter_block_get() 167 block->counter_flag = kcalloc(block->num_counters, in prestera_counter_block_get() 236 block->offset + block->num_counters, in prestera_counter_get_vacant() 382 if (!done || counter->total_read < block->num_counters) { in prestera_counter_stats_work() 387 for (i = 0; i < block->num_counters; i++) { in prestera_counter_stats_work()
|
/Linux-v6.1/net/bridge/netfilter/ |
D | ebtables.c | 1020 if (repl->num_counters) { in do_replace_finish() 1021 unsigned long size = repl->num_counters * sizeof(*counterstmp); in do_replace_finish() 1048 if (repl->num_counters && repl->num_counters != t->private->nentries) { in do_replace_finish() 1063 if (repl->num_counters) in do_replace_finish() 1075 if (repl->num_counters && in do_replace_finish() 1077 array_size(repl->num_counters, sizeof(struct ebt_counter)))) { in do_replace_finish() 1127 if (tmp.num_counters >= INT_MAX / sizeof(struct ebt_counter)) in do_replace() 1378 unsigned int num_counters, unsigned int len) in do_update_counters() argument 1384 if (num_counters == 0) in do_update_counters() 1387 tmp = vmalloc(array_size(num_counters, sizeof(*tmp))); in do_update_counters() [all …]
|
/Linux-v6.1/arch/loongarch/kernel/ |
D | perf_event.c | 135 unsigned int num_counters; member 257 for (i = 0; i < loongarch_pmu.num_counters; i++) { in loongarch_pmu_alloc_counter() 271 WARN_ON(idx < 0 || idx >= loongarch_pmu.num_counters); in loongarch_pmu_enable_event() 290 WARN_ON(idx < 0 || idx >= loongarch_pmu.num_counters); in loongarch_pmu_disable_event() 426 WARN_ON(idx < 0 || idx >= loongarch_pmu.num_counters); in loongarch_pmu_del() 518 for (n = 0; n < loongarch_pmu.num_counters; n++) { in pmu_handle_irq() 664 int counters = loongarch_pmu.num_counters; in reset_counters() 826 int ctr = loongarch_pmu.num_counters; in pause_local_counters() 841 int ctr = loongarch_pmu.num_counters; in resume_local_counters() 867 loongarch_pmu.num_counters = counters; in init_hw_perf_events()
|
/Linux-v6.1/drivers/perf/hisilicon/ |
D | hisi_uncore_pmu.c | 96 return counters <= hisi_pmu->num_counters; in hisi_validate_event_group() 103 u32 num_counters = hisi_pmu->num_counters; in hisi_uncore_pmu_get_event_idx() local 106 idx = find_first_zero_bit(used_mask, num_counters); in hisi_uncore_pmu_get_event_idx() 107 if (idx == num_counters) in hisi_uncore_pmu_get_event_idx() 146 for_each_set_bit(idx, &overflown, hisi_pmu->num_counters) { in hisi_uncore_pmu_isr() 397 hisi_pmu->num_counters); in hisi_uncore_pmu_enable()
|
/Linux-v6.1/arch/x86/events/amd/ |
D | core.c | 406 for (i = 0; i < x86_pmu.num_counters; i++) { in __amd_put_nb_event_constraints() 473 for_each_set_bit(idx, c->idxmsk, x86_pmu.num_counters) { in __amd_get_nb_event_constraints() 516 for (i = 0; i < x86_pmu.num_counters; i++) { in amd_alloc_nb() 708 for (idx = 0; idx < x86_pmu.num_counters; idx++) { in amd_pmu_check_overflow() 728 for (idx = 0; idx < x86_pmu.num_counters; idx++) { in amd_pmu_enable_all() 912 for (idx = 0; idx < x86_pmu.num_counters; idx++) { in amd_pmu_v2_handle_irq() 1250 .num_counters = AMD64_NUM_COUNTERS, 1349 x86_pmu.num_counters = AMD64_NUM_COUNTERS_CORE; in amd_core_pmu_init() 1359 x86_pmu.num_counters = ebx.split.num_core_pmc; in amd_core_pmu_init() 1361 amd_pmu_global_cntr_mask = (1ULL << x86_pmu.num_counters) - 1; in amd_core_pmu_init() [all …]
|
D | uncore.c | 44 int num_counters; member 136 for (i = 0; i < uncore->num_counters; i++) { in amd_uncore_add() 145 for (i = 0; i < uncore->num_counters; i++) { in amd_uncore_add() 185 for (i = 0; i < uncore->num_counters; i++) { in amd_uncore_del() 451 uncore_nb->num_counters = num_counters_nb; in amd_uncore_cpu_up_prepare() 469 uncore_llc->num_counters = num_counters_llc; in amd_uncore_cpu_up_prepare()
|
/Linux-v6.1/arch/x86/kvm/svm/ |
D | pmu.c | 28 unsigned int num_counters = pmu->nr_arch_gp_counters; in amd_pmc_idx_to_pmc() local 30 if (pmc_idx >= num_counters) in amd_pmc_idx_to_pmc() 33 return &pmu->gp_counters[array_index_nospec(pmc_idx, num_counters)]; in amd_pmc_idx_to_pmc()
|
/Linux-v6.1/drivers/infiniband/core/ |
D | counters.c | 20 if (port_counter->num_counters) in __counter_set_mode() 58 mode = (port_counter->num_counters) ? RDMA_COUNTER_MODE_MANUAL : in rdma_counter_set_auto_mode() 119 if (!stats || index >= stats->num_counters || in rdma_counter_modify() 184 port_counter->num_counters++; in alloc_and_bind() 213 port_counter->num_counters--; in rdma_counter_free() 214 if (!port_counter->num_counters && in rdma_counter_free() 268 for (i = 0; i < counter->stats->num_counters; i++) in counter_history_stat_update()
|
D | sysfs.c | 820 if (ret == stats->num_counters) in update_hw_stats() 899 if (!stats->descs || stats->num_counters <= 0) in alloc_hw_stats_device() 906 data = kzalloc(struct_size(data, attrs, stats->num_counters + 1), in alloc_hw_stats_device() 910 data->group.attrs = kcalloc(stats->num_counters + 2, in alloc_hw_stats_device() 949 data->stats->num_counters); in ib_setup_device_attrs() 950 if (ret != data->stats->num_counters) { in ib_setup_device_attrs() 958 for (i = 0; i < data->stats->num_counters; i++) { in ib_setup_device_attrs() 1005 if (!stats->descs || stats->num_counters <= 0) in alloc_hw_stats_port() 1012 data = kzalloc(struct_size(data, attrs, stats->num_counters + 1), in alloc_hw_stats_port() 1016 group->attrs = kcalloc(stats->num_counters + 2, in alloc_hw_stats_port() [all …]
|
/Linux-v6.1/arch/x86/events/zhaoxin/ |
D | core.c | 533 x86_pmu.num_counters = eax.split.num_counters; in zhaoxin_pmu_init() 601 x86_pmu.intel_ctrl = (1 << (x86_pmu.num_counters)) - 1; in zhaoxin_pmu_init() 606 c->idxmsk64 |= (1ULL << x86_pmu.num_counters) - 1; in zhaoxin_pmu_init() 607 c->weight += x86_pmu.num_counters; in zhaoxin_pmu_init()
|
/Linux-v6.1/drivers/infiniband/hw/bnxt_re/ |
D | hw_counters.c | 318 int num_counters = 0; in bnxt_re_ib_alloc_hw_port_stats() local 321 num_counters = BNXT_RE_NUM_EXT_COUNTERS; in bnxt_re_ib_alloc_hw_port_stats() 323 num_counters = BNXT_RE_NUM_STD_COUNTERS; in bnxt_re_ib_alloc_hw_port_stats() 325 return rdma_alloc_hw_stats_struct(bnxt_re_stat_descs, num_counters, in bnxt_re_ib_alloc_hw_port_stats()
|
/Linux-v6.1/drivers/comedi/drivers/ |
D | ni_tio.h | 109 unsigned int num_counters; member 124 unsigned int num_counters,
|
/Linux-v6.1/net/ipv4/netfilter/ |
D | arp_tables.c | 883 unsigned int num_counters, in __do_replace() argument 894 counters = xt_counters_alloc(num_counters); in __do_replace() 912 oldinfo = xt_replace_table(t, num_counters, newinfo, &ret); in __do_replace() 935 sizeof(struct xt_counters) * num_counters) != 0) { in __do_replace() 963 if (tmp.num_counters >= INT_MAX / sizeof(struct xt_counters)) in do_replace() 965 if (tmp.num_counters == 0) in do_replace() 986 tmp.num_counters, tmp.counters); in do_replace() 1022 if (private->number != tmp.num_counters) { in do_add_counters() 1056 u32 num_counters; member 1223 repl.num_counters = 0; in translate_compat_table() [all …]
|
/Linux-v6.1/drivers/memory/samsung/ |
D | exynos5422-dmc.c | 182 int num_counters; member 242 for (i = 0; i < dmc->num_counters; i++) { in exynos5_counters_set_event() 256 for (i = 0; i < dmc->num_counters; i++) { in exynos5_counters_enable_edev() 270 for (i = 0; i < dmc->num_counters; i++) { in exynos5_counters_disable_edev() 735 for (i = 0; i < dmc->num_counters; i++) { in exynos5_counters_get() 1334 dmc->num_counters = devfreq_event_get_edev_count(dmc->dev, in exynos5_performance_counters_init() 1336 if (dmc->num_counters < 0) { in exynos5_performance_counters_init() 1338 return dmc->num_counters; in exynos5_performance_counters_init() 1341 dmc->counter = devm_kcalloc(dmc->dev, dmc->num_counters, in exynos5_performance_counters_init() 1346 for (i = 0; i < dmc->num_counters; i++) { in exynos5_performance_counters_init()
|
/Linux-v6.1/drivers/acpi/ |
D | sysfs.c | 565 static u32 num_counters; variable 726 for (i = 0; i < num_counters; ++i) in counter_set() 847 num_counters = num_gpes + ACPI_NUM_FIXED_EVENTS + NUM_COUNTERS_EXTRA; in acpi_irq_stats_init() 849 all_attrs = kcalloc(num_counters + 1, sizeof(*all_attrs), GFP_KERNEL); in acpi_irq_stats_init() 853 all_counters = kcalloc(num_counters, sizeof(*all_counters), GFP_KERNEL); in acpi_irq_stats_init() 861 counter_attrs = kcalloc(num_counters, sizeof(*counter_attrs), GFP_KERNEL); in acpi_irq_stats_init() 865 for (i = 0; i < num_counters; ++i) { in acpi_irq_stats_init()
|
/Linux-v6.1/include/uapi/linux/netfilter_bridge/ |
D | ebtables.h | 54 unsigned int num_counters; member 70 unsigned int num_counters; member
|