Home
last modified time | relevance | path

Searched refs:nvsize (Results 1 – 19 of 19) sorted by relevance

/titanic_44/usr/src/common/nvpair/
H A Dnvpair.c310 size_t nvsize; in nvp_buf_alloc() local
315 nvsize = len + offsetof(i_nvp_t, nvi_nvp); in nvp_buf_alloc()
317 if ((buf = nv_mem_zalloc(priv, nvsize)) == NULL) in nvp_buf_alloc()
333 size_t nvsize = nvp->nvp_size + offsetof(i_nvp_t, nvi_nvp); in nvp_buf_free() local
335 nv_mem_free(priv, NVPAIR2I_NVP(nvp), nvsize); in nvp_buf_free()
2069 size_t nvsize; in nvs_decode_pairs() local
2076 while ((err = nvs->nvs_ops->nvs_nvpair(nvs, NULL, &nvsize)) == 0) { in nvs_decode_pairs()
2077 if (nvsize == 0) /* end of list */ in nvs_decode_pairs()
2081 if (nvsize < NVP_SIZE_CALC(1, 0)) in nvs_decode_pairs()
2084 if ((nvp = nvp_buf_alloc(nvl, nvsize)) == NULL) in nvs_decode_pairs()
[all …]
/titanic_44/usr/src/lib/libc/port/gen/
H A Dattrat.c44 static int (*nvsize)(nvlist_t *, size_t *, int); variable
96 nvsize = (int (*)(nvlist_t *, size_t *, int)) in attrat_init()
118 if (nvsize(request, &bufsize, NV_ENCODE_XDR) != 0) { in attr_nv_pack()
/titanic_44/usr/src/uts/common/fs/zfs/
H A Dzfs_fuid.c230 size_t nvsize = 0; in zfs_fuid_sync() local
273 VERIFY(nvlist_size(nvp, &nvsize, NV_ENCODE_XDR) == 0); in zfs_fuid_sync()
274 packed = kmem_alloc(nvsize, KM_SLEEP); in zfs_fuid_sync()
275 VERIFY(nvlist_pack(nvp, &packed, &nvsize, in zfs_fuid_sync()
278 zfsvfs->z_fuid_size = nvsize; in zfs_fuid_sync()
H A Dspa.c1578 size_t nvsize = 0; in load_nvlist() local
1586 nvsize = *(uint64_t *)db->db_data; in load_nvlist()
1589 packed = kmem_alloc(nvsize, KM_SLEEP); in load_nvlist()
1590 error = dmu_read(spa->spa_meta_objset, obj, 0, nvsize, packed, in load_nvlist()
1593 error = nvlist_unpack(packed, nvsize, value, 0); in load_nvlist()
1594 kmem_free(packed, nvsize); in load_nvlist()
5897 size_t nvsize = 0; in spa_sync_nvlist() local
5900 VERIFY(nvlist_size(nv, &nvsize, NV_ENCODE_XDR) == 0); in spa_sync_nvlist()
5907 bufsize = P2ROUNDUP((uint64_t)nvsize, SPA_CONFIG_BLOCKSIZE); in spa_sync_nvlist()
5910 VERIFY(nvlist_pack(nv, &packed, &nvsize, NV_ENCODE_XDR, in spa_sync_nvlist()
[all …]
/titanic_44/usr/src/lib/libshell/common/include/
H A Dname.h156 #define nv_setsize(n,s) ((n)->nvsize = (s))
158 #define nv_size(np) ((np)->nvsize)
H A Dnval.h117 unsigned short nvsize; /* size or base */ member
/titanic_44/usr/src/cmd/fm/fmd/common/
H A Dfmd_ckpt.c535 size_t nvsize = 0; in fmd_ckpt_save_nvlist() local
537 (void) nvlist_size(nvl, &nvsize, NV_ENCODE_NATIVE); in fmd_ckpt_save_nvlist()
538 fcfn->fcfn_size = (uint64_t)nvsize; in fmd_ckpt_save_nvlist()
540 (void) nvlist_pack(nvl, &nvbuf, &nvsize, NV_ENCODE_NATIVE, 0); in fmd_ckpt_save_nvlist()
541 ckp->ckp_ptr += sizeof (fcf_nvl_t) + nvsize; in fmd_ckpt_save_nvlist()
607 size_t nvsize = 0; in fmd_ckpt_resv_case() local
609 (void) nvlist_size(cis->cis_nvl, &nvsize, NV_ENCODE_NATIVE); in fmd_ckpt_resv_case()
610 cip->ci_nvsz += sizeof (fcf_nvl_t) + nvsize; in fmd_ckpt_resv_case()
H A Dfmd_log.c519 size_t nvsize, easize, itsize, frsize; in fmd_log_append() local
528 (void) nvlist_size(ep->ev_nvl, &nvsize, NV_ENCODE_XDR); in fmd_log_append()
529 nvbuf = fmd_alloc(nvsize, FMD_SLEEP); in fmd_log_append()
530 (void) nvlist_pack(ep->ev_nvl, &nvbuf, &nvsize, NV_ENCODE_XDR, 0); in fmd_log_append()
539 err |= ea_set_item(&i2, CAT_FMA_NVLIST, nvbuf, nvsize); in fmd_log_append()
684 fmd_free(nvbuf, nvsize); in fmd_log_append()
/titanic_44/usr/src/cmd/fm/modules/common/event-transport/
H A Detm.c1141 size_t nvsize, buflen, hdrlen; in etm_send() local
1249 (void) nvlist_size(msgnvl, &nvsize, NV_ENCODE_XDR); in etm_send()
1252 buflen = nvsize + hdrlen; in etm_send()
1258 (void) etm_create_hdr(buf, mp->epm_ver, ETM_HDR_MSG, nvsize); in etm_send()
1260 if (rv = nvlist_pack(msgnvl, &nvbuf, &nvsize, NV_ENCODE_XDR, 0)) { in etm_send()
1288 ADDSTAT(Etm_stats.write_bytes.fmds_value.ui64, nvsize); in etm_send()
1290 etm_hex_dump(hdl, nvbuf, nvsize, 1); in etm_send()
/titanic_44/usr/src/lib/libshell/common/sh/
H A Dnvtype.c246 np->nvsize = mp->nvsize; in put_chtype()
1003 if(nr->nvsize) in nv_mktype()
1044 nq->nvsize = np->nvsize; in nv_mktype()
1086 nq->nvsize = nr->nvsize; in nv_mktype()
1467 nq->nvsize = tp->nvsize; in nv_mkstruct()
1492 nq->nvsize = nr->nvsize; in nv_mkstruct()
H A Dnvdisc.c888 unsigned short size = mp->nvsize; in nv_clone()
914 if(mp->nvsize == size) in nv_clone()
999 np->nvsize = mp->nvsize; in nv_mkclone()
H A Dname.c1312 np->nvsize = 0; in nv_open()
3255 np->nvsize = size; in nv_setsize()
/titanic_44/usr/src/cmd/fm/modules/common/ip-transport/
H A Dip.c150 size_t size, nvsize; in ip_fmdo_send() local
183 (void) nvlist_size(nvl, &nvsize, NV_ENCODE_XDR); in ip_fmdo_send()
184 size = r = sizeof (ip_hdr_t) + nvsize; in ip_fmdo_send()
199 iph->iph_size = htonl(nvsize); in ip_fmdo_send()
200 err = nvlist_pack(nvl, &nvbuf, &nvsize, NV_ENCODE_XDR, 0); in ip_fmdo_send()
/titanic_44/usr/src/lib/libshell/amd64/include/ast/
H A Dnval.h126 unsigned short nvsize; /* size or base */ member
/titanic_44/usr/src/lib/libshell/i386/include/ast/
H A Dnval.h126 unsigned short nvsize; /* size or base */ member
/titanic_44/usr/src/lib/libshell/sparc/include/ast/
H A Dnval.h126 unsigned short nvsize; /* size or base */ member
/titanic_44/usr/src/lib/libshell/sparcv9/include/ast/
H A Dnval.h126 unsigned short nvsize; /* size or base */ member
/titanic_44/usr/src/cmd/zdb/
H A Dzdb.c211 size_t nvsize = *(uint64_t *)data; in dump_packed_nvlist() local
212 char *packed = umem_alloc(nvsize, UMEM_NOFAIL); in dump_packed_nvlist()
214 VERIFY(0 == dmu_read(os, object, 0, nvsize, packed, DMU_READ_PREFETCH)); in dump_packed_nvlist()
216 VERIFY(nvlist_unpack(packed, nvsize, &nv, 0) == 0); in dump_packed_nvlist()
218 umem_free(packed, nvsize); in dump_packed_nvlist()
2077 size_t nvsize = 0; in dump_config() local
2085 nvsize = *(uint64_t *)db->db_data; in dump_config()
2090 spa->spa_config_object, (void *)&nvsize, 1); in dump_config()
/titanic_44/usr/src/psm/stand/bootblks/zfs/common/
H A Dzfs.fth561 : >nvsize ( nv -- size ) l@ ;
579 begin dup >nvsize while
585 r> dup >nvsize + ( name$ nvpair' )