Home
last modified time | relevance | path

Searched refs:tid (Results 1 – 25 of 84) sorted by relevance

1234

/device/google/contexthub/firmware/os/core/
Dseos.c93 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 …]
Dtimer.c47 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()
Dheap.c205 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()
Dnanohub_chre.c146 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 …]
DnanohubCommand.c935 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 …]
Dspi.c41 uint16_t tid; member
159 uint16_t oldTid = osSetCurrentTid(state->tid); in spiMasterDone()
219 uint16_t oldTid = osSetCurrentTid(state->tid); in spiSlaveCsInactive()
253 uint16_t oldTid = osSetCurrentTid(state->tid); in spiSlaveIdle()
282 state->tid = osGetCurrentTid(); in spiSetupRxTx()
/device/google/contexthub/firmware/os/drivers/orientation/
Dorientation.c108 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/inc/
Disr.h41 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()
Dseos_priv.h27 #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()
DsyscallDo.h42 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()
Dseos.h132 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);
Dsensors.h155 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/drivers/ams_tmd2772/
Dams_tmd2772.c171 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/platform/stm32/
Ddma.c89 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()
Di2c.c163 uint16_t tid; member
228 uint16_t tid; member
359 uint16_t oldTid = osSetCurrentTid(state->tid); in stmI2cInvokeRxCallback()
366 uint16_t oldTid = osSetCurrentTid(state->tid); in stmI2cInvokeTxCallback()
537 state->tid = xfer->tid; in stmI2cMasterTxRxDone()
938 xfer->tid = osGetCurrentTid(); in i2cMasterTxRx()
967 state->tid = xfer->tid; in i2cMasterTxRx()
1046 state->tid = osGetCurrentTid(); in i2cSlaveEnableRx()
/device/google/contexthub/firmware/os/drivers/intersil_isl29034/
Disl29034.c137 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/si_si7034/
Dsi7034a10.c121 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/google/contexthub/firmware/os/drivers/window_orientation/
Dwindow_orientation.c117 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/google/contexthub/firmware/os/drivers/rohm_rpr0521/
Drohm_rpr0521.c228 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/ams_tmd4903/
Dams_tmd4903.c229 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_hts221/
Dhts221.c148 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/st_lps22hb/
Dlps22hb.c156 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()
/device/google/contexthub/firmware/os/drivers/st_acc44/
Dst_acc44.c231 uint32_t tid; member
498 if (!osEnqueuePrivateEvt(EVT_SENSOR_INTERRUPT, NULL, NULL, mTask.tid)) in st_acc44_int1_isr()
589 osEnqueuePrivateEvt(EVT_COMM_DONE, cookie, NULL, mTask.tid); in st_acc44_i2cCallback()
773 osEventUnsubscribe(mTask.tid, EVT_APP_START); in st_acc44_handleEvent()
797 mTask.tid = task_id; in st_acc44_startTask()
831 osEventSubscribe(mTask.tid, EVT_APP_START); in st_acc44_startTask()
/device/google/contexthub/firmware/os/drivers/st_lsm6dsm/
Dst_lsm6dsm.c892 uint32_t tid; member
1194 static bool lsm6dsm_stepCounterSendLastData(void *cookie, uint32_t tid);
1367 osEnqueuePrivateEvt(EVT_SPI_DONE, data, NULL, mTask.tid); in lsm6dsm_timerCallback()
1377 osEnqueuePrivateEvt(EVT_TIME_SYNC, data, NULL, mTask.tid); in lsm6dsm_timerSyncCallback()
1390 osEnqueuePrivateEvt(EVT_SPI_DONE, cookie, NULL, mTask.tid); in lsm6dsm_spiCallback()
1463 osEnqueuePrivateEvt(EVT_SENSOR_INTERRUPT_1, _task, NULL, T(tid)); in lsm6dsm_readStatusReg_()
2373 if (!osEnqueuePrivateEvt(EVT_TIME_SYNC, 0, NULL, mTask.tid)) { in lsm6dsm_updateSyncTaskMode()
2560 osEnqueuePrivateEvt(EVT_SENSOR_POWERING_UP, &T(sensors[ACCEL]), NULL, mTask.tid); in lsm6dsm_setAccelPower()
2568 osEnqueuePrivateEvt(EVT_SENSOR_POWERING_DOWN, &T(sensors[ACCEL]), NULL, mTask.tid); in lsm6dsm_setAccelPower()
2593 osEnqueuePrivateEvt(EVT_SENSOR_POWERING_UP, &T(sensors[GYRO]), NULL, mTask.tid); in lsm6dsm_setGyroPower()
[all …]
/device/generic/opengl-transport/host/libs/virglrenderer/
DContext.h78 if (pid != pid_ && tid != tid_) { in setPidTid()
83 tid = tid_; in setPidTid()
118 int tid = 0; member

1234