Lines Matching full:nv

31 	nvlist_t *nv;  in lzbe_nvlist_get()  local
47 rv = zpool_get_bootenv(zphdl, &nv); in lzbe_nvlist_get()
52 rv = nvlist_lookup_nvlist(nv, key, &nvl); in lzbe_nvlist_get()
55 nvlist_free(nv); in lzbe_nvlist_get()
57 nv = dup; in lzbe_nvlist_get()
59 nv = NULL; in lzbe_nvlist_get()
61 nvlist_free(nv); in lzbe_nvlist_get()
62 rv = nvlist_alloc(&nv, NV_UNIQUE_NAME, 0); in lzbe_nvlist_get()
65 *ptr = nv; in lzbe_nvlist_get()
78 nvlist_t *nv; in lzbe_nvlist_set() local
96 rv = zpool_get_bootenv(zphdl, &nv); in lzbe_nvlist_set()
103 rv = nvlist_lookup_uint64(nv, BOOTENV_VERSION, in lzbe_nvlist_set()
107 fnvlist_free(nv); in lzbe_nvlist_set()
109 nv = fnvlist_alloc(); in lzbe_nvlist_set()
110 fnvlist_add_uint64(nv, BOOTENV_VERSION, in lzbe_nvlist_set()
113 rv = nvlist_add_nvlist(nv, key, ptr); in lzbe_nvlist_set()
115 rv = zpool_set_bootenv(zphdl, nv); in lzbe_nvlist_set()
116 nvlist_free(nv); in lzbe_nvlist_set()
185 nvlist_t *nv = ptr; in lzbe_add_pair() local
204 rv = nvlist_add_byte(nv, key, *(uint8_t *)value); in lzbe_add_pair()
212 rv = nvlist_add_int16(nv, key, *(int16_t *)value); in lzbe_add_pair()
220 rv = nvlist_add_uint16(nv, key, *(uint16_t *)value); in lzbe_add_pair()
228 rv = nvlist_add_int32(nv, key, *(int32_t *)value); in lzbe_add_pair()
236 rv = nvlist_add_uint32(nv, key, *(uint32_t *)value); in lzbe_add_pair()
244 rv = nvlist_add_int64(nv, key, *(int64_t *)value); in lzbe_add_pair()
252 rv = nvlist_add_uint64(nv, key, *(uint64_t *)value); in lzbe_add_pair()
256 rv = nvlist_add_string(nv, key, value); in lzbe_add_pair()
260 rv = nvlist_add_byte_array(nv, key, value, size); in lzbe_add_pair()
264 rv = nvlist_add_int16_array(nv, key, value, size); in lzbe_add_pair()
268 rv = nvlist_add_uint16_array(nv, key, value, size); in lzbe_add_pair()
272 rv = nvlist_add_int32_array(nv, key, value, size); in lzbe_add_pair()
276 rv = nvlist_add_uint32_array(nv, key, value, size); in lzbe_add_pair()
280 rv = nvlist_add_int64_array(nv, key, value, size); in lzbe_add_pair()
284 rv = nvlist_add_uint64_array(nv, key, value, size); in lzbe_add_pair()
288 rv = nvlist_add_string_array(nv, key, value, size); in lzbe_add_pair()
292 rv = nvlist_add_nvlist(nv, key, (nvlist_t *)value); in lzbe_add_pair()
296 rv = nvlist_add_nvlist_array(nv, key, (const nvlist_t **)value, in lzbe_add_pair()
305 rv = nvlist_add_boolean_value(nv, key, *(boolean_t *)value); in lzbe_add_pair()
313 rv = nvlist_add_int8(nv, key, *(int8_t *)value); in lzbe_add_pair()
321 rv = nvlist_add_uint8(nv, key, *(uint8_t *)value); in lzbe_add_pair()
325 rv = nvlist_add_boolean_array(nv, key, value, size); in lzbe_add_pair()
329 rv = nvlist_add_int8_array(nv, key, value, size); in lzbe_add_pair()
333 rv = nvlist_add_uint8_array(nv, key, value, size); in lzbe_add_pair()