Lines Matching refs:method
70 op = acpi_ps_alloc_op(AML_METHOD_OP, obj_desc->method.aml_start); in acpi_ds_auto_serialize_method()
88 obj_desc->method.aml_start, in acpi_ds_auto_serialize_method()
89 obj_desc->method.aml_length, NULL, 0); in acpi_ds_auto_serialize_method()
146 walk_state->method_desc->method.sync_level = 0; in acpi_ds_detect_named_opcodes()
147 walk_state->method_desc->method.info_flags |= in acpi_ds_detect_named_opcodes()
269 mutex_desc->mutex.sync_level = method_desc->method.sync_level; in acpi_ds_create_method_mutex()
270 method_desc->method.mutex = mutex_desc; in acpi_ds_create_method_mutex()
308 if (obj_desc->method.thread_count == ACPI_UINT8_MAX) { in acpi_ds_begin_method_execution()
317 if (obj_desc->method.info_flags & ACPI_METHOD_SERIALIZED) { in acpi_ds_begin_method_execution()
323 if (!obj_desc->method.mutex) { in acpi_ds_begin_method_execution()
342 (!(obj_desc->method. in acpi_ds_begin_method_execution()
345 obj_desc->method.mutex->mutex.sync_level)) { in acpi_ds_begin_method_execution()
360 !obj_desc->method.mutex->mutex.thread_id || in acpi_ds_begin_method_execution()
362 obj_desc->method.mutex->mutex.thread_id)) { in acpi_ds_begin_method_execution()
368 acpi_ex_system_wait_mutex(obj_desc->method.mutex-> in acpi_ds_begin_method_execution()
378 obj_desc->method.mutex->mutex. in acpi_ds_begin_method_execution()
382 obj_desc->method.mutex->mutex.thread_id = in acpi_ds_begin_method_execution()
392 if (!(obj_desc->method.info_flags & in acpi_ds_begin_method_execution()
395 obj_desc->method.sync_level; in acpi_ds_begin_method_execution()
398 obj_desc->method.mutex->mutex. in acpi_ds_begin_method_execution()
400 obj_desc->method.mutex->mutex.sync_level; in acpi_ds_begin_method_execution()
402 obj_desc->method.mutex->mutex.thread_id = in acpi_ds_begin_method_execution()
409 obj_desc->method.mutex->mutex.acquisition_depth++; in acpi_ds_begin_method_execution()
417 if (!obj_desc->method.owner_id) { in acpi_ds_begin_method_execution()
418 status = acpi_ut_allocate_owner_id(&obj_desc->method.owner_id); in acpi_ds_begin_method_execution()
428 obj_desc->method.thread_count++; in acpi_ds_begin_method_execution()
435 if (obj_desc->method.mutex) { in acpi_ds_begin_method_execution()
436 acpi_os_release_mutex(obj_desc->method.mutex->mutex.os_mutex); in acpi_ds_begin_method_execution()
498 acpi_ds_create_walk_state(obj_desc->method.owner_id, NULL, obj_desc, in acpi_ds_call_control_method()
526 obj_desc->method.aml_start, in acpi_ds_call_control_method()
527 obj_desc->method.aml_length, info, in acpi_ds_call_control_method()
542 for (i = 0; i < obj_desc->method.param_count; i++) { in acpi_ds_call_control_method()
568 if (obj_desc->method.info_flags & ACPI_METHOD_INTERNAL_ONLY) { in acpi_ds_call_control_method()
570 obj_desc->method.dispatch.implementation(next_walk_state); in acpi_ds_call_control_method()
719 if (!(method_desc->method.info_flags & ACPI_METHOD_MODULE_LEVEL) in acpi_ds_terminate_control_method()
720 && (method_desc->method.thread_count == 1)) { in acpi_ds_terminate_control_method()
736 if (method_desc->method. in acpi_ds_terminate_control_method()
740 method. in acpi_ds_terminate_control_method()
743 method_desc->method.info_flags &= in acpi_ds_terminate_control_method()
752 if (method_desc->method.mutex) { in acpi_ds_terminate_control_method()
756 method_desc->method.mutex->mutex.acquisition_depth--; in acpi_ds_terminate_control_method()
757 if (!method_desc->method.mutex->mutex.acquisition_depth) { in acpi_ds_terminate_control_method()
759 method_desc->method.mutex->mutex. in acpi_ds_terminate_control_method()
762 acpi_os_release_mutex(method_desc->method. in acpi_ds_terminate_control_method()
764 method_desc->method.mutex->mutex.thread_id = 0; in acpi_ds_terminate_control_method()
771 if (method_desc->method.thread_count) { in acpi_ds_terminate_control_method()
772 method_desc->method.thread_count--; in acpi_ds_terminate_control_method()
779 if (method_desc->method.thread_count) { in acpi_ds_terminate_control_method()
786 method_desc->method.thread_count)); in acpi_ds_terminate_control_method()
800 if (method_desc->method. in acpi_ds_terminate_control_method()
820 method_desc->method.info_flags &= in acpi_ds_terminate_control_method()
823 method_desc->method.info_flags |= in acpi_ds_terminate_control_method()
826 method_desc->method.sync_level = 0; in acpi_ds_terminate_control_method()
832 (method_desc->method. in acpi_ds_terminate_control_method()
834 acpi_ut_release_owner_id(&method_desc->method.owner_id); in acpi_ds_terminate_control_method()
839 method.node, method_desc, walk_state); in acpi_ds_terminate_control_method()