Home
last modified time | relevance | path

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

123

/linux/arch/sh/kernel/
H A Dperf_event.c39 static atomic_t num_events; variable
65 if (!atomic_add_unless(&num_events, -1, 1)) { in hw_perf_event_destroy()
67 if (atomic_dec_return(&num_events) == 0) in hw_perf_event_destroy()
118 if (!atomic_inc_not_zero(&num_events)) { in __hw_perf_event_init()
120 if (atomic_read(&num_events) == 0 && in __hw_perf_event_init()
124 atomic_inc(&num_events); in __hw_perf_event_init()
254 idx = find_first_zero_bit(cpuc->used_mask, sh_pmu->num_events); in sh_pmu_add()
255 if (idx == sh_pmu->num_events) in sh_pmu_add()
357 WARN_ON(_pmu->num_events > MAX_HWEVENTS); in register_sh_pmu()
H A 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()
/linux/arch/sh/kernel/cpu/sh4a/
H A 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()
H A 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,
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_events.c532 uint32_t num_events = kfd_get_num_events(p); in kfd_criu_checkpoint_events() local
534 if (!num_events) in kfd_criu_checkpoint_events()
537 ev_privs = kvzalloc(num_events * sizeof(*ev_privs), GFP_KERNEL); in kfd_criu_checkpoint_events()
581 ev_privs, num_events * sizeof(*ev_privs)); in kfd_criu_checkpoint_events()
587 *priv_data_offset += num_events * sizeof(*ev_privs); in kfd_criu_checkpoint_events()
597 u32 num_events = 0; in kfd_get_num_events() local
600 num_events++; in kfd_get_num_events()
602 return num_events; in kfd_get_num_events()
783 static struct kfd_event_waiter *alloc_event_waiters(uint32_t num_events) in alloc_event_waiters() argument
788 event_waiters = kcalloc(num_events, sizeof(struct kfd_event_waiter), in alloc_event_waiters()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_pmu.c92 unsigned int num_events; member
138 .num_events = ARRAY_SIZE(vega20_events),
173 .num_events = ARRAY_SIZE(df_vega20_events),
203 .num_events = ARRAY_SIZE(arcturus_events),
435 int num_events) in amdgpu_pmu_create_attrs() argument
438 num_events, AMDGPU_PMU_EVENT_CONFIG_TYPE_NONE); in amdgpu_pmu_create_attrs()
461 *evt_attr = kcalloc(config->num_events, sizeof(**evt_attr), GFP_KERNEL); in amdgpu_pmu_alloc_pmu_attrs()
466 evt_attr_group->attrs = kcalloc(config->num_events + 1, in amdgpu_pmu_alloc_pmu_attrs()
533 config->events, config->num_events); in init_pmu_entry_by_type_and_add()
534 total_num_events = config->num_events; in init_pmu_entry_by_type_and_add()
/linux/arch/powerpc/perf/
H A 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()
H A 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()
H A De6500-pmu.c85 static int num_events = 512; variable
91 if (event_low >= num_events || in e6500_xlate_event()
/linux/arch/sh/kernel/cpu/sh4/
H A 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,
/linux/tools/perf/util/bpf_skel/
H A Dbperf_cgroup.bpf.c58 const volatile __u32 num_events = 1; variable
162 if (idx == num_events) in bperf_cgroup_count()
196 key = cgrp * num_events + idx; in bperf_cgroup_count()
/linux/drivers/bus/mhi/host/
H A Dpci_generic.c284 .num_events = ARRAY_SIZE(modem_qcom_v1_mhi_events),
293 .num_events = ARRAY_SIZE(modem_qcom_v1_mhi_events),
370 .num_events = ARRAY_SIZE(mhi_quectel_em1xx_events),
421 .num_events = ARRAY_SIZE(mhi_foxconn_sdx55_events),
431 .num_events = ARRAY_SIZE(mhi_foxconn_sdx55_events),
557 .num_events = ARRAY_SIZE(mhi_mv3x_events),
605 .num_events = ARRAY_SIZE(modem_sierra_em919x_mhi_events),
637 .num_events = ARRAY_SIZE(mhi_telit_fn980_hw_v1_events),
679 .num_events = ARRAY_SIZE(mhi_telit_fn990_events),
950 mhi_cntrl->nr_irqs = 1 + mhi_cntrl_config->num_events; in mhi_pci_get_irqs()
[all …]
/linux/drivers/firmware/arm_scmi/
H A Dnotify.c163 if (pd_ && eid_ < pd_->num_events) \
304 int num_events; member
694 int num_events, in scmi_allocate_registered_events_desc() argument
721 pd->registered_events = devm_kcalloc(ni->handle->dev, num_events, in scmi_allocate_registered_events_desc()
725 pd->num_events = num_events; in scmi_allocate_registered_events_desc()
780 for (i = 0; i < ee->num_events; i++) in scmi_register_protocol_events()
785 payld_sz, ee->num_events, in scmi_register_protocol_events()
791 for (i = 0; i < ee->num_events; i++, evt++) { in scmi_register_protocol_events()
H A Dnotify.h80 unsigned int num_events; member
H A Dsystem.c138 .num_events = ARRAY_SIZE(system_events),
/linux/arch/sh/include/asm/
H A Dperf_event.h11 unsigned int num_events; member
H A Dhw_breakpoint.h31 unsigned int num_events; member
/linux/drivers/dma/
H A Dimx-sdma.c511 int num_events; member
554 .num_events = 32,
575 .num_events = 48,
581 .num_events = 48,
599 .num_events = 48,
619 .num_events = 48,
638 .num_events = 48,
644 .num_events = 48,
663 .num_events = 48,
669 .num_events = 48,
[all …]
H A Dpl330.c284 unsigned int num_events:6; member
1675 if (pl330->pcfg.num_events < 32 in pl330_update()
1676 && val & ~((1 << pl330->pcfg.num_events) - 1)) { in pl330_update()
1684 for (ev = 0; ev < pl330->pcfg.num_events; ev++) { in pl330_update()
1747 for (ev = 0; ev < pl330->pcfg.num_events; ev++) in _alloc_event()
1800 if (ev >= 0 && ev < pl330->pcfg.num_events in _free_event()
1859 pl330->pcfg.num_events = val; in read_dmac_config()
1961 if (pl330->pcfg.num_events == 0) { in pl330_add()
1976 for (i = 0; i < pl330->pcfg.num_events; i++) in pl330_add()
3174 pcfg->num_peri, pcfg->num_events); in pl330_probe()
/linux/drivers/devfreq/event/
H A Dexynos-ppmu.c36 unsigned int num_events; member
525 info->num_events = count; in of_get_devfreq_events()
666 size = sizeof(struct devfreq_event_dev *) * info->num_events; in exynos_ppmu_probe()
674 for (i = 0; i < info->num_events; i++) { in exynos_ppmu_probe()
/linux/drivers/net/wireless/ath/ath11k/
H A Dmhi.c85 .num_events = ARRAY_SIZE(ath11k_mhi_events_qca6390),
150 .num_events = ARRAY_SIZE(ath11k_mhi_events_qcn9074),
/linux/drivers/iio/accel/
H A 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()
/linux/include/sound/
H A Dsoc-topology.h186 const struct snd_soc_tplg_widget_events *events, int num_events,
/linux/drivers/pci/controller/plda/
H A Dpcie-plda-host.c297 for_each_set_bit(bit, &events, port->num_events) in plda_handle_event()
394 port->num_events, in plda_pcie_init_irq_domains()
445 for_each_set_bit(i, &port->events_bitmap, port->num_events) { in plda_init_interrupts()
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dmain.c398 u32 start_idx, u32 num_events, in iwl_print_cont_event_trace() argument
423 if (WARN_ON(num_events > capacity - start_idx)) in iwl_print_cont_event_trace()
424 num_events = capacity - start_idx; in iwl_print_cont_event_trace()
430 for (i = 0; i < num_events; i++) { in iwl_print_cont_event_trace()
1680 u32 num_events, u32 mode, in iwl_print_event_log() argument
1691 if (num_events == 0) in iwl_print_event_log()
1719 for (i = 0; i < num_events; i++) { in iwl_print_event_log()

123