/freebsd/sys/sys/ |
H A D | ttydisc.h | 45 void ttydisc_open(struct tty *tp); 46 void ttydisc_close(struct tty *tp); 51 void ttydisc_optimize(struct tty *tp); 55 #define ttydisc_can_bypass(tp) ((tp)->t_flags & TF_BYPASS) argument 59 void ttydisc_rint_done(struct tty *tp); 60 size_t ttydisc_rint_poll(struct tty *tp); 72 ttydisc_read_poll(struct tty *tp) in ttydisc_read_poll() argument 75 tty_assert_locked(tp); in ttydisc_read_poll() 81 ttydisc_write_poll(struct tty *tp) in ttydisc_write_poll() argument 84 tty_assert_locked(tp); in ttydisc_write_poll() [all …]
|
/freebsd/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/ |
H A D | fasttrap_isa.c | 71 if (uwrite(p, &tp->ftt_instr, 4, tp->ftt_pc) != 0) in fasttrap_tracepoint_remove() 278 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) { in fasttrap_return_common() 279 if (pid == tp->ftt_pid && pc == tp->ftt_pc && in fasttrap_return_common() 289 if (tp == NULL) { in fasttrap_return_common() 380 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) { in fasttrap_pid_probe() 381 if (pid == tp->ftt_pid && pc == tp->ftt_pc && in fasttrap_pid_probe() 391 if (tp == NULL) { in fasttrap_pid_probe() 445 tp_local = *tp; in fasttrap_pid_probe() 447 tp = &tp_local; in fasttrap_pid_probe() 472 if (!fasttrap_branch_taken(tp->ftt_bo, tp->ftt_bi, rp)) in fasttrap_pid_probe() [all …]
|
/freebsd/sys/dev/snp/ |
H A D | snp.c | 118 struct tty *tp; in snp_dtor() local 122 tty_lock(tp); in snp_dtor() 155 struct tty *tp; in snp_read() local 165 if (tp == NULL || tty_gone(tp)) in snp_read() 168 tty_lock(tp); in snp_read() 187 tty_unlock(tp); in snp_read() 196 struct tty *tp; in snp_write() local 205 if (tp == NULL || tty_gone(tp)) in snp_write() 215 tty_lock(tp); in snp_write() 242 struct tty *tp; in snp_ioctl() local [all …]
|
/freebsd/sys/netinet/ |
H A D | tcp_log_buf.c | 660 if (tp->_t_logstate && STAILQ_FIRST(&tp->t_logs) && !same) { in tcp_log_set_id() 691 tp->_t_logstate = tp->t_lib->tlb_logstate; in tcp_log_set_id() 697 tp->t_loglimit = tp->t_lib->tlb_loglimit; in tcp_log_set_id() 787 if (tp->t_lib != NULL || tp->t_lin != NULL) in tcp_log_set_id() 983 tp->_t_logstate = tp->t_lib->tlb_logstate; in tcp_log_set_id() 988 tp->t_loglimit = tp->t_lib->tlb_loglimit; in tcp_log_set_id() 1099 return ((tp->t_lib == NULL) ? 0 : tp->t_lib->tlb_refcnt); in tcp_log_get_id_cnt() 1177 tp->t_lognum--; in tcp_log_remove_log_cleanup() 1722 if (tp->t_lognum < tp->t_loglimit) { in tcp_log_event() 1736 if (tp->t_lib == NULL && (tp->t_flags2 & TF2_LOG_AUTO) && in tcp_log_event() [all …]
|
H A D | tcp_reass.c | 305 tp->t_segqlen--; in tcp_reass_flush() 310 tp, tp->t_segqlen)); in tcp_reass_flush() 329 tp->t_rcvoopack++; in tcp_reass_append() 365 tp->t_rcvoopack++; in tcp_reass_prepend() 400 tp->t_rcvoopack++; in tcp_reass_replace() 431 tp->t_segqlen--; in tcp_reass_merge_into() 548 th, tp)); in tcp_reass() 741 th->th_seq, tp->rcv_nxt, tp); in tcp_reass() 880 p, tp); in tcp_reass() 1025 tp->t_segqlen++; in tcp_reass() [all …]
|
H A D | tcp_timer.h | 140 #define TP_KEEPINIT(tp) ((tp)->t_keepinit ? (tp)->t_keepinit : tcp_keepinit) argument 141 #define TP_KEEPIDLE(tp) ((tp)->t_keepidle ? (tp)->t_keepidle : tcp_keepidle) argument 142 #define TP_KEEPINTVL(tp) ((tp)->t_keepintvl ? (tp)->t_keepintvl : tcp_keepintvl) argument 143 #define TP_KEEPCNT(tp) ((tp)->t_keepcnt ? (tp)->t_keepcnt : tcp_keepcnt) argument 144 #define TP_MAXIDLE(tp) (TP_KEEPCNT(tp) * TP_KEEPINTVL(tp)) argument 145 #define TP_MAXUNACKTIME(tp) \ argument 146 ((tp)->t_maxunacktime ? (tp)->t_maxunacktime : tcp_maxunacktime) 153 #define TP_RXTCUR(tp) \ argument 154 ((TP_MAXUNACKTIME(tp) == 0 || tp->t_acktime == 0) ? tp->t_rxtcur : \ 155 max(1, min(tp->t_rxtcur, tp->t_acktime + TP_MAXUNACKTIME(tp) - ticks)))
|
H A D | tcp_log_buf.h | 393 tcp_bblogging_on(struct tcpcb *tp) in tcp_bblogging_on() argument 413 (tp->_t_logpoint == bbpoint)) in tcp_bblogging_point_on() 432 tp->_t_logpoint = bbpoint; in tcp_set_bblog_state() 433 tp->_t_logstate = ls; in tcp_set_bblog_state() 435 tp->_t_logpoint = TCP_BBPOINT_NONE; in tcp_set_bblog_state() 436 tp->_t_logstate = ls; in tcp_set_bblog_state() 441 tcp_get_bblog_state(struct tcpcb *tp) in tcp_get_bblog_state() argument 443 return (tp->_t_logstate); in tcp_get_bblog_state() 454 (tcp_bblogging_on(tp) == 0)) { in tcp_trace_point() 476 if (tcp_bblogging_on(tp)) \ [all …]
|
H A D | tcp_timewait.c | 107 tcp_twstart(struct tcpcb *tp) in tcp_twstart() argument 109 struct inpcb *inp = tptoinpcb(tp); in tcp_twstart() 122 tcp_free_sackholes(tp); in tcp_twstart() 125 if (tp->t_flags & TF_ACKNOW) in tcp_twstart() 126 (void) tcp_output(tp); in tcp_twstart() 138 if ((tp = tcp_close(tp)) != NULL) in tcp_twstart() 235 if ((tp = tcp_close(tp)) != NULL) in tcp_twcheck() 285 if (seq + 1 == tp->rcv_nxt) in tcp_twcheck() 293 th->th_seq != tp->rcv_nxt || th->th_ack != tp->snd_nxt) { in tcp_twcheck() 295 tcp_respond(tp, mtod(m, void *), th, m, tp->rcv_nxt, in tcp_twcheck() [all …]
|
/freebsd/contrib/ncurses/ncurses/trace/ |
H A D | visbuf.c | 63 #define VisChar(tp, chr, limit) _nc_vischar(tp, chr) argument 77 *tp++ = 'n'; in _nc_vischar() 80 *tp++ = 'r'; in _nc_vischar() 83 *tp++ = 'b'; in _nc_vischar() 101 tp += strlen(tp); in _nc_vischar() 103 *tp = 0; in _nc_vischar() 134 tp = 0; in _nc_visbuf2n() 146 tp = VisChar(tp, UChar(c), NormalLen(len)); in _nc_visbuf2n() 149 *tp = '\0'; in _nc_visbuf2n() 226 tp = VisChar(tp, UChar(temp[k]), WideLen(len)); in _nc_viswbuf2n() [all …]
|
/freebsd/contrib/atf/atf-c/ |
H A D | tp.c | 83 if (tp->pimpl == NULL) in atf_tp_init() 92 atf_list_fini(&tp->pimpl->m_tcs); in atf_tp_init() 102 atf_tp_fini(atf_tp_t *tp) in atf_tp_fini() argument 106 atf_map_fini(&tp->pimpl->m_config); in atf_tp_fini() 112 atf_list_fini(&tp->pimpl->m_tcs); in atf_tp_fini() 114 free(tp->pimpl); in atf_tp_fini() 122 atf_tp_get_config(const atf_tp_t *tp) in atf_tp_get_config() argument 130 const atf_tc_t *tc = find_tc(tp, id); in atf_tp_has_tc() 143 atf_tp_get_tcs(const atf_tp_t *tp) in atf_tp_get_tcs() argument 198 tc = find_tc(tp, tcname); in atf_tp_run() [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | timer.c | 113 tp->rest = tp->load - ticks; in timer_Start() 117 "timer[%p], delta = %ld\n", tp->name, tp, t->name, t, tp->rest); in timer_Start() 122 tp->next = t; in timer_Start() 124 pt->next = tp; in timer_Start() 185 tp->next = tp->enext = NULL; in StopTimerNoBlock() 203 tp = TimerList; in TimerService() 204 if (tp) { in TimerService() 205 tp->rest = 0; in TimerService() 213 exp = tp; in TimerService() 214 tp = next; in TimerService() [all …]
|
/freebsd/usr.sbin/dumpcis/ |
H A D | readcis.c | 124 struct tuple *tp; in freecis() local 130 free(tp->data); in freecis() 131 free(tp); in freecis() 211 if (tp == NULL || tp->length != 4) in read_tuples() 275 tp = xmalloc(sizeof(*tp)); in read_one_tuplelist() 324 last_tp = tp; in read_one_tuplelist() 363 for (tp = tl->tuples; tp; tp = tp->next) in find_tuple_in_list() 366 return (tp); in find_tuple_in_list() 377 for (tp = tuple_info; tp->name; tp++) in get_tuple_info() 379 return (tp); in get_tuple_info() [all …]
|
/freebsd/sys/netinet/tcp_stacks/ |
H A D | rack.c | 6442 tp->snd_nxt = tp->snd_max; in rack_cong_signal() 12854 (tp->snd_wnd - (tp->snd_max - tp->snd_una))); in rack_gain_for_fastoutput() 13327 tp = tcp_close(tp); in rack_process_ack() 13587 tp->rcv_up = tp->rcv_nxt; in rack_process_data() 13885 tp->rcv_up = tp->rcv_nxt; in rack_do_fastnewdata() 14821 tp = tcp_close(tp); in rack_check_data_after_close() 15164 tp = tcp_close(tp); in rack_do_lastack() 16524 tp->snd_nxt = tp->snd_max; in rack_fini() 17579 tp = tcp_close(tp); in rack_do_compressed_ack_processing() 17677 tp = tcp_close(tp); in rack_do_compressed_ack_processing() [all …]
|
H A D | bbr.c | 7812 tp->snd_nxt = tp->snd_max; in bbr_process_ack() 7846 tp = tcp_close(tp); in bbr_process_ack() 8190 tp->rcv_up = tp->rcv_nxt; in bbr_process_data() 8487 tp->rcv_up = tp->rcv_nxt; in bbr_do_fastnewdata() 9387 tp = tcp_close(tp); in bbr_check_data_after_close() 9716 tp = tcp_close(tp); in bbr_do_lastack() 10217 tp->snd_nxt = tp->snd_max; in bbr_fini() 12746 tp->snd_nxt = tp->snd_max; in bbr_output_wtime() 13383 tp->snd_up = tp->snd_una; in bbr_output_wtime() 13957 tp->snd_nxt = tp->snd_max; in bbr_output_wtime() [all …]
|
/freebsd/sys/dev/cxgbe/ |
H A D | t4_tracer.c | 293 memcpy(&t->tp.data[0], &tp.data[0], sizeof(t->tp.data)); in t4_get_tracer() 294 memcpy(&t->tp.mask[0], &tp.mask[0], sizeof(t->tp.mask)); in t4_get_tracer() 296 t->tp.min_len = tp.min_len; in t4_get_tracer() 299 t->tp.invert = tp.invert; in t4_get_tracer() 307 t->tp.port = tp.port; in t4_get_tracer() 361 memcpy(&tp.data[0], &t->tp.data[0], sizeof(tp.data)); in t4_set_tracer() 362 memcpy(&tp.mask[0], &t->tp.mask[0], sizeof(tp.mask)); in t4_set_tracer() 363 tp.snap_len = t->tp.snap_len; in t4_set_tracer() 364 tp.min_len = t->tp.min_len; in t4_set_tracer() 367 tp.invert = !!t->tp.invert; in t4_set_tracer() [all …]
|
/freebsd/sys/cddl/contrib/opensolaris/uts/intel/dtrace/ |
H A D | fasttrap_isa.c | 387 tp->ftt_dest = pc + tp->ftt_size + in fasttrap_tracepoint_init() 498 tp->ftt_dest = pc + tp->ftt_size + in fasttrap_tracepoint_init() 507 tp->ftt_dest = pc + tp->ftt_size + in fasttrap_tracepoint_init() 513 tp->ftt_dest = pc + tp->ftt_size + in fasttrap_tracepoint_init() 519 tp->ftt_dest = pc + tp->ftt_size + in fasttrap_tracepoint_init() 527 tp->ftt_dest = pc + tp->ftt_size + in fasttrap_tracepoint_init() 533 tp->ftt_dest = pc + tp->ftt_size + in fasttrap_tracepoint_init() 620 tp->ftt_modrm = tp->ftt_instr[rmindex]; in fasttrap_tracepoint_init() 697 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) { in fasttrap_return_common() 698 if (pid == tp->ftt_pid && pc == tp->ftt_pc && in fasttrap_return_common() [all …]
|
/freebsd/contrib/ncurses/ncurses/tinfo/ |
H A D | alloc_ttype.c | 255 n += (tp->num_Booleans - tp->ext_Booleans); in _nc_ext_data_index() 258 n += (tp->num_Numbers - tp->ext_Numbers) in _nc_ext_data_index() 263 n += (tp->num_Strings - tp->ext_Strings) in _nc_ext_data_index() 264 - (tp->ext_Booleans + tp->ext_Numbers); in _nc_ext_data_index() 290 tp->Booleans[j] = tp->Booleans[j + 1]; in _nc_del_ext_name() 297 tp->Numbers[j] = tp->Numbers[j + 1]; in _nc_del_ext_name() 304 tp->Strings[j] = tp->Strings[j + 1]; in _nc_del_ext_name() 338 tp->ext_Names[k] = tp->ext_Names[k - 1]; in _nc_ins_ext_name() 348 tp->Booleans[k] = tp->Booleans[k - 1]; in _nc_ins_ext_name() 355 tp->Numbers[k] = tp->Numbers[k - 1]; in _nc_ins_ext_name() [all …]
|
/freebsd/sys/amd64/amd64/ |
H A D | exec_machdep.c | 413 struct trapframe *tp; in fill_regs() local 415 tp = td->td_frame; in fill_regs() 439 regs->r_cs = tp->tf_cs; in fill_frame_regs() 442 regs->r_ss = tp->tf_ss; in fill_frame_regs() 462 struct trapframe *tp; in set_regs() local 465 tp = td->td_frame; in set_regs() 485 tp->tf_cs = regs->r_cs; in set_regs() 591 struct trapframe *tp; in get_mcontext() local 594 tp = td->td_frame; in get_mcontext() 650 struct trapframe *tp; in set_mcontext() local [all …]
|
/freebsd/sys/contrib/openzfs/module/os/linux/spl/ |
H A D | spl-thread.c | 53 func = tp->tp_func; in thread_generic_wrapper() 54 args = tp->tp_args; in thread_generic_wrapper() 57 kmem_free(tp->tp_name, tp->tp_name_size); in thread_generic_wrapper() 75 thread_priv_t *tp; in __thread_create() local 84 if (tp == NULL) in __thread_create() 90 tp->tp_name = kmem_alloc(tp->tp_name_size, KM_PUSHPAGE); in __thread_create() 96 strlcpy(tp->tp_name, name, tp->tp_name_size); in __thread_create() 106 tp->tp_func = func; in __thread_create() 107 tp->tp_args = args; in __thread_create() 108 tp->tp_len = len; in __thread_create() [all …]
|
/freebsd/contrib/ntp/libntp/lib/isc/ |
H A D | inet_pton.c | 90 *(tp = tmp) = 0; in inet_pton4() 97 if (saw_digit && *tp == 0) in inet_pton4() 101 *tp = (unsigned char)newv; in inet_pton4() 110 *++tp = 0; in inet_pton4() 144 endp = tp + NS_IN6ADDRSZ; in inet_pton6() 170 colonp = tp; in inet_pton6() 183 tp += NS_INADDRSZ; in inet_pton6() 190 if (NS_INT16SZ > endp - tp) in inet_pton6() 203 if (tp == endp) in inet_pton6() 209 tp = endp; in inet_pton6() [all …]
|
/freebsd/sys/libkern/ |
H A D | inet_pton.c | 77 *(tp = tmp) = 0; in inet_pton4() 84 if (saw_digit && *tp == 0) in inet_pton4() 88 *tp = new; in inet_pton4() 97 *++tp = 0; in inet_pton4() 134 endp = tp + NS_IN6ADDRSZ; in inet_pton6() 160 colonp = tp; in inet_pton6() 175 tp += NS_INADDRSZ; in inet_pton6() 192 const int n = tp - colonp; in inet_pton6() 195 if (tp == endp) in inet_pton6() 201 tp = endp; in inet_pton6() [all …]
|
/freebsd/lib/libc/inet/ |
H A D | inet_pton.c | 83 *(tp = tmp) = 0; in inet_pton4() 90 if (saw_digit && *tp == 0) in inet_pton4() 94 *tp = new; in inet_pton4() 103 *++tp = 0; in inet_pton4() 138 endp = tp + NS_IN6ADDRSZ; in inet_pton6() 164 colonp = tp; in inet_pton6() 179 tp += NS_INADDRSZ; in inet_pton6() 196 const int n = tp - colonp; in inet_pton6() 199 if (tp == endp) in inet_pton6() 205 tp = endp; in inet_pton6() [all …]
|
/freebsd/sys/amd64/ia32/ |
H A D | ia32_reg.c | 75 struct trapframe *tp; in fill_regs32() local 77 tp = td->td_frame; in fill_regs32() 97 regs->r_cs = tp->tf_cs; in fill_regs32() 100 regs->r_ss = tp->tf_ss; in fill_regs32() 109 struct trapframe *tp; in set_regs32() local 111 tp = td->td_frame; in set_regs32() 114 tp->tf_gs = regs->r_gs; in set_regs32() 115 tp->tf_fs = regs->r_fs; in set_regs32() 116 tp->tf_es = regs->r_es; in set_regs32() 117 tp->tf_ds = regs->r_ds; in set_regs32() [all …]
|
/freebsd/contrib/tcsh/ |
H A D | tc.sched.c | 84 for (count = 1, tp = sched_ptr; tp; count++, tp = tp->t_next) { in dosched() 109 tp = sched_ptr; in dosched() 114 pp = &tp->t_next; in dosched() 115 tp = tp->t_next; in dosched() 120 *pp = tp->t_next; in dosched() 121 blkfree(tp->t_lex); in dosched() 122 xfree(tp); in dosched() 165 tp = xcalloc(1, sizeof *tp); in dosched() 176 *pp = tp; in dosched() 211 while ((tp = sched_ptr) != NULL && tp->t_when < cur_time) { in sched_run() [all …]
|
/freebsd/sys/dev/uart/ |
H A D | uart_tty.c | 168 sc = tty_softc(tp); in uart_tty_open() 322 struct tty *tp; in uart_tty_intr() local 332 tp = sc->sc_u.u_tty.tp; in uart_tty_intr() 333 tty_lock(tp); in uart_tty_intr() 369 tty_unlock(tp); in uart_tty_intr() 422 struct tty *tp; in uart_tty_attach() local 425 sc->sc_u.u_tty.tp = tp = tty_alloc(&uart_tty_class, sc); in uart_tty_attach() 446 struct tty *tp; in uart_tty_detach() local 448 tp = sc->sc_u.u_tty.tp; in uart_tty_detach() 450 tty_lock(tp); in uart_tty_detach() [all …]
|