/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | setup.c | 243 tp->_str[i] = tp->_str_table + offset; in __m_read_terminfo() 262 free(tp->_names); in __m_read_terminfo() 384 if (tp != NULL) { in del_curterm() 392 free(tp->_term); in del_curterm() 394 free(tp->_pair); in del_curterm() 397 if (tp->_shell) in del_curterm() 399 if (tp->_prog) in del_curterm() 401 if (tp->_save) in del_curterm() 403 if (tp->_actual) in del_curterm() 405 free(tp); in del_curterm() [all …]
|
/illumos-gate/usr/src/common/ctf/ |
H A D | ctf_types.c | 46 size = tp->ctt_size; in ctf_get_ctt_size() 78 const ctf_type_t *tp; in ctf_member_iter() local 129 const ctf_type_t *tp; in ctf_enum_iter() local 191 const ctf_type_t *tp; in ctf_type_resolve() local 199 if (tp->ctt_type == type || tp->ctt_type == otype || in ctf_type_resolve() 205 type = tp->ctt_type; in ctf_type_resolve() 492 const ctf_type_t *tp; in ctf_type_size() local 559 const ctf_type_t *tp; in ctf_type_align() local 621 const ctf_type_t *tp; in ctf_type_kind() local 637 const ctf_type_t *tp; in ctf_type_reference() local [all …]
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | setup.c | 123 TERMINAL *tp; 202 tp->_str[i] = tp->_str_table + offset; 223 free(tp->_names); 356 del_curterm(tp) in del_curterm() argument 357 TERMINAL *tp; in del_curterm() 376 free(tp); 383 set_curterm(tp) in set_curterm() argument 384 TERMINAL *tp; in set_curterm() 393 cur_term = tp; 565 __m_tty_get(tp) in __m_tty_get() argument [all …]
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | acctcon1.c | 243 struct tbuf *tp; in loop() local 255 for (tp = tbuf; tp <= &tbuf[tsize]; tp++) in loop() 338 struct tbuf *tp; in upall() local 341 for (tp = tbuf; tp <= &tbuf[tsize]; tp++) in upall() 342 update(tp); in upall() 373 tp->tlsess++; in update() 390 tp->tlon++; in update() 396 tp->tloff++; in update() 450 for (tp = tbuf; tp <= &tbuf[tsize]; tp++) { in printlin() 459 tp->tline, in printlin() [all …]
|
H A D | acctcon.c | 217 struct tbuf *tp; in loop() local 229 for (tp = tbuf; tp <= &tbuf[tsize]; tp++) in loop() 314 struct tbuf *tp; in upall() local 317 for (tp = tbuf; tp <= &tbuf[tsize]; tp++) in upall() 318 update(tp); in upall() 345 tp->tlsess++; in update() 363 tp->tlon++; in update() 367 tp->tloff++; in update() 425 for (tp = tbuf; tp <= &tbuf[tsize]; tp++) { in printlin() 434 tp->tline, in printlin() [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | via-rhine.c | 677 tp->cur_rx = tp->cur_tx = 0; in rhine_init_ring() 678 tp->dirty_rx = tp->dirty_tx = 0; in rhine_init_ring() 686 tp->rx_ring[i].buf_addr_1 = virt_to_bus (tp->rx_buffs[i]); in rhine_init_ring() 687 tp->rx_ring[i].buf_addr_2 = virt_to_bus (&tp->rx_ring[i + 1]); in rhine_init_ring() 703 tp->tx_ring[i].buf_addr_1 = virt_to_bus (tp->tx_buffs[i]); in rhine_init_ring() 1055 tp = &rhine; in rhine_probe1() 1199 if (tp->rx_ring[tp->cur_rx].rx_status.bits.own_bit == 0) in rhine_poll() 1218 rxstatus = tp->rx_ring[tp->cur_rx].rx_status.lw; in rhine_poll() 1236 tp->rx_ring[tp->cur_rx].rx_status.bits.own_bit = 1; in rhine_poll() 1237 tp->cur_rx++; in rhine_poll() [all …]
|
H A D | fsys_tftp.c | 86 struct tftpreq_t tp; in tftp_file_read() local 104 len = sizeof(tp.ip) + sizeof(tp.udp) + sizeof(tp.opcode) + in tftp_file_read() 108 TFTP_PORT, len, &tp)) in tftp_file_read() 173 tp.u.err.errcode = 8; in tftp_file_read() 178 len = sizeof(tp.ip) + sizeof(tp.udp) + sizeof(tp.opcode) + sizeof(tp.u.err.errcode) + in tftp_file_read() 188 len, &tp); in tftp_file_read() 353 + sizeof (tp.ip) + sizeof (tp.udp) in buf_fill() 354 + sizeof (tp.opcode) + sizeof (tp.u.err.errcode) in buf_fill() 358 len, &tp); in buf_fill() 525 if (tp.u.rrq[i] >= ' ' && tp.u.rrq[i] <= '~') in tftp_read() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | ulimit.c | 53 register const Limit_t* tp; in infof() local 55 for (tp = shtab_limits; tp->option; tp++) in infof() 57 sfprintf(sp, "[%c=%d:%s?The %s", tp->option, tp - shtab_limits + 1, tp->name, tp->description); in infof() 58 if(tp->type != LIM_COUNT) in infof() 59 sfprintf(sp, " in %ss", e_units[tp->type]); in infof() 77 const Limit_t* tp; in b_ulimit() local 127 for(tp = shtab_limits; tp->option && hit; tp++,hit>>=1) in b_ulimit() 132 unit = shtab_units[tp->type]; in b_ulimit() 193 if(tp->type != LIM_COUNT) in b_ulimit() 194 sfsprintf(tmp,sizeof(tmp),"%s (%ss)", tp->description, e_units[tp->type]); in b_ulimit() [all …]
|
/illumos-gate/usr/src/lib/scsi/libses/common/ |
H A D | ses_plugin.c | 39 ses_target_t *tp = snap->ss_target; in ses_plugin_ctlpage_lookup() local 92 (void) pthread_mutex_lock(&tp->st_lock); in ses_node_ctl() 121 (void) pthread_mutex_unlock(&tp->st_lock); in ses_node_ctl() 132 ses_target_t *tp = sp->sp_target; in ses_plugin_page_lookup() local 240 sp->sp_target = tp; in ses_plugin_loadone() 265 tp->st_plugin_last = sp; in ses_plugin_loadone() 330 if (ses_plugin_loadone(tp, path, 1) != 0) in ses_plugin_load_dir() 349 ses_plugin_load(ses_target_t *tp) in ses_plugin_load() argument 380 if (tp->st_plugin_first == NULL) in ses_plugin_load() 387 ses_plugin_unload(ses_target_t *tp) in ses_plugin_unload() argument [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | tee.c | 94 tee_cleanup(register Tee_t* tp) in tee_cleanup() argument 99 if (tp) in tee_cleanup() 102 if (tp->line >= 0) in tee_cleanup() 112 register Tee_t* tp = 0; in b_tee() local 123 tee_cleanup(tp); in b_tee() 172 memset(&tp->disc, 0, sizeof(tp->disc)); in b_tee() 176 tp->line = line; in b_tee() 177 hp = tp->fd; in b_tee() 187 if (hp == tp->fd) in b_tee() 188 tp = 0; in b_tee() [all …]
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | ex_vput.c | 95 wchar_t *tp, j; in vclreol() local 117 if (*tp == 0) in vclreol() 391 wchar_t *tp; in vgoto() local 727 --tp; in vinschar() 1053 tp++; in viin() 1114 tp = vtube0 + tabstart; up = tp + inssiz - doomed; in viin() 1211 wchar_t *tp; local 1278 *tp = ' '; 1382 *tp++ = c; 1482 while (tp < tpe && *tp) [all …]
|
/illumos-gate/usr/src/cmd/zic/ |
H A D | scheck.c | 14 register char *tp; local 26 tp = fbuf; 31 *tp++ = *fp++; 34 *tp++ = '*'; 38 *tp++ = *fp++; 40 *tp++ = *fp++; 42 do *tp++ = *fp++; 44 if ((*tp++ = *fp++) == '\0') 47 *(tp - 1) = '%'; 48 *tp++ = 'c'; [all …]
|
/illumos-gate/usr/src/cmd/tsol/tninfo/ |
H A D | tninfo.c | 102 tsol_tpent_t tp; in print_rhtp() local 107 (void) strlcpy(tp.name, rhtp_name, sizeof (tp.name)); in print_rhtp() 109 if (tnrhtp(TNDB_GET, &tp) != 0) { in print_rhtp() 112 "%1$s does not exist\n"), tp.name); in print_rhtp() 116 "%2$s\n"), tp.name, strerror(errno)); in print_rhtp() 126 switch (tp.host_type) { in print_rhtp() 142 l_to_str(&tp.tp_gw_sl_range.lower_bound, in print_rhtp() 144 l_to_str(&tp.tp_gw_sl_range.lower_bound, in print_rhtp() 151 l_to_str(&tp.tp_gw_sl_range.upper_bound, in print_rhtp() 153 l_to_str(&tp.tp_gw_sl_range.upper_bound, in print_rhtp() [all …]
|
/illumos-gate/usr/src/uts/sun4v/promif/ |
H A D | promif_node.c | 161 tp = prom_path_gettoken(tp, token); in gettoken() 163 if ((*tp == ',') || (*tp == ':')) { in gettoken() 174 return (tp); in gettoken() 214 char *tp; in finddevice() local 220 tp = path; in finddevice() 225 if (*tp++ != '/') in finddevice() 230 tp = gettoken(tp, name); in finddevice() 235 if (*tp == '@') { in finddevice() 236 tp++; in finddevice() 237 tp = gettoken(tp, addr); in finddevice() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/ |
H A D | vmclear.c | 42 Block_t *tp; local 62 tp = SEGBLOCK(seg); 65 SEG(tp) = seg; 66 SIZE(tp) = size; 68 seg->free = tp; 70 { SIZE(tp) |= BUSY|JUNK; 71 LINK(tp) = CACHE(vd)[C_INDEX(SIZE(tp))]; 72 CACHE(vd)[C_INDEX(SIZE(tp))] = tp; 75 tp = BLOCK(seg->baddr); 76 SEG(tp) = seg; [all …]
|
/illumos-gate/usr/src/uts/sun4u/serengeti/io/ |
H A D | sbdp_quiesce.c | 511 kthread_id_t tp; local 532 for (tp = curthread->t_next; tp != curthread; tp = tp->t_next) { 540 thread_lock(tp); 554 aston(tp); 556 if (ISWAKEABLE(tp) || ISWAITING(tp)) { 562 if (tp->t_state == TS_ONPROC && tp->t_cpu != CPU) 579 tp != curthread; tp = tp->t_next) { 598 cache_tp = tp; 627 kthread_id_t tp; local 632 for (tp = curthread->t_next; tp != curthread; tp = tp->t_next) { [all …]
|
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/ |
H A D | setup.c | 289 check_avdp(struct tag *tp) in check_avdp() argument 296 check_vdp(struct tag *tp) in check_vdp() argument 374 struct tag *tp; in readvolseq() local 391 tp = &avp->avd_tag; in readvolseq() 396 err = verifytag(tp, FIRSTAVDP, tp, UD_ANCH_VOL_DESC); in readvolseq() 427 tp = (struct tag *)cp; in readvolseq() 428 err = verifytag(tp, nextblock, tp, 0); in readvolseq() 441 switch (tp->tag_id) { in readvolseq() 451 err = check_avdp(tp); in readvolseq() 454 err = check_vdp(tp); in readvolseq() [all …]
|
/illumos-gate/usr/src/uts/common/io/sbp2/ |
H A D | cfgrom.c | 68 tm = gethrtime() - tp->t_last_cfgrd; in sbp2_cfgrom_rq() 72 ret = SBP2_RQ(tp, cmd, addr, q, &berr); in sbp2_cfgrom_rq() 74 tp->t_last_cfgrd = gethrtime(); in sbp2_cfgrom_rq() 92 SBP2_FREE_CMD(tp, cmd); in sbp2_cfgrom_parse() 106 sbp2_cfgrom_free(tp, crp); in sbp2_cfgrom_parse() 109 SBP2_FREE_CMD(tp, cmd); in sbp2_cfgrom_parse() 143 SBP2_CFGROM_RQ(tp, cmd, addr, &entry); in sbp2_cfgrom_parse_dir() 199 SBP2_CFGROM_RQ(tp, cmd, addr, &val); in sbp2_cfgrom_read_leaf() 230 uint64_t addr = SBP2_CFGROM_ADDR(tp); in sbp2_cfgrom_read_bib() 233 SBP2_CFGROM_RQ(tp, cmd, addr, &val); in sbp2_cfgrom_read_bib() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/bsd/ |
H A D | gettimeofday.c | 15 isc__gettimeofday(struct timeval *tp, struct timezone *tzp) { in isc__gettimeofday() argument 18 res = gettimeofday(tp, tzp); in isc__gettimeofday() 21 if (tp == NULL) in isc__gettimeofday() 23 if (tp->tv_usec < 0) { in isc__gettimeofday() 25 tp->tv_usec += MILLION; in isc__gettimeofday() 26 tp->tv_sec--; in isc__gettimeofday() 27 } while (tp->tv_usec < 0); in isc__gettimeofday() 29 } else if (tp->tv_usec > MILLION) { in isc__gettimeofday() 31 tp->tv_usec -= MILLION; in isc__gettimeofday() 32 tp->tv_sec++; in isc__gettimeofday() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/ |
H A D | lc.c | 309 if (tp && tp != &lc_territories[0]) in canonical() 549 tp = 0; in lcmake() 585 for (tp = lc_territories; tp->code && !streq(s, tp->code); tp++); in lcmake() 590 for (tp = lc_territories; tp->name; tp++) in lcmake() 637 if (!tp || !tp->code) in lcmake() 643 for (tp = lc_territories; tp->code; tp++) in lcmake() 659 if (!tp || !tp->code) in lcmake() 664 for (tp = lc_territories; tp->code; tp++) in lcmake() 678 for (tp = lc_territories; tp->code; tp++) in lcmake() 686 if (tp && !tp->code) in lcmake() [all …]
|
/illumos-gate/usr/src/uts/common/netinet/ |
H A D | tcp_seq.h | 31 #define tcp_rcvseqinit(tp) \ argument 32 (tp)->rcv_adv = (tp)->rcv_nxt = (tp)->irs + 1 34 #define tcp_sendseqinit(tp) \ argument 35 (tp)->snd_una = (tp)->snd_nxt = (tp)->snd_max = (tp)->snd_up = \ 36 (tp)->iss
|
/illumos-gate/usr/src/uts/sun4u/io/i2c/nexus/ |
H A D | smbus.c | 817 tp->i2c_r_resid = tp->i2c_rlen; in smbus_transfer() 818 tp->i2c_w_resid = tp->i2c_wlen; in smbus_transfer() 826 tp->i2c_r_resid, tp->i2c_w_resid, tp->i2c_flags)); in smbus_transfer() 1151 tp->i2c_flags, tp->i2c_w_resid, tp->i2c_r_resid, src)); in smbus_intr_cmn() 1225 a = tp->i2c_wbuf[tp->i2c_wlen - tp->i2c_w_resid--]; in smbus_wr() 1232 a = tp->i2c_wbuf[tp->i2c_wlen - tp->i2c_w_resid--]; in smbus_wr() 1235 b = tp->i2c_wbuf[tp->i2c_wlen - tp->i2c_w_resid--]; in smbus_wr() 1249 a = tp->i2c_wbuf[tp->i2c_wlen - tp->i2c_w_resid--]; in smbus_wr() 1257 a = tp->i2c_wbuf[tp->i2c_wlen - tp->i2c_w_resid--]; in smbus_wr() 1312 tp->i2c_rbuf[tp->i2c_rlen - tp->i2c_r_resid] = in smbus_rd() [all …]
|
/illumos-gate/usr/src/lib/scsi/libscsi/common/ |
H A D | scsi_engine.c | 168 libscsi_target_t *tp; in libscsi_open() local 183 libscsi_free(hp, tp); in libscsi_open() 191 tp->lst_hdl = hp; in libscsi_open() 192 tp->lst_engine = ep; in libscsi_open() 193 tp->lst_priv = private; in libscsi_open() 202 return (tp); in libscsi_open() 208 return (tp->lst_hdl); in libscsi_get_handle() 214 tp->lst_engine->lse_ops->lseo_close(hp, tp->lst_priv); in libscsi_close() 218 libscsi_free(hp, tp); in libscsi_close() 641 ret = tp->lst_engine->lse_ops->lseo_exec(hp, tp->lst_priv, ap); in libscsi_exec() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/ |
H A D | in.rdisc.c | 1974 pr_name(tp->router), tp->preference, in report_routes() 1977 tp = tp->next; in report_routes() 1990 tp = tp->next; in find_router() 2005 tp = tp->next; in max_preference() 2045 if (tp->preference == max && !tp->in_kernel) { in age_table() 2049 tp = tp->next; in age_table() 2090 if (tp->preference == max && !tp->in_kernel) { in flush_unreachable_routers() 2094 tp = tp->next; in flush_unreachable_routers() 2113 if (tp) { in record_router() 2157 tp = tp->next; in record_router() [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/dr/ |
H A D | dr_quiesce.c | 531 kthread_id_t tp; in dr_stop_user_threads() local 550 for (tp = curthread->t_next; tp != curthread; tp = tp->t_next) { in dr_stop_user_threads() 572 aston(tp); in dr_stop_user_threads() 574 if (ISWAKEABLE(tp) || ISWAITING(tp)) { in dr_stop_user_threads() 581 if (tp->t_state == TS_ONPROC && tp->t_cpu != CPU) in dr_stop_user_threads() 598 tp != curthread; tp = tp->t_next) { in dr_stop_user_threads() 633 (void *)tp, tp->t_state, in dr_stop_user_threads() 634 tp->t_proc_flag, tp->t_schedflag); in dr_stop_user_threads() 660 kthread_id_t tp; in dr_start_user_threads() local 665 for (tp = curthread->t_next; tp != curthread; tp = tp->t_next) { in dr_start_user_threads() [all …]
|