/titanic_44/usr/src/cmd/picl/plugins/sun4u/snowbird/envmond/ |
H A D | piclenvmond.c | 193 nvlist_t *nvlp; in post_picl_event() local 204 if (nvlist_unpack(envl, elen, &nvlp, 0) < 0) { in post_picl_event() 205 nvlist_free(nvlp); in post_picl_event() 210 if (nvlist_alloc(&nvlp, NV_UNIQUE_NAME_TYPE, NULL)) { in post_picl_event() 216 if (nvlist_add_uint64(nvlp, PICLEVENTARG_NODEHANDLE, nodeh) == -1) { in post_picl_event() 217 nvlist_free(nvlp); in post_picl_event() 222 if (nvlist_pack(nvlp, &pack_buf, &nvl_size, NV_ENCODE_NATIVE, NULL)) { in post_picl_event() 223 nvlist_free(nvlp); in post_picl_event() 227 nvlist_free(nvlp); in post_picl_event() 254 nvlist_t *nvlp; /* nvlist of event specific args */ in post_dr_req_event() local [all …]
|
H A D | piclplatmod.c | 402 nvlist_t *nvlp; in env_platmod_handle_event() local 424 if (nvlist_unpack((char *)earg, size, &nvlp, NULL)) { in env_platmod_handle_event() 427 if (nvlist_lookup_uint64(nvlp, PICLEVENTARG_NODEHANDLE, &nodeh) == -1) { in env_platmod_handle_event() 428 nvlist_free(nvlp); in env_platmod_handle_event() 431 if (nvlist_lookup_string(nvlp, (state_event) ? in env_platmod_handle_event() 434 nvlist_free(nvlp); in env_platmod_handle_event() 443 nvlist_free(nvlp); in env_platmod_handle_event() 453 nvlist_free(nvlp); in env_platmod_handle_event() 463 nvlist_free(nvlp); in env_platmod_handle_event() 483 nvlist_free(nvlp); in env_platmod_handle_event() [all …]
|
H A D | picldr.c | 763 nvlist_t *nvlp; in env_handle_event() local 780 if (nvlist_unpack((char *)earg, size, &nvlp, NULL)) { in env_handle_event() 783 if (nvlist_lookup_uint64(nvlp, PICLEVENTARG_NODEHANDLE, &nodeh) == -1) { in env_handle_event() 784 nvlist_free(nvlp); in env_handle_event() 787 if (nvlist_lookup_string(nvlp, (state_event) ? in env_handle_event() 790 nvlist_free(nvlp); in env_handle_event() 799 nvlist_free(nvlp); in env_handle_event() 809 nvlist_free(nvlp); in env_handle_event() 821 nvlist_free(nvlp); in env_handle_event()
|
/titanic_44/usr/src/uts/common/ipp/meters/ |
H A D | tokenmtddi.c | 124 nvlist_t *nvlp; in tokenmt_create_action() local 134 nvlp = *nvlpp; in tokenmt_create_action() 138 nvlist_free(nvlp); in tokenmt_create_action() 143 if ((rc = nvlist_lookup_string(nvlp, TOKENMT_RED_ACTION_NAME, in tokenmt_create_action() 145 nvlist_free(nvlp); in tokenmt_create_action() 153 nvlist_free(nvlp); in tokenmt_create_action() 160 if ((rc = nvlist_lookup_string(nvlp, TOKENMT_YELLOW_ACTION_NAME, in tokenmt_create_action() 164 nvlist_free(nvlp); in tokenmt_create_action() 175 if ((rc = nvlist_lookup_string(nvlp, TOKENMT_GREEN_ACTION_NAME, in tokenmt_create_action() 177 nvlist_free(nvlp); in tokenmt_create_action() [all …]
|
H A D | tswtclddi.c | 105 nvlist_t *nvlp; in tswtcl_create_action() local 112 nvlp = *nvlpp; in tswtcl_create_action() 117 nvlist_free(nvlp); in tswtcl_create_action() 122 if ((rc = nvlist_lookup_string(nvlp, TSWTCL_RED_ACTION_NAME, in tswtcl_create_action() 124 nvlist_free(nvlp); in tswtcl_create_action() 132 nvlist_free(nvlp); in tswtcl_create_action() 139 if ((rc = nvlist_lookup_string(nvlp, TSWTCL_YELLOW_ACTION_NAME, in tswtcl_create_action() 141 nvlist_free(nvlp); in tswtcl_create_action() 149 nvlist_free(nvlp); in tswtcl_create_action() 156 if ((rc = nvlist_lookup_string(nvlp, TSWTCL_GREEN_ACTION_NAME, in tswtcl_create_action() [all …]
|
/titanic_44/usr/src/uts/common/ipp/ |
H A D | ippctl.c | 207 static int ippctl_attach_modname(nvlist_t *nvlp, char *val); 208 static int ippctl_attach_modname_array(nvlist_t *nvlp, char **val, int); 209 static int ippctl_attach_aname_array(nvlist_t *nvlp, char **val, int); 762 nvlist_t *nvlp, in ippctl_extract_op() argument 772 if ((rc = nvlist_lookup_byte(nvlp, IPPCTL_OP, valp)) != 0) in ippctl_extract_op() 775 (void) nvlist_remove_all(nvlp, IPPCTL_OP); in ippctl_extract_op() 783 nvlist_t *nvlp, in ippctl_extract_aname() argument 794 if ((rc = nvlist_lookup_string(nvlp, IPPCTL_ANAME, &ptr)) != 0) in ippctl_extract_aname() 799 (void) nvlist_remove_all(nvlp, IPPCTL_ANAME); in ippctl_extract_aname() 807 nvlist_t *nvlp, in ippctl_extract_modname() argument [all …]
|
/titanic_44/usr/src/uts/common/ipp/dlcosmk/ |
H A D | dlcosmkddi.c | 102 nvlist_t *nvlp; in dlcosmk_create_action() local 110 nvlp = *nvlpp; in dlcosmk_create_action() 114 nvlist_free(nvlp); in dlcosmk_create_action() 119 if ((err = nvlist_lookup_string(nvlp, DLCOSMK_NEXT_ACTION_NAME, in dlcosmk_create_action() 121 nvlist_free(nvlp); in dlcosmk_create_action() 129 nvlist_free(nvlp); in dlcosmk_create_action() 136 if ((err = nvlist_lookup_byte(nvlp, DLCOSMK_COS, in dlcosmk_create_action() 138 nvlist_free(nvlp); in dlcosmk_create_action() 146 if ((err = nvlist_lookup_uint32(nvlp, DLCOSMK_BAND, ¶m)) != 0) { in dlcosmk_create_action() 147 nvlist_free(nvlp); in dlcosmk_create_action() [all …]
|
/titanic_44/usr/src/lib/libipp/ |
H A D | libipp.c | 122 nvlist_t *nvlp; in ipp_action_create() local 140 nvlp = *nvlpp; in ipp_action_create() 141 if ((rc = nvlist_add_byte(nvlp, IPPCTL_OP, in ipp_action_create() 147 if ((rc = nvlist_add_string(nvlp, IPPCTL_MODNAME, in ipp_action_create() 154 if ((rc = nvlist_add_string(nvlp, IPPCTL_ANAME, (char *)aname)) != 0) { in ipp_action_create() 159 if ((rc = nvlist_add_uint32(nvlp, IPPCTL_FLAGS, flags)) != 0) { in ipp_action_create() 181 nvlist_t *nvlp; in ipp_action_destroy() local 198 if ((rc = nvlist_alloc(&nvlp, NV_UNIQUE_NAME, 0)) != 0) { in ipp_action_destroy() 200 nvlp = NULL; in ipp_action_destroy() 204 if ((rc = nvlist_add_byte(nvlp, IPPCTL_OP, in ipp_action_destroy() [all …]
|
/titanic_44/usr/src/uts/common/ipp/flowacct/ |
H A D | flowacctddi.c | 182 nvlist_t *nvlp; in flowacct_create_action() local 191 nvlp = *nvlpp; in flowacct_create_action() 196 nvlist_free(nvlp); in flowacct_create_action() 201 if ((rc = nvlist_lookup_string(nvlp, FLOWACCT_NEXT_ACTION_NAME, in flowacct_create_action() 203 nvlist_free(nvlp); in flowacct_create_action() 211 nvlist_free(nvlp); in flowacct_create_action() 218 nvlist_free(nvlp); in flowacct_create_action() 225 (void) nvlist_lookup_uint32(nvlp, FLOWACCT_TIMEOUT, &timeout); in flowacct_create_action() 231 (void) nvlist_lookup_uint32(nvlp, FLOWACCT_TIMER, &timer); in flowacct_create_action() 236 if ((rc = nvlist_lookup_uint32(nvlp, FLOWACCT_MAX_LIMIT, in flowacct_create_action() [all …]
|
/titanic_44/usr/src/uts/common/ipp/dscpmk/ |
H A D | dscpmkddi.c | 125 nvlist_t *nvlp; in dscpmk_create_action() local 135 nvlp = *nvlpp; in dscpmk_create_action() 139 nvlist_free(nvlp); in dscpmk_create_action() 144 if ((err = nvlist_lookup_string(nvlp, DSCPMK_NEXT_ACTION_NAME, in dscpmk_create_action() 146 nvlist_free(nvlp); in dscpmk_create_action() 155 nvlist_free(nvlp); in dscpmk_create_action() 169 if ((err = nvlist_lookup_int32_array(nvlp, DSCPMK_DSCP_MAP, in dscpmk_create_action() 181 if ((err = nvlist_lookup_uint32(nvlp, IPP_ACTION_STATS_ENABLE, &bstats)) in dscpmk_create_action() 190 nvlist_free(nvlp); in dscpmk_create_action() 207 if ((err = nvlist_lookup_uint32(nvlp, DSCPMK_DETAILED_STATS, &bstats)) in dscpmk_create_action() [all …]
|
/titanic_44/usr/src/uts/common/ipp/ipgpc/ |
H A D | classifierddi.c | 158 nvlist_t *nvlp; in ipgpc_create_action() local 160 nvlp = *nvlpp; in ipgpc_create_action() 165 nvlist_free(nvlp); in ipgpc_create_action() 170 nvlist_free(nvlp); in ipgpc_create_action() 175 if ((rc = nvlist_lookup_uint32(nvlp, IPP_ACTION_STATS_ENABLE, in ipgpc_create_action() 186 nvlist_free(nvlp); in ipgpc_create_action() 191 nvlist_free(nvlp); in ipgpc_create_action() 210 nvlist_t *nvlp; in ipgpc_modify_action() local 219 nvlp = *nvlpp; in ipgpc_modify_action() 222 if ((rc = nvlist_lookup_byte(nvlp, IPP_CONFIG_TYPE, &config_type)) in ipgpc_modify_action() [all …]
|
H A D | filters.c | 584 ipgpc_parse_filter(ipgpc_filter_t *filter, nvlist_t *nvlp) in ipgpc_parse_filter() argument 594 if (nvlist_lookup_string(nvlp, CLASSIFIER_FILTER_NAME, &s) != 0) { in ipgpc_parse_filter() 599 if (nvlist_lookup_uint32(nvlp, IPP_CONFIG_ORIGINATOR, in ipgpc_parse_filter() 615 if (nvlist_lookup_uint32(nvlp, IPGPC_UID, &filter->uid) != 0) { in ipgpc_parse_filter() 620 if (nvlist_lookup_int32(nvlp, IPGPC_PROJID, &filter->projid) != 0) { in ipgpc_parse_filter() 625 if (nvlist_lookup_uint32(nvlp, IPGPC_IF_INDEX, &filter->if_index) in ipgpc_parse_filter() 631 if (nvlist_lookup_uint32(nvlp, IPGPC_DIR, &filter->direction) != 0) { in ipgpc_parse_filter() 636 if (nvlist_lookup_byte(nvlp, IPGPC_PROTO, &filter->proto) != 0) { in ipgpc_parse_filter() 644 if (nvlist_lookup_byte(nvlp, IPGPC_DSFIELD_MASK, &filter->dsfield_mask) in ipgpc_parse_filter() 647 if (nvlist_lookup_byte(nvlp, IPGPC_DSFIELD, &filter->dsfield) in ipgpc_parse_filter() [all …]
|
/titanic_44/usr/src/cmd/picl/plugins/sun4v/mdesc/ |
H A D | mdescplugin.c | 103 nvlist_t *nvlp = NULL; in dr_handler() local 113 if (nvlist_unpack((char *)earg, size, &nvlp, NULL)) { in dr_handler() 117 if (nvlist_lookup_string(nvlp, PICLEVENTARG_DATA_TYPE, &dtype)) { in dr_handler() 118 nvlist_free(nvlp); in dr_handler() 123 nvlist_free(nvlp); in dr_handler() 127 if (nvlist_lookup_string(nvlp, PICLEVENTARG_AP_ID, &ap_id)) { in dr_handler() 128 nvlist_free(nvlp); in dr_handler() 132 if (nvlist_lookup_string(nvlp, PICLEVENTARG_HINT, &hint)) { in dr_handler() 133 nvlist_free(nvlp); in dr_handler() 139 nvlist_free(nvlp); in dr_handler() [all …]
|
/titanic_44/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_nvl.c | 47 topo_mod_nvalloc(topo_mod_t *mod, nvlist_t **nvlp, uint_t nvflag) in topo_mod_nvalloc() argument 49 if (nvlist_xalloc(nvlp, nvflag, &mod->tm_alloc->ta_nva) != 0) in topo_mod_nvalloc() 56 topo_mod_nvdup(topo_mod_t *mod, nvlist_t *nvl, nvlist_t **nvlp) in topo_mod_nvdup() argument 58 if (nvlist_xdup(nvl, nvlp, &mod->tm_alloc->ta_nva) != 0) in topo_mod_nvdup() 65 topo_hdl_nvalloc(topo_hdl_t *thp, nvlist_t **nvlp, uint_t nvflag) in topo_hdl_nvalloc() argument 68 if (nvlist_xalloc(nvlp, nvflag, &thp->th_alloc->ta_nva) != 0) in topo_hdl_nvalloc() 75 topo_hdl_nvdup(topo_hdl_t *thp, nvlist_t *nvl, nvlist_t **nvlp) in topo_hdl_nvdup() argument 77 if (nvlist_xdup(nvl, nvlp, &thp->th_alloc->ta_nva) != 0) in topo_hdl_nvdup()
|
/titanic_44/usr/src/cmd/picl/plugins/common/piclevent/ |
H A D | piclevent.c | 102 parse_piclevent(nvlist_t *nvlp) in parse_piclevent() argument 110 if (nvlist_lookup_string(nvlp, PICLEVENTARG_EVENT_NAME, &enval)) in parse_piclevent() 114 if (nvlist_pack(nvlp, &packed_nvl, &nvl_size, NV_ENCODE_NATIVE, NULL)) in parse_piclevent() 150 nvlist_t *nvlp; in event_handler() local 161 if (nvlist_unpack(argp, asize, &nvlp, NULL)) in event_handler() 164 if (nvlist_lookup_string(nvlp, PICLEVENTARG_DATA_TYPE, &dtype)) { in event_handler() 165 nvlist_free(nvlp); in event_handler() 170 parse_piclevent(nvlp); in event_handler() 174 nvlist_free(nvlp); in event_handler()
|
/titanic_44/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | topo_gather.c | 64 nonunique_nvlist_lookup_##suffix(nvlist_t *nvlp, const char *n, atype *rpp) \ 67 while ((nvp = nvlist_next_nvpair(nvlp, nvp)) != NULL) { \ 135 nvlist_t *list_of_lists, *nvlp, *dupnvlp; in find_disk_monitor_private_pgroup() local 158 nvpair_value_nvlist(nvp, &nvlp) != 0) in find_disk_monitor_private_pgroup() 161 dm_assert(nvlp != NULL); in find_disk_monitor_private_pgroup() 164 if (nonunique_nvlist_lookup_string(nvlp, in find_disk_monitor_private_pgroup() 174 if (nvlist_dup(nvlp, &dupnvlp, 0) == 0) in find_disk_monitor_private_pgroup() 465 nvlist_t *nvlp = find_disk_monitor_private_pgroup(node); in topo_add_bay() local 489 if (nvlp == NULL) in topo_add_bay() 517 nvlist_free(nvlp); in topo_add_bay() [all …]
|
H A D | diskmon_conf.c | 166 nvlist_t *nvlp = NULL; in namevalpr_to_nvlist() local 168 if (nvlist_alloc(&nvlp, NV_UNIQUE_NAME, 0) != 0) { in namevalpr_to_nvlist() 172 if (nvlist_add_string(nvlp, nvprp->name, nvprp->value) != 0) { in namevalpr_to_nvlist() 173 nvlist_free(nvlp); in namevalpr_to_nvlist() 177 return (nvlp); in namevalpr_to_nvlist() 332 nvlist_t *nvlp) in new_diskmon() argument 336 if (nvlp != NULL) in new_diskmon() 337 dmp->props = nvlp; in new_diskmon() 711 print_props(nvlist_t *nvlp, FILE *fp, char *prefix) in print_props() argument 713 nvpair_t *nvp = nvlist_next_nvpair(nvlp, NULL); in print_props() [all …]
|
/titanic_44/usr/src/cmd/picl/plugins/sun4u/snowbird/frutree/ |
H A D | piclfrutree.c | 555 nvlist_t *nvlp; in frutree_wd_evhandler() local 570 if (nvlist_unpack((char *)earg, size, &nvlp, NULL)) { in frutree_wd_evhandler() 574 if (nvlist_lookup_uint64(nvlp, PICLEVENTARG_NODEHANDLE, in frutree_wd_evhandler() 576 nvlist_free(nvlp); in frutree_wd_evhandler() 580 if (nvlist_lookup_string(nvlp, PICLEVENTARG_STATE, in frutree_wd_evhandler() 582 nvlist_free(nvlp); in frutree_wd_evhandler() 588 nvlist_free(nvlp); in frutree_wd_evhandler() 594 nvlist_free(nvlp); in frutree_wd_evhandler() 601 nvlist_free(nvlp); in frutree_wd_evhandler() 608 nvlist_free(nvlp); in frutree_wd_evhandler() [all …]
|
/titanic_44/usr/src/uts/common/fs/ |
H A D | xattr.c | 140 xattr_fill_nvlist(vnode_t *vp, xattr_view_t xattr_view, nvlist_t *nvlp, in xattr_fill_nvlist() argument 222 VERIFY(nvlist_add_uint64(nvlp, attr_to_name(attr), in xattr_fill_nvlist() 252 VERIFY(nvlist_add_boolean_value(nvlp, in xattr_fill_nvlist() 257 VERIFY(nvlist_add_boolean_value(nvlp, in xattr_fill_nvlist() 262 VERIFY(nvlist_add_boolean_value(nvlp, in xattr_fill_nvlist() 267 VERIFY(nvlist_add_boolean_value(nvlp, in xattr_fill_nvlist() 272 VERIFY(nvlist_add_boolean_value(nvlp, in xattr_fill_nvlist() 277 VERIFY(nvlist_add_boolean_value(nvlp, in xattr_fill_nvlist() 282 VERIFY(nvlist_add_boolean_value(nvlp, in xattr_fill_nvlist() 287 VERIFY(nvlist_add_boolean_value(nvlp, in xattr_fill_nvlist() [all …]
|
/titanic_44/usr/src/uts/intel/io/ |
H A D | devfm_machdep.c | 149 populate_cpu(nvlist_t **nvlp, cmi_hdl_t hdl) in populate_cpu() argument 154 (void) nvlist_alloc(nvlp, NV_UNIQUE_NAME, KM_SLEEP); in populate_cpu() 171 (void) nvlist_add_nvlist(*nvlp, FM_PHYSCPU_INFO_CHIP_ROOTS, in populate_cpu() 173 (void) nvlist_add_uint16(*nvlp, FM_PHYSCPU_INFO_SMBIOS_ID, in populate_cpu() 178 fm_payload_set(*nvlp, in populate_cpu()
|
/titanic_44/usr/src/cmd/picl/plugins/sun4u/snowbird/watchdog/ |
H A D | piclwatchdog.c | 1481 nvlist_t *nvlp; in wd_state_change_evhandler() local 1495 if (nvlist_unpack((char *)earg, size, &nvlp, NULL)) { in wd_state_change_evhandler() 1498 if ((nvlist_lookup_uint64(nvlp, PICLEVENTARG_NODEHANDLE, in wd_state_change_evhandler() 1500 nvlist_free(nvlp); in wd_state_change_evhandler() 1503 if (nvlist_lookup_string(nvlp, PICLEVENTARG_STATE, &value)) { in wd_state_change_evhandler() 1504 nvlist_free(nvlp); in wd_state_change_evhandler() 1511 nvlist_free(nvlp); in wd_state_change_evhandler() 1517 nvlist_free(nvlp); in wd_state_change_evhandler() 1523 nvlist_free(nvlp); in wd_state_change_evhandler() 1528 nvlist_free(nvlp); in wd_state_change_evhandler() [all …]
|
/titanic_44/usr/src/uts/common/fs/dev/ |
H A D | sdev_profile.c | 779 nvlist_t **nvlp = NULL; in prof_add_rule() local 789 nvlp = &(dir->sdev_prof.dev_glob_incdir); in prof_add_rule() 791 nvlp = &(dir->sdev_prof.dev_name); in prof_add_rule() 795 nvlp = &(dir->sdev_prof.dev_glob_excdir); in prof_add_rule() 797 nvlp = &(dir->sdev_prof.dev_name); in prof_add_rule() 800 nvlp = &(dir->sdev_prof.dev_map); in prof_add_rule() 803 nvlp = &(dir->sdev_prof.dev_symlink); in prof_add_rule() 808 if (*nvlp == NULL) { in prof_add_rule() 809 error = nvlist_alloc(nvlp, NV_UNIQUE_NAME, KM_SLEEP); in prof_add_rule() 814 rv = nvlist_add_string(*nvlp, name, tgt); in prof_add_rule() [all …]
|
/titanic_44/usr/src/common/nvpair/ |
H A D | nvpair.c | 269 nvlist_alloc(nvlist_t **nvlp, uint_t nvflag, int kmflag) in nvlist_alloc() argument 272 return (nvlist_xalloc(nvlp, nvflag, in nvlist_alloc() 275 return (nvlist_xalloc(nvlp, nvflag, nv_alloc_nosleep)); in nvlist_alloc() 280 nvlist_xalloc(nvlist_t **nvlp, uint_t nvflag, nv_alloc_t *nva) in nvlist_xalloc() argument 284 if (nvlp == NULL || nva == NULL) in nvlist_xalloc() 290 if ((*nvlp = nv_mem_zalloc(priv, in nvlist_xalloc() 296 nvlist_init(*nvlp, nvflag, priv); in nvlist_xalloc() 538 nvlist_t **nvlp = EMBEDDED_NVL_ARRAY(nvp); in nvpair_free() local 542 nvlist_free(nvlp[i]); in nvpair_free() 604 nvlist_dup(nvlist_t *nvl, nvlist_t **nvlp, int kmflag) in nvlist_dup() argument [all …]
|
/titanic_44/usr/src/cmd/picl/plugins/sun4v/piclsbl/ |
H A D | piclsbl.c | 204 nvlist_t *nvlp = NULL; in piclsbl_handler() local 239 if (nvlist_unpack((char *)earg, size, &nvlp, NULL)) in piclsbl_handler() 241 if (nvlist_lookup_string(nvlp, "devfs-path", &devfs_path)) in piclsbl_handler() 375 nvlist_free(nvlp); in piclsbl_handler()
|
/titanic_44/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/ |
H A D | piclfrudr.c | 1474 nvlist_t *nvlp; in frudr_evhandler() local 1491 if (nvlist_unpack((char *)earg, size, &nvlp, NULL)) { in frudr_evhandler() 1495 if (nvlist_lookup_string(nvlp, PICLEVENTARG_DATA_TYPE, &dtype)) { in frudr_evhandler() 1496 nvlist_free(nvlp); in frudr_evhandler() 1501 nvlist_free(nvlp); in frudr_evhandler() 1505 if (nvlist_lookup_string(nvlp, PICLEVENTARG_AP_ID, &ap_id)) { in frudr_evhandler() 1506 nvlist_free(nvlp); in frudr_evhandler() 1525 nvlist_free(nvlp); in frudr_evhandler() 1529 if (nvlist_lookup_string(nvlp, PICLEVENTARG_HINT, &hint)) { in frudr_evhandler() 1530 nvlist_free(nvlp); in frudr_evhandler() [all …]
|