Home
last modified time | relevance | path

Searched refs:sn (Results 1 – 25 of 64) sorted by relevance

123

/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dsetlist.c125 int sn = -1; in setlist() local
148 sn = n; in setlist()
157 if (pt && sn != -1) in setlist()
172 if (sn > 0) { in setlist()
290 int sn = -1; in cl_setl() local
296 if (sn == -1) in cl_setl()
297 sn = cl_NClasses; in cl_setl()
298 if (sn > 0) { in cl_setl()
299 pt = cl_lst[sn]; in cl_setl()
307 for (sn = i; sn < (cl_NClasses - 1); sn++) in cl_setl()
[all …]
/illumos-gate/usr/src/lib/scsi/plugins/ses/SUN-Storage-J4400/common/
H A Driverwalk.c81 char *pn, *sn; in sun_riverwalk_parse_node() local
120 sn = pn = NULL; in sun_riverwalk_parse_node()
129 sn = strp->rws_ps0_sn; in sun_riverwalk_parse_node()
137 sn = strp->rws_ps1_sn; in sun_riverwalk_parse_node()
149 sn = strp->rws_sim0_sn; in sun_riverwalk_parse_node()
157 sn = strp->rws_sim1_sn; in sun_riverwalk_parse_node()
175 sn = strp->rws_ps0_sn; in sun_riverwalk_parse_node()
183 sn = strp->rws_ps1_sn; in sun_riverwalk_parse_node()
200 if (sn[0] != '\0') { in sun_riverwalk_parse_node()
201 (void) bcopy(sn, buf, sizeof (strp->rws_ps0_sn)); in sun_riverwalk_parse_node()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsfputr.c37 ssize_t p, n, w, sn; local
49 f->val = sn = -1; ss = (char*)s;
53 { sn = sn < 0 ? strlen(s) : (sn - (s-ss));
55 f->val = sn + (rc >= 0 ? 1 : 0); /* space requirement */
66 { n = sn < 0 ? strlen(s) : sn - (s-ss);
/illumos-gate/usr/src/cmd/fm/modules/sun4v/cpumem-diagnosis/
H A Dcmd_hc_sun4v.c341 char **sn; in find_dimm_sn_mem() local
347 FM_FMRI_HC_SERIAL_ID, &sn, &n) != 0) { in find_dimm_sn_mem()
351 if (strcmp(*sn, (char *)arg) != 0) { in find_dimm_sn_mem()
366 char *sn; in find_dimm_sn_hc() local
375 if (strcmp(sn, (char *)arg) != 0) { in find_dimm_sn_hc()
428 char *sn, *name, *id; in find_cpu_rsc_by_sn() local
440 if (strcmp(rscid->serial, sn) != 0) { in find_cpu_rsc_by_sn()
518 char *sn; in find_mem_rsc_hc() local
527 if (strcmp(sn, (char *)arg) != 0) { in find_mem_rsc_hc()
548 find_mem_rsc_hc, sn, &err)) == NULL) { in cmd_find_mem_rsc_by_sn()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/
H A Dstatics.sh676 nameref sn=$1
677 (( sn.a++, sn.b++ ))
678 $2 && printf "a=%d, b=%d\n" sn.a sn.b
/illumos-gate/usr/src/uts/common/io/sfxge/
H A Dsfxge_mon.c73 int rc, sn; in sfxge_mon_kstat_update() local
92 for (sn = 0; sn < EFX_MON_NSTATS; sn++) { in sfxge_mon_kstat_update()
93 if (encp->enc_mon_stat_mask[sn / EFX_MON_MASK_ELEMENT_SIZE] & in sfxge_mon_kstat_update()
94 (1 << (sn % EFX_MON_MASK_ELEMENT_SIZE))) { in sfxge_mon_kstat_update()
95 knp->value.ui64 = smp->sm_statbuf[sn].emsv_value; in sfxge_mon_kstat_update()
H A Dsfxge_phy.c82 int rc, sn; in sfxge_phy_kstat_update() local
103 for (sn = 0; sn < EFX_PHY_NSTATS; sn++) { in sfxge_phy_kstat_update()
104 knp->value.ui64 = spp->sp_statbuf[sn]; in sfxge_phy_kstat_update()
/illumos-gate/usr/src/uts/common/pcmcia/cs/
H A Dcs.c341 for (sn = 0; sn < cs_globals.max_socket_num; sn++) { in cs_deinit()
395 for (sn = 0; sn < cs_globals.max_socket_num; sn++) { in cs_deinit()
1635 uint32_t sn; in cs_register_client() local
1794 for (sn = 0; sn < scr->num_sockets; sn++) { in cs_register_client()
3180 uint32_t sn; in cs_socket_event_softintr() local
3210 for (sn = 0; sn < cs_globals.max_socket_num; sn++) { in cs_socket_event_softintr()
7509 if (sn == 0)
8343 sn = CS_GET_SOCKET_NUMBER(sn);
8752 sn++;
8790 sn++;
[all …]
/illumos-gate/usr/src/cmd/fm/modules/sun4v/generic-mem/
H A Dgmem_dimm.c444 gmem_find_dimm_fru(fmd_hdl_t *hdl, char *sn) in gmem_find_dimm_fru() argument
447 (void) strcpy(fru.serial, sn); in gmem_find_dimm_fru()
453 gmem_find_dimm_rsc(fmd_hdl_t *hdl, char *sn) in gmem_find_dimm_rsc() argument
456 (void) strcpy(rsc.serial, sn); in gmem_find_dimm_rsc()
462 gmem_find_dimm_asru(fmd_hdl_t *hdl, char *sn) in gmem_find_dimm_asru() argument
465 (void) strcpy(asru.serial, sn); in gmem_find_dimm_asru()
473 char *sn; in gmem_dimm_present() local
476 if (nvlist_lookup_string(asru, FM_FMRI_HC_SERIAL_ID, &sn) != 0) { in gmem_dimm_present()
480 dimm = gmem_find_dimm_fru(hdl, sn); in gmem_dimm_present()
482 fmd_hdl_debug(hdl, "Dimm sn=%s is not present\n", sn); in gmem_dimm_present()
H A Dgmem_page.c251 char *sn; in gmem_page_unusable() local
254 FM_FMRI_HC_SERIAL_ID, &sn) != 0) in gmem_page_unusable()
260 asru = gmem_find_dimm_asru(hdl, sn); in gmem_page_unusable()
264 (void) nvlist_add_string_array(asru, FM_FMRI_MEM_SERIAL_ID, &sn, 1); in gmem_page_unusable()
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_server.c1827 smb_session_t *sn; in smb_server_enum_users() local
1835 while (sn != NULL) { in smb_server_enum_users()
1857 sn = smb_llist_next(ll, sn); in smb_server_enum_users()
1870 smb_session_t *sn; in smb_server_enum_trees() local
1878 while (sn != NULL) { in smb_server_enum_trees()
1900 sn = smb_llist_next(ll, sn); in smb_server_enum_trees()
1915 smb_session_t *sn; in smb_server_session_disconnect() local
1923 sn != NULL; in smb_server_session_disconnect()
1924 sn = smb_llist_next(ll, sn)) { in smb_server_session_disconnect()
1963 smb_session_t *sn; in smb_server_fclose() local
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/cpuboard/
H A Dcpuboard.c99 char *sn = NULL, *pn = NULL; in cpuboard_get_pri_info() local
187 sn = pn = dn = NULL; in cpuboard_get_pri_info()
190 "serial_number", &sn); in cpuboard_get_pri_info()
191 cpubs[id].sn = topo_mod_strdup(mod, sn); in cpuboard_get_pri_info()
250 NULL, auth, cpubc->pn, NULL, cpubc->sn); in cpuboard_tnode_create()
448 if (cpuboard_list[i].sn != NULL) in cpuboard_free_pri_info()
449 topo_mod_strfree(mod, cpuboard_list[i].sn); in cpuboard_free_pri_info()
/illumos-gate/usr/src/cmd/tbl/
H A Dt4.c54 char sn[10], *snp, *temp; in readspec() local
279 sn[0] = c; in readspec()
280 snp=sn+1; in readspec()
284 sep[icol-1] = max(sep[icol-1], numb(sn)); in readspec()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/
H A Dilbadm_subr.c201 ilb_server_data_t *sn = &s->s_spec; in i_store_serverID() local
207 (void) strlcpy(sn->sd_srvID, val, sizeof (sn->sd_srvID)); in i_store_serverID()
410 ilbadm_servnode_t *sn = (ilbadm_servnode_t *)store; in i_match_hostorip() local
412 s = &sn->s_spec; in i_match_hostorip()
959 ilbadm_servnode_t sn; in i_store_val() local
961 bzero(&sn, sizeof (sn)); in i_store_val()
962 rc = i_match_hostorip((void *)&sn, sg, val, in i_store_val()
966 rd->r_minport = sn.s_spec.sd_minport; in i_store_val()
967 rd->r_maxport = sn.s_spec.sd_maxport; in i_store_val()
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/platform-cpu/
H A Dcpu_mdesc.c168 uint64_t x, sn; in cpu_n2_mdesc_init() local
220 if (md_get_prop_val(mdp, list1p[i], MD_STR_SERIAL, &sn) < 0) { in cpu_n2_mdesc_init()
228 sn = (uint64_t)strtoull(strserial, &end, 16); in cpu_n2_mdesc_init()
238 procp->serialno = sn; in cpu_n2_mdesc_init()
260 sn, cnt); in cpu_n2_mdesc_init()
280 mcmp->cpumap_serialno = sn; in cpu_n2_mdesc_init()
/illumos-gate/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()
200 "serial_number", &sn) < 0) in mb_get_pri_info()
201 sn = NULL; in mb_get_pri_info()
224 *serialp = topo_mod_strdup(mod, sn); in mb_get_pri_info()
/illumos-gate/usr/src/cmd/rmformat/
H A Drmf_misc.c110 char *pname, char *sn);
1163 char *sn, *tmpbuf; in find_device() local
1178 sn = volmgt_symname(sdev); in find_device()
1181 if (strstr(sn, "dev") == NULL) { in find_device()
1185 (void) strcat(tmpbuf, sn); in find_device()
1186 free(sn); in find_device()
1187 sn = tmpbuf; in find_device()
1229 if (sn) { in find_device()
1232 removable_found, sn); in find_device()
2064 if (sn) { in get_media_info()
[all …]
/illumos-gate/usr/src/cmd/sgs/common/
H A Dstring_table.c199 StrNode *snp, sn = { 0 }; in st_insert() local
249 sn.sn_str = str; in st_insert()
250 if ((snp = avl_find(lnp->ln_strtree, &sn, &where)) == NULL) { in st_insert()
269 StrNode *snp, sn = { 0 }; in st_delstring() local
287 sn.sn_str = str; in st_delstring()
288 if ((snp = avl_find(lnp->ln_strtree, &sn, 0)) != NULL) { in st_delstring()
/illumos-gate/usr/src/cmd/localedef/
H A Dcharmap.c263 int sn, en; in add_charmap_range() local
275 ((sn = atoi(s + si)) > ((en = atoi(e + si))))) { in add_charmap_range()
282 for (i = sn; i <= en; i++) { in add_charmap_range()
/illumos-gate/usr/src/uts/common/pcmcia/sys/
H A Dcs_priv.h266 #define CHECK_SOCKET_NUM(sn, ms) (((sn) >= (ms))?0:1) argument
278 #define WINDOW_FOR_SOCKET(wsm, sn) ((wsm)[sn/PR_WORDSIZE] & \ argument
279 (1 << ((sn) & PR_MASK)))
/illumos-gate/usr/src/uts/common/io/bnx/570x/common/include/
H A Dlicense.h79 u32_t sn; member
140 u32_t sn; member
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/include/
H A Dlicense.h106 u32_t sn; member
168 u32_t sn; member
/illumos-gate/usr/src/cmd/hal/addons/network-devices/
H A Dcommon.c177 *uri = NULL, *sn, *serial; in add_network_printer() local
179 sn = serial = pseudo_serialno_from_addr(hostaddr); in add_network_printer()
253 if (sn != NULL) in add_network_printer()
254 free(sn); in add_network_printer()
/illumos-gate/usr/src/cmd/cdrw/
H A Ddevice.c610 char *sn; in scan_for_cd_device() local
612 sn = hald_symname(sdev); in scan_for_cd_device()
619 sn ? sn : sdev, &t_dev->d_inq[8], in scan_for_cd_device()
623 if (sn) in scan_for_cd_device()
624 free(sn); in scan_for_cd_device()
/illumos-gate/usr/src/cmd/mandoc/
H A Dmdoc_html.c517 struct roff_node *sn, *subn; in mdoc_sh_pre() local
533 for (sn = n->next; sn != NULL; sn = sn->next) in mdoc_sh_pre()
534 if (sn->sec == SEC_CUSTOM) in mdoc_sh_pre()
543 for (sn = n; sn != NULL; sn = sn->next) { in mdoc_sh_pre()
545 id = html_make_id(sn->head, 0); in mdoc_sh_pre()
548 print_mdoc_nodelist(meta, sn->head->child, h); in mdoc_sh_pre()
551 for (subn = sn->body->child; subn != NULL; in mdoc_sh_pre()

123