Lines Matching refs:bdev
106 static struct i386_devdesc *bdev; variable
224 if (bdev != NULL && bdev->dd.d_dev->dv_type == DEVT_ZFS) { in main()
226 strncpy(boot_devname, devformat(&bdev->dd), sizeof (boot_devname)); in main()
227 if (zfs_get_bootonce(bdev, OS_BOOTONCE, cmd, in main()
242 if (zfs_get_bootenv(bdev, &benv) == 0) { in main()
245 zfs_set_bootenv(bdev, benv); in main()
253 free(bdev); in main()
254 i386_getdev((void **)&bdev, boot_devname, NULL); in main()
465 if (bdev->dd.d_dev->dv_type == DEVT_ZFS) { in load()
467 zfsargs.pool = bdev->zfs.pool_guid; in load()
468 zfsargs.root = bdev->zfs.root_guid; in load()
481 (uint32_t)bdev->zfs.pool_guid, in load()
482 (uint32_t)(bdev->zfs.pool_guid >> 32), in load()
525 free(bdev); in mount_root()
526 bdev = ddesc; in mount_root()
527 if (bdev->dd.d_dev->dv_type == DEVT_DISK) { in mount_root()
528 if (bdev->disk.d_partition == -1) in mount_root()
531 part = bdev->disk.d_partition; in mount_root()
532 bootdev = MAKEBOOTDEV(dev_maj[bdev->dd.d_dev->dv_type], in mount_root()
533 bdev->disk.d_slice + 1, bdev->dd.d_unit, part); in mount_root()
534 bootinfo.bi_bios_dev = bd_unit2bios(bdev); in mount_root()
710 if (pool_guid != 0 && bdev == NULL) { in i386_zfs_probe()
711 bdev = malloc(sizeof (struct i386_devdesc)); in i386_zfs_probe()
712 bzero(bdev, sizeof (struct i386_devdesc)); in i386_zfs_probe()
713 bdev->zfs.dd.d_dev = &zfs_dev; in i386_zfs_probe()
714 bdev->zfs.pool_guid = pool_guid; in i386_zfs_probe()