Home
last modified time | relevance | path

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

/linux-4.4.14/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()
340 ACPI_CAST_PTR(char, in acpi_ns_search_and_enter()
402 ACPI_CAST_PTR(char, &target_name), node)); in acpi_ns_search_and_enter()
Drsdump.c179 prt_element = ACPI_CAST_PTR(struct acpi_pci_routing_table, route_table); in acpi_rs_dump_irq_list()
238 ACPI_CAST_PTR(char, table->pointer)); in acpi_rs_dump_descriptor()
243 acpi_rs_out_string(name, ACPI_CAST_PTR(char, target)); in acpi_rs_dump_descriptor()
251 acpi_rs_out_string(name, ACPI_CAST_PTR(char, in acpi_rs_dump_descriptor()
279 acpi_rs_out_string(name, ACPI_CAST_PTR(char, in acpi_rs_dump_descriptor()
287 acpi_rs_out_string(name, ACPI_CAST_PTR(char, in acpi_rs_dump_descriptor()
295 acpi_rs_out_string(name, ACPI_CAST_PTR(char, in acpi_rs_dump_descriptor()
346 ACPI_CAST_PTR(u32, in acpi_rs_dump_descriptor()
367 acpi_rs_dump_address_common(ACPI_CAST_PTR in acpi_rs_dump_descriptor()
376 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()
367 (u32)strlen(ACPI_CAST_PTR(char, &aml_resource_source[1])) + in acpi_rs_get_resource_source()
377 ACPI_CAST_PTR(char, in acpi_rs_get_resource_source()
434 strcpy(ACPI_CAST_PTR(char, &aml_resource_source[1]), in acpi_rs_set_resource_source()
682 acpi_ut_evaluate_object(ACPI_CAST_PTR in acpi_rs_get_method_data()
Dtbprint.c142 ACPI_CAST_PTR(struct acpi_table_rsdp, header)->oem_id, 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()
347 return (ACPI_CAST_PTR(char, in acpi_ut_get_descriptor_name()
Ddbcmds.c383 status = acpi_unload_parent_table(ACPI_CAST_PTR(acpi_handle, node)); in acpi_db_unload_acpi_table()
569 acpi_rs_dump_resource_list(ACPI_CAST_PTR(struct acpi_resource, in acpi_db_display_template()
800 node = ACPI_CAST_PTR(struct acpi_namespace_node, obj_handle); in acpi_db_device_resources()
809 ACPI_CAST_PTR(acpi_handle, &prt_node)); in acpi_db_device_resources()
811 ACPI_CAST_PTR(acpi_handle, &crs_node)); in acpi_db_device_resources()
813 ACPI_CAST_PTR(acpi_handle, &prs_node)); in acpi_db_device_resources()
815 ACPI_CAST_PTR(acpi_handle, &aei_node)); in acpi_db_device_resources()
851 acpi_rs_dump_irq_list(ACPI_CAST_PTR(u8, acpi_gbl_db_buffer)); in acpi_db_device_resources()
906 acpi_rs_dump_resource_list(ACPI_CAST_PTR(struct acpi_resource, in acpi_db_device_resources()
959 acpi_rs_dump_resource_list(ACPI_CAST_PTR in acpi_db_device_resources()
[all …]
Dutglobal.c112 {"_REV", ACPI_TYPE_INTEGER, ACPI_CAST_PTR(char, 2)},
114 {"_GL_", ACPI_TYPE_MUTEX, ACPI_CAST_PTR(char, 1)},
117 {"_OSI", ACPI_TYPE_METHOD, ACPI_CAST_PTR(char, 1)},
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()
Dexconfig.c242 ACPI_CAST_PTR(union acpi_operand_object, in acpi_ex_load_table_op()
381 ACPI_CAST_PTR(u8, table_header)); in acpi_ex_load_op()
421 ACPI_CAST_PTR(u8, table)); in acpi_ex_load_op()
443 ACPI_CAST_PTR(struct acpi_table_header, in acpi_ex_load_op()
Dnseval.c117 ACPI_CAST_PTR(struct acpi_namespace_node, in acpi_ns_evaluate()
268 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()
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 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.c430 *ACPI_CAST_PTR(void *, target)); in acpi_ex_dump_object()
464 ACPI_CAST_PTR(char, reference_name)); in acpi_ex_dump_object()
470 start = *ACPI_CAST_PTR(void *, target); in acpi_ex_dump_object()
504 start = *ACPI_CAST_PTR(void *, target); in acpi_ex_dump_object()
538 start = *ACPI_CAST_PTR(void *, target); in acpi_ex_dump_object()
573 *ACPI_CAST_PTR(struct acpi_namespace_node *, in acpi_ex_dump_object()
974 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()
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()
448 next_id_string = ACPI_CAST_PTR(char, info->compatible_id_list.ids); in acpi_get_object_info()
556 ACPI_CAST_PTR(struct acpi_table_header, buffer); in ACPI_EXPORT_SYMBOL()
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()
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()
Dtbutils.c215 (*ACPI_CAST_PTR(u32, table_entry))); in acpi_tb_get_root_table_entry()
279 ACPI_CAST_PTR(struct acpi_table_header, in acpi_tb_parse_root_table()
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()
Dutdebug.c125 if (*(ACPI_CAST_PTR(u32, function_name)) == ACPI_PREFIX_MIXED) { in acpi_ut_trim_function_name()
132 if (*(ACPI_CAST_PTR(u32, function_name)) == ACPI_PREFIX_LOWER) { in acpi_ut_trim_function_name()
Dexregion.c520 memcpy(ACPI_CAST_PTR(char, value), in acpi_ex_data_table_space_handler()
527 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))
Dexresolv.c339 union acpi_operand_object *obj_desc = ACPI_CAST_PTR(void, operand); in acpi_ex_resolve_multiple()
341 ACPI_CAST_PTR(struct acpi_namespace_node, operand); in acpi_ex_resolve_multiple()
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.c400 op->named.path = ACPI_CAST_PTR(u8, path); in acpi_ds_load1_begin_op()
542 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()
Dtbxfroot.c277 acpi_tb_validate_rsdp(ACPI_CAST_PTR in acpi_tb_scan_memory_for_rsdp()
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()
Dnsutils.c578 return (ACPI_CAST_PTR(struct acpi_namespace_node, handle)); in acpi_ns_validate_handle()
693 ACPI_FUNCTION_TRACE_PTR(ns_get_node, ACPI_CAST_PTR(char, pathname)); in acpi_ns_get_node()
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()
Ddbtest.c283 node = ACPI_CAST_PTR(struct acpi_namespace_node, obj_handle); in acpi_db_test_one_object()
775 params[0].reference.handle = ACPI_CAST_PTR(acpi_handle, node); in acpi_db_read_from_object()
854 params[0].reference.handle = ACPI_CAST_PTR(acpi_handle, node); in acpi_db_write_to_object()
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.c236 acpi_gbl_lowest_stack_pointer = ACPI_CAST_PTR(acpi_size, ACPI_SIZE_MAX); in acpi_ut_init_globals()
Dutfileio.c248 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()
Ddbutils.c176 acpi_ut_debug_dump_buffer(ACPI_CAST_PTR in acpi_db_dump_external_object()
Dtbxfload.c360 ACPI_CAST_PTR(struct acpi_namespace_node, object); in ACPI_EXPORT_SYMBOL()
Ddbdisply.c611 status = acpi_get_object_info(ACPI_CAST_PTR(acpi_handle, node), &info); in acpi_db_display_object_type()
1072 ACPI_CAST_PTR(struct acpi_namespace_node, obj_handle); in acpi_db_display_non_root_handlers()
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.c491 u32 *buffer = ACPI_CAST_PTR(u32, in_buffer); in ACPI_EXPORT_SYMBOL()
Dutids.c378 next_id_string = ACPI_CAST_PTR(char, cid_list->ids) + in acpi_ut_execute_CID()
Dnsaccess.c638 ACPI_CAST_PTR(char, &simple_name), in acpi_ns_lookup()
Ddbconvert.c364 return (ACPI_CAST_PTR(u8, buffer)); in acpi_db_encode_pld_buffer()
Dexfield.c215 ACPI_CAST_PTR(u64, in acpi_ex_read_data_from_field()
Dpsloop.c368 ACPI_CAST_PTR(union acpi_operand_object, parent_node); in acpi_ps_link_module_code()
Dpsparse.c690 acpi_ut_delete_generic_state(ACPI_CAST_PTR in acpi_ps_parse_aml()
Devregion.c683 info = ACPI_CAST_PTR(struct acpi_reg_walk_info, context); in acpi_ev_reg_run()
Ddbexec.c473 ((ACPI_CAST_PTR in acpi_db_execute()
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()
Ddbnames.c860 ACPI_CAST_PTR(acpi_handle, &temp_node)); in acpi_db_bus_walk()
Dnsrepair2.c325 ACPI_CAST_PTR(u32, buffer_object->buffer.pointer); in acpi_ns_repair_FDE()
/linux-4.4.14/include/acpi/
Dactypes.h525 #define ACPI_CAST_PTR(t, p) ((t *) (acpi_uintptr_t) (p)) macro
527 #define ACPI_ADD_PTR(t, a, b) ACPI_CAST_PTR (t, (ACPI_CAST_PTR (u8, (a)) + (acpi_size)(b)…
528 #define ACPI_SUB_PTR(t, a, b) ACPI_CAST_PTR (t, (ACPI_CAST_PTR (u8, (a)) - (acpi_size)(b)…
529 #define ACPI_PTR_DIFF(a, b) (acpi_size) (ACPI_CAST_PTR (u8, (a)) - ACPI_CAST_PTR (u8, (…
542 #define ACPI_COMPARE_NAME(a,b) (*ACPI_CAST_PTR (u32, (a)) == *ACPI_CAST_PTR (u32, (b)))
543 #define ACPI_MOVE_NAME(dest,src) (*ACPI_CAST_PTR (u32, (dest)) = *ACPI_CAST_PTR (u32, (src)))
545 #define ACPI_COMPARE_NAME(a,b) (!strncmp (ACPI_CAST_PTR (char, (a)), ACPI_CAST_PTR (char, …
546 #define ACPI_MOVE_NAME(dest,src) (strncpy (ACPI_CAST_PTR (char, (dest)), ACPI_CAST_PTR (char…
551 #define ACPI_VALIDATE_RSDP_SIG(a) (!strncmp (ACPI_CAST_PTR (char, (a)), ACPI_SIG_RSDP, 8))
552 #define ACPI_MAKE_RSDP_SIG(dest) (memcpy (ACPI_CAST_PTR (char, (dest)), ACPI_SIG_RSDP, 8))
/linux-4.4.14/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.4.14/tools/power/acpi/os_specific/service_layers/
Doslinuxtbl.c523 mapped_table = ACPI_CAST_PTR(struct acpi_table_header, in osl_load_rsdp()
604 ACPI_CAST_PTR(struct in osl_table_initialize()
622 ACPI_CAST_PTR(struct in osl_table_initialize()
639 ACPI_CAST_PTR(struct in osl_table_initialize()