Lines Matching refs:status
24 ACPI_STATUS status; member
26 .status = AE_NOT_CONFIGURED,
33 if (acpi.status == AE_NOT_CONFIGURED) { in check_init_status()
34 acpi.status = acpi_init(); in check_init_status()
37 if (ACPI_FAILURE(acpi.status)) { in check_init_status()
52 ACPI_STATUS status; in install_handlers() local
55 status = AcpiInstallNotifyHandler(ACPI_ROOT_OBJECT, ACPI_SYSTEM_NOTIFY, notify_handler, in install_handlers()
57 if (ACPI_FAILURE(status)) { in install_handlers()
58 ACPI_EXCEPTION((AE_INFO, status, "While installing Notify handler")); in install_handlers()
63 return status; in install_handlers()
68 ACPI_STATUS status; in initialize_acpica() local
71 status = AcpiInitializeSubsystem(); in initialize_acpica()
72 if (ACPI_FAILURE(status)) { in initialize_acpica()
73 ACPI_EXCEPTION((AE_INFO, status, "While initializing ACPI")); in initialize_acpica()
79 status = AcpiInitializeTables(NULL, 16, FALSE); in initialize_acpica()
80 if (ACPI_FAILURE(status)) { in initialize_acpica()
81 ACPI_EXCEPTION((AE_INFO, status, "While initializing Table Manager")); in initialize_acpica()
87 status = AcpiLoadTables(); in initialize_acpica()
88 if (ACPI_FAILURE(status)) { in initialize_acpica()
89 ACPI_EXCEPTION((AE_INFO, status, "While loading ACPI tables")); in initialize_acpica()
94 status = install_handlers(); in initialize_acpica()
95 if (ACPI_FAILURE(status)) { in initialize_acpica()
96 ACPI_EXCEPTION((AE_INFO, status, "While installing handlers")); in initialize_acpica()
101 status = AcpiEnableSubsystem(ACPI_FULL_INITIALIZATION); in initialize_acpica()
102 if (ACPI_FAILURE(status)) { in initialize_acpica()
103 ACPI_EXCEPTION((AE_INFO, status, "While enabling ACPI")); in initialize_acpica()
108 status = AcpiInitializeObjects(ACPI_FULL_INITIALIZATION); in initialize_acpica()
109 if (ACPI_FAILURE(status)) { in initialize_acpica()
110 ACPI_EXCEPTION((AE_INFO, status, "While initializing ACPI objects")); in initialize_acpica()
114 return status; in initialize_acpica()
120 ACPI_STATUS status; in acpi_name_lookup() local
125 status = AcpiNsInternalizeName(name, &path); in acpi_name_lookup()
126 if (ACPI_FAILURE(status)) { in acpi_name_lookup()
131 status = AcpiNsLookup(NULL, path, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, in acpi_name_lookup()
133 if (ACPI_FAILURE(status)) { in acpi_name_lookup()
134 LOG_ERR("Could not locate name: %s, %d", name, status); in acpi_name_lookup()
176 ACPI_STATUS status; in acpi_enable_pic_mode() local
186 status = AcpiEvaluateObject(NULL, "\\_PIC", &arg_list, NULL); in acpi_enable_pic_mode()
187 if (ACPI_FAILURE(status)) { in acpi_enable_pic_mode()
188 LOG_WRN("error While executing \\_pic method: %d", status); in acpi_enable_pic_mode()
191 return status; in acpi_enable_pic_mode()
203 ACPI_STATUS status; in dev_resource_enum_callback() local
209 status = AcpiGetObjectInfo(obj_handle, &dev_info); in dev_resource_enum_callback()
210 if (ACPI_FAILURE(status)) { in dev_resource_enum_callback()
211 LOG_ERR("AcpiGetObjectInfo failed: %s", AcpiFormatException(status)); in dev_resource_enum_callback()
239 status = AcpiGetCurrentResources(node, &rt_buffer); in dev_resource_enum_callback()
240 if (ACPI_FAILURE(status)) { in dev_resource_enum_callback()
241 LOG_DBG("AcpiGetCurrentResources failed: %s", AcpiFormatException(status)); in dev_resource_enum_callback()
263 ACPI_STATUS status; in acpi_early_init() local
272 status = AcpiInitializeTables(NULL, 16, FALSE); in acpi_early_init()
273 if (ACPI_FAILURE(status)) { in acpi_early_init()
274 LOG_ERR("Error in acpi table init:%d", status); in acpi_early_init()
287 ACPI_STATUS status; in acpi_current_resource_get() local
291 status = check_init_status(); in acpi_current_resource_get()
292 if (status) { in acpi_current_resource_get()
305 status = AcpiGetCurrentResources(node, &rt_buffer); in acpi_current_resource_get()
306 if (ACPI_FAILURE(status)) { in acpi_current_resource_get()
307 LOG_ERR("AcpiGetCurrentResources failed: %s", AcpiFormatException(status)); in acpi_current_resource_get()
320 ACPI_STATUS status; in acpi_possible_resource_get() local
324 status = check_init_status(); in acpi_possible_resource_get()
325 if (status) { in acpi_possible_resource_get()
384 ACPI_STATUS status; in acpi_legacy_irq_init() local
400 status = AcpiGetIrqRoutingTable(node, &rt_buffer); in acpi_legacy_irq_init()
401 if (ACPI_FAILURE(status)) { in acpi_legacy_irq_init()
650 ACPI_STATUS status; in acpi_table_get() local
654 status = acpi_early_init(); in acpi_table_get()
655 if (status) { in acpi_table_get()
661 status = AcpiGetTable(signature, inst, &table); in acpi_table_get()
662 if (ACPI_FAILURE(status)) { in acpi_table_get()
663 LOG_ERR("ACPI get table failed: %d", status); in acpi_table_get()
936 ACPI_STATUS status; in acpi_invoke_method() local
942 status = AcpiEvaluateObject(NULL, path, arg_list, &ret_buff); in acpi_invoke_method()
943 if (ACPI_FAILURE(status)) { in acpi_invoke_method()
944 LOG_ERR("error While executing %s method: %d", path, status); in acpi_invoke_method()
953 ACPI_STATUS status; in acpi_init() local
960 status = initialize_acpica(); in acpi_init()
961 if (ACPI_FAILURE(status)) { in acpi_init()
962 LOG_ERR("Error in ACPI init:%d", status); in acpi_init()
967 status = acpi_enable_pic_mode(); in acpi_init()
968 if (ACPI_FAILURE(status)) { in acpi_init()
969 LOG_WRN("Error in enable pic mode acpi method:%d", status); in acpi_init()
975 return status; in acpi_init()