Home
last modified time | relevance | path

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

/freebsd-11-stable/sbin/hastd/
HDnv.c102 #define NVH_DATA(nvh) ((unsigned char *)nvh + NVH_HSIZE(nvh)) argument
103 #define NVH_HSIZE(nvh) \ argument
104 (sizeof(struct nvhdr) + roundup2((nvh)->nvh_namesize, 8))
105 #define NVH_DSIZE(nvh) \ argument
106 (((nvh)->nvh_type & NV_ORDER_MASK) == NV_ORDER_HOST ? \
107 (nvh)->nvh_dsize : \
108 le32toh((nvh)->nvh_dsize))
109 #define NVH_SIZE(nvh) (NVH_HSIZE(nvh) + roundup2(NVH_DSIZE(nvh), 8)) argument
122 static void nv_swap(struct nvhdr *nvh, bool tohost);
203 struct nvhdr *nvh; in nv_validate() local
[all …]
/freebsd-11-stable/sys/cddl/contrib/opensolaris/common/nvpair/
HDopensolaris_nvpair.c2561 nvs_header_t *nvh = (void *)buf; in nvlist_common() local
2580 nvh->nvh_encoding = encoding; in nvlist_common()
2581 nvh->nvh_endian = nvl_endian = host_endian; in nvlist_common()
2582 nvh->nvh_reserved1 = 0; in nvlist_common()
2583 nvh->nvh_reserved2 = 0; in nvlist_common()
2591 encoding = nvh->nvh_encoding; in nvlist_common()
2592 nvl_endian = nvh->nvh_endian; in nvlist_common()