/linux-4.1.27/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() 394 WARN_ON(_pmu->num_events > MAX_HWEVENTS); in register_sh_pmu()
|
D | hw_breakpoint.c | 37 static struct sh_ubc ubc_dummy = { .num_events = 0 }; 54 for (i = 0; i < sh_ubc->num_events; i++) { in arch_install_hw_breakpoint() 63 if (WARN_ONCE(i == sh_ubc->num_events, "Can't find any breakpoint slot")) in arch_install_hw_breakpoint() 86 for (i = 0; i < sh_ubc->num_events; i++) { in arch_uninstall_hw_breakpoint() 95 if (WARN_ONCE(i == sh_ubc->num_events, "Can't find any breakpoint slot")) in arch_uninstall_hw_breakpoint() 275 for (i = 0; i < sh_ubc->num_events; i++) { in flush_ptrace_hw_breakpoint() 305 for (i = 0; i < sh_ubc->num_events; i++) { in hw_breakpoint_handler() 418 WARN_ON(ubc->num_events > HBP_NUM); in register_sh_ubc()
|
/linux-4.1.27/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-4.1.27/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()
|
D | core-book3s.c | 1693 static atomic_t num_events; variable 1702 if (!atomic_add_unless(&num_events, -1, 1)) { in hw_perf_event_destroy() 1704 if (atomic_dec_return(&num_events) == 0) in hw_perf_event_destroy() 1878 if (!atomic_inc_not_zero(&num_events)) { in power_pmu_event_init() 1880 if (atomic_read(&num_events) == 0 && in power_pmu_event_init() 1884 atomic_inc(&num_events); in power_pmu_event_init()
|
/linux-4.1.27/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-4.1.27/arch/s390/kernel/ |
D | perf_cpum_cf.c | 219 static atomic_t num_events = ATOMIC_INIT(0); variable 294 if (!atomic_add_unless(&num_events, -1, 1)) { in hw_perf_event_destroy() 296 if (atomic_dec_return(&num_events) == 0) in hw_perf_event_destroy() 388 if (!atomic_inc_not_zero(&num_events)) { in __hw_perf_event_init() 390 if (atomic_read(&num_events) == 0 && reserve_pmc_hardware()) in __hw_perf_event_init() 393 atomic_inc(&num_events); in __hw_perf_event_init()
|
D | perf_cpum_sf.c | 555 static atomic_t num_events; variable 632 if (!atomic_add_unless(&num_events, -1, 1)) { in hw_perf_event_destroy() 634 if (atomic_dec_return(&num_events) == 0) in hw_perf_event_destroy() 679 if (!atomic_inc_not_zero(&num_events)) { in __hw_perf_event_init() 681 if (atomic_read(&num_events) == 0 && reserve_pmc_hardware()) in __hw_perf_event_init() 684 atomic_inc(&num_events); in __hw_perf_event_init() 1517 if (!atomic_read(&num_events)) in cpumf_pmu_notifier()
|
/linux-4.1.27/drivers/devfreq/event/ |
D | exynos-ppmu.c | 34 unsigned int num_events; member 222 info->num_events = count; in of_get_devfreq_events() 318 size = sizeof(struct devfreq_event_dev *) * info->num_events; in exynos_ppmu_probe() 328 for (i = 0; i < info->num_events; i++) { in exynos_ppmu_probe()
|
/linux-4.1.27/arch/arm/kernel/ |
D | perf_event_v7.c | 550 (ARMV7_IDX_CYCLE_COUNTER + cpu_pmu->num_events - 1) 862 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in armv7pmu_handle_irq() 941 for (idx = ARMV7_IDX_COUNTER0; idx < cpu_pmu->num_events; ++idx) { in armv7pmu_get_event_idx() 979 u32 idx, nb_cnt = cpu_pmu->num_events; in armv7pmu_reset() 1075 cpu_pmu->num_events = armv7_read_num_pmnc_events(); in armv7_a8_pmu_init() 1084 cpu_pmu->num_events = armv7_read_num_pmnc_events(); in armv7_a9_pmu_init() 1093 cpu_pmu->num_events = armv7_read_num_pmnc_events(); in armv7_a5_pmu_init() 1102 cpu_pmu->num_events = armv7_read_num_pmnc_events(); in armv7_a15_pmu_init() 1112 cpu_pmu->num_events = armv7_read_num_pmnc_events(); in armv7_a7_pmu_init() 1122 cpu_pmu->num_events = armv7_read_num_pmnc_events(); in armv7_a12_pmu_init() [all …]
|
D | perf_event_xscale.c | 165 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in xscale1pmu_handle_irq() 368 cpu_pmu->num_events = 3; in xscale1pmu_init() 506 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in xscale2pmu_handle_irq() 738 cpu_pmu->num_events = 5; in xscale2pmu_init()
|
D | perf_event_v6.c | 319 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in armv6pmu_handle_irq() 490 cpu_pmu->num_events = 3; in armv6pmu_init() 541 cpu_pmu->num_events = 3; in armv6mpcore_pmu_init()
|
D | perf_event.c | 490 int enabled = bitmap_weight(hw_events->used_mask, armpmu->num_events); in armpmu_enable() 550 armpmu->name, armpmu->num_events); in armpmu_register()
|
D | perf_event_cpu.c | 56 max_events = cpu_pmu->num_events; in perf_num_counters()
|
/linux-4.1.27/arch/sh/include/asm/ |
D | perf_event.h | 10 unsigned int num_events; member
|
D | hw_breakpoint.h | 31 unsigned int num_events; member
|
/linux-4.1.27/arch/arm64/kernel/ |
D | perf_event.c | 62 max_events = cpu_pmu->num_events; in armpmu_get_max_events() 625 int enabled = bitmap_weight(hw_events->used_mask, armpmu->num_events); in armpmu_enable() 825 #define ARMV8_IDX_COUNTER_LAST (ARMV8_IDX_CYCLE_COUNTER + cpu_pmu->num_events - 1) 1123 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in armv8pmu_handle_irq() 1200 for (idx = ARMV8_IDX_COUNTER0; idx < cpu_pmu->num_events; ++idx) { in armv8pmu_get_event_idx() 1237 u32 idx, nb_cnt = cpu_pmu->num_events; in armv8pmu_reset() 1282 armv8pmu.num_events = armv8pmu_read_num_pmnc_events(); in armv8_pmuv3_pmu_init() 1403 cpu_pmu->name, cpu_pmu->num_events); in init_hw_perf_events()
|
/linux-4.1.27/drivers/dma/ |
D | imx-sdma.c | 312 int num_events; member 335 .num_events = 32, 356 .num_events = 48, 362 .num_events = 48, 380 .num_events = 48, 400 .num_events = 48, 419 .num_events = 48, 867 if (sdmac->event_id0 >= sdmac->sdma->drvdata->num_events) in sdma_config_channel() 1383 for (i = 0; i < sdma->drvdata->num_events; i++) in sdma_init()
|
D | pl330.c | 282 unsigned int num_events:6; member 1564 if (pl330->pcfg.num_events < 32 in pl330_update() 1565 && val & ~((1 << pl330->pcfg.num_events) - 1)) { in pl330_update() 1573 for (ev = 0; ev < pl330->pcfg.num_events; ev++) { in pl330_update() 1634 for (ev = 0; ev < pl330->pcfg.num_events; ev++) in _alloc_event() 1692 if (ev >= 0 && ev < pl330->pcfg.num_events in _free_event() 1758 pl330->pcfg.num_events = val; in read_dmac_config() 1861 if (pl330->pcfg.num_events == 0) { in pl330_add() 1876 for (i = 0; i < pl330->pcfg.num_events; i++) in pl330_add() 2925 pcfg->num_peri, pcfg->num_events); in pl330_probe()
|
/linux-4.1.27/arch/arm64/include/asm/ |
D | pmu.h | 62 int num_events; member
|
/linux-4.1.27/arch/arm/include/asm/ |
D | pmu.h | 114 int num_events; member
|
/linux-4.1.27/drivers/iio/accel/ |
D | mma9553.c | 187 int num_events; member 230 data->num_events = MMA9553_EVENTS_INFO_SIZE; in mma9553_init_events() 231 for (i = 0; i < data->num_events; i++) { in mma9553_init_events() 244 for (i = 0; i < data->num_events; i++) in mma9553_get_event() 259 for (i = 0; i < data->num_events; i++) in mma9553_is_any_event_enabled()
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/ |
D | main.c | 330 u32 start_idx, u32 num_events, in iwl_print_cont_event_trace() argument 356 if (WARN_ON(num_events > capacity - start_idx)) in iwl_print_cont_event_trace() 357 num_events = capacity - start_idx; in iwl_print_cont_event_trace() 363 for (i = 0; i < num_events; i++) { in iwl_print_cont_event_trace() 1596 u32 num_events, u32 mode, in iwl_print_event_log() argument 1608 if (num_events == 0) in iwl_print_event_log() 1636 for (i = 0; i < num_events; i++) { in iwl_print_event_log()
|
/linux-4.1.27/drivers/bus/ |
D | arm-cci.c | 124 int num_events; member 158 #define CCI_PMU_CNTR_LAST(cci_pmu) (CCI_PMU_CYCLE_CNTR_IDX + cci_pmu->num_events - 1) 495 int enabled = bitmap_weight(hw_events->used_mask, cci_pmu->num_events); in cci_pmu_enable() 826 cci_pmu->num_events = pmu_get_max_counters(); in cci_pmu_init()
|
/linux-4.1.27/include/net/bluetooth/ |
D | mgmt.h | 72 __le16 num_events; member
|
/linux-4.1.27/net/bluetooth/ |
D | mgmt.c | 289 u16 num_commands, num_events; in read_commands() local 297 num_events = ARRAY_SIZE(mgmt_events); in read_commands() 300 num_events = ARRAY_SIZE(mgmt_untrusted_events); in read_commands() 303 rp_size = sizeof(*rp) + ((num_commands + num_events) * sizeof(u16)); in read_commands() 310 rp->num_events = cpu_to_le16(num_events); in read_commands() 318 for (i = 0; i < num_events; i++, opcode++) in read_commands() 326 for (i = 0; i < num_events; i++, opcode++) in read_commands()
|