Home
last modified time | relevance | path

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

/device/google/contexthub/contexthubhal/
Dnanohubhal.cpp111 static bool init_inotify(pollfd *pfd) { in init_inotify() argument
115 pfd->fd = inotify_init1(IN_NONBLOCK); in init_inotify()
116 if (pfd->fd < 0) { in init_inotify()
118 } else if (inotify_add_watch(pfd->fd, NANOHUB_LOCK_DIR, IN_CREATE | IN_DELETE) < 0) { in init_inotify()
120 close(pfd->fd); in init_inotify()
122 pfd->events = POLLIN; in init_inotify()
129 static void discard_inotify_evt(pollfd &pfd) { in discard_inotify_evt() argument
130 if ((pfd.revents & POLLIN)) { in discard_inotify_evt()
132 int ret = read(pfd.fd, buf, sizeof(buf)); in discard_inotify_evt()
137 static void wait_on_dev_lock(pollfd &pfd) { in wait_on_dev_lock() argument
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/Uefi/
Dselect.c114 struct pollfd pfd; in selscan() local
128 pfd.fd = fd; in selscan()
129 pfd.events = flag[msk]; in selscan()
130 pfd.revents = 0; in selscan()
131 FdCount = poll ( &pfd, 1, 0 ); in selscan()
DSysCalls.c756 struct pollfd * pfd, in poll() argument
805 pPollFD = pfd; in poll()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dselectmodule.c849 pyepoll_internal_ctl(int epfd, int op, PyObject *pfd, unsigned int events) in pyepoll_internal_ctl() argument
858 fd = PyObject_AsFileDescriptor(pfd); in pyepoll_internal_ctl()
900 PyObject *pfd; in pyepoll_register() local
905 &pfd, &events)) { in pyepoll_register()
909 return pyepoll_internal_ctl(self->epfd, EPOLL_CTL_ADD, pfd, events); in pyepoll_register()
925 PyObject *pfd; in pyepoll_modify() local
930 &pfd, &events)) { in pyepoll_modify()
934 return pyepoll_internal_ctl(self->epfd, EPOLL_CTL_MOD, pfd, events); in pyepoll_modify()
946 PyObject *pfd; in pyepoll_unregister() local
950 &pfd)) { in pyepoll_unregister()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Modules/
Dselectmodule.c849 pyepoll_internal_ctl(int epfd, int op, PyObject *pfd, unsigned int events) in pyepoll_internal_ctl() argument
858 fd = PyObject_AsFileDescriptor(pfd); in pyepoll_internal_ctl()
900 PyObject *pfd; in pyepoll_register() local
905 &pfd, &events)) { in pyepoll_register()
909 return pyepoll_internal_ctl(self->epfd, EPOLL_CTL_ADD, pfd, events); in pyepoll_register()
925 PyObject *pfd; in pyepoll_modify() local
930 &pfd, &events)) { in pyepoll_modify()
934 return pyepoll_internal_ctl(self->epfd, EPOLL_CTL_MOD, pfd, events); in pyepoll_modify()
946 PyObject *pfd; in pyepoll_unregister() local
950 &pfd)) { in pyepoll_unregister()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/
Dselectmodule.c883 pyepoll_internal_ctl(int epfd, int op, PyObject *pfd, unsigned int events) in pyepoll_internal_ctl() argument
892 fd = PyObject_AsFileDescriptor(pfd); in pyepoll_internal_ctl()
934 PyObject *pfd; in pyepoll_register() local
939 &pfd, &events)) { in pyepoll_register()
943 return pyepoll_internal_ctl(self->epfd, EPOLL_CTL_ADD, pfd, events); in pyepoll_register()
959 PyObject *pfd; in pyepoll_modify() local
964 &pfd, &events)) { in pyepoll_modify()
968 return pyepoll_internal_ctl(self->epfd, EPOLL_CTL_MOD, pfd, events); in pyepoll_modify()
980 PyObject *pfd; in pyepoll_unregister() local
984 &pfd)) { in pyepoll_unregister()
[all …]
/device/asus/fugu/libaudio/
DAudioHotplugThread.cpp353 struct pollfd pfd = {mShutdownEventFD, POLLIN, 0}; in threadLoop() local
354 if (poll(&pfd, 1, kOpenTimeoutMs) == -1) { in threadLoop()
357 } else if (pfd.revents & POLLIN) { in threadLoop()
/device/generic/goldfish/fingerprint/
Dfingerprint.c687 struct pollfd pfd = { in listenerFunction() local
703 pfd.revents = 0; in listenerFunction()
711 int nfds = poll(&pfd, 1, 5000); in listenerFunction()
723 if (pfd.revents & POLLIN) { in listenerFunction()
725 disconnected = pfd.revents & (POLLERR | POLLHUP); in listenerFunction()
/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/
Dres_send.c559 struct pollfd pfd; in res_send() local
698 pfd.fd = s; in res_send()
699 pfd.events = POLLIN; in res_send()
706 n = poll(&pfd, 1, msec); in res_send()
/device/google/contexthub/sensorhal/
Dhubconnection.cpp883 struct pollfd *pfd = &mPollFds[mInotifyPollIndex]; in waitOnNanohubLock() local
888 int ret = poll(pfd, 1, 5000); in waitOnNanohubLock()
889 if ((ret > 0) && (pfd->revents & POLLIN)) { in waitOnNanohubLock()