Home
last modified time | relevance | path

Searched refs:tp (Results 1 – 25 of 569) sorted by relevance

12345678910>>...23

/illumos-gate/usr/src/tools/cscope-fast/
H A Dhelp.c47 char **ep, *s, **tp, *text[MAXHELP]; in help() local
50 tp = text; in help()
78 *tp++ = "+\tDisplay next lines.\n"; in help()
80 *tp++ = "^E\tEdit all lines.\n"; in help()
98 *tp++ = "^L\tRedraw the screen.\n"; in help()
100 *tp++ = "^D\tExit cscope.\n"; in help()
118 *tp++ = "+\tDisplay next lines.\n"; in help()
129 ep = tp; in help()
131 for (tp = text; tp < ep; ) { in help()
133 for (s = *tp; *s != '\0'; ++s) { in help()
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Dldterm.c725 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 Dtimod.c649 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 Dtg3.c1563 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 Dtulip.c965 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 Dbase64.c82 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 Dalarm.c60 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 Dcis_handlers.c301 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 …]
H A Dcis.c455 if (tp) in cis_list_lcreate()
528 tp->data = GET_CIS_ADDR(tp); in cis_list_lcreate()
749 #define GET_NEXT_LTUPLE(tp) ((tp->next)?tp->next:NULL) argument
750 #define GET_PREV_LTUPLE(tp) ((tp->prev)?tp->prev:NULL) argument
756 if (!tp) in cis_get_ltuple()
763 } while ((tp = GET_PREV_LTUPLE(tp)) != NULL); in cis_get_ltuple()
772 } while ((tp = GET_NEXT_LTUPLE(tp)) != NULL); in cis_get_ltuple()
784 } while ((tp = GET_NEXT_LTUPLE(tp)) != NULL); in cis_get_ltuple()
793 } while ((tp = GET_PREV_LTUPLE(tp)) != NULL); in cis_get_ltuple()
796 while ((tp = GET_NEXT_LTUPLE(tp)) != NULL) { in cis_get_ltuple()
[all …]
/illumos-gate/usr/src/cmd/acct/
H A Dacctmerg.c150 for (tp = tb; tp <= &tb[nfile]; tp++) { in getleast()
158 least = tp; in getleast()
211 fwrite(tp, sizeof(*tp), 1, stdout); in output()
222 tp = &tb[i]; in getnext()
231 &tp->ta_cpu[0], &tp->ta_cpu[1], in getnext()
232 &tp->ta_kcore[0], &tp->ta_kcore[1], in getnext()
233 &tp->ta_con[0], &tp->ta_con[1], in getnext()
241 if (fread(tp, sizeof(*tp), 1, fl[i]) == 1) in getnext()
259 tp->ta_cpu[0], tp->ta_cpu[1], in prtacct()
260 tp->ta_kcore[0], tp->ta_kcore[1], in prtacct()
[all …]
/illumos-gate/usr/src/uts/common/cpr/
H A Dcpr_uthread.c149 aston(tp); in cpr_stop_user()
151 if (ISWAKEABLE(tp) || ISWAITING(tp)) { in cpr_stop_user()
158 if (tp->t_state == TS_ONPROC && tp->t_cpu != CPU) in cpr_stop_user()
163 } while ((tp = tp->t_next) != curthread); in cpr_stop_user()
198 ttoproc(tp)->p_user.u_psargs, (void *)tp, in cpr_check_user_threads()
205 "sched=%x\n", (void *)tp, tp->t_state, in cpr_check_user_threads()
206 tp->t_proc_flag, tp->t_schedflag); in cpr_check_user_threads()
208 (void *)ttoproc(tp), ttoproc(tp)->p_stat, in cpr_check_user_threads()
214 } while ((tp = tp->t_next) != curthread && rc == 0); in cpr_check_user_threads()
258 } while ((tp = tp->t_next) != curthread); in cpr_start_user_threads()
[all …]
/illumos-gate/usr/src/lib/watchmalloc/common/
H A Dmalloc.c115 TREE *tp; in smalloc() local
543 PARENT(tp) = LEFT(tp) = RIGHT(tp) = LINKFOR(tp) = NULL; in realfree()
624 *(SELFP(tp)) = tp; in realfree()
787 if (tp != x && tp != y && !in_list(tp, npp)) in LEFT1()
815 if (tp != x && tp != y && !in_list(tp, npp)) in RIGHT1()
849 if (tp != x && tp != y && tp != z && !in_list(tp, npp)) in BULEFT2()
883 if (tp != x && tp != y && tp != z && !in_list(tp, npp)) in BURIGHT2()
911 if (tp != x && tp != y && tp != z && !in_list(tp, npp)) in TDLEFT2()
940 if (tp != x && tp != y && tp != z && !in_list(tp, npp))
1411 if (tp == NULL || DATA(tp) == Baddr) in protect()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmalloc.c123 TREE *tp; in _smalloc() local
147 tp = np; in _smalloc()
235 tp = Root; in _malloc_unlocked()
244 tp = LEFT(tp); in _malloc_unlocked()
249 tp = RIGHT(tp); in _malloc_unlocked()
466 tp = np; in realloc()
526 tp = np; in realfree()
530 PARENT(tp) = LEFT(tp) = RIGHT(tp) = LINKFOR(tp) = NULL; in realfree()
533 *(SELFP(tp)) = tp; in realfree()
603 TREE *tp; in _morecore() local
[all …]
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_tree.c72 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()
174 if (topo_file_load(tp->tt_root->tn_enum, tp->tt_root, in topo_tree_enum()
181 if (topo_file_load(tp->tt_root->tn_enum, tp->tt_root, in topo_tree_enum()
183 if (topo_file_load(tp->tt_root->tn_enum, tp->tt_root, in topo_tree_enum()
187 tp->tt_root, NULL, tp->tt_scheme, 0)) < 0) { in topo_tree_enum()
206 ttree_t *tp; in topo_tree_enum_all() local
208 for (tp = topo_list_next(&thp->th_trees); tp != NULL; in topo_tree_enum_all()
[all …]
/illumos-gate/usr/src/uts/common/io/sbp2/
H A Dsbp2.c167 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 Dtimers.c53 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 Dses_enclosure.c35 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 Dtbl_term.c188 tp->tbl.arg = tp; in term_tbl()
284 tp->lasttcol = tp->tcol - tp->tcols; in term_tbl()
288 tp->tcol = tp->tcols; in term_tbl()
316 tp->tcol = tp->tcols; in term_tbl()
336 (*tp->advance)(tp, tp->tcols->offset); in term_tbl()
462 (*tp->advance)(tp, tp->tcol->rmargin in term_tbl()
471 if (tp->tcol + 1 == tp->tcols + tp->lasttcol) in term_tbl()
545 (*tp->endline)(tp); in term_tbl()
612 (*tp->advance)(tp, tp->tcols->offset); in tbl_hrule()
708 (*tp->endline)(tp); in tbl_hrule()
[all …]
/illumos-gate/usr/src/lib/libnsl/saf/
H A Ddoconfig.c234 tp = p; in doassign()
236 while (*tp && !isspace(*tp)) in doassign()
237 tp++; in doassign()
246 if (*tp) in doassign()
284 tp = p; in dopush()
285 while (*tp && !isspace(*tp) && (*tp != ',')) in dopush()
286 tp++; in dopush()
390 for (tp = p; *tp && !isspace(*tp); ++tp) in dorun()
404 tp = eatwhite(tp); in dorun()
412 tp = eatwhite(tp); in dorun()
[all …]
/illumos-gate/usr/src/uts/common/disp/
H A Ddisp.c1224 if (tp->t_bound_cpu || tp->t_weakbound_cpu) in setbackdq()
1248 !smt_should_run(tp, tp->t_cpu) || in setbackdq()
1304 tp->t_weakbound_cpu : tp->t_bound_cpu; in setbackdq()
1412 if (tp->t_bound_cpu || tp->t_weakbound_cpu) in setfrontdq()
1449 tp, tp->t_pri); in setfrontdq()
1600 cp = disp_lowpri_cpu(cp, tp, tp->t_pri); in setkpdq()
2078 if (tp == NULL || tp == T_DONTSTEAL) in disp_getwork()
2143 while (tp && (tp->t_bound_cpu || tp->t_weakbound_cpu)) { in disp_fix_unbound_pri()
2144 tp = tp->t_link; in disp_fix_unbound_pri()
2232 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 Dfmd_thread.c39 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 Dfmd_timerq.c82 tp->tmr_id = id; in fmd_timerq_install()
126 fmd_timer_t *tp; in fmd_timerq_remove() local
130 ASSERT(tp == NULL || tp->tmr_ids == ids); in fmd_timerq_remove()
132 if (tp == NULL) { in fmd_timerq_remove()
141 tp->tmr_id = 0; in fmd_timerq_remove()
181 fmd_timer_t *tp; in fmd_timerq_exec() local
212 tp->tmr_id = -tp->tmr_id; in fmd_timerq_exec()
217 tp->tmr_ids->ids_name, -tp->tmr_id, tp->tmr_hrt)); in fmd_timerq_exec()
219 tp->tmr_func(tp->tmr_arg, -tp->tmr_id, tp->tmr_hrt); in fmd_timerq_exec()
222 tp->tmr_ids->ids_name, -tp->tmr_id)); in fmd_timerq_exec()
[all …]
/illumos-gate/usr/src/uts/common/pcmcia/sys/
H A Dcis.h329 #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 Dsleepq.c100 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 Dtmp_tnode.c62 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 …]

12345678910>>...23