Searched refs:asru (Results 1 - 11 of 11) sorted by relevance

/osnet-11/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_protocol.c41 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 Dtopo_fmri.c60 * - 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 Dchip_sun4u.c152 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 Dpi_cpu.c54 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 Dpi_meth.c160 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 Dchip_subr.c252 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 Dasr_fault.c202 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 Dasr_audit.c434 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 Dchip_sun4v.c268 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 Ddisk_common.c101 * 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 Dproblem.c1084 nvlist_t *asru = NULL; local
1087 (void) nvlist_lookup_nvlist(data, FM_FAULT_ASRU, &asru);
1088 if ((str = sunFm_nvl2str(asru)) == NULL)

Completed in 79 milliseconds