Lines Matching refs:child_dev
18 struct acpi_dev child_dev[CONFIG_ACPI_DEV_MAX]; member
275 struct acpi_dev *child_dev; in dev_resource_enum_callback() local
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()
305 child_dev->path = path_name; in dev_resource_enum_callback()
315 child_dev->res_lst = rt_buffer.Pointer; in dev_resource_enum_callback()
587 struct acpi_dev *child_dev; in acpi_device_get() local
597 child_dev = &bus_ctx.child_dev[i]; in acpi_device_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()
612 return child_dev; in acpi_device_get()
615 return child_dev; in acpi_device_get()
625 return index < bus_ctx.num_dev ? &bus_ctx.child_dev[index] : NULL; in acpi_device_by_index_get()