Lines Matching refs:srp

580 	status_record_t *srp;  in add_resource()  local
593 srp = sp->status_rec_list->status_record; in add_resource()
595 order = cmp_priority(severity, srp->severity, sec, in add_resource()
596 srp->uurec->sec, np->max_pct, sp->max_pct); in add_resource()
600 srp = tp->status_rec_list->status_record; in add_resource()
602 cmp_priority(severity, srp->severity, sec, in add_resource()
603 srp->uurec->sec, np->max_pct, sp->max_pct) < 0) { in add_resource()
605 srp = tp->status_rec_list->status_record; in add_resource()
621 status_record_t *srp; in add_resource_list() local
629 srp = np->status_rec_list->status_record; in add_resource_list()
631 srp->severity, status_rec_p->uurec->sec, in add_resource_list()
632 srp->uurec->sec, fp->max_pct, np->max_pct); in add_resource_list()
865 sr_list_t *srp; in update_asru_state_in_catalog() local
869 srp = status_rec_list; in update_asru_state_in_catalog()
870 if (srp) { in update_asru_state_in_catalog()
872 uurp = srp->status_record->uurec; in update_asru_state_in_catalog()
884 if (srp->next == status_rec_list) in update_asru_state_in_catalog()
886 srp = srp->next; in update_asru_state_in_catalog()
1179 print_sup_record(status_record_t *srp, int opt_i, int full) in print_sup_record() argument
1182 uurec_t *uurp = srp->uurec; in print_sup_record()
1194 k = srp->nrecs - max; in print_sup_record()
1197 srp->nrecs == max_fault+1) { in print_sup_record()
1212 (void) printf("... %d %s\n", srp->nrecs - max_fault, in print_sup_record()
1218 srp->host->server); in print_sup_record()
1219 if (srp->host->domain) in print_sup_record()
1221 srp->host->domain); in print_sup_record()
1223 srp->host->platform); in print_sup_record()
1225 srp->host->chassis ? srp->host->chassis : ""); in print_sup_record()
1227 srp->host->product_sn? srp->host->product_sn : ""); in print_sup_record()
1228 if (srp->class) in print_sup_record()
1229 print_name_list(srp->class, in print_sup_record()
1230 dgettext("FMD", "Fault class :"), 0, srp->class->pct, in print_sup_record()
1232 if (srp->asru) { in print_sup_record()
1233 status = asru_same_status(srp->asru); in print_sup_record()
1235 print_name_list(srp->asru, in print_sup_record()
1240 print_name_list(srp->asru, in print_sup_record()
1244 if (full || srp->fru == NULL || srp->asru == NULL) { in print_sup_record()
1245 if (srp->resource) { in print_sup_record()
1246 status = asru_same_status(srp->resource); in print_sup_record()
1248 print_name_list(srp->resource, in print_sup_record()
1253 print_name_list(srp->resource, in print_sup_record()
1259 if (srp->fru) { in print_sup_record()
1260 status = asru_same_status(srp->fru); in print_sup_record()
1262 print_name_list(srp->fru, dgettext("FMD", in print_sup_record()
1264 srp->fru->pct == 100 ? 100 : srp->fru->max_pct, in print_sup_record()
1268 print_name_list(srp->fru, dgettext("FMD", in print_sup_record()
1270 srp->fru->pct == 100 ? 100 : srp->fru->max_pct, in print_sup_record()
1273 if (srp->serial && !serial_in_fru(srp->fru, srp->serial) && in print_sup_record()
1274 !serial_in_fru(srp->asru, srp->serial)) { in print_sup_record()
1275 print_name_list(srp->serial, dgettext("FMD", "Serial ID. :"), in print_sup_record()
1278 print_dict_info(srp->uurec->event); in print_sup_record()
1283 print_status_record(status_record_t *srp, int summary, int opt_i, int full) in print_status_record() argument
1286 uurec_t *uurp = srp->uurec; in print_status_record()
1319 ari_list->ari_uuid, srp->msgid, srp->severity, in print_status_record()
1320 srp->injected ? dgettext("FMD", "injected") : ""); in print_status_record()
1326 uurp->uuid, srp->msgid, srp->severity, in print_status_record()
1327 srp->injected ? dgettext("FMD", "injected") : ""); in print_status_record()
1331 print_sup_record(srp, opt_i, full); in print_status_record()
1337 status_record_t *srp; in print_catalog() local
1343 srp = slp->status_record; in print_catalog()
1344 if (opt_a || srp->not_suppressed) { in print_catalog()
1347 print_status_record(srp, summary, opt_i, full); in print_catalog()
1357 find_fru(status_record_t *srp, char *resource) in find_fru() argument
1360 name_list_t *fru = srp->fru; in find_fru()
1368 if (fru == srp->fru) in find_fru()
1392 status_record_t *srp; in print_fru() local
1410 srp = slp->status_record; in print_fru()
1411 if (!srp->not_suppressed) { in print_fru()
1415 fru = find_fru(srp, tp->resource); in print_fru()
1432 srp = slp->status_record; in print_fru()
1433 if (!srp->not_suppressed) { in print_fru()
1437 fru = srp->fru; in print_fru()
1443 if (fru == srp->fru) in print_fru()
1470 srp = slp->status_record; in print_fru()
1471 if (!srp->not_suppressed) { in print_fru()
1475 uurp = srp->uurec; in print_fru()
1476 fru = find_fru(srp, tp->resource); in print_fru()
1496 srp = slp->status_record; in print_fru()
1497 if (!srp->not_suppressed) { in print_fru()
1501 if (srp->serial && in print_fru()
1502 !serial_in_fru(srp->fru, in print_fru()
1503 srp->serial)) { in print_fru()
1504 print_name_list(srp->serial, in print_fru()
1524 status_record_t *srp; in print_asru() local
1536 srp = slp->status_record; in print_asru()
1537 if (!srp->not_suppressed) { in print_asru()
1541 asru = srp->asru; in print_asru()
1547 if (asru == srp->asru) in print_asru()