Lines Matching refs:acpi_debugger

852 static struct acpi_debugger acpi_debugger;  variable
860 mutex_lock(&acpi_debugger.lock); in acpi_register_debugger()
861 if (acpi_debugger.ops) { in acpi_register_debugger()
866 acpi_debugger.owner = owner; in acpi_register_debugger()
867 acpi_debugger.ops = ops; in acpi_register_debugger()
870 mutex_unlock(&acpi_debugger.lock); in acpi_register_debugger()
877 mutex_lock(&acpi_debugger.lock); in acpi_unregister_debugger()
878 if (ops == acpi_debugger.ops) { in acpi_unregister_debugger()
879 acpi_debugger.ops = NULL; in acpi_unregister_debugger()
880 acpi_debugger.owner = NULL; in acpi_unregister_debugger()
882 mutex_unlock(&acpi_debugger.lock); in acpi_unregister_debugger()
894 mutex_lock(&acpi_debugger.lock); in acpi_debugger_create_thread()
895 if (!acpi_debugger.ops) { in acpi_debugger_create_thread()
899 if (!try_module_get(acpi_debugger.owner)) { in acpi_debugger_create_thread()
903 func = acpi_debugger.ops->create_thread; in acpi_debugger_create_thread()
904 owner = acpi_debugger.owner; in acpi_debugger_create_thread()
905 mutex_unlock(&acpi_debugger.lock); in acpi_debugger_create_thread()
909 mutex_lock(&acpi_debugger.lock); in acpi_debugger_create_thread()
912 mutex_unlock(&acpi_debugger.lock); in acpi_debugger_create_thread()
924 mutex_lock(&acpi_debugger.lock); in acpi_debugger_write_log()
925 if (!acpi_debugger.ops) { in acpi_debugger_write_log()
929 if (!try_module_get(acpi_debugger.owner)) { in acpi_debugger_write_log()
933 func = acpi_debugger.ops->write_log; in acpi_debugger_write_log()
934 owner = acpi_debugger.owner; in acpi_debugger_write_log()
935 mutex_unlock(&acpi_debugger.lock); in acpi_debugger_write_log()
939 mutex_lock(&acpi_debugger.lock); in acpi_debugger_write_log()
942 mutex_unlock(&acpi_debugger.lock); in acpi_debugger_write_log()
954 mutex_lock(&acpi_debugger.lock); in acpi_debugger_read_cmd()
955 if (!acpi_debugger.ops) { in acpi_debugger_read_cmd()
959 if (!try_module_get(acpi_debugger.owner)) { in acpi_debugger_read_cmd()
963 func = acpi_debugger.ops->read_cmd; in acpi_debugger_read_cmd()
964 owner = acpi_debugger.owner; in acpi_debugger_read_cmd()
965 mutex_unlock(&acpi_debugger.lock); in acpi_debugger_read_cmd()
969 mutex_lock(&acpi_debugger.lock); in acpi_debugger_read_cmd()
972 mutex_unlock(&acpi_debugger.lock); in acpi_debugger_read_cmd()
984 mutex_lock(&acpi_debugger.lock); in acpi_debugger_wait_command_ready()
985 if (!acpi_debugger.ops) { in acpi_debugger_wait_command_ready()
989 if (!try_module_get(acpi_debugger.owner)) { in acpi_debugger_wait_command_ready()
993 func = acpi_debugger.ops->wait_command_ready; in acpi_debugger_wait_command_ready()
994 owner = acpi_debugger.owner; in acpi_debugger_wait_command_ready()
995 mutex_unlock(&acpi_debugger.lock); in acpi_debugger_wait_command_ready()
1000 mutex_lock(&acpi_debugger.lock); in acpi_debugger_wait_command_ready()
1003 mutex_unlock(&acpi_debugger.lock); in acpi_debugger_wait_command_ready()
1015 mutex_lock(&acpi_debugger.lock); in acpi_debugger_notify_command_complete()
1016 if (!acpi_debugger.ops) { in acpi_debugger_notify_command_complete()
1020 if (!try_module_get(acpi_debugger.owner)) { in acpi_debugger_notify_command_complete()
1024 func = acpi_debugger.ops->notify_command_complete; in acpi_debugger_notify_command_complete()
1025 owner = acpi_debugger.owner; in acpi_debugger_notify_command_complete()
1026 mutex_unlock(&acpi_debugger.lock); in acpi_debugger_notify_command_complete()
1030 mutex_lock(&acpi_debugger.lock); in acpi_debugger_notify_command_complete()
1033 mutex_unlock(&acpi_debugger.lock); in acpi_debugger_notify_command_complete()
1039 mutex_init(&acpi_debugger.lock); in acpi_debugger_init()