aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/hardware
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/hardware')
-rw-r--r--drivers/acpi/hardware/hwacpi.c6
-rw-r--r--drivers/acpi/hardware/hwgpe.c6
-rw-r--r--drivers/acpi/hardware/hwregs.c24
-rw-r--r--drivers/acpi/hardware/hwsleep.c12
-rw-r--r--drivers/acpi/hardware/hwtimer.c6
5 files changed, 27 insertions, 27 deletions
diff --git a/drivers/acpi/hardware/hwacpi.c b/drivers/acpi/hardware/hwacpi.c
index ea2f13271ff1..de50fab2a910 100644
--- a/drivers/acpi/hardware/hwacpi.c
+++ b/drivers/acpi/hardware/hwacpi.c
@@ -63,7 +63,7 @@ acpi_status acpi_hw_initialize(void)
63{ 63{
64 acpi_status status; 64 acpi_status status;
65 65
66 ACPI_FUNCTION_TRACE("hw_initialize"); 66 ACPI_FUNCTION_TRACE(hw_initialize);
67 67
68 /* We must have the ACPI tables by the time we get here */ 68 /* We must have the ACPI tables by the time we get here */
69 69
@@ -100,7 +100,7 @@ acpi_status acpi_hw_set_mode(u32 mode)
100 acpi_status status; 100 acpi_status status;
101 u32 retry; 101 u32 retry;
102 102
103 ACPI_FUNCTION_TRACE("hw_set_mode"); 103 ACPI_FUNCTION_TRACE(hw_set_mode);
104 104
105 /* 105 /*
106 * ACPI 2.0 clarified that if SMI_CMD in FADT is zero, 106 * ACPI 2.0 clarified that if SMI_CMD in FADT is zero,
@@ -198,7 +198,7 @@ u32 acpi_hw_get_mode(void)
198 acpi_status status; 198 acpi_status status;
199 u32 value; 199 u32 value;
200 200
201 ACPI_FUNCTION_TRACE("hw_get_mode"); 201 ACPI_FUNCTION_TRACE(hw_get_mode);
202 202
203 /* 203 /*
204 * ACPI 2.0 clarified that if SMI_CMD in FADT is zero, 204 * ACPI 2.0 clarified that if SMI_CMD in FADT is zero,
diff --git a/drivers/acpi/hardware/hwgpe.c b/drivers/acpi/hardware/hwgpe.c
index 729b68eb3e35..608a3a60ee11 100644
--- a/drivers/acpi/hardware/hwgpe.c
+++ b/drivers/acpi/hardware/hwgpe.c
@@ -370,7 +370,7 @@ acpi_status acpi_hw_disable_all_gpes(void)
370{ 370{
371 acpi_status status; 371 acpi_status status;
372 372
373 ACPI_FUNCTION_TRACE("hw_disable_all_gpes"); 373 ACPI_FUNCTION_TRACE(hw_disable_all_gpes);
374 374
375 status = acpi_ev_walk_gpe_list(acpi_hw_disable_gpe_block); 375 status = acpi_ev_walk_gpe_list(acpi_hw_disable_gpe_block);
376 status = acpi_ev_walk_gpe_list(acpi_hw_clear_gpe_block); 376 status = acpi_ev_walk_gpe_list(acpi_hw_clear_gpe_block);
@@ -393,7 +393,7 @@ acpi_status acpi_hw_enable_all_runtime_gpes(void)
393{ 393{
394 acpi_status status; 394 acpi_status status;
395 395
396 ACPI_FUNCTION_TRACE("hw_enable_all_runtime_gpes"); 396 ACPI_FUNCTION_TRACE(hw_enable_all_runtime_gpes);
397 397
398 status = acpi_ev_walk_gpe_list(acpi_hw_enable_runtime_gpe_block); 398 status = acpi_ev_walk_gpe_list(acpi_hw_enable_runtime_gpe_block);
399 return_ACPI_STATUS(status); 399 return_ACPI_STATUS(status);
@@ -415,7 +415,7 @@ acpi_status acpi_hw_enable_all_wakeup_gpes(void)
415{ 415{
416 acpi_status status; 416 acpi_status status;
417 417
418 ACPI_FUNCTION_TRACE("hw_enable_all_wakeup_gpes"); 418 ACPI_FUNCTION_TRACE(hw_enable_all_wakeup_gpes);
419 419
420 status = acpi_ev_walk_gpe_list(acpi_hw_enable_wakeup_gpe_block); 420 status = acpi_ev_walk_gpe_list(acpi_hw_enable_wakeup_gpe_block);
421 return_ACPI_STATUS(status); 421 return_ACPI_STATUS(status);
diff --git a/drivers/acpi/hardware/hwregs.c b/drivers/acpi/hardware/hwregs.c
index 3d1f41c6bfe9..ec9f5a11a8b3 100644
--- a/drivers/acpi/hardware/hwregs.c
+++ b/drivers/acpi/hardware/hwregs.c
@@ -66,7 +66,7 @@ acpi_status acpi_hw_clear_acpi_status(u32 flags)
66{ 66{
67 acpi_status status; 67 acpi_status status;
68 68
69 ACPI_FUNCTION_TRACE("hw_clear_acpi_status"); 69 ACPI_FUNCTION_TRACE(hw_clear_acpi_status);
70 70
71 ACPI_DEBUG_PRINT((ACPI_DB_IO, "About to write %04X to %04X\n", 71 ACPI_DEBUG_PRINT((ACPI_DB_IO, "About to write %04X to %04X\n",
72 ACPI_BITMASK_ALL_FIXED_STATUS, 72 ACPI_BITMASK_ALL_FIXED_STATUS,
@@ -130,7 +130,7 @@ acpi_get_sleep_type_data(u8 sleep_state, u8 * sleep_type_a, u8 * sleep_type_b)
130 struct acpi_parameter_info info; 130 struct acpi_parameter_info info;
131 char *sleep_state_name; 131 char *sleep_state_name;
132 132
133 ACPI_FUNCTION_TRACE("acpi_get_sleep_type_data"); 133 ACPI_FUNCTION_TRACE(acpi_get_sleep_type_data);
134 134
135 /* Validate parameters */ 135 /* Validate parameters */
136 136
@@ -148,7 +148,7 @@ acpi_get_sleep_type_data(u8 sleep_state, u8 * sleep_type_a, u8 * sleep_type_b)
148 status = acpi_ns_evaluate_by_name(sleep_state_name, &info); 148 status = acpi_ns_evaluate_by_name(sleep_state_name, &info);
149 if (ACPI_FAILURE(status)) { 149 if (ACPI_FAILURE(status)) {
150 ACPI_DEBUG_PRINT((ACPI_DB_EXEC, 150 ACPI_DEBUG_PRINT((ACPI_DB_EXEC,
151 "%s while evaluating sleep_state [%s]\n", 151 "%s while evaluating SleepState [%s]\n",
152 acpi_format_exception(status), 152 acpi_format_exception(status),
153 sleep_state_name)); 153 sleep_state_name));
154 154
@@ -208,7 +208,7 @@ acpi_get_sleep_type_data(u8 sleep_state, u8 * sleep_type_a, u8 * sleep_type_b)
208 208
209 if (ACPI_FAILURE(status)) { 209 if (ACPI_FAILURE(status)) {
210 ACPI_EXCEPTION((AE_INFO, status, 210 ACPI_EXCEPTION((AE_INFO, status,
211 "While evaluating sleep_state [%s], bad Sleep object %p type %s", 211 "While evaluating SleepState [%s], bad Sleep object %p type %s",
212 sleep_state_name, info.return_object, 212 sleep_state_name, info.return_object,
213 acpi_ut_get_object_type_name(info. 213 acpi_ut_get_object_type_name(info.
214 return_object))); 214 return_object)));
@@ -236,7 +236,7 @@ struct acpi_bit_register_info *acpi_hw_get_bit_register_info(u32 register_id)
236 ACPI_FUNCTION_ENTRY(); 236 ACPI_FUNCTION_ENTRY();
237 237
238 if (register_id > ACPI_BITREG_MAX) { 238 if (register_id > ACPI_BITREG_MAX) {
239 ACPI_ERROR((AE_INFO, "Invalid bit_register ID: %X", 239 ACPI_ERROR((AE_INFO, "Invalid BitRegister ID: %X",
240 register_id)); 240 register_id));
241 return (NULL); 241 return (NULL);
242 } 242 }
@@ -265,7 +265,7 @@ acpi_status acpi_get_register(u32 register_id, u32 * return_value, u32 flags)
265 struct acpi_bit_register_info *bit_reg_info; 265 struct acpi_bit_register_info *bit_reg_info;
266 acpi_status status; 266 acpi_status status;
267 267
268 ACPI_FUNCTION_TRACE("acpi_get_register"); 268 ACPI_FUNCTION_TRACE(acpi_get_register);
269 269
270 /* Get the info structure corresponding to the requested ACPI Register */ 270 /* Get the info structure corresponding to the requested ACPI Register */
271 271
@@ -331,13 +331,13 @@ acpi_status acpi_set_register(u32 register_id, u32 value, u32 flags)
331 struct acpi_bit_register_info *bit_reg_info; 331 struct acpi_bit_register_info *bit_reg_info;
332 acpi_status status; 332 acpi_status status;
333 333
334 ACPI_FUNCTION_TRACE_U32("acpi_set_register", register_id); 334 ACPI_FUNCTION_TRACE_U32(acpi_set_register, register_id);
335 335
336 /* Get the info structure corresponding to the requested ACPI Register */ 336 /* Get the info structure corresponding to the requested ACPI Register */
337 337
338 bit_reg_info = acpi_hw_get_bit_register_info(register_id); 338 bit_reg_info = acpi_hw_get_bit_register_info(register_id);
339 if (!bit_reg_info) { 339 if (!bit_reg_info) {
340 ACPI_ERROR((AE_INFO, "Bad ACPI HW register_id: %X", 340 ACPI_ERROR((AE_INFO, "Bad ACPI HW RegisterId: %X",
341 register_id)); 341 register_id));
342 return_ACPI_STATUS(AE_BAD_PARAMETER); 342 return_ACPI_STATUS(AE_BAD_PARAMETER);
343 } 343 }
@@ -494,7 +494,7 @@ acpi_hw_register_read(u8 use_lock, u32 register_id, u32 * return_value)
494 u32 value2 = 0; 494 u32 value2 = 0;
495 acpi_status status; 495 acpi_status status;
496 496
497 ACPI_FUNCTION_TRACE("hw_register_read"); 497 ACPI_FUNCTION_TRACE(hw_register_read);
498 498
499 if (ACPI_MTX_LOCK == use_lock) { 499 if (ACPI_MTX_LOCK == use_lock) {
500 status = acpi_ut_acquire_mutex(ACPI_MTX_HARDWARE); 500 status = acpi_ut_acquire_mutex(ACPI_MTX_HARDWARE);
@@ -607,7 +607,7 @@ acpi_status acpi_hw_register_write(u8 use_lock, u32 register_id, u32 value)
607{ 607{
608 acpi_status status; 608 acpi_status status;
609 609
610 ACPI_FUNCTION_TRACE("hw_register_write"); 610 ACPI_FUNCTION_TRACE(hw_register_write);
611 611
612 if (ACPI_MTX_LOCK == use_lock) { 612 if (ACPI_MTX_LOCK == use_lock) {
613 status = acpi_ut_acquire_mutex(ACPI_MTX_HARDWARE); 613 status = acpi_ut_acquire_mutex(ACPI_MTX_HARDWARE);
@@ -729,7 +729,7 @@ acpi_hw_low_level_read(u32 width, u32 * value, struct acpi_generic_address *reg)
729 u64 address; 729 u64 address;
730 acpi_status status; 730 acpi_status status;
731 731
732 ACPI_FUNCTION_NAME("hw_low_level_read"); 732 ACPI_FUNCTION_NAME(hw_low_level_read);
733 733
734 /* 734 /*
735 * Must have a valid pointer to a GAS structure, and 735 * Must have a valid pointer to a GAS structure, and
@@ -801,7 +801,7 @@ acpi_hw_low_level_write(u32 width, u32 value, struct acpi_generic_address * reg)
801 u64 address; 801 u64 address;
802 acpi_status status; 802 acpi_status status;
803 803
804 ACPI_FUNCTION_NAME("hw_low_level_write"); 804 ACPI_FUNCTION_NAME(hw_low_level_write);
805 805
806 /* 806 /*
807 * Must have a valid pointer to a GAS structure, and 807 * Must have a valid pointer to a GAS structure, and
diff --git a/drivers/acpi/hardware/hwsleep.c b/drivers/acpi/hardware/hwsleep.c
index 685debafbb72..8bb43cae60c2 100644
--- a/drivers/acpi/hardware/hwsleep.c
+++ b/drivers/acpi/hardware/hwsleep.c
@@ -63,7 +63,7 @@ acpi_status
63acpi_set_firmware_waking_vector(acpi_physical_address physical_address) 63acpi_set_firmware_waking_vector(acpi_physical_address physical_address)
64{ 64{
65 65
66 ACPI_FUNCTION_TRACE("acpi_set_firmware_waking_vector"); 66 ACPI_FUNCTION_TRACE(acpi_set_firmware_waking_vector);
67 67
68 /* Set the vector */ 68 /* Set the vector */
69 69
@@ -98,7 +98,7 @@ acpi_status
98acpi_get_firmware_waking_vector(acpi_physical_address * physical_address) 98acpi_get_firmware_waking_vector(acpi_physical_address * physical_address)
99{ 99{
100 100
101 ACPI_FUNCTION_TRACE("acpi_get_firmware_waking_vector"); 101 ACPI_FUNCTION_TRACE(acpi_get_firmware_waking_vector);
102 102
103 if (!physical_address) { 103 if (!physical_address) {
104 return_ACPI_STATUS(AE_BAD_PARAMETER); 104 return_ACPI_STATUS(AE_BAD_PARAMETER);
@@ -142,7 +142,7 @@ acpi_status acpi_enter_sleep_state_prep(u8 sleep_state)
142 struct acpi_object_list arg_list; 142 struct acpi_object_list arg_list;
143 union acpi_object arg; 143 union acpi_object arg;
144 144
145 ACPI_FUNCTION_TRACE("acpi_enter_sleep_state_prep"); 145 ACPI_FUNCTION_TRACE(acpi_enter_sleep_state_prep);
146 146
147 /* 147 /*
148 * _PSW methods could be run here to enable wake-on keyboard, LAN, etc. 148 * _PSW methods could be run here to enable wake-on keyboard, LAN, etc.
@@ -230,7 +230,7 @@ acpi_status asmlinkage acpi_enter_sleep_state(u8 sleep_state)
230 u32 in_value; 230 u32 in_value;
231 acpi_status status; 231 acpi_status status;
232 232
233 ACPI_FUNCTION_TRACE("acpi_enter_sleep_state"); 233 ACPI_FUNCTION_TRACE(acpi_enter_sleep_state);
234 234
235 if ((acpi_gbl_sleep_type_a > ACPI_SLEEP_TYPE_MAX) || 235 if ((acpi_gbl_sleep_type_a > ACPI_SLEEP_TYPE_MAX) ||
236 (acpi_gbl_sleep_type_b > ACPI_SLEEP_TYPE_MAX)) { 236 (acpi_gbl_sleep_type_b > ACPI_SLEEP_TYPE_MAX)) {
@@ -399,7 +399,7 @@ acpi_status asmlinkage acpi_enter_sleep_state_s4bios(void)
399 u32 in_value; 399 u32 in_value;
400 acpi_status status; 400 acpi_status status;
401 401
402 ACPI_FUNCTION_TRACE("acpi_enter_sleep_state_s4bios"); 402 ACPI_FUNCTION_TRACE(acpi_enter_sleep_state_s4bios);
403 403
404 status = 404 status =
405 acpi_set_register(ACPI_BITREG_WAKE_STATUS, 1, ACPI_MTX_DO_NOT_LOCK); 405 acpi_set_register(ACPI_BITREG_WAKE_STATUS, 1, ACPI_MTX_DO_NOT_LOCK);
@@ -468,7 +468,7 @@ acpi_status acpi_leave_sleep_state(u8 sleep_state)
468 u32 PM1Acontrol; 468 u32 PM1Acontrol;
469 u32 PM1Bcontrol; 469 u32 PM1Bcontrol;
470 470
471 ACPI_FUNCTION_TRACE("acpi_leave_sleep_state"); 471 ACPI_FUNCTION_TRACE(acpi_leave_sleep_state);
472 472
473 /* 473 /*
474 * Set SLP_TYPE and SLP_EN to state S0. 474 * Set SLP_TYPE and SLP_EN to state S0.
diff --git a/drivers/acpi/hardware/hwtimer.c b/drivers/acpi/hardware/hwtimer.c
index a559ac17b132..c4ec47c939fd 100644
--- a/drivers/acpi/hardware/hwtimer.c
+++ b/drivers/acpi/hardware/hwtimer.c
@@ -60,7 +60,7 @@ ACPI_MODULE_NAME("hwtimer")
60 ******************************************************************************/ 60 ******************************************************************************/
61acpi_status acpi_get_timer_resolution(u32 * resolution) 61acpi_status acpi_get_timer_resolution(u32 * resolution)
62{ 62{
63 ACPI_FUNCTION_TRACE("acpi_get_timer_resolution"); 63 ACPI_FUNCTION_TRACE(acpi_get_timer_resolution);
64 64
65 if (!resolution) { 65 if (!resolution) {
66 return_ACPI_STATUS(AE_BAD_PARAMETER); 66 return_ACPI_STATUS(AE_BAD_PARAMETER);
@@ -92,7 +92,7 @@ acpi_status acpi_get_timer(u32 * ticks)
92{ 92{
93 acpi_status status; 93 acpi_status status;
94 94
95 ACPI_FUNCTION_TRACE("acpi_get_timer"); 95 ACPI_FUNCTION_TRACE(acpi_get_timer);
96 96
97 if (!ticks) { 97 if (!ticks) {
98 return_ACPI_STATUS(AE_BAD_PARAMETER); 98 return_ACPI_STATUS(AE_BAD_PARAMETER);
@@ -140,7 +140,7 @@ acpi_get_timer_duration(u32 start_ticks, u32 end_ticks, u32 * time_elapsed)
140 u32 delta_ticks; 140 u32 delta_ticks;
141 acpi_integer quotient; 141 acpi_integer quotient;
142 142
143 ACPI_FUNCTION_TRACE("acpi_get_timer_duration"); 143 ACPI_FUNCTION_TRACE(acpi_get_timer_duration);
144 144
145 if (!time_elapsed) { 145 if (!time_elapsed) {
146 return_ACPI_STATUS(AE_BAD_PARAMETER); 146 return_ACPI_STATUS(AE_BAD_PARAMETER);