Home
last modified time | relevance | path

Searched refs:nvp (Results 1 – 25 of 146) sorted by relevance

123456

/illumos-gate/usr/src/uts/common/io/sata/adapters/nv_sata/
H A Dnv_sata.c1249 NVLOG(NVDBG_RESET, nvp->nvp_ctlp, nvp, in nv_sata_probe()
1552 NVLOG(NVDBG_SYNC, nvp->nvp_ctlp, nvp, in nv_start_sync()
1567 NVLOG(NVDBG_SYNC, nvp->nvp_ctlp, nvp, in nv_start_sync()
2230 NVLOG(NVDBG_RESET, nvp->nvp_ctlp, nvp, in nv_read_signature()
2636 (*(nvp->nvp_ctlp->nvc_set_intr))(nvp, in ck804_reg_init()
2901 NVLOG(NVDBG_INIT, nvp->nvp_ctlp, nvp, in nv_uninit_port()
3397 NVLOG(NVDBG_INTR, nvp->nvp_ctlp, nvp, in mcp5x_intr_port()
5506 nvp->nvp_signature, nvp->nvp_state, nvp->nvp_type); in nv_monitor_reset()
5761 NVLOG(NVDBG_HOT, nvp->nvp_ctlp, nvp, in nv_timeout()
6090 (*(nvp->nvp_ctlp->nvc_set_intr))(nvp, in nv_suspend()
[all …]
/illumos-gate/usr/src/common/nvpair/
H A Dnvpair.c135 #define EMBEDDED_NVL(nvp) ((nvlist_t *)(void *)NVP_VALUE(nvp)) argument
617 return (nvp); in nvp_buf_alloc()
734 (nvp->nvp_size < NVP_SIZE_CALC(nvp->nvp_name_sz, 0))) in i_validate_nvpair_name()
738 if (NVP_NAME(nvp)[nvp->nvp_name_sz - 1] != '\0') in i_validate_nvpair_name() local
792 size1 = nvp->nvp_size - NVP_VALOFF(nvp); in i_validate_nvpair()
813 NVP_NELEM(nvp), NVP_VALUE(nvp))) != 0) in nvlist_copy_pairs()
1532 if (nvp == NULL || nvpair_type(nvp) != type) in nvpair_value_common()
1990 nvp = nvlist_next_nvpair(nvl, nvp)) { in nvlist_lookup_nvpair_ei_sep()
2253 NVP_NELEM(nvp), NVP_VALUE(nvp))); in nvlist_add_nvpair()
2963 if (native_cp(nvs, nvp, nvp->nvp_size) != 0) in nvs_native_nvp_op()
[all …]
H A Dfnvpair.c424 fnvpair_value_byte(nvpair_t *nvp) in fnvpair_value_byte() argument
432 fnvpair_value_int8(nvpair_t *nvp) in fnvpair_value_int8() argument
440 fnvpair_value_int16(nvpair_t *nvp) in fnvpair_value_int16() argument
448 fnvpair_value_int32(nvpair_t *nvp) in fnvpair_value_int32() argument
456 fnvpair_value_int64(nvpair_t *nvp) in fnvpair_value_int64() argument
464 fnvpair_value_uint8_t(nvpair_t *nvp) in fnvpair_value_uint8_t() argument
472 fnvpair_value_uint16(nvpair_t *nvp) in fnvpair_value_uint16() argument
480 fnvpair_value_uint32(nvpair_t *nvp) in fnvpair_value_uint32() argument
488 fnvpair_value_uint64(nvpair_t *nvp) in fnvpair_value_uint64() argument
496 fnvpair_value_string(nvpair_t *nvp) in fnvpair_value_string() argument
[all …]
/illumos-gate/usr/src/lib/scsi/plugins/ses/ses2/common/
H A Dses2.c45 nvpair_t *nvp, *next; in ses2_setprop() local
47 for (nvp = nvlist_next_nvpair(props, NULL); nvp != NULL; in ses2_setprop()
48 nvp = next) { in ses2_setprop()
49 next = nvlist_next_nvpair(props, nvp); in ses2_setprop()
51 if (strcmp(cpp->scp_name, nvpair_name(nvp)) == 0) in ses2_setprop()
56 if (cpp->scp_setprop(sp, np, cpp->scp_num, nvp) != 0) in ses2_setprop()
59 (void) nvlist_remove(props, nvpair_name(nvp), in ses2_setprop()
60 nvpair_type(nvp)); in ses2_setprop()
68 nvpair_t *nvp) in ses2_ctl_common_setprop() argument
80 name = nvpair_name(nvp); in ses2_ctl_common_setprop()
[all …]
H A Dses2_element_ctl.c40 nvpair_t *nvp) in elem_setprop_device() argument
81 nvpair_t *nvp) in elem_setprop_psu() argument
108 nvpair_t *nvp) in elem_setprop_cooling() argument
143 nvpair_t *nvp) in elem_setprop_temp() argument
168 nvpair_t *nvp) in elem_setprop_lock() argument
195 nvpair_t *nvp) in elem_setprop_alarm() argument
232 nvpair_t *nvp) in elem_setprop_esc() argument
259 nvpair_t *nvp) in elem_setprop_scc() argument
284 nvpair_t *nvp) in elem_setprop_ups() argument
309 nvpair_t *nvp) in elem_setprop_cache() argument
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/lib/ipmgmtd/
H A Dipmgmt_persist.c254 nvp = nvlist_next_nvpair(db_nvl, nvp)) { in ipmgmt_nvlist_match()
308 nvp = nvlist_next_nvpair(in_nvl, nvp)) { in ipmgmt_nvlist_intersects()
336 nvp = nvlist_next_nvpair(db_nvl, nvp)) { in ipmgmt_nvlist_contains()
497 nvp = nvlist_next_nvpair(db_nvl, nvp)) { in ipmgmt_db_getaddr()
671 nvp = nvlist_next_nvpair(in_nvl, nvp)) { in ipmgmt_db_update()
766 nvp = nvlist_next_nvpair(in_nvl, nvp)) { in ipmgmt_db_update_if()
818 nvp = nvlist_next_nvpair(db_nvl, nvp)) { in ipmgmt_db_getif()
1387 nvp = nvlist_next_nvpair(db_nvl, nvp)) { in ipmgmt_aobjmap_init()
1562 nvp = nvlist_next_nvpair(db_nvl, nvp)) { in ipmgmt_db_upgrade()
1635 nvp = nvlist_next_nvpair(db_nvl, nvp)) { in ipmgmt_db_init()
[all …]
/illumos-gate/usr/src/lib/libnvpair/
H A Dlibnvpair.c570 nvpair_t *nvp; in nvlist_print_with_indent() local
578 nvp = nvlist_next_nvpair(nvl, NULL); in nvlist_print_with_indent()
580 while (nvp) { in nvlist_print_with_indent()
581 data_type_t type = nvpair_type(nvp); in nvlist_print_with_indent()
583 name = nvpair_name(nvp); in nvlist_print_with_indent()
599 (void) nvpair_value_byte(nvp, &val); in nvlist_print_with_indent()
605 (void) nvpair_value_int8(nvp, &val); in nvlist_print_with_indent()
751 nvp = nvlist_next_nvpair(nvl, nvp); in nvlist_print_with_indent()
969 if ((nvp == NULL) || (value == NULL)) in nvpair_value_match_regex()
990 switch (nvpair_type(nvp)) { in nvpair_value_match_regex()
[all …]
/illumos-gate/usr/src/uts/common/io/comstar/port/iscsit/
H A Discsit_auth.c51 auth_propose_chap(iscsit_conn_t *ict, nvpair_t *nvp,
59 auth_chap_recv_n(iscsit_conn_t *ict, nvpair_t *nvp,
63 auth_chap_recv_r(iscsit_conn_t *ict, nvpair_t *nvp,
67 auth_chap_recv_i(iscsit_conn_t *ict, nvpair_t *nvp,
71 auth_chap_recv_c(iscsit_conn_t *ict, nvpair_t *nvp,
87 auth_chap_done(iscsit_conn_t *ict, nvpair_t *nvp,
225 am_choice = idm_get_next_listvalue(nvp, NULL); in iscsit_select_auth()
273 return (auth_chap_select_alg(ict, nvp, ikvx)); in auth_propose_chap()
295 alg_choice = idm_get_next_listvalue(nvp, NULL); in auth_chap_select_alg()
358 nvrc = nvpair_value_string(nvp, &chap_name); in auth_chap_recv_n()
[all …]
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/
H A Ddiskmon_conf.c397 if (nvp != NULL) in new_cfgdata()
415 (void) nvlist_add_string(cfgp->props, nvp->name, nvp->value); in cfgdata_add_namevalpr()
488 nvlist_free(nvp); in check_indactions()
541 nvlist_free(nvp); in check_inds()
575 nvlist_free(nvp); in check_indrules()
634 nvlist_free(nvp); in check_consistent_ind_indrules()
721 nvp = nvlist_next_nvpair(nvlp, nvp); in print_props()
796 namevalpr_t nvp; in config_get() local
832 nvp.value = buf; in config_get()
835 nvp.value = str; in config_get()
[all …]
/illumos-gate/usr/src/uts/common/klm/
H A Dnlm_impl.c401 nvp = new_nvp; in nlm_gc()
1009 if (nvp != NULL) in nlm_vhold_get()
1023 nvp = new_nvp; in nlm_vhold_get()
1041 return (nvp); in nlm_vhold_get()
1050 if (nvp == NULL) in nlm_vhold_release()
1123 vp = nvp->nv_vp; in nlm_vhold_busy()
1138 bzero(nvp, sizeof (*nvp)); in nlm_vhold_ctor()
1163 if (nvp != NULL) in nlm_vhold_find_locked()
1166 return (nvp); in nlm_vhold_find_locked()
1454 nvp = TAILQ_NEXT(nvp, nv_link); in nlm_host_gc_vholds()
[all …]
/illumos-gate/usr/src/uts/common/fs/ctfs/
H A Dctfs_latest.c105 vnode_t *nvp; in ctfs_latest_access() local
110 if (nvp = ctfs_latest_nested_open(vp, cr)) { in ctfs_latest_access()
111 VN_RELE(nvp); in ctfs_latest_access()
127 vnode_t *nvp; in ctfs_latest_open() local
132 if (nvp = ctfs_latest_nested_open(*vpp, cr)) { in ctfs_latest_open()
134 *vpp = nvp; in ctfs_latest_open()
155 vnode_t *nvp; in ctfs_latest_getattr() local
157 if (nvp = ctfs_latest_nested_open(vp, cr)) { in ctfs_latest_getattr()
158 int res = VOP_GETATTR(nvp, vap, flags, cr, ct); in ctfs_latest_getattr()
159 VN_RELE(nvp); in ctfs_latest_getattr()
/illumos-gate/usr/src/uts/common/sys/
H A Dnvpair.h116 #define NVP_SIZE(nvp) ((nvp)->nvp_size) argument
117 #define NVP_NAME(nvp) ((char *)(nvp) + sizeof (nvpair_t)) argument
118 #define NVP_TYPE(nvp) ((nvp)->nvp_type) argument
119 #define NVP_NELEM(nvp) ((nvp)->nvp_value_elem) argument
120 #define NVP_VALUE(nvp) ((char *)(nvp) + NV_ALIGN(sizeof (nvpair_t) \ argument
121 + (nvp)->nvp_name_sz))
336 uchar_t fnvpair_value_byte(nvpair_t *nvp);
337 int8_t fnvpair_value_int8(nvpair_t *nvp);
338 int16_t fnvpair_value_int16(nvpair_t *nvp);
339 int32_t fnvpair_value_int32(nvpair_t *nvp);
[all …]
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_persist.c191 if (nvpair_value_nvlist(nvp, &v) != 0) in i_ipadm_ip4_nvp2dbline()
217 if (nvpair_value_nvlist(nvp, &v) != 0) in i_ipadm_ip6_nvp2dbline()
246 if (nvpair_value_nvlist(nvp, &v) != 0) in i_ipadm_intfid_nvp2dbline()
282 if (nvpair_value_nvlist(nvp, &v) != 0 || in i_ipadm_dhcp_nvp2dbline()
303 if (nvpair_value_string(nvp, &str) != 0) in i_ipadm_str_nvp2dbline()
315 nvpair_t *nvp = NULL; in ipadm_nvlist2str() local
320 for (nvp = nvlist_next_nvpair(nvl, NULL); nvp != NULL; in ipadm_nvlist2str()
321 nvp = nvlist_next_nvpair(nvl, nvp)) { in ipadm_nvlist2str()
648 if (nvpair_value_uint16_array(nvp, in i_ipadm_families_nvp2dbline()
658 nvpair_name(nvp), elem[0])); in i_ipadm_families_nvp2dbline()
[all …]
H A Dlibipadm.c567 nvpair_t *nvp; in i_ipadm_init_ifprop() local
573 for (nvp = nvlist_next_nvpair(nvl, NULL); nvp != NULL; in i_ipadm_init_ifprop()
574 nvp = nvlist_next_nvpair(nvl, nvp)) { in i_ipadm_init_ifprop()
603 nvpair_t *nvp; in i_ipadm_init_addrobj() local
611 for (nvp = nvlist_next_nvpair(nvl, NULL); nvp != NULL; in i_ipadm_init_addrobj()
612 nvp = nvlist_next_nvpair(nvl, nvp)) { in i_ipadm_init_addrobj()
662 nvpair_t *nvp; in i_ipadm_init_ifobj() local
679 for (nvp = nvlist_next_nvpair(ifnvl, NULL); nvp != NULL; in i_ipadm_init_ifobj()
680 nvp = nvlist_next_nvpair(ifnvl, nvp)) { in i_ipadm_init_ifobj()
734 for (nvp = nvlist_next_nvpair(ifnvl, NULL); nvp != NULL; in i_ipadm_init_ifobj()
[all …]
H A Dipadm_addr.c293 nvp != NULL; nvp = nvlist_next_nvpair(anvl, nvp)) { in i_ipadm_get_static_addr_db()
610 nvp = nvlist_next_nvpair(nvl, nvp)) { in i_ipadm_nvl2ainfo_common()
739 nvp = nvlist_next_nvpair(nvl, nvp)) { in i_ipadm_nvl2ainfo_persist()
887 nvp = nvlist_next_nvpair(onvl, nvp)) { in i_ipadm_get_all_addr_info()
2220 nvp = nvlist_next_nvpair(nvl, nvp)) { in i_ipadm_enable_static()
2236 nvp = nvlist_next_nvpair(nvaddr, nvp)) { in i_ipadm_enable_static()
2289 nvp = nvlist_next_nvpair(nvl, nvp)) { in i_ipadm_enable_dhcp()
2301 nvp = nvlist_next_nvpair(nvdhcp, nvp)) { in i_ipadm_enable_dhcp()
2345 nvp = nvlist_next_nvpair(nvl, nvp)) { in i_ipadm_enable_addrconf()
2355 nvp = nvlist_next_nvpair(nvaddr, nvp)) { in i_ipadm_enable_addrconf()
[all …]
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_profile.c114 nvpair_t *nvp = NULL; in apply_glob_pattern() local
123 while (nvp = nvlist_next_nvpair(nvl, nvp)) { in apply_glob_pattern()
318 nvpair_t *nvp = NULL; in prof_make_symlinks() local
327 while (nvp = nvlist_next_nvpair(nvl, nvp)) { in prof_make_symlinks()
342 nvpair_t *nvp = NULL; in prof_make_maps() local
351 while (nvp = nvlist_next_nvpair(nvl, nvp)) { in prof_make_maps()
425 nvpair_t *nvp = NULL; in prof_name_matched() local
430 while (nvp = nvlist_next_nvpair(nvl, nvp)) { in prof_name_matched()
453 while (nvp = nvlist_next_nvpair(nvl, nvp)) { in prof_name_matched()
642 while (nvp = nvlist_next_nvpair(nvl, nvp)) { in prof_make_names()
[all …]
/illumos-gate/usr/src/cmd/pptadm/
H A Dpptadm.c86 nvpair_t *nvp = NULL; in print_field() local
88 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) { in print_field()
89 const char *name = nvpair_name(nvp); in print_field()
92 (void) nvpair_value_string(nvp, &val); in print_field()
158 nvpair_t *nvp = NULL; in list() local
165 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) { in list()
168 (void) nvpair_value_nvlist(nvp, &props); in list()
175 if (nvlist_next_nvpair(nvl, nvp) != NULL) in list()
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/
H A Dchip_intel.c128 nvpair_t *nvp; in mc_add_ranks() local
178 nvp = nvlist_next_nvpair(ranks_nvp[i], nvp)) { in mc_add_ranks()
192 nvpair_t *nvp; in mc_add_dimms() local
213 for (nvp = nvlist_next_nvpair(nvl[i], NULL); nvp != NULL; in mc_add_dimms()
214 nvp = nvlist_next_nvpair(nvl[i], nvp)) { in mc_add_dimms()
274 for (nvp = nvlist_next_nvpair(nvl[i], NULL); nvp != NULL; in mc_add_dimms()
275 nvp = nvlist_next_nvpair(nvl[i], nvp)) { in mc_add_dimms()
346 for (nvp = nvlist_next_nvpair(nvl, NULL); nvp != NULL; in mc_add_channel()
347 nvp = nvlist_next_nvpair(nvl, nvp)) { in mc_add_channel()
441 for (nvp = nvlist_next_nvpair(nvl, NULL); nvp != NULL; in mc_nb_create()
[all …]
H A Dchip_amd.c465 nvpair_t *nvp; in amd_dimm_create() local
564 nvp = nvlist_next_nvpair(dimmarr[i], nvp)) { in amd_dimm_create()
585 nvpair_t *nvp; in amd_cs_create() local
627 for (nvp = nvlist_next_nvpair(csarr[i], NULL); nvp != NULL; in amd_cs_create()
628 nvp = nvlist_next_nvpair(csarr[i], nvp)) { in amd_cs_create()
699 nvpair_t *nvp; in amd_htconfig() local
707 for (nvp = nvlist_next_nvpair(htnvl, NULL); nvp != NULL; in amd_htconfig()
708 nvp = nvlist_next_nvpair(htnvl, nvp)) { in amd_htconfig()
724 nvpair_t *nvp; in amd_mc_create() local
806 for (nvp = nvlist_next_nvpair(mc, NULL); nvp != NULL; in amd_mc_create()
[all …]
/illumos-gate/usr/src/lib/libhotplug/common/
H A Dlibhotplug.c779 nvpair_t *nvp; in hp_unpack() local
800 for (nvp = NULL; nvp = nvlist_next_nvpair(nvl, nvp); ) { in hp_unpack()
816 if ((rv = nvpair_value_byte_array(nvp, in hp_unpack()
999 nvpair_t *nvp; in i_hp_unpack_branch() local
1016 for (nvp = NULL; nvp = nvlist_next_nvpair(nvl, nvp); ) { in i_hp_unpack_branch()
1075 nvpair_t *nvp; in i_hp_unpack_node() local
1094 for (nvp = NULL; nvp = nvlist_next_nvpair(nvl, nvp); ) { in i_hp_unpack_node()
1097 (nvpair_type(nvp) == DATA_TYPE_UINT32)) { in i_hp_unpack_node()
1103 (nvpair_type(nvp) == DATA_TYPE_STRING)) { in i_hp_unpack_node()
1112 (nvpair_type(nvp) == DATA_TYPE_UINT32)) { in i_hp_unpack_node()
[all …]
/illumos-gate/usr/src/compat/bhyve/sys/
H A Dnv.h28 nvpair_t *nvp = *cookie; in nvlist_next() local
30 nvp = nvlist_next_nvpair((nvlist_t *)nvl, nvp); in nvlist_next()
31 if (nvp == NULL) in nvlist_next()
34 *cookie = nvp; in nvlist_next()
35 *type = nvpair_type(nvp); in nvlist_next()
36 return (nvpair_name(nvp)); in nvlist_next()
/illumos-gate/usr/src/uts/common/io/idm/
H A Didm_text.c741 nvpair_t *nvp = NULL; in idm_nvlist_to_textbuf() local
747 nvp = nvlist_next_nvpair(nvl, nvp); in idm_nvlist_to_textbuf()
749 if (nvp == NULL) { in idm_nvlist_to_textbuf()
768 idm_itextbuf_add_nvpair(nvpair_t *nvp, in idm_itextbuf_add_nvpair() argument
775 key = nvpair_name(nvp); in idm_itextbuf_add_nvpair()
829 idm_itextbuf_add_string(nvpair_t *nvp, in idm_itextbuf_add_string() argument
837 key_name = nvpair_name(nvp); in idm_itextbuf_add_string()
865 key_name = nvpair_name(nvp); in idm_itextbuf_add_boolean()
894 key_name = nvpair_name(nvp); in idm_itextbuf_add_binary()
940 key_name = nvpair_name(nvp); in idm_itextbuf_add_numerical()
[all …]
/illumos-gate/usr/src/cmd/hotplugd/
H A Dhotplugd_impl.c345 nvpair_t *nvp; in unpack_properties() local
366 for (len = 0, nvp = NULL; nvp = nvlist_next_nvpair(nvl, nvp); ) { in unpack_properties()
368 name = nvpair_name(nvp); in unpack_properties()
372 (nvpair_type(nvp) != DATA_TYPE_STRING)) in unpack_properties()
375 (void) nvpair_value_string(nvp, &value); in unpack_properties()
390 for (nvp = NULL; nvp = nvlist_next_nvpair(nvl, nvp); ) { in unpack_properties()
392 name = nvpair_name(nvp); in unpack_properties()
396 (nvpair_type(nvp) != DATA_TYPE_STRING)) in unpack_properties()
404 (void) nvpair_value_string(nvp, &value); in unpack_properties()
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_fmri.c136 nvpair_t *nvp; in fmd_fmri_auth2str() local
140 for (nvp = nvlist_next_nvpair(nvl, NULL); in fmd_fmri_auth2str()
141 nvp != NULL; nvp = nvlist_next_nvpair(nvl, nvp)) { in fmd_fmri_auth2str()
143 if (nvpair_type(nvp) != DATA_TYPE_STRING) in fmd_fmri_auth2str()
146 n += fmd_fmri_uriescape(nvpair_name(nvp), NULL, NULL, 0) + 1; in fmd_fmri_auth2str()
147 (void) nvpair_value_string(nvp, &v); in fmd_fmri_auth2str()
153 for (nvp = nvlist_next_nvpair(nvl, NULL); in fmd_fmri_auth2str()
154 nvp != NULL; nvp = nvlist_next_nvpair(nvl, nvp)) { in fmd_fmri_auth2str()
156 if (nvpair_type(nvp) != DATA_TYPE_STRING) in fmd_fmri_auth2str()
162 p += fmd_fmri_uriescape(nvpair_name(nvp), NULL, p, n); in fmd_fmri_auth2str()
[all …]
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Drcm_event.c369 nvpair_t *nvp = NULL; in rcm_print_nvlist() local
376 while (nvp = nvlist_next_nvpair(nvl, nvp)) { in rcm_print_nvlist()
377 type = nvpair_type(nvp); in rcm_print_nvlist()
378 name = nvpair_name(nvp); in rcm_print_nvlist()
387 (void) nvpair_value_byte(nvp, &data_byte); in rcm_print_nvlist()
393 (void) nvpair_value_int16(nvp, &data_int16); in rcm_print_nvlist()
399 (void) nvpair_value_uint16(nvp, &data_uint16); in rcm_print_nvlist()
405 (void) nvpair_value_int32(nvp, &data_int32); in rcm_print_nvlist()
411 (void) nvpair_value_uint32(nvp, &data_uint32); in rcm_print_nvlist()
417 (void) nvpair_value_int64(nvp, &data_int64); in rcm_print_nvlist()
[all …]

123456