Lines Matching refs:nvl

128 print_node(topo_hdl_t *thp, tnode_t *node, nvlist_t *nvl, const char *fmri)
167 if ((ret = topo_fmri_present(thp, nvl, &err)) < 0)
173 if ((ret = topo_fmri_unusable(thp, nvl, &err)) < 0)
239 print_prop_nameval(topo_hdl_t *thp, tnode_t *node, nvlist_t *nvl)
248 if ((pv_nvp = nvlist_next_nvpair(nvl, NULL)) == NULL)
252 if ((pv_nvp = nvlist_next_nvpair(nvl, NULL)) == NULL ||
262 if ((pv_nvp = nvlist_next_nvpair(nvl, pv_nvp)) == NULL ||
297 (pv_nvp = nvlist_next_nvpair(nvl, pv_nvp)) == NULL) {
406 nvlist_print(stdout, nvl);
600 nvlist_t *nvl = NULL;
612 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0) {
617 ret = nvlist_add_string(nvl, TOPO_PROP_VAL_NAME, pp->prop);
618 ret |= nvlist_add_uint32(nvl, TOPO_PROP_VAL_TYPE, type);
636 ret = nvlist_add_int32(nvl, TOPO_PROP_VAL_VAL, val);
648 ret = nvlist_add_uint32(nvl, TOPO_PROP_VAL_VAL, val);
660 ret = nvlist_add_int64(nvl, TOPO_PROP_VAL_VAL, val);
672 ret = nvlist_add_uint64(nvl, TOPO_PROP_VAL_VAL, val);
677 ret = nvlist_add_string(nvl, TOPO_PROP_VAL_VAL,
689 if ((ret = nvlist_add_nvlist(nvl, TOPO_PROP_VAL_VAL,
707 if ((ret = topo_prop_setprop(node, pp->group, nvl,
708 TOPO_PROP_MUTABLE, nvl, &err)) < 0) {
715 if ((ret = topo_fmri_setprop(thp, fmri, pp->group, nvl,
716 TOPO_PROP_MUTABLE, nvl, &err)) < 0) {
724 nvlist_free(nvl);
725 nvl = NULL;
732 &nvl, &err)) < 0) {
739 NULL, &nvl, &err)) < 0) {
747 print_prop_nameval(thp, node, nvl);
750 nvlist_free(nvl);
757 nvlist_t *nvl;
780 if ((nvl = topo_prop_getprops(node, &err))
788 print_all_props(thp, node, nvl,
790 nvlist_free(nvl);
795 NULL, &nvl, &err) < 0) {
804 print_prop_nameval(thp, node, nvl);
805 nvlist_free(nvl);
818 nvlist_t *nvl;
861 if ((nvl = topo_prop_getprops(node, &err)) == NULL) {
867 print_all_props(thp, node, nvl, ALL);
868 nvlist_free(nvl);
1001 print_fmri_pgroup(topo_hdl_t *thp, const char *pgn, nvlist_t *nvl)
1008 (void) nvlist_lookup_string(nvl, TOPO_PROP_GROUP_NSTAB, &nstab);
1009 (void) nvlist_lookup_string(nvl, TOPO_PROP_GROUP_DSTAB, &dstab);
1010 (void) nvlist_lookup_int32(nvl, TOPO_PROP_GROUP_VERSION, &version);
1014 for (pnvp = nvlist_next_nvpair(nvl, NULL); pnvp != NULL;
1015 pnvp = nvlist_next_nvpair(nvl, pnvp)) {
1031 print_fmri_props(topo_hdl_t *thp, nvlist_t *nvl)
1056 if (topo_fmri_getpgrp(thp, nvl, pp->group,
1069 if (topo_fmri_getprop(thp, nvl, pp->group, pp->prop,
1079 nvlist_free(nvl);
1082 set_prop(thp, NULL, nvl, pp);
1091 nvlist_t *nvl;
1095 if (topo_fmri_str2nvl(thp, g_fmri, &nvl, &err) < 0) {
1113 if (topo_fmri_asru(thp, nvl, &asru, &err) == 0)
1115 if (topo_fmri_fru(thp, nvl, &fru, &err) == 0)
1117 (void) topo_fmri_label(thp, nvl, &lname, &err);
1143 if (topo_fmri_str2nvl(thp, g_fmri, &nvl, &err) < 0) {
1149 if ((ret = topo_fmri_present(thp, nvl, &err)) < 0)
1155 if ((ret = topo_fmri_unusable(thp, nvl, &err)) < 0)
1161 nvlist_free(nvl);
1165 print_fmri_props(thp, nvl);