Home
last modified time | relevance | path

Searched refs:epoll_fd (Results 1 – 4 of 4) sorted by relevance

/hardware/interfaces/gnss/common/utils/default/
DDeviceFileReader.cpp35 int gnss_fd, epoll_fd; in getDataFromDeviceFile() local
45 if ((epoll_fd = epoll_create1(EPOLL_CLOEXEC)) < 0) { in getDataFromDeviceFile()
55 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, gnss_fd, &ev) == -1) { in getDataFromDeviceFile()
57 close(epoll_fd); in getDataFromDeviceFile()
62 if (epoll_wait(epoll_fd, events, 1, mMinIntervalMs) == -1) { in getDataFromDeviceFile()
64 close(epoll_fd); in getDataFromDeviceFile()
80 close(epoll_fd); in getDataFromDeviceFile()
/hardware/google/pixel/usb/
DUsbDpUtils.cpp698 int epoll_fd; in displayPortPollWorkHelper() local
743 epoll_fd = epoll_create(64); in displayPortPollWorkHelper()
744 if (epoll_fd == -1) { in displayPortPollWorkHelper()
781 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, hpd_fd, &ev_hpd) == -1) { in displayPortPollWorkHelper()
785 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, pin_fd, &ev_pin) == -1) { in displayPortPollWorkHelper()
789 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, orientation_fd, &ev_orientation) == -1) { in displayPortPollWorkHelper()
793 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, link_training_status_fd, &ev_link) == -1) { in displayPortPollWorkHelper()
797 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, mDisplayPortDebounceTimer, &ev_debounce) == -1) { in displayPortPollWorkHelper()
801 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, mActivateTimer, &ev_activate) == -1) { in displayPortPollWorkHelper()
805 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, mDisplayPortEventPipe, &ev_eventfd) == -1) { in displayPortPollWorkHelper()
[all …]
/hardware/interfaces/usb/1.0/default/
DUsb.cpp353 int epoll_fd, uevent_fd; in work() local
375 epoll_fd = epoll_create(64); in work()
376 if (epoll_fd == -1) { in work()
381 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, uevent_fd, &ev) == -1) { in work()
389 nevents = epoll_wait(epoll_fd, events, 64, -1); in work()
408 if (epoll_fd >= 0) in work()
409 close(epoll_fd); in work()
/hardware/interfaces/usb/aidl/default/
DUsb.cpp643 int epoll_fd, uevent_fd; in work() local
663 epoll_fd = epoll_create(UEVENT_MAX_EVENTS); in work()
664 if (epoll_fd == -1) { in work()
669 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, uevent_fd, &ev) == -1) { in work()
677 nevents = epoll_wait(epoll_fd, events, UEVENT_MAX_EVENTS, -1); in work()
696 if (epoll_fd >= 0) in work()
697 close(epoll_fd); in work()