Lines Matching refs:scope

4  * Module Name: psscope - Parser scope stack management routines
32 return (parser_state->scope->parse_scope.op);
41 * RETURN: Boolean, TRUE = scope completed.
44 * 1) AML pointer is at or beyond the end of the scope
45 * 2) The scope argument count has reached zero.
53 ((parser_state->aml >= parser_state->scope->parse_scope.arg_end
54 || !parser_state->scope->parse_scope.arg_count)));
62 * root - the Root Node of this new scope
66 * DESCRIPTION: Allocate and init a new scope object
74 union acpi_generic_state *scope;
78 scope = acpi_ut_create_generic_state();
79 if (!scope) {
83 scope->common.descriptor_type = ACPI_DESC_TYPE_STATE_RPSCOPE;
84 scope->parse_scope.op = root_op;
85 scope->parse_scope.arg_count = ACPI_VAR_ARGS;
86 scope->parse_scope.arg_end = parser_state->aml_end;
87 scope->parse_scope.pkg_end = parser_state->aml_end;
89 parser_state->scope = scope;
115 union acpi_generic_state *scope;
119 scope = acpi_ut_create_generic_state();
120 if (!scope) {
124 scope->common.descriptor_type = ACPI_DESC_TYPE_STATE_PSCOPE;
125 scope->parse_scope.op = op;
126 scope->parse_scope.arg_list = remaining_args;
127 scope->parse_scope.arg_count = arg_count;
128 scope->parse_scope.pkg_end = parser_state->pkg_end;
130 /* Push onto scope stack */
132 acpi_ut_push_generic_state(&parser_state->scope, scope);
138 scope->parse_scope.arg_end = parser_state->pkg_end;
142 scope->parse_scope.arg_end = ACPI_TO_POINTER(ACPI_MAX_PTR);
168 union acpi_generic_state *scope = parser_state->scope;
172 /* Only pop the scope if there is in fact a next scope */
174 if (scope->common.next) {
175 scope = acpi_ut_pop_generic_state(&parser_state->scope);
179 *op = scope->parse_scope.op;
180 *arg_list = scope->parse_scope.arg_list;
181 *arg_count = scope->parse_scope.arg_count;
182 parser_state->pkg_end = scope->parse_scope.pkg_end;
184 /* All done with this scope state structure */
186 acpi_ut_delete_generic_state(scope);
209 * root scope
215 union acpi_generic_state *scope;
223 /* Delete anything on the scope stack */
225 while (parser_state->scope) {
226 scope = acpi_ut_pop_generic_state(&parser_state->scope);
227 acpi_ut_delete_generic_state(scope);