diff options
Diffstat (limited to 'drivers')
38 files changed, 162 insertions, 168 deletions
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index a6dbcf4d9ef5..afb34387d5f2 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c | |||
| @@ -612,7 +612,7 @@ static int __init acpi_bus_init_irq(void) | |||
| 612 | return 0; | 612 | return 0; |
| 613 | } | 613 | } |
| 614 | 614 | ||
| 615 | acpi_native_uint acpi_gbl_permanent_mmap; | 615 | u8 acpi_gbl_permanent_mmap; |
| 616 | 616 | ||
| 617 | 617 | ||
| 618 | void __init acpi_early_init(void) | 618 | void __init acpi_early_init(void) |
diff --git a/drivers/acpi/dispatcher/dsinit.c b/drivers/acpi/dispatcher/dsinit.c index 610b1ee102b0..949f7c75029e 100644 --- a/drivers/acpi/dispatcher/dsinit.c +++ b/drivers/acpi/dispatcher/dsinit.c | |||
| @@ -151,7 +151,7 @@ acpi_ds_init_one_object(acpi_handle obj_handle, | |||
| 151 | ******************************************************************************/ | 151 | ******************************************************************************/ |
| 152 | 152 | ||
| 153 | acpi_status | 153 | acpi_status |
| 154 | acpi_ds_initialize_objects(acpi_native_uint table_index, | 154 | acpi_ds_initialize_objects(u32 table_index, |
| 155 | struct acpi_namespace_node * start_node) | 155 | struct acpi_namespace_node * start_node) |
| 156 | { | 156 | { |
| 157 | acpi_status status; | 157 | acpi_status status; |
diff --git a/drivers/acpi/dispatcher/dsopcode.c b/drivers/acpi/dispatcher/dsopcode.c index a818e0ddb996..ac0bfb1b16fe 100644 --- a/drivers/acpi/dispatcher/dsopcode.c +++ b/drivers/acpi/dispatcher/dsopcode.c | |||
| @@ -848,7 +848,7 @@ acpi_ds_eval_table_region_operands(struct acpi_walk_state *walk_state, | |||
| 848 | union acpi_operand_object **operand; | 848 | union acpi_operand_object **operand; |
| 849 | struct acpi_namespace_node *node; | 849 | struct acpi_namespace_node *node; |
| 850 | union acpi_parse_object *next_op; | 850 | union acpi_parse_object *next_op; |
| 851 | acpi_native_uint table_index; | 851 | u32 table_index; |
| 852 | struct acpi_table_header *table; | 852 | struct acpi_table_header *table; |
| 853 | 853 | ||
| 854 | ACPI_FUNCTION_TRACE_PTR(ds_eval_table_region_operands, op); | 854 | ACPI_FUNCTION_TRACE_PTR(ds_eval_table_region_operands, op); |
diff --git a/drivers/acpi/dispatcher/dswstate.c b/drivers/acpi/dispatcher/dswstate.c index bda23ed60645..b00d4af791aa 100644 --- a/drivers/acpi/dispatcher/dswstate.c +++ b/drivers/acpi/dispatcher/dswstate.c | |||
| @@ -70,7 +70,7 @@ acpi_status | |||
| 70 | acpi_ds_result_pop(union acpi_operand_object **object, | 70 | acpi_ds_result_pop(union acpi_operand_object **object, |
| 71 | struct acpi_walk_state *walk_state) | 71 | struct acpi_walk_state *walk_state) |
| 72 | { | 72 | { |
| 73 | acpi_native_uint index; | 73 | u32 index; |
| 74 | union acpi_generic_state *state; | 74 | union acpi_generic_state *state; |
| 75 | acpi_status status; | 75 | acpi_status status; |
| 76 | 76 | ||
| @@ -122,7 +122,7 @@ acpi_ds_result_pop(union acpi_operand_object **object, | |||
| 122 | ACPI_DEBUG_PRINT((ACPI_DB_EXEC, | 122 | ACPI_DEBUG_PRINT((ACPI_DB_EXEC, |
| 123 | "Obj=%p [%s] Index=%X State=%p Num=%X\n", *object, | 123 | "Obj=%p [%s] Index=%X State=%p Num=%X\n", *object, |
| 124 | acpi_ut_get_object_type_name(*object), | 124 | acpi_ut_get_object_type_name(*object), |
| 125 | (u32) index, walk_state, walk_state->result_count)); | 125 | index, walk_state, walk_state->result_count)); |
| 126 | 126 | ||
| 127 | return (AE_OK); | 127 | return (AE_OK); |
| 128 | } | 128 | } |
| @@ -146,7 +146,7 @@ acpi_ds_result_push(union acpi_operand_object * object, | |||
| 146 | { | 146 | { |
| 147 | union acpi_generic_state *state; | 147 | union acpi_generic_state *state; |
| 148 | acpi_status status; | 148 | acpi_status status; |
| 149 | acpi_native_uint index; | 149 | u32 index; |
| 150 | 150 | ||
| 151 | ACPI_FUNCTION_NAME(ds_result_push); | 151 | ACPI_FUNCTION_NAME(ds_result_push); |
| 152 | 152 | ||
| @@ -400,7 +400,7 @@ void | |||
| 400 | acpi_ds_obj_stack_pop_and_delete(u32 pop_count, | 400 | acpi_ds_obj_stack_pop_and_delete(u32 pop_count, |
| 401 | struct acpi_walk_state *walk_state) | 401 | struct acpi_walk_state *walk_state) |
| 402 | { | 402 | { |
| 403 | acpi_native_int i; | 403 | s32 i; |
| 404 | union acpi_operand_object *obj_desc; | 404 | union acpi_operand_object *obj_desc; |
| 405 | 405 | ||
| 406 | ACPI_FUNCTION_NAME(ds_obj_stack_pop_and_delete); | 406 | ACPI_FUNCTION_NAME(ds_obj_stack_pop_and_delete); |
| @@ -409,7 +409,7 @@ acpi_ds_obj_stack_pop_and_delete(u32 pop_count, | |||
| 409 | return; | 409 | return; |
| 410 | } | 410 | } |
| 411 | 411 | ||
| 412 | for (i = (acpi_native_int) (pop_count - 1); i >= 0; i--) { | 412 | for (i = (s32) pop_count - 1; i >= 0; i--) { |
| 413 | if (walk_state->num_operands == 0) { | 413 | if (walk_state->num_operands == 0) { |
| 414 | return; | 414 | return; |
| 415 | } | 415 | } |
diff --git a/drivers/acpi/events/evevent.c b/drivers/acpi/events/evevent.c index 5d30e5be1b1c..c56c5c6ea77b 100644 --- a/drivers/acpi/events/evevent.c +++ b/drivers/acpi/events/evevent.c | |||
| @@ -188,7 +188,7 @@ acpi_status acpi_ev_install_xrupt_handlers(void) | |||
| 188 | 188 | ||
| 189 | static acpi_status acpi_ev_fixed_event_initialize(void) | 189 | static acpi_status acpi_ev_fixed_event_initialize(void) |
| 190 | { | 190 | { |
| 191 | acpi_native_uint i; | 191 | u32 i; |
| 192 | acpi_status status; | 192 | acpi_status status; |
| 193 | 193 | ||
| 194 | /* | 194 | /* |
| @@ -231,7 +231,7 @@ u32 acpi_ev_fixed_event_detect(void) | |||
| 231 | u32 int_status = ACPI_INTERRUPT_NOT_HANDLED; | 231 | u32 int_status = ACPI_INTERRUPT_NOT_HANDLED; |
| 232 | u32 fixed_status; | 232 | u32 fixed_status; |
| 233 | u32 fixed_enable; | 233 | u32 fixed_enable; |
| 234 | acpi_native_uint i; | 234 | u32 i; |
| 235 | 235 | ||
| 236 | ACPI_FUNCTION_NAME(ev_fixed_event_detect); | 236 | ACPI_FUNCTION_NAME(ev_fixed_event_detect); |
| 237 | 237 | ||
| @@ -260,7 +260,7 @@ u32 acpi_ev_fixed_event_detect(void) | |||
| 260 | 260 | ||
| 261 | /* Found an active (signalled) event */ | 261 | /* Found an active (signalled) event */ |
| 262 | acpi_os_fixed_event_count(i); | 262 | acpi_os_fixed_event_count(i); |
| 263 | int_status |= acpi_ev_fixed_event_dispatch((u32) i); | 263 | int_status |= acpi_ev_fixed_event_dispatch(i); |
| 264 | } | 264 | } |
| 265 | } | 265 | } |
| 266 | 266 | ||
diff --git a/drivers/acpi/events/evgpe.c b/drivers/acpi/events/evgpe.c index ca356e5ae2c3..c5e53aae86f7 100644 --- a/drivers/acpi/events/evgpe.c +++ b/drivers/acpi/events/evgpe.c | |||
| @@ -315,7 +315,7 @@ struct acpi_gpe_event_info *acpi_ev_get_gpe_event_info(acpi_handle gpe_device, | |||
| 315 | { | 315 | { |
| 316 | union acpi_operand_object *obj_desc; | 316 | union acpi_operand_object *obj_desc; |
| 317 | struct acpi_gpe_block_info *gpe_block; | 317 | struct acpi_gpe_block_info *gpe_block; |
| 318 | acpi_native_uint i; | 318 | u32 i; |
| 319 | 319 | ||
| 320 | ACPI_FUNCTION_ENTRY(); | 320 | ACPI_FUNCTION_ENTRY(); |
| 321 | 321 | ||
| @@ -389,8 +389,8 @@ u32 acpi_ev_gpe_detect(struct acpi_gpe_xrupt_info * gpe_xrupt_list) | |||
| 389 | u32 status_reg; | 389 | u32 status_reg; |
| 390 | u32 enable_reg; | 390 | u32 enable_reg; |
| 391 | acpi_cpu_flags flags; | 391 | acpi_cpu_flags flags; |
| 392 | acpi_native_uint i; | 392 | u32 i; |
| 393 | acpi_native_uint j; | 393 | u32 j; |
| 394 | 394 | ||
| 395 | ACPI_FUNCTION_NAME(ev_gpe_detect); | 395 | ACPI_FUNCTION_NAME(ev_gpe_detect); |
| 396 | 396 | ||
| @@ -472,13 +472,7 @@ u32 acpi_ev_gpe_detect(struct acpi_gpe_xrupt_info * gpe_xrupt_list) | |||
| 472 | */ | 472 | */ |
| 473 | int_status |= | 473 | int_status |= |
| 474 | acpi_ev_gpe_dispatch(&gpe_block-> | 474 | acpi_ev_gpe_dispatch(&gpe_block-> |
| 475 | event_info[(i * | 475 | event_info[((acpi_size) i * ACPI_GPE_REGISTER_WIDTH) + j], j + gpe_register_info->base_gpe_number); |
| 476 | ACPI_GPE_REGISTER_WIDTH) | ||
| 477 | + | ||
| 478 | j], | ||
| 479 | (u32) j + | ||
| 480 | gpe_register_info-> | ||
| 481 | base_gpe_number); | ||
| 482 | } | 476 | } |
| 483 | } | 477 | } |
| 484 | } | 478 | } |
diff --git a/drivers/acpi/events/evgpeblk.c b/drivers/acpi/events/evgpeblk.c index e6c4d4c49e79..73c058e2f5c2 100644 --- a/drivers/acpi/events/evgpeblk.c +++ b/drivers/acpi/events/evgpeblk.c | |||
| @@ -189,8 +189,8 @@ acpi_ev_delete_gpe_handlers(struct acpi_gpe_xrupt_info *gpe_xrupt_info, | |||
| 189 | struct acpi_gpe_block_info *gpe_block) | 189 | struct acpi_gpe_block_info *gpe_block) |
| 190 | { | 190 | { |
| 191 | struct acpi_gpe_event_info *gpe_event_info; | 191 | struct acpi_gpe_event_info *gpe_event_info; |
| 192 | acpi_native_uint i; | 192 | u32 i; |
| 193 | acpi_native_uint j; | 193 | u32 j; |
| 194 | 194 | ||
| 195 | ACPI_FUNCTION_TRACE(ev_delete_gpe_handlers); | 195 | ACPI_FUNCTION_TRACE(ev_delete_gpe_handlers); |
| 196 | 196 | ||
| @@ -203,7 +203,8 @@ acpi_ev_delete_gpe_handlers(struct acpi_gpe_xrupt_info *gpe_xrupt_info, | |||
| 203 | for (j = 0; j < ACPI_GPE_REGISTER_WIDTH; j++) { | 203 | for (j = 0; j < ACPI_GPE_REGISTER_WIDTH; j++) { |
| 204 | gpe_event_info = | 204 | gpe_event_info = |
| 205 | &gpe_block-> | 205 | &gpe_block-> |
| 206 | event_info[(i * ACPI_GPE_REGISTER_WIDTH) + j]; | 206 | event_info[((acpi_size) i * |
| 207 | ACPI_GPE_REGISTER_WIDTH) + j]; | ||
| 207 | 208 | ||
| 208 | if ((gpe_event_info->flags & ACPI_GPE_DISPATCH_MASK) == | 209 | if ((gpe_event_info->flags & ACPI_GPE_DISPATCH_MASK) == |
| 209 | ACPI_GPE_DISPATCH_HANDLER) { | 210 | ACPI_GPE_DISPATCH_HANDLER) { |
| @@ -744,8 +745,8 @@ acpi_ev_create_gpe_info_blocks(struct acpi_gpe_block_info *gpe_block) | |||
| 744 | struct acpi_gpe_event_info *gpe_event_info = NULL; | 745 | struct acpi_gpe_event_info *gpe_event_info = NULL; |
| 745 | struct acpi_gpe_event_info *this_event; | 746 | struct acpi_gpe_event_info *this_event; |
| 746 | struct acpi_gpe_register_info *this_register; | 747 | struct acpi_gpe_register_info *this_register; |
| 747 | acpi_native_uint i; | 748 | u32 i; |
| 748 | acpi_native_uint j; | 749 | u32 j; |
| 749 | acpi_status status; | 750 | acpi_status status; |
| 750 | 751 | ||
| 751 | ACPI_FUNCTION_TRACE(ev_create_gpe_info_blocks); | 752 | ACPI_FUNCTION_TRACE(ev_create_gpe_info_blocks); |
| @@ -983,8 +984,8 @@ acpi_ev_initialize_gpe_block(struct acpi_namespace_node *gpe_device, | |||
| 983 | struct acpi_gpe_walk_info gpe_info; | 984 | struct acpi_gpe_walk_info gpe_info; |
| 984 | u32 wake_gpe_count; | 985 | u32 wake_gpe_count; |
| 985 | u32 gpe_enabled_count; | 986 | u32 gpe_enabled_count; |
| 986 | acpi_native_uint i; | 987 | u32 i; |
| 987 | acpi_native_uint j; | 988 | u32 j; |
| 988 | 989 | ||
| 989 | ACPI_FUNCTION_TRACE(ev_initialize_gpe_block); | 990 | ACPI_FUNCTION_TRACE(ev_initialize_gpe_block); |
| 990 | 991 | ||
| @@ -1033,7 +1034,8 @@ acpi_ev_initialize_gpe_block(struct acpi_namespace_node *gpe_device, | |||
| 1033 | 1034 | ||
| 1034 | gpe_event_info = | 1035 | gpe_event_info = |
| 1035 | &gpe_block-> | 1036 | &gpe_block-> |
| 1036 | event_info[(i * ACPI_GPE_REGISTER_WIDTH) + j]; | 1037 | event_info[((acpi_size) i * |
| 1038 | ACPI_GPE_REGISTER_WIDTH) + j]; | ||
| 1037 | 1039 | ||
| 1038 | if (((gpe_event_info->flags & ACPI_GPE_DISPATCH_MASK) == | 1040 | if (((gpe_event_info->flags & ACPI_GPE_DISPATCH_MASK) == |
| 1039 | ACPI_GPE_DISPATCH_METHOD) | 1041 | ACPI_GPE_DISPATCH_METHOD) |
diff --git a/drivers/acpi/events/evmisc.c b/drivers/acpi/events/evmisc.c index 2113e58e2221..1d5670be729a 100644 --- a/drivers/acpi/events/evmisc.c +++ b/drivers/acpi/events/evmisc.c | |||
| @@ -575,7 +575,7 @@ acpi_status acpi_ev_release_global_lock(void) | |||
| 575 | 575 | ||
| 576 | void acpi_ev_terminate(void) | 576 | void acpi_ev_terminate(void) |
| 577 | { | 577 | { |
| 578 | acpi_native_uint i; | 578 | u32 i; |
| 579 | acpi_status status; | 579 | acpi_status status; |
| 580 | 580 | ||
| 581 | ACPI_FUNCTION_TRACE(ev_terminate); | 581 | ACPI_FUNCTION_TRACE(ev_terminate); |
| @@ -589,7 +589,7 @@ void acpi_ev_terminate(void) | |||
| 589 | /* Disable all fixed events */ | 589 | /* Disable all fixed events */ |
| 590 | 590 | ||
| 591 | for (i = 0; i < ACPI_NUM_FIXED_EVENTS; i++) { | 591 | for (i = 0; i < ACPI_NUM_FIXED_EVENTS; i++) { |
| 592 | status = acpi_disable_event((u32) i, 0); | 592 | status = acpi_disable_event(i, 0); |
| 593 | if (ACPI_FAILURE(status)) { | 593 | if (ACPI_FAILURE(status)) { |
| 594 | ACPI_ERROR((AE_INFO, | 594 | ACPI_ERROR((AE_INFO, |
| 595 | "Could not disable fixed event %d", | 595 | "Could not disable fixed event %d", |
diff --git a/drivers/acpi/events/evregion.c b/drivers/acpi/events/evregion.c index 5ab4c01417df..236fbd1ca438 100644 --- a/drivers/acpi/events/evregion.c +++ b/drivers/acpi/events/evregion.c | |||
| @@ -81,7 +81,7 @@ acpi_ev_install_handler(acpi_handle obj_handle, | |||
| 81 | acpi_status acpi_ev_install_region_handlers(void) | 81 | acpi_status acpi_ev_install_region_handlers(void) |
| 82 | { | 82 | { |
| 83 | acpi_status status; | 83 | acpi_status status; |
| 84 | acpi_native_uint i; | 84 | u32 i; |
| 85 | 85 | ||
| 86 | ACPI_FUNCTION_TRACE(ev_install_region_handlers); | 86 | ACPI_FUNCTION_TRACE(ev_install_region_handlers); |
| 87 | 87 | ||
| @@ -151,7 +151,7 @@ acpi_status acpi_ev_install_region_handlers(void) | |||
| 151 | acpi_status acpi_ev_initialize_op_regions(void) | 151 | acpi_status acpi_ev_initialize_op_regions(void) |
| 152 | { | 152 | { |
| 153 | acpi_status status; | 153 | acpi_status status; |
| 154 | acpi_native_uint i; | 154 | u32 i; |
| 155 | 155 | ||
| 156 | ACPI_FUNCTION_TRACE(ev_initialize_op_regions); | 156 | ACPI_FUNCTION_TRACE(ev_initialize_op_regions); |
| 157 | 157 | ||
diff --git a/drivers/acpi/events/evrgnini.c b/drivers/acpi/events/evrgnini.c index 2e3d2c5e4f4d..6b94b38df07d 100644 --- a/drivers/acpi/events/evrgnini.c +++ b/drivers/acpi/events/evrgnini.c | |||
| @@ -380,7 +380,7 @@ static u8 acpi_ev_is_pci_root_bridge(struct acpi_namespace_node *node) | |||
| 380 | acpi_status status; | 380 | acpi_status status; |
| 381 | struct acpica_device_id hid; | 381 | struct acpica_device_id hid; |
| 382 | struct acpi_compatible_id_list *cid; | 382 | struct acpi_compatible_id_list *cid; |
| 383 | acpi_native_uint i; | 383 | u32 i; |
| 384 | 384 | ||
| 385 | /* | 385 | /* |
| 386 | * Get the _HID and check for a PCI Root Bridge | 386 | * Get the _HID and check for a PCI Root Bridge |
diff --git a/drivers/acpi/executer/exconfig.c b/drivers/acpi/executer/exconfig.c index 39d742190584..2a32c843cb4a 100644 --- a/drivers/acpi/executer/exconfig.c +++ b/drivers/acpi/executer/exconfig.c | |||
| @@ -53,7 +53,7 @@ ACPI_MODULE_NAME("exconfig") | |||
| 53 | 53 | ||
| 54 | /* Local prototypes */ | 54 | /* Local prototypes */ |
| 55 | static acpi_status | 55 | static acpi_status |
| 56 | acpi_ex_add_table(acpi_native_uint table_index, | 56 | acpi_ex_add_table(u32 table_index, |
| 57 | struct acpi_namespace_node *parent_node, | 57 | struct acpi_namespace_node *parent_node, |
| 58 | union acpi_operand_object **ddb_handle); | 58 | union acpi_operand_object **ddb_handle); |
| 59 | 59 | ||
| @@ -73,7 +73,7 @@ acpi_ex_add_table(acpi_native_uint table_index, | |||
| 73 | ******************************************************************************/ | 73 | ******************************************************************************/ |
| 74 | 74 | ||
| 75 | static acpi_status | 75 | static acpi_status |
| 76 | acpi_ex_add_table(acpi_native_uint table_index, | 76 | acpi_ex_add_table(u32 table_index, |
| 77 | struct acpi_namespace_node *parent_node, | 77 | struct acpi_namespace_node *parent_node, |
| 78 | union acpi_operand_object **ddb_handle) | 78 | union acpi_operand_object **ddb_handle) |
| 79 | { | 79 | { |
| @@ -96,7 +96,8 @@ acpi_ex_add_table(acpi_native_uint table_index, | |||
| 96 | 96 | ||
| 97 | /* Install the new table into the local data structures */ | 97 | /* Install the new table into the local data structures */ |
| 98 | 98 | ||
| 99 | obj_desc->reference.object = ACPI_CAST_PTR(void, table_index); | 99 | obj_desc->reference.object = ACPI_CAST_PTR(void, |
| 100 | (unsigned long)table_index); | ||
| 100 | 101 | ||
| 101 | /* Add the table to the namespace */ | 102 | /* Add the table to the namespace */ |
| 102 | 103 | ||
| @@ -128,12 +129,12 @@ acpi_ex_load_table_op(struct acpi_walk_state *walk_state, | |||
| 128 | { | 129 | { |
| 129 | acpi_status status; | 130 | acpi_status status; |
| 130 | union acpi_operand_object **operand = &walk_state->operands[0]; | 131 | union acpi_operand_object **operand = &walk_state->operands[0]; |
| 131 | acpi_native_uint table_index; | ||
| 132 | struct acpi_namespace_node *parent_node; | 132 | struct acpi_namespace_node *parent_node; |
| 133 | struct acpi_namespace_node *start_node; | 133 | struct acpi_namespace_node *start_node; |
| 134 | struct acpi_namespace_node *parameter_node = NULL; | 134 | struct acpi_namespace_node *parameter_node = NULL; |
| 135 | union acpi_operand_object *ddb_handle; | 135 | union acpi_operand_object *ddb_handle; |
| 136 | struct acpi_table_header *table; | 136 | struct acpi_table_header *table; |
| 137 | u32 table_index; | ||
| 137 | 138 | ||
| 138 | ACPI_FUNCTION_TRACE(ex_load_table_op); | 139 | ACPI_FUNCTION_TRACE(ex_load_table_op); |
| 139 | 140 | ||
| @@ -280,7 +281,7 @@ acpi_ex_load_op(union acpi_operand_object *obj_desc, | |||
| 280 | { | 281 | { |
| 281 | union acpi_operand_object *ddb_handle; | 282 | union acpi_operand_object *ddb_handle; |
| 282 | struct acpi_table_desc table_desc; | 283 | struct acpi_table_desc table_desc; |
| 283 | acpi_native_uint table_index; | 284 | u32 table_index; |
| 284 | acpi_status status; | 285 | acpi_status status; |
| 285 | u32 length; | 286 | u32 length; |
| 286 | 287 | ||
| @@ -437,7 +438,7 @@ acpi_status acpi_ex_unload_table(union acpi_operand_object *ddb_handle) | |||
| 437 | { | 438 | { |
| 438 | acpi_status status = AE_OK; | 439 | acpi_status status = AE_OK; |
| 439 | union acpi_operand_object *table_desc = ddb_handle; | 440 | union acpi_operand_object *table_desc = ddb_handle; |
| 440 | acpi_native_uint table_index; | 441 | u32 table_index; |
| 441 | struct acpi_table_header *table; | 442 | struct acpi_table_header *table; |
| 442 | 443 | ||
| 443 | ACPI_FUNCTION_TRACE(ex_unload_table); | 444 | ACPI_FUNCTION_TRACE(ex_unload_table); |
| @@ -454,9 +455,9 @@ acpi_status acpi_ex_unload_table(union acpi_operand_object *ddb_handle) | |||
| 454 | return_ACPI_STATUS(AE_BAD_PARAMETER); | 455 | return_ACPI_STATUS(AE_BAD_PARAMETER); |
| 455 | } | 456 | } |
| 456 | 457 | ||
| 457 | /* Get the table index from the ddb_handle */ | 458 | /* Get the table index from the ddb_handle (acpi_size for 64-bit case) */ |
| 458 | 459 | ||
| 459 | table_index = (acpi_native_uint) table_desc->reference.object; | 460 | table_index = (u32) (acpi_size) table_desc->reference.object; |
| 460 | 461 | ||
| 461 | /* Invoke table handler if present */ | 462 | /* Invoke table handler if present */ |
| 462 | 463 | ||
diff --git a/drivers/acpi/executer/exconvrt.c b/drivers/acpi/executer/exconvrt.c index fd954b4ed83d..261d97516d9b 100644 --- a/drivers/acpi/executer/exconvrt.c +++ b/drivers/acpi/executer/exconvrt.c | |||
| @@ -288,11 +288,11 @@ acpi_ex_convert_to_ascii(acpi_integer integer, | |||
| 288 | u16 base, u8 * string, u8 data_width) | 288 | u16 base, u8 * string, u8 data_width) |
| 289 | { | 289 | { |
| 290 | acpi_integer digit; | 290 | acpi_integer digit; |
| 291 | acpi_native_uint i; | 291 | u32 i; |
| 292 | acpi_native_uint j; | 292 | u32 j; |
| 293 | acpi_native_uint k = 0; | 293 | u32 k = 0; |
| 294 | acpi_native_uint hex_length; | 294 | u32 hex_length; |
| 295 | acpi_native_uint decimal_length; | 295 | u32 decimal_length; |
| 296 | u32 remainder; | 296 | u32 remainder; |
| 297 | u8 supress_zeros; | 297 | u8 supress_zeros; |
| 298 | 298 | ||
| @@ -348,7 +348,7 @@ acpi_ex_convert_to_ascii(acpi_integer integer, | |||
| 348 | 348 | ||
| 349 | /* hex_length: 2 ascii hex chars per data byte */ | 349 | /* hex_length: 2 ascii hex chars per data byte */ |
| 350 | 350 | ||
| 351 | hex_length = (acpi_native_uint) ACPI_MUL_2(data_width); | 351 | hex_length = ACPI_MUL_2(data_width); |
| 352 | for (i = 0, j = (hex_length - 1); i < hex_length; i++, j--) { | 352 | for (i = 0, j = (hex_length - 1); i < hex_length; i++, j--) { |
| 353 | 353 | ||
| 354 | /* Get one hex digit, most significant digits first */ | 354 | /* Get one hex digit, most significant digits first */ |
diff --git a/drivers/acpi/executer/exdump.c b/drivers/acpi/executer/exdump.c index 74f1b22601b3..976016fda66a 100644 --- a/drivers/acpi/executer/exdump.c +++ b/drivers/acpi/executer/exdump.c | |||
| @@ -775,7 +775,7 @@ acpi_ex_dump_operands(union acpi_operand_object **operands, | |||
| 775 | u32 num_levels, | 775 | u32 num_levels, |
| 776 | char *note, char *module_name, u32 line_number) | 776 | char *note, char *module_name, u32 line_number) |
| 777 | { | 777 | { |
| 778 | acpi_native_uint i; | 778 | u32 i; |
| 779 | 779 | ||
| 780 | ACPI_FUNCTION_NAME(ex_dump_operands); | 780 | ACPI_FUNCTION_NAME(ex_dump_operands); |
| 781 | 781 | ||
diff --git a/drivers/acpi/executer/exfldio.c b/drivers/acpi/executer/exfldio.c index e336b5dc7a50..9ff9d1f4615d 100644 --- a/drivers/acpi/executer/exfldio.c +++ b/drivers/acpi/executer/exfldio.c | |||
| @@ -153,14 +153,15 @@ acpi_ex_setup_region(union acpi_operand_object *obj_desc, | |||
| 153 | /* | 153 | /* |
| 154 | * Slack mode only: We will go ahead and allow access to this | 154 | * Slack mode only: We will go ahead and allow access to this |
| 155 | * field if it is within the region length rounded up to the next | 155 | * field if it is within the region length rounded up to the next |
| 156 | * access width boundary. | 156 | * access width boundary. acpi_size cast for 64-bit compile. |
| 157 | */ | 157 | */ |
| 158 | if (ACPI_ROUND_UP(rgn_desc->region.length, | 158 | if (ACPI_ROUND_UP(rgn_desc->region.length, |
| 159 | obj_desc->common_field. | 159 | obj_desc->common_field. |
| 160 | access_byte_width) >= | 160 | access_byte_width) >= |
| 161 | (obj_desc->common_field.base_byte_offset + | 161 | ((acpi_size) obj_desc->common_field. |
| 162 | (acpi_native_uint) obj_desc->common_field. | 162 | base_byte_offset + |
| 163 | access_byte_width + field_datum_byte_offset)) { | 163 | obj_desc->common_field.access_byte_width + |
| 164 | field_datum_byte_offset)) { | ||
| 164 | return_ACPI_STATUS(AE_OK); | 165 | return_ACPI_STATUS(AE_OK); |
| 165 | } | 166 | } |
| 166 | } | 167 | } |
diff --git a/drivers/acpi/executer/exmisc.c b/drivers/acpi/executer/exmisc.c index cc956a5b5267..731414a581a6 100644 --- a/drivers/acpi/executer/exmisc.c +++ b/drivers/acpi/executer/exmisc.c | |||
| @@ -329,8 +329,8 @@ acpi_ex_do_concatenate(union acpi_operand_object *operand0, | |||
| 329 | 329 | ||
| 330 | /* Result of two Strings is a String */ | 330 | /* Result of two Strings is a String */ |
| 331 | 331 | ||
| 332 | return_desc = acpi_ut_create_string_object((acpi_size) | 332 | return_desc = acpi_ut_create_string_object(((acpi_size) |
| 333 | (operand0->string. | 333 | operand0->string. |
| 334 | length + | 334 | length + |
| 335 | local_operand1-> | 335 | local_operand1-> |
| 336 | string.length)); | 336 | string.length)); |
| @@ -352,8 +352,8 @@ acpi_ex_do_concatenate(union acpi_operand_object *operand0, | |||
| 352 | 352 | ||
| 353 | /* Result of two Buffers is a Buffer */ | 353 | /* Result of two Buffers is a Buffer */ |
| 354 | 354 | ||
| 355 | return_desc = acpi_ut_create_buffer_object((acpi_size) | 355 | return_desc = acpi_ut_create_buffer_object(((acpi_size) |
| 356 | (operand0->buffer. | 356 | operand0->buffer. |
| 357 | length + | 357 | length + |
| 358 | local_operand1-> | 358 | local_operand1-> |
| 359 | buffer.length)); | 359 | buffer.length)); |
diff --git a/drivers/acpi/executer/exregion.c b/drivers/acpi/executer/exregion.c index 7cd8bb54fa01..7a41c409ae4d 100644 --- a/drivers/acpi/executer/exregion.c +++ b/drivers/acpi/executer/exregion.c | |||
| @@ -156,7 +156,7 @@ acpi_ex_system_memory_space_handler(u32 function, | |||
| 156 | /* Create a new mapping starting at the address given */ | 156 | /* Create a new mapping starting at the address given */ |
| 157 | 157 | ||
| 158 | mem_info->mapped_logical_address = | 158 | mem_info->mapped_logical_address = |
| 159 | acpi_os_map_memory((acpi_native_uint) address, window_size); | 159 | acpi_os_map_memory((acpi_physical_address) address, window_size); |
| 160 | if (!mem_info->mapped_logical_address) { | 160 | if (!mem_info->mapped_logical_address) { |
| 161 | ACPI_ERROR((AE_INFO, | 161 | ACPI_ERROR((AE_INFO, |
| 162 | "Could not map memory at %8.8X%8.8X, size %X", | 162 | "Could not map memory at %8.8X%8.8X, size %X", |
diff --git a/drivers/acpi/namespace/nsdump.c b/drivers/acpi/namespace/nsdump.c index 5445751b8a3e..904f9510c0e2 100644 --- a/drivers/acpi/namespace/nsdump.c +++ b/drivers/acpi/namespace/nsdump.c | |||
| @@ -73,7 +73,7 @@ acpi_ns_dump_one_device(acpi_handle obj_handle, | |||
| 73 | 73 | ||
| 74 | void acpi_ns_print_pathname(u32 num_segments, char *pathname) | 74 | void acpi_ns_print_pathname(u32 num_segments, char *pathname) |
| 75 | { | 75 | { |
| 76 | acpi_native_uint i; | 76 | u32 i; |
| 77 | 77 | ||
| 78 | ACPI_FUNCTION_NAME(ns_print_pathname); | 78 | ACPI_FUNCTION_NAME(ns_print_pathname); |
| 79 | 79 | ||
diff --git a/drivers/acpi/namespace/nsload.c b/drivers/acpi/namespace/nsload.c index 2c92f6cf5ce1..a4a412b7c029 100644 --- a/drivers/acpi/namespace/nsload.c +++ b/drivers/acpi/namespace/nsload.c | |||
| @@ -71,8 +71,7 @@ static acpi_status acpi_ns_delete_subtree(acpi_handle start_handle); | |||
| 71 | ******************************************************************************/ | 71 | ******************************************************************************/ |
| 72 | 72 | ||
| 73 | acpi_status | 73 | acpi_status |
| 74 | acpi_ns_load_table(acpi_native_uint table_index, | 74 | acpi_ns_load_table(u32 table_index, struct acpi_namespace_node *node) |
| 75 | struct acpi_namespace_node *node) | ||
| 76 | { | 75 | { |
| 77 | acpi_status status; | 76 | acpi_status status; |
| 78 | 77 | ||
diff --git a/drivers/acpi/namespace/nsparse.c b/drivers/acpi/namespace/nsparse.c index 46a79b0103b6..a82271a9dbb3 100644 --- a/drivers/acpi/namespace/nsparse.c +++ b/drivers/acpi/namespace/nsparse.c | |||
| @@ -63,13 +63,13 @@ ACPI_MODULE_NAME("nsparse") | |||
| 63 | * | 63 | * |
| 64 | ******************************************************************************/ | 64 | ******************************************************************************/ |
| 65 | acpi_status | 65 | acpi_status |
| 66 | acpi_ns_one_complete_parse(acpi_native_uint pass_number, | 66 | acpi_ns_one_complete_parse(u32 pass_number, |
| 67 | acpi_native_uint table_index, | 67 | u32 table_index, |
| 68 | struct acpi_namespace_node * start_node) | 68 | struct acpi_namespace_node *start_node) |
| 69 | { | 69 | { |
| 70 | union acpi_parse_object *parse_root; | 70 | union acpi_parse_object *parse_root; |
| 71 | acpi_status status; | 71 | acpi_status status; |
| 72 | acpi_native_uint aml_length; | 72 | u32 aml_length; |
| 73 | u8 *aml_start; | 73 | u8 *aml_start; |
| 74 | struct acpi_walk_state *walk_state; | 74 | struct acpi_walk_state *walk_state; |
| 75 | struct acpi_table_header *table; | 75 | struct acpi_table_header *table; |
| @@ -112,8 +112,8 @@ acpi_ns_one_complete_parse(acpi_native_uint pass_number, | |||
| 112 | aml_start = (u8 *) table + sizeof(struct acpi_table_header); | 112 | aml_start = (u8 *) table + sizeof(struct acpi_table_header); |
| 113 | aml_length = table->length - sizeof(struct acpi_table_header); | 113 | aml_length = table->length - sizeof(struct acpi_table_header); |
| 114 | status = acpi_ds_init_aml_walk(walk_state, parse_root, NULL, | 114 | status = acpi_ds_init_aml_walk(walk_state, parse_root, NULL, |
| 115 | aml_start, (u32) aml_length, | 115 | aml_start, aml_length, NULL, |
| 116 | NULL, (u8) pass_number); | 116 | (u8) pass_number); |
| 117 | } | 117 | } |
| 118 | 118 | ||
| 119 | if (ACPI_FAILURE(status)) { | 119 | if (ACPI_FAILURE(status)) { |
| @@ -158,8 +158,7 @@ acpi_ns_one_complete_parse(acpi_native_uint pass_number, | |||
| 158 | ******************************************************************************/ | 158 | ******************************************************************************/ |
| 159 | 159 | ||
| 160 | acpi_status | 160 | acpi_status |
| 161 | acpi_ns_parse_table(acpi_native_uint table_index, | 161 | acpi_ns_parse_table(u32 table_index, struct acpi_namespace_node *start_node) |
| 162 | struct acpi_namespace_node *start_node) | ||
| 163 | { | 162 | { |
| 164 | acpi_status status; | 163 | acpi_status status; |
| 165 | 164 | ||
diff --git a/drivers/acpi/namespace/nsutils.c b/drivers/acpi/namespace/nsutils.c index 64c039843ed2..5b5619c54594 100644 --- a/drivers/acpi/namespace/nsutils.c +++ b/drivers/acpi/namespace/nsutils.c | |||
| @@ -365,7 +365,7 @@ acpi_status acpi_ns_build_internal_name(struct acpi_namestring_info *info) | |||
| 365 | char *internal_name = info->internal_name; | 365 | char *internal_name = info->internal_name; |
| 366 | char *external_name = info->next_external_char; | 366 | char *external_name = info->next_external_char; |
| 367 | char *result = NULL; | 367 | char *result = NULL; |
| 368 | acpi_native_uint i; | 368 | u32 i; |
| 369 | 369 | ||
| 370 | ACPI_FUNCTION_TRACE(ns_build_internal_name); | 370 | ACPI_FUNCTION_TRACE(ns_build_internal_name); |
| 371 | 371 | ||
| @@ -400,12 +400,11 @@ acpi_status acpi_ns_build_internal_name(struct acpi_namestring_info *info) | |||
| 400 | result = &internal_name[i]; | 400 | result = &internal_name[i]; |
| 401 | } else if (num_segments == 2) { | 401 | } else if (num_segments == 2) { |
| 402 | internal_name[i] = AML_DUAL_NAME_PREFIX; | 402 | internal_name[i] = AML_DUAL_NAME_PREFIX; |
| 403 | result = &internal_name[(acpi_native_uint) (i + 1)]; | 403 | result = &internal_name[(acpi_size) i + 1]; |
| 404 | } else { | 404 | } else { |
| 405 | internal_name[i] = AML_MULTI_NAME_PREFIX_OP; | 405 | internal_name[i] = AML_MULTI_NAME_PREFIX_OP; |
| 406 | internal_name[(acpi_native_uint) (i + 1)] = | 406 | internal_name[(acpi_size) i + 1] = (char)num_segments; |
| 407 | (char)num_segments; | 407 | result = &internal_name[(acpi_size) i + 2]; |
| 408 | result = &internal_name[(acpi_native_uint) (i + 2)]; | ||
| 409 | } | 408 | } |
| 410 | } | 409 | } |
| 411 | 410 | ||
| @@ -531,12 +530,12 @@ acpi_ns_externalize_name(u32 internal_name_length, | |||
| 531 | char *internal_name, | 530 | char *internal_name, |
| 532 | u32 * converted_name_length, char **converted_name) | 531 | u32 * converted_name_length, char **converted_name) |
| 533 | { | 532 | { |
| 534 | acpi_native_uint names_index = 0; | 533 | u32 names_index = 0; |
| 535 | acpi_native_uint num_segments = 0; | 534 | u32 num_segments = 0; |
| 536 | acpi_native_uint required_length; | 535 | u32 required_length; |
| 537 | acpi_native_uint prefix_length = 0; | 536 | u32 prefix_length = 0; |
| 538 | acpi_native_uint i = 0; | 537 | u32 i = 0; |
| 539 | acpi_native_uint j = 0; | 538 | u32 j = 0; |
| 540 | 539 | ||
| 541 | ACPI_FUNCTION_TRACE(ns_externalize_name); | 540 | ACPI_FUNCTION_TRACE(ns_externalize_name); |
| 542 | 541 | ||
| @@ -582,9 +581,8 @@ acpi_ns_externalize_name(u32 internal_name_length, | |||
| 582 | /* <count> 4-byte names */ | 581 | /* <count> 4-byte names */ |
| 583 | 582 | ||
| 584 | names_index = prefix_length + 2; | 583 | names_index = prefix_length + 2; |
| 585 | num_segments = (acpi_native_uint) (u8) | 584 | num_segments = (u8) |
| 586 | internal_name[(acpi_native_uint) | 585 | internal_name[(acpi_size) prefix_length + 1]; |
| 587 | (prefix_length + 1)]; | ||
| 588 | break; | 586 | break; |
| 589 | 587 | ||
| 590 | case AML_DUAL_NAME_PREFIX: | 588 | case AML_DUAL_NAME_PREFIX: |
diff --git a/drivers/acpi/namespace/nsxfeval.c b/drivers/acpi/namespace/nsxfeval.c index b4e135eab7c7..38be5865d95d 100644 --- a/drivers/acpi/namespace/nsxfeval.c +++ b/drivers/acpi/namespace/nsxfeval.c | |||
| @@ -441,7 +441,7 @@ acpi_ns_get_device_callback(acpi_handle obj_handle, | |||
| 441 | u32 flags; | 441 | u32 flags; |
| 442 | struct acpica_device_id hid; | 442 | struct acpica_device_id hid; |
| 443 | struct acpi_compatible_id_list *cid; | 443 | struct acpi_compatible_id_list *cid; |
| 444 | acpi_native_uint i; | 444 | u32 i; |
| 445 | int found; | 445 | int found; |
| 446 | 446 | ||
| 447 | status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); | 447 | status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); |
diff --git a/drivers/acpi/parser/psargs.c b/drivers/acpi/parser/psargs.c index e94463778845..d830b29b85b1 100644 --- a/drivers/acpi/parser/psargs.c +++ b/drivers/acpi/parser/psargs.c | |||
| @@ -76,7 +76,7 @@ acpi_ps_get_next_package_length(struct acpi_parse_state *parser_state) | |||
| 76 | { | 76 | { |
| 77 | u8 *aml = parser_state->aml; | 77 | u8 *aml = parser_state->aml; |
| 78 | u32 package_length = 0; | 78 | u32 package_length = 0; |
| 79 | acpi_native_uint byte_count; | 79 | u32 byte_count; |
| 80 | u8 byte_zero_mask = 0x3F; /* Default [0:5] */ | 80 | u8 byte_zero_mask = 0x3F; /* Default [0:5] */ |
| 81 | 81 | ||
| 82 | ACPI_FUNCTION_TRACE(ps_get_next_package_length); | 82 | ACPI_FUNCTION_TRACE(ps_get_next_package_length); |
| @@ -86,7 +86,7 @@ acpi_ps_get_next_package_length(struct acpi_parse_state *parser_state) | |||
| 86 | * used to encode the package length, either 0,1,2, or 3 | 86 | * used to encode the package length, either 0,1,2, or 3 |
| 87 | */ | 87 | */ |
| 88 | byte_count = (aml[0] >> 6); | 88 | byte_count = (aml[0] >> 6); |
| 89 | parser_state->aml += (byte_count + 1); | 89 | parser_state->aml += ((acpi_size) byte_count + 1); |
| 90 | 90 | ||
| 91 | /* Get bytes 3, 2, 1 as needed */ | 91 | /* Get bytes 3, 2, 1 as needed */ |
| 92 | 92 | ||
diff --git a/drivers/acpi/parser/psxface.c b/drivers/acpi/parser/psxface.c index 5ee09e1245e3..270469aae842 100644 --- a/drivers/acpi/parser/psxface.c +++ b/drivers/acpi/parser/psxface.c | |||
| @@ -333,7 +333,7 @@ acpi_status acpi_ps_execute_method(struct acpi_evaluate_info *info) | |||
| 333 | static void | 333 | static void |
| 334 | acpi_ps_update_parameter_list(struct acpi_evaluate_info *info, u16 action) | 334 | acpi_ps_update_parameter_list(struct acpi_evaluate_info *info, u16 action) |
| 335 | { | 335 | { |
| 336 | acpi_native_uint i; | 336 | u32 i; |
| 337 | 337 | ||
| 338 | if (info->parameters) { | 338 | if (info->parameters) { |
| 339 | 339 | ||
diff --git a/drivers/acpi/resources/rscalc.c b/drivers/acpi/resources/rscalc.c index 8a112d11d491..f61ebc679e66 100644 --- a/drivers/acpi/resources/rscalc.c +++ b/drivers/acpi/resources/rscalc.c | |||
| @@ -73,7 +73,7 @@ acpi_rs_stream_option_length(u32 resource_length, u32 minimum_total_length); | |||
| 73 | 73 | ||
| 74 | static u8 acpi_rs_count_set_bits(u16 bit_field) | 74 | static u8 acpi_rs_count_set_bits(u16 bit_field) |
| 75 | { | 75 | { |
| 76 | acpi_native_uint bits_set; | 76 | u8 bits_set; |
| 77 | 77 | ||
| 78 | ACPI_FUNCTION_ENTRY(); | 78 | ACPI_FUNCTION_ENTRY(); |
| 79 | 79 | ||
| @@ -84,7 +84,7 @@ static u8 acpi_rs_count_set_bits(u16 bit_field) | |||
| 84 | bit_field &= (u16) (bit_field - 1); | 84 | bit_field &= (u16) (bit_field - 1); |
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | return ((u8) bits_set); | 87 | return bits_set; |
| 88 | } | 88 | } |
| 89 | 89 | ||
| 90 | /******************************************************************************* | 90 | /******************************************************************************* |
diff --git a/drivers/acpi/resources/rsmisc.c b/drivers/acpi/resources/rsmisc.c index de1ac3881b22..96a6c0353255 100644 --- a/drivers/acpi/resources/rsmisc.c +++ b/drivers/acpi/resources/rsmisc.c | |||
| @@ -82,7 +82,7 @@ acpi_rs_convert_aml_to_resource(struct acpi_resource *resource, | |||
| 82 | 82 | ||
| 83 | ACPI_FUNCTION_TRACE(rs_convert_aml_to_resource); | 83 | ACPI_FUNCTION_TRACE(rs_convert_aml_to_resource); |
| 84 | 84 | ||
| 85 | if (((acpi_native_uint) resource) & 0x3) { | 85 | if (((acpi_size) resource) & 0x3) { |
| 86 | 86 | ||
| 87 | /* Each internal resource struct is expected to be 32-bit aligned */ | 87 | /* Each internal resource struct is expected to be 32-bit aligned */ |
| 88 | 88 | ||
diff --git a/drivers/acpi/resources/rsutils.c b/drivers/acpi/resources/rsutils.c index 90ed83d05375..f7b3bcd59ba7 100644 --- a/drivers/acpi/resources/rsutils.c +++ b/drivers/acpi/resources/rsutils.c | |||
| @@ -62,7 +62,7 @@ ACPI_MODULE_NAME("rsutils") | |||
| 62 | ******************************************************************************/ | 62 | ******************************************************************************/ |
| 63 | u8 acpi_rs_decode_bitmask(u16 mask, u8 * list) | 63 | u8 acpi_rs_decode_bitmask(u16 mask, u8 * list) |
| 64 | { | 64 | { |
| 65 | acpi_native_uint i; | 65 | u8 i; |
| 66 | u8 bit_count; | 66 | u8 bit_count; |
| 67 | 67 | ||
| 68 | ACPI_FUNCTION_ENTRY(); | 68 | ACPI_FUNCTION_ENTRY(); |
| @@ -71,7 +71,7 @@ u8 acpi_rs_decode_bitmask(u16 mask, u8 * list) | |||
| 71 | 71 | ||
| 72 | for (i = 0, bit_count = 0; mask; i++) { | 72 | for (i = 0, bit_count = 0; mask; i++) { |
| 73 | if (mask & 0x0001) { | 73 | if (mask & 0x0001) { |
| 74 | list[bit_count] = (u8) i; | 74 | list[bit_count] = i; |
| 75 | bit_count++; | 75 | bit_count++; |
| 76 | } | 76 | } |
| 77 | 77 | ||
| @@ -96,8 +96,8 @@ u8 acpi_rs_decode_bitmask(u16 mask, u8 * list) | |||
| 96 | 96 | ||
| 97 | u16 acpi_rs_encode_bitmask(u8 * list, u8 count) | 97 | u16 acpi_rs_encode_bitmask(u8 * list, u8 count) |
| 98 | { | 98 | { |
| 99 | acpi_native_uint i; | 99 | u32 i; |
| 100 | acpi_native_uint mask; | 100 | u16 mask; |
| 101 | 101 | ||
| 102 | ACPI_FUNCTION_ENTRY(); | 102 | ACPI_FUNCTION_ENTRY(); |
| 103 | 103 | ||
| @@ -107,7 +107,7 @@ u16 acpi_rs_encode_bitmask(u8 * list, u8 count) | |||
| 107 | mask |= (0x1 << list[i]); | 107 | mask |= (0x1 << list[i]); |
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | return ((u16) mask); | 110 | return mask; |
| 111 | } | 111 | } |
| 112 | 112 | ||
| 113 | /******************************************************************************* | 113 | /******************************************************************************* |
| @@ -130,7 +130,7 @@ u16 acpi_rs_encode_bitmask(u8 * list, u8 count) | |||
| 130 | void | 130 | void |
| 131 | acpi_rs_move_data(void *destination, void *source, u16 item_count, u8 move_type) | 131 | acpi_rs_move_data(void *destination, void *source, u16 item_count, u8 move_type) |
| 132 | { | 132 | { |
| 133 | acpi_native_uint i; | 133 | u32 i; |
| 134 | 134 | ||
| 135 | ACPI_FUNCTION_ENTRY(); | 135 | ACPI_FUNCTION_ENTRY(); |
| 136 | 136 | ||
diff --git a/drivers/acpi/tables/tbfadt.c b/drivers/acpi/tables/tbfadt.c index 949d4114eb9f..a4a41ba2484b 100644 --- a/drivers/acpi/tables/tbfadt.c +++ b/drivers/acpi/tables/tbfadt.c | |||
| @@ -155,7 +155,7 @@ acpi_tb_init_generic_address(struct acpi_generic_address *generic_address, | |||
| 155 | * | 155 | * |
| 156 | ******************************************************************************/ | 156 | ******************************************************************************/ |
| 157 | 157 | ||
| 158 | void acpi_tb_parse_fadt(acpi_native_uint table_index, u8 flags) | 158 | void acpi_tb_parse_fadt(u32 table_index, u8 flags) |
| 159 | { | 159 | { |
| 160 | u32 length; | 160 | u32 length; |
| 161 | struct acpi_table_header *table; | 161 | struct acpi_table_header *table; |
| @@ -280,7 +280,7 @@ static void acpi_tb_convert_fadt(void) | |||
| 280 | { | 280 | { |
| 281 | u8 pm1_register_length; | 281 | u8 pm1_register_length; |
| 282 | struct acpi_generic_address *target; | 282 | struct acpi_generic_address *target; |
| 283 | acpi_native_uint i; | 283 | u32 i; |
| 284 | 284 | ||
| 285 | /* Update the local FADT table header length */ | 285 | /* Update the local FADT table header length */ |
| 286 | 286 | ||
| @@ -396,7 +396,7 @@ static void acpi_tb_validate_fadt(void) | |||
| 396 | u32 *address32; | 396 | u32 *address32; |
| 397 | struct acpi_generic_address *address64; | 397 | struct acpi_generic_address *address64; |
| 398 | u8 length; | 398 | u8 length; |
| 399 | acpi_native_uint i; | 399 | u32 i; |
| 400 | 400 | ||
| 401 | /* Examine all of the 64-bit extended address fields (X fields) */ | 401 | /* Examine all of the 64-bit extended address fields (X fields) */ |
| 402 | 402 | ||
diff --git a/drivers/acpi/tables/tbfind.c b/drivers/acpi/tables/tbfind.c index 9ca3afc98c80..531584defbb8 100644 --- a/drivers/acpi/tables/tbfind.c +++ b/drivers/acpi/tables/tbfind.c | |||
| @@ -65,10 +65,9 @@ ACPI_MODULE_NAME("tbfind") | |||
| 65 | ******************************************************************************/ | 65 | ******************************************************************************/ |
| 66 | acpi_status | 66 | acpi_status |
| 67 | acpi_tb_find_table(char *signature, | 67 | acpi_tb_find_table(char *signature, |
| 68 | char *oem_id, | 68 | char *oem_id, char *oem_table_id, u32 *table_index) |
| 69 | char *oem_table_id, acpi_native_uint * table_index) | ||
| 70 | { | 69 | { |
| 71 | acpi_native_uint i; | 70 | u32 i; |
| 72 | acpi_status status; | 71 | acpi_status status; |
| 73 | struct acpi_table_header header; | 72 | struct acpi_table_header header; |
| 74 | 73 | ||
diff --git a/drivers/acpi/tables/tbinstal.c b/drivers/acpi/tables/tbinstal.c index 5336ce88f89f..b22185f55a16 100644 --- a/drivers/acpi/tables/tbinstal.c +++ b/drivers/acpi/tables/tbinstal.c | |||
| @@ -107,11 +107,10 @@ acpi_status acpi_tb_verify_table(struct acpi_table_desc *table_desc) | |||
| 107 | ******************************************************************************/ | 107 | ******************************************************************************/ |
| 108 | 108 | ||
| 109 | acpi_status | 109 | acpi_status |
| 110 | acpi_tb_add_table(struct acpi_table_desc *table_desc, | 110 | acpi_tb_add_table(struct acpi_table_desc *table_desc, u32 *table_index) |
| 111 | acpi_native_uint * table_index) | ||
| 112 | { | 111 | { |
| 113 | acpi_native_uint i; | 112 | u32 i; |
| 114 | acpi_native_uint length; | 113 | u32 length; |
| 115 | acpi_status status = AE_OK; | 114 | acpi_status status = AE_OK; |
| 116 | 115 | ||
| 117 | ACPI_FUNCTION_TRACE(tb_add_table); | 116 | ACPI_FUNCTION_TRACE(tb_add_table); |
| @@ -207,8 +206,8 @@ acpi_status acpi_tb_resize_root_table_list(void) | |||
| 207 | 206 | ||
| 208 | /* Increase the Table Array size */ | 207 | /* Increase the Table Array size */ |
| 209 | 208 | ||
| 210 | tables = ACPI_ALLOCATE_ZEROED((acpi_gbl_root_table_list.size + | 209 | tables = ACPI_ALLOCATE_ZEROED(((acpi_size) acpi_gbl_root_table_list. |
| 211 | ACPI_ROOT_TABLE_SIZE_INCREMENT) | 210 | size + ACPI_ROOT_TABLE_SIZE_INCREMENT) |
| 212 | * sizeof(struct acpi_table_desc)); | 211 | * sizeof(struct acpi_table_desc)); |
| 213 | if (!tables) { | 212 | if (!tables) { |
| 214 | ACPI_ERROR((AE_INFO, | 213 | ACPI_ERROR((AE_INFO, |
| @@ -220,7 +219,7 @@ acpi_status acpi_tb_resize_root_table_list(void) | |||
| 220 | 219 | ||
| 221 | if (acpi_gbl_root_table_list.tables) { | 220 | if (acpi_gbl_root_table_list.tables) { |
| 222 | ACPI_MEMCPY(tables, acpi_gbl_root_table_list.tables, | 221 | ACPI_MEMCPY(tables, acpi_gbl_root_table_list.tables, |
| 223 | acpi_gbl_root_table_list.size * | 222 | (acpi_size) acpi_gbl_root_table_list.size * |
| 224 | sizeof(struct acpi_table_desc)); | 223 | sizeof(struct acpi_table_desc)); |
| 225 | 224 | ||
| 226 | if (acpi_gbl_root_table_list.flags & ACPI_ROOT_ORIGIN_ALLOCATED) { | 225 | if (acpi_gbl_root_table_list.flags & ACPI_ROOT_ORIGIN_ALLOCATED) { |
| @@ -253,7 +252,7 @@ acpi_status acpi_tb_resize_root_table_list(void) | |||
| 253 | acpi_status | 252 | acpi_status |
| 254 | acpi_tb_store_table(acpi_physical_address address, | 253 | acpi_tb_store_table(acpi_physical_address address, |
| 255 | struct acpi_table_header *table, | 254 | struct acpi_table_header *table, |
| 256 | u32 length, u8 flags, acpi_native_uint * table_index) | 255 | u32 length, u8 flags, u32 *table_index) |
| 257 | { | 256 | { |
| 258 | acpi_status status = AE_OK; | 257 | acpi_status status = AE_OK; |
| 259 | 258 | ||
| @@ -334,7 +333,7 @@ void acpi_tb_delete_table(struct acpi_table_desc *table_desc) | |||
| 334 | 333 | ||
| 335 | void acpi_tb_terminate(void) | 334 | void acpi_tb_terminate(void) |
| 336 | { | 335 | { |
| 337 | acpi_native_uint i; | 336 | u32 i; |
| 338 | 337 | ||
| 339 | ACPI_FUNCTION_TRACE(tb_terminate); | 338 | ACPI_FUNCTION_TRACE(tb_terminate); |
| 340 | 339 | ||
| @@ -374,7 +373,7 @@ void acpi_tb_terminate(void) | |||
| 374 | * | 373 | * |
| 375 | ******************************************************************************/ | 374 | ******************************************************************************/ |
| 376 | 375 | ||
| 377 | void acpi_tb_delete_namespace_by_owner(acpi_native_uint table_index) | 376 | void acpi_tb_delete_namespace_by_owner(u32 table_index) |
| 378 | { | 377 | { |
| 379 | acpi_owner_id owner_id; | 378 | acpi_owner_id owner_id; |
| 380 | 379 | ||
| @@ -403,7 +402,7 @@ void acpi_tb_delete_namespace_by_owner(acpi_native_uint table_index) | |||
| 403 | * | 402 | * |
| 404 | ******************************************************************************/ | 403 | ******************************************************************************/ |
| 405 | 404 | ||
| 406 | acpi_status acpi_tb_allocate_owner_id(acpi_native_uint table_index) | 405 | acpi_status acpi_tb_allocate_owner_id(u32 table_index) |
| 407 | { | 406 | { |
| 408 | acpi_status status = AE_BAD_PARAMETER; | 407 | acpi_status status = AE_BAD_PARAMETER; |
| 409 | 408 | ||
| @@ -431,7 +430,7 @@ acpi_status acpi_tb_allocate_owner_id(acpi_native_uint table_index) | |||
| 431 | * | 430 | * |
| 432 | ******************************************************************************/ | 431 | ******************************************************************************/ |
| 433 | 432 | ||
| 434 | acpi_status acpi_tb_release_owner_id(acpi_native_uint table_index) | 433 | acpi_status acpi_tb_release_owner_id(u32 table_index) |
| 435 | { | 434 | { |
| 436 | acpi_status status = AE_BAD_PARAMETER; | 435 | acpi_status status = AE_BAD_PARAMETER; |
| 437 | 436 | ||
| @@ -462,8 +461,7 @@ acpi_status acpi_tb_release_owner_id(acpi_native_uint table_index) | |||
| 462 | * | 461 | * |
| 463 | ******************************************************************************/ | 462 | ******************************************************************************/ |
| 464 | 463 | ||
| 465 | acpi_status | 464 | acpi_status acpi_tb_get_owner_id(u32 table_index, acpi_owner_id *owner_id) |
| 466 | acpi_tb_get_owner_id(acpi_native_uint table_index, acpi_owner_id * owner_id) | ||
| 467 | { | 465 | { |
| 468 | acpi_status status = AE_BAD_PARAMETER; | 466 | acpi_status status = AE_BAD_PARAMETER; |
| 469 | 467 | ||
| @@ -490,7 +488,7 @@ acpi_tb_get_owner_id(acpi_native_uint table_index, acpi_owner_id * owner_id) | |||
| 490 | * | 488 | * |
| 491 | ******************************************************************************/ | 489 | ******************************************************************************/ |
| 492 | 490 | ||
| 493 | u8 acpi_tb_is_table_loaded(acpi_native_uint table_index) | 491 | u8 acpi_tb_is_table_loaded(u32 table_index) |
| 494 | { | 492 | { |
| 495 | u8 is_loaded = FALSE; | 493 | u8 is_loaded = FALSE; |
| 496 | 494 | ||
| @@ -518,7 +516,7 @@ u8 acpi_tb_is_table_loaded(acpi_native_uint table_index) | |||
| 518 | * | 516 | * |
| 519 | ******************************************************************************/ | 517 | ******************************************************************************/ |
| 520 | 518 | ||
| 521 | void acpi_tb_set_table_loaded_flag(acpi_native_uint table_index, u8 is_loaded) | 519 | void acpi_tb_set_table_loaded_flag(u32 table_index, u8 is_loaded) |
| 522 | { | 520 | { |
| 523 | 521 | ||
| 524 | (void)acpi_ut_acquire_mutex(ACPI_MTX_TABLES); | 522 | (void)acpi_ut_acquire_mutex(ACPI_MTX_TABLES); |
diff --git a/drivers/acpi/tables/tbutils.c b/drivers/acpi/tables/tbutils.c index bc019b9b6a68..0cc92ef5236f 100644 --- a/drivers/acpi/tables/tbutils.c +++ b/drivers/acpi/tables/tbutils.c | |||
| @@ -49,8 +49,8 @@ ACPI_MODULE_NAME("tbutils") | |||
| 49 | 49 | ||
| 50 | /* Local prototypes */ | 50 | /* Local prototypes */ |
| 51 | static acpi_physical_address | 51 | static acpi_physical_address |
| 52 | acpi_tb_get_root_table_entry(u8 * table_entry, | 52 | acpi_tb_get_root_table_entry(u8 *table_entry, u32 table_entry_size); |
| 53 | acpi_native_uint table_entry_size); | 53 | |
| 54 | /******************************************************************************* | 54 | /******************************************************************************* |
| 55 | * | 55 | * |
| 56 | * FUNCTION: acpi_tb_check_xsdt | 56 | * FUNCTION: acpi_tb_check_xsdt |
| @@ -238,7 +238,7 @@ acpi_status acpi_tb_verify_checksum(struct acpi_table_header *table, u32 length) | |||
| 238 | * | 238 | * |
| 239 | ******************************************************************************/ | 239 | ******************************************************************************/ |
| 240 | 240 | ||
| 241 | u8 acpi_tb_checksum(u8 * buffer, acpi_native_uint length) | 241 | u8 acpi_tb_checksum(u8 *buffer, u32 length) |
| 242 | { | 242 | { |
| 243 | u8 sum = 0; | 243 | u8 sum = 0; |
| 244 | u8 *end = buffer + length; | 244 | u8 *end = buffer + length; |
| @@ -268,7 +268,7 @@ u8 acpi_tb_checksum(u8 * buffer, acpi_native_uint length) | |||
| 268 | 268 | ||
| 269 | void | 269 | void |
| 270 | acpi_tb_install_table(acpi_physical_address address, | 270 | acpi_tb_install_table(acpi_physical_address address, |
| 271 | u8 flags, char *signature, acpi_native_uint table_index) | 271 | u8 flags, char *signature, u32 table_index) |
| 272 | { | 272 | { |
| 273 | struct acpi_table_header *table; | 273 | struct acpi_table_header *table; |
| 274 | 274 | ||
| @@ -336,8 +336,7 @@ acpi_tb_install_table(acpi_physical_address address, | |||
| 336 | ******************************************************************************/ | 336 | ******************************************************************************/ |
| 337 | 337 | ||
| 338 | static acpi_physical_address | 338 | static acpi_physical_address |
| 339 | acpi_tb_get_root_table_entry(u8 * table_entry, | 339 | acpi_tb_get_root_table_entry(u8 *table_entry, u32 table_entry_size) |
| 340 | acpi_native_uint table_entry_size) | ||
| 341 | { | 340 | { |
| 342 | u64 address64; | 341 | u64 address64; |
| 343 | 342 | ||
| @@ -395,8 +394,8 @@ acpi_status __init | |||
| 395 | acpi_tb_parse_root_table(acpi_physical_address rsdp_address, u8 flags) | 394 | acpi_tb_parse_root_table(acpi_physical_address rsdp_address, u8 flags) |
| 396 | { | 395 | { |
| 397 | struct acpi_table_rsdp *rsdp; | 396 | struct acpi_table_rsdp *rsdp; |
| 398 | acpi_native_uint table_entry_size; | 397 | u32 table_entry_size; |
| 399 | acpi_native_uint i; | 398 | u32 i; |
| 400 | u32 table_count; | 399 | u32 table_count; |
| 401 | struct acpi_table_header *table; | 400 | struct acpi_table_header *table; |
| 402 | acpi_physical_address address; | 401 | acpi_physical_address address; |
diff --git a/drivers/acpi/tables/tbxface.c b/drivers/acpi/tables/tbxface.c index 0e319604d3e7..fd7770aa1061 100644 --- a/drivers/acpi/tables/tbxface.c +++ b/drivers/acpi/tables/tbxface.c | |||
| @@ -125,7 +125,7 @@ acpi_initialize_tables(struct acpi_table_desc * initial_table_array, | |||
| 125 | /* Root Table Array has been statically allocated by the host */ | 125 | /* Root Table Array has been statically allocated by the host */ |
| 126 | 126 | ||
| 127 | ACPI_MEMSET(initial_table_array, 0, | 127 | ACPI_MEMSET(initial_table_array, 0, |
| 128 | initial_table_count * | 128 | (acpi_size) initial_table_count * |
| 129 | sizeof(struct acpi_table_desc)); | 129 | sizeof(struct acpi_table_desc)); |
| 130 | 130 | ||
| 131 | acpi_gbl_root_table_list.tables = initial_table_array; | 131 | acpi_gbl_root_table_list.tables = initial_table_array; |
| @@ -183,9 +183,9 @@ acpi_status acpi_reallocate_root_table(void) | |||
| 183 | return_ACPI_STATUS(AE_SUPPORT); | 183 | return_ACPI_STATUS(AE_SUPPORT); |
| 184 | } | 184 | } |
| 185 | 185 | ||
| 186 | new_size = | 186 | new_size = ((acpi_size) acpi_gbl_root_table_list.count + |
| 187 | (acpi_gbl_root_table_list.count + | 187 | ACPI_ROOT_TABLE_SIZE_INCREMENT) * |
| 188 | ACPI_ROOT_TABLE_SIZE_INCREMENT) * sizeof(struct acpi_table_desc); | 188 | sizeof(struct acpi_table_desc); |
| 189 | 189 | ||
| 190 | /* Create new array and copy the old array */ | 190 | /* Create new array and copy the old array */ |
| 191 | 191 | ||
| @@ -222,7 +222,7 @@ acpi_status acpi_reallocate_root_table(void) | |||
| 222 | acpi_status acpi_load_table(struct acpi_table_header *table_ptr) | 222 | acpi_status acpi_load_table(struct acpi_table_header *table_ptr) |
| 223 | { | 223 | { |
| 224 | acpi_status status; | 224 | acpi_status status; |
| 225 | acpi_native_uint table_index; | 225 | u32 table_index; |
| 226 | struct acpi_table_desc table_desc; | 226 | struct acpi_table_desc table_desc; |
| 227 | 227 | ||
| 228 | if (!table_ptr) | 228 | if (!table_ptr) |
| @@ -264,11 +264,10 @@ ACPI_EXPORT_SYMBOL(acpi_load_table) | |||
| 264 | *****************************************************************************/ | 264 | *****************************************************************************/ |
| 265 | acpi_status | 265 | acpi_status |
| 266 | acpi_get_table_header(char *signature, | 266 | acpi_get_table_header(char *signature, |
| 267 | acpi_native_uint instance, | 267 | u32 instance, struct acpi_table_header *out_table_header) |
| 268 | struct acpi_table_header * out_table_header) | ||
| 269 | { | 268 | { |
| 270 | acpi_native_uint i; | 269 | u32 i; |
| 271 | acpi_native_uint j; | 270 | u32 j; |
| 272 | struct acpi_table_header *header; | 271 | struct acpi_table_header *header; |
| 273 | 272 | ||
| 274 | /* Parameter validation */ | 273 | /* Parameter validation */ |
| @@ -378,10 +377,10 @@ ACPI_EXPORT_SYMBOL(acpi_unload_table_id) | |||
| 378 | *****************************************************************************/ | 377 | *****************************************************************************/ |
| 379 | acpi_status | 378 | acpi_status |
| 380 | acpi_get_table(char *signature, | 379 | acpi_get_table(char *signature, |
| 381 | acpi_native_uint instance, struct acpi_table_header **out_table) | 380 | u32 instance, struct acpi_table_header **out_table) |
| 382 | { | 381 | { |
| 383 | acpi_native_uint i; | 382 | u32 i; |
| 384 | acpi_native_uint j; | 383 | u32 j; |
| 385 | acpi_status status; | 384 | acpi_status status; |
| 386 | 385 | ||
| 387 | /* Parameter validation */ | 386 | /* Parameter validation */ |
| @@ -435,8 +434,7 @@ ACPI_EXPORT_SYMBOL(acpi_get_table) | |||
| 435 | * | 434 | * |
| 436 | ******************************************************************************/ | 435 | ******************************************************************************/ |
| 437 | acpi_status | 436 | acpi_status |
| 438 | acpi_get_table_by_index(acpi_native_uint table_index, | 437 | acpi_get_table_by_index(u32 table_index, struct acpi_table_header **table) |
| 439 | struct acpi_table_header ** table) | ||
| 440 | { | 438 | { |
| 441 | acpi_status status; | 439 | acpi_status status; |
| 442 | 440 | ||
| @@ -493,7 +491,7 @@ static acpi_status acpi_tb_load_namespace(void) | |||
| 493 | { | 491 | { |
| 494 | acpi_status status; | 492 | acpi_status status; |
| 495 | struct acpi_table_header *table; | 493 | struct acpi_table_header *table; |
| 496 | acpi_native_uint i; | 494 | u32 i; |
| 497 | 495 | ||
| 498 | ACPI_FUNCTION_TRACE(tb_load_namespace); | 496 | ACPI_FUNCTION_TRACE(tb_load_namespace); |
| 499 | 497 | ||
diff --git a/drivers/acpi/tables/tbxfroot.c b/drivers/acpi/tables/tbxfroot.c index b8c0dfa084f6..2d157e0f98d2 100644 --- a/drivers/acpi/tables/tbxfroot.c +++ b/drivers/acpi/tables/tbxfroot.c | |||
| @@ -118,7 +118,7 @@ static acpi_status acpi_tb_validate_rsdp(struct acpi_table_rsdp *rsdp) | |||
| 118 | * | 118 | * |
| 119 | ******************************************************************************/ | 119 | ******************************************************************************/ |
| 120 | 120 | ||
| 121 | acpi_status acpi_find_root_pointer(acpi_native_uint * table_address) | 121 | acpi_status acpi_find_root_pointer(acpi_size *table_address) |
| 122 | { | 122 | { |
| 123 | u8 *table_ptr; | 123 | u8 *table_ptr; |
| 124 | u8 *mem_rover; | 124 | u8 *mem_rover; |
| @@ -153,7 +153,7 @@ acpi_status acpi_find_root_pointer(acpi_native_uint * table_address) | |||
| 153 | * 1b) Search EBDA paragraphs (EBDA is required to be a | 153 | * 1b) Search EBDA paragraphs (EBDA is required to be a |
| 154 | * minimum of 1_k length) | 154 | * minimum of 1_k length) |
| 155 | */ | 155 | */ |
| 156 | table_ptr = acpi_os_map_memory((acpi_native_uint) | 156 | table_ptr = acpi_os_map_memory((acpi_physical_address) |
| 157 | physical_address, | 157 | physical_address, |
| 158 | ACPI_EBDA_WINDOW_SIZE); | 158 | ACPI_EBDA_WINDOW_SIZE); |
| 159 | if (!table_ptr) { | 159 | if (!table_ptr) { |
diff --git a/drivers/acpi/utilities/utcopy.c b/drivers/acpi/utilities/utcopy.c index 655c290aca7b..53499ac90988 100644 --- a/drivers/acpi/utilities/utcopy.c +++ b/drivers/acpi/utilities/utcopy.c | |||
| @@ -572,7 +572,7 @@ acpi_ut_copy_epackage_to_ipackage(union acpi_object *external_object, | |||
| 572 | acpi_status status = AE_OK; | 572 | acpi_status status = AE_OK; |
| 573 | union acpi_operand_object *package_object; | 573 | union acpi_operand_object *package_object; |
| 574 | union acpi_operand_object **package_elements; | 574 | union acpi_operand_object **package_elements; |
| 575 | acpi_native_uint i; | 575 | u32 i; |
| 576 | 576 | ||
| 577 | ACPI_FUNCTION_TRACE(ut_copy_epackage_to_ipackage); | 577 | ACPI_FUNCTION_TRACE(ut_copy_epackage_to_ipackage); |
| 578 | 578 | ||
| @@ -599,7 +599,7 @@ acpi_ut_copy_epackage_to_ipackage(union acpi_object *external_object, | |||
| 599 | 599 | ||
| 600 | /* Truncate package and delete it */ | 600 | /* Truncate package and delete it */ |
| 601 | 601 | ||
| 602 | package_object->package.count = (u32) i; | 602 | package_object->package.count = i; |
| 603 | package_elements[i] = NULL; | 603 | package_elements[i] = NULL; |
| 604 | acpi_ut_remove_reference(package_object); | 604 | acpi_ut_remove_reference(package_object); |
| 605 | return_ACPI_STATUS(status); | 605 | return_ACPI_STATUS(status); |
diff --git a/drivers/acpi/utilities/utdebug.c b/drivers/acpi/utilities/utdebug.c index f938f465efa4..3919fe599f94 100644 --- a/drivers/acpi/utilities/utdebug.c +++ b/drivers/acpi/utilities/utdebug.c | |||
| @@ -519,8 +519,8 @@ acpi_ut_ptr_exit(u32 line_number, | |||
| 519 | 519 | ||
| 520 | void acpi_ut_dump_buffer2(u8 * buffer, u32 count, u32 display) | 520 | void acpi_ut_dump_buffer2(u8 * buffer, u32 count, u32 display) |
| 521 | { | 521 | { |
| 522 | acpi_native_uint i = 0; | 522 | u32 i = 0; |
| 523 | acpi_native_uint j; | 523 | u32 j; |
| 524 | u32 temp32; | 524 | u32 temp32; |
| 525 | u8 buf_char; | 525 | u8 buf_char; |
| 526 | 526 | ||
| @@ -539,7 +539,7 @@ void acpi_ut_dump_buffer2(u8 * buffer, u32 count, u32 display) | |||
| 539 | 539 | ||
| 540 | /* Print current offset */ | 540 | /* Print current offset */ |
| 541 | 541 | ||
| 542 | acpi_os_printf("%6.4X: ", (u32) i); | 542 | acpi_os_printf("%6.4X: ", i); |
| 543 | 543 | ||
| 544 | /* Print 16 hex chars */ | 544 | /* Print 16 hex chars */ |
| 545 | 545 | ||
| @@ -549,7 +549,7 @@ void acpi_ut_dump_buffer2(u8 * buffer, u32 count, u32 display) | |||
| 549 | /* Dump fill spaces */ | 549 | /* Dump fill spaces */ |
| 550 | 550 | ||
| 551 | acpi_os_printf("%*s", ((display * 2) + 1), " "); | 551 | acpi_os_printf("%*s", ((display * 2) + 1), " "); |
| 552 | j += (acpi_native_uint) display; | 552 | j += display; |
| 553 | continue; | 553 | continue; |
| 554 | } | 554 | } |
| 555 | 555 | ||
| @@ -557,32 +557,38 @@ void acpi_ut_dump_buffer2(u8 * buffer, u32 count, u32 display) | |||
| 557 | case DB_BYTE_DISPLAY: | 557 | case DB_BYTE_DISPLAY: |
| 558 | default: /* Default is BYTE display */ | 558 | default: /* Default is BYTE display */ |
| 559 | 559 | ||
| 560 | acpi_os_printf("%02X ", buffer[i + j]); | 560 | acpi_os_printf("%02X ", |
| 561 | buffer[(acpi_size) i + j]); | ||
| 561 | break; | 562 | break; |
| 562 | 563 | ||
| 563 | case DB_WORD_DISPLAY: | 564 | case DB_WORD_DISPLAY: |
| 564 | 565 | ||
| 565 | ACPI_MOVE_16_TO_32(&temp32, &buffer[i + j]); | 566 | ACPI_MOVE_16_TO_32(&temp32, |
| 567 | &buffer[(acpi_size) i + j]); | ||
| 566 | acpi_os_printf("%04X ", temp32); | 568 | acpi_os_printf("%04X ", temp32); |
| 567 | break; | 569 | break; |
| 568 | 570 | ||
| 569 | case DB_DWORD_DISPLAY: | 571 | case DB_DWORD_DISPLAY: |
| 570 | 572 | ||
| 571 | ACPI_MOVE_32_TO_32(&temp32, &buffer[i + j]); | 573 | ACPI_MOVE_32_TO_32(&temp32, |
| 574 | &buffer[(acpi_size) i + j]); | ||
| 572 | acpi_os_printf("%08X ", temp32); | 575 | acpi_os_printf("%08X ", temp32); |
| 573 | break; | 576 | break; |
| 574 | 577 | ||
| 575 | case DB_QWORD_DISPLAY: | 578 | case DB_QWORD_DISPLAY: |
| 576 | 579 | ||
| 577 | ACPI_MOVE_32_TO_32(&temp32, &buffer[i + j]); | 580 | ACPI_MOVE_32_TO_32(&temp32, |
| 581 | &buffer[(acpi_size) i + j]); | ||
| 578 | acpi_os_printf("%08X", temp32); | 582 | acpi_os_printf("%08X", temp32); |
| 579 | 583 | ||
| 580 | ACPI_MOVE_32_TO_32(&temp32, &buffer[i + j + 4]); | 584 | ACPI_MOVE_32_TO_32(&temp32, |
| 585 | &buffer[(acpi_size) i + j + | ||
| 586 | 4]); | ||
| 581 | acpi_os_printf("%08X ", temp32); | 587 | acpi_os_printf("%08X ", temp32); |
| 582 | break; | 588 | break; |
| 583 | } | 589 | } |
| 584 | 590 | ||
| 585 | j += (acpi_native_uint) display; | 591 | j += display; |
| 586 | } | 592 | } |
| 587 | 593 | ||
| 588 | /* | 594 | /* |
| @@ -596,7 +602,7 @@ void acpi_ut_dump_buffer2(u8 * buffer, u32 count, u32 display) | |||
| 596 | return; | 602 | return; |
| 597 | } | 603 | } |
| 598 | 604 | ||
| 599 | buf_char = buffer[i + j]; | 605 | buf_char = buffer[(acpi_size) i + j]; |
| 600 | if (ACPI_IS_PRINT(buf_char)) { | 606 | if (ACPI_IS_PRINT(buf_char)) { |
| 601 | acpi_os_printf("%c", buf_char); | 607 | acpi_os_printf("%c", buf_char); |
| 602 | } else { | 608 | } else { |
diff --git a/drivers/acpi/utilities/utdelete.c b/drivers/acpi/utilities/utdelete.c index 1fbc35139e84..c5c791a575c9 100644 --- a/drivers/acpi/utilities/utdelete.c +++ b/drivers/acpi/utilities/utdelete.c | |||
| @@ -442,7 +442,7 @@ acpi_ut_update_object_reference(union acpi_operand_object *object, u16 action) | |||
| 442 | union acpi_generic_state *state_list = NULL; | 442 | union acpi_generic_state *state_list = NULL; |
| 443 | union acpi_operand_object *next_object = NULL; | 443 | union acpi_operand_object *next_object = NULL; |
| 444 | union acpi_generic_state *state; | 444 | union acpi_generic_state *state; |
| 445 | acpi_native_uint i; | 445 | u32 i; |
| 446 | 446 | ||
| 447 | ACPI_FUNCTION_TRACE_PTR(ut_update_object_reference, object); | 447 | ACPI_FUNCTION_TRACE_PTR(ut_update_object_reference, object); |
| 448 | 448 | ||
diff --git a/drivers/acpi/utilities/uteval.c b/drivers/acpi/utilities/uteval.c index 7f1f6341242d..352747e49c7a 100644 --- a/drivers/acpi/utilities/uteval.c +++ b/drivers/acpi/utilities/uteval.c | |||
| @@ -97,7 +97,7 @@ acpi_status acpi_ut_osi_implementation(struct acpi_walk_state *walk_state) | |||
| 97 | acpi_status status; | 97 | acpi_status status; |
| 98 | union acpi_operand_object *string_desc; | 98 | union acpi_operand_object *string_desc; |
| 99 | union acpi_operand_object *return_desc; | 99 | union acpi_operand_object *return_desc; |
| 100 | acpi_native_uint i; | 100 | u32 i; |
| 101 | 101 | ||
| 102 | ACPI_FUNCTION_TRACE(ut_osi_implementation); | 102 | ACPI_FUNCTION_TRACE(ut_osi_implementation); |
| 103 | 103 | ||
| @@ -513,7 +513,7 @@ acpi_ut_execute_CID(struct acpi_namespace_node * device_node, | |||
| 513 | u32 count; | 513 | u32 count; |
| 514 | u32 size; | 514 | u32 size; |
| 515 | struct acpi_compatible_id_list *cid_list; | 515 | struct acpi_compatible_id_list *cid_list; |
| 516 | acpi_native_uint i; | 516 | u32 i; |
| 517 | 517 | ||
| 518 | ACPI_FUNCTION_TRACE(ut_execute_CID); | 518 | ACPI_FUNCTION_TRACE(ut_execute_CID); |
| 519 | 519 | ||
diff --git a/drivers/acpi/utilities/utmisc.c b/drivers/acpi/utilities/utmisc.c index 47354d9b0e56..6175ca5d73bf 100644 --- a/drivers/acpi/utilities/utmisc.c +++ b/drivers/acpi/utilities/utmisc.c | |||
| @@ -161,9 +161,9 @@ u8 acpi_ut_is_aml_table(struct acpi_table_header *table) | |||
| 161 | 161 | ||
| 162 | acpi_status acpi_ut_allocate_owner_id(acpi_owner_id * owner_id) | 162 | acpi_status acpi_ut_allocate_owner_id(acpi_owner_id * owner_id) |
| 163 | { | 163 | { |
| 164 | acpi_native_uint i; | 164 | u32 i; |
| 165 | acpi_native_uint j; | 165 | u32 j; |
| 166 | acpi_native_uint k; | 166 | u32 k; |
| 167 | acpi_status status; | 167 | acpi_status status; |
| 168 | 168 | ||
| 169 | ACPI_FUNCTION_TRACE(ut_allocate_owner_id); | 169 | ACPI_FUNCTION_TRACE(ut_allocate_owner_id); |
| @@ -269,7 +269,7 @@ void acpi_ut_release_owner_id(acpi_owner_id * owner_id_ptr) | |||
| 269 | { | 269 | { |
| 270 | acpi_owner_id owner_id = *owner_id_ptr; | 270 | acpi_owner_id owner_id = *owner_id_ptr; |
| 271 | acpi_status status; | 271 | acpi_status status; |
| 272 | acpi_native_uint index; | 272 | u32 index; |
| 273 | u32 bit; | 273 | u32 bit; |
| 274 | 274 | ||
| 275 | ACPI_FUNCTION_TRACE_U32(ut_release_owner_id, owner_id); | 275 | ACPI_FUNCTION_TRACE_U32(ut_release_owner_id, owner_id); |
| @@ -589,7 +589,7 @@ acpi_ut_display_init_pathname(u8 type, | |||
| 589 | * | 589 | * |
| 590 | ******************************************************************************/ | 590 | ******************************************************************************/ |
| 591 | 591 | ||
| 592 | u8 acpi_ut_valid_acpi_char(char character, acpi_native_uint position) | 592 | u8 acpi_ut_valid_acpi_char(char character, u32 position) |
| 593 | { | 593 | { |
| 594 | 594 | ||
| 595 | if (!((character >= 'A' && character <= 'Z') || | 595 | if (!((character >= 'A' && character <= 'Z') || |
| @@ -624,7 +624,7 @@ u8 acpi_ut_valid_acpi_char(char character, acpi_native_uint position) | |||
| 624 | 624 | ||
| 625 | u8 acpi_ut_valid_acpi_name(u32 name) | 625 | u8 acpi_ut_valid_acpi_name(u32 name) |
| 626 | { | 626 | { |
| 627 | acpi_native_uint i; | 627 | u32 i; |
| 628 | 628 | ||
| 629 | ACPI_FUNCTION_ENTRY(); | 629 | ACPI_FUNCTION_ENTRY(); |
| 630 | 630 | ||
| @@ -653,7 +653,7 @@ u8 acpi_ut_valid_acpi_name(u32 name) | |||
| 653 | 653 | ||
| 654 | acpi_name acpi_ut_repair_name(char *name) | 654 | acpi_name acpi_ut_repair_name(char *name) |
| 655 | { | 655 | { |
| 656 | acpi_native_uint i; | 656 | u32 i; |
| 657 | char new_name[ACPI_NAME_SIZE]; | 657 | char new_name[ACPI_NAME_SIZE]; |
| 658 | 658 | ||
| 659 | for (i = 0; i < ACPI_NAME_SIZE; i++) { | 659 | for (i = 0; i < ACPI_NAME_SIZE; i++) { |
diff --git a/drivers/acpi/utilities/utobject.c b/drivers/acpi/utilities/utobject.c index e68466de8044..ede6a80837df 100644 --- a/drivers/acpi/utilities/utobject.c +++ b/drivers/acpi/utilities/utobject.c | |||
| @@ -175,8 +175,8 @@ union acpi_operand_object *acpi_ut_create_package_object(u32 count) | |||
| 175 | * Create the element array. Count+1 allows the array to be null | 175 | * Create the element array. Count+1 allows the array to be null |
| 176 | * terminated. | 176 | * terminated. |
| 177 | */ | 177 | */ |
| 178 | package_elements = ACPI_ALLOCATE_ZEROED((acpi_size) | 178 | package_elements = ACPI_ALLOCATE_ZEROED(((acpi_size) count + |
| 179 | (count + 1) * sizeof(void *)); | 179 | 1) * sizeof(void *)); |
| 180 | if (!package_elements) { | 180 | if (!package_elements) { |
| 181 | acpi_ut_remove_reference(package_desc); | 181 | acpi_ut_remove_reference(package_desc); |
| 182 | return_PTR(NULL); | 182 | return_PTR(NULL); |
