Lines Matching refs:State

175     ACPI_GENERIC_STATE      *State)  in AcpiUtPushGenericState()  argument
182 State->Common.Next = *ListHead; in AcpiUtPushGenericState()
183 *ListHead = State; in AcpiUtPushGenericState()
204 ACPI_GENERIC_STATE *State; in AcpiUtPopGenericState() local
212 State = *ListHead; in AcpiUtPopGenericState()
213 if (State) in AcpiUtPopGenericState()
217 *ListHead = State->Common.Next; in AcpiUtPopGenericState()
220 return (State); in AcpiUtPopGenericState()
241 ACPI_GENERIC_STATE *State; in AcpiUtCreateGenericState() local
247 State = AcpiOsAcquireObject (AcpiGbl_StateCache); in AcpiUtCreateGenericState()
248 if (State) in AcpiUtCreateGenericState()
251 State->Common.DescriptorType = ACPI_DESC_TYPE_STATE; in AcpiUtCreateGenericState()
254 return (State); in AcpiUtCreateGenericState()
275 ACPI_GENERIC_STATE *State; in AcpiUtCreateThreadState() local
283 State = AcpiUtCreateGenericState (); in AcpiUtCreateThreadState()
284 if (!State) in AcpiUtCreateThreadState()
291 State->Common.DescriptorType = ACPI_DESC_TYPE_STATE_THREAD; in AcpiUtCreateThreadState()
292 State->Thread.ThreadId = AcpiOsGetThreadId (); in AcpiUtCreateThreadState()
296 if (!State->Thread.ThreadId) in AcpiUtCreateThreadState()
299 State->Thread.ThreadId = (ACPI_THREAD_ID) 1; in AcpiUtCreateThreadState()
302 return ((ACPI_THREAD_STATE *) State); in AcpiUtCreateThreadState()
326 ACPI_GENERIC_STATE *State; in AcpiUtCreateUpdateState() local
334 State = AcpiUtCreateGenericState (); in AcpiUtCreateUpdateState()
335 if (!State) in AcpiUtCreateUpdateState()
342 State->Common.DescriptorType = ACPI_DESC_TYPE_STATE_UPDATE; in AcpiUtCreateUpdateState()
343 State->Update.Object = Object; in AcpiUtCreateUpdateState()
344 State->Update.Value = Action; in AcpiUtCreateUpdateState()
345 return (State); in AcpiUtCreateUpdateState()
368 ACPI_GENERIC_STATE *State; in AcpiUtCreatePkgState() local
376 State = AcpiUtCreateGenericState (); in AcpiUtCreatePkgState()
377 if (!State) in AcpiUtCreatePkgState()
384 State->Common.DescriptorType = ACPI_DESC_TYPE_STATE_PACKAGE; in AcpiUtCreatePkgState()
385 State->Pkg.SourceObject = (ACPI_OPERAND_OBJECT *) InternalObject; in AcpiUtCreatePkgState()
386 State->Pkg.DestObject = ExternalObject; in AcpiUtCreatePkgState()
387 State->Pkg.Index= Index; in AcpiUtCreatePkgState()
388 State->Pkg.NumPackages = 1; in AcpiUtCreatePkgState()
390 return (State); in AcpiUtCreatePkgState()
411 ACPI_GENERIC_STATE *State; in AcpiUtCreateControlState() local
419 State = AcpiUtCreateGenericState (); in AcpiUtCreateControlState()
420 if (!State) in AcpiUtCreateControlState()
427 State->Common.DescriptorType = ACPI_DESC_TYPE_STATE_CONTROL; in AcpiUtCreateControlState()
428 State->Common.State = ACPI_CONTROL_CONDITIONAL_EXECUTING; in AcpiUtCreateControlState()
430 return (State); in AcpiUtCreateControlState()
449 ACPI_GENERIC_STATE *State) in AcpiUtDeleteGenericState() argument
456 if (State) in AcpiUtDeleteGenericState()
458 (void) AcpiOsReleaseObject (AcpiGbl_StateCache, State); in AcpiUtDeleteGenericState()