Lines Matching refs:result

96 	int result;  in x86pi_get_serverid()  local
101 result = sysinfo(SI_HOSTNAME, hostname, sizeof (hostname)); in x86pi_get_serverid()
103 if (result == -1) { in x86pi_get_serverid()
174 int result; in x86pi_set_auth() local
190 result = topo_pgroup_create(t_node, &auth_pgroup, &err); in x86pi_set_auth()
191 if (result != 0 && err != ETOPO_PROP_DEFD) { in x86pi_set_auth()
216 result = topo_prop_inherit(t_node, FM_FMRI_AUTHORITY, in x86pi_set_auth()
218 if (result != 0 && err != ETOPO_PROP_DEFD) { in x86pi_set_auth()
219 result = nvlist_lookup_string(auth, FM_FMRI_AUTH_PRODUCT, in x86pi_set_auth()
221 if (result != 0 || prod == NULL) { in x86pi_set_auth()
239 result = topo_prop_set_string(t_node, FM_FMRI_AUTHORITY, in x86pi_set_auth()
242 if (result != 0) { in x86pi_set_auth()
254 result = topo_prop_inherit(t_node, FM_FMRI_AUTHORITY, in x86pi_set_auth()
256 if (result != 0 && err != ETOPO_PROP_DEFD) { in x86pi_set_auth()
257 result = nvlist_lookup_string(auth, FM_FMRI_AUTH_PRODUCT_SN, in x86pi_set_auth()
259 if (result != 0 || psn == NULL) { in x86pi_set_auth()
270 result = topo_prop_set_string(t_node, FM_FMRI_AUTHORITY, in x86pi_set_auth()
273 if (result != 0) { in x86pi_set_auth()
287 result = topo_prop_inherit(t_node, FM_FMRI_AUTHORITY, in x86pi_set_auth()
291 result = err = -1; in x86pi_set_auth()
293 if (result != 0 && err != ETOPO_PROP_DEFD) { in x86pi_set_auth()
295 result = nvlist_lookup_string(auth, in x86pi_set_auth()
297 if (result != 0 || csn == NULL) { in x86pi_set_auth()
319 result = topo_prop_set_string(t_node, in x86pi_set_auth()
323 result = topo_prop_set_string(t_node, in x86pi_set_auth()
327 if (result != 0) { in x86pi_set_auth()
344 result = topo_prop_inherit(t_node, FM_FMRI_AUTHORITY, in x86pi_set_auth()
346 if (result != 0 && err != ETOPO_PROP_DEFD) { in x86pi_set_auth()
347 result = nvlist_lookup_string(auth, FM_FMRI_AUTH_SERVER, in x86pi_set_auth()
349 if (result != 0 || server == NULL) { in x86pi_set_auth()
367 result = topo_prop_set_string(t_node, FM_FMRI_AUTHORITY, in x86pi_set_auth()
370 if (result != 0) { in x86pi_set_auth()
398 int result; in x86pi_set_frufmri() local
413 (void) topo_node_fru_set(t_node, NULL, 0, &result); in x86pi_set_frufmri()
431 result = topo_node_fru_set(t_node, frufmri, 0, &err); in x86pi_set_frufmri()
432 if (result != 0) { in x86pi_set_frufmri()
437 return (result); in x86pi_set_frufmri()
448 int result; in x86pi_set_label() local
460 result = topo_node_label_set(t_node, (char *)label, &err); in x86pi_set_label()
461 if (result != 0) { in x86pi_set_label()
468 return (result); in x86pi_set_label()
479 int result; in x86pi_set_system() local
488 result = topo_pgroup_create(t_node, &sys_pgroup, &err); in x86pi_set_system()
489 if (result != 0 && err != ETOPO_PROP_DEFD) { in x86pi_set_system()
498 result = topo_prop_inherit(t_node, TOPO_PGROUP_SYSTEM, TOPO_PROP_ISA, in x86pi_set_system()
500 if (result != 0 && err != ETOPO_PROP_DEFD) { in x86pi_set_system()
502 result = sysinfo(SI_ARCHITECTURE, isa, sizeof (isa)); in x86pi_set_system()
503 if (result == -1) { in x86pi_set_system()
509 result = topo_prop_set_string(t_node, in x86pi_set_system()
512 if (result != 0) { in x86pi_set_system()
523 result = topo_prop_inherit(t_node, TOPO_PGROUP_SYSTEM, in x86pi_set_system()
525 if (result != 0 && err != ETOPO_PROP_DEFD) { in x86pi_set_system()
526 result = uname(&uts); in x86pi_set_system()
527 if (result == -1) { in x86pi_set_system()
534 result = topo_prop_set_string(t_node, in x86pi_set_system()
537 if (result != 0) { in x86pi_set_system()