Home
last modified time | relevance | path

Searched refs:ev (Results 1 – 23 of 23) sorted by relevance

/hardware/ril/libril/
Dril_event.cpp79 static void dump_event(struct ril_event * ev) in dump_event() argument
81 dlog("~~~~ Event %x ~~~~", (unsigned int)ev); in dump_event()
82 dlog(" next = %x", (unsigned int)ev->next); in dump_event()
83 dlog(" prev = %x", (unsigned int)ev->prev); in dump_event()
84 dlog(" fd = %d", ev->fd); in dump_event()
85 dlog(" pers = %d", ev->persist); in dump_event()
86 dlog(" timeout = %ds + %dus", (int)ev->timeout.tv_sec, (int)ev->timeout.tv_usec); in dump_event()
87 dlog(" func = %x", (unsigned int)ev->func); in dump_event()
88 dlog(" param = %x", (unsigned int)ev->param); in dump_event()
112 static void addToList(struct ril_event * ev, struct ril_event * list) in addToList() argument
[all …]
Dril_event.h39 void ril_event_set(struct ril_event * ev, int fd, bool persist, ril_event_cb func, void * param);
42 void ril_event_add(struct ril_event * ev);
45 void ril_timer_add(struct ril_event * ev, struct timeval * tv);
48 void ril_event_del(struct ril_event * ev);
Dril.cpp261 static void rilEventAddWakeup(struct ril_event *ev) { in rilEventAddWakeup() argument
262 ril_event_add(ev); in rilEventAddWakeup()
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/parser/
Dgv_sven_devh.c83 struct SVENEvent *ev ) in sven_write_event() argument
89 sven_fw_write_event(svenh,ev); in sven_write_event()
93 struct SVENEvent *ev, in sven_fw_initialize_event_top() argument
99 ev->se_et.et_gencount = 0; in sven_fw_initialize_event_top()
100 ev->se_et.et_module = module; in sven_fw_initialize_event_top()
101 ev->se_et.et_unit = unit; in sven_fw_initialize_event_top()
102 ev->se_et.et_type = event_type; in sven_fw_initialize_event_top()
103 ev->se_et.et_subtype = event_subtype; in sven_fw_initialize_event_top()
164 struct SVENEvent ev __attribute__ ((aligned(8))); in devh_SVEN_WriteModuleEvent() local
171 sven_fw_initialize_event_top( &ev, in devh_SVEN_WriteModuleEvent()
[all …]
/hardware/qcom/display/msm8084/libhwcomposer/
Dhwc_vsync.cpp130 for(size_t ev = 0; ev < num_events; ev++) { in vsync_loop() local
136 event_list[ev].name); in vsync_loop()
139 ev, dpy, node_path); in vsync_loop()
140 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop()
142 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop()
146 __FUNCTION__, dpy, ev, strerror(errno)); in vsync_loop()
147 if (ev == 0) { in vsync_loop()
155 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop()
156 if (pfd[dpy][ev].fd >= 0) in vsync_loop()
157 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop()
[all …]
/hardware/qcom/display/msm8994/libhwcomposer/
Dhwc_vsync.cpp134 for(size_t ev = 0; ev < num_events; ev++) { in vsync_loop() local
140 event_list[ev].name); in vsync_loop()
143 ev, dpy, node_path); in vsync_loop()
144 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop()
146 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop()
150 __FUNCTION__, dpy, ev, strerror(errno)); in vsync_loop()
151 if (ev == 0) { in vsync_loop()
159 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop()
160 if (pfd[dpy][ev].fd >= 0) in vsync_loop()
161 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop()
[all …]
/hardware/qcom/display/msm8226/libhwcomposer/
Dhwc_vsync.cpp118 for(size_t ev = 0; ev < num_events; ev++) { in vsync_loop() local
124 event_list[ev].name); in vsync_loop()
127 ev, dpy, node_path); in vsync_loop()
128 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop()
130 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop()
134 __FUNCTION__, dpy, ev, strerror(errno)); in vsync_loop()
135 if (ev == 0) { in vsync_loop()
143 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop()
144 if (pfd[dpy][ev].fd >= 0) in vsync_loop()
145 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop()
[all …]
/hardware/qcom/audio/legacy/libalsa-intf/
Dalsa_mixer.c396 struct snd_ctl_elem_value ev; in mixer_ctl_get() local
414 memset(&ev, 0, sizeof(ev)); in mixer_ctl_get()
415 ev.id.numid = ctl->info->id.numid; in mixer_ctl_get()
416 if (ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_READ, &ev)) in mixer_ctl_get()
423 ALOGV(" %s", ev.value.integer.value[n] ? "on" : "off"); in mixer_ctl_get()
424 *value = ev.value.integer.value[0]; in mixer_ctl_get()
428 ALOGV(" %ld", ev.value.integer.value[n]); in mixer_ctl_get()
429 *value = ev.value.integer.value[0]; in mixer_ctl_get()
434 ALOGV(" %lld", ev.value.integer64.value[n]); in mixer_ctl_get()
435 *value = ev.value.integer64.value[0]; in mixer_ctl_get()
[all …]
/hardware/libhardware/modules/sensors/dynamic_sensor/
DRingBuffer.cpp36 ssize_t RingBuffer::write(const sensors_event_t *ev, size_t size) { in write() argument
53 memcpy(&mData[writePos], ev, copy * sizeof(sensors_event_t)); in write()
56 memcpy(mData, &ev[copy], (size - copy) * sizeof(sensors_event_t)); in write()
68 ssize_t RingBuffer::read(sensors_event_t *ev, size_t size) { in read() argument
92 memcpy(ev, &mData[readPos], copy * sizeof(sensors_event_t)); in read()
95 memcpy(&ev[copy], mData, (size - copy) * sizeof(sensors_event_t)); in read()
DConnectionDetector.cpp163 const struct inotify_event *ev; in handleInotifyData() local
166 for (; data < dataEnd; data += sizeof(struct inotify_event) + ev->len) { in handleInotifyData()
167 ev = reinterpret_cast<const struct inotify_event*>(data); in handleInotifyData()
168 if (ev->mask & IN_ISDIR) { in handleInotifyData()
172 const std::string name(ev->name); in handleInotifyData()
174 if (ev->mask & IN_CREATE) { in handleInotifyData()
177 if (ev->mask & IN_DELETE) { in handleInotifyData()
186 struct inotify_event ev; in readInotifyData() member
DRingBuffer.h33 ssize_t write(const sensors_event_t *ev, size_t size);
34 ssize_t read(sensors_event_t *ev, size_t size);
/hardware/interfaces/health/2.0/default/
Dhealthd_common.cpp85 struct epoll_event ev; in healthd_register_event() local
87 ev.events = EPOLLIN; in healthd_register_event()
89 if (wakeup == EVENT_WAKEUP_FD) ev.events |= EPOLLWAKEUP; in healthd_register_event()
91 ev.data.ptr = (void*)handler; in healthd_register_event()
92 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &ev) == -1) { in healthd_register_event()
/hardware/qcom/gps/msm8996/utils/
DLocTimer.cpp427 struct epoll_event ev; in addPoll() local
428 memset(&ev, 0, sizeof(ev)); in addPoll()
430 ev.events = EPOLLIN | EPOLLWAKEUP; in addPoll()
431 ev.data.fd = timerContainer.getTimerFd(); in addPoll()
435 ev.data.ptr = &timerContainer; in addPoll()
437 epoll_ctl(mFd, EPOLL_CTL_ADD, timerContainer.getTimerFd(), &ev); in addPoll()
448 struct epoll_event ev[2]; in run() local
451 int fds = epoll_wait(mFd, ev, 2, -1); in run()
460 LocTimerContainer* container = (LocTimerContainer*)(ev[i].data.ptr); in run()
464 epoll_ctl(mFd, EPOLL_CTL_DEL, ev[i].data.fd, NULL); in run()
/hardware/qcom/gps/msm8909w_3100/utils/
DLocTimer.cpp428 struct epoll_event ev; in addPoll() local
429 memset(&ev, 0, sizeof(ev)); in addPoll()
431 ev.events = EPOLLIN | EPOLLWAKEUP; in addPoll()
432 ev.data.fd = timerContainer.getTimerFd(); in addPoll()
436 ev.data.ptr = &timerContainer; in addPoll()
438 epoll_ctl(mFd, EPOLL_CTL_ADD, timerContainer.getTimerFd(), &ev); in addPoll()
449 struct epoll_event ev[2]; in run() local
452 int fds = epoll_wait(mFd, ev, 2, -1); in run()
461 LocTimerContainer* container = (LocTimerContainer*)(ev[i].data.ptr); in run()
465 epoll_ctl(mFd, EPOLL_CTL_DEL, ev[i].data.fd, NULL); in run()
/hardware/qcom/gps/msm8998/utils/
DLocTimer.cpp427 struct epoll_event ev; in addPoll() local
428 memset(&ev, 0, sizeof(ev)); in addPoll()
430 ev.events = EPOLLIN | EPOLLWAKEUP; in addPoll()
431 ev.data.fd = timerContainer.getTimerFd(); in addPoll()
435 ev.data.ptr = &timerContainer; in addPoll()
437 epoll_ctl(mFd, EPOLL_CTL_ADD, timerContainer.getTimerFd(), &ev); in addPoll()
448 struct epoll_event ev[2]; in run() local
451 int fds = epoll_wait(mFd, ev, 2, -1); in run()
460 LocTimerContainer* container = (LocTimerContainer*)(ev[i].data.ptr); in run()
464 epoll_ctl(mFd, EPOLL_CTL_DEL, ev[i].data.fd, NULL); in run()
/hardware/qcom/gps/msm8909/utils/
DLocTimer.cpp428 struct epoll_event ev; in addPoll() local
429 memset(&ev, 0, sizeof(ev)); in addPoll()
431 ev.events = EPOLLIN | EPOLLWAKEUP; in addPoll()
432 ev.data.fd = timerContainer.getTimerFd(); in addPoll()
436 ev.data.ptr = &timerContainer; in addPoll()
438 epoll_ctl(mFd, EPOLL_CTL_ADD, timerContainer.getTimerFd(), &ev); in addPoll()
449 struct epoll_event ev[2]; in run() local
452 int fds = epoll_wait(mFd, ev, 2, -1); in run()
461 LocTimerContainer* container = (LocTimerContainer*)(ev[i].data.ptr); in run()
465 epoll_ctl(mFd, EPOLL_CTL_DEL, ev[i].data.fd, NULL); in run()
/hardware/libhardware/modules/input/evdev/
DInputHub.cpp377 struct input_event ev{}; in vibrate() struct
378 ev.type = EV_FF; in vibrate()
379 ev.code = mFfEffectId; in vibrate()
380 ev.value = 1; in vibrate()
381 size_t written = TEMP_FAILURE_RETRY(write(mFd, &ev, sizeof(ev))); in vibrate()
382 if (written != sizeof(ev)) { in vibrate()
394 struct input_event ev{}; in cancelVibrate() struct
395 ev.type = EV_FF; in cancelVibrate()
396 ev.code = mFfEffectId; in cancelVibrate()
397 ev.value = 0; in cancelVibrate()
[all …]
/hardware/ril/include/libril/
Dril_ex.h27 void rilEventAddWakeup_helper(struct ril_event *ev);
/hardware/qcom/audio/hal/audio_extn/
Dsoundtrigger.c404 audio_event_type_t ev; in audio_extn_sound_trigger_update_stream_status() local
427 ev = (event == ST_EVENT_STREAM_BUSY) ? AUDIO_EVENT_CAPTURE_STREAM_ACTIVE : in audio_extn_sound_trigger_update_stream_status()
430 ev = (event == ST_EVENT_STREAM_BUSY) ? AUDIO_EVENT_PLAYBACK_STREAM_ACTIVE : in audio_extn_sound_trigger_update_stream_status()
435 __func__, ev, uc_info->id, uc_info->type); in audio_extn_sound_trigger_update_stream_status()
436 st_dev->st_callback(ev, &ev_info); in audio_extn_sound_trigger_update_stream_status()
/hardware/interfaces/usb/1.0/default/
DUsb.cpp354 struct epoll_event ev; in work() local
372 ev.events = EPOLLIN; in work()
373 ev.data.ptr = (void *)uevent_event; in work()
381 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, uevent_fd, &ev) == -1) { in work()
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_app.c1152 int setEVCompensation(mm_camera_test_obj_t *test_obj, int ev) in setEVCompensation() argument
1159 if ( (ev >= camera_cap->exposure_compensation_min) && in setEVCompensation()
1160 (ev <= camera_cap->exposure_compensation_max) ) { in setEVCompensation()
1169 CAM_INTF_PARM_EXPOSURE_COMPENSATION, ev)) { in setEVCompensation()
1181 LOGE("EV compensation set to: %d", ev); in setEVCompensation()
2370 int ev = *(( int * )in_data); in mm_camera_lib_send_command() local
2371 rc = setEVCompensation(&handle->test_obj, ev); in mm_camera_lib_send_command()
/hardware/interfaces/sensors/1.0/vts/functional/
DVtsHalSensorsV1_0TargetTest.cpp77 void addEvent(const Event& ev);
190 void SensorsHidlEnvironment::addEvent(const Event& ev) { in addEvent() argument
193 events.push_back(ev); in addEvent()
/hardware/interfaces/automotive/vehicle/2.0/
Dtypes.hal2143 * ev port location.
2148 * and ev port location.