Home
last modified time | relevance | path

Searched refs:obj_desc (Results 1 – 25 of 58) sorted by relevance

123

/drivers/acpi/acpica/
Dexmutex.c54 acpi_ex_link_mutex(union acpi_operand_object *obj_desc,
69 void acpi_ex_unlink_mutex(union acpi_operand_object *obj_desc) in acpi_ex_unlink_mutex() argument
71 struct acpi_thread_state *thread = obj_desc->mutex.owner_thread; in acpi_ex_unlink_mutex()
79 if (obj_desc->mutex.next) { in acpi_ex_unlink_mutex()
80 (obj_desc->mutex.next)->mutex.prev = obj_desc->mutex.prev; in acpi_ex_unlink_mutex()
83 if (obj_desc->mutex.prev) { in acpi_ex_unlink_mutex()
84 (obj_desc->mutex.prev)->mutex.next = obj_desc->mutex.next; in acpi_ex_unlink_mutex()
92 (obj_desc->mutex.prev)->mutex.original_sync_level = in acpi_ex_unlink_mutex()
93 obj_desc->mutex.original_sync_level; in acpi_ex_unlink_mutex()
95 thread->acquired_mutex_list = obj_desc->mutex.next; in acpi_ex_unlink_mutex()
[all …]
Dexfldio.c56 acpi_ex_field_datum_io(union acpi_operand_object *obj_desc,
60 acpi_ex_register_overflow(union acpi_operand_object *obj_desc, u64 value);
63 acpi_ex_setup_region(union acpi_operand_object *obj_desc,
83 acpi_ex_setup_region(union acpi_operand_object *obj_desc, in acpi_ex_setup_region() argument
92 rgn_desc = obj_desc->common_field.region_obj; in acpi_ex_setup_region()
143 if (!(obj_desc->common.flags & AOPOBJ_DATA_VALID)) { in acpi_ex_setup_region()
156 (obj_desc->common_field.base_byte_offset + field_datum_byte_offset + in acpi_ex_setup_region()
157 obj_desc->common_field.access_byte_width)) { in acpi_ex_setup_region()
165 obj_desc->common_field. in acpi_ex_setup_region()
167 ((acpi_size) obj_desc->common_field. in acpi_ex_setup_region()
[all …]
Dnsobject.c76 union acpi_operand_object *obj_desc; in acpi_ns_attach_object() local
124 obj_desc = NULL; in acpi_ns_attach_object()
138 obj_desc = ((struct acpi_namespace_node *)object)->object; in acpi_ns_attach_object()
147 obj_desc = (union acpi_operand_object *)object; in acpi_ns_attach_object()
155 obj_desc, node, acpi_ut_get_node_name(node))); in acpi_ns_attach_object()
163 if (obj_desc) { in acpi_ns_attach_object()
168 acpi_ut_add_reference(obj_desc); in acpi_ns_attach_object()
174 last_obj_desc = obj_desc; in acpi_ns_attach_object()
185 node->object = obj_desc; in acpi_ns_attach_object()
206 union acpi_operand_object *obj_desc; in acpi_ns_detach_object() local
[all …]
Dexfield.c130 union acpi_operand_object *obj_desc, in acpi_ex_read_data_from_field() argument
140 ACPI_FUNCTION_TRACE_PTR(ex_read_data_from_field, obj_desc); in acpi_ex_read_data_from_field()
144 if (!obj_desc) { in acpi_ex_read_data_from_field()
151 if (obj_desc->common.type == ACPI_TYPE_BUFFER_FIELD) { in acpi_ex_read_data_from_field()
156 if (!(obj_desc->common.flags & AOPOBJ_DATA_VALID)) { in acpi_ex_read_data_from_field()
157 status = acpi_ds_get_buffer_field_arguments(obj_desc); in acpi_ex_read_data_from_field()
162 } else if ((obj_desc->common.type == ACPI_TYPE_LOCAL_REGION_FIELD) && in acpi_ex_read_data_from_field()
163 (obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
165 || obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
167 || obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
[all …]
Ddsobject.c82 union acpi_operand_object *obj_desc; in acpi_ds_build_internal_object() local
162 obj_desc = in acpi_ds_build_internal_object()
170 &obj_desc), in acpi_ds_build_internal_object()
183 type = obj_desc->common.type; in acpi_ds_build_internal_object()
228 obj_desc = acpi_ut_create_internal_object((acpi_ps_get_opcode_info in acpi_ds_build_internal_object()
231 if (!obj_desc) { in acpi_ds_build_internal_object()
237 &obj_desc); in acpi_ds_build_internal_object()
239 acpi_ut_remove_reference(obj_desc); in acpi_ds_build_internal_object()
244 *obj_desc_ptr = obj_desc; in acpi_ds_build_internal_object()
271 union acpi_operand_object *obj_desc; in acpi_ds_build_internal_buffer_obj() local
[all …]
Dexprep.c56 acpi_ex_decode_field_access(union acpi_operand_object *obj_desc,
225 acpi_ex_decode_field_access(union acpi_operand_object *obj_desc, in acpi_ex_decode_field_access() argument
241 acpi_ex_generate_access(obj_desc->common_field. in acpi_ex_decode_field_access()
243 obj_desc->common_field.bit_length, in acpi_ex_decode_field_access()
287 if (obj_desc->common.type == ACPI_TYPE_BUFFER_FIELD) { in acpi_ex_decode_field_access()
322 acpi_ex_prep_common_field_object(union acpi_operand_object *obj_desc, in acpi_ex_prep_common_field_object() argument
338 obj_desc->common_field.field_flags = field_flags; in acpi_ex_prep_common_field_object()
339 obj_desc->common_field.attribute = field_attribute; in acpi_ex_prep_common_field_object()
340 obj_desc->common_field.bit_length = field_bit_length; in acpi_ex_prep_common_field_object()
357 access_bit_width = acpi_ex_decode_field_access(obj_desc, field_flags, in acpi_ex_prep_common_field_object()
[all …]
Dnsdump.c176 union acpi_operand_object *obj_desc = NULL; in acpi_ns_dump_one_object() local
236 obj_desc = acpi_ns_get_attached_object(this_node); in acpi_ns_dump_one_object()
248 if (!obj_desc) { in acpi_ns_dump_one_object()
275 obj_desc->processor.proc_id, in acpi_ns_dump_one_object()
276 obj_desc->processor.length, in acpi_ns_dump_one_object()
277 ACPI_FORMAT_UINT64(obj_desc->processor. in acpi_ns_dump_one_object()
283 acpi_os_printf("Notify Object: %p\n", obj_desc); in acpi_ns_dump_one_object()
289 (u32) obj_desc->method.param_count, in acpi_ns_dump_one_object()
290 obj_desc->method.aml_length, in acpi_ns_dump_one_object()
291 obj_desc->method.aml_start); in acpi_ns_dump_one_object()
[all …]
Dexdump.c63 acpi_ex_dump_object(union acpi_operand_object *obj_desc,
66 static void acpi_ex_dump_reference_obj(union acpi_operand_object *obj_desc);
69 acpi_ex_dump_package_obj(union acpi_operand_object *obj_desc,
362 acpi_ex_dump_object(union acpi_operand_object *obj_desc, in acpi_ex_dump_object() argument
377 acpi_ut_get_object_type_name(obj_desc)); in acpi_ex_dump_object()
386 target = ACPI_ADD_PTR(u8, obj_desc, info->offset); in acpi_ex_dump_object()
397 obj_desc->common.type, in acpi_ex_dump_object()
398 acpi_ut_get_object_type_name(obj_desc)); in acpi_ex_dump_object()
433 acpi_ut_print_string(obj_desc->string.pointer, in acpi_ex_dump_object()
440 ACPI_DUMP_BUFFER(obj_desc->buffer.pointer, in acpi_ex_dump_object()
[all …]
Dexresop.c137 union acpi_operand_object *obj_desc; in acpi_ex_resolve_operands() local
181 obj_desc = *stack_ptr; in acpi_ex_resolve_operands()
185 switch (ACPI_GET_DESCRIPTOR_TYPE(obj_desc)) { in acpi_ex_resolve_operands()
191 ((struct acpi_namespace_node *)obj_desc)->type; in acpi_ex_resolve_operands()
199 obj_desc = in acpi_ex_resolve_operands()
202 *)obj_desc); in acpi_ex_resolve_operands()
203 *stack_ptr = obj_desc; in acpi_ex_resolve_operands()
205 ((struct acpi_namespace_node *)obj_desc)-> in acpi_ex_resolve_operands()
214 object_type = obj_desc->common.type; in acpi_ex_resolve_operands()
230 switch (obj_desc->reference.class) { in acpi_ex_resolve_operands()
[all …]
Dexcreate.c170 union acpi_operand_object *obj_desc; in acpi_ex_create_event() local
174 obj_desc = acpi_ut_create_internal_object(ACPI_TYPE_EVENT); in acpi_ex_create_event()
175 if (!obj_desc) { in acpi_ex_create_event()
185 &obj_desc->event.os_semaphore); in acpi_ex_create_event()
194 operands[0], obj_desc, ACPI_TYPE_EVENT); in acpi_ex_create_event()
201 acpi_ut_remove_reference(obj_desc); in acpi_ex_create_event()
222 union acpi_operand_object *obj_desc; in acpi_ex_create_mutex() local
228 obj_desc = acpi_ut_create_internal_object(ACPI_TYPE_MUTEX); in acpi_ex_create_mutex()
229 if (!obj_desc) { in acpi_ex_create_mutex()
236 status = acpi_os_create_mutex(&obj_desc->mutex.os_mutex); in acpi_ex_create_mutex()
[all …]
Dexresolv.c142 union acpi_operand_object *obj_desc = NULL; in acpi_ex_resolve_object_to_value() local
167 &obj_desc); in acpi_ex_resolve_object_to_value()
175 obj_desc)); in acpi_ex_resolve_object_to_value()
182 *stack_ptr = obj_desc; in acpi_ex_resolve_object_to_value()
205 obj_desc = *stack_desc->reference.where; in acpi_ex_resolve_object_to_value()
206 if (obj_desc) { in acpi_ex_resolve_object_to_value()
213 acpi_ut_add_reference(obj_desc); in acpi_ex_resolve_object_to_value()
214 *stack_ptr = obj_desc; in acpi_ex_resolve_object_to_value()
302 &obj_desc); in acpi_ex_resolve_object_to_value()
307 *stack_ptr = (void *)obj_desc; in acpi_ex_resolve_object_to_value()
[all …]
Ddsargs.c180 acpi_ds_get_buffer_field_arguments(union acpi_operand_object *obj_desc) in acpi_ds_get_buffer_field_arguments() argument
186 ACPI_FUNCTION_TRACE_PTR(ds_get_buffer_field_arguments, obj_desc); in acpi_ds_get_buffer_field_arguments()
188 if (obj_desc->common.flags & AOPOBJ_DATA_VALID) { in acpi_ds_get_buffer_field_arguments()
194 extra_desc = acpi_ns_get_secondary_object(obj_desc); in acpi_ds_get_buffer_field_arguments()
195 node = obj_desc->buffer_field.node; in acpi_ds_get_buffer_field_arguments()
225 acpi_ds_get_bank_field_arguments(union acpi_operand_object *obj_desc) in acpi_ds_get_bank_field_arguments() argument
231 ACPI_FUNCTION_TRACE_PTR(ds_get_bank_field_arguments, obj_desc); in acpi_ds_get_bank_field_arguments()
233 if (obj_desc->common.flags & AOPOBJ_DATA_VALID) { in acpi_ds_get_bank_field_arguments()
239 extra_desc = acpi_ns_get_secondary_object(obj_desc); in acpi_ds_get_bank_field_arguments()
240 node = obj_desc->bank_field.node; in acpi_ds_get_bank_field_arguments()
[all …]
Dutids.c72 union acpi_operand_object *obj_desc; in acpi_ut_execute_HID() local
81 &obj_desc); in acpi_ut_execute_HID()
88 if (obj_desc->common.type == ACPI_TYPE_INTEGER) { in acpi_ut_execute_HID()
91 length = obj_desc->string.length + 1; in acpi_ut_execute_HID()
111 if (obj_desc->common.type == ACPI_TYPE_INTEGER) { in acpi_ut_execute_HID()
112 acpi_ex_eisa_id_to_string(hid->string, obj_desc->integer.value); in acpi_ut_execute_HID()
114 ACPI_STRCPY(hid->string, obj_desc->string.pointer); in acpi_ut_execute_HID()
124 acpi_ut_remove_reference(obj_desc); in acpi_ut_execute_HID()
149 union acpi_operand_object *obj_desc; in acpi_ut_execute_SUB() local
157 ACPI_BTYPE_STRING, &obj_desc); in acpi_ut_execute_SUB()
[all …]
Ddsopcode.c60 union acpi_operand_object *obj_desc,
80 union acpi_operand_object *obj_desc; in acpi_ds_initialize_region() local
83 obj_desc = acpi_ns_get_attached_object(obj_handle); in acpi_ds_initialize_region()
87 status = acpi_ev_initialize_region(obj_desc, FALSE); in acpi_ds_initialize_region()
110 union acpi_operand_object *obj_desc, in acpi_ds_init_buffer_field() argument
122 ACPI_FUNCTION_TRACE_PTR(ds_init_buffer_field, obj_desc); in acpi_ds_init_buffer_field()
246 status = acpi_ex_prep_common_field_object(obj_desc, field_flags, 0, in acpi_ds_init_buffer_field()
252 obj_desc->buffer_field.buffer_obj = buffer_desc; in acpi_ds_init_buffer_field()
258 obj_desc->common.reference_count); in acpi_ds_init_buffer_field()
278 obj_desc->buffer_field.flags |= AOPOBJ_DATA_VALID; in acpi_ds_init_buffer_field()
[all …]
Ddsmethod.c92 union acpi_operand_object *obj_desc) in acpi_ds_auto_serialize_method() argument
124 obj_desc->method.aml_start, in acpi_ds_auto_serialize_method()
125 obj_desc->method.aml_length, NULL, 0); in acpi_ds_auto_serialize_method()
321 union acpi_operand_object *obj_desc, in acpi_ds_begin_method_execution() argument
334 if (obj_desc->method.thread_count == ACPI_UINT8_MAX) { in acpi_ds_begin_method_execution()
343 if (obj_desc->method.info_flags & ACPI_METHOD_SERIALIZED) { in acpi_ds_begin_method_execution()
349 if (!obj_desc->method.mutex) { in acpi_ds_begin_method_execution()
350 status = acpi_ds_create_method_mutex(obj_desc); in acpi_ds_begin_method_execution()
368 (!(obj_desc->method. in acpi_ds_begin_method_execution()
371 obj_desc->method.mutex->mutex.sync_level)) { in acpi_ds_begin_method_execution()
[all …]
Devhandler.c155 union acpi_operand_object *obj_desc; in acpi_ev_has_default_handler() local
160 obj_desc = acpi_ns_get_attached_object(node); in acpi_ev_has_default_handler()
161 if (obj_desc) { in acpi_ev_has_default_handler()
162 handler_obj = obj_desc->device.handler; in acpi_ev_has_default_handler()
204 union acpi_operand_object *obj_desc; in acpi_ev_install_handler() local
236 obj_desc = acpi_ns_get_attached_object(node); in acpi_ev_install_handler()
237 if (!obj_desc) { in acpi_ev_install_handler()
246 if (obj_desc->common.type == ACPI_TYPE_DEVICE) { in acpi_ev_install_handler()
250 next_handler_obj = obj_desc->device.handler; in acpi_ev_install_handler()
262 space_id), obj_desc, in acpi_ev_install_handler()
[all …]
Dexconvrt.c72 acpi_ex_convert_to_integer(union acpi_operand_object *obj_desc, in acpi_ex_convert_to_integer() argument
82 ACPI_FUNCTION_TRACE_PTR(ex_convert_to_integer, obj_desc); in acpi_ex_convert_to_integer()
84 switch (obj_desc->common.type) { in acpi_ex_convert_to_integer()
89 *result_desc = obj_desc; in acpi_ex_convert_to_integer()
97 pointer = obj_desc->buffer.pointer; in acpi_ex_convert_to_integer()
98 count = obj_desc->buffer.length; in acpi_ex_convert_to_integer()
119 switch (obj_desc->common.type) { in acpi_ex_convert_to_integer()
200 acpi_ex_convert_to_buffer(union acpi_operand_object *obj_desc, in acpi_ex_convert_to_buffer() argument
206 ACPI_FUNCTION_TRACE_PTR(ex_convert_to_buffer, obj_desc); in acpi_ex_convert_to_buffer()
208 switch (obj_desc->common.type) { in acpi_ex_convert_to_buffer()
[all …]
Drscreate.c220 union acpi_operand_object *obj_desc; in acpi_rs_create_pci_routing_table() local
297 obj_desc = sub_object_list[0]; in acpi_rs_create_pci_routing_table()
298 if (!obj_desc || obj_desc->common.type != ACPI_TYPE_INTEGER) { in acpi_rs_create_pci_routing_table()
302 acpi_ut_get_object_type_name(obj_desc))); in acpi_rs_create_pci_routing_table()
306 user_prt->address = obj_desc->integer.value; in acpi_rs_create_pci_routing_table()
310 obj_desc = sub_object_list[1]; in acpi_rs_create_pci_routing_table()
311 if (!obj_desc || obj_desc->common.type != ACPI_TYPE_INTEGER) { in acpi_rs_create_pci_routing_table()
315 acpi_ut_get_object_type_name(obj_desc))); in acpi_rs_create_pci_routing_table()
319 user_prt->pin = (u32) obj_desc->integer.value; in acpi_rs_create_pci_routing_table()
325 obj_desc = sub_object_list[2]; in acpi_rs_create_pci_routing_table()
[all …]
Dexresnte.c84 union acpi_operand_object *obj_desc = NULL; in acpi_ex_resolve_node_to_value() local
150 obj_desc = source_desc; in acpi_ex_resolve_node_to_value()
151 acpi_ut_add_reference(obj_desc); in acpi_ex_resolve_node_to_value()
168 obj_desc = source_desc; in acpi_ex_resolve_node_to_value()
169 acpi_ut_add_reference(obj_desc); in acpi_ex_resolve_node_to_value()
183 obj_desc = source_desc; in acpi_ex_resolve_node_to_value()
184 acpi_ut_add_reference(obj_desc); in acpi_ex_resolve_node_to_value()
197 obj_desc = source_desc; in acpi_ex_resolve_node_to_value()
198 acpi_ut_add_reference(obj_desc); in acpi_ex_resolve_node_to_value()
212 &obj_desc); in acpi_ex_resolve_node_to_value()
[all …]
Dnsaccess.c71 union acpi_operand_object *obj_desc; in acpi_ns_root_initialize() local
140 obj_desc = in acpi_ns_root_initialize()
142 if (!obj_desc) { in acpi_ns_root_initialize()
155 obj_desc->method.param_count = in acpi_ns_root_initialize()
157 obj_desc->common.flags |= AOPOBJ_DATA_VALID; in acpi_ns_root_initialize()
163 new_node->value = obj_desc->method.param_count; in acpi_ns_root_initialize()
167 obj_desc->method.info_flags = in acpi_ns_root_initialize()
169 obj_desc->method.dispatch.implementation = in acpi_ns_root_initialize()
176 obj_desc->integer.value = ACPI_TO_INTEGER(val); in acpi_ns_root_initialize()
183 obj_desc->string.length = (u32)ACPI_STRLEN(val); in acpi_ns_root_initialize()
[all …]
Dexconfig.c63 acpi_ex_region_read(union acpi_operand_object *obj_desc,
86 union acpi_operand_object *obj_desc; in acpi_ex_add_table() local
94 obj_desc = acpi_ut_create_internal_object(ACPI_TYPE_LOCAL_REFERENCE); in acpi_ex_add_table()
95 if (!obj_desc) { in acpi_ex_add_table()
101 obj_desc->common.flags |= AOPOBJ_DATA_VALID; in acpi_ex_add_table()
102 obj_desc->reference.class = ACPI_REFCLASS_TABLE; in acpi_ex_add_table()
103 *ddb_handle = obj_desc; in acpi_ex_add_table()
107 obj_desc->reference.value = table_index; in acpi_ex_add_table()
113 acpi_ut_remove_reference(obj_desc); in acpi_ex_add_table()
294 acpi_ex_region_read(union acpi_operand_object *obj_desc, u32 length, u8 *buffer) in acpi_ex_region_read() argument
[all …]
Dacinterp.h103 acpi_ex_convert_to_integer(union acpi_operand_object *obj_desc,
107 acpi_ex_convert_to_buffer(union acpi_operand_object *obj_desc,
111 acpi_ex_convert_to_string(union acpi_operand_object *obj_desc,
138 acpi_ex_common_buffer_setup(union acpi_operand_object *obj_desc,
142 acpi_ex_write_with_update_rule(union acpi_operand_object *obj_desc,
160 union acpi_operand_object *obj_desc,
165 union acpi_operand_object *obj_desc,
172 acpi_ex_extract_from_field(union acpi_operand_object *obj_desc,
176 acpi_ex_insert_into_field(union acpi_operand_object *obj_desc,
180 acpi_ex_access_region(union acpi_operand_object *obj_desc,
[all …]
Drsutils.c473 union acpi_operand_object *obj_desc; in acpi_rs_get_prt_method_data() local
483 ACPI_BTYPE_PACKAGE, &obj_desc); in acpi_rs_get_prt_method_data()
492 status = acpi_rs_create_pci_routing_table(obj_desc, ret_buffer); in acpi_rs_get_prt_method_data()
496 acpi_ut_remove_reference(obj_desc); in acpi_rs_get_prt_method_data()
522 union acpi_operand_object *obj_desc; in acpi_rs_get_crs_method_data() local
532 ACPI_BTYPE_BUFFER, &obj_desc); in acpi_rs_get_crs_method_data()
542 status = acpi_rs_create_resource_list(obj_desc, ret_buffer); in acpi_rs_get_crs_method_data()
546 acpi_ut_remove_reference(obj_desc); in acpi_rs_get_crs_method_data()
573 union acpi_operand_object *obj_desc; in acpi_rs_get_prs_method_data() local
583 ACPI_BTYPE_BUFFER, &obj_desc); in acpi_rs_get_prs_method_data()
[all …]
Duteval.c211 union acpi_operand_object *obj_desc; in acpi_ut_evaluate_numeric_object() local
217 ACPI_BTYPE_INTEGER, &obj_desc); in acpi_ut_evaluate_numeric_object()
224 *value = obj_desc->integer.value; in acpi_ut_evaluate_numeric_object()
228 acpi_ut_remove_reference(obj_desc); in acpi_ut_evaluate_numeric_object()
252 union acpi_operand_object *obj_desc; in acpi_ut_execute_STA() local
258 ACPI_BTYPE_INTEGER, &obj_desc); in acpi_ut_execute_STA()
279 *flags = (u32) obj_desc->integer.value; in acpi_ut_execute_STA()
283 acpi_ut_remove_reference(obj_desc); in acpi_ut_execute_STA()
310 union acpi_operand_object *obj_desc; in acpi_ut_execute_power_methods() local
325 ACPI_BTYPE_INTEGER, &obj_desc); in acpi_ut_execute_power_methods()
[all …]
Dnsrepair2.c119 acpi_ns_remove_element(union acpi_operand_object *obj_desc, u32 index);
447 union acpi_operand_object *obj_desc; in acpi_ns_repair_CST() local
472 obj_desc = (*outer_elements)->package.elements[1]; /* Index1 = Type */ in acpi_ns_repair_CST()
473 if ((u32)obj_desc->integer.value == 0) { in acpi_ns_repair_CST()
492 obj_desc = return_object->package.elements[0]; in acpi_ns_repair_CST()
493 obj_desc->integer.value = outer_element_count; in acpi_ns_repair_CST()
613 union acpi_operand_object *obj_desc; in acpi_ns_repair_PRT() local
641 obj_desc = sub_object_list[3]; in acpi_ns_repair_PRT()
642 if (!obj_desc || (obj_desc->common.type != ACPI_TYPE_INTEGER)) { in acpi_ns_repair_PRT()
644 sub_object_list[2] = obj_desc; in acpi_ns_repair_PRT()
[all …]

123