Searched refs:pfd (Results 1 - 25 of 26) sorted by relevance

12

/hardware/qcom/audio/hal/audio_extn/
H A Dsndmonitor.c411 struct pollfd * pfd = (struct pollfd *)calloc(sizeof(struct pollfd), local
413 if (!pfd)
416 pfd[0].fd = sndmonitor.intpipe[0];
417 pfd[0].events = POLLPRI|POLLIN;
423 pfd[i].fd = s->fd;
424 pfd[i].events = POLLPRI;
430 pfd[i].fd = d->fd;
431 pfd[i].events = POLLPRI;
436 if (poll(pfd, num_poll_fds, -1) < 0) {
457 if (READY_TO_READ(&pfd[
[all...]
/hardware/qcom/display/msm8084/libhwcomposer/
H A Dhwc_vsync.cpp114 struct pollfd pfd[num_displays][num_events]; local
140 pfd[dpy][ev].fd = open(node_path, O_RDONLY);
142 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) {
155 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0);
156 if (pfd[dpy][ev].fd >= 0)
157 pfd[dpy][ev].events = POLLPRI | POLLERR;
163 int err = poll(*pfd, num_displays * num_events, -1);
167 if (pfd[dpy][ev].revents & POLLPRI) {
168 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0);
205 if(pfd[dp
[all...]
/hardware/qcom/display/msm8226/libhwcomposer/
H A Dhwc_vsync.cpp104 struct pollfd pfd[num_displays][num_events]; local
128 pfd[dpy][ev].fd = open(node_path, O_RDONLY);
130 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) {
143 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0);
144 if (pfd[dpy][ev].fd >= 0)
145 pfd[dpy][ev].events = POLLPRI | POLLERR;
151 int err = poll(*pfd, (int)(num_displays * num_events), -1);
155 if (pfd[dpy][ev].revents & POLLPRI) {
156 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0);
206 if(pfd[dp
[all...]
/hardware/qcom/display/msm8909/libhwcomposer/
H A Dhwc_vsync.cpp123 struct pollfd pfd[num_displays][num_events]; local
144 pfd[dpy][ev].fd = open(node_path, O_RDONLY);
146 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) {
161 pread(pfd[dpy][ev].fd, vdata , MAX_DATA - 1, 0);
162 if (pfd[dpy][ev].fd >= 0)
163 pfd[dpy][ev].events = POLLPRI | POLLERR;
169 int err = poll(*pfd, (int)(num_displays * num_events), -1);
173 if (pfd[dpy][ev].revents & POLLPRI) {
176 ssize_t len = pread(pfd[dpy][ev].fd, vdata,
215 if(pfd[dp
[all...]
/hardware/qcom/display/msm8994/libhwcomposer/
H A Dhwc_vsync.cpp123 struct pollfd pfd[num_displays][num_events]; local
144 pfd[dpy][ev].fd = open(node_path, O_RDONLY);
146 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) {
159 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0);
160 if (pfd[dpy][ev].fd >= 0)
161 pfd[dpy][ev].events = POLLPRI | POLLERR;
167 int err = poll(*pfd, (int)(num_displays * num_events), -1);
171 if (pfd[dpy][ev].revents & POLLPRI) {
172 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0);
209 if(pfd[dp
[all...]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/gesture_test/
H A Dinv_gesture_test.c107 struct pollfd pfd[NUM_DMP_FEATS]; variable in typeref:struct:pollfd
571 pfd[i].fd = open(mpu.event_tap, O_RDONLY | O_NONBLOCK);
576 pfd[i].fd = open(mpu.event_display_orientation,
582 pfd[i].fd = open(mpu.event_orientation, O_RDONLY | O_NONBLOCK);
587 pfd[i].fd = open(mpu.event_smd, O_RDONLY | O_NONBLOCK);
591 pfd[i].fd = -1;
594 pfd[i].events = POLLPRI|POLLERR,
595 pfd[i].revents = 0;
601 void parse_events(struct pollfd pfd[], int num_fds) argument
606 if(pfd[
[all...]
/hardware/qcom/wlan/cld80211-lib/
H A Dcld80211_lib.c397 struct pollfd pfd[2]; local
410 memset(&pfd[0], 0, 2*sizeof(struct pollfd));
420 pfd[0].fd = nl_socket_get_fd(ctx->sock);
421 pfd[0].events = POLLIN;
423 pfd[1].fd = ctx->exit_sockets[1];
424 pfd[1].events = POLLIN;
427 pfd[0].revents = 0;
428 pfd[1].revents = 0;
429 int result = poll(pfd, 2, timeout);
432 } else if (pfd[
[all...]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/
H A Dstress_iio.c301 struct pollfd pfd[ARRAY_SIZE(event_file)]; local
307 pfd[i].fd = open(file_name, O_RDONLY | O_NONBLOCK);
308 pfd[i].events = POLLPRI|POLLERR;
309 pfd[i].revents = 0;
310 read(pfd[i].fd, d, 4);
313 poll(pfd, ARRAY_SIZE(event_file), -1);
315 close(pfd[i].fd);
318 for (i=0; i< ARRAY_SIZE(pfd); i++) {
319 if(pfd[i].revents != 0) {
761 struct pollfd pfd local
[all...]
/hardware/broadcom/wlan/bcmdhd/wifi_hal/
H A Dwifi_hal.cpp414 pollfd pfd[2]; local
415 memset(&pfd[0], 0, sizeof(pollfd) * 2);
417 pfd[0].fd = nl_socket_get_fd(info->event_sock);
418 pfd[0].events = POLLIN;
419 pfd[1].fd = info->cleanup_socks[1];
420 pfd[1].events = POLLIN;
427 pfd[0].revents = 0;
428 pfd[1].revents = 0;
430 int result = TEMP_FAILURE_RETRY(poll(pfd, 2, timeout));
433 } else if (pfd[
[all...]
/hardware/qcom/wlan/qcwcn/wifi_hal/
H A Dwifi_hal.cpp822 pollfd pfd[3]; local
823 memset(&pfd, 0, 3*sizeof(pfd[0]));
825 pfd[0].fd = nl_socket_get_fd(info->event_sock);
826 pfd[0].events = POLLIN;
828 pfd[1].fd = nl_socket_get_fd(info->user_sock);
829 pfd[1].events = POLLIN;
831 pfd[2].fd = info->exit_sockets[1];
832 pfd[2].events = POLLIN;
837 pfd[
[all...]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/devnode_parser/
H A Dread_device_node.c92 struct pollfd pfd = { local
96 poll(&pfd, 1, -1);
/hardware/qcom/audio/legacy/libalsa-intf/
H A Daplay.c179 struct pollfd pfd[1]; local
278 pfd[0].fd = pcm->timer_fd;
279 pfd[0].events = POLLIN;
313 poll(pfd, nfds, TIMEOUT_INFINITE);
425 poll(pfd, nfds, TIMEOUT_INFINITE);
H A Darec.c188 struct pollfd pfd[1]; local
264 pfd[0].fd = pcm->fd;
265 pfd[0].events = POLLIN;
304 poll(pfd, nfds, TIMEOUT_INFINITE);
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/src/
H A Dvideo_encoder_device_copper.cpp169 struct pollfd pfd; local
172 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI;
173 pfd.fd = omx->handle->m_nDriver_fd;
177 rc = poll(&pfd, 1, TIMEOUT);
185 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) {
190 rc = ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf);
203 } else if((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) {
207 rc = ioctl(pfd
[all...]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/
H A Dmpu_iio.c898 struct pollfd pfd = { local
902 poll(&pfd, 1, -1);
/hardware/qcom/media/msm8996/videopp/src/
H A Domx_vdpp.cpp113 struct pollfd pfd[2]; local
117 pfd[0].events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI;
118 pfd[0].fd = omx->drv_ctx.video_vpu_fd;
119 pfd[1].events = POLLIN | POLLPRI | POLLERR;
120 pfd[1].fd = omx->m_ctrl_in;
127 rc = poll(pfd, 2, POLL_TIMEOUT);
138 if (pfd[1].revents & (POLLIN | POLLPRI | POLLERR))
145 if ((pfd[0].revents & POLLIN) || (pfd[0].revents & POLLRDNORM)) {
152 while(!ioctl(pfd[
293 struct pollfd pfd; local
[all...]
/hardware/qcom/media/msm8998/videopp/src/
H A Domx_vdpp.cpp113 struct pollfd pfd[2]; local
117 pfd[0].events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI;
118 pfd[0].fd = omx->drv_ctx.video_vpu_fd;
119 pfd[1].events = POLLIN | POLLPRI | POLLERR;
120 pfd[1].fd = omx->m_ctrl_in;
127 rc = poll(pfd, 2, POLL_TIMEOUT);
138 if (pfd[1].revents & (POLLIN | POLLPRI | POLLERR))
145 if ((pfd[0].revents & POLLIN) || (pfd[0].revents & POLLRDNORM)) {
152 while(!ioctl(pfd[
293 struct pollfd pfd; local
[all...]
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/src/
H A Dvideo_encoder_device_v4l2.cpp289 struct pollfd pfd; local
292 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI;
293 pfd.fd = omx->handle->m_nDriver_fd;
327 rc = poll(&pfd, 1, POLL_TIMEOUT);
338 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) {
344 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) {
386 if ((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) {
392 while (!ioctl(pfd
[all...]
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/src/
H A Domx_vdec_copper.cpp130 struct pollfd pfd; local
133 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI;
135 pfd.fd = omx->drv_ctx.video_driver_fd;
141 rc = poll(&pfd, 1, TIMEOUT);
149 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) {
154 rc = ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf);
166 else if((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) {
170 rc = ioctl(pfd
[all...]
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/
H A Domx_vdec_hevc.cpp143 struct pollfd pfd; local
148 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI;
149 pfd.fd = omx->drv_ctx.video_driver_fd;
154 rc = poll(&pfd, 1, POLL_TIMEOUT);
162 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) {
168 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) {
188 if ((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) {
194 while (!ioctl(pfd
[all...]
H A Domx_vdec_hevc_swvdec.cpp134 struct pollfd pfd; local
139 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI;
140 pfd.fd = omx->drv_ctx.video_driver_fd;
146 rc = poll(&pfd, 1, POLL_TIMEOUT);
154 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) {
160 while(!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) {
180 if((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) {
186 while(!ioctl(pfd
[all...]
H A Domx_vdec_msm8974.cpp145 struct pollfd pfd; local
150 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI;
151 pfd.fd = omx->drv_ctx.video_driver_fd;
156 rc = poll(&pfd, 1, POLL_TIMEOUT);
164 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) {
171 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) {
193 if ((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) {
199 while (!ioctl(pfd
[all...]
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/
H A Domx_vdec_hevc.cpp139 struct pollfd pfd; local
144 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI;
145 pfd.fd = omx->drv_ctx.video_driver_fd;
150 rc = poll(&pfd, 1, POLL_TIMEOUT);
158 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) {
164 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) {
184 if ((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) {
190 while (!ioctl(pfd
[all...]
H A Domx_vdec_hevc_swvdec.cpp128 struct pollfd pfd; local
133 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI;
134 pfd.fd = omx->drv_ctx.video_driver_fd;
140 rc = poll(&pfd, 1, POLL_TIMEOUT);
148 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) {
155 while(!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) {
175 if((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) {
181 while(!ioctl(pfd
[all...]
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/
H A Domx_vdec_hevc.cpp139 struct pollfd pfd; local
144 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI;
145 pfd.fd = omx->drv_ctx.video_driver_fd;
150 rc = poll(&pfd, 1, POLL_TIMEOUT);
158 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) {
164 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) {
184 if ((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) {
190 while (!ioctl(pfd
[all...]

Completed in 845 milliseconds

12