• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/acpi/acpica/

Lines Matching refs:scope

3  * Module Name: psscope - Parser scope stack management routines
66 return (parser_state->scope->parse_scope.op);
75 * RETURN: Boolean, TRUE = scope completed.
78 * 1) AML pointer is at or beyond the end of the scope
79 * 2) The scope argument count has reached zero.
87 ((parser_state->aml >= parser_state->scope->parse_scope.arg_end
88 || !parser_state->scope->parse_scope.arg_count)));
96 * Root - the Root Node of this new scope
100 * DESCRIPTION: Allocate and init a new scope object
108 union acpi_generic_state *scope;
112 scope = acpi_ut_create_generic_state();
113 if (!scope) {
117 scope->common.descriptor_type = ACPI_DESC_TYPE_STATE_RPSCOPE;
118 scope->parse_scope.op = root_op;
119 scope->parse_scope.arg_count = ACPI_VAR_ARGS;
120 scope->parse_scope.arg_end = parser_state->aml_end;
121 scope->parse_scope.pkg_end = parser_state->aml_end;
123 parser_state->scope = scope;
149 union acpi_generic_state *scope;
153 scope = acpi_ut_create_generic_state();
154 if (!scope) {
158 scope->common.descriptor_type = ACPI_DESC_TYPE_STATE_PSCOPE;
159 scope->parse_scope.op = op;
160 scope->parse_scope.arg_list = remaining_args;
161 scope->parse_scope.arg_count = arg_count;
162 scope->parse_scope.pkg_end = parser_state->pkg_end;
164 /* Push onto scope stack */
166 acpi_ut_push_generic_state(&parser_state->scope, scope);
172 scope->parse_scope.arg_end = parser_state->pkg_end;
176 scope->parse_scope.arg_end = ACPI_TO_POINTER(ACPI_MAX_PTR);
202 union acpi_generic_state *scope = parser_state->scope;
206 /* Only pop the scope if there is in fact a next scope */
208 if (scope->common.next) {
209 scope = acpi_ut_pop_generic_state(&parser_state->scope);
213 *op = scope->parse_scope.op;
214 *arg_list = scope->parse_scope.arg_list;
215 *arg_count = scope->parse_scope.arg_count;
216 parser_state->pkg_end = scope->parse_scope.pkg_end;
218 /* All done with this scope state structure */
220 acpi_ut_delete_generic_state(scope);
243 * root scope
249 union acpi_generic_state *scope;
257 /* Delete anything on the scope stack */
259 while (parser_state->scope) {
260 scope = acpi_ut_pop_generic_state(&parser_state->scope);
261 acpi_ut_delete_generic_state(scope);