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

12

/hardware/ti/omap4-aah/libtiutils/
H A DMessageQueue.cpp246 struct pollfd pfd; local
248 pfd.fd = this->fd_read;
249 pfd.events = POLLIN;
250 pfd.revents = 0;
260 if( -1 == poll(&pfd,1,0) )
267 if(pfd.revents & POLLIN)
328 struct pollfd pfd[3]; local
337 pfd[0].fd = queue1->getInFd();
338 if(!pfd[0].fd)
344 pfd[
[all...]
/hardware/ti/omap4xxx/libtiutils/
H A DMessageQueue.cpp245 struct pollfd pfd; local
247 pfd.fd = this->fd_read;
248 pfd.events = POLLIN;
249 pfd.revents = 0;
259 if( -1 == poll(&pfd,1,0) )
266 if(pfd.revents & POLLIN)
325 struct pollfd pfd[3]; local
334 pfd[0].fd = queue1->getInFd();
335 if(!pfd[0].fd)
341 pfd[
[all...]
/hardware/qcom/audio/msm8909/audiod/
H A DAudioDaemon.cpp218 struct pollfd *pfd = NULL; local
270 pfd = new pollfd[mSndCardFd.size() + mAudioEvents.size()];
271 bzero(pfd, (sizeof(*pfd) * mSndCardFd.size() +
272 sizeof(*pfd) * mAudioEvents.size()));
274 pfd[i].fd = mSndCardFd[i].second;
275 pfd[i].events = POLLPRI;
280 pfd[i+mSndCardFd.size()].fd = mAudioEvents[i].second;
281 pfd[i+mSndCardFd.size()].events = POLLPRI;
286 if (!read(pfd[
[all...]
/hardware/qcom/display/msm8084/libhwcomposer/
H A Dhwc_vsync.cpp115 struct pollfd pfd[num_displays][num_events]; local
141 pfd[dpy][ev].fd = open(node_path, O_RDONLY);
143 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) {
156 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0);
157 if (pfd[dpy][ev].fd >= 0)
158 pfd[dpy][ev].events = POLLPRI | POLLERR;
164 int err = poll(*pfd, num_displays * num_events, -1);
168 if (pfd[dpy][ev].revents & POLLPRI) {
169 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0);
206 if(pfd[dp
[all...]
/hardware/qcom/display/msm8226/libhwcomposer/
H A Dhwc_vsync.cpp105 struct pollfd pfd[num_displays][num_events]; local
129 pfd[dpy][ev].fd = open(node_path, O_RDONLY);
131 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) {
144 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0);
145 if (pfd[dpy][ev].fd >= 0)
146 pfd[dpy][ev].events = POLLPRI | POLLERR;
152 int err = poll(*pfd, (int)(num_displays * num_events), -1);
156 if (pfd[dpy][ev].revents & POLLPRI) {
157 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0);
207 if(pfd[dp
[all...]
/hardware/qcom/display/msm8909/libhwcomposer/
H A Dhwc_vsync.cpp124 struct pollfd pfd[num_displays][num_events]; local
145 pfd[dpy][ev].fd = open(node_path, O_RDONLY);
147 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) {
162 pread(pfd[dpy][ev].fd, vdata , MAX_DATA - 1, 0);
163 if (pfd[dpy][ev].fd >= 0)
164 pfd[dpy][ev].events = POLLPRI | POLLERR;
170 int err = poll(*pfd, (int)(num_displays * num_events), -1);
174 if (pfd[dpy][ev].revents & POLLPRI) {
177 ssize_t len = pread(pfd[dpy][ev].fd, vdata,
216 if(pfd[dp
[all...]
/hardware/qcom/display/msm8994/libhwcomposer/
H A Dhwc_vsync.cpp124 struct pollfd pfd[num_displays][num_events]; local
145 pfd[dpy][ev].fd = open(node_path, O_RDONLY);
147 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) {
160 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0);
161 if (pfd[dpy][ev].fd >= 0)
162 pfd[dpy][ev].events = POLLPRI | POLLERR;
168 int err = poll(*pfd, (int)(num_displays * num_events), -1);
172 if (pfd[dpy][ev].revents & POLLPRI) {
173 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0);
210 if(pfd[dp
[all...]
/hardware/ti/omap4-aah/domx/mm_osal/src/
H A Dtimm_osal_pipes.c69 int pfd[2]; member in struct:TIMM_OSAL_PIPE
108 pHandle->pfd[0] = -1;
109 pHandle->pfd[1] = -1;
110 if (SUCCESS != pipe(pHandle->pfd))
155 if (SUCCESS != close(pHandle->pfd[0]))
160 if (SUCCESS != close(pHandle->pfd[1]))
195 lSizeWritten = write(pHandle->pfd[1], pMessage, size);
242 lSizeWritten = write(pHandle->pfd[1], pMessage, size);
269 read(pHandle->pfd[0], tempPtr, pHandle->totalBytesInPipe);
273 write(pHandle->pfd[
[all...]
/hardware/ti/omap4xxx/domx/mm_osal/src/
H A Dtimm_osal_pipes.c69 int pfd[2]; member in struct:TIMM_OSAL_PIPE
108 pHandle->pfd[0] = -1;
109 pHandle->pfd[1] = -1;
110 if (SUCCESS != pipe(pHandle->pfd))
155 if (SUCCESS != close(pHandle->pfd[0]))
160 if (SUCCESS != close(pHandle->pfd[1]))
195 lSizeWritten = write(pHandle->pfd[1], pMessage, size);
242 lSizeWritten = write(pHandle->pfd[1], pMessage, size);
269 read(pHandle->pfd[0], tempPtr, pHandle->totalBytesInPipe);
273 write(pHandle->pfd[
[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/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.cpp398 pollfd pfd[2]; local
399 memset(&pfd[0], 0, sizeof(pollfd) * 2);
401 pfd[0].fd = nl_socket_get_fd(info->event_sock);
402 pfd[0].events = POLLIN;
403 pfd[1].fd = info->cleanup_socks[1];
404 pfd[1].events = POLLIN;
411 pfd[0].revents = 0;
412 pfd[1].revents = 0;
414 int result = poll(pfd, 2, timeout);
417 } else if (pfd[
[all...]
/hardware/qcom/wlan/qcwcn/wifi_hal/
H A Dwifi_hal.cpp713 pollfd pfd[3]; local
714 memset(&pfd, 0, 3*sizeof(pfd[0]));
716 pfd[0].fd = nl_socket_get_fd(info->event_sock);
717 pfd[0].events = POLLIN;
719 pfd[1].fd = nl_socket_get_fd(info->user_sock);
720 pfd[1].events = POLLIN;
722 pfd[2].fd = info->exit_sockets[1];
723 pfd[2].events = POLLIN;
729 pfd[
[all...]
/hardware/bsp/intel/peripheral/libmraa/src/gpio/
H A Dgpio.c197 struct pollfd pfd[1]; local
199 struct pollfd pfd[2]; local
211 pfd[0].fd = fd;
212 pfd[0].events = POLLPRI;
221 int x = poll(pfd, 1, -1);
224 pfd[1].fd = control_fd;
225 pfd[1].events = 0; // POLLHUP, POLLERR, and POLLNVAL
228 int x = poll(pfd, 2, -1);
/hardware/bsp/intel/peripheral/libmraa/src/iio/
H A Diio.c292 struct pollfd pfd; local
298 pfd.fd = fd;
299 pfd.events = POLLIN;
303 int x = poll(&pfd, 1, -1);
424 struct pollfd pfd; local
430 pfd.fd = fd;
431 pfd.events = POLLIN;
435 int x = poll(&pfd, 1, -1);
/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/msm8974/mm-video-v4l2/vidc/venc/src/
H A Dvideo_encoder_device_v4l2.cpp288 struct pollfd pfd; local
291 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI;
292 pfd.fd = omx->handle->m_nDriver_fd;
326 rc = poll(&pfd, 1, POLL_TIMEOUT);
337 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) {
343 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) {
385 if ((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) {
391 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...]
/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...]

Completed in 3146 milliseconds

12