/linux/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/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() 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/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 | 98 int n_events; member
|
/linux/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/arch/arc/kernel/ |
A D | perf_event.c | 34 int n_events; member 212 if (event->attr.config >= arc_pmu->n_events) in arc_pmu_event_init() 515 arc_pmu->attr = devm_kmalloc_array(dev, arc_pmu->n_events + 1, in arc_pmu_raw_alloc() 520 arc_pmu->attrs = devm_kmalloc_array(dev, arc_pmu->n_events + 1, in arc_pmu_raw_alloc() 525 arc_pmu->raw_entry = devm_kmalloc_array(dev, arc_pmu->n_events, in arc_pmu_raw_alloc() 594 arc_pmu->n_events = cc_bcr.c; in arc_pmu_device_probe()
|
/linux/arch/powerpc/perf/ |
A D | core-book3s.c | 32 int n_events; member 1372 if (cpuhw->n_events == 0) { in power_pmu_enable() 1447 for (i = 0; i < cpuhw->n_events; ++i) { in power_pmu_enable() 1460 for (i = 0; i < cpuhw->n_events; ++i) { in power_pmu_enable() 1566 n0 = cpuhw->n_events; in power_pmu_add() 1601 ++cpuhw->n_events; in power_pmu_add() 1641 while (++i < cpuhw->n_events) { in power_pmu_del() 1646 --cpuhw->n_events; in power_pmu_del() 1666 if (cpuhw->n_events == 0) { in power_pmu_del() 1757 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/arch/x86/events/ |
A D | core.c | 990 n0 = cpuc->n_events; in x86_schedule_events() 1166 n = cpuc->n_events; in collect_events() 1167 if (!cpuc->n_events) in collect_events() 1455 n0 = cpuc->n_events; in x86_pmu_add() 1489 cpuc->n_events = n; in x86_pmu_add() 1653 while (++i < cpuc->n_events) { in x86_pmu_del() 1658 --cpuc->n_events; in x86_pmu_del() 2296 n = cpuc->n_events; in x86_pmu_commit_txn() 2435 fake_cpuc->n_events = n; in validate_group() 2440 fake_cpuc->n_events = 0; in validate_group() [all …]
|
A D | perf_event.h | 236 int n_events; /* the # of events in the below arrays */ member
|
/linux/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_zalloc(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/arch/riscv/kernel/ |
A D | perf_event.c | 302 if (cpuc->n_events == riscv_pmu->num_counters) in riscv_pmu_add() 315 cpuc->n_events++; in riscv_pmu_add() 334 cpuc->n_events--; in riscv_pmu_del()
|
/linux/arch/x86/events/intel/ |
A 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()
|
A D | uncore.h | 138 int n_events; member
|
/linux/arch/riscv/include/asm/ |
A D | perf_event.h | 47 int n_events; member
|
/linux/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/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()
|