Home
last modified time | relevance | path

Searched refs:nvl (Results 176 – 200 of 398) sorted by relevance

12345678910>>...16

/illumos-gate/usr/src/uts/intel/io/imc/
H A Dimc.c1286 nvlist_t *nvl; in imc_nvl_create_dimm() local
1288 nvl = fnvlist_alloc(); in imc_nvl_create_dimm()
1292 return (nvl); in imc_nvl_create_dimm()
1325 return (nvl); in imc_nvl_create_dimm()
1331 nvlist_t *nvl; in imc_nvl_create_channel() local
1335 nvl = fnvlist_alloc(); in imc_nvl_create_channel()
1349 return (nvl); in imc_nvl_create_channel()
1355 nvlist_t *nvl; in imc_nvl_create_mc() local
1359 nvl = fnvlist_alloc(); in imc_nvl_create_mc()
1390 return (nvl); in imc_nvl_create_mc()
[all …]
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_fmri.c491 if (fmri_prop(thp, nvl, TOPO_PGROUP_PROTOCOL, TOPO_PROP_ASRU, in topo_fmri_asru()
492 nvl, &prop, err) < 0) in topo_fmri_asru()
513 if (fmri_prop(thp, nvl, TOPO_PGROUP_PROTOCOL, TOPO_PROP_FRU, in topo_fmri_fru()
514 nvl, &prop, err) < 0) in topo_fmri_fru()
536 if (fmri_prop(thp, nvl, TOPO_PGROUP_PROTOCOL, TOPO_PROP_LABEL, in topo_fmri_label()
595 return (fmri_prop(thp, nvl, pg, pname, args, prop, err)); in topo_fmri_getprop()
606 if (nvlist_lookup_string(nvl, FM_FMRI_SCHEME, &scheme) != 0) in topo_fmri_setprop()
618 rv = nvlist_add_nvlist(in, TOPO_PROP_RESOURCE, nvl); in topo_fmri_setprop()
737 topo_instance_t inst, nvlist_t *nvl, int *err) in topo_fmri_create() argument
759 if (nvl != NULL && in topo_fmri_create()
[all …]
H A Dhc.c257 nvlist_t *nvl; in hc_enum() local
284 if (nvl == NULL) { in hc_enum()
293 nvlist_free(nvl); in hc_enum()
313 nvlist_free(nvl); in hc_enum()
891 *nvl = nf; in make_facility()
1210 nvlist_t *arg, *nvl; in hc_match() local
1243 nvlist_free(nvl); in hc_match()
1247 nvlist_free(nvl); in hc_match()
2088 nvlist_t *nvl; in hc_expand() local
2115 nvlist_free(nvl); in hc_expand()
[all …]
H A Dcpu.c249 fmri_nvl2str(nvlist_t *nvl, uint8_t version, char *buf, size_t buflen) in fmri_nvl2str() argument
260 if (nvlist_lookup_uint32(nvl, FM_FMRI_CPU_ID, &cpuid) != 0 || in fmri_nvl2str()
261 nvlist_lookup_uint64(nvl, FM_FMRI_CPU_SERIAL_ID, &serint) in fmri_nvl2str()
270 if (nvlist_lookup_uint32(nvl, FM_FMRI_CPU_ID, &cpuid) != 0) in fmri_nvl2str()
276 if ((rc = nvlist_lookup_string(nvl, FM_FMRI_CPU_SERIAL_ID, in fmri_nvl2str()
286 rc = nvlist_lookup_uint32(nvl, FM_FMRI_CPU_CACHE_INDEX, in fmri_nvl2str()
288 rc |= nvlist_lookup_uint32(nvl, FM_FMRI_CPU_CACHE_WAY, &way); in fmri_nvl2str()
289 rc |= nvlist_lookup_uint16(nvl, FM_FMRI_CPU_CACHE_BIT, &bit); in fmri_nvl2str()
290 rc |= nvlist_lookup_uint8(nvl, FM_FMRI_CPU_CACHE_TYPE, &type); in fmri_nvl2str()
/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 …]
H A Dcpc.c569 nvlist_t *nvl; in kcpc_copyin_set() local
594 if (nvlist_unpack(packbuf, len, &nvl, KM_SLEEP) != 0) { in kcpc_copyin_set()
606 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) { in kcpc_copyin_set()
611 nvlist_free(nvl); in kcpc_copyin_set()
619 nvlist_free(nvl); in kcpc_copyin_set()
624 nvlist_free(nvl); in kcpc_copyin_set()
636 nvlist_free(nvl); in kcpc_copyin_set()
641 nvlist_free(nvl); in kcpc_copyin_set()
752 nvlist_free(nvl); in kcpc_copyin_set()
757 nvlist_free(nvl); in kcpc_copyin_set()
/illumos-gate/usr/src/cmd/fm/modules/common/ext-event-transport/
H A Dfmevt_inbound.c418 nvlist_t *nvl; in fmevt_postprocess() local
437 if ((nvl = fmd_nvl_alloc(fmevt_hdl, FMD_SLEEP)) == NULL) { in fmevt_postprocess()
442 err += nvlist_add_uint8(nvl, FM_VERSION, 0); in fmevt_postprocess()
443 err += nvlist_add_string(nvl, FM_CLASS, (const char *)class[i]); in fmevt_postprocess()
444 err += nvlist_add_string(nvl, FM_IREPORT_UUID, uuidstrp); in fmevt_postprocess()
445 err += nvlist_add_nvlist(nvl, FM_IREPORT_DETECTOR, dtcr); in fmevt_postprocess()
446 err += nvlist_add_string(nvl, FM_IREPORT_PRIORITY, in fmevt_postprocess()
451 err += nvlist_add_nvlist(nvl, FM_IREPORT_ATTRIBUTES, in fmevt_postprocess()
460 fmd_xprt_post(fmevt_hdl, fmevt_xprt, nvl, in fmevt_postprocess()
464 nvlist_free(nvl); in fmevt_postprocess()
/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()
H A Dintel_nbdrv.c222 inb_dimmlist(nvlist_t *nvl) in inb_dimmlist() argument
254 (void) nvlist_add_nvlist_array(nvl, MCINTEL_NVLIST_MC, newchannel, in inb_dimmlist()
305 nvlist_t *nvl; in inb_create_nvl() local
307 (void) nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP); in inb_create_nvl()
308 (void) nvlist_add_uint8(nvl, MCINTEL_NVLIST_VERSTR, in inb_create_nvl()
310 (void) nvlist_add_string(nvl, "memory-controller", inb_mc_name()); in inb_create_nvl()
312 (void) nvlist_add_uint8(nvl, MCINTEL_NVLIST_NMEM, in inb_create_nvl()
314 inb_dimmlist(nvl); in inb_create_nvl()
317 inb_mc_nvl = nvl; in inb_create_nvl()
/illumos-gate/usr/src/lib/scsi/libses/common/
H A Dses_plugin.c79 nvlist_t *nvl; in ses_node_ctl() local
83 if (nvlist_dup(arg, &nvl, 0) != 0) in ses_node_ctl()
103 if (sp->sp_node_ctl(sp, np, op, nvl) != 0) { in ses_node_ctl()
104 nvlist_free(nvl); in ses_node_ctl()
110 if ((nvp = nvlist_next_nvpair(nvl, NULL)) != NULL) { in ses_node_ctl()
113 nvlist_free(nvl); in ses_node_ctl()
118 nvlist_free(nvl); in ses_node_ctl()
/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()
/illumos-gate/usr/src/uts/intel/io/mc-amd/
H A Dmcamd_drv.c190 mc_nvl_add_socket(nvlist_t *nvl, mc_t *mc) in mc_nvl_add_socket() argument
202 (void) nvlist_add_string(nvl, "socket", s); in mc_nvl_add_socket()
235 mc_nvl_add_ecctype(nvlist_t *nvl, mc_t *mc) in mc_nvl_add_ecctype() argument
252 (void) nvlist_add_uint64(nvl, name, value); in mc_nvl_add_prop()
349 nvlist_t *nvl; in mc_nvl_add_htconfig() local
352 (void) nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP); in mc_nvl_add_htconfig()
358 (void) nvlist_add_uint32(nvl, "SystemCoreCount", in mc_nvl_add_htconfig()
376 (void) nvlist_add_uint32_array(nvl, "ResponseRoutes", in mc_nvl_add_htconfig()
378 (void) nvlist_add_uint32_array(nvl, "RequestRoutes", in mc_nvl_add_htconfig()
382 (void) nvlist_add_nvlist(mcnvl, "htconfig", nvl); in mc_nvl_add_htconfig()
[all …]
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/common/contract/
H A Ddevice.c1597 nvlist_t *nvl; in contract_device_publish() local
1806 nvl = NULL; in contract_device_publish()
1808 VERIFY(nvlist_dup(tnvl, &nvl, 0) == 0); in contract_device_publish()
1814 VERIFY(nvlist_lookup_int32(nvl, CTS_NEWCT, in contract_device_publish()
1816 VERIFY(nvlist_add_int32(nvl, CTS_NEWCT, in contract_device_publish()
1841 evid = cte_publish_all(ct, event, nvl, NULL); in contract_device_publish()
1945 nvlist_t *nvl; in contract_device_offline() local
1975 nvlist_t *nvl; in contract_device_degrade() local
1994 nvlist_t *nvl; in contract_device_undegrade() local
2014 nvlist_t *nvl; in contract_device_negend() local
[all …]
/illumos-gate/usr/src/lib/fm/libfmevent/common/
H A Dlibfmevent.h518 #define fmev_publish_nvl(cl1, cl2, pri, nvl) \ argument
522 pri, nvl)
527 #define fmev_rspublish_nvl(ruleset, cl1, cl2, pri, nvl) \ argument
531 pri, nvl)
/illumos-gate/usr/src/lib/libds/common/
H A Dlibds.c218 nvlist_t *nvl; in ds_recv() local
231 if (sysevent_get_attr_list(sep, &nvl) != 0) { in ds_recv()
235 if (nvlist_lookup_uint64(nvl, VLDS_HDL, &hdl) == 0) { in ds_recv()
240 if (nvlist_lookup_string(nvl, VLDS_SERVICE_ID, in ds_recv()
242 nvlist_lookup_boolean_value(nvl, VLDS_ISCLIENT, in ds_recv()
252 nvlist_lookup_uint64(nvl, VLDS_DOMAIN_HDL, in ds_recv()
254 nvlist_lookup_uint16(nvl, VLDS_VER_MAJOR, in ds_recv()
256 nvlist_lookup_uint16(nvl, VLDS_VER_MINOR, in ds_recv()
286 nvlist_lookup_byte_array(nvl, VLDS_DATA, &bufp, in ds_recv()
292 nvlist_free(nvl); in ds_recv()
/illumos-gate/usr/src/lib/fm/topo/modules/common/ipmi/
H A Dipmi_enum.c177 nvlist_t *nvl; in ipmi_present() local
213 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0) in ipmi_present()
216 if (nvlist_add_uint32(nvl, TOPO_METH_PRESENT_RET, present) != 0) { in ipmi_present()
217 nvlist_free(nvl); in ipmi_present()
221 *out = nvl; in ipmi_present()
274 nvlist_t *nvl; in ipmi_unusable() local
295 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0) in ipmi_unusable()
298 if (nvlist_add_uint32(nvl, TOPO_METH_UNUSABLE_RET, unusable) != 0) { in ipmi_unusable()
299 nvlist_free(nvl); in ipmi_unusable()
303 *out = nvl; in ipmi_unusable()
/illumos-gate/usr/src/lib/libiscsit/common/
H A Dlibiscsit.c81 it_validate_configprops(nvlist_t *nvl, nvlist_t *errs);
84 it_validate_tgtprops(nvlist_t *nvl, nvlist_t *errs);
87 it_validate_iniprops(nvlist_t *nvl, nvlist_t *errs);
1535 it_validate_tgtprops(nvlist_t *nvl, nvlist_t *errs) in it_validate_tgtprops() argument
1544 if (!nvl) { in it_validate_tgtprops()
1623 (void) nvlist_remove_all(nvl, PROP_AUTH); in it_validate_tgtprops()
1647 if (!nvl) { in it_validate_configprops()
1700 (void) nvlist_lookup_string_array(nvl, name, in it_validate_configprops()
1769 if (!nvlist_exists(nvl, PROP_RADIUS_SERVER)) { in it_validate_configprops()
1774 if (!nvlist_exists(nvl, PROP_RADIUS_SECRET)) { in it_validate_configprops()
[all …]
/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/cmd/cmd-inet/lib/ipmgmtd/
H A Dipmgmt_persist.c1296 *nvl = NULL; in i_ipmgmt_node2nvl()
1304 if ((err = nvlist_add_string(*nvl, IPADM_NVP_IFNAME, in i_ipmgmt_node2nvl()
1331 if ((err = nvlist_add_string(*nvl, in i_ipmgmt_node2nvl()
1341 if ((err = nvlist_add_string(*nvl, in i_ipmgmt_node2nvl()
1363 nvlist_free(*nvl); in i_ipmgmt_node2nvl()
1507 nvlist_t *nvl = NULL; in ipmgmt_persist_aobjmap() local
1510 if ((err = i_ipmgmt_node2nvl(&nvl, nodep)) != 0) in ipmgmt_persist_aobjmap()
1512 cb.dbw_nvl = nvl; in ipmgmt_persist_aobjmap()
1520 nvlist_free(nvl); in ipmgmt_persist_aobjmap()
2034 nvlist_t *nvl; in ipmgmt_get_ifinfo_nvl() local
[all …]
/illumos-gate/usr/src/cmd/fm/modules/common/io-retire/
H A Drio_main.c121 rio_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class) in rio_recv() argument
162 faults = &nvl; in rio_recv()
169 if (nfaults == 0 && nvlist_lookup_nvlist_array(nvl, in rio_recv()
289 if (nvlist_lookup_string(nvl, FM_SUSPECT_UUID, &uuid) == 0 && in rio_recv()
300 nvlist_lookup_string(nvl, FM_SUSPECT_UUID, &uuid) == 0) in rio_recv()
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_dataset.c230 nvlist_t *nvl; in process_user_props() local
244 nvlist_free(nvl); in process_user_props()
250 return (nvl); in process_user_props()
1811 nvlist_free(nvl); in zfs_prop_set()
1830 nvlist_t *nvl; in zfs_prop_set_list() local
1944 nvlist_free(nvl); in zfs_prop_set_list()
1945 nvl = NULL; in zfs_prop_set_list()
1976 nvlist_free(nvl); in zfs_prop_set_list()
3800 nvlist_t *nvl; member
3842 nvlist_free(dd.nvl); in zfs_destroy_snaps()
[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/cmd/fm/modules/common/sw-diag-response/subsidiary/smf/
H A Dsmf_diag.c117 swde_smf_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, in swde_smf_recv() argument
128 if (!fmd_nvl_class_match(hdl, nvl, TRANCLASS("maintenance"))) { in swde_smf_recv()
133 if (nvlist_lookup_nvlist(nvl, FM_IREPORT_ATTRIBUTES, &attr) != 0) { in swde_smf_recv()
138 if (nvlist_lookup_string(nvl, FM_IREPORT_UUID, &uuid) != 0) { in swde_smf_recv()
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/
H A Dcfga_usb.c864 if (devctl_ap_disconnect(devctl_hdl, nvl) != 0) { in reset_device()
874 if (devctl_ap_configure(devctl_hdl, nvl) != 0) { in reset_device()
1038 nvlist_t *nvl = NULL; in cfga_change_state() local
1077 if (devctl_ap_configure(hdl, nvl) != 0) { in cfga_change_state()
1106 if ((rv = device_connected(hdl, nvl, &ostate)) != in cfga_change_state()
1126 cleanup_after_devctl_cmd(hdl, nvl); in cfga_change_state()
1143 ret = devctl_ap_unconfigure(hdl, nvl); in cfga_change_state()
1158 if ((rv = device_connected(hdl, nvl, &ostate)) != in cfga_change_state()
1177 cleanup_after_devctl_cmd(hdl, nvl); in cfga_change_state()
1197 ret = devctl_ap_disconnect(hdl, nvl); in cfga_change_state()
[all …]

12345678910>>...16