| /linux/tools/perf/util/ |
| H A D | drm_pmu.c | 43 int num_events; member 137 static int add_event(struct drm_pmu_event **events, int *num_events, in add_event() argument 146 tmp = reallocarray(*events, *num_events + 1, sizeof(struct drm_pmu_event)); in add_event() 149 tmp[*num_events].unit = unit; in add_event() 150 tmp[*num_events].desc = desc; in add_event() 151 tmp[*num_events].name = strndup(line, colon - line); in add_event() 152 if (!tmp[*num_events].name) in add_event() 154 (*num_events)++; in add_event() 168 int num_events = 0; in read_drm_pmus_cb() local 188 add_event(&events, &num_events, line, DRM_PMU_UNIT_BYTES, in read_drm_pmus_cb() [all …]
|
| /linux/arch/sh/kernel/ |
| H A D | perf_event.c | 39 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 D | hw_breakpoint.c | 35 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 D | ubc.c | 48 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 D | perf_event.c | 261 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/amdgpu/ |
| H A D | amdgpu_pmu.c | 92 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 D | e500-pmu.c | 83 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 D | e6500-pmu.c | 85 static int num_events = 512; variable 91 if (event_low >= num_events || in e6500_xlate_event()
|
| /linux/drivers/bus/mhi/host/ |
| H A D | pci_generic.c | 294 .num_events = ARRAY_SIZE(mhi_qcom_qdu100_events), 359 .num_events = ARRAY_SIZE(mhi_qcom_sa8775p_events), 369 .num_events = ARRAY_SIZE(modem_qcom_v1_mhi_events), 378 .num_events = ARRAY_SIZE(modem_qcom_v1_mhi_events), 465 .num_events = ARRAY_SIZE(mhi_quectel_em1xx_events), 533 .num_events = ARRAY_SIZE(mhi_foxconn_sdx55_events), 542 .num_events = ARRAY_SIZE(mhi_foxconn_sdx55_events), 552 .num_events = ARRAY_SIZE(mhi_foxconn_sdx55_events), 700 .num_events = ARRAY_SIZE(mhi_mv3x_events), 748 .num_events = ARRAY_SIZE(modem_sierra_em919x_mhi_events), [all …]
|
| /linux/arch/sh/kernel/cpu/sh4/ |
| H A D | perf_event.c | 227 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 D | bperf_cgroup.bpf.c | 56 const volatile __u32 num_events = 1; variable 160 if (idx == num_events) in bperf_cgroup_count() 194 key = cgrp * num_events + idx; in bperf_cgroup_count()
|
| /linux/drivers/irqchip/ |
| H A D | irq-gic-v5-its.c | 41 u32 num_events; member 191 unsigned int num_events) in gicv5_its_create_itt_two_level() argument 235 complete_tables = num_events / events_per_l2_table; in gicv5_its_create_itt_two_level() 236 final_span = order_base_2(num_events % events_per_l2_table); in gicv5_its_create_itt_two_level() 487 event_id_bits = order_base_2(its_dev->num_events); in gicv5_its_device_register() 511 its_dev->num_events); in gicv5_its_device_register() 763 its_dev->num_events = nvec; in gicv5_its_alloc_device() 773 its_dev->event_map = (unsigned long *)bitmap_zalloc(its_dev->num_events, GFP_KERNEL); in gicv5_its_alloc_device() 830 if (WARN_ON_ONCE(!bitmap_empty(its_dev->event_map, its_dev->num_events))) in gicv5_its_msi_teardown() 888 its_dev->num_events, in gicv5_its_alloc_eventid() [all …]
|
| /linux/drivers/firmware/arm_scmi/ |
| H A D | notify.c | 163 if (pd_ && eid_ < pd_->num_events) \ 304 int num_events; member 698 int num_events, in scmi_allocate_registered_events_desc() argument 725 pd->registered_events = devm_kcalloc(ni->handle->dev, num_events, in scmi_allocate_registered_events_desc() 729 pd->num_events = num_events; in scmi_allocate_registered_events_desc() 784 for (i = 0; i < ee->num_events; i++) in scmi_register_protocol_events() 789 payld_sz, ee->num_events, in scmi_register_protocol_events() 795 for (i = 0; i < ee->num_events; i++, evt++) { in scmi_register_protocol_events()
|
| H A D | notify.h | 80 unsigned int num_events; member
|
| /linux/drivers/gpib/include/ |
| H A D | gpib_types.h | 202 unsigned int num_events; member 209 queue->num_events = 0; in init_event_queue()
|
| /linux/arch/sh/include/asm/ |
| H A D | perf_event.h | 11 unsigned int num_events; member
|
| H A D | hw_breakpoint.h | 31 unsigned int num_events; member
|
| /linux/drivers/dma/ |
| H A D | imx-sdma.c | 511 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 …]
|
| /linux/drivers/devfreq/event/ |
| H A D | exynos-ppmu.c | 36 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/iommu/iommufd/ |
| H A D | driver.c | 153 if (veventq->num_events == veventq->depth) { in iommufd_viommu_report_event() 166 veventq->num_events++; in iommufd_viommu_report_event()
|
| /linux/drivers/iio/accel/ |
| H A D | mma9553.c | 179 int num_events; member 222 data->num_events = MMA9553_EVENTS_INFO_SIZE; in mma9553_init_events() 223 for (i = 0; i < data->num_events; i++) { in mma9553_init_events() 236 for (i = 0; i < data->num_events; i++) in mma9553_get_event() 251 for (i = 0; i < data->num_events; i++) in mma9553_is_any_event_enabled()
|
| /linux/include/sound/ |
| H A D | soc-topology.h | 186 const struct snd_soc_tplg_widget_events *events, int num_events,
|
| /linux/drivers/infiniband/hw/mlx5/ |
| H A D | devx.c | 1994 static bool is_valid_events_legacy(int num_events, u16 *event_type_num_list, in is_valid_events_legacy() argument 1999 for (i = 0; i < num_events; i++) { in is_valid_events_legacy() 2014 int num_events, u16 *event_type_num_list, in is_valid_events() argument 2029 return is_valid_events_legacy(num_events, event_type_num_list, in is_valid_events() 2033 for (i = 0; i < num_events; i++) { in is_valid_events() 2079 int num_events; in UVERBS_HANDLER() local 2124 num_events = uverbs_attr_ptr_get_array_size( in UVERBS_HANDLER() 2128 if (num_events < 0) in UVERBS_HANDLER() 2129 return num_events; in UVERBS_HANDLER() 2131 if (num_events > MAX_NUM_EVENTS) in UVERBS_HANDLER() [all …]
|
| /linux/drivers/pci/controller/plda/ |
| H A D | pcie-plda-host.c | 299 for_each_set_bit(bit, &events, port->num_events) in plda_handle_event() 396 port->num_events, &plda_event_domain_ops, in plda_pcie_init_irq_domains() 446 for_each_set_bit(i, &port->events_bitmap, port->num_events) { in plda_init_interrupts()
|
| /linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
| H A D | main.c | 399 u32 start_idx, u32 num_events, in iwl_print_cont_event_trace() argument 424 if (WARN_ON(num_events > capacity - start_idx)) in iwl_print_cont_event_trace() 425 num_events = capacity - start_idx; in iwl_print_cont_event_trace() 431 for (i = 0; i < num_events; i++) { in iwl_print_cont_event_trace() 1699 u32 num_events, u32 mode, in iwl_print_event_log() argument 1710 if (num_events == 0) in iwl_print_event_log() 1738 for (i = 0; i < num_events; i++) { in iwl_print_event_log()
|