Lines Matching refs:Scope
69 return (ParserState->Scope->ParseScope.Op); in AcpiPsGetParentScope()
93 ((ParserState->Aml >= ParserState->Scope->ParseScope.ArgEnd || in AcpiPsHasCompletedScope()
94 !ParserState->Scope->ParseScope.ArgCount))); in AcpiPsHasCompletedScope()
116 ACPI_GENERIC_STATE *Scope; in AcpiPsInitScope() local
122 Scope = AcpiUtCreateGenericState (); in AcpiPsInitScope()
123 if (!Scope) in AcpiPsInitScope()
128 Scope->Common.DescriptorType = ACPI_DESC_TYPE_STATE_RPSCOPE; in AcpiPsInitScope()
129 Scope->ParseScope.Op = RootOp; in AcpiPsInitScope()
130 Scope->ParseScope.ArgCount = ACPI_VAR_ARGS; in AcpiPsInitScope()
131 Scope->ParseScope.ArgEnd = ParserState->AmlEnd; in AcpiPsInitScope()
132 Scope->ParseScope.PkgEnd = ParserState->AmlEnd; in AcpiPsInitScope()
134 ParserState->Scope = Scope; in AcpiPsInitScope()
163 ACPI_GENERIC_STATE *Scope; in AcpiPsPushScope() local
169 Scope = AcpiUtCreateGenericState (); in AcpiPsPushScope()
170 if (!Scope) in AcpiPsPushScope()
175 Scope->Common.DescriptorType = ACPI_DESC_TYPE_STATE_PSCOPE; in AcpiPsPushScope()
176 Scope->ParseScope.Op = Op; in AcpiPsPushScope()
177 Scope->ParseScope.ArgList = RemainingArgs; in AcpiPsPushScope()
178 Scope->ParseScope.ArgCount = ArgCount; in AcpiPsPushScope()
179 Scope->ParseScope.PkgEnd = ParserState->PkgEnd; in AcpiPsPushScope()
183 AcpiUtPushGenericState (&ParserState->Scope, Scope); in AcpiPsPushScope()
189 Scope->ParseScope.ArgEnd = ParserState->PkgEnd; in AcpiPsPushScope()
195 Scope->ParseScope.ArgEnd = ACPI_TO_POINTER (ACPI_MAX_PTR); in AcpiPsPushScope()
225 ACPI_GENERIC_STATE *Scope = ParserState->Scope; in AcpiPsPopScope() local
233 if (Scope->Common.Next) in AcpiPsPopScope()
235 Scope = AcpiUtPopGenericState (&ParserState->Scope); in AcpiPsPopScope()
239 *Op = Scope->ParseScope.Op; in AcpiPsPopScope()
240 *ArgList = Scope->ParseScope.ArgList; in AcpiPsPopScope()
241 *ArgCount = Scope->ParseScope.ArgCount; in AcpiPsPopScope()
242 ParserState->PkgEnd = Scope->ParseScope.PkgEnd; in AcpiPsPopScope()
246 AcpiUtDeleteGenericState (Scope); in AcpiPsPopScope()
280 ACPI_GENERIC_STATE *Scope; in AcpiPsCleanupScope() local
293 while (ParserState->Scope) in AcpiPsCleanupScope()
295 Scope = AcpiUtPopGenericState (&ParserState->Scope); in AcpiPsCleanupScope()
296 AcpiUtDeleteGenericState (Scope); in AcpiPsCleanupScope()