/osnet-11/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_protocol.c | 41 topo_node_asru(tnode_t *node, nvlist_t **asru, nvlist_t *priv, int *err) argument 50 topo_hdl_nvdup(node->tn_hdl, ap, asru) < 0) { 99 topo_node_asru_set(tnode_t *node, nvlist_t *asru, int flag, int *err) argument 102 * Inherit ASRU property from our parent if asru not specified 104 if (asru == NULL) { 116 asru, err) < 0) 120 TOPO_PROP_ASRU, TOPO_PROP_IMMUTABLE, asru, err) < 0)
|
H A D | topo_fmri.c | 60 * - asru: lookup associated ASRU property by FMRI 448 topo_fmri_asru(topo_hdl_t *thp, nvlist_t *nvl, nvlist_t **asru, int *err) argument 460 if (topo_hdl_nvdup(thp, ap, asru) < 0)
|
/osnet-11/usr/src/lib/fm/topo/modules/sun4u/chip/common/ |
H A D | chip_sun4u.c | 152 nvlist_t *asru; local 154 if (topo_mod_nvalloc(mod, &asru, NV_UNIQUE_NAME) != 0) 157 err = nvlist_add_uint8(asru, FM_VERSION, FM_CPU_SCHEME_VERSION); 158 err |= nvlist_add_string(asru, FM_FMRI_SCHEME, FM_FMRI_SCHEME_CPU); 159 err |= nvlist_add_uint32(asru, FM_FMRI_CPU_ID, cpuid); 160 err |= nvlist_add_uint8(asru, FM_FMRI_CPU_MASK, cpumask); 162 err |= nvlist_add_string(asru, FM_FMRI_CPU_SERIAL_ID, s); 164 nvlist_free(asru); 169 return (asru); 181 nvlist_t *fmri, *asru; local [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/common/ |
H A D | pi_cpu.c | 54 nvlist_t *asru = NULL; local 72 * asru, otherwise for "cpu" and "strand", set asru to CPU scheme FMRI. 75 result = topo_node_resource(*t_node, &asru, &err); 82 result = topo_node_asru_set(*t_node, asru, TOPO_ASRU_COMPUTE, 88 nvlist_free(asru); 116 asru = topo_mod_cpufmri(mod, FM_CPU_SCHEME_VERSION, inst, 119 if (asru == NULL) { 128 result = topo_node_asru_set(*t_node, asru, 0, &err); 131 nvlist_free(asru); [all...] |
H A D | pi_meth.c | 160 nvlist_t *asru; local 181 if (topo_node_asru(node, &asru, NULL, &err) != 0) { 186 rc = swdp->func(swdp->lhp, asru); 199 nvlist_free(asru); 224 (void) topo_mod_nvl2str(mod, asru, &fmristr); 232 nvlist_free(asru); 467 nvlist_t *pargs, *asru; local 485 if ((err = topo_mod_nvdup(mod, pargs, &asru)) != 0) 489 nvlist_free(asru); 495 err |= nvlist_add_nvlist(*out, TOPO_PROP_VAL_VAL, asru); 511 nvlist_t *asru, *pargs, *args, *hcsp; local 605 nvlist_t *asru; local 630 nvlist_t *asru; local 655 nvlist_t *asru; local [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/i86pc/chip/common/ |
H A D | chip_subr.c | 252 nvlist_t *asru; local 254 if (topo_mod_nvalloc(mod, &asru, NV_UNIQUE_NAME) != 0) 257 err = nvlist_add_uint8(asru, FM_VERSION, FM_CPU_SCHEME_VERSION); 258 err |= nvlist_add_string(asru, FM_FMRI_SCHEME, FM_FMRI_SCHEME_CPU); 259 err |= nvlist_add_uint32(asru, FM_FMRI_CPU_ID, cpuid); 260 err |= nvlist_add_uint8(asru, FM_FMRI_CPU_MASK, cpumask); 262 err |= nvlist_add_string(asru, FM_FMRI_CPU_SERIAL_ID, s); 264 nvlist_free(asru); 269 return (asru); 277 nvlist_t *asru, *arg local [all...] |
/osnet-11/usr/src/lib/fm/libasr/common/ |
H A D | asr_fault.c | 202 nvlist_t *asru, *resource; local 220 if (nvlist_lookup_nvlist(fault, FM_FAULT_ASRU, &asru) != 0) 221 asru = NULL; 232 if (asru == NULL && resource == NULL) { 234 "no fru, asru, or resource"); 238 fmrinvl = asru == NULL ? resource : asru; 382 if (asru != NULL) { 383 char *asrustr = asr_topo_fmri2str(thp, asru); 386 bp, pad, "asru", asrust [all...] |
H A D | asr_audit.c | 434 char *asru = asr_get_asru(edata, node); local 447 if (asru != NULL) 448 err |= asr_buf_append_xml_ai(ai, 3, "asru", asru); 494 if (asru != NULL) 495 free(asru);
|
/osnet-11/usr/src/lib/fm/topo/modules/sun4v/chip/common/ |
H A D | chip_sun4v.c | 268 nvlist_t *asru; local 318 if ((asru = cpu_fmri_create(mod, pid, sbuf, 0)) != NULL) { 319 (void) topo_node_asru_set(cnode, asru, 0, &err); 320 nvlist_free(asru);
|
/osnet-11/usr/src/lib/fm/topo/modules/common/disk/common/ |
H A D | disk_common.c | 101 * group: protocol properties: resource, asru, label, fru 118 nvlist_t *asru = NULL; local 166 /* form and set the asru */ 167 if ((asru = topo_mod_devfmri(mod, FM_DEV_SCHEME_VERSION, 171 "asru error %s\n", topo_strerror(err)); 174 if (topo_node_asru_set(dtn, asru, 0, &err) != 0) { 271 out: if (asru) 272 nvlist_free(asru);
|
/osnet-11/usr/src/lib/fm/libfmd_snmp/common/ |
H A D | problem.c | 1084 nvlist_t *asru = NULL; local 1087 (void) nvlist_lookup_nvlist(data, FM_FAULT_ASRU, &asru); 1088 if ((str = sunFm_nvl2str(asru)) == NULL)
|