Searched refs:tid (Results 1 - 25 of 49) sorted by relevance

12

/device/google/contexthub/firmware/os/inc/
H A Dheap.h33 int heapFreeAll(uint32_t tid);
H A Disr.h41 uint16_t tid; member in struct:ChainedIsr
47 isr->tid = osGetCurrentTid();
55 isr->tid = 0;
69 osSetCurrentTid(curIsr->tid);
79 static inline int unchainIsrAll(struct ChainedInterrupt *interrupt, uint32_t tid) argument
86 if (curIsr->tid == tid) {
H A Dseos_priv.h26 #define TID_TO_TASK_IDX(tid) (tid & TASK_TID_IDX_MASK)
66 uint16_t tid; member in struct:Task
93 uint16_t tid; member in struct:SeosInternalSlabData::__anon332
114 struct Task *osTaskFindByTid(uint32_t tid);
127 task->tid = ((task->tid + TASK_TID_INCREMENT) & TASK_TID_COUNTER_MASK) |
H A Dtimer.h43 uint32_t timTimerSetAsApp(uint64_t length, uint32_t jitterPpm, uint32_t driftPpm, uint32_t tid, void* data, bool oneShot); /* return timer id or 0 if failed */
47 int timTimerCancelAll(uint32_t tid);
H A DchreApi.h64 void osChreFreeEvent(uint32_t tid, void (*free_info)(uint16_t, void *), uint32_t evtType, void * evtData);
H A Dplatform.h42 uint32_t platFreeResources(uint32_t tid);
H A Dcpu.h41 bool cpuAppInit(const struct AppHdr *appHdr, struct PlatAppInfo *platInfo, uint32_t tid);
H A DsyscallDo.h42 static inline bool eOsEventSubscribe(uint32_t tid, uint32_t evtType) argument
44 return syscallDo2P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_SUBCRIBE), tid, evtType);
47 static inline bool eOsEventUnsubscribe(uint32_t tid, uint32_t evtType) argument
49 return syscallDo2P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_UNSUBCRIBE), tid, evtType);
107 static inline uint32_t eOsSensorRegister(const struct SensorInfo *si, uint32_t tid, void *cookie, bool initComplete) argument
109 return syscallDo4P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_SENSOR, SYSCALL_OS_MAIN_SENSOR_REG), si, tid, cookie, (int)initComplete);
172 static inline uint32_t eOsTimTimerSet(uint64_t length, uint32_t jitterPpm, uint32_t driftPpm, uint32_t tid, void* cookie, bool oneShot) argument
177 return syscallDoGeneric(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_TIME, SYSCALL_OS_MAIN_TIME_SET_TIMER), lengthLo, lengthHi, jitterPpm, driftPpm, tid, cookie, (int)oneShot);
H A Dseos.h156 bool osEventSubscribe(uint32_t tid, uint32_t evtType); /* async */
157 bool osEventUnsubscribe(uint32_t tid, uint32_t evtType); /* async */
174 bool osTidById(uint64_t *appId, uint32_t *tid);
269 bool osAppIsChre(uint16_t tid);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
H A Dthread_lwp.h31 thread_t tid; local
36 success = lwp_create(&tid, func, MINPRIO, 0, lwp_newstk(), 1, arg);
42 thread_t tid; local
45 if (lwp_self(&tid) < 0)
47 return tid.thread_id;
H A Dthread_beos.h118 thread_id tid; local
129 tid = spawn_thread( (thread_func)func, name,
131 if( tid > B_NO_ERROR ) {
132 success = resume_thread( tid );
135 return ( success == B_NO_ERROR ? tid : -1 );
141 thread_id tid; local
142 tid = find_thread( NULL );
144 return ( tid != B_NAME_NOT_FOUND ? tid : -1 );
H A Dthread_solaris.h41 thread_t tid; local
51 THR_DETACHED | THR_NEW_LWP, &tid)) {
56 return tid;
H A Dthread_atheos.h102 thread_id tid; local
111 tid = spawn_thread(name, func, NORMAL_PRIORITY, 0, arg);
112 if (tid < 0) {
115 success = resume_thread(tid);
121 return (success < 0 ? -1 : tid);
/device/google/contexthub/firmware/os/platform/native/
H A Dplatform.c63 uint32_t platFreeResources(uint32_t tid) argument
/device/google/contexthub/firmware/os/core/
H A Dtimer.c44 uint16_t tid; /* we need TID always, for system management */ member in struct:Timer
84 osSetCurrentTid(tim->tid);
91 if (!osEnqueuePrivateEvt(EVT_APP_TIMER, evt, timerCallFuncFreeF, tim->tid)) {
186 t->tid = osGetCurrentTid();
200 uint32_t timTimerSetAsApp(uint64_t length, uint32_t jitterPpm, uint32_t driftPpm, uint32_t tid, void* data, bool oneShot) argument
229 if (t && t->tid == osGetCurrentTid()) {
253 int timTimerCancelAll(uint32_t tid) argument
262 if (tim->tid != tid)
H A Dheap.c205 int heapFreeAll(uint32_t tid) argument
211 if (!tid)
219 tid &= TIDX_MASK;
221 if (node->tidx == tid) {
H A Dseos.c93 bool osAppIsChre(uint16_t tid) argument
95 struct Task *task = osTaskFindByTid(tid);
142 return task->tid;
145 uint32_t osSetCurrentTid(uint32_t tid) argument
147 struct Task *task = osTaskByIdx(TID_TO_TASK_IDX(tid));
149 if (task && task->tid == tid) {
151 return preempted->tid;
182 task->tid,
249 uint16_t tid local
276 osTaskFindByTid(uint32_t tid) argument
293 uint16_t tid = task->tid; local
970 uint16_t tid = EVENT_GET_ORIGIN(evtType); local
1084 uint16_t tid, evt; local
1162 osEventSubscribe(uint32_t tid, uint32_t evtType) argument
1168 osEventUnsubscribe(uint32_t tid, uint32_t evtType) argument
1310 osTidById(uint64_t *appId, uint32_t *tid) argument
[all...]
/device/google/contexthub/firmware/os/platform/stm32/inc/plat/
H A Ddma.h61 int dmaStopAll(uint32_t tid);
/device/google/contexthub/firmware/os/platform/stm32/
H A Ddma.c89 uint16_t tid; member in struct:StmDmaStreamState
201 uint16_t oldTid = osSetCurrentTid(state->tid);
214 uint16_t oldTid = osSetCurrentTid(state->tid);
247 state->tid = osGetCurrentTid();
288 state->tid = 0;
304 int dmaStopAll(uint32_t tid) argument
311 if (state->tid == tid) {
/device/google/contexthub/firmware/os/drivers/orientation/
H A Dorientation.c108 uint32_t tid; member in struct:FusionTask
593 if (sensorRequest(mTask.tid, mTask.accelHandle, mTask.raw_sensor_rate[ACC],
595 osEventSubscribe(mTask.tid, EVT_SENSOR_ACC_DATA_RDY);
600 sensorRequestRateChange(mTask.tid, mTask.accelHandle, mTask.raw_sensor_rate[ACC],
614 if (sensorRequest(mTask.tid, mTask.gyroHandle, mTask.raw_sensor_rate[GYR],
616 osEventSubscribe(mTask.tid, EVT_SENSOR_GYR_DATA_RDY);
621 sensorRequestRateChange(mTask.tid, mTask.gyroHandle, mTask.raw_sensor_rate[GYR],
635 if (sensorRequest(mTask.tid, mTask.magHandle, mTask.raw_sensor_rate[MAG],
637 osEventSubscribe(mTask.tid, EVT_SENSOR_MAG_DATA_RDY);
638 osEventSubscribe(mTask.tid, EVT_SENSOR_MAG_BIA
833 fusionStart(uint32_t tid) argument
[all...]
/device/google/contexthub/firmware/os/drivers/ams_tmd2772/
H A Dams_tmd2772.c171 uint32_t tid; member in struct:SensorData
225 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mData.tid);
266 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mData.tid);
271 osEnqueuePrivateEvt(EVT_SENSOR_PROX_TIMER, cookie, NULL, mData.tid);
354 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, NULL, NULL, mData.tid);
365 static bool sendLastSampleAls(void *cookie, uint32_t tid) { argument
371 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_ALS), mData.lastAlsSample.vptr, NULL, tid);
409 osEnqueuePrivateEvt(EVT_SENSOR_PROX_TIMER, NULL, NULL, mData.tid);
420 static bool sendLastSampleProx(void *cookie, uint32_t tid) { argument
428 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL, tid);
[all...]
/device/google/contexthub/firmware/os/drivers/window_orientation/
H A Dwindow_orientation.c113 uint32_t tid; member in struct:WindowOrientationTask
561 sensorRelease(mTask.tid, mTask.accelHandle);
563 osEventUnsubscribe(mTask.tid, EVT_SENSOR_ACC_DATA_RDY);
577 if (sensorRequest(mTask.tid, mTask.accelHandle, ACCEL_MIN_RATE_HZ, ACCEL_MAX_LATENCY_NS)) {
582 osEventSubscribe(mTask.tid, EVT_SENSOR_ACC_DATA_RDY);
642 static bool window_orientation_start(uint32_t tid) argument
644 mTask.tid = tid;
/device/google/contexthub/firmware/os/drivers/st_lps22hb/
H A Dlps22hb.c112 uint32_t tid; member in struct:lps22hbTask
154 osEnqueuePrivateEvt(EVT_COMM_DONE, cookie, NULL, mTask.tid);
212 osEnqueuePrivateEvt(EVT_SENSOR_BARO_TIMER, data, NULL, mTask.tid);
217 osEnqueuePrivateEvt(EVT_SENSOR_TEMP_TIMER, data, NULL, mTask.tid);
403 //osEnqueuePrivateEvt(EVT_TEST, NULL, NULL, mTask.tid);
471 osEventUnsubscribe(mTask.tid, EVT_APP_START);
533 mTask.tid = task_id;
558 osEventSubscribe(mTask.tid, EVT_APP_START);
/device/google/contexthub/firmware/os/drivers/rohm_rpr0521/
H A Drohm_rpr0521.c220 uint32_t tid; member in struct:SensorData
264 osEnqueuePrivateEvt(EVT_SENSOR_PROX_INTERRUPT, NULL, NULL, mTask.tid);
299 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mTask.tid);
306 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mTask.tid);
424 static bool sendLastSampleAls(void *cookie, uint32_t tid) { argument
430 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_ALS), mTask.lastAlsSample.vptr, NULL, tid);
497 static bool sendLastSampleProx(void *cookie, uint32_t tid) { argument
504 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL, tid);
717 mTask.tid = myTid;
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
H A Dtest_threading.py155 tid = thread.start_new_thread(f, (mutex,))
158 self.assertIn(tid, threading._active)
159 self.assertIsInstance(threading._active[tid], threading._DummyThread)
160 del threading._active[tid]
180 tid = thread.get_ident()
183 result = set_async_exc(ctypes.c_long(tid), exception)

Completed in 1049 milliseconds

12