Lines Matching full:find
126 AcpiPciHpFind *find = opaque; in acpi_pcihp_test_hotplug_bus() local
127 if (find->bsel == acpi_pcihp_get_bsel(bus)) { in acpi_pcihp_test_hotplug_bus()
128 find->bus = bus; in acpi_pcihp_test_hotplug_bus()
134 AcpiPciHpFind find = { .bsel = bsel, .bus = NULL }; in acpi_pcihp_find_hotplug_bus() local
140 pci_for_each_bus(s->root, acpi_pcihp_test_hotplug_bus, &find); in acpi_pcihp_find_hotplug_bus()
146 if (!bsel && !find.bus) { in acpi_pcihp_find_hotplug_bus()
147 find.bus = s->root; in acpi_pcihp_find_hotplug_bus()
151 * Check if find.bus is actually hotpluggable. If bsel is set to in acpi_pcihp_find_hotplug_bus()
153 * non-hotpluggable, find.bus will match the root bus when bsel in acpi_pcihp_find_hotplug_bus()
156 * Instead, we should set find.bus to NULL in that case. In the check in acpi_pcihp_find_hotplug_bus()
161 if (find.bus && !qbus_is_hotpluggable(BUS(find.bus))) { in acpi_pcihp_find_hotplug_bus()
162 find.bus = NULL; in acpi_pcihp_find_hotplug_bus()
164 return find.bus; in acpi_pcihp_find_hotplug_bus()