Lines Matching refs:child_dev

18 	struct acpi_dev child_dev[CONFIG_ACPI_DEV_MAX];  member
199 struct acpi_dev *child_dev; in dev_resource_enum_callback() local
223 child_dev = (struct acpi_dev *)&acpi.child_dev[acpi.num_dev++]; in dev_resource_enum_callback()
224 child_dev->handle = obj_handle; in dev_resource_enum_callback()
225 child_dev->dev_info = dev_info; in dev_resource_enum_callback()
233 child_dev->path = path_name; in dev_resource_enum_callback()
243 child_dev->res_lst = rt_buffer.Pointer; in dev_resource_enum_callback()
380 struct acpi_dev *child_dev = acpi_device_get(hid, uid); in acpi_legacy_irq_init() local
386 if (!child_dev) { in acpi_legacy_irq_init()
391 node = acpi_evaluate_method(child_dev->path, METHOD_NAME__PRT); in acpi_legacy_irq_init()
393 LOG_ERR("Evaluation failed for given device: %s", child_dev->path); in acpi_legacy_irq_init()
402 LOG_ERR("unable to retrieve IRQ Routing Table: %s", child_dev->path); in acpi_legacy_irq_init()
450 int acpi_device_irq_get(struct acpi_dev *child_dev, struct acpi_irq_resource *irq_res) in acpi_device_irq_get() argument
452 ACPI_RESOURCE *res = acpi_resource_parse(child_dev->res_lst, ACPI_RESOURCE_TYPE_IRQ); in acpi_device_irq_get()
455 res = acpi_resource_parse(child_dev->res_lst, ACPI_RESOURCE_TYPE_EXTENDED_IRQ); in acpi_device_irq_get()
488 int acpi_device_mmio_get(struct acpi_dev *child_dev, struct acpi_mmio_resource *mmio_res) in acpi_device_mmio_get() argument
490 ACPI_RESOURCE *res = child_dev->res_lst; in acpi_device_mmio_get()
608 struct acpi_dev *child_dev; in acpi_device_get() local
618 child_dev = &acpi.child_dev[i]; in acpi_device_get()
619 if (!child_dev->path) { in acpi_device_get()
624 if (!child_dev->res_lst || !child_dev->dev_info || in acpi_device_get()
625 !child_dev->dev_info->HardwareId.Length) { in acpi_device_get()
629 if (!strcmp(hid, child_dev->dev_info->HardwareId.String)) { in acpi_device_get()
630 if (uid && child_dev->dev_info->UniqueId.Length) { in acpi_device_get()
631 if (!strcmp(child_dev->dev_info->UniqueId.String, uid)) { in acpi_device_get()
632 return child_dev; in acpi_device_get()
635 return child_dev; in acpi_device_get()
645 return index < acpi.num_dev ? &acpi.child_dev[index] : NULL; in acpi_device_by_index_get()