/src/tests/lib/semaphore/pthread/ |
t_sem_pth.c | 4 ATF_TP_ADD_TCS(tp) 7 ATF_TP_ADD_TC(tp, postwait); 8 ATF_TP_ADD_TC(tp, initvalue); 9 ATF_TP_ADD_TC(tp, destroy); 10 ATF_TP_ADD_TC(tp, busydestroy); 11 ATF_TP_ADD_TC(tp, blockwait); 12 ATF_TP_ADD_TC(tp, blocktimedwait); 13 ATF_TP_ADD_TC(tp, named); 14 ATF_TP_ADD_TC(tp, unlink);
|
/src/sys/netinet/ |
tcp_seq.h | 56 #define tcp_rcvseqinit(tp) \ 57 (tp)->rcv_adv = (tp)->rcv_nxt = (tp)->irs + 1 59 #define tcp_sendseqinit(tp) \ 60 (tp)->snd_una = (tp)->snd_nxt = (tp)->snd_max = (tp)->snd_up = \ 61 (tp)->snd_recover = (tp)->snd_high = (tp)->snd_fack = (tp)->is [all...] |
tcp_congctl.c | 201 static void tcp_reno_congestion_exp(struct tcpcb *tp); 209 static void tcp_cubic_slow_retransmit(struct tcpcb *tp); 318 tcp_congctl_select(struct tcpcb *tp, const char *name) 325 old_found = (tp == NULL || tp->t_congctl == NULL); 331 if (!old_found && tccp->congctl_ctl == tp->t_congctl) { 342 if (tp) { 346 tp->t_congctl = new_tccp->congctl_ctl; 363 tcp_congctl_release(struct tcpcb *tp) 367 KASSERT(tp->t_congctl) [all...] |
tcp_timer.c | 226 struct tcpcb *tp = arg; local in function:tcp_delack 235 if ((tp->t_flags & (TF_DEAD | TF_DELACK)) != TF_DELACK) { 239 if (!callout_expired(&tp->t_delack_ch)) { 244 tp->t_flags |= TF_ACKNOW; 246 (void) tcp_output(tp); 280 * Cancel all timers for TCP tp. 283 tcp_canceltimers(struct tcpcb *tp) 288 TCP_TIMER_DISARM(tp, i); 303 struct tcpcb *tp = arg; local in function:tcp_timer_rexmt 311 if ((tp->t_flags & TF_DEAD) != 0) 450 struct tcpcb *tp = arg; local in function:tcp_timer_persist 514 struct tcpcb *tp = arg; local in function:tcp_timer_keep 593 struct tcpcb *tp = arg; local in function:tcp_timer_2msl [all...] |
tcp_output.c | 226 tcp_segsize(struct tcpcb *tp, int *txsegsizep, int *rxsegsizep, 229 struct inpcb *inp = tp->t_inpcb; 240 switch (tp->t_family) { 262 if (tp->t_mtudisc && rt->rt_rmx.rmx_mtu != 0) { 279 else if (inp->inp_af == AF_INET && tp->t_mtudisc) 289 if (tp->t_mtudisc || in_localaddr(d)) 296 size = tp->t_mtudisc ? ifp->if_mtu : IPV6_MMTU; 307 optlen = tcp_optlen(tp); 310 * XXX tp->t_ourmss should have the right size, but without this code 318 optlen += ipsec4_hdrsiz_tcp(tp); [all...] |
/src/share/examples/refuse/virtdir/ |
virtdir.c | 68 mkdirs(virtdir_t *tp, const char *path, size_t size) 77 if ((ep = virtdir_find(tp, name, strlen(name))) == NULL) { 78 virtdir_add(tp, name, strlen(name), 'd', NULL, 0); 115 virtdir_init(virtdir_t *tp, const char *rootdir, struct stat *d, struct stat *f, struct stat *l) 117 (void) memcpy(&tp->dir, d, sizeof(tp->dir)); 118 tp->dir.st_mode = S_IFDIR | 0755; 119 tp->dir.st_nlink = 2; 120 (void) memcpy(&tp->file, f, sizeof(tp->file)) 304 virt_dirent_t *tp; local in function:main [all...] |
/src/sys/kern/ |
tty.c | 129 #define CONNECTED(tp) (ISSET(tp->t_state, TS_CARR_ON) || \ 130 ISSET(tp->t_cflag, CLOCAL | MDMBUF)) 244 tty_set_qsize(struct tty *tp, int newsize) 255 if (tp->t_outq.c_cc != 0) { 263 orawq = tp->t_rawq; 264 ocanq = tp->t_canq; 265 ooutq = tp->t_outq; 267 tp->t_qsize = newsize; 268 tp->t_rawq = rawq 1583 struct tty *tp; local in function:filt_ttyrdetach 1594 struct tty *tp; local in function:filt_ttyread 1610 struct tty *tp; local in function:filt_ttywdetach 1621 struct tty *tp; local in function:filt_ttywrite 1651 struct tty *tp; local in function:ttykqfilter 1831 struct tty *tp; local in function:ttrstrt 2931 struct tty *tp; local in function:tty_alloc 3107 struct tty *tp; local in function:ttysigintr [all...] |
/src/bin/ksh/ |
table.c | 17 static void texpand ARGS((struct table *tp, int nsize)); 33 tinit(tp, ap, tsize) 34 struct table *tp; 38 tp->areap = ap; 39 tp->tbls = NULL; 40 tp->size = tp->nfree = 0; 42 texpand(tp, tsize); 46 texpand(tp, nsize) 47 struct table *tp; [all...] |
/src/sbin/mount_qemufwcfg/ |
virtdir.c | 55 mkdirs(virtdir_t *tp, const char *path, size_t size) 64 if ((ep = virtdir_find(tp, name, strlen(name))) == NULL) { 65 virtdir_add(tp, name, strlen(name), 'd', NULL, 0, 0); 104 virtdir_init(virtdir_t *tp, const char *rootdir, const struct stat *d, 107 tp->dir = *d; 108 tp->dir.st_mode = S_IFDIR | 0755; 109 tp->dir.st_nlink = 2; 110 tp->file = *f; 111 tp->file.st_mode = S_IFREG | 0644; 112 tp->file.st_nlink = 1 [all...] |
/src/usr.sbin/tpctl/ |
tp.c | 1 /* $NetBSD: tp.c,v 1.9 2009/04/28 10:57:24 nonaka Exp $ */ 46 __RCSID("$NetBSD: tp.c,v 1.9 2009/04/28 10:57:24 nonaka Exp $"); 50 tp_init(struct tp *tp, int fd) 63 tp->fd = fd; 66 if (ioctl(tp->fd, WSMOUSEIO_GTYPE, &type) < 0) 73 if (ioctl(tp->fd, WSMOUSEIO_GCALIBCOORDS, &calibcoords) < 0) 76 flags = fcntl(tp->fd, F_GETFL); 80 if (fcntl(tp->fd, F_SETFL, flags) < 0) 84 if (ioctl(tp->fd, WSMOUSEIO_GETID, &id) == 0) [all...] |
/src/sys/arch/alpha/alpha/ |
promcons.c | 99 struct tty *tp; local in function:promopen 115 tp = prom_tty[unit] = tty_alloc(); 116 tty_attach(tp); 118 tp = prom_tty[unit]; 120 tp->t_oproc = promstart; 121 tp->t_param = promparam; 122 tp->t_dev = dev; 124 if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp)) { 129 if ((tp->t_state & TS_ISOPEN) == 0) { 130 tp->t_state |= TS_CARR_ON 158 struct tty *tp = prom_tty[unit]; local in function:promclose 169 struct tty *tp = prom_tty[minor(dev)]; local in function:promread 177 struct tty *tp = prom_tty[minor(dev)]; local in function:promwrite 185 struct tty *tp = prom_tty[minor(dev)]; local in function:prompoll 194 struct tty *tp = prom_tty[unit]; local in function:promioctl 245 struct tty *tp = v; local in function:promtimeout [all...] |
/src/sys/dev/arcbios/ |
arcbios_tty.c | 85 struct tty *tp; local in function:arcbios_ttyopen 99 tp = arcbios_tty[unit] = tty_alloc(); 100 tty_attach(tp); 102 tp = arcbios_tty[unit]; 104 tp->t_oproc = arcbios_tty_start; 105 tp->t_param = arcbios_tty_param; 106 tp->t_dev = dev; 108 if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp)) { 113 if ((tp->t_state & TS_ISOPEN) == 0) { 114 tp->t_state |= TS_CARR_ON 139 struct tty *tp = arcbios_tty[unit]; local in function:arcbios_ttyclose 150 struct tty *tp = arcbios_tty[minor(dev)]; local in function:arcbios_ttyread 158 struct tty *tp = arcbios_tty[minor(dev)]; local in function:arcbios_ttywrite 166 struct tty *tp = arcbios_tty[minor(dev)]; local in function:arcbios_ttypoll 175 struct tty *tp = arcbios_tty[unit]; local in function:arcbios_ttyioctl 246 struct tty *tp = v; local in function:arcbios_tty_poll [all...] |
/src/sys/arch/sun3/dev/ |
kd.c | 118 struct tty *tp; local in function:kd_init 120 tp = tty_alloc(); 121 callout_setfunc(&tp->t_rstrt_ch, kd_later, tp); 123 tp->t_oproc = kdstart; 124 tp->t_param = kdparam; 125 tp->t_dev = makedev(cdevsw_lookup_major(&kd_cdevsw), 0); 127 tty_attach(tp); 128 kd->kd_tty = tp; 147 struct tty *tp; local in function:kdopen 198 struct tty *tp; local in function:kdclose 219 struct tty *tp; local in function:kdread 231 struct tty *tp; local in function:kdwrite 243 struct tty *tp; local in function:kdpoll 255 struct tty *tp; local in function:kdioctl 336 struct tty *tp = tpaddr; local in function:kd_later 409 struct tty *tp; local in function:kd_cons_input [all...] |
/src/sys/dev/hpc/ |
biconsdev.c | 117 struct tty *tp = &biconsdev_tty[0]; local in function:biconsdevattach 124 clalloc(&tp->t_rawq, 1024, 1); 125 clalloc(&tp->t_canq, 1024, 1); 127 clalloc(&tp->t_outq, 1024, 0); 129 tp->t_linesw = ttyldisc_default(); 132 tp->t_dev = makedev(maj, 0); 133 tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; 134 tp->t_param = (int (*)(struct tty *, struct termios *))nullop; 135 tp->t_winsize.ws_row = bicons_height 173 struct tty *tp = &biconsdev_tty[0]; local in function:biconsdevopen 201 struct tty *tp = &biconsdev_tty[0]; local in function:biconsdevclose 213 struct tty *tp = &biconsdev_tty[0]; local in function:biconsdevread 222 struct tty *tp = &biconsdev_tty[0]; local in function:biconsdevwrite 231 struct tty *tp = &biconsdev_tty[0]; local in function:biconsdevpoll 240 struct tty *tp = &biconsdev_tty[0]; local in function:biconsdevtty 248 struct tty *tp = &biconsdev_tty[0]; local in function:biconsdevioctl [all...] |
/src/sys/arch/news68k/news68k/ |
romcons.c | 142 struct tty *tp; local in function:romcons_open 147 if ((tp = sc->sc_tty) == 0) 148 sc->sc_tty = tp = tty_alloc(); 149 tp->t_oproc = romcons_start; 150 tp->t_param = romcons_param; 151 tp->t_dev = dev; 152 if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp)) 154 if ((tp->t_state & TS_ISOPEN) == 0) { 155 ttychars(tp); 156 tp->t_iflag = TTYDEF_IFLAG 178 struct tty *tp; local in function:romcons_close 193 struct tty *tp; local in function:romcons_read 205 struct tty *tp; local in function:romcons_write 216 struct tty *tp; local in function:romcons_poll 226 struct tty *tp; local in function:romcons_ioctl 286 struct tty *tp = sc->sc_tty; local in function:romcons_pollin 301 struct tty *tp; local in function:romcons_kbdinput [all...] |
/src/sys/net/ |
if_tun.c | 166 * Returns with tp locked (if found). 171 struct tun_softc *tp; local in function:tun_find_unit 175 LIST_FOREACH(tp, &tun_softc_list, tun_list) 176 if (unit == tp->tun_unit) 178 if (tp) 179 mutex_enter(&tp->tun_lock); 182 return tp; 187 * Remove tp from list and return it unlocked (if found). 192 struct tun_softc *tp; local in function:tun_find_zunit 195 LIST_FOREACH(tp, &tunz_softc_list, tun_list 237 struct tun_softc *tp; local in function:tun_alloc 263 struct tun_softc *tp; local in function:tun_clone_create 309 struct tun_softc *tp = (void *)ifp; local in function:tun_clone_destroy 350 struct tun_softc *tp; local in function:tunopen 391 struct tun_softc *tp; local in function:tunclose 500 struct tun_softc *tp = (struct tun_softc *)(ifp->if_softc); local in function:tun_ioctl 557 struct tun_softc *tp = ifp->if_softc; local in function:tun_output 660 struct tun_softc *tp = cookie; local in function:tun_i_softintr 670 struct tun_softc *tp = cookie; local in function:tun_o_softintr 683 struct tun_softc *tp; local in function:tunioctl 788 struct tun_softc *tp; local in function:tunread 854 struct tun_softc *tp; local in function:tunwrite 1007 struct tun_softc *tp = ifp->if_softc; local in function:tunstart 1031 struct tun_softc *tp; local in function:tunpoll 1066 struct tun_softc *tp = kn->kn_hook; local in function:filt_tunrdetach 1076 struct tun_softc *tp = kn->kn_hook; local in function:filt_tunread 1109 struct tun_softc *tp; local in function:tunkqfilter [all...] |
/src/bin/stty/ |
gfmt.c | 62 gprint(struct termios *tp) 67 tp->c_cflag, tp->c_iflag, tp->c_lflag, tp->c_oflag); 69 (void)printf("%s=%x:", cp->name, tp->c_cc[cp->sub]); 70 (void)printf("ispeed=%d:ospeed=%d\n", cfgetispeed(tp), cfgetospeed(tp)); 74 gread(struct termios *tp, char *s) 93 tp->c_cflag = tmp [all...] |
/src/sys/arch/mips/adm5120/dev/ |
uart.c | 129 struct tty *tp; local in function:uart_attach 150 tp = tty_alloc(); 151 tp->t_oproc = uart_start; 152 tp->t_param = uart_param; 153 sc->sc_tty = tp; 154 tp->t_dev = makedev(maj, minor); 155 tty_attach(tp); 158 cn_tab->cn_dev = tp->t_dev; 203 struct tty *tp = sc->sc_tty; local in function:uart_open 208 tp->t_dev = dev 235 struct tty *tp = sc->sc_tty; local in function:uart_close 247 struct tty *tp = sc->sc_tty; local in function:uart_read 256 struct tty *tp = sc->sc_tty; local in function:uart_write 265 struct tty *tp = sc->sc_tty; local in function:uart_poll 274 struct tty *tp = sc->sc_tty; local in function:uart_ioctl 336 struct tty *tp = sc->sc_tty; local in function:uart_intr [all...] |
/src/usr.sbin/lpr/lpd/ |
ttcompat.c | 61 sttygetoflags(struct termios *tp) 63 tcflag_t iflag = tp->c_iflag; 64 tcflag_t lflag = tp->c_lflag; 65 tcflag_t oflag = tp->c_oflag; 66 tcflag_t cflag = tp->c_cflag; 98 sttysetoflags(struct termios *tp, int flags) 100 tcflag_t iflag = tp->c_iflag; 101 tcflag_t oflag = tp->c_oflag; 102 tcflag_t lflag = tp->c_lflag; 103 tcflag_t cflag = tp->c_cflag [all...] |
/src/sys/arch/sun2/dev/ |
kd.c | 129 struct tty *tp; local in function:kd_init 140 tp = tty_alloc(); 141 callout_setfunc(&tp->t_rstrt_ch, kd_later, tp); 142 tp->t_oproc = kdstart; 143 tp->t_param = kdparam; 144 tp->t_dev = makedev(cdevsw_lookup_major(&kd_cdevsw), 0); 146 tty_attach(tp); 147 kd->kd_tty = tp; 153 fbconstty = tp; 213 struct tty *tp; local in function:kdopen 268 struct tty *tp; local in function:kdclose 291 struct tty *tp; local in function:kdread 303 struct tty *tp; local in function:kdwrite 315 struct tty *tp; local in function:kdpoll 327 struct tty *tp; local in function:kdioctl 408 struct tty *tp = tpaddr; local in function:kd_later 471 struct tty *tp; local in function:kd_cons_input [all...] |
pcons.c | 133 struct tty *tp; local in function:pconsopen 138 if ((tp = sc->of_tty) == NULL) 139 sc->of_tty = tp = tty_alloc(); 140 tp->t_oproc = pconsstart; 141 tp->t_param = pconsparam; 142 tp->t_dev = dev; 144 if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp)) 146 if ((tp->t_state & TS_ISOPEN) == 0) { 147 ttychars(tp); 148 tp->t_iflag = TTYDEF_IFLAG 170 struct tty *tp = sc->of_tty; local in function:pconsclose 183 struct tty *tp = sc->of_tty; local in function:pconsread 192 struct tty *tp = sc->of_tty; local in function:pconswrite 201 struct tty *tp = sc->of_tty; local in function:pconspoll 210 struct tty *tp = sc->of_tty; local in function:pconsioctl 268 struct tty *tp = sc->of_tty; local in function:pcons_poll [all...] |
/src/usr.bin/man/ |
manconf.c | 102 TAG *tp; local in function:config 135 tp = gettag(p, 1); 136 if (!tp) 172 if (addentry(tp, t, 0) == -1) 178 if (addentry(tp, p, 0) == -1) 190 type = (char)((TAILQ_FIRST(&tp->entrylist) != NULL) ? 191 *(TAILQ_FIRST(&tp->entrylist)->s) : '\0'); 202 tp->s, p); 206 if (addentry(tp, p, 0) == -1) 226 TAG *tp; local in function:gettag [all...] |
/src/sys/arch/x86/x86/ |
x86_tlb.c | 92 #define TP_GET_COUNT(tp) ((tp)->tp_store[TP_COUNT] & PAGE_MASK) 93 #define TP_GET_USERPMAP(tp) ((tp)->tp_store[TP_USERPMAP] & 1) 94 #define TP_GET_GLOBAL(tp) ((tp)->tp_store[TP_GLOBAL] & 1) 95 #define TP_GET_DONE(tp) (atomic_load_relaxed(&(tp)->tp_store[TP_DONE]) & 1) 96 #define TP_GET_VA(tp, i) ((tp)->tp_store[(i)] & ~PAGE_MASK 175 pmap_tlb_packet_t *tp = (pmap_tlb_packet_t *)ci->ci_pmap_data; local in function:pmap_tlb_cpu_init 242 pmap_tlb_packet_t *tp; local in function:pmap_tlb_shootdown 362 volatile pmap_tlb_packet_t *tp, *ts; local in function:pmap_tlb_shootnow [all...] |
/src/sys/arch/sparc64/dev/ |
kd.c | 126 struct tty *tp; local in function:kd_init 131 tp = tty_alloc(); 132 callout_setfunc(&tp->t_rstrt_ch, kd_later, tp); 133 tp->t_oproc = kdstart; 134 tp->t_param = kdparam; 135 tp->t_dev = makedev(cdevsw_lookup_major(&kd_cdevsw), 0); 137 tty_attach(tp); 138 kd->kd_tty = tp; 144 fbconstty = tp; 170 struct tty *tp; local in function:kdopen 225 struct tty *tp; local in function:kdclose 248 struct tty *tp; local in function:kdread 260 struct tty *tp; local in function:kdwrite 272 struct tty *tp; local in function:kdpoll 284 struct tty *tp; local in function:kdioctl 363 struct tty *tp = tpaddr; local in function:kd_later 426 struct tty *tp; local in function:kd_cons_input [all...] |
pcons.c | 135 struct tty *tp; local in function:pconsopen 140 if (!(tp = sc->of_tty)) 141 sc->of_tty = tp = tty_alloc(); 142 tp->t_oproc = pconsstart; 143 tp->t_param = pconsparam; 144 tp->t_dev = dev; 146 if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp)) 148 if (!(tp->t_state & TS_ISOPEN)) { 149 ttychars(tp); 150 tp->t_iflag = TTYDEF_IFLAG 172 struct tty *tp = sc->of_tty; local in function:pconsclose 185 struct tty *tp = sc->of_tty; local in function:pconsread 194 struct tty *tp = sc->of_tty; local in function:pconswrite 203 struct tty *tp = sc->of_tty; local in function:pconspoll 212 struct tty *tp = sc->of_tty; local in function:pconsioctl 267 struct tty *tp = sc->of_tty; local in function:pcons_poll [all...] |