Home
last modified time | relevance | path

Searched refs:nevents (Results 1 – 25 of 31) sorted by relevance

12

/third_party/libinput/tools/
Dptraccel-debug.c67 int nevents, in print_ptraccel_movement() argument
85 if (nevents == 0) { in print_ptraccel_movement()
87 nevents = max_dx; in print_ptraccel_movement()
89 nevents = 1.0 * max_dx/step + 0.5; in print_ptraccel_movement()
93 nevents *= 1.5; in print_ptraccel_movement()
98 for (i = 0; i < nevents; i++) { in print_ptraccel_movement()
114 int nevents, in print_ptraccel_sequence() argument
133 for (i = 0; i < nevents; i++, dx++) { in print_ptraccel_sequence()
220 int nevents = 0; in main() local
281 nevents = atoi(optarg); in main()
[all …]
Dlibinput-record.c89 size_t nevents; member
372 if (d->nevents == d->events_sz) in handle_evdev_frame()
375 event = &d->events[d->nevents++]; in handle_evdev_frame()
401 if (d->nevents == d->events_sz) in handle_evdev_frame()
405 event = &d->events[d->nevents++]; in handle_evdev_frame()
1284 len = d->nevents - offset; in print_cached_events()
1285 assert(offset + len <= d->nevents); in print_cached_events()
1378 if (current->nevents == current->events_sz) in handle_libinput_events()
1381 event = &current->events[current->nevents++]; in handle_libinput_events()
1396 size_t first_idx = d->nevents; in handle_events()
[all …]
/third_party/libuv/src/unix/
Dkqueue.c116 unsigned int nevents; in uv__io_poll() local
141 nevents = 0; in uv__io_poll()
165 EV_SET(events + nevents, w->fd, filter, op, fflags, 0, 0); in uv__io_poll()
167 if (++nevents == ARRAY_SIZE(events)) { in uv__io_poll()
168 if (kevent(loop->backend_fd, events, nevents, NULL, 0, NULL)) in uv__io_poll()
170 nevents = 0; in uv__io_poll()
175 EV_SET(events + nevents, w->fd, EVFILT_WRITE, EV_ADD, 0, 0, 0); in uv__io_poll()
177 if (++nevents == ARRAY_SIZE(events)) { in uv__io_poll()
178 if (kevent(loop->backend_fd, events, nevents, NULL, 0, NULL)) in uv__io_poll()
180 nevents = 0; in uv__io_poll()
[all …]
Depoll.c127 int nevents; in uv__io_poll() local
302 nevents = 0; in uv__io_poll()
377 nevents++; in uv__io_poll()
397 if (nevents != 0) { in uv__io_poll()
Dposix-poll.c142 unsigned int nevents; in uv__io_poll() local
254 nevents = 0; in uv__io_poll()
291 nevents++; in uv__io_poll()
313 if (nevents != 0) in uv__io_poll()
Dos390-syscalls.c288 int nevents; in epoll_wait() local
321 nevents = 0; in epoll_wait()
341 events[nevents++] = ev; in epoll_wait()
346 events[nevents - 1].is_msg = 1; in epoll_wait()
348 return nevents; in epoll_wait()
Dsunos.c162 int nevents; in uv__io_poll() local
282 nevents = 0; in uv__io_poll()
314 nevents++; in uv__io_poll()
340 if (nevents != 0) { in uv__io_poll()
Dos390.c714 int nevents = 0; in uv__io_poll() local
830 nevents++; in uv__io_poll()
841 if (nevents != 0) { in uv__io_poll()
Daix.c143 int nevents; in uv__io_poll() local
281 nevents = 0; in uv__io_poll()
321 nevents++; in uv__io_poll()
340 if (nevents != 0) { in uv__io_poll()
/third_party/libinput/test/
Dtest-path.c663 int nevents; in START_TEST() local
689 nevents = 0; in START_TEST()
695 nevents++; in START_TEST()
698 ck_assert_int_eq(nevents, 2); in START_TEST()
703 nevents = 0; in START_TEST()
709 nevents++; in START_TEST()
712 ck_assert_int_eq(nevents, 2); in START_TEST()
717 nevents = 0; in START_TEST()
723 nevents++; in START_TEST()
726 ck_assert_int_eq(nevents, 2); in START_TEST()
[all …]
Dtest-utils.c528 size_t nevents = ARRAY_LENGTH(events); in START_TEST() local
531 success = parse_evcode_property(t->prop, events, &nevents); in START_TEST()
536 ck_assert_int_eq(nevents, t->ntuples); in START_TEST()
537 for (size_t j = 0; j < nevents; j++) { in START_TEST()
Dtest-pad.c413 int nevents = 0; in START_TEST() local
443 nevents++; in START_TEST()
458 ck_assert_int_eq(nevents, 360/step_size - 1); in START_TEST()
/third_party/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify05.c109 int len, nevents = 0, got_overflow = 0; in test_fanotify() local
149 if (nevents < num_files) in test_fanotify()
150 event_res(&event, nevents); in test_fanotify()
153 nevents++; in test_fanotify()
183 tst_res(TINFO, "Got %d events", nevents); in test_fanotify()
Dfanotify09.c78 int nevents; member
279 if (ret < tc->nevents * (int)FAN_EVENT_METADATA_LEN) { in test_fanotify()
282 ret, tc->nevents * (int)FAN_EVENT_METADATA_LEN); in test_fanotify()
287 if (tc->nevents > 1) { in test_fanotify()
295 tc->nevents, ret); in test_fanotify()
312 if (tc->nevents > 1 && !tc->ondir) in test_fanotify()
/third_party/node/test/pummel/
Dtest-fs-watch-file-slow.js34 let nevents = 0; variable
44 switch (++nevents) {
62 assert.strictEqual(nevents, 4);
/third_party/libinput/src/
Dutil-prop-parsers.c351 parse_evcode_property(const char *prop, struct input_event *events, size_t *nevents) in parse_evcode_property() argument
372 ncodes = min(*nevents, ncodes); in parse_evcode_property()
397 *nevents = ncodes; in parse_evcode_property()
Dutil-prop-parsers.h40 bool parse_evcode_property(const char *prop, struct input_event *events, size_t *nevents);
Dquirks.c742 size_t nevents = ARRAY_LENGTH(events); in parse_attr() local
744 if (!parse_evcode_property(value, events, &nevents) || in parse_attr()
745 nevents == 0) in parse_attr()
748 for (size_t i = 0; i < nevents; i++) { in parse_attr()
752 p->value.tuples.ntuples = nevents; in parse_attr()
/third_party/mesa3d/src/glx/
Ddri2.c227 int i, nevents; in DRI2QueryVersion() local
249 nevents = 0; in DRI2QueryVersion()
252 nevents = 1; in DRI2QueryVersion()
256 nevents = 2; in DRI2QueryVersion()
260 for (i = 0; i < nevents; i++) { in DRI2QueryVersion()
/third_party/ltp/testcases/kernel/connectors/pec/
Dcn_pec.sh32 usage: $0 [-n <nevents>]
/third_party/libcoap/man/
Dcoap_io.txt.in363 int nevents;
397 nevents = epoll_wait(epoll_fd, events, MAX_EVENTS, -1);
398 if (nevents == -1) {
404 for (i = 0; i < nevents; i++) {
/third_party/node/deps/uvwasi/src/
Duvwasi.c2331 uvwasi_size_t* nevents) { in uvwasi_poll_oneoff() argument
2350 nevents); in uvwasi_poll_oneoff()
2353 nsubscriptions == 0 || nevents == NULL) { in uvwasi_poll_oneoff()
2357 *nevents = 0; in uvwasi_poll_oneoff()
2417 *nevents = 1; in uvwasi_poll_oneoff()
2421 event = &out[*nevents]; in uvwasi_poll_oneoff()
2438 *nevents = *nevents + 1; in uvwasi_poll_oneoff()
/third_party/libcoap/include/coap3/
Dnet.h702 size_t nevents);
/third_party/libevdev/libevdev/
Dlibevdev.c87 int nevents = 1; /* terminating SYN_REPORT */ in init_event_queue() local
100 nevents++; in init_event_queue()
114 nevents += num_mt_axes * (nslots - 1); in init_event_queue()
117 return queue_alloc(dev, max(MIN_QUEUE_SIZE, nevents * 2)); in init_event_queue()
/third_party/node/deps/uvwasi/include/
Duvwasi.h247 uvwasi_size_t* nevents);

12