|
ReactOS 0.4.16-dev-2604-g747b3c0
|
#include <uacpi/types.h>#include <uacpi/internal/types.h>#include <uacpi/internal/stdlib.h>#include <uacpi/internal/shareable.h>#include <uacpi/internal/dynamic_array.h>#include <uacpi/internal/log.h>#include <uacpi/internal/namespace.h>#include <uacpi/internal/tables.h>#include <uacpi/kernel_api.h>
Go to the source code of this file.
Classes | |
| struct | pkg_copy_req |
Macros | |
| #define | TYPE_CHECK_USER_OBJ_RET(obj, type_bits, ret) |
| #define | TYPE_CHECK_USER_OBJ(obj, type_bits) TYPE_CHECK_USER_OBJ_RET(obj, type_bits, UACPI_STATUS_INVALID_ARGUMENT) |
| #define | ENSURE_VALID_USER_OBJ_RET(obj, ret) |
| #define | ENSURE_VALID_USER_OBJ(obj) ENSURE_VALID_USER_OBJ_RET(obj, UACPI_STATUS_INVALID_ARGUMENT) |
Typedefs | |
| typedef uacpi_bool(* | object_ctor) (uacpi_object *obj) |
Variables | |
| static object_ctor | object_constructor_table [UACPI_OBJECT_MAX_TYPE_VALUE+1] |
| #define ENSURE_VALID_USER_OBJ | ( | obj | ) | ENSURE_VALID_USER_OBJ_RET(obj, UACPI_STATUS_INVALID_ARGUMENT) |
| #define TYPE_CHECK_USER_OBJ | ( | obj, | |
| type_bits | |||
| ) | TYPE_CHECK_USER_OBJ_RET(obj, type_bits, UACPI_STATUS_INVALID_ARGUMENT) |
| typedef uacpi_bool(* object_ctor) (uacpi_object *obj) |
|
static |
Definition at line 791 of file types.c.
Referenced by uacpi_object_assign().
|
static |
Definition at line 915 of file types.c.
Referenced by uacpi_object_assign().
|
static |
Definition at line 897 of file types.c.
Referenced by uacpi_object_assign().
|
static |
Definition at line 931 of file types.c.
Referenced by uacpi_object_assign().
|
static |
Definition at line 95 of file types.c.
Referenced by buffer_alloc_and_store(), and empty_buffer_or_string_alloc().
|
static |
Definition at line 779 of file types.c.
Referenced by assign_buffer(), and uacpi_object_do_assign_buffer().
|
static |
Definition at line 875 of file types.c.
Referenced by assign_package().
|
static |
Definition at line 831 of file types.c.
Referenced by deep_copy_package().
|
static |
| DYNAMIC_ARRAY_WITH_INLINE_STORAGE_IMPL | ( | pkg_copy_reqs | , |
| struct pkg_copy_req | , | ||
| static | |||
| ) |
|
static |
|
static |
|
static |
Definition at line 207 of file types.c.
Referenced by assign_event().
|
static |
Definition at line 255 of file types.c.
|
static |
Definition at line 508 of file types.c.
Referenced by free_address_space_handlers(), and uacpi_address_space_handler_unref().
|
static |
Definition at line 514 of file types.c.
Referenced by free_handlers().
|
static |
Definition at line 351 of file types.c.
Referenced by free_object_storage(), and uacpi_object_do_assign_buffer().
|
static |
Definition at line 739 of file types.c.
Referenced by uacpi_object_unref().
|
static |
|
static |
Definition at line 529 of file types.c.
Referenced by free_handlers().
|
static |
|
static |
Definition at line 603 of file types.c.
Referenced by free_field_unit(), and free_object_storage().
|
static |
Definition at line 540 of file types.c.
Referenced by free_device(), free_processor(), and free_thermal_zone().
|
static |
Definition at line 635 of file types.c.
Referenced by uacpi_method_unref().
|
static |
Definition at line 484 of file types.c.
Referenced by free_method(), and uacpi_mutex_unref().
|
static |
Definition at line 707 of file types.c.
Referenced by free_chain(), and free_plain_no_recurse().
|
static |
Definition at line 653 of file types.c.
Referenced by free_object(), and uacpi_object_assign().
|
static |
Definition at line 555 of file types.c.
Referenced by free_object_storage().
|
static |
Definition at line 452 of file types.c.
Referenced by free_object_storage(), and uacpi_object_assign_package().
|
static |
Definition at line 384 of file types.c.
Referenced by unref_chain_no_recurse(), and unref_plain_no_recurse().
|
static |
Definition at line 589 of file types.c.
Referenced by free_object_storage().
|
static |
Definition at line 369 of file types.c.
Referenced by free_package(), and free_plain_no_recurse().
|
static |
Definition at line 596 of file types.c.
Referenced by free_object_storage().
|
static |
Definition at line 713 of file types.c.
Referenced by uacpi_object_attach_child().
|
static |
|
static |
|
static |
Definition at line 241 of file types.c.
|
static |
Definition at line 154 of file types.c.
Referenced by deep_copy_package_no_recurse(), empty_package_alloc(), and uacpi_object_assign_package().
|
static |
Definition at line 269 of file types.c.
|
static |
Definition at line 297 of file types.c.
| void uacpi_address_space_handler_unref | ( | uacpi_address_space_handler * | handler | ) |
Definition at line 548 of file types.c.
Referenced by region_uninstall_handler(), and uacpi_uninstall_address_space_handler().
| const uacpi_char * uacpi_address_space_to_string | ( | enum uacpi_address_space | space | ) |
Definition at line 11 of file types.c.
Referenced by gas_validate(), reg_or_unreg_all_opregions(), trace_region_io(), uacpi_reboot(), and uacpi_trace_region_error().
| void uacpi_buffer_to_view | ( | uacpi_buffer * | buf, |
| uacpi_data_view * | out_view | ||
| ) |
Definition at line 1034 of file types.c.
Referenced by extract_native_resources_from_method(), handle_concatenate_res(), and uacpi_object_do_get_string_or_buffer().
| struct uacpi_object * uacpi_create_internal_reference | ( | enum uacpi_reference_kind | kind, |
| uacpi_object * | child | ||
| ) |
Definition at line 1453 of file types.c.
Referenced by create_named_scope(), frame_push_args(), handle_arg_or_local(), handle_create_buffer_field(), handle_create_data_region(), handle_create_field(), handle_create_method(), handle_create_mutex_or_event(), handle_create_named(), handle_create_op_region(), handle_index(), and uacpi_initialize_namespace().
| uacpi_mutex * uacpi_create_mutex | ( | void | ) |
Definition at line 181 of file types.c.
Referenced by enter_method(), and mutex_alloc().
| uacpi_object * uacpi_create_object | ( | uacpi_object_type | type | ) |
Definition at line 327 of file types.c.
Referenced by copy_object_to_reference(), eval_sleep_helper(), exec_op(), handle_arg_or_local(), handle_copy_object_or_store(), handle_index(), handle_package(), make_object_for_predefined(), region_run_reg(), store_to_reference(), uacpi_create_internal_reference(), uacpi_eval(), uacpi_execute_control_method(), uacpi_native_resources_to_aml(), uacpi_object_create_integer(), uacpi_object_create_reference(), uacpi_object_create_uninitialized(), uacpi_object_do_create_string_or_buffer(), uacpi_package_fill(), and uacpi_set_interrupt_model().
| void uacpi_method_unref | ( | uacpi_control_method * | method | ) |
Definition at line 648 of file types.c.
Referenced by call_frame_clear(), free_object_storage(), and uacpi_eval().
| void uacpi_mutex_unref | ( | uacpi_mutex * | mutex | ) |
Definition at line 492 of file types.c.
Referenced by free_object_storage(), held_mutexes_array_remove_and_release(), and uacpi_deinitialize_namespace().
| uacpi_status uacpi_object_assign | ( | uacpi_object * | dst, |
| uacpi_object * | src, | ||
| enum uacpi_assign_behavior | behavior | ||
| ) |
Definition at line 1360 of file types.c.
Referenced by copy_object_to_reference(), deep_copy_package_no_recurse(), exec_op(), handle_package(), handle_ref_or_deref_of(), handle_return(), store_to_reference(), uacpi_eval(), uacpi_object_assign_integer(), uacpi_object_assign_package(), uacpi_object_assign_reference(), and uacpi_object_do_assign_buffer().
| uacpi_status uacpi_object_assign_buffer | ( | uacpi_object * | obj, |
| uacpi_data_view | in | ||
| ) |
Definition at line 1133 of file types.c.
| uacpi_status uacpi_object_assign_integer | ( | uacpi_object * | obj, |
| uacpi_u64 | value | ||
| ) |
Definition at line 1024 of file types.c.
| uacpi_status uacpi_object_assign_package | ( | uacpi_object * | obj, |
| uacpi_object_array | in | ||
| ) |
Definition at line 1313 of file types.c.
Referenced by uacpi_object_create_package().
| uacpi_status uacpi_object_assign_reference | ( | uacpi_object * | obj, |
| uacpi_object * | child | ||
| ) |
| uacpi_status uacpi_object_assign_string | ( | uacpi_object * | obj, |
| uacpi_data_view | in | ||
| ) |
| void uacpi_object_attach_child | ( | uacpi_object * | parent, |
| uacpi_object * | child | ||
| ) |
Definition at line 943 of file types.c.
Referenced by object_replace_child(), uacpi_create_internal_reference(), uacpi_object_assign(), uacpi_object_assign_reference(), and uacpi_object_create_reference().
| uacpi_object * uacpi_object_create_buffer | ( | uacpi_data_view | view | ) |
Definition at line 1214 of file types.c.
| uacpi_object * uacpi_object_create_cstring | ( | const uacpi_char * | str | ) |
Definition at line 1219 of file types.c.
| uacpi_object * uacpi_object_create_integer | ( | uacpi_u64 | value | ) |
Definition at line 1177 of file types.c.
Referenced by uacpi_object_create_integer_safe().
| uacpi_status uacpi_object_create_integer_safe | ( | uacpi_u64 | value, |
| uacpi_overflow_behavior | behavior, | ||
| uacpi_object ** | out_obj | ||
| ) |
Definition at line 1143 of file types.c.
| uacpi_object * uacpi_object_create_package | ( | uacpi_object_array | in | ) |
Definition at line 1342 of file types.c.
| uacpi_object * uacpi_object_create_reference | ( | uacpi_object * | child | ) |
| uacpi_object * uacpi_object_create_string | ( | uacpi_data_view | view | ) |
Definition at line 1209 of file types.c.
Referenced by uacpi_object_create_cstring().
| uacpi_object * uacpi_object_create_uninitialized | ( | void | ) |
Definition at line 1138 of file types.c.
Referenced by uacpi_object_create_package().
| void uacpi_object_detach_child | ( | uacpi_object * | parent | ) |
Definition at line 959 of file types.c.
Referenced by object_replace_child(), and uacpi_object_assign().
|
static |
Definition at line 1098 of file types.c.
Referenced by uacpi_object_assign_buffer(), uacpi_object_assign_string(), and uacpi_object_do_create_string_or_buffer().
|
static |
Definition at line 1189 of file types.c.
Referenced by uacpi_object_create_buffer(), and uacpi_object_create_string().
|
static |
Definition at line 1040 of file types.c.
Referenced by uacpi_object_get_buffer(), uacpi_object_get_string(), and uacpi_object_get_string_or_buffer().
| uacpi_status uacpi_object_get_buffer | ( | uacpi_object * | obj, |
| uacpi_data_view * | out | ||
| ) |
Definition at line 1066 of file types.c.
| uacpi_status uacpi_object_get_dereferenced | ( | uacpi_object * | obj, |
| uacpi_object ** | out | ||
| ) |
| uacpi_status uacpi_object_get_integer | ( | uacpi_object * | obj, |
| uacpi_u64 * | out | ||
| ) |
| uacpi_status uacpi_object_get_package | ( | uacpi_object * | obj, |
| uacpi_object_array * | out | ||
| ) |
| uacpi_status uacpi_object_get_power_resource_info | ( | uacpi_object * | obj, |
| uacpi_power_resource_info * | out | ||
| ) |
| uacpi_status uacpi_object_get_processor_info | ( | uacpi_object * | obj, |
| uacpi_processor_info * | out | ||
| ) |
| uacpi_status uacpi_object_get_string | ( | uacpi_object * | obj, |
| uacpi_data_view * | out | ||
| ) |
| uacpi_status uacpi_object_get_string_or_buffer | ( | uacpi_object * | obj, |
| uacpi_data_view * | out | ||
| ) |
Definition at line 1050 of file types.c.
Referenced by uacpi_dispatch_opregion_io().
| uacpi_object_type uacpi_object_get_type | ( | uacpi_object * | obj | ) |
| uacpi_object_type_bits uacpi_object_get_type_bit | ( | uacpi_object * | obj | ) |
Definition at line 980 of file types.c.
Referenced by uacpi_object_is_one_of().
| uacpi_bool uacpi_object_is | ( | uacpi_object * | obj, |
| uacpi_object_type | type | ||
| ) |
Definition at line 985 of file types.c.
Referenced by object_mutate_refcount(), and object_replace_child().
| uacpi_bool uacpi_object_is_aml_namepath | ( | uacpi_object * | obj | ) |
Definition at line 1073 of file types.c.
Referenced by uacpi_object_resolve_as_aml_namepath().
| uacpi_bool uacpi_object_is_one_of | ( | uacpi_object * | obj, |
| uacpi_object_type_bits | type_mask | ||
| ) |
Definition at line 990 of file types.c.
Referenced by uacpi_namespace_node_acquire_object_typed(), uacpi_namespace_node_get_object_typed(), and uacpi_namespace_node_is_one_of_unlocked().
| void uacpi_object_ref | ( | uacpi_object * | obj | ) |
Definition at line 727 of file types.c.
Referenced by exec_op(), handle_arg_or_local(), handle_create_alias(), handle_create_field(), handle_index(), handle_load_table(), handle_named_object(), handle_ref_or_deref_of(), prepare_method_call(), uacpi_dispatch_opregion_io(), uacpi_execute_control_method(), uacpi_namespace_node_acquire_object_typed(), uacpi_namespace_node_reacquire_object(), uacpi_notify_all(), uacpi_object_assign_package(), uacpi_object_attach_child(), and uacpi_opregion_attach().
| uacpi_status uacpi_object_resolve_as_aml_namepath | ( | uacpi_object * | obj, |
| uacpi_namespace_node * | scope, | ||
| uacpi_namespace_node ** | out_node | ||
| ) |
Definition at line 1079 of file types.c.
Referenced by uacpi_get_pci_routing_table().
| const uacpi_char * uacpi_object_type_to_string | ( | uacpi_object_type | type | ) |
Definition at line 51 of file types.c.
Referenced by debug_store_no_recurse(), ensure_is_a_field_unit(), ensure_is_an_op_region(), ensure_valid_idx(), exec_op(), get_slp_type_for_state(), handle_binary_logic(), handle_event_ctl(), handle_inc_dec(), handle_index(), handle_load(), handle_mid(), handle_mutex_ctl(), handle_ref_or_deref_of(), handle_sizeof(), object_assign_with_implicit_cast(), store_to_target(), typecheck_computational_data(), typecheck_obj(), uacpi_eval_cid(), uacpi_get_pci_routing_table(), and uacpi_osi().
| void uacpi_object_unref | ( | uacpi_object * | obj | ) |
Definition at line 755 of file types.c.
Referenced by call_frame_clear(), copy_object_to_reference(), eval_sleep_helper(), exec_op(), execution_context_release(), extract_native_resources_from_method(), free_field_unit(), get_slp_type_for_state(), handle_arg_or_local(), handle_copy_object_or_store(), handle_index(), handle_load_table(), handle_package(), make_object_for_predefined(), namespace_node_detach_object(), pop_item(), region_run_reg(), store_to_reference(), uacpi_deinitialize_namespace(), uacpi_dispatch_opregion_io(), uacpi_eval(), uacpi_eval_cid(), uacpi_eval_cls(), uacpi_eval_dstate_method_template(), uacpi_eval_hid(), uacpi_eval_integer(), uacpi_eval_typed(), uacpi_eval_uid(), uacpi_get_pci_routing_table(), uacpi_initialize_namespace(), uacpi_install_notify_handler(), uacpi_namespace_node_release_object(), uacpi_native_resources_to_aml(), uacpi_object_create_package(), uacpi_object_detach_child(), uacpi_object_do_create_string_or_buffer(), uacpi_opregion_attach(), uacpi_set_interrupt_model(), uacpi_set_resources(), and uacpi_uninstall_notify_handler().
| uacpi_bool uacpi_package_fill | ( | uacpi_package * | pkg, |
| uacpi_size | num_elements, | ||
| enum uacpi_prealloc_objects | prealloc_objects | ||
| ) |
Definition at line 124 of file types.c.
Referenced by handle_package(), and package_alloc().
| uacpi_object * uacpi_unwrap_internal_reference | ( | uacpi_object * | object | ) |
Definition at line 1468 of file types.c.
Referenced by copy_object_to_reference(), debug_store(), exec_op(), handle_event_ctl(), handle_mutex_ctl(), handle_package(), method_get_ret_object(), store_to_reference(), store_to_target(), uacpi_namespace_node_get_object(), and uacpi_osi().
|
static |
Definition at line 419 of file types.c.
Referenced by unref_object_no_recurse().
|
static |
Definition at line 442 of file types.c.
Referenced by free_package().
|
static |
Definition at line 411 of file types.c.
Referenced by unref_object_no_recurse().
|
static |
Definition at line 313 of file types.c.
Referenced by uacpi_create_object().