Home
last modified time | relevance | path

Searched refs:pfd (Results 1 – 25 of 36) sorted by relevance

12

/hardware/ti/omap4xxx/libtiutils/
DMessageQueue.cpp245 struct pollfd pfd; in isEmpty() local
247 pfd.fd = this->fd_read; in isEmpty()
248 pfd.events = POLLIN; in isEmpty()
249 pfd.revents = 0; in isEmpty()
259 if( -1 == poll(&pfd,1,0) ) in isEmpty()
266 if(pfd.revents & POLLIN) in isEmpty()
325 struct pollfd pfd[3]; in waitForMsg() local
334 pfd[0].fd = queue1->getInFd(); in waitForMsg()
335 if(!pfd[0].fd) in waitForMsg()
341 pfd[0].events = POLLIN; in waitForMsg()
[all …]
/hardware/ti/omap4-aah/libtiutils/
DMessageQueue.cpp246 struct pollfd pfd; in isEmpty() local
248 pfd.fd = this->fd_read; in isEmpty()
249 pfd.events = POLLIN; in isEmpty()
250 pfd.revents = 0; in isEmpty()
260 if( -1 == poll(&pfd,1,0) ) in isEmpty()
267 if(pfd.revents & POLLIN) in isEmpty()
328 struct pollfd pfd[3]; in waitForMsg() local
337 pfd[0].fd = queue1->getInFd(); in waitForMsg()
338 if(!pfd[0].fd) in waitForMsg()
344 pfd[0].events = POLLIN; in waitForMsg()
[all …]
/hardware/qcom/display/msm8994/libhwcomposer/
Dhwc_vsync.cpp124 struct pollfd pfd[num_displays][num_events]; in vsync_loop() local
145 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop()
147 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop()
160 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop()
161 if (pfd[dpy][ev].fd >= 0) in vsync_loop()
162 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop()
168 int err = poll(*pfd, (int)(num_displays * num_events), -1); in vsync_loop()
172 if (pfd[dpy][ev].revents & POLLPRI) { in vsync_loop()
173 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0); in vsync_loop()
210 if(pfd[dpy][event].fd >= 0) in vsync_loop()
[all …]
/hardware/ti/omap4-aah/domx/mm_osal/src/
Dtimm_osal_pipes.c69 int pfd[2]; member
108 pHandle->pfd[0] = -1; in TIMM_OSAL_CreatePipe()
109 pHandle->pfd[1] = -1; in TIMM_OSAL_CreatePipe()
110 if (SUCCESS != pipe(pHandle->pfd)) in TIMM_OSAL_CreatePipe()
155 if (SUCCESS != close(pHandle->pfd[0])) in TIMM_OSAL_DeletePipe()
160 if (SUCCESS != close(pHandle->pfd[1])) in TIMM_OSAL_DeletePipe()
195 lSizeWritten = write(pHandle->pfd[1], pMessage, size); in TIMM_OSAL_WriteToPipe()
242 lSizeWritten = write(pHandle->pfd[1], pMessage, size); in TIMM_OSAL_WriteToFrontOfPipe()
269 read(pHandle->pfd[0], tempPtr, pHandle->totalBytesInPipe); in TIMM_OSAL_WriteToFrontOfPipe()
273 write(pHandle->pfd[1], tempPtr, in TIMM_OSAL_WriteToFrontOfPipe()
[all …]
/hardware/qcom/display/msm8226/libhwcomposer/
Dhwc_vsync.cpp105 struct pollfd pfd[num_displays][num_events]; in vsync_loop() local
129 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop()
131 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop()
144 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop()
145 if (pfd[dpy][ev].fd >= 0) in vsync_loop()
146 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop()
152 int err = poll(*pfd, (int)(num_displays * num_events), -1); in vsync_loop()
156 if (pfd[dpy][ev].revents & POLLPRI) { in vsync_loop()
157 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0); in vsync_loop()
207 if(pfd[dpy][event].fd >= 0) in vsync_loop()
[all …]
/hardware/qcom/display/msm8084/libhwcomposer/
Dhwc_vsync.cpp115 struct pollfd pfd[num_displays][num_events]; in vsync_loop() local
141 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop()
143 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop()
156 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop()
157 if (pfd[dpy][ev].fd >= 0) in vsync_loop()
158 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop()
164 int err = poll(*pfd, num_displays * num_events, -1); in vsync_loop()
168 if (pfd[dpy][ev].revents & POLLPRI) { in vsync_loop()
169 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0); in vsync_loop()
206 if(pfd[dpy][event].fd >= 0) in vsync_loop()
[all …]
/hardware/qcom/audio/hal/audio_extn/
Dsndmonitor.c407 struct pollfd * pfd = (struct pollfd *)calloc(sizeof(struct pollfd), in monitor_thread_loop() local
409 if (!pfd) in monitor_thread_loop()
412 pfd[0].fd = sndmonitor.intpipe[0]; in monitor_thread_loop()
413 pfd[0].events = POLLPRI|POLLIN; in monitor_thread_loop()
419 pfd[i].fd = s->fd; in monitor_thread_loop()
420 pfd[i].events = POLLPRI; in monitor_thread_loop()
426 pfd[i].fd = d->fd; in monitor_thread_loop()
427 pfd[i].events = POLLPRI; in monitor_thread_loop()
432 if (poll(pfd, num_poll_fds, -1) < 0) { in monitor_thread_loop()
453 if (READY_TO_READ(&pfd[0])) { in monitor_thread_loop()
[all …]
/hardware/qcom/display/msm8909/libhwcomposer/
Dhwc_vsync.cpp124 struct pollfd pfd[num_displays][num_events]; in vsync_loop() local
145 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop()
147 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop()
162 pread(pfd[dpy][ev].fd, vdata , MAX_DATA - 1, 0); in vsync_loop()
163 if (pfd[dpy][ev].fd >= 0) in vsync_loop()
164 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop()
170 int err = poll(*pfd, (int)(num_displays * num_events), -1); in vsync_loop()
174 if (pfd[dpy][ev].revents & POLLPRI) { in vsync_loop()
177 ssize_t len = pread(pfd[dpy][ev].fd, vdata, in vsync_loop()
216 if(pfd[dpy][event].fd >= 0) in vsync_loop()
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/gesture_test/
Dinv_gesture_test.c107 struct pollfd pfd[NUM_DMP_FEATS]; variable
571 pfd[i].fd = open(mpu.event_tap, O_RDONLY | O_NONBLOCK); in init_fds()
576 pfd[i].fd = open(mpu.event_display_orientation, in init_fds()
582 pfd[i].fd = open(mpu.event_orientation, O_RDONLY | O_NONBLOCK); in init_fds()
587 pfd[i].fd = open(mpu.event_smd, O_RDONLY | O_NONBLOCK); in init_fds()
591 pfd[i].fd = -1; in init_fds()
594 pfd[i].events = POLLPRI|POLLERR, in init_fds()
595 pfd[i].revents = 0; in init_fds()
601 void parse_events(struct pollfd pfd[], int num_fds) in parse_events() argument
606 if(pfd[i].revents != 0) { in parse_events()
[all …]
/hardware/ti/omap4xxx/domx/mm_osal/src/
Dtimm_osal_pipes.c69 int pfd[2]; member
108 pHandle->pfd[0] = -1; in TIMM_OSAL_CreatePipe()
109 pHandle->pfd[1] = -1; in TIMM_OSAL_CreatePipe()
110 if (SUCCESS != pipe(pHandle->pfd)) in TIMM_OSAL_CreatePipe()
155 if (SUCCESS != close(pHandle->pfd[0])) in TIMM_OSAL_DeletePipe()
160 if (SUCCESS != close(pHandle->pfd[1])) in TIMM_OSAL_DeletePipe()
195 lSizeWritten = write(pHandle->pfd[1], pMessage, size); in TIMM_OSAL_WriteToPipe()
242 lSizeWritten = write(pHandle->pfd[1], pMessage, size); in TIMM_OSAL_WriteToFrontOfPipe()
269 read(pHandle->pfd[0], tempPtr, pHandle->totalBytesInPipe); in TIMM_OSAL_WriteToFrontOfPipe()
273 write(pHandle->pfd[1], tempPtr, in TIMM_OSAL_WriteToFrontOfPipe()
[all …]
/hardware/broadcom/wlan/bcmdhd/wifi_hal/
Dwifi_hal.cpp398 pollfd pfd[2]; in wifi_event_loop() local
399 memset(&pfd[0], 0, sizeof(pollfd) * 2); in wifi_event_loop()
401 pfd[0].fd = nl_socket_get_fd(info->event_sock); in wifi_event_loop()
402 pfd[0].events = POLLIN; in wifi_event_loop()
403 pfd[1].fd = info->cleanup_socks[1]; in wifi_event_loop()
404 pfd[1].events = POLLIN; in wifi_event_loop()
411 pfd[0].revents = 0; in wifi_event_loop()
412 pfd[1].revents = 0; in wifi_event_loop()
414 int result = poll(pfd, 2, timeout); in wifi_event_loop()
417 } else if (pfd[0].revents & POLLERR) { in wifi_event_loop()
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/
Dstress_iio.c301 struct pollfd pfd[ARRAY_SIZE(event_file)]; in get_dmp_event() local
307 pfd[i].fd = open(file_name, O_RDONLY | O_NONBLOCK); in get_dmp_event()
308 pfd[i].events = POLLPRI|POLLERR; in get_dmp_event()
309 pfd[i].revents = 0; in get_dmp_event()
310 read(pfd[i].fd, d, 4); in get_dmp_event()
313 poll(pfd, ARRAY_SIZE(event_file), -1); in get_dmp_event()
315 close(pfd[i].fd); in get_dmp_event()
318 for (i=0; i< ARRAY_SIZE(pfd); i++) { in get_dmp_event()
319 if(pfd[i].revents != 0) { in get_dmp_event()
761 struct pollfd pfd = { in read_data() local
[all …]
/hardware/qcom/wlan/qcwcn/wifi_hal/
Dwifi_hal.cpp706 pollfd pfd[3]; in wifi_event_loop() local
707 memset(&pfd, 0, 3*sizeof(pfd[0])); in wifi_event_loop()
709 pfd[0].fd = nl_socket_get_fd(info->event_sock); in wifi_event_loop()
710 pfd[0].events = POLLIN; in wifi_event_loop()
712 pfd[1].fd = nl_socket_get_fd(info->user_sock); in wifi_event_loop()
713 pfd[1].events = POLLIN; in wifi_event_loop()
715 pfd[2].fd = info->exit_sockets[1]; in wifi_event_loop()
716 pfd[2].events = POLLIN; in wifi_event_loop()
721 pfd[0].revents = 0; in wifi_event_loop()
722 pfd[1].revents = 0; in wifi_event_loop()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/HAL3/test/
DQCameraHAL3SnapshotTest.cpp162 write(pfd[1], &msg, sizeof(buffer_thread_msg_t)); in snapshotTestEnd()
176 if (pipe(pfd) < 0) { in snapshotThreadCreate()
184 thread.readfd = pfd[0]; in snapshotThreadCreate()
185 thread.writefd = pfd[1]; in snapshotThreadCreate()
DQCameraHAL3RawSnapshotTest.cpp164 write(pfd[1], &msg, sizeof(buffer_thread_msg_t)); in rawTestEnd()
179 if (pipe(pfd) < 0) { in rawProcessThreadCreate()
187 thread.readfd = pfd[0]; in rawProcessThreadCreate()
188 thread.writefd = pfd[1]; in rawProcessThreadCreate()
DQCameraHAL3Test.cpp153 if (pipe(pfd) < 0) { in processThreadCreate()
162 thread.readfd = pfd[0]; in processThreadCreate()
163 thread.writefd = pfd[1]; in processThreadCreate()
DQCameraHAL3Base.h135 extern int32_t pfd[2];
DQCameraHAL3Base.cpp63 int pfd[2]; variable
156 write(pfd[1], &msg, sizeof(buffer_thread_msg_t)); in ProcessCaptureResult()
/hardware/bsp/intel/peripheral/libmraa/src/iio/
Diio.c292 struct pollfd pfd; in mraa_iio_wait_event() local
298 pfd.fd = fd; in mraa_iio_wait_event()
299 pfd.events = POLLIN; in mraa_iio_wait_event()
303 int x = poll(&pfd, 1, -1); in mraa_iio_wait_event()
424 struct pollfd pfd; in mraa_iio_event_poll_nonblock() local
430 pfd.fd = fd; in mraa_iio_event_poll_nonblock()
431 pfd.events = POLLIN; in mraa_iio_event_poll_nonblock()
435 int x = poll(&pfd, 1, -1); in mraa_iio_event_poll_nonblock()
/hardware/bsp/intel/peripheral/libmraa/src/gpio/
Dgpio.c197 struct pollfd pfd[1]; in mraa_gpio_wait_interrupt() local
199 struct pollfd pfd[2]; in mraa_gpio_wait_interrupt() local
211 pfd[0].fd = fd; in mraa_gpio_wait_interrupt()
212 pfd[0].events = POLLPRI; in mraa_gpio_wait_interrupt()
221 int x = poll(pfd, 1, -1); in mraa_gpio_wait_interrupt()
224 pfd[1].fd = control_fd; in mraa_gpio_wait_interrupt()
225 pfd[1].events = 0; // POLLHUP, POLLERR, and POLLNVAL in mraa_gpio_wait_interrupt()
228 int x = poll(pfd, 2, -1); in mraa_gpio_wait_interrupt()
/hardware/qcom/audio/legacy/libalsa-intf/
Daplay.c179 struct pollfd pfd[1]; in play_file() local
278 pfd[0].fd = pcm->timer_fd; in play_file()
279 pfd[0].events = POLLIN; in play_file()
313 poll(pfd, nfds, TIMEOUT_INFINITE); in play_file()
425 poll(pfd, nfds, TIMEOUT_INFINITE); in play_file()
Darec.c188 struct pollfd pfd[1]; in record_file() local
264 pfd[0].fd = pcm->fd; in record_file()
265 pfd[0].events = POLLIN; in record_file()
304 poll(pfd, nfds, TIMEOUT_INFINITE); in record_file()
/hardware/invensense/6515/libsensors_iio/software/simple_apps/devnode_parser/
Dread_device_node.c92 struct pollfd pfd = { in read_data() local
96 poll(&pfd, 1, -1); in read_data()
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/src/
Dvideo_encoder_device_copper.cpp169 struct pollfd pfd; in async_venc_message_thread() local
172 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_venc_message_thread()
173 pfd.fd = omx->handle->m_nDriver_fd; in async_venc_message_thread()
177 rc = poll(&pfd, 1, TIMEOUT); in async_venc_message_thread()
185 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) { in async_venc_message_thread()
190 rc = ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf); in async_venc_message_thread()
203 } else if((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) { in async_venc_message_thread()
207 rc = ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf); in async_venc_message_thread()
216 } else if (pfd.revents & POLLPRI){ in async_venc_message_thread()
217 rc = ioctl(pfd.fd, VIDIOC_DQEVENT, &dqevent); in async_venc_message_thread()
/hardware/qcom/media/msm8996/videopp/src/
Domx_vdpp.cpp113 struct pollfd pfd[2]; in async_message_thread() local
117 pfd[0].events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_message_thread()
118 pfd[0].fd = omx->drv_ctx.video_vpu_fd; in async_message_thread()
119 pfd[1].events = POLLIN | POLLPRI | POLLERR; in async_message_thread()
120 pfd[1].fd = omx->m_ctrl_in; in async_message_thread()
127 rc = poll(pfd, 2, POLL_TIMEOUT); in async_message_thread()
138 if (pfd[1].revents & (POLLIN | POLLPRI | POLLERR)) in async_message_thread()
145 if ((pfd[0].revents & POLLIN) || (pfd[0].revents & POLLRDNORM)) { in async_message_thread()
152 while(!ioctl(pfd[0].fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_message_thread()
186 if((pfd[0].revents & POLLOUT) || (pfd[0].revents & POLLWRNORM)) { in async_message_thread()
[all …]

12