Home
last modified time | relevance | path

Searched refs:nvh (Results 1 – 5 of 5) sorted by relevance

/freebsd/sbin/hastd/
H A Dnv.c98 #define NVH_DATA(nvh) ((unsigned char *)nvh + NVH_HSIZE(nvh)) argument
99 #define NVH_HSIZE(nvh) \ argument
100 (sizeof(struct nvhdr) + roundup2((size_t)(nvh)->nvh_namesize, 8))
101 #define NVH_DSIZE(nvh) \ argument
102 (((nvh)->nvh_type & NV_ORDER_MASK) == NV_ORDER_HOST ? \
103 (nvh)->nvh_dsize : \
104 le32toh((nvh)->nvh_dsize))
105 #define NVH_SIZE(nvh) (NVH_HSIZE(nvh) + roundup2(NVH_DSIZE(nvh), 8)) argument
118 static void nv_swap(struct nvhdr *nvh, bool tohost);
199 struct nvhdr *nvh; in nv_validate() local
[all …]
/freebsd/stand/libsa/zfs/
H A Dnvlist.c611 nvlist_next_nvpair(nvlist_t *nvl, nvp_header_t *nvh) in nvlist_next_nvpair() argument
627 if (nvh != NULL) { in nvlist_next_nvpair()
628 xdr.xdr_idx = (uint8_t *)nvh; in nvlist_next_nvpair()
646 if (nvh == NULL) in nvlist_next_nvpair()
650 nvh = (nvp_header_t *)xdr.xdr_idx; in nvlist_next_nvpair()
665 return (nvh); in nvlist_next_nvpair()
1543 nvp_header_t *nvh; in nvpair_find() local
1545 nvh = NULL; in nvpair_find()
1546 while ((nvh = nvlist_next_nvpair(nv, nvh)) != NULL) { in nvpair_find()
1549 nvp_name = (nv_string_t *)(nvh + 1); in nvpair_find()
[all …]
H A Dzfs.c1114 nvp_header_t *nvh; in zfs_nvstore_setter_str() local
1120 nvh = nvpair_find(nv, name); in zfs_nvstore_setter_str()
1121 if (nvh == NULL) { in zfs_nvstore_setter_str()
1127 nvp_name = (nv_string_t *)(nvh + 1); in zfs_nvstore_setter_str()
1298 nvp_header_t *nvh = ptr; in zfs_nvstore_setenv() local
1304 if (nvh == NULL) in zfs_nvstore_setenv()
1307 nvp_name = (nv_string_t *)(nvh + 1); in zfs_nvstore_setenv()
1399 nvp_header_t *nvh; in zfs_nvstore_iterate() local
1416 nvh = NULL; in zfs_nvstore_iterate()
1417 while ((nvh = nvlist_next_nvpair(nv, nvh)) != NULL) { in zfs_nvstore_iterate()
[all …]
/freebsd/usr.sbin/makefs/zfs/
H A Ddsl.c489 for (nvp_header_t *nvh = NULL; in dsl_dir_finalize_props() local
490 (nvh = nvlist_next_nvpair(dir->propsnv, nvh)) != NULL;) { in dsl_dir_finalize_props()
495 nvname = (nv_string_t *)(nvh + 1); in dsl_dir_finalize_props()
/freebsd/sys/contrib/openzfs/module/nvpair/
H A Dnvpair.c2604 nvs_header_t *nvh; in nvlist_common() local
2623 nvh = (void *)buf; in nvlist_common()
2624 nvh->nvh_encoding = encoding; in nvlist_common()
2625 nvh->nvh_endian = nvl_endian = host_endian; in nvlist_common()
2626 nvh->nvh_reserved1 = 0; in nvlist_common()
2627 nvh->nvh_reserved2 = 0; in nvlist_common()
2635 nvh = (void *)buf; in nvlist_common()
2636 encoding = nvh->nvh_encoding; in nvlist_common()
2637 nvl_endian = nvh->nvh_endian; in nvlist_common()