Home
last modified time | relevance | path

Searched refs:ACPI_CAST_PTR (Results 1 – 59 of 59) sorted by relevance

/linux-4.1.27/drivers/acpi/acpica/
Dnssearch.c113 ACPI_CAST_PTR(char, &target_name), in acpi_ns_search_one_scope()
137 ACPI_CAST_PTR(struct acpi_namespace_node, in acpi_ns_search_one_scope()
145 ACPI_CAST_PTR(char, &target_name), in acpi_ns_search_one_scope()
165 ACPI_CAST_PTR(char, &target_name), in acpi_ns_search_one_scope()
217 ACPI_CAST_PTR(char, &target_name))); in acpi_ns_search_parent_tree()
224 ACPI_CAST_PTR(char, &target_name), in acpi_ns_search_parent_tree()
234 ACPI_CAST_PTR(char, &target_name))); in acpi_ns_search_parent_tree()
317 acpi_ut_repair_name(ACPI_CAST_PTR(char, &target_name)); in acpi_ns_search_and_enter()
369 ACPI_CAST_PTR(char, &target_name), node)); in acpi_ns_search_and_enter()
Drsdump.c180 prt_element = ACPI_CAST_PTR(struct acpi_pci_routing_table, route_table); in acpi_rs_dump_irq_list()
239 ACPI_CAST_PTR(char, table->pointer)); in acpi_rs_dump_descriptor()
244 acpi_rs_out_string(name, ACPI_CAST_PTR(char, target)); in acpi_rs_dump_descriptor()
252 acpi_rs_out_string(name, ACPI_CAST_PTR(char, in acpi_rs_dump_descriptor()
280 acpi_rs_out_string(name, ACPI_CAST_PTR(char, in acpi_rs_dump_descriptor()
288 acpi_rs_out_string(name, ACPI_CAST_PTR(char, in acpi_rs_dump_descriptor()
296 acpi_rs_out_string(name, ACPI_CAST_PTR(char, in acpi_rs_dump_descriptor()
347 ACPI_CAST_PTR(u32, in acpi_rs_dump_descriptor()
368 acpi_rs_dump_address_common(ACPI_CAST_PTR in acpi_rs_dump_descriptor()
377 acpi_rs_dump_resource_source(ACPI_CAST_PTR in acpi_rs_dump_descriptor()
Drsutils.c162 ACPI_MOVE_16_TO_16(&ACPI_CAST_PTR(u16, destination)[i], in acpi_rs_move_data()
163 &ACPI_CAST_PTR(u16, source)[i]); in acpi_rs_move_data()
168 ACPI_MOVE_32_TO_32(&ACPI_CAST_PTR(u32, destination)[i], in acpi_rs_move_data()
169 &ACPI_CAST_PTR(u32, source)[i]); in acpi_rs_move_data()
174 ACPI_MOVE_64_TO_64(&ACPI_CAST_PTR(u64, destination)[i], in acpi_rs_move_data()
175 &ACPI_CAST_PTR(u64, source)[i]); in acpi_rs_move_data()
368 ACPI_STRLEN(ACPI_CAST_PTR(char, &aml_resource_source[1])) + in acpi_rs_get_resource_source()
378 ACPI_CAST_PTR(char, in acpi_rs_get_resource_source()
435 ACPI_STRCPY(ACPI_CAST_PTR(char, &aml_resource_source[1]), in acpi_rs_set_resource_source()
685 acpi_ut_evaluate_object(ACPI_CAST_PTR in acpi_rs_get_method_data()
Dtbprint.c142 ACPI_CAST_PTR(struct acpi_table_rsdp, in acpi_tb_print_table_header()
148 (ACPI_CAST_PTR(struct acpi_table_rsdp, header)-> in acpi_tb_print_table_header()
150 0) ? ACPI_CAST_PTR(struct acpi_table_rsdp, in acpi_tb_print_table_header()
152 ACPI_CAST_PTR(struct acpi_table_rsdp, in acpi_tb_print_table_header()
202 checksum = acpi_tb_checksum(ACPI_CAST_PTR(u8, table), length); in acpi_tb_verify_checksum()
Dutdecode.c130 return (ACPI_CAST_PTR(char, acpi_gbl_region_types[space_id])); in acpi_ut_get_region_name()
162 return (ACPI_CAST_PTR(char, acpi_gbl_event_types[event_id])); in acpi_ut_get_event_name()
227 return (ACPI_CAST_PTR(char, acpi_gbl_bad_type)); in acpi_ut_get_type_name()
230 return (ACPI_CAST_PTR(char, acpi_gbl_ns_type_names[type])); in acpi_ut_get_type_name()
332 return (ACPI_CAST_PTR(char, in acpi_ut_get_descriptor_name()
Ddsobject.c163 ACPI_CAST_PTR(union acpi_operand_object, in acpi_ds_build_internal_object()
185 ACPI_CAST_PTR(struct acpi_namespace_node, in acpi_ds_build_internal_object()
348 op->common.node = ACPI_CAST_PTR(struct acpi_namespace_node, obj_desc); in acpi_ds_build_internal_buffer_obj()
462 ACPI_CAST_PTR(union acpi_operand_object, in acpi_ds_build_internal_package_obj()
514 acpi_ut_remove_reference(ACPI_CAST_PTR in acpi_ds_build_internal_package_obj()
541 op->common.node = ACPI_CAST_PTR(struct acpi_namespace_node, obj_desc); in acpi_ds_build_internal_package_obj()
655 ACPI_CAST_PTR(struct acpi_namespace_node, in acpi_ds_init_object_from_op()
666 ACPI_CAST_PTR(struct acpi_namespace_node, in acpi_ds_init_object_from_op()
Drslist.c91 aml_resource = ACPI_CAST_PTR(union aml_resource, aml); in acpi_rs_convert_aml_to_resources()
215 ACPI_CAST_PTR(union in acpi_rs_convert_resources_to_aml()
229 ACPI_CAST_PTR(union in acpi_rs_convert_resources_to_aml()
Dnsinit.c387 ACPI_CAST_PTR(struct acpi_device_walk_info, context); in acpi_ns_find_ini_methods()
393 node = ACPI_CAST_PTR(struct acpi_namespace_node, obj_handle); in acpi_ns_find_ini_methods()
452 ACPI_CAST_PTR(struct acpi_device_walk_info, context); in acpi_ns_init_one_device()
462 device_node = ACPI_CAST_PTR(struct acpi_namespace_node, obj_handle); in acpi_ns_init_one_device()
Dnsconvert.c289 dword_buffer = ACPI_CAST_PTR(u32, new_object->buffer.pointer); in acpi_ns_convert_to_buffer()
359 unicode_buffer = ACPI_CAST_PTR(u16, new_object->buffer.pointer); in acpi_ns_convert_to_unicode()
437 buffer = ACPI_CAST_PTR(u8, new_object->buffer.pointer); in acpi_ns_convert_to_resource()
Dnsxfobj.c152 *ret_handle = ACPI_CAST_PTR(acpi_handle, parent_node); in ACPI_EXPORT_SYMBOL()
237 *ret_handle = ACPI_CAST_PTR(acpi_handle, node); in ACPI_EXPORT_SYMBOL()
Dnseval.c118 ACPI_CAST_PTR(struct acpi_namespace_node, in acpi_ns_evaluate()
269 ACPI_CAST_PTR(union acpi_operand_object, info->node); in acpi_ns_evaluate()
421 parent_node = ACPI_CAST_PTR(struct acpi_namespace_node, in acpi_ns_exec_module_code()
Dexconfig.c250 ACPI_CAST_PTR(union acpi_operand_object, in acpi_ex_load_table_op()
389 ACPI_CAST_PTR(u8, table_header)); in acpi_ex_load_op()
429 ACPI_CAST_PTR(u8, table)); in acpi_ex_load_op()
451 ACPI_CAST_PTR(struct acpi_table_header, in acpi_ex_load_op()
Dnsxfname.c119 ACPI_CAST_PTR(acpi_handle, acpi_gbl_root_node); in acpi_get_handle()
134 *ret_handle = ACPI_CAST_PTR(acpi_handle, node); in acpi_get_handle()
435 next_id_string = ACPI_CAST_PTR(char, info->compatible_id_list.ids); in acpi_get_object_info()
535 ACPI_CAST_PTR(struct acpi_table_header, buffer); in ACPI_EXPORT_SYMBOL()
Dutcopy.c285 ACPI_CAST_PTR(union acpi_object, info->free_space); in acpi_ut_copy_ielement_to_eelement()
345 external_object = ACPI_CAST_PTR(union acpi_object, buffer); in acpi_ut_copy_ipackage_to_epackage()
358 external_object->package.elements = ACPI_CAST_PTR(union acpi_object, in acpi_ut_copy_ipackage_to_epackage()
413 ACPI_CAST_PTR(union in acpi_ut_copy_iobject_to_eobject()
697 ACPI_MEMCPY(ACPI_CAST_PTR(char, dest_desc), in acpi_ut_copy_simple_object()
698 ACPI_CAST_PTR(char, source_desc), copy_size); in acpi_ut_copy_simple_object()
Dexdump.c428 *ACPI_CAST_PTR(void *, target)); in acpi_ex_dump_object()
462 ACPI_CAST_PTR(char, reference_name)); in acpi_ex_dump_object()
468 start = *ACPI_CAST_PTR(void *, target); in acpi_ex_dump_object()
502 start = *ACPI_CAST_PTR(void *, target); in acpi_ex_dump_object()
536 start = *ACPI_CAST_PTR(void *, target); in acpi_ex_dump_object()
571 *ACPI_CAST_PTR(struct acpi_namespace_node *, in acpi_ex_dump_object()
972 acpi_ex_dump_object(ACPI_CAST_PTR(union acpi_operand_object, node), in acpi_ex_dump_namespace_node()
1090 acpi_ut_debug_dump_buffer(ACPI_CAST_PTR in acpi_ex_dump_package_obj()
Dexstorob.c80 buffer = ACPI_CAST_PTR(u8, source_desc->buffer.pointer); in acpi_ex_store_buffer_to_buffer()
177 buffer = ACPI_CAST_PTR(u8, source_desc->string.pointer); in acpi_ex_store_string_to_string()
Dexcreate.c86 ACPI_CAST_PTR(struct acpi_namespace_node, in acpi_ex_create_alias()
121 ACPI_CAST_PTR(union acpi_operand_object, target_node); in acpi_ex_create_alias()
130 ACPI_CAST_PTR(union acpi_operand_object, target_node); in acpi_ex_create_alias()
Duteval.c323 ACPI_CAST_PTR(char, in acpi_ut_execute_power_methods()
343 ACPI_CAST_PTR(char, method_names[i]), in acpi_ut_execute_power_methods()
Drsxface.c384 ACPI_CAST_PTR(struct acpi_resource_address16, in ACPI_EXPORT_SYMBOL()
392 ACPI_CAST_PTR(struct acpi_resource_address32, in ACPI_EXPORT_SYMBOL()
560 resource = ACPI_CAST_PTR(struct acpi_resource, buffer->pointer); in acpi_walk_resource_buffer()
Dtbutils.c238 (*ACPI_CAST_PTR(u32, table_entry))); in acpi_tb_get_root_table_entry()
302 ACPI_CAST_PTR(struct acpi_table_header, in acpi_tb_parse_root_table()
Devgpeinit.c322 ACPI_CAST_PTR(struct acpi_namespace_node, obj_handle); in acpi_ev_match_gpe_method()
324 ACPI_CAST_PTR(struct acpi_gpe_walk_info, context); in acpi_ev_match_gpe_method()
Dutdebug.c124 if (*(ACPI_CAST_PTR(u32, function_name)) == ACPI_PREFIX_MIXED) { in acpi_ut_trim_function_name()
131 if (*(ACPI_CAST_PTR(u32, function_name)) == ACPI_PREFIX_LOWER) { in acpi_ut_trim_function_name()
Drsmisc.c266 *(u16 **)destination = ACPI_CAST_PTR(u16, target); in acpi_rs_convert_aml_to_resource()
282 *(u8 **)destination = ACPI_CAST_PTR(u8, target); in acpi_rs_convert_aml_to_resource()
298 *(u8 **)destination = ACPI_CAST_PTR(u8, target); in acpi_rs_convert_aml_to_resource()
314 *(u8 **)destination = ACPI_CAST_PTR(u8, target); in acpi_rs_convert_aml_to_resource()
Dexregion.c520 ACPI_MEMCPY(ACPI_CAST_PTR(char, value), in acpi_ex_data_table_space_handler()
528 ACPI_CAST_PTR(char, value), ACPI_DIV_8(bit_width)); in acpi_ex_data_table_space_handler()
Dacmacros.h52 #define ACPI_CAST8(ptr) ACPI_CAST_PTR (u8, (ptr))
53 #define ACPI_CAST16(ptr) ACPI_CAST_PTR (u16, (ptr))
54 #define ACPI_CAST32(ptr) ACPI_CAST_PTR (u32, (ptr))
55 #define ACPI_CAST64(ptr) ACPI_CAST_PTR (u64, (ptr))
Dutxfmutex.c93 ACPI_CAST_PTR(acpi_handle, in acpi_ut_get_mutex_object()
Drscreate.c259 user_prt = ACPI_CAST_PTR(struct acpi_pci_routing_table, buffer); in acpi_rs_create_pci_routing_table()
270 user_prt = ACPI_CAST_PTR(struct acpi_pci_routing_table, buffer); in acpi_rs_create_pci_routing_table()
Ddswload.c391 op->named.path = ACPI_CAST_PTR(u8, path); in acpi_ds_load1_begin_op()
533 ACPI_CAST_PTR(void, op->named.node); in acpi_ds_load1_end_op()
Duterror.c215 ACPI_CAST_PTR(u32, internal_name)); in acpi_ut_namespace_error()
Dnsutils.c579 return (ACPI_CAST_PTR(struct acpi_namespace_node, handle)); in acpi_ns_validate_handle()
677 ACPI_FUNCTION_TRACE_PTR(ns_get_node, ACPI_CAST_PTR(char, pathname)); in acpi_ns_get_node()
Dtbxfroot.c277 acpi_tb_validate_rsdp(ACPI_CAST_PTR in acpi_tb_scan_memory_for_rsdp()
Duttrack.c265 debug_block = ACPI_CAST_PTR(struct acpi_debug_mem_block, in acpi_ut_free_and_track()
600 ACPI_CAST_PTR(union acpi_descriptor, in acpi_ut_dump_allocations()
Dexprep.c545 ACPI_CAST_PTR(union acpi_parse_object, in acpi_ex_prep_field_value()
548 ACPI_CAST_PTR(union acpi_parse_object, in acpi_ex_prep_field_value()
Dtbdata.c116 table = ACPI_CAST_PTR(struct acpi_table_header, in acpi_tb_acquire_table()
217 table_header = ACPI_CAST_PTR(struct acpi_table_header, in acpi_tb_acquire_temp_table()
Dexresnte.c107 node = ACPI_CAST_PTR(struct acpi_namespace_node, node->object); in acpi_ex_resolve_node_to_value()
Ddswload2.c120 buffer_ptr = ACPI_CAST_PTR(char, &op->named.name); in acpi_ds_load2_begin_op()
652 ACPI_CAST_PTR(void, op->named.node); in acpi_ds_load2_end_op()
Dutinit.c237 acpi_gbl_lowest_stack_pointer = ACPI_CAST_PTR(acpi_size, ACPI_SIZE_MAX); in acpi_ut_init_globals()
Dutfileio.c250 ACPI_CAST_PTR(struct in acpi_ut_read_table()
Devxfgpe.c352 ACPI_CAST_PTR(struct acpi_namespace_node, wake_device); in ACPI_EXPORT_SYMBOL()
947 *gpe_device = ACPI_CAST_PTR(acpi_handle, info.gpe_device); in ACPI_EXPORT_SYMBOL()
Ddsutils.c510 ACPI_CAST_PTR(union acpi_operand_object, in acpi_ds_create_operand()
563 ACPI_CAST_PTR(union in acpi_ds_create_operand()
Dexnames.c222 *in_aml_address = ACPI_CAST_PTR(u8, aml_address); in acpi_ex_name_segment()
Dtbxfload.c331 ACPI_CAST_PTR(struct acpi_namespace_node, object); in ACPI_EXPORT_SYMBOL()
Dpsxface.c90 acpi_gbl_trace_method_name = *ACPI_CAST_PTR(u32, name); in acpi_debug_trace()
Dutids.c378 next_id_string = ACPI_CAST_PTR(char, cid_list->ids) + in acpi_ut_execute_CID()
Dutresrc.c623 aml_resource = ACPI_CAST_PTR(union aml_resource, aml); in acpi_ut_validate_resource()
Devxface.c96 ACPI_CAST_PTR(struct acpi_namespace_node, device); in acpi_install_notify_handler()
249 ACPI_CAST_PTR(struct acpi_namespace_node, device); in ACPI_EXPORT_SYMBOL()
Dhwxface.c508 ACPI_CAST_PTR(char, acpi_gbl_sleep_state_names[sleep_state]); in ACPI_EXPORT_SYMBOL()
Dutxface.c515 u32 *buffer = ACPI_CAST_PTR(u32, in_buffer); in ACPI_EXPORT_SYMBOL()
Dnsaccess.c630 ACPI_CAST_PTR(char, &simple_name), in acpi_ns_lookup()
Dexfield.c215 ACPI_CAST_PTR(u64, in acpi_ex_read_data_from_field()
Dpsparse.c684 acpi_ut_delete_generic_state(ACPI_CAST_PTR in acpi_ps_parse_aml()
Dpsloop.c365 ACPI_CAST_PTR(union acpi_operand_object, parent_node); in acpi_ps_link_module_code()
Devregion.c670 space_id = *ACPI_CAST_PTR(acpi_adr_space_type, context); in acpi_ev_reg_run()
Dpsargs.c442 arg->common.value.string = ACPI_CAST_PTR(char, aml); in acpi_ps_get_next_simple_arg()
Ddsfield.c434 ACPI_CAST_PTR(char, in acpi_ds_get_field_names()
Dnsrepair2.c325 ACPI_CAST_PTR(u32, buffer_object->buffer.pointer); in acpi_ns_repair_FDE()
/linux-4.1.27/include/acpi/
Dactypes.h530 #define ACPI_CAST_PTR(t, p) ((t *) (acpi_uintptr_t) (p)) macro
532 #define ACPI_ADD_PTR(t, a, b) ACPI_CAST_PTR (t, (ACPI_CAST_PTR (u8, (a)) + (acpi_size)(b)…
533 #define ACPI_PTR_DIFF(a, b) (acpi_size) (ACPI_CAST_PTR (u8, (a)) - ACPI_CAST_PTR (u8, (…
546 #define ACPI_COMPARE_NAME(a,b) (*ACPI_CAST_PTR (u32, (a)) == *ACPI_CAST_PTR (u32, (b)))
547 #define ACPI_MOVE_NAME(dest,src) (*ACPI_CAST_PTR (u32, (dest)) = *ACPI_CAST_PTR (u32, (src)))
549 #define ACPI_COMPARE_NAME(a,b) (!ACPI_STRNCMP (ACPI_CAST_PTR (char, (a)), ACPI_CAST_PTR (c…
550 #define ACPI_MOVE_NAME(dest,src) (ACPI_STRNCPY (ACPI_CAST_PTR (char, (dest)), ACPI_CAST_PTR
555 #define ACPI_VALIDATE_RSDP_SIG(a) (!ACPI_STRNCMP (ACPI_CAST_PTR (char, (a)), ACPI_SIG_RSDP, 8…
556 #define ACPI_MAKE_RSDP_SIG(dest) (ACPI_MEMCPY (ACPI_CAST_PTR (char, (dest)), ACPI_SIG_RSDP, …
/linux-4.1.27/tools/power/acpi/tools/acpidump/
Dapdump.c111 rsdp = ACPI_CAST_PTR(struct acpi_table_rsdp, table); in ap_is_valid_checksum()
148 rsdp = ACPI_CAST_PTR(struct acpi_table_rsdp, table); in ap_get_table_length()
202 ACPI_CAST_PTR(u8, table), table_length, in ap_dump_table_buffer()
/linux-4.1.27/tools/power/acpi/os_specific/service_layers/
Doslinuxtbl.c523 mapped_table = ACPI_CAST_PTR(struct acpi_table_header, in osl_load_rsdp()
602 ACPI_CAST_PTR(struct in osl_table_initialize()
619 ACPI_CAST_PTR(struct in osl_table_initialize()
635 ACPI_CAST_PTR(struct acpi_table_header *, in osl_table_initialize()