Home
last modified time | relevance | path

Searched refs:nvl (Results 151 – 175 of 398) sorted by last modified time

12345678910>>...16

/illumos-gate/usr/src/uts/sun4v/io/
H A Dvlds.c1346 nvlist_t *nvl = NULL; in vlds_user_reg_cb() local
1379 nvlist_add_uint64(nvl, VLDS_HDL, hdl) || in vlds_user_reg_cb()
1384 nvlist_add_boolean_value(nvl, VLDS_ISCLIENT, in vlds_user_reg_cb()
1393 nvlist_free(nvl); in vlds_user_reg_cb()
1400 nvlist_t *nvl = NULL; in vlds_user_unreg_cb() local
1430 nvlist_add_uint64(nvl, VLDS_HDL, hdl) || in vlds_user_unreg_cb()
1432 ESC_VLDS_UNREGISTER, "sun.com", "kernel", nvl, in vlds_user_unreg_cb()
1436 nvlist_free(nvl); in vlds_user_unreg_cb()
1443 nvlist_t *nvl = NULL; in vlds_user_data_cb() local
1468 nvlist_add_uint64(nvl, VLDS_HDL, hdl) || in vlds_user_data_cb()
[all …]
/illumos-gate/usr/src/uts/sun4u/cpu/
H A Dus3_cheetahplus.c1092 cpu_payload_add_pcache(struct async_flt *aflt, nvlist_t *nvl) in cpu_payload_add_pcache() argument
1118 fm_payload_set(nvl, FM_EREPORT_PAYLOAD_NAME_L1P_WAYS, in cpu_payload_add_pcache()
1122 fm_payload_set(nvl, FM_EREPORT_PAYLOAD_NAME_L1P_DATA, in cpu_payload_add_pcache()
1131 cpu_payload_add_tlb(struct async_flt *aflt, nvlist_t *nvl) in cpu_payload_add_tlb() argument
1155 fm_payload_set(nvl, in cpu_payload_add_tlb()
1158 fm_payload_set(nvl, FM_EREPORT_PAYLOAD_NAME_ITLB_DATA, in cpu_payload_add_tlb()
1168 fm_payload_set(nvl, FM_EREPORT_PAYLOAD_NAME_VA, in cpu_payload_add_tlb()
1176 fm_payload_set(nvl, in cpu_payload_add_tlb()
1179 fm_payload_set(nvl, FM_EREPORT_PAYLOAD_NAME_DTLB_DATA, in cpu_payload_add_tlb()
H A Dus3_common.c4323 cpu_payload_add_dcache(struct async_flt *aflt, nvlist_t *nvl) in cpu_payload_add_dcache() argument
4357 fm_payload_set(nvl, FM_EREPORT_PAYLOAD_NAME_L1D_WAYS, in cpu_payload_add_dcache()
4361 fm_payload_set(nvl, FM_EREPORT_PAYLOAD_NAME_L1D_DATA, in cpu_payload_add_dcache()
4370 cpu_payload_add_icache(struct async_flt *aflt, nvlist_t *nvl) in cpu_payload_add_icache() argument
4404 fm_payload_set(nvl, FM_EREPORT_PAYLOAD_NAME_L1I_WAYS, in cpu_payload_add_icache()
4408 fm_payload_set(nvl, FM_EREPORT_PAYLOAD_NAME_L1I_DATA, in cpu_payload_add_icache()
4419 cpu_payload_add_ecache(struct async_flt *aflt, nvlist_t *nvl) in cpu_payload_add_ecache() argument
4449 fm_payload_set(nvl, FM_EREPORT_PAYLOAD_NAME_L3_WAYS, in cpu_payload_add_ecache()
4454 fm_payload_set(nvl, FM_EREPORT_PAYLOAD_NAME_L3_DATA, in cpu_payload_add_ecache()
4476 fm_payload_set(nvl, FM_EREPORT_PAYLOAD_NAME_L2_WAYS, in cpu_payload_add_ecache()
[all …]
/illumos-gate/usr/src/uts/sparc/io/
H A Ddevfm_machdep.c37 fm_get_paddr(nvlist_t *nvl, uint64_t *paddr) in fm_get_paddr() argument
49 if ((nvlist_lookup_string(nvl, FM_FMRI_SCHEME, &scheme) != 0) || in fm_get_paddr()
51 (nvlist_lookup_uint8(nvl, FM_VERSION, &version) != 0) || in fm_get_paddr()
66 if (nvlist_lookup_uint64(nvl, FM_FMRI_MEM_OFFSET, &offset) != 0) { in fm_get_paddr()
67 if (nvlist_lookup_uint64(nvl, FM_FMRI_MEM_PHYSADDR, &pa) != in fm_get_paddr()
71 } else if (nvlist_lookup_string(nvl, FM_FMRI_MEM_UNUM, &unum) != 0 || in fm_get_paddr()
72 nvlist_lookup_string_array(nvl, FM_FMRI_MEM_SERIAL_ID, &serids, in fm_get_paddr()
80 if (nvlist_lookup_uint64(nvl, in fm_get_paddr()
/illumos-gate/usr/src/uts/intel/io/mc-amd/
H A Dmcamd_subr.c491 fmri2unum(nvlist_t *nvl, mc_unum_t *unump) in fmri2unum() argument
498 if (nvlist_lookup_nvlist(nvl, FM_FMRI_HC_SPECIFIC, &hcsp) != 0 || in fmri2unum()
502 nvlist_lookup_nvlist_array(nvl, FM_FMRI_HC_LIST, &hcl, &npr) != 0) in fmri2unum()
541 mcamd_unumtopa_wrap(void *arg, mc_unum_t *unump, nvlist_t *nvl, uint64_t *pap) in mcamd_unumtopa_wrap() argument
547 ASSERT(unump == NULL || nvl == NULL); /* enforced at cmi level */ in mcamd_unumtopa_wrap()
550 if (!fmri2unum(nvl, &unum)) in mcamd_unumtopa_wrap()
656 nvlist_t *nvl = fm_nvlist_create(NULL); in mc_fmri_create() local
659 fm_fmri_hc_create(nvl, FM_HC_SCHEME_VERSION, NULL, NULL, in mc_fmri_create()
664 fm_fmri_hc_set(nvl, FM_HC_SCHEME_VERSION, NULL, NULL, 3, in mc_fmri_create()
670 return (nvl); in mc_fmri_create()
/illumos-gate/usr/src/uts/intel/io/intel_nhm/
H A Ddimm_topo.c195 inhm_dimmlist(uint32_t node, nvlist_t *nvl) in inhm_dimmlist() argument
210 (void) nvlist_add_string(nvl, "memory-policy", in inhm_dimmlist()
212 (void) nvlist_add_string(nvl, "memory-ecc", in inhm_dimmlist()
242 (void) nvlist_add_nvlist_array(nvl, MCINTEL_NVLIST_MC, newchannel, in inhm_dimmlist()
259 nvlist_t *nvl; in inhm_create_nvl() local
261 (void) nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP); in inhm_create_nvl()
262 (void) nvlist_add_uint8(nvl, MCINTEL_NVLIST_VERSTR, in inhm_create_nvl()
265 (void) nvlist_add_uint8(nvl, MCINTEL_NVLIST_NMEM, 1); in inhm_create_nvl()
266 (void) nvlist_add_uint8(nvl, MCINTEL_NVLIST_NRANKS, 4); in inhm_create_nvl()
267 inhm_dimmlist(chip, nvl); in inhm_create_nvl()
[all …]
H A Dmem_addr.c692 nhm_unumtopa(void *arg, mc_unum_t *unump, nvlist_t *nvl, uint64_t *pap) in nhm_unumtopa() argument
711 if (nvlist_lookup_nvlist(nvl, FM_FMRI_HC_SPECIFIC, in nhm_unumtopa()
727 if (nvlist_lookup_nvlist_array(nvl, FM_FMRI_HC_LIST, in nhm_unumtopa()
/illumos-gate/usr/src/uts/intel/io/intel_nb5000/
H A Ddimm_addr.c43 fmri2unum(nvlist_t *nvl, mc_unum_t *unump) in fmri2unum() argument
50 if (nvlist_lookup_nvlist(nvl, FM_FMRI_HC_SPECIFIC, &hcsp) != 0 || in fmri2unum()
54 nvlist_lookup_nvlist_array(nvl, FM_FMRI_HC_LIST, &hcl, &npr) != 0) in fmri2unum()
118 inb_unumtopa(void *arg, mc_unum_t *unump, nvlist_t *nvl, uint64_t *pap) in inb_unumtopa() argument
126 if (!fmri2unum(nvl, &unum)) in inb_unumtopa()
/illumos-gate/usr/src/uts/i86pc/os/
H A Dcmi.c862 cmi_mc_unumtopa(mc_unum_t *up, nvlist_t *nvl, uint64_t *pap) in cmi_mc_unumtopa() argument
869 if (up != NULL && nvl != NULL) in cmi_mc_unumtopa()
879 up, nvl, pap)); in cmi_mc_unumtopa()
889 if (nvl != NULL && nvlist_lookup_nvlist(nvl, in cmi_mc_unumtopa()
902 rv = mcops->cmi_mc_unumtopa(cmi_hdl_getmcdata(hdl), up, nvl, pap); in cmi_mc_unumtopa()
H A Dcms.c649 cms_ereport_add_logout(cmi_hdl_t hdl, nvlist_t *nvl, nv_alloc_t *nva, in cms_ereport_add_logout() argument
656 CMS_OPS(cms)->cms_ereport_add_logout(hdl, nvl, nva, banknum, in cms_ereport_add_logout()
/illumos-gate/usr/src/uts/i86pc/cpu/genuineintel/
H A Dgintel_main.c280 nvlist_t *nvl = (nvlist_t *)NULL; in gintel_gentopo_ereport_detector() local
289 if ((nvl = fm_nvlist_create(nva)) == NULL) in gintel_gentopo_ereport_detector()
303 return (nvl); in gintel_gentopo_ereport_detector()
311 nvlist_t *nvl = (nvlist_t *)NULL; in gintel_ereport_detector() local
315 return (nvl); in gintel_ereport_detector()
319 if ((nvl = fm_nvlist_create(nva)) == NULL) in gintel_ereport_detector()
333 return (nvl); in gintel_ereport_detector()
340 nvlist_t *nvl, *snvl; in gintel_gentopo_ereport_create_resource_elem() local
389 return (nvl); in gintel_gentopo_ereport_create_resource_elem()
395 nvlist_t *nvl, *snvl; in gintel_ereport_create_resource_elem() local
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dsysevent_impl.h431 extern void evch_usrsetpropnvl(evchan_t *bp, nvlist_t *nvl);
H A Dnvpair.h123 #define NVL_VERSION(nvl) ((nvl)->nvl_version) argument
124 #define NVL_SIZE(nvl) ((nvl)->nvl_size) argument
125 #define NVL_FLAG(nvl) ((nvl)->nvl_flag) argument
323 uchar_t fnvlist_lookup_byte(nvlist_t *nvl, const char *name);
324 int8_t fnvlist_lookup_int8(nvlist_t *nvl, const char *name);
325 int16_t fnvlist_lookup_int16(nvlist_t *nvl, const char *name);
326 int32_t fnvlist_lookup_int32(nvlist_t *nvl, const char *name);
327 int64_t fnvlist_lookup_int64(nvlist_t *nvl, const char *name);
328 uint8_t fnvlist_lookup_uint8_t(nvlist_t *nvl, const char *name);
329 uint16_t fnvlist_lookup_uint16(nvlist_t *nvl, const char *name);
[all …]
/illumos-gate/usr/src/uts/common/sys/iscsit/
H A Discsit_common.h349 it_config_to_nv(it_config_t *cfg, nvlist_t **nvl);
358 it_nv_to_config(nvlist_t *nvl, it_config_t **cfg);
364 it_tgtlist_to_nv(it_tgt_t *tgtlist, nvlist_t **nvl);
367 it_tgt_to_nv(it_tgt_t *tgt, nvlist_t **nvl);
370 it_nv_to_tgt(nvlist_t *nvl, char *name, it_tgt_t **tgt);
373 it_tpgt_to_nv(it_tpgt_t *tpgt, nvlist_t **nvl);
379 it_tpgtlist_to_nv(it_tpgt_t *tpgtlist, nvlist_t **nvl);
385 it_tpg_to_nv(it_tpg_t *tpg, nvlist_t **nvl);
391 it_tpglist_to_nv(it_tpg_t *tpglist, nvlist_t **nvl);
397 it_ini_to_nv(it_ini_t *ini, nvlist_t **nvl);
[all …]
/illumos-gate/usr/src/uts/common/sys/idm/
H A Didm_text.h146 idm_nvlist_add_keyvalue(nvlist_t *nvl, char *key, int keylen, char *value);
149 idm_textbuf_to_nvlist(nvlist_t *nvl, char **textbuf, int *textbuflen);
155 idm_nvlist_to_textbuf(nvlist_t *nvl, char **textbuf, int *textbuflen,
165 idm_nvlist_add_id(nvlist_t *nvl, iscsikey_id_t kv_id, char *value);
181 idm_nvlist_to_itextbuf(nvlist_t *nvl);
/illumos-gate/usr/src/uts/common/os/
H A Dretire_store.c248 nvlist_t *nvl; in rio_store_encode() local
259 nvl = NULL; in rio_store_encode()
260 rval = nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP); in rio_store_encode()
298 rval = nvlist_add_nvlist(nvl, rsp->rst_devpath, line_nvl); in rio_store_encode()
306 *ret_nvl = nvl; in rio_store_encode()
312 ASSERT(nvl); in rio_store_encode()
313 nvlist_free(nvl); in rio_store_encode()
H A Dpool.c1119 nvlist_t *nvl; in pool_propget() local
1125 (void) nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP); in pool_propget()
1135 ret = pool_pset_propget((psetid_t)id, name, nvl); in pool_propget()
1147 ret = pool_cpu_propget((processorid_t)id, name, nvl); in pool_propget()
1157 *nvlp = nvl; in pool_propget()
1159 nvlist_free(nvl); in pool_propget()
H A Dpool_pset.c849 nvlist_t *nvl; in pool_pset_pack() local
891 (void) nvlist_dup(cpu->cpu_props, &nvl, KM_SLEEP); in pool_pset_pack()
893 (void) nvlist_add_string(nvl, "cpu.status", in pool_pset_pack()
897 (void) nvlist_pack(nvl, &buf, &bufsz, in pool_pset_pack()
901 (void) nvlist_free(nvl); in pool_pset_pack()
906 (void) nvlist_dup(pset->pset_props, &nvl, KM_SLEEP); in pool_pset_pack()
907 (void) nvlist_add_uint64(nvl, "pset.size", ncpu); in pool_pset_pack()
908 (void) nvlist_add_uint64(nvl, "pset.load", in pool_pset_pack()
915 (void) nvlist_free(nvl); in pool_pset_pack()
945 ret = nvlist_add_uint64(nvl, "pset.load", in pool_pset_propget()
[all …]
H A Dfm.c124 (void) fm_ereport_post(nvl, EVCH_TRYHARD); in fm_drain()
126 fm_nvprint(nvl); in fm_drain()
213 fm_nvprintr(nvlist_t *nvl, int d, int c, int cols) in fm_nvprintr() argument
217 for (nvp = nvlist_next_nvpair(nvl, NULL); in fm_nvprintr()
349 fm_nvprint(nvlist_t *nvl) in fm_nvprint() argument
359 if (fm_nvprintr(nvl, 0, c, ereport_cols) != 0) in fm_nvprint()
611 nvlist_t *nvl; in fm_nvlist_create() local
634 return (nvl); in fm_nvlist_create()
644 fm_nvlist_destroy(nvlist_t *nvl, int flag) in fm_nvlist_destroy() argument
646 nv_alloc_t *nva = nvlist_lookup_nv_alloc(nvl); in fm_nvlist_destroy()
[all …]
H A Dlog_sysevent.c557 nvlist_t *nvl; in sysevent_free() local
563 if (nvl != NULL) { in sysevent_free()
567 nvlist_free(nvl); in sysevent_free()
711 nvlist_t *nvl; in sysevent_detach_attributes() local
1235 nvlist_t *nvl; in add_registration() local
1242 nvlist_free(nvl); in add_registration()
1247 nvlist_free(nvl); in add_registration()
1252 nvlist_free(nvl); in add_registration()
1261 nvlist_free(nvl); in add_registration()
1276 nvlist_t *nvl; in get_registration() local
[all …]
H A Ddevcache.c377 nvlist_t *nvl; in fread_nvlist() local
466 nvl = NULL; in fread_nvlist()
476 *ret_nvlist = nvl; in fread_nvlist()
663 fwrite_nvlist(char *filename, nvlist_t *nvl) in fwrite_nvlist() argument
784 nvlist_t *nvl; in fread_nvp_list() local
796 ASSERT(nvl != NULL); in fread_nvp_list()
838 nvlist_free(nvl); in fread_nvp_list()
843 nvlist_free(nvl); in fread_nvp_list()
958 nvlist_t *nvl; in nvpflush_one() local
991 rval = e_fwrite_nvlist(nvfd, nvl); in nvpflush_one()
[all …]
H A Devchannels.c1572 evch_chsetpropnvl(evch_bind_t *bp, nvlist_t *nvl) in evch_chsetpropnvl() argument
1580 chp->ch_propnvl = nvl; in evch_chsetpropnvl()
2025 sysevent_evc_setpropnvl(evchan_t *scp, nvlist_t *nvl) in sysevent_evc_setpropnvl() argument
2027 nvlist_t *nvlcp = nvl; in sysevent_evc_setpropnvl()
2029 if (nvl != NULL && nvlist_dup(nvl, &nvlcp, 0) != 0) in sysevent_evc_setpropnvl()
2343 evch_usrsetpropnvl(evchan_t *bp, nvlist_t *nvl) in evch_usrsetpropnvl() argument
2345 evch_chsetpropnvl((evch_bind_t *)bp, nvl); in evch_usrsetpropnvl()
/illumos-gate/usr/src/uts/common/io/
H A Dsysevent.c478 nvlist_t *nvl = NULL; in sysevent_setpropnvl() local
503 nvlist_unpack(buf, bufsz, &nvl, KM_SLEEP) != 0) { in sysevent_setpropnvl()
510 if (nvl == NULL) in sysevent_setpropnvl()
514 evch_usrsetpropnvl(ctl->chp, nvl); in sysevent_setpropnvl()
525 nvlist_t *nvl; in sysevent_getpropnvl() local
540 if (nvl != NULL) { in sysevent_getpropnvl()
544 nvlist_free(nvl); in sysevent_getpropnvl()
549 nvlist_free(nvl); in sysevent_getpropnvl()
556 if (nvlist_pack(nvl, &buf, &reqsz, in sysevent_getpropnvl()
561 nvlist_free(nvl); in sysevent_getpropnvl()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_smhba.c174 nvlist_t *nvl; in pmcs_smhba_set_phy_props() local
181 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0) { in pmcs_smhba_set_phy_props()
211 (void) nvlist_add_nvlist_array(nvl, SAS_PHY_INFO_NVL, phy_props, in pmcs_smhba_set_phy_props()
214 (void) nvlist_size(nvl, &packed_size, NV_ENCODE_NATIVE); in pmcs_smhba_set_phy_props()
216 (void) nvlist_pack(nvl, &packed_data, &packed_size, in pmcs_smhba_set_phy_props()
225 nvlist_free(nvl); in pmcs_smhba_set_phy_props()
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Dnvfile.c1090 nvlist_t *nvl; in nvf_parse() local
1183 nvl = NULL; in nvf_parse()
1184 rval = nvlist_unpack(buf, hdr.nvfh_size, &nvl, 0); in nvf_parse()
1199 nvf_list = nvl; in nvf_parse()

12345678910>>...16