Lines Matching refs:nvl

317 	nvlist_t *nvl;
341 nvl = hc_fmri_create(mod, pfmri, FM_HC_SCHEME_VERSION, name, min,
344 if (nvl == NULL) {
349 if ((node = topo_node_bind(mod, pnode, name, min, nvl)) == NULL) {
353 nvlist_free(nvl);
361 (void) topo_node_fru_set(node, nvl, 0, &err);
364 nvlist_free(nvl);
476 fmri_nvl2str(nvlist_t *nvl, char *buf, size_t buflen)
494 if (nvlist_lookup_uint8(nvl, FM_VERSION, &version) != 0 ||
499 err = nvlist_lookup_nvlist(nvl, FM_FMRI_AUTHORITY, &anvl);
503 (void) nvlist_lookup_string(nvl, FM_FMRI_HC_ROOT, &root);
505 err = nvlist_lookup_nvlist_array(nvl, FM_FMRI_HC_LIST, &hcprs, &hcnprs);
509 (void) nvlist_lookup_string(nvl, FM_FMRI_HC_SERIAL_ID, &serial);
510 (void) nvlist_lookup_string(nvl, FM_FMRI_HC_PART, &part);
511 (void) nvlist_lookup_string(nvl, FM_FMRI_HC_REVISION, &rev);
562 if (nvlist_lookup_nvlist(nvl, FM_FMRI_HC_SPECIFIC, &hcsp) == 0) {
592 if (nvlist_lookup_nvlist(nvl, FM_FMRI_FACILITY, &fnvl) == 0) {
607 nvlist_t *nvl, nvlist_t **out)
616 if ((len = fmri_nvl2str(nvl, NULL, 0)) == 0 ||
618 fmri_nvl2str(nvl, name, len + 1) == 0) {
904 make_facility(topo_mod_t *mod, char *str, nvlist_t **nvl)
942 *nvl = nf;
1011 topo_mod_dprintf(mod, "construction of new hc nvl failed");
1261 nvlist_t *arg, *nvl;
1281 TOPO_METH_CONTAINS_VERSION, arg, &nvl, &err) != 0) {
1292 if (nvlist_lookup_uint32(nvl, TOPO_METH_CONTAINS_RET,
1294 nvlist_free(nvl);
1298 nvlist_free(nvl);
2139 nvlist_t *nvl;
2149 if (topo_node_resource(node, &nvl, &err) != 0)
2155 if (nvlist_lookup_string(nvl, *namep, &node_val) != 0)
2166 nvlist_free(nvl);
2170 nvlist_free(nvl);