Lines Matching refs:method
104 op = acpi_ps_alloc_op(AML_METHOD_OP, obj_desc->method.aml_start); in acpi_ds_auto_serialize_method()
123 obj_desc->method.aml_start, in acpi_ds_auto_serialize_method()
124 obj_desc->method.aml_length, NULL, 0); in acpi_ds_auto_serialize_method()
181 walk_state->method_desc->method.sync_level = 0; in acpi_ds_detect_named_opcodes()
182 walk_state->method_desc->method.info_flags |= in acpi_ds_detect_named_opcodes()
300 mutex_desc->mutex.sync_level = method_desc->method.sync_level; in acpi_ds_create_method_mutex()
301 method_desc->method.mutex = mutex_desc; in acpi_ds_create_method_mutex()
339 if (obj_desc->method.thread_count == ACPI_UINT8_MAX) { in acpi_ds_begin_method_execution()
348 if (obj_desc->method.info_flags & ACPI_METHOD_SERIALIZED) { in acpi_ds_begin_method_execution()
354 if (!obj_desc->method.mutex) { in acpi_ds_begin_method_execution()
373 (!(obj_desc->method. in acpi_ds_begin_method_execution()
376 obj_desc->method.mutex->mutex.sync_level)) { in acpi_ds_begin_method_execution()
390 !obj_desc->method.mutex->mutex.thread_id || in acpi_ds_begin_method_execution()
392 obj_desc->method.mutex->mutex.thread_id)) { in acpi_ds_begin_method_execution()
398 acpi_ex_system_wait_mutex(obj_desc->method.mutex-> in acpi_ds_begin_method_execution()
408 obj_desc->method.mutex->mutex. in acpi_ds_begin_method_execution()
412 obj_desc->method.mutex->mutex.thread_id = in acpi_ds_begin_method_execution()
415 obj_desc->method.sync_level; in acpi_ds_begin_method_execution()
417 obj_desc->method.mutex->mutex. in acpi_ds_begin_method_execution()
419 obj_desc->method.mutex->mutex.sync_level; in acpi_ds_begin_method_execution()
421 obj_desc->method.mutex->mutex.thread_id = in acpi_ds_begin_method_execution()
428 obj_desc->method.mutex->mutex.acquisition_depth++; in acpi_ds_begin_method_execution()
436 if (!obj_desc->method.owner_id) { in acpi_ds_begin_method_execution()
437 status = acpi_ut_allocate_owner_id(&obj_desc->method.owner_id); in acpi_ds_begin_method_execution()
447 obj_desc->method.thread_count++; in acpi_ds_begin_method_execution()
454 if (obj_desc->method.mutex) { in acpi_ds_begin_method_execution()
455 acpi_os_release_mutex(obj_desc->method.mutex->mutex.os_mutex); in acpi_ds_begin_method_execution()
515 next_walk_state = acpi_ds_create_walk_state(obj_desc->method.owner_id, in acpi_ds_call_control_method()
543 obj_desc->method.aml_start, in acpi_ds_call_control_method()
544 obj_desc->method.aml_length, info, in acpi_ds_call_control_method()
556 for (i = 0; i < obj_desc->method.param_count; i++) { in acpi_ds_call_control_method()
571 if (obj_desc->method.info_flags & ACPI_METHOD_INTERNAL_ONLY) { in acpi_ds_call_control_method()
573 obj_desc->method.dispatch.implementation(next_walk_state); in acpi_ds_call_control_method()
718 if (method_desc->method.mutex) { in acpi_ds_terminate_control_method()
722 method_desc->method.mutex->mutex.acquisition_depth--; in acpi_ds_terminate_control_method()
723 if (!method_desc->method.mutex->mutex.acquisition_depth) { in acpi_ds_terminate_control_method()
725 method_desc->method.mutex->mutex. in acpi_ds_terminate_control_method()
728 acpi_os_release_mutex(method_desc->method. in acpi_ds_terminate_control_method()
730 method_desc->method.mutex->mutex.thread_id = 0; in acpi_ds_terminate_control_method()
742 if (!(method_desc->method.info_flags & ACPI_METHOD_MODULE_LEVEL) in acpi_ds_terminate_control_method()
743 && (method_desc->method.thread_count == 1)) { in acpi_ds_terminate_control_method()
757 if (method_desc->method. in acpi_ds_terminate_control_method()
760 method. in acpi_ds_terminate_control_method()
762 method_desc->method.info_flags &= in acpi_ds_terminate_control_method()
770 if (method_desc->method.thread_count) { in acpi_ds_terminate_control_method()
771 method_desc->method.thread_count--; in acpi_ds_terminate_control_method()
778 if (method_desc->method.thread_count) { in acpi_ds_terminate_control_method()
785 method_desc->method.thread_count)); in acpi_ds_terminate_control_method()
799 if (method_desc->method. in acpi_ds_terminate_control_method()
819 method_desc->method.info_flags &= in acpi_ds_terminate_control_method()
821 method_desc->method.info_flags |= in acpi_ds_terminate_control_method()
824 method_desc->method.sync_level = 0; in acpi_ds_terminate_control_method()
830 (method_desc->method. in acpi_ds_terminate_control_method()
832 acpi_ut_release_owner_id(&method_desc->method.owner_id); in acpi_ds_terminate_control_method()
837 method.node, method_desc, walk_state); in acpi_ds_terminate_control_method()