/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | help.c | 45 char **ep, *s, **tp, *text[MAXHELP]; in help() local 48 tp = text; in help() 76 *tp++ = "+\tDisplay next lines.\n"; in help() 78 *tp++ = "^E\tEdit all lines.\n"; in help() 96 *tp++ = "^L\tRedraw the screen.\n"; in help() 98 *tp++ = "^D\tExit cscope.\n"; in help() 116 *tp++ = "+\tDisplay next lines.\n"; in help() 127 ep = tp; in help() 129 for (tp = text; tp < ep; ) { in help() 131 for (s = *tp; *s != '\0'; ++s) { in help() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | ldterm.c | 725 tp->t_codeset = tp->t_eucleft = tp->t_eucign = tp->t_scratch_len = 0; in ldtermopen() 739 tp->t_eucp = tp->t_eucp_mp->b_rptr; in ldtermopen() 907 cltimer.tp = tp; in ldtermclose() 1191 tp->t_eucp = tp->t_eucp_mp->b_rptr; in ldtermrput() 1509 tp->t_eucp = tp->t_eucp_mp->b_rptr; in ldtermrsrv() 1612 tp->t_eucp = tp->t_eucp_mp->b_rptr; in ldtermrmsg() 2029 tp->t_eucp = tp->t_eucp_mp->b_rptr; in ldterm_docanon() 2038 tp->t_rocol = tp->t_col; in ldterm_docanon() 3021 tp->t_eucp = tp->t_eucp_mp->b_rptr; in ldterm_msg_upstream() 3643 tp->t_scratch_len = tp->t_eucign; in ldterm_output_msg() [all …]
|
H A D | timod.c | 649 if (!tp) in timodrsrv() 677 tp->tim_flags = (tp->tim_flags & ~CLTS) | COTS; in timodprocessinfo() 679 tp->tim_flags = (tp->tim_flags & ~COTS) | CLTS; in timodprocessinfo() 941 tp->tim_myname, tp->tim_mylen); in timodrproc() 1379 kmem_free(tp->tim_peername, tp->tim_peermaxlen); in timodrproc() 2016 bcopy(p, tp->tim_peername, tp->tim_peerlen); in timodwproc() 2533 for (tp = tim_hash[TIM_HASH(id)]; tp != NULL; tp = tp->tim_next) { in tim_findlink() 2562 if (tp->tim_rtimoutid || tp->tim_rbufcid) in tim_recover() 2565 if (tp->tim_wtimoutid || tp->tim_wbufcid) in tim_recover() 2597 if (tp->tim_wtimoutid || tp->tim_wbufcid) in tim_ioctl_retry() [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | tg3.c | 1563 pci_restore_state(tp->pdev, tp->pci_cfg_state); in tg3_chip_reset() 1631 tg3_stop_fw(tp); in tg3_halt() 3008 if (tp->hw_status->idx[0].rx_producer != tp->rx_rcb_ptr) { in tg3_poll() 3011 desc = &tp->rx_rcb[tp->rx_rcb_ptr]; in tg3_poll() 3026 tp->rx_std_ptr = (tp->rx_std_ptr + 1) % TG3_RX_RING_SIZE; in tg3_poll() 3068 struct tg3 *tp; in tg3_transmit() local 3073 tp = &tg3; in tg3_transmit() 3082 tg3_halt(tp); in tg3_transmit() 3131 tg3_halt(tp); in tg3_disable() 3166 memset(tp, 0, sizeof(*tp)); in tg3_probe() [all …]
|
H A D | tulip.c | 965 if (tp->mii_cnt || (tp->mtable && tp->mtable->has_mii)) { in tulip_reset() 1153 tp->cur_rx = (++tp->cur_rx) % RX_RING_SIZE; in tulip_poll() 1254 tp->vendor_id, tp->dev_id); in tulip_probe() 1272 tp->vendor_id, tp->dev_id); in tulip_probe() 1303 printf("%s: Vendor=%hX Device=%hX", tp->nic_name, tp->vendor_id, tp->dev_id); in tulip_probe() 1553 tp->nway = tp->mediasense = 1; in nway_start() 1554 tp->nwayset = tp->lpar = 0; in nway_start() 1587 tp->saved_if_port = tp->if_port; in init_media() 1589 tp->if_port = tp->default_port; in init_media() 1861 tp->nic_name, tp->mii_advertise, tp->phys[phy_num]); in select_media() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/ |
H A D | base64.c | 82 tp = tmp; in base64encode() 100 tp = tmp; in base64encode() 114 tp = tmp; in base64encode() 127 *tn = tp; in base64encode() 129 tp = tmp; in base64encode() 144 if (tp > (unsigned char*)tb && *(tp - 1) == '\n') in base64encode() 145 tp--; in base64encode() 147 *tp = 0; in base64encode() 150 *tn = tp; in base64encode() 179 for (tp = (unsigned char*)alp; c = *tp; tp++) in base64decode() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | alarm.c | 60 if(!tp || item->milli < tp->milli) in time_add() 67 while(tp->next && item->milli > tp->next->milli) in time_add() 68 tp = tp->next; in time_add() 73 tp->timeout = (void*)sh_timeradd(tp->milli,tp->flags&R_FLAG,trap_timeout,(void*)tp); in time_add() 87 while(tp && tp->next != item) in time_delete() 88 tp = tp->next; in time_delete() 89 if(tp) in time_delete() 100 while(tp) in print_alarms() 113 tp = tp->next; in print_alarms() 137 for(tp=tptop;tp;tp=tpnext) in sh_timetraps() [all …]
|
/illumos-gate/usr/src/uts/common/pcmcia/cis/ |
H A D | cis_handlers.c | 301 RESET_TP(tp); in cistpl_vers_1_handler() 367 RESET_TP(tp); in cistpl_config_handler() 464 RESET_TP(tp); in cistpl_device_handler() 555 RESET_TP(tp); 1239 RESET_TP(tp); 1289 RESET_TP(tp); 1328 RESET_TP(tp); 1385 RESET_TP(tp); 1419 RESET_TP(tp); 1453 RESET_TP(tp); [all …]
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | acctmerg.c | 149 for (tp = tb; tp <= &tb[nfile]; tp++) { in getleast() 157 least = tp; in getleast() 210 fwrite(tp, sizeof(*tp), 1, stdout); in output() 221 tp = &tb[i]; in getnext() 230 &tp->ta_cpu[0], &tp->ta_cpu[1], in getnext() 231 &tp->ta_kcore[0], &tp->ta_kcore[1], in getnext() 232 &tp->ta_con[0], &tp->ta_con[1], in getnext() 240 if (fread(tp, sizeof(*tp), 1, fl[i]) == 1) in getnext() 258 tp->ta_cpu[0], tp->ta_cpu[1], in prtacct() 259 tp->ta_kcore[0], tp->ta_kcore[1], in prtacct() [all …]
|
/illumos-gate/usr/src/uts/common/cpr/ |
H A D | cpr_uthread.c | 147 aston(tp); in cpr_stop_user() 149 if (ISWAKEABLE(tp) || ISWAITING(tp)) { in cpr_stop_user() 156 if (tp->t_state == TS_ONPROC && tp->t_cpu != CPU) in cpr_stop_user() 161 } while ((tp = tp->t_next) != curthread); in cpr_stop_user() 196 ttoproc(tp)->p_user.u_psargs, (void *)tp, in cpr_check_user_threads() 203 "sched=%x\n", (void *)tp, tp->t_state, in cpr_check_user_threads() 204 tp->t_proc_flag, tp->t_schedflag); in cpr_check_user_threads() 206 (void *)ttoproc(tp), ttoproc(tp)->p_stat, in cpr_check_user_threads() 212 } while ((tp = tp->t_next) != curthread && rc == 0); in cpr_check_user_threads() 256 } while ((tp = tp->t_next) != curthread); in cpr_start_user_threads() [all …]
|
/illumos-gate/usr/src/lib/watchmalloc/common/ |
H A D | malloc.c | 113 TREE *tp; in smalloc() local 541 PARENT(tp) = LEFT(tp) = RIGHT(tp) = LINKFOR(tp) = NULL; in realfree() 622 *(SELFP(tp)) = tp; in realfree() 785 if (tp != x && tp != y && !in_list(tp, npp)) in LEFT1() 813 if (tp != x && tp != y && !in_list(tp, npp)) in RIGHT1() 847 if (tp != x && tp != y && tp != z && !in_list(tp, npp)) in BULEFT2() 881 if (tp != x && tp != y && tp != z && !in_list(tp, npp)) in BURIGHT2() 909 if (tp != x && tp != y && tp != z && !in_list(tp, npp)) in TDLEFT2() 938 if (tp != x && tp != y && tp != z && !in_list(tp, npp)) 1409 if (tp == NULL || DATA(tp) == Baddr) in protect() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_tree.c | 72 if (tp != NULL) in set_create_error() 84 ttree_t *tp; in topo_tree_create() local 122 return (tp); in topo_tree_create() 130 if (tp == NULL) in topo_tree_destroy() 173 if (topo_file_load(tp->tt_root->tn_enum, tp->tt_root, in topo_tree_enum() 180 if (topo_file_load(tp->tt_root->tn_enum, tp->tt_root, in topo_tree_enum() 182 if (topo_file_load(tp->tt_root->tn_enum, tp->tt_root, in topo_tree_enum() 186 tp->tt_root, NULL, tp->tt_scheme, 0)) < 0) { in topo_tree_enum() 205 ttree_t *tp; in topo_tree_enum_all() local 207 for (tp = topo_list_next(&thp->th_trees); tp != NULL; in topo_tree_enum_all() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | malloc.c | 121 TREE *tp; in _smalloc() local 145 tp = np; in _smalloc() 233 tp = Root; in _malloc_unlocked() 242 tp = LEFT(tp); in _malloc_unlocked() 247 tp = RIGHT(tp); in _malloc_unlocked() 464 tp = np; in realloc() 524 tp = np; in realfree() 528 PARENT(tp) = LEFT(tp) = RIGHT(tp) = LINKFOR(tp) = NULL; in realfree() 531 *(SELFP(tp)) = tp; in realfree() 601 TREE *tp; in _morecore() local [all …]
|
/illumos-gate/usr/src/uts/common/io/sbp2/ |
H A D | sbp2.c | 167 sbp2_cfgrom_free(tp, &tp->t_cfgrom); in sbp2_tgt_init() 174 sbp2_cfgrom_free(tp, &tp->t_cfgrom); in sbp2_tgt_init() 182 sbp2_cfgrom_free(tp, &tp->t_cfgrom); in sbp2_tgt_init() 197 sbp2_cfgrom_free(tp, &tp->t_cfgrom); in sbp2_tgt_fini() 272 for (tp->t_nluns = 0; tp->t_nluns < maxluns; tp->t_nluns++) { in sbp2_tgt_init_luns() 278 lp = &tp->t_lun[tp->t_nluns]; in sbp2_tgt_init_luns() 339 tp->t_mgt_status_fifo_buf.bb_sbp2_priv = tp; in sbp2_tgt_init_bus() 383 SBP2_FREE_BUF(tp, &tp->t_mgt_orb_buf); in sbp2_tgt_fini_bus() 386 SBP2_FREE_BUF(tp, &tp->t_mgt_login_resp_buf); in sbp2_tgt_fini_bus() 389 SBP2_FREE_CMD(tp, tp->t_mgt_cmd); in sbp2_tgt_fini_bus() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | timers.c | 53 now = tp.tv_sec + 1.e-6*tp.tv_usec; in getnow() 111 for(tplast=0,tp=tptop; tp; tp=tpnext) in sigalrm() 138 if((tp=tpold) && tp->incr) in sigalrm() 140 while((tp->wakeup += tp->incr) <= now); in sigalrm() 142 tpmin=tp; in sigalrm() 154 if(tp) in sigalrm() 199 tptop = tp; in sh_timeradd() 202 tpmin = tp; in sh_timeradd() 223 tp=0; in sh_timeradd() 234 if(tp) in timerdel() [all …]
|
/illumos-gate/usr/src/lib/scsi/libses/common/ |
H A D | ses_enclosure.c | 35 if (tp != NULL) in enc_parse_td() 191 if (tp == NULL) in enc_parse_ed() 208 ses_target_t *tp; in ses_open_scsi() local 219 tp->st_target = stp; in ses_open_scsi() 228 ses_close(tp); in ses_open_scsi() 233 ses_close(tp); in ses_open_scsi() 239 return (tp); in ses_open_scsi() 245 ses_target_t *tp; in ses_open() local 270 return (tp); in ses_open() 288 libscsi_close(tp->st_scsi_hdl, tp->st_target); in ses_close() [all …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | tbl_term.c | 189 tp->tbl.arg = tp; in term_tbl() 274 tp->lasttcol = tp->tcol - tp->tcols; in term_tbl() 278 tp->tcol = tp->tcols; in term_tbl() 306 tp->tcol = tp->tcols; in term_tbl() 326 (*tp->advance)(tp, tp->tcols->offset); in term_tbl() 451 (*tp->advance)(tp, tp->tcol->rmargin in term_tbl() 460 if (tp->tcol + 1 == tp->tcols + tp->lasttcol) in term_tbl() 534 (*tp->endline)(tp); in term_tbl() 603 (*tp->advance)(tp, tp->tcols->offset); in tbl_hrule() 709 (*tp->endline)(tp); in tbl_hrule() [all …]
|
/illumos-gate/usr/src/lib/lib9p/common/ |
H A D | threadpool.c | 46 struct l9p_threadpool *tp; in l9p_responder() local 50 tp = worker->ltw_tp; in l9p_responder() 58 &tp->ltp_mtx); in l9p_responder() 88 struct l9p_threadpool *tp; in l9p_worker() local 92 tp = worker->ltw_tp; in l9p_worker() 98 &tp->ltp_mtx); in l9p_worker() 200 STAILQ_INIT(&tp->ltp_workq); in l9p_threadpool_init() 202 LIST_INIT(&tp->ltp_workers); in l9p_threadpool_init() 212 worker->ltw_tp = tp; in l9p_threadpool_init() 304 struct l9p_threadpool *tp; in l9p_threadpool_tflush() local [all …]
|
/illumos-gate/usr/src/lib/libnsl/saf/ |
H A D | doconfig.c | 232 tp = p; in doassign() 234 while (*tp && !isspace(*tp)) in doassign() 235 tp++; in doassign() 244 if (*tp) in doassign() 282 tp = p; in dopush() 283 while (*tp && !isspace(*tp) && (*tp != ',')) in dopush() 284 tp++; in dopush() 388 for (tp = p; *tp && !isspace(*tp); ++tp) in dorun() 402 tp = eatwhite(tp); in dorun() 410 tp = eatwhite(tp); in dorun() [all …]
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | disp.c | 1223 if (tp->t_bound_cpu || tp->t_weakbound_cpu) in setbackdq() 1247 !smt_should_run(tp, tp->t_cpu) || in setbackdq() 1303 tp->t_weakbound_cpu : tp->t_bound_cpu; in setbackdq() 1405 if (tp->t_bound_cpu || tp->t_weakbound_cpu) in setfrontdq() 1442 tp, tp->t_pri); in setfrontdq() 1587 cp = disp_lowpri_cpu(cp, tp, tp->t_pri); in setkpdq() 2059 if (tp == NULL || tp == T_DONTSTEAL) in disp_getwork() 2124 while (tp && (tp->t_bound_cpu || tp->t_weakbound_cpu)) { in disp_fix_unbound_pri() 2125 tp = tp->t_link; in disp_fix_unbound_pri() 2213 for (tp = dq->dq_first; tp != NULL; tp = tp->t_link) { in disp_getbest() [all …]
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_thread.c | 39 tp->thr_mod = mp; in fmd_thread_xcreate() 40 tp->thr_tid = tid; in fmd_thread_xcreate() 42 tp->thr_arg = NULL; in fmd_thread_xcreate() 46 tp->thr_isdoor = 0; in fmd_thread_xcreate() 52 return (tp); in fmd_thread_xcreate() 68 tp->thr_func(tp->thr_arg); in fmd_thread_start() 80 tp->thr_mod = mp; in fmd_thread_create_cmn() 82 tp->thr_arg = arg; in fmd_thread_create_cmn() 94 err = pthread_create(&tp->thr_tid, NULL, fmd_thread_start, tp); in fmd_thread_create_cmn() 106 return (tp); in fmd_thread_create_cmn() [all …]
|
H A D | fmd_timerq.c | 80 tp->tmr_id = id; in fmd_timerq_install() 124 fmd_timer_t *tp; in fmd_timerq_remove() local 128 ASSERT(tp == NULL || tp->tmr_ids == ids); in fmd_timerq_remove() 130 if (tp == NULL) { in fmd_timerq_remove() 139 tp->tmr_id = 0; in fmd_timerq_remove() 179 fmd_timer_t *tp; in fmd_timerq_exec() local 210 tp->tmr_id = -tp->tmr_id; in fmd_timerq_exec() 215 tp->tmr_ids->ids_name, -tp->tmr_id, tp->tmr_hrt)); in fmd_timerq_exec() 217 tp->tmr_func(tp->tmr_arg, -tp->tmr_id, tp->tmr_hrt); in fmd_timerq_exec() 220 tp->tmr_ids->ids_name, -tp->tmr_id)); in fmd_timerq_exec() [all …]
|
/illumos-gate/usr/src/uts/common/pcmcia/sys/ |
H A D | cis.h | 329 #define GET_CM_LEN(tp) ((size_t)(tp)->len - \ argument 339 #define GET_AM_LEN(tp) ((size_t)(tp)->len - (((uintptr_t)(tp)->read.byte - \ argument 343 #define RESET_TP(tp) (tp)->read.byte = (tp)->data argument 344 #define LOOK_BYTE(tp) *(tp)->read.byte argument 345 #define GET_BYTE_ADDR(tp) (tp)->read.byte argument 348 GET_AM_BYTE(tp) : GET_CM_BYTE(tp)) 349 #define GET_SHORT(tp) cis_get_short(tp) argument 350 #define GET_BE_SHORT(tp) cis_get_be_short(tp) argument 351 #define GET_INT24(tp) cis_get_int24(tp) argument 352 #define GET_LONG(tp) cis_get_long(tp) argument [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | sleepq.c | 100 ASSERT(*tpp == tp); in sleepq_unlink() 104 *tpp = tp->t_link; in sleepq_unlink() 110 if (tp->t_priforw != tp) { in sleepq_unlink() 111 tp->t_priback->t_priforw = tp->t_priforw; in sleepq_unlink() 112 tp->t_priforw->t_priback = tp->t_priback; in sleepq_unlink() 116 tp->t_link = NULL; in sleepq_unlink() 220 kthread_t *tp; in sleepq_wakeone_chan() local 239 CL_WAKEUP(tp); in sleepq_wakeone_chan() 241 return (tp); in sleepq_wakeone_chan() 251 kthread_t *tp; in sleepq_wakeall_chan() local [all …]
|
/illumos-gate/usr/src/uts/common/fs/tmpfs/ |
H A D | tmp_tnode.c | 62 struct tmpnode *tp, in tmp_resv() argument 96 tp, delta); in tmp_resv() 110 struct tmpnode *tp, in tmp_unresv() argument 147 tp->tn_asize = tp->tn_anon->size; in tmpnode_growmap() 151 tp->tn_asize = anon_grow(tp->tn_anon, NULL, tp->tn_asize, in tmpnode_growmap() 230 struct tmpnode *tp, in tmpnode_trunc() argument 321 anon_release(tp->tn_anon, tp->tn_asize); in tmpnode_trunc() 323 tp->tn_asize = 0; in tmpnode_trunc() 342 tdirtrunc(tp); in tmpnode_trunc() 351 tp->tn_mtime = now; in tmpnode_trunc() [all …]
|