/device/generic/goldfish/radio/libril/ |
D | ril_event.cpp | 79 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 …]
|
D | ril_event.h | 39 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);
|
/device/google/cuttlefish/guest/hals/ril/libril/ |
D | ril_event.cpp | 79 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 …]
|
/device/google/cuttlefish/guest/hals/ril/reference-libril/ |
D | ril_event.cpp | 79 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 …]
|
D | ril_ex.h | 27 void rilEventAddWakeup_helper(struct ril_event *ev);
|
/device/google/contexthub/util/common/ |
D | ring.cpp | 37 ssize_t RingBuffer::write(const sensors_event_t *ev, size_t size) { in write() argument 54 memcpy(&mData[writePos], ev, copy * sizeof(sensors_event_t)); in write() 57 memcpy(mData, &ev[copy], (size - copy) * sizeof(sensors_event_t)); in write() 69 ssize_t RingBuffer::read(sensors_event_t *ev, size_t size) { in read() argument 93 memcpy(ev, &mData[readPos], copy * sizeof(sensors_event_t)); in read() 96 memcpy(&ev[copy], mData, (size - copy) * sizeof(sensors_event_t)); in read() 114 void LockfreeBuffer::write(const sensors_event_t *ev, size_t size) { in write() argument 121 memcpy(&mData[mWritePos], ev, offsetof(sensors_event_t, reserved0)); in write() 124 reinterpret_cast<const char *>(ev) + offsetof(sensors_event_t, timestamp), in write() 131 ++ev; in write()
|
D | ring.h | 32 ssize_t write(const sensors_event_t *ev, size_t size); 33 ssize_t read(sensors_event_t *ev, size_t size); 51 void write(const sensors_event_t *ev, size_t size);
|
/device/generic/goldfish/sensors/ |
D | multihal_sensors_epoll.cpp | 25 struct epoll_event ev; in epollCtlAdd() local 26 ev.events = EPOLLIN; in epollCtlAdd() 27 ev.data.fd = fd; in epollCtlAdd() 28 return TEMP_FAILURE_RETRY(epoll_ctl(epollFd, EPOLL_CTL_ADD, fd, &ev)); in epollCtlAdd() 66 const struct epoll_event* ev = &events[i]; in qemuSensorListenerThread() local 67 const int fd = ev->data.fd; in qemuSensorListenerThread() 68 const int ev_events = ev->events; in qemuSensorListenerThread()
|
/device/google/contexthub/firmware/os/drivers/vsync/ |
D | vsync.c | 85 struct SingleAxisDataEvent *ev; in vsyncAllocateEvt() local 89 ev = *evPtr; in vsyncAllocateEvt() 90 if (!ev) { in vsyncAllocateEvt() 95 memset(&ev->samples[0].firstSample, 0x00, sizeof(struct SensorFirstSample)); in vsyncAllocateEvt() 96 ev->referenceTime = time; in vsyncAllocateEvt() 97 ev->samples[0].firstSample.numSamples = 1; in vsyncAllocateEvt() 98 ev->samples[0].idata = 1; in vsyncAllocateEvt() 111 struct SingleAxisDataEvent *ev; in vsyncIsr() local 118 if (vsyncAllocateEvt(&ev, sensorGetTime())) { in vsyncIsr() 119 if (!osEnqueueEvtOrFree(sensorGetMyEventType(SENS_TYPE_VSYNC), ev, vsyncFreeEvt)) { in vsyncIsr()
|
/device/google/contexthub/firmware/os/drivers/orientation/ |
D | orientation.c | 97 struct TripleAxisDataEvent *ev; member 186 static void fillSamples(struct TripleAxisDataEvent *ev, enum RawSensorType index) in fillSamples() argument 211 curr_sample = ev->samples; in fillSamples() 213 num_samples = ev->samples[0].firstSample.numSamples; in fillSamples() 214 curr_time = ev->referenceTime; in fillSamples() 217 next_sample = ev->samples; in fillSamples() 218 num_samples = ev->samples[0].firstSample.numSamples + 1; in fillSamples() 224 if (next_sample == ev->samples) in fillSamples() 225 next_time = ev->referenceTime; in fillSamples() 283 mSensor->ev = slabAllocatorAlloc(mDataSlab); in allocateDataEvt() [all …]
|
/device/generic/goldfish/gnss/ |
D | gnss_hw_conn.cpp | 44 struct epoll_event ev; in epollCtlAdd() local 45 ev.events = EPOLLIN; in epollCtlAdd() 46 ev.data.fd = fd; in epollCtlAdd() 48 return TEMP_FAILURE_RETRY(epoll_ctl(epollFd, EPOLL_CTL_ADD, fd, &ev)); in epollCtlAdd() 120 const struct epoll_event* ev = &events[i]; in workerThread() local 121 const int fd = ev->data.fd; in workerThread() 122 const int ev_events = ev->events; in workerThread()
|
/device/google/cuttlefish/guest/hals/gps/ |
D | gps_thread.h | 62 struct epoll_event ev; in epoll_register() local 63 ev.events = EPOLLIN; in epoll_register() 64 ev.data.fd = fd; in epoll_register() 68 ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev); in epoll_register()
|
/device/google/coral-kernel/sm8150/kernel-headers/media/ |
D | cam_sync.h | 30 #define CAM_SYNC_GET_PAYLOAD_PTR(ev,type) (type *) ((char *) ev.u.data + sizeof(struct cam_sync_ev_… argument 31 #define CAM_SYNC_GET_HEADER_PTR(ev) ((struct cam_sync_ev_header *) ev.u.data) argument
|
/device/google/bonito/sdm710/original-kernel-headers/media/ |
D | cam_sync.h | 23 #define CAM_SYNC_GET_PAYLOAD_PTR(ev, type) \ argument 24 (type *)((char *)ev.u.data + sizeof(struct cam_sync_ev_header)) 26 #define CAM_SYNC_GET_HEADER_PTR(ev) \ argument 27 ((struct cam_sync_ev_header *)ev.u.data)
|
/device/google/bonito/sdm710/kernel-headers/media/ |
D | cam_sync.h | 30 #define CAM_SYNC_GET_PAYLOAD_PTR(ev,type) (type *) ((char *) ev.u.data + sizeof(struct cam_sync_ev_… argument 31 #define CAM_SYNC_GET_HEADER_PTR(ev) ((struct cam_sync_ev_header *) ev.u.data) argument
|
/device/google/coral-kernel/sm8150/original-kernel-headers/media/ |
D | cam_sync.h | 23 #define CAM_SYNC_GET_PAYLOAD_PTR(ev, type) \ argument 24 (type *)((char *)ev.u.data + sizeof(struct cam_sync_ev_header)) 26 #define CAM_SYNC_GET_HEADER_PTR(ev) \ argument 27 ((struct cam_sync_ev_header *)ev.u.data)
|
/device/google/crosshatch/sdm845/kernel-headers/media/ |
D | cam_sync.h | 30 #define CAM_SYNC_GET_PAYLOAD_PTR(ev,type) (type *) ((char *) ev.u.data + sizeof(struct cam_sync_ev_… argument 31 #define CAM_SYNC_GET_HEADER_PTR(ev) ((struct cam_sync_ev_header *) ev.u.data) argument
|
/device/google/crosshatch/sdm845/original-kernel-headers/media/ |
D | cam_sync.h | 23 #define CAM_SYNC_GET_PAYLOAD_PTR(ev, type) \ argument 24 (type *)((char *)ev.u.data + sizeof(struct cam_sync_ev_header)) 26 #define CAM_SYNC_GET_HEADER_PTR(ev) \ argument 27 ((struct cam_sync_ev_header *)ev.u.data)
|
/device/google/contexthub/sensorhal/ |
D | hubconnection.cpp | 554 sensors_event_t *HubConnection::initEv(sensors_event_t *ev, uint64_t timestamp, uint32_t type, uint… in initEv() argument 556 memset(ev, 0x00, sizeof(sensors_event_t)); in initEv() 557 ev->version = sizeof(sensors_event_t); in initEv() 558 ev->timestamp = timestamp; in initEv() 559 ev->type = type; in initEv() 560 ev->sensor = sensor; in initEv() 562 return ev; in initEv() 787 sensors_event_t *ev; in processSample() local 932 ev = initEv(&nev[cnt++], timestamp, type, sensor); in processSample() 933 ev->data[0] = sample->x; in processSample() [all …]
|
D | hubconnection.h | 81 ssize_t read(sensors_event_t *ev, size_t size); 82 ssize_t write(const sensors_event_t *ev, size_t n); 264 … sensors_event_t *initEv(sensors_event_t *ev, uint64_t timestamp, uint32_t type, uint32_t sensor);
|
/device/google/contexthub/firmware/os/drivers/window_orientation/ |
D | window_orientation.c | 388 static bool add_samples(struct TripleAxisDataEvent *ev) in add_samples() argument 393 uint64_t now_nsec = ev->referenceTime, now; in add_samples() 396 size_t sampleCnt = ev->samples[0].firstSample.numSamples; in add_samples() 405 x = ev->samples[i].x; in add_samples() 406 y = ev->samples[i].y; in add_samples() 407 z = ev->samples[i].z; in add_samples() 412 now_nsec += i > 0 ? ev->samples[i].deltaTime : 0; in add_samples() 612 struct TripleAxisDataEvent *ev; in windowOrientationHandleEvent() local 621 ev = (struct TripleAxisDataEvent *)evtData; in windowOrientationHandleEvent() 622 rotation_changed = add_samples(ev); in windowOrientationHandleEvent()
|
/device/google/contexthub/firmware/os/drivers/tilt_detection/ |
D | tilt_detection.c | 76 static bool algoUpdate(struct TripleAxisDataEvent *ev) in algoUpdate() argument 83 uint64_t sample_ts = ev->referenceTime; in algoUpdate() 84 uint32_t numSamples = ev->samples[0].firstSample.numSamples; in algoUpdate() 90 sample = &ev->samples[i]; in algoUpdate()
|
/device/google/contexthub/firmware/os/drivers/st_lps22hb/ |
D | lps22hb.c | 191 struct SingleAxisDataEvent *ev; in baroAllocateEvt() local 193 ev = *evPtr = slabAllocatorAlloc(mTask.baroSlab); in baroAllocateEvt() 194 if (!ev) { in baroAllocateEvt() 199 memset(&ev->samples[0].firstSample, 0x00, sizeof(struct SensorFirstSample)); in baroAllocateEvt() 200 ev->referenceTime = time; in baroAllocateEvt() 201 ev->samples[0].firstSample.numSamples = 1; in baroAllocateEvt() 202 ev->samples[0].fdata = sample; in baroAllocateEvt()
|
/device/google/contexthub/firmware/os/drivers/bosch_bmp280/ |
D | bosch_bmp280.c | 228 struct SingleAxisDataEvent *ev; in baroAllocateEvt() local 232 ev = *evPtr; in baroAllocateEvt() 233 if (!ev) { in baroAllocateEvt() 238 memset(&ev->samples[0].firstSample, 0x00, sizeof(struct SensorFirstSample)); in baroAllocateEvt() 239 ev->referenceTime = time; in baroAllocateEvt() 240 ev->samples[0].firstSample.numSamples = 1; in baroAllocateEvt() 241 ev->samples[0].fdata = sample; in baroAllocateEvt()
|
/device/generic/goldfish/radio/include/libril/ |
D | ril_ex.h | 27 void rilEventAddWakeup_helper(struct ril_event *ev);
|