/Linux-v4.19/arch/sh/kernel/ |
D | perf_event.c | 42 static atomic_t num_events; variable 77 return sh_pmu->num_events; in perf_num_counters() 86 if (!atomic_add_unless(&num_events, -1, 1)) { in hw_perf_event_destroy() 88 if (atomic_dec_return(&num_events) == 0) in hw_perf_event_destroy() 139 if (!atomic_inc_not_zero(&num_events)) { in __hw_perf_event_init() 141 if (atomic_read(&num_events) == 0 && in __hw_perf_event_init() 145 atomic_inc(&num_events); in __hw_perf_event_init() 275 idx = find_first_zero_bit(cpuc->used_mask, sh_pmu->num_events); in sh_pmu_add() 276 if (idx == sh_pmu->num_events) in sh_pmu_add() 378 WARN_ON(_pmu->num_events > MAX_HWEVENTS); in register_sh_pmu()
|
D | hw_breakpoint.c | 38 static struct sh_ubc ubc_dummy = { .num_events = 0 }; 55 for (i = 0; i < sh_ubc->num_events; i++) { in arch_install_hw_breakpoint() 64 if (WARN_ONCE(i == sh_ubc->num_events, "Can't find any breakpoint slot")) in arch_install_hw_breakpoint() 87 for (i = 0; i < sh_ubc->num_events; i++) { in arch_uninstall_hw_breakpoint() 96 if (WARN_ONCE(i == sh_ubc->num_events, "Can't find any breakpoint slot")) in arch_uninstall_hw_breakpoint() 269 for (i = 0; i < sh_ubc->num_events; i++) { in flush_ptrace_hw_breakpoint() 299 for (i = 0; i < sh_ubc->num_events; i++) { in hw_breakpoint_handler() 407 WARN_ON(ubc->num_events > HBP_NUM); in register_sh_ubc()
|
/Linux-v4.19/arch/sh/kernel/cpu/sh4a/ |
D | ubc.c | 51 for (i = 0; i < sh4a_ubc.num_events; i++) in sh4a_ubc_enable_all() 61 for (i = 0; i < sh4a_ubc.num_events; i++) in sh4a_ubc_disable_all() 71 for (i = 0; i < sh4a_ubc.num_events; i++) in sh4a_ubc_active_mask() 90 .num_events = 2, 117 for (i = 0; i < sh4a_ubc.num_events; i++) { in sh4a_ubc_init()
|
D | perf_event.c | 264 for (i = 0; i < sh4a_pmu.num_events; i++) in sh4a_pmu_disable_all() 272 for (i = 0; i < sh4a_pmu.num_events; i++) in sh4a_pmu_enable_all() 278 .num_events = 2,
|
/Linux-v4.19/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_events.c | 527 static struct kfd_event_waiter *alloc_event_waiters(uint32_t num_events) in alloc_event_waiters() argument 532 event_waiters = kmalloc_array(num_events, in alloc_event_waiters() 536 for (i = 0; (event_waiters) && (i < num_events) ; i++) { in alloc_event_waiters() 581 static uint32_t test_event_condition(bool all, uint32_t num_events, in test_event_condition() argument 587 for (i = 0; i < num_events; i++) { in test_event_condition() 599 return activated_count == num_events ? in test_event_condition() 607 static int copy_signaled_event_data(uint32_t num_events, in copy_signaled_event_data() argument 617 for (i = 0; i < num_events; i++) { in copy_signaled_event_data() 653 static void free_waiters(uint32_t num_events, struct kfd_event_waiter *waiters) in free_waiters() argument 657 for (i = 0; i < num_events; i++) in free_waiters() [all …]
|
/Linux-v4.19/arch/powerpc/perf/ |
D | e500-pmu.c | 87 static int num_events = 128; variable 95 if (event_low >= num_events) in e500_xlate_event() 129 num_events = 256; in init_e500_pmu()
|
D | core-fsl-emb.c | 34 static atomic_t num_events; variable 226 if (atomic_read(&num_events)) { in fsl_emb_pmu_disable() 448 if (!atomic_add_unless(&num_events, -1, 1)) { in hw_perf_event_destroy() 450 if (atomic_dec_return(&num_events) == 0) in hw_perf_event_destroy() 573 if (!atomic_inc_not_zero(&num_events)) { in fsl_emb_pmu_event_init() 575 if (atomic_read(&num_events) == 0 && in fsl_emb_pmu_event_init() 579 atomic_inc(&num_events); in fsl_emb_pmu_event_init()
|
D | e6500-pmu.c | 89 static int num_events = 512; variable 95 if (event_low >= num_events || in e6500_xlate_event()
|
/Linux-v4.19/arch/sh/kernel/cpu/sh4/ |
D | perf_event.c | 230 for (i = 0; i < sh7750_pmu.num_events; i++) in sh7750_pmu_disable_all() 238 for (i = 0; i < sh7750_pmu.num_events; i++) in sh7750_pmu_enable_all() 244 .num_events = 2,
|
/Linux-v4.19/arch/s390/kernel/ |
D | perf_cpum_cf.c | 221 static atomic_t num_events = ATOMIC_INIT(0); variable 301 if (!atomic_add_unless(&num_events, -1, 1)) { in hw_perf_event_destroy() 303 if (atomic_dec_return(&num_events) == 0) in hw_perf_event_destroy() 401 if (!atomic_inc_not_zero(&num_events)) { in __hw_perf_event_init() 403 if (atomic_read(&num_events) == 0 && reserve_pmc_hardware()) in __hw_perf_event_init() 406 atomic_inc(&num_events); in __hw_perf_event_init()
|
D | perf_cpum_sf.c | 519 static atomic_t num_events; variable 587 if (!atomic_add_unless(&num_events, -1, 1)) { in hw_perf_event_destroy() 589 if (atomic_dec_return(&num_events) == 0) in hw_perf_event_destroy() 688 if (!atomic_inc_not_zero(&num_events)) { in __hw_perf_event_init() 690 if (atomic_read(&num_events) == 0 && reserve_pmc_hardware()) in __hw_perf_event_init() 693 atomic_inc(&num_events); in __hw_perf_event_init() 1947 if (!atomic_read(&num_events)) in cpusf_pmu_setup()
|
/Linux-v4.19/arch/sh/include/asm/ |
D | perf_event.h | 11 unsigned int num_events; member
|
D | hw_breakpoint.h | 31 unsigned int num_events; member
|
/Linux-v4.19/drivers/perf/ |
D | arm_pmu.c | 458 int enabled = bitmap_weight(hw_events->used_mask, armpmu->num_events); in armpmu_enable() 536 max_events = __oprofile_cpu_pmu->num_events; in perf_num_counters() 673 for (idx = 0; idx < armpmu->num_events; idx++) { in cpu_pm_pmu_setup() 712 int enabled = bitmap_weight(hw_events->used_mask, armpmu->num_events); in cpu_pm_pmu_notify() 878 pmu->name, pmu->num_events); in armpmu_register()
|
/Linux-v4.19/arch/arm/kernel/ |
D | perf_event_xscale.c | 173 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()
|
D | perf_event_v6.c | 326 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()
|
D | perf_event_v7.c | 657 (ARMV7_IDX_CYCLE_COUNTER + cpu_pmu->num_events - 1) 973 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in armv7pmu_handle_irq() 1052 for (idx = ARMV7_IDX_COUNTER0; idx < cpu_pmu->num_events; ++idx) { in armv7pmu_get_event_idx() 1096 u32 idx, nb_cnt = cpu_pmu->num_events, val; in armv7pmu_reset() 1197 &arm_pmu->num_events, 1); in armv7_probe_num_events() 1559 u32 idx, nb_cnt = cpu_pmu->num_events; in krait_pmu_reset() 1892 u32 idx, nb_cnt = cpu_pmu->num_events; in scorpion_pmu_reset()
|
/Linux-v4.19/drivers/dma/ |
D | imx-sdma.c | 417 int num_events; member 445 .num_events = 32, 466 .num_events = 48, 472 .num_events = 48, 490 .num_events = 48, 510 .num_events = 48, 529 .num_events = 48, 547 .num_events = 48, 1108 if (sdmac->event_id0 >= sdmac->sdma->drvdata->num_events) in sdma_config_channel() 1114 if (sdmac->event_id1 >= sdmac->sdma->drvdata->num_events) in sdma_config_channel() [all …]
|
D | pl330.c | 285 unsigned int num_events:6; member 1653 if (pl330->pcfg.num_events < 32 in pl330_update() 1654 && val & ~((1 << pl330->pcfg.num_events) - 1)) { in pl330_update() 1662 for (ev = 0; ev < pl330->pcfg.num_events; ev++) { in pl330_update() 1725 for (ev = 0; ev < pl330->pcfg.num_events; ev++) in _alloc_event() 1778 if (ev >= 0 && ev < pl330->pcfg.num_events in _free_event() 1837 pl330->pcfg.num_events = val; in read_dmac_config() 1938 if (pl330->pcfg.num_events == 0) { in pl330_add() 1953 for (i = 0; i < pl330->pcfg.num_events; i++) in pl330_add() 3071 pcfg->num_peri, pcfg->num_events); in pl330_probe()
|
/Linux-v4.19/arch/arm64/kernel/ |
D | perf_event.c | 474 (ARMV8_IDX_CYCLE_COUNTER + cpu_pmu->num_events - 1) 828 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in armv8pmu_handle_irq() 871 for (idx = ARMV8_IDX_COUNTER0; idx < cpu_pmu->num_events; idx ++) { in armv8pmu_get_single_idx() 887 for (idx = ARMV8_IDX_COUNTER0 + 1; idx < cpu_pmu->num_events; idx += 2) { in armv8pmu_get_chain_idx() 978 u32 idx, nb_cnt = cpu_pmu->num_events; in armv8pmu_reset() 1076 cpu_pmu->num_events = (armv8pmu_pmcr_read() >> ARMV8_PMU_PMCR_N_SHIFT) in __armv8pmu_probe_pmu() 1080 cpu_pmu->num_events += 1; in __armv8pmu_probe_pmu()
|
/Linux-v4.19/drivers/devfreq/event/ |
D | exynos-ppmu.c | 33 unsigned int num_events; member 524 info->num_events = count; in of_get_devfreq_events() 628 size = sizeof(struct devfreq_event_dev *) * info->num_events; in exynos_ppmu_probe() 636 for (i = 0; i < info->num_events; i++) { in exynos_ppmu_probe()
|
/Linux-v4.19/include/linux/perf/ |
D | arm_pmu.h | 103 int num_events; member
|
/Linux-v4.19/drivers/iio/accel/ |
D | mma9553.c | 190 int num_events; member 233 data->num_events = MMA9553_EVENTS_INFO_SIZE; in mma9553_init_events() 234 for (i = 0; i < data->num_events; i++) { in mma9553_init_events() 247 for (i = 0; i < data->num_events; i++) in mma9553_get_event() 262 for (i = 0; i < data->num_events; i++) in mma9553_is_any_event_enabled()
|
/Linux-v4.19/include/sound/ |
D | soc-topology.h | 193 const struct snd_soc_tplg_widget_events *events, int num_events,
|
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | main.c | 418 u32 start_idx, u32 num_events, in iwl_print_cont_event_trace() argument 444 if (WARN_ON(num_events > capacity - start_idx)) in iwl_print_cont_event_trace() 445 num_events = capacity - start_idx; in iwl_print_cont_event_trace() 451 for (i = 0; i < num_events; i++) { in iwl_print_cont_event_trace() 1698 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()
|