Symbol: tp
bin/csh/proc.c
629
struct process *pp, *tp;
bin/csh/proc.c
636
tp = pp;
bin/csh/proc.c
640
} while (pp != tp);
bin/csh/proc.c
653
struct process *tp;
bin/csh/proc.c
667
tp = pp;
bin/csh/proc.c
673
if (tp != pp && !hadnl && !(flag & FANCY) &&
bin/csh/proc.c
680
if (tp != pp && !hadnl) {
bin/csh/proc.c
685
if (pp == tp)
bin/csh/proc.c
767
if (tp == pp->p_friends) {
bin/csh/proc.c
773
!eq(tp->p_cwd->di_name, dcwd->di_name)) {
bin/csh/proc.c
775
dtildepr(value(STRhome), tp->p_cwd->di_name);
bin/csh/proc.c
787
if (tp == pp->p_friends) {
bin/csh/proc.c
792
if (flag & SHELLDIR && !eq(tp->p_cwd->di_name, dcwd->di_name)) {
bin/csh/proc.c
799
} while ((pp = pp->p_friends) != tp);
bin/csh/proc.c
803
ptprint(tp);
bin/csh/proc.c
811
ptprint(struct process *tp)
bin/csh/proc.c
819
pp = tp;
bin/csh/proc.c
827
} while ((pp = pp->p_friends) != tp);
bin/dd/dd_swab.c
58
char *tp;
bin/dd/dd_swab.c
65
tp = (char *)to;
bin/dd/dd_swab.c
66
#define STEP temp = *fp++,*tp++ = *fp++,*tp++ = temp
bin/ksh/c_ksh.c
430
struct tbl *tp;
bin/ksh/c_ksh.c
471
tp = NULL;
bin/ksh/c_ksh.c
473
tp = mytsearch(&keywords, id, hash(id));
bin/ksh/c_ksh.c
474
if (!tp && !pflag) {
bin/ksh/c_ksh.c
475
tp = mytsearch(&aliases, id, hash(id));
bin/ksh/c_ksh.c
476
if (tp && !(tp->flag & ISSET))
bin/ksh/c_ksh.c
477
tp = NULL;
bin/ksh/c_ksh.c
479
if (!tp)
bin/ksh/c_ksh.c
480
tp = findcom(id, fcflags);
bin/ksh/c_ksh.c
481
if (vflag || (tp->type != CALIAS && tp->type != CEXEC
bin/ksh/c_ksh.c
482
&& tp->type != CTALIAS))
bin/ksh/c_ksh.c
484
switch (tp->type) {
bin/ksh/c_ksh.c
492
(tp->flag & EXPORT) ? "exported "
bin/ksh/c_ksh.c
496
print_value_quoted(tp->val.s);
bin/ksh/c_ksh.c
501
if (tp->flag & EXPORT)
bin/ksh/c_ksh.c
503
if (tp->flag & TRACE)
bin/ksh/c_ksh.c
505
if (!(tp->flag & ISSET)) {
bin/ksh/c_ksh.c
507
if (tp->u.fpath)
bin/ksh/c_ksh.c
509
tp->u.fpath);
bin/ksh/c_ksh.c
517
(tp->flag & SPEC_BI) ? " special" : null);
bin/ksh/c_ksh.c
521
if (tp->flag & ISSET) {
bin/ksh/c_ksh.c
524
if (tp->type == CTALIAS)
bin/ksh/c_ksh.c
527
(tp->flag & EXPORT) ?
bin/ksh/c_ksh.c
531
shprintf("%s", tp->val.s);
bin/ksh/edit.c
933
glob_table(pat, wp, tp)
bin/ksh/edit.c
936
struct table *tp;
bin/ksh/edit.c
941
for (ksh_twalk(&ts, tp); (te = tnext(&ts)); ) {
bin/ksh/eval.c
1219
char *tp, *r;
bin/ksh/eval.c
1221
Xinit(ts, tp, 16, ATEMP);
bin/ksh/eval.c
1226
Xcheck(ts, tp);
bin/ksh/eval.c
1227
*tp++ = p[1];
bin/ksh/eval.c
1230
*tp = '\0';
bin/ksh/eval.c
1231
r = (p[0] == EOS || p[0] == CHAR || p[0] == CSUBST) ? tilde(Xstring(ts, tp)) : (char *) 0;
bin/ksh/eval.c
1232
Xfree(ts, tp);
bin/ksh/exec.c
1002
for (ksh_twalk(&ts, &taliases); (tp = tnext(&ts)) != NULL; )
bin/ksh/exec.c
1003
if ((tp->flag&ISSET) && (all || !ISDIRSEP(tp->val.s[0]))) {
bin/ksh/exec.c
1004
if (tp->flag&ALLOC) {
bin/ksh/exec.c
1005
tp->flag &= ~(ALLOC|ISSET);
bin/ksh/exec.c
1006
afree(tp->val.s, APERM);
bin/ksh/exec.c
1008
tp->flag &= ~ISSET;
bin/ksh/exec.c
1091
call_builtin(tp, wp)
bin/ksh/exec.c
1092
struct tbl *tp;
bin/ksh/exec.c
1098
builtin_flag = tp->flag;
bin/ksh/exec.c
1102
rv = (*tp->val.f)(wp);
bin/ksh/exec.c
1114
iosetup(iop, tp)
bin/ksh/exec.c
1116
struct tbl *tp;
bin/ksh/exec.c
1238
else if (tp && tp->type == CSHELL && tp->val.f == c_exec) {
bin/ksh/exec.c
131
tp = findcom(ap[0], FC_BI|FC_FUNC);
bin/ksh/exec.c
144
if (iosetup(*iowp, tp) < 0) {
bin/ksh/exec.c
149
if (tp && tp->type == CSHELL
bin/ksh/exec.c
150
&& (tp->flag & SPEC_BI))
bin/ksh/exec.c
159
rv = comexec(t, tp, ap, flags);
bin/ksh/exec.c
445
comexec(t, tp, ap, flags)
bin/ksh/exec.c
447
struct tbl *volatile tp;
bin/ksh/exec.c
490
while (tp && tp->type == CSHELL) {
bin/ksh/exec.c
492
if (tp->val.f == c_builtin) {
bin/ksh/exec.c
494
tp = NULL;
bin/ksh/exec.c
497
tp = findcom(cp, FC_BI);
bin/ksh/exec.c
498
if (tp == NULL)
bin/ksh/exec.c
501
} else if (tp->val.f == c_exec) {
bin/ksh/exec.c
506
} else if (tp->val.f == c_command) {
bin/ksh/exec.c
541
tp = findcom(ap[0], fcflags & (FC_BI|FC_FUNC));
bin/ksh/exec.c
543
if (keepasn_ok && (!ap[0] || (tp && (tp->flag & KEEPASN))))
bin/ksh/exec.c
549
if (keepasn_ok && tp && tp->type == CFUNC
bin/ksh/exec.c
550
&& !(tp->flag & FKSH)) {
bin/ksh/exec.c
577
} else if (!tp) {
bin/ksh/exec.c
583
tp = findcom(cp, fcflags);
bin/ksh/exec.c
586
switch (tp->type) {
bin/ksh/exec.c
588
rv = call_builtin(tp, ap);
bin/ksh/exec.c
597
if (!(tp->flag & ISSET)) {
bin/ksh/exec.c
600
if (!tp->u.fpath) {
bin/ksh/exec.c
601
if (tp->u2.errno_) {
bin/ksh/exec.c
604
cp, strerror(tp->u2.errno_));
bin/ksh/exec.c
613
if (include(tp->u.fpath, 0, (char **) 0, 0) < 0) {
bin/ksh/exec.c
616
cp, tp->u.fpath, strerror(errno));
bin/ksh/exec.c
625
cp, tp->u.fpath);
bin/ksh/exec.c
629
tp = ftp;
bin/ksh/exec.c
636
if (tp->flag & FKSH)
bin/ksh/exec.c
647
if (tp->flag & FKSH) {
bin/ksh/exec.c
654
Flag(FXTRACE) = tp->flag & TRACE ? true : false;
bin/ksh/exec.c
656
old_inuse = tp->flag & FINUSE;
bin/ksh/exec.c
657
tp->flag |= FINUSE;
bin/ksh/exec.c
663
exstat = execute(tp->val.t, flags & XERROK);
bin/ksh/exec.c
668
tp->flag = (tp->flag & ~FINUSE) | old_inuse;
bin/ksh/exec.c
673
if ((tp->flag & (FDELETE|FINUSE)) == FDELETE) {
bin/ksh/exec.c
674
if (tp->flag & ALLOC) {
bin/ksh/exec.c
675
tp->flag &= ~ALLOC;
bin/ksh/exec.c
676
tfree(tp->val.t, tp->areap);
bin/ksh/exec.c
678
tp->flag = 0;
bin/ksh/exec.c
701
if (!(tp->flag&ISSET)) {
bin/ksh/exec.c
707
if (tp->u2.errno_) {
bin/ksh/exec.c
709
strerror(tp->u2.errno_));
bin/ksh/exec.c
722
tp->val.s, KSH_RETURN_ERROR);
bin/ksh/exec.c
736
texec.str = tp->val.s;
bin/ksh/exec.c
751
scriptexec(tp, ap)
bin/ksh/exec.c
752
struct op *tp;
bin/ksh/exec.c
763
*tp->args-- = tp->str;
bin/ksh/exec.c
764
*tp->args = shellv;
bin/ksh/exec.c
766
execve(tp->args[0], tp->args, ap);
bin/ksh/exec.c
769
errorf("%s: %s: %s", tp->str, shellv, strerror(errno));
bin/ksh/exec.c
776
struct tbl *tp;
bin/ksh/exec.c
778
tp = mytsearch(&builtins, *wp, hash(*wp));
bin/ksh/exec.c
779
if (tp == NULL)
bin/ksh/exec.c
781
return call_builtin(tp, wp);
bin/ksh/exec.c
795
struct tbl *tp = (struct tbl *) 0;
bin/ksh/exec.c
798
tp = mytsearch(&l->funs, name, h);
bin/ksh/exec.c
799
if (tp)
bin/ksh/exec.c
802
tp = tenter(&l->funs, name, h);
bin/ksh/exec.c
803
tp->flag = DEFINED;
bin/ksh/exec.c
804
tp->type = CFUNC;
bin/ksh/exec.c
805
tp->val.t = (struct op *) 0;
bin/ksh/exec.c
809
return tp;
bin/ksh/exec.c
821
struct tbl *tp;
bin/ksh/exec.c
825
tp = findfunc(name, hash(name), true);
bin/ksh/exec.c
827
if (tp->flag & ISSET)
bin/ksh/exec.c
832
if (tp->flag & FINUSE) {
bin/ksh/exec.c
833
tp->name[0] = '\0';
bin/ksh/exec.c
834
tp->flag &= ~DEFINED; /* ensure it won't be found */
bin/ksh/exec.c
835
tp->flag |= FDELETE;
bin/ksh/exec.c
840
if (tp->flag & ALLOC) {
bin/ksh/exec.c
841
tp->flag &= ~(ISSET|ALLOC);
bin/ksh/exec.c
842
tfree(tp->val.t, tp->areap);
bin/ksh/exec.c
846
mytdelete(tp);
bin/ksh/exec.c
850
tp->val.t = tcopy(t->left, tp->areap);
bin/ksh/exec.c
851
tp->flag |= (ISSET|ALLOC);
bin/ksh/exec.c
853
tp->flag |= FKSH;
bin/ksh/exec.c
866
struct tbl *tp;
bin/ksh/exec.c
87
struct tbl *tp = NULL;
bin/ksh/exec.c
881
tp = tenter(&builtins, name, hash(name));
bin/ksh/exec.c
882
tp->flag = DEFINED | flag;
bin/ksh/exec.c
883
tp->type = CSHELL;
bin/ksh/exec.c
884
tp->val.f = func;
bin/ksh/exec.c
898
struct tbl *tp = NULL, *tbi;
bin/ksh/exec.c
914
tp = tbi;
bin/ksh/exec.c
915
if (!tp && (flags & FC_FUNC)) {
bin/ksh/exec.c
916
tp = findfunc(name, h, false);
bin/ksh/exec.c
917
if (tp && !(tp->flag & ISSET)) {
bin/ksh/exec.c
919
tp->u.fpath = (char *) 0;
bin/ksh/exec.c
920
tp->u2.errno_ = 0;
bin/ksh/exec.c
922
tp->u.fpath = search(name, fpath, R_OK,
bin/ksh/exec.c
923
&tp->u2.errno_);
bin/ksh/exec.c
926
if (!tp && (flags & FC_REGBI) && tbi && (tbi->flag & REG_BI))
bin/ksh/exec.c
927
tp = tbi;
bin/ksh/exec.c
936
if (!tp && (flags & FC_UNREGBI) && tbi)
bin/ksh/exec.c
937
tp = tbi;
bin/ksh/exec.c
938
if (!tp && (flags & FC_PATH) && !(flags & FC_DEFPATH)) {
bin/ksh/exec.c
939
tp = mytsearch(&taliases, name, h);
bin/ksh/exec.c
940
if (tp && (tp->flag & ISSET) && eaccess(tp->val.s, X_OK) != 0) {
bin/ksh/exec.c
941
if (tp->flag & ALLOC) {
bin/ksh/exec.c
942
tp->flag &= ~ALLOC;
bin/ksh/exec.c
943
afree(tp->val.s, APERM);
bin/ksh/exec.c
945
tp->flag &= ~ISSET;
bin/ksh/exec.c
950
if ((!tp || (tp->type == CTALIAS && !(tp->flag&ISSET)))
bin/ksh/exec.c
953
if (!tp) {
bin/ksh/exec.c
955
tp = tenter(&taliases, name, h);
bin/ksh/exec.c
956
tp->type = CTALIAS;
bin/ksh/exec.c
958
tp = &temp;
bin/ksh/exec.c
959
tp->type = CEXEC;
bin/ksh/exec.c
961
tp->flag = DEFINED; /* make ~ISSET */
bin/ksh/exec.c
964
X_OK, &tp->u2.errno_);
bin/ksh/exec.c
966
if (tp == &temp) {
bin/ksh/exec.c
967
tp->val.s = npath;
bin/ksh/exec.c
969
tp->val.s = str_save(npath, APERM);
bin/ksh/exec.c
972
tp->flag |= ISSET|ALLOC;
bin/ksh/exec.c
976
&tp->u2.errno_)) != (char *) 0)
bin/ksh/exec.c
983
tp = &temp;
bin/ksh/exec.c
984
tp->type = CFUNC;
bin/ksh/exec.c
985
tp->flag = DEFINED; /* make ~ISSET */
bin/ksh/exec.c
986
tp->u.fpath = npath;
bin/ksh/exec.c
989
return tp;
bin/ksh/exec.c
999
struct tbl *tp;
bin/ksh/io.c
452
struct temp *tp;
bin/ksh/io.c
461
tp = (struct temp *) alloc(sizeof(struct temp) + len, ap);
bin/ksh/io.c
462
tp->name = pathx = (char *) &tp[1];
bin/ksh/io.c
463
tp->shf = (struct shf *) 0;
bin/ksh/io.c
464
tp->type = type;
bin/ksh/io.c
469
tp->shf = shf_fdopen(fd, SHF_WR, (struct shf *) 0);
bin/ksh/io.c
480
tp->shf = shf_fdopen(fd, SHF_WR, (struct shf *) 0);
bin/ksh/io.c
497
tp->pid = procpid;
bin/ksh/io.c
499
tp->next = *tlist;
bin/ksh/io.c
500
*tlist = tp;
bin/ksh/io.c
502
return tp;
bin/ksh/main.c
28
static void remove_temps ARGS((struct temp *tp));
bin/ksh/main.c
762
remove_temps(tp)
bin/ksh/main.c
763
struct temp *tp;
bin/ksh/main.c
765
for (; tp != NULL; tp = tp->next)
bin/ksh/main.c
766
if (tp->pid == procpid) {
bin/ksh/main.c
767
unlink(tp->name);
bin/ksh/table.c
105
tenter(tp, n, h)
bin/ksh/table.c
106
struct table *tp; /* table */
bin/ksh/table.c
113
if (tp->size == 0)
bin/ksh/table.c
114
texpand(tp, INIT_TBLS);
bin/ksh/table.c
117
for (pp = &tp->tbls[h & (tp->size-1)]; (p = *pp) != NULL; pp--) {
bin/ksh/table.c
120
if (pp == tp->tbls) /* wrap */
bin/ksh/table.c
121
pp += tp->size;
bin/ksh/table.c
124
if (tp->nfree <= 0) { /* too full */
bin/ksh/table.c
125
texpand(tp, 2*tp->size);
bin/ksh/table.c
132
tp->areap);
bin/ksh/table.c
135
p->areap = tp->areap;
bin/ksh/table.c
141
tp->nfree--;
bin/ksh/table.c
154
ksh_twalk(ts, tp)
bin/ksh/table.c
156
struct table *tp;
bin/ksh/table.c
158
ts->left = tp->size;
bin/ksh/table.c
159
ts->next = tp->tbls;
bin/ksh/table.c
17
static void texpand ARGS((struct table *tp, int nsize));
bin/ksh/table.c
182
tsort(tp)
bin/ksh/table.c
183
struct table *tp;
bin/ksh/table.c
188
p = (struct tbl **)alloc(sizeofN(struct tbl *, tp->size+1), ATEMP);
bin/ksh/table.c
189
sp = tp->tbls; /* source */
bin/ksh/table.c
191
for (i = 0; i < tp->size; i++)
bin/ksh/table.c
203
void tprintinfo ARGS((struct table *tp));
bin/ksh/table.c
206
tprintinfo(tp)
bin/ksh/table.c
207
struct table *tp;
bin/ksh/table.c
217
shellf("table size %d, nfree %d\n", tp->size, tp->nfree);
bin/ksh/table.c
219
ksh_twalk(&ts, tp);
bin/ksh/table.c
227
for (pp = &tp->tbls[h & (tp->size-1)]; (p = *pp); pp--) {
bin/ksh/table.c
232
if (pp == tp->tbls) /* wrap */
bin/ksh/table.c
233
pp += tp->size;
bin/ksh/table.c
33
tinit(tp, ap, tsize)
bin/ksh/table.c
34
struct table *tp;
bin/ksh/table.c
38
tp->areap = ap;
bin/ksh/table.c
39
tp->tbls = NULL;
bin/ksh/table.c
40
tp->size = tp->nfree = 0;
bin/ksh/table.c
42
texpand(tp, tsize);
bin/ksh/table.c
46
texpand(tp, nsize)
bin/ksh/table.c
47
struct table *tp;
bin/ksh/table.c
52
struct tbl **ntblp, **otblp = tp->tbls;
bin/ksh/table.c
53
int osize = tp->size;
bin/ksh/table.c
55
ntblp = (struct tbl**) alloc(sizeofN(struct tbl *, nsize), tp->areap);
bin/ksh/table.c
58
tp->size = nsize;
bin/ksh/table.c
59
tp->nfree = 8*nsize/10; /* table can get 80% full */
bin/ksh/table.c
60
tp->tbls = ntblp;
bin/ksh/table.c
67
& (tp->size-1)];
bin/ksh/table.c
70
p += tp->size;
bin/ksh/table.c
72
tp->nfree--;
bin/ksh/table.c
74
afree((void*)tblp, tp->areap);
bin/ksh/table.c
78
afree((void*)otblp, tp->areap);
bin/ksh/table.c
82
mytsearch(tp, n, h)
bin/ksh/table.c
83
struct table *tp; /* table */
bin/ksh/table.c
89
if (tp->size == 0)
bin/ksh/table.c
93
for (pp = &tp->tbls[h & (tp->size-1)]; (p = *pp) != NULL; pp--) {
bin/ksh/table.c
97
if (pp == tp->tbls) /* wrap */
bin/ksh/table.c
98
pp += tp->size;
bin/ksh/var.c
124
struct tbl *tp;
bin/ksh/var.c
128
tp = tenter(&specials, names[i].name, hash(names[i].name));
bin/ksh/var.c
129
tp->flag = DEFINED|ISSET;
bin/ksh/var.c
130
tp->type = names[i].v;
bin/ksh/var.c
927
struct tbl *tp;
bin/ksh/var.c
929
tp = mytsearch(&specials, name, hash(name));
bin/ksh/var.c
930
return tp && (tp->flag & ISSET) ? tp->type : V_NONE;
bin/ksh/var.c
938
struct tbl *tp;
bin/ksh/var.c
940
tp = mytsearch(&specials, name, hash(name));
bin/ksh/var.c
941
if (tp)
bin/ksh/var.c
942
mytdelete(tp);
bin/ps/print.c
119
const struct tm *tp)
bin/ps/print.c
121
if (tp == NULL || strftime(buf, bufsiz, fmt, tp) == 0)
bin/ps/print.c
793
struct tm *tp;
bin/ps/print.c
804
tp = localtime(&startt);
bin/ps/print.c
808
safe_strftime(buf, sizeof(buf) - 1, "%l:%M%p", tp);
bin/ps/print.c
810
safe_strftime(buf, sizeof(buf) - 1, "%a%I%p", tp);
bin/ps/print.c
812
safe_strftime(buf, sizeof(buf) - 1, "%e%b%y", tp);
bin/sh/trap.c
445
char * volatile *tp;
bin/sh/trap.c
454
for (tp = &trap[1] ; tp < &trap[NSIG] ; tp++) {
bin/sh/trap.c
455
if (*tp && **tp) { /* trap not NULL or SIG_IGN */
bin/sh/trap.c
457
setsignal(tp - trap, vforked == 1);
bin/sh/trap.c
468
char * volatile *tp;
bin/sh/trap.c
472
for (tp = trap ; tp < &trap[NSIG] ; tp++)
bin/sh/trap.c
473
if (*tp && **tp) {
bin/sh/trap.c
474
ckfree(*tp);
bin/sh/trap.c
475
*tp = NULL;
bin/sh/trap.c
488
char * volatile *tp;
bin/sh/trap.c
493
for (tp = trap ; tp < &trap[NSIG] ; tp++)
bin/sh/trap.c
494
if (*tp && **tp) /* trap not NULL or SIG_IGN */
bin/stty/gfmt.c
103
tp->c_ispeed = tmp;
bin/stty/gfmt.c
108
tp->c_lflag = tmp;
bin/stty/gfmt.c
112
tp->c_oflag = tmp;
bin/stty/gfmt.c
118
tp->c_ospeed = tmp;
bin/stty/gfmt.c
126
tp->c_cc[cp->sub] = tmp;
bin/stty/gfmt.c
62
gprint(struct termios *tp)
bin/stty/gfmt.c
67
tp->c_cflag, tp->c_iflag, tp->c_lflag, tp->c_oflag);
bin/stty/gfmt.c
69
(void)printf("%s=%x:", cp->name, tp->c_cc[cp->sub]);
bin/stty/gfmt.c
70
(void)printf("ispeed=%d:ospeed=%d\n", cfgetispeed(tp), cfgetospeed(tp));
bin/stty/gfmt.c
74
gread(struct termios *tp, char *s)
bin/stty/gfmt.c
93
tp->c_cflag = tmp;
bin/stty/gfmt.c
97
tp->c_iflag = tmp;
bin/stty/print.c
112
tmp = tp->c_iflag;
bin/stty/print.c
129
tmp = tp->c_oflag;
bin/stty/print.c
139
tmp = tp->c_cflag;
bin/stty/print.c
166
cc = tp->c_cc;
bin/stty/print.c
55
print(struct termios *tp, struct winsize *wp, int queue, const char *ldisc,
bin/stty/print.c
67
ispeed = cfgetispeed(tp);
bin/stty/print.c
68
ospeed = cfgetospeed(tp);
bin/stty/print.c
91
tmp = tp->c_lflag;
crypto/dist/ipsec-tools/src/setkey/setkey.c
1009
struct timeval tp;
crypto/dist/ipsec-tools/src/setkey/setkey.c
1012
if (gettimeofday(&tp, NULL) == -1) {
crypto/dist/ipsec-tools/src/setkey/setkey.c
1019
s = (tp.tv_sec + thiszone) % 86400;
crypto/dist/ipsec-tools/src/setkey/setkey.c
1021
s / 3600, (s % 3600) / 60, s % 60, (uint32_t)tp.tv_usec);
crypto/dist/ipsec-tools/src/setkey/setkey.c
1024
printf("%u.%06u ", (uint32_t)tp.tv_sec, (uint32_t)tp.tv_usec);
dist/pf/libexec/tftp-proxy/tftp-proxy.c
231
tp = (struct tftphdr *)req;
dist/pf/libexec/tftp-proxy/tftp-proxy.c
232
if (!(ntohs(tp->th_opcode) == RRQ || ntohs(tp->th_opcode) == WRQ)) {
dist/pf/libexec/tftp-proxy/tftp-proxy.c
296
opcode(ntohs(tp->th_opcode)),
dist/pf/libexec/tftp-proxy/tftp-proxy.c
297
tp->th_stuff);
dist/pf/libexec/tftp-proxy/tftp-proxy.c
347
if (send(out_fd, tp, reqsize, 0) < 0) {
dist/pf/libexec/tftp-proxy/tftp-proxy.c
87
struct tftphdr *tp;
dist/pf/usr.sbin/authpf/authpf.c
353
char *pair[4], *cp, *tp;
dist/pf/usr.sbin/authpf/authpf.c
383
tp = pair[1] + strlen(pair[1]);
dist/pf/usr.sbin/authpf/authpf.c
384
while ((*tp == ' ' || *tp == '\t') && tp >= pair[1])
dist/pf/usr.sbin/authpf/authpf.c
385
*tp-- = '\0';
games/fortune/fortune/fortune.c
1135
zero_tbl(STRFILE *tp)
games/fortune/fortune/fortune.c
1137
tp->str_numstr = 0;
games/fortune/fortune/fortune.c
1138
tp->str_longlen = 0;
games/fortune/fortune/fortune.c
1139
tp->str_shortlen = -1;
games/hack/hack.eat.c
466
int tp = 0;
games/hack/hack.eat.c
468
tp++;
games/hack/hack.eat.c
474
tp++;
games/hack/hack.eat.c
482
tp++;
games/hack/hack.eat.c
546
tp++;
games/hack/hack.eat.c
552
tp++;
games/hack/hack.eat.c
560
return (tp);
games/mille/move.c
570
CARD *cp, *tp;
games/mille/move.c
576
for (tp = cp + 1; tp < hand; tp++)
games/mille/move.c
577
if (*cp > *tp) {
games/mille/move.c
579
*cp = *tp;
games/mille/move.c
580
*tp = temp;
games/mille/save.c
121
time(tp); /* get current time */
games/mille/save.c
128
if ((p = ctime(tp)) == NULL)
games/mille/save.c
64
time_t *tp;
games/mille/save.c
71
tp = &tme;
games/monop/prop.c
66
OWN *tp, *last_tp;
games/monop/prop.c
75
for (tp = *head; tp && value(tp->sqr) < val; tp = tp->next)
games/monop/prop.c
76
if (val == value(tp->sqr)) {
games/monop/prop.c
81
last_tp = tp;
games/monop/prop.c
82
op->next = tp;
games/monop/trade.c
111
TRADE *tp;
games/monop/trade.c
117
tp = &trades[sn];
games/monop/trade.c
118
tp->trader = pn;
games/monop/trade.c
134
add_list(pn, &(tp->prop_list), sqnum(op->sqr));
games/monop/trade.c
140
tp->cash = get_int("How much are you trading? ");
games/monop/trade.c
145
tp->gojf = get_int("How many are you trading? ");
games/monop/trade.c
146
if (tp->gojf > pp->num_gojf) {
games/monop/trade.c
179
TRADE *tp;
games/monop/trade.c
183
tp = &trades[i];
games/monop/trade.c
185
printf("Player %s (%d) gives:\n", play[tp->trader].name,
games/monop/trade.c
186
tp->trader+1);
games/monop/trade.c
187
if (tp->cash > 0)
games/monop/trade.c
188
printf("\t$%d\n", tp->cash), some++;
games/monop/trade.c
189
if (tp->gojf > 0)
games/monop/trade.c
190
printf("\t%d get-out-of-jail-free card(s)\n", tp->gojf),
games/monop/trade.c
192
if (tp->prop_list) {
games/monop/trade.c
193
for (op = tp->prop_list; op; op = op->next)
games/quiz/quiz.c
330
appdstr(char *s, const char *tp, size_t len)
games/quiz/quiz.c
345
while ((ch = *mp++ = *tp++) && ch != '\n')
games/sail/assorted.c
58
const struct Tables *tp;
games/sail/assorted.c
72
tp = &(rig ? RigTable : HullTable)[hittable][roll-1];
games/sail/assorted.c
73
Chit = chits = tp->C;
games/sail/assorted.c
74
Rhit = rhits = tp->R;
games/sail/assorted.c
75
Hhit = hhits = tp->H;
games/sail/assorted.c
76
Ghit = ghits = tp->G;
games/sail/dr_1.c
425
char *tp = getenv("WOTD");
games/sail/dr_1.c
427
if (tp == 0)
games/sail/dr_1.c
430
*tp = toupper((unsigned char)*tp);
games/sail/dr_1.c
431
p = tp;
lib/libc/db/btree/bt_split.c
349
PAGE *l, *r, *tp;
lib/libc/db/btree/bt_split.c
404
if ((tp = mpool_get(t->bt_mp, h->nextpg, 0)) == NULL) {
lib/libc/db/btree/bt_split.c
409
tp->prevpg = r->pgno;
lib/libc/db/btree/bt_split.c
410
mpool_put(t->bt_mp, tp, MPOOL_DIRTY);
lib/libc/db/btree/bt_split.c
420
tp = bt_psplit(t, h, l, r, skip, ilen);
lib/libc/db/btree/bt_split.c
424
if (tp == l)
lib/libc/db/btree/bt_split.c
425
tp = h;
lib/libc/db/btree/bt_split.c
430
return (tp);
lib/libc/db/btree/bt_split.c
450
PAGE *l, *r, *tp;
lib/libc/db/btree/bt_split.c
471
tp = bt_psplit(t, h, l, r, skip, ilen);
lib/libc/db/btree/bt_split.c
475
return (tp);
lib/libc/db/hash/hash_bigkey.c
389
char *tp;
lib/libc/db/hash/hash_bigkey.c
429
tp = (char *)(void *)bp;
lib/libc/db/hash/hash_bigkey.c
431
val->data = (uint8_t *)tp + off;
lib/libc/db/hash/hash_bigkey.c
592
uint16_t *tp;
lib/libc/db/hash/hash_bigkey.c
627
tp = (uint16_t *)(void *)tmpp->page;
lib/libc/db/hash/hash_bigkey.c
628
_DIAGASSERT(FREESPACE(tp) >= OVFLSIZE);
lib/libc/db/hash/hash_bigkey.c
629
n = tp[0];
lib/libc/db/hash/hash_bigkey.c
630
off = OFFSET(tp);
lib/libc/db/hash/hash_bigkey.c
631
free_space = FREESPACE(tp);
lib/libc/db/hash/hash_bigkey.c
632
tp[++n] = (uint16_t)addr;
lib/libc/db/hash/hash_bigkey.c
633
tp[++n] = OVFLPAGE;
lib/libc/db/hash/hash_bigkey.c
634
tp[0] = n;
lib/libc/db/hash/hash_bigkey.c
635
OFFSET(tp) = off;
lib/libc/db/hash/hash_bigkey.c
638
FREESPACE(tp) = (uint16_t)temp;
lib/libc/db/hash/hash_bigkey.c
650
tp = (uint16_t *)(void *)big_keyp->page;
lib/libc/db/hash/hash_bigkey.c
652
if (tp[0] > 2) {
lib/libc/db/hash/hash_bigkey.c
660
n = tp[4];
lib/libc/db/hash/hash_bigkey.c
661
free_space = FREESPACE(tp);
lib/libc/db/hash/hash_bigkey.c
662
off = OFFSET(tp);
lib/libc/db/hash/hash_bigkey.c
663
tp[0] -= 2;
lib/libc/db/hash/hash_bigkey.c
666
FREESPACE(tp) = (uint16_t)temp;
lib/libc/db/hash/hash_bigkey.c
667
OFFSET(tp) = off;
lib/libc/db/hash/hash_bigkey.c
671
tp[4] = n;
lib/libc/gen/fstab.c
149
const char **tp;
lib/libc/gen/fstab.c
154
for (tp = fstab_type; *tp; tp++)
lib/libc/gen/fstab.c
155
if (strcmp(cp, *tp) == 0) {
lib/libc/gen/fstab.c
156
_fs_fstab.fs_type = __UNCONST(*tp);
lib/libc/gen/fstab.c
159
if (*tp)
lib/libc/gen/times.c
66
times(struct tms *tp)
lib/libc/gen/times.c
72
_DIAGASSERT(tp != NULL);
lib/libc/gen/times.c
83
tp->tms_utime = CONVTCK(ru.ru_utime);
lib/libc/gen/times.c
84
tp->tms_stime = CONVTCK(ru.ru_stime);
lib/libc/gen/times.c
87
tp->tms_cutime = CONVTCK(ru.ru_utime);
lib/libc/gen/times.c
88
tp->tms_cstime = CONVTCK(ru.ru_stime);
lib/libc/include/reentrant.h
219
#define thr_create(tp, ta, f, a) __libc_thr_create((tp), (ta), (f), (a))
lib/libc/inet/inet_cidr_pton.c
162
u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp;
lib/libc/inet/inet_cidr_pton.c
168
memset((tp = tmp), '\0', NS_IN6ADDRSZ);
lib/libc/inet/inet_cidr_pton.c
169
endp = tp + NS_IN6ADDRSZ;
lib/libc/inet/inet_cidr_pton.c
197
colonp = tp;
lib/libc/inet/inet_cidr_pton.c
202
if (tp + NS_INT16SZ > endp)
lib/libc/inet/inet_cidr_pton.c
204
*tp++ = (u_char) (val >> 8) & 0xff;
lib/libc/inet/inet_cidr_pton.c
205
*tp++ = (u_char) val & 0xff;
lib/libc/inet/inet_cidr_pton.c
210
if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) &&
lib/libc/inet/inet_cidr_pton.c
211
inet_cidr_pton_ipv4(curtok, tp, &bits, 1) == 0) {
lib/libc/inet/inet_cidr_pton.c
212
tp += NS_INADDRSZ;
lib/libc/inet/inet_cidr_pton.c
225
if (tp + NS_INT16SZ > endp)
lib/libc/inet/inet_cidr_pton.c
227
*tp++ = (u_char) (val >> 8) & 0xff;
lib/libc/inet/inet_cidr_pton.c
228
*tp++ = (u_char) val & 0xff;
lib/libc/inet/inet_cidr_pton.c
235
const ptrdiff_t n = tp - colonp;
lib/libc/inet/inet_cidr_pton.c
238
if (tp == endp)
lib/libc/inet/inet_cidr_pton.c
244
tp = endp;
lib/libc/inet/inet_net_pton.c
273
u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp;
lib/libc/inet/inet_net_pton.c
283
memset((tp = tmp), '\0', NS_IN6ADDRSZ);
lib/libc/inet/inet_net_pton.c
284
endp = tp + NS_IN6ADDRSZ;
lib/libc/inet/inet_net_pton.c
314
colonp = tp;
lib/libc/inet/inet_net_pton.c
318
if (tp + NS_INT16SZ > endp)
lib/libc/inet/inet_net_pton.c
320
*tp++ = (u_char) (val >> 8) & 0xff;
lib/libc/inet/inet_net_pton.c
321
*tp++ = (u_char) val & 0xff;
lib/libc/inet/inet_net_pton.c
327
if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) &&
lib/libc/inet/inet_net_pton.c
328
getv4(curtok, tp, &bits) > 0) {
lib/libc/inet/inet_net_pton.c
329
tp += NS_INADDRSZ;
lib/libc/inet/inet_net_pton.c
339
if (tp + NS_INT16SZ > endp)
lib/libc/inet/inet_net_pton.c
341
*tp++ = (u_char) (val >> 8) & 0xff;
lib/libc/inet/inet_net_pton.c
342
*tp++ = (u_char) val & 0xff;
lib/libc/inet/inet_net_pton.c
359
const ptrdiff_t n = tp - colonp;
lib/libc/inet/inet_net_pton.c
362
if (tp == endp)
lib/libc/inet/inet_net_pton.c
368
tp = endp;
lib/libc/inet/inet_net_pton.c
370
if (tp != endp)
lib/libc/inet/inet_ntop.c
134
char *tp, *ep;
lib/libc/inet/inet_ntop.c
179
tp = tmp;
lib/libc/inet/inet_ntop.c
186
*tp++ = ':';
lib/libc/inet/inet_ntop.c
191
if (tp + 1 >= ep)
lib/libc/inet/inet_ntop.c
193
*tp++ = ':';
lib/libc/inet/inet_ntop.c
200
if (!inet_ntop4(src + 12, tp, (socklen_t)(ep - tp)))
lib/libc/inet/inet_ntop.c
202
tp += strlen(tp);
lib/libc/inet/inet_ntop.c
205
advance = snprintf(tp, (size_t)(ep - tp), "%x", words[i]);
lib/libc/inet/inet_ntop.c
206
if (advance <= 0 || advance >= ep - tp)
lib/libc/inet/inet_ntop.c
208
tp += advance;
lib/libc/inet/inet_ntop.c
213
if (tp + 1 >= ep)
lib/libc/inet/inet_ntop.c
215
*tp++ = ':';
lib/libc/inet/inet_ntop.c
217
if (tp + 1 >= ep)
lib/libc/inet/inet_ntop.c
219
*tp++ = '\0';
lib/libc/inet/inet_ntop.c
224
if ((size_t)(tp - tmp) > size)
lib/libc/inet/inet_pton.c
227
u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp;
lib/libc/inet/inet_pton.c
235
memset((tp = tmp), '\0', NS_IN6ADDRSZ);
lib/libc/inet/inet_pton.c
236
endp = tp + NS_IN6ADDRSZ;
lib/libc/inet/inet_pton.c
262
colonp = tp;
lib/libc/inet/inet_pton.c
266
if (tp + NS_INT16SZ > endp)
lib/libc/inet/inet_pton.c
268
*tp++ = (u_char) (val >> 8) & 0xff;
lib/libc/inet/inet_pton.c
269
*tp++ = (u_char) val & 0xff;
lib/libc/inet/inet_pton.c
274
if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) &&
lib/libc/inet/inet_pton.c
275
inet_pton4(curtok, tp, 1) > 0) {
lib/libc/inet/inet_pton.c
276
tp += NS_INADDRSZ;
lib/libc/inet/inet_pton.c
283
if (tp + NS_INT16SZ > endp)
lib/libc/inet/inet_pton.c
285
*tp++ = (u_char) (val >> 8) & 0xff;
lib/libc/inet/inet_pton.c
286
*tp++ = (u_char) val & 0xff;
lib/libc/inet/inet_pton.c
293
const ptrdiff_t n = tp - colonp;
lib/libc/inet/inet_pton.c
296
if (tp == endp)
lib/libc/inet/inet_pton.c
302
tp = endp;
lib/libc/inet/inet_pton.c
304
if (tp != endp)
lib/libc/nameser/ns_name.c
1031
unsigned char *tp;
lib/libc/nameser/ns_name.c
1049
for (tp = *dst + 1; cp < end && tp < eom; cp++) {
lib/libc/nameser/ns_name.c
1060
*tp++ = ((value << 4) & 0xff);
lib/libc/nameser/ns_name.c
1088
*tp++ = value;
lib/libc/nameser/ns_name.c
1096
if (cp >= end || tp >= eom)
lib/libc/nameser/ns_name.c
1126
*dst = tp;
lib/libc/rpc/rpc_soc.c
109
int *sockp, u_int sendsz, u_int recvsz, const char *tp)
lib/libc/rpc/rpc_soc.c
119
_DIAGASSERT(tp != NULL);
lib/libc/rpc/rpc_soc.c
124
if ((nconf = __rpc_getconfip(tp)) == NULL) {
lib/libc/rpc/rpc_soc.c
141
proto = strcmp(tp, "udp") == 0 ? IPPROTO_UDP : IPPROTO_TCP;
lib/libc/stdio/fflush.c
100
_DIAGASSERT(__type_fit(ssize_t, tp));
lib/libc/stdio/fflush.c
101
n = (ssize_t)tp; /* write this much */
lib/libc/stdio/fflush.c
99
ptrdiff_t tp = fp->_p - p;
lib/libc/string/memccpy.c
52
unsigned char *tp = t;
lib/libc/string/memccpy.c
56
if ((*tp++ = *fp++) == uc)
lib/libc/string/memccpy.c
57
return (tp);
lib/libc/sys/clock_settime.c
59
clock_settime(clockid_t clock_id, const struct timespec *tp)
lib/libc/sys/clock_settime.c
69
rv = ____clock_settime50(clock_id, tp);
lib/libc/sys/clock_settime.c
94
args.tp = tp;
lib/libc/sys/ntp_adjtime.c
101
args.tp = tp;
lib/libc/sys/ntp_adjtime.c
63
ntp_adjtime(struct timex *tp)
lib/libc/sys/ntp_adjtime.c
76
rv = __ntp_adjtime(tp);
lib/libc/thread-stub/thread-stub.c
436
__libc_thr_create_stub(thr_t *tp, const thrattr_t *ta,
lib/libc/thread-stub/thread-stub.c
440
(void)tp;
lib/libc/time/localtime.c
2642
increment_overflow_time_iinntt(time_t *tp, iinntt j)
lib/libc/time/localtime.c
2645
return ckd_add(tp, *tp, j);
lib/libc/time/localtime.c
2648
? (TYPE_SIGNED(time_t) ? *tp < TIME_T_MIN - j : *tp <= -1 - j)
lib/libc/time/localtime.c
2649
: TIME_T_MAX - j < *tp)
lib/libc/time/localtime.c
2651
*tp += j;
lib/libc/time/localtime.c
2657
increment_overflow_time_64(time_t *tp, int_fast64_t j)
lib/libc/time/localtime.c
2660
return ckd_add(tp, *tp, j);
lib/libc/time/localtime.c
2663
? (TYPE_SIGNED(time_t) ? *tp < TIME_T_MIN - j : *tp <= -1 - j)
lib/libc/time/localtime.c
2664
: TIME_T_MAX - j < *tp)
lib/libc/time/localtime.c
2666
*tp += j;
lib/libc/time/localtime.c
2672
increment_overflow_time(__time_t *tp, int_fast32_2s j)
lib/libc/time/localtime.c
2675
return ckd_add(tp, *tp, j);
lib/libc/time/localtime.c
2683
? (TYPE_SIGNED(time_t) ? TIME_T_MIN - j <= *tp : -1 - j < *tp)
lib/libc/time/localtime.c
2684
: *tp <= TIME_T_MAX - j))
lib/libc/time/localtime.c
2686
*tp += j;
lib/libc/time/localtime.c
3228
decrement_overflow_time(time_t *tp, int_fast32_2s j)
lib/libc/time/localtime.c
3231
return ckd_sub(tp, *tp, j);
lib/libc/time/localtime.c
3234
? *tp <= TIME_T_MAX + j
lib/libc/time/localtime.c
3235
: (TYPE_SIGNED(time_t) ? TIME_T_MIN + j <= *tp : j <= *tp)))
lib/libc/time/localtime.c
3237
*tp -= j;
lib/libc/time/zdump.c
173
gmtime_r(time_t *tp, struct tm *tmp)
lib/libc/time/zdump.c
175
struct tm *r = gmtime(tp);
lib/libc/time/zdump.c
200
localtime_r(time_t *tp, struct tm *tmp)
lib/libc/time/zdump.c
202
struct tm *r = localtime(tp);
lib/libc/time/zdump.c
214
localtime_rz(ATTRIBUTE_MAYBE_UNUSED timezone_t rz, time_t *tp, struct tm *tmp)
lib/libc/time/zdump.c
216
return localtime_r(tp, tmp);
lib/libc/time/zdump.c
317
my_gmtime_r(time_t *tp, struct tm *tmp)
lib/libc/time/zdump.c
320
localtime_rz(gmtz, tp, tmp) : gmtime_r(tp, tmp);
lib/libc/time/zic.c
1858
FILE *fp, *tp;
lib/libc/time/zic.c
1867
tp = open_outfile(&outname, &tempname);
lib/libc/time/zic.c
1869
putc(c, tp);
lib/libc/time/zic.c
1870
close_file(tp, directory, linkname, tempname);
lib/libcrypt/crypt.c
307
C_block *tp;
lib/libcrypt/crypt.c
313
tp = &p[t&0xf]; OR(D,D0,D1,*tp); p += (1<<CHUNKBITS);
lib/libcrypt/crypt.c
314
tp = &p[t>>4]; OR(D,D0,D1,*tp); p += (1<<CHUNKBITS);
lib/libcurses/add_wchstr.c
141
__LDATA *lp, *tp;
lib/libcurses/add_wchstr.c
175
for (tp = lp + cw; tp < lp; tp++) {
lib/libcurses/add_wchstr.c
176
tp->ch = win->bch;
lib/libcurses/add_wchstr.c
177
if (_cursesi_copy_nsp(win->bnsp, tp) == ERR)
lib/libcurses/add_wchstr.c
179
tp->attr = win->battr;
lib/libcurses/add_wchstr.c
180
tp->wcols = 1;
lib/libcurses/add_wchstr.c
181
tp->cflags = CA_BACKGROUND;
lib/libcurses/add_wchstr.c
182
np = tp->nsp;
lib/libcurses/addbytes.c
358
__LDATA *lp, *tp = NULL;
lib/libcurses/addbytes.c
470
tp = &win->alines[*y]->line[sx];
lib/libcurses/addbytes.c
471
tp->ch = win->bch;
lib/libcurses/addbytes.c
472
tp->cflags = CA_BACKGROUND;
lib/libcurses/addbytes.c
473
if (_cursesi_copy_nsp(win->bnsp, tp) == ERR)
lib/libcurses/addbytes.c
476
tp->attr = win->battr;
lib/libcurses/addbytes.c
477
tp->wcols = win->wcols;
lib/libcurses/addbytes.c
508
for (tp = lp; *x < win->maxx; tp++, (*x)++) {
lib/libcurses/addbytes.c
509
tp->ch = win->bch;
lib/libcurses/addbytes.c
510
if (_cursesi_copy_nsp(win->bnsp, tp) == ERR)
lib/libcurses/addbytes.c
512
tp->attr = win->battr;
lib/libcurses/addbytes.c
513
tp->wcols = win->wcols;
lib/libcurses/addbytes.c
514
tp->cflags = CA_BACKGROUND;
lib/libcurses/addbytes.c
585
for (tp = lp + 1, *x = sx + 1, i = cw - 1; i > 0; tp++, (*x)++, i--) {
lib/libcurses/addbytes.c
588
if (tp->nsp) {
lib/libcurses/addbytes.c
589
__cursesi_free_nsp(tp->nsp);
lib/libcurses/addbytes.c
590
tp->nsp = NULL;
lib/libcurses/addbytes.c
592
tp->ch = wch->vals[0];
lib/libcurses/addbytes.c
593
tp->attr = lp->attr & WA_ATTRIBUTES;
lib/libcurses/addbytes.c
595
tp->cflags |= CA_CONTINUATION;
lib/libcurses/addbytes.c
596
tp->cflags &= ~ CA_BACKGROUND;
lib/libcurses/addbytes.c
597
tp->wcols = i;
lib/libcurses/addbytes.c
628
tp = &win->alines[*y]->line[ex];
lib/libcurses/addbytes.c
629
while (ex < win->maxx && tp->wcols < 0) {
lib/libcurses/addbytes.c
634
tp->ch = win->bch;
lib/libcurses/addbytes.c
635
tp->cflags = CA_BACKGROUND;
lib/libcurses/addbytes.c
636
if (_cursesi_copy_nsp(win->bnsp, tp) == ERR)
lib/libcurses/addbytes.c
638
tp->attr = win->battr;
lib/libcurses/addbytes.c
639
tp->wcols = win->wcols;
lib/libcurses/addbytes.c
640
tp++, ex++;
lib/libedit/readline.c
1287
FILE *fp, *tp;
lib/libedit/readline.c
1306
if ((tp = fdopen(fd, "r+")) == NULL) {
lib/libedit/readline.c
1331
} else if (fwrite(buf, (size_t)left, (size_t)1, tp)
lib/libedit/readline.c
1336
fflush(tp);
lib/libedit/readline.c
1339
if (fwrite(buf, sizeof(buf), (size_t)1, tp) != 1) {
lib/libedit/readline.c
1365
if (fseeko(tp, (off_t)sizeof(buf) * count, SEEK_SET) < 0) {
lib/libedit/readline.c
1369
if (fread(buf, sizeof(buf), (size_t)1, tp) != 1) {
lib/libedit/readline.c
1370
if (ferror(tp)) {
lib/libedit/readline.c
1388
if (fseeko(tp, (off_t)sizeof(buf) * count + (cp - buf), SEEK_SET) ==
lib/libedit/readline.c
1395
if ((left = (ssize_t)fread(buf, (size_t)1, sizeof(buf), tp)) == 0) {
lib/libedit/readline.c
1409
fclose(tp);
lib/libedit/tty.c
902
const ttymap_t *tp;
lib/libedit/tty.c
917
for (tp = tty_map; tp->nch != (wint_t)-1; tp++) {
lib/libedit/tty.c
918
new[0] = (wchar_t)t_n[tp->nch];
lib/libedit/tty.c
919
old[0] = (wchar_t)t_o[tp->och];
lib/libedit/tty.c
927
map[(unsigned char)new[0]] = tp->bind[el->el_map.type];
lib/libedit/tty.c
934
tp->bind[el->el_map.type + 1];
lib/libform/internals.c
220
_formi_tab_t *tp, *newt;
lib/libform/internals.c
241
tp = row->tabs;
lib/libform/internals.c
252
tp = tp->fwd;
lib/libform/internals.c
255
while (tp != NULL) {
lib/libform/internals.c
258
tp = new->tabs;
lib/libform/internals.c
259
while (tp != NULL) {
lib/libform/internals.c
260
newt = tp->fwd;
lib/libform/internals.c
261
free(tp);
lib/libform/internals.c
262
tp = newt;
lib/libform/internals.c
270
memcpy(newt->fwd, tp, sizeof(*newt->fwd));
lib/libform/internals.c
274
tp = tp->fwd;
lib/libform/internals.c
471
_formi_tab_t *tt, *tp;
lib/libform/internals.c
477
tp = row->tabs;
lib/libform/internals.c
478
while (tp != NULL) {
lib/libform/internals.c
479
tt = tp->fwd;
lib/libform/internals.c
480
free(tp);
lib/libform/internals.c
481
tp = tt;
lib/libpthread/pthread_cancelstub.c
698
struct timespec tout, *tp;
lib/libpthread/pthread_cancelstub.c
702
tp = &tout;
lib/libpthread/pthread_cancelstub.c
704
tp = NULL;
lib/libpthread/pthread_cancelstub.c
708
retval = ____sigtimedwait50(set, info, tp);
lib/libutil/parsedate.y
1002
else if (strcmp(buff, tp->name) == 0) {
lib/libutil/parsedate.y
1003
yylval->Number = tp->value;
lib/libutil/parsedate.y
1004
return tp->type;
lib/libutil/parsedate.y
1008
for (tp = TimezoneTable; tp->name; tp++)
lib/libutil/parsedate.y
1009
if (strcmp(buff, tp->name) == 0) {
lib/libutil/parsedate.y
1010
yylval->Number = tp->value;
lib/libutil/parsedate.y
1011
return tp->type;
lib/libutil/parsedate.y
1017
for (tp = TimeNames; tp->name; tp++)
lib/libutil/parsedate.y
1018
if (strcmp(buff, tp->name) == 0) {
lib/libutil/parsedate.y
1019
yylval->Number = tp->value;
lib/libutil/parsedate.y
1020
return tp->type;
lib/libutil/parsedate.y
1023
for (tp = UnitsTable; tp->name; tp++)
lib/libutil/parsedate.y
1024
if (strcmp(buff, tp->name) == 0) {
lib/libutil/parsedate.y
1025
yylval->Number = tp->value;
lib/libutil/parsedate.y
1026
return tp->type;
lib/libutil/parsedate.y
1033
for (tp = UnitsTable; tp->name; tp++)
lib/libutil/parsedate.y
1034
if (strcmp(buff, tp->name) == 0) {
lib/libutil/parsedate.y
1035
yylval->Number = tp->value;
lib/libutil/parsedate.y
1036
return tp->type;
lib/libutil/parsedate.y
1041
for (tp = OtherTable; tp->name; tp++)
lib/libutil/parsedate.y
1042
if (strcmp(buff, tp->name) == 0) {
lib/libutil/parsedate.y
1043
yylval->Number = tp->value;
lib/libutil/parsedate.y
1044
return tp->type;
lib/libutil/parsedate.y
1049
for (tp = MilitaryTable; tp->name; tp++)
lib/libutil/parsedate.y
1050
if (strcmp(buff, tp->name) == 0) {
lib/libutil/parsedate.y
1051
yylval->Number = tp->value;
lib/libutil/parsedate.y
1052
return tp->type;
lib/libutil/parsedate.y
1064
for (tp = TimezoneTable; tp->name; tp++)
lib/libutil/parsedate.y
1065
if (strcmp(buff, tp->name) == 0) {
lib/libutil/parsedate.y
1066
yylval->Number = tp->value;
lib/libutil/parsedate.y
1067
return tp->type;
lib/libutil/parsedate.y
967
register const TABLE *tp;
lib/libutil/parsedate.y
995
for (tp = MonthDayTable; tp->name; tp++) {
lib/libutil/parsedate.y
997
if (strncmp(buff, tp->name, 3) == 0) {
lib/libutil/parsedate.y
998
yylval->Number = tp->value;
lib/libutil/parsedate.y
999
return tp->type;
libexec/comsat/comsat.c
222
FILE *tp;
libexec/comsat/comsat.c
254
if ((tp = fopen(tty, "w")) == NULL) {
libexec/comsat/comsat.c
258
if (tcgetattr(fileno(tp), &ttybuf) == -1) {
libexec/comsat/comsat.c
274
(void)fprintf(tp, "%s\007New mail for %s@%.*s\007 has arrived:%s----%s",
libexec/comsat/comsat.c
276
jkfprintf(tp, ep->name, offset, cr);
libexec/comsat/comsat.c
277
(void)fclose(tp);
libexec/comsat/comsat.c
282
jkfprintf(FILE *tp, const char *name, off_t offset, const char *cr)
libexec/comsat/comsat.c
313
(void)fprintf(tp, "----%s", cr);
libexec/comsat/comsat.c
318
(void)fprintf(tp, "...more...%s", cr);
libexec/comsat/comsat.c
326
(void)fputs(visline, tp);
libexec/comsat/comsat.c
327
(void)fputs(cr, tp);
libexec/comsat/comsat.c
330
(void)fprintf(tp, "----%s\n", cr);
libexec/ftpd/cmds.c
851
char tp[MAXPATHLEN + 1] = "";
libexec/ftpd/cmds.c
860
(void)strlcpy(tp, last_path, MAXPATHLEN);
libexec/ftpd/cmds.c
861
(void)strlcat(tp, "/", MAXPATHLEN);
libexec/ftpd/cmds.c
863
(void)strlcat(tp, new_path, MAXPATHLEN);
libexec/ftpd/cmds.c
864
(void)strlcat(tp, "/", MAXPATHLEN);
libexec/ftpd/cmds.c
872
while ((cp = strstr(tp, "//")) != NULL)
libexec/ftpd/cmds.c
876
while ((cp = strstr(tp, "/./")) != NULL)
libexec/ftpd/cmds.c
879
cp = tp;
libexec/ftpd/cmds.c
883
sz1 = (unsigned long)cp - (unsigned long)tp;
libexec/ftpd/cmds.c
887
sz2 = readlink(tp, tq, MAXPATHLEN);
libexec/ftpd/cmds.c
916
memmove(tp + sz2, cp, strlen(cp) + 1);
libexec/ftpd/cmds.c
917
memcpy(tp, tq, sz2);
libexec/ftpd/cmds.c
921
if (strlen(tp) -
libexec/ftpd/cmds.c
938
while ((cp = strstr(tp, "/../")) != NULL) {
libexec/ftpd/cmds.c
940
if (cp == tp) {
libexec/ftpd/cmds.c
951
if (strlen(tp) != 1)
libexec/ftpd/cmds.c
952
tp[strlen(tp) - 1] = '\0';
libexec/ftpd/cmds.c
955
if (stat(tp, &st1) == -1 || stat(".", &st2) == -1)
libexec/ftpd/cmds.c
960
(void)strlcpy(last_path, tp, MAXPATHLEN);
libexec/getNAME/getNAME.c
504
char *tp;
libexec/getNAME/getNAME.c
506
for (tp = cp - 1; *tp == ' ' || *tp == '\t'; tp--)
libexec/getNAME/getNAME.c
508
*++tp = '\0';
libexec/ld.elf_so/arch/aarch64/mdreloc.c
400
Elf_Addr *tp)
libexec/ld.elf_so/arch/aarch64/mdreloc.c
410
&defobj, tp != NULL);
libexec/ld.elf_so/arch/aarch64/mdreloc.c
417
if (tp == NULL)
libexec/ld.elf_so/arch/aarch64/mdreloc.c
429
if (tp)
libexec/ld.elf_so/arch/aarch64/mdreloc.c
430
*tp = new_value;
libexec/ld.elf_so/arch/alpha/alpha_reloc.c
380
Elf_Addr *tp)
libexec/ld.elf_so/arch/alpha/alpha_reloc.c
391
def = _rtld_find_plt_symdef(ELF_R_SYM(info), obj, &defobj, tp != NULL);
libexec/ld.elf_so/arch/alpha/alpha_reloc.c
398
if (tp == NULL)
libexec/ld.elf_so/arch/alpha/alpha_reloc.c
560
if (tp)
libexec/ld.elf_so/arch/alpha/alpha_reloc.c
561
*tp = new_value;
libexec/ld.elf_so/arch/arm/mdreloc.c
297
Elf_Addr *tp)
libexec/ld.elf_so/arch/arm/mdreloc.c
307
def = _rtld_find_plt_symdef(ELF_R_SYM(info), obj, &defobj, tp != NULL);
libexec/ld.elf_so/arch/arm/mdreloc.c
314
if (tp == NULL)
libexec/ld.elf_so/arch/arm/mdreloc.c
327
if (tp)
libexec/ld.elf_so/arch/arm/mdreloc.c
328
*tp = new_value;
libexec/ld.elf_so/arch/hppa/hppa_reloc.c
676
Elf_Addr *tp)
libexec/ld.elf_so/arch/hppa/hppa_reloc.c
691
tp != NULL);
libexec/ld.elf_so/arch/hppa/hppa_reloc.c
698
if (tp == NULL)
libexec/ld.elf_so/arch/hppa/hppa_reloc.c
724
if (tp)
libexec/ld.elf_so/arch/hppa/hppa_reloc.c
725
*tp = (Elf_Addr)where;
libexec/ld.elf_so/arch/i386/mdreloc.c
286
Elf_Addr *tp)
libexec/ld.elf_so/arch/i386/mdreloc.c
299
def = _rtld_find_plt_symdef(ELF_R_SYM(info), obj, &defobj, tp != NULL);
libexec/ld.elf_so/arch/i386/mdreloc.c
306
if (tp == NULL)
libexec/ld.elf_so/arch/i386/mdreloc.c
318
if (tp)
libexec/ld.elf_so/arch/i386/mdreloc.c
319
*tp = target;
libexec/ld.elf_so/arch/m68k/mdreloc.c
248
Elf_Addr *tp)
libexec/ld.elf_so/arch/m68k/mdreloc.c
258
def = _rtld_find_plt_symdef(ELF_R_SYM(info), obj, &defobj, tp != NULL);
libexec/ld.elf_so/arch/m68k/mdreloc.c
266
if (tp == NULL)
libexec/ld.elf_so/arch/m68k/mdreloc.c
278
if (tp)
libexec/ld.elf_so/arch/m68k/mdreloc.c
279
*tp = new_value - rela->r_addend;
libexec/ld.elf_so/arch/mips/mips_reloc.c
508
_rtld_relocate_plt_object(const Obj_Entry *obj, Elf_Word sym, Elf_Addr *tp)
libexec/ld.elf_so/arch/mips/mips_reloc.c
515
def = _rtld_find_plt_symdef(sym, obj, &defobj, tp != NULL);
libexec/ld.elf_so/arch/mips/mips_reloc.c
522
if (tp == NULL)
libexec/ld.elf_so/arch/mips/mips_reloc.c
532
if (tp)
libexec/ld.elf_so/arch/mips/mips_reloc.c
533
*tp = new_value;
libexec/ld.elf_so/arch/or1k/mdreloc.c
235
_rtld_relocate_plt_object(const Obj_Entry *obj, const Elf_Rela *rela, int reloff, Elf_Addr *tp)
libexec/ld.elf_so/arch/or1k/mdreloc.c
245
def = _rtld_find_plt_symdef(ELF_R_SYM(info), obj, &defobj, tp != NULL);
libexec/ld.elf_so/arch/or1k/mdreloc.c
263
if (tp)
libexec/ld.elf_so/arch/or1k/mdreloc.c
264
*tp = value;
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c
437
_rtld_relocate_plt_object(const Obj_Entry *obj, const Elf_Rela *rela, int reloff, Elf_Addr *tp)
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c
447
def = _rtld_find_plt_symdef(ELF_R_SYM(info), obj, &defobj, tp != NULL);
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c
454
if (tp == NULL)
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c
528
if (tp)
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c
529
*tp = value;
libexec/ld.elf_so/arch/riscv/mdreloc.c
272
Elf_Addr *tp)
libexec/ld.elf_so/arch/riscv/mdreloc.c
281
obj, &defobj, tp != NULL);
libexec/ld.elf_so/arch/riscv/mdreloc.c
288
if (tp == NULL)
libexec/ld.elf_so/arch/riscv/mdreloc.c
299
if (tp)
libexec/ld.elf_so/arch/riscv/mdreloc.c
300
*tp = new_value;
libexec/ld.elf_so/arch/sh3/mdreloc.c
298
_rtld_relocate_plt_object(const Obj_Entry *obj, const Elf_Rela *rela, Elf_Addr *tp)
libexec/ld.elf_so/arch/sh3/mdreloc.c
308
def = _rtld_find_plt_symdef(ELF_R_SYM(info), obj, &defobj, tp != NULL);
libexec/ld.elf_so/arch/sh3/mdreloc.c
315
if (tp == NULL)
libexec/ld.elf_so/arch/sh3/mdreloc.c
326
if (tp)
libexec/ld.elf_so/arch/sh3/mdreloc.c
327
*tp = new_value;
libexec/ld.elf_so/arch/sparc/mdreloc.c
451
_rtld_relocate_plt_object(const Obj_Entry *obj, const Elf_Rela *rela, Elf_Addr *tp)
libexec/ld.elf_so/arch/sparc/mdreloc.c
464
def = _rtld_find_plt_symdef(ELF_R_SYM(info), obj, &defobj, tp != NULL);
libexec/ld.elf_so/arch/sparc/mdreloc.c
471
if (tp == NULL)
libexec/ld.elf_so/arch/sparc/mdreloc.c
482
if (tp)
libexec/ld.elf_so/arch/sparc/mdreloc.c
483
*tp = value;
libexec/ld.elf_so/arch/sparc64/mdreloc.c
611
Elf_Addr *tp)
libexec/ld.elf_so/arch/sparc64/mdreloc.c
624
def = _rtld_find_plt_symdef(ELF_R_SYM(info), obj, &defobj, tp != NULL);
libexec/ld.elf_so/arch/sparc64/mdreloc.c
631
if (tp == NULL)
libexec/ld.elf_so/arch/sparc64/mdreloc.c
642
if (tp)
libexec/ld.elf_so/arch/sparc64/mdreloc.c
643
*tp = value;
libexec/ld.elf_so/arch/vax/mdreloc.c
192
_rtld_relocate_plt_object(const Obj_Entry *obj, const Elf_Rela *rela, Elf_Addr *tp)
libexec/ld.elf_so/arch/vax/mdreloc.c
202
def = _rtld_find_plt_symdef(ELF_R_SYM(info), obj, &defobj, tp != NULL);
libexec/ld.elf_so/arch/vax/mdreloc.c
209
if (tp == NULL)
libexec/ld.elf_so/arch/vax/mdreloc.c
221
if (tp)
libexec/ld.elf_so/arch/vax/mdreloc.c
222
*tp = new_value - rela->r_addend;
libexec/ld.elf_so/arch/x86_64/mdreloc.c
323
_rtld_relocate_plt_object(const Obj_Entry *obj, const Elf_Rela *rela, Elf_Addr *tp)
libexec/ld.elf_so/arch/x86_64/mdreloc.c
336
def = _rtld_find_plt_symdef(ELF_R_SYM(info), obj, &defobj, tp != NULL);
libexec/ld.elf_so/arch/x86_64/mdreloc.c
343
if (tp == NULL)
libexec/ld.elf_so/arch/x86_64/mdreloc.c
356
if (tp)
libexec/ld.elf_so/arch/x86_64/mdreloc.c
357
*tp = new_value - rela->r_addend;
libexec/makewhatis/makewhatis.c
131
TAG *tp;
libexec/makewhatis/makewhatis.c
177
if ((tp = gettag("_whatdb", 0)) == NULL) {
libexec/makewhatis/makewhatis.c
184
TAILQ_FOREACH(ep, &tp->entrylist, q) {
libexec/talkd/print.c
106
cp, tp, ap, ntohl(rp->id_num));
libexec/talkd/print.c
77
const char *tp;
libexec/talkd/print.c
81
tp = tbuf;
libexec/talkd/print.c
83
tp = types[mp->type];
libexec/talkd/print.c
86
cp, tp, mp->id_num, mp->l_name, mp->r_name, mp->r_tty);
libexec/talkd/print.c
93
const char *tp, *ap;
libexec/talkd/print.c
97
tp = tbuf;
libexec/talkd/print.c
99
tp = types[rp->type];
libexec/talkd/table.c
124
gettimeofday(&tp, NULL);
libexec/talkd/table.c
125
current_time = tp.tv_sec;
libexec/talkd/table.c
161
gettimeofday(&tp, NULL);
libexec/talkd/table.c
162
current_time = tp.tv_sec;
libexec/talkd/table.c
66
struct timeval tp;
libexec/talkd/table.c
91
gettimeofday(&tp, NULL);
libexec/talkd/table.c
92
current_time = tp.tv_sec;
libexec/tftpd/tftpd.c
1196
struct tftphdr *tp;
libexec/tftpd/tftpd.c
1200
tp = (struct tftphdr *)buf;
libexec/tftpd/tftpd.c
1201
tp->th_opcode = htons((u_short)ERROR);
libexec/tftpd/tftpd.c
1202
msglen = sizeof(buf) - (&tp->th_msg[0] - buf);
libexec/tftpd/tftpd.c
1207
tp->th_code = EUNDEF; /* set 'undef' errorcode */
libexec/tftpd/tftpd.c
1208
strlcpy(tp->th_msg, strerror(error - 100), msglen);
libexec/tftpd/tftpd.c
1210
tp->th_code = htons((u_short)error);
libexec/tftpd/tftpd.c
1211
strlcpy(tp->th_msg, pe->e_msg, msglen);
libexec/tftpd/tftpd.c
1214
syslog(LOG_DEBUG, "Send NACK %s", tp->th_msg);
libexec/tftpd/tftpd.c
1215
length = strlen(tp->th_msg);
libexec/tftpd/tftpd.c
1216
msglen = &tp->th_msg[length + 1] - buf;
libexec/tftpd/tftpd.c
157
struct tftphdr *tp;
libexec/tftpd/tftpd.c
440
tp = (struct tftphdr *)buf;
libexec/tftpd/tftpd.c
441
tp->th_opcode = ntohs(tp->th_opcode);
libexec/tftpd/tftpd.c
442
if (tp->th_opcode == RRQ || tp->th_opcode == WRQ)
libexec/tftpd/tftpd.c
443
tftp(tp, n);
libexec/tftpd/tftpd.c
448
blk_handler(struct tftphdr *tp, const char *val, char *ack, size_t asize,
libexec/tftpd/tftpd.c
465
tp->th_opcode == WRQ ? "write" : "read",
libexec/tftpd/tftpd.c
466
tp->th_stuff, val);
libexec/tftpd/tftpd.c
474
tp->th_opcode == WRQ ? "write" : "read",
libexec/tftpd/tftpd.c
475
tp->th_stuff, val);
libexec/tftpd/tftpd.c
493
timeout_handler(struct tftphdr *tp, const char *val, char *ack, size_t asize,
libexec/tftpd/tftpd.c
506
tp->th_opcode == WRQ ? "write" : "read",
libexec/tftpd/tftpd.c
507
tp->th_stuff, val);
libexec/tftpd/tftpd.c
515
tp->th_opcode == WRQ ? "write" : "read",
libexec/tftpd/tftpd.c
516
tp->th_stuff, val);
libexec/tftpd/tftpd.c
542
tsize_handler(struct tftphdr *tp, const char *val, char *ack, size_t asize,
libexec/tftpd/tftpd.c
560
tp->th_opcode == WRQ ? "write" : "read",
libexec/tftpd/tftpd.c
561
tp->th_stuff, val);
libexec/tftpd/tftpd.c
569
tp->th_opcode == WRQ ? "write" : "read",
libexec/tftpd/tftpd.c
570
tp->th_stuff, val);
libexec/tftpd/tftpd.c
601
get_options(struct tftphdr *tp, char *cp, int size, char *ackb, size_t asize,
libexec/tftpd/tftpd.c
634
r = op->o_handler(tp, value, ackb, asize, alen, ecode);
libexec/tftpd/tftpd.c
650
tftp(struct tftphdr *tp, int size)
libexec/tftpd/tftpd.c
662
filename = cp = tp->th_stuff;
libexec/tftpd/tftpd.c
698
size -= (++cp - (char *) tp);
libexec/tftpd/tftpd.c
701
r = get_options(tp, cp, size, oackbuf, sizeof(oackbuf),
libexec/tftpd/tftpd.c
720
ecode = (*pf->f_validate)(&filename, tp->th_opcode);
libexec/tftpd/tftpd.c
724
tp->th_opcode == WRQ ? "write" : "read",
libexec/tftpd/tftpd.c
754
if (tp->th_opcode == WRQ)
sbin/cgdconfig/cgdconfig.c
247
struct params *tp;
sbin/cgdconfig/cgdconfig.c
287
tp = params_verify_method(string_fromcharstar(optarg));
sbin/cgdconfig/cgdconfig.c
288
if (!tp)
sbin/cgdconfig/cgdconfig.c
290
p = params_combine(p, tp);
sbin/cgdconfig/cgdconfig.c
298
tp = params_bsize(size);
sbin/cgdconfig/cgdconfig.c
299
if (!tp)
sbin/cgdconfig/cgdconfig.c
301
p = params_combine(p, tp);
sbin/cgdconfig/cgdconfig.c
316
tp = params_ivmeth(string_fromcharstar(optarg));
sbin/cgdconfig/cgdconfig.c
317
p = params_combine(p, tp);
sbin/disklabel/main.c
1637
if (tp == NULL || *tp == '\0') { \
sbin/disklabel/main.c
1644
if (*tp == NULL || **tp == '\0') { \
sbin/disklabel/main.c
1646
*tp = _error_; \
sbin/disklabel/main.c
1651
#define NXTNUM(n) if ((n = nxtnum(&tp, lineno),0) + tp != _error_) \
sbin/disklabel/main.c
1653
#define NXTXNUM(n) if ((n = nxtxnum(&tp, lp, lineno),0) + tp != _error_) \
sbin/disklabel/main.c
1657
nxtnum(char **tp, int lineno)
sbin/disklabel/main.c
1663
if (getulong(*tp, '\0', &cp, &v, UINT32_MAX) != 0) {
sbin/disklabel/main.c
1665
*tp = _error_;
sbin/disklabel/main.c
1668
*tp = cp;
sbin/disklabel/main.c
1673
nxtxnum(char **tp, struct disklabel *lp, int lineno)
sbin/disklabel/main.c
1679
cp = *tp;
sbin/disklabel/main.c
1694
*tp = ncp;
sbin/disklabel/main.c
1698
*tp = _error_;
sbin/disklabel/main.c
1712
char *cp, *tp, line[BUFSIZ], tbuf[15];
sbin/disklabel/main.c
1728
tp = strchr(cp, ':'); /* everything has a colon in it */
sbin/disklabel/main.c
1729
if (tp == NULL) {
sbin/disklabel/main.c
1734
*tp++ = '\0', tp = skip(tp);
sbin/disklabel/main.c
1736
if (tp == NULL) {
sbin/disklabel/main.c
1738
tp = tbuf;
sbin/disklabel/main.c
1742
if ((s = *cpp) && !strcasecmp(s, tp)) {
sbin/disklabel/main.c
1746
if (GETNUM16(tp, &v) != 0) {
sbin/disklabel/main.c
1753
lineno, tp);
sbin/disklabel/main.c
1758
for (v = 0; (cp = tp) && *cp != '\0';) {
sbin/disklabel/main.c
1759
tp = word(cp);
sbin/disklabel/main.c
1778
for (i = 0; (cp = tp) && *cp != '\0' && i < NDDATA;) {
sbin/disklabel/main.c
1786
tp = word(cp);
sbin/disklabel/main.c
1799
if (tp == NULL) {
sbin/disklabel/main.c
1801
tp = tbuf;
sbin/disklabel/main.c
1804
strncpy(lp->d_typename, tp, sizeof(lp->d_typename));
sbin/disklabel/main.c
1808
strncpy(lp->d_packname, tp, sizeof(lp->d_packname));
sbin/disklabel/main.c
1812
if (GETNUM32(tp, &v) != 0 || v <= 0 || (v % 512) != 0) {
sbin/disklabel/main.c
1813
warnx("line %d: bad %s: %s", lineno, cp, tp);
sbin/disklabel/main.c
1820
if (GETNUM32(tp, &v) != 0) {
sbin/disklabel/main.c
1821
warnx("line %d: bad %s: %s", lineno, cp, tp);
sbin/disklabel/main.c
1828
if (GETNUM32(tp, &v) != 0) {
sbin/disklabel/main.c
1829
warnx("line %d: bad %s: %s", lineno, cp, tp);
sbin/disklabel/main.c
1836
if (GETNUM32(tp, &v) != 0) {
sbin/disklabel/main.c
1837
warnx("line %d: bad %s: %s", lineno, cp, tp);
sbin/disklabel/main.c
1844
if (GETNUM32(tp, &v) != 0) {
sbin/disklabel/main.c
1845
warnx("line %d: bad %s: %s", lineno, cp, tp);
sbin/disklabel/main.c
1853
if (GETNUM32(tp, &v) != 0) {
sbin/disklabel/main.c
1854
warnx("line %d: bad %s: %s", lineno, cp, tp);
sbin/disklabel/main.c
1861
if (GETNUM16(tp, &v) != 0) {
sbin/disklabel/main.c
1862
warnx("line %d: bad %s: %s", lineno, cp, tp);
sbin/disklabel/main.c
1869
if (GETNUM16(tp, &v) != 0) {
sbin/disklabel/main.c
1870
warnx("line %d: bad %s: %s", lineno, cp, tp);
sbin/disklabel/main.c
1877
if (GETNUM16(tp, &v) != 0) {
sbin/disklabel/main.c
1878
warnx("line %d: bad %s: %s", lineno, cp, tp);
sbin/disklabel/main.c
1885
if (GETNUM16(tp, &v) != 0) {
sbin/disklabel/main.c
1886
warnx("line %d: bad %s: %s", lineno, cp, tp);
sbin/disklabel/main.c
1893
if (GETNUM32(tp, &v) != 0) {
sbin/disklabel/main.c
1894
warnx("line %d: bad %s: %s", lineno, cp, tp);
sbin/disklabel/main.c
1901
if (GETNUM32(tp, &v) != 0) {
sbin/disklabel/main.c
1902
warnx("line %d: bad %s: %s", lineno, cp, tp);
sbin/disklabel/main.c
1933
tp += strspn(tp, " \t");
sbin/disklabel/main.c
1935
cp = tp;
sbin/disklabel/main.c
1946
tp += strlen(s);
sbin/disklabel/main.c
1947
if (*tp == '\0')
sbin/disklabel/main.c
1948
tp = NULL;
sbin/disklabel/main.c
1950
tp += strspn(tp, " \t");
sbin/disklabel/main.c
1951
if (*tp == '\0')
sbin/disklabel/main.c
1952
tp = NULL;
sbin/disklabel/main.c
1957
tp = word(cp);
sbin/efi/certs.c
306
struct cert_tbl *tp;
sbin/efi/certs.c
313
tp = bsearch(uuid, tbl, __arraycount(tbl), sizeof(*tbl), srchcmpfn);
sbin/efi/certs.c
314
if (tp == NULL) {
sbin/efi/certs.c
319
return tp;
sbin/efi/certs.c
325
cert_info_name(struct cert_tbl *tp)
sbin/efi/certs.c
328
return tp ? tp->name : EFI_CERT_GUID_UNKNOWN;
sbin/efi/certs.c
341
struct cert_tbl *tp;
sbin/efi/certs.c
344
tp = get_cert_info(&lp->SignatureType);
sbin/efi/certs.c
345
name = cert_info_name(tp);
sbin/efi/certs.c
354
return tp;
sbin/efi/certs.c
364
struct cert_tbl *tp;
sbin/efi/certs.c
370
tp = show_signature_list_header(u.lp, indent);
sbin/efi/certs.c
385
if (tp && tp->sigsz && tp->sigsz != u.lp->SignatureSize) {
sbin/efi/certs.c
387
tp->sigsz, u.lp->SignatureSize);
sbin/efi/certs.c
395
if (tp)
sbin/efi/certs.c
396
tp->sigfn(sp, u.lp->SignatureSize, 2);
sbin/efi/devpath2.c
217
char *tp;
sbin/efi/devpath2.c
222
tp = estrdup("AcpiAdr(");
sbin/efi/devpath2.c
224
path->sz = easprintf(&path->cp, "%s0x%08x%s", tp, p->_ADR[i],
sbin/efi/devpath2.c
226
free(tp);
sbin/efi/devpath2.c
227
tp = path->cp;
sbin/efi/devpath2.c
229
path->sz = easprintf(&path->cp, "%s)", tp);
sbin/efi/devpath2.c
230
free(tp);
sbin/efi/devpath2.c
236
tp = dbg->cp;
sbin/efi/devpath2.c
240
tp, i, p->_ADR[i]);
sbin/efi/devpath2.c
241
free(tp);
sbin/efi/devpath2.c
242
tp = dbg->cp;
sbin/efi/devpath3.c
1514
char *bp, *tp;
sbin/efi/devpath3.c
1524
tp = bp;
sbin/efi/devpath3.c
1532
tp,
sbin/efi/devpath3.c
1538
free(tp);
sbin/efi/devpath3.c
1545
tp = bp;
sbin/efi/devpath3.c
1549
tp, ip4addr[i]);
sbin/efi/devpath3.c
1550
free(tp);
sbin/efi/showvar.c
489
static struct vartbl *tp, tbl[] = {
sbin/efi/showvar.c
552
tp = bsearch(v->name, tbl, __arraycount(tbl), sizeof(*tbl),
sbin/efi/showvar.c
555
if (tp != NULL)
sbin/efi/showvar.c
556
rv = tp->fn(v, dbg);
sbin/fsdb/fsdb.c
1263
struct typemap *tp;
sbin/fsdb/fsdb.c
1269
for (tp = typenamemap;
sbin/fsdb/fsdb.c
1270
tp < &typenamemap[sizeof(typenamemap) / sizeof(*typenamemap)];
sbin/fsdb/fsdb.c
1271
tp++) {
sbin/fsdb/fsdb.c
1272
if (!strcmp(argv[1], tp->typename)) {
sbin/fsdb/fsdb.c
1273
printf("setting type to %s\n", tp->typename);
sbin/fsdb/fsdb.c
1274
type = tp->typebits;
sbin/fsdb/fsdb.c
1278
if (tp == &typenamemap[sizeof(typenamemap) / sizeof(*typenamemap)]) {
sbin/iscsid/iscsid_targets.c
813
uint8_t *tp, *sp;
sbin/iscsid/iscsid_targets.c
850
tp = response_buffer;
sbin/iscsid/iscsid_targets.c
851
while (*tp) {
sbin/iscsid/iscsid_targets.c
852
if (strncmp((char *)tp, "TargetName=", 11) != 0) {
sbin/iscsid/iscsid_targets.c
853
DEBOUT(("Response not TargetName <%s>", tp));
sbin/iscsid/iscsid_targets.c
856
tp += 11;
sbin/iscsid/iscsid_targets.c
857
TargetName = tp; /*Point to target name */
sbin/iscsid/iscsid_targets.c
858
while (*tp++) {
sbin/iscsid/iscsid_targets.c
863
while (*tp && strncmp((char *)tp, "TargetAddress=", 14) == 0) {
sbin/iscsid/iscsid_targets.c
864
tp += 14;
sbin/iscsid/iscsid_targets.c
865
sp = tp; /* save start of address */
sbin/iscsid/iscsid_targets.c
866
while (*tp++) {
sbin/mount_qemufwcfg/virtdir.c
104
virtdir_init(virtdir_t *tp, const char *rootdir, const struct stat *d,
sbin/mount_qemufwcfg/virtdir.c
107
tp->dir = *d;
sbin/mount_qemufwcfg/virtdir.c
108
tp->dir.st_mode = S_IFDIR | 0755;
sbin/mount_qemufwcfg/virtdir.c
109
tp->dir.st_nlink = 2;
sbin/mount_qemufwcfg/virtdir.c
110
tp->file = *f;
sbin/mount_qemufwcfg/virtdir.c
111
tp->file.st_mode = S_IFREG | 0644;
sbin/mount_qemufwcfg/virtdir.c
112
tp->file.st_nlink = 1;
sbin/mount_qemufwcfg/virtdir.c
113
tp->lnk = *l;
sbin/mount_qemufwcfg/virtdir.c
114
tp->lnk.st_mode = S_IFLNK | 0644;
sbin/mount_qemufwcfg/virtdir.c
115
tp->lnk.st_nlink = 1;
sbin/mount_qemufwcfg/virtdir.c
117
tp->rootdir = estrdup(rootdir);
sbin/mount_qemufwcfg/virtdir.c
124
virtdir_add(virtdir_t *tp, const char *name, size_t size, uint8_t type,
sbin/mount_qemufwcfg/virtdir.c
131
if (virtdir_find(tp, path, pathlen) != NULL) {
sbin/mount_qemufwcfg/virtdir.c
135
if (tp->c == tp->size || tp->size == 0) {
sbin/mount_qemufwcfg/virtdir.c
136
tp->size += 10;
sbin/mount_qemufwcfg/virtdir.c
137
tp->v = erealloc(tp->v, tp->size * sizeof(*tp->v));
sbin/mount_qemufwcfg/virtdir.c
139
tp->v[tp->c].namelen = pathlen;
sbin/mount_qemufwcfg/virtdir.c
140
tp->v[tp->c].name = estrndup(path, pathlen);
sbin/mount_qemufwcfg/virtdir.c
141
tp->v[tp->c].d_name = strrchr(tp->v[tp->c].name, '/') + 1;
sbin/mount_qemufwcfg/virtdir.c
142
tp->v[tp->c].type = type;
sbin/mount_qemufwcfg/virtdir.c
143
tp->v[tp->c].ino = (ino_t) random() & 0xfffff;
sbin/mount_qemufwcfg/virtdir.c
144
tp->v[tp->c].tgtlen = tgtlen;
sbin/mount_qemufwcfg/virtdir.c
146
tp->v[tp->c].tgt = estrndup(tgt, tgtlen);
sbin/mount_qemufwcfg/virtdir.c
148
tp->v[tp->c].select = select;
sbin/mount_qemufwcfg/virtdir.c
149
tp->c += 1;
sbin/mount_qemufwcfg/virtdir.c
150
qsort(tp->v, tp->c, sizeof(tp->v[0]), compare);
sbin/mount_qemufwcfg/virtdir.c
151
mkdirs(tp, path, pathlen);
sbin/mount_qemufwcfg/virtdir.c
157
virtdir_find(virtdir_t *tp, const char *name, size_t namelen)
sbin/mount_qemufwcfg/virtdir.c
165
return bsearch(&e, tp->v, tp->c, sizeof(tp->v[0]), compare);
sbin/mount_qemufwcfg/virtdir.c
170
virtdir_offset(const virtdir_t *tp, const virt_dirent_t *dp)
sbin/mount_qemufwcfg/virtdir.c
172
return dp - tp->v;
sbin/mount_qemufwcfg/virtdir.c
178
openvirtdir(virtdir_t *tp, const char *d)
sbin/mount_qemufwcfg/virtdir.c
185
dirp->tp = tp;
sbin/mount_qemufwcfg/virtdir.c
197
for ( ; dirp->i < dirp->tp->c; dirp->i++) {
sbin/mount_qemufwcfg/virtdir.c
199
&dirp->tp->v[dirp->i].name[1] :
sbin/mount_qemufwcfg/virtdir.c
200
&dirp->tp->v[dirp->i].name[dirp->dirnamelen + 1];
sbin/mount_qemufwcfg/virtdir.c
201
if (strncmp(dirp->tp->v[dirp->i].name, dirp->dirname,
sbin/mount_qemufwcfg/virtdir.c
204
return &dirp->tp->v[dirp->i++];
sbin/mount_qemufwcfg/virtdir.c
55
mkdirs(virtdir_t *tp, const char *path, size_t size)
sbin/mount_qemufwcfg/virtdir.c
64
if ((ep = virtdir_find(tp, name, strlen(name))) == NULL) {
sbin/mount_qemufwcfg/virtdir.c
65
virtdir_add(tp, name, strlen(name), 'd', NULL, 0, 0);
sbin/mount_qemufwcfg/virtdir.h
65
virtdir_t *tp; /* the directory tree */
sbin/ping/ping.c
1372
sec_to_timespec(const double sec, struct timespec *tp)
sbin/ping/ping.c
1374
tp->tv_sec = sec;
sbin/ping/ping.c
1375
tp->tv_nsec = (sec - tp->tv_sec) * 1000000000.0;
sbin/ping/ping.c
1380
timespec_to_sec(const struct timespec *tp)
sbin/ping/ping.c
1382
return tp->tv_sec + tp->tv_nsec / 1000000000.0;
sbin/ping6/ping6.c
1300
struct timeval tv, tp;
sbin/ping6/ping6.c
1345
tp.tv_sec = ntohl(tpp->tv32_sec);
sbin/ping6/ping6.c
1346
tp.tv_usec = ntohl(tpp->tv32_usec);
sbin/ping6/ping6.c
1347
tvsub(&tv, &tp);
sbin/ping6/ping6.c
2503
timespec_to_sec(const struct timespec *tp)
sbin/ping6/ping6.c
2505
return tp->tv_sec + tp->tv_nsec / 1000000000.0;
sbin/ping6/ping6.c
274
static double timespec_to_sec(const struct timespec *tp);
sbin/restore/symtab.c
391
struct strhdr *np, *tp;
sbin/restore/symtab.c
398
tp = &strtblhdr[len / STRTBLINCR];
sbin/restore/symtab.c
399
if (tp->next == NULL) {
sbin/restore/symtab.c
406
np->next = tp->next;
sbin/restore/symtab.c
407
tp->next = np;
sbin/restore/symtab.c
410
np = tp->next;
sbin/restore/symtab.c
411
tp->next = np->next;
sbin/restore/symtab.c
424
struct strhdr *tp, *np;
sbin/restore/symtab.c
426
tp = &strtblhdr[strlen(name) / STRTBLINCR];
sbin/restore/symtab.c
428
np->next = tp->next;
sbin/restore/symtab.c
429
tp->next = np;
sbin/routed/main.c
822
intvl_random(struct timeval *tp, /* put value here */
sbin/routed/main.c
826
tp->tv_sec = (time_t)(hi == lo
sbin/routed/main.c
829
tp->tv_usec = arc4random() % 1000000;
sbin/routed/parms.c
436
parse_ts(time_t *tp,
sbin/routed/parms.c
477
if ((*tp = mktime(&tm)) == -1) {
sbin/shutdown/shutdown.c
256
const struct interval *tp;
sbin/shutdown/shutdown.c
266
tp = tlist;
sbin/shutdown/shutdown.c
267
if (tp->timeleft < offset)
sbin/shutdown/shutdown.c
268
(void)sleep((u_int)(offset - tp->timeleft));
sbin/shutdown/shutdown.c
270
while (offset < tp->timeleft)
sbin/shutdown/shutdown.c
271
++tp;
sbin/shutdown/shutdown.c
276
if ((sltime = offset - tp->timeleft) != 0) {
sbin/shutdown/shutdown.c
277
if (sltime > tp->timetowait / 5)
sbin/shutdown/shutdown.c
282
for (;; ++tp) {
sbin/shutdown/shutdown.c
283
timewarn(tp->timeleft);
sbin/shutdown/shutdown.c
284
if (!logged && tp->timeleft <= NOLOG_TIME) {
sbin/shutdown/shutdown.c
288
(void)sleep((u_int)tp->timetowait);
sbin/shutdown/shutdown.c
289
if (!tp->timeleft)
share/examples/refuse/dmesgfs/dmesgfs.c
252
build_tree(virtdir_t *tp, const char *nexus, char type)
share/examples/refuse/dmesgfs/dmesgfs.c
298
virtdir_add(tp, buf, strlen(buf),
share/examples/refuse/dmesgfs/dmesgfs.c
304
virtdir_add(tp, buf, strlen(buf), type,
share/examples/refuse/icfs/icfs.c
528
dodir(virtdir_t *tp, char *rootdir, const char *subdir)
share/examples/refuse/icfs/icfs.c
541
if (tp->v == NULL) {
share/examples/refuse/icfs/icfs.c
547
virtdir_init(tp, rootdir, &dir, &f, &l);
share/examples/refuse/icfs/icfs.c
548
virtdir_add(tp, "/", 1, 'd', "/", 1);
share/examples/refuse/icfs/icfs.c
555
len = strlen(tp->rootdir);
share/examples/refuse/icfs/icfs.c
585
if (!virtdir_find(tp, &name[len], strlen(name) - len)) {
share/examples/refuse/icfs/icfs.c
587
virtdir_add(tp, &name[len], strlen(name) - len, type, icname,
share/examples/refuse/icfs/icfs.c
591
dodir(tp, rootdir, &name[len + 1]);
share/examples/refuse/icfs/icfs.c
82
add_entry(virtdir_t *tp, const char *name, uint8_t type)
share/examples/refuse/icfs/icfs.c
91
virtdir_add(tp, &name[len], strlen(name) - len, type, icname,
share/examples/refuse/id3fs/id3fs.c
154
build_id3_tree(DB *db, virtdir_t *tp)
share/examples/refuse/id3fs/id3fs.c
194
if (!virtdir_find(tp, name, strlen(name))) {
share/examples/refuse/id3fs/id3fs.c
195
virtdir_add(tp, name, strlen(name), 'l', key + 1,
share/examples/refuse/pcifs/pcifs.c
150
build_tree(virtdir_t *tp, int bus)
share/examples/refuse/pcifs/pcifs.c
173
virtdir_add(tp, name, cc, 'l', cp + 1, strlen(cp + 1));
share/examples/refuse/virtdir/virtdir.c
115
virtdir_init(virtdir_t *tp, const char *rootdir, struct stat *d, struct stat *f, struct stat *l)
share/examples/refuse/virtdir/virtdir.c
117
(void) memcpy(&tp->dir, d, sizeof(tp->dir));
share/examples/refuse/virtdir/virtdir.c
118
tp->dir.st_mode = S_IFDIR | 0755;
share/examples/refuse/virtdir/virtdir.c
119
tp->dir.st_nlink = 2;
share/examples/refuse/virtdir/virtdir.c
120
(void) memcpy(&tp->file, f, sizeof(tp->file));
share/examples/refuse/virtdir/virtdir.c
121
tp->file.st_mode = S_IFREG | 0644;
share/examples/refuse/virtdir/virtdir.c
122
tp->file.st_nlink = 1;
share/examples/refuse/virtdir/virtdir.c
123
(void) memcpy(&tp->lnk, l, sizeof(tp->lnk));
share/examples/refuse/virtdir/virtdir.c
124
tp->lnk.st_mode = S_IFLNK | 0644;
share/examples/refuse/virtdir/virtdir.c
125
tp->lnk.st_nlink = 1;
share/examples/refuse/virtdir/virtdir.c
127
tp->rootdir = strdup(rootdir);
share/examples/refuse/virtdir/virtdir.c
134
virtdir_add(virtdir_t *tp, const char *name, size_t size, uint8_t type, const char *tgt, size_t tgtlen)
share/examples/refuse/virtdir/virtdir.c
140
if (tp->v == NULL) {
share/examples/refuse/virtdir/virtdir.c
142
virtdir_init(tp, NULL, &st, &st, &st);
share/examples/refuse/virtdir/virtdir.c
145
if (virtdir_find(tp, path, pathlen) != NULL) {
share/examples/refuse/virtdir/virtdir.c
149
ALLOC(virt_dirent_t, tp->v, tp->size, tp->c, 10, 10, "virtdir_add",
share/examples/refuse/virtdir/virtdir.c
151
tp->v[tp->c].namelen = pathlen;
share/examples/refuse/virtdir/virtdir.c
152
if ((tp->v[tp->c].name = strnsave(path, pathlen)) == NULL) {
share/examples/refuse/virtdir/virtdir.c
155
tp->v[tp->c].d_name = strrchr(tp->v[tp->c].name, '/') + 1;
share/examples/refuse/virtdir/virtdir.c
156
tp->v[tp->c].type = type;
share/examples/refuse/virtdir/virtdir.c
157
tp->v[tp->c].ino = (ino_t) random() & 0xfffff;
share/examples/refuse/virtdir/virtdir.c
159
tp->v[tp->c].tgtlen = tgtlen;
share/examples/refuse/virtdir/virtdir.c
160
tp->v[tp->c].tgt = strnsave(tgt, tgtlen);
share/examples/refuse/virtdir/virtdir.c
162
tp->c += 1;
share/examples/refuse/virtdir/virtdir.c
163
qsort(tp->v, tp->c, sizeof(tp->v[0]), compare);
share/examples/refuse/virtdir/virtdir.c
164
mkdirs(tp, path, pathlen);
share/examples/refuse/virtdir/virtdir.c
170
virtdir_del(virtdir_t *tp, const char *name, size_t size)
share/examples/refuse/virtdir/virtdir.c
175
if ((ep = virtdir_find(tp, name, size)) == NULL) {
share/examples/refuse/virtdir/virtdir.c
178
i = (int)(ep - tp->v);
share/examples/refuse/virtdir/virtdir.c
179
for (tp->c -= 1 ; i < tp->c ; i++) {
share/examples/refuse/virtdir/virtdir.c
180
tp->v[i] = tp->v[i + 1];
share/examples/refuse/virtdir/virtdir.c
187
virtdir_find(virtdir_t *tp, const char *name, size_t namelen)
share/examples/refuse/virtdir/virtdir.c
195
return bsearch(&e, tp->v, tp->c, sizeof(tp->v[0]), compare);
share/examples/refuse/virtdir/virtdir.c
200
virtdir_offset(virtdir_t *tp, virt_dirent_t *dp)
share/examples/refuse/virtdir/virtdir.c
202
return (int)(dp - tp->v);
share/examples/refuse/virtdir/virtdir.c
208
openvirtdir(virtdir_t *tp, const char *d)
share/examples/refuse/virtdir/virtdir.c
215
dirp->tp = tp;
share/examples/refuse/virtdir/virtdir.c
227
for ( ; dirp->i < dirp->tp->c ; dirp->i++) {
share/examples/refuse/virtdir/virtdir.c
229
&dirp->tp->v[dirp->i].name[1] :
share/examples/refuse/virtdir/virtdir.c
230
&dirp->tp->v[dirp->i].name[dirp->dirnamelen + 1];
share/examples/refuse/virtdir/virtdir.c
231
if (strncmp(dirp->tp->v[dirp->i].name, dirp->dirname,
share/examples/refuse/virtdir/virtdir.c
235
return &dirp->tp->v[dirp->i++];
share/examples/refuse/virtdir/virtdir.c
251
virtdir_find_tgt(virtdir_t *tp, const char *tgt, size_t tgtlen)
share/examples/refuse/virtdir/virtdir.c
258
for (i = 0 ; i < tp->c ; i++) {
share/examples/refuse/virtdir/virtdir.c
259
if (tp->v[i].tgt && strcmp(tp->v[i].tgt, path) == 0) {
share/examples/refuse/virtdir/virtdir.c
260
return &tp->v[i];
share/examples/refuse/virtdir/virtdir.c
268
virtdir_drop(virtdir_t *tp)
share/examples/refuse/virtdir/virtdir.c
272
for (i = 0 ; i < tp->c ; i++) {
share/examples/refuse/virtdir/virtdir.c
273
FREE(tp->v[i].name);
share/examples/refuse/virtdir/virtdir.c
274
if (tp->v[i].tgt) {
share/examples/refuse/virtdir/virtdir.c
275
FREE(tp->v[i].tgt);
share/examples/refuse/virtdir/virtdir.c
278
FREE(tp->v);
share/examples/refuse/virtdir/virtdir.c
283
virtdir_rootdir(virtdir_t *tp)
share/examples/refuse/virtdir/virtdir.c
285
return tp->rootdir;
share/examples/refuse/virtdir/virtdir.c
290
ptree(virtdir_t * tp)
share/examples/refuse/virtdir/virtdir.c
294
for (i = 0 ; i < tp->c ; i++) {
share/examples/refuse/virtdir/virtdir.c
295
printf("%s, tgt %s\n", tp->v[i].name, tp->v[i].tgt);
share/examples/refuse/virtdir/virtdir.c
304
virt_dirent_t *tp;
share/examples/refuse/virtdir/virtdir.c
322
if ((tp = virtdir_find(&t, "a", 1)) == NULL) {
share/examples/refuse/virtdir/virtdir.c
68
mkdirs(virtdir_t *tp, const char *path, size_t size)
share/examples/refuse/virtdir/virtdir.c
77
if ((ep = virtdir_find(tp, name, strlen(name))) == NULL) {
share/examples/refuse/virtdir/virtdir.c
78
virtdir_add(tp, name, strlen(name), 'd', NULL, 0);
share/examples/refuse/virtdir/virtdir.h
65
virtdir_t *tp; /* the directory tree */
sys/altq/altq_red.c
1089
#define FV_TIMESTAMP(tp) getmicrotime(tp)
sys/arch/alpha/alpha/promcons.c
115
tp = prom_tty[unit] = tty_alloc();
sys/arch/alpha/alpha/promcons.c
116
tty_attach(tp);
sys/arch/alpha/alpha/promcons.c
118
tp = prom_tty[unit];
sys/arch/alpha/alpha/promcons.c
120
tp->t_oproc = promstart;
sys/arch/alpha/alpha/promcons.c
121
tp->t_param = promparam;
sys/arch/alpha/alpha/promcons.c
122
tp->t_dev = dev;
sys/arch/alpha/alpha/promcons.c
124
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp)) {
sys/arch/alpha/alpha/promcons.c
129
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/arch/alpha/alpha/promcons.c
130
tp->t_state |= TS_CARR_ON;
sys/arch/alpha/alpha/promcons.c
131
ttychars(tp);
sys/arch/alpha/alpha/promcons.c
132
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/alpha/alpha/promcons.c
133
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/alpha/alpha/promcons.c
134
tp->t_cflag = TTYDEF_CFLAG|CLOCAL;
sys/arch/alpha/alpha/promcons.c
135
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/alpha/alpha/promcons.c
136
tp->t_ispeed = tp->t_ospeed = CONSPEED;
sys/arch/alpha/alpha/promcons.c
137
ttsetwater(tp);
sys/arch/alpha/alpha/promcons.c
144
error = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/alpha/alpha/promcons.c
149
callout_reset(&prom_ch, polltime, promtimeout, tp);
sys/arch/alpha/alpha/promcons.c
158
struct tty *tp = prom_tty[unit];
sys/arch/alpha/alpha/promcons.c
161
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/alpha/alpha/promcons.c
162
ttyclose(tp);
sys/arch/alpha/alpha/promcons.c
169
struct tty *tp = prom_tty[minor(dev)];
sys/arch/alpha/alpha/promcons.c
171
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/arch/alpha/alpha/promcons.c
177
struct tty *tp = prom_tty[minor(dev)];
sys/arch/alpha/alpha/promcons.c
179
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/arch/alpha/alpha/promcons.c
185
struct tty *tp = prom_tty[minor(dev)];
sys/arch/alpha/alpha/promcons.c
187
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/alpha/alpha/promcons.c
194
struct tty *tp = prom_tty[unit];
sys/arch/alpha/alpha/promcons.c
197
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/alpha/alpha/promcons.c
200
return ttioctl(tp, cmd, data, flag, l);
sys/arch/alpha/alpha/promcons.c
204
promparam(struct tty *tp, struct termios *t)
sys/arch/alpha/alpha/promcons.c
211
promstart(struct tty *tp)
sys/arch/alpha/alpha/promcons.c
216
if (tp->t_state & (TS_TTSTOP | TS_BUSY))
sys/arch/alpha/alpha/promcons.c
218
ttypull(tp);
sys/arch/alpha/alpha/promcons.c
219
tp->t_state |= TS_BUSY;
sys/arch/alpha/alpha/promcons.c
220
while (tp->t_outq.c_cc != 0)
sys/arch/alpha/alpha/promcons.c
221
promcnputc(tp->t_dev, getc(&tp->t_outq));
sys/arch/alpha/alpha/promcons.c
222
tp->t_state &= ~TS_BUSY;
sys/arch/alpha/alpha/promcons.c
231
promstop(struct tty *tp, int flag)
sys/arch/alpha/alpha/promcons.c
236
if (tp->t_state & TS_BUSY)
sys/arch/alpha/alpha/promcons.c
237
if ((tp->t_state & TS_TTSTOP) == 0)
sys/arch/alpha/alpha/promcons.c
238
tp->t_state |= TS_FLUSH;
sys/arch/alpha/alpha/promcons.c
245
struct tty *tp = v;
sys/arch/alpha/alpha/promcons.c
248
while (promcnlookc(tp->t_dev, &c)) {
sys/arch/alpha/alpha/promcons.c
249
if (tp->t_state & TS_ISOPEN)
sys/arch/alpha/alpha/promcons.c
250
(*tp->t_linesw->l_rint)(c, tp);
sys/arch/alpha/alpha/promcons.c
252
callout_reset(&prom_ch, polltime, promtimeout, tp);
sys/arch/alpha/alpha/promcons.c
99
struct tty *tp;
sys/arch/amd64/amd64/gdt.c
85
update_descriptor(void *tp, void *ep)
sys/arch/amd64/amd64/gdt.c
89
table = tp;
sys/arch/amiga/dev/ite.c
1013
kbd_tty = kbd_ite->tp;
sys/arch/amiga/dev/ite.c
1343
kbd_tty = kbd_ite->tp;
sys/arch/amiga/dev/ite.c
2084
if (kbd_tty && kbd_ite && kbd_ite->tp == kbd_tty
sys/arch/amiga/dev/ite.c
419
struct tty *tp;
sys/arch/amiga/dev/ite.c
433
if (ip->tp == NULL) {
sys/arch/amiga/dev/ite.c
434
tp = ip->tp = tty_alloc();
sys/arch/amiga/dev/ite.c
435
tty_attach(tp);
sys/arch/amiga/dev/ite.c
437
tp = ip->tp;
sys/arch/amiga/dev/ite.c
439
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/amiga/dev/ite.c
446
tp->t_oproc = itestart;
sys/arch/amiga/dev/ite.c
447
tp->t_param = ite_param;
sys/arch/amiga/dev/ite.c
448
tp->t_dev = dev;
sys/arch/amiga/dev/ite.c
449
if ((tp->t_state & TS_ISOPEN) == 0 && tp->t_wopen == 0) {
sys/arch/amiga/dev/ite.c
450
ttychars(tp);
sys/arch/amiga/dev/ite.c
451
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/amiga/dev/ite.c
452
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/amiga/dev/ite.c
453
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/amiga/dev/ite.c
454
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/amiga/dev/ite.c
455
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/arch/amiga/dev/ite.c
456
tp->t_state = TS_CARR_ON;
sys/arch/amiga/dev/ite.c
457
ttsetwater(tp);
sys/arch/amiga/dev/ite.c
459
error = ttyopen(tp, 0, mode & O_NONBLOCK);
sys/arch/amiga/dev/ite.c
463
error = tp->t_linesw->l_open(dev, tp);
sys/arch/amiga/dev/ite.c
467
tp->t_winsize.ws_row = ip->rows;
sys/arch/amiga/dev/ite.c
468
tp->t_winsize.ws_col = ip->cols;
sys/arch/amiga/dev/ite.c
480
struct tty *tp;
sys/arch/amiga/dev/ite.c
482
tp = getitesp(dev)->tp;
sys/arch/amiga/dev/ite.c
484
KDASSERT(tp);
sys/arch/amiga/dev/ite.c
485
tp->t_linesw->l_close(tp, flag);
sys/arch/amiga/dev/ite.c
486
ttyclose(tp);
sys/arch/amiga/dev/ite.c
494
struct tty *tp;
sys/arch/amiga/dev/ite.c
496
tp = getitesp(dev)->tp;
sys/arch/amiga/dev/ite.c
498
KDASSERT(tp);
sys/arch/amiga/dev/ite.c
499
return tp->t_linesw->l_read(tp, uio, flag);
sys/arch/amiga/dev/ite.c
505
struct tty *tp;
sys/arch/amiga/dev/ite.c
507
tp = getitesp(dev)->tp;
sys/arch/amiga/dev/ite.c
509
KDASSERT(tp);
sys/arch/amiga/dev/ite.c
510
return tp->t_linesw->l_write(tp, uio, flag);
sys/arch/amiga/dev/ite.c
516
struct tty *tp;
sys/arch/amiga/dev/ite.c
518
tp = getitesp(dev)->tp;
sys/arch/amiga/dev/ite.c
520
KDASSERT(tp);
sys/arch/amiga/dev/ite.c
521
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/amiga/dev/ite.c
527
return (getitesp(dev)->tp);
sys/arch/amiga/dev/ite.c
536
struct tty *tp;
sys/arch/amiga/dev/ite.c
540
tp = ip->tp;
sys/arch/amiga/dev/ite.c
542
KDASSERT(tp);
sys/arch/amiga/dev/ite.c
544
error = tp->t_linesw->l_ioctl(tp, cmd, addr, flag, l);
sys/arch/amiga/dev/ite.c
547
error = ttioctl(tp, cmd, addr, flag, l);
sys/arch/amiga/dev/ite.c
603
itestart(struct tty *tp)
sys/arch/amiga/dev/ite.c
609
(void)getitesp(tp->t_dev);
sys/arch/amiga/dev/ite.c
611
KDASSERT(tp);
sys/arch/amiga/dev/ite.c
614
if (tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP))
sys/arch/amiga/dev/ite.c
617
tp->t_state |= TS_BUSY;
sys/arch/amiga/dev/ite.c
618
rbp = &tp->t_outq;
sys/arch/amiga/dev/ite.c
624
ite_putstr(buf, len, tp->t_dev);
sys/arch/amiga/dev/ite.c
627
tp->t_state &= ~TS_BUSY;
sys/arch/amiga/dev/ite.c
629
if (ttypull(tp)) {
sys/arch/amiga/dev/ite.c
630
tp->t_state |= TS_TIMEOUT;
sys/arch/amiga/dev/ite.c
631
callout_schedule(&tp->t_rstrt_ch, 1);
sys/arch/amiga/dev/ite.c
693
ite_param(struct tty *tp, struct termios *t)
sys/arch/amiga/dev/ite.c
695
tp->t_ispeed = t->c_ispeed;
sys/arch/amiga/dev/ite.c
696
tp->t_ospeed = t->c_ospeed;
sys/arch/amiga/dev/ite.c
697
tp->t_cflag = t->c_cflag;
sys/arch/amiga/dev/ite.c
839
if (kbd_ite == NULL || kbd_ite->tp == NULL)
sys/arch/amiga/dev/ite.c
842
kbd_tty = kbd_ite->tp;
sys/arch/amiga/dev/itevar.h
52
struct tty *tp;
sys/arch/amiga/dev/mfc.c
1013
tp = sc->sc_tty;
sys/arch/amiga/dev/mfc.c
1015
tp->t_state &= ~(TS_BUSY | TS_FLUSH);
sys/arch/amiga/dev/mfc.c
1025
tp = sc->sc_tty;
sys/arch/amiga/dev/mfc.c
1027
tp->t_state &= ~(TS_BUSY | TS_FLUSH);
sys/arch/amiga/dev/mfc.c
1047
struct tty *tp = sc->sc_tty;
sys/arch/amiga/dev/mfc.c
1059
while (sc->incnt && (tp->t_state & TS_TBLOCK) == 0) {
sys/arch/amiga/dev/mfc.c
1080
if (sc->incnt == 0 && (tp->t_state & TS_TBLOCK) == 0) {
sys/arch/amiga/dev/mfc.c
1090
struct tty *tp;
sys/arch/amiga/dev/mfc.c
1094
tp = sc->sc_tty;
sys/arch/amiga/dev/mfc.c
1098
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/arch/amiga/dev/mfc.c
1123
tp->t_linesw->l_rint(c, tp);
sys/arch/amiga/dev/mfc.c
1135
struct tty *tp;
sys/arch/amiga/dev/mfc.c
1139
tp = sc->sc_tty;
sys/arch/amiga/dev/mfc.c
1140
if (!tp)
sys/arch/amiga/dev/mfc.c
1143
if ((tp->t_state & TS_ISOPEN) == 0 && tp->t_wopen == 0) {
sys/arch/amiga/dev/mfc.c
1163
(SWFLAGS(tp->t_dev) & TIOCFLAG_SOFTCAR) == 0) {
sys/arch/amiga/dev/mfc.c
1165
tp->t_linesw->l_modem(tp, 1);
sys/arch/amiga/dev/mfc.c
1166
else if (tp->t_linesw->l_modem(tp, 0) == 0) {
sys/arch/amiga/dev/mfc.c
1176
struct tty *tp = sc->sc_tty;
sys/arch/amiga/dev/mfc.c
1178
if (tp->t_linesw)
sys/arch/amiga/dev/mfc.c
1179
tp->t_linesw->l_start(tp);
sys/arch/amiga/dev/mfc.c
1181
mfcsstart(tp);
sys/arch/amiga/dev/mfc.c
493
struct tty *tp;
sys/arch/amiga/dev/mfc.c
505
tp = sc->sc_tty;
sys/arch/amiga/dev/mfc.c
507
tp = sc->sc_tty = tty_alloc();
sys/arch/amiga/dev/mfc.c
508
tty_attach(tp);
sys/arch/amiga/dev/mfc.c
511
tp->t_oproc = (void (*) (struct tty *)) mfcsstart;
sys/arch/amiga/dev/mfc.c
512
tp->t_param = mfcsparam;
sys/arch/amiga/dev/mfc.c
513
tp->t_dev = dev;
sys/arch/amiga/dev/mfc.c
514
tp->t_hwiflow = mfcshwiflow;
sys/arch/amiga/dev/mfc.c
516
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/amiga/dev/mfc.c
519
ttylock(tp);
sys/arch/amiga/dev/mfc.c
520
if ((tp->t_state & TS_ISOPEN) == 0 && tp->t_wopen == 0) {
sys/arch/amiga/dev/mfc.c
521
ttychars(tp);
sys/arch/amiga/dev/mfc.c
522
if (tp->t_ispeed == 0) {
sys/arch/amiga/dev/mfc.c
526
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/amiga/dev/mfc.c
527
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/amiga/dev/mfc.c
528
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/amiga/dev/mfc.c
529
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/amiga/dev/mfc.c
530
tp->t_ispeed = tp->t_ospeed = mfcsdefaultrate;
sys/arch/amiga/dev/mfc.c
536
tp->t_cflag |= CLOCAL;
sys/arch/amiga/dev/mfc.c
538
tp->t_cflag |= CRTSCTS;
sys/arch/amiga/dev/mfc.c
540
tp->t_cflag |= MDMBUF;
sys/arch/amiga/dev/mfc.c
541
mfcsparam(tp, &tp->t_termios);
sys/arch/amiga/dev/mfc.c
542
ttsetwater(tp);
sys/arch/amiga/dev/mfc.c
547
tp->t_state |= TS_CARR_ON;
sys/arch/amiga/dev/mfc.c
549
tp->t_state &= ~TS_CARR_ON;
sys/arch/amiga/dev/mfc.c
561
while ((tp->t_state & TS_CARR_ON) == 0 && (tp->t_cflag & CLOCAL) == 0) {
sys/arch/amiga/dev/mfc.c
562
tp->t_wopen++;
sys/arch/amiga/dev/mfc.c
563
error = ttysleep(tp, &tp->t_rawcv, true, 0);
sys/arch/amiga/dev/mfc.c
564
tp->t_wopen--;
sys/arch/amiga/dev/mfc.c
566
ttyunlock(tp);
sys/arch/amiga/dev/mfc.c
572
if ((flag & O_TRUNC) && (tp->t_state & TS_TTSTOP)) {
sys/arch/amiga/dev/mfc.c
573
tp->t_state &= ~TS_TTSTOP;
sys/arch/amiga/dev/mfc.c
574
ttstart (tp);
sys/arch/amiga/dev/mfc.c
580
tp->t_dev = dev;
sys/arch/amiga/dev/mfc.c
581
ttyunlock(tp);
sys/arch/amiga/dev/mfc.c
582
return tp->t_linesw->l_open(dev, tp);
sys/arch/amiga/dev/mfc.c
589
struct tty *tp;
sys/arch/amiga/dev/mfc.c
596
tp = sc->sc_tty;
sys/arch/amiga/dev/mfc.c
597
tp->t_linesw->l_close(tp, flag);
sys/arch/amiga/dev/mfc.c
612
if (tp->t_cflag & HUPCL || tp->t_wopen != 0 ||
sys/arch/amiga/dev/mfc.c
613
(tp->t_state & TS_ISOPEN) == 0)
sys/arch/amiga/dev/mfc.c
616
ttyclose(tp);
sys/arch/amiga/dev/mfc.c
618
if (tp != &mfcs_cons) {
sys/arch/amiga/dev/mfc.c
620
tty_free(tp);
sys/arch/amiga/dev/mfc.c
631
struct tty *tp = sc->sc_tty;
sys/arch/amiga/dev/mfc.c
632
if (tp == NULL)
sys/arch/amiga/dev/mfc.c
634
return tp->t_linesw->l_read(tp, uio, flag);
sys/arch/amiga/dev/mfc.c
641
struct tty *tp = sc->sc_tty;
sys/arch/amiga/dev/mfc.c
643
if (tp == NULL)
sys/arch/amiga/dev/mfc.c
645
return tp->t_linesw->l_write(tp, uio, flag);
sys/arch/amiga/dev/mfc.c
652
struct tty *tp = sc->sc_tty;
sys/arch/amiga/dev/mfc.c
654
if (tp == NULL)
sys/arch/amiga/dev/mfc.c
656
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/amiga/dev/mfc.c
670
register struct tty *tp;
sys/arch/amiga/dev/mfc.c
674
tp = sc->sc_tty;
sys/arch/amiga/dev/mfc.c
675
if (!tp)
sys/arch/amiga/dev/mfc.c
678
error = tp->t_linesw->l_ioctl(tp, cmd, data, flag, l);
sys/arch/amiga/dev/mfc.c
682
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/amiga/dev/mfc.c
723
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/amiga/dev/mfc.c
740
mfcsparam(struct tty *tp, struct termios *t)
sys/arch/amiga/dev/mfc.c
743
struct mfcs_softc *sc = device_lookup_private(&mfcs_cd, tp->t_dev & 31);
sys/arch/amiga/dev/mfc.c
747
unit = tp->t_dev & 31;
sys/arch/amiga/dev/mfc.c
781
tp->t_ispeed = t->c_ispeed;
sys/arch/amiga/dev/mfc.c
782
tp->t_ospeed = t->c_ospeed;
sys/arch/amiga/dev/mfc.c
783
tp->t_cflag = cflag;
sys/arch/amiga/dev/mfc.c
795
(void)mfcsmctl(tp->t_dev, 0, DMSET); /* hang up line */
sys/arch/amiga/dev/mfc.c
801
(void)mfcsmctl(tp->t_dev, TIOCM_DTR | TIOCM_RTS, DMSET);
sys/arch/amiga/dev/mfc.c
808
mfcshwiflow(struct tty *tp, int flag)
sys/arch/amiga/dev/mfc.c
810
struct mfcs_softc *sc = device_lookup_private(&mfcs_cd, tp->t_dev & 31);
sys/arch/amiga/dev/mfc.c
811
int unit = tp->t_dev & 1;
sys/arch/amiga/dev/mfc.c
821
mfcsstart(struct tty *tp)
sys/arch/amiga/dev/mfc.c
824
struct mfcs_softc *sc = device_lookup_private(&mfcs_cd, tp->t_dev & 31);
sys/arch/amiga/dev/mfc.c
827
if ((tp->t_state & TS_ISOPEN) == 0)
sys/arch/amiga/dev/mfc.c
830
unit = tp->t_dev & 1;
sys/arch/amiga/dev/mfc.c
833
if (tp->t_state & (TS_TIMEOUT | TS_TTSTOP))
sys/arch/amiga/dev/mfc.c
836
cc = tp->t_outq.c_cc;
sys/arch/amiga/dev/mfc.c
837
if (!ttypull(tp) || (tp->t_state & TS_BUSY))
sys/arch/amiga/dev/mfc.c
844
if ((tp->t_cflag & CRTSCTS) == 0)
sys/arch/amiga/dev/mfc.c
853
cc = q_to_b(&tp->t_outq, sc->outbuf, cc);
sys/arch/amiga/dev/mfc.c
855
tp->t_state |= TS_BUSY;
sys/arch/amiga/dev/mfc.c
878
mfcsstop(struct tty *tp, int flag)
sys/arch/amiga/dev/mfc.c
883
if (tp->t_state & TS_BUSY) {
sys/arch/amiga/dev/mfc.c
884
if ((tp->t_state & TS_TTSTOP) == 0)
sys/arch/amiga/dev/mfc.c
885
tp->t_state |= TS_FLUSH;
sys/arch/amiga/dev/mfc.c
960
struct tty *tp;
sys/arch/amiga/dev/msc.c
1008
if (tp->t_state & (TS_TIMEOUT|TS_TTSTOP))
sys/arch/amiga/dev/msc.c
1012
cc = tp->t_outq.c_cc;
sys/arch/amiga/dev/msc.c
1013
if (!ttypull(tp) || (tp->t_state & TS_BUSY))
sys/arch/amiga/dev/msc.c
1034
cc = q_to_b (&tp->t_outq, msc->tmpbuf, cc);
sys/arch/amiga/dev/msc.c
1037
tp->t_state |= TS_BUSY;
sys/arch/amiga/dev/msc.c
1066
tp->t_state &= ~TS_BUSY;
sys/arch/amiga/dev/msc.c
1080
mscstop(register struct tty *tp, int flag)
sys/arch/amiga/dev/msc.c
1090
if (tp->t_state & TS_BUSY) {
sys/arch/amiga/dev/msc.c
1091
if ((tp->t_state & TS_TTSTOP) == 0) {
sys/arch/amiga/dev/msc.c
1092
tp->t_state |= TS_FLUSH;
sys/arch/amiga/dev/msc.c
1094
msc = &mscdev[MSCSLOT(tp->t_dev)];
sys/arch/amiga/dev/msc.c
1096
printf("stopped output on msc%d\n", MSCSLOT(tp->t_dev));
sys/arch/amiga/dev/msc.c
330
register struct tty *tp;
sys/arch/amiga/dev/msc.c
360
tp = tty_alloc();
sys/arch/amiga/dev/msc.c
361
tty_attach(tp);
sys/arch/amiga/dev/msc.c
362
msc_tty[ttyn] = tp;
sys/arch/amiga/dev/msc.c
367
clfree(&tp->t_rawq);
sys/arch/amiga/dev/msc.c
368
clfree(&tp->t_canq);
sys/arch/amiga/dev/msc.c
369
clfree(&tp->t_outq);
sys/arch/amiga/dev/msc.c
370
clalloc(&tp->t_rawq, 8192, 1);
sys/arch/amiga/dev/msc.c
371
clalloc(&tp->t_canq, 8192, 1);
sys/arch/amiga/dev/msc.c
372
clalloc(&tp->t_outq, 8192, 0);
sys/arch/amiga/dev/msc.c
376
tp = msc_tty[ttyn];
sys/arch/amiga/dev/msc.c
378
tp->t_oproc = (void (*) (struct tty *)) mscstart;
sys/arch/amiga/dev/msc.c
379
tp->t_param = mscparam;
sys/arch/amiga/dev/msc.c
380
tp->t_dev = dev;
sys/arch/amiga/dev/msc.c
381
tp->t_hwiflow = mschwiflow;
sys/arch/amiga/dev/msc.c
390
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/amiga/dev/msc.c
393
ttylock(tp);
sys/arch/amiga/dev/msc.c
395
if ((tp->t_state & TS_ISOPEN) == 0 && tp->t_wopen == 0) {
sys/arch/amiga/dev/msc.c
396
ttychars(tp);
sys/arch/amiga/dev/msc.c
397
if (tp->t_ispeed == 0) {
sys/arch/amiga/dev/msc.c
398
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/amiga/dev/msc.c
399
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/amiga/dev/msc.c
400
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/amiga/dev/msc.c
401
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/amiga/dev/msc.c
402
tp->t_ispeed = tp->t_ospeed = mscdefaultrate;
sys/arch/amiga/dev/msc.c
407
tp->t_cflag |= CLOCAL;
sys/arch/amiga/dev/msc.c
409
tp->t_cflag |= CRTSCTS;
sys/arch/amiga/dev/msc.c
411
tp->t_cflag |= MDMBUF;
sys/arch/amiga/dev/msc.c
413
mscparam(tp, &tp->t_termios);
sys/arch/amiga/dev/msc.c
414
ttsetwater(tp);
sys/arch/amiga/dev/msc.c
420
tp->t_state |= TS_CARR_ON;
sys/arch/amiga/dev/msc.c
422
tp->t_state &= ~TS_CARR_ON;
sys/arch/amiga/dev/msc.c
444
while ((tp->t_state & TS_CARR_ON) == 0 && (tp->t_cflag & CLOCAL) == 0) {
sys/arch/amiga/dev/msc.c
445
tp->t_wopen++;
sys/arch/amiga/dev/msc.c
450
error = ttysleep(tp, &tp->t_rawcv, true, 0);
sys/arch/amiga/dev/msc.c
451
tp->t_wopen--;
sys/arch/amiga/dev/msc.c
454
ttyunlock(tp);
sys/arch/amiga/dev/msc.c
465
if ((flag & O_TRUNC) && (tp->t_state & TS_TTSTOP)) {
sys/arch/amiga/dev/msc.c
466
tp->t_state &= ~TS_TTSTOP;
sys/arch/amiga/dev/msc.c
467
ttstart (tp);
sys/arch/amiga/dev/msc.c
474
tp->t_dev = dev;
sys/arch/amiga/dev/msc.c
475
ttyunlock(tp);
sys/arch/amiga/dev/msc.c
477
return tp->t_linesw->l_open(dev, tp);
sys/arch/amiga/dev/msc.c
484
register struct tty *tp;
sys/arch/amiga/dev/msc.c
502
tp = msc_tty[MSCTTY(dev)];
sys/arch/amiga/dev/msc.c
503
tp->t_linesw->l_close(tp, flag);
sys/arch/amiga/dev/msc.c
507
ttyclose(tp);
sys/arch/amiga/dev/msc.c
521
register struct tty *tp;
sys/arch/amiga/dev/msc.c
523
tp = msc_tty[MSCTTY(dev)];
sys/arch/amiga/dev/msc.c
525
if (! tp)
sys/arch/amiga/dev/msc.c
528
return tp->t_linesw->l_read(tp, uio, flag);
sys/arch/amiga/dev/msc.c
535
register struct tty *tp;
sys/arch/amiga/dev/msc.c
537
tp = msc_tty[MSCTTY(dev)];
sys/arch/amiga/dev/msc.c
539
if (! tp)
sys/arch/amiga/dev/msc.c
542
return tp->t_linesw->l_write(tp, uio, flag);
sys/arch/amiga/dev/msc.c
548
register struct tty *tp;
sys/arch/amiga/dev/msc.c
550
tp = msc_tty[MSCTTY(dev)];
sys/arch/amiga/dev/msc.c
552
if (! tp)
sys/arch/amiga/dev/msc.c
555
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/amiga/dev/msc.c
574
register struct tty *tp;
sys/arch/amiga/dev/msc.c
614
if ((tp = msc_tty[MSCTTYSLOT(MSCSLOTUL(unit, i))]) &&
sys/arch/amiga/dev/msc.c
615
(tp->t_state & TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/amiga/dev/msc.c
618
if (MSCDIALIN(tp->t_dev))
sys/arch/amiga/dev/msc.c
621
if (tp->t_linesw->l_modem(tp, 0) == 0) {
sys/arch/amiga/dev/msc.c
637
if ((tp = msc_tty[MSCTTYSLOT(MSCSLOTUL(unit, i))]) &&
sys/arch/amiga/dev/msc.c
638
(tp->t_state & TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/amiga/dev/msc.c
639
if (MSCDIALIN(tp->t_dev))
sys/arch/amiga/dev/msc.c
640
tp->t_linesw->l_modem(tp, 1);
sys/arch/amiga/dev/msc.c
658
tp = msc_tty[MSCTTYSLOT(slot)];
sys/arch/amiga/dev/msc.c
664
if (tp && (tp->t_state & TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/amiga/dev/msc.c
686
tp->t_linesw->l_rint(TTY_FE, tp);
sys/arch/amiga/dev/msc.c
696
if (tp->t_state & TS_TBLOCK) {
sys/arch/amiga/dev/msc.c
699
tp->t_linesw->l_rint((int)ibuf[bufpos++], tp);
sys/arch/amiga/dev/msc.c
714
if (tp->t_state & (TS_BUSY|TS_FLUSH)) {
sys/arch/amiga/dev/msc.c
719
if (tp->t_state & TS_BUSY) {
sys/arch/amiga/dev/msc.c
721
tp->t_state &= ~TS_BUSY; /* not busy any more */
sys/arch/amiga/dev/msc.c
722
if (tp->t_linesw)
sys/arch/amiga/dev/msc.c
723
tp->t_linesw->l_start(tp);
sys/arch/amiga/dev/msc.c
725
mscstart(tp);
sys/arch/amiga/dev/msc.c
730
if (tp->t_state & TS_FLUSH) {
sys/arch/amiga/dev/msc.c
732
tp->t_state &= ~TS_FLUSH; /* finished flushing */
sys/arch/amiga/dev/msc.c
780
(void) mscmctl(tp->t_dev, 0, DMSET);
sys/arch/amiga/dev/msc.c
791
register struct tty *tp;
sys/arch/amiga/dev/msc.c
810
if (!(tp = msc_tty[MSCTTY(dev)]))
sys/arch/amiga/dev/msc.c
813
error = tp->t_linesw->l_ioctl(tp, cmd, data, flag, l);
sys/arch/amiga/dev/msc.c
817
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/amiga/dev/msc.c
873
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/amiga/dev/msc.c
891
mscparam(register struct tty *tp, register struct termios *t)
sys/arch/amiga/dev/msc.c
900
slot = MSCSLOT(tp->t_dev);
sys/arch/amiga/dev/msc.c
917
tp->t_ispeed = t->c_ispeed;
sys/arch/amiga/dev/msc.c
918
tp->t_ospeed = t->c_ospeed;
sys/arch/amiga/dev/msc.c
919
tp->t_cflag = cflag;
sys/arch/amiga/dev/msc.c
923
if (!MSCDIALIN(tp->t_dev)) /* don't let dialins drop DTR */
sys/arch/amiga/dev/msc.c
924
(void) mscmctl(tp->t_dev, 0, DMSET);
sys/arch/amiga/dev/msc.c
934
(void) mscmctl (tp->t_dev, TIOCM_DTR | TIOCM_RTS, DMSET);
sys/arch/amiga/dev/msc.c
949
mschwiflow(struct tty *tp, int flag)
sys/arch/amiga/dev/msc.c
955
mscmctl( tp->t_dev, TIOCM_RTS, DMBIC); /* Clear/Lower RTS */
sys/arch/amiga/dev/msc.c
957
mscmctl( tp->t_dev, TIOCM_RTS, DMBIS); /* Set/Raise RTS */
sys/arch/amiga/dev/msc.c
966
slot = MSCSLOT(tp->t_dev);
sys/arch/amiga/dev/msc.c
984
mscstart(register struct tty *tp)
sys/arch/amiga/dev/msc.c
996
if (! (tp->t_state & TS_ISOPEN))
sys/arch/amiga/dev/msc.c
999
slot = MSCSLOT(tp->t_dev);
sys/arch/amiga/dev/ser.c
231
struct tty *tp;
sys/arch/amiga/dev/ser.c
269
tp = tty_alloc();
sys/arch/amiga/dev/ser.c
270
tp->t_oproc = (void (*) (struct tty *)) serstart;
sys/arch/amiga/dev/ser.c
271
tp->t_param = serparam;
sys/arch/amiga/dev/ser.c
272
tp->t_hwiflow = serhwiflow;
sys/arch/amiga/dev/ser.c
273
tty_attach(tp);
sys/arch/amiga/dev/ser.c
274
sc->ser_tty = ser_tty = tp;
sys/arch/amiga/dev/ser.c
287
struct tty *tp;
sys/arch/amiga/dev/ser.c
301
tp = sc->ser_tty;
sys/arch/amiga/dev/ser.c
303
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/amiga/dev/ser.c
312
if ((tp->t_state & TS_ISOPEN) == 0 && tp->t_wopen == 0) {
sys/arch/amiga/dev/ser.c
315
tp->t_dev = dev;
sys/arch/amiga/dev/ser.c
338
tp->t_ospeed = 0;
sys/arch/amiga/dev/ser.c
339
serparam(tp, &t);
sys/arch/amiga/dev/ser.c
340
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/amiga/dev/ser.c
341
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/amiga/dev/ser.c
342
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/amiga/dev/ser.c
343
ttychars(tp);
sys/arch/amiga/dev/ser.c
344
ttsetwater(tp);
sys/arch/amiga/dev/ser.c
356
error = ttyopen(tp, DIALOUT(dev), flag & O_NONBLOCK);
sys/arch/amiga/dev/ser.c
360
error = tp->t_linesw->l_open(dev, tp);
sys/arch/amiga/dev/ser.c
367
if (!(tp->t_state & TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/amiga/dev/ser.c
379
struct tty *tp;
sys/arch/amiga/dev/ser.c
382
tp = ser_tty;
sys/arch/amiga/dev/ser.c
385
if (!(tp->t_state & TS_ISOPEN))
sys/arch/amiga/dev/ser.c
388
tp->t_linesw->l_close(tp, flag);
sys/arch/amiga/dev/ser.c
389
ttyclose(tp);
sys/arch/amiga/dev/ser.c
391
if (!(tp->t_state & TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/amiga/dev/ser.c
400
struct tty *tp = sc->ser_tty;
sys/arch/amiga/dev/ser.c
418
if (tp->t_cflag & HUPCL) {
sys/arch/amiga/dev/ser.c
419
(void)sermctl(tp->t_dev, TIOCM_DTR, DMBIC);
sys/arch/amiga/dev/ser.c
425
(void) tsleep(tp, TTIPRI, ttclos, hz);
sys/arch/amiga/dev/ser.c
429
if (tp != &ser_cons) {
sys/arch/amiga/dev/ser.c
431
tty_free(tp);
sys/arch/amiga/dev/ser.c
435
ser_open_speed = tp->t_ispeed;
sys/arch/amiga/dev/ser.c
536
struct tty *tp = ser_tty;
sys/arch/amiga/dev/ser.c
547
while (sbcnt > 0 && (tp->t_state & TS_TBLOCK) == 0) {
sys/arch/amiga/dev/ser.c
569
if (sbcnt == 0 && (tp->t_state & TS_TBLOCK) == 0)
sys/arch/amiga/dev/ser.c
579
struct tty *tp;
sys/arch/amiga/dev/ser.c
583
tp = ser_tty;
sys/arch/amiga/dev/ser.c
587
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/arch/amiga/dev/ser.c
618
if ((tp->t_cflag & PARENB) &&
sys/arch/amiga/dev/ser.c
620
+ !!(tp->t_cflag & PARODD)) & 1))
sys/arch/amiga/dev/ser.c
627
tp->t_linesw->l_rint(c, tp);
sys/arch/amiga/dev/ser.c
639
struct tty *tp;
sys/arch/amiga/dev/ser.c
642
tp = ser_tty;
sys/arch/amiga/dev/ser.c
643
if (!tp)
sys/arch/amiga/dev/ser.c
667
tp->t_linesw->l_modem(tp, ISDCD(stat));
sys/arch/amiga/dev/ser.c
670
if ((istat & CIAB_PRA_CTS) && (tp->t_state & TS_ISOPEN) &&
sys/arch/amiga/dev/ser.c
671
(tp->t_cflag & CRTSCTS)) {
sys/arch/amiga/dev/ser.c
675
tp->t_state &= ~TS_TTSTOP;
sys/arch/amiga/dev/ser.c
676
ttstart(tp);
sys/arch/amiga/dev/ser.c
680
tp->t_state |= TS_TTSTOP;
sys/arch/amiga/dev/ser.c
684
tp->t_state &= ~TS_TTSTOP;
sys/arch/amiga/dev/ser.c
695
register struct tty *tp;
sys/arch/amiga/dev/ser.c
698
tp = ser_tty;
sys/arch/amiga/dev/ser.c
699
if (!tp)
sys/arch/amiga/dev/ser.c
702
error = tp->t_linesw->l_ioctl(tp, cmd, data, flag, l);
sys/arch/amiga/dev/ser.c
706
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/amiga/dev/ser.c
747
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/amiga/dev/ser.c
763
serparam(struct tty *tp, struct termios *t)
sys/arch/amiga/dev/ser.c
781
if (tp->t_ospeed == t->c_ospeed &&
sys/arch/amiga/dev/ser.c
782
tp->t_cflag == t->c_cflag)
sys/arch/amiga/dev/ser.c
797
tp->t_ispeed = t->c_ispeed;
sys/arch/amiga/dev/ser.c
798
tp->t_ospeed = t->c_ospeed;
sys/arch/amiga/dev/ser.c
799
tp->t_cflag = cflag;
sys/arch/amiga/dev/ser.c
800
ser_open_speed = tp->t_ispeed;
sys/arch/amiga/dev/ser.c
809
(void)sermctl(tp->t_dev, 0, DMSET); /* hang up line */
sys/arch/amiga/dev/ser.c
815
(void)sermctl(tp->t_dev, TIOCM_DTR, DMSET);
sys/arch/amiga/dev/ser.c
818
(void)tp->t_linesw->l_modem(tp, ISDCD(last_ciab_pra));
sys/arch/amiga/dev/ser.c
823
int serhwiflow(struct tty *tp, int flag)
sys/arch/amiga/dev/ser.c
836
ser_putchar(struct tty *tp, u_short c)
sys/arch/amiga/dev/ser.c
838
if ((tp->t_cflag & CSIZE) == CS7 || (tp->t_cflag & PARENB))
sys/arch/amiga/dev/ser.c
844
if (tp->t_cflag & PARENB) {
sys/arch/amiga/dev/ser.c
847
if (tp->t_cflag & PARODD)
sys/arch/amiga/dev/ser.c
853
if (tp->t_cflag & CSTOPB)
sys/arch/amiga/dev/ser.c
868
struct tty *tp;
sys/arch/amiga/dev/ser.c
871
tp = ser_tty;
sys/arch/amiga/dev/ser.c
874
if (tp == 0)
sys/arch/amiga/dev/ser.c
886
tp->t_state &= ~(TS_BUSY | TS_FLUSH);
sys/arch/amiga/dev/ser.c
887
if (tp->t_linesw)
sys/arch/amiga/dev/ser.c
888
tp->t_linesw->l_start(tp);
sys/arch/amiga/dev/ser.c
890
serstart(tp);
sys/arch/amiga/dev/ser.c
900
ser_putchar(tp, *sob_ptr++);
sys/arch/amiga/dev/ser.c
908
serstart(struct tty *tp)
sys/arch/amiga/dev/ser.c
917
if ((tp->t_state & TS_ISOPEN) == 0)
sys/arch/amiga/dev/ser.c
921
unit = SERUNIT(tp->t_dev);
sys/arch/amiga/dev/ser.c
927
if (tp->t_state & (TS_TIMEOUT | TS_TTSTOP))
sys/arch/amiga/dev/ser.c
930
cc = tp->t_outq.c_cc;
sys/arch/amiga/dev/ser.c
931
if (!ttypull(tp) || (tp->t_state & TS_BUSY))
sys/arch/amiga/dev/ser.c
938
if ((tp->t_cflag & CRTSCTS) == 0)
sys/arch/amiga/dev/ser.c
949
cc = q_to_b(&tp->t_outq, ser_outbuf, cc);
sys/arch/amiga/dev/ser.c
951
tp->t_state |= TS_BUSY;
sys/arch/amiga/dev/ser.c
961
ser_putchar(tp, *sob_ptr++);
sys/arch/amiga/dev/ser.c
972
serstop(struct tty *tp, int flag)
sys/arch/amiga/dev/ser.c
977
if (tp->t_state & TS_BUSY) {
sys/arch/amiga/dev/ser.c
978
if ((tp->t_state & TS_TTSTOP) == 0)
sys/arch/amiga/dev/ser.c
979
tp->t_state |= TS_FLUSH;
sys/arch/arc/dev/pccons.c
606
struct tty *tp;
sys/arch/arc/dev/pccons.c
613
tp = sc->sc_tty = tty_alloc();
sys/arch/arc/dev/pccons.c
616
tp = sc->sc_tty;
sys/arch/arc/dev/pccons.c
619
tp->t_oproc = pcstart;
sys/arch/arc/dev/pccons.c
620
tp->t_param = pcparam;
sys/arch/arc/dev/pccons.c
621
tp->t_dev = dev;
sys/arch/arc/dev/pccons.c
623
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/arc/dev/pccons.c
626
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/arch/arc/dev/pccons.c
627
ttychars(tp);
sys/arch/arc/dev/pccons.c
628
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/arc/dev/pccons.c
629
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/arc/dev/pccons.c
630
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/arc/dev/pccons.c
631
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/arc/dev/pccons.c
632
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/arch/arc/dev/pccons.c
633
pcparam(tp, &tp->t_termios);
sys/arch/arc/dev/pccons.c
634
ttsetwater(tp);
sys/arch/arc/dev/pccons.c
637
tp->t_state |= TS_CARR_ON;
sys/arch/arc/dev/pccons.c
639
return (*tp->t_linesw->l_open)(dev, tp);
sys/arch/arc/dev/pccons.c
646
struct tty *tp = sc->sc_tty;
sys/arch/arc/dev/pccons.c
648
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/arc/dev/pccons.c
649
ttyclose(tp);
sys/arch/arc/dev/pccons.c
651
tty_free(tp);
sys/arch/arc/dev/pccons.c
660
struct tty *tp = sc->sc_tty;
sys/arch/arc/dev/pccons.c
662
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/arch/arc/dev/pccons.c
669
struct tty *tp = sc->sc_tty;
sys/arch/arc/dev/pccons.c
671
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/arch/arc/dev/pccons.c
678
struct tty *tp = sc->sc_tty;
sys/arch/arc/dev/pccons.c
680
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/arc/dev/pccons.c
687
struct tty *tp = sc->sc_tty;
sys/arch/arc/dev/pccons.c
689
return tp;
sys/arch/arc/dev/pccons.c
701
struct tty *tp = sc->sc_tty;
sys/arch/arc/dev/pccons.c
710
if (!tp || (tp->t_state & TS_ISOPEN) == 0)
sys/arch/arc/dev/pccons.c
714
(*tp->t_linesw->l_rint)(*cp++, tp);
sys/arch/arc/dev/pccons.c
724
struct tty *tp = sc->sc_tty;
sys/arch/arc/dev/pccons.c
727
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/arc/dev/pccons.c
730
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/arc/dev/pccons.c
802
pcstart(struct tty *tp)
sys/arch/arc/dev/pccons.c
809
if (tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP))
sys/arch/arc/dev/pccons.c
811
tp->t_state |= TS_BUSY;
sys/arch/arc/dev/pccons.c
817
cl = &tp->t_outq;
sys/arch/arc/dev/pccons.c
821
tp->t_state &= ~TS_BUSY;
sys/arch/arc/dev/pccons.c
822
if (ttypull(tp)) {
sys/arch/arc/dev/pccons.c
823
tp->t_state |= TS_TIMEOUT;
sys/arch/arc/dev/pccons.c
824
callout_schedule(&tp->t_rstrt_ch, 1);
sys/arch/arc/dev/pccons.c
922
pcparam(struct tty *tp, struct termios *t)
sys/arch/arc/dev/pccons.c
925
tp->t_ispeed = t->c_ispeed;
sys/arch/arc/dev/pccons.c
926
tp->t_ospeed = t->c_ospeed;
sys/arch/arc/dev/pccons.c
927
tp->t_cflag = t->c_cflag;
sys/arch/arm/amlogic/meson_uart.c
169
struct tty *tp;
sys/arch/arm/amlogic/meson_uart.c
222
tp = sc->sc_tty = tty_alloc();
sys/arch/arm/amlogic/meson_uart.c
223
tp->t_oproc = meson_uart_start;
sys/arch/arm/amlogic/meson_uart.c
224
tp->t_param = meson_uart_param;
sys/arch/arm/amlogic/meson_uart.c
225
tp->t_dev = makedev(major, minor);
sys/arch/arm/amlogic/meson_uart.c
226
tp->t_sc = sc;
sys/arch/arm/amlogic/meson_uart.c
227
tty_attach(tp);
sys/arch/arm/amlogic/meson_uart.c
231
cn_tab->cn_dev = tp->t_dev;
sys/arch/arm/amlogic/meson_uart.c
305
struct tty *tp = sc->sc_tty;
sys/arch/arm/amlogic/meson_uart.c
309
KAUTH_DEVICE_TTY_OPEN, tp) != 0) {
sys/arch/arm/amlogic/meson_uart.c
313
if ((tp->t_state & TS_ISOPEN) == 0 && tp->t_wopen == 0) {
sys/arch/arm/amlogic/meson_uart.c
314
tp->t_dev = dev;
sys/arch/arm/amlogic/meson_uart.c
315
ttychars(tp);
sys/arch/arm/amlogic/meson_uart.c
316
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/arm/amlogic/meson_uart.c
317
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/arm/amlogic/meson_uart.c
318
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/arm/amlogic/meson_uart.c
319
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/arm/amlogic/meson_uart.c
320
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/arch/arm/amlogic/meson_uart.c
321
ttsetwater(tp);
sys/arch/arm/amlogic/meson_uart.c
327
tp->t_state |= TS_CARR_ON;
sys/arch/arm/amlogic/meson_uart.c
329
return tp->t_linesw->l_open(dev, tp);
sys/arch/arm/amlogic/meson_uart.c
337
struct tty *tp = sc->sc_tty;
sys/arch/arm/amlogic/meson_uart.c
340
tp->t_linesw->l_close(tp, flag);
sys/arch/arm/amlogic/meson_uart.c
341
ttyclose(tp);
sys/arch/arm/amlogic/meson_uart.c
343
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/amlogic/meson_uart.c
357
struct tty *tp = sc->sc_tty;
sys/arch/arm/amlogic/meson_uart.c
359
return tp->t_linesw->l_read(tp, uio, flag);
sys/arch/arm/amlogic/meson_uart.c
367
struct tty *tp = sc->sc_tty;
sys/arch/arm/amlogic/meson_uart.c
369
return tp->t_linesw->l_write(tp, uio, flag);
sys/arch/arm/amlogic/meson_uart.c
377
struct tty *tp = sc->sc_tty;
sys/arch/arm/amlogic/meson_uart.c
379
return tp->t_linesw->l_poll(tp, events, l);
sys/arch/arm/amlogic/meson_uart.c
387
struct tty *tp = sc->sc_tty;
sys/arch/arm/amlogic/meson_uart.c
390
error = tp->t_linesw->l_ioctl(tp, cmd, data, flag, l);
sys/arch/arm/amlogic/meson_uart.c
394
return ttioctl(tp, cmd, data, flag, l);
sys/arch/arm/amlogic/meson_uart.c
407
meson_uart_stop(struct tty *tp, int flag)
sys/arch/arm/amlogic/meson_uart.c
412
meson_uart_start(struct tty *tp)
sys/arch/arm/amlogic/meson_uart.c
414
struct meson_uart_softc *sc = tp->t_sc;
sys/arch/arm/amlogic/meson_uart.c
420
if (tp->t_state & (TS_TTSTOP | TS_BUSY | TS_TIMEOUT)) {
sys/arch/arm/amlogic/meson_uart.c
424
tp->t_state |= TS_BUSY;
sys/arch/arm/amlogic/meson_uart.c
428
for (brem = q_to_b(&tp->t_outq, sc->sc_buf, sizeof(sc->sc_buf));
sys/arch/arm/amlogic/meson_uart.c
440
tp->t_state &= ~TS_BUSY;
sys/arch/arm/amlogic/meson_uart.c
441
if (ttypull(tp)) {
sys/arch/arm/amlogic/meson_uart.c
442
tp->t_state |= TS_TIMEOUT;
sys/arch/arm/amlogic/meson_uart.c
443
callout_schedule(&tp->t_rstrt_ch, 1);
sys/arch/arm/amlogic/meson_uart.c
449
meson_uart_param(struct tty *tp, struct termios *t)
sys/arch/arm/amlogic/meson_uart.c
452
tp->t_ispeed = t->c_ispeed;
sys/arch/arm/amlogic/meson_uart.c
453
tp->t_ospeed = t->c_ospeed;
sys/arch/arm/amlogic/meson_uart.c
454
tp->t_cflag = t->c_cflag;
sys/arch/arm/amlogic/meson_uart.c
463
struct tty *tp = sc->sc_tty;
sys/arch/arm/amlogic/meson_uart.c
475
cn_check_magic(tp->t_dev, CNC_BREAK,
sys/arch/arm/amlogic/meson_uart.c
482
cn_check_magic(tp->t_dev, c & 0xff, meson_uart_cnm_state);
sys/arch/arm/amlogic/meson_uart.c
502
struct tty *tp = sc->sc_tty;
sys/arch/arm/amlogic/meson_uart.c
507
if (tp->t_linesw->l_rint(c & 0xff, tp) == -1)
sys/arch/arm/at91/at91dbgu.c
222
struct tty *tp;
sys/arch/arm/at91/at91dbgu.c
246
tp = tty_alloc();
sys/arch/arm/at91/at91dbgu.c
247
tp->t_oproc = at91dbgu_start;
sys/arch/arm/at91/at91dbgu.c
248
tp->t_param = at91dbgu_param;
sys/arch/arm/at91/at91dbgu.c
249
tp->t_hwiflow = at91dbgu_hwiflow;
sys/arch/arm/at91/at91dbgu.c
251
sc->sc_tty = tp;
sys/arch/arm/at91/at91dbgu.c
258
tty_attach(tp);
sys/arch/arm/at91/at91dbgu.c
292
at91dbgu_param(struct tty *tp, struct termios *t)
sys/arch/arm/at91/at91dbgu.c
295
= device_lookup_private(&at91dbgu_cd, COMUNIT(tp->t_dev));
sys/arch/arm/at91/at91dbgu.c
319
if (tp->t_ospeed == t->c_ospeed &&
sys/arch/arm/at91/at91dbgu.c
320
tp->t_cflag == t->c_cflag)
sys/arch/arm/at91/at91dbgu.c
328
tp->t_ispeed = 0;
sys/arch/arm/at91/at91dbgu.c
329
tp->t_ospeed = t->c_ospeed;
sys/arch/arm/at91/at91dbgu.c
330
tp->t_cflag = t->c_cflag;
sys/arch/arm/at91/at91dbgu.c
339
(void) (*tp->t_linesw->l_modem)(tp, 1);
sys/arch/arm/at91/at91dbgu.c
349
at91dbgu_start(tp);
sys/arch/arm/at91/at91dbgu.c
357
at91dbgu_hwiflow(struct tty *tp, int block)
sys/arch/arm/at91/at91dbgu.c
383
at91dbgu_start(struct tty *tp)
sys/arch/arm/at91/at91dbgu.c
386
= device_lookup_private(&at91dbgu_cd, COMUNIT(tp->t_dev));
sys/arch/arm/at91/at91dbgu.c
393
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/arch/arm/at91/at91dbgu.c
397
if (!ttypull(tp))
sys/arch/arm/at91/at91dbgu.c
405
tba = tp->t_outq.c_cf;
sys/arch/arm/at91/at91dbgu.c
406
tbc = ndqb(&tp->t_outq, 0);
sys/arch/arm/at91/at91dbgu.c
414
SET(tp->t_state, TS_BUSY);
sys/arch/arm/at91/at91dbgu.c
464
struct tty *tp;
sys/arch/arm/at91/at91dbgu.c
484
tp = sc->sc_tty;
sys/arch/arm/at91/at91dbgu.c
486
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/arm/at91/at91dbgu.c
494
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/at91/at91dbgu.c
497
tp->t_dev = dev;
sys/arch/arm/at91/at91dbgu.c
550
tp->t_ospeed = 0;
sys/arch/arm/at91/at91dbgu.c
551
(void) at91dbgu_param(tp, &t);
sys/arch/arm/at91/at91dbgu.c
552
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/arm/at91/at91dbgu.c
553
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/arm/at91/at91dbgu.c
554
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/arm/at91/at91dbgu.c
555
ttychars(tp);
sys/arch/arm/at91/at91dbgu.c
556
ttsetwater(tp);
sys/arch/arm/at91/at91dbgu.c
576
error = ttyopen(tp, COMDIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/arch/arm/at91/at91dbgu.c
580
error = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/arm/at91/at91dbgu.c
587
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/at91/at91dbgu.c
602
struct tty *tp = sc->sc_tty;
sys/arch/arm/at91/at91dbgu.c
605
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/arch/arm/at91/at91dbgu.c
608
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/arm/at91/at91dbgu.c
609
ttyclose(tp);
sys/arch/arm/at91/at91dbgu.c
614
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/at91/at91dbgu.c
630
struct tty *tp = sc->sc_tty;
sys/arch/arm/at91/at91dbgu.c
635
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/arch/arm/at91/at91dbgu.c
642
struct tty *tp = sc->sc_tty;
sys/arch/arm/at91/at91dbgu.c
647
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/arch/arm/at91/at91dbgu.c
654
struct tty *tp = sc->sc_tty;
sys/arch/arm/at91/at91dbgu.c
659
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/arm/at91/at91dbgu.c
666
struct tty *tp = sc->sc_tty;
sys/arch/arm/at91/at91dbgu.c
668
return (tp);
sys/arch/arm/at91/at91dbgu.c
675
struct tty *tp = sc->sc_tty;
sys/arch/arm/at91/at91dbgu.c
682
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/arm/at91/at91dbgu.c
686
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/arm/at91/at91dbgu.c
709
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/arm/at91/at91dbgu.c
729
at91dbgu_stop(struct tty *tp, int flag)
sys/arch/arm/at91/at91dbgu.c
732
= device_lookup_private(&at91dbgu_cd, COMUNIT(tp->t_dev));
sys/arch/arm/at91/at91dbgu.c
736
if (ISSET(tp->t_state, TS_BUSY)) {
sys/arch/arm/at91/at91dbgu.c
739
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/arch/arm/at91/at91dbgu.c
740
SET(tp->t_state, TS_FLUSH);
sys/arch/arm/at91/at91dbgu.c
909
at91dbgu_txsoft(struct at91dbgu_softc *sc, struct tty *tp)
sys/arch/arm/at91/at91dbgu.c
911
CLR(tp->t_state, TS_BUSY);
sys/arch/arm/at91/at91dbgu.c
912
if (ISSET(tp->t_state, TS_FLUSH))
sys/arch/arm/at91/at91dbgu.c
913
CLR(tp->t_state, TS_FLUSH);
sys/arch/arm/at91/at91dbgu.c
915
ndflush(&tp->t_outq, (int)(sc->sc_tba - tp->t_outq.c_cf));
sys/arch/arm/at91/at91dbgu.c
916
(*tp->t_linesw->l_start)(tp);
sys/arch/arm/at91/at91dbgu.c
920
at91dbgu_rxsoft(struct at91dbgu_softc *sc, struct tty *tp)
sys/arch/arm/at91/at91dbgu.c
922
int (*rint)(int, struct tty *) = tp->t_linesw->l_rint;
sys/arch/arm/at91/at91dbgu.c
957
if ((*rint)(code, tp) == -1) {
sys/arch/arm/at91/at91usart.c
1034
at91usart_txsoft(struct at91usart_softc *sc, struct tty *tp)
sys/arch/arm/at91/at91usart.c
1037
if (!ISSET(tp->t_state, TS_BUSY))
sys/arch/arm/at91/at91usart.c
1038
(*tp->t_linesw->l_start)(tp);
sys/arch/arm/at91/at91usart.c
243
struct tty *tp;
sys/arch/arm/at91/at91usart.c
287
tp = tty_alloc();
sys/arch/arm/at91/at91usart.c
288
tp->t_oproc = at91usart_start;
sys/arch/arm/at91/at91usart.c
289
tp->t_param = at91usart_param;
sys/arch/arm/at91/at91usart.c
290
tp->t_hwiflow = at91usart_hwiflow;
sys/arch/arm/at91/at91usart.c
292
sc->sc_tty = tp;
sys/arch/arm/at91/at91usart.c
294
tty_attach(tp);
sys/arch/arm/at91/at91usart.c
330
at91usart_param(struct tty *tp, struct termios *t)
sys/arch/arm/at91/at91usart.c
333
= device_lookup_private(&at91usart_cd, COMUNIT(tp->t_dev));
sys/arch/arm/at91/at91usart.c
357
if (tp->t_ospeed == t->c_ospeed &&
sys/arch/arm/at91/at91usart.c
358
tp->t_cflag == t->c_cflag)
sys/arch/arm/at91/at91usart.c
366
tp->t_ispeed = 0;
sys/arch/arm/at91/at91usart.c
367
tp->t_ospeed = t->c_ospeed;
sys/arch/arm/at91/at91usart.c
368
tp->t_cflag = t->c_cflag;
sys/arch/arm/at91/at91usart.c
377
(void) (*tp->t_linesw->l_modem)(tp, 1);
sys/arch/arm/at91/at91usart.c
392
at91usart_hwiflow(struct tty *tp, int block)
sys/arch/arm/at91/at91usart.c
444
struct tty *tp = sc->sc_tty;
sys/arch/arm/at91/at91usart.c
461
CLR(tp->t_state, TS_BUSY);
sys/arch/arm/at91/at91usart.c
465
ndflush(&tp->t_outq, len);
sys/arch/arm/at91/at91usart.c
479
at91usart_start(struct tty *tp)
sys/arch/arm/at91/at91usart.c
482
= device_lookup_private(&at91usart_cd, COMUNIT(tp->t_dev));
sys/arch/arm/at91/at91usart.c
491
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP)) {
sys/arch/arm/at91/at91usart.c
496
if (!ttypull(tp))
sys/arch/arm/at91/at91usart.c
504
tba = tp->t_outq.c_cf;
sys/arch/arm/at91/at91usart.c
505
tbc = ndqb(&tp->t_outq, 0);
sys/arch/arm/at91/at91usart.c
511
SET(tp->t_state, TS_BUSY);
sys/arch/arm/at91/at91usart.c
566
struct tty *tp;
sys/arch/arm/at91/at91usart.c
585
tp = sc->sc_tty;
sys/arch/arm/at91/at91usart.c
587
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/arm/at91/at91usart.c
595
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/at91/at91usart.c
598
tp->t_dev = dev;
sys/arch/arm/at91/at91usart.c
648
tp->t_ospeed = 0;
sys/arch/arm/at91/at91usart.c
649
(void) at91usart_param(tp, &t);
sys/arch/arm/at91/at91usart.c
650
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/arm/at91/at91usart.c
651
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/arm/at91/at91usart.c
652
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/arm/at91/at91usart.c
653
ttychars(tp);
sys/arch/arm/at91/at91usart.c
654
ttsetwater(tp);
sys/arch/arm/at91/at91usart.c
668
error = ttyopen(tp, COMDIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/arch/arm/at91/at91usart.c
672
error = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/arm/at91/at91usart.c
679
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/at91/at91usart.c
694
struct tty *tp = sc->sc_tty;
sys/arch/arm/at91/at91usart.c
697
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/arch/arm/at91/at91usart.c
700
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/arm/at91/at91usart.c
701
ttyclose(tp);
sys/arch/arm/at91/at91usart.c
706
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/at91/at91usart.c
722
struct tty *tp = sc->sc_tty;
sys/arch/arm/at91/at91usart.c
727
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/arch/arm/at91/at91usart.c
734
struct tty *tp = sc->sc_tty;
sys/arch/arm/at91/at91usart.c
739
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/arch/arm/at91/at91usart.c
746
struct tty *tp = sc->sc_tty;
sys/arch/arm/at91/at91usart.c
751
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/arm/at91/at91usart.c
758
struct tty *tp = sc->sc_tty;
sys/arch/arm/at91/at91usart.c
760
return (tp);
sys/arch/arm/at91/at91usart.c
767
struct tty *tp = sc->sc_tty;
sys/arch/arm/at91/at91usart.c
774
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/arm/at91/at91usart.c
778
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/arm/at91/at91usart.c
801
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/arm/at91/at91usart.c
821
at91usart_stop(struct tty *tp, int flag)
sys/arch/arm/at91/at91usart.c
824
= device_lookup_private(&at91usart_cd, COMUNIT(tp->t_dev));
sys/arch/arm/at91/at91usart.c
828
if (ISSET(tp->t_state, TS_BUSY)) {
sys/arch/arm/at91/at91usart.c
831
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/arch/arm/at91/at91usart.c
832
SET(tp->t_state, TS_FLUSH);
sys/arch/arm/at91/at91usart.c
964
at91usart_rxsoft(struct at91usart_softc *sc, struct tty *tp, unsigned csr)
sys/arch/arm/at91/at91usart.c
976
int (*rint)(int, struct tty *) = tp->t_linesw->l_rint;
sys/arch/arm/at91/at91usart.c
984
if ((*rint)(code, tp) == -1) {
sys/arch/arm/clps711x/clpscom.c
394
struct tty *tp = sc->sc_tty;
sys/arch/arm/clps711x/clpscom.c
401
clpscom_rxsoft(sc, tp);
sys/arch/arm/clps711x/clpscom.c
405
CLR(tp->t_state, TS_BUSY);
sys/arch/arm/clps711x/clpscom.c
406
if (ISSET(tp->t_state, TS_FLUSH))
sys/arch/arm/clps711x/clpscom.c
407
CLR(tp->t_state, TS_FLUSH);
sys/arch/arm/clps711x/clpscom.c
409
ndflush(&tp->t_outq,
sys/arch/arm/clps711x/clpscom.c
410
(int)(sc->sc_tba - tp->t_outq.c_cf));
sys/arch/arm/clps711x/clpscom.c
411
(*tp->t_linesw->l_start)(tp);
sys/arch/arm/clps711x/clpscom.c
415
clpscom_mssoft(sc, tp);
sys/arch/arm/clps711x/clpscom.c
420
clpscom_start(struct tty *tp)
sys/arch/arm/clps711x/clpscom.c
423
= device_lookup_private(&clpscom_cd, COMUNIT(tp->t_dev));
sys/arch/arm/clps711x/clpscom.c
430
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/arch/arm/clps711x/clpscom.c
434
if (!ttypull(tp))
sys/arch/arm/clps711x/clpscom.c
442
tba = tp->t_outq.c_cf;
sys/arch/arm/clps711x/clpscom.c
443
tbc = ndqb(&tp->t_outq, 0);
sys/arch/arm/clps711x/clpscom.c
451
SET(tp->t_state, TS_BUSY);
sys/arch/arm/clps711x/clpscom.c
473
clpscom_param(struct tty *tp, struct termios *t)
sys/arch/arm/clps711x/clpscom.c
476
device_lookup_private(&clpscom_cd, COMUNIT(tp->t_dev));
sys/arch/arm/clps711x/clpscom.c
499
if (tp->t_ospeed == t->c_ospeed &&
sys/arch/arm/clps711x/clpscom.c
500
tp->t_cflag == t->c_cflag)
sys/arch/arm/clps711x/clpscom.c
540
tp->t_ispeed = 0;
sys/arch/arm/clps711x/clpscom.c
541
tp->t_ospeed = t->c_ospeed;
sys/arch/arm/clps711x/clpscom.c
542
tp->t_cflag = t->c_cflag;
sys/arch/arm/clps711x/clpscom.c
550
(*tp->t_linesw->l_modem)(tp, ISSET(sc->sc_ms, SYSFLG_DCD));
sys/arch/arm/clps711x/clpscom.c
555
clpscom_start(tp);
sys/arch/arm/clps711x/clpscom.c
562
clpscom_hwiflow(struct tty *tp, int block)
sys/arch/arm/clps711x/clpscom.c
573
struct tty *tp;
sys/arch/arm/clps711x/clpscom.c
590
tp = sc->sc_tty;
sys/arch/arm/clps711x/clpscom.c
592
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/arm/clps711x/clpscom.c
600
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/clps711x/clpscom.c
603
tp->t_dev = dev;
sys/arch/arm/clps711x/clpscom.c
630
tp->t_ospeed = 0;
sys/arch/arm/clps711x/clpscom.c
631
clpscom_param(tp, &t);
sys/arch/arm/clps711x/clpscom.c
632
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/arm/clps711x/clpscom.c
633
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/arm/clps711x/clpscom.c
634
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/arm/clps711x/clpscom.c
635
ttychars(tp);
sys/arch/arm/clps711x/clpscom.c
636
ttsetwater(tp);
sys/arch/arm/clps711x/clpscom.c
650
error = ttyopen(tp, COMDIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/arch/arm/clps711x/clpscom.c
654
error = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/arm/clps711x/clpscom.c
660
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/clps711x/clpscom.c
682
struct tty *tp = sc->sc_tty;
sys/arch/arm/clps711x/clpscom.c
685
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/arch/arm/clps711x/clpscom.c
688
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/arm/clps711x/clpscom.c
689
ttyclose(tp);
sys/arch/arm/clps711x/clpscom.c
694
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/clps711x/clpscom.c
716
struct tty *tp = sc->sc_tty;
sys/arch/arm/clps711x/clpscom.c
721
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/arch/arm/clps711x/clpscom.c
729
struct tty *tp = sc->sc_tty;
sys/arch/arm/clps711x/clpscom.c
734
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/arch/arm/clps711x/clpscom.c
742
struct tty *tp = sc->sc_tty;
sys/arch/arm/clps711x/clpscom.c
748
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/arm/clps711x/clpscom.c
752
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/arm/clps711x/clpscom.c
759
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/arm/clps711x/clpscom.c
803
struct tty *tp = sc->sc_tty;
sys/arch/arm/clps711x/clpscom.c
808
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/arm/clps711x/clpscom.c
821
clpscomstop(struct tty *tp, int flag)
sys/arch/arm/clps711x/clpscom.c
826
if (ISSET(tp->t_state, TS_BUSY)) {
sys/arch/arm/clps711x/clpscom.c
828
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/arch/arm/clps711x/clpscom.c
829
SET(tp->t_state, TS_FLUSH);
sys/arch/arm/clps711x/clpscom.c
906
clpscom_rxsoft(struct clpscom_softc *sc, struct tty *tp)
sys/arch/arm/clps711x/clpscom.c
925
if ((*tp->t_linesw->l_rint)(code, tp) == -1) {
sys/arch/arm/clps711x/clpscom.c
979
clpscom_mssoft(struct clpscom_softc *sc, struct tty *tp)
sys/arch/arm/clps711x/clpscom.c
991
(void) (*tp->t_linesw->l_modem)(tp, ISSET(ms, SYSFLG_DCD));
sys/arch/arm/clps711x/clpscom.c
997
(*tp->t_linesw->l_start)(tp);
sys/arch/arm/ep93xx/epcom.c
214
struct tty *tp;
sys/arch/arm/ep93xx/epcom.c
227
tp = tty_alloc();
sys/arch/arm/ep93xx/epcom.c
228
tp->t_oproc = epcomstart;
sys/arch/arm/ep93xx/epcom.c
229
tp->t_param = epcomparam;
sys/arch/arm/ep93xx/epcom.c
230
tp->t_hwiflow = epcomhwiflow;
sys/arch/arm/ep93xx/epcom.c
232
sc->sc_tty = tp;
sys/arch/arm/ep93xx/epcom.c
243
tty_attach(tp);
sys/arch/arm/ep93xx/epcom.c
287
epcomparam(struct tty *tp, struct termios *t)
sys/arch/arm/ep93xx/epcom.c
290
= device_lookup_private(&epcom_cd, COMUNIT(tp->t_dev));
sys/arch/arm/ep93xx/epcom.c
314
if (tp->t_ospeed == t->c_ospeed &&
sys/arch/arm/ep93xx/epcom.c
315
tp->t_cflag == t->c_cflag)
sys/arch/arm/ep93xx/epcom.c
325
tp->t_ispeed = 0;
sys/arch/arm/ep93xx/epcom.c
326
tp->t_ospeed = t->c_ospeed;
sys/arch/arm/ep93xx/epcom.c
327
tp->t_cflag = t->c_cflag;
sys/arch/arm/ep93xx/epcom.c
336
(void) (*tp->t_linesw->l_modem)(tp, 1);
sys/arch/arm/ep93xx/epcom.c
346
epcomstart(tp);
sys/arch/arm/ep93xx/epcom.c
354
epcomhwiflow(struct tty *tp, int block)
sys/arch/arm/ep93xx/epcom.c
379
epcomstart(struct tty *tp)
sys/arch/arm/ep93xx/epcom.c
382
= device_lookup_private(&epcom_cd, COMUNIT(tp->t_dev));
sys/arch/arm/ep93xx/epcom.c
389
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/arch/arm/ep93xx/epcom.c
393
if (!ttypull(tp))
sys/arch/arm/ep93xx/epcom.c
401
tba = tp->t_outq.c_cf;
sys/arch/arm/ep93xx/epcom.c
402
tbc = ndqb(&tp->t_outq, 0);
sys/arch/arm/ep93xx/epcom.c
410
SET(tp->t_state, TS_BUSY);
sys/arch/arm/ep93xx/epcom.c
465
struct tty *tp;
sys/arch/arm/ep93xx/epcom.c
485
tp = sc->sc_tty;
sys/arch/arm/ep93xx/epcom.c
487
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/arm/ep93xx/epcom.c
495
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/ep93xx/epcom.c
498
tp->t_dev = dev;
sys/arch/arm/ep93xx/epcom.c
551
tp->t_ospeed = 0;
sys/arch/arm/ep93xx/epcom.c
552
(void) epcomparam(tp, &t);
sys/arch/arm/ep93xx/epcom.c
553
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/arm/ep93xx/epcom.c
554
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/arm/ep93xx/epcom.c
555
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/arm/ep93xx/epcom.c
556
ttychars(tp);
sys/arch/arm/ep93xx/epcom.c
557
ttsetwater(tp);
sys/arch/arm/ep93xx/epcom.c
577
error = ttyopen(tp, COMDIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/arch/arm/ep93xx/epcom.c
581
error = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/arm/ep93xx/epcom.c
588
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/ep93xx/epcom.c
603
struct tty *tp = sc->sc_tty;
sys/arch/arm/ep93xx/epcom.c
606
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/arch/arm/ep93xx/epcom.c
609
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/arm/ep93xx/epcom.c
610
ttyclose(tp);
sys/arch/arm/ep93xx/epcom.c
615
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/ep93xx/epcom.c
631
struct tty *tp = sc->sc_tty;
sys/arch/arm/ep93xx/epcom.c
636
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/arch/arm/ep93xx/epcom.c
643
struct tty *tp = sc->sc_tty;
sys/arch/arm/ep93xx/epcom.c
648
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/arch/arm/ep93xx/epcom.c
655
struct tty *tp = sc->sc_tty;
sys/arch/arm/ep93xx/epcom.c
660
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/arm/ep93xx/epcom.c
667
struct tty *tp = sc->sc_tty;
sys/arch/arm/ep93xx/epcom.c
669
return (tp);
sys/arch/arm/ep93xx/epcom.c
676
struct tty *tp = sc->sc_tty;
sys/arch/arm/ep93xx/epcom.c
683
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/arm/ep93xx/epcom.c
687
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/arm/ep93xx/epcom.c
710
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/arm/ep93xx/epcom.c
730
epcomstop(struct tty *tp, int flag)
sys/arch/arm/ep93xx/epcom.c
733
= device_lookup_private(&epcom_cd, COMUNIT(tp->t_dev));
sys/arch/arm/ep93xx/epcom.c
737
if (ISSET(tp->t_state, TS_BUSY)) {
sys/arch/arm/ep93xx/epcom.c
740
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/arch/arm/ep93xx/epcom.c
741
SET(tp->t_state, TS_FLUSH);
sys/arch/arm/ep93xx/epcom.c
903
epcom_txsoft(struct epcom_softc *sc, struct tty *tp)
sys/arch/arm/ep93xx/epcom.c
905
CLR(tp->t_state, TS_BUSY);
sys/arch/arm/ep93xx/epcom.c
906
if (ISSET(tp->t_state, TS_FLUSH))
sys/arch/arm/ep93xx/epcom.c
907
CLR(tp->t_state, TS_FLUSH);
sys/arch/arm/ep93xx/epcom.c
909
ndflush(&tp->t_outq, (int)(sc->sc_tba - tp->t_outq.c_cf));
sys/arch/arm/ep93xx/epcom.c
910
(*tp->t_linesw->l_start)(tp);
sys/arch/arm/ep93xx/epcom.c
914
epcom_rxsoft(struct epcom_softc *sc, struct tty *tp)
sys/arch/arm/ep93xx/epcom.c
916
int (*rint)(int, struct tty *) = tp->t_linesw->l_rint;
sys/arch/arm/ep93xx/epcom.c
951
if ((*rint)(code, tp) == -1) {
sys/arch/arm/footbridge/footbridge_com.c
234
struct tty *tp;
sys/arch/arm/footbridge/footbridge_com.c
239
if (!(tp = sc->sc_tty))
sys/arch/arm/footbridge/footbridge_com.c
240
sc->sc_tty = tp = tty_alloc();
sys/arch/arm/footbridge/footbridge_com.c
251
tp->t_oproc = fcomstart;
sys/arch/arm/footbridge/footbridge_com.c
252
tp->t_param = fcomparam;
sys/arch/arm/footbridge/footbridge_com.c
253
tp->t_dev = dev;
sys/arch/arm/footbridge/footbridge_com.c
255
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/arm/footbridge/footbridge_com.c
258
if (!(tp->t_state & TS_ISOPEN && tp->t_wopen == 0)) {
sys/arch/arm/footbridge/footbridge_com.c
259
ttychars(tp);
sys/arch/arm/footbridge/footbridge_com.c
260
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/arm/footbridge/footbridge_com.c
261
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/arm/footbridge/footbridge_com.c
262
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/arm/footbridge/footbridge_com.c
263
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/arm/footbridge/footbridge_com.c
269
tp->t_ispeed = 0;
sys/arch/arm/footbridge/footbridge_com.c
271
tp->t_ospeed = comcnspeed;
sys/arch/arm/footbridge/footbridge_com.c
273
tp->t_ospeed = TTYDEF_SPEED;
sys/arch/arm/footbridge/footbridge_com.c
275
fcomparam(tp, &tp->t_termios);
sys/arch/arm/footbridge/footbridge_com.c
276
ttsetwater(tp);
sys/arch/arm/footbridge/footbridge_com.c
278
tp->t_state |= TS_CARR_ON;
sys/arch/arm/footbridge/footbridge_com.c
280
return (*tp->t_linesw->l_open)(dev, tp);
sys/arch/arm/footbridge/footbridge_com.c
287
struct tty *tp = sc->sc_tty;
sys/arch/arm/footbridge/footbridge_com.c
289
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/arch/arm/footbridge/footbridge_com.c
292
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/arm/footbridge/footbridge_com.c
293
ttyclose(tp);
sys/arch/arm/footbridge/footbridge_com.c
310
struct tty *tp = sc->sc_tty;
sys/arch/arm/footbridge/footbridge_com.c
312
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/arch/arm/footbridge/footbridge_com.c
319
struct tty *tp = sc->sc_tty;
sys/arch/arm/footbridge/footbridge_com.c
321
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/arch/arm/footbridge/footbridge_com.c
328
struct tty *tp = sc->sc_tty;
sys/arch/arm/footbridge/footbridge_com.c
330
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/arm/footbridge/footbridge_com.c
337
struct tty *tp = sc->sc_tty;
sys/arch/arm/footbridge/footbridge_com.c
340
if ((error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l)) !=
sys/arch/arm/footbridge/footbridge_com.c
343
if ((error = ttioctl(tp, cmd, data, flag, l)) != EPASSTHROUGH)
sys/arch/arm/footbridge/footbridge_com.c
353
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/arm/footbridge/footbridge_com.c
372
fcomstart(struct tty *tp)
sys/arch/arm/footbridge/footbridge_com.c
378
struct fcom_softc *sc = device_lookup_private(&fcom_cd, minor(tp->t_dev));
sys/arch/arm/footbridge/footbridge_com.c
384
if (tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP)) {
sys/arch/arm/footbridge/footbridge_com.c
388
tp->t_state |= TS_BUSY;
sys/arch/arm/footbridge/footbridge_com.c
399
tp->t_state |= TS_TIMEOUT;
sys/arch/arm/footbridge/footbridge_com.c
400
callout_schedule(&tp->t_rstrt_ch, 1);
sys/arch/arm/footbridge/footbridge_com.c
407
cl = &tp->t_outq;
sys/arch/arm/footbridge/footbridge_com.c
421
tp->t_state &= ~TS_BUSY;
sys/arch/arm/footbridge/footbridge_com.c
422
if (ttypull(tp)) {
sys/arch/arm/footbridge/footbridge_com.c
423
tp->t_state |= TS_TIMEOUT;
sys/arch/arm/footbridge/footbridge_com.c
424
callout_schedule(&tp->t_rstrt_ch, 1);
sys/arch/arm/footbridge/footbridge_com.c
430
fcomparam(struct tty *tp, struct termios *t)
sys/arch/arm/footbridge/footbridge_com.c
432
struct fcom_softc *sc = device_lookup_private(&fcom_cd, minor(tp->t_dev));
sys/arch/arm/footbridge/footbridge_com.c
512
tp->t_ispeed = 0;
sys/arch/arm/footbridge/footbridge_com.c
513
tp->t_ospeed = t->c_ospeed;
sys/arch/arm/footbridge/footbridge_com.c
514
tp->t_cflag = t->c_cflag;
sys/arch/arm/footbridge/footbridge_com.c
531
struct tty *tp = sc->sc_tty;
sys/arch/arm/footbridge/footbridge_com.c
546
(*tp->t_linesw->l_rint)(ptr[loop], tp);
sys/arch/arm/footbridge/footbridge_com.c
567
struct tty *tp = sc->sc_tty;
sys/arch/arm/footbridge/footbridge_com.c
584
if (tp && (tp->t_state & TS_ISOPEN))
sys/arch/arm/imx/imxuart.c
1175
imxuparam(struct tty *tp, struct termios *t)
sys/arch/arm/imx/imxuart.c
1178
device_lookup_private(&imxuart_cd, IMXUART_UNIT(tp->t_dev));
sys/arch/arm/imx/imxuart.c
1181
bool change_speed = tp->t_ospeed != t->c_ospeed;
sys/arch/arm/imx/imxuart.c
1205
if ( !change_speed && tp->t_cflag == t->c_cflag)
sys/arch/arm/imx/imxuart.c
1265
tp->t_ispeed = t->c_ospeed;
sys/arch/arm/imx/imxuart.c
1266
tp->t_ospeed = t->c_ospeed;
sys/arch/arm/imx/imxuart.c
1267
tp->t_cflag = t->c_cflag;
sys/arch/arm/imx/imxuart.c
1318
(void) (*tp->t_linesw->l_modem)(tp, ISSET(sc->sc_msr, MSR_DCD));
sys/arch/arm/imx/imxuart.c
1321
(void) (*tp->t_linesw->l_modem)(tp, 1);
sys/arch/arm/imx/imxuart.c
1332
imxustart(tp);
sys/arch/arm/imx/imxuart.c
1366
imxuhwiflow(struct tty *tp, int block)
sys/arch/arm/imx/imxuart.c
1369
device_lookup_private(&imxuart_cd, IMXUART_UNIT(tp->t_dev));
sys/arch/arm/imx/imxuart.c
1426
imxustart(struct tty *tp)
sys/arch/arm/imx/imxuart.c
1429
device_lookup_private(&imxuart_cd, IMXUART_UNIT(tp->t_dev));
sys/arch/arm/imx/imxuart.c
1442
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/arch/arm/imx/imxuart.c
1446
if (!ttypull(tp))
sys/arch/arm/imx/imxuart.c
1450
tba = tp->t_outq.c_cf;
sys/arch/arm/imx/imxuart.c
1451
tbc = ndqb(&tp->t_outq, 0);
sys/arch/arm/imx/imxuart.c
1458
SET(tp->t_state, TS_BUSY);
sys/arch/arm/imx/imxuart.c
1483
imxustop(struct tty *tp, int flag)
sys/arch/arm/imx/imxuart.c
1486
device_lookup_private(&imxuart_cd, IMXUART_UNIT(tp->t_dev));
sys/arch/arm/imx/imxuart.c
1489
if (ISSET(tp->t_state, TS_BUSY)) {
sys/arch/arm/imx/imxuart.c
1493
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/arch/arm/imx/imxuart.c
1494
SET(tp->t_state, TS_FLUSH);
sys/arch/arm/imx/imxuart.c
1522
imxuart_rxsoft(struct imxuart_softc *sc, struct tty *tp)
sys/arch/arm/imx/imxuart.c
1524
int (*rint)(int, struct tty *) = tp->t_linesw->l_rint;
sys/arch/arm/imx/imxuart.c
1541
if (!ISSET(tp->t_state, TS_ISOPEN)) {
sys/arch/arm/imx/imxuart.c
1572
if ((*rint)(code, tp) == -1) {
sys/arch/arm/imx/imxuart.c
1624
imxuart_txsoft(struct imxuart_softc *sc, struct tty *tp)
sys/arch/arm/imx/imxuart.c
1627
CLR(tp->t_state, TS_BUSY);
sys/arch/arm/imx/imxuart.c
1628
if (ISSET(tp->t_state, TS_FLUSH))
sys/arch/arm/imx/imxuart.c
1629
CLR(tp->t_state, TS_FLUSH);
sys/arch/arm/imx/imxuart.c
1631
ndflush(&tp->t_outq, (int)(sc->sc_tba - tp->t_outq.c_cf));
sys/arch/arm/imx/imxuart.c
1632
(*tp->t_linesw->l_start)(tp);
sys/arch/arm/imx/imxuart.c
1636
imxuart_stsoft(struct imxuart_softc *sc, struct tty *tp)
sys/arch/arm/imx/imxuart.c
1651
(void) (*tp->t_linesw->l_modem)(tp, ISSET(msr, MSR_DCD));
sys/arch/arm/imx/imxuart.c
1658
(*tp->t_linesw->l_start)(tp);
sys/arch/arm/imx/imxuart.c
1675
struct tty *tp;
sys/arch/arm/imx/imxuart.c
1680
tp = sc->sc_tty;
sys/arch/arm/imx/imxuart.c
1684
imxuart_rxsoft(sc, tp);
sys/arch/arm/imx/imxuart.c
1689
imxuart_stsoft(sc, tp);
sys/arch/arm/imx/imxuart.c
1694
imxuart_txsoft(sc, tp);
sys/arch/arm/imx/imxuart.c
327
struct tty *tp;
sys/arch/arm/imx/imxuart.c
353
tp = tty_alloc();
sys/arch/arm/imx/imxuart.c
354
tp->t_oproc = imxustart;
sys/arch/arm/imx/imxuart.c
355
tp->t_param = imxuparam;
sys/arch/arm/imx/imxuart.c
356
tp->t_hwiflow = imxuhwiflow;
sys/arch/arm/imx/imxuart.c
358
sc->sc_tty = tp;
sys/arch/arm/imx/imxuart.c
367
tty_attach(tp);
sys/arch/arm/imx/imxuart.c
376
tp->t_dev = cn_tab->cn_dev = makedev(maj,
sys/arch/arm/imx/imxuart.c
495
struct tty *tp = sc->sc_tty;
sys/arch/arm/imx/imxuart.c
500
ISSET(tp->t_cflag, CLOCAL) ? '+' : '-',
sys/arch/arm/imx/imxuart.c
502
ISSET(tp->t_state, TS_CARR_ON) ? '+' : '-',
sys/arch/arm/imx/imxuart.c
509
ISSET(tp->t_cflag, CRTSCTS) ? '+' : '-',
sys/arch/arm/imx/imxuart.c
511
ISSET(tp->t_state, TS_TTSTOP) ? '+' : '-',
sys/arch/arm/imx/imxuart.c
601
struct tty *tp = sc->sc_tty;
sys/arch/arm/imx/imxuart.c
617
if (ISSET(tp->t_cflag, HUPCL)) {
sys/arch/arm/imx/imxuart.c
648
struct tty *tp;
sys/arch/arm/imx/imxuart.c
668
tp = sc->sc_tty;
sys/arch/arm/imx/imxuart.c
670
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/arm/imx/imxuart.c
678
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/imx/imxuart.c
681
tp->t_dev = dev;
sys/arch/arm/imx/imxuart.c
732
tp->t_ospeed = 0;
sys/arch/arm/imx/imxuart.c
733
(void) imxuparam(tp, &t);
sys/arch/arm/imx/imxuart.c
734
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/arm/imx/imxuart.c
735
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/arm/imx/imxuart.c
736
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/arm/imx/imxuart.c
737
ttychars(tp);
sys/arch/arm/imx/imxuart.c
738
ttsetwater(tp);
sys/arch/arm/imx/imxuart.c
771
error = ttyopen(tp, IMXUART_DIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/arch/arm/imx/imxuart.c
773
error = ttyopen(tp, 1, ISSET(flag, O_NONBLOCK));
sys/arch/arm/imx/imxuart.c
778
error = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/arm/imx/imxuart.c
785
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/imx/imxuart.c
801
struct tty *tp = sc->sc_tty;
sys/arch/arm/imx/imxuart.c
804
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/arch/arm/imx/imxuart.c
807
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/arm/imx/imxuart.c
808
ttyclose(tp);
sys/arch/arm/imx/imxuart.c
813
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/imx/imxuart.c
830
struct tty *tp = sc->sc_tty;
sys/arch/arm/imx/imxuart.c
835
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/arch/arm/imx/imxuart.c
843
struct tty *tp = sc->sc_tty;
sys/arch/arm/imx/imxuart.c
848
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/arch/arm/imx/imxuart.c
856
struct tty *tp = sc->sc_tty;
sys/arch/arm/imx/imxuart.c
861
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/arm/imx/imxuart.c
869
struct tty *tp = sc->sc_tty;
sys/arch/arm/imx/imxuart.c
871
return (tp);
sys/arch/arm/imx/imxuart.c
878
struct tty *tp;
sys/arch/arm/imx/imxuart.c
887
tp = sc->sc_tty;
sys/arch/arm/imx/imxuart.c
889
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/arm/imx/imxuart.c
893
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/arm/imx/imxuart.c
901
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/arm/ixp12x0/ixp12x0_com.c
192
struct tty *tp;
sys/arch/arm/ixp12x0/ixp12x0_com.c
209
tp = tty_alloc();
sys/arch/arm/ixp12x0/ixp12x0_com.c
210
tp->t_oproc = ixpcomstart;
sys/arch/arm/ixp12x0/ixp12x0_com.c
211
tp->t_param = ixpcomparam;
sys/arch/arm/ixp12x0/ixp12x0_com.c
212
tp->t_hwiflow = ixpcomhwiflow;
sys/arch/arm/ixp12x0/ixp12x0_com.c
214
sc->sc_tty = tp;
sys/arch/arm/ixp12x0/ixp12x0_com.c
225
tty_attach(tp);
sys/arch/arm/ixp12x0/ixp12x0_com.c
258
ixpcomparam(struct tty *tp, struct termios *t)
sys/arch/arm/ixp12x0/ixp12x0_com.c
261
= device_lookup_private(&ixpcom_cd, COMUNIT(tp->t_dev));
sys/arch/arm/ixp12x0/ixp12x0_com.c
288
if (tp->t_ospeed == t->c_ospeed &&
sys/arch/arm/ixp12x0/ixp12x0_com.c
289
tp->t_cflag == t->c_cflag)
sys/arch/arm/ixp12x0/ixp12x0_com.c
305
tp->t_ispeed = 0;
sys/arch/arm/ixp12x0/ixp12x0_com.c
306
tp->t_ospeed = t->c_ospeed;
sys/arch/arm/ixp12x0/ixp12x0_com.c
307
tp->t_cflag = t->c_cflag;
sys/arch/arm/ixp12x0/ixp12x0_com.c
325
(void) (*tp->t_linesw->l_modem)(tp, 1);
sys/arch/arm/ixp12x0/ixp12x0_com.c
335
ixpcomstart(tp);
sys/arch/arm/ixp12x0/ixp12x0_com.c
343
ixpcomhwiflow(struct tty *tp, int block)
sys/arch/arm/ixp12x0/ixp12x0_com.c
368
ixpcomstart(struct tty *tp)
sys/arch/arm/ixp12x0/ixp12x0_com.c
371
= device_lookup_private(&ixpcom_cd, COMUNIT(tp->t_dev));
sys/arch/arm/ixp12x0/ixp12x0_com.c
378
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/arch/arm/ixp12x0/ixp12x0_com.c
383
if (!ttypull(tp))
sys/arch/arm/ixp12x0/ixp12x0_com.c
391
tba = tp->t_outq.c_cf;
sys/arch/arm/ixp12x0/ixp12x0_com.c
392
tbc = ndqb(&tp->t_outq, 0);
sys/arch/arm/ixp12x0/ixp12x0_com.c
401
SET(tp->t_state, TS_BUSY);
sys/arch/arm/ixp12x0/ixp12x0_com.c
467
struct tty *tp;
sys/arch/arm/ixp12x0/ixp12x0_com.c
487
tp = sc->sc_tty;
sys/arch/arm/ixp12x0/ixp12x0_com.c
489
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/arm/ixp12x0/ixp12x0_com.c
497
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/ixp12x0/ixp12x0_com.c
500
tp->t_dev = dev;
sys/arch/arm/ixp12x0/ixp12x0_com.c
556
tp->t_ospeed = 0;
sys/arch/arm/ixp12x0/ixp12x0_com.c
557
(void) ixpcomparam(tp, &t);
sys/arch/arm/ixp12x0/ixp12x0_com.c
558
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/arm/ixp12x0/ixp12x0_com.c
559
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/arm/ixp12x0/ixp12x0_com.c
560
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/arm/ixp12x0/ixp12x0_com.c
561
ttychars(tp);
sys/arch/arm/ixp12x0/ixp12x0_com.c
562
ttsetwater(tp);
sys/arch/arm/ixp12x0/ixp12x0_com.c
584
error = ttyopen(tp, COMDIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/arch/arm/ixp12x0/ixp12x0_com.c
588
error = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/arm/ixp12x0/ixp12x0_com.c
595
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/ixp12x0/ixp12x0_com.c
610
struct tty *tp = sc->sc_tty;
sys/arch/arm/ixp12x0/ixp12x0_com.c
613
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/arch/arm/ixp12x0/ixp12x0_com.c
616
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/arm/ixp12x0/ixp12x0_com.c
617
ttyclose(tp);
sys/arch/arm/ixp12x0/ixp12x0_com.c
622
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/ixp12x0/ixp12x0_com.c
638
struct tty *tp = sc->sc_tty;
sys/arch/arm/ixp12x0/ixp12x0_com.c
643
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/arch/arm/ixp12x0/ixp12x0_com.c
650
struct tty *tp = sc->sc_tty;
sys/arch/arm/ixp12x0/ixp12x0_com.c
655
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/arch/arm/ixp12x0/ixp12x0_com.c
662
struct tty *tp = sc->sc_tty;
sys/arch/arm/ixp12x0/ixp12x0_com.c
667
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/arm/ixp12x0/ixp12x0_com.c
674
struct tty *tp = sc->sc_tty;
sys/arch/arm/ixp12x0/ixp12x0_com.c
676
return (tp);
sys/arch/arm/ixp12x0/ixp12x0_com.c
683
struct tty *tp = sc->sc_tty;
sys/arch/arm/ixp12x0/ixp12x0_com.c
690
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/arm/ixp12x0/ixp12x0_com.c
694
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/arm/ixp12x0/ixp12x0_com.c
718
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/arm/ixp12x0/ixp12x0_com.c
739
ixpcomstop(struct tty *tp, int flag)
sys/arch/arm/ixp12x0/ixp12x0_com.c
742
= device_lookup_private(&ixpcom_cd, COMUNIT(tp->t_dev));
sys/arch/arm/ixp12x0/ixp12x0_com.c
747
if (ISSET(tp->t_state, TS_BUSY)) {
sys/arch/arm/ixp12x0/ixp12x0_com.c
751
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/arch/arm/ixp12x0/ixp12x0_com.c
752
SET(tp->t_state, TS_FLUSH);
sys/arch/arm/ixp12x0/ixp12x0_com.c
907
ixpcom_txsoft(struct ixpcom_softc *sc, struct tty *tp)
sys/arch/arm/ixp12x0/ixp12x0_com.c
909
CLR(tp->t_state, TS_BUSY);
sys/arch/arm/ixp12x0/ixp12x0_com.c
910
if (ISSET(tp->t_state, TS_FLUSH))
sys/arch/arm/ixp12x0/ixp12x0_com.c
911
CLR(tp->t_state, TS_FLUSH);
sys/arch/arm/ixp12x0/ixp12x0_com.c
913
ndflush(&tp->t_outq, (int)(sc->sc_tba - tp->t_outq.c_cf));
sys/arch/arm/ixp12x0/ixp12x0_com.c
914
(*tp->t_linesw->l_start)(tp);
sys/arch/arm/ixp12x0/ixp12x0_com.c
918
ixpcom_rxsoft(struct ixpcom_softc *sc, struct tty *tp)
sys/arch/arm/ixp12x0/ixp12x0_com.c
920
int (*rint)(int, struct tty *) = tp->t_linesw->l_rint;
sys/arch/arm/ixp12x0/ixp12x0_com.c
955
if ((*rint)(code, tp) == -1) {
sys/arch/arm/s3c2xx0/sscom.c
1027
sscomparam(struct tty *tp, struct termios *t)
sys/arch/arm/s3c2xx0/sscom.c
1029
struct sscom_softc *sc = device_lookup_private(&sscom_cd, SSCOMUNIT(tp->t_dev));
sys/arch/arm/s3c2xx0/sscom.c
1060
if (tp->t_ospeed == t->c_ospeed &&
sys/arch/arm/s3c2xx0/sscom.c
1061
tp->t_cflag == t->c_cflag)
sys/arch/arm/s3c2xx0/sscom.c
1122
tp->t_ispeed = 0;
sys/arch/arm/s3c2xx0/sscom.c
1123
tp->t_ospeed = t->c_ospeed;
sys/arch/arm/s3c2xx0/sscom.c
1124
tp->t_cflag = t->c_cflag;
sys/arch/arm/s3c2xx0/sscom.c
1160
(void) (*tp->t_linesw->l_modem)(tp, ISSET(sc->sc_msts, MSTS_DCD));
sys/arch/arm/s3c2xx0/sscom.c
1168
sscomstart(tp);
sys/arch/arm/s3c2xx0/sscom.c
1218
sscomhwiflow(struct tty *tp, int block)
sys/arch/arm/s3c2xx0/sscom.c
1220
struct sscom_softc *sc = device_lookup_private(&sscom_cd, SSCOMUNIT(tp->t_dev));
sys/arch/arm/s3c2xx0/sscom.c
1274
sscomstart(struct tty *tp)
sys/arch/arm/s3c2xx0/sscom.c
1276
struct sscom_softc *sc = device_lookup_private(&sscom_cd, SSCOMUNIT(tp->t_dev));
sys/arch/arm/s3c2xx0/sscom.c
1283
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/arch/arm/s3c2xx0/sscom.c
1287
if (!ttypull(tp))
sys/arch/arm/s3c2xx0/sscom.c
1295
tba = tp->t_outq.c_cf;
sys/arch/arm/s3c2xx0/sscom.c
1296
tbc = ndqb(&tp->t_outq, 0);
sys/arch/arm/s3c2xx0/sscom.c
1305
SET(tp->t_state, TS_BUSY);
sys/arch/arm/s3c2xx0/sscom.c
1325
sscomstop(struct tty *tp, int flag)
sys/arch/arm/s3c2xx0/sscom.c
1327
struct sscom_softc *sc = device_lookup_private(&sscom_cd, SSCOMUNIT(tp->t_dev));
sys/arch/arm/s3c2xx0/sscom.c
1332
if (ISSET(tp->t_state, TS_BUSY)) {
sys/arch/arm/s3c2xx0/sscom.c
1336
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/arch/arm/s3c2xx0/sscom.c
1337
SET(tp->t_state, TS_FLUSH);
sys/arch/arm/s3c2xx0/sscom.c
1367
sscom_rxsoft(struct sscom_softc *sc, struct tty *tp)
sys/arch/arm/s3c2xx0/sscom.c
1369
int (*rint) (int, struct tty *) = tp->t_linesw->l_rint;
sys/arch/arm/s3c2xx0/sscom.c
1402
if ((*rint)(code, tp) == -1) {
sys/arch/arm/s3c2xx0/sscom.c
1463
sscom_txsoft(struct sscom_softc *sc, struct tty *tp)
sys/arch/arm/s3c2xx0/sscom.c
1466
CLR(tp->t_state, TS_BUSY);
sys/arch/arm/s3c2xx0/sscom.c
1467
if (ISSET(tp->t_state, TS_FLUSH))
sys/arch/arm/s3c2xx0/sscom.c
1468
CLR(tp->t_state, TS_FLUSH);
sys/arch/arm/s3c2xx0/sscom.c
1470
ndflush(&tp->t_outq, (int)(sc->sc_tba - tp->t_outq.c_cf));
sys/arch/arm/s3c2xx0/sscom.c
1471
(*tp->t_linesw->l_start)(tp);
sys/arch/arm/s3c2xx0/sscom.c
1475
sscom_stsoft(struct sscom_softc *sc, struct tty *tp)
sys/arch/arm/s3c2xx0/sscom.c
1492
(void) (*tp->t_linesw->l_modem)(tp, ISSET(msr, MSTS_DCD));
sys/arch/arm/s3c2xx0/sscom.c
1499
(*tp->t_linesw->l_start)(tp);
sys/arch/arm/s3c2xx0/sscom.c
1513
struct tty *tp;
sys/arch/arm/s3c2xx0/sscom.c
1519
tp = sc->sc_tty;
sys/arch/arm/s3c2xx0/sscom.c
1523
sscom_rxsoft(sc, tp);
sys/arch/arm/s3c2xx0/sscom.c
1528
sscom_stsoft(sc, tp);
sys/arch/arm/s3c2xx0/sscom.c
1533
sscom_txsoft(sc, tp);
sys/arch/arm/s3c2xx0/sscom.c
182
static int sscomhwiflow(struct tty *tp, int block);
sys/arch/arm/s3c2xx0/sscom.c
340
struct tty *tp = sc->sc_tty;
sys/arch/arm/s3c2xx0/sscom.c
346
ISSET(tp->t_cflag, CLOCAL) ? "+" : "-",
sys/arch/arm/s3c2xx0/sscom.c
348
ISSET(tp->t_state, TS_CARR_ON) ? "+" : "-",
sys/arch/arm/s3c2xx0/sscom.c
354
ISSET(tp->t_cflag, CRTSCTS) ? "+" : "-",
sys/arch/arm/s3c2xx0/sscom.c
356
ISSET(tp->t_state, TS_TTSTOP) ? "+" : "-",
sys/arch/arm/s3c2xx0/sscom.c
408
struct tty *tp;
sys/arch/arm/s3c2xx0/sscom.c
479
tp = tty_alloc();
sys/arch/arm/s3c2xx0/sscom.c
480
tp->t_oproc = sscomstart;
sys/arch/arm/s3c2xx0/sscom.c
481
tp->t_param = sscomparam;
sys/arch/arm/s3c2xx0/sscom.c
482
tp->t_hwiflow = sscomhwiflow;
sys/arch/arm/s3c2xx0/sscom.c
484
sc->sc_tty = tp;
sys/arch/arm/s3c2xx0/sscom.c
490
tty_attach(tp);
sys/arch/arm/s3c2xx0/sscom.c
556
struct tty *tp = sc->sc_tty;
sys/arch/arm/s3c2xx0/sscom.c
574
if (ISSET(tp->t_cflag, HUPCL)) {
sys/arch/arm/s3c2xx0/sscom.c
605
struct tty *tp;
sys/arch/arm/s3c2xx0/sscom.c
625
tp = sc->sc_tty;
sys/arch/arm/s3c2xx0/sscom.c
627
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/arm/s3c2xx0/sscom.c
635
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/s3c2xx0/sscom.c
638
tp->t_dev = dev;
sys/arch/arm/s3c2xx0/sscom.c
677
tp->t_ospeed = 0;
sys/arch/arm/s3c2xx0/sscom.c
678
(void) sscomparam(tp, &t);
sys/arch/arm/s3c2xx0/sscom.c
679
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/arm/s3c2xx0/sscom.c
680
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/arm/s3c2xx0/sscom.c
681
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/arm/s3c2xx0/sscom.c
682
ttychars(tp);
sys/arch/arm/s3c2xx0/sscom.c
683
ttsetwater(tp);
sys/arch/arm/s3c2xx0/sscom.c
713
error = ttyopen(tp, SSCOMDIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/arch/arm/s3c2xx0/sscom.c
717
error = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/arm/s3c2xx0/sscom.c
724
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/s3c2xx0/sscom.c
739
struct tty *tp = sc->sc_tty;
sys/arch/arm/s3c2xx0/sscom.c
742
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/arch/arm/s3c2xx0/sscom.c
745
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/arm/s3c2xx0/sscom.c
746
ttyclose(tp);
sys/arch/arm/s3c2xx0/sscom.c
751
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/s3c2xx0/sscom.c
767
struct tty *tp = sc->sc_tty;
sys/arch/arm/s3c2xx0/sscom.c
772
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/arch/arm/s3c2xx0/sscom.c
779
struct tty *tp = sc->sc_tty;
sys/arch/arm/s3c2xx0/sscom.c
784
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/arch/arm/s3c2xx0/sscom.c
791
struct tty *tp = sc->sc_tty;
sys/arch/arm/s3c2xx0/sscom.c
796
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/arm/s3c2xx0/sscom.c
803
struct tty *tp = sc->sc_tty;
sys/arch/arm/s3c2xx0/sscom.c
805
return tp;
sys/arch/arm/s3c2xx0/sscom.c
812
struct tty *tp = sc->sc_tty;
sys/arch/arm/s3c2xx0/sscom.c
819
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/arm/s3c2xx0/sscom.c
823
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/arm/s3c2xx0/sscom.c
855
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/arm/sa11x0/sa11x0_com.c
1001
device_lookup_private(&sacom_cd, COMUNIT(tp->t_dev));
sys/arch/arm/sa11x0/sa11x0_com.c
1051
sacomstart(struct tty *tp)
sys/arch/arm/sa11x0/sa11x0_com.c
1054
device_lookup_private(&sacom_cd, COMUNIT(tp->t_dev));
sys/arch/arm/sa11x0/sa11x0_com.c
1063
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/arch/arm/sa11x0/sa11x0_com.c
1065
if (!ttypull(tp))
sys/arch/arm/sa11x0/sa11x0_com.c
1073
tba = tp->t_outq.c_cf;
sys/arch/arm/sa11x0/sa11x0_com.c
1074
tbc = ndqb(&tp->t_outq, 0);
sys/arch/arm/sa11x0/sa11x0_com.c
1083
SET(tp->t_state, TS_BUSY);
sys/arch/arm/sa11x0/sa11x0_com.c
1125
sacomstop(struct tty *tp, int flag)
sys/arch/arm/sa11x0/sa11x0_com.c
1128
device_lookup_private(&sacom_cd, COMUNIT(tp->t_dev));
sys/arch/arm/sa11x0/sa11x0_com.c
1133
if (ISSET(tp->t_state, TS_BUSY)) {
sys/arch/arm/sa11x0/sa11x0_com.c
1137
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/arch/arm/sa11x0/sa11x0_com.c
1138
SET(tp->t_state, TS_FLUSH);
sys/arch/arm/sa11x0/sa11x0_com.c
1145
sacom_rxsoft(struct sacom_softc *sc, struct tty *tp)
sys/arch/arm/sa11x0/sa11x0_com.c
1147
int (*rint)(int, struct tty *) = tp->t_linesw->l_rint;
sys/arch/arm/sa11x0/sa11x0_com.c
1165
if ((*rint)(code, tp) == -1) {
sys/arch/arm/sa11x0/sa11x0_com.c
1220
sacom_txsoft(struct sacom_softc *sc, struct tty *tp)
sys/arch/arm/sa11x0/sa11x0_com.c
1223
CLR(tp->t_state, TS_BUSY);
sys/arch/arm/sa11x0/sa11x0_com.c
1224
if (ISSET(tp->t_state, TS_FLUSH))
sys/arch/arm/sa11x0/sa11x0_com.c
1225
CLR(tp->t_state, TS_FLUSH);
sys/arch/arm/sa11x0/sa11x0_com.c
1227
ndflush(&tp->t_outq, (int)(sc->sc_tba - tp->t_outq.c_cf));
sys/arch/arm/sa11x0/sa11x0_com.c
1228
(*tp->t_linesw->l_start)(tp);
sys/arch/arm/sa11x0/sa11x0_com.c
1232
sacom_stsoft(struct sacom_softc *sc, struct tty *tp)
sys/arch/arm/sa11x0/sa11x0_com.c
1240
struct tty *tp;
sys/arch/arm/sa11x0/sa11x0_com.c
1245
tp = sc->sc_tty;
sys/arch/arm/sa11x0/sa11x0_com.c
1249
sacom_rxsoft(sc, tp);
sys/arch/arm/sa11x0/sa11x0_com.c
1254
sacom_stsoft(sc, tp);
sys/arch/arm/sa11x0/sa11x0_com.c
1259
sacom_txsoft(sc, tp);
sys/arch/arm/sa11x0/sa11x0_com.c
296
struct tty *tp;
sys/arch/arm/sa11x0/sa11x0_com.c
310
tp = tty_alloc();
sys/arch/arm/sa11x0/sa11x0_com.c
311
tp->t_oproc = sacomstart;
sys/arch/arm/sa11x0/sa11x0_com.c
312
tp->t_param = sacomparam;
sys/arch/arm/sa11x0/sa11x0_com.c
313
tp->t_hwiflow = sacomhwiflow;
sys/arch/arm/sa11x0/sa11x0_com.c
315
sc->sc_tty = tp;
sys/arch/arm/sa11x0/sa11x0_com.c
322
tty_attach(tp);
sys/arch/arm/sa11x0/sa11x0_com.c
449
struct tty *tp = sc->sc_tty;
sys/arch/arm/sa11x0/sa11x0_com.c
463
if (ISSET(tp->t_cflag, HUPCL)) {
sys/arch/arm/sa11x0/sa11x0_com.c
493
struct tty *tp;
sys/arch/arm/sa11x0/sa11x0_com.c
505
tp = sc->sc_tty;
sys/arch/arm/sa11x0/sa11x0_com.c
507
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/arm/sa11x0/sa11x0_com.c
515
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/sa11x0/sa11x0_com.c
518
tp->t_dev = dev;
sys/arch/arm/sa11x0/sa11x0_com.c
563
tp->t_ospeed = 0;
sys/arch/arm/sa11x0/sa11x0_com.c
564
(void) sacomparam(tp, &t);
sys/arch/arm/sa11x0/sa11x0_com.c
565
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/arm/sa11x0/sa11x0_com.c
566
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/arm/sa11x0/sa11x0_com.c
567
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/arm/sa11x0/sa11x0_com.c
568
ttychars(tp);
sys/arch/arm/sa11x0/sa11x0_com.c
569
ttsetwater(tp);
sys/arch/arm/sa11x0/sa11x0_com.c
601
error = ttyopen(tp, COMDIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/arch/arm/sa11x0/sa11x0_com.c
605
error = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/arm/sa11x0/sa11x0_com.c
612
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/sa11x0/sa11x0_com.c
628
struct tty *tp = sc->sc_tty;
sys/arch/arm/sa11x0/sa11x0_com.c
631
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/arch/arm/sa11x0/sa11x0_com.c
634
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/arm/sa11x0/sa11x0_com.c
635
ttyclose(tp);
sys/arch/arm/sa11x0/sa11x0_com.c
640
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/sa11x0/sa11x0_com.c
657
struct tty *tp = sc->sc_tty;
sys/arch/arm/sa11x0/sa11x0_com.c
662
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/arch/arm/sa11x0/sa11x0_com.c
670
struct tty *tp = sc->sc_tty;
sys/arch/arm/sa11x0/sa11x0_com.c
675
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/arch/arm/sa11x0/sa11x0_com.c
683
struct tty *tp = sc->sc_tty;
sys/arch/arm/sa11x0/sa11x0_com.c
688
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/arm/sa11x0/sa11x0_com.c
696
struct tty *tp = sc->sc_tty;
sys/arch/arm/sa11x0/sa11x0_com.c
698
return tp;
sys/arch/arm/sa11x0/sa11x0_com.c
706
struct tty *tp = sc->sc_tty;
sys/arch/arm/sa11x0/sa11x0_com.c
713
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/arm/sa11x0/sa11x0_com.c
717
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/arm/sa11x0/sa11x0_com.c
749
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/arm/sa11x0/sa11x0_com.c
853
sacomparam(struct tty *tp, struct termios *t)
sys/arch/arm/sa11x0/sa11x0_com.c
856
device_lookup_private(&sacom_cd, COMUNIT(tp->t_dev));
sys/arch/arm/sa11x0/sa11x0_com.c
885
if (tp->t_ospeed == t->c_ospeed &&
sys/arch/arm/sa11x0/sa11x0_com.c
886
tp->t_cflag == t->c_cflag)
sys/arch/arm/sa11x0/sa11x0_com.c
899
tp->t_ispeed = 0;
sys/arch/arm/sa11x0/sa11x0_com.c
900
tp->t_ospeed = t->c_ospeed;
sys/arch/arm/sa11x0/sa11x0_com.c
901
tp->t_cflag = t->c_cflag;
sys/arch/arm/sa11x0/sa11x0_com.c
927
(void) (*tp->t_linesw->l_modem)(tp, 1);
sys/arch/arm/sa11x0/sa11x0_com.c
997
sacomhwiflow(struct tty *tp, int block)
sys/arch/arm/samsung/exynos_uart.c
194
struct tty *tp;
sys/arch/arm/samsung/exynos_uart.c
259
tp = sc->sc_tty = tty_alloc();
sys/arch/arm/samsung/exynos_uart.c
260
tp->t_oproc = exynos_uart_start;
sys/arch/arm/samsung/exynos_uart.c
261
tp->t_param = exynos_uart_param;
sys/arch/arm/samsung/exynos_uart.c
262
tp->t_dev = makedev(major, minor);
sys/arch/arm/samsung/exynos_uart.c
263
tp->t_sc = sc;
sys/arch/arm/samsung/exynos_uart.c
264
tty_attach(tp);
sys/arch/arm/samsung/exynos_uart.c
268
cn_tab->cn_dev = tp->t_dev;
sys/arch/arm/samsung/exynos_uart.c
370
struct tty *tp = sc->sc_tty;
sys/arch/arm/samsung/exynos_uart.c
374
KAUTH_DEVICE_TTY_OPEN, tp) != 0) {
sys/arch/arm/samsung/exynos_uart.c
380
if ((tp->t_state & TS_ISOPEN) == 0 && tp->t_wopen == 0) {
sys/arch/arm/samsung/exynos_uart.c
381
tp->t_dev = dev;
sys/arch/arm/samsung/exynos_uart.c
382
ttychars(tp);
sys/arch/arm/samsung/exynos_uart.c
383
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/arm/samsung/exynos_uart.c
384
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/arm/samsung/exynos_uart.c
385
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/arm/samsung/exynos_uart.c
387
tp->t_ispeed = tp->t_ospeed = exynos_uart_cnsc.sc_ospeed;
sys/arch/arm/samsung/exynos_uart.c
388
tp->t_cflag = exynos_uart_cnsc.sc_cflag;
sys/arch/arm/samsung/exynos_uart.c
390
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/arch/arm/samsung/exynos_uart.c
391
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/arm/samsung/exynos_uart.c
393
ttsetwater(tp);
sys/arch/arm/samsung/exynos_uart.c
395
tp->t_state |= TS_CARR_ON;
sys/arch/arm/samsung/exynos_uart.c
411
return tp->t_linesw->l_open(dev, tp);
sys/arch/arm/samsung/exynos_uart.c
419
struct tty *tp = sc->sc_tty;
sys/arch/arm/samsung/exynos_uart.c
424
tp->t_linesw->l_close(tp, flag);
sys/arch/arm/samsung/exynos_uart.c
425
ttyclose(tp);
sys/arch/arm/samsung/exynos_uart.c
449
struct tty *tp = sc->sc_tty;
sys/arch/arm/samsung/exynos_uart.c
451
return tp->t_linesw->l_read(tp, uio, flag);
sys/arch/arm/samsung/exynos_uart.c
459
struct tty *tp = sc->sc_tty;
sys/arch/arm/samsung/exynos_uart.c
461
return tp->t_linesw->l_write(tp, uio, flag);
sys/arch/arm/samsung/exynos_uart.c
469
struct tty *tp = sc->sc_tty;
sys/arch/arm/samsung/exynos_uart.c
471
return tp->t_linesw->l_poll(tp, events, l);
sys/arch/arm/samsung/exynos_uart.c
479
struct tty *tp = sc->sc_tty;
sys/arch/arm/samsung/exynos_uart.c
482
error = tp->t_linesw->l_ioctl(tp, cmd, data, flag, l);
sys/arch/arm/samsung/exynos_uart.c
486
return ttioctl(tp, cmd, data, flag, l);
sys/arch/arm/samsung/exynos_uart.c
499
exynos_uart_stop(struct tty *tp, int flag)
sys/arch/arm/samsung/exynos_uart.c
504
exynos_uart_start(struct tty *tp)
sys/arch/arm/samsung/exynos_uart.c
506
struct exynos_uart_softc *sc = tp->t_sc;
sys/arch/arm/samsung/exynos_uart.c
512
if (tp->t_state & (TS_TTSTOP | TS_BUSY | TS_TIMEOUT)) {
sys/arch/arm/samsung/exynos_uart.c
516
tp->t_state |= TS_BUSY;
sys/arch/arm/samsung/exynos_uart.c
518
for (brem = q_to_b(&tp->t_outq, sc->sc_buf, sizeof(sc->sc_buf));
sys/arch/arm/samsung/exynos_uart.c
527
tp->t_state &= ~TS_BUSY;
sys/arch/arm/samsung/exynos_uart.c
528
if (ttypull(tp)) {
sys/arch/arm/samsung/exynos_uart.c
529
tp->t_state |= TS_TIMEOUT;
sys/arch/arm/samsung/exynos_uart.c
530
callout_schedule(&tp->t_rstrt_ch, 1);
sys/arch/arm/samsung/exynos_uart.c
536
exynos_uart_param(struct tty *tp, struct termios *t)
sys/arch/arm/samsung/exynos_uart.c
538
struct exynos_uart_softc *sc = tp->t_sc;
sys/arch/arm/samsung/exynos_uart.c
542
if (tp->t_cflag != t->c_cflag) {
sys/arch/arm/samsung/exynos_uart.c
574
if (tp->t_ospeed != t->c_ospeed) {
sys/arch/arm/samsung/exynos_uart.c
579
tp->t_ispeed = t->c_ispeed;
sys/arch/arm/samsung/exynos_uart.c
580
tp->t_ospeed = t->c_ospeed;
sys/arch/arm/samsung/exynos_uart.c
581
tp->t_cflag = t->c_cflag;
sys/arch/arm/samsung/exynos_uart.c
592
struct tty *tp = sc->sc_tty;
sys/arch/arm/samsung/exynos_uart.c
608
cn_check_magic(tp->t_dev, CNC_BREAK,
sys/arch/arm/samsung/exynos_uart.c
620
cn_check_magic(tp->t_dev, c & 0xff, exynos_uart_cnm_state);
sys/arch/arm/samsung/exynos_uart.c
623
tp->t_linesw->l_rint(c & 0xff, tp);
sys/arch/arm/xilinx/zynq_uart.c
1138
zynquartparam(struct tty *tp, struct termios *t)
sys/arch/arm/xilinx/zynq_uart.c
1141
device_lookup_private(&zynquart_cd, ZYNQUART_UNIT(tp->t_dev));
sys/arch/arm/xilinx/zynq_uart.c
1144
bool change_speed = tp->t_ospeed != t->c_ospeed;
sys/arch/arm/xilinx/zynq_uart.c
1168
if ( !change_speed && tp->t_cflag == t->c_cflag)
sys/arch/arm/xilinx/zynq_uart.c
1229
tp->t_ispeed = t->c_ospeed;
sys/arch/arm/xilinx/zynq_uart.c
1230
tp->t_ospeed = t->c_ospeed;
sys/arch/arm/xilinx/zynq_uart.c
1231
tp->t_cflag = t->c_cflag;
sys/arch/arm/xilinx/zynq_uart.c
1279
(void) (*tp->t_linesw->l_modem)(tp, ISSET(sc->sc_msr, MODEMSR_DCD));
sys/arch/arm/xilinx/zynq_uart.c
1289
zynquartstart(tp);
sys/arch/arm/xilinx/zynq_uart.c
1324
zynquarthwiflow(struct tty *tp, int block)
sys/arch/arm/xilinx/zynq_uart.c
1327
device_lookup_private(&zynquart_cd, ZYNQUART_UNIT(tp->t_dev));
sys/arch/arm/xilinx/zynq_uart.c
1384
zynquartstart(struct tty *tp)
sys/arch/arm/xilinx/zynq_uart.c
1387
device_lookup_private(&zynquart_cd, ZYNQUART_UNIT(tp->t_dev));
sys/arch/arm/xilinx/zynq_uart.c
1398
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/arch/arm/xilinx/zynq_uart.c
1402
if (!ttypull(tp))
sys/arch/arm/xilinx/zynq_uart.c
1406
tba = tp->t_outq.c_cf;
sys/arch/arm/xilinx/zynq_uart.c
1407
tbc = ndqb(&tp->t_outq, 0);
sys/arch/arm/xilinx/zynq_uart.c
1414
SET(tp->t_state, TS_BUSY);
sys/arch/arm/xilinx/zynq_uart.c
1437
zynquartstop(struct tty *tp, int flag)
sys/arch/arm/xilinx/zynq_uart.c
1440
device_lookup_private(&zynquart_cd, ZYNQUART_UNIT(tp->t_dev));
sys/arch/arm/xilinx/zynq_uart.c
1443
if (ISSET(tp->t_state, TS_BUSY)) {
sys/arch/arm/xilinx/zynq_uart.c
1447
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/arch/arm/xilinx/zynq_uart.c
1448
SET(tp->t_state, TS_FLUSH);
sys/arch/arm/xilinx/zynq_uart.c
1476
zynquart_rxsoft(struct zynquart_softc *sc, struct tty *tp)
sys/arch/arm/xilinx/zynq_uart.c
1478
int (*rint)(int, struct tty *) = tp->t_linesw->l_rint;
sys/arch/arm/xilinx/zynq_uart.c
1495
if (!ISSET(tp->t_state, TS_ISOPEN)) {
sys/arch/arm/xilinx/zynq_uart.c
1522
if ((*rint)(code, tp) == -1) {
sys/arch/arm/xilinx/zynq_uart.c
1574
zynquart_txsoft(struct zynquart_softc *sc, struct tty *tp)
sys/arch/arm/xilinx/zynq_uart.c
1577
CLR(tp->t_state, TS_BUSY);
sys/arch/arm/xilinx/zynq_uart.c
1578
if (ISSET(tp->t_state, TS_FLUSH))
sys/arch/arm/xilinx/zynq_uart.c
1579
CLR(tp->t_state, TS_FLUSH);
sys/arch/arm/xilinx/zynq_uart.c
1581
ndflush(&tp->t_outq, (int)(sc->sc_tba - tp->t_outq.c_cf));
sys/arch/arm/xilinx/zynq_uart.c
1582
(*tp->t_linesw->l_start)(tp);
sys/arch/arm/xilinx/zynq_uart.c
1586
zynquart_stsoft(struct zynquart_softc *sc, struct tty *tp)
sys/arch/arm/xilinx/zynq_uart.c
1601
(void) (*tp->t_linesw->l_modem)(tp, ISSET(msr, MSR_DCD));
sys/arch/arm/xilinx/zynq_uart.c
1608
(*tp->t_linesw->l_start)(tp);
sys/arch/arm/xilinx/zynq_uart.c
1625
struct tty *tp;
sys/arch/arm/xilinx/zynq_uart.c
1630
tp = sc->sc_tty;
sys/arch/arm/xilinx/zynq_uart.c
1634
zynquart_rxsoft(sc, tp);
sys/arch/arm/xilinx/zynq_uart.c
1639
zynquart_stsoft(sc, tp);
sys/arch/arm/xilinx/zynq_uart.c
1644
zynquart_txsoft(sc, tp);
sys/arch/arm/xilinx/zynq_uart.c
373
struct tty *tp;
sys/arch/arm/xilinx/zynq_uart.c
411
tp = tty_alloc();
sys/arch/arm/xilinx/zynq_uart.c
412
tp->t_oproc = zynquartstart;
sys/arch/arm/xilinx/zynq_uart.c
413
tp->t_param = zynquartparam;
sys/arch/arm/xilinx/zynq_uart.c
414
tp->t_hwiflow = zynquarthwiflow;
sys/arch/arm/xilinx/zynq_uart.c
416
sc->sc_tty = tp;
sys/arch/arm/xilinx/zynq_uart.c
424
tty_attach(tp);
sys/arch/arm/xilinx/zynq_uart.c
433
tp->t_dev = cn_tab->cn_dev = makedev(maj,
sys/arch/arm/xilinx/zynq_uart.c
491
struct tty *tp = sc->sc_tty;
sys/arch/arm/xilinx/zynq_uart.c
496
ISSET(tp->t_cflag, CLOCAL) ? '+' : '-',
sys/arch/arm/xilinx/zynq_uart.c
498
ISSET(tp->t_state, TS_CARR_ON) ? '+' : '-',
sys/arch/arm/xilinx/zynq_uart.c
505
ISSET(tp->t_cflag, CRTSCTS) ? '+' : '-',
sys/arch/arm/xilinx/zynq_uart.c
507
ISSET(tp->t_state, TS_TTSTOP) ? '+' : '-',
sys/arch/arm/xilinx/zynq_uart.c
597
struct tty *tp = sc->sc_tty;
sys/arch/arm/xilinx/zynq_uart.c
613
if (ISSET(tp->t_cflag, HUPCL)) {
sys/arch/arm/xilinx/zynq_uart.c
644
struct tty *tp;
sys/arch/arm/xilinx/zynq_uart.c
664
tp = sc->sc_tty;
sys/arch/arm/xilinx/zynq_uart.c
666
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/arm/xilinx/zynq_uart.c
674
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/xilinx/zynq_uart.c
677
tp->t_dev = dev;
sys/arch/arm/xilinx/zynq_uart.c
728
tp->t_ospeed = 0;
sys/arch/arm/xilinx/zynq_uart.c
729
(void) zynquartparam(tp, &t);
sys/arch/arm/xilinx/zynq_uart.c
730
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/arm/xilinx/zynq_uart.c
731
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/arm/xilinx/zynq_uart.c
732
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/arm/xilinx/zynq_uart.c
733
ttychars(tp);
sys/arch/arm/xilinx/zynq_uart.c
734
ttsetwater(tp);
sys/arch/arm/xilinx/zynq_uart.c
767
error = ttyopen(tp, ZYNQUART_DIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/arch/arm/xilinx/zynq_uart.c
769
error = ttyopen(tp, 1, ISSET(flag, O_NONBLOCK));
sys/arch/arm/xilinx/zynq_uart.c
774
error = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/arm/xilinx/zynq_uart.c
781
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/xilinx/zynq_uart.c
797
struct tty *tp = sc->sc_tty;
sys/arch/arm/xilinx/zynq_uart.c
800
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/arch/arm/xilinx/zynq_uart.c
803
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/arm/xilinx/zynq_uart.c
804
ttyclose(tp);
sys/arch/arm/xilinx/zynq_uart.c
809
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/arm/xilinx/zynq_uart.c
826
struct tty *tp = sc->sc_tty;
sys/arch/arm/xilinx/zynq_uart.c
831
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/arch/arm/xilinx/zynq_uart.c
839
struct tty *tp = sc->sc_tty;
sys/arch/arm/xilinx/zynq_uart.c
844
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/arch/arm/xilinx/zynq_uart.c
852
struct tty *tp = sc->sc_tty;
sys/arch/arm/xilinx/zynq_uart.c
857
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/arm/xilinx/zynq_uart.c
865
struct tty *tp = sc->sc_tty;
sys/arch/arm/xilinx/zynq_uart.c
867
return (tp);
sys/arch/arm/xilinx/zynq_uart.c
874
struct tty *tp;
sys/arch/arm/xilinx/zynq_uart.c
883
tp = sc->sc_tty;
sys/arch/arm/xilinx/zynq_uart.c
885
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/arm/xilinx/zynq_uart.c
889
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/arm/xilinx/zynq_uart.c
897
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/atari/dev/ite.c
1076
kbd_tty = kbd_ite->tp;
sys/arch/atari/dev/ite.c
1381
kbd_tty = kbd_ite->tp;
sys/arch/atari/dev/ite.c
2218
if (kbd_tty && kbd_ite && kbd_ite->tp == kbd_tty)
sys/arch/atari/dev/ite.c
385
struct tty *tp;
sys/arch/atari/dev/ite.c
399
if (sc->tp == NULL) {
sys/arch/atari/dev/ite.c
400
tp = sc->tp = tty_alloc();
sys/arch/atari/dev/ite.c
401
tty_attach(tp);
sys/arch/atari/dev/ite.c
404
tp = sc->tp;
sys/arch/atari/dev/ite.c
406
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/atari/dev/ite.c
413
if (!(tp->t_state & TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/atari/dev/ite.c
414
tp->t_oproc = itestart;
sys/arch/atari/dev/ite.c
415
tp->t_param = ite_param;
sys/arch/atari/dev/ite.c
416
tp->t_dev = dev;
sys/arch/atari/dev/ite.c
417
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/atari/dev/ite.c
418
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/atari/dev/ite.c
419
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/atari/dev/ite.c
420
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/atari/dev/ite.c
421
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/arch/atari/dev/ite.c
422
tp->t_state = TS_CARR_ON;
sys/arch/atari/dev/ite.c
423
ttychars(tp);
sys/arch/atari/dev/ite.c
424
ttsetwater(tp);
sys/arch/atari/dev/ite.c
428
error = ttyopen(tp, 0, (mode & O_NONBLOCK) ? 1 : 0);
sys/arch/atari/dev/ite.c
432
error = (*tp->t_linesw->l_open) (dev, tp);
sys/arch/atari/dev/ite.c
436
tp->t_winsize.ws_row = sc->rows;
sys/arch/atari/dev/ite.c
437
tp->t_winsize.ws_col = sc->cols;
sys/arch/atari/dev/ite.c
455
struct tty *tp;
sys/arch/atari/dev/ite.c
457
tp = getitesp(dev)->tp;
sys/arch/atari/dev/ite.c
459
KDASSERT(tp);
sys/arch/atari/dev/ite.c
460
(*tp->t_linesw->l_close) (tp, flag);
sys/arch/atari/dev/ite.c
461
ttyclose(tp);
sys/arch/atari/dev/ite.c
469
struct tty *tp;
sys/arch/atari/dev/ite.c
471
tp = getitesp(dev)->tp;
sys/arch/atari/dev/ite.c
473
KDASSERT(tp);
sys/arch/atari/dev/ite.c
474
return ((*tp->t_linesw->l_read) (tp, uio, flag));
sys/arch/atari/dev/ite.c
480
struct tty *tp;
sys/arch/atari/dev/ite.c
482
tp = getitesp(dev)->tp;
sys/arch/atari/dev/ite.c
484
KDASSERT(tp);
sys/arch/atari/dev/ite.c
485
return ((*tp->t_linesw->l_write) (tp, uio, flag));
sys/arch/atari/dev/ite.c
491
struct tty *tp;
sys/arch/atari/dev/ite.c
493
tp = getitesp(dev)->tp;
sys/arch/atari/dev/ite.c
495
KDASSERT(tp);
sys/arch/atari/dev/ite.c
496
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/atari/dev/ite.c
502
return(getitesp(dev)->tp);
sys/arch/atari/dev/ite.c
510
struct tty *tp;
sys/arch/atari/dev/ite.c
517
tp = sc->tp;
sys/arch/atari/dev/ite.c
520
KDASSERT(tp);
sys/arch/atari/dev/ite.c
522
error = (*tp->t_linesw->l_ioctl) (tp, cmd, addr, flag, l);
sys/arch/atari/dev/ite.c
526
error = ttioctl(tp, cmd, addr, flag, l);
sys/arch/atari/dev/ite.c
595
itestart(struct tty *tp)
sys/arch/atari/dev/ite.c
601
KDASSERT(tp);
sys/arch/atari/dev/ite.c
604
if (tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP))
sys/arch/atari/dev/ite.c
607
tp->t_state |= TS_BUSY;
sys/arch/atari/dev/ite.c
608
rbp = &tp->t_outq;
sys/arch/atari/dev/ite.c
614
ite_putstr((char *)buf, len, tp->t_dev);
sys/arch/atari/dev/ite.c
617
tp->t_state &= ~TS_BUSY;
sys/arch/atari/dev/ite.c
619
if (ttypull(tp)) {
sys/arch/atari/dev/ite.c
620
tp->t_state |= TS_TIMEOUT;
sys/arch/atari/dev/ite.c
621
callout_schedule(&tp->t_rstrt_ch, 1);
sys/arch/atari/dev/ite.c
708
ite_param(struct tty *tp, struct termios *t)
sys/arch/atari/dev/ite.c
710
tp->t_ispeed = t->c_ispeed;
sys/arch/atari/dev/ite.c
711
tp->t_ospeed = t->c_ospeed;
sys/arch/atari/dev/ite.c
712
tp->t_cflag = t->c_cflag;
sys/arch/atari/dev/ite.c
876
kbd_tty = kbd_ite->tp;
sys/arch/atari/dev/itevar.h
60
struct tty *tp;
sys/arch/atari/dev/ser.c
1000
if (ISSET(tp->t_state, TS_BUSY)) {
sys/arch/atari/dev/ser.c
1004
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/arch/atari/dev/ser.c
1005
SET(tp->t_state, TS_FLUSH);
sys/arch/atari/dev/ser.c
1036
struct tty *tp = sc->sc_tty;
sys/arch/atari/dev/ser.c
1052
if (ISSET(tp->t_cflag, HUPCL)) {
sys/arch/atari/dev/ser.c
1066
serrxint(struct ser_softc *sc, struct tty *tp)
sys/arch/atari/dev/ser.c
1103
(*tp->t_linesw->l_rint)(code, tp);
sys/arch/atari/dev/ser.c
1114
if (sc->sc_rx_blocked && !ISSET(tp->t_state, TS_TBLOCK)) {
sys/arch/atari/dev/ser.c
1122
sertxint(struct ser_softc *sc, struct tty *tp)
sys/arch/atari/dev/ser.c
1125
CLR(tp->t_state, TS_BUSY);
sys/arch/atari/dev/ser.c
1126
if (ISSET(tp->t_state, TS_FLUSH))
sys/arch/atari/dev/ser.c
1127
CLR(tp->t_state, TS_FLUSH);
sys/arch/atari/dev/ser.c
1129
ndflush(&tp->t_outq, (int)(sc->sc_tba - tp->t_outq.c_cf));
sys/arch/atari/dev/ser.c
1130
(*tp->t_linesw->l_start)(tp);
sys/arch/atari/dev/ser.c
1134
sermsrint(struct ser_softc *sc, struct tty *tp)
sys/arch/atari/dev/ser.c
1149
(void)(*tp->t_linesw->l_modem)(tp, ISSET(msr, MCR_DCD));
sys/arch/atari/dev/ser.c
1156
(*tp->t_linesw->l_start)(tp);
sys/arch/atari/dev/ser.c
1159
serstop(tp, 0);
sys/arch/atari/dev/ser.c
1172
struct tty *tp;
sys/arch/atari/dev/ser.c
1174
tp = sc->sc_tty;
sys/arch/atari/dev/ser.c
1175
if (tp == NULL)
sys/arch/atari/dev/ser.c
1178
if (!ISSET(tp->t_state, TS_ISOPEN) && (tp->t_wopen == 0))
sys/arch/atari/dev/ser.c
1183
serrxint(sc, tp);
sys/arch/atari/dev/ser.c
1188
sermsrint(sc, tp);
sys/arch/atari/dev/ser.c
1193
sertxint(sc, tp);
sys/arch/atari/dev/ser.c
354
struct tty *tp = sc->sc_tty;
sys/arch/atari/dev/ser.c
358
ISSET(tp->t_cflag, CLOCAL) ? "+" : "-",
sys/arch/atari/dev/ser.c
360
ISSET(tp->t_state, TS_CARR_ON) ? "+" : "-",
sys/arch/atari/dev/ser.c
366
ISSET(tp->t_cflag, CRTSCTS) ? "+" : "-",
sys/arch/atari/dev/ser.c
368
ISSET(tp->t_state, TS_TTSTOP) ? "+" : "-",
sys/arch/atari/dev/ser.c
379
struct tty *tp;
sys/arch/atari/dev/ser.c
388
tp = sc->sc_tty = tty_alloc();
sys/arch/atari/dev/ser.c
389
tty_attach(tp);
sys/arch/atari/dev/ser.c
391
tp = sc->sc_tty;
sys/arch/atari/dev/ser.c
393
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/atari/dev/ser.c
401
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/atari/dev/ser.c
414
tp->t_oproc = serstart;
sys/arch/atari/dev/ser.c
415
tp->t_param = serparam;
sys/arch/atari/dev/ser.c
416
tp->t_hwiflow = serhwiflow;
sys/arch/atari/dev/ser.c
417
tp->t_dev = dev;
sys/arch/atari/dev/ser.c
437
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/atari/dev/ser.c
438
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/atari/dev/ser.c
439
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/atari/dev/ser.c
440
ttychars(tp);
sys/arch/atari/dev/ser.c
441
(void)serparam(tp, &t);
sys/arch/atari/dev/ser.c
442
ttsetwater(tp);
sys/arch/atari/dev/ser.c
470
error = ttyopen(tp, SERDIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/arch/atari/dev/ser.c
474
error = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/atari/dev/ser.c
481
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/atari/dev/ser.c
497
struct tty *tp = sc->sc_tty;
sys/arch/atari/dev/ser.c
500
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/arch/atari/dev/ser.c
503
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/atari/dev/ser.c
504
ttyclose(tp);
sys/arch/atari/dev/ser.c
506
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/atari/dev/ser.c
522
struct tty *tp = sc->sc_tty;
sys/arch/atari/dev/ser.c
524
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/arch/atari/dev/ser.c
531
struct tty *tp = sc->sc_tty;
sys/arch/atari/dev/ser.c
533
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/arch/atari/dev/ser.c
540
struct tty *tp = sc->sc_tty;
sys/arch/atari/dev/ser.c
542
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/atari/dev/ser.c
549
struct tty *tp = sc->sc_tty;
sys/arch/atari/dev/ser.c
551
return tp;
sys/arch/atari/dev/ser.c
559
struct tty *tp = sc->sc_tty;
sys/arch/atari/dev/ser.c
562
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/atari/dev/ser.c
566
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/atari/dev/ser.c
593
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/atari/dev/ser.c
659
serparam(struct tty *tp, struct termios *t)
sys/arch/atari/dev/ser.c
662
device_lookup_private(&ser_cd, SERUNIT(tp->t_dev));
sys/arch/atari/dev/ser.c
770
tp->t_ispeed = 0;
sys/arch/atari/dev/ser.c
771
tp->t_ospeed = t->c_ospeed;
sys/arch/atari/dev/ser.c
772
tp->t_cflag = t->c_cflag;
sys/arch/atari/dev/ser.c
790
(void)(*tp->t_linesw->l_modem)(tp, ISSET(sc->sc_msr, MCR_DCD));
sys/arch/atari/dev/ser.c
805
serstart(tp);
sys/arch/atari/dev/ser.c
809
sermsrint(sc, tp);
sys/arch/atari/dev/ser.c
872
serhwiflow(struct tty *tp, int block)
sys/arch/atari/dev/ser.c
875
device_lookup_private(&ser_cd, SERUNIT(tp->t_dev));
sys/arch/atari/dev/ser.c
930
serstart(struct tty *tp)
sys/arch/atari/dev/ser.c
933
device_lookup_private(&ser_cd, SERUNIT(tp->t_dev));
sys/arch/atari/dev/ser.c
937
if (ISSET(tp->t_state, TS_BUSY))
sys/arch/atari/dev/ser.c
939
if (ISSET(tp->t_state, TS_TIMEOUT | TS_TTSTOP))
sys/arch/atari/dev/ser.c
944
if (!ttypull(tp))
sys/arch/atari/dev/ser.c
952
tba = tp->t_outq.c_cf;
sys/arch/atari/dev/ser.c
953
tbc = ndqb(&tp->t_outq, 0);
sys/arch/atari/dev/ser.c
961
SET(tp->t_state, TS_BUSY);
sys/arch/atari/dev/ser.c
993
serstop(struct tty *tp, int flag)
sys/arch/atari/dev/ser.c
996
device_lookup_private(&ser_cd, SERUNIT(tp->t_dev));
sys/arch/atari/dev/zs.c
1000
nch = ndqb(&tp->t_outq, 0); /* XXX */
sys/arch/atari/dev/zs.c
1002
char *p = tp->t_outq.c_cf;
sys/arch/atari/dev/zs.c
1005
tp->t_state |= TS_BUSY;
sys/arch/atari/dev/zs.c
1031
zsstop(struct tty *tp, int flag)
sys/arch/atari/dev/zs.c
1034
int s, unit = ZS_UNIT(tp->t_dev);
sys/arch/atari/dev/zs.c
1039
if ((tp->t_state & TS_BUSY) != 0) {
sys/arch/atari/dev/zs.c
1044
if ((tp->t_state & TS_TTSTOP) == 0)
sys/arch/atari/dev/zs.c
1045
tp->t_state |= TS_FLUSH;
sys/arch/atari/dev/zs.c
1053
struct tty *tp = cs->cs_ttyp;
sys/arch/atari/dev/zs.c
1062
if ((tp->t_cflag & HUPCL) != 0) {
sys/arch/atari/dev/zs.c
1088
zsparam(struct tty *tp, struct termios *t)
sys/arch/atari/dev/zs.c
1090
int unit = ZS_UNIT(tp->t_dev);
sys/arch/atari/dev/zs.c
1111
tp->t_ispeed = tp->t_ospeed = tmp;
sys/arch/atari/dev/zs.c
1113
cflag = tp->t_cflag = t->c_cflag;
sys/arch/atari/dev/zs.c
392
struct tty *tp;
sys/arch/atari/dev/zs.c
416
tp = cs->cs_ttyp;
sys/arch/atari/dev/zs.c
417
if (tp == NULL) {
sys/arch/atari/dev/zs.c
418
cs->cs_ttyp = tp = tty_alloc();
sys/arch/atari/dev/zs.c
419
tty_attach(tp);
sys/arch/atari/dev/zs.c
420
tp->t_dev = dev;
sys/arch/atari/dev/zs.c
421
tp->t_oproc = zsstart;
sys/arch/atari/dev/zs.c
422
tp->t_param = zsparam;
sys/arch/atari/dev/zs.c
425
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/atari/dev/zs.c
433
if ((tp->t_state & TS_ISOPEN) == 0 && tp->t_wopen == 0) {
sys/arch/atari/dev/zs.c
434
if (tp->t_ispeed == 0) {
sys/arch/atari/dev/zs.c
435
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/atari/dev/zs.c
436
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/atari/dev/zs.c
437
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/atari/dev/zs.c
438
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/atari/dev/zs.c
439
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/arch/atari/dev/zs.c
441
ttychars(tp);
sys/arch/atari/dev/zs.c
442
ttsetwater(tp);
sys/arch/atari/dev/zs.c
444
(void)zsparam(tp, &tp->t_termios);
sys/arch/atari/dev/zs.c
456
tp->t_state |= TS_CARR_ON;
sys/arch/atari/dev/zs.c
458
tp->t_state |= TS_CARR_ON;
sys/arch/atari/dev/zs.c
463
error = ttyopen(tp, ZS_DIALOUT(dev), (flags & O_NONBLOCK));
sys/arch/atari/dev/zs.c
467
error = tp->t_linesw->l_open(dev, tp);
sys/arch/atari/dev/zs.c
473
if ((tp->t_state & TS_ISOPEN) == 0 && tp->t_wopen == 0) {
sys/arch/atari/dev/zs.c
490
struct tty *tp;
sys/arch/atari/dev/zs.c
496
tp = cs->cs_ttyp;
sys/arch/atari/dev/zs.c
498
tp->t_linesw->l_close(tp, flags);
sys/arch/atari/dev/zs.c
499
ttyclose(tp);
sys/arch/atari/dev/zs.c
501
if ((tp->t_state & TS_ISOPEN) == 0 && tp->t_wopen == 0) {
sys/arch/atari/dev/zs.c
520
struct tty *tp;
sys/arch/atari/dev/zs.c
526
tp = cs->cs_ttyp;
sys/arch/atari/dev/zs.c
528
return (*tp->t_linesw->l_read)(tp, uio, flags);
sys/arch/atari/dev/zs.c
536
struct tty *tp;
sys/arch/atari/dev/zs.c
542
tp = cs->cs_ttyp;
sys/arch/atari/dev/zs.c
544
return (*tp->t_linesw->l_write)(tp, uio, flags);
sys/arch/atari/dev/zs.c
552
struct tty *tp;
sys/arch/atari/dev/zs.c
558
tp = cs->cs_ttyp;
sys/arch/atari/dev/zs.c
560
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/atari/dev/zs.c
745
struct tty *tp;
sys/arch/atari/dev/zs.c
760
tp = cs->cs_ttyp;
sys/arch/atari/dev/zs.c
761
line = tp->t_linesw;
sys/arch/atari/dev/zs.c
791
line->l_rint(cc, tp);
sys/arch/atari/dev/zs.c
812
(tp->t_state & TS_TTSTOP) == 0) {
sys/arch/atari/dev/zs.c
818
tp->t_state &= ~TS_BUSY;
sys/arch/atari/dev/zs.c
819
if ((tp->t_state & TS_FLUSH) != 0)
sys/arch/atari/dev/zs.c
820
tp->t_state &= ~TS_FLUSH;
sys/arch/atari/dev/zs.c
822
ndflush(&tp->t_outq,
sys/arch/atari/dev/zs.c
823
cs->cs_tba - tp->t_outq.c_cf);
sys/arch/atari/dev/zs.c
824
line->l_start(tp);
sys/arch/atari/dev/zs.c
836
if (line->l_modem(tp, cc) == 0)
sys/arch/atari/dev/zs.c
863
struct tty *tp = cs->cs_ttyp;
sys/arch/atari/dev/zs.c
866
error = tp->t_linesw->l_ioctl(tp, cmd, data, flag, l);
sys/arch/atari/dev/zs.c
870
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/atari/dev/zs.c
905
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/atari/dev/zs.c
933
tp->t_termios.c_cflag |= CLOCAL;
sys/arch/atari/dev/zs.c
942
tp->t_termios.c_cflag |= CRTSCTS;
sys/arch/atari/dev/zs.c
951
tp->t_termios.c_cflag &= ~CRTSCTS;
sys/arch/atari/dev/zs.c
978
zsstart(struct tty *tp)
sys/arch/atari/dev/zs.c
982
int unit = ZS_UNIT(tp->t_dev);
sys/arch/atari/dev/zs.c
991
if ((tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP)) != 0)
sys/arch/atari/dev/zs.c
998
ttypull(tp);
sys/arch/emips/ebus/dz_ebus.c
131
struct tty *tp;
sys/arch/emips/ebus/dz_ebus.c
145
tp = sc->sc_dz.dz_tty;
sys/arch/emips/ebus/dz_ebus.c
146
if (tp == NULL)
sys/arch/emips/ebus/dz_ebus.c
148
tp->t_oproc = dzstart;
sys/arch/emips/ebus/dz_ebus.c
149
tp->t_param = dzparam;
sys/arch/emips/ebus/dz_ebus.c
150
tp->t_dev = dev;
sys/arch/emips/ebus/dz_ebus.c
152
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/emips/ebus/dz_ebus.c
155
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/arch/emips/ebus/dz_ebus.c
156
ttychars(tp);
sys/arch/emips/ebus/dz_ebus.c
157
if (tp->t_ispeed == 0) {
sys/arch/emips/ebus/dz_ebus.c
158
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/emips/ebus/dz_ebus.c
159
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/emips/ebus/dz_ebus.c
160
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/emips/ebus/dz_ebus.c
161
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/emips/ebus/dz_ebus.c
162
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/arch/emips/ebus/dz_ebus.c
164
(void)dzparam(tp, &tp->t_termios);
sys/arch/emips/ebus/dz_ebus.c
165
ttsetwater(tp);
sys/arch/emips/ebus/dz_ebus.c
169
tp->t_state |= TS_CARR_ON;
sys/arch/emips/ebus/dz_ebus.c
171
while (!(flag & O_NONBLOCK) && !(tp->t_cflag & CLOCAL) &&
sys/arch/emips/ebus/dz_ebus.c
172
!(tp->t_state & TS_CARR_ON)) {
sys/arch/emips/ebus/dz_ebus.c
173
tp->t_wopen++;
sys/arch/emips/ebus/dz_ebus.c
174
error = ttysleep(tp, &tp->t_rawcv, true, 0);
sys/arch/emips/ebus/dz_ebus.c
175
tp->t_wopen--;
sys/arch/emips/ebus/dz_ebus.c
182
return (*tp->t_linesw->l_open)(dev, tp);
sys/arch/emips/ebus/dz_ebus.c
189
struct tty *tp;
sys/arch/emips/ebus/dz_ebus.c
196
tp = sc->sc_dz.dz_tty;
sys/arch/emips/ebus/dz_ebus.c
198
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/emips/ebus/dz_ebus.c
204
if ((tp->t_cflag & HUPCL) || tp->t_wopen || !(tp->t_state & TS_ISOPEN))
sys/arch/emips/ebus/dz_ebus.c
207
return ttyclose(tp);
sys/arch/emips/ebus/dz_ebus.c
213
struct tty *tp;
sys/arch/emips/ebus/dz_ebus.c
218
tp = sc->sc_dz.dz_tty;
sys/arch/emips/ebus/dz_ebus.c
219
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/arch/emips/ebus/dz_ebus.c
225
struct tty *tp;
sys/arch/emips/ebus/dz_ebus.c
230
tp = sc->sc_dz.dz_tty;
sys/arch/emips/ebus/dz_ebus.c
231
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/arch/emips/ebus/dz_ebus.c
239
struct tty *tp;
sys/arch/emips/ebus/dz_ebus.c
246
tp = sc->sc_dz.dz_tty;
sys/arch/emips/ebus/dz_ebus.c
248
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/emips/ebus/dz_ebus.c
252
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/emips/ebus/dz_ebus.c
298
dzstop(struct tty *tp, int flag)
sys/arch/emips/ebus/dz_ebus.c
301
if (tp->t_state & TS_BUSY)
sys/arch/emips/ebus/dz_ebus.c
302
if (!(tp->t_state & TS_TTSTOP))
sys/arch/emips/ebus/dz_ebus.c
303
tp->t_state |= TS_FLUSH;
sys/arch/emips/ebus/dz_ebus.c
310
struct tty *tp;
sys/arch/emips/ebus/dz_ebus.c
313
tp = sc->sc_dz.dz_tty;
sys/arch/emips/ebus/dz_ebus.c
315
return tp;
sys/arch/emips/ebus/dz_ebus.c
322
struct tty *tp;
sys/arch/emips/ebus/dz_ebus.c
326
tp = sc->sc_dz.dz_tty;
sys/arch/emips/ebus/dz_ebus.c
327
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/emips/ebus/dz_ebus.c
331
dzstart(struct tty *tp)
sys/arch/emips/ebus/dz_ebus.c
337
unit = DZ_I2C(minor(tp->t_dev));
sys/arch/emips/ebus/dz_ebus.c
341
if (tp->t_state & (TS_TIMEOUT|TS_BUSY|TS_TTSTOP)) {
sys/arch/emips/ebus/dz_ebus.c
345
cl = &tp->t_outq;
sys/arch/emips/ebus/dz_ebus.c
346
ttypull(tp);
sys/arch/emips/ebus/dz_ebus.c
352
tp->t_state |= TS_BUSY;
sys/arch/emips/ebus/dz_ebus.c
387
dzparam(struct tty *tp, struct termios *t)
sys/arch/emips/ebus/dz_ebus.c
397
unit = DZ_I2C(minor(tp->t_dev));
sys/arch/emips/ebus/dz_ebus.c
398
line = DZ_PORT(minor(tp->t_dev));
sys/arch/emips/ebus/dz_ebus.c
408
tp->t_ispeed = t->c_ispeed;
sys/arch/emips/ebus/dz_ebus.c
409
tp->t_ospeed = t->c_ospeed;
sys/arch/emips/ebus/dz_ebus.c
410
tp->t_cflag = cflag;
sys/arch/emips/ebus/dz_ebus.c
526
struct tty *tp;
sys/arch/emips/ebus/dz_ebus.c
534
tp = sc->sc_dz.dz_tty;
sys/arch/emips/ebus/dz_ebus.c
540
if (!(tp->t_state & TS_ISOPEN)) {
sys/arch/emips/ebus/dz_ebus.c
541
wakeup(&tp->t_rawq);
sys/arch/emips/ebus/dz_ebus.c
560
(*tp->t_linesw->l_rint)(cc, tp);
sys/arch/emips/ebus/dz_ebus.c
568
struct tty *tp;
sys/arch/emips/ebus/dz_ebus.c
575
tp = sc->sc_dz.dz_tty;
sys/arch/emips/ebus/dz_ebus.c
576
cl = &tp->t_outq;
sys/arch/emips/ebus/dz_ebus.c
577
tp->t_state &= ~TS_BUSY;
sys/arch/emips/ebus/dz_ebus.c
581
tp->t_state |= TS_BUSY;
sys/arch/emips/ebus/dz_ebus.c
591
if (tp->t_state & TS_FLUSH)
sys/arch/emips/ebus/dz_ebus.c
592
tp->t_state &= ~TS_FLUSH;
sys/arch/emips/ebus/dz_ebus.c
594
ndflush(&tp->t_outq, cl->c_cc);
sys/arch/emips/ebus/dz_ebus.c
596
(*tp->t_linesw->l_start)(tp);
sys/arch/epoc32/windermere/wmcom.c
324
struct tty *tp = sc->sc_tty;
sys/arch/epoc32/windermere/wmcom.c
331
wmcom_rxsoft(sc, tp);
sys/arch/epoc32/windermere/wmcom.c
335
CLR(tp->t_state, TS_BUSY);
sys/arch/epoc32/windermere/wmcom.c
336
if (ISSET(tp->t_state, TS_FLUSH))
sys/arch/epoc32/windermere/wmcom.c
337
CLR(tp->t_state, TS_FLUSH);
sys/arch/epoc32/windermere/wmcom.c
339
ndflush(&tp->t_outq,
sys/arch/epoc32/windermere/wmcom.c
340
(int)(sc->sc_tba - tp->t_outq.c_cf));
sys/arch/epoc32/windermere/wmcom.c
341
(*tp->t_linesw->l_start)(tp);
sys/arch/epoc32/windermere/wmcom.c
346
wmcom_start(struct tty *tp)
sys/arch/epoc32/windermere/wmcom.c
349
= device_lookup_private(&wmcom_cd, COMUNIT(tp->t_dev));
sys/arch/epoc32/windermere/wmcom.c
359
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/arch/epoc32/windermere/wmcom.c
361
if (!ttypull(tp))
sys/arch/epoc32/windermere/wmcom.c
369
tba = tp->t_outq.c_cf;
sys/arch/epoc32/windermere/wmcom.c
370
tbc = ndqb(&tp->t_outq, 0);
sys/arch/epoc32/windermere/wmcom.c
378
SET(tp->t_state, TS_BUSY);
sys/arch/epoc32/windermere/wmcom.c
396
wmcom_param(struct tty *tp, struct termios *t)
sys/arch/epoc32/windermere/wmcom.c
399
device_lookup_private(&wmcom_cd, COMUNIT(tp->t_dev));
sys/arch/epoc32/windermere/wmcom.c
424
if (tp->t_ospeed == t->c_ospeed &&
sys/arch/epoc32/windermere/wmcom.c
425
tp->t_cflag == t->c_cflag)
sys/arch/epoc32/windermere/wmcom.c
433
tp->t_ispeed = 0;
sys/arch/epoc32/windermere/wmcom.c
434
tp->t_ospeed = t->c_ospeed;
sys/arch/epoc32/windermere/wmcom.c
435
tp->t_cflag = t->c_cflag;
sys/arch/epoc32/windermere/wmcom.c
442
(*tp->t_linesw->l_modem)(tp, 1);
sys/arch/epoc32/windermere/wmcom.c
448
wmcom_hwiflow(struct tty *tp, int block)
sys/arch/epoc32/windermere/wmcom.c
459
struct tty *tp;
sys/arch/epoc32/windermere/wmcom.c
477
tp = sc->sc_tty;
sys/arch/epoc32/windermere/wmcom.c
479
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/epoc32/windermere/wmcom.c
487
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/epoc32/windermere/wmcom.c
490
tp->t_dev = dev;
sys/arch/epoc32/windermere/wmcom.c
518
tp->t_ospeed = 0;
sys/arch/epoc32/windermere/wmcom.c
519
wmcom_param(tp, &t);
sys/arch/epoc32/windermere/wmcom.c
520
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/epoc32/windermere/wmcom.c
521
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/epoc32/windermere/wmcom.c
522
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/epoc32/windermere/wmcom.c
523
ttychars(tp);
sys/arch/epoc32/windermere/wmcom.c
524
ttsetwater(tp);
sys/arch/epoc32/windermere/wmcom.c
538
error = ttyopen(tp, COMDIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/arch/epoc32/windermere/wmcom.c
542
error = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/epoc32/windermere/wmcom.c
548
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/epoc32/windermere/wmcom.c
568
struct tty *tp = sc->sc_tty;
sys/arch/epoc32/windermere/wmcom.c
571
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/arch/epoc32/windermere/wmcom.c
574
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/epoc32/windermere/wmcom.c
575
ttyclose(tp);
sys/arch/epoc32/windermere/wmcom.c
580
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/epoc32/windermere/wmcom.c
600
struct tty *tp = sc->sc_tty;
sys/arch/epoc32/windermere/wmcom.c
605
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/arch/epoc32/windermere/wmcom.c
612
struct tty *tp = sc->sc_tty;
sys/arch/epoc32/windermere/wmcom.c
617
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/arch/epoc32/windermere/wmcom.c
624
struct tty *tp = sc->sc_tty;
sys/arch/epoc32/windermere/wmcom.c
630
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/epoc32/windermere/wmcom.c
634
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/epoc32/windermere/wmcom.c
641
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/epoc32/windermere/wmcom.c
680
struct tty *tp = sc->sc_tty;
sys/arch/epoc32/windermere/wmcom.c
685
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/epoc32/windermere/wmcom.c
697
wmcomstop(struct tty *tp, int flag)
sys/arch/epoc32/windermere/wmcom.c
702
if (ISSET(tp->t_state, TS_BUSY)) {
sys/arch/epoc32/windermere/wmcom.c
704
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/arch/epoc32/windermere/wmcom.c
705
SET(tp->t_state, TS_FLUSH);
sys/arch/epoc32/windermere/wmcom.c
759
wmcom_rxsoft(struct wmcom_softc *sc, struct tty *tp)
sys/arch/epoc32/windermere/wmcom.c
781
if ((*tp->t_linesw->l_rint)(code, tp) == -1) {
sys/arch/evbarm/dev/plcom.c
1001
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/evbarm/dev/plcom.c
1018
struct tty *tp = sc->sc_tty;
sys/arch/evbarm/dev/plcom.c
1023
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/arch/evbarm/dev/plcom.c
1031
struct tty *tp = sc->sc_tty;
sys/arch/evbarm/dev/plcom.c
1036
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/arch/evbarm/dev/plcom.c
1044
struct tty *tp = sc->sc_tty;
sys/arch/evbarm/dev/plcom.c
1049
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/evbarm/dev/plcom.c
1057
struct tty *tp = sc->sc_tty;
sys/arch/evbarm/dev/plcom.c
1059
return tp;
sys/arch/evbarm/dev/plcom.c
1067
struct tty *tp;
sys/arch/evbarm/dev/plcom.c
1075
tp = sc->sc_tty;
sys/arch/evbarm/dev/plcom.c
1077
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/evbarm/dev/plcom.c
1081
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/evbarm/dev/plcom.c
1089
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/evbarm/dev/plcom.c
1402
plcomparam(struct tty *tp, struct termios *t)
sys/arch/evbarm/dev/plcom.c
1405
device_lookup_private(&plcom_cd, PLCOMUNIT(tp->t_dev));
sys/arch/evbarm/dev/plcom.c
1444
if (tp->t_ospeed == t->c_ospeed &&
sys/arch/evbarm/dev/plcom.c
1445
tp->t_cflag == t->c_cflag)
sys/arch/evbarm/dev/plcom.c
1565
tp->t_ispeed = t->c_ospeed;
sys/arch/evbarm/dev/plcom.c
1566
tp->t_ospeed = t->c_ospeed;
sys/arch/evbarm/dev/plcom.c
1567
tp->t_cflag = t->c_cflag;
sys/arch/evbarm/dev/plcom.c
1602
(void) (*tp->t_linesw->l_modem)(tp, ISSET(sc->sc_msr, PL01X_MSR_DCD));
sys/arch/evbarm/dev/plcom.c
1612
plcomstart(tp);
sys/arch/evbarm/dev/plcom.c
1698
plcomhwiflow(struct tty *tp, int block)
sys/arch/evbarm/dev/plcom.c
1701
device_lookup_private(&plcom_cd, PLCOMUNIT(tp->t_dev));
sys/arch/evbarm/dev/plcom.c
1767
plcomstart(struct tty *tp)
sys/arch/evbarm/dev/plcom.c
1770
device_lookup_private(&plcom_cd, PLCOMUNIT(tp->t_dev));
sys/arch/evbarm/dev/plcom.c
1776
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/arch/evbarm/dev/plcom.c
1781
if (!ttypull(tp))
sys/arch/evbarm/dev/plcom.c
1789
tba = tp->t_outq.c_cf;
sys/arch/evbarm/dev/plcom.c
1790
tbc = ndqb(&tp->t_outq, 0);
sys/arch/evbarm/dev/plcom.c
1798
SET(tp->t_state, TS_BUSY);
sys/arch/evbarm/dev/plcom.c
1836
plcomstop(struct tty *tp, int flag)
sys/arch/evbarm/dev/plcom.c
1839
device_lookup_private(&plcom_cd, PLCOMUNIT(tp->t_dev));
sys/arch/evbarm/dev/plcom.c
1842
if (ISSET(tp->t_state, TS_BUSY)) {
sys/arch/evbarm/dev/plcom.c
1846
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/arch/evbarm/dev/plcom.c
1847
SET(tp->t_state, TS_FLUSH);
sys/arch/evbarm/dev/plcom.c
1873
plcom_rxsoft(struct plcom_softc *sc, struct tty *tp)
sys/arch/evbarm/dev/plcom.c
1875
int (*rint) (int, struct tty *) = tp->t_linesw->l_rint;
sys/arch/evbarm/dev/plcom.c
1908
if ((*rint)(code, tp) == -1) {
sys/arch/evbarm/dev/plcom.c
1974
plcom_txsoft(struct plcom_softc *sc, struct tty *tp)
sys/arch/evbarm/dev/plcom.c
1977
CLR(tp->t_state, TS_BUSY);
sys/arch/evbarm/dev/plcom.c
1978
if (ISSET(tp->t_state, TS_FLUSH))
sys/arch/evbarm/dev/plcom.c
1979
CLR(tp->t_state, TS_FLUSH);
sys/arch/evbarm/dev/plcom.c
1981
ndflush(&tp->t_outq, (int)(sc->sc_tba - tp->t_outq.c_cf));
sys/arch/evbarm/dev/plcom.c
1982
(*tp->t_linesw->l_start)(tp);
sys/arch/evbarm/dev/plcom.c
1986
plcom_stsoft(struct plcom_softc *sc, struct tty *tp)
sys/arch/evbarm/dev/plcom.c
2000
(void) (*tp->t_linesw->l_modem)(tp, ISSET(msr, PL01X_MSR_DCD));
sys/arch/evbarm/dev/plcom.c
2007
(*tp->t_linesw->l_start)(tp);
sys/arch/evbarm/dev/plcom.c
2023
struct tty *tp;
sys/arch/evbarm/dev/plcom.c
2028
tp = sc->sc_tty;
sys/arch/evbarm/dev/plcom.c
2032
plcom_rxsoft(sc, tp);
sys/arch/evbarm/dev/plcom.c
2037
plcom_stsoft(sc, tp);
sys/arch/evbarm/dev/plcom.c
2042
plcom_txsoft(sc, tp);
sys/arch/evbarm/dev/plcom.c
385
struct tty *tp = sc->sc_tty;
sys/arch/evbarm/dev/plcom.c
389
ISSET(tp->t_cflag, CLOCAL) ? "+" : "-",
sys/arch/evbarm/dev/plcom.c
391
ISSET(tp->t_state, TS_CARR_ON) ? "+" : "-",
sys/arch/evbarm/dev/plcom.c
397
ISSET(tp->t_cflag, CRTSCTS) ? "+" : "-",
sys/arch/evbarm/dev/plcom.c
399
ISSET(tp->t_state, TS_TTSTOP) ? "+" : "-",
sys/arch/evbarm/dev/plcom.c
472
struct tty *tp;
sys/arch/evbarm/dev/plcom.c
579
tp = tty_alloc();
sys/arch/evbarm/dev/plcom.c
580
tp->t_oproc = plcomstart;
sys/arch/evbarm/dev/plcom.c
581
tp->t_param = plcomparam;
sys/arch/evbarm/dev/plcom.c
582
tp->t_hwiflow = plcomhwiflow;
sys/arch/evbarm/dev/plcom.c
584
sc->sc_tty = tp;
sys/arch/evbarm/dev/plcom.c
590
tty_attach(tp);
sys/arch/evbarm/dev/plcom.c
598
tp->t_dev = cn_tab->cn_dev = makedev(maj, device_unit(sc->sc_dev));
sys/arch/evbarm/dev/plcom.c
735
struct tty *tp = sc->sc_tty;
sys/arch/evbarm/dev/plcom.c
756
if (ISSET(tp->t_cflag, HUPCL)) {
sys/arch/evbarm/dev/plcom.c
811
struct tty *tp;
sys/arch/evbarm/dev/plcom.c
833
tp = sc->sc_tty;
sys/arch/evbarm/dev/plcom.c
835
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/evbarm/dev/plcom.c
843
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/evbarm/dev/plcom.c
847
tp->t_dev = dev;
sys/arch/evbarm/dev/plcom.c
926
tp->t_ospeed = 0;
sys/arch/evbarm/dev/plcom.c
927
(void) plcomparam(tp, &t);
sys/arch/evbarm/dev/plcom.c
928
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/evbarm/dev/plcom.c
929
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/evbarm/dev/plcom.c
930
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/evbarm/dev/plcom.c
931
ttychars(tp);
sys/arch/evbarm/dev/plcom.c
932
ttsetwater(tp);
sys/arch/evbarm/dev/plcom.c
962
error = ttyopen(tp, PLCOMDIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/arch/evbarm/dev/plcom.c
966
error = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/evbarm/dev/plcom.c
973
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/evbarm/dev/plcom.c
989
struct tty *tp = sc->sc_tty;
sys/arch/evbarm/dev/plcom.c
992
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/arch/evbarm/dev/plcom.c
995
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/evbarm/dev/plcom.c
996
ttyclose(tp);
sys/arch/evbppc/virtex/dev/xlcom.c
173
struct tty *tp;
sys/arch/evbppc/virtex/dev/xlcom.c
232
tp = tty_alloc();
sys/arch/evbppc/virtex/dev/xlcom.c
233
tp->t_dev = dev;
sys/arch/evbppc/virtex/dev/xlcom.c
234
tp->t_oproc = xlcom_start;
sys/arch/evbppc/virtex/dev/xlcom.c
235
tp->t_param = xlcom_param;
sys/arch/evbppc/virtex/dev/xlcom.c
236
tp->t_hwiflow = NULL; /* No HW flow control */
sys/arch/evbppc/virtex/dev/xlcom.c
237
tty_attach(tp);
sys/arch/evbppc/virtex/dev/xlcom.c
246
sc->sc_tty = tp;
sys/arch/evbppc/virtex/dev/xlcom.c
256
struct tty *tp = sc->sc_tty;
sys/arch/evbppc/virtex/dev/xlcom.c
258
if (tp->t_state & TS_FLUSH)
sys/arch/evbppc/virtex/dev/xlcom.c
259
tp->t_state &= ~TS_FLUSH;
sys/arch/evbppc/virtex/dev/xlcom.c
261
ndflush(&tp->t_outq,
sys/arch/evbppc/virtex/dev/xlcom.c
262
(int)(sc->sc_tba - tp->t_outq.c_cf));
sys/arch/evbppc/virtex/dev/xlcom.c
263
(tp->t_linesw->l_start)(tp);
sys/arch/evbppc/virtex/dev/xlcom.c
270
struct tty *tp = sc->sc_tty;
sys/arch/evbppc/virtex/dev/xlcom.c
280
rint = tp->t_linesw->l_rint;
sys/arch/evbppc/virtex/dev/xlcom.c
297
if ((rint)(d, tp) == -1) {
sys/arch/evbppc/virtex/dev/xlcom.c
406
struct tty *tp;
sys/arch/evbppc/virtex/dev/xlcom.c
413
tp = sc->sc_tty;
sys/arch/evbppc/virtex/dev/xlcom.c
418
tp) != 0) {
sys/arch/evbppc/virtex/dev/xlcom.c
424
if (!(tp->t_state & TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/evbppc/virtex/dev/xlcom.c
425
tp->t_dev = dev;
sys/arch/evbppc/virtex/dev/xlcom.c
428
tp->t_ispeed = tp->t_ospeed = B38400;
sys/arch/evbppc/virtex/dev/xlcom.c
429
tp->t_cflag = CLOCAL | CREAD | CS8;
sys/arch/evbppc/virtex/dev/xlcom.c
430
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/evbppc/virtex/dev/xlcom.c
431
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/evbppc/virtex/dev/xlcom.c
432
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/evbppc/virtex/dev/xlcom.c
434
ttychars(tp);
sys/arch/evbppc/virtex/dev/xlcom.c
435
ttsetwater(tp);
sys/arch/evbppc/virtex/dev/xlcom.c
442
error = ttyopen(tp, DIALOUT(dev), (flags & O_NONBLOCK));
sys/arch/evbppc/virtex/dev/xlcom.c
446
error = (tp->t_linesw->l_open)(dev, tp);
sys/arch/evbppc/virtex/dev/xlcom.c
463
struct tty *tp;
sys/arch/evbppc/virtex/dev/xlcom.c
468
tp = sc->sc_tty;
sys/arch/evbppc/virtex/dev/xlcom.c
470
return (tp->t_linesw->l_read)(tp, uio, flag);
sys/arch/evbppc/virtex/dev/xlcom.c
477
struct tty *tp;
sys/arch/evbppc/virtex/dev/xlcom.c
482
tp = sc->sc_tty;
sys/arch/evbppc/virtex/dev/xlcom.c
484
return (tp->t_linesw->l_write)(tp, uio, flag);
sys/arch/evbppc/virtex/dev/xlcom.c
491
struct tty *tp;
sys/arch/evbppc/virtex/dev/xlcom.c
496
tp = sc->sc_tty;
sys/arch/evbppc/virtex/dev/xlcom.c
498
return (tp->t_linesw->l_poll)(tp, events, l);
sys/arch/evbppc/virtex/dev/xlcom.c
505
struct tty *tp;
sys/arch/evbppc/virtex/dev/xlcom.c
510
tp = sc->sc_tty;
sys/arch/evbppc/virtex/dev/xlcom.c
512
return (tp);
sys/arch/evbppc/virtex/dev/xlcom.c
519
struct tty *tp;
sys/arch/evbppc/virtex/dev/xlcom.c
525
tp = sc->sc_tty;
sys/arch/evbppc/virtex/dev/xlcom.c
527
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/evbppc/virtex/dev/xlcom.c
531
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/evbppc/virtex/dev/xlcom.c
544
struct tty *tp;
sys/arch/evbppc/virtex/dev/xlcom.c
549
tp = sc->sc_tty;
sys/arch/evbppc/virtex/dev/xlcom.c
551
(tp->t_linesw->l_close)(tp, flag);
sys/arch/evbppc/virtex/dev/xlcom.c
552
ttyclose(tp);
sys/arch/evbppc/virtex/dev/xlcom.c
555
if (!(tp->t_state & TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/evbppc/virtex/dev/xlcom.c
562
xlcom_stop(struct tty *tp, int flag)
sys/arch/evbppc/virtex/dev/xlcom.c
567
sc = device_lookup_private(&xlcom_cd, UNIT(tp->t_dev));
sys/arch/evbppc/virtex/dev/xlcom.c
572
if (tp->t_state & TS_BUSY) {
sys/arch/evbppc/virtex/dev/xlcom.c
575
if (! (tp->t_state & TS_TTSTOP))
sys/arch/evbppc/virtex/dev/xlcom.c
576
tp->t_state |= TS_FLUSH;
sys/arch/evbppc/virtex/dev/xlcom.c
585
xlcom_param(struct tty *tp, struct termios *t)
sys/arch/evbppc/virtex/dev/xlcom.c
589
if (tp->t_ospeed == t->c_ospeed &&
sys/arch/evbppc/virtex/dev/xlcom.c
590
tp->t_ispeed == t->c_ispeed &&
sys/arch/evbppc/virtex/dev/xlcom.c
591
tp->t_cflag == t->c_cflag)
sys/arch/evbppc/virtex/dev/xlcom.c
598
xlcom_start(struct tty *tp)
sys/arch/evbppc/virtex/dev/xlcom.c
603
sc = device_lookup_private(&xlcom_cd, UNIT(tp->t_dev));
sys/arch/evbppc/virtex/dev/xlcom.c
609
if (tp->t_state & (TS_BUSY | TS_TIMEOUT | TS_TTSTOP)) {
sys/arch/evbppc/virtex/dev/xlcom.c
614
if (!ttypull(tp)) {
sys/arch/evbppc/virtex/dev/xlcom.c
619
tp->t_state |= TS_BUSY;
sys/arch/evbppc/virtex/dev/xlcom.c
623
sc->sc_tba = tp->t_outq.c_cf;
sys/arch/evbppc/virtex/dev/xlcom.c
624
sc->sc_tbc = ndqb(&tp->t_outq, 0);
sys/arch/hp300/dev/dcm.c
1041
if (tp->t_cflag & CLOCAL)
sys/arch/hp300/dev/dcm.c
1052
KAUTH_DEVICE_TTY_PRIVSET, tp))
sys/arch/hp300/dev/dcm.c
1063
tp->t_cflag |= CLOCAL;
sys/arch/hp300/dev/dcm.c
1075
dcmparam(struct tty *tp, struct termios *t)
sys/arch/hp300/dev/dcm.c
1082
unit = DCMUNIT(tp->t_dev);
sys/arch/hp300/dev/dcm.c
1093
tp->t_ispeed = t->c_ispeed;
sys/arch/hp300/dev/dcm.c
1094
tp->t_ospeed = t->c_ospeed;
sys/arch/hp300/dev/dcm.c
1095
tp->t_cflag = cflag;
sys/arch/hp300/dev/dcm.c
1097
(void)dcmmctl(DCMUNIT(tp->t_dev), MO_OFF, DMSET);
sys/arch/hp300/dev/dcm.c
1126
device_xname(sc->sc_dev), port, cflag, mode, tp->t_ospeed,
sys/arch/hp300/dev/dcm.c
1127
DCM_USPERCH(tp->t_ospeed));
sys/arch/hp300/dev/dcm.c
1134
DELAY(DCM_USPERCH(tp->t_ospeed));
sys/arch/hp300/dev/dcm.c
1148
DELAY(16 * DCM_USPERCH(tp->t_ospeed));
sys/arch/hp300/dev/dcm.c
1153
dcmstart(struct tty *tp)
sys/arch/hp300/dev/dcm.c
1169
unit = DCMUNIT(tp->t_dev);
sys/arch/hp300/dev/dcm.c
1186
device_xname(sc->sc_dev), port, tp->t_state, tp->t_flags,
sys/arch/hp300/dev/dcm.c
1187
tp->t_outq.c_cc);
sys/arch/hp300/dev/dcm.c
1189
if (tp->t_state & (TS_TIMEOUT|TS_BUSY|TS_TTSTOP))
sys/arch/hp300/dev/dcm.c
1191
if (!ttypull(tp)) {
sys/arch/hp300/dev/dcm.c
1206
nch = q_to_b(&tp->t_outq, buf, (head - next) & TX_MASK);
sys/arch/hp300/dev/dcm.c
1225
tp->t_state |= TS_BUSY;
sys/arch/hp300/dev/dcm.c
1239
if (tp->t_outq.c_cc && head != (pp->t_head & TX_MASK)) {
sys/arch/hp300/dev/dcm.c
1252
tp->t_state |= TS_BUSY;
sys/arch/hp300/dev/dcm.c
1262
tp->t_outq.c_cc);
sys/arch/hp300/dev/dcm.c
1279
dcmstop(struct tty *tp, int flag)
sys/arch/hp300/dev/dcm.c
1284
if (tp->t_state & TS_BUSY) {
sys/arch/hp300/dev/dcm.c
1286
if ((tp->t_state&TS_TTSTOP) == 0)
sys/arch/hp300/dev/dcm.c
1287
tp->t_state |= TS_FLUSH;
sys/arch/hp300/dev/dcm.c
1388
struct tty *tp;
sys/arch/hp300/dev/dcm.c
1392
tp = sc->sc_tty[i];
sys/arch/hp300/dev/dcm.c
1394
c = tty_getctrlchar(tp, VSTART);
sys/arch/hp300/dev/dcm.c
1397
c = tty_getctrlchar(tp, VSTOP);
sys/arch/hp300/dev/dcm.c
489
struct tty *tp;
sys/arch/hp300/dev/dcm.c
505
tp = sc->sc_tty[port] = tty_alloc();
sys/arch/hp300/dev/dcm.c
506
tty_attach(tp);
sys/arch/hp300/dev/dcm.c
508
tp = sc->sc_tty[port];
sys/arch/hp300/dev/dcm.c
510
tp->t_oproc = dcmstart;
sys/arch/hp300/dev/dcm.c
511
tp->t_param = dcmparam;
sys/arch/hp300/dev/dcm.c
512
tp->t_dev = dev;
sys/arch/hp300/dev/dcm.c
514
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/hp300/dev/dcm.c
519
if ((tp->t_state & TS_ISOPEN) == 0 && tp->t_wopen == 0) {
sys/arch/hp300/dev/dcm.c
527
ttychars(tp);
sys/arch/hp300/dev/dcm.c
528
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/hp300/dev/dcm.c
529
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/hp300/dev/dcm.c
530
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/hp300/dev/dcm.c
531
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/hp300/dev/dcm.c
532
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/arch/hp300/dev/dcm.c
534
(void) dcmparam(tp, &tp->t_termios);
sys/arch/hp300/dev/dcm.c
535
ttsetwater(tp);
sys/arch/hp300/dev/dcm.c
547
tp->t_state |= TS_CARR_ON;
sys/arch/hp300/dev/dcm.c
556
(tp->t_state & TS_CARR_ON) ? '1' : '0');
sys/arch/hp300/dev/dcm.c
559
error = ttyopen(tp, DCMDIALOUT(dev), (flag & O_NONBLOCK));
sys/arch/hp300/dev/dcm.c
566
device_xname(sc->sc_dev), port, tp->t_state, tp->t_flags);
sys/arch/hp300/dev/dcm.c
568
error = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/hp300/dev/dcm.c
579
struct tty *tp;
sys/arch/hp300/dev/dcm.c
586
tp = sc->sc_tty[port];
sys/arch/hp300/dev/dcm.c
588
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/hp300/dev/dcm.c
592
if (tp->t_cflag & HUPCL || tp->t_wopen != 0 ||
sys/arch/hp300/dev/dcm.c
593
(tp->t_state & TS_ISOPEN) == 0)
sys/arch/hp300/dev/dcm.c
598
device_xname(sc->sc_dev), port, tp->t_state, tp->t_flags);
sys/arch/hp300/dev/dcm.c
601
ttyclose(tp);
sys/arch/hp300/dev/dcm.c
603
tty_detach(tp);
sys/arch/hp300/dev/dcm.c
604
tty_free(tp);
sys/arch/hp300/dev/dcm.c
615
struct tty *tp;
sys/arch/hp300/dev/dcm.c
622
tp = sc->sc_tty[port];
sys/arch/hp300/dev/dcm.c
624
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/arch/hp300/dev/dcm.c
632
struct tty *tp;
sys/arch/hp300/dev/dcm.c
639
tp = sc->sc_tty[port];
sys/arch/hp300/dev/dcm.c
641
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/arch/hp300/dev/dcm.c
649
struct tty *tp;
sys/arch/hp300/dev/dcm.c
656
tp = sc->sc_tty[port];
sys/arch/hp300/dev/dcm.c
658
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/hp300/dev/dcm.c
809
struct tty *tp;
sys/arch/hp300/dev/dcm.c
818
tp = sc->sc_tty[port];
sys/arch/hp300/dev/dcm.c
819
if (tp == NULL)
sys/arch/hp300/dev/dcm.c
822
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/arch/hp300/dev/dcm.c
828
if ((makedev(maj, minor(tp->t_dev)) == kgdb_dev) &&
sys/arch/hp300/dev/dcm.c
863
tp->t_flags, head, pp->r_tail);
sys/arch/hp300/dev/dcm.c
889
(*tp->t_linesw->l_rint)(c, tp);
sys/arch/hp300/dev/dcm.c
905
struct tty *tp;
sys/arch/hp300/dev/dcm.c
907
tp = sc->sc_tty[port];
sys/arch/hp300/dev/dcm.c
908
if (tp == NULL || (tp->t_state & TS_ISOPEN) == 0)
sys/arch/hp300/dev/dcm.c
911
tp->t_state &= ~TS_BUSY;
sys/arch/hp300/dev/dcm.c
912
if (tp->t_state & TS_FLUSH)
sys/arch/hp300/dev/dcm.c
913
tp->t_state &= ~TS_FLUSH;
sys/arch/hp300/dev/dcm.c
914
(*tp->t_linesw->l_start)(tp);
sys/arch/hp300/dev/dcm.c
921
struct tty *tp;
sys/arch/hp300/dev/dcm.c
932
tp = sc->sc_tty[port];
sys/arch/hp300/dev/dcm.c
933
if (tp == NULL || (tp->t_state & TS_ISOPEN) == 0)
sys/arch/hp300/dev/dcm.c
936
if ((delta & MI_CTS) && (tp->t_state & TS_ISOPEN) &&
sys/arch/hp300/dev/dcm.c
937
(tp->t_cflag & CCTS_OFLOW)) {
sys/arch/hp300/dev/dcm.c
939
tp->t_state &= ~TS_TTSTOP;
sys/arch/hp300/dev/dcm.c
940
ttstart(tp);
sys/arch/hp300/dev/dcm.c
942
tp->t_state |= TS_TTSTOP; /* inline dcmstop */
sys/arch/hp300/dev/dcm.c
946
(void)(*tp->t_linesw->l_modem)(tp, 1);
sys/arch/hp300/dev/dcm.c
948
(*tp->t_linesw->l_modem)(tp, 0) == 0) {
sys/arch/hp300/dev/dcm.c
963
struct tty *tp;
sys/arch/hp300/dev/dcm.c
973
tp = sc->sc_tty[port];
sys/arch/hp300/dev/dcm.c
981
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/hp300/dev/dcm.c
985
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/hp300/dev/dcm.c
996
DELAY(DCM_USPERCH(tp->t_ospeed));
sys/arch/hpcarm/dev/wzero3_tp.c
407
struct wzero3tp_pos tp = { 0, 0, 0 };
sys/arch/hpcarm/dev/wzero3_tp.c
425
down = (*sc->sc_model->chip.readpos)(&tp);
sys/arch/hpcarm/dev/wzero3_tp.c
427
device_xname(sc->sc_dev), tp.x, tp.y, tp.z, down));
sys/arch/hpcarm/dev/wzero3_tp.c
439
tpcalib_trans(&sc->sc_tpcalib, tp.x, tp.y, &x, &y);
sys/arch/hpcarm/dev/wzero3_tp.c
442
tp.x = x;
sys/arch/hpcarm/dev/wzero3_tp.c
443
tp.y = y;
sys/arch/hpcarm/dev/wzero3_tp.c
449
tp = sc->sc_oldpos;
sys/arch/hpcarm/dev/wzero3_tp.c
453
wsmouse_input(sc->sc_wsmousedev, down, tp.x, tp.y, 0, 0,
sys/arch/hpcarm/dev/wzero3_tp.c
456
sc->sc_oldpos = tp;
sys/arch/hpcmips/tx/txcom.c
1000
txcomstop(struct tty *tp, int flag)
sys/arch/hpcmips/tx/txcom.c
1005
sc = device_lookup_private(&txcom_cd, minor(tp->t_dev));
sys/arch/hpcmips/tx/txcom.c
1009
if (ISSET(tp->t_state, TS_BUSY)) {
sys/arch/hpcmips/tx/txcom.c
1013
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/arch/hpcmips/tx/txcom.c
1014
SET(tp->t_state, TS_FLUSH);
sys/arch/hpcmips/tx/txcom.c
1021
txcomstart(struct tty *tp)
sys/arch/hpcmips/tx/txcom.c
1029
sc = device_lookup_private(&txcom_cd, minor(tp->t_dev));
sys/arch/hpcmips/tx/txcom.c
1037
ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/arch/hpcmips/tx/txcom.c
1040
if (!ttypull(tp))
sys/arch/hpcmips/tx/txcom.c
1043
sc->sc_tba = tp->t_outq.c_cf;
sys/arch/hpcmips/tx/txcom.c
1044
sc->sc_tbc = ndqb(&tp->t_outq, 0);
sys/arch/hpcmips/tx/txcom.c
1045
SET(tp->t_state, TS_BUSY);
sys/arch/hpcmips/tx/txcom.c
1062
txcomparam(struct tty *tp, struct termios *t)
sys/arch/hpcmips/tx/txcom.c
1069
sc = device_lookup_private(&txcom_cd, minor(tp->t_dev));
sys/arch/hpcmips/tx/txcom.c
1110
if (tp->t_ospeed == ospeed && tp->t_cflag == t->c_cflag) {
sys/arch/hpcmips/tx/txcom.c
1123
tp->t_ispeed = 0;
sys/arch/hpcmips/tx/txcom.c
1124
tp->t_ospeed = chip->sc_speed;
sys/arch/hpcmips/tx/txcom.c
1125
tp->t_cflag = chip->sc_cflag;
sys/arch/hpcmips/tx/txcom.c
1132
(void) (*tp->t_linesw->l_modem)(tp, chip->sc_dcd);
sys/arch/hpcmips/tx/txcom.c
1139
txcomstart(tp);
sys/arch/hpcmips/tx/txcom.c
1151
struct tty *tp = sc->sc_tty;
sys/arch/hpcmips/tx/txcom.c
1158
(void) (*tp->t_linesw->l_modem)(tp, chip->sc_dcd);
sys/arch/hpcmips/tx/txcom.c
1167
struct tty *tp = sc->sc_tty;
sys/arch/hpcmips/tx/txcom.c
1178
(*tp->t_linesw->l_start)(tp);
sys/arch/hpcmips/tx/txcom.c
207
struct tty *tp;
sys/arch/hpcmips/tx/txcom.c
234
tp = tty_alloc();
sys/arch/hpcmips/tx/txcom.c
235
tp->t_oproc = txcomstart;
sys/arch/hpcmips/tx/txcom.c
236
tp->t_param = txcomparam;
sys/arch/hpcmips/tx/txcom.c
237
tp->t_hwiflow = NULL;
sys/arch/hpcmips/tx/txcom.c
238
sc->sc_tty = tp;
sys/arch/hpcmips/tx/txcom.c
239
tty_attach(tp);
sys/arch/hpcmips/tx/txcom.c
626
struct tty *tp = sc->sc_tty;
sys/arch/hpcmips/tx/txcom.c
636
if (ISSET(tp->t_cflag, HUPCL)) {
sys/arch/hpcmips/tx/txcom.c
714
struct tty *tp = sc->sc_tty;
sys/arch/hpcmips/tx/txcom.c
719
rint = tp->t_linesw->l_rint;
sys/arch/hpcmips/tx/txcom.c
728
if ((*rint)(code, tp) == -1) {
sys/arch/hpcmips/tx/txcom.c
764
struct tty *tp = sc->sc_tty;
sys/arch/hpcmips/tx/txcom.c
767
CLR(tp->t_state, TS_BUSY);
sys/arch/hpcmips/tx/txcom.c
768
if (ISSET(tp->t_state, TS_FLUSH)) {
sys/arch/hpcmips/tx/txcom.c
769
CLR(tp->t_state, TS_FLUSH);
sys/arch/hpcmips/tx/txcom.c
771
ndflush(&tp->t_outq, (int)(sc->sc_tba - tp->t_outq.c_cf));
sys/arch/hpcmips/tx/txcom.c
774
(*tp->t_linesw->l_start)(tp);
sys/arch/hpcmips/tx/txcom.c
784
struct tty *tp;
sys/arch/hpcmips/tx/txcom.c
792
tp = sc->sc_tty;
sys/arch/hpcmips/tx/txcom.c
794
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/hpcmips/tx/txcom.c
806
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/hpcmips/tx/txcom.c
809
tp->t_dev = dev;
sys/arch/hpcmips/tx/txcom.c
828
tp->t_ospeed = 0;
sys/arch/hpcmips/tx/txcom.c
829
txcomparam(tp, &t);
sys/arch/hpcmips/tx/txcom.c
831
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/hpcmips/tx/txcom.c
832
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/hpcmips/tx/txcom.c
833
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/hpcmips/tx/txcom.c
835
ttychars(tp);
sys/arch/hpcmips/tx/txcom.c
836
ttsetwater(tp);
sys/arch/hpcmips/tx/txcom.c
853
if ((err = ttyopen(tp, TXCOMDIALOUT(dev), ISSET(flag, O_NONBLOCK)))) {
sys/arch/hpcmips/tx/txcom.c
857
if ((err = (*tp->t_linesw->l_open)(dev, tp))) {
sys/arch/hpcmips/tx/txcom.c
865
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/hpcmips/tx/txcom.c
881
struct tty *tp = sc->sc_tty;
sys/arch/hpcmips/tx/txcom.c
884
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/arch/hpcmips/tx/txcom.c
887
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/hpcmips/tx/txcom.c
888
ttyclose(tp);
sys/arch/hpcmips/tx/txcom.c
890
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/hpcmips/tx/txcom.c
906
struct tty *tp = sc->sc_tty;
sys/arch/hpcmips/tx/txcom.c
908
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/arch/hpcmips/tx/txcom.c
915
struct tty *tp = sc->sc_tty;
sys/arch/hpcmips/tx/txcom.c
917
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/arch/hpcmips/tx/txcom.c
924
struct tty *tp = sc->sc_tty;
sys/arch/hpcmips/tx/txcom.c
926
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/hpcmips/tx/txcom.c
941
struct tty *tp = sc->sc_tty;
sys/arch/hpcmips/tx/txcom.c
944
err = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/hpcmips/tx/txcom.c
949
err = ttioctl(tp, cmd, data, flag, l);
sys/arch/hpcmips/tx/txcom.c
985
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/hppa/dev/pdc.c
265
struct tty *tp;
sys/arch/hppa/dev/pdc.c
276
tp = sc->sc_tty;
sys/arch/hppa/dev/pdc.c
278
tp = tty_alloc();
sys/arch/hppa/dev/pdc.c
279
sc->sc_tty = tp;
sys/arch/hppa/dev/pdc.c
280
tty_attach(tp);
sys/arch/hppa/dev/pdc.c
283
tp->t_oproc = pdcstart;
sys/arch/hppa/dev/pdc.c
284
tp->t_param = pdcparam;
sys/arch/hppa/dev/pdc.c
285
tp->t_dev = dev;
sys/arch/hppa/dev/pdc.c
287
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp)) {
sys/arch/hppa/dev/pdc.c
292
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/arch/hppa/dev/pdc.c
293
tp->t_state |= TS_CARR_ON;
sys/arch/hppa/dev/pdc.c
294
ttychars(tp);
sys/arch/hppa/dev/pdc.c
295
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/hppa/dev/pdc.c
296
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/hppa/dev/pdc.c
297
tp->t_cflag = TTYDEF_CFLAG|CLOCAL;
sys/arch/hppa/dev/pdc.c
298
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/hppa/dev/pdc.c
299
tp->t_ispeed = tp->t_ospeed = 9600;
sys/arch/hppa/dev/pdc.c
300
ttsetwater(tp);
sys/arch/hppa/dev/pdc.c
305
tp->t_state |= TS_CARR_ON;
sys/arch/hppa/dev/pdc.c
309
error = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/hppa/dev/pdc.c
319
struct tty *tp;
sys/arch/hppa/dev/pdc.c
326
tp = sc->sc_tty;
sys/arch/hppa/dev/pdc.c
328
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/hppa/dev/pdc.c
329
ttyclose(tp);
sys/arch/hppa/dev/pdc.c
336
struct tty *tp;
sys/arch/hppa/dev/pdc.c
343
tp = sc->sc_tty;
sys/arch/hppa/dev/pdc.c
344
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/arch/hppa/dev/pdc.c
350
struct tty *tp;
sys/arch/hppa/dev/pdc.c
357
tp = sc->sc_tty;
sys/arch/hppa/dev/pdc.c
358
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/arch/hppa/dev/pdc.c
365
struct tty *tp = sc->sc_tty;
sys/arch/hppa/dev/pdc.c
367
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/hppa/dev/pdc.c
374
struct tty *tp;
sys/arch/hppa/dev/pdc.c
381
tp = sc->sc_tty;
sys/arch/hppa/dev/pdc.c
382
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/hppa/dev/pdc.c
385
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/hppa/dev/pdc.c
393
pdcparam(struct tty *tp, struct termios *t)
sys/arch/hppa/dev/pdc.c
400
pdcstart(struct tty *tp)
sys/arch/hppa/dev/pdc.c
405
if (tp->t_state & (TS_TTSTOP | TS_BUSY)) {
sys/arch/hppa/dev/pdc.c
409
ttypull(tp);
sys/arch/hppa/dev/pdc.c
410
tp->t_state |= TS_BUSY;
sys/arch/hppa/dev/pdc.c
411
while (tp->t_outq.c_cc != 0)
sys/arch/hppa/dev/pdc.c
412
pdccnputc(tp->t_dev, getc(&tp->t_outq));
sys/arch/hppa/dev/pdc.c
413
tp->t_state &= ~TS_BUSY;
sys/arch/hppa/dev/pdc.c
418
pdcstop(struct tty *tp, int flag)
sys/arch/hppa/dev/pdc.c
423
if (tp->t_state & TS_BUSY)
sys/arch/hppa/dev/pdc.c
424
if ((tp->t_state & TS_TTSTOP) == 0)
sys/arch/hppa/dev/pdc.c
425
tp->t_state |= TS_FLUSH;
sys/arch/hppa/dev/pdc.c
433
struct tty *tp = sc->sc_tty;
sys/arch/hppa/dev/pdc.c
436
while (pdccnlookc(tp->t_dev, &c)) {
sys/arch/hppa/dev/pdc.c
437
cn_check_magic(tp->t_dev, c, pdc_cnm_state);
sys/arch/hppa/dev/pdc.c
438
if (tp->t_state & TS_ISOPEN)
sys/arch/hppa/dev/pdc.c
439
(*tp->t_linesw->l_rint)(c, tp);
sys/arch/ia64/disasm/disasm_decode.c
2524
const char *tp;
sys/arch/ia64/disasm/disasm_decode.c
2535
tp = b->b_templ;
sys/arch/ia64/disasm/disasm_decode.c
2538
while (ok && *tp != 0) {
sys/arch/ia64/disasm/disasm_decode.c
2539
switch (*tp++) {
sys/arch/ia64/ia64/db_interface.c
242
{"tp", DB_OFFSET(tf_special.tp), db_frame},
sys/arch/ia64/include/_regset.h
66
unsigned long tp;
sys/arch/ia64/stand/efi/libefi/time.c
166
OUT struct timeval *tp,
sys/arch/ia64/stand/efi/libefi/time.c
186
tp->tv_sec = EfiTimeToUnixTime( &EfiTime );
sys/arch/ia64/stand/efi/libefi/time.c
187
tp->tv_usec = 0; /* EfiTime.Nanosecond * 1000; */
sys/arch/luna68k/dev/siotty.c
174
struct tty *tp;
sys/arch/luna68k/dev/siotty.c
208
tp = tty_alloc();
sys/arch/luna68k/dev/siotty.c
209
tp->t_oproc = siostart;
sys/arch/luna68k/dev/siotty.c
210
tp->t_param = sioparam;
sys/arch/luna68k/dev/siotty.c
211
tp->t_hwiflow = NULL /* XXX siohwiflow XXX */;
sys/arch/luna68k/dev/siotty.c
213
tp->t_dev = cn_tab->cn_dev;
sys/arch/luna68k/dev/siotty.c
214
sc->sc_tty = tp;
sys/arch/luna68k/dev/siotty.c
216
tty_attach(tp);
sys/arch/luna68k/dev/siotty.c
287
struct tty *tp;
sys/arch/luna68k/dev/siotty.c
290
tp = sc->sc_tty;
sys/arch/luna68k/dev/siotty.c
294
siotty_rxsoft(sc, tp);
sys/arch/luna68k/dev/siotty.c
298
siotty_txsoft(sc, tp);
sys/arch/luna68k/dev/siotty.c
303
siotty_rxsoft(struct siotty_softc *sc, struct tty *tp)
sys/arch/luna68k/dev/siotty.c
327
(*tp->t_linesw->l_rint)(code, tp);
sys/arch/luna68k/dev/siotty.c
343
siotty_txsoft(struct siotty_softc *sc, struct tty *tp)
sys/arch/luna68k/dev/siotty.c
346
tp->t_state &= ~TS_BUSY;
sys/arch/luna68k/dev/siotty.c
347
if ((tp->t_state & TS_FLUSH) != 0)
sys/arch/luna68k/dev/siotty.c
348
tp->t_state &= ~TS_FLUSH;
sys/arch/luna68k/dev/siotty.c
350
ndflush(&tp->t_outq, (int)(sc->sc_tba - tp->t_outq.c_cf));
sys/arch/luna68k/dev/siotty.c
351
(*tp->t_linesw->l_start)(tp);
sys/arch/luna68k/dev/siotty.c
355
siostart(struct tty *tp)
sys/arch/luna68k/dev/siotty.c
362
sc = device_lookup_private(&siotty_cd, minor(tp->t_dev));
sys/arch/luna68k/dev/siotty.c
364
if ((tp->t_state & (TS_BUSY|TS_TIMEOUT|TS_TTSTOP)) != 0)
sys/arch/luna68k/dev/siotty.c
366
if (!ttypull(tp))
sys/arch/luna68k/dev/siotty.c
368
tp->t_state |= TS_BUSY;
sys/arch/luna68k/dev/siotty.c
370
tba = tp->t_outq.c_cf;
sys/arch/luna68k/dev/siotty.c
371
tbc = ndqb(&tp->t_outq, 0);
sys/arch/luna68k/dev/siotty.c
385
siostop(struct tty *tp, int flag)
sys/arch/luna68k/dev/siotty.c
390
if (TS_BUSY == (tp->t_state & (TS_BUSY|TS_TTSTOP))) {
sys/arch/luna68k/dev/siotty.c
394
tp->t_state |= TS_FLUSH;
sys/arch/luna68k/dev/siotty.c
400
sioparam(struct tty *tp, struct termios *t)
sys/arch/luna68k/dev/siotty.c
405
sc = device_lookup_private(&siotty_cd, minor(tp->t_dev));
sys/arch/luna68k/dev/siotty.c
424
if (tp->t_ospeed == t->c_ospeed && tp->t_cflag == t->c_cflag)
sys/arch/luna68k/dev/siotty.c
427
tp->t_ispeed = t->c_ispeed;
sys/arch/luna68k/dev/siotty.c
428
tp->t_ospeed = t->c_ospeed;
sys/arch/luna68k/dev/siotty.c
429
tp->t_cflag = t->c_cflag;
sys/arch/luna68k/dev/siotty.c
433
switch (tp->t_cflag & CSIZE) {
sys/arch/luna68k/dev/siotty.c
443
if ((tp->t_cflag & PARENB) != 0) {
sys/arch/luna68k/dev/siotty.c
445
if ((tp->t_cflag & PARODD) == 0)
sys/arch/luna68k/dev/siotty.c
448
wr4 |= (tp->t_cflag & CSTOPB) ? WR4_STOP2 : WR4_STOP1;
sys/arch/luna68k/dev/siotty.c
513
struct tty *tp;
sys/arch/luna68k/dev/siotty.c
521
tp = sc->sc_tty;
sys/arch/luna68k/dev/siotty.c
523
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/luna68k/dev/siotty.c
526
if ((tp->t_state & TS_ISOPEN) == 0 && tp->t_wopen == 0) {
sys/arch/luna68k/dev/siotty.c
529
tp->t_dev = dev;
sys/arch/luna68k/dev/siotty.c
532
tp->t_ospeed = 0; /* force register update */
sys/arch/luna68k/dev/siotty.c
533
(void)sioparam(tp, &t);
sys/arch/luna68k/dev/siotty.c
534
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/luna68k/dev/siotty.c
535
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/luna68k/dev/siotty.c
536
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/luna68k/dev/siotty.c
537
ttychars(tp);
sys/arch/luna68k/dev/siotty.c
538
ttsetwater(tp);
sys/arch/luna68k/dev/siotty.c
543
(tp->t_cflag & MDMBUF) != 0 ||
sys/arch/luna68k/dev/siotty.c
545
tp->t_state |= TS_CARR_ON;
sys/arch/luna68k/dev/siotty.c
547
tp->t_state &= ~TS_CARR_ON;
sys/arch/luna68k/dev/siotty.c
549
tp->t_state |= TS_CARR_ON; /* assume detected all the time */
sys/arch/luna68k/dev/siotty.c
558
error = ttyopen(tp, 0, (flag & O_NONBLOCK));
sys/arch/luna68k/dev/siotty.c
561
return (*tp->t_linesw->l_open)(dev, tp);
sys/arch/luna68k/dev/siotty.c
568
struct tty *tp = sc->sc_tty;
sys/arch/luna68k/dev/siotty.c
571
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/luna68k/dev/siotty.c
576
if ((tp->t_cflag & HUPCL) != 0 ||
sys/arch/luna68k/dev/siotty.c
577
tp->t_wopen || (tp->t_state & TS_ISOPEN) == 0) {
sys/arch/luna68k/dev/siotty.c
584
return ttyclose(tp);
sys/arch/luna68k/dev/siotty.c
591
struct tty *tp;
sys/arch/luna68k/dev/siotty.c
594
tp = sc->sc_tty;
sys/arch/luna68k/dev/siotty.c
595
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/arch/luna68k/dev/siotty.c
602
struct tty *tp;
sys/arch/luna68k/dev/siotty.c
605
tp = sc->sc_tty;
sys/arch/luna68k/dev/siotty.c
606
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/arch/luna68k/dev/siotty.c
613
struct tty *tp;
sys/arch/luna68k/dev/siotty.c
616
tp = sc->sc_tty;
sys/arch/luna68k/dev/siotty.c
617
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/luna68k/dev/siotty.c
624
struct tty *tp;
sys/arch/luna68k/dev/siotty.c
628
tp = sc->sc_tty;
sys/arch/luna68k/dev/siotty.c
629
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/luna68k/dev/siotty.c
633
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/macppc/dev/fcu.c
206
char loc[256], tp[256], descr[32], type[32];
sys/arch/macppc/dev/fcu.c
213
OF_getprop(phandle, "hwctrl-type", tp, 1024);
sys/arch/macppc/dev/fcu.c
219
strcpy(type, &tp[tidx]);
sys/arch/mips/adm5120/dev/uart.c
129
struct tty *tp;
sys/arch/mips/adm5120/dev/uart.c
150
tp = tty_alloc();
sys/arch/mips/adm5120/dev/uart.c
151
tp->t_oproc = uart_start;
sys/arch/mips/adm5120/dev/uart.c
152
tp->t_param = uart_param;
sys/arch/mips/adm5120/dev/uart.c
153
sc->sc_tty = tp;
sys/arch/mips/adm5120/dev/uart.c
154
tp->t_dev = makedev(maj, minor);
sys/arch/mips/adm5120/dev/uart.c
155
tty_attach(tp);
sys/arch/mips/adm5120/dev/uart.c
158
cn_tab->cn_dev = tp->t_dev;
sys/arch/mips/adm5120/dev/uart.c
203
struct tty *tp = sc->sc_tty;
sys/arch/mips/adm5120/dev/uart.c
208
tp->t_dev = dev;
sys/arch/mips/adm5120/dev/uart.c
209
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/arch/mips/adm5120/dev/uart.c
210
tp->t_state |= TS_CARR_ON;
sys/arch/mips/adm5120/dev/uart.c
211
ttychars(tp);
sys/arch/mips/adm5120/dev/uart.c
212
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/mips/adm5120/dev/uart.c
213
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/mips/adm5120/dev/uart.c
214
tp->t_cflag = TTYDEF_CFLAG | CLOCAL;
sys/arch/mips/adm5120/dev/uart.c
215
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/mips/adm5120/dev/uart.c
216
tp->t_ispeed = tp->t_ospeed = 115200;
sys/arch/mips/adm5120/dev/uart.c
217
ttsetwater(tp);
sys/arch/mips/adm5120/dev/uart.c
219
tp) != 0) {
sys/arch/mips/adm5120/dev/uart.c
226
error = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/mips/adm5120/dev/uart.c
235
struct tty *tp = sc->sc_tty;
sys/arch/mips/adm5120/dev/uart.c
237
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/mips/adm5120/dev/uart.c
238
ttyclose(tp);
sys/arch/mips/adm5120/dev/uart.c
247
struct tty *tp = sc->sc_tty;
sys/arch/mips/adm5120/dev/uart.c
249
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/arch/mips/adm5120/dev/uart.c
256
struct tty *tp = sc->sc_tty;
sys/arch/mips/adm5120/dev/uart.c
258
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/arch/mips/adm5120/dev/uart.c
265
struct tty *tp = sc->sc_tty;
sys/arch/mips/adm5120/dev/uart.c
267
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/mips/adm5120/dev/uart.c
274
struct tty *tp = sc->sc_tty;
sys/arch/mips/adm5120/dev/uart.c
277
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/mips/adm5120/dev/uart.c
280
return (ttioctl(tp, cmd, data, flag, l));
sys/arch/mips/adm5120/dev/uart.c
284
uart_param(struct tty *tp, struct termios *t)
sys/arch/mips/adm5120/dev/uart.c
300
uart_start(struct tty *tp)
sys/arch/mips/adm5120/dev/uart.c
305
if (tp->t_state & (TS_TTSTOP | TS_BUSY))
sys/arch/mips/adm5120/dev/uart.c
307
ttypull(tp);
sys/arch/mips/adm5120/dev/uart.c
308
tp->t_state |= TS_BUSY;
sys/arch/mips/adm5120/dev/uart.c
309
while (tp->t_outq.c_cc != 0) {
sys/arch/mips/adm5120/dev/uart.c
310
cnt = ndqb(&tp->t_outq, 0);
sys/arch/mips/adm5120/dev/uart.c
312
uart_cnputc(0,tp->t_outq.c_cf[i]);
sys/arch/mips/adm5120/dev/uart.c
313
ndflush(&tp->t_outq, cnt);
sys/arch/mips/adm5120/dev/uart.c
315
tp->t_state &= ~TS_BUSY;
sys/arch/mips/adm5120/dev/uart.c
321
uart_stop(struct tty *tp, int flag)
sys/arch/mips/adm5120/dev/uart.c
326
if (tp->t_state & TS_BUSY)
sys/arch/mips/adm5120/dev/uart.c
327
if ((tp->t_state & TS_TTSTOP) == 0)
sys/arch/mips/adm5120/dev/uart.c
328
tp->t_state |= TS_FLUSH;
sys/arch/mips/adm5120/dev/uart.c
336
struct tty *tp = sc->sc_tty;
sys/arch/mips/adm5120/dev/uart.c
346
if (tp->t_state & TS_ISOPEN)
sys/arch/mips/adm5120/dev/uart.c
347
(*tp->t_linesw->l_rint)(c, tp);
sys/arch/mips/sibyte/dev/sbjcn.c
1025
(void) (*tp->t_linesw->l_modem)(tp,
sys/arch/mips/sibyte/dev/sbjcn.c
1036
sbjcn_start(tp);
sys/arch/mips/sibyte/dev/sbjcn.c
1067
sbjcn_hwiflow(struct tty *tp, int block)
sys/arch/mips/sibyte/dev/sbjcn.c
1069
struct sbjcn_softc *sc = device_lookup_private(&sbjcn_cd, SBJCN_UNIT(tp->t_dev));
sys/arch/mips/sibyte/dev/sbjcn.c
1070
struct sbjcn_channel *ch = &sc->sc_channels[SBJCN_CHAN(tp->t_dev)];
sys/arch/mips/sibyte/dev/sbjcn.c
1116
sbjcn_start(struct tty *tp)
sys/arch/mips/sibyte/dev/sbjcn.c
1118
struct sbjcn_softc *sc = device_lookup_private(&sbjcn_cd, SBJCN_UNIT(tp->t_dev));
sys/arch/mips/sibyte/dev/sbjcn.c
1119
struct sbjcn_channel *ch = &sc->sc_channels[SBJCN_CHAN(tp->t_dev)];
sys/arch/mips/sibyte/dev/sbjcn.c
1123
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/arch/mips/sibyte/dev/sbjcn.c
1127
if (!ttypull(tp))
sys/arch/mips/sibyte/dev/sbjcn.c
1135
tba = tp->t_outq.c_cf;
sys/arch/mips/sibyte/dev/sbjcn.c
1136
tbc = ndqb(&tp->t_outq, 0);
sys/arch/mips/sibyte/dev/sbjcn.c
1144
SET(tp->t_state, TS_BUSY);
sys/arch/mips/sibyte/dev/sbjcn.c
1176
sbjcnstop(struct tty *tp, int flag)
sys/arch/mips/sibyte/dev/sbjcn.c
1178
struct sbjcn_softc *sc = device_lookup_private(&sbjcn_cd, SBJCN_UNIT(tp->t_dev));
sys/arch/mips/sibyte/dev/sbjcn.c
1179
struct sbjcn_channel *ch = &sc->sc_channels[SBJCN_CHAN(tp->t_dev)];
sys/arch/mips/sibyte/dev/sbjcn.c
1183
if (ISSET(tp->t_state, TS_BUSY)) {
sys/arch/mips/sibyte/dev/sbjcn.c
1187
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/arch/mips/sibyte/dev/sbjcn.c
1188
SET(tp->t_state, TS_FLUSH);
sys/arch/mips/sibyte/dev/sbjcn.c
1216
sbjcn_rxsoft(struct sbjcn_channel *ch, struct tty *tp)
sys/arch/mips/sibyte/dev/sbjcn.c
1218
int (*rint)(int c, struct tty *tp) = tp->t_linesw->l_rint;
sys/arch/mips/sibyte/dev/sbjcn.c
1251
if ((*rint)(code, tp) == -1) {
sys/arch/mips/sibyte/dev/sbjcn.c
1305
sbjcn_txsoft(struct sbjcn_channel *ch, struct tty *tp)
sys/arch/mips/sibyte/dev/sbjcn.c
1308
CLR(tp->t_state, TS_BUSY);
sys/arch/mips/sibyte/dev/sbjcn.c
1309
if (ISSET(tp->t_state, TS_FLUSH))
sys/arch/mips/sibyte/dev/sbjcn.c
1310
CLR(tp->t_state, TS_FLUSH);
sys/arch/mips/sibyte/dev/sbjcn.c
1312
ndflush(&tp->t_outq, (int)(ch->ch_tba - tp->t_outq.c_cf));
sys/arch/mips/sibyte/dev/sbjcn.c
1313
(*tp->t_linesw->l_start)(tp);
sys/arch/mips/sibyte/dev/sbjcn.c
1317
sbjcn_stsoft(struct sbjcn_channel *ch, struct tty *tp)
sys/arch/mips/sibyte/dev/sbjcn.c
1332
(void) (*tp->t_linesw->l_modem)(tp,
sys/arch/mips/sibyte/dev/sbjcn.c
1340
(*tp->t_linesw->l_start)(tp);
sys/arch/mips/sibyte/dev/sbjcn.c
1435
struct tty *tp = ch->ch_tty;
sys/arch/mips/sibyte/dev/sbjcn.c
1443
sbjcn_rxsoft(ch, tp);
sys/arch/mips/sibyte/dev/sbjcn.c
1449
sbjcn_txsoft(ch, tp);
sys/arch/mips/sibyte/dev/sbjcn.c
278
struct tty *tp;
sys/arch/mips/sibyte/dev/sbjcn.c
319
tp = tty_alloc();
sys/arch/mips/sibyte/dev/sbjcn.c
320
tp->t_oproc = sbjcn_start;
sys/arch/mips/sibyte/dev/sbjcn.c
321
tp->t_param = sbjcn_param;
sys/arch/mips/sibyte/dev/sbjcn.c
322
tp->t_hwiflow = sbjcn_hwiflow;
sys/arch/mips/sibyte/dev/sbjcn.c
324
ch->ch_tty = tp;
sys/arch/mips/sibyte/dev/sbjcn.c
328
tty_attach(tp);
sys/arch/mips/sibyte/dev/sbjcn.c
400
struct tty *tp = ch->ch_tty;
sys/arch/mips/sibyte/dev/sbjcn.c
405
ISSET(tp->t_cflag, CLOCAL) ? "+" : "-",
sys/arch/mips/sibyte/dev/sbjcn.c
407
ISSET(tp->t_state, TS_CARR_ON) ? "+" : "-",
sys/arch/mips/sibyte/dev/sbjcn.c
414
ISSET(tp->t_cflag, CRTSCTS) ? "+" : "-",
sys/arch/mips/sibyte/dev/sbjcn.c
416
ISSET(tp->t_state, TS_TTSTOP) ? "+" : "-",
sys/arch/mips/sibyte/dev/sbjcn.c
463
struct tty *tp = ch->ch_tty;
sys/arch/mips/sibyte/dev/sbjcn.c
479
if (ISSET(tp->t_cflag, HUPCL)) {
sys/arch/mips/sibyte/dev/sbjcn.c
501
struct tty *tp;
sys/arch/mips/sibyte/dev/sbjcn.c
521
tp = ch->ch_tty;
sys/arch/mips/sibyte/dev/sbjcn.c
523
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/mips/sibyte/dev/sbjcn.c
531
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/mips/sibyte/dev/sbjcn.c
534
tp->t_dev = dev;
sys/arch/mips/sibyte/dev/sbjcn.c
565
tp->t_ospeed = 0;
sys/arch/mips/sibyte/dev/sbjcn.c
566
(void) sbjcn_param(tp, &t);
sys/arch/mips/sibyte/dev/sbjcn.c
567
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/mips/sibyte/dev/sbjcn.c
568
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/mips/sibyte/dev/sbjcn.c
569
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/mips/sibyte/dev/sbjcn.c
570
ttychars(tp);
sys/arch/mips/sibyte/dev/sbjcn.c
571
ttsetwater(tp);
sys/arch/mips/sibyte/dev/sbjcn.c
601
error = ttyopen(tp, SBJCN_DIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/arch/mips/sibyte/dev/sbjcn.c
605
error = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/mips/sibyte/dev/sbjcn.c
612
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/mips/sibyte/dev/sbjcn.c
628
struct tty *tp = ch->ch_tty;
sys/arch/mips/sibyte/dev/sbjcn.c
631
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/arch/mips/sibyte/dev/sbjcn.c
634
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/mips/sibyte/dev/sbjcn.c
635
ttyclose(tp);
sys/arch/mips/sibyte/dev/sbjcn.c
637
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/mips/sibyte/dev/sbjcn.c
654
struct tty *tp = ch->ch_tty;
sys/arch/mips/sibyte/dev/sbjcn.c
656
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/arch/mips/sibyte/dev/sbjcn.c
664
struct tty *tp = ch->ch_tty;
sys/arch/mips/sibyte/dev/sbjcn.c
666
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/arch/mips/sibyte/dev/sbjcn.c
674
struct tty *tp = ch->ch_tty;
sys/arch/mips/sibyte/dev/sbjcn.c
676
return (tp);
sys/arch/mips/sibyte/dev/sbjcn.c
684
struct tty *tp = ch->ch_tty;
sys/arch/mips/sibyte/dev/sbjcn.c
688
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, p);
sys/arch/mips/sibyte/dev/sbjcn.c
692
error = ttioctl(tp, cmd, data, flag, p);
sys/arch/mips/sibyte/dev/sbjcn.c
723
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/mips/sibyte/dev/sbjcn.c
896
sbjcn_param(struct tty *tp, struct termios *t)
sys/arch/mips/sibyte/dev/sbjcn.c
898
struct sbjcn_softc *sc = device_lookup_private(&sbjcn_cd, SBJCN_UNIT(tp->t_dev));
sys/arch/mips/sibyte/dev/sbjcn.c
899
struct sbjcn_channel *ch = &sc->sc_channels[SBJCN_CHAN(tp->t_dev)];
sys/arch/mips/sibyte/dev/sbjcn.c
930
if (tp->t_ospeed == t->c_ospeed &&
sys/arch/mips/sibyte/dev/sbjcn.c
931
tp->t_cflag == t->c_cflag)
sys/arch/mips/sibyte/dev/sbjcn.c
988
tp->t_ispeed = 0;
sys/arch/mips/sibyte/dev/sbjcn.c
989
tp->t_ospeed = t->c_ospeed;
sys/arch/mips/sibyte/dev/sbjcn.c
990
tp->t_cflag = t->c_cflag;
sys/arch/mips/sibyte/dev/sbscn.c
1013
if (tp->t_ospeed == t->c_ospeed &&
sys/arch/mips/sibyte/dev/sbscn.c
1014
tp->t_cflag == t->c_cflag)
sys/arch/mips/sibyte/dev/sbscn.c
1071
tp->t_ispeed = 0;
sys/arch/mips/sibyte/dev/sbscn.c
1072
tp->t_ospeed = t->c_ospeed;
sys/arch/mips/sibyte/dev/sbscn.c
1073
tp->t_cflag = t->c_cflag;
sys/arch/mips/sibyte/dev/sbscn.c
1108
(void) (*tp->t_linesw->l_modem)(tp,
sys/arch/mips/sibyte/dev/sbscn.c
1119
sbscn_start(tp);
sys/arch/mips/sibyte/dev/sbscn.c
1175
sbscn_hwiflow(struct tty *tp, int block)
sys/arch/mips/sibyte/dev/sbscn.c
1177
struct sbscn_softc *sc = device_lookup_private(&sbscn_cd, SBSCN_UNIT(tp->t_dev));
sys/arch/mips/sibyte/dev/sbscn.c
1178
struct sbscn_channel *ch = &sc->sc_channels[SBSCN_CHAN(tp->t_dev)];
sys/arch/mips/sibyte/dev/sbscn.c
1225
sbscn_start(struct tty *tp)
sys/arch/mips/sibyte/dev/sbscn.c
1227
struct sbscn_softc *sc = device_lookup_private(&sbscn_cd, SBSCN_UNIT(tp->t_dev));
sys/arch/mips/sibyte/dev/sbscn.c
1228
struct sbscn_channel *ch = &sc->sc_channels[SBSCN_CHAN(tp->t_dev)];
sys/arch/mips/sibyte/dev/sbscn.c
1232
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/arch/mips/sibyte/dev/sbscn.c
1236
if (!ttypull(tp))
sys/arch/mips/sibyte/dev/sbscn.c
1244
tba = tp->t_outq.c_cf;
sys/arch/mips/sibyte/dev/sbscn.c
1245
tbc = ndqb(&tp->t_outq, 0);
sys/arch/mips/sibyte/dev/sbscn.c
1253
SET(tp->t_state, TS_BUSY);
sys/arch/mips/sibyte/dev/sbscn.c
1281
sbscnstop(struct tty *tp, int flag)
sys/arch/mips/sibyte/dev/sbscn.c
1283
struct sbscn_softc *sc = device_lookup_private(&sbscn_cd, SBSCN_UNIT(tp->t_dev));
sys/arch/mips/sibyte/dev/sbscn.c
1284
struct sbscn_channel *ch = &sc->sc_channels[SBSCN_CHAN(tp->t_dev)];
sys/arch/mips/sibyte/dev/sbscn.c
1288
if (ISSET(tp->t_state, TS_BUSY)) {
sys/arch/mips/sibyte/dev/sbscn.c
1292
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/arch/mips/sibyte/dev/sbscn.c
1293
SET(tp->t_state, TS_FLUSH);
sys/arch/mips/sibyte/dev/sbscn.c
1321
sbscn_rxsoft(struct sbscn_channel *ch, struct tty *tp)
sys/arch/mips/sibyte/dev/sbscn.c
1323
int (*rint)(int, struct tty *) = tp->t_linesw->l_rint;
sys/arch/mips/sibyte/dev/sbscn.c
1356
if ((*rint)(code, tp) == -1) {
sys/arch/mips/sibyte/dev/sbscn.c
1411
sbscn_txsoft(struct sbscn_channel *ch, struct tty *tp)
sys/arch/mips/sibyte/dev/sbscn.c
1414
CLR(tp->t_state, TS_BUSY);
sys/arch/mips/sibyte/dev/sbscn.c
1415
if (ISSET(tp->t_state, TS_FLUSH))
sys/arch/mips/sibyte/dev/sbscn.c
1416
CLR(tp->t_state, TS_FLUSH);
sys/arch/mips/sibyte/dev/sbscn.c
1418
ndflush(&tp->t_outq, (int)(ch->ch_tba - tp->t_outq.c_cf));
sys/arch/mips/sibyte/dev/sbscn.c
1419
(*tp->t_linesw->l_start)(tp);
sys/arch/mips/sibyte/dev/sbscn.c
1423
sbscn_stsoft(struct sbscn_channel *ch, struct tty *tp)
sys/arch/mips/sibyte/dev/sbscn.c
1438
(void) (*tp->t_linesw->l_modem)(tp,
sys/arch/mips/sibyte/dev/sbscn.c
1446
(*tp->t_linesw->l_start)(tp);
sys/arch/mips/sibyte/dev/sbscn.c
1462
struct tty *tp = ch->ch_tty;
sys/arch/mips/sibyte/dev/sbscn.c
1466
sbscn_rxsoft(ch, tp);
sys/arch/mips/sibyte/dev/sbscn.c
1471
sbscn_stsoft(ch, tp);
sys/arch/mips/sibyte/dev/sbscn.c
1476
sbscn_txsoft(ch, tp);
sys/arch/mips/sibyte/dev/sbscn.c
306
struct tty *tp;
sys/arch/mips/sibyte/dev/sbscn.c
349
tp = tty_alloc();
sys/arch/mips/sibyte/dev/sbscn.c
350
tp->t_oproc = sbscn_start;
sys/arch/mips/sibyte/dev/sbscn.c
351
tp->t_param = sbscn_param;
sys/arch/mips/sibyte/dev/sbscn.c
352
tp->t_hwiflow = sbscn_hwiflow;
sys/arch/mips/sibyte/dev/sbscn.c
354
ch->ch_tty = tp;
sys/arch/mips/sibyte/dev/sbscn.c
358
tty_attach(tp);
sys/arch/mips/sibyte/dev/sbscn.c
436
struct tty *tp = ch->ch_tty;
sys/arch/mips/sibyte/dev/sbscn.c
441
ISSET(tp->t_cflag, CLOCAL) ? "+" : "-",
sys/arch/mips/sibyte/dev/sbscn.c
443
ISSET(tp->t_state, TS_CARR_ON) ? "+" : "-",
sys/arch/mips/sibyte/dev/sbscn.c
450
ISSET(tp->t_cflag, CRTSCTS) ? "+" : "-",
sys/arch/mips/sibyte/dev/sbscn.c
452
ISSET(tp->t_state, TS_TTSTOP) ? "+" : "-",
sys/arch/mips/sibyte/dev/sbscn.c
506
struct tty *tp = ch->ch_tty;
sys/arch/mips/sibyte/dev/sbscn.c
523
if (ISSET(tp->t_cflag, HUPCL)) {
sys/arch/mips/sibyte/dev/sbscn.c
553
struct tty *tp;
sys/arch/mips/sibyte/dev/sbscn.c
572
tp = ch->ch_tty;
sys/arch/mips/sibyte/dev/sbscn.c
574
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/mips/sibyte/dev/sbscn.c
582
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/mips/sibyte/dev/sbscn.c
585
tp->t_dev = dev;
sys/arch/mips/sibyte/dev/sbscn.c
621
tp->t_ospeed = 0;
sys/arch/mips/sibyte/dev/sbscn.c
622
(void) sbscn_param(tp, &t);
sys/arch/mips/sibyte/dev/sbscn.c
623
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/mips/sibyte/dev/sbscn.c
624
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/mips/sibyte/dev/sbscn.c
625
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/mips/sibyte/dev/sbscn.c
626
ttychars(tp);
sys/arch/mips/sibyte/dev/sbscn.c
627
ttsetwater(tp);
sys/arch/mips/sibyte/dev/sbscn.c
657
error = ttyopen(tp, SBSCN_DIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/arch/mips/sibyte/dev/sbscn.c
661
error = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/mips/sibyte/dev/sbscn.c
668
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/mips/sibyte/dev/sbscn.c
684
struct tty *tp = ch->ch_tty;
sys/arch/mips/sibyte/dev/sbscn.c
687
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/arch/mips/sibyte/dev/sbscn.c
690
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/mips/sibyte/dev/sbscn.c
691
ttyclose(tp);
sys/arch/mips/sibyte/dev/sbscn.c
693
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/mips/sibyte/dev/sbscn.c
710
struct tty *tp = ch->ch_tty;
sys/arch/mips/sibyte/dev/sbscn.c
712
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/arch/mips/sibyte/dev/sbscn.c
720
struct tty *tp = ch->ch_tty;
sys/arch/mips/sibyte/dev/sbscn.c
722
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/arch/mips/sibyte/dev/sbscn.c
730
struct tty *tp = ch->ch_tty;
sys/arch/mips/sibyte/dev/sbscn.c
732
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/mips/sibyte/dev/sbscn.c
740
struct tty *tp = ch->ch_tty;
sys/arch/mips/sibyte/dev/sbscn.c
742
return (tp);
sys/arch/mips/sibyte/dev/sbscn.c
750
struct tty *tp = ch->ch_tty;
sys/arch/mips/sibyte/dev/sbscn.c
754
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/mips/sibyte/dev/sbscn.c
758
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/mips/sibyte/dev/sbscn.c
789
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/mips/sibyte/dev/sbscn.c
979
sbscn_param(struct tty *tp, struct termios *t)
sys/arch/mips/sibyte/dev/sbscn.c
981
struct sbscn_softc *sc = device_lookup_private(&sbscn_cd, SBSCN_UNIT(tp->t_dev));
sys/arch/mips/sibyte/dev/sbscn.c
982
struct sbscn_channel *ch = &sc->sc_channels[SBSCN_CHAN(tp->t_dev)];
sys/arch/news68k/news68k/romcons.c
142
struct tty *tp;
sys/arch/news68k/news68k/romcons.c
147
if ((tp = sc->sc_tty) == 0)
sys/arch/news68k/news68k/romcons.c
148
sc->sc_tty = tp = tty_alloc();
sys/arch/news68k/news68k/romcons.c
149
tp->t_oproc = romcons_start;
sys/arch/news68k/news68k/romcons.c
150
tp->t_param = romcons_param;
sys/arch/news68k/news68k/romcons.c
151
tp->t_dev = dev;
sys/arch/news68k/news68k/romcons.c
152
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/news68k/news68k/romcons.c
154
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/arch/news68k/news68k/romcons.c
155
ttychars(tp);
sys/arch/news68k/news68k/romcons.c
156
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/news68k/news68k/romcons.c
157
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/news68k/news68k/romcons.c
158
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/news68k/news68k/romcons.c
159
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/news68k/news68k/romcons.c
160
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/arch/news68k/news68k/romcons.c
161
romcons_param(tp, &tp->t_termios);
sys/arch/news68k/news68k/romcons.c
162
ttsetwater(tp);
sys/arch/news68k/news68k/romcons.c
164
tp->t_state |= TS_CARR_ON;
sys/arch/news68k/news68k/romcons.c
171
return (*tp->t_linesw->l_open)(dev, tp);
sys/arch/news68k/news68k/romcons.c
178
struct tty *tp;
sys/arch/news68k/news68k/romcons.c
181
tp = sc->sc_tty;
sys/arch/news68k/news68k/romcons.c
184
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/news68k/news68k/romcons.c
185
ttyclose(tp);
sys/arch/news68k/news68k/romcons.c
193
struct tty *tp;
sys/arch/news68k/news68k/romcons.c
196
tp = sc->sc_tty;
sys/arch/news68k/news68k/romcons.c
198
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/arch/news68k/news68k/romcons.c
205
struct tty *tp;
sys/arch/news68k/news68k/romcons.c
208
tp = sc->sc_tty;
sys/arch/news68k/news68k/romcons.c
209
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/arch/news68k/news68k/romcons.c
216
struct tty *tp;
sys/arch/news68k/news68k/romcons.c
219
tp = sc->sc_tty;
sys/arch/news68k/news68k/romcons.c
220
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/news68k/news68k/romcons.c
226
struct tty *tp;
sys/arch/news68k/news68k/romcons.c
230
tp = sc->sc_tty;
sys/arch/news68k/news68k/romcons.c
231
if ((error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l)) !=
sys/arch/news68k/news68k/romcons.c
234
return ttioctl(tp, cmd, data, flag, l);
sys/arch/news68k/news68k/romcons.c
247
romcons_start(struct tty *tp)
sys/arch/news68k/news68k/romcons.c
253
if (tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP)) {
sys/arch/news68k/news68k/romcons.c
257
tp->t_state |= TS_BUSY;
sys/arch/news68k/news68k/romcons.c
259
len = q_to_b(&tp->t_outq, buf, BURSTLEN);
sys/arch/news68k/news68k/romcons.c
264
tp->t_state &= ~TS_BUSY;
sys/arch/news68k/news68k/romcons.c
265
if (ttypull(tp)) {
sys/arch/news68k/news68k/romcons.c
266
tp->t_state |= TS_TIMEOUT;
sys/arch/news68k/news68k/romcons.c
267
callout_schedule(&tp->t_rstrt_ch, 1);
sys/arch/news68k/news68k/romcons.c
273
romcons_param(struct tty *tp, struct termios *t)
sys/arch/news68k/news68k/romcons.c
276
tp->t_ispeed = t->c_ispeed;
sys/arch/news68k/news68k/romcons.c
277
tp->t_ospeed = t->c_ospeed;
sys/arch/news68k/news68k/romcons.c
278
tp->t_cflag = t->c_cflag;
sys/arch/news68k/news68k/romcons.c
286
struct tty *tp = sc->sc_tty;
sys/arch/news68k/news68k/romcons.c
291
if (tp && (tp->t_state & TS_ISOPEN))
sys/arch/news68k/news68k/romcons.c
292
(*tp->t_linesw->l_rint)(ch, tp);
sys/arch/news68k/news68k/romcons.c
301
struct tty *tp;
sys/arch/news68k/news68k/romcons.c
304
tp = sc->sc_tty;
sys/arch/news68k/news68k/romcons.c
305
if (tp && (tp->t_state & TS_ISOPEN))
sys/arch/news68k/news68k/romcons.c
306
(*tp->t_linesw->l_rint)(ks, tp);
sys/arch/powerpc/mpc5200/psc.c
177
struct tty *tp;
sys/arch/powerpc/mpc5200/psc.c
247
tp = tty_alloc();
sys/arch/powerpc/mpc5200/psc.c
248
tp->t_oproc = pscstart;
sys/arch/powerpc/mpc5200/psc.c
249
tp->t_param = pscparam;
sys/arch/powerpc/mpc5200/psc.c
250
sc->sc_tty = tp;
sys/arch/powerpc/mpc5200/psc.c
252
tty_attach(tp);
sys/arch/powerpc/mpc5200/psc.c
261
tp->t_dev = cn_tab->cn_dev =
sys/arch/powerpc/mpc5200/psc.c
373
psc_rxsoft(struct psc_softc *sc, struct tty *tp)
sys/arch/powerpc/mpc5200/psc.c
375
int (*rint)(int, struct tty *) = tp->t_linesw->l_rint;
sys/arch/powerpc/mpc5200/psc.c
384
if ((*rint)(c, tp) == -1)
sys/arch/powerpc/mpc5200/psc.c
394
struct tty *tp = sc->sc_tty;
sys/arch/powerpc/mpc5200/psc.c
396
if (tp == NULL)
sys/arch/powerpc/mpc5200/psc.c
401
psc_rxsoft(sc, tp);
sys/arch/powerpc/mpc5200/psc.c
406
CLR(tp->t_state, TS_BUSY);
sys/arch/powerpc/mpc5200/psc.c
407
if (ISSET(tp->t_state, TS_FLUSH))
sys/arch/powerpc/mpc5200/psc.c
408
CLR(tp->t_state, TS_FLUSH);
sys/arch/powerpc/mpc5200/psc.c
410
ndflush(&tp->t_outq,
sys/arch/powerpc/mpc5200/psc.c
411
(int)(sc->sc_tba - tp->t_outq.c_cf));
sys/arch/powerpc/mpc5200/psc.c
412
(*tp->t_linesw->l_start)(tp);
sys/arch/powerpc/mpc5200/psc.c
418
pscstart(struct tty *tp)
sys/arch/powerpc/mpc5200/psc.c
420
struct psc_softc *sc = device_lookup_private(&psc_cd, PSCUNIT(tp->t_dev));
sys/arch/powerpc/mpc5200/psc.c
427
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/arch/powerpc/mpc5200/psc.c
429
if (!ttypull(tp))
sys/arch/powerpc/mpc5200/psc.c
432
SET(tp->t_state, TS_BUSY);
sys/arch/powerpc/mpc5200/psc.c
435
sc->sc_tba = tp->t_outq.c_cf;
sys/arch/powerpc/mpc5200/psc.c
436
sc->sc_tbc = ndqb(&tp->t_outq, 0);
sys/arch/powerpc/mpc5200/psc.c
448
pscparam(struct tty *tp, struct termios *t)
sys/arch/powerpc/mpc5200/psc.c
450
struct psc_softc *sc = device_lookup_private(&psc_cd, PSCUNIT(tp->t_dev));
sys/arch/powerpc/mpc5200/psc.c
460
tp->t_ispeed = t->c_ispeed;
sys/arch/powerpc/mpc5200/psc.c
461
tp->t_ospeed = t->c_ospeed;
sys/arch/powerpc/mpc5200/psc.c
462
tp->t_cflag = t->c_cflag;
sys/arch/powerpc/mpc5200/psc.c
471
struct tty *tp;
sys/arch/powerpc/mpc5200/psc.c
476
tp = sc->sc_tty;
sys/arch/powerpc/mpc5200/psc.c
478
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/powerpc/mpc5200/psc.c
482
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/powerpc/mpc5200/psc.c
485
tp->t_dev = dev;
sys/arch/powerpc/mpc5200/psc.c
495
tp->t_ospeed = 0;
sys/arch/powerpc/mpc5200/psc.c
496
(void)pscparam(tp, &t);
sys/arch/powerpc/mpc5200/psc.c
497
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/powerpc/mpc5200/psc.c
498
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/powerpc/mpc5200/psc.c
499
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/powerpc/mpc5200/psc.c
500
ttychars(tp);
sys/arch/powerpc/mpc5200/psc.c
501
ttsetwater(tp);
sys/arch/powerpc/mpc5200/psc.c
505
error = ttyopen(tp, 0, ISSET(flag, O_NONBLOCK));
sys/arch/powerpc/mpc5200/psc.c
509
return (*tp->t_linesw->l_open)(dev, tp);
sys/arch/powerpc/mpc5200/psc.c
516
struct tty *tp = sc->sc_tty;
sys/arch/powerpc/mpc5200/psc.c
518
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/arch/powerpc/mpc5200/psc.c
521
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/powerpc/mpc5200/psc.c
522
ttyclose(tp);
sys/arch/powerpc/mpc5200/psc.c
524
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/powerpc/mpc5200/psc.c
540
struct tty *tp = sc->sc_tty;
sys/arch/powerpc/mpc5200/psc.c
542
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/arch/powerpc/mpc5200/psc.c
549
struct tty *tp = sc->sc_tty;
sys/arch/powerpc/mpc5200/psc.c
551
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/arch/powerpc/mpc5200/psc.c
558
struct tty *tp = sc->sc_tty;
sys/arch/powerpc/mpc5200/psc.c
560
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/powerpc/mpc5200/psc.c
575
struct tty *tp = sc->sc_tty;
sys/arch/powerpc/mpc5200/psc.c
578
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/powerpc/mpc5200/psc.c
582
return ttioctl(tp, cmd, data, flag, l);
sys/arch/powerpc/mpc5200/psc.c
586
pscstop(struct tty *tp, int flag)
sys/arch/powerpc/mpc5200/psc.c
588
struct psc_softc *sc = device_lookup_private(&psc_cd, PSCUNIT(tp->t_dev));
sys/arch/powerpc/mpc5200/psc.c
594
if (ISSET(tp->t_state, TS_BUSY)) {
sys/arch/powerpc/mpc5200/psc.c
596
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/arch/powerpc/mpc5200/psc.c
597
SET(tp->t_state, TS_FLUSH);
sys/arch/powerpc/stand/mkbootimage/mkbootimage.c
692
struct timeval tp;
sys/arch/powerpc/stand/mkbootimage/mkbootimage.c
824
tp.tv_sec = (time_t)atoll(repro_timestamp);
sys/arch/powerpc/stand/mkbootimage/mkbootimage.c
825
tp.tv_usec = 0;
sys/arch/powerpc/stand/mkbootimage/mkbootimage.c
827
gettimeofday(&tp, 0);
sys/arch/powerpc/stand/mkbootimage/mkbootimage.c
830
(int32_t)sa_htobe32(tp.tv_sec);
sys/arch/sgimips/dev/scn.c
1074
struct tty *tp;
sys/arch/sgimips/dev/scn.c
1085
tp = sc->sc_tty;
sys/arch/sgimips/dev/scn.c
1086
if (!tp) {
sys/arch/sgimips/dev/scn.c
1087
tp = tty_alloc();
sys/arch/sgimips/dev/scn.c
1088
sc->sc_tty = sc->sc_duart->chan[sc->sc_channel].tty = tp;
sys/arch/sgimips/dev/scn.c
1089
tty_attach(tp);
sys/arch/sgimips/dev/scn.c
1092
tp->t_oproc = scnstart;
sys/arch/sgimips/dev/scn.c
1093
tp->t_param = scnparam;
sys/arch/sgimips/dev/scn.c
1094
tp->t_hwiflow = scnhwiflow;
sys/arch/sgimips/dev/scn.c
1095
tp->t_dev = dev;
sys/arch/sgimips/dev/scn.c
1097
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/sgimips/dev/scn.c
1100
ttylock(tp);
sys/arch/sgimips/dev/scn.c
1102
if ((tp->t_state & TS_ISOPEN) == 0 && tp->t_wopen == 0) {
sys/arch/sgimips/dev/scn.c
1103
ttychars(tp);
sys/arch/sgimips/dev/scn.c
1104
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/sgimips/dev/scn.c
1105
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/sgimips/dev/scn.c
1106
tp->t_cflag = SCNDEF_CFLAG;
sys/arch/sgimips/dev/scn.c
1111
tp->t_cflag |= CLOCAL;
sys/arch/sgimips/dev/scn.c
1113
tp->t_cflag |= CCTS_OFLOW | CRTS_IFLOW;
sys/arch/sgimips/dev/scn.c
1114
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/sgimips/dev/scn.c
1116
tp->t_ispeed = tp->t_ospeed = scnconsrate;
sys/arch/sgimips/dev/scn.c
1118
tp->t_ispeed = tp->t_ospeed = scndefaultrate;
sys/arch/sgimips/dev/scn.c
1119
scnparam(tp, &tp->t_termios);
sys/arch/sgimips/dev/scn.c
1120
ttsetwater(tp);
sys/arch/sgimips/dev/scn.c
1132
tp->t_state |= TS_CARR_ON;
sys/arch/sgimips/dev/scn.c
1134
tp->t_state &= ~TS_CARR_ON;
sys/arch/sgimips/dev/scn.c
1137
ttyunlock(tp);
sys/arch/sgimips/dev/scn.c
1139
error = ttyopen(tp, SCN_DIALOUT(sc), flags & O_NONBLOCK);
sys/arch/sgimips/dev/scn.c
1144
error = (*tp->t_linesw->l_open) (dev, tp);
sys/arch/sgimips/dev/scn.c
1152
if ((tp->t_state & TS_ISOPEN) == 0 && tp->t_wopen == 0) {
sys/arch/sgimips/dev/scn.c
1167
struct tty *tp = sc->sc_tty;
sys/arch/sgimips/dev/scn.c
1172
if ((tp->t_state & TS_ISOPEN) == 0)
sys/arch/sgimips/dev/scn.c
1175
(*tp->t_linesw->l_close) (tp, flags);
sys/arch/sgimips/dev/scn.c
1183
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/arch/sgimips/dev/scn.c
1186
if ((tp->t_cflag & HUPCL) && (sc->sc_swflags & SCN_SW_SOFTCAR) == 0) {
sys/arch/sgimips/dev/scn.c
1192
ttyclose(tp);
sys/arch/sgimips/dev/scn.c
1195
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/arch/sgimips/dev/scn.c
1196
tty_free(tp);
sys/arch/sgimips/dev/scn.c
1208
struct tty *tp = sc->sc_tty;
sys/arch/sgimips/dev/scn.c
1210
return ((*tp->t_linesw->l_read) (tp, uio, flags));
sys/arch/sgimips/dev/scn.c
1217
struct tty *tp = sc->sc_tty;
sys/arch/sgimips/dev/scn.c
1219
return ((*tp->t_linesw->l_write) (tp, uio, flags));
sys/arch/sgimips/dev/scn.c
1226
struct tty *tp = sc->sc_tty;
sys/arch/sgimips/dev/scn.c
1228
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/sgimips/dev/scn.c
1241
dcd_int(struct scn_softc *sc, struct tty *tp, u_char new)
sys/arch/sgimips/dev/scn.c
1258
if (!(*tp->t_linesw->l_modem) (tp, new == 0? 1: 0)) {
sys/arch/sgimips/dev/scn.c
1283
scnhwiflow(struct tty *tp, int stop)
sys/arch/sgimips/dev/scn.c
1285
int unit = DEV_UNIT(tp->t_dev);
sys/arch/sgimips/dev/scn.c
1500
struct tty *tp;
sys/arch/sgimips/dev/scn.c
1507
tp = sc->sc_tty;
sys/arch/sgimips/dev/scn.c
1509
if (tp == NULL) {
sys/arch/sgimips/dev/scn.c
1514
if (tp == NULL || tp->t_state & TS_TBLOCK) {
sys/arch/sgimips/dev/scn.c
1542
if (tp->t_state & TS_TBLOCK) {
sys/arch/sgimips/dev/scn.c
1577
(*tp->t_linesw->l_rint) (c, tp);
sys/arch/sgimips/dev/scn.c
1607
struct tty *tp = sc->sc_tty;
sys/arch/sgimips/dev/scn.c
1610
error = (*tp->t_linesw->l_ioctl) (tp, cmd, data, flags, l);
sys/arch/sgimips/dev/scn.c
1614
error = ttioctl(tp, cmd, data, flags, l);
sys/arch/sgimips/dev/scn.c
1713
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/sgimips/dev/scn.c
1739
scnparam(struct tty *tp, struct termios *t)
sys/arch/sgimips/dev/scn.c
1742
int unit = DEV_UNIT(tp->t_dev);
sys/arch/sgimips/dev/scn.c
1802
tp->t_ispeed = t->c_ispeed;
sys/arch/sgimips/dev/scn.c
1803
tp->t_ospeed = t->c_ospeed;
sys/arch/sgimips/dev/scn.c
1804
tp->t_cflag = cflag;
sys/arch/sgimips/dev/scn.c
1813
scnstart(struct tty *tp)
sys/arch/sgimips/dev/scn.c
1816
int unit = DEV_UNIT(tp->t_dev);
sys/arch/sgimips/dev/scn.c
1820
if (tp->t_state & (TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/arch/sgimips/dev/scn.c
1822
if (!ttypull(tp))
sys/arch/sgimips/dev/scn.c
1825
tp->t_state |= TS_BUSY;
sys/arch/sgimips/dev/scn.c
1828
if ((c = getc(&tp->t_outq)) == -1)
sys/arch/sgimips/dev/scn.c
1844
scnstop(struct tty *tp, int flags)
sys/arch/sgimips/dev/scn.c
1849
if (tp->t_state & TS_BUSY) {
sys/arch/sgimips/dev/scn.c
1850
if ((tp->t_state & TS_TTSTOP) == 0)
sys/arch/sgimips/dev/scn.c
1851
tp->t_state |= TS_FLUSH;
sys/arch/sgimips/dev/scn.c
554
struct tabent *tp;
sys/arch/sgimips/dev/scn.c
556
tp = table + (*index)++;
sys/arch/sgimips/dev/scn.c
557
if (tp->speed != wanted)
sys/arch/sgimips/dev/scn.c
561
if (!c92 && (tp->mode & MR0_MODE) != MR0_MODE_0)
sys/arch/sgimips/dev/scn.c
571
if (tp->mode == *mode || *mode == ANYMODE ||
sys/arch/sgimips/dev/scn.c
572
(other != NULL && (tp->mode & MR0_MODE) == (*mode & MR0_MODE) &&
sys/arch/sgimips/dev/scn.c
578
if (tp->code == USE_CT) {
sys/arch/sgimips/dev/scn.c
583
*mode = tp->mode;
sys/arch/sgimips/dev/scn.c
584
return tp->code;
sys/arch/sh3/dev/sci.c
1016
(void) (*tp->t_linesw->l_modem)(tp, ISSET(msr, MSR_DCD));
sys/arch/sh3/dev/sci.c
1023
(*tp->t_linesw->l_start)(tp);
sys/arch/sh3/dev/sci.c
1037
struct tty *tp;
sys/arch/sh3/dev/sci.c
1042
tp = sc->sc_tty;
sys/arch/sh3/dev/sci.c
1046
sci_rxsoft(sc, tp);
sys/arch/sh3/dev/sci.c
1052
sci_stsoft(sc, tp);
sys/arch/sh3/dev/sci.c
1058
sci_txsoft(sc, tp);
sys/arch/sh3/dev/sci.c
388
struct tty *tp;
sys/arch/sh3/dev/sci.c
420
tp = tty_alloc();
sys/arch/sh3/dev/sci.c
421
tp->t_oproc = scistart;
sys/arch/sh3/dev/sci.c
422
tp->t_param = sciparam;
sys/arch/sh3/dev/sci.c
423
tp->t_hwiflow = NULL;
sys/arch/sh3/dev/sci.c
425
sc->sc_tty = tp;
sys/arch/sh3/dev/sci.c
429
tty_attach(tp);
sys/arch/sh3/dev/sci.c
436
scistart(struct tty *tp)
sys/arch/sh3/dev/sci.c
438
struct sci_softc *sc = device_lookup_private(&sci_cd,SCIUNIT(tp->t_dev));
sys/arch/sh3/dev/sci.c
442
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/arch/sh3/dev/sci.c
446
if (!ttypull(tp))
sys/arch/sh3/dev/sci.c
454
tba = tp->t_outq.c_cf;
sys/arch/sh3/dev/sci.c
455
tbc = ndqb(&tp->t_outq, 0);
sys/arch/sh3/dev/sci.c
463
SET(tp->t_state, TS_BUSY);
sys/arch/sh3/dev/sci.c
488
sciparam(struct tty *tp, struct termios *t)
sys/arch/sh3/dev/sci.c
490
struct sci_softc *sc = device_lookup_private(&sci_cd, SCIUNIT(tp->t_dev));
sys/arch/sh3/dev/sci.c
518
if (tp->t_ospeed == t->c_ospeed &&
sys/arch/sh3/dev/sci.c
519
tp->t_cflag == t->c_cflag)
sys/arch/sh3/dev/sci.c
551
tp->t_ispeed = 0;
sys/arch/sh3/dev/sci.c
552
tp->t_ospeed = t->c_ospeed;
sys/arch/sh3/dev/sci.c
553
tp->t_cflag = t->c_cflag;
sys/arch/sh3/dev/sci.c
588
scistart(tp);
sys/arch/sh3/dev/sci.c
618
struct tty *tp;
sys/arch/sh3/dev/sci.c
638
tp = sc->sc_tty;
sys/arch/sh3/dev/sci.c
640
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/sh3/dev/sci.c
648
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/sh3/dev/sci.c
651
tp->t_dev = dev;
sys/arch/sh3/dev/sci.c
679
tp->t_ospeed = 0;
sys/arch/sh3/dev/sci.c
680
(void) sciparam(tp, &t);
sys/arch/sh3/dev/sci.c
681
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/sh3/dev/sci.c
682
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/sh3/dev/sci.c
683
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/sh3/dev/sci.c
684
ttychars(tp);
sys/arch/sh3/dev/sci.c
685
ttsetwater(tp);
sys/arch/sh3/dev/sci.c
706
error = ttyopen(tp, SCIDIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/arch/sh3/dev/sci.c
710
error = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/sh3/dev/sci.c
725
struct tty *tp = sc->sc_tty;
sys/arch/sh3/dev/sci.c
728
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/arch/sh3/dev/sci.c
731
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/sh3/dev/sci.c
732
ttyclose(tp);
sys/arch/sh3/dev/sci.c
744
struct tty *tp = sc->sc_tty;
sys/arch/sh3/dev/sci.c
746
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/arch/sh3/dev/sci.c
753
struct tty *tp = sc->sc_tty;
sys/arch/sh3/dev/sci.c
755
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/arch/sh3/dev/sci.c
762
struct tty *tp = sc->sc_tty;
sys/arch/sh3/dev/sci.c
764
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/sh3/dev/sci.c
771
struct tty *tp = sc->sc_tty;
sys/arch/sh3/dev/sci.c
773
return (tp);
sys/arch/sh3/dev/sci.c
780
struct tty *tp = sc->sc_tty;
sys/arch/sh3/dev/sci.c
787
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/sh3/dev/sci.c
791
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/sh3/dev/sci.c
814
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/sh3/dev/sci.c
865
scistop(struct tty *tp, int flag)
sys/arch/sh3/dev/sci.c
867
struct sci_softc *sc = device_lookup_private(&sci_cd, SCIUNIT(tp->t_dev));
sys/arch/sh3/dev/sci.c
871
if (ISSET(tp->t_state, TS_BUSY)) {
sys/arch/sh3/dev/sci.c
875
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/arch/sh3/dev/sci.c
876
SET(tp->t_state, TS_FLUSH);
sys/arch/sh3/dev/sci.c
903
sci_rxsoft(struct sci_softc *sc, struct tty *tp)
sys/arch/sh3/dev/sci.c
905
int (*rint)(int, struct tty *) = tp->t_linesw->l_rint;
sys/arch/sh3/dev/sci.c
931
if ((*rint)(code, tp) == -1) {
sys/arch/sh3/dev/sci.c
987
sci_txsoft(struct sci_softc *sc, struct tty *tp)
sys/arch/sh3/dev/sci.c
990
CLR(tp->t_state, TS_BUSY);
sys/arch/sh3/dev/sci.c
991
if (ISSET(tp->t_state, TS_FLUSH))
sys/arch/sh3/dev/sci.c
992
CLR(tp->t_state, TS_FLUSH);
sys/arch/sh3/dev/sci.c
994
ndflush(&tp->t_outq, (int)(sc->sc_tba - tp->t_outq.c_cf));
sys/arch/sh3/dev/sci.c
995
(*tp->t_linesw->l_start)(tp);
sys/arch/sh3/dev/sci.c
999
sci_stsoft(struct sci_softc *sc, struct tty *tp)
sys/arch/sh3/dev/scif.c
1026
scif_rxsoft(struct scif_softc *sc, struct tty *tp)
sys/arch/sh3/dev/scif.c
1028
int (*rint)(int, struct tty *) = tp->t_linesw->l_rint;
sys/arch/sh3/dev/scif.c
1054
if ((*rint)(code, tp) == -1) {
sys/arch/sh3/dev/scif.c
1110
scif_txsoft(struct scif_softc *sc, struct tty *tp)
sys/arch/sh3/dev/scif.c
1113
CLR(tp->t_state, TS_BUSY);
sys/arch/sh3/dev/scif.c
1114
if (ISSET(tp->t_state, TS_FLUSH))
sys/arch/sh3/dev/scif.c
1115
CLR(tp->t_state, TS_FLUSH);
sys/arch/sh3/dev/scif.c
1117
ndflush(&tp->t_outq, (int)(sc->sc_tba - tp->t_outq.c_cf));
sys/arch/sh3/dev/scif.c
1118
(*tp->t_linesw->l_start)(tp);
sys/arch/sh3/dev/scif.c
1123
scif_stsoft(struct scif_softc *sc, struct tty *tp)
sys/arch/sh3/dev/scif.c
1138
(void) (*tp->t_linesw->l_modem)(tp, ISSET(msr, MSR_DCD));
sys/arch/sh3/dev/scif.c
1145
(*tp->t_linesw->l_start)(tp);
sys/arch/sh3/dev/scif.c
1159
struct tty *tp;
sys/arch/sh3/dev/scif.c
1164
tp = sc->sc_tty;
sys/arch/sh3/dev/scif.c
1168
scif_rxsoft(sc, tp);
sys/arch/sh3/dev/scif.c
1174
scif_stsoft(sc, tp);
sys/arch/sh3/dev/scif.c
1180
scif_txsoft(sc, tp);
sys/arch/sh3/dev/scif.c
445
struct tty *tp;
sys/arch/sh3/dev/scif.c
500
tp = tty_alloc();
sys/arch/sh3/dev/scif.c
501
tp->t_oproc = scifstart;
sys/arch/sh3/dev/scif.c
502
tp->t_param = scifparam;
sys/arch/sh3/dev/scif.c
503
tp->t_hwiflow = NULL;
sys/arch/sh3/dev/scif.c
505
sc->sc_tty = tp;
sys/arch/sh3/dev/scif.c
509
tty_attach(tp);
sys/arch/sh3/dev/scif.c
520
scifstart(struct tty *tp)
sys/arch/sh3/dev/scif.c
525
sc = device_lookup_private(&scif_cd, SCIFUNIT(tp->t_dev));
sys/arch/sh3/dev/scif.c
528
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/arch/sh3/dev/scif.c
532
if (!ttypull(tp))
sys/arch/sh3/dev/scif.c
540
tba = tp->t_outq.c_cf;
sys/arch/sh3/dev/scif.c
541
tbc = ndqb(&tp->t_outq, 0);
sys/arch/sh3/dev/scif.c
549
SET(tp->t_state, TS_BUSY);
sys/arch/sh3/dev/scif.c
584
scifparam(struct tty *tp, struct termios *t)
sys/arch/sh3/dev/scif.c
590
sc = device_lookup_private(&scif_cd, SCIFUNIT(tp->t_dev));
sys/arch/sh3/dev/scif.c
615
if (tp->t_ospeed == t->c_ospeed &&
sys/arch/sh3/dev/scif.c
616
tp->t_cflag == t->c_cflag)
sys/arch/sh3/dev/scif.c
660
tp->t_ispeed = 0;
sys/arch/sh3/dev/scif.c
661
tp->t_ospeed = t->c_ospeed;
sys/arch/sh3/dev/scif.c
662
tp->t_cflag = t->c_cflag;
sys/arch/sh3/dev/scif.c
697
scifstart(tp);
sys/arch/sh3/dev/scif.c
722
struct tty *tp;
sys/arch/sh3/dev/scif.c
742
tp = sc->sc_tty;
sys/arch/sh3/dev/scif.c
744
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/sh3/dev/scif.c
752
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/sh3/dev/scif.c
755
tp->t_dev = dev;
sys/arch/sh3/dev/scif.c
783
tp->t_ospeed = 0;
sys/arch/sh3/dev/scif.c
784
(void) scifparam(tp, &t);
sys/arch/sh3/dev/scif.c
785
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/sh3/dev/scif.c
786
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/sh3/dev/scif.c
787
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/sh3/dev/scif.c
788
ttychars(tp);
sys/arch/sh3/dev/scif.c
789
ttsetwater(tp);
sys/arch/sh3/dev/scif.c
810
error = ttyopen(tp, SCIFDIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/arch/sh3/dev/scif.c
814
error = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/sh3/dev/scif.c
829
struct tty *tp;
sys/arch/sh3/dev/scif.c
832
tp = sc->sc_tty;
sys/arch/sh3/dev/scif.c
835
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/arch/sh3/dev/scif.c
838
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/sh3/dev/scif.c
839
ttyclose(tp);
sys/arch/sh3/dev/scif.c
851
struct tty *tp;
sys/arch/sh3/dev/scif.c
854
tp = sc->sc_tty;
sys/arch/sh3/dev/scif.c
856
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/arch/sh3/dev/scif.c
863
struct tty *tp;
sys/arch/sh3/dev/scif.c
866
tp = sc->sc_tty;
sys/arch/sh3/dev/scif.c
868
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/arch/sh3/dev/scif.c
875
struct tty *tp;
sys/arch/sh3/dev/scif.c
878
tp = sc->sc_tty;
sys/arch/sh3/dev/scif.c
880
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/sh3/dev/scif.c
887
struct tty *tp;
sys/arch/sh3/dev/scif.c
890
tp = sc->sc_tty;
sys/arch/sh3/dev/scif.c
892
return (tp);
sys/arch/sh3/dev/scif.c
899
struct tty *tp;
sys/arch/sh3/dev/scif.c
907
tp = sc->sc_tty;
sys/arch/sh3/dev/scif.c
908
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/sh3/dev/scif.c
912
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/sh3/dev/scif.c
935
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/arch/sh3/dev/scif.c
986
scifstop(struct tty *tp, int flag)
sys/arch/sh3/dev/scif.c
991
sc = device_lookup_private(&scif_cd, SCIFUNIT(tp->t_dev));
sys/arch/sh3/dev/scif.c
994
if (ISSET(tp->t_state, TS_BUSY)) {
sys/arch/sh3/dev/scif.c
998
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/arch/sh3/dev/scif.c
999
SET(tp->t_state, TS_FLUSH);
sys/arch/shark/ofw/ofw.c
1278
struct mem_translation *tp;
sys/arch/shark/ofw/ofw.c
1355
for (oft = 0, tp = OFtranslations; oft < nOFtranslations;
sys/arch/shark/ofw/ofw.c
1356
oft++, tp++) {
sys/arch/shark/ofw/ofw.c
1360
int npages = tp->size / PAGE_SIZE;
sys/arch/shark/ofw/ofw.c
1363
if (npages == 0 || tp->size % PAGE_SIZE != 0)
sys/arch/shark/ofw/ofw.c
1367
for (va = tp->virt, pa = tp->phys; npages > 0;
sys/arch/shark/ofw/ofw.c
1410
(tp->mode & 0xC) == 0xC ? PTE_CACHE
sys/arch/shark/ofw/ofw.c
1432
for (oft = 0, tp = OFtranslations; oft < nOFtranslations; oft++, tp++) {
sys/arch/shark/ofw/ofw.c
1433
vaddr_t va = tp->virt;
sys/arch/shark/ofw/ofw.c
1434
paddr_t pa = tp->phys;
sys/arch/shark/ofw/ofw.c
1437
int nsections = tp->size / L1_S_SIZE;
sys/arch/shark/ofw/ofw.c
1443
(tp->mode & 0xC) == 0xC ? PTE_CACHE
sys/arch/shark/ofw/ofw.c
1551
struct mem_translation *tp;
sys/arch/shark/ofw/ofw.c
1569
for (i = 0, tp = OFtranslations; i < nOFtranslations; i++, tp++) {
sys/arch/shark/ofw/ofw.c
1570
tp->virt = of_decode_int((unsigned char *)&tp->virt);
sys/arch/shark/ofw/ofw.c
1571
tp->size = of_decode_int((unsigned char *)&tp->size);
sys/arch/shark/ofw/ofw.c
1572
tp->phys = of_decode_int((unsigned char *)&tp->phys);
sys/arch/shark/ofw/ofw.c
1573
tp->mode = of_decode_int((unsigned char *)&tp->mode);
sys/arch/sparc/dev/kd.c
133
struct tty *tp;
sys/arch/sparc/dev/kd.c
135
tp = tty_alloc();
sys/arch/sparc/dev/kd.c
136
callout_setfunc(&tp->t_rstrt_ch, kd_later, tp);
sys/arch/sparc/dev/kd.c
137
tp->t_oproc = kdstart;
sys/arch/sparc/dev/kd.c
138
tp->t_param = kdparam;
sys/arch/sparc/dev/kd.c
139
tp->t_dev = makedev(cdevsw_lookup_major(&kd_cdevsw), 0);
sys/arch/sparc/dev/kd.c
141
tty_attach(tp);
sys/arch/sparc/dev/kd.c
142
kd->kd_tty = tp;
sys/arch/sparc/dev/kd.c
151
rcons_ttyinit(tp);
sys/arch/sparc/dev/kd.c
199
struct tty *tp;
sys/arch/sparc/dev/kd.c
212
tp = kd->kd_tty;
sys/arch/sparc/dev/kd.c
215
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/sparc/dev/kd.c
219
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/arch/sparc/dev/kd.c
229
ttychars(tp);
sys/arch/sparc/dev/kd.c
230
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/sparc/dev/kd.c
231
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/sparc/dev/kd.c
232
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/sparc/dev/kd.c
233
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/sparc/dev/kd.c
234
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/arch/sparc/dev/kd.c
235
(void) kdparam(tp, &tp->t_termios);
sys/arch/sparc/dev/kd.c
236
ttsetwater(tp);
sys/arch/sparc/dev/kd.c
237
tp->t_winsize.ws_row = kd->rows;
sys/arch/sparc/dev/kd.c
238
tp->t_winsize.ws_col = kd->cols;
sys/arch/sparc/dev/kd.c
241
tp->t_state |= TS_CARR_ON;
sys/arch/sparc/dev/kd.c
246
return ((*tp->t_linesw->l_open)(dev, tp));
sys/arch/sparc/dev/kd.c
253
struct tty *tp;
sys/arch/sparc/dev/kd.c
257
tp = kd->kd_tty;
sys/arch/sparc/dev/kd.c
260
if ((tp->t_state & TS_ISOPEN) == 0)
sys/arch/sparc/dev/kd.c
263
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/sparc/dev/kd.c
264
ttyclose(tp);
sys/arch/sparc/dev/kd.c
276
struct tty *tp;
sys/arch/sparc/dev/kd.c
279
tp = kd->kd_tty;
sys/arch/sparc/dev/kd.c
281
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/arch/sparc/dev/kd.c
288
struct tty *tp;
sys/arch/sparc/dev/kd.c
291
tp = kd->kd_tty;
sys/arch/sparc/dev/kd.c
293
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/arch/sparc/dev/kd.c
300
struct tty *tp;
sys/arch/sparc/dev/kd.c
303
tp = kd->kd_tty;
sys/arch/sparc/dev/kd.c
305
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/sparc/dev/kd.c
312
struct tty *tp;
sys/arch/sparc/dev/kd.c
316
tp = kd->kd_tty;
sys/arch/sparc/dev/kd.c
318
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/sparc/dev/kd.c
322
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/sparc/dev/kd.c
334
kdparam(struct tty *tp, struct termios *t)
sys/arch/sparc/dev/kd.c
338
tp->t_ispeed = t->c_ispeed;
sys/arch/sparc/dev/kd.c
339
tp->t_ospeed = t->c_ospeed;
sys/arch/sparc/dev/kd.c
340
tp->t_cflag = t->c_cflag;
sys/arch/sparc/dev/kd.c
345
kdstart(struct tty *tp)
sys/arch/sparc/dev/kd.c
351
if (tp->t_state & (TS_BUSY|TS_TTSTOP|TS_TIMEOUT))
sys/arch/sparc/dev/kd.c
354
if (ttypull(tp)) {
sys/arch/sparc/dev/kd.c
355
tp->t_state |= TS_BUSY;
sys/arch/sparc/dev/kd.c
359
kd_putfb(tp);
sys/arch/sparc/dev/kd.c
361
tp->t_state &= ~TS_BUSY;
sys/arch/sparc/dev/kd.c
364
callout_schedule(&tp->t_rstrt_ch, 0);
sys/arch/sparc/dev/kd.c
379
struct tty *tp = arg;
sys/arch/sparc/dev/kd.c
382
kd_putfb(tp);
sys/arch/sparc/dev/kd.c
385
tp->t_state &= ~TS_BUSY;
sys/arch/sparc/dev/kd.c
386
(*tp->t_linesw->l_start)(tp);
sys/arch/sparc/dev/kd.c
396
kd_putfb(struct tty *tp)
sys/arch/sparc/dev/kd.c
399
struct clist *cl = &tp->t_outq;
sys/arch/sparc/dev/kd.c
423
struct tty *tp;
sys/arch/sparc/dev/kd.c
426
tp = kd->kd_tty;
sys/arch/sparc/dev/kd.c
427
if (tp == NULL)
sys/arch/sparc/dev/kd.c
429
if ((tp->t_state & TS_ISOPEN) == 0)
sys/arch/sparc/dev/kd.c
432
(*tp->t_linesw->l_rint)(c, tp);
sys/arch/sparc/dev/vme_machdep.c
542
bus_space_tag_t *tp, bus_space_handle_t *hp, vme_mapresc_t *rp)
sys/arch/sparc/dev/vme_machdep.c
552
*tp = sc->sc_bustag;
sys/arch/sparc/dev/zs.c
533
struct tty *tp = zstty_get_tty_from_dev(child);
sys/arch/sparc/dev/zs.c
534
kma.kmta_tp = tp;
sys/arch/sparc/dev/zs.c
535
kma.kmta_dev = tp->t_dev;
sys/arch/sparc64/dev/iommu.c
489
register volatile struct timeval *tp = (t); \
sys/arch/sparc64/dev/iommu.c
492
tp->tv_usec = us = tp->tv_usec + (usec); \
sys/arch/sparc64/dev/iommu.c
494
tp->tv_usec = us - 1000000; \
sys/arch/sparc64/dev/iommu.c
495
tp->tv_sec++; \
sys/arch/sparc64/dev/kd.c
126
struct tty *tp;
sys/arch/sparc64/dev/kd.c
131
tp = tty_alloc();
sys/arch/sparc64/dev/kd.c
132
callout_setfunc(&tp->t_rstrt_ch, kd_later, tp);
sys/arch/sparc64/dev/kd.c
133
tp->t_oproc = kdstart;
sys/arch/sparc64/dev/kd.c
134
tp->t_param = kdparam;
sys/arch/sparc64/dev/kd.c
135
tp->t_dev = makedev(cdevsw_lookup_major(&kd_cdevsw), 0);
sys/arch/sparc64/dev/kd.c
137
tty_attach(tp);
sys/arch/sparc64/dev/kd.c
138
kd->kd_tty = tp;
sys/arch/sparc64/dev/kd.c
144
fbconstty = tp;
sys/arch/sparc64/dev/kd.c
170
struct tty *tp;
sys/arch/sparc64/dev/kd.c
182
tp = kd->kd_tty;
sys/arch/sparc64/dev/kd.c
185
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/sparc64/dev/kd.c
190
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/arch/sparc64/dev/kd.c
201
ttychars(tp);
sys/arch/sparc64/dev/kd.c
202
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/sparc64/dev/kd.c
203
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/sparc64/dev/kd.c
204
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/sparc64/dev/kd.c
205
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/sparc64/dev/kd.c
206
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/arch/sparc64/dev/kd.c
207
(void) kdparam(tp, &tp->t_termios);
sys/arch/sparc64/dev/kd.c
208
ttsetwater(tp);
sys/arch/sparc64/dev/kd.c
209
tp->t_winsize.ws_row = kd->rows;
sys/arch/sparc64/dev/kd.c
210
tp->t_winsize.ws_col = kd->cols;
sys/arch/sparc64/dev/kd.c
213
tp->t_state |= TS_CARR_ON;
sys/arch/sparc64/dev/kd.c
218
return ((*tp->t_linesw->l_open)(dev, tp));
sys/arch/sparc64/dev/kd.c
225
struct tty *tp;
sys/arch/sparc64/dev/kd.c
229
tp = kd->kd_tty;
sys/arch/sparc64/dev/kd.c
232
if ((tp->t_state & TS_ISOPEN) == 0)
sys/arch/sparc64/dev/kd.c
235
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/sparc64/dev/kd.c
236
ttyclose(tp);
sys/arch/sparc64/dev/kd.c
248
struct tty *tp;
sys/arch/sparc64/dev/kd.c
251
tp = kd->kd_tty;
sys/arch/sparc64/dev/kd.c
253
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/arch/sparc64/dev/kd.c
260
struct tty *tp;
sys/arch/sparc64/dev/kd.c
263
tp = kd->kd_tty;
sys/arch/sparc64/dev/kd.c
265
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/arch/sparc64/dev/kd.c
272
struct tty *tp;
sys/arch/sparc64/dev/kd.c
275
tp = kd->kd_tty;
sys/arch/sparc64/dev/kd.c
277
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/sparc64/dev/kd.c
284
struct tty *tp;
sys/arch/sparc64/dev/kd.c
288
tp = kd->kd_tty;
sys/arch/sparc64/dev/kd.c
290
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/sparc64/dev/kd.c
294
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/sparc64/dev/kd.c
306
kdparam(struct tty *tp, struct termios *t)
sys/arch/sparc64/dev/kd.c
309
tp->t_ispeed = t->c_ispeed;
sys/arch/sparc64/dev/kd.c
310
tp->t_ospeed = t->c_ospeed;
sys/arch/sparc64/dev/kd.c
311
tp->t_cflag = t->c_cflag;
sys/arch/sparc64/dev/kd.c
316
kdstart(struct tty *tp)
sys/arch/sparc64/dev/kd.c
323
if (tp->t_state & (TS_BUSY|TS_TTSTOP|TS_TIMEOUT))
sys/arch/sparc64/dev/kd.c
326
cl = &tp->t_outq;
sys/arch/sparc64/dev/kd.c
329
tp->t_state |= TS_BUSY;
sys/arch/sparc64/dev/kd.c
333
kd_putfb(tp);
sys/arch/sparc64/dev/kd.c
335
tp->t_state &= ~TS_BUSY;
sys/arch/sparc64/dev/kd.c
338
callout_schedule(&tp->t_rstrt_ch, 0);
sys/arch/sparc64/dev/kd.c
350
ttypull(tp);
sys/arch/sparc64/dev/kd.c
363
struct tty *tp = tpaddr;
sys/arch/sparc64/dev/kd.c
366
kd_putfb(tp);
sys/arch/sparc64/dev/kd.c
369
tp->t_state &= ~TS_BUSY;
sys/arch/sparc64/dev/kd.c
370
(*tp->t_linesw->l_start)(tp);
sys/arch/sparc64/dev/kd.c
380
kd_putfb(struct tty *tp)
sys/arch/sparc64/dev/kd.c
383
struct clist *cl = &tp->t_outq;
sys/arch/sparc64/dev/kd.c
426
struct tty *tp;
sys/arch/sparc64/dev/kd.c
429
tp = kd->kd_tty;
sys/arch/sparc64/dev/kd.c
430
if (tp == NULL)
sys/arch/sparc64/dev/kd.c
432
if ((tp->t_state & TS_ISOPEN) == 0)
sys/arch/sparc64/dev/kd.c
435
(*tp->t_linesw->l_rint)(c, tp);
sys/arch/sparc64/dev/pcons.c
135
struct tty *tp;
sys/arch/sparc64/dev/pcons.c
140
if (!(tp = sc->of_tty))
sys/arch/sparc64/dev/pcons.c
141
sc->of_tty = tp = tty_alloc();
sys/arch/sparc64/dev/pcons.c
142
tp->t_oproc = pconsstart;
sys/arch/sparc64/dev/pcons.c
143
tp->t_param = pconsparam;
sys/arch/sparc64/dev/pcons.c
144
tp->t_dev = dev;
sys/arch/sparc64/dev/pcons.c
146
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/sparc64/dev/pcons.c
148
if (!(tp->t_state & TS_ISOPEN)) {
sys/arch/sparc64/dev/pcons.c
149
ttychars(tp);
sys/arch/sparc64/dev/pcons.c
150
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/sparc64/dev/pcons.c
151
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/sparc64/dev/pcons.c
152
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/sparc64/dev/pcons.c
153
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/sparc64/dev/pcons.c
154
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/arch/sparc64/dev/pcons.c
155
pconsparam(tp, &tp->t_termios);
sys/arch/sparc64/dev/pcons.c
156
ttsetwater(tp);
sys/arch/sparc64/dev/pcons.c
158
tp->t_state |= TS_CARR_ON;
sys/arch/sparc64/dev/pcons.c
165
return (*tp->t_linesw->l_open)(dev, tp);
sys/arch/sparc64/dev/pcons.c
172
struct tty *tp = sc->of_tty;
sys/arch/sparc64/dev/pcons.c
176
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/sparc64/dev/pcons.c
177
ttyclose(tp);
sys/arch/sparc64/dev/pcons.c
185
struct tty *tp = sc->of_tty;
sys/arch/sparc64/dev/pcons.c
187
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/arch/sparc64/dev/pcons.c
194
struct tty *tp = sc->of_tty;
sys/arch/sparc64/dev/pcons.c
196
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/arch/sparc64/dev/pcons.c
203
struct tty *tp = sc->of_tty;
sys/arch/sparc64/dev/pcons.c
205
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/sparc64/dev/pcons.c
212
struct tty *tp = sc->of_tty;
sys/arch/sparc64/dev/pcons.c
215
if ((error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l)) != EPASSTHROUGH)
sys/arch/sparc64/dev/pcons.c
217
return ttioctl(tp, cmd, data, flag, l);
sys/arch/sparc64/dev/pcons.c
229
pconsstart(struct tty *tp)
sys/arch/sparc64/dev/pcons.c
236
if (tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP)) {
sys/arch/sparc64/dev/pcons.c
240
tp->t_state |= TS_BUSY;
sys/arch/sparc64/dev/pcons.c
242
cl = &tp->t_outq;
sys/arch/sparc64/dev/pcons.c
246
tp->t_state &= ~TS_BUSY;
sys/arch/sparc64/dev/pcons.c
247
if (ttypull(tp)) {
sys/arch/sparc64/dev/pcons.c
248
tp->t_state |= TS_TIMEOUT;
sys/arch/sparc64/dev/pcons.c
249
callout_schedule(&tp->t_rstrt_ch, 1);
sys/arch/sparc64/dev/pcons.c
255
pconsparam(struct tty *tp, struct termios *t)
sys/arch/sparc64/dev/pcons.c
257
tp->t_ispeed = t->c_ispeed;
sys/arch/sparc64/dev/pcons.c
258
tp->t_ospeed = t->c_ospeed;
sys/arch/sparc64/dev/pcons.c
259
tp->t_cflag = t->c_cflag;
sys/arch/sparc64/dev/pcons.c
267
struct tty *tp = sc->of_tty;
sys/arch/sparc64/dev/pcons.c
271
cn_check_magic(tp->t_dev, ch, pcons_cnm_state);
sys/arch/sparc64/dev/pcons.c
272
if (tp && (tp->t_state & TS_ISOPEN))
sys/arch/sparc64/dev/pcons.c
273
(*tp->t_linesw->l_rint)(ch, tp);
sys/arch/sparc64/dev/sab.c
1004
sabttyparam(struct sabtty_softc *sc, struct tty *tp, struct termios *t)
sys/arch/sparc64/dev/sab.c
1082
tp->t_cflag = cflag;
sys/arch/sparc64/dev/sab.c
1089
sabtty_param(struct tty *tp, struct termios *t)
sys/arch/sparc64/dev/sab.c
1091
struct sabtty_softc *sc = device_lookup_private(&sabtty_cd, SABUNIT(tp->t_dev));
sys/arch/sparc64/dev/sab.c
1093
return (sabttyparam(sc, tp, t));
sys/arch/sparc64/dev/sab.c
1097
sabtty_start(struct tty *tp)
sys/arch/sparc64/dev/sab.c
1099
struct sabtty_softc *sc = device_lookup_private(&sabtty_cd, SABUNIT(tp->t_dev));
sys/arch/sparc64/dev/sab.c
1103
if ((tp->t_state & (TS_TTSTOP | TS_TIMEOUT | TS_BUSY)) == 0) {
sys/arch/sparc64/dev/sab.c
1104
if (ttypull(tp)) {
sys/arch/sparc64/dev/sab.c
1105
sc->sc_txc = ndqb(&tp->t_outq, 0);
sys/arch/sparc64/dev/sab.c
1106
sc->sc_txp = tp->t_outq.c_cf;
sys/arch/sparc64/dev/sab.c
1107
tp->t_state |= TS_BUSY;
sys/arch/sparc64/dev/sab.c
621
struct tty *tp = sc->sc_tty;
sys/arch/sparc64/dev/sab.c
625
if (tp == NULL)
sys/arch/sparc64/dev/sab.c
628
if ((tp->t_state & TS_ISOPEN) == 0)
sys/arch/sparc64/dev/sab.c
645
(*tp->t_linesw->l_rint)(data, tp);
sys/arch/sparc64/dev/sab.c
658
(*tp->t_linesw->l_modem)(tp, r);
sys/arch/sparc64/dev/sab.c
666
ndflush(&tp->t_outq, sc->sc_txp - tp->t_outq.c_cf);
sys/arch/sparc64/dev/sab.c
667
tp->t_state &= ~TS_BUSY;
sys/arch/sparc64/dev/sab.c
668
(*tp->t_linesw->l_start)(tp);
sys/arch/sparc64/dev/sab.c
676
struct tty *tp;
sys/arch/sparc64/dev/sab.c
683
tp = sc->sc_tty;
sys/arch/sparc64/dev/sab.c
684
tp->t_dev = dev;
sys/arch/sparc64/dev/sab.c
690
if (ISSET(tp->t_state, TS_KERN_ONLY))
sys/arch/sparc64/dev/sab.c
693
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/sparc64/dev/sab.c
696
ttylock(tp);
sys/arch/sparc64/dev/sab.c
697
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/arch/sparc64/dev/sab.c
698
ttychars(tp);
sys/arch/sparc64/dev/sab.c
699
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/sparc64/dev/sab.c
700
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/sparc64/dev/sab.c
701
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/sparc64/dev/sab.c
703
tp->t_cflag |= CLOCAL;
sys/arch/sparc64/dev/sab.c
705
tp->t_cflag |= CRTSCTS;
sys/arch/sparc64/dev/sab.c
707
tp->t_cflag |= MDMBUF;
sys/arch/sparc64/dev/sab.c
708
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/sparc64/dev/sab.c
709
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/arch/sparc64/dev/sab.c
713
ttsetwater(tp);
sys/arch/sparc64/dev/sab.c
717
sabtty_param(tp, &tp->t_termios);
sys/arch/sparc64/dev/sab.c
735
tp->t_state |= TS_CARR_ON;
sys/arch/sparc64/dev/sab.c
737
tp->t_state &= ~TS_CARR_ON;
sys/arch/sparc64/dev/sab.c
741
while ((tp->t_cflag & CLOCAL) == 0 &&
sys/arch/sparc64/dev/sab.c
742
(tp->t_state & TS_CARR_ON) == 0) {
sys/arch/sparc64/dev/sab.c
745
error = ttysleep(tp, &tp->t_rawcv, true, 0);
sys/arch/sparc64/dev/sab.c
747
ttyunlock(tp);
sys/arch/sparc64/dev/sab.c
753
ttyunlock(tp);
sys/arch/sparc64/dev/sab.c
755
s = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/sparc64/dev/sab.c
757
ttylock(tp);
sys/arch/sparc64/dev/sab.c
758
if (tp->t_state & TS_ISOPEN) {
sys/arch/sparc64/dev/sab.c
759
ttyunlock(tp);
sys/arch/sparc64/dev/sab.c
762
if (tp->t_cflag & HUPCL) {
sys/arch/sparc64/dev/sab.c
764
ttysleep(tp, NULL, /*catch_p*/false, hz);
sys/arch/sparc64/dev/sab.c
772
ttyunlock(tp);
sys/arch/sparc64/dev/sab.c
782
struct tty *tp = sc->sc_tty;
sys/arch/sparc64/dev/sab.c
785
(*tp->t_linesw->l_close)(tp, flags);
sys/arch/sparc64/dev/sab.c
789
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/arch/sparc64/dev/sab.c
799
if (tp->t_cflag & HUPCL) {
sys/arch/sparc64/dev/sab.c
811
ttyclose(tp);
sys/arch/sparc64/dev/sab.c
821
struct tty *tp = sc->sc_tty;
sys/arch/sparc64/dev/sab.c
823
return ((*tp->t_linesw->l_read)(tp, uio, flags));
sys/arch/sparc64/dev/sab.c
830
struct tty *tp = sc->sc_tty;
sys/arch/sparc64/dev/sab.c
832
return ((*tp->t_linesw->l_write)(tp, uio, flags));
sys/arch/sparc64/dev/sab.c
839
struct tty *tp = sc->sc_tty;
sys/arch/sparc64/dev/sab.c
842
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flags, l);
sys/arch/sparc64/dev/sab.c
846
error = ttioctl(tp, cmd, data, flags, l);
sys/arch/sparc64/dev/sab.c
884
KAUTH_DEVICE_TTY_PRIVSET, tp))
sys/arch/sparc64/dev/sab.c
907
sabstop(struct tty *tp, int flag)
sys/arch/sparc64/dev/sab.c
909
struct sabtty_softc *sc = device_lookup_private(&sabtty_cd, SABUNIT(tp->t_dev));
sys/arch/sparc64/dev/sab.c
913
if (tp->t_state & TS_BUSY) {
sys/arch/sparc64/dev/sab.c
914
if ((tp->t_state & TS_TTSTOP) == 0)
sys/arch/sparc64/dev/sab.c
915
tp->t_state |= TS_FLUSH;
sys/arch/sparc64/dev/sab.c
927
struct tty *tp = sc->sc_tty;
sys/arch/sparc64/dev/sab.c
929
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/sparc64/dev/zs.c
432
struct tty *tp;
sys/arch/sparc64/dev/zs.c
434
kma.kmta_tp = tp = zstty_get_tty_from_dev(child);
sys/arch/sparc64/dev/zs.c
435
kma.kmta_dev = tp->t_dev;
sys/arch/sparc64/dev/zs.c
542
ttylock(tp);
sys/arch/sparc64/dev/zs.c
546
ttyunlock(tp);
sys/arch/sparc64/sparc64/pmap.c
530
pte_t *tp;
sys/arch/sparc64/sparc64/pmap.c
545
tp = (pte_t *)(v + mp_tramp_code_len);
sys/arch/sparc64/sparc64/pmap.c
547
tp[i].tag = kernel_tlbs[i].te_va;
sys/arch/sparc64/sparc64/pmap.c
548
tp[i].data = TSB_DATA(0, /* g */
sys/arch/sparc64/sparc64/pmap.c
558
tp[i].data |= TLB_L | TLB_CV;
sys/arch/sparc64/sparc64/pmap.c
561
tp[i].data |= TLB_W;
sys/arch/sparc64/sparc64/pmap.c
564
tp[i].data |= SUN4V_TLB_X;
sys/arch/sparc64/sparc64/pmap.c
568
PRIx64 "\n", i, tp[i].tag, tp[i].data));
sys/arch/sun2/dev/kd.c
129
struct tty *tp;
sys/arch/sun2/dev/kd.c
140
tp = tty_alloc();
sys/arch/sun2/dev/kd.c
141
callout_setfunc(&tp->t_rstrt_ch, kd_later, tp);
sys/arch/sun2/dev/kd.c
142
tp->t_oproc = kdstart;
sys/arch/sun2/dev/kd.c
143
tp->t_param = kdparam;
sys/arch/sun2/dev/kd.c
144
tp->t_dev = makedev(cdevsw_lookup_major(&kd_cdevsw), 0);
sys/arch/sun2/dev/kd.c
146
tty_attach(tp);
sys/arch/sun2/dev/kd.c
147
kd->kd_tty = tp;
sys/arch/sun2/dev/kd.c
153
fbconstty = tp;
sys/arch/sun2/dev/kd.c
157
rcons_ttyinit(tp);
sys/arch/sun2/dev/kd.c
213
struct tty *tp;
sys/arch/sun2/dev/kd.c
225
tp = kd->kd_tty;
sys/arch/sun2/dev/kd.c
228
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/sun2/dev/kd.c
233
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/arch/sun2/dev/kd.c
244
ttychars(tp);
sys/arch/sun2/dev/kd.c
245
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/sun2/dev/kd.c
246
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/sun2/dev/kd.c
247
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/sun2/dev/kd.c
248
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/sun2/dev/kd.c
249
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/arch/sun2/dev/kd.c
250
(void) kdparam(tp, &tp->t_termios);
sys/arch/sun2/dev/kd.c
251
ttsetwater(tp);
sys/arch/sun2/dev/kd.c
252
tp->t_winsize.ws_row = kd->rows;
sys/arch/sun2/dev/kd.c
253
tp->t_winsize.ws_col = kd->cols;
sys/arch/sun2/dev/kd.c
256
tp->t_state |= TS_CARR_ON;
sys/arch/sun2/dev/kd.c
261
return ((*tp->t_linesw->l_open)(dev, tp));
sys/arch/sun2/dev/kd.c
268
struct tty *tp;
sys/arch/sun2/dev/kd.c
272
tp = kd->kd_tty;
sys/arch/sun2/dev/kd.c
275
if ((tp->t_state & TS_ISOPEN) == 0)
sys/arch/sun2/dev/kd.c
278
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/sun2/dev/kd.c
279
ttyclose(tp);
sys/arch/sun2/dev/kd.c
291
struct tty *tp;
sys/arch/sun2/dev/kd.c
294
tp = kd->kd_tty;
sys/arch/sun2/dev/kd.c
296
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/arch/sun2/dev/kd.c
303
struct tty *tp;
sys/arch/sun2/dev/kd.c
306
tp = kd->kd_tty;
sys/arch/sun2/dev/kd.c
308
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/arch/sun2/dev/kd.c
315
struct tty *tp;
sys/arch/sun2/dev/kd.c
318
tp = kd->kd_tty;
sys/arch/sun2/dev/kd.c
320
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/sun2/dev/kd.c
327
struct tty *tp;
sys/arch/sun2/dev/kd.c
331
tp = kd->kd_tty;
sys/arch/sun2/dev/kd.c
333
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/sun2/dev/kd.c
337
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/sun2/dev/kd.c
349
kdparam(struct tty *tp, struct termios *t)
sys/arch/sun2/dev/kd.c
352
tp->t_ispeed = t->c_ispeed;
sys/arch/sun2/dev/kd.c
353
tp->t_ospeed = t->c_ospeed;
sys/arch/sun2/dev/kd.c
354
tp->t_cflag = t->c_cflag;
sys/arch/sun2/dev/kd.c
362
kdstart(struct tty *tp)
sys/arch/sun2/dev/kd.c
369
if (tp->t_state & (TS_BUSY|TS_TTSTOP|TS_TIMEOUT))
sys/arch/sun2/dev/kd.c
372
cl = &tp->t_outq;
sys/arch/sun2/dev/kd.c
373
if (ttypull(tp)) {
sys/arch/sun2/dev/kd.c
375
tp->t_state |= TS_BUSY;
sys/arch/sun2/dev/kd.c
379
kd_putfb(tp);
sys/arch/sun2/dev/kd.c
381
tp->t_state &= ~TS_BUSY;
sys/arch/sun2/dev/kd.c
384
callout_schedule(&tp->t_rstrt_ch, 0);
sys/arch/sun2/dev/kd.c
408
struct tty *tp = tpaddr;
sys/arch/sun2/dev/kd.c
411
kd_putfb(tp);
sys/arch/sun2/dev/kd.c
414
tp->t_state &= ~TS_BUSY;
sys/arch/sun2/dev/kd.c
415
(*tp->t_linesw->l_start)(tp);
sys/arch/sun2/dev/kd.c
425
kd_putfb(struct tty *tp)
sys/arch/sun2/dev/kd.c
428
struct clist *cl = &tp->t_outq;
sys/arch/sun2/dev/kd.c
471
struct tty *tp;
sys/arch/sun2/dev/kd.c
474
tp = kd->kd_tty;
sys/arch/sun2/dev/kd.c
475
if (tp == NULL)
sys/arch/sun2/dev/kd.c
477
if ((tp->t_state & TS_ISOPEN) == 0)
sys/arch/sun2/dev/kd.c
480
(*tp->t_linesw->l_rint)(c, tp);
sys/arch/sun2/dev/pcons.c
133
struct tty *tp;
sys/arch/sun2/dev/pcons.c
138
if ((tp = sc->of_tty) == NULL)
sys/arch/sun2/dev/pcons.c
139
sc->of_tty = tp = tty_alloc();
sys/arch/sun2/dev/pcons.c
140
tp->t_oproc = pconsstart;
sys/arch/sun2/dev/pcons.c
141
tp->t_param = pconsparam;
sys/arch/sun2/dev/pcons.c
142
tp->t_dev = dev;
sys/arch/sun2/dev/pcons.c
144
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/sun2/dev/pcons.c
146
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/arch/sun2/dev/pcons.c
147
ttychars(tp);
sys/arch/sun2/dev/pcons.c
148
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/sun2/dev/pcons.c
149
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/sun2/dev/pcons.c
150
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/sun2/dev/pcons.c
151
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/sun2/dev/pcons.c
152
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/arch/sun2/dev/pcons.c
153
pconsparam(tp, &tp->t_termios);
sys/arch/sun2/dev/pcons.c
154
ttsetwater(tp);
sys/arch/sun2/dev/pcons.c
156
tp->t_state |= TS_CARR_ON;
sys/arch/sun2/dev/pcons.c
163
return (*tp->t_linesw->l_open)(dev, tp);
sys/arch/sun2/dev/pcons.c
170
struct tty *tp = sc->of_tty;
sys/arch/sun2/dev/pcons.c
174
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/sun2/dev/pcons.c
175
ttyclose(tp);
sys/arch/sun2/dev/pcons.c
183
struct tty *tp = sc->of_tty;
sys/arch/sun2/dev/pcons.c
185
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/arch/sun2/dev/pcons.c
192
struct tty *tp = sc->of_tty;
sys/arch/sun2/dev/pcons.c
194
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/arch/sun2/dev/pcons.c
201
struct tty *tp = sc->of_tty;
sys/arch/sun2/dev/pcons.c
203
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/sun2/dev/pcons.c
210
struct tty *tp = sc->of_tty;
sys/arch/sun2/dev/pcons.c
213
if ((error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l)) >= 0)
sys/arch/sun2/dev/pcons.c
215
if ((error = ttioctl(tp, cmd, data, flag, l)) >= 0)
sys/arch/sun2/dev/pcons.c
229
pconsstart(struct tty *tp)
sys/arch/sun2/dev/pcons.c
236
if (tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP)) {
sys/arch/sun2/dev/pcons.c
240
tp->t_state |= TS_BUSY;
sys/arch/sun2/dev/pcons.c
242
cl = &tp->t_outq;
sys/arch/sun2/dev/pcons.c
246
tp->t_state &= ~TS_BUSY;
sys/arch/sun2/dev/pcons.c
247
if (ttypull(tp)) {
sys/arch/sun2/dev/pcons.c
248
tp->t_state |= TS_TIMEOUT;
sys/arch/sun2/dev/pcons.c
249
callout_schedule(&tp->t_rstrt_ch, 1);
sys/arch/sun2/dev/pcons.c
255
pconsparam(struct tty *tp, struct termios *t)
sys/arch/sun2/dev/pcons.c
258
tp->t_ispeed = t->c_ispeed;
sys/arch/sun2/dev/pcons.c
259
tp->t_ospeed = t->c_ospeed;
sys/arch/sun2/dev/pcons.c
260
tp->t_cflag = t->c_cflag;
sys/arch/sun2/dev/pcons.c
268
struct tty *tp = sc->of_tty;
sys/arch/sun2/dev/pcons.c
274
cn_check_magic(tp->t_dev, ch, pcons_cnm_state);
sys/arch/sun2/dev/pcons.c
275
if (tp && (tp->t_state & TS_ISOPEN))
sys/arch/sun2/dev/pcons.c
276
(*tp->t_linesw->l_rint)(ch, tp);
sys/arch/sun2/dev/zs.c
264
struct tty *tp;
sys/arch/sun2/dev/zs.c
266
kma.kmta_tp = tp = zst->zst_tty;
sys/arch/sun2/dev/zs.c
267
if (tp != NULL) {
sys/arch/sun2/dev/zs.c
268
kma.kmta_dev = tp->t_dev;
sys/arch/sun3/dev/kd.c
118
struct tty *tp;
sys/arch/sun3/dev/kd.c
120
tp = tty_alloc();
sys/arch/sun3/dev/kd.c
121
callout_setfunc(&tp->t_rstrt_ch, kd_later, tp);
sys/arch/sun3/dev/kd.c
123
tp->t_oproc = kdstart;
sys/arch/sun3/dev/kd.c
124
tp->t_param = kdparam;
sys/arch/sun3/dev/kd.c
125
tp->t_dev = makedev(cdevsw_lookup_major(&kd_cdevsw), 0);
sys/arch/sun3/dev/kd.c
127
tty_attach(tp);
sys/arch/sun3/dev/kd.c
128
kd->kd_tty = tp;
sys/arch/sun3/dev/kd.c
147
struct tty *tp;
sys/arch/sun3/dev/kd.c
158
tp = kd->kd_tty;
sys/arch/sun3/dev/kd.c
161
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/sun3/dev/kd.c
166
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/arch/sun3/dev/kd.c
176
ttychars(tp);
sys/arch/sun3/dev/kd.c
177
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/sun3/dev/kd.c
178
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/sun3/dev/kd.c
179
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/sun3/dev/kd.c
180
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/sun3/dev/kd.c
181
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/arch/sun3/dev/kd.c
182
(void) kdparam(tp, &tp->t_termios);
sys/arch/sun3/dev/kd.c
183
ttsetwater(tp);
sys/arch/sun3/dev/kd.c
186
tp->t_state |= TS_CARR_ON;
sys/arch/sun3/dev/kd.c
191
return ((*tp->t_linesw->l_open)(dev, tp));
sys/arch/sun3/dev/kd.c
198
struct tty *tp;
sys/arch/sun3/dev/kd.c
202
tp = kd->kd_tty;
sys/arch/sun3/dev/kd.c
205
if ((tp->t_state & TS_ISOPEN) == 0)
sys/arch/sun3/dev/kd.c
208
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/sun3/dev/kd.c
209
ttyclose(tp);
sys/arch/sun3/dev/kd.c
219
struct tty *tp;
sys/arch/sun3/dev/kd.c
222
tp = kd->kd_tty;
sys/arch/sun3/dev/kd.c
224
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/arch/sun3/dev/kd.c
231
struct tty *tp;
sys/arch/sun3/dev/kd.c
234
tp = kd->kd_tty;
sys/arch/sun3/dev/kd.c
236
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/arch/sun3/dev/kd.c
243
struct tty *tp;
sys/arch/sun3/dev/kd.c
246
tp = kd->kd_tty;
sys/arch/sun3/dev/kd.c
248
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/sun3/dev/kd.c
255
struct tty *tp;
sys/arch/sun3/dev/kd.c
259
tp = kd->kd_tty;
sys/arch/sun3/dev/kd.c
261
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/sun3/dev/kd.c
265
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/sun3/dev/kd.c
277
kdparam(struct tty *tp, struct termios *t)
sys/arch/sun3/dev/kd.c
280
tp->t_ispeed = t->c_ispeed;
sys/arch/sun3/dev/kd.c
281
tp->t_ospeed = t->c_ospeed;
sys/arch/sun3/dev/kd.c
282
tp->t_cflag = t->c_cflag;
sys/arch/sun3/dev/kd.c
290
kdstart(struct tty *tp)
sys/arch/sun3/dev/kd.c
297
if (tp->t_state & (TS_BUSY|TS_TTSTOP|TS_TIMEOUT))
sys/arch/sun3/dev/kd.c
300
cl = &tp->t_outq;
sys/arch/sun3/dev/kd.c
301
if (ttypull(tp)) {
sys/arch/sun3/dev/kd.c
303
tp->t_state |= TS_BUSY;
sys/arch/sun3/dev/kd.c
307
kd_putfb(tp);
sys/arch/sun3/dev/kd.c
309
tp->t_state &= ~TS_BUSY;
sys/arch/sun3/dev/kd.c
312
callout_schedule(&tp->t_rstrt_ch, 0);
sys/arch/sun3/dev/kd.c
336
struct tty *tp = tpaddr;
sys/arch/sun3/dev/kd.c
339
kd_putfb(tp);
sys/arch/sun3/dev/kd.c
342
tp->t_state &= ~TS_BUSY;
sys/arch/sun3/dev/kd.c
343
(*tp->t_linesw->l_start)(tp);
sys/arch/sun3/dev/kd.c
353
kd_putfb(struct tty *tp)
sys/arch/sun3/dev/kd.c
356
struct clist *cl = &tp->t_outq;
sys/arch/sun3/dev/kd.c
409
struct tty *tp;
sys/arch/sun3/dev/kd.c
412
tp = kd->kd_tty;
sys/arch/sun3/dev/kd.c
413
if (tp == NULL)
sys/arch/sun3/dev/kd.c
415
if ((tp->t_state & TS_ISOPEN) == 0)
sys/arch/sun3/dev/kd.c
418
(*tp->t_linesw->l_rint)(c, tp);
sys/arch/sun68k/sun68k/vme_sun68k.c
221
vme_datasize_t datasize, vme_swap_t swap, bus_space_tag_t *tp,
sys/arch/sun68k/sun68k/vme_sun68k.c
233
*tp = sc->sc_bustag;
sys/arch/usermode/usermode/thunk.c
269
thunk_gettimeofday(struct thunk_timeval *tp, void *tzp)
sys/arch/usermode/usermode/thunk.c
278
thunk_from_timeval(&tv, tp);
sys/arch/vax/uba/qvaux.c
397
struct tty *tp;
sys/arch/vax/uba/qvaux.c
419
tp = sc->sc_qvaux[line].qvaux_tty;
sys/arch/vax/uba/qvaux.c
434
cn_check_magic(tp->t_dev, mcc, qvaux_cnm_state);
sys/arch/vax/uba/qvaux.c
436
if (!(tp->t_state & TS_ISOPEN)) {
sys/arch/vax/uba/qvaux.c
437
cv_broadcast(&tp->t_rawcv);
sys/arch/vax/uba/qvaux.c
452
(*tp->t_linesw->l_rint)(cc, tp);
sys/arch/vax/uba/qvaux.c
462
struct tty *tp;
sys/arch/vax/uba/qvaux.c
479
tp = sc->sc_qvaux[line].qvaux_tty;
sys/arch/vax/uba/qvaux.c
480
cl = &tp->t_outq;
sys/arch/vax/uba/qvaux.c
481
tp->t_state &= ~TS_BUSY;
sys/arch/vax/uba/qvaux.c
487
tp->t_state |= TS_BUSY;
sys/arch/vax/uba/qvaux.c
499
if (tp->t_state & TS_FLUSH)
sys/arch/vax/uba/qvaux.c
500
tp->t_state &= ~TS_FLUSH;
sys/arch/vax/uba/qvaux.c
502
ndflush (&tp->t_outq, cl->c_cc);
sys/arch/vax/uba/qvaux.c
504
(*tp->t_linesw->l_start)(tp);
sys/arch/vax/uba/qvaux.c
514
struct tty *tp;
sys/arch/vax/uba/qvaux.c
524
tp = sc->sc_qvaux[line].qvaux_tty;
sys/arch/vax/uba/qvaux.c
525
if (tp == NULL)
sys/arch/vax/uba/qvaux.c
528
tp->t_oproc = qvauxstart;
sys/arch/vax/uba/qvaux.c
529
tp->t_param = qvauxparam;
sys/arch/vax/uba/qvaux.c
530
tp->t_dev = dev;
sys/arch/vax/uba/qvaux.c
532
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/vax/uba/qvaux.c
535
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/arch/vax/uba/qvaux.c
536
ttychars(tp);
sys/arch/vax/uba/qvaux.c
537
if (tp->t_ispeed == 0) {
sys/arch/vax/uba/qvaux.c
538
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/vax/uba/qvaux.c
539
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/vax/uba/qvaux.c
540
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/vax/uba/qvaux.c
541
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/vax/uba/qvaux.c
542
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/arch/vax/uba/qvaux.c
544
(void) qvauxparam(tp, &tp->t_termios);
sys/arch/vax/uba/qvaux.c
545
ttsetwater(tp);
sys/arch/vax/uba/qvaux.c
550
tp->t_state |= TS_CARR_ON;
sys/arch/vax/uba/qvaux.c
551
ttylock(tp);
sys/arch/vax/uba/qvaux.c
552
while (!(flag & O_NONBLOCK) && !(tp->t_cflag & CLOCAL) &&
sys/arch/vax/uba/qvaux.c
553
!(tp->t_state & TS_CARR_ON)) {
sys/arch/vax/uba/qvaux.c
554
tp->t_wopen++;
sys/arch/vax/uba/qvaux.c
555
error = ttysleep(tp, &tp->t_rawcv, true, 0);
sys/arch/vax/uba/qvaux.c
556
tp->t_wopen--;
sys/arch/vax/uba/qvaux.c
560
ttyunlock(tp);
sys/arch/vax/uba/qvaux.c
563
return ((*tp->t_linesw->l_open)(dev, tp));
sys/arch/vax/uba/qvaux.c
573
struct tty *tp = sc->sc_qvaux[line].qvaux_tty;
sys/arch/vax/uba/qvaux.c
575
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/vax/uba/qvaux.c
581
if ((tp->t_cflag & HUPCL) || tp->t_wopen || !(tp->t_state & TS_ISOPEN))
sys/arch/vax/uba/qvaux.c
584
return ttyclose(tp);
sys/arch/vax/uba/qvaux.c
592
struct tty *tp = sc->sc_qvaux[QVA_PORT(minor(dev))].qvaux_tty;
sys/arch/vax/uba/qvaux.c
594
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/arch/vax/uba/qvaux.c
602
struct tty *tp = sc->sc_qvaux[QVA_PORT(minor(dev))].qvaux_tty;
sys/arch/vax/uba/qvaux.c
604
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/arch/vax/uba/qvaux.c
612
struct tty *tp = sc->sc_qvaux[QVA_PORT(minor(dev))].qvaux_tty;
sys/arch/vax/uba/qvaux.c
614
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/vax/uba/qvaux.c
624
struct tty *tp = sc->sc_qvaux[line].qvaux_tty;
sys/arch/vax/uba/qvaux.c
627
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/vax/uba/qvaux.c
631
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/vax/uba/qvaux.c
685
qvauxstop(struct tty *tp, int flag)
sys/arch/vax/uba/qvaux.c
687
if ((tp->t_state & (TS_BUSY | TS_TTSTOP)) == TS_BUSY)
sys/arch/vax/uba/qvaux.c
688
tp->t_state |= TS_FLUSH;
sys/arch/vax/uba/qvaux.c
692
qvauxstart(struct tty *tp)
sys/arch/vax/uba/qvaux.c
699
if (tp->t_state & (TS_TIMEOUT|TS_BUSY|TS_TTSTOP)) {
sys/arch/vax/uba/qvaux.c
703
if (!ttypull(tp)) {
sys/arch/vax/uba/qvaux.c
708
line = QVA_PORT(minor(tp->t_dev));
sys/arch/vax/uba/qvaux.c
709
sc = device_lookup_private(&qvaux_cd, QVA_I2C(minor(tp->t_dev)));
sys/arch/vax/uba/qvaux.c
711
tp->t_state |= TS_BUSY;
sys/arch/vax/uba/qvaux.c
719
qvauxparam(struct tty *tp, struct termios *t)
sys/arch/vax/uba/qvaux.c
722
QVA_I2C(minor(tp->t_dev)));
sys/arch/vax/uba/qvaux.c
723
const int line = QVA_PORT(minor(tp->t_dev));
sys/arch/vax/uba/qvaux.c
735
tp->t_ispeed = t->c_ispeed;
sys/arch/vax/uba/qvaux.c
736
tp->t_ospeed = t->c_ospeed;
sys/arch/vax/uba/qvaux.c
737
tp->t_cflag = cflag;
sys/arch/vax/uba/qvaux.c
877
struct tty *tp;
sys/arch/vax/uba/qvaux.c
881
tp = sc->sc_qvaux[i].qvaux_tty;
sys/arch/vax/uba/qvaux.c
883
if (((tp->t_state & TS_ISOPEN) == 0) || (tp->t_wopen == 0))
sys/arch/vax/uba/qvaux.c
886
qvauxparam(tp, &tp->t_termios);
sys/arch/vax/uba/qvaux.c
888
tp->t_state &= ~TS_BUSY;
sys/arch/vax/uba/qvaux.c
889
qvauxstart(tp); /* Kick off transmitter again */
sys/arch/vax/vax/gencons.c
105
struct tty *tp;
sys/arch/vax/vax/gencons.c
116
tp = gc_softc[unit].gencn_tty;
sys/arch/vax/vax/gencons.c
118
tp->t_oproc = gencnstart;
sys/arch/vax/vax/gencons.c
119
tp->t_param = gencnparam;
sys/arch/vax/vax/gencons.c
120
tp->t_dev = dev;
sys/arch/vax/vax/gencons.c
122
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/vax/vax/gencons.c
125
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/arch/vax/vax/gencons.c
126
ttychars(tp);
sys/arch/vax/vax/gencons.c
127
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/vax/vax/gencons.c
128
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/vax/vax/gencons.c
129
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/vax/vax/gencons.c
130
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/vax/vax/gencons.c
131
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/arch/vax/vax/gencons.c
132
gencnparam(tp, &tp->t_termios);
sys/arch/vax/vax/gencons.c
133
ttsetwater(tp);
sys/arch/vax/vax/gencons.c
135
tp->t_state |= TS_CARR_ON;
sys/arch/vax/vax/gencons.c
137
return ((*tp->t_linesw->l_open)(dev, tp));
sys/arch/vax/vax/gencons.c
143
struct tty *tp = gc_softc[minor(dev)].gencn_tty;
sys/arch/vax/vax/gencons.c
145
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/vax/vax/gencons.c
146
ttyclose(tp);
sys/arch/vax/vax/gencons.c
160
struct tty *tp = gc_softc[minor(dev)].gencn_tty;
sys/arch/vax/vax/gencons.c
162
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/arch/vax/vax/gencons.c
168
struct tty *tp = gc_softc[minor(dev)].gencn_tty;
sys/arch/vax/vax/gencons.c
170
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/arch/vax/vax/gencons.c
176
struct tty *tp = gc_softc[minor(dev)].gencn_tty;
sys/arch/vax/vax/gencons.c
178
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/vax/vax/gencons.c
184
struct tty *tp = gc_softc[minor(dev)].gencn_tty;
sys/arch/vax/vax/gencons.c
187
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/vax/vax/gencons.c
190
return ttioctl(tp, cmd, data, flag, l);
sys/arch/vax/vax/gencons.c
194
gencnstart(struct tty *tp)
sys/arch/vax/vax/gencons.c
205
if (tp->t_state & (TS_BUSY|TS_TTSTOP|TS_TIMEOUT))
sys/arch/vax/vax/gencons.c
207
cl = &tp->t_outq;
sys/arch/vax/vax/gencons.c
209
if (ttypull(tp)) {
sys/arch/vax/vax/gencons.c
210
tp->t_state |= TS_BUSY;
sys/arch/vax/vax/gencons.c
212
mtpr(ch, pr_txdb[minor(tp->t_dev)]);
sys/arch/vax/vax/gencons.c
222
struct tty *tp = sc->gencn_tty;
sys/arch/vax/vax/gencons.c
231
if (tp->t_dev == cn_tab->cn_dev) {
sys/arch/vax/vax/gencons.c
240
(*tp->t_linesw->l_rint)(27, tp);
sys/arch/vax/vax/gencons.c
244
(*tp->t_linesw->l_rint)(i, tp);
sys/arch/vax/vax/gencons.c
252
struct tty *tp = sc->gencn_tty;
sys/arch/vax/vax/gencons.c
257
tp->t_state &= ~TS_BUSY;
sys/arch/vax/vax/gencons.c
259
gencnstart(tp);
sys/arch/vax/vax/gencons.c
264
gencnparam(struct tty *tp, struct termios *t)
sys/arch/vax/vax/gencons.c
267
tp->t_ispeed = t->c_ispeed;
sys/arch/vax/vax/gencons.c
268
tp->t_ospeed = t->c_ospeed;
sys/arch/vax/vax/gencons.c
269
tp->t_cflag = t->c_cflag;
sys/arch/x68k/dev/ite.c
369
struct tty *tp;
sys/arch/x68k/dev/ite.c
377
tp = ite_tty[unit] = tty_alloc();
sys/arch/x68k/dev/ite.c
378
tty_attach(tp);
sys/arch/x68k/dev/ite.c
380
tp = ite_tty[unit];
sys/arch/x68k/dev/ite.c
381
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/x68k/dev/ite.c
389
tp->t_oproc = itestart;
sys/arch/x68k/dev/ite.c
390
tp->t_param = NULL;
sys/arch/x68k/dev/ite.c
391
tp->t_dev = dev;
sys/arch/x68k/dev/ite.c
392
if ((tp->t_state&TS_ISOPEN) == 0) {
sys/arch/x68k/dev/ite.c
393
ttychars(tp);
sys/arch/x68k/dev/ite.c
394
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/x68k/dev/ite.c
395
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/x68k/dev/ite.c
396
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/x68k/dev/ite.c
397
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/x68k/dev/ite.c
398
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/arch/x68k/dev/ite.c
399
tp->t_state = TS_ISOPEN|TS_CARR_ON;
sys/arch/x68k/dev/ite.c
400
ttsetwater(tp);
sys/arch/x68k/dev/ite.c
402
error = (*tp->t_linesw->l_open)(dev, tp);
sys/arch/x68k/dev/ite.c
404
tp->t_winsize.ws_row = ip->rows;
sys/arch/x68k/dev/ite.c
405
tp->t_winsize.ws_col = ip->cols;
sys/arch/x68k/dev/ite.c
415
struct tty *tp = ite_tty[UNIT(dev)];
sys/arch/x68k/dev/ite.c
417
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/x68k/dev/ite.c
418
ttyclose(tp);
sys/arch/x68k/dev/ite.c
421
tty_free(tp);
sys/arch/x68k/dev/ite.c
430
struct tty *tp = ite_tty[UNIT(dev)];
sys/arch/x68k/dev/ite.c
432
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/arch/x68k/dev/ite.c
438
struct tty *tp = ite_tty[UNIT(dev)];
sys/arch/x68k/dev/ite.c
440
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/arch/x68k/dev/ite.c
446
struct tty *tp = ite_tty[UNIT(dev)];
sys/arch/x68k/dev/ite.c
448
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/x68k/dev/ite.c
462
struct tty *tp = ite_tty[UNIT(dev)];
sys/arch/x68k/dev/ite.c
465
error = (*tp->t_linesw->l_ioctl)(tp, cmd, addr, flag, l);
sys/arch/x68k/dev/ite.c
469
error = ttioctl(tp, cmd, addr, flag, l);
sys/arch/x68k/dev/ite.c
518
itestart(struct tty *tp)
sys/arch/x68k/dev/ite.c
524
getitesp(tp->t_dev);
sys/arch/x68k/dev/ite.c
531
if ((tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP)) != 0)
sys/arch/x68k/dev/ite.c
533
tp->t_state |= TS_BUSY;
sys/arch/x68k/dev/ite.c
534
rbp = &tp->t_outq;
sys/arch/x68k/dev/ite.c
539
ite_putstr(buf, len, tp->t_dev);
sys/arch/x68k/dev/ite.c
542
tp->t_state &= ~TS_BUSY;
sys/arch/x68k/dev/ite.c
544
if (ttypull(tp)) {
sys/arch/x68k/dev/ite.c
545
tp->t_state |= TS_TIMEOUT;
sys/arch/x68k/dev/ite.c
546
callout_schedule(&tp->t_rstrt_ch, 1);
sys/arch/x86/x86/x86_tlb.c
100
#define TP_SET_VA(tp, c, va) ((tp)->tp_store[(c)] |= ((va) & ~PAGE_MASK))
sys/arch/x86/x86/x86_tlb.c
102
#define TP_SET_USERPMAP(tp) ((tp)->tp_store[TP_USERPMAP] |= 1)
sys/arch/x86/x86/x86_tlb.c
103
#define TP_SET_GLOBAL(tp) ((tp)->tp_store[TP_GLOBAL] |= 1)
sys/arch/x86/x86/x86_tlb.c
104
#define TP_SET_DONE(tp) \
sys/arch/x86/x86/x86_tlb.c
106
uintptr_t v = atomic_load_relaxed(&(tp)->tp_store[TP_DONE]); \
sys/arch/x86/x86/x86_tlb.c
107
atomic_store_relaxed(&(tp)->tp_store[TP_DONE], v | 1); \
sys/arch/x86/x86/x86_tlb.c
110
#define TP_CLEAR(tp) memset(__UNVOLATILE(tp), 0, sizeof(*(tp)));
sys/arch/x86/x86/x86_tlb.c
175
pmap_tlb_packet_t *tp = (pmap_tlb_packet_t *)ci->ci_pmap_data;
sys/arch/x86/x86/x86_tlb.c
177
memset(tp, 0, sizeof(pmap_tlb_packet_t));
sys/arch/x86/x86/x86_tlb.c
213
pmap_tlb_invalidate(volatile pmap_tlb_packet_t *tp)
sys/arch/x86/x86/x86_tlb.c
215
int i = TP_GET_COUNT(tp);
sys/arch/x86/x86/x86_tlb.c
219
if (TP_GET_GLOBAL(tp) != 0) {
sys/arch/x86/x86/x86_tlb.c
231
pmap_update_pg(TP_GET_VA(tp, i));
sys/arch/x86/x86/x86_tlb.c
242
pmap_tlb_packet_t *tp;
sys/arch/x86/x86/x86_tlb.c
265
tp = (pmap_tlb_packet_t *)ci->ci_pmap_data;
sys/arch/x86/x86/x86_tlb.c
269
TP_SET_GLOBAL(tp);
sys/arch/x86/x86/x86_tlb.c
271
count = TP_GET_COUNT(tp);
sys/arch/x86/x86/x86_tlb.c
275
TP_SET_VA(tp, count, va);
sys/arch/x86/x86/x86_tlb.c
276
TP_INC_COUNT(tp);
sys/arch/x86/x86/x86_tlb.c
279
TP_SET_ALLVA(tp);
sys/arch/x86/x86/x86_tlb.c
287
TP_SET_USERPMAP(tp);
sys/arch/x86/x86/x86_tlb.c
298
pmap_tlb_processpacket(volatile pmap_tlb_packet_t *tp, kcpuset_t *target)
sys/arch/x86/x86/x86_tlb.c
301
int i = TP_GET_COUNT(tp);
sys/arch/x86/x86/x86_tlb.c
308
xen_mcast_invlpg(TP_GET_VA(tp, i), target);
sys/arch/x86/x86/x86_tlb.c
317
TP_SET_DONE(tp);
sys/arch/x86/x86/x86_tlb.c
324
pmap_tlb_processpacket(volatile pmap_tlb_packet_t *tp, kcpuset_t *target)
sys/arch/x86/x86/x86_tlb.c
362
volatile pmap_tlb_packet_t *tp, *ts;
sys/arch/x86/x86/x86_tlb.c
363
volatile uint8_t stackbuf[sizeof(*tp) + COHERENCY_UNIT];
sys/arch/x86/x86/x86_tlb.c
374
tp = (pmap_tlb_packet_t *)ci->ci_pmap_data;
sys/arch/x86/x86/x86_tlb.c
375
if (TP_GET_COUNT(tp) == 0) {
sys/arch/x86/x86/x86_tlb.c
381
if (TP_GET_COUNT(tp) == 0) {
sys/arch/x86/x86/x86_tlb.c
396
pmap_tlb_invalidate(tp);
sys/arch/x86/x86/x86_tlb.c
398
TP_CLEAR(tp);
sys/arch/x86/x86/x86_tlb.c
411
*ts = *tp;
sys/arch/x86/x86/x86_tlb.c
432
if (TP_GET_COUNT(tp) == 0) {
sys/arch/x86/x86/x86_tlb.c
447
KASSERT(memcmp(__UNVOLATILE(ts), __UNVOLATILE(tp),
sys/arch/x86/x86/x86_tlb.c
465
if (TP_GET_COUNT(tp) != TP_ALLVA) {
sys/arch/x86/x86/x86_tlb.c
467
TP_GET_COUNT(tp));
sys/arch/x86/x86/x86_tlb.c
471
TP_CLEAR(tp);
sys/arch/x86/x86/x86_tlb.c
92
#define TP_GET_COUNT(tp) ((tp)->tp_store[TP_COUNT] & PAGE_MASK)
sys/arch/x86/x86/x86_tlb.c
93
#define TP_GET_USERPMAP(tp) ((tp)->tp_store[TP_USERPMAP] & 1)
sys/arch/x86/x86/x86_tlb.c
94
#define TP_GET_GLOBAL(tp) ((tp)->tp_store[TP_GLOBAL] & 1)
sys/arch/x86/x86/x86_tlb.c
95
#define TP_GET_DONE(tp) (atomic_load_relaxed(&(tp)->tp_store[TP_DONE]) & 1)
sys/arch/x86/x86/x86_tlb.c
96
#define TP_GET_VA(tp, i) ((tp)->tp_store[(i)] & ~PAGE_MASK)
sys/arch/x86/x86/x86_tlb.c
98
#define TP_INC_COUNT(tp) ((tp)->tp_store[TP_COUNT]++)
sys/arch/x86/x86/x86_tlb.c
99
#define TP_SET_ALLVA(tp) ((tp)->tp_store[TP_COUNT] |= TP_ALLVA)
sys/arch/xen/xen/xen_clock.c
197
xen_vcputime_enter(struct xen_vcputime_ticket *tp)
sys/arch/xen/xen/xen_clock.c
201
while (__predict_false(1 & (tp->version = vt->version)))
sys/arch/xen/xen/xen_clock.c
223
struct xen_vcputime_ticket *tp)
sys/arch/xen/xen/xen_clock.c
235
return tp->version == vt->version;
sys/arch/xen/xen/xen_clock.c
464
xen_wallclock_enter(struct xen_wallclock_ticket *tp)
sys/arch/xen/xen/xen_clock.c
467
while (__predict_false(1 & (tp->version =
sys/arch/xen/xen/xen_clock.c
487
xen_wallclock_exit(struct xen_wallclock_ticket *tp)
sys/arch/xen/xen/xen_clock.c
496
return tp->version == HYPERVISOR_shared_info->wc_version;
sys/arch/xen/xen/xencons.c
261
struct tty *tp;
sys/arch/xen/xen/xencons.c
267
tp = sc->sc_tty;
sys/arch/xen/xen/xencons.c
269
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/arch/xen/xen/xencons.c
272
if ((tp->t_state & TS_ISOPEN) == 0 && tp->t_wopen == 0) {
sys/arch/xen/xen/xencons.c
273
tp->t_dev = dev;
sys/arch/xen/xen/xencons.c
274
ttychars(tp);
sys/arch/xen/xen/xencons.c
275
tp->t_iflag = TTYDEF_IFLAG;
sys/arch/xen/xen/xencons.c
276
tp->t_oflag = TTYDEF_OFLAG;
sys/arch/xen/xen/xencons.c
277
tp->t_cflag = TTYDEF_CFLAG;
sys/arch/xen/xen/xencons.c
278
tp->t_lflag = TTYDEF_LFLAG;
sys/arch/xen/xen/xencons.c
279
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/arch/xen/xen/xencons.c
280
xencons_param(tp, &tp->t_termios);
sys/arch/xen/xen/xencons.c
281
ttsetwater(tp);
sys/arch/xen/xen/xencons.c
283
tp->t_state |= TS_CARR_ON;
sys/arch/xen/xen/xencons.c
285
return ((*tp->t_linesw->l_open)(dev, tp));
sys/arch/xen/xen/xencons.c
293
struct tty *tp = sc->sc_tty;
sys/arch/xen/xen/xencons.c
295
if (tp == NULL)
sys/arch/xen/xen/xencons.c
297
(*tp->t_linesw->l_close)(tp, flag);
sys/arch/xen/xen/xencons.c
298
ttyclose(tp);
sys/arch/xen/xen/xencons.c
300
tty_free(tp);
sys/arch/xen/xen/xencons.c
310
struct tty *tp = sc->sc_tty;
sys/arch/xen/xen/xencons.c
312
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/arch/xen/xen/xencons.c
320
struct tty *tp = sc->sc_tty;
sys/arch/xen/xen/xencons.c
322
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/arch/xen/xen/xencons.c
330
struct tty *tp = sc->sc_tty;
sys/arch/xen/xen/xencons.c
332
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/xen/xen/xencons.c
340
struct tty *tp = sc->sc_tty;
sys/arch/xen/xen/xencons.c
342
return (tp);
sys/arch/xen/xen/xencons.c
350
struct tty *tp = sc->sc_tty;
sys/arch/xen/xen/xencons.c
353
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/arch/xen/xen/xencons.c
357
error = ttioctl(tp, cmd, data, flag, l);
sys/arch/xen/xen/xencons.c
372
xencons_start(struct tty *tp)
sys/arch/xen/xen/xencons.c
378
if (tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP))
sys/arch/xen/xen/xencons.c
380
tp->t_state |= TS_BUSY;
sys/arch/xen/xen/xencons.c
387
cl = &tp->t_outq;
sys/arch/xen/xen/xencons.c
429
tp->t_state &= ~TS_BUSY;
sys/arch/xen/xen/xencons.c
430
if (ttypull(tp)) {
sys/arch/xen/xen/xencons.c
431
tp->t_state |= TS_TIMEOUT;
sys/arch/xen/xen/xencons.c
432
callout_schedule(&tp->t_rstrt_ch, 1);
sys/arch/xen/xen/xencons.c
439
xencons_stop(struct tty *tp, int flag)
sys/arch/xen/xen/xencons.c
494
struct tty *tp;
sys/arch/xen/xen/xencons.c
497
tp = sc->sc_tty;
sys/arch/xen/xen/xencons.c
498
if (tp == NULL)
sys/arch/xen/xen/xencons.c
503
(*tp->t_linesw->l_rint)(buf[i], tp);
sys/arch/xen/xen/xencons.c
635
xencons_param(struct tty *tp, struct termios *t)
sys/arch/xen/xen/xencons.c
638
tp->t_ispeed = t->c_ispeed;
sys/arch/xen/xen/xencons.c
639
tp->t_ospeed = t->c_ospeed;
sys/arch/xen/xen/xencons.c
640
tp->t_cflag = t->c_cflag;
sys/arch/zaurus/dev/ztp.c
504
struct ztp_pos tp = { 0, 0, 0 };
sys/arch/zaurus/dev/ztp.c
522
down = ztp_readpos(sc, &tp);
sys/arch/zaurus/dev/ztp.c
524
device_xname(sc->sc_dev), tp.x, tp.y, tp.z, down));
sys/arch/zaurus/dev/ztp.c
536
tpcalib_trans(&sc->sc_tpcalib, tp.x, tp.y, &x, &y);
sys/arch/zaurus/dev/ztp.c
539
tp.x = x;
sys/arch/zaurus/dev/ztp.c
540
tp.y = y;
sys/arch/zaurus/dev/ztp.c
555
tp = sc->sc_oldpos;
sys/arch/zaurus/dev/ztp.c
559
wsmouse_input(sc->sc_wsmousedev, down, tp.x, tp.y, 0, 0,
sys/arch/zaurus/dev/ztp.c
562
sc->sc_oldpos = tp;
sys/coda/coda_vnops.c
1089
struct cnode *tp;
sys/coda/coda_vnops.c
1106
tp = coda_nc_lookup(VTOC(dvp), nm, len, cred);
sys/coda/coda_vnops.c
1107
if (tp) {
sys/coda/coda_vnops.c
1108
if (VALID_VATTR(tp)) { /* If attrs are cached */
sys/coda/coda_vnops.c
1109
if (tp->c_vattr.va_nlink > 1) { /* If it's a hard link */
sys/coda/coda_vnops.c
1110
tp->c_vattr.va_nlink--;
sys/compat/common/clockctl_50.c
102
struct timespec tp;
sys/compat/common/clockctl_50.c
105
error = copyin(args->tp, &tp50, sizeof(tp50));
sys/compat/common/clockctl_50.c
108
timespec50_to_timespec(&tp50, &tp);
sys/compat/common/clockctl_50.c
109
error = clock_settime1(l->l_proc, args->clock_id, &tp, true);
sys/compat/common/kern_time_50.c
125
return copyout(&ats50, SCARG(uap, tp), sizeof(ats50));
sys/compat/common/kern_time_50.c
141
error = copyin(SCARG(uap, tp), &ats50, sizeof(ats50));
sys/compat/common/kern_time_50.c
167
if (SCARG(uap, tp)) {
sys/compat/common/kern_time_50.c
169
error = copyout(&ats50, SCARG(uap, tp), sizeof(ats50));
sys/compat/common/kern_time_50.c
217
if (SCARG(uap, tp)) {
sys/compat/common/kern_time_50.c
220
error = copyout(&atv50, SCARG(uap, tp), sizeof(*SCARG(uap, tp)));
sys/compat/common/tty_43.c
123
compat_43_ttioctl(struct tty *tp, u_long com, void *data, int flag,
sys/compat/common/tty_43.c
133
speed = ttspeedtab(tp->t_ospeed, compatspeeds);
sys/compat/common/tty_43.c
135
if (tp->t_ispeed == 0)
sys/compat/common/tty_43.c
138
speed = ttspeedtab(tp->t_ispeed, compatspeeds);
sys/compat/common/tty_43.c
141
sg->sg_erase = tty_getctrlchar(tp, VERASE);
sys/compat/common/tty_43.c
142
sg->sg_kill = tty_getctrlchar(tp, VKILL);
sys/compat/common/tty_43.c
143
sg->sg_flags = ttcompatgetflags(tp);
sys/compat/common/tty_43.c
155
term = tp->t_termios;
sys/compat/common/tty_43.c
166
tp->t_flags = (ttcompatgetflags(tp)&0xffff0000) | (sg->sg_flags&0xffff);
sys/compat/common/tty_43.c
167
ttcompatsetflags(tp, &term);
sys/compat/common/tty_43.c
169
return (ttioctl(tp, com == TIOCSETP ? TIOCSETAF : TIOCSETA,
sys/compat/common/tty_43.c
176
tc->t_intrc = tty_getctrlchar(tp, VINTR);
sys/compat/common/tty_43.c
177
tc->t_quitc = tty_getctrlchar(tp, VQUIT);
sys/compat/common/tty_43.c
178
tc->t_startc = tty_getctrlchar(tp, VSTART);
sys/compat/common/tty_43.c
179
tc->t_stopc = tty_getctrlchar(tp, VSTOP);
sys/compat/common/tty_43.c
180
tc->t_eofc = tty_getctrlchar(tp, VEOF);
sys/compat/common/tty_43.c
181
tc->t_brkc = tty_getctrlchar(tp, VEOL);
sys/compat/common/tty_43.c
187
tty_setctrlchar(tp, VINTR, tc->t_intrc);
sys/compat/common/tty_43.c
188
tty_setctrlchar(tp, VQUIT, tc->t_quitc);
sys/compat/common/tty_43.c
189
tty_setctrlchar(tp, VSTART, tc->t_startc);
sys/compat/common/tty_43.c
190
tty_setctrlchar(tp, VSTOP, tc->t_stopc);
sys/compat/common/tty_43.c
191
tty_setctrlchar(tp, VEOF, tc->t_eofc);
sys/compat/common/tty_43.c
192
tty_setctrlchar(tp, VEOL, tc->t_brkc);
sys/compat/common/tty_43.c
194
tty_setctrlchar(tp, VEOL2, _POSIX_VDISABLE);
sys/compat/common/tty_43.c
200
tty_setctrlchar(tp, VSUSP, ltc->t_suspc);
sys/compat/common/tty_43.c
201
tty_setctrlchar(tp, VDSUSP, ltc->t_dsuspc);
sys/compat/common/tty_43.c
202
tty_setctrlchar(tp, VREPRINT, ltc->t_rprntc);
sys/compat/common/tty_43.c
203
tty_setctrlchar(tp, VDISCARD, ltc->t_flushc);
sys/compat/common/tty_43.c
204
tty_setctrlchar(tp, VWERASE, ltc->t_werasc);
sys/compat/common/tty_43.c
205
tty_setctrlchar(tp, VLNEXT, ltc->t_lnextc);
sys/compat/common/tty_43.c
211
ltc->t_suspc = tty_getctrlchar(tp, VSUSP);
sys/compat/common/tty_43.c
212
ltc->t_dsuspc = tty_getctrlchar(tp, VDSUSP);
sys/compat/common/tty_43.c
213
ltc->t_rprntc = tty_getctrlchar(tp, VREPRINT);
sys/compat/common/tty_43.c
214
ltc->t_flushc = tty_getctrlchar(tp, VDISCARD);
sys/compat/common/tty_43.c
215
ltc->t_werasc = tty_getctrlchar(tp, VWERASE);
sys/compat/common/tty_43.c
216
ltc->t_lnextc = tty_getctrlchar(tp, VLNEXT);
sys/compat/common/tty_43.c
228
term = tp->t_termios;
sys/compat/common/tty_43.c
229
flags = ttcompatgetflags(tp);
sys/compat/common/tty_43.c
232
tp->t_flags = (flags & 0xffff) | (argbits << 16);
sys/compat/common/tty_43.c
235
tp->t_flags = flags | (argbits << 16);
sys/compat/common/tty_43.c
238
tp->t_flags = flags & ~(argbits << 16);
sys/compat/common/tty_43.c
241
ttcompatsetlflags(tp, &term);
sys/compat/common/tty_43.c
243
return (ttioctl(tp, TIOCSETA, (void *)&term, flag, l));
sys/compat/common/tty_43.c
247
*(int *)data = ttcompatgetflags(tp)>>16;
sys/compat/common/tty_43.c
255
*(int *)data = (tp->t_linesw == NULL || tp->t_linesw->l_no == 0)
sys/compat/common/tty_43.c
256
? 2 /* XXX old NTTYDISC */ : tp->t_linesw->l_no;
sys/compat/common/tty_43.c
263
return (ttioctl(tp, TIOCSETD,
sys/compat/common/tty_43.c
270
return (ttioctl(tp, TIOCCONS, data, flag, l));
sys/compat/common/tty_43.c
274
SET(tp->t_cflag, HUPCL);
sys/compat/common/tty_43.c
285
ttcompatgetflags(struct tty *tp)
sys/compat/common/tty_43.c
287
tcflag_t iflag = tp->t_iflag;
sys/compat/common/tty_43.c
288
tcflag_t lflag = tp->t_lflag;
sys/compat/common/tty_43.c
289
tcflag_t oflag = tp->t_oflag;
sys/compat/common/tty_43.c
290
tcflag_t cflag = tp->t_cflag;
sys/compat/common/tty_43.c
319
SET(flags, ISSET(tp->t_flags, LITOUT|PASS8));
sys/compat/common/tty_43.c
350
ttcompatsetflags(struct tty *tp, struct termios *t)
sys/compat/common/tty_43.c
352
int flags = tp->t_flags;
sys/compat/common/tty_43.c
439
ttcompatsetlflags(struct tty *tp, struct termios *t)
sys/compat/common/tty_43.c
441
int flags = tp->t_flags;
sys/compat/common/tty_60.c
104
compat_60_ttioctl(struct tty *tp, u_long cmd, void *data, int flag,
sys/compat/common/tty_60.c
111
return compat_60_ptmget_ioctl(tp->t_dev, cmd, data, flag, l);
sys/compat/freebsd/freebsd_syscallargs.h
376
syscallarg(struct freebsd_timex *) tp;
sys/compat/linux/arch/aarch64/linux_syscallargs.h
521
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/aarch64/linux_syscallargs.h
527
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/aarch64/linux_syscallargs.h
533
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/aarch64/linux_syscallargs.h
780
syscallarg(struct timeval50 *) tp;
sys/compat/linux/arch/aarch64/linux_syscallargs.h
786
syscallarg(struct timeval50 *) tp;
sys/compat/linux/arch/aarch64/linux_systrace_args.c
1210
uarg[0] = (intptr_t) SCARG(p, tp); /* struct timeval50 * */
sys/compat/linux/arch/aarch64/linux_systrace_args.c
1218
uarg[0] = (intptr_t) SCARG(p, tp); /* struct timeval50 * */
sys/compat/linux/arch/aarch64/linux_systrace_args.c
787
uarg[1] = (intptr_t) SCARG(p, tp); /* struct linux_timespec * */
sys/compat/linux/arch/aarch64/linux_systrace_args.c
795
uarg[1] = (intptr_t) SCARG(p, tp); /* struct linux_timespec * */
sys/compat/linux/arch/aarch64/linux_systrace_args.c
803
uarg[1] = (intptr_t) SCARG(p, tp); /* struct linux_timespec * */
sys/compat/linux/arch/alpha/linux_syscallargs.h
1019
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/alpha/linux_syscallargs.h
1025
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/alpha/linux_syscallargs.h
1031
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/alpha/linux_syscallargs.h
788
syscallarg(struct timeval50 *) tp;
sys/compat/linux/arch/alpha/linux_syscallargs.h
794
syscallarg(struct timeval50 *) tp;
sys/compat/linux/arch/amd64/linux_syscallargs.h
438
syscallarg(struct timeval50 *) tp;
sys/compat/linux/arch/amd64/linux_syscallargs.h
677
syscallarg(struct timeval50 *) tp;
sys/compat/linux/arch/amd64/linux_syscallargs.h
912
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/amd64/linux_syscallargs.h
918
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/amd64/linux_syscallargs.h
924
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/amd64/linux_systrace_args.c
1279
uarg[0] = (intptr_t) SCARG(p, tp); /* struct timeval50 * */
sys/compat/linux/arch/amd64/linux_systrace_args.c
1601
uarg[1] = (intptr_t) SCARG(p, tp); /* struct linux_timespec * */
sys/compat/linux/arch/amd64/linux_systrace_args.c
1609
uarg[1] = (intptr_t) SCARG(p, tp); /* struct linux_timespec * */
sys/compat/linux/arch/amd64/linux_systrace_args.c
1617
uarg[1] = (intptr_t) SCARG(p, tp); /* struct linux_timespec * */
sys/compat/linux/arch/amd64/linux_systrace_args.c
836
uarg[0] = (intptr_t) SCARG(p, tp); /* struct timeval50 * */
sys/compat/linux/arch/arm/linux_syscallargs.h
254
syscallarg(struct timeval50 *) tp;
sys/compat/linux/arch/arm/linux_syscallargs.h
260
syscallarg(struct timeval50 *) tp;
sys/compat/linux/arch/arm/linux_syscallargs.h
977
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/arm/linux_syscallargs.h
983
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/arm/linux_syscallargs.h
989
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/arm/linux_systrace_args.c
1689
uarg[1] = (intptr_t) SCARG(p, tp); /* struct linux_timespec * */
sys/compat/linux/arch/arm/linux_systrace_args.c
1697
uarg[1] = (intptr_t) SCARG(p, tp); /* struct linux_timespec * */
sys/compat/linux/arch/arm/linux_systrace_args.c
1705
uarg[1] = (intptr_t) SCARG(p, tp); /* struct linux_timespec * */
sys/compat/linux/arch/arm/linux_systrace_args.c
484
uarg[0] = (intptr_t) SCARG(p, tp); /* struct timeval50 * */
sys/compat/linux/arch/arm/linux_systrace_args.c
492
uarg[0] = (intptr_t) SCARG(p, tp); /* struct timeval50 * */
sys/compat/linux/arch/i386/linux_syscallargs.h
1024
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/i386/linux_syscallargs.h
1030
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/i386/linux_syscallargs.h
1036
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/i386/linux_syscallargs.h
259
syscallarg(struct timeval50 *) tp;
sys/compat/linux/arch/i386/linux_syscallargs.h
265
syscallarg(struct timeval50 *) tp;
sys/compat/linux/arch/i386/linux_systrace_args.c
1752
uarg[1] = (intptr_t) SCARG(p, tp); /* struct linux_timespec * */
sys/compat/linux/arch/i386/linux_systrace_args.c
1760
uarg[1] = (intptr_t) SCARG(p, tp); /* struct linux_timespec * */
sys/compat/linux/arch/i386/linux_systrace_args.c
1768
uarg[1] = (intptr_t) SCARG(p, tp); /* struct linux_timespec * */
sys/compat/linux/arch/i386/linux_systrace_args.c
491
uarg[0] = (intptr_t) SCARG(p, tp); /* struct timeval50 * */
sys/compat/linux/arch/i386/linux_systrace_args.c
499
uarg[0] = (intptr_t) SCARG(p, tp); /* struct timeval50 * */
sys/compat/linux/arch/m68k/linux_syscallargs.h
255
syscallarg(struct timeval50 *) tp;
sys/compat/linux/arch/m68k/linux_syscallargs.h
261
syscallarg(struct timeval50 *) tp;
sys/compat/linux/arch/m68k/linux_syscallargs.h
971
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/m68k/linux_syscallargs.h
977
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/m68k/linux_syscallargs.h
983
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/mips/linux_syscallargs.h
1040
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/mips/linux_syscallargs.h
1046
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/mips/linux_syscallargs.h
1052
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/mips/linux_syscallargs.h
241
syscallarg(struct timeval50 *) tp;
sys/compat/linux/arch/mips/linux_syscallargs.h
247
syscallarg(struct timeval50 *) tp;
sys/compat/linux/arch/powerpc/linux_syscallargs.h
241
syscallarg(struct timeval50 *) tp;
sys/compat/linux/arch/powerpc/linux_syscallargs.h
247
syscallarg(struct timeval50 *) tp;
sys/compat/linux/arch/powerpc/linux_syscallargs.h
910
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/powerpc/linux_syscallargs.h
916
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/arch/powerpc/linux_syscallargs.h
922
syscallarg(struct linux_timespec *) tp;
sys/compat/linux/common/linux_file.c
303
struct tty *tp;
sys/compat/linux/common/linux_file.c
424
if ((tp = cdev_tty(va.va_rdev)) == NULL)
sys/compat/linux/common/linux_file.c
430
retval[0] = tp->t_pgrp ? tp->t_pgrp->pg_id : NO_PGID;
sys/compat/linux/common/linux_file.c
449
tp->t_pgrp = pgrp;
sys/compat/linux/common/linux_time.c
105
if (SCARG(uap, tp)) {
sys/compat/linux/common/linux_time.c
235
return copyout(&lts, SCARG(uap, tp), sizeof lts);
sys/compat/linux/common/linux_time.c
254
error = copyin(SCARG(uap, tp), &lts, sizeof lts);
sys/compat/linux/common/linux_time.c
276
if (error != 0 || SCARG(uap, tp) == NULL)
sys/compat/linux/common/linux_time.c
284
return copyout(&lts, SCARG(uap, tp), sizeof lts);
sys/compat/linux/common/linux_time.c
81
if (SCARG(uap, tp)) {
sys/compat/linux32/arch/aarch64/linux32_syscallargs.h
235
syscallarg(netbsd32_timeval50p_t) tp;
sys/compat/linux32/arch/aarch64/linux32_syscallargs.h
241
syscallarg(netbsd32_timeval50p_t) tp;
sys/compat/linux32/arch/aarch64/linux32_syscallargs.h
849
syscallarg(linux32_timespecp_t) tp;
sys/compat/linux32/arch/aarch64/linux32_syscallargs.h
855
syscallarg(linux32_timespecp_t) tp;
sys/compat/linux32/arch/aarch64/linux32_syscallargs.h
861
syscallarg(linux32_timespecp_t) tp;
sys/compat/linux32/arch/aarch64/linux32_systrace_args.c
1603
uarg[1] = (intptr_t) SCARG(p, tp).i32; /* linux32_timespecp_t */
sys/compat/linux32/arch/aarch64/linux32_systrace_args.c
1611
uarg[1] = (intptr_t) SCARG(p, tp).i32; /* linux32_timespecp_t */
sys/compat/linux32/arch/aarch64/linux32_systrace_args.c
1619
uarg[1] = (intptr_t) SCARG(p, tp).i32; /* linux32_timespecp_t */
sys/compat/linux32/arch/aarch64/linux32_systrace_args.c
459
uarg[0] = (intptr_t) SCARG(p, tp).i32; /* netbsd32_timeval50p_t */
sys/compat/linux32/arch/aarch64/linux32_systrace_args.c
467
uarg[0] = (intptr_t) SCARG(p, tp).i32; /* netbsd32_timeval50p_t */
sys/compat/linux32/arch/amd64/linux32_syscallargs.h
240
syscallarg(netbsd32_timeval50p_t) tp;
sys/compat/linux32/arch/amd64/linux32_syscallargs.h
246
syscallarg(netbsd32_timeval50p_t) tp;
sys/compat/linux32/arch/amd64/linux32_syscallargs.h
884
syscallarg(linux32_timespecp_t) tp;
sys/compat/linux32/arch/amd64/linux32_syscallargs.h
890
syscallarg(linux32_timespecp_t) tp;
sys/compat/linux32/arch/amd64/linux32_syscallargs.h
896
syscallarg(linux32_timespecp_t) tp;
sys/compat/linux32/arch/amd64/linux32_systrace_args.c
1660
uarg[1] = (intptr_t) SCARG(p, tp).i32; /* linux32_timespecp_t */
sys/compat/linux32/arch/amd64/linux32_systrace_args.c
1668
uarg[1] = (intptr_t) SCARG(p, tp).i32; /* linux32_timespecp_t */
sys/compat/linux32/arch/amd64/linux32_systrace_args.c
1676
uarg[1] = (intptr_t) SCARG(p, tp).i32; /* linux32_timespecp_t */
sys/compat/linux32/arch/amd64/linux32_systrace_args.c
466
uarg[0] = (intptr_t) SCARG(p, tp).i32; /* netbsd32_timeval50p_t */
sys/compat/linux32/arch/amd64/linux32_systrace_args.c
474
uarg[0] = (intptr_t) SCARG(p, tp).i32; /* netbsd32_timeval50p_t */
sys/compat/linux32/common/linux32_time.c
123
NETBSD32TOP_UAP(tp, struct timeval50);
sys/compat/linux32/common/linux32_time.c
321
if ((error = copyin(SCARG_P32(uap, tp), &lts, sizeof lts)))
sys/compat/linux32/common/linux32_time.c
350
return copyout(&lts, SCARG_P32(uap, tp), sizeof lts);
sys/compat/linux32/common/linux32_time.c
367
if (error != 0 || SCARG_P32(uap, tp) == NULL)
sys/compat/linux32/common/linux32_time.c
375
return copyout(&lts, SCARG_P32(uap, tp), sizeof lts);
sys/compat/linux32/common/linux32_time.c
96
if (SCARG_P32(uap, tp) != NULL) {
sys/compat/linux32/common/linux32_time.c
99
if ((error = copyout(&tv32, SCARG_P32(uap, tp),
sys/compat/netbsd32/netbsd32_compat_50.c
164
if (SCARG_P32(uap, tp)) {
sys/compat/netbsd32/netbsd32_compat_50.c
167
error = copyout(&tv32, SCARG_P32(uap, tp), sizeof(tv32));
sys/compat/netbsd32/netbsd32_compat_50.c
334
return copyout(&ts32, SCARG_P32(uap, tp), sizeof(ts32));
sys/compat/netbsd32/netbsd32_compat_50.c
349
if ((error = copyin(SCARG_P32(uap, tp), &ts32, sizeof(ts32))) != 0)
sys/compat/netbsd32/netbsd32_compat_50.c
372
if (SCARG_P32(uap, tp)) {
sys/compat/netbsd32/netbsd32_compat_50.c
374
error = copyout(&ts32, SCARG_P32(uap, tp), sizeof(ts32));
sys/compat/netbsd32/netbsd32_ioctl.c
1101
NETBSD32PTR32(s32p->tp, p->tp);
sys/compat/netbsd32/netbsd32_ioctl.c
1110
NETBSD32PTR32(s32p->tp, p->tp);
sys/compat/netbsd32/netbsd32_ioctl.c
1273
error = copyin(args->tp, &ntv32, sizeof(ntv32));
sys/compat/netbsd32/netbsd32_ioctl.c
1281
error = copyout(&ntv32, args->tp, sizeof(ntv32));
sys/compat/netbsd32/netbsd32_ioctl.c
579
p->tp = NETBSD32PTR64(s32p->tp);
sys/compat/netbsd32/netbsd32_ioctl.c
589
p->tp = NETBSD32PTR64(s32p->tp);
sys/compat/netbsd32/netbsd32_ioctl.h
627
netbsd32_timespecp_t tp;
sys/compat/netbsd32/netbsd32_ioctl.h
634
netbsd32_timexp_t tp;
sys/compat/netbsd32/netbsd32_syscallargs.h
1224
syscallarg(netbsd32_timespec50p_t) tp;
sys/compat/netbsd32/netbsd32_syscallargs.h
1230
syscallarg(netbsd32_timespec50p_t) tp;
sys/compat/netbsd32/netbsd32_syscallargs.h
1236
syscallarg(netbsd32_timespec50p_t) tp;
sys/compat/netbsd32/netbsd32_syscallargs.h
2218
syscallarg(netbsd32_timevalp_t) tp;
sys/compat/netbsd32/netbsd32_syscallargs.h
2268
syscallarg(netbsd32_timespecp_t) tp;
sys/compat/netbsd32/netbsd32_syscallargs.h
2274
syscallarg(const netbsd32_timespecp_t) tp;
sys/compat/netbsd32/netbsd32_syscallargs.h
2280
syscallarg(netbsd32_timespecp_t) tp;
sys/compat/netbsd32/netbsd32_syscallargs.h
622
syscallarg(netbsd32_timeval50p_t) tp;
sys/compat/netbsd32/netbsd32_syscallargs.h
950
syscallarg(netbsd32_timexp_t) tp;
sys/compat/netbsd32/netbsd32_systrace_args.c
1294
uarg[0] = (intptr_t) SCARG(p, tp).i32; /* netbsd32_timexp_t */
sys/compat/netbsd32/netbsd32_systrace_args.c
1651
uarg[1] = (intptr_t) SCARG(p, tp).i32; /* netbsd32_timespec50p_t */
sys/compat/netbsd32/netbsd32_systrace_args.c
1659
uarg[1] = (intptr_t) SCARG(p, tp).i32; /* netbsd32_timespec50p_t */
sys/compat/netbsd32/netbsd32_systrace_args.c
1667
uarg[1] = (intptr_t) SCARG(p, tp).i32; /* netbsd32_timespec50p_t */
sys/compat/netbsd32/netbsd32_systrace_args.c
2977
uarg[0] = (intptr_t) SCARG(p, tp).i32; /* netbsd32_timevalp_t */
sys/compat/netbsd32/netbsd32_systrace_args.c
3043
uarg[1] = (intptr_t) SCARG(p, tp).i32; /* netbsd32_timespecp_t */
sys/compat/netbsd32/netbsd32_systrace_args.c
3051
uarg[1] = (intptr_t) SCARG(p, tp).i32; /* const netbsd32_timespecp_t */
sys/compat/netbsd32/netbsd32_systrace_args.c
3059
uarg[1] = (intptr_t) SCARG(p, tp).i32; /* netbsd32_timespecp_t */
sys/compat/netbsd32/netbsd32_systrace_args.c
860
uarg[0] = (intptr_t) SCARG(p, tp).i32; /* netbsd32_timeval50p_t */
sys/compat/netbsd32/netbsd32_time.c
104
if ((error = copyin(SCARG_P32(uap, tp), &ntv32, sizeof(ntv32))))
sys/compat/netbsd32/netbsd32_time.c
123
error = copyout(&ntv32, SCARG_P32(uap, tp), sizeof(ntv32));
sys/compat/netbsd32/netbsd32_time.c
196
if (SCARG_P32(uap, tp)) {
sys/compat/netbsd32/netbsd32_time.c
199
error = copyout(&tv32, SCARG_P32(uap, tp), sizeof(tv32));
sys/compat/netbsd32/netbsd32_time.c
313
return copyout(&ts32, SCARG_P32(uap, tp), sizeof(ts32));
sys/compat/netbsd32/netbsd32_time.c
327
if ((error = copyin(SCARG_P32(uap, tp), &ts32, sizeof(ts32))) != 0)
sys/compat/netbsd32/netbsd32_time.c
349
if (SCARG_P32(uap, tp)) {
sys/compat/netbsd32/netbsd32_time.c
351
error = copyout(&ts32, SCARG_P32(uap, tp), sizeof(ts32));
sys/compat/sunos/sunos_misc.c
115
error = copyin(SCARG(uap, tp), &tv.tv_sec, sizeof(tv.tv_sec));
sys/compat/sunos/sunos_syscallargs.h
96
syscallarg(sunos_time_t *) tp;
sys/compat/sunos32/sunos32_misc.c
180
error = copyin(SCARG_P32(uap, tp), &ntv.tv_sec, sizeof(ntv.tv_sec));
sys/compat/sunos32/sunos32_syscallargs.h
96
syscallarg(sunos32_time_tp) tp;
sys/compat/sys/clockctl.h
58
const struct timespec50 *tp;
sys/compat/sys/clockctl.h
64
struct timex *tp;
sys/ddb/db_proc.c
101
db_read_bytes((db_addr_t)&p->p_pid, sizeof(tp),
sys/ddb/db_proc.c
102
(char *)&tp);
sys/ddb/db_proc.c
103
if (tp == pid) {
sys/ddb/db_proc.c
98
pid_t tp;
sys/dev/arcbios/arcbios_tty.c
100
tty_attach(tp);
sys/dev/arcbios/arcbios_tty.c
102
tp = arcbios_tty[unit];
sys/dev/arcbios/arcbios_tty.c
104
tp->t_oproc = arcbios_tty_start;
sys/dev/arcbios/arcbios_tty.c
105
tp->t_param = arcbios_tty_param;
sys/dev/arcbios/arcbios_tty.c
106
tp->t_dev = dev;
sys/dev/arcbios/arcbios_tty.c
108
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp)) {
sys/dev/arcbios/arcbios_tty.c
113
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/dev/arcbios/arcbios_tty.c
114
tp->t_state |= TS_CARR_ON;
sys/dev/arcbios/arcbios_tty.c
115
ttychars(tp);
sys/dev/arcbios/arcbios_tty.c
116
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/arcbios/arcbios_tty.c
117
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/arcbios/arcbios_tty.c
118
tp->t_cflag = TTYDEF_CFLAG | CLOCAL;
sys/dev/arcbios/arcbios_tty.c
119
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/arcbios/arcbios_tty.c
120
tp->t_ispeed = tp->t_ospeed = 9600;
sys/dev/arcbios/arcbios_tty.c
121
ttsetwater(tp);
sys/dev/arcbios/arcbios_tty.c
128
error = (*tp->t_linesw->l_open)(dev, tp);
sys/dev/arcbios/arcbios_tty.c
130
callout_reset(&arcbios_tty_ch, 1, arcbios_tty_poll, tp);
sys/dev/arcbios/arcbios_tty.c
139
struct tty *tp = arcbios_tty[unit];
sys/dev/arcbios/arcbios_tty.c
142
(*tp->t_linesw->l_close)(tp, flag);
sys/dev/arcbios/arcbios_tty.c
143
ttyclose(tp);
sys/dev/arcbios/arcbios_tty.c
150
struct tty *tp = arcbios_tty[minor(dev)];
sys/dev/arcbios/arcbios_tty.c
152
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/dev/arcbios/arcbios_tty.c
158
struct tty *tp = arcbios_tty[minor(dev)];
sys/dev/arcbios/arcbios_tty.c
160
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/dev/arcbios/arcbios_tty.c
166
struct tty *tp = arcbios_tty[minor(dev)];
sys/dev/arcbios/arcbios_tty.c
168
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/arcbios/arcbios_tty.c
175
struct tty *tp = arcbios_tty[unit];
sys/dev/arcbios/arcbios_tty.c
178
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/dev/arcbios/arcbios_tty.c
181
return (ttioctl(tp, cmd, data, flag, l));
sys/dev/arcbios/arcbios_tty.c
185
arcbios_tty_param(struct tty *tp, struct termios *t)
sys/dev/arcbios/arcbios_tty.c
192
arcbios_tty_start(struct tty *tp)
sys/dev/arcbios/arcbios_tty.c
198
if (tp->t_state & (TS_TTSTOP | TS_BUSY))
sys/dev/arcbios/arcbios_tty.c
200
ttypull(tp);
sys/dev/arcbios/arcbios_tty.c
201
tp->t_state |= TS_BUSY;
sys/dev/arcbios/arcbios_tty.c
202
while (tp->t_outq.c_cc != 0) {
sys/dev/arcbios/arcbios_tty.c
203
arcbios_Write(ARCBIOS_STDOUT, tp->t_outq.c_cf,
sys/dev/arcbios/arcbios_tty.c
204
ndqb(&tp->t_outq, 0), &count);
sys/dev/arcbios/arcbios_tty.c
205
ndflush(&tp->t_outq, count);
sys/dev/arcbios/arcbios_tty.c
207
tp->t_state &= ~TS_BUSY;
sys/dev/arcbios/arcbios_tty.c
213
arcbios_ttystop(struct tty *tp, int flag)
sys/dev/arcbios/arcbios_tty.c
218
if (tp->t_state & TS_BUSY)
sys/dev/arcbios/arcbios_tty.c
219
if ((tp->t_state & TS_TTSTOP) == 0)
sys/dev/arcbios/arcbios_tty.c
220
tp->t_state |= TS_FLUSH;
sys/dev/arcbios/arcbios_tty.c
246
struct tty *tp = v;
sys/dev/arcbios/arcbios_tty.c
250
if (tp->t_state & TS_ISOPEN)
sys/dev/arcbios/arcbios_tty.c
251
(void)(*tp->t_linesw->l_rint)(c, tp);
sys/dev/arcbios/arcbios_tty.c
253
callout_reset(&arcbios_tty_ch, 1, arcbios_tty_poll, tp);
sys/dev/arcbios/arcbios_tty.c
85
struct tty *tp;
sys/dev/arcbios/arcbios_tty.c
99
tp = arcbios_tty[unit] = tty_alloc();
sys/dev/bluetooth/bcsp.c
366
bcspopen(dev_t device __unused, struct tty *tp)
sys/dev/bluetooth/bcsp.c
382
if (tp->t_linesw == &bcsp_disc) {
sys/dev/bluetooth/bcsp.c
383
sc = tp->t_sc;
sys/dev/bluetooth/bcsp.c
400
name, unit, (unsigned long long)major(tp->t_dev),
sys/dev/bluetooth/bcsp.c
401
(unsigned long long)minor(tp->t_dev));
sys/dev/bluetooth/bcsp.c
409
ttylock(tp);
sys/dev/bluetooth/bcsp.c
410
tp->t_sc = sc;
sys/dev/bluetooth/bcsp.c
411
sc->sc_tp = tp;
sys/dev/bluetooth/bcsp.c
412
ttyflush(tp, FREAD | FWRITE);
sys/dev/bluetooth/bcsp.c
413
ttyunlock(tp);
sys/dev/bluetooth/bcsp.c
428
bcspclose(struct tty *tp, int flag __unused)
sys/dev/bluetooth/bcsp.c
430
struct bcsp_softc *sc = tp->t_sc;
sys/dev/bluetooth/bcsp.c
442
ttylock(tp);
sys/dev/bluetooth/bcsp.c
443
ttyflush(tp, FREAD | FWRITE);
sys/dev/bluetooth/bcsp.c
444
ttyunlock(tp); /* XXX */
sys/dev/bluetooth/bcsp.c
445
ttyldisc_release(tp->t_linesw);
sys/dev/bluetooth/bcsp.c
446
tp->t_linesw = ttyldisc_default();
sys/dev/bluetooth/bcsp.c
448
tp->t_sc = NULL;
sys/dev/bluetooth/bcsp.c
449
if (sc->sc_tp == tp) {
sys/dev/bluetooth/bcsp.c
462
bcspioctl(struct tty *tp, u_long cmd, void *data, int flag __unused,
sys/dev/bluetooth/bcsp.c
465
struct bcsp_softc *sc = tp->t_sc;
sys/dev/bluetooth/bcsp.c
474
if (sc == NULL || tp != sc->sc_tp)
sys/dev/bluetooth/bcsp.c
498
bcsp_slip_transmit(struct tty *tp)
sys/dev/bluetooth/bcsp.c
500
struct bcsp_softc *sc = tp->t_sc;
sys/dev/bluetooth/bcsp.c
525
if (putc(sc->sc_slip_txrsv, &tp->t_outq) < 0)
sys/dev/bluetooth/bcsp.c
541
if (putc(BCSP_SLIP_PKTEND, &tp->t_outq) < 0)
sys/dev/bluetooth/bcsp.c
562
if (putc(BCSP_SLIP_ESCAPE, &tp->t_outq) < 0)
sys/dev/bluetooth/bcsp.c
567
if (putc(BCSP_SLIP_ESCAPE_PKTEND, &tp->t_outq) < 0) {
sys/dev/bluetooth/bcsp.c
574
if (putc(BCSP_SLIP_ESCAPE, &tp->t_outq) < 0)
sys/dev/bluetooth/bcsp.c
579
if (putc(BCSP_SLIP_ESCAPE_ESCAPE, &tp->t_outq) < 0) {
sys/dev/bluetooth/bcsp.c
586
if (putc(*rptr++, &tp->t_outq) < 0)
sys/dev/bluetooth/bcsp.c
598
if (tp->t_outq.c_cc != 0 && tp->t_oproc != NULL)
sys/dev/bluetooth/bcsp.c
599
(*tp->t_oproc)(tp);
sys/dev/bluetooth/bcsp.c
605
bcsp_slip_receive(int c, struct tty *tp)
sys/dev/bluetooth/bcsp.c
607
struct bcsp_softc *sc = tp->t_sc;
sys/dev/bluetooth/bth5.c
371
bth5open(dev_t device __unused, struct tty *tp)
sys/dev/bluetooth/bth5.c
387
if (tp->t_linesw == &bth5_disc) {
sys/dev/bluetooth/bth5.c
388
sc = tp->t_sc;
sys/dev/bluetooth/bth5.c
405
name, unit, (unsigned long long)major(tp->t_dev),
sys/dev/bluetooth/bth5.c
406
(unsigned long long)minor(tp->t_dev));
sys/dev/bluetooth/bth5.c
414
ttylock(tp);
sys/dev/bluetooth/bth5.c
415
tp->t_sc = sc;
sys/dev/bluetooth/bth5.c
416
sc->sc_tp = tp;
sys/dev/bluetooth/bth5.c
417
ttyflush(tp, FREAD | FWRITE);
sys/dev/bluetooth/bth5.c
418
ttyunlock(tp);
sys/dev/bluetooth/bth5.c
433
bth5close(struct tty *tp, int flag __unused)
sys/dev/bluetooth/bth5.c
435
struct bth5_softc *sc = tp->t_sc;
sys/dev/bluetooth/bth5.c
447
ttylock(tp);
sys/dev/bluetooth/bth5.c
448
ttyflush(tp, FREAD | FWRITE);
sys/dev/bluetooth/bth5.c
449
ttyunlock(tp); /* XXX */
sys/dev/bluetooth/bth5.c
450
ttyldisc_release(tp->t_linesw);
sys/dev/bluetooth/bth5.c
451
tp->t_linesw = ttyldisc_default();
sys/dev/bluetooth/bth5.c
453
tp->t_sc = NULL;
sys/dev/bluetooth/bth5.c
454
if (sc->sc_tp == tp) {
sys/dev/bluetooth/bth5.c
467
bth5ioctl(struct tty *tp, u_long cmd, void *data, int flag __unused,
sys/dev/bluetooth/bth5.c
470
struct bth5_softc *sc = tp->t_sc;
sys/dev/bluetooth/bth5.c
473
if (sc == NULL || tp != sc->sc_tp)
sys/dev/bluetooth/bth5.c
497
bth5_slip_transmit(struct tty *tp)
sys/dev/bluetooth/bth5.c
499
struct bth5_softc *sc = tp->t_sc;
sys/dev/bluetooth/bth5.c
527
if (putc(sc->sc_slip_txrsv, &tp->t_outq) < 0)
sys/dev/bluetooth/bth5.c
551
if (putc(BTH5_SLIP_PKTEND, &tp->t_outq) < 0)
sys/dev/bluetooth/bth5.c
572
if (putc(BTH5_SLIP_ESCAPE, &tp->t_outq) < 0)
sys/dev/bluetooth/bth5.c
577
if (putc(BTH5_SLIP_ESCAPE_PKTEND, &tp->t_outq) < 0) {
sys/dev/bluetooth/bth5.c
585
if (putc(BTH5_SLIP_ESCAPE, &tp->t_outq) < 0)
sys/dev/bluetooth/bth5.c
590
if (putc(BTH5_SLIP_ESCAPE_XON, &tp->t_outq) < 0) {
sys/dev/bluetooth/bth5.c
598
if (putc(BTH5_SLIP_ESCAPE, &tp->t_outq) < 0)
sys/dev/bluetooth/bth5.c
603
if (putc(BTH5_SLIP_ESCAPE_XOFF, &tp->t_outq) < 0) {
sys/dev/bluetooth/bth5.c
610
if (putc(BTH5_SLIP_ESCAPE, &tp->t_outq) < 0)
sys/dev/bluetooth/bth5.c
615
if (putc(BTH5_SLIP_ESCAPE_ESCAPE, &tp->t_outq) < 0) {
sys/dev/bluetooth/bth5.c
622
if (putc(*rptr++, &tp->t_outq) < 0)
sys/dev/bluetooth/bth5.c
634
if (tp->t_outq.c_cc != 0 && tp->t_oproc != NULL)
sys/dev/bluetooth/bth5.c
635
(*tp->t_oproc)(tp);
sys/dev/bluetooth/bth5.c
641
bth5_slip_receive(int c, struct tty *tp)
sys/dev/bluetooth/bth5.c
643
struct bth5_softc *sc = tp->t_sc;
sys/dev/bluetooth/btuart.c
220
btuartopen(dev_t devno __unused, struct tty *tp)
sys/dev/bluetooth/btuart.c
235
if (tp->t_linesw == &btuart_disc) {
sys/dev/bluetooth/btuart.c
236
sc = tp->t_sc;
sys/dev/bluetooth/btuart.c
262
(unsigned long long)major(tp->t_dev),
sys/dev/bluetooth/btuart.c
263
(unsigned long long)minor(tp->t_dev));
sys/dev/bluetooth/btuart.c
265
sc->sc_tp = tp;
sys/dev/bluetooth/btuart.c
266
tp->t_sc = sc;
sys/dev/bluetooth/btuart.c
268
ttylock(tp);
sys/dev/bluetooth/btuart.c
269
ttyflush(tp, FREAD | FWRITE);
sys/dev/bluetooth/btuart.c
270
ttyunlock(tp);
sys/dev/bluetooth/btuart.c
278
btuartclose(struct tty *tp, int flag __unused)
sys/dev/bluetooth/btuart.c
280
struct btuart_softc *sc = tp->t_sc;
sys/dev/bluetooth/btuart.c
286
ttylock(tp);
sys/dev/bluetooth/btuart.c
287
ttyflush(tp, FREAD | FWRITE);
sys/dev/bluetooth/btuart.c
288
ttyunlock(tp); /* XXX */
sys/dev/bluetooth/btuart.c
290
ttyldisc_release(tp->t_linesw);
sys/dev/bluetooth/btuart.c
291
tp->t_linesw = ttyldisc_default();
sys/dev/bluetooth/btuart.c
294
tp->t_sc = NULL;
sys/dev/bluetooth/btuart.c
295
if (sc->sc_tp == tp) {
sys/dev/bluetooth/btuart.c
308
btuartioctl(struct tty *tp, u_long cmd, void *data __unused,
sys/dev/bluetooth/btuart.c
311
struct btuart_softc *sc = tp->t_sc;
sys/dev/bluetooth/btuart.c
320
if (sc == NULL || tp != sc->sc_tp)
sys/dev/bluetooth/btuart.c
333
btuartinput(int c, struct tty *tp)
sys/dev/bluetooth/btuart.c
335
struct btuart_softc *sc = tp->t_sc;
sys/dev/bluetooth/btuart.c
480
btuartstart(struct tty *tp)
sys/dev/bluetooth/btuart.c
482
struct btuart_softc *sc = tp->t_sc;
sys/dev/bluetooth/btuart.c
534
if (putc(*rptr++, &tp->t_outq) < 0) {
sys/dev/bluetooth/btuart.c
544
if (tp->t_outq.c_cc != 0 && tp->t_oproc != NULL)
sys/dev/bluetooth/btuart.c
545
(*tp->t_oproc)(tp);
sys/dev/cardbus/cardbus.c
923
u_int8_t *tp = tuple;
sys/dev/cardbus/cardbus.c
930
while ((tp = decode_tuple(tp, tuple + buflen, func, data)) != NULL)
sys/dev/clockctl.c
238
error = copyin(args->tp, &ts, sizeof ts);
sys/dev/clockctl.c
252
error = copyin(args->tp, &ntv, sizeof(ntv));
sys/dev/clockctl.c
258
error = copyout(&ntv, args->tp, sizeof(ntv));
sys/dev/cons.c
251
struct tty *tp;
sys/dev/cons.c
254
tp = atomic_load_relaxed(&constty);
sys/dev/cons.c
255
if (tp == NULL) {
sys/dev/cons.c
260
KAUTH_DEVICE_TTY_VIRTUAL, tp);
sys/dev/dec/dz.c
259
struct tty *tp;
sys/dev/dec/dz.c
269
tp = sc->sc_dz[line].dz_tty;
sys/dev/dec/dz.c
281
cn_check_magic(tp->t_dev, mcc, dz_cnm_state);
sys/dev/dec/dz.c
283
if (!(tp->t_state & TS_ISOPEN)) {
sys/dev/dec/dz.c
284
cv_broadcast(&tp->t_rawcv);
sys/dev/dec/dz.c
299
(*tp->t_linesw->l_rint)(cc, tp);
sys/dev/dec/dz.c
309
struct tty *tp;
sys/dev/dec/dz.c
338
tp = sc->sc_dz[line].dz_tty;
sys/dev/dec/dz.c
339
cl = &tp->t_outq;
sys/dev/dec/dz.c
340
tp->t_state &= ~TS_BUSY;
sys/dev/dec/dz.c
345
tp->t_state |= TS_BUSY;
sys/dev/dec/dz.c
360
if (tp->t_state & TS_FLUSH)
sys/dev/dec/dz.c
361
tp->t_state &= ~TS_FLUSH;
sys/dev/dec/dz.c
363
ndflush (&tp->t_outq, cl->c_cc);
sys/dev/dec/dz.c
365
(*tp->t_linesw->l_start)(tp);
sys/dev/dec/dz.c
374
struct tty *tp;
sys/dev/dec/dz.c
384
tp = sc->sc_dz[line].dz_tty;
sys/dev/dec/dz.c
385
if (tp == NULL)
sys/dev/dec/dz.c
387
tp->t_oproc = dzstart;
sys/dev/dec/dz.c
388
tp->t_param = dzparam;
sys/dev/dec/dz.c
389
tp->t_dev = dev;
sys/dev/dec/dz.c
391
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/dev/dec/dz.c
394
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/dev/dec/dz.c
395
ttychars(tp);
sys/dev/dec/dz.c
396
if (tp->t_ispeed == 0) {
sys/dev/dec/dz.c
397
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/dec/dz.c
398
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/dec/dz.c
399
tp->t_cflag = TTYDEF_CFLAG;
sys/dev/dec/dz.c
400
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/dec/dz.c
401
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/dev/dec/dz.c
403
(void) dzparam(tp, &tp->t_termios);
sys/dev/dec/dz.c
404
ttsetwater(tp);
sys/dev/dec/dz.c
409
tp->t_state |= TS_CARR_ON;
sys/dev/dec/dz.c
410
ttylock(tp);
sys/dev/dec/dz.c
411
while (!(flag & O_NONBLOCK) && !(tp->t_cflag & CLOCAL) &&
sys/dev/dec/dz.c
412
!(tp->t_state & TS_CARR_ON)) {
sys/dev/dec/dz.c
413
tp->t_wopen++;
sys/dev/dec/dz.c
414
error = ttysleep(tp, &tp->t_rawcv, true, 0);
sys/dev/dec/dz.c
415
tp->t_wopen--;
sys/dev/dec/dz.c
419
ttyunlock(tp);
sys/dev/dec/dz.c
422
return ((*tp->t_linesw->l_open)(dev, tp));
sys/dev/dec/dz.c
431
struct tty *tp = sc->sc_dz[line].dz_tty;
sys/dev/dec/dz.c
433
(*tp->t_linesw->l_close)(tp, flag);
sys/dev/dec/dz.c
439
if ((tp->t_cflag & HUPCL) || tp->t_wopen || !(tp->t_state & TS_ISOPEN))
sys/dev/dec/dz.c
442
return ttyclose(tp);
sys/dev/dec/dz.c
449
struct tty *tp = sc->sc_dz[DZ_PORT(minor(dev))].dz_tty;
sys/dev/dec/dz.c
451
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/dev/dec/dz.c
458
struct tty *tp = sc->sc_dz[DZ_PORT(minor(dev))].dz_tty;
sys/dev/dec/dz.c
460
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/dev/dec/dz.c
467
struct tty *tp = sc->sc_dz[DZ_PORT(minor(dev))].dz_tty;
sys/dev/dec/dz.c
469
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/dec/dz.c
478
struct tty *tp = sc->sc_dz[line].dz_tty;
sys/dev/dec/dz.c
481
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/dev/dec/dz.c
485
error = ttioctl(tp, cmd, data, flag, l);
sys/dev/dec/dz.c
538
dzstop(struct tty *tp, int flag)
sys/dev/dec/dz.c
540
if ((tp->t_state & (TS_BUSY | TS_TTSTOP)) == TS_BUSY)
sys/dev/dec/dz.c
541
tp->t_state |= TS_FLUSH;
sys/dev/dec/dz.c
545
dzstart(struct tty *tp)
sys/dev/dec/dz.c
553
if (tp->t_state & (TS_TIMEOUT|TS_BUSY|TS_TTSTOP)) {
sys/dev/dec/dz.c
557
if (!ttypull(tp)) {
sys/dev/dec/dz.c
562
line = DZ_PORT(minor(tp->t_dev));
sys/dev/dec/dz.c
563
sc = device_lookup_private(&dz_cd, DZ_I2C(minor(tp->t_dev)));
sys/dev/dec/dz.c
565
tp->t_state |= TS_BUSY;
sys/dev/dec/dz.c
574
dzparam(struct tty *tp, struct termios *t)
sys/dev/dec/dz.c
576
struct dz_softc *sc = device_lookup_private(&dz_cd, DZ_I2C(minor(tp->t_dev)));
sys/dev/dec/dz.c
577
const int line = DZ_PORT(minor(tp->t_dev));
sys/dev/dec/dz.c
588
tp->t_ispeed = t->c_ispeed;
sys/dev/dec/dz.c
589
tp->t_ospeed = t->c_ospeed;
sys/dev/dec/dz.c
590
tp->t_cflag = cflag;
sys/dev/dec/dz.c
600
ttywait(tp);
sys/dev/dec/dz.c
706
struct tty *tp;
sys/dev/dec/dz.c
718
tp = sc->sc_dz[port].dz_tty;
sys/dev/dec/dz.c
722
if (!(tp->t_state & TS_CARR_ON))
sys/dev/dec/dz.c
723
(*tp->t_linesw->l_modem) (tp, 1);
sys/dev/dec/dz.c
724
} else if ((tp->t_state & TS_CARR_ON) &&
sys/dev/dec/dz.c
725
(*tp->t_linesw->l_modem)(tp, 0) == 0) {
sys/dev/dec/dz.c
765
struct tty *tp;
sys/dev/dec/dz.c
769
tp = sc->sc_dz[i].dz_tty;
sys/dev/dec/dz.c
771
if (((tp->t_state & TS_ISOPEN) == 0) || (tp->t_wopen == 0))
sys/dev/dec/dz.c
774
dzparam(tp, &tp->t_termios);
sys/dev/dec/dz.c
776
tp->t_state &= ~TS_BUSY;
sys/dev/dec/dz.c
777
dzstart(tp); /* Kick off transmitter again */
sys/dev/goldfish/gftty.c
216
struct tty *tp = tty_alloc();
sys/dev/goldfish/gftty.c
217
tp->t_oproc = gftty_start;
sys/dev/goldfish/gftty.c
218
tp->t_param = gftty_param;
sys/dev/goldfish/gftty.c
219
tp->t_softc = sc;
sys/dev/goldfish/gftty.c
226
tp->t_dev = cn_tab->cn_dev = makedev(maj, device_unit(self));
sys/dev/goldfish/gftty.c
230
sc->sc_tty = tp;
sys/dev/goldfish/gftty.c
233
tty_attach(tp);
sys/dev/goldfish/gftty.c
378
struct tty *tp = sc->sc_tty;
sys/dev/goldfish/gftty.c
382
ttylock(tp);
sys/dev/goldfish/gftty.c
389
if (ISSET(tp->t_state, TS_ISOPEN)) {
sys/dev/goldfish/gftty.c
392
ttyunlock(tp);
sys/dev/goldfish/gftty.c
395
(*tp->t_linesw->l_rint)(*cp++, tp);
sys/dev/goldfish/gftty.c
407
struct tty *tp = sc->sc_tty;
sys/dev/goldfish/gftty.c
410
ttylock(tp);
sys/dev/goldfish/gftty.c
411
if (ISSET(tp->t_state, TS_ISOPEN)) {
sys/dev/goldfish/gftty.c
416
ttyunlock(tp);
sys/dev/goldfish/gftty.c
430
struct tty *tp;
sys/dev/goldfish/gftty.c
437
tp = sc->sc_tty;
sys/dev/goldfish/gftty.c
439
if (tp == NULL) {
sys/dev/goldfish/gftty.c
443
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp)) {
sys/dev/goldfish/gftty.c
447
ttylock(tp);
sys/dev/goldfish/gftty.c
449
if (ISSET(tp->t_state, TS_KERN_ONLY)) {
sys/dev/goldfish/gftty.c
450
ttyunlock(tp);
sys/dev/goldfish/gftty.c
454
tp->t_oproc = gftty_start;
sys/dev/goldfish/gftty.c
455
tp->t_param = gftty_param;
sys/dev/goldfish/gftty.c
456
tp->t_dev = dev;
sys/dev/goldfish/gftty.c
458
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/goldfish/gftty.c
461
ttychars(tp);
sys/dev/goldfish/gftty.c
462
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/goldfish/gftty.c
463
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/goldfish/gftty.c
464
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/goldfish/gftty.c
467
(void) gftty_param_locked(tp, &t);
sys/dev/goldfish/gftty.c
468
ttsetwater(tp);
sys/dev/goldfish/gftty.c
473
SET(tp->t_state, TS_CARR_ON);
sys/dev/goldfish/gftty.c
475
ttyunlock(tp);
sys/dev/goldfish/gftty.c
477
int error = ttyopen(tp, 0, ISSET(flag, O_NONBLOCK));
sys/dev/goldfish/gftty.c
479
error = (*tp->t_linesw->l_open)(dev, tp);
sys/dev/goldfish/gftty.c
481
ttyclose(tp);
sys/dev/goldfish/gftty.c
486
!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/goldfish/gftty.c
505
struct tty *tp = sc->sc_tty;
sys/dev/goldfish/gftty.c
507
ttylock(tp);
sys/dev/goldfish/gftty.c
510
if (!ISSET(tp->t_state, TS_ISOPEN)) {
sys/dev/goldfish/gftty.c
511
ttyunlock(tp);
sys/dev/goldfish/gftty.c
515
if (ISSET(tp->t_state, TS_KERN_ONLY)) {
sys/dev/goldfish/gftty.c
516
ttyunlock(tp);
sys/dev/goldfish/gftty.c
520
ttyunlock(tp);
sys/dev/goldfish/gftty.c
522
(*tp->t_linesw->l_close)(tp, flag);
sys/dev/goldfish/gftty.c
523
ttyclose(tp);
sys/dev/goldfish/gftty.c
525
ttylock(tp);
sys/dev/goldfish/gftty.c
526
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/goldfish/gftty.c
529
ttyunlock(tp);
sys/dev/goldfish/gftty.c
546
struct tty *tp = sc->sc_tty;
sys/dev/goldfish/gftty.c
547
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/dev/goldfish/gftty.c
562
struct tty *tp = sc->sc_tty;
sys/dev/goldfish/gftty.c
563
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/dev/goldfish/gftty.c
578
struct tty *tp = sc->sc_tty;
sys/dev/goldfish/gftty.c
579
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/dev/goldfish/gftty.c
609
struct tty *tp = sc->sc_tty;
sys/dev/goldfish/gftty.c
613
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/dev/goldfish/gftty.c
619
error = ttioctl(tp, cmd, data, flag, l);
sys/dev/goldfish/gftty.c
667
gftty_start(struct tty *tp)
sys/dev/goldfish/gftty.c
669
struct gftty_softc *sc = tp->t_softc;
sys/dev/goldfish/gftty.c
673
KASSERT(ttylocked(tp));
sys/dev/goldfish/gftty.c
675
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP) ||
sys/dev/goldfish/gftty.c
676
ttypull(tp) == 0) {
sys/dev/goldfish/gftty.c
679
SET(tp->t_state, TS_BUSY);
sys/dev/goldfish/gftty.c
687
n = ndqb(&tp->t_outq, 0);
sys/dev/goldfish/gftty.c
688
tbuf = tp->t_outq.c_cf;
sys/dev/goldfish/gftty.c
690
ndflush(&tp->t_outq, n);
sys/dev/goldfish/gftty.c
692
if ((n = ndqb(&tp->t_outq, 0)) > 0) {
sys/dev/goldfish/gftty.c
693
tbuf = tp->t_outq.c_cf;
sys/dev/goldfish/gftty.c
695
ndflush(&tp->t_outq, n);
sys/dev/goldfish/gftty.c
698
CLR(tp->t_state, TS_BUSY);
sys/dev/goldfish/gftty.c
700
if (ttypull(tp)) {
sys/dev/goldfish/gftty.c
701
SET(tp->t_state, TS_TIMEOUT);
sys/dev/goldfish/gftty.c
702
callout_schedule(&tp->t_rstrt_ch, (hz > 128) ? (hz / 128) : 1);
sys/dev/goldfish/gftty.c
711
gftty_stop(struct tty *tp, int flag)
sys/dev/goldfish/gftty.c
713
KASSERT(ttylocked(tp));
sys/dev/goldfish/gftty.c
715
if (ISSET(tp->t_state, TS_BUSY)) {
sys/dev/goldfish/gftty.c
716
if (!ISSET(tp->t_state, TS_TTSTOP)) {
sys/dev/goldfish/gftty.c
717
SET(tp->t_state, TS_FLUSH);
sys/dev/goldfish/gftty.c
727
gftty_param_locked(struct tty *tp, struct termios *t)
sys/dev/goldfish/gftty.c
730
KASSERT(ttylocked(tp));
sys/dev/goldfish/gftty.c
732
tp->t_ispeed = t->c_ispeed;
sys/dev/goldfish/gftty.c
733
tp->t_ospeed = t->c_ospeed;
sys/dev/goldfish/gftty.c
734
tp->t_cflag = t->c_cflag;
sys/dev/goldfish/gftty.c
744
gftty_param(struct tty *tp, struct termios *t)
sys/dev/goldfish/gftty.c
748
ttylock(tp);
sys/dev/goldfish/gftty.c
749
rv = gftty_param_locked(tp, t);
sys/dev/goldfish/gftty.c
750
ttyunlock(tp);
sys/dev/hpc/biconsdev.c
117
struct tty *tp = &biconsdev_tty[0];
sys/dev/hpc/biconsdev.c
124
clalloc(&tp->t_rawq, 1024, 1);
sys/dev/hpc/biconsdev.c
125
clalloc(&tp->t_canq, 1024, 1);
sys/dev/hpc/biconsdev.c
127
clalloc(&tp->t_outq, 1024, 0);
sys/dev/hpc/biconsdev.c
129
tp->t_linesw = ttyldisc_default();
sys/dev/hpc/biconsdev.c
132
tp->t_dev = makedev(maj, 0);
sys/dev/hpc/biconsdev.c
133
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/dev/hpc/biconsdev.c
134
tp->t_param = (int (*)(struct tty *, struct termios *))nullop;
sys/dev/hpc/biconsdev.c
135
tp->t_winsize.ws_row = bicons_height;
sys/dev/hpc/biconsdev.c
136
tp->t_winsize.ws_col = bicons_width;
sys/dev/hpc/biconsdev.c
137
tp->t_winsize.ws_xpixel = bicons_xpixel;
sys/dev/hpc/biconsdev.c
138
tp->t_winsize.ws_ypixel = bicons_ypixel;
sys/dev/hpc/biconsdev.c
139
tp->t_oproc = biconsdev_output;
sys/dev/hpc/biconsdev.c
144
biconsdev_output(struct tty *tp)
sys/dev/hpc/biconsdev.c
150
if (tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP)) {
sys/dev/hpc/biconsdev.c
154
tp->t_state |= TS_BUSY;
sys/dev/hpc/biconsdev.c
156
n = q_to_b(&tp->t_outq, buf, sizeof(buf));
sys/dev/hpc/biconsdev.c
160
tp->t_state &= ~TS_BUSY;
sys/dev/hpc/biconsdev.c
162
if (ttypull(tp)) {
sys/dev/hpc/biconsdev.c
163
tp->t_state |= TS_TIMEOUT;
sys/dev/hpc/biconsdev.c
164
callout_schedule(&tp->t_rstrt_ch, 1);
sys/dev/hpc/biconsdev.c
173
struct tty *tp = &biconsdev_tty[0];
sys/dev/hpc/biconsdev.c
176
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/dev/hpc/biconsdev.c
179
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/dev/hpc/biconsdev.c
183
ttychars(tp);
sys/dev/hpc/biconsdev.c
184
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/hpc/biconsdev.c
185
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/hpc/biconsdev.c
186
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/hpc/biconsdev.c
187
tp->t_cflag = TTYDEF_CFLAG;
sys/dev/hpc/biconsdev.c
188
tp->t_state = TS_ISOPEN | TS_CARR_ON;
sys/dev/hpc/biconsdev.c
189
(void)(*tp->t_param)(tp, &tp->t_termios);
sys/dev/hpc/biconsdev.c
190
ttsetwater(tp);
sys/dev/hpc/biconsdev.c
193
status = (*tp->t_linesw->l_open)(dev, tp);
sys/dev/hpc/biconsdev.c
201
struct tty *tp = &biconsdev_tty[0];
sys/dev/hpc/biconsdev.c
203
(*tp->t_linesw->l_close)(tp, flag);
sys/dev/hpc/biconsdev.c
204
ttyclose(tp);
sys/dev/hpc/biconsdev.c
213
struct tty *tp = &biconsdev_tty[0];
sys/dev/hpc/biconsdev.c
215
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/dev/hpc/biconsdev.c
222
struct tty *tp = &biconsdev_tty[0];
sys/dev/hpc/biconsdev.c
224
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/dev/hpc/biconsdev.c
231
struct tty *tp = &biconsdev_tty[0];
sys/dev/hpc/biconsdev.c
233
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/hpc/biconsdev.c
240
struct tty *tp = &biconsdev_tty[0];
sys/dev/hpc/biconsdev.c
242
return (tp);
sys/dev/hpc/biconsdev.c
248
struct tty *tp = &biconsdev_tty[0];
sys/dev/hpc/biconsdev.c
251
if ((error = tp->t_linesw->l_ioctl(tp, cmd, data, flag, l)) !=
sys/dev/hpc/biconsdev.c
254
return (ttioctl(tp, cmd, data, flag, l));
sys/dev/hpc/hpf1275a_tty.c
299
hpf1275a_open(dev_t dev, struct tty *tp)
sys/dev/hpc/hpf1275a_tty.c
313
KAUTH_DEVICE_TTY_OPEN, tp)))
sys/dev/hpc/hpf1275a_tty.c
318
if (tp->t_linesw == &hpf1275a_disc) {
sys/dev/hpc/hpf1275a_tty.c
330
tp->t_sc = sc;
sys/dev/hpc/hpf1275a_tty.c
331
sc->sc_tp = tp;
sys/dev/hpc/hpf1275a_tty.c
342
hpf1275a_close(struct tty *tp, int flag)
sys/dev/hpc/hpf1275a_tty.c
344
struct hpf1275a_softc *sc = tp->t_sc;
sys/dev/hpc/hpf1275a_tty.c
348
ttylock(tp);
sys/dev/hpc/hpf1275a_tty.c
349
ttyflush(tp, FREAD | FWRITE);
sys/dev/hpc/hpf1275a_tty.c
350
ttyunlock(tp); /* XXX */
sys/dev/hpc/hpf1275a_tty.c
351
ttyldisc_release(tp->t_linesw);
sys/dev/hpc/hpf1275a_tty.c
352
tp->t_linesw = ttyldisc_default();
sys/dev/hpc/hpf1275a_tty.c
354
tp->t_sc = NULL;
sys/dev/hpc/hpf1275a_tty.c
355
if (sc->sc_tp == tp)
sys/dev/hpc/hpf1275a_tty.c
367
hpf1275a_input(int c, struct tty *tp)
sys/dev/hpc/hpf1275a_tty.c
369
struct hpf1275a_softc *sc = tp->t_sc;
sys/dev/i2c/ds1307.c
716
dsrtc_clock_read_timeval(struct dsrtc_softc *sc, time_t *tp)
sys/dev/i2c/ds1307.c
745
*tp = v;
sys/dev/ic/cd18xx.c
1335
cdtty_rxsoft(struct cd18xx_softc *sc, struct cdtty_port *p, struct tty *tp)
sys/dev/ic/cd18xx.c
1374
if ((*tp->t_linesw->l_rint)(code, tp) == -1) {
sys/dev/ic/cd18xx.c
1417
cd18xx_set_car(sc, CD18XX_CHANNEL(tp->t_dev));
sys/dev/ic/cd18xx.c
1433
cdtty_txsoft(struct cd18xx_softc *sc, struct cdtty_port *p, struct tty *tp)
sys/dev/ic/cd18xx.c
1436
CLR(tp->t_state, TS_BUSY);
sys/dev/ic/cd18xx.c
1437
if (ISSET(tp->t_state, TS_FLUSH))
sys/dev/ic/cd18xx.c
1438
CLR(tp->t_state, TS_FLUSH);
sys/dev/ic/cd18xx.c
1440
ndflush(&tp->t_outq, (int)(p->p_tba - tp->t_outq.c_cf));
sys/dev/ic/cd18xx.c
1441
(*tp->t_linesw->l_start)(tp);
sys/dev/ic/cd18xx.c
1445
cdtty_stsoft(struct cd18xx_softc *sc, struct cdtty_port *p, struct tty *tp)
sys/dev/ic/cd18xx.c
1460
(void) (*tp->t_linesw->l_modem)(tp, ISSET(msvr, CD18xx_MSVR_CD));
sys/dev/ic/cd18xx.c
1467
(*tp->t_linesw->l_start)(tp);
sys/dev/ic/cd18xx.c
1479
struct tty *tp;
sys/dev/ic/cd18xx.c
1485
tp = p->p_tty;
sys/dev/ic/cd18xx.c
1486
if (tp == NULL)
sys/dev/ic/cd18xx.c
1488
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0)
sys/dev/ic/cd18xx.c
1493
cdtty_rxsoft(sc, p, tp);
sys/dev/ic/cd18xx.c
1498
cdtty_stsoft(sc, p, tp);
sys/dev/ic/cd18xx.c
1503
cdtty_txsoft(sc, p, tp);
sys/dev/ic/cd18xx.c
356
struct tty *tp = p->p_tty;
sys/dev/ic/cd18xx.c
373
if (ISSET(tp->t_cflag, HUPCL)) {
sys/dev/ic/cd18xx.c
394
struct tty *tp;
sys/dev/ic/cd18xx.c
416
tp = port->p_tty;
sys/dev/ic/cd18xx.c
418
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/dev/ic/cd18xx.c
426
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/ic/cd18xx.c
430
tp->t_dev = dev;
sys/dev/ic/cd18xx.c
450
tp->t_ospeed = 0; /* XXX set above ignored? */
sys/dev/ic/cd18xx.c
451
(void)cdttyparam(tp, &t);
sys/dev/ic/cd18xx.c
453
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/ic/cd18xx.c
454
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/ic/cd18xx.c
455
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/ic/cd18xx.c
456
ttychars(tp);
sys/dev/ic/cd18xx.c
457
ttsetwater(tp);
sys/dev/ic/cd18xx.c
481
error = ttyopen(tp, CD18XX_DIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/dev/ic/cd18xx.c
483
error = (*tp->t_linesw->l_open)(dev, tp);
sys/dev/ic/cd18xx.c
496
struct tty *tp;
sys/dev/ic/cd18xx.c
512
tp = port->p_tty;
sys/dev/ic/cd18xx.c
514
(*tp->t_linesw->l_close)(tp, flag);
sys/dev/ic/cd18xx.c
515
ttyclose(tp);
sys/dev/ic/cd18xx.c
517
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/ic/cd18xx.c
537
struct tty *tp = port->p_tty;
sys/dev/ic/cd18xx.c
539
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/dev/ic/cd18xx.c
550
struct tty *tp = port->p_tty;
sys/dev/ic/cd18xx.c
552
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/dev/ic/cd18xx.c
560
struct tty *tp = port->p_tty;
sys/dev/ic/cd18xx.c
562
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/ic/cd18xx.c
585
struct tty *tp = port->p_tty;
sys/dev/ic/cd18xx.c
588
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/dev/ic/cd18xx.c
592
error = ttioctl(tp, cmd, data, flag, l);
sys/dev/ic/cd18xx.c
621
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/dev/ic/cd18xx.c
643
cdttystart(struct tty *tp)
sys/dev/ic/cd18xx.c
645
struct cd18xx_softc *sc = device_lookup_private(&clcd_cd, CD18XX_INSTANCE(tp->t_dev));
sys/dev/ic/cd18xx.c
646
struct cdtty_port *p = &sc->sc_ports[CD18XX_CHANNEL(tp->t_dev)];
sys/dev/ic/cd18xx.c
650
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/dev/ic/cd18xx.c
655
if (!ttypull(tp))
sys/dev/ic/cd18xx.c
663
tba = tp->t_outq.c_cf;
sys/dev/ic/cd18xx.c
664
tbc = ndqb(&tp->t_outq, 0);
sys/dev/ic/cd18xx.c
672
SET(tp->t_state, TS_BUSY);
sys/dev/ic/cd18xx.c
677
cd18xx_set_car(sc, CD18XX_CHANNEL(tp->t_dev));
sys/dev/ic/cd18xx.c
695
cdttystop(struct tty *tp, int flag)
sys/dev/ic/cd18xx.c
697
struct cd18xx_softc *sc = device_lookup_private(&clcd_cd, CD18XX_INSTANCE(tp->t_dev));
sys/dev/ic/cd18xx.c
698
struct cdtty_port *p = &sc->sc_ports[CD18XX_CHANNEL(tp->t_dev)];
sys/dev/ic/cd18xx.c
702
if (ISSET(tp->t_state, TS_BUSY)) {
sys/dev/ic/cd18xx.c
706
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/dev/ic/cd18xx.c
707
SET(tp->t_state, TS_FLUSH);
sys/dev/ic/cd18xx.c
751
cdttyparam(struct tty *tp, struct termios *t)
sys/dev/ic/cd18xx.c
753
struct cd18xx_softc *sc = device_lookup_private(&clcd_cd, CD18XX_INSTANCE(tp->t_dev));
sys/dev/ic/cd18xx.c
754
struct cdtty_port *p = &sc->sc_ports[CD18XX_CHANNEL(tp->t_dev)];
sys/dev/ic/cd18xx.c
777
if (tp->t_ospeed == t->c_ospeed &&
sys/dev/ic/cd18xx.c
778
tp->t_cflag == t->c_cflag)
sys/dev/ic/cd18xx.c
889
tp->t_ispeed = 0;
sys/dev/ic/cd18xx.c
890
tp->t_ospeed = t->c_ospeed;
sys/dev/ic/cd18xx.c
891
tp->t_cflag = t->c_cflag;
sys/dev/ic/cd18xx.c
926
(void) (*tp->t_linesw->l_modem)(tp, ISSET(p->p_msvr, CD18xx_MSVR_CD));
sys/dev/ic/cd18xx.c
931
cdttystart(tp);
sys/dev/ic/cd18xx.c
992
cdttyhwiflow(struct tty *tp, int block)
sys/dev/ic/cd18xx.c
994
struct cd18xx_softc *sc = device_lookup_private(&clcd_cd, CD18XX_INSTANCE(tp->t_dev));
sys/dev/ic/cd18xx.c
995
struct cdtty_port *p = &sc->sc_ports[CD18XX_CHANNEL(tp->t_dev)];
sys/dev/ic/clmpcc.c
1002
ch->ch_obuf_addr = tp->t_outq.c_cf;
sys/dev/ic/clmpcc.c
1003
ch->ch_obuf_size = ndqb(&tp->t_outq, 0);
sys/dev/ic/clmpcc.c
1012
SET(tp->t_state, TS_BUSY);
sys/dev/ic/clmpcc.c
1023
clmpccstop(struct tty *tp, int flag)
sys/dev/ic/clmpcc.c
1026
device_lookup_private(&clmpcc_cd, CLMPCCUNIT(tp->t_dev));
sys/dev/ic/clmpcc.c
1027
struct clmpcc_chan *ch = &sc->sc_chans[CLMPCCCHAN(tp->t_dev)];
sys/dev/ic/clmpcc.c
1032
if ( ISSET(tp->t_state, TS_BUSY) ) {
sys/dev/ic/clmpcc.c
1033
if ( ISCLR(tp->t_state, TS_TTSTOP) )
sys/dev/ic/clmpcc.c
1034
SET(tp->t_state, TS_FLUSH);
sys/dev/ic/clmpcc.c
1338
struct tty *tp;
sys/dev/ic/clmpcc.c
1349
tp = ch->ch_tty;
sys/dev/ic/clmpcc.c
1352
rint = tp->t_linesw->l_rint;
sys/dev/ic/clmpcc.c
1358
if ( (rint)(c, tp) == -1 ) {
sys/dev/ic/clmpcc.c
1398
(*tp->t_linesw->l_modem)(tp, reg != 0);
sys/dev/ic/clmpcc.c
1401
CLR(tp->t_state, TS_BUSY);
sys/dev/ic/clmpcc.c
1402
if ( ISSET(tp->t_state, TS_FLUSH) )
sys/dev/ic/clmpcc.c
1403
CLR(tp->t_state, TS_FLUSH);
sys/dev/ic/clmpcc.c
1405
ndflush(&tp->t_outq,
sys/dev/ic/clmpcc.c
1406
(int)(ch->ch_obuf_addr - tp->t_outq.c_cf));
sys/dev/ic/clmpcc.c
1408
(*tp->t_linesw->l_start)(tp);
sys/dev/ic/clmpcc.c
275
struct tty *tp;
sys/dev/ic/clmpcc.c
300
tp = tty_alloc();
sys/dev/ic/clmpcc.c
301
tp->t_oproc = clmpcc_start;
sys/dev/ic/clmpcc.c
302
tp->t_param = clmpcc_param;
sys/dev/ic/clmpcc.c
304
ch->ch_tty = tp;
sys/dev/ic/clmpcc.c
310
tty_attach(tp);
sys/dev/ic/clmpcc.c
475
struct tty *tp;
sys/dev/ic/clmpcc.c
485
tp = ch->ch_tty;
sys/dev/ic/clmpcc.c
487
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/dev/ic/clmpcc.c
493
if ( ISCLR(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0 ) {
sys/dev/ic/clmpcc.c
495
ttychars(tp);
sys/dev/ic/clmpcc.c
497
tp->t_dev = dev;
sys/dev/ic/clmpcc.c
498
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/ic/clmpcc.c
499
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/ic/clmpcc.c
500
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/ic/clmpcc.c
501
tp->t_cflag = TTYDEF_CFLAG;
sys/dev/ic/clmpcc.c
502
tp->t_ospeed = tp->t_ispeed = TTYDEF_SPEED;
sys/dev/ic/clmpcc.c
505
SET(tp->t_cflag, CLOCAL);
sys/dev/ic/clmpcc.c
507
SET(tp->t_cflag, CRTSCTS);
sys/dev/ic/clmpcc.c
509
SET(tp->t_cflag, MDMBUF);
sys/dev/ic/clmpcc.c
516
tp->t_ospeed = tp->t_ispeed = cons_rate;
sys/dev/ic/clmpcc.c
517
SET(tp->t_cflag, CLOCAL);
sys/dev/ic/clmpcc.c
518
CLR(tp->t_cflag, CRTSCTS);
sys/dev/ic/clmpcc.c
519
CLR(tp->t_cflag, HUPCL);
sys/dev/ic/clmpcc.c
524
clmpcc_param(tp, &tp->t_termios);
sys/dev/ic/clmpcc.c
525
ttsetwater(tp);
sys/dev/ic/clmpcc.c
549
error = ttyopen(tp, CLMPCCDIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/dev/ic/clmpcc.c
553
error = (*tp->t_linesw->l_open)(dev, tp);
sys/dev/ic/clmpcc.c
560
if ( ISCLR(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0 ) {
sys/dev/ic/clmpcc.c
577
struct tty *tp = ch->ch_tty;
sys/dev/ic/clmpcc.c
580
if ( ISCLR(tp->t_state, TS_ISOPEN) )
sys/dev/ic/clmpcc.c
583
(*tp->t_linesw->l_close)(tp, flag);
sys/dev/ic/clmpcc.c
587
if ( ISCLR(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0 ) {
sys/dev/ic/clmpcc.c
596
ttyclose(tp);
sys/dev/ic/clmpcc.c
607
struct tty *tp = sc->sc_chans[CLMPCCCHAN(dev)].ch_tty;
sys/dev/ic/clmpcc.c
609
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/dev/ic/clmpcc.c
616
struct tty *tp = sc->sc_chans[CLMPCCCHAN(dev)].ch_tty;
sys/dev/ic/clmpcc.c
618
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/dev/ic/clmpcc.c
625
struct tty *tp = sc->sc_chans[CLMPCCCHAN(dev)].ch_tty;
sys/dev/ic/clmpcc.c
627
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/ic/clmpcc.c
643
struct tty *tp = ch->ch_tty;
sys/dev/ic/clmpcc.c
646
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/dev/ic/clmpcc.c
650
error = ttioctl(tp, cmd, data, flag, l);
sys/dev/ic/clmpcc.c
697
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/dev/ic/clmpcc.c
719
struct tty *tp = ch->ch_tty;
sys/dev/ic/clmpcc.c
745
if ( ISCLR(tp->t_cflag, CRTSCTS) )
sys/dev/ic/clmpcc.c
751
if ( ISCLR(tp->t_cflag, CRTSCTS) )
sys/dev/ic/clmpcc.c
761
if ( ISCLR(tp->t_cflag, CRTSCTS) && ISSET(bits, TIOCM_RTS) )
sys/dev/ic/clmpcc.c
766
if ( ISCLR(tp->t_cflag, CRTSCTS) && ISSET(bits, TIOCM_RTS) )
sys/dev/ic/clmpcc.c
775
if ( ISCLR(tp->t_cflag, CRTSCTS) && ISCLR(bits, TIOCM_RTS) )
sys/dev/ic/clmpcc.c
780
if ( ISCLR(tp->t_cflag, CRTSCTS) && ISCLR(bits, TIOCM_RTS) )
sys/dev/ic/clmpcc.c
794
clmpcc_param(struct tty *tp, struct termios *t)
sys/dev/ic/clmpcc.c
797
device_lookup_private(&clmpcc_cd, CLMPCCUNIT(tp->t_dev));
sys/dev/ic/clmpcc.c
798
struct clmpcc_chan *ch = &sc->sc_chans[CLMPCCCHAN(tp->t_dev)];
sys/dev/ic/clmpcc.c
984
clmpcc_start(struct tty *tp)
sys/dev/ic/clmpcc.c
987
device_lookup_private(&clmpcc_cd, CLMPCCUNIT(tp->t_dev));
sys/dev/ic/clmpcc.c
988
struct clmpcc_chan *ch = &sc->sc_chans[CLMPCCCHAN(tp->t_dev)];
sys/dev/ic/clmpcc.c
994
if ( ISCLR(tp->t_state, TS_TTSTOP | TS_TIMEOUT | TS_BUSY) ) {
sys/dev/ic/clmpcc.c
995
ttypull(tp);
sys/dev/ic/clmpcc.c
998
tp->t_outq.c_cc > 0 ) {
sys/dev/ic/com.c
1065
struct tty *tp = sc->sc_tty;
sys/dev/ic/com.c
1081
if (ISSET(tp->t_cflag, HUPCL)) {
sys/dev/ic/com.c
1118
struct tty *tp;
sys/dev/ic/com.c
1139
tp = sc->sc_tty;
sys/dev/ic/com.c
1145
if (ISSET(tp->t_state, TS_KERN_ONLY))
sys/dev/ic/com.c
1148
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/dev/ic/com.c
1160
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/ic/com.c
1164
tp->t_dev = dev;
sys/dev/ic/com.c
1195
if (!ISSET(tp->t_cflag, CLOCAL))
sys/dev/ic/com.c
1236
tp->t_ospeed = 0;
sys/dev/ic/com.c
1237
(void) comparam(tp, &t);
sys/dev/ic/com.c
1238
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/ic/com.c
1239
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/ic/com.c
1240
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/ic/com.c
1241
ttychars(tp);
sys/dev/ic/com.c
1242
ttsetwater(tp);
sys/dev/ic/com.c
1272
error = ttyopen(tp, COMDIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/dev/ic/com.c
1276
error = (*tp->t_linesw->l_open)(dev, tp);
sys/dev/ic/com.c
1283
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/ic/com.c
1299
struct tty *tp = sc->sc_tty;
sys/dev/ic/com.c
1302
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/dev/ic/com.c
1308
if (ISSET(tp->t_state, TS_KERN_ONLY))
sys/dev/ic/com.c
1311
(*tp->t_linesw->l_close)(tp, flag);
sys/dev/ic/com.c
1312
ttyclose(tp);
sys/dev/ic/com.c
1317
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/ic/com.c
1334
struct tty *tp = sc->sc_tty;
sys/dev/ic/com.c
1339
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/dev/ic/com.c
1347
struct tty *tp = sc->sc_tty;
sys/dev/ic/com.c
1352
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/dev/ic/com.c
1360
struct tty *tp = sc->sc_tty;
sys/dev/ic/com.c
1365
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/ic/com.c
1373
struct tty *tp = sc->sc_tty;
sys/dev/ic/com.c
1375
return (tp);
sys/dev/ic/com.c
1382
struct tty *tp;
sys/dev/ic/com.c
1391
tp = sc->sc_tty;
sys/dev/ic/com.c
1393
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/dev/ic/com.c
1397
error = ttioctl(tp, cmd, data, flag, l);
sys/dev/ic/com.c
1405
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/dev/ic/com.c
1645
comparam(struct tty *tp, struct termios *t)
sys/dev/ic/com.c
1648
device_lookup_private(&com_cd, COMUNIT(tp->t_dev));
sys/dev/ic/com.c
1709
if (tp->t_ospeed == t->c_ospeed &&
sys/dev/ic/com.c
1710
tp->t_cflag == t->c_cflag)
sys/dev/ic/com.c
1774
if (t->c_ospeed == 0 && tp->t_ospeed != 0)
sys/dev/ic/com.c
1776
else if (t->c_ospeed != 0 && tp->t_ospeed == 0)
sys/dev/ic/com.c
1810
tp->t_ispeed = t->c_ospeed;
sys/dev/ic/com.c
1811
tp->t_ospeed = t->c_ospeed;
sys/dev/ic/com.c
1812
tp->t_cflag = t->c_cflag;
sys/dev/ic/com.c
1849
(void) (*tp->t_linesw->l_modem)(tp, 1);
sys/dev/ic/com.c
1851
(void) (*tp->t_linesw->l_modem)(tp, ISSET(sc->sc_msr, MSR_DCD));
sys/dev/ic/com.c
1861
comstart(tp);
sys/dev/ic/com.c
2000
comhwiflow(struct tty *tp, int block)
sys/dev/ic/com.c
2003
device_lookup_private(&com_cd, COMUNIT(tp->t_dev));
sys/dev/ic/com.c
2034
comhwiflowsoft(struct tty *tp, int block)
sys/dev/ic/com.c
2039
r = comhwiflow(tp, block);
sys/dev/ic/com.c
2068
comstart(struct tty *tp)
sys/dev/ic/com.c
2071
device_lookup_private(&com_cd, COMUNIT(tp->t_dev));
sys/dev/ic/com.c
2077
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/dev/ic/com.c
2081
if (!ttypull(tp))
sys/dev/ic/com.c
2089
tba = tp->t_outq.c_cf;
sys/dev/ic/com.c
2090
tbc = ndqb(&tp->t_outq, 0);
sys/dev/ic/com.c
2098
SET(tp->t_state, TS_BUSY);
sys/dev/ic/com.c
2127
comstartsoft(struct tty *tp)
sys/dev/ic/com.c
2130
comstart(tp);
sys/dev/ic/com.c
2142
comstop(struct tty *tp, int flag)
sys/dev/ic/com.c
2145
device_lookup_private(&com_cd, COMUNIT(tp->t_dev));
sys/dev/ic/com.c
2149
if (ISSET(tp->t_state, TS_BUSY)) {
sys/dev/ic/com.c
2153
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/dev/ic/com.c
2154
SET(tp->t_state, TS_FLUSH);
sys/dev/ic/com.c
2182
com_rxsoft(struct com_softc *sc, struct tty *tp)
sys/dev/ic/com.c
2184
int (*rint)(int, struct tty *) = tp->t_linesw->l_rint;
sys/dev/ic/com.c
2202
if (!ISSET(tp->t_state, TS_ISOPEN)) {
sys/dev/ic/com.c
2223
if ((*rint)(code, tp) == -1) {
sys/dev/ic/com.c
2286
com_txsoft(struct com_softc *sc, struct tty *tp)
sys/dev/ic/com.c
2289
CLR(tp->t_state, TS_BUSY);
sys/dev/ic/com.c
2290
if (ISSET(tp->t_state, TS_FLUSH))
sys/dev/ic/com.c
2291
CLR(tp->t_state, TS_FLUSH);
sys/dev/ic/com.c
2293
ndflush(&tp->t_outq, (int)(sc->sc_tba - tp->t_outq.c_cf));
sys/dev/ic/com.c
2302
comstart(tp);
sys/dev/ic/com.c
2306
com_stsoft(struct com_softc *sc, struct tty *tp)
sys/dev/ic/com.c
2320
(void) (*tp->t_linesw->l_modem)(tp, ISSET(msr, MSR_DCD));
sys/dev/ic/com.c
2328
comstart(tp);
sys/dev/ic/com.c
2344
struct tty *tp;
sys/dev/ic/com.c
2349
tp = sc->sc_tty;
sys/dev/ic/com.c
2353
com_rxsoft(sc, tp);
sys/dev/ic/com.c
2358
com_stsoft(sc, tp);
sys/dev/ic/com.c
2363
com_txsoft(sc, tp);
sys/dev/ic/com.c
491
struct tty *tp = sc->sc_tty;
sys/dev/ic/com.c
496
ISSET(tp->t_cflag, CLOCAL) ? '+' : '-',
sys/dev/ic/com.c
498
ISSET(tp->t_state, TS_CARR_ON) ? '+' : '-',
sys/dev/ic/com.c
505
ISSET(tp->t_cflag, CRTSCTS) ? '+' : '-',
sys/dev/ic/com.c
507
ISSET(tp->t_state, TS_TTSTOP) ? '+' : '-',
sys/dev/ic/com.c
571
struct tty *tp;
sys/dev/ic/com.c
846
tp = tty_alloc();
sys/dev/ic/com.c
848
tp->t_oproc = comstartsoft;
sys/dev/ic/com.c
849
tp->t_hwiflow = comhwiflowsoft;
sys/dev/ic/com.c
851
tp->t_oproc = comstart;
sys/dev/ic/com.c
852
tp->t_hwiflow = comhwiflow;
sys/dev/ic/com.c
854
tp->t_param = comparam;
sys/dev/ic/com.c
855
tp->t_softc = sc;
sys/dev/ic/com.c
857
sc->sc_tty = tp;
sys/dev/ic/com.c
863
tty_attach(tp);
sys/dev/ic/com.c
874
tp->t_dev = cn_tab->cn_dev = makedev(maj,
sys/dev/ic/cy.c
1004
if (CY_DIALOUT(tp->t_dev) == 0 &&
sys/dev/ic/cy.c
1005
!(*tp->t_linesw->l_modem)(tp, carrier))
sys/dev/ic/cy.c
1020
(*tp->t_linesw->l_start) (tp);
sys/dev/ic/cy.c
1227
struct tty *tp;
sys/dev/ic/cy.c
1246
tp = cy->cy_tty;
sys/dev/ic/cy.c
1247
if (tp == NULL || ISSET(cy->cy_flags, CY_F_STOP))
sys/dev/ic/cy.c
1257
if (tp->t_outq.c_cc > 0) {
sys/dev/ic/cy.c
1258
SET(tp->t_state, TS_BUSY);
sys/dev/ic/cy.c
1259
while (tp->t_outq.c_cc > 0 &&
sys/dev/ic/cy.c
1261
ch = getc(&tp->t_outq);
sys/dev/ic/cy.c
1305
if (tp->t_outq.c_cc == 0) {
sys/dev/ic/cy.c
1315
CLR(tp->t_state, TS_BUSY);
sys/dev/ic/cy.c
1317
if (tp->t_outq.c_cc <= tp->t_lowat) {
sys/dev/ic/cy.c
284
struct tty *tp;
sys/dev/ic/cy.c
305
tp = cy->cy_tty;
sys/dev/ic/cy.c
306
tp->t_oproc = cystart;
sys/dev/ic/cy.c
307
tp->t_param = cyparam;
sys/dev/ic/cy.c
308
tp->t_dev = dev;
sys/dev/ic/cy.c
310
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/dev/ic/cy.c
313
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/ic/cy.c
314
ttychars(tp);
sys/dev/ic/cy.c
315
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/ic/cy.c
316
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/ic/cy.c
317
tp->t_cflag = TTYDEF_CFLAG;
sys/dev/ic/cy.c
319
SET(tp->t_cflag, CLOCAL);
sys/dev/ic/cy.c
321
SET(tp->t_cflag, CRTSCTS);
sys/dev/ic/cy.c
323
SET(tp->t_cflag, MDMBUF);
sys/dev/ic/cy.c
324
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/ic/cy.c
325
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/dev/ic/cy.c
357
cyparam(tp, &tp->t_termios);
sys/dev/ic/cy.c
359
ttsetwater(tp);
sys/dev/ic/cy.c
373
ISSET(tp->t_cflag, MDMBUF) ||
sys/dev/ic/cy.c
375
SET(tp->t_state, TS_CARR_ON);
sys/dev/ic/cy.c
377
CLR(tp->t_state, TS_CARR_ON);
sys/dev/ic/cy.c
383
ttylock(tp);
sys/dev/ic/cy.c
384
while (!ISSET(tp->t_cflag, CLOCAL) &&
sys/dev/ic/cy.c
385
!ISSET(tp->t_state, TS_CARR_ON)) {
sys/dev/ic/cy.c
386
tp->t_wopen++;
sys/dev/ic/cy.c
387
error = ttysleep(tp, &tp->t_rawcv, true, 0);
sys/dev/ic/cy.c
388
tp->t_wopen--;
sys/dev/ic/cy.c
390
ttyunlock(tp);
sys/dev/ic/cy.c
394
ttyunlock(tp);
sys/dev/ic/cy.c
397
return (*tp->t_linesw->l_open) (dev, tp);
sys/dev/ic/cy.c
408
struct tty *tp;
sys/dev/ic/cy.c
413
tp = cy->cy_tty;
sys/dev/ic/cy.c
415
(*tp->t_linesw->l_close) (tp, flag);
sys/dev/ic/cy.c
418
if (ISSET(tp->t_cflag, HUPCL) &&
sys/dev/ic/cy.c
430
CLR(tp->t_state, TS_BUSY | TS_FLUSH);
sys/dev/ic/cy.c
433
ttyclose(tp);
sys/dev/ic/cy.c
445
struct tty *tp;
sys/dev/ic/cy.c
448
tp = cy->cy_tty;
sys/dev/ic/cy.c
450
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/dev/ic/cy.c
460
struct tty *tp;
sys/dev/ic/cy.c
463
tp = cy->cy_tty;
sys/dev/ic/cy.c
465
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/dev/ic/cy.c
475
struct tty *tp;
sys/dev/ic/cy.c
478
tp = cy->cy_tty;
sys/dev/ic/cy.c
480
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/ic/cy.c
504
struct tty *tp;
sys/dev/ic/cy.c
509
tp = cy->cy_tty;
sys/dev/ic/cy.c
511
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/dev/ic/cy.c
515
error = ttioctl(tp, cmd, data, flag, l);
sys/dev/ic/cy.c
563
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/dev/ic/cy.c
583
cystart(struct tty *tp)
sys/dev/ic/cy.c
589
cy = CY_PORT(tp->t_dev);
sys/dev/ic/cy.c
598
if (!ISSET(tp->t_state, TS_TTSTOP | TS_TIMEOUT | TS_BUSY)) {
sys/dev/ic/cy.c
599
if (!ttypull(tp))
sys/dev/ic/cy.c
601
SET(tp->t_state, TS_BUSY);
sys/dev/ic/cy.c
613
cystop(struct tty *tp, int flag)
sys/dev/ic/cy.c
618
cy = CY_PORT(tp->t_dev);
sys/dev/ic/cy.c
621
if (ISSET(tp->t_state, TS_BUSY)) {
sys/dev/ic/cy.c
622
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/dev/ic/cy.c
623
SET(tp->t_state, TS_FLUSH);
sys/dev/ic/cy.c
639
cyparam(struct tty *tp, struct termios *t)
sys/dev/ic/cy.c
646
cy = CY_PORT(tp->t_dev);
sys/dev/ic/cy.c
777
struct tty *tp = cy->cy_tty;
sys/dev/ic/cy.c
820
if (!ISSET(tp->t_cflag, CRTSCTS))
sys/dev/ic/cy.c
826
if (!ISSET(tp->t_cflag, CRTSCTS))
sys/dev/ic/cy.c
836
if (!ISSET(tp->t_cflag, CRTSCTS) &&
sys/dev/ic/cy.c
844
if (!ISSET(tp->t_cflag, CRTSCTS) &&
sys/dev/ic/cy.c
856
if (!ISSET(tp->t_cflag, CRTSCTS) && (bits & TIOCM_RTS))
sys/dev/ic/cy.c
861
if (!ISSET(tp->t_cflag, CRTSCTS) && (bits & TIOCM_RTS))
sys/dev/ic/cy.c
882
struct tty *tp;
sys/dev/ic/cy.c
908
if ((tp = cy->cy_tty) == NULL || cy->cy_ibuf == NULL ||
sys/dev/ic/cy.c
909
(!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0))
sys/dev/ic/cy.c
939
(*tp->t_linesw->l_rint) (chr, tp);
sys/dev/ic/cy.c
957
if (ISSET(tp->t_cflag, CRTSCTS)) {
sys/dev/ic/oosiop.c
121
#define oosiop_period(sc, tp, scf) \
sys/dev/ic/oosiop.c
122
(((1000000000 / (sc)->sc_freq) * (tp) * (scf)) / 40)
sys/dev/ic/oosiop.c
695
p = oosiop_period(sc, synctbl[i].tp + 4,
sys/dev/ic/oosiop.c
706
sc->sc_tgt[id].sxfer = (synctbl[i].tp << 4) | offset;
sys/dev/ic/oosiop.c
96
uint8_t tp;
sys/dev/ic/sgec.c
202
tp = sc->sc_zedata->zc_xmit;
sys/dev/ic/sgec.c
203
tp[TXDESCS].ze_tdr = ZE_TDR_OW;
sys/dev/ic/sgec.c
204
tp[TXDESCS].ze_tdes1 = ZE_TDES1_CA;
sys/dev/ic/sgec.c
205
tp[TXDESCS].ze_bufaddr = (char *)sc->sc_pzedata->zc_xmit;
sys/dev/ic/sgec.c
88
struct ze_tdes *tp;
sys/dev/ic/z8530tty.c
1002
if (tp->t_ospeed == ospeed &&
sys/dev/ic/z8530tty.c
1003
tp->t_cflag == cflag)
sys/dev/ic/z8530tty.c
1078
tp->t_ispeed = 0;
sys/dev/ic/z8530tty.c
1079
tp->t_ospeed = ospeed;
sys/dev/ic/z8530tty.c
1080
tp->t_cflag = cflag;
sys/dev/ic/z8530tty.c
1132
zsstart(tp);
sys/dev/ic/z8530tty.c
1276
zshwiflow(struct tty *tp, int block)
sys/dev/ic/z8530tty.c
1281
zst = device_lookup_private(&zstty_cd, ZSUNIT(tp->t_dev));
sys/dev/ic/z8530tty.c
1540
zstty_rxsoft(struct zstty_softc *zst, struct tty *tp)
sys/dev/ic/z8530tty.c
1543
int (*rint)(int, struct tty *) = tp->t_linesw->l_rint;
sys/dev/ic/z8530tty.c
1561
if (!ISSET(tp->t_state, TS_ISOPEN)) {
sys/dev/ic/z8530tty.c
1582
if ((*rint)(code, tp) == -1) {
sys/dev/ic/z8530tty.c
1642
zstty_txsoft(struct zstty_softc *zst, struct tty *tp)
sys/dev/ic/z8530tty.c
1647
CLR(tp->t_state, TS_BUSY);
sys/dev/ic/z8530tty.c
1648
if (ISSET(tp->t_state, TS_FLUSH))
sys/dev/ic/z8530tty.c
1649
CLR(tp->t_state, TS_FLUSH);
sys/dev/ic/z8530tty.c
1651
ndflush(&tp->t_outq, (int)(zst->zst_tba - tp->t_outq.c_cf));
sys/dev/ic/z8530tty.c
1653
(*tp->t_linesw->l_start)(tp);
sys/dev/ic/z8530tty.c
1657
zstty_stsoft(struct zstty_softc *zst, struct tty *tp)
sys/dev/ic/z8530tty.c
1672
(void) (*tp->t_linesw->l_modem)(tp, ISSET(rr0, ZSRR0_DCD));
sys/dev/ic/z8530tty.c
1679
(*tp->t_linesw->l_start)(tp);
sys/dev/ic/z8530tty.c
1709
struct tty *tp = zst->zst_tty;
sys/dev/ic/z8530tty.c
1714
zstty_rxsoft(zst, tp);
sys/dev/ic/z8530tty.c
1719
zstty_stsoft(zst, tp);
sys/dev/ic/z8530tty.c
1724
zstty_txsoft(zst, tp);
sys/dev/ic/z8530tty.c
334
struct tty *tp;
sys/dev/ic/z8530tty.c
403
tp = tty_alloc();
sys/dev/ic/z8530tty.c
404
tp->t_dev = dev;
sys/dev/ic/z8530tty.c
405
tp->t_oproc = zsstart;
sys/dev/ic/z8530tty.c
406
tp->t_param = zsparam;
sys/dev/ic/z8530tty.c
407
tp->t_hwiflow = zshwiflow;
sys/dev/ic/z8530tty.c
408
tty_attach(tp);
sys/dev/ic/z8530tty.c
410
zst->zst_tty = tp;
sys/dev/ic/z8530tty.c
450
tp->t_ospeed = 0;
sys/dev/ic/z8530tty.c
451
(void) zsparam(tp, &t);
sys/dev/ic/z8530tty.c
487
struct tty *tp = zst->zst_tty;
sys/dev/ic/z8530tty.c
502
if (ISSET(tp->t_cflag, HUPCL)) {
sys/dev/ic/z8530tty.c
511
if (ISSET(tp->t_state, TS_ISOPEN) || tp->t_wopen != 0)
sys/dev/ic/z8530tty.c
544
struct tty *tp;
sys/dev/ic/z8530tty.c
551
tp = zst->zst_tty;
sys/dev/ic/z8530tty.c
555
if (tp == NULL)
sys/dev/ic/z8530tty.c
562
if (ISSET(tp->t_state, TS_KERN_ONLY))
sys/dev/ic/z8530tty.c
565
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/dev/ic/z8530tty.c
568
ttylock(tp);
sys/dev/ic/z8530tty.c
573
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/ic/z8530tty.c
576
tp->t_dev = dev;
sys/dev/ic/z8530tty.c
581
ttyunlock(tp);
sys/dev/ic/z8530tty.c
626
tp->t_ospeed = 0;
sys/dev/ic/z8530tty.c
627
ttyunlock(tp);
sys/dev/ic/z8530tty.c
628
(void) zsparam(tp, &t);
sys/dev/ic/z8530tty.c
629
ttylock(tp);
sys/dev/ic/z8530tty.c
637
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/ic/z8530tty.c
638
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/ic/z8530tty.c
639
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/ic/z8530tty.c
641
tp->t_iflag = 0;
sys/dev/ic/z8530tty.c
642
tp->t_oflag = 0;
sys/dev/ic/z8530tty.c
643
tp->t_lflag = 0;
sys/dev/ic/z8530tty.c
645
ttychars(tp);
sys/dev/ic/z8530tty.c
646
ttsetwater(tp);
sys/dev/ic/z8530tty.c
669
ttyunlock(tp);
sys/dev/ic/z8530tty.c
671
error = ttyopen(tp, ZSDIALOUT(dev), ISSET(flags, O_NONBLOCK));
sys/dev/ic/z8530tty.c
675
error = (*tp->t_linesw->l_open)(dev, tp);
sys/dev/ic/z8530tty.c
682
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/ic/z8530tty.c
700
struct tty *tp;
sys/dev/ic/z8530tty.c
703
tp = zst->zst_tty;
sys/dev/ic/z8530tty.c
706
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/dev/ic/z8530tty.c
709
(*tp->t_linesw->l_close)(tp, flags);
sys/dev/ic/z8530tty.c
710
ttyclose(tp);
sys/dev/ic/z8530tty.c
712
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/ic/z8530tty.c
731
struct tty *tp;
sys/dev/ic/z8530tty.c
734
tp = zst->zst_tty;
sys/dev/ic/z8530tty.c
736
return ((*tp->t_linesw->l_read)(tp, uio, flags));
sys/dev/ic/z8530tty.c
743
struct tty *tp;
sys/dev/ic/z8530tty.c
746
tp = zst->zst_tty;
sys/dev/ic/z8530tty.c
748
return ((*tp->t_linesw->l_write)(tp, uio, flags));
sys/dev/ic/z8530tty.c
755
struct tty *tp;
sys/dev/ic/z8530tty.c
758
tp = zst->zst_tty;
sys/dev/ic/z8530tty.c
760
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/ic/z8530tty.c
768
struct tty *tp;
sys/dev/ic/z8530tty.c
773
tp = zst->zst_tty;
sys/dev/ic/z8530tty.c
774
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/dev/ic/z8530tty.c
778
error = ttioctl(tp, cmd, data, flag, l);
sys/dev/ic/z8530tty.c
807
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/dev/ic/z8530tty.c
896
zsstart(struct tty *tp)
sys/dev/ic/z8530tty.c
903
zst = device_lookup_private(&zstty_cd, ZSUNIT(tp->t_dev));
sys/dev/ic/z8530tty.c
906
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/dev/ic/z8530tty.c
910
if (!ttypull(tp))
sys/dev/ic/z8530tty.c
914
tba = tp->t_outq.c_cf;
sys/dev/ic/z8530tty.c
915
tbc = ndqb(&tp->t_outq, 0);
sys/dev/ic/z8530tty.c
921
SET(tp->t_state, TS_BUSY);
sys/dev/ic/z8530tty.c
944
zsstop(struct tty *tp, int flag)
sys/dev/ic/z8530tty.c
948
zst = device_lookup_private(&zstty_cd, ZSUNIT(tp->t_dev));
sys/dev/ic/z8530tty.c
951
if (ISSET(tp->t_state, TS_BUSY)) {
sys/dev/ic/z8530tty.c
955
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/dev/ic/z8530tty.c
956
SET(tp->t_state, TS_FLUSH);
sys/dev/ic/z8530tty.c
967
zsparam(struct tty *tp, struct termios *t)
sys/dev/ic/z8530tty.c
976
zst = device_lookup_private(&zstty_cd, ZSUNIT(tp->t_dev));
sys/dev/ir/irframe_tty.c
1004
irts_tekram(struct tty *tp, u_int speed)
sys/dev/ir/irframe_tty.c
1008
irt_setspeed(tp, 9600);
sys/dev/ir/irframe_tty.c
1009
irt_setline(tp, 0);
sys/dev/ir/irframe_tty.c
1010
irt_delay(tp, 50);
sys/dev/ir/irframe_tty.c
1012
irt_setline(tp, TIOCM_RTS);
sys/dev/ir/irframe_tty.c
1013
irt_delay(tp, 1);
sys/dev/ir/irframe_tty.c
1015
irt_setline(tp, TIOCM_DTR | TIOCM_RTS);
sys/dev/ir/irframe_tty.c
1016
irt_delay(tp, 1); /* 50 us */
sys/dev/ir/irframe_tty.c
1018
irt_setline(tp, TIOCM_DTR);
sys/dev/ir/irframe_tty.c
1019
irt_delay(tp, 1); /* 7 us */
sys/dev/ir/irframe_tty.c
1029
irt_putc(tp, s);
sys/dev/ir/irframe_tty.c
1030
irframetstart(tp);
sys/dev/ir/irframe_tty.c
1032
irt_delay(tp, 100);
sys/dev/ir/irframe_tty.c
1034
irt_setline(tp, TIOCM_DTR | TIOCM_RTS);
sys/dev/ir/irframe_tty.c
1036
irt_setspeed(tp, speed);
sys/dev/ir/irframe_tty.c
1037
irt_delay(tp, 1); /* 50 us */
sys/dev/ir/irframe_tty.c
1044
irts_jeteye(struct tty *tp, u_int speed)
sys/dev/ir/irframe_tty.c
1048
irt_setline(tp, TIOCM_DTR);
sys/dev/ir/irframe_tty.c
1051
irt_setline(tp, TIOCM_DTR | TIOCM_RTS);
sys/dev/ir/irframe_tty.c
1054
irt_setline(tp, TIOCM_RTS);
sys/dev/ir/irframe_tty.c
1057
irt_setspeed(tp, speed);
sys/dev/ir/irframe_tty.c
1064
irts_actisys(struct tty *tp, u_int speed)
sys/dev/ir/irframe_tty.c
1066
struct irframet_softc *sc = (struct irframet_softc *)tp->t_sc;
sys/dev/ir/irframe_tty.c
1069
irt_setspeed(tp, speed);
sys/dev/ir/irframe_tty.c
1081
irt_setline(tp, TIOCM_DTR | TIOCM_RTS);
sys/dev/ir/irframe_tty.c
1086
irt_delay(tp, 50);
sys/dev/ir/irframe_tty.c
1088
irt_setline(tp, TIOCM_RTS);
sys/dev/ir/irframe_tty.c
1091
irt_setline(tp, TIOCM_DTR | TIOCM_RTS);
sys/dev/ir/irframe_tty.c
1095
irt_setline(tp, TIOCM_DTR);
sys/dev/ir/irframe_tty.c
1104
irts_litelink(struct tty *tp, u_int speed)
sys/dev/ir/irframe_tty.c
1106
struct irframet_softc *sc = (struct irframet_softc *)tp->t_sc;
sys/dev/ir/irframe_tty.c
1109
irt_setspeed(tp, speed);
sys/dev/ir/irframe_tty.c
1121
irt_setline(tp, TIOCM_DTR | TIOCM_RTS);
sys/dev/ir/irframe_tty.c
1123
irt_setline(tp, TIOCM_RTS);
sys/dev/ir/irframe_tty.c
1124
irt_delay(tp, 1); /* 15 us */;
sys/dev/ir/irframe_tty.c
1126
irt_setline(tp, TIOCM_DTR | TIOCM_RTS);
sys/dev/ir/irframe_tty.c
1127
irt_delay(tp, 1); /* 15 us */;
sys/dev/ir/irframe_tty.c
1130
irt_setline(tp, TIOCM_DTR);
sys/dev/ir/irframe_tty.c
1131
irt_delay(tp, 1); /* 15 us */;
sys/dev/ir/irframe_tty.c
1166
irts_girbil(struct tty *tp, u_int speed)
sys/dev/ir/irframe_tty.c
1170
irt_setspeed(tp, 9600);
sys/dev/ir/irframe_tty.c
1171
irt_setline(tp, TIOCM_DTR);
sys/dev/ir/irframe_tty.c
1172
irt_delay(tp, 5);
sys/dev/ir/irframe_tty.c
1173
irt_setline(tp, TIOCM_RTS);
sys/dev/ir/irframe_tty.c
1174
irt_delay(tp, 20);
sys/dev/ir/irframe_tty.c
1184
irt_putc(tp, GIRBIL_TXEN|GIRBIL_RXEN);
sys/dev/ir/irframe_tty.c
1185
irt_putc(tp, s);
sys/dev/ir/irframe_tty.c
1186
irt_putc(tp, GIRBIL_LOAD);
sys/dev/ir/irframe_tty.c
1187
irframetstart(tp);
sys/dev/ir/irframe_tty.c
1188
irt_delay(tp, 100);
sys/dev/ir/irframe_tty.c
1189
irt_setline(tp, TIOCM_DTR | TIOCM_RTS);
sys/dev/ir/irframe_tty.c
1191
irt_setspeed(tp, speed);
sys/dev/ir/irframe_tty.c
267
irframetopen(dev_t dev, struct tty *tp)
sys/dev/ir/irframe_tty.c
279
KAUTH_DEVICE_TTY_OPEN, tp)))
sys/dev/ir/irframe_tty.c
284
DPRINTF(("%s: linesw=%p disc=%s\n", __func__, tp->t_linesw,
sys/dev/ir/irframe_tty.c
285
tp->t_linesw->l_name));
sys/dev/ir/irframe_tty.c
286
if (tp->t_linesw == &irframet_disc) {
sys/dev/ir/irframe_tty.c
287
sc = (struct irframet_softc *)tp->t_sc;
sys/dev/ir/irframe_tty.c
306
ia.ia_handle = tp;
sys/dev/ir/irframe_tty.c
309
tp->t_sc = sc;
sys/dev/ir/irframe_tty.c
310
sc->sc_tp = tp;
sys/dev/ir/irframe_tty.c
312
(int)minor(tp->t_dev));
sys/dev/ir/irframe_tty.c
316
ttylock(tp);
sys/dev/ir/irframe_tty.c
317
ttyflush(tp, FREAD | FWRITE);
sys/dev/ir/irframe_tty.c
318
ttyunlock(tp);
sys/dev/ir/irframe_tty.c
335
irframetclose(struct tty *tp, int flag)
sys/dev/ir/irframe_tty.c
337
struct irframet_softc *sc = (struct irframet_softc *)tp->t_sc;
sys/dev/ir/irframe_tty.c
341
DPRINTF(("%s: tp=%p\n", __func__, tp));
sys/dev/ir/irframe_tty.c
344
ttylock(tp);
sys/dev/ir/irframe_tty.c
345
ttyflush(tp, FREAD | FWRITE);
sys/dev/ir/irframe_tty.c
346
ttyunlock(tp); /* XXX */
sys/dev/ir/irframe_tty.c
347
ttyldisc_release(tp->t_linesw);
sys/dev/ir/irframe_tty.c
348
tp->t_linesw = ttyldisc_default(); if (sc != NULL) {
sys/dev/ir/irframe_tty.c
350
tp->t_sc = NULL;
sys/dev/ir/irframe_tty.c
352
device_xname(sc->sc_irp.sc_dev), (int)minor(tp->t_dev));
sys/dev/ir/irframe_tty.c
354
if (sc->sc_tp == tp) {
sys/dev/ir/irframe_tty.c
371
irframetioctl(struct tty *tp, u_long cmd, void *data, int flag,
sys/dev/ir/irframe_tty.c
374
struct irframet_softc *sc = (struct irframet_softc *)tp->t_sc;
sys/dev/ir/irframe_tty.c
378
DPRINTF(("%s: tp=%p\n", __func__, tp));
sys/dev/ir/irframe_tty.c
386
if (sc == NULL || tp != sc->sc_tp)
sys/dev/ir/irframe_tty.c
415
irframetstart(struct tty *tp)
sys/dev/ir/irframe_tty.c
420
DPRINTF(("%s: tp=%p\n", __func__, tp));
sys/dev/ir/irframe_tty.c
423
if (tp->t_oproc != NULL)
sys/dev/ir/irframe_tty.c
424
(*tp->t_oproc)(tp);
sys/dev/ir/irframe_tty.c
500
irframetinput(int c, struct tty *tp)
sys/dev/ir/irframe_tty.c
502
struct irframet_softc *sc = (struct irframet_softc *)tp->t_sc;
sys/dev/ir/irframe_tty.c
508
DPRINTF(("%s: tp=%p c=0x%02x\n", __func__, tp, c));
sys/dev/ir/irframe_tty.c
511
if (sc == NULL || tp != (struct tty *)sc->sc_tp)
sys/dev/ir/irframe_tty.c
584
struct tty *tp = h;
sys/dev/ir/irframe_tty.c
585
struct irframet_softc *sc = (struct irframet_softc *)tp->t_sc;
sys/dev/ir/irframe_tty.c
587
DPRINTF(("%s: tp=%p\n", __func__, tp));
sys/dev/ir/irframe_tty.c
604
struct tty *tp = h;
sys/dev/ir/irframe_tty.c
605
struct irframet_softc *sc = (struct irframet_softc *)tp->t_sc;
sys/dev/ir/irframe_tty.c
608
DPRINTF(("%s: tp=%p\n", __func__, tp));
sys/dev/ir/irframe_tty.c
625
struct tty *tp = h;
sys/dev/ir/irframe_tty.c
626
struct irframet_softc *sc = (struct irframet_softc *)tp->t_sc;
sys/dev/ir/irframe_tty.c
676
irt_putc(struct tty *tp, int c)
sys/dev/ir/irframe_tty.c
682
DPRINTF(("%s: tp=%p c=0x%02x cc=%d\n", __func__, tp, c,
sys/dev/ir/irframe_tty.c
683
tp->t_outq.c_cc));
sys/dev/ir/irframe_tty.c
685
if (tp->t_outq.c_cc > tp->t_hiwat) {
sys/dev/ir/irframe_tty.c
686
irframetstart(tp);
sys/dev/ir/irframe_tty.c
687
ttylock(tp);
sys/dev/ir/irframe_tty.c
692
if (tp->t_outq.c_cc <= tp->t_hiwat) {
sys/dev/ir/irframe_tty.c
693
ttyunlock(tp);
sys/dev/ir/irframe_tty.c
696
error = ttysleep(tp, &tp->t_outcv, true, 0);
sys/dev/ir/irframe_tty.c
697
ttyunlock(tp);
sys/dev/ir/irframe_tty.c
702
if (putc(c, &tp->t_outq) < 0) {
sys/dev/ir/irframe_tty.c
712
struct tty *tp = h;
sys/dev/ir/irframe_tty.c
713
struct irframet_softc *sc = (struct irframet_softc *)tp->t_sc;
sys/dev/ir/irframe_tty.c
728
return (irt_write_frame(tp, sc->sc_buffer, n));
sys/dev/ir/irframe_tty.c
732
irt_write_frame(struct tty *tp, u_int8_t *tbuf, size_t len)
sys/dev/ir/irframe_tty.c
734
struct irframet_softc *sc = (struct irframet_softc *)tp->t_sc;
sys/dev/ir/irframe_tty.c
737
DPRINTF(("%s: tp=%p len=%zd\n", __func__, tp, len));
sys/dev/ir/irframe_tty.c
742
error = irt_putc(tp, tbuf[i]);
sys/dev/ir/irframe_tty.c
745
irframetstart(tp);
sys/dev/ir/irframe_tty.c
755
struct tty *tp = h;
sys/dev/ir/irframe_tty.c
756
struct irframet_softc *sc = (struct irframet_softc *)tp->t_sc;
sys/dev/ir/irframe_tty.c
765
if (tp->t_outq.c_cc <= tp->t_lowat)
sys/dev/ir/irframe_tty.c
785
struct tty *tp = kn->kn_hook;
sys/dev/ir/irframe_tty.c
786
struct irframet_softc *sc = (struct irframet_softc *)tp->t_sc;
sys/dev/ir/irframe_tty.c
797
struct tty *tp = kn->kn_hook;
sys/dev/ir/irframe_tty.c
798
struct irframet_softc *sc = (struct irframet_softc *)tp->t_sc;
sys/dev/ir/irframe_tty.c
807
struct tty *tp = kn->kn_hook;
sys/dev/ir/irframe_tty.c
808
struct irframet_softc *sc = (struct irframet_softc *)tp->t_sc;
sys/dev/ir/irframe_tty.c
819
struct tty *tp = kn->kn_hook;
sys/dev/ir/irframe_tty.c
823
if (tp->t_outq.c_cc <= tp->t_lowat) {
sys/dev/ir/irframe_tty.c
824
kn->kn_data = tp->t_lowat - tp->t_outq.c_cc;
sys/dev/ir/irframe_tty.c
849
struct tty *tp = h;
sys/dev/ir/irframe_tty.c
850
struct irframet_softc *sc = (struct irframet_softc *)tp->t_sc;
sys/dev/ir/irframe_tty.c
867
kn->kn_hook = tp;
sys/dev/ir/irframe_tty.c
879
struct tty *tp = h;
sys/dev/ir/irframe_tty.c
880
struct irframet_softc *sc = (struct irframet_softc *)tp->t_sc;
sys/dev/ir/irframe_tty.c
883
__func__, tp, p->speed, p->ebofs, p->maxsize));
sys/dev/ir/irframe_tty.c
888
irt_dongles[sc->sc_dongle].setspeed(tp, p->speed);
sys/dev/ir/irframe_tty.c
904
struct tty *tp = h;
sys/dev/ir/irframe_tty.c
905
struct irframet_softc *sc = (struct irframet_softc *)tp->t_sc;
sys/dev/ir/irframe_tty.c
907
DPRINTF(("%s: tp=%p\n", __func__, tp));
sys/dev/ir/irframe_tty.c
919
struct tty *tp = h;
sys/dev/ir/irframe_tty.c
920
struct irframet_softc *sc = (struct irframet_softc *)tp->t_sc;
sys/dev/ir/irframe_tty.c
922
DPRINTF(("%s: tp=%p\n", __func__, tp));
sys/dev/ir/irframe_tty.c
929
irt_ioctl(struct tty *tp, u_long cmd, void *arg)
sys/dev/ir/irframe_tty.c
935
dev = tp->t_dev;
sys/dev/ir/irframe_tty.c
948
irt_setspeed(struct tty *tp, u_int speed)
sys/dev/ir/irframe_tty.c
952
irt_ioctl(tp, TIOCGETA, &tt);
sys/dev/ir/irframe_tty.c
956
irt_ioctl(tp, TIOCSETAF, &tt);
sys/dev/ir/irframe_tty.c
960
irt_setline(struct tty *tp, u_int line)
sys/dev/ir/irframe_tty.c
964
irt_ioctl(tp, TIOCMGET, &mline);
sys/dev/ir/irframe_tty.c
967
irt_ioctl(tp, TIOCMSET, (void *)&mline);
sys/dev/ir/irframe_tty.c
971
irt_delay(struct tty *tp, u_int ms)
sys/dev/ir/irframe_tty.c
984
irts_none(struct tty *tp, u_int speed)
sys/dev/ir/irframe_tty.c
986
irt_setspeed(tp, speed);
sys/dev/marvell/gtmpsc.c
1219
struct tty *tp;
sys/dev/marvell/gtmpsc.c
1225
tp = sc->sc_tty;
sys/dev/marvell/gtmpsc.c
1228
(void) (*tp->t_linesw->l_modem)(tp, 0);
sys/dev/marvell/gtmpsc.c
236
struct tty *tp;
sys/dev/marvell/gtmpsc.c
337
sc->sc_tty = tp = tty_alloc();
sys/dev/marvell/gtmpsc.c
338
tp->t_oproc = gtmpscstart;
sys/dev/marvell/gtmpsc.c
339
tp->t_param = gtmpscparam;
sys/dev/marvell/gtmpsc.c
340
tty_attach(tp);
sys/dev/marvell/gtmpsc.c
368
tp->t_dev = cn_tab->cn_dev =
sys/dev/marvell/gtmpsc.c
451
struct tty *tp = sc->sc_tty;
sys/dev/marvell/gtmpsc.c
456
int (*rint)(int, struct tty *) = tp->t_linesw->l_rint;
sys/dev/marvell/gtmpsc.c
464
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/dev/marvell/gtmpsc.c
487
if ((*rint)(code, tp) == -1) {
sys/dev/marvell/gtmpsc.c
507
CLR(tp->t_state, TS_BUSY);
sys/dev/marvell/gtmpsc.c
508
if (ISSET(tp->t_state, TS_FLUSH))
sys/dev/marvell/gtmpsc.c
509
CLR(tp->t_state, TS_FLUSH);
sys/dev/marvell/gtmpsc.c
511
ndflush(&tp->t_outq, (int)(sc->sc_tba - tp->t_outq.c_cf));
sys/dev/marvell/gtmpsc.c
512
(*tp->t_linesw->l_start)(tp);
sys/dev/marvell/gtmpsc.c
521
struct tty *tp;
sys/dev/marvell/gtmpsc.c
535
tp = sc->sc_tty;
sys/dev/marvell/gtmpsc.c
536
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/dev/marvell/gtmpsc.c
541
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/marvell/gtmpsc.c
544
tp->t_dev = dev;
sys/dev/marvell/gtmpsc.c
571
tp->t_ospeed = 0;
sys/dev/marvell/gtmpsc.c
572
(void) gtmpscparam(tp, &t);
sys/dev/marvell/gtmpsc.c
573
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/marvell/gtmpsc.c
574
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/marvell/gtmpsc.c
575
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/marvell/gtmpsc.c
576
ttychars(tp);
sys/dev/marvell/gtmpsc.c
577
ttsetwater(tp);
sys/dev/marvell/gtmpsc.c
597
error = ttyopen(tp, GTMPSCDIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/dev/marvell/gtmpsc.c
601
error = (*tp->t_linesw->l_open)(dev, tp);
sys/dev/marvell/gtmpsc.c
608
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/marvell/gtmpsc.c
624
struct tty *tp = sc->sc_tty;
sys/dev/marvell/gtmpsc.c
626
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/dev/marvell/gtmpsc.c
629
(*tp->t_linesw->l_close)(tp, flag);
sys/dev/marvell/gtmpsc.c
630
ttyclose(tp);
sys/dev/marvell/gtmpsc.c
632
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/marvell/gtmpsc.c
649
struct tty *tp = sc->sc_tty;
sys/dev/marvell/gtmpsc.c
651
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/dev/marvell/gtmpsc.c
659
struct tty *tp = sc->sc_tty;
sys/dev/marvell/gtmpsc.c
661
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/dev/marvell/gtmpsc.c
669
struct tty *tp = sc->sc_tty;
sys/dev/marvell/gtmpsc.c
672
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/dev/marvell/gtmpsc.c
676
error = ttioctl(tp, cmd, data, flag, l);
sys/dev/marvell/gtmpsc.c
684
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/dev/marvell/gtmpsc.c
733
gtmpscstop(struct tty *tp, int flag)
sys/dev/marvell/gtmpsc.c
751
struct tty *tp = sc->sc_tty;
sys/dev/marvell/gtmpsc.c
753
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/dev/marvell/gtmpsc.c
758
gtmpscstart(struct tty *tp)
sys/dev/marvell/gtmpsc.c
765
unit = GTMPSCUNIT(tp->t_dev);
sys/dev/marvell/gtmpsc.c
771
if (ISSET(tp->t_state, TS_TIMEOUT | TS_BUSY | TS_TTSTOP))
sys/dev/marvell/gtmpsc.c
775
if (!ttypull(tp))
sys/dev/marvell/gtmpsc.c
779
tba = tp->t_outq.c_cf;
sys/dev/marvell/gtmpsc.c
780
tbc = ndqb(&tp->t_outq, 0);
sys/dev/marvell/gtmpsc.c
789
SET(tp->t_state, TS_BUSY);
sys/dev/marvell/gtmpsc.c
799
gtmpscparam(struct tty *tp, struct termios *t)
sys/dev/marvell/gtmpsc.c
802
device_lookup_private(&gtmpsc_cd, GTMPSCUNIT(tp->t_dev));
sys/dev/marvell/gtmpsc.c
815
if (tp->t_ospeed == t->c_ospeed &&
sys/dev/marvell/gtmpsc.c
816
tp->t_cflag == t->c_cflag)
sys/dev/marvell/gtmpsc.c
822
tp->t_ispeed = 0;
sys/dev/marvell/gtmpsc.c
823
tp->t_ospeed = t->c_ospeed;
sys/dev/marvell/gtmpsc.c
824
tp->t_cflag = t->c_cflag;
sys/dev/marvell/gtmpsc.c
840
(void) (*tp->t_linesw->l_modem)(tp, 1);
sys/dev/mscp/mscp_disk.c
414
struct disklabel *lp, *tp;
sys/dev/mscp/mscp_disk.c
438
tp = &newlabel;
sys/dev/mscp/mscp_disk.c
441
tp = (struct disklabel *)data;
sys/dev/mscp/mscp_disk.c
447
error = setdisklabel(lp, tp, 0, 0);
sys/dev/mscp/mscp_disk.c
472
tp = &newlabel;
sys/dev/mscp/mscp_disk.c
475
tp = (struct disklabel *)data;
sys/dev/mscp/mscp_disk.c
476
memset(tp, 0, sizeof(struct disklabel));
sys/dev/mscp/mscp_disk.c
477
tp->d_secsize = lp->d_secsize;
sys/dev/mscp/mscp_disk.c
478
tp->d_nsectors = lp->d_nsectors;
sys/dev/mscp/mscp_disk.c
479
tp->d_ntracks = lp->d_ntracks;
sys/dev/mscp/mscp_disk.c
480
tp->d_ncylinders = lp->d_ncylinders;
sys/dev/mscp/mscp_disk.c
481
tp->d_secpercyl = lp->d_secpercyl;
sys/dev/mscp/mscp_disk.c
482
tp->d_secperunit = lp->d_secperunit;
sys/dev/mscp/mscp_disk.c
483
tp->d_type = DKTYPE_MSCP;
sys/dev/mscp/mscp_disk.c
484
tp->d_rpm = 3600;
sys/dev/mscp/mscp_disk.c
485
rrmakelabel(tp, ra->ra_mediaid);
sys/dev/mscp/mscp_disk.c
488
if (tp->d_npartitions > OLDMAXPARTITIONS)
sys/dev/mscp/mscp_disk.c
490
memcpy(data, tp, sizeof (struct olddisklabel));
sys/dev/ofw/ofcons.c
128
struct tty *tp;
sys/dev/ofw/ofcons.c
133
if (!(tp = sc->of_tty))
sys/dev/ofw/ofcons.c
134
sc->of_tty = tp = tty_alloc();
sys/dev/ofw/ofcons.c
135
tp->t_oproc = ofcons_start;
sys/dev/ofw/ofcons.c
136
tp->t_param = ofcons_param;
sys/dev/ofw/ofcons.c
137
tp->t_dev = dev;
sys/dev/ofw/ofcons.c
138
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/dev/ofw/ofcons.c
140
if (!(tp->t_state & TS_ISOPEN)) {
sys/dev/ofw/ofcons.c
141
ttychars(tp);
sys/dev/ofw/ofcons.c
142
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/ofw/ofcons.c
143
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/ofw/ofcons.c
144
tp->t_cflag = TTYDEF_CFLAG;
sys/dev/ofw/ofcons.c
145
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/ofw/ofcons.c
146
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/dev/ofw/ofcons.c
147
ofcons_param(tp, &tp->t_termios);
sys/dev/ofw/ofcons.c
148
ttsetwater(tp);
sys/dev/ofw/ofcons.c
150
tp->t_state |= TS_CARR_ON;
sys/dev/ofw/ofcons.c
157
return (*tp->t_linesw->l_open)(dev, tp);
sys/dev/ofw/ofcons.c
164
struct tty *tp = sc->of_tty;
sys/dev/ofw/ofcons.c
168
(*tp->t_linesw->l_close)(tp, flag);
sys/dev/ofw/ofcons.c
169
ttyclose(tp);
sys/dev/ofw/ofcons.c
177
struct tty *tp = sc->of_tty;
sys/dev/ofw/ofcons.c
179
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/dev/ofw/ofcons.c
186
struct tty *tp = sc->of_tty;
sys/dev/ofw/ofcons.c
188
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/dev/ofw/ofcons.c
195
struct tty *tp = sc->of_tty;
sys/dev/ofw/ofcons.c
197
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/ofw/ofcons.c
203
struct tty *tp = sc->of_tty;
sys/dev/ofw/ofcons.c
206
if ((error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l)) != EPASSTHROUGH)
sys/dev/ofw/ofcons.c
208
return ttioctl(tp, cmd, data, flag, l);
sys/dev/ofw/ofcons.c
220
ofcons_start(struct tty *tp)
sys/dev/ofw/ofcons.c
226
if (tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP)) {
sys/dev/ofw/ofcons.c
230
tp->t_state |= TS_BUSY;
sys/dev/ofw/ofcons.c
232
len = q_to_b(&tp->t_outq, buf, OFBURSTLEN);
sys/dev/ofw/ofcons.c
235
tp->t_state &= ~TS_BUSY;
sys/dev/ofw/ofcons.c
236
if (ttypull(tp)) {
sys/dev/ofw/ofcons.c
237
tp->t_state |= TS_TIMEOUT;
sys/dev/ofw/ofcons.c
238
callout_schedule(&tp->t_rstrt_ch, 1);
sys/dev/ofw/ofcons.c
244
ofcons_param(struct tty *tp, struct termios *t)
sys/dev/ofw/ofcons.c
246
tp->t_ispeed = t->c_ispeed;
sys/dev/ofw/ofcons.c
247
tp->t_ospeed = t->c_ospeed;
sys/dev/ofw/ofcons.c
248
tp->t_cflag = t->c_cflag;
sys/dev/ofw/ofcons.c
256
struct tty *tp = sc->of_tty;
sys/dev/ofw/ofcons.c
260
if (tp && (tp->t_state & TS_ISOPEN))
sys/dev/ofw/ofcons.c
261
(*tp->t_linesw->l_rint)(ch, tp);
sys/dev/pci/cxgb/cxgb_common.h
376
struct tp_params tp;
sys/dev/pci/cxgb/cxgb_common.h
624
return (ticks << adap->params.tp.dack_re) / core_ticks_per_usec(adap);
sys/dev/pci/cxgb/cxgb_common.h
726
void t3_config_trace_filter(adapter_t *adapter, const struct trace_params *tp,
sys/dev/pci/cxgb/cxgb_offload.c
250
uiip->max_txsz = uimin(adapter->params.tp.tx_pg_size,
sys/dev/pci/cxgb/cxgb_offload.c
255
(unsigned int)uimin(adapter->params.tp.rx_pg_size,
sys/dev/pci/cxgb/cxgb_t3_hw.c
2603
unsigned int tre = adap->params.tp.tre;
sys/dev/pci/cxgb/cxgb_t3_hw.c
2604
unsigned int dack_re = adap->params.tp.dack_re;
sys/dev/pci/cxgb/cxgb_t3_hw.c
2953
void t3_config_trace_filter(adapter_t *adapter, const struct trace_params *tp,
sys/dev/pci/cxgb/cxgb_t3_hw.c
2958
key[0] = tp->sport | (tp->sip << 16);
sys/dev/pci/cxgb/cxgb_t3_hw.c
2959
key[1] = (tp->sip >> 16) | (tp->dport << 16);
sys/dev/pci/cxgb/cxgb_t3_hw.c
2960
key[2] = tp->dip;
sys/dev/pci/cxgb/cxgb_t3_hw.c
2961
key[3] = tp->proto | (tp->vlan << 8) | (tp->intf << 20);
sys/dev/pci/cxgb/cxgb_t3_hw.c
2963
mask[0] = tp->sport_mask | (tp->sip_mask << 16);
sys/dev/pci/cxgb/cxgb_t3_hw.c
2964
mask[1] = (tp->sip_mask >> 16) | (tp->dport_mask << 16);
sys/dev/pci/cxgb/cxgb_t3_hw.c
2965
mask[2] = tp->dip_mask;
sys/dev/pci/cxgb/cxgb_t3_hw.c
2966
mask[3] = tp->proto_mask | (tp->vlan_mask << 8) | (tp->intf_mask << 20);
sys/dev/pci/cxgb/cxgb_t3_hw.c
3448
partition_mem(adapter, &adapter->params.tp);
sys/dev/pci/cxgb/cxgb_t3_hw.c
3459
if (tp_init(adapter, &adapter->params.tp))
sys/dev/pci/cxgb/cxgb_t3_hw.c
3468
ulp_config(adapter, &adapter->params.tp);
sys/dev/pci/cxgb/cxgb_t3_hw.c
3726
struct tp_params *p = &adapter->params.tp;
sys/dev/pci/cz.c
1014
tp->t_ospeed = 0;
sys/dev/pci/cz.c
1015
(void) czttyparam(tp, &t);
sys/dev/pci/cz.c
1016
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/pci/cz.c
1017
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/pci/cz.c
1018
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/pci/cz.c
1019
ttychars(tp);
sys/dev/pci/cz.c
1020
ttsetwater(tp);
sys/dev/pci/cz.c
1034
error = ttyopen(tp, CZTTY_DIALOUT(dev), ISSET(flags, O_NONBLOCK));
sys/dev/pci/cz.c
1038
error = (*tp->t_linesw->l_open)(dev, tp);
sys/dev/pci/cz.c
1045
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/pci/cz.c
1065
struct tty *tp = sc->sc_tty;
sys/dev/pci/cz.c
1068
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/dev/pci/cz.c
1071
(*tp->t_linesw->l_close)(tp, flags);
sys/dev/pci/cz.c
1072
ttyclose(tp);
sys/dev/pci/cz.c
1074
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/pci/cz.c
1095
struct tty *tp = sc->sc_tty;
sys/dev/pci/cz.c
1097
return ((*tp->t_linesw->l_read)(tp, uio, flags));
sys/dev/pci/cz.c
1109
struct tty *tp = sc->sc_tty;
sys/dev/pci/cz.c
1111
return ((*tp->t_linesw->l_write)(tp, uio, flags));
sys/dev/pci/cz.c
1123
struct tty *tp = sc->sc_tty;
sys/dev/pci/cz.c
1125
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/pci/cz.c
1137
struct tty *tp = sc->sc_tty;
sys/dev/pci/cz.c
1140
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/dev/pci/cz.c
1144
error = ttioctl(tp, cmd, data, flag, l);
sys/dev/pci/cz.c
1167
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/dev/pci/cz.c
1328
czttyparam(struct tty *tp, struct termios *t)
sys/dev/pci/cz.c
1330
struct cztty_softc *sc = CZTTY_SOFTC(tp->t_dev);
sys/dev/pci/cz.c
1354
if (tp->t_ospeed == ospeed &&
sys/dev/pci/cz.c
1355
tp->t_cflag == cflag)
sys/dev/pci/cz.c
1424
tp->t_ispeed = 0;
sys/dev/pci/cz.c
1425
tp->t_ospeed = t->c_ospeed;
sys/dev/pci/cz.c
1426
tp->t_cflag = t->c_cflag;
sys/dev/pci/cz.c
1456
(void) (*tp->t_linesw->l_modem)(tp, ISSET(rs_status, C_RS_DCD));
sys/dev/pci/cz.c
1467
czttystart(struct tty *tp)
sys/dev/pci/cz.c
1469
struct cztty_softc *sc = CZTTY_SOFTC(tp->t_dev);
sys/dev/pci/cz.c
1473
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/dev/pci/cz.c
1475
if (!ttypull(tp))
sys/dev/pci/cz.c
1477
cztty_transmit(sc, tp);
sys/dev/pci/cz.c
1488
czttystop(struct tty *tp, int flag)
sys/dev/pci/cz.c
1573
cztty_transmit(struct cztty_softc *sc, struct tty *tp)
sys/dev/pci/cz.c
1588
while ((tp->t_outq.c_cc > 0) && ((move = TX_MOVEABLE(get, put, size)))){
sys/dev/pci/cz.c
1591
move = uimin(tp->t_outq.c_cc, move);
sys/dev/pci/cz.c
1592
error = q_to_b(&tp->t_outq, 0, move);
sys/dev/pci/cz.c
1601
move = uimin(ndqb(&tp->t_outq, 0), move);
sys/dev/pci/cz.c
1603
address + put, tp->t_outq.c_cf, move);
sys/dev/pci/cz.c
1604
ndflush(&tp->t_outq, move);
sys/dev/pci/cz.c
1619
cztty_receive(struct cztty_softc *sc, struct tty *tp)
sys/dev/pci/cz.c
1630
while ((get != put) && ((tp->t_canq.c_cc + tp->t_rawq.c_cc) < tp->t_hiwat)) {
sys/dev/pci/cz.c
1641
(*tp->t_linesw->l_rint)(ch, tp);
sys/dev/pci/cz.c
182
static void czttystart(struct tty *tp);
sys/dev/pci/cz.c
183
static int czttyparam(struct tty *tp, struct termios *t);
sys/dev/pci/cz.c
292
struct tty *tp;
sys/dev/pci/cz.c
416
tp = tty_alloc();
sys/dev/pci/cz.c
417
tp->t_dev = makedev(cdevsw_lookup_major(&cz_cdevsw),
sys/dev/pci/cz.c
419
tp->t_oproc = czttystart;
sys/dev/pci/cz.c
420
tp->t_param = czttyparam;
sys/dev/pci/cz.c
421
tty_attach(tp);
sys/dev/pci/cz.c
423
sc->sc_tty = tp;
sys/dev/pci/cz.c
691
struct tty *tp;
sys/dev/pci/cz.c
715
tp = sc->sc_tty;
sys/dev/pci/cz.c
722
if (!ISSET(tp->t_state, TS_ISOPEN)) {
sys/dev/pci/cz.c
730
if (cztty_transmit(sc, tp)) {
sys/dev/pci/cz.c
734
ttylock(tp); /* XXX */
sys/dev/pci/cz.c
735
ttwakeup(tp);
sys/dev/pci/cz.c
736
ttyunlock(tp); /* XXX */
sys/dev/pci/cz.c
737
wakeup(tp);
sys/dev/pci/cz.c
747
if (!ISSET(tp->t_state, TS_ISOPEN)) {
sys/dev/pci/cz.c
753
if (cztty_receive(sc, tp)) {
sys/dev/pci/cz.c
757
ttylock(tp); /* XXX */
sys/dev/pci/cz.c
758
ttwakeup(tp);
sys/dev/pci/cz.c
759
ttyunlock(tp); /* XXX */
sys/dev/pci/cz.c
760
wakeup(tp);
sys/dev/pci/cz.c
765
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/dev/pci/cz.c
768
(void) (*tp->t_linesw->l_modem)(tp,
sys/dev/pci/cz.c
799
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/dev/pci/cz.c
806
(*tp->t_linesw->l_rint)(TTY_FE, tp);
sys/dev/pci/cz.c
807
ttylock(tp); /* XXX */
sys/dev/pci/cz.c
808
ttwakeup(tp);
sys/dev/pci/cz.c
809
ttyunlock(tp); /* XXX */
sys/dev/pci/cz.c
810
wakeup(tp);
sys/dev/pci/cz.c
905
struct tty *tp = sc->sc_tty;
sys/dev/pci/cz.c
917
if (ISSET(tp->t_cflag, HUPCL)) {
sys/dev/pci/cz.c
919
(void) tsleep(tp, TTIPRI, ttclos, hz);
sys/dev/pci/cz.c
948
struct tty *tp;
sys/dev/pci/cz.c
958
tp = sc->sc_tty;
sys/dev/pci/cz.c
960
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/dev/pci/cz.c
968
if (!ISSET(tp->t_state, TS_ISOPEN) && (tp->t_wopen == 0)) {
sys/dev/pci/cz.c
971
tp->t_dev = dev;
sys/dev/pci/if_tl.c
244
const struct tl_product_desc *tp;
sys/dev/pci/if_tl.c
251
if ((tp = tv->tv_products) == NULL)
sys/dev/pci/if_tl.c
254
for (; tp->tp_desc != NULL; tp++)
sys/dev/pci/if_tl.c
255
if (PCI_PRODUCT(id) == tp->tp_product)
sys/dev/pci/if_tl.c
258
if (tp->tp_desc == NULL)
sys/dev/pci/if_tl.c
261
return tp;
sys/dev/pci/if_tl.c
280
const struct tl_product_desc *tp;
sys/dev/pci/if_tl.c
299
tp = tl_lookup_product(pa->pa_id);
sys/dev/pci/if_tl.c
300
if (tp == NULL)
sys/dev/pci/if_tl.c
302
sc->tl_product = tp;
sys/dev/pci/if_tl.c
355
aprint_normal_dev(self, "%s\n", tp->tp_desc);
sys/dev/pci/mly.c
1134
const char *fp, *tp;
sys/dev/pci/mly.c
1166
tp = fp + 3;
sys/dev/pci/mly.c
1180
me->channel, me->target, tp);
sys/dev/pci/mly.c
1194
bus, target, tp);
sys/dev/pci/mly.c
1216
me->channel, me->target, tp);
sys/dev/pci/mly.c
1232
printf(tp, me->target, me->lun);
sys/dev/pci/mly.c
1236
printf("%s: controller %s\n", device_xname(mly->mly_dv), tp);
sys/dev/pci/mly.c
1240
printf("%s: %s - %d\n", device_xname(mly->mly_dv), tp, event);
sys/dev/pci/radeonfb_bios.c
237
rb_validate(struct radeonfb_softc *sc, struct rb_table *tp)
sys/dev/pci/radeonfb_bios.c
241
rev = GETBIOS8(sc, tp->offset - 1);
sys/dev/pci/radeonfb_bios.c
244
DPRINTF(("%s: bad rev %x of %s\n", XNAME(sc), rev, tp->name));
sys/dev/pci/radeonfb_bios.c
245
tp->offset = 0;
sys/dev/pci/radeonfb_bios.c
249
if (tp->offset < MIN_OFFSET) {
sys/dev/pci/radeonfb_bios.c
250
DPRINTF(("%s: wrong pointer to %s!\n", XNAME(sc), tp->name));
sys/dev/pci/radeonfb_bios.c
251
tp->offset = 0;
sys/dev/pci/radeonfb_bios.c
257
rb_find_asic_table(struct radeonfb_softc *sc, struct rb_table *tp)
sys/dev/pci/radeonfb_bios.c
262
if ((offset = tp->offset) != 0) {
sys/dev/pci/radeonfb_bios.c
277
rb_find_mem_reset_table(struct radeonfb_softc *sc, struct rb_table *tp)
sys/dev/pci/radeonfb_bios.c
281
if ((offset = tp->offset) != 0) {
sys/dev/pci/radeonfb_bios.c
291
rb_find_short_mem_reset_table(struct radeonfb_softc *sc, struct rb_table *tp)
sys/dev/pci/radeonfb_bios.c
294
if ((tp->offset != 0) && (GETBIOS8(sc, tp->offset - 2) <= 64))
sys/dev/pci/radeonfb_bios.c
295
return (tp->offset + GETBIOS8(sc, tp->offset - 3));
sys/dev/pci/radeonfb_bios.c
360
rb_load_init_block(struct radeonfb_softc *sc, struct rb_table *tp)
sys/dev/pci/radeonfb_bios.c
365
if ((tp == NULL) || ((offset = tp->offset) == 0))
sys/dev/pci/radeonfb_bios.c
368
DPRINTF(("%s: load_init_block processing %s\n", XNAME(sc), tp->name));
sys/dev/pci/radeonfb_bios.c
445
rb_load_pll_block(struct radeonfb_softc *sc, struct rb_table *tp)
sys/dev/pci/radeonfb_bios.c
453
if ((tp == NULL) || ((offset = tp->offset) == 0))
sys/dev/pci/radeonfb_bios.c
456
DPRINTF(("%s: load_pll_block processing %s\n", XNAME(sc), tp->name));
sys/dev/pci/radeonfb_bios.c
515
rb_reset_sdram(struct radeonfb_softc *sc, struct rb_table *tp)
sys/dev/pci/radeonfb_bios.c
520
if ((tp == NULL) || ((offset = tp->offset) == 0))
sys/dev/pci/radeonfb_bios.c
523
DPRINTF(("%s: reset_sdram processing %s\n", XNAME(sc), tp->name));
sys/dev/pci/radeonfb_bios.c
559
struct rb_table *tp;
sys/dev/pci/radeonfb_bios.c
570
for (i = 0; (tp = rb_tables[i]) != NULL; i++) {
sys/dev/pci/radeonfb_bios.c
572
DPRINTF(("%s: parsing table %s\n", XNAME(sc), tp->name));
sys/dev/pci/radeonfb_bios.c
574
if (tp->offset != 0) {
sys/dev/pci/radeonfb_bios.c
578
offset = GETBIOS16(sc, temp + tp->offset);
sys/dev/pci/radeonfb_bios.c
580
tp->offset = offset;
sys/dev/pci/radeonfb_bios.c
583
tp->offset = tp->find(sc, tp->parent);
sys/dev/pci/radeonfb_bios.c
586
if (tp->validate)
sys/dev/pci/radeonfb_bios.c
587
tp->validate(sc, tp);
sys/dev/pci/twe.c
1067
struct twe_param *tp;
sys/dev/pci/twe.c
1070
rv = twe_param_get(sc, table_id, param_id, 1, NULL, &tp);
sys/dev/pci/twe.c
1073
*valp = *(uint8_t *)tp->tp_data;
sys/dev/pci/twe.c
1074
free(tp, M_DEVBUF);
sys/dev/pci/twe.c
1082
struct twe_param *tp;
sys/dev/pci/twe.c
1085
rv = twe_param_get(sc, table_id, param_id, 2, NULL, &tp);
sys/dev/pci/twe.c
1088
*valp = le16toh(*(uint16_t *)tp->tp_data);
sys/dev/pci/twe.c
1089
free(tp, M_DEVBUF);
sys/dev/pci/twe.c
1097
struct twe_param *tp;
sys/dev/pci/twe.c
1100
rv = twe_param_get(sc, table_id, param_id, 4, NULL, &tp);
sys/dev/pci/twe.c
1103
*valp = le32toh(*(uint32_t *)tp->tp_data);
sys/dev/pci/twe.c
1104
free(tp, M_DEVBUF);
sys/dev/pci/twe.c
1124
struct twe_param *tp;
sys/dev/pci/twe.c
1127
tp = malloc(TWE_SECTOR_SIZE, M_DEVBUF, M_NOWAIT);
sys/dev/pci/twe.c
1128
if (tp == NULL)
sys/dev/pci/twe.c
1134
ccb->ccb_data = tp;
sys/dev/pci/twe.c
1137
ccb->ccb_tx.tx_context = tp;
sys/dev/pci/twe.c
1147
tp->tp_table_id = htole16(table_id);
sys/dev/pci/twe.c
1148
tp->tp_param_id = param_id;
sys/dev/pci/twe.c
1149
tp->tp_param_size = size;
sys/dev/pci/twe.c
1175
free(tp, M_DEVBUF);
sys/dev/pci/twe.c
1177
*pbuf = tp;
sys/dev/pci/twe.c
1192
struct twe_param *tp;
sys/dev/pci/twe.c
1195
tp = malloc(TWE_SECTOR_SIZE, M_DEVBUF, M_WAITOK);
sys/dev/pci/twe.c
1197
ccb->ccb_data = tp;
sys/dev/pci/twe.c
1200
ccb->ccb_tx.tx_context = tp;
sys/dev/pci/twe.c
1210
tp->tp_table_id = htole16(table_id);
sys/dev/pci/twe.c
1211
tp->tp_param_id = param_id;
sys/dev/pci/twe.c
1212
tp->tp_param_size = size;
sys/dev/pci/twe.c
1213
memcpy(tp->tp_data, sbuf, size);
sys/dev/pci/twe.c
1228
free(tp, M_DEVBUF);
sys/dev/pci/twe.c
1748
struct twe_paramcommand *tp;
sys/dev/pci/twe.c
1756
tp = (struct twe_paramcommand *)data;
sys/dev/pci/twe.c
1859
error = twe_param_get(twe, tp->tp_table_id, tp->tp_param_id,
sys/dev/pci/twe.c
1860
tp->tp_size, 0, &param);
sys/dev/pci/twe.c
1863
if (param->tp_param_size > tp->tp_size) {
sys/dev/pci/twe.c
1867
error = copyout(param->tp_data, tp->tp_data,
sys/dev/pci/twe.c
1873
pdata = malloc(tp->tp_size, M_DEVBUF, M_WAITOK);
sys/dev/pci/twe.c
1874
if ((error = copyin(tp->tp_data, pdata, tp->tp_size)) != 0)
sys/dev/pci/twe.c
1876
error = twe_param_set(twe, tp->tp_table_id, tp->tp_param_id,
sys/dev/pci/twe.c
1877
tp->tp_size, pdata);
sys/dev/pci/twe.c
846
struct twe_param *tp;
sys/dev/pci/twe.c
863
tp = malloc(TWE_SECTOR_SIZE, M_DEVBUF, M_NOWAIT);
sys/dev/pci/twe.c
864
if (tp == NULL)
sys/dev/pci/twe.c
871
ccb->ccb_data = tp;
sys/dev/pci/twe.c
874
ccb->ccb_tx.tx_context = tp;
sys/dev/pci/twe.c
884
tp->tp_table_id = htole16(TWE_PARAM_AEN);
sys/dev/pci/twe.c
885
tp->tp_param_id = TWE_PARAM_AEN_UnitCode;
sys/dev/pci/twe.c
886
tp->tp_param_size = 2;
sys/dev/pci/twe.c
900
*aenp = le16toh(*(uint16_t *)tp->tp_data);
sys/dev/pci/twe.c
901
free(tp, M_DEVBUF);
sys/dev/pci/twe.c
920
struct twe_param *tp;
sys/dev/pci/twe.c
925
tp = ccb->ccb_tx.tx_context;
sys/dev/pci/twe.c
934
aen = le16toh(*(u_int16_t *)tp->tp_data);
sys/dev/pci/twe.c
935
free(tp, M_DEVBUF);
sys/dev/pci/xmm7360.c
160
#define LINESW(tp) (linesw[(tp)->t_line])
sys/dev/pci/xmm7360.c
170
#define tty_lock(tp) int s = spltty()
sys/dev/pci/xmm7360.c
171
#define tty_unlock(tp) splx(s)
sys/dev/pci/xmm7360.c
172
#define tty_locked(tp) /* nothing */
sys/dev/pci/xmm7360.c
2042
struct tty *tp;
sys/dev/pci/xmm7360.c
2052
tp = sc->sc_tty[i];
sys/dev/pci/xmm7360.c
2053
if (tp) {
sys/dev/pci/xmm7360.c
2056
vdevgone(major(tp->t_dev), 0, DEVFUNC_MASK,
sys/dev/pci/xmm7360.c
2060
ttyfree(tp);
sys/dev/pci/xmm7360.c
229
#define LINESW(tp) (*tp->t_linesw)
sys/dev/pci/xmm7360.c
231
#define ttyfree(tp) tty_free(tp)
sys/dev/pci/xmm7360.c
232
#define l_open(dev, tp, p) l_open(dev, tp)
sys/dev/pci/xmm7360.c
233
#define l_close(tp, flag, p) l_close(tp, flag)
sys/dev/pci/xmm7360.c
237
#define pci_mapreg_map(pa, reg, type, busfl, tp, hp, bp, szp, maxsize) \
sys/dev/pci/xmm7360.c
238
pci_mapreg_map(pa, reg, type, busfl, tp, hp, bp, szp)
sys/dev/pci/xmm7360.c
242
kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp)
sys/dev/pci/xmm7360.c
2432
struct tty *tp = sc->sc_tty[func];
sys/dev/pci/xmm7360.c
2435
KASSERT(tp);
sys/dev/pci/xmm7360.c
2438
LINESW(tp).l_rint(data[i], tp);
sys/dev/pci/xmm7360.c
2446
struct tty *tp;
sys/dev/pci/xmm7360.c
2459
tp = sc->sc_tty[func] = ttymalloc(1000000);
sys/dev/pci/xmm7360.c
2461
tp->t_oproc = wwancstart;
sys/dev/pci/xmm7360.c
2462
tp->t_param = wwancparam;
sys/dev/pci/xmm7360.c
2463
tp->t_dev = dev;
sys/dev/pci/xmm7360.c
2464
tp->t_sc = (void *)sc;
sys/dev/pci/xmm7360.c
2466
tp = sc->sc_tty[func];
sys/dev/pci/xmm7360.c
2468
if (!ISSET(tp->t_state, TS_ISOPEN)) {
sys/dev/pci/xmm7360.c
2469
ttychars(tp);
sys/dev/pci/xmm7360.c
2470
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/pci/xmm7360.c
2471
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/pci/xmm7360.c
2472
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/pci/xmm7360.c
2473
tp->t_cflag = TTYDEF_CFLAG;
sys/dev/pci/xmm7360.c
2474
tp->t_ispeed = tp->t_ospeed = B115200;
sys/dev/pci/xmm7360.c
2475
SET(tp->t_cflag, CS8 | CREAD | HUPCL | CLOCAL);
sys/dev/pci/xmm7360.c
2477
SET(tp->t_state, TS_CARR_ON);
sys/dev/pci/xmm7360.c
2482
error = LINESW(tp).l_open(dev, tp, p);
sys/dev/pci/xmm7360.c
2502
struct tty *tp = sc->sc_tty[func];
sys/dev/pci/xmm7360.c
2504
return (LINESW(tp).l_read(tp, uio, flag));
sys/dev/pci/xmm7360.c
2555
struct tty *tp = sc->sc_tty[func];
sys/dev/pci/xmm7360.c
2557
return (LINESW(tp).l_write(tp, uio, flag));
sys/dev/pci/xmm7360.c
2604
struct tty *tp = sc->sc_tty[DEVFUNC(dev)];
sys/dev/pci/xmm7360.c
2605
KASSERT(tp);
sys/dev/pci/xmm7360.c
2607
error = LINESW(tp).l_ioctl(tp, cmd, data, flag, p);
sys/dev/pci/xmm7360.c
2610
error = ttioctl(tp, cmd, data, flag, p);
sys/dev/pci/xmm7360.c
2625
struct tty *tp = sc->sc_tty[func];
sys/dev/pci/xmm7360.c
2626
KASSERT(tp);
sys/dev/pci/xmm7360.c
2628
CLR(tp->t_state, TS_BUSY | TS_FLUSH);
sys/dev/pci/xmm7360.c
2629
LINESW(tp).l_close(tp, flag, p);
sys/dev/pci/xmm7360.c
2630
ttyclose(tp);
sys/dev/pci/xmm7360.c
2642
struct tty *tp = sc->sc_tty[DEVFUNC(dev)];
sys/dev/pci/xmm7360.c
2645
KASSERT(tp);
sys/dev/pci/xmm7360.c
2647
return tp;
sys/dev/pci/xmm7360.c
2651
wwancparam(struct tty *tp, struct termios *t)
sys/dev/pci/xmm7360.c
2653
struct wwanc_softc *sc __diagused = (struct wwanc_softc *)tp->t_sc;
sys/dev/pci/xmm7360.c
2654
dev_t dev = tp->t_dev;
sys/dev/pci/xmm7360.c
2658
KASSERT(tp == sc->sc_tty[func]);
sys/dev/pci/xmm7360.c
266
#define tty_lock(tp) ttylock(tp)
sys/dev/pci/xmm7360.c
2662
tp->t_ispeed = t->c_ispeed;
sys/dev/pci/xmm7360.c
2663
tp->t_ospeed = t->c_ospeed;
sys/dev/pci/xmm7360.c
2664
tp->t_cflag = t->c_cflag;
sys/dev/pci/xmm7360.c
267
#define tty_unlock(tp) ttyunlock(tp)
sys/dev/pci/xmm7360.c
2670
wwancstart(struct tty *tp)
sys/dev/pci/xmm7360.c
2672
struct wwanc_softc *sc = (struct wwanc_softc *)tp->t_sc;
sys/dev/pci/xmm7360.c
2673
dev_t dev = tp->t_dev;
sys/dev/pci/xmm7360.c
2679
KASSERT(tp == sc->sc_tty[func]);
sys/dev/pci/xmm7360.c
268
#define tty_locked(tp) KASSERT(ttylocked(tp))
sys/dev/pci/xmm7360.c
2680
tty_locked(tp);
sys/dev/pci/xmm7360.c
2682
if (ISSET(tp->t_state, TS_BUSY) || !xmm7360_qp_can_write(qp))
sys/dev/pci/xmm7360.c
2684
if (tp->t_outq.c_cc == 0)
sys/dev/pci/xmm7360.c
2694
SET(tp->t_state, TS_BUSY);
sys/dev/pci/xmm7360.c
2695
n = q_to_b(&tp->t_outq, qp->user_buf, qp->page_size);
sys/dev/pci/xmm7360.c
2699
CLR(tp->t_state, TS_BUSY);
sys/dev/pci/xmm7360.c
2721
struct tty *tp = sc->sc_tty[func];
sys/dev/pci/xmm7360.c
2723
return LINESW(tp).l_poll(tp, events, p);
sys/dev/pci/xmm7360.c
2758
struct tty *tp = sc->sc_tty[func];
sys/dev/pci/xmm7360.c
2760
tty_lock(tp);
sys/dev/pci/xmm7360.c
2762
tty_unlock(tp);
sys/dev/pci/xmm7360.c
2789
struct tty *tp = sc->sc_tty[func];
sys/dev/pci/xmm7360.c
2791
tty_lock(tp);
sys/dev/pci/xmm7360.c
2793
tty_unlock(tp);
sys/dev/pci/xmm7360.c
2831
struct tty *tp = sc->sc_tty[func];
sys/dev/pci/xmm7360.c
2854
tty_lock(tp);
sys/dev/pci/xmm7360.c
2856
tty_unlock(tp);
sys/dev/qbus/dhu.c
290
struct tty *tp;
sys/dev/qbus/dhu.c
292
tp = sc->sc_dhu[i].dhu_tty = tty_alloc();
sys/dev/qbus/dhu.c
294
bus_dmamap_create(sc->sc_dmat, tp->t_outq.c_cn, 1,
sys/dev/qbus/dhu.c
295
tp->t_outq.c_cn, 0, BUS_DMA_ALLOCNOW|BUS_DMA_NOWAIT,
sys/dev/qbus/dhu.c
298
tp->t_outq.c_cs, tp->t_outq.c_cn, 0, BUS_DMA_NOWAIT);
sys/dev/qbus/dhu.c
320
struct tty *tp;
sys/dev/qbus/dhu.c
334
tp = sc->sc_dhu[line].dhu_tty;
sys/dev/qbus/dhu.c
342
if (!(tp->t_state & TS_CARR_ON))
sys/dev/qbus/dhu.c
343
(void)(*tp->t_linesw->l_modem)(tp, 1);
sys/dev/qbus/dhu.c
345
else if ((tp->t_state & TS_CARR_ON) &&
sys/dev/qbus/dhu.c
346
(*tp->t_linesw->l_modem)(tp, 0) == 0)
sys/dev/qbus/dhu.c
353
(tp->t_state & TS_ISOPEN) &&
sys/dev/qbus/dhu.c
354
(tp->t_cflag & CRTSCTS)) {
sys/dev/qbus/dhu.c
356
tp->t_state &= ~TS_TTSTOP;
sys/dev/qbus/dhu.c
357
ttstart(tp);
sys/dev/qbus/dhu.c
359
tp->t_state |= TS_TTSTOP;
sys/dev/qbus/dhu.c
360
dhustop(tp, 0);
sys/dev/qbus/dhu.c
366
if (!(tp->t_state & TS_ISOPEN)) {
sys/dev/qbus/dhu.c
367
cv_broadcast(&tp->t_rawcv);
sys/dev/qbus/dhu.c
382
(*tp->t_linesw->l_rint)(cc, tp);
sys/dev/qbus/dhu.c
392
struct tty *tp;
sys/dev/qbus/dhu.c
398
tp = sc->sc_dhu[line].dhu_tty;
sys/dev/qbus/dhu.c
407
tp->t_state &= ~TS_BUSY;
sys/dev/qbus/dhu.c
408
if (tp->t_state & TS_FLUSH)
sys/dev/qbus/dhu.c
409
tp->t_state &= ~TS_FLUSH;
sys/dev/qbus/dhu.c
414
ndflush(&tp->t_outq, sc->sc_dhu[line].dhu_cc);
sys/dev/qbus/dhu.c
420
(*tp->t_linesw->l_start)(tp);
sys/dev/qbus/dhu.c
427
struct tty *tp;
sys/dev/qbus/dhu.c
442
tp = sc->sc_dhu[line].dhu_tty;
sys/dev/qbus/dhu.c
443
ttylock(tp);
sys/dev/qbus/dhu.c
453
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/dev/qbus/dhu.c
456
tp->t_oproc = dhustart;
sys/dev/qbus/dhu.c
457
tp->t_param = dhuparam;
sys/dev/qbus/dhu.c
458
tp->t_hwiflow = dhuiflow;
sys/dev/qbus/dhu.c
459
tp->t_dev = dev;
sys/dev/qbus/dhu.c
461
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/dev/qbus/dhu.c
462
ttychars(tp);
sys/dev/qbus/dhu.c
463
if (tp->t_ispeed == 0) {
sys/dev/qbus/dhu.c
464
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/qbus/dhu.c
465
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/qbus/dhu.c
466
tp->t_cflag = TTYDEF_CFLAG;
sys/dev/qbus/dhu.c
467
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/qbus/dhu.c
468
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/dev/qbus/dhu.c
470
(void) dhuparam(tp, &tp->t_termios);
sys/dev/qbus/dhu.c
471
ttsetwater(tp);
sys/dev/qbus/dhu.c
475
tp->t_state |= TS_CARR_ON;
sys/dev/qbus/dhu.c
476
while (!(flag & O_NONBLOCK) && !(tp->t_cflag & CLOCAL) &&
sys/dev/qbus/dhu.c
477
!(tp->t_state & TS_CARR_ON)) {
sys/dev/qbus/dhu.c
478
tp->t_wopen++;
sys/dev/qbus/dhu.c
479
error = ttysleep(tp, &tp->t_rawcv, true, 0);
sys/dev/qbus/dhu.c
480
tp->t_wopen--;
sys/dev/qbus/dhu.c
484
ttyunlock(tp);
sys/dev/qbus/dhu.c
487
return ((*tp->t_linesw->l_open)(dev, tp));
sys/dev/qbus/dhu.c
497
struct tty *tp = sc->sc_dhu[line].dhu_tty;
sys/dev/qbus/dhu.c
499
(*tp->t_linesw->l_close)(tp, flag);
sys/dev/qbus/dhu.c
507
if ((tp->t_cflag & HUPCL) || tp->t_wopen || !(tp->t_state & TS_ISOPEN))
sys/dev/qbus/dhu.c
510
return (ttyclose(tp));
sys/dev/qbus/dhu.c
517
struct tty *tp = sc->sc_dhu[DHU_LINE(minor(dev))].dhu_tty;
sys/dev/qbus/dhu.c
519
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/dev/qbus/dhu.c
526
struct tty *tp = sc->sc_dhu[DHU_LINE(minor(dev))].dhu_tty;
sys/dev/qbus/dhu.c
528
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/dev/qbus/dhu.c
535
struct tty *tp = sc->sc_dhu[DHU_LINE(minor(dev))].dhu_tty;
sys/dev/qbus/dhu.c
537
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/qbus/dhu.c
547
struct tty *tp = sc->sc_dhu[line].dhu_tty;
sys/dev/qbus/dhu.c
550
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/dev/qbus/dhu.c
554
error = ttioctl(tp, cmd, data, flag, l);
sys/dev/qbus/dhu.c
608
dhustop(struct tty *tp, int flag)
sys/dev/qbus/dhu.c
614
if (tp->t_state & TS_BUSY) {
sys/dev/qbus/dhu.c
615
const int unit = DHU_M2U(minor(tp->t_dev));
sys/dev/qbus/dhu.c
616
const int line = DHU_LINE(minor(tp->t_dev));
sys/dev/qbus/dhu.c
629
if (!(tp->t_state & TS_TTSTOP))
sys/dev/qbus/dhu.c
630
tp->t_state |= TS_FLUSH;
sys/dev/qbus/dhu.c
636
dhustart(struct tty *tp)
sys/dev/qbus/dhu.c
644
if (tp->t_state & (TS_TIMEOUT|TS_BUSY|TS_TTSTOP))
sys/dev/qbus/dhu.c
646
if (!ttypull(tp))
sys/dev/qbus/dhu.c
648
cc = ndqb(&tp->t_outq, 0);
sys/dev/qbus/dhu.c
652
tp->t_state |= TS_BUSY;
sys/dev/qbus/dhu.c
654
sc = device_lookup_private(&dhu_cd,DHU_M2U(minor(tp->t_dev)));
sys/dev/qbus/dhu.c
656
line = DHU_LINE(minor(tp->t_dev));
sys/dev/qbus/dhu.c
667
DHU_TXCHAR_DATA_VALID | *tp->t_outq.c_cf);
sys/dev/qbus/dhu.c
674
(tp->t_outq.c_cf - tp->t_outq.c_cs);
sys/dev/qbus/dhu.c
691
dhuparam(struct tty *tp, struct termios *t)
sys/dev/qbus/dhu.c
698
const int unit = DHU_M2U(minor(tp->t_dev));
sys/dev/qbus/dhu.c
699
const int line = DHU_LINE(minor(tp->t_dev));
sys/dev/qbus/dhu.c
708
tp->t_ispeed = t->c_ispeed;
sys/dev/qbus/dhu.c
709
tp->t_ospeed = t->c_ospeed;
sys/dev/qbus/dhu.c
710
tp->t_cflag = cflag;
sys/dev/qbus/dhu.c
778
dhuiflow(struct tty *tp, int flag)
sys/dev/qbus/dhu.c
781
if (tp->t_cflag & CRTSCTS) {
sys/dev/qbus/dhu.c
782
const int unit = DHU_M2U(minor(tp->t_dev));
sys/dev/qbus/dhu.c
783
const int line = DHU_LINE(minor(tp->t_dev));
sys/dev/qbus/dl.c
282
struct tty *tp = sc->sc_tty;
sys/dev/qbus/dl.c
289
if (!(tp->t_state & TS_ISOPEN)) {
sys/dev/qbus/dl.c
290
cv_broadcast(&tp->t_rawcv);
sys/dev/qbus/dl.c
307
(*tp->t_linesw->l_rint)(cc, tp);
sys/dev/qbus/dl.c
322
struct tty *tp = sc->sc_tty;
sys/dev/qbus/dl.c
324
tp->t_state &= ~(TS_BUSY | TS_FLUSH);
sys/dev/qbus/dl.c
325
(*tp->t_linesw->l_start)(tp);
sys/dev/qbus/dl.c
333
struct tty *tp;
sys/dev/qbus/dl.c
343
tp = sc->sc_tty;
sys/dev/qbus/dl.c
344
if (tp == NULL)
sys/dev/qbus/dl.c
346
tp->t_oproc = dlstart;
sys/dev/qbus/dl.c
347
tp->t_param = dlparam;
sys/dev/qbus/dl.c
348
tp->t_dev = dev;
sys/dev/qbus/dl.c
350
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/dev/qbus/dl.c
353
if (!(tp->t_state & TS_ISOPEN)) {
sys/dev/qbus/dl.c
354
ttychars(tp);
sys/dev/qbus/dl.c
355
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/qbus/dl.c
356
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/qbus/dl.c
358
tp->t_cflag = TTYDEF_CFLAG | CLOCAL;
sys/dev/qbus/dl.c
359
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/qbus/dl.c
360
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/dev/qbus/dl.c
362
dlparam(tp, &tp->t_termios);
sys/dev/qbus/dl.c
363
ttsetwater(tp);
sys/dev/qbus/dl.c
367
return ((*tp->t_linesw->l_open)(dev, tp));
sys/dev/qbus/dl.c
375
struct tty *tp = sc->sc_tty;
sys/dev/qbus/dl.c
377
(*tp->t_linesw->l_close)(tp, flag);
sys/dev/qbus/dl.c
382
return (ttyclose(tp));
sys/dev/qbus/dl.c
389
struct tty *tp = sc->sc_tty;
sys/dev/qbus/dl.c
391
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/dev/qbus/dl.c
398
struct tty *tp = sc->sc_tty;
sys/dev/qbus/dl.c
400
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/dev/qbus/dl.c
407
struct tty *tp = sc->sc_tty;
sys/dev/qbus/dl.c
409
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/qbus/dl.c
416
struct tty *tp = sc->sc_tty;
sys/dev/qbus/dl.c
420
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/dev/qbus/dl.c
424
error = ttioctl(tp, cmd, data, flag, l);
sys/dev/qbus/dl.c
458
dlstop(struct tty *tp, int flag)
sys/dev/qbus/dl.c
462
if ((tp->t_state & (TS_BUSY|TS_TTSTOP)) == TS_BUSY)
sys/dev/qbus/dl.c
463
tp->t_state |= TS_FLUSH;
sys/dev/qbus/dl.c
468
dlstart(struct tty *tp)
sys/dev/qbus/dl.c
470
struct dl_softc *sc = device_lookup_private(&dl_cd, minor(tp->t_dev));
sys/dev/qbus/dl.c
473
if (tp->t_state & (TS_TIMEOUT|TS_BUSY|TS_TTSTOP))
sys/dev/qbus/dl.c
475
if (!ttypull(tp))
sys/dev/qbus/dl.c
478
tp->t_state |= TS_BUSY;
sys/dev/qbus/dl.c
479
DL_WRITE_BYTE(DL_UBA_XBUFL, getc(&tp->t_outq));
sys/dev/qbus/dl.c
488
dlparam(struct tty *tp, struct termios *t)
sys/dev/qbus/if_qt.c
404
struct qt_tring *tp;
sys/dev/qbus/if_qt.c
473
tp = &sc->sc_ib->qc_t[i];
sys/dev/qbus/if_qt.c
475
tp->tmd4 = loint(ifxp->ifw_info);
sys/dev/qbus/if_qt.c
476
tp->tmd5 = hiint(ifxp->ifw_info);
sys/dev/qbus/if_qt.c
477
tp->tmd3 = TMD3_OWN;
sys/dev/qbus/qd.c
1055
tp = qd_tty[minor_dev];
sys/dev/qbus/qd.c
1056
(*tp->t_linesw->l_close)(tp, flag);
sys/dev/qbus/qd.c
1057
ttyclose(tp);
sys/dev/qbus/qd.c
1058
tp->t_state = 0;
sys/dev/qbus/qd.c
1079
struct tty *tp;
sys/dev/qbus/qd.c
1481
tp = qd_tty[minor_dev];
sys/dev/qbus/qd.c
1484
(*tp->t_linesw->l_ioctl)(tp, cmd, datap, flags, p);
sys/dev/qbus/qd.c
1488
return ttioctl(tp, cmd, datap, flags, p);
sys/dev/qbus/qd.c
1503
struct tty *tp;
sys/dev/qbus/qd.c
1534
tp = qd_tty[minor_dev];
sys/dev/qbus/qd.c
1535
revents = (*tp->t_linesw->l_poll)(tp, events, p);
sys/dev/qbus/qd.c
1636
struct tty *tp;
sys/dev/qbus/qd.c
1647
tp = qd_tty[minor_dev];
sys/dev/qbus/qd.c
1648
return ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/dev/qbus/qd.c
1662
struct tty *tp;
sys/dev/qbus/qd.c
1673
tp = qd_tty[minor_dev];
sys/dev/qbus/qd.c
1674
return ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/dev/qbus/qd.c
1762
void qdstart(tp)
sys/dev/qbus/qd.c
1763
struct tty *tp;
sys/dev/qbus/qd.c
1768
unit = minor(tp->t_dev);
sys/dev/qbus/qd.c
1777
if (tp->t_state & (TS_TIMEOUT|TS_BUSY|TS_TTSTOP))
sys/dev/qbus/qd.c
1788
while (tp->t_outq.c_cc) {
sys/dev/qbus/qd.c
1789
c = getc(&tp->t_outq);
sys/dev/qbus/qd.c
1793
ttypull(tp);
sys/dev/qbus/qd.c
1794
tp->t_state &= ~TS_BUSY;
sys/dev/qbus/qd.c
1803
qdstop(struct tty *tp, int flag)
sys/dev/qbus/qd.c
1808
if (tp->t_state & TS_BUSY) {
sys/dev/qbus/qd.c
1809
if ((tp->t_state & TS_TTSTOP) == 0)
sys/dev/qbus/qd.c
1810
tp->t_state |= TS_FLUSH;
sys/dev/qbus/qd.c
1812
tp->t_state &= ~TS_BUSY;
sys/dev/qbus/qd.c
2299
struct tty *tp;
sys/dev/qbus/qd.c
2765
tp = qd_tty[unit << 2];
sys/dev/qbus/qd.c
2846
(*tp->t_linesw->l_rint)(*string++, tp);
sys/dev/qbus/qd.c
2859
(*tp->t_linesw->l_rint)(27, tp);
sys/dev/qbus/qd.c
2861
(*tp->t_linesw->l_rint)(chr&0177, tp);
sys/dev/qbus/qd.c
798
struct tty *tp;
sys/dev/qbus/qd.c
852
tp = qd_tty[minor_dev];
sys/dev/qbus/qd.c
854
tp->t_oproc = qdstart;
sys/dev/qbus/qd.c
855
tp->t_dev = dev;
sys/dev/qbus/qd.c
856
if ((tp->t_state & TS_ISOPEN) == 0) {
sys/dev/qbus/qd.c
857
ttychars(tp);
sys/dev/qbus/qd.c
858
tp->t_ispeed = B9600;
sys/dev/qbus/qd.c
859
tp->t_ospeed = B9600;
sys/dev/qbus/qd.c
860
tp->t_state = TS_ISOPEN | TS_CARR_ON;
sys/dev/qbus/qd.c
861
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/qbus/qd.c
862
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/qbus/qd.c
863
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/qbus/qd.c
864
tp->t_cflag = TTYDEF_CFLAG;
sys/dev/qbus/qd.c
865
ttsetwater(tp);
sys/dev/qbus/qd.c
871
return ((*tp->t_linesw->l_open)(dev, tp));
sys/dev/qbus/qd.c
882
struct tty *tp;
sys/dev/qbus/rl.c
460
struct disklabel *tp;
sys/dev/qbus/rl.c
466
tp = &newlabel;
sys/dev/qbus/rl.c
469
tp = (struct disklabel *)addr;
sys/dev/qbus/rl.c
480
setdisklabel(lp, tp, 0, 0) :
sys/dev/rcons/rcons_kern.c
100
tp->t_state &= ~TS_BUSY;
sys/dev/rcons/rcons_kern.c
102
if (ttypull(tp)) {
sys/dev/rcons/rcons_kern.c
103
tp->t_state |= TS_TIMEOUT;
sys/dev/rcons/rcons_kern.c
104
callout_schedule(&tp->t_rstrt_ch, 1);
sys/dev/rcons/rcons_kern.c
180
rcons_ttyinit(struct tty *tp)
sys/dev/rcons/rcons_kern.c
190
ws = &tp->t_winsize;
sys/dev/rcons/rcons_kern.c
197
tp->t_oproc = rcons_output;
sys/dev/rcons/rcons_kern.c
84
rcons_output(struct tty *tp)
sys/dev/rcons/rcons_kern.c
90
if (tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP)) {
sys/dev/rcons/rcons_kern.c
94
tp->t_state |= TS_BUSY;
sys/dev/rcons/rcons_kern.c
96
n = q_to_b(&tp->t_outq, buf, sizeof(buf));
sys/dev/sbus/magma.c
1000
if( ISSET(tp->t_cflag, HUPCL) || !ISSET(tp->t_state, TS_ISOPEN) ) {
sys/dev/sbus/magma.c
1028
struct tty *tp = mp->mp_tty;
sys/dev/sbus/magma.c
1030
return( (*tp->t_linesw->l_read)(tp, uio, flags) );
sys/dev/sbus/magma.c
1042
struct tty *tp = mp->mp_tty;
sys/dev/sbus/magma.c
1044
return( (*tp->t_linesw->l_write)(tp, uio, flags) );
sys/dev/sbus/magma.c
1056
struct tty *tp = mp->mp_tty;
sys/dev/sbus/magma.c
1058
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/sbus/magma.c
1083
struct tty *tp = mp->mp_tty;
sys/dev/sbus/magma.c
1086
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flags, l);
sys/dev/sbus/magma.c
1089
error = ttioctl(tp, cmd, data, flags, l);
sys/dev/sbus/magma.c
1135
KAUTH_DEVICE_TTY_PRIVSET, tp))
sys/dev/sbus/magma.c
1154
mttystop(struct tty *tp, int flags)
sys/dev/sbus/magma.c
1157
MAGMA_CARD(tp->t_dev));
sys/dev/sbus/magma.c
1158
struct mtty_port *mp = &ms->ms_port[MAGMA_PORT(tp->t_dev)];
sys/dev/sbus/magma.c
1163
if( ISSET(tp->t_state, TS_BUSY) ) {
sys/dev/sbus/magma.c
1164
if( !ISSET(tp->t_state, TS_TTSTOP) )
sys/dev/sbus/magma.c
1165
SET(tp->t_state, TS_FLUSH);
sys/dev/sbus/magma.c
1181
mtty_start(struct tty *tp)
sys/dev/sbus/magma.c
1184
MAGMA_CARD(tp->t_dev));
sys/dev/sbus/magma.c
1185
struct mtty_port *mp = &ms->ms_port[MAGMA_PORT(tp->t_dev)];
sys/dev/sbus/magma.c
1193
if( !ISSET(tp->t_state, TS_TTSTOP | TS_TIMEOUT | TS_BUSY) ) {
sys/dev/sbus/magma.c
1194
if (ttypull(tp)) {
sys/dev/sbus/magma.c
1195
mp->mp_txc = ndqb(&tp->t_outq, 0);
sys/dev/sbus/magma.c
1196
mp->mp_txp = tp->t_outq.c_cf;
sys/dev/sbus/magma.c
1197
SET(tp->t_state, TS_BUSY);
sys/dev/sbus/magma.c
1219
struct tty *tp = mp->mp_tty;
sys/dev/sbus/magma.c
1245
if( !ISSET(tp->t_cflag, CRTSCTS) )
sys/dev/sbus/magma.c
1253
if( (bits & TIOCM_RTS) && !ISSET(tp->t_cflag, CRTSCTS) )
sys/dev/sbus/magma.c
1262
if( (bits & TIOCM_RTS) && !ISSET(tp->t_cflag, CRTSCTS) )
sys/dev/sbus/magma.c
1279
mtty_param(struct tty *tp, struct termios *t)
sys/dev/sbus/magma.c
1282
MAGMA_CARD(tp->t_dev));
sys/dev/sbus/magma.c
1283
struct mtty_port *mp = &ms->ms_port[MAGMA_PORT(tp->t_dev)];
sys/dev/sbus/magma.c
741
struct tty *tp = mp->mp_tty;
sys/dev/sbus/magma.c
743
if( !ISSET(tp->t_state, TS_ISOPEN) )
sys/dev/sbus/magma.c
767
(*tp->t_linesw->l_rint)(data, tp);
sys/dev/sbus/magma.c
778
(*tp->t_linesw->l_modem)(tp, mp->mp_carrier);
sys/dev/sbus/magma.c
787
ndflush(&tp->t_outq, mp->mp_txp - tp->t_outq.c_cf);
sys/dev/sbus/magma.c
788
CLR(tp->t_state, TS_BUSY);
sys/dev/sbus/magma.c
789
(*tp->t_linesw->l_start)(tp); /* might be some more */
sys/dev/sbus/magma.c
858
struct tty *tp;
sys/dev/sbus/magma.c
865
tp = tty_alloc();
sys/dev/sbus/magma.c
866
if (tp == NULL) {
sys/dev/sbus/magma.c
869
tty_attach(tp);
sys/dev/sbus/magma.c
870
tp->t_oproc = mtty_start;
sys/dev/sbus/magma.c
871
tp->t_param = mtty_param;
sys/dev/sbus/magma.c
873
mp->mp_tty = tp;
sys/dev/sbus/magma.c
897
struct tty *tp;
sys/dev/sbus/magma.c
906
tp = mp->mp_tty;
sys/dev/sbus/magma.c
907
tp->t_dev = dev;
sys/dev/sbus/magma.c
909
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/dev/sbus/magma.c
914
if( !ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/sbus/magma.c
917
ttychars(tp);
sys/dev/sbus/magma.c
918
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/sbus/magma.c
919
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/sbus/magma.c
920
tp->t_cflag = TTYDEF_CFLAG;
sys/dev/sbus/magma.c
922
SET(tp->t_cflag, CLOCAL);
sys/dev/sbus/magma.c
924
SET(tp->t_cflag, CRTSCTS);
sys/dev/sbus/magma.c
926
SET(tp->t_cflag, MDMBUF);
sys/dev/sbus/magma.c
927
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/sbus/magma.c
928
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/dev/sbus/magma.c
942
(void)mtty_param(tp, &tp->t_termios);
sys/dev/sbus/magma.c
945
ttsetwater(tp);
sys/dev/sbus/magma.c
954
SET(tp->t_state, TS_CARR_ON);
sys/dev/sbus/magma.c
956
CLR(tp->t_state, TS_CARR_ON);
sys/dev/sbus/magma.c
960
error = ttyopen(tp, MTTY_DIALOUT(dev), ISSET(flags, O_NONBLOCK));
sys/dev/sbus/magma.c
964
error = (*tp->t_linesw->l_open)(dev, tp);
sys/dev/sbus/magma.c
969
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/sbus/magma.c
989
struct tty *tp = mp->mp_tty;
sys/dev/sbus/magma.c
992
(*tp->t_linesw->l_close)(tp, flag);
sys/dev/sbus/magma.c
993
ttyclose(tp);
sys/dev/sbus/spif.c
310
struct tty *tp;
sys/dev/sbus/spif.c
314
tp = tty_alloc();
sys/dev/sbus/spif.c
316
tp->t_oproc = stty_start;
sys/dev/sbus/spif.c
317
tp->t_param = stty_param;
sys/dev/sbus/spif.c
319
sp->sp_tty = tp;
sys/dev/sbus/spif.c
338
struct tty *tp;
sys/dev/sbus/spif.c
351
tp = sp->sp_tty;
sys/dev/sbus/spif.c
352
tp->t_dev = dev;
sys/dev/sbus/spif.c
354
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/dev/sbus/spif.c
357
ttylock(tp);
sys/dev/sbus/spif.c
358
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/sbus/spif.c
359
ttychars(tp);
sys/dev/sbus/spif.c
360
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/sbus/spif.c
361
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/sbus/spif.c
362
tp->t_cflag = TTYDEF_CFLAG;
sys/dev/sbus/spif.c
364
SET(tp->t_cflag, CLOCAL);
sys/dev/sbus/spif.c
366
SET(tp->t_cflag, CRTSCTS);
sys/dev/sbus/spif.c
368
SET(tp->t_cflag, MDMBUF);
sys/dev/sbus/spif.c
369
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/sbus/spif.c
370
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/dev/sbus/spif.c
378
stty_param(tp, &tp->t_termios);
sys/dev/sbus/spif.c
380
ttsetwater(tp);
sys/dev/sbus/spif.c
385
SET(tp->t_state, TS_CARR_ON);
sys/dev/sbus/spif.c
387
CLR(tp->t_state, TS_CARR_ON);
sys/dev/sbus/spif.c
391
while (!ISSET(tp->t_cflag, CLOCAL) &&
sys/dev/sbus/spif.c
392
!ISSET(tp->t_state, TS_CARR_ON)) {
sys/dev/sbus/spif.c
394
error = ttysleep(tp, &tp->t_rawcv, true, 0);
sys/dev/sbus/spif.c
396
ttyunlock(tp);
sys/dev/sbus/spif.c
401
ttyunlock(tp);
sys/dev/sbus/spif.c
403
return ((*tp->t_linesw->l_open)(dev, tp));
sys/dev/sbus/spif.c
412
struct tty *tp = sp->sp_tty;
sys/dev/sbus/spif.c
416
(*tp->t_linesw->l_close)(tp, flags);
sys/dev/sbus/spif.c
419
if (ISSET(tp->t_cflag, HUPCL) || !ISSET(tp->t_state, TS_ISOPEN)) {
sys/dev/sbus/spif.c
427
ttyclose(tp);
sys/dev/sbus/spif.c
438
struct tty *tp = sp->sp_tty;
sys/dev/sbus/spif.c
441
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flags, l);
sys/dev/sbus/spif.c
445
error = ttioctl(tp, cmd, data, flags, l);
sys/dev/sbus/spif.c
487
KAUTH_DEVICE_TTY_PRIVSET, tp))
sys/dev/sbus/spif.c
505
struct tty *tp = sp->sp_tty;
sys/dev/sbus/spif.c
538
if (ISSET(bits, TIOCM_RTS) && !ISSET(tp->t_cflag, CRTSCTS))
sys/dev/sbus/spif.c
556
stty_param(struct tty *tp, struct termios *t)
sys/dev/sbus/spif.c
559
SPIF_CARD(tp->t_dev));
sys/dev/sbus/spif.c
560
struct stty_port *sp = &st->sc_port[SPIF_PORT(tp->t_dev)];
sys/dev/sbus/spif.c
657
struct tty *tp = sp->sp_tty;
sys/dev/sbus/spif.c
659
return ((*tp->t_linesw->l_read)(tp, uio, flags));
sys/dev/sbus/spif.c
667
struct tty *tp = sp->sp_tty;
sys/dev/sbus/spif.c
669
return ((*tp->t_linesw->l_write)(tp, uio, flags));
sys/dev/sbus/spif.c
677
struct tty *tp = sp->sp_tty;
sys/dev/sbus/spif.c
679
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/sbus/spif.c
692
stty_stop(struct tty *tp, int flags)
sys/dev/sbus/spif.c
695
SPIF_CARD(tp->t_dev));
sys/dev/sbus/spif.c
696
struct stty_port *sp = &sc->sc_port[SPIF_PORT(tp->t_dev)];
sys/dev/sbus/spif.c
700
if (ISSET(tp->t_state, TS_BUSY)) {
sys/dev/sbus/spif.c
701
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/dev/sbus/spif.c
702
SET(tp->t_state, TS_FLUSH);
sys/dev/sbus/spif.c
709
stty_start(struct tty *tp)
sys/dev/sbus/spif.c
712
SPIF_CARD(tp->t_dev));
sys/dev/sbus/spif.c
713
struct stty_port *sp = &stc->sc_port[SPIF_PORT(tp->t_dev)];
sys/dev/sbus/spif.c
719
if (!ISSET(tp->t_state, TS_TTSTOP | TS_TIMEOUT | TS_BUSY)) {
sys/dev/sbus/spif.c
720
if (ttypull(tp)) {
sys/dev/sbus/spif.c
721
sp->sp_txc = ndqb(&tp->t_outq, 0);
sys/dev/sbus/spif.c
722
sp->sp_txp = tp->t_outq.c_cf;
sys/dev/sbus/spif.c
723
SET(tp->t_state, TS_BUSY);
sys/dev/sbus/spif.c
900
struct tty *tp;
sys/dev/sbus/spif.c
905
tp = sp->sp_tty;
sys/dev/sbus/spif.c
907
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/dev/sbus/spif.c
923
(*tp->t_linesw->l_rint)(data, tp);
sys/dev/sbus/spif.c
939
(*tp->t_linesw->l_modem)(tp,
sys/dev/sbus/spif.c
949
ndflush(&tp->t_outq,
sys/dev/sbus/spif.c
950
sp->sp_txp - tp->t_outq.c_cf);
sys/dev/sbus/spif.c
951
CLR(tp->t_state, TS_BUSY);
sys/dev/sbus/spif.c
952
(*tp->t_linesw->l_start)(tp);
sys/dev/spkr.c
558
playonetone(struct spkr_softc *sc, tone_t *tp)
sys/dev/spkr.c
560
if (tp->duration <= 0)
sys/dev/spkr.c
563
if (tp->frequency == 0)
sys/dev/spkr.c
564
rest(sc, tp->duration);
sys/dev/spkr.c
566
(*sc->sc_tone)(sc->sc_dev, tp->frequency, tp->duration);
sys/dev/spkr.c
573
tone_t *tp;
sys/dev/spkr.c
591
for (tp = *(void **)data;; tp++) {
sys/dev/spkr.c
592
error = copyin(tp, &ttp, sizeof(tone_t));
sys/dev/sun/sunkbd.c
134
struct tty *tp = args->kmta_tp;
sys/dev/sun/sunkbd.c
142
ttyldisc_release(tp->t_linesw);
sys/dev/sun/sunkbd.c
143
tp->t_linesw = ttyldisc_lookup(sunkbd_disc.l_name);
sys/dev/sun/sunkbd.c
144
KASSERT(tp->t_linesw == &sunkbd_disc);
sys/dev/sun/sunkbd.c
145
tp->t_oflag &= ~OPOST;
sys/dev/sun/sunkbd.c
146
tp->t_dev = args->kmta_dev;
sys/dev/sun/sunkbd.c
147
SET(tp->t_state, TS_KERN_ONLY);
sys/dev/sun/sunkbd.c
150
k->k_priv = tp;
sys/dev/sun/sunkbd.c
151
tp->t_sc = k;
sys/dev/sun/sunkbd.c
215
struct tty *tp = k->k_priv;
sys/dev/sun/sunkbd.c
221
CLR(tp->t_state, TS_KERN_ONLY);
sys/dev/sun/sunkbd.c
222
if ((error = cdev_open(tp->t_dev, O_NONBLOCK|flags,
sys/dev/sun/sunkbd.c
227
tp->t_ospeed = 0;
sys/dev/sun/sunkbd.c
231
(*tp->t_param)(tp, &t);
sys/dev/sun/sunkbd.c
232
SET(tp->t_state, TS_KERN_ONLY);
sys/dev/sun/sunkbd.c
241
sunkbdinput(int c, struct tty *tp)
sys/dev/sun/sunkbd.c
243
struct kbd_sun_softc *k = tp->t_sc;
sys/dev/sun/sunkbd.c
258
ttyflush(tp, FREAD | FWRITE);
sys/dev/sun/sunkbd.c
266
if (tp->t_rawq.c_cc + tp->t_canq.c_cc >= TTYHOG) {
sys/dev/sun/sunkbd.c
278
return (ttstart(tp));
sys/dev/sun/sunkbd.c
283
sunkbdstart(struct tty *tp)
sys/dev/sun/sunkbd.c
285
struct kbd_sun_softc *k = tp->t_sc;
sys/dev/sun/sunkbd.c
293
ttstart(tp);
sys/dev/sun/sunkbd.c
302
struct tty *tp = k->k_priv;
sys/dev/sun/sunkbd.c
304
ttylock(tp);
sys/dev/sun/sunkbd.c
305
ttyoutput(c, tp);
sys/dev/sun/sunkbd.c
306
ttstart(tp);
sys/dev/sun/sunkbd.c
307
ttyunlock(tp);
sys/dev/sun/sunms.c
144
struct tty *tp = args->kmta_tp;
sys/dev/sun/sunms.c
150
tp->t_sc = ms;
sys/dev/sun/sunms.c
151
tp->t_dev = args->kmta_dev;
sys/dev/sun/sunms.c
152
ms->ms_priv = tp;
sys/dev/sun/sunms.c
161
ttyldisc_release(tp->t_linesw);
sys/dev/sun/sunms.c
162
tp->t_linesw = ttyldisc_lookup(sunms_disc.l_name);
sys/dev/sun/sunms.c
163
KASSERT(tp->t_linesw == &sunms_disc);
sys/dev/sun/sunms.c
164
tp->t_oflag &= ~OPOST;
sys/dev/sun/sunms.c
165
SET(tp->t_state, TS_KERN_ONLY);
sys/dev/sun/sunms.c
190
struct tty *tp = ms->ms_priv;
sys/dev/sun/sunms.c
196
CLR(tp->t_state, TS_KERN_ONLY);
sys/dev/sun/sunms.c
197
if ((error = cdev_open(tp->t_dev, O_NONBLOCK|flags,
sys/dev/sun/sunms.c
202
tp->t_ospeed = 0;
sys/dev/sun/sunms.c
206
(*tp->t_param)(tp, &t);
sys/dev/sun/sunms.c
207
SET(tp->t_state, TS_KERN_ONLY);
sys/dev/sun/sunms.c
213
sunmsinput(int c, struct tty *tp)
sys/dev/sun/sunms.c
215
struct ms_softc *ms = tp->t_sc;
sys/dev/usb/if_umb.c
2791
char *tp, *ep;
sys/dev/usb/if_umb.c
2835
tp = tmp;
sys/dev/usb/if_umb.c
2837
for (i = 0; i < (IN6ADDRSZ / INT16SZ) && tp < ep; i++) {
sys/dev/usb/if_umb.c
2842
if (tp + 1 >= ep)
sys/dev/usb/if_umb.c
2844
*tp++ = ':';
sys/dev/usb/if_umb.c
2850
if (tp + 1 >= ep)
sys/dev/usb/if_umb.c
2852
*tp++ = ':';
sys/dev/usb/if_umb.c
2857
if (!inet_ntop4(src+12, tp, (size_t)(ep - tp)))
sys/dev/usb/if_umb.c
2859
tp += strlen(tp);
sys/dev/usb/if_umb.c
2862
advance = snprintf(tp, ep - tp, "%x", words[i]);
sys/dev/usb/if_umb.c
2863
if (advance <= 0 || advance >= ep - tp)
sys/dev/usb/if_umb.c
2865
tp += advance;
sys/dev/usb/if_umb.c
2869
if (tp + 1 >= ep)
sys/dev/usb/if_umb.c
2871
*tp++ = ':';
sys/dev/usb/if_umb.c
2873
if (tp + 1 >= ep)
sys/dev/usb/if_umb.c
2875
*tp++ = '\0';
sys/dev/usb/if_umb.c
2880
if ((size_t)(tp - tmp) > size) {
sys/dev/usb/ucom.c
1028
tp->t_ospeed = 0;
sys/dev/usb/ucom.c
1029
(void) ucomparam(tp, &t);
sys/dev/usb/ucom.c
1030
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/usb/ucom.c
1031
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/usb/ucom.c
1032
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/usb/ucom.c
1033
ttychars(tp);
sys/dev/usb/ucom.c
1034
ttsetwater(tp);
sys/dev/usb/ucom.c
1079
(uintptr_t)tp, !!UCOMDIALOUT(dev), !!ISSET(flag, O_NONBLOCK));
sys/dev/usb/ucom.c
1080
error = ttyopen(tp, UCOMDIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/dev/usb/ucom.c
1084
error = (*tp->t_linesw->l_open)(dev, tp);
sys/dev/usb/ucom.c
1143
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucom.c
1144
if (tp == NULL)
sys/dev/usb/ucom.c
1163
ttycancel(tp);
sys/dev/usb/ucom.c
1193
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucom.c
1194
if (tp == NULL)
sys/dev/usb/ucom.c
1207
ttylock(tp);
sys/dev/usb/ucom.c
1208
KASSERT(!ISSET(tp->t_state, TS_ISOPEN));
sys/dev/usb/ucom.c
1209
KASSERT(tp->t_wopen == 0);
sys/dev/usb/ucom.c
1210
ttyunlock(tp);
sys/dev/usb/ucom.c
1244
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucom.c
1248
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/dev/usb/ucom.c
1256
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucom.c
1260
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/dev/usb/ucom.c
1268
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucom.c
1272
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/dev/usb/ucom.c
1289
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucom.c
1296
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/dev/usb/ucom.c
1300
error = ttioctl(tp, cmd, data, flag, l);
sys/dev/usb/ucom.c
1340
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/dev/usb/ucom.c
1498
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucom.c
1519
(*tp->t_linesw->l_modem)(tp, ISSET(msr, UMSR_DCD));
sys/dev/usb/ucom.c
1531
ucomparam(struct tty *tp, struct termios *t)
sys/dev/usb/ucom.c
1533
struct ucom_softc * const sc = tp->t_softc;
sys/dev/usb/ucom.c
1560
if (tp->t_ospeed == t->c_ospeed &&
sys/dev/usb/ucom.c
1561
tp->t_cflag == t->c_cflag) {
sys/dev/usb/ucom.c
1568
tp->t_ispeed = 0;
sys/dev/usb/ucom.c
1569
tp->t_ospeed = t->c_ospeed;
sys/dev/usb/ucom.c
1570
tp->t_cflag = t->c_cflag;
sys/dev/usb/ucom.c
1587
(void) (*tp->t_linesw->l_modem)(tp, ISSET(sc->sc_msr, UMSR_DCD));
sys/dev/usb/ucom.c
1594
ucomstart(tp);
sys/dev/usb/ucom.c
1603
ucomhwiflow(struct tty *tp, int block)
sys/dev/usb/ucom.c
1605
struct ucom_softc * const sc = tp->t_softc;
sys/dev/usb/ucom.c
1611
KASSERT(ttylocked(tp));
sys/dev/usb/ucom.c
1627
ucomstart(struct tty *tp)
sys/dev/usb/ucom.c
1629
struct ucom_softc * const sc = tp->t_softc;
sys/dev/usb/ucom.c
1636
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
sys/dev/usb/ucom.c
1641
if (!ttypull(tp))
sys/dev/usb/ucom.c
1645
data = tp->t_outq.c_cf;
sys/dev/usb/ucom.c
1646
cnt = ndqb(&tp->t_outq, 0);
sys/dev/usb/ucom.c
1653
SET(tp->t_state, TS_BUSY);
sys/dev/usb/ucom.c
1660
SET(tp->t_state, TS_BUSY);
sys/dev/usb/ucom.c
1685
ucomstop(struct tty *tp, int flag)
sys/dev/usb/ucom.c
1688
struct ucom_softc * const sc = tp->t_softc;
sys/dev/usb/ucom.c
1691
ttylock(tp);
sys/dev/usb/ucom.c
1692
if (ISSET(tp->t_state, TS_BUSY)) {
sys/dev/usb/ucom.c
1695
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/dev/usb/ucom.c
1696
SET(tp->t_state, TS_FLUSH);
sys/dev/usb/ucom.c
1698
ttyunlock(tp);
sys/dev/usb/ucom.c
1707
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucom.c
1732
ttylock(tp);
sys/dev/usb/ucom.c
1733
CLR(tp->t_state, TS_BUSY);
sys/dev/usb/ucom.c
1734
if (ISSET(tp->t_state, TS_FLUSH))
sys/dev/usb/ucom.c
1735
CLR(tp->t_state, TS_FLUSH);
sys/dev/usb/ucom.c
1737
ndflush(&tp->t_outq, cc);
sys/dev/usb/ucom.c
1738
ttyunlock(tp);
sys/dev/usb/ucom.c
1745
ttylock(tp);
sys/dev/usb/ucom.c
1746
(*tp->t_linesw->l_start)(tp);
sys/dev/usb/ucom.c
1747
ttyunlock(tp);
sys/dev/usb/ucom.c
1782
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucom.c
1809
ttylock(tp);
sys/dev/usb/ucom.c
1810
if (!ISSET(tp->t_state, TS_ISOPEN)) {
sys/dev/usb/ucom.c
1811
ttyunlock(tp);
sys/dev/usb/ucom.c
1815
ttyunlock(tp);
sys/dev/usb/ucom.c
1833
struct tty *tp;
sys/dev/usb/ucom.c
1837
tp = sc->sc_tty;
sys/dev/usb/ucom.c
1838
rint = tp->t_linesw->l_rint;
sys/dev/usb/ucom.c
1846
if ((*rint)(ub->ub_data[ub->ub_index], tp) == -1) {
sys/dev/usb/ucom.c
2076
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucom.c
2086
(*tp->t_linesw->l_close)(tp, flag);
sys/dev/usb/ucom.c
2087
ttyclose(tp);
sys/dev/usb/ucom.c
538
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucom.c
554
error = ucomparam(tp, &t);
sys/dev/usb/ucom.c
713
struct tty *tp = tty_alloc();
sys/dev/usb/ucom.c
714
tp->t_oproc = ucomstart;
sys/dev/usb/ucom.c
715
tp->t_param = ucomparam;
sys/dev/usb/ucom.c
716
tp->t_hwiflow = ucomhwiflow;
sys/dev/usb/ucom.c
717
tp->t_softc = sc;
sys/dev/usb/ucom.c
719
sc->sc_tty = tp;
sys/dev/usb/ucom.c
721
DPRINTF("tty_attach %#jx", (uintptr_t)tp, 0, 0, 0);
sys/dev/usb/ucom.c
722
tty_attach(tp);
sys/dev/usb/ucom.c
781
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucom.c
788
(uintptr_t)tp, 0);
sys/dev/usb/ucom.c
807
if (tp != NULL) {
sys/dev/usb/ucom.c
808
ttylock(tp);
sys/dev/usb/ucom.c
809
CLR(tp->t_state, TS_CARR_ON);
sys/dev/usb/ucom.c
810
CLR(tp->t_cflag, CLOCAL | MDMBUF);
sys/dev/usb/ucom.c
811
ttyunlock(tp);
sys/dev/usb/ucom.c
827
if (tp != NULL) {
sys/dev/usb/ucom.c
828
tty_detach(tp);
sys/dev/usb/ucom.c
829
tty_free(tp);
sys/dev/usb/ucom.c
874
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucom.c
882
if (ISSET(tp->t_cflag, HUPCL)) {
sys/dev/usb/ucom.c
922
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucom.c
923
if (tp == NULL) {
sys/dev/usb/ucom.c
929
DPRINTF("unit=%jd, tp=%#jx", unit, (uintptr_t)tp, 0, 0);
sys/dev/usb/ucom.c
931
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp)) {
sys/dev/usb/ucom.c
984
KASSERT(!ISSET(tp->t_state, TS_ISOPEN));
sys/dev/usb/ucom.c
985
KASSERT(tp->t_wopen == 0);
sys/dev/usb/ucom.c
987
tp->t_dev = dev;
sys/dev/usb/ucycom.c
1006
if ((*rint)(*cp++, tp) == -1) {
sys/dev/usb/ucycom.c
1016
(*tp->t_linesw->l_modem)(tp,
sys/dev/usb/ucycom.c
265
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucycom.c
269
DPRINTF(("ucycom_detach: sc=%p flags=%d tp=%p\n", sc, flags, tp));
sys/dev/usb/ucycom.c
274
if (tp != NULL) {
sys/dev/usb/ucycom.c
275
ttylock(tp);
sys/dev/usb/ucycom.c
276
CLR(tp->t_state, TS_CARR_ON);
sys/dev/usb/ucycom.c
277
CLR(tp->t_cflag, CLOCAL | MDMBUF);
sys/dev/usb/ucycom.c
278
ttyflush(tp, FREAD|FWRITE);
sys/dev/usb/ucycom.c
279
ttyunlock(tp);
sys/dev/usb/ucycom.c
299
if (tp != NULL) {
sys/dev/usb/ucycom.c
300
DPRINTF(("ucycom_detach: tty_detach %p\n", tp));
sys/dev/usb/ucycom.c
301
tty_detach(tp);
sys/dev/usb/ucycom.c
302
tty_free(tp);
sys/dev/usb/ucycom.c
329
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucycom.c
336
if (ISSET(tp->t_cflag, HUPCL)) {
sys/dev/usb/ucycom.c
348
struct tty *tp;
sys/dev/usb/ucycom.c
363
tp = sc->sc_tty;
sys/dev/usb/ucycom.c
365
DPRINTF(("ucycomopen: tp=%p\n", tp));
sys/dev/usb/ucycom.c
367
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/dev/usb/ucycom.c
372
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/usb/ucycom.c
375
tp->t_dev = dev;
sys/dev/usb/ucycom.c
398
tp->t_ospeed = 0;
sys/dev/usb/ucycom.c
399
(void) ucycomparam(tp, &t);
sys/dev/usb/ucycom.c
400
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/usb/ucycom.c
401
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/usb/ucycom.c
402
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/usb/ucycom.c
403
ttychars(tp);
sys/dev/usb/ucycom.c
404
ttsetwater(tp);
sys/dev/usb/ucycom.c
434
err = ttyopen(tp, UCYCOMDIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/dev/usb/ucycom.c
438
err = (*tp->t_linesw->l_open)(dev, tp);
sys/dev/usb/ucycom.c
445
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/usb/ucycom.c
463
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucycom.c
466
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/dev/usb/ucycom.c
469
(*tp->t_linesw->l_close)(tp, flag);
sys/dev/usb/ucycom.c
470
ttyclose(tp);
sys/dev/usb/ucycom.c
472
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/usb/ucycom.c
485
ucycomstart(struct tty *tp)
sys/dev/usb/ucycom.c
488
device_lookup_private(&ucycom_cd, UCYCOMUNIT(tp->t_dev));
sys/dev/usb/ucycom.c
493
KASSERT(ttylocked(tp));
sys/dev/usb/ucycom.c
499
if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP)) {
sys/dev/usb/ucycom.c
500
DPRINTFN(4,("ucycomstart: no go, state=%#x\n", tp->t_state));
sys/dev/usb/ucycom.c
510
if (ttypull(tp) == 0)
sys/dev/usb/ucycom.c
514
data = tp->t_outq.c_cf;
sys/dev/usb/ucycom.c
515
cnt = ndqb(&tp->t_outq, 0);
sys/dev/usb/ucycom.c
522
SET(tp->t_state, TS_BUSY);
sys/dev/usb/ucycom.c
634
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucycom.c
657
CLR(tp->t_state, TS_BUSY);
sys/dev/usb/ucycom.c
658
if (ISSET(tp->t_state, TS_FLUSH))
sys/dev/usb/ucycom.c
659
CLR(tp->t_state, TS_FLUSH);
sys/dev/usb/ucycom.c
661
ndflush(&tp->t_outq, sc->sc_wlen);
sys/dev/usb/ucycom.c
662
(*tp->t_linesw->l_start)(tp);
sys/dev/usb/ucycom.c
668
CLR(tp->t_state, TS_BUSY);
sys/dev/usb/ucycom.c
673
ucycomparam(struct tty *tp, struct termios *t)
sys/dev/usb/ucycom.c
675
struct ucycom_softc *sc = tp->t_sc;
sys/dev/usb/ucycom.c
703
if (tp->t_ospeed == t->c_ospeed &&
sys/dev/usb/ucycom.c
704
tp->t_cflag == t->c_cflag)
sys/dev/usb/ucycom.c
710
tp->t_ispeed = 0;
sys/dev/usb/ucycom.c
711
tp->t_ospeed = t->c_ospeed;
sys/dev/usb/ucycom.c
712
tp->t_cflag = t->c_cflag;
sys/dev/usb/ucycom.c
751
(void) (*tp->t_linesw->l_modem)(tp, 1 /* XXX carrier */ );
sys/dev/usb/ucycom.c
758
ucycomstop(struct tty *tp, int flag)
sys/dev/usb/ucycom.c
768
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucycom.c
771
DPRINTF(("ucycomread: sc=%p, tp=%p, uio=%p, flag=%d\n", sc, tp, uio,
sys/dev/usb/ucycom.c
776
err = ((*tp->t_linesw->l_read)(tp, uio, flag));
sys/dev/usb/ucycom.c
786
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucycom.c
789
DPRINTF(("ucycomwrite: sc=%p, tp=%p, uio=%p, flag=%d\n", sc, tp, uio,
sys/dev/usb/ucycom.c
794
err = ((*tp->t_linesw->l_write)(tp, uio, flag));
sys/dev/usb/ucycom.c
803
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucycom.c
805
DPRINTF(("ucycomtty: sc=%p, tp=%p\n", sc, tp));
sys/dev/usb/ucycom.c
807
return tp;
sys/dev/usb/ucycom.c
815
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucycom.c
822
DPRINTF(("ucycomioctl: sc=%p, tp=%p, data=%p\n", sc, tp, data));
sys/dev/usb/ucycom.c
824
err = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/dev/usb/ucycom.c
828
err = ttioctl(tp, cmd, data, flag, l);
sys/dev/usb/ucycom.c
860
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/dev/usb/ucycom.c
891
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucycom.c
894
DPRINTF(("ucycompoll: sc=%p, tp=%p, events=%d, lwp=%p\n", sc, tp,
sys/dev/usb/ucycom.c
900
err = ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/usb/ucycom.c
964
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucycom.c
965
int (*rint)(int , struct tty *) = tp->t_linesw->l_rint;
sys/dev/usb/uhso.c
1317
struct tty *tp = hp->hp_tp;
sys/dev/usb/uhso.c
1350
tp->t_linesw->l_modem(tp, ISSET(hp->hp_status, TIOCM_CAR));
sys/dev/usb/uhso.c
1371
struct tty *tp;
sys/dev/usb/uhso.c
1373
tp = tty_alloc();
sys/dev/usb/uhso.c
1374
tp->t_oproc = uhso_tty_start;
sys/dev/usb/uhso.c
1375
tp->t_param = uhso_tty_param;
sys/dev/usb/uhso.c
1377
hp->hp_tp = tp;
sys/dev/usb/uhso.c
1378
tty_attach(tp);
sys/dev/usb/uhso.c
1380
DPRINTF(1, "hp=%p, tp=%p\n", hp, tp);
sys/dev/usb/uhso.c
1401
struct tty *tp = hp->hp_tp;
sys/dev/usb/uhso.c
1424
CLR(tp->t_state, TS_BUSY);
sys/dev/usb/uhso.c
1425
tp->t_linesw->l_start(tp);
sys/dev/usb/uhso.c
1434
struct tty *tp = hp->hp_tp;
sys/dev/usb/uhso.c
1459
if (tp->t_linesw->l_rint(*cp++, tp) == -1) {
sys/dev/usb/uhso.c
1484
struct tty *tp;
sys/dev/usb/uhso.c
1499
tp = hp->hp_tp;
sys/dev/usb/uhso.c
1500
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/dev/usb/uhso.c
1505
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/usb/uhso.c
1506
tp->t_dev = dev;
sys/dev/usb/uhso.c
1512
error = ttyopen(tp, UHSODIALOUT(dev), ISSET(flag, O_NONBLOCK));
sys/dev/usb/uhso.c
1514
error = tp->t_linesw->l_open(dev, tp);
sys/dev/usb/uhso.c
1518
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0)
sys/dev/usb/uhso.c
1521
DPRINTF(1, "sc=%p, hp=%p, tp=%p, error=%d\n", sc, hp, tp, error);
sys/dev/usb/uhso.c
1529
struct tty *tp = hp->hp_tp;
sys/dev/usb/uhso.c
1533
DPRINTF(1, "sc=%p, hp=%p, tp=%p\n", sc, hp, tp);
sys/dev/usb/uhso.c
1550
tp->t_ospeed = 0;
sys/dev/usb/uhso.c
1551
(void)uhso_tty_param(tp, &t);
sys/dev/usb/uhso.c
1553
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/usb/uhso.c
1554
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/usb/uhso.c
1555
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/usb/uhso.c
1556
ttychars(tp);
sys/dev/usb/uhso.c
1557
ttsetwater(tp);
sys/dev/usb/uhso.c
1586
struct tty *tp = hp->hp_tp;
sys/dev/usb/uhso.c
1588
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/dev/usb/uhso.c
1591
DPRINTF(1, "sc=%p, hp=%p, tp=%p\n", sc, hp, tp);
sys/dev/usb/uhso.c
1595
tp->t_linesw->l_close(tp, flag);
sys/dev/usb/uhso.c
1596
ttyclose(tp);
sys/dev/usb/uhso.c
1598
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0)
sys/dev/usb/uhso.c
1637
struct tty *tp = hp->hp_tp;
sys/dev/usb/uhso.c
1643
DPRINTF(5, "sc=%p, hp=%p, tp=%p\n", sc, hp, tp);
sys/dev/usb/uhso.c
1647
error = tp->t_linesw->l_read(tp, uio, flag);
sys/dev/usb/uhso.c
1660
struct tty *tp = hp->hp_tp;
sys/dev/usb/uhso.c
1666
DPRINTF(5, "sc=%p, hp=%p, tp=%p\n", sc, hp, tp);
sys/dev/usb/uhso.c
1670
error = tp->t_linesw->l_write(tp, uio, flag);
sys/dev/usb/uhso.c
1704
struct tty *tp = hp->hp_tp;
sys/dev/usb/uhso.c
1707
error = tp->t_linesw->l_ioctl(tp, cmd, data, flag, l);
sys/dev/usb/uhso.c
1711
error = ttioctl(tp, cmd, data, flag, l);
sys/dev/usb/uhso.c
1734
KAUTH_DEVICE_TTY_PRIVSET, tp);
sys/dev/usb/uhso.c
1763
uhso_tty_stop(struct tty *tp, int flag)
sys/dev/usb/uhso.c
1767
UHSOUNIT(tp->t_dev));
sys/dev/usb/uhso.c
1768
struct uhso_port *hp = sc->sc_port[UHSOPORT(tp->t_dev)];
sys/dev/usb/uhso.c
1771
KASSERT(ttylocked(tp));
sys/dev/usb/uhso.c
1788
struct tty *tp = hp->hp_tp;
sys/dev/usb/uhso.c
1796
revents = tp->t_linesw->l_poll(tp, events, l);
sys/dev/usb/uhso.c
1805
uhso_tty_param(struct tty *tp, struct termios *t)
sys/dev/usb/uhso.c
1808
UHSOUNIT(tp->t_dev));
sys/dev/usb/uhso.c
1809
struct uhso_port *hp = sc->sc_port[UHSOPORT(tp->t_dev)];
sys/dev/usb/uhso.c
1815
hp, tp, t->c_iflag, t->c_oflag, t->c_cflag);
sys/dev/usb/uhso.c
1829
if (tp->t_ospeed == t->c_ospeed
sys/dev/usb/uhso.c
1830
&& tp->t_cflag == t->c_cflag)
sys/dev/usb/uhso.c
1833
tp->t_ispeed = 0;
sys/dev/usb/uhso.c
1834
tp->t_ospeed = t->c_ospeed;
sys/dev/usb/uhso.c
1835
tp->t_cflag = t->c_cflag;
sys/dev/usb/uhso.c
1838
tp->t_linesw->l_modem(tp, ISSET(hp->hp_status, TIOCM_CAR));
sys/dev/usb/uhso.c
1843
uhso_tty_start(struct tty *tp)
sys/dev/usb/uhso.c
1846
UHSOUNIT(tp->t_dev));
sys/dev/usb/uhso.c
1847
struct uhso_port *hp = sc->sc_port[UHSOPORT(tp->t_dev)];
sys/dev/usb/uhso.c
1850
KASSERT(ttylocked(tp));
sys/dev/usb/uhso.c
1857
if (!ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP)
sys/dev/usb/uhso.c
1858
&& ttypull(tp) != 0) {
sys/dev/usb/uhso.c
1859
hp->hp_wlen = q_to_b(&tp->t_outq, hp->hp_wbuf, hp->hp_wsize);
sys/dev/usb/uhso.c
1861
SET(tp->t_state, TS_BUSY);
sys/dev/usb/ukbd.c
626
const struct ukbd_keycodetrans *tp;
sys/dev/usb/ukbd.c
634
for (tp = tab; tp->from; tp++)
sys/dev/usb/ukbd.c
635
if (tp->from == i) {
sys/dev/usb/ukbd.c
636
if (tp->to & IS_PMF) {
sys/dev/usb/ukbd.c
638
tp->to & 0xff);
sys/dev/usb/ukbd.c
640
setbit(ud->keys, tp->to);
sys/dev/usb/utoppy.c
1003
*tp = 0;
sys/dev/usb/utoppy.c
1016
*tp = (time_t)rv;
sys/dev/usb/utoppy.c
992
utoppy_timestamp_decode(struct utoppy_softc *sc, time_t *tp)
sys/dev/virtio/viocon.c
247
struct tty *tp;
sys/dev/virtio/viocon.c
310
tp = ttymalloc(1000000);
sys/dev/virtio/viocon.c
311
tp->t_oproc = vioconstart;
sys/dev/virtio/viocon.c
312
tp->t_param = vioconparam;
sys/dev/virtio/viocon.c
313
tp->t_hwiflow = vioconhwiflow;
sys/dev/virtio/viocon.c
314
tp->t_dev = VIOCONDEV(device_unit(sc->sc_dev), portidx);
sys/dev/virtio/viocon.c
315
vp->vp_tty = tp;
sys/dev/virtio/viocon.c
316
DPRINTF("%s: tty: %p\n", __func__, tp);
sys/dev/virtio/viocon.c
352
struct tty *tp = vp->vp_tty;
sys/dev/virtio/viocon.c
356
if (ndone && ISSET(tp->t_state, TS_BUSY)) {
sys/dev/virtio/viocon.c
357
CLR(tp->t_state, TS_BUSY);
sys/dev/virtio/viocon.c
358
(*tp->t_linesw->l_start)(tp);
sys/dev/virtio/viocon.c
404
struct tty *tp = vp->vp_tty;
sys/dev/virtio/viocon.c
413
(*tp->t_linesw->l_rint)(*p++, tp);
sys/dev/virtio/viocon.c
423
vioconstart(struct tty *tp)
sys/dev/virtio/viocon.c
425
struct viocon_softc *sc = dev2sc(tp->t_dev);
sys/dev/virtio/viocon.c
427
struct viocon_port *vp = dev2port(tp->t_dev);
sys/dev/virtio/viocon.c
438
if (ISSET(tp->t_state, TS_BUSY)) {
sys/dev/virtio/viocon.c
440
CLR(tp->t_state, TS_BUSY);
sys/dev/virtio/viocon.c
444
if (ISSET(tp->t_state, TS_TIMEOUT | TS_TTSTOP))
sys/dev/virtio/viocon.c
447
if (tp->t_outq.c_cc == 0)
sys/dev/virtio/viocon.c
45
#define ttwakeupwr(tp) __nothing
sys/dev/virtio/viocon.c
451
while (tp->t_outq.c_cc > 0) {
sys/dev/virtio/viocon.c
454
SET(tp->t_state, TS_BUSY);
sys/dev/virtio/viocon.c
461
cnt = q_to_b(&tp->t_outq, buf, BUFSIZE);
sys/dev/virtio/viocon.c
472
ttwakeupwr(tp);
sys/dev/virtio/viocon.c
478
vioconhwiflow(struct tty *tp, int stop)
sys/dev/virtio/viocon.c
480
struct viocon_port *vp = dev2port(tp->t_dev);
sys/dev/virtio/viocon.c
496
vioconparam(struct tty *tp, struct termios *t)
sys/dev/virtio/viocon.c
498
tp->t_ispeed = t->c_ispeed;
sys/dev/virtio/viocon.c
499
tp->t_ospeed = t->c_ospeed;
sys/dev/virtio/viocon.c
500
tp->t_cflag = t->c_cflag;
sys/dev/virtio/viocon.c
502
vioconstart(tp);
sys/dev/virtio/viocon.c
513
struct tty *tp;
sys/dev/virtio/viocon.c
528
tp = vp->vp_tty;
sys/dev/virtio/viocon.c
534
if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
sys/dev/virtio/viocon.c
538
if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
sys/dev/virtio/viocon.c
539
ttychars(tp);
sys/dev/virtio/viocon.c
540
tp->t_ispeed = 1000000;
sys/dev/virtio/viocon.c
541
tp->t_ospeed = 1000000;
sys/dev/virtio/viocon.c
542
tp->t_cflag = TTYDEF_CFLAG|CLOCAL|CRTSCTS;
sys/dev/virtio/viocon.c
543
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/virtio/viocon.c
544
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/virtio/viocon.c
545
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/virtio/viocon.c
547
tp->t_winsize.ws_col = vp->vp_cols;
sys/dev/virtio/viocon.c
548
tp->t_winsize.ws_row = vp->vp_rows;
sys/dev/virtio/viocon.c
551
vioconparam(tp, &tp->t_termios);
sys/dev/virtio/viocon.c
552
ttsetwater(tp);
sys/dev/virtio/viocon.c
556
error = (*tp->t_linesw->l_open)(dev, tp);
sys/dev/virtio/viocon.c
564
struct tty *tp = vp->vp_tty;
sys/dev/virtio/viocon.c
567
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/dev/virtio/viocon.c
570
(*tp->t_linesw->l_close)(tp, flag);
sys/dev/virtio/viocon.c
575
CLR(tp->t_state, TS_BUSY | TS_FLUSH);
sys/dev/virtio/viocon.c
576
ttyclose(tp);
sys/dev/virtio/viocon.c
586
struct tty *tp = vp->vp_tty;
sys/dev/virtio/viocon.c
588
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/dev/virtio/viocon.c
595
struct tty *tp = vp->vp_tty;
sys/dev/virtio/viocon.c
597
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/dev/virtio/viocon.c
609
vioconstop(struct tty *tp, int flag)
sys/dev/virtio/viocon.c
614
if (ISSET(tp->t_state, TS_BUSY))
sys/dev/virtio/viocon.c
615
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/dev/virtio/viocon.c
616
SET(tp->t_state, TS_FLUSH);
sys/dev/virtio/viocon.c
624
struct tty *tp;
sys/dev/virtio/viocon.c
627
tp = vp->vp_tty;
sys/dev/virtio/viocon.c
629
error1 = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/dev/virtio/viocon.c
632
error2 = ttioctl(tp, cmd, data, flag, l);
sys/dev/wscons/wsdisplay.c
1009
struct tty *tp;
sys/dev/wscons/wsdisplay.c
1031
tp = scr->scr_tty;
sys/dev/wscons/wsdisplay.c
1032
tp->t_oproc = wsdisplaystart;
sys/dev/wscons/wsdisplay.c
1033
tp->t_param = wsdisplayparam;
sys/dev/wscons/wsdisplay.c
1034
tp->t_dev = dev;
sys/dev/wscons/wsdisplay.c
1035
newopen = (tp->t_state & TS_ISOPEN) == 0;
sys/dev/wscons/wsdisplay.c
1038
KAUTH_DEVICE_TTY_OPEN, tp))
sys/dev/wscons/wsdisplay.c
1042
ttychars(tp);
sys/dev/wscons/wsdisplay.c
1043
tp->t_iflag = TTYDEF_IFLAG;
sys/dev/wscons/wsdisplay.c
1044
tp->t_oflag = TTYDEF_OFLAG;
sys/dev/wscons/wsdisplay.c
1045
tp->t_cflag = TTYDEF_CFLAG;
sys/dev/wscons/wsdisplay.c
1046
tp->t_lflag = TTYDEF_LFLAG;
sys/dev/wscons/wsdisplay.c
1047
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/dev/wscons/wsdisplay.c
1048
wsdisplayparam(tp, &tp->t_termios);
sys/dev/wscons/wsdisplay.c
1049
ttsetwater(tp);
sys/dev/wscons/wsdisplay.c
1051
tp->t_state |= TS_CARR_ON;
sys/dev/wscons/wsdisplay.c
1053
error = ((*tp->t_linesw->l_open)(dev, tp));
sys/dev/wscons/wsdisplay.c
1060
tp->t_winsize.ws_row = scr->scr_dconf->scrdata->nrows;
sys/dev/wscons/wsdisplay.c
1061
tp->t_winsize.ws_col = scr->scr_dconf->scrdata->ncols;
sys/dev/wscons/wsdisplay.c
1076
struct tty *tp;
sys/dev/wscons/wsdisplay.c
1102
tp = scr->scr_tty;
sys/dev/wscons/wsdisplay.c
1103
(*tp->t_linesw->l_close)(tp, flag);
sys/dev/wscons/wsdisplay.c
1104
ttyclose(tp);
sys/dev/wscons/wsdisplay.c
1137
struct tty *tp;
sys/dev/wscons/wsdisplay.c
1157
tp = scr->scr_tty;
sys/dev/wscons/wsdisplay.c
1158
return (*tp->t_linesw->l_read)(tp, uio, flag);
sys/dev/wscons/wsdisplay.c
1165
struct tty *tp;
sys/dev/wscons/wsdisplay.c
1183
tp = scr->scr_tty;
sys/dev/wscons/wsdisplay.c
1184
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/dev/wscons/wsdisplay.c
1191
struct tty *tp;
sys/dev/wscons/wsdisplay.c
1208
tp = scr->scr_tty;
sys/dev/wscons/wsdisplay.c
1209
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/dev/wscons/wsdisplay.c
1258
struct tty *tp;
sys/dev/wscons/wsdisplay.c
1281
tp = scr->scr_tty;
sys/dev/wscons/wsdisplay.c
1284
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/dev/wscons/wsdisplay.c
1289
error = ttioctl(tp, cmd, data, flag, l);
sys/dev/wscons/wsdisplay.c
1663
wsdisplaystart(struct tty *tp)
sys/dev/wscons/wsdisplay.c
1671
if (tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP)) {
sys/dev/wscons/wsdisplay.c
1675
sc = device_lookup_private(&wsdisplay_cd, WSDISPLAYUNIT(tp->t_dev));
sys/dev/wscons/wsdisplay.c
1676
if ((scr = sc->sc_scr[WSDISPLAYSCREEN(tp->t_dev)]) == NULL) {
sys/dev/wscons/wsdisplay.c
1682
tp->t_state |= TS_TIMEOUT;
sys/dev/wscons/wsdisplay.c
1686
tp->t_state |= TS_BUSY;
sys/dev/wscons/wsdisplay.c
1702
n = ndqb(&tp->t_outq, 0);
sys/dev/wscons/wsdisplay.c
1703
tbuf = tp->t_outq.c_cf;
sys/dev/wscons/wsdisplay.c
1719
ndflush(&tp->t_outq, n);
sys/dev/wscons/wsdisplay.c
1721
if ((n = ndqb(&tp->t_outq, 0)) > 0) {
sys/dev/wscons/wsdisplay.c
1722
tbuf = tp->t_outq.c_cf;
sys/dev/wscons/wsdisplay.c
1739
ndflush(&tp->t_outq, n);
sys/dev/wscons/wsdisplay.c
1747
tp->t_state &= ~TS_BUSY;
sys/dev/wscons/wsdisplay.c
1749
if (ttypull(tp)) {
sys/dev/wscons/wsdisplay.c
1750
tp->t_state |= TS_TIMEOUT;
sys/dev/wscons/wsdisplay.c
1751
callout_schedule(&tp->t_rstrt_ch, (hz > 128) ? (hz / 128) : 1);
sys/dev/wscons/wsdisplay.c
1757
wsdisplaystop(struct tty *tp, int flag)
sys/dev/wscons/wsdisplay.c
1762
if (ISSET(tp->t_state, TS_BUSY))
sys/dev/wscons/wsdisplay.c
1763
if (!ISSET(tp->t_state, TS_TTSTOP))
sys/dev/wscons/wsdisplay.c
1764
SET(tp->t_state, TS_FLUSH);
sys/dev/wscons/wsdisplay.c
1770
wsdisplayparam(struct tty *tp, struct termios *t)
sys/dev/wscons/wsdisplay.c
1773
tp->t_ispeed = t->c_ispeed;
sys/dev/wscons/wsdisplay.c
1774
tp->t_ospeed = t->c_ospeed;
sys/dev/wscons/wsdisplay.c
1775
tp->t_cflag = t->c_cflag;
sys/dev/wscons/wsdisplay.c
1801
struct tty *tp;
sys/dev/wscons/wsdisplay.c
1812
tp = scr->scr_tty;
sys/dev/wscons/wsdisplay.c
1822
ifcn = tp->t_linesw->l_rint;
sys/dev/wscons/wsdisplay.c
1827
(*ifcn)(*data++, tp);
sys/dev/wscons/wsdisplay.c
1840
struct tty *tp;
sys/dev/wscons/wsdisplay.c
1849
tp = scr->scr_tty;
sys/dev/wscons/wsdisplay.c
1852
(*tp->t_linesw->l_rint)(KS_VALUE(ks), tp);
sys/dev/wscons/wsdisplay.c
1857
(*tp->t_linesw->l_rint)((unsigned char)(*dp++), tp);
sys/dev/wscons/wsdisplay.c
302
struct tty *tp = scr->scr_tty;
sys/dev/wscons/wsdisplay.c
306
(*tp->t_linesw->l_rint)((unsigned char)c, tp);
sys/dev/wscons/wsdisplay.c
504
struct tty *tp = scr->scr_tty;
sys/dev/wscons/wsdisplay.c
505
(*tp->t_linesw->l_modem)(tp, 0);
sys/kern/kern_exit.c
378
struct tty *tp;
sys/kern/kern_exit.c
387
tp = sp->s_ttyp;
sys/kern/kern_exit.c
389
if (tp->t_session == sp) {
sys/kern/kern_exit.c
391
pgrp = tp->t_pgrp;
sys/kern/kern_exit.c
392
tp->t_pgrp = NULL;
sys/kern/kern_exit.c
393
tp->t_session = NULL;
sys/kern/kern_exit.c
399
(void) ttywait(tp);
sys/kern/kern_ntptime.c
264
error = copyin((void *)SCARG(uap, tp), (void *)&ntv, sizeof(ntv));
sys/kern/kern_ntptime.c
275
error = copyout((void *)&ntv, (void *)SCARG(uap, tp), sizeof(ntv));
sys/kern/kern_proc.c
2715
struct tty *tp;
sys/kern/kern_proc.c
2750
(tp = p->p_session->s_ttyp)) {
sys/kern/kern_proc.c
2751
ep->e_tdev = tp->t_dev;
sys/kern/kern_proc.c
2752
ep->e_tpgid = tp->t_pgrp ? tp->t_pgrp->pg_id : NO_PGID;
sys/kern/kern_proc.c
2753
COND_SET_PTR(ep->e_tsess, tp->t_session, allowaddr);
sys/kern/kern_proc.c
2771
struct tty *tp;
sys/kern/kern_proc.c
2902
if ((p->p_lflag & PL_CONTROLT) && (tp = p->p_session->s_ttyp)) {
sys/kern/kern_proc.c
2903
ki->p_tdev = tp->t_dev;
sys/kern/kern_proc.c
2904
ki->p_tpgid = tp->t_pgrp ? tp->t_pgrp->pg_id : NO_PGID;
sys/kern/kern_proc.c
2905
COND_SET_VALUE(ki->p_tsess, PTRTOUINT64(tp->t_session),
sys/kern/kern_time.c
284
return copyout(&ats, SCARG(uap, tp), sizeof(ats));
sys/kern/kern_time.c
299
if ((error = copyin(SCARG(uap, tp), &ats, sizeof(ats))) != 0)
sys/kern/kern_time.c
307
clock_settime1(struct proc *p, clockid_t clock_id, const struct timespec *tp,
sys/kern/kern_time.c
312
if (tp->tv_nsec < 0 || tp->tv_nsec >= 1000000000L)
sys/kern/kern_time.c
317
if ((error = settime1(p, tp, check_kauth)) != 0)
sys/kern/kern_time.c
343
if (SCARG(uap, tp))
sys/kern/kern_time.c
344
error = copyout(&ts, SCARG(uap, tp), sizeof(ts));
sys/kern/kern_time.c
533
if (SCARG(uap, tp)) {
sys/kern/kern_time.c
536
error = copyout(&atv, SCARG(uap, tp), sizeof(atv));
sys/kern/subr_devsw.c
1545
cdev_stop(struct tty *tp, int flag)
sys/kern/subr_devsw.c
1550
if ((d = cdevsw_lookup(tp->t_dev)) == NULL)
sys/kern/subr_devsw.c
1554
SDT_PROBE4(sdt, cdev, stop, entry, d, tp->t_dev, tp, flag);
sys/kern/subr_devsw.c
1555
(*d->d_stop)(tp, flag);
sys/kern/subr_devsw.c
1556
SDT_PROBE4(sdt, cdev, stop, return, d, tp->t_dev, tp, flag);
sys/kern/subr_prf.c
397
putone(int c, int flags, struct tty *tp)
sys/kern/subr_prf.c
417
tp == NULL) {
sys/kern/subr_prf.c
418
tp = ctp;
sys/kern/subr_prf.c
421
if ((flags & TOTTY) && tp &&
sys/kern/subr_prf.c
422
tputchar(c, flags, tp) < 0 &&
sys/kern/subr_prf.c
424
atomic_cas_ptr(&constty, tp, NULL);
sys/kern/subr_prf.c
453
addtstamp(int flags, struct tty *tp)
sys/kern/subr_prf.c
480
putone(buf[i], flags, tp);
sys/kern/subr_prf.c
492
putchar(int c, int flags, struct tty *tp)
sys/kern/subr_prf.c
501
addtstamp(flags, tp);
sys/kern/subr_prf.c
508
putone(c, flags, tp);
sys/kern/subr_prf.c
636
struct tty *tp = NULL;
sys/kern/subr_prf.c
643
tp = sess->s_ttyp;
sys/kern/subr_prf.c
650
kprintf(fmt, flags, tp, NULL, ap);
sys/kern/subr_prf.c
668
ttyprintf(struct tty *tp, const char *fmt, ...)
sys/kern/subr_prf.c
674
kprintf(fmt, TOTTY, tp, NULL, ap);
sys/kern/sys_lwp.c
468
lwp_unpark(const lwpid_t *tp, const u_int ntargets)
sys/kern/sys_lwp.c
481
t = proc_find_lwp_unlocked(p, tp[target]);
sys/kern/sys_lwp.c
624
lwpid_t targets[32], *tp;
sys/kern/sys_lwp.c
647
tp = targets;
sys/kern/sys_lwp.c
649
tp = kmem_alloc(sz, KM_SLEEP);
sys/kern/sys_lwp.c
650
error = copyin(SCARG(uap, targets), tp, sz);
sys/kern/sys_lwp.c
652
if (tp != targets) {
sys/kern/sys_lwp.c
653
kmem_free(tp, sz);
sys/kern/sys_lwp.c
657
error = lwp_unpark(tp, ntargets);
sys/kern/sys_lwp.c
658
if (tp != targets)
sys/kern/sys_lwp.c
659
kmem_free(tp, sz);
sys/kern/systrace_args.c
1308
uarg[0] = (intptr_t) SCARG(p, tp); /* struct timex * */
sys/kern/systrace_args.c
1712
uarg[1] = (intptr_t) SCARG(p, tp); /* struct timespec50 * */
sys/kern/systrace_args.c
1720
uarg[1] = (intptr_t) SCARG(p, tp); /* const struct timespec50 * */
sys/kern/systrace_args.c
1728
uarg[1] = (intptr_t) SCARG(p, tp); /* struct timespec50 * */
sys/kern/systrace_args.c
3143
uarg[0] = (intptr_t) SCARG(p, tp); /* struct timeval * */
sys/kern/systrace_args.c
3217
uarg[1] = (intptr_t) SCARG(p, tp); /* struct timespec * */
sys/kern/systrace_args.c
3225
uarg[1] = (intptr_t) SCARG(p, tp); /* const struct timespec * */
sys/kern/systrace_args.c
3233
uarg[1] = (intptr_t) SCARG(p, tp); /* struct timespec * */
sys/kern/systrace_args.c
860
uarg[0] = (intptr_t) SCARG(p, tp); /* struct timeval50 * */
sys/kern/tty.c
1004
if (ISSET(tp->t_oflag, ONLCR | ONLRET))
sys/kern/tty.c
1017
tp->t_column = col;
sys/kern/tty.c
1028
ttioctl(struct tty *tp, u_long cmd, void *data, int flag, struct lwp *l)
sys/kern/tty.c
1069
while (isbackground(curproc, tp) &&
sys/kern/tty.c
1079
error = ttypause(tp, hz);
sys/kern/tty.c
1093
SET(tp->t_state, TS_ASYNC);
sys/kern/tty.c
1095
CLR(tp->t_state, TS_ASYNC);
sys/kern/tty.c
1102
*(int *)data = ttnread(tp);
sys/kern/tty.c
1107
*(int *)data = tp->t_outq.c_cc;
sys/kern/tty.c
1112
*(int *)data = tp->t_outq.c_cn - tp->t_outq.c_cc;
sys/kern/tty.c
1117
SET(tp->t_state, TS_XCLUDE);
sys/kern/tty.c
1128
ttyflush(tp, flags);
sys/kern/tty.c
1139
if (ctp != NULL && ctp != tp &&
sys/kern/tty.c
1164
atomic_store_release(&constty, tp);
sys/kern/tty.c
1165
} else if (tp == ctp) {
sys/kern/tty.c
1174
if ((error = ttywait(tp)) != 0)
sys/kern/tty.c
1180
memcpy(t, &tp->t_termios, sizeof(struct termios));
sys/kern/tty.c
1184
*(int *)data = tp->t_linesw->l_no;
sys/kern/tty.c
1187
(void)strncpy((char *)data, tp->t_linesw->l_name,
sys/kern/tty.c
1191
*(struct winsize *)data = tp->t_winsize;
sys/kern/tty.c
1194
*(int *)data = tp->t_qsize;
sys/kern/tty.c
1198
if (tp->t_session != NULL && !isctty(p, tp)) {
sys/kern/tty.c
1202
*(int *)data = tp->t_pgrp ? -tp->t_pgrp->pg_id : 0;
sys/kern/tty.c
1207
if (!isctty(p, tp)) {
sys/kern/tty.c
1211
*(int *)data = tp->t_pgrp ? tp->t_pgrp->pg_id : NO_PGID;
sys/kern/tty.c
1216
if (!isctty(p, tp)) {
sys/kern/tty.c
1220
*(int *)data = tp->t_session->s_sid;
sys/kern/tty.c
1226
SET(tp->t_cflag, HUPCL);
sys/kern/tty.c
1232
CLR(tp->t_state, TS_XCLUDE);
sys/kern/tty.c
1236
*(int *)data = tp->t_outq.c_cc;
sys/kern/tty.c
1244
if ((error = ttywait(tp)) != 0)
sys/kern/tty.c
1249
ttyflush(tp, FREAD);
sys/kern/tty.c
1265
if (tp->t_param && (error = (*tp->t_param)(tp, t))) {
sys/kern/tty.c
1270
tp->t_cflag = t->c_cflag;
sys/kern/tty.c
1271
tp->t_ispeed = t->c_ispeed;
sys/kern/tty.c
1272
tp->t_ospeed = t->c_ospeed;
sys/kern/tty.c
1274
ttysig(tp, TTYSIG_LEADER, SIGHUP);
sys/kern/tty.c
1276
ttsetwater(tp);
sys/kern/tty.c
1283
ISSET(tp->t_lflag, ICANON)) {
sys/kern/tty.c
1285
SET(tp->t_lflag, PENDIN);
sys/kern/tty.c
1286
ttwakeup(tp);
sys/kern/tty.c
129
#define CONNECTED(tp) (ISSET(tp->t_state, TS_CARR_ON) || \
sys/kern/tty.c
1290
catq(&tp->t_rawq, &tp->t_canq);
sys/kern/tty.c
1291
tq = tp->t_rawq;
sys/kern/tty.c
1292
tp->t_rawq = tp->t_canq;
sys/kern/tty.c
1293
tp->t_canq = tq;
sys/kern/tty.c
1294
CLR(tp->t_lflag, PENDIN);
sys/kern/tty.c
1298
tp->t_iflag = t->c_iflag;
sys/kern/tty.c
1299
tp->t_oflag = t->c_oflag;
sys/kern/tty.c
130
ISSET(tp->t_cflag, CLOCAL | MDMBUF))
sys/kern/tty.c
1303
if (ISSET(tp->t_lflag, EXTPROC))
sys/kern/tty.c
1307
tp->t_lflag = t->c_lflag | ISSET(tp->t_lflag, PENDIN);
sys/kern/tty.c
1308
memcpy(tp->t_cc, t->c_cc, sizeof(t->c_cc));
sys/kern/tty.c
1328
if (lp != tp->t_linesw) {
sys/kern/tty.c
1329
device = tp->t_dev;
sys/kern/tty.c
1331
(*tp->t_linesw->l_close)(tp, flag);
sys/kern/tty.c
1332
error = (*lp->l_open)(device, tp);
sys/kern/tty.c
1334
(void)(*tp->t_linesw->l_open)(device, tp);
sys/kern/tty.c
1339
ttyldisc_release(tp->t_linesw);
sys/kern/tty.c
1340
tp->t_linesw = lp;
sys/kern/tty.c
1350
if (ISSET(tp->t_state, TS_TTSTOP) ||
sys/kern/tty.c
1351
ISSET(tp->t_lflag, FLUSHO)) {
sys/kern/tty.c
1352
CLR(tp->t_lflag, FLUSHO);
sys/kern/tty.c
1353
CLR(tp->t_state, TS_TTSTOP);
sys/kern/tty.c
1354
ttstart(tp);
sys/kern/tty.c
1360
KAUTH_DEVICE_TTY_STI, tp)) != 0) {
sys/kern/tty.c
1363
if (!isctty(p, tp))
sys/kern/tty.c
1365
if (tp->t_session->s_leader->p_cred != p->p_cred)
sys/kern/tty.c
1368
(*tp->t_linesw->l_rint)(*(u_char *)data, tp);
sys/kern/tty.c
1373
if (!ISSET(tp->t_state, TS_TTSTOP)) {
sys/kern/tty.c
1374
SET(tp->t_state, TS_TTSTOP);
sys/kern/tty.c
1375
cdev_stop(tp, 0);
sys/kern/tty.c
1386
((p->p_session->s_ttyvp || tp->t_session) &&
sys/kern/tty.c
1387
(tp->t_session != p->p_session))) {
sys/kern/tty.c
1399
if (tp->t_session == NULL) {
sys/kern/tty.c
1402
tp->t_session = p->p_session;
sys/kern/tty.c
1403
tp->t_pgrp = p->p_pgrp;
sys/kern/tty.c
1404
p->p_session->s_ttyp = tp;
sys/kern/tty.c
1414
if (tp->t_session != NULL && !isctty(p, tp)) {
sys/kern/tty.c
1444
tp->t_pgrp = pgrp;
sys/kern/tty.c
1457
if (!isctty(p, tp)) {
sys/kern/tty.c
1467
tp->t_pgrp = pgrp;
sys/kern/tty.c
1474
ttygetinfo(tp, 0, infobuf, sizeof(infobuf));
sys/kern/tty.c
1478
ttyputinfo(tp, infobuf);
sys/kern/tty.c
1483
if (memcmp((void *)&tp->t_winsize, data,
sys/kern/tty.c
1485
tp->t_winsize = *(struct winsize *)data;
sys/kern/tty.c
1486
ttysig(tp, TTYSIG_PG1, SIGWINCH);
sys/kern/tty.c
1492
s != tp->t_qsize)
sys/kern/tty.c
1493
error = tty_set_qsize(tp, s);
sys/kern/tty.c
1535
(tp, cmd, data, flag, l), enosys(), error);
sys/kern/tty.c
1542
(tp, cmd, data, flag, l), enosys(), error);
sys/kern/tty.c
1549
ttpoll(struct tty *tp, int events, struct lwp *l)
sys/kern/tty.c
1556
if (ttnread(tp) > 0)
sys/kern/tty.c
1560
if (tp->t_outq.c_cc <= tp->t_lowat)
sys/kern/tty.c
1564
if (!CONNECTED(tp))
sys/kern/tty.c
1569
selrecord(l, &tp->t_rsel);
sys/kern/tty.c
1572
selrecord(l, &tp->t_wsel);
sys/kern/tty.c
1583
struct tty *tp;
sys/kern/tty.c
1585
tp = kn->kn_hook;
sys/kern/tty.c
1587
selremove_knote(&tp->t_rsel, kn);
sys/kern/tty.c
1594
struct tty *tp;
sys/kern/tty.c
1597
tp = kn->kn_hook;
sys/kern/tty.c
1600
kn->kn_data = ttnread(tp);
sys/kern/tty.c
1610
struct tty *tp;
sys/kern/tty.c
1612
tp = kn->kn_hook;
sys/kern/tty.c
1614
selremove_knote(&tp->t_wsel, kn);
sys/kern/tty.c
1621
struct tty *tp;
sys/kern/tty.c
1624
tp = kn->kn_hook;
sys/kern/tty.c
1627
kn->kn_data = tp->t_outq.c_cn - tp->t_outq.c_cc;
sys/kern/tty.c
1628
canwrite = (tp->t_outq.c_cc <= tp->t_lowat) && CONNECTED(tp);
sys/kern/tty.c
1651
struct tty *tp;
sys/kern/tty.c
1654
if ((tp = cdev_tty(dev)) == NULL)
sys/kern/tty.c
1659
sip = &tp->t_rsel;
sys/kern/tty.c
1663
sip = &tp->t_wsel;
sys/kern/tty.c
1670
kn->kn_hook = tp;
sys/kern/tty.c
1684
ttnread(struct tty *tp)
sys/kern/tty.c
1690
if (ISSET(tp->t_lflag, PENDIN))
sys/kern/tty.c
1691
ttypend(tp);
sys/kern/tty.c
1692
nread = tp->t_canq.c_cc;
sys/kern/tty.c
1693
if (!ISSET(tp->t_lflag, ICANON)) {
sys/kern/tty.c
1694
nread += tp->t_rawq.c_cc;
sys/kern/tty.c
1695
if (nread < tp->t_cc[VMIN] && !tp->t_cc[VTIME])
sys/kern/tty.c
1705
ttywait_timo(struct tty *tp, int timo)
sys/kern/tty.c
1712
while ((tp->t_outq.c_cc || ISSET(tp->t_state, TS_BUSY)) &&
sys/kern/tty.c
1713
CONNECTED(tp) && tp->t_oproc) {
sys/kern/tty.c
1714
(*tp->t_oproc)(tp);
sys/kern/tty.c
1715
error = ttysleep(tp, &tp->t_outcv, true, timo);
sys/kern/tty.c
1717
ttyflush(tp, FWRITE);
sys/kern/tty.c
1730
ttywait(struct tty *tp)
sys/kern/tty.c
1732
return ttywait_timo(tp, 0);
sys/kern/tty.c
1739
ttywflush(struct tty *tp)
sys/kern/tty.c
1743
error = ttywait_timo(tp, 5 * hz);
sys/kern/tty.c
1746
ttyflush(tp, FREAD);
sys/kern/tty.c
1757
ttyflush(struct tty *tp, int rw)
sys/kern/tty.c
1763
FLUSHQ(&tp->t_canq);
sys/kern/tty.c
1764
FLUSHQ(&tp->t_rawq);
sys/kern/tty.c
1765
tp->t_rocount = 0;
sys/kern/tty.c
1766
tp->t_rocol = 0;
sys/kern/tty.c
1767
CLR(tp->t_state, TS_LOCAL);
sys/kern/tty.c
1768
ttwakeup(tp);
sys/kern/tty.c
1771
CLR(tp->t_state, TS_TTSTOP);
sys/kern/tty.c
1772
cdev_stop(tp, rw);
sys/kern/tty.c
1773
FLUSHQ(&tp->t_outq);
sys/kern/tty.c
1774
cv_broadcast(&tp->t_outcv);
sys/kern/tty.c
1775
selnotify(&tp->t_wsel, 0, NOTE_SUBMIT);
sys/kern/tty.c
1783
ttychars(struct tty *tp)
sys/kern/tty.c
1786
memcpy(tp->t_cc, ttydefchars, sizeof(ttydefchars));
sys/kern/tty.c
1794
ttyblock(struct tty *tp)
sys/kern/tty.c
1800
total = tp->t_rawq.c_cc + tp->t_canq.c_cc;
sys/kern/tty.c
1801
if (tp->t_rawq.c_cc > TTYHOG) {
sys/kern/tty.c
1802
ttyflush(tp, FREAD | FWRITE);
sys/kern/tty.c
1803
CLR(tp->t_state, TS_TBLOCK);
sys/kern/tty.c
1810
!ISSET(tp->t_state, TS_TBLOCK) &&
sys/kern/tty.c
1811
(!ISSET(tp->t_lflag, ICANON) || tp->t_canq.c_cc > 0)) {
sys/kern/tty.c
1812
if (ISSET(tp->t_iflag, IXOFF) &&
sys/kern/tty.c
1813
tp->t_cc[VSTOP] != _POSIX_VDISABLE &&
sys/kern/tty.c
1814
putc(tp->t_cc[VSTOP], &tp->t_outq) == 0) {
sys/kern/tty.c
1815
SET(tp->t_state, TS_TBLOCK);
sys/kern/tty.c
1816
ttstart(tp);
sys/kern/tty.c
1819
if (ISSET(tp->t_cflag, CHWFLOW) && tp->t_hwiflow &&
sys/kern/tty.c
1820
(*tp->t_hwiflow)(tp, 1) != 0)
sys/kern/tty.c
1821
SET(tp->t_state, TS_TBLOCK);
sys/kern/tty.c
1831
struct tty *tp;
sys/kern/tty.c
1837
tp = tp_arg;
sys/kern/tty.c
1840
CLR(tp->t_state, TS_TIMEOUT);
sys/kern/tty.c
1841
ttstart(tp); /* XXX - Shouldn't this be tp->l_start(tp)? */
sys/kern/tty.c
1851
ttstart(struct tty *tp)
sys/kern/tty.c
1854
if (tp->t_oproc != NULL) /* XXX: Kludge for pty. */
sys/kern/tty.c
1855
(*tp->t_oproc)(tp);
sys/kern/tty.c
1863
ttylclose(struct tty *tp, int flag)
sys/kern/tty.c
1868
ttyflush(tp, FREAD | FWRITE);
sys/kern/tty.c
1871
ttywflush(tp);
sys/kern/tty.c
1881
ttymodem(struct tty *tp, int flag)
sys/kern/tty.c
1886
if (ISSET(tp->t_state, TS_CARR_ON)) {
sys/kern/tty.c
1890
CLR(tp->t_state, TS_CARR_ON);
sys/kern/tty.c
1891
if (ISSET(tp->t_state, TS_ISOPEN) && !CONNECTED(tp)) {
sys/kern/tty.c
1892
ttysig(tp, TTYSIG_LEADER, SIGHUP);
sys/kern/tty.c
1893
ttyflush(tp, FREAD | FWRITE);
sys/kern/tty.c
1899
if (!ISSET(tp->t_state, TS_CARR_ON)) {
sys/kern/tty.c
1903
SET(tp->t_state, TS_CARR_ON);
sys/kern/tty.c
1904
ttwakeup(tp);
sys/kern/tty.c
1917
nullmodem(struct tty *tp, int flag)
sys/kern/tty.c
1922
SET(tp->t_state, TS_CARR_ON);
sys/kern/tty.c
1924
CLR(tp->t_state, TS_CARR_ON);
sys/kern/tty.c
1925
if (!CONNECTED(tp)) {
sys/kern/tty.c
1926
ttysig(tp, TTYSIG_LEADER, SIGHUP);
sys/kern/tty.c
1940
ttypend(struct tty *tp)
sys/kern/tty.c
1947
CLR(tp->t_lflag, PENDIN);
sys/kern/tty.c
1948
SET(tp->t_state, TS_TYPEN);
sys/kern/tty.c
1949
tq = tp->t_rawq;
sys/kern/tty.c
1950
tp->t_rawq.c_cc = 0;
sys/kern/tty.c
1951
tp->t_rawq.c_cf = tp->t_rawq.c_cl = 0;
sys/kern/tty.c
1953
ttyinput_wlock(c, tp);
sys/kern/tty.c
1954
CLR(tp->t_state, TS_TYPEN);
sys/kern/tty.c
1961
ttread(struct tty *tp, struct uio *uio, int flag)
sys/kern/tty.c
1976
cc = tp->t_cc;
sys/kern/tty.c
1985
lflag = tp->t_lflag;
sys/kern/tty.c
1990
ttypend(tp);
sys/kern/tty.c
1995
if (isbackground(p, tp)) {
sys/kern/tty.c
2008
error = ttypause(tp, hz);
sys/kern/tty.c
2019
qp = &tp->t_rawq;
sys/kern/tty.c
2087
} else if ((qp = &tp->t_canq)->c_cc <= 0) {
sys/kern/tty.c
2096
carrier = CONNECTED(tp);
sys/kern/tty.c
2097
if (!carrier && ISSET(tp->t_state, TS_ISOPEN)) {
sys/kern/tty.c
2107
error = ttysleep(tp, &tp->t_rawcv, true, slp);
sys/kern/tty.c
2128
ttysig(tp, TTYSIG_PG1, SIGTSTP);
sys/kern/tty.c
2130
error = ttypause(tp, hz);
sys/kern/tty.c
2166
if (ISSET(tp->t_state, TS_TBLOCK) && tp->t_rawq.c_cc < TTYHOG / 5) {
sys/kern/tty.c
2167
if (ISSET(tp->t_iflag, IXOFF) &&
sys/kern/tty.c
2169
putc(cc[VSTART], &tp->t_outq) == 0) {
sys/kern/tty.c
2170
CLR(tp->t_state, TS_TBLOCK);
sys/kern/tty.c
2171
ttstart(tp);
sys/kern/tty.c
2174
if (ISSET(tp->t_cflag, CHWFLOW) && tp->t_hwiflow &&
sys/kern/tty.c
2175
(*tp->t_hwiflow)(tp, 0) != 0)
sys/kern/tty.c
2176
CLR(tp->t_state, TS_TBLOCK);
sys/kern/tty.c
2192
ttycheckoutq_wlock(struct tty *tp)
sys/kern/tty.c
2198
hiwat = tp->t_hiwat;
sys/kern/tty.c
2199
if (tp->t_outq.c_cc > hiwat + 200)
sys/kern/tty.c
2200
if (tp->t_outq.c_cc > hiwat) {
sys/kern/tty.c
2201
ttstart(tp);
sys/kern/tty.c
2209
ttycheckoutq(struct tty *tp)
sys/kern/tty.c
2214
r = ttycheckoutq_wlock(tp);
sys/kern/tty.c
2224
ttwrite(struct tty *tp, struct uio *uio, int flag)
sys/kern/tty.c
2232
hiwat = tp->t_hiwat;
sys/kern/tty.c
2237
if (!CONNECTED(tp)) {
sys/kern/tty.c
2238
if (ISSET(tp->t_state, TS_ISOPEN)) {
sys/kern/tty.c
2247
error = ttysleep(tp, &tp->t_rawcv, true, 0);
sys/kern/tty.c
2259
if (isbackground(p, tp) &&
sys/kern/tty.c
2260
ISSET(tp->t_lflag, TOSTOP) && (p->p_lflag & PL_PPWAIT) == 0 &&
sys/kern/tty.c
2274
error = ttypause(tp, hz);
sys/kern/tty.c
2288
if (ISSET(tp->t_lflag, FLUSHO)) {
sys/kern/tty.c
2292
if (tp->t_outq.c_cc > hiwat)
sys/kern/tty.c
2319
if (!ISSET(tp->t_oflag, OPOST))
sys/kern/tty.c
2329
tp->t_rocount = 0;
sys/kern/tty.c
2330
if (ttyoutput(*cp, tp) >= 0) {
sys/kern/tty.c
2337
if (ISSET(tp->t_lflag, FLUSHO) ||
sys/kern/tty.c
2338
tp->t_outq.c_cc > hiwat) {
sys/kern/tty.c
2353
tp->t_rocount = 0;
sys/kern/tty.c
2354
i = b_to_q(cp, ce, &tp->t_outq);
sys/kern/tty.c
2356
tp->t_column += ce;
sys/kern/tty.c
2358
tp->t_outcc += ce;
sys/kern/tty.c
2364
if (ISSET(tp->t_lflag, FLUSHO) ||
sys/kern/tty.c
2365
tp->t_outq.c_cc > hiwat)
sys/kern/tty.c
2368
ttstart(tp);
sys/kern/tty.c
2385
hiwat = tp->t_outq.c_cc - 1;
sys/kern/tty.c
2389
ttstart(tp);
sys/kern/tty.c
2394
if (tp->t_outq.c_cc <= hiwat) {
sys/kern/tty.c
2403
error = ttysleep(tp, &tp->t_outcv, true, 0);
sys/kern/tty.c
2415
ttypull(struct tty *tp)
sys/kern/tty.c
2420
if (tp->t_outq.c_cc <= tp->t_lowat) {
sys/kern/tty.c
2421
cv_broadcast(&tp->t_outcv);
sys/kern/tty.c
2422
selnotify(&tp->t_wsel, 0, NOTE_SUBMIT);
sys/kern/tty.c
2424
return tp->t_outq.c_cc != 0;
sys/kern/tty.c
2433
ttyrub(int c, struct tty *tp)
sys/kern/tty.c
244
tty_set_qsize(struct tty *tp, int newsize)
sys/kern/tty.c
2440
if (!ISSET(tp->t_lflag, ECHO) || ISSET(tp->t_lflag, EXTPROC))
sys/kern/tty.c
2442
CLR(tp->t_lflag, FLUSHO);
sys/kern/tty.c
2443
if (ISSET(tp->t_lflag, ECHOE)) {
sys/kern/tty.c
2444
if (tp->t_rocount == 0) {
sys/kern/tty.c
2448
ttyretype(tp);
sys/kern/tty.c
2452
ttyrubo(tp, 2);
sys/kern/tty.c
2457
ttyrubo(tp, 1);
sys/kern/tty.c
2464
if (ISSET(tp->t_lflag, ECHOCTL))
sys/kern/tty.c
2465
ttyrubo(tp, 2);
sys/kern/tty.c
2468
if (tp->t_rocount < tp->t_rawq.c_cc) {
sys/kern/tty.c
2469
ttyretype(tp);
sys/kern/tty.c
2472
savecol = tp->t_column;
sys/kern/tty.c
2473
SET(tp->t_state, TS_CNTTB);
sys/kern/tty.c
2474
SET(tp->t_lflag, FLUSHO);
sys/kern/tty.c
2475
tp->t_column = tp->t_rocol;
sys/kern/tty.c
2476
for (cp = firstc(&tp->t_rawq, &tabc); cp;
sys/kern/tty.c
2477
cp = nextc(&tp->t_rawq, cp, &tabc))
sys/kern/tty.c
2478
ttyecho(tabc, tp);
sys/kern/tty.c
2479
CLR(tp->t_lflag, FLUSHO);
sys/kern/tty.c
2480
CLR(tp->t_state, TS_CNTTB);
sys/kern/tty.c
2483
savecol -= tp->t_column;
sys/kern/tty.c
2484
tp->t_column += savecol;
sys/kern/tty.c
2488
(void)ttyoutput('\b', tp);
sys/kern/tty.c
2495
} else if (ISSET(tp->t_lflag, ECHOPRT)) {
sys/kern/tty.c
2496
if (!ISSET(tp->t_state, TS_ERASE)) {
sys/kern/tty.c
2497
SET(tp->t_state, TS_ERASE);
sys/kern/tty.c
2498
(void)ttyoutput('\\', tp);
sys/kern/tty.c
2500
ttyecho(c, tp);
sys/kern/tty.c
2502
ttyecho(tp->t_cc[VERASE], tp);
sys/kern/tty.c
2503
--tp->t_rocount;
sys/kern/tty.c
2511
ttyrubo(struct tty *tp, int cnt)
sys/kern/tty.c
2517
(void)ttyoutput('\b', tp);
sys/kern/tty.c
2518
(void)ttyoutput(' ', tp);
sys/kern/tty.c
2519
(void)ttyoutput('\b', tp);
sys/kern/tty.c
2531
ttyretype(struct tty *tp)
sys/kern/tty.c
2539
if (tp->t_cc[VREPRINT] != _POSIX_VDISABLE)
sys/kern/tty.c
2540
ttyecho(tp->t_cc[VREPRINT], tp);
sys/kern/tty.c
2542
(void)ttyoutput('\n', tp);
sys/kern/tty.c
2544
for (cp = firstc(&tp->t_canq, &c); cp; cp = nextc(&tp->t_canq, cp, &c))
sys/kern/tty.c
2545
ttyecho(c, tp);
sys/kern/tty.c
2546
for (cp = firstc(&tp->t_rawq, &c); cp; cp = nextc(&tp->t_rawq, cp, &c))
sys/kern/tty.c
2547
ttyecho(c, tp);
sys/kern/tty.c
2548
CLR(tp->t_state, TS_ERASE);
sys/kern/tty.c
255
if (tp->t_outq.c_cc != 0) {
sys/kern/tty.c
2550
tp->t_rocount = tp->t_rawq.c_cc;
sys/kern/tty.c
2551
tp->t_rocol = 0;
sys/kern/tty.c
2559
ttyecho(int c, struct tty *tp)
sys/kern/tty.c
2564
if (!ISSET(tp->t_state, TS_CNTTB))
sys/kern/tty.c
2565
CLR(tp->t_lflag, FLUSHO);
sys/kern/tty.c
2566
if ((!ISSET(tp->t_lflag, ECHO) &&
sys/kern/tty.c
2567
(!ISSET(tp->t_lflag, ECHONL) || c != '\n')) ||
sys/kern/tty.c
2568
ISSET(tp->t_lflag, EXTPROC))
sys/kern/tty.c
2570
if (((ISSET(tp->t_lflag, ECHOCTL) &&
sys/kern/tty.c
2573
(void)ttyoutput('^', tp);
sys/kern/tty.c
2580
(void)ttyoutput(c, tp);
sys/kern/tty.c
2588
ttwakeup(struct tty *tp)
sys/kern/tty.c
2593
selnotify(&tp->t_rsel, 0, NOTE_SUBMIT);
sys/kern/tty.c
2594
if (ISSET(tp->t_state, TS_ASYNC))
sys/kern/tty.c
2595
ttysig(tp, TTYSIG_PG2, SIGIO);
sys/kern/tty.c
2596
cv_broadcast(&tp->t_rawcv);
sys/kern/tty.c
2620
ttsetwater(struct tty *tp)
sys/kern/tty.c
2628
cps = tp->t_ospeed / 10;
sys/kern/tty.c
2629
tp->t_lowat = x = CLAMP(cps / 2, TTMAXLOWAT, TTMINLOWAT);
sys/kern/tty.c
263
orawq = tp->t_rawq;
sys/kern/tty.c
2632
tp->t_hiwat = roundup(x, TTROUND);
sys/kern/tty.c
264
ocanq = tp->t_canq;
sys/kern/tty.c
2641
ttygetinfo(struct tty *tp, int fromsig, char *buf, size_t bufsz)
sys/kern/tty.c
265
ooutq = tp->t_outq;
sys/kern/tty.c
2658
if (tp->t_session == NULL)
sys/kern/tty.c
2660
else if (tp->t_pgrp == NULL)
sys/kern/tty.c
2662
else if ((p = LIST_FIRST(&tp->t_pgrp->pg_members)) == NULL)
sys/kern/tty.c
267
tp->t_qsize = newsize;
sys/kern/tty.c
268
tp->t_rawq = rawq;
sys/kern/tty.c
269
tp->t_canq = canq;
sys/kern/tty.c
270
tp->t_outq = outq;
sys/kern/tty.c
272
ttsetwater(tp);
sys/kern/tty.c
2790
ttyputinfo(struct tty *tp, char *buf)
sys/kern/tty.c
2795
if (ttycheckoutq_wlock(tp) == 0)
sys/kern/tty.c
2797
ttyprintf_nolock(tp, "%s\n", buf);
sys/kern/tty.c
2798
tp->t_rocount = 0; /* so pending input will be retyped if BS */
sys/kern/tty.c
2824
tputchar(int c, int flags, struct tty *tp)
sys/kern/tty.c
2830
if (!CONNECTED(tp)) {
sys/kern/tty.c
2835
(void)ttyoutput('\r', tp);
sys/kern/tty.c
2836
(void)ttyoutput(c, tp);
sys/kern/tty.c
2837
ttstart(tp);
sys/kern/tty.c
2854
ttysleep(struct tty *tp, kcondvar_t *cv, bool catch_p, int timo)
sys/kern/tty.c
2861
gen = tp->t_gen;
sys/kern/tty.c
2862
if (ISSET(tp->t_state, TS_CANCEL))
sys/kern/tty.c
2872
return (tp->t_gen == gen ? 0 : ERESTART);
sys/kern/tty.c
2876
ttypause(struct tty *tp, int timo)
sys/kern/tty.c
2880
error = ttysleep(tp, NULL, true, timo);
sys/kern/tty.c
2899
tty_attach(struct tty *tp)
sys/kern/tty.c
2903
TAILQ_INSERT_TAIL(&ttylist, tp, tty_link);
sys/kern/tty.c
2912
tty_detach(struct tty *tp)
sys/kern/tty.c
2921
TAILQ_REMOVE(&ttylist, tp, tty_link);
sys/kern/tty.c
2931
struct tty *tp;
sys/kern/tty.c
2934
tp = kmem_zalloc(sizeof(*tp), KM_SLEEP);
sys/kern/tty.c
2935
callout_init(&tp->t_rstrt_ch, 0);
sys/kern/tty.c
2936
callout_setfunc(&tp->t_rstrt_ch, ttrstrt, tp);
sys/kern/tty.c
2937
tp->t_qsize = tty_qsize;
sys/kern/tty.c
2938
clalloc(&tp->t_rawq, tp->t_qsize, 1);
sys/kern/tty.c
2939
cv_init(&tp->t_rawcv, "ttyraw");
sys/kern/tty.c
2940
cv_init(&tp->t_rawcvf, "ttyrawf");
sys/kern/tty.c
2941
clalloc(&tp->t_canq, tp->t_qsize, 1);
sys/kern/tty.c
2942
cv_init(&tp->t_cancv, "ttycan");
sys/kern/tty.c
2943
cv_init(&tp->t_cancvf, "ttycanf");
sys/kern/tty.c
2945
clalloc(&tp->t_outq, tp->t_qsize, 0);
sys/kern/tty.c
2946
cv_init(&tp->t_outcv, "ttyout");
sys/kern/tty.c
2947
cv_init(&tp->t_outcvf, "ttyoutf");
sys/kern/tty.c
2949
tp->t_linesw = ttyldisc_default();
sys/kern/tty.c
2950
tp->t_dev = NODEV;
sys/kern/tty.c
2951
selinit(&tp->t_rsel);
sys/kern/tty.c
2952
selinit(&tp->t_wsel);
sys/kern/tty.c
2954
sigemptyset(&tp->t_sigs[i]);
sys/kern/tty.c
2957
return tp;
sys/kern/tty.c
2967
tty_free(struct tty *tp)
sys/kern/tty.c
2974
sigemptyset(&tp->t_sigs[i]);
sys/kern/tty.c
2975
if (tp->t_sigcount != 0)
sys/kern/tty.c
2976
TAILQ_REMOVE(&tty_sigqueue, tp, t_sigqueue);
sys/kern/tty.c
2980
callout_halt(&tp->t_rstrt_ch, NULL);
sys/kern/tty.c
2981
callout_destroy(&tp->t_rstrt_ch);
sys/kern/tty.c
2982
ttyldisc_release(tp->t_linesw);
sys/kern/tty.c
2983
clfree(&tp->t_rawq);
sys/kern/tty.c
2984
clfree(&tp->t_canq);
sys/kern/tty.c
2985
clfree(&tp->t_outq);
sys/kern/tty.c
2986
cv_destroy(&tp->t_rawcv);
sys/kern/tty.c
2987
cv_destroy(&tp->t_rawcvf);
sys/kern/tty.c
2988
cv_destroy(&tp->t_cancv);
sys/kern/tty.c
2989
cv_destroy(&tp->t_cancvf);
sys/kern/tty.c
2990
cv_destroy(&tp->t_outcv);
sys/kern/tty.c
2991
cv_destroy(&tp->t_outcvf);
sys/kern/tty.c
2992
seldestroy(&tp->t_rsel);
sys/kern/tty.c
2993
seldestroy(&tp->t_wsel);
sys/kern/tty.c
2994
kmem_free(tp, sizeof(*tp));
sys/kern/tty.c
3017
ttyprintf_nolock(struct tty *tp, const char *fmt, ...)
sys/kern/tty.c
3023
kprintf(fmt, TOTTY|NOLOCK, tp, NULL, ap);
sys/kern/tty.c
3082
ttysig(struct tty *tp, enum ttysigtype st, int sig)
sys/kern/tty.c
3088
sp = &tp->t_sigs[st];
sys/kern/tty.c
3092
if (tp->t_sigcount++ == 0)
sys/kern/tty.c
3093
TAILQ_INSERT_TAIL(&tty_sigqueue, tp, t_sigqueue);
sys/kern/tty.c
3107
struct tty *tp;
sys/kern/tty.c
3116
while ((tp = TAILQ_FIRST(&tty_sigqueue)) != NULL) {
sys/kern/tty.c
3117
KASSERT(tp->t_sigcount > 0);
sys/kern/tty.c
3119
if ((sig = firstsig(&tp->t_sigs[st])) != 0)
sys/kern/tty.c
3123
sigdelset(&tp->t_sigs[st], sig);
sys/kern/tty.c
3124
if (--tp->t_sigcount == 0)
sys/kern/tty.c
3125
TAILQ_REMOVE(&tty_sigqueue, tp, t_sigqueue);
sys/kern/tty.c
3126
pgrp = tp->t_pgrp;
sys/kern/tty.c
3127
sess = tp->t_session;
sys/kern/tty.c
3128
lflag = tp->t_lflag;
sys/kern/tty.c
3130
if (ISSET(tp->t_state, TS_SIGINFO)) {
sys/kern/tty.c
3132
tp->t_state &= ~TS_SIGINFO;
sys/kern/tty.c
3137
ttygetinfo(tp, 1, infobuf, sizeof(infobuf));
sys/kern/tty.c
3139
ttyputinfo(tp, infobuf);
sys/kern/tty.c
3170
tty_getctrlchar(struct tty *tp, unsigned which)
sys/kern/tty.c
3173
return tp->t_cc[which];
sys/kern/tty.c
3177
tty_setctrlchar(struct tty *tp, unsigned which, unsigned char val)
sys/kern/tty.c
3180
tp->t_cc[which] = val;
sys/kern/tty.c
3184
tty_try_xonxoff(struct tty *tp, unsigned char c)
sys/kern/tty.c
3188
if (tp->t_iflag & IXON) {
sys/kern/tty.c
3189
if (c == tp->t_cc[VSTOP] && tp->t_cc[VSTOP] != _POSIX_VDISABLE) {
sys/kern/tty.c
3190
if ((tp->t_state & TS_TTSTOP) == 0) {
sys/kern/tty.c
3191
tp->t_state |= TS_TTSTOP;
sys/kern/tty.c
3192
cdev = cdevsw_lookup(tp->t_dev);
sys/kern/tty.c
3194
(*cdev->d_stop)(tp, 0);
sys/kern/tty.c
3198
if (c == tp->t_cc[VSTART] && tp->t_cc[VSTART] != _POSIX_VDISABLE) {
sys/kern/tty.c
3199
tp->t_state &= ~TS_TTSTOP;
sys/kern/tty.c
3200
if (tp->t_oproc != NULL) {
sys/kern/tty.c
3202
(*tp->t_oproc)(tp);
sys/kern/tty.c
360
ttylock(struct tty *tp)
sys/kern/tty.c
367
ttyunlock(struct tty *tp)
sys/kern/tty.c
374
ttylocked(struct tty *tp)
sys/kern/tty.c
381
ttyopen(struct tty *tp, int dialout, int nonblock)
sys/kern/tty.c
395
if (ISSET(tp->t_state, TS_ISOPEN) &&
sys/kern/tty.c
396
!ISSET(tp->t_state, TS_DIALOUT)) {
sys/kern/tty.c
400
SET(tp->t_state, TS_DIALOUT);
sys/kern/tty.c
407
while (ISSET(tp->t_state, TS_DIALOUT) ||
sys/kern/tty.c
408
!CONNECTED(tp)) {
sys/kern/tty.c
409
tp->t_wopen++;
sys/kern/tty.c
410
error = ttysleep(tp, &tp->t_rawcv, true, 0);
sys/kern/tty.c
411
tp->t_wopen--;
sys/kern/tty.c
420
if (ISSET(tp->t_state, TS_DIALOUT)) {
sys/kern/tty.c
436
ttylopen(dev_t device, struct tty *tp)
sys/kern/tty.c
440
tp->t_dev = device;
sys/kern/tty.c
441
if (!ISSET(tp->t_state, TS_ISOPEN)) {
sys/kern/tty.c
442
SET(tp->t_state, TS_ISOPEN);
sys/kern/tty.c
443
memset(&tp->t_winsize, 0, sizeof(tp->t_winsize));
sys/kern/tty.c
444
tp->t_flags = 0;
sys/kern/tty.c
447
if (tp->t_qsize != tty_qsize)
sys/kern/tty.c
448
tty_set_qsize(tp, tty_qsize);
sys/kern/tty.c
457
ttycancel(struct tty *tp)
sys/kern/tty.c
461
tp->t_state |= TS_CANCEL;
sys/kern/tty.c
462
cv_broadcast(&tp->t_outcv);
sys/kern/tty.c
463
cv_broadcast(&tp->t_rawcv);
sys/kern/tty.c
473
ttyclose(struct tty *tp)
sys/kern/tty.c
481
(void)atomic_cas_ptr(&constty, tp, NULL);
sys/kern/tty.c
498
ttyflush(tp, FREAD | FWRITE);
sys/kern/tty.c
500
tp->t_gen++;
sys/kern/tty.c
501
tp->t_pgrp = NULL;
sys/kern/tty.c
502
tp->t_state = 0;
sys/kern/tty.c
503
sess = tp->t_session;
sys/kern/tty.c
504
tp->t_session = NULL;
sys/kern/tty.c
506
while (tp->t_refcnt)
sys/kern/tty.c
533
tty_acquire(struct tty *tp)
sys/kern/tty.c
537
refcnt = atomic_inc_uint_nv(&tp->t_refcnt);
sys/kern/tty.c
542
tty_release(struct tty *tp)
sys/kern/tty.c
549
old = atomic_load_relaxed(&tp->t_refcnt);
sys/kern/tty.c
552
if (atomic_dec_uint_nv(&tp->t_refcnt) == 0)
sys/kern/tty.c
559
} while (atomic_cas_uint(&tp->t_refcnt, old, new) != old);
sys/kern/tty.c
580
ttyinput_wlock(int c, struct tty *tp)
sys/kern/tty.c
590
lflag = tp->t_lflag;
sys/kern/tty.c
592
ttypend(tp);
sys/kern/tty.c
598
++tp->t_cancc;
sys/kern/tty.c
601
++tp->t_rawcc;
sys/kern/tty.c
605
cc = tp->t_cc;
sys/kern/tty.c
610
iflag = tp->t_iflag;
sys/kern/tty.c
617
ttyflush(tp, FREAD | FWRITE);
sys/kern/tty.c
618
ttysig(tp, TTYSIG_PG1, SIGINT);
sys/kern/tty.c
627
parmrk: (void)putc(0377 | TTY_QUOTE, &tp->t_rawq);
sys/kern/tty.c
628
(void)putc(0 | TTY_QUOTE, &tp->t_rawq);
sys/kern/tty.c
629
(void)putc(c | TTY_QUOTE, &tp->t_rawq);
sys/kern/tty.c
637
(void)putc(0377 | TTY_QUOTE, &tp->t_rawq);
sys/kern/tty.c
638
(void)putc(0377 | TTY_QUOTE, &tp->t_rawq);
sys/kern/tty.c
645
if (ISSET(iflag, IXOFF) || ISSET(tp->t_cflag, CHWFLOW))
sys/kern/tty.c
646
ttyblock(tp);
sys/kern/tty.c
647
if (!ISSET(tp->t_state, TS_TYPEN) && ISSET(iflag, ISTRIP))
sys/kern/tty.c
653
if (ISSET(tp->t_state, TS_LNCH)) {
sys/kern/tty.c
655
CLR(tp->t_state, TS_LNCH);
sys/kern/tty.c
673
(void)ttyoutput('^', tp);
sys/kern/tty.c
674
(void)ttyoutput('\b', tp);
sys/kern/tty.c
676
ttyecho(c, tp);
sys/kern/tty.c
678
SET(tp->t_state, TS_LNCH);
sys/kern/tty.c
683
CLR(tp->t_lflag, FLUSHO);
sys/kern/tty.c
685
ttyflush(tp, FWRITE);
sys/kern/tty.c
686
ttyecho(c, tp);
sys/kern/tty.c
687
if (tp->t_rawq.c_cc + tp->t_canq.c_cc)
sys/kern/tty.c
688
ttyretype(tp);
sys/kern/tty.c
689
SET(tp->t_lflag, FLUSHO);
sys/kern/tty.c
700
ttyflush(tp, FREAD | FWRITE);
sys/kern/tty.c
701
ttyecho(c, tp);
sys/kern/tty.c
702
ttysig(tp, TTYSIG_PG1, CCEQ(cc[VINTR], c) ?
sys/kern/tty.c
708
ttyflush(tp, FREAD);
sys/kern/tty.c
709
ttyecho(c, tp);
sys/kern/tty.c
710
ttysig(tp, TTYSIG_PG1, SIGTSTP);
sys/kern/tty.c
719
if (!ISSET(tp->t_state, TS_TTSTOP)) {
sys/kern/tty.c
720
SET(tp->t_state, TS_TTSTOP);
sys/kern/tty.c
721
cdev_stop(tp, 0);
sys/kern/tty.c
754
if (tp->t_rawq.c_cc)
sys/kern/tty.c
755
ttyrub(unputc(&tp->t_rawq), tp);
sys/kern/tty.c
763
tp->t_rawq.c_cc == tp->t_rocount &&
sys/kern/tty.c
765
while (tp->t_rawq.c_cc)
sys/kern/tty.c
766
ttyrub(unputc(&tp->t_rawq), tp);
sys/kern/tty.c
768
ttyecho(c, tp);
sys/kern/tty.c
771
ttyecho('\n', tp);
sys/kern/tty.c
772
FLUSHQ(&tp->t_rawq);
sys/kern/tty.c
773
tp->t_rocount = 0;
sys/kern/tty.c
775
CLR(tp->t_state, TS_LOCAL);
sys/kern/tty.c
792
while ((c = unputc(&tp->t_rawq)) == ' ' ||
sys/kern/tty.c
794
ttyrub(c, tp);
sys/kern/tty.c
801
ttyrub(c, tp);
sys/kern/tty.c
802
c = unputc(&tp->t_rawq);
sys/kern/tty.c
806
(void)putc(c, &tp->t_rawq);
sys/kern/tty.c
814
ttyrub(c, tp);
sys/kern/tty.c
815
c = unputc(&tp->t_rawq);
sys/kern/tty.c
820
(void)putc(c, &tp->t_rawq);
sys/kern/tty.c
827
ttyretype(tp);
sys/kern/tty.c
834
ttysig(tp, TTYSIG_PG1, SIGINFO);
sys/kern/tty.c
842
if (tp->t_rawq.c_cc + tp->t_canq.c_cc >= TTYHOG) {
sys/kern/tty.c
844
if (tp->t_outq.c_cc < tp->t_hiwat)
sys/kern/tty.c
845
(void)ttyoutput(CTRL('g'), tp);
sys/kern/tty.c
847
ttyflush(tp, FREAD | FWRITE);
sys/kern/tty.c
854
if (putc(c, &tp->t_rawq) >= 0) {
sys/kern/tty.c
856
ttwakeup(tp);
sys/kern/tty.c
857
ttyecho(c, tp);
sys/kern/tty.c
861
tp->t_rocount = 0;
sys/kern/tty.c
862
catq(&tp->t_rawq, &tp->t_canq);
sys/kern/tty.c
863
ttwakeup(tp);
sys/kern/tty.c
864
} else if (tp->t_rocount++ == 0)
sys/kern/tty.c
865
tp->t_rocol = tp->t_column;
sys/kern/tty.c
866
if (ISSET(tp->t_state, TS_ERASE)) {
sys/kern/tty.c
870
CLR(tp->t_state, TS_ERASE);
sys/kern/tty.c
871
(void)ttyoutput('/', tp);
sys/kern/tty.c
873
i = tp->t_column;
sys/kern/tty.c
874
ttyecho(c, tp);
sys/kern/tty.c
879
i = uimin(2, tp->t_column - i);
sys/kern/tty.c
881
(void)ttyoutput('\b', tp);
sys/kern/tty.c
890
if (ISSET(tp->t_state, TS_TTSTOP) &&
sys/kern/tty.c
895
CLR(tp->t_lflag, FLUSHO);
sys/kern/tty.c
896
CLR(tp->t_state, TS_TTSTOP);
sys/kern/tty.c
898
return (ttstart(tp));
sys/kern/tty.c
908
ttyinput(int c, struct tty *tp)
sys/kern/tty.c
915
if (!ISSET(tp->t_cflag, CREAD))
sys/kern/tty.c
919
error = ttyinput_wlock(c, tp);
sys/kern/tty.c
934
ttyoutput(int c, struct tty *tp)
sys/kern/tty.c
941
oflag = tp->t_oflag;
sys/kern/tty.c
944
tp->t_outcc++;
sys/kern/tty.c
945
if (!ISSET(tp->t_lflag, FLUSHO) && putc(c, &tp->t_outq))
sys/kern/tty.c
957
ISSET(oflag, OXTABS) && !ISSET(tp->t_lflag, EXTPROC)) {
sys/kern/tty.c
958
c = 8 - (tp->t_column & 7);
sys/kern/tty.c
959
if (ISSET(tp->t_lflag, FLUSHO)) {
sys/kern/tty.c
962
notout = b_to_q(" ", c, &tp->t_outq);
sys/kern/tty.c
965
tp->t_outcc += c;
sys/kern/tty.c
967
tp->t_column += c;
sys/kern/tty.c
977
if (c == '\n' && ISSET(tp->t_oflag, ONLCR)) {
sys/kern/tty.c
979
tp->t_outcc++;
sys/kern/tty.c
980
if (!ISSET(tp->t_lflag, FLUSHO) && putc('\r', &tp->t_outq))
sys/kern/tty.c
984
else if (c == '\r' && ISSET(tp->t_oflag, OCRNL))
sys/kern/tty.c
987
else if (c == '\r' && ISSET(tp->t_oflag, ONOCR) && tp->t_column == 0)
sys/kern/tty.c
991
tp->t_outcc++;
sys/kern/tty.c
992
if (!ISSET(tp->t_lflag, FLUSHO) && putc(c, &tp->t_outq))
sys/kern/tty.c
995
col = tp->t_column;
sys/kern/tty_conf.c
149
ttynullioctl(struct tty *tp, u_long cmd, void *data, int flags, struct lwp *l)
sys/kern/tty_conf.c
161
ttyerrpoll(struct tty *tp, int events, struct lwp *l)
sys/kern/tty_pty.c
1050
struct tty *tp = pti->pt_tty;
sys/kern/tty_pty.c
1052
return tp;
sys/kern/tty_pty.c
1060
struct tty *tp = pti->pt_tty;
sys/kern/tty_pty.c
1062
u_char *cc = tp->t_cc;
sys/kern/tty_pty.c
1081
ptcwakeup(tp, FREAD);
sys/kern/tty_pty.c
1083
SET(tp->t_lflag, EXTPROC);
sys/kern/tty_pty.c
1085
if (ISSET(tp->t_lflag, EXTPROC) &&
sys/kern/tty_pty.c
1088
ptcwakeup(tp, FREAD);
sys/kern/tty_pty.c
1090
CLR(tp->t_lflag, EXTPROC);
sys/kern/tty_pty.c
1119
*(int *)data = tp->t_pgrp ? tp->t_pgrp->pg_id : 0;
sys/kern/tty_pty.c
1146
ttyflush(tp, FREAD|FWRITE);
sys/kern/tty_pty.c
1157
ndflush(&tp->t_outq, tp->t_outq.c_cc);
sys/kern/tty_pty.c
1166
if (!ISSET(tp->t_lflag, NOFLSH))
sys/kern/tty_pty.c
1167
ttyflush(tp, FREAD|FWRITE);
sys/kern/tty_pty.c
1168
tp->t_state |= TS_SIGINFO;
sys/kern/tty_pty.c
1169
ttysig(tp, TTYSIG_PG1, sig);
sys/kern/tty_pty.c
1175
*(int *)data = tp->t_outq.c_cc;
sys/kern/tty_pty.c
1180
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
sys/kern/tty_pty.c
1182
error = ttioctl(tp, cmd, data, flag, l);
sys/kern/tty_pty.c
1188
ptcwakeup(tp, FREAD);
sys/kern/tty_pty.c
1196
if (ISSET(tp->t_lflag, EXTPROC) && (pti->pt_flags & PF_PKT)) {
sys/kern/tty_pty.c
1209
ptcwakeup(tp, FREAD);
sys/kern/tty_pty.c
1214
stop = ISSET(tp->t_iflag, IXON) && CCEQ(cc[VSTOP], CTRL('s'))
sys/kern/tty_pty.c
1221
ptcwakeup(tp, FREAD);
sys/kern/tty_pty.c
1228
ptcwakeup(tp, FREAD);
sys/kern/tty_pty.c
373
struct tty *tp;
sys/kern/tty_pty.c
382
tp = pti->pt_tty;
sys/kern/tty_pty.c
383
if (!ISSET(tp->t_state, TS_ISOPEN)) {
sys/kern/tty_pty.c
384
tp->t_dev = dev;
sys/kern/tty_pty.c
385
ttychars(tp); /* Set up default chars */
sys/kern/tty_pty.c
386
tp->t_iflag = TTYDEF_IFLAG;
sys/kern/tty_pty.c
387
tp->t_oflag = TTYDEF_OFLAG;
sys/kern/tty_pty.c
388
tp->t_lflag = TTYDEF_LFLAG;
sys/kern/tty_pty.c
389
tp->t_cflag = TTYDEF_CFLAG;
sys/kern/tty_pty.c
390
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
sys/kern/tty_pty.c
391
ttsetwater(tp); /* would be done in xxparam() */
sys/kern/tty_pty.c
393
tp) != 0) {
sys/kern/tty_pty.c
397
if (tp->t_oproc) /* Ctrlr still around. */
sys/kern/tty_pty.c
398
SET(tp->t_state, TS_CARR_ON);
sys/kern/tty_pty.c
400
while (!ISSET(tp->t_state, TS_CARR_ON)) {
sys/kern/tty_pty.c
401
tp->t_wopen++;
sys/kern/tty_pty.c
402
error = ttysleep(tp, &tp->t_rawcv, true, 0);
sys/kern/tty_pty.c
403
tp->t_wopen--;
sys/kern/tty_pty.c
411
error = (*tp->t_linesw->l_open)(dev, tp);
sys/kern/tty_pty.c
412
ptcwakeup(tp, FREAD|FWRITE);
sys/kern/tty_pty.c
420
struct tty *tp = pti->pt_tty;
sys/kern/tty_pty.c
423
error = (*tp->t_linesw->l_close)(tp, flag);
sys/kern/tty_pty.c
424
error |= ttyclose(tp);
sys/kern/tty_pty.c
425
ptcwakeup(tp, FREAD|FWRITE);
sys/kern/tty_pty.c
434
struct tty *tp = pti->pt_tty;
sys/kern/tty_pty.c
441
while (isbackground(p, tp)) { /* XXXSMP */
sys/kern/tty_pty.c
448
ttysig(tp, TTYSIG_PG1, SIGTTIN);
sys/kern/tty_pty.c
449
error = ttypause(tp, hz);
sys/kern/tty_pty.c
455
if (tp->t_canq.c_cc == 0) {
sys/kern/tty_pty.c
460
error = ttysleep(tp, &tp->t_cancv, true, 0);
sys/kern/tty_pty.c
466
while(error == 0 && tp->t_canq.c_cc > 1 && uio->uio_resid > 0) {
sys/kern/tty_pty.c
467
c = getc(&tp->t_canq);
sys/kern/tty_pty.c
473
if (tp->t_canq.c_cc == 1)
sys/kern/tty_pty.c
474
(void) getc(&tp->t_canq);
sys/kern/tty_pty.c
475
cc = tp->t_canq.c_cc;
sys/kern/tty_pty.c
479
} else if (tp->t_oproc)
sys/kern/tty_pty.c
480
error = (*tp->t_linesw->l_read)(tp, uio, flag);
sys/kern/tty_pty.c
481
ptcwakeup(tp, FWRITE);
sys/kern/tty_pty.c
494
struct tty *tp = pti->pt_tty;
sys/kern/tty_pty.c
496
if (tp->t_oproc == NULL)
sys/kern/tty_pty.c
498
return (*tp->t_linesw->l_write)(tp, uio, flag);
sys/kern/tty_pty.c
508
struct tty *tp = pti->pt_tty;
sys/kern/tty_pty.c
510
if (tp->t_oproc == NULL)
sys/kern/tty_pty.c
513
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/kern/tty_pty.c
521
ptsstart(struct tty *tp)
sys/kern/tty_pty.c
525
KASSERT(tp->t_dev != NODEV);
sys/kern/tty_pty.c
526
pti = pt_softc[minor(tp->t_dev)];
sys/kern/tty_pty.c
530
if (ISSET(tp->t_state, TS_TTSTOP))
sys/kern/tty_pty.c
538
cv_broadcast(&tp->t_outcvf);
sys/kern/tty_pty.c
545
ptsstop(struct tty *tp, int flush)
sys/kern/tty_pty.c
549
KASSERT(tp->t_dev != NODEV);
sys/kern/tty_pty.c
550
pti = pt_softc[minor(tp->t_dev)];
sys/kern/tty_pty.c
567
cv_broadcast(&tp->t_rawcvf);
sys/kern/tty_pty.c
571
cv_broadcast(&tp->t_outcvf);
sys/kern/tty_pty.c
576
ptcwakeup(struct tty *tp, int flag)
sys/kern/tty_pty.c
580
if (tp->t_dev == NODEV)
sys/kern/tty_pty.c
583
pti = pt_softc[minor(tp->t_dev)];
sys/kern/tty_pty.c
589
cv_broadcast(&tp->t_outcvf);
sys/kern/tty_pty.c
593
cv_broadcast(&tp->t_rawcvf);
sys/kern/tty_pty.c
603
struct tty *tp;
sys/kern/tty_pty.c
611
tp = pti->pt_tty;
sys/kern/tty_pty.c
614
if (tp->t_oproc) {
sys/kern/tty_pty.c
618
tp->t_dev = dev;
sys/kern/tty_pty.c
619
tp->t_oproc = ptsstart;
sys/kern/tty_pty.c
621
(void)(*tp->t_linesw->l_modem)(tp, 1);
sys/kern/tty_pty.c
622
CLR(tp->t_lflag, EXTPROC);
sys/kern/tty_pty.c
634
struct tty *tp = pti->pt_tty;
sys/kern/tty_pty.c
636
(void)(*tp->t_linesw->l_modem)(tp, 0);
sys/kern/tty_pty.c
638
CLR(tp->t_state, TS_CARR_ON);
sys/kern/tty_pty.c
639
tp->t_oproc = NULL; /* mark closed */
sys/kern/tty_pty.c
648
struct tty *tp = pti->pt_tty;
sys/kern/tty_pty.c
664
if (ISSET(tp->t_state, TS_ISOPEN)) {
sys/kern/tty_pty.c
679
sizeof(tp->t_termios));
sys/kern/tty_pty.c
680
uiomove((void *) &tp->t_termios,
sys/kern/tty_pty.c
693
if (tp->t_outq.c_cc && !ISSET(tp->t_state, TS_TTSTOP))
sys/kern/tty_pty.c
696
if (!ISSET(tp->t_state, TS_CARR_ON)) {
sys/kern/tty_pty.c
704
error = cv_wait_sig(&tp->t_outcvf, &tty_lock);
sys/kern/tty_pty.c
713
if (error == 0 && !ISSET(tp->t_state, TS_ISOPEN))
sys/kern/tty_pty.c
717
cc = q_to_b(&tp->t_outq, bf, uimin(uio->uio_resid, BUFSIZ));
sys/kern/tty_pty.c
723
if (error == 0 && !ISSET(tp->t_state, TS_ISOPEN))
sys/kern/tty_pty.c
726
ttypull(tp);
sys/kern/tty_pty.c
737
struct tty *tp = pti->pt_tty;
sys/kern/tty_pty.c
746
if (!ISSET(tp->t_state, TS_ISOPEN))
sys/kern/tty_pty.c
749
if (tp->t_canq.c_cc)
sys/kern/tty_pty.c
751
while (uio->uio_resid > 0 && tp->t_canq.c_cc < TTYHOG) {
sys/kern/tty_pty.c
754
cc = uimin(cc, TTYHOG - tp->t_canq.c_cc);
sys/kern/tty_pty.c
762
if (!ISSET(tp->t_state, TS_ISOPEN)) {
sys/kern/tty_pty.c
773
cc = b_to_q(cp, cc, &tp->t_outq);
sys/kern/tty_pty.c
778
(void) putc(0, &tp->t_canq);
sys/kern/tty_pty.c
779
ttwakeup(tp);
sys/kern/tty_pty.c
780
cv_broadcast(&tp->t_cancv);
sys/kern/tty_pty.c
794
if (!ISSET(tp->t_state, TS_ISOPEN)) {
sys/kern/tty_pty.c
802
int used = tp->t_rawq.c_cc + tp->t_canq.c_cc;
sys/kern/tty_pty.c
803
int canon = ISSET(tp->t_lflag, ICANON) ? 1 : 0;
sys/kern/tty_pty.c
809
(tp->t_canq.c_cc > 0 || !canon)) {
sys/kern/tty_pty.c
810
cv_broadcast(&tp->t_rawcv);
sys/kern/tty_pty.c
818
(*tp->t_linesw->l_rint)(*cp++, tp);
sys/kern/tty_pty.c
832
if (!ISSET(tp->t_state, TS_CARR_ON)) {
sys/kern/tty_pty.c
844
error = cv_wait_sig(&tp->t_rawcvf, &tty_lock);
sys/kern/tty_pty.c
862
struct tty *tp = pti->pt_tty;
sys/kern/tty_pty.c
868
if (ISSET(tp->t_state, TS_ISOPEN) &&
sys/kern/tty_pty.c
869
((tp->t_outq.c_cc > 0 && !ISSET(tp->t_state, TS_TTSTOP)) ||
sys/kern/tty_pty.c
875
if (ISSET(tp->t_state, TS_ISOPEN) &&
sys/kern/tty_pty.c
877
(tp->t_canq.c_cc == 0) :
sys/kern/tty_pty.c
878
((tp->t_rawq.c_cc + tp->t_canq.c_cc < TTYHOG-2) ||
sys/kern/tty_pty.c
879
(tp->t_canq.c_cc == 0 && ISSET(tp->t_lflag, ICANON)))))
sys/kern/tty_pty.c
883
if (!ISSET(tp->t_state, TS_CARR_ON))
sys/kern/tty_pty.c
915
struct tty *tp;
sys/kern/tty_pty.c
919
tp = pti->pt_tty;
sys/kern/tty_pty.c
925
canread = (ISSET(tp->t_state, TS_ISOPEN) &&
sys/kern/tty_pty.c
926
((tp->t_outq.c_cc > 0 && !ISSET(tp->t_state, TS_TTSTOP)) ||
sys/kern/tty_pty.c
936
kn->kn_data = tp->t_outq.c_cc;
sys/kern/tty_pty.c
941
if (!ISSET(tp->t_state, TS_CARR_ON)) {
sys/kern/tty_pty.c
969
struct tty *tp;
sys/kern/tty_pty.c
974
tp = pti->pt_tty;
sys/kern/tty_pty.c
980
canwrite = (ISSET(tp->t_state, TS_ISOPEN) &&
sys/kern/tty_pty.c
982
(tp->t_canq.c_cc == 0) :
sys/kern/tty_pty.c
983
((tp->t_rawq.c_cc + tp->t_canq.c_cc < TTYHOG-2) ||
sys/kern/tty_pty.c
984
(tp->t_canq.c_cc == 0 && ISSET(tp->t_lflag, ICANON)))));
sys/kern/tty_pty.c
988
nwrite = tp->t_canq.c_cn;
sys/kern/tty_pty.c
991
nwrite = tp->t_canq.c_cn
sys/kern/tty_pty.c
992
- (tp->t_rawq.c_cc + tp->t_canq.c_cc);
sys/miscfs/procfs/procfs_status.c
147
if ((p->p_lflag & PL_CONTROLT) && (tp = sess->s_ttyp))
sys/miscfs/procfs/procfs_status.c
149
(unsigned long long)major(tp->t_dev),
sys/miscfs/procfs/procfs_status.c
150
(unsigned long long)minor(tp->t_dev));
sys/miscfs/procfs/procfs_status.c
95
struct tty *tp;
sys/miscfs/procfs/procfs_subr.c
418
struct proc *tp;
sys/miscfs/procfs/procfs_subr.c
424
tp = &proc0;
sys/miscfs/procfs/procfs_subr.c
425
else if ((tp = procfs_proc_find(mp, pid)) == NULL)
sys/miscfs/procfs/procfs_subr.c
427
if (tp != NULL && !rw_tryenter(&tp->p_reflock, RW_READER))
sys/miscfs/procfs/procfs_subr.c
432
*bunghole = tp;
sys/net/if_sl.c
326
slopen(dev_t dev, struct tty *tp)
sys/net/if_sl.c
337
if (tp->t_linesw == &slip_disc)
sys/net/if_sl.c
350
tp->t_sc = (void *)sc;
sys/net/if_sl.c
351
sc->sc_ttyp = tp;
sys/net/if_sl.c
352
sc->sc_if.if_baudrate = tp->t_ospeed;
sys/net/if_sl.c
353
ttylock(tp);
sys/net/if_sl.c
354
tp->t_state |= TS_ISOPEN | TS_XCLUDE;
sys/net/if_sl.c
355
ttyflush(tp, FREAD | FWRITE);
sys/net/if_sl.c
364
if (tp->t_outq.c_cn < 2 * SLMAX + 2) {
sys/net/if_sl.c
365
sc->sc_oldbufsize = tp->t_outq.c_cn;
sys/net/if_sl.c
366
sc->sc_oldbufquot = tp->t_outq.c_cq != 0;
sys/net/if_sl.c
368
clfree(&tp->t_outq);
sys/net/if_sl.c
369
ttyunlock(tp);
sys/net/if_sl.c
370
error = clalloc(&tp->t_outq, 2 * SLMAX + 2, 0);
sys/net/if_sl.c
382
ttyunlock(tp);
sys/net/if_sl.c
394
slclose(struct tty *tp, int flag)
sys/net/if_sl.c
399
ttywflush(tp);
sys/net/if_sl.c
400
sc = tp->t_sc;
sys/net/if_sl.c
410
ttyldisc_release(tp->t_linesw);
sys/net/if_sl.c
411
tp->t_linesw = ttyldisc_default();
sys/net/if_sl.c
412
tp->t_state = 0;
sys/net/if_sl.c
415
tp->t_sc = NULL;
sys/net/if_sl.c
427
clfree(&tp->t_outq);
sys/net/if_sl.c
428
clalloc(&tp->t_outq, sc->sc_oldbufsize,
sys/net/if_sl.c
443
sltioctl(struct tty *tp, u_long cmd, void *data, int flag,
sys/net/if_sl.c
446
struct sl_softc *sc = (struct sl_softc *)tp->t_sc;
sys/net/if_sl.c
552
slstart(struct tty *tp)
sys/net/if_sl.c
554
struct sl_softc *sc = tp->t_sc;
sys/net/if_sl.c
561
if (tp->t_outq.c_cc != 0) {
sys/net/if_sl.c
562
(*tp->t_oproc)(tp);
sys/net/if_sl.c
563
if (tp->t_outq.c_cc > SLIP_HIWAT)
sys/net/if_sl.c
613
slinput(int c, struct tty *tp)
sys/net/if_sl.c
620
sc = (struct sl_softc *)tp->t_sc;
sys/net/if_sl.c
623
if ((c & TTY_ERRORMASK) || ((tp->t_state & TS_CARR_ON) == 0 &&
sys/net/if_sl.c
624
(tp->t_cflag & CLOCAL) == 0)) {
sys/net/if_sl.c
649
slclose(tp, 0);
sys/net/if_sl.c
715
struct tty *tp = sc->sc_ttyp;
sys/net/if_sl.c
721
KASSERT(tp != NULL);
sys/net/if_sl.c
738
if (tp->t_outq.c_cn - tp->t_outq.c_cc <
sys/net/if_sl.c
798
if (tp->t_outq.c_cc == 0) {
sys/net/if_sl.c
800
(void)putc(FRAME_END, &tp->t_outq);
sys/net/if_sl.c
828
if (b_to_q(bp, cp - bp, &tp->t_outq))
sys/net/if_sl.c
840
if (putc(FRAME_ESCAPE, &tp->t_outq))
sys/net/if_sl.c
845
&tp->t_outq)) {
sys/net/if_sl.c
846
(void)unputc(&tp->t_outq);
sys/net/if_sl.c
856
if (putc(FRAME_END, &tp->t_outq)) {
sys/net/if_sl.c
865
(void)unputc(&tp->t_outq);
sys/net/if_sl.c
866
(void)putc(FRAME_END, &tp->t_outq);
sys/net/if_sl.c
876
(*tp->t_oproc)(tp);
sys/net/if_tun.c
1007
struct tun_softc *tp = ifp->if_softc;
sys/net/if_tun.c
1012
mutex_enter(&tp->tun_lock);
sys/net/if_tun.c
1014
cv_broadcast(&tp->tun_cv);
sys/net/if_tun.c
1015
if (tp->tun_flags & TUN_ASYNC && tp->tun_pgid)
sys/net/if_tun.c
1016
softint_schedule(tp->tun_osih);
sys/net/if_tun.c
1018
selnotify(&tp->tun_rsel, 0, NOTE_SUBMIT);
sys/net/if_tun.c
1020
mutex_exit(&tp->tun_lock);
sys/net/if_tun.c
1031
struct tun_softc *tp;
sys/net/if_tun.c
1035
tp = tun_find_unit(dev);
sys/net/if_tun.c
1036
if (tp == NULL) {
sys/net/if_tun.c
1040
ifp = &tp->tun_if;
sys/net/if_tun.c
1051
selrecord(l, &tp->tun_rsel);
sys/net/if_tun.c
1058
mutex_exit(&tp->tun_lock);
sys/net/if_tun.c
1066
struct tun_softc *tp = kn->kn_hook;
sys/net/if_tun.c
1068
mutex_enter(&tp->tun_lock);
sys/net/if_tun.c
1069
selremove_knote(&tp->tun_rsel, kn);
sys/net/if_tun.c
1070
mutex_exit(&tp->tun_lock);
sys/net/if_tun.c
1076
struct tun_softc *tp = kn->kn_hook;
sys/net/if_tun.c
1077
struct ifnet *ifp = &tp->tun_if;
sys/net/if_tun.c
1082
KASSERT(mutex_owned(&tp->tun_lock));
sys/net/if_tun.c
1084
mutex_enter(&tp->tun_lock);
sys/net/if_tun.c
1092
KASSERT(mutex_owned(&tp->tun_lock));
sys/net/if_tun.c
1094
mutex_exit(&tp->tun_lock);
sys/net/if_tun.c
1109
struct tun_softc *tp;
sys/net/if_tun.c
1112
tp = tun_find_unit(dev);
sys/net/if_tun.c
1113
if (tp == NULL)
sys/net/if_tun.c
1119
kn->kn_hook = tp;
sys/net/if_tun.c
1120
selrecord_knote(&tp->tun_rsel, kn);
sys/net/if_tun.c
1133
mutex_exit(&tp->tun_lock);
sys/net/if_tun.c
171
struct tun_softc *tp;
sys/net/if_tun.c
175
LIST_FOREACH(tp, &tun_softc_list, tun_list)
sys/net/if_tun.c
176
if (unit == tp->tun_unit)
sys/net/if_tun.c
178
if (tp)
sys/net/if_tun.c
179
mutex_enter(&tp->tun_lock);
sys/net/if_tun.c
182
return tp;
sys/net/if_tun.c
192
struct tun_softc *tp;
sys/net/if_tun.c
195
LIST_FOREACH(tp, &tunz_softc_list, tun_list)
sys/net/if_tun.c
196
if (unit == tp->tun_unit)
sys/net/if_tun.c
198
if (tp)
sys/net/if_tun.c
199
LIST_REMOVE(tp, tun_list);
sys/net/if_tun.c
201
KASSERTMSG(!tp || (tp->tun_flags & (TUN_INITED|TUN_OPEN)) == TUN_OPEN,
sys/net/if_tun.c
202
"tun%d: inconsistent flags: %x", unit, tp->tun_flags);
sys/net/if_tun.c
204
return tp;
sys/net/if_tun.c
208
tun_init(struct tun_softc *tp, int unit)
sys/net/if_tun.c
211
tp->tun_unit = unit;
sys/net/if_tun.c
212
mutex_init(&tp->tun_lock, MUTEX_DEFAULT, IPL_SOFTNET);
sys/net/if_tun.c
213
cv_init(&tp->tun_cv, "tunread");
sys/net/if_tun.c
214
selinit(&tp->tun_rsel);
sys/net/if_tun.c
215
selinit(&tp->tun_wsel);
sys/net/if_tun.c
217
tp->tun_osih = softint_establish(SOFTINT_CLOCK, tun_o_softintr, tp);
sys/net/if_tun.c
218
tp->tun_isih = softint_establish(SOFTINT_CLOCK, tun_i_softintr, tp);
sys/net/if_tun.c
222
tun_fini(struct tun_softc *tp)
sys/net/if_tun.c
225
softint_disestablish(tp->tun_isih);
sys/net/if_tun.c
226
softint_disestablish(tp->tun_osih);
sys/net/if_tun.c
228
seldestroy(&tp->tun_wsel);
sys/net/if_tun.c
229
seldestroy(&tp->tun_rsel);
sys/net/if_tun.c
230
mutex_destroy(&tp->tun_lock);
sys/net/if_tun.c
231
cv_destroy(&tp->tun_cv);
sys/net/if_tun.c
237
struct tun_softc *tp;
sys/net/if_tun.c
239
tp = kmem_zalloc(sizeof(*tp), KM_SLEEP);
sys/net/if_tun.c
240
tun_init(tp, unit);
sys/net/if_tun.c
242
return tp;
sys/net/if_tun.c
246
tun_recycle(struct tun_softc *tp)
sys/net/if_tun.c
249
memset(&tp->tun_if, 0, sizeof(struct ifnet)); /* XXX ??? */
sys/net/if_tun.c
253
tun_free(struct tun_softc *tp)
sys/net/if_tun.c
256
tun_fini(tp);
sys/net/if_tun.c
257
kmem_free(tp, sizeof(*tp));
sys/net/if_tun.c
263
struct tun_softc *tp;
sys/net/if_tun.c
265
if ((tp = tun_find_zunit(unit)) == NULL) {
sys/net/if_tun.c
266
tp = tun_alloc(unit);
sys/net/if_tun.c
268
tun_recycle(tp);
sys/net/if_tun.c
271
if_initname(&tp->tun_if, ifc->ifc_name, unit);
sys/net/if_tun.c
272
tunattach0(tp);
sys/net/if_tun.c
273
tp->tun_flags |= TUN_INITED;
sys/net/if_tun.c
276
LIST_INSERT_HEAD(&tun_softc_list, tp, tun_list);
sys/net/if_tun.c
283
tunattach0(struct tun_softc *tp)
sys/net/if_tun.c
287
ifp = &tp->tun_if;
sys/net/if_tun.c
288
ifp->if_softc = tp;
sys/net/if_tun.c
309
struct tun_softc *tp = (void *)ifp;
sys/net/if_tun.c
316
mutex_enter(&tp->tun_lock);
sys/net/if_tun.c
317
LIST_REMOVE(tp, tun_list);
sys/net/if_tun.c
318
if (tp->tun_flags & TUN_OPEN) {
sys/net/if_tun.c
320
tp->tun_flags &= ~TUN_INITED;
sys/net/if_tun.c
321
LIST_INSERT_HEAD(&tunz_softc_list, tp, tun_list);
sys/net/if_tun.c
326
cv_broadcast(&tp->tun_cv);
sys/net/if_tun.c
327
if (tp->tun_flags & TUN_ASYNC && tp->tun_pgid)
sys/net/if_tun.c
328
fownsignal(tp->tun_pgid, SIGIO, POLL_HUP, 0, NULL);
sys/net/if_tun.c
329
selnotify(&tp->tun_rsel, 0, NOTE_SUBMIT);
sys/net/if_tun.c
330
mutex_exit(&tp->tun_lock);
sys/net/if_tun.c
336
tun_free(tp);
sys/net/if_tun.c
350
struct tun_softc *tp;
sys/net/if_tun.c
358
tp = tun_find_unit(dev);
sys/net/if_tun.c
360
if (tp == NULL) {
sys/net/if_tun.c
362
tp = tun_find_unit(dev);
sys/net/if_tun.c
363
if (tp == NULL) {
sys/net/if_tun.c
368
if (tp->tun_flags & TUN_OPEN) {
sys/net/if_tun.c
369
mutex_exit(&tp->tun_lock);
sys/net/if_tun.c
373
ifp = &tp->tun_if;
sys/net/if_tun.c
374
tp->tun_flags |= TUN_OPEN;
sys/net/if_tun.c
378
mutex_exit(&tp->tun_lock);
sys/net/if_tun.c
391
struct tun_softc *tp;
sys/net/if_tun.c
394
if ((tp = tun_find_zunit(minor(dev))) != NULL) {
sys/net/if_tun.c
396
tun_free(tp);
sys/net/if_tun.c
400
if ((tp = tun_find_unit(dev)) == NULL)
sys/net/if_tun.c
403
ifp = &tp->tun_if;
sys/net/if_tun.c
405
tp->tun_flags &= ~TUN_OPEN;
sys/net/if_tun.c
407
tp->tun_pgid = 0;
sys/net/if_tun.c
408
selnotify(&tp->tun_rsel, 0, NOTE_SUBMIT);
sys/net/if_tun.c
411
mutex_exit(&tp->tun_lock);
sys/net/if_tun.c
428
tp->tun_flags & TUN_DSTADDR
sys/net/if_tun.c
444
tun_enable(struct tun_softc *tp, const struct ifaddr *ifa)
sys/net/if_tun.c
446
struct ifnet *ifp = &tp->tun_if;
sys/net/if_tun.c
450
mutex_enter(&tp->tun_lock);
sys/net/if_tun.c
451
tp->tun_flags &= ~(TUN_IASET|TUN_DSTADDR);
sys/net/if_tun.c
460
tp->tun_flags |= TUN_IASET;
sys/net/if_tun.c
465
tp->tun_flags |= TUN_DSTADDR;
sys/net/if_tun.c
476
tp->tun_flags |= TUN_IASET;
sys/net/if_tun.c
481
tp->tun_flags |= TUN_DSTADDR;
sys/net/if_tun.c
483
tp->tun_flags &= ~TUN_DSTADDR;
sys/net/if_tun.c
491
mutex_exit(&tp->tun_lock);
sys/net/if_tun.c
500
struct tun_softc *tp = (struct tun_softc *)(ifp->if_softc);
sys/net/if_tun.c
507
tun_enable(tp, ifa);
sys/net/if_tun.c
557
struct tun_softc *tp = ifp->if_softc;
sys/net/if_tun.c
564
mutex_enter(&tp->tun_lock);
sys/net/if_tun.c
567
if ((tp->tun_flags & TUN_READY) != TUN_READY) {
sys/net/if_tun.c
569
tp->tun_flags);
sys/net/if_tun.c
571
mutex_exit(&tp->tun_lock);
sys/net/if_tun.c
575
mutex_exit(&tp->tun_lock);
sys/net/if_tun.c
598
if (tp->tun_flags & TUN_PREPADDR) {
sys/net/if_tun.c
607
} else if (tp->tun_flags & TUN_IFHEAD) {
sys/net/if_tun.c
644
mutex_enter(&tp->tun_lock);
sys/net/if_tun.c
645
cv_broadcast(&tp->tun_cv);
sys/net/if_tun.c
646
if (tp->tun_flags & TUN_ASYNC && tp->tun_pgid)
sys/net/if_tun.c
647
softint_schedule(tp->tun_isih);
sys/net/if_tun.c
648
selnotify(&tp->tun_rsel, 0, NOTE_SUBMIT);
sys/net/if_tun.c
649
mutex_exit(&tp->tun_lock);
sys/net/if_tun.c
660
struct tun_softc *tp = cookie;
sys/net/if_tun.c
662
if (tp->tun_flags & TUN_ASYNC && tp->tun_pgid)
sys/net/if_tun.c
663
fownsignal(tp->tun_pgid, SIGIO, POLL_IN, POLLIN|POLLRDNORM,
sys/net/if_tun.c
670
struct tun_softc *tp = cookie;
sys/net/if_tun.c
672
if (tp->tun_flags & TUN_ASYNC && tp->tun_pgid)
sys/net/if_tun.c
673
fownsignal(tp->tun_pgid, SIGIO, POLL_OUT, POLLOUT|POLLWRNORM,
sys/net/if_tun.c
683
struct tun_softc *tp;
sys/net/if_tun.c
686
tp = tun_find_unit(dev);
sys/net/if_tun.c
689
if (tp == NULL) {
sys/net/if_tun.c
706
if (tp->tun_if.if_flags & IFF_UP) {
sys/net/if_tun.c
710
tp->tun_if.if_flags &=
sys/net/if_tun.c
712
tp->tun_if.if_flags |= *(int *)data;
sys/net/if_tun.c
722
tp->tun_flags |= TUN_PREPADDR;
sys/net/if_tun.c
723
tp->tun_flags &= ~TUN_IFHEAD;
sys/net/if_tun.c
725
tp->tun_flags &= ~TUN_PREPADDR;
sys/net/if_tun.c
730
tp->tun_flags |= TUN_IFHEAD;
sys/net/if_tun.c
731
tp->tun_flags &= ~TUN_PREPADDR;
sys/net/if_tun.c
733
tp->tun_flags &= ~TUN_IFHEAD;
sys/net/if_tun.c
737
*(int *)data = (tp->tun_flags & TUN_IFHEAD);
sys/net/if_tun.c
742
tp->tun_flags |= TUN_NBIO;
sys/net/if_tun.c
744
tp->tun_flags &= ~TUN_NBIO;
sys/net/if_tun.c
749
tp->tun_flags |= TUN_ASYNC;
sys/net/if_tun.c
751
tp->tun_flags &= ~TUN_ASYNC;
sys/net/if_tun.c
755
if (tp->tun_if.if_snd.ifq_head)
sys/net/if_tun.c
756
*(int *)data = tp->tun_if.if_snd.ifq_head->m_pkthdr.len;
sys/net/if_tun.c
763
error = fsetown(&tp->tun_pgid, cmd, data);
sys/net/if_tun.c
768
error = fgetown(tp->tun_pgid, cmd, data);
sys/net/if_tun.c
776
mutex_exit(&tp->tun_lock);
sys/net/if_tun.c
788
struct tun_softc *tp;
sys/net/if_tun.c
793
tp = tun_find_unit(dev);
sys/net/if_tun.c
796
if (tp == NULL) {
sys/net/if_tun.c
800
ifp = &tp->tun_if;
sys/net/if_tun.c
803
if ((tp->tun_flags & TUN_READY) != TUN_READY) {
sys/net/if_tun.c
804
TUNDEBUG ("%s: not ready 0%o\n", ifp->if_xname, tp->tun_flags);
sys/net/if_tun.c
812
if (tp->tun_flags & TUN_NBIO) {
sys/net/if_tun.c
816
if (cv_wait_sig(&tp->tun_cv, &tp->tun_lock)) {
sys/net/if_tun.c
823
mutex_exit(&tp->tun_lock);
sys/net/if_tun.c
843
mutex_exit(&tp->tun_lock);
sys/net/if_tun.c
854
struct tun_softc *tp;
sys/net/if_tun.c
862
tp = tun_find_unit(dev);
sys/net/if_tun.c
863
if (tp == NULL) {
sys/net/if_tun.c
869
mutex_exit(&tp->tun_lock);
sys/net/if_tun.c
871
ifp = &tp->tun_if;
sys/net/if_tun.c
875
if (tp->tun_flags & TUN_PREPADDR) {
sys/net/if_tun.c
894
} else if (tp->tun_flags & TUN_IFHEAD) {
sys/net/if_tun.c
974
mutex_enter(&tp->tun_lock);
sys/net/if_tun.c
975
if ((tp->tun_flags & TUN_INITED) == 0) {
sys/net/if_tun.c
984
mutex_exit(&tp->tun_lock);
sys/net/if_tun.c
992
mutex_exit(&tp->tun_lock);
sys/net/ppp_tty.c
134
static int pppopen(dev_t dev, struct tty *tp);
sys/net/ppp_tty.c
135
static int pppclose(struct tty *tp, int flag);
sys/net/ppp_tty.c
136
static int pppread(struct tty *tp, struct uio *uio, int flag);
sys/net/ppp_tty.c
137
static int pppwrite(struct tty *tp, struct uio *uio, int flag);
sys/net/ppp_tty.c
138
static int ppptioctl(struct tty *tp, u_long cmd, void *data, int flag,
sys/net/ppp_tty.c
140
static int pppinput(int c, struct tty *tp);
sys/net/ppp_tty.c
141
static int pppstart(struct tty *tp);
sys/net/ppp_tty.c
187
pppopen(dev_t dev, struct tty *tp)
sys/net/ppp_tty.c
200
if (tp->t_linesw == &ppp_disc) {
sys/net/ppp_tty.c
201
sc = (struct ppp_softc *) tp->t_sc;
sys/net/ppp_tty.c
202
if (sc != NULL && sc->sc_devp == (void *) tp) {
sys/net/ppp_tty.c
225
sc->sc_devp = (void *) tp;
sys/net/ppp_tty.c
232
sc->sc_if.if_baudrate = tp->t_ospeed;
sys/net/ppp_tty.c
234
tp->t_sc = (void *) sc;
sys/net/ppp_tty.c
235
ttylock(tp);
sys/net/ppp_tty.c
236
ttyflush(tp, FREAD | FWRITE);
sys/net/ppp_tty.c
237
ttyunlock(tp);
sys/net/ppp_tty.c
250
pppclose(struct tty *tp, int flag)
sys/net/ppp_tty.c
256
ttylock(tp);
sys/net/ppp_tty.c
257
ttyflush(tp, FREAD|FWRITE);
sys/net/ppp_tty.c
258
ttyunlock(tp); /* XXX */
sys/net/ppp_tty.c
259
ttyldisc_release(tp->t_linesw);
sys/net/ppp_tty.c
260
tp->t_linesw = ttyldisc_default();
sys/net/ppp_tty.c
261
sc = (struct ppp_softc *) tp->t_sc;
sys/net/ppp_tty.c
263
tp->t_sc = NULL;
sys/net/ppp_tty.c
264
if (tp == (struct tty *) sc->sc_devp) {
sys/net/ppp_tty.c
300
pppread(struct tty *tp, struct uio *uio, int flag)
sys/net/ppp_tty.c
302
struct ppp_softc *sc = (struct ppp_softc *)tp->t_sc;
sys/net/ppp_tty.c
312
ttylock(tp);
sys/net/ppp_tty.c
314
if (tp != (struct tty *) sc->sc_devp ||
sys/net/ppp_tty.c
315
tp->t_linesw != &ppp_disc) {
sys/net/ppp_tty.c
316
ttyunlock(tp);
sys/net/ppp_tty.c
321
if ((tp->t_state & TS_CARR_ON) == 0 && (tp->t_cflag & CLOCAL) == 0
sys/net/ppp_tty.c
322
&& (tp->t_state & TS_ISOPEN)) {
sys/net/ppp_tty.c
323
ttyunlock(tp);
sys/net/ppp_tty.c
326
if (tp->t_state & TS_ASYNC || flag & IO_NDELAY) {
sys/net/ppp_tty.c
327
ttyunlock(tp);
sys/net/ppp_tty.c
330
error = ttysleep(tp, &tp->t_rawcv, true, 0);
sys/net/ppp_tty.c
332
ttyunlock(tp);
sys/net/ppp_tty.c
338
getc(&tp->t_canq);
sys/net/ppp_tty.c
342
ttyunlock(tp);
sys/net/ppp_tty.c
355
pppwrite(struct tty *tp, struct uio *uio, int flag)
sys/net/ppp_tty.c
357
struct ppp_softc *sc = (struct ppp_softc *)tp->t_sc;
sys/net/ppp_tty.c
362
if ((tp->t_state & TS_CARR_ON) == 0 && (tp->t_cflag & CLOCAL) == 0)
sys/net/ppp_tty.c
364
if (tp->t_linesw != &ppp_disc)
sys/net/ppp_tty.c
366
if (sc == NULL || tp != (struct tty *) sc->sc_devp)
sys/net/ppp_tty.c
417
ppptioctl(struct tty *tp, u_long cmd, void *data, int flag, struct lwp *l)
sys/net/ppp_tty.c
419
struct ppp_softc *sc = (struct ppp_softc *) tp->t_sc;
sys/net/ppp_tty.c
427
if (tp != (struct tty *) sc->sc_devp) {
sys/net/ppp_tty.c
436
KAUTH_DEVICE_TTY_PRIVSET, tp)) != 0)
sys/net/ppp_tty.c
447
KAUTH_DEVICE_TTY_PRIVSET, tp)) != 0)
sys/net/ppp_tty.c
458
KAUTH_DEVICE_TTY_PRIVSET, tp)) != 0)
sys/net/ppp_tty.c
539
struct tty *tp = (struct tty *) sc->sc_devp;
sys/net/ppp_tty.c
546
ttylock(tp);
sys/net/ppp_tty.c
549
while (CCOUNT(&tp->t_outq) < PPP_HIWAT) {
sys/net/ppp_tty.c
570
if (CCOUNT(&tp->t_outq) == 0) {
sys/net/ppp_tty.c
572
(void) putc(PPP_FLAG, &tp->t_outq);
sys/net/ppp_tty.c
594
ndone = n - b_to_q(start, n, &tp->t_outq);
sys/net/ppp_tty.c
608
if (putc(PPP_ESCAPE, &tp->t_outq))
sys/net/ppp_tty.c
610
if (putc(*start ^ PPP_TRANS, &tp->t_outq)) {
sys/net/ppp_tty.c
611
(void) unputc(&tp->t_outq);
sys/net/ppp_tty.c
655
if (putc(*q, &tp->t_outq)) {
sys/net/ppp_tty.c
658
unputc(&tp->t_outq);
sys/net/ppp_tty.c
692
pppstart(tp);
sys/net/ppp_tty.c
704
ttyunlock(tp);
sys/net/ppp_tty.c
714
struct tty *tp;
sys/net/ppp_tty.c
717
tp = (struct tty *) sc->sc_devp;
sys/net/ppp_tty.c
718
ttylock(tp);
sys/net/ppp_tty.c
719
putc(0, &tp->t_canq);
sys/net/ppp_tty.c
720
ttwakeup(tp);
sys/net/ppp_tty.c
721
ttyunlock(tp);
sys/net/ppp_tty.c
731
pppstart(struct tty *tp)
sys/net/ppp_tty.c
733
struct ppp_softc *sc = (struct ppp_softc *) tp->t_sc;
sys/net/ppp_tty.c
739
if (tp->t_oproc != NULL)
sys/net/ppp_tty.c
740
(*tp->t_oproc)(tp);
sys/net/ppp_tty.c
747
if ((CCOUNT(&tp->t_outq) >= PPP_LOWAT)
sys/net/ppp_tty.c
759
if (!((tp->t_state & TS_CARR_ON) == 0 && (tp->t_cflag & CLOCAL) == 0)
sys/net/ppp_tty.c
760
&& sc != NULL && tp == (struct tty *) sc->sc_devp) {
sys/net/ppp_tty.c
774
struct tty *tp = (struct tty *) sc->sc_devp;
sys/net/ppp_tty.c
776
ttylock(tp);
sys/net/ppp_tty.c
778
pppstart(tp);
sys/net/ppp_tty.c
779
ttyunlock(tp);
sys/net/ppp_tty.c
814
pppinput(int c, struct tty *tp)
sys/net/ppp_tty.c
821
sc = (struct ppp_softc *) tp->t_sc;
sys/net/ppp_tty.c
822
if (sc == NULL || tp != (struct tty *) sc->sc_devp)
sys/net/ppp_tty.c
840
result = tty_try_xonxoff(tp, c);
sys/net/rtbl.c
123
rt_inithead(rtbl_t **tp, int off)
sys/net/rtbl.c
126
if (*tp != NULL)
sys/net/rtbl.c
129
*tp = t;
sys/netcan/can.h
89
struct { canid_t rx_id, tx_id; } tp;
sys/netinet/ip_mroute.c
1171
struct timeval tp;
sys/netinet/ip_mroute.c
1174
microtime(&tp);
sys/netinet/ip_mroute.c
1176
if (timercmp(t, &tp, <)) {
sys/netinet/ip_mroute.c
1177
TV_DELTA(tp, *t, delta);
sys/netinet/ip_mroute.c
1366
struct timeval tp;
sys/netinet/ip_mroute.c
1367
microtime(&tp);
sys/netinet/ip_mroute.c
1511
rte->t = tp;
sys/netinet/ip_mroute.c
2070
struct timeval tp;
sys/netinet/ip_mroute.c
2074
microtime(&tp);
sys/netinet/ip_mroute.c
2076
TV_DELTA(tp, vifp->tbf_last_pkt_t, tm);
sys/netinet/ip_mroute.c
2088
vifp->tbf_last_pkt_t = tp;
sys/netinet/tcp_congctl.c
201
static void tcp_reno_congestion_exp(struct tcpcb *tp);
sys/netinet/tcp_congctl.c
209
static void tcp_cubic_slow_retransmit(struct tcpcb *tp);
sys/netinet/tcp_congctl.c
318
tcp_congctl_select(struct tcpcb *tp, const char *name)
sys/netinet/tcp_congctl.c
325
old_found = (tp == NULL || tp->t_congctl == NULL);
sys/netinet/tcp_congctl.c
331
if (!old_found && tccp->congctl_ctl == tp->t_congctl) {
sys/netinet/tcp_congctl.c
342
if (tp) {
sys/netinet/tcp_congctl.c
346
tp->t_congctl = new_tccp->congctl_ctl;
sys/netinet/tcp_congctl.c
363
tcp_congctl_release(struct tcpcb *tp)
sys/netinet/tcp_congctl.c
367
KASSERT(tp->t_congctl);
sys/netinet/tcp_congctl.c
370
if (tccp->congctl_ctl == tp->t_congctl) {
sys/netinet/tcp_congctl.c
428
tcp_common_congestion_exp(struct tcpcb *tp, int betaa, int betab)
sys/netinet/tcp_congctl.c
435
win = ulmin(tp->snd_wnd, tp->snd_cwnd) * betaa / betab / tp->t_segsz;
sys/netinet/tcp_congctl.c
439
tp->snd_ssthresh = win * tp->t_segsz;
sys/netinet/tcp_congctl.c
440
tp->snd_recover = tp->snd_max;
sys/netinet/tcp_congctl.c
441
tp->snd_cwnd = tp->snd_ssthresh;
sys/netinet/tcp_congctl.c
447
if (TCP_ECN_ALLOWED(tp))
sys/netinet/tcp_congctl.c
448
tp->t_flags |= TF_ECN_SND_CWR;
sys/netinet/tcp_congctl.c
458
tcp_reno_congestion_exp(struct tcpcb *tp)
sys/netinet/tcp_congctl.c
461
tcp_common_congestion_exp(tp, RENO_BETAA, RENO_BETAB);
sys/netinet/tcp_congctl.c
465
tcp_reno_do_fast_retransmit(struct tcpcb *tp, const struct tcphdr *th)
sys/netinet/tcp_congctl.c
481
tcp_seq onxt = tp->snd_nxt;
sys/netinet/tcp_congctl.c
483
tp->t_partialacks = 0;
sys/netinet/tcp_congctl.c
484
TCP_TIMER_DISARM(tp, TCPT_REXMT);
sys/netinet/tcp_congctl.c
485
tp->t_rtttime = 0;
sys/netinet/tcp_congctl.c
486
if (TCP_SACK_ENABLED(tp)) {
sys/netinet/tcp_congctl.c
487
tp->t_dupacks = tcprexmtthresh;
sys/netinet/tcp_congctl.c
488
tp->sack_newdata = tp->snd_nxt;
sys/netinet/tcp_congctl.c
489
tp->snd_cwnd = tp->t_segsz;
sys/netinet/tcp_congctl.c
490
(void) tcp_output(tp);
sys/netinet/tcp_congctl.c
493
tp->snd_nxt = th->th_ack;
sys/netinet/tcp_congctl.c
494
tp->snd_cwnd = tp->t_segsz;
sys/netinet/tcp_congctl.c
495
(void) tcp_output(tp);
sys/netinet/tcp_congctl.c
496
tp->snd_cwnd = tp->snd_ssthresh + tp->t_segsz * tp->t_dupacks;
sys/netinet/tcp_congctl.c
497
if (SEQ_GT(onxt, tp->snd_nxt))
sys/netinet/tcp_congctl.c
498
tp->snd_nxt = onxt;
sys/netinet/tcp_congctl.c
504
tcp_reno_fast_retransmit(struct tcpcb *tp, const struct tcphdr *th)
sys/netinet/tcp_congctl.c
515
tcp_reno_congestion_exp(tp);
sys/netinet/tcp_congctl.c
516
return tcp_reno_do_fast_retransmit(tp, th);
sys/netinet/tcp_congctl.c
520
tcp_reno_slow_retransmit(struct tcpcb *tp)
sys/netinet/tcp_congctl.c
549
win = ulmin(tp->snd_wnd, tp->snd_cwnd) / 2 / tp->t_segsz;
sys/netinet/tcp_congctl.c
553
tp->snd_cwnd = tp->t_segsz;
sys/netinet/tcp_congctl.c
554
tp->snd_ssthresh = win * tp->t_segsz;
sys/netinet/tcp_congctl.c
555
tp->t_partialacks = -1;
sys/netinet/tcp_congctl.c
556
tp->t_dupacks = 0;
sys/netinet/tcp_congctl.c
557
tp->t_bytes_acked = 0;
sys/netinet/tcp_congctl.c
559
if (TCP_ECN_ALLOWED(tp))
sys/netinet/tcp_congctl.c
560
tp->t_flags |= TF_ECN_SND_CWR;
sys/netinet/tcp_congctl.c
564
tcp_reno_fast_retransmit_newack(struct tcpcb *tp,
sys/netinet/tcp_congctl.c
567
if (tp->t_partialacks < 0) {
sys/netinet/tcp_congctl.c
572
tp->t_dupacks = 0;
sys/netinet/tcp_congctl.c
578
if (tp->snd_cwnd > tp->snd_ssthresh)
sys/netinet/tcp_congctl.c
579
tp->snd_cwnd = tp->snd_ssthresh;
sys/netinet/tcp_congctl.c
580
tp->t_partialacks = -1;
sys/netinet/tcp_congctl.c
581
tp->t_dupacks = 0;
sys/netinet/tcp_congctl.c
582
tp->t_bytes_acked = 0;
sys/netinet/tcp_congctl.c
583
if (TCP_SACK_ENABLED(tp) && SEQ_GT(th->th_ack, tp->snd_fack))
sys/netinet/tcp_congctl.c
584
tp->snd_fack = th->th_ack;
sys/netinet/tcp_congctl.c
589
tcp_reno_newack(struct tcpcb *tp, const struct tcphdr *th)
sys/netinet/tcp_congctl.c
595
u_int cw = tp->snd_cwnd;
sys/netinet/tcp_congctl.c
596
u_int incr = tp->t_segsz;
sys/netinet/tcp_congctl.c
604
int acked = th->th_ack - tp->snd_una;
sys/netinet/tcp_congctl.c
606
if (cw >= tp->snd_ssthresh) {
sys/netinet/tcp_congctl.c
607
tp->t_bytes_acked += acked;
sys/netinet/tcp_congctl.c
608
if (tp->t_bytes_acked >= cw) {
sys/netinet/tcp_congctl.c
610
tp->t_bytes_acked -= cw;
sys/netinet/tcp_congctl.c
625
tp->snd_nxt != tp->snd_max) ? incr : incr * 2;
sys/netinet/tcp_congctl.c
637
if (cw >= tp->snd_ssthresh) {
sys/netinet/tcp_congctl.c
642
tp->snd_cwnd = uimin(cw + incr, TCP_MAXWIN << tp->snd_scale);
sys/netinet/tcp_congctl.c
657
tcp_newreno_fast_retransmit(struct tcpcb *tp, const struct tcphdr *th)
sys/netinet/tcp_congctl.c
660
if (SEQ_LT(th->th_ack, tp->snd_high)) {
sys/netinet/tcp_congctl.c
665
tp->t_dupacks = 0;
sys/netinet/tcp_congctl.c
671
return tcp_reno_fast_retransmit(tp, th);
sys/netinet/tcp_congctl.c
679
tcp_newreno_fast_retransmit_newack(struct tcpcb *tp, const struct tcphdr *th)
sys/netinet/tcp_congctl.c
681
if (tp->t_partialacks < 0) {
sys/netinet/tcp_congctl.c
686
tp->t_dupacks = 0;
sys/netinet/tcp_congctl.c
687
} else if (SEQ_LT(th->th_ack, tp->snd_recover)) {
sys/netinet/tcp_congctl.c
693
tcp_seq onxt = tp->snd_nxt;
sys/netinet/tcp_congctl.c
694
u_long ocwnd = tp->snd_cwnd;
sys/netinet/tcp_congctl.c
703
tp->t_partialacks++;
sys/netinet/tcp_congctl.c
704
TCP_TIMER_DISARM(tp, TCPT_REXMT);
sys/netinet/tcp_congctl.c
705
tp->t_rtttime = 0;
sys/netinet/tcp_congctl.c
707
if (TCP_SACK_ENABLED(tp)) {
sys/netinet/tcp_congctl.c
723
if (((th->th_ack - tp->snd_una) / tp->t_segsz) > 2)
sys/netinet/tcp_congctl.c
725
(void)tcp_sack_output(tp, &sack_bytes_rxmt);
sys/netinet/tcp_congctl.c
726
tp->snd_cwnd = sack_bytes_rxmt +
sys/netinet/tcp_congctl.c
727
(tp->snd_nxt - tp->sack_newdata) +
sys/netinet/tcp_congctl.c
728
sack_num_segs * tp->t_segsz;
sys/netinet/tcp_congctl.c
729
tp->t_flags |= TF_ACKNOW;
sys/netinet/tcp_congctl.c
730
(void) tcp_output(tp);
sys/netinet/tcp_congctl.c
732
tp->snd_nxt = th->th_ack;
sys/netinet/tcp_congctl.c
737
tp->snd_cwnd = tp->t_segsz + (th->th_ack - tp->snd_una);
sys/netinet/tcp_congctl.c
738
(void) tcp_output(tp);
sys/netinet/tcp_congctl.c
739
tp->snd_cwnd = ocwnd;
sys/netinet/tcp_congctl.c
740
if (SEQ_GT(onxt, tp->snd_nxt))
sys/netinet/tcp_congctl.c
741
tp->snd_nxt = onxt;
sys/netinet/tcp_congctl.c
746
tp->snd_cwnd -= (th->th_ack - tp->snd_una -
sys/netinet/tcp_congctl.c
747
tp->t_segsz);
sys/netinet/tcp_congctl.c
759
if (SEQ_SUB(tp->snd_max, th->th_ack) < tp->snd_ssthresh)
sys/netinet/tcp_congctl.c
760
tp->snd_cwnd = SEQ_SUB(tp->snd_max, th->th_ack)
sys/netinet/tcp_congctl.c
761
+ tp->t_segsz;
sys/netinet/tcp_congctl.c
763
tp->snd_cwnd = tp->snd_ssthresh;
sys/netinet/tcp_congctl.c
764
tp->t_partialacks = -1;
sys/netinet/tcp_congctl.c
765
tp->t_dupacks = 0;
sys/netinet/tcp_congctl.c
766
tp->t_bytes_acked = 0;
sys/netinet/tcp_congctl.c
767
if (TCP_SACK_ENABLED(tp) && SEQ_GT(th->th_ack, tp->snd_fack))
sys/netinet/tcp_congctl.c
768
tp->snd_fack = th->th_ack;
sys/netinet/tcp_congctl.c
773
tcp_newreno_newack(struct tcpcb *tp, const struct tcphdr *th)
sys/netinet/tcp_congctl.c
780
if (tp->t_partialacks < 0)
sys/netinet/tcp_congctl.c
781
tcp_reno_newack(tp, th);
sys/netinet/tcp_congctl.c
798
static void tcp_cubic_update_ctime(struct tcpcb *tp);
sys/netinet/tcp_congctl.c
808
tcp_cubic_update_ctime(struct tcpcb *tp)
sys/netinet/tcp_congctl.c
813
tp->snd_cubic_ctime = now_timeval.tv_sec * 1000 +
sys/netinet/tcp_congctl.c
821
tcp_cubic_diff_ctime(struct tcpcb *tp)
sys/netinet/tcp_congctl.c
827
tp->snd_cubic_ctime;
sys/netinet/tcp_congctl.c
865
tcp_cubic_getW(struct tcpcb *tp, uint32_t ms_elapsed, uint32_t rtt)
sys/netinet/tcp_congctl.c
871
K = tcp_cubic_cbrt(tp->snd_cubic_wmax / CUBIC_BETAB *
sys/netinet/tcp_congctl.c
877
return CUBIC_CA * tK3 / CUBIC_CB + tp->snd_cubic_wmax;
sys/netinet/tcp_congctl.c
881
tcp_cubic_congestion_exp(struct tcpcb *tp)
sys/netinet/tcp_congctl.c
887
tcp_cubic_update_ctime(tp);
sys/netinet/tcp_congctl.c
890
if (tp->snd_cubic_wmax < tp->snd_cubic_wmax_last) {
sys/netinet/tcp_congctl.c
891
tp->snd_cubic_wmax_last = tp->snd_cubic_wmax;
sys/netinet/tcp_congctl.c
892
tp->snd_cubic_wmax = tp->snd_cubic_wmax / 2 +
sys/netinet/tcp_congctl.c
893
tp->snd_cubic_wmax * CUBIC_BETAA / CUBIC_BETAB / 2;
sys/netinet/tcp_congctl.c
895
tp->snd_cubic_wmax_last = tp->snd_cubic_wmax;
sys/netinet/tcp_congctl.c
896
tp->snd_cubic_wmax = tp->snd_cwnd;
sys/netinet/tcp_congctl.c
899
tp->snd_cubic_wmax = uimax(tp->t_segsz, tp->snd_cubic_wmax);
sys/netinet/tcp_congctl.c
902
tcp_common_congestion_exp(tp, CUBIC_BETAA, CUBIC_BETAB);
sys/netinet/tcp_congctl.c
906
tcp_cubic_fast_retransmit(struct tcpcb *tp, const struct tcphdr *th)
sys/netinet/tcp_congctl.c
909
if (SEQ_LT(th->th_ack, tp->snd_high)) {
sys/netinet/tcp_congctl.c
911
tp->t_dupacks = 0;
sys/netinet/tcp_congctl.c
918
tcp_cubic_congestion_exp(tp);
sys/netinet/tcp_congctl.c
921
return tcp_reno_do_fast_retransmit(tp, th);
sys/netinet/tcp_congctl.c
925
tcp_cubic_newack(struct tcpcb *tp, const struct tcphdr *th)
sys/netinet/tcp_congctl.c
931
if (tp->snd_cwnd > tp->snd_ssthresh && tp->t_partialacks < 0 &&
sys/netinet/tcp_congctl.c
937
(rtt = (tp->t_srtt << 5) / PR_SLOWHZ) > 0) {
sys/netinet/tcp_congctl.c
938
ms_elapsed = tcp_cubic_diff_ctime(tp);
sys/netinet/tcp_congctl.c
941
w_tcp = tp->snd_cubic_wmax * CUBIC_BETAA / CUBIC_BETAB +
sys/netinet/tcp_congctl.c
944
if (tp->snd_cwnd > w_tcp) {
sys/netinet/tcp_congctl.c
946
tp->snd_cwnd += (tcp_cubic_getW(tp, ms_elapsed, rtt) -
sys/netinet/tcp_congctl.c
947
tp->snd_cwnd) / tp->snd_cwnd;
sys/netinet/tcp_congctl.c
950
tp->snd_cwnd = w_tcp;
sys/netinet/tcp_congctl.c
954
tp->snd_cwnd = uimax(tp->snd_cwnd, tp->t_segsz);
sys/netinet/tcp_congctl.c
955
tp->snd_cwnd = uimin(tp->snd_cwnd, TCP_MAXWIN << tp->snd_scale);
sys/netinet/tcp_congctl.c
958
tcp_newreno_newack(tp, th);
sys/netinet/tcp_congctl.c
963
tcp_cubic_slow_retransmit(struct tcpcb *tp)
sys/netinet/tcp_congctl.c
967
tcp_cubic_congestion_exp(tp);
sys/netinet/tcp_congctl.c
970
tp->snd_cwnd = tp->t_segsz;
sys/netinet/tcp_congctl.c
971
tp->t_partialacks = -1;
sys/netinet/tcp_congctl.c
972
tp->t_dupacks = 0;
sys/netinet/tcp_congctl.c
973
tp->t_bytes_acked = 0;
sys/netinet/tcp_congctl.c
975
if (TCP_ECN_ALLOWED(tp))
sys/netinet/tcp_congctl.c
976
tp->t_flags |= TF_ECN_SND_CWR;
sys/netinet/tcp_debug.c
111
tcp_trace(short act, short ostate, struct tcpcb *tp, struct mbuf *m, int req)
sys/netinet/tcp_debug.c
123
td->td_tcb = (void *)tp;
sys/netinet/tcp_debug.c
124
if (tp)
sys/netinet/tcp_debug.c
125
td->td_cb = *tp;
sys/netinet/tcp_debug.c
127
memset((void *)&td->td_cb, 0, sizeof (*tp));
sys/netinet/tcp_debug.c
128
td->td_family = tp->t_family;
sys/netinet/tcp_debug.c
160
if (tp)
sys/netinet/tcp_debug.c
161
printf("%p %s:", tp, tcpstates[ostate]);
sys/netinet/tcp_debug.c
205
if (tp)
sys/netinet/tcp_debug.c
206
printf(" -> %s", tcpstates[tp->t_state]);
sys/netinet/tcp_debug.c
209
if (tp == 0)
sys/netinet/tcp_debug.c
212
tp->rcv_nxt, tp->rcv_wnd, tp->rcv_up, tp->snd_una, tp->snd_nxt,
sys/netinet/tcp_debug.c
213
tp->snd_max);
sys/netinet/tcp_debug.c
215
tp->snd_wl1, tp->snd_wl2, tp->snd_wnd);
sys/netinet/tcp_input.c
1197
struct tcpcb *tp = NULL;
sys/netinet/tcp_input.c
1463
tp = NULL;
sys/netinet/tcp_input.c
1470
tp = intotcpcb(inp);
sys/netinet/tcp_input.c
1479
if (tp == NULL)
sys/netinet/tcp_input.c
1481
if (tp->t_state == TCPS_CLOSED)
sys/netinet/tcp_input.c
1489
tiwin = th->th_win << tp->snd_scale;
sys/netinet/tcp_input.c
1504
ostate = tp->t_state;
sys/netinet/tcp_input.c
1540
KASSERT(tp->t_state == TCPS_LISTEN);
sys/netinet/tcp_input.c
1605
tp = intotcpcb(inp);
sys/netinet/tcp_input.c
1606
if (tp == NULL)
sys/netinet/tcp_input.c
1608
tiwin <<= tp->snd_scale;
sys/netinet/tcp_input.c
1669
tp = NULL;
sys/netinet/tcp_input.c
1718
KASSERT(tp->t_state != TCPS_LISTEN);
sys/netinet/tcp_input.c
1724
tp->t_rcvtime = tcp_now;
sys/netinet/tcp_input.c
1725
if (TCPS_HAVEESTABLISHED(tp->t_state))
sys/netinet/tcp_input.c
1726
TCP_TIMER_ARM(tp, TCPT_KEEP, tp->t_keepidle);
sys/netinet/tcp_input.c
1732
if (optp || (tp->t_flags & TF_SIGNATURE))
sys/netinet/tcp_input.c
1736
if (tcp_dooptions(tp, optp, optlen, th, m, off, &opti) < 0)
sys/netinet/tcp_input.c
1739
if (TCP_SACK_ENABLED(tp)) {
sys/netinet/tcp_input.c
1740
tcp_del_sackholes(tp, th);
sys/netinet/tcp_input.c
1743
if (TCP_ECN_ALLOWED(tp)) {
sys/netinet/tcp_input.c
1745
tp->t_flags &= ~TF_ECN_SND_ECE;
sys/netinet/tcp_input.c
1749
tp->t_flags |= TF_ECN_SND_ECE;
sys/netinet/tcp_input.c
1763
if ((tiflags & TH_ECE) && SEQ_GEQ(tp->snd_una, tp->snd_recover))
sys/netinet/tcp_input.c
1764
tp->t_congctl->cong_exp(tp);
sys/netinet/tcp_input.c
1787
ts_rtt = TCP_TIMESTAMP(tp) - opti.ts_ecr + 1;
sys/netinet/tcp_input.c
1814
if (tp->t_state == TCPS_ESTABLISHED &&
sys/netinet/tcp_input.c
1817
(!opti.ts_present || TSTMP_GEQ(opti.ts_val, tp->ts_recent)) &&
sys/netinet/tcp_input.c
1818
th->th_seq == tp->rcv_nxt &&
sys/netinet/tcp_input.c
1819
tiwin && tiwin == tp->snd_wnd &&
sys/netinet/tcp_input.c
1820
tp->snd_nxt == tp->snd_max) {
sys/netinet/tcp_input.c
1831
if (opti.ts_present && SEQ_LEQ(th->th_seq, tp->last_ack_sent)) {
sys/netinet/tcp_input.c
1832
tp->ts_recent_age = tcp_now;
sys/netinet/tcp_input.c
1833
tp->ts_recent = opti.ts_val;
sys/netinet/tcp_input.c
1838
if (SEQ_GT(th->th_ack, tp->snd_una) &&
sys/netinet/tcp_input.c
1839
SEQ_LEQ(th->th_ack, tp->snd_max) &&
sys/netinet/tcp_input.c
1840
tp->snd_cwnd >= tp->snd_wnd &&
sys/netinet/tcp_input.c
1841
tp->t_partialacks < 0) {
sys/netinet/tcp_input.c
1846
tcp_xmit_timer(tp, ts_rtt - 1);
sys/netinet/tcp_input.c
1847
else if (tp->t_rtttime &&
sys/netinet/tcp_input.c
1848
SEQ_GT(th->th_ack, tp->t_rtseq))
sys/netinet/tcp_input.c
1849
tcp_xmit_timer(tp,
sys/netinet/tcp_input.c
1850
tcp_now - tp->t_rtttime);
sys/netinet/tcp_input.c
1851
acked = th->th_ack - tp->snd_una;
sys/netinet/tcp_input.c
1858
nd_hint(tp);
sys/netinet/tcp_input.c
1860
if (acked > (tp->t_lastoff - tp->t_inoff))
sys/netinet/tcp_input.c
1861
tp->t_lastm = NULL;
sys/netinet/tcp_input.c
1863
tp->t_lastoff -= acked;
sys/netinet/tcp_input.c
1865
icmp_check(tp, th, acked);
sys/netinet/tcp_input.c
1867
tp->snd_una = th->th_ack;
sys/netinet/tcp_input.c
1868
tp->snd_fack = tp->snd_una;
sys/netinet/tcp_input.c
1869
if (SEQ_LT(tp->snd_high, tp->snd_una))
sys/netinet/tcp_input.c
1870
tp->snd_high = tp->snd_una;
sys/netinet/tcp_input.c
1882
tp->snd_wl2 = tp->snd_una;
sys/netinet/tcp_input.c
1895
if (tp->snd_una == tp->snd_max)
sys/netinet/tcp_input.c
1896
TCP_TIMER_DISARM(tp, TCPT_REXMT);
sys/netinet/tcp_input.c
1897
else if (TCP_TIMER_ISARMED(tp,
sys/netinet/tcp_input.c
1899
TCP_TIMER_ARM(tp, TCPT_REXMT,
sys/netinet/tcp_input.c
1900
tp->t_rxtcur);
sys/netinet/tcp_input.c
1905
(void)tcp_output(tp);
sys/netinet/tcp_input.c
1911
} else if (th->th_ack == tp->snd_una &&
sys/netinet/tcp_input.c
1912
TAILQ_FIRST(&tp->segq) == NULL &&
sys/netinet/tcp_input.c
1921
tp->rcv_nxt += tlen;
sys/netinet/tcp_input.c
1927
tp->rcv_up = tp->rcv_nxt;
sys/netinet/tcp_input.c
1933
tp->snd_wl1 = th->th_seq;
sys/netinet/tcp_input.c
1940
nd_hint(tp);
sys/netinet/tcp_input.c
1975
if (opti.ts_ecr > tp->rfbuf_ts &&
sys/netinet/tcp_input.c
1976
opti.ts_ecr - tp->rfbuf_ts < PR_SLOWHZ) {
sys/netinet/tcp_input.c
1977
if (tp->rfbuf_cnt >
sys/netinet/tcp_input.c
1987
tp->rfbuf_ts = 0;
sys/netinet/tcp_input.c
1988
tp->rfbuf_cnt = 0;
sys/netinet/tcp_input.c
1990
tp->rfbuf_cnt += tlen; /* add up */
sys/netinet/tcp_input.c
2012
tcp_setup_ack(tp, th);
sys/netinet/tcp_input.c
2013
if (tp->t_flags & TF_ACKNOW) {
sys/netinet/tcp_input.c
2015
(void)tcp_output(tp);
sys/netinet/tcp_input.c
2038
tp->rcv_wnd = imax(win, (int)(tp->rcv_adv - tp->rcv_nxt));
sys/netinet/tcp_input.c
2042
tp->rfbuf_ts = 0;
sys/netinet/tcp_input.c
2043
tp->rfbuf_cnt = 0;
sys/netinet/tcp_input.c
2045
switch (tp->t_state) {
sys/netinet/tcp_input.c
2062
(SEQ_LEQ(th->th_ack, tp->iss) ||
sys/netinet/tcp_input.c
2063
SEQ_GT(th->th_ack, tp->snd_max)))
sys/netinet/tcp_input.c
2067
tp = tcp_drop(tp, ECONNREFUSED);
sys/netinet/tcp_input.c
2073
tp->snd_una = th->th_ack;
sys/netinet/tcp_input.c
2074
if (SEQ_LT(tp->snd_nxt, tp->snd_una))
sys/netinet/tcp_input.c
2075
tp->snd_nxt = tp->snd_una;
sys/netinet/tcp_input.c
2076
if (SEQ_LT(tp->snd_high, tp->snd_una))
sys/netinet/tcp_input.c
2077
tp->snd_high = tp->snd_una;
sys/netinet/tcp_input.c
2078
TCP_TIMER_DISARM(tp, TCPT_REXMT);
sys/netinet/tcp_input.c
2081
tp->t_flags |= TF_ECN_PERMIT;
sys/netinet/tcp_input.c
2085
tp->irs = th->th_seq;
sys/netinet/tcp_input.c
2086
tcp_rcvseqinit(tp);
sys/netinet/tcp_input.c
2087
tp->t_flags |= TF_ACKNOW;
sys/netinet/tcp_input.c
2088
tcp_mss_from_peer(tp, opti.maxseg);
sys/netinet/tcp_input.c
2095
if (tp->t_flags & TF_SYN_REXMT)
sys/netinet/tcp_input.c
2096
tp->snd_cwnd = tp->t_peermss;
sys/netinet/tcp_input.c
2105
tp->snd_cwnd = TCP_INITIAL_WINDOW(ss, tp->t_peermss);
sys/netinet/tcp_input.c
2108
tcp_rmx_rtt(tp);
sys/netinet/tcp_input.c
2118
tcp_established(tp);
sys/netinet/tcp_input.c
2121
if ((tp->t_flags & (TF_RCVD_SCALE|TF_REQ_SCALE)) ==
sys/netinet/tcp_input.c
2123
tp->snd_scale = tp->requested_s_scale;
sys/netinet/tcp_input.c
2124
tp->rcv_scale = tp->request_r_scale;
sys/netinet/tcp_input.c
2126
TCP_REASS_LOCK(tp);
sys/netinet/tcp_input.c
2127
(void)tcp_reass(tp, NULL, NULL, tlen);
sys/netinet/tcp_input.c
2132
if (tp->t_rtttime)
sys/netinet/tcp_input.c
2133
tcp_xmit_timer(tp, tcp_now - tp->t_rtttime);
sys/netinet/tcp_input.c
2135
tp->t_state = TCPS_SYN_RECEIVED;
sys/netinet/tcp_input.c
2144
if (tlen > tp->rcv_wnd) {
sys/netinet/tcp_input.c
2145
todrop = tlen - tp->rcv_wnd;
sys/netinet/tcp_input.c
2147
tlen = tp->rcv_wnd;
sys/netinet/tcp_input.c
2155
tp->snd_wl1 = th->th_seq - 1;
sys/netinet/tcp_input.c
2156
tp->rcv_up = th->th_seq;
sys/netinet/tcp_input.c
2166
(SEQ_LEQ(th->th_ack, tp->iss) ||
sys/netinet/tcp_input.c
2167
SEQ_GT(th->th_ack, tp->snd_max)))
sys/netinet/tcp_input.c
2175
KASSERT(tp->t_state != TCPS_LISTEN &&
sys/netinet/tcp_input.c
2176
tp->t_state != TCPS_SYN_SENT);
sys/netinet/tcp_input.c
2182
if (opti.ts_present && (tiflags & TH_RST) == 0 && tp->ts_recent &&
sys/netinet/tcp_input.c
2183
TSTMP_LT(opti.ts_val, tp->ts_recent)) {
sys/netinet/tcp_input.c
2185
if (tcp_now - tp->ts_recent_age > TCP_PAWS_IDLE) {
sys/netinet/tcp_input.c
2197
tp->ts_recent = 0;
sys/netinet/tcp_input.c
2204
tcp_new_dsack(tp, th->th_seq, tlen);
sys/netinet/tcp_input.c
2214
todrop = tp->rcv_nxt - th->th_seq;
sys/netinet/tcp_input.c
2238
tp->t_flags |= TF_ACKNOW;
sys/netinet/tcp_input.c
2245
} else if ((tiflags & TH_RST) && th->th_seq != tp->rcv_nxt) {
sys/netinet/tcp_input.c
2258
tcp_new_dsack(tp, th->th_seq, todrop);
sys/netinet/tcp_input.c
2270
tp->t_state > TCPS_CLOSE_WAIT && tlen) {
sys/netinet/tcp_input.c
2271
tp = tcp_close(tp);
sys/netinet/tcp_input.c
2280
todrop = (th->th_seq + tlen) - (tp->rcv_nxt + tp->rcv_wnd);
sys/netinet/tcp_input.c
2302
tp->t_state == TCPS_TIME_WAIT &&
sys/netinet/tcp_input.c
2303
SEQ_GT(th->th_seq, tp->rcv_nxt)) {
sys/netinet/tcp_input.c
2304
tp = tcp_close(tp);
sys/netinet/tcp_input.c
2318
if (tp->rcv_wnd == 0 && th->th_seq == tp->rcv_nxt) {
sys/netinet/tcp_input.c
2320
tp->t_flags |= TF_ACKNOW;
sys/netinet/tcp_input.c
2352
SEQ_LEQ(th->th_seq, tp->last_ack_sent) &&
sys/netinet/tcp_input.c
2353
SEQ_LEQ(tp->last_ack_sent, th->th_seq + tlen +
sys/netinet/tcp_input.c
2355
tp->ts_recent_age = tcp_now;
sys/netinet/tcp_input.c
2356
tp->ts_recent = opti.ts_val;
sys/netinet/tcp_input.c
2370
if (th->th_seq != tp->rcv_nxt)
sys/netinet/tcp_input.c
2373
switch (tp->t_state) {
sys/netinet/tcp_input.c
2384
tp->t_state = TCPS_CLOSED;
sys/netinet/tcp_input.c
2386
tp = tcp_close(tp);
sys/netinet/tcp_input.c
2392
tp = tcp_close(tp);
sys/netinet/tcp_input.c
2406
if (tp->rcv_nxt == th->th_seq) {
sys/netinet/tcp_input.c
2407
tcp_respond(tp, m, m, th, (tcp_seq)0, th->th_ack - 1,
sys/netinet/tcp_input.c
2420
if (tp->t_flags & TF_ACKNOW)
sys/netinet/tcp_input.c
2429
switch (tp->t_state) {
sys/netinet/tcp_input.c
2436
if (SEQ_GT(tp->snd_una, th->th_ack) ||
sys/netinet/tcp_input.c
2437
SEQ_GT(th->th_ack, tp->snd_max))
sys/netinet/tcp_input.c
2441
tcp_established(tp);
sys/netinet/tcp_input.c
2443
if ((tp->t_flags & (TF_RCVD_SCALE|TF_REQ_SCALE)) ==
sys/netinet/tcp_input.c
2445
tp->snd_scale = tp->requested_s_scale;
sys/netinet/tcp_input.c
2446
tp->rcv_scale = tp->request_r_scale;
sys/netinet/tcp_input.c
2448
TCP_REASS_LOCK(tp);
sys/netinet/tcp_input.c
2449
(void)tcp_reass(tp, NULL, NULL, tlen);
sys/netinet/tcp_input.c
2450
tp->snd_wl1 = th->th_seq - 1;
sys/netinet/tcp_input.c
2468
if (SEQ_LEQ(th->th_ack, tp->snd_una)) {
sys/netinet/tcp_input.c
2469
if (tlen == 0 && !dupseg && tiwin == tp->snd_wnd) {
sys/netinet/tcp_input.c
2483
if (TCP_TIMER_ISARMED(tp, TCPT_REXMT) == 0 ||
sys/netinet/tcp_input.c
2484
th->th_ack != tp->snd_una)
sys/netinet/tcp_input.c
2485
tp->t_dupacks = 0;
sys/netinet/tcp_input.c
2486
else if (tp->t_partialacks < 0 &&
sys/netinet/tcp_input.c
2487
(++tp->t_dupacks == tcprexmtthresh ||
sys/netinet/tcp_input.c
2488
TCP_FACK_FASTRECOV(tp))) {
sys/netinet/tcp_input.c
2493
if (tp->t_congctl->fast_retransmit(tp, th)) {
sys/netinet/tcp_input.c
2498
} else if (tp->t_dupacks > tcprexmtthresh) {
sys/netinet/tcp_input.c
2499
tp->snd_cwnd += tp->t_segsz;
sys/netinet/tcp_input.c
2501
(void)tcp_output(tp);
sys/netinet/tcp_input.c
251
nd_hint(struct tcpcb *tp)
sys/netinet/tcp_input.c
2514
if (tlen && th->th_seq != tp->rcv_nxt &&
sys/netinet/tcp_input.c
2516
tp->snd_una - tp->max_sndwnd))
sys/netinet/tcp_input.c
2525
tp->t_congctl->fast_retransmit_newack(tp, th);
sys/netinet/tcp_input.c
2527
if (SEQ_GT(th->th_ack, tp->snd_max)) {
sys/netinet/tcp_input.c
2531
acked = th->th_ack - tp->snd_una;
sys/netinet/tcp_input.c
2547
tcp_xmit_timer(tp, ts_rtt - 1);
sys/netinet/tcp_input.c
2548
else if (tp->t_rtttime && SEQ_GT(th->th_ack, tp->t_rtseq))
sys/netinet/tcp_input.c
2549
tcp_xmit_timer(tp, tcp_now - tp->t_rtttime);
sys/netinet/tcp_input.c
2557
if (th->th_ack == tp->snd_max) {
sys/netinet/tcp_input.c
2558
TCP_TIMER_DISARM(tp, TCPT_REXMT);
sys/netinet/tcp_input.c
256
if (tp == NULL)
sys/netinet/tcp_input.c
2560
} else if (TCP_TIMER_ISARMED(tp, TCPT_PERSIST) == 0)
sys/netinet/tcp_input.c
2561
TCP_TIMER_ARM(tp, TCPT_REXMT, tp->t_rxtcur);
sys/netinet/tcp_input.c
2566
tp->t_congctl->newack(tp, th);
sys/netinet/tcp_input.c
2568
nd_hint(tp);
sys/netinet/tcp_input.c
2570
tp->snd_wnd -= so->so_snd.sb_cc;
sys/netinet/tcp_input.c
2574
if (acked > (tp->t_lastoff - tp->t_inoff))
sys/netinet/tcp_input.c
2575
tp->t_lastm = NULL;
sys/netinet/tcp_input.c
2577
tp->t_lastoff -= acked;
sys/netinet/tcp_input.c
2578
if (tp->snd_wnd > acked)
sys/netinet/tcp_input.c
2579
tp->snd_wnd -= acked;
sys/netinet/tcp_input.c
2581
tp->snd_wnd = 0;
sys/netinet/tcp_input.c
2586
icmp_check(tp, th, acked);
sys/netinet/tcp_input.c
2588
tp->snd_una = th->th_ack;
sys/netinet/tcp_input.c
2589
if (SEQ_GT(tp->snd_una, tp->snd_fack))
sys/netinet/tcp_input.c
259
ro = &tp->t_inpcb->inp_route;
sys/netinet/tcp_input.c
2590
tp->snd_fack = tp->snd_una;
sys/netinet/tcp_input.c
2591
if (SEQ_LT(tp->snd_nxt, tp->snd_una))
sys/netinet/tcp_input.c
2592
tp->snd_nxt = tp->snd_una;
sys/netinet/tcp_input.c
2593
if (SEQ_LT(tp->snd_high, tp->snd_una))
sys/netinet/tcp_input.c
2594
tp->snd_high = tp->snd_una;
sys/netinet/tcp_input.c
2596
switch (tp->t_state) {
sys/netinet/tcp_input.c
2614
if (tp->t_maxidle > 0)
sys/netinet/tcp_input.c
2615
TCP_TIMER_ARM(tp, TCPT_2MSL,
sys/netinet/tcp_input.c
2616
tp->t_maxidle);
sys/netinet/tcp_input.c
2618
tp->t_state = TCPS_FIN_WAIT_2;
sys/netinet/tcp_input.c
2630
tp->t_state = TCPS_TIME_WAIT;
sys/netinet/tcp_input.c
2631
tcp_canceltimers(tp);
sys/netinet/tcp_input.c
2632
TCP_TIMER_ARM(tp, TCPT_2MSL, 2 * tp->t_msl);
sys/netinet/tcp_input.c
2645
tp = tcp_close(tp);
sys/netinet/tcp_input.c
2656
TCP_TIMER_ARM(tp, TCPT_2MSL, 2 * tp->t_msl);
sys/netinet/tcp_input.c
2666
if ((tiflags & TH_ACK) && (SEQ_LT(tp->snd_wl1, th->th_seq) ||
sys/netinet/tcp_input.c
2667
(tp->snd_wl1 == th->th_seq && (SEQ_LT(tp->snd_wl2, th->th_ack) ||
sys/netinet/tcp_input.c
2668
(tp->snd_wl2 == th->th_ack && tiwin > tp->snd_wnd))))) {
sys/netinet/tcp_input.c
267
switch (tp->t_family) {
sys/netinet/tcp_input.c
2671
tp->snd_wl2 == th->th_ack && tiwin > tp->snd_wnd)
sys/netinet/tcp_input.c
2673
tp->snd_wnd = tiwin;
sys/netinet/tcp_input.c
2674
tp->snd_wl1 = th->th_seq;
sys/netinet/tcp_input.c
2675
tp->snd_wl2 = th->th_ack;
sys/netinet/tcp_input.c
2676
if (tp->snd_wnd > tp->max_sndwnd)
sys/netinet/tcp_input.c
2677
tp->max_sndwnd = tp->snd_wnd;
sys/netinet/tcp_input.c
2685
TCPS_HAVERCVDFIN(tp->t_state) == 0) {
sys/netinet/tcp_input.c
2712
if (SEQ_GT(th->th_seq+th->th_urp, tp->rcv_up)) {
sys/netinet/tcp_input.c
2713
tp->rcv_up = th->th_seq + th->th_urp;
sys/netinet/tcp_input.c
2715
(tp->rcv_up - tp->rcv_nxt) - 1;
sys/netinet/tcp_input.c
2719
tp->t_oobflags &= ~(TCPOOB_HAVEDATA | TCPOOB_HADDATA);
sys/netinet/tcp_input.c
2737
if (SEQ_GT(tp->rcv_nxt, tp->rcv_up))
sys/netinet/tcp_input.c
2738
tp->rcv_up = tp->rcv_nxt;
sys/netinet/tcp_input.c
2751
TCPS_HAVERCVDFIN(tp->t_state) == 0) {
sys/netinet/tcp_input.c
2763
TCP_REASS_LOCK(tp);
sys/netinet/tcp_input.c
2764
if (th->th_seq == tp->rcv_nxt &&
sys/netinet/tcp_input.c
2765
TAILQ_FIRST(&tp->segq) == NULL &&
sys/netinet/tcp_input.c
2766
tp->t_state == TCPS_ESTABLISHED) {
sys/netinet/tcp_input.c
2767
tcp_setup_ack(tp, th);
sys/netinet/tcp_input.c
2768
tp->rcv_nxt += tlen;
sys/netinet/tcp_input.c
2774
nd_hint(tp);
sys/netinet/tcp_input.c
2781
TCP_REASS_UNLOCK(tp);
sys/netinet/tcp_input.c
2785
tiflags = tcp_reass(tp, th, m, tlen);
sys/netinet/tcp_input.c
2786
tp->t_flags |= TF_ACKNOW;
sys/netinet/tcp_input.c
2794
len = so->so_rcv.sb_hiwat - (tp->rcv_adv - tp->rcv_nxt);
sys/netinet/tcp_input.c
2806
if ((tiflags & TH_FIN) && TCPS_HAVEESTABLISHED(tp->t_state)) {
sys/netinet/tcp_input.c
2807
if (TCPS_HAVERCVDFIN(tp->t_state) == 0) {
sys/netinet/tcp_input.c
2809
tp->t_flags |= TF_ACKNOW;
sys/netinet/tcp_input.c
2810
tp->rcv_nxt++;
sys/netinet/tcp_input.c
2812
switch (tp->t_state) {
sys/netinet/tcp_input.c
2818
tp->t_state = TCPS_CLOSE_WAIT;
sys/netinet/tcp_input.c
2826
tp->t_state = TCPS_CLOSING;
sys/netinet/tcp_input.c
2835
tp->t_state = TCPS_TIME_WAIT;
sys/netinet/tcp_input.c
2836
tcp_canceltimers(tp);
sys/netinet/tcp_input.c
2837
TCP_TIMER_ARM(tp, TCPT_2MSL, 2 * tp->t_msl);
sys/netinet/tcp_input.c
2845
TCP_TIMER_ARM(tp, TCPT_2MSL, 2 * tp->t_msl);
sys/netinet/tcp_input.c
2851
tcp_trace(TA_INPUT, ostate, tp, tcp_saveti, 0);
sys/netinet/tcp_input.c
2857
if (needoutput || (tp->t_flags & TF_ACKNOW)) {
sys/netinet/tcp_input.c
2859
(void)tcp_output(tp);
sys/netinet/tcp_input.c
2864
if (tp->t_state == TCPS_TIME_WAIT
sys/netinet/tcp_input.c
2866
&& (tp->t_inpcb || af != AF_INET || af != AF_INET6)
sys/netinet/tcp_input.c
2868
&& TAILQ_EMPTY(&tp->segq)
sys/netinet/tcp_input.c
2869
&& vtw_add(af, tp)) {
sys/netinet/tcp_input.c
2879
tp = NULL;
sys/netinet/tcp_input.c
290
tcp_setup_ack(struct tcpcb *tp, const struct tcphdr *th)
sys/netinet/tcp_input.c
2903
tp->t_flags |= TF_ACKNOW;
sys/netinet/tcp_input.c
2905
(void)tcp_output(tp);
sys/netinet/tcp_input.c
293
if (tp->t_flags & TF_DELACK ||
sys/netinet/tcp_input.c
2931
(void)tcp_respond(tp, m, m, th, (tcp_seq)0, th->th_ack, TH_RST);
sys/netinet/tcp_input.c
2935
(void)tcp_respond(tp, m, m, th, th->th_seq + tlen, (tcp_seq)0,
sys/netinet/tcp_input.c
2946
if (tp) {
sys/netinet/tcp_input.c
2947
so = tp->t_inpcb->inp_socket;
sys/netinet/tcp_input.c
295
tp->t_flags |= TF_ACKNOW;
sys/netinet/tcp_input.c
2950
tcp_trace(TA_DROP, ostate, tp, tcp_saveti, 0);
sys/netinet/tcp_input.c
297
TCP_SET_DELACK(tp);
sys/netinet/tcp_input.c
301
icmp_check(struct tcpcb *tp, const struct tcphdr *th, int acked)
sys/netinet/tcp_input.c
308
if ((tp->t_flags & TF_PMTUD_PEND) &&
sys/netinet/tcp_input.c
3086
tcp_dooptions(struct tcpcb *tp, const u_char *cp, int cnt, struct tcphdr *th,
sys/netinet/tcp_input.c
309
SEQ_GT(th->th_ack, tp->t_pmtud_th_seq))
sys/netinet/tcp_input.c
310
tp->t_flags &= ~TF_PMTUD_PEND;
sys/netinet/tcp_input.c
3120
if (TCPS_HAVERCVDSYN(tp->t_state))
sys/netinet/tcp_input.c
3131
if (TCPS_HAVERCVDSYN(tp->t_state))
sys/netinet/tcp_input.c
3133
tp->t_flags |= TF_RCVD_SCALE;
sys/netinet/tcp_input.c
3134
tp->requested_s_scale = cp[2];
sys/netinet/tcp_input.c
3135
if (tp->requested_s_scale > TCP_MAX_WINSHIFT) {
sys/netinet/tcp_input.c
316
if (tp->t_pmtud_mss_acked < acked)
sys/netinet/tcp_input.c
3160
tp->requested_s_scale, buf,
sys/netinet/tcp_input.c
3162
tp->requested_s_scale = TCP_MAX_WINSHIFT;
sys/netinet/tcp_input.c
317
tp->t_pmtud_mss_acked = acked;
sys/netinet/tcp_input.c
3177
if (TCPS_HAVERCVDSYN(tp->t_state))
sys/netinet/tcp_input.c
3183
tp->t_flags |= TF_RCVD_TSTMP;
sys/netinet/tcp_input.c
3184
tp->ts_recent = oi->ts_val;
sys/netinet/tcp_input.c
3185
tp->ts_recent_age = tcp_now;
sys/netinet/tcp_input.c
3193
if (TCPS_HAVERCVDSYN(tp->t_state))
sys/netinet/tcp_input.c
3196
tp->t_flags |= TF_SACK_PERMIT;
sys/netinet/tcp_input.c
3197
tp->t_flags |= TF_WILL_SACK;
sys/netinet/tcp_input.c
3202
tcp_sack_option(tp, th, cp, optlen);
sys/netinet/tcp_input.c
3214
tp->t_flags |= TF_SIGNATURE;
sys/netinet/tcp_input.c
3223
if (tp->t_flags & TF_SIGNATURE) {
sys/netinet/tcp_input.c
3225
if (sav == NULL && tp->t_state == TCPS_LISTEN)
sys/netinet/tcp_input.c
3229
if ((sigp ? TF_SIGNATURE : 0) ^ (tp->t_flags & TF_SIGNATURE))
sys/netinet/tcp_input.c
3274
struct tcpcb *tp = sototcpcb(so);
sys/netinet/tcp_input.c
3276
tp->t_iobc = *cp;
sys/netinet/tcp_input.c
3277
tp->t_oobflags |= TCPOOB_HAVEDATA;
sys/netinet/tcp_input.c
3298
tcp_xmit_timer(struct tcpcb *tp, uint32_t rtt)
sys/netinet/tcp_input.c
3303
if (tp->t_srtt != 0) {
sys/netinet/tcp_input.c
3312
delta = (rtt << 2) - (tp->t_srtt >> TCP_RTT_SHIFT);
sys/netinet/tcp_input.c
3319
if ((tp->t_srtt += delta) <= 0)
sys/netinet/tcp_input.c
3320
tp->t_srtt = 1 << 2;
sys/netinet/tcp_input.c
3337
delta -= (tp->t_rttvar >> TCP_RTTVAR_SHIFT);
sys/netinet/tcp_input.c
3344
if ((tp->t_rttvar += delta) <= 0)
sys/netinet/tcp_input.c
3345
tp->t_rttvar = 1 << 2;
sys/netinet/tcp_input.c
3358
&& tp->t_srtt > tcp_msl_remote_threshold
sys/netinet/tcp_input.c
3359
&& tp->t_msl < tcp_msl_remote) {
sys/netinet/tcp_input.c
3360
tp->t_msl = MIN(tcp_msl_remote, TCP_MAXMSL);
sys/netinet/tcp_input.c
3371
tp->t_srtt = rtt << (TCP_RTT_SHIFT + 2);
sys/netinet/tcp_input.c
3372
tp->t_rttvar = rtt << (TCP_RTTVAR_SHIFT + 2 - 1);
sys/netinet/tcp_input.c
3374
tp->t_rtttime = 0;
sys/netinet/tcp_input.c
3375
tp->t_rxtshift = 0;
sys/netinet/tcp_input.c
3388
TCPT_RANGESET(tp->t_rxtcur, TCP_REXMTVAL(tp),
sys/netinet/tcp_input.c
3389
uimax(tp->t_rttmin, rtt + 2), TCPTV_REXMTMAX);
sys/netinet/tcp_input.c
3398
tp->t_softerror = 0;
sys/netinet/tcp_input.c
455
tcp_reass(struct tcpcb *tp, const struct tcphdr *th, struct mbuf *m, int tlen)
sys/netinet/tcp_input.c
469
so = tp->t_inpcb->inp_socket;
sys/netinet/tcp_input.c
471
TCP_REASS_LOCK_CHECK(tp);
sys/netinet/tcp_input.c
493
if ((p = TAILQ_LAST(&tp->segq, ipqehead)) != NULL) {
sys/netinet/tcp_input.c
504
TAILQ_REMOVE(&tp->timeq, p, ipqe_timeq);
sys/netinet/tcp_input.c
518
q = TAILQ_FIRST(&tp->segq);
sys/netinet/tcp_input.c
533
TAILQ_REMOVE(&tp->timeq, q, ipqe_timeq);
sys/netinet/tcp_input.c
593
tcp_new_dsack(tp, pkt_seq, pkt_len);
sys/netinet/tcp_input.c
659
TAILQ_REMOVE(&tp->segq, q, ipqe_q);
sys/netinet/tcp_input.c
660
TAILQ_REMOVE(&tp->timeq, q, ipqe_timeq);
sys/netinet/tcp_input.c
661
tp->t_segqlen--;
sys/netinet/tcp_input.c
662
KASSERT(tp->t_segqlen >= 0);
sys/netinet/tcp_input.c
663
KASSERT(tp->t_segqlen != 0 ||
sys/netinet/tcp_input.c
664
(TAILQ_EMPTY(&tp->segq) &&
sys/netinet/tcp_input.c
665
TAILQ_EMPTY(&tp->timeq)));
sys/netinet/tcp_input.c
691
TAILQ_REMOVE(&tp->segq, q, ipqe_q);
sys/netinet/tcp_input.c
692
TAILQ_REMOVE(&tp->timeq, q, ipqe_timeq);
sys/netinet/tcp_input.c
693
tp->t_segqlen--;
sys/netinet/tcp_input.c
694
KASSERT(tp->t_segqlen >= 0);
sys/netinet/tcp_input.c
695
KASSERT(tp->t_segqlen != 0 ||
sys/netinet/tcp_input.c
696
(TAILQ_EMPTY(&tp->segq) && TAILQ_EMPTY(&tp->timeq)));
sys/netinet/tcp_input.c
713
if (tp->t_segqlen > tcp_reass_maxqueuelen) {
sys/netinet/tcp_input.c
738
tp->t_rcvoopack++;
sys/netinet/tcp_input.c
757
TAILQ_INSERT_HEAD(&tp->segq, tiqe, ipqe_q);
sys/netinet/tcp_input.c
759
TAILQ_INSERT_AFTER(&tp->segq, p, tiqe, ipqe_q);
sys/netinet/tcp_input.c
761
tp->t_segqlen++;
sys/netinet/tcp_input.c
764
TAILQ_INSERT_HEAD(&tp->timeq, tiqe, ipqe_timeq);
sys/netinet/tcp_input.c
771
if (TCPS_HAVEESTABLISHED(tp->t_state) == 0)
sys/netinet/tcp_input.c
773
q = TAILQ_FIRST(&tp->segq);
sys/netinet/tcp_input.c
774
if (q == NULL || q->ipqe_seq != tp->rcv_nxt)
sys/netinet/tcp_input.c
776
if (tp->t_state == TCPS_SYN_RECEIVED && q->ipqe_len)
sys/netinet/tcp_input.c
779
tp->rcv_nxt += q->ipqe_len;
sys/netinet/tcp_input.c
781
nd_hint(tp);
sys/netinet/tcp_input.c
783
TAILQ_REMOVE(&tp->segq, q, ipqe_q);
sys/netinet/tcp_input.c
784
TAILQ_REMOVE(&tp->timeq, q, ipqe_timeq);
sys/netinet/tcp_input.c
785
tp->t_segqlen--;
sys/netinet/tcp_input.c
786
KASSERT(tp->t_segqlen >= 0);
sys/netinet/tcp_input.c
787
KASSERT(tp->t_segqlen != 0 ||
sys/netinet/tcp_input.c
788
(TAILQ_EMPTY(&tp->segq) && TAILQ_EMPTY(&tp->timeq)));
sys/netinet/tcp_input.c
794
TCP_REASS_UNLOCK(tp);
sys/netinet/tcp_input.c
799
TCP_REASS_UNLOCK(tp);
sys/netinet/tcp_output.c
1000
!TCP_TIMER_ISARMED(tp, TCPT_REXMT) &&
sys/netinet/tcp_output.c
1001
!TCP_TIMER_ISARMED(tp, TCPT_PERSIST)) {
sys/netinet/tcp_output.c
1002
TCP_TIMER_ARM(tp, TCPT_REXMT, tp->t_rxtcur);
sys/netinet/tcp_output.c
1028
if (so->so_snd.sb_cc && TCP_TIMER_ISARMED(tp, TCPT_REXMT) == 0 &&
sys/netinet/tcp_output.c
1029
TCP_TIMER_ISARMED(tp, TCPT_PERSIST) == 0) {
sys/netinet/tcp_output.c
1030
tp->t_rxtshift = 0;
sys/netinet/tcp_output.c
1031
tcp_setpersist(tp);
sys/netinet/tcp_output.c
1038
TCP_REASS_UNLOCK(tp);
sys/netinet/tcp_output.c
1069
synrt = inpcb_rtentry(tp->t_inpcb);
sys/netinet/tcp_output.c
1070
tp->snd_nxt = tp->iss;
sys/netinet/tcp_output.c
1071
tp->t_ourmss = tcp_mss_to_advertise(synrt != NULL ?
sys/netinet/tcp_output.c
1073
inpcb_rtentry_unref(synrt, tp->t_inpcb);
sys/netinet/tcp_output.c
1074
if ((tp->t_flags & TF_NOOPT) == 0 && OPT_FITS(TCPOLEN_MAXSEG)) {
sys/netinet/tcp_output.c
1077
*optp++ = (tp->t_ourmss >> 8) & 0xff;
sys/netinet/tcp_output.c
1078
*optp++ = tp->t_ourmss & 0xff;
sys/netinet/tcp_output.c
1081
if ((tp->t_flags & TF_REQ_SCALE) &&
sys/netinet/tcp_output.c
1083
(tp->t_flags & TF_RCVD_SCALE)) &&
sys/netinet/tcp_output.c
1089
tp->request_r_scale);
sys/netinet/tcp_output.c
1106
if ((tp->t_flags & (TF_REQ_TSTMP|TF_NOOPT)) == TF_REQ_TSTMP &&
sys/netinet/tcp_output.c
1109
(tp->t_flags & TF_RCVD_TSTMP))) {
sys/netinet/tcp_output.c
1121
*lp++ = htonl(TCP_TIMESTAMP(tp));
sys/netinet/tcp_output.c
1122
*lp = htonl(tp->ts_recent);
sys/netinet/tcp_output.c
1127
if (tp->rfbuf_ts == 0 &&
sys/netinet/tcp_output.c
1129
tp->rfbuf_ts = TCP_TIMESTAMP(tp);
sys/netinet/tcp_output.c
1137
if (tp->t_flags & TF_SIGNATURE) {
sys/netinet/tcp_output.c
1169
if ((tp->rcv_sack_flags & TCPSACK_HAVED) != 0) {
sys/netinet/tcp_output.c
1171
*lp++ = htonl(tp->rcv_dsack_block.left);
sys/netinet/tcp_output.c
1172
*lp++ = htonl(tp->rcv_dsack_block.right);
sys/netinet/tcp_output.c
1173
tp->rcv_sack_flags &= ~TCPSACK_HAVED;
sys/netinet/tcp_output.c
1175
for (tiqe = TAILQ_FIRST(&tp->timeq);
sys/netinet/tcp_output.c
1195
reset: TCP_REASS_UNLOCK(tp);
sys/netinet/tcp_output.c
1215
TCP_REASS_UNLOCK(tp);
sys/netinet/tcp_output.c
1234
error = tcp_build_datapkt(tp, so, off, len, hdrlen, &m);
sys/netinet/tcp_output.c
1247
if (tp->t_flags & TF_ACKNOW)
sys/netinet/tcp_output.c
1251
else if (SEQ_GT(tp->snd_up, tp->snd_una))
sys/netinet/tcp_output.c
1297
if (tp->t_template == NULL)
sys/netinet/tcp_output.c
1299
if (tp->t_template->m_len < iphdrlen)
sys/netinet/tcp_output.c
1300
panic("%s: %d < %d", __func__, tp->t_template->m_len, iphdrlen);
sys/netinet/tcp_output.c
1301
bcopy(mtod(tp->t_template, void *), mtod(m, void *), iphdrlen);
sys/netinet/tcp_output.c
1309
if (tp->t_state == TCPS_SYN_SENT && tcp_do_ecn) {
sys/netinet/tcp_output.c
1310
if (tp->t_flags & TF_SYN_REXMT) {
sys/netinet/tcp_output.c
1311
if (tp->t_ecn_retries--)
sys/netinet/tcp_output.c
1315
tp->t_ecn_retries = tcp_ecn_maxretries;
sys/netinet/tcp_output.c
1319
if (TCP_ECN_ALLOWED(tp)) {
sys/netinet/tcp_output.c
1325
if (len > 0 && SEQ_GEQ(tp->snd_nxt, tp->snd_max) &&
sys/netinet/tcp_output.c
1326
!(tp->t_force && len == 1)) {
sys/netinet/tcp_output.c
1334
if (tp->t_flags & TF_ECN_SND_CWR) {
sys/netinet/tcp_output.c
1336
tp->t_flags &= ~TF_ECN_SND_CWR;
sys/netinet/tcp_output.c
1338
if (tp->t_flags & TF_ECN_SND_ECE) {
sys/netinet/tcp_output.c
1356
if (TCP_SACK_ENABLED(tp) && sack_rxmit) {
sys/netinet/tcp_output.c
1361
TCP_TIMER_ISARMED(tp, TCPT_PERSIST))
sys/netinet/tcp_output.c
1362
th->th_seq = htonl(tp->snd_nxt);
sys/netinet/tcp_output.c
1364
th->th_seq = htonl(tp->snd_max);
sys/netinet/tcp_output.c
1366
th->th_ack = htonl(tp->rcv_nxt);
sys/netinet/tcp_output.c
1378
if (win > (long)TCP_MAXWIN << tp->rcv_scale)
sys/netinet/tcp_output.c
1379
win = (long)TCP_MAXWIN << tp->rcv_scale;
sys/netinet/tcp_output.c
1380
if (win < (long)(int32_t)(tp->rcv_adv - tp->rcv_nxt))
sys/netinet/tcp_output.c
1381
win = (long)(int32_t)(tp->rcv_adv - tp->rcv_nxt);
sys/netinet/tcp_output.c
1382
th->th_win = htons((u_int16_t) (win>>tp->rcv_scale));
sys/netinet/tcp_output.c
1384
tp->t_sndzerowin++;
sys/netinet/tcp_output.c
1386
if (SEQ_GT(tp->snd_up, tp->snd_nxt)) {
sys/netinet/tcp_output.c
1387
u_int32_t urp = tp->snd_up - tp->snd_nxt;
sys/netinet/tcp_output.c
1399
tp->snd_up = tp->snd_una; /* drag it along */
sys/netinet/tcp_output.c
1402
if (sigoff && (tp->t_flags & TF_SIGNATURE)) {
sys/netinet/tcp_output.c
1464
if (tp->t_force == 0 || TCP_TIMER_ISARMED(tp, TCPT_PERSIST) == 0) {
sys/netinet/tcp_output.c
1465
tcp_seq startseq = tp->snd_nxt;
sys/netinet/tcp_output.c
1473
tp->snd_nxt++;
sys/netinet/tcp_output.c
1476
tp->snd_nxt += len;
sys/netinet/tcp_output.c
1477
if (SEQ_GT(tp->snd_nxt, tp->snd_max)) {
sys/netinet/tcp_output.c
1478
tp->snd_max = tp->snd_nxt;
sys/netinet/tcp_output.c
1483
if (tp->t_rtttime == 0) {
sys/netinet/tcp_output.c
1484
tp->t_rtttime = tcp_now;
sys/netinet/tcp_output.c
1485
tp->t_rtseq = startseq;
sys/netinet/tcp_output.c
1499
if (TCP_TIMER_ISARMED(tp, TCPT_REXMT) == 0) {
sys/netinet/tcp_output.c
1500
if ((sack_rxmit && tp->snd_nxt != tp->snd_max)
sys/netinet/tcp_output.c
1501
|| tp->snd_nxt != tp->snd_una) {
sys/netinet/tcp_output.c
1502
if (TCP_TIMER_ISARMED(tp, TCPT_PERSIST)) {
sys/netinet/tcp_output.c
1503
TCP_TIMER_DISARM(tp, TCPT_PERSIST);
sys/netinet/tcp_output.c
1504
tp->t_rxtshift = 0;
sys/netinet/tcp_output.c
1506
TCP_TIMER_ARM(tp, TCPT_REXMT, tp->t_rxtcur);
sys/netinet/tcp_output.c
1508
&& TCP_TIMER_ISARMED(tp, TCPT_PERSIST) == 0) {
sys/netinet/tcp_output.c
1514
tp->t_rxtshift = 0;
sys/netinet/tcp_output.c
1515
tcp_setpersist(tp);
sys/netinet/tcp_output.c
1519
if (SEQ_GT(tp->snd_nxt + len, tp->snd_max))
sys/netinet/tcp_output.c
1520
tp->snd_max = tp->snd_nxt + len;
sys/netinet/tcp_output.c
1527
tcp_trace(TA_OUTPUT, tp->t_state, tp, m, 0);
sys/netinet/tcp_output.c
1542
if (tp->t_inpcb->inp_af == AF_INET) {
sys/netinet/tcp_output.c
1543
ip->ip_ttl = in4p_ip(tp->t_inpcb).ip_ttl;
sys/netinet/tcp_output.c
1544
ip->ip_tos = in4p_ip(tp->t_inpcb).ip_tos | ecn_tos;
sys/netinet/tcp_output.c
1547
else if (tp->t_inpcb->inp_af == AF_INET6) {
sys/netinet/tcp_output.c
1548
ip->ip_ttl = in6pcb_selecthlim(tp->t_inpcb, NULL); /*XXX*/
sys/netinet/tcp_output.c
1557
if (tp->t_family == AF_INET6) {
sys/netinet/tcp_output.c
1564
ip6->ip6_hlim = in6pcb_selecthlim_rt(tp->t_inpcb);
sys/netinet/tcp_output.c
1581
if (tp->t_inpcb->inp_af == AF_INET)
sys/netinet/tcp_output.c
1582
opts = tp->t_inpcb->inp_options;
sys/netinet/tcp_output.c
1586
(tp->t_mtudisc ? IP_MTUDISC : 0) |
sys/netinet/tcp_output.c
1587
(so->so_options & SO_DONTROUTE), NULL, tp->t_inpcb);
sys/netinet/tcp_output.c
1595
if (tp->t_inpcb->inp_af == AF_INET6)
sys/netinet/tcp_output.c
1596
opts = in6p_outputopts(tp->t_inpcb);
sys/netinet/tcp_output.c
1600
NULL, tp->t_inpcb, NULL);
sys/netinet/tcp_output.c
1612
tcp_quench(tp->t_inpcb);
sys/netinet/tcp_output.c
1615
error == EHOSTDOWN) && TCPS_HAVERCVDSYN(tp->t_state)) {
sys/netinet/tcp_output.c
1616
tp->t_softerror = error;
sys/netinet/tcp_output.c
1625
if (tp->t_flags & TF_DELACK)
sys/netinet/tcp_output.c
1626
TCP_RESTART_DELACK(tp);
sys/netinet/tcp_output.c
1631
if (packetlen > tp->t_pmtud_mtu_sent)
sys/netinet/tcp_output.c
1632
tp->t_pmtud_mtu_sent = packetlen;
sys/netinet/tcp_output.c
1636
if (tp->t_flags & TF_DELACK)
sys/netinet/tcp_output.c
1646
if (win > 0 && SEQ_GT(tp->rcv_nxt+win, tp->rcv_adv))
sys/netinet/tcp_output.c
1647
tp->rcv_adv = tp->rcv_nxt + win;
sys/netinet/tcp_output.c
1648
tp->last_ack_sent = tp->rcv_nxt;
sys/netinet/tcp_output.c
1649
tp->t_flags &= ~TF_ACKNOW;
sys/netinet/tcp_output.c
1650
TCP_CLEAR_DELACK(tp);
sys/netinet/tcp_output.c
1655
if (sendalot && (tp->t_congctl == &tcp_reno_ctl || --maxburst))
sys/netinet/tcp_output.c
1661
tcp_setpersist(struct tcpcb *tp)
sys/netinet/tcp_output.c
1663
int t = ((tp->t_srtt >> 2) + tp->t_rttvar) >> (1 + 2);
sys/netinet/tcp_output.c
1666
if (TCP_TIMER_ISARMED(tp, TCPT_REXMT))
sys/netinet/tcp_output.c
1671
if (t < tp->t_rttmin)
sys/netinet/tcp_output.c
1672
t = tp->t_rttmin;
sys/netinet/tcp_output.c
1673
TCPT_RANGESET(nticks, t * tcp_backoff[tp->t_rxtshift],
sys/netinet/tcp_output.c
1675
TCP_TIMER_ARM(tp, TCPT_PERSIST, nticks);
sys/netinet/tcp_output.c
1676
if (tp->t_rxtshift < TCP_MAXRXTSHIFT)
sys/netinet/tcp_output.c
1677
tp->t_rxtshift++;
sys/netinet/tcp_output.c
226
tcp_segsize(struct tcpcb *tp, int *txsegsizep, int *rxsegsizep,
sys/netinet/tcp_output.c
229
struct inpcb *inp = tp->t_inpcb;
sys/netinet/tcp_output.c
240
switch (tp->t_family) {
sys/netinet/tcp_output.c
262
if (tp->t_mtudisc && rt->rt_rmx.rmx_mtu != 0) {
sys/netinet/tcp_output.c
279
else if (inp->inp_af == AF_INET && tp->t_mtudisc)
sys/netinet/tcp_output.c
289
if (tp->t_mtudisc || in_localaddr(d))
sys/netinet/tcp_output.c
296
size = tp->t_mtudisc ? ifp->if_mtu : IPV6_MMTU;
sys/netinet/tcp_output.c
307
optlen = tcp_optlen(tp);
sys/netinet/tcp_output.c
318
optlen += ipsec4_hdrsiz_tcp(tp);
sys/netinet/tcp_output.c
324
if (inp->inp_af == AF_INET6 && tp->t_family == AF_INET) {
sys/netinet/tcp_output.c
328
optlen += ipsec4_hdrsiz_tcp(tp);
sys/netinet/tcp_output.c
335
optlen += ipsec6_hdrsiz_tcp(tp);
sys/netinet/tcp_output.c
358
*txsegsizep = uimin(tp->t_peermss - optlen, size);
sys/netinet/tcp_output.c
359
*rxsegsizep = uimin(tp->t_ourmss - optlen, size);
sys/netinet/tcp_output.c
378
if (*txsegsizep != tp->t_segsz) {
sys/netinet/tcp_output.c
388
if (*txsegsizep < tp->t_segsz) {
sys/netinet/tcp_output.c
389
tp->snd_cwnd = uimax((tp->snd_cwnd / tp->t_segsz)
sys/netinet/tcp_output.c
391
tp->snd_ssthresh = uimax((tp->snd_ssthresh / tp->t_segsz)
sys/netinet/tcp_output.c
394
tp->t_segsz = *txsegsizep;
sys/netinet/tcp_output.c
401
tcp_build_datapkt(struct tcpcb *tp, struct socket *so, int off,
sys/netinet/tcp_output.c
408
if (tp->t_force && len == 1)
sys/netinet/tcp_output.c
410
else if (SEQ_LT(tp->snd_nxt, tp->snd_max)) {
sys/netinet/tcp_output.c
411
tp->t_sndrexmitpack++;
sys/netinet/tcp_output.c
450
if (off == 0 || tp->t_lastm == NULL ||
sys/netinet/tcp_output.c
451
(tp->t_lastoff + tp->t_lastlen) != off) {
sys/netinet/tcp_output.c
457
tp->t_lastm = so->so_snd.sb_mb;
sys/netinet/tcp_output.c
458
tp->t_inoff = off;
sys/netinet/tcp_output.c
461
tp->t_inoff += tp->t_lastlen;
sys/netinet/tcp_output.c
465
while (tp->t_inoff > 0) {
sys/netinet/tcp_output.c
466
if (tp->t_lastm == NULL)
sys/netinet/tcp_output.c
468
if (tp->t_inoff < tp->t_lastm->m_len)
sys/netinet/tcp_output.c
470
tp->t_inoff -= tp->t_lastm->m_len;
sys/netinet/tcp_output.c
471
tp->t_lastm = tp->t_lastm->m_next;
sys/netinet/tcp_output.c
474
tp->t_lastoff = off;
sys/netinet/tcp_output.c
475
tp->t_lastlen = len;
sys/netinet/tcp_output.c
476
m0 = tp->t_lastm;
sys/netinet/tcp_output.c
477
off = tp->t_inoff;
sys/netinet/tcp_output.c
505
tcp_output(struct tcpcb *tp)
sys/netinet/tcp_output.c
539
so = tp->t_inpcb->inp_socket;
sys/netinet/tcp_output.c
540
ro = &tp->t_inpcb->inp_route;
sys/netinet/tcp_output.c
542
switch (af = tp->t_family) {
sys/netinet/tcp_output.c
545
if (tp->t_inpcb)
sys/netinet/tcp_output.c
552
if (tcp_segsize(tp, &txsegsize, &rxsegsize, &alwaysfrag))
sys/netinet/tcp_output.c
555
idle = (tp->snd_max == tp->snd_una);
sys/netinet/tcp_output.c
565
has_tso4 = tp->t_inpcb->inp_af == AF_INET &&
sys/netinet/tcp_output.c
567
(!ipsec_used || ipsec_pcb_skip_ipsec(tp->t_inpcb->inp_sp,
sys/netinet/tcp_output.c
570
(rt = rtcache_validate(&tp->t_inpcb->inp_route)) != NULL &&
sys/netinet/tcp_output.c
573
rtcache_unref(rt, &tp->t_inpcb->inp_route);
sys/netinet/tcp_output.c
578
has_tso6 = tp->t_inpcb->inp_af == AF_INET6 &&
sys/netinet/tcp_output.c
580
(!ipsec_used || ipsec_pcb_skip_ipsec(tp->t_inpcb->inp_sp,
sys/netinet/tcp_output.c
583
(rt = rtcache_validate(&tp->t_inpcb->inp_route)) != NULL &&
sys/netinet/tcp_output.c
586
rtcache_unref(rt, &tp->t_inpcb->inp_route);
sys/netinet/tcp_output.c
610
tp->snd_cwnd = uimin(tp->snd_cwnd,
sys/netinet/tcp_output.c
612
(tp->snd_nxt - tp->snd_una));
sys/netinet/tcp_output.c
614
if (idle && (tcp_now - tp->t_rcvtime) >= tp->t_rxtcur) {
sys/netinet/tcp_output.c
621
if (tp->t_inpcb->inp_af == AF_INET &&
sys/netinet/tcp_output.c
622
in_localaddr(in4p_faddr(tp->t_inpcb)))
sys/netinet/tcp_output.c
625
else if (tp->t_inpcb->inp_af == AF_INET6 &&
sys/netinet/tcp_output.c
626
in6_localaddr(&in6p_faddr(tp->t_inpcb)))
sys/netinet/tcp_output.c
629
tp->snd_cwnd = uimin(tp->snd_cwnd,
sys/netinet/tcp_output.c
638
if ((tp->t_flags & (TF_ECN_SND_CWR|TF_ECN_SND_ECE)) != 0) {
sys/netinet/tcp_output.c
642
TCP_REASS_LOCK(tp);
sys/netinet/tcp_output.c
643
sack_numblks = tcp_sack_numblks(tp);
sys/netinet/tcp_output.c
652
if ((tp->rcv_sack_flags & TCPSACK_HAVED) != 0) {
sys/netinet/tcp_output.c
670
if (TCP_SACK_ENABLED(tp) && SEQ_LT(tp->snd_nxt, tp->snd_max))
sys/netinet/tcp_output.c
671
tcp_sack_adjust(tp);
sys/netinet/tcp_output.c
673
off = tp->snd_nxt - tp->snd_una;
sys/netinet/tcp_output.c
674
win = uimin(tp->snd_wnd, tp->snd_cwnd);
sys/netinet/tcp_output.c
676
flags = tcp_outflags[tp->t_state];
sys/netinet/tcp_output.c
694
if (!TCP_SACK_ENABLED(tp))
sys/netinet/tcp_output.c
696
if (tp->t_partialacks < 0)
sys/netinet/tcp_output.c
698
p = tcp_sack_output(tp, &sack_bytes_rxmt);
sys/netinet/tcp_output.c
702
cwin = uimin(tp->snd_wnd, tp->snd_cwnd) - sack_bytes_rxmt;
sys/netinet/tcp_output.c
706
if (SEQ_GT(p->end, tp->snd_recover)) {
sys/netinet/tcp_output.c
712
if (SEQ_GEQ(p->rxmit, tp->snd_recover)) {
sys/netinet/tcp_output.c
723
len = ((long)ulmin(cwin, tp->snd_recover - p->rxmit));
sys/netinet/tcp_output.c
726
off = p->rxmit - tp->snd_una;
sys/netinet/tcp_output.c
730
KASSERT(p->rxmit + len == tp->snd_max);
sys/netinet/tcp_output.c
745
if (tp->t_force) {
sys/netinet/tcp_output.c
767
TCP_TIMER_DISARM(tp, TCPT_PERSIST);
sys/netinet/tcp_output.c
768
tp->t_rxtshift = 0;
sys/netinet/tcp_output.c
773
if (TCP_SACK_ENABLED(tp) && tp->t_partialacks >= 0) {
sys/netinet/tcp_output.c
781
if (tp->snd_wnd < so->so_snd.sb_cc) {
sys/netinet/tcp_output.c
782
len = tp->snd_wnd - off;
sys/netinet/tcp_output.c
798
cwin = tp->snd_cwnd -
sys/netinet/tcp_output.c
799
(tp->snd_nxt - tp->sack_newdata) -
sys/netinet/tcp_output.c
839
TCP_TIMER_DISARM(tp, TCPT_REXMT);
sys/netinet/tcp_output.c
840
tp->t_rxtshift = 0;
sys/netinet/tcp_output.c
841
tp->snd_nxt = tp->snd_una;
sys/netinet/tcp_output.c
842
if (TCP_TIMER_ISARMED(tp, TCPT_PERSIST) == 0)
sys/netinet/tcp_output.c
843
tcp_setpersist(tp);
sys/netinet/tcp_output.c
878
if ((tp->snd_wnd / 4 * 5) >= so->so_snd.sb_hiwat &&
sys/netinet/tcp_output.c
881
win >= (so->so_snd.sb_cc - (tp->snd_nxt - tp->snd_una))) {
sys/netinet/tcp_output.c
910
if (SEQ_LT(p->rxmit + len, tp->snd_una + so->so_snd.sb_cc))
sys/netinet/tcp_output.c
930
((idle || tp->t_flags & TF_NODELAY) &&
sys/netinet/tcp_output.c
933
if (tp->t_force)
sys/netinet/tcp_output.c
935
if (len >= tp->max_sndwnd / 2)
sys/netinet/tcp_output.c
937
if (SEQ_LT(tp->snd_nxt, tp->snd_max))
sys/netinet/tcp_output.c
957
long recwin = uimin(win, (long)TCP_MAXWIN << tp->rcv_scale);
sys/netinet/tcp_output.c
964
if (SEQ_GT(tp->rcv_adv, tp->rcv_nxt))
sys/netinet/tcp_output.c
965
oldwin = tp->rcv_adv - tp->rcv_nxt;
sys/netinet/tcp_output.c
974
if (recwin >> tp->rcv_scale <= oldwin >> tp->rcv_scale)
sys/netinet/tcp_output.c
988
if (tp->t_flags & TF_ACKNOW)
sys/netinet/tcp_output.c
992
if (SEQ_GT(tp->snd_up, tp->snd_una))
sys/netinet/tcp_output.c
999
if (TCP_SACK_ENABLED(tp) && SEQ_GT(tp->snd_max, tp->snd_una) &&
sys/netinet/tcp_sack.c
169
sack_allochole(struct tcpcb *tp)
sys/netinet/tcp_sack.c
173
if (tp->snd_numholes >= tcp_sack_tp_maxholes ||
sys/netinet/tcp_sack.c
181
tp->snd_numholes++;
sys/netinet/tcp_sack.c
188
sack_inserthole(struct tcpcb *tp, tcp_seq start, tcp_seq end,
sys/netinet/tcp_sack.c
193
hole = sack_allochole(tp);
sys/netinet/tcp_sack.c
200
TAILQ_INSERT_AFTER(&tp->snd_holes, prev, hole, sackhole_q);
sys/netinet/tcp_sack.c
202
TAILQ_INSERT_TAIL(&tp->snd_holes, hole, sackhole_q);
sys/netinet/tcp_sack.c
208
sack_removehole(struct tcpcb *tp, struct sackhole *hole)
sys/netinet/tcp_sack.c
213
tp->snd_numholes--;
sys/netinet/tcp_sack.c
215
TAILQ_REMOVE(&tp->snd_holes, hole, sackhole_q);
sys/netinet/tcp_sack.c
226
tcp_new_dsack(struct tcpcb *tp, tcp_seq seq, u_int32_t len)
sys/netinet/tcp_sack.c
229
if (TCP_SACK_ENABLED(tp)) {
sys/netinet/tcp_sack.c
230
tp->rcv_dsack_block.left = seq;
sys/netinet/tcp_sack.c
231
tp->rcv_dsack_block.right = seq + len;
sys/netinet/tcp_sack.c
232
tp->rcv_sack_flags |= TCPSACK_HAVED;
sys/netinet/tcp_sack.c
241
tcp_sack_option(struct tcpcb *tp, const struct tcphdr *th, const u_char *cp,
sys/netinet/tcp_sack.c
258
if (!TCP_SACK_ENABLED(tp) || ((th->th_flags & TH_ACK) == 0) ||
sys/netinet/tcp_sack.c
271
if (SEQ_LT(th->th_ack, tp->snd_una) || SEQ_GT(th->th_ack, tp->snd_max))
sys/netinet/tcp_sack.c
281
acked = (SEQ_GT(th->th_ack, tp->snd_una)) ? th->th_ack : tp->snd_una;
sys/netinet/tcp_sack.c
288
if (SEQ_LEQ(right, acked) || SEQ_GT(right, tp->snd_max) ||
sys/netinet/tcp_sack.c
307
cur = TAILQ_FIRST(&tp->snd_holes);
sys/netinet/tcp_sack.c
314
if (SEQ_GEQ(sack->right, tp->snd_fack))
sys/netinet/tcp_sack.c
315
tp->snd_fack = sack->right;
sys/netinet/tcp_sack.c
317
if (TAILQ_EMPTY(&tp->snd_holes)) {
sys/netinet/tcp_sack.c
319
cur = sack_inserthole(tp, th->th_ack, sack->left, NULL);
sys/netinet/tcp_sack.c
324
tp->rcv_lastsack = sack->right;
sys/netinet/tcp_sack.c
344
cur = sack_removehole(tp, cur);
sys/netinet/tcp_sack.c
368
tmp = sack_inserthole(tp, sack->right, cur->end,
sys/netinet/tcp_sack.c
382
if (SEQ_LT(tp->rcv_lastsack, sack->left)) {
sys/netinet/tcp_sack.c
386
cur = sack_inserthole(tp, tp->rcv_lastsack, sack->left,
sys/netinet/tcp_sack.c
392
if (SEQ_LT(tp->rcv_lastsack, sack->right)) {
sys/netinet/tcp_sack.c
393
tp->rcv_lastsack = sack->right;
sys/netinet/tcp_sack.c
403
tcp_del_sackholes(struct tcpcb *tp, const struct tcphdr *th)
sys/netinet/tcp_sack.c
406
tcp_seq lastack = SEQ_GT(th->th_ack, tp->snd_una) ?
sys/netinet/tcp_sack.c
407
th->th_ack : tp->snd_una;
sys/netinet/tcp_sack.c
408
struct sackhole *cur = TAILQ_FIRST(&tp->snd_holes);
sys/netinet/tcp_sack.c
412
cur = sack_removehole(tp, cur);
sys/netinet/tcp_sack.c
428
tcp_free_sackholes(struct tcpcb *tp)
sys/netinet/tcp_sack.c
433
while ((sack = TAILQ_FIRST(&tp->snd_holes)) != NULL) {
sys/netinet/tcp_sack.c
434
sack_removehole(tp, sack);
sys/netinet/tcp_sack.c
436
KASSERT(tp->snd_numholes == 0);
sys/netinet/tcp_sack.c
444
tcp_sack_output(struct tcpcb *tp, int *sack_bytes_rexmt)
sys/netinet/tcp_sack.c
448
if (!TCP_SACK_ENABLED(tp))
sys/netinet/tcp_sack.c
452
TAILQ_FOREACH(cur, &tp->snd_holes, sackhole_q) {
sys/netinet/tcp_sack.c
454
if (SEQ_LT(cur->rxmit, tp->snd_una)) {
sys/netinet/tcp_sack.c
473
tcp_sack_adjust(struct tcpcb *tp)
sys/netinet/tcp_sack.c
475
struct sackhole *cur = TAILQ_FIRST(&tp->snd_holes);
sys/netinet/tcp_sack.c
478
if (TAILQ_EMPTY(&tp->snd_holes))
sys/netinet/tcp_sack.c
480
if (SEQ_GEQ(tp->snd_nxt, tp->rcv_lastsack))
sys/netinet/tcp_sack.c
489
if (SEQ_LT(tp->snd_nxt, cur->end))
sys/netinet/tcp_sack.c
491
if (SEQ_GEQ(tp->snd_nxt, n->start))
sys/netinet/tcp_sack.c
494
tp->snd_nxt = n->start;
sys/netinet/tcp_sack.c
498
if (SEQ_LT(tp->snd_nxt, cur->end))
sys/netinet/tcp_sack.c
500
tp->snd_nxt = tp->rcv_lastsack;
sys/netinet/tcp_sack.c
510
tcp_sack_numblks(const struct tcpcb *tp)
sys/netinet/tcp_sack.c
514
if (!TCP_SACK_ENABLED(tp)) {
sys/netinet/tcp_sack.c
518
numblks = (((tp->rcv_sack_flags & TCPSACK_HAVED) != 0) ? 1 : 0) +
sys/netinet/tcp_sack.c
519
tp->t_segqlen;
sys/netinet/tcp_sack.c
536
sack_dump(const struct tcpcb *tp)
sys/netinet/tcp_sack.c
541
tp->snd_una, tp->snd_max);
sys/netinet/tcp_sack.c
543
tp->rcv_lastsack, tp->snd_fack);
sys/netinet/tcp_sack.c
544
printf("numholes=%d\n", tp->snd_numholes);
sys/netinet/tcp_sack.c
545
TAILQ_FOREACH(cur, &tp->snd_holes, sackhole_q) {
sys/netinet/tcp_seq.h
56
#define tcp_rcvseqinit(tp) \
sys/netinet/tcp_seq.h
57
(tp)->rcv_adv = (tp)->rcv_nxt = (tp)->irs + 1
sys/netinet/tcp_seq.h
59
#define tcp_sendseqinit(tp) \
sys/netinet/tcp_seq.h
60
(tp)->snd_una = (tp)->snd_nxt = (tp)->snd_max = (tp)->snd_up = \
sys/netinet/tcp_seq.h
61
(tp)->snd_recover = (tp)->snd_high = (tp)->snd_fack = (tp)->iss
sys/netinet/tcp_subr.c
1005
tp->ts_timebase = tcp_now - 1;
sys/netinet/tcp_subr.c
1007
tcp_congctl_select(tp, tcp_congctl_global_name);
sys/netinet/tcp_subr.c
1009
return tp;
sys/netinet/tcp_subr.c
1018
tcp_drop(struct tcpcb *tp, int errno)
sys/netinet/tcp_subr.c
1022
KASSERT(tp->t_inpcb != NULL);
sys/netinet/tcp_subr.c
1024
so = tp->t_inpcb->inp_socket;
sys/netinet/tcp_subr.c
1028
if (TCPS_HAVERCVDSYN(tp->t_state)) {
sys/netinet/tcp_subr.c
1029
tp->t_state = TCPS_CLOSED;
sys/netinet/tcp_subr.c
1030
(void) tcp_output(tp);
sys/netinet/tcp_subr.c
1034
if (errno == ETIMEDOUT && tp->t_softerror)
sys/netinet/tcp_subr.c
1035
errno = tp->t_softerror;
sys/netinet/tcp_subr.c
1037
return (tcp_close(tp));
sys/netinet/tcp_subr.c
1047
tcp_close(struct tcpcb *tp)
sys/netinet/tcp_subr.c
1057
inp = tp->t_inpcb;
sys/netinet/tcp_subr.c
1074
if (SEQ_LT(tp->iss + so->so_snd.sb_hiwat * 16, tp->snd_max) &&
sys/netinet/tcp_subr.c
1080
i = tp->t_srtt *
sys/netinet/tcp_subr.c
1095
i = tp->t_rttvar *
sys/netinet/tcp_subr.c
1111
(i = tp->snd_ssthresh) && rt->rt_rmx.rmx_ssthresh) ||
sys/netinet/tcp_subr.c
1117
i = (i + tp->t_segsz / 2) / tp->t_segsz;
sys/netinet/tcp_subr.c
1120
i *= (u_long)(tp->t_segsz + sizeof (struct tcpiphdr));
sys/netinet/tcp_subr.c
1131
TCP_REASS_LOCK(tp);
sys/netinet/tcp_subr.c
1132
(void) tcp_freeq(tp);
sys/netinet/tcp_subr.c
1133
TCP_REASS_UNLOCK(tp);
sys/netinet/tcp_subr.c
1136
tcp_free_sackholes(tp);
sys/netinet/tcp_subr.c
1137
tcp_congctl_release(tp);
sys/netinet/tcp_subr.c
1138
syn_cache_cleanup(tp);
sys/netinet/tcp_subr.c
1140
if (tp->t_template) {
sys/netinet/tcp_subr.c
1141
m_free(tp->t_template);
sys/netinet/tcp_subr.c
1142
tp->t_template = NULL;
sys/netinet/tcp_subr.c
1151
tp->t_flags |= TF_DEAD;
sys/netinet/tcp_subr.c
1161
callout_halt(&tp->t_timer[j], softnet_lock);
sys/netinet/tcp_subr.c
1162
callout_destroy(&tp->t_timer[j]);
sys/netinet/tcp_subr.c
1164
callout_halt(&tp->t_delack_ch, softnet_lock);
sys/netinet/tcp_subr.c
1165
callout_destroy(&tp->t_delack_ch);
sys/netinet/tcp_subr.c
1166
pool_put(&tcpcb_pool, tp);
sys/netinet/tcp_subr.c
1172
tcp_freeq(struct tcpcb *tp)
sys/netinet/tcp_subr.c
1177
TCP_REASS_LOCK_CHECK(tp);
sys/netinet/tcp_subr.c
1179
while ((qe = TAILQ_FIRST(&tp->segq)) != NULL) {
sys/netinet/tcp_subr.c
1180
TAILQ_REMOVE(&tp->segq, qe, ipqe_q);
sys/netinet/tcp_subr.c
1181
TAILQ_REMOVE(&tp->timeq, qe, ipqe_timeq);
sys/netinet/tcp_subr.c
1186
tp->t_segqlen = 0;
sys/netinet/tcp_subr.c
1187
KASSERT(TAILQ_EMPTY(&tp->timeq));
sys/netinet/tcp_subr.c
1214
struct tcpcb *tp;
sys/netinet/tcp_subr.c
1223
tp = intotcpcb(inp);
sys/netinet/tcp_subr.c
1224
if (tp != NULL) {
sys/netinet/tcp_subr.c
1229
if (tcp_reass_lock_try(tp) == 0)
sys/netinet/tcp_subr.c
1231
if (tcp_freeq(tp))
sys/netinet/tcp_subr.c
1233
TCP_REASS_UNLOCK(tp);
sys/netinet/tcp_subr.c
1249
struct tcpcb *tp = (struct tcpcb *)inp->inp_ppcb;
sys/netinet/tcp_subr.c
1259
if (tp->t_state == TCPS_ESTABLISHED &&
sys/netinet/tcp_subr.c
1263
} else if (TCPS_HAVEESTABLISHED(tp->t_state) == 0 &&
sys/netinet/tcp_subr.c
1264
tp->t_rxtshift > 3 && tp->t_softerror)
sys/netinet/tcp_subr.c
1267
tp->t_softerror = error;
sys/netinet/tcp_subr.c
1389
struct tcpcb *tp;
sys/netinet/tcp_subr.c
1443
tp = intotcpcb(inp);
sys/netinet/tcp_subr.c
1444
if (tp == NULL)
sys/netinet/tcp_subr.c
1447
if (SEQ_LT(seq, tp->snd_una) || SEQ_GT(seq, tp->snd_max))
sys/netinet/tcp_subr.c
1455
if (mtu >= tp->t_pmtud_mtu_sent)
sys/netinet/tcp_subr.c
1457
if (mtu >= tcp_hdrsz(tp) + tp->t_pmtud_mss_acked) {
sys/netinet/tcp_subr.c
1462
tp->t_flags &= ~TF_PMTUD_PEND;
sys/netinet/tcp_subr.c
1472
if (tp->t_flags & TF_PMTUD_PEND) {
sys/netinet/tcp_subr.c
1473
if (SEQ_LT(tp->t_pmtud_th_seq, seq))
sys/netinet/tcp_subr.c
1476
tp->t_flags |= TF_PMTUD_PEND;
sys/netinet/tcp_subr.c
1477
tp->t_pmtud_th_seq = seq;
sys/netinet/tcp_subr.c
1478
tp->t_pmtud_nextmtu = icp->icmp_nextmtu;
sys/netinet/tcp_subr.c
1479
tp->t_pmtud_ip_len = icp->icmp_ip.ip_len;
sys/netinet/tcp_subr.c
1480
tp->t_pmtud_ip_hl = icp->icmp_ip.ip_hl;
sys/netinet/tcp_subr.c
1519
struct tcpcb *tp = intotcpcb(inp);
sys/netinet/tcp_subr.c
1521
if (tp) {
sys/netinet/tcp_subr.c
1522
tp->snd_cwnd = tp->t_segsz;
sys/netinet/tcp_subr.c
1523
tp->t_bytes_acked = 0;
sys/netinet/tcp_subr.c
1552
struct tcpcb *tp = intotcpcb(inp);
sys/netinet/tcp_subr.c
1555
if (tp == NULL)
sys/netinet/tcp_subr.c
1579
tp->snd_cwnd =
sys/netinet/tcp_subr.c
1588
tp->snd_nxt = tp->sack_newdata = tp->snd_una;
sys/netinet/tcp_subr.c
1589
tcp_output(tp);
sys/netinet/tcp_subr.c
1612
struct tcpcb *tp = intotcpcb(inp);
sys/netinet/tcp_subr.c
1615
if (tp == NULL)
sys/netinet/tcp_subr.c
1640
tp->snd_cwnd = TCP_INITIAL_WINDOW(tcp_init_win,
sys/netinet/tcp_subr.c
1649
tp->snd_nxt = tp->sack_newdata = tp->snd_una;
sys/netinet/tcp_subr.c
1650
tcp_output(tp);
sys/netinet/tcp_subr.c
1741
tcp_mss_from_peer(struct tcpcb *tp, int offer)
sys/netinet/tcp_subr.c
1750
KASSERT(tp->t_inpcb != NULL);
sys/netinet/tcp_subr.c
1755
so = tp->t_inpcb->inp_socket;
sys/netinet/tcp_subr.c
1757
rt = inpcb_rtentry(tp->t_inpcb);
sys/netinet/tcp_subr.c
1768
tp->t_peermss = mss;
sys/netinet/tcp_subr.c
1769
mss -= tcp_optlen(tp);
sys/netinet/tcp_subr.c
1770
if (tp->t_inpcb->inp_af == AF_INET)
sys/netinet/tcp_subr.c
1771
mss -= ip_optlen(tp->t_inpcb);
sys/netinet/tcp_subr.c
1773
if (tp->t_inpcb->inp_af == AF_INET6)
sys/netinet/tcp_subr.c
1774
mss -= ip6_optlen(tp->t_inpcb);
sys/netinet/tcp_subr.c
1804
tp->t_segsz = mss;
sys/netinet/tcp_subr.c
1814
tp->snd_ssthresh = uimax(2 * mss, rt->rt_rmx.rmx_ssthresh);
sys/netinet/tcp_subr.c
1818
inpcb_rtentry_unref(rt, tp->t_inpcb);
sys/netinet/tcp_subr.c
1826
tcp_established(struct tcpcb *tp)
sys/netinet/tcp_subr.c
1834
KASSERT(tp->t_inpcb != NULL);
sys/netinet/tcp_subr.c
1840
while (tp->t_inpcb->inp_af == AF_INET) {
sys/netinet/tcp_subr.c
1841
so = tp->t_inpcb->inp_socket;
sys/netinet/tcp_subr.c
1843
rt = inpcb_rtentry(tp->t_inpcb);
sys/netinet/tcp_subr.c
1846
if (in4p_laddr(tp->t_inpcb).s_addr == INADDR_LOOPBACK) {
sys/netinet/tcp_subr.c
1847
tp->t_msl = tcp_msl_loop ? tcp_msl_loop : (TCPTV_MSL >> 2);
sys/netinet/tcp_subr.c
1853
tp->t_msl = tcp_msl_local ? tcp_msl_local : (TCPTV_MSL >> 1);
sys/netinet/tcp_subr.c
1856
if (in_localaddr(in4p_faddr(tp->t_inpcb))) {
sys/netinet/tcp_subr.c
1857
tp->t_msl = tcp_msl_local ? tcp_msl_local : (TCPTV_MSL >> 1);
sys/netinet/tcp_subr.c
1861
tp->t_msl = tcp_msl_remote ? tcp_msl_remote : TCPTV_MSL;
sys/netinet/tcp_subr.c
1866
tp->t_msl = MIN(tp->t_msl, TCP_MAXMSL);
sys/netinet/tcp_subr.c
1869
while (tp->t_inpcb->inp_af == AF_INET6) {
sys/netinet/tcp_subr.c
1870
so = tp->t_inpcb->inp_socket;
sys/netinet/tcp_subr.c
1872
rt = in6pcb_rtentry(tp->t_inpcb);
sys/netinet/tcp_subr.c
1877
if (IN6_ARE_ADDR_EQUAL(&in6p_laddr(tp->t_inpcb),
sys/netinet/tcp_subr.c
1879
tp->t_msl = tcp_msl_loop ? tcp_msl_loop : (TCPTV_MSL >> 2);
sys/netinet/tcp_subr.c
1885
tp->t_msl = tcp_msl_local ? tcp_msl_local : (TCPTV_MSL >> 1);
sys/netinet/tcp_subr.c
1888
if (in6_localaddr(&in6p_faddr(tp->t_inpcb))) {
sys/netinet/tcp_subr.c
1889
tp->t_msl = tcp_msl_local ? tcp_msl_local : (TCPTV_MSL >> 1);
sys/netinet/tcp_subr.c
1893
tp->t_msl = tcp_msl_remote ? tcp_msl_remote : TCPTV_MSL;
sys/netinet/tcp_subr.c
1898
tp->t_msl = MIN(tp->t_msl, TCP_MAXMSL);
sys/netinet/tcp_subr.c
1901
tp->t_state = TCPS_ESTABLISHED;
sys/netinet/tcp_subr.c
1902
TCP_TIMER_ARM(tp, TCPT_KEEP, tp->t_keepidle);
sys/netinet/tcp_subr.c
1913
if (bufsize > tp->t_ourmss) {
sys/netinet/tcp_subr.c
1914
bufsize = roundup(bufsize, tp->t_ourmss);
sys/netinet/tcp_subr.c
1920
inpcb_rtentry_unref(rt, tp->t_inpcb);
sys/netinet/tcp_subr.c
1930
tcp_rmx_rtt(struct tcpcb *tp)
sys/netinet/tcp_subr.c
1936
KASSERT(tp->t_inpcb != NULL);
sys/netinet/tcp_subr.c
1938
rt = inpcb_rtentry(tp->t_inpcb);
sys/netinet/tcp_subr.c
1942
if (tp->t_srtt == 0 && (rtt = rt->rt_rmx.rmx_rtt)) {
sys/netinet/tcp_subr.c
1948
TCPT_RANGESET(tp->t_rttmin,
sys/netinet/tcp_subr.c
1951
tp->t_srtt = rtt /
sys/netinet/tcp_subr.c
1954
tp->t_rttvar = rt->rt_rmx.rmx_rttvar /
sys/netinet/tcp_subr.c
1959
tp->t_rttvar =
sys/netinet/tcp_subr.c
1960
tp->t_srtt >> (TCP_RTT_SHIFT - TCP_RTTVAR_SHIFT);
sys/netinet/tcp_subr.c
1962
TCPT_RANGESET(tp->t_rxtcur,
sys/netinet/tcp_subr.c
1963
((tp->t_srtt >> 2) + tp->t_rttvar) >> (1 + 2),
sys/netinet/tcp_subr.c
1964
tp->t_rttmin, TCPTV_REXMTMAX);
sys/netinet/tcp_subr.c
1966
inpcb_rtentry_unref(rt, tp->t_inpcb);
sys/netinet/tcp_subr.c
1976
tcp_new_iss(struct tcpcb *tp)
sys/netinet/tcp_subr.c
1979
if (tp->t_inpcb->inp_af == AF_INET) {
sys/netinet/tcp_subr.c
1980
return tcp_new_iss1(&in4p_laddr(tp->t_inpcb),
sys/netinet/tcp_subr.c
1981
&in4p_faddr(tp->t_inpcb), tp->t_inpcb->inp_lport,
sys/netinet/tcp_subr.c
1982
tp->t_inpcb->inp_fport, sizeof(in4p_laddr(tp->t_inpcb)));
sys/netinet/tcp_subr.c
1985
if (tp->t_inpcb->inp_af == AF_INET6) {
sys/netinet/tcp_subr.c
1986
return tcp_new_iss1(&in6p_laddr(tp->t_inpcb),
sys/netinet/tcp_subr.c
1987
&in6p_faddr(tp->t_inpcb), tp->t_inpcb->inp_lport,
sys/netinet/tcp_subr.c
1988
tp->t_inpcb->inp_fport, sizeof(in6p_laddr(tp->t_inpcb)));
sys/netinet/tcp_subr.c
2073
ipsec4_hdrsiz_tcp(struct tcpcb *tp)
sys/netinet/tcp_subr.c
2079
if (!tp || !tp->t_template || !(inp = tp->t_inpcb))
sys/netinet/tcp_subr.c
2081
switch (tp->t_family) {
sys/netinet/tcp_subr.c
2084
hdrsiz = ipsec_hdrsiz(tp->t_template, IPSEC_DIR_OUTBOUND, inp);
sys/netinet/tcp_subr.c
2096
ipsec6_hdrsiz_tcp(struct tcpcb *tp)
sys/netinet/tcp_subr.c
2101
if (!tp || !tp->t_template || !(inp = tp->t_inpcb))
sys/netinet/tcp_subr.c
2103
switch (tp->t_family) {
sys/netinet/tcp_subr.c
2106
hdrsiz = ipsec_hdrsiz(tp->t_template, IPSEC_DIR_OUTBOUND, inp);
sys/netinet/tcp_subr.c
2130
tcp_optlen(struct tcpcb *tp)
sys/netinet/tcp_subr.c
2135
if ((tp->t_flags & (TF_REQ_TSTMP|TF_RCVD_TSTMP|TF_NOOPT)) ==
sys/netinet/tcp_subr.c
2140
if (tp->t_flags & TF_SIGNATURE)
sys/netinet/tcp_subr.c
2148
tcp_hdrsz(struct tcpcb *tp)
sys/netinet/tcp_subr.c
2152
switch (tp->t_family) {
sys/netinet/tcp_subr.c
2167
if ((tp->t_flags & (TF_REQ_TSTMP|TF_NOOPT)) == TF_REQ_TSTMP &&
sys/netinet/tcp_subr.c
2168
(tp->t_flags & TF_RCVD_TSTMP) == TF_RCVD_TSTMP)
sys/netinet/tcp_subr.c
2171
if (tp->t_flags & TF_SIGNATURE)
sys/netinet/tcp_subr.c
448
tcp_template(struct tcpcb *tp)
sys/netinet/tcp_subr.c
450
struct inpcb *inp = tp->t_inpcb;
sys/netinet/tcp_subr.c
455
switch (tp->t_family) {
sys/netinet/tcp_subr.c
484
m = tp->t_template;
sys/netinet/tcp_subr.c
489
m = tp->t_template = NULL;
sys/netinet/tcp_subr.c
508
switch (tp->t_family) {
sys/netinet/tcp_subr.c
604
tcp_respond(struct tcpcb *tp, struct mbuf *mtemplate, struct mbuf *m,
sys/netinet/tcp_subr.c
617
if (tp != NULL && (flags & TH_RST) == 0) {
sys/netinet/tcp_subr.c
618
KASSERT(tp->t_inpcb != NULL);
sys/netinet/tcp_subr.c
620
win = sbspace(&tp->t_inpcb->inp_socket->so_rcv);
sys/netinet/tcp_subr.c
772
if (tp)
sys/netinet/tcp_subr.c
773
win >>= tp->rcv_scale;
sys/netinet/tcp_subr.c
808
if (tp && tp->t_inpcb->inp_af == AF_INET6)
sys/netinet/tcp_subr.c
809
ip6->ip6_hlim = in6pcb_selecthlim_rt(tp->t_inpcb);
sys/netinet/tcp_subr.c
822
if (tp != NULL && tp->t_inpcb->inp_af == AF_INET) {
sys/netinet/tcp_subr.c
823
ro = &tp->t_inpcb->inp_route;
sys/netinet/tcp_subr.c
825
KASSERT(in_hosteq(ip->ip_dst, in4p_faddr(tp->t_inpcb)));
sys/netinet/tcp_subr.c
828
else if (tp != NULL && tp->t_inpcb->inp_af == AF_INET6) {
sys/netinet/tcp_subr.c
829
ro = (struct route *)&tp->t_inpcb->inp_route;
sys/netinet/tcp_subr.c
833
if (!IN6_IS_ADDR_V4MAPPED(&in6p_faddr(tp->t_inpcb)))
sys/netinet/tcp_subr.c
836
&in6p_faddr(tp->t_inpcb).s6_addr32[3],
sys/netinet/tcp_subr.c
842
&in6p_faddr(tp->t_inpcb)))
sys/netinet/tcp_subr.c
855
(tp && tp->t_mtudisc ? IP_MTUDISC : 0), NULL,
sys/netinet/tcp_subr.c
856
tp ? tp->t_inpcb : NULL);
sys/netinet/tcp_subr.c
861
tp ? tp->t_inpcb : NULL, NULL);
sys/netinet/tcp_subr.c
904
struct tcpcb *tp = &tcpcb_template;
sys/netinet/tcp_subr.c
907
tp->t_peermss = tcp_mssdflt;
sys/netinet/tcp_subr.c
908
tp->t_ourmss = tcp_mssdflt;
sys/netinet/tcp_subr.c
909
tp->t_segsz = tcp_mssdflt;
sys/netinet/tcp_subr.c
916
tp->t_flags = flags;
sys/netinet/tcp_subr.c
923
tp->t_rttvar = tcp_rttdflt * PR_SLOWHZ << TCP_RTTVAR_SHIFT;
sys/netinet/tcp_subr.c
924
TCPT_RANGESET(tp->t_rxtcur, TCP_REXMTVAL(tp),
sys/netinet/tcp_subr.c
928
tp->t_keepinit = MIN(tcp_keepinit, TCP_TIMER_MAXTICKS);
sys/netinet/tcp_subr.c
929
tp->t_keepidle = MIN(tcp_keepidle, TCP_TIMER_MAXTICKS);
sys/netinet/tcp_subr.c
930
tp->t_keepintvl = MIN(tcp_keepintvl, TCP_TIMER_MAXTICKS);
sys/netinet/tcp_subr.c
931
tp->t_keepcnt = MAX(1, MIN(tcp_keepcnt, TCP_TIMER_MAXTICKS));
sys/netinet/tcp_subr.c
932
tp->t_maxidle = tp->t_keepcnt * MIN(tp->t_keepintvl,
sys/netinet/tcp_subr.c
933
TCP_TIMER_MAXTICKS/tp->t_keepcnt);
sys/netinet/tcp_subr.c
936
tp->t_msl = TCPTV_MSL;
sys/netinet/tcp_subr.c
947
struct tcpcb *tp;
sys/netinet/tcp_subr.c
951
tp = pool_get(&tcpcb_pool, PR_NOWAIT); /* splsoftnet via tcp_usrreq */
sys/netinet/tcp_subr.c
952
if (tp == NULL)
sys/netinet/tcp_subr.c
954
memcpy(tp, &tcpcb_template, sizeof(*tp));
sys/netinet/tcp_subr.c
955
TAILQ_INIT(&tp->segq);
sys/netinet/tcp_subr.c
956
TAILQ_INIT(&tp->timeq);
sys/netinet/tcp_subr.c
957
tp->t_family = family; /* may be overridden later on */
sys/netinet/tcp_subr.c
958
TAILQ_INIT(&tp->snd_holes);
sys/netinet/tcp_subr.c
959
LIST_INIT(&tp->t_sc); /* XXX can template this */
sys/netinet/tcp_subr.c
963
callout_init(&tp->t_timer[i], CALLOUT_MPSAFE);
sys/netinet/tcp_subr.c
964
TCP_TIMER_INIT(tp, i);
sys/netinet/tcp_subr.c
966
callout_init(&tp->t_delack_ch, CALLOUT_MPSAFE);
sys/netinet/tcp_subr.c
971
inp->inp_ppcb = (void *)tp;
sys/netinet/tcp_subr.c
973
tp->t_inpcb = inp;
sys/netinet/tcp_subr.c
974
tp->t_mtudisc = ip_mtudisc;
sys/netinet/tcp_subr.c
979
inp->inp_ppcb = (void *)tp;
sys/netinet/tcp_subr.c
981
tp->t_inpcb = inp;
sys/netinet/tcp_subr.c
983
tp->t_mtudisc = 1;
sys/netinet/tcp_subr.c
988
callout_destroy(&tp->t_timer[i]);
sys/netinet/tcp_subr.c
989
callout_destroy(&tp->t_delack_ch);
sys/netinet/tcp_subr.c
990
pool_put(&tcpcb_pool, tp); /* splsoftnet via tcp_usrreq */
sys/netinet/tcp_syncache.c
1046
sc->sc_tp = tp;
sys/netinet/tcp_syncache.c
1053
syn_cache_insert(sc, tp);
sys/netinet/tcp_syncache.c
1088
struct tcpcb *tp;
sys/netinet/tcp_syncache.c
1130
tp = sc->sc_tp;
sys/netinet/tcp_syncache.c
1262
if ((sc->sc_flags & SCF_ECN_PERMIT) && tp &&
sys/netinet/tcp_syncache.c
1263
SEQ_GEQ(tp->snd_nxt, tp->snd_max)) {
sys/netinet/tcp_syncache.c
1334
tp = sc->sc_tp;
sys/netinet/tcp_syncache.c
1340
NULL, tp ? tp->t_inpcb : NULL);
sys/netinet/tcp_syncache.c
1349
tp ? tp->t_inpcb : NULL, NULL);
sys/netinet/tcp_syncache.c
317
syn_cache_insert(struct syn_cache *sc, struct tcpcb *tp)
sys/netinet/tcp_syncache.c
402
LIST_INSERT_HEAD(&tp->t_sc, sc, sc_tpq);
sys/netinet/tcp_syncache.c
478
syn_cache_cleanup(struct tcpcb *tp)
sys/netinet/tcp_syncache.c
485
for (sc = LIST_FIRST(&tp->t_sc); sc != NULL; sc = nsc) {
sys/netinet/tcp_syncache.c
489
if (sc->sc_tp != tp)
sys/netinet/tcp_syncache.c
496
LIST_INIT(&tp->t_sc);
sys/netinet/tcp_syncache.c
561
struct tcpcb *tp;
sys/netinet/tcp_syncache.c
695
tp = intotcpcb(inp);
sys/netinet/tcp_syncache.c
697
tp->t_flags = sototcpcb(oso)->t_flags & TF_NODELAY;
sys/netinet/tcp_syncache.c
699
tp->requested_s_scale = sc->sc_requested_s_scale;
sys/netinet/tcp_syncache.c
700
tp->request_r_scale = sc->sc_request_r_scale;
sys/netinet/tcp_syncache.c
701
tp->snd_scale = sc->sc_requested_s_scale;
sys/netinet/tcp_syncache.c
702
tp->rcv_scale = sc->sc_request_r_scale;
sys/netinet/tcp_syncache.c
703
tp->t_flags |= TF_REQ_SCALE|TF_RCVD_SCALE;
sys/netinet/tcp_syncache.c
706
tp->t_flags |= TF_REQ_TSTMP|TF_RCVD_TSTMP;
sys/netinet/tcp_syncache.c
707
tp->ts_timebase = sc->sc_timebase;
sys/netinet/tcp_syncache.c
709
tp->t_template = tcp_template(tp);
sys/netinet/tcp_syncache.c
710
if (tp->t_template == 0) {
sys/netinet/tcp_syncache.c
711
tp = tcp_drop(tp, ENOBUFS); /* destroys socket */
sys/netinet/tcp_syncache.c
717
tp->iss = sc->sc_iss;
sys/netinet/tcp_syncache.c
718
tp->irs = sc->sc_irs;
sys/netinet/tcp_syncache.c
719
tcp_sendseqinit(tp);
sys/netinet/tcp_syncache.c
720
tcp_rcvseqinit(tp);
sys/netinet/tcp_syncache.c
721
tp->t_state = TCPS_SYN_RECEIVED;
sys/netinet/tcp_syncache.c
722
TCP_TIMER_ARM(tp, TCPT_KEEP, tp->t_keepinit);
sys/netinet/tcp_syncache.c
726
tp->t_flags |= TF_WILL_SACK;
sys/netinet/tcp_syncache.c
729
tp->t_flags |= TF_ECN_PERMIT;
sys/netinet/tcp_syncache.c
733
tp->t_flags |= TF_SIGNATURE;
sys/netinet/tcp_syncache.c
737
tp->t_ourmss = sc->sc_ourmaxseg;
sys/netinet/tcp_syncache.c
738
tcp_mss_from_peer(tp, sc->sc_peermaxseg);
sys/netinet/tcp_syncache.c
746
tp->snd_cwnd = tp->t_peermss;
sys/netinet/tcp_syncache.c
755
tp->snd_cwnd = TCP_INITIAL_WINDOW(ss, tp->t_peermss);
sys/netinet/tcp_syncache.c
758
tcp_rmx_rtt(tp);
sys/netinet/tcp_syncache.c
759
tp->snd_wl1 = sc->sc_irs;
sys/netinet/tcp_syncache.c
760
tp->rcv_up = sc->sc_irs + 1;
sys/netinet/tcp_syncache.c
766
tp->snd_up = tp->snd_una;
sys/netinet/tcp_syncache.c
767
tp->snd_max = tp->snd_nxt = tp->iss+1;
sys/netinet/tcp_syncache.c
768
TCP_TIMER_ARM(tp, TCPT_REXMT, tp->t_rxtcur);
sys/netinet/tcp_syncache.c
769
if (sc->sc_win > 0 && SEQ_GT(tp->rcv_nxt + sc->sc_win, tp->rcv_adv))
sys/netinet/tcp_syncache.c
770
tp->rcv_adv = tp->rcv_nxt + sc->sc_win;
sys/netinet/tcp_syncache.c
771
tp->last_ack_sent = tp->rcv_nxt;
sys/netinet/tcp_syncache.c
772
tp->t_partialacks = -1;
sys/netinet/tcp_syncache.c
773
tp->t_dupacks = 0;
sys/netinet/tcp_syncache.c
881
struct tcpcb tb, *tp;
sys/netinet/tcp_syncache.c
888
tp = sototcpcb(so);
sys/netinet/tcp_syncache.c
898
if (optp || (tp->t_flags & TF_SIGNATURE))
sys/netinet/tcp_syncache.c
905
tb.t_flags |= (tp->t_flags & TF_SIGNATURE);
sys/netinet/tcp_timer.c
226
struct tcpcb *tp = arg;
sys/netinet/tcp_timer.c
235
if ((tp->t_flags & (TF_DEAD | TF_DELACK)) != TF_DELACK) {
sys/netinet/tcp_timer.c
239
if (!callout_expired(&tp->t_delack_ch)) {
sys/netinet/tcp_timer.c
244
tp->t_flags |= TF_ACKNOW;
sys/netinet/tcp_timer.c
246
(void) tcp_output(tp);
sys/netinet/tcp_timer.c
283
tcp_canceltimers(struct tcpcb *tp)
sys/netinet/tcp_timer.c
288
TCP_TIMER_DISARM(tp, i);
sys/netinet/tcp_timer.c
303
struct tcpcb *tp = arg;
sys/netinet/tcp_timer.c
311
if ((tp->t_flags & TF_DEAD) != 0) {
sys/netinet/tcp_timer.c
315
if (!callout_expired(&tp->t_timer[TCPT_REXMT])) {
sys/netinet/tcp_timer.c
321
if ((tp->t_flags & TF_PMTUD_PEND) && tp->t_inpcb &&
sys/netinet/tcp_timer.c
322
SEQ_GEQ(tp->t_pmtud_th_seq, tp->snd_una) &&
sys/netinet/tcp_timer.c
323
SEQ_LT(tp->t_pmtud_th_seq, (int)(tp->snd_una + tp->t_ourmss))) {
sys/netinet/tcp_timer.c
327
tp->t_flags &= ~TF_PMTUD_PEND;
sys/netinet/tcp_timer.c
330
icmp.icmp_nextmtu = tp->t_pmtud_nextmtu;
sys/netinet/tcp_timer.c
331
icmp.icmp_ip.ip_len = tp->t_pmtud_ip_len;
sys/netinet/tcp_timer.c
332
icmp.icmp_ip.ip_hl = tp->t_pmtud_ip_hl;
sys/netinet/tcp_timer.c
333
icmpsrc.sin_addr = in4p_faddr(tp->t_inpcb);
sys/netinet/tcp_timer.c
347
so = tp->t_inpcb->inp_socket;
sys/netinet/tcp_timer.c
348
ostate = tp->t_state;
sys/netinet/tcp_timer.c
354
tcp_free_sackholes(tp);
sys/netinet/tcp_timer.c
355
tp->snd_fack = tp->snd_una;
sys/netinet/tcp_timer.c
363
if (++tp->t_rxtshift > TCP_MAXRXTSHIFT) {
sys/netinet/tcp_timer.c
364
tp->t_rxtshift = TCP_MAXRXTSHIFT;
sys/netinet/tcp_timer.c
366
tp = tcp_drop(tp, tp->t_softerror ?
sys/netinet/tcp_timer.c
367
tp->t_softerror : ETIMEDOUT);
sys/netinet/tcp_timer.c
371
rto = TCP_REXMTVAL(tp);
sys/netinet/tcp_timer.c
372
if (rto < tp->t_rttmin)
sys/netinet/tcp_timer.c
373
rto = tp->t_rttmin;
sys/netinet/tcp_timer.c
374
TCPT_RANGESET(tp->t_rxtcur, rto * tcp_backoff[tp->t_rxtshift],
sys/netinet/tcp_timer.c
375
tp->t_rttmin, TCPTV_REXMTMAX);
sys/netinet/tcp_timer.c
376
TCP_TIMER_ARM(tp, TCPT_REXMT, tp->t_rxtcur);
sys/netinet/tcp_timer.c
386
if (tp->t_mtudisc && tp->t_rxtshift > TCP_MAXRXTSHIFT / 6) {
sys/netinet/tcp_timer.c
390
tp->t_mtudisc = 0;
sys/netinet/tcp_timer.c
403
if (tp->t_rxtshift > TCP_MAXRXTSHIFT / 4) {
sys/netinet/tcp_timer.c
404
inpcb_losing(tp->t_inpcb);
sys/netinet/tcp_timer.c
413
tp->t_rttvar += (tp->t_srtt >> TCP_RTT_SHIFT);
sys/netinet/tcp_timer.c
414
tp->t_srtt = 0;
sys/netinet/tcp_timer.c
416
tp->snd_nxt = tp->snd_una;
sys/netinet/tcp_timer.c
417
tp->snd_high = tp->snd_max;
sys/netinet/tcp_timer.c
421
tp->t_rtttime = 0;
sys/netinet/tcp_timer.c
427
if (tp->t_state == TCPS_SYN_SENT)
sys/netinet/tcp_timer.c
428
tp->t_flags |= TF_SYN_REXMT;
sys/netinet/tcp_timer.c
433
tp->t_congctl->slow_retransmit(tp);
sys/netinet/tcp_timer.c
435
(void) tcp_output(tp);
sys/netinet/tcp_timer.c
439
if (tp && so->so_options & SO_DEBUG)
sys/netinet/tcp_timer.c
440
tcp_trace(TA_USER, ostate, tp, NULL,
sys/netinet/tcp_timer.c
450
struct tcpcb *tp = arg;
sys/netinet/tcp_timer.c
458
if ((tp->t_flags & TF_DEAD) != 0) {
sys/netinet/tcp_timer.c
462
if (!callout_expired(&tp->t_timer[TCPT_PERSIST])) {
sys/netinet/tcp_timer.c
469
so = tp->t_inpcb->inp_socket;
sys/netinet/tcp_timer.c
470
ostate = tp->t_state;
sys/netinet/tcp_timer.c
485
rto = TCP_REXMTVAL(tp);
sys/netinet/tcp_timer.c
486
if (rto < tp->t_rttmin)
sys/netinet/tcp_timer.c
487
rto = tp->t_rttmin;
sys/netinet/tcp_timer.c
488
if (tp->t_rxtshift == TCP_MAXRXTSHIFT &&
sys/netinet/tcp_timer.c
489
((tcp_now - tp->t_rcvtime) >= tcp_maxpersistidle ||
sys/netinet/tcp_timer.c
490
(tcp_now - tp->t_rcvtime) >= rto * tcp_totbackoff)) {
sys/netinet/tcp_timer.c
492
tp = tcp_drop(tp, ETIMEDOUT);
sys/netinet/tcp_timer.c
496
tcp_setpersist(tp);
sys/netinet/tcp_timer.c
497
tp->t_force = 1;
sys/netinet/tcp_timer.c
498
(void) tcp_output(tp);
sys/netinet/tcp_timer.c
499
tp->t_force = 0;
sys/netinet/tcp_timer.c
503
if (tp && so->so_options & SO_DEBUG)
sys/netinet/tcp_timer.c
504
tcp_trace(TA_USER, ostate, tp, NULL,
sys/netinet/tcp_timer.c
514
struct tcpcb *tp = arg;
sys/netinet/tcp_timer.c
521
if ((tp->t_flags & TF_DEAD) != 0) {
sys/netinet/tcp_timer.c
525
if (!callout_expired(&tp->t_timer[TCPT_KEEP])) {
sys/netinet/tcp_timer.c
533
ostate = tp->t_state;
sys/netinet/tcp_timer.c
542
if (TCPS_HAVEESTABLISHED(tp->t_state) == 0)
sys/netinet/tcp_timer.c
544
so = tp->t_inpcb->inp_socket;
sys/netinet/tcp_timer.c
547
tp->t_state <= TCPS_CLOSE_WAIT) {
sys/netinet/tcp_timer.c
548
if ((tp->t_maxidle > 0) &&
sys/netinet/tcp_timer.c
549
((tcp_now - tp->t_rcvtime) >=
sys/netinet/tcp_timer.c
550
tp->t_keepidle + tp->t_maxidle))
sys/netinet/tcp_timer.c
566
(void)tcp_respond(tp, tp->t_template,
sys/netinet/tcp_timer.c
567
NULL, NULL, tp->rcv_nxt,
sys/netinet/tcp_timer.c
568
tp->snd_una - 1, 0);
sys/netinet/tcp_timer.c
570
TCP_TIMER_ARM(tp, TCPT_KEEP, tp->t_keepintvl);
sys/netinet/tcp_timer.c
572
TCP_TIMER_ARM(tp, TCPT_KEEP, tp->t_keepidle);
sys/netinet/tcp_timer.c
575
if (tp && so->so_options & SO_DEBUG)
sys/netinet/tcp_timer.c
576
tcp_trace(TA_USER, ostate, tp, NULL,
sys/netinet/tcp_timer.c
585
(void) tcp_drop(tp, ETIMEDOUT);
sys/netinet/tcp_timer.c
593
struct tcpcb *tp = arg;
sys/netinet/tcp_timer.c
600
if ((tp->t_flags & TF_DEAD) != 0) {
sys/netinet/tcp_timer.c
604
if (!callout_expired(&tp->t_timer[TCPT_2MSL])) {
sys/netinet/tcp_timer.c
614
tcp_free_sackholes(tp);
sys/netinet/tcp_timer.c
615
tp->snd_fack = tp->snd_una;
sys/netinet/tcp_timer.c
618
so = tp->t_inpcb->inp_socket;
sys/netinet/tcp_timer.c
619
ostate = tp->t_state;
sys/netinet/tcp_timer.c
628
if (tp->t_state != TCPS_TIME_WAIT &&
sys/netinet/tcp_timer.c
629
((tp->t_maxidle == 0) ||
sys/netinet/tcp_timer.c
630
((tcp_now - tp->t_rcvtime) <= tp->t_maxidle)))
sys/netinet/tcp_timer.c
631
TCP_TIMER_ARM(tp, TCPT_2MSL, tp->t_keepintvl);
sys/netinet/tcp_timer.c
633
tp = tcp_close(tp);
sys/netinet/tcp_timer.c
636
if (tp && so->so_options & SO_DEBUG)
sys/netinet/tcp_timer.c
637
tcp_trace(TA_USER, ostate, tp, NULL,
sys/netinet/tcp_timer.h
150
#define TCP_TIMER_INIT(tp, timer) \
sys/netinet/tcp_timer.h
151
callout_setfunc(&(tp)->t_timer[(timer)], \
sys/netinet/tcp_timer.h
152
tcp_timer_funcs[(timer)], (tp))
sys/netinet/tcp_timer.h
158
#define TCP_TIMER_ARM(tp, timer, nticks) \
sys/netinet/tcp_timer.h
159
callout_schedule(&(tp)->t_timer[(timer)], \
sys/netinet/tcp_timer.h
162
#define TCP_TIMER_DISARM(tp, timer) \
sys/netinet/tcp_timer.h
163
callout_stop(&(tp)->t_timer[(timer)])
sys/netinet/tcp_timer.h
165
#define TCP_TIMER_ISARMED(tp, timer) \
sys/netinet/tcp_timer.h
166
callout_active(&(tp)->t_timer[(timer)])
sys/netinet/tcp_usrreq.c
1003
struct tcpcb *tp;
sys/netinet/tcp_usrreq.c
1011
tp = intotcpcb(inp);
sys/netinet/tcp_usrreq.c
1013
ostate = tcp_debug_capture(tp, PRU_SEND);
sys/netinet/tcp_usrreq.c
1023
tcp_debug_trace(so, tp, ostate, PRU_SEND);
sys/netinet/tcp_usrreq.c
1029
error = tcp_output(tp);
sys/netinet/tcp_usrreq.c
1030
tcp_debug_trace(so, tp, ostate, PRU_SEND);
sys/netinet/tcp_usrreq.c
1040
struct tcpcb *tp = NULL;
sys/netinet/tcp_usrreq.c
1051
tp = intotcpcb(inp);
sys/netinet/tcp_usrreq.c
1052
if (tp->t_template == NULL) {
sys/netinet/tcp_usrreq.c
1063
ostate = tcp_debug_capture(tp, PRU_SENDOOB);
sys/netinet/tcp_usrreq.c
1081
tp->snd_up = tp->snd_una + so->so_snd.sb_cc;
sys/netinet/tcp_usrreq.c
1082
tp->t_force = 1;
sys/netinet/tcp_usrreq.c
1083
error = tcp_output(tp);
sys/netinet/tcp_usrreq.c
1084
tp->t_force = 0;
sys/netinet/tcp_usrreq.c
1085
tcp_debug_trace(so, tp, ostate, PRU_SENDOOB);
sys/netinet/tcp_usrreq.c
1145
tcp_disconnect1(struct tcpcb *tp)
sys/netinet/tcp_usrreq.c
1149
so = tp->t_inpcb->inp_socket;
sys/netinet/tcp_usrreq.c
1151
if (TCPS_HAVEESTABLISHED(tp->t_state) == 0)
sys/netinet/tcp_usrreq.c
1152
tp = tcp_close(tp);
sys/netinet/tcp_usrreq.c
1154
tp = tcp_drop(tp, 0);
sys/netinet/tcp_usrreq.c
1158
tp = tcp_usrclosed(tp);
sys/netinet/tcp_usrreq.c
1159
if (tp)
sys/netinet/tcp_usrreq.c
1160
(void) tcp_output(tp);
sys/netinet/tcp_usrreq.c
1162
return tp;
sys/netinet/tcp_usrreq.c
1176
tcp_usrclosed(struct tcpcb *tp)
sys/netinet/tcp_usrreq.c
1179
switch (tp->t_state) {
sys/netinet/tcp_usrreq.c
1184
tp->t_state = TCPS_CLOSED;
sys/netinet/tcp_usrreq.c
1185
tp = tcp_close(tp);
sys/netinet/tcp_usrreq.c
1190
tp->t_state = TCPS_FIN_WAIT_1;
sys/netinet/tcp_usrreq.c
1194
tp->t_state = TCPS_LAST_ACK;
sys/netinet/tcp_usrreq.c
1197
if (tp && tp->t_state >= TCPS_FIN_WAIT_2) {
sys/netinet/tcp_usrreq.c
1198
struct socket *so = tp->t_inpcb->inp_socket;
sys/netinet/tcp_usrreq.c
1208
if ((tp->t_state == TCPS_FIN_WAIT_2) && (tp->t_maxidle > 0))
sys/netinet/tcp_usrreq.c
1209
TCP_TIMER_ARM(tp, TCPT_2MSL, tp->t_maxidle);
sys/netinet/tcp_usrreq.c
1210
else if (tp->t_state == TCPS_TIME_WAIT
sys/netinet/tcp_usrreq.c
1211
&& ((tp->t_inpcb->inp_af == AF_INET
sys/netinet/tcp_usrreq.c
1213
&& vtw_add(AF_INET, tp))
sys/netinet/tcp_usrreq.c
1215
(tp->t_inpcb->inp_af == AF_INET6
sys/netinet/tcp_usrreq.c
1217
&& vtw_add(AF_INET6, tp)))) {
sys/netinet/tcp_usrreq.c
1218
tp = 0;
sys/netinet/tcp_usrreq.c
1221
return tp;
sys/netinet/tcp_usrreq.c
1428
struct tcpcb *tp;
sys/netinet/tcp_usrreq.c
1431
if (inp == NULL || (tp = intotcpcb(inp)) == NULL ||
sys/netinet/tcp_usrreq.c
1436
KAUTH_REQ_NETWORK_SOCKET_DROP, inp->inp_socket, tp, NULL);
sys/netinet/tcp_usrreq.c
1440
(void)tcp_drop(tp, ECONNABORTED);
sys/netinet/tcp_usrreq.c
1463
struct tcpcb *tp;
sys/netinet/tcp_usrreq.c
1466
if (inp == NULL || (tp = intotcpcb(inp)) == NULL ||
sys/netinet/tcp_usrreq.c
1471
KAUTH_REQ_NETWORK_SOCKET_DROP, inp->inp_socket, tp, NULL);
sys/netinet/tcp_usrreq.c
1475
(void)tcp_drop(tp, ECONNABORTED);
sys/netinet/tcp_usrreq.c
157
tcp_debug_capture(struct tcpcb *tp, int req)
sys/netinet/tcp_usrreq.c
160
return tp->t_state;
sys/netinet/tcp_usrreq.c
1619
struct tcpcb *tp;
sys/netinet/tcp_usrreq.c
166
tcp_debug_trace(struct socket *so, struct tcpcb *tp, int ostate, int req)
sys/netinet/tcp_usrreq.c
1686
tp = intotcpcb(inp);
sys/netinet/tcp_usrreq.c
1687
pcb.ki_tstate = tp->t_state;
sys/netinet/tcp_usrreq.c
1688
pcb.ki_tflags = tp->t_flags;
sys/netinet/tcp_usrreq.c
169
if (tp && (so->so_options & SO_DEBUG))
sys/netinet/tcp_usrreq.c
170
tcp_trace(TA_USER, ostate, tp, NULL, req);
sys/netinet/tcp_usrreq.c
1726
tp = intotcpcb(inp);
sys/netinet/tcp_usrreq.c
1727
pcb.ki_tstate = tp->t_state;
sys/netinet/tcp_usrreq.c
1728
pcb.ki_tflags = tp->t_flags;
sys/netinet/tcp_usrreq.c
175
change_keepalive(struct socket *so, struct tcpcb *tp)
sys/netinet/tcp_usrreq.c
177
tp->t_maxidle = tp->t_keepcnt * MIN(tp->t_keepintvl,
sys/netinet/tcp_usrreq.c
178
TCP_TIMER_MAXTICKS / tp->t_keepcnt);
sys/netinet/tcp_usrreq.c
179
TCP_TIMER_DISARM(tp, TCPT_KEEP);
sys/netinet/tcp_usrreq.c
180
TCP_TIMER_DISARM(tp, TCPT_2MSL);
sys/netinet/tcp_usrreq.c
182
if (tp->t_state == TCPS_SYN_RECEIVED ||
sys/netinet/tcp_usrreq.c
183
tp->t_state == TCPS_SYN_SENT) {
sys/netinet/tcp_usrreq.c
184
TCP_TIMER_ARM(tp, TCPT_KEEP, tp->t_keepinit);
sys/netinet/tcp_usrreq.c
186
tp->t_state <= TCPS_CLOSE_WAIT) {
sys/netinet/tcp_usrreq.c
187
TCP_TIMER_ARM(tp, TCPT_KEEP, tp->t_keepintvl);
sys/netinet/tcp_usrreq.c
189
TCP_TIMER_ARM(tp, TCPT_KEEP, tp->t_keepidle);
sys/netinet/tcp_usrreq.c
192
if ((tp->t_state == TCPS_FIN_WAIT_2) && (tp->t_maxidle > 0))
sys/netinet/tcp_usrreq.c
193
TCP_TIMER_ARM(tp, TCPT_2MSL, tp->t_maxidle);
sys/netinet/tcp_usrreq.c
204
tcp_fill_info(struct tcpcb *tp, struct tcp_info *ti)
sys/netinet/tcp_usrreq.c
209
ti->tcpi_state = tp->t_state;
sys/netinet/tcp_usrreq.c
210
if ((tp->t_flags & TF_REQ_TSTMP) && (tp->t_flags & TF_RCVD_TSTMP))
sys/netinet/tcp_usrreq.c
212
if (tp->t_flags & TF_SACK_PERMIT)
sys/netinet/tcp_usrreq.c
214
if ((tp->t_flags & TF_REQ_SCALE) && (tp->t_flags & TF_RCVD_SCALE)) {
sys/netinet/tcp_usrreq.c
216
ti->tcpi_snd_wscale = tp->snd_scale;
sys/netinet/tcp_usrreq.c
217
ti->tcpi_rcv_wscale = tp->rcv_scale;
sys/netinet/tcp_usrreq.c
219
if (tp->t_flags & TF_ECN_PERMIT) {
sys/netinet/tcp_usrreq.c
223
ti->tcpi_rto = tp->t_rxtcur * tick;
sys/netinet/tcp_usrreq.c
225
(int)tp->t_rcvtime) * tick;
sys/netinet/tcp_usrreq.c
226
ti->tcpi_rtt = ((u_int64_t)tp->t_srtt * tick / PR_SLOWHZ)
sys/netinet/tcp_usrreq.c
228
ti->tcpi_rttvar = ((u_int64_t)tp->t_rttvar * tick / PR_SLOWHZ)
sys/netinet/tcp_usrreq.c
231
ti->tcpi_snd_ssthresh = tp->snd_ssthresh;
sys/netinet/tcp_usrreq.c
233
ti->tcpi_snd_cwnd = tp->snd_cwnd / tp->t_segsz;
sys/netinet/tcp_usrreq.c
234
ti->tcpi_snd_wnd = tp->snd_wnd / tp->t_segsz;
sys/netinet/tcp_usrreq.c
239
ti->tcpi_rcv_space = tp->rcv_wnd;
sys/netinet/tcp_usrreq.c
240
ti->tcpi_rcv_nxt = tp->rcv_nxt;
sys/netinet/tcp_usrreq.c
242
ti->tcpi_snd_nxt = tp->snd_nxt;
sys/netinet/tcp_usrreq.c
243
ti->tcpi_snd_mss = tp->t_segsz;
sys/netinet/tcp_usrreq.c
244
ti->tcpi_rcv_mss = tp->t_segsz;
sys/netinet/tcp_usrreq.c
246
if (tp->t_flags & TF_TOE)
sys/netinet/tcp_usrreq.c
251
ti->tcpi_snd_rexmitpack = tp->t_sndrexmitpack;
sys/netinet/tcp_usrreq.c
253
ti->tcpi_rcv_ooopack = tp->t_rcvoopack;
sys/netinet/tcp_usrreq.c
254
ti->tcpi_snd_zerowin = tp->t_sndzerowin;
sys/netinet/tcp_usrreq.c
262
struct tcpcb *tp;
sys/netinet/tcp_usrreq.c
293
tp = intotcpcb(inp);
sys/netinet/tcp_usrreq.c
304
tp->t_flags |= TF_SIGNATURE;
sys/netinet/tcp_usrreq.c
306
tp->t_flags &= ~TF_SIGNATURE;
sys/netinet/tcp_usrreq.c
315
tp->t_flags |= TF_NODELAY;
sys/netinet/tcp_usrreq.c
317
tp->t_flags &= ~TF_NODELAY;
sys/netinet/tcp_usrreq.c
324
if (optval > 0 && optval <= tp->t_peermss)
sys/netinet/tcp_usrreq.c
325
tp->t_peermss = optval; /* limit on send size */
sys/netinet/tcp_usrreq.c
332
error = tcp_congctl_select(tp, sopt->sopt_data);
sys/netinet/tcp_usrreq.c
341
tp->t_keepidle = ui;
sys/netinet/tcp_usrreq.c
342
change_keepalive(so, tp);
sys/netinet/tcp_usrreq.c
352
tp->t_keepintvl = ui;
sys/netinet/tcp_usrreq.c
353
change_keepalive(so, tp);
sys/netinet/tcp_usrreq.c
363
tp->t_keepcnt = ui;
sys/netinet/tcp_usrreq.c
364
change_keepalive(so, tp);
sys/netinet/tcp_usrreq.c
374
tp->t_keepinit = ui;
sys/netinet/tcp_usrreq.c
375
change_keepalive(so, tp);
sys/netinet/tcp_usrreq.c
390
optval = (tp->t_flags & TF_SIGNATURE) ? 1 : 0;
sys/netinet/tcp_usrreq.c
394
optval = tp->t_flags & TF_NODELAY;
sys/netinet/tcp_usrreq.c
397
optval = tp->t_peermss;
sys/netinet/tcp_usrreq.c
400
tcp_fill_info(tp, &ti);
sys/netinet/tcp_usrreq.c
408
optval = tp->t_keepidle;
sys/netinet/tcp_usrreq.c
411
optval = tp->t_keepintvl;
sys/netinet/tcp_usrreq.c
414
optval = tp->t_keepcnt;
sys/netinet/tcp_usrreq.c
417
optval = tp->t_keepinit;
sys/netinet/tcp_usrreq.c
447
struct tcpcb *tp;
sys/netinet/tcp_usrreq.c
481
tp = tcp_newtcpcb(family, inp);
sys/netinet/tcp_usrreq.c
482
if (tp == NULL) {
sys/netinet/tcp_usrreq.c
491
tp->t_state = TCPS_CLOSED;
sys/netinet/tcp_usrreq.c
505
struct tcpcb *tp;
sys/netinet/tcp_usrreq.c
511
tp = intotcpcb(inp);
sys/netinet/tcp_usrreq.c
514
(void)tcp_disconnect1(tp);
sys/netinet/tcp_usrreq.c
522
struct tcpcb *tp;
sys/netinet/tcp_usrreq.c
529
tp = intotcpcb(inp);
sys/netinet/tcp_usrreq.c
531
ostate = tcp_debug_capture(tp, PRU_ACCEPT);
sys/netinet/tcp_usrreq.c
547
tcp_debug_trace(so, tp, ostate, PRU_ACCEPT);
sys/netinet/tcp_usrreq.c
561
struct tcpcb *tp;
sys/netinet/tcp_usrreq.c
569
tp = intotcpcb(inp);
sys/netinet/tcp_usrreq.c
571
ostate = tcp_debug_capture(tp, PRU_BIND);
sys/netinet/tcp_usrreq.c
587
tp->t_family = AF_INET;
sys/netinet/tcp_usrreq.c
589
tp->t_family = AF_INET6;
sys/netinet/tcp_usrreq.c
594
tcp_debug_trace(so, tp, ostate, PRU_BIND);
sys/netinet/tcp_usrreq.c
604
struct tcpcb *tp;
sys/netinet/tcp_usrreq.c
612
tp = intotcpcb(inp);
sys/netinet/tcp_usrreq.c
614
ostate = tcp_debug_capture(tp, PRU_LISTEN);
sys/netinet/tcp_usrreq.c
632
tp->t_state = TCPS_LISTEN;
sys/netinet/tcp_usrreq.c
635
tcp_debug_trace(so, tp, ostate, PRU_LISTEN);
sys/netinet/tcp_usrreq.c
645
struct tcpcb *tp;
sys/netinet/tcp_usrreq.c
653
tp = intotcpcb(inp);
sys/netinet/tcp_usrreq.c
655
ostate = tcp_debug_capture(tp, PRU_CONNECT);
sys/netinet/tcp_usrreq.c
685
tp->t_family = AF_INET;
sys/netinet/tcp_usrreq.c
687
tp->t_family = AF_INET6;
sys/netinet/tcp_usrreq.c
693
tp->t_template = tcp_template(tp);
sys/netinet/tcp_usrreq.c
694
if (tp->t_template == 0) {
sys/netinet/tcp_usrreq.c
708
while (tp->request_r_scale < TCP_MAX_WINSHIFT &&
sys/netinet/tcp_usrreq.c
709
(TCP_MAXWIN << tp->request_r_scale) < sb_max)
sys/netinet/tcp_usrreq.c
710
tp->request_r_scale++;
sys/netinet/tcp_usrreq.c
713
tp->t_state = TCPS_SYN_SENT;
sys/netinet/tcp_usrreq.c
714
TCP_TIMER_ARM(tp, TCPT_KEEP, tp->t_keepinit);
sys/netinet/tcp_usrreq.c
715
tp->iss = tcp_new_iss(tp);
sys/netinet/tcp_usrreq.c
716
tcp_sendseqinit(tp);
sys/netinet/tcp_usrreq.c
717
error = tcp_output(tp);
sys/netinet/tcp_usrreq.c
720
tcp_debug_trace(so, tp, ostate, PRU_CONNECT);
sys/netinet/tcp_usrreq.c
730
struct tcpcb *tp;
sys/netinet/tcp_usrreq.c
738
tp = intotcpcb(inp);
sys/netinet/tcp_usrreq.c
740
ostate = tcp_debug_capture(tp, PRU_CONNECT2);
sys/netinet/tcp_usrreq.c
742
tcp_debug_trace(so, tp, ostate, PRU_CONNECT2);
sys/netinet/tcp_usrreq.c
751
struct tcpcb *tp;
sys/netinet/tcp_usrreq.c
759
tp = intotcpcb(inp);
sys/netinet/tcp_usrreq.c
761
ostate = tcp_debug_capture(tp, PRU_DISCONNECT);
sys/netinet/tcp_usrreq.c
775
tp = tcp_disconnect1(tp);
sys/netinet/tcp_usrreq.c
776
tcp_debug_trace(so, tp, ostate, PRU_DISCONNECT);
sys/netinet/tcp_usrreq.c
786
struct tcpcb *tp;
sys/netinet/tcp_usrreq.c
794
tp = intotcpcb(inp);
sys/netinet/tcp_usrreq.c
796
ostate = tcp_debug_capture(tp, PRU_SHUTDOWN);
sys/netinet/tcp_usrreq.c
802
tp = tcp_usrclosed(tp);
sys/netinet/tcp_usrreq.c
803
if (tp)
sys/netinet/tcp_usrreq.c
804
error = tcp_output(tp);
sys/netinet/tcp_usrreq.c
805
tcp_debug_trace(so, tp, ostate, PRU_SHUTDOWN);
sys/netinet/tcp_usrreq.c
815
struct tcpcb *tp;
sys/netinet/tcp_usrreq.c
823
tp = intotcpcb(inp);
sys/netinet/tcp_usrreq.c
825
ostate = tcp_debug_capture(tp, PRU_ABORT);
sys/netinet/tcp_usrreq.c
831
tp = tcp_drop(tp, ECONNABORTED);
sys/netinet/tcp_usrreq.c
832
tcp_debug_trace(so, tp, ostate, PRU_ABORT);
sys/netinet/tcp_usrreq.c
866
struct tcpcb *tp;
sys/netinet/tcp_usrreq.c
873
tp = intotcpcb(inp);
sys/netinet/tcp_usrreq.c
875
ostate = tcp_debug_capture(tp, PRU_PEERADDR);
sys/netinet/tcp_usrreq.c
886
tcp_debug_trace(so, tp, ostate, PRU_PEERADDR);
sys/netinet/tcp_usrreq.c
896
struct tcpcb *tp;
sys/netinet/tcp_usrreq.c
903
tp = intotcpcb(inp);
sys/netinet/tcp_usrreq.c
905
ostate = tcp_debug_capture(tp, PRU_SOCKADDR);
sys/netinet/tcp_usrreq.c
916
tcp_debug_trace(so, tp, ostate, PRU_SOCKADDR);
sys/netinet/tcp_usrreq.c
926
struct tcpcb *tp;
sys/netinet/tcp_usrreq.c
933
tp = intotcpcb(inp);
sys/netinet/tcp_usrreq.c
935
ostate = tcp_debug_capture(tp, PRU_RCVD);
sys/netinet/tcp_usrreq.c
948
(void) tcp_output(tp);
sys/netinet/tcp_usrreq.c
951
tcp_debug_trace(so, tp, ostate, PRU_RCVD);
sys/netinet/tcp_usrreq.c
960
struct tcpcb *tp;
sys/netinet/tcp_usrreq.c
967
tp = intotcpcb(inp);
sys/netinet/tcp_usrreq.c
969
ostate = tcp_debug_capture(tp, PRU_RCVOOB);
sys/netinet/tcp_usrreq.c
975
tp->t_oobflags & TCPOOB_HADDATA) {
sys/netinet/tcp_usrreq.c
980
if ((tp->t_oobflags & TCPOOB_HAVEDATA) == 0) {
sys/netinet/tcp_usrreq.c
986
*mtod(m, char *) = tp->t_iobc;
sys/netinet/tcp_usrreq.c
988
tp->t_oobflags ^= (TCPOOB_HAVEDATA | TCPOOB_HADDATA);
sys/netinet/tcp_usrreq.c
992
tcp_debug_trace(so, tp, ostate, PRU_RCVOOB);
sys/netinet/tcp_var.h
404
#define TCP_ECN_ALLOWED(tp) (tp->t_flags & TF_ECN_PERMIT)
sys/netinet/tcp_var.h
409
#define TCP_SACK_ENABLED(tp) (tp->t_flags & TF_WILL_SACK)
sys/netinet/tcp_var.h
410
#define TCP_FACK_FASTRECOV(tp) \
sys/netinet/tcp_var.h
411
(TCP_SACK_ENABLED(tp) && \
sys/netinet/tcp_var.h
412
(SEQ_GT(tp->snd_fack, tp->snd_una + tcprexmtthresh * tp->t_segsz)))
sys/netinet/tcp_var.h
424
tcp_reass_lock_try(struct tcpcb *tp)
sys/netinet/tcp_var.h
433
if (tp->t_flags & TF_REASSEMBLING) {
sys/netinet/tcp_var.h
437
tp->t_flags |= TF_REASSEMBLING;
sys/netinet/tcp_var.h
443
tcp_reass_unlock(struct tcpcb *tp)
sys/netinet/tcp_var.h
448
KASSERT((tp->t_flags & TF_REASSEMBLING) != 0);
sys/netinet/tcp_var.h
449
tp->t_flags &= ~TF_REASSEMBLING;
sys/netinet/tcp_var.h
454
#define TCP_REASS_LOCK(tp) \
sys/netinet/tcp_var.h
456
if (tcp_reass_lock_try(tp) == 0) { \
sys/netinet/tcp_var.h
458
__FILE__, __LINE__, tp); \
sys/netinet/tcp_var.h
462
#define TCP_REASS_LOCK_CHECK(tp) \
sys/netinet/tcp_var.h
464
if (((tp)->t_flags & TF_REASSEMBLING) == 0) { \
sys/netinet/tcp_var.h
466
__FILE__, __LINE__, tp); \
sys/netinet/tcp_var.h
471
#define TCP_REASS_LOCK(tp) (void) tcp_reass_lock_try((tp))
sys/netinet/tcp_var.h
472
#define TCP_REASS_LOCK_CHECK(tp) /* nothing */
sys/netinet/tcp_var.h
475
#define TCP_REASS_UNLOCK(tp) tcp_reass_unlock((tp))
sys/netinet/tcp_var.h
485
#define TCP_RESTART_DELACK(tp) \
sys/netinet/tcp_var.h
486
callout_reset(&(tp)->t_delack_ch, tcp_delack_ticks, \
sys/netinet/tcp_var.h
487
tcp_delack, tp)
sys/netinet/tcp_var.h
489
#define TCP_SET_DELACK(tp) \
sys/netinet/tcp_var.h
491
if (((tp)->t_flags & TF_DELACK) == 0) { \
sys/netinet/tcp_var.h
492
(tp)->t_flags |= TF_DELACK; \
sys/netinet/tcp_var.h
493
TCP_RESTART_DELACK(tp); \
sys/netinet/tcp_var.h
497
#define TCP_CLEAR_DELACK(tp) \
sys/netinet/tcp_var.h
499
if ((tp)->t_flags & TF_DELACK) { \
sys/netinet/tcp_var.h
500
(tp)->t_flags &= ~TF_DELACK; \
sys/netinet/tcp_var.h
501
callout_stop(&(tp)->t_delack_ch); \
sys/netinet/tcp_var.h
509
#define TCP_TIMESTAMP(tp) (tcp_now - (tp)->ts_timebase)
sys/netinet/tcp_var.h
586
#define TCP_REXMTVAL(tp) \
sys/netinet/tcp_var.h
587
((((tp)->t_srtt >> TCP_RTT_SHIFT) + (tp)->t_rttvar) >> 2)
sys/netinet/tcp_var.h
864
void tcp_sack_adjust(struct tcpcb *tp);
sys/netinet/tcp_var.h
865
struct sackhole *tcp_sack_output(struct tcpcb *tp, int *sack_bytes_rexmt);
sys/netinet/tcp_vtw.c
1877
vtw_add(int af, struct tcpcb *tp)
sys/netinet/tcp_vtw.c
1887
ctl = vtw_control(af, tp->t_msl);
sys/netinet/tcp_vtw.c
1898
vtw->snd_nxt = tp->snd_nxt;
sys/netinet/tcp_vtw.c
1899
vtw->rcv_nxt = tp->rcv_nxt;
sys/netinet/tcp_vtw.c
1903
struct inpcb *inp = tp->t_inpcb;
sys/netinet/tcp_vtw.c
1975
struct inpcb *inp = tp->t_inpcb;
sys/netinet/tcp_vtw.c
2044
tcp_canceltimers(tp);
sys/netinet/tcp_vtw.c
2045
tp = tcp_close(tp);
sys/netinet/tcp_vtw.c
2046
KASSERT(!tp);
sys/netinet6/ip6_mroute.c
1098
struct timeval tp;
sys/netinet6/ip6_mroute.c
1099
GET_TIME(tp);
sys/netinet6/ip6_mroute.c
1268
rte->t = tp;
sys/netinet6/ip6_mroute.c
932
struct timeval tp;
sys/netinet6/ip6_mroute.c
935
GET_TIME(tp);
sys/netinet6/ip6_mroute.c
937
if (TV_LT(*t, tp))
sys/netinet6/ip6_mroute.c
939
TV_DELTA(tp, *t, delta);
sys/netipsec/xform_ipip.c
323
uint8_t tp, otos;
sys/netipsec/xform_ipip.c
338
m_copydata(m, 0, 1, &tp);
sys/netipsec/xform_ipip.c
339
tp = (tp >> 4) & 0xff; /* Get the IP version number. */
sys/netipsec/xform_ipip.c
378
if (tp == IPVERSION) {
sys/netipsec/xform_ipip.c
396
else if (tp == (IPV6_VERSION >> 4)) {
sys/netipsec/xform_ipip.c
432
if (tp == (IPV6_VERSION >> 4)) {
sys/netipsec/xform_ipip.c
466
if (tp == IPVERSION) {
sys/netipsec/xform_ipip.c
476
if (tp == (IPV6_VERSION >> 4)) {
sys/rump/librump/rumpkern/emul.c
353
rump_ttycheckoutq(struct tty *tp, int wait)
sys/rump/librump/rumpkern/emul.c
362
rump_tputchar(int c, int flags, struct tty *tp)
sys/rump/librump/rumpkern/rump_syscalls.c
4971
rump___sysimpl_gettimeofday50(struct timeval * tp, void * tzp)
sys/rump/librump/rumpkern/rump_syscalls.c
4979
SPARG(&callarg, tp) = tp;
sys/rump/librump/rumpkern/rump_syscalls.c
5212
rump___sysimpl_clock_gettime50(clockid_t clock_id, struct timespec * tp)
sys/rump/librump/rumpkern/rump_syscalls.c
5221
SPARG(&callarg, tp) = tp;
sys/rump/librump/rumpkern/rump_syscalls.c
5242
rump___sysimpl_clock_settime50(clockid_t clock_id, const struct timespec * tp)
sys/rump/librump/rumpkern/rump_syscalls.c
5251
SPARG(&callarg, tp) = tp;
sys/rump/librump/rumpkern/rump_syscalls.c
5272
rump___sysimpl_clock_getres50(clockid_t clock_id, struct timespec * tp)
sys/rump/librump/rumpkern/rump_syscalls.c
5281
SPARG(&callarg, tp) = tp;
sys/sys/clockctl.h
58
const struct timespec *tp;
sys/sys/clockctl.h
64
struct timex *tp;
sys/sys/syscallargs.h
1121
syscallarg(struct timex *) tp;
sys/sys/syscallargs.h
1492
syscallarg(struct timespec50 *) tp;
sys/sys/syscallargs.h
1500
syscallarg(const struct timespec50 *) tp;
sys/sys/syscallargs.h
1508
syscallarg(struct timespec50 *) tp;
sys/sys/syscallargs.h
2718
syscallarg(struct timeval *) tp;
sys/sys/syscallargs.h
2776
syscallarg(struct timespec *) tp;
sys/sys/syscallargs.h
2782
syscallarg(const struct timespec *) tp;
sys/sys/syscallargs.h
2788
syscallarg(struct timespec *) tp;
sys/sys/syscallargs.h
726
syscallarg(struct timeval50 *) tp;
sys/sys/tty.h
170
#define TTYHOG tp->t_qsize
sys/sys/tty.h
173
#define TTMAXHIWAT roundup(tp->t_qsize << 1, 64)
sys/sys/tty.h
174
#define TTMINHIWAT roundup(tp->t_qsize >> 3, 64)
sys/sys/tty.h
175
#define TTMAXLOWAT (tp->t_qsize >> 2)
sys/sys/tty.h
176
#define TTMINLOWAT (tp->t_qsize >> 5)
sys/sys/tty.h
241
#define isctty(p, tp) \
sys/sys/tty.h
242
((p)->p_session == (tp)->t_session && (p)->p_lflag & PL_CONTROLT)
sys/sys/tty.h
245
#define isbackground(p, tp) \
sys/sys/tty.h
246
(isctty((p), (tp)) && (p)->p_pgrp != (tp)->t_pgrp)
sys/uvm/uvm_pglist.c
93
struct vm_page *tp;
sys/uvm/uvm_pglist.c
94
LIST_FOREACH(tp, &pgb->pgb_colors[VM_PGCOLOR(pg)], pageq.list) {
sys/uvm/uvm_pglist.c
95
if (tp == pg)
sys/uvm/uvm_pglist.c
98
if (tp == NULL)
tests/crypto/libcrypto/t_sha512trunc.c
452
ATF_TP_ADD_TCS(tp)
tests/crypto/libcrypto/t_sha512trunc.c
455
ATF_TP_ADD_TC(tp, sha512_224);
tests/crypto/libcrypto/t_sha512trunc.c
456
ATF_TP_ADD_TC(tp, sha512_256);
tests/dev/cgd/t_cgd_3des.c
906
ATF_TP_ADD_TCS(tp)
tests/dev/cgd/t_cgd_3des.c
909
ATF_TP_ADD_TC(tp, cgd_3des_cbc_192_encblkno1);
tests/dev/cgd/t_cgd_3des.c
910
ATF_TP_ADD_TC(tp, cgd_3des_cbc_192_encblkno8);
tests/dev/cgd/t_cgd_adiantum.c
397
ATF_TP_ADD_TCS(tp)
tests/dev/cgd/t_cgd_adiantum.c
400
ATF_TP_ADD_TC(tp, cgd_adiantum);
tests/dev/cgd/t_cgd_aes.c
3598
ATF_TP_ADD_TCS(tp)
tests/dev/cgd/t_cgd_aes.c
3601
ATF_TP_ADD_TC(tp, cgd_aes_cbc_128_encblkno1);
tests/dev/cgd/t_cgd_aes.c
3602
ATF_TP_ADD_TC(tp, cgd_aes_cbc_128_encblkno8);
tests/dev/cgd/t_cgd_aes.c
3603
ATF_TP_ADD_TC(tp, cgd_aes_cbc_192_encblkno1);
tests/dev/cgd/t_cgd_aes.c
3604
ATF_TP_ADD_TC(tp, cgd_aes_cbc_192_encblkno8);
tests/dev/cgd/t_cgd_aes.c
3605
ATF_TP_ADD_TC(tp, cgd_aes_cbc_256_encblkno1);
tests/dev/cgd/t_cgd_aes.c
3606
ATF_TP_ADD_TC(tp, cgd_aes_cbc_256_encblkno8);
tests/dev/cgd/t_cgd_aes.c
3607
ATF_TP_ADD_TC(tp, cgd_aes_xts_256);
tests/dev/cgd/t_cgd_aes.c
3608
ATF_TP_ADD_TC(tp, cgd_aes_xts_512);
tests/dev/cgd/t_cgd_blowfish.c
2330
ATF_TP_ADD_TCS(tp)
tests/dev/cgd/t_cgd_blowfish.c
2333
ATF_TP_ADD_TC(tp, cgd_bf_cbc_128_encblkno1);
tests/dev/cgd/t_cgd_blowfish.c
2334
ATF_TP_ADD_TC(tp, cgd_bf_cbc_128_encblkno8);
tests/dev/cgd/t_cgd_blowfish.c
2335
ATF_TP_ADD_TC(tp, cgd_bf_cbc_256_encblkno1);
tests/dev/cgd/t_cgd_blowfish.c
2336
ATF_TP_ADD_TC(tp, cgd_bf_cbc_256_encblkno8);
tests/dev/cgd/t_cgd_blowfish.c
2337
ATF_TP_ADD_TC(tp, cgd_bf_cbc_448_encblkno1);
tests/dev/cgd/t_cgd_blowfish.c
2338
ATF_TP_ADD_TC(tp, cgd_bf_cbc_448_encblkno8);
tests/dev/clock_subr/t_clock_subr.c
302
ATF_TP_ADD_TCS(tp)
tests/dev/clock_subr/t_clock_subr.c
305
ATF_TP_ADD_TC(tp, ymdhms_to_secs);
tests/dev/clock_subr/t_clock_subr.c
306
ATF_TP_ADD_TC(tp, secs_to_ymdhms);
tests/dev/scsipi/t_cd.c
75
ATF_TP_ADD_TCS(tp)
tests/dev/scsipi/t_cd.c
78
ATF_TP_ADD_TC(tp, noisyeject);
tests/dev/sysmon/t_swwdog.c
185
ATF_TP_ADD_TCS(tp)
tests/dev/sysmon/t_swwdog.c
188
ATF_TP_ADD_TC(tp, panic);
tests/dev/sysmon/t_swwdog.c
189
ATF_TP_ADD_TC(tp, reboot);
tests/dev/sysmon/t_swwdog.c
190
ATF_TP_ADD_TC(tp, disarm);
tests/dev/usb/t_hid.c
259
ATF_TP_ADD_TCS(tp)
tests/dev/usb/t_hid.c
262
ATF_TP_ADD_TC(tp, khid);
tests/dev/usb/t_hid.c
263
ATF_TP_ADD_TC(tp, khid_parse_just_pop);
tests/fs/common/h_fsmacros.h
161
ATF_TP_ADD_TC(tp,fs##_##func)
tests/fs/common/h_fsmacros.h
237
ATF_TP_ADD_TCS(tp) \
tests/fs/common/snapshot.c
223
ATF_TP_ADD_TCS(tp)
tests/fs/common/snapshot.c
225
ATF_TP_ADD_TC(tp, snapshot);
tests/fs/common/snapshot.c
226
ATF_TP_ADD_TC(tp, snapshotstress);
tests/fs/ffs/t_extattr.c
225
ATF_TP_ADD_TCS(tp)
tests/fs/ffs/t_extattr.c
227
ATF_TP_ADD_TC(tp, extattr_simple);
tests/fs/ffs/t_extattr.c
228
ATF_TP_ADD_TC(tp, extattr_create_unlink);
tests/fs/ffs/t_fifos.c
154
ATF_TP_ADD_TCS(tp)
tests/fs/ffs/t_fifos.c
156
ATF_TP_ADD_TC(tp, fifos);
tests/fs/ffs/t_mount.c
130
ATF_TP_ADD_TCS(tp)
tests/fs/ffs/t_mount.c
133
ATF_TP_ADD_TC(tp, 48Kimage);
tests/fs/ffs/t_mount.c
134
ATF_TP_ADD_TC(tp, fsbsizeovermaxphys);
tests/fs/ffs/t_mount.c
135
ATF_TP_ADD_TC(tp, fsbsizeovermaxbsize);
tests/fs/ffs/t_quota2_1.c
100
ATF_TP_ADD_TCS(tp)
tests/fs/ffs/t_quota2_1.c
103
ATF_TP_ADD_TC(tp, quota_40_O1_le);
tests/fs/ffs/t_quota2_1.c
104
ATF_TP_ADD_TC(tp, quota_40_O1_be);
tests/fs/ffs/t_quota2_1.c
105
ATF_TP_ADD_TC(tp, quota_40_O2_le);
tests/fs/ffs/t_quota2_1.c
106
ATF_TP_ADD_TC(tp, quota_40_O2_be);
tests/fs/ffs/t_quota2_1.c
107
ATF_TP_ADD_TC(tp, quota_40_O1_log);
tests/fs/ffs/t_quota2_1.c
108
ATF_TP_ADD_TC(tp, quota_40_O2_log);
tests/fs/ffs/t_quota2_1.c
109
ATF_TP_ADD_TC(tp, quota_1000_O1_le);
tests/fs/ffs/t_quota2_1.c
110
ATF_TP_ADD_TC(tp, quota_1000_O1_be);
tests/fs/ffs/t_quota2_1.c
111
ATF_TP_ADD_TC(tp, quota_1000_O2_le);
tests/fs/ffs/t_quota2_1.c
112
ATF_TP_ADD_TC(tp, quota_1000_O2_be);
tests/fs/ffs/t_quota2_remount.c
129
ATF_TP_ADD_TCS(tp)
tests/fs/ffs/t_quota2_remount.c
132
ATF_TP_ADD_TC(tp, quota_10_O1_le);
tests/fs/ffs/t_quota2_remount.c
133
ATF_TP_ADD_TC(tp, quota_10_O1_be);
tests/fs/ffs/t_quota2_remount.c
135
ATF_TP_ADD_TC(tp, quota_10_O1_log);
tests/fs/ffs/t_quota2_remount.c
136
ATF_TP_ADD_TC(tp, quota_10_O2_log);
tests/fs/ffs/t_update_log.c
142
ATF_TP_ADD_TCS(tp)
tests/fs/ffs/t_update_log.c
144
ATF_TP_ADD_TC(tp, updaterwtolog);
tests/fs/ffs/t_update_log.c
145
ATF_TP_ADD_TC(tp, updaterwtolog_async);
tests/fs/fifofs/t_fifo.c
225
ATF_TP_ADD_TCS(tp)
tests/fs/fifofs/t_fifo.c
227
ATF_TP_ADD_TC(tp, parent_child);
tests/fs/hfs/t_pathconvert.c
79
ATF_TP_ADD_TCS(tp)
tests/fs/hfs/t_pathconvert.c
81
ATF_TP_ADD_TC(tp, colonslash);
tests/fs/kernfs/t_basic.c
127
ATF_TP_ADD_TCS(tp)
tests/fs/kernfs/t_basic.c
129
ATF_TP_ADD_TC(tp, hostname);
tests/fs/kernfs/t_basic.c
130
ATF_TP_ADD_TC(tp, getdents);
tests/fs/lfs/t_basic.c
73
ATF_TP_ADD_TCS(tp)
tests/fs/lfs/t_basic.c
76
ATF_TP_ADD_TC(tp, newfs_fsck32);
tests/fs/lfs/t_basic.c
77
ATF_TP_ADD_TC(tp, newfs_fsck64);
tests/fs/lfs/t_fcntl.c
397
ATF_TP_ADD_TCS(tp)
tests/fs/lfs/t_fcntl.c
400
ATF_TP_ADD_TC(tp, coalesce32);
tests/fs/lfs/t_fcntl.c
401
ATF_TP_ADD_TC(tp, coalesce64);
tests/fs/lfs/t_fcntl.c
402
ATF_TP_ADD_TC(tp, cleanseg32);
tests/fs/lfs/t_fcntl.c
403
ATF_TP_ADD_TC(tp, cleanseg64);
tests/fs/lfs/t_fcntl.c
404
ATF_TP_ADD_TC(tp, autoclean32);
tests/fs/lfs/t_fcntl.c
405
ATF_TP_ADD_TC(tp, autoclean64);
tests/fs/lfs/t_orphan.c
196
ATF_TP_ADD_TCS(tp)
tests/fs/lfs/t_orphan.c
199
ATF_TP_ADD_TC(tp, orphan32);
tests/fs/lfs/t_orphan.c
200
ATF_TP_ADD_TC(tp, orphan64);
tests/fs/lfs/t_pr.c
55
ATF_TP_ADD_TCS(tp)
tests/fs/lfs/t_pr.c
58
ATF_TP_ADD_TC(tp, mknod);
tests/fs/lfs/t_resize.c
165
ATF_TP_ADD_TCS(tp)
tests/fs/lfs/t_resize.c
168
ATF_TP_ADD_TC(tp, resize32);
tests/fs/lfs/t_resize.c
169
ATF_TP_ADD_TC(tp, resize64);
tests/fs/lfs/t_rfw.c
227
ATF_TP_ADD_TCS(tp)
tests/fs/lfs/t_rfw.c
230
ATF_TP_ADD_TC(tp, rfw32);
tests/fs/lfs/t_rfw.c
231
ATF_TP_ADD_TC(tp, rfw64);
tests/fs/nfs/t_mountd.c
112
ATF_TP_ADD_TCS(tp)
tests/fs/nfs/t_mountd.c
115
ATF_TP_ADD_TC(tp, mountdhup);
tests/fs/nullfs/t_basic.c
165
ATF_TP_ADD_TCS(tp)
tests/fs/nullfs/t_basic.c
168
ATF_TP_ADD_TC(tp, basic);
tests/fs/nullfs/t_basic.c
169
ATF_TP_ADD_TC(tp, twistymount);
tests/fs/ptyfs/t_nullpts.c
122
ATF_TP_ADD_TCS(tp)
tests/fs/ptyfs/t_nullpts.c
125
ATF_TP_ADD_TC(tp, nullrevoke);
tests/fs/ptyfs/t_ptyfs.c
56
ATF_TP_ADD_TCS(tp)
tests/fs/ptyfs/t_ptyfs.c
59
ATF_TP_ADD_TC(tp, basic);
tests/fs/puffs/t_basic.c
437
ATF_TP_ADD_TCS(tp)
tests/fs/puffs/t_basic.c
440
ATF_TP_ADD_TC(tp, mount);
tests/fs/puffs/t_basic.c
442
ATF_TP_ADD_TC(tp, root_fifo);
tests/fs/puffs/t_basic.c
443
ATF_TP_ADD_TC(tp, root_lnk);
tests/fs/puffs/t_basic.c
444
ATF_TP_ADD_TC(tp, root_reg);
tests/fs/puffs/t_basic.c
445
ATF_TP_ADD_TC(tp, root_chrdev);
tests/fs/puffs/t_basic.c
447
ATF_TP_ADD_TC(tp, inactive_basic);
tests/fs/puffs/t_basic.c
448
ATF_TP_ADD_TC(tp, inactive_reclaim);
tests/fs/puffs/t_basic.c
449
ATF_TP_ADD_TC(tp, reclaim_hardlink);
tests/fs/puffs/t_basic.c
450
ATF_TP_ADD_TC(tp, unlink_accessible);
tests/fs/puffs/t_basic.c
452
ATF_TP_ADD_TC(tp, signals);
tests/fs/puffs/t_fuzz.c
269
ATF_TP_ADD_TCS(tp)
tests/fs/puffs/t_fuzz.c
272
ATF_TP_ADD_TC(tp, mountfuzz0);
tests/fs/puffs/t_fuzz.c
273
ATF_TP_ADD_TC(tp, mountfuzz1);
tests/fs/puffs/t_fuzz.c
274
ATF_TP_ADD_TC(tp, mountfuzz2);
tests/fs/puffs/t_fuzz.c
275
ATF_TP_ADD_TC(tp, mountfuzz3);
tests/fs/puffs/t_fuzz.c
276
ATF_TP_ADD_TC(tp, mountfuzz4);
tests/fs/puffs/t_fuzz.c
277
ATF_TP_ADD_TC(tp, mountfuzz5);
tests/fs/puffs/t_fuzz.c
278
ATF_TP_ADD_TC(tp, mountfuzz6);
tests/fs/puffs/t_fuzz.c
279
ATF_TP_ADD_TC(tp, mountfuzz7);
tests/fs/puffs/t_fuzz.c
280
ATF_TP_ADD_TC(tp, mountfuzz8);
tests/fs/puffs/t_io.c
55
ATF_TP_ADD_TCS(tp)
tests/fs/puffs/t_io.c
58
ATF_TP_ADD_TC(tp, nocache);
tests/fs/tmpfs/t_renamerace.c
110
ATF_TP_ADD_TCS(tp)
tests/fs/tmpfs/t_renamerace.c
112
ATF_TP_ADD_TC(tp, renamerace2);
tests/fs/umapfs/t_basic.c
141
ATF_TP_ADD_TCS(tp)
tests/fs/umapfs/t_basic.c
143
ATF_TP_ADD_TC(tp, basic);
tests/fs/union/t_pr.c
271
ATF_TP_ADD_TCS(tp)
tests/fs/union/t_pr.c
273
ATF_TP_ADD_TC(tp, multilayer);
tests/fs/union/t_pr.c
274
ATF_TP_ADD_TC(tp, multilayer2);
tests/fs/union/t_pr.c
275
ATF_TP_ADD_TC(tp, cyclic);
tests/fs/union/t_pr.c
276
ATF_TP_ADD_TC(tp, cyclic2);
tests/fs/union/t_pr.c
277
ATF_TP_ADD_TC(tp, devnull1);
tests/fs/union/t_pr.c
278
ATF_TP_ADD_TC(tp, devnull2);
tests/fs/union/t_pr.c
279
ATF_TP_ADD_TC(tp, pr1677_lowerunsearchabledot);
tests/fs/vfs/t_full.c
94
ATF_TP_ADD_TCS(tp)
tests/fs/vfs/t_io.c
253
ATF_TP_ADD_TCS(tp)
tests/fs/vfs/t_link.c
148
ATF_TP_ADD_TCS(tp)
tests/fs/vfs/t_renamerace.c
268
ATF_TP_ADD_TCS(tp)
tests/fs/vfs/t_ro.c
191
ATF_TP_ADD_TCS(tp)
tests/fs/vfs/t_rwtoro.c
220
ATF_TP_ADD_TCS(tp)
tests/fs/vfs/t_union.c
197
ATF_TP_ADD_TCS(tp)
tests/fs/vfs/t_unpriv.c
224
ATF_TP_ADD_TCS(tp)
tests/fs/vfs/t_vfsops.c
197
ATF_TP_ADD_TCS(tp)
tests/fs/vfs/t_vnops.c
1095
ATF_TP_ADD_TCS(tp)
tests/include/machine/t_bswap.c
167
ATF_TP_ADD_TCS(tp)
tests/include/machine/t_bswap.c
170
ATF_TP_ADD_TC(tp, bswap16_basic);
tests/include/machine/t_bswap.c
171
ATF_TP_ADD_TC(tp, bswap16_unconst);
tests/include/machine/t_bswap.c
172
ATF_TP_ADD_TC(tp, bswap32_basic);
tests/include/machine/t_bswap.c
173
ATF_TP_ADD_TC(tp, bswap32_unconst);
tests/include/machine/t_bswap.c
174
ATF_TP_ADD_TC(tp, bswap64_basic);
tests/include/machine/t_bswap.c
175
ATF_TP_ADD_TC(tp, bswap64_unconst);
tests/include/sys/t_bitops.c
464
ATF_TP_ADD_TCS(tp)
tests/include/sys/t_bitops.c
467
ATF_TP_ADD_TC(tp, bitmap_basic);
tests/include/sys/t_bitops.c
468
ATF_TP_ADD_TC(tp, fast_divide32);
tests/include/sys/t_bitops.c
469
ATF_TP_ADD_TC(tp, ffsfls);
tests/include/sys/t_bitops.c
470
ATF_TP_ADD_TC(tp, ilog2_32bit);
tests/include/sys/t_bitops.c
471
ATF_TP_ADD_TC(tp, ilog2_64bit);
tests/include/sys/t_bitops.c
472
ATF_TP_ADD_TC(tp, ilog2_const);
tests/include/sys/t_bootblock.c
66
ATF_TP_ADD_TCS(tp)
tests/include/sys/t_bootblock.c
69
ATF_TP_ADD_TC(tp, mbr_sector);
tests/include/sys/t_bootblock.c
70
ATF_TP_ADD_TC(tp, mbr_partition);
tests/include/sys/t_cdefs.c
255
ATF_TP_ADD_TCS(tp)
tests/include/sys/t_cdefs.c
257
ATF_TP_ADD_TC(tp, stypeminmax);
tests/include/sys/t_cdefs.c
258
ATF_TP_ADD_TC(tp, utypeminmax);
tests/include/sys/t_cdefs.c
259
ATF_TP_ADD_TC(tp, sissigned);
tests/include/sys/t_cdefs.c
260
ATF_TP_ADD_TC(tp, uissigned);
tests/include/sys/t_cdefs.c
261
ATF_TP_ADD_TC(tp, stypemask);
tests/include/sys/t_cdefs.c
262
ATF_TP_ADD_TC(tp, utypemask);
tests/include/sys/t_cdefs.c
263
ATF_TP_ADD_TC(tp, stypefit);
tests/include/sys/t_cdefs.c
264
ATF_TP_ADD_TC(tp, utypefit);
tests/include/sys/t_list.c
83
ATF_TP_ADD_TCS(tp)
tests/include/sys/t_list.c
86
ATF_TP_ADD_TC(tp, list_move);
tests/include/sys/t_pslist.c
126
ATF_TP_ADD_TCS(tp)
tests/include/sys/t_pslist.c
129
ATF_TP_ADD_TC(tp, misc);
tests/include/sys/t_socket.c
198
ATF_TP_ADD_TCS(tp)
tests/include/sys/t_socket.c
200
ATF_TP_ADD_TC(tp, cmsg_sendfd);
tests/include/sys/t_socket.c
201
ATF_TP_ADD_TC(tp, cmsg_sendfd_bounds);
tests/include/sys/t_socket.c
202
ATF_TP_ADD_TC(tp, sock_cloexec);
tests/include/sys/t_tree.c
118
ATF_TP_ADD_TCS(tp)
tests/include/sys/t_tree.c
121
ATF_TP_ADD_TC(tp, tree_rbstress);
tests/include/sys/t_types.c
136
ATF_TP_ADD_TCS(tp)
tests/include/sys/t_types.c
139
ATF_TP_ADD_TC(tp, types_limits);
tests/include/sys/t_types.c
140
ATF_TP_ADD_TC(tp, types_signed);
tests/include/sys/t_types.c
141
ATF_TP_ADD_TC(tp, types_unsigned);
tests/include/t_bitstring.c
287
ATF_TP_ADD_TCS(tp)
tests/include/t_bitstring.c
290
ATF_TP_ADD_TC(tp, bits_8);
tests/include/t_bitstring.c
291
ATF_TP_ADD_TC(tp, bits_27);
tests/include/t_bitstring.c
292
ATF_TP_ADD_TC(tp, bits_32);
tests/include/t_bitstring.c
293
ATF_TP_ADD_TC(tp, bits_49);
tests/include/t_bitstring.c
294
ATF_TP_ADD_TC(tp, bits_64);
tests/include/t_bitstring.c
295
ATF_TP_ADD_TC(tp, bits_67);
tests/include/t_errno.c
758
ATF_TP_ADD_TCS(tp)
tests/include/t_errno.c
761
ATF_TP_ADD_TC(tp, errno_constants);
tests/include/t_glob.c
69
ATF_TP_ADD_TCS(tp)
tests/include/t_glob.c
72
ATF_TP_ADD_TC(tp, glob_types);
tests/include/t_inttypes.c
244
ATF_TP_ADD_TCS(tp)
tests/include/t_inttypes.c
247
ATF_TP_ADD_TC(tp, int_fmtio);
tests/include/t_limits.c
279
ATF_TP_ADD_TCS(tp)
tests/include/t_limits.c
282
ATF_TP_ADD_TC(tp, char);
tests/include/t_limits.c
283
ATF_TP_ADD_TC(tp, posix);
tests/include/t_limits.c
284
ATF_TP_ADD_TC(tp, short);
tests/include/t_netdb.c
238
ATF_TP_ADD_TCS(tp)
tests/include/t_netdb.c
241
ATF_TP_ADD_TC(tp, netdb_constants);
tests/include/t_paths.c
204
ATF_TP_ADD_TCS(tp)
tests/include/t_paths.c
207
ATF_TP_ADD_TC(tp, paths);
tests/include/t_stddef.c
120
ATF_TP_ADD_TCS(tp)
tests/include/t_stddef.c
123
ATF_TP_ADD_TC(tp, macros);
tests/include/t_stddef.c
124
ATF_TP_ADD_TC(tp, types);
tests/include/t_stdint.c
50
ATF_TP_ADD_TCS(tp)
tests/include/t_stdint.c
53
ATF_TP_ADD_TC(tp, int8);
tests/include/t_stdint.c
54
ATF_TP_ADD_TC(tp, int16);
tests/kernel/kqueue/read/t_fifo.c
140
ATF_TP_ADD_TCS(tp)
tests/kernel/kqueue/read/t_fifo.c
142
ATF_TP_ADD_TC(tp, fifo);
tests/kernel/kqueue/read/t_file.c
134
ATF_TP_ADD_TCS(tp)
tests/kernel/kqueue/read/t_file.c
136
ATF_TP_ADD_TC(tp, file);
tests/kernel/kqueue/read/t_file2.c
74
ATF_TP_ADD_TCS(tp)
tests/kernel/kqueue/read/t_file2.c
76
ATF_TP_ADD_TC(tp, file2);
tests/kernel/kqueue/read/t_pipe.c
79
ATF_TP_ADD_TCS(tp)
tests/kernel/kqueue/read/t_pipe.c
81
ATF_TP_ADD_TC(tp, pipe);
tests/kernel/kqueue/read/t_ttypty.c
176
ATF_TP_ADD_TCS(tp)
tests/kernel/kqueue/read/t_ttypty.c
178
ATF_TP_ADD_TC(tp, master);
tests/kernel/kqueue/read/t_ttypty.c
179
ATF_TP_ADD_TC(tp, slave);
tests/kernel/kqueue/read/t_ttypty.c
180
ATF_TP_ADD_TC(tp, closed_slave);
tests/kernel/kqueue/t_empty.c
176
ATF_TP_ADD_TCS(tp)
tests/kernel/kqueue/t_empty.c
178
ATF_TP_ADD_TC(tp, sock_tcp);
tests/kernel/kqueue/t_ioctl.c
100
ATF_TP_ADD_TCS(tp)
tests/kernel/kqueue/t_ioctl.c
102
ATF_TP_ADD_TC(tp, kfilter_byfilter);
tests/kernel/kqueue/t_ioctl.c
103
ATF_TP_ADD_TC(tp, kfilter_byname);
tests/kernel/kqueue/t_oneshot.c
68
ATF_TP_ADD_TCS(tp)
tests/kernel/kqueue/t_oneshot.c
70
ATF_TP_ADD_TC(tp, oneshot_udata);
tests/kernel/kqueue/t_proc1.c
150
ATF_TP_ADD_TCS(tp)
tests/kernel/kqueue/t_proc1.c
152
ATF_TP_ADD_TC(tp, proc1);
tests/kernel/kqueue/t_proc2.c
134
ATF_TP_ADD_TCS(tp)
tests/kernel/kqueue/t_proc2.c
136
ATF_TP_ADD_TC(tp, proc2);
tests/kernel/kqueue/t_proc3.c
94
ATF_TP_ADD_TCS(tp)
tests/kernel/kqueue/t_proc3.c
96
ATF_TP_ADD_TC(tp, proc3);
tests/kernel/kqueue/t_proc4.c
165
ATF_TP_ADD_TCS(tp)
tests/kernel/kqueue/t_proc4.c
167
ATF_TP_ADD_TC(tp, proc4);
tests/kernel/kqueue/t_scan.c
112
ATF_TP_ADD_TCS(tp)
tests/kernel/kqueue/t_scan.c
114
ATF_TP_ADD_TC(tp, scan1);
tests/kernel/kqueue/t_sig.c
205
ATF_TP_ADD_TCS(tp)
tests/kernel/kqueue/t_sig.c
207
ATF_TP_ADD_TC(tp, sig);
tests/kernel/kqueue/t_sig.c
208
ATF_TP_ADD_TC(tp, sig_and_proc);
tests/kernel/kqueue/t_timer.c
350
ATF_TP_ADD_TCS(tp)
tests/kernel/kqueue/t_timer.c
352
ATF_TP_ADD_TC(tp, basic_timer);
tests/kernel/kqueue/t_timer.c
353
ATF_TP_ADD_TC(tp, count_expirations);
tests/kernel/kqueue/t_timer.c
354
ATF_TP_ADD_TC(tp, abstime);
tests/kernel/kqueue/t_timer.c
355
ATF_TP_ADD_TC(tp, timer_units);
tests/kernel/kqueue/t_timer.c
356
ATF_TP_ADD_TC(tp, modify);
tests/kernel/kqueue/t_vnode.c
722
ATF_TP_ADD_TCS(tp)
tests/kernel/kqueue/t_vnode.c
724
ATF_TP_ADD_TC(tp, dir_no_note_link_create_file_in);
tests/kernel/kqueue/t_vnode.c
725
ATF_TP_ADD_TC(tp, dir_no_note_link_delete_file_in);
tests/kernel/kqueue/t_vnode.c
727
ATF_TP_ADD_TC(tp, dir_no_note_link_mv_dir_within);
tests/kernel/kqueue/t_vnode.c
728
ATF_TP_ADD_TC(tp, dir_no_note_link_mv_file_within);
tests/kernel/kqueue/t_vnode.c
730
ATF_TP_ADD_TC(tp, dir_note_link_create_dir_in);
tests/kernel/kqueue/t_vnode.c
731
ATF_TP_ADD_TC(tp, dir_note_link_delete_dir_in);
tests/kernel/kqueue/t_vnode.c
733
ATF_TP_ADD_TC(tp, dir_note_link_mv_dir_in);
tests/kernel/kqueue/t_vnode.c
734
ATF_TP_ADD_TC(tp, dir_note_link_mv_dir_out);
tests/kernel/kqueue/t_vnode.c
736
ATF_TP_ADD_TC(tp, dir_note_write_create_dir_in);
tests/kernel/kqueue/t_vnode.c
737
ATF_TP_ADD_TC(tp, dir_note_write_create_file_in);
tests/kernel/kqueue/t_vnode.c
739
ATF_TP_ADD_TC(tp, dir_note_write_delete_dir_in);
tests/kernel/kqueue/t_vnode.c
740
ATF_TP_ADD_TC(tp, dir_note_write_delete_file_in);
tests/kernel/kqueue/t_vnode.c
742
ATF_TP_ADD_TC(tp, dir_note_write_mv_dir_in);
tests/kernel/kqueue/t_vnode.c
743
ATF_TP_ADD_TC(tp, dir_note_write_mv_dir_out);
tests/kernel/kqueue/t_vnode.c
744
ATF_TP_ADD_TC(tp, dir_note_write_mv_dir_within);
tests/kernel/kqueue/t_vnode.c
745
ATF_TP_ADD_TC(tp, dir_note_write_mv_file_in);
tests/kernel/kqueue/t_vnode.c
746
ATF_TP_ADD_TC(tp, dir_note_write_mv_file_out);
tests/kernel/kqueue/t_vnode.c
747
ATF_TP_ADD_TC(tp, dir_note_write_mv_file_within);
tests/kernel/kqueue/t_vnode.c
749
ATF_TP_ADD_TC(tp, rename_over_self_hardlink);
tests/kernel/kqueue/t_vnode.c
751
ATF_TP_ADD_TC(tp, open_write_read_close);
tests/kernel/kqueue/t_vnode.c
752
ATF_TP_ADD_TC(tp, interest);
tests/kernel/kqueue/write/t_fifo.c
145
ATF_TP_ADD_TCS(tp)
tests/kernel/kqueue/write/t_fifo.c
147
ATF_TP_ADD_TC(tp, fifo);
tests/kernel/kqueue/write/t_pipe.c
140
ATF_TP_ADD_TCS(tp)
tests/kernel/kqueue/write/t_pipe.c
142
ATF_TP_ADD_TC(tp, pipe1);
tests/kernel/kqueue/write/t_pipe.c
143
ATF_TP_ADD_TC(tp, pipe2);
tests/kernel/kqueue/write/t_pipe.c
144
ATF_TP_ADD_TC(tp, pipe3);
tests/kernel/kqueue/write/t_ttypty.c
124
ATF_TP_ADD_TCS(tp)
tests/kernel/kqueue/write/t_ttypty.c
126
ATF_TP_ADD_TC(tp, master);
tests/kernel/kqueue/write/t_ttypty.c
127
ATF_TP_ADD_TC(tp, slave);
tests/kernel/t_cloexec.c
436
ATF_TP_ADD_TCS(tp)
tests/kernel/t_cloexec.c
439
ATF_TP_ADD_TC(tp, accept4_posixspawn);
tests/kernel/t_cloexec.c
440
ATF_TP_ADD_TC(tp, clonedev_posixspawn);
tests/kernel/t_cloexec.c
441
ATF_TP_ADD_TC(tp, dup3_posixspawn);
tests/kernel/t_cloexec.c
442
ATF_TP_ADD_TC(tp, fcntldupfd_posixspawn);
tests/kernel/t_cloexec.c
443
ATF_TP_ADD_TC(tp, kqueue_posixspawn);
tests/kernel/t_cloexec.c
444
ATF_TP_ADD_TC(tp, opencloexec_posixspawn);
tests/kernel/t_cloexec.c
445
ATF_TP_ADD_TC(tp, openfcntlcloexec_posixspawn);
tests/kernel/t_cloexec.c
446
ATF_TP_ADD_TC(tp, openioctlfioclex_posixspawn);
tests/kernel/t_cloexec.c
447
ATF_TP_ADD_TC(tp, paccept_posixspawn);
tests/kernel/t_cloexec.c
448
ATF_TP_ADD_TC(tp, pipe2rd_forkexecve);
tests/kernel/t_cloexec.c
449
ATF_TP_ADD_TC(tp, pipe2rd_posixspawn);
tests/kernel/t_cloexec.c
450
ATF_TP_ADD_TC(tp, pipe2rd_vforkexecve);
tests/kernel/t_cloexec.c
451
ATF_TP_ADD_TC(tp, pipe2wr_posixspawn);
tests/kernel/t_cloexec.c
452
ATF_TP_ADD_TC(tp, socket_posixspawn);
tests/kernel/t_cloexec.c
453
ATF_TP_ADD_TC(tp, socketpair0_posixspawn);
tests/kernel/t_cloexec.c
454
ATF_TP_ADD_TC(tp, socketpair1_posixspawn);
tests/kernel/t_clofork.c
406
ATF_TP_ADD_TCS(tp)
tests/kernel/t_clofork.c
409
ATF_TP_ADD_TC(tp, accept4_posixspawn);
tests/kernel/t_clofork.c
410
ATF_TP_ADD_TC(tp, clonedev_posixspawn);
tests/kernel/t_clofork.c
411
ATF_TP_ADD_TC(tp, dup3_posixspawn);
tests/kernel/t_clofork.c
412
ATF_TP_ADD_TC(tp, fcntldupfd_posixspawn);
tests/kernel/t_clofork.c
413
ATF_TP_ADD_TC(tp, kqueue_posixspawn);
tests/kernel/t_clofork.c
414
ATF_TP_ADD_TC(tp, openclofork_posixspawn);
tests/kernel/t_clofork.c
415
ATF_TP_ADD_TC(tp, openfcntlclofork_posixspawn);
tests/kernel/t_clofork.c
416
ATF_TP_ADD_TC(tp, paccept_posixspawn);
tests/kernel/t_clofork.c
417
ATF_TP_ADD_TC(tp, pipe2rd_forkexecve);
tests/kernel/t_clofork.c
418
ATF_TP_ADD_TC(tp, pipe2rd_posixspawn);
tests/kernel/t_clofork.c
419
ATF_TP_ADD_TC(tp, pipe2rd_vforkexecve);
tests/kernel/t_clofork.c
420
ATF_TP_ADD_TC(tp, pipe2wr_posixspawn);
tests/kernel/t_clofork.c
421
ATF_TP_ADD_TC(tp, socket_posixspawn);
tests/kernel/t_clofork.c
422
ATF_TP_ADD_TC(tp, socketpair0_posixspawn);
tests/kernel/t_clofork.c
423
ATF_TP_ADD_TC(tp, socketpair1_posixspawn);
tests/kernel/t_clofork.c
439
ATF_TP_ADD_TCS(tp)
tests/kernel/t_clofork.c
441
ATF_TP_ADD_TC(tp, not_implemented);
tests/kernel/t_epoll.c
235
ATF_TP_ADD_TCS(tp)
tests/kernel/t_epoll.c
237
ATF_TP_ADD_TC(tp, create_size);
tests/kernel/t_epoll.c
238
ATF_TP_ADD_TC(tp, create_cloexec);
tests/kernel/t_epoll.c
239
ATF_TP_ADD_TC(tp, bad_epfd);
tests/kernel/t_epoll.c
240
ATF_TP_ADD_TC(tp, bad_fd);
tests/kernel/t_epoll.c
241
ATF_TP_ADD_TC(tp, not_added);
tests/kernel/t_epoll.c
242
ATF_TP_ADD_TC(tp, watching_self);
tests/kernel/t_epoll.c
243
ATF_TP_ADD_TC(tp, watch_loops);
tests/kernel/t_epoll.c
244
ATF_TP_ADD_TC(tp, watch_depth);
tests/kernel/t_execregs.c
190
ATF_TP_ADD_TCS(tp)
tests/kernel/t_execregs.c
193
ATF_TP_ADD_TC(tp, execregszero);
tests/kernel/t_execregs.c
194
ATF_TP_ADD_TC(tp, spawnregszero);
tests/kernel/t_extattrctl.c
23
ATF_TP_ADD_TCS(tp)
tests/kernel/t_extattrctl.c
25
ATF_TP_ADD_TC(tp, extattrctl_namei);
tests/kernel/t_extent.c
370
ATF_TP_ADD_TCS(tp)
tests/kernel/t_extent.c
372
ATF_TP_ADD_TC(tp, coalesce);
tests/kernel/t_extent.c
373
ATF_TP_ADD_TC(tp, subregion1);
tests/kernel/t_extent.c
374
ATF_TP_ADD_TC(tp, subregion2);
tests/kernel/t_extent.c
375
ATF_TP_ADD_TC(tp, bound1);
tests/kernel/t_extent.c
376
ATF_TP_ADD_TC(tp, bound2);
tests/kernel/t_extent.c
377
ATF_TP_ADD_TC(tp, bound3);
tests/kernel/t_extent.c
378
ATF_TP_ADD_TC(tp, bound4);
tests/kernel/t_extent.c
379
ATF_TP_ADD_TC(tp, subregion3);
tests/kernel/t_extent.c
380
ATF_TP_ADD_TC(tp, bound5);
tests/kernel/t_extent.c
381
ATF_TP_ADD_TC(tp, free);
tests/kernel/t_extent.c
382
ATF_TP_ADD_TC(tp, subregion4);
tests/kernel/t_fcntl.c
126
ATF_TP_ADD_TCS(tp)
tests/kernel/t_fcntl.c
128
ATF_TP_ADD_TC(tp, getpath_vnode);
tests/kernel/t_fcntl.c
129
ATF_TP_ADD_TC(tp, getpath_memfd);
tests/kernel/t_fdrestart.c
265
ATF_TP_ADD_TCS(tp)
tests/kernel/t_fdrestart.c
268
ATF_TP_ADD_TC(tp, pipe_read);
tests/kernel/t_fdrestart.c
269
ATF_TP_ADD_TC(tp, pipe_write);
tests/kernel/t_fdrestart.c
270
ATF_TP_ADD_TC(tp, socketpair_read);
tests/kernel/t_fdrestart.c
271
ATF_TP_ADD_TC(tp, socketpair_write);
tests/kernel/t_filedesc.c
103
ATF_TP_ADD_TCS(tp)
tests/kernel/t_filedesc.c
105
ATF_TP_ADD_TC(tp, getfilerace);
tests/kernel/t_kauth_pr_47598.c
164
ATF_TP_ADD_TCS(tp)
tests/kernel/t_kauth_pr_47598.c
166
ATF_TP_ADD_TC(tp, kauth_curtain);
tests/kernel/t_ksem.c
136
ATF_TP_ADD_TCS(tp)
tests/kernel/t_ksem.c
139
ATF_TP_ADD_TC(tp, close_on_unnamed);
tests/kernel/t_ksem.c
140
ATF_TP_ADD_TC(tp, close_on_unnamed_pshared);
tests/kernel/t_ksem.c
141
ATF_TP_ADD_TC(tp, destroy_on_named);
tests/kernel/t_ksem.c
142
ATF_TP_ADD_TC(tp, open_unlinked_lifecycle);
tests/kernel/t_lock.c
82
ATF_TP_ADD_TCS(tp)
tests/kernel/t_lock.c
84
ATF_TP_ADD_TC(tp, lock);
tests/kernel/t_lockf.c
256
ATF_TP_ADD_TCS(tp)
tests/kernel/t_lockf.c
258
ATF_TP_ADD_TC(tp, randlock);
tests/kernel/t_lockf.c
259
ATF_TP_ADD_TC(tp, deadlock);
tests/kernel/t_lua.c
226
ATF_TP_ADD_TCS(tp)
tests/kernel/t_lua.c
229
ATF_TP_ADD_TC(tp, access);
tests/kernel/t_lua.c
230
ATF_TP_ADD_TC(tp, perms);
tests/kernel/t_memfd_create.c
477
ATF_TP_ADD_TCS(tp)
tests/kernel/t_memfd_create.c
479
ATF_TP_ADD_TC(tp, create_null_name);
tests/kernel/t_memfd_create.c
480
ATF_TP_ADD_TC(tp, create_long_name);
tests/kernel/t_memfd_create.c
481
ATF_TP_ADD_TC(tp, read_write);
tests/kernel/t_memfd_create.c
482
ATF_TP_ADD_TC(tp, truncate);
tests/kernel/t_memfd_create.c
483
ATF_TP_ADD_TC(tp, mmap);
tests/kernel/t_memfd_create.c
484
ATF_TP_ADD_TC(tp, create_no_sealing);
tests/kernel/t_memfd_create.c
485
ATF_TP_ADD_TC(tp, seal_seal);
tests/kernel/t_memfd_create.c
486
ATF_TP_ADD_TC(tp, seal_shrink);
tests/kernel/t_memfd_create.c
487
ATF_TP_ADD_TC(tp, seal_grow);
tests/kernel/t_memfd_create.c
488
ATF_TP_ADD_TC(tp, seal_write);
tests/kernel/t_memfd_create.c
489
ATF_TP_ADD_TC(tp, seal_write_mmap);
tests/kernel/t_memfd_create.c
490
ATF_TP_ADD_TC(tp, seal_future_write);
tests/kernel/t_memfd_create.c
491
ATF_TP_ADD_TC(tp, seal_future_write_mmap);
tests/kernel/t_mqueue.c
128
ATF_TP_ADD_TCS(tp)
tests/kernel/t_mqueue.c
130
ATF_TP_ADD_TC(tp, mqueue);
tests/kernel/t_nanosleep.c
237
ATF_TP_ADD_TCS(tp)
tests/kernel/t_nanosleep.c
240
ATF_TP_ADD_TC(tp, nanosleep_monotonic_absolute);
tests/kernel/t_nanosleep.c
241
ATF_TP_ADD_TC(tp, nanosleep_monotonic_relative);
tests/kernel/t_nanosleep.c
242
ATF_TP_ADD_TC(tp, nanosleep_realtime_absolute);
tests/kernel/t_nanosleep.c
243
ATF_TP_ADD_TC(tp, nanosleep_realtime_relative);
tests/kernel/t_open_pr_57260.c
92
ATF_TP_ADD_TCS(tp)
tests/kernel/t_open_pr_57260.c
95
ATF_TP_ADD_TC(tp, openrestartsignal);
tests/kernel/t_proccwd.c
147
ATF_TP_ADD_TCS(tp)
tests/kernel/t_proccwd.c
150
ATF_TP_ADD_TC(tp, prompt_pid);
tests/kernel/t_proccwd.c
151
ATF_TP_ADD_TC(tp, chroot);
tests/kernel/t_pty.c
340
ATF_TP_ADD_TCS(tp)
tests/kernel/t_pty.c
342
ATF_TP_ADD_TC(tp, pty_no_queue);
tests/kernel/t_pty.c
343
ATF_TP_ADD_TC(tp, pty_queue);
tests/kernel/t_rnd.c
113
ATF_TP_ADD_TCS(tp)
tests/kernel/t_rnd.c
115
ATF_TP_ADD_TC(tp, RNDADDDATA);
tests/kernel/t_rnd.c
116
ATF_TP_ADD_TC(tp, RNDADDDATA2);
tests/kernel/t_rnd.c
117
ATF_TP_ADD_TC(tp, read_random);
tests/kernel/t_semtimedop.c
271
ATF_TP_ADD_TCS(tp)
tests/kernel/t_semtimedop.c
273
ATF_TP_ADD_TC(tp, semtimedop_basic);
tests/kernel/t_semtimedop.c
274
ATF_TP_ADD_TC(tp, semtimedop_timeout);
tests/kernel/t_semtimedop.c
275
ATF_TP_ADD_TC(tp, semtimedop_semundo);
tests/kernel/t_semtimedop.c
276
ATF_TP_ADD_TC(tp, semtimedop_invalid);
tests/kernel/t_signal_and_fpu.c
392
ATF_TP_ADD_TCS(tp)
tests/kernel/t_signal_and_fpu.c
395
ATF_TP_ADD_TC(tp, double);
tests/kernel/t_signal_and_fpu.c
396
ATF_TP_ADD_TC(tp, float);
tests/kernel/t_signal_and_fpu.c
397
ATF_TP_ADD_TC(tp, ldouble);
tests/kernel/t_signal_and_fpu.c
399
ATF_TP_ADD_TC(tp, x87);
tests/kernel/t_signal_and_fpu.c
400
ATF_TP_ADD_TC(tp, xmm);
tests/kernel/t_signal_and_fpu.c
401
ATF_TP_ADD_TC(tp, ymm);
tests/kernel/t_signal_and_sp.c
616
ATF_TP_ADD_TCS(tp)
tests/kernel/t_signal_and_sp.c
619
ATF_TP_ADD_TC(tp, contextsp);
tests/kernel/t_signal_and_sp.c
620
ATF_TP_ADD_TC(tp, contextsplink);
tests/kernel/t_signal_and_sp.c
621
ATF_TP_ADD_TC(tp, execsp_dynamic);
tests/kernel/t_signal_and_sp.c
622
ATF_TP_ADD_TC(tp, execsp_static);
tests/kernel/t_signal_and_sp.c
623
ATF_TP_ADD_TC(tp, misaligned_sp_and_signal);
tests/kernel/t_signal_and_sp.c
624
ATF_TP_ADD_TC(tp, signalsp);
tests/kernel/t_signal_and_sp.c
625
ATF_TP_ADD_TC(tp, signalsp_sigaltstack);
tests/kernel/t_signal_and_sp.c
626
ATF_TP_ADD_TC(tp, threadsp);
tests/kernel/t_sysctl.c
69
ATF_TP_ADD_TCS(tp)
tests/kernel/t_sysctl.c
71
ATF_TP_ADD_TC(tp, bufsize);
tests/kernel/t_sysv.c
767
ATF_TP_ADD_TCS(tp)
tests/kernel/t_sysv.c
770
ATF_TP_ADD_TC(tp, msg);
tests/kernel/t_sysv.c
771
ATF_TP_ADD_TC(tp, sem);
tests/kernel/t_sysv.c
772
ATF_TP_ADD_TC(tp, shm);
tests/kernel/t_time_arith.c
1156
ATF_TP_ADD_TCS(tp)
tests/kernel/t_time_arith.c
1159
ATF_TP_ADD_TC(tp, itimer_transitions);
tests/kernel/t_time_arith.c
1160
ATF_TP_ADD_TC(tp, tstohz);
tests/kernel/t_time_arith.c
1161
ATF_TP_ADD_TC(tp, tvtohz);
tests/kernel/t_timeleft.c
128
ATF_TP_ADD_TCS(tp)
tests/kernel/t_timeleft.c
131
ATF_TP_ADD_TC(tp, timeleft__lwp_park);
tests/kernel/t_timeleft.c
133
ATF_TP_ADD_TC(tp, timeleft_pselect);
tests/kernel/t_unmount.c
101
ATF_TP_ADD_TCS(tp)
tests/kernel/t_unmount.c
103
ATF_TP_ADD_TC(tp, async);
tests/kernel/t_zombie.c
265
ATF_TP_ADD_TCS(tp)
tests/kernel/t_zombie.c
267
ATF_TP_ADD_TC(tp, signal1);
tests/kernel/t_zombie.c
268
ATF_TP_ADD_TC(tp, signal2);
tests/kernel/t_zombie.c
269
ATF_TP_ADD_TC(tp, signal3);
tests/kernel/t_zombie.c
270
ATF_TP_ADD_TC(tp, signal4);
tests/kernel/t_zombie.c
271
ATF_TP_ADD_TC(tp, signal5);
tests/kernel/t_zombie.c
273
ATF_TP_ADD_TC(tp, race1);
tests/kernel/tty/t_pr.c
178
ATF_TP_ADD_TCS(tp)
tests/kernel/tty/t_pr.c
181
ATF_TP_ADD_TC(tp, ptyioctl);
tests/kernel/tty/t_pr.c
182
ATF_TP_ADD_TC(tp, client_first);
tests/kernel/tty/t_pr.c
183
ATF_TP_ADD_TC(tp, master_first);
tests/lib/libbluetooth/t_bluetooth.c
80
ATF_TP_ADD_TCS(tp)
tests/lib/libbluetooth/t_bluetooth.c
83
ATF_TP_ADD_TC(tp, check_bt_aton);
tests/lib/libbluetooth/t_bluetooth.c
84
ATF_TP_ADD_TC(tp, check_bt_ntoa);
tests/lib/libbluetooth/t_sdp_data.c
129
ATF_TP_ADD_TCS(tp)
tests/lib/libbluetooth/t_sdp_data.c
132
ATF_TP_ADD_TC(tp, check_sdp_data_type);
tests/lib/libbluetooth/t_sdp_data.c
133
ATF_TP_ADD_TC(tp, check_sdp_data_size);
tests/lib/libbluetooth/t_sdp_get.c
628
ATF_TP_ADD_TCS(tp)
tests/lib/libbluetooth/t_sdp_get.c
631
ATF_TP_ADD_TC(tp, check_sdp_get_data);
tests/lib/libbluetooth/t_sdp_get.c
632
ATF_TP_ADD_TC(tp, check_sdp_get_attr);
tests/lib/libbluetooth/t_sdp_get.c
633
ATF_TP_ADD_TC(tp, check_sdp_get_uuid);
tests/lib/libbluetooth/t_sdp_get.c
634
ATF_TP_ADD_TC(tp, check_sdp_get_bool);
tests/lib/libbluetooth/t_sdp_get.c
635
ATF_TP_ADD_TC(tp, check_sdp_get_uint);
tests/lib/libbluetooth/t_sdp_get.c
636
ATF_TP_ADD_TC(tp, check_sdp_get_int);
tests/lib/libbluetooth/t_sdp_get.c
637
ATF_TP_ADD_TC(tp, check_sdp_get_seq);
tests/lib/libbluetooth/t_sdp_get.c
638
ATF_TP_ADD_TC(tp, check_sdp_get_alt);
tests/lib/libbluetooth/t_sdp_get.c
639
ATF_TP_ADD_TC(tp, check_sdp_get_str);
tests/lib/libbluetooth/t_sdp_get.c
640
ATF_TP_ADD_TC(tp, check_sdp_get_url);
tests/lib/libbluetooth/t_sdp_match.c
81
ATF_TP_ADD_TCS(tp)
tests/lib/libbluetooth/t_sdp_match.c
84
ATF_TP_ADD_TC(tp, check_sdp_match_uuid16);
tests/lib/libbluetooth/t_sdp_put.c
849
ATF_TP_ADD_TCS(tp)
tests/lib/libbluetooth/t_sdp_put.c
852
ATF_TP_ADD_TC(tp, check_sdp_put_data);
tests/lib/libbluetooth/t_sdp_put.c
853
ATF_TP_ADD_TC(tp, check_sdp_put_attr);
tests/lib/libbluetooth/t_sdp_put.c
854
ATF_TP_ADD_TC(tp, check_sdp_put_uuid);
tests/lib/libbluetooth/t_sdp_put.c
855
ATF_TP_ADD_TC(tp, check_sdp_put_uuid16);
tests/lib/libbluetooth/t_sdp_put.c
856
ATF_TP_ADD_TC(tp, check_sdp_put_uuid32);
tests/lib/libbluetooth/t_sdp_put.c
857
ATF_TP_ADD_TC(tp, check_sdp_put_uuid128);
tests/lib/libbluetooth/t_sdp_put.c
858
ATF_TP_ADD_TC(tp, check_sdp_put_bool);
tests/lib/libbluetooth/t_sdp_put.c
859
ATF_TP_ADD_TC(tp, check_sdp_put_uint);
tests/lib/libbluetooth/t_sdp_put.c
860
ATF_TP_ADD_TC(tp, check_sdp_put_uint8);
tests/lib/libbluetooth/t_sdp_put.c
861
ATF_TP_ADD_TC(tp, check_sdp_put_uint16);
tests/lib/libbluetooth/t_sdp_put.c
862
ATF_TP_ADD_TC(tp, check_sdp_put_uint32);
tests/lib/libbluetooth/t_sdp_put.c
863
ATF_TP_ADD_TC(tp, check_sdp_put_uint64);
tests/lib/libbluetooth/t_sdp_put.c
864
ATF_TP_ADD_TC(tp, check_sdp_put_int);
tests/lib/libbluetooth/t_sdp_put.c
865
ATF_TP_ADD_TC(tp, check_sdp_put_int8);
tests/lib/libbluetooth/t_sdp_put.c
866
ATF_TP_ADD_TC(tp, check_sdp_put_int16);
tests/lib/libbluetooth/t_sdp_put.c
867
ATF_TP_ADD_TC(tp, check_sdp_put_int32);
tests/lib/libbluetooth/t_sdp_put.c
868
ATF_TP_ADD_TC(tp, check_sdp_put_int64);
tests/lib/libbluetooth/t_sdp_put.c
869
ATF_TP_ADD_TC(tp, check_sdp_put_seq);
tests/lib/libbluetooth/t_sdp_put.c
870
ATF_TP_ADD_TC(tp, check_sdp_put_alt);
tests/lib/libbluetooth/t_sdp_put.c
871
ATF_TP_ADD_TC(tp, check_sdp_put_str);
tests/lib/libbluetooth/t_sdp_put.c
872
ATF_TP_ADD_TC(tp, check_sdp_put_url);
tests/lib/libbluetooth/t_sdp_set.c
349
ATF_TP_ADD_TCS(tp)
tests/lib/libbluetooth/t_sdp_set.c
352
ATF_TP_ADD_TC(tp, check_sdp_set_bool);
tests/lib/libbluetooth/t_sdp_set.c
353
ATF_TP_ADD_TC(tp, check_sdp_set_uint);
tests/lib/libbluetooth/t_sdp_set.c
354
ATF_TP_ADD_TC(tp, check_sdp_set_int);
tests/lib/libbluetooth/t_sdp_set.c
355
ATF_TP_ADD_TC(tp, check_sdp_set_seq);
tests/lib/libbluetooth/t_sdp_set.c
356
ATF_TP_ADD_TC(tp, check_sdp_set_alt);
tests/lib/libbpfjit/t_bpfjit.c
4777
ATF_TP_ADD_TCS(tp)
tests/lib/libbpfjit/t_bpfjit.c
4784
ATF_TP_ADD_TC(tp, libbpfjit_empty);
tests/lib/libbpfjit/t_bpfjit.c
4785
ATF_TP_ADD_TC(tp, libbpfjit_ret_k);
tests/lib/libbpfjit/t_bpfjit.c
4786
ATF_TP_ADD_TC(tp, libbpfjit_bad_ret_a);
tests/lib/libbpfjit/t_bpfjit.c
4787
ATF_TP_ADD_TC(tp, libbpfjit_bad_ret_k);
tests/lib/libbpfjit/t_bpfjit.c
4788
ATF_TP_ADD_TC(tp, libbpfjit_bad_ret_x);
tests/lib/libbpfjit/t_bpfjit.c
4789
ATF_TP_ADD_TC(tp, libbpfjit_bad_middle_ret_a);
tests/lib/libbpfjit/t_bpfjit.c
4790
ATF_TP_ADD_TC(tp, libbpfjit_bad_middle_ret_k);
tests/lib/libbpfjit/t_bpfjit.c
4791
ATF_TP_ADD_TC(tp, libbpfjit_bad_middle_ret_x);
tests/lib/libbpfjit/t_bpfjit.c
4792
ATF_TP_ADD_TC(tp, libbpfjit_bad_unreachable_ret_x);
tests/lib/libbpfjit/t_bpfjit.c
4793
ATF_TP_ADD_TC(tp, libbpfjit_alu_add_k);
tests/lib/libbpfjit/t_bpfjit.c
4794
ATF_TP_ADD_TC(tp, libbpfjit_alu_sub_k);
tests/lib/libbpfjit/t_bpfjit.c
4795
ATF_TP_ADD_TC(tp, libbpfjit_alu_mul_k);
tests/lib/libbpfjit/t_bpfjit.c
4796
ATF_TP_ADD_TC(tp, libbpfjit_alu_div0_k);
tests/lib/libbpfjit/t_bpfjit.c
4797
ATF_TP_ADD_TC(tp, libbpfjit_alu_div1_k);
tests/lib/libbpfjit/t_bpfjit.c
4798
ATF_TP_ADD_TC(tp, libbpfjit_alu_div2_k);
tests/lib/libbpfjit/t_bpfjit.c
4799
ATF_TP_ADD_TC(tp, libbpfjit_alu_div4_k);
tests/lib/libbpfjit/t_bpfjit.c
4800
ATF_TP_ADD_TC(tp, libbpfjit_alu_div10_k);
tests/lib/libbpfjit/t_bpfjit.c
4801
ATF_TP_ADD_TC(tp, libbpfjit_alu_div10000_k);
tests/lib/libbpfjit/t_bpfjit.c
4802
ATF_TP_ADD_TC(tp, libbpfjit_alu_div7609801_k);
tests/lib/libbpfjit/t_bpfjit.c
4803
ATF_TP_ADD_TC(tp, libbpfjit_alu_div80000000_k);
tests/lib/libbpfjit/t_bpfjit.c
4804
ATF_TP_ADD_TC(tp, libbpfjit_alu_mod0_k);
tests/lib/libbpfjit/t_bpfjit.c
4805
ATF_TP_ADD_TC(tp, libbpfjit_alu_mod1_k);
tests/lib/libbpfjit/t_bpfjit.c
4806
ATF_TP_ADD_TC(tp, libbpfjit_alu_mod2_k);
tests/lib/libbpfjit/t_bpfjit.c
4807
ATF_TP_ADD_TC(tp, libbpfjit_alu_mod4_k);
tests/lib/libbpfjit/t_bpfjit.c
4808
ATF_TP_ADD_TC(tp, libbpfjit_alu_mod10_k);
tests/lib/libbpfjit/t_bpfjit.c
4809
ATF_TP_ADD_TC(tp, libbpfjit_alu_mod10000_k);
tests/lib/libbpfjit/t_bpfjit.c
4810
ATF_TP_ADD_TC(tp, libbpfjit_alu_mod7609801_k);
tests/lib/libbpfjit/t_bpfjit.c
4811
ATF_TP_ADD_TC(tp, libbpfjit_alu_mod80000000_k);
tests/lib/libbpfjit/t_bpfjit.c
4812
ATF_TP_ADD_TC(tp, libbpfjit_alu_and_k);
tests/lib/libbpfjit/t_bpfjit.c
4813
ATF_TP_ADD_TC(tp, libbpfjit_alu_or_k);
tests/lib/libbpfjit/t_bpfjit.c
4814
ATF_TP_ADD_TC(tp, libbpfjit_alu_xor_k);
tests/lib/libbpfjit/t_bpfjit.c
4815
ATF_TP_ADD_TC(tp, libbpfjit_alu_lsh_k);
tests/lib/libbpfjit/t_bpfjit.c
4816
ATF_TP_ADD_TC(tp, libbpfjit_alu_lsh0_k);
tests/lib/libbpfjit/t_bpfjit.c
4817
ATF_TP_ADD_TC(tp, libbpfjit_alu_rsh_k);
tests/lib/libbpfjit/t_bpfjit.c
4818
ATF_TP_ADD_TC(tp, libbpfjit_alu_rsh0_k);
tests/lib/libbpfjit/t_bpfjit.c
4819
ATF_TP_ADD_TC(tp, libbpfjit_alu_modulo_k);
tests/lib/libbpfjit/t_bpfjit.c
4820
ATF_TP_ADD_TC(tp, libbpfjit_alu_add_x);
tests/lib/libbpfjit/t_bpfjit.c
4821
ATF_TP_ADD_TC(tp, libbpfjit_alu_sub_x);
tests/lib/libbpfjit/t_bpfjit.c
4822
ATF_TP_ADD_TC(tp, libbpfjit_alu_mul_x);
tests/lib/libbpfjit/t_bpfjit.c
4823
ATF_TP_ADD_TC(tp, libbpfjit_alu_div0_x);
tests/lib/libbpfjit/t_bpfjit.c
4824
ATF_TP_ADD_TC(tp, libbpfjit_alu_div1_x);
tests/lib/libbpfjit/t_bpfjit.c
4825
ATF_TP_ADD_TC(tp, libbpfjit_alu_div2_x);
tests/lib/libbpfjit/t_bpfjit.c
4826
ATF_TP_ADD_TC(tp, libbpfjit_alu_div4_x);
tests/lib/libbpfjit/t_bpfjit.c
4827
ATF_TP_ADD_TC(tp, libbpfjit_alu_div10_x);
tests/lib/libbpfjit/t_bpfjit.c
4828
ATF_TP_ADD_TC(tp, libbpfjit_alu_div10000_x);
tests/lib/libbpfjit/t_bpfjit.c
4829
ATF_TP_ADD_TC(tp, libbpfjit_alu_div7609801_x);
tests/lib/libbpfjit/t_bpfjit.c
4830
ATF_TP_ADD_TC(tp, libbpfjit_alu_div80000000_x);
tests/lib/libbpfjit/t_bpfjit.c
4831
ATF_TP_ADD_TC(tp, libbpfjit_alu_mod0_x);
tests/lib/libbpfjit/t_bpfjit.c
4832
ATF_TP_ADD_TC(tp, libbpfjit_alu_mod1_x);
tests/lib/libbpfjit/t_bpfjit.c
4833
ATF_TP_ADD_TC(tp, libbpfjit_alu_mod2_x);
tests/lib/libbpfjit/t_bpfjit.c
4834
ATF_TP_ADD_TC(tp, libbpfjit_alu_mod4_x);
tests/lib/libbpfjit/t_bpfjit.c
4835
ATF_TP_ADD_TC(tp, libbpfjit_alu_mod10_x);
tests/lib/libbpfjit/t_bpfjit.c
4836
ATF_TP_ADD_TC(tp, libbpfjit_alu_mod10000_x);
tests/lib/libbpfjit/t_bpfjit.c
4837
ATF_TP_ADD_TC(tp, libbpfjit_alu_mod7609801_x);
tests/lib/libbpfjit/t_bpfjit.c
4838
ATF_TP_ADD_TC(tp, libbpfjit_alu_mod80000000_x);
tests/lib/libbpfjit/t_bpfjit.c
4839
ATF_TP_ADD_TC(tp, libbpfjit_alu_and_x);
tests/lib/libbpfjit/t_bpfjit.c
4840
ATF_TP_ADD_TC(tp, libbpfjit_alu_or_x);
tests/lib/libbpfjit/t_bpfjit.c
4841
ATF_TP_ADD_TC(tp, libbpfjit_alu_xor_x);
tests/lib/libbpfjit/t_bpfjit.c
4842
ATF_TP_ADD_TC(tp, libbpfjit_alu_lsh_x);
tests/lib/libbpfjit/t_bpfjit.c
4843
ATF_TP_ADD_TC(tp, libbpfjit_alu_lsh0_x);
tests/lib/libbpfjit/t_bpfjit.c
4844
ATF_TP_ADD_TC(tp, libbpfjit_alu_rsh_x);
tests/lib/libbpfjit/t_bpfjit.c
4845
ATF_TP_ADD_TC(tp, libbpfjit_alu_rsh0_x);
tests/lib/libbpfjit/t_bpfjit.c
4846
ATF_TP_ADD_TC(tp, libbpfjit_alu_modulo_x);
tests/lib/libbpfjit/t_bpfjit.c
4847
ATF_TP_ADD_TC(tp, libbpfjit_alu_neg);
tests/lib/libbpfjit/t_bpfjit.c
4848
ATF_TP_ADD_TC(tp, libbpfjit_jmp_ja);
tests/lib/libbpfjit/t_bpfjit.c
4849
ATF_TP_ADD_TC(tp, libbpfjit_jmp_ja_invalid);
tests/lib/libbpfjit/t_bpfjit.c
4850
ATF_TP_ADD_TC(tp, libbpfjit_jmp_ja_overflow);
tests/lib/libbpfjit/t_bpfjit.c
4851
ATF_TP_ADD_TC(tp, libbpfjit_jmp_jgt_k);
tests/lib/libbpfjit/t_bpfjit.c
4852
ATF_TP_ADD_TC(tp, libbpfjit_jmp_jge_k);
tests/lib/libbpfjit/t_bpfjit.c
4853
ATF_TP_ADD_TC(tp, libbpfjit_jmp_jeq_k);
tests/lib/libbpfjit/t_bpfjit.c
4854
ATF_TP_ADD_TC(tp, libbpfjit_jmp_jset_k);
tests/lib/libbpfjit/t_bpfjit.c
4855
ATF_TP_ADD_TC(tp, libbpfjit_jmp_modulo_k);
tests/lib/libbpfjit/t_bpfjit.c
4856
ATF_TP_ADD_TC(tp, libbpfjit_jmp_jgt_x);
tests/lib/libbpfjit/t_bpfjit.c
4857
ATF_TP_ADD_TC(tp, libbpfjit_jmp_jge_x);
tests/lib/libbpfjit/t_bpfjit.c
4858
ATF_TP_ADD_TC(tp, libbpfjit_jmp_jeq_x);
tests/lib/libbpfjit/t_bpfjit.c
4859
ATF_TP_ADD_TC(tp, libbpfjit_jmp_jset_x);
tests/lib/libbpfjit/t_bpfjit.c
4860
ATF_TP_ADD_TC(tp, libbpfjit_jmp_jeq_x_noinit_ax);
tests/lib/libbpfjit/t_bpfjit.c
4861
ATF_TP_ADD_TC(tp, libbpfjit_jmp_jeq_x_noinit_a);
tests/lib/libbpfjit/t_bpfjit.c
4862
ATF_TP_ADD_TC(tp, libbpfjit_jmp_jeq_x_noinit_x);
tests/lib/libbpfjit/t_bpfjit.c
4863
ATF_TP_ADD_TC(tp, libbpfjit_jmp_modulo_x);
tests/lib/libbpfjit/t_bpfjit.c
4864
ATF_TP_ADD_TC(tp, libbpfjit_ld_abs);
tests/lib/libbpfjit/t_bpfjit.c
4865
ATF_TP_ADD_TC(tp, libbpfjit_ld_abs_k_overflow);
tests/lib/libbpfjit/t_bpfjit.c
4866
ATF_TP_ADD_TC(tp, libbpfjit_ld_ind);
tests/lib/libbpfjit/t_bpfjit.c
4867
ATF_TP_ADD_TC(tp, libbpfjit_ld_ind_k_overflow);
tests/lib/libbpfjit/t_bpfjit.c
4868
ATF_TP_ADD_TC(tp, libbpfjit_ld_ind_x_overflow1);
tests/lib/libbpfjit/t_bpfjit.c
4869
ATF_TP_ADD_TC(tp, libbpfjit_ld_ind_x_overflow2);
tests/lib/libbpfjit/t_bpfjit.c
4870
ATF_TP_ADD_TC(tp, libbpfjit_ld_len);
tests/lib/libbpfjit/t_bpfjit.c
4871
ATF_TP_ADD_TC(tp, libbpfjit_ld_imm);
tests/lib/libbpfjit/t_bpfjit.c
4872
ATF_TP_ADD_TC(tp, libbpfjit_ldx_imm1);
tests/lib/libbpfjit/t_bpfjit.c
4873
ATF_TP_ADD_TC(tp, libbpfjit_ldx_imm2);
tests/lib/libbpfjit/t_bpfjit.c
4874
ATF_TP_ADD_TC(tp, libbpfjit_ldx_len1);
tests/lib/libbpfjit/t_bpfjit.c
4875
ATF_TP_ADD_TC(tp, libbpfjit_ldx_len2);
tests/lib/libbpfjit/t_bpfjit.c
4876
ATF_TP_ADD_TC(tp, libbpfjit_ldx_msh);
tests/lib/libbpfjit/t_bpfjit.c
4877
ATF_TP_ADD_TC(tp, libbpfjit_misc_tax);
tests/lib/libbpfjit/t_bpfjit.c
4878
ATF_TP_ADD_TC(tp, libbpfjit_misc_txa);
tests/lib/libbpfjit/t_bpfjit.c
4879
ATF_TP_ADD_TC(tp, libbpfjit_st1);
tests/lib/libbpfjit/t_bpfjit.c
4880
ATF_TP_ADD_TC(tp, libbpfjit_st2);
tests/lib/libbpfjit/t_bpfjit.c
4881
ATF_TP_ADD_TC(tp, libbpfjit_st3);
tests/lib/libbpfjit/t_bpfjit.c
4882
ATF_TP_ADD_TC(tp, libbpfjit_st4);
tests/lib/libbpfjit/t_bpfjit.c
4883
ATF_TP_ADD_TC(tp, libbpfjit_st5);
tests/lib/libbpfjit/t_bpfjit.c
4884
ATF_TP_ADD_TC(tp, libbpfjit_stx1);
tests/lib/libbpfjit/t_bpfjit.c
4885
ATF_TP_ADD_TC(tp, libbpfjit_stx2);
tests/lib/libbpfjit/t_bpfjit.c
4886
ATF_TP_ADD_TC(tp, libbpfjit_stx3);
tests/lib/libbpfjit/t_bpfjit.c
4887
ATF_TP_ADD_TC(tp, libbpfjit_stx4);
tests/lib/libbpfjit/t_bpfjit.c
4888
ATF_TP_ADD_TC(tp, libbpfjit_opt_ld_abs_1);
tests/lib/libbpfjit/t_bpfjit.c
4889
ATF_TP_ADD_TC(tp, libbpfjit_opt_ld_abs_2);
tests/lib/libbpfjit/t_bpfjit.c
4890
ATF_TP_ADD_TC(tp, libbpfjit_opt_ld_abs_3);
tests/lib/libbpfjit/t_bpfjit.c
4891
ATF_TP_ADD_TC(tp, libbpfjit_opt_ld_ind_1);
tests/lib/libbpfjit/t_bpfjit.c
4892
ATF_TP_ADD_TC(tp, libbpfjit_opt_ld_ind_2);
tests/lib/libbpfjit/t_bpfjit.c
4893
ATF_TP_ADD_TC(tp, libbpfjit_opt_ld_ind_3);
tests/lib/libbpfjit/t_bpfjit.c
4894
ATF_TP_ADD_TC(tp, libbpfjit_opt_ld_ind_4);
tests/lib/libbpfjit/t_bpfjit.c
4895
ATF_TP_ADD_TC(tp, libbpfjit_abc_ja);
tests/lib/libbpfjit/t_bpfjit.c
4896
ATF_TP_ADD_TC(tp, libbpfjit_abc_ja_over);
tests/lib/libbpfjit/t_bpfjit.c
4897
ATF_TP_ADD_TC(tp, libbpfjit_abc_ld_chain);
tests/lib/libbpfjit/t_bpfjit.c
4898
ATF_TP_ADD_TC(tp, libbpfjit_examples_1);
tests/lib/libbpfjit/t_bpfjit.c
4899
ATF_TP_ADD_TC(tp, libbpfjit_examples_2);
tests/lib/libbpfjit/t_bpfjit.c
4900
ATF_TP_ADD_TC(tp, libbpfjit_examples_3);
tests/lib/libbpfjit/t_bpfjit.c
4901
ATF_TP_ADD_TC(tp, libbpfjit_cop_no_ctx);
tests/lib/libbpfjit/t_bpfjit.c
4902
ATF_TP_ADD_TC(tp, libbpfjit_copx_no_ctx);
tests/lib/libbpfjit/t_cop.c
631
ATF_TP_ADD_TCS(tp)
tests/lib/libbpfjit/t_cop.c
638
ATF_TP_ADD_TC(tp, libbpfjit_cop_no_ctx);
tests/lib/libbpfjit/t_cop.c
639
ATF_TP_ADD_TC(tp, libbpfjit_cop_ret_A);
tests/lib/libbpfjit/t_cop.c
640
ATF_TP_ADD_TC(tp, libbpfjit_cop_ret_buflen);
tests/lib/libbpfjit/t_cop.c
641
ATF_TP_ADD_TC(tp, libbpfjit_cop_ret_wirelen);
tests/lib/libbpfjit/t_cop.c
642
ATF_TP_ADD_TC(tp, libbpfjit_cop_ret_nfuncs);
tests/lib/libbpfjit/t_cop.c
643
ATF_TP_ADD_TC(tp, libbpfjit_cop_side_effect);
tests/lib/libbpfjit/t_cop.c
644
ATF_TP_ADD_TC(tp, libbpfjit_cop_copx);
tests/lib/libbpfjit/t_cop.c
645
ATF_TP_ADD_TC(tp, libbpfjit_cop_invalid_index);
tests/lib/libbpfjit/t_cop.c
647
ATF_TP_ADD_TC(tp, libbpfjit_copx_no_ctx);
tests/lib/libbpfjit/t_cop.c
648
ATF_TP_ADD_TC(tp, libbpfjit_copx_ret_A);
tests/lib/libbpfjit/t_cop.c
649
ATF_TP_ADD_TC(tp, libbpfjit_copx_ret_buflen);
tests/lib/libbpfjit/t_cop.c
650
ATF_TP_ADD_TC(tp, libbpfjit_copx_ret_wirelen);
tests/lib/libbpfjit/t_cop.c
651
ATF_TP_ADD_TC(tp, libbpfjit_copx_ret_nfuncs);
tests/lib/libbpfjit/t_cop.c
652
ATF_TP_ADD_TC(tp, libbpfjit_copx_side_effect);
tests/lib/libbpfjit/t_cop.c
653
ATF_TP_ADD_TC(tp, libbpfjit_copx_cop);
tests/lib/libbpfjit/t_cop.c
654
ATF_TP_ADD_TC(tp, libbpfjit_copx_invalid_index);
tests/lib/libbpfjit/t_extmem.c
464
ATF_TP_ADD_TCS(tp)
tests/lib/libbpfjit/t_extmem.c
471
ATF_TP_ADD_TC(tp, libbpfjit_extmem_load_default);
tests/lib/libbpfjit/t_extmem.c
472
ATF_TP_ADD_TC(tp, libbpfjit_extmem_load_preinited);
tests/lib/libbpfjit/t_extmem.c
473
ATF_TP_ADD_TC(tp, libbpfjit_extmem_invalid_load);
tests/lib/libbpfjit/t_extmem.c
474
ATF_TP_ADD_TC(tp, libbpfjit_extmem_store);
tests/lib/libbpfjit/t_extmem.c
475
ATF_TP_ADD_TC(tp, libbpfjit_extmem_side_effect);
tests/lib/libbpfjit/t_extmem.c
476
ATF_TP_ADD_TC(tp, libbpfjit_extmem_invalid_store);
tests/lib/libbpfjit/t_extmem.c
477
ATF_TP_ADD_TC(tp, libbpfjit_cop_ret_mem);
tests/lib/libbpfjit/t_extmem.c
478
ATF_TP_ADD_TC(tp, libbpfjit_cop_ret_preinited_mem);
tests/lib/libbpfjit/t_extmem.c
479
ATF_TP_ADD_TC(tp, libbpfjit_copx_ret_mem);
tests/lib/libbpfjit/t_extmem.c
480
ATF_TP_ADD_TC(tp, libbpfjit_copx_ret_preinited_mem);
tests/lib/libc/atomic/t___sync_add.c
111
ATF_TP_ADD_TCS(tp)
tests/lib/libc/atomic/t___sync_add.c
113
ATF_TP_ADD_TC(tp, __sync_fetch_and_add_1);
tests/lib/libc/atomic/t___sync_add.c
114
ATF_TP_ADD_TC(tp, __sync_fetch_and_add_2);
tests/lib/libc/atomic/t___sync_add.c
115
ATF_TP_ADD_TC(tp, __sync_fetch_and_add_4);
tests/lib/libc/atomic/t___sync_add.c
117
ATF_TP_ADD_TC(tp, __sync_fetch_and_add_8);
tests/lib/libc/atomic/t___sync_add.c
120
ATF_TP_ADD_TC(tp, __sync_add_and_fetch_1);
tests/lib/libc/atomic/t___sync_add.c
121
ATF_TP_ADD_TC(tp, __sync_add_and_fetch_2);
tests/lib/libc/atomic/t___sync_add.c
122
ATF_TP_ADD_TC(tp, __sync_add_and_fetch_4);
tests/lib/libc/atomic/t___sync_add.c
124
ATF_TP_ADD_TC(tp, __sync_add_and_fetch_8);
tests/lib/libc/atomic/t___sync_and.c
111
ATF_TP_ADD_TCS(tp)
tests/lib/libc/atomic/t___sync_and.c
113
ATF_TP_ADD_TC(tp, __sync_fetch_and_and_1);
tests/lib/libc/atomic/t___sync_and.c
114
ATF_TP_ADD_TC(tp, __sync_fetch_and_and_2);
tests/lib/libc/atomic/t___sync_and.c
115
ATF_TP_ADD_TC(tp, __sync_fetch_and_and_4);
tests/lib/libc/atomic/t___sync_and.c
117
ATF_TP_ADD_TC(tp, __sync_fetch_and_and_8);
tests/lib/libc/atomic/t___sync_and.c
120
ATF_TP_ADD_TC(tp, __sync_and_and_fetch_1);
tests/lib/libc/atomic/t___sync_and.c
121
ATF_TP_ADD_TC(tp, __sync_and_and_fetch_2);
tests/lib/libc/atomic/t___sync_and.c
122
ATF_TP_ADD_TC(tp, __sync_and_and_fetch_4);
tests/lib/libc/atomic/t___sync_and.c
124
ATF_TP_ADD_TC(tp, __sync_and_and_fetch_8);
tests/lib/libc/atomic/t___sync_compare_and_swap.c
247
ATF_TP_ADD_TCS(tp)
tests/lib/libc/atomic/t___sync_compare_and_swap.c
249
ATF_TP_ADD_TC(tp, __sync_bool_compare_and_swap_1);
tests/lib/libc/atomic/t___sync_compare_and_swap.c
250
ATF_TP_ADD_TC(tp, __sync_bool_compare_and_swap_2);
tests/lib/libc/atomic/t___sync_compare_and_swap.c
251
ATF_TP_ADD_TC(tp, __sync_bool_compare_and_swap_4);
tests/lib/libc/atomic/t___sync_compare_and_swap.c
253
ATF_TP_ADD_TC(tp, __sync_bool_compare_and_swap_8);
tests/lib/libc/atomic/t___sync_compare_and_swap.c
256
ATF_TP_ADD_TC(tp, __sync_bool_compare_and_swap_1_subword);
tests/lib/libc/atomic/t___sync_compare_and_swap.c
257
ATF_TP_ADD_TC(tp, __sync_bool_compare_and_swap_2_subword);
tests/lib/libc/atomic/t___sync_compare_and_swap.c
258
ATF_TP_ADD_TC(tp, __sync_bool_compare_and_swap_4_subword);
tests/lib/libc/atomic/t___sync_compare_and_swap.c
260
ATF_TP_ADD_TC(tp, __sync_val_compare_and_swap_1);
tests/lib/libc/atomic/t___sync_compare_and_swap.c
261
ATF_TP_ADD_TC(tp, __sync_val_compare_and_swap_2);
tests/lib/libc/atomic/t___sync_compare_and_swap.c
262
ATF_TP_ADD_TC(tp, __sync_val_compare_and_swap_4);
tests/lib/libc/atomic/t___sync_compare_and_swap.c
264
ATF_TP_ADD_TC(tp, __sync_val_compare_and_swap_8);
tests/lib/libc/atomic/t___sync_compare_and_swap.c
267
ATF_TP_ADD_TC(tp, __sync_val_compare_and_swap_1_subword);
tests/lib/libc/atomic/t___sync_compare_and_swap.c
268
ATF_TP_ADD_TC(tp, __sync_val_compare_and_swap_2_subword);
tests/lib/libc/atomic/t___sync_compare_and_swap.c
269
ATF_TP_ADD_TC(tp, __sync_val_compare_and_swap_4_subword);
tests/lib/libc/atomic/t___sync_lock.c
170
ATF_TP_ADD_TCS(tp)
tests/lib/libc/atomic/t___sync_lock.c
172
ATF_TP_ADD_TC(tp, __sync_lock_test_and_set_1);
tests/lib/libc/atomic/t___sync_lock.c
173
ATF_TP_ADD_TC(tp, __sync_lock_test_and_set_2);
tests/lib/libc/atomic/t___sync_lock.c
174
ATF_TP_ADD_TC(tp, __sync_lock_test_and_set_4);
tests/lib/libc/atomic/t___sync_lock.c
176
ATF_TP_ADD_TC(tp, __sync_lock_test_and_set_8);
tests/lib/libc/atomic/t___sync_lock.c
179
ATF_TP_ADD_TC(tp, __sync_lock_release_1);
tests/lib/libc/atomic/t___sync_lock.c
180
ATF_TP_ADD_TC(tp, __sync_lock_release_2);
tests/lib/libc/atomic/t___sync_lock.c
181
ATF_TP_ADD_TC(tp, __sync_lock_release_4);
tests/lib/libc/atomic/t___sync_lock.c
183
ATF_TP_ADD_TC(tp, __sync_lock_release_8);
tests/lib/libc/atomic/t___sync_lock.c
186
ATF_TP_ADD_TC(tp, __sync_synchronize);
tests/lib/libc/atomic/t___sync_nand.c
111
ATF_TP_ADD_TCS(tp)
tests/lib/libc/atomic/t___sync_nand.c
113
ATF_TP_ADD_TC(tp, __sync_fetch_and_nand_1);
tests/lib/libc/atomic/t___sync_nand.c
114
ATF_TP_ADD_TC(tp, __sync_fetch_and_nand_2);
tests/lib/libc/atomic/t___sync_nand.c
115
ATF_TP_ADD_TC(tp, __sync_fetch_and_nand_4);
tests/lib/libc/atomic/t___sync_nand.c
117
ATF_TP_ADD_TC(tp, __sync_fetch_and_nand_8);
tests/lib/libc/atomic/t___sync_nand.c
120
ATF_TP_ADD_TC(tp, __sync_nand_and_fetch_1);
tests/lib/libc/atomic/t___sync_nand.c
121
ATF_TP_ADD_TC(tp, __sync_nand_and_fetch_2);
tests/lib/libc/atomic/t___sync_nand.c
122
ATF_TP_ADD_TC(tp, __sync_nand_and_fetch_4);
tests/lib/libc/atomic/t___sync_nand.c
124
ATF_TP_ADD_TC(tp, __sync_nand_and_fetch_8);
tests/lib/libc/atomic/t___sync_or.c
111
ATF_TP_ADD_TCS(tp)
tests/lib/libc/atomic/t___sync_or.c
113
ATF_TP_ADD_TC(tp, __sync_fetch_and_or_1);
tests/lib/libc/atomic/t___sync_or.c
114
ATF_TP_ADD_TC(tp, __sync_fetch_and_or_2);
tests/lib/libc/atomic/t___sync_or.c
115
ATF_TP_ADD_TC(tp, __sync_fetch_and_or_4);
tests/lib/libc/atomic/t___sync_or.c
117
ATF_TP_ADD_TC(tp, __sync_fetch_and_or_8);
tests/lib/libc/atomic/t___sync_or.c
120
ATF_TP_ADD_TC(tp, __sync_or_and_fetch_1);
tests/lib/libc/atomic/t___sync_or.c
121
ATF_TP_ADD_TC(tp, __sync_or_and_fetch_2);
tests/lib/libc/atomic/t___sync_or.c
122
ATF_TP_ADD_TC(tp, __sync_or_and_fetch_4);
tests/lib/libc/atomic/t___sync_or.c
124
ATF_TP_ADD_TC(tp, __sync_or_and_fetch_8);
tests/lib/libc/atomic/t___sync_sub.c
111
ATF_TP_ADD_TCS(tp)
tests/lib/libc/atomic/t___sync_sub.c
113
ATF_TP_ADD_TC(tp, __sync_fetch_and_sub_1);
tests/lib/libc/atomic/t___sync_sub.c
114
ATF_TP_ADD_TC(tp, __sync_fetch_and_sub_2);
tests/lib/libc/atomic/t___sync_sub.c
115
ATF_TP_ADD_TC(tp, __sync_fetch_and_sub_4);
tests/lib/libc/atomic/t___sync_sub.c
117
ATF_TP_ADD_TC(tp, __sync_fetch_and_sub_8);
tests/lib/libc/atomic/t___sync_sub.c
120
ATF_TP_ADD_TC(tp, __sync_sub_and_fetch_1);
tests/lib/libc/atomic/t___sync_sub.c
121
ATF_TP_ADD_TC(tp, __sync_sub_and_fetch_2);
tests/lib/libc/atomic/t___sync_sub.c
122
ATF_TP_ADD_TC(tp, __sync_sub_and_fetch_4);
tests/lib/libc/atomic/t___sync_sub.c
124
ATF_TP_ADD_TC(tp, __sync_sub_and_fetch_8);
tests/lib/libc/atomic/t___sync_xor.c
111
ATF_TP_ADD_TCS(tp)
tests/lib/libc/atomic/t___sync_xor.c
113
ATF_TP_ADD_TC(tp, __sync_fetch_and_xor_1);
tests/lib/libc/atomic/t___sync_xor.c
114
ATF_TP_ADD_TC(tp, __sync_fetch_and_xor_2);
tests/lib/libc/atomic/t___sync_xor.c
115
ATF_TP_ADD_TC(tp, __sync_fetch_and_xor_4);
tests/lib/libc/atomic/t___sync_xor.c
117
ATF_TP_ADD_TC(tp, __sync_fetch_and_xor_8);
tests/lib/libc/atomic/t___sync_xor.c
120
ATF_TP_ADD_TC(tp, __sync_xor_and_fetch_1);
tests/lib/libc/atomic/t___sync_xor.c
121
ATF_TP_ADD_TC(tp, __sync_xor_and_fetch_2);
tests/lib/libc/atomic/t___sync_xor.c
122
ATF_TP_ADD_TC(tp, __sync_xor_and_fetch_4);
tests/lib/libc/atomic/t___sync_xor.c
124
ATF_TP_ADD_TC(tp, __sync_xor_and_fetch_8);
tests/lib/libc/atomic/t_atomic_add.c
106
ATF_TP_ADD_TCS(tp)
tests/lib/libc/atomic/t_atomic_add.c
108
ATF_TP_ADD_TC(tp, atomic_add_32);
tests/lib/libc/atomic/t_atomic_add.c
109
ATF_TP_ADD_TC(tp, atomic_add_int);
tests/lib/libc/atomic/t_atomic_add.c
110
ATF_TP_ADD_TC(tp, atomic_add_long);
tests/lib/libc/atomic/t_atomic_add.c
111
ATF_TP_ADD_TC(tp, atomic_add_ptr);
tests/lib/libc/atomic/t_atomic_add.c
113
ATF_TP_ADD_TC(tp, atomic_add_64);
tests/lib/libc/atomic/t_atomic_add.c
116
ATF_TP_ADD_TC(tp, atomic_add_32_nv);
tests/lib/libc/atomic/t_atomic_add.c
117
ATF_TP_ADD_TC(tp, atomic_add_int_nv);
tests/lib/libc/atomic/t_atomic_add.c
118
ATF_TP_ADD_TC(tp, atomic_add_long_nv);
tests/lib/libc/atomic/t_atomic_add.c
119
ATF_TP_ADD_TC(tp, atomic_add_ptr_nv);
tests/lib/libc/atomic/t_atomic_add.c
121
ATF_TP_ADD_TC(tp, atomic_add_64_nv);
tests/lib/libc/atomic/t_atomic_and.c
104
ATF_TP_ADD_TCS(tp)
tests/lib/libc/atomic/t_atomic_and.c
106
ATF_TP_ADD_TC(tp, atomic_and_32);
tests/lib/libc/atomic/t_atomic_and.c
107
ATF_TP_ADD_TC(tp, atomic_and_uint);
tests/lib/libc/atomic/t_atomic_and.c
108
ATF_TP_ADD_TC(tp, atomic_and_ulong);
tests/lib/libc/atomic/t_atomic_and.c
110
ATF_TP_ADD_TC(tp, atomic_and_64);
tests/lib/libc/atomic/t_atomic_and.c
113
ATF_TP_ADD_TC(tp, atomic_and_32_nv);
tests/lib/libc/atomic/t_atomic_and.c
114
ATF_TP_ADD_TC(tp, atomic_and_uint_nv);
tests/lib/libc/atomic/t_atomic_and.c
115
ATF_TP_ADD_TC(tp, atomic_and_ulong_nv);
tests/lib/libc/atomic/t_atomic_and.c
117
ATF_TP_ADD_TC(tp, atomic_and_64_nv);
tests/lib/libc/atomic/t_atomic_cas.c
101
ATF_TP_ADD_TC(tp, atomic_cas_32);
tests/lib/libc/atomic/t_atomic_cas.c
102
ATF_TP_ADD_TC(tp, atomic_cas_uint);
tests/lib/libc/atomic/t_atomic_cas.c
103
ATF_TP_ADD_TC(tp, atomic_cas_ulong);
tests/lib/libc/atomic/t_atomic_cas.c
104
ATF_TP_ADD_TC(tp, atomic_cas_ptr);
tests/lib/libc/atomic/t_atomic_cas.c
106
ATF_TP_ADD_TC(tp, atomic_cas_64);
tests/lib/libc/atomic/t_atomic_cas.c
109
ATF_TP_ADD_TC(tp, atomic_cas_32_ni);
tests/lib/libc/atomic/t_atomic_cas.c
110
ATF_TP_ADD_TC(tp, atomic_cas_uint_ni);
tests/lib/libc/atomic/t_atomic_cas.c
111
ATF_TP_ADD_TC(tp, atomic_cas_ulong_ni);
tests/lib/libc/atomic/t_atomic_cas.c
112
ATF_TP_ADD_TC(tp, atomic_cas_ptr_ni);
tests/lib/libc/atomic/t_atomic_cas.c
114
ATF_TP_ADD_TC(tp, atomic_cas_64_ni);
tests/lib/libc/atomic/t_atomic_cas.c
99
ATF_TP_ADD_TCS(tp)
tests/lib/libc/atomic/t_atomic_dec.c
101
ATF_TP_ADD_TCS(tp)
tests/lib/libc/atomic/t_atomic_dec.c
103
ATF_TP_ADD_TC(tp, atomic_dec_32);
tests/lib/libc/atomic/t_atomic_dec.c
104
ATF_TP_ADD_TC(tp, atomic_dec_uint);
tests/lib/libc/atomic/t_atomic_dec.c
105
ATF_TP_ADD_TC(tp, atomic_dec_ulong);
tests/lib/libc/atomic/t_atomic_dec.c
106
ATF_TP_ADD_TC(tp, atomic_dec_ptr);
tests/lib/libc/atomic/t_atomic_dec.c
108
ATF_TP_ADD_TC(tp, atomic_dec_64);
tests/lib/libc/atomic/t_atomic_dec.c
111
ATF_TP_ADD_TC(tp, atomic_dec_32_nv);
tests/lib/libc/atomic/t_atomic_dec.c
112
ATF_TP_ADD_TC(tp, atomic_dec_uint_nv);
tests/lib/libc/atomic/t_atomic_dec.c
113
ATF_TP_ADD_TC(tp, atomic_dec_ulong_nv);
tests/lib/libc/atomic/t_atomic_dec.c
114
ATF_TP_ADD_TC(tp, atomic_dec_ptr_nv);
tests/lib/libc/atomic/t_atomic_dec.c
116
ATF_TP_ADD_TC(tp, atomic_dec_64_nv);
tests/lib/libc/atomic/t_atomic_inc.c
101
ATF_TP_ADD_TCS(tp)
tests/lib/libc/atomic/t_atomic_inc.c
103
ATF_TP_ADD_TC(tp, atomic_inc_32);
tests/lib/libc/atomic/t_atomic_inc.c
104
ATF_TP_ADD_TC(tp, atomic_inc_uint);
tests/lib/libc/atomic/t_atomic_inc.c
105
ATF_TP_ADD_TC(tp, atomic_inc_ulong);
tests/lib/libc/atomic/t_atomic_inc.c
106
ATF_TP_ADD_TC(tp, atomic_inc_ptr);
tests/lib/libc/atomic/t_atomic_inc.c
108
ATF_TP_ADD_TC(tp, atomic_inc_64);
tests/lib/libc/atomic/t_atomic_inc.c
111
ATF_TP_ADD_TC(tp, atomic_inc_32_nv);
tests/lib/libc/atomic/t_atomic_inc.c
112
ATF_TP_ADD_TC(tp, atomic_inc_uint_nv);
tests/lib/libc/atomic/t_atomic_inc.c
113
ATF_TP_ADD_TC(tp, atomic_inc_ulong_nv);
tests/lib/libc/atomic/t_atomic_inc.c
114
ATF_TP_ADD_TC(tp, atomic_inc_ptr_nv);
tests/lib/libc/atomic/t_atomic_inc.c
116
ATF_TP_ADD_TC(tp, atomic_inc_64_nv);
tests/lib/libc/atomic/t_atomic_or.c
104
ATF_TP_ADD_TCS(tp)
tests/lib/libc/atomic/t_atomic_or.c
106
ATF_TP_ADD_TC(tp, atomic_or_32);
tests/lib/libc/atomic/t_atomic_or.c
107
ATF_TP_ADD_TC(tp, atomic_or_uint);
tests/lib/libc/atomic/t_atomic_or.c
108
ATF_TP_ADD_TC(tp, atomic_or_ulong);
tests/lib/libc/atomic/t_atomic_or.c
110
ATF_TP_ADD_TC(tp, atomic_or_64);
tests/lib/libc/atomic/t_atomic_or.c
113
ATF_TP_ADD_TC(tp, atomic_or_32_nv);
tests/lib/libc/atomic/t_atomic_or.c
114
ATF_TP_ADD_TC(tp, atomic_or_uint_nv);
tests/lib/libc/atomic/t_atomic_or.c
115
ATF_TP_ADD_TC(tp, atomic_or_ulong_nv);
tests/lib/libc/atomic/t_atomic_or.c
117
ATF_TP_ADD_TC(tp, atomic_or_64_nv);
tests/lib/libc/atomic/t_atomic_swap.c
77
ATF_TP_ADD_TCS(tp)
tests/lib/libc/atomic/t_atomic_swap.c
79
ATF_TP_ADD_TC(tp, atomic_swap_32);
tests/lib/libc/atomic/t_atomic_swap.c
80
ATF_TP_ADD_TC(tp, atomic_swap_uint);
tests/lib/libc/atomic/t_atomic_swap.c
81
ATF_TP_ADD_TC(tp, atomic_swap_ulong);
tests/lib/libc/atomic/t_atomic_swap.c
82
ATF_TP_ADD_TC(tp, atomic_swap_ptr);
tests/lib/libc/atomic/t_atomic_swap.c
84
ATF_TP_ADD_TC(tp, atomic_swap_64);
tests/lib/libc/c063/t_faccessat.c
236
ATF_TP_ADD_TCS(tp)
tests/lib/libc/c063/t_faccessat.c
239
ATF_TP_ADD_TC(tp, faccessat_fd);
tests/lib/libc/c063/t_faccessat.c
240
ATF_TP_ADD_TC(tp, faccessat_fdcwd);
tests/lib/libc/c063/t_faccessat.c
241
ATF_TP_ADD_TC(tp, faccessat_fdcwderr);
tests/lib/libc/c063/t_faccessat.c
242
ATF_TP_ADD_TC(tp, faccessat_fderr1);
tests/lib/libc/c063/t_faccessat.c
243
ATF_TP_ADD_TC(tp, faccessat_fderr2);
tests/lib/libc/c063/t_faccessat.c
244
ATF_TP_ADD_TC(tp, faccessat_fderr3);
tests/lib/libc/c063/t_faccessat.c
245
ATF_TP_ADD_TC(tp, faccessat_fdlink);
tests/lib/libc/c063/t_faccessat.c
246
ATF_TP_ADD_TC(tp, faccessat_abs);
tests/lib/libc/c063/t_faccessat.c
247
ATF_TP_ADD_TC(tp, faccessat_abs_fddir);
tests/lib/libc/c063/t_faccessat.c
248
ATF_TP_ADD_TC(tp, faccessat_abs_fdcwd);
tests/lib/libc/c063/t_fchmodat.c
191
ATF_TP_ADD_TCS(tp)
tests/lib/libc/c063/t_fchmodat.c
194
ATF_TP_ADD_TC(tp, fchmodat_fd);
tests/lib/libc/c063/t_fchmodat.c
195
ATF_TP_ADD_TC(tp, fchmodat_fdcwd);
tests/lib/libc/c063/t_fchmodat.c
196
ATF_TP_ADD_TC(tp, fchmodat_fdcwderr);
tests/lib/libc/c063/t_fchmodat.c
197
ATF_TP_ADD_TC(tp, fchmodat_fderr1);
tests/lib/libc/c063/t_fchmodat.c
198
ATF_TP_ADD_TC(tp, fchmodat_fderr2);
tests/lib/libc/c063/t_fchmodat.c
199
ATF_TP_ADD_TC(tp, fchmodat_fderr3);
tests/lib/libc/c063/t_fchmodat.c
200
ATF_TP_ADD_TC(tp, fchmodat_fdlink);
tests/lib/libc/c063/t_fchownat.c
236
ATF_TP_ADD_TCS(tp)
tests/lib/libc/c063/t_fchownat.c
239
ATF_TP_ADD_TC(tp, fchownat_fd);
tests/lib/libc/c063/t_fchownat.c
240
ATF_TP_ADD_TC(tp, fchownat_fdcwd);
tests/lib/libc/c063/t_fchownat.c
241
ATF_TP_ADD_TC(tp, fchownat_fdcwderr);
tests/lib/libc/c063/t_fchownat.c
242
ATF_TP_ADD_TC(tp, fchownat_fderr1);
tests/lib/libc/c063/t_fchownat.c
243
ATF_TP_ADD_TC(tp, fchownat_fderr2);
tests/lib/libc/c063/t_fchownat.c
244
ATF_TP_ADD_TC(tp, fchownat_fderr3);
tests/lib/libc/c063/t_fchownat.c
245
ATF_TP_ADD_TC(tp, fchownat_fdlink);
tests/lib/libc/c063/t_fexecve.c
89
ATF_TP_ADD_TCS(tp)
tests/lib/libc/c063/t_fexecve.c
92
ATF_TP_ADD_TC(tp, fexecve);
tests/lib/libc/c063/t_fstatat.c
185
ATF_TP_ADD_TCS(tp)
tests/lib/libc/c063/t_fstatat.c
188
ATF_TP_ADD_TC(tp, fstatat_fd);
tests/lib/libc/c063/t_fstatat.c
189
ATF_TP_ADD_TC(tp, fstatat_fdcwd);
tests/lib/libc/c063/t_fstatat.c
190
ATF_TP_ADD_TC(tp, fstatat_fdcwderr);
tests/lib/libc/c063/t_fstatat.c
191
ATF_TP_ADD_TC(tp, fstatat_fderr1);
tests/lib/libc/c063/t_fstatat.c
192
ATF_TP_ADD_TC(tp, fstatat_fderr2);
tests/lib/libc/c063/t_fstatat.c
193
ATF_TP_ADD_TC(tp, fstatat_fderr3);
tests/lib/libc/c063/t_fstatat.c
194
ATF_TP_ADD_TC(tp, fstatat_fdlink);
tests/lib/libc/c063/t_linkat.c
206
ATF_TP_ADD_TCS(tp)
tests/lib/libc/c063/t_linkat.c
209
ATF_TP_ADD_TC(tp, linkat_fd);
tests/lib/libc/c063/t_linkat.c
210
ATF_TP_ADD_TC(tp, linkat_fdcwd);
tests/lib/libc/c063/t_linkat.c
211
ATF_TP_ADD_TC(tp, linkat_fdcwderr);
tests/lib/libc/c063/t_linkat.c
212
ATF_TP_ADD_TC(tp, linkat_fderr);
tests/lib/libc/c063/t_linkat.c
213
ATF_TP_ADD_TC(tp, linkat_fdlink1);
tests/lib/libc/c063/t_linkat.c
214
ATF_TP_ADD_TC(tp, linkat_fdlink2);
tests/lib/libc/c063/t_mkdirat.c
111
ATF_TP_ADD_TCS(tp)
tests/lib/libc/c063/t_mkdirat.c
114
ATF_TP_ADD_TC(tp, mkdirat_fd);
tests/lib/libc/c063/t_mkdirat.c
115
ATF_TP_ADD_TC(tp, mkdirat_fdcwd);
tests/lib/libc/c063/t_mkdirat.c
116
ATF_TP_ADD_TC(tp, mkdirat_fdcwderr);
tests/lib/libc/c063/t_mkdirat.c
117
ATF_TP_ADD_TC(tp, mkdirat_fderr);
tests/lib/libc/c063/t_mkfifoat.c
137
ATF_TP_ADD_TCS(tp)
tests/lib/libc/c063/t_mkfifoat.c
140
ATF_TP_ADD_TC(tp, mkfifoat_fd);
tests/lib/libc/c063/t_mkfifoat.c
141
ATF_TP_ADD_TC(tp, mkfifoat_fdcwd);
tests/lib/libc/c063/t_mkfifoat.c
142
ATF_TP_ADD_TC(tp, mkfifoat_fdcwderr);
tests/lib/libc/c063/t_mkfifoat.c
143
ATF_TP_ADD_TC(tp, mkfifoat_fderr);
tests/lib/libc/c063/t_mkfifoat.c
144
ATF_TP_ADD_TC(tp, mknodat_s_ififo);
tests/lib/libc/c063/t_mknodat.c
142
ATF_TP_ADD_TCS(tp)
tests/lib/libc/c063/t_mknodat.c
145
ATF_TP_ADD_TC(tp, mknodat_fd);
tests/lib/libc/c063/t_mknodat.c
146
ATF_TP_ADD_TC(tp, mknodat_fdcwd);
tests/lib/libc/c063/t_mknodat.c
147
ATF_TP_ADD_TC(tp, mknodat_fdcwderr);
tests/lib/libc/c063/t_mknodat.c
148
ATF_TP_ADD_TC(tp, mknodat_fderr);
tests/lib/libc/c063/t_o_search.c
344
ATF_TP_ADD_TCS(tp)
tests/lib/libc/c063/t_o_search.c
347
ATF_TP_ADD_TC(tp, o_search_perm1);
tests/lib/libc/c063/t_o_search.c
349
ATF_TP_ADD_TC(tp, o_search_root_flag1);
tests/lib/libc/c063/t_o_search.c
350
ATF_TP_ADD_TC(tp, o_search_unpriv_flag1);
tests/lib/libc/c063/t_o_search.c
352
ATF_TP_ADD_TC(tp, o_search_perm2);
tests/lib/libc/c063/t_o_search.c
354
ATF_TP_ADD_TC(tp, o_search_root_flag2);
tests/lib/libc/c063/t_o_search.c
355
ATF_TP_ADD_TC(tp, o_search_unpriv_flag2);
tests/lib/libc/c063/t_o_search.c
357
ATF_TP_ADD_TC(tp, o_search_notdir);
tests/lib/libc/c063/t_o_search.c
359
ATF_TP_ADD_TC(tp, o_search_nord);
tests/lib/libc/c063/t_o_search.c
360
ATF_TP_ADD_TC(tp, o_search_getdents);
tests/lib/libc/c063/t_o_search.c
361
ATF_TP_ADD_TC(tp, o_search_revokex);
tests/lib/libc/c063/t_openat.c
155
ATF_TP_ADD_TCS(tp)
tests/lib/libc/c063/t_openat.c
158
ATF_TP_ADD_TC(tp, openat_fd);
tests/lib/libc/c063/t_openat.c
159
ATF_TP_ADD_TC(tp, openat_fdcwd);
tests/lib/libc/c063/t_openat.c
160
ATF_TP_ADD_TC(tp, openat_fdcwderr);
tests/lib/libc/c063/t_openat.c
161
ATF_TP_ADD_TC(tp, openat_fderr1);
tests/lib/libc/c063/t_openat.c
162
ATF_TP_ADD_TC(tp, openat_fderr2);
tests/lib/libc/c063/t_openat.c
163
ATF_TP_ADD_TC(tp, openat_fderr3);
tests/lib/libc/c063/t_readlinkat.c
148
ATF_TP_ADD_TCS(tp)
tests/lib/libc/c063/t_readlinkat.c
151
ATF_TP_ADD_TC(tp, readlinkat_fd);
tests/lib/libc/c063/t_readlinkat.c
152
ATF_TP_ADD_TC(tp, readlinkat_fdcwd);
tests/lib/libc/c063/t_readlinkat.c
153
ATF_TP_ADD_TC(tp, readlinkat_fdcwderr);
tests/lib/libc/c063/t_readlinkat.c
154
ATF_TP_ADD_TC(tp, readlinkat_fderr1);
tests/lib/libc/c063/t_readlinkat.c
155
ATF_TP_ADD_TC(tp, readlinkat_fderr2);
tests/lib/libc/c063/t_renameat.c
143
ATF_TP_ADD_TCS(tp)
tests/lib/libc/c063/t_renameat.c
146
ATF_TP_ADD_TC(tp, renameat_fd);
tests/lib/libc/c063/t_renameat.c
147
ATF_TP_ADD_TC(tp, renameat_fdcwd);
tests/lib/libc/c063/t_renameat.c
148
ATF_TP_ADD_TC(tp, renameat_fdcwderr);
tests/lib/libc/c063/t_renameat.c
149
ATF_TP_ADD_TC(tp, renameat_fderr);
tests/lib/libc/c063/t_symlinkat.c
141
ATF_TP_ADD_TCS(tp)
tests/lib/libc/c063/t_symlinkat.c
144
ATF_TP_ADD_TC(tp, symlinkat_fd);
tests/lib/libc/c063/t_symlinkat.c
145
ATF_TP_ADD_TC(tp, symlinkat_fdcwd);
tests/lib/libc/c063/t_symlinkat.c
146
ATF_TP_ADD_TC(tp, symlinkat_fdcwderr);
tests/lib/libc/c063/t_symlinkat.c
147
ATF_TP_ADD_TC(tp, symlinkat_fderr);
tests/lib/libc/c063/t_unlinkat.c
165
ATF_TP_ADD_TCS(tp)
tests/lib/libc/c063/t_unlinkat.c
168
ATF_TP_ADD_TC(tp, unlinkat_fd);
tests/lib/libc/c063/t_unlinkat.c
169
ATF_TP_ADD_TC(tp, unlinkat_fdcwd);
tests/lib/libc/c063/t_unlinkat.c
170
ATF_TP_ADD_TC(tp, unlinkat_fdcwderr);
tests/lib/libc/c063/t_unlinkat.c
171
ATF_TP_ADD_TC(tp, unlinkat_fderr1);
tests/lib/libc/c063/t_unlinkat.c
172
ATF_TP_ADD_TC(tp, unlinkat_fderr2);
tests/lib/libc/c063/t_unlinkat.c
173
ATF_TP_ADD_TC(tp, unlinkat_fderr3);
tests/lib/libc/c063/t_unlinkat.c
174
ATF_TP_ADD_TC(tp, unlinkat_dir);
tests/lib/libc/c063/t_utimensat.c
226
ATF_TP_ADD_TCS(tp)
tests/lib/libc/c063/t_utimensat.c
229
ATF_TP_ADD_TC(tp, utimensat_fd);
tests/lib/libc/c063/t_utimensat.c
230
ATF_TP_ADD_TC(tp, utimensat_fdcwd);
tests/lib/libc/c063/t_utimensat.c
231
ATF_TP_ADD_TC(tp, utimensat_fdcwderr);
tests/lib/libc/c063/t_utimensat.c
232
ATF_TP_ADD_TC(tp, utimensat_fderr1);
tests/lib/libc/c063/t_utimensat.c
233
ATF_TP_ADD_TC(tp, utimensat_fderr2);
tests/lib/libc/c063/t_utimensat.c
234
ATF_TP_ADD_TC(tp, utimensat_fderr3);
tests/lib/libc/c063/t_utimensat.c
235
ATF_TP_ADD_TC(tp, utimensat_fdlink);
tests/lib/libc/db/t_db_hash_seq.c
335
ATF_TP_ADD_TCS(tp)
tests/lib/libc/db/t_db_hash_seq.c
337
ATF_TP_ADD_TC(tp, test_hash_del_none);
tests/lib/libc/db/t_db_hash_seq.c
338
ATF_TP_ADD_TC(tp, test_hash_del_all);
tests/lib/libc/db/t_db_hash_seq.c
339
ATF_TP_ADD_TC(tp, test_hash_del_alt);
tests/lib/libc/db/t_db_hash_seq.c
340
ATF_TP_ADD_TC(tp, test_hash_del_every_7);
tests/lib/libc/gen/execve/t_execve.c
105
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/execve/t_execve.c
108
ATF_TP_ADD_TC(tp, t_execve_null);
tests/lib/libc/gen/execve/t_execve.c
109
ATF_TP_ADD_TC(tp, t_execve_sig);
tests/lib/libc/gen/posix_spawn/t_fileactions.c
443
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/posix_spawn/t_fileactions.c
446
ATF_TP_ADD_TC(tp, t_spawn_fileactions);
tests/lib/libc/gen/posix_spawn/t_fileactions.c
447
ATF_TP_ADD_TC(tp, t_spawn_open_nonexistent);
tests/lib/libc/gen/posix_spawn/t_fileactions.c
448
ATF_TP_ADD_TC(tp, t_spawn_open_nonexistent_diag);
tests/lib/libc/gen/posix_spawn/t_fileactions.c
449
ATF_TP_ADD_TC(tp, t_spawn_reopen);
tests/lib/libc/gen/posix_spawn/t_fileactions.c
450
ATF_TP_ADD_TC(tp, t_spawn_openmode);
tests/lib/libc/gen/posix_spawn/t_fileactions.c
451
ATF_TP_ADD_TC(tp, t_spawn_empty_fileactions);
tests/lib/libc/gen/posix_spawn/t_fileactions.c
452
ATF_TP_ADD_TC(tp, t_spawn_close_already_closed);
tests/lib/libc/gen/posix_spawn/t_fileactions.c
453
ATF_TP_ADD_TC(tp, t_spawn_close_already_closed_wait);
tests/lib/libc/gen/posix_spawn/t_spawn.c
557
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/posix_spawn/t_spawn.c
559
ATF_TP_ADD_TC(tp, t_spawn_ls);
tests/lib/libc/gen/posix_spawn/t_spawn.c
560
ATF_TP_ADD_TC(tp, t_spawnp_ls);
tests/lib/libc/gen/posix_spawn/t_spawn.c
561
ATF_TP_ADD_TC(tp, t_spawn_zero);
tests/lib/libc/gen/posix_spawn/t_spawn.c
562
ATF_TP_ADD_TC(tp, t_spawn_missing);
tests/lib/libc/gen/posix_spawn/t_spawn.c
563
ATF_TP_ADD_TC(tp, t_spawn_nonexec);
tests/lib/libc/gen/posix_spawn/t_spawn.c
564
ATF_TP_ADD_TC(tp, t_spawn_child);
tests/lib/libc/gen/posix_spawn/t_spawn.c
565
ATF_TP_ADD_TC(tp, t_spawn_chdir_abs);
tests/lib/libc/gen/posix_spawn/t_spawn.c
566
ATF_TP_ADD_TC(tp, t_spawn_chdir_rel);
tests/lib/libc/gen/posix_spawn/t_spawn.c
567
ATF_TP_ADD_TC(tp, t_spawn_chdir_file);
tests/lib/libc/gen/posix_spawn/t_spawn.c
568
ATF_TP_ADD_TC(tp, t_spawn_chdir_invalid);
tests/lib/libc/gen/posix_spawn/t_spawn.c
569
ATF_TP_ADD_TC(tp, t_spawn_chdir_permissions);
tests/lib/libc/gen/posix_spawn/t_spawn.c
570
ATF_TP_ADD_TC(tp, t_spawn_fchdir_abs);
tests/lib/libc/gen/posix_spawn/t_spawn.c
571
ATF_TP_ADD_TC(tp, t_spawn_fchdir_rel);
tests/lib/libc/gen/posix_spawn/t_spawn.c
572
ATF_TP_ADD_TC(tp, t_spawn_fchdir_file);
tests/lib/libc/gen/posix_spawn/t_spawn.c
573
ATF_TP_ADD_TC(tp, t_spawn_fchdir_neg_fd);
tests/lib/libc/gen/posix_spawn/t_spawn.c
574
ATF_TP_ADD_TC(tp, t_spawn_fchdir_closed);
tests/lib/libc/gen/posix_spawn/t_spawn.c
575
ATF_TP_ADD_TC(tp, t_spawn_sig);
tests/lib/libc/gen/posix_spawn/t_spawnattr.c
205
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/posix_spawn/t_spawnattr.c
207
ATF_TP_ADD_TC(tp, t_spawnattr);
tests/lib/libc/gen/posix_spawn/t_spawnattr.c
208
ATF_TP_ADD_TC(tp, t_spawn_resetids);
tests/lib/libc/gen/t_alarm.c
142
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_alarm.c
145
ATF_TP_ADD_TC(tp, alarm_basic);
tests/lib/libc/gen/t_alarm.c
146
ATF_TP_ADD_TC(tp, alarm_fork);
tests/lib/libc/gen/t_alarm.c
147
ATF_TP_ADD_TC(tp, alarm_previous);
tests/lib/libc/gen/t_arc4random.c
656
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_arc4random.c
659
ATF_TP_ADD_TC(tp, addrandom);
tests/lib/libc/gen/t_arc4random.c
660
ATF_TP_ADD_TC(tp, chroot);
tests/lib/libc/gen/t_arc4random.c
661
ATF_TP_ADD_TC(tp, consolidate);
tests/lib/libc/gen/t_arc4random.c
662
ATF_TP_ADD_TC(tp, fdlimit);
tests/lib/libc/gen/t_arc4random.c
663
ATF_TP_ADD_TC(tp, fork);
tests/lib/libc/gen/t_arc4random.c
664
ATF_TP_ADD_TC(tp, global_aslimit);
tests/lib/libc/gen/t_arc4random.c
665
ATF_TP_ADD_TC(tp, global_threadkeylimit);
tests/lib/libc/gen/t_arc4random.c
666
ATF_TP_ADD_TC(tp, local);
tests/lib/libc/gen/t_arc4random.c
667
ATF_TP_ADD_TC(tp, stackfallback);
tests/lib/libc/gen/t_assert.c
141
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_assert.c
144
ATF_TP_ADD_TC(tp, assert_false);
tests/lib/libc/gen/t_assert.c
145
ATF_TP_ADD_TC(tp, assert_true);
tests/lib/libc/gen/t_basedirname.c
194
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_basedirname.c
196
ATF_TP_ADD_TC(tp, basename_posix);
tests/lib/libc/gen/t_basedirname.c
197
ATF_TP_ADD_TC(tp, dirname_posix);
tests/lib/libc/gen/t_closefrom.c
164
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_closefrom.c
167
ATF_TP_ADD_TC(tp, closefrom_basic);
tests/lib/libc/gen/t_closefrom.c
168
ATF_TP_ADD_TC(tp, closefrom_buffer);
tests/lib/libc/gen/t_closefrom.c
169
ATF_TP_ADD_TC(tp, closefrom_err);
tests/lib/libc/gen/t_closefrom.c
170
ATF_TP_ADD_TC(tp, closefrom_one);
tests/lib/libc/gen/t_cpuset.c
106
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_cpuset.c
109
ATF_TP_ADD_TC(tp, cpuset_err);
tests/lib/libc/gen/t_cpuset.c
110
ATF_TP_ADD_TC(tp, cpuset_set);
tests/lib/libc/gen/t_cpuset.c
111
ATF_TP_ADD_TC(tp, cpuset_size);
tests/lib/libc/gen/t_ctype.c
1183
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_ctype.c
1186
ADD_TEST_ABUSE(tp, isalpha);
tests/lib/libc/gen/t_ctype.c
1187
ADD_TEST_ABUSE(tp, isupper);
tests/lib/libc/gen/t_ctype.c
1188
ADD_TEST_ABUSE(tp, islower);
tests/lib/libc/gen/t_ctype.c
1189
ADD_TEST_ABUSE(tp, isdigit);
tests/lib/libc/gen/t_ctype.c
1190
ADD_TEST_ABUSE(tp, isxdigit);
tests/lib/libc/gen/t_ctype.c
1191
ADD_TEST_ABUSE(tp, isalnum);
tests/lib/libc/gen/t_ctype.c
1192
ADD_TEST_ABUSE(tp, isspace);
tests/lib/libc/gen/t_ctype.c
1193
ADD_TEST_ABUSE(tp, ispunct);
tests/lib/libc/gen/t_ctype.c
1194
ADD_TEST_ABUSE(tp, isprint);
tests/lib/libc/gen/t_ctype.c
1195
ADD_TEST_ABUSE(tp, isgraph);
tests/lib/libc/gen/t_ctype.c
1196
ADD_TEST_ABUSE(tp, iscntrl);
tests/lib/libc/gen/t_ctype.c
1197
ADD_TEST_ABUSE(tp, isblank);
tests/lib/libc/gen/t_ctype.c
1198
ADD_TEST_ABUSE(tp, toupper);
tests/lib/libc/gen/t_ctype.c
1199
ADD_TEST_ABUSE(tp, tolower);
tests/lib/libc/gen/t_ctype.c
1201
ADD_TEST_ABUSE_OVERRIDE(tp, isalpha);
tests/lib/libc/gen/t_ctype.c
1202
ADD_TEST_ABUSE_OVERRIDE(tp, isupper);
tests/lib/libc/gen/t_ctype.c
1203
ADD_TEST_ABUSE_OVERRIDE(tp, islower);
tests/lib/libc/gen/t_ctype.c
1204
ADD_TEST_ABUSE_OVERRIDE(tp, isdigit);
tests/lib/libc/gen/t_ctype.c
1205
ADD_TEST_ABUSE_OVERRIDE(tp, isxdigit);
tests/lib/libc/gen/t_ctype.c
1206
ADD_TEST_ABUSE_OVERRIDE(tp, isalnum);
tests/lib/libc/gen/t_ctype.c
1207
ADD_TEST_ABUSE_OVERRIDE(tp, isspace);
tests/lib/libc/gen/t_ctype.c
1208
ADD_TEST_ABUSE_OVERRIDE(tp, ispunct);
tests/lib/libc/gen/t_ctype.c
1209
ADD_TEST_ABUSE_OVERRIDE(tp, isprint);
tests/lib/libc/gen/t_ctype.c
1210
ADD_TEST_ABUSE_OVERRIDE(tp, isgraph);
tests/lib/libc/gen/t_ctype.c
1211
ADD_TEST_ABUSE_OVERRIDE(tp, iscntrl);
tests/lib/libc/gen/t_ctype.c
1212
ADD_TEST_ABUSE_OVERRIDE(tp, isblank);
tests/lib/libc/gen/t_ctype.c
1213
ADD_TEST_ABUSE_OVERRIDE(tp, toupper);
tests/lib/libc/gen/t_ctype.c
1214
ADD_TEST_ABUSE_OVERRIDE(tp, tolower);
tests/lib/libc/gen/t_ctype.c
1216
ADD_TEST_USE(tp, isalpha);
tests/lib/libc/gen/t_ctype.c
1217
ADD_TEST_USE(tp, isupper);
tests/lib/libc/gen/t_ctype.c
1218
ADD_TEST_USE(tp, islower);
tests/lib/libc/gen/t_ctype.c
1219
ADD_TEST_USE(tp, isdigit);
tests/lib/libc/gen/t_ctype.c
1220
ADD_TEST_USE(tp, isxdigit);
tests/lib/libc/gen/t_ctype.c
1221
ADD_TEST_USE(tp, isalnum);
tests/lib/libc/gen/t_ctype.c
1222
ADD_TEST_USE(tp, isspace);
tests/lib/libc/gen/t_ctype.c
1223
ADD_TEST_USE(tp, ispunct);
tests/lib/libc/gen/t_ctype.c
1224
ADD_TEST_USE(tp, isprint);
tests/lib/libc/gen/t_ctype.c
1225
ADD_TEST_USE(tp, isgraph);
tests/lib/libc/gen/t_ctype.c
1226
ADD_TEST_USE(tp, iscntrl);
tests/lib/libc/gen/t_ctype.c
1227
ADD_TEST_USE(tp, isblank);
tests/lib/libc/gen/t_ctype.c
1228
ADD_TEST_USE(tp, toupper);
tests/lib/libc/gen/t_ctype.c
1229
ADD_TEST_USE(tp, tolower);
tests/lib/libc/gen/t_ctype.c
1231
ATF_TP_ADD_TC(tp, eof_confusion_iso8859_1);
tests/lib/libc/gen/t_ctype.c
1232
ATF_TP_ADD_TC(tp, eof_confusion_koi8_u);
tests/lib/libc/gen/t_ctype.c
1233
ATF_TP_ADD_TC(tp, eof_confusion_pt154);
tests/lib/libc/gen/t_dir.c
181
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_dir.c
184
ATF_TP_ADD_TC(tp, seekdir_basic);
tests/lib/libc/gen/t_dir.c
185
ATF_TP_ADD_TC(tp, telldir_leak);
tests/lib/libc/gen/t_floatunditf.c
137
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_floatunditf.c
139
ATF_TP_ADD_TC(tp, floatunditf);
tests/lib/libc/gen/t_fmtcheck.c
115
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_fmtcheck.c
118
ATF_TP_ADD_TC(tp, fmtcheck_basic);
tests/lib/libc/gen/t_fnmatch.c
181
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_fnmatch.c
184
ATF_TP_ADD_TC(tp, fnmatch_backslashes);
tests/lib/libc/gen/t_fnmatch.c
185
ATF_TP_ADD_TC(tp, fnmatch_casefold);
tests/lib/libc/gen/t_fnmatch.c
186
ATF_TP_ADD_TC(tp, fnmatch_leadingdir);
tests/lib/libc/gen/t_fnmatch.c
187
ATF_TP_ADD_TC(tp, fnmatch_noescape);
tests/lib/libc/gen/t_fnmatch.c
188
ATF_TP_ADD_TC(tp, fnmatch_pathname);
tests/lib/libc/gen/t_fnmatch.c
189
ATF_TP_ADD_TC(tp, fnmatch_period);
tests/lib/libc/gen/t_fnmatch.c
190
ATF_TP_ADD_TC(tp, fnmatch_initialbracket);
tests/lib/libc/gen/t_fpclassify.c
1299
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_fpclassify.c
1302
ATF_TP_ADD_TC(tp, fpclassify_float);
tests/lib/libc/gen/t_fpclassify.c
1303
ATF_TP_ADD_TC(tp, fpclassify_double);
tests/lib/libc/gen/t_fpclassify.c
1304
ATF_TP_ADD_TC(tp, fpclassify_long_double);
tests/lib/libc/gen/t_fpsetmask.c
361
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_fpsetmask.c
365
ATF_TP_ADD_TC(tp, no_test);
tests/lib/libc/gen/t_fpsetmask.c
367
ATF_TP_ADD_TC(tp, fpsetmask_basic);
tests/lib/libc/gen/t_fpsetmask.c
368
ATF_TP_ADD_TC(tp, fpsetmask_masked_float);
tests/lib/libc/gen/t_fpsetmask.c
369
ATF_TP_ADD_TC(tp, fpsetmask_masked_double);
tests/lib/libc/gen/t_fpsetmask.c
370
ATF_TP_ADD_TC(tp, fpsetmask_masked_long_double);
tests/lib/libc/gen/t_fpsetmask.c
371
ATF_TP_ADD_TC(tp, fpsetmask_unmasked_float);
tests/lib/libc/gen/t_fpsetmask.c
372
ATF_TP_ADD_TC(tp, fpsetmask_unmasked_double);
tests/lib/libc/gen/t_fpsetmask.c
373
ATF_TP_ADD_TC(tp, fpsetmask_unmasked_long_double);
tests/lib/libc/gen/t_fpsetround.c
197
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_fpsetround.c
200
ATF_TP_ADD_TC(tp, fpsetround_basic);
tests/lib/libc/gen/t_fpsetround.c
201
ATF_TP_ADD_TC(tp, fpsetround_noftz);
tests/lib/libc/gen/t_ftok.c
101
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_ftok.c
104
ATF_TP_ADD_TC(tp, ftok_err);
tests/lib/libc/gen/t_ftok.c
105
ATF_TP_ADD_TC(tp, ftok_link);
tests/lib/libc/gen/t_getcwd.c
144
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_getcwd.c
147
ATF_TP_ADD_TC(tp, getcwd_err);
tests/lib/libc/gen/t_getcwd.c
148
ATF_TP_ADD_TC(tp, getcwd_fts);
tests/lib/libc/gen/t_getentropy.c
177
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_getentropy.c
180
ATF_TP_ADD_TC(tp, getentropy_0);
tests/lib/libc/gen/t_getentropy.c
181
ATF_TP_ADD_TC(tp, getentropy_256);
tests/lib/libc/gen/t_getentropy.c
182
ATF_TP_ADD_TC(tp, getentropy_257);
tests/lib/libc/gen/t_getentropy.c
183
ATF_TP_ADD_TC(tp, getentropy_32);
tests/lib/libc/gen/t_getentropy.c
184
ATF_TP_ADD_TC(tp, getentropy_badaddr);
tests/lib/libc/gen/t_getentropy.c
185
ATF_TP_ADD_TC(tp, getentropy_nearnull);
tests/lib/libc/gen/t_getentropy.c
186
ATF_TP_ADD_TC(tp, getentropy_null);
tests/lib/libc/gen/t_getgrent.c
174
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_getgrent.c
177
ATF_TP_ADD_TC(tp, getgrent_loop);
tests/lib/libc/gen/t_getgrent.c
178
ATF_TP_ADD_TC(tp, getgrent_setgid);
tests/lib/libc/gen/t_glob.c
364
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_glob.c
366
ATF_TP_ADD_TC(tp, glob_star);
tests/lib/libc/gen/t_glob.c
367
ATF_TP_ADD_TC(tp, glob_star_not);
tests/lib/libc/gen/t_glob.c
368
ATF_TP_ADD_TC(tp, glob_range);
tests/lib/libc/gen/t_glob.c
369
ATF_TP_ADD_TC(tp, glob_range_not);
tests/lib/libc/gen/t_glob.c
370
ATF_TP_ADD_TC(tp, glob_star_star);
tests/lib/libc/gen/t_glob.c
371
ATF_TP_ADD_TC(tp, glob_hidden);
tests/lib/libc/gen/t_humanize_number.c
311
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_humanize_number.c
314
ATF_TP_ADD_TC(tp, humanize_number_basic);
tests/lib/libc/gen/t_humanize_number.c
315
ATF_TP_ADD_TC(tp, humanize_number_big);
tests/lib/libc/gen/t_isnan.c
57
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_isnan.c
59
ATF_TP_ADD_TC(tp, isnan_basic);
tests/lib/libc/gen/t_isnan.c
60
ATF_TP_ADD_TC(tp, isinf_basic);
tests/lib/libc/gen/t_nice.c
184
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_nice.c
187
ATF_TP_ADD_TC(tp, nice_err);
tests/lib/libc/gen/t_nice.c
188
ATF_TP_ADD_TC(tp, nice_priority);
tests/lib/libc/gen/t_nice.c
189
ATF_TP_ADD_TC(tp, nice_root);
tests/lib/libc/gen/t_nice.c
190
ATF_TP_ADD_TC(tp, nice_thread);
tests/lib/libc/gen/t_pause.c
107
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_pause.c
110
ATF_TP_ADD_TC(tp, pause_basic);
tests/lib/libc/gen/t_pause.c
111
ATF_TP_ADD_TC(tp, pause_kill);
tests/lib/libc/gen/t_raise.c
182
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_raise.c
184
ATF_TP_ADD_TC(tp, raise_err);
tests/lib/libc/gen/t_raise.c
185
ATF_TP_ADD_TC(tp, raise_ret);
tests/lib/libc/gen/t_raise.c
186
ATF_TP_ADD_TC(tp, raise_sig);
tests/lib/libc/gen/t_raise.c
187
ATF_TP_ADD_TC(tp, raise_stress);
tests/lib/libc/gen/t_randomid.c
87
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_randomid.c
90
ATF_TP_ADD_TC(tp, randomid_basic);
tests/lib/libc/gen/t_realpath.c
144
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_realpath.c
147
ATF_TP_ADD_TC(tp, realpath_basic);
tests/lib/libc/gen/t_realpath.c
148
ATF_TP_ADD_TC(tp, realpath_huge);
tests/lib/libc/gen/t_realpath.c
149
ATF_TP_ADD_TC(tp, realpath_symlink);
tests/lib/libc/gen/t_setdomainname.c
120
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_setdomainname.c
127
ATF_TP_ADD_TC(tp, setdomainname_basic);
tests/lib/libc/gen/t_setdomainname.c
128
ATF_TP_ADD_TC(tp, setdomainname_limit);
tests/lib/libc/gen/t_setdomainname.c
129
ATF_TP_ADD_TC(tp, setdomainname_perm);
tests/lib/libc/gen/t_sethostname.c
120
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_sethostname.c
127
ATF_TP_ADD_TC(tp, sethostname_basic);
tests/lib/libc/gen/t_sethostname.c
128
ATF_TP_ADD_TC(tp, sethostname_limit);
tests/lib/libc/gen/t_sethostname.c
129
ATF_TP_ADD_TC(tp, sethostname_perm);
tests/lib/libc/gen/t_siginfo.c
542
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_siginfo.c
546
ATF_TP_ADD_TC(tp, sigalarm);
tests/lib/libc/gen/t_siginfo.c
547
ATF_TP_ADD_TC(tp, sigchild_normal);
tests/lib/libc/gen/t_siginfo.c
548
ATF_TP_ADD_TC(tp, sigchild_dump);
tests/lib/libc/gen/t_siginfo.c
549
ATF_TP_ADD_TC(tp, sigchild_kill);
tests/lib/libc/gen/t_siginfo.c
550
ATF_TP_ADD_TC(tp, sigfpe_flt);
tests/lib/libc/gen/t_siginfo.c
551
ATF_TP_ADD_TC(tp, sigfpe_int);
tests/lib/libc/gen/t_siginfo.c
552
ATF_TP_ADD_TC(tp, sigsegv);
tests/lib/libc/gen/t_siginfo.c
553
ATF_TP_ADD_TC(tp, sigbus_adraln);
tests/lib/libc/gen/t_siginfo.c
555
ATF_TP_ADD_TC(tp, dummy);
tests/lib/libc/gen/t_sleep.c
367
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_sleep.c
369
ATF_TP_ADD_TC(tp, nanosleep);
tests/lib/libc/gen/t_sleep.c
370
ATF_TP_ADD_TC(tp, select);
tests/lib/libc/gen/t_sleep.c
371
ATF_TP_ADD_TC(tp, poll);
tests/lib/libc/gen/t_sleep.c
372
ATF_TP_ADD_TC(tp, sleep);
tests/lib/libc/gen/t_sleep.c
373
ATF_TP_ADD_TC(tp, kevent);
tests/lib/libc/gen/t_syslog.c
61
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_syslog.c
64
ATF_TP_ADD_TC(tp, syslog_pthread);
tests/lib/libc/gen/t_syslog.c
65
ATF_TP_ADD_TC(tp, syslog_invalid_priority);
tests/lib/libc/gen/t_time.c
108
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_time.c
111
ATF_TP_ADD_TC(tp, time_copy);
tests/lib/libc/gen/t_time.c
112
ATF_TP_ADD_TC(tp, time_mono);
tests/lib/libc/gen/t_time.c
113
ATF_TP_ADD_TC(tp, time_timeofday);
tests/lib/libc/gen/t_timespec_get.c
115
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_timespec_get.c
117
ATF_TP_ADD_TC(tp, timespec_getres);
tests/lib/libc/gen/t_timespec_get.c
118
ATF_TP_ADD_TC(tp, timespec_get);
tests/lib/libc/gen/t_timespec_get.c
119
ATF_TP_ADD_TC(tp, timespec_get_monotonic);
tests/lib/libc/gen/t_ttyname.c
177
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_ttyname.c
183
ATF_TP_ADD_TC(tp, ttyname_err);
tests/lib/libc/gen/t_ttyname.c
184
ATF_TP_ADD_TC(tp, ttyname_r_err);
tests/lib/libc/gen/t_ttyname.c
185
ATF_TP_ADD_TC(tp, ttyname_r_stdin);
tests/lib/libc/gen/t_ttyname.c
186
ATF_TP_ADD_TC(tp, ttyname_stdin);
tests/lib/libc/gen/t_vis.c
271
ATF_TP_ADD_TCS(tp)
tests/lib/libc/gen/t_vis.c
274
ATF_TP_ADD_TC(tp, strvis_basic);
tests/lib/libc/gen/t_vis.c
275
ATF_TP_ADD_TC(tp, strvis_null);
tests/lib/libc/gen/t_vis.c
276
ATF_TP_ADD_TC(tp, strvis_empty);
tests/lib/libc/gen/t_vis.c
277
ATF_TP_ADD_TC(tp, strnvis_empty_empty);
tests/lib/libc/gen/t_vis.c
278
ATF_TP_ADD_TC(tp, strunvis_hex);
tests/lib/libc/gen/t_vis.c
280
ATF_TP_ADD_TC(tp, strvis_locale);
tests/lib/libc/gen/t_vis.c
281
ATF_TP_ADD_TC(tp, strvis_overflow_mb);
tests/lib/libc/gen/t_vis.c
283
ATF_TP_ADD_TC(tp, strvis_overflow_c);
tests/lib/libc/hash/t_hmac.c
131
ATF_TP_ADD_TCS(tp)
tests/lib/libc/hash/t_hmac.c
133
ATF_TP_ADD_TC(tp, t_hmac);
tests/lib/libc/hash/t_sha2.c
46
ATF_TP_ADD_TCS(tp)
tests/lib/libc/hash/t_sha2.c
48
ATF_TP_ADD_TC(tp, t_sha256);
tests/lib/libc/hash/t_sha2.c
49
ATF_TP_ADD_TC(tp, t_sha384);
tests/lib/libc/hash/t_sha2.c
50
ATF_TP_ADD_TC(tp, t_sha512);
tests/lib/libc/inet/t_inet_addr.c
102
ATF_TP_ADD_TCS(tp)
tests/lib/libc/inet/t_inet_addr.c
105
ATF_TP_ADD_TC(tp, inet_addr_basic);
tests/lib/libc/inet/t_inet_addr.c
106
ATF_TP_ADD_TC(tp, inet_addr_err);
tests/lib/libc/inet/t_inet_network.c
102
ATF_TP_ADD_TCS(tp)
tests/lib/libc/inet/t_inet_network.c
105
ATF_TP_ADD_TC(tp, inet_network_basic);
tests/lib/libc/inet/t_inet_network.c
106
ATF_TP_ADD_TC(tp, inet_network_err);
tests/lib/libc/locale/t_btowc.c
218
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_btowc.c
220
ATF_TP_ADD_TC(tp, btowc);
tests/lib/libc/locale/t_btowc.c
221
ATF_TP_ADD_TC(tp, btowc_posix);
tests/lib/libc/locale/t_btowc.c
222
ATF_TP_ADD_TC(tp, stdc_iso_10646);
tests/lib/libc/locale/t_c16rtomb.c
277
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_c16rtomb.c
280
ATF_TP_ADD_TC(tp, c16rtomb_c_locale_test);
tests/lib/libc/locale/t_c16rtomb.c
281
ATF_TP_ADD_TC(tp, c16rtomb_iso2022jp_locale_test);
tests/lib/libc/locale/t_c16rtomb.c
282
ATF_TP_ADD_TC(tp, c16rtomb_iso_8859_1_test);
tests/lib/libc/locale/t_c16rtomb.c
283
ATF_TP_ADD_TC(tp, c16rtomb_iso_8859_15_test);
tests/lib/libc/locale/t_c16rtomb.c
284
ATF_TP_ADD_TC(tp, c16rtomb_utf_8_test);
tests/lib/libc/locale/t_c32rtomb.c
55
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_c32rtomb.c
58
ATF_TP_ADD_TC(tp, c32rtomb_null);
tests/lib/libc/locale/t_c8rtomb.c
506
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_c8rtomb.c
509
ATF_TP_ADD_TC(tp, c8rtomb_c_locale_test);
tests/lib/libc/locale/t_c8rtomb.c
510
ATF_TP_ADD_TC(tp, c8rtomb_exhaustive);
tests/lib/libc/locale/t_c8rtomb.c
511
ATF_TP_ADD_TC(tp, c8rtomb_iso2022jp_locale_test);
tests/lib/libc/locale/t_c8rtomb.c
512
ATF_TP_ADD_TC(tp, c8rtomb_iso_8859_15_test);
tests/lib/libc/locale/t_c8rtomb.c
513
ATF_TP_ADD_TC(tp, c8rtomb_iso_8859_1_test);
tests/lib/libc/locale/t_c8rtomb.c
514
ATF_TP_ADD_TC(tp, c8rtomb_utf_8_test);
tests/lib/libc/locale/t_digittoint.c
106
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_digittoint.c
109
ATF_TP_ADD_TC(tp, digittoint);
tests/lib/libc/locale/t_ducet.c
147
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_ducet.c
149
ATF_TP_ADD_TC(tp, wcscoll_ducet);
tests/lib/libc/locale/t_ducet.c
150
ATF_TP_ADD_TC(tp, wcsxfrm_ducet);
tests/lib/libc/locale/t_iconv.c
365
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_iconv.c
368
ATF_TP_ADD_TC(tp, iconv_pr59019_hz8);
tests/lib/libc/locale/t_iconv.c
369
ATF_TP_ADD_TC(tp, iconv_samples);
tests/lib/libc/locale/t_io.c
198
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_io.c
200
ATF_TP_ADD_TC(tp, bad_big5_wprintf);
tests/lib/libc/locale/t_io.c
201
ATF_TP_ADD_TC(tp, bad_big5_swprintf);
tests/lib/libc/locale/t_io.c
202
ATF_TP_ADD_TC(tp, good_big5_wprintf);
tests/lib/libc/locale/t_io.c
203
ATF_TP_ADD_TC(tp, good_big5_swprintf);
tests/lib/libc/locale/t_io.c
204
ATF_TP_ADD_TC(tp, good_big5_getwc);
tests/lib/libc/locale/t_io.c
205
ATF_TP_ADD_TC(tp, bad_big5_getwc);
tests/lib/libc/locale/t_mbrtoc16.c
354
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_mbrtoc16.c
357
ATF_TP_ADD_TC(tp, mbrtoc16_c_locale_test);
tests/lib/libc/locale/t_mbrtoc16.c
358
ATF_TP_ADD_TC(tp, mbrtoc16_iso2022jp_locale_test);
tests/lib/libc/locale/t_mbrtoc16.c
359
ATF_TP_ADD_TC(tp, mbrtoc16_iso_8859_1_test);
tests/lib/libc/locale/t_mbrtoc16.c
360
ATF_TP_ADD_TC(tp, mbrtoc16_iso_8859_15_test);
tests/lib/libc/locale/t_mbrtoc16.c
361
ATF_TP_ADD_TC(tp, mbrtoc16_utf_8_test);
tests/lib/libc/locale/t_mbrtoc32.c
56
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_mbrtoc32.c
59
ATF_TP_ADD_TC(tp, mbrtoc32_null);
tests/lib/libc/locale/t_mbrtoc8.c
405
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_mbrtoc8.c
408
ATF_TP_ADD_TC(tp, mbrtoc8_c_locale_test);
tests/lib/libc/locale/t_mbrtoc8.c
409
ATF_TP_ADD_TC(tp, mbrtoc8_iso2022jp_locale_test);
tests/lib/libc/locale/t_mbrtoc8.c
410
ATF_TP_ADD_TC(tp, mbrtoc8_iso_8859_1_test);
tests/lib/libc/locale/t_mbrtoc8.c
411
ATF_TP_ADD_TC(tp, mbrtoc8_iso_8859_15_test);
tests/lib/libc/locale/t_mbrtoc8.c
412
ATF_TP_ADD_TC(tp, mbrtoc8_utf_8_test);
tests/lib/libc/locale/t_mbrtowc.c
325
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_mbrtowc.c
328
ATF_TP_ADD_TC(tp, mbrtowc_internal);
tests/lib/libc/locale/t_mbrtowc.c
329
ATF_TP_ADD_TC(tp, mbrtowc_object);
tests/lib/libc/locale/t_mbsnrtowcs.c
92
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_mbsnrtowcs.c
95
ATF_TP_ADD_TC(tp, mbsnrtowcs);
tests/lib/libc/locale/t_mbstowcs.c
252
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_mbstowcs.c
254
ATF_TP_ADD_TC(tp, mbstowcs_basic);
tests/lib/libc/locale/t_mbtowc.c
200
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_mbtowc.c
203
ATF_TP_ADD_TC(tp, mbtowc_basic);
tests/lib/libc/locale/t_mbtowc.c
204
ATF_TP_ADD_TC(tp, mbtowc_sign);
tests/lib/libc/locale/t_sprintf.c
234
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_sprintf.c
237
ATF_TP_ADD_TC(tp, sprintf);
tests/lib/libc/locale/t_sprintf.c
238
ATF_TP_ADD_TC(tp, sscanf);
tests/lib/libc/locale/t_sprintf.c
239
ATF_TP_ADD_TC(tp, strto);
tests/lib/libc/locale/t_strfmon.c
286
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_strfmon.c
289
ATF_TP_ADD_TC(tp, strfmon_locale);
tests/lib/libc/locale/t_strfmon.c
290
ATF_TP_ADD_TC(tp, strfmon_pad);
tests/lib/libc/locale/t_strfmon.c
291
ATF_TP_ADD_TC(tp, strfmon_locale_thousands);
tests/lib/libc/locale/t_strfmon.c
292
ATF_TP_ADD_TC(tp, strfmon_examples);
tests/lib/libc/locale/t_strfmon.c
293
ATF_TP_ADD_TC(tp, strfmon_cs_precedes_0);
tests/lib/libc/locale/t_strfmon.c
294
ATF_TP_ADD_TC(tp, strfmon_cs_precedes_1);
tests/lib/libc/locale/t_strfmon.c
295
ATF_TP_ADD_TC(tp, strfmon_international_currency_code);
tests/lib/libc/locale/t_toupper.c
124
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_toupper.c
127
ATF_TP_ADD_TC(tp, toupper);
tests/lib/libc/locale/t_toupper.c
128
ATF_TP_ADD_TC(tp, tolower);
tests/lib/libc/locale/t_uchar.c
76
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_uchar.c
79
ATF_TP_ADD_TC(tp, uchartypes);
tests/lib/libc/locale/t_wcscoll.c
145
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_wcscoll.c
148
ATF_TP_ADD_TC(tp, wcscoll);
tests/lib/libc/locale/t_wcscspn.c
53
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_wcscspn.c
56
ATF_TP_ADD_TC(tp, wcscspn);
tests/lib/libc/locale/t_wcspbrk.c
57
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_wcspbrk.c
60
ATF_TP_ADD_TC(tp, wcspbrk);
tests/lib/libc/locale/t_wcsrtombs.c
61
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_wcsrtombs.c
64
ATF_TP_ADD_TC(tp, wcsrtombs_advance);
tests/lib/libc/locale/t_wcsspn.c
55
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_wcsspn.c
58
ATF_TP_ADD_TC(tp, wcsspn);
tests/lib/libc/locale/t_wcstod.c
476
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_wcstod.c
478
ATF_TP_ADD_TC(tp, wcstod);
tests/lib/libc/locale/t_wcstod.c
479
ATF_TP_ADD_TC(tp, wcstombs);
tests/lib/libc/locale/t_wctomb.c
208
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_wctomb.c
210
ATF_TP_ADD_TC(tp, wctomb);
tests/lib/libc/locale/t_wctomb.c
211
ATF_TP_ADD_TC(tp, wcrtomb);
tests/lib/libc/locale/t_wctomb.c
212
ATF_TP_ADD_TC(tp, wcrtomb_state);
tests/lib/libc/locale/t_wctype.c
276
ATF_TP_ADD_TCS(tp)
tests/lib/libc/locale/t_wctype.c
279
ATF_TP_ADD_TC(tp, ctype);
tests/lib/libc/membar/t_dekker.c
155
ATF_TP_ADD_TCS(tp)
tests/lib/libc/membar/t_dekker.c
158
ATF_TP_ADD_TC(tp, dekker);
tests/lib/libc/membar/t_seqlock.c
184
ATF_TP_ADD_TCS(tp)
tests/lib/libc/membar/t_seqlock.c
187
ATF_TP_ADD_TC(tp, seqlock);
tests/lib/libc/membar/t_spinlock.c
153
ATF_TP_ADD_TCS(tp)
tests/lib/libc/membar/t_spinlock.c
156
ATF_TP_ADD_TC(tp, spinlock);
tests/lib/libc/misc/t_ubsan.c
840
UBSAN_CASES(tp)
tests/lib/libc/misc/t_ubsan.c
843
UBSAN_TEST_CASE(tp, add_overflow_signed);
tests/lib/libc/misc/t_ubsan.c
845
UBSAN_TEST_CASE(tp, add_overflow_unsigned);
tests/lib/libc/misc/t_ubsan.c
847
UBSAN_TEST_CASE(tp, builtin_unreachable);
tests/lib/libc/misc/t_ubsan.c
850
UBSAN_TEST_CASE(tp, divrem_overflow_signed_div);
tests/lib/libc/misc/t_ubsan.c
851
UBSAN_TEST_CASE(tp, divrem_overflow_signed_mod);
tests/lib/libc/misc/t_ubsan.c
855
UBSAN_TEST_CASE(tp, function_type_mismatch);
tests/lib/libc/misc/t_ubsan.c
858
UBSAN_TEST_CASE(tp, invalid_builtin_ctz);
tests/lib/libc/misc/t_ubsan.c
859
UBSAN_TEST_CASE(tp, invalid_builtin_ctzl);
tests/lib/libc/misc/t_ubsan.c
860
UBSAN_TEST_CASE(tp, invalid_builtin_ctzll);
tests/lib/libc/misc/t_ubsan.c
861
UBSAN_TEST_CASE(tp, invalid_builtin_clz);
tests/lib/libc/misc/t_ubsan.c
862
UBSAN_TEST_CASE(tp, invalid_builtin_clzl);
tests/lib/libc/misc/t_ubsan.c
863
UBSAN_TEST_CASE(tp, invalid_builtin_clzll);
tests/lib/libc/misc/t_ubsan.c
865
UBSAN_TEST_CASE(tp, load_invalid_value_bool);
tests/lib/libc/misc/t_ubsan.c
867
UBSAN_TEST_CASE(tp, load_invalid_value_enum);
tests/lib/libc/misc/t_ubsan.c
870
UBSAN_TEST_CASE(tp, missing_return);
tests/lib/libc/misc/t_ubsan.c
872
UBSAN_TEST_CASE(tp, mul_overflow_signed);
tests/lib/libc/misc/t_ubsan.c
874
UBSAN_TEST_CASE(tp, mul_overflow_unsigned);
tests/lib/libc/misc/t_ubsan.c
875
UBSAN_TEST_CASE(tp, negate_overflow_signed);
tests/lib/libc/misc/t_ubsan.c
876
UBSAN_TEST_CASE(tp, negate_overflow_unsigned);
tests/lib/libc/misc/t_ubsan.c
879
UBSAN_TEST_CASE(tp, nonnull_arg);
tests/lib/libc/misc/t_ubsan.c
880
UBSAN_TEST_CASE(tp, nonnull_assign);
tests/lib/libc/misc/t_ubsan.c
881
UBSAN_TEST_CASE(tp, nonnull_return);
tests/lib/libc/misc/t_ubsan.c
883
UBSAN_TEST_CASE(tp, out_of_bounds);
tests/lib/libc/misc/t_ubsan.c
885
UBSAN_TEST_CASE(tp, pointer_overflow);
tests/lib/libc/misc/t_ubsan.c
889
UBSAN_TEST_CASE(tp, shift_out_of_bounds_signednessbit);
tests/lib/libc/misc/t_ubsan.c
891
UBSAN_TEST_CASE(tp, shift_out_of_bounds_signedoverflow);
tests/lib/libc/misc/t_ubsan.c
892
UBSAN_TEST_CASE(tp, shift_out_of_bounds_negativeexponent);
tests/lib/libc/misc/t_ubsan.c
893
UBSAN_TEST_CASE(tp, shift_out_of_bounds_toolargeexponent);
tests/lib/libc/misc/t_ubsan.c
895
UBSAN_TEST_CASE(tp, sub_overflow_signed);
tests/lib/libc/misc/t_ubsan.c
896
UBSAN_TEST_CASE(tp, sub_overflow_unsigned);
tests/lib/libc/misc/t_ubsan.c
899
UBSAN_TEST_CASE(tp, type_mismatch_misaligned);
tests/lib/libc/misc/t_ubsan.c
901
UBSAN_TEST_CASE(tp, vla_bound_not_positive);
tests/lib/libc/misc/t_ubsan.c
902
UBSAN_TEST_CASE(tp, integer_divide_by_zero);
tests/lib/libc/misc/t_ubsan.c
904
UBSAN_TEST_CASE(tp, float_divide_by_zero);
tests/lib/libc/misc/t_ubsan.c
907
UBSAN_TEST_CASE(tp, dummy);
tests/lib/libc/misc/t_vis.c
157
ATF_TP_ADD_TCS(tp)
tests/lib/libc/misc/t_vis.c
159
ATF_TP_ADD_TC(tp, vis_test_addsub);
tests/lib/libc/misc/t_vis.c
160
ATF_TP_ADD_TC(tp, vis_test_bitwise);
tests/lib/libc/misc/t_vis.c
161
ATF_TP_ADD_TC(tp, vis_test_fcmpeq16);
tests/lib/libc/misc/t_vis.c
162
ATF_TP_ADD_TC(tp, vis_test_fcmpeq32);
tests/lib/libc/net/t_ether_aton.c
101
ATF_TP_ADD_TC(tp, tc_ether_aton);
tests/lib/libc/net/t_ether_aton.c
98
ATF_TP_ADD_TCS(tp)
tests/lib/libc/net/t_getprotoent.c
221
ATF_TP_ADD_TCS(tp)
tests/lib/libc/net/t_getprotoent.c
224
ATF_TP_ADD_TC(tp, getprotobyname_basic);
tests/lib/libc/net/t_getprotoent.c
225
ATF_TP_ADD_TC(tp, getprotobyname_err);
tests/lib/libc/net/t_getprotoent.c
226
ATF_TP_ADD_TC(tp, getprotobynumber_basic);
tests/lib/libc/net/t_getprotoent.c
227
ATF_TP_ADD_TC(tp, getprotobynumber_err);
tests/lib/libc/net/t_getprotoent.c
228
ATF_TP_ADD_TC(tp, endprotoent_rewind);
tests/lib/libc/net/t_getprotoent.c
229
ATF_TP_ADD_TC(tp, getprotoent_next);
tests/lib/libc/net/t_getprotoent.c
230
ATF_TP_ADD_TC(tp, setprotoent_rewind);
tests/lib/libc/net/t_if_nametoindex.c
69
ATF_TP_ADD_TCS(tp)
tests/lib/libc/net/t_if_nametoindex.c
72
ATF_TP_ADD_TC(tp, tc_if_nametoindex);
tests/lib/libc/nls/t_catalog.c
88
ATF_TP_ADD_TCS(tp)
tests/lib/libc/nls/t_catalog.c
92
ATF_TP_ADD_TC(tp, catalog_errno);
tests/lib/libc/nls/t_catalog.c
93
ATF_TP_ADD_TC(tp, catalog_signal);
tests/lib/libc/regex/t_exhaust.c
260
ATF_TP_ADD_TCS(tp)
tests/lib/libc/regex/t_exhaust.c
263
ATF_TP_ADD_TC(tp, regcomp_too_big);
tests/lib/libc/regex/t_regex_att.c
624
ATF_TP_ADD_TCS(tp)
tests/lib/libc/regex/t_regex_att.c
627
ATF_TP_ADD_TC(tp, basic);
tests/lib/libc/regex/t_regex_att.c
628
ATF_TP_ADD_TC(tp, categorization);
tests/lib/libc/regex/t_regex_att.c
629
ATF_TP_ADD_TC(tp, nullsubexpr);
tests/lib/libc/regex/t_regex_att.c
630
ATF_TP_ADD_TC(tp, leftassoc);
tests/lib/libc/regex/t_regex_att.c
631
ATF_TP_ADD_TC(tp, rightassoc);
tests/lib/libc/regex/t_regex_att.c
632
ATF_TP_ADD_TC(tp, forcedassoc);
tests/lib/libc/regex/t_regex_att.c
633
ATF_TP_ADD_TC(tp, repetition);
tests/lib/libc/regex/t_regex_binary.c
74
ATF_TP_ADD_TCS(tp)
tests/lib/libc/regex/t_regex_binary.c
77
ATF_TP_ADD_TC(tp, negative_ranges);
tests/lib/libc/regex/t_regex_binary.c
78
ATF_TP_ADD_TC(tp, negative_char);
tests/lib/libc/rpc/t_rpc.c
369
ATF_TP_ADD_TCS(tp)
tests/lib/libc/rpc/t_rpc.c
371
ATF_TP_ADD_TC(tp, get_svc_addr_udp);
tests/lib/libc/rpc/t_rpc.c
372
ATF_TP_ADD_TC(tp, get_svc_addr_tcp);
tests/lib/libc/rpc/t_rpc.c
373
ATF_TP_ADD_TC(tp, raw);
tests/lib/libc/rpc/t_rpc.c
374
ATF_TP_ADD_TC(tp, tcp);
tests/lib/libc/rpc/t_rpc.c
375
ATF_TP_ADD_TC(tp, udp);
tests/lib/libc/rpc/t_rpc.c
376
ATF_TP_ADD_TC(tp, tcp_poll);
tests/lib/libc/rpc/t_rpc.c
377
ATF_TP_ADD_TC(tp, udp_poll);
tests/lib/libc/rpc/t_xdr.c
124
ATF_TP_ADD_TCS(tp)
tests/lib/libc/rpc/t_xdr.c
126
ATF_TP_ADD_TC(tp, xdr);
tests/lib/libc/setjmp/t_setjmp.c
391
ATF_TP_ADD_TCS(tp)
tests/lib/libc/setjmp/t_setjmp.c
394
ATF_TP_ADD_TC(tp, setjmp);
tests/lib/libc/setjmp/t_setjmp.c
395
ATF_TP_ADD_TC(tp, _setjmp);
tests/lib/libc/setjmp/t_setjmp.c
396
ATF_TP_ADD_TC(tp, sigsetjmp_save);
tests/lib/libc/setjmp/t_setjmp.c
397
ATF_TP_ADD_TC(tp, sigsetjmp_nosave);
tests/lib/libc/setjmp/t_setjmp.c
398
ATF_TP_ADD_TC(tp, longjmp_zero);
tests/lib/libc/setjmp/t_setjmp.c
399
ATF_TP_ADD_TC(tp, _longjmp_zero);
tests/lib/libc/setjmp/t_setjmp.c
401
ATF_TP_ADD_TC(tp, compat13_setjmp);
tests/lib/libc/setjmp/t_setjmp.c
402
ATF_TP_ADD_TC(tp, compat13_sigsetjmp_save);
tests/lib/libc/setjmp/t_setjmp.c
403
ATF_TP_ADD_TC(tp, compat13_sigsetjmp_nosave);
tests/lib/libc/setjmp/t_setjmp.c
404
ATF_TP_ADD_TC(tp, compat13_longjmp_zero);
tests/lib/libc/setjmp/t_sigstack.c
370
ATF_TP_ADD_TCS(tp)
tests/lib/libc/setjmp/t_sigstack.c
373
ATF_TP_ADD_TC(tp, compat13_setjmp);
tests/lib/libc/setjmp/t_sigstack.c
374
ATF_TP_ADD_TC(tp, compat13_sigsetjmp);
tests/lib/libc/setjmp/t_sigstack.c
375
ATF_TP_ADD_TC(tp, setjmp);
tests/lib/libc/setjmp/t_sigstack.c
376
ATF_TP_ADD_TC(tp, sigsetjmp);
tests/lib/libc/setjmp/t_threadjmp.c
202
ATF_TP_ADD_TCS(tp)
tests/lib/libc/setjmp/t_threadjmp.c
212
ATF_TP_ADD_TC(tp, setjmp);
tests/lib/libc/setjmp/t_threadjmp.c
213
ATF_TP_ADD_TC(tp, _setjmp);
tests/lib/libc/setjmp/t_threadjmp.c
214
ATF_TP_ADD_TC(tp, sigsetjmp_save);
tests/lib/libc/setjmp/t_threadjmp.c
215
ATF_TP_ADD_TC(tp, sigsetjmp_nosave);
tests/lib/libc/stdio/t_clearerr.c
86
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdio/t_clearerr.c
89
ATF_TP_ADD_TC(tp, clearerr_basic);
tests/lib/libc/stdio/t_clearerr.c
90
ATF_TP_ADD_TC(tp, clearerr_err);
tests/lib/libc/stdio/t_fflush.c
170
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdio/t_fflush.c
173
ATF_TP_ADD_TC(tp, fflush_err);
tests/lib/libc/stdio/t_fflush.c
174
ATF_TP_ADD_TC(tp, fflush_seek);
tests/lib/libc/stdio/t_fflush.c
175
ATF_TP_ADD_TC(tp, fflush_ro);
tests/lib/libc/stdio/t_fflush.c
176
ATF_TP_ADD_TC(tp, fpurge_err);
tests/lib/libc/stdio/t_fmemopen.c
1141
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdio/t_fmemopen.c
1143
ATF_TP_ADD_TC(tp, test00);
tests/lib/libc/stdio/t_fmemopen.c
1144
ATF_TP_ADD_TC(tp, test01);
tests/lib/libc/stdio/t_fmemopen.c
1145
ATF_TP_ADD_TC(tp, test02);
tests/lib/libc/stdio/t_fmemopen.c
1146
ATF_TP_ADD_TC(tp, test03);
tests/lib/libc/stdio/t_fmemopen.c
1147
ATF_TP_ADD_TC(tp, test04);
tests/lib/libc/stdio/t_fmemopen.c
1148
ATF_TP_ADD_TC(tp, test05);
tests/lib/libc/stdio/t_fmemopen.c
1149
ATF_TP_ADD_TC(tp, test06);
tests/lib/libc/stdio/t_fmemopen.c
1150
ATF_TP_ADD_TC(tp, test07);
tests/lib/libc/stdio/t_fmemopen.c
1151
ATF_TP_ADD_TC(tp, test08);
tests/lib/libc/stdio/t_fmemopen.c
1152
ATF_TP_ADD_TC(tp, test09);
tests/lib/libc/stdio/t_fmemopen.c
1153
ATF_TP_ADD_TC(tp, test10);
tests/lib/libc/stdio/t_fmemopen.c
1154
ATF_TP_ADD_TC(tp, test11);
tests/lib/libc/stdio/t_fmemopen.c
1155
ATF_TP_ADD_TC(tp, test12);
tests/lib/libc/stdio/t_fmemopen.c
1156
ATF_TP_ADD_TC(tp, test13);
tests/lib/libc/stdio/t_fmemopen.c
1157
ATF_TP_ADD_TC(tp, test14);
tests/lib/libc/stdio/t_fmemopen.c
1158
ATF_TP_ADD_TC(tp, test15);
tests/lib/libc/stdio/t_fmemopen.c
1159
ATF_TP_ADD_TC(tp, test16);
tests/lib/libc/stdio/t_fmemopen.c
1160
ATF_TP_ADD_TC(tp, test17);
tests/lib/libc/stdio/t_fmemopen.c
1161
ATF_TP_ADD_TC(tp, test18);
tests/lib/libc/stdio/t_fmemopen.c
1162
ATF_TP_ADD_TC(tp, test19);
tests/lib/libc/stdio/t_fmemopen.c
1163
ATF_TP_ADD_TC(tp, test20);
tests/lib/libc/stdio/t_fmemopen.c
1164
ATF_TP_ADD_TC(tp, test21);
tests/lib/libc/stdio/t_fmemopen.c
1165
ATF_TP_ADD_TC(tp, test22);
tests/lib/libc/stdio/t_fopen.c
590
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdio/t_fopen.c
593
ATF_TP_ADD_TC(tp, fdopen_close);
tests/lib/libc/stdio/t_fopen.c
594
ATF_TP_ADD_TC(tp, fdopen_err);
tests/lib/libc/stdio/t_fopen.c
595
ATF_TP_ADD_TC(tp, fdopen_seek);
tests/lib/libc/stdio/t_fopen.c
596
ATF_TP_ADD_TC(tp, fopen_append);
tests/lib/libc/stdio/t_fopen.c
597
ATF_TP_ADD_TC(tp, fopen_err);
tests/lib/libc/stdio/t_fopen.c
598
ATF_TP_ADD_TC(tp, fopen_mode);
tests/lib/libc/stdio/t_fopen.c
599
ATF_TP_ADD_TC(tp, fopen_nullptr);
tests/lib/libc/stdio/t_fopen.c
600
ATF_TP_ADD_TC(tp, fopen_nullptr_compat10);
tests/lib/libc/stdio/t_fopen.c
601
ATF_TP_ADD_TC(tp, fopen_perm);
tests/lib/libc/stdio/t_fopen.c
602
ATF_TP_ADD_TC(tp, fopen_regular);
tests/lib/libc/stdio/t_fopen.c
603
ATF_TP_ADD_TC(tp, fopen_symlink);
tests/lib/libc/stdio/t_fopen.c
604
ATF_TP_ADD_TC(tp, fopen_seek);
tests/lib/libc/stdio/t_fopen.c
605
ATF_TP_ADD_TC(tp, freopen_std);
tests/lib/libc/stdio/t_fputc.c
183
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdio/t_fputc.c
186
ATF_TP_ADD_TC(tp, fputc_basic);
tests/lib/libc/stdio/t_fputc.c
187
ATF_TP_ADD_TC(tp, fputc_err);
tests/lib/libc/stdio/t_fputc.c
188
ATF_TP_ADD_TC(tp, putc_basic);
tests/lib/libc/stdio/t_fputc.c
189
ATF_TP_ADD_TC(tp, putc_err);
tests/lib/libc/stdio/t_fputc.c
190
ATF_TP_ADD_TC(tp, putc_unlocked_basic);
tests/lib/libc/stdio/t_fputc.c
191
ATF_TP_ADD_TC(tp, putc_unlocked_err);
tests/lib/libc/stdio/t_open_memstream.c
90
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdio/t_open_memstream.c
93
ATF_TP_ADD_TC(tp, test_open_memstream);
tests/lib/libc/stdio/t_popen.c
129
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdio/t_popen.c
132
ATF_TP_ADD_TC(tp, popen_zeropad);
tests/lib/libc/stdio/t_printf.c
293
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdio/t_printf.c
296
ATF_TP_ADD_TC(tp, snprintf_c99);
tests/lib/libc/stdio/t_printf.c
297
ATF_TP_ADD_TC(tp, snprintf_dotzero);
tests/lib/libc/stdio/t_printf.c
298
ATF_TP_ADD_TC(tp, snprintf_posarg);
tests/lib/libc/stdio/t_printf.c
299
ATF_TP_ADD_TC(tp, snprintf_posarg_width);
tests/lib/libc/stdio/t_printf.c
300
ATF_TP_ADD_TC(tp, snprintf_posarg_error);
tests/lib/libc/stdio/t_printf.c
301
ATF_TP_ADD_TC(tp, snprintf_float);
tests/lib/libc/stdio/t_printf.c
302
ATF_TP_ADD_TC(tp, sprintf_zeropad);
tests/lib/libc/stdio/t_printf.c
303
ATF_TP_ADD_TC(tp, snprintf_double_a);
tests/lib/libc/stdio/t_printf.c
304
ATF_TP_ADD_TC(tp, snprintf_long_double_a);
tests/lib/libc/stdio/t_printf.c
306
ATF_TP_ADD_TC(tp, pr57250_fix);
tests/lib/libc/stdio/t_scanf.c
74
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdio/t_scanf.c
77
ATF_TP_ADD_TC(tp, sscanf_neghex);
tests/lib/libc/stdio/t_scanf.c
78
ATF_TP_ADD_TC(tp, sscanf_whitespace);
tests/lib/libc/stdlib/t_a64l.c
103
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdlib/t_a64l.c
106
ATF_TP_ADD_TC(tp, a64l_basic);
tests/lib/libc/stdlib/t_a64l.c
107
ATF_TP_ADD_TC(tp, l64a_basic);
tests/lib/libc/stdlib/t_a64l.c
108
ATF_TP_ADD_TC(tp, l64a_r_basic);
tests/lib/libc/stdlib/t_abs.c
145
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdlib/t_abs.c
148
ATF_TP_ADD_TC(tp, abs_basic);
tests/lib/libc/stdlib/t_abs.c
149
ATF_TP_ADD_TC(tp, imaxabs_basic);
tests/lib/libc/stdlib/t_abs.c
150
ATF_TP_ADD_TC(tp, labs_basic);
tests/lib/libc/stdlib/t_abs.c
151
ATF_TP_ADD_TC(tp, llabs_basic);
tests/lib/libc/stdlib/t_atoi.c
112
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdlib/t_atoi.c
115
ATF_TP_ADD_TC(tp, atof_strtod);
tests/lib/libc/stdlib/t_atoi.c
116
ATF_TP_ADD_TC(tp, atoi_strtol);
tests/lib/libc/stdlib/t_atoi.c
117
ATF_TP_ADD_TC(tp, atol_strtol);
tests/lib/libc/stdlib/t_atoi.c
118
ATF_TP_ADD_TC(tp, atoll_strtoll);
tests/lib/libc/stdlib/t_div.c
90
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdlib/t_div.c
93
ATF_TP_ADD_TC(tp, div_basic);
tests/lib/libc/stdlib/t_div.c
94
ATF_TP_ADD_TC(tp, ldiv_basic);
tests/lib/libc/stdlib/t_div.c
95
ATF_TP_ADD_TC(tp, lldiv_basic);
tests/lib/libc/stdlib/t_exit.c
177
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdlib/t_exit.c
180
ATF_TP_ADD_TC(tp, exit_atexit);
tests/lib/libc/stdlib/t_exit.c
181
ATF_TP_ADD_TC(tp, exit_basic);
tests/lib/libc/stdlib/t_exit.c
182
ATF_TP_ADD_TC(tp, exit_status);
tests/lib/libc/stdlib/t_exit.c
183
ATF_TP_ADD_TC(tp, exit_tmpfile);
tests/lib/libc/stdlib/t_getenv.c
189
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdlib/t_getenv.c
192
ATF_TP_ADD_TC(tp, clearenv_basic);
tests/lib/libc/stdlib/t_getenv.c
193
ATF_TP_ADD_TC(tp, getenv_basic);
tests/lib/libc/stdlib/t_getenv.c
194
ATF_TP_ADD_TC(tp, putenv_basic);
tests/lib/libc/stdlib/t_getenv.c
195
ATF_TP_ADD_TC(tp, setenv_basic);
tests/lib/libc/stdlib/t_getenv.c
196
ATF_TP_ADD_TC(tp, setenv_mixed);
tests/lib/libc/stdlib/t_getenv_thread.c
241
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdlib/t_getenv_thread.c
244
ATF_TP_ADD_TC(tp, getenv_r_thread);
tests/lib/libc/stdlib/t_getenv_thread.c
245
ATF_TP_ADD_TC(tp, putenv_thread);
tests/lib/libc/stdlib/t_getenv_thread.c
246
ATF_TP_ADD_TC(tp, setenv_thread);
tests/lib/libc/stdlib/t_getenv_thread.c
247
ATF_TP_ADD_TC(tp, unsetenv_thread);
tests/lib/libc/stdlib/t_hsearch.c
385
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdlib/t_hsearch.c
388
ATF_TP_ADD_TC(tp, hsearch_basic);
tests/lib/libc/stdlib/t_hsearch.c
389
ATF_TP_ADD_TC(tp, hsearch_duplicate);
tests/lib/libc/stdlib/t_hsearch.c
390
ATF_TP_ADD_TC(tp, hsearch_nonexistent);
tests/lib/libc/stdlib/t_hsearch.c
391
ATF_TP_ADD_TC(tp, hsearch_two);
tests/lib/libc/stdlib/t_hsearch.c
393
ATF_TP_ADD_TC(tp, hsearch_r_basic);
tests/lib/libc/stdlib/t_hsearch.c
394
ATF_TP_ADD_TC(tp, hsearch_r_duplicate);
tests/lib/libc/stdlib/t_hsearch.c
395
ATF_TP_ADD_TC(tp, hsearch_r_nonexistent);
tests/lib/libc/stdlib/t_hsearch.c
396
ATF_TP_ADD_TC(tp, hsearch_r_two);
tests/lib/libc/stdlib/t_mi_vector_hash.c
90
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdlib/t_mi_vector_hash.c
92
ATF_TP_ADD_TC(tp, mi_vector_hash_basic);
tests/lib/libc/stdlib/t_mktemp.c
258
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdlib/t_mktemp.c
261
ATF_TP_ADD_TC(tp, mktemp_not_exist);
tests/lib/libc/stdlib/t_mktemp.c
262
ATF_TP_ADD_TC(tp, mktemp_large_template);
tests/lib/libc/stdlib/t_mktemp.c
263
ATF_TP_ADD_TC(tp, mkstemp_basic);
tests/lib/libc/stdlib/t_mktemp.c
264
ATF_TP_ADD_TC(tp, mkstemps_basic);
tests/lib/libc/stdlib/t_mktemp.c
265
ATF_TP_ADD_TC(tp, mkdtemp_basic);
tests/lib/libc/stdlib/t_mktemp.c
266
ATF_TP_ADD_TC(tp, mkostemp_basic);
tests/lib/libc/stdlib/t_mktemp.c
267
ATF_TP_ADD_TC(tp, mkostemps_basic);
tests/lib/libc/stdlib/t_posix_memalign.c
232
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdlib/t_posix_memalign.c
235
ATF_TP_ADD_TC(tp, posix_memalign_basic);
tests/lib/libc/stdlib/t_posix_memalign.c
236
ATF_TP_ADD_TC(tp, aligned_alloc_basic);
tests/lib/libc/stdlib/t_random.c
76
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdlib/t_random.c
79
ATF_TP_ADD_TC(tp, random_same);
tests/lib/libc/stdlib/t_strtod.c
377
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdlib/t_strtod.c
380
ATF_TP_ADD_TC(tp, strtod_basic);
tests/lib/libc/stdlib/t_strtod.c
381
ATF_TP_ADD_TC(tp, strtold_basic);
tests/lib/libc/stdlib/t_strtod.c
382
ATF_TP_ADD_TC(tp, strtod_hex);
tests/lib/libc/stdlib/t_strtod.c
383
ATF_TP_ADD_TC(tp, strtod_inf);
tests/lib/libc/stdlib/t_strtod.c
384
ATF_TP_ADD_TC(tp, strtof_inf);
tests/lib/libc/stdlib/t_strtod.c
385
ATF_TP_ADD_TC(tp, strtold_inf);
tests/lib/libc/stdlib/t_strtod.c
386
ATF_TP_ADD_TC(tp, strtod_nan);
tests/lib/libc/stdlib/t_strtod.c
387
ATF_TP_ADD_TC(tp, strtof_nan);
tests/lib/libc/stdlib/t_strtod.c
388
ATF_TP_ADD_TC(tp, strtold_nan);
tests/lib/libc/stdlib/t_strtod.c
389
ATF_TP_ADD_TC(tp, strtod_round);
tests/lib/libc/stdlib/t_strtod.c
390
ATF_TP_ADD_TC(tp, strtod_underflow);
tests/lib/libc/stdlib/t_strtod.c
391
ATF_TP_ADD_TC(tp, strtod_gherman_bug);
tests/lib/libc/stdlib/t_strtoi.c
389
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdlib/t_strtoi.c
392
ATF_TP_ADD_TC(tp, strtoi_base);
tests/lib/libc/stdlib/t_strtoi.c
393
ATF_TP_ADD_TC(tp, strtoi_case);
tests/lib/libc/stdlib/t_strtoi.c
394
ATF_TP_ADD_TC(tp, strtoi_range);
tests/lib/libc/stdlib/t_strtoi.c
395
ATF_TP_ADD_TC(tp, strtoi_range_trail);
tests/lib/libc/stdlib/t_strtoi.c
396
ATF_TP_ADD_TC(tp, strtoi_signed);
tests/lib/libc/stdlib/t_strtol.c
298
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdlib/t_strtol.c
301
ATF_TP_ADD_TC(tp, strtol_invbase);
tests/lib/libc/stdlib/t_strtol.c
302
ATF_TP_ADD_TC(tp, strtol_base);
tests/lib/libc/stdlib/t_strtol.c
303
ATF_TP_ADD_TC(tp, strtol_case);
tests/lib/libc/stdlib/t_strtol.c
304
ATF_TP_ADD_TC(tp, strtol_range);
tests/lib/libc/stdlib/t_strtol.c
305
ATF_TP_ADD_TC(tp, strtol_signed);
tests/lib/libc/stdlib/t_system.c
77
ATF_TP_ADD_TCS(tp)
tests/lib/libc/stdlib/t_system.c
80
ATF_TP_ADD_TC(tp, system_basic);
tests/lib/libc/string/t_bm.c
100
ATF_TP_ADD_TC(tp, bm);
tests/lib/libc/string/t_bm.c
97
ATF_TP_ADD_TCS(tp)
tests/lib/libc/string/t_memchr.c
186
ATF_TP_ADD_TCS(tp)
tests/lib/libc/string/t_memchr.c
189
ATF_TP_ADD_TC(tp, memchr_basic);
tests/lib/libc/string/t_memchr.c
190
ATF_TP_ADD_TC(tp, memchr_simple);
tests/lib/libc/string/t_memchr.c
191
ATF_TP_ADD_TC(tp, memrchr_simple);
tests/lib/libc/string/t_memcpy.c
143
ATF_TP_ADD_TCS(tp)
tests/lib/libc/string/t_memcpy.c
146
ATF_TP_ADD_TC(tp, memcpy_basic);
tests/lib/libc/string/t_memcpy.c
147
ATF_TP_ADD_TC(tp, memcpy_return);
tests/lib/libc/string/t_memcpy.c
148
ATF_TP_ADD_TC(tp, memccpy_simple);
tests/lib/libc/string/t_memmem.c
128
ATF_TP_ADD_TCS(tp)
tests/lib/libc/string/t_memmem.c
131
ATF_TP_ADD_TC(tp, memmem_basic);
tests/lib/libc/string/t_memmem.c
132
ATF_TP_ADD_TC(tp, memmem_oob);
tests/lib/libc/string/t_memset.c
271
ATF_TP_ADD_TCS(tp)
tests/lib/libc/string/t_memset.c
277
ATF_TP_ADD_TC(tp, memset_array);
tests/lib/libc/string/t_memset.c
278
ATF_TP_ADD_TC(tp, memset_basic);
tests/lib/libc/string/t_memset.c
279
ATF_TP_ADD_TC(tp, memset_nonzero);
tests/lib/libc/string/t_memset.c
280
ATF_TP_ADD_TC(tp, memset_struct);
tests/lib/libc/string/t_memset.c
281
ATF_TP_ADD_TC(tp, memset_return);
tests/lib/libc/string/t_memset.c
282
ATF_TP_ADD_TC(tp, memset_zero_size);
tests/lib/libc/string/t_memset.c
283
ATF_TP_ADD_TC(tp, bzero_zero_size);
tests/lib/libc/string/t_popcount.c
192
ATF_TP_ADD_TCS(tp)
tests/lib/libc/string/t_popcount.c
194
ATF_TP_ADD_TC(tp, popcount_basic);
tests/lib/libc/string/t_popcount.c
195
ATF_TP_ADD_TC(tp, popcountll_basic);
tests/lib/libc/string/t_strcat.c
146
ATF_TP_ADD_TCS(tp)
tests/lib/libc/string/t_strcat.c
149
ATF_TP_ADD_TC(tp, strcat_basic);
tests/lib/libc/string/t_strcat.c
150
ATF_TP_ADD_TC(tp, strncat_simple);
tests/lib/libc/string/t_strchr.c
288
ATF_TP_ADD_TCS(tp)
tests/lib/libc/string/t_strchr.c
291
ATF_TP_ADD_TC(tp, strchr_basic);
tests/lib/libc/string/t_strchrnul.c
287
ATF_TP_ADD_TCS(tp)
tests/lib/libc/string/t_strchrnul.c
290
ATF_TP_ADD_TC(tp, strchrnul_basic);
tests/lib/libc/string/t_strcmp.c
129
ATF_TP_ADD_TCS(tp)
tests/lib/libc/string/t_strcmp.c
132
ATF_TP_ADD_TC(tp, strcmp_basic);
tests/lib/libc/string/t_strcmp.c
133
ATF_TP_ADD_TC(tp, strcmp_simple);
tests/lib/libc/string/t_strcoll.c
100
ATF_TP_ADD_TCS(tp)
tests/lib/libc/string/t_strcoll.c
103
ATF_TP_ADD_TC(tp, ordering);
tests/lib/libc/string/t_strcpy.c
118
ATF_TP_ADD_TCS(tp)
tests/lib/libc/string/t_strcpy.c
121
ATF_TP_ADD_TC(tp, strcpy_basic);
tests/lib/libc/string/t_strcspn.c
53
ATF_TP_ADD_TCS(tp)
tests/lib/libc/string/t_strcspn.c
56
ATF_TP_ADD_TC(tp, strcspn);
tests/lib/libc/string/t_strerror.c
125
ATF_TP_ADD_TCS(tp)
tests/lib/libc/string/t_strerror.c
130
ATF_TP_ADD_TC(tp, strerror_basic);
tests/lib/libc/string/t_strerror.c
131
ATF_TP_ADD_TC(tp, strerror_err);
tests/lib/libc/string/t_strerror.c
132
ATF_TP_ADD_TC(tp, strerror_r_basic);
tests/lib/libc/string/t_strerror.c
133
ATF_TP_ADD_TC(tp, strerror_r_err);
tests/lib/libc/string/t_stresep.c
72
ATF_TP_ADD_TCS(tp)
tests/lib/libc/string/t_stresep.c
75
ATF_TP_ADD_TC(tp, stresep_basic);
tests/lib/libc/string/t_strlen.c
194
ATF_TP_ADD_TCS(tp)
tests/lib/libc/string/t_strlen.c
197
ATF_TP_ADD_TC(tp, strlen_basic);
tests/lib/libc/string/t_strlen.c
198
ATF_TP_ADD_TC(tp, strlen_huge);
tests/lib/libc/string/t_strlen.c
199
ATF_TP_ADD_TC(tp, strnlen_basic);
tests/lib/libc/string/t_strpbrk.c
57
ATF_TP_ADD_TCS(tp)
tests/lib/libc/string/t_strpbrk.c
60
ATF_TP_ADD_TC(tp, strpbrk);
tests/lib/libc/string/t_strrchr.c
251
ATF_TP_ADD_TCS(tp)
tests/lib/libc/string/t_strrchr.c
254
ATF_TP_ADD_TC(tp, strrchr_basic);
tests/lib/libc/string/t_strspn.c
55
ATF_TP_ADD_TCS(tp)
tests/lib/libc/string/t_strspn.c
58
ATF_TP_ADD_TC(tp, strspn);
tests/lib/libc/string/t_swab.c
96
ATF_TP_ADD_TCS(tp)
tests/lib/libc/string/t_swab.c
98
ATF_TP_ADD_TC(tp, swab_basic);
tests/lib/libc/sys/t_access.c
201
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_access.c
204
ATF_TP_ADD_TC(tp, access_access);
tests/lib/libc/sys/t_access.c
205
ATF_TP_ADD_TC(tp, access_fault);
tests/lib/libc/sys/t_access.c
206
ATF_TP_ADD_TC(tp, access_inval);
tests/lib/libc/sys/t_access.c
207
ATF_TP_ADD_TC(tp, access_notdir);
tests/lib/libc/sys/t_access.c
208
ATF_TP_ADD_TC(tp, access_notexist);
tests/lib/libc/sys/t_access.c
209
ATF_TP_ADD_TC(tp, access_toolong);
tests/lib/libc/sys/t_aio_cancel.c
217
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_aio_cancel.c
219
ATF_TP_ADD_TC(tp, cancel_active_write);
tests/lib/libc/sys/t_aio_cancel.c
220
ATF_TP_ADD_TC(tp, cancel_completed_request);
tests/lib/libc/sys/t_aio_cancel.c
221
ATF_TP_ADD_TC(tp, cancel_invalid_fd);
tests/lib/libc/sys/t_aio_lio.c
258
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_aio_lio.c
260
ATF_TP_ADD_TC(tp, lio_nowait);
tests/lib/libc/sys/t_aio_lio.c
261
ATF_TP_ADD_TC(tp, lio_wait_write_then_read);
tests/lib/libc/sys/t_aio_rw.c
163
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_aio_rw.c
165
ATF_TP_ADD_TC(tp, write_then_read_back);
tests/lib/libc/sys/t_aio_suspend.c
166
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_aio_suspend.c
168
ATF_TP_ADD_TC(tp, suspend_any);
tests/lib/libc/sys/t_bind.c
72
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_bind.c
75
ATF_TP_ADD_TC(tp, bind_foreign_family);
tests/lib/libc/sys/t_chroot.c
303
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_chroot.c
306
ATF_TP_ADD_TC(tp, chroot_basic);
tests/lib/libc/sys/t_chroot.c
307
ATF_TP_ADD_TC(tp, chroot_err);
tests/lib/libc/sys/t_chroot.c
308
ATF_TP_ADD_TC(tp, chroot_perm);
tests/lib/libc/sys/t_chroot.c
309
ATF_TP_ADD_TC(tp, fchroot_basic);
tests/lib/libc/sys/t_chroot.c
310
ATF_TP_ADD_TC(tp, fchroot_err);
tests/lib/libc/sys/t_chroot.c
311
ATF_TP_ADD_TC(tp, fchroot_perm);
tests/lib/libc/sys/t_clock_gettime.c
325
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_clock_gettime.c
328
ATF_TP_ADD_TC(tp, clock_gettime_real);
tests/lib/libc/sys/t_clock_gettime.c
329
ATF_TP_ADD_TC(tp, clock_gettime_process_cputime_is_monotonic);
tests/lib/libc/sys/t_clock_gettime.c
330
ATF_TP_ADD_TC(tp, clock_gettime_thread_cputime_is_monotonic);
tests/lib/libc/sys/t_clock_gettime.c
331
ATF_TP_ADD_TC(tp, clock_getres);
tests/lib/libc/sys/t_clock_nanosleep.c
57
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_clock_nanosleep.c
60
ATF_TP_ADD_TC(tp, clock_nanosleep_remain);
tests/lib/libc/sys/t_clone.c
250
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_clone.c
253
ATF_TP_ADD_TC(tp, clone_basic);
tests/lib/libc/sys/t_clone.c
254
ATF_TP_ADD_TC(tp, clone_null_stack);
tests/lib/libc/sys/t_clone.c
255
ATF_TP_ADD_TC(tp, clone_null_func);
tests/lib/libc/sys/t_clone.c
256
ATF_TP_ADD_TC(tp, clone_out_of_proc);
tests/lib/libc/sys/t_connect.c
126
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_connect.c
129
ATF_TP_ADD_TC(tp, connect_low_port);
tests/lib/libc/sys/t_connect.c
130
ATF_TP_ADD_TC(tp, connect_foreign_family);
tests/lib/libc/sys/t_dup.c
371
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_dup.c
374
ATF_TP_ADD_TC(tp, dup2_basic);
tests/lib/libc/sys/t_dup.c
375
ATF_TP_ADD_TC(tp, dup2_err);
tests/lib/libc/sys/t_dup.c
376
ATF_TP_ADD_TC(tp, dup2_max);
tests/lib/libc/sys/t_dup.c
377
ATF_TP_ADD_TC(tp, dup2_mode);
tests/lib/libc/sys/t_dup.c
378
ATF_TP_ADD_TC(tp, dup3_err);
tests/lib/libc/sys/t_dup.c
379
ATF_TP_ADD_TC(tp, dup3_max);
tests/lib/libc/sys/t_dup.c
380
ATF_TP_ADD_TC(tp, dup3_mode);
tests/lib/libc/sys/t_dup.c
381
ATF_TP_ADD_TC(tp, dup_err);
tests/lib/libc/sys/t_dup.c
382
ATF_TP_ADD_TC(tp, dup_max);
tests/lib/libc/sys/t_dup.c
383
ATF_TP_ADD_TC(tp, dup_mode);
tests/lib/libc/sys/t_eventfd.c
818
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_eventfd.c
820
ATF_TP_ADD_TC(tp, eventfd_normal);
tests/lib/libc/sys/t_eventfd.c
821
ATF_TP_ADD_TC(tp, eventfd_semaphore);
tests/lib/libc/sys/t_eventfd.c
822
ATF_TP_ADD_TC(tp, eventfd_badflags);
tests/lib/libc/sys/t_eventfd.c
823
ATF_TP_ADD_TC(tp, eventfd_bufsize);
tests/lib/libc/sys/t_eventfd.c
824
ATF_TP_ADD_TC(tp, eventfd_select_poll_kevent_immed);
tests/lib/libc/sys/t_eventfd.c
825
ATF_TP_ADD_TC(tp, eventfd_select_poll_kevent_block);
tests/lib/libc/sys/t_eventfd.c
826
ATF_TP_ADD_TC(tp, eventfd_restart);
tests/lib/libc/sys/t_eventfd.c
827
ATF_TP_ADD_TC(tp, eventfd_fcntl);
tests/lib/libc/sys/t_fork.c
356
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_fork.c
358
ATF_TP_ADD_TC(tp, raise1);
tests/lib/libc/sys/t_fork.c
359
ATF_TP_ADD_TC(tp, raise2);
tests/lib/libc/sys/t_fork.c
360
ATF_TP_ADD_TC(tp, raise3);
tests/lib/libc/sys/t_fork.c
361
ATF_TP_ADD_TC(tp, raise4);
tests/lib/libc/sys/t_fork.c
362
ATF_TP_ADD_TC(tp, raise5);
tests/lib/libc/sys/t_fork.c
363
ATF_TP_ADD_TC(tp, raise6);
tests/lib/libc/sys/t_fork.c
364
ATF_TP_ADD_TC(tp, raise7);
tests/lib/libc/sys/t_fork.c
365
ATF_TP_ADD_TC(tp, raise8);
tests/lib/libc/sys/t_fork.c
367
ATF_TP_ADD_TC(tp, nested_fork);
tests/lib/libc/sys/t_fork.c
368
ATF_TP_ADD_TC(tp, nested_vfork);
tests/lib/libc/sys/t_fork.c
369
ATF_TP_ADD_TC(tp, nested_clone);
tests/lib/libc/sys/t_fork.c
370
ATF_TP_ADD_TC(tp, nested_clone_vm);
tests/lib/libc/sys/t_fork.c
371
ATF_TP_ADD_TC(tp, nested_clone_fs);
tests/lib/libc/sys/t_fork.c
372
ATF_TP_ADD_TC(tp, nested_clone_files);
tests/lib/libc/sys/t_fork.c
374
ATF_TP_ADD_TC(tp, nested_clone_vfork);
tests/lib/libc/sys/t_fsync.c
113
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_fsync.c
116
ATF_TP_ADD_TC(tp, fsync_err);
tests/lib/libc/sys/t_fsync.c
117
ATF_TP_ADD_TC(tp, fsync_sync);
tests/lib/libc/sys/t_futex_ops.c
1613
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_futex_ops.c
1615
ATF_TP_ADD_TC(tp, futex_basic_wait_wake_private);
tests/lib/libc/sys/t_futex_ops.c
1616
ATF_TP_ADD_TC(tp, futex_basic_wait_wake_shared);
tests/lib/libc/sys/t_futex_ops.c
1617
ATF_TP_ADD_TC(tp, futex_wait_wake_anon_bs_private);
tests/lib/libc/sys/t_futex_ops.c
1618
ATF_TP_ADD_TC(tp, futex_wait_wake_anon_bs_shared);
tests/lib/libc/sys/t_futex_ops.c
1619
ATF_TP_ADD_TC(tp, futex_wait_wake_file_bs_private);
tests/lib/libc/sys/t_futex_ops.c
1620
ATF_TP_ADD_TC(tp, futex_wait_wake_file_bs_shared);
tests/lib/libc/sys/t_futex_ops.c
1621
ATF_TP_ADD_TC(tp, futex_wait_wake_file_bs_cow_private);
tests/lib/libc/sys/t_futex_ops.c
1622
ATF_TP_ADD_TC(tp, futex_wait_wake_file_bs_cow_shared);
tests/lib/libc/sys/t_futex_ops.c
1624
ATF_TP_ADD_TC(tp, futex_wait_wake_anon_bs_shared_proc);
tests/lib/libc/sys/t_futex_ops.c
1625
ATF_TP_ADD_TC(tp, futex_wait_wake_file_bs_shared_proc);
tests/lib/libc/sys/t_futex_ops.c
1627
ATF_TP_ADD_TC(tp, futex_wait_pointless_bitset);
tests/lib/libc/sys/t_futex_ops.c
1628
ATF_TP_ADD_TC(tp, futex_wait_wake_bitset);
tests/lib/libc/sys/t_futex_ops.c
1630
ATF_TP_ADD_TC(tp, futex_wait_timeout_relative);
tests/lib/libc/sys/t_futex_ops.c
1631
ATF_TP_ADD_TC(tp, futex_wait_timeout_relative_rt);
tests/lib/libc/sys/t_futex_ops.c
1632
ATF_TP_ADD_TC(tp, futex_wait_timeout_deadline);
tests/lib/libc/sys/t_futex_ops.c
1633
ATF_TP_ADD_TC(tp, futex_wait_timeout_deadline_rt);
tests/lib/libc/sys/t_futex_ops.c
1635
ATF_TP_ADD_TC(tp, futex_wait_evil_unmapped_anon);
tests/lib/libc/sys/t_futex_ops.c
1637
ATF_TP_ADD_TC(tp, futex_requeue);
tests/lib/libc/sys/t_futex_ops.c
1638
ATF_TP_ADD_TC(tp, futex_cmp_requeue);
tests/lib/libc/sys/t_futex_ops.c
1639
ATF_TP_ADD_TC(tp, futex_cmp_requeue_trivial);
tests/lib/libc/sys/t_futex_ops.c
1641
ATF_TP_ADD_TC(tp, futex_wake_op_op);
tests/lib/libc/sys/t_futex_ops.c
1642
ATF_TP_ADD_TC(tp, futex_wake_op_cmp);
tests/lib/libc/sys/t_futex_ops.c
1644
ATF_TP_ADD_TC(tp, futex_wake_highest_pri);
tests/lib/libc/sys/t_futex_robust.c
397
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_futex_robust.c
399
ATF_TP_ADD_TC(tp, futex_robust_positive);
tests/lib/libc/sys/t_futex_robust.c
400
ATF_TP_ADD_TC(tp, futex_robust_negative);
tests/lib/libc/sys/t_futex_robust.c
401
ATF_TP_ADD_TC(tp, futex_robust_unmapped);
tests/lib/libc/sys/t_futex_robust.c
402
ATF_TP_ADD_TC(tp, futex_robust_evil_circular);
tests/lib/libc/sys/t_futex_robust.c
403
ATF_TP_ADD_TC(tp, futex_robust_bad_pending);
tests/lib/libc/sys/t_getcontext.c
121
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_getcontext.c
124
ATF_TP_ADD_TC(tp, getcontext_err);
tests/lib/libc/sys/t_getcontext.c
125
ATF_TP_ADD_TC(tp, setcontext_err);
tests/lib/libc/sys/t_getcontext.c
126
ATF_TP_ADD_TC(tp, setcontext_link);
tests/lib/libc/sys/t_getgroups.c
162
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_getgroups.c
165
ATF_TP_ADD_TC(tp, getgroups_err);
tests/lib/libc/sys/t_getgroups.c
166
ATF_TP_ADD_TC(tp, getgroups_getgid);
tests/lib/libc/sys/t_getgroups.c
167
ATF_TP_ADD_TC(tp, getgroups_setgid);
tests/lib/libc/sys/t_getgroups.c
168
ATF_TP_ADD_TC(tp, getgroups_zero);
tests/lib/libc/sys/t_getitimer.c
244
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_getitimer.c
247
ATF_TP_ADD_TC(tp, getitimer_empty);
tests/lib/libc/sys/t_getitimer.c
248
ATF_TP_ADD_TC(tp, getitimer_err);
tests/lib/libc/sys/t_getitimer.c
249
ATF_TP_ADD_TC(tp, setitimer_basic);
tests/lib/libc/sys/t_getitimer.c
250
ATF_TP_ADD_TC(tp, setitimer_err);
tests/lib/libc/sys/t_getitimer.c
251
ATF_TP_ADD_TC(tp, setitimer_old);
tests/lib/libc/sys/t_getitimer.c
252
ATF_TP_ADD_TC(tp, setitimer_invalidtime);
tests/lib/libc/sys/t_getlogin.c
227
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_getlogin.c
230
ATF_TP_ADD_TC(tp, getlogin_r_err);
tests/lib/libc/sys/t_getlogin.c
231
ATF_TP_ADD_TC(tp, getlogin_same);
tests/lib/libc/sys/t_getlogin.c
232
ATF_TP_ADD_TC(tp, setlogin_basic);
tests/lib/libc/sys/t_getlogin.c
233
ATF_TP_ADD_TC(tp, setlogin_err);
tests/lib/libc/sys/t_getlogin.c
234
ATF_TP_ADD_TC(tp, setlogin_perm);
tests/lib/libc/sys/t_getpid.c
127
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_getpid.c
130
ATF_TP_ADD_TC(tp, getpid_process);
tests/lib/libc/sys/t_getpid.c
131
ATF_TP_ADD_TC(tp, getpid_thread);
tests/lib/libc/sys/t_getrandom.c
281
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_getrandom.c
284
ATF_TP_ADD_TC(tp, getrandom_default);
tests/lib/libc/sys/t_getrandom.c
285
ATF_TP_ADD_TC(tp, getrandom_nonblock);
tests/lib/libc/sys/t_getrandom.c
286
ATF_TP_ADD_TC(tp, getrandom_insecure);
tests/lib/libc/sys/t_getrandom.c
287
ATF_TP_ADD_TC(tp, getrandom_insecure_nonblock);
tests/lib/libc/sys/t_getrandom.c
288
ATF_TP_ADD_TC(tp, getrandom_random);
tests/lib/libc/sys/t_getrandom.c
289
ATF_TP_ADD_TC(tp, getrandom_random_nonblock);
tests/lib/libc/sys/t_getrandom.c
290
ATF_TP_ADD_TC(tp, getrandom_random_insecure);
tests/lib/libc/sys/t_getrandom.c
291
ATF_TP_ADD_TC(tp, getrandom_random_insecure_nonblock);
tests/lib/libc/sys/t_getrandom.c
292
ATF_TP_ADD_TC(tp, getrandom_invalid);
tests/lib/libc/sys/t_getrandom.c
293
ATF_TP_ADD_TC(tp, getrandom_fault);
tests/lib/libc/sys/t_getrusage.c
264
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_getrusage.c
267
ATF_TP_ADD_TC(tp, getrusage_err);
tests/lib/libc/sys/t_getrusage.c
268
ATF_TP_ADD_TC(tp, getrusage_sig);
tests/lib/libc/sys/t_getrusage.c
269
ATF_TP_ADD_TC(tp, getrusage_maxrss);
tests/lib/libc/sys/t_getrusage.c
270
ATF_TP_ADD_TC(tp, getrusage_msgsnd);
tests/lib/libc/sys/t_getrusage.c
271
ATF_TP_ADD_TC(tp, getrusage_utime_back);
tests/lib/libc/sys/t_getrusage.c
272
ATF_TP_ADD_TC(tp, getrusage_utime_zero);
tests/lib/libc/sys/t_getsid.c
111
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_getsid.c
114
ATF_TP_ADD_TC(tp, getsid_current);
tests/lib/libc/sys/t_getsid.c
115
ATF_TP_ADD_TC(tp, getsid_err);
tests/lib/libc/sys/t_getsid.c
116
ATF_TP_ADD_TC(tp, getsid_process);
tests/lib/libc/sys/t_getsockname.c
76
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_getsockname.c
79
ATF_TP_ADD_TC(tp, getsockname_unix);
tests/lib/libc/sys/t_gettimeofday.c
79
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_gettimeofday.c
82
ATF_TP_ADD_TC(tp, gettimeofday_err);
tests/lib/libc/sys/t_gettimeofday.c
83
ATF_TP_ADD_TC(tp, gettimeofday_mono);
tests/lib/libc/sys/t_issetugid.c
139
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_issetugid.c
142
ATF_TP_ADD_TC(tp, issetugid_egid);
tests/lib/libc/sys/t_issetugid.c
143
ATF_TP_ADD_TC(tp, issetugid_euid);
tests/lib/libc/sys/t_issetugid.c
144
ATF_TP_ADD_TC(tp, issetugid_rgid);
tests/lib/libc/sys/t_issetugid.c
145
ATF_TP_ADD_TC(tp, issetugid_ruid);
tests/lib/libc/sys/t_kevent.c
210
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_kevent.c
213
ATF_TP_ADD_TC(tp, kevent_zerotimer);
tests/lib/libc/sys/t_kevent.c
214
ATF_TP_ADD_TC(tp, kqueue_desc_passing);
tests/lib/libc/sys/t_kevent.c
215
ATF_TP_ADD_TC(tp, kqueue_unsupported_fd);
tests/lib/libc/sys/t_kevent.c
216
ATF_TP_ADD_TC(tp, kqueue_EVFILT_USER);
tests/lib/libc/sys/t_kill.c
314
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_kill.c
317
ATF_TP_ADD_TC(tp, kill_basic);
tests/lib/libc/sys/t_kill.c
318
ATF_TP_ADD_TC(tp, kill_err);
tests/lib/libc/sys/t_kill.c
319
ATF_TP_ADD_TC(tp, kill_perm);
tests/lib/libc/sys/t_kill.c
320
ATF_TP_ADD_TC(tp, kill_pgrp_neg);
tests/lib/libc/sys/t_kill.c
321
ATF_TP_ADD_TC(tp, kill_pgrp_zero);
tests/lib/libc/sys/t_kill.c
322
ATF_TP_ADD_TC(tp, kill_int_min);
tests/lib/libc/sys/t_link.c
221
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_link.c
224
ATF_TP_ADD_TC(tp, link_count);
tests/lib/libc/sys/t_link.c
225
ATF_TP_ADD_TC(tp, link_err);
tests/lib/libc/sys/t_link.c
226
ATF_TP_ADD_TC(tp, link_perm);
tests/lib/libc/sys/t_link.c
227
ATF_TP_ADD_TC(tp, link_stat);
tests/lib/libc/sys/t_listen.c
129
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_listen.c
132
ATF_TP_ADD_TC(tp, listen_err);
tests/lib/libc/sys/t_listen.c
133
ATF_TP_ADD_TC(tp, listen_low_port);
tests/lib/libc/sys/t_lwp_create.c
230
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_lwp_create.c
232
ATF_TP_ADD_TC(tp, lwp_create_works);
tests/lib/libc/sys/t_lwp_create.c
233
ATF_TP_ADD_TC(tp, lwp_create_bad_lid_ptr);
tests/lib/libc/sys/t_lwp_create.c
234
ATF_TP_ADD_TC(tp, lwp_create_generic_fail_no_uc_cpu);
tests/lib/libc/sys/t_lwp_create.c
236
ATF_TP_ADD_TC(tp, lwp_create_alpha_fail_pslset);
tests/lib/libc/sys/t_lwp_create.c
237
ATF_TP_ADD_TC(tp, lwp_create_alpha_fail_pslclr);
tests/lib/libc/sys/t_lwp_create.c
240
ATF_TP_ADD_TC(tp, lwp_create_amd64_fail_untouchable_rflags);
tests/lib/libc/sys/t_lwp_create.c
241
ATF_TP_ADD_TC(tp, lwp_create_amd64_fail_pc_too_high);
tests/lib/libc/sys/t_lwp_create.c
244
ATF_TP_ADD_TC(tp, lwp_create_arm_fail_invalid_mode);
tests/lib/libc/sys/t_lwp_create.c
247
ATF_TP_ADD_TC(tp, lwp_create_hppa_fail_invalid_1);
tests/lib/libc/sys/t_lwp_create.c
248
ATF_TP_ADD_TC(tp, lwp_create_hppa_fail_invalid_0);
tests/lib/libc/sys/t_lwp_create.c
251
ATF_TP_ADD_TC(tp, lwp_create_i386_fail_untouchable_eflags);
tests/lib/libc/sys/t_lwp_create.c
252
ATF_TP_ADD_TC(tp, lwp_create_i386_fail_priv_escalation);
tests/lib/libc/sys/t_lwp_create.c
255
ATF_TP_ADD_TC(tp, lwp_create_m68k_fail_invalid_ps_bits);
tests/lib/libc/sys/t_lwp_create.c
258
ATF_TP_ADD_TC(tp, lwp_create_sh3_fail_modify_userstatic);
tests/lib/libc/sys/t_lwp_create.c
261
ATF_TP_ADD_TC(tp, lwp_create_sparc_fail_pc_odd);
tests/lib/libc/sys/t_lwp_create.c
262
ATF_TP_ADD_TC(tp, lwp_create_sparc_fail_npc_odd);
tests/lib/libc/sys/t_lwp_create.c
263
ATF_TP_ADD_TC(tp, lwp_create_sparc_fail_pc_null);
tests/lib/libc/sys/t_lwp_create.c
264
ATF_TP_ADD_TC(tp, lwp_create_sparc_fail_npc_null);
tests/lib/libc/sys/t_lwp_create.c
267
ATF_TP_ADD_TC(tp, lwp_create_vax_fail_psl_0);
tests/lib/libc/sys/t_lwp_create.c
268
ATF_TP_ADD_TC(tp, lwp_create_vax_fail_psl_1);
tests/lib/libc/sys/t_lwp_create.c
269
ATF_TP_ADD_TC(tp, lwp_create_vax_fail_psl_cm);
tests/lib/libc/sys/t_lwp_ctl.c
69
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_lwp_ctl.c
71
ATF_TP_ADD_TC(tp, lwpctl_counter);
tests/lib/libc/sys/t_mincore.c
353
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_mincore.c
359
ATF_TP_ADD_TC(tp, mincore_err);
tests/lib/libc/sys/t_mincore.c
360
ATF_TP_ADD_TC(tp, mincore_resid);
tests/lib/libc/sys/t_mincore.c
361
ATF_TP_ADD_TC(tp, mincore_shmseg);
tests/lib/libc/sys/t_minherit.c
188
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_minherit.c
193
ATF_TP_ADD_TC(tp, minherit_copy);
tests/lib/libc/sys/t_minherit.c
194
ATF_TP_ADD_TC(tp, minherit_share);
tests/lib/libc/sys/t_minherit.c
195
ATF_TP_ADD_TC(tp, minherit_none);
tests/lib/libc/sys/t_minherit.c
196
ATF_TP_ADD_TC(tp, minherit_zero);
tests/lib/libc/sys/t_minherit.c
197
ATF_TP_ADD_TC(tp, minherit_bad);
tests/lib/libc/sys/t_mkdir.c
201
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_mkdir.c
204
ATF_TP_ADD_TC(tp, mkdir_err);
tests/lib/libc/sys/t_mkdir.c
205
ATF_TP_ADD_TC(tp, mkdir_perm);
tests/lib/libc/sys/t_mkdir.c
206
ATF_TP_ADD_TC(tp, mkdir_mode);
tests/lib/libc/sys/t_mkdir.c
207
ATF_TP_ADD_TC(tp, mkdir_trail);
tests/lib/libc/sys/t_mkfifo.c
294
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_mkfifo.c
297
ATF_TP_ADD_TC(tp, mkfifo_block);
tests/lib/libc/sys/t_mkfifo.c
298
ATF_TP_ADD_TC(tp, mkfifo_err);
tests/lib/libc/sys/t_mkfifo.c
299
ATF_TP_ADD_TC(tp, mkfifo_nonblock);
tests/lib/libc/sys/t_mkfifo.c
300
ATF_TP_ADD_TC(tp, mkfifo_perm);
tests/lib/libc/sys/t_mkfifo.c
301
ATF_TP_ADD_TC(tp, mkfifo_stat);
tests/lib/libc/sys/t_mkfifo.c
302
ATF_TP_ADD_TC(tp, mknod_s_ififo);
tests/lib/libc/sys/t_mknod.c
183
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_mknod.c
186
ATF_TP_ADD_TC(tp, mknod_err);
tests/lib/libc/sys/t_mknod.c
187
ATF_TP_ADD_TC(tp, mknod_exist);
tests/lib/libc/sys/t_mknod.c
188
ATF_TP_ADD_TC(tp, mknod_perm);
tests/lib/libc/sys/t_mknod.c
189
ATF_TP_ADD_TC(tp, mknod_stat);
tests/lib/libc/sys/t_mlock.c
301
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_mlock.c
307
ATF_TP_ADD_TC(tp, mlock_clip);
tests/lib/libc/sys/t_mlock.c
308
ATF_TP_ADD_TC(tp, mlock_err);
tests/lib/libc/sys/t_mlock.c
309
ATF_TP_ADD_TC(tp, mlock_limits);
tests/lib/libc/sys/t_mlock.c
310
ATF_TP_ADD_TC(tp, mlock_mmap);
tests/lib/libc/sys/t_mlock.c
311
ATF_TP_ADD_TC(tp, mlock_nested);
tests/lib/libc/sys/t_mmap.c
687
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_mmap.c
692
ATF_TP_ADD_TC(tp, mmap_block);
tests/lib/libc/sys/t_mmap.c
693
ATF_TP_ADD_TC(tp, mmap_err);
tests/lib/libc/sys/t_mmap.c
694
ATF_TP_ADD_TC(tp, mmap_loan);
tests/lib/libc/sys/t_mmap.c
695
ATF_TP_ADD_TC(tp, mmap_prot_1);
tests/lib/libc/sys/t_mmap.c
696
ATF_TP_ADD_TC(tp, mmap_prot_2);
tests/lib/libc/sys/t_mmap.c
697
ATF_TP_ADD_TC(tp, mmap_prot_3);
tests/lib/libc/sys/t_mmap.c
698
ATF_TP_ADD_TC(tp, mmap_reprotect_race);
tests/lib/libc/sys/t_mmap.c
699
ATF_TP_ADD_TC(tp, mmap_truncate);
tests/lib/libc/sys/t_mmap.c
700
ATF_TP_ADD_TC(tp, mmap_truncate_signal);
tests/lib/libc/sys/t_mmap.c
701
ATF_TP_ADD_TC(tp, mmap_va0);
tests/lib/libc/sys/t_mmap.c
702
ATF_TP_ADD_TC(tp, mmap_hint);
tests/lib/libc/sys/t_mprotect.c
441
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_mprotect.c
446
ATF_TP_ADD_TC(tp, mprotect_access);
tests/lib/libc/sys/t_mprotect.c
447
ATF_TP_ADD_TC(tp, mprotect_err);
tests/lib/libc/sys/t_mprotect.c
448
ATF_TP_ADD_TC(tp, mprotect_exec);
tests/lib/libc/sys/t_mprotect.c
449
ATF_TP_ADD_TC(tp, mprotect_pax);
tests/lib/libc/sys/t_mprotect.c
450
ATF_TP_ADD_TC(tp, mprotect_write);
tests/lib/libc/sys/t_mprotect.c
451
ATF_TP_ADD_TC(tp, mprotect_mremap_exec);
tests/lib/libc/sys/t_mprotect.c
452
ATF_TP_ADD_TC(tp, mprotect_mremap_fork_exec);
tests/lib/libc/sys/t_msgctl.c
387
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_msgctl.c
391
ATF_TP_ADD_TC(tp, msgctl_query);
tests/lib/libc/sys/t_msgctl.c
393
ATF_TP_ADD_TC(tp, msgctl_err);
tests/lib/libc/sys/t_msgctl.c
394
ATF_TP_ADD_TC(tp, msgctl_perm);
tests/lib/libc/sys/t_msgctl.c
395
ATF_TP_ADD_TC(tp, msgctl_pid);
tests/lib/libc/sys/t_msgctl.c
396
ATF_TP_ADD_TC(tp, msgctl_set);
tests/lib/libc/sys/t_msgctl.c
397
ATF_TP_ADD_TC(tp, msgctl_time);
tests/lib/libc/sys/t_msgget.c
318
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_msgget.c
322
ATF_TP_ADD_TC(tp, msgget_query);
tests/lib/libc/sys/t_msgget.c
324
ATF_TP_ADD_TC(tp, msgget_excl);
tests/lib/libc/sys/t_msgget.c
325
ATF_TP_ADD_TC(tp, msgget_exit);
tests/lib/libc/sys/t_msgget.c
326
ATF_TP_ADD_TC(tp, msgget_init);
tests/lib/libc/sys/t_msgget.c
327
ATF_TP_ADD_TC(tp, msgget_limit);
tests/lib/libc/sys/t_msgget.c
328
ATF_TP_ADD_TC(tp, msgget_mode);
tests/lib/libc/sys/t_msgrcv.c
369
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_msgrcv.c
373
ATF_TP_ADD_TC(tp, msgrcv_query);
tests/lib/libc/sys/t_msgrcv.c
375
ATF_TP_ADD_TC(tp, msgrcv_basic);
tests/lib/libc/sys/t_msgrcv.c
376
ATF_TP_ADD_TC(tp, msgrcv_block);
tests/lib/libc/sys/t_msgrcv.c
377
ATF_TP_ADD_TC(tp, msgrcv_err);
tests/lib/libc/sys/t_msgrcv.c
378
ATF_TP_ADD_TC(tp, msgrcv_mtype);
tests/lib/libc/sys/t_msgrcv.c
379
ATF_TP_ADD_TC(tp, msgrcv_nonblock);
tests/lib/libc/sys/t_msgrcv.c
380
ATF_TP_ADD_TC(tp, msgrcv_truncate);
tests/lib/libc/sys/t_msgsnd.c
366
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_msgsnd.c
370
ATF_TP_ADD_TC(tp, msgsnd_query);
tests/lib/libc/sys/t_msgsnd.c
372
ATF_TP_ADD_TC(tp, msgsnd_block);
tests/lib/libc/sys/t_msgsnd.c
373
ATF_TP_ADD_TC(tp, msgsnd_count);
tests/lib/libc/sys/t_msgsnd.c
374
ATF_TP_ADD_TC(tp, msgsnd_err);
tests/lib/libc/sys/t_msgsnd.c
375
ATF_TP_ADD_TC(tp, msgsnd_nonblock);
tests/lib/libc/sys/t_msgsnd.c
376
ATF_TP_ADD_TC(tp, msgsnd_perm);
tests/lib/libc/sys/t_msync.c
210
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_msync.c
218
ATF_TP_ADD_TC(tp, msync_async);
tests/lib/libc/sys/t_msync.c
219
ATF_TP_ADD_TC(tp, msync_err);
tests/lib/libc/sys/t_msync.c
220
ATF_TP_ADD_TC(tp, msync_invalidate);
tests/lib/libc/sys/t_msync.c
221
ATF_TP_ADD_TC(tp, msync_sync);
tests/lib/libc/sys/t_nanosleep.c
179
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_nanosleep.c
182
ATF_TP_ADD_TC(tp, nanosleep_basic);
tests/lib/libc/sys/t_nanosleep.c
183
ATF_TP_ADD_TC(tp, nanosleep_err);
tests/lib/libc/sys/t_nanosleep.c
184
ATF_TP_ADD_TC(tp, nanosleep_sig);
tests/lib/libc/sys/t_pipe.c
159
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_pipe.c
161
ATF_TP_ADD_TC(tp, pipe_restart);
tests/lib/libc/sys/t_pipe2.c
212
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_pipe2.c
215
ATF_TP_ADD_TC(tp, pipe2_basic);
tests/lib/libc/sys/t_pipe2.c
216
ATF_TP_ADD_TC(tp, pipe2_consume);
tests/lib/libc/sys/t_pipe2.c
217
ATF_TP_ADD_TC(tp, pipe2_nonblock);
tests/lib/libc/sys/t_pipe2.c
218
ATF_TP_ADD_TC(tp, pipe2_cloexec);
tests/lib/libc/sys/t_pipe2.c
219
ATF_TP_ADD_TC(tp, pipe2_clofork);
tests/lib/libc/sys/t_pipe2.c
220
ATF_TP_ADD_TC(tp, pipe2_nosigpipe);
tests/lib/libc/sys/t_pipe2.c
221
ATF_TP_ADD_TC(tp, pipe2_einval);
tests/lib/libc/sys/t_poll.c
2087
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_poll.c
2090
ATF_TP_ADD_TC(tp, 3way);
tests/lib/libc/sys/t_poll.c
2091
ATF_TP_ADD_TC(tp, basic);
tests/lib/libc/sys/t_poll.c
2092
ATF_TP_ADD_TC(tp, err);
tests/lib/libc/sys/t_poll.c
2094
ATF_TP_ADD_TC(tp, fifo_inout);
tests/lib/libc/sys/t_poll.c
2095
ATF_TP_ADD_TC(tp, fifo_hup1);
tests/lib/libc/sys/t_poll.c
2096
ATF_TP_ADD_TC(tp, fifo_hup2);
tests/lib/libc/sys/t_poll.c
2098
ATF_TP_ADD_TC(tp, pollclosed_fifo0_immediate_writefull);
tests/lib/libc/sys/t_poll.c
2099
ATF_TP_ADD_TC(tp, pollclosed_fifo1_immediate_writefull);
tests/lib/libc/sys/t_poll.c
2100
ATF_TP_ADD_TC(tp, pollclosed_pipe_immediate_writefull);
tests/lib/libc/sys/t_poll.c
2101
ATF_TP_ADD_TC(tp, pollclosed_ptyapp_immediate_writefull);
tests/lib/libc/sys/t_poll.c
2102
ATF_TP_ADD_TC(tp, pollclosed_ptyhost_immediate_writefull);
tests/lib/libc/sys/t_poll.c
2103
ATF_TP_ADD_TC(tp, pollclosed_socketpair0_immediate_writefull);
tests/lib/libc/sys/t_poll.c
2104
ATF_TP_ADD_TC(tp, pollclosed_socketpair1_immediate_writefull);
tests/lib/libc/sys/t_poll.c
2106
ATF_TP_ADD_TC(tp, pollclosed_fifo0_immediate_writeempty);
tests/lib/libc/sys/t_poll.c
2107
ATF_TP_ADD_TC(tp, pollclosed_fifo1_immediate_writeempty);
tests/lib/libc/sys/t_poll.c
2108
ATF_TP_ADD_TC(tp, pollclosed_pipe_immediate_writeempty);
tests/lib/libc/sys/t_poll.c
2109
ATF_TP_ADD_TC(tp, pollclosed_ptyapp_immediate_writeempty);
tests/lib/libc/sys/t_poll.c
2110
ATF_TP_ADD_TC(tp, pollclosed_ptyhost_immediate_writeempty);
tests/lib/libc/sys/t_poll.c
2111
ATF_TP_ADD_TC(tp, pollclosed_socketpair0_immediate_writeempty);
tests/lib/libc/sys/t_poll.c
2112
ATF_TP_ADD_TC(tp, pollclosed_socketpair1_immediate_writeempty);
tests/lib/libc/sys/t_poll.c
2114
ATF_TP_ADD_TC(tp, pollclosed_fifo0_immediate_readsome);
tests/lib/libc/sys/t_poll.c
2115
ATF_TP_ADD_TC(tp, pollclosed_fifo1_immediate_readsome);
tests/lib/libc/sys/t_poll.c
2116
ATF_TP_ADD_TC(tp, pollclosed_pipe_immediate_readsome);
tests/lib/libc/sys/t_poll.c
2117
ATF_TP_ADD_TC(tp, pollclosed_ptyapp_immediate_readsome);
tests/lib/libc/sys/t_poll.c
2118
ATF_TP_ADD_TC(tp, pollclosed_ptyhost_immediate_readsome);
tests/lib/libc/sys/t_poll.c
2119
ATF_TP_ADD_TC(tp, pollclosed_socketpair0_immediate_readsome);
tests/lib/libc/sys/t_poll.c
2120
ATF_TP_ADD_TC(tp, pollclosed_socketpair1_immediate_readsome);
tests/lib/libc/sys/t_poll.c
2122
ATF_TP_ADD_TC(tp, pollclosed_fifo0_immediate_readnone);
tests/lib/libc/sys/t_poll.c
2123
ATF_TP_ADD_TC(tp, pollclosed_fifo1_immediate_readnone);
tests/lib/libc/sys/t_poll.c
2124
ATF_TP_ADD_TC(tp, pollclosed_pipe_immediate_readnone);
tests/lib/libc/sys/t_poll.c
2125
ATF_TP_ADD_TC(tp, pollclosed_ptyapp_immediate_readnone);
tests/lib/libc/sys/t_poll.c
2126
ATF_TP_ADD_TC(tp, pollclosed_ptyhost_immediate_readnone);
tests/lib/libc/sys/t_poll.c
2127
ATF_TP_ADD_TC(tp, pollclosed_socketpair0_immediate_readnone);
tests/lib/libc/sys/t_poll.c
2128
ATF_TP_ADD_TC(tp, pollclosed_socketpair1_immediate_readnone);
tests/lib/libc/sys/t_poll.c
2130
ATF_TP_ADD_TC(tp, pollclosed_fifo0_delayed_process_write);
tests/lib/libc/sys/t_poll.c
2131
ATF_TP_ADD_TC(tp, pollclosed_fifo1_delayed_process_write);
tests/lib/libc/sys/t_poll.c
2132
ATF_TP_ADD_TC(tp, pollclosed_pipe_delayed_process_write);
tests/lib/libc/sys/t_poll.c
2133
ATF_TP_ADD_TC(tp, pollclosed_ptyapp_delayed_process_write);
tests/lib/libc/sys/t_poll.c
2134
ATF_TP_ADD_TC(tp, pollclosed_ptyhost_delayed_process_write);
tests/lib/libc/sys/t_poll.c
2135
ATF_TP_ADD_TC(tp, pollclosed_socketpair0_delayed_process_write);
tests/lib/libc/sys/t_poll.c
2136
ATF_TP_ADD_TC(tp, pollclosed_socketpair1_delayed_process_write);
tests/lib/libc/sys/t_poll.c
2138
ATF_TP_ADD_TC(tp, pollclosed_fifo0_delayed_process_read);
tests/lib/libc/sys/t_poll.c
2139
ATF_TP_ADD_TC(tp, pollclosed_fifo1_delayed_process_read);
tests/lib/libc/sys/t_poll.c
2140
ATF_TP_ADD_TC(tp, pollclosed_pipe_delayed_process_read);
tests/lib/libc/sys/t_poll.c
2141
ATF_TP_ADD_TC(tp, pollclosed_ptyapp_delayed_process_read);
tests/lib/libc/sys/t_poll.c
2142
ATF_TP_ADD_TC(tp, pollclosed_ptyhost_delayed_process_read);
tests/lib/libc/sys/t_poll.c
2143
ATF_TP_ADD_TC(tp, pollclosed_socketpair0_delayed_process_read);
tests/lib/libc/sys/t_poll.c
2144
ATF_TP_ADD_TC(tp, pollclosed_socketpair1_delayed_process_read);
tests/lib/libc/sys/t_poll.c
2146
ATF_TP_ADD_TC(tp, pollclosed_fifo0_delayed_thread_write);
tests/lib/libc/sys/t_poll.c
2147
ATF_TP_ADD_TC(tp, pollclosed_fifo1_delayed_thread_write);
tests/lib/libc/sys/t_poll.c
2148
ATF_TP_ADD_TC(tp, pollclosed_pipe_delayed_thread_write);
tests/lib/libc/sys/t_poll.c
2149
ATF_TP_ADD_TC(tp, pollclosed_ptyapp_delayed_thread_write);
tests/lib/libc/sys/t_poll.c
2150
ATF_TP_ADD_TC(tp, pollclosed_ptyhost_delayed_thread_write);
tests/lib/libc/sys/t_poll.c
2151
ATF_TP_ADD_TC(tp, pollclosed_socketpair0_delayed_thread_write);
tests/lib/libc/sys/t_poll.c
2152
ATF_TP_ADD_TC(tp, pollclosed_socketpair1_delayed_thread_write);
tests/lib/libc/sys/t_poll.c
2154
ATF_TP_ADD_TC(tp, pollclosed_fifo0_delayed_thread_read);
tests/lib/libc/sys/t_poll.c
2155
ATF_TP_ADD_TC(tp, pollclosed_fifo1_delayed_thread_read);
tests/lib/libc/sys/t_poll.c
2156
ATF_TP_ADD_TC(tp, pollclosed_pipe_delayed_thread_read);
tests/lib/libc/sys/t_poll.c
2157
ATF_TP_ADD_TC(tp, pollclosed_ptyapp_delayed_thread_read);
tests/lib/libc/sys/t_poll.c
2158
ATF_TP_ADD_TC(tp, pollclosed_ptyhost_delayed_thread_read);
tests/lib/libc/sys/t_poll.c
2159
ATF_TP_ADD_TC(tp, pollclosed_socketpair0_delayed_thread_read);
tests/lib/libc/sys/t_poll.c
2160
ATF_TP_ADD_TC(tp, pollclosed_socketpair1_delayed_thread_read);
tests/lib/libc/sys/t_pollts.c
193
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_pollts.c
196
ATF_TP_ADD_TC(tp, basic);
tests/lib/libc/sys/t_pollts.c
197
ATF_TP_ADD_TC(tp, err);
tests/lib/libc/sys/t_pollts.c
198
ATF_TP_ADD_TC(tp, sigmask);
tests/lib/libc/sys/t_posix_fadvise.c
156
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_posix_fadvise.c
158
ATF_TP_ADD_TC(tp, posix_fadvise);
tests/lib/libc/sys/t_posix_fadvise.c
159
ATF_TP_ADD_TC(tp, posix_fadvise_reg);
tests/lib/libc/sys/t_posix_fallocate.c
59
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_posix_fallocate.c
61
ATF_TP_ADD_TC(tp, ebadf);
tests/lib/libc/sys/t_ptrace.c
233
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_ptrace.c
237
ATF_TP_ADD_TC(tp, attach_pid0);
tests/lib/libc/sys/t_ptrace.c
238
ATF_TP_ADD_TC(tp, attach_pid1);
tests/lib/libc/sys/t_ptrace.c
239
ATF_TP_ADD_TC(tp, attach_pid1_securelevel);
tests/lib/libc/sys/t_ptrace.c
240
ATF_TP_ADD_TC(tp, attach_self);
tests/lib/libc/sys/t_ptrace.c
241
ATF_TP_ADD_TC(tp, attach_chroot);
tests/lib/libc/sys/t_ptrace.c
242
ATF_TP_ADD_TC(tp, traceme_twice);
tests/lib/libc/sys/t_ptrace_amd64_wait.h
117
ATF_TP_ADD_TC_HAVE_GPREGS(tp, x86_64_regs1);
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
848
ATF_TP_ADD_TC(tp, bytes_transfer_piod_read_d_8); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
849
ATF_TP_ADD_TC(tp, bytes_transfer_piod_read_d_16); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
850
ATF_TP_ADD_TC(tp, bytes_transfer_piod_read_d_32); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
851
ATF_TP_ADD_TC(tp, bytes_transfer_piod_read_d_64); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
852
ATF_TP_ADD_TC(tp, bytes_transfer_piod_read_i_8); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
853
ATF_TP_ADD_TC(tp, bytes_transfer_piod_read_i_16); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
854
ATF_TP_ADD_TC(tp, bytes_transfer_piod_read_i_32); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
855
ATF_TP_ADD_TC(tp, bytes_transfer_piod_read_i_64); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
856
ATF_TP_ADD_TC(tp, bytes_transfer_piod_write_d_8); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
857
ATF_TP_ADD_TC(tp, bytes_transfer_piod_write_d_16); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
858
ATF_TP_ADD_TC(tp, bytes_transfer_piod_write_d_32); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
859
ATF_TP_ADD_TC(tp, bytes_transfer_piod_write_d_64); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
860
ATF_TP_ADD_TC(tp, bytes_transfer_piod_write_i_8); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
861
ATF_TP_ADD_TC(tp, bytes_transfer_piod_write_i_16); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
862
ATF_TP_ADD_TC(tp, bytes_transfer_piod_write_i_32); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
863
ATF_TP_ADD_TC(tp, bytes_transfer_piod_write_i_64); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
864
ATF_TP_ADD_TC(tp, bytes_transfer_read_d); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
865
ATF_TP_ADD_TC(tp, bytes_transfer_read_i); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
866
ATF_TP_ADD_TC(tp, bytes_transfer_write_d); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
867
ATF_TP_ADD_TC(tp, bytes_transfer_write_i); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
868
ATF_TP_ADD_TC(tp, bytes_transfer_piod_read_d_8_text); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
869
ATF_TP_ADD_TC(tp, bytes_transfer_piod_read_d_16_text); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
870
ATF_TP_ADD_TC(tp, bytes_transfer_piod_read_d_32_text); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
871
ATF_TP_ADD_TC(tp, bytes_transfer_piod_read_d_64_text); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
872
ATF_TP_ADD_TC(tp, bytes_transfer_piod_read_i_8_text); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
873
ATF_TP_ADD_TC(tp, bytes_transfer_piod_read_i_16_text); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
874
ATF_TP_ADD_TC(tp, bytes_transfer_piod_read_i_32_text); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
875
ATF_TP_ADD_TC(tp, bytes_transfer_piod_read_i_64_text); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
876
ATF_TP_ADD_TC(tp, bytes_transfer_piod_write_d_8_text); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
877
ATF_TP_ADD_TC(tp, bytes_transfer_piod_write_d_16_text); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
878
ATF_TP_ADD_TC(tp, bytes_transfer_piod_write_d_32_text); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
879
ATF_TP_ADD_TC(tp, bytes_transfer_piod_write_d_64_text); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
880
ATF_TP_ADD_TC(tp, bytes_transfer_piod_write_i_8_text); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
881
ATF_TP_ADD_TC(tp, bytes_transfer_piod_write_i_16_text); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
882
ATF_TP_ADD_TC(tp, bytes_transfer_piod_write_i_32_text); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
883
ATF_TP_ADD_TC(tp, bytes_transfer_piod_write_i_64_text); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
884
ATF_TP_ADD_TC(tp, bytes_transfer_read_d_text); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
885
ATF_TP_ADD_TC(tp, bytes_transfer_read_i_text); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
886
ATF_TP_ADD_TC(tp, bytes_transfer_write_d_text); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
887
ATF_TP_ADD_TC(tp, bytes_transfer_write_i_text); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
888
ATF_TP_ADD_TC(tp, bytes_transfer_piod_read_auxv); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
889
ATF_TP_ADD_TC(tp, bytes_transfer_alignment_pt_read_i); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
890
ATF_TP_ADD_TC(tp, bytes_transfer_alignment_pt_read_d); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
891
ATF_TP_ADD_TC(tp, bytes_transfer_alignment_pt_write_i); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
892
ATF_TP_ADD_TC(tp, bytes_transfer_alignment_pt_write_d); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
893
ATF_TP_ADD_TC(tp, bytes_transfer_alignment_piod_read_i); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
894
ATF_TP_ADD_TC(tp, bytes_transfer_alignment_piod_read_d); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
895
ATF_TP_ADD_TC(tp, bytes_transfer_alignment_piod_write_i); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
896
ATF_TP_ADD_TC(tp, bytes_transfer_alignment_piod_write_d); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
897
ATF_TP_ADD_TC(tp, bytes_transfer_alignment_piod_read_auxv); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
898
ATF_TP_ADD_TC(tp, bytes_transfer_eof_pt_read_i); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
899
ATF_TP_ADD_TC(tp, bytes_transfer_eof_pt_read_d); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
900
ATF_TP_ADD_TC(tp, bytes_transfer_eof_pt_write_i); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
901
ATF_TP_ADD_TC(tp, bytes_transfer_eof_pt_write_d); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
902
ATF_TP_ADD_TC(tp, bytes_transfer_eof_piod_read_i); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
903
ATF_TP_ADD_TC(tp, bytes_transfer_eof_piod_read_d); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
904
ATF_TP_ADD_TC(tp, bytes_transfer_eof_piod_write_i); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
905
ATF_TP_ADD_TC(tp, bytes_transfer_eof_piod_write_d);
tests/lib/libc/sys/t_ptrace_clone_wait.h
761
ATF_TP_ADD_TC(tp, clone1); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
762
ATF_TP_ADD_TC_HAVE_PID(tp, clone2); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
763
ATF_TP_ADD_TC_HAVE_PID(tp, clone3); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
764
ATF_TP_ADD_TC_HAVE_PID(tp, clone4); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
765
ATF_TP_ADD_TC(tp, clone5); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
766
ATF_TP_ADD_TC_HAVE_PID(tp, clone6); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
767
ATF_TP_ADD_TC_HAVE_PID(tp, clone7); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
768
ATF_TP_ADD_TC_HAVE_PID(tp, clone8); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
769
ATF_TP_ADD_TC(tp, clone_vm1); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
770
ATF_TP_ADD_TC_HAVE_PID(tp, clone_vm2); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
771
ATF_TP_ADD_TC_HAVE_PID(tp, clone_vm3); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
772
ATF_TP_ADD_TC_HAVE_PID(tp, clone_vm4); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
773
ATF_TP_ADD_TC(tp, clone_vm5); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
774
ATF_TP_ADD_TC_HAVE_PID(tp, clone_vm6); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
775
ATF_TP_ADD_TC_HAVE_PID(tp, clone_vm7); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
776
ATF_TP_ADD_TC_HAVE_PID(tp, clone_vm8); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
777
ATF_TP_ADD_TC(tp, clone_fs1); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
778
ATF_TP_ADD_TC_HAVE_PID(tp, clone_fs2); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
779
ATF_TP_ADD_TC_HAVE_PID(tp, clone_fs3); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
780
ATF_TP_ADD_TC_HAVE_PID(tp, clone_fs4); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
781
ATF_TP_ADD_TC(tp, clone_fs5); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
782
ATF_TP_ADD_TC_HAVE_PID(tp, clone_fs6); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
783
ATF_TP_ADD_TC_HAVE_PID(tp, clone_fs7); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
784
ATF_TP_ADD_TC_HAVE_PID(tp, clone_fs8); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
785
ATF_TP_ADD_TC(tp, clone_files1); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
786
ATF_TP_ADD_TC_HAVE_PID(tp, clone_files2); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
787
ATF_TP_ADD_TC_HAVE_PID(tp, clone_files3); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
788
ATF_TP_ADD_TC_HAVE_PID(tp, clone_files4); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
789
ATF_TP_ADD_TC(tp, clone_files5); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
790
ATF_TP_ADD_TC_HAVE_PID(tp, clone_files6); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
791
ATF_TP_ADD_TC_HAVE_PID(tp, clone_files7); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
792
ATF_TP_ADD_TC_HAVE_PID(tp, clone_files8); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
793
ATF_TP_ADD_TC(tp, clone_vfork1); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
794
ATF_TP_ADD_TC_HAVE_PID(tp, clone_vfork2); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
795
ATF_TP_ADD_TC_HAVE_PID(tp, clone_vfork3); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
796
ATF_TP_ADD_TC_HAVE_PID(tp, clone_vfork4); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
797
ATF_TP_ADD_TC(tp, clone_vfork5); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
798
ATF_TP_ADD_TC_HAVE_PID(tp, clone_vfork6); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
799
ATF_TP_ADD_TC_HAVE_PID(tp, clone_vfork7); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
800
ATF_TP_ADD_TC_HAVE_PID(tp, clone_vfork8); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
801
ATF_TP_ADD_TC_HAVE_PID(tp, clone_signalignored); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
802
ATF_TP_ADD_TC_HAVE_PID(tp, clone_signalmasked); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
803
ATF_TP_ADD_TC_HAVE_PID(tp, clone_vm_signalignored); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
804
ATF_TP_ADD_TC_HAVE_PID(tp, clone_vm_signalmasked); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
805
ATF_TP_ADD_TC_HAVE_PID(tp, clone_fs_signalignored); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
806
ATF_TP_ADD_TC_HAVE_PID(tp, clone_fs_signalmasked); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
807
ATF_TP_ADD_TC_HAVE_PID(tp, clone_files_signalignored); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
808
ATF_TP_ADD_TC_HAVE_PID(tp, clone_files_signalmasked); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
809
ATF_TP_ADD_TC_HAVE_PID(tp, clone_vfork_signalignored); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
810
ATF_TP_ADD_TC_HAVE_PID(tp, clone_vfork_signalmasked); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
811
ATF_TP_ADD_TC_HAVE_PID(tp, traceme_vfork_clone); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
812
ATF_TP_ADD_TC_HAVE_PID(tp, traceme_vfork_clone_vm); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
813
ATF_TP_ADD_TC_HAVE_PID(tp, traceme_vfork_clone_fs); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
814
ATF_TP_ADD_TC_HAVE_PID(tp, traceme_vfork_clone_files); \
tests/lib/libc/sys/t_ptrace_clone_wait.h
815
ATF_TP_ADD_TC_HAVE_PID(tp, traceme_vfork_clone_vfork);
tests/lib/libc/sys/t_ptrace_core_wait.h
239
ATF_TP_ADD_TC(tp, core_dump_procinfo);
tests/lib/libc/sys/t_ptrace_eventmask_wait.h
105
ATF_TP_ADD_TC(tp, eventmask_preserved_empty); \
tests/lib/libc/sys/t_ptrace_eventmask_wait.h
106
ATF_TP_ADD_TC(tp, eventmask_preserved_fork); \
tests/lib/libc/sys/t_ptrace_eventmask_wait.h
107
ATF_TP_ADD_TC(tp, eventmask_preserved_vfork); \
tests/lib/libc/sys/t_ptrace_eventmask_wait.h
108
ATF_TP_ADD_TC(tp, eventmask_preserved_vfork_done); \
tests/lib/libc/sys/t_ptrace_eventmask_wait.h
109
ATF_TP_ADD_TC(tp, eventmask_preserved_lwp_create); \
tests/lib/libc/sys/t_ptrace_eventmask_wait.h
110
ATF_TP_ADD_TC(tp, eventmask_preserved_lwp_exit); \
tests/lib/libc/sys/t_ptrace_eventmask_wait.h
111
ATF_TP_ADD_TC(tp, eventmask_preserved_posix_spawn);
tests/lib/libc/sys/t_ptrace_exec_wait.h
321
ATF_TP_ADD_TC(tp, traceme_vfork_exec); \
tests/lib/libc/sys/t_ptrace_exec_wait.h
322
ATF_TP_ADD_TC(tp, traceme_vfork_signalmasked_exec); \
tests/lib/libc/sys/t_ptrace_exec_wait.h
323
ATF_TP_ADD_TC(tp, traceme_vfork_signalignored_exec); \
tests/lib/libc/sys/t_ptrace_exec_wait.h
324
ATF_TP_ADD_TC(tp, traceme_exec); \
tests/lib/libc/sys/t_ptrace_exec_wait.h
325
ATF_TP_ADD_TC(tp, traceme_signalmasked_exec); \
tests/lib/libc/sys/t_ptrace_exec_wait.h
326
ATF_TP_ADD_TC(tp, traceme_signalignored_exec);
tests/lib/libc/sys/t_ptrace_fork_wait.h
1660
ATF_TP_ADD_TC(tp, fork1); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1661
ATF_TP_ADD_TC_HAVE_PID(tp, fork2); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1662
ATF_TP_ADD_TC_HAVE_PID(tp, fork3); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1663
ATF_TP_ADD_TC_HAVE_PID(tp, fork4); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1664
ATF_TP_ADD_TC(tp, fork5); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1665
ATF_TP_ADD_TC_HAVE_PID(tp, fork6); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1666
ATF_TP_ADD_TC_HAVE_PID(tp, fork7); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1667
ATF_TP_ADD_TC_HAVE_PID(tp, fork8); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1668
ATF_TP_ADD_TC(tp, fork9); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1669
ATF_TP_ADD_TC_HAVE_PID(tp, fork10); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1670
ATF_TP_ADD_TC_HAVE_PID(tp, fork11); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1671
ATF_TP_ADD_TC_HAVE_PID(tp, fork12); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1672
ATF_TP_ADD_TC(tp, fork13); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1673
ATF_TP_ADD_TC_HAVE_PID(tp, fork14); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1674
ATF_TP_ADD_TC_HAVE_PID(tp, fork15); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1675
ATF_TP_ADD_TC_HAVE_PID(tp, fork16); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1676
ATF_TP_ADD_TC_HAVE_PID(tp, fork_setpgid); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1677
ATF_TP_ADD_TC(tp, vfork1); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1678
ATF_TP_ADD_TC_HAVE_PID(tp, vfork2); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1679
ATF_TP_ADD_TC_HAVE_PID(tp, vfork3); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1680
ATF_TP_ADD_TC_HAVE_PID(tp, vfork4); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1681
ATF_TP_ADD_TC(tp, vfork5); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1682
ATF_TP_ADD_TC_HAVE_PID(tp, vfork6); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1683
ATF_TP_ADD_TC_HAVE_PID(tp, vfork7); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1684
ATF_TP_ADD_TC_HAVE_PID(tp, vfork8); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1685
ATF_TP_ADD_TC(tp, vfork9); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1686
ATF_TP_ADD_TC_HAVE_PID(tp, vfork10); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1687
ATF_TP_ADD_TC_HAVE_PID(tp, vfork11); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1688
ATF_TP_ADD_TC_HAVE_PID(tp, vfork12); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1689
ATF_TP_ADD_TC(tp, vfork13); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1690
ATF_TP_ADD_TC_HAVE_PID(tp, vfork14); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1691
ATF_TP_ADD_TC_HAVE_PID(tp, vfork15); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1692
ATF_TP_ADD_TC_HAVE_PID(tp, vfork16); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1693
ATF_TP_ADD_TC_HAVE_PID(tp, vfork_setpgid); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1694
ATF_TP_ADD_TC(tp, posix_spawn1); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1695
ATF_TP_ADD_TC(tp, posix_spawn2); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1696
ATF_TP_ADD_TC(tp, posix_spawn3); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1697
ATF_TP_ADD_TC(tp, posix_spawn4); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1698
ATF_TP_ADD_TC(tp, posix_spawn5); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1699
ATF_TP_ADD_TC(tp, posix_spawn6); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1700
ATF_TP_ADD_TC(tp, posix_spawn7); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1701
ATF_TP_ADD_TC(tp, posix_spawn8); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1702
ATF_TP_ADD_TC_HAVE_PID(tp, posix_spawn9); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1703
ATF_TP_ADD_TC_HAVE_PID(tp, posix_spawn10); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1704
ATF_TP_ADD_TC_HAVE_PID(tp, posix_spawn11); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1705
ATF_TP_ADD_TC_HAVE_PID(tp, posix_spawn12); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1706
ATF_TP_ADD_TC_HAVE_PID(tp, posix_spawn13); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1707
ATF_TP_ADD_TC_HAVE_PID(tp, posix_spawn14); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1708
ATF_TP_ADD_TC_HAVE_PID(tp, posix_spawn15); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1709
ATF_TP_ADD_TC_HAVE_PID(tp, posix_spawn16); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1710
ATF_TP_ADD_TC_HAVE_PID(tp, posix_spawn_setpgid); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1711
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_fork1); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1712
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_fork2); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1713
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_fork3); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1714
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_fork4); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1715
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_fork5); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1716
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_fork6); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1717
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_fork7); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1718
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_fork8); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1719
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_fork9); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1720
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_fork10); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1721
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_fork11); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1722
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_fork12); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1723
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_fork13); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1724
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_fork14); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1725
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_fork15); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1726
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_fork16); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1727
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_fork_setpgid); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1728
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_vfork1); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1729
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_vfork2); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1730
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_vfork3); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1731
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_vfork4); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1732
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_vfork5); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1733
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_vfork6); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1734
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_vfork7); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1735
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_vfork8); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1736
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_vfork9); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1737
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_vfork10); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1738
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_vfork11); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1739
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_vfork12); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1740
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_vfork13); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1741
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_vfork14); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1742
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_vfork15); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1743
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_vfork16); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1744
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_vfork_setpgid); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1745
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_posix_spawn1); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1746
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_posix_spawn2); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1747
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_posix_spawn3); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1748
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_posix_spawn4); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1749
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_posix_spawn5); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1750
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_posix_spawn6); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1751
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_posix_spawn7); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1752
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_posix_spawn8); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1753
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_posix_spawn9); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1754
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_posix_spawn10); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1755
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_posix_spawn11); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1756
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_posix_spawn12); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1757
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_posix_spawn13); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1758
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_posix_spawn14); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1759
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_posix_spawn15); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1760
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_posix_spawn16); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1761
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_posix_spawn_setpgid); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1762
ATF_TP_ADD_TC_HAVE_PID(tp, posix_spawn_detach_spawner); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1763
ATF_TP_ADD_TC_HAVE_PID(tp, fork_detach_forker); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1764
ATF_TP_ADD_TC_HAVE_PID(tp, vfork_detach_vforker); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1765
ATF_TP_ADD_TC_HAVE_PID(tp, vfork_detach_vforkerdone); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1766
ATF_TP_ADD_TC_HAVE_PID(tp, posix_spawn_kill_spawner); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1767
ATF_TP_ADD_TC_HAVE_PID(tp, fork_kill_forker); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1768
ATF_TP_ADD_TC_HAVE_PID(tp, vfork_kill_vforker); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1769
ATF_TP_ADD_TC_HAVE_PID(tp, vfork_kill_vforkerdone); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1770
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_posix_spawn_detach_spawner); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1771
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_fork_detach_forker); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1772
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_vfork_detach_vforker); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1773
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_vfork_detach_vforkerdone); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1774
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_posix_spawn_kill_spawner); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1775
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_fork_kill_forker); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1776
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_vfork_kill_vforker); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1777
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_vfork_kill_vforkerdone); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1778
ATF_TP_ADD_TC(tp, traceme_vfork_fork); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1779
ATF_TP_ADD_TC(tp, traceme_vfork_vfork); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1780
ATF_TP_ADD_TC_HAVE_PID(tp, posix_spawn_signalmasked); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1781
ATF_TP_ADD_TC_HAVE_PID(tp, posix_spawn_signalignored); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1782
ATF_TP_ADD_TC_HAVE_PID(tp, fork_signalmasked); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1783
ATF_TP_ADD_TC_HAVE_PID(tp, fork_signalignored); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1784
ATF_TP_ADD_TC_HAVE_PID(tp, vfork_signalmasked); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1785
ATF_TP_ADD_TC_HAVE_PID(tp, vfork_signalignored); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1786
ATF_TP_ADD_TC_HAVE_PID(tp, vforkdone_signalmasked); \
tests/lib/libc/sys/t_ptrace_fork_wait.h
1787
ATF_TP_ADD_TC_HAVE_PID(tp, vforkdone_signalignored);
tests/lib/libc/sys/t_ptrace_i386_wait.h
105
ATF_TP_ADD_TC_HAVE_GPREGS(tp, i386_regs1);
tests/lib/libc/sys/t_ptrace_kill.c
126
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_ptrace_kill.c
128
ATF_TP_ADD_TC(tp, pt_kill);
tests/lib/libc/sys/t_ptrace_kill_wait.h
97
ATF_TP_ADD_TC(tp, kill1); \
tests/lib/libc/sys/t_ptrace_kill_wait.h
98
ATF_TP_ADD_TC(tp, kill2); \
tests/lib/libc/sys/t_ptrace_kill_wait.h
99
ATF_TP_ADD_TC(tp, kill3);
tests/lib/libc/sys/t_ptrace_lwp_wait.h
640
ATF_TP_ADD_TC(tp, traceme_lwpinfo0); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
641
ATF_TP_ADD_TC(tp, traceme_lwpinfo1); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
642
ATF_TP_ADD_TC(tp, traceme_lwpinfo2); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
643
ATF_TP_ADD_TC(tp, traceme_lwpinfo3); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
644
ATF_TP_ADD_TC(tp, traceme_lwpinfo0_lwpstatus); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
645
ATF_TP_ADD_TC(tp, traceme_lwpinfo1_lwpstatus); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
646
ATF_TP_ADD_TC(tp, traceme_lwpinfo2_lwpstatus); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
647
ATF_TP_ADD_TC(tp, traceme_lwpinfo3_lwpstatus); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
648
ATF_TP_ADD_TC(tp, traceme_lwpinfo0_lwpstatus_pl_sigmask); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
649
ATF_TP_ADD_TC(tp, traceme_lwpinfo1_lwpstatus_pl_sigmask); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
650
ATF_TP_ADD_TC(tp, traceme_lwpinfo2_lwpstatus_pl_sigmask); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
651
ATF_TP_ADD_TC(tp, traceme_lwpinfo3_lwpstatus_pl_sigmask); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
652
ATF_TP_ADD_TC(tp, traceme_lwpinfo0_lwpstatus_pl_name); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
653
ATF_TP_ADD_TC(tp, traceme_lwpinfo1_lwpstatus_pl_name); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
654
ATF_TP_ADD_TC(tp, traceme_lwpinfo2_lwpstatus_pl_name); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
655
ATF_TP_ADD_TC(tp, traceme_lwpinfo3_lwpstatus_pl_name); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
656
ATF_TP_ADD_TC(tp, traceme_lwpinfo0_lwpstatus_pl_private); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
657
ATF_TP_ADD_TC(tp, traceme_lwpinfo1_lwpstatus_pl_private); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
658
ATF_TP_ADD_TC(tp, traceme_lwpinfo2_lwpstatus_pl_private); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
659
ATF_TP_ADD_TC(tp, traceme_lwpinfo3_lwpstatus_pl_private); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
660
ATF_TP_ADD_TC(tp, traceme_lwpnext0); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
661
ATF_TP_ADD_TC(tp, traceme_lwpnext1); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
662
ATF_TP_ADD_TC(tp, traceme_lwpnext2); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
663
ATF_TP_ADD_TC(tp, traceme_lwpnext3); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
664
ATF_TP_ADD_TC(tp, traceme_lwpnext0_pl_sigmask); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
665
ATF_TP_ADD_TC(tp, traceme_lwpnext1_pl_sigmask); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
666
ATF_TP_ADD_TC(tp, traceme_lwpnext2_pl_sigmask); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
667
ATF_TP_ADD_TC(tp, traceme_lwpnext3_pl_sigmask); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
668
ATF_TP_ADD_TC(tp, traceme_lwpnext0_pl_name); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
669
ATF_TP_ADD_TC(tp, traceme_lwpnext1_pl_name); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
670
ATF_TP_ADD_TC(tp, traceme_lwpnext2_pl_name); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
671
ATF_TP_ADD_TC(tp, traceme_lwpnext3_pl_name); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
672
ATF_TP_ADD_TC(tp, traceme_lwpnext0_pl_private); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
673
ATF_TP_ADD_TC(tp, traceme_lwpnext1_pl_private); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
674
ATF_TP_ADD_TC(tp, traceme_lwpnext2_pl_private); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
675
ATF_TP_ADD_TC(tp, traceme_lwpnext3_pl_private); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
676
ATF_TP_ADD_TC_HAVE_PID(tp, attach_lwpinfo0); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
677
ATF_TP_ADD_TC_HAVE_PID(tp, attach_lwpinfo1); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
678
ATF_TP_ADD_TC_HAVE_PID(tp, attach_lwpinfo2); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
679
ATF_TP_ADD_TC_HAVE_PID(tp, attach_lwpinfo3);
tests/lib/libc/sys/t_ptrace_misc_wait.h
116
ATF_TP_ADD_TC(tp, user_va0_disable_pt_continue); \
tests/lib/libc/sys/t_ptrace_misc_wait.h
117
ATF_TP_ADD_TC(tp, user_va0_disable_pt_syscall); \
tests/lib/libc/sys/t_ptrace_misc_wait.h
118
ATF_TP_ADD_TC(tp, user_va0_disable_pt_detach);
tests/lib/libc/sys/t_ptrace_register_wait.h
193
ATF_TP_ADD_TC_HAVE_GPREGS(tp, access_regs1); \
tests/lib/libc/sys/t_ptrace_register_wait.h
194
ATF_TP_ADD_TC_HAVE_GPREGS(tp, access_regs2); \
tests/lib/libc/sys/t_ptrace_register_wait.h
195
ATF_TP_ADD_TC_HAVE_GPREGS(tp, access_regs3); \
tests/lib/libc/sys/t_ptrace_register_wait.h
196
ATF_TP_ADD_TC_HAVE_GPREGS(tp, access_regs4); \
tests/lib/libc/sys/t_ptrace_register_wait.h
197
ATF_TP_ADD_TC_HAVE_GPREGS(tp, access_regs5); \
tests/lib/libc/sys/t_ptrace_register_wait.h
198
ATF_TP_ADD_TC_HAVE_GPREGS(tp, access_regs6); \
tests/lib/libc/sys/t_ptrace_register_wait.h
199
ATF_TP_ADD_TC_HAVE_GPREGS(tp, access_regs_set_unaligned_pc_0x1); \
tests/lib/libc/sys/t_ptrace_register_wait.h
200
ATF_TP_ADD_TC_HAVE_GPREGS(tp, access_regs_set_unaligned_pc_0x3); \
tests/lib/libc/sys/t_ptrace_register_wait.h
201
ATF_TP_ADD_TC_HAVE_GPREGS(tp, access_regs_set_unaligned_pc_0x7); \
tests/lib/libc/sys/t_ptrace_register_wait.h
202
ATF_TP_ADD_TC_HAVE_FPREGS(tp, access_fpregs1); \
tests/lib/libc/sys/t_ptrace_register_wait.h
203
ATF_TP_ADD_TC_HAVE_FPREGS(tp, access_fpregs2);
tests/lib/libc/sys/t_ptrace_sigchld.c
237
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_ptrace_sigchld.c
242
ATF_TP_ADD_TC(tp, traceme_raise1);
tests/lib/libc/sys/t_ptrace_sigchld.c
244
ATF_TP_ADD_TC(tp, traceme_raise2);
tests/lib/libc/sys/t_ptrace_sigchld.c
245
ATF_TP_ADD_TC(tp, traceme_raise3);
tests/lib/libc/sys/t_ptrace_sigchld.c
246
ATF_TP_ADD_TC(tp, traceme_raise4);
tests/lib/libc/sys/t_ptrace_sigchld.c
247
ATF_TP_ADD_TC(tp, traceme_raise5);
tests/lib/libc/sys/t_ptrace_sigchld.c
248
ATF_TP_ADD_TC(tp, traceme_raise6);
tests/lib/libc/sys/t_ptrace_sigchld.c
249
ATF_TP_ADD_TC(tp, traceme_raise7);
tests/lib/libc/sys/t_ptrace_sigchld.c
250
ATF_TP_ADD_TC(tp, traceme_raise8);
tests/lib/libc/sys/t_ptrace_sigchld.c
251
ATF_TP_ADD_TC(tp, traceme_raise9);
tests/lib/libc/sys/t_ptrace_sigchld.c
252
ATF_TP_ADD_TC(tp, traceme_raise10);
tests/lib/libc/sys/t_ptrace_siginfo_wait.h
155
ATF_TP_ADD_TC(tp, siginfo_set_unmodified); \
tests/lib/libc/sys/t_ptrace_siginfo_wait.h
156
ATF_TP_ADD_TC(tp, siginfo_set_faked);
tests/lib/libc/sys/t_ptrace_signal_wait.h
2234
ATF_TP_ADD_TC(tp, traceme_raise1); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2235
ATF_TP_ADD_TC(tp, traceme_raise2); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2236
ATF_TP_ADD_TC(tp, traceme_raise3); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2237
ATF_TP_ADD_TC(tp, traceme_raise4); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2238
ATF_TP_ADD_TC(tp, traceme_raise5); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2239
ATF_TP_ADD_TC(tp, traceme_raise6); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2240
ATF_TP_ADD_TC(tp, traceme_raise7); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2241
ATF_TP_ADD_TC(tp, traceme_raise8); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2242
ATF_TP_ADD_TC(tp, traceme_raise9); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2243
ATF_TP_ADD_TC(tp, traceme_raise10); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2244
ATF_TP_ADD_TC(tp, traceme_raisesignal_ignored1); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2245
ATF_TP_ADD_TC(tp, traceme_raisesignal_ignored2); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2246
ATF_TP_ADD_TC(tp, traceme_raisesignal_ignored3); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2247
ATF_TP_ADD_TC(tp, traceme_raisesignal_ignored4); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2248
ATF_TP_ADD_TC(tp, traceme_raisesignal_ignored5); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2249
ATF_TP_ADD_TC(tp, traceme_raisesignal_ignored6); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2250
ATF_TP_ADD_TC(tp, traceme_raisesignal_ignored7); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2251
ATF_TP_ADD_TC(tp, traceme_raisesignal_ignored8); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2252
ATF_TP_ADD_TC(tp, traceme_raisesignal_masked1); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2253
ATF_TP_ADD_TC(tp, traceme_raisesignal_masked2); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2254
ATF_TP_ADD_TC(tp, traceme_raisesignal_masked3); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2255
ATF_TP_ADD_TC(tp, traceme_raisesignal_masked4); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2256
ATF_TP_ADD_TC(tp, traceme_raisesignal_masked5); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2257
ATF_TP_ADD_TC(tp, traceme_raisesignal_masked6); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2258
ATF_TP_ADD_TC(tp, traceme_raisesignal_masked7); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2259
ATF_TP_ADD_TC(tp, traceme_raisesignal_masked8); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2260
ATF_TP_ADD_TC(tp, traceme_crash_trap); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2261
ATF_TP_ADD_TC(tp, traceme_crash_segv); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2262
ATF_TP_ADD_TC(tp, traceme_crash_ill); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2263
ATF_TP_ADD_TC(tp, traceme_crash_fpe); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2264
ATF_TP_ADD_TC(tp, traceme_crash_bus); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2265
ATF_TP_ADD_TC(tp, traceme_signalmasked_crash_trap); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2266
ATF_TP_ADD_TC(tp, traceme_signalmasked_crash_segv); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2267
ATF_TP_ADD_TC(tp, traceme_signalmasked_crash_ill); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2268
ATF_TP_ADD_TC(tp, traceme_signalmasked_crash_fpe); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2269
ATF_TP_ADD_TC(tp, traceme_signalmasked_crash_bus); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2270
ATF_TP_ADD_TC(tp, traceme_signalignored_crash_trap); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2271
ATF_TP_ADD_TC(tp, traceme_signalignored_crash_segv); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2272
ATF_TP_ADD_TC(tp, traceme_signalignored_crash_ill); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2273
ATF_TP_ADD_TC(tp, traceme_signalignored_crash_fpe); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2274
ATF_TP_ADD_TC(tp, traceme_signalignored_crash_bus); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2275
ATF_TP_ADD_TC(tp, traceme_sendsignal_handle1); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2276
ATF_TP_ADD_TC(tp, traceme_sendsignal_handle2); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2277
ATF_TP_ADD_TC(tp, traceme_sendsignal_handle3); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2278
ATF_TP_ADD_TC(tp, traceme_sendsignal_handle4); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2279
ATF_TP_ADD_TC(tp, traceme_sendsignal_handle5); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2280
ATF_TP_ADD_TC(tp, traceme_sendsignal_handle6); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2281
ATF_TP_ADD_TC(tp, traceme_sendsignal_handle7); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2282
ATF_TP_ADD_TC(tp, traceme_sendsignal_handle8); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2283
ATF_TP_ADD_TC(tp, traceme_sendsignal_masked1); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2284
ATF_TP_ADD_TC(tp, traceme_sendsignal_masked2); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2285
ATF_TP_ADD_TC(tp, traceme_sendsignal_masked3); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2286
ATF_TP_ADD_TC(tp, traceme_sendsignal_masked4); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2287
ATF_TP_ADD_TC(tp, traceme_sendsignal_masked5); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2288
ATF_TP_ADD_TC(tp, traceme_sendsignal_masked6); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2289
ATF_TP_ADD_TC(tp, traceme_sendsignal_masked7); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2290
ATF_TP_ADD_TC(tp, traceme_sendsignal_masked8); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2291
ATF_TP_ADD_TC(tp, traceme_sendsignal_ignored1); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2292
ATF_TP_ADD_TC(tp, traceme_sendsignal_ignored2); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2293
ATF_TP_ADD_TC(tp, traceme_sendsignal_ignored3); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2294
ATF_TP_ADD_TC(tp, traceme_sendsignal_ignored4); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2295
ATF_TP_ADD_TC(tp, traceme_sendsignal_ignored5); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2296
ATF_TP_ADD_TC(tp, traceme_sendsignal_ignored6); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2297
ATF_TP_ADD_TC(tp, traceme_sendsignal_ignored7); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2298
ATF_TP_ADD_TC(tp, traceme_sendsignal_ignored8); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2299
ATF_TP_ADD_TC(tp, traceme_sendsignal_simple1); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2300
ATF_TP_ADD_TC(tp, traceme_sendsignal_simple2); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2301
ATF_TP_ADD_TC(tp, traceme_sendsignal_simple3); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2302
ATF_TP_ADD_TC(tp, traceme_sendsignal_simple4); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2303
ATF_TP_ADD_TC(tp, traceme_sendsignal_simple5); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2304
ATF_TP_ADD_TC(tp, traceme_sendsignal_simple6); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2305
ATF_TP_ADD_TC(tp, traceme_sendsignal_simple7); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2306
ATF_TP_ADD_TC(tp, traceme_sendsignal_simple8); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2307
ATF_TP_ADD_TC(tp, traceme_sendsignal_simple9); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2308
ATF_TP_ADD_TC(tp, traceme_sendsignal_simple10); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2309
ATF_TP_ADD_TC(tp, traceme_vfork_raise1); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2310
ATF_TP_ADD_TC(tp, traceme_vfork_raise2); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2311
ATF_TP_ADD_TC(tp, traceme_vfork_raise3); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2312
ATF_TP_ADD_TC(tp, traceme_vfork_raise4); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2313
ATF_TP_ADD_TC(tp, traceme_vfork_raise5); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2314
ATF_TP_ADD_TC(tp, traceme_vfork_raise6); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2315
ATF_TP_ADD_TC(tp, traceme_vfork_raise7); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2316
ATF_TP_ADD_TC(tp, traceme_vfork_raise8); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2317
ATF_TP_ADD_TC(tp, traceme_vfork_raise9); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2318
ATF_TP_ADD_TC(tp, traceme_vfork_raise10); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2319
ATF_TP_ADD_TC(tp, traceme_vfork_raise11); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2320
ATF_TP_ADD_TC(tp, traceme_vfork_raise12); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2321
ATF_TP_ADD_TC(tp, traceme_vfork_raise13); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2322
ATF_TP_ADD_TC(tp, traceme_vfork_crash_trap); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2323
ATF_TP_ADD_TC(tp, traceme_vfork_crash_segv); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2324
ATF_TP_ADD_TC(tp, traceme_vfork_crash_ill); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2325
ATF_TP_ADD_TC(tp, traceme_vfork_crash_fpe); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2326
ATF_TP_ADD_TC(tp, traceme_vfork_crash_bus); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2327
ATF_TP_ADD_TC(tp, traceme_vfork_signalmasked_crash_trap); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2328
ATF_TP_ADD_TC(tp, traceme_vfork_signalmasked_crash_segv); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2329
ATF_TP_ADD_TC(tp, traceme_vfork_signalmasked_crash_ill); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2330
ATF_TP_ADD_TC(tp, traceme_vfork_signalmasked_crash_fpe); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2331
ATF_TP_ADD_TC(tp, traceme_vfork_signalmasked_crash_bus); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2332
ATF_TP_ADD_TC(tp, traceme_vfork_signalignored_crash_trap); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2333
ATF_TP_ADD_TC(tp, traceme_vfork_signalignored_crash_segv); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2334
ATF_TP_ADD_TC(tp, traceme_vfork_signalignored_crash_ill); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2335
ATF_TP_ADD_TC(tp, traceme_vfork_signalignored_crash_fpe); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2336
ATF_TP_ADD_TC(tp, traceme_vfork_signalignored_crash_bus); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2337
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_sees_crash_trap); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2338
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_sees_crash_segv); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2339
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_sees_crash_ill); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2340
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_sees_crash_fpe); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2341
ATF_TP_ADD_TC_HAVE_PID(tp, unrelated_tracer_sees_crash_bus); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2342
ATF_TP_ADD_TC_HAVE_PID(tp, \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2344
ATF_TP_ADD_TC_HAVE_PID(tp, \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2346
ATF_TP_ADD_TC_HAVE_PID(tp, \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2348
ATF_TP_ADD_TC_HAVE_PID(tp, \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2350
ATF_TP_ADD_TC_HAVE_PID(tp, \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2352
ATF_TP_ADD_TC_HAVE_PID(tp, \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2354
ATF_TP_ADD_TC_HAVE_PID(tp, \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2356
ATF_TP_ADD_TC_HAVE_PID(tp, \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2358
ATF_TP_ADD_TC_HAVE_PID(tp, \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2360
ATF_TP_ADD_TC_HAVE_PID(tp, \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2362
ATF_TP_ADD_TC(tp, signal_mask_unrelated);
tests/lib/libc/sys/t_ptrace_step_wait.h
248
ATF_TP_ADD_TC_PT_STEP(tp, step1); \
tests/lib/libc/sys/t_ptrace_step_wait.h
249
ATF_TP_ADD_TC_PT_STEP(tp, step2); \
tests/lib/libc/sys/t_ptrace_step_wait.h
250
ATF_TP_ADD_TC_PT_STEP(tp, step3); \
tests/lib/libc/sys/t_ptrace_step_wait.h
251
ATF_TP_ADD_TC_PT_STEP(tp, step4); \
tests/lib/libc/sys/t_ptrace_step_wait.h
252
ATF_TP_ADD_TC_PT_STEP(tp, setstep1); \
tests/lib/libc/sys/t_ptrace_step_wait.h
253
ATF_TP_ADD_TC_PT_STEP(tp, setstep2); \
tests/lib/libc/sys/t_ptrace_step_wait.h
254
ATF_TP_ADD_TC_PT_STEP(tp, setstep3); \
tests/lib/libc/sys/t_ptrace_step_wait.h
255
ATF_TP_ADD_TC_PT_STEP(tp, setstep4); \
tests/lib/libc/sys/t_ptrace_step_wait.h
256
ATF_TP_ADD_TC_PT_STEP(tp, step_signalmasked); \
tests/lib/libc/sys/t_ptrace_step_wait.h
257
ATF_TP_ADD_TC_PT_STEP(tp, step_signalignored);
tests/lib/libc/sys/t_ptrace_syscall_wait.h
264
ATF_TP_ADD_TC(tp, syscall); \
tests/lib/libc/sys/t_ptrace_syscall_wait.h
265
ATF_TP_ADD_TC(tp, syscall_killed_on_sce); \
tests/lib/libc/sys/t_ptrace_syscall_wait.h
266
ATF_TP_ADD_TC(tp, syscall_signal_on_sce); \
tests/lib/libc/sys/t_ptrace_syscall_wait.h
267
ATF_TP_ADD_TC(tp, syscall_detach_on_sce); \
tests/lib/libc/sys/t_ptrace_syscall_wait.h
268
ATF_TP_ADD_TC(tp, syscallemu1);
tests/lib/libc/sys/t_ptrace_threads_wait.h
1043
ATF_TP_ADD_TC(tp, trace_thread_nolwpevents); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1044
ATF_TP_ADD_TC(tp, trace_thread_lwpexit); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1045
ATF_TP_ADD_TC(tp, trace_thread_lwpcreate); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1046
ATF_TP_ADD_TC(tp, trace_thread_lwpcreate_and_exit); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1047
ATF_TP_ADD_TC(tp, trace_thread_lwpexit_masked_sigtrap); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1048
ATF_TP_ADD_TC(tp, trace_thread_lwpcreate_masked_sigtrap); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1049
ATF_TP_ADD_TC(tp, trace_thread_lwpcreate_and_exit_masked_sigtrap); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1050
ATF_TP_ADD_TC(tp, threads_and_exec); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1051
ATF_TP_ADD_TC(tp, suspend_no_deadlock); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1052
ATF_TP_ADD_TC(tp, resume); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1053
ATF_TP_ADD_TC_HAVE_STATUS(tp, thread_concurrent_signals); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1054
ATF_TP_ADD_TC_HAVE_STATUS(tp, thread_concurrent_signals_sig_ign); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1055
ATF_TP_ADD_TC_HAVE_STATUS(tp, thread_concurrent_signals_handler); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1056
ATF_TP_ADD_TC_HAVE_STATUS_X86(tp, thread_concurrent_breakpoints); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1057
ATF_TP_ADD_TC_HAVE_STATUS_X86(tp, thread_concurrent_watchpoints); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1058
ATF_TP_ADD_TC_HAVE_STATUS_X86(tp, thread_concurrent_bp_wp); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1059
ATF_TP_ADD_TC_HAVE_STATUS_X86(tp, thread_concurrent_bp_sig); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1060
ATF_TP_ADD_TC_HAVE_STATUS_X86(tp, thread_concurrent_bp_sig_sig_ign); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1061
ATF_TP_ADD_TC_HAVE_STATUS_X86(tp, thread_concurrent_bp_sig_handler); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1062
ATF_TP_ADD_TC_HAVE_STATUS_X86(tp, thread_concurrent_wp_sig); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1063
ATF_TP_ADD_TC_HAVE_STATUS_X86(tp, thread_concurrent_wp_sig_sig_ign); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1064
ATF_TP_ADD_TC_HAVE_STATUS_X86(tp, thread_concurrent_wp_sig_handler); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1065
ATF_TP_ADD_TC_HAVE_STATUS_X86(tp, thread_concurrent_bp_wp_sig); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1066
ATF_TP_ADD_TC_HAVE_STATUS_X86(tp, thread_concurrent_bp_wp_sig_sig_ign); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
1067
ATF_TP_ADD_TC_HAVE_STATUS_X86(tp, thread_concurrent_bp_wp_sig_handler);
tests/lib/libc/sys/t_ptrace_topology_wait.h
705
ATF_TP_ADD_TC(tp, traceme_pid1_parent); \
tests/lib/libc/sys/t_ptrace_topology_wait.h
706
ATF_TP_ADD_TC_HAVE_PID(tp, tracer_sees_terminaton_before_the_parent); \
tests/lib/libc/sys/t_ptrace_topology_wait.h
707
ATF_TP_ADD_TC_HAVE_PID(tp, tracer_sysctl_lookup_without_duplicates); \
tests/lib/libc/sys/t_ptrace_topology_wait.h
708
ATF_TP_ADD_TC_HAVE_PID(tp, \
tests/lib/libc/sys/t_ptrace_topology_wait.h
710
ATF_TP_ADD_TC_HAVE_PID(tp, tracer_attach_to_unrelated_stopped_process); \
tests/lib/libc/sys/t_ptrace_topology_wait.h
711
ATF_TP_ADD_TC(tp, parent_attach_to_its_child); \
tests/lib/libc/sys/t_ptrace_topology_wait.h
712
ATF_TP_ADD_TC(tp, parent_attach_to_its_stopped_child); \
tests/lib/libc/sys/t_ptrace_topology_wait.h
713
ATF_TP_ADD_TC(tp, child_attach_to_its_parent); \
tests/lib/libc/sys/t_ptrace_topology_wait.h
714
ATF_TP_ADD_TC(tp, child_attach_to_its_stopped_parent); \
tests/lib/libc/sys/t_ptrace_topology_wait.h
715
ATF_TP_ADD_TC_HAVE_PID(tp, \
tests/lib/libc/sys/t_ptrace_topology_wait.h
717
ATF_TP_ADD_TC_HAVE_PID(tp, \
tests/lib/libc/sys/t_ptrace_topology_wait.h
719
ATF_TP_ADD_TC_HAVE_PID(tp, \
tests/lib/libc/sys/t_ptrace_wait.c
151
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_ptrace_wait.c
179
ATF_TP_ADD_TC(tp, dummy);
tests/lib/libc/sys/t_ptrace_x86_wait.h
4457
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_print); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4458
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_preserve_dr0); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4459
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_preserve_dr1); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4460
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_preserve_dr2); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4461
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_preserve_dr3); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4462
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_preserve_dr0_yield); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4463
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_preserve_dr1_yield); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4464
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_preserve_dr2_yield); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4465
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_preserve_dr3_yield); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4466
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_preserve_dr0_continued); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4467
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_preserve_dr1_continued); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4468
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_preserve_dr2_continued); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4469
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_preserve_dr3_continued); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4470
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr0_trap_variable_writeonly_byte); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4471
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr1_trap_variable_writeonly_byte); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4472
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr2_trap_variable_writeonly_byte); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4473
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr3_trap_variable_writeonly_byte); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4474
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr0_trap_variable_writeonly_2bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4475
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr1_trap_variable_writeonly_2bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4476
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr2_trap_variable_writeonly_2bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4477
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr3_trap_variable_writeonly_2bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4478
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr0_trap_variable_writeonly_4bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4479
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr1_trap_variable_writeonly_4bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4480
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr2_trap_variable_writeonly_4bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4481
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr3_trap_variable_writeonly_4bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4482
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr0_trap_variable_readwrite_write_byte); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4483
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr1_trap_variable_readwrite_write_byte); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4484
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr2_trap_variable_readwrite_write_byte); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4485
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr3_trap_variable_readwrite_write_byte); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4486
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr0_trap_variable_readwrite_write_2bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4487
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr1_trap_variable_readwrite_write_2bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4488
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr2_trap_variable_readwrite_write_2bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4489
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr3_trap_variable_readwrite_write_2bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4490
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr0_trap_variable_readwrite_write_4bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4491
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr1_trap_variable_readwrite_write_4bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4492
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr2_trap_variable_readwrite_write_4bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4493
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr3_trap_variable_readwrite_write_4bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4494
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr0_trap_variable_readwrite_read_byte); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4495
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr1_trap_variable_readwrite_read_byte); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4496
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr2_trap_variable_readwrite_read_byte); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4497
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr3_trap_variable_readwrite_read_byte); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4498
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr0_trap_variable_readwrite_read_2bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4499
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr1_trap_variable_readwrite_read_2bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4500
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr2_trap_variable_readwrite_read_2bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4501
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr3_trap_variable_readwrite_read_2bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4502
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr0_trap_variable_readwrite_read_4bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4503
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr1_trap_variable_readwrite_read_4bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4504
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr2_trap_variable_readwrite_read_4bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4505
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr3_trap_variable_readwrite_read_4bytes); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4506
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr0_trap_code); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4507
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr1_trap_code); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4508
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr2_trap_code); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4509
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr3_trap_code); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4510
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr0_dont_inherit_lwp); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4511
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr1_dont_inherit_lwp); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4512
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr2_dont_inherit_lwp); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4513
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr3_dont_inherit_lwp); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4514
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr0_dont_inherit_execve); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4515
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr1_dont_inherit_execve); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4516
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr2_dont_inherit_execve); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4517
ATF_TP_ADD_TC_HAVE_DBREGS(tp, dbregs_dr3_dont_inherit_execve); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4518
ATF_TP_ADD_TC_HAVE_DBREGS(tp, x86_cve_2018_8897); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4519
ATF_TP_ADD_TC(tp, x86_gpregs32_read); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4520
ATF_TP_ADD_TC(tp, x86_gpregs32_write); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4521
ATF_TP_ADD_TC(tp, x86_gpregs32_core); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4522
ATF_TP_ADD_TC(tp, x86_gpregs32_ebp_esp_read); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4523
ATF_TP_ADD_TC(tp, x86_gpregs32_ebp_esp_write); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4524
ATF_TP_ADD_TC(tp, x86_gpregs32_ebp_esp_core); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4525
ATF_TP_ADD_TC(tp, x86_gpregs64_read); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4526
ATF_TP_ADD_TC(tp, x86_gpregs64_write); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4527
ATF_TP_ADD_TC(tp, x86_gpregs64_core); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4528
ATF_TP_ADD_TC(tp, x86_gpregs64_r8_read); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4529
ATF_TP_ADD_TC(tp, x86_gpregs64_r8_write); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4530
ATF_TP_ADD_TC(tp, x86_gpregs64_r8_core); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4531
ATF_TP_ADD_TC(tp, x86_fpregs_fpu_read); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4532
ATF_TP_ADD_TC(tp, x86_fpregs_fpu_write); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4533
ATF_TP_ADD_TC(tp, x86_fpregs_fpu_core); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4534
ATF_TP_ADD_TC(tp, x86_fpregs_mm_read); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4535
ATF_TP_ADD_TC(tp, x86_fpregs_mm_write); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4536
ATF_TP_ADD_TC(tp, x86_fpregs_mm_core); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4537
ATF_TP_ADD_TC(tp, x86_fpregs_xmm_read); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4538
ATF_TP_ADD_TC(tp, x86_fpregs_xmm_write); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4539
ATF_TP_ADD_TC(tp, x86_fpregs_xmm_core); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4540
ATF_TP_ADD_TC(tp, x86_xstate_fpu_read); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4541
ATF_TP_ADD_TC(tp, x86_xstate_fpu_write); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4542
ATF_TP_ADD_TC(tp, x86_xstate_fpu_core); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4543
ATF_TP_ADD_TC(tp, x86_xstate_mm_read); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4544
ATF_TP_ADD_TC(tp, x86_xstate_mm_write); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4545
ATF_TP_ADD_TC(tp, x86_xstate_mm_core); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4546
ATF_TP_ADD_TC(tp, x86_xstate_xmm_read); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4547
ATF_TP_ADD_TC(tp, x86_xstate_xmm_write); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4548
ATF_TP_ADD_TC(tp, x86_xstate_xmm_core); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4549
ATF_TP_ADD_TC(tp, x86_xstate_ymm_read); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4550
ATF_TP_ADD_TC(tp, x86_xstate_ymm_write); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4551
ATF_TP_ADD_TC(tp, x86_xstate_ymm_core); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4552
ATF_TP_ADD_TC(tp, x86_xstate_zmm_read); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4553
ATF_TP_ADD_TC(tp, x86_xstate_zmm_write); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4554
ATF_TP_ADD_TC(tp, x86_xstate_zmm_core);
tests/lib/libc/sys/t_recvmmsg.c
183
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_recvmmsg.c
186
ATF_TP_ADD_TC(tp, recvmmsg_basic);
tests/lib/libc/sys/t_revoke.c
179
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_revoke.c
182
ATF_TP_ADD_TC(tp, revoke_basic);
tests/lib/libc/sys/t_revoke.c
183
ATF_TP_ADD_TC(tp, revoke_err);
tests/lib/libc/sys/t_revoke.c
184
ATF_TP_ADD_TC(tp, revoke_perm);
tests/lib/libc/sys/t_select.c
242
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_select.c
245
ATF_TP_ADD_TC(tp, pselect_sigmask);
tests/lib/libc/sys/t_select.c
246
ATF_TP_ADD_TC(tp, pselect_timeout);
tests/lib/libc/sys/t_select.c
247
ATF_TP_ADD_TC(tp, select_badfd);
tests/lib/libc/sys/t_sendmmsg.c
206
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_sendmmsg.c
209
ATF_TP_ADD_TC(tp, sendmmsg_basic);
tests/lib/libc/sys/t_sendrecv.c
181
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_sendrecv.c
184
ATF_TP_ADD_TC(tp, sendrecv_basic);
tests/lib/libc/sys/t_sendrecv.c
185
ATF_TP_ADD_TC(tp, sendrecv_rerror);
tests/lib/libc/sys/t_setrlimit.c
671
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_setrlimit.c
674
ATF_TP_ADD_TC(tp, setrlimit_basic);
tests/lib/libc/sys/t_setrlimit.c
675
ATF_TP_ADD_TC(tp, setrlimit_current);
tests/lib/libc/sys/t_setrlimit.c
676
ATF_TP_ADD_TC(tp, setrlimit_err);
tests/lib/libc/sys/t_setrlimit.c
677
ATF_TP_ADD_TC(tp, setrlimit_fsize);
tests/lib/libc/sys/t_setrlimit.c
678
ATF_TP_ADD_TC(tp, setrlimit_memlock);
tests/lib/libc/sys/t_setrlimit.c
679
ATF_TP_ADD_TC(tp, setrlimit_nofile_1);
tests/lib/libc/sys/t_setrlimit.c
680
ATF_TP_ADD_TC(tp, setrlimit_nofile_2);
tests/lib/libc/sys/t_setrlimit.c
681
ATF_TP_ADD_TC(tp, setrlimit_nproc);
tests/lib/libc/sys/t_setrlimit.c
682
ATF_TP_ADD_TC(tp, setrlimit_perm);
tests/lib/libc/sys/t_setrlimit.c
683
ATF_TP_ADD_TC(tp, setrlimit_nthr);
tests/lib/libc/sys/t_setrlimit.c
684
ATF_TP_ADD_TC(tp, setrlimit_stack);
tests/lib/libc/sys/t_setrlimit.c
685
ATF_TP_ADD_TC(tp, setrlimit_stack_growshrink);
tests/lib/libc/sys/t_setuid.c
114
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_setuid.c
117
ATF_TP_ADD_TC(tp, setuid_perm);
tests/lib/libc/sys/t_setuid.c
118
ATF_TP_ADD_TC(tp, setuid_real);
tests/lib/libc/sys/t_setuid.c
119
ATF_TP_ADD_TC(tp, setuid_root);
tests/lib/libc/sys/t_sigaction.c
145
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_sigaction.c
148
ATF_TP_ADD_TC(tp, sigaction_basic);
tests/lib/libc/sys/t_sigaction.c
149
ATF_TP_ADD_TC(tp, sigaction_noflags);
tests/lib/libc/sys/t_sigaction.c
150
ATF_TP_ADD_TC(tp, sigaction_resethand);
tests/lib/libc/sys/t_sigaltstack.c
95
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_sigaltstack.c
97
ATF_TP_ADD_TC(tp, sigaltstack_onstack);
tests/lib/libc/sys/t_sigqueue.c
206
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_sigqueue.c
209
ATF_TP_ADD_TC(tp, sigqueue_basic);
tests/lib/libc/sys/t_sigqueue.c
210
ATF_TP_ADD_TC(tp, sigqueue_err);
tests/lib/libc/sys/t_sigqueue.c
211
ATF_TP_ADD_TC(tp, sigqueue_rt);
tests/lib/libc/sys/t_sigtimedwait.c
235
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_sigtimedwait.c
237
ATF_TP_ADD_TC(tp, sigtimedwait_all0timeout);
tests/lib/libc/sys/t_sigtimedwait.c
238
ATF_TP_ADD_TC(tp, sigtimedwait_NULL_timeout);
tests/lib/libc/sys/t_sigtimedwait.c
239
ATF_TP_ADD_TC(tp, sigtimedwait_small_timeout);
tests/lib/libc/sys/t_sigtimedwait.c
240
ATF_TP_ADD_TC(tp, sigtimedwait_small_timeout_alarm);
tests/lib/libc/sys/t_sigtimedwait.c
241
ATF_TP_ADD_TC(tp, sigtimedwait_small_timeout_other_sig);
tests/lib/libc/sys/t_sigtimedwait.c
242
ATF_TP_ADD_TC(tp, sigwaitinfo_other_sig);
tests/lib/libc/sys/t_socketpair.c
159
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_socketpair.c
162
ATF_TP_ADD_TC(tp, socketpair_basic);
tests/lib/libc/sys/t_socketpair.c
163
ATF_TP_ADD_TC(tp, socketpair_nonblock);
tests/lib/libc/sys/t_socketpair.c
164
ATF_TP_ADD_TC(tp, socketpair_cloexec);
tests/lib/libc/sys/t_socketpair.c
165
ATF_TP_ADD_TC(tp, socketpair_clofork);
tests/lib/libc/sys/t_stat.c
406
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_stat.c
409
ATF_TP_ADD_TC(tp, stat_chflags);
tests/lib/libc/sys/t_stat.c
410
ATF_TP_ADD_TC(tp, stat_dir);
tests/lib/libc/sys/t_stat.c
411
ATF_TP_ADD_TC(tp, stat_err);
tests/lib/libc/sys/t_stat.c
412
ATF_TP_ADD_TC(tp, stat_mtime);
tests/lib/libc/sys/t_stat.c
413
ATF_TP_ADD_TC(tp, stat_perm);
tests/lib/libc/sys/t_stat.c
414
ATF_TP_ADD_TC(tp, stat_size);
tests/lib/libc/sys/t_stat.c
415
ATF_TP_ADD_TC(tp, stat_socket);
tests/lib/libc/sys/t_stat.c
416
ATF_TP_ADD_TC(tp, stat_symlink);
tests/lib/libc/sys/t_swapcontext.c
129
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_swapcontext.c
131
ATF_TP_ADD_TC(tp, swapcontext1);
tests/lib/libc/sys/t_swapcontext.c
132
ATF_TP_ADD_TC(tp, swapcontext2);
tests/lib/libc/sys/t_syscall.c
109
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_syscall.c
113
ATF_TP_ADD_TC(tp, mmap_syscall);
tests/lib/libc/sys/t_syscall.c
115
ATF_TP_ADD_TC(tp, mmap___syscall);
tests/lib/libc/sys/t_timer_create.c
477
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_timer_create.c
480
ATF_TP_ADD_TC(tp, timer_create_err);
tests/lib/libc/sys/t_timer_create.c
481
ATF_TP_ADD_TC(tp, timer_create_real);
tests/lib/libc/sys/t_timer_create.c
482
ATF_TP_ADD_TC(tp, timer_create_real_abs);
tests/lib/libc/sys/t_timer_create.c
483
ATF_TP_ADD_TC(tp, timer_create_mono);
tests/lib/libc/sys/t_timer_create.c
484
ATF_TP_ADD_TC(tp, timer_create_mono_abs);
tests/lib/libc/sys/t_timer_create.c
485
ATF_TP_ADD_TC(tp, timer_create_real_expire);
tests/lib/libc/sys/t_timer_create.c
486
ATF_TP_ADD_TC(tp, timer_create_real_expire_abs);
tests/lib/libc/sys/t_timer_create.c
487
ATF_TP_ADD_TC(tp, timer_create_mono_expire);
tests/lib/libc/sys/t_timer_create.c
488
ATF_TP_ADD_TC(tp, timer_create_mono_expire_abs);
tests/lib/libc/sys/t_timer_create.c
489
ATF_TP_ADD_TC(tp, timer_create_real_past_abs);
tests/lib/libc/sys/t_timer_create.c
490
ATF_TP_ADD_TC(tp, timer_create_mono_past_abs);
tests/lib/libc/sys/t_timer_create.c
491
ATF_TP_ADD_TC(tp, timer_invalidtime);
tests/lib/libc/sys/t_timer_create.c
54
timer_t *tp;
tests/lib/libc/sys/t_timer_create.c
56
tp = si->si_value.sival_ptr;
tests/lib/libc/sys/t_timer_create.c
58
if (*tp == t && signo == SIGALRM)
tests/lib/libc/sys/t_timerfd.c
798
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_timerfd.c
801
ATF_TP_ADD_TC(tp, timerfd_create);
tests/lib/libc/sys/t_timerfd.c
802
ATF_TP_ADD_TC(tp, timerfd_write);
tests/lib/libc/sys/t_timerfd.c
803
ATF_TP_ADD_TC(tp, timerfd_bogusfd);
tests/lib/libc/sys/t_timerfd.c
804
ATF_TP_ADD_TC(tp, timerfd_invalidtime);
tests/lib/libc/sys/t_timerfd.c
805
ATF_TP_ADD_TC(tp, timerfd_past);
tests/lib/libc/sys/t_timerfd.c
806
ATF_TP_ADD_TC(tp, timerfd_block);
tests/lib/libc/sys/t_timerfd.c
807
ATF_TP_ADD_TC(tp, timerfd_repeating);
tests/lib/libc/sys/t_timerfd.c
808
ATF_TP_ADD_TC(tp, timerfd_abstime);
tests/lib/libc/sys/t_timerfd.c
809
ATF_TP_ADD_TC(tp, timerfd_cancel_on_set_block);
tests/lib/libc/sys/t_timerfd.c
810
ATF_TP_ADD_TC(tp, timerfd_cancel_on_set_immed);
tests/lib/libc/sys/t_timerfd.c
811
ATF_TP_ADD_TC(tp, timerfd_select_poll_kevent_immed);
tests/lib/libc/sys/t_timerfd.c
812
ATF_TP_ADD_TC(tp, timerfd_select_poll_kevent_block);
tests/lib/libc/sys/t_timerfd.c
813
ATF_TP_ADD_TC(tp, timerfd_restart);
tests/lib/libc/sys/t_timerfd.c
814
ATF_TP_ADD_TC(tp, timerfd_fcntl);
tests/lib/libc/sys/t_truncate.c
170
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_truncate.c
173
ATF_TP_ADD_TC(tp, ftruncate_basic);
tests/lib/libc/sys/t_truncate.c
174
ATF_TP_ADD_TC(tp, ftruncate_err);
tests/lib/libc/sys/t_truncate.c
175
ATF_TP_ADD_TC(tp, truncate_basic);
tests/lib/libc/sys/t_truncate.c
176
ATF_TP_ADD_TC(tp, truncate_err);
tests/lib/libc/sys/t_ucontext.c
132
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_ucontext.c
134
ATF_TP_ADD_TC(tp, ucontext_basic);
tests/lib/libc/sys/t_ucontext.c
135
ATF_TP_ADD_TC(tp, ucontext_sp);
tests/lib/libc/sys/t_ucontext.c
136
ATF_TP_ADD_TC(tp, ucontext_fp);
tests/lib/libc/sys/t_ucontext.c
137
ATF_TP_ADD_TC(tp, ucontext_pc);
tests/lib/libc/sys/t_ucontext.c
138
ATF_TP_ADD_TC(tp, ucontext_intrv);
tests/lib/libc/sys/t_umask.c
198
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_umask.c
201
ATF_TP_ADD_TC(tp, umask_fork);
tests/lib/libc/sys/t_umask.c
202
ATF_TP_ADD_TC(tp, umask_open);
tests/lib/libc/sys/t_umask.c
203
ATF_TP_ADD_TC(tp, umask_previous);
tests/lib/libc/sys/t_unlink.c
149
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_unlink.c
152
ATF_TP_ADD_TC(tp, unlink_basic);
tests/lib/libc/sys/t_unlink.c
153
ATF_TP_ADD_TC(tp, unlink_err);
tests/lib/libc/sys/t_unlink.c
154
ATF_TP_ADD_TC(tp, unlink_fifo);
tests/lib/libc/sys/t_unlink.c
155
ATF_TP_ADD_TC(tp, unlink_perm);
tests/lib/libc/sys/t_wait.c
300
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_wait.c
303
ATF_TP_ADD_TC(tp, wait6_invalid);
tests/lib/libc/sys/t_wait.c
304
ATF_TP_ADD_TC(tp, wait6_exited);
tests/lib/libc/sys/t_wait.c
305
ATF_TP_ADD_TC(tp, wait6_terminated);
tests/lib/libc/sys/t_wait.c
306
ATF_TP_ADD_TC(tp, wait6_coredumped);
tests/lib/libc/sys/t_wait.c
307
ATF_TP_ADD_TC(tp, wait6_stop_and_go);
tests/lib/libc/sys/t_wait.c
308
ATF_TP_ADD_TC(tp, wait6_stopgo_loop);
tests/lib/libc/sys/t_wait_noproc.c
321
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_wait_noproc.c
325
ATF_TP_ADD_TC(tp, wait);
tests/lib/libc/sys/t_wait_noproc.c
327
ATF_TP_ADD_TC(tp, waitpid);
tests/lib/libc/sys/t_wait_noproc.c
328
ATF_TP_ADD_TC(tp, waitid);
tests/lib/libc/sys/t_wait_noproc.c
329
ATF_TP_ADD_TC(tp, wait3);
tests/lib/libc/sys/t_wait_noproc.c
330
ATF_TP_ADD_TC(tp, wait4);
tests/lib/libc/sys/t_wait_noproc.c
331
ATF_TP_ADD_TC(tp, wait6);
tests/lib/libc/sys/t_wait_noproc.c
333
ATF_TP_ADD_TC(tp, waitpid_options);
tests/lib/libc/sys/t_wait_noproc.c
334
ATF_TP_ADD_TC(tp, waitid_options);
tests/lib/libc/sys/t_wait_noproc.c
335
ATF_TP_ADD_TC(tp, wait3_options);
tests/lib/libc/sys/t_wait_noproc.c
336
ATF_TP_ADD_TC(tp, wait4_options);
tests/lib/libc/sys/t_wait_noproc.c
337
ATF_TP_ADD_TC(tp, wait6_options);
tests/lib/libc/sys/t_write.c
272
ATF_TP_ADD_TCS(tp)
tests/lib/libc/sys/t_write.c
275
ATF_TP_ADD_TC(tp, write_err);
tests/lib/libc/sys/t_write.c
276
ATF_TP_ADD_TC(tp, write_pipe);
tests/lib/libc/sys/t_write.c
277
ATF_TP_ADD_TC(tp, write_pos);
tests/lib/libc/sys/t_write.c
278
ATF_TP_ADD_TC(tp, write_ret);
tests/lib/libc/sys/t_write.c
279
ATF_TP_ADD_TC(tp, writev_iovmax);
tests/lib/libc/sys/t_write.c
280
ATF_TP_ADD_TC(tp, write_fault);
tests/lib/libc/sys/t_write.c
281
ATF_TP_ADD_TC(tp, read_fault);
tests/lib/libc/t_cdb.c
154
ATF_TP_ADD_TCS(tp)
tests/lib/libc/t_cdb.c
157
ATF_TP_ADD_TC(tp, cdb);
tests/lib/libc/t_convfp.c
146
ATF_TP_ADD_TCS(tp)
tests/lib/libc/t_convfp.c
149
ATF_TP_ADD_TC(tp, conv_uint);
tests/lib/libc/t_convfp.c
150
ATF_TP_ADD_TC(tp, conv_ulong);
tests/lib/libc/t_convfp.c
151
ATF_TP_ADD_TC(tp, cast_ulong);
tests/lib/libc/t_convfp.c
152
ATF_TP_ADD_TC(tp, cast_ulong2);
tests/lib/libc/t_gdtoa.c
61
ATF_TP_ADD_TCS(tp)
tests/lib/libc/t_gdtoa.c
64
ATF_TP_ADD_TC(tp, long_format);
tests/lib/libc/t_long_double.c
307
ATF_TP_ADD_TCS(tp)
tests/lib/libc/t_long_double.c
310
ATF_TP_ADD_TC(tp, long_double);
tests/lib/libc/termios/t_tcsetpgrp.c
81
ATF_TP_ADD_TCS(tp)
tests/lib/libc/termios/t_tcsetpgrp.c
84
ATF_TP_ADD_TC(tp, tcsetpgrp_err);
tests/lib/libc/time/t_mktime.c
149
ATF_TP_ADD_TCS(tp)
tests/lib/libc/time/t_mktime.c
152
ATF_TP_ADD_TC(tp, localtime_r_gmt);
tests/lib/libc/time/t_mktime.c
153
ATF_TP_ADD_TC(tp, mktime_negyear);
tests/lib/libc/time/t_mktime.c
154
ATF_TP_ADD_TC(tp, timegm_epoch);
tests/lib/libc/time/t_strptime.c
591
ATF_TP_ADD_TCS(tp)
tests/lib/libc/time/t_strptime.c
594
ATF_TP_ADD_TC(tp, common);
tests/lib/libc/time/t_strptime.c
595
ATF_TP_ADD_TC(tp, day);
tests/lib/libc/time/t_strptime.c
596
ATF_TP_ADD_TC(tp, hour);
tests/lib/libc/time/t_strptime.c
597
ATF_TP_ADD_TC(tp, month);
tests/lib/libc/time/t_strptime.c
598
ATF_TP_ADD_TC(tp, seconds);
tests/lib/libc/time/t_strptime.c
599
ATF_TP_ADD_TC(tp, year);
tests/lib/libc/time/t_strptime.c
600
ATF_TP_ADD_TC(tp, zone);
tests/lib/libc/time/t_strptime.c
601
ATF_TP_ADD_TC(tp, Zone);
tests/lib/libc/time/t_strptime.c
602
ATF_TP_ADD_TC(tp, posixtime_overflow);
tests/lib/libc/tls/t_tls_dlopen.c
108
ATF_TP_ADD_TCS(tp)
tests/lib/libc/tls/t_tls_dlopen.c
110
ATF_TP_ADD_TC(tp, t_tls_dlopen);
tests/lib/libc/tls/t_tls_dynamic.c
100
ATF_TP_ADD_TCS(tp)
tests/lib/libc/tls/t_tls_dynamic.c
102
ATF_TP_ADD_TC(tp, t_tls_dynamic);
tests/lib/libc/tls/t_tls_static.c
90
ATF_TP_ADD_TCS(tp)
tests/lib/libc/tls/t_tls_static.c
92
ATF_TP_ADD_TC(tp, t_tls_static);
tests/lib/libc/ttyio/t_ptm.c
191
ATF_TP_ADD_TCS(tp)
tests/lib/libc/ttyio/t_ptm.c
194
ATF_TP_ADD_TC(tp, ptm);
tests/lib/libc/ttyio/t_ptm.c
195
ATF_TP_ADD_TC(tp, ptmx);
tests/lib/libc/ttyio/t_ptm.c
196
ATF_TP_ADD_TC(tp, ptmx_extra);
tests/lib/libc/ttyio/t_ttyio.c
159
ATF_TP_ADD_TCS(tp)
tests/lib/libc/ttyio/t_ttyio.c
161
ATF_TP_ADD_TC(tp, ioctl);
tests/lib/libcrypt/t_crypt.c
157
ATF_TP_ADD_TCS(tp)
tests/lib/libcrypt/t_crypt.c
160
ATF_TP_ADD_TC(tp, crypt_salts);
tests/lib/libdes/t_des.c
969
ATF_TP_ADD_TCS(tp)
tests/lib/libdes/t_des.c
972
ATF_TP_ADD_TC(tp, cbcm);
tests/lib/libdes/t_des.c
973
ATF_TP_ADD_TC(tp, ecb);
tests/lib/libdes/t_des.c
974
ATF_TP_ADD_TC(tp, ede_ecb);
tests/lib/libdes/t_des.c
975
ATF_TP_ADD_TC(tp, cbc);
tests/lib/libdes/t_des.c
976
ATF_TP_ADD_TC(tp, desx_cbc);
tests/lib/libdes/t_des.c
977
ATF_TP_ADD_TC(tp, ede_cbc);
tests/lib/libdes/t_des.c
978
ATF_TP_ADD_TC(tp, pcbc);
tests/lib/libdes/t_des.c
979
ATF_TP_ADD_TC(tp, cfb);
tests/lib/libdes/t_des.c
980
ATF_TP_ADD_TC(tp, ofb);
tests/lib/libdes/t_des.c
981
ATF_TP_ADD_TC(tp, ofb64);
tests/lib/libdes/t_des.c
982
ATF_TP_ADD_TC(tp, ede_ofb64);
tests/lib/libdes/t_des.c
983
ATF_TP_ADD_TC(tp, cbc_cksum);
tests/lib/libdes/t_des.c
984
ATF_TP_ADD_TC(tp, quad_cksum);
tests/lib/libdes/t_des.c
985
ATF_TP_ADD_TC(tp, align);
tests/lib/libdes/t_des.c
986
ATF_TP_ADD_TC(tp, fast_crypt);
tests/lib/libexecinfo/t_backtrace.c
161
ATF_TP_ADD_TCS(tp)
tests/lib/libexecinfo/t_backtrace.c
164
ATF_TP_ADD_TC(tp, backtrace_fmt_basic);
tests/lib/libexecinfo/t_backtrace_sandbox.c
82
ATF_TP_ADD_TCS(tp)
tests/lib/libexecinfo/t_backtrace_sandbox.c
85
ATF_TP_ADD_TC(tp, backtrace_sandbox);
tests/lib/libexecinfo/t_sig_backtrace.c
245
ATF_TP_ADD_TCS(tp)
tests/lib/libexecinfo/t_sig_backtrace.c
247
ATF_TP_ADD_TC(tp, sig_backtrace_deref);
tests/lib/libexecinfo/t_sig_backtrace.c
248
ATF_TP_ADD_TC(tp, sig_backtrace_jump);
tests/lib/libi386/t_user_ldt.c
340
ATF_TP_ADD_TCS(tp)
tests/lib/libi386/t_user_ldt.c
345
ATF_TP_ADD_TC(tp, filter_ops);
tests/lib/libi386/t_user_ldt.c
346
ATF_TP_ADD_TC(tp, iretq_gp);
tests/lib/libi386/t_user_ldt.c
347
ATF_TP_ADD_TC(tp, iretq_np);
tests/lib/libi386/t_user_ldt.c
348
ATF_TP_ADD_TC(tp, user_ldt);
tests/lib/libm/t_acos.c
100
ATF_TP_ADD_TC(tp, acos_inrange);
tests/lib/libm/t_acos.c
101
ATF_TP_ADD_TC(tp, acos_is_nan);
tests/lib/libm/t_acos.c
102
ATF_TP_ADD_TC(tp, acos_is_plus_zero);
tests/lib/libm/t_acos.c
97
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_asin.c
286
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_asin.c
289
ATF_TP_ADD_TC(tp, asin_nan);
tests/lib/libm/t_asin.c
290
ATF_TP_ADD_TC(tp, asin_inf_neg);
tests/lib/libm/t_asin.c
291
ATF_TP_ADD_TC(tp, asin_inf_pos);
tests/lib/libm/t_asin.c
292
ATF_TP_ADD_TC(tp, asin_range);
tests/lib/libm/t_asin.c
293
ATF_TP_ADD_TC(tp, asin_inrange);
tests/lib/libm/t_asin.c
294
ATF_TP_ADD_TC(tp, asin_zero_neg);
tests/lib/libm/t_asin.c
295
ATF_TP_ADD_TC(tp, asin_zero_pos);
tests/lib/libm/t_asin.c
297
ATF_TP_ADD_TC(tp, asinf_nan);
tests/lib/libm/t_asin.c
298
ATF_TP_ADD_TC(tp, asinf_inf_neg);
tests/lib/libm/t_asin.c
299
ATF_TP_ADD_TC(tp, asinf_inf_pos);
tests/lib/libm/t_asin.c
300
ATF_TP_ADD_TC(tp, asinf_range);
tests/lib/libm/t_asin.c
301
ATF_TP_ADD_TC(tp, asinf_inrange);
tests/lib/libm/t_asin.c
302
ATF_TP_ADD_TC(tp, asinf_zero_neg);
tests/lib/libm/t_asin.c
303
ATF_TP_ADD_TC(tp, asinf_zero_pos);
tests/lib/libm/t_atan.c
92
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_atan.c
95
ATF_TP_ADD_TC(tp, atan_nan);
tests/lib/libm/t_atan.c
96
ATF_TP_ADD_TC(tp, atan_inrange);
tests/lib/libm/t_atan.c
97
ATF_TP_ADD_TC(tp, atan_zero_neg);
tests/lib/libm/t_atan.c
98
ATF_TP_ADD_TC(tp, atan_zero_pos);
tests/lib/libm/t_bit.c
105
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_bit.c
108
ATF_TP_ADD_TC(tp, signbit);
tests/lib/libm/t_casinh.c
75
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_casinh.c
78
ATF_TP_ADD_TC(tp, casinh);
tests/lib/libm/t_cbrt.c
367
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_cbrt.c
370
ATF_TP_ADD_TC(tp, cbrt_nan);
tests/lib/libm/t_cbrt.c
371
ATF_TP_ADD_TC(tp, cbrt_pow);
tests/lib/libm/t_cbrt.c
372
ATF_TP_ADD_TC(tp, cbrt_inf_neg);
tests/lib/libm/t_cbrt.c
373
ATF_TP_ADD_TC(tp, cbrt_inf_pos);
tests/lib/libm/t_cbrt.c
374
ATF_TP_ADD_TC(tp, cbrt_zero_neg);
tests/lib/libm/t_cbrt.c
375
ATF_TP_ADD_TC(tp, cbrt_zero_pos);
tests/lib/libm/t_cbrt.c
377
ATF_TP_ADD_TC(tp, cbrtf_nan);
tests/lib/libm/t_cbrt.c
378
ATF_TP_ADD_TC(tp, cbrtf_powf);
tests/lib/libm/t_cbrt.c
379
ATF_TP_ADD_TC(tp, cbrtf_inf_neg);
tests/lib/libm/t_cbrt.c
380
ATF_TP_ADD_TC(tp, cbrtf_inf_pos);
tests/lib/libm/t_cbrt.c
381
ATF_TP_ADD_TC(tp, cbrtf_zero_neg);
tests/lib/libm/t_cbrt.c
382
ATF_TP_ADD_TC(tp, cbrtf_zero_pos);
tests/lib/libm/t_cbrt.c
384
ATF_TP_ADD_TC(tp, cbrtl_nan);
tests/lib/libm/t_cbrt.c
385
ATF_TP_ADD_TC(tp, cbrtl_powl);
tests/lib/libm/t_cbrt.c
386
ATF_TP_ADD_TC(tp, cbrtl_inf_neg);
tests/lib/libm/t_cbrt.c
387
ATF_TP_ADD_TC(tp, cbrtl_inf_pos);
tests/lib/libm/t_cbrt.c
388
ATF_TP_ADD_TC(tp, cbrtl_zero_neg);
tests/lib/libm/t_cbrt.c
389
ATF_TP_ADD_TC(tp, cbrtl_zero_pos);
tests/lib/libm/t_ceil.c
864
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_ceil.c
867
ATF_TP_ADD_TC(tp, ceil_basic);
tests/lib/libm/t_ceil.c
868
ATF_TP_ADD_TC(tp, ceil_nan);
tests/lib/libm/t_ceil.c
869
ATF_TP_ADD_TC(tp, ceil_inf_neg);
tests/lib/libm/t_ceil.c
870
ATF_TP_ADD_TC(tp, ceil_inf_pos);
tests/lib/libm/t_ceil.c
871
ATF_TP_ADD_TC(tp, ceil_zero_neg);
tests/lib/libm/t_ceil.c
872
ATF_TP_ADD_TC(tp, ceil_zero_pos);
tests/lib/libm/t_ceil.c
874
ATF_TP_ADD_TC(tp, ceilf_basic);
tests/lib/libm/t_ceil.c
875
ATF_TP_ADD_TC(tp, ceilf_nan);
tests/lib/libm/t_ceil.c
876
ATF_TP_ADD_TC(tp, ceilf_inf_neg);
tests/lib/libm/t_ceil.c
877
ATF_TP_ADD_TC(tp, ceilf_inf_pos);
tests/lib/libm/t_ceil.c
878
ATF_TP_ADD_TC(tp, ceilf_zero_neg);
tests/lib/libm/t_ceil.c
879
ATF_TP_ADD_TC(tp, ceilf_zero_pos);
tests/lib/libm/t_ceil.c
881
ATF_TP_ADD_TC(tp, ceill_basic);
tests/lib/libm/t_ceil.c
882
ATF_TP_ADD_TC(tp, ceill_nan);
tests/lib/libm/t_ceil.c
883
ATF_TP_ADD_TC(tp, ceill_inf_neg);
tests/lib/libm/t_ceil.c
884
ATF_TP_ADD_TC(tp, ceill_inf_pos);
tests/lib/libm/t_ceil.c
885
ATF_TP_ADD_TC(tp, ceill_zero_neg);
tests/lib/libm/t_ceil.c
886
ATF_TP_ADD_TC(tp, ceill_zero_pos);
tests/lib/libm/t_ceil.c
888
ATF_TP_ADD_TC(tp, floor_basic);
tests/lib/libm/t_ceil.c
889
ATF_TP_ADD_TC(tp, floor_nan);
tests/lib/libm/t_ceil.c
890
ATF_TP_ADD_TC(tp, floor_inf_neg);
tests/lib/libm/t_ceil.c
891
ATF_TP_ADD_TC(tp, floor_inf_pos);
tests/lib/libm/t_ceil.c
892
ATF_TP_ADD_TC(tp, floor_zero_neg);
tests/lib/libm/t_ceil.c
893
ATF_TP_ADD_TC(tp, floor_zero_pos);
tests/lib/libm/t_ceil.c
895
ATF_TP_ADD_TC(tp, floorf_basic);
tests/lib/libm/t_ceil.c
896
ATF_TP_ADD_TC(tp, floorf_nan);
tests/lib/libm/t_ceil.c
897
ATF_TP_ADD_TC(tp, floorf_inf_neg);
tests/lib/libm/t_ceil.c
898
ATF_TP_ADD_TC(tp, floorf_inf_pos);
tests/lib/libm/t_ceil.c
899
ATF_TP_ADD_TC(tp, floorf_zero_neg);
tests/lib/libm/t_ceil.c
900
ATF_TP_ADD_TC(tp, floorf_zero_pos);
tests/lib/libm/t_ceil.c
902
ATF_TP_ADD_TC(tp, floorl_basic);
tests/lib/libm/t_ceil.c
903
ATF_TP_ADD_TC(tp, floorl_nan);
tests/lib/libm/t_ceil.c
904
ATF_TP_ADD_TC(tp, floorl_inf_neg);
tests/lib/libm/t_ceil.c
905
ATF_TP_ADD_TC(tp, floorl_inf_pos);
tests/lib/libm/t_ceil.c
906
ATF_TP_ADD_TC(tp, floorl_zero_neg);
tests/lib/libm/t_ceil.c
907
ATF_TP_ADD_TC(tp, floorl_zero_pos);
tests/lib/libm/t_ceil.c
909
ATF_TP_ADD_TC(tp, trunc_basic);
tests/lib/libm/t_ceil.c
910
ATF_TP_ADD_TC(tp, trunc_nan);
tests/lib/libm/t_ceil.c
911
ATF_TP_ADD_TC(tp, trunc_inf_neg);
tests/lib/libm/t_ceil.c
912
ATF_TP_ADD_TC(tp, trunc_inf_pos);
tests/lib/libm/t_ceil.c
913
ATF_TP_ADD_TC(tp, trunc_zero_neg);
tests/lib/libm/t_ceil.c
914
ATF_TP_ADD_TC(tp, trunc_zero_pos);
tests/lib/libm/t_ceil.c
916
ATF_TP_ADD_TC(tp, truncf_basic);
tests/lib/libm/t_ceil.c
917
ATF_TP_ADD_TC(tp, truncf_nan);
tests/lib/libm/t_ceil.c
918
ATF_TP_ADD_TC(tp, truncf_inf_neg);
tests/lib/libm/t_ceil.c
919
ATF_TP_ADD_TC(tp, truncf_inf_pos);
tests/lib/libm/t_ceil.c
920
ATF_TP_ADD_TC(tp, truncf_zero_neg);
tests/lib/libm/t_ceil.c
921
ATF_TP_ADD_TC(tp, truncf_zero_pos);
tests/lib/libm/t_ceil.c
923
ATF_TP_ADD_TC(tp, truncl_basic);
tests/lib/libm/t_ceil.c
924
ATF_TP_ADD_TC(tp, truncl_nan);
tests/lib/libm/t_ceil.c
925
ATF_TP_ADD_TC(tp, truncl_inf_neg);
tests/lib/libm/t_ceil.c
926
ATF_TP_ADD_TC(tp, truncl_inf_pos);
tests/lib/libm/t_ceil.c
927
ATF_TP_ADD_TC(tp, truncl_zero_neg);
tests/lib/libm/t_ceil.c
928
ATF_TP_ADD_TC(tp, truncl_zero_pos);
tests/lib/libm/t_cos.c
370
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_cos.c
373
ATF_TP_ADD_TC(tp, cosl_angles);
tests/lib/libm/t_cos.c
374
ATF_TP_ADD_TC(tp, cosl_nan);
tests/lib/libm/t_cos.c
375
ATF_TP_ADD_TC(tp, cosl_inf_neg);
tests/lib/libm/t_cos.c
376
ATF_TP_ADD_TC(tp, cosl_inf_pos);
tests/lib/libm/t_cos.c
377
ATF_TP_ADD_TC(tp, cosl_zero_neg);
tests/lib/libm/t_cos.c
378
ATF_TP_ADD_TC(tp, cosl_zero_pos);
tests/lib/libm/t_cos.c
380
ATF_TP_ADD_TC(tp, cos_angles);
tests/lib/libm/t_cos.c
381
ATF_TP_ADD_TC(tp, cos_nan);
tests/lib/libm/t_cos.c
382
ATF_TP_ADD_TC(tp, cos_inf_neg);
tests/lib/libm/t_cos.c
383
ATF_TP_ADD_TC(tp, cos_inf_pos);
tests/lib/libm/t_cos.c
384
ATF_TP_ADD_TC(tp, cos_zero_neg);
tests/lib/libm/t_cos.c
385
ATF_TP_ADD_TC(tp, cos_zero_pos);
tests/lib/libm/t_cos.c
387
ATF_TP_ADD_TC(tp, cosf_angles);
tests/lib/libm/t_cos.c
388
ATF_TP_ADD_TC(tp, cosf_nan);
tests/lib/libm/t_cos.c
389
ATF_TP_ADD_TC(tp, cosf_inf_neg);
tests/lib/libm/t_cos.c
390
ATF_TP_ADD_TC(tp, cosf_inf_pos);
tests/lib/libm/t_cos.c
391
ATF_TP_ADD_TC(tp, cosf_zero_neg);
tests/lib/libm/t_cos.c
392
ATF_TP_ADD_TC(tp, cosf_zero_pos);
tests/lib/libm/t_cosh.c
250
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_cosh.c
253
ATF_TP_ADD_TC(tp, cosh_inrange);
tests/lib/libm/t_cosh.c
254
ATF_TP_ADD_TC(tp, cosh_nan);
tests/lib/libm/t_cosh.c
255
ATF_TP_ADD_TC(tp, cosh_inf_neg);
tests/lib/libm/t_cosh.c
256
ATF_TP_ADD_TC(tp, cosh_inf_pos);
tests/lib/libm/t_cosh.c
257
ATF_TP_ADD_TC(tp, cosh_zero_neg);
tests/lib/libm/t_cosh.c
258
ATF_TP_ADD_TC(tp, cosh_zero_pos);
tests/lib/libm/t_cosh.c
260
ATF_TP_ADD_TC(tp, coshf_inrange);
tests/lib/libm/t_cosh.c
261
ATF_TP_ADD_TC(tp, coshf_nan);
tests/lib/libm/t_cosh.c
262
ATF_TP_ADD_TC(tp, coshf_inf_neg);
tests/lib/libm/t_cosh.c
263
ATF_TP_ADD_TC(tp, coshf_inf_pos);
tests/lib/libm/t_cosh.c
264
ATF_TP_ADD_TC(tp, coshf_zero_neg);
tests/lib/libm/t_cosh.c
265
ATF_TP_ADD_TC(tp, coshf_zero_pos);
tests/lib/libm/t_erf.c
275
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_erf.c
278
ATF_TP_ADD_TC(tp, erf_nan);
tests/lib/libm/t_erf.c
279
ATF_TP_ADD_TC(tp, erf_inf_neg);
tests/lib/libm/t_erf.c
280
ATF_TP_ADD_TC(tp, erf_inf_pos);
tests/lib/libm/t_erf.c
281
ATF_TP_ADD_TC(tp, erf_zero_neg);
tests/lib/libm/t_erf.c
282
ATF_TP_ADD_TC(tp, erf_zero_pos);
tests/lib/libm/t_erf.c
284
ATF_TP_ADD_TC(tp, erff_nan);
tests/lib/libm/t_erf.c
285
ATF_TP_ADD_TC(tp, erff_inf_neg);
tests/lib/libm/t_erf.c
286
ATF_TP_ADD_TC(tp, erff_inf_pos);
tests/lib/libm/t_erf.c
287
ATF_TP_ADD_TC(tp, erff_zero_neg);
tests/lib/libm/t_erf.c
288
ATF_TP_ADD_TC(tp, erff_zero_pos);
tests/lib/libm/t_erf.c
290
ATF_TP_ADD_TC(tp, erfc_nan);
tests/lib/libm/t_erf.c
291
ATF_TP_ADD_TC(tp, erfc_inf_neg);
tests/lib/libm/t_erf.c
292
ATF_TP_ADD_TC(tp, erfc_inf_pos);
tests/lib/libm/t_erf.c
294
ATF_TP_ADD_TC(tp, erfcf_nan);
tests/lib/libm/t_erf.c
295
ATF_TP_ADD_TC(tp, erfcf_inf_neg);
tests/lib/libm/t_erf.c
296
ATF_TP_ADD_TC(tp, erfcf_inf_pos);
tests/lib/libm/t_errhandling.c
91
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_errhandling.c
94
ATF_TP_ADD_TC(tp, log);
tests/lib/libm/t_exp.c
528
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_exp.c
531
ATF_TP_ADD_TC(tp, exp2_is_nan);
tests/lib/libm/t_exp.c
532
ATF_TP_ADD_TC(tp, exp2_is_plus_zero);
tests/lib/libm/t_exp.c
533
ATF_TP_ADD_TC(tp, exp2_values);
tests/lib/libm/t_exp.c
534
ATF_TP_ADD_TC(tp, exp2_powers);
tests/lib/libm/t_exp.c
536
ATF_TP_ADD_TC(tp, exp_nan);
tests/lib/libm/t_exp.c
537
ATF_TP_ADD_TC(tp, exp_inf_neg);
tests/lib/libm/t_exp.c
538
ATF_TP_ADD_TC(tp, exp_inf_pos);
tests/lib/libm/t_exp.c
539
ATF_TP_ADD_TC(tp, exp_product);
tests/lib/libm/t_exp.c
540
ATF_TP_ADD_TC(tp, exp_zero_neg);
tests/lib/libm/t_exp.c
541
ATF_TP_ADD_TC(tp, exp_zero_pos);
tests/lib/libm/t_exp.c
543
ATF_TP_ADD_TC(tp, expf_nan);
tests/lib/libm/t_exp.c
544
ATF_TP_ADD_TC(tp, expf_inf_neg);
tests/lib/libm/t_exp.c
545
ATF_TP_ADD_TC(tp, expf_inf_pos);
tests/lib/libm/t_exp.c
546
ATF_TP_ADD_TC(tp, expf_product);
tests/lib/libm/t_exp.c
547
ATF_TP_ADD_TC(tp, expf_zero_neg);
tests/lib/libm/t_exp.c
548
ATF_TP_ADD_TC(tp, expf_zero_pos);
tests/lib/libm/t_exp.c
550
ATF_TP_ADD_TC(tp, expm1_nan);
tests/lib/libm/t_exp.c
551
ATF_TP_ADD_TC(tp, expm1_inf_neg);
tests/lib/libm/t_exp.c
552
ATF_TP_ADD_TC(tp, expm1_inf_pos);
tests/lib/libm/t_exp.c
553
ATF_TP_ADD_TC(tp, expm1_zero_neg);
tests/lib/libm/t_exp.c
554
ATF_TP_ADD_TC(tp, expm1_zero_pos);
tests/lib/libm/t_exp.c
556
ATF_TP_ADD_TC(tp, expm1f_nan);
tests/lib/libm/t_exp.c
557
ATF_TP_ADD_TC(tp, expm1f_inf_neg);
tests/lib/libm/t_exp.c
558
ATF_TP_ADD_TC(tp, expm1f_inf_pos);
tests/lib/libm/t_exp.c
559
ATF_TP_ADD_TC(tp, expm1f_zero_neg);
tests/lib/libm/t_exp.c
560
ATF_TP_ADD_TC(tp, expm1f_zero_pos);
tests/lib/libm/t_fe_round.c
450
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_fe_round.c
453
ATF_TP_ADD_TC(tp, fe_lrint);
tests/lib/libm/t_fe_round.c
454
ATF_TP_ADD_TC(tp, fe_nearbyint_rint);
tests/lib/libm/t_fe_round.c
456
ATF_TP_ADD_TC(tp, fe_nearbyintl_rintl);
tests/lib/libm/t_fe_round.c
464
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_fenv.c
393
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_fenv.c
395
ATF_TP_ADD_TC(tp, fegetround);
tests/lib/libm/t_fenv.c
396
ATF_TP_ADD_TC(tp, fesetround);
tests/lib/libm/t_fenv.c
397
ATF_TP_ADD_TC(tp, fegetexcept);
tests/lib/libm/t_fenv.c
398
ATF_TP_ADD_TC(tp, feenableexcept);
tests/lib/libm/t_fenv.c
399
ATF_TP_ADD_TC(tp, fetestexcept_trap);
tests/lib/libm/t_fenv.c
420
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_fenv.c
422
ATF_TP_ADD_TC(tp, t_nofenv);
tests/lib/libm/t_fmod.c
62
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_fmod.c
65
ATF_TP_ADD_TC(tp, fmod);
tests/lib/libm/t_hypot.c
688
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_hypot.c
691
ATF_TP_ADD_TC(tp, hypot_exact);
tests/lib/libm/t_hypot.c
692
ATF_TP_ADD_TC(tp, hypot_nan);
tests/lib/libm/t_hypot.c
693
ATF_TP_ADD_TC(tp, hypot_trivial);
tests/lib/libm/t_hypot.c
694
ATF_TP_ADD_TC(tp, hypotf_exact);
tests/lib/libm/t_hypot.c
695
ATF_TP_ADD_TC(tp, hypotf_trivial);
tests/lib/libm/t_hypot.c
696
ATF_TP_ADD_TC(tp, hypotl_exact);
tests/lib/libm/t_hypot.c
697
ATF_TP_ADD_TC(tp, hypotl_trivial);
tests/lib/libm/t_hypot.c
698
ATF_TP_ADD_TC(tp, pr50698);
tests/lib/libm/t_ilogb.c
124
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_ilogb.c
127
ATF_TP_ADD_TC(tp, ilogb);
tests/lib/libm/t_infinity.c
105
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_infinity.c
108
ATF_TP_ADD_TC(tp, infinity_float);
tests/lib/libm/t_infinity.c
109
ATF_TP_ADD_TC(tp, infinity_double);
tests/lib/libm/t_infinity.c
110
ATF_TP_ADD_TC(tp, infinity_long_double);
tests/lib/libm/t_ldexp.c
449
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_ldexp.c
452
ATF_TP_ADD_TC(tp, ldexp_basic);
tests/lib/libm/t_ldexp.c
453
ATF_TP_ADD_TC(tp, ldexp_zero);
tests/lib/libm/t_ldexp.c
454
ATF_TP_ADD_TC(tp, ldexp_infinity);
tests/lib/libm/t_ldexp.c
455
ATF_TP_ADD_TC(tp, ldexp_overflow);
tests/lib/libm/t_ldexp.c
456
ATF_TP_ADD_TC(tp, ldexp_denormal);
tests/lib/libm/t_ldexp.c
457
ATF_TP_ADD_TC(tp, ldexp_underflow);
tests/lib/libm/t_ldexp.c
458
ATF_TP_ADD_TC(tp, ldexp_denormal_large);
tests/lib/libm/t_ldexp.c
460
ATF_TP_ADD_TC(tp, ldexp_exp2);
tests/lib/libm/t_ldexp.c
461
ATF_TP_ADD_TC(tp, ldexp_nan);
tests/lib/libm/t_ldexp.c
462
ATF_TP_ADD_TC(tp, ldexp_inf_neg);
tests/lib/libm/t_ldexp.c
463
ATF_TP_ADD_TC(tp, ldexp_inf_pos);
tests/lib/libm/t_ldexp.c
464
ATF_TP_ADD_TC(tp, ldexp_zero_neg);
tests/lib/libm/t_ldexp.c
465
ATF_TP_ADD_TC(tp, ldexp_zero_pos);
tests/lib/libm/t_ldexp.c
467
ATF_TP_ADD_TC(tp, ldexpf_exp2f);
tests/lib/libm/t_ldexp.c
468
ATF_TP_ADD_TC(tp, ldexpf_nan);
tests/lib/libm/t_ldexp.c
469
ATF_TP_ADD_TC(tp, ldexpf_inf_neg);
tests/lib/libm/t_ldexp.c
470
ATF_TP_ADD_TC(tp, ldexpf_inf_pos);
tests/lib/libm/t_ldexp.c
471
ATF_TP_ADD_TC(tp, ldexpf_zero_neg);
tests/lib/libm/t_ldexp.c
472
ATF_TP_ADD_TC(tp, ldexpf_zero_pos);
tests/lib/libm/t_log.c
756
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_log.c
759
ATF_TP_ADD_TC(tp, log10_invalid);
tests/lib/libm/t_log.c
760
ATF_TP_ADD_TC(tp, log10_zero);
tests/lib/libm/t_log.c
761
ATF_TP_ADD_TC(tp, log10_exact);
tests/lib/libm/t_log.c
762
ATF_TP_ADD_TC(tp, log10_approx);
tests/lib/libm/t_log.c
763
ATF_TP_ADD_TC(tp, log10_inf);
tests/lib/libm/t_log.c
765
ATF_TP_ADD_TC(tp, log1p_invalid);
tests/lib/libm/t_log.c
766
ATF_TP_ADD_TC(tp, log1p_neg_one);
tests/lib/libm/t_log.c
767
ATF_TP_ADD_TC(tp, log1p_exact);
tests/lib/libm/t_log.c
768
ATF_TP_ADD_TC(tp, log1p_approx);
tests/lib/libm/t_log.c
769
ATF_TP_ADD_TC(tp, log1p_inf);
tests/lib/libm/t_log.c
771
ATF_TP_ADD_TC(tp, log2_invalid);
tests/lib/libm/t_log.c
772
ATF_TP_ADD_TC(tp, log2_zero);
tests/lib/libm/t_log.c
773
ATF_TP_ADD_TC(tp, log2_exact);
tests/lib/libm/t_log.c
774
ATF_TP_ADD_TC(tp, log2_approx);
tests/lib/libm/t_log.c
775
ATF_TP_ADD_TC(tp, log2_inf);
tests/lib/libm/t_log.c
777
ATF_TP_ADD_TC(tp, log_invalid);
tests/lib/libm/t_log.c
778
ATF_TP_ADD_TC(tp, log_zero);
tests/lib/libm/t_log.c
779
ATF_TP_ADD_TC(tp, log_exact);
tests/lib/libm/t_log.c
780
ATF_TP_ADD_TC(tp, log_approx);
tests/lib/libm/t_log.c
781
ATF_TP_ADD_TC(tp, log_inf);
tests/lib/libm/t_modf.c
431
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_modf.c
434
ATF_TP_ADD_TC(tp, modff);
tests/lib/libm/t_modf.c
435
ATF_TP_ADD_TC(tp, modf);
tests/lib/libm/t_modf.c
436
ATF_TP_ADD_TC(tp, modfl);
tests/lib/libm/t_next.c
858
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_next.c
862
ATF_TP_ADD_TC(tp, vaxafter);
tests/lib/libm/t_next.c
864
ATF_TP_ADD_TC(tp, next_nan);
tests/lib/libm/t_next.c
865
ATF_TP_ADD_TC(tp, next_near_0);
tests/lib/libm/t_next.c
866
ATF_TP_ADD_TC(tp, next_near_1);
tests/lib/libm/t_next.c
867
ATF_TP_ADD_TC(tp, next_near_1_5);
tests/lib/libm/t_next.c
868
ATF_TP_ADD_TC(tp, next_near_infinity);
tests/lib/libm/t_next.c
869
ATF_TP_ADD_TC(tp, next_near_sub_normal);
tests/lib/libm/t_next.c
870
ATF_TP_ADD_TC(tp, next_signed_0);
tests/lib/libm/t_next.c
871
ATF_TP_ADD_TC(tp, nextf_nan);
tests/lib/libm/t_next.c
872
ATF_TP_ADD_TC(tp, nextf_near_0);
tests/lib/libm/t_next.c
873
ATF_TP_ADD_TC(tp, nextf_near_1);
tests/lib/libm/t_next.c
874
ATF_TP_ADD_TC(tp, nextf_near_1_5);
tests/lib/libm/t_next.c
875
ATF_TP_ADD_TC(tp, nextf_near_infinity);
tests/lib/libm/t_next.c
876
ATF_TP_ADD_TC(tp, nextf_near_sub_normal);
tests/lib/libm/t_next.c
877
ATF_TP_ADD_TC(tp, nextf_signed_0);
tests/lib/libm/t_next.c
878
ATF_TP_ADD_TC(tp, nextl_nan);
tests/lib/libm/t_next.c
879
ATF_TP_ADD_TC(tp, nextl_near_0);
tests/lib/libm/t_next.c
880
ATF_TP_ADD_TC(tp, nextl_near_1);
tests/lib/libm/t_next.c
881
ATF_TP_ADD_TC(tp, nextl_near_1_5);
tests/lib/libm/t_next.c
882
ATF_TP_ADD_TC(tp, nextl_near_infinity);
tests/lib/libm/t_next.c
883
ATF_TP_ADD_TC(tp, nextl_near_sub_normal);
tests/lib/libm/t_next.c
884
ATF_TP_ADD_TC(tp, nextl_signed_0);
tests/lib/libm/t_pow.c
573
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_pow.c
576
ATF_TP_ADD_TC(tp, pow_nan_x);
tests/lib/libm/t_pow.c
577
ATF_TP_ADD_TC(tp, pow_nan_y);
tests/lib/libm/t_pow.c
578
ATF_TP_ADD_TC(tp, pow_inf_neg_x);
tests/lib/libm/t_pow.c
579
ATF_TP_ADD_TC(tp, pow_inf_neg_y);
tests/lib/libm/t_pow.c
580
ATF_TP_ADD_TC(tp, pow_inf_pos_x);
tests/lib/libm/t_pow.c
581
ATF_TP_ADD_TC(tp, pow_inf_pos_y);
tests/lib/libm/t_pow.c
582
ATF_TP_ADD_TC(tp, pow_one_neg_x);
tests/lib/libm/t_pow.c
583
ATF_TP_ADD_TC(tp, pow_one_pos_x);
tests/lib/libm/t_pow.c
584
ATF_TP_ADD_TC(tp, pow_zero_x);
tests/lib/libm/t_pow.c
585
ATF_TP_ADD_TC(tp, pow_zero_y);
tests/lib/libm/t_pow.c
587
ATF_TP_ADD_TC(tp, powf_nan_x);
tests/lib/libm/t_pow.c
588
ATF_TP_ADD_TC(tp, powf_nan_y);
tests/lib/libm/t_pow.c
589
ATF_TP_ADD_TC(tp, powf_inf_neg_x);
tests/lib/libm/t_pow.c
590
ATF_TP_ADD_TC(tp, powf_inf_neg_y);
tests/lib/libm/t_pow.c
591
ATF_TP_ADD_TC(tp, powf_inf_pos_x);
tests/lib/libm/t_pow.c
592
ATF_TP_ADD_TC(tp, powf_inf_pos_y);
tests/lib/libm/t_pow.c
593
ATF_TP_ADD_TC(tp, powf_one_neg_x);
tests/lib/libm/t_pow.c
594
ATF_TP_ADD_TC(tp, powf_one_pos_x);
tests/lib/libm/t_pow.c
595
ATF_TP_ADD_TC(tp, powf_zero_x);
tests/lib/libm/t_pow.c
596
ATF_TP_ADD_TC(tp, powf_zero_y);
tests/lib/libm/t_precision.c
70
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_precision.c
72
ATF_TP_ADD_TC(tp, t_precision);
tests/lib/libm/t_remquo.c
46
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_remquo.c
49
ATF_TP_ADD_TC(tp, remquo_args);
tests/lib/libm/t_round.c
129
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_round.c
132
ATF_TP_ADD_TC(tp, round_dir);
tests/lib/libm/t_round.c
133
ATF_TP_ADD_TC(tp, rounding_alpha);
tests/lib/libm/t_round.c
134
ATF_TP_ADD_TC(tp, rounding_alpha_simple);
tests/lib/libm/t_scalbn.c
491
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_scalbn.c
494
ATF_TP_ADD_TC(tp, scalbn_val);
tests/lib/libm/t_scalbn.c
495
ATF_TP_ADD_TC(tp, scalbn_nan);
tests/lib/libm/t_scalbn.c
496
ATF_TP_ADD_TC(tp, scalbn_inf_neg);
tests/lib/libm/t_scalbn.c
497
ATF_TP_ADD_TC(tp, scalbn_inf_pos);
tests/lib/libm/t_scalbn.c
498
ATF_TP_ADD_TC(tp, scalbn_ldexp);
tests/lib/libm/t_scalbn.c
499
ATF_TP_ADD_TC(tp, scalbn_zero_neg);
tests/lib/libm/t_scalbn.c
500
ATF_TP_ADD_TC(tp, scalbn_zero_pos);
tests/lib/libm/t_scalbn.c
502
ATF_TP_ADD_TC(tp, scalbnf_val);
tests/lib/libm/t_scalbn.c
503
ATF_TP_ADD_TC(tp, scalbnf_nan);
tests/lib/libm/t_scalbn.c
504
ATF_TP_ADD_TC(tp, scalbnf_inf_neg);
tests/lib/libm/t_scalbn.c
505
ATF_TP_ADD_TC(tp, scalbnf_inf_pos);
tests/lib/libm/t_scalbn.c
506
ATF_TP_ADD_TC(tp, scalbnf_ldexpf);
tests/lib/libm/t_scalbn.c
507
ATF_TP_ADD_TC(tp, scalbnf_zero_neg);
tests/lib/libm/t_scalbn.c
508
ATF_TP_ADD_TC(tp, scalbnf_zero_pos);
tests/lib/libm/t_scalbn.c
510
ATF_TP_ADD_TC(tp, scalbnl_val);
tests/lib/libm/t_scalbn.c
511
ATF_TP_ADD_TC(tp, scalbnl_nan);
tests/lib/libm/t_scalbn.c
512
ATF_TP_ADD_TC(tp, scalbnl_inf_neg);
tests/lib/libm/t_scalbn.c
513
ATF_TP_ADD_TC(tp, scalbnl_inf_pos);
tests/lib/libm/t_scalbn.c
515
ATF_TP_ADD_TC(tp, scalbnl_zero_neg);
tests/lib/libm/t_scalbn.c
516
ATF_TP_ADD_TC(tp, scalbnl_zero_pos);
tests/lib/libm/t_sin.c
274
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_sin.c
277
ATF_TP_ADD_TC(tp, sin_angles);
tests/lib/libm/t_sin.c
278
ATF_TP_ADD_TC(tp, sin_nan);
tests/lib/libm/t_sin.c
279
ATF_TP_ADD_TC(tp, sin_inf_neg);
tests/lib/libm/t_sin.c
280
ATF_TP_ADD_TC(tp, sin_inf_pos);
tests/lib/libm/t_sin.c
281
ATF_TP_ADD_TC(tp, sin_zero_neg);
tests/lib/libm/t_sin.c
282
ATF_TP_ADD_TC(tp, sin_zero_pos);
tests/lib/libm/t_sin.c
284
ATF_TP_ADD_TC(tp, sinf_angles);
tests/lib/libm/t_sin.c
285
ATF_TP_ADD_TC(tp, sinf_nan);
tests/lib/libm/t_sin.c
286
ATF_TP_ADD_TC(tp, sinf_inf_neg);
tests/lib/libm/t_sin.c
287
ATF_TP_ADD_TC(tp, sinf_inf_pos);
tests/lib/libm/t_sin.c
288
ATF_TP_ADD_TC(tp, sinf_zero_neg);
tests/lib/libm/t_sin.c
289
ATF_TP_ADD_TC(tp, sinf_zero_pos);
tests/lib/libm/t_sincos.c
450
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_sincos.c
453
ATF_TP_ADD_TC(tp, sincosl_angles);
tests/lib/libm/t_sincos.c
454
ATF_TP_ADD_TC(tp, sincosl_nan);
tests/lib/libm/t_sincos.c
455
ATF_TP_ADD_TC(tp, sincosl_inf_neg);
tests/lib/libm/t_sincos.c
456
ATF_TP_ADD_TC(tp, sincosl_inf_pos);
tests/lib/libm/t_sincos.c
457
ATF_TP_ADD_TC(tp, sincosl_zero_neg);
tests/lib/libm/t_sincos.c
458
ATF_TP_ADD_TC(tp, sincosl_zero_pos);
tests/lib/libm/t_sincos.c
460
ATF_TP_ADD_TC(tp, sincos_angles);
tests/lib/libm/t_sincos.c
461
ATF_TP_ADD_TC(tp, sincos_nan);
tests/lib/libm/t_sincos.c
462
ATF_TP_ADD_TC(tp, sincos_inf_neg);
tests/lib/libm/t_sincos.c
463
ATF_TP_ADD_TC(tp, sincos_inf_pos);
tests/lib/libm/t_sincos.c
464
ATF_TP_ADD_TC(tp, sincos_zero_neg);
tests/lib/libm/t_sincos.c
465
ATF_TP_ADD_TC(tp, sincos_zero_pos);
tests/lib/libm/t_sincos.c
467
ATF_TP_ADD_TC(tp, sincosf_angles);
tests/lib/libm/t_sincos.c
468
ATF_TP_ADD_TC(tp, sincosf_nan);
tests/lib/libm/t_sincos.c
469
ATF_TP_ADD_TC(tp, sincosf_inf_neg);
tests/lib/libm/t_sincos.c
470
ATF_TP_ADD_TC(tp, sincosf_inf_pos);
tests/lib/libm/t_sincos.c
471
ATF_TP_ADD_TC(tp, sincosf_zero_neg);
tests/lib/libm/t_sincos.c
472
ATF_TP_ADD_TC(tp, sincosf_zero_pos);
tests/lib/libm/t_sinh.c
253
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_sinh.c
256
ATF_TP_ADD_TC(tp, sinh_inrange);
tests/lib/libm/t_sinh.c
257
ATF_TP_ADD_TC(tp, sinh_nan);
tests/lib/libm/t_sinh.c
258
ATF_TP_ADD_TC(tp, sinh_inf_neg);
tests/lib/libm/t_sinh.c
259
ATF_TP_ADD_TC(tp, sinh_inf_pos);
tests/lib/libm/t_sinh.c
260
ATF_TP_ADD_TC(tp, sinh_zero_neg);
tests/lib/libm/t_sinh.c
261
ATF_TP_ADD_TC(tp, sinh_zero_pos);
tests/lib/libm/t_sinh.c
263
ATF_TP_ADD_TC(tp, sinhf_inrange);
tests/lib/libm/t_sinh.c
264
ATF_TP_ADD_TC(tp, sinhf_nan);
tests/lib/libm/t_sinh.c
265
ATF_TP_ADD_TC(tp, sinhf_inf_neg);
tests/lib/libm/t_sinh.c
266
ATF_TP_ADD_TC(tp, sinhf_inf_pos);
tests/lib/libm/t_sinh.c
267
ATF_TP_ADD_TC(tp, sinhf_zero_neg);
tests/lib/libm/t_sinh.c
268
ATF_TP_ADD_TC(tp, sinhf_zero_pos);
tests/lib/libm/t_sqrt.c
361
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_sqrt.c
364
ATF_TP_ADD_TC(tp, sqrt_nan);
tests/lib/libm/t_sqrt.c
365
ATF_TP_ADD_TC(tp, sqrt_pow);
tests/lib/libm/t_sqrt.c
366
ATF_TP_ADD_TC(tp, sqrt_inf_neg);
tests/lib/libm/t_sqrt.c
367
ATF_TP_ADD_TC(tp, sqrt_inf_pos);
tests/lib/libm/t_sqrt.c
368
ATF_TP_ADD_TC(tp, sqrt_zero_neg);
tests/lib/libm/t_sqrt.c
369
ATF_TP_ADD_TC(tp, sqrt_zero_pos);
tests/lib/libm/t_sqrt.c
371
ATF_TP_ADD_TC(tp, sqrtf_nan);
tests/lib/libm/t_sqrt.c
372
ATF_TP_ADD_TC(tp, sqrtf_powf);
tests/lib/libm/t_sqrt.c
373
ATF_TP_ADD_TC(tp, sqrtf_inf_neg);
tests/lib/libm/t_sqrt.c
374
ATF_TP_ADD_TC(tp, sqrtf_inf_pos);
tests/lib/libm/t_sqrt.c
375
ATF_TP_ADD_TC(tp, sqrtf_zero_neg);
tests/lib/libm/t_sqrt.c
376
ATF_TP_ADD_TC(tp, sqrtf_zero_pos);
tests/lib/libm/t_sqrt.c
378
ATF_TP_ADD_TC(tp, sqrtl_nan);
tests/lib/libm/t_sqrt.c
379
ATF_TP_ADD_TC(tp, sqrtl_powl);
tests/lib/libm/t_sqrt.c
380
ATF_TP_ADD_TC(tp, sqrtl_inf_neg);
tests/lib/libm/t_sqrt.c
381
ATF_TP_ADD_TC(tp, sqrtl_inf_pos);
tests/lib/libm/t_sqrt.c
382
ATF_TP_ADD_TC(tp, sqrtl_zero_neg);
tests/lib/libm/t_sqrt.c
383
ATF_TP_ADD_TC(tp, sqrtl_zero_pos);
tests/lib/libm/t_tan.c
272
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_tan.c
275
ATF_TP_ADD_TC(tp, tan_angles);
tests/lib/libm/t_tan.c
276
ATF_TP_ADD_TC(tp, tan_nan);
tests/lib/libm/t_tan.c
277
ATF_TP_ADD_TC(tp, tan_inf_neg);
tests/lib/libm/t_tan.c
278
ATF_TP_ADD_TC(tp, tan_inf_pos);
tests/lib/libm/t_tan.c
279
ATF_TP_ADD_TC(tp, tan_zero_neg);
tests/lib/libm/t_tan.c
280
ATF_TP_ADD_TC(tp, tan_zero_pos);
tests/lib/libm/t_tan.c
282
ATF_TP_ADD_TC(tp, tanf_angles);
tests/lib/libm/t_tan.c
283
ATF_TP_ADD_TC(tp, tanf_nan);
tests/lib/libm/t_tan.c
284
ATF_TP_ADD_TC(tp, tanf_inf_neg);
tests/lib/libm/t_tan.c
285
ATF_TP_ADD_TC(tp, tanf_inf_pos);
tests/lib/libm/t_tan.c
286
ATF_TP_ADD_TC(tp, tanf_zero_neg);
tests/lib/libm/t_tan.c
287
ATF_TP_ADD_TC(tp, tanf_zero_pos);
tests/lib/libm/t_tanh.c
191
ATF_TP_ADD_TCS(tp)
tests/lib/libm/t_tanh.c
194
ATF_TP_ADD_TC(tp, tanh_nan);
tests/lib/libm/t_tanh.c
195
ATF_TP_ADD_TC(tp, tanh_inf_neg);
tests/lib/libm/t_tanh.c
196
ATF_TP_ADD_TC(tp, tanh_inf_pos);
tests/lib/libm/t_tanh.c
197
ATF_TP_ADD_TC(tp, tanh_zero_neg);
tests/lib/libm/t_tanh.c
198
ATF_TP_ADD_TC(tp, tanh_zero_pos);
tests/lib/libm/t_tanh.c
200
ATF_TP_ADD_TC(tp, tanhf_nan);
tests/lib/libm/t_tanh.c
201
ATF_TP_ADD_TC(tp, tanhf_inf_neg);
tests/lib/libm/t_tanh.c
202
ATF_TP_ADD_TC(tp, tanhf_inf_pos);
tests/lib/libm/t_tanh.c
203
ATF_TP_ADD_TC(tp, tanhf_zero_neg);
tests/lib/libm/t_tanh.c
204
ATF_TP_ADD_TC(tp, tanhf_zero_pos);
tests/lib/libossaudio/t_ossaudio.c
456
ATF_TP_ADD_TCS(tp)
tests/lib/libossaudio/t_ossaudio.c
458
ATF_TP_ADD_TC(tp, oss_dsp_init);
tests/lib/libossaudio/t_ossaudio.c
459
ATF_TP_ADD_TC(tp, oss_dsp_caps);
tests/lib/libossaudio/t_ossaudio.c
460
ATF_TP_ADD_TC(tp, oss_dsp_trigger_read);
tests/lib/libossaudio/t_ossaudio.c
461
ATF_TP_ADD_TC(tp, oss_dsp_trigger_write);
tests/lib/libposix/t_rename.c
83
ATF_TP_ADD_TCS(tp)
tests/lib/libposix/t_rename.c
86
ATF_TP_ADD_TC(tp, rename);
tests/lib/libppath/t_ppath.c
1514
ATF_TP_ADD_TCS(tp)
tests/lib/libppath/t_ppath.c
1517
ATF_TP_ADD_TC(tp, push_until_full);
tests/lib/libppath/t_ppath.c
1518
ATF_TP_ADD_TC(tp, pop_until_empty);
tests/lib/libppath/t_ppath.c
1519
ATF_TP_ADD_TC(tp, length);
tests/lib/libppath/t_ppath.c
1520
ATF_TP_ADD_TC(tp, component_at);
tests/lib/libppath/t_ppath.c
1521
ATF_TP_ADD_TC(tp, get_idx_key);
tests/lib/libppath/t_ppath.c
1522
ATF_TP_ADD_TC(tp, ppath_copy);
tests/lib/libppath/t_ppath.c
1523
ATF_TP_ADD_TC(tp, replace);
tests/lib/libppath/t_ppath.c
1525
ATF_TP_ADD_TC(tp, delete_bool_eftype);
tests/lib/libppath/t_ppath.c
1526
ATF_TP_ADD_TC(tp, delete_bool_enoent);
tests/lib/libppath/t_ppath.c
1527
ATF_TP_ADD_TC(tp, delete_bool_success);
tests/lib/libppath/t_ppath.c
1529
ATF_TP_ADD_TC(tp, get_bool_eftype);
tests/lib/libppath/t_ppath.c
1530
ATF_TP_ADD_TC(tp, get_bool_enoent);
tests/lib/libppath/t_ppath.c
1531
ATF_TP_ADD_TC(tp, get_bool_success);
tests/lib/libppath/t_ppath.c
1533
ATF_TP_ADD_TC(tp, copydel_bool_success);
tests/lib/libppath/t_ppath.c
1534
ATF_TP_ADD_TC(tp, copydel_object_twice_success);
tests/lib/libppath/t_ppath.c
1535
ATF_TP_ADD_TC(tp, copyset_object_twice_success);
tests/lib/libppath/t_ppath.c
1536
ATF_TP_ADD_TC(tp, copyset_bool_success);
tests/lib/libppath/t_ppath.c
1537
ATF_TP_ADD_TC(tp, create_bool_eexist);
tests/lib/libppath/t_ppath.c
1538
ATF_TP_ADD_TC(tp, create_bool_success);
tests/lib/libppath/t_ppath.c
1539
ATF_TP_ADD_TC(tp, set_bool_enoent);
tests/lib/libppath/t_ppath.c
1540
ATF_TP_ADD_TC(tp, set_bool_eftype);
tests/lib/libppath/t_ppath.c
1541
ATF_TP_ADD_TC(tp, set_bool_success);
tests/lib/libppath/t_ppath.c
1543
ATF_TP_ADD_TC(tp, get_string_eftype);
tests/lib/libppath/t_ppath.c
1544
ATF_TP_ADD_TC(tp, get_string_enoent);
tests/lib/libppath/t_ppath.c
1545
ATF_TP_ADD_TC(tp, get_string_success);
tests/lib/libprop/t_proplib.c
959
ATF_TP_ADD_TCS(tp)
tests/lib/libprop/t_proplib.c
962
ATF_TP_ADD_TC(tp, prop_basic);
tests/lib/libprop/t_proplib.c
963
ATF_TP_ADD_TC(tp, prop_dictionary_equals);
tests/lib/libprop/t_proplib.c
964
ATF_TP_ADD_TC(tp, prop_dictionary_internalize_base64);
tests/lib/libprop/t_proplib.c
965
ATF_TP_ADD_TC(tp, prop_dict_util);
tests/lib/libprop/t_proplib.c
966
ATF_TP_ADD_TC(tp, prop_data_basic);
tests/lib/libprop/t_proplib.c
967
ATF_TP_ADD_TC(tp, prop_number_basic);
tests/lib/libprop/t_proplib.c
968
ATF_TP_ADD_TC(tp, prop_number_range_check);
tests/lib/libprop/t_proplib.c
969
ATF_TP_ADD_TC(tp, prop_string_basic);
tests/lib/libpthread/cancelpoint.h
131
ATF_TP_ADD_TC(tp, CANCELPOINT)
tests/lib/libpthread/dlopen/t_dlopen.c
234
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/dlopen/t_dlopen.c
237
ATF_TP_ADD_TC(tp, dlopen);
tests/lib/libpthread/dlopen/t_dlopen.c
238
ATF_TP_ADD_TC(tp, dlopen_mutex);
tests/lib/libpthread/dlopen/t_dlopen.c
239
ATF_TP_ADD_TC(tp, dlopen_mutex_libc);
tests/lib/libpthread/dlopen/t_dlopen.c
240
ATF_TP_ADD_TC(tp, dlopen_mutex_libpthread);
tests/lib/libpthread/dlopen/t_dlopen.c
242
ATF_TP_ADD_TC(tp, dlopen_lazyglobal);
tests/lib/libpthread/dlopen/t_dlopen.c
243
ATF_TP_ADD_TC(tp, dlopen_mutex_lazyglobal);
tests/lib/libpthread/dlopen/t_dlopen.c
244
ATF_TP_ADD_TC(tp, dlopen_mutex_libc_lazyglobal);
tests/lib/libpthread/dlopen/t_dlopen.c
245
ATF_TP_ADD_TC(tp, dlopen_mutex_libpthread_lazyglobal);
tests/lib/libpthread/dlopen/t_dso_pthread_create.c
106
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/dlopen/t_dso_pthread_create.c
108
ATF_TP_ADD_TC(tp, dso_pthread_create_dso);
tests/lib/libpthread/dlopen/t_main_pthread_create.c
100
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/dlopen/t_main_pthread_create.c
102
ATF_TP_ADD_TC(tp, main_pthread_create_main);
tests/lib/libpthread/dlopen/t_main_pthread_create.c
103
ATF_TP_ADD_TC(tp, main_pthread_create_dso);
tests/lib/libpthread/t_barrier.c
105
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_barrier.c
107
ATF_TP_ADD_TC(tp, barrier);
tests/lib/libpthread/t_call_once.c
84
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_call_once.c
86
ATF_TP_ADD_TC(tp, call_once);
tests/lib/libpthread/t_cancellation.c
100
pthread_t *tp = cookie;
tests/lib/libpthread/t_cancellation.c
103
RZ(pthread_join(*tp, &result));
tests/lib/libpthread/t_cancellation.c
110
thrd_t *tp = cookie;
tests/lib/libpthread/t_cancellation.c
113
RT(thrd_join(*tp, &result));
tests/lib/libpthread/t_cancellation.c
1466
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_cancellation.c
1529
ATF_TP_ADD_TC(tp, cleanuppop0);
tests/lib/libpthread/t_cancellation.c
1530
ATF_TP_ADD_TC(tp, cleanuppop1);
tests/lib/libpthread/t_cancellation.c
1531
ATF_TP_ADD_TC(tp, cancelself_async);
tests/lib/libpthread/t_cancellation.c
1532
ATF_TP_ADD_TC(tp, cancelself_deferred);
tests/lib/libpthread/t_cancellation.c
1533
ATF_TP_ADD_TC(tp, defaults);
tests/lib/libpthread/t_cancellation.c
1534
ATF_TP_ADD_TC(tp, disable_enable);
tests/lib/libpthread/t_cancellation.c
1535
ATF_TP_ADD_TC(tp, disable_enable_async);
tests/lib/libpthread/t_cancellation.c
1536
ATF_TP_ADD_TC(tp, disable_enable_setcanceltype_async);
tests/lib/libpthread/t_cancellation.c
1537
ATF_TP_ADD_TC(tp, setcanceltype_async);
tests/lib/libpthread/t_cancellation.c
1538
ATF_TP_ADD_TC(tp, notestcancel_loop_async);
tests/lib/libpthread/t_cancellation.c
1539
ATF_TP_ADD_TC(tp, sigsafecancelstate);
tests/lib/libpthread/t_cancellation.c
1540
ATF_TP_ADD_TC(tp, testcancel_loop);
tests/lib/libpthread/t_cnd.c
167
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_cnd.c
169
ATF_TP_ADD_TC(tp, cnd_init);
tests/lib/libpthread/t_cnd.c
170
ATF_TP_ADD_TC(tp, cnd_broadcast);
tests/lib/libpthread/t_cnd.c
171
ATF_TP_ADD_TC(tp, cnd_signal);
tests/lib/libpthread/t_cnd.c
172
ATF_TP_ADD_TC(tp, cnd_timedwait);
tests/lib/libpthread/t_compat_cancel.c
269
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_cond.c
570
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_cond.c
573
ATF_TP_ADD_TC(tp, signal_delay_wait);
tests/lib/libpthread/t_cond.c
574
ATF_TP_ADD_TC(tp, signal_before_unlock);
tests/lib/libpthread/t_cond.c
575
ATF_TP_ADD_TC(tp, signal_before_unlock_static_init);
tests/lib/libpthread/t_cond.c
576
ATF_TP_ADD_TC(tp, signal_wait_race);
tests/lib/libpthread/t_cond.c
577
ATF_TP_ADD_TC(tp, cond_timedwait_race);
tests/lib/libpthread/t_cond.c
578
ATF_TP_ADD_TC(tp, broadcast);
tests/lib/libpthread/t_cond.c
579
ATF_TP_ADD_TC(tp, bogus_timedwaits);
tests/lib/libpthread/t_cond.c
580
ATF_TP_ADD_TC(tp, destroy_after_cancel);
tests/lib/libpthread/t_cond.c
581
ATF_TP_ADD_TC(tp, condattr);
tests/lib/libpthread/t_condwait.c
137
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_condwait.c
139
ATF_TP_ADD_TC(tp, cond_wait_real);
tests/lib/libpthread/t_condwait.c
140
ATF_TP_ADD_TC(tp, cond_wait_mono);
tests/lib/libpthread/t_detach.c
91
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_detach.c
93
ATF_TP_ADD_TC(tp, pthread_detach);
tests/lib/libpthread/t_equal.c
69
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_equal.c
71
ATF_TP_ADD_TC(tp, pthread_equal);
tests/lib/libpthread/t_fork.c
102
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_fork.c
104
ATF_TP_ADD_TC(tp, fork);
tests/lib/libpthread/t_fpu.c
147
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_fpu.c
149
ATF_TP_ADD_TC(tp, fpu);
tests/lib/libpthread/t_join.c
171
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_join.c
174
ATF_TP_ADD_TC(tp, pthread_join);
tests/lib/libpthread/t_kill.c
142
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_kill.c
144
ATF_TP_ADD_TC(tp, simple);
tests/lib/libpthread/t_mtx.c
204
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_mtx.c
206
ATF_TP_ADD_TC(tp, mtx_init);
tests/lib/libpthread/t_mtx.c
207
ATF_TP_ADD_TC(tp, mtx_lock);
tests/lib/libpthread/t_mtx.c
208
ATF_TP_ADD_TC(tp, mtx_timedlock);
tests/lib/libpthread/t_mtx.c
209
ATF_TP_ADD_TC(tp, mtx_trylock);
tests/lib/libpthread/t_mutex.c
553
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_mutex.c
555
ATF_TP_ADD_TC(tp, mutex1);
tests/lib/libpthread/t_mutex.c
556
ATF_TP_ADD_TC(tp, mutex2);
tests/lib/libpthread/t_mutex.c
557
ATF_TP_ADD_TC(tp, mutex3);
tests/lib/libpthread/t_mutex.c
558
ATF_TP_ADD_TC(tp, mutex4);
tests/lib/libpthread/t_mutex.c
559
ATF_TP_ADD_TC(tp, mutex5);
tests/lib/libpthread/t_mutex.c
560
ATF_TP_ADD_TC(tp, mutexattr1);
tests/lib/libpthread/t_mutex.c
561
ATF_TP_ADD_TC(tp, mutexattr2);
tests/lib/libpthread/t_mutex.c
564
ATF_TP_ADD_TC(tp, timedmutex1);
tests/lib/libpthread/t_mutex.c
565
ATF_TP_ADD_TC(tp, timedmutex2);
tests/lib/libpthread/t_mutex.c
566
ATF_TP_ADD_TC(tp, timedmutex3);
tests/lib/libpthread/t_mutex.c
567
ATF_TP_ADD_TC(tp, timedmutex4);
tests/lib/libpthread/t_name.c
100
ATF_TP_ADD_TC(tp, name);
tests/lib/libpthread/t_name.c
98
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_once.c
263
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_once.c
265
ATF_TP_ADD_TC(tp, once1);
tests/lib/libpthread/t_once.c
266
ATF_TP_ADD_TC(tp, once2);
tests/lib/libpthread/t_once.c
267
ATF_TP_ADD_TC(tp, once3);
tests/lib/libpthread/t_once.c
268
ATF_TP_ADD_TC(tp, oncefork);
tests/lib/libpthread/t_preempt.c
123
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_preempt.c
125
ATF_TP_ADD_TC(tp, preempt1);
tests/lib/libpthread/t_rwlock.c
135
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_rwlock.c
137
ATF_TP_ADD_TC(tp, rwlock1);
tests/lib/libpthread/t_rwlock.c
138
ATF_TP_ADD_TC(tp, rwlock_static);
tests/lib/libpthread/t_sem.c
299
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_sem.c
301
ATF_TP_ADD_TC(tp, named);
tests/lib/libpthread/t_sem.c
302
ATF_TP_ADD_TC(tp, unnamed);
tests/lib/libpthread/t_sem.c
303
ATF_TP_ADD_TC(tp, before_start_no_threads);
tests/lib/libpthread/t_sem.c
304
ATF_TP_ADD_TC(tp, before_start_one_thread);
tests/lib/libpthread/t_sigalarm.c
102
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_sigalarm.c
104
ATF_TP_ADD_TC(tp, sigalarm);
tests/lib/libpthread/t_siglongjmp.c
104
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_siglongjmp.c
106
ATF_TP_ADD_TC(tp, siglongjmp1);
tests/lib/libpthread/t_sigmask.c
252
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_sigmask.c
255
ATF_TP_ADD_TC(tp, upcalls_not_started);
tests/lib/libpthread/t_sigmask.c
256
ATF_TP_ADD_TC(tp, before_threads);
tests/lib/libpthread/t_sigmask.c
257
ATF_TP_ADD_TC(tp, respected_while_running);
tests/lib/libpthread/t_sigmask.c
258
ATF_TP_ADD_TC(tp, incorrect_mask_bug);
tests/lib/libpthread/t_sigsuspend.c
85
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_sigsuspend.c
87
ATF_TP_ADD_TC(tp, sigsuspend);
tests/lib/libpthread/t_sleep.c
101
ATF_TP_ADD_TC(tp, sleep1);
tests/lib/libpthread/t_sleep.c
99
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_stack.c
484
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_stack.c
487
ATF_TP_ADD_TC(tp, stack1);
tests/lib/libpthread/t_stack.c
488
ATF_TP_ADD_TC(tp, stack2);
tests/lib/libpthread/t_swapcontext.c
106
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_swapcontext.c
108
ATF_TP_ADD_TC(tp, swapcontext1);
tests/lib/libpthread/t_thrd.c
227
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_thrd.c
229
ATF_TP_ADD_TC(tp, thrd_create);
tests/lib/libpthread/t_thrd.c
230
ATF_TP_ADD_TC(tp, thrd_current);
tests/lib/libpthread/t_thrd.c
231
ATF_TP_ADD_TC(tp, thrd_detach);
tests/lib/libpthread/t_thrd.c
232
ATF_TP_ADD_TC(tp, thrd_exit);
tests/lib/libpthread/t_thrd.c
233
ATF_TP_ADD_TC(tp, thrd_sleep);
tests/lib/libpthread/t_thrd.c
234
ATF_TP_ADD_TC(tp, thrd_yield);
tests/lib/libpthread/t_tss.c
166
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/t_tss.c
168
ATF_TP_ADD_TC(tp, tss_create);
tests/lib/libpthread/t_tss.c
169
ATF_TP_ADD_TC(tp, tss_set);
tests/lib/libpthread/t_tss.c
170
ATF_TP_ADD_TC(tp, tss_destructor_main_thread);
tests/lib/libpthread/t_tss.c
171
ATF_TP_ADD_TC(tp, tss_destructor_thread_exit);
tests/lib/libpthread/weak/t_pthread_weak_nothread.c
58
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/weak/t_pthread_weak_nothread.c
60
ATF_TP_ADD_TC(tp, mutex);
tests/lib/libpthread/weak/t_pthread_weak_nothread.c
61
ATF_TP_ADD_TC(tp, thread_creation_failure);
tests/lib/libpthread/weak/t_pthread_weak_threaded.c
58
ATF_TP_ADD_TCS(tp)
tests/lib/libpthread/weak/t_pthread_weak_threaded.c
60
ATF_TP_ADD_TC(tp, mutex);
tests/lib/libpthread/weak/t_pthread_weak_threaded.c
61
ATF_TP_ADD_TC(tp, thread_creation);
tests/lib/librefuse/t_refuse_opt.c
405
ATF_TP_ADD_TCS(tp)
tests/lib/librefuse/t_refuse_opt.c
407
ATF_TP_ADD_TC(tp, t_fuse_opt_add_arg);
tests/lib/librefuse/t_refuse_opt.c
408
ATF_TP_ADD_TC(tp, t_fuse_opt_insert_arg);
tests/lib/librefuse/t_refuse_opt.c
409
ATF_TP_ADD_TC(tp, t_fuse_opt_add_opt);
tests/lib/librefuse/t_refuse_opt.c
410
ATF_TP_ADD_TC(tp, t_fuse_opt_add_opt_escaped);
tests/lib/librefuse/t_refuse_opt.c
411
ATF_TP_ADD_TC(tp, t_fuse_opt_match);
tests/lib/librefuse/t_refuse_opt.c
412
ATF_TP_ADD_TC(tp, t_fuse_opt_parse_null_args);
tests/lib/librefuse/t_refuse_opt.c
413
ATF_TP_ADD_TC(tp, t_fuse_opt_parse_null_opts);
tests/lib/librefuse/t_refuse_opt.c
414
ATF_TP_ADD_TC(tp, t_fuse_opt_parse_null_proc);
tests/lib/librefuse/t_refuse_opt.c
415
ATF_TP_ADD_TC(tp, t_fuse_opt_parse);
tests/lib/librt/t_sched.c
246
ATF_TP_ADD_TCS(tp)
tests/lib/librt/t_sched.c
249
ATF_TP_ADD_TC(tp, sched_getparam);
tests/lib/librt/t_sched.c
250
ATF_TP_ADD_TC(tp, sched_priority);
tests/lib/librt/t_sched.c
252
ATF_TP_ADD_TC(tp, sched_setscheduler_1);
tests/lib/librt/t_sched.c
253
ATF_TP_ADD_TC(tp, sched_setscheduler_2);
tests/lib/librt/t_sched.c
254
ATF_TP_ADD_TC(tp, sched_setscheduler_3);
tests/lib/librt/t_sched.c
255
ATF_TP_ADD_TC(tp, sched_setscheduler_4);
tests/lib/librt/t_sched.c
257
ATF_TP_ADD_TC(tp, sched_rr_get_interval_1);
tests/lib/librt/t_sched.c
258
ATF_TP_ADD_TC(tp, sched_rr_get_interval_2);
tests/lib/librt/t_sem.c
342
ATF_TP_ADD_TCS(tp)
tests/lib/librt/t_sem.c
345
ATF_TP_ADD_TC(tp, basic);
tests/lib/librt/t_sem.c
346
ATF_TP_ADD_TC(tp, child);
tests/lib/librt/t_sem.c
347
ATF_TP_ADD_TC(tp, pshared);
tests/lib/librt/t_sem.c
348
ATF_TP_ADD_TC(tp, invalid_ops);
tests/lib/librt/t_sem.c
349
ATF_TP_ADD_TC(tp, sem_open_address);
tests/lib/librumpclient/t_fd.c
140
ATF_TP_ADD_TCS(tp)
tests/lib/librumpclient/t_fd.c
142
ATF_TP_ADD_TC(tp, bigenough);
tests/lib/librumpclient/t_fd.c
143
ATF_TP_ADD_TC(tp, sigio);
tests/lib/libskey/t_algorithms.c
113
ATF_TP_ADD_TCS(tp)
tests/lib/libskey/t_algorithms.c
116
ATF_TP_ADD_TC(tp, md4);
tests/lib/libskey/t_algorithms.c
117
ATF_TP_ADD_TC(tp, md5);
tests/lib/libskey/t_algorithms.c
118
ATF_TP_ADD_TC(tp, sha1);
tests/lib/libusbhid/t_usbhid.c
441
ATF_TP_ADD_TCS(tp)
tests/lib/libusbhid/t_usbhid.c
444
ATF_TP_ADD_TC(tp, check_hid_logical_range);
tests/lib/libusbhid/t_usbhid.c
445
ATF_TP_ADD_TC(tp, check_hid_physical_range);
tests/lib/libusbhid/t_usbhid.c
446
ATF_TP_ADD_TC(tp, check_hid_usage);
tests/lib/libusbhid/t_usbhid.c
447
ATF_TP_ADD_TC(tp, check_hid_get_data);
tests/lib/libusbhid/t_usbhid.c
448
ATF_TP_ADD_TC(tp, check_hid_set_data);
tests/lib/libusbhid/t_usbhid.c
449
ATF_TP_ADD_TC(tp, check_parse_just_pop);
tests/lib/libutil/t_efun.c
124
ATF_TP_ADD_TCS(tp)
tests/lib/libutil/t_efun.c
129
ATF_TP_ADD_TC(tp, ecalloc);
tests/lib/libutil/t_efun.c
130
ATF_TP_ADD_TC(tp, efopen);
tests/lib/libutil/t_efun.c
131
ATF_TP_ADD_TC(tp, emalloc);
tests/lib/libutil/t_efun.c
132
ATF_TP_ADD_TC(tp, erealloc);
tests/lib/libutil/t_parsedate.c
621
ATF_TP_ADD_TCS(tp)
tests/lib/libutil/t_parsedate.c
625
ATF_TP_ADD_TC(tp, dates);
tests/lib/libutil/t_parsedate.c
626
ATF_TP_ADD_TC(tp, times);
tests/lib/libutil/t_parsedate.c
627
ATF_TP_ADD_TC(tp, dsttimes);
tests/lib/libutil/t_parsedate.c
628
ATF_TP_ADD_TC(tp, relative);
tests/lib/libutil/t_parsedate.c
629
ATF_TP_ADD_TC(tp, atsecs);
tests/lib/libutil/t_parsedate.c
630
ATF_TP_ADD_TC(tp, zones);
tests/lib/libutil/t_parsedate.c
631
ATF_TP_ADD_TC(tp, gibberish);
tests/lib/libutil/t_pidfile.c
352
ATF_TP_ADD_TCS(tp)
tests/lib/libutil/t_pidfile.c
355
ATF_TP_ADD_TC(tp, default_path);
tests/lib/libutil/t_pidfile.c
356
ATF_TP_ADD_TC(tp, custom_basename);
tests/lib/libutil/t_pidfile.c
357
ATF_TP_ADD_TC(tp, custom_path);
tests/lib/libutil/t_pidfile.c
358
ATF_TP_ADD_TC(tp, change_basenames);
tests/lib/libutil/t_pidfile.c
359
ATF_TP_ADD_TC(tp, change_paths);
tests/lib/libutil/t_pidfile.c
360
ATF_TP_ADD_TC(tp, change_mix);
tests/lib/libutil/t_snprintb.c
1707
ATF_TP_ADD_TCS(tp)
tests/lib/libutil/t_snprintb.c
1710
ATF_TP_ADD_TC(tp, snprintb);
tests/lib/libutil/t_snprintb.c
1711
ATF_TP_ADD_TC(tp, snprintb_m);
tests/lib/libutil/t_sockaddr_snprintf.c
279
ATF_TP_ADD_TCS(tp)
tests/lib/libutil/t_sockaddr_snprintf.c
282
ATF_TP_ADD_TC(tp, sockaddr_snprintf_in);
tests/lib/libutil/t_sockaddr_snprintf.c
283
ATF_TP_ADD_TC(tp, sockaddr_snprintf_in6);
tests/lib/libutil/t_sockaddr_snprintf.c
284
ATF_TP_ADD_TC(tp, sockaddr_snprintf_un);
tests/lib/libutil/t_sockaddr_snprintf.c
285
ATF_TP_ADD_TC(tp, sockaddr_snprintf_at);
tests/lib/libutil/t_sockaddr_snprintf.c
286
ATF_TP_ADD_TC(tp, sockaddr_snprintf_dl);
tests/lib/libutil/t_sockaddr_snprintf.c
287
ATF_TP_ADD_TC(tp, sockaddr_snprintf_generic);
tests/lib/libutil/t_strpct.c
195
ATF_TP_ADD_TCS(tp)
tests/lib/libutil/t_strpct.c
198
ATF_TP_ADD_TC(tp, strspct);
tests/lib/libutil/t_strpct.c
199
ATF_TP_ADD_TC(tp, strpct);
tests/lib/semaphore/pthread/t_sem_pth.c
10
ATF_TP_ADD_TC(tp, busydestroy);
tests/lib/semaphore/pthread/t_sem_pth.c
11
ATF_TP_ADD_TC(tp, blockwait);
tests/lib/semaphore/pthread/t_sem_pth.c
12
ATF_TP_ADD_TC(tp, blocktimedwait);
tests/lib/semaphore/pthread/t_sem_pth.c
13
ATF_TP_ADD_TC(tp, named);
tests/lib/semaphore/pthread/t_sem_pth.c
14
ATF_TP_ADD_TC(tp, unlink);
tests/lib/semaphore/pthread/t_sem_pth.c
4
ATF_TP_ADD_TCS(tp)
tests/lib/semaphore/pthread/t_sem_pth.c
7
ATF_TP_ADD_TC(tp, postwait);
tests/lib/semaphore/pthread/t_sem_pth.c
8
ATF_TP_ADD_TC(tp, initvalue);
tests/lib/semaphore/pthread/t_sem_pth.c
9
ATF_TP_ADD_TC(tp, destroy);
tests/lib/semaphore/sem.c
217
struct timespec tp;
tests/lib/semaphore/sem.c
221
clock_gettime(CLOCK_REALTIME, &tp);
tests/lib/semaphore/sem.c
222
tp.tv_nsec += 50000000;
tests/lib/semaphore/sem.c
223
tp.tv_sec += tp.tv_nsec / 1000000000;
tests/lib/semaphore/sem.c
224
tp.tv_nsec %= 1000000000;
tests/lib/semaphore/sem.c
227
ATF_REQUIRE_ERRNO(ETIMEDOUT, sem_timedwait(&semid, &tp) == -1);
tests/libexec/ld.elf_so/t_dladdr.c
164
ATF_TP_ADD_TCS(tp)
tests/libexec/ld.elf_so/t_dladdr.c
167
ATF_TP_ADD_TC(tp, dladdr_after__end);
tests/libexec/ld.elf_so/t_dladdr.c
168
ATF_TP_ADD_TC(tp, dladdr_errno);
tests/libexec/ld.elf_so/t_dladdr.c
169
ATF_TP_ADD_TC(tp, dladdr_self);
tests/libexec/ld.elf_so/t_dlclose_thread.c
224
ATF_TP_ADD_TCS(tp)
tests/libexec/ld.elf_so/t_dlclose_thread.c
227
ATF_TP_ADD_TC(tp, dlclose_recursive);
tests/libexec/ld.elf_so/t_dlclose_thread.c
228
ATF_TP_ADD_TC(tp, dlclose_recursive2);
tests/libexec/ld.elf_so/t_dlclose_thread.c
229
ATF_TP_ADD_TC(tp, dlclose_thread);
tests/libexec/ld.elf_so/t_dlclose_thread.c
230
ATF_TP_ADD_TC(tp, dlclose_thread_recursive);
tests/libexec/ld.elf_so/t_dlclose_thread.c
231
ATF_TP_ADD_TC(tp, dlclose_thread_recursive2);
tests/libexec/ld.elf_so/t_dlerror-cleared.c
63
ATF_TP_ADD_TCS(tp)
tests/libexec/ld.elf_so/t_dlerror-cleared.c
65
ATF_TP_ADD_TC(tp, rtld_dlerror_cleared);
tests/libexec/ld.elf_so/t_dlerror-false.c
74
ATF_TP_ADD_TCS(tp)
tests/libexec/ld.elf_so/t_dlerror-false.c
76
ATF_TP_ADD_TC(tp, rtld_dlerror_false);
tests/libexec/ld.elf_so/t_dlinfo.c
114
ATF_TP_ADD_TCS(tp)
tests/libexec/ld.elf_so/t_dlinfo.c
116
ATF_TP_ADD_TC(tp, rtld_dlinfo_linkmap_self);
tests/libexec/ld.elf_so/t_dlinfo.c
117
ATF_TP_ADD_TC(tp, rtld_dlinfo_linkmap_inval);
tests/libexec/ld.elf_so/t_dlinfo.c
118
ATF_TP_ADD_TC(tp, rtld_dlinfo_linkmap_dlopen);
tests/libexec/ld.elf_so/t_dlinfo.c
119
ATF_TP_ADD_TC(tp, rtld_dlinfo_linkmap_dlopen_iter);
tests/libexec/ld.elf_so/t_dlvsym.c
195
ATF_TP_ADD_TCS(tp)
tests/libexec/ld.elf_so/t_dlvsym.c
197
ATF_TP_ADD_TC(tp, rtld_dlvsym_v1);
tests/libexec/ld.elf_so/t_dlvsym.c
198
ATF_TP_ADD_TC(tp, rtld_dlvsym_v3);
tests/libexec/ld.elf_so/t_dlvsym.c
199
ATF_TP_ADD_TC(tp, rtld_dlvsym_symbol_nonexistent);
tests/libexec/ld.elf_so/t_dlvsym.c
200
ATF_TP_ADD_TC(tp, rtld_dlvsym_version_nonexistent);
tests/libexec/ld.elf_so/t_dlvsym.c
201
ATF_TP_ADD_TC(tp, rtld_dlvsym_version_null);
tests/libexec/ld.elf_so/t_hash.c
211
ATF_TP_ADD_TCS(tp)
tests/libexec/ld.elf_so/t_hash.c
214
ATF_TP_ADD_TC(tp, gnu);
tests/libexec/ld.elf_so/t_hash.c
215
ATF_TP_ADD_TC(tp, sysv);
tests/libexec/ld.elf_so/t_hash.c
216
ATF_TP_ADD_TC(tp, sysv_broken);
tests/libexec/ld.elf_so/t_ifunc.c
196
ATF_TP_ADD_TCS(tp)
tests/libexec/ld.elf_so/t_ifunc.c
198
ATF_TP_ADD_TC(tp, rtld_ifunc);
tests/libexec/ld.elf_so/t_ifunc.c
199
ATF_TP_ADD_TC(tp, rtld_hidden_ifunc);
tests/libexec/ld.elf_so/t_ifunc.c
200
ATF_TP_ADD_TC(tp, rtld_main_ifunc);
tests/libexec/ld.elf_so/t_rtld_r_debug.c
194
ATF_TP_ADD_TCS(tp)
tests/libexec/ld.elf_so/t_rtld_r_debug.c
196
ATF_TP_ADD_TC(tp, self);
tests/libexec/ld.elf_so/t_rtld_r_debug.c
197
ATF_TP_ADD_TC(tp, dlopen);
tests/libexec/ld.elf_so/t_tls_alignment.c
65
ATF_TP_ADD_TCS(tp)
tests/libexec/ld.elf_so/t_tls_alignment.c
67
ATF_TP_ADD_TC(tp, tls_alignment);
tests/libexec/ld.elf_so/t_tls_extern.c
442
ATF_TP_ADD_TCS(tp)
tests/libexec/ld.elf_so/t_tls_extern.c
445
ATF_TP_ADD_TC(tp, dynamic_abusedef);
tests/libexec/ld.elf_so/t_tls_extern.c
446
ATF_TP_ADD_TC(tp, dynamic_abusedefnoload);
tests/libexec/ld.elf_so/t_tls_extern.c
447
ATF_TP_ADD_TC(tp, dynamic_defabuse_eager);
tests/libexec/ld.elf_so/t_tls_extern.c
448
ATF_TP_ADD_TC(tp, dynamic_defabuse_lazy);
tests/libexec/ld.elf_so/t_tls_extern.c
449
ATF_TP_ADD_TC(tp, dynamic_defuse_eager);
tests/libexec/ld.elf_so/t_tls_extern.c
450
ATF_TP_ADD_TC(tp, dynamic_defuse_lazy);
tests/libexec/ld.elf_so/t_tls_extern.c
451
ATF_TP_ADD_TC(tp, dynamic_usedef);
tests/libexec/ld.elf_so/t_tls_extern.c
452
ATF_TP_ADD_TC(tp, dynamic_usedefnoload);
tests/libexec/ld.elf_so/t_tls_extern.c
453
ATF_TP_ADD_TC(tp, onlydef_dynamic_static_ctor);
tests/libexec/ld.elf_so/t_tls_extern.c
454
ATF_TP_ADD_TC(tp, onlydef_dynamic_static_eager);
tests/libexec/ld.elf_so/t_tls_extern.c
455
ATF_TP_ADD_TC(tp, onlydef_dynamic_static_lazy);
tests/libexec/ld.elf_so/t_tls_extern.c
456
ATF_TP_ADD_TC(tp, onlydef_static_dynamic_eager);
tests/libexec/ld.elf_so/t_tls_extern.c
457
ATF_TP_ADD_TC(tp, onlydef_static_dynamic_lazy);
tests/libexec/ld.elf_so/t_tls_extern.c
458
ATF_TP_ADD_TC(tp, opencloseloop_use);
tests/libexec/ld.elf_so/t_tls_extern.c
459
ATF_TP_ADD_TC(tp, static_abusedef);
tests/libexec/ld.elf_so/t_tls_extern.c
460
ATF_TP_ADD_TC(tp, static_abusedefnoload);
tests/libexec/ld.elf_so/t_tls_extern.c
461
ATF_TP_ADD_TC(tp, static_defabuse_eager);
tests/libexec/ld.elf_so/t_tls_extern.c
462
ATF_TP_ADD_TC(tp, static_defabuse_lazy);
tests/libexec/ld.elf_so/t_tls_extern.c
463
ATF_TP_ADD_TC(tp, static_defuse_eager);
tests/libexec/ld.elf_so/t_tls_extern.c
464
ATF_TP_ADD_TC(tp, static_defuse_lazy);
tests/libexec/ld.elf_so/t_tls_extern.c
465
ATF_TP_ADD_TC(tp, static_usedef);
tests/libexec/ld.elf_so/t_tls_extern.c
466
ATF_TP_ADD_TC(tp, static_usedefnoload);
tests/modules/t_builtin.c
206
ATF_TP_ADD_TCS(tp)
tests/modules/t_builtin.c
209
ATF_TP_ADD_TC(tp, disable);
tests/modules/t_builtin.c
210
ATF_TP_ADD_TC(tp, noauto);
tests/modules/t_builtin.c
211
ATF_TP_ADD_TC(tp, forcereload);
tests/modules/t_builtin.c
212
ATF_TP_ADD_TC(tp, disabledstat);
tests/modules/t_builtin.c
213
ATF_TP_ADD_TC(tp, busydisable);
tests/modules/t_kcov.c
549
ATF_TP_ADD_TCS(tp)
tests/modules/t_kcov.c
552
ATF_TP_ADD_TC(tp, kcov_dup2);
tests/modules/t_kcov.c
553
ATF_TP_ADD_TC(tp, kcov_multiopen);
tests/modules/t_kcov.c
554
ATF_TP_ADD_TC(tp, kcov_open_close_open);
tests/modules/t_kcov.c
555
ATF_TP_ADD_TC(tp, kcov_bufsize);
tests/modules/t_kcov.c
556
ATF_TP_ADD_TC(tp, kcov_mmap);
tests/modules/t_kcov.c
557
ATF_TP_ADD_TC(tp, kcov_mmap_no_munmap);
tests/modules/t_kcov.c
558
ATF_TP_ADD_TC(tp, kcov_mmap_no_munmap_no_close);
tests/modules/t_kcov.c
559
ATF_TP_ADD_TC(tp, kcov_enable);
tests/modules/t_kcov.c
560
ATF_TP_ADD_TC(tp, kcov_enable_no_disable);
tests/modules/t_kcov.c
561
ATF_TP_ADD_TC(tp, kcov_enable_no_disable_no_close);
tests/modules/t_kcov.c
562
ATF_TP_ADD_TC(tp, kcov_mmap_enable_thread_close);
tests/modules/t_kcov.c
563
ATF_TP_ADD_TC(tp, kcov_basic_pc);
tests/modules/t_kcov.c
564
ATF_TP_ADD_TC(tp, kcov_basic_cmp);
tests/modules/t_kcov.c
565
ATF_TP_ADD_TC(tp, kcov_basic_dup2_pc);
tests/modules/t_kcov.c
566
ATF_TP_ADD_TC(tp, kcov_basic_dup2_cmp);
tests/modules/t_kcov.c
567
ATF_TP_ADD_TC(tp, kcov_multienable_on_the_same_thread);
tests/modules/t_kcov.c
568
ATF_TP_ADD_TC(tp, kcov_buffer_access_from_custom_thread);
tests/modules/t_kcov.c
569
ATF_TP_ADD_TC(tp, kcov_thread);
tests/modules/t_kcov.c
570
ATF_TP_ADD_TC(tp, kcov_multiple_threads2);
tests/modules/t_kcov.c
571
ATF_TP_ADD_TC(tp, kcov_multiple_threads4);
tests/modules/t_kcov.c
572
ATF_TP_ADD_TC(tp, kcov_multiple_threads8);
tests/modules/t_kcov.c
573
ATF_TP_ADD_TC(tp, kcov_multiple_threads16);
tests/modules/t_kcov.c
574
ATF_TP_ADD_TC(tp, kcov_multiple_threads32);
tests/modules/t_modctl.c
546
ATF_TP_ADD_TCS(tp)
tests/modules/t_modctl.c
549
ATF_TP_ADD_TC(tp, cmd_load);
tests/modules/t_modctl.c
550
ATF_TP_ADD_TC(tp, cmd_load_props);
tests/modules/t_modctl.c
551
ATF_TP_ADD_TC(tp, cmd_stat);
tests/modules/t_modctl.c
552
ATF_TP_ADD_TC(tp, cmd_load_recurse);
tests/modules/t_modctl.c
553
ATF_TP_ADD_TC(tp, cmd_unload);
tests/modules/t_ufetchstore.c
1233
ATF_TP_ADD_TCS(tp)
tests/modules/t_ufetchstore.c
1235
ATF_TP_ADD_TC(tp, ufetch_8);
tests/modules/t_ufetchstore.c
1236
ATF_TP_ADD_TC(tp, ufetch_16);
tests/modules/t_ufetchstore.c
1237
ATF_TP_ADD_TC(tp, ufetch_32);
tests/modules/t_ufetchstore.c
1239
ATF_TP_ADD_TC(tp, ufetch_64);
tests/modules/t_ufetchstore.c
1242
ATF_TP_ADD_TC(tp, ufetch_8_null);
tests/modules/t_ufetchstore.c
1243
ATF_TP_ADD_TC(tp, ufetch_16_null);
tests/modules/t_ufetchstore.c
1244
ATF_TP_ADD_TC(tp, ufetch_32_null);
tests/modules/t_ufetchstore.c
1246
ATF_TP_ADD_TC(tp, ufetch_64_null);
tests/modules/t_ufetchstore.c
1249
ATF_TP_ADD_TC(tp, ufetch_8_max);
tests/modules/t_ufetchstore.c
1250
ATF_TP_ADD_TC(tp, ufetch_16_max);
tests/modules/t_ufetchstore.c
1251
ATF_TP_ADD_TC(tp, ufetch_32_max);
tests/modules/t_ufetchstore.c
1253
ATF_TP_ADD_TC(tp, ufetch_64_max);
tests/modules/t_ufetchstore.c
1256
ATF_TP_ADD_TC(tp, ufetch_16_nearmax_overflow);
tests/modules/t_ufetchstore.c
1257
ATF_TP_ADD_TC(tp, ufetch_32_nearmax_overflow);
tests/modules/t_ufetchstore.c
1259
ATF_TP_ADD_TC(tp, ufetch_64_nearmax_overflow);
tests/modules/t_ufetchstore.c
1262
ATF_TP_ADD_TC(tp, ustore_8);
tests/modules/t_ufetchstore.c
1263
ATF_TP_ADD_TC(tp, ustore_16);
tests/modules/t_ufetchstore.c
1264
ATF_TP_ADD_TC(tp, ustore_32);
tests/modules/t_ufetchstore.c
1266
ATF_TP_ADD_TC(tp, ustore_64);
tests/modules/t_ufetchstore.c
1269
ATF_TP_ADD_TC(tp, ustore_8_null);
tests/modules/t_ufetchstore.c
1270
ATF_TP_ADD_TC(tp, ustore_16_null);
tests/modules/t_ufetchstore.c
1271
ATF_TP_ADD_TC(tp, ustore_32_null);
tests/modules/t_ufetchstore.c
1273
ATF_TP_ADD_TC(tp, ustore_64_null);
tests/modules/t_ufetchstore.c
1276
ATF_TP_ADD_TC(tp, ustore_8_max);
tests/modules/t_ufetchstore.c
1277
ATF_TP_ADD_TC(tp, ustore_16_max);
tests/modules/t_ufetchstore.c
1278
ATF_TP_ADD_TC(tp, ustore_32_max);
tests/modules/t_ufetchstore.c
1280
ATF_TP_ADD_TC(tp, ustore_64_max);
tests/modules/t_ufetchstore.c
1283
ATF_TP_ADD_TC(tp, ustore_16_nearmax_overflow);
tests/modules/t_ufetchstore.c
1284
ATF_TP_ADD_TC(tp, ustore_32_nearmax_overflow);
tests/modules/t_ufetchstore.c
1286
ATF_TP_ADD_TC(tp, ustore_64_nearmax_overflow);
tests/modules/t_ufetchstore.c
1289
ATF_TP_ADD_TC(tp, ucas_32);
tests/modules/t_ufetchstore.c
1291
ATF_TP_ADD_TC(tp, ucas_64);
tests/modules/t_ufetchstore.c
1294
ATF_TP_ADD_TC(tp, ucas_32_miscompare);
tests/modules/t_ufetchstore.c
1296
ATF_TP_ADD_TC(tp, ucas_64_miscompare);
tests/modules/t_ufetchstore.c
1299
ATF_TP_ADD_TC(tp, ucas_32_null);
tests/modules/t_ufetchstore.c
1301
ATF_TP_ADD_TC(tp, ucas_64_null);
tests/modules/t_ufetchstore.c
1304
ATF_TP_ADD_TC(tp, ucas_32_max);
tests/modules/t_ufetchstore.c
1306
ATF_TP_ADD_TC(tp, ucas_64_max);
tests/modules/t_ufetchstore.c
1309
ATF_TP_ADD_TC(tp, ucas_32_nearmax_overflow);
tests/modules/t_ufetchstore.c
1311
ATF_TP_ADD_TC(tp, ucas_64_nearmax_overflow);
tests/modules/t_x86_pte.c
191
ATF_TP_ADD_TCS(tp)
tests/modules/t_x86_pte.c
193
ATF_TP_ADD_TC(tp, rwx);
tests/modules/t_x86_pte.c
194
ATF_TP_ADD_TC(tp, shstk);
tests/modules/t_x86_pte.c
195
ATF_TP_ADD_TC(tp, kernel_map_with_low_ptes);
tests/modules/t_x86_pte.c
196
ATF_TP_ADD_TC(tp, pte_is_user_accessible);
tests/modules/t_x86_pte.c
197
ATF_TP_ADD_TC(tp, user_space_is_kernel);
tests/modules/t_x86_pte.c
198
ATF_TP_ADD_TC(tp, kernel_space_is_user);
tests/modules/t_x86_pte.c
199
ATF_TP_ADD_TC(tp, svs_g_bit_set);
tests/modules/ufetchstore/t_ufetchstore.c
1233
ATF_TP_ADD_TCS(tp)
tests/modules/ufetchstore/t_ufetchstore.c
1235
ATF_TP_ADD_TC(tp, ufetch_8);
tests/modules/ufetchstore/t_ufetchstore.c
1236
ATF_TP_ADD_TC(tp, ufetch_16);
tests/modules/ufetchstore/t_ufetchstore.c
1237
ATF_TP_ADD_TC(tp, ufetch_32);
tests/modules/ufetchstore/t_ufetchstore.c
1239
ATF_TP_ADD_TC(tp, ufetch_64);
tests/modules/ufetchstore/t_ufetchstore.c
1242
ATF_TP_ADD_TC(tp, ufetch_8_null);
tests/modules/ufetchstore/t_ufetchstore.c
1243
ATF_TP_ADD_TC(tp, ufetch_16_null);
tests/modules/ufetchstore/t_ufetchstore.c
1244
ATF_TP_ADD_TC(tp, ufetch_32_null);
tests/modules/ufetchstore/t_ufetchstore.c
1246
ATF_TP_ADD_TC(tp, ufetch_64_null);
tests/modules/ufetchstore/t_ufetchstore.c
1249
ATF_TP_ADD_TC(tp, ufetch_8_max);
tests/modules/ufetchstore/t_ufetchstore.c
1250
ATF_TP_ADD_TC(tp, ufetch_16_max);
tests/modules/ufetchstore/t_ufetchstore.c
1251
ATF_TP_ADD_TC(tp, ufetch_32_max);
tests/modules/ufetchstore/t_ufetchstore.c
1253
ATF_TP_ADD_TC(tp, ufetch_64_max);
tests/modules/ufetchstore/t_ufetchstore.c
1256
ATF_TP_ADD_TC(tp, ufetch_16_nearmax_overflow);
tests/modules/ufetchstore/t_ufetchstore.c
1257
ATF_TP_ADD_TC(tp, ufetch_32_nearmax_overflow);
tests/modules/ufetchstore/t_ufetchstore.c
1259
ATF_TP_ADD_TC(tp, ufetch_64_nearmax_overflow);
tests/modules/ufetchstore/t_ufetchstore.c
1262
ATF_TP_ADD_TC(tp, ustore_8);
tests/modules/ufetchstore/t_ufetchstore.c
1263
ATF_TP_ADD_TC(tp, ustore_16);
tests/modules/ufetchstore/t_ufetchstore.c
1264
ATF_TP_ADD_TC(tp, ustore_32);
tests/modules/ufetchstore/t_ufetchstore.c
1266
ATF_TP_ADD_TC(tp, ustore_64);
tests/modules/ufetchstore/t_ufetchstore.c
1269
ATF_TP_ADD_TC(tp, ustore_8_null);
tests/modules/ufetchstore/t_ufetchstore.c
1270
ATF_TP_ADD_TC(tp, ustore_16_null);
tests/modules/ufetchstore/t_ufetchstore.c
1271
ATF_TP_ADD_TC(tp, ustore_32_null);
tests/modules/ufetchstore/t_ufetchstore.c
1273
ATF_TP_ADD_TC(tp, ustore_64_null);
tests/modules/ufetchstore/t_ufetchstore.c
1276
ATF_TP_ADD_TC(tp, ustore_8_max);
tests/modules/ufetchstore/t_ufetchstore.c
1277
ATF_TP_ADD_TC(tp, ustore_16_max);
tests/modules/ufetchstore/t_ufetchstore.c
1278
ATF_TP_ADD_TC(tp, ustore_32_max);
tests/modules/ufetchstore/t_ufetchstore.c
1280
ATF_TP_ADD_TC(tp, ustore_64_max);
tests/modules/ufetchstore/t_ufetchstore.c
1283
ATF_TP_ADD_TC(tp, ustore_16_nearmax_overflow);
tests/modules/ufetchstore/t_ufetchstore.c
1284
ATF_TP_ADD_TC(tp, ustore_32_nearmax_overflow);
tests/modules/ufetchstore/t_ufetchstore.c
1286
ATF_TP_ADD_TC(tp, ustore_64_nearmax_overflow);
tests/modules/ufetchstore/t_ufetchstore.c
1289
ATF_TP_ADD_TC(tp, ucas_32);
tests/modules/ufetchstore/t_ufetchstore.c
1291
ATF_TP_ADD_TC(tp, ucas_64);
tests/modules/ufetchstore/t_ufetchstore.c
1294
ATF_TP_ADD_TC(tp, ucas_32_miscompare);
tests/modules/ufetchstore/t_ufetchstore.c
1296
ATF_TP_ADD_TC(tp, ucas_64_miscompare);
tests/modules/ufetchstore/t_ufetchstore.c
1299
ATF_TP_ADD_TC(tp, ucas_32_null);
tests/modules/ufetchstore/t_ufetchstore.c
1301
ATF_TP_ADD_TC(tp, ucas_64_null);
tests/modules/ufetchstore/t_ufetchstore.c
1304
ATF_TP_ADD_TC(tp, ucas_32_max);
tests/modules/ufetchstore/t_ufetchstore.c
1306
ATF_TP_ADD_TC(tp, ucas_64_max);
tests/modules/ufetchstore/t_ufetchstore.c
1309
ATF_TP_ADD_TC(tp, ucas_32_nearmax_overflow);
tests/modules/ufetchstore/t_ufetchstore.c
1311
ATF_TP_ADD_TC(tp, ucas_64_nearmax_overflow);
tests/net/bpf/t_bpf.c
335
ATF_TP_ADD_TCS(tp)
tests/net/bpf/t_bpf.c
338
ATF_TP_ADD_TC(tp, bpfwriteleak);
tests/net/bpf/t_bpf.c
340
ATF_TP_ADD_TC(tp, bpfwritetrunc);
tests/net/bpf/t_bpf.c
342
ATF_TP_ADD_TC(tp, bpf_ioctl_BLEN);
tests/net/bpf/t_bpf.c
343
ATF_TP_ADD_TC(tp, bpf_ioctl_PROMISC);
tests/net/bpf/t_bpf.c
344
ATF_TP_ADD_TC(tp, bpf_ioctl_SETIF);
tests/net/bpf/t_bpf.c
345
ATF_TP_ADD_TC(tp, bpf_ioctl_DLT);
tests/net/bpf/t_bpf.c
346
ATF_TP_ADD_TC(tp, bpf_ioctl_GDLTLIST);
tests/net/bpf/t_div-by-zero.c
47
ATF_TP_ADD_TCS(tp)
tests/net/bpf/t_div-by-zero.c
50
ATF_TP_ADD_TC(tp, div_by_zero);
tests/net/bpf/t_mbuf.c
932
ATF_TP_ADD_TCS(tp)
tests/net/bpf/t_mbuf.c
939
ATF_TP_ADD_TC(tp, bpf_mbuf_ldb_abs);
tests/net/bpf/t_mbuf.c
940
ATF_TP_ADD_TC(tp, bpf_mbuf_ldh_abs);
tests/net/bpf/t_mbuf.c
941
ATF_TP_ADD_TC(tp, bpf_mbuf_ldw_abs);
tests/net/bpf/t_mbuf.c
942
ATF_TP_ADD_TC(tp, bpf_mbuf_ldb_ind);
tests/net/bpf/t_mbuf.c
943
ATF_TP_ADD_TC(tp, bpf_mbuf_ldh_ind);
tests/net/bpf/t_mbuf.c
944
ATF_TP_ADD_TC(tp, bpf_mbuf_ldw_ind);
tests/net/bpf/t_mbuf.c
945
ATF_TP_ADD_TC(tp, bpf_mbuf_msh);
tests/net/bpf/t_mbuf.c
946
ATF_TP_ADD_TC(tp, bpf_mbuf_ldb_abs_overflow);
tests/net/bpf/t_mbuf.c
947
ATF_TP_ADD_TC(tp, bpf_mbuf_ldh_abs_overflow);
tests/net/bpf/t_mbuf.c
948
ATF_TP_ADD_TC(tp, bpf_mbuf_ldw_abs_overflow);
tests/net/bpf/t_mbuf.c
949
ATF_TP_ADD_TC(tp, bpf_mbuf_ldb_ind_overflow1);
tests/net/bpf/t_mbuf.c
950
ATF_TP_ADD_TC(tp, bpf_mbuf_ldb_ind_overflow2);
tests/net/bpf/t_mbuf.c
951
ATF_TP_ADD_TC(tp, bpf_mbuf_ldb_ind_overflow3);
tests/net/bpf/t_mbuf.c
952
ATF_TP_ADD_TC(tp, bpf_mbuf_ldh_ind_overflow1);
tests/net/bpf/t_mbuf.c
953
ATF_TP_ADD_TC(tp, bpf_mbuf_ldh_ind_overflow2);
tests/net/bpf/t_mbuf.c
954
ATF_TP_ADD_TC(tp, bpf_mbuf_ldh_ind_overflow3);
tests/net/bpf/t_mbuf.c
955
ATF_TP_ADD_TC(tp, bpf_mbuf_ldw_ind_overflow1);
tests/net/bpf/t_mbuf.c
956
ATF_TP_ADD_TC(tp, bpf_mbuf_ldw_ind_overflow2);
tests/net/bpf/t_mbuf.c
957
ATF_TP_ADD_TC(tp, bpf_mbuf_ldw_ind_overflow3);
tests/net/bpf/t_mbuf.c
958
ATF_TP_ADD_TC(tp, bpf_mbuf_msh_overflow);
tests/net/bpfilter/t_bpfilter.c
469
ATF_TP_ADD_TCS(tp)
tests/net/bpfilter/t_bpfilter.c
472
ATF_TP_ADD_TC(tp, bpfiltercontig);
tests/net/bpfilter/t_bpfilter.c
473
ATF_TP_ADD_TC(tp, bpfiltermchain);
tests/net/bpfilter/t_bpfilter.c
474
ATF_TP_ADD_TC(tp, bpfilterbadmem);
tests/net/bpfilter/t_bpfilter.c
475
ATF_TP_ADD_TC(tp, bpfilternoinitA);
tests/net/bpfilter/t_bpfilter.c
476
ATF_TP_ADD_TC(tp, bpfilternoinitX);
tests/net/bpfilter/t_bpfilter.c
477
ATF_TP_ADD_TC(tp, bpfilterbadjmp);
tests/net/bpfilter/t_bpfilter.c
478
ATF_TP_ADD_TC(tp, bpfilternegjmp);
tests/net/bpfilter/t_bpfilter.c
479
ATF_TP_ADD_TC(tp, bpfilterbadret);
tests/net/bpfjit/t_bpfjit.c
4747
ATF_TP_ADD_TCS(tp)
tests/net/bpfjit/t_bpfjit.c
4754
ATF_TP_ADD_TC(tp, bpfjit_empty);
tests/net/bpfjit/t_bpfjit.c
4755
ATF_TP_ADD_TC(tp, bpfjit_ret_k);
tests/net/bpfjit/t_bpfjit.c
4756
ATF_TP_ADD_TC(tp, bpfjit_bad_ret_a);
tests/net/bpfjit/t_bpfjit.c
4757
ATF_TP_ADD_TC(tp, bpfjit_bad_ret_k);
tests/net/bpfjit/t_bpfjit.c
4758
ATF_TP_ADD_TC(tp, bpfjit_bad_ret_x);
tests/net/bpfjit/t_bpfjit.c
4759
ATF_TP_ADD_TC(tp, bpfjit_bad_middle_ret_a);
tests/net/bpfjit/t_bpfjit.c
4760
ATF_TP_ADD_TC(tp, bpfjit_bad_middle_ret_k);
tests/net/bpfjit/t_bpfjit.c
4761
ATF_TP_ADD_TC(tp, bpfjit_bad_middle_ret_x);
tests/net/bpfjit/t_bpfjit.c
4762
ATF_TP_ADD_TC(tp, bpfjit_bad_unreachable_ret_x);
tests/net/bpfjit/t_bpfjit.c
4763
ATF_TP_ADD_TC(tp, bpfjit_alu_add_k);
tests/net/bpfjit/t_bpfjit.c
4764
ATF_TP_ADD_TC(tp, bpfjit_alu_sub_k);
tests/net/bpfjit/t_bpfjit.c
4765
ATF_TP_ADD_TC(tp, bpfjit_alu_mul_k);
tests/net/bpfjit/t_bpfjit.c
4766
ATF_TP_ADD_TC(tp, bpfjit_alu_div0_k);
tests/net/bpfjit/t_bpfjit.c
4767
ATF_TP_ADD_TC(tp, bpfjit_alu_div1_k);
tests/net/bpfjit/t_bpfjit.c
4768
ATF_TP_ADD_TC(tp, bpfjit_alu_div2_k);
tests/net/bpfjit/t_bpfjit.c
4769
ATF_TP_ADD_TC(tp, bpfjit_alu_div4_k);
tests/net/bpfjit/t_bpfjit.c
4770
ATF_TP_ADD_TC(tp, bpfjit_alu_div10_k);
tests/net/bpfjit/t_bpfjit.c
4771
ATF_TP_ADD_TC(tp, bpfjit_alu_div10000_k);
tests/net/bpfjit/t_bpfjit.c
4772
ATF_TP_ADD_TC(tp, bpfjit_alu_div7609801_k);
tests/net/bpfjit/t_bpfjit.c
4773
ATF_TP_ADD_TC(tp, bpfjit_alu_div80000000_k);
tests/net/bpfjit/t_bpfjit.c
4774
ATF_TP_ADD_TC(tp, bpfjit_alu_mod0_k);
tests/net/bpfjit/t_bpfjit.c
4775
ATF_TP_ADD_TC(tp, bpfjit_alu_mod1_k);
tests/net/bpfjit/t_bpfjit.c
4776
ATF_TP_ADD_TC(tp, bpfjit_alu_mod2_k);
tests/net/bpfjit/t_bpfjit.c
4777
ATF_TP_ADD_TC(tp, bpfjit_alu_mod4_k);
tests/net/bpfjit/t_bpfjit.c
4778
ATF_TP_ADD_TC(tp, bpfjit_alu_mod10_k);
tests/net/bpfjit/t_bpfjit.c
4779
ATF_TP_ADD_TC(tp, bpfjit_alu_mod10000_k);
tests/net/bpfjit/t_bpfjit.c
4780
ATF_TP_ADD_TC(tp, bpfjit_alu_mod7609801_k);
tests/net/bpfjit/t_bpfjit.c
4781
ATF_TP_ADD_TC(tp, bpfjit_alu_mod80000000_k);
tests/net/bpfjit/t_bpfjit.c
4782
ATF_TP_ADD_TC(tp, bpfjit_alu_and_k);
tests/net/bpfjit/t_bpfjit.c
4783
ATF_TP_ADD_TC(tp, bpfjit_alu_or_k);
tests/net/bpfjit/t_bpfjit.c
4784
ATF_TP_ADD_TC(tp, bpfjit_alu_xor_k);
tests/net/bpfjit/t_bpfjit.c
4785
ATF_TP_ADD_TC(tp, bpfjit_alu_lsh_k);
tests/net/bpfjit/t_bpfjit.c
4786
ATF_TP_ADD_TC(tp, bpfjit_alu_lsh0_k);
tests/net/bpfjit/t_bpfjit.c
4787
ATF_TP_ADD_TC(tp, bpfjit_alu_rsh_k);
tests/net/bpfjit/t_bpfjit.c
4788
ATF_TP_ADD_TC(tp, bpfjit_alu_rsh0_k);
tests/net/bpfjit/t_bpfjit.c
4789
ATF_TP_ADD_TC(tp, bpfjit_alu_modulo_k);
tests/net/bpfjit/t_bpfjit.c
4790
ATF_TP_ADD_TC(tp, bpfjit_alu_add_x);
tests/net/bpfjit/t_bpfjit.c
4791
ATF_TP_ADD_TC(tp, bpfjit_alu_sub_x);
tests/net/bpfjit/t_bpfjit.c
4792
ATF_TP_ADD_TC(tp, bpfjit_alu_mul_x);
tests/net/bpfjit/t_bpfjit.c
4793
ATF_TP_ADD_TC(tp, bpfjit_alu_div0_x);
tests/net/bpfjit/t_bpfjit.c
4794
ATF_TP_ADD_TC(tp, bpfjit_alu_div1_x);
tests/net/bpfjit/t_bpfjit.c
4795
ATF_TP_ADD_TC(tp, bpfjit_alu_div2_x);
tests/net/bpfjit/t_bpfjit.c
4796
ATF_TP_ADD_TC(tp, bpfjit_alu_div4_x);
tests/net/bpfjit/t_bpfjit.c
4797
ATF_TP_ADD_TC(tp, bpfjit_alu_div10_x);
tests/net/bpfjit/t_bpfjit.c
4798
ATF_TP_ADD_TC(tp, bpfjit_alu_div10000_x);
tests/net/bpfjit/t_bpfjit.c
4799
ATF_TP_ADD_TC(tp, bpfjit_alu_div7609801_x);
tests/net/bpfjit/t_bpfjit.c
4800
ATF_TP_ADD_TC(tp, bpfjit_alu_div80000000_x);
tests/net/bpfjit/t_bpfjit.c
4801
ATF_TP_ADD_TC(tp, bpfjit_alu_mod0_x);
tests/net/bpfjit/t_bpfjit.c
4802
ATF_TP_ADD_TC(tp, bpfjit_alu_mod1_x);
tests/net/bpfjit/t_bpfjit.c
4803
ATF_TP_ADD_TC(tp, bpfjit_alu_mod2_x);
tests/net/bpfjit/t_bpfjit.c
4804
ATF_TP_ADD_TC(tp, bpfjit_alu_mod4_x);
tests/net/bpfjit/t_bpfjit.c
4805
ATF_TP_ADD_TC(tp, bpfjit_alu_mod10_x);
tests/net/bpfjit/t_bpfjit.c
4806
ATF_TP_ADD_TC(tp, bpfjit_alu_mod10000_x);
tests/net/bpfjit/t_bpfjit.c
4807
ATF_TP_ADD_TC(tp, bpfjit_alu_mod7609801_x);
tests/net/bpfjit/t_bpfjit.c
4808
ATF_TP_ADD_TC(tp, bpfjit_alu_mod80000000_x);
tests/net/bpfjit/t_bpfjit.c
4809
ATF_TP_ADD_TC(tp, bpfjit_alu_and_x);
tests/net/bpfjit/t_bpfjit.c
4810
ATF_TP_ADD_TC(tp, bpfjit_alu_or_x);
tests/net/bpfjit/t_bpfjit.c
4811
ATF_TP_ADD_TC(tp, bpfjit_alu_xor_x);
tests/net/bpfjit/t_bpfjit.c
4812
ATF_TP_ADD_TC(tp, bpfjit_alu_lsh_x);
tests/net/bpfjit/t_bpfjit.c
4813
ATF_TP_ADD_TC(tp, bpfjit_alu_lsh0_x);
tests/net/bpfjit/t_bpfjit.c
4814
ATF_TP_ADD_TC(tp, bpfjit_alu_rsh_x);
tests/net/bpfjit/t_bpfjit.c
4815
ATF_TP_ADD_TC(tp, bpfjit_alu_rsh0_x);
tests/net/bpfjit/t_bpfjit.c
4816
ATF_TP_ADD_TC(tp, bpfjit_alu_modulo_x);
tests/net/bpfjit/t_bpfjit.c
4817
ATF_TP_ADD_TC(tp, bpfjit_alu_neg);
tests/net/bpfjit/t_bpfjit.c
4818
ATF_TP_ADD_TC(tp, bpfjit_jmp_ja);
tests/net/bpfjit/t_bpfjit.c
4819
ATF_TP_ADD_TC(tp, bpfjit_jmp_ja_invalid);
tests/net/bpfjit/t_bpfjit.c
4820
ATF_TP_ADD_TC(tp, bpfjit_jmp_ja_overflow);
tests/net/bpfjit/t_bpfjit.c
4821
ATF_TP_ADD_TC(tp, bpfjit_jmp_jgt_k);
tests/net/bpfjit/t_bpfjit.c
4822
ATF_TP_ADD_TC(tp, bpfjit_jmp_jge_k);
tests/net/bpfjit/t_bpfjit.c
4823
ATF_TP_ADD_TC(tp, bpfjit_jmp_jeq_k);
tests/net/bpfjit/t_bpfjit.c
4824
ATF_TP_ADD_TC(tp, bpfjit_jmp_jset_k);
tests/net/bpfjit/t_bpfjit.c
4825
ATF_TP_ADD_TC(tp, bpfjit_jmp_modulo_k);
tests/net/bpfjit/t_bpfjit.c
4826
ATF_TP_ADD_TC(tp, bpfjit_jmp_jgt_x);
tests/net/bpfjit/t_bpfjit.c
4827
ATF_TP_ADD_TC(tp, bpfjit_jmp_jge_x);
tests/net/bpfjit/t_bpfjit.c
4828
ATF_TP_ADD_TC(tp, bpfjit_jmp_jeq_x);
tests/net/bpfjit/t_bpfjit.c
4829
ATF_TP_ADD_TC(tp, bpfjit_jmp_jset_x);
tests/net/bpfjit/t_bpfjit.c
4830
ATF_TP_ADD_TC(tp, bpfjit_jmp_jeq_x_noinit_ax);
tests/net/bpfjit/t_bpfjit.c
4831
ATF_TP_ADD_TC(tp, bpfjit_jmp_jeq_x_noinit_a);
tests/net/bpfjit/t_bpfjit.c
4832
ATF_TP_ADD_TC(tp, bpfjit_jmp_jeq_x_noinit_x);
tests/net/bpfjit/t_bpfjit.c
4833
ATF_TP_ADD_TC(tp, bpfjit_jmp_modulo_x);
tests/net/bpfjit/t_bpfjit.c
4834
ATF_TP_ADD_TC(tp, bpfjit_ld_abs);
tests/net/bpfjit/t_bpfjit.c
4835
ATF_TP_ADD_TC(tp, bpfjit_ld_abs_k_overflow);
tests/net/bpfjit/t_bpfjit.c
4836
ATF_TP_ADD_TC(tp, bpfjit_ld_ind);
tests/net/bpfjit/t_bpfjit.c
4837
ATF_TP_ADD_TC(tp, bpfjit_ld_ind_k_overflow);
tests/net/bpfjit/t_bpfjit.c
4838
ATF_TP_ADD_TC(tp, bpfjit_ld_ind_x_overflow1);
tests/net/bpfjit/t_bpfjit.c
4839
ATF_TP_ADD_TC(tp, bpfjit_ld_ind_x_overflow2);
tests/net/bpfjit/t_bpfjit.c
4840
ATF_TP_ADD_TC(tp, bpfjit_ld_len);
tests/net/bpfjit/t_bpfjit.c
4841
ATF_TP_ADD_TC(tp, bpfjit_ld_imm);
tests/net/bpfjit/t_bpfjit.c
4842
ATF_TP_ADD_TC(tp, bpfjit_ldx_imm1);
tests/net/bpfjit/t_bpfjit.c
4843
ATF_TP_ADD_TC(tp, bpfjit_ldx_imm2);
tests/net/bpfjit/t_bpfjit.c
4844
ATF_TP_ADD_TC(tp, bpfjit_ldx_len1);
tests/net/bpfjit/t_bpfjit.c
4845
ATF_TP_ADD_TC(tp, bpfjit_ldx_len2);
tests/net/bpfjit/t_bpfjit.c
4846
ATF_TP_ADD_TC(tp, bpfjit_ldx_msh);
tests/net/bpfjit/t_bpfjit.c
4847
ATF_TP_ADD_TC(tp, bpfjit_misc_tax);
tests/net/bpfjit/t_bpfjit.c
4848
ATF_TP_ADD_TC(tp, bpfjit_misc_txa);
tests/net/bpfjit/t_bpfjit.c
4849
ATF_TP_ADD_TC(tp, bpfjit_st1);
tests/net/bpfjit/t_bpfjit.c
4850
ATF_TP_ADD_TC(tp, bpfjit_st2);
tests/net/bpfjit/t_bpfjit.c
4851
ATF_TP_ADD_TC(tp, bpfjit_st3);
tests/net/bpfjit/t_bpfjit.c
4852
ATF_TP_ADD_TC(tp, bpfjit_st4);
tests/net/bpfjit/t_bpfjit.c
4853
ATF_TP_ADD_TC(tp, bpfjit_st5);
tests/net/bpfjit/t_bpfjit.c
4854
ATF_TP_ADD_TC(tp, bpfjit_stx1);
tests/net/bpfjit/t_bpfjit.c
4855
ATF_TP_ADD_TC(tp, bpfjit_stx2);
tests/net/bpfjit/t_bpfjit.c
4856
ATF_TP_ADD_TC(tp, bpfjit_stx3);
tests/net/bpfjit/t_bpfjit.c
4857
ATF_TP_ADD_TC(tp, bpfjit_stx4);
tests/net/bpfjit/t_bpfjit.c
4858
ATF_TP_ADD_TC(tp, bpfjit_opt_ld_abs_1);
tests/net/bpfjit/t_bpfjit.c
4859
ATF_TP_ADD_TC(tp, bpfjit_opt_ld_abs_2);
tests/net/bpfjit/t_bpfjit.c
4860
ATF_TP_ADD_TC(tp, bpfjit_opt_ld_abs_3);
tests/net/bpfjit/t_bpfjit.c
4861
ATF_TP_ADD_TC(tp, bpfjit_opt_ld_ind_1);
tests/net/bpfjit/t_bpfjit.c
4862
ATF_TP_ADD_TC(tp, bpfjit_opt_ld_ind_2);
tests/net/bpfjit/t_bpfjit.c
4863
ATF_TP_ADD_TC(tp, bpfjit_opt_ld_ind_3);
tests/net/bpfjit/t_bpfjit.c
4864
ATF_TP_ADD_TC(tp, bpfjit_opt_ld_ind_4);
tests/net/bpfjit/t_bpfjit.c
4865
ATF_TP_ADD_TC(tp, bpfjit_abc_ja);
tests/net/bpfjit/t_bpfjit.c
4866
ATF_TP_ADD_TC(tp, bpfjit_abc_ja_over);
tests/net/bpfjit/t_bpfjit.c
4867
ATF_TP_ADD_TC(tp, bpfjit_abc_ld_chain);
tests/net/bpfjit/t_bpfjit.c
4868
ATF_TP_ADD_TC(tp, bpfjit_examples_1);
tests/net/bpfjit/t_bpfjit.c
4869
ATF_TP_ADD_TC(tp, bpfjit_examples_2);
tests/net/bpfjit/t_bpfjit.c
4870
ATF_TP_ADD_TC(tp, bpfjit_examples_3);
tests/net/bpfjit/t_bpfjit.c
4871
ATF_TP_ADD_TC(tp, bpfjit_cop_no_ctx);
tests/net/bpfjit/t_bpfjit.c
4872
ATF_TP_ADD_TC(tp, bpfjit_copx_no_ctx);
tests/net/bpfjit/t_cop.c
731
ATF_TP_ADD_TCS(tp)
tests/net/bpfjit/t_cop.c
738
ATF_TP_ADD_TC(tp, bpfjit_cop_no_ctx);
tests/net/bpfjit/t_cop.c
739
ATF_TP_ADD_TC(tp, bpfjit_cop_ret_A);
tests/net/bpfjit/t_cop.c
740
ATF_TP_ADD_TC(tp, bpfjit_cop_ret_buflen);
tests/net/bpfjit/t_cop.c
741
ATF_TP_ADD_TC(tp, bpfjit_cop_ret_wirelen);
tests/net/bpfjit/t_cop.c
742
ATF_TP_ADD_TC(tp, bpfjit_cop_ret_nfuncs);
tests/net/bpfjit/t_cop.c
743
ATF_TP_ADD_TC(tp, bpfjit_cop_side_effect);
tests/net/bpfjit/t_cop.c
744
ATF_TP_ADD_TC(tp, bpfjit_cop_copx);
tests/net/bpfjit/t_cop.c
745
ATF_TP_ADD_TC(tp, bpfjit_cop_invalid_index);
tests/net/bpfjit/t_cop.c
747
ATF_TP_ADD_TC(tp, bpfjit_copx_no_ctx);
tests/net/bpfjit/t_cop.c
748
ATF_TP_ADD_TC(tp, bpfjit_copx_ret_A);
tests/net/bpfjit/t_cop.c
749
ATF_TP_ADD_TC(tp, bpfjit_copx_ret_buflen);
tests/net/bpfjit/t_cop.c
750
ATF_TP_ADD_TC(tp, bpfjit_copx_ret_wirelen);
tests/net/bpfjit/t_cop.c
751
ATF_TP_ADD_TC(tp, bpfjit_copx_ret_nfuncs);
tests/net/bpfjit/t_cop.c
752
ATF_TP_ADD_TC(tp, bpfjit_copx_side_effect);
tests/net/bpfjit/t_cop.c
753
ATF_TP_ADD_TC(tp, bpfjit_copx_cop);
tests/net/bpfjit/t_cop.c
754
ATF_TP_ADD_TC(tp, bpfjit_copx_invalid_index);
tests/net/bpfjit/t_extmem.c
487
ATF_TP_ADD_TCS(tp)
tests/net/bpfjit/t_extmem.c
495
ATF_TP_ADD_TC(tp, bpfjit_extmem_load_preinited);
tests/net/bpfjit/t_extmem.c
496
ATF_TP_ADD_TC(tp, bpfjit_extmem_invalid_load);
tests/net/bpfjit/t_extmem.c
497
ATF_TP_ADD_TC(tp, bpfjit_extmem_store);
tests/net/bpfjit/t_extmem.c
498
ATF_TP_ADD_TC(tp, bpfjit_extmem_side_effect);
tests/net/bpfjit/t_extmem.c
499
ATF_TP_ADD_TC(tp, bpfjit_extmem_invalid_store);
tests/net/bpfjit/t_extmem.c
500
ATF_TP_ADD_TC(tp, bpfjit_cop_ret_mem);
tests/net/bpfjit/t_extmem.c
501
ATF_TP_ADD_TC(tp, bpfjit_cop_ret_preinited_mem);
tests/net/bpfjit/t_extmem.c
502
ATF_TP_ADD_TC(tp, bpfjit_copx_ret_mem);
tests/net/bpfjit/t_extmem.c
503
ATF_TP_ADD_TC(tp, bpfjit_copx_ret_preinited_mem);
tests/net/bpfjit/t_mbuf.c
953
ATF_TP_ADD_TCS(tp)
tests/net/bpfjit/t_mbuf.c
960
ATF_TP_ADD_TC(tp, bpfjit_mbuf_ldb_abs);
tests/net/bpfjit/t_mbuf.c
961
ATF_TP_ADD_TC(tp, bpfjit_mbuf_ldh_abs);
tests/net/bpfjit/t_mbuf.c
962
ATF_TP_ADD_TC(tp, bpfjit_mbuf_ldw_abs);
tests/net/bpfjit/t_mbuf.c
963
ATF_TP_ADD_TC(tp, bpfjit_mbuf_ldb_ind);
tests/net/bpfjit/t_mbuf.c
964
ATF_TP_ADD_TC(tp, bpfjit_mbuf_ldh_ind);
tests/net/bpfjit/t_mbuf.c
965
ATF_TP_ADD_TC(tp, bpfjit_mbuf_ldw_ind);
tests/net/bpfjit/t_mbuf.c
966
ATF_TP_ADD_TC(tp, bpfjit_mbuf_msh);
tests/net/bpfjit/t_mbuf.c
967
ATF_TP_ADD_TC(tp, bpfjit_mbuf_ldb_abs_overflow);
tests/net/bpfjit/t_mbuf.c
968
ATF_TP_ADD_TC(tp, bpfjit_mbuf_ldh_abs_overflow);
tests/net/bpfjit/t_mbuf.c
969
ATF_TP_ADD_TC(tp, bpfjit_mbuf_ldw_abs_overflow);
tests/net/bpfjit/t_mbuf.c
970
ATF_TP_ADD_TC(tp, bpfjit_mbuf_ldb_ind_overflow1);
tests/net/bpfjit/t_mbuf.c
971
ATF_TP_ADD_TC(tp, bpfjit_mbuf_ldb_ind_overflow2);
tests/net/bpfjit/t_mbuf.c
972
ATF_TP_ADD_TC(tp, bpfjit_mbuf_ldb_ind_overflow3);
tests/net/bpfjit/t_mbuf.c
973
ATF_TP_ADD_TC(tp, bpfjit_mbuf_ldh_ind_overflow1);
tests/net/bpfjit/t_mbuf.c
974
ATF_TP_ADD_TC(tp, bpfjit_mbuf_ldh_ind_overflow2);
tests/net/bpfjit/t_mbuf.c
975
ATF_TP_ADD_TC(tp, bpfjit_mbuf_ldh_ind_overflow3);
tests/net/bpfjit/t_mbuf.c
976
ATF_TP_ADD_TC(tp, bpfjit_mbuf_ldw_ind_overflow1);
tests/net/bpfjit/t_mbuf.c
977
ATF_TP_ADD_TC(tp, bpfjit_mbuf_ldw_ind_overflow2);
tests/net/bpfjit/t_mbuf.c
978
ATF_TP_ADD_TC(tp, bpfjit_mbuf_ldw_ind_overflow3);
tests/net/bpfjit/t_mbuf.c
979
ATF_TP_ADD_TC(tp, bpfjit_mbuf_msh_overflow);
tests/net/can/t_can.c
745
ATF_TP_ADD_TCS(tp)
tests/net/can/t_can.c
748
ATF_TP_ADD_TC(tp, canlocreate);
tests/net/can/t_can.c
749
ATF_TP_ADD_TC(tp, cannoown);
tests/net/can/t_can.c
750
ATF_TP_ADD_TC(tp, canwritelo);
tests/net/can/t_can.c
751
ATF_TP_ADD_TC(tp, canwriteunbound);
tests/net/can/t_can.c
752
ATF_TP_ADD_TC(tp, cansendtolo);
tests/net/can/t_can.c
753
ATF_TP_ADD_TC(tp, cansendtowrite);
tests/net/can/t_can.c
754
ATF_TP_ADD_TC(tp, canreadlocal);
tests/net/can/t_can.c
755
ATF_TP_ADD_TC(tp, canrecvfrom);
tests/net/can/t_can.c
756
ATF_TP_ADD_TC(tp, canbindfilter);
tests/net/can/t_can.c
757
ATF_TP_ADD_TC(tp, cannoloop);
tests/net/can/t_can.c
758
ATF_TP_ADD_TC(tp, canbindunknown);
tests/net/can/t_canfilter.c
455
ATF_TP_ADD_TCS(tp)
tests/net/can/t_canfilter.c
458
ATF_TP_ADD_TC(tp, canfilter_basic);
tests/net/can/t_canfilter.c
459
ATF_TP_ADD_TC(tp, canfilter_null);
tests/net/can/t_canfilter.c
460
ATF_TP_ADD_TC(tp, canfilter_multiple);
tests/net/can/t_canfilter.c
461
ATF_TP_ADD_TC(tp, canfilter_get);
tests/net/icmp/t_forward.c
163
ATF_TP_ADD_TCS(tp)
tests/net/icmp/t_forward.c
166
ATF_TP_ADD_TC(tp, returndatabytes);
tests/net/icmp/t_ping.c
448
ATF_TP_ADD_TCS(tp)
tests/net/icmp/t_ping.c
451
ATF_TP_ADD_TC(tp, simpleping);
tests/net/icmp/t_ping.c
452
ATF_TP_ADD_TC(tp, floodping);
tests/net/icmp/t_ping.c
453
ATF_TP_ADD_TC(tp, floodping2);
tests/net/icmp/t_ping.c
454
ATF_TP_ADD_TC(tp, pingsize);
tests/net/icmp/t_ping.c
455
ATF_TP_ADD_TC(tp, ping_of_death);
tests/net/if/t_compat.c
80
ATF_TP_ADD_TCS(tp)
tests/net/if/t_compat.c
83
ATF_TP_ADD_TC(tp, OOSIOCGIFBRDADDR);
tests/net/if_loop/t_pr.c
221
ATF_TP_ADD_TCS(tp)
tests/net/if_loop/t_pr.c
224
ATF_TP_ADD_TC(tp, loopmtu);
tests/net/if_loop/t_pr.c
225
ATF_TP_ADD_TC(tp, loopmtu_csum);
tests/net/mcast/mcast.c
552
ATF_TP_ADD_TCS(tp)
tests/net/mcast/mcast.c
555
ATF_TP_ADD_TC(tp, conninet4);
tests/net/mcast/mcast.c
556
ATF_TP_ADD_TC(tp, connmappedinet4);
tests/net/mcast/mcast.c
557
ATF_TP_ADD_TC(tp, connmappedbuginet4);
tests/net/mcast/mcast.c
558
ATF_TP_ADD_TC(tp, conninet6);
tests/net/mcast/mcast.c
559
ATF_TP_ADD_TC(tp, unconninet4);
tests/net/mcast/mcast.c
560
ATF_TP_ADD_TC(tp, unconnmappedinet4);
tests/net/mcast/mcast.c
561
ATF_TP_ADD_TC(tp, unconnmappedbuginet4);
tests/net/mcast/mcast.c
562
ATF_TP_ADD_TC(tp, unconninet6);
tests/net/net/t_bind.c
168
ATF_TP_ADD_TCS(tp)
tests/net/net/t_bind.c
171
ATF_TP_ADD_TC(tp, bindany_4);
tests/net/net/t_bind.c
172
ATF_TP_ADD_TC(tp, bindany_6);
tests/net/net/t_ip_reass.c
428
ATF_TP_ADD_TCS(tp)
tests/net/net/t_ip_reass.c
430
ATF_TP_ADD_TC(tp, ip_reass__multiple_last_fragments);
tests/net/net/t_ip_reass.c
431
ATF_TP_ADD_TC(tp, ip_reass__zero_length_fragment);
tests/net/net/t_ip_reass.c
432
ATF_TP_ADD_TC(tp, ip_reass__large_fragment);
tests/net/net/t_mapped.c
300
ATF_TP_ADD_TCS(tp)
tests/net/net/t_mapped.c
303
ATF_TP_ADD_TC(tp, mapped_4_4);
tests/net/net/t_mapped.c
305
ATF_TP_ADD_TC(tp, mapped_4_6);
tests/net/net/t_mapped.c
307
ATF_TP_ADD_TC(tp, mapped_6_4);
tests/net/net/t_mapped.c
308
ATF_TP_ADD_TC(tp, mapped_6_6);
tests/net/net/t_pktinfo.c
181
ATF_TP_ADD_TCS(tp)
tests/net/net/t_pktinfo.c
184
ATF_TP_ADD_TC(tp, pktinfo);
tests/net/net/t_pktinfo_send.c
776
ATF_TP_ADD_TCS(tp)
tests/net/net/t_pktinfo_send.c
778
ATF_TP_ADD_TC(tp, pktinfo_send_unbound);
tests/net/net/t_pktinfo_send.c
779
ATF_TP_ADD_TC(tp, pktinfo_send_bindany);
tests/net/net/t_pktinfo_send.c
780
ATF_TP_ADD_TC(tp, pktinfo_send_bindaddr);
tests/net/net/t_pktinfo_send.c
781
ATF_TP_ADD_TC(tp, pktinfo_send_bindport);
tests/net/net/t_pktinfo_send.c
782
ATF_TP_ADD_TC(tp, pktinfo_send_bindaddrport);
tests/net/net/t_pktinfo_send.c
783
ATF_TP_ADD_TC(tp, pktinfo_send_bindother);
tests/net/net/t_pktinfo_send.c
784
ATF_TP_ADD_TC(tp, pktinfo_send_connected);
tests/net/net/t_pktinfo_send.c
785
ATF_TP_ADD_TC(tp, pktinfo_send_notown);
tests/net/net/t_pktinfo_send.c
786
ATF_TP_ADD_TC(tp, pktinfo_send_notown_bind);
tests/net/net/t_pktinfo_send.c
787
ATF_TP_ADD_TC(tp, pktinfo_send_rawip);
tests/net/net/t_pktinfo_send.c
788
ATF_TP_ADD_TC(tp, pktinfo_send_rawip_notown);
tests/net/net/t_pktinfo_send.c
789
ATF_TP_ADD_TC(tp, pktinfo_send_invalidarg);
tests/net/net/t_pktinfo_send.c
790
ATF_TP_ADD_TC(tp, pktinfo_send_ifindex);
tests/net/net/t_pktinfo_send.c
791
ATF_TP_ADD_TC(tp, pktinfo_send_multicast);
tests/net/net/t_raw.c
36
ATF_TP_ADD_TCS(tp)
tests/net/net/t_raw.c
39
ATF_TP_ADD_TC(tp, PRU_SENSE);
tests/net/net/t_socket_afinet.c
271
ATF_TP_ADD_TCS(tp)
tests/net/net/t_socket_afinet.c
274
ATF_TP_ADD_TC(tp, socket_afinet);
tests/net/net/t_socket_afinet.c
275
ATF_TP_ADD_TC(tp, socket_afinet_bind_zero);
tests/net/net/t_socket_afinet.c
276
ATF_TP_ADD_TC(tp, socket_afinet_bind_ok);
tests/net/net/t_socket_afinet.c
278
ATF_TP_ADD_TC(tp, socket_afinet_poll_no_rdhup);
tests/net/net/t_socket_afinet.c
279
ATF_TP_ADD_TC(tp, socket_afinet_poll_rdhup);
tests/net/net/t_tcp.c
395
ATF_TP_ADD_TCS(tp)
tests/net/net/t_tcp.c
398
ATF_TP_ADD_TC(tp, accept_44_preserve_nonblock);
tests/net/net/t_tcp.c
399
ATF_TP_ADD_TC(tp, accept4_44_reset_nonblock);
tests/net/net/t_tcp.c
400
ATF_TP_ADD_TC(tp, fcntl44_reset_nonblock);
tests/net/net/t_tcp.c
401
ATF_TP_ADD_TC(tp, accept4_44_nonblock);
tests/net/net/t_tcp.c
402
ATF_TP_ADD_TC(tp, accept4_66_reset_nonblock);
tests/net/net/t_tcp.c
403
ATF_TP_ADD_TC(tp, fcntl66_reset_nonblock);
tests/net/net/t_tcp.c
404
ATF_TP_ADD_TC(tp, accept4_66_nonblock);
tests/net/net/t_tcp.c
405
ATF_TP_ADD_TC(tp, accept4_46_reset_nonblock);
tests/net/net/t_tcp.c
406
ATF_TP_ADD_TC(tp, fcntl46_reset_nonblock);
tests/net/net/t_tcp.c
407
ATF_TP_ADD_TC(tp, accept4_46_nonblock);
tests/net/net/t_udp.c
104
ATF_TP_ADD_TCS(tp)
tests/net/net/t_udp.c
107
ATF_TP_ADD_TC(tp, udp4_send);
tests/net/net/t_udp.c
108
ATF_TP_ADD_TC(tp, udp6_send);
tests/net/net/t_unix.c
553
ATF_TP_ADD_TCS(tp)
tests/net/net/t_unix.c
556
ATF_TP_ADD_TC(tp, sockaddr_un_len_exceed);
tests/net/net/t_unix.c
557
ATF_TP_ADD_TC(tp, sockaddr_un_len_max);
tests/net/net/t_unix.c
558
ATF_TP_ADD_TC(tp, sockaddr_un_closed);
tests/net/net/t_unix.c
559
ATF_TP_ADD_TC(tp, sockaddr_un_local_connwait);
tests/net/net/t_unix.c
560
ATF_TP_ADD_TC(tp, sockaddr_un_local_peereid);
tests/net/net/t_unix.c
561
ATF_TP_ADD_TC(tp, sockaddr_un_fstat);
tests/net/sys/t_rfc6056.c
146
ATF_TP_ADD_TCS(tp)
tests/net/sys/t_rfc6056.c
148
ATF_TP_ADD_TC(tp, inet4);
tests/net/sys/t_rfc6056.c
149
ATF_TP_ADD_TC(tp, inet6);
tests/net/tcp/t_tcp_connect_port.c
361
ATF_TP_ADD_TCS(tp)
tests/net/tcp/t_tcp_connect_port.c
363
ATF_TP_ADD_TC(tp, basic_ipv4);
tests/net/tcp/t_tcp_connect_port.c
364
ATF_TP_ADD_TC(tp, basic_ipv6);
tests/rump/modautoload/t_modautoload.c
83
ATF_TP_ADD_TCS(tp)
tests/rump/modautoload/t_modautoload.c
85
ATF_TP_ADD_TC(tp, modautoload);
tests/rump/rumpkern/t_copy.c
130
ATF_TP_ADD_TCS(tp)
tests/rump/rumpkern/t_copy.c
133
ATF_TP_ADD_TC(tp, copystr);
tests/rump/rumpkern/t_copy.c
134
ATF_TP_ADD_TC(tp, copyinstr);
tests/rump/rumpkern/t_copy.c
135
ATF_TP_ADD_TC(tp, copyoutstr);
tests/rump/rumpkern/t_copy.c
136
ATF_TP_ADD_TC(tp, copy_efault);
tests/rump/rumpkern/t_kern.c
127
ATF_TP_ADD_TCS(tp)
tests/rump/rumpkern/t_kern.c
130
ATF_TP_ADD_TC(tp, lockme_MTX);
tests/rump/rumpkern/t_kern.c
131
ATF_TP_ADD_TC(tp, lockme_RWDOUBLEX);
tests/rump/rumpkern/t_kern.c
132
ATF_TP_ADD_TC(tp, lockme_RWRX);
tests/rump/rumpkern/t_kern.c
133
ATF_TP_ADD_TC(tp, lockme_RWXR);
tests/rump/rumpkern/t_kern.c
134
ATF_TP_ADD_TC(tp, lockme_DOUBLEINIT);
tests/rump/rumpkern/t_kern.c
135
ATF_TP_ADD_TC(tp, lockme_DOUBLEFREE);
tests/rump/rumpkern/t_kern.c
136
ATF_TP_ADD_TC(tp, lockme_DESTROYHELD);
tests/rump/rumpkern/t_kern.c
137
ATF_TP_ADD_TC(tp, lockme_MEMFREE);
tests/rump/rumpkern/t_lwproc.c
305
ATF_TP_ADD_TCS(tp)
tests/rump/rumpkern/t_lwproc.c
308
ATF_TP_ADD_TC(tp, makelwp);
tests/rump/rumpkern/t_lwproc.c
309
ATF_TP_ADD_TC(tp, proccreds);
tests/rump/rumpkern/t_lwproc.c
310
ATF_TP_ADD_TC(tp, inherit);
tests/rump/rumpkern/t_lwproc.c
311
ATF_TP_ADD_TC(tp, lwps);
tests/rump/rumpkern/t_lwproc.c
312
ATF_TP_ADD_TC(tp, nolwprelease);
tests/rump/rumpkern/t_lwproc.c
313
ATF_TP_ADD_TC(tp, nolwp);
tests/rump/rumpkern/t_lwproc.c
314
ATF_TP_ADD_TC(tp, nullswitch);
tests/rump/rumpkern/t_lwproc.c
315
ATF_TP_ADD_TC(tp, rfork);
tests/rump/rumpkern/t_modcmd.c
177
ATF_TP_ADD_TCS(tp)
tests/rump/rumpkern/t_modcmd.c
179
ATF_TP_ADD_TC(tp, cmsg_modcmd);
tests/rump/rumpkern/t_modlinkset.c
68
ATF_TP_ADD_TCS(tp)
tests/rump/rumpkern/t_modlinkset.c
70
ATF_TP_ADD_TC(tp, modlinkset);
tests/rump/rumpkern/t_signals.c
119
ATF_TP_ADD_TCS(tp)
tests/rump/rumpkern/t_signals.c
122
ATF_TP_ADD_TC(tp, sigraise);
tests/rump/rumpkern/t_signals.c
123
ATF_TP_ADD_TC(tp, sigignore);
tests/rump/rumpkern/t_signals.c
124
ATF_TP_ADD_TC(tp, sigpanic);
tests/rump/rumpkern/t_threadpool.c
147
ATF_TP_ADD_TCS(tp)
tests/rump/rumpkern/t_threadpool.c
149
ATF_TP_ADD_TC(tp, threadpool_unbound_lifecycle);
tests/rump/rumpkern/t_threadpool.c
150
ATF_TP_ADD_TC(tp, threadpool_percpu_lifecycle);
tests/rump/rumpkern/t_threadpool.c
151
ATF_TP_ADD_TC(tp, threadpool_unbound_schedule);
tests/rump/rumpkern/t_threadpool.c
152
ATF_TP_ADD_TC(tp, threadpool_percpu_schedule);
tests/rump/rumpkern/t_threadpool.c
153
ATF_TP_ADD_TC(tp, threadpool_job_cancel);
tests/rump/rumpkern/t_threadpool.c
154
ATF_TP_ADD_TC(tp, threadpool_job_cancelthrash);
tests/rump/rumpkern/t_threads.c
75
ATF_TP_ADD_TCS(tp)
tests/rump/rumpkern/t_threads.c
77
ATF_TP_ADD_TC(tp, threadjoin);
tests/rump/rumpkern/t_threads.c
78
ATF_TP_ADD_TC(tp, kthread);
tests/rump/rumpkern/t_tsleep.c
58
ATF_TP_ADD_TCS(tp)
tests/rump/rumpkern/t_tsleep.c
60
ATF_TP_ADD_TC(tp, tsleep);
tests/rump/rumpkern/t_vm.c
87
ATF_TP_ADD_TCS(tp)
tests/rump/rumpkern/t_vm.c
90
ATF_TP_ADD_TC(tp, busypage);
tests/rump/rumpkern/t_vm.c
91
ATF_TP_ADD_TC(tp, uvmwait);
tests/rump/rumpkern/t_workqueue.c
100
ATF_TP_ADD_TCS(tp)
tests/rump/rumpkern/t_workqueue.c
102
ATF_TP_ADD_TC(tp, workqueue1);
tests/rump/rumpkern/t_workqueue.c
103
ATF_TP_ADD_TC(tp, workqueue_wait);
tests/rump/rumpkern/t_workqueue.c
104
ATF_TP_ADD_TC(tp, workqueue_wait_pause);
tests/rump/rumpvfs/t_basic.c
75
ATF_TP_ADD_TCS(tp)
tests/rump/rumpvfs/t_basic.c
78
ATF_TP_ADD_TC(tp, lseekrv);
tests/rump/rumpvfs/t_etfs.c
297
ATF_TP_ADD_TCS(tp)
tests/rump/rumpvfs/t_etfs.c
300
ATF_TP_ADD_TC(tp, reregister_reg);
tests/rump/rumpvfs/t_etfs.c
301
ATF_TP_ADD_TC(tp, reregister_blk);
tests/rump/rumpvfs/t_etfs.c
302
ATF_TP_ADD_TC(tp, large_blk);
tests/rump/rumpvfs/t_etfs.c
303
ATF_TP_ADD_TC(tp, range_blk);
tests/rump/rumpvfs/t_etfs.c
304
ATF_TP_ADD_TC(tp, key);
tests/rump/rumpvfs/t_p2kifs.c
92
ATF_TP_ADD_TCS(tp)
tests/rump/rumpvfs/t_p2kifs.c
95
ATF_TP_ADD_TC(tp, makecn);
tests/sys/crypto/aes/t_aes.c
135
ATF_TP_ADD_TCS(tp)
tests/sys/crypto/aes/t_aes.c
138
ATF_TP_ADD_TC(tp, aes_ct_selftest);
tests/sys/crypto/aes/t_aes.c
139
ATF_TP_ADD_TC(tp, aes_ct64_selftest);
tests/sys/crypto/aes/t_aes.c
142
ATF_TP_ADD_TC(tp, aes_armv8_selftest);
tests/sys/crypto/aes/t_aes.c
146
ATF_TP_ADD_TC(tp, aes_neon_selftest);
tests/sys/crypto/aes/t_aes.c
150
ATF_TP_ADD_TC(tp, aes_ni_selftest);
tests/sys/crypto/aes/t_aes.c
154
ATF_TP_ADD_TC(tp, aes_sse2_4x32_selftest);
tests/sys/crypto/aes/t_aes.c
155
ATF_TP_ADD_TC(tp, aes_ssse3_selftest);
tests/sys/crypto/aes/t_aes.c
156
ATF_TP_ADD_TC(tp, aes_via_selftest);
tests/sys/crypto/chacha/t_chacha.c
100
ATF_TP_ADD_TC(tp, chacha_neon_selftest);
tests/sys/crypto/chacha/t_chacha.c
104
ATF_TP_ADD_TC(tp, chacha_sse2_selftest);
tests/sys/crypto/chacha/t_chacha.c
94
ATF_TP_ADD_TCS(tp)
tests/sys/crypto/chacha/t_chacha.c
97
ATF_TP_ADD_TC(tp, chacha_ref_selftest);
tests/sys/net/t_print.c
172
ATF_TP_ADD_TCS(tp)
tests/sys/net/t_print.c
175
ATF_TP_ADD_TC(tp, dl_print);
tests/sys/net/t_print.c
176
ATF_TP_ADD_TC(tp, sdl_print);
tests/sys/netatalk/t_print.c
129
ATF_TP_ADD_TCS(tp)
tests/sys/netatalk/t_print.c
132
ATF_TP_ADD_TC(tp, at_print);
tests/sys/netatalk/t_print.c
133
ATF_TP_ADD_TC(tp, sat_print);
tests/sys/netinet/t_print.c
138
ATF_TP_ADD_TCS(tp)
tests/sys/netinet/t_print.c
141
ATF_TP_ADD_TC(tp, in_print);
tests/sys/netinet/t_print.c
142
ATF_TP_ADD_TC(tp, sin_print);
tests/sys/netinet6/t_print.c
148
ATF_TP_ADD_TCS(tp)
tests/sys/netinet6/t_print.c
151
ATF_TP_ADD_TC(tp, in6_print);
tests/sys/netinet6/t_print.c
152
ATF_TP_ADD_TC(tp, sin6_print);
tests/sys/uvm/t_uvm_physseg.c
2324
ATF_TP_ADD_TCS(tp)
tests/sys/uvm/t_uvm_physseg.c
2328
ATF_TP_ADD_TC(tp, uvm_physseg_alloc_atboot_mismatch);
tests/sys/uvm/t_uvm_physseg.c
2329
ATF_TP_ADD_TC(tp, uvm_physseg_alloc_atboot_overrun);
tests/sys/uvm/t_uvm_physseg.c
2330
ATF_TP_ADD_TC(tp, uvm_physseg_alloc_sanity);
tests/sys/uvm/t_uvm_physseg.c
2331
ATF_TP_ADD_TC(tp, uvm_physseg_free_atboot_mismatch);
tests/sys/uvm/t_uvm_physseg.c
2332
ATF_TP_ADD_TC(tp, uvm_physseg_free_sanity);
tests/sys/uvm/t_uvm_physseg.c
2334
ATF_TP_ADD_TC(tp, uvm_physseg_atboot_free_leak);
tests/sys/uvm/t_uvm_physseg.c
2338
ATF_TP_ADD_TC(tp, uvm_physseg_plug);
tests/sys/uvm/t_uvm_physseg.c
2339
ATF_TP_ADD_TC(tp, uvm_physseg_unplug);
tests/sys/uvm/t_uvm_physseg.c
2342
ATF_TP_ADD_TC(tp, uvm_physseg_init);
tests/sys/uvm/t_uvm_physseg.c
2343
ATF_TP_ADD_TC(tp, uvm_page_physload_preload);
tests/sys/uvm/t_uvm_physseg.c
2344
ATF_TP_ADD_TC(tp, uvm_page_physload_postboot);
tests/sys/uvm/t_uvm_physseg.c
2345
ATF_TP_ADD_TC(tp, uvm_physseg_handle_immutable);
tests/sys/uvm/t_uvm_physseg.c
2346
ATF_TP_ADD_TC(tp, uvm_physseg_seg_chomp_slab);
tests/sys/uvm/t_uvm_physseg.c
2347
ATF_TP_ADD_TC(tp, uvm_physseg_alloc_from_slab);
tests/sys/uvm/t_uvm_physseg.c
2348
ATF_TP_ADD_TC(tp, uvm_physseg_init_seg);
tests/sys/uvm/t_uvm_physseg.c
2349
ATF_TP_ADD_TC(tp, uvm_physseg_get_start);
tests/sys/uvm/t_uvm_physseg.c
2350
ATF_TP_ADD_TC(tp, uvm_physseg_get_start_invalid);
tests/sys/uvm/t_uvm_physseg.c
2351
ATF_TP_ADD_TC(tp, uvm_physseg_get_end);
tests/sys/uvm/t_uvm_physseg.c
2352
ATF_TP_ADD_TC(tp, uvm_physseg_get_end_invalid);
tests/sys/uvm/t_uvm_physseg.c
2353
ATF_TP_ADD_TC(tp, uvm_physseg_get_avail_start);
tests/sys/uvm/t_uvm_physseg.c
2354
ATF_TP_ADD_TC(tp, uvm_physseg_get_avail_start_invalid);
tests/sys/uvm/t_uvm_physseg.c
2355
ATF_TP_ADD_TC(tp, uvm_physseg_get_avail_end);
tests/sys/uvm/t_uvm_physseg.c
2356
ATF_TP_ADD_TC(tp, uvm_physseg_get_avail_end_invalid);
tests/sys/uvm/t_uvm_physseg.c
2357
ATF_TP_ADD_TC(tp, uvm_physseg_get_next);
tests/sys/uvm/t_uvm_physseg.c
2358
ATF_TP_ADD_TC(tp, uvm_physseg_get_next_invalid);
tests/sys/uvm/t_uvm_physseg.c
2359
ATF_TP_ADD_TC(tp, uvm_physseg_get_prev);
tests/sys/uvm/t_uvm_physseg.c
2360
ATF_TP_ADD_TC(tp, uvm_physseg_get_prev_invalid);
tests/sys/uvm/t_uvm_physseg.c
2361
ATF_TP_ADD_TC(tp, uvm_physseg_get_first);
tests/sys/uvm/t_uvm_physseg.c
2362
ATF_TP_ADD_TC(tp, uvm_physseg_get_last);
tests/sys/uvm/t_uvm_physseg.c
2363
ATF_TP_ADD_TC(tp, uvm_physseg_valid);
tests/sys/uvm/t_uvm_physseg.c
2364
ATF_TP_ADD_TC(tp, uvm_physseg_valid_invalid);
tests/sys/uvm/t_uvm_physseg.c
2365
ATF_TP_ADD_TC(tp, uvm_physseg_get_highest);
tests/sys/uvm/t_uvm_physseg.c
2366
ATF_TP_ADD_TC(tp, uvm_physseg_get_free_list);
tests/sys/uvm/t_uvm_physseg.c
2367
ATF_TP_ADD_TC(tp, uvm_physseg_get_start_hint);
tests/sys/uvm/t_uvm_physseg.c
2368
ATF_TP_ADD_TC(tp, uvm_physseg_set_start_hint);
tests/sys/uvm/t_uvm_physseg.c
2369
ATF_TP_ADD_TC(tp, uvm_physseg_set_start_hint_invalid);
tests/sys/uvm/t_uvm_physseg.c
2370
ATF_TP_ADD_TC(tp, uvm_physseg_get_pg);
tests/sys/uvm/t_uvm_physseg.c
2373
ATF_TP_ADD_TC(tp, uvm_physseg_get_pmseg);
tests/sys/uvm/t_uvm_physseg.c
2375
ATF_TP_ADD_TC(tp, vm_physseg_find);
tests/sys/uvm/t_uvm_physseg.c
2376
ATF_TP_ADD_TC(tp, vm_physseg_find_invalid);
tests/sys/uvm/t_uvm_physseg.c
2378
ATF_TP_ADD_TC(tp, uvm_page_physunload_start);
tests/sys/uvm/t_uvm_physseg.c
2379
ATF_TP_ADD_TC(tp, uvm_page_physunload_end);
tests/sys/uvm/t_uvm_physseg.c
2380
ATF_TP_ADD_TC(tp, uvm_page_physunload_none);
tests/sys/uvm/t_uvm_physseg.c
2381
ATF_TP_ADD_TC(tp, uvm_page_physunload_delete_start);
tests/sys/uvm/t_uvm_physseg.c
2382
ATF_TP_ADD_TC(tp, uvm_page_physunload_delete_end);
tests/sys/uvm/t_uvm_physseg.c
2383
ATF_TP_ADD_TC(tp, uvm_page_physunload_invalid);
tests/sys/uvm/t_uvm_physseg.c
2384
ATF_TP_ADD_TC(tp, uvm_page_physunload_force);
tests/sys/uvm/t_uvm_physseg.c
2385
ATF_TP_ADD_TC(tp, uvm_page_physunload_force_invalid);
tests/sys/uvm/t_uvm_physseg_load.c
720
ATF_TP_ADD_TCS(tp)
tests/sys/uvm/t_uvm_physseg_load.c
723
ATF_TP_ADD_TC(tp, uvm_physseg_100);
tests/sys/uvm/t_uvm_physseg_load.c
724
ATF_TP_ADD_TC(tp, uvm_physseg_1K);
tests/sys/uvm/t_uvm_physseg_load.c
725
ATF_TP_ADD_TC(tp, uvm_physseg_10K);
tests/sys/uvm/t_uvm_physseg_load.c
726
ATF_TP_ADD_TC(tp, uvm_physseg_100K);
tests/sys/uvm/t_uvm_physseg_load.c
727
ATF_TP_ADD_TC(tp, uvm_physseg_1M);
tests/sys/uvm/t_uvm_physseg_load.c
728
ATF_TP_ADD_TC(tp, uvm_physseg_10M);
tests/sys/uvm/t_uvm_physseg_load.c
729
ATF_TP_ADD_TC(tp, uvm_physseg_100M);
tests/sys/uvm/t_uvm_physseg_load.c
733
ATF_TP_ADD_TC(tp, uvm_physseg_1MB);
tests/sys/uvm/t_uvm_physseg_load.c
734
ATF_TP_ADD_TC(tp, uvm_physseg_64MB);
tests/sys/uvm/t_uvm_physseg_load.c
735
ATF_TP_ADD_TC(tp, uvm_physseg_128MB);
tests/sys/uvm/t_uvm_physseg_load.c
736
ATF_TP_ADD_TC(tp, uvm_physseg_256MB);
tests/sys/x86/t_convert_xmm_s87.c
205
ATF_TP_ADD_TCS(tp)
tests/sys/x86/t_convert_xmm_s87.c
207
ATF_TP_ADD_TC(tp, fsave_fxsave_hw);
tests/sys/x86/t_convert_xmm_s87.c
208
ATF_TP_ADD_TC(tp, s87_to_xmm);
tests/sys/x86/t_convert_xmm_s87.c
209
ATF_TP_ADD_TC(tp, xmm_to_s87);
tests/usr.sbin/inetd/t_inetd.c
151
ATF_TP_ADD_TCS(tp)
tests/usr.sbin/inetd/t_inetd.c
153
ATF_TP_ADD_TC(tp, test_ratelimit);
usr.bin/apropos/apropos.c
129
tp = gettag("_whatdb", 1);
usr.bin/apropos/apropos.c
130
if (!tp)
usr.bin/apropos/apropos.c
132
TAILQ_FOREACH(ep, &tp->entrylist, q) {
usr.bin/apropos/apropos.c
77
TAG *tp;
usr.bin/calendar/calendar.c
242
tp = localtime(&now);
usr.bin/calendar/calendar.c
244
getmmdd(tp, datestr);
usr.bin/calendar/calendar.c
246
if (isleap(tp->tm_year + TM_YEAR_BASE)) {
usr.bin/calendar/calendar.c
254
offset = tp->tm_wday == 5 ? lookahead + weekend : lookahead;
usr.bin/calendar/calendar.c
256
header[5].iov_len = strftime(dayname, sizeof(dayname), "%A", tp);
usr.bin/calendar/calendar.c
290
month = tp->tm_mon + 1;
usr.bin/calendar/calendar.c
312
month = tp->tm_mon + 1;
usr.bin/calendar/calendar.c
318
if (flags & F_WILDMONTH && flags & F_ISDAY && day == tp->tm_mday)
usr.bin/calendar/calendar.c
321
if (flags & F_WILDMONTH && flags & F_ISDOW && day == tp->tm_wday + 1)
usr.bin/calendar/calendar.c
324
if (flags & F_ISMONTH && flags & F_WILDDAY && month == tp->tm_mon + 1)
usr.bin/calendar/calendar.c
327
if (flags & F_ISMONTH && flags & F_ISDOW && month == tp->tm_mon + 1 &&
usr.bin/calendar/calendar.c
328
day == tp->tm_wday + 1)
usr.bin/calendar/calendar.c
332
day = tp->tm_mday + (((day - 1) - tp->tm_wday + 7) % 7);
usr.bin/calendar/calendar.c
336
if (day >= tp->tm_yday && day <= tp->tm_yday + offset)
usr.bin/calendar/calendar.c
340
if (yrdays - tp->tm_yday + day <= offset)
usr.bin/calendar/calendar.c
368
return tp->tm_mon + 1;
usr.bin/calendar/calendar.c
92
static struct tm *tp;
usr.bin/chpass/util.c
60
struct tm *tp = localtime(&tval);
usr.bin/chpass/util.c
62
(void) strftime(buf, len, "%B %d, %Y", tp);
usr.bin/finger/lprint.c
128
struct tm *tp = localtime(&ti);
usr.bin/finger/lprint.c
129
if (tp != NULL) {
usr.bin/finger/lprint.c
130
char *t = asctime(tp);
usr.bin/finger/lprint.c
131
char *tzn = TIMEZONE(tp);
usr.bin/ftp/cmds.c
2049
const char *tp[9], *te[9];
usr.bin/ftp/cmds.c
2066
tp[toknum] = cp1;
usr.bin/ftp/cmds.c
2116
const char *cp3 = tp[toknum];
usr.bin/ftp/cmds.c
2141
const char *cp3=tp[toknum];
usr.bin/ftp/cmds.c
2190
const char *cp3 = tp[toknum];
usr.bin/ftp/cmds.c
462
const char *tp;
usr.bin/ftp/cmds.c
483
tp = doprocess(buf, sizeof(buf), cp,
usr.bin/ftp/cmds.c
486
cp, tp, cp != tp || !interactive);
usr.bin/ftp/cmds.c
507
tp = doprocess(buf, sizeof(buf), argv[i],
usr.bin/ftp/cmds.c
510
argv[i], tp, tp != argv[i] || !interactive);
usr.bin/ftp/cmds.c
534
tp = *cpp;
usr.bin/ftp/cmds.c
535
tp = doprocess(buf, sizeof(buf), *cpp,
usr.bin/ftp/cmds.c
538
*cpp, tp, *cpp != tp || !interactive);
usr.bin/ftp/cmds.c
686
char *cp, *tp;
usr.bin/ftp/cmds.c
724
tp = doprocess(buf, sizeof(buf), cp, mcase, ntflag, mapflag);
usr.bin/ftp/cmds.c
728
if (stat(tp, &stbuf) == 0)
usr.bin/ftp/cmds.c
731
warn("Can't stat `%s'", tp);
usr.bin/ftp/cmds.c
733
recvrequest("RETR", tp, cp, restart_point ? "r+" : "w",
usr.bin/ftp/cmds.c
734
tp != cp || !interactive, 1);
usr.bin/m4/main.c
671
inspect(int c, char *tp)
usr.bin/m4/main.c
673
char *name = tp;
usr.bin/m4/main.c
674
char *etp = tp+MAXTOK;
usr.bin/m4/main.c
677
*tp++ = c;
usr.bin/m4/main.c
679
while ((isalnum(c = gpbc()) || c == '_') && tp < etp)
usr.bin/m4/main.c
680
*tp++ = c;
usr.bin/m4/main.c
683
*tp = EOS;
usr.bin/m4/main.c
686
if (tp == ep) {
usr.bin/m4/main.c
698
p = ohash_find(&macros, ohash_qlookupi(&macros, name, (void *)&tp));
usr.bin/mail/cmd4.c
380
struct name *tp;
usr.bin/mail/cmd4.c
382
for (tp = extra_headers; tp->n_flink; tp = tp->n_flink)
usr.bin/mail/cmd4.c
384
tp->n_flink = np;
usr.bin/mail/cmd4.c
385
np->n_blink = tp;
usr.bin/mail/head.c
55
cmatch(const char *cp, const char *tp)
usr.bin/mail/head.c
58
while (*cp && *tp)
usr.bin/mail/head.c
59
switch (*tp++) {
usr.bin/mail/head.c
95
if (*cp || *tp)
usr.bin/mail/send.c
658
struct name *tp;
usr.bin/mail/send.c
663
tp = nalloc(np->n_name, np->n_type);
usr.bin/mail/send.c
665
rv = tp;
usr.bin/mail/send.c
667
lp->n_flink = tp;
usr.bin/mail/send.c
668
tp->n_blink = lp;
usr.bin/mail/send.c
670
lp = tp;
usr.bin/mail/thread.c
1307
reversecmd_core(struct thread_s *tp)
usr.bin/mail/thread.c
1314
thread_start = tp->t_head;
usr.bin/mail/thread.c
1329
reindex(tp);
usr.bin/mail/thread.c
359
reindex(struct thread_s *tp)
usr.bin/mail/thread.c
364
assert(tp != NULL);
usr.bin/mail/thread.c
366
if ((mp = tp->t_head) == NULL || mp->m_size == 0)
usr.bin/mail/thread.c
376
i = reindex_core(tp->t_head);
usr.bin/mail/thread.c
380
for (mp = first_message(tp->t_head); mp; mp = next_message(mp))
usr.bin/mail/thread.c
386
tp->t_msgCount = i;
usr.bin/mail/thread.c
388
for (mp = first_message(tp->t_head); mp; mp = next_message(mp))
usr.bin/mail/thread.c
389
tp->t_msgtbl[i++] = mp;
usr.bin/mail/thread.c
426
struct message *tp;
usr.bin/mail/thread.c
429
for (tp = mp->m_plink; tp; tp = tp->m_plink)
usr.bin/mail/thread.c
502
thread_init(struct thread_s *tp, struct message *mp, int msgCount)
usr.bin/mail/thread.c
506
if (tp->t_msgtbl == NULL || msgCount > tp->t_msgCount) {
usr.bin/mail/thread.c
507
if (tp->t_msgtbl)
usr.bin/mail/thread.c
508
free(tp->t_msgtbl);
usr.bin/mail/thread.c
509
tp->t_msgtbl = ecalloc((size_t)msgCount, sizeof(tp->t_msgtbl[0]));
usr.bin/mail/thread.c
511
tp->t_head = mp;
usr.bin/mail/thread.c
512
tp->t_msgCount = msgCount;
usr.bin/mail/thread.c
514
tp->t_msgtbl[i] = &mp[i];
usr.bin/mail/thread.c
700
struct message *tp;
usr.bin/mail/thread.c
708
for (tp = next_message(mp); tp && tp->m_depth > mp->m_depth; tp = next_message(tp))
usr.bin/mail/thread.c
711
if (tp && tp->m_depth < mp->m_depth)
usr.bin/mail/thread.c
714
nextmp = tp;
usr.bin/mail/thread.c
720
tp = mp;
usr.bin/mail/thread.c
722
marray[i] = tp;
usr.bin/mail/thread.c
723
tp = next_message(tp);
usr.bin/make/meta.c
231
char *tp;
usr.bin/make/meta.c
268
tp = bmake_strdup(tname);
usr.bin/make/meta.c
269
dtp = dirname(tp);
usr.bin/make/meta.c
295
free(tp);
usr.bin/man/manconf.c
102
TAG *tp;
usr.bin/man/manconf.c
135
tp = gettag(p, 1);
usr.bin/man/manconf.c
136
if (!tp)
usr.bin/man/manconf.c
172
if (addentry(tp, t, 0) == -1)
usr.bin/man/manconf.c
178
if (addentry(tp, p, 0) == -1)
usr.bin/man/manconf.c
190
type = (char)((TAILQ_FIRST(&tp->entrylist) != NULL) ?
usr.bin/man/manconf.c
191
*(TAILQ_FIRST(&tp->entrylist)->s) : '\0');
usr.bin/man/manconf.c
202
tp->s, p);
usr.bin/man/manconf.c
206
if (addentry(tp, p, 0) == -1)
usr.bin/man/manconf.c
226
TAG *tp;
usr.bin/man/manconf.c
228
TAILQ_FOREACH(tp, &head, q)
usr.bin/man/manconf.c
229
if (!strcmp(name, tp->s))
usr.bin/man/manconf.c
230
return tp;
usr.bin/man/manconf.c
235
tp = malloc(sizeof(*tp));
usr.bin/man/manconf.c
236
if (tp)
usr.bin/man/manconf.c
237
tp->s = xstrdup(name, &tp->len);
usr.bin/man/manconf.c
238
if (!tp || !tp->s) {
usr.bin/man/manconf.c
239
if (tp)
usr.bin/man/manconf.c
240
free(tp);
usr.bin/man/manconf.c
243
TAILQ_INIT(&tp->entrylist);
usr.bin/man/manconf.c
244
TAILQ_INSERT_TAIL(&head, tp, q);
usr.bin/man/manconf.c
245
return tp;
usr.bin/man/manconf.c
254
addentry(TAG *tp, const char *newent, int ishead)
usr.bin/man/manconf.c
267
TAILQ_INSERT_HEAD(&tp->entrylist, ep, q);
usr.bin/man/manconf.c
269
TAILQ_INSERT_TAIL(&tp->entrylist, ep, q);
usr.bin/midiplay/midiplay.c
190
getvar(struct track *tp)
usr.bin/midiplay/midiplay.c
196
c = *tp->start++;
usr.bin/midiplay/midiplay.c
198
} while ((c & 0x80) && tp->start < tp->end);
usr.bin/midiplay/midiplay.c
203
getlen(struct track *tp)
usr.bin/midiplay/midiplay.c
206
len = getvar(tp);
usr.bin/midiplay/midiplay.c
207
if (tp->start + len > tp->end)
usr.bin/midiplay/midiplay.c
410
struct track *tp;
usr.bin/midiplay/midiplay.c
575
tp = tracks[0].indirect;
usr.bin/midiplay/midiplay.c
576
if ((verbose > 2 && tp->delta > 0) || verbose > 3) {
usr.bin/midiplay/midiplay.c
578
tp->delta, tp - tracks, verbose>3?" ":"\n");
usr.bin/midiplay/midiplay.c
581
if (tp->delta > 0) {
usr.bin/midiplay/midiplay.c
593
.divisions=tp->delta));
usr.bin/midiplay/midiplay.c
595
byte = *tp->start++;
usr.bin/midiplay/midiplay.c
597
meta = *tp->start++;
usr.bin/midiplay/midiplay.c
598
mlen = getlen(tp);
usr.bin/midiplay/midiplay.c
601
dometa(meta, tp->start, mlen);
usr.bin/midiplay/midiplay.c
602
tp->start += mlen;
usr.bin/midiplay/midiplay.c
605
tp->status = byte;
usr.bin/midiplay/midiplay.c
607
tp->start--;
usr.bin/midiplay/midiplay.c
608
mlen = MIDI_LENGTH(tp->status);
usr.bin/midiplay/midiplay.c
609
msg = tp->start;
usr.bin/midiplay/midiplay.c
613
tp->status, mlen, msg[0]);
usr.bin/midiplay/midiplay.c
616
tp->status, mlen, msg[0], msg[1]);
usr.bin/midiplay/midiplay.c
618
if (insysex && tp->status != MIDI_SYSEX_END) {
usr.bin/midiplay/midiplay.c
623
status = MIDI_GET_STATUS(tp->status);
usr.bin/midiplay/midiplay.c
624
chan = MIDI_GET_CHAN(tp->status);
usr.bin/midiplay/midiplay.c
660
mlen = getlen(tp);
usr.bin/midiplay/midiplay.c
661
if (tp->status == MIDI_SYSEX_START) {
usr.bin/midiplay/midiplay.c
662
send_sysex(tp->start, mlen);
usr.bin/midiplay/midiplay.c
664
} else if (tp->status == MIDI_SYSEX_END) {
usr.bin/midiplay/midiplay.c
667
send_sysex(tp->start, mlen);
usr.bin/midiplay/midiplay.c
674
.byte=*(tp->start++)
usr.bin/midiplay/midiplay.c
685
tp->status);
usr.bin/midiplay/midiplay.c
687
tp->start += mlen;
usr.bin/midiplay/midiplay.c
689
if (tp->start >= tp->end) {
usr.bin/midiplay/midiplay.c
694
tp->delta = getvar(tp);
usr.bin/netstat/main.c
321
static void prepare(const char *, const char *, struct protox *tp);
usr.bin/netstat/main.c
353
prepare(const char *nf, const char *mf, struct protox *tp)
usr.bin/netstat/main.c
376
(pflag && tp->pr_sindex == N_PIMSTAT) ||
usr.bin/netstat/main.c
412
struct protox *tp; /* for printing cblocks & stats */
usr.bin/netstat/main.c
426
tp = NULL;
usr.bin/netstat/main.c
493
if ((tp = name2protox(optarg)) == NULL)
usr.bin/netstat/main.c
558
prepare(nlistf, memf, tp);
usr.bin/netstat/main.c
577
if (tp == NULL) {
usr.bin/netstat/main.c
579
tp = name2protox("tcp");
usr.bin/netstat/main.c
581
if (tp->pr_dump)
usr.bin/netstat/main.c
582
(*tp->pr_dump)(nl[tp->pr_index].n_value, tp->pr_name,
usr.bin/netstat/main.c
585
printf("%s: no PCB dump routine\n", tp->pr_name);
usr.bin/netstat/main.c
589
if (iflag && tp->pr_istats)
usr.bin/netstat/main.c
591
tp->pr_istats);
usr.bin/netstat/main.c
592
else if (tp->pr_stats)
usr.bin/netstat/main.c
593
(*tp->pr_stats)(nl[tp->pr_sindex].n_value,
usr.bin/netstat/main.c
594
tp->pr_name);
usr.bin/netstat/main.c
596
printf("%s: no stats routine\n", tp->pr_name);
usr.bin/netstat/main.c
695
for (tp = protox; tp->pr_name; tp++)
usr.bin/netstat/main.c
696
if (strcmp(tp->pr_name, p->p_name) == 0)
usr.bin/netstat/main.c
698
if (tp->pr_name == 0 || tp->pr_wanted == 0)
usr.bin/netstat/main.c
700
printproto(tp, p->p_name);
usr.bin/netstat/main.c
701
tp->pr_wanted = 0;
usr.bin/netstat/main.c
704
for (tp = protox; tp->pr_name; tp++)
usr.bin/netstat/main.c
705
if (tp->pr_wanted)
usr.bin/netstat/main.c
706
printproto(tp, tp->pr_name);
usr.bin/netstat/main.c
710
for (tp = ip6protox; tp->pr_name; tp++)
usr.bin/netstat/main.c
711
printproto(tp, tp->pr_name);
usr.bin/netstat/main.c
714
for (tp = arpprotox; tp->pr_name; tp++)
usr.bin/netstat/main.c
715
printproto(tp, tp->pr_name);
usr.bin/netstat/main.c
718
for (tp = pfkeyprotox; tp->pr_name; tp++)
usr.bin/netstat/main.c
719
printproto(tp, tp->pr_name);
usr.bin/netstat/main.c
723
for (tp = atalkprotox; tp->pr_name; tp++)
usr.bin/netstat/main.c
724
printproto(tp, tp->pr_name);
usr.bin/netstat/main.c
738
printproto(struct protox *tp, const char *name)
usr.bin/netstat/main.c
745
if (tp->pr_istats)
usr.bin/netstat/main.c
747
tp->pr_istats);
usr.bin/netstat/main.c
751
pr = tp->pr_stats;
usr.bin/netstat/main.c
752
off = nl[tp->pr_sindex].n_value;
usr.bin/netstat/main.c
755
pr = tp->pr_cblocks;
usr.bin/netstat/main.c
756
off = nl[tp->pr_index].n_value;
usr.bin/netstat/main.c
829
struct protox **tpp, *tp;
usr.bin/netstat/main.c
832
for (tp = *tpp; tp->pr_name; tp++)
usr.bin/netstat/main.c
833
if (strcmp(tp->pr_name, name) == 0)
usr.bin/netstat/main.c
834
return tp;
usr.bin/netstat/main.c
844
struct protox *tp;
usr.bin/netstat/main.c
852
if ((tp = knownname(name)) != NULL)
usr.bin/netstat/main.c
853
return tp;
usr.bin/rdist/docmd.c
369
extern char target[], *tp;
usr.bin/rdist/docmd.c
419
tp = NULL;
usr.bin/rdist/docmd.c
452
if (tp == NULL) {
usr.bin/rdist/docmd.c
455
tp = name = target;
usr.bin/rdist/docmd.c
456
while (*tp)
usr.bin/rdist/docmd.c
457
tp++;
usr.bin/rdist/docmd.c
497
otp = tp;
usr.bin/rdist/docmd.c
498
len = tp - target;
usr.bin/rdist/docmd.c
506
tp = otp;
usr.bin/rdist/docmd.c
507
*tp++ = '/';
usr.bin/rdist/docmd.c
509
while ((*tp++ = *cp++) != 0)
usr.bin/rdist/docmd.c
511
tp--;
usr.bin/rdist/docmd.c
515
tp = otp;
usr.bin/rdist/docmd.c
516
*tp = '\0';
usr.bin/rdist/expand.c
155
struct namelist *tp;
usr.bin/rdist/expand.c
186
tp = lookup(cp, 0, 0);
usr.bin/rdist/expand.c
189
if (tp != NULL) {
usr.bin/rdist/expand.c
190
for (; tp != NULL; tp = tp->n_next) {
usr.bin/rdist/expand.c
192
tp->n_name, tail);
usr.bin/rdist/server.c
1018
(void) snprintf(tp, sizeof(target) - (tp - target), "/%s", cp);
usr.bin/rdist/server.c
1176
(void) snprintf(tp, sizeof(target) - (tp - target),
usr.bin/rdist/server.c
1195
*tp = '\0';
usr.bin/rdist/server.c
1247
otp = tp;
usr.bin/rdist/server.c
1248
len = tp - target;
usr.bin/rdist/server.c
1257
tp = otp;
usr.bin/rdist/server.c
1258
*tp++ = '/';
usr.bin/rdist/server.c
1260
while ((*tp++ = *cp++) != 0)
usr.bin/rdist/server.c
1262
tp--;
usr.bin/rdist/server.c
1290
tp = otp;
usr.bin/rdist/server.c
1291
*tp = '\0';
usr.bin/rdist/server.c
1326
otp = tp;
usr.bin/rdist/server.c
1327
len = tp - target;
usr.bin/rdist/server.c
1336
tp = otp;
usr.bin/rdist/server.c
1337
*tp++ = '/';
usr.bin/rdist/server.c
1339
while ((*tp++ = *cp++) != 0)
usr.bin/rdist/server.c
1341
tp--;
usr.bin/rdist/server.c
1349
tp = otp;
usr.bin/rdist/server.c
1350
*tp = '\0';
usr.bin/rdist/server.c
137
tp = target;
usr.bin/rdist/server.c
138
while (*tp)
usr.bin/rdist/server.c
139
tp++;
usr.bin/rdist/server.c
160
*tp = '\0';
usr.bin/rdist/server.c
165
tp = stp[--catname];
usr.bin/rdist/server.c
166
*tp = '\0';
usr.bin/rdist/server.c
277
tp = target;
usr.bin/rdist/server.c
278
while (*tp)
usr.bin/rdist/server.c
279
tp++;
usr.bin/rdist/server.c
405
otp = tp;
usr.bin/rdist/server.c
406
len = tp - target;
usr.bin/rdist/server.c
416
tp = otp;
usr.bin/rdist/server.c
417
*tp++ = '/';
usr.bin/rdist/server.c
419
while ((*tp++ = *cp++) != 0)
usr.bin/rdist/server.c
421
tp--;
usr.bin/rdist/server.c
429
tp = otp;
usr.bin/rdist/server.c
430
*tp = '\0';
usr.bin/rdist/server.c
58
char *tp; /* pointer to end of target name */
usr.bin/rdist/server.c
713
(void) snprintf(tp, sizeof(target) - (tp - target),
usr.bin/rdist/server.c
723
*tp = '\0';
usr.bin/rdist/server.c
745
*tp = '\0';
usr.bin/rdist/server.c
811
stp[catname] = tp;
usr.bin/rdist/server.c
813
*tp++ = '/';
usr.bin/rdist/server.c
814
while ((*tp++ = *cp++) != 0)
usr.bin/rdist/server.c
816
tp--;
usr.bin/rdist/server.c
845
tp = stp[--catname];
usr.bin/rdist/server.c
846
*tp = '\0';
usr.bin/rdist/server.c
851
(void) snprintf(tp, sizeof(target) - (tp - target), "/%s", cp);
usr.bin/rump_dhcpclient/common.c
100
tp->tv_usec = ts.tv_nsec / 1000;
usr.bin/rump_dhcpclient/common.c
123
tp->tv_sec = nano / NSEC_PER_SEC;
usr.bin/rump_dhcpclient/common.c
126
tp->tv_sec--;
usr.bin/rump_dhcpclient/common.c
129
tp->tv_usec = rem / 1000;
usr.bin/rump_dhcpclient/common.c
138
return gettimeofday(tp, NULL);
usr.bin/rump_dhcpclient/common.c
83
get_monotonic(struct timeval *tp)
usr.bin/rump_dhcpclient/common.c
99
tp->tv_sec = ts.tv_sec;
usr.bin/showmount/showmount.c
274
struct mountlist *mp, **otp, *tp;
usr.bin/showmount/showmount.c
305
tp = *mlp;
usr.bin/showmount/showmount.c
306
while (tp) {
usr.bin/showmount/showmount.c
307
val = strcmp(mp->ml_host, tp->ml_host);
usr.bin/showmount/showmount.c
308
val2 = strcmp(mp->ml_dirp, tp->ml_dirp);
usr.bin/showmount/showmount.c
334
otp = &tp->ml_left;
usr.bin/showmount/showmount.c
335
tp = tp->ml_left;
usr.bin/showmount/showmount.c
337
otp = &tp->ml_right;
usr.bin/showmount/showmount.c
338
tp = tp->ml_right;
usr.bin/su/su.c
108
struct timeval tp;
usr.bin/su/su.c
409
(void)gettimeofday(&tp, NULL);
usr.bin/su/su.c
411
if (tp.tv_sec >= pwd->pw_change) {
usr.bin/su/su.c
416
} else if (pwd->pw_change - tp.tv_sec < pw_warntime)
usr.bin/su/su.c
421
if (tp.tv_sec >= pwd->pw_expire) {
usr.bin/su/su.c
426
} else if (pwd->pw_expire - tp.tv_sec <
usr.bin/systat/convtbl.c
110
struct convtbl *tp;
usr.bin/systat/convtbl.c
112
tp = get_tbl_ptr(size, scale);
usr.bin/systat/convtbl.c
113
return ((double)size * tp->mul / tp->scale);
usr.bin/systat/convtbl.c
120
struct convtbl *tp;
usr.bin/systat/convtbl.c
122
tp = get_tbl_ptr(size, scale);
usr.bin/systat/convtbl.c
123
return (tp->str);
usr.bin/systat/ps.c
331
struct tm *tp;
usr.bin/systat/ps.c
339
tp = localtime(&startt);
usr.bin/systat/ps.c
343
strftime(startstr, sizeof(startstr) - 1, "%l:%M%p", tp);
usr.bin/systat/ps.c
345
strftime(startstr, sizeof(startstr) - 1, "%a%I%p", tp);
usr.bin/systat/ps.c
347
strftime(startstr, sizeof(startstr) - 1, "%e%b%y", tp);
usr.bin/tftp/tftp.c
537
makerequest(int request, const char *name, struct tftphdr *tp, const char *mode,
usr.bin/tftp/tftp.c
542
tp->th_opcode = htons((u_short)request);
usr.bin/tftp/tftp.c
544
cp = tp->th_stuff;
usr.bin/tftp/tftp.c
546
cp = (void *)&tp->th_stuff;
usr.bin/tftp/tftp.c
578
return (cp - (char *)(void *)tp);
usr.bin/tftp/tftp.c
607
struct tftphdr *tp;
usr.bin/tftp/tftp.c
611
tp = (struct tftphdr *)(void *)ackbuf;
usr.bin/tftp/tftp.c
612
tp->th_opcode = htons((u_short)ERROR);
usr.bin/tftp/tftp.c
613
msglen = sizeof(ackbuf) - (&tp->th_msg[0] - ackbuf);
usr.bin/tftp/tftp.c
618
tp->th_code = EUNDEF;
usr.bin/tftp/tftp.c
619
(void)strlcpy(tp->th_msg, strerror(error - 100), msglen);
usr.bin/tftp/tftp.c
621
tp->th_code = htons((u_short)error);
usr.bin/tftp/tftp.c
622
(void)strlcpy(tp->th_msg, pe->e_msg, msglen);
usr.bin/tftp/tftp.c
624
length = strlen(tp->th_msg);
usr.bin/tftp/tftp.c
625
msglen = &tp->th_msg[length + 1] - ackbuf;
usr.bin/tftp/tftp.c
627
tpacket("sent", tp, (int)msglen);
usr.bin/tftp/tftp.c
633
tpacket(const char *s, struct tftphdr *tp, int n)
usr.bin/tftp/tftp.c
639
u_short op = ntohs(tp->th_opcode);
usr.bin/tftp/tftp.c
652
cp = tp->th_stuff;
usr.bin/tftp/tftp.c
654
cp = (void *) &tp->th_stuff;
usr.bin/tftp/tftp.c
679
(void)printf("<block=%d, %d bytes>\n", ntohs(tp->th_block),
usr.bin/tftp/tftp.c
684
(void)printf("<block=%d>\n", ntohs(tp->th_block));
usr.bin/tftp/tftp.c
688
(void)printf("<code=%d, msg=%s>\n", ntohs(tp->th_code),
usr.bin/tftp/tftp.c
689
tp->th_msg);
usr.bin/tftp/tftp.c
695
cp = tp->th_stuff;
usr.bin/tip/value.c
76
char *tp;
usr.bin/tip/value.c
81
if ((tp = strrchr(file, '\n')) != NULL)
usr.bin/tip/value.c
82
*tp = '\0';
usr.bin/w/pr_time.c
60
struct tm *tp;
usr.bin/w/pr_time.c
64
tp = localtime(started);
usr.bin/w/pr_time.c
69
(void)strftime(buf, sizeof(buf), "%d%b%y", tp);
usr.bin/w/pr_time.c
70
} else if (tp->tm_yday != tnow_yday) {
usr.bin/w/pr_time.c
72
(void)strftime(buf, sizeof(buf), "%a%I%p", tp);
usr.bin/w/pr_time.c
75
(void)strftime(buf, sizeof(buf), "%l:%M%p", tp);
usr.bin/w/w.c
116
struct kinfo_proc2 *tp; /* `most interesting' tty proc */
usr.bin/w/w.c
342
if (proc_compare_wrapper(ep->tp, kp))
usr.bin/w/w.c
343
ep->tp = kp;
usr.bin/w/w.c
408
if (ep->tp != NULL)
usr.bin/w/w.c
409
kp = ep->tp;
usr.bin/whatis/whatis.c
117
tp = gettag("_whatdb", 0);
usr.bin/whatis/whatis.c
118
if (!tp)
usr.bin/whatis/whatis.c
121
TAILQ_FOREACH(ep, &tp->entrylist, q) {
usr.bin/whatis/whatis.c
74
TAG *tp;
usr.bin/xlint/common/tyname.c
163
type_name_of_function(buffer *buf, const type_t *tp)
usr.bin/xlint/common/tyname.c
168
if (tp->t_proto) {
usr.bin/xlint/common/tyname.c
170
const sym_t *param = tp->u.params;
usr.bin/xlint/common/tyname.c
180
argtype = tp->t_args;
usr.bin/xlint/common/tyname.c
189
if (tp->t_vararg) {
usr.bin/xlint/common/tyname.c
194
buf_add(buf, type_name(tp->t_subt));
usr.bin/xlint/common/tyname.c
198
type_name_of_struct_or_union(buffer *buf, const type_t *tp)
usr.bin/xlint/common/tyname.c
202
if (tp->u.sou->sou_tag->s_name == unnamed &&
usr.bin/xlint/common/tyname.c
203
tp->u.sou->sou_first_typedef != NULL) {
usr.bin/xlint/common/tyname.c
205
buf_add(buf, tp->u.sou->sou_first_typedef->s_name);
usr.bin/xlint/common/tyname.c
207
buf_add(buf, tp->u.sou->sou_tag->s_name);
usr.bin/xlint/common/tyname.c
210
buf_add(buf, tp->t_isuniqpos ? "*anonymous*" : tp->t_tag->h_name);
usr.bin/xlint/common/tyname.c
215
type_name_of_enum(buffer *buf, const type_t *tp)
usr.bin/xlint/common/tyname.c
219
if (tp->u.enumer->en_tag->s_name == unnamed &&
usr.bin/xlint/common/tyname.c
220
tp->u.enumer->en_first_typedef != NULL) {
usr.bin/xlint/common/tyname.c
222
buf_add(buf, tp->u.enumer->en_first_typedef->s_name);
usr.bin/xlint/common/tyname.c
224
buf_add(buf, tp->u.enumer->en_tag->s_name);
usr.bin/xlint/common/tyname.c
227
buf_add(buf, tp->t_isuniqpos ? "*anonymous*" : tp->t_tag->h_name);
usr.bin/xlint/common/tyname.c
232
type_name_of_array(buffer *buf, const type_t *tp)
usr.bin/xlint/common/tyname.c
236
if (tp->t_incomplete_array)
usr.bin/xlint/common/tyname.c
239
buf_add_int(buf, tp->u.dimension);
usr.bin/xlint/common/tyname.c
241
buf_add_int(buf, tp->t_dim);
usr.bin/xlint/common/tyname.c
245
buf_add(buf, type_name(tp->t_subt));
usr.bin/xlint/common/tyname.c
249
type_name(const type_t *tp)
usr.bin/xlint/common/tyname.c
255
if (tp == NULL)
usr.bin/xlint/common/tyname.c
258
if ((t = tp->t_tspec) == INT && tp->t_is_enum)
usr.bin/xlint/common/tyname.c
262
if (tp->t_const)
usr.bin/xlint/common/tyname.c
264
if (tp->t_volatile)
usr.bin/xlint/common/tyname.c
267
if (tp->t_noreturn)
usr.bin/xlint/common/tyname.c
272
if (is_struct_or_union(t) && tp->u.sou->sou_incomplete)
usr.bin/xlint/common/tyname.c
278
if (tp->t_bitfield) {
usr.bin/xlint/common/tyname.c
280
buf_add_int(&buf, (int)tp->t_bit_field_width);
usr.bin/xlint/common/tyname.c
287
buf_add(&buf, type_name(tp->t_subt));
usr.bin/xlint/common/tyname.c
290
type_name_of_enum(&buf, tp);
usr.bin/xlint/common/tyname.c
294
type_name_of_struct_or_union(&buf, tp);
usr.bin/xlint/common/tyname.c
297
type_name_of_array(&buf, tp);
usr.bin/xlint/common/tyname.c
300
type_name_of_function(&buf, tp);
usr.bin/xlint/lint1/cgram.y
1551
type_t *tp = block_dup_type($$->s_type);
usr.bin/xlint/lint1/cgram.y
1552
tp->t_tspec =
usr.bin/xlint/lint1/cgram.y
1555
$$->s_type = tp;
usr.bin/xlint/lint1/debug.c
157
debug_type_details(const type_t *tp)
usr.bin/xlint/lint1/debug.c
160
if (is_struct_or_union(tp->t_tspec)) {
usr.bin/xlint/lint1/debug.c
162
unsigned int size_in_bits = tp->u.sou->sou_size_in_bits;
usr.bin/xlint/lint1/debug.c
167
tp->u.sou->sou_align,
usr.bin/xlint/lint1/debug.c
168
tp->u.sou->sou_incomplete ? "incomplete" : "complete");
usr.bin/xlint/lint1/debug.c
170
for (const sym_t *mem = tp->u.sou->sou_first_member;
usr.bin/xlint/lint1/debug.c
177
if (tp->t_is_enum) {
usr.bin/xlint/lint1/debug.c
179
for (const sym_t *en = tp->u.enumer->en_first_enumerator;
usr.bin/xlint/lint1/debug.c
188
debug_type(const type_t *tp)
usr.bin/xlint/lint1/debug.c
191
debug_step("type details for '%s':", type_name(tp));
usr.bin/xlint/lint1/debug.c
192
debug_type_details(tp);
usr.bin/xlint/lint1/decl.c
1000
type_t *btp = block_dup_type(tp);
usr.bin/xlint/lint1/decl.c
1005
type_t *btp = block_dup_type(tp);
usr.bin/xlint/lint1/decl.c
1019
type_t *btp = block_dup_type(tp);
usr.bin/xlint/lint1/decl.c
1024
unsigned int width = tp->t_bit_field_width;
usr.bin/xlint/lint1/decl.c
1025
dsym->s_type = tp = block_dup_type(gettyp(t = INT));
usr.bin/xlint/lint1/decl.c
1026
if ((tp->t_bit_field_width = width) > size_in_bits(t))
usr.bin/xlint/lint1/decl.c
1027
tp->t_bit_field_width = size_in_bits(t);
usr.bin/xlint/lint1/decl.c
1029
*inout_tp = tp;
usr.bin/xlint/lint1/decl.c
1039
type_t *tp = *inout_tp;
usr.bin/xlint/lint1/decl.c
1042
if (tp->t_bit_field_width > t_width) {
usr.bin/xlint/lint1/decl.c
1044
error(36, (int)tp->t_bit_field_width);
usr.bin/xlint/lint1/decl.c
1045
tp->t_bit_field_width = t_width;
usr.bin/xlint/lint1/decl.c
1046
} else if (tp->t_bit_field_width == 0 && dsym->s_name != unnamed) {
usr.bin/xlint/lint1/decl.c
1049
tp->t_bit_field_width = t_width;
usr.bin/xlint/lint1/decl.c
1080
type_t *tp = mem->s_type;
usr.bin/xlint/lint1/decl.c
1089
dcs_align(alignment(tp), tp->t_bit_field_width);
usr.bin/xlint/lint1/decl.c
1092
- dcs->d_sou_size_in_bits % size_in_bits(tp->t_tspec);
usr.bin/xlint/lint1/decl.c
1093
tp->t_bit_field_offset = dcs->d_sou_size_in_bits
usr.bin/xlint/lint1/decl.c
1095
dcs->d_sou_size_in_bits += tp->t_bit_field_width;
usr.bin/xlint/lint1/decl.c
1098
? dcs->d_mem_align : alignment(tp);
usr.bin/xlint/lint1/decl.c
1101
dcs->d_sou_size_in_bits += type_size_in_bits(tp);
usr.bin/xlint/lint1/decl.c
1148
type_t *tp = dsym->s_type;
usr.bin/xlint/lint1/decl.c
1149
tspec_t t = tp->t_tspec;
usr.bin/xlint/lint1/decl.c
1151
check_bit_field(dsym, &t, &tp);
usr.bin/xlint/lint1/decl.c
1155
dsym->s_type = tp = block_derive_type(tp, t = PTR);
usr.bin/xlint/lint1/decl.c
118
block_dup_type(const type_t *tp)
usr.bin/xlint/lint1/decl.c
122
*ntp = *tp;
usr.bin/xlint/lint1/decl.c
1232
type_t *tp = block_derive_type(stp, PTR);
usr.bin/xlint/lint1/decl.c
1233
tp->t_const = is_const;
usr.bin/xlint/lint1/decl.c
1234
tp->t_volatile = is_volatile;
usr.bin/xlint/lint1/decl.c
1235
debug_step("%s: '%s'", __func__, type_name(tp));
usr.bin/xlint/lint1/decl.c
1236
return tp;
usr.bin/xlint/lint1/decl.c
1270
type_t *tp = block_derive_type(stp, ARRAY);
usr.bin/xlint/lint1/decl.c
1271
tp->u.dimension = dim;
usr.bin/xlint/lint1/decl.c
1284
tp->t_subt = gettyp(CHAR);
usr.bin/xlint/lint1/decl.c
129
expr_dup_type(const type_t *tp)
usr.bin/xlint/lint1/decl.c
1294
tp->t_incomplete_array = true;
usr.bin/xlint/lint1/decl.c
1296
debug_step("%s: '%s'", __func__, type_name(tp));
usr.bin/xlint/lint1/decl.c
1297
return tp;
usr.bin/xlint/lint1/decl.c
1324
type_t *tp = block_derive_type(ret, FUNC);
usr.bin/xlint/lint1/decl.c
1325
tp->t_proto = proto;
usr.bin/xlint/lint1/decl.c
1327
tp->u.params = params;
usr.bin/xlint/lint1/decl.c
1328
tp->t_noreturn = noreturn;
usr.bin/xlint/lint1/decl.c
1329
tp->t_vararg = vararg;
usr.bin/xlint/lint1/decl.c
133
*ntp = *tp;
usr.bin/xlint/lint1/decl.c
1330
tp->t_identifier_params = identifier_params;
usr.bin/xlint/lint1/decl.c
1331
debug_step("%s: '%s'", __func__, type_name(tp));
usr.bin/xlint/lint1/decl.c
1332
return tp;
usr.bin/xlint/lint1/decl.c
145
expr_unqualified_type(const type_t *tp)
usr.bin/xlint/lint1/decl.c
149
*ntp = *tp;
usr.bin/xlint/lint1/decl.c
1662
type_t *tp;
usr.bin/xlint/lint1/decl.c
1689
tag->s_type = tp =
usr.bin/xlint/lint1/decl.c
1690
block_zero_alloc(sizeof(*tp), "type");
usr.bin/xlint/lint1/decl.c
1691
tp->t_packed = dcs->d_packed;
usr.bin/xlint/lint1/decl.c
1693
tp = tag->s_type;
usr.bin/xlint/lint1/decl.c
170
is_incomplete(const type_t *tp)
usr.bin/xlint/lint1/decl.c
1702
tag->s_type = tp = block_zero_alloc(sizeof(*tp), "type");
usr.bin/xlint/lint1/decl.c
1703
tp->t_packed = dcs->d_packed;
usr.bin/xlint/lint1/decl.c
1707
if (tp->t_tspec == NO_TSPEC) {
usr.bin/xlint/lint1/decl.c
1708
tp->t_tspec = kind;
usr.bin/xlint/lint1/decl.c
1710
tp->u.sou = block_zero_alloc(sizeof(*tp->u.sou),
usr.bin/xlint/lint1/decl.c
1712
tp->u.sou->sou_align = 1;
usr.bin/xlint/lint1/decl.c
1713
tp->u.sou->sou_tag = tag;
usr.bin/xlint/lint1/decl.c
1714
tp->u.sou->sou_incomplete = true;
usr.bin/xlint/lint1/decl.c
1716
tp->t_is_enum = true;
usr.bin/xlint/lint1/decl.c
1717
tp->u.enumer = block_zero_alloc(
usr.bin/xlint/lint1/decl.c
1718
sizeof(*tp->u.enumer), "enumeration");
usr.bin/xlint/lint1/decl.c
1719
tp->u.enumer->en_tag = tag;
usr.bin/xlint/lint1/decl.c
172
tspec_t t = tp->t_tspec;
usr.bin/xlint/lint1/decl.c
1720
tp->u.enumer->en_incomplete = true;
usr.bin/xlint/lint1/decl.c
1723
debug_printf("%s: '%s'", __func__, type_name(tp));
usr.bin/xlint/lint1/decl.c
1726
return tp;
usr.bin/xlint/lint1/decl.c
1747
type_t *tp = dcs->d_tag_type;
usr.bin/xlint/lint1/decl.c
1748
if (tp == NULL) /* in case of syntax errors */
usr.bin/xlint/lint1/decl.c
1753
struct_or_union *sou = tp->u.sou;
usr.bin/xlint/lint1/decl.c
1757
if (tp->t_packed)
usr.bin/xlint/lint1/decl.c
1758
pack_struct_or_union(tp);
usr.bin/xlint/lint1/decl.c
1764
c99ism(47, tspec_name(tp->t_tspec));
usr.bin/xlint/lint1/decl.c
1767
warning(65, type_name(tp));
usr.bin/xlint/lint1/decl.c
1768
debug_step("%s: '%s'", __func__, type_name(tp));
usr.bin/xlint/lint1/decl.c
177
return tp->t_incomplete_array;
usr.bin/xlint/lint1/decl.c
1770
return tp;
usr.bin/xlint/lint1/decl.c
1777
type_t *tp = dcs->d_tag_type;
usr.bin/xlint/lint1/decl.c
1778
tp->u.enumer->en_incomplete = false;
usr.bin/xlint/lint1/decl.c
1779
tp->u.enumer->en_first_enumerator = first_enumerator;
usr.bin/xlint/lint1/decl.c
1780
debug_step("%s: '%s'", __func__, type_name(tp));
usr.bin/xlint/lint1/decl.c
1782
return tp;
usr.bin/xlint/lint1/decl.c
179
return tp->u.sou->sou_incomplete;
usr.bin/xlint/lint1/decl.c
181
return tp->u.enumer->en_incomplete;
usr.bin/xlint/lint1/decl.c
2240
is_old_style_compat(const type_t *tp)
usr.bin/xlint/lint1/decl.c
2243
if (tp->t_vararg)
usr.bin/xlint/lint1/decl.c
2245
for (const sym_t *p = tp->u.params; p != NULL; p = p->s_next) {
usr.bin/xlint/lint1/decl.c
2434
is_character_pointer(const type_t *tp)
usr.bin/xlint/lint1/decl.c
2438
return tp->t_tspec == PTR &&
usr.bin/xlint/lint1/decl.c
2439
(st = tp->t_subt->t_tspec,
usr.bin/xlint/lint1/decl.c
310
dcs_add_type(type_t *tp)
usr.bin/xlint/lint1/decl.c
313
if (tp->t_typedef) {
usr.bin/xlint/lint1/decl.c
323
dcs->d_type = tp;
usr.bin/xlint/lint1/decl.c
328
tspec_t t = tp->t_tspec;
usr.bin/xlint/lint1/decl.c
338
dcs->d_type = tp;
usr.bin/xlint/lint1/decl.c
396
dcs->d_type = tp;
usr.bin/xlint/lint1/decl.c
408
set_first_typedef(type_t *tp, sym_t *sym)
usr.bin/xlint/lint1/decl.c
411
tspec_t t = tp->t_tspec;
usr.bin/xlint/lint1/decl.c
412
if (is_struct_or_union(t) && tp->u.sou->sou_first_typedef == NULL)
usr.bin/xlint/lint1/decl.c
413
tp->u.sou->sou_first_typedef = sym;
usr.bin/xlint/lint1/decl.c
414
if (t == ENUM && tp->u.enumer->en_first_typedef == NULL)
usr.bin/xlint/lint1/decl.c
415
tp->u.enumer->en_first_typedef = sym;
usr.bin/xlint/lint1/decl.c
417
debug_type(tp);
usr.bin/xlint/lint1/decl.c
439
pack_struct_or_union(type_t *tp)
usr.bin/xlint/lint1/decl.c
442
if (!is_struct_or_union(tp->t_tspec)) {
usr.bin/xlint/lint1/decl.c
444
warning(326, "packed", type_name(tp));
usr.bin/xlint/lint1/decl.c
450
for (const sym_t *mem = tp->u.sou->sou_first_member;
usr.bin/xlint/lint1/decl.c
459
if (tp->t_tspec == STRUCT)
usr.bin/xlint/lint1/decl.c
464
tp->u.sou->sou_size_in_bits = bits;
usr.bin/xlint/lint1/decl.c
690
type_t *tp = dcs->d_type;
usr.bin/xlint/lint1/decl.c
692
if (tp != NULL) {
usr.bin/xlint/lint1/decl.c
812
length_in_bits(const type_t *tp, const char *name)
usr.bin/xlint/lint1/decl.c
815
if (tp == NULL)
usr.bin/xlint/lint1/decl.c
819
while (tp->t_tspec == ARRAY) {
usr.bin/xlint/lint1/decl.c
820
elem *= tp->u.dimension;
usr.bin/xlint/lint1/decl.c
821
tp = tp->t_subt;
usr.bin/xlint/lint1/decl.c
824
if (is_struct_or_union(tp->t_tspec)) {
usr.bin/xlint/lint1/decl.c
825
if (is_incomplete(tp) && name != NULL)
usr.bin/xlint/lint1/decl.c
827
error(31, name, type_name(tp));
usr.bin/xlint/lint1/decl.c
828
return (int)(elem * tp->u.sou->sou_size_in_bits);
usr.bin/xlint/lint1/decl.c
831
if (tp->t_tspec == ENUM && is_incomplete(tp) && name != NULL)
usr.bin/xlint/lint1/decl.c
835
lint_assert(tp->t_tspec != FUNC);
usr.bin/xlint/lint1/decl.c
837
unsigned int elsz = size_in_bits(tp->t_tspec);
usr.bin/xlint/lint1/decl.c
850
alignment(const type_t *tp)
usr.bin/xlint/lint1/decl.c
856
while (tp->t_tspec == ARRAY)
usr.bin/xlint/lint1/decl.c
857
tp = tp->t_subt;
usr.bin/xlint/lint1/decl.c
859
tspec_t t = tp->t_tspec;
usr.bin/xlint/lint1/decl.c
862
a = tp->u.sou->sou_align;
usr.bin/xlint/lint1/decl.c
906
type_t *tp = *tpp;
usr.bin/xlint/lint1/decl.c
907
tspec_t t = tp->t_tspec;
usr.bin/xlint/lint1/decl.c
912
if (t == FUNC && !tp->t_proto &&
usr.bin/xlint/lint1/decl.c
920
error(15, type_name(tp));
usr.bin/xlint/lint1/decl.c
925
if (tp->t_const || tp->t_volatile)
usr.bin/xlint/lint1/decl.c
928
tp->t_const ? "const" : "volatile");
usr.bin/xlint/lint1/decl.c
936
if (t == ARRAY && tp->u.dimension == 0) {
usr.bin/xlint/lint1/decl.c
967
if (tp->t_const || tp->t_volatile) {
usr.bin/xlint/lint1/decl.c
970
tp->t_const = tp->t_volatile = false;
usr.bin/xlint/lint1/decl.c
973
tpp = &tp->t_subt;
usr.bin/xlint/lint1/decl.c
992
type_t *tp = *inout_tp;
usr.bin/xlint/lint1/emit1.c
102
if (tp->t_const)
usr.bin/xlint/lint1/emit1.c
104
if (tp->t_volatile)
usr.bin/xlint/lint1/emit1.c
111
outint(tp->u.dimension);
usr.bin/xlint/lint1/emit1.c
113
outtt(tp->u.enumer->en_tag,
usr.bin/xlint/lint1/emit1.c
114
tp->u.enumer->en_first_typedef);
usr.bin/xlint/lint1/emit1.c
116
outtt(tp->u.sou->sou_tag,
usr.bin/xlint/lint1/emit1.c
117
tp->u.sou->sou_first_typedef);
usr.bin/xlint/lint1/emit1.c
118
} else if (ts == FUNC && tp->t_proto) {
usr.bin/xlint/lint1/emit1.c
120
for (const sym_t *param = tp->u.params;
usr.bin/xlint/lint1/emit1.c
123
if (tp->t_vararg)
usr.bin/xlint/lint1/emit1.c
126
for (const sym_t *param = tp->u.params;
usr.bin/xlint/lint1/emit1.c
129
if (tp->t_vararg)
usr.bin/xlint/lint1/emit1.c
132
tp = tp->t_subt;
usr.bin/xlint/lint1/emit1.c
90
outtype(const type_t *tp)
usr.bin/xlint/lint1/emit1.c
98
while (tp != NULL) {
usr.bin/xlint/lint1/emit1.c
99
if ((ts = tp->t_tspec) == INT && tp->t_is_enum)
usr.bin/xlint/lint1/externs1.h
170
#define debug_type(tp) debug_noop()
usr.bin/xlint/lint1/func.c
635
type_t *tp = xcalloc(1, sizeof(*tp));
usr.bin/xlint/lint1/func.c
637
tp->t_tspec = tn->tn_type->t_tspec;
usr.bin/xlint/lint1/func.c
638
if ((tp->t_is_enum = tn->tn_type->t_is_enum) != false)
usr.bin/xlint/lint1/func.c
639
tp->u.enumer = tn->tn_type->u.enumer;
usr.bin/xlint/lint1/func.c
641
tp->t_tspec = INT;
usr.bin/xlint/lint1/func.c
652
cstmt->c_switch_type = tp;
usr.bin/xlint/lint1/init.c
182
first_named_member(const type_t *tp)
usr.bin/xlint/lint1/init.c
185
lint_assert(is_struct_or_union(tp->t_tspec));
usr.bin/xlint/lint1/init.c
186
return skip_unnamed(tp->u.sou->sou_first_member);
usr.bin/xlint/lint1/init.c
193
type_t *tp = block_dup_type(sym->s_type);
usr.bin/xlint/lint1/init.c
194
tp->u.dimension = (int)size;
usr.bin/xlint/lint1/init.c
195
tp->t_incomplete_array = false;
usr.bin/xlint/lint1/init.c
196
sym->s_type = tp;
usr.bin/xlint/lint1/init.c
281
designator_type(const designator *dr, const type_t *tp)
usr.bin/xlint/lint1/init.c
284
switch (tp->t_tspec) {
usr.bin/xlint/lint1/init.c
288
const sym_t *fmem = first_named_member(tp);
usr.bin/xlint/lint1/init.c
302
if (!tp->t_incomplete_array)
usr.bin/xlint/lint1/init.c
304
dr->dr_subscript < (size_t)tp->u.dimension);
usr.bin/xlint/lint1/init.c
305
return tp->t_subt;
usr.bin/xlint/lint1/init.c
310
return tp;
usr.bin/xlint/lint1/init.c
390
designation_descend(designation *dn, const type_t *tp)
usr.bin/xlint/lint1/init.c
393
if (is_struct_or_union(tp->t_tspec)) {
usr.bin/xlint/lint1/init.c
394
const sym_t *member = first_named_member(tp);
usr.bin/xlint/lint1/init.c
398
} else if (tp->t_tspec == ARRAY)
usr.bin/xlint/lint1/init.c
412
designation_type(const designation *dn, const type_t *tp, size_t skip)
usr.bin/xlint/lint1/init.c
415
for (size_t i = 0; i + skip < dn->dn_len && tp != NULL; i++)
usr.bin/xlint/lint1/init.c
416
tp = designator_type(dn->dn_items + i, tp);
usr.bin/xlint/lint1/init.c
417
return tp;
usr.bin/xlint/lint1/init.c
421
brace_level_new(const type_t *tp, brace_level *enclosing)
usr.bin/xlint/lint1/init.c
425
bl->bl_type = tp;
usr.bin/xlint/lint1/init.c
476
const type_t *tp = designation_type(dn, bl->bl_type, 1);
usr.bin/xlint/lint1/init.c
482
switch (tp->t_tspec) {
usr.bin/xlint/lint1/init.c
495
if (tp->t_incomplete_array &&
usr.bin/xlint/lint1/init.c
498
if (!tp->t_incomplete_array &&
usr.bin/xlint/lint1/init.c
499
dr->dr_subscript >= (size_t)tp->u.dimension)
usr.bin/xlint/lint1/init.c
511
warn_too_many_initializers(designator_kind kind, const type_t *tp)
usr.bin/xlint/lint1/init.c
518
lint_assert(tp->t_tspec == ARRAY);
usr.bin/xlint/lint1/init.c
519
lint_assert(!tp->t_incomplete_array);
usr.bin/xlint/lint1/init.c
521
error(173, tp->u.dimension);
usr.bin/xlint/lint1/init.c
524
error(174, type_name(tp));
usr.bin/xlint/lint1/init.c
650
const type_t *tp = brace_level_sub_type(in->in_brace_level);
usr.bin/xlint/lint1/init.c
651
if (tp == NULL)
usr.bin/xlint/lint1/init.c
653
return tp;
usr.bin/xlint/lint1/init.c
665
const type_t *tp = initialization_sub_type(in);
usr.bin/xlint/lint1/init.c
666
if (tp == NULL)
usr.bin/xlint/lint1/init.c
673
if (!allow_c90 && tp->t_tspec == UNION)
usr.bin/xlint/lint1/init.c
677
if (is_struct_or_union(tp->t_tspec) && tp->u.sou->sou_incomplete) {
usr.bin/xlint/lint1/init.c
679
error(175, type_name(tp));
usr.bin/xlint/lint1/init.c
687
tp = designation_type(dn, outer_bl->bl_type, 0);
usr.bin/xlint/lint1/init.c
690
in->in_brace_level = brace_level_new(tp, outer_bl);
usr.bin/xlint/lint1/init.c
691
if (is_struct_or_union(tp->t_tspec) &&
usr.bin/xlint/lint1/init.c
692
first_named_member(tp) == NULL) {
usr.bin/xlint/lint1/init.c
751
const type_t *tp = brace_level_sub_type(bl);
usr.bin/xlint/lint1/init.c
752
if (is_struct_or_union(tp->t_tspec))
usr.bin/xlint/lint1/init.c
754
else if (tp->t_tspec == ARRAY)
usr.bin/xlint/lint1/init.c
764
const sym_t *member = find_member(tp->u.sou, name);
usr.bin/xlint/lint1/init.c
767
error(101, type_name(tp), name);
usr.bin/xlint/lint1/init.c
785
const type_t *tp = brace_level_sub_type(bl);
usr.bin/xlint/lint1/init.c
786
if (tp->t_tspec != ARRAY) {
usr.bin/xlint/lint1/init.c
793
if (!tp->t_incomplete_array && subscript >= (size_t)tp->u.dimension) {
usr.bin/xlint/lint1/init.c
795
error(168, (uintmax_t)subscript, tp->u.dimension - 1);
usr.bin/xlint/lint1/init.c
799
if (tp->t_incomplete_array && subscript > in->in_max_subscript)
usr.bin/xlint/lint1/init.c
839
const type_t *tp = initialization_sub_type(in);
usr.bin/xlint/lint1/init.c
841
if (!can_init_character_array(tp, tn))
usr.bin/xlint/lint1/init.c
851
if (!tp->t_incomplete_array && (size_t)tp->u.dimension < len)
usr.bin/xlint/lint1/init.c
853
warning(187, (uintmax_t)len, (uintmax_t)tp->u.dimension);
usr.bin/xlint/lint1/init.c
861
if (tp->t_incomplete_array) {
usr.bin/xlint/lint1/init.c
896
const type_t *tp = initialization_sub_type(in);
usr.bin/xlint/lint1/init.c
897
if (tp == NULL)
usr.bin/xlint/lint1/init.c
900
if (bl == NULL && !is_scalar(tp->t_tspec)) {
usr.bin/xlint/lint1/init.c
907
type_name(tp), type_name(tn->tn_type));
usr.bin/xlint/lint1/init.c
908
check_init_expr(tp, in->in_sym, tn);
usr.bin/xlint/lint1/lex.c
1509
mktempsym(type_t *tp)
usr.bin/xlint/lint1/lex.c
1523
sym->s_type = tp;
usr.bin/xlint/lint1/mem1.c
198
const type_t *tp = p;
usr.bin/xlint/lint1/mem1.c
199
debug_step("%s: freeing type '%s'", __func__, type_name(tp));
usr.bin/xlint/lint1/tree.c
144
width_in_bits(const type_t *tp)
usr.bin/xlint/lint1/tree.c
146
lint_assert(is_integer(tp->t_tspec));
usr.bin/xlint/lint1/tree.c
147
return tp->t_bitfield
usr.bin/xlint/lint1/tree.c
148
? tp->t_bit_field_width
usr.bin/xlint/lint1/tree.c
149
: size_in_bits(tp->t_tspec);
usr.bin/xlint/lint1/tree.c
1512
subt_size_in_bytes(type_t *tp)
usr.bin/xlint/lint1/tree.c
1515
lint_assert(tp->t_tspec == PTR);
usr.bin/xlint/lint1/tree.c
1516
tp = tp->t_subt;
usr.bin/xlint/lint1/tree.c
1519
while (tp->t_tspec == ARRAY) {
usr.bin/xlint/lint1/tree.c
1520
elem *= tp->u.dimension;
usr.bin/xlint/lint1/tree.c
1521
tp = tp->t_subt;
usr.bin/xlint/lint1/tree.c
1525
switch (tp->t_tspec) {
usr.bin/xlint/lint1/tree.c
153
ui_max_value(const type_t *tp)
usr.bin/xlint/lint1/tree.c
1536
if ((elsz_in_bits = (int)tp->u.sou->sou_size_in_bits) == 0)
usr.bin/xlint/lint1/tree.c
1541
if (is_incomplete(tp))
usr.bin/xlint/lint1/tree.c
1546
if ((elsz_in_bits = size_in_bits(tp->t_tspec)) == 0)
usr.bin/xlint/lint1/tree.c
155
return value_bits(width_in_bits(tp));
usr.bin/xlint/lint1/tree.c
159
si_max_value(const type_t *tp)
usr.bin/xlint/lint1/tree.c
161
return (int64_t)(ui_max_value(tp) >> 1);
usr.bin/xlint/lint1/tree.c
165
si_min_value(const type_t *tp)
usr.bin/xlint/lint1/tree.c
167
return -si_max_value(tp) - 1;
usr.bin/xlint/lint1/tree.c
171
si_mult_sat(const type_t *tp, int64_t l, int64_t r)
usr.bin/xlint/lint1/tree.c
1742
type_t *tp;
usr.bin/xlint/lint1/tree.c
1745
tp = ln->tn_type;
usr.bin/xlint/lint1/tree.c
1747
tp = ln->tn_type;
usr.bin/xlint/lint1/tree.c
1749
tp = gettyp(VOID);
usr.bin/xlint/lint1/tree.c
1758
tp = ln->tn_type;
usr.bin/xlint/lint1/tree.c
176
int64_t max = si_max_value(tp);
usr.bin/xlint/lint1/tree.c
1762
tp = ln->tn_type;
usr.bin/xlint/lint1/tree.c
1766
tp = rn->tn_type;
usr.bin/xlint/lint1/tree.c
1768
tp = merge_qualifiers(ln->tn_type, rn->tn_type);
usr.bin/xlint/lint1/tree.c
1770
tp = merge_qualifiers(rn->tn_type, ln->tn_type);
usr.bin/xlint/lint1/tree.c
1772
tp = merge_qualifiers(ln->tn_type, rn->tn_type);
usr.bin/xlint/lint1/tree.c
1774
tp = merge_qualifiers(rn->tn_type, ln->tn_type);
usr.bin/xlint/lint1/tree.c
1781
tp = merge_qualifiers(ln->tn_type, rn->tn_type);
usr.bin/xlint/lint1/tree.c
1784
return build_op(COLON, sys, tp, ln, rn);
usr.bin/xlint/lint1/tree.c
187
si_plus_sat(const type_t *tp, int64_t a, int64_t b)
usr.bin/xlint/lint1/tree.c
190
int64_t max = si_max_value(tp);
usr.bin/xlint/lint1/tree.c
193
int64_t min = si_min_value(tp);
usr.bin/xlint/lint1/tree.c
199
si_minus_sat(const type_t *tp, int64_t a, int64_t b)
usr.bin/xlint/lint1/tree.c
202
int64_t min = si_min_value(tp);
usr.bin/xlint/lint1/tree.c
205
int64_t max = si_max_value(tp);
usr.bin/xlint/lint1/tree.c
211
ic_maybe_signed(const type_t *tp, integer_constraints ic)
usr.bin/xlint/lint1/tree.c
213
return !is_uinteger(tp->t_tspec) && ic.bclr >> 63 == 0;
usr.bin/xlint/lint1/tree.c
217
ic_maybe_signed_binary(const type_t *tp,
usr.bin/xlint/lint1/tree.c
220
return !is_uinteger(tp->t_tspec) && (a.bclr & b.bclr) >> 63 == 0;
usr.bin/xlint/lint1/tree.c
224
ic_any(const type_t *tp)
usr.bin/xlint/lint1/tree.c
228
unsigned width = width_in_bits(tp);
usr.bin/xlint/lint1/tree.c
230
if (is_uinteger(tp->t_tspec)) {
usr.bin/xlint/lint1/tree.c
2455
const type_t *tp = NULL;
usr.bin/xlint/lint1/tree.c
2457
tp = tn->tn_type;
usr.bin/xlint/lint1/tree.c
2460
tp = tn->tn_type->t_subt;
usr.bin/xlint/lint1/tree.c
2461
struct_or_union *sou = tp != NULL ? tp->u.sou : NULL;
usr.bin/xlint/lint1/tree.c
247
ic_mult(const type_t *tp, integer_constraints a, integer_constraints b)
usr.bin/xlint/lint1/tree.c
251
if (ic_maybe_signed_binary(tp, a, b)) {
usr.bin/xlint/lint1/tree.c
252
int64_t ll = si_mult_sat(tp, a.smin, b.smin);
usr.bin/xlint/lint1/tree.c
253
int64_t lu = si_mult_sat(tp, a.smin, b.smax);
usr.bin/xlint/lint1/tree.c
254
int64_t ul = si_mult_sat(tp, a.smax, b.smin);
usr.bin/xlint/lint1/tree.c
255
int64_t uu = si_mult_sat(tp, a.smax, b.smax);
usr.bin/xlint/lint1/tree.c
2561
type_t *tp = expr_dup_type(tn->tn_type);
usr.bin/xlint/lint1/tree.c
2563
tp->t_const = tp->t_volatile = false;
usr.bin/xlint/lint1/tree.c
2564
tn = build_op(LOAD, tn->tn_sys, tp, tn, NULL);
usr.bin/xlint/lint1/tree.c
2629
typeok_incdec(op_t op, const tnode_t *tn, const type_t *tp)
usr.bin/xlint/lint1/tree.c
2641
if (tp->t_const && allow_c90)
usr.bin/xlint/lint1/tree.c
2648
typeok_address(op_t op, const tnode_t *tn, const type_t *tp, tspec_t t)
usr.bin/xlint/lint1/tree.c
265
if (a.umax > 0 && b.umax > ic_any(tp).umax / a.umax)
usr.bin/xlint/lint1/tree.c
266
return ic_any(tp);
usr.bin/xlint/lint1/tree.c
2661
if (tp->t_bitfield) {
usr.bin/xlint/lint1/tree.c
2680
typeok_indir(const type_t *tp, tspec_t t)
usr.bin/xlint/lint1/tree.c
2685
error(96, type_name(tp));
usr.bin/xlint/lint1/tree.c
277
ic_div(const type_t *tp, integer_constraints a, integer_constraints b)
usr.bin/xlint/lint1/tree.c
279
if (ic_maybe_signed_binary(tp, a, b)) {
usr.bin/xlint/lint1/tree.c
282
return ic_any(tp);
usr.bin/xlint/lint1/tree.c
295
ic_mod(const type_t *tp, integer_constraints a, integer_constraints b)
usr.bin/xlint/lint1/tree.c
297
if (ic_maybe_signed_binary(tp, a, b)) {
usr.bin/xlint/lint1/tree.c
3026
has_constant_member(const type_t *tp)
usr.bin/xlint/lint1/tree.c
3028
lint_assert(is_struct_or_union(tp->t_tspec));
usr.bin/xlint/lint1/tree.c
3030
for (sym_t *m = tp->u.sou->sou_first_member;
usr.bin/xlint/lint1/tree.c
3177
const type_t *tp = before_conversion(tn)->tn_type;
usr.bin/xlint/lint1/tree.c
3178
return tp->t_tspec == PTR &&
usr.bin/xlint/lint1/tree.c
3179
tp->t_subt->t_tspec == CHAR &&
usr.bin/xlint/lint1/tree.c
3180
tp->t_subt->t_const;
usr.bin/xlint/lint1/tree.c
3186
const type_t *tp = before_conversion(tn)->tn_type;
usr.bin/xlint/lint1/tree.c
3187
return tp->t_tspec == PTR && tp->t_subt->t_const;
usr.bin/xlint/lint1/tree.c
321
ic_plus(const type_t *tp, integer_constraints a, integer_constraints b)
usr.bin/xlint/lint1/tree.c
323
if (ic_maybe_signed_binary(tp, a, b)) {
usr.bin/xlint/lint1/tree.c
325
c.smin = si_plus_sat(tp, a.smin, b.smin);
usr.bin/xlint/lint1/tree.c
326
c.smax = si_plus_sat(tp, a.smax, b.smax);
usr.bin/xlint/lint1/tree.c
333
uint64_t max = ui_max_value(tp);
usr.bin/xlint/lint1/tree.c
353
ic_minus(const type_t *tp, integer_constraints a, integer_constraints b)
usr.bin/xlint/lint1/tree.c
356
c.smin = si_minus_sat(tp, a.smin, b.smax);
usr.bin/xlint/lint1/tree.c
357
c.smax = si_minus_sat(tp, a.smax, b.smin);
usr.bin/xlint/lint1/tree.c
359
if (ic_maybe_signed_binary(tp, a, b)) {
usr.bin/xlint/lint1/tree.c
367
c.umax = is_uinteger(tp->t_tspec) ? ui_max_value(tp)
usr.bin/xlint/lint1/tree.c
375
ic_shl(const type_t *tp, integer_constraints a, integer_constraints b)
usr.bin/xlint/lint1/tree.c
3754
op_t op, int arg, const type_t *tp, const tnode_t *tn)
usr.bin/xlint/lint1/tree.c
3758
width_in_bits(tp) - (is_uinteger(tp->t_tspec) ? 0 : 1));
usr.bin/xlint/lint1/tree.c
3759
if (is_uinteger(tp->t_tspec)
usr.bin/xlint/lint1/tree.c
3765
warning(380, x, x, type_name(tp), arg);
usr.bin/xlint/lint1/tree.c
3768
warning(381, x, x, type_name(tp));
usr.bin/xlint/lint1/tree.c
377
if (ic_maybe_signed(tp, a))
usr.bin/xlint/lint1/tree.c
3773
op_t op, int arg, const type_t *tp, const tnode_t *tn)
usr.bin/xlint/lint1/tree.c
3778
query_message(2, type_name(tn->tn_type), type_name(tp));
usr.bin/xlint/lint1/tree.c
378
return ic_any(tp);
usr.bin/xlint/lint1/tree.c
3781
query_message(1, type_name(tn->tn_type), type_name(tp));
usr.bin/xlint/lint1/tree.c
3783
check_lossy_floating_to_integer_conversion(op, arg, tp, tn);
usr.bin/xlint/lint1/tree.c
3833
check_prototype_conversion(int arg, tspec_t nt, tspec_t ot, type_t *tp,
usr.bin/xlint/lint1/tree.c
3854
warning(259, arg, expr_type_name(tn), type_name(tp));
usr.bin/xlint/lint1/tree.c
386
return ic_any(tp);
usr.bin/xlint/lint1/tree.c
3864
can_represent(const type_t *tp, const tnode_t *tn)
usr.bin/xlint/lint1/tree.c
3866
uint64_t nmask = value_bits(width_in_bits(tp));
usr.bin/xlint/lint1/tree.c
3867
if (!is_uinteger(tp->t_tspec))
usr.bin/xlint/lint1/tree.c
3874
integer_constraints tpc = ic_any(tp);
usr.bin/xlint/lint1/tree.c
3875
if (is_uinteger(tp->t_tspec)
usr.bin/xlint/lint1/tree.c
3881
debug_step("type '%s' cannot represent:", type_name(tp));
usr.bin/xlint/lint1/tree.c
3908
type_t *tp, tnode_t *tn)
usr.bin/xlint/lint1/tree.c
391
if (c.umax >> (width_in_bits(tp) - 1) == 0) {
usr.bin/xlint/lint1/tree.c
3922
warning(297, type_name(tp), arg);
usr.bin/xlint/lint1/tree.c
3925
warning(131, type_name(tp));
usr.bin/xlint/lint1/tree.c
3932
warning(324, type_name(gettyp(ot)), type_name(tp),
usr.bin/xlint/lint1/tree.c
3936
if (should_warn_about_integer_conversion(tp, nt, tn, ot)) {
usr.bin/xlint/lint1/tree.c
3939
warning(298, expr_type_name(tn), type_name(tp), arg);
usr.bin/xlint/lint1/tree.c
3942
warning(132, expr_type_name(tn), type_name(tp));
usr.bin/xlint/lint1/tree.c
3947
query_message(3, expr_type_name(tn), type_name(tp));
usr.bin/xlint/lint1/tree.c
3951
convert_integer_from_pointer(op_t op, tspec_t nt, type_t *tp, tnode_t *tn)
usr.bin/xlint/lint1/tree.c
3963
warning(134, type_name(tp));
usr.bin/xlint/lint1/tree.c
3966
warning(133, type_name(tp));
usr.bin/xlint/lint1/tree.c
3980
is_byte_array(const type_t *tp)
usr.bin/xlint/lint1/tree.c
3983
return tp->t_tspec == ARRAY &&
usr.bin/xlint/lint1/tree.c
3984
(tp->t_subt->t_tspec == CHAR || tp->t_subt->t_tspec == UCHAR);
usr.bin/xlint/lint1/tree.c
403
ic_shr(const type_t *tp, integer_constraints a, integer_constraints b)
usr.bin/xlint/lint1/tree.c
405
if (ic_maybe_signed(tp, a))
usr.bin/xlint/lint1/tree.c
406
return ic_any(tp);
usr.bin/xlint/lint1/tree.c
4112
convert(op_t op, int arg, type_t *tp, tnode_t *tn)
usr.bin/xlint/lint1/tree.c
4114
tspec_t nt = tp->t_tspec;
usr.bin/xlint/lint1/tree.c
4118
check_prototype_conversion(arg, nt, ot, tp, tn);
usr.bin/xlint/lint1/tree.c
4127
convert_integer_from_integer(op, arg, nt, ot, tp, tn);
usr.bin/xlint/lint1/tree.c
4129
convert_integer_from_floating(op, arg, tp, tn);
usr.bin/xlint/lint1/tree.c
4131
convert_integer_from_pointer(op, nt, tp, tn);
usr.bin/xlint/lint1/tree.c
4137
type_name(tn->tn_type), type_name(tp));
usr.bin/xlint/lint1/tree.c
414
return ic_any(tp);
usr.bin/xlint/lint1/tree.c
4144
convert_pointer_from_pointer(tp, tn);
usr.bin/xlint/lint1/tree.c
4149
ntn->tn_type = tp;
usr.bin/xlint/lint1/tree.c
4279
const type_t *tp, op_t op)
usr.bin/xlint/lint1/tree.c
4286
op_name(op), type_name(gettyp(ot)), type_name(tp));
usr.bin/xlint/lint1/tree.c
4326
warn_constant_check_range_truncated(op_t op, int arg, const type_t *tp,
usr.bin/xlint/lint1/tree.c
4329
if (op == ASSIGN && tp->t_bitfield)
usr.bin/xlint/lint1/tree.c
4335
else if (op == INIT && tp->t_bitfield)
usr.bin/xlint/lint1/tree.c
4343
warning(196, tspec_name(ot), type_name(tp));
usr.bin/xlint/lint1/tree.c
4346
warning(295, type_name(gettyp(ot)), type_name(tp), arg);
usr.bin/xlint/lint1/tree.c
4349
warning(119, type_name(gettyp(ot)), type_name(tp));
usr.bin/xlint/lint1/tree.c
4353
warn_constant_check_range_loss(op_t op, int arg, const type_t *tp,
usr.bin/xlint/lint1/tree.c
4356
if (op == ASSIGN && tp->t_bitfield)
usr.bin/xlint/lint1/tree.c
4359
else if (op == INIT && tp->t_bitfield)
usr.bin/xlint/lint1/tree.c
4364
warning(196, tspec_name(ot), type_name(tp));
usr.bin/xlint/lint1/tree.c
4367
warning(295, type_name(gettyp(ot)), type_name(tp), arg);
usr.bin/xlint/lint1/tree.c
4370
warning(119, type_name(gettyp(ot)), type_name(tp));
usr.bin/xlint/lint1/tree.c
4374
convert_constant_check_range(tspec_t ot, const type_t *tp, tspec_t nt,
usr.bin/xlint/lint1/tree.c
438
ic_bitxor(const type_t *tp, integer_constraints a, integer_constraints b)
usr.bin/xlint/lint1/tree.c
4381
nbitsz = tp->t_bitfield ? tp->t_bit_field_width : size_in_bits(nt);
usr.bin/xlint/lint1/tree.c
4389
nbitsz, obitsz, xmask, nv, ot, v, tp, op);
usr.bin/xlint/lint1/tree.c
4392
convert_constant_check_range_signed(op, arg, tp, v->u.integer);
usr.bin/xlint/lint1/tree.c
4396
warn_constant_check_range_truncated(op, arg, tp, ot);
usr.bin/xlint/lint1/tree.c
4398
warn_constant_check_range_loss(op, arg, tp, ot);
usr.bin/xlint/lint1/tree.c
440
if (ic_maybe_signed_binary(tp, a, b))
usr.bin/xlint/lint1/tree.c
441
return ic_any(tp);
usr.bin/xlint/lint1/tree.c
4446
build_sizeof(const type_t *tp)
usr.bin/xlint/lint1/tree.c
4448
unsigned int size_in_bytes = type_size_in_bits(tp) / CHAR_SIZE;
usr.bin/xlint/lint1/tree.c
4451
debug_step("build_sizeof '%s' = %u", type_name(tp), size_in_bytes);
usr.bin/xlint/lint1/tree.c
4456
build_offsetof(const type_t *tp, designation dn)
usr.bin/xlint/lint1/tree.c
4460
if (!is_struct_or_union(tp->t_tspec)) {
usr.bin/xlint/lint1/tree.c
4468
if (tp->t_tspec != ARRAY)
usr.bin/xlint/lint1/tree.c
4470
tp = tp->t_subt;
usr.bin/xlint/lint1/tree.c
4472
* type_size_in_bits(tp);
usr.bin/xlint/lint1/tree.c
4474
if (!is_struct_or_union(tp->t_tspec))
usr.bin/xlint/lint1/tree.c
4477
sym_t *mem = find_member(tp->u.sou, name);
usr.bin/xlint/lint1/tree.c
4480
error(101, name, type_name(tp));
usr.bin/xlint/lint1/tree.c
4483
tp = mem->s_type;
usr.bin/xlint/lint1/tree.c
4497
type_size_in_bits(const type_t *tp)
usr.bin/xlint/lint1/tree.c
4502
lint_assert(tp != NULL);
usr.bin/xlint/lint1/tree.c
4503
while (tp->t_tspec == ARRAY) {
usr.bin/xlint/lint1/tree.c
4505
elem *= tp->u.dimension;
usr.bin/xlint/lint1/tree.c
4506
tp = tp->t_subt;
usr.bin/xlint/lint1/tree.c
4515
switch (tp->t_tspec) {
usr.bin/xlint/lint1/tree.c
4523
error(144, type_name(tp));
usr.bin/xlint/lint1/tree.c
4528
if (is_incomplete(tp)) {
usr.bin/xlint/lint1/tree.c
4533
elsz = tp->u.sou->sou_size_in_bits;
usr.bin/xlint/lint1/tree.c
4536
if (is_incomplete(tp)) {
usr.bin/xlint/lint1/tree.c
4542
if (tp->t_bitfield)
usr.bin/xlint/lint1/tree.c
4545
elsz = size_in_bits(tp->t_tspec);
usr.bin/xlint/lint1/tree.c
4555
build_alignof(const type_t *tp)
usr.bin/xlint/lint1/tree.c
4557
if (tp->t_tspec == FUNC) {
usr.bin/xlint/lint1/tree.c
4559
error(144, type_name(tp));
usr.bin/xlint/lint1/tree.c
4562
if (tp->t_tspec == VOID) {
usr.bin/xlint/lint1/tree.c
4567
if (is_incomplete(tp)) {
usr.bin/xlint/lint1/tree.c
4572
if (tp->t_bitfield) {
usr.bin/xlint/lint1/tree.c
4577
return build_integer_constant(SIZEOF_TSPEC, (int64_t)alignment(tp));
usr.bin/xlint/lint1/tree.c
4628
cast(tnode_t *tn, bool sys, type_t *tp)
usr.bin/xlint/lint1/tree.c
4636
lint_assert(tp != NULL);
usr.bin/xlint/lint1/tree.c
4637
tspec_t nt = tp->t_tspec;
usr.bin/xlint/lint1/tree.c
4647
return cast_to_union(tn, sys, tp);
usr.bin/xlint/lint1/tree.c
4665
if (!tp->t_subt->t_const && tn->tn_type->t_subt->t_const) {
usr.bin/xlint/lint1/tree.c
4674
&& types_compatible(tp, tn->tn_type, false, false, NULL))
usr.bin/xlint/lint1/tree.c
4676
query_message(6, expr_type_name(tn), type_name(tp));
usr.bin/xlint/lint1/tree.c
4678
tn = convert(CVT, 0, tp, tn);
usr.bin/xlint/lint1/tree.c
4686
error(147, expr_type_name(tn), type_name(tp));
usr.bin/xlint/lint1/tree.c
4721
type_t *tp, tnode_t *tn)
usr.bin/xlint/lint1/tree.c
4724
ln->tn_type = expr_unqualified_type(tp);
usr.bin/xlint/lint1/tree.c
4728
if (!types_compatible(tp, tn->tn_type,
usr.bin/xlint/lint1/tree.c
4730
tn = convert(FARG, arg, tp, tn);
usr.bin/xlint/lint1/tree.c
477
ic_con(const type_t *tp, const val_t *v)
usr.bin/xlint/lint1/tree.c
479
lint_assert(is_integer(tp->t_tspec));
usr.bin/xlint/lint1/tree.c
730
block_derive_type(type_t *tp, tspec_t t)
usr.bin/xlint/lint1/tree.c
735
tp2->t_subt = tp;
usr.bin/xlint/lint1/tree.c
744
expr_derive_ptr_type(type_t *tp)
usr.bin/xlint/lint1/tree.c
749
tp2->t_subt = tp;
usr.bin/xlint/lint1/tree.c
797
build_constant(type_t *tp, val_t *v)
usr.bin/xlint/lint1/tree.c
802
n->tn_type = tp;
usr.bin/xlint/lint1/tree.c
804
n->u.value.v_tspec = tp->t_tspec;
usr.bin/xlint/lint1/tree.c
989
type_t *tp = expr_zero_alloc(sizeof(*tp), "type");
usr.bin/xlint/lint1/tree.c
990
tp->t_tspec = ARRAY;
usr.bin/xlint/lint1/tree.c
991
tp->t_subt = gettyp(lit->data != NULL ? CHAR : WCHAR_TSPEC);
usr.bin/xlint/lint1/tree.c
992
tp->u.dimension = (int)(value_len + 1);
usr.bin/xlint/lint1/tree.c
996
n->tn_type = tp;
usr.bin/xlint/lint2/chk.c
1005
} else if (tp->t_subt->t_subt->t_tspec!=VOID) {
usr.bin/xlint/lint2/chk.c
1354
matches_no_arg_function(const type_t *tp, bool *dowarn)
usr.bin/xlint/lint2/chk.c
1356
if (tp->t_vararg && dowarn != NULL)
usr.bin/xlint/lint2/chk.c
1358
for (const type_t **arg = tp->t_args; *arg != NULL; arg++) {
usr.bin/xlint/lint2/chk.c
607
const type_t *tp;
usr.bin/xlint/lint2/chk.c
661
if ((tp = *ap++) == NULL) {
usr.bin/xlint/lint2/chk.c
666
if ((t1 = tp->t_tspec) != INT && (hflag || t1 != UINT))
usr.bin/xlint/lint2/chk.c
680
if ((tp = *ap++) == NULL) {
usr.bin/xlint/lint2/chk.c
685
if (tp->t_tspec != INT)
usr.bin/xlint/lint2/chk.c
719
if ((tp = *ap++) == NULL) {
usr.bin/xlint/lint2/chk.c
724
if ((t1 = tp->t_tspec) == PTR)
usr.bin/xlint/lint2/chk.c
725
t2 = tp->t_subt->t_tspec;
usr.bin/xlint/lint2/chk.c
835
const type_t *tp = NULL;
usr.bin/xlint/lint2/chk.c
885
if ((tp = *ap++) == NULL) {
usr.bin/xlint/lint2/chk.c
890
if ((t1 = tp->t_tspec) == PTR)
usr.bin/xlint/lint2/chk.c
891
t2 = tp->t_subt->t_tspec;
usr.bin/xlint/lint2/chk.c
907
} else if (tp->t_subt->t_const) {
usr.bin/xlint/lint2/emit2.c
46
outtype(const type_t *tp)
usr.bin/xlint/lint2/emit2.c
51
while (tp != NULL) {
usr.bin/xlint/lint2/emit2.c
52
tspec_t ts = tp->t_tspec;
usr.bin/xlint/lint2/emit2.c
53
if (ts == INT && tp->t_is_enum)
usr.bin/xlint/lint2/emit2.c
57
if (tp->t_const)
usr.bin/xlint/lint2/emit2.c
59
if (tp->t_volatile)
usr.bin/xlint/lint2/emit2.c
63
if (ts == FUNC && tp->t_args != NULL && !tp->t_proto)
usr.bin/xlint/lint2/emit2.c
69
outint(tp->t_dim);
usr.bin/xlint/lint2/emit2.c
71
if (tp->t_istag) {
usr.bin/xlint/lint2/emit2.c
73
outname(tp->t_tag->h_name);
usr.bin/xlint/lint2/emit2.c
74
} else if (tp->t_istynam) {
usr.bin/xlint/lint2/emit2.c
76
outname(tp->t_tynam->h_name);
usr.bin/xlint/lint2/emit2.c
77
} else if (tp->t_isuniqpos) {
usr.bin/xlint/lint2/emit2.c
79
outint(tp->t_uniqpos.p_line);
usr.bin/xlint/lint2/emit2.c
81
outint(tp->t_uniqpos.p_file);
usr.bin/xlint/lint2/emit2.c
83
outint(tp->t_uniqpos.p_uniq);
usr.bin/xlint/lint2/emit2.c
86
} else if (ts == FUNC && tp->t_args != NULL) {
usr.bin/xlint/lint2/emit2.c
88
for (const type_t **ap = tp->t_args; *ap != NULL; ap++)
usr.bin/xlint/lint2/emit2.c
90
if (tp->t_vararg)
usr.bin/xlint/lint2/emit2.c
93
for (const type_t **ap = tp->t_args; *ap != NULL; ap++)
usr.bin/xlint/lint2/emit2.c
95
if (tp->t_vararg)
usr.bin/xlint/lint2/emit2.c
98
tp = tp->t_subt;
usr.bin/xlint/lint2/read.c
650
type_t *tp;
usr.bin/xlint/lint2/read.c
666
tp = xalloc(sizeof(*tp));
usr.bin/xlint/lint2/read.c
668
tidx = storetyp(tp, cp, tlen, h);
usr.bin/xlint/lint2/read.c
673
tp->t_const = true;
usr.bin/xlint/lint2/read.c
677
tp->t_volatile = true;
usr.bin/xlint/lint2/read.c
681
tp->t_tspec = parse_tspec(&cp, c, &osdef);
usr.bin/xlint/lint2/read.c
683
switch (tp->t_tspec) {
usr.bin/xlint/lint2/read.c
685
tp->t_dim = parse_int(&cp);
usr.bin/xlint/lint2/read.c
686
tp->t_subt = TP(inptype(cp, &cp));
usr.bin/xlint/lint2/read.c
689
tp->t_subt = TP(inptype(cp, &cp));
usr.bin/xlint/lint2/read.c
695
tp->t_proto = true;
usr.bin/xlint/lint2/read.c
697
tp->t_args = xcalloc((size_t)narg + 1,
usr.bin/xlint/lint2/read.c
698
sizeof(*tp->t_args));
usr.bin/xlint/lint2/read.c
701
tp->t_vararg = true;
usr.bin/xlint/lint2/read.c
704
tp->t_args[i] = TP(inptype(cp, &cp));
usr.bin/xlint/lint2/read.c
707
tp->t_subt = TP(inptype(cp, &cp));
usr.bin/xlint/lint2/read.c
710
tp->t_tspec = INT;
usr.bin/xlint/lint2/read.c
711
tp->t_is_enum = true;
usr.bin/xlint/lint2/read.c
717
tp->t_istag = true;
usr.bin/xlint/lint2/read.c
718
tp->t_tag = htab_search(inpname(cp, &cp), true);
usr.bin/xlint/lint2/read.c
721
tp->t_istynam = true;
usr.bin/xlint/lint2/read.c
722
tp->t_tynam = htab_search(inpname(cp, &cp), true);
usr.bin/xlint/lint2/read.c
725
tp->t_isuniqpos = true;
usr.bin/xlint/lint2/read.c
726
tp->t_uniqpos.p_line = parse_int(&cp);
usr.bin/xlint/lint2/read.c
729
tp->t_uniqpos.p_file = (short)
usr.bin/xlint/lint2/read.c
732
tp->t_uniqpos.p_uniq = parse_int(&cp);
usr.bin/xlint/lint2/read.c
944
storetyp(type_t *tp, const char *cp, size_t len, int h)
usr.bin/xlint/lint2/read.c
959
tlst[tidx] = tp;
usr.sbin/ac/ac.c
140
struct tty_list *tp;
usr.sbin/ac/ac.c
145
if ((tp = NEW(struct tty_list)) == NULL)
usr.sbin/ac/ac.c
147
tp->len = 0; /* full match */
usr.sbin/ac/ac.c
148
tp->ret = 1; /* do if match */
usr.sbin/ac/ac.c
150
tp->ret = 0;
usr.sbin/ac/ac.c
153
(void)strlcpy(tp->name, name, sizeof (tp->name));
usr.sbin/ac/ac.c
154
if ((rcp = strchr(tp->name, '*')) != NULL) { /* wild card */
usr.sbin/ac/ac.c
156
tp->len = strlen(tp->name); /* match len bytes only */
usr.sbin/ac/ac.c
158
tp->next = Ttys;
usr.sbin/ac/ac.c
159
Ttys = tp;
usr.sbin/ac/ac.c
169
struct tty_list *tp;
usr.sbin/ac/ac.c
172
for (tp = Ttys; tp != NULL; tp = tp->next) {
usr.sbin/ac/ac.c
173
if (tp->ret == 0) /* specific don't */
usr.sbin/ac/ac.c
175
if (tp->len != 0) {
usr.sbin/ac/ac.c
176
if (strncmp(name, tp->name, tp->len) == 0)
usr.sbin/ac/ac.c
177
return tp->ret;
usr.sbin/ac/ac.c
179
if (strncmp(name, tp->name, sizeof (tp->name)) == 0)
usr.sbin/ac/ac.c
180
return tp->ret;
usr.sbin/altq/libaltq/parser.c
129
struct cmd_tab *tp;
usr.sbin/altq/libaltq/parser.c
164
for (tp = cmd_tab; tp->cmd != NULL; tp++)
usr.sbin/altq/libaltq/parser.c
165
if (strncmp(cmd, tp->cmd, len) == 0)
usr.sbin/altq/libaltq/parser.c
168
if (tp->cmd == NULL) {
usr.sbin/altq/libaltq/parser.c
177
if (tp->parser != NULL)
usr.sbin/altq/libaltq/parser.c
178
rval = (*tp->parser)(cp);
usr.sbin/altq/libaltq/parser.c
181
if (strcmp(tp->cmd, "quit") == 0)
usr.sbin/altq/libaltq/parser.c
183
else if (strcmp(tp->cmd, "help") == 0 ||
usr.sbin/altq/libaltq/parser.c
184
strcmp(tp->cmd, "?") == 0) {
usr.sbin/altq/libaltq/parser.c
185
for (tp = cmd_tab; tp->cmd != NULL; tp++)
usr.sbin/altq/libaltq/parser.c
186
printf("%s\n", tp->help);
usr.sbin/altq/libaltq/parser.c
188
} else if (strcmp(tp->cmd, "debug") == 0) {
usr.sbin/altq/libaltq/quip_server.c
149
char *tp;
usr.sbin/altq/libaltq/quip_server.c
156
tp = strpbrk(*cpp, " \t\n#");
usr.sbin/altq/libaltq/quip_server.c
157
L = MIN((tp)?(tp-*cpp):(int)strlen(*cpp), 63);
usr.sbin/bootp/common/tzone.c
45
struct timeval tp; /* Time (extra baggage) */
usr.sbin/bootp/common/tzone.c
46
if (gettimeofday(&tp, &tzp) < 0) {
usr.sbin/catman/catman.c
551
TAG *tp;
usr.sbin/catman/catman.c
556
if ((tp = gettag("_suffix", 1)) == NULL)
usr.sbin/catman/catman.c
558
if (! TAILQ_EMPTY(&tp->entrylist)) {
usr.sbin/catman/catman.c
560
TAILQ_FIRST(&tp->entrylist)->s, crunchsuff);
usr.sbin/diskpart/diskpart.c
383
const char *const *tp;
usr.sbin/diskpart/diskpart.c
408
for (tp = dktypenames; *tp; tp++)
usr.sbin/diskpart/diskpart.c
409
if (strchr(*tp, ' ') == 0)
usr.sbin/diskpart/diskpart.c
410
fprintf(stderr, "\t%s\n", *tp);
usr.sbin/lpr/lpc/lpc.c
158
cmdscanner(int tp)
usr.sbin/lpr/lpc/lpc.c
163
if (!tp)
usr.sbin/lpr/lpd/extern.h
57
void sttyclearflags(struct termios *tp, int flags);
usr.sbin/lpr/lpd/extern.h
58
void sttysetflags(struct termios *tp, int flags);
usr.sbin/lpr/lpd/extern.h
59
void sttyclearlflags(struct termios *tp, int flags);
usr.sbin/lpr/lpd/extern.h
60
void sttysetlflags(struct termios *tp, int flags);
usr.sbin/lpr/lpd/ttcompat.c
100
tcflag_t iflag = tp->c_iflag;
usr.sbin/lpr/lpd/ttcompat.c
101
tcflag_t oflag = tp->c_oflag;
usr.sbin/lpr/lpd/ttcompat.c
102
tcflag_t lflag = tp->c_lflag;
usr.sbin/lpr/lpd/ttcompat.c
103
tcflag_t cflag = tp->c_cflag;
usr.sbin/lpr/lpd/ttcompat.c
155
tp->c_iflag = iflag;
usr.sbin/lpr/lpd/ttcompat.c
156
tp->c_oflag = oflag;
usr.sbin/lpr/lpd/ttcompat.c
157
tp->c_lflag = lflag;
usr.sbin/lpr/lpd/ttcompat.c
158
tp->c_cflag = cflag;
usr.sbin/lpr/lpd/ttcompat.c
162
sttyclearflags(struct termios *tp, int flags)
usr.sbin/lpr/lpd/ttcompat.c
164
tcflag_t iflag = tp->c_iflag;
usr.sbin/lpr/lpd/ttcompat.c
165
tcflag_t oflag = tp->c_oflag;
usr.sbin/lpr/lpd/ttcompat.c
166
tcflag_t lflag = tp->c_lflag;
usr.sbin/lpr/lpd/ttcompat.c
167
tcflag_t cflag = tp->c_cflag;
usr.sbin/lpr/lpd/ttcompat.c
168
int oflags = sttygetoflags(tp) & ~flags;
usr.sbin/lpr/lpd/ttcompat.c
182
tp->c_iflag = iflag;
usr.sbin/lpr/lpd/ttcompat.c
183
tp->c_oflag = oflag;
usr.sbin/lpr/lpd/ttcompat.c
184
tp->c_lflag = lflag;
usr.sbin/lpr/lpd/ttcompat.c
185
tp->c_cflag = cflag;
usr.sbin/lpr/lpd/ttcompat.c
187
sttysetoflags(tp, oflags);
usr.sbin/lpr/lpd/ttcompat.c
191
sttysetflags(struct termios *tp, int flags)
usr.sbin/lpr/lpd/ttcompat.c
193
tcflag_t iflag = tp->c_iflag;
usr.sbin/lpr/lpd/ttcompat.c
194
tcflag_t oflag = tp->c_oflag;
usr.sbin/lpr/lpd/ttcompat.c
195
tcflag_t lflag = tp->c_lflag;
usr.sbin/lpr/lpd/ttcompat.c
196
tcflag_t cflag = tp->c_cflag;
usr.sbin/lpr/lpd/ttcompat.c
197
int oflags = sttygetoflags(tp) | flags;
usr.sbin/lpr/lpd/ttcompat.c
210
tp->c_iflag = iflag;
usr.sbin/lpr/lpd/ttcompat.c
211
tp->c_oflag = oflag;
usr.sbin/lpr/lpd/ttcompat.c
212
tp->c_lflag = lflag;
usr.sbin/lpr/lpd/ttcompat.c
213
tp->c_cflag = cflag;
usr.sbin/lpr/lpd/ttcompat.c
215
sttysetoflags(tp, oflags);
usr.sbin/lpr/lpd/ttcompat.c
219
sttyclearlflags(struct termios *tp, int flags)
usr.sbin/lpr/lpd/ttcompat.c
221
tcflag_t iflag = tp->c_iflag;
usr.sbin/lpr/lpd/ttcompat.c
222
tcflag_t oflag = tp->c_oflag;
usr.sbin/lpr/lpd/ttcompat.c
223
tcflag_t lflag = tp->c_lflag;
usr.sbin/lpr/lpd/ttcompat.c
224
tcflag_t cflag = tp->c_cflag;
usr.sbin/lpr/lpd/ttcompat.c
225
int oflags = sttygetoflags(tp) & ~flags;
usr.sbin/lpr/lpd/ttcompat.c
245
tp->c_iflag = iflag;
usr.sbin/lpr/lpd/ttcompat.c
246
tp->c_oflag = oflag;
usr.sbin/lpr/lpd/ttcompat.c
247
tp->c_lflag = lflag;
usr.sbin/lpr/lpd/ttcompat.c
248
tp->c_cflag = cflag;
usr.sbin/lpr/lpd/ttcompat.c
250
sttysetoflags(tp, oflags);
usr.sbin/lpr/lpd/ttcompat.c
254
sttysetlflags(struct termios *tp, int flags)
usr.sbin/lpr/lpd/ttcompat.c
256
tcflag_t iflag = tp->c_iflag;
usr.sbin/lpr/lpd/ttcompat.c
257
tcflag_t oflag = tp->c_oflag;
usr.sbin/lpr/lpd/ttcompat.c
258
tcflag_t lflag = tp->c_lflag;
usr.sbin/lpr/lpd/ttcompat.c
259
tcflag_t cflag = tp->c_cflag;
usr.sbin/lpr/lpd/ttcompat.c
260
int oflags = sttygetoflags(tp) | flags;
usr.sbin/lpr/lpd/ttcompat.c
280
tp->c_iflag = iflag;
usr.sbin/lpr/lpd/ttcompat.c
281
tp->c_oflag = oflag;
usr.sbin/lpr/lpd/ttcompat.c
282
tp->c_lflag = lflag;
usr.sbin/lpr/lpd/ttcompat.c
283
tp->c_cflag = cflag;
usr.sbin/lpr/lpd/ttcompat.c
285
sttysetoflags(tp, oflags);
usr.sbin/lpr/lpd/ttcompat.c
61
sttygetoflags(struct termios *tp)
usr.sbin/lpr/lpd/ttcompat.c
63
tcflag_t iflag = tp->c_iflag;
usr.sbin/lpr/lpd/ttcompat.c
64
tcflag_t lflag = tp->c_lflag;
usr.sbin/lpr/lpd/ttcompat.c
65
tcflag_t oflag = tp->c_oflag;
usr.sbin/lpr/lpd/ttcompat.c
66
tcflag_t cflag = tp->c_cflag;
usr.sbin/lpr/lpd/ttcompat.c
98
sttysetoflags(struct termios *tp, int flags)
usr.sbin/makemandb/apropos-utils.c
318
TAG *tp;
usr.sbin/makemandb/apropos-utils.c
322
tp = gettag("_mandb", 1);
usr.sbin/makemandb/apropos-utils.c
323
if (!tp)
usr.sbin/makemandb/apropos-utils.c
326
if (TAILQ_EMPTY(&tp->entrylist))
usr.sbin/makemandb/apropos-utils.c
329
dbpath = TAILQ_LAST(&tp->entrylist, tqh)->s;
usr.sbin/mmcformat/mmcformat.c
59
struct timeval tp;
usr.sbin/mmcformat/mmcformat.c
61
gettimeofday(&tp, NULL);
usr.sbin/mmcformat/mmcformat.c
62
return (uint64_t) 1000000 * tp.tv_sec + tp.tv_usec;
usr.sbin/mrouted/prune.c
1958
struct timeval tp;
usr.sbin/mrouted/prune.c
1966
gettimeofday(&tp, 0);
usr.sbin/mrouted/prune.c
2109
resp->tr_qarr = htonl((tp.tv_sec + JAN_1970) << 16) +
usr.sbin/mrouted/prune.c
2110
((tp.tv_usec >> 4) & 0xffff);
usr.sbin/mtree/verify.c
182
char *tp;
usr.sbin/mtree/verify.c
280
for (tp = tail; *tp; ++tp)
usr.sbin/mtree/verify.c
282
*tp = '/';
usr.sbin/mtree/verify.c
283
miss(p->child, tp + 1);
usr.sbin/mtree/verify.c
284
*tp = '\0';
usr.sbin/pstat/pstat.c
801
struct tty *tp, tty;
usr.sbin/pstat/pstat.c
809
for (tp = tty_head.tqh_first; tp; tp = tty.tty_link.tqe_next) {
usr.sbin/pstat/pstat.c
810
KGET2(tp, &tty, sizeof tty, "tty struct");
usr.sbin/pstat/pstat.c
835
ttyprt(struct tty *tp)
usr.sbin/pstat/pstat.c
845
if (usenumflag || (name = devname(tp->t_dev, S_IFCHR)) == NULL) {
usr.sbin/pstat/pstat.c
846
devprintf(dev, sizeof(dev), tp->t_dev);
usr.sbin/pstat/pstat.c
851
PRWORD(ovflw, " %*d", 3, 1, tp->t_rawq.c_cc);
usr.sbin/pstat/pstat.c
852
PRWORD(ovflw, " %*d", 4, 1, tp->t_canq.c_cc);
usr.sbin/pstat/pstat.c
853
PRWORD(ovflw, " %*d", 4, 1, tp->t_outq.c_cc);
usr.sbin/pstat/pstat.c
854
PRWORD(ovflw, " %*d", 5, 1, tp->t_hiwat);
usr.sbin/pstat/pstat.c
855
PRWORD(ovflw, " %*d", 4, 1, tp->t_lowat);
usr.sbin/pstat/pstat.c
856
PRWORD(ovflw, " %*d", 8, 1, tp->t_column);
usr.sbin/pstat/pstat.c
857
n = getflags(ttystates, state, tp->t_state);
usr.sbin/pstat/pstat.c
858
if (tp->t_wopen) {
usr.sbin/pstat/pstat.c
863
PRWORD(ovflw, " %*lX", PTRSTRWIDTH + 1, 1, (u_long)tp->t_session);
usr.sbin/pstat/pstat.c
865
if (tp->t_pgrp != NULL)
usr.sbin/pstat/pstat.c
866
KGET2(&tp->t_pgrp->pg_id, &pgid, sizeof(pid_t), "pgid");
usr.sbin/pstat/pstat.c
868
KGET2(tp->t_linesw, &t_linesw, sizeof(t_linesw),
usr.sbin/sysinst/wskbd.c
135
const char *tp = target_prefix();
usr.sbin/sysinst/wskbd.c
152
kbd_name, kbd_name, kbd_name, tp, tp);
usr.sbin/tpctl/main.c
134
if (tp_init(&tp, tpfd) < 0)
usr.sbin/tpctl/main.c
138
pref = search_data(&data, tp.id);
usr.sbin/tpctl/main.c
145
if (do_calibration(dispdev_name, &tp, &coords) < 0) {
usr.sbin/tpctl/main.c
150
replace_data(&data, tp.id, &coords);
usr.sbin/tpctl/main.c
151
pref = search_data(&data, tp.id);
usr.sbin/tpctl/main.c
159
write_coords(stdout, tp.id, pref);
usr.sbin/tpctl/main.c
162
if (tp_setcalibcoords(&tp, pref) < 0)
usr.sbin/tpctl/main.c
257
do_calibration(const char *dev, struct tp *tp,
usr.sbin/tpctl/main.c
301
tp_setrawmode(tp);
usr.sbin/tpctl/main.c
309
tp_flush(tp);
usr.sbin/tpctl/main.c
310
res = tp_get(tp, &x, &y, check_esc, 0 /* stdin */);
usr.sbin/tpctl/main.c
326
tp_waitup(tp, 200, check_esc, 0 /* stdin */);
usr.sbin/tpctl/main.c
57
int do_calibration(const char *, struct tp *, struct wsmouse_calibcoords *);
usr.sbin/tpctl/main.c
79
struct tp tp;
usr.sbin/tpctl/tp.c
103
return ioctl(tp->fd, WSMOUSEIO_SCALIBCOORDS, &raw);
usr.sbin/tpctl/tp.c
107
tp_setcalibcoords(struct tp *tp, struct wsmouse_calibcoords *calibcoords)
usr.sbin/tpctl/tp.c
109
return ioctl(tp->fd, WSMOUSEIO_SCALIBCOORDS, calibcoords);
usr.sbin/tpctl/tp.c
113
tp_flush(struct tp *tp)
usr.sbin/tpctl/tp.c
119
while (read(tp->fd, &ev, sizeof(ev)) == sizeof(ev)) {
usr.sbin/tpctl/tp.c
141
tp_get(struct tp *tp, int *x, int *y, int (*cancel)(void *), void *data)
usr.sbin/tpctl/tp.c
150
if ((res = read(tp->fd, &ev, sizeof(ev))) < 0) {
usr.sbin/tpctl/tp.c
181
tp_waitup(struct tp *tp, int msec, int (*cancel)(void*), void *data)
usr.sbin/tpctl/tp.c
189
if (tp_flush(tp) == 0)
usr.sbin/tpctl/tp.c
50
tp_init(struct tp *tp, int fd)
usr.sbin/tpctl/tp.c
63
tp->fd = fd;
usr.sbin/tpctl/tp.c
66
if (ioctl(tp->fd, WSMOUSEIO_GTYPE, &type) < 0)
usr.sbin/tpctl/tp.c
73
if (ioctl(tp->fd, WSMOUSEIO_GCALIBCOORDS, &calibcoords) < 0)
usr.sbin/tpctl/tp.c
76
flags = fcntl(tp->fd, F_GETFL);
usr.sbin/tpctl/tp.c
80
if (fcntl(tp->fd, F_SETFL, flags) < 0)
usr.sbin/tpctl/tp.c
84
if (ioctl(tp->fd, WSMOUSEIO_GETID, &id) == 0) {
usr.sbin/tpctl/tp.c
85
(void)strlcpy(tp->id, (char *)id.data,
usr.sbin/tpctl/tp.c
86
MIN(sizeof(tp->id), id.length));
usr.sbin/tpctl/tp.c
88
tp->id[0] = '*';
usr.sbin/tpctl/tp.c
89
tp->id[1] = '\0';
usr.sbin/tpctl/tp.c
96
tp_setrawmode(struct tp *tp)
usr.sbin/tpctl/tpctl.h
100
int tp_get(struct tp *, int *, int *, int (*)(void *), void *);
usr.sbin/tpctl/tpctl.h
101
int tp_waitup(struct tp *, int, int (*)(void *), void *);
usr.sbin/tpctl/tpctl.h
96
int tp_init(struct tp *, int);
usr.sbin/tpctl/tpctl.h
97
int tp_setrawmode(struct tp *);
usr.sbin/tpctl/tpctl.h
98
int tp_setcalibcoords(struct tp *, struct wsmouse_calibcoords *);
usr.sbin/tpctl/tpctl.h
99
int tp_flush(struct tp *);
usr.sbin/traceroute/traceroute.c
1070
wait_for_reply(int sock, struct sockaddr_in *fromp, const struct timeval *tp)
usr.sbin/traceroute/traceroute.c
1081
wait.tv_sec = tp->tv_sec + waittime;
usr.sbin/traceroute/traceroute.c
1082
wait.tv_usec = tp->tv_usec;
usr.sbin/traceroute/traceroute.c
1240
send_probe(int seq, int ttl, struct timeval *tp)
usr.sbin/traceroute/traceroute.c
1273
outsetup.tv.tv32_sec = htonl(tp->tv_sec);
usr.sbin/traceroute/traceroute.c
1274
outsetup.tv.tv32_usec = htonl(tp->tv_usec);
usr.sbin/trpt/trpt.c
382
tcp_trace(short act, short ostate, struct tcpcb *atp, struct tcpcb *tp,
usr.sbin/trpt/trpt.c
506
printf(" -> %s", tcpstates[tp->t_state]);
usr.sbin/trpt/trpt.c
511
tp->rcv_nxt, tp->rcv_wnd, tp->snd_una, tp->snd_nxt,
usr.sbin/trpt/trpt.c
512
tp->snd_max);
usr.sbin/trpt/trpt.c
513
printf("\tsnd_wl1 %x snd_wl2 %x snd_wnd %lx\n", tp->snd_wl1,
usr.sbin/trpt/trpt.c
514
tp->snd_wl2, tp->snd_wnd);
usr.sbin/trpt/trpt.c
535
ci = (callout_impl_t *)&tp->t_timer[i];
usr.sbin/trpt/trpt.c
542
tp->t_rxtshift);
usr.sbin/user/user.c
1034
scantime(time_t *tp, char *s)
usr.sbin/user/user.c
1040
*tp = 0;
usr.sbin/user/user.c
1044
*tp = mktime(&tm);
usr.sbin/user/user.c
1045
return (*tp == -1) ? 0 : 1;
usr.sbin/user/user.c
1047
*tp = mktime(&tm);
usr.sbin/user/user.c
1048
return (*tp == -1) ? 0 : 1;
usr.sbin/user/user.c
1051
*tp = val = strtol(s, &ep, 10);
usr.sbin/user/user.c
1052
if (*ep != '\0' || *tp < -1 || errno == ERANGE) {
usr.sbin/user/user.c
1053
*tp = 0;
usr.sbin/user/user.c
1056
if (*tp != val) {