Home
last modified time | relevance | path

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

12345678910>>...22

/dragonfly/sys/netinet/
HDtcp_timer.c204 tcp_canceltimers(struct tcpcb *tp) in tcp_canceltimers() argument
206 tcp_callout_stop(tp, tp->tt_2msl); in tcp_canceltimers()
207 tcp_callout_stop(tp, tp->tt_persist); in tcp_canceltimers()
208 tcp_callout_stop(tp, tp->tt_keep); in tcp_canceltimers()
209 tcp_callout_stop(tp, tp->tt_rexmt); in tcp_canceltimers()
216 tcp_send_timermsg(struct tcpcb *tp, uint32_t task) in tcp_send_timermsg() argument
218 struct netmsg_tcp_timer *tmsg = tp->tt_msg; in tcp_send_timermsg()
241 tcp_timer_delack_handler(struct tcpcb *tp) in tcp_timer_delack_handler() argument
243 tp->t_flags |= TF_ACKNOW; in tcp_timer_delack_handler()
245 tcp_output(tp); in tcp_timer_delack_handler()
[all …]
HDtcp_input.c278 #define ND6_HINT(tp) \ argument
280 if ((tp) && (tp)->t_inpcb && \
281 INP_ISIPV6((tp)->t_inpcb) && \
282 (tp)->t_inpcb->in6p_route.ro_rt) \
283 nd6_nud_hint((tp)->t_inpcb->in6p_route.ro_rt, NULL, 0); \
286 #define ND6_HINT(tp) argument
296 #define DELAY_ACK(tp) \ argument
297 (tcp_delack_enabled && !tcp_callout_pending(tp, tp->tt_delack) && \
298 !(tp->t_flags & TF_RXWIN0SENT))
300 #define acceptable_window_update(tp, th, tiwin) \ argument
[all …]
HDtcp_output.c166 static int tcp_tso_getsize(struct tcpcb *tp, u_int *segsz, u_int *hlen);
167 static void tcp_output_sched(struct tcpcb *tp);
173 tcp_output(struct tcpcb *tp) in tcp_output() argument
175 struct inpcb * const inp = tp->t_inpcb; in tcp_output()
218 if (tp->snd_max == tp->snd_una && in tcp_output()
219 (ticks - tp->snd_last) >= tp->t_rxtcur && tcp_idle_restart) in tcp_output()
226 idle = (tp->t_flags & TF_LASTIDLE) || (tp->snd_max == tp->snd_una); in tcp_output()
227 if (idle && (tp->t_flags & TF_MORETOCOME)) in tcp_output()
228 tp->t_flags |= TF_LASTIDLE; in tcp_output()
230 tp->t_flags &= ~TF_LASTIDLE; in tcp_output()
[all …]
HDtcp_sack.c85 tcp_sack_tcpcb_init(struct tcpcb *tp) in tcp_sack_tcpcb_init() argument
87 struct scoreboard *scb = &tp->scb; in tcp_sack_tcpcb_init()
247 tcp_sack_ack_blocks(struct tcpcb *tp, tcp_seq th_ack) in tcp_sack_ack_blocks() argument
249 struct scoreboard *scb = &tp->scb; in tcp_sack_ack_blocks()
267 tcp_sack_discard(tp); in tcp_sack_ack_blocks()
293 tcp_sack_discard(struct tcpcb *tp) in tcp_sack_discard() argument
295 tcp_sack_cleanup(&tp->scb); in tcp_sack_discard()
296 tp->rexmt_high = tp->snd_una; in tcp_sack_discard()
297 tp->sack_flags &= ~TSACK_F_SACKRESCUED; in tcp_sack_discard()
298 tp->scb.lostseq = tp->snd_una; in tcp_sack_discard()
[all …]
HDtcp_usrreq.c141 static int tcp6_connect_oncpu(struct tcpcb *tp, int flags,
153 #define TCPDEBUG1() ostate = tp ? tp->t_state : 0
154 #define TCPDEBUG2(req) if (tp && (so->so_options & SO_DEBUG)) \
155 tcp_trace(TA_USER, ostate, tp, 0, 0, req)
206 struct tcpcb *tp = NULL; in tcp_usr_attach() local
219 tp = sototcpcb(so); in tcp_usr_attach()
238 struct tcpcb *tp; in tcp_usr_detach() local
249 tp = intotcpcb(inp); in tcp_usr_detach()
250 KASSERT(tp != NULL, ("tcp_usr_detach: tp is NULL")); in tcp_usr_detach()
252 tp = tcp_disconnect(tp); in tcp_usr_detach()
[all …]
/dragonfly/contrib/gdb-7/gdb/
HDthread.c71 struct thread_info *tp = find_thread_ptid (inferior_ptid); in inferior_thread() local
72 gdb_assert (tp); in inferior_thread()
73 return tp; in inferior_thread()
77 delete_step_resume_breakpoint (struct thread_info *tp) in delete_step_resume_breakpoint() argument
79 if (tp && tp->control.step_resume_breakpoint) in delete_step_resume_breakpoint()
81 delete_breakpoint (tp->control.step_resume_breakpoint); in delete_step_resume_breakpoint()
82 tp->control.step_resume_breakpoint = NULL; in delete_step_resume_breakpoint()
87 delete_exception_resume_breakpoint (struct thread_info *tp) in delete_exception_resume_breakpoint() argument
89 if (tp && tp->control.exception_resume_breakpoint) in delete_exception_resume_breakpoint()
91 delete_breakpoint (tp->control.exception_resume_breakpoint); in delete_exception_resume_breakpoint()
[all …]
/dragonfly/sys/kern/
HDtty.c108 static int ttnread (struct tty *tp);
109 static void ttyecho (int c, struct tty *tp);
110 static int ttyoutput (int c, struct tty *tp);
111 static void ttypend (struct tty *tp);
112 static void ttyretype (struct tty *tp);
113 static void ttyrub (int c, struct tty *tp);
114 static void ttyrubo (struct tty *tp, int cnt);
115 static void ttyunblock (struct tty *tp);
116 static int ttywflush (struct tty *tp);
220 ttyopen(cdev_t device, struct tty *tp) in ttyopen() argument
[all …]
HDtty_pty.c65 static void ptsstart (struct tty *tp);
66 static void ptsstop (struct tty *tp, int rw);
67 static void ptsunhold (struct tty *tp);
68 static void ptcwakeup (struct tty *tp, int flag);
355 struct tty *tp; in ptsopen() local
374 tp = dev->si_tty; in ptsopen()
380 if ((tp->t_state & TS_ISOPEN) == 0) { in ptsopen()
381 ttychars(tp); /* Set up default chars */ in ptsopen()
382 tp->t_iflag = TTYDEF_IFLAG; in ptsopen()
383 tp->t_oflag = TTYDEF_OFLAG; in ptsopen()
[all …]
/dragonfly/contrib/nvi2/vi/
HDv_txt.c224 #define UPDATE_POSITION(sp, tp) { \ argument
225 (sp)->lno = (tp)->lno; \
226 (sp)->cno = (tp)->cno; \
251 TEXT *ntp, *tp; /* Input text structures. */ in v_txt() local
293 tp = TAILQ_FIRST(tiqh); in v_txt()
294 if (TAILQ_NEXT(tp, q) != NULL || in v_txt()
295 tp->lb_len < (len + 32) * sizeof(CHAR_T)) { in v_txt()
299 tp->ai = tp->insert = tp->offset = tp->owrite = 0; in v_txt()
301 tp->len = len; in v_txt()
302 BINC_RETW(sp, tp->lb, tp->lb_len, len); in v_txt()
[all …]
/dragonfly/contrib/nvi2/ex/
HDex_txt.c57 TEXT ait, *ntp, *tp; in ex_txt() local
71 tp = TAILQ_FIRST(tiqh); in ex_txt()
72 if (TAILQ_NEXT(tp, q) != NULL || tp->lb_len < 32) { in ex_txt()
76 tp->len = 0; in ex_txt()
78 newtp: if ((tp = text_init(sp, NULL, 0, 32)) == NULL) in ex_txt()
80 TAILQ_INSERT_HEAD(tiqh, tp, q); in ex_txt()
84 tp->lno = sp->lno + 1; in ex_txt()
104 if (v_txt_auto(sp, sp->lno, NULL, 0, tp)) in ex_txt()
107 txt_prompt(sp, tp, prompt, flags); in ex_txt()
144 BINC_GOTOW(sp, tp->lb, tp->lb_len, tp->len + 1); in ex_txt()
[all …]
/dragonfly/contrib/gmp/mpq/
HDset_d.c39 mp_limb_t tp[LIMBS_PER_DOUBLE]; in mpq_set_d() local
51 exp = __gmp_extract_double (tp, d); in mpq_set_d()
56 if (exp <= 1 || (exp == 2 && (tp[0] | tp[1]) != 0)) in mpq_set_d()
59 if (exp <= 1 || (exp == 2 && tp[0] != 0)) in mpq_set_d()
77 if ((tp[0] | tp[1] | tp[2]) == 0) in mpq_set_d()
78 np[0] = tp[3], nn = 1; in mpq_set_d()
79 else if ((tp[0] | tp[1]) == 0) in mpq_set_d()
80 np[1] = tp[3], np[0] = tp[2], nn = 2; in mpq_set_d()
81 else if (tp[0] == 0) in mpq_set_d()
82 np[2] = tp[3], np[1] = tp[2], np[0] = tp[1], nn = 3; in mpq_set_d()
[all …]
/dragonfly/contrib/tcpdump/
HDaddrtoname.c440 struct enamemem *tp; in lookup_emem() local
446 tp = &enametable[(i ^ j) & (HASHNAMESIZE-1)]; in lookup_emem()
447 while (tp->e_nxt) in lookup_emem()
448 if (tp->e_addr0 == i && in lookup_emem()
449 tp->e_addr1 == j && in lookup_emem()
450 tp->e_addr2 == k) in lookup_emem()
451 return tp; in lookup_emem()
453 tp = tp->e_nxt; in lookup_emem()
454 tp->e_addr0 = (u_short)i; in lookup_emem()
455 tp->e_addr1 = (u_short)j; in lookup_emem()
[all …]
HDprint-dhcp6.c279 const u_char *tp; in dhcp6opt_print() local
315 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
316 switch (GET_BE_U_2(tp)) { in dhcp6opt_print()
320 GET_BE_U_2(tp + 2), in dhcp6opt_print()
321 GET_BE_U_4(tp + 4)); in dhcp6opt_print()
324 GET_U_1(tp + i)); in dhcp6opt_print()
337 GET_U_1(tp + i)); in dhcp6opt_print()
348 GET_BE_U_2(tp + 2)); in dhcp6opt_print()
351 GET_U_1(tp + i)); in dhcp6opt_print()
360 ND_PRINT(" type %u)", GET_BE_U_2(tp)); in dhcp6opt_print()
[all …]
/dragonfly/contrib/mdocml/
HDtbl_term.c162 term_tbl(struct termp *tp, const struct tbl_span *sp) in term_tbl() argument
174 tp->flags |= TERMP_NOSPACE | TERMP_NONOSPACE; in term_tbl()
175 save_offset = tp->tcol->offset; in term_tbl()
182 if (tp->tbl.cols == NULL) { in term_tbl()
183 borders_locale = tp->enc == TERMENC_UTF8 ? in term_tbl()
186 tp->tbl.len = term_tbl_len; in term_tbl()
187 tp->tbl.slen = term_tbl_strlen; in term_tbl()
188 tp->tbl.sulen = term_tbl_sulen; in term_tbl()
189 tp->tbl.arg = tp; in term_tbl()
191 tblcalc(&tp->tbl, sp, tp->tcol->offset, tp->tcol->rmargin); in term_tbl()
[all …]
/dragonfly/sys/dev/misc/nmdm/
HDnmdm.c53 static void nmdmstart (struct tty *tp);
54 static void nmdmstop (struct tty *tp, int rw);
55 static void wakeup_other (struct tty *tp, int flag);
98 #define GETPARTS(tp, ourpart, otherpart) \ argument
100 struct nm_softc *pti = tp->t_dev->si_drv1; \
101 if (tp == &pti->part1.nm_tty) { \
152 struct tty *tp, *tp2; in nmdmopen() local
188 tp = &pti->part2.nm_tty; in nmdmopen()
190 tp = &pti->part1.nm_tty; in nmdmopen()
191 lwkt_gettoken(&tp->t_token); in nmdmopen()
[all …]
/dragonfly/sys/platform/vkernel64/platform/
HDconsole.c64 static int vcons_tty_param(struct tty *tp, struct termios *tio);
65 static void vcons_tty_start(struct tty *tp);
86 struct tty *tp; in vcons_open() local
89 tp = ttymalloc(&dev->si_tty); in vcons_open()
90 lwkt_gettoken(&tp->t_token); in vcons_open()
94 if ((tp->t_state & TS_ISOPEN) == 0) { in vcons_open()
95 tp->t_oproc = vcons_tty_start; in vcons_open()
96 tp->t_param = vcons_tty_param; in vcons_open()
97 tp->t_stop = nottystop; in vcons_open()
98 tp->t_dev = dev; in vcons_open()
[all …]
/dragonfly/sys/netgraph7/tty/
HDng_tty.c87 struct tty *tp; /* Terminal device */ member
103 static int ngt_open(struct cdev *dev, struct tty *tp);
104 static int ngt_close(struct tty *tp, int flag);
105 static int ngt_read(struct tty *tp, struct uio *uio, int flag);
106 static int ngt_write(struct tty *tp, struct uio *uio, int flag);
107 static int ngt_tioctl(struct tty *tp,
109 static int ngt_input(int c, struct tty *tp);
110 static int ngt_start(struct tty *tp);
181 ngt_open(struct cdev *dev, struct tty *tp) in ngt_open() argument
195 lwkt_gettoken(&tp->t_token); in ngt_open()
[all …]
/dragonfly/sys/sys/
HDtty.h216 #define isctty(p, tp) \ argument
217 ((p)->p_session == (tp)->t_session && ((p)->p_flags & P_CONTROLT))
220 #define isbackground(p, tp) \ argument
221 (isctty((p), (tp)) && (p)->p_pgrp != (tp)->t_pgrp)
224 #define TSA_CARR_ON(tp) ((void *)&(tp)->t_rawq) argument
225 #define TSA_HUP_OR_INPUT(tp) ((void *)&(tp)->t_rawq.c_cchead) argument
226 #define TSA_OCOMPLETE(tp) ((void *)&(tp)->t_outq.c_ccmax) argument
227 #define TSA_OLOWAT(tp) ((void *)&(tp)->t_outq) argument
228 #define TSA_PTC_READ(tp) ((void *)&(tp)->t_outq.c_cchead) argument
229 #define TSA_PTC_WRITE(tp) ((void *)&(tp)->t_rawq.c_ccmax) argument
[all …]
/dragonfly/contrib/ncurses/include/
HDterm_entry.h57 #define NUM_BOOLEANS(tp) (tp)->num_Booleans argument
58 #define NUM_NUMBERS(tp) (tp)->num_Numbers argument
59 #define NUM_STRINGS(tp) (tp)->num_Strings argument
60 #define EXT_NAMES(tp,i,limit,index,table) (i >= limit) ? tp->ext_Names[index] : table[i] argument
62 #define NUM_BOOLEANS(tp) BOOLCOUNT
63 #define NUM_NUMBERS(tp) NUMCOUNT
64 #define NUM_STRINGS(tp) STRCOUNT
65 #define EXT_NAMES(tp,i,limit,index,table) table[i]
68 #define NUM_EXT_NAMES(tp) (unsigned) ((tp)->ext_Booleans + (tp)->ext_Numbers + (tp)->ext_Strings) argument
70 #define for_each_boolean(n,tp) for(n = 0; n < NUM_BOOLEANS(tp); n++) argument
[all …]
/dragonfly/sys/netgraph/tty/
HDng_tty.c86 struct tty *tp; /* Terminal device */ member
120 static int ngt_open(cdev_t dev, struct tty *tp);
121 static int ngt_close(struct tty *tp, int flag);
122 static int ngt_read(struct tty *tp, struct uio *uio, int flag);
123 static int ngt_write(struct tty *tp, struct uio *uio, int flag);
124 static int ngt_tioctl(struct tty *tp,
126 static int ngt_input(int c, struct tty *tp);
127 static int ngt_start(struct tty *tp);
187 ngt_open(cdev_t dev, struct tty *tp) in ngt_open() argument
196 lwkt_gettoken(&tp->t_token); in ngt_open()
[all …]
/dragonfly/usr.sbin/config/
HDmkmakefile.c226 struct file_list *tp, *pf; in read_files() local
299 tp = NULL; in read_files()
300 if (first == 3 && pf == NULL && (tp = fltail_lookup(this)) != NULL) { in read_files()
301 if (tp->f_type != INVISIBLE || tp->f_flags) in read_files()
303 fname, this, tp->f_fn); in read_files()
307 fname, this, tp->f_fn); in read_files()
467 if (tp == NULL) in read_files()
468 tp = new_fent(); in read_files()
469 tp->f_fn = this; in read_files()
470 tp->f_type = INVISIBLE; in read_files()
[all …]
/dragonfly/sys/dev/misc/dcons/
HDdcons_os.c212 struct tty *tp; in dcons_open() local
219 tp = ttymalloc(&dev->si_tty); in dcons_open()
220 lwkt_gettoken(&tp->t_token); in dcons_open()
221 tp->t_oproc = dcons_tty_start; in dcons_open()
222 tp->t_param = dcons_tty_param; in dcons_open()
223 tp->t_stop = nottystop; in dcons_open()
224 tp->t_dev = dev; in dcons_open()
228 if ((tp->t_state & TS_ISOPEN) == 0) { in dcons_open()
229 tp->t_state |= TS_CARR_ON; in dcons_open()
230 ttychars(tp); in dcons_open()
[all …]
/dragonfly/contrib/ncurses/ncurses/trace/
HDtrace_xnames.c42 _nc_trace_xnames(TERMTYPE *tp GCC_UNUSED) in NCURSES_EXPORT()
46 int limit = tp->ext_Booleans + tp->ext_Numbers + tp->ext_Strings; in NCURSES_EXPORT()
50 int begin_num = tp->ext_Booleans; in NCURSES_EXPORT()
51 int begin_str = tp->ext_Booleans + tp->ext_Numbers; in NCURSES_EXPORT()
54 tp->term_names, in NCURSES_EXPORT()
56 tp->ext_Booleans, tp->ext_Numbers, tp->ext_Strings, in NCURSES_EXPORT()
57 tp->num_Booleans, tp->num_Numbers, tp->num_Strings); in NCURSES_EXPORT()
64 tp->ext_Names[n], in NCURSES_EXPORT()
65 _nc_visbuf(tp->Strings[tp->num_Strings + m - tp->ext_Strings])); in NCURSES_EXPORT()
68 tp->ext_Names[n], in NCURSES_EXPORT()
[all …]
HDvisbuf.c60 #define VisChar(tp, chr, limit) _nc_vischar(tp, chr, limit) argument
63 #define VisChar(tp, chr, limit) _nc_vischar(tp, chr) argument
68 _nc_vischar(char *tp, unsigned c LIMIT_ARG) in _nc_vischar() argument
71 *tp++ = '\\'; in _nc_vischar()
72 *tp++ = (char) c; in _nc_vischar()
74 *tp++ = (char) c; in _nc_vischar()
76 *tp++ = '\\'; in _nc_vischar()
77 *tp++ = 'n'; in _nc_vischar()
79 *tp++ = '\\'; in _nc_vischar()
80 *tp++ = 'r'; in _nc_vischar()
[all …]
/dragonfly/sys/bus/u4b/serial/
HDusb_serial.c173 static void ucom_start(struct tty *tp);
174 static void ucom_stop(struct tty *tp, int);
175 static int ucom_param(struct tty *tp, struct termios *t);
176 static int ucom_modem(struct tty *tp, int sigon, int sigoff);
211 #define tty_gone(tp) ((tp->t_state) & (TS_ZOMBIE)) argument
445 struct tty *tp; in ucom_attach_tty() local
448 tp = ttymalloc(&sc->sc_tty); in ucom_attach_tty()
450 lwkt_gettoken(&tp->t_token); in ucom_attach_tty()
452 tp->t_sc = (void *)sc; in ucom_attach_tty()
454 tp->t_oproc = ucom_start; in ucom_attach_tty()
[all …]

12345678910>>...22