Searched refs:nvh (Results 1 – 2 of 2) sorted by relevance
102 #define NVH_DATA(nvh) ((unsigned char *)nvh + NVH_HSIZE(nvh)) argument103 #define NVH_HSIZE(nvh) \ argument104 (sizeof(struct nvhdr) + roundup2((nvh)->nvh_namesize, 8))105 #define NVH_DSIZE(nvh) \ argument106 (((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)) argument122 static void nv_swap(struct nvhdr *nvh, bool tohost);203 struct nvhdr *nvh; in nv_validate() local[all …]
2561 nvs_header_t *nvh = (void *)buf; in nvlist_common() local2580 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()