Home
last modified time | relevance | path

Searched refs:currdev (Results 1 – 12 of 12) sorted by relevance

/NextBSD/sys/boot/uboot/common/
HDmain.c44 struct uboot_devdesc currdev; variable
313 if (currdev.d_disk.slice > 0) in print_disk_probe_info()
314 sprintf(slice, "%d", currdev.d_disk.slice); in print_disk_probe_info()
318 if (currdev.d_disk.partition >= 0) in print_disk_probe_info()
319 sprintf(partition, "%d", currdev.d_disk.partition); in print_disk_probe_info()
324 currdev.d_unit, slice, partition); in print_disk_probe_info()
335 currdev.d_disk.slice = load_slice; in probe_disks()
336 currdev.d_disk.partition = load_partition; in probe_disks()
338 f.f_devdata = &currdev; in probe_disks()
344 for (currdev.d_unit = 0; currdev.d_unit < UB_MAX_DEV; in probe_disks()
[all …]
/NextBSD/sys/boot/powerpc/ps3/
HDmain.c64 struct ps3_devdesc currdev; in main() local
95 currdev.d_dev = devsw[i]; in main()
96 currdev.d_type = currdev.d_dev->dv_type; in main()
99 f.f_devdata = &currdev; in main()
100 currdev.d_unit = 0; in main()
102 if (devsw[i]->dv_open(&f, &currdev) == 0) in main()
107 f.f_devdata = &currdev; in main()
108 currdev.d_unit = 3; in main()
109 currdev.d_disk.pnum = 1; in main()
110 currdev.d_disk.ptype = PTYPE_GPT; in main()
[all …]
/NextBSD/sys/boot/userboot/userboot/
HDmain.c44 static void init_zfs_bootenv(char *currdev);
203 init_zfs_bootenv(char *currdev) in init_zfs_bootenv() argument
207 if (strlen(currdev) == 0) in init_zfs_bootenv()
209 if(strncmp(currdev, "zfs:", 4) != 0) in init_zfs_bootenv()
212 currdev[strlen(currdev) - 1] = '\0'; in init_zfs_bootenv()
213 setenv("zfs_be_active", currdev, 1); in init_zfs_bootenv()
216 setenv("vfs.root.mountfrom", currdev, 0); in init_zfs_bootenv()
218 currdev = strchr(currdev, ':'); in init_zfs_bootenv()
219 currdev++; in init_zfs_bootenv()
221 beroot = strrchr(currdev, '/'); in init_zfs_bootenv()
[all …]
/NextBSD/sys/boot/i386/loader/
HDmain.c72 static void init_zfs_bootenv(char *currdev);
311 init_zfs_bootenv(char *currdev) in init_zfs_bootenv() argument
315 if (strlen(currdev) == 0) in init_zfs_bootenv()
317 if(strncmp(currdev, "zfs:", 4) != 0) in init_zfs_bootenv()
320 currdev[strlen(currdev) - 1] = '\0'; in init_zfs_bootenv()
321 setenv("zfs_be_active", currdev, 1); in init_zfs_bootenv()
324 setenv("vfs.root.mountfrom", currdev, 0); in init_zfs_bootenv()
326 currdev = strchr(currdev, ':'); in init_zfs_bootenv()
327 currdev++; in init_zfs_bootenv()
329 beroot = strrchr(currdev, '/'); in init_zfs_bootenv()
[all …]
/NextBSD/sys/boot/efi/loader/
HDmain.c48 struct devdesc currdev; /* our current device */ variable
131 efi_handle_lookup(img->DeviceHandle, &currdev.d_dev, &currdev.d_unit); in main()
132 currdev.d_type = currdev.d_dev->dv_type; in main()
145 env_setenv("currdev", EV_VOLATILE, efi_fmtdev(&currdev), in main()
147 env_setenv("loaddev", EV_VOLATILE, efi_fmtdev(&currdev), env_noset, in main()
/NextBSD/sys/boot/common/
HDboot.c383 const char *currdev; in getrootmount() local
385 currdev = getenv("currdev"); in getrootmount()
386 if (currdev != NULL && strncmp("zfs:", currdev, 4) == 0) { in getrootmount()
387 cp = strdup(currdev); in getrootmount()
HDinstall.c189 char *s, *currdev; in install() local
203 currdev = getenv("currdev"); in install()
204 if (currdev != NULL && strcmp(currdev, "pxe0:") == 0) { in install()
HDhelp.common59 echo Current device is $currdev
248 set currdev=<device>
287 By default the value of $currdev is used to set the root filesystem
/NextBSD/sys/i386/i386/
HDbios.c615 int error, currdev; in pnpbios_identify() local
655 for (currdev = 0, left = ndevs; (currdev != 0xff) && (left > 0); left--) { in pnpbios_identify()
658 pda->next = currdev; in pnpbios_identify()
666 printf("pnpbios: %s 0x%x fetching node %d\n", error & 0x80 ? "error" : "warning", error, currdev); in pnpbios_identify()
670 currdev = pda->next; in pnpbios_identify()
/NextBSD/sys/boot/i386/libi386/
HDlibi386.h67 extern struct devdesc currdev; /* our current device */
/NextBSD/sys/boot/forth/
HDmenu.rc71 s" currdev" getenv dup 0> [if] drop 4 s" zfs:" compare 0= [if]
HDmenu-commands.4th385 s" set currdev=${vfs.root.mountfrom}:" evaluate