Home
last modified time | relevance | path

Searched refs:hcl (Results 1 – 14 of 14) sorted by relevance

/titanic_41/usr/src/cmd/fm/modules/sun4v/generic-mem/
H A Dgmem_memerr.c85 nvlist_t **hcl, **topo_hcl; in find_fault_fru() local
107 (void) nvlist_lookup_nvlist_array(nvl, FM_FMRI_HC_LIST, &hcl, &n2); in find_fault_fru()
118 (void) nvlist_lookup_string(hcl[i], FM_FMRI_HC_NAME, &name2); in find_fault_fru()
119 (void) nvlist_lookup_string(hcl[i], FM_FMRI_HC_ID, &id2); in find_fault_fru()
164 nvlist_t **hcl1, **hcl; in gmem_gen_datapath_fault() local
181 hcl = fmd_hdl_zalloc(hdl, sizeof (nvlist_t *) * n, FMD_SLEEP); in gmem_gen_datapath_fault()
182 if (hcl == NULL) in gmem_gen_datapath_fault()
186 (void) nvlist_alloc(&hcl[i], in gmem_gen_datapath_fault()
193 (void) nvlist_add_string(hcl[j], FM_FMRI_HC_NAME, name); in gmem_gen_datapath_fault()
194 (void) nvlist_add_string(hcl[j], FM_FMRI_HC_ID, id); in gmem_gen_datapath_fault()
[all …]
H A Dgmem_dimm.c495 nvlist_t **hcl; in gmem_find_dimm_chip() local
501 if (nvlist_lookup_nvlist_array(nvl, FM_FMRI_HC_LIST, &hcl, &n) < 0) in gmem_find_dimm_chip()
504 (void) nvlist_lookup_string(hcl[i], FM_FMRI_HC_NAME, &name); in gmem_find_dimm_chip()
505 (void) nvlist_lookup_string(hcl[i], FM_FMRI_HC_ID, &id); in gmem_find_dimm_chip()
/titanic_41/usr/src/cmd/fm/modules/common/cpumem-retire/
H A Dcma_cpu.c57 nvlist_t **hcl; in old_topo_fault() local
69 if (nvlist_lookup_nvlist_array(rsrc, FM_FMRI_HC_LIST, &hcl, &nhcl) in old_topo_fault()
71 nvlist_lookup_string(hcl[0], FM_FMRI_HC_NAME, &name) == 0 && in old_topo_fault()
73 nvlist_lookup_string(hcl[1], FM_FMRI_HC_NAME, &name) == 0 && in old_topo_fault()
75 nvlist_lookup_string(hcl[2], FM_FMRI_HC_NAME, &name) == 0 && in old_topo_fault()
/titanic_41/usr/src/uts/intel/io/intel_nb5000/
H A Ddimm_addr.c47 nvlist_t **hcl, *hcsp; in fmri2unum() local
54 nvlist_lookup_nvlist_array(nvl, FM_FMRI_HC_LIST, &hcl, &npr) != 0) in fmri2unum()
66 if (nvlist_lookup_string(hcl[i], FM_FMRI_HC_NAME, &hcnm) != 0 || in fmri2unum()
67 nvlist_lookup_string(hcl[i], FM_FMRI_HC_ID, &hcid) != 0 || in fmri2unum()
/titanic_41/usr/src/uts/common/os/
H A Dmodsysfile.c2756 struct hwc_class *hcl; in add_class() local
2767 hcl = kmem_zalloc(sizeof (struct hwc_class), KM_SLEEP); in add_class()
2768 hcl->class_exporter = kmem_alloc(strlen(exporter) + 1, KM_SLEEP); in add_class()
2769 hcl->class_name = kmem_alloc(strlen(class) + 1, KM_SLEEP); in add_class()
2770 (void) strcpy(hcl->class_exporter, exporter); in add_class()
2771 (void) strcpy(hcl->class_name, class); in add_class()
2773 hcl->class_next = hcl_head; in add_class()
2774 hcl_head = hcl; in add_class()
2790 struct hwc_class *hcl; in get_class() local
2793 for (hcl = hcl_head; hcl != NULL; hcl = hcl->class_next) { in get_class()
[all …]
H A Dfm.c1292 nvlist_t **hcl; in fm_fmri_hc_create() local
1304 if (nvlist_lookup_nvlist_array(bboard, FM_FMRI_HC_LIST, &hcl, &n) in fm_fmri_hc_create()
1311 if (nvlist_lookup_string(hcl[i], FM_FMRI_HC_NAME, in fm_fmri_hc_create()
1317 if (nvlist_lookup_string(hcl[i], FM_FMRI_HC_ID, &hcid) != 0) { in fm_fmri_hc_create()
/titanic_41/usr/src/cmd/fm/modules/common/fabric-xlate/
H A Dfx_subr.c291 nvlist_t **hcl; in fab_hc_path() local
294 if (nvlist_lookup_nvlist_array(detector, FM_FMRI_HC_LIST, &hcl, in fab_hc_path()
299 if (nvlist_lookup_string(hcl[i], FM_FMRI_HC_NAME, &name) != 0) in fab_hc_path()
301 if (nvlist_lookup_string(hcl[i], FM_FMRI_HC_ID, &id) != 0) in fab_hc_path()
310 (void) nvlist_lookup_string(hcl[i], FM_FMRI_HC_NAME, &name); in fab_hc_path()
311 (void) nvlist_lookup_string(hcl[i], FM_FMRI_HC_ID, &id); in fab_hc_path()
324 char *hcl; in fab_hc2dev_nvl() local
327 if (! fab_hc_path(hdl, detector, &hcl, &len)) in fab_hc2dev_nvl()
330 (void) fab_hc2dev(hdl, hcl, dev_path); in fab_hc2dev_nvl()
332 fmd_hdl_free(hdl, hcl, len); in fab_hc2dev_nvl()
/titanic_41/usr/src/cmd/fm/modules/sun4v/etm/
H A Detm_filter.c188 nvlist_t **hcl; /* hc name-value pair list */ in etm_filter_find_ldom_id() local
219 if (nvlist_lookup_nvlist_array(det, FM_FMRI_HC_LIST, &hcl, &sz) != 0) { in etm_filter_find_ldom_id()
224 if (nvlist_lookup_string(hcl[i], FM_FMRI_HC_NAME, &str) == 0 && in etm_filter_find_ldom_id()
225 nvlist_lookup_string(hcl[i], FM_FMRI_HC_ID, &s) == 0 && in etm_filter_find_ldom_id()
/titanic_41/usr/src/cmd/fm/modules/sun4v/cpumem-diagnosis/
H A Dcmd_hc_sun4v.c287 nvlist_t *rsrc, **hcl; in find_mb() local
295 if (nvlist_lookup_nvlist_array(rsrc, FM_FMRI_HC_LIST, &hcl, &n) < 0) { in find_mb()
300 if (nvlist_lookup_string(hcl[0], FM_FMRI_HC_NAME, &name) != 0) { in find_mb()
434 nvlist_t **hcl; in find_cpu_rsc_by_sn() local
450 if (nvlist_lookup_nvlist_array(rsc, FM_FMRI_HC_LIST, &hcl, &n) != 0) { in find_cpu_rsc_by_sn()
455 if ((nvlist_lookup_string(hcl[n - 1], FM_FMRI_HC_NAME, &name) != 0) || in find_cpu_rsc_by_sn()
456 (nvlist_lookup_string(hcl[n - 1], FM_FMRI_HC_ID, &id) != 0)) { in find_cpu_rsc_by_sn()
/titanic_41/usr/src/lib/fm/topo/libtopo/common/
H A Dhc.c1073 hc_create_seterror(topo_mod_t *mod, nvlist_t **hcl, int n, nvlist_t *fmri, in hc_create_seterror() argument
1078 if (hcl != NULL) { in hc_create_seterror()
1080 nvlist_free(hcl[i]); in hc_create_seterror()
1082 topo_mod_free(mod, hcl, sizeof (nvlist_t *) * (n + 1)); in hc_create_seterror()
1128 nvlist_t **hcl = NULL; in hc_fmri_create() local
1133 hcl, pelems, fmri, EMOD_VER_OLD)); in hc_fmri_create()
1136 hcl, pelems, fmri, EMOD_VER_NEW)); in hc_fmri_create()
1143 hcl, pelems, fmri, EMOD_NONCANON)); in hc_fmri_create()
1151 hcl, pelems, fmri, EMOD_FMRI_MALFORM)); in hc_fmri_create()
1154 hcl = topo_mod_zalloc(mod, sizeof (nvlist_t *) * (pelems + 1)); in hc_fmri_create()
[all …]
/titanic_41/usr/src/uts/intel/io/mc-amd/
H A Dmcamd_subr.c495 nvlist_t *hcsp, **hcl; in fmri2unum() local
502 nvlist_lookup_nvlist_array(nvl, FM_FMRI_HC_LIST, &hcl, &npr) != 0) in fmri2unum()
515 if (nvlist_lookup_string(hcl[i], FM_FMRI_HC_NAME, &hcnm) != 0 || in fmri2unum()
516 nvlist_lookup_string(hcl[i], FM_FMRI_HC_ID, &hcid) != 0 || in fmri2unum()
/titanic_41/usr/src/uts/intel/io/intel_nhm/
H A Dmem_addr.c701 nvlist_t **hcl, *hcsp; in nhm_unumtopa() local
728 &hcl, &npr) != 0) in nhm_unumtopa()
735 if (nvlist_lookup_string(hcl[i], FM_FMRI_HC_NAME, in nhm_unumtopa()
737 nvlist_lookup_string(hcl[i], FM_FMRI_HC_ID, in nhm_unumtopa()
/titanic_41/usr/src/cmd/fm/fmtopo/common/
H A Dfmtopo.c185 nvlist_t *fmri, **hcl; in print_everstyle() local
197 if (nvlist_lookup_nvlist_array(fmri, FM_FMRI_HC_LIST, &hcl, &n) != 0) { in print_everstyle()
211 if (nvlist_lookup_string(hcl[i], FM_FMRI_HC_NAME, &name) != 0 || in print_everstyle()
212 nvlist_lookup_string(hcl[i], FM_FMRI_HC_ID, &inst) != 0) { in print_everstyle()
/titanic_41/usr/src/cmd/fm/modules/common/eversholt/
H A Dplatform.c390 nvlist_t *fmri, **hcl; in hc_path() local
398 if (nvlist_lookup_nvlist_array(fmri, FM_FMRI_HC_LIST, &hcl, &nhc) in hc_path()
406 err = nvlist_lookup_string(hcl[i], FM_FMRI_HC_NAME, &name); in hc_path()
407 err |= nvlist_lookup_string(hcl[i], FM_FMRI_HC_ID, &instance); in hc_path()