• Home
  • Raw
  • Download

Lines Matching refs:acpi_debugger

848 static struct acpi_debugger acpi_debugger;  variable
856 mutex_lock(&acpi_debugger.lock); in acpi_register_debugger()
857 if (acpi_debugger.ops) { in acpi_register_debugger()
862 acpi_debugger.owner = owner; in acpi_register_debugger()
863 acpi_debugger.ops = ops; in acpi_register_debugger()
866 mutex_unlock(&acpi_debugger.lock); in acpi_register_debugger()
873 mutex_lock(&acpi_debugger.lock); in acpi_unregister_debugger()
874 if (ops == acpi_debugger.ops) { in acpi_unregister_debugger()
875 acpi_debugger.ops = NULL; in acpi_unregister_debugger()
876 acpi_debugger.owner = NULL; in acpi_unregister_debugger()
878 mutex_unlock(&acpi_debugger.lock); in acpi_unregister_debugger()
890 mutex_lock(&acpi_debugger.lock); in acpi_debugger_create_thread()
891 if (!acpi_debugger.ops) { in acpi_debugger_create_thread()
895 if (!try_module_get(acpi_debugger.owner)) { in acpi_debugger_create_thread()
899 func = acpi_debugger.ops->create_thread; in acpi_debugger_create_thread()
900 owner = acpi_debugger.owner; in acpi_debugger_create_thread()
901 mutex_unlock(&acpi_debugger.lock); in acpi_debugger_create_thread()
905 mutex_lock(&acpi_debugger.lock); in acpi_debugger_create_thread()
908 mutex_unlock(&acpi_debugger.lock); in acpi_debugger_create_thread()
920 mutex_lock(&acpi_debugger.lock); in acpi_debugger_write_log()
921 if (!acpi_debugger.ops) { in acpi_debugger_write_log()
925 if (!try_module_get(acpi_debugger.owner)) { in acpi_debugger_write_log()
929 func = acpi_debugger.ops->write_log; in acpi_debugger_write_log()
930 owner = acpi_debugger.owner; in acpi_debugger_write_log()
931 mutex_unlock(&acpi_debugger.lock); in acpi_debugger_write_log()
935 mutex_lock(&acpi_debugger.lock); in acpi_debugger_write_log()
938 mutex_unlock(&acpi_debugger.lock); in acpi_debugger_write_log()
950 mutex_lock(&acpi_debugger.lock); in acpi_debugger_read_cmd()
951 if (!acpi_debugger.ops) { in acpi_debugger_read_cmd()
955 if (!try_module_get(acpi_debugger.owner)) { in acpi_debugger_read_cmd()
959 func = acpi_debugger.ops->read_cmd; in acpi_debugger_read_cmd()
960 owner = acpi_debugger.owner; in acpi_debugger_read_cmd()
961 mutex_unlock(&acpi_debugger.lock); in acpi_debugger_read_cmd()
965 mutex_lock(&acpi_debugger.lock); in acpi_debugger_read_cmd()
968 mutex_unlock(&acpi_debugger.lock); in acpi_debugger_read_cmd()
980 mutex_lock(&acpi_debugger.lock); in acpi_debugger_wait_command_ready()
981 if (!acpi_debugger.ops) { in acpi_debugger_wait_command_ready()
985 if (!try_module_get(acpi_debugger.owner)) { in acpi_debugger_wait_command_ready()
989 func = acpi_debugger.ops->wait_command_ready; in acpi_debugger_wait_command_ready()
990 owner = acpi_debugger.owner; in acpi_debugger_wait_command_ready()
991 mutex_unlock(&acpi_debugger.lock); in acpi_debugger_wait_command_ready()
996 mutex_lock(&acpi_debugger.lock); in acpi_debugger_wait_command_ready()
999 mutex_unlock(&acpi_debugger.lock); in acpi_debugger_wait_command_ready()
1011 mutex_lock(&acpi_debugger.lock); in acpi_debugger_notify_command_complete()
1012 if (!acpi_debugger.ops) { in acpi_debugger_notify_command_complete()
1016 if (!try_module_get(acpi_debugger.owner)) { in acpi_debugger_notify_command_complete()
1020 func = acpi_debugger.ops->notify_command_complete; in acpi_debugger_notify_command_complete()
1021 owner = acpi_debugger.owner; in acpi_debugger_notify_command_complete()
1022 mutex_unlock(&acpi_debugger.lock); in acpi_debugger_notify_command_complete()
1026 mutex_lock(&acpi_debugger.lock); in acpi_debugger_notify_command_complete()
1029 mutex_unlock(&acpi_debugger.lock); in acpi_debugger_notify_command_complete()
1035 mutex_init(&acpi_debugger.lock); in acpi_debugger_init()