Lines Matching defs:nvsize
316 size_t nvsize;
321 nvsize = len + offsetof(i_nvp_t, nvi_nvp);
323 if ((buf = nv_mem_zalloc(priv, nvsize)) == NULL)
339 size_t nvsize = nvp->nvp_size + offsetof(i_nvp_t, nvi_nvp);
341 nv_mem_free(priv, NVPAIR2I_NVP(nvp), nvsize);
2081 size_t nvsize;
2088 while ((err = nvs->nvs_ops->nvs_nvpair(nvs, NULL, &nvsize)) == 0) {
2089 if (nvsize == 0) /* end of list */
2093 if (nvsize < NVP_SIZE_CALC(1, 0))
2096 if ((nvp = nvp_buf_alloc(nvl, nvsize)) == NULL)
2120 uint64_t nvsize = *buflen;
2130 if ((nvsize += size) > INT32_MAX)
2134 *buflen = nvsize;
2243 uint64_t nvsize = 0;
2251 if ((nvsize += nvp_sz) > INT32_MAX)
2255 *size = nvsize;
2738 size_t nvsize = 0;
2740 if (nvs_operation(nvs, EMBEDDED_NVL(nvp), &nvsize) != 0)
2743 nvp_sz += nvsize;
2747 size_t nvsize;
2749 if (nvs_embedded_nvl_array(nvs, nvp, &nvsize) != 0)
2752 nvp_sz += nvsize;
3189 size_t nvsize = 0;
3195 err = nvs_operation(nvs, EMBEDDED_NVL(nvp), &nvsize);
3197 err = nvs_embedded_nvl_array(nvs, nvp, &nvsize);
3203 nvp_sz += nvsize;
3255 size_t nvsize;
3257 if (nvs_xdr_nvp_size(nvs, nvp, &nvsize) != 0)
3261 encode_len = nvsize;