/linux-6.6.21/drivers/acpi/acpica/ |
D | dswstate.c | 21 acpi_ds_result_stack_push(struct acpi_walk_state *walk_state); 22 static acpi_status acpi_ds_result_stack_pop(struct acpi_walk_state *walk_state); 39 struct acpi_walk_state *walk_state) in acpi_ds_result_pop() argument 47 state = walk_state->results; in acpi_ds_result_pop() 51 if (state && !walk_state->result_count) { in acpi_ds_result_pop() 56 if (!state && walk_state->result_count) { in acpi_ds_result_pop() 65 walk_state)); in acpi_ds_result_pop() 71 walk_state->result_count--; in acpi_ds_result_pop() 72 index = (u32)walk_state->result_count % ACPI_RESULTS_FRAME_OBJ_NUM; in acpi_ds_result_pop() 78 walk_state)); in acpi_ds_result_pop() [all …]
|
D | psloop.c | 32 acpi_ps_get_arguments(struct acpi_walk_state *walk_state, 50 acpi_ps_get_arguments(struct acpi_walk_state *walk_state, in acpi_ps_get_arguments() argument 56 ACPI_FUNCTION_TRACE_PTR(ps_get_arguments, walk_state); in acpi_ps_get_arguments() 71 acpi_ps_get_next_simple_arg(&(walk_state->parser_state), in acpi_ps_get_arguments() 72 GET_CURRENT_ARG_TYPE(walk_state-> in acpi_ps_get_arguments() 79 status = acpi_ps_get_next_namepath(walk_state, in acpi_ps_get_arguments() 80 &(walk_state->parser_state), in acpi_ps_get_arguments() 87 walk_state->arg_types = 0; in acpi_ps_get_arguments() 94 while (GET_CURRENT_ARG_TYPE(walk_state->arg_types) && in acpi_ps_get_arguments() 95 !walk_state->arg_count) { in acpi_ps_get_arguments() [all …]
|
D | psobject.c | 21 static acpi_status acpi_ps_get_aml_opcode(struct acpi_walk_state *walk_state); 35 static acpi_status acpi_ps_get_aml_opcode(struct acpi_walk_state *walk_state) in acpi_ps_get_aml_opcode() argument 39 ACPI_FUNCTION_TRACE_PTR(ps_get_aml_opcode, walk_state); in acpi_ps_get_aml_opcode() 41 walk_state->aml = walk_state->parser_state.aml; in acpi_ps_get_aml_opcode() 42 walk_state->opcode = acpi_ps_peek_opcode(&(walk_state->parser_state)); in acpi_ps_get_aml_opcode() 50 walk_state->op_info = acpi_ps_get_opcode_info(walk_state->opcode); in acpi_ps_get_aml_opcode() 52 switch (walk_state->op_info->class) { in acpi_ps_get_aml_opcode() 59 walk_state->opcode = AML_INT_NAMEPATH_OP; in acpi_ps_get_aml_opcode() 60 walk_state->arg_types = ARGP_NAMESTRING; in acpi_ps_get_aml_opcode() 67 if (walk_state->pass_number == 2) { in acpi_ps_get_aml_opcode() [all …]
|
D | dswexec.c | 58 acpi_ds_get_predicate_value(struct acpi_walk_state *walk_state, in acpi_ds_get_predicate_value() argument 65 ACPI_FUNCTION_TRACE_PTR(ds_get_predicate_value, walk_state); in acpi_ds_get_predicate_value() 67 walk_state->control_state->common.state = 0; in acpi_ds_get_predicate_value() 70 status = acpi_ds_result_pop(&obj_desc, walk_state); in acpi_ds_get_predicate_value() 78 status = acpi_ds_create_operand(walk_state, walk_state->op, 0); in acpi_ds_get_predicate_value() 84 acpi_ex_resolve_to_value(&walk_state->operands[0], in acpi_ds_get_predicate_value() 85 walk_state); in acpi_ds_get_predicate_value() 90 obj_desc = walk_state->operands[0]; in acpi_ds_get_predicate_value() 96 obj_desc, walk_state)); in acpi_ds_get_predicate_value() 114 obj_desc, walk_state, obj_desc->common.type)); in acpi_ds_get_predicate_value() [all …]
|
D | dswload2.c | 38 acpi_ds_load2_begin_op(struct acpi_walk_state *walk_state, in acpi_ds_load2_begin_op() argument 50 op = walk_state->op; in acpi_ds_load2_begin_op() 52 walk_state)); in acpi_ds_load2_begin_op() 55 if ((walk_state->control_state) && in acpi_ds_load2_begin_op() 56 (walk_state->control_state->common.state == in acpi_ds_load2_begin_op() 61 status = acpi_ds_exec_begin_op(walk_state, out_op); in acpi_ds_load2_begin_op() 67 if ((!(walk_state->op_info->flags & AML_NSOPCODE) && in acpi_ds_load2_begin_op() 68 (walk_state->opcode != AML_INT_NAMEPATH_OP)) || in acpi_ds_load2_begin_op() 69 (!(walk_state->op_info->flags & AML_NAMED))) { in acpi_ds_load2_begin_op() 75 if (walk_state->opcode == AML_INT_NAMEPATH_OP) { in acpi_ds_load2_begin_op() [all …]
|
D | dscontrol.c | 35 acpi_ds_exec_begin_control_op(struct acpi_walk_state *walk_state, in acpi_ds_exec_begin_control_op() argument 44 op, op->common.aml_opcode, walk_state)); in acpi_ds_exec_begin_control_op() 52 if (walk_state->control_state) { in acpi_ds_exec_begin_control_op() 53 if (walk_state->control_state->control. in acpi_ds_exec_begin_control_op() 55 (walk_state->parser_state.aml - 1)) { in acpi_ds_exec_begin_control_op() 59 walk_state->control_state->common.state = in acpi_ds_exec_begin_control_op() 83 walk_state->parser_state.aml - 1; in acpi_ds_exec_begin_control_op() 85 walk_state->parser_state.pkg_end; in acpi_ds_exec_begin_control_op() 92 acpi_ut_push_generic_state(&walk_state->control_state, in acpi_ds_exec_begin_control_op() 101 if (walk_state->last_predicate) { in acpi_ds_exec_begin_control_op() [all …]
|
D | dswload.c | 37 acpi_ds_init_callbacks(struct acpi_walk_state *walk_state, u32 pass_number) in acpi_ds_init_callbacks() argument 45 walk_state->parse_flags = ACPI_PARSE_LOAD_PASS1 | in acpi_ds_init_callbacks() 47 walk_state->descending_callback = NULL; in acpi_ds_init_callbacks() 48 walk_state->ascending_callback = NULL; in acpi_ds_init_callbacks() 55 walk_state->parse_flags = ACPI_PARSE_LOAD_PASS1 | in acpi_ds_init_callbacks() 57 walk_state->descending_callback = acpi_ds_load1_begin_op; in acpi_ds_init_callbacks() 58 walk_state->ascending_callback = acpi_ds_load1_end_op; in acpi_ds_init_callbacks() 65 walk_state->parse_flags = ACPI_PARSE_LOAD_PASS1 | in acpi_ds_init_callbacks() 67 walk_state->descending_callback = acpi_ds_load2_begin_op; in acpi_ds_init_callbacks() 68 walk_state->ascending_callback = acpi_ds_load2_end_op; in acpi_ds_init_callbacks() [all …]
|
D | acdispat.h | 35 acpi_ds_exec_begin_control_op(struct acpi_walk_state *walk_state, 39 acpi_ds_exec_end_control_op(struct acpi_walk_state *walk_state, 46 acpi_ds_eval_buffer_field_operands(struct acpi_walk_state *walk_state, 50 acpi_ds_eval_region_operands(struct acpi_walk_state *walk_state, 54 acpi_ds_eval_table_region_operands(struct acpi_walk_state *walk_state, 58 acpi_ds_eval_data_object_operands(struct acpi_walk_state *walk_state, 63 acpi_ds_eval_bank_field_operands(struct acpi_walk_state *walk_state, 72 acpi_ds_get_predicate_value(struct acpi_walk_state *walk_state, 76 acpi_ds_exec_begin_op(struct acpi_walk_state *walk_state, 87 struct acpi_walk_state *walk_state); [all …]
|
D | psparse.c | 100 acpi_ps_complete_this_op(struct acpi_walk_state *walk_state, in acpi_ps_complete_this_op() argument 117 acpi_ex_stop_trace_opcode(op, walk_state); in acpi_ps_complete_this_op() 121 if (((walk_state->parse_flags & ACPI_PARSE_TREE_MASK) != in acpi_ps_complete_this_op() 123 || (walk_state->op_info->class == AML_CLASS_ARGUMENT)) { in acpi_ps_complete_this_op() 190 && (walk_state->pass_number <= in acpi_ps_complete_this_op() 297 acpi_ps_next_parse_state(struct acpi_walk_state *walk_state, in acpi_ps_next_parse_state() argument 301 struct acpi_parse_state *parser_state = &walk_state->parser_state; in acpi_ps_next_parse_state() 318 parser_state->aml = walk_state->aml_last_while; in acpi_ps_next_parse_state() 319 walk_state->control_state->common.value = FALSE; in acpi_ps_next_parse_state() 325 parser_state->aml = walk_state->aml_last_while; in acpi_ps_next_parse_state() [all …]
|
D | dsutils.c | 34 void acpi_ds_clear_implicit_return(struct acpi_walk_state *walk_state) in acpi_ds_clear_implicit_return() argument 45 if (walk_state->implicit_return_obj) { in acpi_ds_clear_implicit_return() 53 walk_state->implicit_return_obj)); in acpi_ds_clear_implicit_return() 55 acpi_ut_remove_reference(walk_state->implicit_return_obj); in acpi_ds_clear_implicit_return() 56 walk_state->implicit_return_obj = NULL; in acpi_ds_clear_implicit_return() 80 struct acpi_walk_state *walk_state, u8 add_reference) in acpi_ds_do_implicit_return() argument 94 return_desc, walk_state->implicit_return_obj)); in acpi_ds_do_implicit_return() 102 if (walk_state->implicit_return_obj) { in acpi_ds_do_implicit_return() 103 if (walk_state->implicit_return_obj == return_desc) { in acpi_ds_do_implicit_return() 106 acpi_ds_clear_implicit_return(walk_state); in acpi_ds_do_implicit_return() [all …]
|
D | dsmethod.c | 24 acpi_ds_detect_named_opcodes(struct acpi_walk_state *walk_state, 60 struct acpi_walk_state *walk_state; in acpi_ds_auto_serialize_method() local 80 walk_state = in acpi_ds_auto_serialize_method() 82 if (!walk_state) { in acpi_ds_auto_serialize_method() 87 status = acpi_ds_init_aml_walk(walk_state, op, node, in acpi_ds_auto_serialize_method() 91 acpi_ds_delete_walk_state(walk_state); in acpi_ds_auto_serialize_method() 96 walk_state->descending_callback = acpi_ds_detect_named_opcodes; in acpi_ds_auto_serialize_method() 100 status = acpi_ps_parse_aml(walk_state); in acpi_ds_auto_serialize_method() 122 acpi_ds_detect_named_opcodes(struct acpi_walk_state *walk_state, in acpi_ds_detect_named_opcodes() argument 131 (walk_state->op_info-> in acpi_ds_detect_named_opcodes() [all …]
|
D | psxface.c | 88 struct acpi_walk_state *walk_state; in acpi_ps_execute_method() local 133 walk_state = in acpi_ps_execute_method() 136 if (!walk_state) { in acpi_ps_execute_method() 141 status = acpi_ds_init_aml_walk(walk_state, op, info->node, in acpi_ps_execute_method() 146 acpi_ds_delete_walk_state(walk_state); in acpi_ps_execute_method() 150 walk_state->method_pathname = info->full_pathname; in acpi_ps_execute_method() 151 walk_state->method_is_nested = FALSE; in acpi_ps_execute_method() 154 walk_state->parse_flags |= ACPI_PARSE_MODULE_LEVEL; in acpi_ps_execute_method() 161 info->obj_desc->method.dispatch.implementation(walk_state); in acpi_ps_execute_method() 162 info->return_object = walk_state->return_desc; in acpi_ps_execute_method() [all …]
|
D | dsmthdat.c | 20 u32 index, struct acpi_walk_state *walk_state); 26 struct acpi_walk_state *walk_state); 31 u32 index, struct acpi_walk_state *walk_state); 55 void acpi_ds_method_data_init(struct acpi_walk_state *walk_state) in acpi_ds_method_data_init() argument 64 ACPI_MOVE_32_TO_32(&walk_state->arguments[i].name, in acpi_ds_method_data_init() 67 walk_state->arguments[i].name.integer |= (i << 24); in acpi_ds_method_data_init() 68 walk_state->arguments[i].descriptor_type = ACPI_DESC_TYPE_NAMED; in acpi_ds_method_data_init() 69 walk_state->arguments[i].type = ACPI_TYPE_ANY; in acpi_ds_method_data_init() 70 walk_state->arguments[i].flags = ANOBJ_METHOD_ARG; in acpi_ds_method_data_init() 76 ACPI_MOVE_32_TO_32(&walk_state->local_variables[i].name, in acpi_ds_method_data_init() [all …]
|
D | exoparg2.c | 55 acpi_status acpi_ex_opcode_2A_0T_0R(struct acpi_walk_state *walk_state) in acpi_ex_opcode_2A_0T_0R() argument 57 union acpi_operand_object **operand = &walk_state->operands[0]; in acpi_ex_opcode_2A_0T_0R() 63 acpi_ps_get_opcode_name(walk_state->opcode)); in acpi_ex_opcode_2A_0T_0R() 67 switch (walk_state->opcode) { in acpi_ex_opcode_2A_0T_0R() 102 walk_state->opcode)); in acpi_ex_opcode_2A_0T_0R() 122 acpi_status acpi_ex_opcode_2A_2T_1R(struct acpi_walk_state *walk_state) in acpi_ex_opcode_2A_2T_1R() argument 124 union acpi_operand_object **operand = &walk_state->operands[0]; in acpi_ex_opcode_2A_2T_1R() 130 acpi_ps_get_opcode_name(walk_state->opcode)); in acpi_ex_opcode_2A_2T_1R() 134 switch (walk_state->opcode) { in acpi_ex_opcode_2A_2T_1R() 167 walk_state->opcode)); in acpi_ex_opcode_2A_2T_1R() [all …]
|
D | exoparg1.c | 53 acpi_status acpi_ex_opcode_0A_0T_1R(struct acpi_walk_state *walk_state) in acpi_ex_opcode_0A_0T_1R() argument 59 acpi_ps_get_opcode_name(walk_state->opcode)); in acpi_ex_opcode_0A_0T_1R() 63 switch (walk_state->opcode) { in acpi_ex_opcode_0A_0T_1R() 79 walk_state->opcode)); in acpi_ex_opcode_0A_0T_1R() 88 if ((ACPI_FAILURE(status)) || walk_state->result_obj) { in acpi_ex_opcode_0A_0T_1R() 90 walk_state->result_obj = NULL; in acpi_ex_opcode_0A_0T_1R() 94 walk_state->result_obj = return_desc; in acpi_ex_opcode_0A_0T_1R() 113 acpi_status acpi_ex_opcode_1A_0T_0R(struct acpi_walk_state *walk_state) in acpi_ex_opcode_1A_0T_0R() argument 115 union acpi_operand_object **operand = &walk_state->operands[0]; in acpi_ex_opcode_1A_0T_0R() 119 acpi_ps_get_opcode_name(walk_state->opcode)); in acpi_ex_opcode_1A_0T_0R() [all …]
|
D | dsfield.c | 32 struct acpi_walk_state *walk_state, 38 struct acpi_walk_state *walk_state, 63 struct acpi_walk_state *walk_state, in acpi_ds_create_external_region() argument 80 status = acpi_ns_lookup(walk_state->scope_info, path, ACPI_TYPE_REGION, in acpi_ds_create_external_region() 82 walk_state, node); in acpi_ds_create_external_region() 121 struct acpi_walk_state *walk_state) in acpi_ds_create_buffer_field() argument 150 if (walk_state->deferred_node) { in acpi_ds_create_buffer_field() 151 node = walk_state->deferred_node; in acpi_ds_create_buffer_field() 155 if (!(walk_state->parse_flags & ACPI_PARSE_EXECUTE)) { in acpi_ds_create_buffer_field() 169 if (walk_state->method_node && in acpi_ds_create_buffer_field() [all …]
|
D | acinterp.h | 13 #define ACPI_WALK_OPERANDS (&(walk_state->operands [walk_state->num_operands -1])) 92 struct acpi_walk_state *walk_state); 104 struct acpi_walk_state *walk_state); 109 struct acpi_walk_state *walk_state); 113 struct acpi_walk_state *walk_state); 117 struct acpi_walk_state *walk_state); 151 acpi_ex_read_data_from_field(struct acpi_walk_state *walk_state, 181 struct acpi_walk_state *walk_state); 187 struct acpi_walk_state *walk_state); 193 struct acpi_walk_state *walk_state); [all …]
|
D | dsopcode.c | 268 acpi_ds_eval_buffer_field_operands(struct acpi_walk_state *walk_state, in acpi_ds_eval_buffer_field_operands() argument 290 status = acpi_ds_create_operands(walk_state, next_op); in acpi_ds_eval_buffer_field_operands() 304 walk_state); in acpi_ds_eval_buffer_field_operands() 321 walk_state->operands[0], in acpi_ds_eval_buffer_field_operands() 322 walk_state->operands[1], in acpi_ds_eval_buffer_field_operands() 323 walk_state->operands[2], in acpi_ds_eval_buffer_field_operands() 324 walk_state->operands[3]); in acpi_ds_eval_buffer_field_operands() 330 walk_state->operands[0], in acpi_ds_eval_buffer_field_operands() 331 walk_state->operands[1], NULL, in acpi_ds_eval_buffer_field_operands() 332 walk_state->operands[2]); in acpi_ds_eval_buffer_field_operands() [all …]
|
D | dswscope.c | 29 void acpi_ds_scope_stack_clear(struct acpi_walk_state *walk_state) in acpi_ds_scope_stack_clear() argument 35 while (walk_state->scope_info) { in acpi_ds_scope_stack_clear() 39 scope_info = walk_state->scope_info; in acpi_ds_scope_stack_clear() 40 walk_state->scope_info = scope_info->scope.next; in acpi_ds_scope_stack_clear() 69 struct acpi_walk_state *walk_state) in acpi_ds_scope_stack_push() argument 103 walk_state->scope_depth++; in acpi_ds_scope_stack_push() 107 (u32) walk_state->scope_depth)); in acpi_ds_scope_stack_push() 109 old_scope_info = walk_state->scope_info; in acpi_ds_scope_stack_push() 128 acpi_ut_push_generic_state(&walk_state->scope_info, scope_info); in acpi_ds_scope_stack_push() 144 acpi_status acpi_ds_scope_stack_pop(struct acpi_walk_state *walk_state) in acpi_ds_scope_stack_pop() argument [all …]
|
D | dbobject.c | 35 acpi_db_dump_method_info(acpi_status status, struct acpi_walk_state *walk_state) in acpi_db_dump_method_info() argument 40 node = walk_state->method_node; in acpi_db_dump_method_info() 56 if (walk_state->deferred_node) { in acpi_db_dump_method_info() 66 thread = walk_state->thread; in acpi_db_dump_method_info() 74 acpi_db_decode_locals(walk_state); in acpi_db_dump_method_info() 76 acpi_db_decode_arguments(walk_state); in acpi_db_dump_method_info() 206 struct acpi_walk_state *walk_state) in acpi_db_display_internal_object() argument 253 if (walk_state) { in acpi_db_display_internal_object() 254 obj_desc = walk_state->local_variables in acpi_db_display_internal_object() 266 if (walk_state) { in acpi_db_display_internal_object() [all …]
|
D | dbxface.c | 20 acpi_db_start_command(struct acpi_walk_state *walk_state, 24 void acpi_db_method_end(struct acpi_walk_state *walk_state); 29 *walk_state, 48 acpi_db_start_command(struct acpi_walk_state *walk_state, in acpi_db_start_command() argument 79 acpi_db_command_dispatch(acpi_gbl_db_line_buf, walk_state, in acpi_db_start_command() 105 void acpi_db_signal_break_point(struct acpi_walk_state *walk_state) in acpi_db_signal_break_point() argument 138 *walk_state, in acpi_db_get_display_op() argument 148 if ((walk_state->control_state) && in acpi_db_get_display_op() 149 (walk_state->control_state->common.state == in acpi_db_get_display_op() 202 acpi_db_single_step(struct acpi_walk_state *walk_state, in acpi_db_single_step() argument [all …]
|
D | excreate.c | 29 acpi_status acpi_ex_create_alias(struct acpi_walk_state *walk_state) in acpi_ex_create_alias() argument 39 alias_node = (struct acpi_namespace_node *)walk_state->operands[0]; in acpi_ex_create_alias() 40 target_node = (struct acpi_namespace_node *)walk_state->operands[1]; in acpi_ex_create_alias() 104 acpi_status acpi_ex_create_event(struct acpi_walk_state *walk_state) in acpi_ex_create_event() argument 130 walk_state->operands[0], obj_desc, in acpi_ex_create_event() 156 acpi_status acpi_ex_create_mutex(struct acpi_walk_state *walk_state) in acpi_ex_create_mutex() argument 180 obj_desc->mutex.sync_level = (u8)walk_state->operands[1]->integer.value; in acpi_ex_create_mutex() 182 (struct acpi_namespace_node *)walk_state->operands[0]; in acpi_ex_create_mutex() 215 u8 space_id, struct acpi_walk_state *walk_state) in acpi_ex_create_region() argument 226 node = walk_state->op->common.node; in acpi_ex_create_region() [all …]
|
D | exoparg3.c | 51 acpi_status acpi_ex_opcode_3A_0T_0R(struct acpi_walk_state *walk_state) in acpi_ex_opcode_3A_0T_0R() argument 53 union acpi_operand_object **operand = &walk_state->operands[0]; in acpi_ex_opcode_3A_0T_0R() 58 acpi_ps_get_opcode_name(walk_state->opcode)); in acpi_ex_opcode_3A_0T_0R() 60 switch (walk_state->opcode) { in acpi_ex_opcode_3A_0T_0R() 102 walk_state->opcode)); in acpi_ex_opcode_3A_0T_0R() 125 acpi_status acpi_ex_opcode_3A_1T_1R(struct acpi_walk_state *walk_state) in acpi_ex_opcode_3A_1T_1R() argument 127 union acpi_operand_object **operand = &walk_state->operands[0]; in acpi_ex_opcode_3A_1T_1R() 135 acpi_ps_get_opcode_name(walk_state->opcode)); in acpi_ex_opcode_3A_1T_1R() 137 switch (walk_state->opcode) { in acpi_ex_opcode_3A_1T_1R() 228 walk_state->opcode)); in acpi_ex_opcode_3A_1T_1R() [all …]
|
D | exstore.c | 24 struct acpi_walk_state *walk_state); 29 struct acpi_walk_state *walk_state); 54 struct acpi_walk_state *walk_state) in acpi_ex_store() argument 78 dest_desc, walk_state, in acpi_ex_store() 128 object, walk_state, in acpi_ex_store() 138 walk_state); in acpi_ex_store() 149 source_desc, walk_state); in acpi_ex_store() 195 struct acpi_walk_state *walk_state) in acpi_ex_store_object_to_index() argument 235 walk_state); in acpi_ex_store_object_to_index() 363 struct acpi_walk_state *walk_state, in acpi_ex_store_object_to_node() argument [all …]
|
D | dbmethod.c | 43 struct acpi_walk_state *walk_state, in acpi_db_set_method_breakpoint() argument 58 walk_state->parser_state.aml_start); in acpi_db_set_method_breakpoint() 66 walk_state->user_breakpoint = address; in acpi_db_set_method_breakpoint() 114 struct acpi_walk_state *walk_state; in acpi_db_set_method_data() local 149 walk_state = acpi_ds_get_current_walk_state(acpi_gbl_current_walk_list); in acpi_db_set_method_data() 150 if (!walk_state) { in acpi_db_set_method_data() 178 walk_state); in acpi_db_set_method_data() 183 obj_desc = walk_state->arguments[index].object; in acpi_db_set_method_data() 186 acpi_db_display_internal_object(obj_desc, walk_state); in acpi_db_set_method_data() 201 walk_state); in acpi_db_set_method_data() [all …]
|