Home
last modified time | relevance | path

Searched refs:stp (Results 1 – 25 of 94) sorted by relevance

1234

/illumos-gate/usr/src/uts/common/os/
H A Dstreamio.c228 stp->sd_anchor = stp->sd_pushcnt; in push_mod()
710 cv_wait(&stp->sd_monitor, &stp->sd_lock); in strclose()
858 stp->sd_vnode = stp->sd_pvnode = NULL; in strclose()
1790 bp = (stp->sd_rprotofunc)(stp->sd_vnode, bp, in strrput()
1807 bp = (stp->sd_rmiscfunc)(stp->sd_vnode, bp, in strrput()
2114 (stp->sd_werror ? stp->sd_werror : in strrput_nondata()
2155 if (stp->sd_sidp != stp->sd_pgidp) in strrput_nondata()
4008 stp->sd_pushcnt == stp->sd_anchor && in strioctl()
4058 if (stp->sd_pushcnt < stp->sd_anchor) { in strioctl()
4452 stp->sd_anchor = stp->sd_pushcnt; in strioctl()
[all …]
H A Dstrsubr.c634 DQ(q, stp->sd_qhead, stp->sd_qtail, q_link); \
2962 newbp = (stp->sd_wputdatafunc)(stp->sd_vnode, in strmakedata()
3324 stp->sd_rderrfunc = stp->sd_wrerrfunc = NULL; in shalloc()
3325 stp->sd_rputdatafunc = stp->sd_wputdatafunc = NULL; in shalloc()
3351 cv_wait(&stp->sd_qcv, &stp->sd_qlock); in shfree()
4604 if (&(stp->sd_lock) > &((stp->sd_mate)->sd_lock)) { in strlock()
4633 cv_wait(&stp->sd_refmonitor, &stp->sd_reflock); in strlock()
4940 sqlist = sqlist_build(qp, stp, STRMATED(stp)); in removeq()
4949 stp->sd_wrq->q_next = _RD(stp->sd_wrq); in removeq()
8233 ENQUEUE(q, stp->sd_qhead, stp->sd_qtail, q_link); in qenable_locked()
[all …]
H A Dsession.c264 stp->sd_pgidp = NULL; in sess_ctty_clear()
265 stp->sd_sidp = NULL; in sess_ctty_clear()
291 stp->sd_sidp = sp->s_sidp; in sess_ctty_set()
296 strctty(stdata_t *stp) in strctty() argument
385 stdata_t *stp; in freectty_lock() local
401 stp = sp->s_vp->v_stream; in freectty_lock()
474 *stpp = stp; in freectty_lock()
518 strhup(stp); in freectty_signal()
533 stdata_t *stp; in freectty() local
623 pgidp = stp->sd_pgidp; in freectty()
[all …]
H A Dddi.c495 struct stdata *stp = STREAM(q); in canputnext() local
501 if (stp->sd_ciputctrl != NULL) { in canputnext()
522 if (sdlock != &stp->sd_reflock) { in canputnext()
524 mutex_enter(&stp->sd_reflock); in canputnext()
528 stp->sd_refcnt++; in canputnext()
530 mutex_exit(&stp->sd_reflock); in canputnext()
628 struct stdata *stp = STREAM(q); in freezestr() local
637 ASSERT(stp->sd_freezer == NULL); in freezestr()
638 stp->sd_freezer = curthread; in freezestr()
653 struct stdata *stp = STREAM(q); in unfreezestr() local
[all …]
/illumos-gate/usr/src/cmd/sgs/common/
H A Dstring_table.c159 Str_tbl *stp; in st_new() local
161 if ((stp = calloc(1, sizeof (*stp))) == NULL) in st_new()
167 stp->st_strsize = stp->st_fullstrsize = stp->st_nextoff = 1; in st_new()
174 return (stp); in st_new()
182 return (stp); in st_new()
340 free(stp); in st_destroy()
600 stp->st_hbckcnt = findprime(stp->st_strcnt); in st_getstrtab_sz()
601 if ((stp->st_hashbcks = calloc(stp->st_hbckcnt, in st_getstrtab_sz()
674 assert(stp->st_fullstrsize >= stp->st_strsize); in st_getstrtab_sz()
759 end = stp->st_strbuf + stp->st_fullstrsize; in st_findstring()
[all …]
/illumos-gate/usr/src/uts/common/io/sfxge/
H A Dsfxge_tx.c884 level = stp->st_added - stp->st_reaped; in sfxge_tx_qlist_post()
897 if ((rc = efx_tx_qpost(stp->st_etp, stp->st_eb, stp->st_n, in sfxge_tx_qlist_post()
898 stp->st_reaped, &(stp->st_added))) != 0) in sfxge_tx_qlist_post()
945 level = stp->st_added - stp->st_completed; in sfxge_tx_qlist_post()
977 if (stp->st_pending == stp->st_added) { in sfxge_tx_qlist_post()
1286 ebp = &(stp->st_eb[stp->st_n++]); in sfxge_tx_qmapping_add()
1331 ebp = &(stp->st_eb[stp->st_n++]); in sfxge_tx_qbuffer_add()
2331 level = stp->st_added - stp->st_completed; in sfxge_tx_qunblock()
2388 level = stp->st_added - stp->st_completed; in sfxge_tx_qcomplete()
2530 stp->st_pending = stp->st_added; in sfxge_tx_qstop()
[all …]
H A Dsfxge_ev.c209 sfxge_txq_t *stp; in sfxge_ev_qcomplete() local
223 if (stp->st_pending != stp->st_completed) in sfxge_ev_qcomplete()
226 stp = next; in sfxge_ev_qcomplete()
432 sfxge_txq_t *stp; in sfxge_ev_tx() local
439 if (stp == NULL) in sfxge_ev_tx()
462 unsigned int, stp->st_added - stp->st_pending); in sfxge_ev_tx()
464 if (stp->st_pending - stp->st_completed >= SFXGE_TX_BATCH) in sfxge_ev_tx()
477 sfxge_txq_t *stp; in sfxge_ev_txq_flush_done() local
486 if (stp == NULL) in sfxge_ev_txq_flush_done()
490 evq = stp->st_evq; in sfxge_ev_txq_flush_done()
[all …]
/illumos-gate/usr/src/common/smbios/
H A Dsmb_info.c296 if (stp == NULL) in smbios_info_common()
394 if (stp == NULL) in smbios_info_bios()
489 if (stp == NULL) in smbios_info_system()
510 if (stp == NULL) in smbios_info_bboard()
686 if (stp == NULL) in smbios_info_processor()
746 if (stp == NULL) in smbios_info_cache()
795 if (stp == NULL) in smbios_info_port()
822 if (stp == NULL) in smbios_info_slot()
897 if (stp == NULL) in smbios_info_slot_peers()
947 if (stp == NULL) in smbios_info_obdevs_ext()
[all …]
H A Dsmb_open.c321 stp->smbst_hdr = hp; in smbios_bufopen()
322 stp->smbst_str = s; in smbios_bufopen()
323 stp->smbst_end = p; in smbios_bufopen()
326 stp->smbst_strtablen = n; in smbios_bufopen()
331 shp->sh_hash[h] = stp; in smbios_bufopen()
443 if (stp == NULL) in smbios_lookup_id()
457 if (stp == NULL) in smbios_lookup_type()
510 for (; stp != NULL; stp = stp->smbst_next) { in smb_lookup_id()
515 if (stp == NULL) in smb_lookup_id()
518 return (stp); in smb_lookup_id()
[all …]
/illumos-gate/usr/src/uts/common/sys/scsi/targets/
H A Dsgendef.h101 #define SGEN_SET_OPEN(stp) \ argument
103 #define SGEN_CLR_OPEN(stp) \ argument
105 #define SGEN_IS_OPEN(stp) \ argument
108 #define SGEN_SET_SUSP(stp) \ argument
110 #define SGEN_CLR_SUSP(stp) \ argument
112 #define SGEN_IS_SUSP(stp) \ argument
115 #define SGEN_SET_BUSY(stp) \ argument
117 #define SGEN_CLR_BUSY(stp) \ argument
119 #define SGEN_IS_BUSY(stp) \ argument
122 #define SGEN_SET_EXCL(stp) \ argument
[all …]
/illumos-gate/usr/src/cmd/fm/modules/common/sensor-transport/
H A Dsensor_transport.c232 stp->st_faults = sfp; in st_check_component()
295 sensor_transport_t *stp; in st_timeout() local
308 stp, &err)) == NULL) { in st_timeout()
357 stp->st_first = B_FALSE; in st_timeout()
361 stp->st_timer = fmd_timer_install(hdl, NULL, NULL, stp->st_interval); in st_timeout()
424 stp->st_spoofs = NULL; in parse_spoof_param()
452 sensor_transport_t *stp; in _fmd_init() local
483 stp->st_hdl = hdl; in _fmd_init()
484 stp->st_first = B_TRUE; in _fmd_init()
493 sensor_transport_t *stp; in _fmd_fini() local
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Denc_des.c472 stp->str_key.contents = stp->str_keybytes; in cfb64_stream_key()
481 (void) memcpy((void *)stp->str_output, (void *)stp->str_iv, in cfb64_stream_key()
512 register struct stinfo *stp = in cfb64_encrypt() local
516 index = stp->str_index; in cfb64_encrypt()
520 ecb_encrypt(stp, stp->str_output, b); in cfb64_encrypt()
527 *s = stp->str_output[index] = (stp->str_feed[index] ^ *s); in cfb64_encrypt()
531 stp->str_index = index; in cfb64_encrypt()
547 if (stp->str_index) in cfb64_decrypt()
548 --stp->str_index; in cfb64_decrypt()
552 index = stp->str_index++; in cfb64_decrypt()
[all …]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_program.c65 dt_stmt_t *stp, *next; in dt_program_destroy() local
68 for (stp = dt_list_next(&pgp->dp_stmts); stp != NULL; stp = next) { in dt_program_destroy()
69 next = dt_list_next(stp); in dt_program_destroy()
71 dt_free(dtp, stp); in dt_program_destroy()
87 dt_stmt_t *stp; in dtrace_program_info() local
104 for (stp = dt_list_next(&pgp->dp_stmts); stp; stp = dt_list_next(stp)) { in dtrace_program_info()
280 if (stp == NULL) in dtrace_stmt_add()
284 stp->ds_desc = sdp; in dtrace_stmt_add()
293 dt_stmt_t *stp, *next; in dtrace_stmt_iter() local
296 for (stp = dt_list_next(&pgp->dp_stmts); stp != NULL; stp = next) { in dtrace_stmt_iter()
[all …]
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dnfsops.c369 boot_nfs_fstat(int fd, struct bootstat *stp) in boot_nfs_fstat() argument
377 printf("boot_nfs_fstat(%d, 0x%x)\n", fd, stp); in boot_nfs_fstat()
416 stp->st_size = (off_t)va.va_size; in boot_nfs_fstat()
417 stp->st_mode = VTTOIF(va.va_type) | va.va_mode; in boot_nfs_fstat()
418 stp->st_atim.tv_sec = va.va_atime.tv_sec; in boot_nfs_fstat()
419 stp->st_atim.tv_nsec = va.va_atime.tv_nsec; in boot_nfs_fstat()
420 stp->st_ctim.tv_sec = va.va_ctime.tv_sec; in boot_nfs_fstat()
421 stp->st_ctim.tv_nsec = va.va_ctime.tv_nsec; in boot_nfs_fstat()
422 stp->st_mtim.tv_sec = va.va_mtime.tv_sec; in boot_nfs_fstat()
423 stp->st_mtim.tv_nsec = va.va_mtime.tv_nsec; in boot_nfs_fstat()
[all …]
/illumos-gate/usr/src/tools/sgs/sgsmsg/
H A Dsgsmsg.c154 if ((stp == 0) && ((stp = st_new(FLG_STNEW_COMPRESS)) == NULL)) { in message_append()
316 dump_stringtab(Str_tbl *stp) in dump_stringtab() argument
322 stp->st_fullstrsize); in dump_stringtab()
327 stp->st_fullstrsize, stp->st_strsize); in dump_stringtab()
329 stp->st_hbckcnt); in dump_stringtab()
565 stbufsize = st_getstrtab_sz(stp); in output_defs()
606 stbufsize = st_getstrtab_sz(stp); in output_data()
607 stbuf = st_getstrbuf(stp); in output_data()
1219 dump_stringtab(stp); in main()
1233 if (stp) in main()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/
H A Dses.c432 ssl->ssl_tgt = stp; in ses_ssl_alloc()
742 stp->set_ctid = 0; in ses_create_contract()
2447 for (i = 0, stp = topo_list_next(&scp->sec_targets); stp != NULL; in ses_create_subchassis()
2448 stp = topo_list_next(stp), i++) in ses_create_subchassis()
2454 for (i = 0, stp = topo_list_next(&scp->sec_targets); stp != NULL; in ses_create_subchassis()
2455 stp = topo_list_next(stp), i++) in ses_create_subchassis()
3033 for (i = 0, stp = topo_list_next(&cp->sec_targets); stp != NULL; in ses_create_chassis()
3034 stp = topo_list_next(stp), i++) in ses_create_chassis()
3040 for (i = 0, stp = topo_list_next(&cp->sec_targets); stp != NULL; in ses_create_chassis()
3041 stp = topo_list_next(stp), i++) in ses_create_chassis()
[all …]
/illumos-gate/usr/src/cmd/truss/
H A Dsystable.c1161 stp = &msgtable[subcode]; in subsys()
1165 stp = &semtable[subcode]; in subsys()
1169 stp = &shmtable[subcode]; in subsys()
1173 stp = &pidtable[subcode]; in subsys()
1177 stp = &utstable[subcode]; in subsys()
1181 stp = &sfstable[subcode]; in subsys()
1185 stp = &sgptable[subcode]; in subsys()
1189 stp = &ctxtable[subcode]; in subsys()
1193 stp = &hrttable[subcode]; in subsys()
1290 if (stp == NULL) in subsys()
[all …]
H A Dactions.c362 const struct systable *stp; in sysentry() local
384 stp = subsys(what, subcode); in sysentry()
386 if (nargs > stp->nargs) in sysentry()
387 nargs = stp->nargs; in sysentry()
432 } else if (stp->arg[0] == STG) { in sysentry()
479 x = stp->arg[i]; in sysentry()
517 const struct systable *stp; in sysexit() local
582 stp = subsys(what, subcode); in sysexit()
733 switch (stp->rval[0]) { in sysexit()
762 switch (stp->rval[1]) { in sysexit()
[all …]
/illumos-gate/usr/src/lib/libsqlite/tool/
H A Dlemon.c733 if( stp ){
759 return stp;
827 cfp->stp = stp;
932 stp->ap = Action_sort(stp->ap);
3279 stp->nTknAct = stp->nNtAct = 0;
3294 ax[i*2].stp = stp;
3297 ax[i*2+1].stp = stp;
3311 stp = ax[i].stp;
3333 if( stp->iNtOfst<mnNtOfst ) mnNtOfst = stp->iNtOfst;
3334 if( stp->iNtOfst>mxNtOfst ) mxNtOfst = stp->iNtOfst;
[all …]
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_fhistory.c775 fh_cookie, p, stp, off)) < 0) in ndmpd_fhpath_v3_cb()
833 pino = stp->st_ino; in ndmpd_fhdir_v3_cb()
959 } else if (!stp) { in ndmpd_fhnode_v3_cb()
983 ino = stp->st_ino; in ndmpd_fhnode_v3_cb()
1347 } else if (!stp) { in ndmpd_file_history_path()
1379 struct stat64 *stp) in ndmpd_file_history_dir() argument
1400 } else if (!stp) { in ndmpd_file_history_dir()
1425 pino = stp->st_ino; in ndmpd_file_history_dir()
1544 } else if (!stp) { in ndmpd_file_history_node()
1565 ino = stp->st_ino; in ndmpd_file_history_node()
[all …]
/illumos-gate/usr/src/lib/scsi/libses/common/
H A Dses_enclosure.c206 ses_open_scsi(uint_t version, libscsi_target_t *stp) in ses_open_scsi() argument
219 tp->st_target = stp; in ses_open_scsi()
220 tp->st_scsi_hdl = libscsi_get_handle(stp); in ses_open_scsi()
247 libscsi_target_t *stp; in ses_open() local
256 if ((stp = libscsi_open(hp, NULL, target)) == NULL) { in ses_open()
262 if ((tp = ses_open_scsi(version, stp)) == NULL) { in ses_open()
263 libscsi_close(hp, stp); in ses_open()
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_targets.c354 struct scope_targets *sts, *stp; in slp_destroy_target_list() local
355 for (sts = tl->scopes[i]; sts; sts = stp) { in slp_destroy_target_list()
356 stp = sts->next; in slp_destroy_target_list()
390 struct scope_targets *st, *stp; in add2scopes_list() local
400 for (stp = scopes[i]; stp && stp->next; ) { in add2scopes_list()
401 stp = stp->next; in add2scopes_list()
403 if (stp) in add2scopes_list()
404 stp->next = st; in add2scopes_list()
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dsections.c95 Dbg_sec_strtab(Lm_list *lml, Os_desc *osp, Str_tbl *stp) in Dbg_sec_strtab() argument
106 if (stp->st_flags & FLG_STTAB_COMPRESS) in Dbg_sec_strtab()
108 EC_XWORD(stp->st_fullstrsize), EC_XWORD(stp->st_strsize)); in Dbg_sec_strtab()
111 EC_XWORD(stp->st_fullstrsize)); in Dbg_sec_strtab()
114 ((stp->st_flags & FLG_STTAB_COMPRESS) == 0)) in Dbg_sec_strtab()
119 stp->st_hbckcnt); in Dbg_sec_strtab()
121 for (cnt = 0; cnt < stp->st_hbckcnt; cnt++) { in Dbg_sec_strtab()
122 Str_hash *strhash = stp->st_hashbcks[cnt]; in Dbg_sec_strtab()
/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp_mbox.c86 stp->s_board = board; in sbdp_showbd_2_sbd_stat()
87 (void) strcpy(stp->s_info, shbp->s_info); in sbdp_showbd_2_sbd_stat()
88 stp->s_power = shbp->s_power; in sbdp_showbd_2_sbd_stat()
98 (void) strcpy(stp->s_type, UNKNOWN); in sbdp_showbd_2_sbd_stat()
99 stp->s_rstate = SBD_STAT_EMPTY; in sbdp_showbd_2_sbd_stat()
101 stp->s_rstate = SBD_STAT_DISCONNECTED; in sbdp_showbd_2_sbd_stat()
103 stp->s_rstate = SBD_STAT_CONNECTED; in sbdp_showbd_2_sbd_stat()
106 stp->s_assigned = shbp->s_assigned; in sbdp_showbd_2_sbd_stat()
107 stp->s_cond = shbp->s_cond; in sbdp_showbd_2_sbd_stat()
200 stp->s_busy = 1; in sbdp_get_board_status()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dstrsubr.h270 #define STREAM_NEEDSERVICE(stp) ((stp)->sd_qhead != NULL) argument
836 #define STREAM_PUTLOCKS_ENTER(stp) { \ argument
837 ASSERT(MUTEX_HELD(&(stp)->sd_lock)); \
838 if ((stp)->sd_ciputctrl != NULL) { \
840 int nlocks = (stp)->sd_nciputctrl; \
848 #define STREAM_PUTLOCKS_EXIT(stp) { \ argument
849 ASSERT(MUTEX_HELD(&(stp)->sd_lock)); \
850 if ((stp)->sd_ciputctrl != NULL) { \
852 int nlocks = (stp)->sd_nciputctrl; \
979 #define CLAIM_QNEXT_LOCK(stp) mutex_enter(&(stp)->sd_lock) argument
[all …]

1234