Home
last modified time | relevance | path

Searched refs:num_events (Results 1 – 25 of 49) sorted by relevance

12

/kernel/linux/linux-5.10/arch/sh/kernel/
Dperf_event.c39 static atomic_t num_events; variable
74 return sh_pmu->num_events; in perf_num_counters()
83 if (!atomic_add_unless(&num_events, -1, 1)) { in hw_perf_event_destroy()
85 if (atomic_dec_return(&num_events) == 0) in hw_perf_event_destroy()
136 if (!atomic_inc_not_zero(&num_events)) { in __hw_perf_event_init()
138 if (atomic_read(&num_events) == 0 && in __hw_perf_event_init()
142 atomic_inc(&num_events); in __hw_perf_event_init()
272 idx = find_first_zero_bit(cpuc->used_mask, sh_pmu->num_events); in sh_pmu_add()
273 if (idx == sh_pmu->num_events) in sh_pmu_add()
375 WARN_ON(_pmu->num_events > MAX_HWEVENTS); in register_sh_pmu()
Dhw_breakpoint.c35 static struct sh_ubc ubc_dummy = { .num_events = 0 };
52 for (i = 0; i < sh_ubc->num_events; i++) { in arch_install_hw_breakpoint()
61 if (WARN_ONCE(i == sh_ubc->num_events, "Can't find any breakpoint slot")) in arch_install_hw_breakpoint()
84 for (i = 0; i < sh_ubc->num_events; i++) { in arch_uninstall_hw_breakpoint()
93 if (WARN_ONCE(i == sh_ubc->num_events, "Can't find any breakpoint slot")) in arch_uninstall_hw_breakpoint()
267 for (i = 0; i < sh_ubc->num_events; i++) { in flush_ptrace_hw_breakpoint()
297 for (i = 0; i < sh_ubc->num_events; i++) { in hw_breakpoint_handler()
405 WARN_ON(ubc->num_events > HBP_NUM); in register_sh_ubc()
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh4a/
Dubc.c48 for (i = 0; i < sh4a_ubc.num_events; i++) in sh4a_ubc_enable_all()
58 for (i = 0; i < sh4a_ubc.num_events; i++) in sh4a_ubc_disable_all()
68 for (i = 0; i < sh4a_ubc.num_events; i++) in sh4a_ubc_active_mask()
87 .num_events = 2,
114 for (i = 0; i < sh4a_ubc.num_events; i++) { in sh4a_ubc_init()
Dperf_event.c261 for (i = 0; i < sh4a_pmu.num_events; i++) in sh4a_pmu_disable_all()
269 for (i = 0; i < sh4a_pmu.num_events; i++) in sh4a_pmu_enable_all()
275 .num_events = 2,
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/
Dkfd_events.c526 static struct kfd_event_waiter *alloc_event_waiters(uint32_t num_events) in alloc_event_waiters() argument
531 event_waiters = kmalloc_array(num_events, in alloc_event_waiters()
537 for (i = 0; (event_waiters) && (i < num_events) ; i++) { in alloc_event_waiters()
582 static uint32_t test_event_condition(bool all, uint32_t num_events, in test_event_condition() argument
588 for (i = 0; i < num_events; i++) { in test_event_condition()
600 return activated_count == num_events ? in test_event_condition()
608 static int copy_signaled_event_data(uint32_t num_events, in copy_signaled_event_data() argument
618 for (i = 0; i < num_events; i++) { in copy_signaled_event_data()
654 static void free_waiters(uint32_t num_events, struct kfd_event_waiter *waiters) in free_waiters() argument
658 for (i = 0; i < num_events; i++) in free_waiters()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/perf/
De500-pmu.c83 static int num_events = 128; variable
91 if (event_low >= num_events) in e500_xlate_event()
125 num_events = 256; in init_e500_pmu()
Dcore-fsl-emb.c30 static atomic_t num_events; variable
209 if (atomic_read(&num_events)) { in fsl_emb_pmu_disable()
431 if (!atomic_add_unless(&num_events, -1, 1)) { in hw_perf_event_destroy()
433 if (atomic_dec_return(&num_events) == 0) in hw_perf_event_destroy()
556 if (!atomic_inc_not_zero(&num_events)) { in fsl_emb_pmu_event_init()
558 if (atomic_read(&num_events) == 0 && in fsl_emb_pmu_event_init()
562 atomic_inc(&num_events); in fsl_emb_pmu_event_init()
De6500-pmu.c85 static int num_events = 512; variable
91 if (event_low >= num_events || in e6500_xlate_event()
/kernel/linux/linux-5.10/arch/s390/kernel/
Dperf_cpum_cf.c166 static atomic_t num_events = ATOMIC_INIT(0); variable
173 if (!atomic_add_unless(&num_events, -1, 1)) { in hw_perf_event_destroy()
175 if (atomic_dec_return(&num_events) == 0) in hw_perf_event_destroy()
275 if (!atomic_inc_not_zero(&num_events)) { in __hw_perf_event_init()
277 if (atomic_read(&num_events) == 0 && __kernel_cpumcf_begin()) in __hw_perf_event_init()
280 atomic_inc(&num_events); in __hw_perf_event_init()
Dperf_cpum_sf.c536 static atomic_t num_events; variable
606 if (!atomic_add_unless(&num_events, -1, 1)) { in hw_perf_event_destroy()
608 if (atomic_dec_return(&num_events) == 0) in hw_perf_event_destroy()
775 if (!atomic_inc_not_zero(&num_events)) { in __hw_perf_event_init()
777 if (atomic_read(&num_events) == 0 && reserve_pmc_hardware()) in __hw_perf_event_init()
780 atomic_inc(&num_events); in __hw_perf_event_init()
2120 if (!atomic_read(&num_events)) in cpusf_pmu_setup()
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh4/
Dperf_event.c227 for (i = 0; i < sh7750_pmu.num_events; i++) in sh7750_pmu_disable_all()
235 for (i = 0; i < sh7750_pmu.num_events; i++) in sh7750_pmu_enable_all()
241 .num_events = 2,
/kernel/linux/linux-5.10/drivers/firmware/arm_scmi/
Dnotify.c161 if (pd_ && eid_ < pd_->num_events) \
301 int num_events; member
692 int num_events, in scmi_allocate_registered_events_desc() argument
719 pd->registered_events = devm_kcalloc(ni->handle->dev, num_events, in scmi_allocate_registered_events_desc()
723 pd->num_events = num_events; in scmi_allocate_registered_events_desc()
754 const struct scmi_event *evt, int num_events, in scmi_register_protocol_events() argument
775 for (i = 0; i < num_events; i++) in scmi_register_protocol_events()
780 payld_sz, num_events, ops); in scmi_register_protocol_events()
784 for (i = 0; i < num_events; i++, evt++) { in scmi_register_protocol_events()
Dnotify.h63 const struct scmi_event *evt, int num_events,
/kernel/linux/linux-5.10/arch/sh/include/asm/
Dperf_event.h11 unsigned int num_events; member
Dhw_breakpoint.h31 unsigned int num_events; member
/kernel/linux/linux-5.10/drivers/perf/
Darm_pmu.c525 int enabled = bitmap_weight(hw_events->used_mask, armpmu->num_events); in armpmu_enable()
603 max_events = __oprofile_cpu_pmu->num_events; in perf_num_counters()
776 for (idx = 0; idx < armpmu->num_events; idx++) { in cpu_pm_pmu_setup()
815 int enabled = bitmap_weight(hw_events->used_mask, armpmu->num_events); in cpu_pm_pmu_notify()
984 pmu->name, pmu->num_events, in armpmu_register()
/kernel/linux/linux-5.10/drivers/dma/
Dimx-sdma.c421 int num_events; member
455 .num_events = 32,
476 .num_events = 48,
482 .num_events = 48,
500 .num_events = 48,
520 .num_events = 48,
539 .num_events = 48,
557 .num_events = 48,
563 .num_events = 48,
1624 if (sdmac->event_id0 >= sdmac->sdma->drvdata->num_events) in sdma_config()
[all …]
/kernel/linux/linux-5.10/arch/arm/kernel/
Dperf_event_xscale.c173 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in xscale1pmu_handle_irq()
383 cpu_pmu->num_events = 3; in xscale1pmu_init()
519 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in xscale2pmu_handle_irq()
752 cpu_pmu->num_events = 5; in xscale2pmu_init()
Dperf_event_v6.c326 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in armv6pmu_handle_irq()
504 cpu_pmu->num_events = 3; in armv6pmu_init()
555 cpu_pmu->num_events = 3; in armv6mpcore_pmu_init()
/kernel/linux/linux-5.10/drivers/devfreq/event/
Dexynos-ppmu.c36 unsigned int num_events; member
521 info->num_events = count; in of_get_devfreq_events()
672 size = sizeof(struct devfreq_event_dev *) * info->num_events; in exynos_ppmu_probe()
680 for (i = 0; i < info->num_events; i++) { in exynos_ppmu_probe()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Ddevx.c1805 static bool is_valid_events_legacy(int num_events, u16 *event_type_num_list, in is_valid_events_legacy() argument
1810 for (i = 0; i < num_events; i++) { in is_valid_events_legacy()
1825 int num_events, u16 *event_type_num_list, in is_valid_events() argument
1840 return is_valid_events_legacy(num_events, event_type_num_list, in is_valid_events()
1844 for (i = 0; i < num_events; i++) { in is_valid_events()
1890 int num_events; in UVERBS_HANDLER() local
1936 num_events = uverbs_attr_ptr_get_array_size( in UVERBS_HANDLER()
1940 if (num_events < 0) in UVERBS_HANDLER()
1941 return num_events; in UVERBS_HANDLER()
1943 if (num_events > MAX_NUM_EVENTS) in UVERBS_HANDLER()
[all …]
/kernel/linux/linux-5.10/drivers/iio/accel/
Dmma9553.c182 int num_events; member
225 data->num_events = MMA9553_EVENTS_INFO_SIZE; in mma9553_init_events()
226 for (i = 0; i < data->num_events; i++) { in mma9553_init_events()
239 for (i = 0; i < data->num_events; i++) in mma9553_get_event()
254 for (i = 0; i < data->num_events; i++) in mma9553_is_any_event_enabled()
/kernel/linux/linux-5.10/arch/nds32/kernel/
Dperf_event_cpu.c250 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in nds32_pmu_handle_irq()
289 return ((idx >= 0) && (idx < cpu_pmu->num_events)); in nds32_pfm_counter_valid()
670 cpu_pmu->num_events = nds32_read_num_pfm_events(); in device_pmu_init()
699 nds32_pmu->num_events); in nds32_pmu_enable()
1062 nds32_pmu->name, nds32_pmu->num_events); in nds32_pmu_register()
/kernel/linux/linux-5.10/include/sound/
Dsoc-topology.h195 const struct snd_soc_tplg_widget_events *events, int num_events,
/kernel/linux/linux-5.10/include/linux/perf/
Darm_pmu.h101 int num_events; member

12