Searched refs:walk_state (Results 1 - 25 of 47) sorted by relevance

12

/drivers/acpi/acpica/
H A Ddswstate.c55 acpi_ds_result_stack_push(struct acpi_walk_state *walk_state);
56 static acpi_status acpi_ds_result_stack_pop(struct acpi_walk_state *walk_state);
63 * walk_state - Current Walk state
73 struct acpi_walk_state *walk_state)
81 state = walk_state->results;
85 if (state && !walk_state->result_count) {
90 if (!state && walk_state->result_count) {
99 walk_state));
105 walk_state->result_count--;
106 index = (u32)walk_state
72 acpi_ds_result_pop(union acpi_operand_object **object, struct acpi_walk_state *walk_state) argument
146 acpi_ds_result_push(union acpi_operand_object * object, struct acpi_walk_state * walk_state) argument
217 acpi_ds_result_stack_push(struct acpi_walk_state *walk_state) argument
262 acpi_ds_result_stack_pop(struct acpi_walk_state *walk_state) argument
310 acpi_ds_obj_stack_push(void *object, struct acpi_walk_state * walk_state) argument
357 acpi_ds_obj_stack_pop(u32 pop_count, struct acpi_walk_state * walk_state) argument
402 acpi_ds_obj_stack_pop_and_delete(u32 pop_count, struct acpi_walk_state *walk_state) argument
475 acpi_ds_push_walk_state(struct acpi_walk_state *walk_state, struct acpi_thread_state *thread) argument
502 struct acpi_walk_state *walk_state; local
548 struct acpi_walk_state *walk_state; local
599 acpi_ds_init_aml_walk(struct acpi_walk_state *walk_state, union acpi_parse_object *op, struct acpi_namespace_node *method_node, u8 * aml_start, u32 aml_length, struct acpi_evaluate_info *info, u8 pass_number) argument
704 acpi_ds_delete_walk_state(struct acpi_walk_state *walk_state) argument
[all...]
H A Ddscontrol.c68 acpi_ds_exec_begin_control_op(struct acpi_walk_state *walk_state, argument
77 op, op->common.aml_opcode, walk_state));
85 if (walk_state->control_state) {
86 if (walk_state->control_state->control.
88 (walk_state->parser_state.aml - 1)) {
92 walk_state->control_state->common.state =
116 walk_state->parser_state.aml - 1;
118 walk_state->parser_state.pkg_end;
123 acpi_ut_push_generic_state(&walk_state->control_state,
132 if (walk_state
165 acpi_ds_exec_end_control_op(struct acpi_walk_state * walk_state, union acpi_parse_object * op) argument
[all...]
H A Dpsobject.c53 static acpi_status acpi_ps_get_aml_opcode(struct acpi_walk_state *walk_state);
59 * PARAMETERS: walk_state - Current state
67 static acpi_status acpi_ps_get_aml_opcode(struct acpi_walk_state *walk_state) argument
70 ACPI_FUNCTION_TRACE_PTR(ps_get_aml_opcode, walk_state);
72 walk_state->aml_offset =
73 (u32)ACPI_PTR_DIFF(walk_state->parser_state.aml,
74 walk_state->parser_state.aml_start);
75 walk_state->opcode = acpi_ps_peek_opcode(&(walk_state->parser_state));
83 walk_state
170 acpi_ps_build_named_op(struct acpi_walk_state *walk_state, u8 *aml_op_start, union acpi_parse_object *unnamed_op, union acpi_parse_object **op) argument
277 acpi_ps_create_op(struct acpi_walk_state *walk_state, u8 *aml_op_start, union acpi_parse_object **new_op) argument
385 acpi_ps_complete_op(struct acpi_walk_state *walk_state, union acpi_parse_object **op, acpi_status status) argument
559 acpi_ps_complete_final_op(struct acpi_walk_state *walk_state, union acpi_parse_object *op, acpi_status status) argument
[all...]
H A Dpsloop.c63 acpi_ps_get_arguments(struct acpi_walk_state *walk_state,
74 * PARAMETERS: walk_state - Current state
85 acpi_ps_get_arguments(struct acpi_walk_state *walk_state, argument
92 ACPI_FUNCTION_TRACE_PTR(ps_get_arguments, walk_state);
103 acpi_ps_get_next_simple_arg(&(walk_state->parser_state),
104 GET_CURRENT_ARG_TYPE(walk_state->
112 acpi_ps_get_next_namepath(walk_state,
113 &(walk_state->parser_state), op,
119 walk_state->arg_types = 0;
126 while (GET_CURRENT_ARG_TYPE(walk_state
390 acpi_ps_parse_loop(struct acpi_walk_state *walk_state) argument
[all...]
H A Ddswload.c63 * PARAMETERS: walk_state - Current state of the parse tree walk
72 acpi_ds_init_callbacks(struct acpi_walk_state *walk_state, u32 pass_number) argument
80 walk_state->parse_flags = ACPI_PARSE_LOAD_PASS1 |
82 walk_state->descending_callback = NULL;
83 walk_state->ascending_callback = NULL;
90 walk_state->parse_flags = ACPI_PARSE_LOAD_PASS1 |
92 walk_state->descending_callback = acpi_ds_load1_begin_op;
93 walk_state->ascending_callback = acpi_ds_load1_end_op;
100 walk_state->parse_flags = ACPI_PARSE_LOAD_PASS1 |
102 walk_state
140 acpi_ds_load1_begin_op(struct acpi_walk_state * walk_state, union acpi_parse_object ** out_op) argument
422 acpi_ds_load1_end_op(struct acpi_walk_state *walk_state) argument
[all...]
H A Ddswexec.c79 * PARAMETERS: walk_state - Current state of the parse tree walk
89 acpi_ds_get_predicate_value(struct acpi_walk_state *walk_state, argument
96 ACPI_FUNCTION_TRACE_PTR(ds_get_predicate_value, walk_state);
98 walk_state->control_state->common.state = 0;
101 status = acpi_ds_result_pop(&obj_desc, walk_state);
109 status = acpi_ds_create_operand(walk_state, walk_state->op, 0);
115 acpi_ex_resolve_to_value(&walk_state->operands[0],
116 walk_state);
121 obj_desc = walk_state
213 acpi_ds_exec_begin_op(struct acpi_walk_state *walk_state, union acpi_parse_object **out_op) argument
357 acpi_ds_exec_end_op(struct acpi_walk_state *walk_state) argument
[all...]
H A Dacdispat.h69 acpi_ds_exec_begin_control_op(struct acpi_walk_state *walk_state,
73 acpi_ds_exec_end_control_op(struct acpi_walk_state *walk_state,
80 acpi_ds_eval_buffer_field_operands(struct acpi_walk_state *walk_state,
84 acpi_ds_eval_region_operands(struct acpi_walk_state *walk_state,
88 acpi_ds_eval_table_region_operands(struct acpi_walk_state *walk_state,
92 acpi_ds_eval_data_object_operands(struct acpi_walk_state *walk_state,
97 acpi_ds_eval_bank_field_operands(struct acpi_walk_state *walk_state,
106 acpi_ds_get_predicate_value(struct acpi_walk_state *walk_state,
110 acpi_ds_exec_begin_op(struct acpi_walk_state *walk_state,
121 struct acpi_walk_state *walk_state);
[all...]
H A Ddswload2.c60 * PARAMETERS: walk_state - Current state of the parse tree walk
69 acpi_ds_load2_begin_op(struct acpi_walk_state *walk_state, argument
81 op = walk_state->op;
83 walk_state));
86 if ((walk_state->control_state) &&
87 (walk_state->control_state->common.state ==
92 status = acpi_ds_exec_begin_op(walk_state, out_op);
98 if ((!(walk_state->op_info->flags & AML_NSOPCODE) &&
99 (walk_state->opcode != AML_INT_NAMEPATH_OP)) ||
100 (!(walk_state
372 acpi_ds_load2_end_op(struct acpi_walk_state *walk_state) argument
[all...]
H A Ddswscope.c55 * PARAMETERS: walk_state - Current state
63 void acpi_ds_scope_stack_clear(struct acpi_walk_state *walk_state) argument
69 while (walk_state->scope_info) {
73 scope_info = walk_state->scope_info;
74 walk_state->scope_info = scope_info->scope.next;
90 * walk_state - Current state
102 struct acpi_walk_state *walk_state)
136 walk_state->scope_depth++;
140 (u32) walk_state->scope_depth));
142 old_scope_info = walk_state
100 acpi_ds_scope_stack_push(struct acpi_namespace_node *node, acpi_object_type type, struct acpi_walk_state *walk_state) argument
177 acpi_ds_scope_stack_pop(struct acpi_walk_state *walk_state) argument
[all...]
H A Dpsparse.c123 * PARAMETERS: walk_state - Current State
133 acpi_ps_complete_this_op(struct acpi_walk_state * walk_state, argument
152 if (((walk_state->parse_flags & ACPI_PARSE_TREE_MASK) !=
154 || (walk_state->op_info->class == AML_CLASS_ARGUMENT)) {
219 && (walk_state->pass_number <=
312 * PARAMETERS: walk_state - Current state
324 acpi_ps_next_parse_state(struct acpi_walk_state *walk_state, argument
328 struct acpi_parse_state *parser_state = &walk_state->parser_state;
345 parser_state->aml = walk_state->aml_last_while;
346 walk_state
435 acpi_ps_parse_aml(struct acpi_walk_state *walk_state) argument
[all...]
H A Dexoparg2.c79 * PARAMETERS: walk_state - Current walk state
89 acpi_status acpi_ex_opcode_2A_0T_0R(struct acpi_walk_state *walk_state) argument
91 union acpi_operand_object **operand = &walk_state->operands[0];
97 acpi_ps_get_opcode_name(walk_state->opcode));
101 switch (walk_state->opcode) {
136 walk_state->opcode));
147 * PARAMETERS: walk_state - Current walk state
156 acpi_status acpi_ex_opcode_2A_2T_1R(struct acpi_walk_state *walk_state) argument
158 union acpi_operand_object **operand = &walk_state->operands[0];
164 acpi_ps_get_opcode_name(walk_state
254 acpi_ex_opcode_2A_1T_1R(struct acpi_walk_state *walk_state) argument
489 acpi_ex_opcode_2A_0T_1R(struct acpi_walk_state *walk_state) argument
[all...]
H A Ddsutils.c60 * PARAMETERS: walk_state - Current State
70 void acpi_ds_clear_implicit_return(struct acpi_walk_state *walk_state) argument
81 if (walk_state->implicit_return_obj) {
89 walk_state->implicit_return_obj));
91 acpi_ut_remove_reference(walk_state->implicit_return_obj);
92 walk_state->implicit_return_obj = NULL;
102 * walk_state - Current State
117 struct acpi_walk_state *walk_state, u8 add_reference)
131 return_desc, walk_state->implicit_return_obj));
139 if (walk_state
116 acpi_ds_do_implicit_return(union acpi_operand_object *return_desc, struct acpi_walk_state *walk_state, u8 add_reference) argument
170 acpi_ds_is_result_used(union acpi_parse_object * op, struct acpi_walk_state * walk_state) argument
339 acpi_ds_delete_result_if_not_used(union acpi_parse_object *op, union acpi_operand_object *result_obj, struct acpi_walk_state *walk_state) argument
384 acpi_ds_resolve_operands(struct acpi_walk_state *walk_state) argument
420 acpi_ds_clear_operands(struct acpi_walk_state *walk_state) argument
460 acpi_ds_create_operand(struct acpi_walk_state *walk_state, union acpi_parse_object *arg, u32 arg_index) argument
700 acpi_ds_create_operands(struct acpi_walk_state *walk_state, union acpi_parse_object *first_arg) argument
782 acpi_ds_evaluate_name_path(struct acpi_walk_state *walk_state) argument
[all...]
H A Dexoparg3.c78 * PARAMETERS: walk_state - Current walk state
85 acpi_status acpi_ex_opcode_3A_0T_0R(struct acpi_walk_state *walk_state) argument
87 union acpi_operand_object **operand = &walk_state->operands[0];
92 acpi_ps_get_opcode_name(walk_state->opcode));
94 switch (walk_state->opcode) {
122 walk_state->opcode));
136 * PARAMETERS: walk_state - Current walk state
144 acpi_status acpi_ex_opcode_3A_1T_1R(struct acpi_walk_state *walk_state) argument
146 union acpi_operand_object **operand = &walk_state->operands[0];
154 acpi_ps_get_opcode_name(walk_state
[all...]
H A Ddsmthdat.c56 u32 index, struct acpi_walk_state *walk_state);
62 struct acpi_walk_state *walk_state);
67 u32 index, struct acpi_walk_state *walk_state);
74 * PARAMETERS: walk_state - Current walk state object
83 * NOTES: walk_state fields are initialized to zero by the
91 void acpi_ds_method_data_init(struct acpi_walk_state *walk_state) argument
100 ACPI_MOVE_32_TO_32(&walk_state->arguments[i].name,
102 walk_state->arguments[i].name.integer |= (i << 24);
103 walk_state->arguments[i].descriptor_type = ACPI_DESC_TYPE_NAMED;
104 walk_state
137 acpi_ds_method_data_delete_all(struct acpi_walk_state *walk_state) argument
193 acpi_ds_method_data_init_args(union acpi_operand_object **params, u32 max_param_count, struct acpi_walk_state *walk_state) argument
248 acpi_ds_method_data_get_node(u8 type, u32 index, struct acpi_walk_state *walk_state, struct acpi_namespace_node **node) argument
314 acpi_ds_method_data_set_value(u8 type, u32 index, union acpi_operand_object *object, struct acpi_walk_state *walk_state) argument
368 acpi_ds_method_data_get_value(u8 type, u32 index, struct acpi_walk_state *walk_state, union acpi_operand_object **dest_desc) argument
474 acpi_ds_method_data_delete_value(u8 type, u32 index, struct acpi_walk_state *walk_state) argument
533 acpi_ds_store_object_to_local(u8 type, u32 index, union acpi_operand_object *obj_desc, struct acpi_walk_state *walk_state) argument
684 acpi_ds_method_data_get_type(u16 opcode, u32 index, struct acpi_walk_state *walk_state) argument
[all...]
H A Ddsmethod.c60 acpi_ds_detect_named_opcodes(struct acpi_walk_state *walk_state,
96 struct acpi_walk_state *walk_state; local
116 walk_state =
118 if (!walk_state) {
123 acpi_ds_init_aml_walk(walk_state, op, node,
127 acpi_ds_delete_walk_state(walk_state);
131 walk_state->descending_callback = acpi_ds_detect_named_opcodes;
135 status = acpi_ps_parse_aml(walk_state);
148 * PARAMETERS: walk_state - Current state of the parse tree walk
160 acpi_ds_detect_named_opcodes(struct acpi_walk_state *walk_state, argument
216 acpi_ds_method_error(acpi_status status, struct acpi_walk_state * walk_state) argument
320 acpi_ds_begin_method_execution(struct acpi_namespace_node *method_node, union acpi_operand_object *obj_desc, struct acpi_walk_state *walk_state) argument
600 acpi_ds_restart_control_method(struct acpi_walk_state *walk_state, union acpi_operand_object *return_desc) argument
690 acpi_ds_terminate_control_method(union acpi_operand_object *method_desc, struct acpi_walk_state *walk_state) argument
[all...]
H A Dexoparg1.c80 * PARAMETERS: walk_state - Current state (contains AML opcode)
87 acpi_status acpi_ex_opcode_0A_0T_1R(struct acpi_walk_state *walk_state) argument
93 acpi_ps_get_opcode_name(walk_state->opcode));
97 switch (walk_state->opcode) {
113 walk_state->opcode));
122 if ((ACPI_FAILURE(status)) || walk_state->result_obj) {
124 walk_state->result_obj = NULL;
128 walk_state->result_obj = return_desc;
138 * PARAMETERS: walk_state - Current state (contains AML opcode)
147 acpi_status acpi_ex_opcode_1A_0T_0R(struct acpi_walk_state *walk_state) argument
213 acpi_ex_opcode_1A_1T_0R(struct acpi_walk_state *walk_state) argument
255 acpi_ex_opcode_1A_1T_1R(struct acpi_walk_state *walk_state) argument
583 acpi_ex_opcode_1A_0T_1R(struct acpi_walk_state *walk_state) argument
[all...]
H A Dnsparse.c75 struct acpi_walk_state *walk_state; local
95 walk_state = acpi_ds_create_walk_state(owner_id, NULL, NULL, NULL);
96 if (!walk_state) {
103 acpi_ds_delete_walk_state(walk_state);
115 status = acpi_ds_init_aml_walk(walk_state, parse_root, NULL,
121 acpi_ds_delete_walk_state(walk_state);
130 walk_state);
132 acpi_ds_delete_walk_state(walk_state);
141 status = acpi_ps_parse_aml(walk_state);
H A Dpsxface.c219 struct acpi_walk_state *walk_state; local
268 walk_state =
271 if (!walk_state) {
276 status = acpi_ds_init_aml_walk(walk_state, op, info->node,
281 acpi_ds_delete_walk_state(walk_state);
286 walk_state->parse_flags |= ACPI_PARSE_MODULE_LEVEL;
293 info->obj_desc->method.dispatch.implementation(walk_state);
294 info->return_object = walk_state->return_desc;
298 acpi_ds_scope_stack_clear(walk_state);
299 acpi_ps_cleanup_scope(&walk_state
[all...]
H A Ddsfield.c62 struct acpi_walk_state *walk_state,
68 struct acpi_walk_state *walk_state,
79 * ` walk_state - Current method state
93 struct acpi_walk_state *walk_state,
109 status = acpi_ns_lookup(walk_state->scope_info, path, ACPI_TYPE_REGION,
111 walk_state, node);
134 * walk_state - Current state
150 struct acpi_walk_state *walk_state)
179 if (walk_state->deferred_node) {
180 node = walk_state
90 acpi_ds_create_external_region(acpi_status lookup_status, union acpi_parse_object *op, char *path, struct acpi_walk_state *walk_state, struct acpi_namespace_node **node) argument
149 acpi_ds_create_buffer_field(union acpi_parse_object *op, struct acpi_walk_state *walk_state) argument
286 acpi_ds_get_field_names(struct acpi_create_field_info *info, struct acpi_walk_state *walk_state, union acpi_parse_object *arg) argument
473 acpi_ds_create_field(union acpi_parse_object *op, struct acpi_namespace_node *region_node, struct acpi_walk_state *walk_state) argument
538 acpi_ds_init_field_objects(union acpi_parse_object *op, struct acpi_walk_state *walk_state) argument
656 acpi_ds_create_bank_field(union acpi_parse_object *op, struct acpi_namespace_node *region_node, struct acpi_walk_state *walk_state) argument
746 acpi_ds_create_index_field(union acpi_parse_object *op, struct acpi_namespace_node *region_node, struct acpi_walk_state *walk_state) argument
[all...]
H A Ddsopcode.c288 * PARAMETERS: walk_state - Current walk
299 acpi_ds_eval_buffer_field_operands(struct acpi_walk_state *walk_state, argument
321 status = acpi_ds_create_operands(walk_state, next_op);
334 ACPI_WALK_OPERANDS, walk_state);
351 walk_state->operands[0],
352 walk_state->operands[1],
353 walk_state->operands[2],
354 walk_state->operands[3]);
360 walk_state->operands[0],
361 walk_state
383 acpi_ds_eval_region_operands(struct acpi_walk_state *walk_state, union acpi_parse_object *op) argument
475 acpi_ds_eval_table_region_operands(struct acpi_walk_state *walk_state, union acpi_parse_object *op) argument
574 acpi_ds_eval_data_object_operands(struct acpi_walk_state *walk_state, union acpi_parse_object *op, union acpi_operand_object *obj_desc) argument
677 acpi_ds_eval_bank_field_operands(struct acpi_walk_state *walk_state, union acpi_parse_object *op) argument
[all...]
H A Dacinterp.h47 #define ACPI_WALK_OPERANDS (&(walk_state->operands [walk_state->num_operands -1]))
125 struct acpi_walk_state *walk_state);
159 acpi_ex_read_data_from_field(struct acpi_walk_state *walk_state,
189 struct acpi_walk_state *walk_state);
195 struct acpi_walk_state *walk_state);
201 struct acpi_walk_state *walk_state);
214 acpi_status acpi_ex_create_mutex(struct acpi_walk_state *walk_state);
216 acpi_status acpi_ex_create_processor(struct acpi_walk_state *walk_state);
218 acpi_status acpi_ex_create_power_resource(struct acpi_walk_state *walk_state);
[all...]
H A Dexcreate.c57 * PARAMETERS: walk_state - Current state, contains operands
64 acpi_status acpi_ex_create_alias(struct acpi_walk_state *walk_state) argument
74 alias_node = (struct acpi_namespace_node *)walk_state->operands[0];
75 target_node = (struct acpi_namespace_node *)walk_state->operands[1];
159 * PARAMETERS: walk_state - Current state
167 acpi_status acpi_ex_create_event(struct acpi_walk_state *walk_state) argument
193 acpi_ns_attach_object((struct acpi_namespace_node *)walk_state->
209 * PARAMETERS: walk_state - Current state
219 acpi_status acpi_ex_create_mutex(struct acpi_walk_state *walk_state) argument
243 obj_desc->mutex.sync_level = (u8)walk_state
276 acpi_ex_create_region(u8 * aml_start, u32 aml_length, u8 space_id, struct acpi_walk_state *walk_state) argument
372 acpi_ex_create_processor(struct acpi_walk_state *walk_state) argument
419 acpi_ex_create_power_resource(struct acpi_walk_state *walk_state) argument
467 acpi_ex_create_method(u8 * aml_start, u32 aml_length, struct acpi_walk_state *walk_state) argument
[all...]
H A Dacparser.h90 acpi_ps_get_next_namepath(struct acpi_walk_state *walk_state,
95 acpi_ps_get_next_arg(struct acpi_walk_state *walk_state,
111 acpi_ps_build_named_op(struct acpi_walk_state *walk_state,
117 acpi_ps_create_op(struct acpi_walk_state *walk_state,
121 acpi_ps_complete_op(struct acpi_walk_state *walk_state,
125 acpi_ps_complete_final_op(struct acpi_walk_state *walk_state,
140 acpi_status acpi_ps_parse_aml(struct acpi_walk_state *walk_state);
147 acpi_ps_complete_this_op(struct acpi_walk_state *walk_state,
151 acpi_ps_next_parse_state(struct acpi_walk_state *walk_state,
158 acpi_status acpi_ps_parse_loop(struct acpi_walk_state *walk_state);
[all...]
H A Dexstore.c58 struct acpi_walk_state *walk_state);
63 struct acpi_walk_state *walk_state);
73 * walk_state - Current walk state
88 struct acpi_walk_state *walk_state)
112 dest_desc, walk_state,
162 object, walk_state,
172 walk_state);
183 source_desc, walk_state);
218 * walk_state - Current walk state
229 struct acpi_walk_state *walk_state)
86 acpi_ex_store(union acpi_operand_object *source_desc, union acpi_operand_object *dest_desc, struct acpi_walk_state *walk_state) argument
227 acpi_ex_store_object_to_index(union acpi_operand_object *source_desc, union acpi_operand_object *index_desc, struct acpi_walk_state *walk_state) argument
394 acpi_ex_store_object_to_node(union acpi_operand_object *source_desc, struct acpi_namespace_node *node, struct acpi_walk_state *walk_state, u8 implicit_conversion) argument
528 acpi_ex_store_direct_to_node(union acpi_operand_object *source_desc, struct acpi_namespace_node *node, struct acpi_walk_state *walk_state) argument
[all...]
H A Dexoparg6.c202 * PARAMETERS: walk_state - Current walk state
210 acpi_status acpi_ex_opcode_6A_0T_1R(struct acpi_walk_state * walk_state) argument
212 union acpi_operand_object **operand = &walk_state->operands[0];
219 acpi_ps_get_opcode_name(walk_state->opcode));
221 switch (walk_state->opcode) {
306 status = acpi_ex_load_table_op(walk_state, &return_desc);
312 walk_state->opcode));
328 walk_state->result_obj = return_desc;

Completed in 159 milliseconds

12