Home
last modified time | relevance | path

Searched refs:nvsize (Results 1 – 6 of 6) sorted by relevance

/freebsd/sys/contrib/openzfs/module/nvpair/
H A Dnvpair.c617 size_t nvsize; in nvp_buf_alloc() local
622 nvsize = len + offsetof(i_nvp_t, nvi_nvp); in nvp_buf_alloc()
624 if ((buf = nv_mem_zalloc(priv, nvsize)) == NULL) in nvp_buf_alloc()
640 size_t nvsize = nvp->nvp_size + offsetof(i_nvp_t, nvi_nvp); in nvp_buf_free() local
642 nv_mem_free(priv, NVPAIR2I_NVP(nvp), nvsize); in nvp_buf_free()
2420 size_t nvsize; in nvs_decode_pairs() local
2427 while ((err = nvs->nvs_ops->nvs_nvpair(nvs, NULL, &nvsize)) == 0) { in nvs_decode_pairs()
2428 if (nvsize == 0) /* end of list */ in nvs_decode_pairs()
2432 if (nvsize < NVP_SIZE_CALC(1, 0)) in nvs_decode_pairs()
2435 if ((nvp = nvp_buf_alloc(nvl, nvsize)) == NULL) in nvs_decode_pairs()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzfs_fuid.c209 size_t nvsize = 0; in zfs_fuid_sync() local
252 VERIFY0(nvlist_size(nvp, &nvsize, NV_ENCODE_XDR)); in zfs_fuid_sync()
253 packed = kmem_alloc(nvsize, KM_SLEEP); in zfs_fuid_sync()
254 VERIFY0(nvlist_pack(nvp, &packed, &nvsize, NV_ENCODE_XDR, KM_SLEEP)); in zfs_fuid_sync()
256 zfsvfs->z_fuid_size = nvsize; in zfs_fuid_sync()
H A Dvdev_label.c1484 size_t nvsize; in vdev_label_write_bootenv() local
1488 error = nvlist_size(env, &nvsize, NV_ENCODE_XDR); in vdev_label_write_bootenv()
1492 if (nvsize >= sizeof (bootenv->vbe_bootenv)) { in vdev_label_write_bootenv()
1521 nvsize = sizeof (bootenv->vbe_bootenv); in vdev_label_write_bootenv()
1527 (void) strlcpy(bootenv->vbe_bootenv, tmp, nvsize); in vdev_label_write_bootenv()
1533 error = nvlist_pack(env, &nvbuf, &nvsize, NV_ENCODE_XDR, in vdev_label_write_bootenv()
H A Dspa.c2760 size_t nvsize = 0; in load_nvlist() local
2768 nvsize = *(uint64_t *)db->db_data; in load_nvlist()
2771 packed = vmem_alloc(nvsize, KM_SLEEP); in load_nvlist()
2772 error = dmu_read(spa->spa_meta_objset, obj, 0, nvsize, packed, in load_nvlist()
2775 error = nvlist_unpack(packed, nvsize, value, 0); in load_nvlist()
2776 vmem_free(packed, nvsize); in load_nvlist()
10433 size_t nvsize = 0; local
10436 VERIFY0(nvlist_size(nv, &nvsize, NV_ENCODE_XDR));
10443 bufsize = P2ROUNDUP((uint64_t)nvsize, SPA_CONFIG_BLOCKSIZE);
10446 VERIFY0(nvlist_pack(nv, &packed, &nvsize, NV_ENCODE_XDR,
[all …]
/freebsd/crypto/openssl/crypto/hashtable/
H A Dhashtable.c627 size_t nvsize = sizeof(*tmp); in alloc_new_value() local
630 nvsize += key->keysize; in alloc_new_value()
632 tmp = OPENSSL_malloc(nvsize); in alloc_new_value()
/freebsd/sys/contrib/openzfs/cmd/zdb/
H A Dzdb.c930 size_t nvsize = *(uint64_t *)data; in dump_packed_nvlist() local
931 char *packed = umem_alloc(nvsize, UMEM_NOFAIL); in dump_packed_nvlist()
934 err = dmu_read(os, object, 0, nvsize, packed, DMU_READ_PREFETCH); in dump_packed_nvlist()
937 umem_free(packed, nvsize); in dump_packed_nvlist()
941 err = nvlist_unpack(packed, nvsize, &nv, 0); in dump_packed_nvlist()
943 umem_free(packed, nvsize); in dump_packed_nvlist()
5053 size_t nvsize = 0; in dump_config() local
5061 nvsize = *(uint64_t *)db->db_data; in dump_config()
5066 spa->spa_config_object, (void *)&nvsize, 1); in dump_config()