Lines Matching +full:no +full:- +full:legacy +full:- +full:irq
4 * SPDX-License-Identifier: Apache-2.0
45 ret = -EIO; in check_init_status()
184 LOG_ERR("No ACPI node with given name: %s", bus_name); in acpi_evaluate_method()
188 if (handle->Type != ACPI_TYPE_DEVICE) { in acpi_evaluate_method()
189 LOG_ERR("No ACPI node foud with given name: %s", bus_name); in acpi_evaluate_method()
198 LOG_ERR("No entry for the ACPI node with given name: %s", bus_name); in acpi_evaluate_method()
238 return -ENODEV; in acpi_get_irq_table()
246 LOG_ERR("unable to retrieve IRQ Routing Table: %s", bus_name); in acpi_get_irq_table()
247 return -EIO; in acpi_get_irq_table()
251 if (!bus->pci_prt_table[i].SourceIndex) { in acpi_get_irq_table()
255 /* mark the PRT irq numbers as reserved. */ in acpi_get_irq_table()
256 arch_irq_set_used(bus->pci_prt_table[i].SourceIndex); in acpi_get_irq_table()
266 return acpi_get_irq_table(bus, "_SB.PC00", bus->pci_prt_table, sizeof(bus->pci_prt_table)); in acpi_retrieve_legacy_irq()
291 if (bus->num_dev >= CONFIG_ACPI_DEV_MAX) { in dev_resource_enum_callback()
295 child_dev = (struct acpi_dev *)&bus->child_dev[bus->num_dev++]; in dev_resource_enum_callback()
296 child_dev->handle = obj_handle; in dev_resource_enum_callback()
297 child_dev->dev_info = dev_info; in dev_resource_enum_callback()
301 LOG_ERR("No memory for path_name\n"); in dev_resource_enum_callback()
305 child_dev->path = path_name; in dev_resource_enum_callback()
315 child_dev->res_lst = rt_buffer.Pointer; in dev_resource_enum_callback()
361 LOG_ERR("Error in retrieve legacy interrupt info:%d", status); in acpi_init()
387 return -EIO; in acpi_early_init()
407 LOG_DBG("Device irq info: slot:%d pin:%d", slot, pin); in acpi_legacy_irq_get()
412 LOG_DBG("[%d]Device irq info: slot:%d pin:%d irq:%d", i, slot, pin, in acpi_legacy_irq_get()
437 status = -ENOTSUP; in acpi_current_resource_get()
447 status = -ENOTSUP; in acpi_current_resource_get()
473 status = -ENOTSUP; in acpi_possible_resource_get()
511 if (!res->Length) { in acpi_resource_parse()
514 } else if (res->Type == res_type) { in acpi_resource_parse()
518 } while (res->Type != ACPI_RESOURCE_TYPE_END_TAG); in acpi_resource_parse()
520 if (res->Type == ACPI_RESOURCE_TYPE_END_TAG) { in acpi_resource_parse()
531 switch (res->Type) { in acpi_res_type()
571 if (!res->Length) { in acpi_device_type_get()
580 } while (res->Type != ACPI_RESOURCE_TYPE_END_TAG); in acpi_device_type_get()
598 if (!child_dev->path) { in acpi_device_get()
603 if (!child_dev->res_lst || !child_dev->dev_info || in acpi_device_get()
604 !child_dev->dev_info->HardwareId.Length) { in acpi_device_get()
608 if (!strcmp(hid, child_dev->dev_info->HardwareId.String)) { in acpi_device_get()
609 if (child_dev->dev_info->UniqueId.Length) { in acpi_device_get()
610 inst_id = atoi(child_dev->dev_info->UniqueId.String); in acpi_device_get()
656 if (type == subtable->Type) { in acpi_get_subtable_entry_num()
659 offset += subtable->Length; in acpi_get_subtable_entry_num()
662 if (!subtable->Length) { in acpi_get_subtable_entry_num()
678 return -EIO; in acpi_madt_entry_get()
682 while (offset < madt->Length) { in acpi_madt_entry_get()
684 if (type == subtable->Type) { in acpi_madt_entry_get()
687 madt->Length); in acpi_madt_entry_get()
691 offset += subtable->Length; in acpi_madt_entry_get()
695 return -ENODEV; in acpi_madt_entry_get()
707 return -EIO; in acpi_dmar_entry_get()
711 while (offset < dmar->Header.Length) { in acpi_dmar_entry_get()
712 if (type == subtable->Type) { in acpi_dmar_entry_get()
716 offset += subtable->Length; in acpi_dmar_entry_get()
720 return -ENODEV; in acpi_dmar_entry_get()
742 scope_size = drdh->Length - sizeof(ACPI_DMAR_HARDWARE_UNIT); in acpi_drhd_get()
751 if (!subtable->Length) { in acpi_drhd_get()
755 if (scope == subtable->EntryType) { in acpi_drhd_get()
756 num_path = (subtable->Length - 6u) / 2u; in acpi_drhd_get()
760 while (num_path--) { in acpi_drhd_get()
763 return -ENOBUFS; in acpi_drhd_get()
765 dmar_id[i].bits.bus = subtable->Bus; in acpi_drhd_get()
773 offset += subtable->Length; in acpi_drhd_get()
775 if (scope_size < subtable->Length) { in acpi_drhd_get()
778 scope_size -= subtable->Length; in acpi_drhd_get()
784 return -ENODEV; in acpi_drhd_get()