Home
last modified time | relevance | path

Searched refs:csn (Results 1 – 13 of 13) sorted by relevance

/titanic_50/usr/src/cmd/tr/
H A Dcset.c68 struct csnode *csn, *ncsn; in cset_add() local
77 csn = malloc(sizeof (*cs->cs_root)); in cset_add()
78 if (csn == NULL) in cset_add()
80 csn->csn_left = csn->csn_right = NULL; in cset_add()
81 csn->csn_min = csn->csn_max = ch; in cset_add()
82 cs->cs_root = csn; in cset_add()
90 csn = cs->cs_root = cset_splay(cs->cs_root, ch); in cset_add()
95 if (cset_rangecmp(csn, ch) == 0) in cset_add()
105 if (cset_rangecmp(csn, ch) < 0) { in cset_add()
106 ncsn->csn_left = csn->csn_left; in cset_add()
[all …]
/titanic_50/usr/src/lib/fm/topo/modules/sun4v/motherboard/
H A Dmotherboard.c130 char *sn, *pn, *dn, *csn, *psn; in mb_get_pri_info() local
193 sn = pn = dn = psn = csn = NULL; in mb_get_pri_info()
218 "serial_number", &csn) < 0) in mb_get_pri_info()
219 csn = NULL; in mb_get_pri_info()
232 *csnp = topo_mod_strdup(mod, csn); in mb_get_pri_info()
249 char *prod, *psn, *csn, *server; in mb_prop_set() local
261 if (nvlist_lookup_string(auth, FM_FMRI_AUTH_CHASSIS, &csn) == 0) in mb_prop_set()
263 FM_FMRI_AUTH_CHASSIS, TOPO_PROP_IMMUTABLE, csn, &err); in mb_prop_set()
287 char *psn = NULL, *csn = NULL, *pstr = NULL; in mb_tnode_create() local
294 (void) mb_get_pri_info(mod, &serial, &part, &csn, &psn); in mb_tnode_create()
[all …]
/titanic_50/usr/src/lib/scsi/plugins/ses/libses/common/
H A Dlibses.c41 char csn[17]; in libses_parse_node() local
69 (void) snprintf(csn, sizeof (csn), "%llx", id); in libses_parse_node()
70 SES_NV_ADD(string, nverr, props, LIBSES_EN_PROP_CSN, csn); in libses_parse_node()
/titanic_50/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_mod.c787 char csn[MAXNAMELEN]; in topo_mod_csn() local
796 (void) strlcpy(csn, bufp, MAXNAMELEN); in topo_mod_csn()
803 (void) strlcpy(csn, bufp, MAXNAMELEN); in topo_mod_csn()
811 return (topo_cleanup_auth_str(mod->tm_hdl, csn)); in topo_mod_csn()
819 char *csn = NULL; in topo_mod_auth() local
834 FM_FMRI_AUTH_CHASSIS, &csn, &err); in topo_mod_auth()
843 if (csn == NULL) in topo_mod_auth()
844 csn = topo_mod_csn(mod); in topo_mod_auth()
854 if (!prod && !server && !csn && !psn) { in topo_mod_auth()
872 if (csn != NULL) { in topo_mod_auth()
[all …]
H A Dhc.c256 char *prod, *psn, *csn, *server; in hc_prop_set() local
287 if (nvlist_lookup_string(auth, FM_FMRI_AUTH_CHASSIS, &csn) == 0) in hc_prop_set()
289 FM_FMRI_AUTH_CHASSIS, TOPO_PROP_IMMUTABLE, csn, in hc_prop_set()
/titanic_50/usr/src/lib/fm/topo/modules/i86pc/x86pi/
H A Dx86pi_subr.c182 char *csn = NULL; in x86pi_set_auth() local
296 FM_FMRI_AUTH_CHASSIS, &csn); in x86pi_set_auth()
297 if (result != 0 || csn == NULL) { in x86pi_set_auth()
310 csn = val = topo_mod_strdup(mod, hcfmri->serial_number); in x86pi_set_auth()
317 if (csn != NULL) { in x86pi_set_auth()
321 TOPO_PROP_MUTABLE, csn, &err); in x86pi_set_auth()
325 TOPO_PROP_IMMUTABLE, csn, &err); in x86pi_set_auth()
/titanic_50/usr/src/lib/fm/topo/modules/sun4v/chip/
H A Dchip_sun4v.c129 char *prod = NULL, *psn = NULL, *csn = NULL, *server = NULL; in chip_tnode_create() local
152 FM_FMRI_AUTH_CHASSIS, &csn, &err) == 0) { in chip_tnode_create()
154 csn); in chip_tnode_create()
155 topo_mod_strfree(mod, csn); in chip_tnode_create()
/titanic_50/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/
H A Dpi_subr.c985 char *csn = NULL; in pi_set_auth() local
1116 csn = pi_get_chassisid(mod, mdp, mde_node); in pi_set_auth()
1117 if (csn == NULL) { in pi_set_auth()
1128 csn = topo_mod_strdup(mod, val); in pi_set_auth()
1135 if (csn != NULL) { in pi_set_auth()
1137 FM_FMRI_AUTH_CHASSIS, TOPO_PROP_IMMUTABLE, csn, in pi_set_auth()
1147 topo_mod_strfree(mod, csn); in pi_set_auth()
/titanic_50/usr/src/lib/fm/topo/modules/common/ses/
H A Dses.c3181 char *csn; in ses_enum_gather() local
3202 &csn) != 0) in ses_enum_gather()
3209 "CSN (%s), subchassis (%llu)", sdp->sed_name, csn, in ses_enum_gather()
3241 if (strcmp(cp->sec_csn, csn) == 0) in ses_enum_gather()
3253 cp->sec_csn = csn; in ses_enum_gather()
3259 "chassis with CSN %s", sdp->sed_name, csn); in ses_enum_gather()
3270 sdp->sed_name, csn, subchassis); in ses_enum_gather()
3276 scp->sec_csn = csn; in ses_enum_gather()
3299 sdp->sed_name, csn); in ses_enum_gather()
3309 sdp->sed_name, csn); in ses_enum_gather()
[all …]
/titanic_50/usr/src/lib/fm/libfmd_msg/common/
H A Dfmd_msg.c1280 char *platform, *server, *csn; in fmd_msg_gettext_locked() local
1331 if (nvlist_lookup_string(auth, FM_FMRI_AUTH_PRODUCT_SN, &csn) != 0 && in fmd_msg_gettext_locked()
1332 nvlist_lookup_string(auth, FM_FMRI_AUTH_CHASSIS, &csn) != 0) in fmd_msg_gettext_locked()
1333 csn = (char *)FMD_MSG_MISSING; in fmd_msg_gettext_locked()
1341 date, platform, csn, server, src_name, src_vers, uuid, in fmd_msg_gettext_locked()
1352 date, platform, csn, server, src_name, src_vers, uuid, in fmd_msg_gettext_locked()
/titanic_50/usr/src/cmd/fwflash/plugins/transport/common/
H A Dses.c663 char *vendor, *product, *revision, *csn; in sendimg() local
684 (nvlist_lookup_string(props, LIBSES_EN_PROP_CSN, &csn) != 0)) { in sendimg()
691 (void) printf("%30s: %s\n", "serial", csn); in sendimg()
/titanic_50/usr/src/cmd/fm/fmd/common/
H A Dfmd.c372 const char *name, *psn, *csn; in fmd_create() local
397 if ((csn = smbios_csn(shp)) != NULL) in fmd_create()
398 fmd_cleanup_auth_str(_fmd_csn, csn); in fmd_create()
/titanic_50/usr/src/common/smbios/
H A Dsmb_info.c1233 const char *psn, *csn; in smbios_psn() local
1235 return (smb_get_sn(shp, &psn, &csn) == SMB_ERR ? NULL : psn); in smbios_psn()
1241 const char *psn, *csn; in smbios_csn() local
1243 return (smb_get_sn(shp, &psn, &csn) == SMB_ERR ? NULL : csn); in smbios_csn()