// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /****************************************************************************** * * Module Name: dsopcode - Dispatcher support for regions and fields * * Copyright (C) 2000 - 2023, Intel Corp. * *****************************************************************************/ #include <acpi/acpi.h> #include "accommon.h" #include "acparser.h" #include "amlcode.h" #include "acdispat.h" #include "acinterp.h" #include "acnamesp.h" #include "acevents.h" #include "actables.h" #define _COMPONENT … ACPI_MODULE_NAME("dsopcode") /* Local prototypes */ static acpi_status acpi_ds_init_buffer_field(u16 aml_opcode, union acpi_operand_object *obj_desc, union acpi_operand_object *buffer_desc, union acpi_operand_object *offset_desc, union acpi_operand_object *length_desc, union acpi_operand_object *result_desc); /******************************************************************************* * * FUNCTION: acpi_ds_initialize_region * * PARAMETERS: obj_handle - Region namespace node * * RETURN: Status * * DESCRIPTION: Front end to ev_initialize_region * ******************************************************************************/ acpi_status acpi_ds_initialize_region(acpi_handle obj_handle) { … } /******************************************************************************* * * FUNCTION: acpi_ds_init_buffer_field * * PARAMETERS: aml_opcode - create_xxx_field * obj_desc - buffer_field object * buffer_desc - Host Buffer * offset_desc - Offset into buffer * length_desc - Length of field (CREATE_FIELD_OP only) * result_desc - Where to store the result * * RETURN: Status * * DESCRIPTION: Perform actual initialization of a buffer field * ******************************************************************************/ static acpi_status acpi_ds_init_buffer_field(u16 aml_opcode, union acpi_operand_object *obj_desc, union acpi_operand_object *buffer_desc, union acpi_operand_object *offset_desc, union acpi_operand_object *length_desc, union acpi_operand_object *result_desc) { … } /******************************************************************************* * * FUNCTION: acpi_ds_eval_buffer_field_operands * * PARAMETERS: walk_state - Current walk * op - A valid buffer_field Op object * * RETURN: Status * * DESCRIPTION: Get buffer_field Buffer and Index * Called from acpi_ds_exec_end_op during buffer_field parse tree walk * ******************************************************************************/ acpi_status acpi_ds_eval_buffer_field_operands(struct acpi_walk_state *walk_state, union acpi_parse_object *op) { … } /******************************************************************************* * * FUNCTION: acpi_ds_eval_region_operands * * PARAMETERS: walk_state - Current walk * op - A valid region Op object * * RETURN: Status * * DESCRIPTION: Get region address and length * Called from acpi_ds_exec_end_op during op_region parse tree walk * ******************************************************************************/ acpi_status acpi_ds_eval_region_operands(struct acpi_walk_state *walk_state, union acpi_parse_object *op) { … } /******************************************************************************* * * FUNCTION: acpi_ds_eval_table_region_operands * * PARAMETERS: walk_state - Current walk * op - A valid region Op object * * RETURN: Status * * DESCRIPTION: Get region address and length. * Called from acpi_ds_exec_end_op during data_table_region parse * tree walk. * ******************************************************************************/ acpi_status acpi_ds_eval_table_region_operands(struct acpi_walk_state *walk_state, union acpi_parse_object *op) { … } /******************************************************************************* * * FUNCTION: acpi_ds_eval_data_object_operands * * PARAMETERS: walk_state - Current walk * op - A valid data_object Op object * obj_desc - data_object * * RETURN: Status * * DESCRIPTION: Get the operands and complete the following data object types: * Buffer, Package. * ******************************************************************************/ acpi_status acpi_ds_eval_data_object_operands(struct acpi_walk_state *walk_state, union acpi_parse_object *op, union acpi_operand_object *obj_desc) { … } /******************************************************************************* * * FUNCTION: acpi_ds_eval_bank_field_operands * * PARAMETERS: walk_state - Current walk * op - A valid bank_field Op object * * RETURN: Status * * DESCRIPTION: Get bank_field bank_value * Called from acpi_ds_exec_end_op during bank_field parse tree walk * ******************************************************************************/ acpi_status acpi_ds_eval_bank_field_operands(struct acpi_walk_state *walk_state, union acpi_parse_object *op) { … }