/illumos-gate/usr/src/cmd/fm/modules/common/cpumem-retire/ |
H A D | cma_cpu.c | 59 nvlist_t **hcl; in old_topo_fault() local 71 if (nvlist_lookup_nvlist_array(rsrc, FM_FMRI_HC_LIST, &hcl, &nhcl) in old_topo_fault() 73 nvlist_lookup_string(hcl[0], FM_FMRI_HC_NAME, &name) == 0 && in old_topo_fault() 75 nvlist_lookup_string(hcl[1], FM_FMRI_HC_NAME, &name) == 0 && in old_topo_fault() 77 nvlist_lookup_string(hcl[2], FM_FMRI_HC_NAME, &name) == 0 && in old_topo_fault()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | modsysfile.c | 2799 struct hwc_class *hcl; in add_class() local 2810 hcl = kmem_zalloc(sizeof (struct hwc_class), KM_SLEEP); in add_class() 2811 hcl->class_exporter = kmem_alloc(strlen(exporter) + 1, KM_SLEEP); in add_class() 2812 hcl->class_name = kmem_alloc(strlen(class) + 1, KM_SLEEP); in add_class() 2813 (void) strcpy(hcl->class_exporter, exporter); in add_class() 2814 (void) strcpy(hcl->class_name, class); in add_class() 2816 hcl->class_next = hcl_head; in add_class() 2817 hcl_head = hcl; in add_class() 2833 struct hwc_class *hcl; in get_class() local 2836 for (hcl = hcl_head; hcl != NULL; hcl = hcl->class_next) { in get_class() [all …]
|
H A D | fm.c | 1293 nvlist_t **hcl; in fm_fmri_hc_create() local 1305 if (nvlist_lookup_nvlist_array(bboard, FM_FMRI_HC_LIST, &hcl, &n) in fm_fmri_hc_create() 1312 if (nvlist_lookup_string(hcl[i], FM_FMRI_HC_NAME, in fm_fmri_hc_create() 1318 if (nvlist_lookup_string(hcl[i], FM_FMRI_HC_ID, &hcid) != 0) { in fm_fmri_hc_create()
|
/illumos-gate/usr/src/uts/intel/io/intel_nb5000/ |
H A D | dimm_addr.c | 47 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()
|
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/ |
H A D | fx_subr.c | 295 nvlist_t **hcl; in fab_hc_path() local 298 if (nvlist_lookup_nvlist_array(detector, FM_FMRI_HC_LIST, &hcl, in fab_hc_path() 303 if (nvlist_lookup_string(hcl[i], FM_FMRI_HC_NAME, &name) != 0) in fab_hc_path() 305 if (nvlist_lookup_string(hcl[i], FM_FMRI_HC_ID, &id) != 0) in fab_hc_path() 314 (void) nvlist_lookup_string(hcl[i], FM_FMRI_HC_NAME, &name); in fab_hc_path() 315 (void) nvlist_lookup_string(hcl[i], FM_FMRI_HC_ID, &id); in fab_hc_path() 328 char *hcl; in fab_hc2dev_nvl() local 331 if (! fab_hc_path(hdl, detector, &hcl, &len)) in fab_hc2dev_nvl() 334 (void) fab_hc2dev(hdl, hcl, dev_path); in fab_hc2dev_nvl() 336 fmd_hdl_free(hdl, hcl, len); in fab_hc2dev_nvl()
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | hc.c | 1021 hc_create_seterror(topo_mod_t *mod, nvlist_t **hcl, int n, nvlist_t *fmri, in hc_create_seterror() argument 1026 if (hcl != NULL) { in hc_create_seterror() 1028 nvlist_free(hcl[i]); in hc_create_seterror() 1030 topo_mod_free(mod, hcl, sizeof (nvlist_t *) * (n + 1)); in hc_create_seterror() 1076 nvlist_t **hcl = NULL; in hc_fmri_create() local 1081 hcl, pelems, fmri, EMOD_VER_OLD)); in hc_fmri_create() 1084 hcl, pelems, fmri, EMOD_VER_NEW)); in hc_fmri_create() 1091 hcl, pelems, fmri, EMOD_NONCANON)); in hc_fmri_create() 1099 hcl, pelems, fmri, EMOD_FMRI_MALFORM)); in hc_fmri_create() 1102 hcl = topo_mod_zalloc(mod, sizeof (nvlist_t *) * (pelems + 1)); in hc_fmri_create() [all …]
|
/illumos-gate/usr/src/uts/intel/io/mc-amd/ |
H A D | mcamd_subr.c | 495 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()
|
/illumos-gate/usr/src/uts/intel/io/intel_nhm/ |
H A D | mem_addr.c | 701 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()
|
/illumos-gate/usr/src/cmd/fm/fmtopo/common/ |
H A D | fmtopo.c | 195 nvlist_t *fmri, **hcl; in print_everstyle() local 207 if (nvlist_lookup_nvlist_array(fmri, FM_FMRI_HC_LIST, &hcl, &n) != 0) { in print_everstyle() 221 if (nvlist_lookup_string(hcl[i], FM_FMRI_HC_NAME, &name) != 0 || in print_everstyle() 222 nvlist_lookup_string(hcl[i], FM_FMRI_HC_ID, &inst) != 0) { in print_everstyle()
|
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | platform.c | 390 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()
|