Home
last modified time | relevance | path

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

1234

/device/linaro/bootloader/arm-trusted-firmware/include/lib/pmf/
Dpmf_helpers.h22 typedef unsigned long long (*pmf_svc_get_ts_t)(unsigned int tid,
66 unsigned int tid, \
70 PMF_VALIDATE_TID(_name, tid); \
73 __pmf_store_timestamp(base_addr, tid, ts); \
75 __pmf_dump_timestamp(tid, ts); \
78 unsigned int tid, \
82 PMF_VALIDATE_TID(_name, tid); \
85 __pmf_store_timestamp_with_cache_maint(base_addr, tid, ts);\
87 __pmf_dump_timestamp(tid, ts); \
95 unsigned int tid, unsigned int cpuid, unsigned int flags)\
[all …]
Dpmf.h62 unsigned int tid, \
65 unsigned int tid, \
101 unsigned int tid, \
105 unsigned int tid, \
162 int pmf_get_timestamp_smc(unsigned int tid,
/device/linaro/bootloader/arm-trusted-firmware/lib/pmf/
Dpmf_main.c118 static pmf_svc_desc_t *get_service(unsigned int tid) in get_service() argument
123 unsigned int svc_id = tid & PMF_SVC_ID_MASK; in get_service()
146 if ((svc_id == desc_svc_id) && ((tid & PMF_TID_MASK) < in get_service()
157 int pmf_get_timestamp_smc(unsigned int tid, in pmf_get_timestamp_smc() argument
166 svc_desc = get_service(tid); in pmf_get_timestamp_smc()
173 *ts_value = svc_desc->get_ts(tid, mpidr, flags); in pmf_get_timestamp_smc()
182 void __pmf_dump_timestamp(unsigned int tid, unsigned long long ts) in __pmf_dump_timestamp() argument
185 plat_my_core_pos(), tid, ts); in __pmf_dump_timestamp()
193 unsigned int tid, in calc_ts_addr() argument
199 PMF_PERCPU_TIMESTAMP_SIZE) - ((tid & PMF_TID_MASK) * in calc_ts_addr()
[all …]
/device/google/cuttlefish_common/common/vsoc/lib/
Dlock_common.cpp58 bool vsoc::layout::WaitingLockBase::TryLock(uint32_t tid, in TryLock() argument
60 uint32_t masked_tid = MakeOwnerTid(tid); in TryLock()
102 layout::Sides vsoc::layout::WaitingLockBase::UnlockCommon(uint32_t tid) { in UnlockCommon() argument
107 uint32_t marked_tid = MakeOwnerTid(tid); in UnlockCommon()
109 LOG(FATAL) << tid << " unlocking " << this << " owned by " in UnlockCommon()
121 LOG(FATAL) << "Lock owner of " << this << " changed from " << tid << " to " in UnlockCommon()
144 uint32_t tid = gettid(); in Lock() local
146 if (TryLock(tid, &expected)) { in Lock()
Dcompat.cpp26 thread_local uint32_t tid = syscall(SYS_gettid); in gettid() local
27 return tid; in gettid()
Dmock_region_view.h87 bool IsBlocking(std::thread::id tid) { in IsBlocking() argument
90 if (tid_to_addr_.find(tid) != tid_to_addr_.end()) { in IsBlocking()
94 while (tid_to_addr_.find(tid) == tid_to_addr_.end()) { in IsBlocking()
/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()
Dheap.h30 int heapFreeAll(uint32_t tid);
32 int heapGetTaskSize(uint32_t tid);
Dtimer.h44 uint32_t timTimerSetAsApp(uint64_t length, uint32_t jitterPpm, uint32_t driftPpm, uint32_t tid, voi…
48 int timTimerCancelAll(uint32_t tid);
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()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dthread_beos.h118 thread_id tid; in PyThread_start_new_thread() local
129 tid = spawn_thread( (thread_func)func, name, in PyThread_start_new_thread()
131 if( tid > B_NO_ERROR ) { in PyThread_start_new_thread()
132 success = resume_thread( tid ); in PyThread_start_new_thread()
135 return ( success == B_NO_ERROR ? tid : -1 ); in PyThread_start_new_thread()
141 thread_id tid; in PyThread_get_thread_ident() local
142 tid = find_thread( NULL ); in PyThread_get_thread_ident()
144 return ( tid != B_NAME_NOT_FOUND ? tid : -1 ); in PyThread_get_thread_ident()
Dthread_lwp.h31 thread_t tid; in PyThread_start_new_thread() local
36 success = lwp_create(&tid, func, MINPRIO, 0, lwp_newstk(), 1, arg); in PyThread_start_new_thread()
42 thread_t tid; in PyThread_get_thread_ident() local
45 if (lwp_self(&tid) < 0) in PyThread_get_thread_ident()
47 return tid.thread_id; in PyThread_get_thread_ident()
Dthread_atheos.h102 thread_id tid; in PyThread_start_new_thread() local
111 tid = spawn_thread(name, func, NORMAL_PRIORITY, 0, arg); in PyThread_start_new_thread()
112 if (tid < 0) { in PyThread_start_new_thread()
115 success = resume_thread(tid); in PyThread_start_new_thread()
121 return (success < 0 ? -1 : tid); in PyThread_start_new_thread()
Dthread_solaris.h41 thread_t tid; in PyThread_start_new_thread() local
51 THR_DETACHED | THR_NEW_LWP, &tid)) { in PyThread_start_new_thread()
56 return tid; in PyThread_start_new_thread()
/device/google/contexthub/firmware/os/core/
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()
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 …]
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()
/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/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()
/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/cuttlefish_common/guest/vsoc/lib/
Dguest_lock.cpp25 uint32_t tid = gettid(); in Lock() local
30 if (TryLock(tid, &expected_value)) { in Lock()
/device/google/cuttlefish_common/host/vsoc/lib/
Dhost_lock.cpp27 uint32_t tid = gettid(); in Lock() local
32 if (TryLock(tid, &expected_value)) { in Lock()
/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/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()

1234