diff options
Diffstat (limited to 'drivers/acpi/utilities')
-rw-r--r-- | drivers/acpi/utilities/utalloc.c | 4 | ||||
-rw-r--r-- | drivers/acpi/utilities/utcache.c | 2 | ||||
-rw-r--r-- | drivers/acpi/utilities/utcopy.c | 16 | ||||
-rw-r--r-- | drivers/acpi/utilities/utdelete.c | 12 | ||||
-rw-r--r-- | drivers/acpi/utilities/uteval.c | 88 | ||||
-rw-r--r-- | drivers/acpi/utilities/utglobal.c | 38 | ||||
-rw-r--r-- | drivers/acpi/utilities/utinit.c | 4 | ||||
-rw-r--r-- | drivers/acpi/utilities/utmath.c | 8 | ||||
-rw-r--r-- | drivers/acpi/utilities/utmisc.c | 16 | ||||
-rw-r--r-- | drivers/acpi/utilities/utmutex.c | 12 | ||||
-rw-r--r-- | drivers/acpi/utilities/utobject.c | 16 | ||||
-rw-r--r-- | drivers/acpi/utilities/utresrc.c | 106 | ||||
-rw-r--r-- | drivers/acpi/utilities/utstate.c | 14 | ||||
-rw-r--r-- | drivers/acpi/utilities/utxface.c | 20 |
14 files changed, 189 insertions, 167 deletions
diff --git a/drivers/acpi/utilities/utalloc.c b/drivers/acpi/utilities/utalloc.c index 3b29aecaaca5..65a7c2ed9aa1 100644 --- a/drivers/acpi/utilities/utalloc.c +++ b/drivers/acpi/utilities/utalloc.c | |||
@@ -108,7 +108,7 @@ acpi_status acpi_ut_create_caches(void) | |||
108 | } | 108 | } |
109 | 109 | ||
110 | status = | 110 | status = |
111 | acpi_os_create_cache("Acpi-parse_ext", | 111 | acpi_os_create_cache("Acpi-ParseExt", |
112 | sizeof(struct acpi_parse_obj_named), | 112 | sizeof(struct acpi_parse_obj_named), |
113 | ACPI_MAX_EXTPARSE_CACHE_DEPTH, | 113 | ACPI_MAX_EXTPARSE_CACHE_DEPTH, |
114 | &acpi_gbl_ps_node_ext_cache); | 114 | &acpi_gbl_ps_node_ext_cache); |
@@ -289,7 +289,7 @@ void *acpi_ut_allocate(acpi_size size, u32 component, char *module, u32 line) | |||
289 | { | 289 | { |
290 | void *allocation; | 290 | void *allocation; |
291 | 291 | ||
292 | ACPI_FUNCTION_TRACE_U32("ut_allocate", size); | 292 | ACPI_FUNCTION_TRACE_U32(ut_allocate, size); |
293 | 293 | ||
294 | /* Check for an inadvertent size of zero bytes */ | 294 | /* Check for an inadvertent size of zero bytes */ |
295 | 295 | ||
diff --git a/drivers/acpi/utilities/utcache.c b/drivers/acpi/utilities/utcache.c index 593b08ccd6bf..56270a30718a 100644 --- a/drivers/acpi/utilities/utcache.c +++ b/drivers/acpi/utilities/utcache.c | |||
@@ -244,7 +244,7 @@ void *acpi_os_acquire_object(struct acpi_memory_list *cache) | |||
244 | acpi_status status; | 244 | acpi_status status; |
245 | void *object; | 245 | void *object; |
246 | 246 | ||
247 | ACPI_FUNCTION_NAME("os_acquire_object"); | 247 | ACPI_FUNCTION_NAME(os_acquire_object); |
248 | 248 | ||
249 | if (!cache) { | 249 | if (!cache) { |
250 | return (NULL); | 250 | return (NULL); |
diff --git a/drivers/acpi/utilities/utcopy.c b/drivers/acpi/utilities/utcopy.c index 371cddc0d574..5e1a80d1bc36 100644 --- a/drivers/acpi/utilities/utcopy.c +++ b/drivers/acpi/utilities/utcopy.c | |||
@@ -109,7 +109,7 @@ acpi_ut_copy_isimple_to_esimple(union acpi_operand_object *internal_object, | |||
109 | { | 109 | { |
110 | acpi_status status = AE_OK; | 110 | acpi_status status = AE_OK; |
111 | 111 | ||
112 | ACPI_FUNCTION_TRACE("ut_copy_isimple_to_esimple"); | 112 | ACPI_FUNCTION_TRACE(ut_copy_isimple_to_esimple); |
113 | 113 | ||
114 | *buffer_space_used = 0; | 114 | *buffer_space_used = 0; |
115 | 115 | ||
@@ -325,7 +325,7 @@ acpi_ut_copy_ipackage_to_epackage(union acpi_operand_object *internal_object, | |||
325 | acpi_status status; | 325 | acpi_status status; |
326 | struct acpi_pkg_info info; | 326 | struct acpi_pkg_info info; |
327 | 327 | ||
328 | ACPI_FUNCTION_TRACE("ut_copy_ipackage_to_epackage"); | 328 | ACPI_FUNCTION_TRACE(ut_copy_ipackage_to_epackage); |
329 | 329 | ||
330 | /* | 330 | /* |
331 | * First package at head of the buffer | 331 | * First package at head of the buffer |
@@ -383,7 +383,7 @@ acpi_ut_copy_iobject_to_eobject(union acpi_operand_object *internal_object, | |||
383 | { | 383 | { |
384 | acpi_status status; | 384 | acpi_status status; |
385 | 385 | ||
386 | ACPI_FUNCTION_TRACE("ut_copy_iobject_to_eobject"); | 386 | ACPI_FUNCTION_TRACE(ut_copy_iobject_to_eobject); |
387 | 387 | ||
388 | if (ACPI_GET_OBJECT_TYPE(internal_object) == ACPI_TYPE_PACKAGE) { | 388 | if (ACPI_GET_OBJECT_TYPE(internal_object) == ACPI_TYPE_PACKAGE) { |
389 | /* | 389 | /* |
@@ -442,7 +442,7 @@ acpi_ut_copy_esimple_to_isimple(union acpi_object *external_object, | |||
442 | { | 442 | { |
443 | union acpi_operand_object *internal_object; | 443 | union acpi_operand_object *internal_object; |
444 | 444 | ||
445 | ACPI_FUNCTION_TRACE("ut_copy_esimple_to_isimple"); | 445 | ACPI_FUNCTION_TRACE(ut_copy_esimple_to_isimple); |
446 | 446 | ||
447 | /* | 447 | /* |
448 | * Simple types supported are: String, Buffer, Integer | 448 | * Simple types supported are: String, Buffer, Integer |
@@ -552,7 +552,7 @@ acpi_ut_copy_epackage_to_ipackage(union acpi_operand_object *internal_object, | |||
552 | union acpi_operand_object *this_internal_obj; | 552 | union acpi_operand_object *this_internal_obj; |
553 | union acpi_object *this_external_obj; | 553 | union acpi_object *this_external_obj; |
554 | 554 | ||
555 | ACPI_FUNCTION_TRACE("ut_copy_epackage_to_ipackage"); | 555 | ACPI_FUNCTION_TRACE(ut_copy_epackage_to_ipackage); |
556 | 556 | ||
557 | /* | 557 | /* |
558 | * First package at head of the buffer | 558 | * First package at head of the buffer |
@@ -600,7 +600,7 @@ acpi_ut_copy_eobject_to_iobject(union acpi_object *external_object, | |||
600 | { | 600 | { |
601 | acpi_status status; | 601 | acpi_status status; |
602 | 602 | ||
603 | ACPI_FUNCTION_TRACE("ut_copy_eobject_to_iobject"); | 603 | ACPI_FUNCTION_TRACE(ut_copy_eobject_to_iobject); |
604 | 604 | ||
605 | if (external_object->type == ACPI_TYPE_PACKAGE) { | 605 | if (external_object->type == ACPI_TYPE_PACKAGE) { |
606 | /* | 606 | /* |
@@ -854,7 +854,7 @@ acpi_ut_copy_ipackage_to_ipackage(union acpi_operand_object *source_obj, | |||
854 | { | 854 | { |
855 | acpi_status status = AE_OK; | 855 | acpi_status status = AE_OK; |
856 | 856 | ||
857 | ACPI_FUNCTION_TRACE("ut_copy_ipackage_to_ipackage"); | 857 | ACPI_FUNCTION_TRACE(ut_copy_ipackage_to_ipackage); |
858 | 858 | ||
859 | dest_obj->common.type = ACPI_GET_OBJECT_TYPE(source_obj); | 859 | dest_obj->common.type = ACPI_GET_OBJECT_TYPE(source_obj); |
860 | dest_obj->common.flags = source_obj->common.flags; | 860 | dest_obj->common.flags = source_obj->common.flags; |
@@ -910,7 +910,7 @@ acpi_ut_copy_iobject_to_iobject(union acpi_operand_object *source_desc, | |||
910 | { | 910 | { |
911 | acpi_status status = AE_OK; | 911 | acpi_status status = AE_OK; |
912 | 912 | ||
913 | ACPI_FUNCTION_TRACE("ut_copy_iobject_to_iobject"); | 913 | ACPI_FUNCTION_TRACE(ut_copy_iobject_to_iobject); |
914 | 914 | ||
915 | /* Create the top level object */ | 915 | /* Create the top level object */ |
916 | 916 | ||
diff --git a/drivers/acpi/utilities/utdelete.c b/drivers/acpi/utilities/utdelete.c index b4e34a2f81f7..0bb4b59b2804 100644 --- a/drivers/acpi/utilities/utdelete.c +++ b/drivers/acpi/utilities/utdelete.c | |||
@@ -76,7 +76,7 @@ static void acpi_ut_delete_internal_obj(union acpi_operand_object *object) | |||
76 | union acpi_operand_object *second_desc; | 76 | union acpi_operand_object *second_desc; |
77 | union acpi_operand_object *next_desc; | 77 | union acpi_operand_object *next_desc; |
78 | 78 | ||
79 | ACPI_FUNCTION_TRACE_PTR("ut_delete_internal_obj", object); | 79 | ACPI_FUNCTION_TRACE_PTR(ut_delete_internal_obj, object); |
80 | 80 | ||
81 | if (!object) { | 81 | if (!object) { |
82 | return_VOID; | 82 | return_VOID; |
@@ -276,7 +276,7 @@ void acpi_ut_delete_internal_object_list(union acpi_operand_object **obj_list) | |||
276 | { | 276 | { |
277 | union acpi_operand_object **internal_obj; | 277 | union acpi_operand_object **internal_obj; |
278 | 278 | ||
279 | ACPI_FUNCTION_TRACE("ut_delete_internal_object_list"); | 279 | ACPI_FUNCTION_TRACE(ut_delete_internal_object_list); |
280 | 280 | ||
281 | /* Walk the null-terminated internal list */ | 281 | /* Walk the null-terminated internal list */ |
282 | 282 | ||
@@ -309,7 +309,7 @@ acpi_ut_update_ref_count(union acpi_operand_object *object, u32 action) | |||
309 | u16 count; | 309 | u16 count; |
310 | u16 new_count; | 310 | u16 new_count; |
311 | 311 | ||
312 | ACPI_FUNCTION_NAME("ut_update_ref_count"); | 312 | ACPI_FUNCTION_NAME(ut_update_ref_count); |
313 | 313 | ||
314 | if (!object) { | 314 | if (!object) { |
315 | return; | 315 | return; |
@@ -425,7 +425,7 @@ acpi_ut_update_object_reference(union acpi_operand_object * object, u16 action) | |||
425 | union acpi_generic_state *state; | 425 | union acpi_generic_state *state; |
426 | acpi_native_uint i; | 426 | acpi_native_uint i; |
427 | 427 | ||
428 | ACPI_FUNCTION_TRACE_PTR("ut_update_object_reference", object); | 428 | ACPI_FUNCTION_TRACE_PTR(ut_update_object_reference, object); |
429 | 429 | ||
430 | while (object) { | 430 | while (object) { |
431 | 431 | ||
@@ -570,7 +570,7 @@ acpi_ut_update_object_reference(union acpi_operand_object * object, u16 action) | |||
570 | void acpi_ut_add_reference(union acpi_operand_object *object) | 570 | void acpi_ut_add_reference(union acpi_operand_object *object) |
571 | { | 571 | { |
572 | 572 | ||
573 | ACPI_FUNCTION_TRACE_PTR("ut_add_reference", object); | 573 | ACPI_FUNCTION_TRACE_PTR(ut_add_reference, object); |
574 | 574 | ||
575 | /* Ensure that we have a valid object */ | 575 | /* Ensure that we have a valid object */ |
576 | 576 | ||
@@ -603,7 +603,7 @@ void acpi_ut_add_reference(union acpi_operand_object *object) | |||
603 | void acpi_ut_remove_reference(union acpi_operand_object *object) | 603 | void acpi_ut_remove_reference(union acpi_operand_object *object) |
604 | { | 604 | { |
605 | 605 | ||
606 | ACPI_FUNCTION_TRACE_PTR("ut_remove_reference", object); | 606 | ACPI_FUNCTION_TRACE_PTR(ut_remove_reference, object); |
607 | 607 | ||
608 | /* | 608 | /* |
609 | * Allow a NULL pointer to be passed in, just ignore it. This saves | 609 | * Allow a NULL pointer to be passed in, just ignore it. This saves |
diff --git a/drivers/acpi/utilities/uteval.c b/drivers/acpi/utilities/uteval.c index 68b9eff4b326..444d3a502c46 100644 --- a/drivers/acpi/utilities/uteval.c +++ b/drivers/acpi/utilities/uteval.c | |||
@@ -56,6 +56,34 @@ static acpi_status | |||
56 | acpi_ut_translate_one_cid(union acpi_operand_object *obj_desc, | 56 | acpi_ut_translate_one_cid(union acpi_operand_object *obj_desc, |
57 | struct acpi_compatible_id *one_cid); | 57 | struct acpi_compatible_id *one_cid); |
58 | 58 | ||
59 | /* | ||
60 | * Strings supported by the _OSI predefined (internal) method. | ||
61 | */ | ||
62 | static const char *acpi_interfaces_supported[] = { | ||
63 | /* Operating System Vendor Strings */ | ||
64 | |||
65 | "Linux", | ||
66 | "Windows 2000", | ||
67 | "Windows 2001", | ||
68 | "Windows 2001 SP0", | ||
69 | "Windows 2001 SP1", | ||
70 | "Windows 2001 SP2", | ||
71 | "Windows 2001 SP3", | ||
72 | "Windows 2001 SP4", | ||
73 | "Windows 2001.1", | ||
74 | "Windows 2001.1 SP1", /* Added 03/2006 */ | ||
75 | "Windows 2006", /* Added 03/2006 */ | ||
76 | |||
77 | /* Feature Group Strings */ | ||
78 | |||
79 | "Extended Address Space Descriptor" | ||
80 | /* | ||
81 | * All "optional" feature group strings (features that are implemented | ||
82 | * by the host) should be implemented in the host version of | ||
83 | * acpi_os_validate_interface and should not be added here. | ||
84 | */ | ||
85 | }; | ||
86 | |||
59 | /******************************************************************************* | 87 | /******************************************************************************* |
60 | * | 88 | * |
61 | * FUNCTION: acpi_ut_osi_implementation | 89 | * FUNCTION: acpi_ut_osi_implementation |
@@ -64,18 +92,18 @@ acpi_ut_translate_one_cid(union acpi_operand_object *obj_desc, | |||
64 | * | 92 | * |
65 | * RETURN: Status | 93 | * RETURN: Status |
66 | * | 94 | * |
67 | * DESCRIPTION: Implementation of _OSI predefined control method | 95 | * DESCRIPTION: Implementation of the _OSI predefined control method |
68 | * Supported = _OSI (String) | ||
69 | * | 96 | * |
70 | ******************************************************************************/ | 97 | ******************************************************************************/ |
71 | 98 | ||
72 | acpi_status acpi_ut_osi_implementation(struct acpi_walk_state *walk_state) | 99 | acpi_status acpi_ut_osi_implementation(struct acpi_walk_state *walk_state) |
73 | { | 100 | { |
101 | acpi_status status; | ||
74 | union acpi_operand_object *string_desc; | 102 | union acpi_operand_object *string_desc; |
75 | union acpi_operand_object *return_desc; | 103 | union acpi_operand_object *return_desc; |
76 | acpi_native_uint i; | 104 | acpi_native_uint i; |
77 | 105 | ||
78 | ACPI_FUNCTION_TRACE("ut_osi_implementation"); | 106 | ACPI_FUNCTION_TRACE(ut_osi_implementation); |
79 | 107 | ||
80 | /* Validate the string input argument */ | 108 | /* Validate the string input argument */ |
81 | 109 | ||
@@ -84,29 +112,47 @@ acpi_status acpi_ut_osi_implementation(struct acpi_walk_state *walk_state) | |||
84 | return_ACPI_STATUS(AE_TYPE); | 112 | return_ACPI_STATUS(AE_TYPE); |
85 | } | 113 | } |
86 | 114 | ||
87 | /* Create a return object (Default value = 0) */ | 115 | /* Create a return object */ |
88 | 116 | ||
89 | return_desc = acpi_ut_create_internal_object(ACPI_TYPE_INTEGER); | 117 | return_desc = acpi_ut_create_internal_object(ACPI_TYPE_INTEGER); |
90 | if (!return_desc) { | 118 | if (!return_desc) { |
91 | return_ACPI_STATUS(AE_NO_MEMORY); | 119 | return_ACPI_STATUS(AE_NO_MEMORY); |
92 | } | 120 | } |
93 | 121 | ||
94 | /* Compare input string to table of supported strings */ | 122 | /* Default return value is SUPPORTED */ |
95 | 123 | ||
96 | for (i = 0; i < ACPI_NUM_OSI_STRINGS; i++) { | 124 | return_desc->integer.value = ACPI_UINT32_MAX; |
97 | if (!ACPI_STRCMP(string_desc->string.pointer, | 125 | walk_state->return_desc = return_desc; |
98 | ACPI_CAST_PTR(char, | 126 | |
99 | acpi_gbl_valid_osi_strings[i]))) | 127 | /* Compare input string to static table of supported interfaces */ |
100 | { | ||
101 | 128 | ||
102 | /* This string is supported */ | 129 | for (i = 0; i < ACPI_ARRAY_LENGTH(acpi_interfaces_supported); i++) { |
130 | if (!ACPI_STRCMP | ||
131 | (string_desc->string.pointer, | ||
132 | acpi_interfaces_supported[i])) { | ||
103 | 133 | ||
104 | return_desc->integer.value = 0xFFFFFFFF; | 134 | /* The interface is supported */ |
105 | break; | 135 | |
136 | return_ACPI_STATUS(AE_CTRL_TERMINATE); | ||
106 | } | 137 | } |
107 | } | 138 | } |
108 | 139 | ||
109 | walk_state->return_desc = return_desc; | 140 | /* |
141 | * Did not match the string in the static table, call the host OSL to | ||
142 | * check for a match with one of the optional strings (such as | ||
143 | * "Module Device", "3.0 Thermal Model", etc.) | ||
144 | */ | ||
145 | status = acpi_os_validate_interface(string_desc->string.pointer); | ||
146 | if (ACPI_SUCCESS(status)) { | ||
147 | |||
148 | /* The interface is supported */ | ||
149 | |||
150 | return_ACPI_STATUS(AE_CTRL_TERMINATE); | ||
151 | } | ||
152 | |||
153 | /* The interface is not supported */ | ||
154 | |||
155 | return_desc->integer.value = 0; | ||
110 | return_ACPI_STATUS(AE_CTRL_TERMINATE); | 156 | return_ACPI_STATUS(AE_CTRL_TERMINATE); |
111 | } | 157 | } |
112 | 158 | ||
@@ -139,7 +185,7 @@ acpi_ut_evaluate_object(struct acpi_namespace_node *prefix_node, | |||
139 | acpi_status status; | 185 | acpi_status status; |
140 | u32 return_btype; | 186 | u32 return_btype; |
141 | 187 | ||
142 | ACPI_FUNCTION_TRACE("ut_evaluate_object"); | 188 | ACPI_FUNCTION_TRACE(ut_evaluate_object); |
143 | 189 | ||
144 | info.node = prefix_node; | 190 | info.node = prefix_node; |
145 | info.parameters = NULL; | 191 | info.parameters = NULL; |
@@ -258,7 +304,7 @@ acpi_ut_evaluate_numeric_object(char *object_name, | |||
258 | union acpi_operand_object *obj_desc; | 304 | union acpi_operand_object *obj_desc; |
259 | acpi_status status; | 305 | acpi_status status; |
260 | 306 | ||
261 | ACPI_FUNCTION_TRACE("ut_evaluate_numeric_object"); | 307 | ACPI_FUNCTION_TRACE(ut_evaluate_numeric_object); |
262 | 308 | ||
263 | status = acpi_ut_evaluate_object(device_node, object_name, | 309 | status = acpi_ut_evaluate_object(device_node, object_name, |
264 | ACPI_BTYPE_INTEGER, &obj_desc); | 310 | ACPI_BTYPE_INTEGER, &obj_desc); |
@@ -334,7 +380,7 @@ acpi_ut_execute_HID(struct acpi_namespace_node *device_node, | |||
334 | union acpi_operand_object *obj_desc; | 380 | union acpi_operand_object *obj_desc; |
335 | acpi_status status; | 381 | acpi_status status; |
336 | 382 | ||
337 | ACPI_FUNCTION_TRACE("ut_execute_HID"); | 383 | ACPI_FUNCTION_TRACE(ut_execute_HID); |
338 | 384 | ||
339 | status = acpi_ut_evaluate_object(device_node, METHOD_NAME__HID, | 385 | status = acpi_ut_evaluate_object(device_node, METHOD_NAME__HID, |
340 | ACPI_BTYPE_INTEGER | ACPI_BTYPE_STRING, | 386 | ACPI_BTYPE_INTEGER | ACPI_BTYPE_STRING, |
@@ -438,7 +484,7 @@ acpi_ut_execute_CID(struct acpi_namespace_node * device_node, | |||
438 | struct acpi_compatible_id_list *cid_list; | 484 | struct acpi_compatible_id_list *cid_list; |
439 | acpi_native_uint i; | 485 | acpi_native_uint i; |
440 | 486 | ||
441 | ACPI_FUNCTION_TRACE("ut_execute_CID"); | 487 | ACPI_FUNCTION_TRACE(ut_execute_CID); |
442 | 488 | ||
443 | /* Evaluate the _CID method for this device */ | 489 | /* Evaluate the _CID method for this device */ |
444 | 490 | ||
@@ -536,7 +582,7 @@ acpi_ut_execute_UID(struct acpi_namespace_node *device_node, | |||
536 | union acpi_operand_object *obj_desc; | 582 | union acpi_operand_object *obj_desc; |
537 | acpi_status status; | 583 | acpi_status status; |
538 | 584 | ||
539 | ACPI_FUNCTION_TRACE("ut_execute_UID"); | 585 | ACPI_FUNCTION_TRACE(ut_execute_UID); |
540 | 586 | ||
541 | status = acpi_ut_evaluate_object(device_node, METHOD_NAME__UID, | 587 | status = acpi_ut_evaluate_object(device_node, METHOD_NAME__UID, |
542 | ACPI_BTYPE_INTEGER | ACPI_BTYPE_STRING, | 588 | ACPI_BTYPE_INTEGER | ACPI_BTYPE_STRING, |
@@ -586,7 +632,7 @@ acpi_ut_execute_STA(struct acpi_namespace_node *device_node, u32 * flags) | |||
586 | union acpi_operand_object *obj_desc; | 632 | union acpi_operand_object *obj_desc; |
587 | acpi_status status; | 633 | acpi_status status; |
588 | 634 | ||
589 | ACPI_FUNCTION_TRACE("ut_execute_STA"); | 635 | ACPI_FUNCTION_TRACE(ut_execute_STA); |
590 | 636 | ||
591 | status = acpi_ut_evaluate_object(device_node, METHOD_NAME__STA, | 637 | status = acpi_ut_evaluate_object(device_node, METHOD_NAME__STA, |
592 | ACPI_BTYPE_INTEGER, &obj_desc); | 638 | ACPI_BTYPE_INTEGER, &obj_desc); |
@@ -636,7 +682,7 @@ acpi_ut_execute_sxds(struct acpi_namespace_node *device_node, u8 * highest) | |||
636 | acpi_status status; | 682 | acpi_status status; |
637 | u32 i; | 683 | u32 i; |
638 | 684 | ||
639 | ACPI_FUNCTION_TRACE("ut_execute_Sxds"); | 685 | ACPI_FUNCTION_TRACE(ut_execute_sxds); |
640 | 686 | ||
641 | for (i = 0; i < 4; i++) { | 687 | for (i = 0; i < 4; i++) { |
642 | highest[i] = 0xFF; | 688 | highest[i] = 0xFF; |
diff --git a/drivers/acpi/utilities/utglobal.c b/drivers/acpi/utilities/utglobal.c index e8ae417c9848..e666c71be0bf 100644 --- a/drivers/acpi/utilities/utglobal.c +++ b/drivers/acpi/utilities/utglobal.c | |||
@@ -181,30 +181,6 @@ const char *acpi_gbl_highest_dstate_names[4] = { | |||
181 | "_S4D" | 181 | "_S4D" |
182 | }; | 182 | }; |
183 | 183 | ||
184 | /* | ||
185 | * Strings supported by the _OSI predefined (internal) method. | ||
186 | * When adding strings, be sure to update ACPI_NUM_OSI_STRINGS. | ||
187 | */ | ||
188 | const char *acpi_gbl_valid_osi_strings[ACPI_NUM_OSI_STRINGS] = { | ||
189 | /* Operating System Vendor Strings */ | ||
190 | |||
191 | "Linux", | ||
192 | "Windows 2000", | ||
193 | "Windows 2001", | ||
194 | "Windows 2001 SP0", | ||
195 | "Windows 2001 SP1", | ||
196 | "Windows 2001 SP2", | ||
197 | "Windows 2001 SP3", | ||
198 | "Windows 2001 SP4", | ||
199 | "Windows 2001.1", | ||
200 | "Windows 2001.1 SP1", /* Added 03/2006 */ | ||
201 | "Windows 2006", /* Added 03/2006 */ | ||
202 | |||
203 | /* Feature Group Strings */ | ||
204 | |||
205 | "Extended Address Space Descriptor" | ||
206 | }; | ||
207 | |||
208 | /******************************************************************************* | 184 | /******************************************************************************* |
209 | * | 185 | * |
210 | * Namespace globals | 186 | * Namespace globals |
@@ -317,9 +293,9 @@ char acpi_ut_hex_to_ascii_char(acpi_integer integer, u32 position) | |||
317 | * | 293 | * |
318 | ******************************************************************************/ | 294 | ******************************************************************************/ |
319 | 295 | ||
320 | struct acpi_table_list acpi_gbl_table_lists[NUM_ACPI_TABLE_TYPES]; | 296 | struct acpi_table_list acpi_gbl_table_lists[ACPI_TABLE_ID_MAX + 1]; |
321 | 297 | ||
322 | struct acpi_table_support acpi_gbl_table_data[NUM_ACPI_TABLE_TYPES] = { | 298 | struct acpi_table_support acpi_gbl_table_data[ACPI_TABLE_ID_MAX + 1] = { |
323 | /*********** Name, Signature, Global typed pointer Signature size, Type How many allowed?, Contains valid AML? */ | 299 | /*********** Name, Signature, Global typed pointer Signature size, Type How many allowed?, Contains valid AML? */ |
324 | 300 | ||
325 | /* RSDP 0 */ {RSDP_NAME, RSDP_SIG, NULL, sizeof(RSDP_SIG) - 1, | 301 | /* RSDP 0 */ {RSDP_NAME, RSDP_SIG, NULL, sizeof(RSDP_SIG) - 1, |
@@ -483,9 +459,9 @@ char *acpi_ut_get_region_name(u8 space_id) | |||
483 | { | 459 | { |
484 | 460 | ||
485 | if (space_id >= ACPI_USER_REGION_BEGIN) { | 461 | if (space_id >= ACPI_USER_REGION_BEGIN) { |
486 | return ("user_defined_region"); | 462 | return ("UserDefinedRegion"); |
487 | } else if (space_id >= ACPI_NUM_PREDEFINED_REGIONS) { | 463 | } else if (space_id >= ACPI_NUM_PREDEFINED_REGIONS) { |
488 | return ("invalid_space_id"); | 464 | return ("InvalidSpaceId"); |
489 | } | 465 | } |
490 | 466 | ||
491 | return (ACPI_CAST_PTR(char, acpi_gbl_region_types[space_id])); | 467 | return (ACPI_CAST_PTR(char, acpi_gbl_region_types[space_id])); |
@@ -519,7 +495,7 @@ char *acpi_ut_get_event_name(u32 event_id) | |||
519 | { | 495 | { |
520 | 496 | ||
521 | if (event_id > ACPI_EVENT_MAX) { | 497 | if (event_id > ACPI_EVENT_MAX) { |
522 | return ("invalid_event_iD"); | 498 | return ("InvalidEventID"); |
523 | } | 499 | } |
524 | 500 | ||
525 | return (ACPI_CAST_PTR(char, acpi_gbl_event_types[event_id])); | 501 | return (ACPI_CAST_PTR(char, acpi_gbl_event_types[event_id])); |
@@ -774,7 +750,7 @@ void acpi_ut_init_globals(void) | |||
774 | acpi_status status; | 750 | acpi_status status; |
775 | u32 i; | 751 | u32 i; |
776 | 752 | ||
777 | ACPI_FUNCTION_TRACE("ut_init_globals"); | 753 | ACPI_FUNCTION_TRACE(ut_init_globals); |
778 | 754 | ||
779 | /* Create all memory caches */ | 755 | /* Create all memory caches */ |
780 | 756 | ||
@@ -785,7 +761,7 @@ void acpi_ut_init_globals(void) | |||
785 | 761 | ||
786 | /* ACPI table structure */ | 762 | /* ACPI table structure */ |
787 | 763 | ||
788 | for (i = 0; i < NUM_ACPI_TABLE_TYPES; i++) { | 764 | for (i = 0; i < (ACPI_TABLE_ID_MAX + 1); i++) { |
789 | acpi_gbl_table_lists[i].next = NULL; | 765 | acpi_gbl_table_lists[i].next = NULL; |
790 | acpi_gbl_table_lists[i].count = 0; | 766 | acpi_gbl_table_lists[i].count = 0; |
791 | } | 767 | } |
diff --git a/drivers/acpi/utilities/utinit.c b/drivers/acpi/utilities/utinit.c index 7538b165b6e5..c65747d3c880 100644 --- a/drivers/acpi/utilities/utinit.c +++ b/drivers/acpi/utilities/utinit.c | |||
@@ -176,7 +176,7 @@ static void acpi_ut_terminate(void) | |||
176 | struct acpi_gpe_xrupt_info *gpe_xrupt_info; | 176 | struct acpi_gpe_xrupt_info *gpe_xrupt_info; |
177 | struct acpi_gpe_xrupt_info *next_gpe_xrupt_info; | 177 | struct acpi_gpe_xrupt_info *next_gpe_xrupt_info; |
178 | 178 | ||
179 | ACPI_FUNCTION_TRACE("ut_terminate"); | 179 | ACPI_FUNCTION_TRACE(ut_terminate); |
180 | 180 | ||
181 | /* Free global tables, etc. */ | 181 | /* Free global tables, etc. */ |
182 | /* Free global GPE blocks and related info structures */ | 182 | /* Free global GPE blocks and related info structures */ |
@@ -216,7 +216,7 @@ static void acpi_ut_terminate(void) | |||
216 | void acpi_ut_subsystem_shutdown(void) | 216 | void acpi_ut_subsystem_shutdown(void) |
217 | { | 217 | { |
218 | 218 | ||
219 | ACPI_FUNCTION_TRACE("ut_subsystem_shutdown"); | 219 | ACPI_FUNCTION_TRACE(ut_subsystem_shutdown); |
220 | 220 | ||
221 | /* Just exit if subsystem is already shutdown */ | 221 | /* Just exit if subsystem is already shutdown */ |
222 | 222 | ||
diff --git a/drivers/acpi/utilities/utmath.c b/drivers/acpi/utilities/utmath.c index 4a3360484e72..19d74bedce27 100644 --- a/drivers/acpi/utilities/utmath.c +++ b/drivers/acpi/utilities/utmath.c | |||
@@ -77,7 +77,7 @@ acpi_ut_short_divide(acpi_integer dividend, | |||
77 | union uint64_overlay quotient; | 77 | union uint64_overlay quotient; |
78 | u32 remainder32; | 78 | u32 remainder32; |
79 | 79 | ||
80 | ACPI_FUNCTION_TRACE("ut_short_divide"); | 80 | ACPI_FUNCTION_TRACE(ut_short_divide); |
81 | 81 | ||
82 | /* Always check for a zero divisor */ | 82 | /* Always check for a zero divisor */ |
83 | 83 | ||
@@ -139,7 +139,7 @@ acpi_ut_divide(acpi_integer in_dividend, | |||
139 | union uint64_overlay partial2; | 139 | union uint64_overlay partial2; |
140 | union uint64_overlay partial3; | 140 | union uint64_overlay partial3; |
141 | 141 | ||
142 | ACPI_FUNCTION_TRACE("ut_divide"); | 142 | ACPI_FUNCTION_TRACE(ut_divide); |
143 | 143 | ||
144 | /* Always check for a zero divisor */ | 144 | /* Always check for a zero divisor */ |
145 | 145 | ||
@@ -261,7 +261,7 @@ acpi_ut_short_divide(acpi_integer in_dividend, | |||
261 | acpi_integer * out_quotient, u32 * out_remainder) | 261 | acpi_integer * out_quotient, u32 * out_remainder) |
262 | { | 262 | { |
263 | 263 | ||
264 | ACPI_FUNCTION_TRACE("ut_short_divide"); | 264 | ACPI_FUNCTION_TRACE(ut_short_divide); |
265 | 265 | ||
266 | /* Always check for a zero divisor */ | 266 | /* Always check for a zero divisor */ |
267 | 267 | ||
@@ -287,7 +287,7 @@ acpi_ut_divide(acpi_integer in_dividend, | |||
287 | acpi_integer in_divisor, | 287 | acpi_integer in_divisor, |
288 | acpi_integer * out_quotient, acpi_integer * out_remainder) | 288 | acpi_integer * out_quotient, acpi_integer * out_remainder) |
289 | { | 289 | { |
290 | ACPI_FUNCTION_TRACE("ut_divide"); | 290 | ACPI_FUNCTION_TRACE(ut_divide); |
291 | 291 | ||
292 | /* Always check for a zero divisor */ | 292 | /* Always check for a zero divisor */ |
293 | 293 | ||
diff --git a/drivers/acpi/utilities/utmisc.c b/drivers/acpi/utilities/utmisc.c index 4623d7e215d3..874467117cec 100644 --- a/drivers/acpi/utilities/utmisc.c +++ b/drivers/acpi/utilities/utmisc.c | |||
@@ -95,7 +95,7 @@ acpi_status acpi_ut_allocate_owner_id(acpi_owner_id * owner_id) | |||
95 | acpi_native_uint k; | 95 | acpi_native_uint k; |
96 | acpi_status status; | 96 | acpi_status status; |
97 | 97 | ||
98 | ACPI_FUNCTION_TRACE("ut_allocate_owner_id"); | 98 | ACPI_FUNCTION_TRACE(ut_allocate_owner_id); |
99 | 99 | ||
100 | /* Guard against multiple allocations of ID to the same location */ | 100 | /* Guard against multiple allocations of ID to the same location */ |
101 | 101 | ||
@@ -152,7 +152,7 @@ acpi_status acpi_ut_allocate_owner_id(acpi_owner_id * owner_id) | |||
152 | (acpi_owner_id) ((k + 1) + ACPI_MUL_32(j)); | 152 | (acpi_owner_id) ((k + 1) + ACPI_MUL_32(j)); |
153 | 153 | ||
154 | ACPI_DEBUG_PRINT((ACPI_DB_VALUES, | 154 | ACPI_DEBUG_PRINT((ACPI_DB_VALUES, |
155 | "Allocated owner_id: %2.2X\n", | 155 | "Allocated OwnerId: %2.2X\n", |
156 | (unsigned int)*owner_id)); | 156 | (unsigned int)*owner_id)); |
157 | goto exit; | 157 | goto exit; |
158 | } | 158 | } |
@@ -173,7 +173,7 @@ acpi_status acpi_ut_allocate_owner_id(acpi_owner_id * owner_id) | |||
173 | */ | 173 | */ |
174 | status = AE_OWNER_ID_LIMIT; | 174 | status = AE_OWNER_ID_LIMIT; |
175 | ACPI_ERROR((AE_INFO, | 175 | ACPI_ERROR((AE_INFO, |
176 | "Could not allocate new owner_id (255 max), AE_OWNER_ID_LIMIT")); | 176 | "Could not allocate new OwnerId (255 max), AE_OWNER_ID_LIMIT")); |
177 | 177 | ||
178 | exit: | 178 | exit: |
179 | (void)acpi_ut_release_mutex(ACPI_MTX_CACHES); | 179 | (void)acpi_ut_release_mutex(ACPI_MTX_CACHES); |
@@ -201,7 +201,7 @@ void acpi_ut_release_owner_id(acpi_owner_id * owner_id_ptr) | |||
201 | acpi_native_uint index; | 201 | acpi_native_uint index; |
202 | u32 bit; | 202 | u32 bit; |
203 | 203 | ||
204 | ACPI_FUNCTION_TRACE_U32("ut_release_owner_id", owner_id); | 204 | ACPI_FUNCTION_TRACE_U32(ut_release_owner_id, owner_id); |
205 | 205 | ||
206 | /* Always clear the input owner_id (zero is an invalid ID) */ | 206 | /* Always clear the input owner_id (zero is an invalid ID) */ |
207 | 207 | ||
@@ -210,7 +210,7 @@ void acpi_ut_release_owner_id(acpi_owner_id * owner_id_ptr) | |||
210 | /* Zero is not a valid owner_iD */ | 210 | /* Zero is not a valid owner_iD */ |
211 | 211 | ||
212 | if (owner_id == 0) { | 212 | if (owner_id == 0) { |
213 | ACPI_ERROR((AE_INFO, "Invalid owner_id: %2.2X", owner_id)); | 213 | ACPI_ERROR((AE_INFO, "Invalid OwnerId: %2.2X", owner_id)); |
214 | return_VOID; | 214 | return_VOID; |
215 | } | 215 | } |
216 | 216 | ||
@@ -236,7 +236,7 @@ void acpi_ut_release_owner_id(acpi_owner_id * owner_id_ptr) | |||
236 | acpi_gbl_owner_id_mask[index] ^= bit; | 236 | acpi_gbl_owner_id_mask[index] ^= bit; |
237 | } else { | 237 | } else { |
238 | ACPI_ERROR((AE_INFO, | 238 | ACPI_ERROR((AE_INFO, |
239 | "Release of non-allocated owner_id: %2.2X", | 239 | "Release of non-allocated OwnerId: %2.2X", |
240 | owner_id + 1)); | 240 | owner_id + 1)); |
241 | } | 241 | } |
242 | 242 | ||
@@ -618,7 +618,7 @@ acpi_ut_strtoul64(char *string, u32 base, acpi_integer * ret_integer) | |||
618 | acpi_integer return_value = 0; | 618 | acpi_integer return_value = 0; |
619 | acpi_integer quotient; | 619 | acpi_integer quotient; |
620 | 620 | ||
621 | ACPI_FUNCTION_TRACE("ut_stroul64"); | 621 | ACPI_FUNCTION_TRACE(ut_stroul64); |
622 | 622 | ||
623 | if ((!string) || !(*string)) { | 623 | if ((!string) || !(*string)) { |
624 | goto error_exit; | 624 | goto error_exit; |
@@ -794,7 +794,7 @@ acpi_ut_walk_package_tree(union acpi_operand_object * source_object, | |||
794 | u32 this_index; | 794 | u32 this_index; |
795 | union acpi_operand_object *this_source_obj; | 795 | union acpi_operand_object *this_source_obj; |
796 | 796 | ||
797 | ACPI_FUNCTION_TRACE("ut_walk_package_tree"); | 797 | ACPI_FUNCTION_TRACE(ut_walk_package_tree); |
798 | 798 | ||
799 | state = acpi_ut_create_pkg_state(source_object, target_object, 0); | 799 | state = acpi_ut_create_pkg_state(source_object, target_object, 0); |
800 | if (!state) { | 800 | if (!state) { |
diff --git a/drivers/acpi/utilities/utmutex.c b/drivers/acpi/utilities/utmutex.c index 0ac6700a45f8..b851f7be5d58 100644 --- a/drivers/acpi/utilities/utmutex.c +++ b/drivers/acpi/utilities/utmutex.c | |||
@@ -68,7 +68,7 @@ acpi_status acpi_ut_mutex_initialize(void) | |||
68 | u32 i; | 68 | u32 i; |
69 | acpi_status status; | 69 | acpi_status status; |
70 | 70 | ||
71 | ACPI_FUNCTION_TRACE("ut_mutex_initialize"); | 71 | ACPI_FUNCTION_TRACE(ut_mutex_initialize); |
72 | 72 | ||
73 | /* | 73 | /* |
74 | * Create each of the predefined mutex objects | 74 | * Create each of the predefined mutex objects |
@@ -100,7 +100,7 @@ void acpi_ut_mutex_terminate(void) | |||
100 | { | 100 | { |
101 | u32 i; | 101 | u32 i; |
102 | 102 | ||
103 | ACPI_FUNCTION_TRACE("ut_mutex_terminate"); | 103 | ACPI_FUNCTION_TRACE(ut_mutex_terminate); |
104 | 104 | ||
105 | /* | 105 | /* |
106 | * Delete each predefined mutex object | 106 | * Delete each predefined mutex object |
@@ -129,7 +129,7 @@ static acpi_status acpi_ut_create_mutex(acpi_mutex_handle mutex_id) | |||
129 | { | 129 | { |
130 | acpi_status status = AE_OK; | 130 | acpi_status status = AE_OK; |
131 | 131 | ||
132 | ACPI_FUNCTION_TRACE_U32("ut_create_mutex", mutex_id); | 132 | ACPI_FUNCTION_TRACE_U32(ut_create_mutex, mutex_id); |
133 | 133 | ||
134 | if (mutex_id > MAX_MUTEX) { | 134 | if (mutex_id > MAX_MUTEX) { |
135 | return_ACPI_STATUS(AE_BAD_PARAMETER); | 135 | return_ACPI_STATUS(AE_BAD_PARAMETER); |
@@ -163,7 +163,7 @@ static acpi_status acpi_ut_delete_mutex(acpi_mutex_handle mutex_id) | |||
163 | { | 163 | { |
164 | acpi_status status; | 164 | acpi_status status; |
165 | 165 | ||
166 | ACPI_FUNCTION_TRACE_U32("ut_delete_mutex", mutex_id); | 166 | ACPI_FUNCTION_TRACE_U32(ut_delete_mutex, mutex_id); |
167 | 167 | ||
168 | if (mutex_id > MAX_MUTEX) { | 168 | if (mutex_id > MAX_MUTEX) { |
169 | return_ACPI_STATUS(AE_BAD_PARAMETER); | 169 | return_ACPI_STATUS(AE_BAD_PARAMETER); |
@@ -194,7 +194,7 @@ acpi_status acpi_ut_acquire_mutex(acpi_mutex_handle mutex_id) | |||
194 | acpi_status status; | 194 | acpi_status status; |
195 | acpi_thread_id this_thread_id; | 195 | acpi_thread_id this_thread_id; |
196 | 196 | ||
197 | ACPI_FUNCTION_NAME("ut_acquire_mutex"); | 197 | ACPI_FUNCTION_NAME(ut_acquire_mutex); |
198 | 198 | ||
199 | if (mutex_id > MAX_MUTEX) { | 199 | if (mutex_id > MAX_MUTEX) { |
200 | return (AE_BAD_PARAMETER); | 200 | return (AE_BAD_PARAMETER); |
@@ -277,7 +277,7 @@ acpi_status acpi_ut_release_mutex(acpi_mutex_handle mutex_id) | |||
277 | acpi_status status; | 277 | acpi_status status; |
278 | acpi_thread_id this_thread_id; | 278 | acpi_thread_id this_thread_id; |
279 | 279 | ||
280 | ACPI_FUNCTION_NAME("ut_release_mutex"); | 280 | ACPI_FUNCTION_NAME(ut_release_mutex); |
281 | 281 | ||
282 | this_thread_id = acpi_os_get_thread_id(); | 282 | this_thread_id = acpi_os_get_thread_id(); |
283 | ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, | 283 | ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, |
diff --git a/drivers/acpi/utilities/utobject.c b/drivers/acpi/utilities/utobject.c index 8e3dcbd23f5d..ba7d8ac702df 100644 --- a/drivers/acpi/utilities/utobject.c +++ b/drivers/acpi/utilities/utobject.c | |||
@@ -92,7 +92,7 @@ union acpi_operand_object *acpi_ut_create_internal_object_dbg(char *module_name, | |||
92 | union acpi_operand_object *object; | 92 | union acpi_operand_object *object; |
93 | union acpi_operand_object *second_object; | 93 | union acpi_operand_object *second_object; |
94 | 94 | ||
95 | ACPI_FUNCTION_TRACE_STR("ut_create_internal_object_dbg", | 95 | ACPI_FUNCTION_TRACE_STR(ut_create_internal_object_dbg, |
96 | acpi_ut_get_type_name(type)); | 96 | acpi_ut_get_type_name(type)); |
97 | 97 | ||
98 | /* Allocate the raw object descriptor */ | 98 | /* Allocate the raw object descriptor */ |
@@ -161,7 +161,7 @@ union acpi_operand_object *acpi_ut_create_buffer_object(acpi_size buffer_size) | |||
161 | union acpi_operand_object *buffer_desc; | 161 | union acpi_operand_object *buffer_desc; |
162 | u8 *buffer = NULL; | 162 | u8 *buffer = NULL; |
163 | 163 | ||
164 | ACPI_FUNCTION_TRACE_U32("ut_create_buffer_object", buffer_size); | 164 | ACPI_FUNCTION_TRACE_U32(ut_create_buffer_object, buffer_size); |
165 | 165 | ||
166 | /* Create a new Buffer object */ | 166 | /* Create a new Buffer object */ |
167 | 167 | ||
@@ -215,7 +215,7 @@ union acpi_operand_object *acpi_ut_create_string_object(acpi_size string_size) | |||
215 | union acpi_operand_object *string_desc; | 215 | union acpi_operand_object *string_desc; |
216 | char *string; | 216 | char *string; |
217 | 217 | ||
218 | ACPI_FUNCTION_TRACE_U32("ut_create_string_object", string_size); | 218 | ACPI_FUNCTION_TRACE_U32(ut_create_string_object, string_size); |
219 | 219 | ||
220 | /* Create a new String object */ | 220 | /* Create a new String object */ |
221 | 221 | ||
@@ -261,7 +261,7 @@ union acpi_operand_object *acpi_ut_create_string_object(acpi_size string_size) | |||
261 | u8 acpi_ut_valid_internal_object(void *object) | 261 | u8 acpi_ut_valid_internal_object(void *object) |
262 | { | 262 | { |
263 | 263 | ||
264 | ACPI_FUNCTION_NAME("ut_valid_internal_object"); | 264 | ACPI_FUNCTION_NAME(ut_valid_internal_object); |
265 | 265 | ||
266 | /* Check for a null pointer */ | 266 | /* Check for a null pointer */ |
267 | 267 | ||
@@ -309,7 +309,7 @@ void *acpi_ut_allocate_object_desc_dbg(char *module_name, | |||
309 | { | 309 | { |
310 | union acpi_operand_object *object; | 310 | union acpi_operand_object *object; |
311 | 311 | ||
312 | ACPI_FUNCTION_TRACE("ut_allocate_object_desc_dbg"); | 312 | ACPI_FUNCTION_TRACE(ut_allocate_object_desc_dbg); |
313 | 313 | ||
314 | object = acpi_os_acquire_object(acpi_gbl_operand_cache); | 314 | object = acpi_os_acquire_object(acpi_gbl_operand_cache); |
315 | if (!object) { | 315 | if (!object) { |
@@ -344,7 +344,7 @@ void *acpi_ut_allocate_object_desc_dbg(char *module_name, | |||
344 | 344 | ||
345 | void acpi_ut_delete_object_desc(union acpi_operand_object *object) | 345 | void acpi_ut_delete_object_desc(union acpi_operand_object *object) |
346 | { | 346 | { |
347 | ACPI_FUNCTION_TRACE_PTR("ut_delete_object_desc", object); | 347 | ACPI_FUNCTION_TRACE_PTR(ut_delete_object_desc, object); |
348 | 348 | ||
349 | /* Object must be an union acpi_operand_object */ | 349 | /* Object must be an union acpi_operand_object */ |
350 | 350 | ||
@@ -383,7 +383,7 @@ acpi_ut_get_simple_object_size(union acpi_operand_object *internal_object, | |||
383 | acpi_size length; | 383 | acpi_size length; |
384 | acpi_status status = AE_OK; | 384 | acpi_status status = AE_OK; |
385 | 385 | ||
386 | ACPI_FUNCTION_TRACE_PTR("ut_get_simple_object_size", internal_object); | 386 | ACPI_FUNCTION_TRACE_PTR(ut_get_simple_object_size, internal_object); |
387 | 387 | ||
388 | /* | 388 | /* |
389 | * Handle a null object (Could be a uninitialized package | 389 | * Handle a null object (Could be a uninitialized package |
@@ -562,7 +562,7 @@ acpi_ut_get_package_object_size(union acpi_operand_object *internal_object, | |||
562 | acpi_status status; | 562 | acpi_status status; |
563 | struct acpi_pkg_info info; | 563 | struct acpi_pkg_info info; |
564 | 564 | ||
565 | ACPI_FUNCTION_TRACE_PTR("ut_get_package_object_size", internal_object); | 565 | ACPI_FUNCTION_TRACE_PTR(ut_get_package_object_size, internal_object); |
566 | 566 | ||
567 | info.length = 0; | 567 | info.length = 0; |
568 | info.object_space = 0; | 568 | info.object_space = 0; |
diff --git a/drivers/acpi/utilities/utresrc.c b/drivers/acpi/utilities/utresrc.c index 1e680794c6df..5a2de92831d3 100644 --- a/drivers/acpi/utilities/utresrc.c +++ b/drivers/acpi/utilities/utresrc.c | |||
@@ -45,113 +45,113 @@ | |||
45 | #include <acpi/amlresrc.h> | 45 | #include <acpi/amlresrc.h> |
46 | 46 | ||
47 | #define _COMPONENT ACPI_UTILITIES | 47 | #define _COMPONENT ACPI_UTILITIES |
48 | ACPI_MODULE_NAME("utmisc") | 48 | ACPI_MODULE_NAME("utresrc") |
49 | 49 | ||
50 | #if defined(ACPI_DISASSEMBLER) || defined (ACPI_DEBUGGER) | 50 | #if defined(ACPI_DISASSEMBLER) || defined (ACPI_DEBUGGER) |
51 | /* | 51 | /* |
52 | * Strings used to decode resource descriptors. | 52 | * Strings used to decode resource descriptors. |
53 | * Used by both the disasssembler and the debugger resource dump routines | 53 | * Used by both the disasssembler and the debugger resource dump routines |
54 | */ | 54 | */ |
55 | const char *acpi_gbl_BMdecode[2] = { | 55 | const char *acpi_gbl_bm_decode[] = { |
56 | "not_bus_master", | 56 | "NotBusMaster", |
57 | "bus_master" | 57 | "BusMaster" |
58 | }; | 58 | }; |
59 | 59 | ||
60 | const char *acpi_gbl_config_decode[4] = { | 60 | const char *acpi_gbl_config_decode[] = { |
61 | "0 - Good Configuration", | 61 | "0 - Good Configuration", |
62 | "1 - Acceptable Configuration", | 62 | "1 - Acceptable Configuration", |
63 | "2 - Suboptimal Configuration", | 63 | "2 - Suboptimal Configuration", |
64 | "3 - ***Invalid Configuration***", | 64 | "3 - ***Invalid Configuration***", |
65 | }; | 65 | }; |
66 | 66 | ||
67 | const char *acpi_gbl_consume_decode[2] = { | 67 | const char *acpi_gbl_consume_decode[] = { |
68 | "resource_producer", | 68 | "ResourceProducer", |
69 | "resource_consumer" | 69 | "ResourceConsumer" |
70 | }; | 70 | }; |
71 | 71 | ||
72 | const char *acpi_gbl_DECdecode[2] = { | 72 | const char *acpi_gbl_dec_decode[] = { |
73 | "pos_decode", | 73 | "PosDecode", |
74 | "sub_decode" | 74 | "SubDecode" |
75 | }; | 75 | }; |
76 | 76 | ||
77 | const char *acpi_gbl_HEdecode[2] = { | 77 | const char *acpi_gbl_he_decode[] = { |
78 | "Level", | 78 | "Level", |
79 | "Edge" | 79 | "Edge" |
80 | }; | 80 | }; |
81 | 81 | ||
82 | const char *acpi_gbl_io_decode[2] = { | 82 | const char *acpi_gbl_io_decode[] = { |
83 | "Decode10", | 83 | "Decode10", |
84 | "Decode16" | 84 | "Decode16" |
85 | }; | 85 | }; |
86 | 86 | ||
87 | const char *acpi_gbl_LLdecode[2] = { | 87 | const char *acpi_gbl_ll_decode[] = { |
88 | "active_high", | 88 | "ActiveHigh", |
89 | "active_low" | 89 | "ActiveLow" |
90 | }; | 90 | }; |
91 | 91 | ||
92 | const char *acpi_gbl_max_decode[2] = { | 92 | const char *acpi_gbl_max_decode[] = { |
93 | "max_not_fixed", | 93 | "MaxNotFixed", |
94 | "max_fixed" | 94 | "MaxFixed" |
95 | }; | 95 | }; |
96 | 96 | ||
97 | const char *acpi_gbl_MEMdecode[4] = { | 97 | const char *acpi_gbl_mem_decode[] = { |
98 | "non_cacheable", | 98 | "NonCacheable", |
99 | "Cacheable", | 99 | "Cacheable", |
100 | "write_combining", | 100 | "WriteCombining", |
101 | "Prefetchable" | 101 | "Prefetchable" |
102 | }; | 102 | }; |
103 | 103 | ||
104 | const char *acpi_gbl_min_decode[2] = { | 104 | const char *acpi_gbl_min_decode[] = { |
105 | "min_not_fixed", | 105 | "MinNotFixed", |
106 | "min_fixed" | 106 | "MinFixed" |
107 | }; | 107 | }; |
108 | 108 | ||
109 | const char *acpi_gbl_MTPdecode[4] = { | 109 | const char *acpi_gbl_mtp_decode[] = { |
110 | "address_range_memory", | 110 | "AddressRangeMemory", |
111 | "address_range_reserved", | 111 | "AddressRangeReserved", |
112 | "address_range_aCPI", | 112 | "AddressRangeACPI", |
113 | "address_range_nVS" | 113 | "AddressRangeNVS" |
114 | }; | 114 | }; |
115 | 115 | ||
116 | const char *acpi_gbl_RNGdecode[4] = { | 116 | const char *acpi_gbl_rng_decode[] = { |
117 | "invalid_ranges", | 117 | "InvalidRanges", |
118 | "non_iSAonly_ranges", | 118 | "NonISAOnlyRanges", |
119 | "ISAonly_ranges", | 119 | "ISAOnlyRanges", |
120 | "entire_range" | 120 | "EntireRange" |
121 | }; | 121 | }; |
122 | 122 | ||
123 | const char *acpi_gbl_RWdecode[2] = { | 123 | const char *acpi_gbl_rw_decode[] = { |
124 | "read_only", | 124 | "ReadOnly", |
125 | "read_write" | 125 | "ReadWrite" |
126 | }; | 126 | }; |
127 | 127 | ||
128 | const char *acpi_gbl_SHRdecode[2] = { | 128 | const char *acpi_gbl_shr_decode[] = { |
129 | "Exclusive", | 129 | "Exclusive", |
130 | "Shared" | 130 | "Shared" |
131 | }; | 131 | }; |
132 | 132 | ||
133 | const char *acpi_gbl_SIZdecode[4] = { | 133 | const char *acpi_gbl_siz_decode[] = { |
134 | "Transfer8", | 134 | "Transfer8", |
135 | "Transfer8_16", | 135 | "Transfer8_16", |
136 | "Transfer16", | 136 | "Transfer16", |
137 | "invalid_size" | 137 | "InvalidSize" |
138 | }; | 138 | }; |
139 | 139 | ||
140 | const char *acpi_gbl_TRSdecode[2] = { | 140 | const char *acpi_gbl_trs_decode[] = { |
141 | "dense_translation", | 141 | "DenseTranslation", |
142 | "sparse_translation" | 142 | "SparseTranslation" |
143 | }; | 143 | }; |
144 | 144 | ||
145 | const char *acpi_gbl_TTPdecode[2] = { | 145 | const char *acpi_gbl_ttp_decode[] = { |
146 | "type_static", | 146 | "TypeStatic", |
147 | "type_translation" | 147 | "TypeTranslation" |
148 | }; | 148 | }; |
149 | 149 | ||
150 | const char *acpi_gbl_TYPdecode[4] = { | 150 | const char *acpi_gbl_typ_decode[] = { |
151 | "Compatibility", | 151 | "Compatibility", |
152 | "type_a", | 152 | "TypeA", |
153 | "type_b", | 153 | "TypeB", |
154 | "type_f" | 154 | "TypeF" |
155 | }; | 155 | }; |
156 | 156 | ||
157 | #endif | 157 | #endif |
@@ -266,7 +266,7 @@ acpi_ut_walk_aml_resources(u8 * aml, | |||
266 | u32 length; | 266 | u32 length; |
267 | u32 offset = 0; | 267 | u32 offset = 0; |
268 | 268 | ||
269 | ACPI_FUNCTION_TRACE("ut_walk_aml_resources"); | 269 | ACPI_FUNCTION_TRACE(ut_walk_aml_resources); |
270 | 270 | ||
271 | /* The absolute minimum resource template is one end_tag descriptor */ | 271 | /* The absolute minimum resource template is one end_tag descriptor */ |
272 | 272 | ||
@@ -597,7 +597,7 @@ acpi_ut_get_resource_end_tag(union acpi_operand_object * obj_desc, | |||
597 | { | 597 | { |
598 | acpi_status status; | 598 | acpi_status status; |
599 | 599 | ||
600 | ACPI_FUNCTION_TRACE("ut_get_resource_end_tag"); | 600 | ACPI_FUNCTION_TRACE(ut_get_resource_end_tag); |
601 | 601 | ||
602 | /* Allow a buffer length of zero */ | 602 | /* Allow a buffer length of zero */ |
603 | 603 | ||
diff --git a/drivers/acpi/utilities/utstate.c b/drivers/acpi/utilities/utstate.c index aec5034cd978..0f5c5bb5deff 100644 --- a/drivers/acpi/utilities/utstate.c +++ b/drivers/acpi/utilities/utstate.c | |||
@@ -96,7 +96,7 @@ void | |||
96 | acpi_ut_push_generic_state(union acpi_generic_state **list_head, | 96 | acpi_ut_push_generic_state(union acpi_generic_state **list_head, |
97 | union acpi_generic_state *state) | 97 | union acpi_generic_state *state) |
98 | { | 98 | { |
99 | ACPI_FUNCTION_TRACE("ut_push_generic_state"); | 99 | ACPI_FUNCTION_TRACE(ut_push_generic_state); |
100 | 100 | ||
101 | /* Push the state object onto the front of the list (stack) */ | 101 | /* Push the state object onto the front of the list (stack) */ |
102 | 102 | ||
@@ -123,7 +123,7 @@ union acpi_generic_state *acpi_ut_pop_generic_state(union acpi_generic_state | |||
123 | { | 123 | { |
124 | union acpi_generic_state *state; | 124 | union acpi_generic_state *state; |
125 | 125 | ||
126 | ACPI_FUNCTION_TRACE("ut_pop_generic_state"); | 126 | ACPI_FUNCTION_TRACE(ut_pop_generic_state); |
127 | 127 | ||
128 | /* Remove the state object at the head of the list (stack) */ | 128 | /* Remove the state object at the head of the list (stack) */ |
129 | 129 | ||
@@ -185,7 +185,7 @@ struct acpi_thread_state *acpi_ut_create_thread_state(void) | |||
185 | { | 185 | { |
186 | union acpi_generic_state *state; | 186 | union acpi_generic_state *state; |
187 | 187 | ||
188 | ACPI_FUNCTION_TRACE("ut_create_thread_state"); | 188 | ACPI_FUNCTION_TRACE(ut_create_thread_state); |
189 | 189 | ||
190 | /* Create the generic state object */ | 190 | /* Create the generic state object */ |
191 | 191 | ||
@@ -222,7 +222,7 @@ union acpi_generic_state *acpi_ut_create_update_state(union acpi_operand_object | |||
222 | { | 222 | { |
223 | union acpi_generic_state *state; | 223 | union acpi_generic_state *state; |
224 | 224 | ||
225 | ACPI_FUNCTION_TRACE_PTR("ut_create_update_state", object); | 225 | ACPI_FUNCTION_TRACE_PTR(ut_create_update_state, object); |
226 | 226 | ||
227 | /* Create the generic state object */ | 227 | /* Create the generic state object */ |
228 | 228 | ||
@@ -259,7 +259,7 @@ union acpi_generic_state *acpi_ut_create_pkg_state(void *internal_object, | |||
259 | { | 259 | { |
260 | union acpi_generic_state *state; | 260 | union acpi_generic_state *state; |
261 | 261 | ||
262 | ACPI_FUNCTION_TRACE_PTR("ut_create_pkg_state", internal_object); | 262 | ACPI_FUNCTION_TRACE_PTR(ut_create_pkg_state, internal_object); |
263 | 263 | ||
264 | /* Create the generic state object */ | 264 | /* Create the generic state object */ |
265 | 265 | ||
@@ -296,7 +296,7 @@ union acpi_generic_state *acpi_ut_create_control_state(void) | |||
296 | { | 296 | { |
297 | union acpi_generic_state *state; | 297 | union acpi_generic_state *state; |
298 | 298 | ||
299 | ACPI_FUNCTION_TRACE("ut_create_control_state"); | 299 | ACPI_FUNCTION_TRACE(ut_create_control_state); |
300 | 300 | ||
301 | /* Create the generic state object */ | 301 | /* Create the generic state object */ |
302 | 302 | ||
@@ -328,7 +328,7 @@ union acpi_generic_state *acpi_ut_create_control_state(void) | |||
328 | 328 | ||
329 | void acpi_ut_delete_generic_state(union acpi_generic_state *state) | 329 | void acpi_ut_delete_generic_state(union acpi_generic_state *state) |
330 | { | 330 | { |
331 | ACPI_FUNCTION_TRACE("ut_delete_generic_state"); | 331 | ACPI_FUNCTION_TRACE(ut_delete_generic_state); |
332 | 332 | ||
333 | /* Ignore null state */ | 333 | /* Ignore null state */ |
334 | 334 | ||
diff --git a/drivers/acpi/utilities/utxface.c b/drivers/acpi/utilities/utxface.c index ac90048a8a5b..3538f69c82a1 100644 --- a/drivers/acpi/utilities/utxface.c +++ b/drivers/acpi/utilities/utxface.c | |||
@@ -65,7 +65,7 @@ acpi_status acpi_initialize_subsystem(void) | |||
65 | { | 65 | { |
66 | acpi_status status; | 66 | acpi_status status; |
67 | 67 | ||
68 | ACPI_FUNCTION_TRACE("acpi_initialize_subsystem"); | 68 | ACPI_FUNCTION_TRACE(acpi_initialize_subsystem); |
69 | 69 | ||
70 | ACPI_DEBUG_EXEC(acpi_ut_init_stack_ptr_trace()); | 70 | ACPI_DEBUG_EXEC(acpi_ut_init_stack_ptr_trace()); |
71 | 71 | ||
@@ -125,7 +125,7 @@ acpi_status acpi_enable_subsystem(u32 flags) | |||
125 | { | 125 | { |
126 | acpi_status status = AE_OK; | 126 | acpi_status status = AE_OK; |
127 | 127 | ||
128 | ACPI_FUNCTION_TRACE("acpi_enable_subsystem"); | 128 | ACPI_FUNCTION_TRACE(acpi_enable_subsystem); |
129 | 129 | ||
130 | /* | 130 | /* |
131 | * We must initialize the hardware before we can enable ACPI. | 131 | * We must initialize the hardware before we can enable ACPI. |
@@ -151,7 +151,7 @@ acpi_status acpi_enable_subsystem(u32 flags) | |||
151 | 151 | ||
152 | status = acpi_enable(); | 152 | status = acpi_enable(); |
153 | if (ACPI_FAILURE(status)) { | 153 | if (ACPI_FAILURE(status)) { |
154 | ACPI_WARNING((AE_INFO, "acpi_enable failed")); | 154 | ACPI_WARNING((AE_INFO, "AcpiEnable failed")); |
155 | return_ACPI_STATUS(status); | 155 | return_ACPI_STATUS(status); |
156 | } | 156 | } |
157 | } | 157 | } |
@@ -246,7 +246,7 @@ acpi_status acpi_initialize_objects(u32 flags) | |||
246 | { | 246 | { |
247 | acpi_status status = AE_OK; | 247 | acpi_status status = AE_OK; |
248 | 248 | ||
249 | ACPI_FUNCTION_TRACE("acpi_initialize_objects"); | 249 | ACPI_FUNCTION_TRACE(acpi_initialize_objects); |
250 | 250 | ||
251 | /* | 251 | /* |
252 | * Run all _REG methods | 252 | * Run all _REG methods |
@@ -257,7 +257,7 @@ acpi_status acpi_initialize_objects(u32 flags) | |||
257 | */ | 257 | */ |
258 | if (!(flags & ACPI_NO_ADDRESS_SPACE_INIT)) { | 258 | if (!(flags & ACPI_NO_ADDRESS_SPACE_INIT)) { |
259 | ACPI_DEBUG_PRINT((ACPI_DB_EXEC, | 259 | ACPI_DEBUG_PRINT((ACPI_DB_EXEC, |
260 | "[Init] Executing _REG op_region methods\n")); | 260 | "[Init] Executing _REG OpRegion methods\n")); |
261 | 261 | ||
262 | status = acpi_ev_initialize_op_regions(); | 262 | status = acpi_ev_initialize_op_regions(); |
263 | if (ACPI_FAILURE(status)) { | 263 | if (ACPI_FAILURE(status)) { |
@@ -322,7 +322,7 @@ acpi_status acpi_terminate(void) | |||
322 | { | 322 | { |
323 | acpi_status status; | 323 | acpi_status status; |
324 | 324 | ||
325 | ACPI_FUNCTION_TRACE("acpi_terminate"); | 325 | ACPI_FUNCTION_TRACE(acpi_terminate); |
326 | 326 | ||
327 | /* Terminate the AML Debugger if present */ | 327 | /* Terminate the AML Debugger if present */ |
328 | 328 | ||
@@ -400,7 +400,7 @@ acpi_status acpi_get_system_info(struct acpi_buffer * out_buffer) | |||
400 | acpi_status status; | 400 | acpi_status status; |
401 | u32 i; | 401 | u32 i; |
402 | 402 | ||
403 | ACPI_FUNCTION_TRACE("acpi_get_system_info"); | 403 | ACPI_FUNCTION_TRACE(acpi_get_system_info); |
404 | 404 | ||
405 | /* Parameter validation */ | 405 | /* Parameter validation */ |
406 | 406 | ||
@@ -451,8 +451,8 @@ acpi_status acpi_get_system_info(struct acpi_buffer * out_buffer) | |||
451 | 451 | ||
452 | /* Current status of the ACPI tables, per table type */ | 452 | /* Current status of the ACPI tables, per table type */ |
453 | 453 | ||
454 | info_ptr->num_table_types = NUM_ACPI_TABLE_TYPES; | 454 | info_ptr->num_table_types = ACPI_TABLE_ID_MAX + 1; |
455 | for (i = 0; i < NUM_ACPI_TABLE_TYPES; i++) { | 455 | for (i = 0; i < (ACPI_TABLE_ID_MAX + 1); i++) { |
456 | info_ptr->table_info[i].count = acpi_gbl_table_lists[i].count; | 456 | info_ptr->table_info[i].count = acpi_gbl_table_lists[i].count; |
457 | } | 457 | } |
458 | 458 | ||
@@ -507,7 +507,7 @@ ACPI_EXPORT_SYMBOL(acpi_install_initialization_handler) | |||
507 | ****************************************************************************/ | 507 | ****************************************************************************/ |
508 | acpi_status acpi_purge_cached_objects(void) | 508 | acpi_status acpi_purge_cached_objects(void) |
509 | { | 509 | { |
510 | ACPI_FUNCTION_TRACE("acpi_purge_cached_objects"); | 510 | ACPI_FUNCTION_TRACE(acpi_purge_cached_objects); |
511 | 511 | ||
512 | (void)acpi_os_purge_cache(acpi_gbl_state_cache); | 512 | (void)acpi_os_purge_cache(acpi_gbl_state_cache); |
513 | (void)acpi_os_purge_cache(acpi_gbl_operand_cache); | 513 | (void)acpi_os_purge_cache(acpi_gbl_operand_cache); |