/darwin-on-arm/xnu/bsd/netinet/ |
H A D | tcp_ledbat.c | 58 int tcp_ledbat_init(struct tcpcb *tp); 59 int tcp_ledbat_cleanup(struct tcpcb *tp); 60 void tcp_ledbat_cwnd_init(struct tcpcb *tp); 61 void tcp_ledbat_inseq_ack_rcvd(struct tcpcb *tp, struct tcphdr *th); 62 void tcp_ledbat_ack_rcvd(struct tcpcb *tp, struct tcphdr *th); 63 void tcp_ledbat_pre_fr(struct tcpcb *tp); 64 void tcp_ledbat_post_fr(struct tcpcb *tp, struct tcphdr *th); 65 void tcp_ledbat_after_idle(struct tcpcb *tp); 66 void tcp_ledbat_after_timeout(struct tcpcb *tp); 67 int tcp_ledbat_delay_ack(struct tcpcb *tp, struc 139 update_cwnd(struct tcpcb *tp, uint32_t incr) argument 200 tcp_ledbat_init(struct tcpcb *tp) argument 206 tcp_ledbat_cleanup(struct tcpcb *tp) argument 217 tcp_ledbat_cwnd_init(struct tcpcb *tp) argument 227 tcp_ledbat_inseq_ack_rcvd(struct tcpcb *tp, struct tcphdr *th) argument 245 tcp_ledbat_ack_rcvd(struct tcpcb *tp, struct tcphdr *th) argument 293 tcp_ledbat_pre_fr(struct tcpcb *tp) argument 308 tcp_ledbat_post_fr(struct tcpcb *tp, struct tcphdr *th) argument 335 tcp_ledbat_after_idle(struct tcpcb *tp) argument 371 tcp_ledbat_after_timeout(struct tcpcb *tp) argument 403 tcp_ledbat_delay_ack(struct tcpcb *tp, struct tcphdr *th) argument 415 tcp_ledbat_switch_cc(struct tcpcb *tp, uint16_t old_cc_index) argument [all...] |
H A D | tcp_newreno.c | 86 int tcp_newreno_init(struct tcpcb *tp); 87 int tcp_newreno_cleanup(struct tcpcb *tp); 88 void tcp_newreno_cwnd_init_or_reset(struct tcpcb *tp); 89 void tcp_newreno_inseq_ack_rcvd(struct tcpcb *tp, struct tcphdr *th); 90 void tcp_newreno_ack_rcvd(struct tcpcb *tp, struct tcphdr *th); 91 void tcp_newreno_pre_fr(struct tcpcb *tp); 92 void tcp_newreno_post_fr(struct tcpcb *tp, struct tcphdr *th); 93 void tcp_newreno_after_idle(struct tcpcb *tp); 94 void tcp_newreno_after_timeout(struct tcpcb *tp); 95 int tcp_newreno_delay_ack(struct tcpcb *tp, struc 122 tcp_cc_resize_sndbuf(struct tcpcb *tp) argument 138 tcp_bad_rexmt_fix_sndbuf(struct tcpcb *tp) argument 154 tcp_newreno_init(struct tcpcb *tp) argument 160 tcp_newreno_cleanup(struct tcpcb *tp) argument 176 tcp_newreno_cwnd_init_or_reset(struct tcpcb *tp) argument 200 tcp_newreno_inseq_ack_rcvd(struct tcpcb *tp, struct tcphdr *th) argument 218 tcp_newreno_ack_rcvd(struct tcpcb *tp, struct tcphdr *th) argument 278 tcp_newreno_pre_fr(struct tcpcb *tp) argument 292 tcp_newreno_post_fr(struct tcpcb *tp, struct tcphdr *th) argument 317 tcp_newreno_after_timeout(struct tcpcb *tp) argument 375 tcp_newreno_delay_ack(struct tcpcb *tp, struct tcphdr *th) argument 403 tcp_newreno_switch_cc(struct tcpcb *tp, uint16_t old_index) argument [all...] |
H A D | tcp_cc.h | 85 int (*init) (struct tcpcb *tp); 88 int (*cleanup) (struct tcpcb *tp); 91 void (*cwnd_init) (struct tcpcb *tp); 94 void (*inseq_ack_rcvd) (struct tcpcb *tp, struct tcphdr *th); 97 void (*ack_rcvd) (struct tcpcb *tp, struct tcphdr *th); 100 void (*pre_fr) (struct tcpcb *tp); 103 void (*post_fr) (struct tcpcb *tp, struct tcphdr *th); 106 void (*after_idle) (struct tcpcb *tp); 109 void (*after_timeout) (struct tcpcb *tp); 112 int (*delay_ack)(struct tcpcb *tp, struc [all...] |
H A D | tcp_output.c | 221 extern uint32_t get_base_rtt(struct tcpcb *tp); 222 static struct mbuf* tcp_send_lroacks(struct tcpcb *tp, struct mbuf *m, struct tcphdr *th); 266 tcp_output(struct tcpcb *tp) argument 268 struct socket *so = tp->t_inpcb->inp_socket; 294 struct mbuf *tp_inp_options = tp->t_inpcb->inp_depend4.inp4_options; 296 int isipv6 = tp->t_inpcb->inp_vflag & INP_IPV6 ; 303 u_int32_t lro_ackmore = (tp->t_lropktlen != 0) ? 1 : 0; 313 idle = (tp->t_flags & TF_LASTIDLE) || (tp->snd_max == tp 1981 tcp_ip_output(struct socket *so, struct tcpcb *tp, struct mbuf *pkt, int cnt, struct mbuf *opt, int flags, int sack_in_progress, int recwin, boolean_t isipv6) argument 2238 tcp_send_lroacks(struct tcpcb *tp, struct mbuf *m, struct tcphdr *th) argument [all...] |
H A D | tcp_timer.c | 246 static void tcp_remove_timer(struct tcpcb *tp); 248 static uint32_t tcp_run_conn_timer(struct tcpcb *tp, uint16_t *next_index); 249 static void tcp_sched_timers(struct tcpcb *tp); 264 #define TIMER_IS_ON_LIST(tp) ((tp)->t_flags & TF_TIMER_ONLIST) 267 void add_to_time_wait_locked(struct tcpcb *tp, uint32_t delay); 268 void add_to_time_wait(struct tcpcb *tp, uint32_t delay) ; 272 void add_to_time_wait_locked(struct tcpcb *tp, uint32_t delay) argument 281 LIST_REMOVE(tp->t_inpcb, inp_list); 283 /* if (tp 304 add_to_time_wait(struct tcpcb *tp, uint32_t delay) argument 321 struct tcpcb *tp; local 416 struct tcpcb *tp; local 903 tcp_remove_timer(struct tcpcb *tp) argument 993 tcp_run_conn_timer(struct tcpcb *tp, uint16_t *next_index) argument 1108 struct tcpcb *tp; local 1233 tcp_sched_timers(struct tcpcb *tp) argument 1331 tcp_set_lotimer_index(struct tcpcb *tp) argument 1350 tcp_check_timer_state(struct tcpcb *tp) argument [all...] |
H A D | tcp_sack.c | 130 tcp_update_sack_list(struct tcpcb *tp, tcp_seq rcv_start, tcp_seq rcv_end) argument 151 for (i = 0; i < tp->rcv_numsacks; i++) { 152 tcp_seq start = tp->sackblks[i].start; 153 tcp_seq end = tp->sackblks[i].end; 154 if (SEQ_GEQ(start, end) || SEQ_LEQ(start, tp->rcv_nxt)) { 179 * Update SACK list in tp->sackblks[]. 182 if (SEQ_GT(head_blk.start, tp->rcv_nxt)) { 187 tp->sackblks[0] = head_blk; 200 bcopy(saved_blks, &tp->sackblks[num_head], 205 tp 224 tcp_clean_sackreport( struct tcpcb *tp) argument 235 tcp_sackhole_alloc(struct tcpcb *tp, tcp_seq start, tcp_seq end) argument 263 tcp_sackhole_free(struct tcpcb *tp, struct sackhole *hole) argument 275 tcp_sackhole_insert(struct tcpcb *tp, tcp_seq start, tcp_seq end, struct sackhole *after) argument 302 tcp_sackhole_remove(struct tcpcb *tp, struct sackhole *hole) argument 321 tcp_sack_doack(struct tcpcb *tp, struct tcpopt *to, tcp_seq th_ack) argument 511 tcp_free_sackholes(struct tcpcb *tp) argument 559 tcp_sack_output_debug(struct tcpcb *tp, int *sack_bytes_rexmt) argument 595 tcp_sack_output(struct tcpcb *tp, int *sack_bytes_rexmt) argument 631 tcp_sack_adjust(struct tcpcb *tp) argument [all...] |
H A D | tcp_input.c | 298 static inline int tcp_stretch_ack_enable(struct tcpcb *tp); 301 static inline void update_iaj_state(struct tcpcb *tp, uint32_t tlen, int reset_size); 302 void compute_iaj(struct tcpcb *tp); 309 static void tcp_sbrcv_grow(struct tcpcb *tp, struct sockbuf *sb, 312 void tcp_sbrcv_trim(struct tcpcb *tp, struct sockbuf *sb); 314 static inline void tcp_sbrcv_tstmp_check(struct tcpcb *tp); 315 static inline void tcp_sbrcv_reserve(struct tcpcb *tp, struct sockbuf *sb, 322 #define ND6_HINT(tp) \ 324 if ((tp) && (tp) 371 reset_acc_iaj(struct tcpcb *tp) argument 379 update_iaj_state(struct tcpcb *tp, uint32_t size, int rst_size) argument 421 compute_iaj(struct tcpcb *tp) argument 487 tcp_bwmeas_check(struct tcpcb *tp) argument 735 tcp_reduce_congestion_window( struct tcpcb *tp) argument 831 tcp_sbrcv_reserve(struct tcpcb *tp, struct sockbuf *sbrcv, u_int32_t newsize, u_int32_t idealsize) argument 866 tcp_sbrcv_grow(struct tcpcb *tp, struct sockbuf *sbrcv, struct tcpopt *to, u_int32_t pktlen) argument 958 tcp_sbrcv_trim(struct tcpcb *tp, struct sockbuf *sbrcv) argument 1024 tcp_sbrcv_tstmp_check(struct tcpcb *tp) argument 1056 tcp_stretch_ack_enable(struct tcpcb *tp) argument 1073 tcp_reset_stretch_ack(struct tcpcb *tp) argument 1093 register struct tcpcb *tp = 0; local 4133 struct tcpcb *tp = sototcpcb(so); local 4152 get_base_rtt(struct tcpcb *tp) argument 4167 update_base_rtt(struct tcpcb *tp, uint32_t rtt) argument 4681 struct tcpcb *tp; local 4830 struct tcpcb *tp = intotcpcb(inp); local 4874 struct tcpcb *tp = inp->inp_ppcb; local [all...] |
H A D | tcp_usrreq.c | 151 extern void tcp_sbrcv_trim(struct tcpcb *tp, struct sockbuf *sb); 155 #define TCPDEBUG1() ostate = tp ? tp->t_state : 0 156 #define TCPDEBUG2(req) if (tp && (so->so_options & SO_DEBUG)) \ 157 tcp_trace(TA_USER, ostate, tp, 0, 0, req) 182 struct tcpcb *tp = 0; local 197 tp = sototcpcb(so); 215 struct tcpcb *tp; local 222 tp = intotcpcb(inp); 224 if (tp 268 struct tcpcb *tp; local 301 struct tcpcb *tp; local 361 struct tcpcb *tp; local 377 struct tcpcb *tp; local 404 struct tcpcb *tp; local 450 struct tcpcb *tp; local 511 struct tcpcb *tp; local 532 struct tcpcb *tp = NULL; local 558 struct tcpcb *tp = NULL; local 600 struct tcpcb *tp; local 621 struct tcpcb *tp; local 670 struct tcpcb *tp; local 798 struct tcpcb *tp; local 822 struct tcpcb *tp; local 1120 tcp_fill_info(struct tcpcb *tp, struct tcp_info *ti) argument 1189 struct tcpcb *tp; local 1320 struct tcpcb *tp; local 1673 register struct tcpcb *tp; local [all...] |
H A D | tcp_seq.h | 105 #define tcp_rcvseqinit(tp) \ 106 (tp)->rcv_adv = (tp)->rcv_nxt = (tp)->irs + 1 108 #define tcp_sendseqinit(tp) \ 109 (tp)->snd_una = (tp)->snd_nxt = (tp)->snd_max = (tp)->snd_up = \ 110 (tp) [all...] |
H A D | tcp_subr.c | 269 static void tcp_sbrcv_grow_rwin(struct tcpcb *tp, struct sockbuf *sb); 330 int tcp_freeq(struct tcpcb *tp); 479 tcp_fillheaders(tp, ip_ptr, tcp_ptr) 480 struct tcpcb *tp; 484 struct inpcb *inp = tp->t_inpcb; 539 tcp_maketemplate(tp) 540 struct tcpcb *tp; 551 tcp_fillheaders(tp, (void *)&n->tt_ipgen, (void *)&n->tt_t); 571 struct tcpcb *tp, 602 if (tp) { 570 tcp_respond( struct tcpcb *tp, void *ipgen, register struct tcphdr *th, register struct mbuf *m, tcp_seq ack, tcp_seq seq, int flags, unsigned int ifscope, unsigned int nocell ) argument 831 register struct tcpcb *tp; local 925 tcp_getrt_rtt(struct tcpcb *tp, struct rtentry *rt) argument 1251 struct tcpcb *tp; local 1282 tcp_bwmeas_alloc(struct tcpcb *tp) argument 1298 tcp_bwmeas_free(struct tcpcb* tp) argument 1310 tcpcb_to_otcpcb(struct tcpcb *tp, struct otcpcb *otp) argument 1497 tcpcb_to_xtcpcb64(struct tcpcb *tp, struct xtcpcb64 *otp) argument 1715 struct tcpcb *tp; local 2003 struct tcpcb *tp = intotcpcb(inp); local 2021 struct tcpcb *tp = intotcpcb(inp); local 2124 struct tcpcb *tp; local 2206 struct tcpcb *tp; local 2474 tcp_sbrcv_grow_rwin(struct tcpcb *tp, struct sockbuf *sb) argument 2486 tcp_sbspace(struct tcpcb *tp) argument 2601 tcp_set_max_rwinscale(struct tcpcb *tp, struct socket *so) argument 2618 struct tcpcb *tp = NULL; local [all...] |
H A D | tcp_timer.h | 92 * received. If an ACK is received which advances tp->snd_una, 236 #define TCP_ADD_REXMTSLOP(tp) (tp->t_state >= TCPS_ESTABLISHED) 246 #define TCP_KEEPIDLE(tp) \ 247 (tp->t_keepidle && (tp->t_inpcb->inp_socket->so_options & SO_KEEPALIVE) ? \ 248 tp->t_keepidle : tcp_keepidle) 254 #define TCP_IDLETIMEOUT(tp) \ 255 (((TCP_ADD_REXMTSLOP(tp)) ? 0 : tcp_rexmt_slop) + tp [all...] |
H A D | tcp_debug.c | 110 tcp_trace(act, ostate, tp, ipgen, th, req) 112 struct tcpcb *tp; 137 td->td_tcb = (caddr_t)tp; 138 if (tp) 139 td->td_cb = *tp; 141 bzero((caddr_t)&td->td_cb, sizeof (*tp)); 194 if (tp) 195 printf("%x %s:", tp, tcpstates[ostate]); 245 if (tp) 246 printf(" -> %s", tcpstates[tp [all...] |
H A D | in_pcblist.c | 195 tcpcb_to_xtcpcb_n(struct tcpcb *tp, struct xtcpcb_n *xt) argument 202 xt->t_segq = (u_int32_t)(uintptr_t)tp->t_segq.lh_first; 203 xt->t_dupacks = tp->t_dupacks; 205 xt->t_timer[i] = tp->t_timer[i]; 206 xt->t_state = tp->t_state; 207 xt->t_flags = tp->t_flags; 208 xt->t_force = tp->t_force; 209 xt->snd_una = tp->snd_una; 210 xt->snd_max = tp->snd_max; 211 xt->snd_nxt = tp [all...] |
/darwin-on-arm/xnu/bsd/dev/arm/ |
H A D | km.c | 75 static int kmoutput(struct tty *tp); 76 static void kmstart(struct tty *tp); 93 struct tty *tp; local 101 tp = km_tty[unit]; 103 tty_lock(tp); 105 tp->t_oproc = kmstart; 106 tp->t_param = NULL; 107 tp->t_dev = dev; 109 if (!(tp->t_state & TS_ISOPEN)) { 110 tp 163 struct tty *tp = km_tty[minor(dev)]; local 176 struct tty *tp = km_tty[minor(dev)]; local 188 struct tty *tp = km_tty[minor(dev)]; local 200 struct tty *tp = km_tty[minor(dev)]; local 296 kmstart(struct tty *tp) argument 321 struct tty *tp = (struct tty *) arg; local 339 kmoutput(struct tty *tp) argument 400 struct tty *tp = km_tty[0]; /* XXX */ local [all...] |
/darwin-on-arm/xnu/bsd/dev/i386/ |
H A D | km.c | 75 static int kmoutput(struct tty *tp); 76 static void kmstart(struct tty *tp); 95 struct tty *tp; local 103 tp = km_tty[unit]; 105 tty_lock(tp); 107 tp->t_oproc = kmstart; 108 tp->t_param = NULL; 109 tp->t_dev = dev; 111 if ( !(tp->t_state & TS_ISOPEN) ) { 112 tp 166 struct tty *tp = km_tty[minor(dev)]; local 180 struct tty *tp = km_tty[minor(dev)]; local 193 struct tty *tp = km_tty[minor(dev)]; local 206 struct tty *tp = km_tty[minor(dev)]; local 296 kmstart(struct tty *tp) argument 322 struct tty *tp = (struct tty *)arg; local 341 kmoutput(struct tty *tp) argument 397 struct tty *tp = km_tty[0]; /* XXX */ local [all...] |
H A D | fasttrap_isa.c | 264 fasttrap_tracepoint_init(proc_t *p, fasttrap_tracepoint_t *tp, user_addr_t pc, argument 316 tp->ftt_size = (uint8_t)size; 317 tp->ftt_segment = FASTTRAP_SEG_NONE; 355 if (tp->ftt_segment != FASTTRAP_SEG_NONE) 358 tp->ftt_segment = seg; 378 bcopy(instr, tp->ftt_instr, FASTTRAP_MAX_INSTR_SIZE); 380 tp->ftt_type = FASTTRAP_T_COMMON; 399 tp->ftt_type = FASTTRAP_T_JCC; 400 tp->ftt_code = (instr[start + 1] & 0x0f) | FASTTRAP_JO; 401 tp 646 fasttrap_tracepoint_install(proc_t *p, fasttrap_tracepoint_t *tp) argument 657 fasttrap_tracepoint_remove(proc_t *p, fasttrap_tracepoint_t *tp) argument 695 fasttrap_tracepoint_t *tp; local 827 fasttrap_do_seg(fasttrap_tracepoint_t *tp, x86_saved_state_t *rp, user_addr_t *addr) argument 963 fasttrap_tracepoint_t *tp, tp_local; local 1521 fasttrap_tracepoint_t *tp, tp_local; local [all...] |
/darwin-on-arm/xnu/bsd/kern/ |
H A D | tty.c | 87 * of in drivers and fix drivers that write to tp->t_termios. 122 #define TTY_LOCK_OWNED(tp) do {lck_mtx_assert(&tp->t_lock, LCK_MTX_ASSERT_OWNED); } while (0) 123 #define TTY_LOCK_NOTOWNED(tp) do {lck_mtx_assert(&tp->t_lock, LCK_MTX_ASSERT_NOTOWNED); } while (0) 125 #define TTY_LOCK_OWNED(tp) 126 #define TTY_LOCK_NOTOWNED(tp) 133 static int ttnread(struct tty *tp); 134 static void ttyecho(int c, struct tty *tp); 135 static int ttyoutput(int c, struct tty *tp); 308 tty_lock(struct tty *tp) argument 327 tty_unlock(struct tty *tp) argument 342 ttyopen(dev_t device, struct tty *tp) argument 427 ttyclose(struct tty *tp) argument 496 ttyinput(int c, struct tty *tp) argument 881 ttyoutput(int c, struct tty *tp) argument 982 ttioctl(struct tty *tp, u_long cmd, caddr_t data, int flag, proc_t p) argument 1052 ttioctl_locked(struct tty *tp, u_long cmd, caddr_t data, int flag, proc_t p) argument 1510 ttyselect(struct tty *tp, int rw, void *wql, proc_t p) argument 1560 struct tty *tp = cdevsw[major(dev)].d_ttys[minor(dev)]; local 1574 ttnread(struct tty *tp) argument 1611 ttywait(struct tty *tp) argument 1646 ttystop(struct tty *tp, int rw) argument 1659 ttywflush(struct tty *tp) argument 1676 ttyflush(struct tty *tp, int rw) argument 1761 ttyblock(struct tty *tp) argument 1781 ttyunblock(struct tty *tp) argument 1810 ttstart(struct tty *tp) argument 1829 ttylclose(struct tty *tp, int flag) argument 1850 ttymodem(struct tty *tp, int flag) argument 1910 ttypend(struct tty *tp) argument 1936 ttread(struct tty *tp, struct uio *uio, int flag) argument 2246 ttycheckoutq(struct tty *tp, int wait) argument 2281 ttwrite(struct tty *tp, struct uio *uio, int flag) argument 2484 ttyrub(int c, struct tty *tp) argument 2570 ttyrubo(struct tty *tp, int count) argument 2590 ttyretype(struct tty *tp) argument 2625 ttyecho(int c, struct tty *tp) argument 2655 ttwakeup(struct tty *tp) argument 2686 ttwwakeup(struct tty *tp) argument 2733 ttsetwater(struct tty *tp) argument 2766 ttyinfo_locked(struct tty *tp) argument 2965 tputchar(int c, struct tty *tp) argument 3010 ttysleep(struct tty *tp, void *chan, int pri, const char *wmesg, int timo) argument 3040 struct tty *tp; local 3061 ttyhold(struct tty *tp) argument 3072 ttyfree(struct tty *tp) argument 3093 ttydeallocate(struct tty *tp) argument 3115 isbackground(proc_t p, struct tty *tp) argument 3123 isctty(proc_t p, struct tty *tp) argument 3135 isctty_sp(proc_t p, struct tty *tp, struct session *sessp) argument [all...] |
H A D | tty_ptmx.c | 99 static void ptsd_start(struct tty *tp); 100 static void ptmx_wakeup(struct tty *tp, int flag); 558 struct tty *tp; local 570 tp = pti->pt_tty; 571 tty_lock(tp); 573 if ((tp->t_state & TS_ISOPEN) == 0) { 574 termioschars(&tp->t_termios); /* Set up default chars */ 575 tp->t_iflag = TTYDEF_IFLAG; 576 tp->t_oflag = TTYDEF_OFLAG; 577 tp 611 struct tty *tp; local 655 struct tty *tp; local 745 struct tty *tp; local 772 ptsd_start(struct tty *tp) argument 793 ptmx_wakeup(struct tty *tp, int flag) argument 812 struct tty *tp; local 855 struct tty *tp; local 891 struct tty *tp; local 963 ptsd_stop(struct tty *tp, int flush) argument 1001 ttypend(struct tty *tp) argument 1022 ttnread(struct tty *tp) argument 1041 struct tty *tp; local 1090 struct tty *tp; local 1154 ptmx_stop(__unused struct tty *tp, __unused int flush) argument 1168 struct tty *tp; local 1288 struct tty *tp; local 1551 struct tty *tp; local 1576 struct tty *tp; local 1633 struct tty *tp = NULL; local 1681 ptsd_revoke_knotes(dev_t dev, struct tty *tp) argument [all...] |
H A D | tty_pty.c | 88 typedef void d_stop_t(struct tty *tp, int rw); 96 static void ptsstart(struct tty *tp); 97 static void ptcwakeup(struct tty *tp, int flag); 180 struct tty *tp; local 185 * the ttymalloc and the tp indirection. 196 if ((tp = pt_tty[minor(dev)] = ttymalloc()) == NULL) { 201 tp = pt_tty[minor(dev)]; 203 tty_lock(tp); 205 if ((tp->t_state & TS_ISOPEN) == 0) { 206 termioschars(&tp 240 struct tty *tp; local 273 struct tty *tp = pt_tty[minor(dev)]; local 362 struct tty *tp; local 388 ptsstart(struct tty *tp) argument 407 ptcwakeup(struct tty *tp, int flag) argument 424 struct tty *tp; local 465 struct tty *tp = pt_tty[minor(dev)]; local 495 struct tty *tp = pt_tty[minor(dev)]; local 565 ptsstop(struct tty *tp, int flush) argument 591 struct tty *tp = pt_tty[minor(dev)]; local 656 struct tty *tp = pt_tty[minor(dev)]; local 772 struct tty *tp = pt_tty[minor(dev)]; local [all...] |
H A D | tty_compat.c | 88 static int ttcompatgetflags(struct tty *tp); 89 static void ttcompatsetflags(struct tty *tp, struct termios *t); 90 static void ttcompatsetlflags(struct tty *tp, struct termios *t); 179 * Parameters struct tty *tp The tty on which the operation is 196 * Notes: This function may modify the contents of the tp->t_flags 200 * All other tp fields will remain unmodifed, since the struct 211 ttsetcompat(struct tty *tp, u_long *com, caddr_t data, struct termios *term) argument 232 else if (speed != ttcompatspeedtab(tp->t_ispeed, compatspeeds)) 235 term->c_ispeed = tp->t_ispeed; 238 else if (speed != ttcompatspeedtab(tp 361 ttcompat(struct tty *tp, u_long com, caddr_t data, int flag, struct proc *p) argument 518 ttcompatgetflags(struct tty *tp) argument 590 ttcompatsetflags(struct tty *tp, struct termios *t) argument 681 ttcompatsetlflags(struct tty *tp, struct termios *t) argument [all...] |
H A D | subr_prf.c | 216 struct tty *tp = TTY_NULL; local 223 if (sess && (tp = SESSION_TP(sess)) != TTY_NULL) { 224 /* ttycheckoutq(), tputchar() require a locked tp */ 225 tty_lock(tp); 226 if(ttycheckoutq(tp, 0)) { 231 tty_unlock(tp); 232 tp = TTY_NULL; 237 pca.tty = tp; 242 if (tp != NULL) 243 tty_unlock(tp); /* loc 258 ttyprintf(struct tty *tp, const char *fmt, ...) argument [all...] |
/darwin-on-arm/xnu/bsd/sys/ |
H A D | tty.h | 259 #define TSA_CARR_ON(tp) ((void *)&(tp)->t_rawq) 260 #define TSA_HUP_OR_INPUT(tp) ((void *)&(tp)->t_rawq.c_cf) 261 #define TSA_OCOMPLETE(tp) ((void *)&(tp)->t_outq.c_cl) 262 #define TSA_OLOWAT(tp) ((void *)&(tp)->t_outq) 263 #define TSA_PTC_READ(tp) ((void *)&(tp) [all...] |
H A D | conf.h | 116 typedef int stop_fcn_t(struct tty *tp, int rw); 240 typedef int l_open_t (dev_t dev, struct tty *tp); 241 typedef int l_close_t(struct tty *tp, int flags); 242 typedef int l_read_t (struct tty *tp, struct uio *uio, int flag); 243 typedef int l_write_t(struct tty *tp, struct uio *uio, int flag); 244 typedef int l_ioctl_t(struct tty *tp, u_long cmd, caddr_t data, int flag, 246 typedef int l_rint_t (int c, struct tty *tp); 247 typedef void l_start_t(struct tty *tp); 248 typedef int l_modem_t(struct tty *tp, int flag);
|
/darwin-on-arm/xnu/SETUP/config/ |
H A D | mkmakefile.c | 91 void put_source_file_name(FILE *fp, struct file_list *tp); 362 register struct file_list *tp, *pf; local 440 tp = 0; 441 if (first == 3 && (tp = fltail_lookup(this)) != 0) 443 fname, this, tp->f_fn); 560 if (tp == 0) 561 tp = new_fent(); 562 tp->f_fn = this; 563 tp->f_type = INVISIBLE; 564 tp 649 put_source_file_name(FILE *fp, struct file_list *tp) argument 660 register struct file_list *tp; local 726 register struct file_list *tp; local 756 register struct file_list *tp; local 905 const char *tp; local [all...] |
/darwin-on-arm/xnu/bsd/dev/dtrace/ |
H A D | fasttrap.c | 498 fasttrap_tracepoint_t *tp; local 502 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) { 503 if (tp->ftt_pid == ppid && 504 tp->ftt_proc->ftpc_acount != 0) { 505 fasttrap_tracepoint_remove(cp, tp); 514 ASSERT(tp->ftt_proc->ftpc_acount != 0); 594 fasttrap_tracepoint_t *tp, *new_t local 769 fasttrap_tracepoint_t **pp, *tp; local 1724 fasttrap_tracepoint_t *tp; local 2057 fasttrap_tracepoint_t *tp; local 2357 fasttrap_tracepoint_t *tp; local [all...] |