/illumos-gate/usr/src/cmd/tr/ |
H A D | cset.c | 68 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 …]
|
/illumos-gate/usr/src/boot/common/ |
H A D | isapnp.c | 232 int csn; in isapnp_isolation_protocol() local 242 for (csn = 1; ; csn++) { in isapnp_isolation_protocol() 250 isapnp_write(SET_CSN, csn); in isapnp_isolation_protocol() 268 while (--csn > 0) { in isapnp_isolation_protocol() 270 isapnp_write(WAKE, csn); in isapnp_isolation_protocol() 273 csn--; in isapnp_isolation_protocol()
|
H A D | isapnp.h | 248 u_char csn; /* assigned Card Select Number */ member 267 char * (*pd_probe ) (u_long csn, u_long vendor_id); 268 void (*pd_attach ) (u_long csn, u_long vend_id, char * name,
|
/illumos-gate/usr/src/lib/scsi/plugins/ses/libses/common/ |
H A D | libses.c | 39 char csn[17]; in libses_parse_node() local 67 (void) snprintf(csn, sizeof (csn), "%llx", id); in libses_parse_node() 68 SES_NV_ADD(string, nverr, props, LIBSES_EN_PROP_CSN, csn); in libses_parse_node()
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/ |
H A D | x86pi_subr.c | 182 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()
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_mod.c | 803 char csn[MAXNAMELEN]; in topo_mod_csn() local 812 (void) strlcpy(csn, bufp, MAXNAMELEN); in topo_mod_csn() 819 (void) strlcpy(csn, bufp, MAXNAMELEN); in topo_mod_csn() 827 return (topo_cleanup_auth_str(mod->tm_hdl, csn)); in topo_mod_csn() 835 char *csn = NULL; in topo_mod_auth() local 850 FM_FMRI_AUTH_CHASSIS, &csn, &err); in topo_mod_auth() 859 if (csn == NULL) in topo_mod_auth() 860 csn = topo_mod_csn(mod); in topo_mod_auth() 870 if (!prod && !server && !csn && !psn) { in topo_mod_auth() 888 if (csn != NULL) { in topo_mod_auth() [all …]
|
H A D | topo_subr.c | 587 char *prod, *psn, *csn, *server; in topo_pgroup_hcset() local 618 if (nvlist_lookup_string(auth, FM_FMRI_AUTH_CHASSIS, &csn) == 0) in topo_pgroup_hcset() 620 FM_FMRI_AUTH_CHASSIS, TOPO_PROP_IMMUTABLE, csn, in topo_pgroup_hcset()
|
/illumos-gate/usr/src/lib/fm/libfmd_msg/common/ |
H A D | fmd_msg.c | 1280 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()
|
/illumos-gate/usr/src/cmd/fwflash/plugins/transport/common/ |
H A D | ses.c | 663 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()
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/ |
H A D | ses.c | 3297 char *csn; in ses_enum_gather() local 3318 &csn) != 0) in ses_enum_gather() 3325 "CSN (%s), subchassis (%" PRIu64 ")", sdp->sed_name, csn, in ses_enum_gather() 3357 if (strcmp(cp->sec_csn, csn) == 0) in ses_enum_gather() 3369 cp->sec_csn = csn; in ses_enum_gather() 3375 "chassis with CSN %s", sdp->sed_name, csn); in ses_enum_gather() 3386 sdp->sed_name, csn, subchassis); in ses_enum_gather() 3392 scp->sec_csn = csn; in ses_enum_gather() 3415 sdp->sed_name, csn); in ses_enum_gather() 3425 sdp->sed_name, csn); in ses_enum_gather() [all …]
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd.c | 372 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()
|
/illumos-gate/usr/src/common/smbios/ |
H A D | smb_info.c | 1478 const char *psn, *csn; in smbios_psn() local 1480 return (smb_get_sn(shp, &psn, &csn) == SMB_ERR ? NULL : psn); in smbios_psn() 1486 const char *psn, *csn; in smbios_csn() local 1488 return (smb_get_sn(shp, &psn, &csn) == SMB_ERR ? NULL : csn); in smbios_csn()
|