device_find_child
ivhd_devs[i] = device_find_child(parent, "ivhd", i);
if (device_find_child(parent, "bcm2835_cpufreq", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "tegra124_coretemp", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "tegra124_cpufreq", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "am335x_scm", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "tegra210_coretemp", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "tegra210_cpufreq", DEVICE_UNIT_ANY) != NULL)
while ((child = device_find_child(adapter->dev.parent->bsddev, "lkpi_iic", unit++)) != NULL) {
while ((child = device_find_child(adapter->dev.parent->bsddev, "lkpi_iicbb", unit++)) != NULL) {
child = device_find_child(adapter->dev.parent->bsddev,
if (device_find_child(parent, "aesni", DEVICE_UNIT_ANY) == NULL &&
if (device_find_child(parent, "armv8crypto", DEVICE_UNIT_ANY) == NULL &&
if (device_find_child(parent, "blaketwo", DEVICE_UNIT_ANY) == NULL &&
if (device_find_child(parent, "ossl", DEVICE_UNIT_ANY) == NULL)
if (device_find_child(parent, "padlock", DEVICE_UNIT_ANY) == NULL &&
if (device_find_child(parent, "acpi_asus_wmi", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "acpi_hp", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "acpi_sbl_wmi", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "acpi_perf", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "acpi_throttle", DEVICE_UNIT_ANY))
if (device_find_child(device_get_parent(dev), "p4tcc", DEVICE_UNIT_ANY)
if (device_find_child(parent, "acpi_video", DEVICE_UNIT_ANY) == NULL)
if (device_find_child(parent, "agp", DEVICE_UNIT_ANY) == NULL &&
if (device_find_child(parent, "amdsbwd", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "amdsmn", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "amdsmu", -1) != NULL)
if (device_find_child(parent, "amdtemp", DEVICE_UNIT_ANY) != NULL)
sc->sc_smn = device_find_child(
nexus = device_find_child(root_bus, "nexus", 0);
acpi = device_find_child(nexus, "acpi", 0);
cpu = device_find_child(acpi, "cpu",
psmc = device_find_child(device_get_parent(parent),
psm = device_find_child(atkbdc, PSM_DRIVER_NAME,
if ((nvram = device_find_child(dev, "bhnd_nvram", DEVICE_UNIT_ANY)) != NULL)
if (device_find_child(bus, slaves[i].name, DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "coretemp", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "cpufreq_dt", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "ichss", DEVICE_UNIT_ANY))
perf_dev = device_find_child(device_get_parent(dev), "acpi_perf",
est_dev = device_find_child(device_get_parent(dev), "est",
device_find_child(parent, "ccr", DEVICE_UNIT_ANY) == NULL)
if (device_find_child(parent, "efirtc", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "e6000sw", DEVICE_UNIT_ANY) == NULL)
if (device_find_child(parent, "etherswitch", DEVICE_UNIT_ANY) == NULL)
if (device_find_child(parent, "ip17x", DEVICE_UNIT_ANY) == NULL)
if (device_find_child(parent, driver->name, DEVICE_UNIT_ANY) == NULL) {
if (device_find_child(parent, "rtl8366rb", DEVICE_UNIT_ANY) == NULL) {
child = device_find_child(parent, device_get_name(dev), i);
child = device_find_child(parent, device_get_name(dev), i);
if (device_find_child(parent, "sbp", DEVICE_UNIT_ANY) == NULL)
if (device_find_child(parent, driver->name, DEVICE_UNIT_ANY) != NULL)
if (device_find_child(bus, dname, dunit) != NULL) {
if (device_find_child(parent, HIDRAW_NAME, DEVICE_UNIT_ANY) == NULL) {
device_find_child(parent, VMBUS_ET_NAME, DEVICE_UNIT_ANY) != NULL ||
if ((dev = device_find_child(parent, driver->name, 0)) == NULL)
if (device_find_child(parent, "iic", DEVICE_UNIT_ANY) == NULL)
if (device_find_child(parent, "iicsmb", DEVICE_UNIT_ANY) == NULL)
device_find_child(parent, "ipmi", DEVICE_UNIT_ANY) == NULL) {
device_find_child(parent, "ipmi", DEVICE_UNIT_ANY) == NULL)
if (device_find_child(parent, "asl", DEVICE_UNIT_ANY)) {
if (device_find_child(parent, KVM_CLOCK_DEVNAME, DEVICE_UNIT_ANY))
if (device_find_child(parent, mdio_driver.name, DEVICE_UNIT_ANY) == NULL)
mfip_dev = device_find_child(sc->mfi_dev, "mfip", DEVICE_UNIT_ANY);
if (device_find_child(parent, "mmcnull", DEVICE_UNIT_ANY))
if (device_find_child(parent, driver->name, DEVICE_UNIT_ANY) != NULL)
dev = device_find_child(parent, "plip", DEVICE_UNIT_ANY);
dev = device_find_child(parent, "lpbb", DEVICE_UNIT_ANY);
dev = device_find_child(parent, LPT_NAME, DEVICE_UNIT_ANY);
dev = device_find_child(parent, PCFCLOCK_NAME, DEVICE_UNIT_ANY);
dev = device_find_child(parent, "ppi", DEVICE_UNIT_ANY);
dev = device_find_child(parent, PPS_NAME, DEVICE_UNIT_ANY);
if (device_find_child(parent, "qat_ocf", DEVICE_UNIT_ANY) == NULL &&
if (device_find_child(parent, "smb", DEVICE_UNIT_ANY) == NULL)
if (device_find_child(parent, driver->name, DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "superio", DEVICE_UNIT_ANY)) {
if (device_find_child(parent, "nhi_wmi", -1) != NULL)
if (device_find_child(parent, driver->name, DEVICE_UNIT_ANY) == NULL)
if ((cf_dev = device_find_child(cpu_dev, "cpufreq", DEVICE_UNIT_ANY))) {
cf_dev = device_find_child(device_get_parent(dev), "cpufreq",
if (device_find_child(parent, "cryptosoft", DEVICE_UNIT_ANY) == NULL &&
if (device_find_child(parent, "dfs", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "mpc85xx_jog", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "pcr", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "pmcr", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "pmufreq", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "backlight", DEVICE_UNIT_ANY) == NULL)
if (device_find_child(parent, "backlight", DEVICE_UNIT_ANY) == NULL)
if (device_find_child(parent, "ps3bus", DEVICE_UNIT_ANY) == NULL)
if (device_find_child(parent, "ps3pic", DEVICE_UNIT_ANY) == NULL)
if (device_find_child(parent, "intc", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "sbi", DEVICE_UNIT_ANY) != NULL)
device_t device_find_child(device_t dev, const char *classname,
perf_dev = device_find_child(device_get_parent(dev), "acpi_perf",
if (device_find_child(parent, "hwpstate_intel", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "est", DEVICE_UNIT_ANY) != NULL)
perf_dev = device_find_child(device_get_parent(dev), "acpi_perf",
if (device_find_child(parent, HWP_AMD_CLASSNAME, DEVICE_UNIT_ANY) !=
perf_dev = device_find_child(device_get_parent(dev), "acpi_perf",
if (device_find_child(parent, "hwpstate_intel", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "p4tcc", DEVICE_UNIT_ANY) != NULL)
if (device_find_child(parent, "powernow", DEVICE_UNIT_ANY) != NULL)
child = device_find_child(device_get_parent(dev), "acpi_perf",
if (device_find_child(parent, "smist", DEVICE_UNIT_ANY) != NULL)
perf_dev = device_find_child(device_get_parent(dev), "acpi_perf",
ichss_dev = device_find_child(device_get_parent(dev), "ichss",