Searched refs:pollfds (Results 1 – 3 of 3) sorted by relevance
/hardware/qcom/camera/msm8998/QCamera2/HAL3/test/ |
D | QCameraHAL3SnapshotTest.cpp | 214 struct pollfd pollfds; in hal3appSnapshotProcessBuffers() local 218 pollfds.fd = readfd; in hal3appSnapshotProcessBuffers() 219 pollfds.events = POLLIN | POLLPRI; in hal3appSnapshotProcessBuffers() 221 ready = poll(&pollfds, (nfds_t)num_of_fds, -1); in hal3appSnapshotProcessBuffers() 224 if (pollfds.revents & (POLLIN | POLLPRI)) { in hal3appSnapshotProcessBuffers() 227 nread = read(pollfds.fd, &msg, sizeof(buffer_thread_msg_t)); in hal3appSnapshotProcessBuffers()
|
D | QCameraHAL3RawSnapshotTest.cpp | 224 struct pollfd pollfds; in rawProcessBuffers() local 228 pollfds.fd = readfd; in rawProcessBuffers() 229 pollfds.events = POLLIN | POLLPRI; in rawProcessBuffers() 231 ready = poll(&pollfds, (nfds_t)num_of_fds, -1); in rawProcessBuffers() 233 if (pollfds.revents & (POLLIN | POLLPRI)) { in rawProcessBuffers() 236 nread = read(pollfds.fd, &msg, sizeof(buffer_thread_msg_t)); in rawProcessBuffers()
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/ |
D | mpu_iio.c | 62 static struct pollfd pollfds[FEAT_NUM]; variable 472 VARVAL("%d", pollfds[i].fd); in dump_dmp_event_struct() 473 VARVAL("%d", pollfds[i].events); in dump_dmp_event_struct() 474 VARVAL("%d", pollfds[i].revents); in dump_dmp_event_struct() 488 pollfds[j].fd = open(file_name, O_RDONLY | O_NONBLOCK); in init_dmp_event_fds() 489 if (pollfds[j].fd < 0) { in init_dmp_event_fds() 494 pollfds[j].events = POLLPRI | POLLERR; in init_dmp_event_fds() 495 pollfds[j].revents = 0; in init_dmp_event_fds() 497 dmp_feat[i].pollfd = &pollfds[j]; in init_dmp_event_fds() 506 close(pollfds[i].fd); in close_dmp_event_fds() [all …]
|