/linux-6.3-rc2/drivers/input/touchscreen/ |
A 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.3-rc2/arch/alpha/kernel/ |
A 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() 726 if (cpuc->n_events > 0) { in alpha_pmu_enable() 830 for (j = 0; j < cpuc->n_events; j++) { in alpha_perf_event_irq_handler() [all …]
|
/linux-6.3-rc2/drivers/dma/idxd/ |
A 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()
|
A D | idxd.h | 107 int n_events; member
|
/linux-6.3-rc2/arch/sparc/kernel/ |
A 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() 1040 if (cpuc->n_events) in sparc_pmu_enable() 1077 BUG_ON(i == cpuc->n_events); in active_event_index() 1132 while (++i < cpuc->n_events) { in sparc_pmu_del() 1141 cpuc->n_events--; in sparc_pmu_del() 1380 n0 = cpuc->n_events; in sparc_pmu_add() 1406 cpuc->n_events++; in sparc_pmu_add() [all …]
|
/linux-6.3-rc2/arch/powerpc/perf/ |
A 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() 1642 n0 = cpuhw->n_events; in power_pmu_add() 1677 ++cpuhw->n_events; in power_pmu_add() 1717 while (++i < cpuhw->n_events) { in power_pmu_del() 1722 --cpuhw->n_events; in power_pmu_del() 1742 if (cpuhw->n_events == 0) { in power_pmu_del() 1833 cpuhw->n_txn_start = cpuhw->n_events; in power_pmu_start_txn() [all …]
|
A 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.3-rc2/arch/arc/kernel/ |
A 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.3-rc2/drivers/input/keyboard/ |
A 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.3-rc2/arch/x86/events/ |
A D | core.c | 994 n0 = cpuc->n_events; in x86_schedule_events() 1170 n = cpuc->n_events; in collect_events() 1171 if (!cpuc->n_events) in collect_events() 1448 n0 = cpuc->n_events; in x86_pmu_add() 1482 cpuc->n_events = n; in x86_pmu_add() 1646 while (++i < cpuc->n_events) { in x86_pmu_del() 1651 --cpuc->n_events; in x86_pmu_del() 2285 n = cpuc->n_events; in x86_pmu_commit_txn() 2424 fake_cpuc->n_events = n; in validate_group() 2429 fake_cpuc->n_events = 0; in validate_group() [all …]
|
A D | perf_event.h | 240 int n_events; /* the # of events in the below arrays */ member
|
/linux-6.3-rc2/drivers/perf/ |
A 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.3-rc2/include/linux/perf/ |
A D | riscv_pmu.h | 33 int n_events; member
|
/linux-6.3-rc2/arch/x86/events/intel/ |
A D | uncore.c | 399 if (box->n_events >= max_count) in uncore_collect_events() 402 n = box->n_events; in uncore_collect_events() 614 for (i = 0; i < box->n_events; i++) { in uncore_pmu_event_add() 639 else if (i < box->n_events) in uncore_pmu_event_add() 647 box->n_events = n; in uncore_pmu_event_add() 667 for (i = 0; i < box->n_events; i++) { in uncore_pmu_event_del() 671 for (++i; i < box->n_events; i++) in uncore_pmu_event_del() 674 --box->n_events; in uncore_pmu_event_del() 719 fake_box->n_events = n; in uncore_validate_group() 724 fake_box->n_events = n; in uncore_validate_group()
|
A D | uncore.h | 141 int n_events; member
|
/linux-6.3-rc2/include/linux/ |
A 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.3-rc2/drivers/input/ |
A 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()
|