• Home
  • Raw
  • Download

Lines Matching refs:entry

35 static RunningLockEntry *DupRunningLockEntry(RunningLockEntry *entry)  in DupRunningLockEntry()  argument
42 if (memcpy_s(e, sizeof(RunningLockEntry), entry, sizeof(RunningLockEntry)) != EOK) { in DupRunningLockEntry()
50 static BOOL AddRunningLockEntryLocked(Vector *vec, RunningLockEntry *entry) in AddRunningLockEntryLocked() argument
52 int16_t pos = VECTOR_FindByKey(vec, (void *)&entry->identity); in AddRunningLockEntryLocked()
54 POWER_HILOGD("Already acquired: %s", entry->lock.name); in AddRunningLockEntryLocked()
57 RunningLockEntry *e = DupRunningLockEntry(entry); in AddRunningLockEntryLocked()
70 ScAcquireRunningLock(g_runningLockNames[entry->lock.type]); in AddRunningLockEntryLocked()
75 static BOOL RemoveRunningLockEntryLocked(Vector *vec, RunningLockEntry *entry) in RemoveRunningLockEntryLocked() argument
77 int16_t pos = VECTOR_FindByKey(vec, (void *)&entry->identity); in RemoveRunningLockEntryLocked()
84 … POWER_HILOGD("Remove running lock entry, name: %s, type: %d", entry->lock.name, entry->lock.type); in RemoveRunningLockEntryLocked()
86 ScReleaseRunningLock(g_runningLockNames[entry->lock.type]); in RemoveRunningLockEntryLocked()
109 int32_t RunningLockMgrAcquireEntry(RunningLockEntry *entry, int32_t timeoutMs) in RunningLockMgrAcquireEntry() argument
111 if (IsValidRunningLockEntry(entry) == FALSE) { in RunningLockMgrAcquireEntry()
116 Vector *vec = &g_runningLocks[entry->lock.type]; in RunningLockMgrAcquireEntry()
117 BOOL ret = AddRunningLockEntryLocked(vec, entry); in RunningLockMgrAcquireEntry()
123 int32_t RunningLockMgrReleaseEntry(RunningLockEntry *entry) in RunningLockMgrReleaseEntry() argument
125 if (IsValidRunningLockEntry(entry) == FALSE) { in RunningLockMgrReleaseEntry()
131 Vector *vec = &g_runningLocks[entry->lock.type]; in RunningLockMgrReleaseEntry()
132 BOOL ret = RemoveRunningLockEntryLocked(vec, entry); in RunningLockMgrReleaseEntry()
161 static const RunningLockIdentity *GetRunningLockIdentity(const RunningLockEntry *entry) in GetRunningLockIdentity() argument
163 return &entry->identity; in GetRunningLockIdentity()