/device/google/contexthub/firmware/inc/ |
D | isr.h | 38 uint16_t tid; member 51 isr->tid = 0; in unchainIsr() 65 osSetCurrentTid(curIsr->tid); in dispatchIsr() 75 static inline int unchainIsrAll(struct ChainedInterrupt *interrupt, uint32_t tid) in unchainIsrAll() argument 82 if (curIsr->tid == tid) { in unchainIsrAll()
|
D | timer.h | 43 uint32_t timTimerSetAsApp(uint64_t length, uint32_t jitterPpm, uint32_t driftPpm, uint32_t tid, voi… 45 int timTimerCancelAll(uint32_t tid);
|
D | sensors.h | 143 uint32_t tid; member 166 …bool (*sensorSendOneDirectEvt)(void *, uint32_t tid); //resend last state (if known), only for onc… 247 uint32_t sensorRegisterAsApp(const struct SensorInfo *si, uint32_t tid, void *callData, bool initCo… 270 int sensorUnregisterAll(uint32_t tid);
|
D | syscallDo.h | 95 static inline bool eOsEventSubscribe(uint32_t tid, uint32_t evtType) in eOsEventSubscribe() argument 97 …_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_SUBCRIBE), tid, evtType); in eOsEventSubscribe() 100 static inline bool eOsEventUnsubscribe(uint32_t tid, uint32_t evtType) in eOsEventUnsubscribe() argument 102 …OMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_UNSUBCRIBE), tid, evtType); in eOsEventUnsubscribe() 160 static inline uint32_t eOsSensorRegister(const struct SensorInfo *si, uint32_t tid, void *cookie, b… in eOsSensorRegister() argument 162 … SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_SENSOR, SYSCALL_OS_MAIN_SENSOR_REG), si, tid, cookie, (int)initC… in eOsSensorRegister() 218 …mTimerSet(uint64_t length, uint32_t jitterPpm, uint32_t driftPpm, uint32_t tid, void* cookie, bool… in eOsTimTimerSet() argument 223 … SYSCALL_OS_MAIN_TIME_SET_TIMER), lengthLo, lengthHi, jitterPpm, driftPpm, tid, cookie, (int)oneSh… in eOsTimTimerSet()
|
D | heap.h | 33 int heapFreeAll(uint32_t tid);
|
D | seos.h | 155 bool osEventSubscribe(uint32_t tid, uint32_t evtType); /* async */ 156 bool osEventUnsubscribe(uint32_t tid, uint32_t evtType); /* async */ 167 bool osTidById(uint64_t appId, uint32_t *tid);
|
D | platform.h | 41 uint32_t platFreeResources(uint32_t tid);
|
D | cpu.h | 41 bool cpuAppInit(const struct AppHdr *appHdr, struct PlatAppInfo *platInfo, uint32_t tid);
|
/device/google/contexthub/firmware/src/ |
D | seos.c | 47 #define MAKE_NEW_TID(task) task->tid = ((task->tid + TASK_TID_INCREMENT) & TASK_TID_COUNTER_MASK) |… 49 #define TID_TO_TASK_IDX(tid) (tid & TASK_TID_IDX_MASK) argument 94 uint16_t tid; member 109 uint32_t tid; member 200 return osGetCurrentTask()->tid; in osGetCurrentTid() 203 uint32_t osSetCurrentTid(uint32_t tid) in osSetCurrentTid() argument 205 struct Task *task = osTaskByIdx(TID_TO_TASK_IDX(tid)); in osSetCurrentTid() 207 if (task && task->tid == tid) { in osSetCurrentTid() 209 return preempted->tid; in osSetCurrentTid() 240 task->tid, in dumpListItems() [all …]
|
D | timer.c | 36 uint16_t tid; /* we need TID always, for system management */ member 77 osSetCurrentTid(tim->tid); in timCallFunc() 84 if (!osEnqueuePrivateEvt(EVT_APP_TIMER, evt, timerCallFuncFreeF, tim->tid)) in timCallFunc() 172 t->tid = osGetCurrentTid(); in timTimerSetEx() 186 uint32_t timTimerSetAsApp(uint64_t length, uint32_t jitterPpm, uint32_t driftPpm, uint32_t tid, voi… in timTimerSetAsApp() argument 210 int timTimerCancelAll(uint32_t tid) in timTimerCancelAll() argument 219 if (tim->tid != tid) in timTimerCancelAll()
|
D | heap.c | 205 int heapFreeAll(uint32_t tid) in heapFreeAll() argument 211 if (!tid) in heapFreeAll() 220 tid &= TIDX_MASK; in heapFreeAll() 222 if (node->tidx == tid) { in heapFreeAll()
|
D | sensors.c | 351 static bool sensorCallFuncSendOneDirectEvt(struct Sensor* s, uint32_t tid) in sensorCallFuncSendOneDirectEvt() argument 354 INVOKE_AS_OWNER_AND_RETURN(LOCAL_APP_OPS(s)->sensorSendOneDirectEvt, s->callData, tid); in sensorCallFuncSendOneDirectEvt() 361 evt->externalSendDirectEvt.tid = tid; in sensorCallFuncSendOneDirectEvt() 835 int sensorUnregisterAll(uint32_t tid) in sensorUnregisterAll() argument 840 if (HANDLE_TO_TID(mSensors[i].handle) == tid) { in sensorUnregisterAll()
|
/device/google/contexthub/firmware/src/drivers/orientation/ |
D | orientation.c | 99 uint32_t tid; member 526 …if (sensorRequest(mTask.tid, mTask.accelHandle, mTask.raw_sensor_rate[ACC], mTask.raw_sensor_laten… in fusionSetRateAcc() 527 osEventSubscribe(mTask.tid, EVT_SENSOR_ACC_DATA_RDY); in fusionSetRateAcc() 532 …sensorRequestRateChange(mTask.tid, mTask.accelHandle, mTask.raw_sensor_rate[ACC], mTask.raw_sensor… in fusionSetRateAcc() 545 …if (sensorRequest(mTask.tid, mTask.gyroHandle, mTask.raw_sensor_rate[GYR], mTask.raw_sensor_latenc… in fusionSetRateGyr() 546 osEventSubscribe(mTask.tid, EVT_SENSOR_GYR_DATA_RDY); in fusionSetRateGyr() 551 …sensorRequestRateChange(mTask.tid, mTask.gyroHandle, mTask.raw_sensor_rate[GYR], mTask.raw_sensor_… in fusionSetRateGyr() 564 …if (sensorRequest(mTask.tid, mTask.magHandle, mTask.raw_sensor_rate[MAG], mTask.raw_sensor_latency… in fusionSetRateMag() 565 osEventSubscribe(mTask.tid, EVT_SENSOR_MAG_DATA_RDY); in fusionSetRateMag() 570 …sensorRequestRateChange(mTask.tid, mTask.magHandle, mTask.raw_sensor_rate[MAG], mTask.raw_sensor_l… in fusionSetRateMag() [all …]
|
/device/google/contexthub/firmware/src/platform/stm32f4xx/ |
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()
|
D | exti.c | 158 int extiUnchainAll(uint32_t tid) in extiUnchainAll() argument 164 count += unchainIsrAll(&exti->base, tid); in extiUnchainAll()
|
/device/google/contexthub/firmware/src/drivers/ams_tmd2772/ |
D | ams_tmd2772.c | 154 uint32_t tid; member 201 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mData.tid); in i2cCallback() 208 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mData.tid); in alsTimerCallback() 213 osEnqueuePrivateEvt(EVT_SENSOR_PROX_TIMER, cookie, NULL, mData.tid); in proxTimerCallback() 292 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, NULL, NULL, mData.tid); in sensorRateAls() 303 static bool sendLastSampleAls(void *cookie, uint32_t tid) { in sendLastSampleAls() argument 309 …lt = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_ALS), mData.lastAlsSample.vptr, NULL, tid); in sendLastSampleAls() 347 osEnqueuePrivateEvt(EVT_SENSOR_PROX_TIMER, NULL, NULL, mData.tid); in sensorRateProx() 358 static bool sendLastSampleProx(void *cookie, uint32_t tid) { in sendLastSampleProx() argument 366 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL, tid); in sendLastSampleProx() [all …]
|
/device/google/contexthub/firmware/src/drivers/window_orientation/ |
D | window_orientation.c | 84 uint32_t tid; member 497 sensorRelease(mTask.tid, mTask.accelHandle); in windowOrientationPower() 499 osEventUnsubscribe(mTask.tid, EVT_SENSOR_ACC_DATA_RDY); in windowOrientationPower() 513 … if (sensorRequest(mTask.tid, mTask.accelHandle, ACCEL_MIN_RATE_HZ, ACCEL_MAX_LATENCY_NS)) { in windowOrientationSetRate() 518 osEventSubscribe(mTask.tid, EVT_SENSOR_ACC_DATA_RDY); in windowOrientationSetRate() 575 static bool window_orientation_start(uint32_t tid) in window_orientation_start() argument 577 osLog(LOG_INFO, " WINDOW ORIENTATION: %ld\n", tid); in window_orientation_start() 579 mTask.tid = tid; in window_orientation_start()
|
/device/google/contexthub/firmware/src/drivers/rohm_rpr0521/ |
D | rohm_rpr0521.c | 203 uint32_t tid; member 245 osEnqueuePrivateEvt(EVT_SENSOR_PROX_INTERRUPT, NULL, NULL, mTask.tid); in proxIsr() 275 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mTask.tid); in i2cCallback() 282 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mTask.tid); in alsTimerCallback() 365 static bool sendLastSampleAls(void *cookie, uint32_t tid) { in sendLastSampleAls() argument 371 …lt = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_ALS), mTask.lastAlsSample.vptr, NULL, tid); in sendLastSampleAls() 430 static bool sendLastSampleProx(void *cookie, uint32_t tid) { in sendLastSampleProx() argument 437 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL, tid); in sendLastSampleProx() 643 mTask.tid = myTid; in init_app()
|
/device/google/contexthub/firmware/src/drivers/ams_tmd4903/ |
D | ams_tmd4903.c | 199 uint32_t tid; member 261 osEnqueuePrivateEvt(EVT_SENSOR_PROX_INTERRUPT, NULL, NULL, mTask.tid); in proxIsr() 269 osEnqueuePrivateEvt(EVT_SENSOR_PROX_INTERRUPT, NULL, NULL, mTask.tid); in proxIsr() 273 osEnqueuePrivateEvt(EVT_SENSOR_ALS_INTERRUPT, NULL, NULL, mTask.tid); in proxIsr() 297 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mTask.tid); in i2cCallback() 304 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mTask.tid); in alsTimerCallback() 449 static bool sendLastSampleAls(void *cookie, uint32_t tid) { in sendLastSampleAls() argument 455 …lt = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_ALS), mTask.lastAlsSample.vptr, NULL, tid); in sendLastSampleAls() 544 static bool sendLastSampleProx(void *cookie, uint32_t tid) { in sendLastSampleProx() argument 551 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL, tid); in sendLastSampleProx() [all …]
|
/device/google/contexthub/firmware/src/cpu/cortexm4f/ |
D | appSupport.c | 191 bool cpuAppInit(const struct AppHdr *app, struct PlatAppInfo *platInfo, uint32_t tid) in cpuAppInit() argument 194 … return callWithR9((const void*)APP_FLASH_RELOC_BASE(app), app->vec.init, platInfo->got, tid, 0); in cpuAppInit() 196 return APP_VEC(app)->init(tid); in cpuAppInit()
|
/device/google/contexthub/firmware/src/platform/linux/ |
D | platform.c | 63 uint32_t platFreeResources(uint32_t tid) in platFreeResources() argument
|
/device/google/contexthub/firmware/src/drivers/hall/ |
D | hall.c | 181 static bool hallSendLastSample(void *cookie, uint32_t tid) in hallSendLastSample() argument 188 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_HALL), sample.vptr, NULL, tid); in hallSendLastSample()
|
/device/google/contexthub/firmware/inc/platform/stm32f4xx/ |
D | dma.h | 61 int dmaStopAll(uint32_t tid);
|
D | exti.h | 69 int extiUnchainAll(uint32_t tid);
|
/device/google/contexthub/firmware/src/drivers/hall_twopole/ |
D | hall_twopole.c | 197 static bool hallSendLastSample(void *cookie, uint32_t tid) in hallSendLastSample() argument 204 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_HALL), sample.vptr, NULL, tid); in hallSendLastSample()
|