/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_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/linaro/dragonboard/shared/utils/bdaddr/ |
D | bdaddr.c | 62 struct btmgmt_ev_cmd_status ev; member 125 static void btmgmt_complete_set_public_addr(struct btmgmt_ev_cmd_status* ev, in btmgmt_complete_set_public_addr() argument 127 if (ev->status == 0) { in btmgmt_complete_set_public_addr() 132 ": error 0x%x", MAC_ADDRESS_ARGS(bdaddr), ev->status); in btmgmt_complete_set_public_addr() 136 static bool btmgmt_config_needs_public_addr(struct btmgmt_ev_cmd_status* ev) { in btmgmt_config_needs_public_addr() argument 137 struct btmgmt_ev_cc_config_info* info = (struct btmgmt_ev_cc_config_info*) ev; in btmgmt_config_needs_public_addr() 138 if (info->ev.status) { in btmgmt_config_needs_public_addr() 139 if (info->ev.status != BTMGMT_ERR_INVALID_INDEX) in btmgmt_config_needs_public_addr() 141 info->ev.status); in btmgmt_config_needs_public_addr() 145 if (info->ev.hdr.cmd != BTMGMT_EV_CMD_COMPLETE in btmgmt_config_needs_public_addr() [all …]
|
/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/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/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 …]
|
/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/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() 62 const struct epoll_event* ev = &events[i]; in qemuSensorListenerThreadImpl() local 63 const int fd = ev->data.fd; in qemuSensorListenerThreadImpl() 64 const int ev_events = ev->events; in qemuSensorListenerThreadImpl()
|
/device/generic/goldfish/gnss/ |
D | GnssHwConn.cpp | 48 struct epoll_event ev; in epollCtlAdd() local 49 ev.events = EPOLLIN; in epollCtlAdd() 50 ev.data.fd = fd; in epollCtlAdd() 52 ret = TEMP_FAILURE_RETRY(epoll_ctl(epollFd, EPOLL_CTL_ADD, fd, &ev)); in epollCtlAdd() 92 const struct epoll_event* ev = &events[i]; in workerThread() local 93 const int fd = ev->data.fd; in workerThread() 94 const int ev_events = ev->events; in workerThread()
|
/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/redbull-kernel/sm7250/original-kernel-headers/media/ |
D | cam_sync.h | 28 #define CAM_SYNC_GET_PAYLOAD_PTR(ev, type) \ argument 29 (type *)((char *)ev.u.data + sizeof(struct cam_sync_ev_header)) 31 #define CAM_SYNC_GET_HEADER_PTR(ev) \ argument 32 ((struct cam_sync_ev_header *)ev.u.data)
|
/device/google/sunfish-kernel/sm7150/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/redbull-kernel/sm7250/kernel-headers/media/ |
D | cam_sync.h | 18 #define CAM_SYNC_GET_PAYLOAD_PTR(ev,type) (type *) ((char *) ev.u.data + sizeof(struct cam_sync_ev_… argument 19 #define CAM_SYNC_GET_HEADER_PTR(ev) ((struct cam_sync_ev_header *) ev.u.data) argument
|
/device/google/sunfish-kernel/sm7150/kernel-headers/media/ |
D | cam_sync.h | 19 #define CAM_SYNC_GET_PAYLOAD_PTR(ev, type) \ argument 20 (type *)((char *)ev.u.data + sizeof(struct cam_sync_ev_header)) 22 #define CAM_SYNC_GET_HEADER_PTR(ev) \ argument 23 ((struct cam_sync_ev_header *)ev.u.data)
|
/device/google/coral-kernel/sm8150/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/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/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/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/zuma/usb/usb/ |
D | UsbDataSessionMonitor.cpp | 69 struct epoll_event ev; in addEpollFile() local 78 ev.data.fd = fd.get(); in addEpollFile() 79 ev.events = EPOLLPRI; in addEpollFile() 81 if (epoll_ctl(epollFd, EPOLL_CTL_ADD, fd.get(), &ev) != 0) { in addEpollFile() 103 struct epoll_event ev; in UsbDataSessionMonitor() local
|
/device/google/zumapro/usb/usb/ |
D | UsbDataSessionMonitor.cpp | 69 struct epoll_event ev; in addEpollFile() local 78 ev.data.fd = fd.get(); in addEpollFile() 79 ev.events = EPOLLPRI; in addEpollFile() 81 if (epoll_ctl(epollFd, EPOLL_CTL_ADD, fd.get(), &ev) != 0) { in addEpollFile() 103 struct epoll_event ev; in UsbDataSessionMonitor() local
|
/device/google/gs201/usb/usb/ |
D | UsbDataSessionMonitor.cpp | 69 struct epoll_event ev; in addEpollFile() local 78 ev.data.fd = fd.get(); in addEpollFile() 79 ev.events = EPOLLPRI; in addEpollFile() 81 if (epoll_ctl(epollFd, EPOLL_CTL_ADD, fd.get(), &ev) != 0) { in addEpollFile() 103 struct epoll_event ev; in UsbDataSessionMonitor() local
|
/device/google/gs101/usb/usb/ |
D | UsbDataSessionMonitor.cpp | 69 struct epoll_event ev; in addEpollFile() local 78 ev.data.fd = fd.get(); in addEpollFile() 79 ev.events = EPOLLPRI; in addEpollFile() 81 if (epoll_ctl(epollFd, EPOLL_CTL_ADD, fd.get(), &ev) != 0) { in addEpollFile() 103 struct epoll_event ev; in UsbDataSessionMonitor() local
|
/device/google/trout/hal/sensors/2.1/ |
D | Sensor.cpp | 141 Event ev; in flush() local 142 ev.sensorHandle = mSensorInfo.sensorHandle; in flush() 143 ev.sensorType = SensorType::META_DATA; in flush() 144 ev.u.meta.what = MetaDataEventType::META_DATA_FLUSH_COMPLETE; in flush() 145 std::vector<Event> evs{ev}; in flush()
|