Lines Matching refs:State
147 ACPI_GENERIC_STATE *State;
153 State = AcpiUtCreatePkgState (InternalObject, ExternalObject, Index);
154 if (!State)
159 AcpiUtPushGenericState (StateList, State);
169 * State - State object to push
180 ACPI_GENERIC_STATE *State)
187 State->Common.Next = *ListHead;
188 *ListHead = State;
210 ACPI_GENERIC_STATE *State;
218 State = *ListHead;
219 if (State)
223 *ListHead = State->Common.Next;
226 return_PTR (State);
247 ACPI_GENERIC_STATE *State;
253 State = AcpiOsAcquireObject (AcpiGbl_StateCache);
254 if (State)
257 State->Common.DescriptorType = ACPI_DESC_TYPE_STATE;
260 return (State);
270 * RETURN: New Thread State. NULL on failure
272 * DESCRIPTION: Create a "Thread State" - a flavor of the generic state used
281 ACPI_GENERIC_STATE *State;
289 State = AcpiUtCreateGenericState ();
290 if (!State)
297 State->Common.DescriptorType = ACPI_DESC_TYPE_STATE_THREAD;
298 State->Thread.ThreadId = AcpiOsGetThreadId ();
302 if (!State->Thread.ThreadId)
305 State->Thread.ThreadId = (ACPI_THREAD_ID) 1;
308 return_PTR ((ACPI_THREAD_STATE *) State);
321 * DESCRIPTION: Create an "Update State" - a flavor of the generic state used
332 ACPI_GENERIC_STATE *State;
340 State = AcpiUtCreateGenericState ();
341 if (!State)
348 State->Common.DescriptorType = ACPI_DESC_TYPE_STATE_UPDATE;
349 State->Update.Object = Object;
350 State->Update.Value = Action;
352 return_PTR (State);
365 * DESCRIPTION: Create a "Package State"
375 ACPI_GENERIC_STATE *State;
383 State = AcpiUtCreateGenericState ();
384 if (!State)
391 State->Common.DescriptorType = ACPI_DESC_TYPE_STATE_PACKAGE;
392 State->Pkg.SourceObject = (ACPI_OPERAND_OBJECT *) InternalObject;
393 State->Pkg.DestObject = ExternalObject;
394 State->Pkg.Index= Index;
395 State->Pkg.NumPackages = 1;
397 return_PTR (State);
409 * DESCRIPTION: Create a "Control State" - a flavor of the generic state used
418 ACPI_GENERIC_STATE *State;
426 State = AcpiUtCreateGenericState ();
427 if (!State)
434 State->Common.DescriptorType = ACPI_DESC_TYPE_STATE_CONTROL;
435 State->Common.State = ACPI_CONTROL_CONDITIONAL_EXECUTING;
437 return_PTR (State);
445 * PARAMETERS: State - The state object to be deleted
456 ACPI_GENERIC_STATE *State)
463 if (State)
465 (void) AcpiOsReleaseObject (AcpiGbl_StateCache, State);