Home
last modified time | relevance | path

Searched refs:unum (Results 1 – 25 of 61) sorted by relevance

123

/titanic_44/usr/src/lib/fm/topo/libtopo/common/
H A Dmem.c191 char *buf, *unum; in mem_nvl2str() local
201 if (nvlist_lookup_string(in, FM_FMRI_MEM_UNUM, &unum) != 0) { in mem_nvl2str()
223 if (strncmp(unum, "hc://", 5) == 0) { in mem_nvl2str()
224 unum += 5; in mem_nvl2str()
225 unum = strchr(unum, '/'); in mem_nvl2str()
226 ++unum; in mem_nvl2str()
228 escunum = unum; in mem_nvl2str()
231 preunum = topo_mod_strdup(mod, unum); in mem_nvl2str()
258 if (escunum != unum) in mem_nvl2str()
273 mem_fmri(topo_mod_t *mod, uint64_t pa, uint64_t offset, char *unum, int flags) in mem_fmri() argument
[all …]
/titanic_44/usr/src/uts/sun4u/os/
H A Dplat_ecc_unum.c78 plat_log_fruid_error(int synd_code, struct async_flt *ecc, char *unum, in plat_log_fruid_error() argument
153 char *unum_ptr = unum; in plat_log_fruid_error()
167 unum_ptr = unum; in plat_log_fruid_error()
238 char *unum_ptr = unum; in plat_log_fruid_error()
253 unum_ptr = unum; in plat_log_fruid_error()
273 unum_ptr = strstr(unum, "IO"); in plat_log_fruid_error()
371 unum && *unum) in plat_log_fruid_error()
372 cmn_err(CE_WARN, "Unexpected unum string format: %s\n", unum); in plat_log_fruid_error()
399 parse_unum_memory(char *unum, int *board, int *pos, int *bank, int *dimm, in parse_unum_memory() argument
404 if ((c = strstr(unum, "SB")) == NULL) in parse_unum_memory()
[all …]
H A Decc.c117 char unum[UNUM_NAMLEN]; in bus_async_log_err() local
132 unum, UNUM_NAMLEN, &len); in bus_async_log_err()
133 aflt->flt_func(aflt, unum); in bus_async_log_err()
141 ecc_cpu_call(struct async_flt *ecc, char *unum, int err_type) in ecc_cpu_call() argument
157 ecc->flt_status, unum, in ecc_cpu_call()
161 cpu_ce_count_unum(ecc, len, unum); in ecc_cpu_call()
H A Dplat_ecc_dimm.c60 plat_get_mem_sid(char *unum, char *buf, int buflen, int *lenp) in plat_get_mem_sid() argument
69 if (parse_unum_memory(unum, &board, &pos, &bank, &dimm, in plat_get_mem_sid()
92 plat_get_mem_addr(char *unum, char *sid, uint64_t offset, uint64_t *addrp) in plat_get_mem_addr() argument
101 if (parse_unum_memory(unum, &board, &pos, &bank, &dimm, in plat_get_mem_addr()
/titanic_44/usr/src/cmd/fm/modules/sun4/cpumem-diagnosis/
H A Dcmd_mem.c54 const char *scheme, *unum; in cmd_fmri_get_unum() local
60 FM_FMRI_MEM_UNUM, DATA_TYPE_STRING, &unum, in cmd_fmri_get_unum()
65 return (unum); in cmd_fmri_get_unum()
69 cmd_mem_serdnm_create(fmd_hdl_t *hdl, const char *serdbase, const char *unum) in cmd_mem_serdnm_create() argument
72 size_t sz = snprintf(NULL, 0, fmt, serdbase, unum) + 1; in cmd_mem_serdnm_create()
74 (void) snprintf(nm, sz, fmt, serdbase, unum); in cmd_mem_serdnm_create()
105 const char *serdbase, const char *unum) in cmd_mem_case_restore() argument
108 unum)); in cmd_mem_case_restore()
112 cmd_mem_retirestat_create(fmd_hdl_t *hdl, fmd_stat_t *st, const char *unum, in cmd_mem_retirestat_create() argument
129 prefix, unum); in cmd_mem_retirestat_create()
[all …]
H A Dcmd_bank.c142 bank_lookup_by_unum(const char *unum) in bank_lookup_by_unum() argument
148 if (strcmp(bank->bank_unum, unum) == 0) in bank_lookup_by_unum()
159 const char *unum; in cmd_bank_create() local
166 if ((unum = cmd_fmri_get_unum(asru)) == NULL) { in cmd_bank_create()
171 fmd_hdl_debug(hdl, "bank_create: creating new bank %s\n", unum); in cmd_bank_create()
179 unum); in cmd_bank_create()
180 cmd_fmri_init(hdl, &bank->bank_asru, asru, "bank_asru_%s", unum); in cmd_bank_create()
200 const char *unum; in cmd_bank_lookup() local
202 if ((unum = cmd_fmri_get_unum(asru)) == NULL) { in cmd_bank_lookup()
207 bank = bank_lookup_by_unum(unum); in cmd_bank_lookup()
H A Dcmd_dimm.c178 dimm_lookup_by_unum(const char *unum) in dimm_lookup_by_unum() argument
184 if (strcmp(dimm->dimm_unum, unum) == 0) in dimm_lookup_by_unum()
210 const char *unum; in cmd_dimm_create() local
220 if ((unum = cmd_fmri_get_unum(asru)) == NULL) { in cmd_dimm_create()
234 fmri = cmd_mem_fmri_create(unum, serids, nserids); in cmd_dimm_create()
241 fmd_hdl_debug(hdl, "dimm_create: creating new DIMM %s\n", unum); in cmd_dimm_create()
252 unum); in cmd_dimm_create()
253 cmd_fmri_init(hdl, &dimm->dimm_asru, fmri, "dimm_asru_%s", unum); in cmd_dimm_create()
275 const char *unum; in cmd_dimm_lookup() local
277 if ((unum = cmd_fmri_get_unum(asru)) == NULL) { in cmd_dimm_lookup()
[all …]
/titanic_44/usr/src/cmd/fm/schemes/mem/
H A Dmem_unum.c37 #define ISHCUNUM(unum) (strncmp(unum, "hc:/", 4) == 0) argument
325 unum_strip_one_jnum(const char *unum, uint_t *endp) in unum_strip_one_jnum() argument
330 if ((c = strrchr(unum, 'J')) == NULL) in unum_strip_one_jnum()
333 while (c > unum && isspace(c[-1])) in unum_strip_one_jnum()
337 if (i == 0 || (uintptr_t)(c - unum) + i != strlen(unum)) in unum_strip_one_jnum()
340 *endp = (uint_t)(c - unum); in unum_strip_one_jnum()
420 nvlist_t *unum; in mem_unum_rewrite() local
430 if (topo_fmri_str2nvl(thp, unumstr, &unum, &err) != 0) { in mem_unum_rewrite()
438 nvlist_free(unum); in mem_unum_rewrite()
442 err = nvlist_add_nvlist(*rnvl, FM_FMRI_MEM_UNUM "-fmri", unum); in mem_unum_rewrite()
[all …]
H A Dmem.c42 char *unum; in mem_fmri_get_unum() local
46 nvlist_lookup_string(nvl, FM_FMRI_MEM_UNUM, &unum) != 0) in mem_fmri_get_unum()
49 *unump = unum; in mem_fmri_get_unum()
149 char *unum, **serids; in fmd_fmri_expand() local
155 if ((mem_fmri_get_unum(nvl, &unum) < 0) || (*unum == '\0')) in fmd_fmri_expand()
174 if (mem_get_serids_by_unum(unum, &serids, &nserids) < 0) { in fmd_fmri_expand()
214 char *unum = NULL; in fmd_fmri_present() local
227 if (mem_fmri_get_unum(nvl, &unum) < 0) in fmd_fmri_present()
255 if (mem_get_serids_by_unum(unum, &serids, &nserids) < 0) { in fmd_fmri_present()
267 "unum %s", unum); in fmd_fmri_present()
[all …]
/titanic_44/usr/src/uts/i86pc/cpu/genuineintel/
H A Dgintel_main.c469 mc_unum_t unum; in gintel_ereport_add_logout() local
480 unum.unum_board = 0; in gintel_ereport_add_logout()
481 unum.unum_chip = cmi_hdl_chipid(hdl); in gintel_ereport_add_logout()
482 unum.unum_mc = 0; in gintel_ereport_add_logout()
483 unum.unum_chan = chan; in gintel_ereport_add_logout()
484 unum.unum_cs = -1; in gintel_ereport_add_logout()
485 unum.unum_rank = -1; in gintel_ereport_add_logout()
486 unum.unum_offset = -1ULL; in gintel_ereport_add_logout()
488 unum.unum_chan = in gintel_ereport_add_logout()
491 unum.unum_cs = in gintel_ereport_add_logout()
[all …]
/titanic_44/usr/src/uts/sun4/sys/
H A Dplatform_module.h84 extern int plat_get_mem_sid(char *unum, char *buf, int buflen, int *len);
86 extern int plat_get_mem_addr(char *unum, char *sid, uint64_t offset,
92 char *unum, uint64_t afsr_bit);
99 extern void plat_log_fruid_error2(int msg_type, char *unum,
/titanic_44/usr/src/uts/sun4u/boston/os/
H A Dboston.c269 plat_add_mem_unum_label(char *unum, int mcid, int bank, int dimm) in plat_add_mem_unum_label() argument
275 (void) strcpy(old_unum, unum); in plat_add_mem_unum_label()
276 printed = snprintf(unum, buflen, "MB/C%d/P0/B%d", mcid, bank); in plat_add_mem_unum_label()
278 unum += printed; in plat_add_mem_unum_label()
281 printed = snprintf(unum, buflen, "/D%d", dimm); in plat_add_mem_unum_label()
283 unum += printed; in plat_add_mem_unum_label()
286 (void) snprintf(unum, buflen, ": %s", old_unum); in plat_add_mem_unum_label()
/titanic_44/usr/src/uts/sun4u/seattle/os/
H A Dseattle.c272 plat_add_mem_unum_label(char *unum, int mcid, int bank, int dimm) in plat_add_mem_unum_label() argument
277 (void) strcpy(old_unum, unum); in plat_add_mem_unum_label()
278 printed = snprintf(unum, buflen, "MB/P%d/B%d", mcid, bank); in plat_add_mem_unum_label()
280 unum += printed; in plat_add_mem_unum_label()
283 printed = snprintf(unum, buflen, "/D%d", dimm); in plat_add_mem_unum_label()
285 unum += printed; in plat_add_mem_unum_label()
288 (void) snprintf(unum, buflen, ": %s", old_unum); in plat_add_mem_unum_label()
/titanic_44/usr/src/uts/sparc/io/
H A Ddevfm_machdep.c44 char *unum; in fm_get_paddr() local
71 } else if (nvlist_lookup_string(nvl, FM_FMRI_MEM_UNUM, &unum) != 0 || in fm_get_paddr()
76 err = cpu_get_mem_addr(unum, serids[0], offset, &pa); in fm_get_paddr()
/titanic_44/usr/src/cmd/fm/schemes/mem/sparc/
H A Dmem_disc.c425 mem_get_serids_from_kernel(const char *unum, char ***seridsp, size_t *nseridsp) in mem_get_serids_from_kernel() argument
438 if (mem_unum_burst(unum, &dimms, &ndimms) < 0) { in mem_get_serids_from_kernel()
525 mem_get_serids_from_cache(const char *unum, char ***seridsp, size_t *nseridsp) in mem_get_serids_from_cache() argument
533 if (mem_unum_burst(unum, &dimms, &ndimms) < 0) in mem_get_serids_from_cache()
575 mem_get_serids_by_unum(const char *unum, char ***seridsp, size_t *nseridsp) in mem_get_serids_by_unum() argument
583 return (mem_get_serids_from_kernel(unum, seridsp, nseridsp)); in mem_get_serids_by_unum()
585 return (mem_get_serids_from_cache(unum, seridsp, nseridsp)); in mem_get_serids_by_unum()
/titanic_44/usr/src/cmd/fm/schemes/mem/i386/
H A Dmem_disc.c49 mem_get_serids_by_unum(const char *unum, char ***seridsp, size_t *nseridsp) in mem_get_serids_by_unum() argument
57 mem_expand_opt(nvlist_t *nvl, char *unum, char **serids) in mem_expand_opt() argument
/titanic_44/usr/src/uts/sun4u/io/
H A Dsysioerr.c92 sysio_log_ce_err(struct async_flt *ecc, char *unum);
95 sysio_log_ue_err(struct async_flt *ecc, char *unum);
109 sbus_log_csr_error(struct async_flt *aflt, char *unum);
428 sysio_log_ue_err(struct async_flt *ecc, char *unum) in sysio_log_ue_err() argument
446 (uint32_t)(t_afar>>32), (uint32_t)t_afar, unum, id); in sysio_log_ue_err()
452 (uint32_t)(t_afar>>32), (uint32_t)t_afar, unum, id); in sysio_log_ue_err()
467 (uint32_t)(t_afar>>32), (uint32_t)t_afar, unum, id); in sysio_log_ue_err()
473 (uint32_t)(t_afar>>32), (uint32_t)t_afar, unum, id); in sysio_log_ue_err()
539 sysio_log_ce_err(struct async_flt *ecc, char *unum) in sysio_log_ce_err() argument
573 unum, id); in sysio_log_ce_err()
[all …]
H A Dmc-us3i.c150 static void mc_add_mem_unum_label(char *unum, int mcid, int bank, int dimm);
165 char unum[UNUM_NAMLEN]; member
1555 char unum[UNUM_NAMLEN]; in mc_get_mem_unum() local
1568 unum[0] = '\0'; in mc_get_mem_unum()
1634 (void) strncpy(unum, in mc_get_mem_unum()
1639 ("mc_get_mem_unum:unum %s\n", unum)); in mc_get_mem_unum()
1644 mc_add_mem_unum_label(unum, mcid, mcdgrpid, idx4dimm); in mc_get_mem_unum()
1646 char *p = unum; in mc_get_mem_unum()
1666 mc_add_mem_unum_label(unum, mcid, mcdgrpid, -1); in mc_get_mem_unum()
1669 if ((strlen(unum) >= UNUM_NAMLEN) || in mc_get_mem_unum()
[all …]
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/platform-mem/
H A Dmem_mdesc.c59 char *unum, *serial, *part; in mdesc_init_n1() local
72 if (md_get_prop_str(mdp, listp[idx], "nac", &unum) < 0) in mdesc_init_n1()
73 unum = ""; in mdesc_init_n1()
82 dm->dm_label = topo_mod_strdup(mod, unum); in mdesc_init_n1()
265 char *unum, *serial, *part, *dash; in mdesc_init_n2() local
307 unum = topo_mod_alloc(mod, ss); in mdesc_init_n2()
308 (void) snprintf(unum, ss, "%s/%s", nac, in mdesc_init_n2()
310 dm->dm_label = unum; in mdesc_init_n2()
312 unum = nac; in mdesc_init_n2()
313 dm->dm_label = topo_mod_strdup(mod, unum); in mdesc_init_n2()
/titanic_44/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/
H A Dcmd_opl.c197 char *unum; in opl_mem_fru_create() local
202 if (nvlist_lookup_string(nvl, FM_FMRI_MEM_UNUM, &unum) != 0) in opl_mem_fru_create()
205 fmd_hdl_debug(hdl, "opl_mem_fru_create for mem %s\n", unum); in opl_mem_fru_create()
207 if ((fmri = cmd_mem_fmri_create(unum, NULL, 0)) == NULL) in opl_mem_fru_create()
H A Dcmd_oplerr.c281 char *unum; in opl_scf_log() local
306 if (nvlist_lookup_string(rsrc, FM_FMRI_MEM_UNUM, &unum) != 0) { in opl_scf_log()
321 flt_page.fmri_addr = (uint64_t)(uint32_t)unum; in opl_scf_log()
322 flt_page.fmri_sz = strlen(unum) + 1; in opl_scf_log()
325 unum, strlen(unum) + 1); in opl_scf_log()
/titanic_44/usr/src/cmd/msgfmt/
H A Dgnu_msgs.c68 unsigned int num = 0, fnum = 0, unum = 0; in output_all_gnu_mo_files() local
80 unum += p->unum; in output_all_gnu_mo_files()
199 diag(gettext(DIAG_RESULTS), num, fnum, unum); in output_all_gnu_mo_files()
H A Dgnu_msgs_rev.c78 unsigned int num = 0, fnum = 0, unum = 0; in output_all_gnu_mo_files() local
90 unum += p->unum; in output_all_gnu_mo_files()
203 diag(gettext(DIAG_RESULTS), num, fnum, unum); in output_all_gnu_mo_files()
/titanic_44/usr/src/uts/sun4u/cpu/
H A Dmach_cpu_module.c74 cpu_ce_count_unum(struct async_flt *ecc, int len, char *unum) in cpu_ce_count_unum() argument
118 cpu_get_mem_sid(char *unum, char *buf, int buflen, int *lenp) in cpu_get_mem_sid() argument
128 cpu_get_mem_addr(char *unum, char *sid, uint64_t offset, in cpu_get_mem_addr() argument
/titanic_44/usr/src/uts/sun4u/sys/
H A Dcpu_module.h136 void cpu_ce_count_unum(struct async_flt *ecc, int len, char *unum);
152 extern int cpu_get_mem_addr(char *unum, char *sid, uint64_t offset,
169 extern int cpu_get_mem_sid(char *unum, char *buf, int buflen, int *lenp);

123