Lines Matching refs:benv
1798 nvlist_t *benv; in vdev_read_bootenv() local
1808 benv = vdev_read_bootenv(kid); in vdev_read_bootenv()
1809 if (benv != NULL) in vdev_read_bootenv()
1810 return (benv); in vdev_read_bootenv()
1837 benv = nvlist_create(NV_UNIQUE_NAME); in vdev_read_bootenv()
1838 if (benv != NULL) { in vdev_read_bootenv()
1840 nvlist_add_uint64(benv, BOOTENV_VERSION, in vdev_read_bootenv()
1844 nvlist_add_uint64(benv, BOOTENV_VERSION, VB_RAW); in vdev_read_bootenv()
1846 nvlist_add_string(benv, GRUB_ENVMAP, be->vbe_bootenv); in vdev_read_bootenv()
1851 benv = nvlist_import(be->vbe_bootenv, sizeof(be->vbe_bootenv)); in vdev_read_bootenv()
1867 benv = nvlist_create(NV_UNIQUE_NAME); in vdev_read_bootenv()
1868 if (benv != NULL) { in vdev_read_bootenv()
1870 nvlist_add_string(benv, FREEBSD_BOOTONCE, in vdev_read_bootenv()
1873 nvlist_add_uint64(benv, BOOTENV_VERSION, in vdev_read_bootenv()
1879 return (benv); in vdev_read_bootenv()
3888 nvlist_t *benv = NULL; in zfs_get_bootenv_spa() local
3893 benv = vdev_read_bootenv(vd); in zfs_get_bootenv_spa()
3895 if (benv != NULL) in zfs_get_bootenv_spa()
3898 spa->spa_bootenv = benv; in zfs_get_bootenv_spa()
3900 benv = spa->spa_bootenv; in zfs_get_bootenv_spa()
3902 if (benv == NULL) in zfs_get_bootenv_spa()
3905 *benvp = benv; in zfs_get_bootenv_spa()
3913 zfs_set_bootenv_spa(spa_t *spa, nvlist_t *benv) in zfs_set_bootenv_spa() argument
3918 vdev_write_bootenv(vd, benv); in zfs_set_bootenv_spa()
3921 spa->spa_bootenv = benv; in zfs_set_bootenv_spa()
3935 nvlist_t *benv; in zfs_get_bootonce_spa() local
3939 if ((rv = zfs_get_bootenv_spa(spa, &benv)) != 0) in zfs_get_bootonce_spa()
3942 if ((rv = nvlist_find(benv, key, DATA_TYPE_STRING, NULL, in zfs_get_bootonce_spa()
3951 (void)nvlist_remove(benv, key, DATA_TYPE_STRING); in zfs_get_bootonce_spa()
3952 (void)zfs_set_bootenv_spa(spa, benv); in zfs_get_bootonce_spa()