Lines Matching refs:perr

158 		int perr = 0;
168 perr += nvlist_add_string(fmri, FM_FMRI_HC_SERIAL_ID,
170 perr += nvlist_add_string(fmri, FM_FMRI_HC_PART,
172 perr += nvlist_add_string(fmri, FM_FMRI_HC_REVISION,
175 if (perr != 0)
201 int err, perr, nerr = 0;
228 (void) topo_node_fru_set(strand, NULL, 0, &perr);
285 (void) topo_node_label_set(strand, NULL, &perr);
287 if (topo_node_resource(strand, &fmri, &perr) != 0) {
290 perr = 0;
293 perr += nvlist_lookup_string(fmri,
295 perr += nvlist_lookup_string(fmri,
298 if (perr != 0) {
301 perr = 0;
304 perr += topo_prop_set_string(strand, PGNAME(STRAND),
305 FM_FMRI_HC_SERIAL_ID, TOPO_PROP_IMMUTABLE, serial, &perr);
306 perr += topo_prop_set_string(strand, PGNAME(STRAND),
307 FM_FMRI_HC_PART, TOPO_PROP_IMMUTABLE, part, &perr);
308 perr += topo_prop_set_string(strand, PGNAME(STRAND),
309 FM_FMRI_HC_REVISION, TOPO_PROP_IMMUTABLE, rev, &perr);
311 if (perr != 0)
328 int err, perr, nerr = 0;
349 (void) topo_node_fru_set(core, NULL, 0, &perr);
415 (void) topo_node_label_set(core, NULL, &perr);
417 if (topo_node_resource(core, &fmri, &perr) != 0) {
420 perr = 0;
423 perr += nvlist_lookup_string(fmri,
425 perr += nvlist_lookup_string(fmri,
428 if (perr != 0) {
431 perr = 0;
434 perr += topo_prop_set_string(core, PGNAME(CORE),
435 FM_FMRI_HC_SERIAL_ID, TOPO_PROP_IMMUTABLE, serial, &perr);
436 perr += topo_prop_set_string(core, PGNAME(CORE),
437 FM_FMRI_HC_PART, TOPO_PROP_IMMUTABLE, part, &perr);
438 perr += topo_prop_set_string(core, PGNAME(CORE),
439 FM_FMRI_HC_REVISION, TOPO_PROP_IMMUTABLE, rev, &perr);
441 if (perr != 0)
461 int err, perr, nerr = 0;
540 if (topo_node_resource(chip, &fmri, &perr) != 0)
544 (void) topo_node_fru_set(chip, NULL, 0, &perr);
550 if (topo_node_fru_set(chip, fmri, 0, &perr)
554 perr = 0;
558 perr += nvlist_lookup_string(fmri,
560 perr += nvlist_lookup_string(fmri,
562 perr += nvlist_lookup_string(fmri,
565 if (perr != 0) {
569 perr = 0;
572 perr += topo_prop_set_string(chip, PGNAME(CHIP),
574 serial, &perr);
575 perr += topo_prop_set_string(chip, PGNAME(CHIP),
577 part, &perr);
578 perr += topo_prop_set_string(chip, PGNAME(CHIP),
580 rev, &perr);
582 if (perr != 0)
589 if (topo_node_label_set(chip, label, &perr)
601 (void) topo_node_fru_set(chip, fmri, 0, &perr);