/linux-6.1.9/drivers/input/touchscreen/ |
D | s6sy761.c | 117 static int s6sy761_read_events(struct s6sy761_data *sdata, u16 n_events) in s6sy761_read_events() argument 129 .len = (n_events * S6SY761_EVENT_SIZE), in s6sy761_read_events() 197 static void s6sy761_handle_events(struct s6sy761_data *sdata, u8 n_events) in s6sy761_handle_events() argument 201 for (i = 0; i < n_events; i++) { in s6sy761_handle_events() 227 u8 n_events; in s6sy761_irq_handler() local 241 n_events = sdata->data[7] & S6SY761_MASK_LEFT_EVENTS; in s6sy761_irq_handler() 242 if (unlikely(n_events > S6SY761_EVENT_COUNT - 1)) in s6sy761_irq_handler() 245 if (n_events) { in s6sy761_irq_handler() 246 ret = s6sy761_read_events(sdata, n_events); in s6sy761_irq_handler() 253 s6sy761_handle_events(sdata, n_events + 1); in s6sy761_irq_handler()
|
/linux-6.1.9/arch/alpha/kernel/ |
D | perf_event.c | 37 int n_events; member 399 for (j = 0; j < cpuc->n_events; j++) { in maybe_change_configuration() 411 for (j = 0; j < cpuc->n_events; j++) { in maybe_change_configuration() 456 n0 = cpuc->n_events; in alpha_pmu_add() 463 cpuc->n_events++; in alpha_pmu_add() 495 for (j = 0; j < cpuc->n_events; j++) { in alpha_pmu_del() 502 while (++j < cpuc->n_events) { in alpha_pmu_del() 514 cpuc->n_events--; in alpha_pmu_del() 730 if (cpuc->n_events > 0) { in alpha_pmu_enable() 834 for (j = 0; j < cpuc->n_events; j++) { in alpha_perf_event_irq_handler() [all …]
|
/linux-6.1.9/drivers/dma/idxd/ |
D | perfmon.c | 93 n = idxd_pmu->n_events; in perfmon_collect_events() 174 fake_pmu->n_events = n; in perfmon_validate_group() 181 fake_pmu->n_events = n; in perfmon_validate_group() 383 for (i = 0; i < idxd->idxd_pmu->n_events; i++) { in perfmon_pmu_event_stop() 387 for (++i; i < idxd->idxd_pmu->n_events; i++) in perfmon_pmu_event_stop() 389 --idxd->idxd_pmu->n_events; in perfmon_pmu_event_stop() 433 idxd_pmu->n_events = n; in perfmon_pmu_event_add()
|
D | idxd.h | 107 int n_events; member
|
/linux-6.1.9/arch/sparc/kernel/ |
D | perf_event.c | 83 int n_events; member 927 for (i = 0; i < cpuc->n_events; i++) { in read_in_all_counters() 955 for (i = 0; i < cpuc->n_events; i++) { in calculate_single_pcr() 990 for (i = 0; i < cpuc->n_events; i++) { in calculate_multiple_pcrs() 1006 for (i = 0; i < cpuc->n_events; i++) { in calculate_multiple_pcrs() 1040 if (cpuc->n_events) in sparc_pmu_enable() 1073 for (i = 0; i < cpuc->n_events; i++) { in active_event_index() 1077 BUG_ON(i == cpuc->n_events); in active_event_index() 1122 for (i = 0; i < cpuc->n_events; i++) { in sparc_pmu_del() 1132 while (++i < cpuc->n_events) { in sparc_pmu_del() [all …]
|
/linux-6.1.9/arch/powerpc/perf/ |
D | core-book3s.c | 33 int n_events; member 805 return cpuhw->n_events; in power_pmu_wants_prompt_pmi() 893 for (i = 0; i < cpuhw->n_events; i++) { in any_pmc_overflown() 1439 if (cpuhw->n_events == 0) { in power_pmu_enable() 1481 if (ppmu->compute_mmcr(cpuhw->events, cpuhw->n_events, hwc_index, in power_pmu_enable() 1523 for (i = 0; i < cpuhw->n_events; ++i) { in power_pmu_enable() 1536 for (i = 0; i < cpuhw->n_events; ++i) { in power_pmu_enable() 1642 n0 = cpuhw->n_events; in power_pmu_add() 1677 ++cpuhw->n_events; in power_pmu_add() 1715 for (i = 0; i < cpuhw->n_events; ++i) { in power_pmu_del() [all …]
|
D | core-fsl-emb.c | 20 int n_events; member 240 ppc_set_pmu_inuse(cpuhw->n_events != 0); in fsl_emb_pmu_enable() 242 if (cpuhw->n_events > 0) { in fsl_emb_pmu_enable() 306 ++cpuhw->n_events; in fsl_emb_pmu_add() 367 cpuhw->n_events--; in fsl_emb_pmu_del()
|
/linux-6.1.9/arch/arc/kernel/ |
D | perf_event.c | 196 int n_events; member 374 if (event->attr.config >= arc_pmu->n_events) in arc_pmu_event_init() 677 arc_pmu->attr = devm_kmalloc_array(dev, arc_pmu->n_events + 1, in arc_pmu_raw_alloc() 682 arc_pmu->attrs = devm_kmalloc_array(dev, arc_pmu->n_events + 1, in arc_pmu_raw_alloc() 687 arc_pmu->raw_entry = devm_kmalloc_array(dev, arc_pmu->n_events, in arc_pmu_raw_alloc() 756 arc_pmu->n_events = cc_bcr.c; in arc_pmu_device_probe()
|
/linux-6.1.9/drivers/input/keyboard/ |
D | gpio_keys.c | 201 int n_events = get_n_events_by_type(type); in gpio_keys_attr_show_helper() local 206 bits = bitmap_zalloc(n_events, GFP_KERNEL); in gpio_keys_attr_show_helper() 222 ret = scnprintf(buf, PAGE_SIZE - 1, "%*pbl", n_events, bits); in gpio_keys_attr_show_helper() 244 int n_events = get_n_events_by_type(type); in gpio_keys_attr_store_helper() local 250 bits = bitmap_alloc(n_events, GFP_KERNEL); in gpio_keys_attr_store_helper() 254 error = bitmap_parselist(buf, bits, n_events); in gpio_keys_attr_store_helper() 259 if (!bitmap_subset(bits, bitmap, n_events)) { in gpio_keys_attr_store_helper()
|
/linux-6.1.9/drivers/perf/ |
D | riscv_pmu.c | 210 cpuc->n_events++; in riscv_pmu_add() 232 cpuc->n_events--; in riscv_pmu_del() 304 cpuc->n_events = 0; in riscv_pmu_alloc()
|
/linux-6.1.9/arch/x86/events/ |
D | core.c | 992 n0 = cpuc->n_events; in x86_schedule_events() 1168 n = cpuc->n_events; in collect_events() 1169 if (!cpuc->n_events) in collect_events() 1297 int n_running = cpuc->n_events - cpuc->n_added; in x86_pmu_enable() 1331 for (i = 0; i < cpuc->n_events; i++) { in x86_pmu_enable() 1446 n0 = cpuc->n_events; in x86_pmu_add() 1480 cpuc->n_events = n; in x86_pmu_add() 1629 for (i = 0; i < cpuc->n_events; i++) { in x86_pmu_del() 1634 if (WARN_ON_ONCE(i == cpuc->n_events)) /* called ->del() without ->add() ? */ in x86_pmu_del() 1638 if (i >= cpuc->n_events - cpuc->n_added) in x86_pmu_del() [all …]
|
D | perf_event.h | 238 int n_events; /* the # of events in the below arrays */ member
|
/linux-6.1.9/arch/x86/events/intel/ |
D | uncore.c | 384 if (box->n_events >= max_count) in uncore_collect_events() 387 n = box->n_events; in uncore_collect_events() 599 for (i = 0; i < box->n_events; i++) { in uncore_pmu_event_add() 624 else if (i < box->n_events) in uncore_pmu_event_add() 632 box->n_events = n; in uncore_pmu_event_add() 652 for (i = 0; i < box->n_events; i++) { in uncore_pmu_event_del() 656 for (++i; i < box->n_events; i++) in uncore_pmu_event_del() 659 --box->n_events; in uncore_pmu_event_del() 704 fake_box->n_events = n; in uncore_validate_group() 709 fake_box->n_events = n; in uncore_validate_group()
|
D | uncore.h | 139 int n_events; member
|
/linux-6.1.9/include/linux/perf/ |
D | riscv_pmu.h | 31 int n_events; member
|
/linux-6.1.9/include/linux/ |
D | input.h | 470 static inline void input_set_events_per_packet(struct input_dev *dev, int n_events) in input_set_events_per_packet() argument 472 dev->hint_events_per_packet = n_events; in input_set_events_per_packet()
|
/linux-6.1.9/drivers/input/ |
D | evdev.c | 463 unsigned int n_events = in evdev_compute_buffer_size() local 467 return roundup_pow_of_two(n_events); in evdev_compute_buffer_size()
|