| /onnv/onnv-gate/usr/src/lib/fm/topo/modules/common/ipmi/ |
| ipmi_methods.c | 113 * FRU's that we're enumerating. It takes the following three arguments: 121 * offset: a numeric offset that we'll number the FRU's from. This is to 122 * allow for the fact that some systems may number the FRU's 167 * This is a somewhat generic property method for attaching a FRU fmri onto 168 * a power supply or fan based on the assumption that the FRU will either be 180 nvlist_t *args, *fru; local 195 if (topo_node_resource(node, &fru, &err) != 0) 198 if (topo_node_resource(topo_node_parent(node), &fru, &err) != 0) 205 if (store_prop_val(mod, (void *)fru, "FRU", TOPO_TYPE_FMRI, out) != 0) [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/ |
| cmd_cpu_arch.c | 214 nvlist_t *fru, *hcelem; local 231 if (nvlist_alloc(&fru, NV_UNIQUE_NAME, 0) != 0) { 236 if (nvlist_add_uint8(fru, FM_VERSION, FM_HC_SCHEME_VERSION) != 0 || 237 nvlist_add_string(fru, FM_FMRI_SCHEME, FM_FMRI_SCHEME_HC) != 0 || 239 nvlist_add_string(fru, FM_FMRI_HC_PART, partstr) != 0) || 241 nvlist_add_string(fru, FM_FMRI_HC_SERIAL_ID, 243 nvlist_add_string(fru, FM_FMRI_HC_ROOT, "") != 0 || 244 nvlist_add_uint32(fru, FM_FMRI_HC_LIST_SZ, 1) != 0 || 245 nvlist_add_nvlist_array(fru, FM_FMRI_HC_LIST, &hcelem, 1) != 0) { 247 nvlist_free(fru); [all...] |
| cmd_dperr.c | 90 * Construct the ASRU(s)/FRU(s) associated with a data path fault, 101 nvlist_t *asru, *fru = NULL, *flt, *hcel; local 110 /* extract fru position */ 114 /* build FRU(s) for the particular error */ 167 /* For each FRU, build an FMRI, create fault, add as suspect */ 169 /* build a FRU FMRI */ 184 if (nvlist_alloc(&fru, NV_UNIQUE_NAME, 0) != 0) { 189 err = nvlist_add_uint8(fru, FM_VERSION, FM_HC_SCHEME_VERSION); 190 err |= nvlist_add_string(fru, FM_FMRI_SCHEME, 192 err |= nvlist_add_string(fru, FM_FMRI_HC_ROOT, "") [all...] |
| cmd_oplerr.c | 64 nvlist_t *rsrc = NULL, *asru = NULL, *fru = NULL; local 118 if ((fru = opl_mem_fru_create(hdl, asru)) == NULL) { 123 cmd_page_fault(hdl, asru, fru, ep, pa); 125 nvlist_free(fru); 377 nvlist_t *asru, nvlist_t *fru, uint64_t pa, nvlist_t *nvl) 426 cmd_page_fault(hdl, asru, fru, ep, pa); 444 nvlist_t *rsrc = NULL, *asru = NULL, *fru = NULL; local 482 if ((fru = opl_mem_fru_create(hdl, asru)) == NULL) { 496 ret = cmd_opl_mac_ce(hdl, ep, class, asru, fru, pa, nvl); 498 nvlist_free(fru); [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/fmdump/common/ |
| fault.c | 81 nvlist_t *fru, *asru, *rsrc; local 87 if (nvlist_lookup_nvlist(nva[i], FM_FAULT_FRU, &fru) == 0) 88 fname = fmdump_nvl2str(fru); 126 fmdump_printf(fp, " FRU: %s\n",
|
| /onnv/onnv-gate/usr/src/cmd/fm/modules/sun4v/cpumem-diagnosis/ |
| cmd_cpu_arch.c | 464 nvlist_t *fru; local 467 fru = cmd_mkboard_fru(hdl, frustr, serialstr, partstr); 468 return (fru);
|
| cmd_hc_sun4v.c | 177 nvlist_t *fru, **hc_list; local 211 if (nvlist_alloc(&fru, NV_UNIQUE_NAME, 0) != 0) { 221 if (nvlist_add_uint8(fru, FM_VERSION, FM_HC_SCHEME_VERSION) != 0 || 222 nvlist_add_string(fru, FM_FMRI_SCHEME, FM_FMRI_SCHEME_HC) != 0 || 223 nvlist_add_string(fru, FM_FMRI_HC_ROOT, "") != 0 || 224 nvlist_add_uint32(fru, FM_FMRI_HC_LIST_SZ, n) != 0 || 225 nvlist_add_nvlist_array(fru, FM_FMRI_HC_LIST, hc_list, n) != 0) { 232 nvlist_free(fru); 244 nvlist_add_string(fru, FM_FMRI_HC_SERIAL_ID, serialstr) != 0) || 246 nvlist_add_string(fru, FM_FMRI_HC_PART, partstr) != 0)) 370 nvlist_t *fru; local [all...] |
| /onnv/onnv-gate/usr/src/lib/fm/topo/modules/sun4u/chip/ |
| chip_sun4u.c | 228 * and the FRU. 232 * we start exporting a different type of FRU label 237 nvlist_t *fru; local 241 &fru) == 0) { 242 (void) topo_node_fru_set(cnode, fru, 0, &err); 243 nvlist_free(fru);
|
| /onnv/onnv-gate/usr/src/lib/fm/topo/modules/sun4v/platform-cpu/ |
| cpu_mdesc.h | 49 #define MD_STR_FRU "fru" 66 char *nac; /* FRU or nac */ 67 char *serial; /* FRU serial */ 68 char *part; /* FRU part number */ 69 char *dash; /* FRU dash */ 75 md_fru_t *fru; /* FRU info */ member in struct:md_proc
|
| /onnv/onnv-gate/usr/src/cmd/fm/modules/sun4v/generic-mem/ |
| gmem_dimm.c | 321 nvlist_t *fru = NULL; local 326 if (topo_node_fru(node, &fru, NULL, &err) < 0) 329 err = nvlist_lookup_string(fru, FM_FMRI_HC_SERIAL_ID, &topo_sn); 331 nvlist_free(fru); 336 nvlist_free(fru); 342 (void) nvlist_dup(fru, &dimm_nvl, NV_UNIQUE_NAME); 363 nvlist_free(fru); 392 dimmid_t fru; local 393 (void) strcpy(fru.serial, sn); 394 fru.type = FINDFRU [all...] |
| gmem_memerr.c | 409 nvlist_t *fru = NULL; local 448 * Find dimm fru by serial number. 450 fru = gmem_find_dimm_fru(hdl, sn); 452 if (fru == NULL) { 457 if ((dimm = gmem_dimm_lookup(hdl, fru)) == NULL && 458 (dimm = gmem_dimm_create(hdl, fru)) == NULL) { 459 nvlist_free(fru); 504 nvlist_free(fru); 508 nvlist_free(fru); 517 nvlist_free(fru); [all...] |
| /onnv/onnv-gate/usr/src/lib/fm/topo/modules/sun4v/chip/ |
| chip_sun4v.c | 124 nvlist_t *fru, char *label, void *priv) 194 /* Inherit the Label FRU fields from the parent */ 196 (void) topo_node_fru_set(ntn, fru, 0, &err); 351 nvlist_t *fru = NULL; local 382 sbuf, fru, label, NULL);
|
| /onnv/onnv-gate/usr/src/lib/fm/topo/modules/sun4v/dimm/ |
| dimm_sun4v.c | 119 nvlist_t *fru, char *label, void *priv) 161 (void) topo_node_fru_set(ntn, fru, 0, &err); 200 nvlist_t *rsrc, *fru; local 205 * Because mem_tnode_create will fill in a "FRU" value by default, 206 * but not an "ASRU" value, we have to compute the desired "FRU" 213 if ((fru = topo_mod_hcfmri(mod, pnode, FM_HC_SCHEME_VERSION, "dimm", 219 dp->dm_serid, fru, dp->dm_label, NULL); 220 nvlist_free(fru); 268 nvlist_t *fru; local 276 } else if (*(d->dm_label + pfnext) == '\0') { /* this node has a fru */ [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/modules/common/disk-monitor/ |
| dm_platform.c | 71 * [1] `fru gid=<n> hdd=<m>' 75 * (e.g. `fru' or `sensor') and an nvlist that contains the key-value 189 ipmi_sunoem_fru_t fru; local 198 fru.isf_type = (uint8_t)gid; 199 fru.isf_id = (uint8_t)hdd; 201 buf = (char *)dzmalloc(sizeof (fru.isf_data.disk.isf_capacity) + 1); 203 (void) memcpy(fru.isf_data.disk.isf_manufacturer, frup->manuf, 204 MIN(sizeof (fru.isf_data.disk.isf_manufacturer), 206 (void) memcpy(fru.isf_data.disk.isf_model, frup->model, 207 MIN(sizeof (fru.isf_data.disk.isf_model), sizeof (frup->model))) [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/modules/common/sensor-transport/ |
| sensor_transport.c | 69 { "bad_fmri", FMD_TYPE_UINT64, "bad or missing resource/FRU FMRI" }, 80 nvlist_t *nvl, *props, *rsrc, *fru; local 101 * physical FRU and will report failure if the FRU is no longer there. 129 if (topo_node_fru(node, &fru, NULL, NULL) != 0) { 136 if (topo_fmri_nvl2str(thp, fru, &fmri, &err) != 0) { 139 nvlist_free(fru); 144 nvlist_free(fru); 159 * a problem with this FRU, but disagree on the values 193 * See if we know about this fru [all...] |
| /onnv/onnv-gate/usr/src/lib/libzfs/common/ |
| libzfs_fru.c | 53 * In order to work around these limitations, we have a per-vdev FRU property 107 nvlist_t *fru; local 132 * Get the devfs path and FRU. 142 if (_topo_node_fru(tn, &fru, NULL, &err) != 0) { 148 * Convert the FRU into a string. 150 if (_topo_fmri_nvl2str(thp, fru, &frustr, &err) != 0) { 151 nvlist_free(fru); 156 nvlist_free(fru); 159 * Finally, we have a FRU string and device path. Add it to the hash. 251 * hc topology looking for disk nodes, and recording the io/devfs-path and FRU [all...] |
| /onnv/onnv-gate/usr/src/lib/fm/topo/modules/i86pc/chip/ |
| chip.c | 225 * Inherit FRU from core node, in native use cpu scheme ASRU, 230 * From the inherited FRU, extract the Serial 346 * Inherit FRU from the chip node, for native, we use hc 351 * From the inherited FRU, extract the Serial 530 int fru = 0; local 536 fru = chip_fru_smbios_get(mod, smbios_id); 538 * Chip is not a FRU, set the FRU fmri of parent node 543 if (!fru) {
|
| chip_smbios.c | 53 uint8_t fru; member in struct:cpu_smbios 281 cpusmb[ncpu_ids].fru = extp.smbpe_fru; 359 * processor is a FRU 361 uint8_t fru = 1; local 365 if (cpusmb[i].fru == fru) 373 " considering that Type 4 ID : %d is not a FRU", smb_id); 463 * Get Parent FRU's label
|
| /onnv/onnv-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/ |
| pi_subr.c | 318 * Determine if the node is a FRU by checking for the existance and non-zero 319 * value of the 'fru' property on the mde node. 325 uint64_t fru; local 330 fru = 0; 333 result = md_get_prop_val(mdp, mde_node, MD_STR_FRU, &fru); 335 /* The node is not a FRU. */ 338 if (fru != 0) { 372 * If the given MDE node is a FRU return the 'nac' property, if it exists, 386 /* This node is not a FRU. It has no label */ 391 * The node is a FRU. Get the NAC name to use as a label [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/modules/common/zfs-diagnosis/ |
| zfs_de.c | 75 #define CASE_FRU "fru" 306 nvlist_t *fmri, *fru; local 341 fru = NULL; 345 * If the vdev had an associated FRU, then get the FRU nvlist 347 * explicitly lookup the FRU because the fmri reported from the 354 * FRU indicates a different chassis ID than our 373 if (topo_fmri_fru(thp, fmri, &fru, &err) != 0) 374 fru = fmd_nvl_dup(hdl, fmri, FMD_SLEEP); 382 fru, detector) 413 char *fru, *type; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/modules/common/zfs-retire/ |
| zfs_retire.c | 102 char *fru; local 105 if (nvlist_lookup_string(nv, ZPOOL_CONFIG_FRU, &fru) == 0 && 106 libzfs_fru_compare(zhdl, fru, search_fru)) 199 * Given a FRU FMRI, find the matching pool and vdev. 202 find_by_fru(libzfs_handle_t *zhdl, const char *fru, nvlist_t **vdevp) 206 cb.cb_fru = fru; 358 nvlist_t *resource, *fault, *fru; local 454 * This is a disk fault. Lookup the FRU, convert it to 458 &fru) != 0 || 459 nvlist_lookup_string(fru, FM_FMRI_SCHEME [all...] |
| /onnv/onnv-gate/usr/src/lib/fm/topo/modules/common/pcibus/ |
| did_props.c | 72 * Note that the label_set translation *MUST COME BEFORE* the FRU 73 * translation. For the near term we're setting the FRU fmri to 75 * to have been set before we do the FRU translation. 438 * Set the FRU property to the hc fmri of this tnode 474 nvlist_t *fru = NULL; local 481 if (topo_node_fru(pnode, &fru, NULL, &err) != 0) 484 (void) topo_node_fru_set(tn, fru, 0, &err); 485 nvlist_free(fru); 527 * parent's FRU. Otherwise, continue with FRU set [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/modules/common/eversholt/ |
| eval.c | 413 nvlist_t *asru = NULL, *fru = NULL, *rsrc = NULL; local 418 platform_units_translate(0, croot, &asru, &fru, &rsrc, path); [all...] |
| /onnv/onnv-gate/usr/src/lib/fm/libfmd_snmp/common/ |
| problem.c | 991 nvlist_t *fru = NULL; local 994 (void) nvlist_lookup_nvlist(data, FM_FAULT_FRU, &fru); 995 if ((str = sunFm_nvl2str(fru)) == NULL)
|
| /onnv/onnv-gate/usr/src/cmd/picl/plugins/sun4u/littleneck/psvcpolicy/ |
| psvcpolicy.c | 76 gettext("No FRU Information for %s using default temperatures\n") 86 static int32_t find_segment(psvc_opaque_t hdlp, char *fru, seg_desc_t *segment, 206 find_segment(psvc_opaque_t hdlp, char *fru, seg_desc_t *segment, 222 status = psvc_get_attr(hdlp, fru, PSVC_FRU_INFO_ATTR, 244 status = psvc_get_attr(hdlp, fru, PSVC_FRU_INFO_ATTR, 252 status = psvc_get_attr(hdlp, fru, PSVC_FRU_INFO_ATTR, 256 "Failed psvc_get_attr for FRU info\n"); 272 char *fru, part_no[7]; local 291 &fru, PSVC_FRU, i); 294 seg_found = find_segment(hdlp, fru, &segment, "ES") [all...] |