Lines Matching full:scope
3 * Module Name: psscope - Parser scope stack management routines
177 return (ParserState->Scope->ParseScope.Op);
187 * RETURN: Boolean, TRUE = scope completed.
190 * 1) AML pointer is at or beyond the end of the scope
191 * 2) The scope argument count has reached zero.
201 ((ParserState->Aml >= ParserState->Scope->ParseScope.ArgEnd ||
202 !ParserState->Scope->ParseScope.ArgCount)));
211 * Root - the Root Node of this new scope
215 * DESCRIPTION: Allocate and init a new scope object
224 ACPI_GENERIC_STATE *Scope;
230 Scope = AcpiUtCreateGenericState ();
231 if (!Scope)
236 Scope->Common.DescriptorType = ACPI_DESC_TYPE_STATE_RPSCOPE;
237 Scope->ParseScope.Op = RootOp;
238 Scope->ParseScope.ArgCount = ACPI_VAR_ARGS;
239 Scope->ParseScope.ArgEnd = ParserState->AmlEnd;
240 Scope->ParseScope.PkgEnd = ParserState->AmlEnd;
242 ParserState->Scope = Scope;
271 ACPI_GENERIC_STATE *Scope;
277 Scope = AcpiUtCreateGenericState ();
278 if (!Scope)
283 Scope->Common.DescriptorType = ACPI_DESC_TYPE_STATE_PSCOPE;
284 Scope->ParseScope.Op = Op;
285 Scope->ParseScope.ArgList = RemainingArgs;
286 Scope->ParseScope.ArgCount = ArgCount;
287 Scope->ParseScope.PkgEnd = ParserState->PkgEnd;
289 /* Push onto scope stack */
291 AcpiUtPushGenericState (&ParserState->Scope, Scope);
297 Scope->ParseScope.ArgEnd = ParserState->PkgEnd;
303 Scope->ParseScope.ArgEnd = ACPI_TO_POINTER (ACPI_MAX_PTR);
333 ACPI_GENERIC_STATE *Scope = ParserState->Scope;
339 /* Only pop the scope if there is in fact a next scope */
341 if (Scope->Common.Next)
343 Scope = AcpiUtPopGenericState (&ParserState->Scope);
347 *Op = Scope->ParseScope.Op;
348 *ArgList = Scope->ParseScope.ArgList;
349 *ArgCount = Scope->ParseScope.ArgCount;
350 ParserState->PkgEnd = Scope->ParseScope.PkgEnd;
352 /* All done with this scope state structure */
354 AcpiUtDeleteGenericState (Scope);
380 * root scope
388 ACPI_GENERIC_STATE *Scope;
399 /* Delete anything on the scope stack */
401 while (ParserState->Scope)
403 Scope = AcpiUtPopGenericState (&ParserState->Scope);
404 AcpiUtDeleteGenericState (Scope);