Home
last modified time | relevance | path

Searched refs:bootdv (Results 1 – 20 of 20) sorted by relevance

/openbsd/sys/arch/armv7/armv7/
H A Dautoconf.c57 struct device *bootdv = NULL; variable
116 if (bootdv == NULL) { in diskconf()
123 bootdv = parsedisk(boot_file, len, 0, &tmpdev); in diskconf()
137 bootdv = parsedisk(ifp->if_xname, strlen(ifp->if_xname), in diskconf()
142 if (bootdv != NULL) in diskconf()
143 printf("boot device: %s\n", bootdv->dv_xname); in diskconf()
146 setroot(bootdv, 0, RB_USERREQ); in diskconf()
/openbsd/sys/arch/macppc/macppc/
H A Dautoconf.c86 struct device *bootdv = NULL; variable
239 if (bootdv != NULL || dev->dv_class != bootdev_class) in device_register()
249 bootdv = dev; in device_register()
257 bootdv = dev; in device_register()
262 bootdv = dev; in device_register()
275 if (bootdv != NULL) in diskconf()
276 bootdv = mpath_bootdv(bootdv); in diskconf()
279 setroot(bootdv, 0, RB_USERREQ); in diskconf()
/openbsd/sys/arch/octeon/octeon/
H A Dautoconf.c32 struct device *bootdv = NULL; variable
145 if (bootdv != NULL) in diskconf()
146 printf("boot device: %s\n", bootdv->dv_xname); in diskconf()
148 setroot(bootdv, 0, RB_USERREQ); in diskconf()
155 if (bootdv != NULL || dev->dv_class != bootdev_class) in device_register()
162 bootdv = dev; in device_register()
/openbsd/sys/arch/loongson/loongson/
H A Dautoconf.c34 struct device *bootdv = NULL; variable
132 if (bootdv != NULL) in diskconf()
133 printf("boot device: %s\n", bootdv->dv_xname); in diskconf()
135 setroot(bootdv, 0, RB_USERREQ); in diskconf()
146 if (bootdv != NULL) in device_register()
H A Dyeeloong_machdep.c551 bootdv = dev; in lemote_device_register()
558 bootdv = dev; in lemote_device_register()
566 bootdv = dev; in lemote_device_register()
H A Dgeneric3a_machdep.c238 bootdv = dev; in generic3a_device_register()
245 bootdv = dev; in generic3a_device_register()
253 bootdv = dev; in generic3a_device_register()
H A Dgeneric2e_machdep.c376 bootdv = dev; in generic2e_device_register()
383 bootdv = dev; in generic2e_device_register()
391 bootdv = dev; in generic2e_device_register()
H A Dgdium_machdep.c253 bootdv = dev; in gdium_device_register()
/openbsd/sys/arch/luna88k/luna88k/
H A Dautoconf.c66 struct device *bootdv; /* set by device drivers (if found) */ variable
98 (bootdv) ? bootdv->dv_xname : "<unknown>"); in diskconf()
99 setroot(bootdv, 0, RB_USERREQ); in diskconf()
201 bootdv = dev; in device_register()
/openbsd/sys/arch/amd64/amd64/
H A Dautoconf.c176 struct device *bootdv = NULL; in diskconf() local
189 bootdv = parsedisk(buf, strlen(buf), part, &tmpdev); in diskconf()
206 bootdv = parsedisk(ifp->if_xname, strlen(ifp->if_xname), in diskconf()
215 setroot(bootdv, part, RB_USERREQ); in diskconf()
/openbsd/sys/arch/powerpc64/powerpc64/
H A Dautoconf.c50 struct device *bootdv = NULL; in diskconf() local
64 bootdv = parsedisk(ifp->if_xname, strlen(ifp->if_xname), in diskconf()
69 setroot(bootdv, part, RB_USERREQ); in diskconf()
/openbsd/sys/arch/i386/i386/
H A Dautoconf.c203 struct device *bootdv = NULL; in diskconf() local
216 bootdv = parsedisk(buf, strlen(buf), part, &tmpdev); in diskconf()
233 bootdv = parsedisk(ifp->if_xname, strlen(ifp->if_xname), in diskconf()
242 setroot(bootdv, part, RB_USERREQ); in diskconf()
/openbsd/sys/arch/riscv64/riscv64/
H A Dautoconf.c68 struct device *bootdv = NULL; in diskconf() local
82 bootdv = parsedisk(ifp->if_xname, strlen(ifp->if_xname), in diskconf()
87 setroot(bootdv, part, RB_USERREQ); in diskconf()
/openbsd/sys/arch/arm64/arm64/
H A Dautoconf.c80 struct device *bootdv = NULL; in diskconf() local
94 bootdv = parsedisk(ifp->if_xname, strlen(ifp->if_xname), in diskconf()
99 setroot(bootdv, part, RB_USERREQ); in diskconf()
/openbsd/sys/arch/hppa/hppa/
H A Dautoconf.c70 struct device *bootdv; variable
375 if (bootdv != NULL) in device_register()
425 bootdv = dev; in device_register()
470 bootdv = dev; in device_register()
506 if (bootdv != NULL) in diskconf()
507 bootdv = mpath_bootdv(bootdv); in diskconf()
510 setroot(bootdv, 0, RB_USERREQ); in diskconf()
/openbsd/sys/arch/alpha/alpha/
H A Dautoconf.c111 struct device *bootdv; in diskconf() local
117 bootdv = booted_device; in diskconf()
120 setroot(bootdv, bootpartition, RB_USERREQ); in diskconf()
/openbsd/sys/kern/
H A Dsubr_disk.c1460 if (dk->dk_device == bootdv) in setroot()
1464 } else if (bootdv == NULL) { in setroot()
1470 bootdv = dk->dk_device; in setroot()
1488 if (bootdv != NULL) { in setroot()
1490 if (bootdv->dv_class == DV_DISK) in setroot()
1502 if (len == 0 && bootdv != NULL) { in setroot()
1571 rootdv = bootdv; in setroot()
1578 rootdv = bootdv; in setroot()
1580 if (bootdv->dv_class == DV_DISK) { in setroot()
1624 if (bootdv != NULL && bootdv->dv_class == DV_IFNET) in setroot()
[all …]
/openbsd/sys/arch/octeon/include/
H A Dautoconf.h42 extern struct device *bootdv;
/openbsd/sys/arch/sparc64/sparc64/
H A Dautoconf.c792 struct device *bootdv; in diskconf() local
797 bootdv = (bp == NULL) ? NULL : bp->dev; in diskconf()
800 if (bootdv != NULL) in diskconf()
801 bootdv = mpath_bootdv(bootdv); in diskconf()
804 setroot(bootdv, bp->val[2], RB_USERREQ | RB_HALT); in diskconf()
/openbsd/sys/arch/loongson/include/
H A Dautoconf.h109 extern struct device *bootdv;