Searched refs:nvh (Results 1 – 5 of 5) sorted by relevance
98 #define NVH_DATA(nvh) ((unsigned char *)nvh + NVH_HSIZE(nvh)) argument99 #define NVH_HSIZE(nvh) \ argument100 (sizeof(struct nvhdr) + roundup2((size_t)(nvh)->nvh_namesize, 8))101 #define NVH_DSIZE(nvh) \ argument102 (((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)) argument118 static void nv_swap(struct nvhdr *nvh, bool tohost);199 struct nvhdr *nvh; in nv_validate() local[all …]
611 nvlist_next_nvpair(nvlist_t *nvl, nvp_header_t *nvh) in nvlist_next_nvpair() argument627 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() local1545 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 …]
1114 nvp_header_t *nvh; in zfs_nvstore_setter_str() local1120 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() local1304 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() local1416 nvh = NULL; in zfs_nvstore_iterate()1417 while ((nvh = nvlist_next_nvpair(nv, nvh)) != NULL) { in zfs_nvstore_iterate()[all …]
489 for (nvp_header_t *nvh = NULL; in dsl_dir_finalize_props() local490 (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()
2604 nvs_header_t *nvh; in nvlist_common() local2623 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()