Lines Matching refs:scope
66 return (parser_state->scope->parse_scope.op); in acpi_ps_get_parent_scope()
87 ((parser_state->aml >= parser_state->scope->parse_scope.arg_end in acpi_ps_has_completed_scope()
88 || !parser_state->scope->parse_scope.arg_count))); in acpi_ps_has_completed_scope()
108 union acpi_generic_state *scope; in acpi_ps_init_scope() local
112 scope = acpi_ut_create_generic_state(); in acpi_ps_init_scope()
113 if (!scope) { in acpi_ps_init_scope()
117 scope->common.descriptor_type = ACPI_DESC_TYPE_STATE_RPSCOPE; in acpi_ps_init_scope()
118 scope->parse_scope.op = root_op; in acpi_ps_init_scope()
119 scope->parse_scope.arg_count = ACPI_VAR_ARGS; in acpi_ps_init_scope()
120 scope->parse_scope.arg_end = parser_state->aml_end; in acpi_ps_init_scope()
121 scope->parse_scope.pkg_end = parser_state->aml_end; in acpi_ps_init_scope()
123 parser_state->scope = scope; in acpi_ps_init_scope()
149 union acpi_generic_state *scope; in acpi_ps_push_scope() local
153 scope = acpi_ut_create_generic_state(); in acpi_ps_push_scope()
154 if (!scope) { in acpi_ps_push_scope()
158 scope->common.descriptor_type = ACPI_DESC_TYPE_STATE_PSCOPE; in acpi_ps_push_scope()
159 scope->parse_scope.op = op; in acpi_ps_push_scope()
160 scope->parse_scope.arg_list = remaining_args; in acpi_ps_push_scope()
161 scope->parse_scope.arg_count = arg_count; in acpi_ps_push_scope()
162 scope->parse_scope.pkg_end = parser_state->pkg_end; in acpi_ps_push_scope()
166 acpi_ut_push_generic_state(&parser_state->scope, scope); in acpi_ps_push_scope()
172 scope->parse_scope.arg_end = parser_state->pkg_end; in acpi_ps_push_scope()
176 scope->parse_scope.arg_end = ACPI_TO_POINTER(ACPI_MAX_PTR); in acpi_ps_push_scope()
202 union acpi_generic_state *scope = parser_state->scope; in acpi_ps_pop_scope() local
208 if (scope->common.next) { in acpi_ps_pop_scope()
209 scope = acpi_ut_pop_generic_state(&parser_state->scope); in acpi_ps_pop_scope()
213 *op = scope->parse_scope.op; in acpi_ps_pop_scope()
214 *arg_list = scope->parse_scope.arg_list; in acpi_ps_pop_scope()
215 *arg_count = scope->parse_scope.arg_count; in acpi_ps_pop_scope()
216 parser_state->pkg_end = scope->parse_scope.pkg_end; in acpi_ps_pop_scope()
220 acpi_ut_delete_generic_state(scope); in acpi_ps_pop_scope()
249 union acpi_generic_state *scope; in acpi_ps_cleanup_scope() local
259 while (parser_state->scope) { in acpi_ps_cleanup_scope()
260 scope = acpi_ut_pop_generic_state(&parser_state->scope); in acpi_ps_cleanup_scope()
261 acpi_ut_delete_generic_state(scope); in acpi_ps_cleanup_scope()