Lines Matching refs:ObjDesc
164 ACPI_OPERAND_OBJECT *ObjDesc,
182 ACPI_OPERAND_OBJECT *ObjDesc) in AcpiExUnlinkMutex() argument
184 ACPI_THREAD_STATE *Thread = ObjDesc->Mutex.OwnerThread; in AcpiExUnlinkMutex()
194 if (ObjDesc->Mutex.Next) in AcpiExUnlinkMutex()
196 (ObjDesc->Mutex.Next)->Mutex.Prev = ObjDesc->Mutex.Prev; in AcpiExUnlinkMutex()
199 if (ObjDesc->Mutex.Prev) in AcpiExUnlinkMutex()
201 (ObjDesc->Mutex.Prev)->Mutex.Next = ObjDesc->Mutex.Next; in AcpiExUnlinkMutex()
209 (ObjDesc->Mutex.Prev)->Mutex.OriginalSyncLevel = in AcpiExUnlinkMutex()
210 ObjDesc->Mutex.OriginalSyncLevel; in AcpiExUnlinkMutex()
214 Thread->AcquiredMutexList = ObjDesc->Mutex.Next; in AcpiExUnlinkMutex()
234 ACPI_OPERAND_OBJECT *ObjDesc, in AcpiExLinkMutex() argument
244 ObjDesc->Mutex.Prev = NULL; in AcpiExLinkMutex()
245 ObjDesc->Mutex.Next = ListHead; in AcpiExLinkMutex()
251 ListHead->Mutex.Prev = ObjDesc; in AcpiExLinkMutex()
256 Thread->AcquiredMutexList = ObjDesc; in AcpiExLinkMutex()
286 ACPI_OPERAND_OBJECT *ObjDesc, in AcpiExAcquireMutexObject() argument
292 ACPI_FUNCTION_TRACE_PTR (ExAcquireMutexObject, ObjDesc); in AcpiExAcquireMutexObject()
295 if (!ObjDesc) in AcpiExAcquireMutexObject()
302 if (ObjDesc->Mutex.ThreadId == ThreadId) in AcpiExAcquireMutexObject()
308 ObjDesc->Mutex.AcquisitionDepth++; in AcpiExAcquireMutexObject()
314 if (ObjDesc == AcpiGbl_GlobalLockMutex) in AcpiExAcquireMutexObject()
320 Status = AcpiExSystemWaitMutex (ObjDesc->Mutex.OsMutex, Timeout); in AcpiExAcquireMutexObject()
332 ObjDesc->Mutex.ThreadId = ThreadId; in AcpiExAcquireMutexObject()
333 ObjDesc->Mutex.AcquisitionDepth = 1; in AcpiExAcquireMutexObject()
334 ObjDesc->Mutex.OriginalSyncLevel = 0; in AcpiExAcquireMutexObject()
335 ObjDesc->Mutex.OwnerThread = NULL; /* Used only for AML Acquire() */ in AcpiExAcquireMutexObject()
358 ACPI_OPERAND_OBJECT *ObjDesc, in AcpiExAcquireMutex() argument
364 ACPI_FUNCTION_TRACE_PTR (ExAcquireMutex, ObjDesc); in AcpiExAcquireMutex()
367 if (!ObjDesc) in AcpiExAcquireMutex()
378 AcpiUtGetNodeName (ObjDesc->Mutex.Node))); in AcpiExAcquireMutex()
386 if (WalkState->Thread->CurrentSyncLevel > ObjDesc->Mutex.SyncLevel) in AcpiExAcquireMutex()
391 AcpiUtGetNodeName (ObjDesc->Mutex.Node), in AcpiExAcquireMutex()
399 ObjDesc->Mutex.SyncLevel, WalkState->Thread->CurrentSyncLevel, in AcpiExAcquireMutex()
400 ObjDesc->Mutex.AcquisitionDepth, WalkState->Thread)); in AcpiExAcquireMutex()
403 ObjDesc, WalkState->Thread->ThreadId); in AcpiExAcquireMutex()
405 if (ACPI_SUCCESS (Status) && ObjDesc->Mutex.AcquisitionDepth == 1) in AcpiExAcquireMutex()
409 ObjDesc->Mutex.OwnerThread = WalkState->Thread; in AcpiExAcquireMutex()
410 ObjDesc->Mutex.OriginalSyncLevel = in AcpiExAcquireMutex()
413 ObjDesc->Mutex.SyncLevel; in AcpiExAcquireMutex()
417 AcpiExLinkMutex (ObjDesc, WalkState->Thread); in AcpiExAcquireMutex()
422 ObjDesc->Mutex.SyncLevel, WalkState->Thread->CurrentSyncLevel, in AcpiExAcquireMutex()
423 ObjDesc->Mutex.AcquisitionDepth)); in AcpiExAcquireMutex()
453 ACPI_OPERAND_OBJECT *ObjDesc) in AcpiExReleaseMutexObject() argument
461 if (ObjDesc->Mutex.AcquisitionDepth == 0) in AcpiExReleaseMutexObject()
468 ObjDesc->Mutex.AcquisitionDepth--; in AcpiExReleaseMutexObject()
469 if (ObjDesc->Mutex.AcquisitionDepth != 0) in AcpiExReleaseMutexObject()
476 if (ObjDesc->Mutex.OwnerThread) in AcpiExReleaseMutexObject()
480 AcpiExUnlinkMutex (ObjDesc); in AcpiExReleaseMutexObject()
481 ObjDesc->Mutex.OwnerThread = NULL; in AcpiExReleaseMutexObject()
486 if (ObjDesc == AcpiGbl_GlobalLockMutex) in AcpiExReleaseMutexObject()
492 AcpiOsReleaseMutex (ObjDesc->Mutex.OsMutex); in AcpiExReleaseMutexObject()
497 ObjDesc->Mutex.ThreadId = 0; in AcpiExReleaseMutexObject()
517 ACPI_OPERAND_OBJECT *ObjDesc, in AcpiExReleaseMutex() argument
528 if (!ObjDesc) in AcpiExReleaseMutex()
533 OwnerThread = ObjDesc->Mutex.OwnerThread; in AcpiExReleaseMutex()
541 AcpiUtGetNodeName (ObjDesc->Mutex.Node))); in AcpiExReleaseMutex()
551 AcpiUtGetNodeName (ObjDesc->Mutex.Node))); in AcpiExReleaseMutex()
560 (ObjDesc != AcpiGbl_GlobalLockMutex)) in AcpiExReleaseMutex()
565 AcpiUtGetNodeName (ObjDesc->Mutex.Node), in AcpiExReleaseMutex()
577 if (ObjDesc->Mutex.SyncLevel != OwnerThread->CurrentSyncLevel) in AcpiExReleaseMutex()
582 AcpiUtGetNodeName (ObjDesc->Mutex.Node), in AcpiExReleaseMutex()
583 ObjDesc->Mutex.SyncLevel, WalkState->Thread->CurrentSyncLevel)); in AcpiExReleaseMutex()
598 ObjDesc->Mutex.SyncLevel, WalkState->Thread->CurrentSyncLevel, in AcpiExReleaseMutex()
599 PreviousSyncLevel, ObjDesc->Mutex.AcquisitionDepth, in AcpiExReleaseMutex()
602 Status = AcpiExReleaseMutexObject (ObjDesc); in AcpiExReleaseMutex()
608 if (ObjDesc->Mutex.AcquisitionDepth == 0) in AcpiExReleaseMutex()
618 ObjDesc->Mutex.SyncLevel, WalkState->Thread->CurrentSyncLevel, in AcpiExReleaseMutex()
619 PreviousSyncLevel, ObjDesc->Mutex.AcquisitionDepth)); in AcpiExReleaseMutex()
648 ACPI_OPERAND_OBJECT *ObjDesc; in AcpiExReleaseAllMutexes() local
658 ObjDesc = Next; in AcpiExReleaseAllMutexes()
661 ObjDesc->Mutex.Node->Name.Ascii, ObjDesc->Mutex.SyncLevel, in AcpiExReleaseAllMutexes()
662 ObjDesc->Mutex.AcquisitionDepth)); in AcpiExReleaseAllMutexes()
666 if (ObjDesc == AcpiGbl_GlobalLockMutex) in AcpiExReleaseAllMutexes()
674 AcpiOsReleaseMutex (ObjDesc->Mutex.OsMutex); in AcpiExReleaseAllMutexes()
679 Thread->CurrentSyncLevel = ObjDesc->Mutex.OriginalSyncLevel; in AcpiExReleaseAllMutexes()
683 Next = ObjDesc->Mutex.Next; in AcpiExReleaseAllMutexes()
685 ObjDesc->Mutex.Prev = NULL; in AcpiExReleaseAllMutexes()
686 ObjDesc->Mutex.Next = NULL; in AcpiExReleaseAllMutexes()
687 ObjDesc->Mutex.AcquisitionDepth = 0; in AcpiExReleaseAllMutexes()
688 ObjDesc->Mutex.OwnerThread = NULL; in AcpiExReleaseAllMutexes()
689 ObjDesc->Mutex.ThreadId = 0; in AcpiExReleaseAllMutexes()