Commit 12e06070 authored by Andy Grover's avatar Andy Grover

ACPI: More cosmetic changes to make the code more Linux-like

parent 82015ca1
...@@ -37,21 +37,21 @@ ...@@ -37,21 +37,21 @@
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_create_buffer_field * FUNCTION: acpi_ds_create_buffer_field
* *
* PARAMETERS: Opcode - The opcode to be executed * PARAMETERS: Opcode - The opcode to be executed
* Operands - List of operands for the opcode * Operands - List of operands for the opcode
* Walk_state - Current state * walk_state - Current state
* *
* RETURN: Status * RETURN: Status
* *
* DESCRIPTION: Execute the Create_field operators: * DESCRIPTION: Execute the create_field operators:
* Create_bit_field_op, * create_bit_field_op,
* Create_byte_field_op, * create_byte_field_op,
* Create_word_field_op, * create_word_field_op,
* Create_dWord_field_op, * create_dword_field_op,
* Create_qWord_field_op, * create_qword_field_op,
* Create_field_op (all of which define fields in buffers) * create_field_op (all of which define fields in buffers)
* *
******************************************************************************/ ******************************************************************************/
...@@ -68,10 +68,10 @@ acpi_ds_create_buffer_field ( ...@@ -68,10 +68,10 @@ acpi_ds_create_buffer_field (
u32 flags; u32 flags;
ACPI_FUNCTION_TRACE ("Ds_create_buffer_field"); ACPI_FUNCTION_TRACE ("ds_create_buffer_field");
/* Get the Name_string argument */ /* Get the name_string argument */
if (op->common.aml_opcode == AML_CREATE_FIELD_OP) { if (op->common.aml_opcode == AML_CREATE_FIELD_OP) {
arg = acpi_ps_get_arg (op, 3); arg = acpi_ps_get_arg (op, 3);
...@@ -99,7 +99,7 @@ acpi_ds_create_buffer_field ( ...@@ -99,7 +99,7 @@ acpi_ds_create_buffer_field (
} }
/* /*
* Enter the Name_string into the namespace * Enter the name_string into the namespace
*/ */
status = acpi_ns_lookup (walk_state->scope_info, arg->common.value.string, status = acpi_ns_lookup (walk_state->scope_info, arg->common.value.string,
ACPI_TYPE_ANY, ACPI_IMODE_LOAD_PASS1, ACPI_TYPE_ANY, ACPI_IMODE_LOAD_PASS1,
...@@ -167,10 +167,10 @@ acpi_ds_create_buffer_field ( ...@@ -167,10 +167,10 @@ acpi_ds_create_buffer_field (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_get_field_names * FUNCTION: acpi_ds_get_field_names
* *
* PARAMETERS: Info - Create_field info structure * PARAMETERS: Info - create_field info structure
* ` Walk_state - Current method state * ` walk_state - Current method state
* Arg - First parser arg for the field name list * Arg - First parser arg for the field name list
* *
* RETURN: Status * RETURN: Status
...@@ -190,7 +190,7 @@ acpi_ds_get_field_names ( ...@@ -190,7 +190,7 @@ acpi_ds_get_field_names (
acpi_integer position; acpi_integer position;
ACPI_FUNCTION_TRACE_PTR ("Ds_get_field_names", info); ACPI_FUNCTION_TRACE_PTR ("ds_get_field_names", info);
/* First field starts at bit zero */ /* First field starts at bit zero */
...@@ -203,7 +203,7 @@ acpi_ds_get_field_names ( ...@@ -203,7 +203,7 @@ acpi_ds_get_field_names (
/* /*
* Three types of field elements are handled: * Three types of field elements are handled:
* 1) Offset - specifies a bit offset * 1) Offset - specifies a bit offset
* 2) Access_as - changes the access mode * 2) access_as - changes the access mode
* 3) Name - Enters a new named field into the namespace * 3) Name - Enters a new named field into the namespace
*/ */
switch (arg->common.aml_opcode) { switch (arg->common.aml_opcode) {
...@@ -224,10 +224,10 @@ acpi_ds_get_field_names ( ...@@ -224,10 +224,10 @@ acpi_ds_get_field_names (
case AML_INT_ACCESSFIELD_OP: case AML_INT_ACCESSFIELD_OP:
/* /*
* Get a new Access_type and Access_attribute -- to be used for all * Get a new access_type and access_attribute -- to be used for all
* field units that follow, until field end or another Access_as keyword. * field units that follow, until field end or another access_as keyword.
* *
* In Field_flags, preserve the flag bits other than the ACCESS_TYPE bits * In field_flags, preserve the flag bits other than the ACCESS_TYPE bits
*/ */
info->field_flags = (u8) ((info->field_flags & ~(AML_FIELD_ACCESS_TYPE_MASK)) | info->field_flags = (u8) ((info->field_flags & ~(AML_FIELD_ACCESS_TYPE_MASK)) |
((u8) (arg->common.value.integer32 >> 8))); ((u8) (arg->common.value.integer32 >> 8)));
...@@ -295,11 +295,11 @@ acpi_ds_get_field_names ( ...@@ -295,11 +295,11 @@ acpi_ds_get_field_names (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_create_field * FUNCTION: acpi_ds_create_field
* *
* PARAMETERS: Op - Op containing the Field definition and args * PARAMETERS: Op - Op containing the Field definition and args
* Region_node - Object for the containing Operation Region * region_node - Object for the containing Operation Region
* ` Walk_state - Current method state * ` walk_state - Current method state
* *
* RETURN: Status * RETURN: Status
* *
...@@ -318,10 +318,10 @@ acpi_ds_create_field ( ...@@ -318,10 +318,10 @@ acpi_ds_create_field (
acpi_create_field_info info; acpi_create_field_info info;
ACPI_FUNCTION_TRACE_PTR ("Ds_create_field", op); ACPI_FUNCTION_TRACE_PTR ("ds_create_field", op);
/* First arg is the name of the parent Op_region (must already exist) */ /* First arg is the name of the parent op_region (must already exist) */
arg = op->common.value.arg; arg = op->common.value.arg;
if (!region_node) { if (!region_node) {
...@@ -353,10 +353,10 @@ acpi_ds_create_field ( ...@@ -353,10 +353,10 @@ acpi_ds_create_field (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_init_field_objects * FUNCTION: acpi_ds_init_field_objects
* *
* PARAMETERS: Op - Op containing the Field definition and args * PARAMETERS: Op - Op containing the Field definition and args
* ` Walk_state - Current method state * ` walk_state - Current method state
* *
* RETURN: Status * RETURN: Status
* *
...@@ -377,7 +377,7 @@ acpi_ds_init_field_objects ( ...@@ -377,7 +377,7 @@ acpi_ds_init_field_objects (
u8 type = 0; u8 type = 0;
ACPI_FUNCTION_TRACE_PTR ("Ds_init_field_objects", op); ACPI_FUNCTION_TRACE_PTR ("ds_init_field_objects", op);
switch (walk_state->opcode) { switch (walk_state->opcode) {
...@@ -401,7 +401,7 @@ acpi_ds_init_field_objects ( ...@@ -401,7 +401,7 @@ acpi_ds_init_field_objects (
} }
/* /*
* Walk the list of entries in the Field_list * Walk the list of entries in the field_list
*/ */
while (arg) { while (arg) {
/* Ignore OFFSET and ACCESSAS terms here */ /* Ignore OFFSET and ACCESSAS terms here */
...@@ -437,11 +437,11 @@ acpi_ds_init_field_objects ( ...@@ -437,11 +437,11 @@ acpi_ds_init_field_objects (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_create_bank_field * FUNCTION: acpi_ds_create_bank_field
* *
* PARAMETERS: Op - Op containing the Field definition and args * PARAMETERS: Op - Op containing the Field definition and args
* Region_node - Object for the containing Operation Region * region_node - Object for the containing Operation Region
* ` Walk_state - Current method state * ` walk_state - Current method state
* *
* RETURN: Status * RETURN: Status
* *
...@@ -460,10 +460,10 @@ acpi_ds_create_bank_field ( ...@@ -460,10 +460,10 @@ acpi_ds_create_bank_field (
acpi_create_field_info info; acpi_create_field_info info;
ACPI_FUNCTION_TRACE_PTR ("Ds_create_bank_field", op); ACPI_FUNCTION_TRACE_PTR ("ds_create_bank_field", op);
/* First arg is the name of the parent Op_region (must already exist) */ /* First arg is the name of the parent op_region (must already exist) */
arg = op->common.value.arg; arg = op->common.value.arg;
if (!region_node) { if (!region_node) {
...@@ -487,7 +487,7 @@ acpi_ds_create_bank_field ( ...@@ -487,7 +487,7 @@ acpi_ds_create_bank_field (
return_ACPI_STATUS (status); return_ACPI_STATUS (status);
} }
/* Third arg is the Bank_value */ /* Third arg is the bank_value */
arg = arg->common.next; arg = arg->common.next;
info.bank_value = arg->common.value.integer32; info.bank_value = arg->common.value.integer32;
...@@ -510,11 +510,11 @@ acpi_ds_create_bank_field ( ...@@ -510,11 +510,11 @@ acpi_ds_create_bank_field (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_create_index_field * FUNCTION: acpi_ds_create_index_field
* *
* PARAMETERS: Op - Op containing the Field definition and args * PARAMETERS: Op - Op containing the Field definition and args
* Region_node - Object for the containing Operation Region * region_node - Object for the containing Operation Region
* ` Walk_state - Current method state * ` walk_state - Current method state
* *
* RETURN: Status * RETURN: Status
* *
...@@ -533,7 +533,7 @@ acpi_ds_create_index_field ( ...@@ -533,7 +533,7 @@ acpi_ds_create_index_field (
acpi_create_field_info info; acpi_create_field_info info;
ACPI_FUNCTION_TRACE_PTR ("Ds_create_index_field", op); ACPI_FUNCTION_TRACE_PTR ("ds_create_index_field", op);
/* First arg is the name of the Index register (must already exist) */ /* First arg is the name of the Index register (must already exist) */
......
...@@ -36,16 +36,16 @@ ...@@ -36,16 +36,16 @@
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_init_one_object * FUNCTION: acpi_ds_init_one_object
* *
* PARAMETERS: Obj_handle - Node * PARAMETERS: obj_handle - Node
* Level - Current nesting level * Level - Current nesting level
* Context - Points to a init info struct * Context - Points to a init info struct
* Return_value - Not used * return_value - Not used
* *
* RETURN: Status * RETURN: Status
* *
* DESCRIPTION: Callback from Acpi_walk_namespace. Invoked for every object * DESCRIPTION: Callback from acpi_walk_namespace. Invoked for every object
* within the namespace. * within the namespace.
* *
* Currently, the only objects that require initialization are: * Currently, the only objects that require initialization are:
...@@ -66,7 +66,7 @@ acpi_ds_init_one_object ( ...@@ -66,7 +66,7 @@ acpi_ds_init_one_object (
acpi_init_walk_info *info = (acpi_init_walk_info *) context; acpi_init_walk_info *info = (acpi_init_walk_info *) context;
ACPI_FUNCTION_NAME ("Ds_init_one_object"); ACPI_FUNCTION_NAME ("ds_init_one_object");
/* /*
...@@ -162,14 +162,14 @@ acpi_ds_init_one_object ( ...@@ -162,14 +162,14 @@ acpi_ds_init_one_object (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_initialize_objects * FUNCTION: acpi_ds_initialize_objects
* *
* PARAMETERS: Table_desc - Descriptor for parent ACPI table * PARAMETERS: table_desc - Descriptor for parent ACPI table
* Start_node - Root of subtree to be initialized. * start_node - Root of subtree to be initialized.
* *
* RETURN: Status * RETURN: Status
* *
* DESCRIPTION: Walk the namespace starting at "Start_node" and perform any * DESCRIPTION: Walk the namespace starting at "start_node" and perform any
* necessary initialization on the objects found therein * necessary initialization on the objects found therein
* *
******************************************************************************/ ******************************************************************************/
...@@ -183,7 +183,7 @@ acpi_ds_initialize_objects ( ...@@ -183,7 +183,7 @@ acpi_ds_initialize_objects (
acpi_init_walk_info info; acpi_init_walk_info info;
ACPI_FUNCTION_TRACE ("Ds_initialize_objects"); ACPI_FUNCTION_TRACE ("ds_initialize_objects");
ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH,
...@@ -201,7 +201,7 @@ acpi_ds_initialize_objects ( ...@@ -201,7 +201,7 @@ acpi_ds_initialize_objects (
status = acpi_walk_namespace (ACPI_TYPE_ANY, start_node, ACPI_UINT32_MAX, status = acpi_walk_namespace (ACPI_TYPE_ANY, start_node, ACPI_UINT32_MAX,
acpi_ds_init_one_object, &info, NULL); acpi_ds_init_one_object, &info, NULL);
if (ACPI_FAILURE (status)) { if (ACPI_FAILURE (status)) {
ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Walk_namespace failed, %s\n", ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "walk_namespace failed, %s\n",
acpi_format_exception (status))); acpi_format_exception (status)));
} }
......
...@@ -37,12 +37,12 @@ ...@@ -37,12 +37,12 @@
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_parse_method * FUNCTION: acpi_ds_parse_method
* *
* PARAMETERS: Obj_handle - Node of the method * PARAMETERS: obj_handle - Node of the method
* Level - Current nesting level * Level - Current nesting level
* Context - Points to a method counter * Context - Points to a method counter
* Return_value - Not used * return_value - Not used
* *
* RETURN: Status * RETURN: Status
* *
...@@ -65,7 +65,7 @@ acpi_ds_parse_method ( ...@@ -65,7 +65,7 @@ acpi_ds_parse_method (
acpi_walk_state *walk_state; acpi_walk_state *walk_state;
ACPI_FUNCTION_TRACE_PTR ("Ds_parse_method", obj_handle); ACPI_FUNCTION_TRACE_PTR ("ds_parse_method", obj_handle);
/* Parameter Validation */ /* Parameter Validation */
...@@ -74,7 +74,7 @@ acpi_ds_parse_method ( ...@@ -74,7 +74,7 @@ acpi_ds_parse_method (
return_ACPI_STATUS (AE_NULL_ENTRY); return_ACPI_STATUS (AE_NULL_ENTRY);
} }
ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "**** Parsing [%4.4s] **** Named_obj=%p\n", ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "**** Parsing [%4.4s] **** named_obj=%p\n",
((acpi_namespace_node *) obj_handle)->name.ascii, obj_handle)); ((acpi_namespace_node *) obj_handle)->name.ascii, obj_handle));
/* Extract the method object from the method Node */ /* Extract the method object from the method Node */
...@@ -112,7 +112,7 @@ acpi_ds_parse_method ( ...@@ -112,7 +112,7 @@ acpi_ds_parse_method (
op->common.node = node; op->common.node = node;
/* /*
* Get a new Owner_id for objects created by this method. Namespace * Get a new owner_id for objects created by this method. Namespace
* objects (such as Operation Regions) can be created during the * objects (such as Operation Regions) can be created during the
* first pass parse. * first pass parse.
*/ */
...@@ -149,7 +149,7 @@ acpi_ds_parse_method ( ...@@ -149,7 +149,7 @@ acpi_ds_parse_method (
} }
ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, ACPI_DEBUG_PRINT ((ACPI_DB_PARSE,
"**** [%4.4s] Parsed **** Named_obj=%p Op=%p\n", "**** [%4.4s] Parsed **** named_obj=%p Op=%p\n",
((acpi_namespace_node *) obj_handle)->name.ascii, obj_handle, op)); ((acpi_namespace_node *) obj_handle)->name.ascii, obj_handle, op));
acpi_ps_delete_parse_tree (op); acpi_ps_delete_parse_tree (op);
...@@ -159,11 +159,11 @@ acpi_ds_parse_method ( ...@@ -159,11 +159,11 @@ acpi_ds_parse_method (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_begin_method_execution * FUNCTION: acpi_ds_begin_method_execution
* *
* PARAMETERS: Method_node - Node of the method * PARAMETERS: method_node - Node of the method
* Obj_desc - The method object * obj_desc - The method object
* Calling_method_node - Caller of this method (if non-null) * calling_method_node - Caller of this method (if non-null)
* *
* RETURN: Status * RETURN: Status
* *
...@@ -184,7 +184,7 @@ acpi_ds_begin_method_execution ( ...@@ -184,7 +184,7 @@ acpi_ds_begin_method_execution (
acpi_status status = AE_OK; acpi_status status = AE_OK;
ACPI_FUNCTION_TRACE_PTR ("Ds_begin_method_execution", method_node); ACPI_FUNCTION_TRACE_PTR ("ds_begin_method_execution", method_node);
if (!method_node) { if (!method_node) {
...@@ -198,7 +198,7 @@ acpi_ds_begin_method_execution ( ...@@ -198,7 +198,7 @@ acpi_ds_begin_method_execution (
if (obj_desc->method.semaphore) { if (obj_desc->method.semaphore) {
/* /*
* Allow recursive method calls, up to the reentrancy/concurrency * Allow recursive method calls, up to the reentrancy/concurrency
* limit imposed by the SERIALIZED rule and the Sync_level method * limit imposed by the SERIALIZED rule and the sync_level method
* parameter. * parameter.
* *
* The point of this code is to avoid permanently blocking a * The point of this code is to avoid permanently blocking a
...@@ -229,9 +229,9 @@ acpi_ds_begin_method_execution ( ...@@ -229,9 +229,9 @@ acpi_ds_begin_method_execution (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_call_control_method * FUNCTION: acpi_ds_call_control_method
* *
* PARAMETERS: Walk_state - Current state of the walk * PARAMETERS: walk_state - Current state of the walk
* Op - Current Op to be walked * Op - Current Op to be walked
* *
* RETURN: Status * RETURN: Status
...@@ -253,7 +253,7 @@ acpi_ds_call_control_method ( ...@@ -253,7 +253,7 @@ acpi_ds_call_control_method (
u32 i; u32 i;
ACPI_FUNCTION_TRACE_PTR ("Ds_call_control_method", this_walk_state); ACPI_FUNCTION_TRACE_PTR ("ds_call_control_method", this_walk_state);
ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Execute method %p, currentstate=%p\n", ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Execute method %p, currentstate=%p\n",
this_walk_state->prev_op, this_walk_state)); this_walk_state->prev_op, this_walk_state));
...@@ -363,9 +363,9 @@ acpi_ds_call_control_method ( ...@@ -363,9 +363,9 @@ acpi_ds_call_control_method (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_restart_control_method * FUNCTION: acpi_ds_restart_control_method
* *
* PARAMETERS: Walk_state - State of the method when it was preempted * PARAMETERS: walk_state - State of the method when it was preempted
* Op - Pointer to new current op * Op - Pointer to new current op
* *
* RETURN: Status * RETURN: Status
...@@ -382,7 +382,7 @@ acpi_ds_restart_control_method ( ...@@ -382,7 +382,7 @@ acpi_ds_restart_control_method (
acpi_status status; acpi_status status;
ACPI_FUNCTION_TRACE_PTR ("Ds_restart_control_method", walk_state); ACPI_FUNCTION_TRACE_PTR ("ds_restart_control_method", walk_state);
if (return_desc) { if (return_desc) {
...@@ -407,7 +407,7 @@ acpi_ds_restart_control_method ( ...@@ -407,7 +407,7 @@ acpi_ds_restart_control_method (
} }
ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH,
"Method=%p Return=%p Return_used?=%X Res_stack=%p State=%p\n", "Method=%p Return=%p return_used?=%X res_stack=%p State=%p\n",
walk_state->method_call_op, return_desc, walk_state->return_used, walk_state->method_call_op, return_desc, walk_state->return_used,
walk_state->results, walk_state)); walk_state->results, walk_state));
...@@ -417,9 +417,9 @@ acpi_ds_restart_control_method ( ...@@ -417,9 +417,9 @@ acpi_ds_restart_control_method (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_terminate_control_method * FUNCTION: acpi_ds_terminate_control_method
* *
* PARAMETERS: Walk_state - State of the method * PARAMETERS: walk_state - State of the method
* *
* RETURN: Status * RETURN: Status
* *
...@@ -438,7 +438,7 @@ acpi_ds_terminate_control_method ( ...@@ -438,7 +438,7 @@ acpi_ds_terminate_control_method (
acpi_status status; acpi_status status;
ACPI_FUNCTION_TRACE_PTR ("Ds_terminate_control_method", walk_state); ACPI_FUNCTION_TRACE_PTR ("ds_terminate_control_method", walk_state);
if (!walk_state) { if (!walk_state) {
......
This diff is collapsed.
...@@ -37,11 +37,11 @@ ...@@ -37,11 +37,11 @@
#ifndef ACPI_NO_METHOD_EXECUTION #ifndef ACPI_NO_METHOD_EXECUTION
/***************************************************************************** /*****************************************************************************
* *
* FUNCTION: Acpi_ds_build_internal_object * FUNCTION: acpi_ds_build_internal_object
* *
* PARAMETERS: Walk_state - Current walk state * PARAMETERS: walk_state - Current walk state
* Op - Parser object to be translated * Op - Parser object to be translated
* Obj_desc_ptr - Where the ACPI internal object is returned * obj_desc_ptr - Where the ACPI internal object is returned
* *
* RETURN: Status * RETURN: Status
* *
...@@ -60,7 +60,7 @@ acpi_ds_build_internal_object ( ...@@ -60,7 +60,7 @@ acpi_ds_build_internal_object (
acpi_status status; acpi_status status;
ACPI_FUNCTION_TRACE ("Ds_build_internal_object"); ACPI_FUNCTION_TRACE ("ds_build_internal_object");
*obj_desc_ptr = NULL; *obj_desc_ptr = NULL;
...@@ -103,12 +103,12 @@ acpi_ds_build_internal_object ( ...@@ -103,12 +103,12 @@ acpi_ds_build_internal_object (
/***************************************************************************** /*****************************************************************************
* *
* FUNCTION: Acpi_ds_build_internal_buffer_obj * FUNCTION: acpi_ds_build_internal_buffer_obj
* *
* PARAMETERS: Walk_state - Current walk state * PARAMETERS: walk_state - Current walk state
* Op - Parser object to be translated * Op - Parser object to be translated
* Buffer_length - Length of the buffer * buffer_length - Length of the buffer
* Obj_desc_ptr - Where the ACPI internal object is returned * obj_desc_ptr - Where the ACPI internal object is returned
* *
* RETURN: Status * RETURN: Status
* *
...@@ -130,7 +130,7 @@ acpi_ds_build_internal_buffer_obj ( ...@@ -130,7 +130,7 @@ acpi_ds_build_internal_buffer_obj (
u32 byte_list_length = 0; u32 byte_list_length = 0;
ACPI_FUNCTION_TRACE ("Ds_build_internal_buffer_obj"); ACPI_FUNCTION_TRACE ("ds_build_internal_buffer_obj");
obj_desc = *obj_desc_ptr; obj_desc = *obj_desc_ptr;
...@@ -151,9 +151,9 @@ acpi_ds_build_internal_buffer_obj ( ...@@ -151,9 +151,9 @@ acpi_ds_build_internal_buffer_obj (
} }
/* /*
* Second arg is the buffer data (optional) Byte_list can be either * Second arg is the buffer data (optional) byte_list can be either
* individual bytes or a string initializer. In either case, a * individual bytes or a string initializer. In either case, a
* Byte_list appears in the AML. * byte_list appears in the AML.
*/ */
arg = op->common.value.arg; /* skip first arg */ arg = op->common.value.arg; /* skip first arg */
...@@ -195,7 +195,7 @@ acpi_ds_build_internal_buffer_obj ( ...@@ -195,7 +195,7 @@ acpi_ds_build_internal_buffer_obj (
return_ACPI_STATUS (AE_NO_MEMORY); return_ACPI_STATUS (AE_NO_MEMORY);
} }
/* Initialize buffer from the Byte_list (if present) */ /* Initialize buffer from the byte_list (if present) */
if (byte_list) { if (byte_list) {
ACPI_MEMCPY (obj_desc->buffer.pointer, byte_list->named.data, ACPI_MEMCPY (obj_desc->buffer.pointer, byte_list->named.data,
...@@ -211,12 +211,12 @@ acpi_ds_build_internal_buffer_obj ( ...@@ -211,12 +211,12 @@ acpi_ds_build_internal_buffer_obj (
/***************************************************************************** /*****************************************************************************
* *
* FUNCTION: Acpi_ds_build_internal_package_obj * FUNCTION: acpi_ds_build_internal_package_obj
* *
* PARAMETERS: Walk_state - Current walk state * PARAMETERS: walk_state - Current walk state
* Op - Parser object to be translated * Op - Parser object to be translated
* Package_length - Number of elements in the package * package_length - Number of elements in the package
* Obj_desc_ptr - Where the ACPI internal object is returned * obj_desc_ptr - Where the ACPI internal object is returned
* *
* RETURN: Status * RETURN: Status
* *
...@@ -240,7 +240,7 @@ acpi_ds_build_internal_package_obj ( ...@@ -240,7 +240,7 @@ acpi_ds_build_internal_package_obj (
u32 i; u32 i;
ACPI_FUNCTION_TRACE ("Ds_build_internal_package_obj"); ACPI_FUNCTION_TRACE ("ds_build_internal_package_obj");
/* Find the parent of a possibly nested package */ /* Find the parent of a possibly nested package */
...@@ -330,9 +330,9 @@ acpi_ds_build_internal_package_obj ( ...@@ -330,9 +330,9 @@ acpi_ds_build_internal_package_obj (
/***************************************************************************** /*****************************************************************************
* *
* FUNCTION: Acpi_ds_create_node * FUNCTION: acpi_ds_create_node
* *
* PARAMETERS: Walk_state - Current walk state * PARAMETERS: walk_state - Current walk state
* Node - NS Node to be initialized * Node - NS Node to be initialized
* Op - Parser object to be translated * Op - Parser object to be translated
* *
...@@ -352,7 +352,7 @@ acpi_ds_create_node ( ...@@ -352,7 +352,7 @@ acpi_ds_create_node (
acpi_operand_object *obj_desc; acpi_operand_object *obj_desc;
ACPI_FUNCTION_TRACE_PTR ("Ds_create_node", op); ACPI_FUNCTION_TRACE_PTR ("ds_create_node", op);
/* /*
...@@ -396,12 +396,12 @@ acpi_ds_create_node ( ...@@ -396,12 +396,12 @@ acpi_ds_create_node (
/***************************************************************************** /*****************************************************************************
* *
* FUNCTION: Acpi_ds_init_object_from_op * FUNCTION: acpi_ds_init_object_from_op
* *
* PARAMETERS: Walk_state - Current walk state * PARAMETERS: walk_state - Current walk state
* Op - Parser op used to init the internal object * Op - Parser op used to init the internal object
* Opcode - AML opcode associated with the object * Opcode - AML opcode associated with the object
* Ret_obj_desc - Namespace object to be initialized * ret_obj_desc - Namespace object to be initialized
* *
* RETURN: Status * RETURN: Status
* *
...@@ -423,7 +423,7 @@ acpi_ds_init_object_from_op ( ...@@ -423,7 +423,7 @@ acpi_ds_init_object_from_op (
acpi_status status = AE_OK; acpi_status status = AE_OK;
ACPI_FUNCTION_TRACE ("Ds_init_object_from_op"); ACPI_FUNCTION_TRACE ("ds_init_object_from_op");
obj_desc = *ret_obj_desc; obj_desc = *ret_obj_desc;
...@@ -440,7 +440,7 @@ acpi_ds_init_object_from_op ( ...@@ -440,7 +440,7 @@ acpi_ds_init_object_from_op (
case ACPI_TYPE_BUFFER: case ACPI_TYPE_BUFFER:
/* /*
* Defer evaluation of Buffer Term_arg operand * Defer evaluation of Buffer term_arg operand
*/ */
obj_desc->buffer.node = (acpi_namespace_node *) walk_state->operands[0]; obj_desc->buffer.node = (acpi_namespace_node *) walk_state->operands[0];
obj_desc->buffer.aml_start = op->named.data; obj_desc->buffer.aml_start = op->named.data;
...@@ -451,7 +451,7 @@ acpi_ds_init_object_from_op ( ...@@ -451,7 +451,7 @@ acpi_ds_init_object_from_op (
case ACPI_TYPE_PACKAGE: case ACPI_TYPE_PACKAGE:
/* /*
* Defer evaluation of Package Term_arg operand * Defer evaluation of Package term_arg operand
*/ */
obj_desc->package.node = (acpi_namespace_node *) walk_state->operands[0]; obj_desc->package.node = (acpi_namespace_node *) walk_state->operands[0];
obj_desc->package.aml_start = op->named.data; obj_desc->package.aml_start = op->named.data;
...@@ -468,7 +468,7 @@ acpi_ds_init_object_from_op ( ...@@ -468,7 +468,7 @@ acpi_ds_init_object_from_op (
* All constants are integers. * All constants are integers.
* We mark the integer with a flag that indicates that it started life * We mark the integer with a flag that indicates that it started life
* as a constant -- so that stores to constants will perform as expected (noop). * as a constant -- so that stores to constants will perform as expected (noop).
* (Zero_op is used as a placeholder for optional target operands.) * (zero_op is used as a placeholder for optional target operands.)
*/ */
obj_desc->common.flags = AOPOBJ_AML_CONSTANT; obj_desc->common.flags = AOPOBJ_AML_CONSTANT;
......
This diff is collapsed.
...@@ -38,11 +38,11 @@ ...@@ -38,11 +38,11 @@
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_is_result_used * FUNCTION: acpi_ds_is_result_used
* *
* PARAMETERS: Op * PARAMETERS: Op
* Result_obj * result_obj
* Walk_state * walk_state
* *
* RETURN: Status * RETURN: Status
* *
...@@ -58,7 +58,7 @@ acpi_ds_is_result_used ( ...@@ -58,7 +58,7 @@ acpi_ds_is_result_used (
const acpi_opcode_info *parent_info; const acpi_opcode_info *parent_info;
ACPI_FUNCTION_TRACE_PTR ("Ds_is_result_used", op); ACPI_FUNCTION_TRACE_PTR ("ds_is_result_used", op);
/* Must have both an Op and a Result Object */ /* Must have both an Op and a Result Object */
...@@ -129,7 +129,7 @@ acpi_ds_is_result_used ( ...@@ -129,7 +129,7 @@ acpi_ds_is_result_used (
case AML_CLASS_CREATE: case AML_CLASS_CREATE:
/* /*
* These opcodes allow Term_arg(s) as operands and therefore * These opcodes allow term_arg(s) as operands and therefore
* the operands can be method calls. The result is used. * the operands can be method calls. The result is used.
*/ */
goto result_used; goto result_used;
...@@ -144,7 +144,7 @@ acpi_ds_is_result_used ( ...@@ -144,7 +144,7 @@ acpi_ds_is_result_used (
(op->common.parent->common.aml_opcode == AML_BUFFER_OP) || (op->common.parent->common.aml_opcode == AML_BUFFER_OP) ||
(op->common.parent->common.aml_opcode == AML_INT_EVAL_SUBTREE_OP)) { (op->common.parent->common.aml_opcode == AML_INT_EVAL_SUBTREE_OP)) {
/* /*
* These opcodes allow Term_arg(s) as operands and therefore * These opcodes allow term_arg(s) as operands and therefore
* the operands can be method calls. The result is used. * the operands can be method calls. The result is used.
*/ */
goto result_used; goto result_used;
...@@ -183,11 +183,11 @@ acpi_ds_is_result_used ( ...@@ -183,11 +183,11 @@ acpi_ds_is_result_used (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_delete_result_if_not_used * FUNCTION: acpi_ds_delete_result_if_not_used
* *
* PARAMETERS: Op * PARAMETERS: Op
* Result_obj * result_obj
* Walk_state * walk_state
* *
* RETURN: Status * RETURN: Status
* *
...@@ -208,7 +208,7 @@ acpi_ds_delete_result_if_not_used ( ...@@ -208,7 +208,7 @@ acpi_ds_delete_result_if_not_used (
acpi_status status; acpi_status status;
ACPI_FUNCTION_TRACE_PTR ("Ds_delete_result_if_not_used", result_obj); ACPI_FUNCTION_TRACE_PTR ("ds_delete_result_if_not_used", result_obj);
if (!op) { if (!op) {
...@@ -223,7 +223,7 @@ acpi_ds_delete_result_if_not_used ( ...@@ -223,7 +223,7 @@ acpi_ds_delete_result_if_not_used (
if (!acpi_ds_is_result_used (op, walk_state)) { if (!acpi_ds_is_result_used (op, walk_state)) {
/* /*
* Must pop the result stack (Obj_desc should be equal to Result_obj) * Must pop the result stack (obj_desc should be equal to result_obj)
*/ */
status = acpi_ds_result_pop (&obj_desc, walk_state); status = acpi_ds_result_pop (&obj_desc, walk_state);
if (ACPI_SUCCESS (status)) { if (ACPI_SUCCESS (status)) {
...@@ -237,9 +237,9 @@ acpi_ds_delete_result_if_not_used ( ...@@ -237,9 +237,9 @@ acpi_ds_delete_result_if_not_used (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_resolve_operands * FUNCTION: acpi_ds_resolve_operands
* *
* PARAMETERS: Walk_state - Current walk state with operands on stack * PARAMETERS: walk_state - Current walk state with operands on stack
* *
* RETURN: Status * RETURN: Status
* *
...@@ -257,7 +257,7 @@ acpi_ds_resolve_operands ( ...@@ -257,7 +257,7 @@ acpi_ds_resolve_operands (
acpi_status status = AE_OK; acpi_status status = AE_OK;
ACPI_FUNCTION_TRACE_PTR ("Ds_resolve_operands", walk_state); ACPI_FUNCTION_TRACE_PTR ("ds_resolve_operands", walk_state);
/* /*
...@@ -277,9 +277,9 @@ acpi_ds_resolve_operands ( ...@@ -277,9 +277,9 @@ acpi_ds_resolve_operands (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_clear_operands * FUNCTION: acpi_ds_clear_operands
* *
* PARAMETERS: Walk_state - Current walk state with operands on stack * PARAMETERS: walk_state - Current walk state with operands on stack
* *
* RETURN: None * RETURN: None
* *
...@@ -294,7 +294,7 @@ acpi_ds_clear_operands ( ...@@ -294,7 +294,7 @@ acpi_ds_clear_operands (
u32 i; u32 i;
ACPI_FUNCTION_TRACE_PTR ("Acpi_ds_clear_operands", walk_state); ACPI_FUNCTION_TRACE_PTR ("acpi_ds_clear_operands", walk_state);
/* /*
...@@ -317,9 +317,9 @@ acpi_ds_clear_operands ( ...@@ -317,9 +317,9 @@ acpi_ds_clear_operands (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_create_operand * FUNCTION: acpi_ds_create_operand
* *
* PARAMETERS: Walk_state * PARAMETERS: walk_state
* Arg * Arg
* *
* RETURN: Status * RETURN: Status
...@@ -347,7 +347,7 @@ acpi_ds_create_operand ( ...@@ -347,7 +347,7 @@ acpi_ds_create_operand (
const acpi_opcode_info *op_info; const acpi_opcode_info *op_info;
ACPI_FUNCTION_TRACE_PTR ("Ds_create_operand", arg); ACPI_FUNCTION_TRACE_PTR ("ds_create_operand", arg);
/* A valid name must be looked up in the namespace */ /* A valid name must be looked up in the namespace */
...@@ -367,7 +367,7 @@ acpi_ds_create_operand ( ...@@ -367,7 +367,7 @@ acpi_ds_create_operand (
/* /*
* All prefixes have been handled, and the name is * All prefixes have been handled, and the name is
* in Name_string * in name_string
*/ */
/* /*
...@@ -400,7 +400,7 @@ acpi_ds_create_operand ( ...@@ -400,7 +400,7 @@ acpi_ds_create_operand (
ACPI_CAST_INDIRECT_PTR (acpi_namespace_node, &obj_desc)); ACPI_CAST_INDIRECT_PTR (acpi_namespace_node, &obj_desc));
/* /*
* The only case where we pass through (ignore) a NOT_FOUND * The only case where we pass through (ignore) a NOT_FOUND
* error is for the Cond_ref_of opcode. * error is for the cond_ref_of opcode.
*/ */
if (status == AE_NOT_FOUND) { if (status == AE_NOT_FOUND) {
if (parent_op->common.aml_opcode == AML_COND_REF_OF_OP) { if (parent_op->common.aml_opcode == AML_COND_REF_OF_OP) {
...@@ -529,9 +529,9 @@ acpi_ds_create_operand ( ...@@ -529,9 +529,9 @@ acpi_ds_create_operand (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_create_operands * FUNCTION: acpi_ds_create_operands
* *
* PARAMETERS: First_arg - First argument of a parser argument tree * PARAMETERS: first_arg - First argument of a parser argument tree
* *
* RETURN: Status * RETURN: Status
* *
...@@ -551,7 +551,7 @@ acpi_ds_create_operands ( ...@@ -551,7 +551,7 @@ acpi_ds_create_operands (
u32 arg_count = 0; u32 arg_count = 0;
ACPI_FUNCTION_TRACE_PTR ("Ds_create_operands", first_arg); ACPI_FUNCTION_TRACE_PTR ("ds_create_operands", first_arg);
/* For all arguments in the list... */ /* For all arguments in the list... */
......
...@@ -54,9 +54,9 @@ static ACPI_EXECUTE_OP acpi_gbl_op_type_dispatch [] = { ...@@ -54,9 +54,9 @@ static ACPI_EXECUTE_OP acpi_gbl_op_type_dispatch [] = {
/***************************************************************************** /*****************************************************************************
* *
* FUNCTION: Acpi_ds_get_predicate_value * FUNCTION: acpi_ds_get_predicate_value
* *
* PARAMETERS: Walk_state - Current state of the parse tree walk * PARAMETERS: walk_state - Current state of the parse tree walk
* *
* RETURN: Status * RETURN: Status
* *
...@@ -72,7 +72,7 @@ acpi_ds_get_predicate_value ( ...@@ -72,7 +72,7 @@ acpi_ds_get_predicate_value (
acpi_operand_object *obj_desc; acpi_operand_object *obj_desc;
ACPI_FUNCTION_TRACE_PTR ("Ds_get_predicate_value", walk_state); ACPI_FUNCTION_TRACE_PTR ("ds_get_predicate_value", walk_state);
walk_state->control_state->common.state = 0; walk_state->control_state->common.state = 0;
...@@ -102,7 +102,7 @@ acpi_ds_get_predicate_value ( ...@@ -102,7 +102,7 @@ acpi_ds_get_predicate_value (
} }
if (!obj_desc) { if (!obj_desc) {
ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "No predicate Obj_desc=%p State=%p\n", ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "No predicate obj_desc=%p State=%p\n",
obj_desc, walk_state)); obj_desc, walk_state));
return_ACPI_STATUS (AE_AML_NO_OPERAND); return_ACPI_STATUS (AE_AML_NO_OPERAND);
...@@ -114,7 +114,7 @@ acpi_ds_get_predicate_value ( ...@@ -114,7 +114,7 @@ acpi_ds_get_predicate_value (
*/ */
if (ACPI_GET_OBJECT_TYPE (obj_desc) != ACPI_TYPE_INTEGER) { if (ACPI_GET_OBJECT_TYPE (obj_desc) != ACPI_TYPE_INTEGER) {
ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, ACPI_DEBUG_PRINT ((ACPI_DB_ERROR,
"Bad predicate (not a number) Obj_desc=%p State=%p Type=%X\n", "Bad predicate (not a number) obj_desc=%p State=%p Type=%X\n",
obj_desc, walk_state, ACPI_GET_OBJECT_TYPE (obj_desc))); obj_desc, walk_state, ACPI_GET_OBJECT_TYPE (obj_desc)));
status = AE_AML_OPERAND_TYPE; status = AE_AML_OPERAND_TYPE;
...@@ -164,10 +164,10 @@ acpi_ds_get_predicate_value ( ...@@ -164,10 +164,10 @@ acpi_ds_get_predicate_value (
/***************************************************************************** /*****************************************************************************
* *
* FUNCTION: Acpi_ds_exec_begin_op * FUNCTION: acpi_ds_exec_begin_op
* *
* PARAMETERS: Walk_state - Current state of the parse tree walk * PARAMETERS: walk_state - Current state of the parse tree walk
* Out_op - Return op if a new one is created * out_op - Return op if a new one is created
* *
* RETURN: Status * RETURN: Status
* *
...@@ -187,7 +187,7 @@ acpi_ds_exec_begin_op ( ...@@ -187,7 +187,7 @@ acpi_ds_exec_begin_op (
u32 opcode_class; u32 opcode_class;
ACPI_FUNCTION_TRACE_PTR ("Ds_exec_begin_op", walk_state); ACPI_FUNCTION_TRACE_PTR ("ds_exec_begin_op", walk_state);
op = walk_state->op; op = walk_state->op;
...@@ -304,9 +304,9 @@ acpi_ds_exec_begin_op ( ...@@ -304,9 +304,9 @@ acpi_ds_exec_begin_op (
/***************************************************************************** /*****************************************************************************
* *
* FUNCTION: Acpi_ds_exec_end_op * FUNCTION: acpi_ds_exec_end_op
* *
* PARAMETERS: Walk_state - Current state of the parse tree walk * PARAMETERS: walk_state - Current state of the parse tree walk
* Op - Op that has been just been completed in the * Op - Op that has been just been completed in the
* walk; Arguments have now been evaluated. * walk; Arguments have now been evaluated.
* *
...@@ -330,7 +330,7 @@ acpi_ds_exec_end_op ( ...@@ -330,7 +330,7 @@ acpi_ds_exec_end_op (
acpi_parse_object *first_arg; acpi_parse_object *first_arg;
ACPI_FUNCTION_TRACE_PTR ("Ds_exec_end_op", walk_state); ACPI_FUNCTION_TRACE_PTR ("ds_exec_end_op", walk_state);
op = walk_state->op; op = walk_state->op;
...@@ -386,7 +386,7 @@ acpi_ds_exec_end_op ( ...@@ -386,7 +386,7 @@ acpi_ds_exec_end_op (
if (ACPI_SUCCESS (status)) { if (ACPI_SUCCESS (status)) {
ACPI_DUMP_OPERANDS (ACPI_WALK_OPERANDS, ACPI_IMODE_EXECUTE, ACPI_DUMP_OPERANDS (ACPI_WALK_OPERANDS, ACPI_IMODE_EXECUTE,
acpi_ps_get_opcode_name (walk_state->opcode), acpi_ps_get_opcode_name (walk_state->opcode),
walk_state->num_operands, "after Ex_resolve_operands"); walk_state->num_operands, "after ex_resolve_operands");
/* /*
* Dispatch the request to the appropriate interpreter handler * Dispatch the request to the appropriate interpreter handler
...@@ -423,7 +423,7 @@ acpi_ds_exec_end_op ( ...@@ -423,7 +423,7 @@ acpi_ds_exec_end_op (
switch (op_type) { switch (op_type) {
case AML_TYPE_CONTROL: /* Type 1 opcode, IF/ELSE/WHILE/NOOP */ case AML_TYPE_CONTROL: /* Type 1 opcode, IF/ELSE/WHILE/NOOP */
/* 1 Operand, 0 External_result, 0 Internal_result */ /* 1 Operand, 0 external_result, 0 internal_result */
status = acpi_ds_exec_end_control_op (walk_state, op); status = acpi_ds_exec_end_control_op (walk_state, op);
if (ACPI_FAILURE (status)) { if (ACPI_FAILURE (status)) {
...@@ -442,11 +442,11 @@ acpi_ds_exec_end_op ( ...@@ -442,11 +442,11 @@ acpi_ds_exec_end_op (
* (AML_METHODCALL) Op->Value->Arg->Node contains * (AML_METHODCALL) Op->Value->Arg->Node contains
* the method Node pointer * the method Node pointer
*/ */
/* Next_op points to the op that holds the method name */ /* next_op points to the op that holds the method name */
next_op = first_arg; next_op = first_arg;
/* Next_op points to first argument op */ /* next_op points to first argument op */
next_op = next_op->common.next; next_op = next_op->common.next;
...@@ -487,7 +487,7 @@ acpi_ds_exec_end_op ( ...@@ -487,7 +487,7 @@ acpi_ds_exec_end_op (
case AML_TYPE_CREATE_FIELD: case AML_TYPE_CREATE_FIELD:
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
"Executing Create_field Buffer/Index Op=%p\n", op)); "Executing create_field Buffer/Index Op=%p\n", op));
status = acpi_ds_load2_end_op (walk_state); status = acpi_ds_load2_end_op (walk_state);
if (ACPI_FAILURE (status)) { if (ACPI_FAILURE (status)) {
...@@ -501,7 +501,7 @@ acpi_ds_exec_end_op ( ...@@ -501,7 +501,7 @@ acpi_ds_exec_end_op (
case AML_TYPE_CREATE_OBJECT: case AML_TYPE_CREATE_OBJECT:
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
"Executing Create_object (Buffer/Package) Op=%p\n", op)); "Executing create_object (Buffer/Package) Op=%p\n", op));
switch (op->common.parent->common.aml_opcode) { switch (op->common.parent->common.aml_opcode) {
case AML_NAME_OP: case AML_NAME_OP:
...@@ -556,7 +556,7 @@ acpi_ds_exec_end_op ( ...@@ -556,7 +556,7 @@ acpi_ds_exec_end_op (
if (op->common.aml_opcode == AML_REGION_OP) { if (op->common.aml_opcode == AML_REGION_OP) {
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
"Executing Op_region Address/Length Op=%p\n", op)); "Executing op_region Address/Length Op=%p\n", op));
status = acpi_ds_eval_region_operands (walk_state, op); status = acpi_ds_eval_region_operands (walk_state, op);
if (ACPI_FAILURE (status)) { if (ACPI_FAILURE (status)) {
......
...@@ -38,10 +38,10 @@ ...@@ -38,10 +38,10 @@
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_init_callbacks * FUNCTION: acpi_ds_init_callbacks
* *
* PARAMETERS: Walk_state - Current state of the parse tree walk * PARAMETERS: walk_state - Current state of the parse tree walk
* Pass_number - 1, 2, or 3 * pass_number - 1, 2, or 3
* *
* RETURN: Status * RETURN: Status
* *
...@@ -86,9 +86,9 @@ acpi_ds_init_callbacks ( ...@@ -86,9 +86,9 @@ acpi_ds_init_callbacks (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_load1_begin_op * FUNCTION: acpi_ds_load1_begin_op
* *
* PARAMETERS: Walk_state - Current state of the parse tree walk * PARAMETERS: walk_state - Current state of the parse tree walk
* Op - Op that has been just been reached in the * Op - Op that has been just been reached in the
* walk; Arguments have not been evaluated yet. * walk; Arguments have not been evaluated yet.
* *
...@@ -111,7 +111,7 @@ acpi_ds_load1_begin_op ( ...@@ -111,7 +111,7 @@ acpi_ds_load1_begin_op (
u32 flags; u32 flags;
ACPI_FUNCTION_NAME ("Ds_load1_begin_op"); ACPI_FUNCTION_NAME ("ds_load1_begin_op");
op = walk_state->op; op = walk_state->op;
...@@ -225,8 +225,8 @@ acpi_ds_load1_begin_op ( ...@@ -225,8 +225,8 @@ acpi_ds_load1_begin_op (
* already exists: * already exists:
* 1) the Scope() operator can reopen a scoping object that was * 1) the Scope() operator can reopen a scoping object that was
* previously defined (Scope, Method, Device, etc.) * previously defined (Scope, Method, Device, etc.)
* 2) Whenever we are parsing a deferred opcode (Op_region, Buffer, * 2) Whenever we are parsing a deferred opcode (op_region, Buffer,
* Buffer_field, or Package), the name of the object is already * buffer_field, or Package), the name of the object is already
* in the namespace. * in the namespace.
*/ */
flags = ACPI_NS_NO_UPSEARCH; flags = ACPI_NS_NO_UPSEARCH;
...@@ -288,9 +288,9 @@ acpi_ds_load1_begin_op ( ...@@ -288,9 +288,9 @@ acpi_ds_load1_begin_op (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_load1_end_op * FUNCTION: acpi_ds_load1_end_op
* *
* PARAMETERS: Walk_state - Current state of the parse tree walk * PARAMETERS: walk_state - Current state of the parse tree walk
* Op - Op that has been just been completed in the * Op - Op that has been just been completed in the
* walk; Arguments have now been evaluated. * walk; Arguments have now been evaluated.
* *
...@@ -310,7 +310,7 @@ acpi_ds_load1_end_op ( ...@@ -310,7 +310,7 @@ acpi_ds_load1_end_op (
acpi_status status = AE_OK; acpi_status status = AE_OK;
ACPI_FUNCTION_NAME ("Ds_load1_end_op"); ACPI_FUNCTION_NAME ("ds_load1_end_op");
op = walk_state->op; op = walk_state->op;
...@@ -357,7 +357,7 @@ acpi_ds_load1_end_op ( ...@@ -357,7 +357,7 @@ acpi_ds_load1_end_op (
if (op->common.aml_opcode == AML_METHOD_OP) { if (op->common.aml_opcode == AML_METHOD_OP) {
/* /*
* Method_op Pkg_length Name_string Method_flags Term_list * method_op pkg_length name_string method_flags term_list
* *
* Note: We must create the method node/object pair as soon as we * Note: We must create the method node/object pair as soon as we
* see the method declaration. This allows later pass1 parsing * see the method declaration. This allows later pass1 parsing
...@@ -365,7 +365,7 @@ acpi_ds_load1_end_op ( ...@@ -365,7 +365,7 @@ acpi_ds_load1_end_op (
* arguments.) * arguments.)
*/ */
ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH,
"LOADING-Method: State=%p Op=%p Named_obj=%p\n", "LOADING-Method: State=%p Op=%p named_obj=%p\n",
walk_state, op, op->named.node)); walk_state, op, op->named.node));
if (!acpi_ns_get_attached_object (op->named.node)) { if (!acpi_ns_get_attached_object (op->named.node)) {
...@@ -401,9 +401,9 @@ acpi_ds_load1_end_op ( ...@@ -401,9 +401,9 @@ acpi_ds_load1_end_op (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_load2_begin_op * FUNCTION: acpi_ds_load2_begin_op
* *
* PARAMETERS: Walk_state - Current state of the parse tree walk * PARAMETERS: walk_state - Current state of the parse tree walk
* Op - Op that has been just been reached in the * Op - Op that has been just been reached in the
* walk; Arguments have not been evaluated yet. * walk; Arguments have not been evaluated yet.
* *
...@@ -425,7 +425,7 @@ acpi_ds_load2_begin_op ( ...@@ -425,7 +425,7 @@ acpi_ds_load2_begin_op (
char *buffer_ptr; char *buffer_ptr;
ACPI_FUNCTION_TRACE ("Ds_load2_begin_op"); ACPI_FUNCTION_TRACE ("ds_load2_begin_op");
op = walk_state->op; op = walk_state->op;
...@@ -484,7 +484,7 @@ acpi_ds_load2_begin_op ( ...@@ -484,7 +484,7 @@ acpi_ds_load2_begin_op (
case AML_INT_NAMEPATH_OP: case AML_INT_NAMEPATH_OP:
/* /*
* The Name_path is an object reference to an existing object. Don't enter the * The name_path is an object reference to an existing object. Don't enter the
* name into the namespace, but look it up for use later * name into the namespace, but look it up for use later
*/ */
status = acpi_ns_lookup (walk_state->scope_info, buffer_ptr, object_type, status = acpi_ns_lookup (walk_state->scope_info, buffer_ptr, object_type,
...@@ -612,9 +612,9 @@ acpi_ds_load2_begin_op ( ...@@ -612,9 +612,9 @@ acpi_ds_load2_begin_op (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ds_load2_end_op * FUNCTION: acpi_ds_load2_end_op
* *
* PARAMETERS: Walk_state - Current state of the parse tree walk * PARAMETERS: walk_state - Current state of the parse tree walk
* Op - Op that has been just been completed in the * Op - Op that has been just been completed in the
* walk; Arguments have now been evaluated. * walk; Arguments have now been evaluated.
* *
...@@ -640,7 +640,7 @@ acpi_ds_load2_end_op ( ...@@ -640,7 +640,7 @@ acpi_ds_load2_end_op (
#endif #endif
ACPI_FUNCTION_TRACE ("Ds_load2_end_op"); ACPI_FUNCTION_TRACE ("ds_load2_end_op");
op = walk_state->op; op = walk_state->op;
ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Opcode [%s] Op %p State %p\n", ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Opcode [%s] Op %p State %p\n",
...@@ -714,7 +714,7 @@ acpi_ds_load2_end_op ( ...@@ -714,7 +714,7 @@ acpi_ds_load2_end_op (
*/ */
ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH,
"Create-Load [%s] State=%p Op=%p Named_obj=%p\n", "Create-Load [%s] State=%p Op=%p named_obj=%p\n",
acpi_ps_get_opcode_name (op->common.aml_opcode), walk_state, op, node)); acpi_ps_get_opcode_name (op->common.aml_opcode), walk_state, op, node));
/* Decode the opcode */ /* Decode the opcode */
...@@ -821,7 +821,7 @@ acpi_ds_load2_end_op ( ...@@ -821,7 +821,7 @@ acpi_ds_load2_end_op (
#ifndef ACPI_NO_METHOD_EXECUTION #ifndef ACPI_NO_METHOD_EXECUTION
case AML_REGION_OP: case AML_REGION_OP:
/* /*
* The Op_region is not fully parsed at this time. Only valid argument is the Space_id. * The op_region is not fully parsed at this time. Only valid argument is the space_id.
* (We must save the address of the AML of the address and length operands) * (We must save the address of the AML of the address and length operands)
*/ */
/* /*
...@@ -866,7 +866,7 @@ acpi_ds_load2_end_op ( ...@@ -866,7 +866,7 @@ acpi_ds_load2_end_op (
case AML_CLASS_METHOD_CALL: case AML_CLASS_METHOD_CALL:
ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH,
"RESOLVING-Method_call: State=%p Op=%p Named_obj=%p\n", "RESOLVING-method_call: State=%p Op=%p named_obj=%p\n",
walk_state, op, node)); walk_state, op, node));
/* /*
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
/**************************************************************************** /****************************************************************************
* *
* FUNCTION: Acpi_ds_scope_stack_clear * FUNCTION: acpi_ds_scope_stack_clear
* *
* PARAMETERS: None * PARAMETERS: None
* *
...@@ -51,7 +51,7 @@ acpi_ds_scope_stack_clear ( ...@@ -51,7 +51,7 @@ acpi_ds_scope_stack_clear (
{ {
acpi_generic_state *scope_info; acpi_generic_state *scope_info;
ACPI_FUNCTION_NAME ("Ds_scope_stack_clear"); ACPI_FUNCTION_NAME ("ds_scope_stack_clear");
while (walk_state->scope_info) { while (walk_state->scope_info) {
...@@ -69,7 +69,7 @@ acpi_ds_scope_stack_clear ( ...@@ -69,7 +69,7 @@ acpi_ds_scope_stack_clear (
/**************************************************************************** /****************************************************************************
* *
* FUNCTION: Acpi_ds_scope_stack_push * FUNCTION: acpi_ds_scope_stack_push
* *
* PARAMETERS: *Node, - Name to be made current * PARAMETERS: *Node, - Name to be made current
* Type, - Type of frame being pushed * Type, - Type of frame being pushed
...@@ -89,20 +89,20 @@ acpi_ds_scope_stack_push ( ...@@ -89,20 +89,20 @@ acpi_ds_scope_stack_push (
acpi_generic_state *old_scope_info; acpi_generic_state *old_scope_info;
ACPI_FUNCTION_TRACE ("Ds_scope_stack_push"); ACPI_FUNCTION_TRACE ("ds_scope_stack_push");
if (!node) { if (!node) {
/* Invalid scope */ /* Invalid scope */
ACPI_REPORT_ERROR (("Ds_scope_stack_push: null scope passed\n")); ACPI_REPORT_ERROR (("ds_scope_stack_push: null scope passed\n"));
return_ACPI_STATUS (AE_BAD_PARAMETER); return_ACPI_STATUS (AE_BAD_PARAMETER);
} }
/* Make sure object type is valid */ /* Make sure object type is valid */
if (!acpi_ut_valid_object_type (type)) { if (!acpi_ut_valid_object_type (type)) {
ACPI_REPORT_WARNING (("Ds_scope_stack_push: type code out of range\n")); ACPI_REPORT_WARNING (("ds_scope_stack_push: type code out of range\n"));
} }
...@@ -151,7 +151,7 @@ acpi_ds_scope_stack_push ( ...@@ -151,7 +151,7 @@ acpi_ds_scope_stack_push (
/**************************************************************************** /****************************************************************************
* *
* FUNCTION: Acpi_ds_scope_stack_pop * FUNCTION: acpi_ds_scope_stack_pop
* *
* PARAMETERS: Type - The type of frame to be found * PARAMETERS: Type - The type of frame to be found
* *
...@@ -174,7 +174,7 @@ acpi_ds_scope_stack_pop ( ...@@ -174,7 +174,7 @@ acpi_ds_scope_stack_pop (
acpi_generic_state *new_scope_info; acpi_generic_state *new_scope_info;
ACPI_FUNCTION_TRACE ("Ds_scope_stack_pop"); ACPI_FUNCTION_TRACE ("ds_scope_stack_pop");
/* /*
......
This diff is collapsed.
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_initialize * FUNCTION: acpi_ev_initialize
* *
* PARAMETERS: None * PARAMETERS: None
* *
...@@ -48,7 +48,7 @@ acpi_ev_initialize ( ...@@ -48,7 +48,7 @@ acpi_ev_initialize (
acpi_status status; acpi_status status;
ACPI_FUNCTION_TRACE ("Ev_initialize"); ACPI_FUNCTION_TRACE ("ev_initialize");
/* Make sure we have ACPI tables */ /* Make sure we have ACPI tables */
...@@ -59,7 +59,7 @@ acpi_ev_initialize ( ...@@ -59,7 +59,7 @@ acpi_ev_initialize (
} }
/* /*
* Initialize the Fixed and General Purpose Acpi_events prior. This is * Initialize the Fixed and General Purpose acpi_events prior. This is
* done prior to enabling SCIs to prevent interrupts from occuring * done prior to enabling SCIs to prevent interrupts from occuring
* before handers are installed. * before handers are installed.
*/ */
...@@ -85,7 +85,7 @@ acpi_ev_initialize ( ...@@ -85,7 +85,7 @@ acpi_ev_initialize (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_handler_initialize * FUNCTION: acpi_ev_handler_initialize
* *
* PARAMETERS: None * PARAMETERS: None
* *
...@@ -102,7 +102,7 @@ acpi_ev_handler_initialize ( ...@@ -102,7 +102,7 @@ acpi_ev_handler_initialize (
acpi_status status; acpi_status status;
ACPI_FUNCTION_TRACE ("Ev_handler_initialize"); ACPI_FUNCTION_TRACE ("ev_handler_initialize");
/* Install the SCI handler */ /* Install the SCI handler */
...@@ -142,7 +142,7 @@ acpi_ev_handler_initialize ( ...@@ -142,7 +142,7 @@ acpi_ev_handler_initialize (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_fixed_event_initialize * FUNCTION: acpi_ev_fixed_event_initialize
* *
* PARAMETERS: None * PARAMETERS: None
* *
...@@ -185,7 +185,7 @@ acpi_ev_fixed_event_initialize ( ...@@ -185,7 +185,7 @@ acpi_ev_fixed_event_initialize (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_fixed_event_detect * FUNCTION: acpi_ev_fixed_event_detect
* *
* PARAMETERS: None * PARAMETERS: None
* *
...@@ -205,7 +205,7 @@ acpi_ev_fixed_event_detect ( ...@@ -205,7 +205,7 @@ acpi_ev_fixed_event_detect (
acpi_native_uint i; acpi_native_uint i;
ACPI_FUNCTION_NAME ("Ev_fixed_event_detect"); ACPI_FUNCTION_NAME ("ev_fixed_event_detect");
/* /*
...@@ -216,7 +216,7 @@ acpi_ev_fixed_event_detect ( ...@@ -216,7 +216,7 @@ acpi_ev_fixed_event_detect (
(void) acpi_hw_register_read (ACPI_MTX_DO_NOT_LOCK, ACPI_REGISTER_PM1_ENABLE, &fixed_enable); (void) acpi_hw_register_read (ACPI_MTX_DO_NOT_LOCK, ACPI_REGISTER_PM1_ENABLE, &fixed_enable);
ACPI_DEBUG_PRINT ((ACPI_DB_INTERRUPTS, ACPI_DEBUG_PRINT ((ACPI_DB_INTERRUPTS,
"Fixed Acpi_event Block: Enable %08X Status %08X\n", "Fixed acpi_event Block: Enable %08X Status %08X\n",
fixed_enable, fixed_status)); fixed_enable, fixed_status));
/* /*
...@@ -239,7 +239,7 @@ acpi_ev_fixed_event_detect ( ...@@ -239,7 +239,7 @@ acpi_ev_fixed_event_detect (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_fixed_event_dispatch * FUNCTION: acpi_ev_fixed_event_dispatch
* *
* PARAMETERS: Event - Event type * PARAMETERS: Event - Event type
* *
...@@ -273,7 +273,7 @@ acpi_ev_fixed_event_dispatch ( ...@@ -273,7 +273,7 @@ acpi_ev_fixed_event_dispatch (
0, ACPI_MTX_DO_NOT_LOCK); 0, ACPI_MTX_DO_NOT_LOCK);
ACPI_REPORT_ERROR ( ACPI_REPORT_ERROR (
("Ev_gpe_dispatch: No installed handler for fixed event [%08X]\n", ("ev_gpe_dispatch: No installed handler for fixed event [%08X]\n",
event)); event));
return (ACPI_INTERRUPT_NOT_HANDLED); return (ACPI_INTERRUPT_NOT_HANDLED);
......
This diff is collapsed.
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_is_notify_object * FUNCTION: acpi_ev_is_notify_object
* *
* PARAMETERS: Node - Node to check * PARAMETERS: Node - Node to check
* *
...@@ -67,9 +67,9 @@ acpi_ev_is_notify_object ( ...@@ -67,9 +67,9 @@ acpi_ev_is_notify_object (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_get_gpe_register_index * FUNCTION: acpi_ev_get_gpe_register_index
* *
* PARAMETERS: Gpe_number - Raw GPE number * PARAMETERS: gpe_number - Raw GPE number
* *
* RETURN: None. * RETURN: None.
* *
...@@ -93,9 +93,9 @@ acpi_ev_get_gpe_register_index ( ...@@ -93,9 +93,9 @@ acpi_ev_get_gpe_register_index (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_get_gpe_number_index * FUNCTION: acpi_ev_get_gpe_number_index
* *
* PARAMETERS: Gpe_number - Raw GPE number * PARAMETERS: gpe_number - Raw GPE number
* *
* RETURN: None. * RETURN: None.
* *
...@@ -119,7 +119,7 @@ acpi_ev_get_gpe_number_index ( ...@@ -119,7 +119,7 @@ acpi_ev_get_gpe_number_index (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_queue_notify_request * FUNCTION: acpi_ev_queue_notify_request
* *
* PARAMETERS: * PARAMETERS:
* *
...@@ -141,7 +141,7 @@ acpi_ev_queue_notify_request ( ...@@ -141,7 +141,7 @@ acpi_ev_queue_notify_request (
acpi_status status = AE_OK; acpi_status status = AE_OK;
ACPI_FUNCTION_NAME ("Ev_queue_notify_request"); ACPI_FUNCTION_NAME ("ev_queue_notify_request");
/* /*
...@@ -237,7 +237,7 @@ acpi_ev_queue_notify_request ( ...@@ -237,7 +237,7 @@ acpi_ev_queue_notify_request (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_notify_dispatch * FUNCTION: acpi_ev_notify_dispatch
* *
* PARAMETERS: * PARAMETERS:
* *
...@@ -304,7 +304,7 @@ acpi_ev_notify_dispatch ( ...@@ -304,7 +304,7 @@ acpi_ev_notify_dispatch (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_global_lock_thread * FUNCTION: acpi_ev_global_lock_thread
* *
* RETURN: None * RETURN: None
* *
...@@ -337,7 +337,7 @@ acpi_ev_global_lock_thread ( ...@@ -337,7 +337,7 @@ acpi_ev_global_lock_thread (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_global_lock_handler * FUNCTION: acpi_ev_global_lock_handler
* *
* RETURN: Status * RETURN: Status
* *
...@@ -384,7 +384,7 @@ acpi_ev_global_lock_handler ( ...@@ -384,7 +384,7 @@ acpi_ev_global_lock_handler (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_init_global_lock_handler * FUNCTION: acpi_ev_init_global_lock_handler
* *
* RETURN: Status * RETURN: Status
* *
...@@ -398,7 +398,7 @@ acpi_ev_init_global_lock_handler (void) ...@@ -398,7 +398,7 @@ acpi_ev_init_global_lock_handler (void)
acpi_status status; acpi_status status;
ACPI_FUNCTION_TRACE ("Ev_init_global_lock_handler"); ACPI_FUNCTION_TRACE ("ev_init_global_lock_handler");
acpi_gbl_global_lock_present = TRUE; acpi_gbl_global_lock_present = TRUE;
...@@ -423,7 +423,7 @@ acpi_ev_init_global_lock_handler (void) ...@@ -423,7 +423,7 @@ acpi_ev_init_global_lock_handler (void)
/****************************************************************************** /******************************************************************************
* *
* FUNCTION: Acpi_ev_acquire_global_lock * FUNCTION: acpi_ev_acquire_global_lock
* *
* RETURN: Status * RETURN: Status
* *
...@@ -439,7 +439,7 @@ acpi_ev_acquire_global_lock ( ...@@ -439,7 +439,7 @@ acpi_ev_acquire_global_lock (
u8 acquired = FALSE; u8 acquired = FALSE;
ACPI_FUNCTION_TRACE ("Ev_acquire_global_lock"); ACPI_FUNCTION_TRACE ("ev_acquire_global_lock");
#ifndef ACPI_APPLICATION #ifndef ACPI_APPLICATION
...@@ -490,7 +490,7 @@ acpi_ev_acquire_global_lock ( ...@@ -490,7 +490,7 @@ acpi_ev_acquire_global_lock (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_release_global_lock * FUNCTION: acpi_ev_release_global_lock
* *
* DESCRIPTION: Releases ownership of the Global Lock. * DESCRIPTION: Releases ownership of the Global Lock.
* *
...@@ -503,7 +503,7 @@ acpi_ev_release_global_lock (void) ...@@ -503,7 +503,7 @@ acpi_ev_release_global_lock (void)
acpi_status status = AE_OK; acpi_status status = AE_OK;
ACPI_FUNCTION_TRACE ("Ev_release_global_lock"); ACPI_FUNCTION_TRACE ("ev_release_global_lock");
if (!acpi_gbl_global_lock_thread_count) { if (!acpi_gbl_global_lock_thread_count) {
...@@ -541,7 +541,7 @@ acpi_ev_release_global_lock (void) ...@@ -541,7 +541,7 @@ acpi_ev_release_global_lock (void)
/****************************************************************************** /******************************************************************************
* *
* FUNCTION: Acpi_ev_terminate * FUNCTION: acpi_ev_terminate
* *
* PARAMETERS: none * PARAMETERS: none
* *
...@@ -558,7 +558,7 @@ acpi_ev_terminate (void) ...@@ -558,7 +558,7 @@ acpi_ev_terminate (void)
acpi_status status; acpi_status status;
ACPI_FUNCTION_TRACE ("Ev_terminate"); ACPI_FUNCTION_TRACE ("ev_terminate");
if (acpi_gbl_events_initialized) { if (acpi_gbl_events_initialized) {
...@@ -604,7 +604,7 @@ acpi_ev_terminate (void) ...@@ -604,7 +604,7 @@ acpi_ev_terminate (void)
if (acpi_gbl_original_mode == ACPI_SYS_MODE_LEGACY) { if (acpi_gbl_original_mode == ACPI_SYS_MODE_LEGACY) {
status = acpi_disable (); status = acpi_disable ();
if (ACPI_FAILURE (status)) { if (ACPI_FAILURE (status)) {
ACPI_DEBUG_PRINT ((ACPI_DB_WARN, "Acpi_disable failed\n")); ACPI_DEBUG_PRINT ((ACPI_DB_WARN, "acpi_disable failed\n"));
} }
} }
......
/****************************************************************************** /******************************************************************************
* *
* Module Name: evregion - ACPI Address_space (Op_region) handler dispatch * Module Name: evregion - ACPI address_space (op_region) handler dispatch
* *
*****************************************************************************/ *****************************************************************************/
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_init_address_spaces * FUNCTION: acpi_ev_init_address_spaces
* *
* PARAMETERS: * PARAMETERS:
* *
...@@ -51,7 +51,7 @@ acpi_ev_init_address_spaces ( ...@@ -51,7 +51,7 @@ acpi_ev_init_address_spaces (
acpi_status status; acpi_status status;
ACPI_FUNCTION_TRACE ("Ev_init_address_spaces"); ACPI_FUNCTION_TRACE ("ev_init_address_spaces");
/* /*
...@@ -67,7 +67,7 @@ acpi_ev_init_address_spaces ( ...@@ -67,7 +67,7 @@ acpi_ev_init_address_spaces (
* near ready to find the PCI root buses at this point. * near ready to find the PCI root buses at this point.
* *
* NOTE: We ignore AE_ALREADY_EXISTS because this means that a handler * NOTE: We ignore AE_ALREADY_EXISTS because this means that a handler
* has already been installed (via Acpi_install_address_space_handler) * has already been installed (via acpi_install_address_space_handler)
*/ */
status = acpi_install_address_space_handler ((acpi_handle) acpi_gbl_root_node, status = acpi_install_address_space_handler ((acpi_handle) acpi_gbl_root_node,
...@@ -108,9 +108,9 @@ acpi_ev_init_address_spaces ( ...@@ -108,9 +108,9 @@ acpi_ev_init_address_spaces (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_execute_reg_method * FUNCTION: acpi_ev_execute_reg_method
* *
* PARAMETERS: Region_obj - Object structure * PARAMETERS: region_obj - Object structure
* Function - On (1) or Off (0) * Function - On (1) or Off (0)
* *
* RETURN: Status * RETURN: Status
...@@ -129,7 +129,7 @@ acpi_ev_execute_reg_method ( ...@@ -129,7 +129,7 @@ acpi_ev_execute_reg_method (
acpi_status status; acpi_status status;
ACPI_FUNCTION_TRACE ("Ev_execute_reg_method"); ACPI_FUNCTION_TRACE ("ev_execute_reg_method");
region_obj2 = acpi_ns_get_secondary_object (region_obj); region_obj2 = acpi_ns_get_secondary_object (region_obj);
...@@ -144,7 +144,7 @@ acpi_ev_execute_reg_method ( ...@@ -144,7 +144,7 @@ acpi_ev_execute_reg_method (
/* /*
* _REG method has two arguments * _REG method has two arguments
* Arg0: Integer: Operation region space ID * Arg0: Integer: Operation region space ID
* Same value as Region_obj->Region.Space_id * Same value as region_obj->Region.space_id
* Arg1: Integer: connection status * Arg1: Integer: connection status
* 1 for connecting the handler, * 1 for connecting the handler,
* 0 for disconnecting the handler * 0 for disconnecting the handler
...@@ -185,13 +185,13 @@ acpi_ev_execute_reg_method ( ...@@ -185,13 +185,13 @@ acpi_ev_execute_reg_method (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_address_space_dispatch * FUNCTION: acpi_ev_address_space_dispatch
* *
* PARAMETERS: Region_obj - internal region object * PARAMETERS: region_obj - internal region object
* Space_id - ID of the address space (0-255) * space_id - ID of the address space (0-255)
* Function - Read or Write operation * Function - Read or Write operation
* Address - Where in the space to read or write * Address - Where in the space to read or write
* Bit_width - Field width in bits (8, 16, 32, or 64) * bit_width - Field width in bits (8, 16, 32, or 64)
* Value - Pointer to in or out value * Value - Pointer to in or out value
* *
* RETURN: Status * RETURN: Status
...@@ -218,7 +218,7 @@ acpi_ev_address_space_dispatch ( ...@@ -218,7 +218,7 @@ acpi_ev_address_space_dispatch (
void *region_context = NULL; void *region_context = NULL;
ACPI_FUNCTION_TRACE ("Ev_address_space_dispatch"); ACPI_FUNCTION_TRACE ("ev_address_space_dispatch");
region_obj2 = acpi_ns_get_secondary_object (region_obj); region_obj2 = acpi_ns_get_secondary_object (region_obj);
...@@ -338,10 +338,10 @@ acpi_ev_address_space_dispatch ( ...@@ -338,10 +338,10 @@ acpi_ev_address_space_dispatch (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_detach_region * FUNCTION: acpi_ev_detach_region
* *
* PARAMETERS: Region_obj - Region Object * PARAMETERS: region_obj - Region Object
* Acpi_ns_is_locked - Namespace Region Already Locked? * acpi_ns_is_locked - Namespace Region Already Locked?
* *
* RETURN: None * RETURN: None
* *
...@@ -364,7 +364,7 @@ acpi_ev_detach_region( ...@@ -364,7 +364,7 @@ acpi_ev_detach_region(
acpi_status status; acpi_status status;
ACPI_FUNCTION_TRACE ("Ev_detach_region"); ACPI_FUNCTION_TRACE ("ev_detach_region");
region_obj2 = acpi_ns_get_secondary_object (region_obj); region_obj2 = acpi_ns_get_secondary_object (region_obj);
...@@ -483,11 +483,11 @@ acpi_ev_detach_region( ...@@ -483,11 +483,11 @@ acpi_ev_detach_region(
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_attach_region * FUNCTION: acpi_ev_attach_region
* *
* PARAMETERS: Handler_obj - Handler Object * PARAMETERS: handler_obj - Handler Object
* Region_obj - Region Object * region_obj - Region Object
* Acpi_ns_is_locked - Namespace Region Already Locked? * acpi_ns_is_locked - Namespace Region Already Locked?
* *
* RETURN: None * RETURN: None
* *
...@@ -506,7 +506,7 @@ acpi_ev_attach_region ( ...@@ -506,7 +506,7 @@ acpi_ev_attach_region (
acpi_status status2; acpi_status status2;
ACPI_FUNCTION_TRACE ("Ev_attach_region"); ACPI_FUNCTION_TRACE ("ev_attach_region");
ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION,
...@@ -551,11 +551,11 @@ acpi_ev_attach_region ( ...@@ -551,11 +551,11 @@ acpi_ev_attach_region (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_addr_handler_helper * FUNCTION: acpi_ev_addr_handler_helper
* *
* PARAMETERS: Handle - Node to be dumped * PARAMETERS: Handle - Node to be dumped
* Level - Nesting level of the handle * Level - Nesting level of the handle
* Context - Passed into Acpi_ns_walk_namespace * Context - Passed into acpi_ns_walk_namespace
* *
* DESCRIPTION: This routine installs an address handler into objects that are * DESCRIPTION: This routine installs an address handler into objects that are
* of type Region. * of type Region.
...@@ -582,7 +582,7 @@ acpi_ev_addr_handler_helper ( ...@@ -582,7 +582,7 @@ acpi_ev_addr_handler_helper (
acpi_status status; acpi_status status;
ACPI_FUNCTION_NAME ("Ev_addr_handler_helper"); ACPI_FUNCTION_NAME ("ev_addr_handler_helper");
handler_obj = (acpi_operand_object *) context; handler_obj = (acpi_operand_object *) context;
......
/****************************************************************************** /******************************************************************************
* *
* Module Name: evrgnini- ACPI Address_space (Op_region) init * Module Name: evrgnini- ACPI address_space (op_region) init
* *
*****************************************************************************/ *****************************************************************************/
...@@ -33,12 +33,12 @@ ...@@ -33,12 +33,12 @@
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_system_memory_region_setup * FUNCTION: acpi_ev_system_memory_region_setup
* *
* PARAMETERS: Region_obj - Region we are interested in * PARAMETERS: region_obj - Region we are interested in
* Function - Start or stop * Function - Start or stop
* Handler_context - Address space handler context * handler_context - Address space handler context
* Region_context - Region specific context * region_context - Region specific context
* *
* RETURN: Status * RETURN: Status
* *
...@@ -57,7 +57,7 @@ acpi_ev_system_memory_region_setup ( ...@@ -57,7 +57,7 @@ acpi_ev_system_memory_region_setup (
acpi_mem_space_context *local_region_context; acpi_mem_space_context *local_region_context;
ACPI_FUNCTION_TRACE ("Ev_system_memory_region_setup"); ACPI_FUNCTION_TRACE ("ev_system_memory_region_setup");
if (function == ACPI_REGION_DEACTIVATE) { if (function == ACPI_REGION_DEACTIVATE) {
...@@ -87,12 +87,12 @@ acpi_ev_system_memory_region_setup ( ...@@ -87,12 +87,12 @@ acpi_ev_system_memory_region_setup (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_io_space_region_setup * FUNCTION: acpi_ev_io_space_region_setup
* *
* PARAMETERS: Region_obj - Region we are interested in * PARAMETERS: region_obj - Region we are interested in
* Function - Start or stop * Function - Start or stop
* Handler_context - Address space handler context * handler_context - Address space handler context
* Region_context - Region specific context * region_context - Region specific context
* *
* RETURN: Status * RETURN: Status
* *
...@@ -107,7 +107,7 @@ acpi_ev_io_space_region_setup ( ...@@ -107,7 +107,7 @@ acpi_ev_io_space_region_setup (
void *handler_context, void *handler_context,
void **region_context) void **region_context)
{ {
ACPI_FUNCTION_TRACE ("Ev_io_space_region_setup"); ACPI_FUNCTION_TRACE ("ev_io_space_region_setup");
if (function == ACPI_REGION_DEACTIVATE) { if (function == ACPI_REGION_DEACTIVATE) {
...@@ -123,12 +123,12 @@ acpi_ev_io_space_region_setup ( ...@@ -123,12 +123,12 @@ acpi_ev_io_space_region_setup (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_pci_config_region_setup * FUNCTION: acpi_ev_pci_config_region_setup
* *
* PARAMETERS: Region_obj - Region we are interested in * PARAMETERS: region_obj - Region we are interested in
* Function - Start or stop * Function - Start or stop
* Handler_context - Address space handler context * handler_context - Address space handler context
* Region_context - Region specific context * region_context - Region specific context
* *
* RETURN: Status * RETURN: Status
* *
...@@ -154,7 +154,7 @@ acpi_ev_pci_config_region_setup ( ...@@ -154,7 +154,7 @@ acpi_ev_pci_config_region_setup (
acpi_device_id object_hID; acpi_device_id object_hID;
ACPI_FUNCTION_TRACE ("Ev_pci_config_region_setup"); ACPI_FUNCTION_TRACE ("ev_pci_config_region_setup");
handler_obj = region_obj->region.addr_handler; handler_obj = region_obj->region.addr_handler;
...@@ -217,8 +217,8 @@ acpi_ev_pci_config_region_setup ( ...@@ -217,8 +217,8 @@ acpi_ev_pci_config_region_setup (
*/ */
/* /*
* If the Addr_handler.Node is still pointing to the root, we need * If the addr_handler.Node is still pointing to the root, we need
* to scan upward for a PCI Root bridge and re-associate the Op_region * to scan upward for a PCI Root bridge and re-associate the op_region
* handlers with that device. * handlers with that device.
*/ */
if (handler_obj->addr_handler.node == acpi_gbl_root_node) { if (handler_obj->addr_handler.node == acpi_gbl_root_node) {
...@@ -238,7 +238,7 @@ acpi_ev_pci_config_region_setup ( ...@@ -238,7 +238,7 @@ acpi_ev_pci_config_region_setup (
ACPI_ADR_SPACE_PCI_CONFIG, ACPI_ADR_SPACE_PCI_CONFIG,
ACPI_DEFAULT_HANDLER, NULL, NULL); ACPI_DEFAULT_HANDLER, NULL, NULL);
if (ACPI_FAILURE (status)) { if (ACPI_FAILURE (status)) {
ACPI_REPORT_ERROR (("Could not install Pci_config handler for %4.4s, %s\n", ACPI_REPORT_ERROR (("Could not install pci_config handler for %4.4s, %s\n",
node->name.ascii, acpi_format_exception (status))); node->name.ascii, acpi_format_exception (status)));
} }
break; break;
...@@ -269,7 +269,7 @@ acpi_ev_pci_config_region_setup ( ...@@ -269,7 +269,7 @@ acpi_ev_pci_config_region_setup (
} }
/* /*
* Complete this device's Pci_id * Complete this device's pci_id
*/ */
acpi_os_derive_pci_id (node, region_obj->region.node, &pci_id); acpi_os_derive_pci_id (node, region_obj->region.node, &pci_id);
...@@ -280,12 +280,12 @@ acpi_ev_pci_config_region_setup ( ...@@ -280,12 +280,12 @@ acpi_ev_pci_config_region_setup (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_pci_bar_region_setup * FUNCTION: acpi_ev_pci_bar_region_setup
* *
* PARAMETERS: Region_obj - Region we are interested in * PARAMETERS: region_obj - Region we are interested in
* Function - Start or stop * Function - Start or stop
* Handler_context - Address space handler context * handler_context - Address space handler context
* Region_context - Region specific context * region_context - Region specific context
* *
* RETURN: Status * RETURN: Status
* *
...@@ -302,7 +302,7 @@ acpi_ev_pci_bar_region_setup ( ...@@ -302,7 +302,7 @@ acpi_ev_pci_bar_region_setup (
void *handler_context, void *handler_context,
void **region_context) void **region_context)
{ {
ACPI_FUNCTION_TRACE ("Ev_pci_bar_region_setup"); ACPI_FUNCTION_TRACE ("ev_pci_bar_region_setup");
return_ACPI_STATUS (AE_OK); return_ACPI_STATUS (AE_OK);
...@@ -311,12 +311,12 @@ acpi_ev_pci_bar_region_setup ( ...@@ -311,12 +311,12 @@ acpi_ev_pci_bar_region_setup (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_cmos_region_setup * FUNCTION: acpi_ev_cmos_region_setup
* *
* PARAMETERS: Region_obj - Region we are interested in * PARAMETERS: region_obj - Region we are interested in
* Function - Start or stop * Function - Start or stop
* Handler_context - Address space handler context * handler_context - Address space handler context
* Region_context - Region specific context * region_context - Region specific context
* *
* RETURN: Status * RETURN: Status
* *
...@@ -333,7 +333,7 @@ acpi_ev_cmos_region_setup ( ...@@ -333,7 +333,7 @@ acpi_ev_cmos_region_setup (
void *handler_context, void *handler_context,
void **region_context) void **region_context)
{ {
ACPI_FUNCTION_TRACE ("Ev_cmos_region_setup"); ACPI_FUNCTION_TRACE ("ev_cmos_region_setup");
return_ACPI_STATUS (AE_OK); return_ACPI_STATUS (AE_OK);
...@@ -342,12 +342,12 @@ acpi_ev_cmos_region_setup ( ...@@ -342,12 +342,12 @@ acpi_ev_cmos_region_setup (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_default_region_setup * FUNCTION: acpi_ev_default_region_setup
* *
* PARAMETERS: Region_obj - Region we are interested in * PARAMETERS: region_obj - Region we are interested in
* Function - Start or stop * Function - Start or stop
* Handler_context - Address space handler context * handler_context - Address space handler context
* Region_context - Region specific context * region_context - Region specific context
* *
* RETURN: Status * RETURN: Status
* *
...@@ -362,7 +362,7 @@ acpi_ev_default_region_setup ( ...@@ -362,7 +362,7 @@ acpi_ev_default_region_setup (
void *handler_context, void *handler_context,
void **region_context) void **region_context)
{ {
ACPI_FUNCTION_TRACE ("Ev_default_region_setup"); ACPI_FUNCTION_TRACE ("ev_default_region_setup");
if (function == ACPI_REGION_DEACTIVATE) { if (function == ACPI_REGION_DEACTIVATE) {
...@@ -378,10 +378,10 @@ acpi_ev_default_region_setup ( ...@@ -378,10 +378,10 @@ acpi_ev_default_region_setup (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_initialize_region * FUNCTION: acpi_ev_initialize_region
* *
* PARAMETERS: Region_obj - Region we are initializing * PARAMETERS: region_obj - Region we are initializing
* Acpi_ns_locked - Is namespace locked? * acpi_ns_locked - Is namespace locked?
* *
* RETURN: Status * RETURN: Status
* *
...@@ -413,7 +413,7 @@ acpi_ev_initialize_region ( ...@@ -413,7 +413,7 @@ acpi_ev_initialize_region (
acpi_operand_object *region_obj2; acpi_operand_object *region_obj2;
ACPI_FUNCTION_TRACE_U32 ("Ev_initialize_region", acpi_ns_locked); ACPI_FUNCTION_TRACE_U32 ("ev_initialize_region", acpi_ns_locked);
if (!region_obj) { if (!region_obj) {
...@@ -453,7 +453,7 @@ acpi_ev_initialize_region ( ...@@ -453,7 +453,7 @@ acpi_ev_initialize_region (
/* /*
* The following loop depends upon the root Node having no parent * The following loop depends upon the root Node having no parent
* ie: Acpi_gbl_Root_node->Parent_entry being set to NULL * ie: acpi_gbl_root_node->parent_entry being set to NULL
*/ */
while (node) { while (node) {
/* /*
...@@ -519,7 +519,7 @@ acpi_ev_initialize_region ( ...@@ -519,7 +519,7 @@ acpi_ev_initialize_region (
* If we get here, there is no handler for this region * If we get here, there is no handler for this region
*/ */
ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION,
"No handler for Region_type %s(%X) (Region_obj %p)\n", "No handler for region_type %s(%X) (region_obj %p)\n",
acpi_ut_get_region_name (space_id), space_id, region_obj)); acpi_ut_get_region_name (space_id), space_id, region_obj));
return_ACPI_STATUS (AE_NOT_EXIST); return_ACPI_STATUS (AE_NOT_EXIST);
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ev_sci_handler * FUNCTION: acpi_ev_sci_handler
* *
* PARAMETERS: Context - Calling Context * PARAMETERS: Context - Calling Context
* *
...@@ -54,7 +54,7 @@ acpi_ev_sci_handler ( ...@@ -54,7 +54,7 @@ acpi_ev_sci_handler (
acpi_status status; acpi_status status;
ACPI_FUNCTION_TRACE("Ev_sci_handler"); ACPI_FUNCTION_TRACE("ev_sci_handler");
/* /*
...@@ -73,9 +73,9 @@ acpi_ev_sci_handler ( ...@@ -73,9 +73,9 @@ acpi_ev_sci_handler (
} }
/* /*
* Fixed Acpi_events: * Fixed acpi_events:
* ------------- * -------------
* Check for and dispatch any Fixed Acpi_events that have occurred * Check for and dispatch any Fixed acpi_events that have occurred
*/ */
interrupt_handled |= acpi_ev_fixed_event_detect (); interrupt_handled |= acpi_ev_fixed_event_detect ();
...@@ -92,7 +92,7 @@ acpi_ev_sci_handler ( ...@@ -92,7 +92,7 @@ acpi_ev_sci_handler (
/****************************************************************************** /******************************************************************************
* *
* FUNCTION: Acpi_ev_install_sci_handler * FUNCTION: acpi_ev_install_sci_handler
* *
* PARAMETERS: none * PARAMETERS: none
* *
...@@ -108,7 +108,7 @@ acpi_ev_install_sci_handler (void) ...@@ -108,7 +108,7 @@ acpi_ev_install_sci_handler (void)
u32 status = AE_OK; u32 status = AE_OK;
ACPI_FUNCTION_TRACE ("Ev_install_sci_handler"); ACPI_FUNCTION_TRACE ("ev_install_sci_handler");
status = acpi_os_install_interrupt_handler ((u32) acpi_gbl_FADT->sci_int, status = acpi_os_install_interrupt_handler ((u32) acpi_gbl_FADT->sci_int,
...@@ -119,7 +119,7 @@ acpi_ev_install_sci_handler (void) ...@@ -119,7 +119,7 @@ acpi_ev_install_sci_handler (void)
/****************************************************************************** /******************************************************************************
* *
* FUNCTION: Acpi_ev_remove_sci_handler * FUNCTION: acpi_ev_remove_sci_handler
* *
* PARAMETERS: none * PARAMETERS: none
* *
...@@ -142,7 +142,7 @@ acpi_ev_remove_sci_handler (void) ...@@ -142,7 +142,7 @@ acpi_ev_remove_sci_handler (void)
acpi_status status; acpi_status status;
ACPI_FUNCTION_TRACE ("Ev_remove_sci_handler"); ACPI_FUNCTION_TRACE ("ev_remove_sci_handler");
/* Just let the OS remove the handler and disable the level */ /* Just let the OS remove the handler and disable the level */
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_install_fixed_event_handler * FUNCTION: acpi_install_fixed_event_handler
* *
* PARAMETERS: Event - Event type to enable. * PARAMETERS: Event - Event type to enable.
* Handler - Pointer to the handler function for the * Handler - Pointer to the handler function for the
...@@ -57,7 +57,7 @@ acpi_install_fixed_event_handler ( ...@@ -57,7 +57,7 @@ acpi_install_fixed_event_handler (
acpi_status status; acpi_status status;
ACPI_FUNCTION_TRACE ("Acpi_install_fixed_event_handler"); ACPI_FUNCTION_TRACE ("acpi_install_fixed_event_handler");
/* Parameter validation */ /* Parameter validation */
...@@ -106,7 +106,7 @@ acpi_install_fixed_event_handler ( ...@@ -106,7 +106,7 @@ acpi_install_fixed_event_handler (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_remove_fixed_event_handler * FUNCTION: acpi_remove_fixed_event_handler
* *
* PARAMETERS: Event - Event type to disable. * PARAMETERS: Event - Event type to disable.
* Handler - Address of the handler * Handler - Address of the handler
...@@ -125,7 +125,7 @@ acpi_remove_fixed_event_handler ( ...@@ -125,7 +125,7 @@ acpi_remove_fixed_event_handler (
acpi_status status = AE_OK; acpi_status status = AE_OK;
ACPI_FUNCTION_TRACE ("Acpi_remove_fixed_event_handler"); ACPI_FUNCTION_TRACE ("acpi_remove_fixed_event_handler");
/* Parameter validation */ /* Parameter validation */
...@@ -163,12 +163,12 @@ acpi_remove_fixed_event_handler ( ...@@ -163,12 +163,12 @@ acpi_remove_fixed_event_handler (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_install_notify_handler * FUNCTION: acpi_install_notify_handler
* *
* PARAMETERS: Device - The device for which notifies will be handled * PARAMETERS: Device - The device for which notifies will be handled
* Handler_type - The type of handler: * handler_type - The type of handler:
* ACPI_SYSTEM_NOTIFY: System_handler (00-7f) * ACPI_SYSTEM_NOTIFY: system_handler (00-7f)
* ACPI_DEVICE_NOTIFY: Driver_handler (80-ff) * ACPI_DEVICE_NOTIFY: driver_handler (80-ff)
* Handler - Address of the handler * Handler - Address of the handler
* Context - Value passed to the handler on each GPE * Context - Value passed to the handler on each GPE
* *
...@@ -191,7 +191,7 @@ acpi_install_notify_handler ( ...@@ -191,7 +191,7 @@ acpi_install_notify_handler (
acpi_status status; acpi_status status;
ACPI_FUNCTION_TRACE ("Acpi_install_notify_handler"); ACPI_FUNCTION_TRACE ("acpi_install_notify_handler");
/* Parameter validation */ /* Parameter validation */
...@@ -320,12 +320,12 @@ acpi_install_notify_handler ( ...@@ -320,12 +320,12 @@ acpi_install_notify_handler (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_remove_notify_handler * FUNCTION: acpi_remove_notify_handler
* *
* PARAMETERS: Device - The device for which notifies will be handled * PARAMETERS: Device - The device for which notifies will be handled
* Handler_type - The type of handler: * handler_type - The type of handler:
* ACPI_SYSTEM_NOTIFY: System_handler (00-7f) * ACPI_SYSTEM_NOTIFY: system_handler (00-7f)
* ACPI_DEVICE_NOTIFY: Driver_handler (80-ff) * ACPI_DEVICE_NOTIFY: driver_handler (80-ff)
* Handler - Address of the handler * Handler - Address of the handler
* RETURN: Status * RETURN: Status
* *
...@@ -345,7 +345,7 @@ acpi_remove_notify_handler ( ...@@ -345,7 +345,7 @@ acpi_remove_notify_handler (
acpi_status status; acpi_status status;
ACPI_FUNCTION_TRACE ("Acpi_remove_notify_handler"); ACPI_FUNCTION_TRACE ("acpi_remove_notify_handler");
/* Parameter validation */ /* Parameter validation */
...@@ -450,9 +450,9 @@ acpi_remove_notify_handler ( ...@@ -450,9 +450,9 @@ acpi_remove_notify_handler (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_install_gpe_handler * FUNCTION: acpi_install_gpe_handler
* *
* PARAMETERS: Gpe_number - The GPE number. The numbering scheme is * PARAMETERS: gpe_number - The GPE number. The numbering scheme is
* bank 0 first, then bank 1. * bank 0 first, then bank 1.
* Type - Whether this GPE should be treated as an * Type - Whether this GPE should be treated as an
* edge- or level-triggered interrupt. * edge- or level-triggered interrupt.
...@@ -476,7 +476,7 @@ acpi_install_gpe_handler ( ...@@ -476,7 +476,7 @@ acpi_install_gpe_handler (
u32 gpe_number_index; u32 gpe_number_index;
ACPI_FUNCTION_TRACE ("Acpi_install_gpe_handler"); ACPI_FUNCTION_TRACE ("acpi_install_gpe_handler");
/* Parameter validation */ /* Parameter validation */
...@@ -528,14 +528,14 @@ acpi_install_gpe_handler ( ...@@ -528,14 +528,14 @@ acpi_install_gpe_handler (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_remove_gpe_handler * FUNCTION: acpi_remove_gpe_handler
* *
* PARAMETERS: Gpe_number - The event to remove a handler * PARAMETERS: gpe_number - The event to remove a handler
* Handler - Address of the handler * Handler - Address of the handler
* *
* RETURN: Status * RETURN: Status
* *
* DESCRIPTION: Remove a handler for a General Purpose Acpi_event. * DESCRIPTION: Remove a handler for a General Purpose acpi_event.
* *
******************************************************************************/ ******************************************************************************/
...@@ -548,7 +548,7 @@ acpi_remove_gpe_handler ( ...@@ -548,7 +548,7 @@ acpi_remove_gpe_handler (
u32 gpe_number_index; u32 gpe_number_index;
ACPI_FUNCTION_TRACE ("Acpi_remove_gpe_handler"); ACPI_FUNCTION_TRACE ("acpi_remove_gpe_handler");
/* Parameter validation */ /* Parameter validation */
...@@ -598,10 +598,10 @@ acpi_remove_gpe_handler ( ...@@ -598,10 +598,10 @@ acpi_remove_gpe_handler (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_acquire_global_lock * FUNCTION: acpi_acquire_global_lock
* *
* PARAMETERS: Timeout - How long the caller is willing to wait * PARAMETERS: Timeout - How long the caller is willing to wait
* Out_handle - A handle to the lock if acquired * out_handle - A handle to the lock if acquired
* *
* RETURN: Status * RETURN: Status
* *
...@@ -640,9 +640,9 @@ acpi_acquire_global_lock ( ...@@ -640,9 +640,9 @@ acpi_acquire_global_lock (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_release_global_lock * FUNCTION: acpi_release_global_lock
* *
* PARAMETERS: Handle - Returned from Acpi_acquire_global_lock * PARAMETERS: Handle - Returned from acpi_acquire_global_lock
* *
* RETURN: Status * RETURN: Status
* *
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_enable * FUNCTION: acpi_enable
* *
* PARAMETERS: None * PARAMETERS: None
* *
...@@ -48,7 +48,7 @@ acpi_enable (void) ...@@ -48,7 +48,7 @@ acpi_enable (void)
acpi_status status = AE_OK; acpi_status status = AE_OK;
ACPI_FUNCTION_TRACE ("Acpi_enable"); ACPI_FUNCTION_TRACE ("acpi_enable");
/* Make sure we have the FADT*/ /* Make sure we have the FADT*/
...@@ -79,7 +79,7 @@ acpi_enable (void) ...@@ -79,7 +79,7 @@ acpi_enable (void)
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_disable * FUNCTION: acpi_disable
* *
* PARAMETERS: None * PARAMETERS: None
* *
...@@ -95,7 +95,7 @@ acpi_disable (void) ...@@ -95,7 +95,7 @@ acpi_disable (void)
acpi_status status = AE_OK; acpi_status status = AE_OK;
ACPI_FUNCTION_TRACE ("Acpi_disable"); ACPI_FUNCTION_TRACE ("acpi_disable");
if (!acpi_gbl_FADT) { if (!acpi_gbl_FADT) {
ACPI_DEBUG_PRINT ((ACPI_DB_WARN, "No FADT information present!\n")); ACPI_DEBUG_PRINT ((ACPI_DB_WARN, "No FADT information present!\n"));
...@@ -124,7 +124,7 @@ acpi_disable (void) ...@@ -124,7 +124,7 @@ acpi_disable (void)
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_enable_event * FUNCTION: acpi_enable_event
* *
* PARAMETERS: Event - The fixed event or GPE to be enabled * PARAMETERS: Event - The fixed event or GPE to be enabled
* Type - The type of event * Type - The type of event
...@@ -146,7 +146,7 @@ acpi_enable_event ( ...@@ -146,7 +146,7 @@ acpi_enable_event (
u32 value; u32 value;
ACPI_FUNCTION_TRACE ("Acpi_enable_event"); ACPI_FUNCTION_TRACE ("acpi_enable_event");
/* The Type must be either Fixed Event or GPE */ /* The Type must be either Fixed Event or GPE */
...@@ -218,7 +218,7 @@ acpi_enable_event ( ...@@ -218,7 +218,7 @@ acpi_enable_event (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_disable_event * FUNCTION: acpi_disable_event
* *
* PARAMETERS: Event - The fixed event or GPE to be enabled * PARAMETERS: Event - The fixed event or GPE to be enabled
* Type - The type of event, fixed or general purpose * Type - The type of event, fixed or general purpose
...@@ -240,7 +240,7 @@ acpi_disable_event ( ...@@ -240,7 +240,7 @@ acpi_disable_event (
u32 value; u32 value;
ACPI_FUNCTION_TRACE ("Acpi_disable_event"); ACPI_FUNCTION_TRACE ("acpi_disable_event");
/* The Type must be either Fixed Event or GPE */ /* The Type must be either Fixed Event or GPE */
...@@ -310,7 +310,7 @@ acpi_disable_event ( ...@@ -310,7 +310,7 @@ acpi_disable_event (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_clear_event * FUNCTION: acpi_clear_event
* *
* PARAMETERS: Event - The fixed event or GPE to be cleared * PARAMETERS: Event - The fixed event or GPE to be cleared
* Type - The type of event * Type - The type of event
...@@ -329,7 +329,7 @@ acpi_clear_event ( ...@@ -329,7 +329,7 @@ acpi_clear_event (
acpi_status status = AE_OK; acpi_status status = AE_OK;
ACPI_FUNCTION_TRACE ("Acpi_clear_event"); ACPI_FUNCTION_TRACE ("acpi_clear_event");
/* The Type must be either Fixed Event or GPE */ /* The Type must be either Fixed Event or GPE */
...@@ -375,7 +375,7 @@ acpi_clear_event ( ...@@ -375,7 +375,7 @@ acpi_clear_event (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_get_event_status * FUNCTION: acpi_get_event_status
* *
* PARAMETERS: Event - The fixed event or GPE * PARAMETERS: Event - The fixed event or GPE
* Type - The type of event * Type - The type of event
...@@ -398,7 +398,7 @@ acpi_get_event_status ( ...@@ -398,7 +398,7 @@ acpi_get_event_status (
acpi_status status = AE_OK; acpi_status status = AE_OK;
ACPI_FUNCTION_TRACE ("Acpi_get_event_status"); ACPI_FUNCTION_TRACE ("acpi_get_event_status");
if (!event_status) { if (!event_status) {
......
...@@ -35,17 +35,17 @@ ...@@ -35,17 +35,17 @@
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_install_address_space_handler * FUNCTION: acpi_install_address_space_handler
* *
* PARAMETERS: Device - Handle for the device * PARAMETERS: Device - Handle for the device
* Space_id - The address space ID * space_id - The address space ID
* Handler - Address of the handler * Handler - Address of the handler
* Setup - Address of the setup function * Setup - Address of the setup function
* Context - Value passed to the handler on each access * Context - Value passed to the handler on each access
* *
* RETURN: Status * RETURN: Status
* *
* DESCRIPTION: Install a handler for all Op_regions of a given Space_id. * DESCRIPTION: Install a handler for all op_regions of a given space_id.
* *
******************************************************************************/ ******************************************************************************/
...@@ -65,7 +65,7 @@ acpi_install_address_space_handler ( ...@@ -65,7 +65,7 @@ acpi_install_address_space_handler (
u16 flags = 0; u16 flags = 0;
ACPI_FUNCTION_TRACE ("Acpi_install_address_space_handler"); ACPI_FUNCTION_TRACE ("acpi_install_address_space_handler");
/* Parameter validation */ /* Parameter validation */
...@@ -180,7 +180,7 @@ acpi_install_address_space_handler ( ...@@ -180,7 +180,7 @@ acpi_install_address_space_handler (
ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION,
"Creating object on Device %p while installing handler\n", node)); "Creating object on Device %p while installing handler\n", node));
/* Obj_desc does not exist, create one */ /* obj_desc does not exist, create one */
if (node->type == ACPI_TYPE_ANY) { if (node->type == ACPI_TYPE_ANY) {
type = ACPI_TYPE_DEVICE; type = ACPI_TYPE_DEVICE;
...@@ -268,9 +268,9 @@ acpi_install_address_space_handler ( ...@@ -268,9 +268,9 @@ acpi_install_address_space_handler (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_remove_address_space_handler * FUNCTION: acpi_remove_address_space_handler
* *
* PARAMETERS: Space_id - The address space ID * PARAMETERS: space_id - The address space ID
* Handler - Address of the handler * Handler - Address of the handler
* *
* RETURN: Status * RETURN: Status
...@@ -293,7 +293,7 @@ acpi_remove_address_space_handler ( ...@@ -293,7 +293,7 @@ acpi_remove_address_space_handler (
acpi_status status; acpi_status status;
ACPI_FUNCTION_TRACE ("Acpi_remove_address_space_handler"); ACPI_FUNCTION_TRACE ("acpi_remove_address_space_handler");
/* Parameter validation */ /* Parameter validation */
...@@ -390,7 +390,7 @@ acpi_remove_address_space_handler ( ...@@ -390,7 +390,7 @@ acpi_remove_address_space_handler (
* The handler does not exist * The handler does not exist
*/ */
ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION,
"Unable to remove address handler %p for %s(%X), Dev_node %p, obj %p\n", "Unable to remove address handler %p for %s(%X), dev_node %p, obj %p\n",
handler, acpi_ut_get_region_name (space_id), space_id, node, obj_desc)); handler, acpi_ut_get_region_name (space_id), space_id, node, obj_desc));
status = AE_NOT_EXIST; status = AE_NOT_EXIST;
......
...@@ -37,11 +37,11 @@ ...@@ -37,11 +37,11 @@
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_add_table * FUNCTION: acpi_ex_add_table
* *
* PARAMETERS: Table - Pointer to raw table * PARAMETERS: Table - Pointer to raw table
* Parent_node - Where to load the table (scope) * parent_node - Where to load the table (scope)
* Ddb_handle - Where to return the table handle. * ddb_handle - Where to return the table handle.
* *
* RETURN: Status * RETURN: Status
* *
...@@ -61,7 +61,7 @@ acpi_ex_add_table ( ...@@ -61,7 +61,7 @@ acpi_ex_add_table (
acpi_operand_object *obj_desc; acpi_operand_object *obj_desc;
ACPI_FUNCTION_TRACE ("Ex_add_table"); ACPI_FUNCTION_TRACE ("ex_add_table");
/* Create an object to be the table handle */ /* Create an object to be the table handle */
...@@ -108,10 +108,10 @@ acpi_ex_add_table ( ...@@ -108,10 +108,10 @@ acpi_ex_add_table (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_load_table_op * FUNCTION: acpi_ex_load_table_op
* *
* PARAMETERS: Walk_state - Current state with operands * PARAMETERS: walk_state - Current state with operands
* Return_desc - Where to store the return object * return_desc - Where to store the return object
* *
* RETURN: Status * RETURN: Status
* *
...@@ -133,7 +133,7 @@ acpi_ex_load_table_op ( ...@@ -133,7 +133,7 @@ acpi_ex_load_table_op (
acpi_operand_object *ddb_handle; acpi_operand_object *ddb_handle;
ACPI_FUNCTION_TRACE ("Ex_load_table_op"); ACPI_FUNCTION_TRACE ("ex_load_table_op");
#if 0 #if 0
...@@ -177,11 +177,11 @@ acpi_ex_load_table_op ( ...@@ -177,11 +177,11 @@ acpi_ex_load_table_op (
start_node = walk_state->scope_info->scope.node; start_node = walk_state->scope_info->scope.node;
parent_node = acpi_gbl_root_node; parent_node = acpi_gbl_root_node;
/* Root_path (optional parameter) */ /* root_path (optional parameter) */
if (operand[3]->string.length > 0) { if (operand[3]->string.length > 0) {
/* /*
* Find the node referenced by the Root_path_string. This is the * Find the node referenced by the root_path_string. This is the
* location within the namespace where the table will be loaded. * location within the namespace where the table will be loaded.
*/ */
status = acpi_ns_get_node_by_path (operand[3]->string.pointer, start_node, status = acpi_ns_get_node_by_path (operand[3]->string.pointer, start_node,
...@@ -191,20 +191,20 @@ acpi_ex_load_table_op ( ...@@ -191,20 +191,20 @@ acpi_ex_load_table_op (
} }
} }
/* Parameter_path (optional parameter) */ /* parameter_path (optional parameter) */
if (operand[4]->string.length > 0) { if (operand[4]->string.length > 0) {
if ((operand[4]->string.pointer[0] != '\\') && if ((operand[4]->string.pointer[0] != '\\') &&
(operand[4]->string.pointer[0] != '^')) { (operand[4]->string.pointer[0] != '^')) {
/* /*
* Path is not absolute, so it will be relative to the node * Path is not absolute, so it will be relative to the node
* referenced by the Root_path_string (or the NS root if omitted) * referenced by the root_path_string (or the NS root if omitted)
*/ */
start_node = parent_node; start_node = parent_node;
} }
/* /*
* Find the node referenced by the Parameter_path_string * Find the node referenced by the parameter_path_string
*/ */
status = acpi_ns_get_node_by_path (operand[4]->string.pointer, start_node, status = acpi_ns_get_node_by_path (operand[4]->string.pointer, start_node,
ACPI_NS_SEARCH_PARENT, &parameter_node); ACPI_NS_SEARCH_PARENT, &parameter_node);
...@@ -238,12 +238,12 @@ acpi_ex_load_table_op ( ...@@ -238,12 +238,12 @@ acpi_ex_load_table_op (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_load_op * FUNCTION: acpi_ex_load_op
* *
* PARAMETERS: Obj_desc - Region or Field where the table will be * PARAMETERS: obj_desc - Region or Field where the table will be
* obtained * obtained
* Target - Where a handle to the table will be stored * Target - Where a handle to the table will be stored
* Walk_state - Current state * walk_state - Current state
* *
* RETURN: Status * RETURN: Status
* *
...@@ -265,10 +265,10 @@ acpi_ex_load_op ( ...@@ -265,10 +265,10 @@ acpi_ex_load_op (
acpi_table_header table_header; acpi_table_header table_header;
u32 i; u32 i;
ACPI_FUNCTION_TRACE ("Ex_load_op"); ACPI_FUNCTION_TRACE ("ex_load_op");
/* Object can be either an Op_region or a Field */ /* Object can be either an op_region or a Field */
switch (ACPI_GET_OBJECT_TYPE (obj_desc)) { switch (ACPI_GET_OBJECT_TYPE (obj_desc)) {
case ACPI_TYPE_REGION: case ACPI_TYPE_REGION:
...@@ -361,7 +361,7 @@ acpi_ex_load_op ( ...@@ -361,7 +361,7 @@ acpi_ex_load_op (
goto cleanup; goto cleanup;
} }
/* Store the Ddb_handle into the Target operand */ /* Store the ddb_handle into the Target operand */
status = acpi_ex_store (ddb_handle, target, walk_state); status = acpi_ex_store (ddb_handle, target, walk_state);
if (ACPI_FAILURE (status)) { if (ACPI_FAILURE (status)) {
...@@ -385,9 +385,9 @@ acpi_ex_load_op ( ...@@ -385,9 +385,9 @@ acpi_ex_load_op (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_unload_table * FUNCTION: acpi_ex_unload_table
* *
* PARAMETERS: Ddb_handle - Handle to a previously loaded table * PARAMETERS: ddb_handle - Handle to a previously loaded table
* *
* RETURN: Status * RETURN: Status
* *
...@@ -404,13 +404,13 @@ acpi_ex_unload_table ( ...@@ -404,13 +404,13 @@ acpi_ex_unload_table (
acpi_table_desc *table_info; acpi_table_desc *table_info;
ACPI_FUNCTION_TRACE ("Ex_unload_table"); ACPI_FUNCTION_TRACE ("ex_unload_table");
/* /*
* Validate the handle * Validate the handle
* Although the handle is partially validated in Acpi_ex_reconfiguration(), * Although the handle is partially validated in acpi_ex_reconfiguration(),
* when it calls Acpi_ex_resolve_operands(), the handle is more completely * when it calls acpi_ex_resolve_operands(), the handle is more completely
* validated here. * validated here.
*/ */
if ((!ddb_handle) || if ((!ddb_handle) ||
...@@ -419,13 +419,13 @@ acpi_ex_unload_table ( ...@@ -419,13 +419,13 @@ acpi_ex_unload_table (
return_ACPI_STATUS (AE_BAD_PARAMETER); return_ACPI_STATUS (AE_BAD_PARAMETER);
} }
/* Get the actual table descriptor from the Ddb_handle */ /* Get the actual table descriptor from the ddb_handle */
table_info = (acpi_table_desc *) table_desc->reference.object; table_info = (acpi_table_desc *) table_desc->reference.object;
/* /*
* Delete the entire namespace under this table Node * Delete the entire namespace under this table Node
* (Offset contains the Table_id) * (Offset contains the table_id)
*/ */
acpi_ns_delete_namespace_by_owner (table_info->table_id); acpi_ns_delete_namespace_by_owner (table_info->table_id);
...@@ -433,7 +433,7 @@ acpi_ex_unload_table ( ...@@ -433,7 +433,7 @@ acpi_ex_unload_table (
(void) acpi_tb_uninstall_table (table_info->installed_desc); (void) acpi_tb_uninstall_table (table_info->installed_desc);
/* Delete the table descriptor (Ddb_handle) */ /* Delete the table descriptor (ddb_handle) */
acpi_ut_remove_reference (table_desc); acpi_ut_remove_reference (table_desc);
return_ACPI_STATUS (status); return_ACPI_STATUS (status);
......
...@@ -34,11 +34,11 @@ ...@@ -34,11 +34,11 @@
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_convert_to_integer * FUNCTION: acpi_ex_convert_to_integer
* *
* PARAMETERS: *Obj_desc - Object to be converted. Must be an * PARAMETERS: *obj_desc - Object to be converted. Must be an
* Integer, Buffer, or String * Integer, Buffer, or String
* Walk_state - Current method state * walk_state - Current method state
* *
* RETURN: Status * RETURN: Status
* *
...@@ -60,7 +60,7 @@ acpi_ex_convert_to_integer ( ...@@ -60,7 +60,7 @@ acpi_ex_convert_to_integer (
acpi_status status; acpi_status status;
ACPI_FUNCTION_TRACE_PTR ("Ex_convert_to_integer", obj_desc); ACPI_FUNCTION_TRACE_PTR ("ex_convert_to_integer", obj_desc);
switch (ACPI_GET_OBJECT_TYPE (obj_desc)) { switch (ACPI_GET_OBJECT_TYPE (obj_desc)) {
...@@ -168,11 +168,11 @@ acpi_ex_convert_to_integer ( ...@@ -168,11 +168,11 @@ acpi_ex_convert_to_integer (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_convert_to_buffer * FUNCTION: acpi_ex_convert_to_buffer
* *
* PARAMETERS: *Obj_desc - Object to be converted. Must be an * PARAMETERS: *obj_desc - Object to be converted. Must be an
* Integer, Buffer, or String * Integer, Buffer, or String
* Walk_state - Current method state * walk_state - Current method state
* *
* RETURN: Status * RETURN: Status
* *
...@@ -191,7 +191,7 @@ acpi_ex_convert_to_buffer ( ...@@ -191,7 +191,7 @@ acpi_ex_convert_to_buffer (
u8 *new_buf; u8 *new_buf;
ACPI_FUNCTION_TRACE_PTR ("Ex_convert_to_buffer", obj_desc); ACPI_FUNCTION_TRACE_PTR ("ex_convert_to_buffer", obj_desc);
switch (ACPI_GET_OBJECT_TYPE (obj_desc)) { switch (ACPI_GET_OBJECT_TYPE (obj_desc)) {
...@@ -268,12 +268,12 @@ acpi_ex_convert_to_buffer ( ...@@ -268,12 +268,12 @@ acpi_ex_convert_to_buffer (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_convert_ascii * FUNCTION: acpi_ex_convert_ascii
* *
* PARAMETERS: Integer - Value to be converted * PARAMETERS: Integer - Value to be converted
* Base - 10 or 16 * Base - 10 or 16
* String - Where the string is returned * String - Where the string is returned
* Data_width - Size of data item to be converted * data_width - Size of data item to be converted
* *
* RETURN: Actual string length * RETURN: Actual string length
* *
...@@ -375,11 +375,11 @@ acpi_ex_convert_to_ascii ( ...@@ -375,11 +375,11 @@ acpi_ex_convert_to_ascii (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_convert_to_string * FUNCTION: acpi_ex_convert_to_string
* *
* PARAMETERS: *Obj_desc - Object to be converted. Must be an * PARAMETERS: *obj_desc - Object to be converted. Must be an
* Integer, Buffer, or String * Integer, Buffer, or String
* Walk_state - Current method state * walk_state - Current method state
* *
* RETURN: Status * RETURN: Status
* *
...@@ -402,7 +402,7 @@ acpi_ex_convert_to_string ( ...@@ -402,7 +402,7 @@ acpi_ex_convert_to_string (
u8 *pointer; u8 *pointer;
ACPI_FUNCTION_TRACE_PTR ("Ex_convert_to_string", obj_desc); ACPI_FUNCTION_TRACE_PTR ("ex_convert_to_string", obj_desc);
switch (ACPI_GET_OBJECT_TYPE (obj_desc)) { switch (ACPI_GET_OBJECT_TYPE (obj_desc)) {
...@@ -439,7 +439,7 @@ acpi_ex_convert_to_string ( ...@@ -439,7 +439,7 @@ acpi_ex_convert_to_string (
new_buf = ACPI_MEM_CALLOCATE ((acpi_size) string_length + 1); new_buf = ACPI_MEM_CALLOCATE ((acpi_size) string_length + 1);
if (!new_buf) { if (!new_buf) {
ACPI_REPORT_ERROR ACPI_REPORT_ERROR
(("Ex_convert_to_string: Buffer allocation failure\n")); (("ex_convert_to_string: Buffer allocation failure\n"));
acpi_ut_remove_reference (ret_desc); acpi_ut_remove_reference (ret_desc);
return_ACPI_STATUS (AE_NO_MEMORY); return_ACPI_STATUS (AE_NO_MEMORY);
} }
...@@ -499,7 +499,7 @@ acpi_ex_convert_to_string ( ...@@ -499,7 +499,7 @@ acpi_ex_convert_to_string (
new_buf = ACPI_MEM_CALLOCATE ((acpi_size) string_length + 1); new_buf = ACPI_MEM_CALLOCATE ((acpi_size) string_length + 1);
if (!new_buf) { if (!new_buf) {
ACPI_REPORT_ERROR ACPI_REPORT_ERROR
(("Ex_convert_to_string: Buffer allocation failure\n")); (("ex_convert_to_string: Buffer allocation failure\n"));
acpi_ut_remove_reference (ret_desc); acpi_ut_remove_reference (ret_desc);
return_ACPI_STATUS (AE_NO_MEMORY); return_ACPI_STATUS (AE_NO_MEMORY);
} }
...@@ -539,11 +539,11 @@ acpi_ex_convert_to_string ( ...@@ -539,11 +539,11 @@ acpi_ex_convert_to_string (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_convert_to_target_type * FUNCTION: acpi_ex_convert_to_target_type
* *
* PARAMETERS: Destination_type - Current type of the destination * PARAMETERS: destination_type - Current type of the destination
* Source_desc - Source object to be converted. * source_desc - Source object to be converted.
* Walk_state - Current method state * walk_state - Current method state
* *
* RETURN: Status * RETURN: Status
* *
...@@ -561,7 +561,7 @@ acpi_ex_convert_to_target_type ( ...@@ -561,7 +561,7 @@ acpi_ex_convert_to_target_type (
acpi_status status = AE_OK; acpi_status status = AE_OK;
ACPI_FUNCTION_TRACE ("Ex_convert_to_target_type"); ACPI_FUNCTION_TRACE ("ex_convert_to_target_type");
/* Default behavior */ /* Default behavior */
...@@ -642,14 +642,14 @@ acpi_ex_convert_to_target_type ( ...@@ -642,14 +642,14 @@ acpi_ex_convert_to_target_type (
case ARGI_REFERENCE: case ARGI_REFERENCE:
/* /*
* Create_xxxx_field cases - we are storing the field object into the name * create_xxxx_field cases - we are storing the field object into the name
*/ */
break; break;
default: default:
ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, ACPI_DEBUG_PRINT ((ACPI_DB_ERROR,
"Unknown Target type ID 0x%X Op %s Dest_type %s\n", "Unknown Target type ID 0x%X Op %s dest_type %s\n",
GET_CURRENT_ARG_TYPE (walk_state->op_info->runtime_args), GET_CURRENT_ARG_TYPE (walk_state->op_info->runtime_args),
walk_state->op_info->name, acpi_ut_get_type_name (destination_type))); walk_state->op_info->name, acpi_ut_get_type_name (destination_type)));
......
...@@ -38,9 +38,9 @@ ...@@ -38,9 +38,9 @@
#ifndef ACPI_NO_METHOD_EXECUTION #ifndef ACPI_NO_METHOD_EXECUTION
/***************************************************************************** /*****************************************************************************
* *
* FUNCTION: Acpi_ex_create_alias * FUNCTION: acpi_ex_create_alias
* *
* PARAMETERS: Walk_state - Current state, contains operands * PARAMETERS: walk_state - Current state, contains operands
* *
* RETURN: Status * RETURN: Status
* *
...@@ -57,7 +57,7 @@ acpi_ex_create_alias ( ...@@ -57,7 +57,7 @@ acpi_ex_create_alias (
acpi_status status = AE_OK; acpi_status status = AE_OK;
ACPI_FUNCTION_TRACE ("Ex_create_alias"); ACPI_FUNCTION_TRACE ("ex_create_alias");
/* Get the source/alias operands (both namespace nodes) */ /* Get the source/alias operands (both namespace nodes) */
...@@ -122,9 +122,9 @@ acpi_ex_create_alias ( ...@@ -122,9 +122,9 @@ acpi_ex_create_alias (
/***************************************************************************** /*****************************************************************************
* *
* FUNCTION: Acpi_ex_create_event * FUNCTION: acpi_ex_create_event
* *
* PARAMETERS: Walk_state - Current state * PARAMETERS: walk_state - Current state
* *
* RETURN: Status * RETURN: Status
* *
...@@ -140,7 +140,7 @@ acpi_ex_create_event ( ...@@ -140,7 +140,7 @@ acpi_ex_create_event (
acpi_operand_object *obj_desc; acpi_operand_object *obj_desc;
ACPI_FUNCTION_TRACE ("Ex_create_event"); ACPI_FUNCTION_TRACE ("ex_create_event");
obj_desc = acpi_ut_create_internal_object (ACPI_TYPE_EVENT); obj_desc = acpi_ut_create_internal_object (ACPI_TYPE_EVENT);
...@@ -176,15 +176,15 @@ acpi_ex_create_event ( ...@@ -176,15 +176,15 @@ acpi_ex_create_event (
/***************************************************************************** /*****************************************************************************
* *
* FUNCTION: Acpi_ex_create_mutex * FUNCTION: acpi_ex_create_mutex
* *
* PARAMETERS: Walk_state - Current state * PARAMETERS: walk_state - Current state
* *
* RETURN: Status * RETURN: Status
* *
* DESCRIPTION: Create a new mutex object * DESCRIPTION: Create a new mutex object
* *
* Mutex (Name[0], Sync_level[1]) * Mutex (Name[0], sync_level[1])
* *
****************************************************************************/ ****************************************************************************/
...@@ -196,7 +196,7 @@ acpi_ex_create_mutex ( ...@@ -196,7 +196,7 @@ acpi_ex_create_mutex (
acpi_operand_object *obj_desc; acpi_operand_object *obj_desc;
ACPI_FUNCTION_TRACE_PTR ("Ex_create_mutex", ACPI_WALK_OPERANDS); ACPI_FUNCTION_TRACE_PTR ("ex_create_mutex", ACPI_WALK_OPERANDS);
/* Create the new mutex object */ /* Create the new mutex object */
...@@ -238,12 +238,12 @@ acpi_ex_create_mutex ( ...@@ -238,12 +238,12 @@ acpi_ex_create_mutex (
/***************************************************************************** /*****************************************************************************
* *
* FUNCTION: Acpi_ex_create_region * FUNCTION: acpi_ex_create_region
* *
* PARAMETERS: Aml_start - Pointer to the region declaration AML * PARAMETERS: aml_start - Pointer to the region declaration AML
* Aml_length - Max length of the declaration AML * aml_length - Max length of the declaration AML
* Operands - List of operands for the opcode * Operands - List of operands for the opcode
* Walk_state - Current state * walk_state - Current state
* *
* RETURN: Status * RETURN: Status
* *
...@@ -264,7 +264,7 @@ acpi_ex_create_region ( ...@@ -264,7 +264,7 @@ acpi_ex_create_region (
acpi_operand_object *region_obj2; acpi_operand_object *region_obj2;
ACPI_FUNCTION_TRACE ("Ex_create_region"); ACPI_FUNCTION_TRACE ("ex_create_region");
/* Get the Node from the object stack */ /* Get the Node from the object stack */
...@@ -285,7 +285,7 @@ acpi_ex_create_region ( ...@@ -285,7 +285,7 @@ acpi_ex_create_region (
*/ */
if ((region_space >= ACPI_NUM_PREDEFINED_REGIONS) && if ((region_space >= ACPI_NUM_PREDEFINED_REGIONS) &&
(region_space < ACPI_USER_REGION_BEGIN)) { (region_space < ACPI_USER_REGION_BEGIN)) {
ACPI_REPORT_ERROR (("Invalid Address_space type %X\n", region_space)); ACPI_REPORT_ERROR (("Invalid address_space type %X\n", region_space));
return_ACPI_STATUS (AE_AML_INVALID_SPACE_ID); return_ACPI_STATUS (AE_AML_INVALID_SPACE_ID);
} }
...@@ -332,13 +332,13 @@ acpi_ex_create_region ( ...@@ -332,13 +332,13 @@ acpi_ex_create_region (
/***************************************************************************** /*****************************************************************************
* *
* FUNCTION: Acpi_ex_create_table_region * FUNCTION: acpi_ex_create_table_region
* *
* PARAMETERS: Walk_state - Current state * PARAMETERS: walk_state - Current state
* *
* RETURN: Status * RETURN: Status
* *
* DESCRIPTION: Create a new Data_table_region object * DESCRIPTION: Create a new data_table_region object
* *
****************************************************************************/ ****************************************************************************/
...@@ -354,7 +354,7 @@ acpi_ex_create_table_region ( ...@@ -354,7 +354,7 @@ acpi_ex_create_table_region (
acpi_operand_object *region_obj2; acpi_operand_object *region_obj2;
ACPI_FUNCTION_TRACE ("Ex_create_table_region"); ACPI_FUNCTION_TRACE ("ex_create_table_region");
/* Get the Node from the object stack */ /* Get the Node from the object stack */
...@@ -427,15 +427,15 @@ acpi_ex_create_table_region ( ...@@ -427,15 +427,15 @@ acpi_ex_create_table_region (
/***************************************************************************** /*****************************************************************************
* *
* FUNCTION: Acpi_ex_create_processor * FUNCTION: acpi_ex_create_processor
* *
* PARAMETERS: Walk_state - Current state * PARAMETERS: walk_state - Current state
* *
* RETURN: Status * RETURN: Status
* *
* DESCRIPTION: Create a new processor object and populate the fields * DESCRIPTION: Create a new processor object and populate the fields
* *
* Processor (Name[0], Cpu_iD[1], Pblock_addr[2], Pblock_length[3]) * Processor (Name[0], cpu_iD[1], pblock_addr[2], pblock_length[3])
* *
****************************************************************************/ ****************************************************************************/
...@@ -448,7 +448,7 @@ acpi_ex_create_processor ( ...@@ -448,7 +448,7 @@ acpi_ex_create_processor (
acpi_status status; acpi_status status;
ACPI_FUNCTION_TRACE_PTR ("Ex_create_processor", walk_state); ACPI_FUNCTION_TRACE_PTR ("ex_create_processor", walk_state);
/* Create the processor object */ /* Create the processor object */
...@@ -480,15 +480,15 @@ acpi_ex_create_processor ( ...@@ -480,15 +480,15 @@ acpi_ex_create_processor (
/***************************************************************************** /*****************************************************************************
* *
* FUNCTION: Acpi_ex_create_power_resource * FUNCTION: acpi_ex_create_power_resource
* *
* PARAMETERS: Walk_state - Current state * PARAMETERS: walk_state - Current state
* *
* RETURN: Status * RETURN: Status
* *
* DESCRIPTION: Create a new Power_resource object and populate the fields * DESCRIPTION: Create a new power_resource object and populate the fields
* *
* Power_resource (Name[0], System_level[1], Resource_order[2]) * power_resource (Name[0], system_level[1], resource_order[2])
* *
****************************************************************************/ ****************************************************************************/
...@@ -501,7 +501,7 @@ acpi_ex_create_power_resource ( ...@@ -501,7 +501,7 @@ acpi_ex_create_power_resource (
acpi_operand_object *obj_desc; acpi_operand_object *obj_desc;
ACPI_FUNCTION_TRACE_PTR ("Ex_create_power_resource", walk_state); ACPI_FUNCTION_TRACE_PTR ("ex_create_power_resource", walk_state);
/* Create the power resource object */ /* Create the power resource object */
...@@ -532,11 +532,11 @@ acpi_ex_create_power_resource ( ...@@ -532,11 +532,11 @@ acpi_ex_create_power_resource (
/***************************************************************************** /*****************************************************************************
* *
* FUNCTION: Acpi_ex_create_method * FUNCTION: acpi_ex_create_method
* *
* PARAMETERS: Aml_start - First byte of the method's AML * PARAMETERS: aml_start - First byte of the method's AML
* Aml_length - AML byte count for this method * aml_length - AML byte count for this method
* Walk_state - Current state * walk_state - Current state
* *
* RETURN: Status * RETURN: Status
* *
...@@ -556,7 +556,7 @@ acpi_ex_create_method ( ...@@ -556,7 +556,7 @@ acpi_ex_create_method (
u8 method_flags; u8 method_flags;
ACPI_FUNCTION_TRACE_PTR ("Ex_create_method", walk_state); ACPI_FUNCTION_TRACE_PTR ("ex_create_method", walk_state);
/* Create a new method object */ /* Create a new method object */
...@@ -585,7 +585,7 @@ acpi_ex_create_method ( ...@@ -585,7 +585,7 @@ acpi_ex_create_method (
if (method_flags & METHOD_FLAGS_SERIALIZED) { if (method_flags & METHOD_FLAGS_SERIALIZED) {
/* /*
* ACPI 1.0: Concurrency = 1 * ACPI 1.0: Concurrency = 1
* ACPI 2.0: Concurrency = (Sync_level (in method declaration) + 1) * ACPI 2.0: Concurrency = (sync_level (in method declaration) + 1)
*/ */
obj_desc->method.concurrency = (u8) obj_desc->method.concurrency = (u8)
(((method_flags & METHOD_FLAGS_SYNCH_LEVEL) >> 4) + 1); (((method_flags & METHOD_FLAGS_SYNCH_LEVEL) >> 4) + 1);
......
This diff is collapsed.
...@@ -34,11 +34,11 @@ ...@@ -34,11 +34,11 @@
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_read_data_from_field * FUNCTION: acpi_ex_read_data_from_field
* *
* PARAMETERS: Walk_state - Current execution state * PARAMETERS: walk_state - Current execution state
* Obj_desc - The named field * obj_desc - The named field
* Ret_buffer_desc - Where the return data object is stored * ret_buffer_desc - Where the return data object is stored
* *
* RETURN: Status * RETURN: Status
* *
...@@ -60,7 +60,7 @@ acpi_ex_read_data_from_field ( ...@@ -60,7 +60,7 @@ acpi_ex_read_data_from_field (
u8 locked; u8 locked;
ACPI_FUNCTION_TRACE_PTR ("Ex_read_data_from_field", obj_desc); ACPI_FUNCTION_TRACE_PTR ("ex_read_data_from_field", obj_desc);
/* Parameter validation */ /* Parameter validation */
...@@ -71,7 +71,7 @@ acpi_ex_read_data_from_field ( ...@@ -71,7 +71,7 @@ acpi_ex_read_data_from_field (
if (ACPI_GET_OBJECT_TYPE (obj_desc) == ACPI_TYPE_BUFFER_FIELD) { if (ACPI_GET_OBJECT_TYPE (obj_desc) == ACPI_TYPE_BUFFER_FIELD) {
/* /*
* If the Buffer_field arguments have not been previously evaluated, * If the buffer_field arguments have not been previously evaluated,
* evaluate them now and save the results. * evaluate them now and save the results.
*/ */
if (!(obj_desc->common.flags & AOPOBJ_DATA_VALID)) { if (!(obj_desc->common.flags & AOPOBJ_DATA_VALID)) {
...@@ -144,7 +144,7 @@ acpi_ex_read_data_from_field ( ...@@ -144,7 +144,7 @@ acpi_ex_read_data_from_field (
"Obj=%p Type=%X Buf=%p Len=%X\n", "Obj=%p Type=%X Buf=%p Len=%X\n",
obj_desc, ACPI_GET_OBJECT_TYPE (obj_desc), buffer, (u32) length)); obj_desc, ACPI_GET_OBJECT_TYPE (obj_desc), buffer, (u32) length));
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD,
"Field_write: Bit_len=%X Bit_off=%X Byte_off=%X\n", "field_write: bit_len=%X bit_off=%X byte_off=%X\n",
obj_desc->common_field.bit_length, obj_desc->common_field.bit_length,
obj_desc->common_field.start_field_bit_offset, obj_desc->common_field.start_field_bit_offset,
obj_desc->common_field.base_byte_offset)); obj_desc->common_field.base_byte_offset));
...@@ -173,10 +173,10 @@ acpi_ex_read_data_from_field ( ...@@ -173,10 +173,10 @@ acpi_ex_read_data_from_field (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_write_data_to_field * FUNCTION: acpi_ex_write_data_to_field
* *
* PARAMETERS: Source_desc - Contains data to write * PARAMETERS: source_desc - Contains data to write
* Obj_desc - The named field * obj_desc - The named field
* *
* RETURN: Status * RETURN: Status
* *
...@@ -199,7 +199,7 @@ acpi_ex_write_data_to_field ( ...@@ -199,7 +199,7 @@ acpi_ex_write_data_to_field (
acpi_operand_object *buffer_desc; acpi_operand_object *buffer_desc;
ACPI_FUNCTION_TRACE_PTR ("Ex_write_data_to_field", obj_desc); ACPI_FUNCTION_TRACE_PTR ("ex_write_data_to_field", obj_desc);
/* Parameter validation */ /* Parameter validation */
...@@ -210,7 +210,7 @@ acpi_ex_write_data_to_field ( ...@@ -210,7 +210,7 @@ acpi_ex_write_data_to_field (
if (ACPI_GET_OBJECT_TYPE (obj_desc) == ACPI_TYPE_BUFFER_FIELD) { if (ACPI_GET_OBJECT_TYPE (obj_desc) == ACPI_TYPE_BUFFER_FIELD) {
/* /*
* If the Buffer_field arguments have not been previously evaluated, * If the buffer_field arguments have not been previously evaluated,
* evaluate them now and save the results. * evaluate them now and save the results.
*/ */
if (!(obj_desc->common.flags & AOPOBJ_DATA_VALID)) { if (!(obj_desc->common.flags & AOPOBJ_DATA_VALID)) {
...@@ -319,7 +319,7 @@ acpi_ex_write_data_to_field ( ...@@ -319,7 +319,7 @@ acpi_ex_write_data_to_field (
"Obj=%p Type=%X Buf=%p Len=%X\n", "Obj=%p Type=%X Buf=%p Len=%X\n",
obj_desc, ACPI_GET_OBJECT_TYPE (obj_desc), buffer, length)); obj_desc, ACPI_GET_OBJECT_TYPE (obj_desc), buffer, length));
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD,
"Field_read: Bit_len=%X Bit_off=%X Byte_off=%X\n", "field_read: bit_len=%X bit_off=%X byte_off=%X\n",
obj_desc->common_field.bit_length, obj_desc->common_field.bit_length,
obj_desc->common_field.start_field_bit_offset, obj_desc->common_field.start_field_bit_offset,
obj_desc->common_field.base_byte_offset)); obj_desc->common_field.base_byte_offset));
......
This diff is collapsed.
...@@ -35,16 +35,16 @@ ...@@ -35,16 +35,16 @@
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_get_object_reference * FUNCTION: acpi_ex_get_object_reference
* *
* PARAMETERS: Obj_desc - Create a reference to this object * PARAMETERS: obj_desc - Create a reference to this object
* Return_desc - Where to store the reference * return_desc - Where to store the reference
* Walk_state - Current state * walk_state - Current state
* *
* RETURN: Status * RETURN: Status
* *
* DESCRIPTION: Obtain and return a "reference" to the target object * DESCRIPTION: Obtain and return a "reference" to the target object
* Common code for the Ref_of_op and the Cond_ref_of_op. * Common code for the ref_of_op and the cond_ref_of_op.
* *
******************************************************************************/ ******************************************************************************/
...@@ -58,7 +58,7 @@ acpi_ex_get_object_reference ( ...@@ -58,7 +58,7 @@ acpi_ex_get_object_reference (
acpi_operand_object *referenced_obj; acpi_operand_object *referenced_obj;
ACPI_FUNCTION_TRACE_PTR ("Ex_get_object_reference", obj_desc); ACPI_FUNCTION_TRACE_PTR ("ex_get_object_reference", obj_desc);
*return_desc = NULL; *return_desc = NULL;
...@@ -128,11 +128,11 @@ acpi_ex_get_object_reference ( ...@@ -128,11 +128,11 @@ acpi_ex_get_object_reference (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_concat_template * FUNCTION: acpi_ex_concat_template
* *
* PARAMETERS: *Obj_desc - Object to be converted. Must be an * PARAMETERS: *obj_desc - Object to be converted. Must be an
* Integer, Buffer, or String * Integer, Buffer, or String
* Walk_state - Current walk state * walk_state - Current walk state
* *
* RETURN: Status * RETURN: Status
* *
...@@ -155,10 +155,10 @@ acpi_ex_concat_template ( ...@@ -155,10 +155,10 @@ acpi_ex_concat_template (
acpi_size length2; acpi_size length2;
ACPI_FUNCTION_TRACE ("Ex_concat_template"); ACPI_FUNCTION_TRACE ("ex_concat_template");
/* Find the End_tags in each resource template */ /* Find the end_tags in each resource template */
end_tag1 = acpi_ut_get_resource_end_tag (obj_desc1); end_tag1 = acpi_ut_get_resource_end_tag (obj_desc1);
end_tag2 = acpi_ut_get_resource_end_tag (obj_desc2); end_tag2 = acpi_ut_get_resource_end_tag (obj_desc2);
...@@ -200,12 +200,12 @@ acpi_ex_concat_template ( ...@@ -200,12 +200,12 @@ acpi_ex_concat_template (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_do_concatenate * FUNCTION: acpi_ex_do_concatenate
* *
* PARAMETERS: Obj_desc1 - First source object * PARAMETERS: obj_desc1 - First source object
* Obj_desc2 - Second source object * obj_desc2 - Second source object
* Actual_return_desc - Where to place the return object * actual_return_desc - Where to place the return object
* Walk_state - Current walk state * walk_state - Current walk state
* *
* RETURN: Status * RETURN: Status
* *
...@@ -284,7 +284,7 @@ acpi_ex_do_concatenate ( ...@@ -284,7 +284,7 @@ acpi_ex_do_concatenate (
(acpi_size) obj_desc2->string.length + 1); (acpi_size) obj_desc2->string.length + 1);
if (!new_buf) { if (!new_buf) {
ACPI_REPORT_ERROR ACPI_REPORT_ERROR
(("Ex_do_concatenate: String allocation failure\n")); (("ex_do_concatenate: String allocation failure\n"));
status = AE_NO_MEMORY; status = AE_NO_MEMORY;
goto cleanup; goto cleanup;
} }
...@@ -347,7 +347,7 @@ acpi_ex_do_concatenate ( ...@@ -347,7 +347,7 @@ acpi_ex_do_concatenate (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_do_math_op * FUNCTION: acpi_ex_do_math_op
* *
* PARAMETERS: Opcode - AML opcode * PARAMETERS: Opcode - AML opcode
* Operand0 - Integer operand #0 * Operand0 - Integer operand #0
...@@ -405,12 +405,12 @@ acpi_ex_do_math_op ( ...@@ -405,12 +405,12 @@ acpi_ex_do_math_op (
return (operand0 * operand1); return (operand0 * operand1);
case AML_SHIFT_LEFT_OP: /* Shift_left (Operand, Shift_count, Result) */ case AML_SHIFT_LEFT_OP: /* shift_left (Operand, shift_count, Result) */
return (operand0 << operand1); return (operand0 << operand1);
case AML_SHIFT_RIGHT_OP: /* Shift_right (Operand, Shift_count, Result) */ case AML_SHIFT_RIGHT_OP: /* shift_right (Operand, shift_count, Result) */
return (operand0 >> operand1); return (operand0 >> operand1);
...@@ -428,7 +428,7 @@ acpi_ex_do_math_op ( ...@@ -428,7 +428,7 @@ acpi_ex_do_math_op (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_do_logical_op * FUNCTION: acpi_ex_do_logical_op
* *
* PARAMETERS: Opcode - AML opcode * PARAMETERS: Opcode - AML opcode
* Operand0 - Integer operand #0 * Operand0 - Integer operand #0
......
...@@ -33,13 +33,13 @@ ...@@ -33,13 +33,13 @@
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_unlink_mutex * FUNCTION: acpi_ex_unlink_mutex
* *
* PARAMETERS: *Obj_desc - The mutex to be unlinked * PARAMETERS: *obj_desc - The mutex to be unlinked
* *
* RETURN: Status * RETURN: Status
* *
* DESCRIPTION: Remove a mutex from the "Acquired_mutex" list * DESCRIPTION: Remove a mutex from the "acquired_mutex" list
* *
******************************************************************************/ ******************************************************************************/
...@@ -69,14 +69,14 @@ acpi_ex_unlink_mutex ( ...@@ -69,14 +69,14 @@ acpi_ex_unlink_mutex (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_link_mutex * FUNCTION: acpi_ex_link_mutex
* *
* PARAMETERS: *Obj_desc - The mutex to be linked * PARAMETERS: *obj_desc - The mutex to be linked
* *List_head - head of the "Acquired_mutex" list * *list_head - head of the "acquired_mutex" list
* *
* RETURN: Status * RETURN: Status
* *
* DESCRIPTION: Add a mutex to the "Acquired_mutex" list for this walk * DESCRIPTION: Add a mutex to the "acquired_mutex" list for this walk
* *
******************************************************************************/ ******************************************************************************/
...@@ -109,10 +109,10 @@ acpi_ex_link_mutex ( ...@@ -109,10 +109,10 @@ acpi_ex_link_mutex (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_acquire_mutex * FUNCTION: acpi_ex_acquire_mutex
* *
* PARAMETERS: *Time_desc - The 'time to delay' object descriptor * PARAMETERS: *time_desc - The 'time to delay' object descriptor
* *Obj_desc - The object descriptor for this op * *obj_desc - The object descriptor for this op
* *
* RETURN: Status * RETURN: Status
* *
...@@ -129,7 +129,7 @@ acpi_ex_acquire_mutex ( ...@@ -129,7 +129,7 @@ acpi_ex_acquire_mutex (
acpi_status status; acpi_status status;
ACPI_FUNCTION_TRACE_PTR ("Ex_acquire_mutex", obj_desc); ACPI_FUNCTION_TRACE_PTR ("ex_acquire_mutex", obj_desc);
if (!obj_desc) { if (!obj_desc) {
...@@ -149,7 +149,7 @@ acpi_ex_acquire_mutex ( ...@@ -149,7 +149,7 @@ acpi_ex_acquire_mutex (
* mutex. This mechanism provides some deadlock prevention * mutex. This mechanism provides some deadlock prevention
*/ */
if (walk_state->thread->current_sync_level > obj_desc->mutex.sync_level) { if (walk_state->thread->current_sync_level > obj_desc->mutex.sync_level) {
ACPI_REPORT_ERROR (("Cannot acquire Mutex [%4.4s], incorrect Sync_level\n", ACPI_REPORT_ERROR (("Cannot acquire Mutex [%4.4s], incorrect sync_level\n",
obj_desc->mutex.node->name.ascii)); obj_desc->mutex.node->name.ascii));
return_ACPI_STATUS (AE_AML_MUTEX_ORDER); return_ACPI_STATUS (AE_AML_MUTEX_ORDER);
} }
...@@ -172,7 +172,7 @@ acpi_ex_acquire_mutex ( ...@@ -172,7 +172,7 @@ acpi_ex_acquire_mutex (
status = acpi_ex_system_acquire_mutex (time_desc, obj_desc); status = acpi_ex_system_acquire_mutex (time_desc, obj_desc);
if (ACPI_FAILURE (status)) { if (ACPI_FAILURE (status)) {
/* Includes failure from a timeout on Time_desc */ /* Includes failure from a timeout on time_desc */
return_ACPI_STATUS (status); return_ACPI_STATUS (status);
} }
...@@ -194,9 +194,9 @@ acpi_ex_acquire_mutex ( ...@@ -194,9 +194,9 @@ acpi_ex_acquire_mutex (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_release_mutex * FUNCTION: acpi_ex_release_mutex
* *
* PARAMETERS: *Obj_desc - The object descriptor for this op * PARAMETERS: *obj_desc - The object descriptor for this op
* *
* RETURN: Status * RETURN: Status
* *
...@@ -212,7 +212,7 @@ acpi_ex_release_mutex ( ...@@ -212,7 +212,7 @@ acpi_ex_release_mutex (
acpi_status status; acpi_status status;
ACPI_FUNCTION_TRACE ("Ex_release_mutex"); ACPI_FUNCTION_TRACE ("ex_release_mutex");
if (!obj_desc) { if (!obj_desc) {
...@@ -251,7 +251,7 @@ acpi_ex_release_mutex ( ...@@ -251,7 +251,7 @@ acpi_ex_release_mutex (
* equal to the current sync level * equal to the current sync level
*/ */
if (obj_desc->mutex.sync_level > walk_state->thread->current_sync_level) { if (obj_desc->mutex.sync_level > walk_state->thread->current_sync_level) {
ACPI_REPORT_ERROR (("Cannot release Mutex [%4.4s], incorrect Sync_level\n", ACPI_REPORT_ERROR (("Cannot release Mutex [%4.4s], incorrect sync_level\n",
obj_desc->mutex.node->name.ascii)); obj_desc->mutex.node->name.ascii));
return_ACPI_STATUS (AE_AML_MUTEX_ORDER); return_ACPI_STATUS (AE_AML_MUTEX_ORDER);
} }
...@@ -285,9 +285,9 @@ acpi_ex_release_mutex ( ...@@ -285,9 +285,9 @@ acpi_ex_release_mutex (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_release_all_mutexes * FUNCTION: acpi_ex_release_all_mutexes
* *
* PARAMETERS: *Mutex_list - Head of the mutex list * PARAMETERS: *mutex_list - Head of the mutex list
* *
* RETURN: Status * RETURN: Status
* *
......
...@@ -42,11 +42,11 @@ ...@@ -42,11 +42,11 @@
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_allocate_name_string * FUNCTION: acpi_ex_allocate_name_string
* *
* PARAMETERS: Prefix_count - Count of parent levels. Special cases: * PARAMETERS: prefix_count - Count of parent levels. Special cases:
* (-1) = root, 0 = none * (-1) = root, 0 = none
* Num_name_segs - count of 4-character name segments * num_name_segs - count of 4-character name segments
* *
* RETURN: A pointer to the allocated string segment. This segment must * RETURN: A pointer to the allocated string segment. This segment must
* be deleted by the caller. * be deleted by the caller.
...@@ -65,11 +65,11 @@ acpi_ex_allocate_name_string ( ...@@ -65,11 +65,11 @@ acpi_ex_allocate_name_string (
char *name_string; char *name_string;
u32 size_needed; u32 size_needed;
ACPI_FUNCTION_TRACE ("Ex_allocate_name_string"); ACPI_FUNCTION_TRACE ("ex_allocate_name_string");
/* /*
* Allow room for all \ and ^ prefixes, all segments, and a Multi_name_prefix. * Allow room for all \ and ^ prefixes, all segments, and a multi_name_prefix.
* Also, one byte for the null terminator. * Also, one byte for the null terminator.
* This may actually be somewhat longer than needed. * This may actually be somewhat longer than needed.
*/ */
...@@ -88,7 +88,7 @@ acpi_ex_allocate_name_string ( ...@@ -88,7 +88,7 @@ acpi_ex_allocate_name_string (
*/ */
name_string = ACPI_MEM_ALLOCATE (size_needed); name_string = ACPI_MEM_ALLOCATE (size_needed);
if (!name_string) { if (!name_string) {
ACPI_REPORT_ERROR (("Ex_allocate_name_string: Could not allocate size %d\n", size_needed)); ACPI_REPORT_ERROR (("ex_allocate_name_string: Could not allocate size %d\n", size_needed));
return_PTR (NULL); return_PTR (NULL);
} }
...@@ -121,7 +121,7 @@ acpi_ex_allocate_name_string ( ...@@ -121,7 +121,7 @@ acpi_ex_allocate_name_string (
} }
/* /*
* Terminate string following prefixes. Acpi_ex_name_segment() will * Terminate string following prefixes. acpi_ex_name_segment() will
* append the segment(s) * append the segment(s)
*/ */
*temp_ptr = 0; *temp_ptr = 0;
...@@ -131,9 +131,9 @@ acpi_ex_allocate_name_string ( ...@@ -131,9 +131,9 @@ acpi_ex_allocate_name_string (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_name_segment * FUNCTION: acpi_ex_name_segment
* *
* PARAMETERS: Interpreter_mode - Current running mode (load1/Load2/Exec) * PARAMETERS: interpreter_mode - Current running mode (load1/Load2/Exec)
* *
* RETURN: Status * RETURN: Status
* *
...@@ -152,7 +152,7 @@ acpi_ex_name_segment ( ...@@ -152,7 +152,7 @@ acpi_ex_name_segment (
char char_buf[5]; char char_buf[5];
ACPI_FUNCTION_TRACE ("Ex_name_segment"); ACPI_FUNCTION_TRACE ("ex_name_segment");
/* /*
...@@ -218,9 +218,9 @@ acpi_ex_name_segment ( ...@@ -218,9 +218,9 @@ acpi_ex_name_segment (
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: Acpi_ex_get_name_string * FUNCTION: acpi_ex_get_name_string
* *
* PARAMETERS: Data_type - Data type to be associated with this name * PARAMETERS: data_type - Data type to be associated with this name
* *
* RETURN: Status * RETURN: Status
* *
...@@ -243,13 +243,13 @@ acpi_ex_get_name_string ( ...@@ -243,13 +243,13 @@ acpi_ex_get_name_string (
u8 has_prefix = FALSE; u8 has_prefix = FALSE;
ACPI_FUNCTION_TRACE_PTR ("Ex_get_name_string", aml_address); ACPI_FUNCTION_TRACE_PTR ("ex_get_name_string", aml_address);
if (ACPI_TYPE_LOCAL_REGION_FIELD == data_type || if (ACPI_TYPE_LOCAL_REGION_FIELD == data_type ||
ACPI_TYPE_LOCAL_BANK_FIELD == data_type || ACPI_TYPE_LOCAL_BANK_FIELD == data_type ||
ACPI_TYPE_LOCAL_INDEX_FIELD == data_type) { ACPI_TYPE_LOCAL_INDEX_FIELD == data_type) {
/* Disallow prefixes for types associated with Field_unit names */ /* Disallow prefixes for types associated with field_unit names */
name_string = acpi_ex_allocate_name_string (0, 1); name_string = acpi_ex_allocate_name_string (0, 1);
if (!name_string) { if (!name_string) {
...@@ -261,17 +261,17 @@ acpi_ex_get_name_string ( ...@@ -261,17 +261,17 @@ acpi_ex_get_name_string (
} }
else { else {
/* /*
* Data_type is not a field name. * data_type is not a field name.
* Examine first character of name for root or parent prefix operators * Examine first character of name for root or parent prefix operators
*/ */
switch (*aml_address) { switch (*aml_address) {
case AML_ROOT_PREFIX: case AML_ROOT_PREFIX:
ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "Root_prefix(\\) at %p\n", aml_address)); ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "root_prefix(\\) at %p\n", aml_address));
/* /*
* Remember that we have a Root_prefix -- * Remember that we have a root_prefix --
* see comment in Acpi_ex_allocate_name_string() * see comment in acpi_ex_allocate_name_string()
*/ */
aml_address++; aml_address++;
prefix_count = ACPI_UINT32_MAX; prefix_count = ACPI_UINT32_MAX;
...@@ -284,7 +284,7 @@ acpi_ex_get_name_string ( ...@@ -284,7 +284,7 @@ acpi_ex_get_name_string (
/* Increment past possibly multiple parent prefixes */ /* Increment past possibly multiple parent prefixes */
do { do {
ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "Parent_prefix (^) at %p\n", aml_address)); ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "parent_prefix (^) at %p\n", aml_address));
aml_address++; aml_address++;
prefix_count++; prefix_count++;
...@@ -308,7 +308,7 @@ acpi_ex_get_name_string ( ...@@ -308,7 +308,7 @@ acpi_ex_get_name_string (
switch (*aml_address) { switch (*aml_address) {
case AML_DUAL_NAME_PREFIX: case AML_DUAL_NAME_PREFIX:
ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "Dual_name_prefix at %p\n", aml_address)); ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "dual_name_prefix at %p\n", aml_address));
aml_address++; aml_address++;
name_string = acpi_ex_allocate_name_string (prefix_count, 2); name_string = acpi_ex_allocate_name_string (prefix_count, 2);
...@@ -330,7 +330,7 @@ acpi_ex_get_name_string ( ...@@ -330,7 +330,7 @@ acpi_ex_get_name_string (
case AML_MULTI_NAME_PREFIX_OP: case AML_MULTI_NAME_PREFIX_OP:
ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "Multi_name_prefix at %p\n", aml_address)); ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "multi_name_prefix at %p\n", aml_address));
/* Fetch count of segments remaining in name path */ /* Fetch count of segments remaining in name path */
...@@ -358,10 +358,10 @@ acpi_ex_get_name_string ( ...@@ -358,10 +358,10 @@ acpi_ex_get_name_string (
case 0: case 0:
/* Null_name valid as of 8-12-98 ASL/AML Grammar Update */ /* null_name valid as of 8-12-98 ASL/AML Grammar Update */
if (prefix_count == ACPI_UINT32_MAX) { if (prefix_count == ACPI_UINT32_MAX) {
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Name_seg is \"\\\" followed by NULL\n")); ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "name_seg is \"\\\" followed by NULL\n"));
} }
/* Consume the NULL byte */ /* Consume the NULL byte */
...@@ -395,7 +395,7 @@ acpi_ex_get_name_string ( ...@@ -395,7 +395,7 @@ acpi_ex_get_name_string (
/* Ran out of segments after processing a prefix */ /* Ran out of segments after processing a prefix */
ACPI_REPORT_ERROR ( ACPI_REPORT_ERROR (
("Ex_do_name: Malformed Name at %p\n", name_string)); ("ex_do_name: Malformed Name at %p\n", name_string));
status = AE_AML_BAD_NAME; status = AE_AML_BAD_NAME;
} }
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
/* Version string */ /* Version string */
#define ACPI_CA_VERSION 0x20021212 #define ACPI_CA_VERSION 0x20021217
/* Version of ACPI supported */ /* Version of ACPI supported */
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
#define ACPI_NUM_PREDEFINED_REGIONS 8 #define ACPI_NUM_PREDEFINED_REGIONS 8
#define ACPI_USER_REGION_BEGIN 0x80 #define ACPI_USER_REGION_BEGIN 0x80
/* Maximum Space_ids for Operation Regions */ /* Maximum space_ids for Operation Regions */
#define ACPI_MAX_ADDRESS_SPACE 255 #define ACPI_MAX_ADDRESS_SPACE 255
......
...@@ -63,7 +63,7 @@ extern u32 acpi_gbl_nesting_level; ...@@ -63,7 +63,7 @@ extern u32 acpi_gbl_nesting_level;
/* /*
* Table pointers. * Table pointers.
* Although these pointers are somewhat redundant with the global Acpi_table, * Although these pointers are somewhat redundant with the global acpi_table,
* they are convenient because they are typed pointers. * they are convenient because they are typed pointers.
* *
* These tables are single-table only; meaning that there can be at most one * These tables are single-table only; meaning that there can be at most one
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment