Lines Matching full:acpi

7 #include "acpi.h"
13 #include <zephyr/acpi/acpi.h>
15 LOG_MODULE_REGISTER(ACPI, CONFIG_ACPI_LOG_LEVEL);
25 } acpi = { variable
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()
38 LOG_ERR("ACPI init was not success"); in check_init_status()
70 /* Initialize the ACPI subsystem */ in initialize_acpica()
73 ACPI_EXCEPTION((AE_INFO, status, "While initializing ACPI")); in initialize_acpica()
77 /* Initialize the ACPI Table Manager and get all ACPI tables */ in initialize_acpica()
78 if (!acpi.early_init) { in initialize_acpica()
86 /* Create the ACPI namespace from ACPI tables */ in initialize_acpica()
89 ACPI_EXCEPTION((AE_INFO, status, "While loading ACPI tables")); in initialize_acpica()
100 /* Initialize the ACPI hardware */ in initialize_acpica()
103 ACPI_EXCEPTION((AE_INFO, status, "While enabling ACPI")); in initialize_acpica()
107 /* Complete the ACPI namespace object initialization */ in initialize_acpica()
110 ACPI_EXCEPTION((AE_INFO, status, "While initializing ACPI objects")); in initialize_acpica()
152 LOG_ERR("No ACPI node with given name: %s", bus_name); in acpi_evaluate_method()
157 LOG_ERR("No ACPI node foud with given name: %s", bus_name); in acpi_evaluate_method()
166 LOG_ERR("No entry for the ACPI node with given name: %s", bus_name); in acpi_evaluate_method()
215 if (acpi.num_dev >= CONFIG_ACPI_DEV_MAX) { in dev_resource_enum_callback()
223 child_dev = (struct acpi_dev *)&acpi.child_dev[acpi.num_dev++]; in dev_resource_enum_callback()
267 if (acpi.early_init) { in acpi_early_init()
268 LOG_DBG("acpi early init already done"); in acpi_early_init()
274 LOG_ERR("Error in acpi table init:%d", status); in acpi_early_init()
278 acpi.early_init = true; in acpi_early_init()
367 if (((acpi.pci_prt_table[i].Address >> 16) & 0xffff) == slot && in acpi_legacy_irq_get()
368 acpi.pci_prt_table[i].Pin + 1 == pin) { in acpi_legacy_irq_get()
370 acpi.pci_prt_table[i].SourceIndex); in acpi_legacy_irq_get()
371 return acpi.pci_prt_table[i].SourceIndex; in acpi_legacy_irq_get()
381 ACPI_PCI_ROUTING_TABLE *rt_table = acpi.pci_prt_table; in acpi_legacy_irq_init()
398 rt_buffer.Length = ARRAY_SIZE(acpi.pci_prt_table) * sizeof(ACPI_PCI_ROUTING_TABLE); in acpi_legacy_irq_init()
417 for (size_t i = 0; i < ARRAY_SIZE(acpi.pci_prt_table); i++) { in acpi_legacy_irq_init()
418 if (!acpi.pci_prt_table[i].SourceIndex) { in acpi_legacy_irq_init()
423 arch_irq_set_used(acpi.pci_prt_table[i].SourceIndex); in acpi_legacy_irq_init()
496 LOG_DBG("Found Acpi resource with zero length!"); in acpi_device_mmio_get()
618 child_dev = &acpi.child_dev[i]; in acpi_device_get()
638 } while (i++ < acpi.num_dev); in acpi_device_get()
645 return index < acpi.num_dev ? &acpi.child_dev[index] : NULL; in acpi_device_by_index_get()
653 if (!acpi.early_init) { in acpi_table_get()
656 LOG_ERR("ACPI early init failed"); in acpi_table_get()
663 LOG_ERR("ACPI get table failed: %d", status); in acpi_table_get()
962 LOG_ERR("Error in ACPI init:%d", status); in acpi_init()
969 LOG_WRN("Error in enable pic mode acpi method:%d", status); in acpi_init()