/device/google/contexthub/firmware/os/inc/ |
D | isr.h | 41 uint16_t tid; member 47 isr->tid = osGetCurrentTid(); in chainIsr() 55 isr->tid = 0; in unchainIsr() 69 osSetCurrentTid(curIsr->tid); in dispatchIsr() 79 static inline int unchainIsrAll(struct ChainedInterrupt *interrupt, uint32_t tid) in unchainIsrAll() argument 86 if (curIsr->tid == tid) { in unchainIsrAll()
|
D | seos_priv.h | 27 #define TID_TO_TASK_IDX(tid) (tid & TASK_TID_IDX_MASK) argument 68 uint16_t tid; member 95 uint16_t tid; member 118 struct Task *osTaskFindByTid(uint32_t tid); 144 task->tid = ((task->tid + TASK_TID_INCREMENT) & TASK_TID_COUNTER_MASK) | in osTaskMakeNewTid()
|
D | heap.h | 30 int heapFreeAll(uint32_t tid); 32 int heapGetTaskSize(uint32_t tid);
|
D | syscallDo.h | 42 static inline bool eOsEventSubscribe(uint32_t tid, uint32_t evtType) in eOsEventSubscribe() argument 44 …_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_SUBCRIBE), tid, evtType); in eOsEventSubscribe() 47 static inline bool eOsEventUnsubscribe(uint32_t tid, uint32_t evtType) in eOsEventUnsubscribe() argument 49 …OMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_UNSUBCRIBE), tid, evtType); in eOsEventUnsubscribe() 107 static inline uint32_t eOsSensorRegister(const struct SensorInfo *si, uint32_t tid, void *cookie, b… in eOsSensorRegister() argument 109 … SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_SENSOR, SYSCALL_OS_MAIN_SENSOR_REG), si, tid, cookie, (int)initC… in eOsSensorRegister() 177 …mTimerSet(uint64_t length, uint32_t jitterPpm, uint32_t driftPpm, uint32_t tid, void* cookie, bool… in eOsTimTimerSet() argument 182 … SYSCALL_OS_MAIN_TIME_SET_TIMER), lengthLo, lengthHi, jitterPpm, driftPpm, tid, cookie, (int)oneSh… in eOsTimTimerSet()
|
D | timer.h | 44 uint32_t timTimerSetAsApp(uint64_t length, uint32_t jitterPpm, uint32_t driftPpm, uint32_t tid, voi… 48 int timTimerCancelAll(uint32_t tid);
|
D | seos.h | 132 uint16_t tid; member 162 bool osEventSubscribe(uint32_t tid, uint32_t evtType); /* async */ 163 bool osEventUnsubscribe(uint32_t tid, uint32_t evtType); /* async */ 180 bool osTidById(const uint64_t *appId, uint32_t *tid); 297 bool osAppIsChre(uint16_t tid); 298 uint32_t osAppChreVersion(uint16_t tid);
|
D | sensors.h | 155 uint32_t tid; member 178 …bool (*sensorSendOneDirectEvt)(void *, uint32_t tid); //resend last state (if known), only for onc… 260 uint32_t sensorRegisterAsApp(const struct SensorInfo *si, uint32_t tid, void *callData, bool initCo…
|
/device/google/contexthub/firmware/os/core/ |
D | seos.c | 93 bool osAppIsChre(uint16_t tid) in osAppIsChre() argument 95 struct Task *task = osTaskFindByTid(tid); in osAppIsChre() 100 uint32_t osAppChreVersion(uint16_t tid) in osAppChreVersion() argument 102 struct Task *task = osTaskFindByTid(tid); in osAppChreVersion() 152 return task->tid; in osGetCurrentTid() 155 uint32_t osSetCurrentTid(uint32_t tid) in osSetCurrentTid() argument 157 struct Task *task = osTaskByIdx(TID_TO_TASK_IDX(tid)); in osSetCurrentTid() 159 if (task && task->tid == tid) { in osSetCurrentTid() 161 return preempted->tid; in osSetCurrentTid() 192 task->tid, in dumpListItems() [all …]
|
D | timer.c | 47 uint16_t tid; /* we need TID always, for system management */ member 95 osSetCurrentTid(tim->tid); in timCallFunc() 102 if (!osEnqueuePrivateEvt(EVT_APP_TIMER, evt, timerCallFuncFreeF, tim->tid)) { in timCallFunc() 199 t->tid = osGetCurrentTid(); in timTimerSetEx() 216 uint32_t timTimerSetAsApp(uint64_t length, uint32_t jitterPpm, uint32_t driftPpm, uint32_t tid, voi… in timTimerSetAsApp() argument 245 if (t && t->tid == osGetCurrentTid()) { in timTimerCancelEx() 269 int timTimerCancelAll(uint32_t tid) in timTimerCancelAll() argument 278 if (tim->tid != tid) in timTimerCancelAll()
|
D | heap.c | 205 int heapFreeAll(uint32_t tid) in heapFreeAll() argument 211 if (!tid) in heapFreeAll() 219 tid &= TIDX_MASK; in heapFreeAll() 221 if (node->tidx == tid) { in heapFreeAll() 258 int heapGetTaskSize(uint32_t tid) in heapGetTaskSize() argument 269 tid &= TIDX_MASK; in heapGetTaskSize() 271 if (node->used && node->tidx == tid) { in heapGetTaskSize()
|
D | nanohub_chre.c | 146 task->app->hdr.appId, task->tid, abortCode); in osChreAbort() 149 task->tid, abortCode); in osChreAbort() 179 void osChreFreeEvent(uint32_t tid, chreEventCompleteFunction *cbFreeEvt, uint32_t evtType, void * e… in osChreFreeEvent() argument 181 struct Task *chreTask = osTaskFindByTid(tid); in osChreFreeEvent() 499 static bool chreInfoByTid(uint32_t tid, struct chreNanoappInfo *info) in chreInfoByTid() argument 501 struct Task *task = osTaskFindByTid(tid); in chreInfoByTid() 505 info->instanceId = tid; in chreInfoByTid() 518 uint32_t tid; in osChreEventInfoByAppId() local 520 if (osTidById(&appId, &tid)) in osChreEventInfoByAppId() 521 *retValP = chreInfoByTid(tid, info); in osChreEventInfoByAppId() [all …]
|
D | nanohubCommand.c | 935 void *hdr, size_t hdr_size, uint32_t tid) in forwardPacket() argument 953 if (tid) { in forwardPacket() 955 res = osEnqueuePrivateEvt(event, packet, free, tid); in forwardPacket() 970 uint32_t tid; in writeEvent() local 978 osTidById(&hostPacket->appId, &tid)) { in writeEvent() 980 &hostPacket->len, sizeof(hostPacket->len), tid); in writeEvent() 990 osTidById(&hostPacket->appId, &tid)) { in writeEvent() 991 if (osAppChreVersion(tid) >= CHRE_API_VERSION_1_1) { in writeEvent() 999 &hdr, sizeof(hdr), tid); in writeEvent() 1000 } else if (osAppChreVersion(tid) == CHRE_API_VERSION_1_0) { in writeEvent() [all …]
|
/device/google/contexthub/firmware/os/drivers/orientation/ |
D | orientation.c | 108 uint32_t tid; member 593 if (sensorRequest(mTask.tid, mTask.accelHandle, mTask.raw_sensor_rate[ACC], in fusionSetRateAcc() 595 osEventSubscribe(mTask.tid, EVT_SENSOR_ACC_DATA_RDY); in fusionSetRateAcc() 600 sensorRequestRateChange(mTask.tid, mTask.accelHandle, mTask.raw_sensor_rate[ACC], in fusionSetRateAcc() 614 if (sensorRequest(mTask.tid, mTask.gyroHandle, mTask.raw_sensor_rate[GYR], in fusionSetRateGyr() 616 osEventSubscribe(mTask.tid, EVT_SENSOR_GYR_DATA_RDY); in fusionSetRateGyr() 621 sensorRequestRateChange(mTask.tid, mTask.gyroHandle, mTask.raw_sensor_rate[GYR], in fusionSetRateGyr() 635 if (sensorRequest(mTask.tid, mTask.magHandle, mTask.raw_sensor_rate[MAG], in fusionSetRateMag() 637 osEventSubscribe(mTask.tid, EVT_SENSOR_MAG_DATA_RDY); in fusionSetRateMag() 638 osEventSubscribe(mTask.tid, EVT_SENSOR_MAG_BIAS); in fusionSetRateMag() [all …]
|
/device/google/contexthub/firmware/os/platform/stm32/ |
D | dma.c | 89 uint16_t tid; member 201 uint16_t oldTid = osSetCurrentTid(state->tid); in dmaIsrTeif() 214 uint16_t oldTid = osSetCurrentTid(state->tid); in dmaIsrTcif() 247 state->tid = osGetCurrentTid(); in dmaStart() 288 state->tid = 0; in dmaStop() 304 int dmaStopAll(uint32_t tid) in dmaStopAll() argument 311 if (state->tid == tid) { in dmaStopAll()
|
/device/google/contexthub/firmware/os/drivers/intersil_isl29034/ |
D | isl29034.c | 137 uint32_t tid; member 177 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mData.tid); in i2cCallback() 218 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mData.tid); in alsTimerCallback() 265 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, NULL, NULL, mData.tid); in sensorRateAls() 276 static bool sendLastSampleAls(void *cookie, uint32_t tid) in sendLastSampleAls() argument 283 …lt = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_ALS), mData.lastAlsSample.vptr, NULL, tid); in sendLastSampleAls() 388 mData.tid = myTid; in init_app() 418 osEventUnsubscribe(mData.tid, EVT_APP_START); in handle_event()
|
/device/google/contexthub/firmware/os/drivers/ams_tmd2772/ |
D | ams_tmd2772.c | 171 uint32_t tid; member 225 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mData.tid); in i2cCallback() 266 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mData.tid); in alsTimerCallback() 271 osEnqueuePrivateEvt(EVT_SENSOR_PROX_TIMER, cookie, NULL, mData.tid); in proxTimerCallback() 354 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, NULL, NULL, mData.tid); in sensorRateAls() 365 static bool sendLastSampleAls(void *cookie, uint32_t tid) { in sendLastSampleAls() argument 371 …lt = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_ALS), mData.lastAlsSample.vptr, NULL, tid); in sendLastSampleAls() 409 osEnqueuePrivateEvt(EVT_SENSOR_PROX_TIMER, NULL, NULL, mData.tid); in sensorRateProx() 420 static bool sendLastSampleProx(void *cookie, uint32_t tid) { in sendLastSampleProx() argument 428 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL, tid); in sendLastSampleProx() [all …]
|
/device/google/contexthub/firmware/os/drivers/si_si7034/ |
D | si7034a10.c | 121 uint32_t tid; member 172 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mTask.tid); in i2cCallback() 217 osEnqueuePrivateEvt(EVT_SENSOR_HUMIDITY_TIMER, data, NULL, mTask.tid); in sensorHumiTimerCallback() 222 osEnqueuePrivateEvt(EVT_SENSOR_TEMP_TIMER, data, NULL, mTask.tid); in sensorTempTimerCallback() 388 osEnqueuePrivateEvt(EVT_TEST, NULL, NULL, mTask.tid); in handleI2cEvent() 426 osEventUnsubscribe(mTask.tid, EVT_APP_START); in handleEvent() 472 mTask.tid = task_id; in startTask() 487 osEventSubscribe(mTask.tid, EVT_APP_START); in startTask()
|
/device/generic/goldfish-opengl/android-emu/android/base/threads/ |
D | AndroidThread_pthread.cpp | 182 pthread_t tid = pthread_self(); in getCurrentThreadId() local 185 static_assert(sizeof(tid) >= sizeof(long), in getCurrentThreadId() 187 return *reinterpret_cast<unsigned long*>(&tid); in getCurrentThreadId()
|
/device/google/contexthub/firmware/os/drivers/window_orientation/ |
D | window_orientation.c | 117 uint32_t tid; member 565 sensorRelease(mTask.tid, mTask.accelHandle); in windowOrientationPower() 567 osEventUnsubscribe(mTask.tid, EVT_SENSOR_ACC_DATA_RDY); in windowOrientationPower() 581 … if (sensorRequest(mTask.tid, mTask.accelHandle, ACCEL_MIN_RATE_HZ, ACCEL_MAX_LATENCY_NS)) { in windowOrientationSetRate() 586 osEventSubscribe(mTask.tid, EVT_SENSOR_ACC_DATA_RDY); in windowOrientationSetRate() 646 static bool window_orientation_start(uint32_t tid) in window_orientation_start() argument 648 mTask.tid = tid; in window_orientation_start()
|
/device/generic/goldfish-opengl/android-emu/android/utils/ |
D | debug.c | 83 int tid = syscall(SYS_gettid); in android_tid_function_print() local 88 printf("%stid=0x%x: %s: ", prefix, tid, in android_tid_function_print() 91 printf("%stid=0x%x: ", prefix, tid); in android_tid_function_print()
|
/device/generic/opengl-transport/host/libs/virglrenderer/ |
D | Context.h | 78 if (pid != pid_ && tid != tid_) { in setPidTid() 83 tid = tid_; in setPidTid() 118 int tid = 0; member
|
/device/google/contexthub/firmware/os/drivers/rohm_rpr0521/ |
D | rohm_rpr0521.c | 228 uint32_t tid; member 272 osEnqueuePrivateEvt(EVT_SENSOR_PROX_INTERRUPT, NULL, NULL, mTask.tid); in proxIsr() 307 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mTask.tid); in i2cCallback() 314 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mTask.tid); in alsTimerCallback() 465 static bool sendLastSampleAls(void *cookie, uint32_t tid) { in sendLastSampleAls() argument 471 …lt = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_ALS), mTask.lastAlsSample.vptr, NULL, tid); in sendLastSampleAls() 534 static bool sendLastSampleProx(void *cookie, uint32_t tid) { in sendLastSampleProx() argument 541 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL, tid); in sendLastSampleProx() 750 mTask.tid = myTid; in init_app()
|
/device/google/contexthub/firmware/os/drivers/st_hts221/ |
D | hts221.c | 148 uint32_t tid; member 219 osEnqueuePrivateEvt(EVT_COMM_DONE, cookie, NULL, mTask.tid); in i2cCallback() 269 osEnqueuePrivateEvt(EVT_SENSOR_HUMIDITY_TIMER, data, NULL, mTask.tid); in sensorHumidityTimerCallback() 461 osEventUnsubscribe(mTask.tid, EVT_APP_START); in handleEvent() 491 mTask.tid = task_id; in startTask() 509 osEventSubscribe(mTask.tid, EVT_APP_START); in startTask()
|
/device/google/contexthub/firmware/os/drivers/ams_tmd4903/ |
D | ams_tmd4903.c | 229 uint32_t tid; member 336 osEnqueuePrivateEvt(EVT_SENSOR_PROX_INTERRUPT, NULL, NULL, mTask.tid); in proxIsr() 344 osEnqueuePrivateEvt(EVT_SENSOR_PROX_INTERRUPT, NULL, NULL, mTask.tid); in proxIsr() 348 osEnqueuePrivateEvt(EVT_SENSOR_ALS_INTERRUPT, NULL, NULL, mTask.tid); in proxIsr() 377 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mTask.tid); in i2cCallback() 384 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mTask.tid); in alsTimerCallback() 556 static bool sendLastSampleAls(void *cookie, uint32_t tid) { in sendLastSampleAls() argument 562 …lt = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_ALS), mTask.lastAlsSample.vptr, NULL, tid); in sendLastSampleAls() 650 static bool sendLastSampleProx(void *cookie, uint32_t tid) { in sendLastSampleProx() argument 657 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL, tid); in sendLastSampleProx() [all …]
|
/device/google/contexthub/firmware/os/drivers/st_lps22hb/ |
D | lps22hb.c | 156 uint32_t tid; member 243 osEnqueuePrivateEvt(EVT_COMM_DONE, cookie, NULL, mTask.tid); in i2cCallback() 306 osEnqueuePrivateEvt(EVT_SENSOR_BARO_TIMER, data, NULL, mTask.tid); in sensorBaroTimerCallback() 311 osEnqueuePrivateEvt(EVT_SENSOR_TEMP_TIMER, data, NULL, mTask.tid); in sensorTempTimerCallback() 642 osEventUnsubscribe(mTask.tid, EVT_APP_START); in handleEvent() 701 mTask.tid = task_id; in startTask() 730 osEventSubscribe(mTask.tid, EVT_APP_START); in startTask()
|