Projectname large_stringclasses 15
values | Filepath large_stringlengths 4 106 ⌀ | Function large_stringlengths 11 3.45k | Label list |
|---|---|---|---|
Linux Kernel | drivers/accessibility/speakup/synth.c |
int synth_release_region(unsigned long start, unsigned long n) {
return release_resource(&synth_res);
} | [
0,
0
] |
Linux Kernel | drivers/accessibility/speakup/synth.c |
void synth_release(void) {
struct var_t *var;
unsigned long flags;
if (!synth)
return;
spin_lock_irqsave(&speakup_info.spinlock, flags);
pr_info("releasing synth %s\n", synth->name);
synth->alive = 0;
del_timer(&thread_timer);
spin_unlock_irqrestore(&speakup_info.spinlock, flags);
if (synth->att... | [
1,
0
] |
Linux Kernel | drivers/accessibility/speakup/thread.c | int speakup_thread(void *data) {
unsigned long flags;
int should_break;
struct bleep our_sound;
our_sound.active = 0;
our_sound.freq = 0;
our_sound.jiffies = 0;
mutex_lock(&spk_mutex);
while (1) {
DEFINE_WAIT(wait);
while (1) {
spin_lock_irqsave(&speakup_info.spinlock, flags);
our... | [
1,
0
] |
Linux Kernel | drivers/accessibility/speakup/utils.h |
static inline struct st_key *hash_name(char *name) {
unsigned char *pn = (unsigned char *)name;
int hash = 0;
while (*pn) {
hash = (hash * 17) & 0xfffffff;
if (isupper(*pn))
*pn = tolower(*pn);
hash += (int)*pn;
pn++;
}
hash %= HASHSIZE;
return &key_table[hash];
} | [
1,
0
] |
Linux Kernel | drivers/accessibility/speakup/varhandlers.c |
void speakup_register_var(struct var_t *var) {
static char nothing[2] = "\0";
int i;
struct st_var_header *p_header;
BUG_ON(!var || var->var_id < 0 || var->var_id >= MAXVARS);
if (!var_ptrs[0]) {
for (i = 0; i < MAXVARS; i++) {
p_header = &var_headers[i];
var_ptrs[p_header->var_id] = p_heade... | [
1,
0
] |
Linux Kernel | drivers/accessibility/speakup/varhandlers.c |
struct punc_var_t *spk_get_punc_var(enum var_id_t var_id) {
struct punc_var_t *rv = NULL;
struct punc_var_t *where;
where = punc_vars;
while ((where->var_id != -1) && (!rv)) {
if (where->var_id == var_id)
rv = where;
else
where++;
}
return rv;
} | [
0,
0
] |
Linux Kernel | drivers/acpi/ac.c | static int get_ac_property(struct power_supply *psy,
enum power_supply_property psp,
union power_supply_propval *val) {
struct acpi_ac *ac = to_acpi_ac(psy);
if (!ac)
return -ENODEV;
if (acpi_ac_get_state(ac))
return -ENODEV;
switch (psp) {
case... | [
0,
0
] |
Linux Kernel | drivers/acpi/ac.c |
static int __init ac_only_quirk(const struct dmi_system_id *d) {
ac_only = 1;
return 0;
} | [
0,
0
] |
Linux Kernel | drivers/acpi/ac.c | static int acpi_ac_resume(struct device *dev) {
struct acpi_ac *ac;
unsigned int old_state;
if (!dev)
return -EINVAL;
ac = acpi_driver_data(to_acpi_device(dev));
if (!ac)
return -EINVAL;
old_state = ac->state;
if (acpi_ac_get_state(ac))
return 0;
if (old_state != ac->state)
kobject_ue... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbcmds.c | struct acpi_namespace_node *acpi_db_convert_to_node(char *in_string) {
struct acpi_namespace_node *node;
acpi_size address;
if ((*in_string >= 0x30) && (*in_string <= 0x39)) {
address = strtoul(in_string, NULL, 16);
node = ACPI_TO_POINTER(address);
if (!acpi_os_readable(node, sizeof(struct acpi_name... | [
1,
0
] |
Linux Kernel | drivers/acpi/acpica/dbcmds.c | void acpi_db_unload_acpi_table(char *object_name) {
struct acpi_namespace_node *node;
acpi_status status;
node = acpi_db_convert_to_node(object_name);
if (!node) {
return;
}
status = acpi_unload_parent_table(ACPI_CAST_PTR(acpi_handle, node));
if (ACPI_SUCCESS(status)) {
acpi_os_printf("Parent of... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbcmds.c | void acpi_db_generate_gpe(char *gpe_arg, char *block_arg) {
u32 block_number = 0;
u32 gpe_number;
struct acpi_gpe_event_info *gpe_event_info;
gpe_number = strtoul(gpe_arg, NULL, 0);
if (block_arg) {
block_number = strtoul(block_arg, NULL, 0);
if (block_number == 1) {
block_number = 0;
}
... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbconvert.c | acpi_status acpi_db_hex_char_to_value(int hex_char, u8 *return_value) {
u8 value;
if (!isxdigit(hex_char)) {
return (AE_BAD_HEX_CONSTANT);
}
if (hex_char <= 0x39) {
value = (u8)(hex_char - 0x30);
} else {
value = (u8)(toupper(hex_char) - 0x37);
}
*return_value = value;
return (AE_OK);
} | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbconvert.c | static acpi_status acpi_db_hex_byte_to_binary(char *hex_byte,
u8 *return_value) {
u8 local0;
u8 local1;
acpi_status status;
status = acpi_db_hex_char_to_value(hex_byte[0], &local0);
if (ACPI_FAILURE(status)) {
return (status);
}
/* Low byte */
status ... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbdisply.c | static void *acpi_db_get_pointer(void *target) {
void *obj_ptr;
acpi_size address;
address = strtoul(target, NULL, 16);
obj_ptr = ACPI_TO_POINTER(address);
return (obj_ptr);
} | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbdisply.c | void acpi_db_display_locals(void) {
struct acpi_walk_state *walk_state;
walk_state = acpi_ds_get_current_walk_state(acpi_gbl_current_walk_list);
if (!walk_state) {
acpi_os_printf("There is no method currently executing\n");
return;
}
acpi_db_decode_locals(walk_state);
} | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbdisply.c | void acpi_db_display_results(void) {
u32 i;
struct acpi_walk_state *walk_state;
union acpi_operand_object *obj_desc;
u32 result_count = 0;
struct acpi_namespace_node *node;
union acpi_generic_state *frame;
u32 index;
walk_state = acpi_ds_get_current_walk_state(acpi_gbl_current_walk_list);
if (!walk_s... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbdisply.c | void acpi_db_display_object_type(char *object_arg) {
acpi_size arg;
acpi_handle handle;
struct acpi_device_info *info;
acpi_status status;
u32 i;
arg = strtoul(object_arg, NULL, 16);
handle = ACPI_TO_POINTER(arg);
status = acpi_get_object_info(handle, &info);
if (ACPI_FAILURE(status)) {
acpi_os_... | [
1,
0
] |
Linux Kernel | drivers/acpi/acpica/dbdisply.c | void acpi_db_display_result_object(union acpi_operand_object *obj_desc,
struct acpi_walk_state *walk_state) {
#ifndef ACPI_APPLICATION
if (acpi_gbl_db_thread_id != acpi_os_get_thread_id()) {
return;
}
#endif
if (!acpi_gbl_cm_single_step) {
return;
}
acpi_os_printf... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbexec.c | static u32 acpi_db_get_outstanding_allocations(void) {
u32 outstanding = 0;
#ifdef ACPI_DBG_TRACK_ALLOCATIONS
outstanding += acpi_db_get_cache_info(acpi_gbl_state_cache);
outstanding += acpi_db_get_cache_info(acpi_gbl_ps_node_cache);
outstanding += acpi_db_get_cache_info(acpi_gbl_ps_node_ext_cache);
outstan... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbexec.c | static void ACPI_SYSTEM_XFACE acpi_db_single_execution_thread(void *context) {
struct acpi_db_method_info *info = context;
acpi_status status;
struct acpi_buffer return_obj;
acpi_os_printf("\n");
status = acpi_db_execute_method(info, &return_obj);
if (ACPI_FAILURE(status)) {
acpi_os_printf("%s During ... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbfileio.c | void acpi_db_open_debug_file(char *name) {
acpi_db_close_debug_file();
acpi_gbl_debug_file = fopen(name, "w+");
if (!acpi_gbl_debug_file) {
acpi_os_printf("Could not open debug file %s\n", name);
return;
}
acpi_os_printf("Debug output file %s opened\n", name);
acpi_ut_safe_strncpy(acpi_gbl_db_debu... | [
1,
0
] |
Linux Kernel | drivers/acpi/acpica/dbinput.c | static u32 acpi_db_match_command(char *user_command) {
u32 i;
if (!user_command || user_command[0] == 0) {
return (CMD_NULL);
}
for (i = CMD_FIRST_VALID; acpi_gbl_db_commands[i].name; i++) {
if (strstr(ACPI_CAST_PTR(char, acpi_gbl_db_commands[i].name),
user_command) == acpi_gbl_db_comma... | [
1,
0
] |
Linux Kernel | drivers/acpi/acpica/dbmethod.c | void acpi_db_set_method_call_breakpoint(union acpi_parse_object *op) {
if (!op) {
acpi_os_printf("There is no method currently executing\n");
return;
}
acpi_gbl_step_to_next_call = TRUE;
} | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbmethod.c | void acpi_db_disassemble_aml(char *statements, union acpi_parse_object *op) {
u32 num_statements = 8;
if (!op) {
acpi_os_printf("There is no method currently executing\n");
return;
}
if (statements) {
num_statements = strtoul(statements, NULL, 0);
}
acpi_dm_disassemble(NULL, op, num_statement... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbmethod.c | void acpi_db_evaluate_predefined_names(void) {
struct acpi_db_execute_walk info;
info.count = 0;
info.max_count = ACPI_UINT32_MAX;
(void)acpi_walk_namespace(ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX,
acpi_db_walk_for_execute, NULL, (void *)&info,
... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbmethod.c | void acpi_db_evaluate_all(char *name_seg) {
struct acpi_db_execute_walk info;
info.count = 0;
info.max_count = ACPI_UINT32_MAX;
ACPI_COPY_NAMESEG(info.name_seg, name_seg);
info.name_seg[ACPI_NAMESEG_SIZE] = 0;
(void)acpi_walk_namespace(ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX,
... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbnames.c | void acpi_db_set_scope(char *name) {
acpi_status status;
struct acpi_namespace_node *node;
if (!name || name[0] == 0) {
acpi_os_printf("Current scope: %s\n", acpi_gbl_db_scope_buf);
return;
}
acpi_db_prep_namestring(name);
if (ACPI_IS_ROOT_PREFIX(name[0])) {
status =
acpi_ns_get_node... | [
1,
0
] |
Linux Kernel | drivers/acpi/acpica/dbnames.c | void acpi_db_dump_namespace(char *start_arg, char *depth_arg) {
acpi_handle subtree_entry = acpi_gbl_root_node;
u32 max_depth = ACPI_UINT32_MAX;
if (start_arg) {
subtree_entry = acpi_db_convert_to_node(start_arg);
if (!subtree_entry) {
return;
}
/* Now we can check for the depth argument *... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbnames.c | static acpi_status acpi_db_walk_for_predefined_names(acpi_handle obj_handle,
u32 nesting_level,
void *context,
void **return_value) {
struct acpi_namespace_nod... | [
1,
0
] |
Linux Kernel | drivers/acpi/acpica/dbnames.c | static acpi_status acpi_db_walk_for_fields(acpi_handle obj_handle,
u32 nesting_level, void *context,
void **return_value) {
union acpi_object *ret_value;
struct acpi_region_walk_info *info = (struct acpi_region_walk_info *)context... | [
1,
0
] |
Linux Kernel | drivers/acpi/acpica/dbnames.c | static acpi_status acpi_db_walk_for_specific_objects(acpi_handle obj_handle,
u32 nesting_level,
void *context,
void **return_value) {
struct acpi_walk_info *in... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbnames.c | static acpi_status acpi_db_integrity_walk(acpi_handle obj_handle,
u32 nesting_level, void *context,
void **return_value) {
struct acpi_integrity_info *info = (struct acpi_integrity_info *)context;
struct acpi_namespace_node *node = ... | [
1,
0
] |
Linux Kernel | drivers/acpi/acpica/dbnames.c | void acpi_db_find_references(char *object_arg) {
union acpi_operand_object *obj_desc;
acpi_size address;
address = strtoul(object_arg, NULL, 16);
obj_desc = ACPI_TO_POINTER(address);
/* Search all nodes in namespace */
(void)acpi_walk_namespace(ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX,
... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbobject.c | static void acpi_db_decode_node(struct acpi_namespace_node *node) {
acpi_os_printf("<Node> Name %4.4s", acpi_ut_get_node_name(node));
if (node->flags & ANOBJ_METHOD_ARG) {
acpi_os_printf(" [Method Arg]");
}
if (node->flags & ANOBJ_METHOD_LOCAL) {
acpi_os_printf(" [Method Local]");
}
swit... | [
1,
0
] |
Linux Kernel | drivers/acpi/acpica/dbobject.c | void acpi_db_decode_locals(struct acpi_walk_state *walk_state) {
u32 i;
union acpi_operand_object *obj_desc;
struct acpi_namespace_node *node;
u8 display_locals = FALSE;
node = walk_state->method_node;
if (node == acpi_gbl_root_node) {
return;
}
if (!node) {
acpi_os_printf(
"No method... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbtest.c | static void acpi_db_evaluate_all_predefined_names(char *count_arg) {
struct acpi_db_execute_walk info;
info.count = 0;
info.max_count = ACPI_UINT32_MAX;
if (count_arg) {
info.max_count = strtoul(count_arg, NULL, 0);
}
(void)acpi_walk_namespace(ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX,
... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbutils.c | acpi_object_type
acpi_db_match_argument(char *user_argument,
struct acpi_db_argument_info *arguments) {
u32 i;
if (!user_argument || user_argument[0] == 0) {
return (ACPI_TYPE_NOT_FOUND);
}
for (i = 0; arguments[i].name; i++) {
if (strstr(ACPI_CAST_PTR(char, arguments[i].name),
... | [
1,
0
] |
Linux Kernel | drivers/acpi/acpica/dbutils.c | void acpi_db_prep_namestring(char *name) {
if (!name) {
return;
}
acpi_ut_strupr(name);
if (*name == '/') {
*name = '\\';
}
/* Ignore a leading backslash, this is the root prefix */
if (ACPI_IS_ROOT_PREFIX(*name)) {
name++;
}
/* Convert all slash path separators to dots */
while (... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbutils.c | struct acpi_namespace_node *acpi_db_local_ns_lookup(char *name) {
char *internal_path;
acpi_status status;
struct acpi_namespace_node *node = NULL;
acpi_db_prep_namestring(name);
status = acpi_ns_internalize_name(name, &internal_path);
if (ACPI_FAILURE(status)) {
acpi_os_printf("Invalid namestring: %s... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbxface.c | static acpi_status acpi_db_start_command(struct acpi_walk_state *walk_state,
union acpi_parse_object *op) {
acpi_status status;
/* acpi_ut_release_mutex (ACPI_MTX_NAMESPACE); */
/* Go into the command loop and await next user command */
acpi_gbl_method_executing = TRU... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dbxface.c | void acpi_terminate_debugger(void) {
acpi_gbl_db_terminate_loop = TRUE;
if (acpi_gbl_debugger_configuration & DEBUGGER_MULTI_THREADED) {
/* Wait the AML Debugger threads */
while (!acpi_gbl_db_threads_terminated) {
acpi_os_sleep(100);
}
acpi_os_terminate_debugger();
}
if (acpi_gbl_db... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dsargs.c | acpi_status acpi_ds_get_region_arguments(union acpi_operand_object *obj_desc) {
struct acpi_namespace_node *node;
acpi_status status;
union acpi_operand_object *extra_desc;
ACPI_FUNCTION_TRACE_PTR(ds_get_region_arguments, obj_desc);
if (obj_desc->region.flags & AOPOBJ_DATA_VALID) {
return_ACPI_STATUS(AE... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dsdebug.c | void acpi_ds_dump_method_stack(acpi_status status,
struct acpi_walk_state *walk_state,
union acpi_parse_object *op) {
return;
} | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dsfield.c | static acpi_status acpi_ds_create_external_region(
acpi_status lookup_status, union acpi_parse_object *op, char *path,
struct acpi_walk_state *walk_state, struct acpi_namespace_node **node) {
acpi_status status;
union acpi_operand_object *obj_desc;
if (lookup_status != AE_NOT_FOUND) {
return (lookup_... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dsmethod.c | acpi_status acpi_ds_auto_serialize_method(struct acpi_namespace_node *node,
union acpi_operand_object *obj_desc) {
acpi_status status;
union acpi_parse_object *op = NULL;
struct acpi_walk_state *walk_state;
ACPI_FUNCTION_TRACE_PTR(ds_auto_serialize_method, node);
AC... | [
1,
0
] |
Linux Kernel | drivers/acpi/acpica/dsmthdat.c | void acpi_ds_method_data_init(struct acpi_walk_state *walk_state) {
u32 i;
ACPI_FUNCTION_TRACE(ds_method_data_init);
for (i = 0; i < ACPI_METHOD_NUM_ARGS; i++) {
ACPI_MOVE_32_TO_32(&walk_state->arguments[i].name, NAMEOF_ARG_NTE);
walk_state->arguments[i].name.integer |= (i << 24);
walk_state->argum... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dsmthdat.c | acpi_status acpi_ds_method_data_init_args(union acpi_operand_object **params,
u32 max_param_count,
struct acpi_walk_state *walk_state) {
acpi_status status;
u32 index = 0;
ACPI_FUNCTION_TRACE_PTR(ds_method_data_init_args, params)... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dsutils.c | void acpi_ds_clear_implicit_return(struct acpi_walk_state *walk_state) {
ACPI_FUNCTION_NAME(ds_clear_implicit_return);
if (!acpi_gbl_enable_interpreter_slack) {
return;
}
if (walk_state->implicit_return_obj) {
/*
* Delete any "stale" implicit return. However, in
* complex statements, the imp... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dsutils.c | void acpi_ds_delete_result_if_not_used(union acpi_parse_object *op,
union acpi_operand_object *result_obj,
struct acpi_walk_state *walk_state) {
union acpi_operand_object *obj_desc;
acpi_status status;
ACPI_FUNCTION_TRACE_PTR(ds_delete... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dsutils.c | void acpi_ds_clear_operands(struct acpi_walk_state *walk_state) {
u32 i;
ACPI_FUNCTION_TRACE_PTR(ds_clear_operands, walk_state);
for (i = 0; i < walk_state->num_operands; i++) {
/*
* Remove a reference to all operands, including both
* "Arguments" and "Targets".
*/
acpi_ut_remove_referenc... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dswscope.c | acpi_status acpi_ds_scope_stack_push(struct acpi_namespace_node *node,
acpi_object_type type,
struct acpi_walk_state *walk_state) {
union acpi_generic_state *scope_info;
union acpi_generic_state *old_scope_info;
ACPI_FUNCTION_TRACE(ds_scop... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/dswstate.c | acpi_status acpi_ds_result_pop(union acpi_operand_object **object,
struct acpi_walk_state *walk_state) {
u32 index;
union acpi_generic_state *state;
acpi_status status;
ACPI_FUNCTION_NAME(ds_result_pop);
state = walk_state->results;
if (state && !walk_state->result_count) {... | [
1,
0
] |
Linux Kernel | drivers/acpi/acpica/dswstate.c | void acpi_ds_delete_walk_state(struct acpi_walk_state *walk_state) {
union acpi_generic_state *state;
ACPI_FUNCTION_TRACE_PTR(ds_delete_walk_state, walk_state);
if (!walk_state) {
return_VOID;
}
if (walk_state->descriptor_type != ACPI_DESC_TYPE_WALK) {
ACPI_ERROR((AE_INFO, "%p is not a valid walk s... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/evevent.c | acpi_status acpi_ev_install_xrupt_handlers(void) {
acpi_status status;
ACPI_FUNCTION_TRACE(ev_install_xrupt_handlers);
if (acpi_gbl_reduced_hardware) {
return_ACPI_STATUS(AE_OK);
}
/* Install the SCI handler */
status = acpi_ev_install_sci_handler();
if (ACPI_FAILURE(status)) {
ACPI_EXCEPTION(... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/evevent.c | u32 acpi_ev_fixed_event_detect(void) {
u32 int_status = ACPI_INTERRUPT_NOT_HANDLED;
u32 fixed_status;
u32 fixed_enable;
u32 i;
acpi_status status;
ACPI_FUNCTION_NAME(ev_fixed_event_detect);
status = acpi_hw_register_read(ACPI_REGISTER_PM1_STATUS, &fixed_status);
status |= acpi_hw_register_read(ACPI_RE... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/evglock.c | static u32 acpi_ev_global_lock_handler(void *context) {
acpi_status status;
acpi_cpu_flags flags;
flags = acpi_os_acquire_lock(acpi_gbl_global_lock_pending_lock);
if (!acpi_gbl_global_lock_pending) {
goto cleanup_and_exit;
}
/*
* Send a unit to the global lock semaphore. The actual acquisition
... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/evgpe.c | acpi_status acpi_ev_mask_gpe(struct acpi_gpe_event_info *gpe_event_info,
u8 is_masked) {
struct acpi_gpe_register_info *gpe_register_info;
u32 register_bit;
ACPI_FUNCTION_TRACE(ev_mask_gpe);
gpe_register_info = gpe_event_info->register_info;
if (!gpe_register_info) {
return_... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/evgpe.c | struct acpi_gpe_event_info *acpi_ev_get_gpe_event_info(acpi_handle gpe_device,
u32 gpe_number) {
union acpi_operand_object *obj_desc;
struct acpi_gpe_event_info *gpe_info;
u32 i;
ACPI_FUNCTION_ENTRY();
if (!gpe_device) {
/* Examine GPE Block 0 and ... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/evgpe.c | acpi_status acpi_ev_finish_gpe(struct acpi_gpe_event_info *gpe_event_info) {
acpi_status status;
if ((gpe_event_info->flags & ACPI_GPE_XRUPT_TYPE_MASK) ==
ACPI_GPE_LEVEL_TRIGGERED) {
status = acpi_hw_clear_gpe(gpe_event_info);
if (ACPI_FAILURE(status)) {
return (status);
}
}
/*
* E... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/evgpeblk.c | static acpi_status
acpi_ev_install_gpe_block(struct acpi_gpe_block_info *gpe_block,
u32 interrupt_number) {
struct acpi_gpe_block_info *next_gpe_block;
struct acpi_gpe_xrupt_info *gpe_xrupt_block;
acpi_status status;
acpi_cpu_flags flags;
ACPI_FUNCTION_TRACE(ev_install_gpe_block);
... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/evhandler.c | acpi_status acpi_ev_install_region_handlers(void) {
acpi_status status;
u32 i;
ACPI_FUNCTION_TRACE(ev_install_region_handlers);
status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE);
if (ACPI_FAILURE(status)) {
return_ACPI_STATUS(status);
}
for (i = 0; i < ACPI_NUM_DEFAULT_SPACES; i++) {
status = ... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/evmisc.c | void acpi_ev_terminate(void) {
u32 i;
acpi_status status;
ACPI_FUNCTION_TRACE(ev_terminate);
if (acpi_gbl_events_initialized) {
/* Disable all fixed events */
for (i = 0; i < ACPI_NUM_FIXED_EVENTS; i++) {
status = acpi_disable_event(i, 0);
if (ACPI_FAILURE(status)) {
ACPI_ERROR((... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/evregion.c | static acpi_status acpi_ev_reg_run(acpi_handle obj_handle, u32 level,
void *context, void **return_value) {
union acpi_operand_object *obj_desc;
struct acpi_namespace_node *node;
acpi_status status;
struct acpi_reg_walk_info *info;
info = ACPI_CAST_PTR(struct acpi_reg_walk_... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/evxfevnt.c | acpi_status acpi_disable(void) {
acpi_status status = AE_OK;
ACPI_FUNCTION_TRACE(acpi_disable);
if (acpi_gbl_reduced_hardware) {
return_ACPI_STATUS(AE_OK);
}
if (acpi_hw_get_mode() == ACPI_SYS_MODE_LEGACY) {
ACPI_DEBUG_PRINT(
(ACPI_DB_INIT, "System is already in legacy (non-ACPI) mode\n"));... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/evxfevnt.c | acpi_status acpi_clear_event(u32 event) {
acpi_status status = AE_OK;
ACPI_FUNCTION_TRACE(acpi_clear_event);
if (acpi_gbl_reduced_hardware) {
return_ACPI_STATUS(AE_OK);
}
/* Decode the Fixed Event */
if (event > ACPI_EVENT_MAX) {
return_ACPI_STATUS(AE_BAD_PARAMETER);
}
/*
* Clear the req... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/evxfevnt.c | acpi_status acpi_get_event_status(u32 event, acpi_event_status *event_status) {
acpi_status status;
acpi_event_status local_event_status = 0;
u32 in_byte;
ACPI_FUNCTION_TRACE(acpi_get_event_status);
if (!event_status) {
return_ACPI_STATUS(AE_BAD_PARAMETER);
}
if (event > ACPI_EVENT_MAX) {
retur... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/evxfgpe.c | acpi_status acpi_update_all_gpes(void) {
acpi_status status;
u8 is_polling_needed = FALSE;
ACPI_FUNCTION_TRACE(acpi_update_all_gpes);
status = acpi_ut_acquire_mutex(ACPI_MTX_EVENTS);
if (ACPI_FAILURE(status)) {
return_ACPI_STATUS(status);
}
if (acpi_gbl_all_gpes_initialized) {
goto unlock_and_e... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/evxfgpe.c | acpi_status acpi_enable_gpe(acpi_handle gpe_device, u32 gpe_number) {
acpi_status status = AE_BAD_PARAMETER;
struct acpi_gpe_event_info *gpe_event_info;
acpi_cpu_flags flags;
ACPI_FUNCTION_TRACE(acpi_enable_gpe);
flags = acpi_os_acquire_lock(acpi_gbl_gpe_lock);
gpe_event_info = acpi_ev_get_gpe_event_info... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/evxfgpe.c | acpi_status acpi_disable_gpe(acpi_handle gpe_device, u32 gpe_number) {
acpi_status status = AE_BAD_PARAMETER;
struct acpi_gpe_event_info *gpe_event_info;
acpi_cpu_flags flags;
ACPI_FUNCTION_TRACE(acpi_disable_gpe);
flags = acpi_os_acquire_lock(acpi_gbl_gpe_lock);
gpe_event_info = acpi_ev_get_gpe_event_in... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/evxfgpe.c | acpi_status acpi_get_gpe_status(acpi_handle gpe_device, u32 gpe_number,
acpi_event_status *event_status) {
acpi_status status = AE_OK;
struct acpi_gpe_event_info *gpe_event_info;
acpi_cpu_flags flags;
ACPI_FUNCTION_TRACE(acpi_get_gpe_status);
flags = acpi_os_acquire_lock(acpi... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/evxfgpe.c | u32 acpi_any_gpe_status_set(u32 gpe_skip_number) {
acpi_status status;
acpi_handle gpe_device;
u8 ret;
ACPI_FUNCTION_TRACE(acpi_any_gpe_status_set);
status = acpi_ut_acquire_mutex(ACPI_MTX_EVENTS);
if (ACPI_FAILURE(status)) {
return (FALSE);
}
status = acpi_get_gpe_device(gpe_skip_number, &gpe_de... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/evxfregn.c | acpi_status acpi_install_address_space_handler(acpi_handle device,
acpi_adr_space_type space_id,
acpi_adr_space_handler handler,
acpi_adr_space_setup setup,
... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/exconvrt.c | acpi_status acpi_ex_convert_to_buffer(union acpi_operand_object *obj_desc,
union acpi_operand_object **result_desc) {
union acpi_operand_object *return_desc;
u8 *new_buf;
ACPI_FUNCTION_TRACE_PTR(ex_convert_to_buffer, obj_desc);
switch (obj_desc->common.type) {
case ACPI... | [
1,
0
] |
Linux Kernel | drivers/acpi/acpica/excreate.c | acpi_status acpi_ex_create_processor(struct acpi_walk_state *walk_state) {
union acpi_operand_object **operand = &walk_state->operands[0];
union acpi_operand_object *obj_desc;
acpi_status status;
ACPI_FUNCTION_TRACE_PTR(ex_create_processor, walk_state);
obj_desc = acpi_ut_create_internal_object(ACPI_TYPE_PR... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/excreate.c | acpi_status acpi_ex_create_power_resource(struct acpi_walk_state *walk_state) {
union acpi_operand_object **operand = &walk_state->operands[0];
acpi_status status;
union acpi_operand_object *obj_desc;
ACPI_FUNCTION_TRACE_PTR(ex_create_power_resource, walk_state);
obj_desc = acpi_ut_create_internal_object(AC... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/exdump.c | void acpi_ex_dump_operands(union acpi_operand_object **operands,
const char *opcode_name, u32 num_operands) {
ACPI_FUNCTION_TRACE(ex_dump_operands);
if (!opcode_name) {
opcode_name = "UNKNOWN";
}
ACPI_DEBUG_PRINT((ACPI_DB_EXEC,
"**** Start operand dump for op... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/exdump.c | static void acpi_ex_out_string(const char *title, const char *value) {
acpi_os_printf("%20s : %s\n", title, value);
} | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/exdump.c | static void acpi_ex_dump_package_obj(union acpi_operand_object *obj_desc,
u32 level, u32 index) {
u32 i;
if (level > 0) {
for (i = 0; i < level; i++) {
acpi_os_printf(" ");
}
acpi_os_printf("[%.2d] ", index);
}
acpi_os_printf("%p ", obj_desc);
/* Null... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/exfield.c | acpi_status acpi_ex_get_protocol_buffer_length(u32 protocol_id,
u32 *return_length) {
if ((protocol_id > ACPI_MAX_PROTOCOL_ID) ||
(acpi_protocol_lengths[protocol_id] == ACPI_INVALID_PROTOCOL_ID)) {
ACPI_ERROR(
(AE_INFO, "Invalid Field/AccessAs protocol... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/exfldio.c | static u8 acpi_ex_register_overflow(union acpi_operand_object *obj_desc,
u64 value) {
if (obj_desc->common_field.bit_length >= ACPI_INTEGER_BIT_SIZE) {
return (FALSE);
}
if (value >= ((u64)1 << obj_desc->common_field.bit_length)) {
/*
* The Value is larger than ... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/exmutex.c | acpi_status acpi_ex_acquire_mutex_object(u16 timeout,
union acpi_operand_object *obj_desc,
acpi_thread_id thread_id) {
acpi_status status;
ACPI_FUNCTION_TRACE_PTR(ex_acquire_mutex_object, obj_desc);
if (!obj_desc) {
return_ACP... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/exmutex.c | void acpi_ex_release_all_mutexes(struct acpi_thread_state *thread) {
union acpi_operand_object *next = thread->acquired_mutex_list;
union acpi_operand_object *obj_desc;
ACPI_FUNCTION_TRACE(ex_release_all_mutexes);
while (next) {
obj_desc = next;
ACPI_DEBUG_PRINT(
(ACPI_DB_EXEC, "Mutex [%4.4s] ... | [
1,
0
] |
Linux Kernel | drivers/acpi/acpica/exregion.c | acpi_status acpi_ex_pci_config_space_handler(u32 function,
acpi_physical_address address,
u32 bit_width, u64 *value,
void *handler_context,
... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/exstorob.c | acpi_status
acpi_ex_store_string_to_string(union acpi_operand_object *source_desc,
union acpi_operand_object *target_desc) {
u32 length;
u8 *buffer;
ACPI_FUNCTION_TRACE_PTR(ex_store_string_to_string, source_desc);
if (source_desc == target_desc) {
return_ACPI_STATUS(AE_OK);
... | [
1,
0
] |
Linux Kernel | drivers/acpi/acpica/exsystem.c | acpi_status acpi_ex_system_wait_semaphore(acpi_semaphore semaphore,
u16 timeout) {
acpi_status status;
ACPI_FUNCTION_TRACE(ex_system_wait_semaphore);
status = acpi_os_wait_semaphore(semaphore, 1, ACPI_DO_NOT_WAIT);
if (ACPI_SUCCESS(status)) {
return_ACPI_STATUS(st... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/exsystem.c | acpi_status acpi_ex_system_signal_event(union acpi_operand_object *obj_desc) {
acpi_status status = AE_OK;
ACPI_FUNCTION_TRACE(ex_system_signal_event);
if (obj_desc) {
status = acpi_os_signal_semaphore(obj_desc->event.os_semaphore, 1);
}
return_ACPI_STATUS(status);
} | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/exsystem.c | acpi_status acpi_ex_system_reset_event(union acpi_operand_object *obj_desc) {
acpi_status status = AE_OK;
acpi_semaphore temp_semaphore;
ACPI_FUNCTION_ENTRY();
status = acpi_os_create_semaphore(ACPI_NO_UNIT_LIMIT, 0, &temp_semaphore);
if (ACPI_SUCCESS(status)) {
(void)acpi_os_delete_semaphore(obj_desc->... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/extrace.c | static u8 acpi_ex_interpreter_trace_enabled(char *name) {
if (!(acpi_gbl_trace_flags & ACPI_TRACE_ENABLED)) {
return (FALSE);
}
/*
* Check if tracing is filtered:
*
* 1. If the tracer is started, acpi_gbl_trace_method_object should have
* been filled by the trace starter
* 2. If the tracer... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/extrace.c |
static const char *acpi_ex_get_trace_event_name(acpi_trace_event_type type) {
switch (type) {
case ACPI_TRACE_AML_METHOD:
return "Method";
case ACPI_TRACE_AML_OPCODE:
return "Opcode";
case ACPI_TRACE_AML_REGION:
return "Region";
default:
return "";
}
} | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/extrace.c | void acpi_ex_stop_trace_method(struct acpi_namespace_node *method_node,
union acpi_operand_object *obj_desc,
struct acpi_walk_state *walk_state) {
char *pathname = NULL;
u8 enabled;
ACPI_FUNCTION_NAME(ex_stop_trace_method);
if (method_node) {
p... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/exutils.c | void acpi_ex_exit_interpreter(void) {
acpi_status status;
ACPI_FUNCTION_TRACE(ex_exit_interpreter);
status = acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
if (ACPI_FAILURE(status)) {
ACPI_ERROR((AE_INFO, "Could not release AML Namespace mutex"));
}
status = acpi_ut_release_mutex(ACPI_MTX_INTERPRETER);
... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/exutils.c | void acpi_ex_acquire_global_lock(u32 field_flags) {
acpi_status status;
ACPI_FUNCTION_TRACE(ex_acquire_global_lock);
if (!(field_flags & AML_FIELD_LOCK_RULE_MASK)) {
return_VOID;
}
/* Attempt to get the global lock, wait forever */
status = acpi_ex_acquire_mutex_object(
ACPI_WAIT_FOREVER, acpi... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/exutils.c | static u32 acpi_ex_digits_needed(u64 value, u32 base) {
u32 num_digits;
u64 current_value;
ACPI_FUNCTION_TRACE(ex_digits_needed);
if (value == 0) {
return_UINT32(1);
}
current_value = value;
num_digits = 0;
/* Count the digits in the requested base */
while (current_value) {
(void)acpi_ut... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/exutils.c | void acpi_ex_pci_cls_to_string(char *out_string, u8 class_code[3]) {
ACPI_FUNCTION_ENTRY();
out_string[0] = acpi_ut_hex_to_ascii_char((u64)class_code[0], 4);
out_string[1] = acpi_ut_hex_to_ascii_char((u64)class_code[0], 0);
out_string[2] = acpi_ut_hex_to_ascii_char((u64)class_code[1], 4);
out_string[3] = ac... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/hwgpe.c | acpi_status acpi_hw_clear_gpe(struct acpi_gpe_event_info *gpe_event_info) {
struct acpi_gpe_register_info *gpe_register_info;
acpi_status status;
u32 register_bit;
ACPI_FUNCTION_ENTRY();
gpe_register_info = gpe_event_info->register_info;
if (!gpe_register_info) {
return (AE_NOT_EXIST);
}
/*
* ... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/hwgpe.c | acpi_status acpi_hw_enable_all_runtime_gpes(void) {
acpi_status status;
ACPI_FUNCTION_TRACE(hw_enable_all_runtime_gpes);
status = acpi_ev_walk_gpe_list(acpi_hw_enable_runtime_gpe_block, NULL);
return_ACPI_STATUS(status);
} | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/hwpci.c | static acpi_status
acpi_hw_build_pci_list(acpi_handle root_pci_device, acpi_handle pci_region,
struct acpi_pci_device **return_list_head) {
acpi_handle current_device;
acpi_handle parent_device;
acpi_status status;
struct acpi_pci_device *list_element;
*return_list_head = NULL;
curre... | [
0,
0
] |
Linux Kernel | drivers/acpi/acpica/hwregs.c | static u8 acpi_hw_get_access_bit_width(u64 address,
struct acpi_generic_address *reg,
u8 max_bit_width) {
u8 access_bit_width;
if (!reg->bit_offset && reg->bit_width &&
ACPI_IS_POWER_OF_TWO(reg->bit_width) &&
ACPI_IS_ALIGNED(... | [
1,
0
] |
Linux Kernel | drivers/acpi/acpica/hwxface.c | acpi_status acpi_reset(void) {
struct acpi_generic_address *reset_reg;
acpi_status status;
ACPI_FUNCTION_TRACE(acpi_reset);
reset_reg = &acpi_gbl_FADT.reset_register;
if (!(acpi_gbl_FADT.flags & ACPI_FADT_RESET_REGISTER) ||
!reset_reg->address) {
return_ACPI_STATUS(AE_NOT_EXIST);
}
if (reset... | [
0,
0
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.