Projectname
large_stringclasses
15 values
Filepath
large_stringlengths
4
106
⌀
Function
large_stringlengths
11
3.45k
Label
list
Linux Kernel
drivers/acpi/acpica/hwxface.c
acpi_status acpi_write(u64 value, struct acpi_generic_address *reg) { acpi_status status; ACPI_FUNCTION_NAME(acpi_write); status = acpi_hw_write(value, reg); return (status); }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/hwxface.c
acpi_status acpi_read_bit_register(u32 register_id, u32 *return_value) { struct acpi_bit_register_info *bit_reg_info; u32 register_value; u32 value; acpi_status status; ACPI_FUNCTION_TRACE_U32(acpi_read_bit_register, register_id); bit_reg_info = acpi_hw_get_bit_register_info(register_id); if (!bit_reg_i...
[ 1, 0 ]
Linux Kernel
drivers/acpi/acpica/nsalloc.c
void acpi_ns_remove_node(struct acpi_namespace_node *node) { struct acpi_namespace_node *parent_node; struct acpi_namespace_node *prev_node; struct acpi_namespace_node *next_node; ACPI_FUNCTION_TRACE_PTR(ns_remove_node, node); parent_node = node->parent; prev_node = NULL; next_node = parent_node->child...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nsalloc.c
void acpi_ns_delete_children(struct acpi_namespace_node *parent_node) { struct acpi_namespace_node *next_node; struct acpi_namespace_node *node_to_delete; ACPI_FUNCTION_TRACE_PTR(ns_delete_children, parent_node); if (!parent_node) { return_VOID; } next_node = parent_node->child; while (next_node) {...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nsconvert.c
acpi_status acpi_ns_convert_to_reference(struct acpi_namespace_node *scope, union acpi_operand_object *original_object, union acpi_operand_object **return_object) { union acpi_operand_object *new_object = NULL; acpi_status status; struct acpi_namespace_nod...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nsdump.c
void acpi_ns_dump_pathname(acpi_handle handle, const char *msg, u32 level, u32 component) { ACPI_FUNCTION_TRACE(ns_dump_pathname); if (!ACPI_IS_DEBUG_ENABLED(level, component)) { return_VOID; } /* Convert handle to a full pathname and print it (with supplied message) */ acpi...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nsdump.c
static acpi_status acpi_ns_dump_one_object_path(acpi_handle obj_handle, u32 level, void *context, void **return_value) { u32 max_level = *((u32 *)context); char *pathname; struct acpi_namespace_node *node; int path_i...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nsdump.c
static acpi_status acpi_ns_get_max_depth(acpi_handle obj_handle, u32 level, void *context, void **return_value) { u32 *max_level = (u32 *)context; if (level > *max_level) { *max_level = level; } return (AE_OK); }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nsdump.c
void acpi_ns_dump_object_paths(acpi_object_type type, u8 display_type, u32 max_depth, acpi_owner_id owner_id, acpi_handle start_handle) { acpi_status status; u32 max_level = 0; ACPI_FUNCTION_ENTRY(); status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPAC...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nsload.c
static acpi_status acpi_ns_delete_subtree(acpi_handle start_handle) { acpi_status status; acpi_handle child_handle; acpi_handle parent_handle; acpi_handle next_child_handle; acpi_handle dummy; u32 level; ACPI_FUNCTION_TRACE(ns_delete_subtree); parent_handle = start_handle; child_handle = NULL; lev...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nsnames.c
char *acpi_ns_get_external_pathname(struct acpi_namespace_node *node) { char *name_buffer; ACPI_FUNCTION_TRACE_PTR(ns_get_external_pathname, node); name_buffer = acpi_ns_get_normalized_pathname(node, FALSE); return_PTR(name_buffer); }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nsnames.c
acpi_status acpi_ns_handle_to_name(acpi_handle target_handle, struct acpi_buffer *buffer) { acpi_status status; struct acpi_namespace_node *node; const char *node_name; ACPI_FUNCTION_TRACE_PTR(ns_handle_to_name, target_handle); node = acpi_ns_validate_handle(target_handle)...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nsnames.c
char *acpi_ns_build_prefixed_pathname(union acpi_generic_state *prefix_scope, const char *internal_path) { acpi_status status; char *full_path = NULL; char *external_path = NULL; char *prefix_path = NULL; acpi_size prefix_path_length = 0; if (prefix_scope && prefix_sco...
[ 1, 0 ]
Linux Kernel
drivers/acpi/acpica/nsobject.c
union acpi_operand_object * acpi_ns_get_secondary_object(union acpi_operand_object *obj_desc) { ACPI_FUNCTION_TRACE_PTR(ns_get_secondary_object, obj_desc); if ((!obj_desc) || (obj_desc->common.type == ACPI_TYPE_LOCAL_DATA) || (!obj_desc->common.next_object) || ((obj_desc->common.next_object)->common.ty...
[ 1, 0 ]
Linux Kernel
drivers/acpi/acpica/nsobject.c
acpi_status acpi_ns_attach_data(struct acpi_namespace_node *node, acpi_object_handler handler, void *data) { union acpi_operand_object *prev_obj_desc; union acpi_operand_object *obj_desc; union acpi_operand_object *data_desc; prev_obj_desc = NULL; obj_desc = node->object; wh...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nspredef.c
static acpi_status acpi_ns_check_reference(struct acpi_evaluate_info *info, union acpi_operand_object *return_object) { if (return_object->reference.class == ACPI_REFCLASS_NAME) { return (AE_OK); } ACPI_WARN_PREDEFINED( (AE_INFO, info->full_pathname, info->node_flags, "R...
[ 1, 0 ]
Linux Kernel
drivers/acpi/acpica/nspredef.c
static u32 acpi_ns_get_bitmapped_type(union acpi_operand_object *return_object) { u32 return_btype; if (!return_object) { return (ACPI_RTYPE_NONE); } switch (return_object->common.type) { case ACPI_TYPE_INTEGER: return_btype = ACPI_RTYPE_INTEGER; break; case ACPI_TYPE_BUFFER: return_bty...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nsrepair.c
acpi_status acpi_ns_repair_null_element(struct acpi_evaluate_info *info, u32 expected_btypes, u32 package_index, union acpi_operand_object **return_object_ptr) { union acpi_operand_object *return_object = *return_object_ptr; union acpi_operand_object *new_obje...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nsrepair2.c
static acpi_status acpi_ns_repair_ALR(struct acpi_evaluate_info *info, union acpi_operand_object **return_object_ptr) { union acpi_operand_object *return_object = *return_object_ptr; acpi_status status; status = acpi_ns_check_sorted_list(info, return_object, 0, 2, 1, ...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nssearch.c
static acpi_status acpi_ns_search_parent_tree(u32 target_name, struct acpi_namespace_node *node, acpi_object_type type, struct acpi_namespace_node **return_node) { acpi_status status; struct acpi_namespace_node *parent_node; ACPI_FUNCTION_TRACE(ns_search_pare...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nsutils.c
void acpi_ns_print_node_pathname(struct acpi_namespace_node *node, const char *message) { struct acpi_buffer buffer; acpi_status status; if (!node) { acpi_os_printf("[NULL NAME]"); return; } buffer.length = ACPI_ALLOCATE_LOCAL_BUFFER; status = acpi_ns_handle_to_pa...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nsutils.c
void acpi_ns_get_internal_name_length(struct acpi_namestring_info *info) { const char *next_external_char; u32 i; ACPI_FUNCTION_ENTRY(); next_external_char = info->external_name; info->num_carats = 0; info->num_segments = 0; info->fully_qualified = FALSE; if (ACPI_IS_ROOT_PREFIX(*next_external_char))...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nsutils.c
void acpi_ns_terminate(void) { acpi_status status; ACPI_FUNCTION_TRACE(ns_terminate); acpi_ns_delete_namespace_subtree(acpi_gbl_root_node); /* Delete any objects attached to the root node */ status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); if (ACPI_FAILURE(status)) { return_VOID; } acpi_ns_d...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nsutils.c
u32 acpi_ns_opens_scope(acpi_object_type type) { ACPI_FUNCTION_ENTRY(); if (type > ACPI_TYPE_LOCAL_MAX) { ACPI_WARNING((AE_INFO, "Invalid Object Type 0x%X", type)); return (ACPI_NS_NORMAL); } return (((u32)acpi_gbl_ns_properties[type]) & ACPI_NS_NEWSCOPE); }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nswalk.c
struct acpi_namespace_node * acpi_ns_get_next_node(struct acpi_namespace_node *parent_node, struct acpi_namespace_node *child_node) { ACPI_FUNCTION_ENTRY(); if (!child_node) { return (parent_node->child); } /* Otherwise just return the next peer */ return (child_node->peer); }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nsxfeval.c
static void acpi_ns_resolve_references(struct acpi_evaluate_info *info) { union acpi_operand_object *obj_desc = NULL; struct acpi_namespace_node *node; if ((info->return_object)->common.type != ACPI_TYPE_LOCAL_REFERENCE) { return; } /* * Two types of references are supported - those created by Index ...
[ 1, 0 ]
Linux Kernel
drivers/acpi/acpica/nsxfname.c
acpi_status acpi_get_handle(acpi_handle parent, acpi_string pathname, acpi_handle *ret_handle) { acpi_status status; struct acpi_namespace_node *node = NULL; struct acpi_namespace_node *prefix_node = NULL; ACPI_FUNCTION_ENTRY(); if (!ret_handle || !pathname) { return (AE_BAD_...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nsxfname.c
acpi_status acpi_get_name(acpi_handle handle, u32 name_type, struct acpi_buffer *buffer) { acpi_status status; if (name_type > ACPI_NAME_TYPE_MAX) { return (AE_BAD_PARAMETER); } status = acpi_ut_validate_buffer(buffer); if (ACPI_FAILURE(status)) { return (status); } /*...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/nsxfobj.c
acpi_status acpi_get_next_object(acpi_object_type type, acpi_handle parent, acpi_handle child, acpi_handle *ret_handle) { acpi_status status; struct acpi_namespace_node *node; struct acpi_namespace_node *parent_node = NULL; struct acpi_namespace_node *child_node = NULL; if (t...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/psopinfo.c
const char *acpi_ps_get_opcode_name(u16 opcode) { #if defined(ACPI_DISASSEMBLER) || defined(ACPI_DEBUG_OUTPUT) const struct acpi_opcode_info *op; op = acpi_ps_get_opcode_info(opcode); return (op->name); #else return ("OpcodeName unavailable"); #endif }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/psscope.c
void acpi_ps_cleanup_scope(struct acpi_parse_state *parser_state) { union acpi_generic_state *scope; ACPI_FUNCTION_TRACE_PTR(ps_cleanup_scope, parser_state); if (!parser_state) { return_VOID; } while (parser_state->scope) { scope = acpi_ut_pop_generic_state(&parser_state->scope); acpi_ut_delete...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/pstree.c
union acpi_parse_object *acpi_ps_get_arg(union acpi_parse_object *op, u32 argn) { union acpi_parse_object *arg = NULL; const struct acpi_opcode_info *op_info; ACPI_FUNCTION_ENTRY(); /* Get the info structure for this opcode */ op_info = acpi_ps_get_opcode_info(op->c...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/psutils.c
void acpi_ps_set_name(union acpi_parse_object *op, u32 name) { if (op->common.flags & ACPI_PARSEOP_GENERIC) { return; } op->named.name = name; }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/rsaddr.c
void acpi_rs_set_address_common(union aml_resource *aml, struct acpi_resource *resource) { ACPI_FUNCTION_ENTRY(); (void)acpi_rs_convert_resource_to_aml(resource, aml, acpi_rs_convert_general_flags); /* Set the Type-Specific Flags (Memory an...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/rscreate.c
acpi_status acpi_rs_create_aml_resources(struct acpi_buffer *resource_list, struct acpi_buffer *output_buffer) { acpi_status status; acpi_size aml_size_needed = 0; ACPI_FUNCTION_TRACE(rs_create_aml_resources); ACPI_DEBUG_PRINT( (ACPI_DB_INFO, "ResourceList Buffer...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/rsdump.c
void acpi_rs_dump_resource_list(struct acpi_resource *resource_list) { u32 count = 0; u32 type; ACPI_FUNCTION_ENTRY(); if (!ACPI_IS_DEBUG_ENABLED(ACPI_LV_RESOURCES, _COMPONENT)) { return; } /* Walk list and dump all resource descriptors (END_TAG terminates) */ do { acpi_os_printf("\n[%02X] ", ...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/rsdump.c
static void acpi_rs_out_string(const char *title, const char *value) { acpi_os_printf("%27s : %s", title, value); if (!*value) { acpi_os_printf("[NULL NAMESTRING]"); } acpi_os_printf("\n"); }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/rsdump.c
static void acpi_rs_dump_byte_list(u16 length, u8 *data) { u16 i; for (i = 0; i < length; i++) { acpi_os_printf("%25s%2.2X : %2.2X\n", "Byte", i, data[i]); } }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/rsutils.c
u16 acpi_rs_encode_bitmask(u8 *list, u8 count) { u32 i; u16 mask; ACPI_FUNCTION_ENTRY(); for (i = 0, mask = 0; i < count; i++) { mask |= (0x1 << list[i]); } return (mask); }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/rsutils.c
static u16 acpi_rs_strcpy(char *destination, char *source) { u16 i; ACPI_FUNCTION_ENTRY(); for (i = 0; source[i]; i++) { destination[i] = source[i]; } destination[i] = 0; return ((u16)(i + 1)); }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/rsutils.c
acpi_status acpi_rs_get_aei_method_data(struct acpi_namespace_node *node, struct acpi_buffer *ret_buffer) { union acpi_operand_object *obj_desc; acpi_status status; ACPI_FUNCTION_TRACE(rs_get_aei_method_data); /* Execute the method, no parameters */ status = acpi_ut_...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/rsutils.c
acpi_status acpi_rs_get_method_data(acpi_handle handle, const char *path, struct acpi_buffer *ret_buffer) { union acpi_operand_object *obj_desc; acpi_status status; ACPI_FUNCTION_TRACE(rs_get_method_data); /* Execute the method, no parameters */ status = acpi_ut_ev...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/rsxface.c
acpi_status acpi_get_irq_routing_table(acpi_handle device_handle, struct acpi_buffer *ret_buffer) { acpi_status status; struct acpi_namespace_node *node; ACPI_FUNCTION_TRACE(acpi_get_irq_routing_table); status = acpi_rs_validate_parameters(device_handle, ret_buffer, &nod...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/rsxface.c
acpi_status acpi_get_current_resources(acpi_handle device_handle, struct acpi_buffer *ret_buffer) { acpi_status status; struct acpi_namespace_node *node; ACPI_FUNCTION_TRACE(acpi_get_current_resources); status = acpi_rs_validate_parameters(device_handle, ret_buffer, &nod...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/rsxface.c
acpi_status acpi_walk_resource_buffer(struct acpi_buffer *buffer, acpi_walk_resource_callback user_function, void *context) { acpi_status status = AE_OK; struct acpi_resource *resource; struct acpi_resource *resource_end; ACPI_FUNCTION...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/tbdata.c
acpi_status acpi_tb_acquire_temp_table(struct acpi_table_desc *table_desc, acpi_physical_address address, u8 flags, struct acpi_table_header *table) { u8 mapped_table = FALSE; switch (flags & ACPI_TABLE_ORIGIN_MASK) { case ACPI_TABLE_O...
[ 1, 0 ]
Linux Kernel
drivers/acpi/acpica/tbdata.c
acpi_status acpi_tb_validate_table(struct acpi_table_desc *table_desc) { acpi_status status = AE_OK; ACPI_FUNCTION_TRACE(tb_validate_table); if (!table_desc->pointer) { status = acpi_tb_acquire_table(table_desc, &table_desc->pointer, &table_desc->length, &table_desc->flags...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/tbdata.c
void acpi_tb_invalidate_table(struct acpi_table_desc *table_desc) { ACPI_FUNCTION_TRACE(tb_invalidate_table); if (!table_desc->pointer) { return_VOID; } acpi_tb_release_table(table_desc->pointer, table_desc->length, table_desc->flags); switch (table_desc->flags & ACPI_TABLE_ORI...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/tbdata.c
static acpi_status acpi_tb_check_duplication(struct acpi_table_desc *table_desc, u32 *table_index) { u32 i; ACPI_FUNCTION_TRACE(tb_check_duplication); for (i = 0; i < acpi_gbl_root_table_list.current_table_count; ++i) { /* Do not compare with unverified tables *...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/tbdata.c
acpi_status acpi_tb_delete_namespace_by_owner(u32 table_index) { acpi_owner_id owner_id; acpi_status status; ACPI_FUNCTION_TRACE(tb_delete_namespace_by_owner); status = acpi_ut_acquire_mutex(ACPI_MTX_TABLES); if (ACPI_FAILURE(status)) { return_ACPI_STATUS(status); } if (table_index >= acpi_gbl_root...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/tbdata.c
acpi_status acpi_tb_release_owner_id(u32 table_index) { acpi_status status = AE_BAD_PARAMETER; ACPI_FUNCTION_TRACE(tb_release_owner_id); (void)acpi_ut_acquire_mutex(ACPI_MTX_TABLES); if (table_index < acpi_gbl_root_table_list.current_table_count) { acpi_ut_release_owner_id( &(acpi_gbl_root_table_l...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/tbfadt.c
static u64 acpi_tb_select_address(char *register_name, u32 address32, u64 address64) { if (!address64) { return ((u64)address32); } if (address32 && (address64 != (u64)address32)) { /* Address mismatch between 32-bit and 64-bit versions */ ACPI_BIOS_WARNING((AE_I...
[ 1, 0 ]
Linux Kernel
drivers/acpi/acpica/tbprint.c
static void acpi_tb_fix_string(char *string, acpi_size length) { while (length && *string) { if (!isprint((int)(u8)*string)) { *string = '?'; } string++; length--; } }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/tbprint.c
void acpi_tb_print_table_header(acpi_physical_address address, struct acpi_table_header *header) { struct acpi_table_header local_header; if (ACPI_COMPARE_NAMESEG(header->signature, ACPI_SIG_FACS)) { ACPI_INFO(("%-4.4s 0x%8.8X%8.8X %06X", header->signature, ACPI_...
[ 1, 0 ]
Linux Kernel
drivers/acpi/acpica/tbxfload.c
acpi_status ACPI_INIT_FUNCTION acpi_install_physical_table(acpi_physical_address address) { acpi_status status; u32 table_index; ACPI_FUNCTION_TRACE(acpi_install_physical_table); status = acpi_tb_install_standard_table(address, ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL, ...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/tbxfload.c
acpi_status acpi_load_table(struct acpi_table_header *table, u32 *table_idx) { acpi_status status; u32 table_index; ACPI_FUNCTION_TRACE(acpi_load_table); if (!table) { return_ACPI_STATUS(AE_BAD_PARAMETER); } /* Install the table and load it into the namespace */ ACPI_INFO(("Host-directed Dynamic A...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/tbxfroot.c
acpi_status acpi_tb_validate_rsdp(struct acpi_table_rsdp *rsdp) { if (!ACPI_VALIDATE_RSDP_SIG(rsdp->signature)) { /* Nope, BAD Signature */ return (AE_BAD_SIGNATURE); } /* Check the standard checksum */ if (acpi_ut_checksum((u8 *)rsdp, ACPI_RSDP_CHECKSUM_LENGTH) != 0) { return (AE_BAD_CHECKSUM)...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/tbxfroot.c
u8 *acpi_tb_scan_memory_for_rsdp(u8 *start_address, u32 length) { acpi_status status; u8 *mem_rover; u8 *end_address; ACPI_FUNCTION_TRACE(tb_scan_memory_for_rsdp); end_address = start_address + length; for (mem_rover = start_address; mem_rover < end_address; mem_rover += ACPI_RSDP_SCAN_STEP) { ...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utcache.c
acpi_status acpi_os_create_cache(char *cache_name, u16 object_size, u16 max_depth, struct acpi_memory_list **return_cache) { struct acpi_memory_list *cache; ACPI_FUNCTION_ENTRY(); if (!cache_name || !return_cache || !object_size) { return (AE...
[ 1, 0 ]
Linux Kernel
drivers/acpi/acpica/utcache.c
void *acpi_os_acquire_object(struct acpi_memory_list *cache) { acpi_status status; void *object; ACPI_FUNCTION_TRACE(os_acquire_object); if (!cache) { return_PTR(NULL); } status = acpi_ut_acquire_mutex(ACPI_MTX_CACHES); if (ACPI_FAILURE(status)) { return_PTR(NULL); } ACPI_MEM_TRACKING(cach...
[ 1, 0 ]
Linux Kernel
drivers/acpi/acpica/utcksum.c
u8 acpi_ut_checksum(u8 *buffer, u32 length) { u8 sum = 0; u8 *end = buffer + length; while (buffer < end) { sum = (u8)(sum + *(buffer++)); } return (sum); }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utcopy.c
static acpi_status acpi_ut_copy_ipackage_to_epackage(union acpi_operand_object *internal_object, u8 *buffer, acpi_size *space_used) { union acpi_object *external_object; acpi_status status; struct acpi_pkg_info info; ACPI_FUNCTION_TRACE(ut_copy_ipackage_to_epackage); extern...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utcopy.c
static acpi_status acpi_ut_copy_ielement_to_ielement( u8 object_type, union acpi_operand_object *source_object, union acpi_generic_state *state, void *context) { acpi_status status = AE_OK; u32 this_index; union acpi_operand_object **this_target_ptr; union acpi_operand_object *target_object; ACPI_FUN...
[ 1, 0 ]
Linux Kernel
drivers/acpi/acpica/utcopy.c
acpi_status acpi_ut_copy_iobject_to_iobject(union acpi_operand_object *source_desc, union acpi_operand_object **dest_desc, struct acpi_walk_state *walk_state) { acpi_status status = AE_OK; ACPI_FUNCTION_TRACE(ut_copy_iobject_to_iobject); *dest_desc...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utdebug.c
void acpi_ut_track_stack_ptr(void) { acpi_size current_sp; if (&current_sp < acpi_gbl_lowest_stack_pointer) { acpi_gbl_lowest_stack_pointer = &current_sp; } if (acpi_gbl_nesting_level > acpi_gbl_deepest_nesting) { acpi_gbl_deepest_nesting = acpi_gbl_nesting_level; } }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utdebug.c
void ACPI_INTERNAL_VAR_XFACE acpi_debug_print_raw( u32 requested_debug_level, u32 line_number, const char *function_name, const char *module_name, u32 component_id, const char *format, ...) { va_list args; if (!ACPI_IS_DEBUG_ENABLED(requested_debug_level, component_id)) { return; } va_start(args, ...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utdebug.c
void acpi_ut_ptr_exit(u32 line_number, const char *function_name, const char *module_name, u32 component_id, u8 *ptr) { if (ACPI_IS_DEBUG_ENABLED(ACPI_LV_FUNCTIONS, component_id)) { acpi_debug_print(ACPI_LV_FUNCTIONS, line_number, function_name, module_name, component_i...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utdecode.c
const char *acpi_ut_get_event_name(u32 event_id) { if (event_id > ACPI_EVENT_MAX) { return ("InvalidEventID"); } return (acpi_gbl_event_types[event_id]); }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utdecode.c
const char *acpi_ut_get_object_type_name(union acpi_operand_object *obj_desc) { ACPI_FUNCTION_TRACE(ut_get_object_type_name); if (!obj_desc) { ACPI_DEBUG_PRINT((ACPI_DB_EXEC, "Null Object Descriptor\n")); return_STR("[NULL Object Descriptor]"); } if ((ACPI_GET_DESCRIPTOR_TYPE(obj_desc) != ACPI_DESC_TY...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utdecode.c
u8 acpi_ut_valid_object_type(acpi_object_type type) { if (type > ACPI_TYPE_LOCAL_MAX) { return (FALSE); } return (TRUE); }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utdelete.c
void acpi_ut_delete_internal_object_list(union acpi_operand_object **obj_list) { union acpi_operand_object **internal_obj; ACPI_FUNCTION_ENTRY(); for (internal_obj = obj_list; *internal_obj; internal_obj++) { acpi_ut_remove_reference(*internal_obj); } /* Free the combined parameter pointer list and obj...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utdelete.c
void acpi_ut_add_reference(union acpi_operand_object *object) { ACPI_FUNCTION_NAME(ut_add_reference); if (!acpi_ut_valid_internal_object(object)) { return; } ACPI_DEBUG_PRINT((ACPI_DB_ALLOCATIONS, "Obj %p Current Refs=%X [To Be Incremented]\n", object, object->comm...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/uterror.c
void acpi_ut_method_error(const char *module_name, u32 line_number, const char *message, struct acpi_namespace_node *prefix_node, const char *path, acpi_status method_status) { acpi_status status; struct acpi_namespace_node *node = prefix...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/uteval.c
acpi_status acpi_ut_execute_power_methods(struct acpi_namespace_node *device_node, const char **method_names, u8 method_count, u8 *out_values) { union acpi_operand_object *obj_desc; acpi_status status; acpi_status final_status = AE_NOT_FOUND; u32 i; ...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/uthex.c
char acpi_ut_hex_to_ascii_char(u64 integer, u32 position) { u64 index; acpi_ut_short_shift_right(integer, position, &index); return (acpi_gbl_hex_to_ascii[index & 0xF]); }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/uthex.c
acpi_status acpi_ut_ascii_to_hex_byte(char *two_ascii_chars, u8 *return_byte) { if (!isxdigit((int)two_ascii_chars[0]) || !isxdigit((int)two_ascii_chars[1])) { return (AE_BAD_HEX_CONSTANT); } *return_byte = acpi_ut_ascii_char_to_hex(two_ascii_chars[1]) | (acpi_ut_ascii_char_to_hex(two...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utids.c
acpi_status acpi_ut_execute_CLS(struct acpi_namespace_node *device_node, struct acpi_pnp_device_id **return_id) { union acpi_operand_object *obj_desc; union acpi_operand_object **cls_objects; u32 count; struct acpi_pnp_device_id *cls; u32 length; acpi_status status; u8 clas...
[ 1, 0 ]
Linux Kernel
drivers/acpi/acpica/utinit.c
static void acpi_ut_terminate(void) { ACPI_FUNCTION_TRACE(ut_terminate); acpi_ut_free_gpe_lists(); acpi_ut_delete_address_lists(); return_VOID; }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utlock.c
void acpi_ut_delete_rw_lock(struct acpi_rw_lock *lock) { acpi_os_delete_mutex(lock->reader_mutex); acpi_os_delete_mutex(lock->writer_mutex); lock->num_readers = 0; lock->reader_mutex = NULL; lock->writer_mutex = NULL; }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utlock.c
acpi_status acpi_ut_acquire_write_lock(struct acpi_rw_lock *lock) { acpi_status status; status = acpi_os_acquire_mutex(lock->writer_mutex, ACPI_WAIT_FOREVER); return (status); }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utmath.c
acpi_status acpi_ut_short_shift_left(u64 operand, u32 count, u64 *out_result) { union uint64_overlay operand_ovl; ACPI_FUNCTION_TRACE(ut_short_shift_left); operand_ovl.full = operand; if ((count & 63) >= 32) { operand_ovl.part.hi = operand_ovl.part.lo; operand_ovl.part.lo = 0; count = (count & 63...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utmath.c
acpi_status acpi_ut_short_shift_right(u64 operand, u32 count, u64 *out_result) { union uint64_overlay operand_ovl; ACPI_FUNCTION_TRACE(ut_short_shift_right); operand_ovl.full = operand; if ((count & 63) >= 32) { operand_ovl.part.lo = operand_ovl.part.hi; operand_ovl.part.hi = 0; count = (count & ...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utmath.c
acpi_status acpi_ut_short_divide(u64 in_dividend, u32 divisor, u64 *out_quotient, u32 *out_remainder) { ACPI_FUNCTION_TRACE(ut_short_divide); if (divisor == 0) { ACPI_ERROR((AE_INFO, "Divide by zero")); return_ACPI_STATUS(AE_AML_DIVIDE_BY_ZERO); } /* Return only what ...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utmisc.c
u32 acpi_ut_dword_byte_swap(u32 value) { union { u32 value; u8 bytes[4]; } out; union { u32 value; u8 bytes[4]; } in; ACPI_FUNCTION_ENTRY(); in.value = value; out.bytes[0] = in.bytes[3]; out.bytes[1] = in.bytes[2]; out.bytes[2] = in.bytes[1]; out.bytes[3] = in.bytes[0]; return ...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utmutex.c
void acpi_ut_mutex_terminate(void) { u32 i; ACPI_FUNCTION_TRACE(ut_mutex_terminate); for (i = 0; i < ACPI_NUM_MUTEX; i++) { acpi_ut_delete_mutex(i); } acpi_os_delete_mutex(acpi_gbl_osi_mutex); /* Delete the spinlocks */ acpi_os_delete_lock(acpi_gbl_gpe_lock); acpi_os_delete_raw_lock(acpi_gbl_ha...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utnonansi.c
void acpi_ut_strlwr(char *src_string) { char *string; ACPI_FUNCTION_ENTRY(); if (!src_string) { return; } for (string = src_string; *string; string++) { *string = (char)tolower((int)*string); } }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utnonansi.c
void acpi_ut_strupr(char *src_string) { char *string; ACPI_FUNCTION_ENTRY(); if (!src_string) { return; } for (string = src_string; *string; string++) { *string = (char)toupper((int)*string); } }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utnonansi.c
u8 acpi_ut_safe_strcpy(char *dest, acpi_size dest_size, char *source) { if (strlen(source) >= dest_size) { return (TRUE); } strcpy(dest, source); return (FALSE); }
[ 1, 0 ]
Linux Kernel
drivers/acpi/acpica/utnonansi.c
u8 acpi_ut_safe_strcat(char *dest, acpi_size dest_size, char *source) { if ((strlen(dest) + strlen(source)) >= dest_size) { return (TRUE); } strcat(dest, source); return (FALSE); }
[ 1, 0 ]
Linux Kernel
drivers/acpi/acpica/utobject.c
union acpi_operand_object *acpi_ut_create_string_object(acpi_size string_size) { union acpi_operand_object *string_desc; char *string; ACPI_FUNCTION_TRACE_U32(ut_create_string_object, string_size); string_desc = acpi_ut_create_internal_object(ACPI_TYPE_STRING); if (!string_desc) { return_PTR(NULL); } ...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utosi.c
acpi_status acpi_ut_initialize_interfaces(void) { acpi_status status; u32 i; status = acpi_os_acquire_mutex(acpi_gbl_osi_mutex, ACPI_WAIT_FOREVER); if (ACPI_FAILURE(status)) { return (status); } acpi_gbl_supported_interfaces = acpi_default_supported_interfaces; for (i = 0; i < (ACPI_ARRAY_LENGTH(ac...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utosi.c
acpi_status acpi_ut_install_interface(acpi_string interface_name) { struct acpi_interface_info *interface_info; interface_info = ACPI_ALLOCATE_ZEROED(sizeof(struct acpi_interface_info)); if (!interface_info) { return (AE_NO_MEMORY); } interface_info->name = ACPI_ALLOCATE_ZEROED(strlen(interface_name) + ...
[ 1, 0 ]
Linux Kernel
drivers/acpi/acpica/utpredef.c
void acpi_ut_display_predefined_method( char *buffer, const union acpi_predefined_info *this_name, u8 multi_line) { u32 arg_count; arg_count = acpi_ut_get_argument_types(buffer, this_name->info.argument_list); if (multi_line) { printf(" "); } printf("%4.4s Requires %s%u argument%s", this_na...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utpredef.c
static u32 acpi_ut_get_argument_types(char *buffer, u16 argument_types) { u16 this_argument_type; u16 sub_index; u16 arg_count; u32 i; *buffer = 0; sub_index = 2; arg_count = METHOD_GET_ARG_COUNT(argument_types); if (arg_count > METHOD_PREDEF_ARGS_MAX) { printf("**** Invalid argument count (%u) " ...
[ 1, 0 ]
Linux Kernel
drivers/acpi/acpica/utprint.c
int snprintf(char *string, acpi_size size, const char *format, ...) { va_list args; int length; va_start(args, format); length = vsnprintf(string, size, format, args); va_end(args); return (length); }
[ 1, 0 ]
Linux Kernel
drivers/acpi/acpica/utprint.c
int sprintf(char *string, const char *format, ...) { va_list args; int length; va_start(args, format); length = vsnprintf(string, ACPI_UINT32_MAX, format, args); va_end(args); return (length); }
[ 1, 0 ]
Linux Kernel
drivers/acpi/acpica/utprint.c
int vfprintf(FILE *file, const char *format, va_list args) { acpi_cpu_flags flags; int length; flags = acpi_os_acquire_lock(acpi_gbl_print_lock); length = vsnprintf(acpi_gbl_print_buffer, sizeof(acpi_gbl_print_buffer), format, args); (void)fwrite(acpi_gbl_print_buffer, length, 1, file);...
[ 1, 0 ]
Linux Kernel
drivers/acpi/acpica/utprint.c
int fprintf(FILE *file, const char *format, ...) { va_list args; int length; va_start(args, format); length = vfprintf(file, format, args); va_end(args); return (length); }
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utstate.c
union acpi_generic_state *acpi_ut_create_pkg_state(void *internal_object, void *external_object, u32 index) { union acpi_generic_state *state; ACPI_FUNCTION_ENTRY(); state = acpi_ut_create_generic_state(); if...
[ 0, 0 ]
Linux Kernel
drivers/acpi/acpica/utstate.c
union acpi_generic_state *acpi_ut_create_control_state(void) { union acpi_generic_state *state; ACPI_FUNCTION_ENTRY(); state = acpi_ut_create_generic_state(); if (!state) { return (NULL); } /* Init fields specific to the control struct */ state->common.descriptor_type = ACPI_DESC_TYPE_STATE_CONTRO...
[ 0, 0 ]