bin/csh/file.c
491
int w;
bin/csh/file.c
496
w = Strlen(items[i]) + 1;
bin/csh/file.c
497
for (; w < maxwidth; w++)
bin/csh/proc.c
116
if (WIFSTOPPED(w)) {
bin/csh/proc.c
118
pp->p_reason = WSTOPSIG(w);
bin/csh/proc.c
125
if (WIFSIGNALED(w)) {
bin/csh/proc.c
126
if (WTERMSIG(w) == SIGINT)
bin/csh/proc.c
130
if (WCOREDUMP(w))
bin/csh/proc.c
132
pp->p_reason = WTERMSIG(w);
bin/csh/proc.c
135
pp->p_reason = WEXITSTATUS(w);
bin/csh/proc.c
90
int w;
bin/csh/proc.c
96
pid = wait3(&w,
bin/ksh/c_ksh.c
1208
int mess_width = 0, w;
bin/ksh/c_ksh.c
1218
w = sigtraps[i].name ?
bin/ksh/c_ksh.c
1221
if (w > ki.name_width)
bin/ksh/c_ksh.c
1222
ki.name_width = w;
bin/ksh/c_ksh.c
1223
w = strlen(sigtraps[i].mess);
bin/ksh/c_ksh.c
1224
if (w > mess_width)
bin/ksh/c_ksh.c
1225
mess_width = w;
bin/ksh/edit.c
418
XPtrV w;
bin/ksh/edit.c
439
XPinit(w, 32);
bin/ksh/edit.c
440
expand(yylval.cp, &w, DOGLOB|DOTILDE|DOMARKDIRS);
bin/ksh/edit.c
441
XPput(w, NULL);
bin/ksh/edit.c
442
words = (char **) XPclose(w);
bin/ksh/edit.c
501
XPtrV w;
bin/ksh/edit.c
513
XPinit(w, 32);
bin/ksh/edit.c
515
glob_table(pat, &w, &keywords);
bin/ksh/edit.c
516
glob_table(pat, &w, &aliases);
bin/ksh/edit.c
517
glob_table(pat, &w, &builtins);
bin/ksh/edit.c
519
glob_table(pat, &w, &l->funs);
bin/ksh/edit.c
521
glob_path(flags, pat, &w, search_path);
bin/ksh/edit.c
523
glob_path(flags, pat, &w, fpath);
bin/ksh/edit.c
525
nwords = XPsize(w);
bin/ksh/edit.c
529
XPfree(w);
bin/ksh/edit.c
538
char **words = (char **) XPptrv(w);
bin/ksh/edit.c
562
char **words = (char **) XPptrv(w);
bin/ksh/edit.c
565
qsortp(XPptrv(w), (size_t) nwords, xstrcmp);
bin/ksh/edit.c
575
w.cur = (void **) &words[j];
bin/ksh/edit.c
578
XPput(w, NULL);
bin/ksh/edit.c
579
*wordsp = (char **) XPclose(w);
bin/ksh/eval.c
100
XPput(w, NULL);
bin/ksh/eval.c
101
return (char **) XPclose(w) + 1;
bin/ksh/eval.c
110
XPtrV w;
bin/ksh/eval.c
112
XPinit(w, 1);
bin/ksh/eval.c
113
expand(cp, &w, f);
bin/ksh/eval.c
114
cp = (XPsize(w) == 0) ? null : (char*) *XPptrv(w);
bin/ksh/eval.c
115
XPfree(w);
bin/ksh/eval.c
126
XPtrV w;
bin/ksh/eval.c
128
XPinit(w, 1);
bin/ksh/eval.c
129
expand(cp, &w, f);
bin/ksh/eval.c
130
switch (XPsize(w)) {
bin/ksh/eval.c
135
cp = (char*) *XPptrv(w);
bin/ksh/eval.c
141
XPfree(w);
bin/ksh/eval.c
92
XPtrV w;
bin/ksh/eval.c
96
XPinit(w, 32);
bin/ksh/eval.c
97
XPput(w, NULL); /* space for shell name */
bin/ksh/eval.c
99
expand(*ap++, &w, f);
bin/ksh/tree.c
101
for (w = t1->vars; *w != NULL; w++)
bin/ksh/tree.c
102
fptreef(shf, indent, "%S%c", *w,
bin/ksh/tree.c
103
(w[1] != NULL) ? '|' : ')');
bin/ksh/tree.c
29
char **w;
bin/ksh/tree.c
39
for (w = t->vars; *w != NULL; )
bin/ksh/tree.c
40
fptreef(shf, indent, "%S ", *w++);
bin/ksh/tree.c
44
for (w = t->args; *w != NULL; )
bin/ksh/tree.c
45
fptreef(shf, indent, "%S ", *w++);
bin/ksh/tree.c
646
char **w;
bin/ksh/tree.c
654
for (w = t->vars; *w != NULL; w++)
bin/ksh/tree.c
655
afree(*w, ap);
bin/ksh/tree.c
660
for (w = t->args; *w != NULL; w++)
bin/ksh/tree.c
661
afree(*w, ap);
bin/ksh/tree.c
90
for (w = t->vars; *w; )
bin/ksh/tree.c
91
fptreef(shf, indent, "%S ", *w++);
distrib/special/more/curses.h
164
#define waddbytes(w, s, n) __waddbytes(w, s, n, 0)
distrib/special/more/curses.h
165
#define waddstr(w, s) __waddbytes(w, s, strlen(s), 0)
distrib/special/more/curses.h
177
#define mvwaddbytes(w, y, x, s, n) \
distrib/special/more/curses.h
178
(wmove(w, y, x) == ERR ? ERR : __waddbytes(w, s, n, 0))
distrib/special/more/curses.h
179
#define mvwaddch(w, y, x, ch) \
distrib/special/more/curses.h
180
(wmove(w, y, x) == ERR ? ERR : waddch(w, ch))
distrib/special/more/curses.h
181
#define mvwaddnstr(w, y, x, s, n) \
distrib/special/more/curses.h
182
(wmove(w, y, x) == ERR ? ERR : waddnstr(w, s, n))
distrib/special/more/curses.h
183
#define mvwaddstr(w, y, x, s) \
distrib/special/more/curses.h
184
(wmove(w, y, x) == ERR ? ERR : __waddbytes(w, s, strlen(s), 0))
distrib/special/more/curses.h
185
#define mvwdelch(w, y, x) \
distrib/special/more/curses.h
186
(wmove(w, y, x) == ERR ? ERR : wdelch(w))
distrib/special/more/curses.h
187
#define mvwgetch(w, y, x) \
distrib/special/more/curses.h
188
(wmove(w, y, x) == ERR ? ERR : wgetch(w))
distrib/special/more/curses.h
189
#define mvwgetstr(w, y, x, s) \
distrib/special/more/curses.h
190
(wmove(w, y, x) == ERR ? ERR : wgetstr(w, s))
distrib/special/more/curses.h
191
#define mvwinch(w, y, x) \
distrib/special/more/curses.h
192
(wmove(w, y, x) == ERR ? ERR : winch(w))
distrib/special/more/curses.h
193
#define mvwinsch(w, y, x, c) \
distrib/special/more/curses.h
194
(wmove(w, y, x) == ERR ? ERR : winsch(w, c))
distrib/special/more/curses.h
197
#define clearok(w, bf) \
distrib/special/more/curses.h
198
((bf) ? ((w)->flags |= __CLEAROK) : ((w)->flags &= ~__CLEAROK))
distrib/special/more/curses.h
199
#define flushok(w, bf) \
distrib/special/more/curses.h
200
((bf) ? ((w)->flags |= __FLUSH) : ((w)->flags &= ~__FLUSH))
distrib/special/more/curses.h
201
#define getyx(w, y, x) \
distrib/special/more/curses.h
202
(y) = (w)->cury, (x) = (w)->curx
distrib/special/more/curses.h
203
#define leaveok(w, bf) \
distrib/special/more/curses.h
204
((bf) ? ((w)->flags |= __LEAVEOK) : ((w)->flags &= ~__LEAVEOK))
distrib/special/more/curses.h
205
#define scrollok(w, bf) \
distrib/special/more/curses.h
206
((bf) ? ((w)->flags |= __SCROLLOK) : ((w)->flags &= ~__SCROLLOK))
distrib/special/more/curses.h
207
#define winch(w) \
distrib/special/more/curses.h
208
((w)->lines[(w)->cury]->line[(w)->curx].ch & 0177)
games/adventure/init.c
126
dwarf = vocab(DECR(d,w,a,r,f), 1, 0);
games/adventure/init.c
130
water = vocab(DECR(w,a,t,e,r), 1, 0);
games/adventure/init.c
168
throw = vocab(DECR(t,h,r,o,w), 2, 0);
games/adventure/wizard.c
53
strlcpy(magic, DECR(d,w,a,r,f), sizeof magic);
games/atc/graphics.c
217
draw_line(WINDOW *w, int x, int y, int lx, int ly, const char *s)
games/atc/graphics.c
224
wmove(w, y, x * 2);
games/atc/graphics.c
225
waddstr(w, s);
games/battlestar/parse.c
51
struct wlist *w;
games/battlestar/parse.c
53
for (w = wlist; w->string; w++)
games/battlestar/parse.c
54
install(w);
games/bcd/bcd.c
110
#define bit(w,i) ((w)&(1<<(i)))
games/boggle/boggle/bog.c
227
char *w;
games/boggle/boggle/bog.c
233
while ((w = nextword(fp)) != NULL) {
games/boggle/boggle/bog.c
240
if (checkword(w, -1, wordpath) != -1)
games/boggle/boggle/bog.c
241
return (w);
games/boggle/boggle/bog.c
468
char *q, *w;
games/boggle/boggle/bog.c
476
while ((w = nextword(dictfp)) != NULL) {
games/boggle/boggle/bog.c
479
if (*w != word[0]) /* end of words starting with word[0] */
games/boggle/boggle/bog.c
482
while ((ch = *w++) == *q++ && ch != '\0')
games/boggle/boggle/bog.c
484
if (*(w - 1) == '\0' && *(q - 1) == '\0')
games/boggle/boggle/bog.c
500
char **pw, *w;
games/boggle/boggle/bog.c
511
while ((w = nextword(dictfp)) != NULL) {
games/boggle/boggle/bog.c
514
if (*w != prevch) {
games/boggle/boggle/bog.c
521
i = (int) (*w - 'a');
games/boggle/boggle/bog.c
549
if (checkword(w, -1, wordpath) == -1)
games/boggle/boggle/bog.c
553
while (*pw != NULL && (st = strcmp(*pw, w)) < 0)
games/boggle/boggle/bog.c
574
memcpy(mwordsp, w, wordlen + 1);
games/boggle/boggle/mach.c
359
addword(char *w)
games/boggle/boggle/mach.c
372
if ((n = strlen(w)) > maxw)
games/quiz/quiz.c
337
score(u_int r, u_int w, u_int g)
games/quiz/quiz.c
339
(void)printf("Rights %d, wrongs %d,", r, w);
games/quiz/quiz.c
342
(void)printf(" score %d%%\n", (r + w + g) ? r * 100 / (r + w + g) : 0);
games/snake/snake.c
567
int w, i, wt[8];
games/snake/snake.c
573
w = 0;
games/snake/snake.c
584
w = i;
games/snake/snake.c
602
wt[i] = (i == w ? loot/10 : 1);
games/snake/snake.c
606
for (w = i = 0; i < 8; i++)
games/snake/snake.c
607
w += wt[i];
games/snake/snake.c
608
vp = arc4random_uniform(w);
games/snake/snake.c
620
oldw = w = i;
games/snake/snake.c
621
np->col = sp->col + mx[w];
games/snake/snake.c
622
np->line = sp->line + my[w];
games/snake/snake.c
626
spacewarp(int w)
games/snake/snake.c
639
if (w) {
games/worms/worms.c
172
struct worm *w;
games/worms/worms.c
253
for (n = number, w = &worm[0]; --n >= 0; w++) {
games/worms/worms.c
254
w->orientation = w->head = 0;
games/worms/worms.c
259
w->xpos = ip;
games/worms/worms.c
266
w->ypos = ip;
games/worms/worms.c
297
for (n = 0, w = &worm[0]; n < number; n++, w++) {
games/worms/worms.c
298
if ((x = w->xpos[h = w->head]) < 0) {
games/worms/worms.c
299
mvaddch(y = w->ypos[h] = bottom,
games/worms/worms.c
300
x = w->xpos[h] = 0,
games/worms/worms.c
305
y = w->ypos[h];
games/worms/worms.c
308
if (w->xpos[w->head = h] >= 0) {
games/worms/worms.c
311
x1 = w->xpos[h];
games/worms/worms.c
312
y1 = w->ypos[h];
games/worms/worms.c
319
op = &upleft[w->orientation];
games/worms/worms.c
321
op = &lowleft[w->orientation];
games/worms/worms.c
323
op = &left[w->orientation];
games/worms/worms.c
326
op = &upright[w->orientation];
games/worms/worms.c
328
op = &lowright[w->orientation];
games/worms/worms.c
330
op = &right[w->orientation];
games/worms/worms.c
333
op = &upper[w->orientation];
games/worms/worms.c
335
op = &lower[w->orientation];
games/worms/worms.c
337
op = &normal[w->orientation];
games/worms/worms.c
345
w->orientation = op->opts[0];
games/worms/worms.c
348
w->orientation =
games/worms/worms.c
351
mvaddch(y += yinc[w->orientation],
games/worms/worms.c
352
x += xinc[w->orientation],
games/worms/worms.c
354
ref[w->ypos[h] = y][w->xpos[h] = x]++;
lib/libc/crypt/chacha_private.h
41
#define XOR(v,w) ((v) ^ (w))
lib/libc/crypt/chacha_private.h
42
#define PLUS(v,w) (U32V((v) + (w)))
lib/libc/gdtoa/misc.c
657
ULong *xa, *xa0, w, y, z;
lib/libc/gdtoa/misc.c
678
w = xa > xa0 ? *--xa : 0;
lib/libc/gdtoa/misc.c
679
d1 = y << ((32-Ebits) + k) | w >> (Ebits - k);
lib/libc/gdtoa/misc.c
696
w = xa > xa0 ? *--xa : 0;
lib/libc/gdtoa/misc.c
698
d1 = z << k + 16 - Ebits | w << k - Ebits | y >> 16 + Ebits - k;
lib/libc/gdtoa/misc.c
702
w = xa > xa0 ? *--xa : 0;
lib/libc/gdtoa/misc.c
704
d0 = Exp_1 | y << k + 16 | z << k | w >> 16 - k;
lib/libc/gdtoa/misc.c
706
d1 = w << k + 16 | y << k;
lib/libc/hash/md5.c
152
#define MD5STEP(f, w, x, y, z, data, s) \
lib/libc/hash/md5.c
153
( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x )
lib/libc/hash/sha1.c
39
#define R0(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk0(i)+0x5A827999+rol(v,5);w=rol(w,30);
lib/libc/hash/sha1.c
40
#define R1(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk(i)+0x5A827999+rol(v,5);w=rol(w,30);
lib/libc/hash/sha1.c
41
#define R2(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0x6ED9EBA1+rol(v,5);w=rol(w,30);
lib/libc/hash/sha1.c
42
#define R3(v,w,x,y,z,i) z+=(((w|x)&y)|(w&x))+blk(i)+0x8F1BBCDC+rol(v,5);w=rol(w,30);
lib/libc/hash/sha1.c
43
#define R4(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0xCA62C1D6+rol(v,5);w=rol(w,30);
lib/libc/hash/sha2.c
137
#define ADDINC128(w,n) do { \
lib/libc/hash/sha2.c
138
(w)[0] += (u_int64_t)(n); \
lib/libc/hash/sha2.c
139
if ((w)[0] < (n)) { \
lib/libc/hash/sha2.c
140
(w)[1]++; \
lib/libc/stdio/fvwrite.c
124
w = fp->_w;
lib/libc/stdio/fvwrite.c
126
if (len < w)
lib/libc/stdio/fvwrite.c
127
w = len;
lib/libc/stdio/fvwrite.c
128
COPY(w); /* copy MIN(fp->_w,len), */
lib/libc/stdio/fvwrite.c
129
fp->_w -= w;
lib/libc/stdio/fvwrite.c
130
fp->_p += w;
lib/libc/stdio/fvwrite.c
131
w = len; /* but pretend copied all */
lib/libc/stdio/fvwrite.c
132
} else if (fp->_p > fp->_bf._base && len > w) {
lib/libc/stdio/fvwrite.c
134
COPY(w);
lib/libc/stdio/fvwrite.c
136
fp->_p += w;
lib/libc/stdio/fvwrite.c
139
} else if (len >= (w = fp->_bf._size)) {
lib/libc/stdio/fvwrite.c
147
if (w != 0)
lib/libc/stdio/fvwrite.c
148
w = MIN(w * (len / w), INT_MAX);
lib/libc/stdio/fvwrite.c
149
w = (*fp->_write)(fp->_cookie, p, w);
lib/libc/stdio/fvwrite.c
150
if (w <= 0)
lib/libc/stdio/fvwrite.c
154
w = len;
lib/libc/stdio/fvwrite.c
155
COPY(w);
lib/libc/stdio/fvwrite.c
156
fp->_w -= w;
lib/libc/stdio/fvwrite.c
157
fp->_p += w;
lib/libc/stdio/fvwrite.c
159
p += w;
lib/libc/stdio/fvwrite.c
160
len -= w;
lib/libc/stdio/fvwrite.c
161
} while ((uio->uio_resid -= w) != 0);
lib/libc/stdio/fvwrite.c
180
w = fp->_w + fp->_bf._size;
lib/libc/stdio/fvwrite.c
181
if (fp->_p > fp->_bf._base && s > w) {
lib/libc/stdio/fvwrite.c
182
COPY(w);
lib/libc/stdio/fvwrite.c
184
fp->_p += w;
lib/libc/stdio/fvwrite.c
187
} else if (s >= (w = fp->_bf._size)) {
lib/libc/stdio/fvwrite.c
188
w = (*fp->_write)(fp->_cookie, p, w);
lib/libc/stdio/fvwrite.c
189
if (w <= 0)
lib/libc/stdio/fvwrite.c
192
w = s;
lib/libc/stdio/fvwrite.c
193
COPY(w);
lib/libc/stdio/fvwrite.c
194
fp->_w -= w;
lib/libc/stdio/fvwrite.c
195
fp->_p += w;
lib/libc/stdio/fvwrite.c
197
if ((nldist -= w) == 0) {
lib/libc/stdio/fvwrite.c
203
p += w;
lib/libc/stdio/fvwrite.c
204
len -= w;
lib/libc/stdio/fvwrite.c
205
} while ((uio->uio_resid -= w) != 0);
lib/libc/stdio/fvwrite.c
54
int w, s;
lib/libc/stdio/fvwrite.c
85
w = (*fp->_write)(fp->_cookie, p, MIN(len, INT_MAX));
lib/libc/stdio/fvwrite.c
86
if (w <= 0)
lib/libc/stdio/fvwrite.c
88
p += w;
lib/libc/stdio/fvwrite.c
89
len -= w;
lib/libc/stdio/fvwrite.c
90
} while ((uio->uio_resid -= w) != 0);
lib/libc/stdio/putw.c
39
putw(int w, FILE *fp)
lib/libc/stdio/putw.c
45
iov.iov_base = &w;
lib/libc/stdio/putw.c
46
iov.iov_len = uio.uio_resid = sizeof(w);
lib/libc/string/wcswidth.c
37
int w, q;
lib/libc/string/wcswidth.c
39
w = 0;
lib/libc/string/wcswidth.c
44
w += q;
lib/libc/string/wcswidth.c
49
return w;
lib/libc/time/strftime.c
342
int w;
lib/libc/time/strftime.c
373
w = 1;
lib/libc/time/strftime.c
377
w = 1 + ((yday - bot) /
lib/libc/time/strftime.c
387
if ((w == 52 &&
lib/libc/time/strftime.c
389
(w == 1 &&
lib/libc/time/strftime.c
391
w = 53;
lib/libc/time/strftime.c
394
pt = _conv(w, "%02d",
lib/libc/time/wcsftime.c
349
int w;
lib/libc/time/wcsftime.c
377
w = 1;
lib/libc/time/wcsftime.c
381
w = 1 + ((yday - bot) / DAYSPERWEEK);
lib/libc/time/wcsftime.c
389
if ((w == 52 && t->tm_mon == TM_JANUARY) ||
lib/libc/time/wcsftime.c
390
(w == 1 && t->tm_mon == TM_DECEMBER))
lib/libc/time/wcsftime.c
391
w = 53;
lib/libc/time/wcsftime.c
393
pt = _conv(w, L"%02d", pt, ptlim);
lib/libcrypto/asn1/a_bitstr.c
156
int w, v, iv;
lib/libcrypto/asn1/a_bitstr.c
164
w = n / 8;
lib/libcrypto/asn1/a_bitstr.c
171
if (a->length < w + 1 || a->data == NULL) {
lib/libcrypto/asn1/a_bitstr.c
179
if ((c = recallocarray(a->data, a->length, w + 1, 1)) == NULL) {
lib/libcrypto/asn1/a_bitstr.c
184
a->length = w + 1;
lib/libcrypto/asn1/a_bitstr.c
187
a->data[w] = (a->data[w] & iv) | v;
lib/libcrypto/asn1/a_bitstr.c
196
int w, v;
lib/libcrypto/asn1/a_bitstr.c
203
w = n / 8;
lib/libcrypto/asn1/a_bitstr.c
206
if (a->length < w + 1 || a->data == NULL)
lib/libcrypto/asn1/a_bitstr.c
209
return (a->data[w] & v) != 0;
lib/libcrypto/bn/arch/aarch64/bn_arch.h
30
bn_clzw(BN_ULONG w)
lib/libcrypto/bn/arch/aarch64/bn_arch.h
36
: [w]"r"(w));
lib/libcrypto/bn/arch/amd64/bn_arch.c
141
bn_mulw_add_words(BN_ULONG *rd, const BN_ULONG *ad, int num, BN_ULONG w)
lib/libcrypto/bn/arch/amd64/bn_arch.c
143
return bignum_cmadd(num, (uint64_t *)rd, w, num, (const uint64_t *)ad);
lib/libcrypto/bn/arch/amd64/bn_arch.c
149
bn_mulw_words(BN_ULONG *rd, const BN_ULONG *ad, int num, BN_ULONG w)
lib/libcrypto/bn/arch/amd64/bn_arch.c
151
return bignum_cmul(num, (uint64_t *)rd, w, num, (const uint64_t *)ad);
lib/libcrypto/bn/arch/amd64/bn_arch.c
204
bn_word_clz(BN_ULONG w)
lib/libcrypto/bn/arch/amd64/bn_arch.c
206
return word_clz(w);
lib/libcrypto/bn/bn.h
271
int BN_abs_is_word(const BIGNUM *a, const BN_ULONG w);
lib/libcrypto/bn/bn.h
274
int BN_is_word(const BIGNUM *a, const BN_ULONG w);
lib/libcrypto/bn/bn.h
330
BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w);
lib/libcrypto/bn/bn.h
331
BN_ULONG BN_div_word(BIGNUM *a, BN_ULONG w);
lib/libcrypto/bn/bn.h
332
int BN_mul_word(BIGNUM *a, BN_ULONG w);
lib/libcrypto/bn/bn.h
333
int BN_add_word(BIGNUM *a, BN_ULONG w);
lib/libcrypto/bn/bn.h
334
int BN_sub_word(BIGNUM *a, BN_ULONG w);
lib/libcrypto/bn/bn.h
335
int BN_set_word(BIGNUM *a, BN_ULONG w);
lib/libcrypto/bn/bn_convert.c
115
w = bn->d[j++ % bn->dmax];
lib/libcrypto/bn/bn_convert.c
118
out[i] = (w >> b) & mask;
lib/libcrypto/bn/bn_convert.c
154
BN_ULONG w;
lib/libcrypto/bn/bn_convert.c
167
w = 0;
lib/libcrypto/bn/bn_convert.c
178
w |= (BN_ULONG)v << b;
lib/libcrypto/bn/bn_convert.c
183
bn->d[i++] = w;
lib/libcrypto/bn/bn_convert.c
184
w = 0;
lib/libcrypto/bn/bn_convert.c
310
BN_ULONG v, w;
lib/libcrypto/bn/bn_convert.c
328
if ((w = BN_div_word(tmp, BN_DEC_CONV)) == -1)
lib/libcrypto/bn/bn_convert.c
331
v = w % 10;
lib/libcrypto/bn/bn_convert.c
334
w /= 10;
lib/libcrypto/bn/bn_convert.c
387
BN_ULONG w;
lib/libcrypto/bn/bn_convert.c
425
w = 0;
lib/libcrypto/bn/bn_convert.c
436
w = w * 10 + v;
lib/libcrypto/bn/bn_convert.c
442
if (!BN_add_word(bn, w))
lib/libcrypto/bn/bn_convert.c
446
w = 0;
lib/libcrypto/bn/bn_convert.c
492
BN_ULONG v, w;
lib/libcrypto/bn/bn_convert.c
514
w = bn->d[i];
lib/libcrypto/bn/bn_convert.c
516
v = (w >> j) & 0xff;
lib/libcrypto/bn/bn_convert.c
584
BN_ULONG w;
lib/libcrypto/bn/bn_convert.c
624
w = 0;
lib/libcrypto/bn/bn_convert.c
640
w |= (BN_ULONG)v << b;
lib/libcrypto/bn/bn_convert.c
645
bn->d[i++] = w;
lib/libcrypto/bn/bn_convert.c
646
w = 0;
lib/libcrypto/bn/bn_convert.c
92
BN_ULONG w;
lib/libcrypto/bn/bn_exp.c
813
BN_ULONG w, next_w;
lib/libcrypto/bn/bn_exp.c
817
#define BN_MOD_MUL_WORD(r, w, m) \
lib/libcrypto/bn/bn_exp.c
818
(BN_mul_word(r, (w)) && \
lib/libcrypto/bn/bn_exp.c
829
#define BN_TO_MONTGOMERY_WORD(r, w, mont) \
lib/libcrypto/bn/bn_exp.c
830
(BN_set_word(r, (w)) && BN_to_montgomery(r, r, (mont), ctx))
lib/libcrypto/bn/bn_exp.c
880
w = a; /* bit 'bits-1' of 'p' is always set */
lib/libcrypto/bn/bn_exp.c
883
next_w = w * w;
lib/libcrypto/bn/bn_exp.c
884
if ((next_w / w) != w) /* overflow */
lib/libcrypto/bn/bn_exp.c
887
if (!BN_TO_MONTGOMERY_WORD(r, w, mont))
lib/libcrypto/bn/bn_exp.c
891
if (!BN_MOD_MUL_WORD(r, w, m))
lib/libcrypto/bn/bn_exp.c
896
w = next_w;
lib/libcrypto/bn/bn_exp.c
904
next_w = w * a;
lib/libcrypto/bn/bn_exp.c
905
if ((next_w / a) != w) /* overflow */
lib/libcrypto/bn/bn_exp.c
908
if (!BN_TO_MONTGOMERY_WORD(r, w, mont))
lib/libcrypto/bn/bn_exp.c
912
if (!BN_MOD_MUL_WORD(r, w, m))
lib/libcrypto/bn/bn_exp.c
917
w = next_w;
lib/libcrypto/bn/bn_exp.c
922
if (w != 1) {
lib/libcrypto/bn/bn_exp.c
924
if (!BN_TO_MONTGOMERY_WORD(r, w, mont))
lib/libcrypto/bn/bn_exp.c
928
if (!BN_MOD_MUL_WORD(r, w, m))
lib/libcrypto/bn/bn_internal.h
26
int bn_word_clz(BN_ULONG w);
lib/libcrypto/bn/bn_internal.h
56
bn_ct_ne_zero(BN_ULONG w)
lib/libcrypto/bn/bn_internal.h
58
return (w | ~(w - 1)) >> (BN_BITS2 - 1);
lib/libcrypto/bn/bn_internal.h
64
bn_ct_ne_zero_mask(BN_ULONG w)
lib/libcrypto/bn/bn_internal.h
66
return 0 - bn_ct_ne_zero(w);
lib/libcrypto/bn/bn_internal.h
72
bn_ct_eq_zero(BN_ULONG w)
lib/libcrypto/bn/bn_internal.h
74
return 1 - bn_ct_ne_zero(w);
lib/libcrypto/bn/bn_internal.h
80
bn_ct_eq_zero_mask(BN_ULONG w)
lib/libcrypto/bn/bn_internal.h
82
return 0 - bn_ct_eq_zero(w);
lib/libcrypto/bn/bn_internal.h
88
bn_clzw(BN_ULONG w)
lib/libcrypto/bn/bn_internal.h
90
return bn_word_clz(w);
lib/libcrypto/bn/bn_lib.c
170
BN_num_bits_word(BN_ULONG w)
lib/libcrypto/bn/bn_lib.c
172
return BN_BITS2 - bn_clzw(w);
lib/libcrypto/bn/bn_lib.c
361
BN_set_word(BIGNUM *a, BN_ULONG w)
lib/libcrypto/bn/bn_lib.c
366
a->d[0] = w;
lib/libcrypto/bn/bn_lib.c
367
a->top = (w ? 1 : 0);
lib/libcrypto/bn/bn_lib.c
475
int b, w;
lib/libcrypto/bn/bn_lib.c
480
w = n / BN_BITS2;
lib/libcrypto/bn/bn_lib.c
482
if (w >= a->top)
lib/libcrypto/bn/bn_lib.c
485
a->top = w;
lib/libcrypto/bn/bn_lib.c
487
a->top = w + 1;
lib/libcrypto/bn/bn_lib.c
488
a->d[w] &= ~(BN_MASK2 << b);
lib/libcrypto/bn/bn_lib.c
626
BN_abs_is_word(const BIGNUM *a, const BN_ULONG w)
lib/libcrypto/bn/bn_lib.c
628
return (a->top == 1 && a->d[0] == w) || (w == 0 && a->top == 0);
lib/libcrypto/bn/bn_lib.c
653
BN_is_word(const BIGNUM *a, const BN_ULONG w)
lib/libcrypto/bn/bn_lib.c
655
return BN_abs_is_word(a, w) && (w == 0 || !a->neg);
lib/libcrypto/bn/bn_local.h
275
BN_ULONG bn_mulw_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w);
lib/libcrypto/bn/bn_local.h
276
BN_ULONG bn_mulw_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w);
lib/libcrypto/bn/bn_mont.c
436
BN_ULONG *tp, BN_ULONG w, BN_ULONG *carry_a, BN_ULONG *carry_n, int n_len)
lib/libcrypto/bn/bn_mont.c
446
bn_qwmulw_addqw_addw(np[3], np[2], np[1], np[0], w,
lib/libcrypto/bn/bn_mont.c
456
bn_mulw_addw_addw(np[0], w, x0, *carry_n, carry_n, &tp[0]);
lib/libcrypto/bn/bn_mont.c
473
BN_ULONG a0, b, carry_a, carry_n, carry, mask, w;
lib/libcrypto/bn/bn_mont.c
487
w = (a0 * b + tp[0]) * n0;
lib/libcrypto/bn/bn_mont.c
489
bn_montgomery_multiply_word(ap, b, np, tp, w, &carry_a,
lib/libcrypto/bn/bn_mul.c
265
bn_mulw_words(BN_ULONG *r, const BN_ULONG *a, int num, BN_ULONG w)
lib/libcrypto/bn/bn_mul.c
274
bn_qwmulw_addw(a[3], a[2], a[1], a[0], w, carry, &carry,
lib/libcrypto/bn/bn_mul.c
281
bn_mulw_addw(a[0], w, carry, &carry, &r[0]);
lib/libcrypto/bn/bn_mul.c
297
bn_mulw_add_words(BN_ULONG *r, const BN_ULONG *a, int num, BN_ULONG w)
lib/libcrypto/bn/bn_mul.c
306
bn_qwmulw_addqw_addw(a[3], a[2], a[1], a[0], w,
lib/libcrypto/bn/bn_mul.c
314
bn_mulw_addw_addw(a[0], w, r[0], carry, &carry, &r[0]);
lib/libcrypto/bn/bn_primitives.c
27
bn_word_clz(BN_ULONG w)
lib/libcrypto/bn/bn_primitives.c
36
mask = bn_ct_ne_zero_mask(w >> bits);
lib/libcrypto/bn/bn_primitives.c
40
bits -= bn_ct_eq_zero(w);
lib/libcrypto/bn/bn_primitives.c
52
BN_ULONG mask, w;
lib/libcrypto/bn/bn_primitives.c
56
w = bn->d[i];
lib/libcrypto/bn/bn_primitives.c
57
mask = bn_ct_ne_zero_mask(w);
lib/libcrypto/bn/bn_primitives.c
59
x = (w & mask) | (x & ~mask);
lib/libcrypto/bn/bn_sqr.c
251
BN_ULONG w;
lib/libcrypto/bn/bn_sqr.c
259
w = ap[0];
lib/libcrypto/bn/bn_sqr.c
270
rp[n] = bn_mulw_words(rp, ap, n, w);
lib/libcrypto/bn/bn_sqr.c
277
w = ap[0];
lib/libcrypto/bn/bn_sqr.c
280
rp[n] = bn_mulw_add_words(rp, ap, n, w);
lib/libcrypto/bn/bn_word.c
106
BN_div_word(BIGNUM *a, BN_ULONG w)
lib/libcrypto/bn/bn_word.c
111
w &= BN_MASK2;
lib/libcrypto/bn/bn_word.c
113
if (!w)
lib/libcrypto/bn/bn_word.c
120
j = BN_BITS2 - BN_num_bits_word(w);
lib/libcrypto/bn/bn_word.c
121
w <<= j;
lib/libcrypto/bn/bn_word.c
129
bn_div_rem_words(ret, l, w, &d, &ret);
lib/libcrypto/bn/bn_word.c
144
BN_add_word(BIGNUM *a, BN_ULONG w)
lib/libcrypto/bn/bn_word.c
149
w &= BN_MASK2;
lib/libcrypto/bn/bn_word.c
152
if (!w)
lib/libcrypto/bn/bn_word.c
156
return BN_set_word(a, w);
lib/libcrypto/bn/bn_word.c
160
i = BN_sub_word(a, w);
lib/libcrypto/bn/bn_word.c
164
for (i = 0; w != 0 && i < a->top; i++) {
lib/libcrypto/bn/bn_word.c
165
a->d[i] = l = (a->d[i] + w) & BN_MASK2;
lib/libcrypto/bn/bn_word.c
166
w = (w > l) ? 1 : 0;
lib/libcrypto/bn/bn_word.c
168
if (w && i == a->top) {
lib/libcrypto/bn/bn_word.c
172
a->d[i] = w;
lib/libcrypto/bn/bn_word.c
179
BN_sub_word(BIGNUM *a, BN_ULONG w)
lib/libcrypto/bn/bn_word.c
183
w &= BN_MASK2;
lib/libcrypto/bn/bn_word.c
186
if (!w)
lib/libcrypto/bn/bn_word.c
190
i = BN_set_word(a, w);
lib/libcrypto/bn/bn_word.c
198
i = BN_add_word(a, w);
lib/libcrypto/bn/bn_word.c
203
if ((a->top == 1) && (a->d[0] < w)) {
lib/libcrypto/bn/bn_word.c
204
a->d[0] = w - a->d[0];
lib/libcrypto/bn/bn_word.c
210
if (a->d[i] >= w) {
lib/libcrypto/bn/bn_word.c
211
a->d[i] -= w;
lib/libcrypto/bn/bn_word.c
214
a->d[i] = (a->d[i] - w) & BN_MASK2;
lib/libcrypto/bn/bn_word.c
216
w = 1;
lib/libcrypto/bn/bn_word.c
226
BN_mul_word(BIGNUM *a, BN_ULONG w)
lib/libcrypto/bn/bn_word.c
230
w &= BN_MASK2;
lib/libcrypto/bn/bn_word.c
232
if (w == 0)
lib/libcrypto/bn/bn_word.c
235
ll = bn_mulw_words(a->d, a->d, a->top, w);
lib/libcrypto/bn/bn_word.c
64
BN_mod_word(const BIGNUM *a, BN_ULONG w)
lib/libcrypto/bn/bn_word.c
73
if (w == 0)
lib/libcrypto/bn/bn_word.c
79
if (w > ((BN_ULONG)1 << BN_BITS4)) {
lib/libcrypto/bn/bn_word.c
84
ret = BN_div_word(tmp, w);
lib/libcrypto/bn/bn_word.c
90
w &= BN_MASK2;
lib/libcrypto/bn/bn_word.c
94
BN_MASK2l)) % w;
lib/libcrypto/bn/bn_word.c
95
ret = ((ret << BN_BITS4) | (a->d[i] & BN_MASK2l)) % w;
lib/libcrypto/bn/bn_word.c
98
a->d[i]) % (BN_ULLONG)w);
lib/libcrypto/bn/s2n_bignum.h
304
extern uint64_t bignum_emontredc (uint64_t k, uint64_t *z, const uint64_t *m, uint64_t w);
lib/libcrypto/bn/s2n_bignum.h
308
extern uint64_t bignum_emontredc_8n (uint64_t k, uint64_t *z, const uint64_t *m, uint64_t w);
lib/libcrypto/bn/s2n_bignum.h
312
uint64_t w, uint64_t *m_precalc);
lib/libcrypto/cast/cast_local.h
180
CAST_LONG u,v,w; \
lib/libcrypto/cast/cast_local.h
181
w=(key[n*2] OP1 R)&0xffffffffL; \
lib/libcrypto/cast/cast_local.h
183
w=ROTL(w,i); \
lib/libcrypto/cast/cast_local.h
184
u=w>>C_2; \
lib/libcrypto/cast/cast_local.h
185
v=w<<C_3; \
lib/libcrypto/cast/cast_local.h
189
u=w>>C_0; \
lib/libcrypto/cast/cast_local.h
191
v=w>>C_1; \
lib/libcrypto/chacha/chacha-merged.c
62
#define XOR(v,w) ((v) ^ (w))
lib/libcrypto/chacha/chacha-merged.c
63
#define PLUS(v,w) (U32V((v) + (w)))
lib/libcrypto/ec/ec_field.c
118
t[i] = fe->w[i];
lib/libcrypto/ec/ec_field.c
120
bn_montgomery_reduce_words(bn->d, t, fm->m.w, fm->minv0, fm->n);
lib/libcrypto/ec/ec_field.c
144
r->w[i] = (a->w[i] & mask) | (b->w[i] & ~mask);
lib/libcrypto/ec/ec_field.c
155
v |= a->w[i] ^ b->w[i];
lib/libcrypto/ec/ec_field.c
167
v |= fe->w[i];
lib/libcrypto/ec/ec_field.c
176
bn_mod_add_words(r->w, a->w, b->w, m->m.w, m->n);
lib/libcrypto/ec/ec_field.c
183
bn_mod_sub_words(r->w, a->w, b->w, m->m.w, m->n);
lib/libcrypto/ec/ec_field.c
192
bn_mod_mul_words(r->w, a->w, b->w, m->m.w, t, m->minv0, m->n);
lib/libcrypto/ec/ec_field.c
201
bn_mod_sqr_words(r->w, a->w, m->m.w, t, m->minv0, m->n);
lib/libcrypto/ec/ec_field.c
44
fm->m.w[i] = bn->d[i];
lib/libcrypto/ec/ec_field.c
53
fm->rr.w[i] = mctx->RR.d[i];
lib/libcrypto/ec/ec_field.c
91
memset(fe->w, 0, sizeof(fe->w));
lib/libcrypto/ec/ec_field.c
94
fe->w[i] = tmp->d[i];
lib/libcrypto/ec/ec_field.c
96
bn_mod_mul_words(fe->w, fe->w, fm->rr.w, fm->m.w, t, fm->minv0, fm->n);
lib/libcrypto/ec/ec_internal.h
30
BN_ULONG w[EC_FIELD_ELEMENT_MAX_WORDS];
lib/libcrypto/ec/ec_lib.c
1015
BIGNUM *p, *a, *b, *w, *x, *y;
lib/libcrypto/ec/ec_lib.c
1034
if ((w = BN_CTX_get(ctx)) == NULL)
lib/libcrypto/ec/ec_lib.c
1061
if (!BN_mod_lshift1_quick(w, x, p))
lib/libcrypto/ec/ec_lib.c
1063
if (!BN_mod_add_quick(w, w, x, p))
lib/libcrypto/ec/ec_lib.c
1065
if (!BN_mod_sub_quick(y, y, w, p))
lib/libcrypto/ec/ec_lib.c
1068
if (!BN_mod_mul(w, a, x, p, ctx))
lib/libcrypto/ec/ec_lib.c
1070
if (!BN_mod_add_quick(y, y, w, p))
lib/libcrypto/ec/ecp_hp_methods.c
116
point->fe_y.w[0] = 1;
lib/libcrypto/ec/ecp_hp_methods.c
611
point->fe_y.w[i] = (point->fe_y.w[i] & ~mask) | (y.w[i] & mask);
lib/libcrypto/ec/ecp_methods.c
1033
#define EC_POINT_CSWAP(c, a, b, w, t) do { \
lib/libcrypto/ec/ecp_methods.c
1034
if (!BN_swap_ct(c, (a)->X, (b)->X, w) || \
lib/libcrypto/ec/ecp_methods.c
1035
!BN_swap_ct(c, (a)->Y, (b)->Y, w) || \
lib/libcrypto/ec/ecp_methods.c
1036
!BN_swap_ct(c, (a)->Z, (b)->Z, w)) \
lib/libcrypto/pem/pem.h
358
int PEM_def_callback(char *buf, int num, int w, void *key);
lib/libcrypto/pem/pem_lib.c
111
i = EVP_read_pw_string_min(buf, MIN_LENGTH, num, prompt, w);
lib/libcrypto/pem/pem_lib.c
89
PEM_def_callback(char *buf, int num, int w, void *key)
lib/libcrypto/ripemd/ripemd.c
102
#define RIP1(a,b,c,d,e,w,s) { \
lib/libcrypto/ripemd/ripemd.c
103
a+=F1(b,c,d)+w; \
lib/libcrypto/ripemd/ripemd.c
107
#define RIP2(a,b,c,d,e,w,s,K) { \
lib/libcrypto/ripemd/ripemd.c
108
a+=F2(b,c,d)+w+K; \
lib/libcrypto/ripemd/ripemd.c
112
#define RIP3(a,b,c,d,e,w,s,K) { \
lib/libcrypto/ripemd/ripemd.c
113
a+=F3(b,c,d)+w+K; \
lib/libcrypto/ripemd/ripemd.c
117
#define RIP4(a,b,c,d,e,w,s,K) { \
lib/libcrypto/ripemd/ripemd.c
118
a+=F4(b,c,d)+w+K; \
lib/libcrypto/ripemd/ripemd.c
122
#define RIP5(a,b,c,d,e,w,s,K) { \
lib/libcrypto/ripemd/ripemd.c
123
a+=F5(b,c,d)+w+K; \
lib/libcurses/base/lib_box.c
60
#define RENDER_WITH_DEFAULT(ch,def) w ## ch = _my_render(win, (ch == 0) ? def : ch)
lib/libcurses/base/lib_box.c
62
#define RENDER_WITH_DEFAULT(ch,def) w ## ch = _nc_render(win, (ch == 0) ? def : ch)
lib/libcurses/base/lib_newwin.c
247
subwin(WINDOW *w, int l, int c, int y, int x)
lib/libcurses/base/lib_newwin.c
251
T((T_CALLED("subwin(%p, %d, %d, %d, %d)"), (void *) w, l, c, y, x));
lib/libcurses/base/lib_newwin.c
252
if (w != 0) {
lib/libcurses/base/lib_newwin.c
253
T(("parent has begy = %ld, begx = %ld", (long) w->_begy, (long) w->_begx));
lib/libcurses/base/lib_newwin.c
255
result = derwin(w, l, c, y - w->_begy, x - w->_begx);
lib/libcurses/base/lib_set_term.c
723
WINDOW *w;
lib/libcurses/base/lib_set_term.c
731
w = NCURSES_SP_NAME(newwin) (NCURSES_SP_ARGx
lib/libcurses/base/lib_set_term.c
737
if (w) {
lib/libcurses/base/lib_set_term.c
738
rop->win = w;
lib/libcurses/base/lib_set_term.c
739
rop->hook(w, scolumns);
lib/libcurses/curses.h
1186
#define wgetstr(w, s) wgetnstr(w, s, -1)
lib/libcurses/curses.h
1247
#define winstr(w, s) winnstr(w, s, -1)
lib/libcurses/curses.h
1248
#define winchstr(w, s) winchnstr(w, s, -1)
lib/libcurses/curses.h
1249
#define winsstr(w, s) winsnstr(w, s, -1)
lib/libcurses/curses.h
1456
#define is_linetouched(w,l) ((!(w) || ((l) > getmaxy(w)) || ((l) < 0)) ? ERR : (is_linetouched)((w),(l)))
lib/libcurses/curses.h
1863
#define box_set(w,v,h) wborder_set((w),(v),(v),(h),(h),0,0,0,0)
lib/libcurses/curses.h
1881
#define wget_wstr(w,t) wgetn_wstr((w),(t),-1)
lib/libcurses/curses.h
1882
#define win_wchstr(w,c) win_wchnstr((w),(c),-1)
lib/libcurses/curses.h
1883
#define wins_wstr(w,t) wins_nwstr((w),(t),-1)
lib/libcurses/curses.priv.h
1264
#define WINDOW_EXT(w,m) (((WINDOWLIST *)((void *)((char *)(w) - offsetof(WINDOWLIST, win))))->m)
lib/libcurses/curses.priv.h
1516
#define LEGALYX(w, y, x) \
lib/libcurses/curses.priv.h
1517
((w) != 0 && \
lib/libcurses/curses.priv.h
1518
((x) >= 0 && (x) <= (w)->_maxx && \
lib/libcurses/curses.priv.h
1519
(y) >= 0 && (y) <= (w)->_maxy))
lib/libcurses/curses.priv.h
531
#define GET_WINDOW_PAIR(w) GetPair2((w)->_color, (w)->_attrs)
lib/libcurses/curses.priv.h
532
#define SET_WINDOW_PAIR(w,p) (w)->_color = (p)
lib/libcurses/curses.priv.h
550
#define GET_WINDOW_PAIR(w) PairNumber(WINDOW_ATTRS(w))
lib/libcurses/curses.priv.h
551
#define SET_WINDOW_PAIR(w,p) WINDOW_ATTRS(w) &= ALL_BUT_COLOR, \
lib/libcurses/curses.priv.h
552
WINDOW_ATTRS(w) |= ColorPair(p)
lib/libcurses/curses.priv.h
572
#define WINDOW_ATTRS(w) ((w)->_attrs)
lib/libcurses/curses.priv.h
611
#define IS_SUBWIN(w) ((w)->_flags & _SUBWIN)
lib/libcurses/curses.priv.h
612
#define IS_PAD(w) ((w)->_flags & _ISPAD)
lib/libcurses/curses.priv.h
613
#define IS_WRAPPED(w) ((w)->_flags & _WRAPPED)
lib/libcurses/wcwidth.h
222
int w, width = 0;
lib/libcurses/wcwidth.h
225
if ((w = mk_wcwidth(*pwcs)) < 0)
lib/libcurses/wcwidth.h
228
width += w;
lib/libcurses/wcwidth.h
313
int w, width = 0;
lib/libcurses/wcwidth.h
316
if ((w = mk_wcwidth_cjk(*pwcs)) < 0)
lib/libcurses/wcwidth.h
319
width += w;
lib/libcurses/widechar/lib_box_set.c
72
#define RENDER_WITH_DEFAULT(ch,def) w ##ch = _nc_render(win, (ch == 0) ? *(const ARG_CH_T)def : *ch)
lib/libedit/chartype.c
258
int w;
lib/libedit/chartype.c
267
w = wcwidth(c);
lib/libedit/chartype.c
268
return (w == -1 ? 0 : w);
lib/libedit/refresh.c
1018
w = wcwidth(*cp);
lib/libedit/refresh.c
1019
if (w > 1 && h + w > th) { /* won't fit on line */
lib/libedit/refresh.c
1034
if (cp < el->el_line.lastchar && (w = wcwidth(*cp)) > 1)
lib/libedit/refresh.c
1035
if (h + w > th) {
lib/libedit/refresh.c
1054
int w;
lib/libedit/refresh.c
1056
w = wcwidth(c);
lib/libedit/refresh.c
1057
while (w > 1 && el->el_cursor.h + w > el->el_terminal.t_size.h)
lib/libedit/refresh.c
1062
while (--w > 0)
lib/libedit/refresh.c
159
int i, w = wcwidth(c);
lib/libedit/refresh.c
161
if (w == -1)
lib/libedit/refresh.c
162
w = 0;
lib/libedit/refresh.c
164
while (shift && (el->el_refresh.r_cursor.h + w > el->el_terminal.t_size.h))
lib/libedit/refresh.c
170
i = w;
lib/libedit/refresh.c
178
el->el_refresh.r_cursor.h += w; /* advance to next place */
lib/libedit/refresh.c
250
int w = wcwidth(*cp);
lib/libedit/refresh.c
255
if (w > 1 && el->el_refresh.r_cursor.h + w >
lib/libedit/refresh.c
991
int h, v, th, w;
lib/libform/form.h
151
WINDOW * w; /* window for current field */
lib/libform/frm_data.c
108
cell = (FIELD_CELL)winch(w);
lib/libform/frm_data.c
150
assert(form->w);
lib/libform/frm_data.c
162
wmove(form->w, 0, pos);
lib/libform/frm_data.c
163
if (Only_Padding(form->w, check_len, field->pad))
lib/libform/frm_data.c
178
wmove(form->w, pos, 0);
lib/libform/frm_data.c
180
if (!Only_Padding(form->w, field->cols, field->pad))
lib/libform/frm_data.c
189
wmove(form->w, form->currow, form->curcol);
lib/libform/frm_data.c
86
Only_Padding(WINDOW *w, int len, int pad)
lib/libform/frm_data.c
92
getyx(w, y, x);
lib/libform/frm_data.c
95
if (wmove(w, y, x + j) != ERR)
lib/libform/frm_data.c
98
if (win_wch(w, &cell) != ERR)
lib/libform/frm_driver.c
104
#define myADDNSTR(w, s, n) wide_waddnstr(w, s, n)
lib/libform/frm_driver.c
105
#define myINSNSTR(w, s, n) wide_winsnstr(w, s, n)
lib/libform/frm_driver.c
106
#define myINNSTR(w, s, n) wide_winnstr(w, s, n)
lib/libform/frm_driver.c
107
#define myWCWIDTH(w, y, x) cell_width(w, y, x)
lib/libform/frm_driver.c
109
#define myADDNSTR(w, s, n) waddnstr(w, s, n)
lib/libform/frm_driver.c
110
#define myINSNSTR(w, s, n) winsnstr(w, s, n)
lib/libform/frm_driver.c
111
#define myINNSTR(w, s, n) winnstr(w, s, n)
lib/libform/frm_driver.c
112
#define myWCWIDTH(w, y, x) 1
lib/libform/frm_driver.c
1213
werase(form->w);
lib/libform/frm_driver.c
1216
Undo_Justification(field, form->w);
lib/libform/frm_driver.c
1218
Buffer_To_Window(field, form->w);
lib/libform/frm_driver.c
1297
Set_Field_Window_Attributes(field, form->w);
lib/libform/frm_driver.c
1298
werase(form->w);
lib/libform/frm_driver.c
1299
wmove(form->w, form->currow, form->curcol);
lib/libform/frm_driver.c
1304
Undo_Justification(field, form->w);
lib/libform/frm_driver.c
1306
Buffer_To_Window(field, form->w);
lib/libform/frm_driver.c
1312
copywin(form->w, formwin,
lib/libform/frm_driver.c
1318
Buffer_To_Window(field, form->w);
lib/libform/frm_driver.c
1459
werase(form->w);
lib/libform/frm_driver.c
1460
Perform_Justification(field, form->w);
lib/libform/frm_driver.c
1462
(form->w->_parent == 0))
lib/libform/frm_driver.c
1464
copywin(form->w,
lib/libform/frm_driver.c
1477
wsyncup(form->w);
lib/libform/frm_driver.c
1482
delwin(form->w);
lib/libform/frm_driver.c
1483
form->w = (WINDOW *)0;
lib/libform/frm_driver.c
1521
if (field && (form->w) &&
lib/libform/frm_driver.c
1539
if (form->w)
lib/libform/frm_driver.c
1540
delwin(form->w);
lib/libform/frm_driver.c
1541
form->w = new_window;
lib/libform/frm_driver.c
1544
Set_Field_Window_Attributes(field, form->w);
lib/libform/frm_driver.c
1548
werase(form->w);
lib/libform/frm_driver.c
1549
Buffer_To_Window(field, form->w);
lib/libform/frm_driver.c
1555
werase(form->w);
lib/libform/frm_driver.c
1556
Undo_Justification(field, form->w);
lib/libform/frm_driver.c
1557
wsyncup(form->w);
lib/libform/frm_driver.c
1561
untouchwin(form->w);
lib/libform/frm_driver.c
1586
int step = myWCWIDTH(form->w, form->currow, form->curcol);
lib/libform/frm_driver.c
1627
int amount = myWCWIDTH(form->w, form->currow, form->curcol - 1);
lib/libform/frm_driver.c
1900
int amount = myWCWIDTH(form->w, form->currow, form->curcol - 1);
lib/libform/frm_driver.c
1925
int amount = myWCWIDTH(form->w, form->currow, form->curcol);
lib/libform/frm_driver.c
221
if (form && form->w)
lib/libform/frm_driver.c
225
getyx(form->w, y, x);
lib/libform/frm_driver.c
2392
wmove(form->w, form->currow, form->current->dcols - 1);
lib/libform/frm_driver.c
2393
last_char_in_line = (int)(winch(form->w) & A_CHARTEXT);
lib/libform/frm_driver.c
2394
wmove(form->w, form->currow, form->curcol);
lib/libform/frm_driver.c
2434
wmove(form->w, row, 0);
lib/libform/frm_driver.c
2435
myINSNSTR(form->w, txt, len);
lib/libform/frm_driver.c
2436
wmove(form->w, row, len);
lib/libform/frm_driver.c
2437
myINSNSTR(form->w, &myBLANK, 1);
lib/libform/frm_driver.c
247
wide_waddnstr(WINDOW *w, const cchar_t *s, int n)
lib/libform/frm_driver.c
2470
wmove(form->w, row, datalen);
lib/libform/frm_driver.c
2471
wclrtoeol(form->w);
lib/libform/frm_driver.c
2472
wmove(form->w, row, 0);
lib/libform/frm_driver.c
2473
myINSNSTR(form->w, txt, len);
lib/libform/frm_driver.c
2474
wmove(form->w, row, len);
lib/libform/frm_driver.c
2475
myINSNSTR(form->w, &myBLANK, 1);
lib/libform/frm_driver.c
253
if ((rc = wadd_wch(w, s)) != OK)
lib/libform/frm_driver.c
2534
wmove(form->w, form->currow, chars_to_remain_on_line);
lib/libform/frm_driver.c
2535
wclrtoeol(form->w);
lib/libform/frm_driver.c
2648
wmove(form->w, form->currow, form->curcol);
lib/libform/frm_driver.c
2649
wclrtoeol(form->w);
lib/libform/frm_driver.c
266
wide_winsnstr(WINDOW *w, const cchar_t *s, int n)
lib/libform/frm_driver.c
2666
wmove(form->w, form->currow, form->curcol);
lib/libform/frm_driver.c
2667
wclrtoeol(form->w);
lib/libform/frm_driver.c
2695
wmove(form->w, form->currow, form->curcol);
lib/libform/frm_driver.c
2696
wclrtoeol(form->w);
lib/libform/frm_driver.c
2699
wmove(form->w, form->currow, form->curcol);
lib/libform/frm_driver.c
2700
winsertln(form->w);
lib/libform/frm_driver.c
2701
myADDNSTR(form->w, bp, (int)(t - bp));
lib/libform/frm_driver.c
2736
winsch(form->w, (chtype)C_BLANK);
lib/libform/frm_driver.c
274
getyx(w, y, x);
lib/libform/frm_driver.c
275
if ((code = wins_wch(w, s++)) != OK)
lib/libform/frm_driver.c
277
if ((code = wmove(w, y, x + 1)) != OK)
lib/libform/frm_driver.c
2774
winsertln(form->w);
lib/libform/frm_driver.c
2837
wmove(form->w, form->currow, form->curcol);
lib/libform/frm_driver.c
2838
wdeleteln(form->w);
lib/libform/frm_driver.c
2862
wmove(form->w, form->currow, form->curcol);
lib/libform/frm_driver.c
2863
myADDNSTR(form->w, this_line, (int)(this_end - this_line));
lib/libform/frm_driver.c
2886
wdeleteln(form->w);
lib/libform/frm_driver.c
289
wide_winnstr(WINDOW *w, cchar_t *s, int n)
lib/libform/frm_driver.c
2916
wmove(form->w, form->currow, form->curcol);
lib/libform/frm_driver.c
2917
wclrtoeol(form->w);
lib/libform/frm_driver.c
2926
myADDNSTR(form->w, s, (int)(s - After_End_Of_Data(s, (int)(ep - s))));
lib/libform/frm_driver.c
293
win_wchnstr(w, s, n);
lib/libform/frm_driver.c
2943
wmove(form->w, form->currow, form->curcol);
lib/libform/frm_driver.c
2944
wclrtoeol(form->w);
lib/libform/frm_driver.c
2960
wmove(form->w, form->currow, form->curcol);
lib/libform/frm_driver.c
2961
wclrtobot(form->w);
lib/libform/frm_driver.c
2978
werase(form->w);
lib/libform/frm_driver.c
362
int cells = cell_width(form->w, form->currow, form->curcol);
lib/libform/frm_driver.c
364
form->curcol = cell_base(form->w, form->currow, form->curcol);
lib/libform/frm_driver.c
365
wmove(form->w, form->currow, form->curcol);
lib/libform/frm_driver.c
368
wdelch(form->w);
lib/libform/frm_driver.c
374
wmove((form)->w, (form)->currow, (form)->curcol), \
lib/libform/frm_driver.c
375
wdelch((form)->w)
lib/libform/frm_driver.c
4092
werase(form->w);
lib/libform/frm_driver.c
4096
wadd_wch(form->w, &temp_ch);
lib/libform/frm_driver.c
4110
wins_wch(form->w, &temp_ch);
lib/libform/frm_driver.c
4133
if (WINDOW_EXT(form->w, addch_used) == 0)
lib/libform/frm_driver.c
4173
werase(form->w);
lib/libform/frm_driver.c
4177
waddch(form->w, (chtype)c);
lib/libform/frm_driver.c
4191
winsch(form->w, (chtype)c);
lib/libform/frm_driver.c
4221
if (WINDOW_EXT(form->w, addch_used) == 0)
lib/libform/frm_driver.c
565
win = form->w;
lib/libform/frm_driver.c
634
wmove(form->w, form->currow, form->curcol);
lib/libform/frm_driver.c
741
if (form->w)
lib/libform/frm_driver.c
742
delwin(form->w);
lib/libform/frm_driver.c
743
form->w = new_window;
lib/libform/frm_driver.c
744
Set_Field_Window_Attributes(field, form->w);
lib/libform/frm_driver.c
745
werase(form->w);
lib/libform/frm_driver.c
746
Buffer_To_Window(field, form->w);
lib/libform/frm_driver.c
747
untouchwin(form->w);
lib/libform/frm_driver.c
748
wmove(form->w, form->currow, form->curcol);
lib/libform/frm_driver.c
840
if (!form->w || !form->current)
lib/libform/frm_driver.c
846
wmove(form->w, form->currow, form->curcol);
lib/libform/frm_driver.c
857
wcursyncup(form->w);
lib/libform/frm_driver.c
885
if (!form->w || !form->current)
lib/libform/frm_driver.c
909
copywin(form->w,
lib/libform/frm_driver.c
952
if (is_linetouched(form->w, first_modified_row))
lib/libform/frm_driver.c
959
if (!is_linetouched(form->w, first_unmodified_row))
lib/libform/frm_driver.c
971
copywin(form->w,
lib/libform/frm_driver.c
990
wsyncup(form->w);
lib/libform/frm_driver.c
992
untouchwin(form->w);
lib/libform/frm_post.c
120
delwin(form->w);
lib/libform/frm_post.c
121
form->w = (WINDOW *)0;
lib/libform/fty_alnum.c
86
int w = va_arg(*ap, int);
lib/libform/fty_alnum.c
88
return Generic_This_Type((void *)&w);
lib/libform/fty_alpha.c
86
int w = va_arg(*ap, int);
lib/libform/fty_alpha.c
88
return Generic_This_Type((void *)&w);
lib/libform/fty_generic.c
289
res = form->w;
lib/libm/src/e_acos.c
61
double z,p,q,r,w,s,c,df;
lib/libm/src/e_acos.c
87
w = r*s-pio2_lo;
lib/libm/src/e_acos.c
88
return pi - 2.0*(s+w);
lib/libm/src/e_acos.c
98
w = r*s+c;
lib/libm/src/e_acos.c
99
return 2.0*(df+w);
lib/libm/src/e_acosf.c
38
float z,p,q,r,w,s,c,df;
lib/libm/src/e_acosf.c
61
w = r*s-pio2_lo;
lib/libm/src/e_acosf.c
62
return pi - (float)2.0*(s+w);
lib/libm/src/e_acosf.c
74
w = r*s+c;
lib/libm/src/e_acosf.c
75
return (float)2.0*(df+w);
lib/libm/src/e_acosl.c
101
w = r*s+c;
lib/libm/src/e_acosl.c
102
return 2.0*(df+w);
lib/libm/src/e_acosl.c
54
long double z,p,q,r,w,s,c,df;
lib/libm/src/e_acosl.c
86
w = r*s-pio2_lo;
lib/libm/src/e_acosl.c
87
return pi - 2.0*(s+w);
lib/libm/src/e_asin.c
100
w = s;
lib/libm/src/e_asin.c
101
SET_LOW_WORD(w,0);
lib/libm/src/e_asin.c
102
c = (t-w*w)/(s+w);
lib/libm/src/e_asin.c
105
q = pio4_hi-2.0*w;
lib/libm/src/e_asin.c
69
double t,w,p,q,c,r,s;
lib/libm/src/e_asin.c
87
w = p/q;
lib/libm/src/e_asin.c
88
return x+x*w;
lib/libm/src/e_asin.c
91
w = one-fabs(x);
lib/libm/src/e_asin.c
92
t = w*0.5;
lib/libm/src/e_asin.c
97
w = p/q;
lib/libm/src/e_asin.c
98
t = pio2_hi-(2.0*(s+s*w)-pio2_lo);
lib/libm/src/e_asinf.c
40
float t,w,p,q,c,r,s;
lib/libm/src/e_asinf.c
56
w = p/q;
lib/libm/src/e_asinf.c
57
return x+x*w;
lib/libm/src/e_asinf.c
60
w = one-fabsf(x);
lib/libm/src/e_asinf.c
61
t = w*(float)0.5;
lib/libm/src/e_asinf.c
66
w = p/q;
lib/libm/src/e_asinf.c
67
t = pio2_hi-((float)2.0*(s+s*w)-pio2_lo);
lib/libm/src/e_asinf.c
70
w = s;
lib/libm/src/e_asinf.c
71
GET_FLOAT_WORD(iw,w);
lib/libm/src/e_asinf.c
72
SET_FLOAT_WORD(w,iw&0xfffff000);
lib/libm/src/e_asinf.c
73
c = (t-w*w)/(s+w);
lib/libm/src/e_asinf.c
76
q = pio4_hi-(float)2.0*w;
lib/libm/src/e_asinl.c
44
long double t=0.0,w,p,q,c,r,s;
lib/libm/src/e_asinl.c
68
w = p/q;
lib/libm/src/e_asinl.c
69
return x+x*w;
lib/libm/src/e_asinl.c
72
w = one-fabsl(x);
lib/libm/src/e_asinl.c
73
t = w*0.5;
lib/libm/src/e_asinl.c
84
w = p/q;
lib/libm/src/e_asinl.c
85
t = pio2_hi-(2.0*(s+s*w)-pio2_lo);
lib/libm/src/e_asinl.c
92
w = u.e;
lib/libm/src/e_asinl.c
93
c = (t-w*w)/(s+w);
lib/libm/src/e_asinl.c
96
q = pio4_hi-2.0*w;
lib/libm/src/e_cosh.c
44
double t,w;
lib/libm/src/e_cosh.c
58
w = one+t;
lib/libm/src/e_cosh.c
59
if (ix<0x3c800000) return w; /* cosh(tiny) = 1 */
lib/libm/src/e_cosh.c
60
return one+(t*t)/(w+w);
lib/libm/src/e_cosh.c
76
w = exp(half*fabs(x));
lib/libm/src/e_cosh.c
77
t = half*w;
lib/libm/src/e_cosh.c
78
return t*w;
lib/libm/src/e_coshf.c
25
float t,w;
lib/libm/src/e_coshf.c
37
w = one+t;
lib/libm/src/e_coshf.c
38
if (ix<0x24000000) return w; /* cosh(tiny) = 1 */
lib/libm/src/e_coshf.c
39
return one+(t*t)/(w+w);
lib/libm/src/e_coshf.c
53
w = expf(half*fabsf(x));
lib/libm/src/e_coshf.c
54
t = half*w;
lib/libm/src/e_coshf.c
55
return t*w;
lib/libm/src/e_hypot.c
100
if (w>b) {
lib/libm/src/e_hypot.c
104
w = sqrt(t1*t1-(b*(-b)-t2*(a+t1)));
lib/libm/src/e_hypot.c
113
w = sqrt(t1*yy1-(w*(-w)-(t1*y2+t2*b)));
lib/libm/src/e_hypot.c
120
return t1*w;
lib/libm/src/e_hypot.c
121
} else return w;
lib/libm/src/e_hypot.c
53
double a=x,b=y,t1,t2,yy1,y2,w;
lib/libm/src/e_hypot.c
68
w = a+b; /* for sNaN */
lib/libm/src/e_hypot.c
70
if(((ha&0xfffff)|low)==0) w = a;
lib/libm/src/e_hypot.c
72
if(((hb^0x7ff00000)|low)==0) w = b;
lib/libm/src/e_hypot.c
73
return w;
lib/libm/src/e_hypot.c
99
w = a-b;
lib/libm/src/e_hypotf.c
22
float a=x,b=y,t1,t2,yy1,y2,w;
lib/libm/src/e_hypotf.c
36
w = a+b; /* for sNaN */
lib/libm/src/e_hypotf.c
37
if(ha == 0x7f800000) w = a;
lib/libm/src/e_hypotf.c
38
if(hb == 0x7f800000) w = b;
lib/libm/src/e_hypotf.c
39
return w;
lib/libm/src/e_hypotf.c
62
w = a-b;
lib/libm/src/e_hypotf.c
63
if (w>b) {
lib/libm/src/e_hypotf.c
66
w = sqrtf(t1*t1-(b*(-b)-t2*(a+t1)));
lib/libm/src/e_hypotf.c
73
w = sqrtf(t1*yy1-(w*(-w)-(t1*y2+t2*b)));
lib/libm/src/e_hypotf.c
77
return t1*w;
lib/libm/src/e_hypotf.c
78
} else return w;
lib/libm/src/e_jn.c
153
w = (n+n)/(double)x; h = 2.0/(double)x;
lib/libm/src/e_jn.c
154
q0 = w; z = w+h; q1 = w*z - 1.0; k=1;
lib/libm/src/e_jn.c
54
double z, w;
lib/libm/src/e_jnf.c
106
w = (n+n)/(float)x; h = (float)2.0/(float)x;
lib/libm/src/e_jnf.c
107
q0 = w; z = w+h; q1 = w*z - (float)1.0; k=1;
lib/libm/src/e_jnf.c
30
float z, w;
lib/libm/src/e_lgamma_r.c
202
double t,y,z,nadj,p,p1,p2,p3,q,r,w;
lib/libm/src/e_lgamma_r.c
256
w = z*y;
lib/libm/src/e_lgamma_r.c
257
p1 = t0+w*(t3+w*(t6+w*(t9 +w*t12))); /* parallel comp */
lib/libm/src/e_lgamma_r.c
258
p2 = t1+w*(t4+w*(t7+w*(t10+w*t13)));
lib/libm/src/e_lgamma_r.c
259
p3 = t2+w*(t5+w*(t8+w*(t11+w*t14)));
lib/libm/src/e_lgamma_r.c
260
p = z*p1-(tt-w*(p2+y*p3));
lib/libm/src/e_lgamma_r.c
289
w = w0+z*(w1+y*(w2+y*(w3+y*(w4+y*(w5+y*w6)))));
lib/libm/src/e_lgamma_r.c
290
r = (x-half)*(t-one)+w;
lib/libm/src/e_lgammaf_r.c
138
float t,y,z,nadj,p,p1,p2,p3,q,r,w;
lib/libm/src/e_lgammaf_r.c
192
w = z*y;
lib/libm/src/e_lgammaf_r.c
193
p1 = t0+w*(t3+w*(t6+w*(t9 +w*t12))); /* parallel comp */
lib/libm/src/e_lgammaf_r.c
194
p2 = t1+w*(t4+w*(t7+w*(t10+w*t13)));
lib/libm/src/e_lgammaf_r.c
195
p3 = t2+w*(t5+w*(t8+w*(t11+w*t14)));
lib/libm/src/e_lgammaf_r.c
196
p = z*p1-(tt-w*(p2+y*p3));
lib/libm/src/e_lgammaf_r.c
225
w = w0+z*(w1+y*(w2+y*(w3+y*(w4+y*(w5+y*w6)))));
lib/libm/src/e_lgammaf_r.c
226
r = (x-half)*(t-one)+w;
lib/libm/src/e_log.c
118
w = z*z;
lib/libm/src/e_log.c
120
t1= w*(Lg2+w*(Lg4+w*Lg6));
lib/libm/src/e_log.c
121
t2= z*(Lg1+w*(Lg3+w*(Lg5+w*Lg7)));
lib/libm/src/e_log.c
86
double hfsq,f,s,z,R,w,t1,t2,dk;
lib/libm/src/e_log2.c
34
double hfsq,f,s,z,R,w,t1,t2,dk;
lib/libm/src/e_log2.c
65
w = z*z;
lib/libm/src/e_log2.c
67
t1= w*(Lg2+w*(Lg4+w*Lg6));
lib/libm/src/e_log2.c
68
t2= z*(Lg1+w*(Lg3+w*(Lg5+w*Lg7)));
lib/libm/src/e_log2f.c
35
float hfsq,f,s,z,R,w,t1,t2,dk;
lib/libm/src/e_log2f.c
65
w = z*z;
lib/libm/src/e_log2f.c
67
t1= w*(Lg2+w*(Lg4+w*Lg6));
lib/libm/src/e_log2f.c
68
t2= z*(Lg1+w*(Lg3+w*(Lg5+w*Lg7)));
lib/libm/src/e_logf.c
36
float hfsq,f,s,z,R,w,t1,t2,dk;
lib/libm/src/e_logf.c
67
w = z*z;
lib/libm/src/e_logf.c
69
t1= w*(Lg2+w*(Lg4+w*Lg6));
lib/libm/src/e_logf.c
70
t2= z*(Lg1+w*(Lg3+w*(Lg5+w*Lg7)));
lib/libm/src/e_pow.c
100
double yy1,t1,t2,r,s,t,u,v,w;
lib/libm/src/e_pow.c
196
w = (t*t)*(0.5-t*(0.3333333333333333333333-t*0.25));
lib/libm/src/e_pow.c
198
v = t*ivln2_l-w*ivln2;
lib/libm/src/e_pow.c
292
w = v-(z-u);
lib/libm/src/e_pow.c
295
r = (z*t1)/(t1-two)-(w+z*w);
lib/libm/src/e_powf.c
133
w = (t*t)*((float)0.5-t*((float)0.333333333333-t*(float)0.25));
lib/libm/src/e_powf.c
135
v = t*ivln2_l-w*ivln2;
lib/libm/src/e_powf.c
234
w = v-(z-u);
lib/libm/src/e_powf.c
237
r = (z*t1)/(t1-two)-(w+z*w);
lib/libm/src/e_powf.c
56
float yy1,t1,t2,r,s,t,u,v,w;
lib/libm/src/e_rem_pio2.c
101
y[0] = r-w;
lib/libm/src/e_rem_pio2.c
106
w = fn*pio2_2;
lib/libm/src/e_rem_pio2.c
107
r = t-w;
lib/libm/src/e_rem_pio2.c
108
w = fn*pio2_2t-((t-r)-w);
lib/libm/src/e_rem_pio2.c
109
y[0] = r-w;
lib/libm/src/e_rem_pio2.c
114
w = fn*pio2_3;
lib/libm/src/e_rem_pio2.c
115
r = t-w;
lib/libm/src/e_rem_pio2.c
116
w = fn*pio2_3t-((t-r)-w);
lib/libm/src/e_rem_pio2.c
117
y[0] = r-w;
lib/libm/src/e_rem_pio2.c
121
y[1] = (r-y[0])-w;
lib/libm/src/e_rem_pio2.c
56
double z,w,t,r,fn;
lib/libm/src/e_rem_pio2.c
95
w = fn*pio2_1t; /* 1st round good to 85 bit */
lib/libm/src/e_rem_pio2.c
97
y[0] = r-w; /* quick check no cancellation */
lib/libm/src/e_rem_pio2f.c
127
w = fn*pio2_1t; /* 1st round good to 40 bit */
lib/libm/src/e_rem_pio2f.c
129
y[0] = r-w; /* quick check no cancellation */
lib/libm/src/e_rem_pio2f.c
133
y[0] = r-w;
lib/libm/src/e_rem_pio2f.c
138
w = fn*pio2_2;
lib/libm/src/e_rem_pio2f.c
139
r = t-w;
lib/libm/src/e_rem_pio2f.c
140
w = fn*pio2_2t-((t-r)-w);
lib/libm/src/e_rem_pio2f.c
141
y[0] = r-w;
lib/libm/src/e_rem_pio2f.c
146
w = fn*pio2_3;
lib/libm/src/e_rem_pio2f.c
147
r = t-w;
lib/libm/src/e_rem_pio2f.c
148
w = fn*pio2_3t-((t-r)-w);
lib/libm/src/e_rem_pio2f.c
149
y[0] = r-w;
lib/libm/src/e_rem_pio2f.c
153
y[1] = (r-y[0])-w;
lib/libm/src/e_rem_pio2f.c
89
float z,w,t,r,fn;
lib/libm/src/e_sinh.c
41
double t,w,h;
lib/libm/src/e_sinh.c
69
w = exp(0.5*fabs(x));
lib/libm/src/e_sinh.c
70
t = h*w;
lib/libm/src/e_sinh.c
71
return t*w;
lib/libm/src/e_sinhf.c
24
float t,w,h;
lib/libm/src/e_sinhf.c
49
w = expf((float)0.5*fabsf(x));
lib/libm/src/e_sinhf.c
50
t = h*w;
lib/libm/src/e_sinhf.c
51
return t*w;
lib/libm/src/k_cos.c
67
double hz,z,r,w;
lib/libm/src/k_cos.c
70
w = z*z;
lib/libm/src/k_cos.c
71
r = z*(C1+z*(C2+z*C3)) + w*w*(C4+z*(C5+z*C6));
lib/libm/src/k_cos.c
73
w = one-hz;
lib/libm/src/k_cos.c
74
return w + (((one-w)-hz) + (z*r-x*y));
lib/libm/src/k_sincos.h
33
double hz, r, v, w, z;
lib/libm/src/k_sincos.h
36
w = z * z;
lib/libm/src/k_sincos.h
37
r = S2 + z * (S3 + z * S4) + z * w * (S5 + z * S6);
lib/libm/src/k_sincos.h
45
r = z * (C1 + z * (C2 + z * C3)) + w * w * (C4 + z * (C5 + z * C6));
lib/libm/src/k_sincos.h
47
w = 1 - hz;
lib/libm/src/k_sincos.h
48
*cs = w + (((1 - w) - hz) + (z * r - x * y));
lib/libm/src/k_sincosf.h
31
double r, s, w, z;
lib/libm/src/k_sincosf.h
34
w = z * z;
lib/libm/src/k_sincosf.h
37
*sn = (x + s * (S1 + z * S2)) + s * w * r;
lib/libm/src/k_sincosf.h
39
*cs = ((1 + z * C0) + w * C1) + (w * z) * r;
lib/libm/src/k_tan.c
110
w = pio4lo - y;
lib/libm/src/k_tan.c
111
x = z + w;
lib/libm/src/k_tan.c
115
w = z * z;
lib/libm/src/k_tan.c
121
r = T[1] + w * (T[3] + w * (T[5] + w * (T[7] + w * (T[9] +
lib/libm/src/k_tan.c
122
w * T[11]))));
lib/libm/src/k_tan.c
123
v = z * (T[2] + w * (T[4] + w * (T[6] + w * (T[8] + w * (T[10] +
lib/libm/src/k_tan.c
124
w * T[12])))));
lib/libm/src/k_tan.c
128
w = x + r;
lib/libm/src/k_tan.c
132
(v - 2.0 * (x - (w * w / (w + v) - r)));
lib/libm/src/k_tan.c
135
return w;
lib/libm/src/k_tan.c
143
z = w;
lib/libm/src/k_tan.c
146
t = a = -1.0 / w; /* a = -1.0/w */
lib/libm/src/k_tan.c
76
double z, r, v, w, s;
lib/libm/src/k_tan.c
93
z = w = x + y;
lib/libm/src/k_tan.c
96
t = a = -one / w;
lib/libm/src/k_tanf.c
42
float z,r,v,w,s;
lib/libm/src/k_tanf.c
55
w = pio4lo-y;
lib/libm/src/k_tanf.c
56
x = z+w; y = 0.0;
lib/libm/src/k_tanf.c
59
w = z*z;
lib/libm/src/k_tanf.c
64
r = T[1]+w*(T[3]+w*(T[5]+w*(T[7]+w*(T[9]+w*T[11]))));
lib/libm/src/k_tanf.c
65
v = z*(T[2]+w*(T[4]+w*(T[6]+w*(T[8]+w*(T[10]+w*T[12])))));
lib/libm/src/k_tanf.c
69
w = x+r;
lib/libm/src/k_tanf.c
72
return (float)(1-((hx>>30)&2))*(v-(float)2.0*(x-(w*w/(w+v)-r)));
lib/libm/src/k_tanf.c
74
if(iy==1) return w;
lib/libm/src/k_tanf.c
80
z = w;
lib/libm/src/k_tanf.c
84
t = a = -(float)1.0/w; /* a = -1.0/w */
lib/libm/src/ld128/e_coshl.c
100
return t * w;
lib/libm/src/ld128/e_coshl.c
59
long double t, w;
lib/libm/src/ld128/e_coshl.c
77
w = one + t;
lib/libm/src/ld128/e_coshl.c
79
return w; /* cosh(tiny) = 1 */
lib/libm/src/ld128/e_coshl.c
81
return one + (t * t) / (w + w);
lib/libm/src/ld128/e_coshl.c
98
w = expl (half * u.value);
lib/libm/src/ld128/e_coshl.c
99
t = half * w;
lib/libm/src/ld128/e_hypotl.c
100
if (w>b) {
lib/libm/src/ld128/e_hypotl.c
104
w = sqrtl(t1*t1-(b*(-b)-t2*(a+t1)));
lib/libm/src/ld128/e_hypotl.c
113
w = sqrtl(t1*yy1-(w*(-w)-(t1*y2+t2*b)));
lib/libm/src/ld128/e_hypotl.c
120
return t1*w;
lib/libm/src/ld128/e_hypotl.c
121
} else return w;
lib/libm/src/ld128/e_hypotl.c
52
long double a,b,t1,t2,yy1,y2,w;
lib/libm/src/ld128/e_hypotl.c
67
w = a+b; /* for sNaN */
lib/libm/src/ld128/e_hypotl.c
69
if(((ha&0xffffffffffffLL)|low)==0) w = a;
lib/libm/src/ld128/e_hypotl.c
71
if(((hb^0x7fff000000000000LL)|low)==0) w = b;
lib/libm/src/ld128/e_hypotl.c
72
return w;
lib/libm/src/ld128/e_hypotl.c
99
w = a-b;
lib/libm/src/ld128/e_lgammal.c
762
long double p, q, w, z, nx;
lib/libm/src/ld128/e_lgammal.c
797
w = lgammal (q);
lib/libm/src/ld128/e_lgammal.c
798
z = logl (PIL / z) - w;
lib/libm/src/ld128/e_logl.c
192
long double z, y, w;
lib/libm/src/ld128/e_logl.c
262
w = z * z;
lib/libm/src/ld128/e_logl.c
275
+ l3) * z * w;
lib/libm/src/ld128/e_logl.c
276
y -= 0.5 * w;
lib/libm/src/ld128/e_powl.c
147
long double yy1, t1, t2, r, s, t, u, v, w;
lib/libm/src/ld128/e_powl.c
420
w = v - (z - u);
lib/libm/src/ld128/e_powl.c
426
r = (z * t1) / (t1 - two) - (w + z * w);
lib/libm/src/ld128/e_sinhl.c
57
long double t, w, h;
lib/libm/src/ld128/e_sinhl.c
97
w = expl (0.5 * u.value);
lib/libm/src/ld128/e_sinhl.c
98
t = h * w;
lib/libm/src/ld128/e_sinhl.c
99
return t * w;
lib/libm/src/ld128/k_cosl.c
51
long double hz,z,r,w;
lib/libm/src/ld128/k_cosl.c
57
w = one-hz;
lib/libm/src/ld128/k_cosl.c
58
return w + (((one-w)-hz) + (z*r-x*y));
lib/libm/src/ld128/k_sincosl.h
46
long double hz, r, v, w, z;
lib/libm/src/ld128/k_sincosl.h
63
w = 1 - hz;
lib/libm/src/ld128/k_sincosl.h
67
*cs = w + (((1 - w) - hz) + (z * r - x * y));
lib/libm/src/ld128/k_tanl.c
101
return w;
lib/libm/src/ld128/k_tanl.c
109
z = w;
lib/libm/src/ld128/k_tanl.c
112
t = a = -1.0 / w; /* a = -1.0/w */
lib/libm/src/ld128/k_tanl.c
64
long double z, r, v, w, s;
lib/libm/src/ld128/k_tanl.c
76
w = pio4lo - y;
lib/libm/src/ld128/k_tanl.c
77
x = z + w;
lib/libm/src/ld128/k_tanl.c
83
w = z * z;
lib/libm/src/ld128/k_tanl.c
84
r = T5 + w * (T9 + w * (T13 + w * (T17 + w * (T21 +
lib/libm/src/ld128/k_tanl.c
85
w * (T25 + w * (T29 + w * (T33 +
lib/libm/src/ld128/k_tanl.c
86
w * (T37 + w * (T41 + w * (T45 + w * (T49 + w * (T53 +
lib/libm/src/ld128/k_tanl.c
87
w * T57))))))))))));
lib/libm/src/ld128/k_tanl.c
88
v = z * (T7 + w * (T11 + w * (T15 + w * (T19 + w * (T23 +
lib/libm/src/ld128/k_tanl.c
89
w * (T27 + w * (T31 + w * (T35 +
lib/libm/src/ld128/k_tanl.c
90
w * (T39 + w * (T43 + w * (T47 + w * (T51 + w * T55))))))))))));
lib/libm/src/ld128/k_tanl.c
94
w = x + r;
lib/libm/src/ld128/k_tanl.c
98
(v - 2.0 * (x - (w * w / (w + v) - r)));
lib/libm/src/ld128/s_asinhl.c
36
long double t, w;
lib/libm/src/ld128/s_asinhl.c
53
w = logl (u.value) + ln2;
lib/libm/src/ld128/s_asinhl.c
58
w = logl (2.0 * t + one / (sqrtl (x * x + one) + t));
lib/libm/src/ld128/s_asinhl.c
63
w = log1pl (u.value + t / (one + sqrtl (one + t)));
lib/libm/src/ld128/s_asinhl.c
66
return -w;
lib/libm/src/ld128/s_asinhl.c
68
return w;
lib/libm/src/ld128/s_cbrtl.c
120
w=t+t; /* t+t is exact */
lib/libm/src/ld128/s_cbrtl.c
121
r=(r-t)/(w+r); /* r-t is exact; w+r ~= 3*t */
lib/libm/src/ld128/s_cbrtl.c
31
long double v, r, s, t, w;
lib/libm/src/ld80/e_coshl.c
42
long double t,w;
lib/libm/src/ld80/e_coshl.c
56
w = one+t;
lib/libm/src/ld80/e_coshl.c
57
if (ex<0x3fbc) return w; /* cosh(tiny) = 1 */
lib/libm/src/ld80/e_coshl.c
58
return one+(t*t)/(w+w);
lib/libm/src/ld80/e_coshl.c
75
w = expl(half*fabsl(x));
lib/libm/src/ld80/e_coshl.c
76
t = half*w;
lib/libm/src/ld80/e_coshl.c
77
return t*w;
lib/libm/src/ld80/e_hypotl.c
103
w = sqrtl(t1*t1-(b*(-b)-t2*(a+t1)));
lib/libm/src/ld80/e_hypotl.c
113
w = sqrtl(t1*yy1-(w*(-w)-(t1*y2+t2*b)));
lib/libm/src/ld80/e_hypotl.c
120
return t1*w;
lib/libm/src/ld80/e_hypotl.c
121
} else return w;
lib/libm/src/ld80/e_hypotl.c
52
long double a,b,t1,t2,yy1,y2,w;
lib/libm/src/ld80/e_hypotl.c
67
w = a+b; /* for sNaN */
lib/libm/src/ld80/e_hypotl.c
69
if(((high&0x7fffffff)|low)==0) w = a;
lib/libm/src/ld80/e_hypotl.c
71
if(((eb^0x7fff)|(high&0x7fffffff)|low)==0) w = b;
lib/libm/src/ld80/e_hypotl.c
72
return w;
lib/libm/src/ld80/e_hypotl.c
97
w = a-b;
lib/libm/src/ld80/e_hypotl.c
98
if (w>b) {
lib/libm/src/ld80/e_lgammal.c
271
long double t, y, z, nadj, p, p1, p2, q, r, w;
lib/libm/src/ld80/e_lgammal.c
415
w = w0 + z * (w1
lib/libm/src/ld80/e_lgammal.c
417
r = (x - half) * (t - one) + w;
lib/libm/src/ld80/e_powl.c
193
static long double w, W, Wa, Wb, ya, yb, u;
lib/libm/src/ld80/e_powl.c
257
w = floorl(y);
lib/libm/src/ld80/e_powl.c
260
if( w == y )
lib/libm/src/ld80/e_powl.c
269
yb = 0.5L * fabsl(w);
lib/libm/src/ld80/e_powl.c
325
i = w;
lib/libm/src/ld80/e_powl.c
326
w = floorl(x);
lib/libm/src/ld80/e_powl.c
327
if( (w == x) && (fabsl(y) < 32768.0) )
lib/libm/src/ld80/e_powl.c
329
w = powil( x, (int) y );
lib/libm/src/ld80/e_powl.c
330
return( w );
lib/libm/src/ld80/e_powl.c
374
w = x * ( z * __polevll( x, P, 3 ) / __p1evll( x, Q, 3 ) );
lib/libm/src/ld80/e_powl.c
375
w = w - ldexpl( z, -1 ); /* w - 0.5 * z */
lib/libm/src/ld80/e_powl.c
380
z = LOG2EA * w;
lib/libm/src/ld80/e_powl.c
381
z += w;
lib/libm/src/ld80/e_powl.c
386
w = -i;
lib/libm/src/ld80/e_powl.c
387
w = ldexpl( w, -LNXT ); /* divide by NXT */
lib/libm/src/ld80/e_powl.c
388
w += e;
lib/libm/src/ld80/e_powl.c
402
F = z * y + w * yb;
lib/libm/src/ld80/e_powl.c
406
G = Fa + w * ya;
lib/libm/src/ld80/e_powl.c
412
w = ldexpl( Ga+Ha, LNXT );
lib/libm/src/ld80/e_powl.c
415
if( w > MEXP )
lib/libm/src/ld80/e_powl.c
418
if( w < MNEXP )
lib/libm/src/ld80/e_powl.c
421
e = w;
lib/libm/src/ld80/e_powl.c
446
w = douba( e );
lib/libm/src/ld80/e_powl.c
447
z = w * z; /* 2**-e * ( 1 + (2**Hb-1) ) */
lib/libm/src/ld80/e_powl.c
448
z = z + w;
lib/libm/src/ld80/e_powl.c
457
w = ldexpl( y, -1 );
lib/libm/src/ld80/e_powl.c
458
w = floorl(w);
lib/libm/src/ld80/e_powl.c
459
w = ldexpl( w, 1 );
lib/libm/src/ld80/e_powl.c
460
if( w != y )
lib/libm/src/ld80/e_sinhl.c
40
long double t,w,h;
lib/libm/src/ld80/e_sinhl.c
69
w = expl(0.5*fabsl(x));
lib/libm/src/ld80/e_sinhl.c
70
t = h*w;
lib/libm/src/ld80/e_sinhl.c
71
return t*w;
lib/libm/src/ld80/e_tgammal.c
192
long double y, w, v;
lib/libm/src/ld80/e_tgammal.c
194
w = 1.0L/x;
lib/libm/src/ld80/e_tgammal.c
197
w = (((((6.97281375836585777429E-5L * w
lib/libm/src/ld80/e_tgammal.c
198
+ 7.84039221720066627474E-4L) * w
lib/libm/src/ld80/e_tgammal.c
199
- 2.29472093621399176955E-4L) * w
lib/libm/src/ld80/e_tgammal.c
200
- 2.68132716049382716049E-3L) * w
lib/libm/src/ld80/e_tgammal.c
201
+ 3.47222222222222222222E-3L) * w
lib/libm/src/ld80/e_tgammal.c
202
+ 8.33333333333333333333E-2L) * w
lib/libm/src/ld80/e_tgammal.c
205
w = 1.0L + w * __polevll( w, STIR, 8 );
lib/libm/src/ld80/e_tgammal.c
216
y = SQTPI * y * w;
lib/libm/src/ld80/k_cosl.c
69
long double hz,z,r,w;
lib/libm/src/ld80/k_cosl.c
74
w = one-hz;
lib/libm/src/ld80/k_cosl.c
75
return w + (((one-w)-hz) + (z*r-x*y));
lib/libm/src/ld80/k_sincosl.h
49
long double hz, r, v, w, z;
lib/libm/src/ld80/k_sincosl.h
65
w = 1 - hz;
lib/libm/src/ld80/k_sincosl.h
68
*cs = w + (((1 - w) - hz) + (z * r - x * y));
lib/libm/src/ld80/k_tanl.c
103
(v - 2.0 * (x - (w * w / (w + v) - r)));
lib/libm/src/ld80/k_tanl.c
106
return w;
lib/libm/src/ld80/k_tanl.c
114
z = w;
lib/libm/src/ld80/k_tanl.c
117
t = a = -1.0 / w; /* a = -1.0/w */
lib/libm/src/ld80/k_tanl.c
72
long double z, r, v, w, s;
lib/libm/src/ld80/k_tanl.c
84
w = pio4lo - y;
lib/libm/src/ld80/k_tanl.c
85
x = z + w;
lib/libm/src/ld80/k_tanl.c
91
w = z * z;
lib/libm/src/ld80/k_tanl.c
92
r = T5 + w * (T9 + w * (T13 + w * (T17 + w * (T21 +
lib/libm/src/ld80/k_tanl.c
93
w * (T25 + w * (T29 + w * T33))))));
lib/libm/src/ld80/k_tanl.c
94
v = z * (T7 + w * (T11 + w * (T15 + w * (T19 + w * (T23 +
lib/libm/src/ld80/k_tanl.c
95
w * (T27 + w * T31))))));
lib/libm/src/ld80/k_tanl.c
99
w = x + r;
lib/libm/src/ld80/s_asinhl.c
36
long double t,w;
lib/libm/src/ld80/s_asinhl.c
45
w = logl(fabsl(x))+ln2;
lib/libm/src/ld80/s_asinhl.c
48
w = logl(2.0*t+one/(sqrtl(x*x+one)+t));
lib/libm/src/ld80/s_asinhl.c
51
w =log1pl(fabsl(x)+t/(one+sqrtl(one+t)));
lib/libm/src/ld80/s_asinhl.c
53
if(hx&0x8000) return -w; else return w;
lib/libm/src/ld80/s_cbrtl.c
117
w=t+t; /* t+t is exact */
lib/libm/src/ld80/s_cbrtl.c
118
r=(r-t)/(w+r); /* r-t is exact; w+r ~= 3*t */
lib/libm/src/ld80/s_cbrtl.c
31
long double v, r, s, t, w;
lib/libm/src/s_asinh.c
37
double t,w;
lib/libm/src/s_asinh.c
46
w = log(fabs(x))+ln2;
lib/libm/src/s_asinh.c
49
w = log(2.0*t+one/(sqrt(x*x+one)+t));
lib/libm/src/s_asinh.c
52
w =log1p(fabs(x)+t/(one+sqrt(one+t)));
lib/libm/src/s_asinh.c
54
if(hx>0) return w; else return -w;
lib/libm/src/s_asinhf.c
27
float t,w;
lib/libm/src/s_asinhf.c
36
w = logf(fabsf(x))+ln2;
lib/libm/src/s_asinhf.c
39
w = logf((float)2.0*t+one/(sqrtf(x*x+one)+t));
lib/libm/src/s_asinhf.c
42
w =log1pf(fabsf(x)+t/(one+sqrtf(one+t)));
lib/libm/src/s_asinhf.c
44
if(hx>0) return w; else return -w;
lib/libm/src/s_atan.c
109
w = z*z;
lib/libm/src/s_atan.c
111
s1 = z*(aT[0]+w*(aT[2]+w*(aT[4]+w*(aT[6]+w*(aT[8]+w*aT[10])))));
lib/libm/src/s_atan.c
112
s2 = w*(aT[1]+w*(aT[3]+w*(aT[5]+w*(aT[7]+w*aT[9]))));
lib/libm/src/s_atan.c
73
double w,s1,s2,z;
lib/libm/src/s_atanf.c
54
float w,s1,s2,z;
lib/libm/src/s_atanf.c
87
w = z*z;
lib/libm/src/s_atanf.c
89
s1 = z*(aT[0]+w*(aT[2]+w*(aT[4]+w*(aT[6]+w*(aT[8]+w*aT[10])))));
lib/libm/src/s_atanf.c
90
s2 = w*(aT[1]+w*(aT[3]+w*(aT[5]+w*(aT[7]+w*aT[9]))));
lib/libm/src/s_atanl.c
44
long double w,s1,s2,z;
lib/libm/src/s_atanl.c
92
w = z*z;
lib/libm/src/s_atanl.c
94
s1 = z*T_even(w);
lib/libm/src/s_atanl.c
95
s2 = w*T_odd(w);
lib/libm/src/s_cacos.c
56
double complex w;
lib/libm/src/s_cacos.c
58
w = casin (z);
lib/libm/src/s_cacos.c
59
w = (M_PI_2 - creal (w)) - cimag (w) * I;
lib/libm/src/s_cacos.c
60
return (w);
lib/libm/src/s_cacosf.c
55
float complex w;
lib/libm/src/s_cacosf.c
57
w = casinf( z );
lib/libm/src/s_cacosf.c
58
w = ((float)M_PI_2 - crealf (w)) - cimagf (w) * I;
lib/libm/src/s_cacosf.c
59
return (w);
lib/libm/src/s_cacosh.c
52
double complex w;
lib/libm/src/s_cacosh.c
54
w = clog(z + csqrt(z + 1) * csqrt(z - 1));
lib/libm/src/s_cacosh.c
55
return (w);
lib/libm/src/s_cacoshf.c
51
float complex w;
lib/libm/src/s_cacoshf.c
53
w = clogf(z + csqrtf(z + 1) * csqrtf(z - 1));
lib/libm/src/s_cacoshf.c
54
return (w);
lib/libm/src/s_cacoshl.c
52
long double complex w;
lib/libm/src/s_cacoshl.c
54
w = clogl(z + csqrtl(z + 1) * csqrtl(z - 1));
lib/libm/src/s_cacoshl.c
55
return (w);
lib/libm/src/s_cacosl.c
58
long double complex w;
lib/libm/src/s_cacosl.c
60
w = casinl(z);
lib/libm/src/s_cacosl.c
61
w = (PIO2L - creall(w)) - cimagl(w) * I;
lib/libm/src/s_cacosl.c
62
return (w);
lib/libm/src/s_casin.c
130
w = zz * (-1.0 * I);
lib/libm/src/s_casin.c
131
return (w);
lib/libm/src/s_casin.c
59
double complex w;
lib/libm/src/s_casin.c
69
w = M_PI_2 + 0.0 * I;
lib/libm/src/s_casin.c
73
w = asin (x) + 0.0 * I;
lib/libm/src/s_casin.c
75
return (w);
lib/libm/src/s_casinf.c
132
w = zz * (-1.0f * I);
lib/libm/src/s_casinf.c
133
return (w);
lib/libm/src/s_casinf.c
56
float complex w;
lib/libm/src/s_casinf.c
71
w = (float)M_PI_2 + 0.0f * I;
lib/libm/src/s_casinf.c
75
w = asinf (x) + 0.0f * I;
lib/libm/src/s_casinf.c
77
return (w);
lib/libm/src/s_casinh.c
52
double complex w;
lib/libm/src/s_casinh.c
54
w = -1.0 * I * casin (z * I);
lib/libm/src/s_casinh.c
55
return (w);
lib/libm/src/s_casinhf.c
51
float complex w;
lib/libm/src/s_casinhf.c
53
w = -1.0f * I * casinf (z * I);
lib/libm/src/s_casinhf.c
54
return (w);
lib/libm/src/s_casinhl.c
52
long double complex w;
lib/libm/src/s_casinhl.c
54
w = -1.0L * I * casinl(z * I);
lib/libm/src/s_casinhl.c
55
return (w);
lib/libm/src/s_casinl.c
114
w = sum;
lib/libm/src/s_casinl.c
115
return w;
lib/libm/src/s_casinl.c
130
w = zz * (-1.0L * I);
lib/libm/src/s_casinl.c
131
return (w);
lib/libm/src/s_casinl.c
67
long double complex w;
lib/libm/src/s_casinl.c
77
w = PIO2L + 0.0L * I;
lib/libm/src/s_casinl.c
81
w = asinl(x) + 0.0L * I;
lib/libm/src/s_casinl.c
83
return (w);
lib/libm/src/s_catan.c
111
w = _redupi (t);
lib/libm/src/s_catan.c
120
w = w + (0.25 * log (a)) * I;
lib/libm/src/s_catan.c
121
return (w);
lib/libm/src/s_catan.c
125
w = MAXNUM + MAXNUM * I;
lib/libm/src/s_catan.c
126
return (w);
lib/libm/src/s_catan.c
96
double complex w;
lib/libm/src/s_catanf.c
108
w = _redupif(t);
lib/libm/src/s_catanf.c
117
w = w + (0.25f * logf (a)) * I;
lib/libm/src/s_catanf.c
118
return (w);
lib/libm/src/s_catanf.c
122
w = MAXNUMF + MAXNUMF * I;
lib/libm/src/s_catanf.c
123
return (w);
lib/libm/src/s_catanf.c
93
float complex w;
lib/libm/src/s_catanh.c
52
double complex w;
lib/libm/src/s_catanh.c
54
w = -1.0 * I * catan (z * I);
lib/libm/src/s_catanh.c
55
return (w);
lib/libm/src/s_catanhf.c
51
float complex w;
lib/libm/src/s_catanhf.c
53
w = -1.0f * I * catanf (z * I);
lib/libm/src/s_catanhf.c
54
return (w);
lib/libm/src/s_catanhl.c
52
long double complex w;
lib/libm/src/s_catanhl.c
54
w = -1.0L * I * catanl(z * I);
lib/libm/src/s_catanhl.c
55
return (w);
lib/libm/src/s_catanl.c
111
w = redupil(t);
lib/libm/src/s_catanl.c
120
w = w + (0.25L * logl(a)) * I;
lib/libm/src/s_catanl.c
121
return (w);
lib/libm/src/s_catanl.c
125
w = LDBL_MAX + LDBL_MAX * I;
lib/libm/src/s_catanl.c
126
return (w);
lib/libm/src/s_catanl.c
96
long double complex w;
lib/libm/src/s_cbrt.c
36
double r,s,t=0.0,w;
lib/libm/src/s_cbrt.c
71
w=t+t;
lib/libm/src/s_cbrt.c
72
r=(r-t)/(w+r); /* r-s is exact */
lib/libm/src/s_ccos.c
79
double complex w;
lib/libm/src/s_ccos.c
83
w = cos(creal (z)) * ch - (sin (creal (z)) * sh) * I;
lib/libm/src/s_ccos.c
84
return (w);
lib/libm/src/s_ccosf.c
78
float complex w;
lib/libm/src/s_ccosf.c
82
w = cosf( crealf(z) ) * ch + ( -sinf( crealf(z) ) * sh) * I;
lib/libm/src/s_ccosf.c
83
return (w);
lib/libm/src/s_ccosh.c
52
double complex w;
lib/libm/src/s_ccosh.c
57
w = cosh (x) * cos (y) + (sinh (x) * sin (y)) * I;
lib/libm/src/s_ccosh.c
58
return (w);
lib/libm/src/s_ccoshf.c
51
float complex w;
lib/libm/src/s_ccoshf.c
56
w = coshf (x) * cosf (y) + (sinhf (x) * sinf (y)) * I;
lib/libm/src/s_ccoshf.c
57
return (w);
lib/libm/src/s_ccoshl.c
52
long double complex w;
lib/libm/src/s_ccoshl.c
57
w = coshl(x) * cosl(y) + (sinhl(x) * sinl(y)) * I;
lib/libm/src/s_ccoshl.c
58
return (w);
lib/libm/src/s_ccosl.c
76
long double complex w;
lib/libm/src/s_ccosl.c
80
w = cosl(creall(z)) * ch + (-sinl(creall(z)) * sh) * I;
lib/libm/src/s_ccosl.c
81
return (w);
lib/libm/src/s_cexp.c
63
double complex w;
lib/libm/src/s_cexp.c
69
w = r * cos (y) + r * sin (y) * I;
lib/libm/src/s_cexp.c
70
return (w);
lib/libm/src/s_cexpf.c
61
float complex w;
lib/libm/src/s_cexpf.c
65
w = r * cosf( cimagf(z) ) + r * sinf( cimagf(z) ) * I;
lib/libm/src/s_cexpf.c
66
return (w);
lib/libm/src/s_cexpl.c
63
long double complex w;
lib/libm/src/s_cexpl.c
67
w = r * cosl(cimagl(z)) + (r * sinl(cimagl(z))) * I;
lib/libm/src/s_cexpl.c
68
return (w);
lib/libm/src/s_clog.c
64
double complex w;
lib/libm/src/s_clog.c
71
w = p + rr * I;
lib/libm/src/s_clog.c
72
return (w);
lib/libm/src/s_clogf.c
62
float complex w;
lib/libm/src/s_clogf.c
70
w = p + rr * I;
lib/libm/src/s_clogf.c
71
return (w);
lib/libm/src/s_clogl.c
64
long double complex w;
lib/libm/src/s_clogl.c
71
w = p + rr * I;
lib/libm/src/s_clogl.c
72
return (w);
lib/libm/src/s_cpow.c
54
double complex w;
lib/libm/src/s_cpow.c
70
w = r * cos (theta) + (r * sin (theta)) * I;
lib/libm/src/s_cpow.c
71
return (w);
lib/libm/src/s_cpowf.c
53
float complex w;
lib/libm/src/s_cpowf.c
69
w = r * cosf (theta) + (r * sinf (theta)) * I;
lib/libm/src/s_cpowf.c
70
return (w);
lib/libm/src/s_cpowl.c
54
long double complex w;
lib/libm/src/s_cpowl.c
70
w = r * cosl(theta) + (r * sinl(theta)) * I;
lib/libm/src/s_cpowl.c
71
return (w);
lib/libm/src/s_csin.c
81
double complex w;
lib/libm/src/s_csin.c
85
w = sin (creal(z)) * ch + (cos (creal(z)) * sh) * I;
lib/libm/src/s_csin.c
86
return (w);
lib/libm/src/s_csinf.c
79
float complex w;
lib/libm/src/s_csinf.c
83
w = sinf(crealf(z)) * ch + (cosf(crealf(z)) * sh) * I;
lib/libm/src/s_csinf.c
84
return (w);
lib/libm/src/s_csinh.c
51
double complex w;
lib/libm/src/s_csinh.c
56
w = sinh (x) * cos (y) + (cosh (x) * sin (y)) * I;
lib/libm/src/s_csinh.c
57
return (w);
lib/libm/src/s_csinhf.c
50
float complex w;
lib/libm/src/s_csinhf.c
55
w = sinhf (x) * cosf (y) + (coshf (x) * sinf (y)) * I;
lib/libm/src/s_csinhf.c
56
return (w);
lib/libm/src/s_csinhl.c
51
long double complex w;
lib/libm/src/s_csinhl.c
56
w = sinhl(x) * cosl(y) + (coshl(x) * sinl(y)) * I;
lib/libm/src/s_csinhl.c
57
return (w);
lib/libm/src/s_csinl.c
78
long double complex w;
lib/libm/src/s_csinl.c
82
w = sinl(creall(z)) * ch + (cosl(creall(z)) * sh) * I;
lib/libm/src/s_csinl.c
83
return (w);
lib/libm/src/s_csqrt.c
115
w = x + y * I;
lib/libm/src/s_csqrt.c
116
r = cabs(w);
lib/libm/src/s_csqrt.c
128
w = t - r * I;
lib/libm/src/s_csqrt.c
130
w = t + r * I;
lib/libm/src/s_csqrt.c
131
return (w);
lib/libm/src/s_csqrt.c
68
double complex w;
lib/libm/src/s_csqrt.c
76
w = 0.0 + y * I;
lib/libm/src/s_csqrt.c
82
w = 0.0 + copysign(r, y) * I;
lib/libm/src/s_csqrt.c
85
w = r + y * I;
lib/libm/src/s_csqrt.c
88
return (w);
lib/libm/src/s_csqrt.c
94
w = r + r * I;
lib/libm/src/s_csqrt.c
96
w = r - r * I;
lib/libm/src/s_csqrt.c
97
return (w);
lib/libm/src/s_csqrtf.c
113
w = x + y * I;
lib/libm/src/s_csqrtf.c
114
r = cabsf(w);
lib/libm/src/s_csqrtf.c
127
w = t - r * I;
lib/libm/src/s_csqrtf.c
129
w = t + r * I;
lib/libm/src/s_csqrtf.c
130
return (w);
lib/libm/src/s_csqrtf.c
67
float complex w;
lib/libm/src/s_csqrtf.c
75
w = 0.0f + copysign(sqrtf(-x), y) * I;
lib/libm/src/s_csqrtf.c
76
return (w);
lib/libm/src/s_csqrtf.c
82
w = sqrtf(x) + y * I;
lib/libm/src/s_csqrtf.c
83
return (w);
lib/libm/src/s_csqrtf.c
91
w = r + r * I;
lib/libm/src/s_csqrtf.c
93
w = r - r * I;
lib/libm/src/s_csqrtf.c
94
return (w);
lib/libm/src/s_csqrtl.c
111
w = x + y * I;
lib/libm/src/s_csqrtl.c
112
r = cabsl(w);
lib/libm/src/s_csqrtl.c
124
w = t - r * I;
lib/libm/src/s_csqrtl.c
126
w = t + r * I;
lib/libm/src/s_csqrtl.c
127
return (w);
lib/libm/src/s_csqrtl.c
67
long double complex w;
lib/libm/src/s_csqrtl.c
75
w = 0.0L + copysign(sqrtl(-x), y) * I;
lib/libm/src/s_csqrtl.c
76
return (w);
lib/libm/src/s_csqrtl.c
79
w = sqrtl(x) + 0.0L * I;
lib/libm/src/s_csqrtl.c
80
return (w);
lib/libm/src/s_csqrtl.c
88
w = r + r * I;
lib/libm/src/s_csqrtl.c
90
w = r - r * I;
lib/libm/src/s_csqrtl.c
91
return (w);
lib/libm/src/s_ctan.c
137
double complex w;
lib/libm/src/s_ctan.c
147
w = MAXNUM + MAXNUM * I;
lib/libm/src/s_ctan.c
148
return (w);
lib/libm/src/s_ctan.c
151
w = sin (2.0 * creal(z)) / d + (sinh (2.0 * cimag(z)) / d) * I;
lib/libm/src/s_ctan.c
152
return (w);
lib/libm/src/s_ctanf.c
133
float complex w;
lib/libm/src/s_ctanf.c
143
w = MAXNUMF + MAXNUMF * I;
lib/libm/src/s_ctanf.c
144
return (w);
lib/libm/src/s_ctanf.c
146
w = sinf (2.0f * crealf(z)) / d + (sinhf (2.0f * cimagf(z)) / d) * I;
lib/libm/src/s_ctanf.c
147
return (w);
lib/libm/src/s_ctanh.c
52
double complex w;
lib/libm/src/s_ctanh.c
58
w = sinh (2.0 * x) / d + (sin (2.0 * y) / d) * I;
lib/libm/src/s_ctanh.c
59
return (w);
lib/libm/src/s_ctanhf.c
51
float complex w;
lib/libm/src/s_ctanhf.c
57
w = sinhf (2.0f * x) / d + (sinf (2.0f * y) / d) * I;
lib/libm/src/s_ctanhf.c
58
return (w);
lib/libm/src/s_ctanhl.c
52
long double complex w;
lib/libm/src/s_ctanhl.c
58
w = sinhl(2.0L * x) / d + (sinl(2.0L * y) / d) * I;
lib/libm/src/s_ctanhl.c
59
return (w);
lib/libm/src/s_ctanl.c
138
long double complex w;
lib/libm/src/s_ctanl.c
151
w = LDBL_MAX + LDBL_MAX * I;
lib/libm/src/s_ctanl.c
152
return (w);
lib/libm/src/s_ctanl.c
155
w = sinl(2.0L * x) / d + (sinhl(2.0L * y) / d) * I;
lib/libm/src/s_ctanl.c
156
return (w);
lib/libm/src/s_rint.c
40
volatile double w; /* clip extra precision */
lib/libm/src/s_rint.c
51
w = TWO52[sx]+x;
lib/libm/src/s_rint.c
52
t = w-TWO52[sx];
lib/libm/src/s_rint.c
75
w = TWO52[sx]+x;
lib/libm/src/s_rint.c
76
return w-TWO52[sx];
lib/libm/src/s_rintf.c
31
volatile float w; /* clip extra precision */
lib/libm/src/s_rintf.c
42
w = TWO23[sx]+x;
lib/libm/src/s_rintf.c
43
t = w-TWO23[sx];
lib/libm/src/s_rintf.c
58
w = TWO23[sx]+x;
lib/libm/src/s_rintf.c
59
return w-TWO23[sx];
lib/libpcap/gencode.c
538
bpf_int32 w = ((bpf_int32)p[0] << 24) |
lib/libpcap/gencode.c
541
tmp = gen_cmp(offset + size - 4, BPF_W, w);
lib/libpcap/gencode.c
549
bpf_int32 w = ((bpf_int32)p[0] << 8) | p[1];
lib/libpcap/gencode.c
551
tmp = gen_cmp(offset + size - 2, BPF_H, w);
lib/libskey/put.c
433
wsrch(char *w, int low, int high)
lib/libskey/put.c
440
if ((j = strncmp(w, Wp[i], 4)) == 0)
lib/libskey/put.c
445
if (strncmp(w, Wp[high], 4) == 0)
lib/libutil/imsg.c
106
msgbuf_free(imsgbuf->w);
lib/libutil/imsg.c
107
imsgbuf->w = NULL;
lib/libutil/imsg.c
113
return msgbuf_queuelen(imsgbuf->w);
lib/libutil/imsg.c
122
if ((buf = msgbuf_get(imsgbuf->w)) == NULL)
lib/libutil/imsg.c
323
ibuf_close(imsgbuf->w, hdrbuf);
lib/libutil/imsg.c
324
ibuf_close(imsgbuf->w, buf);
lib/libutil/imsg.c
412
ibuf_close(imsgbuf->w, msg);
lib/libutil/imsg.c
42
imsgbuf->w = msgbuf_new_reader(IMSG_HEADER_SIZE, imsg_parse_hdr,
lib/libutil/imsg.c
44
if (imsgbuf->w == NULL)
lib/libutil/imsg.c
79
return msgbuf_read(imsgbuf->fd, imsgbuf->w);
lib/libutil/imsg.c
81
return ibuf_read(imsgbuf->fd, imsgbuf->w);
lib/libutil/imsg.c
88
return msgbuf_write(imsgbuf->fd, imsgbuf->w);
lib/libutil/imsg.c
90
return ibuf_write(imsgbuf->fd, imsgbuf->w);
lib/libutil/imsg.h
48
struct msgbuf *w;
lib/libz/crc32.c
459
local void braid(z_crc_t ltl[][256], z_word_t big[][256], int n, int w) {
lib/libz/crc32.c
462
for (k = 0; k < w; k++) {
lib/libz/crc32.c
463
p = (z_crc_t)x2nmodp((n * w + 3 - k) << 3, 0);
lib/libz/crc32.c
465
big[w - 1 - k][0] = 0;
lib/libz/crc32.c
468
big[w - 1 - k][i] = byte_swap(q);
lib/libz/trees.c
142
#define put_short(s, w) { \
lib/libz/trees.c
143
put_byte(s, (uch)((w) & 0xff)); \
lib/libz/trees.c
144
put_byte(s, (uch)((ush)(w) >> 8)); \
libexec/ftpd/ftpcmd.y
1460
int i, j, w;
libexec/ftpd/ftpcmd.y
1477
w = strlen(c->name) + 1;
libexec/ftpd/ftpcmd.y
1478
while (w < width) {
libexec/ftpd/ftpcmd.y
1480
w++;
libexec/ld.so/boot.c
46
# define RELOCATE_RELATIVE(w, r, b) *(w) = (r)->r_addend + (b)
libexec/ld.so/boot.c
49
# define RELOCATE_RELATIVE(w, r, b) *(w) += (b)
libexec/ld.so/chacha_private.h
41
#define XOR(v,w) ((v) ^ (w))
libexec/ld.so/chacha_private.h
42
#define PLUS(v,w) (U32V((v) + (w)))
libexec/spamd-setup/spamd-setup.c
237
start->w = 1;
libexec/spamd-setup/spamd-setup.c
239
end->w = -1;
libexec/spamd-setup/spamd-setup.c
242
start->w = 0;
libexec/spamd-setup/spamd-setup.c
244
end->w = 0;
libexec/spamd-setup/spamd-setup.c
56
int8_t w;
libexec/spamd-setup/spamd-setup.c
584
ws += bl[i].w;
libexec/spamd/spamd.c
1020
cp->w = t + cp->stutter;
libexec/spamd/spamd.c
1066
cp->w = t + cp->stutter;
libexec/spamd/spamd.c
1135
if (cp->w || cp->tlsaction != SPAMD_TLS_ACT_NONE) {
libexec/spamd/spamd.c
1195
cp->w = t + cp->stutter;
libexec/spamd/spamd.c
1197
cp->w = 0;
libexec/spamd/spamd.c
1594
if (con[i].w) {
libexec/spamd/spamd.c
1595
if (con[i].w + MAXTIME <= t) {
libexec/spamd/spamd.c
1599
if (con[i].w <= t)
libexec/spamd/spamd.c
69
time_t w;
libexec/spamd/spamd.c
740
cp->w = tt + cp->stutter;
libexec/spamd/spamd.c
807
cp->w = t + cp->stutter;
libexec/spamd/spamd.c
818
cp->w = t + cp->stutter;
libexec/spamd/spamd.c
865
cp->w = t + cp->stutter;
libexec/spamd/spamd.c
888
cp->w = t + cp->stutter;
libexec/spamd/spamd.c
911
cp->w = t + cp->stutter;
libexec/spamd/spamd.c
963
cp->w = t + cp->stutter;
libexec/spamd/spamd.c
995
cp->w = t + cp->stutter;
regress/lib/libc/cephes/epow.c
109
emov( x, w );
regress/lib/libc/cephes/epow.c
110
signx = w[NE-1] & (unsigned short )0x8000;
regress/lib/libc/cephes/epow.c
111
w[NE-1] &= (unsigned short )0x7fff;
regress/lib/libc/cephes/epow.c
134
ediv( w, eone, w );
regress/lib/libc/cephes/epow.c
145
emov( w, z );
regress/lib/libc/cephes/epow.c
157
emul( w, w, w ); /* arg to the 2-to-the-kth power */
regress/lib/libc/cephes/epow.c
159
emul( w, z, z );
regress/lib/libc/cephes/epow.c
32
unsigned short w[NE];
regress/lib/libc/cephes/epow.c
36
efloor( y, w );
regress/lib/libc/cephes/epow.c
37
if( ecmp(y,w) == 0 )
regress/lib/libc/cephes/epow.c
39
eifrac( y, &li, w );
regress/lib/libc/cephes/epow.c
51
elog( x, w );
regress/lib/libc/cephes/epow.c
52
emul( y, w, w );
regress/lib/libc/cephes/epow.c
53
eexp( w, z );
regress/lib/libc/cephes/epow.c
64
unsigned short w[NE];
regress/lib/libc/cephes/epow.c
72
eifrac( y, &li, w );
regress/lib/libc/cephes/ieee.c
3072
unsigned short w[NI];
regress/lib/libc/cephes/ieee.c
3074
e24toe( x, w );
regress/lib/libc/cephes/ieee.c
3075
etoasc( w, string, ndigs );
regress/lib/libc/cephes/ieee.c
3084
unsigned short w[NI];
regress/lib/libc/cephes/ieee.c
3086
e53toe( x, w );
regress/lib/libc/cephes/ieee.c
3087
etoasc( w, string, ndigs );
regress/lib/libc/cephes/ieee.c
3096
unsigned short w[NI];
regress/lib/libc/cephes/ieee.c
3098
e64toe( x, w );
regress/lib/libc/cephes/ieee.c
3099
etoasc( w, string, ndigs );
regress/lib/libc/cephes/ieee.c
3107
unsigned short w[NI];
regress/lib/libc/cephes/ieee.c
3109
e113toe (x, w);
regress/lib/libc/cephes/ieee.c
3110
etoasc (w, string, ndigs);
regress/lib/libc/cephes/ieee.c
3120
unsigned short y[NI], t[NI], u[NI], w[NI];
regress/lib/libc/cephes/ieee.c
3198
efloor( t, w );
regress/lib/libc/cephes/ieee.c
3201
if( t[j] != w[j] )
regress/lib/libc/cephes/ieee.c
3246
emovi( y, w );
regress/lib/libc/cephes/ieee.c
3249
if( (w[NI-1] & 0x7) != 0 )
regress/lib/libc/cephes/ieee.c
3252
emovz( w, u );
regress/lib/libc/cephes/ieee.c
3255
eaddm( w, u );
regress/lib/libc/cephes/ieee.c
3266
emovz( u, w );
regress/lib/libc/cephes/ieee.c
3269
emovo( w, y );
regress/lib/libc/cephes/ieee.c
3274
emov( y, w );
regress/lib/libc/cephes/ieee.c
3276
while( ecmp( eone, w ) > 0 )
regress/lib/libc/cephes/ieee.c
3278
if( ecmp( p, w ) >= 0 )
regress/lib/libc/cephes/ieee.c
3280
emul( r, w, w );
regress/lib/libc/cephes/ieee.c
3294
emovi( t, w );
regress/lib/libc/cephes/ieee.c
3295
emovz( w, t );
regress/lib/libc/cephes/ieee.c
3296
emovi( y, w );
regress/lib/libc/cephes/ieee.c
3297
emovz( w, y );
regress/lib/libcrypto/bn/bn_convert.c
595
BN_ULONG w;
regress/lib/libcrypto/bn/bn_convert.c
656
if ((w = BN_get_word(bn)) != 0x75bcd15) {
regress/lib/libcrypto/bn/bn_convert.c
658
(unsigned long long)w, 0x75bcd15ULL);
regress/lib/libcrypto/bn/bn_convert.c
680
BN_ULONG w;
regress/lib/libcrypto/bn/bn_convert.c
740
if ((w = BN_get_word(bn)) != 0x9abcdef) {
regress/lib/libcrypto/bn/bn_convert.c
742
(unsigned long long)w, 0x9abcdefULL);
regress/lib/libcrypto/bn/bn_test.c
477
print_word(BIO *bp, BN_ULONG w)
regress/lib/libcrypto/bn/bn_test.c
479
BIO_printf(bp, "%" PRIX64, (uint64_t)w);
regress/lib/libcrypto/bn/bn_unit.c
117
BN_ULONG w = 1;
regress/lib/libcrypto/bn/bn_unit.c
127
if ((num_bits = BN_num_bits_word(w << i)) != i + 1) {
regress/lib/libcrypto/bn/bn_unit.c
129
(unsigned long long)(w << i), i + 1, num_bits);
regress/lib/libcrypto/ec/ec_asn1_test.c
2518
BIGNUM *p, *a, *b, *pow2, *r, *seed_bn, *w;
regress/lib/libcrypto/ec/ec_asn1_test.c
2541
if ((w = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/ec/ec_asn1_test.c
2609
ec_group_sha1_bignum(w, seed_bn);
regress/lib/libcrypto/ec/ec_asn1_test.c
2613
if (!BN_add(r, r, w))
regress/sys/ffs/fstest.c
265
char *w;
regress/sys/ffs/fstest.c
267
for (w = strtok(what, ","); w != NULL; w = strtok(NULL, ",")) {
regress/sys/ffs/fstest.c
269
show_stat(sp, w);
regress/sys/net/rtable/util.c
246
rtentry_dump(struct rtentry *rt, void *w, unsigned int rid)
regress/sys/net/rtable/util.c
258
rtentry_delete(struct rtentry *rt, void *w, unsigned int rid)
regress/sys/netinet/bindconnect/bindconnect.c
253
#define NEXTADDR(w, sa) \
regress/sys/netinet/bindconnect/bindconnect.c
254
if (rtm.rtm_addrs & (w)) { \
sbin/iked/sntrup761.c
486
return int16_nonzero_mask(weight-w);
sbin/iked/sntrup761.c
671
for (i = 0;i < w;++i) L[i] = in[i]&(uint32)-2;
sbin/iked/sntrup761.c
672
for (i = w;i < p;++i) L[i] = (in[i]&(uint32)-3)|1;
sbin/iked/sntrup761.c
773
for (i = 0;i < w;++i) r[i] = ((ev[i]^1)&~mask)^1;
sbin/iked/sntrup761.c
774
for (i = w;i < p;++i) r[i] = ev[i]&~mask;
sbin/iked/sntrup761.c
814
r[i] = -int16_negative_mask(Fq_freeze(Right(T[i])-aB[i]+4*w+1));
sbin/isakmpd/log.c
680
in_cksum(const u_int16_t *w, int len)
sbin/isakmpd/log.c
686
sum += *w++;
sbin/isakmpd/log.c
690
sum += htons(*(const u_char *)w << 8);
sbin/pfctl/parse.y
2384
filter_opts.flags.w |= $1.w;
sbin/pfctl/parse.y
262
u_int16_t w;
sbin/pfctl/parse.y
2737
action : PASS { $$.b1 = PF_PASS; $$.b2 = $$.w = 0; }
sbin/pfctl/parse.y
2738
| MATCH { $$.b1 = PF_MATCH; $$.b2 = $$.w = 0; }
sbin/pfctl/parse.y
2744
$$.w = returnicmpdefault;
sbin/pfctl/parse.y
2749
$$.w = 0;
sbin/pfctl/parse.y
2754
$$.w = 0;
sbin/pfctl/parse.y
2763
$$.w = $4;
sbin/pfctl/parse.y
2768
$$.w = returnicmpdefault;
sbin/pfctl/parse.y
2773
$$.w = returnicmpdefault;
sbin/pfctl/parse.y
2778
$$.w = $3;
sbin/pfctl/parse.y
2783
$$.w = returnicmpdefault;
sbin/pfctl/parse.y
2788
$$.w = $3;
sbin/pfctl/parse.y
2793
$$.w = returnicmpdefault;
sbin/pfctl/parse.y
467
u_int16_t w;
sbin/pfctl/parse.y
6265
parseicmpspec(char *w, sa_family_t af)
sbin/pfctl/parse.y
6276
if (atoul(w, &ulval) == -1) {
sbin/pfctl/parse.y
6277
if ((p = geticmpcodebyname(icmptype, w, af)) == NULL) {
sbin/pfctl/parse.y
6278
yyerror("unknown icmp code %s", w);
sbin/pfctl/pfctl.c
2505
pfctl_set_syncookies(struct pfctl *pf, u_int8_t val, struct pfctl_watermarks *w)
sbin/pfctl/pfctl.c
2507
if (val != PF_SYNCOOKIES_ADAPTIVE && w != NULL) {
sbin/pfctl/pfctl.c
2511
if (val == PF_SYNCOOKIES_ADAPTIVE && w != NULL) {
sbin/pfctl/pfctl.c
2512
if (!w->hi)
sbin/pfctl/pfctl.c
2513
w->hi = PF_SYNCOOKIES_HIWATPCT;
sbin/pfctl/pfctl.c
2514
if (!w->lo)
sbin/pfctl/pfctl.c
2515
w->lo = w->hi / 2;
sbin/pfctl/pfctl.c
2516
if (w->lo >= w->hi) {
sbin/pfctl/pfctl.c
2520
pf->syncookieswat[0] = w->lo;
sbin/pfctl/pfctl.c
2521
pf->syncookieswat[1] = w->hi;
sbin/pfctl/pfctl_parser.c
248
geticmptypebyname(char *w, sa_family_t af)
sbin/pfctl/pfctl_parser.c
254
if (!strcmp(w, icmp_type[i].name))
sbin/pfctl/pfctl_parser.c
259
if (!strcmp(w, icmp6_type[i].name))
sbin/pfctl/pfctl_parser.c
288
geticmpcodebyname(u_long type, char *w, sa_family_t af)
sbin/pfctl/pfctl_parser.c
295
!strcmp(w, icmp_code[i].name))
sbin/pfctl/pfctl_parser.c
301
!strcmp(w, icmp6_code[i].name))
sbin/ping/ping.c
1546
u_short *w = addr;
sbin/ping/ping.c
1556
sum += *w++;
sbin/ping/ping.c
1562
*(u_char *)(&answer) = *(u_char *)w ;
sbin/restore/interactive.c
645
int i, j, w, precision = 0, columns, lines;
sbin/restore/interactive.c
697
for (w = fp->len; w < width; w++)
sbin/route/route.c
1304
#define NEXTADDR(w, u) \
sbin/route/route.c
1305
if (rtm_addrs & (w)) { \
sbin/savecore/zopen.c
131
} w; /* Write parameters */
sbin/savecore/zopen.c
142
#define zs_fcode u.w.zs_fcode
sbin/savecore/zopen.c
143
#define zs_ent u.w.zs_ent
sbin/savecore/zopen.c
144
#define zs_hsize_reg u.w.zs_hsize_reg
sbin/savecore/zopen.c
145
#define zs_hshift u.w.zs_hshift
sbin/unwind/libunbound/libunbound/context.h
178
struct libworker* w;
sbin/unwind/libunbound/libunbound/libworker.c
100
regional_destroy(w->env->scratch);
sbin/unwind/libunbound/libunbound/libworker.c
101
ub_randfree(w->env->rnd);
sbin/unwind/libunbound/libunbound/libworker.c
102
free(w->env);
sbin/unwind/libunbound/libunbound/libworker.c
105
SSL_CTX_free(w->sslctx);
sbin/unwind/libunbound/libunbound/libworker.c
107
outside_network_delete(w->back);
sbin/unwind/libunbound/libunbound/libworker.c
112
libworker_delete(struct libworker* w)
sbin/unwind/libunbound/libunbound/libworker.c
114
if(!w) return;
sbin/unwind/libunbound/libunbound/libworker.c
115
libworker_delete_env(w);
sbin/unwind/libunbound/libunbound/libworker.c
116
comm_base_delete(w->base);
sbin/unwind/libunbound/libunbound/libworker.c
117
free(w);
sbin/unwind/libunbound/libunbound/libworker.c
121
libworker_delete_event(struct libworker* w)
sbin/unwind/libunbound/libunbound/libworker.c
123
if(!w) return;
sbin/unwind/libunbound/libunbound/libworker.c
124
libworker_delete_env(w);
sbin/unwind/libunbound/libunbound/libworker.c
125
comm_base_delete_no_base(w->base);
sbin/unwind/libunbound/libunbound/libworker.c
126
free(w);
sbin/unwind/libunbound/libunbound/libworker.c
133
struct libworker* w = (struct libworker*)calloc(1, sizeof(*w));
sbin/unwind/libunbound/libunbound/libworker.c
137
if(!w) return NULL;
sbin/unwind/libunbound/libunbound/libworker.c
138
w->is_bg = is_bg;
sbin/unwind/libunbound/libunbound/libworker.c
139
w->ctx = ctx;
sbin/unwind/libunbound/libunbound/libworker.c
140
w->env = (struct module_env*)malloc(sizeof(*w->env));
sbin/unwind/libunbound/libunbound/libworker.c
141
if(!w->env) {
sbin/unwind/libunbound/libunbound/libworker.c
142
free(w);
sbin/unwind/libunbound/libunbound/libworker.c
145
*w->env = *ctx->env;
sbin/unwind/libunbound/libunbound/libworker.c
146
w->env->alloc = context_obtain_alloc(ctx, !w->is_bg || w->is_bg_thread);
sbin/unwind/libunbound/libunbound/libworker.c
147
if(!w->env->alloc) {
sbin/unwind/libunbound/libunbound/libworker.c
148
libworker_delete(w);
sbin/unwind/libunbound/libunbound/libworker.c
151
w->thread_num = w->env->alloc->thread_num;
sbin/unwind/libunbound/libunbound/libworker.c
152
alloc_set_id_cleanup(w->env->alloc, &libworker_alloc_cleanup, w);
sbin/unwind/libunbound/libunbound/libworker.c
153
if(!w->is_bg || w->is_bg_thread) {
sbin/unwind/libunbound/libunbound/libworker.c
156
w->env->scratch = regional_create_custom(cfg->msg_buffer_size);
sbin/unwind/libunbound/libunbound/libworker.c
157
w->env->scratch_buffer = sldns_buffer_new(cfg->msg_buffer_size);
sbin/unwind/libunbound/libunbound/libworker.c
159
w->sslctx = connect_sslctx_create(NULL, NULL,
sbin/unwind/libunbound/libunbound/libworker.c
161
if(!w->sslctx) {
sbin/unwind/libunbound/libunbound/libworker.c
163
sldns_buffer_free(w->env->scratch_buffer);
sbin/unwind/libunbound/libunbound/libworker.c
164
w->env->scratch_buffer = NULL;
sbin/unwind/libunbound/libunbound/libworker.c
167
if(!w->is_bg || w->is_bg_thread) {
sbin/unwind/libunbound/libunbound/libworker.c
170
if(!w->env->scratch || !w->env->scratch_buffer) {
sbin/unwind/libunbound/libunbound/libworker.c
171
libworker_delete(w);
sbin/unwind/libunbound/libunbound/libworker.c
174
w->env->worker = (struct worker*)w;
sbin/unwind/libunbound/libunbound/libworker.c
175
w->env->probe_timer = NULL;
sbin/unwind/libunbound/libunbound/libworker.c
176
if(!w->is_bg || w->is_bg_thread) {
sbin/unwind/libunbound/libunbound/libworker.c
179
if(!(w->env->rnd = ub_initstate(ctx->seed_rnd))) {
sbin/unwind/libunbound/libunbound/libworker.c
180
if(!w->is_bg || w->is_bg_thread) {
sbin/unwind/libunbound/libunbound/libworker.c
183
libworker_delete(w);
sbin/unwind/libunbound/libunbound/libworker.c
186
if(!w->is_bg || w->is_bg_thread) {
sbin/unwind/libunbound/libunbound/libworker.c
199
hash_set_raninit((uint32_t)ub_random(w->env->rnd));
sbin/unwind/libunbound/libunbound/libworker.c
204
w->base = comm_base_create_event(eb);
sbin/unwind/libunbound/libunbound/libworker.c
205
else w->base = comm_base_create(0);
sbin/unwind/libunbound/libunbound/libworker.c
206
if(!w->base) {
sbin/unwind/libunbound/libunbound/libworker.c
207
libworker_delete(w);
sbin/unwind/libunbound/libunbound/libworker.c
210
w->env->worker_base = w->base;
sbin/unwind/libunbound/libunbound/libworker.c
211
if(!w->is_bg || w->is_bg_thread) {
sbin/unwind/libunbound/libunbound/libworker.c
216
if(!w->is_bg || w->is_bg_thread) {
sbin/unwind/libunbound/libunbound/libworker.c
219
libworker_delete(w);
sbin/unwind/libunbound/libunbound/libworker.c
222
w->back = outside_network_create(w->base, cfg->msg_buffer_size,
sbin/unwind/libunbound/libunbound/libworker.c
226
w->env->infra_cache, w->env->rnd, cfg->use_caps_bits_for_id,
sbin/unwind/libunbound/libunbound/libworker.c
228
cfg->outgoing_tcp_mss, &libworker_alloc_cleanup, w,
sbin/unwind/libunbound/libunbound/libworker.c
229
cfg->do_udp || cfg->udp_upstream_without_downstream, w->sslctx,
sbin/unwind/libunbound/libunbound/libworker.c
233
w->env->outnet = w->back;
sbin/unwind/libunbound/libunbound/libworker.c
234
if(!w->is_bg || w->is_bg_thread) {
sbin/unwind/libunbound/libunbound/libworker.c
238
if(!w->back) {
sbin/unwind/libunbound/libunbound/libworker.c
239
libworker_delete(w);
sbin/unwind/libunbound/libunbound/libworker.c
242
w->env->mesh = mesh_create(&ctx->mods, w->env);
sbin/unwind/libunbound/libunbound/libworker.c
243
if(!w->env->mesh) {
sbin/unwind/libunbound/libunbound/libworker.c
244
libworker_delete(w);
sbin/unwind/libunbound/libunbound/libworker.c
247
w->env->send_query = &libworker_send_query;
sbin/unwind/libunbound/libunbound/libworker.c
248
w->env->detach_subs = &mesh_detach_subs;
sbin/unwind/libunbound/libunbound/libworker.c
249
w->env->attach_sub = &mesh_attach_sub;
sbin/unwind/libunbound/libunbound/libworker.c
250
w->env->add_sub = &mesh_add_sub;
sbin/unwind/libunbound/libunbound/libworker.c
251
w->env->kill_sub = &mesh_state_delete;
sbin/unwind/libunbound/libunbound/libworker.c
252
w->env->detect_cycle = &mesh_detect_cycle;
sbin/unwind/libunbound/libunbound/libworker.c
253
comm_base_timept(w->base, &w->env->now, &w->env->now_tv);
sbin/unwind/libunbound/libunbound/libworker.c
255
return w;
sbin/unwind/libunbound/libunbound/libworker.c
266
handle_cancel(struct libworker* w, uint8_t* buf, uint32_t len)
sbin/unwind/libunbound/libunbound/libworker.c
269
if(w->is_bg_thread) {
sbin/unwind/libunbound/libunbound/libworker.c
270
lock_basic_lock(&w->ctx->cfglock);
sbin/unwind/libunbound/libunbound/libworker.c
271
q = context_deserialize_cancel(w->ctx, buf, len);
sbin/unwind/libunbound/libunbound/libworker.c
272
lock_basic_unlock(&w->ctx->cfglock);
sbin/unwind/libunbound/libunbound/libworker.c
274
q = context_deserialize_cancel(w->ctx, buf, len);
sbin/unwind/libunbound/libunbound/libworker.c
287
libworker_do_cmd(struct libworker* w, uint8_t* msg, uint32_t len)
sbin/unwind/libunbound/libunbound/libworker.c
299
comm_base_exit(w->base);
sbin/unwind/libunbound/libunbound/libworker.c
302
handle_newq(w, msg, len);
sbin/unwind/libunbound/libunbound/libworker.c
305
handle_cancel(w, msg, len);
sbin/unwind/libunbound/libunbound/libworker.c
315
struct libworker* w = (struct libworker*)arg;
sbin/unwind/libunbound/libunbound/libworker.c
320
comm_base_exit(w->base);
sbin/unwind/libunbound/libunbound/libworker.c
323
libworker_do_cmd(w, msg, len); /* also frees the buf */
sbin/unwind/libunbound/libunbound/libworker.c
332
struct libworker* w = (struct libworker*)arg;
sbin/unwind/libunbound/libunbound/libworker.c
334
if(!w) {
sbin/unwind/libunbound/libunbound/libworker.c
338
ctx = w->ctx;
sbin/unwind/libunbound/libunbound/libworker.c
339
log_thread_set(&w->thread_num);
sbin/unwind/libunbound/libunbound/libworker.c
342
w->is_bg_thread = 0;
sbin/unwind/libunbound/libunbound/libworker.c
347
if(!tube_setup_bg_listen(ctx->qq_pipe, w->base,
sbin/unwind/libunbound/libunbound/libworker.c
348
libworker_handle_control_cmd, w)) {
sbin/unwind/libunbound/libunbound/libworker.c
352
if(!tube_setup_bg_write(ctx->rr_pipe, w->base)) {
sbin/unwind/libunbound/libunbound/libworker.c
358
comm_base_dispatch(w->base);
sbin/unwind/libunbound/libunbound/libworker.c
362
w->want_quit = 1;
sbin/unwind/libunbound/libunbound/libworker.c
363
tube_remove_bg_listen(w->ctx->qq_pipe);
sbin/unwind/libunbound/libunbound/libworker.c
364
tube_remove_bg_write(w->ctx->rr_pipe);
sbin/unwind/libunbound/libunbound/libworker.c
365
libworker_delete(w);
sbin/unwind/libunbound/libunbound/libworker.c
378
struct libworker* w;
sbin/unwind/libunbound/libunbound/libworker.c
383
w = libworker_setup(ctx, 1, NULL);
sbin/unwind/libunbound/libunbound/libworker.c
384
if(!w) return UB_NOMEM;
sbin/unwind/libunbound/libunbound/libworker.c
385
w->is_bg_thread = 1;
sbin/unwind/libunbound/libunbound/libworker.c
386
ctx->thread_worker = w;
sbin/unwind/libunbound/libunbound/libworker.c
388
w->thread_num = 1; /* for nicer DEBUG checklocks */
sbin/unwind/libunbound/libunbound/libworker.c
390
ub_thread_create(&ctx->bg_tid, libworker_dobg, w);
sbin/unwind/libunbound/libunbound/libworker.c
399
w = libworker_setup(ctx, 1, NULL);
sbin/unwind/libunbound/libunbound/libworker.c
400
if(!w) fatal_exit("out of memory");
sbin/unwind/libunbound/libunbound/libworker.c
404
(void)libworker_dobg(w);
sbin/unwind/libunbound/libunbound/libworker.c
562
libworker_enter_result(q->res, buf, q->w->env->scratch, s);
sbin/unwind/libunbound/libunbound/libworker.c
571
comm_base_exit(q->w->base);
sbin/unwind/libunbound/libunbound/libworker.c
578
setup_qinfo_edns(struct libworker* w, struct ctx_query* q,
sbin/unwind/libunbound/libunbound/libworker.c
598
if(sldns_buffer_capacity(w->back->udp_buff) < 65535)
sbin/unwind/libunbound/libunbound/libworker.c
600
w->back->udp_buff);
sbin/unwind/libunbound/libunbound/libworker.c
607
struct libworker* w = libworker_setup(ctx, 0, NULL);
sbin/unwind/libunbound/libunbound/libworker.c
611
if(!w)
sbin/unwind/libunbound/libunbound/libworker.c
613
if(!setup_qinfo_edns(w, q, &qinfo, &edns)) {
sbin/unwind/libunbound/libunbound/libworker.c
614
libworker_delete(w);
sbin/unwind/libunbound/libunbound/libworker.c
619
q->w = w;
sbin/unwind/libunbound/libunbound/libworker.c
621
sldns_buffer_write_u16_at(w->back->udp_buff, 0, qid);
sbin/unwind/libunbound/libunbound/libworker.c
622
sldns_buffer_write_u16_at(w->back->udp_buff, 2, qflags);
sbin/unwind/libunbound/libunbound/libworker.c
623
if(local_zones_answer(ctx->local_zones, w->env, &qinfo, &edns,
sbin/unwind/libunbound/libunbound/libworker.c
624
w->back->udp_buff, w->env->scratch, NULL, NULL, 0, NULL, 0,
sbin/unwind/libunbound/libunbound/libworker.c
626
regional_free_all(w->env->scratch);
sbin/unwind/libunbound/libunbound/libworker.c
628
w->back->udp_buff, sec_status_insecure, NULL, 0);
sbin/unwind/libunbound/libunbound/libworker.c
629
libworker_delete(w);
sbin/unwind/libunbound/libunbound/libworker.c
634
ctx->env->auth_zones, w->env, &qinfo, &edns, NULL,
sbin/unwind/libunbound/libunbound/libworker.c
635
w->back->udp_buff, w->env->scratch)) {
sbin/unwind/libunbound/libunbound/libworker.c
636
regional_free_all(w->env->scratch);
sbin/unwind/libunbound/libunbound/libworker.c
638
w->back->udp_buff, sec_status_insecure, NULL, 0);
sbin/unwind/libunbound/libunbound/libworker.c
639
libworker_delete(w);
sbin/unwind/libunbound/libunbound/libworker.c
644
if(!mesh_new_callback(w->env->mesh, &qinfo, qflags, &edns,
sbin/unwind/libunbound/libunbound/libworker.c
645
w->back->udp_buff, qid, libworker_fg_done_cb, q, 0)) {
sbin/unwind/libunbound/libunbound/libworker.c
652
comm_base_dispatch(w->base);
sbin/unwind/libunbound/libunbound/libworker.c
654
libworker_delete(w);
sbin/unwind/libunbound/libunbound/libworker.c
668
struct ub_ctx* ctx = q->w->ctx;
sbin/unwind/libunbound/libunbound/libworker.c
690
struct libworker* w = ctx->event_worker;
sbin/unwind/libunbound/libunbound/libworker.c
694
if(!w)
sbin/unwind/libunbound/libunbound/libworker.c
696
if(!setup_qinfo_edns(w, q, &qinfo, &edns))
sbin/unwind/libunbound/libunbound/libworker.c
700
q->w = w;
sbin/unwind/libunbound/libunbound/libworker.c
702
sldns_buffer_write_u16_at(w->back->udp_buff, 0, qid);
sbin/unwind/libunbound/libunbound/libworker.c
703
sldns_buffer_write_u16_at(w->back->udp_buff, 2, qflags);
sbin/unwind/libunbound/libunbound/libworker.c
704
if(local_zones_answer(ctx->local_zones, w->env, &qinfo, &edns,
sbin/unwind/libunbound/libunbound/libworker.c
705
w->back->udp_buff, w->env->scratch, NULL, NULL, 0, NULL, 0,
sbin/unwind/libunbound/libunbound/libworker.c
707
regional_free_all(w->env->scratch);
sbin/unwind/libunbound/libunbound/libworker.c
710
w->back->udp_buff, sec_status_insecure, NULL, 0);
sbin/unwind/libunbound/libunbound/libworker.c
714
ctx->env->auth_zones, w->env, &qinfo, &edns, NULL,
sbin/unwind/libunbound/libunbound/libworker.c
715
w->back->udp_buff, w->env->scratch)) {
sbin/unwind/libunbound/libunbound/libworker.c
716
regional_free_all(w->env->scratch);
sbin/unwind/libunbound/libunbound/libworker.c
719
w->back->udp_buff, sec_status_insecure, NULL, 0);
sbin/unwind/libunbound/libunbound/libworker.c
725
if(!mesh_new_callback(w->env->mesh, &qinfo, qflags, &edns,
sbin/unwind/libunbound/libunbound/libworker.c
726
w->back->udp_buff, qid, libworker_event_done_cb, q, 0)) {
sbin/unwind/libunbound/libunbound/libworker.c
736
add_bg_result(struct libworker* w, struct ctx_query* q, sldns_buffer* pkt,
sbin/unwind/libunbound/libunbound/libworker.c
742
if(w->want_quit) {
sbin/unwind/libunbound/libunbound/libworker.c
747
if(w->is_bg_thread) {
sbin/unwind/libunbound/libunbound/libworker.c
748
lock_basic_lock(&w->ctx->cfglock);
sbin/unwind/libunbound/libunbound/libworker.c
763
lock_basic_unlock(&w->ctx->cfglock);
sbin/unwind/libunbound/libunbound/libworker.c
769
(void)rbtree_delete(&w->ctx->queries, q->node.key);
sbin/unwind/libunbound/libunbound/libworker.c
770
w->ctx->num_async--;
sbin/unwind/libunbound/libunbound/libworker.c
778
if(!tube_queue_item(w->ctx->rr_pipe, msg, len)) {
sbin/unwind/libunbound/libunbound/libworker.c
790
if(q->cancelled || q->w->back->want_to_quit) {
sbin/unwind/libunbound/libunbound/libworker.c
791
if(q->w->is_bg_thread) {
sbin/unwind/libunbound/libunbound/libworker.c
793
struct ub_ctx* ctx = q->w->ctx;
sbin/unwind/libunbound/libunbound/libworker.c
805
buf = q->w->env->scratch_buffer;
sbin/unwind/libunbound/libunbound/libworker.c
810
add_bg_result(q->w, q, buf, UB_NOERROR, why_bogus, was_ratelimited);
sbin/unwind/libunbound/libunbound/libworker.c
816
handle_newq(struct libworker* w, uint8_t* buf, uint32_t len)
sbin/unwind/libunbound/libunbound/libworker.c
822
if(w->is_bg_thread) {
sbin/unwind/libunbound/libunbound/libworker.c
823
lock_basic_lock(&w->ctx->cfglock);
sbin/unwind/libunbound/libunbound/libworker.c
824
q = context_lookup_new_query(w->ctx, buf, len);
sbin/unwind/libunbound/libunbound/libworker.c
825
lock_basic_unlock(&w->ctx->cfglock);
sbin/unwind/libunbound/libunbound/libworker.c
827
q = context_deserialize_new_query(w->ctx, buf, len);
sbin/unwind/libunbound/libunbound/libworker.c
834
if(!setup_qinfo_edns(w, q, &qinfo, &edns)) {
sbin/unwind/libunbound/libunbound/libworker.c
835
add_bg_result(w, q, NULL, UB_SYNTAX, NULL, 0);
sbin/unwind/libunbound/libunbound/libworker.c
841
sldns_buffer_write_u16_at(w->back->udp_buff, 0, qid);
sbin/unwind/libunbound/libunbound/libworker.c
842
sldns_buffer_write_u16_at(w->back->udp_buff, 2, qflags);
sbin/unwind/libunbound/libunbound/libworker.c
843
if(local_zones_answer(w->ctx->local_zones, w->env, &qinfo, &edns,
sbin/unwind/libunbound/libunbound/libworker.c
844
w->back->udp_buff, w->env->scratch, NULL, NULL, 0, NULL, 0,
sbin/unwind/libunbound/libunbound/libworker.c
846
regional_free_all(w->env->scratch);
sbin/unwind/libunbound/libunbound/libworker.c
848
add_bg_result(w, q, w->back->udp_buff, UB_NOERROR, NULL, 0);
sbin/unwind/libunbound/libunbound/libworker.c
852
if(w->ctx->env->auth_zones && auth_zones_downstream_answer(
sbin/unwind/libunbound/libunbound/libworker.c
853
w->ctx->env->auth_zones, w->env, &qinfo, &edns, NULL,
sbin/unwind/libunbound/libunbound/libworker.c
854
w->back->udp_buff, w->env->scratch)) {
sbin/unwind/libunbound/libunbound/libworker.c
855
regional_free_all(w->env->scratch);
sbin/unwind/libunbound/libunbound/libworker.c
857
add_bg_result(w, q, w->back->udp_buff, UB_NOERROR, NULL, 0);
sbin/unwind/libunbound/libunbound/libworker.c
861
q->w = w;
sbin/unwind/libunbound/libunbound/libworker.c
863
if(!mesh_new_callback(w->env->mesh, &qinfo, qflags, &edns,
sbin/unwind/libunbound/libunbound/libworker.c
864
w->back->udp_buff, qid, libworker_bg_done_cb, q, 0)) {
sbin/unwind/libunbound/libunbound/libworker.c
865
add_bg_result(w, q, NULL, UB_NOMEM, NULL, 0);
sbin/unwind/libunbound/libunbound/libworker.c
872
struct libworker* w = (struct libworker*)arg;
sbin/unwind/libunbound/libunbound/libworker.c
873
slabhash_clear(&w->env->rrset_cache->table);
sbin/unwind/libunbound/libunbound/libworker.c
874
slabhash_clear(w->env->msg_cache);
sbin/unwind/libunbound/libunbound/libworker.c
88
static void handle_newq(struct libworker* w, uint8_t* buf, uint32_t len);
sbin/unwind/libunbound/libunbound/libworker.c
884
struct libworker* w = (struct libworker*)q->env->worker;
sbin/unwind/libunbound/libunbound/libworker.c
890
e->qsent = outnet_serviced_query(w->back, qinfo, flags, dnssec,
sbin/unwind/libunbound/libunbound/libworker.c
893
libworker_handle_service_reply, e, w->back->udp_buff, q->env,
sbin/unwind/libunbound/libunbound/libworker.c
92
libworker_delete_env(struct libworker* w)
sbin/unwind/libunbound/libunbound/libworker.c
94
if(w->env) {
sbin/unwind/libunbound/libunbound/libworker.c
95
outside_network_quit_prepare(w->back);
sbin/unwind/libunbound/libunbound/libworker.c
96
mesh_delete(w->env->mesh);
sbin/unwind/libunbound/libunbound/libworker.c
97
context_release_alloc(w->ctx, w->env->alloc,
sbin/unwind/libunbound/libunbound/libworker.c
98
!w->is_bg || w->is_bg_thread);
sbin/unwind/libunbound/libunbound/libworker.c
99
sldns_buffer_free(w->env->scratch_buffer);
sbin/unwind/libunbound/libunbound/libworker.h
137
void libworker_delete_event(struct libworker* w);
sbin/unwind/libunbound/services/authzone.c
1655
int w = 0;
sbin/unwind/libunbound/services/authzone.c
1661
w += sldns_wire2str_dname_scan(&dat, &datlen, &s, &slen, NULL, 0, NULL);
sbin/unwind/libunbound/services/authzone.c
1662
w += sldns_str_print(&s, &slen, "\t");
sbin/unwind/libunbound/services/authzone.c
1663
w += sldns_str_print(&s, &slen, "%lu\t", (unsigned long)data->rr_ttl[i]);
sbin/unwind/libunbound/services/authzone.c
1664
w += sldns_wire2str_class_print(&s, &slen, cl);
sbin/unwind/libunbound/services/authzone.c
1665
w += sldns_str_print(&s, &slen, "\t");
sbin/unwind/libunbound/services/authzone.c
1666
w += sldns_wire2str_type_print(&s, &slen, tp);
sbin/unwind/libunbound/services/authzone.c
1667
w += sldns_str_print(&s, &slen, "\t");
sbin/unwind/libunbound/services/authzone.c
1670
w += sldns_wire2str_rdata_scan(&dat, &datlen, &s, &slen, tp, NULL, 0, NULL);
sbin/unwind/libunbound/services/authzone.c
1673
w += sldns_str_print(&s, &slen, " ;{id = %u}",
sbin/unwind/libunbound/services/authzone.c
1677
w += sldns_str_print(&s, &slen, "\n");
sbin/unwind/libunbound/services/authzone.c
1679
if(w >= (int)buflen) {
sbin/unwind/libunbound/services/cache/infra.c
1279
struct wait_limit_netblock_info* w;
sbin/unwind/libunbound/services/cache/infra.c
1288
w = (struct wait_limit_netblock_info*)addr_tree_lookup(tree,
sbin/unwind/libunbound/services/cache/infra.c
1290
if(w) {
sbin/unwind/libunbound/services/cache/infra.c
1291
if(w->limit != -1 && mesh_wait > w->limit)
sbin/unwind/libunbound/services/outside_network.c
1002
memcpy(&pend->reuse.addr, &w->addr, w->addrlen);
sbin/unwind/libunbound/services/outside_network.c
1003
pend->reuse.addrlen = w->addrlen;
sbin/unwind/libunbound/services/outside_network.c
1004
if(!outnet_tcp_take_into_use(w)) {
sbin/unwind/libunbound/services/outside_network.c
1005
waiting_tcp_callback(w, NULL, NETEVENT_CLOSED,
sbin/unwind/libunbound/services/outside_network.c
1007
waiting_tcp_delete(w);
sbin/unwind/libunbound/services/outside_network.c
1009
w = NULL;
sbin/unwind/libunbound/services/outside_network.c
1017
outnet_waiting_tcp_list_add_first(outnet, w, 0);
sbin/unwind/libunbound/services/outside_network.c
1021
if(outnet->dtenv && pend_tcp && w && w->sq &&
sbin/unwind/libunbound/services/outside_network.c
1025
sldns_buffer_init_frm_data(&tmp, w->pkt, w->pkt_len);
sbin/unwind/libunbound/services/outside_network.c
1026
dt_msg_send_outside_query(outnet->dtenv, &w->sq->addr,
sbin/unwind/libunbound/services/outside_network.c
1027
&pend_tcp->pi->addr, comm_tcp, NULL, w->sq->zone,
sbin/unwind/libunbound/services/outside_network.c
1028
w->sq->zonelen, &tmp);
sbin/unwind/libunbound/services/outside_network.c
1036
reuse_tree_by_id_delete(struct reuse_tcp* reuse, struct waiting_tcp* w)
sbin/unwind/libunbound/services/outside_network.c
1041
log_assert(w->id_node.key != NULL);
sbin/unwind/libunbound/services/outside_network.c
1047
rbtree_delete(&reuse->tree_by_id, w);
sbin/unwind/libunbound/services/outside_network.c
1049
w->id_node.key = NULL;
sbin/unwind/libunbound/services/outside_network.c
1063
struct waiting_tcp* w;
sbin/unwind/libunbound/services/outside_network.c
1083
w = pend->query;
sbin/unwind/libunbound/services/outside_network.c
1089
w->error_count ++;
sbin/unwind/libunbound/services/outside_network.c
1090
reuse_tree_by_id_delete(&pend->reuse, w);
sbin/unwind/libunbound/services/outside_network.c
1091
outnet_waiting_tcp_list_add(outnet, w, 1);
sbin/unwind/libunbound/services/outside_network.c
1093
while((w = reuse_write_wait_pop(&pend->reuse)) != NULL) {
sbin/unwind/libunbound/services/outside_network.c
1094
if(verbosity >= VERB_CLIENT && w->pkt_len > 12+2+2 &&
sbin/unwind/libunbound/services/outside_network.c
1095
LDNS_QDCOUNT(w->pkt) > 0 &&
sbin/unwind/libunbound/services/outside_network.c
1096
dname_valid(w->pkt+12, w->pkt_len-12)) {
sbin/unwind/libunbound/services/outside_network.c
1098
dname_str(w->pkt+12, buf);
sbin/unwind/libunbound/services/outside_network.c
1101
reuse_tree_by_id_delete(&pend->reuse, w);
sbin/unwind/libunbound/services/outside_network.c
1102
outnet_waiting_tcp_list_add(outnet, w, 1);
sbin/unwind/libunbound/services/outside_network.c
1171
struct waiting_tcp* w = (struct waiting_tcp*)node->key;
sbin/unwind/libunbound/services/outside_network.c
1172
waiting_tcp_delete(w);
sbin/unwind/libunbound/services/outside_network.c
1230
struct waiting_tcp* w = (struct waiting_tcp*)node->key;
sbin/unwind/libunbound/services/outside_network.c
1231
waiting_tcp_callback(w, NULL, err, NULL);
sbin/unwind/libunbound/services/outside_network.c
1240
struct waiting_tcp* w = (struct waiting_tcp*)node->key;
sbin/unwind/libunbound/services/outside_network.c
1244
w->in_cb_and_decommission = 1;
sbin/unwind/libunbound/services/outside_network.c
1248
if(w->cb)
sbin/unwind/libunbound/services/outside_network.c
1249
((struct serviced_query*)w->cb_arg)->to_be_deleted = 1;
sbin/unwind/libunbound/services/outside_network.c
1300
struct waiting_tcp* w = NULL;
sbin/unwind/libunbound/services/outside_network.c
1366
w = reuse_tcp_by_id_find(&pend->reuse, id);
sbin/unwind/libunbound/services/outside_network.c
1371
if(w && (w->on_tcp_waiting_list || w->write_wait_queued))
sbin/unwind/libunbound/services/outside_network.c
1372
w = NULL;
sbin/unwind/libunbound/services/outside_network.c
1375
if(error == NETEVENT_NOERROR && !w) {
sbin/unwind/libunbound/services/outside_network.c
1389
if(w) {
sbin/unwind/libunbound/services/outside_network.c
1390
log_assert(!w->on_tcp_waiting_list);
sbin/unwind/libunbound/services/outside_network.c
1391
log_assert(!w->write_wait_queued);
sbin/unwind/libunbound/services/outside_network.c
1392
reuse_tree_by_id_delete(&pend->reuse, w);
sbin/unwind/libunbound/services/outside_network.c
1395
waiting_tcp_callback(w, c, error, reply_info);
sbin/unwind/libunbound/services/outside_network.c
1396
waiting_tcp_delete(w);
sbin/unwind/libunbound/services/outside_network.c
195
waiting_tcp_delete(struct waiting_tcp* w)
sbin/unwind/libunbound/services/outside_network.c
197
if(!w) return;
sbin/unwind/libunbound/services/outside_network.c
198
if(w->timer)
sbin/unwind/libunbound/services/outside_network.c
199
comm_timer_delete(w->timer);
sbin/unwind/libunbound/services/outside_network.c
200
free(w);
sbin/unwind/libunbound/services/outside_network.c
213
pick_outgoing_tcp(struct pending_tcp* pend, struct waiting_tcp* w, int s)
sbin/unwind/libunbound/services/outside_network.c
219
if(addr_is_ip6(&w->addr, w->addrlen))
sbin/unwind/libunbound/services/outside_network.c
220
num = w->outnet->num_ip6;
sbin/unwind/libunbound/services/outside_network.c
223
num = w->outnet->num_ip4;
sbin/unwind/libunbound/services/outside_network.c
226
log_addr(VERB_OPS, "for addr", &w->addr, w->addrlen);
sbin/unwind/libunbound/services/outside_network.c
231
if(addr_is_ip6(&w->addr, w->addrlen))
sbin/unwind/libunbound/services/outside_network.c
232
pi = &w->outnet->ip6_ifs[ub_random_max(w->outnet->rnd, num)];
sbin/unwind/libunbound/services/outside_network.c
2326
struct waiting_tcp* w = (struct waiting_tcp*)arg;
sbin/unwind/libunbound/services/outside_network.c
2327
struct outside_network* outnet = w->outnet;
sbin/unwind/libunbound/services/outside_network.c
2329
if(w->on_tcp_waiting_list) {
sbin/unwind/libunbound/services/outside_network.c
2331
outnet_waiting_tcp_list_remove(outnet, w);
sbin/unwind/libunbound/services/outside_network.c
2332
waiting_tcp_callback(w, NULL, NETEVENT_TIMEOUT, NULL);
sbin/unwind/libunbound/services/outside_network.c
2333
waiting_tcp_delete(w);
sbin/unwind/libunbound/services/outside_network.c
2336
struct pending_tcp* pend=(struct pending_tcp*)w->next_waiting;
sbin/unwind/libunbound/services/outside_network.c
235
pi = &w->outnet->ip4_ifs[ub_random_max(w->outnet->rnd, num)];
sbin/unwind/libunbound/services/outside_network.c
2439
struct waiting_tcp* w;
sbin/unwind/libunbound/services/outside_network.c
2470
w = (struct waiting_tcp*)malloc(sizeof(struct waiting_tcp)
sbin/unwind/libunbound/services/outside_network.c
2472
if(!w) {
sbin/unwind/libunbound/services/outside_network.c
2475
if(!(w->timer = comm_timer_create(sq->outnet->base, outnet_tcptimer, w))) {
sbin/unwind/libunbound/services/outside_network.c
2476
free(w);
sbin/unwind/libunbound/services/outside_network.c
2479
w->pkt = (uint8_t*)w + sizeof(struct waiting_tcp);
sbin/unwind/libunbound/services/outside_network.c
2480
w->pkt_len = sldns_buffer_limit(packet);
sbin/unwind/libunbound/services/outside_network.c
2481
memmove(w->pkt, sldns_buffer_begin(packet), w->pkt_len);
sbin/unwind/libunbound/services/outside_network.c
2482
w->id = tcp_select_id(sq->outnet, reuse);
sbin/unwind/libunbound/services/outside_network.c
2483
LDNS_ID_SET(w->pkt, w->id);
sbin/unwind/libunbound/services/outside_network.c
2484
memcpy(&w->addr, &sq->addr, sq->addrlen);
sbin/unwind/libunbound/services/outside_network.c
2485
w->addrlen = sq->addrlen;
sbin/unwind/libunbound/services/outside_network.c
2486
w->outnet = sq->outnet;
sbin/unwind/libunbound/services/outside_network.c
2487
w->on_tcp_waiting_list = 0;
sbin/unwind/libunbound/services/outside_network.c
2488
w->next_waiting = NULL;
sbin/unwind/libunbound/services/outside_network.c
2489
w->cb = callback;
sbin/unwind/libunbound/services/outside_network.c
2490
w->cb_arg = callback_arg;
sbin/unwind/libunbound/services/outside_network.c
2491
w->ssl_upstream = sq->ssl_upstream;
sbin/unwind/libunbound/services/outside_network.c
2492
w->tls_auth_name = sq->tls_auth_name;
sbin/unwind/libunbound/services/outside_network.c
2493
w->timeout = timeout;
sbin/unwind/libunbound/services/outside_network.c
2494
w->id_node.key = NULL;
sbin/unwind/libunbound/services/outside_network.c
2495
w->write_wait_prev = NULL;
sbin/unwind/libunbound/services/outside_network.c
2496
w->write_wait_next = NULL;
sbin/unwind/libunbound/services/outside_network.c
2497
w->write_wait_queued = 0;
sbin/unwind/libunbound/services/outside_network.c
2498
w->error_count = 0;
sbin/unwind/libunbound/services/outside_network.c
2500
w->sq = NULL;
sbin/unwind/libunbound/services/outside_network.c
2502
w->in_cb_and_decommission = 0;
sbin/unwind/libunbound/services/outside_network.c
2510
w->next_waiting = (void*)pend;
sbin/unwind/libunbound/services/outside_network.c
2511
reuse_tree_by_id_insert(&pend->reuse, w);
sbin/unwind/libunbound/services/outside_network.c
2517
pend->query = w;
sbin/unwind/libunbound/services/outside_network.c
2519
w);
sbin/unwind/libunbound/services/outside_network.c
2523
reuse_write_wait_push_back(&pend->reuse, w);
sbin/unwind/libunbound/services/outside_network.c
2533
if(!outnet_tcp_take_into_use(w)) {
sbin/unwind/libunbound/services/outside_network.c
2534
waiting_tcp_delete(w);
sbin/unwind/libunbound/services/outside_network.c
2544
sldns_buffer_init_frm_data(&tmp, w->pkt, w->pkt_len);
sbin/unwind/libunbound/services/outside_network.c
2556
w->sq = sq;
sbin/unwind/libunbound/services/outside_network.c
2558
outnet_waiting_tcp_list_add(sq->outnet, w, 1);
sbin/unwind/libunbound/services/outside_network.c
2560
return w;
sbin/unwind/libunbound/services/outside_network.c
2709
reuse_tcp_remove_serviced_keep(struct waiting_tcp* w,
sbin/unwind/libunbound/services/outside_network.c
2712
struct pending_tcp* pend_tcp = (struct pending_tcp*)w->next_waiting;
sbin/unwind/libunbound/services/outside_network.c
2718
w->cb = NULL;
sbin/unwind/libunbound/services/outside_network.c
2768
struct waiting_tcp* w = (struct waiting_tcp*)
sbin/unwind/libunbound/services/outside_network.c
2771
log_assert(!(w->write_wait_queued && w->on_tcp_waiting_list));
sbin/unwind/libunbound/services/outside_network.c
2774
if(w->write_wait_queued) {
sbin/unwind/libunbound/services/outside_network.c
2776
(struct pending_tcp*)w->next_waiting;
sbin/unwind/libunbound/services/outside_network.c
2778
if(!w->in_cb_and_decommission)
sbin/unwind/libunbound/services/outside_network.c
2779
reuse_tree_by_id_delete(&pend->reuse, w);
sbin/unwind/libunbound/services/outside_network.c
2780
reuse_write_wait_remove(&pend->reuse, w);
sbin/unwind/libunbound/services/outside_network.c
2781
if(!w->in_cb_and_decommission)
sbin/unwind/libunbound/services/outside_network.c
2782
waiting_tcp_delete(w);
sbin/unwind/libunbound/services/outside_network.c
2783
} else if(!w->on_tcp_waiting_list) {
sbin/unwind/libunbound/services/outside_network.c
2785
(struct pending_tcp*)w->next_waiting;
sbin/unwind/libunbound/services/outside_network.c
2790
w->cb = NULL;
sbin/unwind/libunbound/services/outside_network.c
2791
if(!reuse_tcp_remove_serviced_keep(w, sq)) {
sbin/unwind/libunbound/services/outside_network.c
2792
if(!w->in_cb_and_decommission)
sbin/unwind/libunbound/services/outside_network.c
2800
outnet_waiting_tcp_list_remove(sq->outnet, w);
sbin/unwind/libunbound/services/outside_network.c
2801
if(!w->in_cb_and_decommission)
sbin/unwind/libunbound/services/outside_network.c
2802
waiting_tcp_delete(w);
sbin/unwind/libunbound/services/outside_network.c
3094
struct waiting_tcp* w = (struct waiting_tcp*)sq->pending;
sbin/unwind/libunbound/services/outside_network.c
3097
if(w && !w->on_tcp_waiting_list && w->next_waiting) {
sbin/unwind/libunbound/services/outside_network.c
3098
pend_tcp = (struct pending_tcp*)w->next_waiting;
sbin/unwind/libunbound/services/outside_network.c
3855
waiting_tcp_get_mem(struct waiting_tcp* w)
sbin/unwind/libunbound/services/outside_network.c
3858
if(!w) return 0;
sbin/unwind/libunbound/services/outside_network.c
3859
s = sizeof(*w) + w->pkt_len;
sbin/unwind/libunbound/services/outside_network.c
3860
if(w->timer)
sbin/unwind/libunbound/services/outside_network.c
3861
s += comm_timer_get_mem(w->timer);
sbin/unwind/libunbound/services/outside_network.c
388
struct waiting_tcp* w = reuse->write_wait_first;
sbin/unwind/libunbound/services/outside_network.c
3884
waiting_udp_get_mem(struct pending* w)
sbin/unwind/libunbound/services/outside_network.c
3887
s = sizeof(*w) + comm_timer_get_mem(w->timer) + w->pkt_len;
sbin/unwind/libunbound/services/outside_network.c
389
if(!w)
sbin/unwind/libunbound/services/outside_network.c
3895
struct waiting_tcp* w;
sbin/unwind/libunbound/services/outside_network.c
391
log_assert(w->write_wait_queued);
sbin/unwind/libunbound/services/outside_network.c
392
log_assert(!w->write_wait_prev);
sbin/unwind/libunbound/services/outside_network.c
3921
for(w=outnet->tcp_wait_first; w; w = w->next_waiting)
sbin/unwind/libunbound/services/outside_network.c
3922
s += waiting_tcp_get_mem(w);
sbin/unwind/libunbound/services/outside_network.c
393
reuse->write_wait_first = w->write_wait_next;
sbin/unwind/libunbound/services/outside_network.c
394
if(w->write_wait_next)
sbin/unwind/libunbound/services/outside_network.c
395
w->write_wait_next->write_wait_prev = NULL;
sbin/unwind/libunbound/services/outside_network.c
397
w->write_wait_queued = 0;
sbin/unwind/libunbound/services/outside_network.c
398
w->write_wait_next = NULL;
sbin/unwind/libunbound/services/outside_network.c
399
w->write_wait_prev = NULL;
sbin/unwind/libunbound/services/outside_network.c
400
return w;
sbin/unwind/libunbound/services/outside_network.c
405
reuse_write_wait_remove(struct reuse_tcp* reuse, struct waiting_tcp* w)
sbin/unwind/libunbound/services/outside_network.c
407
log_assert(w);
sbin/unwind/libunbound/services/outside_network.c
408
log_assert(w->write_wait_queued);
sbin/unwind/libunbound/services/outside_network.c
409
if(!w)
sbin/unwind/libunbound/services/outside_network.c
411
if(!w->write_wait_queued)
sbin/unwind/libunbound/services/outside_network.c
413
if(w->write_wait_prev)
sbin/unwind/libunbound/services/outside_network.c
414
w->write_wait_prev->write_wait_next = w->write_wait_next;
sbin/unwind/libunbound/services/outside_network.c
415
else reuse->write_wait_first = w->write_wait_next;
sbin/unwind/libunbound/services/outside_network.c
416
log_assert(!w->write_wait_prev ||
sbin/unwind/libunbound/services/outside_network.c
417
w->write_wait_prev->write_wait_next != w->write_wait_prev);
sbin/unwind/libunbound/services/outside_network.c
418
if(w->write_wait_next)
sbin/unwind/libunbound/services/outside_network.c
419
w->write_wait_next->write_wait_prev = w->write_wait_prev;
sbin/unwind/libunbound/services/outside_network.c
420
else reuse->write_wait_last = w->write_wait_prev;
sbin/unwind/libunbound/services/outside_network.c
421
log_assert(!w->write_wait_next
sbin/unwind/libunbound/services/outside_network.c
422
|| w->write_wait_next->write_wait_prev != w->write_wait_next);
sbin/unwind/libunbound/services/outside_network.c
423
w->write_wait_queued = 0;
sbin/unwind/libunbound/services/outside_network.c
424
w->write_wait_next = NULL;
sbin/unwind/libunbound/services/outside_network.c
425
w->write_wait_prev = NULL;
sbin/unwind/libunbound/services/outside_network.c
430
reuse_write_wait_push_back(struct reuse_tcp* reuse, struct waiting_tcp* w)
sbin/unwind/libunbound/services/outside_network.c
432
if(!w) return;
sbin/unwind/libunbound/services/outside_network.c
433
log_assert(!w->write_wait_queued);
sbin/unwind/libunbound/services/outside_network.c
435
reuse->write_wait_last->write_wait_next = w;
sbin/unwind/libunbound/services/outside_network.c
438
w->write_wait_prev = reuse->write_wait_last;
sbin/unwind/libunbound/services/outside_network.c
440
reuse->write_wait_first = w;
sbin/unwind/libunbound/services/outside_network.c
441
w->write_wait_prev = NULL;
sbin/unwind/libunbound/services/outside_network.c
443
w->write_wait_next = NULL;
sbin/unwind/libunbound/services/outside_network.c
444
reuse->write_wait_last = w;
sbin/unwind/libunbound/services/outside_network.c
445
w->write_wait_queued = 1;
sbin/unwind/libunbound/services/outside_network.c
450
reuse_tree_by_id_insert(struct reuse_tcp* reuse, struct waiting_tcp* w)
sbin/unwind/libunbound/services/outside_network.c
455
log_assert(w->id_node.key == NULL);
sbin/unwind/libunbound/services/outside_network.c
456
w->id_node.key = w;
sbin/unwind/libunbound/services/outside_network.c
462
rbtree_insert(&reuse->tree_by_id, &w->id_node);
sbin/unwind/libunbound/services/outside_network.c
484
struct waiting_tcp* w = (struct waiting_tcp*)node->key;
sbin/unwind/libunbound/services/outside_network.c
485
return w->id;
sbin/unwind/libunbound/services/outside_network.c
619
struct waiting_tcp* w)
sbin/unwind/libunbound/services/outside_network.c
624
(int)w->pkt_len, w->timeout);
sbin/unwind/libunbound/services/outside_network.c
625
pend->c->tcp_write_pkt = w->pkt;
sbin/unwind/libunbound/services/outside_network.c
626
pend->c->tcp_write_pkt_len = w->pkt_len;
sbin/unwind/libunbound/services/outside_network.c
635
tv.tv_sec = w->timeout/1000;
sbin/unwind/libunbound/services/outside_network.c
636
tv.tv_usec = (w->timeout%1000)*1000;
sbin/unwind/libunbound/services/outside_network.c
641
comm_timer_set(w->timer, &tv);
sbin/unwind/libunbound/services/outside_network.c
646
outnet_tcp_take_into_use(struct waiting_tcp* w)
sbin/unwind/libunbound/services/outside_network.c
648
struct pending_tcp* pend = w->outnet->tcp_free;
sbin/unwind/libunbound/services/outside_network.c
651
log_assert(w->pkt);
sbin/unwind/libunbound/services/outside_network.c
652
log_assert(w->pkt_len > 0);
sbin/unwind/libunbound/services/outside_network.c
653
log_assert(w->addrlen > 0);
sbin/unwind/libunbound/services/outside_network.c
660
if (w->ssl_upstream && !w->outnet->sslctx) {
sbin/unwind/libunbound/services/outside_network.c
666
s = outnet_get_tcp_fd(&w->addr, w->addrlen, w->outnet->tcp_mss,
sbin/unwind/libunbound/services/outside_network.c
667
w->outnet->ip_dscp, w->ssl_upstream);
sbin/unwind/libunbound/services/outside_network.c
672
if(!pick_outgoing_tcp(pend, w, s))
sbin/unwind/libunbound/services/outside_network.c
680
struct sockaddr_in *addr_in = (struct sockaddr_in *)&w->addr;
sbin/unwind/libunbound/services/outside_network.c
681
addr_in->sin_len = w->addrlen;
sbin/unwind/libunbound/services/outside_network.c
686
endpoints.sae_dstaddr = (struct sockaddr *)&w->addr;
sbin/unwind/libunbound/services/outside_network.c
687
endpoints.sae_dstaddrlen = w->addrlen;
sbin/unwind/libunbound/services/outside_network.c
697
if(connect(s, (struct sockaddr*)&w->addr, w->addrlen) == -1) {
sbin/unwind/libunbound/services/outside_network.c
704
if (w->outnet->sslctx && w->ssl_upstream) {
sbin/unwind/libunbound/services/outside_network.c
705
if(connect(s, (struct sockaddr*)&w->addr, w->addrlen) == -1) {
sbin/unwind/libunbound/services/outside_network.c
707
if(connect(s, (struct sockaddr*)&w->addr, w->addrlen) == -1) {
sbin/unwind/libunbound/services/outside_network.c
717
(struct sockaddr*)&w->addr, w->addrlen))
sbin/unwind/libunbound/services/outside_network.c
719
strerror(errno), &w->addr, w->addrlen);
sbin/unwind/libunbound/services/outside_network.c
736
if(w->outnet->sslctx && w->ssl_upstream) {
sbin/unwind/libunbound/services/outside_network.c
737
pend->c->ssl = outgoing_ssl_fd(w->outnet->sslctx, s);
sbin/unwind/libunbound/services/outside_network.c
744
(w->tls_auth_name?w->tls_auth_name:"an unauthenticated connection"));
sbin/unwind/libunbound/services/outside_network.c
749
if(!set_auth_name_on_ssl(pend->c->ssl, w->tls_auth_name,
sbin/unwind/libunbound/services/outside_network.c
750
w->outnet->tls_use_sni)) {
sbin/unwind/libunbound/services/outside_network.c
760
w->next_waiting = (void*)pend;
sbin/unwind/libunbound/services/outside_network.c
761
w->outnet->num_tcp_outgoing++;
sbin/unwind/libunbound/services/outside_network.c
762
w->outnet->tcp_free = pend->next_free;
sbin/unwind/libunbound/services/outside_network.c
764
pend->query = w;
sbin/unwind/libunbound/services/outside_network.c
765
pend->reuse.outnet = w->outnet;
sbin/unwind/libunbound/services/outside_network.c
766
pend->c->repinfo.remote_addrlen = w->addrlen;
sbin/unwind/libunbound/services/outside_network.c
771
memcpy(&pend->c->repinfo.remote_addr, &w->addr, w->addrlen);
sbin/unwind/libunbound/services/outside_network.c
779
reuse_tcp_remove_tree_list(w->outnet, &pend->reuse);
sbin/unwind/libunbound/services/outside_network.c
785
(void)reuse_tcp_insert(w->outnet, pend);
sbin/unwind/libunbound/services/outside_network.c
786
reuse_tree_by_id_insert(&pend->reuse, w);
sbin/unwind/libunbound/services/outside_network.c
787
outnet_tcp_take_query_setup(s, pend, w);
sbin/unwind/libunbound/services/outside_network.c
857
outnet_waiting_tcp_list_remove(struct outside_network* outnet, struct waiting_tcp* w)
sbin/unwind/libunbound/services/outside_network.c
860
w->on_tcp_waiting_list = 0;
sbin/unwind/libunbound/services/outside_network.c
862
if(p == w) {
sbin/unwind/libunbound/services/outside_network.c
865
prev->next_waiting = w->next_waiting;
sbin/unwind/libunbound/services/outside_network.c
866
else outnet->tcp_wait_first = w->next_waiting;
sbin/unwind/libunbound/services/outside_network.c
867
if(outnet->tcp_wait_last == w)
sbin/unwind/libunbound/services/outside_network.c
869
w->next_waiting = NULL;
sbin/unwind/libunbound/services/outside_network.c
884
struct waiting_tcp* w = outnet->tcp_wait_first;
sbin/unwind/libunbound/services/outside_network.c
886
log_assert(w->on_tcp_waiting_list);
sbin/unwind/libunbound/services/outside_network.c
887
outnet->tcp_wait_first = w->next_waiting;
sbin/unwind/libunbound/services/outside_network.c
888
if(outnet->tcp_wait_last == w)
sbin/unwind/libunbound/services/outside_network.c
890
w->on_tcp_waiting_list = 0;
sbin/unwind/libunbound/services/outside_network.c
891
w->next_waiting = NULL;
sbin/unwind/libunbound/services/outside_network.c
892
return w;
sbin/unwind/libunbound/services/outside_network.c
898
struct waiting_tcp* w, int set_timer)
sbin/unwind/libunbound/services/outside_network.c
901
log_assert(!w->on_tcp_waiting_list);
sbin/unwind/libunbound/services/outside_network.c
902
if(w->on_tcp_waiting_list)
sbin/unwind/libunbound/services/outside_network.c
904
w->next_waiting = NULL;
sbin/unwind/libunbound/services/outside_network.c
906
outnet->tcp_wait_last->next_waiting = w;
sbin/unwind/libunbound/services/outside_network.c
907
else outnet->tcp_wait_first = w;
sbin/unwind/libunbound/services/outside_network.c
908
outnet->tcp_wait_last = w;
sbin/unwind/libunbound/services/outside_network.c
909
w->on_tcp_waiting_list = 1;
sbin/unwind/libunbound/services/outside_network.c
912
tv.tv_sec = w->timeout/1000;
sbin/unwind/libunbound/services/outside_network.c
913
tv.tv_usec = (w->timeout%1000)*1000;
sbin/unwind/libunbound/services/outside_network.c
915
comm_timer_set(w->timer, &tv);
sbin/unwind/libunbound/services/outside_network.c
922
struct waiting_tcp* w, int reset_timer)
sbin/unwind/libunbound/services/outside_network.c
925
log_assert(!w->on_tcp_waiting_list);
sbin/unwind/libunbound/services/outside_network.c
926
if(w->on_tcp_waiting_list)
sbin/unwind/libunbound/services/outside_network.c
928
w->next_waiting = outnet->tcp_wait_first;
sbin/unwind/libunbound/services/outside_network.c
929
log_assert(w->next_waiting != w);
sbin/unwind/libunbound/services/outside_network.c
931
outnet->tcp_wait_last = w;
sbin/unwind/libunbound/services/outside_network.c
932
outnet->tcp_wait_first = w;
sbin/unwind/libunbound/services/outside_network.c
933
w->on_tcp_waiting_list = 1;
sbin/unwind/libunbound/services/outside_network.c
936
tv.tv_sec = w->timeout/1000;
sbin/unwind/libunbound/services/outside_network.c
937
tv.tv_usec = (w->timeout%1000)*1000;
sbin/unwind/libunbound/services/outside_network.c
939
comm_timer_set(w->timer, &tv);
sbin/unwind/libunbound/services/outside_network.c
948
waiting_tcp_callback(struct waiting_tcp* w, struct comm_point* c, int error,
sbin/unwind/libunbound/services/outside_network.c
951
if(w && w->cb) {
sbin/unwind/libunbound/services/outside_network.c
952
fptr_ok(fptr_whitelist_pending_tcp(w->cb));
sbin/unwind/libunbound/services/outside_network.c
953
(void)(*w->cb)(c, w->cb_arg, error, reply_info);
sbin/unwind/libunbound/services/outside_network.c
961
struct waiting_tcp* w;
sbin/unwind/libunbound/services/outside_network.c
967
w = outnet_waiting_tcp_list_pop(outnet);
sbin/unwind/libunbound/services/outside_network.c
971
reuse = reuse_tcp_find(outnet, &w->addr, w->addrlen,
sbin/unwind/libunbound/services/outside_network.c
972
w->ssl_upstream);
sbin/unwind/libunbound/services/outside_network.c
974
w->id = tcp_select_id(outnet, reuse);
sbin/unwind/libunbound/services/outside_network.c
975
LDNS_ID_SET(w->pkt, w->id);
sbin/unwind/libunbound/services/outside_network.c
983
comm_timer_disable(w->timer);
sbin/unwind/libunbound/services/outside_network.c
984
w->next_waiting = (void*)reuse->pending;
sbin/unwind/libunbound/services/outside_network.c
985
reuse_tree_by_id_insert(reuse, w);
sbin/unwind/libunbound/services/outside_network.c
988
reuse_write_wait_push_back(reuse, w);
sbin/unwind/libunbound/services/outside_network.c
993
reuse->pending->query = w;
sbin/unwind/libunbound/services/outside_network.c
996
w);
sbin/unwind/libunbound/services/outside_network.c
999
struct pending_tcp* pend = w->outnet->tcp_free;
sbin/unwind/libunbound/services/outside_network.h
701
void reuse_tree_by_id_insert(struct reuse_tcp* reuse, struct waiting_tcp* w);
sbin/unwind/libunbound/services/outside_network.h
723
struct waiting_tcp* w);
sbin/unwind/libunbound/services/outside_network.h
730
struct waiting_tcp* w, int set_timer);
sbin/unwind/libunbound/services/outside_network.h
734
struct waiting_tcp* w, int reset_timer);
sbin/unwind/libunbound/services/outside_network.h
740
void reuse_write_wait_remove(struct reuse_tcp* reuse, struct waiting_tcp* w);
sbin/unwind/libunbound/services/outside_network.h
743
void reuse_write_wait_push_back(struct reuse_tcp* reuse, struct waiting_tcp* w);
sbin/unwind/libunbound/sldns/wire2str.c
1037
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
1041
w = sldns_str_print(s, slen, "=%d", (int)sldns_read_uint16(data));
sbin/unwind/libunbound/sldns/wire2str.c
1043
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1051
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
1059
w += sldns_str_print(s, slen, "=%s", ip_str);
sbin/unwind/libunbound/sldns/wire2str.c
1066
w += sldns_str_print(s, slen, ",%s", ip_str);
sbin/unwind/libunbound/sldns/wire2str.c
1072
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1080
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
1088
w += sldns_str_print(s, slen, "=%s", ip_str);
sbin/unwind/libunbound/sldns/wire2str.c
1095
w += sldns_str_print(s, slen, ",%s", ip_str);
sbin/unwind/libunbound/sldns/wire2str.c
1101
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1107
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
1113
w += sldns_str_print(s, slen, "=");
sbin/unwind/libunbound/sldns/wire2str.c
1114
w += sldns_print_svcparamkey(s, slen, sldns_read_uint16(data));
sbin/unwind/libunbound/sldns/wire2str.c
1118
w += sldns_str_print(s, slen, ",");
sbin/unwind/libunbound/sldns/wire2str.c
1119
w += sldns_print_svcparamkey(s, slen, sldns_read_uint16(data));
sbin/unwind/libunbound/sldns/wire2str.c
1123
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1130
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
1134
w += sldns_str_print(s, slen, "=\"");
sbin/unwind/libunbound/sldns/wire2str.c
1144
w += sldns_str_print(s, slen, "\\\\\\%c", dp[i]);
sbin/unwind/libunbound/sldns/wire2str.c
1147
w += sldns_str_print(s, slen, "\\\\%c", dp[i]);
sbin/unwind/libunbound/sldns/wire2str.c
1150
w += sldns_str_print(s, slen, "\\%03u", (unsigned) dp[i]);
sbin/unwind/libunbound/sldns/wire2str.c
1153
w += sldns_str_print(s, slen, "%c", dp[i]);
sbin/unwind/libunbound/sldns/wire2str.c
1157
w += sldns_str_print(s, slen, "%s", ",");
sbin/unwind/libunbound/sldns/wire2str.c
1159
w += sldns_str_print(s, slen, "\"");
sbin/unwind/libunbound/sldns/wire2str.c
1161
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1168
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
1172
w += sldns_str_print(s, slen, "=\"");
sbin/unwind/libunbound/sldns/wire2str.c
1180
w += sldns_str_print(s, slen, "\"");
sbin/unwind/libunbound/sldns/wire2str.c
1182
return w + size;
sbin/unwind/libunbound/sldns/wire2str.c
1364
int w;
sbin/unwind/libunbound/sldns/wire2str.c
1366
w = sldns_str_print(s, sl, "%u", (unsigned)**d);
sbin/unwind/libunbound/sldns/wire2str.c
1369
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1374
int w;
sbin/unwind/libunbound/sldns/wire2str.c
1376
w = sldns_str_print(s, sl, "%lu", (unsigned long)sldns_read_uint16(*d));
sbin/unwind/libunbound/sldns/wire2str.c
1379
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1384
int w;
sbin/unwind/libunbound/sldns/wire2str.c
1386
w = sldns_str_print(s, sl, "%lu", (unsigned long)sldns_read_uint32(*d));
sbin/unwind/libunbound/sldns/wire2str.c
1389
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1394
int w;
sbin/unwind/libunbound/sldns/wire2str.c
1396
w = sldns_str_print(s, sl, "%u", (unsigned)sldns_read_uint32(*d));
sbin/unwind/libunbound/sldns/wire2str.c
1399
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1405
int w;
sbin/unwind/libunbound/sldns/wire2str.c
1417
w = sldns_str_print(s, sl, "%llu", (long long)tsigtime);
sbin/unwind/libunbound/sldns/wire2str.c
1419
w = sldns_str_print(s, sl, "%I64u", (long long)tsigtime);
sbin/unwind/libunbound/sldns/wire2str.c
1423
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1429
int w;
sbin/unwind/libunbound/sldns/wire2str.c
1433
w = sldns_str_print(s, sl, "%s", buf);
sbin/unwind/libunbound/sldns/wire2str.c
1436
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1443
int w;
sbin/unwind/libunbound/sldns/wire2str.c
1447
w = sldns_str_print(s, sl, "%s", buf);
sbin/unwind/libunbound/sldns/wire2str.c
1450
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1474
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
1481
w += sldns_str_print(s, sl, "\"");
sbin/unwind/libunbound/sldns/wire2str.c
1483
w += str_char_print(s, sl, (*d)[i]);
sbin/unwind/libunbound/sldns/wire2str.c
1484
w += sldns_str_print(s, sl, "\"");
sbin/unwind/libunbound/sldns/wire2str.c
1487
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1492
int i, w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
1504
w += sldns_str_print(s, sl, "!");
sbin/unwind/libunbound/sldns/wire2str.c
1505
w += sldns_str_print(s, sl, "%u:", (unsigned)family);
sbin/unwind/libunbound/sldns/wire2str.c
1511
w += sldns_str_print(s, sl, ".");
sbin/unwind/libunbound/sldns/wire2str.c
1513
w += sldns_str_print(s, sl, "%d", (*d)[4+i]);
sbin/unwind/libunbound/sldns/wire2str.c
1514
else w += sldns_str_print(s, sl, "0");
sbin/unwind/libunbound/sldns/wire2str.c
1521
w += sldns_str_print(s, sl, ":");
sbin/unwind/libunbound/sldns/wire2str.c
1523
w += sldns_str_print(s, sl, "%02x", (*d)[4+i]);
sbin/unwind/libunbound/sldns/wire2str.c
1524
else w += sldns_str_print(s, sl, "00");
sbin/unwind/libunbound/sldns/wire2str.c
1527
w += sldns_str_print(s, sl, "/%u", (unsigned)prefix);
sbin/unwind/libunbound/sldns/wire2str.c
1530
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1597
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
1623
if(w) w += sldns_str_print(s, sl, " ");
sbin/unwind/libunbound/sldns/wire2str.c
1624
w += sldns_wire2str_type_print(s, sl,
sbin/unwind/libunbound/sldns/wire2str.c
1634
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1640
int w;
sbin/unwind/libunbound/sldns/wire2str.c
1649
w = print_hex_buf(s, sl, *d, salt_len);
sbin/unwind/libunbound/sldns/wire2str.c
1652
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1658
int data, w;
sbin/unwind/libunbound/sldns/wire2str.c
1663
w = sldns_str_print(s, sl, "%s", lt->name);
sbin/unwind/libunbound/sldns/wire2str.c
1664
else w = sldns_str_print(s, sl, "%d", data);
sbin/unwind/libunbound/sldns/wire2str.c
1667
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1704
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
1713
w += sldns_str_print(str, sl, "%d", (int)mantissa);
sbin/unwind/libunbound/sldns/wire2str.c
1715
w += sldns_str_print(str, sl, "0");
sbin/unwind/libunbound/sldns/wire2str.c
1716
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1735
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
1761
w += sldns_str_print(str, sl, "%02u %02u %06.3f %c ",
sbin/unwind/libunbound/sldns/wire2str.c
1776
w += sldns_str_print(str, sl, "%02u %02u %06.3f %c ",
sbin/unwind/libunbound/sldns/wire2str.c
1783
w += sldns_str_print(str, sl, "%.2f", s);
sbin/unwind/libunbound/sldns/wire2str.c
1785
w += sldns_str_print(str, sl, "%.0f", s);
sbin/unwind/libunbound/sldns/wire2str.c
1787
w += sldns_str_print(str, sl, "m ");
sbin/unwind/libunbound/sldns/wire2str.c
1789
w += loc_cm_print(str, sl, (size & 0xf0) >> 4, size & 0x0f);
sbin/unwind/libunbound/sldns/wire2str.c
1790
w += sldns_str_print(str, sl, "m ");
sbin/unwind/libunbound/sldns/wire2str.c
1792
w += loc_cm_print(str, sl, (horizontal_precision & 0xf0) >> 4,
sbin/unwind/libunbound/sldns/wire2str.c
1794
w += sldns_str_print(str, sl, "m ");
sbin/unwind/libunbound/sldns/wire2str.c
1796
w += loc_cm_print(str, sl, (vertical_precision & 0xf0) >> 4,
sbin/unwind/libunbound/sldns/wire2str.c
1798
w += sldns_str_print(str, sl, "m");
sbin/unwind/libunbound/sldns/wire2str.c
1802
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1812
int bit, port, w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
1826
w += sldns_str_print(s, sl, "%s", protocol->p_name);
sbin/unwind/libunbound/sldns/wire2str.c
1829
w += sldns_str_print(s, sl, "tcp");
sbin/unwind/libunbound/sldns/wire2str.c
1831
w += sldns_str_print(s, sl, "udp");
sbin/unwind/libunbound/sldns/wire2str.c
1833
w += sldns_str_print(s, sl, "%u", (unsigned)protocol_nr);
sbin/unwind/libunbound/sldns/wire2str.c
1850
w += sldns_str_print(s, sl, " %s",
sbin/unwind/libunbound/sldns/wire2str.c
1852
else w += sldns_str_print(s, sl, " %u",
sbin/unwind/libunbound/sldns/wire2str.c
1865
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1876
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
1889
w += sldns_str_print(s, sl, "+");
sbin/unwind/libunbound/sldns/wire2str.c
1893
w += sldns_str_print(s, sl, "%c", (*d)[i]);
sbin/unwind/libunbound/sldns/wire2str.c
1901
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1910
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
1920
w += sldns_str_print(s, sl, "%d %d %d ",
sbin/unwind/libunbound/sldns/wire2str.c
1925
w += sldns_str_print(s, sl, ".");
sbin/unwind/libunbound/sldns/wire2str.c
1928
w += sldns_wire2str_a_scan(d, dl, s, sl);
sbin/unwind/libunbound/sldns/wire2str.c
1931
w += sldns_wire2str_aaaa_scan(d, dl, s, sl);
sbin/unwind/libunbound/sldns/wire2str.c
1934
w += sldns_wire2str_dname_scan(d, dl, s, sl, pkt, pktlen, comprloop);
sbin/unwind/libunbound/sldns/wire2str.c
1942
w += sldns_str_print(s, sl, " ");
sbin/unwind/libunbound/sldns/wire2str.c
1943
w += sldns_wire2str_b64_scan_num(d, dl, s, sl, *dl);
sbin/unwind/libunbound/sldns/wire2str.c
1944
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1953
int w=sldns_wire2str_ipseckey_scan_internal(d, dl, s, sl, pkt, pktlen, comprloop);
sbin/unwind/libunbound/sldns/wire2str.c
1954
if(w == -1) {
sbin/unwind/libunbound/sldns/wire2str.c
1961
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1966
int w;
sbin/unwind/libunbound/sldns/wire2str.c
1980
w = sldns_str_print(s, sl, "%u ", (unsigned)algo);
sbin/unwind/libunbound/sldns/wire2str.c
1981
w += print_hex_buf(s, sl, (*d)+4, hitlen);
sbin/unwind/libunbound/sldns/wire2str.c
1982
w += sldns_str_print(s, sl, " ");
sbin/unwind/libunbound/sldns/wire2str.c
1985
w += sldns_wire2str_b64_scan_num(d, dl, s, sl, pklen);
sbin/unwind/libunbound/sldns/wire2str.c
1986
return w;
sbin/unwind/libunbound/sldns/wire2str.c
1991
int w;
sbin/unwind/libunbound/sldns/wire2str.c
2003
w = sldns_str_print(s, sl, "%u ", (unsigned)n);
sbin/unwind/libunbound/sldns/wire2str.c
2004
w += sldns_wire2str_b64_scan_num(d, dl, s, sl, n);
sbin/unwind/libunbound/sldns/wire2str.c
2005
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2016
int w;
sbin/unwind/libunbound/sldns/wire2str.c
2019
w = sldns_str_print(s, sl, "%.4x:%.4x:%.4x:%.4x",
sbin/unwind/libunbound/sldns/wire2str.c
2024
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2029
int w;
sbin/unwind/libunbound/sldns/wire2str.c
2032
w = sldns_str_print(s, sl, "%.2x-%.2x-%.2x-%.2x-%.2x-%.2x",
sbin/unwind/libunbound/sldns/wire2str.c
2036
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2041
int w;
sbin/unwind/libunbound/sldns/wire2str.c
2044
w = sldns_str_print(s, sl, "%.2x-%.2x-%.2x-%.2x-%.2x-%.2x-%.2x-%.2x",
sbin/unwind/libunbound/sldns/wire2str.c
2049
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2054
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
2064
w += sldns_str_print(s, sl, "\\%c", (char)(*d)[i]);
sbin/unwind/libunbound/sldns/wire2str.c
2065
else w += str_char_print(s, sl, (*d)[i]);
sbin/unwind/libunbound/sldns/wire2str.c
2069
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2075
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
2085
w += sldns_str_print(s, sl, "%c", (char)(*d)[i+1]);
sbin/unwind/libunbound/sldns/wire2str.c
2088
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2094
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
2095
w += sldns_str_print(s, sl, "\"");
sbin/unwind/libunbound/sldns/wire2str.c
2097
w += str_char_print(s, sl, (*d)[i]);
sbin/unwind/libunbound/sldns/wire2str.c
2098
w += sldns_str_print(s, sl, "\"");
sbin/unwind/libunbound/sldns/wire2str.c
2101
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2107
int data, w;
sbin/unwind/libunbound/sldns/wire2str.c
2112
w = sldns_str_print(s, sl, "%s", lt->name);
sbin/unwind/libunbound/sldns/wire2str.c
2113
else w = sldns_str_print(s, sl, "%d", data);
sbin/unwind/libunbound/sldns/wire2str.c
2116
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2131
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
2135
w += sldns_str_print(s, sl, "malformed LLQ ");
sbin/unwind/libunbound/sldns/wire2str.c
2136
w += print_hex_buf(s, sl, data, len);
sbin/unwind/libunbound/sldns/wire2str.c
2137
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2146
w += sldns_str_print(s, sl, "v%d ", (int)version);
sbin/unwind/libunbound/sldns/wire2str.c
2148
w += sldns_str_print(s, sl, "%s", llq_opcodes[llq_opcode]);
sbin/unwind/libunbound/sldns/wire2str.c
2149
else w += sldns_str_print(s, sl, "opcode %d", (int)llq_opcode);
sbin/unwind/libunbound/sldns/wire2str.c
2151
w += sldns_str_print(s, sl, " %s", llq_errors[error_code]);
sbin/unwind/libunbound/sldns/wire2str.c
2152
else w += sldns_str_print(s, sl, " error %d", (int)error_code);
sbin/unwind/libunbound/sldns/wire2str.c
2154
w += sldns_str_print(s, sl, " id %llx lease-life %lu",
sbin/unwind/libunbound/sldns/wire2str.c
2157
w += sldns_str_print(s, sl, " id %I64x lease-life %lu",
sbin/unwind/libunbound/sldns/wire2str.c
2160
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2167
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
2169
w += sldns_str_print(s, sl, "malformed UL ");
sbin/unwind/libunbound/sldns/wire2str.c
2170
w += print_hex_buf(s, sl, data, len);
sbin/unwind/libunbound/sldns/wire2str.c
2171
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2174
w += sldns_str_print(s, sl, "lease %lu", (unsigned long)lease);
sbin/unwind/libunbound/sldns/wire2str.c
2175
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2181
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
2183
w += print_hex_buf(s, sl, data, len);
sbin/unwind/libunbound/sldns/wire2str.c
2187
w += sldns_str_print(s, sl, " (");
sbin/unwind/libunbound/sldns/wire2str.c
2190
w += sldns_str_print(s, sl, "%c", (char)data[i]);
sbin/unwind/libunbound/sldns/wire2str.c
2194
w += sldns_str_print(s, sl, ")");
sbin/unwind/libunbound/sldns/wire2str.c
2195
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2203
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
2207
w += sldns_str_print(s, sl, " %s", lt->name);
sbin/unwind/libunbound/sldns/wire2str.c
2208
else w += sldns_str_print(s, sl, " %d", (int)data[i]);
sbin/unwind/libunbound/sldns/wire2str.c
2210
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2218
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
2222
w += sldns_str_print(s, sl, " %s", lt->name);
sbin/unwind/libunbound/sldns/wire2str.c
2223
else w += sldns_str_print(s, sl, " %d", (int)data[i]);
sbin/unwind/libunbound/sldns/wire2str.c
2225
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2232
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
2235
w += sldns_str_print(s, sl, " SHA1");
sbin/unwind/libunbound/sldns/wire2str.c
2236
else w += sldns_str_print(s, sl, " %d", (int)data[i]);
sbin/unwind/libunbound/sldns/wire2str.c
2238
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2244
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
2248
w += sldns_str_print(s, sl, "malformed subnet ");
sbin/unwind/libunbound/sldns/wire2str.c
2249
w += print_hex_buf(s, sl, data, len);
sbin/unwind/libunbound/sldns/wire2str.c
2250
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2261
w += sldns_str_print(s, sl, "trailingdata:");
sbin/unwind/libunbound/sldns/wire2str.c
2262
w += print_hex_buf(s, sl, data+4+4, len-4-4);
sbin/unwind/libunbound/sldns/wire2str.c
2263
w += sldns_str_print(s, sl, " ");
sbin/unwind/libunbound/sldns/wire2str.c
2268
w += sldns_str_print(s, sl, "ip4ntoperror ");
sbin/unwind/libunbound/sldns/wire2str.c
2269
w += print_hex_buf(s, sl, data+4+4, len-4-4);
sbin/unwind/libunbound/sldns/wire2str.c
2271
w += sldns_str_print(s, sl, "%s", buf);
sbin/unwind/libunbound/sldns/wire2str.c
2279
w += sldns_str_print(s, sl, "trailingdata:");
sbin/unwind/libunbound/sldns/wire2str.c
2280
w += print_hex_buf(s, sl, data+4+16, len-4-16);
sbin/unwind/libunbound/sldns/wire2str.c
2281
w += sldns_str_print(s, sl, " ");
sbin/unwind/libunbound/sldns/wire2str.c
2287
w += sldns_str_print(s, sl, "ip6ntoperror ");
sbin/unwind/libunbound/sldns/wire2str.c
2288
w += print_hex_buf(s, sl, data+4+4, len-4-4);
sbin/unwind/libunbound/sldns/wire2str.c
2290
w += sldns_str_print(s, sl, "%s", buf);
sbin/unwind/libunbound/sldns/wire2str.c
2293
w += print_hex_buf(s, sl, data+4+4, len-4-4);
sbin/unwind/libunbound/sldns/wire2str.c
2297
w += sldns_str_print(s, sl, "family %d ",
sbin/unwind/libunbound/sldns/wire2str.c
2299
w += print_hex_buf(s, sl, data, len);
sbin/unwind/libunbound/sldns/wire2str.c
2301
w += sldns_str_print(s, sl, "/%d scope /%d", (int)source, (int)scope);
sbin/unwind/libunbound/sldns/wire2str.c
2302
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2308
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
2311
w += sldns_str_print(s, sl, "malformed keepalive ");
sbin/unwind/libunbound/sldns/wire2str.c
2312
w += print_hex_buf(s, sl, data, len);
sbin/unwind/libunbound/sldns/wire2str.c
2313
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2316
w += sldns_str_print(s, sl, "no timeout value (only valid for client option) ");
sbin/unwind/libunbound/sldns/wire2str.c
2319
w += sldns_str_print(s, sl, "timeout value in units of 100ms %u", (int)timeout);
sbin/unwind/libunbound/sldns/wire2str.c
2321
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2328
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
2334
w += sldns_str_print(s, sl, "malformed ede ");
sbin/unwind/libunbound/sldns/wire2str.c
2335
w += print_hex_buf(s, sl, data, len);
sbin/unwind/libunbound/sldns/wire2str.c
2336
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2342
w += sldns_str_print(s, sl, "%s", lt->name);
sbin/unwind/libunbound/sldns/wire2str.c
2343
else w += sldns_str_print(s, sl, "%d", (int)ede_code);
sbin/unwind/libunbound/sldns/wire2str.c
2346
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2348
w += sldns_str_print(s, sl, " ");
sbin/unwind/libunbound/sldns/wire2str.c
2359
w += sldns_str_print(s, sl, "\"");
sbin/unwind/libunbound/sldns/wire2str.c
2361
w += str_char_print(s, sl, data[i]);
sbin/unwind/libunbound/sldns/wire2str.c
2363
w += sldns_str_print(s, sl, "\"");
sbin/unwind/libunbound/sldns/wire2str.c
2365
w += print_hex_buf(s, sl, data+2, len-2);
sbin/unwind/libunbound/sldns/wire2str.c
2367
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2373
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
2374
w += sldns_wire2str_edns_option_code_print(s, sl, option_code);
sbin/unwind/libunbound/sldns/wire2str.c
2375
w += sldns_str_print(s, sl, ": ");
sbin/unwind/libunbound/sldns/wire2str.c
2378
w += sldns_wire2str_edns_llq_print(s, sl, optdata, optlen);
sbin/unwind/libunbound/sldns/wire2str.c
2381
w += sldns_wire2str_edns_ul_print(s, sl, optdata, optlen);
sbin/unwind/libunbound/sldns/wire2str.c
2384
w += sldns_wire2str_edns_nsid_print(s, sl, optdata, optlen);
sbin/unwind/libunbound/sldns/wire2str.c
2387
w += sldns_wire2str_edns_dau_print(s, sl, optdata, optlen);
sbin/unwind/libunbound/sldns/wire2str.c
2390
w += sldns_wire2str_edns_dhu_print(s, sl, optdata, optlen);
sbin/unwind/libunbound/sldns/wire2str.c
2393
w += sldns_wire2str_edns_n3u_print(s, sl, optdata, optlen);
sbin/unwind/libunbound/sldns/wire2str.c
2396
w += sldns_wire2str_edns_subnet_print(s, sl, optdata, optlen);
sbin/unwind/libunbound/sldns/wire2str.c
2399
w += sldns_wire2str_edns_keepalive_print(s, sl, optdata, optlen);
sbin/unwind/libunbound/sldns/wire2str.c
2402
w += print_hex_buf(s, sl, optdata, optlen);
sbin/unwind/libunbound/sldns/wire2str.c
2405
w += sldns_wire2str_edns_ede_print(s, sl, optdata, optlen);
sbin/unwind/libunbound/sldns/wire2str.c
2409
w += print_hex_buf(s, sl, optdata, optlen);
sbin/unwind/libunbound/sldns/wire2str.c
2412
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2420
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
2424
w += sldns_str_print(s, sl, " ; malformed: ");
sbin/unwind/libunbound/sldns/wire2str.c
2425
w += print_hex_buf(s, sl, rdata, rdatalen);
sbin/unwind/libunbound/sldns/wire2str.c
2426
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2435
w += sldns_str_print(s, sl, " ; malformed ");
sbin/unwind/libunbound/sldns/wire2str.c
2436
w += sldns_wire2str_edns_option_code_print(s, sl,
sbin/unwind/libunbound/sldns/wire2str.c
2438
w += sldns_str_print(s, sl, ": ");
sbin/unwind/libunbound/sldns/wire2str.c
2439
w += print_hex_buf(s, sl, rdata, rdatalen);
sbin/unwind/libunbound/sldns/wire2str.c
2440
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2442
w += sldns_str_print(s, sl, " ; ");
sbin/unwind/libunbound/sldns/wire2str.c
2443
w += sldns_wire2str_edns_option_print(s, sl, option_code,
sbin/unwind/libunbound/sldns/wire2str.c
2448
return w;
sbin/unwind/libunbound/sldns/wire2str.c
2454
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
2457
w += sldns_str_print(str, str_len, "; EDNS:");
sbin/unwind/libunbound/sldns/wire2str.c
2461
return w + print_remainder_hex("Error malformed 0x",
sbin/unwind/libunbound/sldns/wire2str.c
2464
return w + print_remainder_hex("Error nonrootdname 0x",
sbin/unwind/libunbound/sldns/wire2str.c
2472
return w + print_remainder_hex("Error nottypeOPT 0x",
sbin/unwind/libunbound/sldns/wire2str.c
2483
w += sldns_str_print(str, str_len, " version: %u;",
sbin/unwind/libunbound/sldns/wire2str.c
2485
w += sldns_str_print(str, str_len, " flags:");
sbin/unwind/libunbound/sldns/wire2str.c
2487
w += sldns_str_print(str, str_len, " do");
sbin/unwind/libunbound/sldns/wire2str.c
2494
w += sldns_str_print(str, str_len, " ; ext-rcode: %d", rc);
sbin/unwind/libunbound/sldns/wire2str.c
2496
w += sldns_str_print(str, str_len, " ; udp: %u", (unsigned)udpsize);
sbin/unwind/libunbound/sldns/wire2str.c
2500
w += sldns_str_print(str, str_len,
sbin/unwind/libunbound/sldns/wire2str.c
2504
w += print_edns_opts(str, str_len, *data, rdatalen);
sbin/unwind/libunbound/sldns/wire2str.c
2508
w += sldns_str_print(str, str_len, "\n");
sbin/unwind/libunbound/sldns/wire2str.c
2509
return w;
sbin/unwind/libunbound/sldns/wire2str.c
388
int w = vsnprintf(*str, *slen, format, args);
sbin/unwind/libunbound/sldns/wire2str.c
389
if(w < 0) {
sbin/unwind/libunbound/sldns/wire2str.c
392
} else if((size_t)w >= *slen) {
sbin/unwind/libunbound/sldns/wire2str.c
396
*str += w;
sbin/unwind/libunbound/sldns/wire2str.c
397
*slen -= w;
sbin/unwind/libunbound/sldns/wire2str.c
399
return w;
sbin/unwind/libunbound/sldns/wire2str.c
404
int w;
sbin/unwind/libunbound/sldns/wire2str.c
407
w = sldns_str_vprint(str, slen, format, args);
sbin/unwind/libunbound/sldns/wire2str.c
409
return w;
sbin/unwind/libunbound/sldns/wire2str.c
428
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
429
w += sldns_str_print(s, slen, "%s", pref);
sbin/unwind/libunbound/sldns/wire2str.c
430
w += print_hex_buf(s, slen, *d, *dlen);
sbin/unwind/libunbound/sldns/wire2str.c
433
return w;
sbin/unwind/libunbound/sldns/wire2str.c
438
int w = 0, comprloop = 0;
sbin/unwind/libunbound/sldns/wire2str.c
450
w += sldns_wire2str_header_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
451
w += sldns_str_print(s, slen, "\n");
sbin/unwind/libunbound/sldns/wire2str.c
452
w += sldns_str_print(s, slen, ";; QUESTION SECTION:\n");
sbin/unwind/libunbound/sldns/wire2str.c
454
w += sldns_wire2str_rrquestion_scan(d, dlen, s, slen,
sbin/unwind/libunbound/sldns/wire2str.c
458
w += sldns_str_print(s, slen, "\n");
sbin/unwind/libunbound/sldns/wire2str.c
459
w += sldns_str_print(s, slen, ";; ANSWER SECTION:\n");
sbin/unwind/libunbound/sldns/wire2str.c
461
w += sldns_wire2str_rr_scan(d, dlen, s, slen, pkt, pktlen, &comprloop);
sbin/unwind/libunbound/sldns/wire2str.c
464
w += sldns_str_print(s, slen, "\n");
sbin/unwind/libunbound/sldns/wire2str.c
465
w += sldns_str_print(s, slen, ";; AUTHORITY SECTION:\n");
sbin/unwind/libunbound/sldns/wire2str.c
467
w += sldns_wire2str_rr_scan(d, dlen, s, slen, pkt, pktlen, &comprloop);
sbin/unwind/libunbound/sldns/wire2str.c
470
w += sldns_str_print(s, slen, "\n");
sbin/unwind/libunbound/sldns/wire2str.c
471
w += sldns_str_print(s, slen, ";; ADDITIONAL SECTION:\n");
sbin/unwind/libunbound/sldns/wire2str.c
473
w += sldns_wire2str_rr_scan(d, dlen, s, slen, pkt, pktlen, &comprloop);
sbin/unwind/libunbound/sldns/wire2str.c
477
w += sldns_str_print(s, slen, ";; MSG SIZE rcvd: %d\n", (int)pktlen);
sbin/unwind/libunbound/sldns/wire2str.c
479
w += print_remainder_hex(";; trailing garbage 0x",
sbin/unwind/libunbound/sldns/wire2str.c
481
w += sldns_str_print(s, slen, "\n");
sbin/unwind/libunbound/sldns/wire2str.c
483
return w;
sbin/unwind/libunbound/sldns/wire2str.c
489
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
494
return w + print_remainder_hex("; Error malformed 0x",
sbin/unwind/libunbound/sldns/wire2str.c
501
w += sldns_wire2str_class_print(s, sl, c);
sbin/unwind/libunbound/sldns/wire2str.c
502
w += sldns_str_print(s, sl, "\t");
sbin/unwind/libunbound/sldns/wire2str.c
503
w += sldns_wire2str_type_print(s, sl, t);
sbin/unwind/libunbound/sldns/wire2str.c
505
return w + sldns_str_print(s, sl, "; Error no ttl");
sbin/unwind/libunbound/sldns/wire2str.c
506
return w + print_remainder_hex(
sbin/unwind/libunbound/sldns/wire2str.c
514
w += sldns_str_print(s, sl, "%lu\t", (unsigned long)ttl);
sbin/unwind/libunbound/sldns/wire2str.c
515
w += sldns_wire2str_class_print(s, sl, c);
sbin/unwind/libunbound/sldns/wire2str.c
516
w += sldns_str_print(s, sl, "\t");
sbin/unwind/libunbound/sldns/wire2str.c
517
w += sldns_wire2str_type_print(s, sl, t);
sbin/unwind/libunbound/sldns/wire2str.c
518
return w;
sbin/unwind/libunbound/sldns/wire2str.c
524
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
537
w += sldns_wire2str_dname_scan(d, dlen, s, slen, pkt, pktlen, comprloop);
sbin/unwind/libunbound/sldns/wire2str.c
538
w += sldns_str_print(s, slen, "\t");
sbin/unwind/libunbound/sldns/wire2str.c
546
w += sldns_wire2str_class_print(s, slen, c);
sbin/unwind/libunbound/sldns/wire2str.c
547
w += sldns_str_print(s, slen, "\t");
sbin/unwind/libunbound/sldns/wire2str.c
548
w += sldns_wire2str_type_print(s, slen, t);
sbin/unwind/libunbound/sldns/wire2str.c
549
w += sldns_str_print(s, slen, " ; Error no ttl,rdata\n");
sbin/unwind/libunbound/sldns/wire2str.c
550
return w;
sbin/unwind/libunbound/sldns/wire2str.c
554
return w + sldns_str_print(s, slen, ";Error missing RR\n");
sbin/unwind/libunbound/sldns/wire2str.c
555
w += print_remainder_hex(";Error partial RR 0x", d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
556
return w + sldns_str_print(s, slen, "\n");
sbin/unwind/libunbound/sldns/wire2str.c
559
w += sldns_rr_tcttl_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
560
w += sldns_str_print(s, slen, "\t");
sbin/unwind/libunbound/sldns/wire2str.c
565
return w + sldns_str_print(s, slen, ";Error missing rdatalen\n");
sbin/unwind/libunbound/sldns/wire2str.c
566
w += print_remainder_hex(";Error missing rdatalen 0x",
sbin/unwind/libunbound/sldns/wire2str.c
568
return w + sldns_str_print(s, slen, "\n");
sbin/unwind/libunbound/sldns/wire2str.c
575
w += sldns_str_print(s, slen, "\\# %u ", (unsigned)rdlen);
sbin/unwind/libunbound/sldns/wire2str.c
577
return w + sldns_str_print(s, slen, ";Error missing rdata\n");
sbin/unwind/libunbound/sldns/wire2str.c
578
w += print_remainder_hex(";Error partial rdata 0x", d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
579
return w + sldns_str_print(s, slen, "\n");
sbin/unwind/libunbound/sldns/wire2str.c
581
w += sldns_wire2str_rdata_scan(d, &rdlen, s, slen, rrtype, pkt, pktlen,
sbin/unwind/libunbound/sldns/wire2str.c
586
w += sldns_wire2str_rr_comment_print(s, slen, rr, rrlen, dname_off,
sbin/unwind/libunbound/sldns/wire2str.c
588
w += sldns_str_print(s, slen, "\n");
sbin/unwind/libunbound/sldns/wire2str.c
589
return w;
sbin/unwind/libunbound/sldns/wire2str.c
595
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
597
w += sldns_wire2str_dname_scan(d, dlen, s, slen, pkt, pktlen, comprloop);
sbin/unwind/libunbound/sldns/wire2str.c
598
w += sldns_str_print(s, slen, "\t");
sbin/unwind/libunbound/sldns/wire2str.c
601
return w + sldns_str_print(s, slen, "Error malformed\n");
sbin/unwind/libunbound/sldns/wire2str.c
602
w += print_remainder_hex("Error malformed 0x", d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
603
return w + sldns_str_print(s, slen, "\n");
sbin/unwind/libunbound/sldns/wire2str.c
609
w += sldns_wire2str_class_print(s, slen, c);
sbin/unwind/libunbound/sldns/wire2str.c
610
w += sldns_str_print(s, slen, "\t");
sbin/unwind/libunbound/sldns/wire2str.c
611
w += sldns_wire2str_type_print(s, slen, t);
sbin/unwind/libunbound/sldns/wire2str.c
612
w += sldns_str_print(s, slen, "\n");
sbin/unwind/libunbound/sldns/wire2str.c
613
return w;
sbin/unwind/libunbound/sldns/wire2str.c
620
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
621
w += sldns_wire2str_dname_scan(d, dlen, s, slen, pkt, pktlen, comprloop);
sbin/unwind/libunbound/sldns/wire2str.c
622
w += sldns_str_print(s, slen, "\t");
sbin/unwind/libunbound/sldns/wire2str.c
623
w += sldns_rr_tcttl_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
624
w += sldns_str_print(s, slen, "\t");
sbin/unwind/libunbound/sldns/wire2str.c
627
return w + sldns_str_print(s, slen, ";Error missing rdatalen\n");
sbin/unwind/libunbound/sldns/wire2str.c
628
w += print_remainder_hex(";Error missing rdatalen 0x",
sbin/unwind/libunbound/sldns/wire2str.c
630
return w + sldns_str_print(s, slen, "\n");
sbin/unwind/libunbound/sldns/wire2str.c
637
w += sldns_str_print(s, slen, "\\# %u ", (unsigned)rdlen);
sbin/unwind/libunbound/sldns/wire2str.c
639
return w + sldns_str_print(s, slen, ";Error missing rdata\n");
sbin/unwind/libunbound/sldns/wire2str.c
640
w += print_remainder_hex(";Error partial rdata 0x", d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
641
return w + sldns_str_print(s, slen, "\n");
sbin/unwind/libunbound/sldns/wire2str.c
643
w += sldns_wire2str_rdata_unknown_scan(d, &rdlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
645
w += sldns_str_print(s, slen, "\n");
sbin/unwind/libunbound/sldns/wire2str.c
646
return w;
sbin/unwind/libunbound/sldns/wire2str.c
655
int flags, w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
662
w += sldns_str_print(s, slen, " ;{");
sbin/unwind/libunbound/sldns/wire2str.c
665
w += sldns_str_print(s, slen, "id = %u",
sbin/unwind/libunbound/sldns/wire2str.c
671
w += sldns_str_print(s, slen, " (ksk)");
sbin/unwind/libunbound/sldns/wire2str.c
672
else w += sldns_str_print(s, slen, " (zsk)");
sbin/unwind/libunbound/sldns/wire2str.c
677
w += sldns_str_print(s, slen, ", ");
sbin/unwind/libunbound/sldns/wire2str.c
678
w += sldns_str_print(s, slen, "size = %db",
sbin/unwind/libunbound/sldns/wire2str.c
683
w += sldns_str_print(s, slen, "}");
sbin/unwind/libunbound/sldns/wire2str.c
684
return w;
sbin/unwind/libunbound/sldns/wire2str.c
708
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
715
w += sldns_str_print(s, slen, " ;{flags: optout}");
sbin/unwind/libunbound/sldns/wire2str.c
716
return w;
sbin/unwind/libunbound/sldns/wire2str.c
735
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
737
w += sldns_str_print(s, slen, ";; ->>HEADER<<- ");
sbin/unwind/libunbound/sldns/wire2str.c
739
return w+sldns_str_print(s, slen, "Error empty packet");
sbin/unwind/libunbound/sldns/wire2str.c
741
return w+print_remainder_hex("Error header too short 0x", d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
744
w += sldns_str_print(s, slen, "opcode: ");
sbin/unwind/libunbound/sldns/wire2str.c
745
w += sldns_wire2str_opcode_print(s, slen, opcode);
sbin/unwind/libunbound/sldns/wire2str.c
746
w += sldns_str_print(s, slen, ", ");
sbin/unwind/libunbound/sldns/wire2str.c
747
w += sldns_str_print(s, slen, "rcode: ");
sbin/unwind/libunbound/sldns/wire2str.c
748
w += sldns_wire2str_rcode_print(s, slen, rcode);
sbin/unwind/libunbound/sldns/wire2str.c
749
w += sldns_str_print(s, slen, ", ");
sbin/unwind/libunbound/sldns/wire2str.c
750
w += sldns_str_print(s, slen, "id: %d\n", (int)LDNS_ID_WIRE(*d));
sbin/unwind/libunbound/sldns/wire2str.c
751
w += sldns_str_print(s, slen, ";; flags:");
sbin/unwind/libunbound/sldns/wire2str.c
752
if(LDNS_QR_WIRE(*d)) w += sldns_str_print(s, slen, " qr");
sbin/unwind/libunbound/sldns/wire2str.c
753
if(LDNS_AA_WIRE(*d)) w += sldns_str_print(s, slen, " aa");
sbin/unwind/libunbound/sldns/wire2str.c
754
if(LDNS_TC_WIRE(*d)) w += sldns_str_print(s, slen, " tc");
sbin/unwind/libunbound/sldns/wire2str.c
755
if(LDNS_RD_WIRE(*d)) w += sldns_str_print(s, slen, " rd");
sbin/unwind/libunbound/sldns/wire2str.c
756
if(LDNS_CD_WIRE(*d)) w += sldns_str_print(s, slen, " cd");
sbin/unwind/libunbound/sldns/wire2str.c
757
if(LDNS_RA_WIRE(*d)) w += sldns_str_print(s, slen, " ra");
sbin/unwind/libunbound/sldns/wire2str.c
758
if(LDNS_AD_WIRE(*d)) w += sldns_str_print(s, slen, " ad");
sbin/unwind/libunbound/sldns/wire2str.c
759
if(LDNS_Z_WIRE(*d)) w += sldns_str_print(s, slen, " z");
sbin/unwind/libunbound/sldns/wire2str.c
760
w += sldns_str_print(s, slen, " ; ");
sbin/unwind/libunbound/sldns/wire2str.c
762
return w+print_remainder_hex("Error header too short 0x", d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
763
w += sldns_str_print(s, slen, "QUERY: %d, ", (int)LDNS_QDCOUNT(*d));
sbin/unwind/libunbound/sldns/wire2str.c
764
w += sldns_str_print(s, slen, "ANSWER: %d, ", (int)LDNS_ANCOUNT(*d));
sbin/unwind/libunbound/sldns/wire2str.c
765
w += sldns_str_print(s, slen, "AUTHORITY: %d, ", (int)LDNS_NSCOUNT(*d));
sbin/unwind/libunbound/sldns/wire2str.c
766
w += sldns_str_print(s, slen, "ADDITIONAL: %d ", (int)LDNS_ARCOUNT(*d));
sbin/unwind/libunbound/sldns/wire2str.c
769
return w;
sbin/unwind/libunbound/sldns/wire2str.c
782
int w = 0, n;
sbin/unwind/libunbound/sldns/wire2str.c
798
w += sldns_str_print(s, slen, " ");
sbin/unwind/libunbound/sldns/wire2str.c
809
w += n;
sbin/unwind/libunbound/sldns/wire2str.c
814
return w;
sbin/unwind/libunbound/sldns/wire2str.c
820
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
823
w += sldns_str_print(s, slen, "\\# %u", (unsigned)*dlen);
sbin/unwind/libunbound/sldns/wire2str.c
827
w += sldns_str_print(s, slen, " ");
sbin/unwind/libunbound/sldns/wire2str.c
828
w += print_hex_buf(s, slen, *d, *dlen);
sbin/unwind/libunbound/sldns/wire2str.c
831
return w;
sbin/unwind/libunbound/sldns/wire2str.c
853
int w = 0;
sbin/unwind/libunbound/sldns/wire2str.c
882
return w + sldns_str_print(s, slen,
sbin/unwind/libunbound/sldns/wire2str.c
885
return w + sldns_str_print(s, slen,
sbin/unwind/libunbound/sldns/wire2str.c
891
return w + sldns_str_print(s, slen,
sbin/unwind/libunbound/sldns/wire2str.c
896
return w + sldns_str_print(s, slen,
sbin/unwind/libunbound/sldns/wire2str.c
904
w += sldns_str_print(s, slen,
sbin/unwind/libunbound/sldns/wire2str.c
907
return w;
sbin/unwind/libunbound/sldns/wire2str.c
921
w += sldns_str_print(s, slen,
sbin/unwind/libunbound/sldns/wire2str.c
923
return w;
sbin/unwind/libunbound/sldns/wire2str.c
926
w += dname_char_print(s, slen, *pos++);
sbin/unwind/libunbound/sldns/wire2str.c
933
w += sldns_str_print(s, slen, ".");
sbin/unwind/libunbound/sldns/wire2str.c
938
if(w == 0) w += sldns_str_print(s, slen, ".");
sbin/unwind/libunbound/sldns/wire2str.c
939
return w;
sbin/unwind/libunbound/util/config_file.c
1009
w = r;
sbin/unwind/libunbound/util/config_file.c
1016
snprintf(w, left, "%s\n", s->str);
sbin/unwind/libunbound/util/config_file.c
1017
this = strlen(w);
sbin/unwind/libunbound/util/config_file.c
1018
w += this;
sbin/unwind/libunbound/util/config_file.c
997
char *r, *w;
sbin/unwind/libunbound/util/mini_event.c
180
fd_set r, w;
sbin/unwind/libunbound/util/mini_event.c
188
memmove(&w, &base->writes, sizeof(fd_set));
sbin/unwind/libunbound/util/mini_event.c
191
if((ret = select(base->maxfd+1, &r, &w, NULL, wait)) == -1) {
sbin/unwind/libunbound/util/mini_event.c
212
if(FD_ISSET(i, &w)) {
sys/arch/alpha/alpha/trap.c
749
u_int16_t w;
sys/arch/alpha/alpha/trap.c
752
if (copyin((caddr_t)memaddr, &w, sizeof (w)) != 0)
sys/arch/alpha/alpha/trap.c
755
*regptr = w;
sys/arch/alpha/alpha/trap.c
757
u_int16_t w;
sys/arch/alpha/alpha/trap.c
760
w = (regptr != NULL) ? *regptr : 0;
sys/arch/alpha/alpha/trap.c
761
if (copyout(&w, (caddr_t)memaddr, sizeof (w)) != 0)
sys/arch/alpha/alpha/trap.c
794
int16_t w;
sys/arch/alpha/alpha/trap.c
797
w = inst.operate_lit_format.literal;
sys/arch/alpha/alpha/trap.c
802
w = (regptr != NULL) ? *regptr : 0;
sys/arch/alpha/alpha/trap.c
807
*regptr = w;
sys/arch/alpha/include/bus.h
193
(*(t)->__abs_opname(w,sz))((t)->abs_cookie, h, o, v)
sys/arch/arm/include/bus.h
221
(*(t)->__bs_opname(w,sz))((t)->bs_cookie, h, o, v)
sys/arch/arm64/arm64/disasm.c
3981
#define WIDTHMASK(w) (0xffffffff >> (32 - (w)))
sys/arch/hppa/hppa/db_disasm.c
1294
addDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1296
db_printf("%s\t%%r%d,%%r%d,%%r%d",addDCond(Cond4(w)),
sys/arch/hppa/hppa/db_disasm.c
1297
Rsa(w),Rsb(w),Rtc(w));
sys/arch/hppa/hppa/db_disasm.c
1303
unitDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1305
db_printf("%s", unitDCond(Cond4(w)));
sys/arch/hppa/hppa/db_disasm.c
1307
db_printf("\t%%r%d,%%r%d",Rsb(w),Rtc(w));
sys/arch/hppa/hppa/db_disasm.c
1309
db_printf("\t%%r%d,%%r%d,%%r%d",Rsa(w),Rsb(w),Rtc(w));
sys/arch/hppa/hppa/db_disasm.c
1315
iaDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1319
addDCond(Cond4(w)),Im11(w),Rsb(w),Rta(w));
sys/arch/hppa/hppa/db_disasm.c
1322
subDCond(Cond4(w)),Im11(w),Rsb(w),Rta(w));
sys/arch/hppa/hppa/db_disasm.c
1328
shdDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1332
edDCond(Cond(w)), Rsa(w),Rsb(w),Rtc(w));
sys/arch/hppa/hppa/db_disasm.c
1335
edDCond(Cond(w)),Rsa(w),Rsb(w),31-Imd5(w),Rtc(w));
sys/arch/hppa/hppa/db_disasm.c
1341
extrDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1344
edDCond(Cond(w)),Rsb(w),Imd5(w),32 - Rsc(w),Rta(w));
sys/arch/hppa/hppa/db_disasm.c
1351
vextrDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1354
edDCond(Cond(w)),Rsb(w),32 - Rsc(w),Rta(w));
sys/arch/hppa/hppa/db_disasm.c
1361
depDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1364
edDCond(Cond(w)),Rsa(w),31 - Imd5(w),32 - Rsc(w),Rtb(w));
sys/arch/hppa/hppa/db_disasm.c
1371
vdepDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1374
edDCond(Cond(w)),Rsa(w),32 - Rsc(w),Rtb(w));
sys/arch/hppa/hppa/db_disasm.c
1381
depiDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1384
edDCond(Cond(w)),Ima5(w),31 - Imd5(w),32 - Imc5A(w),Rtb(w));
sys/arch/hppa/hppa/db_disasm.c
1390
vdepiDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1392
db_printf("%s\t%d,%d,%%r%d",edDCond(Cond(w)),Ima5(w),32-Imc5A(w),Rtb(w));
sys/arch/hppa/hppa/db_disasm.c
1504
ldDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1506
register int d = Disp(w);
sys/arch/hppa/hppa/db_disasm.c
1516
if (Rsb(w) == 0 && Match("ldo")) {
sys/arch/hppa/hppa/db_disasm.c
1517
db_printf("ldi\t%s%X,%%r%d",s,d,Rta(w));
sys/arch/hppa/hppa/db_disasm.c
1521
if (Dss(w))
sys/arch/hppa/hppa/db_disasm.c
1522
db_printf("(%%sr%d,%%r%d),%%r%d",Dss(w),Rsb(w),Rta(w));
sys/arch/hppa/hppa/db_disasm.c
1524
db_printf("(%%r%d),%%r%d",Rsb(w),Rta(w));
sys/arch/hppa/hppa/db_disasm.c
1530
stDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1532
register int d = Disp(w);
sys/arch/hppa/hppa/db_disasm.c
1535
db_printf("\t%%r%d,",Rta(w));
sys/arch/hppa/hppa/db_disasm.c
1546
if (Dss(w))
sys/arch/hppa/hppa/db_disasm.c
1547
db_printf("(%%sr%d,%%r%d)",Dss(w),Rsb(w));
sys/arch/hppa/hppa/db_disasm.c
1549
db_printf("(%%r%d)",Rsb(w));
sys/arch/hppa/hppa/db_disasm.c
1555
ldxDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1559
if (ShortDisp(w)) {
sys/arch/hppa/hppa/db_disasm.c
1561
if (Modify(w))
sys/arch/hppa/hppa/db_disasm.c
1562
db_printf(",m%s", ModBefore(w)? "b": "a");
sys/arch/hppa/hppa/db_disasm.c
1565
if (Modify(w))
sys/arch/hppa/hppa/db_disasm.c
1566
db_printf(",%sm", IndxShft(w)? "s":"");
sys/arch/hppa/hppa/db_disasm.c
1568
switch (CacheCtrl(w)) {
sys/arch/hppa/hppa/db_disasm.c
1574
if (ShortDisp(w))
sys/arch/hppa/hppa/db_disasm.c
1575
db_printf("%s\t%d", p, Ima5(w));
sys/arch/hppa/hppa/db_disasm.c
1577
db_printf("%s\t%%r%d", p, Rsa(w));
sys/arch/hppa/hppa/db_disasm.c
1579
if (Dss(w))
sys/arch/hppa/hppa/db_disasm.c
1580
db_printf("(%%sr%d,%%r%d),%%r%d",Dss(w),Rsb(w),Rtc(w));
sys/arch/hppa/hppa/db_disasm.c
1582
db_printf("(%%r%d),%%r%d",Rsb(w),Rtc(w));
sys/arch/hppa/hppa/db_disasm.c
1588
stsDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1591
if (Modify(w))
sys/arch/hppa/hppa/db_disasm.c
1592
db_printf(",m%s", ModBefore(w)? "b":"a");
sys/arch/hppa/hppa/db_disasm.c
1594
switch (CacheCtrl(w)) {
sys/arch/hppa/hppa/db_disasm.c
1600
db_printf("%s\t%%r%d,", p, Rta(w));
sys/arch/hppa/hppa/db_disasm.c
1601
if (Dss(w))
sys/arch/hppa/hppa/db_disasm.c
1602
db_printf("%d(%%sr%d,%%r%d)",Imc5(w),Dss(w),Rsb(w));
sys/arch/hppa/hppa/db_disasm.c
1604
db_printf("%d(%%r%d)",Imc5(w),Rsb(w));
sys/arch/hppa/hppa/db_disasm.c
1610
stbysDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1613
db_printf(ModBefore(w)? ",e":",b");
sys/arch/hppa/hppa/db_disasm.c
1614
if (Modify(w))
sys/arch/hppa/hppa/db_disasm.c
1616
switch (CacheCtrl(w)) {
sys/arch/hppa/hppa/db_disasm.c
1622
db_printf("%s\t%%r%d,", p, Rta(w));
sys/arch/hppa/hppa/db_disasm.c
1623
if (Dss(w))
sys/arch/hppa/hppa/db_disasm.c
1624
db_printf("%d(%%sr%d,%%r%d)",Imc5(w),Dss(w),Rsb(w));
sys/arch/hppa/hppa/db_disasm.c
1626
db_printf("%d(%%r%d)",Imc5(w),Rsb(w));
sys/arch/hppa/hppa/db_disasm.c
1632
limmDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1634
db_printf("\tL'%X,%%r%d", Im21(w), Rtb(w));
sys/arch/hppa/hppa/db_disasm.c
1641
blDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1643
register OFS tgtofs = ofs + 8 + Bdisp(w);
sys/arch/hppa/hppa/db_disasm.c
1644
register u_int link = Rtb(w);
sys/arch/hppa/hppa/db_disasm.c
1648
if (Nu(w))
sys/arch/hppa/hppa/db_disasm.c
1662
brDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1664
db_printf("%s\t%%r%d,%%r%d", Nu(w)?",n":"", Rsa(w), Rtb(w));
sys/arch/hppa/hppa/db_disasm.c
1670
bvDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1672
db_printf("%s\t%%r%d(%%r%d)", Nu(w)?",n":"", Rsa(w), Rsb(w));
sys/arch/hppa/hppa/db_disasm.c
1678
beDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1680
register int d = Bdisp(w);
sys/arch/hppa/hppa/db_disasm.c
1691
p = Nu(w)? ",n":"";
sys/arch/hppa/hppa/db_disasm.c
1692
db_printf("%s\tR'%s%X(%%sr%d,%%r%d)", p, s, d, Sr(w), Rsb(w));
sys/arch/hppa/hppa/db_disasm.c
1699
cbDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1701
register OFS tgtofs = ofs + 8 + Cbdisp(w);
sys/arch/hppa/hppa/db_disasm.c
1704
db_printf("%s", edDCond(Cond(w)));
sys/arch/hppa/hppa/db_disasm.c
1706
db_printf("%s", addDCond(Cond(w) << 1));
sys/arch/hppa/hppa/db_disasm.c
1708
db_printf("%s", subDCond(Cond(w) << 1));
sys/arch/hppa/hppa/db_disasm.c
1709
db_printf("%s\t%%r%d,%%r%d,", Nu(w)?",n":"", Rsa(w), Rsb(w));
sys/arch/hppa/hppa/db_disasm.c
1716
cbiDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1718
register OFS tgtofs = ofs + 8 + Cbdisp(w);
sys/arch/hppa/hppa/db_disasm.c
1721
db_printf("%s", edDCond(Cond(w)));
sys/arch/hppa/hppa/db_disasm.c
1723
db_printf("%s", addDCond(Cond(w) << 1));
sys/arch/hppa/hppa/db_disasm.c
1725
db_printf("%s", subDCond(Cond(w) << 1));
sys/arch/hppa/hppa/db_disasm.c
1726
db_printf("%s\t%d,%%r%d,", Nu(w)? ",n":"", Ima5(w), Rsb(w));
sys/arch/hppa/hppa/db_disasm.c
1733
bbDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1735
register OFS tgtofs = ofs + 8 + Cbdisp(w);
sys/arch/hppa/hppa/db_disasm.c
1738
db_printf("%s", edDCond(Cond(w)));
sys/arch/hppa/hppa/db_disasm.c
1739
p = Nu(w)? ",n":"";
sys/arch/hppa/hppa/db_disasm.c
1741
db_printf("%s\t%%r%d,", p, Rta(w));
sys/arch/hppa/hppa/db_disasm.c
1743
db_printf("%s\t%%r%d,%d,", p, Rsa(w), Imb5(w));
sys/arch/hppa/hppa/db_disasm.c
1750
ariDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1752
if (Match("or") && Rsb(w) == 0 && Cond4(w) == NEV) {
sys/arch/hppa/hppa/db_disasm.c
1753
if (Rsa(w) == 0 && Rtc(w) == 0)
sys/arch/hppa/hppa/db_disasm.c
1756
db_printf("copy\t%%r%d,%%r%d",Rsa(w),Rtc(w));
sys/arch/hppa/hppa/db_disasm.c
1759
subDCond(Cond4(w)), Rsa(w),Rsb(w),Rtc(w));
sys/arch/hppa/hppa/db_disasm.c
1765
scDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1768
if (Rtb(w) == 11)
sys/arch/hppa/hppa/db_disasm.c
1769
db_printf("mtsar\t%%r%d",Rsa(w));
sys/arch/hppa/hppa/db_disasm.c
1771
db_printf("mtctl\t%%r%d,%%cr%d",Rsa(w),Rtb(w));
sys/arch/hppa/hppa/db_disasm.c
1776
db_printf("\t%d,%%r%d",Ima5A(w),Rtc(w));
sys/arch/hppa/hppa/db_disasm.c
1777
else if (Match("mtsm")) db_printf("\t%%r%d",Rsa(w));
sys/arch/hppa/hppa/db_disasm.c
1778
else if (Match("ldprid")) db_printf("\t%%r%d",Rtc(w));
sys/arch/hppa/hppa/db_disasm.c
1779
else if (Match("mtsp")) db_printf("\t%%r%d,%%sr%d",Rsa(w),Sr(w));
sys/arch/hppa/hppa/db_disasm.c
1780
else if (Match("mfsp")) db_printf("\t%%sr%d,%%r%d",Sr(w),Rtc(w));
sys/arch/hppa/hppa/db_disasm.c
1781
else if (Match("mfctl")) db_printf("\t%%cr%d,%%r%d",Rsb(w),Rtc(w));
sys/arch/hppa/hppa/db_disasm.c
1783
if (Dss(w))
sys/arch/hppa/hppa/db_disasm.c
1784
db_printf("\t(%%sr%d,%%r%d),%%r%d",Dss(w),Rsb(w),Rtc(w));
sys/arch/hppa/hppa/db_disasm.c
1786
db_printf("\t(%%r%d),%%r%d",Rsb(w),Rtc(w));
sys/arch/hppa/hppa/db_disasm.c
1795
mmgtDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1798
if (ProbeI(w)) {
sys/arch/hppa/hppa/db_disasm.c
1799
if (Dss(w))
sys/arch/hppa/hppa/db_disasm.c
1801
Dss(w),Rsb(w),Rsa(w),Rtc(w));
sys/arch/hppa/hppa/db_disasm.c
1804
Rsb(w),Rsa(w),Rtc(w));
sys/arch/hppa/hppa/db_disasm.c
1806
if (Dss(w))
sys/arch/hppa/hppa/db_disasm.c
1808
Dss(w),Rsb(w),Rsa(w),Rtc(w));
sys/arch/hppa/hppa/db_disasm.c
1811
Rsb(w),Rsa(w),Rtc(w));
sys/arch/hppa/hppa/db_disasm.c
1815
if (Modify(w))
sys/arch/hppa/hppa/db_disasm.c
1817
if (Dss(w))
sys/arch/hppa/hppa/db_disasm.c
1819
Rsa(w),Dss(w),Rsb(w),Rtc(w));
sys/arch/hppa/hppa/db_disasm.c
1821
db_printf("\t%%r%d(%%r%d),%%r%d",Rsa(w),Rsb(w),Rtc(w));
sys/arch/hppa/hppa/db_disasm.c
1824
if (Modify(w)) db_printf(",m");
sys/arch/hppa/hppa/db_disasm.c
1825
if (Dss(w))
sys/arch/hppa/hppa/db_disasm.c
1826
db_printf("\t%%r%d(%%sr%d,%%r%d)",Rsa(w),Dss(w),Rsb(w));
sys/arch/hppa/hppa/db_disasm.c
1828
db_printf("\t%%r%d(%%r%d)",Rsa(w),Rsb(w));
sys/arch/hppa/hppa/db_disasm.c
1831
if (Modify(w))
sys/arch/hppa/hppa/db_disasm.c
1833
db_printf("\t%%r%d(%%sr%d,%%r%d)",Rsa(w),Sr(w),Rsb(w));
sys/arch/hppa/hppa/db_disasm.c
1836
if (Dss(w))
sys/arch/hppa/hppa/db_disasm.c
1837
db_printf("\t%%r%d,(%%sr%d,%%r%d)",Rsa(w),Dss(w),Rsb(w));
sys/arch/hppa/hppa/db_disasm.c
1839
db_printf("\t%%r%d,(%%r%d)",Rsa(w),Rsb(w));
sys/arch/hppa/hppa/db_disasm.c
1842
db_printf("\t%%r%d,(%%sr%d,%%r%d)",Rsa(w),Sr(w),Rsb(w));
sys/arch/hppa/hppa/db_disasm.c
1851
brkDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1853
db_printf("\t%d,%d",Bi1(w),Bi2(w));
sys/arch/hppa/hppa/db_disasm.c
1858
floatDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
1864
op1 = CoprExt1(w);
sys/arch/hppa/hppa/db_disasm.c
1865
op2 = CoprExt2(w);
sys/arch/hppa/hppa/db_disasm.c
1874
if ((fmt & 1) == 0 && (Uid(w) & 2))
sys/arch/hppa/hppa/db_disasm.c
1903
if ((fmt & 1) == 0 && (Uid(w) & 1))
sys/arch/hppa/hppa/db_disasm.c
1909
case 2: p = (Fpi(w)) ? "mpyi" : "mpy"; break;
sys/arch/hppa/hppa/db_disasm.c
1924
if ((dfmt & 1) == 0 && (Uid(w) & 1))
sys/arch/hppa/hppa/db_disasm.c
1940
if ((fmt & 1) == 0 && (Uid(w) & 1))
sys/arch/hppa/hppa/db_disasm.c
1958
fcoprDasm(int w, u_int op1, u_int op2)
sys/arch/hppa/hppa/db_disasm.c
1963
if (AstNu(w) && op1 == ((1<<4) | 2)) {
sys/arch/hppa/hppa/db_disasm.c
2037
coprDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
2039
register u_int uid = Uid(w);
sys/arch/hppa/hppa/db_disasm.c
2046
db_printf("copr,%d,0x%x",uid,CoprExt(w));
sys/arch/hppa/hppa/db_disasm.c
2047
if (AstNu(w))
sys/arch/hppa/hppa/db_disasm.c
2051
return fcoprDasm(w, CoprExt1(w),CoprExt2(w));
sys/arch/hppa/hppa/db_disasm.c
2068
if (ShortDisp(w)) {
sys/arch/hppa/hppa/db_disasm.c
2070
if (AstNu(w))
sys/arch/hppa/hppa/db_disasm.c
2071
db_printf(",m%s", ModBefore(w)?"b":"a");
sys/arch/hppa/hppa/db_disasm.c
2075
if (AstNu(w))
sys/arch/hppa/hppa/db_disasm.c
2076
db_printf(",%sm", IndxShft(w)?"s":"");
sys/arch/hppa/hppa/db_disasm.c
2077
else if (IndxShft(w))
sys/arch/hppa/hppa/db_disasm.c
2080
switch (CacheCtrl(w)) {
sys/arch/hppa/hppa/db_disasm.c
2090
p = fdreg[(Rtc(w)<<1)+(uid&1)];
sys/arch/hppa/hppa/db_disasm.c
2092
p = fsreg[(Rtc(w)<<1)+(uid&1)];
sys/arch/hppa/hppa/db_disasm.c
2094
if (ShortDisp(w))
sys/arch/hppa/hppa/db_disasm.c
2095
db_printf("\t%d",Ima5(w));
sys/arch/hppa/hppa/db_disasm.c
2097
db_printf("\t%%r%d",Rsa(w));
sys/arch/hppa/hppa/db_disasm.c
2098
if (Dss(w))
sys/arch/hppa/hppa/db_disasm.c
2099
db_printf("(%%sr%d,%%r%d),%%f%s", Dss(w),Rsb(w), p);
sys/arch/hppa/hppa/db_disasm.c
2101
db_printf("(%%r%d),%%f%s",Rsb(w), p);
sys/arch/hppa/hppa/db_disasm.c
2106
p = fdreg[(Rsc(w)<<1)+(uid&1)];
sys/arch/hppa/hppa/db_disasm.c
2108
p = fsreg[(Rsc(w)<<1)+(uid&1)];
sys/arch/hppa/hppa/db_disasm.c
2110
if (ShortDisp(w))
sys/arch/hppa/hppa/db_disasm.c
2111
db_printf("\t%%f%s,%d", p, Ima5(w));
sys/arch/hppa/hppa/db_disasm.c
2113
db_printf("\t%%f%s,%%r%d", p, Rta(w));
sys/arch/hppa/hppa/db_disasm.c
2114
if (Dss(w))
sys/arch/hppa/hppa/db_disasm.c
2115
db_printf("(%%sr%d,%%r%d)",Dss(w),Rsb(w));
sys/arch/hppa/hppa/db_disasm.c
2117
db_printf("(%%r%d)",Rsb(w));
sys/arch/hppa/hppa/db_disasm.c
2123
lpkDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
2129
if (ShortDisp(w)) {
sys/arch/hppa/hppa/db_disasm.c
2130
if (Modify(w))
sys/arch/hppa/hppa/db_disasm.c
2131
db_printf(",m%s", ModBefore(w)?"b":"a");
sys/arch/hppa/hppa/db_disasm.c
2133
if (Modify(w))
sys/arch/hppa/hppa/db_disasm.c
2134
db_printf(",%sm", IndxShft(w)? "s":"");
sys/arch/hppa/hppa/db_disasm.c
2135
else if (IndxShft(w))
sys/arch/hppa/hppa/db_disasm.c
2138
switch (CacheCtrl(w)) {
sys/arch/hppa/hppa/db_disasm.c
2144
if (ShortDisp(w))
sys/arch/hppa/hppa/db_disasm.c
2145
db_printf("\t%%fr%d,%d",Rsc(w),Ima5(w));
sys/arch/hppa/hppa/db_disasm.c
2147
db_printf("\t%%fr%d,%%r%d",Rsc(w),Rta(w));
sys/arch/hppa/hppa/db_disasm.c
2148
if (Dss(w))
sys/arch/hppa/hppa/db_disasm.c
2149
db_printf("(%%sr%d,%%r%d)",Dss(w),Rsb(w));
sys/arch/hppa/hppa/db_disasm.c
2151
db_printf("(%%r%d)",Rsb(w));
sys/arch/hppa/hppa/db_disasm.c
2156
diagDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
2158
if (0x0b0 == BitfR(w,19,8,_b198)) /* mtcpu */
sys/arch/hppa/hppa/db_disasm.c
2159
db_printf("mtcpu\t%%r%d,%%dr%d", Rsa(w), Rtb(w));
sys/arch/hppa/hppa/db_disasm.c
2160
else if (0x0d0 == BitfR(w,19,8,_b198)) /* mfcpu */
sys/arch/hppa/hppa/db_disasm.c
2161
db_printf("mfcpu\t%%dr%d,%%r%d", Rsb(w), Rta(w));
sys/arch/hppa/hppa/db_disasm.c
2165
db_printf("\t0x%X",w & 0x03ffffff);
sys/arch/hppa/hppa/db_disasm.c
2173
fmpysubDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
2175
if (SinglePrec(w))
sys/arch/hppa/hppa/db_disasm.c
2177
fsreg[Ms1(w)], fsreg[Ms2(w)], fsreg[Mt(w)],
sys/arch/hppa/hppa/db_disasm.c
2178
fsreg[As(w)], fsreg[Ad(w)]);
sys/arch/hppa/hppa/db_disasm.c
2181
fdreg[Ms1(w)], fdreg[Ms2(w)], fdreg[Mt(w)],
sys/arch/hppa/hppa/db_disasm.c
2182
fdreg[As(w)], fdreg[Ad(w)]);
sys/arch/hppa/hppa/db_disasm.c
2187
fmpyaddDasm(const struct inst *i, OFS ofs, int w)
sys/arch/hppa/hppa/db_disasm.c
2190
*ms1 = SinglePrec(w) ? fsreg[Ms1(w)] : fdreg[Ms1(w)],
sys/arch/hppa/hppa/db_disasm.c
2191
*ms2 = SinglePrec(w) ? fsreg[Ms2(w)] : fdreg[Ms2(w)],
sys/arch/hppa/hppa/db_disasm.c
2192
*mt = SinglePrec(w) ? fsreg[Mt(w)] : fdreg[Mt(w)],
sys/arch/hppa/hppa/db_disasm.c
2193
*as = SinglePrec(w) ? fsreg[As(w)] : fdreg[As(w)],
sys/arch/hppa/hppa/db_disasm.c
2194
*ad = SinglePrec(w) ? fsreg[Ad(w)] : fdreg[Ad(w)];
sys/arch/hppa/hppa/db_disasm.c
2196
if (Rsd(w) == 0)
sys/arch/hppa/hppa/db_disasm.c
2198
((SinglePrec(w)) ? "sgl" : "dbl"), ms1, ms2, mt);
sys/arch/hppa/hppa/db_disasm.c
2201
((SinglePrec(w)) ? "sgl" : "dbl"), ms1, ms2, mt, as, ad);
sys/arch/hppa/hppa/db_disasm.c
892
int fcoprDasm(int w, u_int op1, u_int);
sys/arch/hppa/hppa/db_disasm.c
897
int blDasm(const struct inst *i, OFS ofs, int w);
sys/arch/hppa/hppa/db_disasm.c
967
#define AstNu(w) Modify(w)
sys/arch/hppa/hppa/db_disasm.c
968
#define Fpi(w) (Uid(w)>3)
sys/arch/hppa/hppa/in_cksum.c
55
: "+r" (sum), "+r" (w) :: "r20", "r19")
sys/arch/hppa/hppa/in_cksum.c
61
: "+r" (sum), "+r" (w) :: "r20", "r19")
sys/arch/hppa/hppa/in_cksum.c
66
#define ADDBYTE {ROL; sum += *w++; bins++; mlen--;}
sys/arch/hppa/hppa/in_cksum.c
67
#define ADDSHORT {sum += *(u_short *)w; w += 2; mlen -= 2;}
sys/arch/hppa/hppa/in_cksum.c
70
: "+r" (sum), "+r" (w), "+r" (mlen) :: "r19")
sys/arch/hppa/hppa/in_cksum.c
80
u_char *w;
sys/arch/hppa/hppa/in_cksum.c
87
w = mtod(m, u_char *);
sys/arch/hppa/hppa/in_cksum.c
94
if ((7 & (u_long)w) != 0) {
sys/arch/hppa/hppa/in_cksum.c
95
if ((1 & (u_long)w) != 0)
sys/arch/hppa/hppa/in_cksum.c
97
if ((2 & (u_long)w) != 0)
sys/arch/hppa/hppa/in_cksum.c
99
if ((4 & (u_long)w) != 0)
sys/arch/hppa/include/cpu.h
184
#define HPPA_FPUVER(w) (((w) & 0x003ff800) >> 11)
sys/arch/hppa/include/cpu.h
185
#define HPPA_FPU_OP(w) ((w) >> 26)
sys/arch/landisk/include/bus.h
230
(*(t)->__bs_opname(w,sz))((t)->bs_cookie, h, o, v)
sys/arch/loongson/dev/bonito.c
1050
bus_addr_t ws, we, w;
sys/arch/loongson/dev/bonito.c
1078
w = pcimap & BONITO_PCIMAP_PCIMAP_2 ? 0x80000000UL : 0;
sys/arch/loongson/dev/bonito.c
1079
if (offs >= w && end < (w + 0x80000000UL)) {
sys/arch/loongson/dev/bonito.c
1080
*bshp = t->bus_base + 0x80000000UL + (offs - w);
sys/arch/loongson/dev/bonito.c
1120
for (w = ws + 1; w <= we; w++) {
sys/arch/loongson/dev/bonito.c
1121
if (pcilo_window + (w - ws) > 2 ||
sys/arch/loongson/dev/bonito.c
1122
w != pcilo_w[pcilo_window + (w - ws)]) {
sys/arch/loongson/dev/bonito.c
812
int (*w)(void *, pci_chipset_tag_t, pcitag_t, int, pcireg_t))
sys/arch/loongson/dev/bonito.c
822
bch->write = w;
sys/arch/loongson/dev/radeonfb.c
478
int x, y, w;
sys/arch/loongson/dev/radeonfb.c
485
w = ri->ri_width;
sys/arch/loongson/dev/radeonfb.c
490
w = ri->ri_emuwidth;
sys/arch/loongson/dev/radeonfb.c
492
radeonfb_fillrect(fb, x, y, w, num, ri->ri_devcmap[bg]);
sys/arch/loongson/dev/radeonfb.c
537
int w, int h)
sys/arch/loongson/dev/radeonfb.c
556
sx += w - 1;
sys/arch/loongson/dev/radeonfb.c
557
dx += w - 1;
sys/arch/loongson/dev/radeonfb.c
580
RADEON_DST_HEIGHT_WIDTH, RADEON_COORDS(w, h));
sys/arch/loongson/dev/radeonfb.c
586
radeonfb_fillrect(struct radeonfb *fb, int x, int y, int w, int h, int color)
sys/arch/loongson/dev/radeonfb.c
613
RADEON_DST_HEIGHT_WIDTH, RADEON_COORDS(w, h));
sys/arch/loongson/dev/smfb.c
489
smfb_copyrect(struct smfb *fb, int sx, int sy, int dx, int dy, int w, int h)
sys/arch/loongson/dev/smfb.c
495
sx += w - 1;
sys/arch/loongson/dev/smfb.c
496
dx += w - 1;
sys/arch/loongson/dev/smfb.c
505
DPR_WRITE(fb, DPR_SPAN_COORDS, DPR_COORDS(w, h));
sys/arch/loongson/dev/smfb.c
515
smfb_fillrect(struct smfb *fb, int x, int y, int w, int h, int bg)
sys/arch/loongson/dev/smfb.c
523
DPR_WRITE(fb, DPR_SPAN_COORDS, DPR_COORDS(w, h));
sys/arch/loongson/dev/smfb.c
594
int x, y, w;
sys/arch/loongson/dev/smfb.c
601
w = ri->ri_width;
sys/arch/loongson/dev/smfb.c
606
w = ri->ri_emuwidth;
sys/arch/loongson/dev/smfb.c
608
smfb_fillrect(fb, x, y, w, num, bg);
sys/arch/luna88k/dev/maskbits.h
60
#define maskbits(x, w, startmask, endmask, nlw) \
sys/arch/luna88k/dev/maskbits.h
63
endmask = rasops_rmask[((x) + (w)) & 0x1f]; \
sys/arch/luna88k/dev/maskbits.h
65
nlw = (((w) - (32 - ((x) & 0x1f))) >> 5); \
sys/arch/luna88k/dev/maskbits.h
67
nlw = (w) >> 5; \
sys/arch/luna88k/dev/maskbits.h
86
#define OMFB_GETBITS(sp, x, w, dw) \
sys/arch/luna88k/dev/maskbits.h
89
if (((x) + (w)) > 32) \
sys/arch/luna88k/dev/maskbits.h
94
#define OMFB_PUTBITS(sw, x, w, dp) \
sys/arch/luna88k/dev/maskbits.h
96
int n = (x) + (w) - 32; \
sys/arch/luna88k/dev/maskbits.h
99
n = rasops_pmask[x & 31][w & 31]; \
sys/arch/powerpc/powerpc/in_cksum.c
108
if ((3 & (long) w) && (mlen > 0)) {
sys/arch/powerpc/powerpc/in_cksum.c
109
if ((1 & (long) w)) {
sys/arch/powerpc/powerpc/in_cksum.c
112
s_util.c[0] = *w++;
sys/arch/powerpc/powerpc/in_cksum.c
116
if ((2 & (long) w) && (mlen > 1)) {
sys/arch/powerpc/powerpc/in_cksum.c
127
: "b"(w)
sys/arch/powerpc/powerpc/in_cksum.c
129
w += 2;
sys/arch/powerpc/powerpc/in_cksum.c
176
: "r"(n), "b"(w - 4)
sys/arch/powerpc/powerpc/in_cksum.c
179
w += n * 64;
sys/arch/powerpc/powerpc/in_cksum.c
197
: "r"(n), "b"(w - 4)
sys/arch/powerpc/powerpc/in_cksum.c
199
w += n * 8;
sys/arch/powerpc/powerpc/in_cksum.c
208
sum += *(uint16_t *)w;
sys/arch/powerpc/powerpc/in_cksum.c
209
w += 2;
sys/arch/powerpc/powerpc/in_cksum.c
217
s_util.c[1] = *w;
sys/arch/powerpc/powerpc/in_cksum.c
223
s_util.c[0] = *w;
sys/arch/powerpc/powerpc/in_cksum.c
248
uint16_t *w;
sys/arch/powerpc/powerpc/in_cksum.c
252
u_int16_t w[10];
sys/arch/powerpc/powerpc/in_cksum.c
262
w = u.w;
sys/arch/powerpc/powerpc/in_cksum.c
264
sum += w[4]; sum += w[5]; sum += w[6];
sys/arch/powerpc/powerpc/in_cksum.c
265
sum += w[7]; sum += w[8]; sum += w[9];
sys/arch/powerpc/powerpc/in_cksum.c
64
uint8_t *w;
sys/arch/powerpc/powerpc/in_cksum.c
77
w = mtod(m, uint8_t *) + off;
sys/arch/powerpc/powerpc/in_cksum.c
93
s_util.c[1] = *w++;
sys/arch/sh/include/locore.h
116
swap.w r0, r0 /* r0 = 0x10000000 */ ;\
sys/arch/sh/include/locore.h
163
swap.w Rn, Rn /* Rn = 0x10000000 */ ;\
sys/arch/sh/include/locore.h
171
swap.w Rn, Rn /* Rn = 0x10000000 */ ;\
sys/arch/sh/include/locore.h
61
swap.w r3, r3 /* r3 = 0x40000000 */ ;\
sys/arch/sh/sh/mmu_sh3.c
56
int w;
sys/arch/sh/sh/mmu_sh3.c
62
for (w = 0; w < SH3_MMU_WAY; w++) {
sys/arch/sh/sh/mmu_sh3.c
63
a = va | (w << SH3_MMU_WAY_SHIFT); /* way [9:8] */
sys/arch/sh/sh/mmu_sh3.c
76
int e, w;
sys/arch/sh/sh/mmu_sh3.c
79
for (w = 0; w < SH3_MMU_WAY; w++) {
sys/arch/sh/sh/mmu_sh3.c
80
aw = (w << SH3_MMU_WAY_SHIFT);
sys/arch/sh/sh/mmu_sh3.c
95
int e, w;
sys/arch/sh/sh/mmu_sh3.c
98
for (w = 0; w < SH3_MMU_WAY; w++) {
sys/arch/sh/sh/mmu_sh3.c
99
aw = (w << SH3_MMU_WAY_SHIFT);
sys/arch/sparc64/dev/gfxp.c
512
int x, y, w;
sys/arch/sparc64/dev/gfxp.c
519
w = ri->ri_width;
sys/arch/sparc64/dev/gfxp.c
524
w = ri->ri_emuwidth;
sys/arch/sparc64/dev/gfxp.c
526
gfxp_fillrect(sc, x, y, w, num, ri->ri_devcmap[bg]);
sys/arch/sparc64/dev/gfxp.c
629
int w, int h)
sys/arch/sparc64/dev/gfxp.c
646
PM2_COORDS(w, h));
sys/arch/sparc64/dev/gfxp.c
654
gfxp_fillrect(struct gfxp_softc *sc, int x, int y, int w, int h, int color)
sys/arch/sparc64/dev/gfxp.c
662
PM2_COORDS(w, h));
sys/arch/sparc64/dev/ifb.c
1060
int x, y, w;
sys/arch/sparc64/dev/ifb.c
1067
w = ri->ri_width;
sys/arch/sparc64/dev/ifb.c
1072
w = ri->ri_emuwidth;
sys/arch/sparc64/dev/ifb.c
1074
ifb_fillrect(sc, x, y, w, num, ri->ri_devcmap[bg]);
sys/arch/sparc64/dev/ifb.c
1080
ifb_copyrect(struct ifb_softc *sc, int sx, int sy, int dx, int dy, int w, int h)
sys/arch/sparc64/dev/ifb.c
1082
ifb_rop(sc, sx, sy, dx, dy, w, h, IFB_ROP_SRC, IFB_PIXELMASK);
sys/arch/sparc64/dev/ifb.c
1087
ifb_fillrect(struct ifb_softc *sc, int x, int y, int w, int h, int bg)
sys/arch/sparc64/dev/ifb.c
1094
ifb_rop(sc, x, y, x, y, w, h, IFB_ROP_SET, mask);
sys/arch/sparc64/dev/ifb.c
1101
ifb_rop(sc, x, y, x, y, w, h, IFB_ROP_CLEAR, mask);
sys/arch/sparc64/dev/ifb.c
1113
ifb_rop(struct ifb_softc *sc, int sx, int sy, int dx, int dy, int w, int h,
sys/arch/sparc64/dev/ifb.c
1116
(*sc->sc_rop)(sc, sx, sy, dx, dy, w, h, rop, planemask);
sys/arch/sparc64/dev/ifb.c
1121
int dx, int dy, int w, int h, uint32_t rop, int32_t planemask)
sys/arch/sparc64/dev/ifb.c
1135
sx += w - 1;
sys/arch/sparc64/dev/ifb.c
1136
dx += w;
sys/arch/sparc64/dev/ifb.c
1161
bus_space_write_4(sc->sc_mem_t, sc->sc_reg_h, reg, IFB_COORDS(w, h));
sys/arch/sparc64/dev/ifb.c
1166
ifb_rop_ifb(void *v, int sx, int sy, int dx, int dy, int w, int h,
sys/arch/sparc64/dev/ifb.c
1177
ifb_rop_common(sc, reg, sx, sy, dx, dy, w, h, rop, planemask);
sys/arch/sparc64/dev/ifb.c
1181
ifb_rop_jfb(void *v, int sx, int sy, int dx, int dy, int w, int h,
sys/arch/sparc64/dev/ifb.c
1207
ifb_rop_common(sc, reg, sx, sy, dx, dy, w, h, rop, planemask);
sys/arch/sparc64/dev/iommureg.h
146
#define MAKEIOTTE(pa,w,c,s) (((pa)&IOTTE_PAMASK)|((w)?IOTTE_W:0)|((c)?IOTTE_C:0)|((s)?IOTTE_STREAM:0)|(IOTTE_V|IOTTE_8K))
sys/arch/sparc64/dev/machfb.c
573
int x, y, w;
sys/arch/sparc64/dev/machfb.c
580
w = ri->ri_width;
sys/arch/sparc64/dev/machfb.c
585
w = ri->ri_emuwidth;
sys/arch/sparc64/dev/machfb.c
587
machfb_fillrect(sc, x, y, w, num, ri->ri_devcmap[bg]);
sys/arch/sparc64/dev/machfb.c
725
int w, int h)
sys/arch/sparc64/dev/machfb.c
751
sx += w - 1;
sys/arch/sparc64/dev/machfb.c
752
dx += w - 1;
sys/arch/sparc64/dev/machfb.c
760
bus_space_write_4(sc->sc_regt, sc->sc_regh, M64_SRC_WIDTH1, w);
sys/arch/sparc64/dev/machfb.c
764
M64_DST_HEIGHT_WIDTH, M64_COORDS(w, h));
sys/arch/sparc64/dev/machfb.c
770
machfb_fillrect(struct machfb_softc *sc, int x, int y, int w, int h, int color)
sys/arch/sparc64/dev/machfb.c
789
bus_space_write_4(sc->sc_regt, sc->sc_regh, M64_SRC_WIDTH1, w);
sys/arch/sparc64/dev/machfb.c
793
M64_DST_HEIGHT_WIDTH, M64_COORDS(w, h));
sys/arch/sparc64/dev/radeonfb.c
512
int x, y, w;
sys/arch/sparc64/dev/radeonfb.c
519
w = ri->ri_width;
sys/arch/sparc64/dev/radeonfb.c
524
w = ri->ri_emuwidth;
sys/arch/sparc64/dev/radeonfb.c
526
radeonfb_fillrect(sc, x, y, w, num, ri->ri_devcmap[bg]);
sys/arch/sparc64/dev/radeonfb.c
582
int w, int h)
sys/arch/sparc64/dev/radeonfb.c
601
sx += w - 1;
sys/arch/sparc64/dev/radeonfb.c
602
dx += w - 1;
sys/arch/sparc64/dev/radeonfb.c
628
RADEON_DST_HEIGHT_WIDTH, RADEON_COORDS(w, h));
sys/arch/sparc64/dev/radeonfb.c
634
radeonfb_fillrect(struct radeonfb_softc *sc, int x, int y, int w, int h,
sys/arch/sparc64/dev/radeonfb.c
665
RADEON_DST_HEIGHT_WIDTH, RADEON_COORDS(w, h));
sys/arch/sparc64/dev/raptor.c
484
int x, y, w;
sys/arch/sparc64/dev/raptor.c
491
w = ri->ri_width;
sys/arch/sparc64/dev/raptor.c
496
w = ri->ri_emuwidth;
sys/arch/sparc64/dev/raptor.c
498
raptor_fillrect(sc, x, y, w, num, ri->ri_devcmap[bg]);
sys/arch/sparc64/dev/raptor.c
571
int w, int h)
sys/arch/sparc64/dev/raptor.c
580
sx += w - 1;
sys/arch/sparc64/dev/raptor.c
581
dx += w - 1;
sys/arch/sparc64/dev/raptor.c
594
I128_COORDS(w , h));
sys/arch/sparc64/dev/raptor.c
605
raptor_fillrect(struct raptor_softc *sc, int x, int y, int w, int h, int color)
sys/arch/sparc64/dev/raptor.c
616
I128_COORDS(w, h));
sys/arch/sparc64/sparc64/machdep.c
1885
void *a, const char *w)
sys/arch/sparc64/sparc64/machdep.c
1891
ret = _BS_CALL(t, sparc_intr_establish)(t, t0, p, l, f, h, a, w);
sys/arch/sparc64/sparc64/machdep.c
1898
struct cpu_info *ci, int (*h)(void *), void *a, const char *w)
sys/arch/sparc64/sparc64/machdep.c
1904
return (bus_intr_establish(t, p, l, f, h, a, w));
sys/arch/sparc64/sparc64/machdep.c
1908
h, a, w);
sys/crypto/aes.c
779
uint32_t w;
sys/crypto/aes.c
781
w = tkey[u];
sys/crypto/aes.c
782
skey[u] = (w << 24)
sys/crypto/aes.c
783
| ((w & 0x0000FF00) << 8)
sys/crypto/aes.c
784
| ((w & 0x00FF0000) >> 8)
sys/crypto/aes.c
785
| (w >> 24);
sys/crypto/chacha_private.h
42
#define XOR(v,w) ((v) ^ (w))
sys/crypto/chacha_private.h
43
#define PLUS(v,w) (U32V((v) + (w)))
sys/crypto/idgen.c
67
idgen32_g(u_int8_t *key, int k, u_int16_t w)
sys/crypto/idgen.c
72
g1 = (w >> 8) & 0xff;
sys/crypto/idgen.c
73
g2 = w & 0xff;
sys/crypto/md5.c
136
#define MD5STEP(f, w, x, y, z, data, s) \
sys/crypto/md5.c
137
( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x )
sys/crypto/sha1.c
41
#define R0(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk0(i)+0x5A827999+rol(v,5);w=rol(w,30);
sys/crypto/sha1.c
42
#define R1(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk(i)+0x5A827999+rol(v,5);w=rol(w,30);
sys/crypto/sha1.c
43
#define R2(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0x6ED9EBA1+rol(v,5);w=rol(w,30);
sys/crypto/sha1.c
44
#define R3(v,w,x,y,z,i) z+=(((w|x)&y)|(w&x))+blk(i)+0x8F1BBCDC+rol(v,5);w=rol(w,30);
sys/crypto/sha1.c
45
#define R4(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0xCA62C1D6+rol(v,5);w=rol(w,30);
sys/crypto/sha2.c
104
#define ADDINC128(w,n) { \
sys/crypto/sha2.c
105
(w)[0] += (u_int64_t)(n); \
sys/crypto/sha2.c
106
if ((w)[0] < (n)) { \
sys/crypto/sha2.c
107
(w)[1]++; \
sys/dev/acpi/acpicpu_x86.c
102
#define valid_throttle(o,w,a) (a && w && (o+w)<=31 && (o>4 || (o+w)<=4))
sys/dev/fdt/if_mvppreg.h
189
#define MVPP2_WIN_BASE(w) (0x4000 + ((w) << 2))
sys/dev/fdt/if_mvppreg.h
190
#define MVPP2_WIN_SIZE(w) (0x4020 + ((w) << 2))
sys/dev/fdt/if_mvppreg.h
191
#define MVPP2_WIN_REMAP(w) (0x4040 + ((w) << 2))
sys/dev/ic/mfireg.h
179
uint32_t w[3];
sys/dev/ic/mfireg.h
636
uint32_t w[24];
sys/dev/ic/rtsx.c
551
rtsx_set_bus_width(struct rtsx_softc *sc, int w)
sys/dev/ic/rtsx.c
556
switch (w) {
sys/dev/ic/sti.c
1055
sti_bmove(struct sti_screen *scr, int x1, int y1, int x2, int y2, int h, int w,
sys/dev/ic/sti.c
1089
a.in.width = w;
sys/dev/ic/tireg.h
912
#define TI_DO_CMD_EXT(x, y, z, v, w) \
sys/dev/ic/tireg.h
915
ti_cmd_ext(sc, &cmd, v, w); \
sys/dev/isa/isapnp.c
140
u_char v = ISAPNP_LFSR_INIT, csum, w;
sys/dev/isa/isapnp.c
160
for (w = 0, b = 0; b < 8; b++) {
sys/dev/isa/isapnp.c
163
w >>= 1;
sys/dev/isa/isapnp.c
164
w |= neg;
sys/dev/isa/isapnp.c
167
sc->sc_id[sc->sc_ncards][i] = w;
sys/dev/isa/sb.c
190
int w, r;
sys/dev/isa/sb.c
197
w = drq_conf[sc->sc_drq16] | drq_conf[sc->sc_drq8];
sys/dev/isa/sb.c
198
sbdsp_mix_write(sc, SBP_SET_DRQ, w);
sys/dev/isa/sb.c
200
if (r != w) {
sys/dev/isa/sb.c
201
DPRINTF(("%s: setting drq mask %02x failed, got %02x\n", sc->sc_dev.dv_xname, w, r));
sys/dev/isa/sb.c
215
w = irq_conf[sc->sc_irq];
sys/dev/isa/sb.c
216
sbdsp_mix_write(sc, SBP_SET_IRQ, w);
sys/dev/isa/sb.c
218
if (r != w) {
sys/dev/isa/sb.c
220
sc->sc_dev.dv_xname, w, r));
sys/dev/pci/azalia.c
1456
widget_t *w;
sys/dev/pci/azalia.c
1472
w = &this->w[i];
sys/dev/pci/azalia.c
1473
if (w->widgetcap & COP_AWCAP_POWER) {
sys/dev/pci/azalia.c
1474
azalia_comresp(this, w->nid, CORB_SET_POWER_STATE,
sys/dev/pci/azalia.c
1478
if (w->type == COP_AWTYPE_PIN_COMPLEX)
sys/dev/pci/azalia.c
1479
azalia_widget_init_pin(w, this);
sys/dev/pci/azalia.c
1481
azalia_codec_widget_quirks(this, w->nid);
sys/dev/pci/azalia.c
1531
widget_t *w;
sys/dev/pci/azalia.c
1605
this->w = mallocarray(this->wend, sizeof(widget_t), M_DEVBUF,
sys/dev/pci/azalia.c
1607
if (this->w == NULL) {
sys/dev/pci/azalia.c
1618
this->w[this->audiofunc].d.audio.encodings = result;
sys/dev/pci/azalia.c
1621
this->w[this->audiofunc].d.audio.bits_rates = result;
sys/dev/pci/azalia.c
1624
this->w[this->audiofunc].inamp_cap = result;
sys/dev/pci/azalia.c
1627
this->w[this->audiofunc].outamp_cap = result;
sys/dev/pci/azalia.c
1631
strlcpy(this->w[CORB_NID_ROOT].name, "root",
sys/dev/pci/azalia.c
1632
sizeof(this->w[CORB_NID_ROOT].name));
sys/dev/pci/azalia.c
1633
strlcpy(this->w[this->audiofunc].name, "hdaudio",
sys/dev/pci/azalia.c
1634
sizeof(this->w[this->audiofunc].name));
sys/dev/pci/azalia.c
1635
this->w[this->audiofunc].enable = 1;
sys/dev/pci/azalia.c
1638
w = &this->w[i];
sys/dev/pci/azalia.c
1639
err = azalia_widget_init(w, this, i);
sys/dev/pci/azalia.c
1642
err = azalia_widget_init_connection(w, this);
sys/dev/pci/azalia.c
1646
azalia_widget_print_widget(w, this);
sys/dev/pci/azalia.c
1662
w = &this->w[i];
sys/dev/pci/azalia.c
1664
if (!w->enable)
sys/dev/pci/azalia.c
1667
switch (w->type) {
sys/dev/pci/azalia.c
1672
w->enable = 0;
sys/dev/pci/azalia.c
1676
if ((w->widgetcap & COP_AWCAP_DIGITAL) == 0) {
sys/dev/pci/azalia.c
1686
if ((w->widgetcap & COP_AWCAP_DIGITAL) == 0) {
sys/dev/pci/azalia.c
1696
switch (CORB_CD_PORT(w->d.pin.config)) {
sys/dev/pci/azalia.c
1698
switch (w->d.pin.device) {
sys/dev/pci/azalia.c
1702
} else if (w->d.pin.association <
sys/dev/pci/azalia.c
1703
this->w[this->speaker].d.pin.association ||
sys/dev/pci/azalia.c
1704
(w->d.pin.association ==
sys/dev/pci/azalia.c
1705
this->w[this->speaker].d.pin.association &&
sys/dev/pci/azalia.c
1706
w->d.pin.sequence <
sys/dev/pci/azalia.c
1707
this->w[this->speaker].d.pin.sequence)) {
sys/dev/pci/azalia.c
1725
if (w->d.pin.device == CORB_CD_LINEOUT)
sys/dev/pci/azalia.c
1727
else if (w->d.pin.device == CORB_CD_HEADPHONE &&
sys/dev/pci/azalia.c
1728
CORB_CD_LOC_GEO(w->d.pin.config) ==
sys/dev/pci/azalia.c
1735
!(w->d.pin.cap & COP_PINCAP_PRESENCE))
sys/dev/pci/azalia.c
1747
if ((w->d.pin.device == CORB_CD_DIGITALOUT) &&
sys/dev/pci/azalia.c
1748
(w->d.pin.cap & COP_PINCAP_HDMI))
sys/dev/pci/azalia.c
1750
else if (w->d.pin.device == CORB_CD_SPDIFOUT ||
sys/dev/pci/azalia.c
1751
w->d.pin.device == CORB_CD_SPDIFIN)
sys/dev/pci/azalia.c
1826
widget_t *w;
sys/dev/pci/azalia.c
1832
w = &this->w[i];
sys/dev/pci/azalia.c
1833
if (w->type != COP_AWTYPE_AUDIO_MIXER)
sys/dev/pci/azalia.c
1839
w->nid, 0) != -1)
sys/dev/pci/azalia.c
1847
if (azalia_codec_fnode(this, w->nid,
sys/dev/pci/azalia.c
1856
if (azalia_codec_fnode(this, w->nid,
sys/dev/pci/azalia.c
1872
widget_t *w;
sys/dev/pci/azalia.c
1884
w = &this->w[conv];
sys/dev/pci/azalia.c
1886
for (i = 0; i < w->nconnections; i++) {
sys/dev/pci/azalia.c
1887
if (!azalia_widget_enabled(this, w->connections[i]))
sys/dev/pci/azalia.c
1890
w->connections[i], j + 1) >= 0) {
sys/dev/pci/azalia.c
1894
if (i >= w->nconnections)
sys/dev/pci/azalia.c
1896
err = azalia_comresp(this, w->nid,
sys/dev/pci/azalia.c
1900
w->selected = i;
sys/dev/pci/azalia.c
1901
if (w->connections[i] == this->mic) {
sys/dev/pci/azalia.c
1905
w = &this->w[w->connections[i]];
sys/dev/pci/azalia.c
1914
const widget_t *w;
sys/dev/pci/azalia.c
1924
w = &this->w[i];
sys/dev/pci/azalia.c
1925
if (!w->enable || w->type != COP_AWTYPE_PIN_COMPLEX)
sys/dev/pci/azalia.c
1930
loc = CORB_CD_LOC_GEO(w->d.pin.config);
sys/dev/pci/azalia.c
1932
prio = w->d.pin.association << 4 | w->d.pin.sequence;
sys/dev/pci/azalia.c
1936
if ((w->d.pin.cap & COP_PINCAP_OUTPUT) &&
sys/dev/pci/azalia.c
1937
!(w->widgetcap & COP_AWCAP_DIGITAL)) {
sys/dev/pci/azalia.c
1939
conv = azalia_codec_find_defdac(this, w->nid, 0);
sys/dev/pci/azalia.c
1940
switch(w->d.pin.device) {
sys/dev/pci/azalia.c
1943
if (w->nid == this->speaker ||
sys/dev/pci/azalia.c
1944
w->nid == this->speaker2)
sys/dev/pci/azalia.c
1953
if (w->nid == this->mic)
sys/dev/pci/azalia.c
1961
opins[nopins].nid = w->nid;
sys/dev/pci/azalia.c
1969
if ((w->d.pin.cap & COP_PINCAP_OUTPUT) &&
sys/dev/pci/azalia.c
1970
(w->widgetcap & COP_AWCAP_DIGITAL)) {
sys/dev/pci/azalia.c
1971
conv = azalia_codec_find_defdac(this, w->nid, 0);
sys/dev/pci/azalia.c
1972
switch(w->d.pin.device) {
sys/dev/pci/azalia.c
1976
opins_d[nopins_d].nid = w->nid;
sys/dev/pci/azalia.c
1985
if ((w->d.pin.cap & COP_PINCAP_INPUT) &&
sys/dev/pci/azalia.c
1986
!(w->widgetcap & COP_AWCAP_DIGITAL)) {
sys/dev/pci/azalia.c
1988
conv = azalia_codec_find_defadc(this, w->nid, 0);
sys/dev/pci/azalia.c
1989
switch(w->d.pin.device) {
sys/dev/pci/azalia.c
1997
if (w->nid == this->speaker ||
sys/dev/pci/azalia.c
1998
w->nid == this->speaker2)
sys/dev/pci/azalia.c
2007
ipins[nipins].nid = w->nid;
sys/dev/pci/azalia.c
2014
if ((w->d.pin.cap & COP_PINCAP_INPUT) &&
sys/dev/pci/azalia.c
2015
(w->widgetcap & COP_AWCAP_DIGITAL)) {
sys/dev/pci/azalia.c
2016
conv = azalia_codec_find_defadc(this, w->nid, 0);
sys/dev/pci/azalia.c
2017
switch(w->d.pin.device) {
sys/dev/pci/azalia.c
2022
ipins_d[nipins_d].nid = w->nid;
sys/dev/pci/azalia.c
2134
widget_t *w;
sys/dev/pci/azalia.c
2147
w = &this->w[this->opins[i].nid];
sys/dev/pci/azalia.c
2156
if (w->nid == this->fhp)
sys/dev/pci/azalia.c
2164
for (j = 0; j < w->nconnections; j++) {
sys/dev/pci/azalia.c
2166
w->connections[j]))
sys/dev/pci/azalia.c
2169
w->connections[j], 1);
sys/dev/pci/azalia.c
2179
if (j < w->nconnections && conv != -1) {
sys/dev/pci/azalia.c
2180
err = azalia_comresp(this, w->nid,
sys/dev/pci/azalia.c
2184
w->selected = j;
sys/dev/pci/azalia.c
2186
if (w->nid == this->fhp)
sys/dev/pci/azalia.c
2206
widget_t *w;
sys/dev/pci/azalia.c
2229
w = &this->w[this->speaker];
sys/dev/pci/azalia.c
2230
for (i = 0; i < w->nconnections; i++) {
sys/dev/pci/azalia.c
2232
w->connections[i], 1);
sys/dev/pci/azalia.c
2239
if (i < w->nconnections) {
sys/dev/pci/azalia.c
2249
if (w->nconnections == 1)
sys/dev/pci/azalia.c
2250
w = &this->w[this->opins[0].nid];
sys/dev/pci/azalia.c
2251
for (j = 0; j < w->nconnections; j++) {
sys/dev/pci/azalia.c
2253
w->connections[j], 1);
sys/dev/pci/azalia.c
2262
err = azalia_comresp(this, w->nid,
sys/dev/pci/azalia.c
2266
w->selected = conn;
sys/dev/pci/azalia.c
2267
if (w->nid == this->speaker)
sys/dev/pci/azalia.c
2277
w = &this->w[this->speaker2];
sys/dev/pci/azalia.c
2278
for (i = 0; i < w->nconnections; i++) {
sys/dev/pci/azalia.c
2280
w->connections[i], 1);
sys/dev/pci/azalia.c
2292
err = azalia_comresp(this, w->nid,
sys/dev/pci/azalia.c
2296
w->selected = conn;
sys/dev/pci/azalia.c
2306
const widget_t *w;
sys/dev/pci/azalia.c
2309
w = &this->w[index];
sys/dev/pci/azalia.c
2310
if (w->enable == 0)
sys/dev/pci/azalia.c
2313
if (w->type == COP_AWTYPE_AUDIO_OUTPUT)
sys/dev/pci/azalia.c
2317
(w->type == COP_AWTYPE_PIN_COMPLEX ||
sys/dev/pci/azalia.c
2318
w->type == COP_AWTYPE_BEEP_GENERATOR ||
sys/dev/pci/azalia.c
2319
w->type == COP_AWTYPE_AUDIO_INPUT))
sys/dev/pci/azalia.c
2324
if (w->nconnections > 0) {
sys/dev/pci/azalia.c
2326
if (w->type == COP_AWTYPE_AUDIO_MIXER) {
sys/dev/pci/azalia.c
2327
for (i = 0; i < w->nconnections; i++) {
sys/dev/pci/azalia.c
2328
index = w->connections[i];
sys/dev/pci/azalia.c
2344
} else if (w->selected >= 0 &&
sys/dev/pci/azalia.c
2345
w->selected < sizeof(w->connections)) {
sys/dev/pci/azalia.c
2346
index = w->connections[w->selected];
sys/dev/pci/azalia.c
2362
const widget_t *w;
sys/dev/pci/azalia.c
2365
w = &this->w[index];
sys/dev/pci/azalia.c
2366
if (w->nid == node) {
sys/dev/pci/azalia.c
2371
(w->type == COP_AWTYPE_PIN_COMPLEX ||
sys/dev/pci/azalia.c
2372
w->type == COP_AWTYPE_BEEP_GENERATOR ||
sys/dev/pci/azalia.c
2373
w->type == COP_AWTYPE_AUDIO_OUTPUT ||
sys/dev/pci/azalia.c
2374
w->type == COP_AWTYPE_AUDIO_INPUT))
sys/dev/pci/azalia.c
2379
if (w->nconnections > 0) {
sys/dev/pci/azalia.c
2381
if (w->type == COP_AWTYPE_AUDIO_MIXER) {
sys/dev/pci/azalia.c
2382
for (i = 0; i < w->nconnections; i++) {
sys/dev/pci/azalia.c
2383
if (!azalia_widget_enabled(this, w->connections[i]))
sys/dev/pci/azalia.c
2386
w->connections[i], depth);
sys/dev/pci/azalia.c
2398
} else if (w->selected >= 0 &&
sys/dev/pci/azalia.c
2399
w->selected < sizeof(w->connections)) {
sys/dev/pci/azalia.c
2400
index = w->connections[w->selected];
sys/dev/pci/azalia.c
2432
const widget_t *w;
sys/dev/pci/azalia.c
2439
w = &this->w[i];
sys/dev/pci/azalia.c
2440
if (w->enable == 0)
sys/dev/pci/azalia.c
2442
if (w->mixer_class == AZ_CLASS_RECORD)
sys/dev/pci/azalia.c
2444
if (!(w->widgetcap & COP_AWCAP_OUTAMP))
sys/dev/pci/azalia.c
2446
if ((COP_AMPCAP_NUMSTEPS(w->outamp_cap) == 0) &&
sys/dev/pci/azalia.c
2447
!(w->outamp_cap & COP_AMPCAP_MUTE))
sys/dev/pci/azalia.c
2450
this->playvols.slaves[j++] = w->nid;
sys/dev/pci/azalia.c
2458
w = &this->w[this->playvols.slaves[i]];
sys/dev/pci/azalia.c
2459
if (w->nid == this->input_mixer ||
sys/dev/pci/azalia.c
2460
w->parent == this->input_mixer ||
sys/dev/pci/azalia.c
2461
WIDGET_CHANNELS(w) < 2)
sys/dev/pci/azalia.c
2468
if (w->type == COP_AWTYPE_AUDIO_MIXER ||
sys/dev/pci/azalia.c
2469
w->type == COP_AWTYPE_AUDIO_SELECTOR)
sys/dev/pci/azalia.c
2471
dac = azalia_codec_find_defdac(this, w->nid, j);
sys/dev/pci/azalia.c
2477
cap = w->outamp_cap;
sys/dev/pci/azalia.c
2479
if (w->type == COP_AWTYPE_BEEP_GENERATOR) {
sys/dev/pci/azalia.c
2481
} else if (w->type == COP_AWTYPE_PIN_COMPLEX) {
sys/dev/pci/azalia.c
2482
err = azalia_comresp(this, w->nid,
sys/dev/pci/azalia.c
2492
w = &this->w[this->playvols.slaves[i]];
sys/dev/pci/azalia.c
2494
if (w->type == COP_AWTYPE_AUDIO_MIXER ||
sys/dev/pci/azalia.c
2495
w->type == COP_AWTYPE_AUDIO_SELECTOR)
sys/dev/pci/azalia.c
2497
dac = azalia_codec_find_defdac(this, w->nid, j);
sys/dev/pci/azalia.c
2503
if (w->type == COP_AWTYPE_BEEP_GENERATOR)
sys/dev/pci/azalia.c
2505
if (w->type == COP_AWTYPE_PIN_COMPLEX) {
sys/dev/pci/azalia.c
2506
err = azalia_comresp(this, w->nid,
sys/dev/pci/azalia.c
2519
w = &this->w[i];
sys/dev/pci/azalia.c
2520
if (w->type != COP_AWTYPE_VOLUME_KNOB)
sys/dev/pci/azalia.c
2522
if (!COP_VKCAP_NUMSTEPS(w->d.volume.cap))
sys/dev/pci/azalia.c
2524
this->playvols.master = w->nid;
sys/dev/pci/azalia.c
2532
w = &this->w[i];
sys/dev/pci/azalia.c
2533
if (w->enable == 0)
sys/dev/pci/azalia.c
2535
if (w->type == COP_AWTYPE_AUDIO_INPUT ||
sys/dev/pci/azalia.c
2536
w->type == COP_AWTYPE_PIN_COMPLEX) {
sys/dev/pci/azalia.c
2537
if (!(w->widgetcap & COP_AWCAP_INAMP))
sys/dev/pci/azalia.c
2539
if ((COP_AMPCAP_NUMSTEPS(w->inamp_cap) == 0) &&
sys/dev/pci/azalia.c
2540
!(w->inamp_cap & COP_AMPCAP_MUTE))
sys/dev/pci/azalia.c
2542
} else if (w->type == COP_AWTYPE_AUDIO_MIXER ||
sys/dev/pci/azalia.c
2543
w->type == COP_AWTYPE_AUDIO_SELECTOR) {
sys/dev/pci/azalia.c
2544
if (w->mixer_class != AZ_CLASS_RECORD)
sys/dev/pci/azalia.c
2546
if (!(w->widgetcap & COP_AWCAP_OUTAMP))
sys/dev/pci/azalia.c
2548
if ((COP_AMPCAP_NUMSTEPS(w->outamp_cap) == 0) &&
sys/dev/pci/azalia.c
2549
!(w->outamp_cap & COP_AMPCAP_MUTE))
sys/dev/pci/azalia.c
2555
this->recvols.slaves[j++] = w->nid;
sys/dev/pci/azalia.c
2563
w = &this->w[this->recvols.slaves[i]];
sys/dev/pci/azalia.c
2564
cap = w->outamp_cap;
sys/dev/pci/azalia.c
2565
if (w->type == COP_AWTYPE_AUDIO_INPUT ||
sys/dev/pci/azalia.c
2566
w->type != COP_AWTYPE_PIN_COMPLEX)
sys/dev/pci/azalia.c
2567
cap = w->inamp_cap;
sys/dev/pci/azalia.c
2569
if (w->mixer_class != AZ_CLASS_RECORD)
sys/dev/pci/azalia.c
2572
if (w->type == COP_AWTYPE_PIN_COMPLEX) {
sys/dev/pci/azalia.c
2573
err = azalia_comresp(this, w->nid,
sys/dev/pci/azalia.c
2583
w = &this->w[this->recvols.slaves[i]];
sys/dev/pci/azalia.c
2584
cap = w->outamp_cap;
sys/dev/pci/azalia.c
2585
if (w->type == COP_AWTYPE_AUDIO_INPUT ||
sys/dev/pci/azalia.c
2586
w->type != COP_AWTYPE_PIN_COMPLEX)
sys/dev/pci/azalia.c
2587
cap = w->inamp_cap;
sys/dev/pci/azalia.c
2589
if (w->mixer_class != AZ_CLASS_RECORD)
sys/dev/pci/azalia.c
2591
if (w->type == COP_AWTYPE_PIN_COMPLEX) {
sys/dev/pci/azalia.c
2592
err = azalia_comresp(this, w->nid,
sys/dev/pci/azalia.c
2647
if (this->w != NULL) {
sys/dev/pci/azalia.c
2648
free(this->w, M_DEVBUF,
sys/dev/pci/azalia.c
2650
this->w = NULL;
sys/dev/pci/azalia.c
2671
bits_rates = this->w[group->conv[0]].d.audio.bits_rates;
sys/dev/pci/azalia.c
2682
!(this->w[group->conv[0]].widgetcap & COP_AWCAP_DIGITAL))
sys/dev/pci/azalia.c
2696
bits_rates = this->w[group->conv[0]].d.audio.bits_rates;
sys/dev/pci/azalia.c
2707
!(this->w[group->conv[0]].widgetcap & COP_AWCAP_DIGITAL))
sys/dev/pci/azalia.c
2739
if (this->w[group->conv[0]].widgetcap &
sys/dev/pci/azalia.c
2744
chan += WIDGET_CHANNELS(&this->w[nid]);
sys/dev/pci/azalia.c
2745
bits_rates &= this->w[nid].d.audio.bits_rates;
sys/dev/pci/azalia.c
2758
if (this->w[group->conv[0]].widgetcap &
sys/dev/pci/azalia.c
2763
chan += WIDGET_CHANNELS(&this->w[nid]);
sys/dev/pci/azalia.c
2764
bits_rates &= this->w[nid].d.audio.bits_rates;
sys/dev/pci/azalia.c
2834
widget_t *w;
sys/dev/pci/azalia.c
2848
w = &codec->w[group->conv[i]];
sys/dev/pci/azalia.c
2849
widchan = WIDGET_CHANNELS(w);
sys/dev/pci/azalia.c
2854
} else if (w->nid == codec->spkr_dac ||
sys/dev/pci/azalia.c
2855
w->nid == codec->fhp_dac) {
sys/dev/pci/azalia.c
2861
DPRINTFN(0, ("%s: %2.2x is idle\n", __func__, w->nid));
sys/dev/pci/azalia.c
2864
w->nid, stream_chan & ~(this->number << 4)));
sys/dev/pci/azalia.c
2867
err = azalia_comresp(codec, w->nid, CORB_SET_CONVERTER_FORMAT,
sys/dev/pci/azalia.c
2871
__func__, w->nid, this->fmt, err));
sys/dev/pci/azalia.c
2874
err = azalia_comresp(codec, w->nid,
sys/dev/pci/azalia.c
2878
__func__, w->nid, stream_chan, err));
sys/dev/pci/azalia.c
2882
if (w->widgetcap & COP_AWCAP_DIGITAL) {
sys/dev/pci/azalia.c
2883
err = azalia_comresp(codec, w->nid,
sys/dev/pci/azalia.c
2887
__func__, w->nid, err));
sys/dev/pci/azalia.c
2891
err = azalia_comresp(codec, w->nid,
sys/dev/pci/azalia.c
2895
__func__, w->nid, err));
sys/dev/pci/azalia.c
2922
if (codec->w[nid].widgetcap & COP_AWCAP_DIGITAL) {
sys/dev/pci/azalia.c
2994
this->inamp_cap = codec->w[codec->audiofunc].inamp_cap;
sys/dev/pci/azalia.c
3002
this->outamp_cap = codec->w[codec->audiofunc].outamp_cap;
sys/dev/pci/azalia.c
3017
if (this->w[target].nconnections == 1 &&
sys/dev/pci/azalia.c
3018
this->w[target].connections[0] == nid) {
sys/dev/pci/azalia.c
3027
if (this->w[target].nconnections == 1 &&
sys/dev/pci/azalia.c
3028
this->w[target].connections[0] == nid) {
sys/dev/pci/azalia.c
3036
if (this->w[i].type != COP_AWTYPE_PIN_COMPLEX)
sys/dev/pci/azalia.c
3038
if (this->w[i].nconnections == 1 &&
sys/dev/pci/azalia.c
3039
this->w[i].connections[0] == nid) {
sys/dev/pci/azalia.c
3046
for (j = 0; j < this->w[i].nconnections; j++) {
sys/dev/pci/azalia.c
3047
if (!this->w[this->w[i].connections[j]].enable)
sys/dev/pci/azalia.c
3050
if (this->w[i].connections[j] == nid)
sys/dev/pci/azalia.c
3074
widget_t *w;
sys/dev/pci/azalia.c
3092
w = &codec->w[codec->opins[i].nid];
sys/dev/pci/azalia.c
3093
if (w->d.pin.device != CORB_CD_LINEOUT)
sys/dev/pci/azalia.c
3095
if (colors_used & (1 << w->d.pin.color))
sys/dev/pci/azalia.c
3098
colors_used |= (1 << w->d.pin.color);
sys/dev/pci/azalia.c
3102
w = &codec->w[i];
sys/dev/pci/azalia.c
3104
snprintf(w->name, sizeof(w->name), "u-wid%2.2x", w->nid);
sys/dev/pci/azalia.c
3105
if (w->enable == 0)
sys/dev/pci/azalia.c
3107
switch (w->type) {
sys/dev/pci/azalia.c
3109
pins[w->d.pin.device]++;
sys/dev/pci/azalia.c
3110
if (use_colors && w->d.pin.device == CORB_CD_LINEOUT) {
sys/dev/pci/azalia.c
3111
snprintf(w->name, sizeof(w->name), "%s-%s",
sys/dev/pci/azalia.c
3112
pin_devices[w->d.pin.device],
sys/dev/pci/azalia.c
3113
line_colors[w->d.pin.color]);
sys/dev/pci/azalia.c
3114
} else if (pins[w->d.pin.device] > 1) {
sys/dev/pci/azalia.c
3115
snprintf(w->name, sizeof(w->name), "%s%d",
sys/dev/pci/azalia.c
3116
pin_devices[w->d.pin.device],
sys/dev/pci/azalia.c
3117
pins[w->d.pin.device]);
sys/dev/pci/azalia.c
3119
snprintf(w->name, sizeof(w->name), "%s",
sys/dev/pci/azalia.c
3120
pin_devices[w->d.pin.device]);
sys/dev/pci/azalia.c
3129
if (w->nid == group->conv[j]) {
sys/dev/pci/azalia.c
3130
snprintf(w->name, sizeof(w->name),
sys/dev/pci/azalia.c
3131
"%s-%d:%d", wtypes[w->type], schan,
sys/dev/pci/azalia.c
3132
schan + WIDGET_CHANNELS(w) - 1);
sys/dev/pci/azalia.c
3134
schan += WIDGET_CHANNELS(w);
sys/dev/pci/azalia.c
3141
if (w->nid == group->conv[j]) {
sys/dev/pci/azalia.c
3142
snprintf(w->name, sizeof(w->name),
sys/dev/pci/azalia.c
3143
"dig-%s-%d:%d", wtypes[w->type],
sys/dev/pci/azalia.c
3145
schan + WIDGET_CHANNELS(w) - 1);
sys/dev/pci/azalia.c
3147
schan += WIDGET_CHANNELS(w);
sys/dev/pci/azalia.c
3151
w->mixer_class = AZ_CLASS_RECORD;
sys/dev/pci/azalia.c
3157
if (w->nid == group->conv[j]) {
sys/dev/pci/azalia.c
3158
snprintf(w->name, sizeof(w->name),
sys/dev/pci/azalia.c
3159
"%s-%d:%d", wtypes[w->type], schan,
sys/dev/pci/azalia.c
3160
schan + WIDGET_CHANNELS(w) - 1);
sys/dev/pci/azalia.c
3162
schan += WIDGET_CHANNELS(w);
sys/dev/pci/azalia.c
3169
if (w->nid == group->conv[j]) {
sys/dev/pci/azalia.c
3170
snprintf(w->name, sizeof(w->name),
sys/dev/pci/azalia.c
3171
"dig-%s-%d:%d", wtypes[w->type],
sys/dev/pci/azalia.c
3173
schan + WIDGET_CHANNELS(w) - 1);
sys/dev/pci/azalia.c
3175
schan += WIDGET_CHANNELS(w);
sys/dev/pci/azalia.c
3179
types[w->type]++;
sys/dev/pci/azalia.c
3180
if (types[w->type] > 1)
sys/dev/pci/azalia.c
3181
snprintf(w->name, sizeof(w->name), "%s%d",
sys/dev/pci/azalia.c
3182
wtypes[w->type], types[w->type]);
sys/dev/pci/azalia.c
3184
snprintf(w->name, sizeof(w->name), "%s",
sys/dev/pci/azalia.c
3185
wtypes[w->type]);
sys/dev/pci/azalia.c
3195
if (codec->w[i].type != COP_AWTYPE_AUDIO_MIXER &&
sys/dev/pci/azalia.c
3196
codec->w[i].type != COP_AWTYPE_AUDIO_SELECTOR)
sys/dev/pci/azalia.c
3198
if (codec->w[i].enable == 0)
sys/dev/pci/azalia.c
3208
if (codec->w[i].type == COP_AWTYPE_AUDIO_SELECTOR &&
sys/dev/pci/azalia.c
3209
(codec->w[i].widgetcap & COP_AWCAP_OUTAMP) &&
sys/dev/pci/azalia.c
3210
codec->w[i].nconnections == 1) {
sys/dev/pci/azalia.c
3211
j = codec->w[i].connections[0];
sys/dev/pci/azalia.c
3214
if (!(codec->w[j].widgetcap & COP_AWCAP_INAMP))
sys/dev/pci/azalia.c
3215
codec->w[i].mixer_class =
sys/dev/pci/azalia.c
3217
else if (!(codec->w[j].widgetcap & COP_AWCAP_OUTAMP))
sys/dev/pci/azalia.c
3218
codec->w[i].mixer_class =
sys/dev/pci/azalia.c
3228
if (codec->w[j].enable == 0) {
sys/dev/pci/azalia.c
3229
codec->w[i].enable = 0;
sys/dev/pci/azalia.c
3230
snprintf(codec->w[i].name,
sys/dev/pci/azalia.c
3231
sizeof(codec->w[i].name),
sys/dev/pci/azalia.c
3235
snprintf(codec->w[i].name, sizeof(codec->w[i].name),
sys/dev/pci/azalia.c
3236
"%s", codec->w[j].name);
sys/dev/pci/azalia.c
3237
if (codec->w[j].mixer_class == AZ_CLASS_RECORD)
sys/dev/pci/azalia.c
3238
codec->w[i].mixer_class = AZ_CLASS_RECORD;
sys/dev/pci/azalia.c
3239
codec->w[i].parent = j;
sys/dev/pci/azalia.c
3262
codec->w[codec->audiofunc].d.audio.encodings;
sys/dev/pci/azalia.c
3264
codec->w[codec->audiofunc].d.audio.bits_rates;
sys/dev/pci/azalia.c
3279
codec->w[codec->audiofunc].d.audio.encodings;
sys/dev/pci/azalia.c
3281
codec->w[codec->audiofunc].d.audio.bits_rates;
sys/dev/pci/azalia.c
3448
const widget_t *w;
sys/dev/pci/azalia.c
3451
w = &codec->w[index];
sys/dev/pci/azalia.c
3453
if (w->type == COP_AWTYPE_BEEP_GENERATOR)
sys/dev/pci/azalia.c
3457
(w->type == COP_AWTYPE_PIN_COMPLEX ||
sys/dev/pci/azalia.c
3458
w->type == COP_AWTYPE_AUDIO_OUTPUT ||
sys/dev/pci/azalia.c
3459
w->type == COP_AWTYPE_AUDIO_INPUT)) {
sys/dev/pci/azalia.c
3460
if (w->enable)
sys/dev/pci/azalia.c
3467
for (i = 0; i < w->nconnections; i++) {
sys/dev/pci/azalia.c
3468
if (!azalia_widget_enabled(codec, w->connections[i]))
sys/dev/pci/azalia.c
3470
if (azalia_widget_check_conn(codec, w->connections[i], depth))
sys/dev/pci/azalia.c
3517
azalia_widget_print_audio(&this->w[this->audiofunc], "\t");
sys/dev/pci/azalia.c
3519
result = this->w[this->audiofunc].inamp_cap;
sys/dev/pci/azalia.c
3523
result = this->w[this->audiofunc].outamp_cap;
sys/dev/pci/azalia.c
3566
azalia_widget_print_widget(const widget_t *w, const codec_t *codec)
sys/dev/pci/azalia.c
3571
printf("%s%2.2x wcap=%b\n", w->type == COP_AWTYPE_PIN_COMPLEX ?
sys/dev/pci/azalia.c
3572
pin_colors[w->d.pin.color] : wtypes[w->type],
sys/dev/pci/azalia.c
3573
w->nid, w->widgetcap, WIDGETCAP_BITS);
sys/dev/pci/azalia.c
3574
if (w->widgetcap & COP_AWCAP_FORMATOV)
sys/dev/pci/azalia.c
3575
azalia_widget_print_audio(w, "\t");
sys/dev/pci/azalia.c
3576
if (w->type == COP_AWTYPE_PIN_COMPLEX)
sys/dev/pci/azalia.c
3577
azalia_widget_print_pin(w);
sys/dev/pci/azalia.c
3579
if (w->type == COP_AWTYPE_VOLUME_KNOB)
sys/dev/pci/azalia.c
3581
!!(w->d.volume.cap & COP_VKCAP_DELTA),
sys/dev/pci/azalia.c
3582
COP_VKCAP_NUMSTEPS(w->d.volume.cap));
sys/dev/pci/azalia.c
3584
if ((w->widgetcap & COP_AWCAP_INAMP) &&
sys/dev/pci/azalia.c
3585
(w->widgetcap & COP_AWCAP_AMPOV))
sys/dev/pci/azalia.c
3587
(w->inamp_cap & COP_AMPCAP_MUTE) != 0,
sys/dev/pci/azalia.c
3588
COP_AMPCAP_STEPSIZE(w->inamp_cap),
sys/dev/pci/azalia.c
3589
COP_AMPCAP_NUMSTEPS(w->inamp_cap),
sys/dev/pci/azalia.c
3590
COP_AMPCAP_OFFSET(w->inamp_cap));
sys/dev/pci/azalia.c
3592
if ((w->widgetcap & COP_AWCAP_OUTAMP) &&
sys/dev/pci/azalia.c
3593
(w->widgetcap & COP_AWCAP_AMPOV))
sys/dev/pci/azalia.c
3595
(w->outamp_cap & COP_AMPCAP_MUTE) != 0,
sys/dev/pci/azalia.c
3596
COP_AMPCAP_STEPSIZE(w->outamp_cap),
sys/dev/pci/azalia.c
3597
COP_AMPCAP_NUMSTEPS(w->outamp_cap),
sys/dev/pci/azalia.c
3598
COP_AMPCAP_OFFSET(w->outamp_cap));
sys/dev/pci/azalia.c
3600
if (w->nconnections > 0) {
sys/dev/pci/azalia.c
3601
printf("\tconnections=0x%x", w->connections[0]);
sys/dev/pci/azalia.c
3602
for (i = 1; i < w->nconnections; i++)
sys/dev/pci/azalia.c
3603
printf(",0x%x", w->connections[i]);
sys/dev/pci/azalia.c
3604
printf("; selected=0x%x\n", w->connections[w->selected]);
sys/dev/pci/azalia.c
3655
azalia_widget_print_widget(const widget_t *w, const codec_t *codec) {}
sys/dev/pci/azalia.h
586
#define WIDGET_CHANNELS(w) ((w)->widgetcap & COP_AWCAP_STEREO ? 2 : 1)
sys/dev/pci/azalia.h
660
widget_t *w; /* widgets in the audio function.
sys/dev/pci/azalia_codec.c
1007
"%s_source", w->name);
sys/dev/pci/azalia_codec.c
1010
if (w->mixer_class >= 0)
sys/dev/pci/azalia_codec.c
1011
d->mixer_class = w->mixer_class;
sys/dev/pci/azalia_codec.c
1015
j < w->nconnections && k < 32; j++) {
sys/dev/pci/azalia_codec.c
1017
w->connections[j]))
sys/dev/pci/azalia_codec.c
1019
if (w->connections[j] == this->speaker ||
sys/dev/pci/azalia_codec.c
1020
w->connections[j] == this->speaker2)
sys/dev/pci/azalia_codec.c
1024
this->w[w->connections[j]].name,
sys/dev/pci/azalia_codec.c
1035
if (w->widgetcap & COP_AWCAP_INAMP &&
sys/dev/pci/azalia_codec.c
1036
COP_AMPCAP_NUMSTEPS(w->inamp_cap) &&
sys/dev/pci/azalia_codec.c
1037
w->nid != this->speaker &&
sys/dev/pci/azalia_codec.c
1038
w->nid != this->speaker2) {
sys/dev/pci/azalia_codec.c
1039
if (w->type != COP_AWTYPE_AUDIO_SELECTOR &&
sys/dev/pci/azalia_codec.c
1040
w->type != COP_AWTYPE_AUDIO_MIXER) {
sys/dev/pci/azalia_codec.c
1043
"%s", w->name);
sys/dev/pci/azalia_codec.c
1045
if (w->mixer_class >= 0)
sys/dev/pci/azalia_codec.c
1046
d->mixer_class = w->mixer_class;
sys/dev/pci/azalia_codec.c
1050
d->un.v.num_channels = WIDGET_CHANNELS(w);
sys/dev/pci/azalia_codec.c
1053
MIXER_DELTA(COP_AMPCAP_NUMSTEPS(w->inamp_cap));
sys/dev/pci/azalia_codec.c
1056
for (j = 0; j < w->nconnections; j++) {
sys/dev/pci/azalia_codec.c
1058
w->connections[j]))
sys/dev/pci/azalia_codec.c
1060
if (w->connections[j] == this->speaker ||
sys/dev/pci/azalia_codec.c
1061
w->connections[j] == this->speaker2)
sys/dev/pci/azalia_codec.c
1066
w->name,
sys/dev/pci/azalia_codec.c
1067
this->w[w->connections[j]].name);
sys/dev/pci/azalia_codec.c
1069
if (w->mixer_class >= 0)
sys/dev/pci/azalia_codec.c
1070
d->mixer_class = w->mixer_class;
sys/dev/pci/azalia_codec.c
1074
d->un.v.num_channels = WIDGET_CHANNELS(w);
sys/dev/pci/azalia_codec.c
1077
MIXER_DELTA(COP_AMPCAP_NUMSTEPS(w->inamp_cap));
sys/dev/pci/azalia_codec.c
1084
if (w->type == COP_AWTYPE_AUDIO_MIXER &&
sys/dev/pci/azalia_codec.c
1085
!(w->widgetcap & COP_AWCAP_INAMP)) {
sys/dev/pci/azalia_codec.c
1088
"%s_source", w->name);
sys/dev/pci/azalia_codec.c
1091
if (w->mixer_class >= 0)
sys/dev/pci/azalia_codec.c
1092
d->mixer_class = w->mixer_class;
sys/dev/pci/azalia_codec.c
1096
j < w->nconnections && k < 32; j++) {
sys/dev/pci/azalia_codec.c
1098
w->connections[j]))
sys/dev/pci/azalia_codec.c
1100
if (w->connections[j] == this->speaker ||
sys/dev/pci/azalia_codec.c
1101
w->connections[j] == this->speaker2)
sys/dev/pci/azalia_codec.c
1105
this->w[w->connections[j]].name,
sys/dev/pci/azalia_codec.c
1115
if (w->type == COP_AWTYPE_PIN_COMPLEX &&
sys/dev/pci/azalia_codec.c
1116
((w->d.pin.cap & COP_PINCAP_OUTPUT &&
sys/dev/pci/azalia_codec.c
1117
w->d.pin.cap & COP_PINCAP_INPUT) ||
sys/dev/pci/azalia_codec.c
1118
COP_PINCAP_VREF(w->d.pin.cap) > 1)) {
sys/dev/pci/azalia_codec.c
1122
"%s_dir", w->name);
sys/dev/pci/azalia_codec.c
1133
if (w->d.pin.cap & COP_PINCAP_OUTPUT) {
sys/dev/pci/azalia_codec.c
1140
if (w->d.pin.cap & COP_PINCAP_INPUT) {
sys/dev/pci/azalia_codec.c
1168
if ((COP_PINCAP_VREF(w->d.pin.cap) &
sys/dev/pci/azalia_codec.c
1180
if (w->type == COP_AWTYPE_PIN_COMPLEX &&
sys/dev/pci/azalia_codec.c
1181
w->d.pin.cap & COP_PINCAP_HEADPHONE &&
sys/dev/pci/azalia_codec.c
1182
w->nid != this->mic) {
sys/dev/pci/azalia_codec.c
1185
"%s_boost", w->name);
sys/dev/pci/azalia_codec.c
1192
if (w->type == COP_AWTYPE_PIN_COMPLEX &&
sys/dev/pci/azalia_codec.c
1193
w->d.pin.cap & COP_PINCAP_EAPD) {
sys/dev/pci/azalia_codec.c
1196
"%s_eapd", w->name);
sys/dev/pci/azalia_codec.c
1213
m->nid = this->w[this->sense_pins[i]].nid;
sys/dev/pci/azalia_codec.c
1215
this->w[this->sense_pins[i]].name);
sys/dev/pci/azalia_codec.c
1232
w = &this->w[this->speaker];
sys/dev/pci/azalia_codec.c
1233
if ((w->widgetcap & COP_AWCAP_OUTAMP) &&
sys/dev/pci/azalia_codec.c
1234
(w->outamp_cap & COP_AMPCAP_MUTE))
sys/dev/pci/azalia_codec.c
1236
else if ((w->d.pin.cap & COP_PINCAP_OUTPUT) &&
sys/dev/pci/azalia_codec.c
1237
(w->d.pin.cap & COP_PINCAP_INPUT))
sys/dev/pci/azalia_codec.c
1240
w = &this->w[this->spkr_dac];
sys/dev/pci/azalia_codec.c
1241
if (w->nid != this->dacs.groups[0].conv[0] &&
sys/dev/pci/azalia_codec.c
1242
(w->widgetcap & COP_AWCAP_OUTAMP) &&
sys/dev/pci/azalia_codec.c
1243
(w->outamp_cap & COP_AMPCAP_MUTE))
sys/dev/pci/azalia_codec.c
1248
w = &this->w[this->speaker];
sys/dev/pci/azalia_codec.c
1250
m->nid = w->nid;
sys/dev/pci/azalia_codec.c
1252
"%s_muters", w->name);
sys/dev/pci/azalia_codec.c
1258
ww = &this->w[this->sense_pins[i]];
sys/dev/pci/azalia_codec.c
1317
ww = &this->w[this->playvols.slaves[i]];
sys/dev/pci/azalia_codec.c
1370
ww = &this->w[this->recvols.slaves[i]];
sys/dev/pci/azalia_codec.c
1484
widget_t *w;
sys/dev/pci/azalia_codec.c
1516
if (WIDGET_CHANNELS(&this->w[m->nid]) == 2) {
sys/dev/pci/azalia_codec.c
1537
w = &this->w[m->nid];
sys/dev/pci/azalia_codec.c
1538
for (j = 0; j < w->nconnections; j++) {
sys/dev/pci/azalia_codec.c
1539
if (!azalia_widget_enabled(this, w->connections[j]))
sys/dev/pci/azalia_codec.c
1541
if (w->nid == this->input_mixer &&
sys/dev/pci/azalia_codec.c
1542
w->connections[j] == this->mic)
sys/dev/pci/azalia_codec.c
1573
w = &this->w[this->playvols.slaves[i]];
sys/dev/pci/azalia_codec.c
1574
if (!(COP_AMPCAP_NUMSTEPS(w->outamp_cap)))
sys/dev/pci/azalia_codec.c
1578
azalia_mixer_get(this, w->nid, tgt, &mc);
sys/dev/pci/azalia_codec.c
1589
w = &this->w[this->recvols.slaves[i]];
sys/dev/pci/azalia_codec.c
1592
cap = w->outamp_cap;
sys/dev/pci/azalia_codec.c
1593
if (w->type == COP_AWTYPE_PIN_COMPLEX ||
sys/dev/pci/azalia_codec.c
1594
w->type == COP_AWTYPE_AUDIO_INPUT) {
sys/dev/pci/azalia_codec.c
1596
cap = w->inamp_cap;
sys/dev/pci/azalia_codec.c
1600
azalia_mixer_get(this, w->nid, tgt, &mc);
sys/dev/pci/azalia_codec.c
1617
widget_t *w;
sys/dev/pci/azalia_codec.c
1635
w = &this->w[this->playvols.master];
sys/dev/pci/azalia_codec.c
1636
err = azalia_comresp(this, w->nid, CORB_GET_VOLUME_KNOB,
sys/dev/pci/azalia_codec.c
1645
this->playvols.hw_nsteps = COP_VKCAP_NUMSTEPS(w->d.volume.cap);
sys/dev/pci/azalia_codec.c
1649
err = azalia_comresp(this, w->nid, CORB_SET_VOLUME_KNOB,
sys/dev/pci/azalia_codec.c
1664
err = azalia_comresp(this, w->nid,
sys/dev/pci/azalia_codec.c
1719
if (this->w[nid].type == COP_AWTYPE_AUDIO_SELECTOR ||
sys/dev/pci/azalia_codec.c
1720
this->w[nid].type == COP_AWTYPE_AUDIO_MIXER) {
sys/dev/pci/azalia_codec.c
1721
n = this->w[nid].connections[MI_TARGET_INAMP(target)];
sys/dev/pci/azalia_codec.c
1729
mc->un.value.num_channels = WIDGET_CHANNELS(&this->w[n]);
sys/dev/pci/azalia_codec.c
1759
mc->un.value.num_channels = WIDGET_CHANNELS(&this->w[nid]);
sys/dev/pci/azalia_codec.c
1779
this->w[nid].connections[result]))
sys/dev/pci/azalia_codec.c
1798
cap = COP_PINCAP_VREF(this->w[nid].d.pin.cap);
sys/dev/pci/azalia_codec.c
1868
const widget_t *w;
sys/dev/pci/azalia_codec.c
1874
w = &this->w[nid];
sys/dev/pci/azalia_codec.c
1876
for (i = 0; i < w->nconnections; i++) {
sys/dev/pci/azalia_codec.c
1877
if (!azalia_widget_enabled(this, w->connections[i]))
sys/dev/pci/azalia_codec.c
1891
const widget_t *w;
sys/dev/pci/azalia_codec.c
1897
w = &this->w[nid];
sys/dev/pci/azalia_codec.c
1899
for (i = 0; i < w->nconnections; i++) {
sys/dev/pci/azalia_codec.c
1900
if (!azalia_widget_enabled(this, w->connections[i]))
sys/dev/pci/azalia_codec.c
1991
if (WIDGET_CHANNELS(&this->w[nid]) == 2) {
sys/dev/pci/azalia_codec.c
2030
WIDGET_CHANNELS(&this->w[nid]) == 2) {
sys/dev/pci/azalia_codec.c
2063
if (WIDGET_CHANNELS(&this->w[nid]) == 2) {
sys/dev/pci/azalia_codec.c
2098
WIDGET_CHANNELS(&this->w[nid]) == 2) {
sys/dev/pci/azalia_codec.c
2119
mc->un.ord >= this->w[nid].nconnections ||
sys/dev/pci/azalia_codec.c
2121
this->w[nid].connections[mc->un.ord]))
sys/dev/pci/azalia_codec.c
2267
const widget_t *w;
sys/dev/pci/azalia_codec.c
2273
w = &this->w[nid];
sys/dev/pci/azalia_codec.c
2274
for (i = 0; i < w->nconnections; i++) {
sys/dev/pci/azalia_codec.c
2275
if (!azalia_widget_enabled(this, w->connections[i]))
sys/dev/pci/azalia_codec.c
2297
if (WIDGET_CHANNELS(w) == 2) {
sys/dev/pci/azalia_codec.c
2335
const widget_t *w;
sys/dev/pci/azalia_codec.c
2346
w = &this->w[this->playvols.slaves[i]];
sys/dev/pci/azalia_codec.c
2347
if (!(COP_AMPCAP_NUMSTEPS(w->outamp_cap)))
sys/dev/pci/azalia_codec.c
2351
if (w->outamp_cap & COP_AMPCAP_MUTE) {
sys/dev/pci/azalia_codec.c
2353
azalia_mixer_get(this, w->nid,
sys/dev/pci/azalia_codec.c
2359
mc2.un.value.num_channels = WIDGET_CHANNELS(w);
sys/dev/pci/azalia_codec.c
2362
err = azalia_mixer_set(this, w->nid,
sys/dev/pci/azalia_codec.c
2366
__func__, w->nid));
sys/dev/pci/azalia_codec.c
2377
w = &this->w[this->playvols.slaves[i]];
sys/dev/pci/azalia_codec.c
2378
if (!(w->outamp_cap & COP_AMPCAP_MUTE))
sys/dev/pci/azalia_codec.c
2383
(w->nid == this->speaker ||
sys/dev/pci/azalia_codec.c
2384
w->nid == this->speaker2)) ||
sys/dev/pci/azalia_codec.c
2387
w->nid == this->spkr_dac))) {
sys/dev/pci/azalia_codec.c
2392
err = azalia_mixer_set(this, w->nid,
sys/dev/pci/azalia_codec.c
2396
__func__, w->nid));
sys/dev/pci/azalia_codec.c
2414
const widget_t *w;
sys/dev/pci/azalia_codec.c
2427
w = &this->w[this->recvols.slaves[i]];
sys/dev/pci/azalia_codec.c
2429
cap = w->outamp_cap;
sys/dev/pci/azalia_codec.c
2430
if (w->type == COP_AWTYPE_AUDIO_INPUT ||
sys/dev/pci/azalia_codec.c
2431
w->type == COP_AWTYPE_PIN_COMPLEX) {
sys/dev/pci/azalia_codec.c
2433
cap = w->inamp_cap;
sys/dev/pci/azalia_codec.c
2438
mc2.un.value.num_channels = WIDGET_CHANNELS(w);
sys/dev/pci/azalia_codec.c
2441
err = azalia_mixer_set(this, w->nid,
sys/dev/pci/azalia_codec.c
2445
__func__, w->nid));
sys/dev/pci/azalia_codec.c
2456
w = &this->w[this->recvols.slaves[i]];
sys/dev/pci/azalia_codec.c
2458
cap = w->outamp_cap;
sys/dev/pci/azalia_codec.c
2459
if (w->type == COP_AWTYPE_AUDIO_INPUT ||
sys/dev/pci/azalia_codec.c
2460
w->type == COP_AWTYPE_PIN_COMPLEX) {
sys/dev/pci/azalia_codec.c
2462
cap = w->inamp_cap;
sys/dev/pci/azalia_codec.c
2468
err = azalia_mixer_set(this, w->nid,
sys/dev/pci/azalia_codec.c
2472
__func__, w->nid));
sys/dev/pci/azalia_codec.c
2503
steps = COP_AMPCAP_NUMSTEPS(this->w[nid].inamp_cap);
sys/dev/pci/azalia_codec.c
2504
ctloff = COP_AMPCAP_CTLOFF(this->w[nid].inamp_cap);
sys/dev/pci/azalia_codec.c
2506
steps = COP_AMPCAP_NUMSTEPS(this->w[nid].outamp_cap);
sys/dev/pci/azalia_codec.c
2507
ctloff = COP_AMPCAP_CTLOFF(this->w[nid].outamp_cap);
sys/dev/pci/azalia_codec.c
2530
steps = COP_AMPCAP_NUMSTEPS(this->w[nid].inamp_cap);
sys/dev/pci/azalia_codec.c
2531
ctloff = COP_AMPCAP_CTLOFF(this->w[nid].inamp_cap);
sys/dev/pci/azalia_codec.c
2533
steps = COP_AMPCAP_NUMSTEPS(this->w[nid].outamp_cap);
sys/dev/pci/azalia_codec.c
2534
ctloff = COP_AMPCAP_CTLOFF(this->w[nid].outamp_cap);
sys/dev/pci/azalia_codec.c
2570
azalia_ampcap_ov(widget_t *w, int type, int offset, int steps, int size,
sys/dev/pci/azalia_codec.c
2580
w->outamp_cap = cap;
sys/dev/pci/azalia_codec.c
2582
w->inamp_cap = cap;
sys/dev/pci/azalia_codec.c
2587
azalia_pin_config_ov(widget_t *w, int mask, int val)
sys/dev/pci/azalia_codec.c
2604
w->d.pin.config &= ~(mask);
sys/dev/pci/azalia_codec.c
2605
w->d.pin.config |= val << offset;
sys/dev/pci/azalia_codec.c
2607
w->d.pin.device = val;
sys/dev/pci/azalia_codec.c
2636
widget_t *w;
sys/dev/pci/azalia_codec.c
2638
w = &this->w[nid];
sys/dev/pci/azalia_codec.c
2641
nid == 0x1d && w->enable == 0) {
sys/dev/pci/azalia_codec.c
2642
azalia_pin_config_ov(w, CORB_CD_DEVICE_MASK, CORB_CD_BEEP);
sys/dev/pci/azalia_codec.c
2643
azalia_pin_config_ov(w, CORB_CD_PORT_MASK, CORB_CD_FIXED);
sys/dev/pci/azalia_codec.c
2644
w->widgetcap |= COP_AWCAP_STEREO;
sys/dev/pci/azalia_codec.c
2645
w->enable = 1;
sys/dev/pci/azalia_codec.c
2651
w->d.pin.config = 0x23a11040;
sys/dev/pci/azalia_codec.c
2652
w->enable = 1;
sys/dev/pci/azalia_codec.c
2658
w->d.pin.config = 0x2121103f;
sys/dev/pci/azalia_codec.c
2659
w->enable = 1;
sys/dev/pci/azalia_codec.c
2665
w->d.pin.config = 0x21211010;
sys/dev/pci/azalia_codec.c
2666
w->enable = 1;
sys/dev/pci/azalia_codec.c
2672
w->d.pin.config = 0x21a11010;
sys/dev/pci/azalia_codec.c
2673
w->enable = 1;
sys/dev/pci/azalia_codec.c
2679
w->d.pin.config = 0x21a190f0;
sys/dev/pci/azalia_codec.c
2680
w->enable = 1;
sys/dev/pci/azalia_codec.c
2686
w->d.pin.config = 0x212140ff;
sys/dev/pci/azalia_codec.c
2687
w->enable = 1;
sys/dev/pci/azalia_codec.c
2691
nid == 0x1c && w->enable == 0 && w->d.pin.device == CORB_CD_CD) {
sys/dev/pci/azalia_codec.c
2692
azalia_pin_config_ov(w, CORB_CD_PORT_MASK, CORB_CD_FIXED);
sys/dev/pci/azalia_codec.c
2693
w->widgetcap |= COP_AWCAP_STEREO;
sys/dev/pci/azalia_codec.c
2694
w->enable = 1;
sys/dev/pci/azalia_codec.c
2700
azalia_ampcap_ov(w, COP_OUTPUT_AMPCAP, 31, 33, 6, 30, 1);
sys/dev/pci/azalia_codec.c
577
if (!VALID_WIDGET_NID(nid, this) || !this->w[nid].enable)
sys/dev/pci/azalia_codec.c
697
this->w[conv].enable = 0;
sys/dev/pci/azalia_codec.c
706
const widget_t *w;
sys/dev/pci/azalia_codec.c
709
w = &this->w[index];
sys/dev/pci/azalia_codec.c
710
if (w->nid == node) {
sys/dev/pci/azalia_codec.c
715
(w->type == COP_AWTYPE_PIN_COMPLEX ||
sys/dev/pci/azalia_codec.c
716
w->type == COP_AWTYPE_BEEP_GENERATOR ||
sys/dev/pci/azalia_codec.c
717
w->type == COP_AWTYPE_AUDIO_OUTPUT ||
sys/dev/pci/azalia_codec.c
718
w->type == COP_AWTYPE_AUDIO_INPUT))
sys/dev/pci/azalia_codec.c
722
for (i = 0; i < w->nconnections; i++) {
sys/dev/pci/azalia_codec.c
723
if (!azalia_widget_enabled(this, w->connections[i]))
sys/dev/pci/azalia_codec.c
725
ret = azalia_codec_fnode(this, node, w->connections[i], depth);
sys/dev/pci/azalia_codec.c
766
(this->w[this->speaker2].widgetcap & COP_AWCAP_OUTAMP) &&
sys/dev/pci/azalia_codec.c
767
(this->w[this->speaker2].outamp_cap & COP_AMPCAP_MUTE))
sys/dev/pci/azalia_codec.c
776
(this->w[this->speaker2].d.pin.cap & COP_PINCAP_OUTPUT) &&
sys/dev/pci/azalia_codec.c
777
(this->w[this->speaker2].d.pin.cap & COP_PINCAP_INPUT))
sys/dev/pci/azalia_codec.c
846
const widget_t *w, *ww;
sys/dev/pci/azalia_codec.c
903
w = &this->w[i];
sys/dev/pci/azalia_codec.c
904
if (!w->enable)
sys/dev/pci/azalia_codec.c
908
if (w->nconnections > 0 && w->type != COP_AWTYPE_AUDIO_MIXER &&
sys/dev/pci/azalia_codec.c
909
!(w->nconnections == 1 &&
sys/dev/pci/azalia_codec.c
910
azalia_widget_enabled(this, w->connections[0]) &&
sys/dev/pci/azalia_codec.c
911
strcmp(w->name, this->w[w->connections[0]].name) == 0) &&
sys/dev/pci/azalia_codec.c
912
w->nid != this->mic) {
sys/dev/pci/azalia_codec.c
915
"%s_source", w->name);
sys/dev/pci/azalia_codec.c
917
if (w->mixer_class >= 0)
sys/dev/pci/azalia_codec.c
918
d->mixer_class = w->mixer_class;
sys/dev/pci/azalia_codec.c
920
if (w->type == COP_AWTYPE_AUDIO_SELECTOR)
sys/dev/pci/azalia_codec.c
926
for (j = 0, k = 0; j < w->nconnections && k < 32; j++) {
sys/dev/pci/azalia_codec.c
928
w->connections[j]))
sys/dev/pci/azalia_codec.c
932
this->w[w->connections[j]].name,
sys/dev/pci/azalia_codec.c
941
if (w->widgetcap & COP_AWCAP_OUTAMP &&
sys/dev/pci/azalia_codec.c
942
w->outamp_cap & COP_AMPCAP_MUTE &&
sys/dev/pci/azalia_codec.c
943
w->nid != this->mic) {
sys/dev/pci/azalia_codec.c
946
"%s_mute", w->name);
sys/dev/pci/azalia_codec.c
947
if (w->mixer_class >= 0)
sys/dev/pci/azalia_codec.c
948
d->mixer_class = w->mixer_class;
sys/dev/pci/azalia_codec.c
950
if (w->type == COP_AWTYPE_AUDIO_MIXER ||
sys/dev/pci/azalia_codec.c
951
w->type == COP_AWTYPE_AUDIO_SELECTOR ||
sys/dev/pci/azalia_codec.c
952
w->type == COP_AWTYPE_PIN_COMPLEX)
sys/dev/pci/azalia_codec.c
963
if (w->widgetcap & COP_AWCAP_OUTAMP &&
sys/dev/pci/azalia_codec.c
964
COP_AMPCAP_NUMSTEPS(w->outamp_cap) &&
sys/dev/pci/azalia_codec.c
965
w->nid != this->mic) {
sys/dev/pci/azalia_codec.c
968
"%s", w->name);
sys/dev/pci/azalia_codec.c
970
if (w->mixer_class >= 0)
sys/dev/pci/azalia_codec.c
971
d->mixer_class = w->mixer_class;
sys/dev/pci/azalia_codec.c
973
if (w->type == COP_AWTYPE_AUDIO_MIXER ||
sys/dev/pci/azalia_codec.c
974
w->type == COP_AWTYPE_AUDIO_SELECTOR ||
sys/dev/pci/azalia_codec.c
975
w->type == COP_AWTYPE_PIN_COMPLEX)
sys/dev/pci/azalia_codec.c
981
d->un.v.num_channels = WIDGET_CHANNELS(w);
sys/dev/pci/azalia_codec.c
984
MIXER_DELTA(COP_AMPCAP_NUMSTEPS(w->outamp_cap));
sys/dev/pci/azalia_codec.c
989
if (w->widgetcap & COP_AWCAP_INAMP &&
sys/dev/pci/azalia_codec.c
990
w->inamp_cap & COP_AMPCAP_MUTE &&
sys/dev/pci/azalia_codec.c
991
w->nid != this->speaker &&
sys/dev/pci/azalia_codec.c
992
w->nid != this->speaker2) {
sys/dev/pci/azalia_codec.c
993
if (w->type != COP_AWTYPE_AUDIO_MIXER) {
sys/dev/pci/azalia_codec.c
996
"%s_mute", w->name);
sys/dev/pci/azalia_codec.c
997
if (w->mixer_class >= 0)
sys/dev/pci/azalia_codec.c
998
d->mixer_class = w->mixer_class;
sys/dev/pci/cmpci.c
1109
int w;
sys/dev/pci/cmpci.c
1117
w = (flags & M_NOWAIT) ? BUS_DMA_NOWAIT : BUS_DMA_WAITOK;
sys/dev/pci/cmpci.c
1124
nitems(n->cd_segs), &n->cd_nsegs, w);
sys/dev/pci/cmpci.c
1128
&n->cd_addr, w | BUS_DMA_COHERENT);
sys/dev/pci/cmpci.c
1132
w, &n->cd_map);
sys/dev/pci/cmpci.c
1136
NULL, w);
sys/dev/pci/drm/amd/amdgpu/amdgpu_connectors.c
404
int w;
sys/dev/pci/drm/amd/amdgpu/amdgpu_connectors.c
424
if (common_modes[i].w > 1024 ||
sys/dev/pci/drm/amd/amdgpu/amdgpu_connectors.c
429
if (common_modes[i].w > native_mode->hdisplay ||
sys/dev/pci/drm/amd/amdgpu/amdgpu_connectors.c
431
(common_modes[i].w == native_mode->hdisplay &&
sys/dev/pci/drm/amd/amdgpu/amdgpu_connectors.c
436
mode = drm_cvt_mode(dev, common_modes[i].w, common_modes[i].h, 60, false, false, false);
sys/dev/pci/drm/amd/amdgpu/amdgpu_eviction_fence.c
28
#define work_to_evf_mgr(w, name) container_of(w, struct amdgpu_eviction_fence_mgr, name)
sys/dev/pci/drm/amd/amdgpu/amdgpu_userq.h
33
#define work_to_uq_mgr(w, name) container_of(w, struct amdgpu_userq_mgr, name)
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
2294
int w = amdgpu_crtc->cursor_width;
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
2316
((w - 1) << 16) | (amdgpu_crtc->cursor_height - 1));
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8477
int w;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8503
if (common_modes[i].w > native_mode->hdisplay ||
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8505
(common_modes[i].w == native_mode->hdisplay &&
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8510
if (common_modes[i].w == curmode->hdisplay &&
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8521
common_modes[i].name, common_modes[i].w,
sys/dev/pci/drm/amd/display/dc/dc_dmub_srv.c
1043
payload->cursor_rect.width = hubp->cur_rect.w;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c
319
unsigned int pixelsPerClock, lstall, D, initalXmitDelay, w, s, ix, wx, p, l0, a, ax, l,
sys/dev/pci/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c
340
w = sliceWidth / pixelsPerClock;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c
350
wx = (w + 2) / 3;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c
351
p = 3 * wx - w;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c
352
l0 = ix / w;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c
356
if ((ix % w) == 0 && p != 0)
sys/dev/pci/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c
343
unsigned int pixelsPerClock, lstall, D, initalXmitDelay, w, s, ix, wx, p, l0, a, ax, l,
sys/dev/pci/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c
364
w = sliceWidth / pixelsPerClock;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c
374
wx = (w + 2) / 3;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c
375
p = 3 * wx - w;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c
376
l0 = ix / w;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c
380
if ((ix % w) == 0 && p != 0)
sys/dev/pci/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c
514
unsigned int pixelsPerClock, lstall, D, initalXmitDelay, w, S, ix, wx, p, l0, a, ax, l,
sys/dev/pci/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c
535
w = sliceWidth / pixelsPerClock;
sys/dev/pci/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c
545
wx = (w + 2) / 3;
sys/dev/pci/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c
546
p = 3 * wx - w;
sys/dev/pci/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c
547
l0 = ix / w;
sys/dev/pci/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c
551
if ((ix % w) == 0 && p != 0)
sys/dev/pci/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c
660
unsigned int pixelsPerClock, lstall, D, initalXmitDelay, w, s, ix, wx, P, l0, a, ax, L,
sys/dev/pci/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c
685
w = sliceWidth / pixelsPerClock;
sys/dev/pci/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c
695
wx = (w + 2) / 3;
sys/dev/pci/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c
696
P = 3 * wx - w;
sys/dev/pci/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c
697
l0 = ix / w;
sys/dev/pci/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c
701
if ((ix % w) == 0 && P != 0)
sys/dev/pci/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c
690
unsigned int pixelsPerClock = 0, lstall, D, initalXmitDelay, w, s, ix, wx, P, l0, a, ax, L, Delay, pixels;
sys/dev/pci/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c
714
w = sliceWidth / pixelsPerClock;
sys/dev/pci/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c
724
wx = (w + 2) / 3;
sys/dev/pci/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c
725
P = 3 * wx - w;
sys/dev/pci/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c
726
l0 = ix / w;
sys/dev/pci/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c
730
if ((ix % w) == 0 && P != 0)
sys/dev/pci/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c
708
unsigned int pixelsPerClock = 0, lstall, D, initalXmitDelay, w, s, ix, wx, P, l0, a, ax, L, Delay, pixels;
sys/dev/pci/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c
732
w = sliceWidth / pixelsPerClock;
sys/dev/pci/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c
742
wx = (w + 2) / 3;
sys/dev/pci/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c
743
P = 3 * wx - w;
sys/dev/pci/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c
744
l0 = ix / w;
sys/dev/pci/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c
748
if ((ix % w) == 0 && P != 0)
sys/dev/pci/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c
53
unsigned int pixelsPerClock, lstall, D, initalXmitDelay, w, s, ix, wx, p, l0, a, ax, L,
sys/dev/pci/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c
76
w = sliceWidth / pixelsPerClock;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c
86
wx = (w + 2) / 3;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c
87
p = 3 * wx - w;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c
88
l0 = ix / w;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c
92
if ((ix % w) == 0 && p != 0)
sys/dev/pci/drm/amd/display/dc/dml2/display_mode_core.c
859
dml_uint_t pixelsPerClock, lstall, D, initalXmitDelay, w, s, ix, wx, p, l0, a, ax, L,
sys/dev/pci/drm/amd/display/dc/dml2/display_mode_core.c
884
w = sliceWidth / pixelsPerClock;
sys/dev/pci/drm/amd/display/dc/dml2/display_mode_core.c
894
wx = (w + 2) / 3;
sys/dev/pci/drm/amd/display/dc/dml2/display_mode_core.c
895
p = 3 * wx - w;
sys/dev/pci/drm/amd/display/dc/dml2/display_mode_core.c
896
l0 = ix / w;
sys/dev/pci/drm/amd/display/dc/dml2/display_mode_core.c
900
if ((ix % w) == 0 && p != 0)
sys/dev/pci/drm/amd/display/dc/dml2/display_mode_util.c
141
dml_float_t dml_min4(dml_float_t x, dml_float_t y, dml_float_t z, dml_float_t w)
sys/dev/pci/drm/amd/display/dc/dml2/display_mode_util.c
143
return dml_min(dml_min(dml_min(x, y), z), w);
sys/dev/pci/drm/amd/display/dc/dml2/display_mode_util.h
42
__DML_DLL_EXPORT__ dml_float_t dml_min4(dml_float_t x, dml_float_t y, dml_float_t z, dml_float_t w);
sys/dev/pci/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
1101
hubp->cur_rect.w = param->stream->timing.h_addressable;
sys/dev/pci/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
643
hubp->cur_rect.w = attr->width;
sys/dev/pci/drm/amd/display/dc/inc/hw/cursor_reg_cache.h
71
uint32_t w;
sys/dev/pci/drm/apple/iomfb.c
350
.w = drm_rect_width(rect),
sys/dev/pci/drm/apple/iomfb.h
105
u32 w;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
522
struct drm_dp_remote_dpcd_write *w =
sys/dev/pci/drm/display/drm_dp_mst_topology.c
525
w->port_number = (buf[idx] >> 4) & 0xf;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
527
w->dpcd_address = (buf[idx] << 16) & 0xf0000;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
528
w->dpcd_address |= (buf[++idx] << 8) & 0xff00;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
529
w->dpcd_address |= buf[++idx] & 0xff;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
531
w->num_bytes = buf[++idx];
sys/dev/pci/drm/display/drm_dp_mst_topology.c
533
w->bytes = kmemdup(&buf[++idx], w->num_bytes,
sys/dev/pci/drm/display/drm_dp_mst_topology.c
535
if (!w->bytes)
sys/dev/pci/drm/display/drm_dp_mst_topology.c
578
struct drm_dp_remote_i2c_write *w = &req->u.i2c_write;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
580
w->port_number = (buf[idx] >> 4) & 0xf;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
581
w->write_i2c_device_id = buf[++idx] & 0x7f;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
582
w->num_bytes = buf[++idx];
sys/dev/pci/drm/display/drm_dp_mst_topology.c
583
w->bytes = kmemdup(&buf[++idx], w->num_bytes,
sys/dev/pci/drm/display/drm_dp_mst_topology.c
585
if (!w->bytes)
sys/dev/pci/drm/drm_edid.c
3496
int w, h;
sys/dev/pci/drm/drm_edid.c
3511
if ((mode->hdisplay == cea_interlaced[i].w) &&
sys/dev/pci/drm/drm_edid.c
3781
newmode = drm_gtf_mode(dev, m->w, m->h, m->r, 0, 0);
sys/dev/pci/drm/drm_edid.c
3810
newmode = drm_gtf2_mode(dev, drm_edid, m->w, m->h, m->r);
sys/dev/pci/drm/drm_edid.c
3840
newmode = drm_cvt_mode(dev, m->w, m->h, m->r, rb, 0, 0);
sys/dev/pci/drm/drm_edid.c
3928
est3_modes[m].w,
sys/dev/pci/drm/drm_edid.c
686
short w;
sys/dev/pci/drm/drm_edid.c
7542
u16 w, h;
sys/dev/pci/drm/drm_edid.c
7547
w = tile->tile_size[0] | tile->tile_size[1] << 8;
sys/dev/pci/drm/drm_edid.c
7563
connector->tile_h_size = w + 1;
sys/dev/pci/drm/drm_flip_work.c
102
static void flip_worker(struct work_struct *w)
sys/dev/pci/drm/drm_flip_work.c
104
struct drm_flip_work *work = container_of(w, struct drm_flip_work, worker);
sys/dev/pci/drm/drm_framebuffer.c
383
static void drm_mode_rmfb_work_fn(struct work_struct *w)
sys/dev/pci/drm/drm_framebuffer.c
385
struct drm_mode_rmfb_work *arg = container_of(w, typeof(*arg), work);
sys/dev/pci/drm/drm_linux.c
308
struct kthread_worker *w = malloc(sizeof(*w), M_DRM, M_WAITOK);
sys/dev/pci/drm/drm_linux.c
312
w->tq = taskq_create(name, 1, IPL_HIGH, 0);
sys/dev/pci/drm/drm_linux.c
314
return w;
sys/dev/pci/drm/i915/display/i9xx_plane_regs.h
104
#define PRIM_WIDTH(w) REG_FIELD_PREP(PRIM_WIDTH_MASK, (w))
sys/dev/pci/drm/i915/display/i9xx_plane_regs.h
69
#define DISP_WIDTH(w) REG_FIELD_PREP(DISP_WIDTH_MASK, (w))
sys/dev/pci/drm/i915/display/intel_color_regs.h
308
#define CGM_PIPE_DEGAMMA(pipe, i, w) _MMIO(_PIPE(pipe, _CGM_PIPE_A_DEGAMMA, _CGM_PIPE_B_DEGAMMA) + (i) * 8 + (w) * 4)
sys/dev/pci/drm/i915/display/intel_color_regs.h
309
#define CGM_PIPE_GAMMA(pipe, i, w) _MMIO(_PIPE(pipe, _CGM_PIPE_A_GAMMA, _CGM_PIPE_B_GAMMA) + (i) * 8 + (w) * 4)
sys/dev/pci/drm/i915/display/intel_cursor_regs.h
63
#define CURSOR_WIDTH(w) REG_FIELD_PREP(CURSOR_WIDTH_MASK, (w))
sys/dev/pci/drm/i915/display/intel_display_regs.h
1141
#define PS_WIN_XSIZE(w) REG_FIELD_PREP(PS_WIN_XSIZE_MASK, (w))
sys/dev/pci/drm/i915/display/intel_display_regs.h
398
#define PIPESRC_WIDTH(w) REG_FIELD_PREP(PIPESRC_WIDTH_MASK, (w))
sys/dev/pci/drm/i915/display/intel_fb.c
957
static void intel_fb_plane_dims(const struct intel_framebuffer *fb, int color_plane, int *w, int *h)
sys/dev/pci/drm/i915/display/intel_fb.c
969
*w = DIV_ROUND_UP(main_width, main_hsub * hsub);
sys/dev/pci/drm/i915/display/intel_fbc.c
1133
unsigned int *w, unsigned int *h)
sys/dev/pci/drm/i915/display/intel_fbc.c
1136
*w = 8192;
sys/dev/pci/drm/i915/display/intel_fbc.c
1139
*w = 5120;
sys/dev/pci/drm/i915/display/intel_fbc.c
1142
*w = 4096;
sys/dev/pci/drm/i915/display/intel_fbc.c
1145
*w = 4096;
sys/dev/pci/drm/i915/display/intel_fbc.c
1148
*w = 2048;
sys/dev/pci/drm/i915/display/intel_fbc.c
1175
unsigned int *w, unsigned int *h)
sys/dev/pci/drm/i915/display/intel_fbc.c
1178
*w = 5120;
sys/dev/pci/drm/i915/display/intel_fbc.c
1181
*w = 4096;
sys/dev/pci/drm/i915/display/intel_fbc.c
1184
*w = 4096;
sys/dev/pci/drm/i915/display/intel_fbc.c
1187
*w = 2048;
sys/dev/pci/drm/i915/display/intel_fbc.c
1195
unsigned int w, h, max_w, max_h;
sys/dev/pci/drm/i915/display/intel_fbc.c
1199
w = drm_rect_width(&plane_state->uapi.src) >> 16;
sys/dev/pci/drm/i915/display/intel_fbc.c
1202
return w <= max_w && h <= max_h;
sys/dev/pci/drm/i915/display/intel_pfit_regs.h
59
#define PF_WIN_XSIZE(w) REG_FIELD_PREP(PF_WIN_XSIZE_MASK, (w))
sys/dev/pci/drm/i915/display/intel_psr.c
535
u16 w;
sys/dev/pci/drm/i915/display/intel_psr.c
550
w = 4;
sys/dev/pci/drm/i915/display/intel_psr.c
557
&w, 2);
sys/dev/pci/drm/i915/display/intel_psr.c
565
if (r != 2 || w == 0)
sys/dev/pci/drm/i915/display/intel_psr.c
566
w = 4;
sys/dev/pci/drm/i915/display/intel_psr.c
580
intel_dp->psr.su_w_granularity = w;
sys/dev/pci/drm/i915/display/intel_sprite_regs.h
103
#define DVS_SRC_WIDTH(w) REG_FIELD_PREP(DVS_SRC_WIDTH_MASK, (w))
sys/dev/pci/drm/i915/display/intel_sprite_regs.h
167
#define SPRITE_WIDTH(w) REG_FIELD_PREP(SPRITE_WIDTH_MASK, (w))
sys/dev/pci/drm/i915/display/intel_sprite_regs.h
213
#define SPRITE_SRC_WIDTH(w) REG_FIELD_PREP(SPRITE_SRC_WIDTH_MASK, (w))
sys/dev/pci/drm/i915/display/intel_sprite_regs.h
286
#define SP_WIDTH(w) REG_FIELD_PREP(SP_WIDTH_MASK, (w))
sys/dev/pci/drm/i915/display/intel_sprite_regs.h
57
#define DVS_WIDTH(w) REG_FIELD_PREP(DVS_WIDTH_MASK, (w))
sys/dev/pci/drm/i915/display/intel_tv.c
1754
u16 w, h;
sys/dev/pci/drm/i915/display/intel_tv.c
1800
if (input->w > 1024 &&
sys/dev/pci/drm/i915/display/intel_tv.c
1806
if (DISPLAY_VER(display) == 3 && input->w > 1024 &&
sys/dev/pci/drm/i915/display/intel_tv.c
1827
intel_tv_scale_mode_horiz(mode, input->w, 0, 0);
sys/dev/pci/drm/i915/display/skl_universal_plane.c
1964
int w = drm_rect_width(&plane_state->uapi.src) >> 16;
sys/dev/pci/drm/i915/display/skl_universal_plane.c
1990
while ((*x + w) * cpp > plane_state->view.color_plane[0].mapping_stride) {
sys/dev/pci/drm/i915/display/skl_universal_plane.c
2015
int w = drm_rect_width(&plane_state->uapi.src) >> 16;
sys/dev/pci/drm/i915/display/skl_universal_plane.c
2025
if (w > max_width || w < min_width || h > max_height || h < 1) {
sys/dev/pci/drm/i915/display/skl_universal_plane.c
2029
w, h, min_width, max_width, max_height);
sys/dev/pci/drm/i915/display/skl_universal_plane.c
2093
int w = drm_rect_width(&plane_state->uapi.src) >> 17;
sys/dev/pci/drm/i915/display/skl_universal_plane.c
2098
if (w > max_width || h > max_height) {
sys/dev/pci/drm/i915/display/skl_universal_plane.c
2102
w, h, max_width, max_height);
sys/dev/pci/drm/i915/display/skl_universal_plane_regs.h
134
#define PLANE_WIDTH(w) REG_FIELD_PREP(PLANE_WIDTH_MASK, (w))
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
1091
struct i915_request *w =
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
1092
container_of(p->waiter, typeof(*w), sched);
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
1098
if (w->engine != rq->engine)
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
1102
GEM_BUG_ON(i915_request_has_initial_breadcrumb(w) &&
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
1103
__i915_request_has_started(w) &&
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
1106
if (!i915_request_is_ready(w))
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
1109
if (rq_prio(w) < rq_prio(rq))
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
1112
GEM_BUG_ON(rq_prio(w) > rq_prio(rq));
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
1113
GEM_BUG_ON(i915_request_is_active(w));
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
1114
list_move_tail(&w->sched.link, &list);
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
2071
struct i915_request *w =
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
2072
container_of(p->waiter, typeof(*w), sched);
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
2078
if (w->engine != rq->engine)
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
2081
if (!i915_request_is_ready(w))
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
2084
if (__i915_request_is_complete(w))
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
2087
if (i915_request_on_hold(w))
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
2090
list_move_tail(&w->sched.link, &list);
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
2172
struct i915_request *w =
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
2173
container_of(p->waiter, typeof(*w), sched);
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
2178
if (w->engine != rq->engine)
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
2181
if (!i915_request_on_hold(w))
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
2185
if (hold_request(w))
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
2188
list_move_tail(&w->sched.link, &list);
sys/dev/pci/drm/i915/gt/intel_reset.c
1025
static void set_wedged_work(struct work_struct *w)
sys/dev/pci/drm/i915/gt/intel_reset.c
1027
struct intel_gt *gt = container_of(w, struct intel_gt, wedge);
sys/dev/pci/drm/i915/gt/intel_reset.c
1427
struct intel_wedge_me w;
sys/dev/pci/drm/i915/gt/intel_reset.c
1435
intel_wedge_on_timeout(&w, gt, 60 * HZ) {
sys/dev/pci/drm/i915/gt/intel_reset.c
1693
struct intel_wedge_me *w = container_of(work, typeof(*w), work.work);
sys/dev/pci/drm/i915/gt/intel_reset.c
1695
gt_err(w->gt, "%s timed out, cancelling all in-flight rendering.\n", w->name);
sys/dev/pci/drm/i915/gt/intel_reset.c
1696
set_wedged_work(&w->gt->wedge);
sys/dev/pci/drm/i915/gt/intel_reset.c
1699
void __intel_init_wedge(struct intel_wedge_me *w,
sys/dev/pci/drm/i915/gt/intel_reset.c
1704
w->gt = gt;
sys/dev/pci/drm/i915/gt/intel_reset.c
1705
w->name = name;
sys/dev/pci/drm/i915/gt/intel_reset.c
1707
INIT_DELAYED_WORK_ONSTACK(&w->work, intel_wedge_me);
sys/dev/pci/drm/i915/gt/intel_reset.c
1708
queue_delayed_work(gt->i915->unordered_wq, &w->work, timeout);
sys/dev/pci/drm/i915/gt/intel_reset.c
1711
void __intel_fini_wedge(struct intel_wedge_me *w)
sys/dev/pci/drm/i915/gt/intel_reset.c
1713
cancel_delayed_work_sync(&w->work);
sys/dev/pci/drm/i915/gt/intel_reset.c
1714
destroy_delayed_work_on_stack(&w->work);
sys/dev/pci/drm/i915/gt/intel_reset.c
1715
w->gt = NULL;
sys/dev/pci/drm/i915/gt/intel_reset.h
70
void __intel_init_wedge(struct intel_wedge_me *w,
sys/dev/pci/drm/i915/gt/intel_reset.h
74
void __intel_fini_wedge(struct intel_wedge_me *w);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
1907
static void gen9_whitelist_build(struct i915_wa_list *w)
sys/dev/pci/drm/i915/gt/intel_workarounds.c
1910
whitelist_reg(w, GEN9_CTX_PREEMPT_REG);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
1913
whitelist_reg(w, GEN8_CS_CHICKEN1);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
1916
whitelist_reg(w, GEN8_HDC_CHICKEN1);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
1919
whitelist_reg(w, COMMON_SLICE_CHICKEN2);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
1924
struct i915_wa_list *w = &engine->whitelist;
sys/dev/pci/drm/i915/gt/intel_workarounds.c
1929
gen9_whitelist_build(w);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
1932
whitelist_mcr_reg(w, GEN8_L3SQCREG4);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
1945
struct i915_wa_list *w = &engine->whitelist;
sys/dev/pci/drm/i915/gt/intel_workarounds.c
1950
gen9_whitelist_build(w);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
1953
whitelist_mcr_reg(w, GEN8_L3SQCREG4);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
1958
struct i915_wa_list *w = &engine->whitelist;
sys/dev/pci/drm/i915/gt/intel_workarounds.c
1963
gen9_whitelist_build(w);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
1966
whitelist_reg(w, GEN9_SLICE_COMMON_ECO_CHICKEN1);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
1971
struct i915_wa_list *w = &engine->whitelist;
sys/dev/pci/drm/i915/gt/intel_workarounds.c
1976
gen9_whitelist_build(w);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
1987
whitelist_reg_ext(w, PS_INVOCATION_COUNT,
sys/dev/pci/drm/i915/gt/intel_workarounds.c
1994
struct i915_wa_list *w = &engine->whitelist;
sys/dev/pci/drm/i915/gt/intel_workarounds.c
1997
whitelist_reg_ext(w,
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2011
struct i915_wa_list *w = &engine->whitelist;
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2018
whitelist_mcr_reg(w, GEN9_HALF_SLICE_CHICKEN7);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2021
whitelist_mcr_reg(w, GEN10_SAMPLER_MODE);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2024
whitelist_reg(w, GEN9_SLICE_COMMON_ECO_CHICKEN1);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2035
whitelist_reg_ext(w, PS_INVOCATION_COUNT,
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2042
whitelist_reg_ext(w, _MMIO(0x2000 + engine->mmio_base),
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2045
whitelist_reg_ext(w, _MMIO(0x2014 + engine->mmio_base),
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2048
whitelist_reg_ext(w, _MMIO(0x23B0 + engine->mmio_base),
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2059
struct i915_wa_list *w = &engine->whitelist;
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2075
whitelist_reg_ext(w, PS_INVOCATION_COUNT,
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2084
whitelist_reg(w, GEN7_COMMON_SLICE_CHICKEN1);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2087
whitelist_reg(w, HIZ_CHICKEN);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2090
whitelist_reg(w, GEN11_COMMON_SLICE_CHICKEN3);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2100
struct i915_wa_list *w = &engine->whitelist;
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2105
whitelist_mcr_reg(w, XEHP_COMMON_SLICE_CHICKEN3);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2106
whitelist_reg(w, GEN7_COMMON_SLICE_CHICKEN1);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2115
struct i915_wa_list *w = &engine->whitelist;
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2120
whitelist_mcr_reg(w, XEHP_COMMON_SLICE_CHICKEN3);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2121
whitelist_reg(w, GEN7_COMMON_SLICE_CHICKEN1);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2131
struct i915_wa_list *w = &engine->whitelist;
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2133
wa_init_start(w, engine->gt, "whitelist", engine->name);
sys/dev/pci/drm/i915/gt/intel_workarounds.c
2162
wa_init_finish(w);
sys/dev/pci/drm/i915/gt/selftest_hangcheck.c
1560
struct intel_wedge_me w;
sys/dev/pci/drm/i915/gt/selftest_hangcheck.c
1563
intel_wedge_on_timeout(&w, gt, HZ / 10 /* 100ms */)
sys/dev/pci/drm/i915/gt/selftest_hangcheck.c
1947
struct intel_wedge_me w;
sys/dev/pci/drm/i915/gt/selftest_hangcheck.c
1949
intel_wedge_on_timeout(&w, engine->gt, HZ / 20 /* 50ms */)
sys/dev/pci/drm/i915/gt/selftest_hangcheck.c
300
struct intel_wedge_me w;
sys/dev/pci/drm/i915/gt/selftest_hangcheck.c
322
intel_wedge_on_timeout(&w, gt, HZ / 5 /* 200ms */)
sys/dev/pci/drm/i915/gt/selftest_timeline.c
828
static int setup_watcher(struct hwsp_watcher *w, struct intel_gt *gt,
sys/dev/pci/drm/i915/gt/selftest_timeline.c
840
w->map = i915_gem_object_pin_map_unlocked(obj,
sys/dev/pci/drm/i915/gt/selftest_timeline.c
842
if (IS_ERR(w->map)) {
sys/dev/pci/drm/i915/gt/selftest_timeline.c
844
return PTR_ERR(w->map);
sys/dev/pci/drm/i915/gt/selftest_timeline.c
853
w->vma = vma;
sys/dev/pci/drm/i915/gt/selftest_timeline.c
854
w->addr = i915_ggtt_offset(vma);
sys/dev/pci/drm/i915/gt/selftest_timeline.c
873
static int create_watcher(struct hwsp_watcher *w,
sys/dev/pci/drm/i915/gt/selftest_timeline.c
884
w->rq = intel_context_create_request(ce);
sys/dev/pci/drm/i915/gt/selftest_timeline.c
886
if (IS_ERR(w->rq))
sys/dev/pci/drm/i915/gt/selftest_timeline.c
887
return PTR_ERR(w->rq);
sys/dev/pci/drm/i915/gt/selftest_timeline.c
889
w->addr = i915_ggtt_offset(w->vma);
sys/dev/pci/drm/i915/gt/selftest_timeline.c
891
switch_tl_lock(w->rq, NULL);
sys/dev/pci/drm/i915/gt/selftest_timeline.c
896
static int check_watcher(struct hwsp_watcher *w, const char *name,
sys/dev/pci/drm/i915/gt/selftest_timeline.c
899
struct i915_request *rq = fetch_and_zero(&w->rq);
sys/dev/pci/drm/i915/gt/selftest_timeline.c
903
GEM_BUG_ON(w->addr - i915_ggtt_offset(w->vma) > w->vma->size);
sys/dev/pci/drm/i915/gt/selftest_timeline.c
916
end = (w->addr - i915_ggtt_offset(w->vma)) / sizeof(*w->map);
sys/dev/pci/drm/i915/gt/selftest_timeline.c
918
if (!op(w->map[offset + 1], w->map[offset])) {
sys/dev/pci/drm/i915/gt/selftest_timeline.c
920
name, w->map[offset + 1], w->map[offset]);
sys/dev/pci/drm/i915/gt/selftest_timeline.c
932
static void cleanup_watcher(struct hwsp_watcher *w)
sys/dev/pci/drm/i915/gt/selftest_timeline.c
934
if (w->rq) {
sys/dev/pci/drm/i915/gt/selftest_timeline.c
935
switch_tl_lock(NULL, w->rq);
sys/dev/pci/drm/i915/gt/selftest_timeline.c
937
i915_request_add(w->rq);
sys/dev/pci/drm/i915/gt/selftest_timeline.c
940
i915_vma_unpin_and_release(&w->vma, I915_VMA_RELEASE_MAP);
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
705
u32 w = values[v];
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
710
expect = reg_write(expect, w, rsvd);
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
712
w, results[idx], expect);
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
716
u32 w = ~values[v];
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
721
expect = reg_write(expect, w, rsvd);
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
723
w, results[idx], expect);
sys/dev/pci/drm/i915/gt/uc/intel_guc.c
164
static void guc_dead_worker_func(struct work_struct *w)
sys/dev/pci/drm/i915/gt/uc/intel_guc.c
166
struct intel_guc *guc = container_of(w, struct intel_guc, dead_guc_worker);
sys/dev/pci/drm/i915/gt/uc/intel_guc_ct.c
1202
static void ct_incoming_request_worker_func(struct work_struct *w)
sys/dev/pci/drm/i915/gt/uc/intel_guc_ct.c
1205
container_of(w, struct intel_guc_ct, requests.worker);
sys/dev/pci/drm/i915/gt/uc/intel_guc_ct.c
135
static void ct_incoming_request_worker_func(struct work_struct *w);
sys/dev/pci/drm/i915/gt/uc/intel_guc_ct.c
1389
static void ct_dead_ct_worker_func(struct work_struct *w)
sys/dev/pci/drm/i915/gt/uc/intel_guc_ct.c
1391
struct intel_guc_ct *ct = container_of(w, struct intel_guc_ct, dead_ct_worker);
sys/dev/pci/drm/i915/gt/uc/intel_guc_ct.c
28
static void ct_dead_ct_worker_func(struct work_struct *w);
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
2094
static void destroyed_worker_func(struct work_struct *w);
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
2095
static void reset_fail_worker_func(struct work_struct *w);
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
3558
static void destroyed_worker_func(struct work_struct *w)
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
3560
struct intel_guc *guc = container_of(w, struct intel_guc,
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
5314
static void reset_fail_worker_func(struct work_struct *w)
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
5316
struct intel_guc *guc = container_of(w, struct intel_guc,
sys/dev/pci/drm/i915/gvt/handlers.c
2159
#define MMIO_F(reg, s, f, am, rm, d, r, w) do { \
sys/dev/pci/drm/i915/gvt/handlers.c
2161
s, f, am, rm, d, r, w); \
sys/dev/pci/drm/i915/gvt/handlers.c
2166
#define MMIO_DH(reg, d, r, w) \
sys/dev/pci/drm/i915/gvt/handlers.c
2167
MMIO_F(reg, 4, 0, 0, 0, d, r, w)
sys/dev/pci/drm/i915/gvt/handlers.c
2169
#define MMIO_DFH(reg, d, f, r, w) \
sys/dev/pci/drm/i915/gvt/handlers.c
2170
MMIO_F(reg, 4, f, 0, 0, d, r, w)
sys/dev/pci/drm/i915/gvt/handlers.c
2172
#define MMIO_GM(reg, d, r, w) \
sys/dev/pci/drm/i915/gvt/handlers.c
2173
MMIO_F(reg, 4, F_GMADR, 0xFFFFF000, 0, d, r, w)
sys/dev/pci/drm/i915/gvt/handlers.c
2175
#define MMIO_GM_RDR(reg, d, r, w) \
sys/dev/pci/drm/i915/gvt/handlers.c
2176
MMIO_F(reg, 4, F_GMADR | F_CMD_ACCESS, 0xFFFFF000, 0, d, r, w)
sys/dev/pci/drm/i915/gvt/handlers.c
2178
#define MMIO_RO(reg, d, f, rm, r, w) \
sys/dev/pci/drm/i915/gvt/handlers.c
2179
MMIO_F(reg, 4, F_RO | f, 0, rm, d, r, w)
sys/dev/pci/drm/i915/gvt/handlers.c
2181
#define MMIO_RING_F(prefix, s, f, am, rm, d, r, w) do { \
sys/dev/pci/drm/i915/gvt/handlers.c
2182
MMIO_F(prefix(RENDER_RING_BASE), s, f, am, rm, d, r, w); \
sys/dev/pci/drm/i915/gvt/handlers.c
2183
MMIO_F(prefix(BLT_RING_BASE), s, f, am, rm, d, r, w); \
sys/dev/pci/drm/i915/gvt/handlers.c
2184
MMIO_F(prefix(GEN6_BSD_RING_BASE), s, f, am, rm, d, r, w); \
sys/dev/pci/drm/i915/gvt/handlers.c
2185
MMIO_F(prefix(VEBOX_RING_BASE), s, f, am, rm, d, r, w); \
sys/dev/pci/drm/i915/gvt/handlers.c
2187
MMIO_F(prefix(GEN8_BSD2_RING_BASE), s, f, am, rm, d, r, w); \
sys/dev/pci/drm/i915/gvt/handlers.c
2190
#define MMIO_RING_DFH(prefix, d, f, r, w) \
sys/dev/pci/drm/i915/gvt/handlers.c
2191
MMIO_RING_F(prefix, 4, f, 0, 0, d, r, w)
sys/dev/pci/drm/i915/gvt/handlers.c
2193
#define MMIO_RING_GM(prefix, d, r, w) \
sys/dev/pci/drm/i915/gvt/handlers.c
2194
MMIO_RING_F(prefix, 4, F_GMADR, 0xFFFF0000, 0, d, r, w)
sys/dev/pci/drm/i915/gvt/handlers.c
2196
#define MMIO_RING_GM_RDR(prefix, d, r, w) \
sys/dev/pci/drm/i915/gvt/handlers.c
2197
MMIO_RING_F(prefix, 4, F_GMADR | F_CMD_ACCESS, 0xFFFF0000, 0, d, r, w)
sys/dev/pci/drm/i915/gvt/handlers.c
2199
#define MMIO_RING_RO(prefix, d, f, rm, r, w) \
sys/dev/pci/drm/i915/gvt/handlers.c
2200
MMIO_RING_F(prefix, 4, F_RO | f, 0, rm, d, r, w)
sys/dev/pci/drm/i915/intel_uncore.h
346
__raw_read(16, w)
sys/dev/pci/drm/i915/intel_uncore.h
351
__raw_write(16, w)
sys/dev/pci/drm/i915/intel_uncore.h
373
__uncore_read(read16, 16, w, true)
sys/dev/pci/drm/i915/intel_uncore.h
375
__uncore_read(read16_notrace, 16, w, false)
sys/dev/pci/drm/i915/intel_uncore.h
379
__uncore_write(write16, 16, w, true)
sys/dev/pci/drm/include/drm/drm_rect.h
60
#define DRM_RECT_INIT(x, y, w, h) ((struct drm_rect){ \
sys/dev/pci/drm/include/drm/drm_rect.h
63
.x2 = (x) + (w), \
sys/dev/pci/drm/include/uapi/drm/i915_drm.h
328
unsigned int w;
sys/dev/pci/drm/radeon/evergreen_cs.c
875
unsigned w, h, d;
sys/dev/pci/drm/radeon/evergreen_cs.c
877
w = r600_mip_minify(width, i);
sys/dev/pci/drm/radeon/evergreen_cs.c
880
surf.nbx = r600_fmt_get_nblocksx(surf.format, w);
sys/dev/pci/drm/radeon/r100.c
2123
static int r100_track_compress_size(int compress_format, int w, int h)
sys/dev/pci/drm/radeon/r100.c
2146
wblocks = (w + block_width - 1) / block_width;
sys/dev/pci/drm/radeon/r100.c
2156
unsigned face, w, h;
sys/dev/pci/drm/radeon/r100.c
2163
w = track->textures[idx].cube_info[face].width;
sys/dev/pci/drm/radeon/r100.c
2167
size = r100_track_compress_size(compress_format, w, h);
sys/dev/pci/drm/radeon/r100.c
2169
size = w * h;
sys/dev/pci/drm/radeon/r100.c
2190
unsigned u, i, w, h, d;
sys/dev/pci/drm/radeon/r100.c
2207
w = (track->textures[u].pitch / track->textures[u].cpp) / (1 << i);
sys/dev/pci/drm/radeon/r100.c
2209
w = track->textures[u].pitch / (1 << i);
sys/dev/pci/drm/radeon/r100.c
2211
w = track->textures[u].width;
sys/dev/pci/drm/radeon/r100.c
2213
w |= track->textures[u].width_11;
sys/dev/pci/drm/radeon/r100.c
2214
w = w / (1 << i);
sys/dev/pci/drm/radeon/r100.c
2216
w = roundup_pow_of_two(w);
sys/dev/pci/drm/radeon/r100.c
2233
size += r100_track_compress_size(track->textures[u].compress_format, w, h) * d;
sys/dev/pci/drm/radeon/r100.c
2236
size += w * h * d;
sys/dev/pci/drm/radeon/r600_cs.c
210
int r600_fmt_get_nblocksx(u32 format, u32 w)
sys/dev/pci/drm/radeon/r600_cs.c
221
return DIV_ROUND_UP(w, bw);
sys/dev/pci/drm/radeon/radeon.h
2940
int r600_fmt_get_nblocksx(u32 format, u32 w);
sys/dev/pci/drm/radeon/radeon_connectors.c
469
int w;
sys/dev/pci/drm/radeon/radeon_connectors.c
493
if (common_modes[i].w > 1024 ||
sys/dev/pci/drm/radeon/radeon_connectors.c
498
if (common_modes[i].w > native_mode->hdisplay ||
sys/dev/pci/drm/radeon/radeon_connectors.c
500
(common_modes[i].w == native_mode->hdisplay &&
sys/dev/pci/drm/radeon/radeon_connectors.c
504
if (common_modes[i].w < 320 || common_modes[i].h < 200)
sys/dev/pci/drm/radeon/radeon_connectors.c
507
mode = drm_cvt_mode(dev, common_modes[i].w, common_modes[i].h, 60, false, false, false);
sys/dev/pci/drm/radeon/radeon_cursor.c
149
int w = radeon_crtc->cursor_width;
sys/dev/pci/drm/radeon/radeon_cursor.c
192
cursor_end = x + w;
sys/dev/pci/drm/radeon/radeon_cursor.c
195
w = w - (cursor_end - frame_end);
sys/dev/pci/drm/radeon/radeon_cursor.c
197
w--;
sys/dev/pci/drm/radeon/radeon_cursor.c
201
w--;
sys/dev/pci/drm/radeon/radeon_cursor.c
203
if (w <= 0) {
sys/dev/pci/drm/radeon/radeon_cursor.c
209
if (x <= (crtc->x - w) || y <= (crtc->y - radeon_crtc->cursor_height) ||
sys/dev/pci/drm/radeon/radeon_cursor.c
221
((w - 1) << 16) | (radeon_crtc->cursor_height - 1));
sys/dev/pci/drm/radeon/radeon_cursor.c
226
((w - 1) << 16) | (radeon_crtc->cursor_height - 1));
sys/dev/pci/drm/scheduler/sched_main.c
1213
static void drm_sched_free_job_work(struct work_struct *w)
sys/dev/pci/drm/scheduler/sched_main.c
1216
container_of(w, struct drm_gpu_scheduler, work_free_job);
sys/dev/pci/drm/scheduler/sched_main.c
1235
static void drm_sched_run_job_work(struct work_struct *w)
sys/dev/pci/drm/scheduler/sched_main.c
1238
container_of(w, struct drm_gpu_scheduler, work_run_job);
sys/dev/pci/if_aq_pci.c
2164
aq_fw1x_set_mode(struct aq_softc *sc, enum aq_hw_fw_mpi_state w,
sys/dev/pci/if_aq_pci.c
2171
aq_fw1x_get_mode(struct aq_softc *sc, enum aq_hw_fw_mpi_state *w,
sys/dev/pci/if_aq_pci.c
2178
aq_fw1x_get_stats(struct aq_softc *sc, struct aq_hw_stats_s *w)
sys/dev/pci/if_aq_pci.c
2235
aq_fw2x_get_stats(struct aq_softc *sc, struct aq_hw_stats_s *w)
sys/dev/pci/if_aq_pci.c
2314
aq2_fw_set_mode(struct aq_softc *sc, enum aq_hw_fw_mpi_state w,
sys/dev/pci/if_aq_pci.c
2441
aq2_fw_get_stats(struct aq_softc *sc, struct aq_hw_stats_s *w)
sys/dev/pci/if_casreg.h
593
#define CAS_RC0_SKIP(w) \
sys/dev/pci/if_casreg.h
594
(((w) & CAS_RC0_SKIP_MASK) >> CAS_RC0_SKIP_SHIFT)
sys/dev/pci/if_casreg.h
595
#define CAS_RC0_DATA_IDX(w) \
sys/dev/pci/if_casreg.h
596
(((w) & CAS_RC0_DATA_IDX_MASK) >> CAS_RC0_DATA_IDX_SHIFT)
sys/dev/pci/if_casreg.h
597
#define CAS_RC0_DATA_OFF(w) \
sys/dev/pci/if_casreg.h
598
(((w) & CAS_RC0_DATA_OFF_MASK) >> CAS_RC0_DATA_OFF_SHIFT)
sys/dev/pci/if_casreg.h
599
#define CAS_RC0_DATA_LEN(w) \
sys/dev/pci/if_casreg.h
600
(((w) & CAS_RC0_DATA_LEN_MASK) >> CAS_RC0_DATA_LEN_SHIFT)
sys/dev/pci/if_casreg.h
609
#define CAS_RC1_HDR_IDX(w) \
sys/dev/pci/if_casreg.h
610
(((w) & CAS_RC1_HDR_IDX_MASK) >> CAS_RC1_HDR_IDX_SHIFT)
sys/dev/pci/if_casreg.h
611
#define CAS_RC1_HDR_OFF(w) \
sys/dev/pci/if_casreg.h
612
(((w) & CAS_RC1_HDR_OFF_MASK) >> CAS_RC1_HDR_OFF_SHIFT)
sys/dev/pci/if_casreg.h
613
#define CAS_RC1_HDR_LEN(w) \
sys/dev/pci/if_casreg.h
614
(((w) & CAS_RC1_HDR_LEN_MASK) >> CAS_RC1_HDR_LEN_SHIFT)
sys/dev/pci/if_iwi.c
1566
const uint16_t *w;
sys/dev/pci/if_iwi.c
1601
for (w = (const uint16_t *)data; size > 0; w++, size -= 2)
sys/dev/pci/if_iwi.c
1602
MEM_WRITE_2(sc, 0x200010, htole16(*w));
sys/dev/pci/if_iwn.c
3242
uint16_t *w = &sc->sched[qid * IWN4965_SCHED_COUNT + idx];
sys/dev/pci/if_iwn.c
3244
*w = htole16(len + 8);
sys/dev/pci/if_iwn.c
3246
(caddr_t)w - sc->sched_dma.vaddr, sizeof (uint16_t),
sys/dev/pci/if_iwn.c
3249
*(w + IWN_TX_RING_COUNT) = *w;
sys/dev/pci/if_iwn.c
3251
(caddr_t)(w + IWN_TX_RING_COUNT) - sc->sched_dma.vaddr,
sys/dev/pci/if_iwn.c
3266
uint16_t *w = &sc->sched[qid * IWN5000_SCHED_COUNT + idx];
sys/dev/pci/if_iwn.c
3268
*w = htole16(id << 12 | (len + 8));
sys/dev/pci/if_iwn.c
3270
(caddr_t)w - sc->sched_dma.vaddr, sizeof (uint16_t),
sys/dev/pci/if_iwn.c
3273
*(w + IWN_TX_RING_COUNT) = *w;
sys/dev/pci/if_iwn.c
3275
(caddr_t)(w + IWN_TX_RING_COUNT) - sc->sched_dma.vaddr,
sys/dev/pci/if_iwn.c
3283
uint16_t *w = &sc->sched[qid * IWN5000_SCHED_COUNT + idx];
sys/dev/pci/if_iwn.c
3285
*w = (*w & htole16(0xf000)) | htole16(1);
sys/dev/pci/if_iwn.c
3287
(caddr_t)w - sc->sched_dma.vaddr, sizeof (uint16_t),
sys/dev/pci/if_iwn.c
3290
*(w + IWN_TX_RING_COUNT) = *w;
sys/dev/pci/if_iwn.c
3292
(caddr_t)(w + IWN_TX_RING_COUNT) - sc->sched_dma.vaddr,
sys/dev/pci/mfii.c
1206
htolem32(&dcmd->mdf_mbox.w[0], seq);
sys/dev/pci/mfii.c
1207
htolem32(&dcmd->mdf_mbox.w[1], mec.mec_word);
sys/dev/pci/tga.c
1043
tga_rop(struct rasops_info *dst, int dx, int dy, int w, int h,
sys/dev/pci/tga.c
1051
w += sx;
sys/dev/pci/tga.c
1058
if (sx + w > src->ri_emuwidth)
sys/dev/pci/tga.c
1059
w = src->ri_emuwidth - sx;
sys/dev/pci/tga.c
1067
w += dx;
sys/dev/pci/tga.c
1076
if (dx + w > dst->ri_emuwidth)
sys/dev/pci/tga.c
1077
w = dst->ri_emuwidth - dx;
sys/dev/pci/tga.c
1080
if (w <= 0 || h <= 0)
sys/dev/pci/tga.c
1083
return tga_rop_vtov(dst, dx, dy, w, h, src, sx, sy);
sys/dev/pci/tga.c
1094
tga_rop_vtov(struct rasops_info *dst, int dx, int dy, int w, int h,
sys/dev/pci/tga.c
1117
wb = w * (dst->ri_depth / 8);
sys/dev/pci/tga.c
1129
xend = w * (dst->ri_depth / 8) - 4;
sys/dev/pckbc/pms.c
1297
int x, y, z, w, fingerwidth;
sys/dev/pckbc/pms.c
1299
w = ((sc->packet[0] & 0x30) >> 2) | ((sc->packet[0] & 0x04) >> 1) |
sys/dev/pckbc/pms.c
1309
if (w & 8)
sys/dev/pckbc/pms.c
1310
w = 4;
sys/dev/pckbc/pms.c
1312
z = w = 0;
sys/dev/pckbc/pms.c
1316
if (w == 3) {
sys/dev/pckbc/pms.c
1325
if (w == 2)
sys/dev/pckbc/pms.c
1384
fingerwidth = max(w, 4);
sys/dev/pckbc/pms.c
1385
w = (w < 2 ? w + 2 : 1);
sys/dev/pckbc/pms.c
1388
w = 0;
sys/dev/pckbc/pms.c
1391
WSMOUSE_TOUCH(sc->sc_wsmousedev, buttons, x, y, z, w);
sys/dev/pckbc/pms.c
2439
int x, y, w, z;
sys/dev/pckbc/pms.c
2452
w = ((sc->packet[1] & 0x80) >> 7) +
sys/dev/pckbc/pms.c
2455
w = (sc->packet[0] & 0xc0) >> 6;
sys/dev/pckbc/pms.c
2463
if (w == 1) {
sys/dev/pckbc/pms.c
2474
if (w) {
sys/dev/pckbc/pms.c
2482
WSMOUSE_TOUCH(sc->sc_wsmousedev, buttons, x, y, z, w);
sys/dev/pckbc/pms.c
2490
int x, y, w, z;
sys/dev/pckbc/pms.c
2502
w = (sc->packet[0] & 0xc0) >> 6;
sys/dev/pckbc/pms.c
2503
if (w == 1 || w == 3) {
sys/dev/pckbc/pms.c
2511
} else if (w == 2) {
sys/dev/pckbc/pms.c
2519
WSMOUSE_TOUCH(sc->sc_wsmousedev, buttons, x, y, z, w);
sys/dev/pckbc/pms.c
2527
int x, y, w, z;
sys/dev/pckbc/pms.c
2535
w = (sc->packet[0] & 0xc0) >> 6;
sys/dev/pckbc/pms.c
2536
if (w == 2) {
sys/dev/pckbc/pms.c
2559
if (w == 0 ||
sys/dev/pckbc/pms.c
2568
else if (w)
sys/dev/pckbc/pms.c
2571
WSMOUSE_TOUCH(sc->sc_wsmousedev, buttons, x, y, z, w);
sys/dev/pv/hyperv.c
1324
uint32_t r, w;
sys/dev/pv/hyperv.c
1327
w = rd->rd_dsize - (widx - ridx);
sys/dev/pv/hyperv.c
1329
w = ridx - widx;
sys/dev/pv/hyperv.c
1330
r = rd->rd_dsize - w;
sys/dev/pv/hyperv.c
1332
*towrite = w;
sys/dev/pv/viogpu.h
245
__le32 w, h, d;
sys/dev/rasops/rasops_masks.h
74
#define GETBITS(sp, x, w, dw) do { \
sys/dev/rasops/rasops_masks.h
76
if (((x) + (w)) > 32) \
sys/dev/rasops/rasops_masks.h
81
#define PUTBITS(sw, x, w, dp) do { \
sys/dev/rasops/rasops_masks.h
82
int n = (x) + (w) - 32; \
sys/dev/rasops/rasops_masks.h
85
n = rasops_pmask[x & 31][w & 31]; \
sys/dev/rnd.c
221
u_int32_t w = (*buf << entropy_input_rotate) |
sys/dev/rnd.c
235
w ^= entropy_pool[(i + POOL_TAP1) & POOLMASK] ^
sys/dev/rnd.c
242
entropy_pool[i] = (w >> 3) ^ twist_table[w & 7];
sys/dev/sbus/stp4020reg.h
311
#define STP4020_WCR0_REG(s,w) ((32 * (s)) + (4 * (w)) + STP4020_WCR0_IDX)
sys/dev/sbus/stp4020reg.h
312
#define STP4020_WCR1_REG(s,w) ((32 * (s)) + (4 * (w)) + STP4020_WCR1_IDX)
sys/dev/sbus/zx.c
567
zx_fillrect(struct rasops_info *ri, int x, int y, int w, int h, uint32_t attr,
sys/dev/sbus/zx.c
582
w = ri->ri_font->fontwidth * w - 1;
sys/dev/sbus/zx.c
590
SETREG(zc->zc_extent, ZX_COORDS(w, h));
sys/dev/sbus/zx.c
595
zx_copyrect(struct rasops_info *ri, int sx, int sy, int dx, int dy, int w,
sys/dev/sbus/zx.c
611
w = w * ri->ri_font->fontwidth - 1;
sys/dev/sbus/zx.c
616
sx += w;
sys/dev/sbus/zx.c
618
dx += w;
sys/dev/sbus/zx.c
627
SETREG(zc->zc_extent, ZX_COORDS(w, h) | dir);
sys/dev/tc/bba.c
272
int w;
sys/dev/tc/bba.c
277
w = (flags & M_NOWAIT) ? BUS_DMA_NOWAIT : BUS_DMA_WAITOK;
sys/dev/tc/bba.c
280
BBA_DMABUF_BOUNDARY, &seg, 1, &rseg, w)) {
sys/dev/tc/bba.c
288
&kva, w | BUS_DMA_COHERENT)) {
sys/dev/usb/usb.h
63
#define USETW2(w,h,l) ((w)[0] = (u_int8_t)(l), (w)[1] = (u_int8_t)(h))
sys/dev/usb/usb.h
66
#define UGETW(w) ((w)[0] | ((w)[1] << 8))
sys/dev/usb/usb.h
67
#define USETW(w,v) ((w)[0] = (u_int8_t)(v), (w)[1] = (u_int8_t)((v) >> 8))
sys/dev/usb/usb.h
68
#define UGETDW(w) ((w)[0] | ((w)[1] << 8) | ((w)[2] << 16) | ((w)[3] << 24))
sys/dev/usb/usb.h
69
#define USETDW(w,v) ((w)[0] = (u_int8_t)(v), \
sys/dev/usb/usb.h
70
(w)[1] = (u_int8_t)((v) >> 8), \
sys/dev/usb/usb.h
71
(w)[2] = (u_int8_t)((v) >> 16), \
sys/dev/usb/usb.h
72
(w)[3] = (u_int8_t)((v) >> 24))
sys/dev/usb/usb.h
78
#define UGETW(w) (*(u_int16_t *)(w))
sys/dev/usb/usb.h
79
#define USETW(w,v) (*(u_int16_t *)(w) = (v))
sys/dev/usb/usb.h
80
#define UGETDW(w) (*(u_int32_t *)(w))
sys/dev/usb/usb.h
81
#define USETDW(w,v) (*(u_int32_t *)(w) = (v))
sys/dev/usb/utpms.c
629
int i, w, s;
sys/dev/usb/utpms.c
636
w = s = 0;
sys/dev/usb/utpms.c
642
w += (sensors[i] - threshold) * i;
sys/dev/usb/utpms.c
647
*pos_ret = w * fact / s;
sys/dev/usb/uvideo.c
1753
int i, w, h, diff, diff_best, size_want, size_is;
sys/dev/usb/uvideo.c
1760
w = UGETW(UVIDEO_FRAME_FIELD(frame, wWidth));
sys/dev/usb/uvideo.c
1762
size_is = w * h;
sys/dev/usb/uvideo.c
1771
r->width = w;
sys/dev/usb/uvideo.c
1776
DEVNAME(sc), __func__, i, w, h);
sys/dev/x86emu/x86emu.c
167
static void push_word (struct x86emu *, uint16_t w);
sys/dev/x86emu/x86emu.c
168
static void push_long (struct x86emu *, uint32_t w);
sys/dev/x86emu/x86emu.c
8365
push_word(struct x86emu *emu, uint16_t w)
sys/dev/x86emu/x86emu.c
8368
store_word(emu, emu->x86.R_SS, emu->x86.R_SP, w);
sys/dev/x86emu/x86emu.c
8378
push_long(struct x86emu *emu, uint32_t w)
sys/dev/x86emu/x86emu.c
8381
store_long(emu, emu->x86.R_SS, emu->x86.R_SP, w);
sys/kern/kern_lock.c
296
struct mtx_waiter *w;
sys/kern/kern_lock.c
299
TAILQ_FOREACH(w, &p->waiters, entry) {
sys/kern/kern_lock.c
301
w->mtx, w->wait);
sys/kern/kern_lock.c
391
struct mtx_waiter w;
sys/kern/kern_lock.c
441
w.mtx = mtx;
sys/kern/kern_lock.c
443
TAILQ_INSERT_TAIL(&p->waiters, &w, entry);
sys/kern/kern_lock.c
449
w.wait = 1;
sys/kern/kern_lock.c
454
while (w.wait) {
sys/kern/kern_lock.c
475
TAILQ_REMOVE(&p->waiters, &w, entry);
sys/kern/kern_lock.c
512
struct mtx_waiter *w;
sys/kern/kern_lock.c
523
TAILQ_FOREACH(w, &p->waiters, entry) {
sys/kern/kern_lock.c
524
if (w->mtx == mtx) {
sys/kern/kern_lock.c
525
w->wait = 0;
sys/kern/kern_task.c
349
task_add(struct taskq *tq, struct task *w)
sys/kern/kern_task.c
353
if (ISSET(w->t_flags, TASK_ONQUEUE))
sys/kern/kern_task.c
357
if (!ISSET(w->t_flags, TASK_ONQUEUE)) {
sys/kern/kern_task.c
359
SET(w->t_flags, TASK_ONQUEUE);
sys/kern/kern_task.c
360
TAILQ_INSERT_TAIL(&tq->tq_worklist, w, t_entry);
sys/kern/kern_task.c
363
w->t_process = curproc->p_p;
sys/kern/kern_task.c
375
task_del(struct taskq *tq, struct task *w)
sys/kern/kern_task.c
379
if (!ISSET(w->t_flags, TASK_ONQUEUE))
sys/kern/kern_task.c
383
if (ISSET(w->t_flags, TASK_ONQUEUE)) {
sys/kern/kern_task.c
385
CLR(w->t_flags, TASK_ONQUEUE);
sys/kern/kern_task.c
386
TAILQ_REMOVE(&tq->tq_worklist, w, t_entry);
sys/kern/subr_witness.c
1001
if (!isitmydescendant(w, w1))
sys/kern/subr_witness.c
1011
if (w_rmatrix[w1->w_index][w->w_index] & WITNESS_REVERSAL)
sys/kern/subr_witness.c
1015
w_rmatrix[w1->w_index][w->w_index] |= WITNESS_REVERSAL;
sys/kern/subr_witness.c
1016
w_rmatrix[w->w_index][w1->w_index] |= WITNESS_REVERSAL;
sys/kern/subr_witness.c
1017
w->w_reversed = w1->w_reversed = 1;
sys/kern/subr_witness.c
1053
if (lock2->li_lock->lo_witness == w)
sys/kern/subr_witness.c
1067
lock, lock->lo_name, w->w_type->lt_name);
sys/kern/subr_witness.c
1077
lock->lo_name, w->w_type->lt_name);
sys/kern/subr_witness.c
1080
witness_print_cycle(printf, w1, w);
sys/kern/subr_witness.c
1095
itismychild(plock->li_lock->lo_witness, w);
sys/kern/subr_witness.c
1107
struct witness *w;
sys/kern/subr_witness.c
1114
w = lock->lo_witness;
sys/kern/subr_witness.c
1115
if (w == NULL)
sys/kern/subr_witness.c
1116
w = lock->lo_witness =
sys/kern/subr_witness.c
1139
w->w_acquired = 1;
sys/kern/subr_witness.c
1494
struct witness *w;
sys/kern/subr_witness.c
1512
w = witness_hash_get(type, subtype);
sys/kern/subr_witness.c
1513
if (w)
sys/kern/subr_witness.c
1515
if ((w = witness_get()) == NULL)
sys/kern/subr_witness.c
1517
w->w_type = type;
sys/kern/subr_witness.c
1518
w->w_subtype = subtype;
sys/kern/subr_witness.c
1519
w->w_class = lock_class;
sys/kern/subr_witness.c
1520
SLIST_INSERT_HEAD(&w_all, w, w_list);
sys/kern/subr_witness.c
1522
SLIST_INSERT_HEAD(&w_spin, w, w_typelist);
sys/kern/subr_witness.c
1525
SLIST_INSERT_HEAD(&w_sleep, w, w_typelist);
sys/kern/subr_witness.c
1530
witness_hash_put(w);
sys/kern/subr_witness.c
1533
return (w);
sys/kern/subr_witness.c
1536
if (lock_class != w->w_class)
sys/kern/subr_witness.c
1538
type->lt_name, lock_class->lc_name, w->w_class->lc_name);
sys/kern/subr_witness.c
1539
return (w);
sys/kern/subr_witness.c
1736
struct witness *w;
sys/kern/subr_witness.c
1752
w = SLIST_FIRST(&w_free);
sys/kern/subr_witness.c
1755
index = w->w_index;
sys/kern/subr_witness.c
1758
memset(w, 0, sizeof(*w));
sys/kern/subr_witness.c
1759
w->w_index = index;
sys/kern/subr_witness.c
1762
return (w);
sys/kern/subr_witness.c
1766
witness_free(struct witness *w)
sys/kern/subr_witness.c
1768
SLIST_INSERT_HEAD(&w_free, w, w_list);
sys/kern/subr_witness.c
1901
witness_search(struct witness *w, struct witness *target,
sys/kern/subr_witness.c
1908
return (w == target);
sys/kern/subr_witness.c
1913
if (w_rmatrix[w->w_index][i] & WITNESS_PARENT) {
sys/kern/subr_witness.c
1960
struct witness *w;
sys/kern/subr_witness.c
1979
for (w = child; depth > 0; depth--) {
sys/kern/subr_witness.c
1980
witness_print_cycle_edge(prnt, w, path[depth - 1], ++step,
sys/kern/subr_witness.c
1982
w = path[depth - 1];
sys/kern/subr_witness.c
2327
struct witness *w;
sys/kern/subr_witness.c
2341
SLIST_FOREACH(w, &w_all, w_list)
sys/kern/subr_witness.c
2342
w->w_displayed = 0;
sys/kern/subr_witness.c
2343
SLIST_FOREACH(w, &w_all, w_list)
sys/kern/subr_witness.c
2344
db_witness_add_fullgraph(w);
sys/kern/subr_witness.c
2349
db_witness_add_fullgraph(struct witness *w)
sys/kern/subr_witness.c
2353
if (w->w_displayed != 0 || w->w_acquired == 0)
sys/kern/subr_witness.c
2355
w->w_displayed = 1;
sys/kern/subr_witness.c
2357
WITNESS_INDEX_ASSERT(w->w_index);
sys/kern/subr_witness.c
2359
if (w_rmatrix[w->w_index][i] & WITNESS_PARENT) {
sys/kern/subr_witness.c
2360
db_printf("\"%s\",\"%s\"\n", w->w_type->lt_name,
sys/kern/subr_witness.c
2428
struct witness *w;
sys/kern/subr_witness.c
2436
SLIST_FOREACH(w, &w_hash.wh_array[hash], w_hash_next) {
sys/kern/subr_witness.c
2437
if (w->w_type == type && w->w_subtype == subtype)
sys/kern/subr_witness.c
2442
return (w);
sys/kern/subr_witness.c
2446
witness_hash_put(struct witness *w)
sys/kern/subr_witness.c
2450
KASSERT(w != NULL);
sys/kern/subr_witness.c
2451
KASSERT(w->w_type != NULL);
sys/kern/subr_witness.c
2454
KASSERTMSG(witness_hash_get(w->w_type, w->w_subtype) == NULL,
sys/kern/subr_witness.c
2456
KASSERTMSG(SLIST_NEXT(w, w_hash_next) == NULL,
sys/kern/subr_witness.c
2459
hash = (uint32_t)((uintptr_t)w->w_type ^ (uintptr_t)w->w_subtype) %
sys/kern/subr_witness.c
2461
SLIST_INSERT_HEAD(&w_hash.wh_array[hash], w, w_hash_next);
sys/kern/subr_witness.c
356
static void witness_hash_put(struct witness *w);
sys/kern/subr_witness.c
379
static int witness_search(struct witness *w, struct witness *target,
sys/kern/subr_witness.c
487
struct witness *w;
sys/kern/subr_witness.c
506
w = &w_data[i];
sys/kern/subr_witness.c
507
memset(w, 0, sizeof(*w));
sys/kern/subr_witness.c
509
witness_free(w);
sys/kern/subr_witness.c
616
struct witness *w;
sys/kern/subr_witness.c
621
SLIST_FOREACH(w, &w_all, w_list)
sys/kern/subr_witness.c
622
w->w_ddb_level = -1;
sys/kern/subr_witness.c
627
SLIST_FOREACH(w, &w_all, w_list) {
sys/kern/subr_witness.c
629
if (w->w_num_ancestors > 0)
sys/kern/subr_witness.c
631
witness_ddb_level_descendants(w, 0);
sys/kern/subr_witness.c
636
witness_ddb_level_descendants(struct witness *w, int l)
sys/kern/subr_witness.c
640
if (w->w_ddb_level >= l)
sys/kern/subr_witness.c
643
w->w_ddb_level = l;
sys/kern/subr_witness.c
647
if (w_rmatrix[w->w_index][i] & WITNESS_PARENT)
sys/kern/subr_witness.c
654
struct witness *w, int indent)
sys/kern/subr_witness.c
661
w->w_subtype, w->w_type->lt_name,
sys/kern/subr_witness.c
662
w->w_class->lc_name, w->w_ddb_level);
sys/kern/subr_witness.c
663
if (w->w_displayed) {
sys/kern/subr_witness.c
667
w->w_displayed = 1;
sys/kern/subr_witness.c
668
if (!w->w_acquired)
sys/kern/subr_witness.c
673
WITNESS_INDEX_ASSERT(w->w_index);
sys/kern/subr_witness.c
675
if (w_rmatrix[w->w_index][i] & WITNESS_PARENT)
sys/kern/subr_witness.c
685
struct witness *w;
sys/kern/subr_witness.c
687
SLIST_FOREACH(w, list, w_typelist) {
sys/kern/subr_witness.c
688
if (!w->w_acquired || w->w_ddb_level > 0)
sys/kern/subr_witness.c
692
witness_ddb_display_descendants(prnt, w, 0);
sys/kern/subr_witness.c
699
struct witness *w;
sys/kern/subr_witness.c
705
SLIST_FOREACH(w, &w_all, w_list)
sys/kern/subr_witness.c
706
w->w_displayed = 0;
sys/kern/subr_witness.c
725
SLIST_FOREACH(w, &w_all, w_list) {
sys/kern/subr_witness.c
726
if (w->w_acquired)
sys/kern/subr_witness.c
729
w->w_subtype, w->w_type->lt_name,
sys/kern/subr_witness.c
730
w->w_class->lc_name, w->w_ddb_level);
sys/kern/subr_witness.c
773
struct witness *w, *w1;
sys/kern/subr_witness.c
791
w = lock->lo_witness;
sys/kern/subr_witness.c
794
if (w == NULL)
sys/kern/subr_witness.c
795
w = lock->lo_witness =
sys/kern/subr_witness.c
899
if (witness_lock_order_check(w1, w))
sys/kern/subr_witness.c
903
if (witness_lock_order_check(w1, w))
sys/kern/subr_witness.c
906
witness_lock_order_add(w1, w);
sys/kern/subr_witness.c
913
if (w1 == w) {
sys/kern/subr_witness.c
914
i = w->w_index;
sys/kern/subr_witness.c
919
w->w_reversed = 1;
sys/kern/subr_witness.c
922
"same type: \"%s\"\n", w->w_type->lt_name);
sys/kern/subr_witness.c
937
if (isitmychild(w1, w))
sys/kern/vfs_subr.c
1537
vfs_free_netcred(struct radix_node *rn, void *w, u_int id)
sys/kern/vfs_subr.c
1539
struct radix_node_head *rnh = (struct radix_node_head *)w;
sys/lib/libsa/sha1.c
40
#define R0(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk0(i)+0x5A827999+rol(v,5);w=rol(w,30);
sys/lib/libsa/sha1.c
41
#define R1(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk(i)+0x5A827999+rol(v,5);w=rol(w,30);
sys/lib/libsa/sha1.c
42
#define R2(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0x6ED9EBA1+rol(v,5);w=rol(w,30);
sys/lib/libsa/sha1.c
43
#define R3(v,w,x,y,z,i) z+=(((w|x)&y)|(w&x))+blk(i)+0x8F1BBCDC+rol(v,5);w=rol(w,30);
sys/lib/libsa/sha1.c
44
#define R4(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0xCA62C1D6+rol(v,5);w=rol(w,30);
sys/lib/libsa/sha2.c
138
#define ADDINC128(w,n) do { \
sys/lib/libsa/sha2.c
139
(w)[0] += (u_int64_t)(n); \
sys/lib/libsa/sha2.c
140
if ((w)[0] < (n)) { \
sys/lib/libsa/sha2.c
141
(w)[1]++; \
sys/lib/libz/crc32.c
459
local void braid(z_crc_t ltl[][256], z_word_t big[][256], int n, int w) {
sys/lib/libz/crc32.c
462
for (k = 0; k < w; k++) {
sys/lib/libz/crc32.c
463
p = (z_crc_t)x2nmodp((n * w + 3 - k) << 3, 0);
sys/lib/libz/crc32.c
465
big[w - 1 - k][0] = 0;
sys/lib/libz/crc32.c
468
big[w - 1 - k][i] = byte_swap(q);
sys/lib/libz/trees.c
142
#define put_short(s, w) { \
sys/lib/libz/trees.c
143
put_byte(s, (uch)((w) & 0xff)); \
sys/lib/libz/trees.c
144
put_byte(s, (uch)((ush)(w) >> 8)); \
sys/net/if_veb.c
2018
size_t w;
sys/net/if_veb.c
2020
for (w = 0; w < VEB_VID_WORDS; w++) {
sys/net/if_veb.c
2021
uint32_t e = map[w];
sys/net/if_veb.c
2022
size_t t = w * sizeof(e);
sys/net/if_veb.c
2068
size_t w;
sys/net/if_veb.c
2075
for (w = 0; w < VEB_VID_WORDS; w++) {
sys/net/if_veb.c
2077
size_t t = w * sizeof(e);
sys/net/if_veb.c
2083
map[w] = e;
sys/net/if_veb.c
2135
size_t w;
sys/net/if_veb.c
2140
for (w = 0; w < VEB_VID_WORDS; w++)
sys/net/if_veb.c
2141
nmap[w] |= omap[w];
sys/net/if_veb.c
2147
size_t w;
sys/net/if_veb.c
2151
for (w = 0; w < VEB_VID_WORDS; w++)
sys/net/if_veb.c
2152
nmap[w] = 0;
sys/net/if_veb.c
2156
for (w = 0; w < VEB_VID_WORDS; w++) {
sys/net/if_veb.c
2157
uint32_t e = nmap[w];
sys/net/if_veb.c
2158
nmap[w] = omap[w] & ~e;
sys/net/pf_if.c
870
struct pfi_kif *p, *w;
sys/net/pf_if.c
889
RB_FOREACH_SAFE(p, pfi_ifhead, &pfi_ifs, w) {
sys/net/pf_ioctl.c
324
struct pf_trans *w, *s;
sys/net/pf_ioctl.c
330
LIST_FOREACH_SAFE(w, &pf_ioctl_trans, pft_entry, s) {
sys/net/pf_ioctl.c
331
if (w->pft_unit == unit) {
sys/net/pf_ioctl.c
332
LIST_REMOVE(w, pft_entry);
sys/net/pf_ioctl.c
333
LIST_INSERT_HEAD(&tmp_list, w, pft_entry);
sys/net/pf_ioctl.c
338
while ((w = LIST_FIRST(&tmp_list)) != NULL) {
sys/net/pf_ioctl.c
339
LIST_REMOVE(w, pft_entry);
sys/net/pf_ioctl.c
340
pf_free_trans(w);
sys/net/pf_table.c
1392
struct pfr_walktree *w = arg;
sys/net/pf_table.c
1394
int flags = w->pfrw_flags;
sys/net/pf_table.c
1396
switch (w->pfrw_op) {
sys/net/pf_table.c
1405
SLIST_INSERT_HEAD(w->pfrw_workq, ke, pfrke_workq);
sys/net/pf_table.c
1406
w->pfrw_cnt++;
sys/net/pf_table.c
1409
if (w->pfrw_free-- > 0) {
sys/net/pf_table.c
1413
if (copyout(&ad, w->pfrw_addr, sizeof(ad)))
sys/net/pf_table.c
1415
w->pfrw_addr++;
sys/net/pf_table.c
1419
if (w->pfrw_free-- > 0) {
sys/net/pf_table.c
1437
if (COPYOUT(&as, w->pfrw_astats, sizeof(as), flags))
sys/net/pf_table.c
1439
w->pfrw_astats++;
sys/net/pf_table.c
1445
if (!w->pfrw_cnt--) {
sys/net/pf_table.c
1446
w->pfrw_kentry = ke;
sys/net/pf_table.c
1453
if (w->pfrw_dyn->pfid_acnt4++ > 0)
sys/net/pf_table.c
1456
w->pfrw_dyn->pfid_addr4 = *SUNION2PF(
sys/net/pf_table.c
1458
w->pfrw_dyn->pfid_mask4 = *SUNION2PF(
sys/net/pf_table.c
1463
if (w->pfrw_dyn->pfid_acnt6++ > 0)
sys/net/pf_table.c
1466
w->pfrw_dyn->pfid_addr6 = *SUNION2PF(
sys/net/pf_table.c
1468
w->pfrw_dyn->pfid_mask6 = *SUNION2PF(
sys/net/pf_table.c
1517
struct pfr_ktable *p, *q, *r, *n, *w, key;
sys/net/pf_table.c
1579
SLIST_FOREACH_SAFE(n, &auxq, pfrkt_workq, w) {
sys/net/pf_table.c
1605
SLIST_FOREACH_SAFE(p, &addq, pfrkt_workq, w) {
sys/net/pf_table.c
2789
struct pfr_walktree w;
sys/net/pf_table.c
2791
bzero(&w, sizeof(w));
sys/net/pf_table.c
2792
w.pfrw_op = PFRW_POOL_GET;
sys/net/pf_table.c
2793
w.pfrw_cnt = idx;
sys/net/pf_table.c
2797
rn_walktree(kt->pfrkt_ip4, pfr_walktree, &w);
sys/net/pf_table.c
2798
return (w.pfrw_kentry);
sys/net/pf_table.c
2801
rn_walktree(kt->pfrkt_ip6, pfr_walktree, &w);
sys/net/pf_table.c
2802
return (w.pfrw_kentry);
sys/net/pf_table.c
2857
struct pfr_walktree w;
sys/net/pf_table.c
2859
bzero(&w, sizeof(w));
sys/net/pf_table.c
2860
w.pfrw_op = PFRW_DYNADDR_UPDATE;
sys/net/pf_table.c
2861
w.pfrw_dyn = dyn;
sys/net/pf_table.c
2867
rn_walktree(kt->pfrkt_ip4, pfr_walktree, &w);
sys/net/pf_table.c
2868
rn_walktree(kt->pfrkt_ip6, pfr_walktree, &w);
sys/net/pf_table.c
2871
rn_walktree(kt->pfrkt_ip4, pfr_walktree, &w);
sys/net/pf_table.c
2875
rn_walktree(kt->pfrkt_ip6, pfr_walktree, &w);
sys/net/pf_table.c
680
struct pfr_walktree w;
sys/net/pf_table.c
694
bzero(&w, sizeof(w));
sys/net/pf_table.c
695
w.pfrw_op = PFRW_GET_ADDRS;
sys/net/pf_table.c
696
w.pfrw_addr = addr;
sys/net/pf_table.c
697
w.pfrw_free = kt->pfrkt_cnt;
sys/net/pf_table.c
698
w.pfrw_flags = flags;
sys/net/pf_table.c
699
rv = rn_walktree(kt->pfrkt_ip4, pfr_walktree, &w);
sys/net/pf_table.c
701
rv = rn_walktree(kt->pfrkt_ip6, pfr_walktree, &w);
sys/net/pf_table.c
705
if (w.pfrw_free) {
sys/net/pf_table.c
707
"pfr_get_addrs: corruption detected (%d)", w.pfrw_free);
sys/net/pf_table.c
719
struct pfr_walktree w;
sys/net/pf_table.c
734
bzero(&w, sizeof(w));
sys/net/pf_table.c
735
w.pfrw_op = PFRW_GET_ASTATS;
sys/net/pf_table.c
736
w.pfrw_astats = addr;
sys/net/pf_table.c
737
w.pfrw_free = kt->pfrkt_cnt;
sys/net/pf_table.c
738
w.pfrw_flags = flags;
sys/net/pf_table.c
739
rv = rn_walktree(kt->pfrkt_ip4, pfr_walktree, &w);
sys/net/pf_table.c
741
rv = rn_walktree(kt->pfrkt_ip6, pfr_walktree, &w);
sys/net/pf_table.c
749
if (w.pfrw_free) {
sys/net/pf_table.c
751
"pfr_get_astats: corruption detected (%d)", w.pfrw_free);
sys/net/pf_table.c
844
struct pfr_walktree w;
sys/net/pf_table.c
847
bzero(&w, sizeof(w));
sys/net/pf_table.c
848
w.pfrw_op = sweep ? PFRW_SWEEP : PFRW_ENQUEUE;
sys/net/pf_table.c
849
w.pfrw_workq = workq;
sys/net/pf_table.c
851
if (rn_walktree(kt->pfrkt_ip4, pfr_walktree, &w))
sys/net/pf_table.c
855
if (rn_walktree(kt->pfrkt_ip6, pfr_walktree, &w))
sys/net/pf_table.c
859
*naddr = w.pfrw_cnt;
sys/net/pf_table.c
865
struct pfr_walktree w;
sys/net/pf_table.c
867
bzero(&w, sizeof(w));
sys/net/pf_table.c
868
w.pfrw_op = PFRW_MARK;
sys/net/pf_table.c
869
if (rn_walktree(kt->pfrkt_ip4, pfr_walktree, &w))
sys/net/pf_table.c
872
if (rn_walktree(kt->pfrkt_ip6, pfr_walktree, &w))
sys/net/pfkeyv2.c
2464
struct pfkeyv2_sysctl_walk *w = (struct pfkeyv2_sysctl_walk *)arg;
sys/net/pfkeyv2.c
2469
if (w->w_satype != SADB_SATYPE_UNSPEC &&
sys/net/pfkeyv2.c
2470
w->w_satype != tdb->tdb_satype)
sys/net/pfkeyv2.c
2473
if (w->w_where) {
sys/net/pfkeyv2.c
2481
if (w->w_len < sizeof(msg) + usedlen) {
sys/net/pfkeyv2.c
2491
if ((error = copyout(&msg, w->w_where, sizeof(msg))) != 0)
sys/net/pfkeyv2.c
2493
w->w_where += sizeof(msg);
sys/net/pfkeyv2.c
2494
w->w_len -= sizeof(msg);
sys/net/pfkeyv2.c
2500
if ((error = copyout(buffer, w->w_where, usedlen)) != 0)
sys/net/pfkeyv2.c
2502
w->w_where += usedlen;
sys/net/pfkeyv2.c
2503
w->w_len -= usedlen;
sys/net/pfkeyv2.c
2507
w->w_len += buflen;
sys/net/pfkeyv2.c
2508
w->w_len += sizeof(struct sadb_msg);
sys/net/pfkeyv2.c
2630
struct pfkeyv2_sysctl_walk *w = (struct pfkeyv2_sysctl_walk *)arg;
sys/net/pfkeyv2.c
2634
if (w->w_where) {
sys/net/pfkeyv2.c
2642
if (w->w_len < buflen) {
sys/net/pfkeyv2.c
2659
if ((error = copyout(&msg, w->w_where, sizeof(msg))) != 0)
sys/net/pfkeyv2.c
2661
w->w_where += sizeof(msg);
sys/net/pfkeyv2.c
2662
w->w_len -= sizeof(msg);
sys/net/pfkeyv2.c
2668
if ((error = copyout(buffer, w->w_where, buflen)) != 0)
sys/net/pfkeyv2.c
2670
w->w_where += buflen;
sys/net/pfkeyv2.c
2671
w->w_len -= buflen;
sys/net/pfkeyv2.c
2676
w->w_len += buflen;
sys/net/pfkeyv2.c
2677
w->w_len += sizeof(struct sadb_msg);
sys/net/pfkeyv2.c
2702
struct pfkeyv2_sysctl_walk w;
sys/net/pfkeyv2.c
2711
w.w_op = name[0];
sys/net/pfkeyv2.c
2713
w.w_satype = name[1];
sys/net/pfkeyv2.c
2715
w.w_satype = SADB_SATYPE_UNSPEC;
sys/net/pfkeyv2.c
2716
w.w_where = oldp;
sys/net/pfkeyv2.c
2717
w.w_len = oldp ? *oldlenp : 0;
sys/net/pfkeyv2.c
2727
switch(w.w_op) {
sys/net/pfkeyv2.c
2732
error = tdb_walk(rdomain, pfkeyv2_sysctl_walker, &w);
sys/net/pfkeyv2.c
2735
*oldlenp = w.w_where - oldp;
sys/net/pfkeyv2.c
2737
*oldlenp = w.w_len;
sys/net/pfkeyv2.c
2743
pfkeyv2_sysctl_policydumper, &w);
sys/net/pfkeyv2.c
2746
*oldlenp = w.w_where - oldp;
sys/net/pfkeyv2.c
2748
*oldlenp = w.w_len;
sys/net/ppp-comp.h
161
#define DEFLATE_MAKE_OPT(w) ((((w) - DEFLATE_MIN_SIZE) << 4) \
sys/net/radix.c
1055
u_int), void *w)
sys/net/radix.c
1082
(error = (*f)(rn, w, h->rnh_rtableid)))
sys/net/route.c
2061
db_show_rtentry(struct rtentry *rt, void *w, unsigned int id)
sys/net/rtsock.c
1642
struct walkarg *w)
sys/net/rtsock.c
1681
if (cp == 0 && w != NULL && !second_time) {
sys/net/rtsock.c
1682
w->w_needed += len;
sys/net/rtsock.c
1683
if (w->w_needed <= w->w_given && w->w_where) {
sys/net/rtsock.c
1684
if (w->w_tmemsize < len) {
sys/net/rtsock.c
1685
free(w->w_tmem, M_RTABLE, w->w_tmemsize);
sys/net/rtsock.c
1686
w->w_tmem = malloc(len, M_RTABLE,
sys/net/rtsock.c
1688
if (w->w_tmem)
sys/net/rtsock.c
1689
w->w_tmemsize = len;
sys/net/rtsock.c
1691
if (w->w_tmem) {
sys/net/rtsock.c
1692
cp = w->w_tmem;
sys/net/rtsock.c
1696
w->w_where = 0;
sys/net/rtsock.c
1699
if (cp && w) /* clear the message header */
sys/net/rtsock.c
1943
struct walkarg *w = v;
sys/net/rtsock.c
1956
if (w->w_op == NET_RT_FLAGS && !(rt->rt_flags & w->w_arg))
sys/net/rtsock.c
1958
if (w->w_op == NET_RT_DUMP && w->w_arg) {
sys/net/rtsock.c
1959
u_int8_t prio = w->w_arg & RTP_MASK;
sys/net/rtsock.c
1960
if (w->w_arg < 0) {
sys/net/rtsock.c
1961
prio = (-w->w_arg) & RTP_MASK;
sys/net/rtsock.c
2006
size = rtm_msg2(RTM_GET, RTM_VERSION, &info, NULL, w);
sys/net/rtsock.c
2007
if (w->w_where && w->w_tmem && w->w_needed <= w->w_given) {
sys/net/rtsock.c
2008
struct rt_msghdr *rtm = (struct rt_msghdr *)w->w_tmem;
sys/net/rtsock.c
2022
if ((error = copyout(rtm, w->w_where, size)) != 0)
sys/net/rtsock.c
2023
w->w_where = NULL;
sys/net/rtsock.c
2025
w->w_where += size;
sys/net/rtsock.c
2052
sysctl_iflist(int af, struct walkarg *w)
sys/net/rtsock.c
2061
if (w->w_arg && w->w_arg != ifp->if_index)
sys/net/rtsock.c
2065
len = rtm_msg2(RTM_IFINFO, RTM_VERSION, &info, 0, w);
sys/net/rtsock.c
2066
if (w->w_where && w->w_tmem && w->w_needed <= w->w_given) {
sys/net/rtsock.c
2069
ifm = (struct if_msghdr *)w->w_tmem;
sys/net/rtsock.c
2075
error = copyout(ifm, w->w_where, len);
sys/net/rtsock.c
2078
w->w_where += len;
sys/net/rtsock.c
2088
len = rtm_msg2(RTM_NEWADDR, RTM_VERSION, &info, 0, w);
sys/net/rtsock.c
2089
if (w->w_where && w->w_tmem &&
sys/net/rtsock.c
2090
w->w_needed <= w->w_given) {
sys/net/rtsock.c
2093
ifam = (struct ifa_msghdr *)w->w_tmem;
sys/net/rtsock.c
2098
error = copyout(w->w_tmem, w->w_where, len);
sys/net/rtsock.c
2101
w->w_where += len;
sys/net/rtsock.c
2111
sysctl_ifnames(struct walkarg *w)
sys/net/rtsock.c
2122
if (w->w_arg && w->w_arg != ifp->if_index)
sys/net/rtsock.c
2130
w->w_needed += sizeof(ifn);
sys/net/rtsock.c
2131
if (w->w_where && w->w_needed <= w->w_given) {
sys/net/rtsock.c
2137
error = copyout(&ifn, w->w_where, sizeof(ifn));
sys/net/rtsock.c
2140
w->w_where += sizeof(ifn);
sys/net/rtsock.c
2154
sysctl_source(int af, u_int tableid, struct walkarg *w)
sys/net/rtsock.c
2187
w->w_needed += size;
sys/net/rtsock.c
2188
if (w->w_where && w->w_needed <= w->w_given) {
sys/net/rtsock.c
2189
if ((error = copyout(&buf, w->w_where, size)))
sys/net/rtsock.c
2191
w->w_where += size;
sys/net/rtsock.c
2203
struct walkarg w;
sys/net/rtsock.c
2211
bzero(&w, sizeof(w));
sys/net/rtsock.c
2212
w.w_where = where;
sys/net/rtsock.c
2213
w.w_given = *given;
sys/net/rtsock.c
2214
w.w_op = name[1];
sys/net/rtsock.c
2215
w.w_arg = name[2];
sys/net/rtsock.c
2224
switch (w.w_op) {
sys/net/rtsock.c
2232
error = rtable_read(tableid, i, sysctl_dumpentry, &w);
sys/net/rtsock.c
2244
tableid = w.w_arg;
sys/net/rtsock.c
2258
tableid = w.w_arg;
sys/net/rtsock.c
2265
error = sysctl_source(i, tableid, &w);
sys/net/rtsock.c
2274
error = sysctl_iflist(af, &w);
sys/net/rtsock.c
2279
error = sysctl_ifnames(&w);
sys/net/rtsock.c
2282
free(w.w_tmem, M_RTABLE, w.w_tmemsize);
sys/net/rtsock.c
2284
*given = w.w_where - (caddr_t)where;
sys/net/rtsock.c
2285
if (w.w_needed > w.w_given)
sys/net/rtsock.c
2287
} else if (w.w_needed == 0) {
sys/net/rtsock.c
2290
*given = roundup(w.w_needed + MAX(w.w_needed / 10, 1024),
sys/net80211/ieee80211_priv.h
37
#define IEEE80211_AID_SET(b, w) \
sys/net80211/ieee80211_priv.h
38
((w)[IEEE80211_AID(b) / 32] |= (1 << (IEEE80211_AID(b) % 32)))
sys/net80211/ieee80211_priv.h
39
#define IEEE80211_AID_CLR(b, w) \
sys/net80211/ieee80211_priv.h
40
((w)[IEEE80211_AID(b) / 32] &= ~(1 << (IEEE80211_AID(b) % 32)))
sys/net80211/ieee80211_priv.h
41
#define IEEE80211_AID_ISSET(b, w) \
sys/net80211/ieee80211_priv.h
42
((w)[IEEE80211_AID(b) / 32] & (1 << (IEEE80211_AID(b) % 32)))
sys/netinet/in4_cksum.c
119
w = u.w;
sys/netinet/in4_cksum.c
121
sum += w[4]; sum += w[5]; sum += w[6];
sys/netinet/in4_cksum.c
122
sum += w[7]; sum += w[8]; sum += w[9];
sys/netinet/in4_cksum.c
136
w = (u_int16_t *)(mtod(m, caddr_t) + off);
sys/netinet/in4_cksum.c
146
s_util.c[1] = *(u_int8_t *)w;
sys/netinet/in4_cksum.c
148
w = (u_int16_t *)((u_int8_t *)w + 1);
sys/netinet/in4_cksum.c
160
if ((1 & (long) w) && (mlen > 0)) {
sys/netinet/in4_cksum.c
163
s_util.c[0] = *(u_int8_t *)w;
sys/netinet/in4_cksum.c
164
w = (u_int16_t *)((int8_t *)w + 1);
sys/netinet/in4_cksum.c
173
sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3];
sys/netinet/in4_cksum.c
174
sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7];
sys/netinet/in4_cksum.c
175
sum += w[8]; sum += w[9]; sum += w[10]; sum += w[11];
sys/netinet/in4_cksum.c
176
sum += w[12]; sum += w[13]; sum += w[14]; sum += w[15];
sys/netinet/in4_cksum.c
177
w += 16;
sys/netinet/in4_cksum.c
181
sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3];
sys/netinet/in4_cksum.c
182
w += 4;
sys/netinet/in4_cksum.c
189
sum += *w++;
sys/netinet/in4_cksum.c
196
s_util.c[1] = *(u_int8_t *)w;
sys/netinet/in4_cksum.c
202
s_util.c[0] = *(u_int8_t *)w;
sys/netinet/in4_cksum.c
91
u_int16_t *w;
sys/netinet/in4_cksum.c
97
u_int16_t w[10];
sys/netinet/in_cksum.c
104
sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3];
sys/netinet/in_cksum.c
105
sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7];
sys/netinet/in_cksum.c
106
sum += w[8]; sum += w[9]; sum += w[10]; sum += w[11];
sys/netinet/in_cksum.c
107
sum += w[12]; sum += w[13]; sum += w[14]; sum += w[15];
sys/netinet/in_cksum.c
108
w += 16;
sys/netinet/in_cksum.c
112
sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3];
sys/netinet/in_cksum.c
113
w += 4;
sys/netinet/in_cksum.c
120
sum += *w++;
sys/netinet/in_cksum.c
127
s_util.c[1] = *(uint8_t *)w;
sys/netinet/in_cksum.c
133
s_util.c[0] = *(uint8_t *)w;
sys/netinet/in_cksum.c
52
uint16_t *w;
sys/netinet/in_cksum.c
68
w = mtod(m, uint16_t *);
sys/netinet/in_cksum.c
78
s_util.c[1] = *(uint8_t *)w;
sys/netinet/in_cksum.c
80
w = (uint16_t *)((uint8_t *)w + 1);
sys/netinet/in_cksum.c
91
if ((1 & (long) w) && (mlen > 0)) {
sys/netinet/in_cksum.c
94
s_util.c[0] = *(uint8_t *)w;
sys/netinet/in_cksum.c
95
w = (uint16_t *)((uint8_t *)w + 1);
sys/netinet6/in6_cksum.c
128
w = (uint16_t *)&ip6->ip6_src;
sys/netinet6/in6_cksum.c
133
sum += w[0];
sys/netinet6/in6_cksum.c
135
sum += w[1];
sys/netinet6/in6_cksum.c
136
sum += w[2]; sum += w[3]; sum += w[4]; sum += w[5];
sys/netinet6/in6_cksum.c
137
sum += w[6]; sum += w[7];
sys/netinet6/in6_cksum.c
139
sum += w[8];
sys/netinet6/in6_cksum.c
141
sum += w[9];
sys/netinet6/in6_cksum.c
142
sum += w[10]; sum += w[11]; sum += w[12]; sum += w[13];
sys/netinet6/in6_cksum.c
143
sum += w[14]; sum += w[15];
sys/netinet6/in6_cksum.c
164
w = (uint16_t *)(mtod(m, uint8_t *) + off);
sys/netinet6/in6_cksum.c
172
if ((1 & (long) w) && (mlen > 0)) {
sys/netinet6/in6_cksum.c
175
s_util.c[0] = *(uint8_t *)w;
sys/netinet6/in6_cksum.c
176
w = (uint16_t *)((uint8_t *)w + 1);
sys/netinet6/in6_cksum.c
185
sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3];
sys/netinet6/in6_cksum.c
186
sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7];
sys/netinet6/in6_cksum.c
187
sum += w[8]; sum += w[9]; sum += w[10]; sum += w[11];
sys/netinet6/in6_cksum.c
188
sum += w[12]; sum += w[13]; sum += w[14]; sum += w[15];
sys/netinet6/in6_cksum.c
189
w += 16;
sys/netinet6/in6_cksum.c
193
sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3];
sys/netinet6/in6_cksum.c
194
w += 4;
sys/netinet6/in6_cksum.c
201
sum += *w++;
sys/netinet6/in6_cksum.c
208
s_util.c[1] = *(uint8_t *)w;
sys/netinet6/in6_cksum.c
214
s_util.c[0] = *(uint8_t *)w;
sys/netinet6/in6_cksum.c
225
w = mtod(m, uint16_t *);
sys/netinet6/in6_cksum.c
235
s_util.c[1] = *(uint8_t *)w;
sys/netinet6/in6_cksum.c
237
w = (uint16_t *)((uint8_t *)w + 1);
sys/netinet6/in6_cksum.c
248
if ((1 & (long) w) && (mlen > 0)) {
sys/netinet6/in6_cksum.c
251
s_util.c[0] = *(uint8_t *)w;
sys/netinet6/in6_cksum.c
252
w = (uint16_t *)((uint8_t *)w + 1);
sys/netinet6/in6_cksum.c
261
sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3];
sys/netinet6/in6_cksum.c
262
sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7];
sys/netinet6/in6_cksum.c
263
sum += w[8]; sum += w[9]; sum += w[10]; sum += w[11];
sys/netinet6/in6_cksum.c
264
sum += w[12]; sum += w[13]; sum += w[14]; sum += w[15];
sys/netinet6/in6_cksum.c
265
w += 16;
sys/netinet6/in6_cksum.c
269
sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3];
sys/netinet6/in6_cksum.c
270
w += 4;
sys/netinet6/in6_cksum.c
277
sum += *w++;
sys/netinet6/in6_cksum.c
284
s_util.c[1] = *(uint8_t *)w;
sys/netinet6/in6_cksum.c
290
s_util.c[0] = *(uint8_t *)w;
sys/netinet6/in6_cksum.c
90
uint16_t *w;
sys/netinet6/ip6_output.c
2621
const u_int16_t *w;
sys/netinet6/ip6_output.c
2623
w = (const u_int16_t *) src;
sys/netinet6/ip6_output.c
2624
sum += w[0];
sys/netinet6/ip6_output.c
2626
sum += w[1];
sys/netinet6/ip6_output.c
2627
sum += w[2]; sum += w[3]; sum += w[4]; sum += w[5];
sys/netinet6/ip6_output.c
2628
sum += w[6]; sum += w[7];
sys/netinet6/ip6_output.c
2630
w = (const u_int16_t *) dst;
sys/netinet6/ip6_output.c
2631
sum += w[0];
sys/netinet6/ip6_output.c
2633
sum += w[1];
sys/netinet6/ip6_output.c
2634
sum += w[2]; sum += w[3]; sum += w[4]; sum += w[5];
sys/netinet6/ip6_output.c
2635
sum += w[6]; sum += w[7];
sys/sys/videoio.h
4905
struct v4l2_rect w;
usr.bin/awk/lex.c
494
static int binsearch(char *w, const Keyword *kp, int n)
usr.bin/awk/lex.c
502
if ((cond = strcmp(w, kp[mid].word)) < 0)
usr.bin/awk/lex.c
512
int word(char *w)
usr.bin/awk/lex.c
517
n = binsearch(w, keywords, sizeof(keywords)/sizeof(keywords[0]));
usr.bin/awk/lex.c
542
if (c != '(' && infunc && (n=isarg(w)) >= 0) {
usr.bin/awk/lex.c
546
yylval.cp = setsymtab(w, "", 0.0, STR|NUM|DONTFREE, symtab);
usr.bin/compress/zopen.c
131
} w; /* Write parameters */
usr.bin/compress/zopen.c
142
#define zs_fcode u.w.zs_fcode
usr.bin/compress/zopen.c
143
#define zs_ent u.w.zs_ent
usr.bin/compress/zopen.c
144
#define zs_hsize_reg u.w.zs_hsize_reg
usr.bin/compress/zopen.c
145
#define zs_hshift u.w.zs_hshift
usr.bin/cvs/diff_internals.c
752
struct line *ai, *aim, w;
usr.bin/cvs/diff_internals.c
770
w.value = ai[0].value;
usr.bin/cvs/diff_internals.c
772
aim->value = w.value;
usr.bin/cvs/diff_internals.c
773
w.serial = ai[0].serial;
usr.bin/cvs/diff_internals.c
775
aim->serial = w.serial;
usr.bin/diff/diffreg.c
805
struct line *ai, *aim, w;
usr.bin/diff/diffreg.c
823
w.value = ai[0].value;
usr.bin/diff/diffreg.c
825
aim->value = w.value;
usr.bin/diff/diffreg.c
826
w.serial = ai[0].serial;
usr.bin/diff/diffreg.c
828
aim->serial = w.serial;
usr.bin/finger/lprint.c
135
for (w = pn->whead, maxlen = -1; w != NULL; w = w->next)
usr.bin/finger/lprint.c
136
if ((len = strlen(w->tty)) > maxlen)
usr.bin/finger/lprint.c
139
for (w = pn->whead; w != NULL; w = w->next) {
usr.bin/finger/lprint.c
140
switch (w->info) {
usr.bin/finger/lprint.c
142
tp = localtime(&w->loginat);
usr.bin/finger/lprint.c
146
t, tzn, w->tty);
usr.bin/finger/lprint.c
152
delta = gmtime(&w->idletime);
usr.bin/finger/lprint.c
155
(int)(maxlen - strlen(w->tty) + 1), ",");
usr.bin/finger/lprint.c
163
if (*w->host) {
usr.bin/finger/lprint.c
168
if (!w->writable)
usr.bin/finger/lprint.c
172
if (w->loginat == 0) {
usr.bin/finger/lprint.c
176
tp = localtime(&w->loginat);
usr.bin/finger/lprint.c
179
if (now - w->loginat > SIXMONTHS)
usr.bin/finger/lprint.c
182
t, t + 20, tzn, w->tty);
usr.bin/finger/lprint.c
185
t, tzn, w->tty);
usr.bin/finger/lprint.c
188
if (*w->host) {
usr.bin/finger/lprint.c
189
if (LINE_LEN < (cpr + 6 + strlen(w->host)))
usr.bin/finger/lprint.c
191
(void)printf(" from %s", w->host);
usr.bin/finger/lprint.c
71
WHERE *w;
usr.bin/finger/sprint.c
102
p = ctime(&w->loginat);
usr.bin/finger/sprint.c
104
if (now - w->loginat < SECSPERDAY * 6)
usr.bin/finger/sprint.c
108
if (now - w->loginat >= SIXMONTHS)
usr.bin/finger/sprint.c
123
(void)printf("%.*s", MAXHOSTNAME, w->host);
usr.bin/finger/sprint.c
150
stimeprint(WHERE *w)
usr.bin/finger/sprint.c
154
delta = gmtime(&w->idletime);
usr.bin/finger/sprint.c
48
WHERE *w;
usr.bin/finger/sprint.c
80
for (w = pn->whead; w != NULL; w = w->next) {
usr.bin/finger/sprint.c
85
if (!w->loginat) {
usr.bin/finger/sprint.c
89
(void)putchar(w->info == LOGGEDIN && !w->writable ?
usr.bin/finger/sprint.c
91
if (*w->tty)
usr.bin/finger/sprint.c
93
w->tty[0] != 't' || w->tty[1] != 't' ||
usr.bin/finger/sprint.c
94
w->tty[2] != 'y' ? w->tty : w->tty + 3);
usr.bin/finger/sprint.c
97
if (w->info == LOGGEDIN) {
usr.bin/finger/sprint.c
98
stimeprint(w);
usr.bin/finger/util.c
188
WHERE *w;
usr.bin/finger/util.c
205
if ((w = pn->whead) == NULL)
usr.bin/finger/util.c
209
for (; !doit && w != NULL; w = w->next)
usr.bin/finger/util.c
210
if (w->info == LOGGEDIN && w->loginat < ll.ll_time)
usr.bin/finger/util.c
217
for (w = pn->whead; doit && w != NULL; w = w->next)
usr.bin/finger/util.c
218
if (w->info == LOGGEDIN &&
usr.bin/finger/util.c
219
strncmp(w->tty, ll.ll_line, UT_LINESIZE) == 0)
usr.bin/finger/util.c
223
w = walloc(pn);
usr.bin/finger/util.c
224
w->info = LASTLOG;
usr.bin/finger/util.c
225
bcopy(ll.ll_line, w->tty, UT_LINESIZE);
usr.bin/finger/util.c
226
w->tty[UT_LINESIZE] = 0;
usr.bin/finger/util.c
227
bcopy(ll.ll_host, w->host, UT_HOSTSIZE);
usr.bin/finger/util.c
228
w->host[UT_HOSTSIZE] = 0;
usr.bin/finger/util.c
229
w->loginat = ll.ll_time;
usr.bin/finger/util.c
236
WHERE *w = walloc(pn);
usr.bin/finger/util.c
238
w->info = LOGGEDIN;
usr.bin/finger/util.c
239
bcopy(ut->ut_line, w->tty, UT_LINESIZE);
usr.bin/finger/util.c
240
w->tty[UT_LINESIZE] = 0;
usr.bin/finger/util.c
241
bcopy(ut->ut_host, w->host, UT_HOSTSIZE);
usr.bin/finger/util.c
242
w->host[UT_HOSTSIZE] = 0;
usr.bin/finger/util.c
243
w->loginat = (time_t)ut->ut_time;
usr.bin/finger/util.c
244
find_idle_and_ttywrite(w);
usr.bin/finger/util.c
312
WHERE *w;
usr.bin/finger/util.c
314
if ((w = malloc((u_int) sizeof(WHERE))) == NULL)
usr.bin/finger/util.c
317
pn->whead = pn->wtail = w;
usr.bin/finger/util.c
319
pn->wtail->next = w;
usr.bin/finger/util.c
320
pn->wtail = w;
usr.bin/finger/util.c
322
w->next = NULL;
usr.bin/finger/util.c
323
return (w);
usr.bin/finger/util.c
58
find_idle_and_ttywrite(WHERE *w)
usr.bin/finger/util.c
62
(void)snprintf(tbuf, sizeof(tbuf), "%s%s", _PATH_DEV, w->tty);
usr.bin/finger/util.c
65
w->idletime = 0;
usr.bin/finger/util.c
66
w->writable = 0;
usr.bin/finger/util.c
70
w->idletime = now < sb.st_atime ? 0 : now - sb.st_atime;
usr.bin/finger/util.c
73
w->writable = ((sb.st_mode & TALKABLE) == TALKABLE);
usr.bin/ftp/util.c
970
int i, j, w;
usr.bin/ftp/util.c
977
w = strlen(sl->sl_str[i]);
usr.bin/ftp/util.c
978
if (w > width)
usr.bin/ftp/util.c
979
width = w;
usr.bin/ftp/util.c
996
w = strlen(p);
usr.bin/ftp/util.c
997
while (w < width) {
usr.bin/ftp/util.c
998
w = (w + 8) &~ 7;
usr.bin/indent/io.c
290
int w;
usr.bin/indent/io.c
293
if ((w = count_spaces(t, s_code) - max_col) > 0
usr.bin/indent/io.c
295
t -= w + 1;
usr.bin/less/line.c
328
int w = 0;
usr.bin/less/line.c
333
w += ul_s_width;
usr.bin/less/line.c
335
w += bo_s_width;
usr.bin/less/line.c
337
w += bl_s_width;
usr.bin/less/line.c
339
w += so_s_width;
usr.bin/less/line.c
341
return (w);
usr.bin/less/line.c
351
int w = 0;
usr.bin/less/line.c
356
w += ul_e_width;
usr.bin/less/line.c
358
w += bo_e_width;
usr.bin/less/line.c
360
w += bl_e_width;
usr.bin/less/line.c
362
w += so_e_width;
usr.bin/less/line.c
364
return (w);
usr.bin/less/line.c
376
int w;
usr.bin/less/line.c
388
w = wcwidth(prev_ch);
usr.bin/less/line.c
389
if (w <= 0)
usr.bin/less/line.c
390
w = 1;
usr.bin/less/line.c
391
return (-w);
usr.bin/less/line.c
394
w = wcwidth(ch);
usr.bin/less/line.c
403
if (w == -1)
usr.bin/less/line.c
404
w = 0;
usr.bin/less/line.c
414
if (w == 0)
usr.bin/less/line.c
422
w += attr_ewidth(attr[curr-1]);
usr.bin/less/line.c
425
w += attr_swidth(a);
usr.bin/less/line.c
426
return (w);
usr.bin/less/line.c
491
int w;
usr.bin/less/line.c
508
w = -1;
usr.bin/less/line.c
527
w = 0;
usr.bin/less/line.c
530
if (w == -1) {
usr.bin/less/line.c
534
w = pwidth(ch, a, prev_ch);
usr.bin/less/line.c
537
if (ctldisp != OPT_ON && column + w + attr_ewidth(a) > sc_width)
usr.bin/less/line.c
564
column += w;
usr.bin/less/screen.c
177
struct winsize w;
usr.bin/less/screen.c
183
if (ioctl(2, TIOCGWINSZ, &w) == 0) {
usr.bin/less/screen.c
184
if (w.ws_row > 0)
usr.bin/less/screen.c
185
sys_height = w.ws_row;
usr.bin/less/screen.c
186
if (w.ws_col > 0)
usr.bin/less/screen.c
187
sys_width = w.ws_col;
usr.bin/mail/send.c
515
puthead(struct header *hp, FILE *fo, int w)
usr.bin/mail/send.c
524
if (hp->h_to != NULL && w & GTO)
usr.bin/mail/send.c
525
fmt("To:", hp->h_to, fo, w&GCOMMA), gotcha++;
usr.bin/mail/send.c
526
if (hp->h_subject != NULL && w & GSUBJECT)
usr.bin/mail/send.c
528
if (hp->h_cc != NULL && w & GCC)
usr.bin/mail/send.c
529
fmt("Cc:", hp->h_cc, fo, w&GCOMMA), gotcha++;
usr.bin/mail/send.c
530
if (hp->h_bcc != NULL && w & GBCC)
usr.bin/mail/send.c
531
fmt("Bcc:", hp->h_bcc, fo, w&GCOMMA), gotcha++;
usr.bin/mail/send.c
532
if (gotcha && w & GNL)
usr.bin/make/str.c
373
const char *w = word;
usr.bin/make/str.c
378
*len = strlen(w);
usr.bin/make/str.c
379
return w;
usr.bin/make/str.c
384
for (; p != m && *w && *w == *p; w++, p++)
usr.bin/make/str.c
392
*len = strlen(w);
usr.bin/make/str.c
393
return w;
usr.bin/make/str.c
397
m = w;
usr.bin/make/str.c
401
if (strcmp(p, w) == 0) {
usr.bin/make/str.c
402
*len = w - m;
usr.bin/make/str.c
405
} while (*w++ != '\0');
usr.bin/mg/buffer.c
365
int w = ncol / 2;
usr.bin/mg/buffer.c
378
if (addlinef(blp, "%-*s%s", w, " MR Buffer", "Size File") == FALSE ||
usr.bin/mg/buffer.c
379
addlinef(blp, "%-*s%s", w, " -- ------", "---- ----") == FALSE)
usr.bin/mg/buffer.c
400
w - 5, /* four chars already written */
usr.bin/mg/buffer.c
401
w - 5, /* four chars already written */
usr.bin/mg/buffer.c
403
strlen(bp->b_bname) < w - 5 ? ' ' : '$', /* truncated? */
usr.bin/mg/buffer.c
405
w - 7, /* seven chars already written */
usr.bin/mg/region.c
639
int w;
usr.bin/mg/region.c
641
if (((w = send(fd, *text, *len, MSG_NOSIGNAL)) == -1)) {
usr.bin/mg/region.c
650
*len -= w;
usr.bin/mg/region.c
652
*text += w;
usr.bin/openssl/s_cb.c
327
int w;
usr.bin/openssl/s_cb.c
329
w = where & ~SSL_ST_MASK;
usr.bin/openssl/s_cb.c
331
if (w & SSL_ST_CONNECT)
usr.bin/openssl/s_cb.c
333
else if (w & SSL_ST_ACCEPT)
usr.bin/rcs/diff.c
734
struct line *ai, *aim, w;
usr.bin/rcs/diff.c
752
w.value = ai[0].value;
usr.bin/rcs/diff.c
754
aim->value = w.value;
usr.bin/rcs/diff.c
755
w.serial = ai[0].serial;
usr.bin/rcs/diff.c
757
aim->serial = w.serial;
usr.bin/rs/rs.c
154
ep->w = mbsavis(&ep->s, curline);
usr.bin/rs/rs.c
155
if (maxwidth < ep->w)
usr.bin/rs/rs.c
156
maxwidth = ep->w;
usr.bin/rs/rs.c
168
ep->w = 0;
usr.bin/rs/rs.c
170
ep->w = mbsavis(&ep->s, strsep(&p, delim));
usr.bin/rs/rs.c
171
if (maxwidth < ep->w)
usr.bin/rs/rs.c
172
maxwidth = ep->w;
usr.bin/rs/rs.c
180
ep->w = 0;
usr.bin/rs/rs.c
218
n = (flags & ONEOSEPONLY ? 1 : colwidths[col] - ep->w);
usr.bin/rs/rs.c
286
if (ep->w > max)
usr.bin/rs/rs.c
287
max = ep->w;
usr.bin/rs/rs.c
290
if (ep[j].w > max)
usr.bin/rs/rs.c
291
max = ep[j].w;
usr.bin/rs/rs.c
49
int w; /* Display width. */
usr.bin/rsync/copy.c
48
ssize_t r, w;
usr.bin/rsync/copy.c
55
w = write(tofd, buf, r);
usr.bin/rsync/copy.c
56
if (r != w || w == -1)
usr.bin/ssh/bitmap.c
142
BITMAP_WTYPE w;
usr.bin/ssh/bitmap.c
150
w = b->d[b->top];
usr.bin/ssh/bitmap.c
152
while (!(w & ((BITMAP_WTYPE)1 << (BITMAP_BITS - 1)))) {
usr.bin/ssh/bitmap.c
153
w <<= 1;
usr.bin/ssh/chacha.c
39
#define XOR(v,w) ((v) ^ (w))
usr.bin/ssh/chacha.c
40
#define PLUS(v,w) (U32V((v) + (w)))
usr.bin/ssh/sntrup761.c
1716
return crypto_int16_nonzero_mask(weight - w);
usr.bin/ssh/sntrup761.c
1944
for (i = 0; i < w; ++i) L[i] = in[i] & (uint32_t)-2;
usr.bin/ssh/sntrup761.c
1945
for (i = w; i < p; ++i) L[i] = (in[i] & (uint32_t)-3) | 1;
usr.bin/ssh/sntrup761.c
2003
for (i = 0; i < w; ++i) r[i] = ((ev[i] ^ 1) & ~mask) ^ 1;
usr.bin/ssh/sntrup761.c
2004
for (i = w; i < p; ++i) r[i] = ev[i] & ~mask;
usr.bin/ssh/sshpty.c
126
struct winsize w;
usr.bin/ssh/sshpty.c
129
w.ws_row = row;
usr.bin/ssh/sshpty.c
130
w.ws_col = col;
usr.bin/ssh/sshpty.c
131
w.ws_xpixel = xpixel;
usr.bin/ssh/sshpty.c
132
w.ws_ypixel = ypixel;
usr.bin/ssh/sshpty.c
133
(void) ioctl(ptyfd, TIOCSWINSZ, &w);
usr.bin/systat/engine.c
510
int w = fld->width + fld->increment;
usr.bin/systat/engine.c
511
if (w > fld->max_width)
usr.bin/systat/engine.c
512
w = fld->max_width;
usr.bin/systat/engine.c
513
width += fld->width - w;
usr.bin/systat/engine.c
514
fld->width = w;
usr.bin/systat/vmstat.c
113
closekre(WINDOW *w)
usr.bin/systat/vmstat.c
116
if (w == NULL)
usr.bin/systat/vmstat.c
118
wclear(w);
usr.bin/systat/vmstat.c
119
wrefresh(w);
usr.bin/systat/vmstat.c
120
delwin(w);
usr.bin/systat/vmstat.c
319
#define PUTRATE(fld, l, c, w) \
usr.bin/systat/vmstat.c
322
putint((int)((float)s.fld/etime + 0.5), l, c, w); \
usr.bin/systat/vmstat.c
508
putint(int n, int l, int c, int w)
usr.bin/systat/vmstat.c
514
while (w-- > 0)
usr.bin/systat/vmstat.c
518
snprintf(b, sizeof b, "%*d", w, n);
usr.bin/systat/vmstat.c
519
if (strlen(b) > w) {
usr.bin/systat/vmstat.c
520
while (w-- > 0)
usr.bin/systat/vmstat.c
528
putintmk(int n, int l, int c, int w)
usr.bin/systat/vmstat.c
534
while (w-- > 0)
usr.bin/systat/vmstat.c
539
snprintf(b, sizeof b, "%*dG", w - 1, n / 1024 / 1024);
usr.bin/systat/vmstat.c
541
snprintf(b, sizeof b, "%*dM", w - 1, n / 1024);
usr.bin/systat/vmstat.c
543
snprintf(b, sizeof b, "%*dK", w - 1, n);
usr.bin/systat/vmstat.c
544
if (strlen(b) > w) {
usr.bin/systat/vmstat.c
545
while (w-- > 0)
usr.bin/systat/vmstat.c
553
putuint64(u_int64_t n, int l, int c, int w)
usr.bin/systat/vmstat.c
559
while (w-- > 0)
usr.bin/systat/vmstat.c
563
snprintf(b, sizeof b, "%*llu", w, n);
usr.bin/systat/vmstat.c
564
if (strlen(b) > w) {
usr.bin/systat/vmstat.c
565
while (w-- > 0)
usr.bin/systat/vmstat.c
573
putfloat(double f, int l, int c, int w, int d, int nz)
usr.bin/systat/vmstat.c
579
while (--w >= 0)
usr.bin/systat/vmstat.c
583
snprintf(b, sizeof b, "%*.*f", w, d, f);
usr.bin/systat/vmstat.c
584
if (strlen(b) > w) {
usr.bin/systat/vmstat.c
585
while (--w >= 0)
usr.bin/tmux/alerts.c
113
alerts_enabled(struct window *w, int flags)
usr.bin/tmux/alerts.c
116
if (options_get_number(w->options, "monitor-bell"))
usr.bin/tmux/alerts.c
120
if (options_get_number(w->options, "monitor-activity"))
usr.bin/tmux/alerts.c
124
if (options_get_number(w->options, "monitor-silence") != 0)
usr.bin/tmux/alerts.c
133
struct window *w;
usr.bin/tmux/alerts.c
135
RB_FOREACH(w, windows, &windows)
usr.bin/tmux/alerts.c
136
alerts_reset(w);
usr.bin/tmux/alerts.c
140
alerts_reset(struct window *w)
usr.bin/tmux/alerts.c
144
if (!event_initialized(&w->alerts_timer))
usr.bin/tmux/alerts.c
145
evtimer_set(&w->alerts_timer, alerts_timer, w);
usr.bin/tmux/alerts.c
147
w->flags &= ~WINDOW_SILENCE;
usr.bin/tmux/alerts.c
148
event_del(&w->alerts_timer);
usr.bin/tmux/alerts.c
151
tv.tv_sec = options_get_number(w->options, "monitor-silence");
usr.bin/tmux/alerts.c
153
log_debug("@%u alerts timer reset %u", w->id, (u_int)tv.tv_sec);
usr.bin/tmux/alerts.c
155
event_add(&w->alerts_timer, &tv);
usr.bin/tmux/alerts.c
159
alerts_queue(struct window *w, int flags)
usr.bin/tmux/alerts.c
161
alerts_reset(w);
usr.bin/tmux/alerts.c
163
if ((w->flags & flags) != flags) {
usr.bin/tmux/alerts.c
164
w->flags |= flags;
usr.bin/tmux/alerts.c
165
log_debug("@%u alerts flags added %#x", w->id, flags);
usr.bin/tmux/alerts.c
168
if (alerts_enabled(w, flags)) {
usr.bin/tmux/alerts.c
169
if (!w->alerts_queued) {
usr.bin/tmux/alerts.c
170
w->alerts_queued = 1;
usr.bin/tmux/alerts.c
171
TAILQ_INSERT_TAIL(&alerts_list, w, alerts_entry);
usr.bin/tmux/alerts.c
172
window_add_ref(w, __func__);
usr.bin/tmux/alerts.c
176
log_debug("alerts check queued (by @%u)", w->id);
usr.bin/tmux/alerts.c
184
alerts_check_bell(struct window *w)
usr.bin/tmux/alerts.c
189
if (~w->flags & WINDOW_BELL)
usr.bin/tmux/alerts.c
191
if (!options_get_number(w->options, "monitor-bell"))
usr.bin/tmux/alerts.c
194
TAILQ_FOREACH(wl, &w->winlinks, wentry)
usr.bin/tmux/alerts.c
197
TAILQ_FOREACH(wl, &w->winlinks, wentry) {
usr.bin/tmux/alerts.c
222
alerts_check_activity(struct window *w)
usr.bin/tmux/alerts.c
227
if (~w->flags & WINDOW_ACTIVITY)
usr.bin/tmux/alerts.c
229
if (!options_get_number(w->options, "monitor-activity"))
usr.bin/tmux/alerts.c
232
TAILQ_FOREACH(wl, &w->winlinks, wentry)
usr.bin/tmux/alerts.c
235
TAILQ_FOREACH(wl, &w->winlinks, wentry) {
usr.bin/tmux/alerts.c
258
alerts_check_silence(struct window *w)
usr.bin/tmux/alerts.c
263
if (~w->flags & WINDOW_SILENCE)
usr.bin/tmux/alerts.c
265
if (options_get_number(w->options, "monitor-silence") == 0)
usr.bin/tmux/alerts.c
268
TAILQ_FOREACH(wl, &w->winlinks, wentry)
usr.bin/tmux/alerts.c
271
TAILQ_FOREACH(wl, &w->winlinks, wentry) {
usr.bin/tmux/alerts.c
46
struct window *w = arg;
usr.bin/tmux/alerts.c
48
log_debug("@%u alerts timer expired", w->id);
usr.bin/tmux/alerts.c
49
alerts_queue(w, WINDOW_SILENCE);
usr.bin/tmux/alerts.c
55
struct window *w, *w1;
usr.bin/tmux/alerts.c
58
TAILQ_FOREACH_SAFE(w, &alerts_list, alerts_entry, w1) {
usr.bin/tmux/alerts.c
59
alerts = alerts_check_all(w);
usr.bin/tmux/alerts.c
60
log_debug("@%u alerts check, alerts %#x", w->id, alerts);
usr.bin/tmux/alerts.c
62
w->alerts_queued = 0;
usr.bin/tmux/alerts.c
63
TAILQ_REMOVE(&alerts_list, w, alerts_entry);
usr.bin/tmux/alerts.c
65
w->flags &= ~WINDOW_ALERTFLAGS;
usr.bin/tmux/alerts.c
66
window_remove_ref(w, __func__);
usr.bin/tmux/alerts.c
93
alerts_check_all(struct window *w)
usr.bin/tmux/alerts.c
97
alerts = alerts_check_bell(w);
usr.bin/tmux/alerts.c
98
alerts |= alerts_check_activity(w);
usr.bin/tmux/alerts.c
99
alerts |= alerts_check_silence(w);
usr.bin/tmux/cmd-break-pane.c
100
window_lost_pane(w, wp);
usr.bin/tmux/cmd-break-pane.c
103
w = wp->window = window_create(w->sx, w->sy, w->xpixel, w->ypixel);
usr.bin/tmux/cmd-break-pane.c
104
options_set_parent(wp->options, w->options);
usr.bin/tmux/cmd-break-pane.c
106
TAILQ_INSERT_HEAD(&w->panes, wp, entry);
usr.bin/tmux/cmd-break-pane.c
107
w->active = wp;
usr.bin/tmux/cmd-break-pane.c
108
w->latest = tc;
usr.bin/tmux/cmd-break-pane.c
111
name = default_window_name(w);
usr.bin/tmux/cmd-break-pane.c
112
window_set_name(w, name);
usr.bin/tmux/cmd-break-pane.c
115
window_set_name(w, args_get(args, 'n'));
usr.bin/tmux/cmd-break-pane.c
116
options_set_number(w->options, "automatic-rename", 0);
usr.bin/tmux/cmd-break-pane.c
119
layout_init(w, wp);
usr.bin/tmux/cmd-break-pane.c
125
wl = session_attach(dst_s, w, idx, &cause); /* can't fail */
usr.bin/tmux/cmd-break-pane.c
60
struct window *w = wl->window;
usr.bin/tmux/cmd-break-pane.c
74
server_unzoom_window(w);
usr.bin/tmux/cmd-break-pane.c
76
if (window_count_panes(w) == 1) {
usr.bin/tmux/cmd-break-pane.c
84
window_set_name(w, args_get(args, 'n'));
usr.bin/tmux/cmd-break-pane.c
85
options_set_number(w->options, "automatic-rename", 0);
usr.bin/tmux/cmd-break-pane.c
88
wl = winlink_find_by_window(&dst_s->windows, w);
usr.bin/tmux/cmd-break-pane.c
98
TAILQ_REMOVE(&w->panes, wp, entry);
usr.bin/tmux/cmd-display-menu.c
120
if (w > tty->sx || h > tty->sy)
usr.bin/tmux/cmd-display-menu.c
177
format_add(ft, "popup_width", "%u", w);
usr.bin/tmux/cmd-display-menu.c
181
n = (long)(tty->sx - 1) / 2 - w / 2;
usr.bin/tmux/cmd-display-menu.c
194
n = (long)event->m.x - w / 2;
usr.bin/tmux/cmd-display-menu.c
226
n = (long)wp->xoff + wp->sx - ox - w;
usr.bin/tmux/cmd-display-menu.c
246
if (n + w >= tty->sx)
usr.bin/tmux/cmd-display-menu.c
247
n = tty->sx - w;
usr.bin/tmux/cmd-display-menu.c
251
log_debug("%s: -x: %s = %s = %u (-w %u)", __func__, xp, p, *px, w);
usr.bin/tmux/cmd-display-menu.c
403
u_int px, py, w, h, count = args_count(args);
usr.bin/tmux/cmd-display-menu.c
427
w = tty->sx / 2;
usr.bin/tmux/cmd-display-menu.c
429
w = args_percentage(args, 'w', 1, tty->sx, tty->sx,
usr.bin/tmux/cmd-display-menu.c
437
if (w > tty->sx)
usr.bin/tmux/cmd-display-menu.c
438
w = tty->sx;
usr.bin/tmux/cmd-display-menu.c
441
if (!cmd_display_menu_get_pos(tc, item, args, &px, &py, w, h))
usr.bin/tmux/cmd-display-menu.c
512
if (popup_display(flags, lines, item, px, py, w, h, env, shellcmd, argc,
usr.bin/tmux/cmd-display-menu.c
97
struct args *args, u_int *px, u_int *py, u_int w, u_int h)
usr.bin/tmux/cmd-display-panes.c
132
if (w->active == wp) {
usr.bin/tmux/cmd-display-panes.c
201
struct window *w = c->session->curw->window;
usr.bin/tmux/cmd-display-panes.c
204
log_debug("%s: %s @%u", __func__, c->name, w->id);
usr.bin/tmux/cmd-display-panes.c
206
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/cmd-display-panes.c
230
struct window *w = c->session->curw->window;
usr.bin/tmux/cmd-display-panes.c
246
wp = window_pane_at_index(w, index);
usr.bin/tmux/cmd-display-panes.c
249
window_unzoom(w, 1);
usr.bin/tmux/cmd-display-panes.c
66
struct window *w = wp->window;
usr.bin/tmux/cmd-find.c
1005
fs->w = c->session->curw->window;
usr.bin/tmux/cmd-find.c
1016
fs->w = fs->wl->window;
usr.bin/tmux/cmd-find.c
1026
fs->w = fs->wl->window;
usr.bin/tmux/cmd-find.c
1027
fs->wp = fs->w->active;
usr.bin/tmux/cmd-find.c
1154
fs->w = fs->wl->window;
usr.bin/tmux/cmd-find.c
1155
fs->wp = fs->w->active;
usr.bin/tmux/cmd-find.c
1274
fs.w = wp->window;
usr.bin/tmux/cmd-find.c
183
log_debug("%s: window is @%u", __func__, fs->w->id);
usr.bin/tmux/cmd-find.c
187
if (!session_has(s, fs->w))
usr.bin/tmux/cmd-find.c
214
log_debug("%s: window is @%u", __func__, fs->w->id);
usr.bin/tmux/cmd-find.c
217
if (fs->s->curw != NULL && fs->s->curw->window == fs->w)
usr.bin/tmux/cmd-find.c
221
if (wl_loop->window == fs->w) {
usr.bin/tmux/cmd-find.c
319
fs->w = window_find_by_id_str(window);
usr.bin/tmux/cmd-find.c
320
if (fs->w == NULL)
usr.bin/tmux/cmd-find.c
335
fs->w = fs->wl->window;
usr.bin/tmux/cmd-find.c
364
fs->w = fs->wl->window;
usr.bin/tmux/cmd-find.c
368
fs->w = window_find_by_id_str(window);
usr.bin/tmux/cmd-find.c
369
if (fs->w == NULL || !session_has(fs->s, fs->w))
usr.bin/tmux/cmd-find.c
399
fs->w = fs->wl->window;
usr.bin/tmux/cmd-find.c
411
fs->w = fs->wl->window;
usr.bin/tmux/cmd-find.c
418
fs->w = fs->wl->window;
usr.bin/tmux/cmd-find.c
425
fs->w = fs->wl->window;
usr.bin/tmux/cmd-find.c
437
fs->w = fs->wl->window;
usr.bin/tmux/cmd-find.c
458
fs->w = fs->wl->window;
usr.bin/tmux/cmd-find.c
477
fs->w = fs->wl->window;
usr.bin/tmux/cmd-find.c
492
fs->w = fs->wl->window;
usr.bin/tmux/cmd-find.c
510
fs->w = fs->wp->window;
usr.bin/tmux/cmd-find.c
518
fs->w = fs->current->w;
usr.bin/tmux/cmd-find.c
526
fs->wp = fs->w->active;
usr.bin/tmux/cmd-find.c
547
fs->w = fs->wp->window;
usr.bin/tmux/cmd-find.c
554
fs->w = fs->wl->window;
usr.bin/tmux/cmd-find.c
579
if (fs->wp->window != fs->w)
usr.bin/tmux/cmd-find.c
586
fs->wp = TAILQ_FIRST(&fs->w->last_panes);
usr.bin/tmux/cmd-find.c
591
fs->wp = window_pane_find_up(fs->w->active);
usr.bin/tmux/cmd-find.c
596
fs->wp = window_pane_find_down(fs->w->active);
usr.bin/tmux/cmd-find.c
601
fs->wp = window_pane_find_left(fs->w->active);
usr.bin/tmux/cmd-find.c
606
fs->wp = window_pane_find_right(fs->w->active);
usr.bin/tmux/cmd-find.c
618
wp = fs->w->active;
usr.bin/tmux/cmd-find.c
620
fs->wp = window_pane_next_by_number(fs->w, wp, n);
usr.bin/tmux/cmd-find.c
622
fs->wp = window_pane_previous_by_number(fs->w, wp, n);
usr.bin/tmux/cmd-find.c
630
fs->wp = window_pane_at_index(fs->w, idx);
usr.bin/tmux/cmd-find.c
636
fs->wp = window_find_string(fs->w, pane);
usr.bin/tmux/cmd-find.c
658
if (fs->s == NULL && fs->wl == NULL && fs->w == NULL && fs->wp == NULL)
usr.bin/tmux/cmd-find.c
669
if (fs->s == NULL || fs->wl == NULL || fs->w == NULL || fs->wp == NULL)
usr.bin/tmux/cmd-find.c
676
if (wl->window == fs->w && wl == fs->wl)
usr.bin/tmux/cmd-find.c
682
if (fs->w != fs->wl->window)
usr.bin/tmux/cmd-find.c
685
return (window_has_pane(fs->w, fs->wp));
usr.bin/tmux/cmd-find.c
695
dst->w = src->w;
usr.bin/tmux/cmd-find.c
709
fs->wl->window == fs->w, fs->w->id, fs->w->name);
usr.bin/tmux/cmd-find.c
730
fs->w = fs->wl->window;
usr.bin/tmux/cmd-find.c
731
fs->wp = fs->w->active;
usr.bin/tmux/cmd-find.c
744
fs->w = wl->window;
usr.bin/tmux/cmd-find.c
753
struct window *w, int flags)
usr.bin/tmux/cmd-find.c
758
fs->w = w;
usr.bin/tmux/cmd-find.c
763
fs->wp = fs->w->active;
usr.bin/tmux/cmd-find.c
771
cmd_find_from_window(struct cmd_find_state *fs, struct window *w, int flags)
usr.bin/tmux/cmd-find.c
775
fs->w = w;
usr.bin/tmux/cmd-find.c
784
fs->wp = fs->w->active;
usr.bin/tmux/cmd-find.c
800
fs->w = fs->wl->window;
usr.bin/tmux/cmd-find.c
831
fs->w = fs->wl->window;
usr.bin/tmux/cmd-find.c
832
fs->wp = fs->w->active;
usr.bin/tmux/cmd-find.c
852
fs->w = fs->wl->window;
usr.bin/tmux/cmd-find.c
879
fs->w = fs->wl->window;
usr.bin/tmux/cmd-find.c
898
fs->w = wp->window;
usr.bin/tmux/cmd-find.c
908
fs->w = fs->wl->window;
usr.bin/tmux/cmd-find.c
909
fs->wp = fs->w->active; /* use active pane */
usr.bin/tmux/cmd-kill-window.c
61
struct window *w = wl->window;
usr.bin/tmux/cmd-kill-window.c
66
if (!args_has(args, 'k') && !session_is_linked(s, w)) {
usr.bin/tmux/cmd-refresh-client.c
105
if (sscanf(size, "@%u:", &w) == 1) {
usr.bin/tmux/cmd-refresh-client.c
106
cw = server_client_get_client_window(tc, w);
usr.bin/tmux/cmd-refresh-client.c
109
tc->name, w);
usr.bin/tmux/cmd-refresh-client.c
200
struct window *w;
usr.bin/tmux/cmd-refresh-client.c
225
w = tc->session->curw->window;
usr.bin/tmux/cmd-refresh-client.c
226
if (tc->pan_window != w) {
usr.bin/tmux/cmd-refresh-client.c
227
tc->pan_window = w;
usr.bin/tmux/cmd-refresh-client.c
238
if (tc->pan_ox > w->sx - tty->osx)
usr.bin/tmux/cmd-refresh-client.c
239
tc->pan_ox = w->sx - tty->osx;
usr.bin/tmux/cmd-refresh-client.c
247
if (tc->pan_oy > w->sy - tty->osy)
usr.bin/tmux/cmd-refresh-client.c
248
tc->pan_oy = w->sy - tty->osy;
usr.bin/tmux/cmd-refresh-client.c
87
u_int w, x, y;
usr.bin/tmux/cmd-refresh-client.c
90
if (sscanf(size, "@%u:%ux%u", &w, &x, &y) == 3) {
usr.bin/tmux/cmd-refresh-client.c
97
tc->name, w, x, y);
usr.bin/tmux/cmd-refresh-client.c
98
cw = server_client_add_client_window(tc, w);
usr.bin/tmux/cmd-resize-pane.c
109
x = args_percentage(args, 'x', 0, INT_MAX, w->sx, &cause);
usr.bin/tmux/cmd-resize-pane.c
118
y = args_percentage(args, 'y', 0, INT_MAX, w->sy, &cause);
usr.bin/tmux/cmd-resize-pane.c
124
status = options_get_number(w->options, "pane-border-status");
usr.bin/tmux/cmd-resize-pane.c
131
if (y != INT_MAX && wp->yoff + wp->sy == w->sy - 1)
usr.bin/tmux/cmd-resize-pane.c
155
struct window *w;
usr.bin/tmux/cmd-resize-pane.c
169
w = wl->window;
usr.bin/tmux/cmd-resize-pane.c
183
lc = layout_search_by_border(w->layout_root, lx + offsets[i][0],
usr.bin/tmux/cmd-resize-pane.c
206
layout_resize_layout(w, cells[i], type, y - ly, 0);
usr.bin/tmux/cmd-resize-pane.c
209
layout_resize_layout(w, cells[i], type, x - lx, 0);
usr.bin/tmux/cmd-resize-pane.c
214
server_redraw_window(w);
usr.bin/tmux/cmd-resize-pane.c
57
struct window *w = wl->window;
usr.bin/tmux/cmd-resize-pane.c
89
if (w->flags & WINDOW_ZOOMED)
usr.bin/tmux/cmd-resize-pane.c
90
window_unzoom(w, 1);
usr.bin/tmux/cmd-resize-pane.c
93
server_redraw_window(w);
usr.bin/tmux/cmd-resize-pane.c
96
server_unzoom_window(w);
usr.bin/tmux/cmd-resize-window.c
102
default_window_size(NULL, s, w, &sx, &sy, &xpixel, &ypixel,
usr.bin/tmux/cmd-resize-window.c
105
default_window_size(NULL, s, w, &sx, &sy, &xpixel, &ypixel,
usr.bin/tmux/cmd-resize-window.c
109
options_set_number(w->options, "window-size", WINDOW_SIZE_MANUAL);
usr.bin/tmux/cmd-resize-window.c
110
w->manual_sx = sx;
usr.bin/tmux/cmd-resize-window.c
111
w->manual_sy = sy;
usr.bin/tmux/cmd-resize-window.c
112
recalculate_size(w, 1);
usr.bin/tmux/cmd-resize-window.c
52
struct window *w = wl->window;
usr.bin/tmux/cmd-resize-window.c
68
sx = w->sx;
usr.bin/tmux/cmd-resize-window.c
69
sy = w->sy;
usr.bin/tmux/cmd-rotate-window.c
105
if ((wp = TAILQ_NEXT(w->active, entry)) == NULL)
usr.bin/tmux/cmd-rotate-window.c
106
wp = TAILQ_FIRST(&w->panes);
usr.bin/tmux/cmd-rotate-window.c
109
window_set_active_pane(w, wp, 1);
usr.bin/tmux/cmd-rotate-window.c
111
window_pop_zoom(w);
usr.bin/tmux/cmd-rotate-window.c
112
server_redraw_window(w);
usr.bin/tmux/cmd-rotate-window.c
50
struct window *w = wl->window;
usr.bin/tmux/cmd-rotate-window.c
55
window_push_zoom(w, 0, args_has(args, 'Z'));
usr.bin/tmux/cmd-rotate-window.c
58
wp = TAILQ_LAST(&w->panes, window_panes);
usr.bin/tmux/cmd-rotate-window.c
59
TAILQ_REMOVE(&w->panes, wp, entry);
usr.bin/tmux/cmd-rotate-window.c
60
TAILQ_INSERT_HEAD(&w->panes, wp, entry);
usr.bin/tmux/cmd-rotate-window.c
65
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/cmd-rotate-window.c
80
if ((wp = TAILQ_PREV(w->active, window_panes, entry)) == NULL)
usr.bin/tmux/cmd-rotate-window.c
81
wp = TAILQ_LAST(&w->panes, window_panes);
usr.bin/tmux/cmd-rotate-window.c
83
wp = TAILQ_FIRST(&w->panes);
usr.bin/tmux/cmd-rotate-window.c
84
TAILQ_REMOVE(&w->panes, wp, entry);
usr.bin/tmux/cmd-rotate-window.c
85
TAILQ_INSERT_TAIL(&w->panes, wp, entry);
usr.bin/tmux/cmd-rotate-window.c
90
TAILQ_FOREACH_REVERSE(wp, &w->panes, window_panes, entry) {
usr.bin/tmux/cmd-select-layout.c
117
layout = w->lastlayout;
usr.bin/tmux/cmd-select-layout.c
121
layout_set_select(w, layout);
usr.bin/tmux/cmd-select-layout.c
127
if (layout_parse(w, layoutname, &cause) == -1) {
usr.bin/tmux/cmd-select-layout.c
141
server_redraw_window(w);
usr.bin/tmux/cmd-select-layout.c
142
notify_window("window-layout-changed", w);
usr.bin/tmux/cmd-select-layout.c
146
free(w->old_layout);
usr.bin/tmux/cmd-select-layout.c
147
w->old_layout = oldlayout;
usr.bin/tmux/cmd-select-layout.c
77
struct window *w = wl->window;
usr.bin/tmux/cmd-select-layout.c
83
server_unzoom_window(w);
usr.bin/tmux/cmd-select-layout.c
92
oldlayout = w->old_layout;
usr.bin/tmux/cmd-select-layout.c
93
w->old_layout = layout_dump(w, w->layout_root);
usr.bin/tmux/cmd-select-layout.c
97
layout_set_next(w);
usr.bin/tmux/cmd-select-layout.c
99
layout_set_previous(w);
usr.bin/tmux/cmd-select-pane.c
105
lastwp = TAILQ_FIRST(&w->last_panes);
usr.bin/tmux/cmd-select-pane.c
106
if (lastwp == NULL && window_count_panes(w) == 2) {
usr.bin/tmux/cmd-select-pane.c
107
lastwp = TAILQ_PREV(w->active, window_panes, entry);
usr.bin/tmux/cmd-select-pane.c
109
lastwp = TAILQ_NEXT(w->active, entry);
usr.bin/tmux/cmd-select-pane.c
124
if (window_push_zoom(w, 0, args_has(args, 'Z')))
usr.bin/tmux/cmd-select-pane.c
125
server_redraw_window(w);
usr.bin/tmux/cmd-select-pane.c
126
window_redraw_active_switch(w, lastwp);
usr.bin/tmux/cmd-select-pane.c
127
if (window_set_active_pane(w, lastwp, 1)) {
usr.bin/tmux/cmd-select-pane.c
129
cmd_select_pane_redraw(w);
usr.bin/tmux/cmd-select-pane.c
131
if (window_pop_zoom(w))
usr.bin/tmux/cmd-select-pane.c
132
server_redraw_window(w);
usr.bin/tmux/cmd-select-pane.c
182
window_push_zoom(w, 0, 1);
usr.bin/tmux/cmd-select-pane.c
184
window_pop_zoom(w);
usr.bin/tmux/cmd-select-pane.c
186
window_push_zoom(w, 0, 1);
usr.bin/tmux/cmd-select-pane.c
188
window_pop_zoom(w);
usr.bin/tmux/cmd-select-pane.c
190
window_push_zoom(w, 0, 1);
usr.bin/tmux/cmd-select-pane.c
192
window_pop_zoom(w);
usr.bin/tmux/cmd-select-pane.c
194
window_push_zoom(w, 0, 1);
usr.bin/tmux/cmd-select-pane.c
196
window_pop_zoom(w);
usr.bin/tmux/cmd-select-pane.c
228
activewp = w->active;
usr.bin/tmux/cmd-select-pane.c
231
if (window_push_zoom(w, 0, args_has(args, 'Z')))
usr.bin/tmux/cmd-select-pane.c
232
server_redraw_window(w);
usr.bin/tmux/cmd-select-pane.c
233
window_redraw_active_switch(w, wp);
usr.bin/tmux/cmd-select-pane.c
236
else if (window_set_active_pane(w, wp, 1))
usr.bin/tmux/cmd-select-pane.c
239
cmd_select_pane_redraw(w);
usr.bin/tmux/cmd-select-pane.c
240
if (window_pop_zoom(w))
usr.bin/tmux/cmd-select-pane.c
241
server_redraw_window(w);
usr.bin/tmux/cmd-select-pane.c
59
cmd_select_pane_redraw(struct window *w)
usr.bin/tmux/cmd-select-pane.c
71
if (c->session->curw->window == w && tty_window_bigger(&c->tty))
usr.bin/tmux/cmd-select-pane.c
74
if (c->session->curw->window == w)
usr.bin/tmux/cmd-select-pane.c
76
if (session_has(c->session, w))
usr.bin/tmux/cmd-select-pane.c
92
struct window *w = wl->window;
usr.bin/tmux/cmd-set-option.c
169
TAILQ_FOREACH(loop, &target->w->panes, entry) {
usr.bin/tmux/cmd-split-window.c
64
struct window *w = wl->window;
usr.bin/tmux/cmd-split-window.c
83
curval = w->sy;
usr.bin/tmux/cmd-split-window.c
85
curval = w->sx;
usr.bin/tmux/cmd-switch-client.c
131
w = wl->window;
usr.bin/tmux/cmd-switch-client.c
132
if (window_push_zoom(w, 0, args_has(args, 'Z')))
usr.bin/tmux/cmd-switch-client.c
133
server_redraw_window(w);
usr.bin/tmux/cmd-switch-client.c
134
window_redraw_active_switch(w, wp);
usr.bin/tmux/cmd-switch-client.c
135
window_set_active_pane(w, wp, 1);
usr.bin/tmux/cmd-switch-client.c
136
if (window_pop_zoom(w))
usr.bin/tmux/cmd-switch-client.c
137
server_redraw_window(w);
usr.bin/tmux/cmd-switch-client.c
59
struct window *w;
usr.bin/tmux/cmd.c
795
struct window *w;
usr.bin/tmux/cmd.c
802
if (m->w == -1)
usr.bin/tmux/cmd.c
805
if ((w = window_find_by_id(m->w)) == NULL)
usr.bin/tmux/cmd.c
807
wl = winlink_find_by_window(&s->windows, w);
usr.bin/tmux/control-notify.c
100
control_write(c, "%%window-close @%u", w->id);
usr.bin/tmux/control-notify.c
102
control_write(c, "%%unlinked-window-close @%u", w->id);
usr.bin/tmux/control-notify.c
107
control_notify_window_linked(__unused struct session *s, struct window *w)
usr.bin/tmux/control-notify.c
117
if (winlink_find_by_window_id(&cs->windows, w->id) != NULL)
usr.bin/tmux/control-notify.c
118
control_write(c, "%%window-add @%u", w->id);
usr.bin/tmux/control-notify.c
120
control_write(c, "%%unlinked-window-add @%u", w->id);
usr.bin/tmux/control-notify.c
125
control_notify_window_renamed(struct window *w)
usr.bin/tmux/control-notify.c
135
if (winlink_find_by_window_id(&cs->windows, w->id) != NULL) {
usr.bin/tmux/control-notify.c
136
control_write(c, "%%window-renamed @%u %s", w->id,
usr.bin/tmux/control-notify.c
137
w->name);
usr.bin/tmux/control-notify.c
140
w->id, w->name);
usr.bin/tmux/control-notify.c
43
control_notify_window_layout_changed(struct window *w)
usr.bin/tmux/control-notify.c
59
wl = TAILQ_FIRST(&w->winlinks);
usr.bin/tmux/control-notify.c
60
if (wl == NULL || w->layout_root == NULL)
usr.bin/tmux/control-notify.c
68
if (winlink_find_by_window_id(&s->windows, w->id) != NULL)
usr.bin/tmux/control-notify.c
75
control_notify_window_pane_changed(struct window *w)
usr.bin/tmux/control-notify.c
83
control_write(c, "%%window-pane-changed @%u %%%u", w->id,
usr.bin/tmux/control-notify.c
84
w->active->id);
usr.bin/tmux/control-notify.c
89
control_notify_window_unlinked(__unused struct session *s, struct window *w)
usr.bin/tmux/control-notify.c
99
if (winlink_find_by_window_id(&cs->windows, w->id) != NULL)
usr.bin/tmux/control.c
1003
struct window *w = wl->window;
usr.bin/tmux/control.c
1009
find.window = w->id;
usr.bin/tmux/control.c
1015
csw->window = w->id;
usr.bin/tmux/control.c
1026
csub->name, s->id, w->id, wl->idx, value);
usr.bin/tmux/control.c
875
struct window *w;
usr.bin/tmux/control.c
884
w = wp->window;
usr.bin/tmux/control.c
886
TAILQ_FOREACH(wl, &w->winlinks, wentry) {
usr.bin/tmux/control.c
911
csub->name, s->id, w->id, wl->idx, wp->id, value);
usr.bin/tmux/control.c
923
struct window *w = wl->window;
usr.bin/tmux/control.c
946
csub->name, s->id, w->id, wl->idx, wp->id, value);
usr.bin/tmux/control.c
956
struct window *w;
usr.bin/tmux/control.c
962
w = window_find_by_id(csub->id);
usr.bin/tmux/control.c
963
if (w == NULL)
usr.bin/tmux/control.c
966
TAILQ_FOREACH(wl, &w->winlinks, wentry) {
usr.bin/tmux/control.c
974
find.window = w->id;
usr.bin/tmux/control.c
980
csw->window = w->id;
usr.bin/tmux/control.c
991
csub->name, s->id, w->id, wl->idx, value);
usr.bin/tmux/format.c
1132
struct window *w;
usr.bin/tmux/format.c
1138
w = wp->window;
usr.bin/tmux/format.c
1140
status = options_get_number(w->options, "pane-border-status");
usr.bin/tmux/format.c
1154
struct window *w;
usr.bin/tmux/format.c
1160
w = wp->window;
usr.bin/tmux/format.c
1162
status = options_get_number(w->options, "pane-border-status");
usr.bin/tmux/format.c
1164
flag = (wp->yoff + wp->sy == w->sy - 1);
usr.bin/tmux/format.c
1166
flag = (wp->yoff + wp->sy == w->sy);
usr.bin/tmux/format.c
149
struct window *w;
usr.bin/tmux/format.c
2725
if (ft->w != NULL)
usr.bin/tmux/format.c
2726
return (format_printf("%u", ft->w->ypixel));
usr.bin/tmux/format.c
2734
if (ft->w != NULL)
usr.bin/tmux/format.c
2735
return (format_printf("%u", ft->w->xpixel));
usr.bin/tmux/format.c
2773
if (ft->w != NULL)
usr.bin/tmux/format.c
2774
return (format_printf("%u", ft->w->sy));
usr.bin/tmux/format.c
2782
if (ft->w != NULL)
usr.bin/tmux/format.c
2783
return (format_printf("@%u", ft->w->id));
usr.bin/tmux/format.c
2835
struct window *w;
usr.bin/tmux/format.c
2842
w = ft->wl->window;
usr.bin/tmux/format.c
2846
if (winlink_find_by_window(&s->windows, w) != NULL)
usr.bin/tmux/format.c
2852
if (winlink_find_by_window(&s->windows, w) != NULL)
usr.bin/tmux/format.c
2874
if (ft->w != NULL)
usr.bin/tmux/format.c
2875
return (format_printf("%s", ft->w->name));
usr.bin/tmux/format.c
2911
if (ft->w != NULL)
usr.bin/tmux/format.c
2912
return (format_printf("%u", window_count_panes(ft->w)));
usr.bin/tmux/format.c
2953
if (ft->w != NULL)
usr.bin/tmux/format.c
2954
return (format_printf("%u", ft->w->sx));
usr.bin/tmux/format.c
2962
if (ft->w != NULL) {
usr.bin/tmux/format.c
2963
if (ft->w->flags & WINDOW_ZOOMED)
usr.bin/tmux/format.c
3052
if (ft->w != NULL)
usr.bin/tmux/format.c
3053
return (&ft->w->activity_time);
usr.bin/tmux/format.c
4015
if (o == NULL && ft->w != NULL)
usr.bin/tmux/format.c
4016
o = options_parse_get(ft->w->options, key, &idx, 0);
usr.bin/tmux/format.c
4636
struct window *w;
usr.bin/tmux/format.c
4655
w = wl->window;
usr.bin/tmux/format.c
4656
format_log(es, "window loop: %u @%u", wl->idx, w->id);
usr.bin/tmux/format.c
4663
nft = format_create(c, item, FORMAT_WINDOW|w->id,
usr.bin/tmux/format.c
4710
if (ft->w == NULL) {
usr.bin/tmux/format.c
4723
l = sort_get_panes_window(ft->w, &n, sc);
usr.bin/tmux/format.c
4727
if (active != NULL && wp == ft->w->active)
usr.bin/tmux/format.c
5833
format_defaults_window(struct format_tree *ft, struct window *w)
usr.bin/tmux/format.c
5835
ft->w = w;
usr.bin/tmux/format.c
5842
if (ft->w == NULL)
usr.bin/tmux/format.c
5853
if (ft->w == NULL)
usr.bin/tmux/format.c
666
struct window *w;
usr.bin/tmux/format.c
674
w = ft->wl->window;
usr.bin/tmux/format.c
680
TAILQ_FOREACH(wl, &w->winlinks, wentry) {
usr.bin/tmux/format.c
696
struct window *w;
usr.bin/tmux/format.c
703
w = ft->wl->window;
usr.bin/tmux/format.c
705
TAILQ_FOREACH(wl, &w->winlinks, wentry) {
usr.bin/tmux/format.c
718
struct window *w;
usr.bin/tmux/format.c
726
w = ft->wl->window;
usr.bin/tmux/format.c
732
TAILQ_FOREACH(wl, &w->winlinks, wentry) {
usr.bin/tmux/format.c
750
struct window *w;
usr.bin/tmux/format.c
758
w = ft->wl->window;
usr.bin/tmux/format.c
765
if (w == client_session->curw->window)
usr.bin/tmux/format.c
777
struct window *w;
usr.bin/tmux/format.c
786
w = ft->wl->window;
usr.bin/tmux/format.c
797
if (w == client_session->curw->window) {
usr.bin/tmux/format.c
814
struct window *w = ft->w;
usr.bin/tmux/format.c
816
if (w == NULL)
usr.bin/tmux/format.c
819
if (w->saved_layout_root != NULL)
usr.bin/tmux/format.c
820
return (layout_dump(w, w->saved_layout_root));
usr.bin/tmux/format.c
821
return (layout_dump(w, w->layout_root));
usr.bin/tmux/format.c
828
struct window *w = ft->w;
usr.bin/tmux/format.c
830
if (w == NULL)
usr.bin/tmux/format.c
833
return (layout_dump(w, w->layout_root));
usr.bin/tmux/input.c
2039
struct window *w = NULL;
usr.bin/tmux/input.c
2044
w = wp->window;
usr.bin/tmux/input.c
2074
if (w == NULL)
usr.bin/tmux/input.c
2076
input_reply(ictx, 1, "\033[4;%u;%ut", y * w->ypixel,
usr.bin/tmux/input.c
2077
x * w->xpixel);
usr.bin/tmux/input.c
2080
if (w == NULL)
usr.bin/tmux/input.c
2082
input_reply(ictx, 1, "\033[5;%u;%ut", y * w->ypixel,
usr.bin/tmux/input.c
2083
x * w->xpixel);
usr.bin/tmux/input.c
2086
if (w == NULL)
usr.bin/tmux/input.c
2088
input_reply(ictx, 1, "\033[6;%u;%ut", w->ypixel,
usr.bin/tmux/input.c
2089
w->xpixel);
usr.bin/tmux/input.c
2119
server_redraw_window_borders(w);
usr.bin/tmux/input.c
2120
server_status_window(w);
usr.bin/tmux/input.c
2723
struct window *w;
usr.bin/tmux/input.c
2736
w = wp->window;
usr.bin/tmux/input.c
2739
o = options_get_only(w->options, "automatic-rename");
usr.bin/tmux/input.c
2742
if (!options_get_number(w->options, "automatic-rename"))
usr.bin/tmux/input.c
2743
window_set_name(w, "");
usr.bin/tmux/input.c
2745
options_set_number(w->options, "automatic-rename", 0);
usr.bin/tmux/input.c
2746
window_set_name(w, ictx->input_buf);
usr.bin/tmux/input.c
2748
server_redraw_window_borders(w);
usr.bin/tmux/input.c
2749
server_status_window(w);
usr.bin/tmux/input.c
3359
struct window *w;
usr.bin/tmux/input.c
3366
w = wp->window;
usr.bin/tmux/input.c
3371
if (loop->session == NULL || !session_has(loop->session, w))
usr.bin/tmux/layout-custom.c
157
layout_parse(struct window *w, const char *layout, char **cause)
usr.bin/tmux/layout-custom.c
188
npanes = window_count_panes(w);
usr.bin/tmux/layout-custom.c
200
layout_destroy_cell(w, lcchild, &lc);
usr.bin/tmux/layout-custom.c
237
window_resize(w, lc->sx, lc->sy, -1, -1);
usr.bin/tmux/layout-custom.c
240
layout_free_cell(w->layout_root);
usr.bin/tmux/layout-custom.c
241
w->layout_root = lc;
usr.bin/tmux/layout-custom.c
244
wp = TAILQ_FIRST(&w->panes);
usr.bin/tmux/layout-custom.c
248
layout_fix_offsets(w);
usr.bin/tmux/layout-custom.c
249
layout_fix_panes(w, NULL);
usr.bin/tmux/layout-custom.c
254
notify_window("window-layout-changed", w);
usr.bin/tmux/layout-custom.c
61
layout_dump(__unused struct window *w, struct layout_cell *root)
usr.bin/tmux/layout-set.c
100
layout_sets[layout].arrange(w);
usr.bin/tmux/layout-set.c
101
w->lastlayout = layout;
usr.bin/tmux/layout-set.c
106
layout_set_previous(struct window *w)
usr.bin/tmux/layout-set.c
110
if (w->lastlayout == -1)
usr.bin/tmux/layout-set.c
113
layout = w->lastlayout;
usr.bin/tmux/layout-set.c
121
layout_sets[layout].arrange(w);
usr.bin/tmux/layout-set.c
122
w->lastlayout = layout;
usr.bin/tmux/layout-set.c
127
layout_set_even(struct window *w, enum layout_type type)
usr.bin/tmux/layout-set.c
133
layout_print_cell(w->layout_root, __func__, 1);
usr.bin/tmux/layout-set.c
136
n = window_count_panes(w);
usr.bin/tmux/layout-set.c
141
layout_free(w);
usr.bin/tmux/layout-set.c
142
lc = w->layout_root = layout_create_cell(NULL);
usr.bin/tmux/layout-set.c
145
if (sx < w->sx)
usr.bin/tmux/layout-set.c
146
sx = w->sx;
usr.bin/tmux/layout-set.c
147
sy = w->sy;
usr.bin/tmux/layout-set.c
150
if (sy < w->sy)
usr.bin/tmux/layout-set.c
151
sy = w->sy;
usr.bin/tmux/layout-set.c
152
sx = w->sx;
usr.bin/tmux/layout-set.c
158
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/layout-set.c
161
lcnew->sx = w->sx;
usr.bin/tmux/layout-set.c
162
lcnew->sy = w->sy;
usr.bin/tmux/layout-set.c
167
layout_spread_cell(w, lc);
usr.bin/tmux/layout-set.c
170
layout_fix_offsets(w);
usr.bin/tmux/layout-set.c
171
layout_fix_panes(w, NULL);
usr.bin/tmux/layout-set.c
173
layout_print_cell(w->layout_root, __func__, 1);
usr.bin/tmux/layout-set.c
175
window_resize(w, lc->sx, lc->sy, -1, -1);
usr.bin/tmux/layout-set.c
176
notify_window("window-layout-changed", w);
usr.bin/tmux/layout-set.c
177
server_redraw_window(w);
usr.bin/tmux/layout-set.c
181
layout_set_even_h(struct window *w)
usr.bin/tmux/layout-set.c
183
layout_set_even(w, LAYOUT_LEFTRIGHT);
usr.bin/tmux/layout-set.c
187
layout_set_even_v(struct window *w)
usr.bin/tmux/layout-set.c
189
layout_set_even(w, LAYOUT_TOPBOTTOM);
usr.bin/tmux/layout-set.c
193
layout_set_main_h(struct window *w)
usr.bin/tmux/layout-set.c
201
layout_print_cell(w->layout_root, __func__, 1);
usr.bin/tmux/layout-set.c
204
n = window_count_panes(w);
usr.bin/tmux/layout-set.c
210
sy = w->sy - 1;
usr.bin/tmux/layout-set.c
213
s = options_get_string(w->options, "main-pane-height");
usr.bin/tmux/layout-set.c
228
s = options_get_string(w->options, "other-pane-height");
usr.bin/tmux/layout-set.c
241
if (sx < w->sx)
usr.bin/tmux/layout-set.c
242
sx = w->sx;
usr.bin/tmux/layout-set.c
245
layout_free(w);
usr.bin/tmux/layout-set.c
246
lc = w->layout_root = layout_create_cell(NULL);
usr.bin/tmux/layout-set.c
253
layout_make_leaf(lcmain, TAILQ_FIRST(&w->panes));
usr.bin/tmux/layout-set.c
260
wp = TAILQ_NEXT(TAILQ_FIRST(&w->panes), entry);
usr.bin/tmux/layout-set.c
268
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/layout-set.c
269
if (wp == TAILQ_FIRST(&w->panes))
usr.bin/tmux/layout-set.c
276
layout_spread_cell(w, lcother);
usr.bin/tmux/layout-set.c
280
layout_fix_offsets(w);
usr.bin/tmux/layout-set.c
281
layout_fix_panes(w, NULL);
usr.bin/tmux/layout-set.c
283
layout_print_cell(w->layout_root, __func__, 1);
usr.bin/tmux/layout-set.c
285
window_resize(w, lc->sx, lc->sy, -1, -1);
usr.bin/tmux/layout-set.c
286
notify_window("window-layout-changed", w);
usr.bin/tmux/layout-set.c
287
server_redraw_window(w);
usr.bin/tmux/layout-set.c
291
layout_set_main_h_mirrored(struct window *w)
usr.bin/tmux/layout-set.c
299
layout_print_cell(w->layout_root, __func__, 1);
usr.bin/tmux/layout-set.c
302
n = window_count_panes(w);
usr.bin/tmux/layout-set.c
308
sy = w->sy - 1;
usr.bin/tmux/layout-set.c
311
s = options_get_string(w->options, "main-pane-height");
usr.bin/tmux/layout-set.c
326
s = options_get_string(w->options, "other-pane-height");
usr.bin/tmux/layout-set.c
339
if (sx < w->sx)
usr.bin/tmux/layout-set.c
340
sx = w->sx;
usr.bin/tmux/layout-set.c
343
layout_free(w);
usr.bin/tmux/layout-set.c
344
lc = w->layout_root = layout_create_cell(NULL);
usr.bin/tmux/layout-set.c
352
wp = TAILQ_NEXT(TAILQ_FIRST(&w->panes), entry);
usr.bin/tmux/layout-set.c
360
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/layout-set.c
361
if (wp == TAILQ_FIRST(&w->panes))
usr.bin/tmux/layout-set.c
368
layout_spread_cell(w, lcother);
usr.bin/tmux/layout-set.c
374
layout_make_leaf(lcmain, TAILQ_FIRST(&w->panes));
usr.bin/tmux/layout-set.c
378
layout_fix_offsets(w);
usr.bin/tmux/layout-set.c
379
layout_fix_panes(w, NULL);
usr.bin/tmux/layout-set.c
381
layout_print_cell(w->layout_root, __func__, 1);
usr.bin/tmux/layout-set.c
383
window_resize(w, lc->sx, lc->sy, -1, -1);
usr.bin/tmux/layout-set.c
384
notify_window("window-layout-changed", w);
usr.bin/tmux/layout-set.c
385
server_redraw_window(w);
usr.bin/tmux/layout-set.c
389
layout_set_main_v(struct window *w)
usr.bin/tmux/layout-set.c
397
layout_print_cell(w->layout_root, __func__, 1);
usr.bin/tmux/layout-set.c
400
n = window_count_panes(w);
usr.bin/tmux/layout-set.c
406
sx = w->sx - 1;
usr.bin/tmux/layout-set.c
409
s = options_get_string(w->options, "main-pane-width");
usr.bin/tmux/layout-set.c
424
s = options_get_string(w->options, "other-pane-width");
usr.bin/tmux/layout-set.c
437
if (sy < w->sy)
usr.bin/tmux/layout-set.c
438
sy = w->sy;
usr.bin/tmux/layout-set.c
441
layout_free(w);
usr.bin/tmux/layout-set.c
442
lc = w->layout_root = layout_create_cell(NULL);
usr.bin/tmux/layout-set.c
449
layout_make_leaf(lcmain, TAILQ_FIRST(&w->panes));
usr.bin/tmux/layout-set.c
456
wp = TAILQ_NEXT(TAILQ_FIRST(&w->panes), entry);
usr.bin/tmux/layout-set.c
464
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/layout-set.c
465
if (wp == TAILQ_FIRST(&w->panes))
usr.bin/tmux/layout-set.c
472
layout_spread_cell(w, lcother);
usr.bin/tmux/layout-set.c
476
layout_fix_offsets(w);
usr.bin/tmux/layout-set.c
477
layout_fix_panes(w, NULL);
usr.bin/tmux/layout-set.c
479
layout_print_cell(w->layout_root, __func__, 1);
usr.bin/tmux/layout-set.c
481
window_resize(w, lc->sx, lc->sy, -1, -1);
usr.bin/tmux/layout-set.c
482
notify_window("window-layout-changed", w);
usr.bin/tmux/layout-set.c
483
server_redraw_window(w);
usr.bin/tmux/layout-set.c
487
layout_set_main_v_mirrored(struct window *w)
usr.bin/tmux/layout-set.c
495
layout_print_cell(w->layout_root, __func__, 1);
usr.bin/tmux/layout-set.c
498
n = window_count_panes(w);
usr.bin/tmux/layout-set.c
504
sx = w->sx - 1;
usr.bin/tmux/layout-set.c
507
s = options_get_string(w->options, "main-pane-width");
usr.bin/tmux/layout-set.c
522
s = options_get_string(w->options, "other-pane-width");
usr.bin/tmux/layout-set.c
535
if (sy < w->sy)
usr.bin/tmux/layout-set.c
536
sy = w->sy;
usr.bin/tmux/layout-set.c
539
layout_free(w);
usr.bin/tmux/layout-set.c
540
lc = w->layout_root = layout_create_cell(NULL);
usr.bin/tmux/layout-set.c
548
wp = TAILQ_NEXT(TAILQ_FIRST(&w->panes), entry);
usr.bin/tmux/layout-set.c
556
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/layout-set.c
557
if (wp == TAILQ_FIRST(&w->panes))
usr.bin/tmux/layout-set.c
564
layout_spread_cell(w, lcother);
usr.bin/tmux/layout-set.c
570
layout_make_leaf(lcmain, TAILQ_FIRST(&w->panes));
usr.bin/tmux/layout-set.c
574
layout_fix_offsets(w);
usr.bin/tmux/layout-set.c
575
layout_fix_panes(w, NULL);
usr.bin/tmux/layout-set.c
577
layout_print_cell(w->layout_root, __func__, 1);
usr.bin/tmux/layout-set.c
579
window_resize(w, lc->sx, lc->sy, -1, -1);
usr.bin/tmux/layout-set.c
580
notify_window("window-layout-changed", w);
usr.bin/tmux/layout-set.c
581
server_redraw_window(w);
usr.bin/tmux/layout-set.c
585
layout_set_tiled(struct window *w)
usr.bin/tmux/layout-set.c
587
struct options *oo = w->options;
usr.bin/tmux/layout-set.c
593
layout_print_cell(w->layout_root, __func__, 1);
usr.bin/tmux/layout-set.c
596
n = window_count_panes(w);
usr.bin/tmux/layout-set.c
613
width = (w->sx - (columns - 1)) / columns;
usr.bin/tmux/layout-set.c
616
height = (w->sy - (rows - 1)) / rows;
usr.bin/tmux/layout-set.c
621
layout_free(w);
usr.bin/tmux/layout-set.c
622
lc = w->layout_root = layout_create_cell(NULL);
usr.bin/tmux/layout-set.c
624
if (sx < w->sx)
usr.bin/tmux/layout-set.c
625
sx = w->sx;
usr.bin/tmux/layout-set.c
627
if (sy < w->sy)
usr.bin/tmux/layout-set.c
628
sy = w->sy;
usr.bin/tmux/layout-set.c
633
wp = TAILQ_FIRST(&w->panes);
usr.bin/tmux/layout-set.c
641
layout_set_size(lcrow, w->sx, height, 0, 0);
usr.bin/tmux/layout-set.c
672
if (w->sx <= used)
usr.bin/tmux/layout-set.c
675
layout_resize_adjust(w, lcchild, LAYOUT_LEFTRIGHT,
usr.bin/tmux/layout-set.c
676
w->sx - used);
usr.bin/tmux/layout-set.c
681
if (w->sy > used) {
usr.bin/tmux/layout-set.c
683
layout_resize_adjust(w, lcrow, LAYOUT_TOPBOTTOM,
usr.bin/tmux/layout-set.c
684
w->sy - used);
usr.bin/tmux/layout-set.c
688
layout_fix_offsets(w);
usr.bin/tmux/layout-set.c
689
layout_fix_panes(w, NULL);
usr.bin/tmux/layout-set.c
691
layout_print_cell(w->layout_root, __func__, 1);
usr.bin/tmux/layout-set.c
693
window_resize(w, lc->sx, lc->sy, -1, -1);
usr.bin/tmux/layout-set.c
694
notify_window("window-layout-changed", w);
usr.bin/tmux/layout-set.c
695
server_redraw_window(w);
usr.bin/tmux/layout-set.c
74
layout_set_select(struct window *w, u_int layout)
usr.bin/tmux/layout-set.c
80
layout_sets[layout].arrange(w);
usr.bin/tmux/layout-set.c
82
w->lastlayout = layout;
usr.bin/tmux/layout-set.c
87
layout_set_next(struct window *w)
usr.bin/tmux/layout-set.c
91
if (w->lastlayout == -1)
usr.bin/tmux/layout-set.c
94
layout = w->lastlayout + 1;
usr.bin/tmux/layout.c
1086
struct window *w = wp->window;
usr.bin/tmux/layout.c
1089
layout_destroy_cell(w, wp->layout_cell, &w->layout_root);
usr.bin/tmux/layout.c
1092
if (w->layout_root != NULL) {
usr.bin/tmux/layout.c
1093
layout_fix_offsets(w);
usr.bin/tmux/layout.c
1094
layout_fix_panes(w, NULL);
usr.bin/tmux/layout.c
1096
notify_window("window-layout-changed", w);
usr.bin/tmux/layout.c
1100
layout_spread_cell(struct window *w, struct layout_cell *parent)
usr.bin/tmux/layout.c
1111
status = options_get_number(w->options, "pane-border-status");
usr.bin/tmux/layout.c
1116
if (layout_add_horizontal_border(w, parent, status))
usr.bin/tmux/layout.c
1142
layout_resize_adjust(w, lc, LAYOUT_LEFTRIGHT, change);
usr.bin/tmux/layout.c
1144
if (layout_add_horizontal_border(w, lc, status))
usr.bin/tmux/layout.c
1153
layout_resize_adjust(w, lc, LAYOUT_TOPBOTTOM, change);
usr.bin/tmux/layout.c
1165
struct window *w = wp->window;
usr.bin/tmux/layout.c
1172
if (layout_spread_cell(w, parent)) {
usr.bin/tmux/layout.c
1173
layout_fix_offsets(w);
usr.bin/tmux/layout.c
1174
layout_fix_panes(w, NULL);
usr.bin/tmux/layout.c
231
layout_fix_offsets(struct window *w)
usr.bin/tmux/layout.c
233
struct layout_cell *lc = w->layout_root;
usr.bin/tmux/layout.c
243
layout_cell_is_top(struct window *w, struct layout_cell *lc)
usr.bin/tmux/layout.c
247
while (lc != w->layout_root) {
usr.bin/tmux/layout.c
259
layout_cell_is_bottom(struct window *w, struct layout_cell *lc)
usr.bin/tmux/layout.c
263
while (lc != w->layout_root) {
usr.bin/tmux/layout.c
278
layout_add_horizontal_border(struct window *w, struct layout_cell *lc,
usr.bin/tmux/layout.c
282
return (layout_cell_is_top(w, lc));
usr.bin/tmux/layout.c
284
return (layout_cell_is_bottom(w, lc));
usr.bin/tmux/layout.c
290
layout_fix_panes(struct window *w, struct window_pane *skip)
usr.bin/tmux/layout.c
297
status = options_get_number(w->options, "pane-border-status");
usr.bin/tmux/layout.c
298
scrollbars = options_get_number(w->options, "pane-scrollbars");
usr.bin/tmux/layout.c
299
sb_pos = options_get_number(w->options, "pane-scrollbars-position");
usr.bin/tmux/layout.c
301
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/layout.c
310
if (layout_add_horizontal_border(w, lc, status)) {
usr.bin/tmux/layout.c
367
layout_resize_check(struct window *w, struct layout_cell *lc,
usr.bin/tmux/layout.c
371
struct style *sb_style = &w->active->scrollbar_style;
usr.bin/tmux/layout.c
375
status = options_get_number(w->options, "pane-border-status");
usr.bin/tmux/layout.c
376
scrollbars = options_get_number(w->options, "pane-scrollbars");
usr.bin/tmux/layout.c
389
if (layout_add_horizontal_border(w, lc, status))
usr.bin/tmux/layout.c
402
available += layout_resize_check(w, lcchild, type);
usr.bin/tmux/layout.c
407
available = layout_resize_check(w, lcchild, type);
usr.bin/tmux/layout.c
422
layout_resize_adjust(struct window *w, struct layout_cell *lc,
usr.bin/tmux/layout.c
440
layout_resize_adjust(w, lcchild, type, change);
usr.bin/tmux/layout.c
453
layout_resize_adjust(w, lcchild, type, 1);
usr.bin/tmux/layout.c
457
if (layout_resize_check(w, lcchild, type) > 0) {
usr.bin/tmux/layout.c
458
layout_resize_adjust(w, lcchild, type, -1);
usr.bin/tmux/layout.c
467
layout_destroy_cell(struct window *w, struct layout_cell *lc,
usr.bin/tmux/layout.c
489
layout_resize_adjust(w, lcother, lcparent->type, lc->sx + 1);
usr.bin/tmux/layout.c
491
layout_resize_adjust(w, lcother, lcparent->type, lc->sy + 1);
usr.bin/tmux/layout.c
517
layout_init(struct window *w, struct window_pane *wp)
usr.bin/tmux/layout.c
521
lc = w->layout_root = layout_create_cell(NULL);
usr.bin/tmux/layout.c
522
layout_set_size(lc, w->sx, w->sy, 0, 0);
usr.bin/tmux/layout.c
524
layout_fix_panes(w, NULL);
usr.bin/tmux/layout.c
528
layout_free(struct window *w)
usr.bin/tmux/layout.c
530
layout_free_cell(w->layout_root);
usr.bin/tmux/layout.c
535
layout_resize(struct window *w, u_int sx, u_int sy)
usr.bin/tmux/layout.c
537
struct layout_cell *lc = w->layout_root;
usr.bin/tmux/layout.c
554
xlimit = layout_resize_check(w, lc, LAYOUT_LEFTRIGHT);
usr.bin/tmux/layout.c
564
layout_resize_adjust(w, lc, LAYOUT_LEFTRIGHT, xchange);
usr.bin/tmux/layout.c
568
ylimit = layout_resize_check(w, lc, LAYOUT_TOPBOTTOM);
usr.bin/tmux/layout.c
578
layout_resize_adjust(w, lc, LAYOUT_TOPBOTTOM, ychange);
usr.bin/tmux/layout.c
581
layout_fix_offsets(w);
usr.bin/tmux/layout.c
582
layout_fix_panes(w, NULL);
usr.bin/tmux/layout.c
619
layout_resize_layout(struct window *w, struct layout_cell *lc,
usr.bin/tmux/layout.c
628
size = layout_resize_pane_grow(w, lc, type, needed,
usr.bin/tmux/layout.c
632
size = layout_resize_pane_shrink(w, lc, type, needed);
usr.bin/tmux/layout.c
641
layout_fix_offsets(w);
usr.bin/tmux/layout.c
642
layout_fix_panes(w, NULL);
usr.bin/tmux/layout.c
643
notify_window("window-layout-changed", w);
usr.bin/tmux/layout.c
673
layout_resize_pane_grow(struct window *w, struct layout_cell *lc,
usr.bin/tmux/layout.c
685
size = layout_resize_check(w, lcremove, type);
usr.bin/tmux/layout.c
695
size = layout_resize_check(w, lcremove, type);
usr.bin/tmux/layout.c
707
layout_resize_adjust(w, lcadd, type, size);
usr.bin/tmux/layout.c
708
layout_resize_adjust(w, lcremove, type, -size);
usr.bin/tmux/layout.c
714
layout_resize_pane_shrink(struct window *w, struct layout_cell *lc,
usr.bin/tmux/layout.c
723
size = layout_resize_check(w, lcremove, type);
usr.bin/tmux/layout.c
739
layout_resize_adjust(w, lcadd, type, size);
usr.bin/tmux/layout.c
740
layout_resize_adjust(w, lcremove, type, -size);
usr.bin/tmux/layout.c
758
layout_new_pane_size(struct window *w, u_int previous, struct layout_cell *lc,
usr.bin/tmux/layout.c
768
available = layout_resize_check(w, lc, type);
usr.bin/tmux/layout.c
796
layout_set_size_check(struct window *w, struct layout_cell *lc,
usr.bin/tmux/layout.c
824
new_size = layout_new_pane_size(w, previous, lcchild,
usr.bin/tmux/layout.c
835
if (!layout_set_size_check(w, lcchild, type, new_size))
usr.bin/tmux/layout.c
843
if (!layout_set_size_check(w, lcchild, type, size))
usr.bin/tmux/layout.c
853
layout_resize_child_cells(struct window *w, struct layout_cell *lc)
usr.bin/tmux/layout.c
887
lcchild->sx = layout_new_pane_size(w, previous, lcchild,
usr.bin/tmux/layout.c
894
lcchild->sy = layout_new_pane_size(w, previous, lcchild,
usr.bin/tmux/layout.c
898
layout_resize_child_cells(w, lcchild);
usr.bin/tmux/menu.c
516
u_int nx, ny, w, h;
usr.bin/tmux/menu.c
524
w = md->menu->width + 4;
usr.bin/tmux/menu.c
527
if (nx + w > c->tty.sx) {
usr.bin/tmux/menu.c
528
if (c->tty.sx <= w)
usr.bin/tmux/menu.c
531
nx = c->tty.sx - w;
usr.bin/tmux/mode-tree.c
1163
u_int px, py, w, h = 0;
usr.bin/tmux/mode-tree.c
1168
w = MODE_TREE_HELP_DEFAULT_WIDTH;
usr.bin/tmux/mode-tree.c
1170
lines = mtd->helpcb(&w, &item);
usr.bin/tmux/mode-tree.c
1171
if (w < MODE_TREE_HELP_DEFAULT_WIDTH)
usr.bin/tmux/mode-tree.c
1172
w = MODE_TREE_HELP_DEFAULT_WIDTH;
usr.bin/tmux/mode-tree.c
1181
if (c->tty.sx < w || c->tty.sy < h)
usr.bin/tmux/mode-tree.c
1183
px = (c->tty.sx - w) / 2;
usr.bin/tmux/mode-tree.c
1187
NULL, px, py, w, h, NULL, NULL, 0, NULL, NULL, NULL, c, s, NULL,
usr.bin/tmux/mode-tree.c
739
u_int w, h, i, j, sy, box_x, box_y, width;
usr.bin/tmux/mode-tree.c
752
w = mtd->width;
usr.bin/tmux/mode-tree.c
830
if (width > w)
usr.bin/tmux/mode-tree.c
831
width = w;
usr.bin/tmux/mode-tree.c
841
screen_write_nputs(&ctx, w, &gc0, "%s", text);
usr.bin/tmux/mode-tree.c
843
format_draw(&ctx, &gc0, w - width, mti->text,
usr.bin/tmux/mode-tree.c
848
screen_write_nputs(&ctx, w, &gc, "%s", text);
usr.bin/tmux/mode-tree.c
850
format_draw(&ctx, &gc, w - width, mti->text,
usr.bin/tmux/mode-tree.c
867
if (sy <= 4 || h < 2 || sy - h <= 4 || w <= 4)
usr.bin/tmux/mode-tree.c
876
screen_write_box(&ctx, w, sy - h, BOX_LINES_DEFAULT, NULL, NULL);
usr.bin/tmux/mode-tree.c
884
if (w - 2 >= strlen(text)) {
usr.bin/tmux/mode-tree.c
892
if (mtd->filter != NULL && w - 2 >= strlen(text) + 10 + n + 2) {
usr.bin/tmux/mode-tree.c
904
box_x = w - 4;
usr.bin/tmux/names.c
100
server_status_window(w);
usr.bin/tmux/names.c
102
log_debug("@%u name not changed (still %s)", w->id, w->name);
usr.bin/tmux/names.c
108
default_window_name(struct window *w)
usr.bin/tmux/names.c
112
if (w->active == NULL)
usr.bin/tmux/names.c
114
cmd = cmd_stringify_argv(w->active->argc, w->active->argv);
usr.bin/tmux/names.c
118
s = parse_window_name(w->active->shell);
usr.bin/tmux/names.c
124
format_window_name(struct window *w)
usr.bin/tmux/names.c
130
ft = format_create(NULL, NULL, FORMAT_WINDOW|w->id, 0);
usr.bin/tmux/names.c
131
format_defaults_window(ft, w);
usr.bin/tmux/names.c
132
format_defaults_pane(ft, w->active);
usr.bin/tmux/names.c
134
fmt = options_get_string(w->options, "automatic-rename-format");
usr.bin/tmux/names.c
36
struct window *w = arg;
usr.bin/tmux/names.c
39
log_debug("@%u name timer expired", w->id);
usr.bin/tmux/names.c
43
name_time_expired(struct window *w, struct timeval *tv)
usr.bin/tmux/names.c
47
timersub(tv, &w->name_time, &offset);
usr.bin/tmux/names.c
54
check_window_name(struct window *w)
usr.bin/tmux/names.c
60
if (w->active == NULL)
usr.bin/tmux/names.c
63
if (!options_get_number(w->options, "automatic-rename"))
usr.bin/tmux/names.c
66
if (~w->active->flags & PANE_CHANGED) {
usr.bin/tmux/names.c
67
log_debug("@%u active pane not changed", w->id);
usr.bin/tmux/names.c
70
log_debug("@%u active pane changed", w->id);
usr.bin/tmux/names.c
73
left = name_time_expired(w, &tv);
usr.bin/tmux/names.c
75
if (!event_initialized(&w->name_event))
usr.bin/tmux/names.c
76
evtimer_set(&w->name_event, name_time_callback, w);
usr.bin/tmux/names.c
77
if (!evtimer_pending(&w->name_event, NULL)) {
usr.bin/tmux/names.c
78
log_debug("@%u name timer queued (%d left)", w->id,
usr.bin/tmux/names.c
82
event_add(&w->name_event, &next);
usr.bin/tmux/names.c
85
w->id, left);
usr.bin/tmux/names.c
89
memcpy(&w->name_time, &tv, sizeof w->name_time);
usr.bin/tmux/names.c
90
if (event_initialized(&w->name_event))
usr.bin/tmux/names.c
91
evtimer_del(&w->name_event);
usr.bin/tmux/names.c
93
w->active->flags &= ~PANE_CHANGED;
usr.bin/tmux/names.c
95
name = format_window_name(w);
usr.bin/tmux/names.c
96
if (strcmp(name, w->name) != 0) {
usr.bin/tmux/names.c
97
log_debug("@%u new name %s (was %s)", w->id, name, w->name);
usr.bin/tmux/names.c
98
window_set_name(w, name);
usr.bin/tmux/names.c
99
server_redraw_window_borders(w);
usr.bin/tmux/notify.c
181
struct session *s, struct window *w, struct window_pane *wp,
usr.bin/tmux/notify.c
196
ne->window = w;
usr.bin/tmux/notify.c
208
if (w != NULL) {
usr.bin/tmux/notify.c
209
format_add(ne->formats, "hook_window", "@%u", w->id);
usr.bin/tmux/notify.c
210
format_add(ne->formats, "hook_window_name", "%s", w->name);
usr.bin/tmux/notify.c
220
if (w != NULL)
usr.bin/tmux/notify.c
221
window_add_ref(w, __func__);
usr.bin/tmux/notify.c
243
ne.window = target->w;
usr.bin/tmux/notify.c
285
notify_session_window(const char *name, struct session *s, struct window *w)
usr.bin/tmux/notify.c
289
cmd_find_from_session_window(&fs, s, w, 0);
usr.bin/tmux/notify.c
290
notify_add(name, &fs, NULL, s, w, NULL, NULL);
usr.bin/tmux/notify.c
294
notify_window(const char *name, struct window *w)
usr.bin/tmux/notify.c
298
cmd_find_from_window(&fs, w, 0);
usr.bin/tmux/notify.c
299
notify_add(name, &fs, NULL, NULL, w, NULL, NULL);
usr.bin/tmux/options.c
1184
struct window *w;
usr.bin/tmux/options.c
1190
RB_FOREACH(w, windows, &windows) {
usr.bin/tmux/options.c
1191
if (w->active == NULL)
usr.bin/tmux/options.c
1193
if (options_get_number(w->options, name))
usr.bin/tmux/options.c
1194
w->active->flags |= PANE_CHANGED;
usr.bin/tmux/options.c
1206
RB_FOREACH(w, windows, &windows)
usr.bin/tmux/options.c
1207
window_set_fill_character(w);
usr.bin/tmux/options.c
1240
RB_FOREACH(w, windows, &windows)
usr.bin/tmux/options.c
1241
layout_fix_panes(w, NULL);
usr.bin/tmux/options.c
1248
RB_FOREACH(w, windows, &windows)
usr.bin/tmux/options.c
1249
layout_fix_panes(w, NULL);
usr.bin/tmux/popup.c
411
struct window *w = s->curw->window;
usr.bin/tmux/popup.c
413
struct window_pane *wp = w->active, *new_wp;
usr.bin/tmux/popup.c
417
window_unzoom(w, 1);
usr.bin/tmux/popup.c
444
window_set_active_pane(w, new_wp, 1);
usr.bin/tmux/resize.c
105
if (ignore_client_size(loop) || !session_has(loop->session, w))
usr.bin/tmux/resize.c
115
struct session *s, struct window *w, int (*skip_client)(struct client *,
usr.bin/tmux/resize.c
130
} else if (w != NULL && type == WINDOW_SIZE_MANUAL) {
usr.bin/tmux/resize.c
131
*sx = w->manual_sx;
usr.bin/tmux/resize.c
132
*sy = w->manual_sy;
usr.bin/tmux/resize.c
144
if (type == WINDOW_SIZE_LATEST && w != NULL)
usr.bin/tmux/resize.c
145
n = clients_with_window(w);
usr.bin/tmux/resize.c
157
if (loop != c && skip_client(loop, type, current, s, w)) {
usr.bin/tmux/resize.c
167
if (type == WINDOW_SIZE_LATEST && n > 1 && loop != w->latest) {
usr.bin/tmux/resize.c
176
if (w != NULL)
usr.bin/tmux/resize.c
177
cw = server_client_get_client_window(loop, w->id);
usr.bin/tmux/resize.c
222
if (w != NULL) {
usr.bin/tmux/resize.c
226
if (loop != c && skip_client(loop, type, current, s, w))
usr.bin/tmux/resize.c
232
cw = server_client_get_client_window(loop, w->id);
usr.bin/tmux/resize.c
238
loop->name, w->id, cw->sx, cw->sy);
usr.bin/tmux/resize.c
253
return (w != NULL);
usr.bin/tmux/resize.c
26
resize_window(struct window *w, u_int sx, u_int sy, int xpixel, int ypixel)
usr.bin/tmux/resize.c
268
__unused int current, struct session *s, struct window *w)
usr.bin/tmux/resize.c
270
if (w != NULL && !session_has(loop->session, w))
usr.bin/tmux/resize.c
272
if (w == NULL && loop->session != s)
usr.bin/tmux/resize.c
278
default_window_size(struct client *c, struct session *s, struct window *w,
usr.bin/tmux/resize.c
312
if (!clients_calculate_size(type, 0, c, s, w,
usr.bin/tmux/resize.c
338
int current, __unused struct session *s, struct window *w)
usr.bin/tmux/resize.c
348
return (loop->session->curw->window != w);
usr.bin/tmux/resize.c
349
return (session_has(loop->session, w) == 0);
usr.bin/tmux/resize.c
353
recalculate_size(struct window *w, int now)
usr.bin/tmux/resize.c
362
if (w->active == NULL)
usr.bin/tmux/resize.c
364
log_debug("%s: @%u is %ux%u", __func__, w->id, w->sx, w->sy);
usr.bin/tmux/resize.c
371
type = options_get_number(w->options, "window-size");
usr.bin/tmux/resize.c
372
current = options_get_number(w->options, "aggressive-resize");
usr.bin/tmux/resize.c
375
changed = clients_calculate_size(type, current, NULL, NULL, w,
usr.bin/tmux/resize.c
382
if (w->flags & WINDOW_RESIZE) {
usr.bin/tmux/resize.c
383
if (!now && changed && w->new_sx == sx && w->new_sy == sy)
usr.bin/tmux/resize.c
386
if (!now && changed && w->sx == sx && w->sy == sy)
usr.bin/tmux/resize.c
395
log_debug("%s: @%u no size change", __func__, w->id);
usr.bin/tmux/resize.c
396
tty_update_window_offset(w);
usr.bin/tmux/resize.c
405
log_debug("%s: @%u new size %ux%u", __func__, w->id, sx, sy);
usr.bin/tmux/resize.c
407
resize_window(w, sx, sy, xpixel, ypixel);
usr.bin/tmux/resize.c
409
w->new_sx = sx;
usr.bin/tmux/resize.c
41
zoomed = w->flags & WINDOW_ZOOMED;
usr.bin/tmux/resize.c
410
w->new_sy = sy;
usr.bin/tmux/resize.c
411
w->new_xpixel = xpixel;
usr.bin/tmux/resize.c
412
w->new_ypixel = ypixel;
usr.bin/tmux/resize.c
414
w->flags |= WINDOW_RESIZE;
usr.bin/tmux/resize.c
415
tty_update_window_offset(w);
usr.bin/tmux/resize.c
43
window_unzoom(w, 1);
usr.bin/tmux/resize.c
430
struct window *w;
usr.bin/tmux/resize.c
458
RB_FOREACH(w, windows, &windows)
usr.bin/tmux/resize.c
459
recalculate_size(w, now);
usr.bin/tmux/resize.c
46
layout_resize(w, sx, sy);
usr.bin/tmux/resize.c
49
if (sx < w->layout_root->sx)
usr.bin/tmux/resize.c
50
sx = w->layout_root->sx;
usr.bin/tmux/resize.c
51
if (sy < w->layout_root->sy)
usr.bin/tmux/resize.c
52
sy = w->layout_root->sy;
usr.bin/tmux/resize.c
53
window_resize(w, sx, sy, xpixel, ypixel);
usr.bin/tmux/resize.c
54
log_debug("%s: @%u resized to %ux%u; layout %ux%u", __func__, w->id,
usr.bin/tmux/resize.c
55
sx, sy, w->layout_root->sx, w->layout_root->sy);
usr.bin/tmux/resize.c
59
window_zoom(w->active);
usr.bin/tmux/resize.c
61
tty_update_window_offset(w);
usr.bin/tmux/resize.c
62
server_redraw_window(w);
usr.bin/tmux/resize.c
63
notify_window("window-layout-changed", w);
usr.bin/tmux/resize.c
64
notify_window("window-resized", w);
usr.bin/tmux/resize.c
65
w->flags &= ~WINDOW_RESIZE;
usr.bin/tmux/resize.c
99
clients_with_window(struct window *w)
usr.bin/tmux/screen-redraw.c
1015
struct window *w = c->session->curw->window;
usr.bin/tmux/screen-redraw.c
1018
log_debug("%s: %s @%u", __func__, c->name, w->id);
usr.bin/tmux/screen-redraw.c
1020
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/screen-redraw.c
103
screen_redraw_two_panes(struct window *w, int direction)
usr.bin/tmux/screen-redraw.c
107
wp = TAILQ_NEXT(TAILQ_FIRST(&w->panes), entry);
usr.bin/tmux/screen-redraw.c
219
struct window *w = c->session->curw->window;
usr.bin/tmux/screen-redraw.c
221
u_int sy = w->sy;
usr.bin/tmux/screen-redraw.c
227
if (px > w->sx || py > sy)
usr.bin/tmux/screen-redraw.c
231
if (px == w->sx || py == sy)
usr.bin/tmux/screen-redraw.c
235
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/screen-redraw.c
257
struct window *w = c->session->curw->window;
usr.bin/tmux/screen-redraw.c
258
u_int sx = w->sx, sy = w->sy;
usr.bin/tmux/screen-redraw.c
339
struct window *w = c->session->curw->window;
usr.bin/tmux/screen-redraw.c
342
u_int sx = w->sx, sy = w->sy;
usr.bin/tmux/screen-redraw.c
373
wp = TAILQ_FIRST(&w->panes);
usr.bin/tmux/screen-redraw.c
425
wp = TAILQ_FIRST(&w->panes);
usr.bin/tmux/screen-redraw.c
449
struct window *w = wp->window;
usr.bin/tmux/screen-redraw.c
468
style_apply(&gc, w->options, "pane-active-border-style", ft);
usr.bin/tmux/screen-redraw.c
470
style_apply(&gc, w->options, "pane-border-style", ft);
usr.bin/tmux/screen-redraw.c
492
screen_redraw_border_set(w, wp, pane_lines, cell_type, &gc);
usr.bin/tmux/screen-redraw.c
520
struct window *w = c->session->curw->window;
usr.bin/tmux/screen-redraw.c
526
log_debug("%s: %s @%u", __func__, c->name, w->id);
usr.bin/tmux/screen-redraw.c
528
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/screen-redraw.c
55
screen_redraw_border_set(struct window *w, struct window_pane *wp,
usr.bin/tmux/screen-redraw.c
581
struct window *w = c->session->curw->window;
usr.bin/tmux/screen-redraw.c
60
if (cell_type == CELL_OUTSIDE && w->fill_character != NULL) {
usr.bin/tmux/screen-redraw.c
601
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/screen-redraw.c
61
utf8_copy(&gc->data, &w->fill_character[0]);
usr.bin/tmux/screen-redraw.c
618
struct window *w = s->curw->window;
usr.bin/tmux/screen-redraw.c
619
struct options *wo = w->options;
usr.bin/tmux/screen-redraw.c
642
w->id, ctx->ox, ctx->oy, ctx->sx, ctx->sy, ctx->statuslines,
usr.bin/tmux/screen-redraw.c
720
struct window *w = s->curw->window;
usr.bin/tmux/screen-redraw.c
722
struct options *oo = w->options;
usr.bin/tmux/screen-redraw.c
747
struct window *w = s->curw->window;
usr.bin/tmux/screen-redraw.c
748
struct options *oo = w->options;
usr.bin/tmux/screen-redraw.c
768
if (active == TAILQ_FIRST(&w->panes))
usr.bin/tmux/screen-redraw.c
788
if (active == TAILQ_FIRST(&w->panes))
usr.bin/tmux/screen-redraw.c
817
struct window *w = s->curw->window;
usr.bin/tmux/screen-redraw.c
818
struct options *oo = w->options;
usr.bin/tmux/screen-redraw.c
859
screen_redraw_border_set(w, wp, ctx->pane_lines, cell_type, &gc);
usr.bin/tmux/screen-redraw.c
888
struct window *w = s->curw->window;
usr.bin/tmux/screen-redraw.c
892
log_debug("%s: %s @%u", __func__, c->name, w->id);
usr.bin/tmux/screen-redraw.c
894
TAILQ_FOREACH(wp, &w->panes, entry)
usr.bin/tmux/screen-redraw.c
908
struct window *w = c->session->curw->window;
usr.bin/tmux/screen-redraw.c
911
log_debug("%s: %s @%u", __func__, c->name, w->id);
usr.bin/tmux/screen-redraw.c
913
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/screen-redraw.c
924
struct window *w = c->session->curw->window;
usr.bin/tmux/screen-redraw.c
929
log_debug("%s: %s @%u", __func__, c->name, w->id);
usr.bin/tmux/screen-redraw.c
946
struct window *w = c->session->curw->window;
usr.bin/tmux/screen-redraw.c
958
log_debug("%s: %s @%u %%%u", __func__, c->name, w->id, wp->id);
usr.bin/tmux/screen-write.c
112
w = wp->window;
usr.bin/tmux/screen-write.c
114
if (!event_initialized(&w->offset_timer))
usr.bin/tmux/screen-write.c
115
evtimer_set(&w->offset_timer, screen_write_offset_timer, w);
usr.bin/tmux/screen-write.c
116
if (!evtimer_pending(&w->offset_timer, NULL))
usr.bin/tmux/screen-write.c
117
evtimer_add(&w->offset_timer, &tv);
usr.bin/tmux/screen-write.c
82
struct window *w = data;
usr.bin/tmux/screen-write.c
84
tty_update_window_offset(w);
usr.bin/tmux/screen-write.c
92
struct window *w;
usr.bin/tmux/server-client.c
1084
struct window *w;
usr.bin/tmux/server-client.c
1088
w = c->session->curw->window;
usr.bin/tmux/server-client.c
1090
if (w->latest == c)
usr.bin/tmux/server-client.c
1092
w->latest = c;
usr.bin/tmux/server-client.c
1094
if (options_get_number(w->options, "window-size") == WINDOW_SIZE_LATEST)
usr.bin/tmux/server-client.c
1095
recalculate_size(w, 0);
usr.bin/tmux/server-client.c
1459
struct window *w;
usr.bin/tmux/server-client.c
1464
RB_FOREACH(w, windows, &windows)
usr.bin/tmux/server-client.c
1465
server_client_check_window_resize(w);
usr.bin/tmux/server-client.c
1468
RB_FOREACH(w, windows, &windows) {
usr.bin/tmux/server-client.c
1469
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/server-client.c
1493
RB_FOREACH(w, windows, &windows) {
usr.bin/tmux/server-client.c
1494
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/server-client.c
1501
check_window_name(w);
usr.bin/tmux/server-client.c
1505
RB_FOREACH(w, windows, &windows) {
usr.bin/tmux/server-client.c
1506
TAILQ_FOREACH(wp, &w->panes, entry)
usr.bin/tmux/server-client.c
1513
server_client_check_window_resize(struct window *w)
usr.bin/tmux/server-client.c
1517
if (~w->flags & WINDOW_RESIZE)
usr.bin/tmux/server-client.c
1520
TAILQ_FOREACH(wl, &w->winlinks, wentry) {
usr.bin/tmux/server-client.c
1527
log_debug("%s: resizing window @%u", __func__, w->id);
usr.bin/tmux/server-client.c
1528
resize_window(w, w->new_sx, w->new_sy, w->new_xpixel, w->new_ypixel);
usr.bin/tmux/server-client.c
1715
struct window *w = c->session->curw->window;
usr.bin/tmux/server-client.c
1788
TAILQ_FOREACH(loop, &w->panes, entry) {
usr.bin/tmux/server-client.c
1915
struct window *w = c->session->curw->window;
usr.bin/tmux/server-client.c
1923
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/server-client.c
1936
struct window *w = c->session->curw->window;
usr.bin/tmux/server-client.c
1967
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/server-client.c
1990
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/server-client.c
2029
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/server-client.c
2694
struct window *w = wp->window;
usr.bin/tmux/server-client.c
2698
cw = server_client_get_client_window(c, w->id);
usr.bin/tmux/server-client.c
374
struct window *w;
usr.bin/tmux/server-client.c
384
RB_FOREACH(w, windows, &windows) {
usr.bin/tmux/server-client.c
385
if (w->latest != c)
usr.bin/tmux/server-client.c
391
if (loop == c || s == NULL || s->curw->window != w)
usr.bin/tmux/server-client.c
608
struct window *w = wp->window;
usr.bin/tmux/server-client.c
609
struct options *wo = w->options;
usr.bin/tmux/server-client.c
668
TAILQ_FOREACH(fwp, &w->panes, entry) {
usr.bin/tmux/server-client.c
669
if ((w->flags & WINDOW_ZOOMED) &&
usr.bin/tmux/server-client.c
703
struct window *w = s->curw->window;
usr.bin/tmux/server-client.c
790
m->w = -1;
usr.bin/tmux/server-client.c
829
m->w = fwl->window->id;
usr.bin/tmux/server-client.c
831
log_debug("mouse range: window @%u", m->w);
usr.bin/tmux/server-client.c
874
w->id, m->ox, m->oy, sx, sy);
usr.bin/tmux/server-client.c
881
wp = window_get_active_at(w, px, py);
usr.bin/tmux/server-client.c
905
m->w = wp->window->id;
usr.bin/tmux/server-client.c
966
wp != w->active &&
usr.bin/tmux/server-client.c
968
window_set_active_pane(w, wp, 1);
usr.bin/tmux/server-client.c
969
server_redraw_window_borders(w);
usr.bin/tmux/server-client.c
970
server_status_window(w);
usr.bin/tmux/server-fn.c
102
c->session->curw->window == w)
usr.bin/tmux/server-fn.c
108
server_redraw_window_borders(struct window *w)
usr.bin/tmux/server-fn.c
115
c->session->curw->window == w)
usr.bin/tmux/server-fn.c
121
server_status_window(struct window *w)
usr.bin/tmux/server-fn.c
132
if (session_has(s, w))
usr.bin/tmux/server-fn.c
186
struct window *w = wp->window;
usr.bin/tmux/server-fn.c
188
if (window_count_panes(w) == 1) {
usr.bin/tmux/server-fn.c
189
server_kill_window(w, 1);
usr.bin/tmux/server-fn.c
192
server_unzoom_window(w);
usr.bin/tmux/server-fn.c
195
window_remove_pane(w, wp);
usr.bin/tmux/server-fn.c
196
server_redraw_window(w);
usr.bin/tmux/server-fn.c
201
server_kill_window(struct window *w, int renumber)
usr.bin/tmux/server-fn.c
207
if (!session_has(s, w))
usr.bin/tmux/server-fn.c
210
server_unzoom_window(w);
usr.bin/tmux/server-fn.c
211
while ((wl = winlink_find_by_window(&s->windows, w)) != NULL) {
usr.bin/tmux/server-fn.c
317
struct window *w = wp->window;
usr.bin/tmux/server-fn.c
376
server_unzoom_window(w);
usr.bin/tmux/server-fn.c
379
window_remove_pane(w, wp);
usr.bin/tmux/server-fn.c
381
if (TAILQ_EMPTY(&w->panes))
usr.bin/tmux/server-fn.c
382
server_kill_window(w, 1);
usr.bin/tmux/server-fn.c
384
server_redraw_window(w);
usr.bin/tmux/server-fn.c
508
server_unzoom_window(struct window *w)
usr.bin/tmux/server-fn.c
510
if (window_unzoom(w, 1) == 0)
usr.bin/tmux/server-fn.c
511
server_redraw_window(w);
usr.bin/tmux/server-fn.c
95
server_redraw_window(struct window *w)
usr.bin/tmux/server.c
482
struct window *w, *w1;
usr.bin/tmux/server.c
485
RB_FOREACH_SAFE(w, windows, &windows, w1) {
usr.bin/tmux/server.c
486
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/server.c
507
struct window *w;
usr.bin/tmux/server.c
513
RB_FOREACH(w, windows, &windows) {
usr.bin/tmux/server.c
514
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/server.c
76
marked_pane.w = wl->window;
usr.bin/tmux/session.c
344
session_attach(struct session *s, struct window *w, int idx, char **cause)
usr.bin/tmux/session.c
353
winlink_set_window(wl, w);
usr.bin/tmux/session.c
354
notify_session_window("window-linked", s, w);
usr.bin/tmux/session.c
383
session_has(struct session *s, struct window *w)
usr.bin/tmux/session.c
387
TAILQ_FOREACH(wl, &w->winlinks, wentry) {
usr.bin/tmux/session.c
399
session_is_linked(struct session *s, struct window *w)
usr.bin/tmux/session.c
404
return (w->references != session_group_count(sg));
usr.bin/tmux/session.c
405
return (w->references != 1);
usr.bin/tmux/sort.c
469
struct window *w;
usr.bin/tmux/sort.c
478
w = wl->window;
usr.bin/tmux/sort.c
479
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/sort.c
500
struct window *w = NULL;
usr.bin/tmux/sort.c
508
w = wl->window;
usr.bin/tmux/sort.c
509
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/sort.c
525
sort_get_panes_window(struct window *w, u_int *n,
usr.bin/tmux/sort.c
534
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/spawn.c
108
sc->wp0 = TAILQ_FIRST(&w->panes);
usr.bin/tmux/spawn.c
109
TAILQ_REMOVE(&w->panes, sc->wp0, entry);
usr.bin/tmux/spawn.c
111
layout_free(w);
usr.bin/tmux/spawn.c
112
window_destroy_panes(w);
usr.bin/tmux/spawn.c
114
TAILQ_INSERT_HEAD(&w->panes, sc->wp0, entry);
usr.bin/tmux/spawn.c
115
window_pane_resize(sc->wp0, w->sx, w->sy);
usr.bin/tmux/spawn.c
117
layout_init(w, sc->wp0);
usr.bin/tmux/spawn.c
118
w->active = NULL;
usr.bin/tmux/spawn.c
119
window_set_active_pane(w, sc->wp0, 0);
usr.bin/tmux/spawn.c
159
if ((w = window_create(sx, sy, xpixel, ypixel)) == NULL) {
usr.bin/tmux/spawn.c
167
w->latest = sc->tc;
usr.bin/tmux/spawn.c
168
winlink_set_window(sc->wl, w);
usr.bin/tmux/spawn.c
170
w = NULL;
usr.bin/tmux/spawn.c
183
free(w->name);
usr.bin/tmux/spawn.c
185
w->name = format_single(item, sc->name, c, s, NULL,
usr.bin/tmux/spawn.c
187
options_set_number(w->options, "automatic-rename", 0);
usr.bin/tmux/spawn.c
189
w->name = default_window_name(w);
usr.bin/tmux/spawn.c
198
notify_session_window("window-linked", s, w);
usr.bin/tmux/spawn.c
211
struct window *w = sc->wl->window;
usr.bin/tmux/spawn.c
271
new_wp = window_add_pane(w, NULL, hlimit, sc->flags);
usr.bin/tmux/spawn.c
272
layout_init(w, new_wp);
usr.bin/tmux/spawn.c
274
new_wp = window_add_pane(w, sc->wp0, hlimit, sc->flags);
usr.bin/tmux/spawn.c
358
ws.ws_xpixel = w->xpixel * ws.ws_col;
usr.bin/tmux/spawn.c
359
ws.ws_ypixel = w->ypixel * ws.ws_row;
usr.bin/tmux/spawn.c
391
window_remove_pane(w, new_wp);
usr.bin/tmux/spawn.c
480
if ((~sc->flags & SPAWN_DETACHED) || w->active == NULL) {
usr.bin/tmux/spawn.c
482
window_set_active_pane(w, new_wp, 0);
usr.bin/tmux/spawn.c
484
window_set_active_pane(w, new_wp, 1);
usr.bin/tmux/spawn.c
487
notify_window("window-layout-changed", w);
usr.bin/tmux/spawn.c
82
struct window *w;
usr.bin/tmux/spawn.c
95
w = sc->wl->window;
usr.bin/tmux/spawn.c
97
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/status.c
546
u_int w;
usr.bin/tmux/status.c
552
w = (c->tty.sx * (u_int)sy->width) / 100;
usr.bin/tmux/status.c
554
w = (u_int)sy->width;
usr.bin/tmux/status.c
556
w = c->tty.sx;
usr.bin/tmux/status.c
557
if (w == 0 || w > c->tty.sx)
usr.bin/tmux/status.c
558
w = c->tty.sx;
usr.bin/tmux/status.c
565
*area_x = (c->tty.sx - w) / 2;
usr.bin/tmux/status.c
568
*area_x = c->tty.sx - w;
usr.bin/tmux/status.c
577
*area_w = w;
usr.bin/tmux/tmux.h
1540
int w;
usr.bin/tmux/tty.c
1010
tty_update_window_offset(struct window *w)
usr.bin/tmux/tty.c
1017
c->session->curw->window == w)
usr.bin/tmux/tty.c
927
struct window *w = c->session->curw->window;
usr.bin/tmux/tty.c
929
return (tty->sx < w->sx || tty->sy - status_line_size(c) < w->sy);
usr.bin/tmux/tty.c
949
struct window *w = c->session->curw->window;
usr.bin/tmux/tty.c
955
if (tty->sx >= w->sx && tty->sy - lines >= w->sy) {
usr.bin/tmux/tty.c
958
*sx = w->sx;
usr.bin/tmux/tty.c
959
*sy = w->sy;
usr.bin/tmux/tty.c
968
if (c->pan_window == w) {
usr.bin/tmux/tty.c
969
if (*sx >= w->sx)
usr.bin/tmux/tty.c
971
else if (c->pan_ox + *sx > w->sx)
usr.bin/tmux/tty.c
972
c->pan_ox = w->sx - *sx;
usr.bin/tmux/tty.c
974
if (*sy >= w->sy)
usr.bin/tmux/tty.c
976
else if (c->pan_oy + *sy > w->sy)
usr.bin/tmux/tty.c
977
c->pan_oy = w->sy - *sy;
usr.bin/tmux/tty.c
991
else if (cx > w->sx - *sx)
usr.bin/tmux/tty.c
992
*ox = w->sx - *sx;
usr.bin/tmux/tty.c
998
else if (cy > w->sy - *sy)
usr.bin/tmux/tty.c
999
*oy = w->sy - *sy;
usr.bin/tmux/utf8-combined.c
174
if (w >= 0x1F3FB && w <= 0x1F3FF)
usr.bin/tmux/utf8-combined.c
89
wchar_t w, a;
usr.bin/tmux/utf8-combined.c
91
if (utf8_towc(with, &w) != UTF8_DONE)
usr.bin/tmux/utf8-combined.c
97
if ((a >= 0x1F1E6 && a <= 0x1F1FF) && (w >= 0x1F1E6 && w <= 0x1F1FF))
usr.bin/tmux/window-copy.c
4281
u_int i, b, w = width, sx = gd->sx, sy = gd->sy;
usr.bin/tmux/window-copy.c
4285
w = width;
usr.bin/tmux/window-copy.c
4286
for (i = b; i < b + w; i++) {
usr.bin/tmux/window-copy.c
4290
w += gc.data.width - 1;
usr.bin/tmux/window-copy.c
4291
w = window_copy_clip_width(w, b, sx, sy);
usr.bin/tmux/window-copy.c
4303
return (w);
usr.bin/tmux/window-copy.c
5835
struct window *w = wme->wp->window;
usr.bin/tmux/window-copy.c
5841
if (options_get_number(w->options, "mode-keys") == MODEKEY_EMACS)
usr.bin/tmux/window-customize.c
142
return (fs->w->options);
usr.bin/tmux/window-customize.c
567
WINDOW_CUSTOMIZE_WINDOW, fs.w->options,
usr.bin/tmux/window-tree.c
426
struct window *w;
usr.bin/tmux/window-tree.c
518
w = wl->window;
usr.bin/tmux/window-tree.c
535
screen_write_preview(ctx, &w->active->base, width, sy);
usr.bin/tmux/window-tree.c
537
xasprintf(&label, " %u:%s ", wl->idx, w->name);
usr.bin/tmux/window-tree.c
558
struct window *w, struct screen_write_ctx *ctx, u_int sx, u_int sy)
usr.bin/tmux/window-tree.c
569
total = window_count_panes(w);
usr.bin/tmux/window-tree.c
583
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/window-tree.c
584
if (wp == w->active)
usr.bin/tmux/window-tree.c
646
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/window-tree.c
654
if (wp == w->active)
usr.bin/tmux/window.c
101
winlink_find_by_window(struct winlinks *wwl, struct window *w)
usr.bin/tmux/window.c
106
if (wl->window == w)
usr.bin/tmux/window.c
1133
struct window *w = wp->window;
usr.bin/tmux/window.c
1157
layout_fix_panes(w, NULL);
usr.bin/tmux/window.c
1170
struct window *w = wp->window;
usr.bin/tmux/window.c
1193
layout_fix_panes(w, NULL);
usr.bin/tmux/window.c
1380
struct window *w = wp->window;
usr.bin/tmux/window.c
1384
pane_scrollbars = options_get_number(w->options, "pane-scrollbars");
usr.bin/tmux/window.c
1385
sb_pos = options_get_number(w->options, "pane-scrollbars-position");
usr.bin/tmux/window.c
1409
struct window *w;
usr.bin/tmux/window.c
1417
w = wp->window;
usr.bin/tmux/window.c
1418
status = options_get_number(w->options, "pane-border-status");
usr.bin/tmux/window.c
1428
edge = w->sy + 1;
usr.bin/tmux/window.c
1431
edge = w->sy;
usr.bin/tmux/window.c
1434
edge = w->sy + 1;
usr.bin/tmux/window.c
1440
TAILQ_FOREACH(next, &w->panes, entry) {
usr.bin/tmux/window.c
1470
struct window *w;
usr.bin/tmux/window.c
1478
w = wp->window;
usr.bin/tmux/window.c
1479
status = options_get_number(w->options, "pane-border-status");
usr.bin/tmux/window.c
1488
if (edge >= w->sy)
usr.bin/tmux/window.c
1491
if (edge >= w->sy - 1)
usr.bin/tmux/window.c
1494
if (edge >= w->sy)
usr.bin/tmux/window.c
1501
TAILQ_FOREACH(next, &w->panes, entry) {
usr.bin/tmux/window.c
1531
struct window *w;
usr.bin/tmux/window.c
1539
w = wp->window;
usr.bin/tmux/window.c
1548
edge = w->sx + 1;
usr.bin/tmux/window.c
1553
TAILQ_FOREACH(next, &w->panes, entry) {
usr.bin/tmux/window.c
1583
struct window *w;
usr.bin/tmux/window.c
1591
w = wp->window;
usr.bin/tmux/window.c
1599
if (edge >= w->sx)
usr.bin/tmux/window.c
1605
TAILQ_FOREACH(next, &w->panes, entry) {
usr.bin/tmux/window.c
1769
window_set_fill_character(struct window *w)
usr.bin/tmux/window.c
1774
free(w->fill_character);
usr.bin/tmux/window.c
1775
w->fill_character = NULL;
usr.bin/tmux/window.c
1777
value = options_get_string(w->options, "fill-character");
usr.bin/tmux/window.c
1781
w->fill_character = ud;
usr.bin/tmux/window.c
1839
struct window *w = wp->window;
usr.bin/tmux/window.c
1845
if (loop->session == NULL || !session_has(loop->session, w))
usr.bin/tmux/window.c
186
winlink_set_window(struct winlink *wl, struct window *w)
usr.bin/tmux/window.c
1880
struct window *w = wp->window;
usr.bin/tmux/window.c
1886
if (loop->session == NULL || !session_has(loop->session, w))
usr.bin/tmux/window.c
1917
struct window *w;
usr.bin/tmux/window.c
192
TAILQ_INSERT_TAIL(&w->winlinks, wl, wentry);
usr.bin/tmux/window.c
1924
w = wp->window;
usr.bin/tmux/window.c
193
wl->window = w;
usr.bin/tmux/window.c
1938
if (loop->session == NULL || !session_has(loop->session, w))
usr.bin/tmux/window.c
194
window_add_ref(w, __func__);
usr.bin/tmux/window.c
1996
struct window *w = wp->window;
usr.bin/tmux/window.c
1997
struct options *wo = w->options;
usr.bin/tmux/window.c
200
struct window *w = wl->window;
usr.bin/tmux/window.c
202
if (w != NULL) {
usr.bin/tmux/window.c
203
TAILQ_REMOVE(&w->winlinks, wl, wentry);
usr.bin/tmux/window.c
204
window_remove_ref(w, __func__);
usr.bin/tmux/window.c
283
struct window w;
usr.bin/tmux/window.c
285
w.id = id;
usr.bin/tmux/window.c
286
return (RB_FIND(windows, &windows, &w));
usr.bin/tmux/window.c
290
window_update_activity(struct window *w)
usr.bin/tmux/window.c
292
gettimeofday(&w->activity_time, NULL);
usr.bin/tmux/window.c
293
alerts_queue(w, WINDOW_ACTIVITY);
usr.bin/tmux/window.c
299
struct window *w;
usr.bin/tmux/window.c
306
w = xcalloc(1, sizeof *w);
usr.bin/tmux/window.c
307
w->name = xstrdup("");
usr.bin/tmux/window.c
308
w->flags = 0;
usr.bin/tmux/window.c
310
TAILQ_INIT(&w->panes);
usr.bin/tmux/window.c
311
TAILQ_INIT(&w->last_panes);
usr.bin/tmux/window.c
312
w->active = NULL;
usr.bin/tmux/window.c
314
w->lastlayout = -1;
usr.bin/tmux/window.c
315
w->layout_root = NULL;
usr.bin/tmux/window.c
317
w->sx = sx;
usr.bin/tmux/window.c
318
w->sy = sy;
usr.bin/tmux/window.c
319
w->manual_sx = sx;
usr.bin/tmux/window.c
320
w->manual_sy = sy;
usr.bin/tmux/window.c
321
w->xpixel = xpixel;
usr.bin/tmux/window.c
322
w->ypixel = ypixel;
usr.bin/tmux/window.c
324
w->options = options_create(global_w_options);
usr.bin/tmux/window.c
326
w->references = 0;
usr.bin/tmux/window.c
327
TAILQ_INIT(&w->winlinks);
usr.bin/tmux/window.c
329
w->id = next_window_id++;
usr.bin/tmux/window.c
330
RB_INSERT(windows, &windows, w);
usr.bin/tmux/window.c
332
window_set_fill_character(w);
usr.bin/tmux/window.c
334
if (gettimeofday(&w->creation_time, NULL) != 0)
usr.bin/tmux/window.c
336
window_update_activity(w);
usr.bin/tmux/window.c
338
log_debug("%s: @%u create %ux%u (%ux%u)", __func__, w->id, sx, sy,
usr.bin/tmux/window.c
339
w->xpixel, w->ypixel);
usr.bin/tmux/window.c
340
return (w);
usr.bin/tmux/window.c
344
window_destroy(struct window *w)
usr.bin/tmux/window.c
346
log_debug("window @%u destroyed (%d references)", w->id, w->references);
usr.bin/tmux/window.c
348
window_unzoom(w, 0);
usr.bin/tmux/window.c
349
RB_REMOVE(windows, &windows, w);
usr.bin/tmux/window.c
351
if (w->layout_root != NULL)
usr.bin/tmux/window.c
352
layout_free_cell(w->layout_root);
usr.bin/tmux/window.c
353
if (w->saved_layout_root != NULL)
usr.bin/tmux/window.c
354
layout_free_cell(w->saved_layout_root);
usr.bin/tmux/window.c
355
free(w->old_layout);
usr.bin/tmux/window.c
357
window_destroy_panes(w);
usr.bin/tmux/window.c
359
if (event_initialized(&w->name_event))
usr.bin/tmux/window.c
360
evtimer_del(&w->name_event);
usr.bin/tmux/window.c
362
if (event_initialized(&w->alerts_timer))
usr.bin/tmux/window.c
363
evtimer_del(&w->alerts_timer);
usr.bin/tmux/window.c
364
if (event_initialized(&w->offset_timer))
usr.bin/tmux/window.c
365
event_del(&w->offset_timer);
usr.bin/tmux/window.c
367
options_free(w->options);
usr.bin/tmux/window.c
368
free(w->fill_character);
usr.bin/tmux/window.c
370
free(w->name);
usr.bin/tmux/window.c
371
free(w);
usr.bin/tmux/window.c
392
window_add_ref(struct window *w, const char *from)
usr.bin/tmux/window.c
394
w->references++;
usr.bin/tmux/window.c
395
log_debug("%s: @%u %s, now %d", __func__, w->id, from, w->references);
usr.bin/tmux/window.c
399
window_remove_ref(struct window *w, const char *from)
usr.bin/tmux/window.c
401
w->references--;
usr.bin/tmux/window.c
402
log_debug("%s: @%u %s, now %d", __func__, w->id, from, w->references);
usr.bin/tmux/window.c
404
if (w->references == 0)
usr.bin/tmux/window.c
405
window_destroy(w);
usr.bin/tmux/window.c
409
window_set_name(struct window *w, const char *new_name)
usr.bin/tmux/window.c
411
free(w->name);
usr.bin/tmux/window.c
412
utf8_stravis(&w->name, new_name, VIS_OCTAL|VIS_CSTYLE|VIS_TAB|VIS_NL);
usr.bin/tmux/window.c
413
notify_window("window-renamed", w);
usr.bin/tmux/window.c
417
window_resize(struct window *w, u_int sx, u_int sy, int xpixel, int ypixel)
usr.bin/tmux/window.c
424
log_debug("%s: @%u resize %ux%u (%ux%u)", __func__, w->id, sx, sy,
usr.bin/tmux/window.c
425
xpixel == -1 ? w->xpixel : (u_int)xpixel,
usr.bin/tmux/window.c
426
ypixel == -1 ? w->ypixel : (u_int)ypixel);
usr.bin/tmux/window.c
427
w->sx = sx;
usr.bin/tmux/window.c
428
w->sy = sy;
usr.bin/tmux/window.c
430
w->xpixel = xpixel;
usr.bin/tmux/window.c
432
w->ypixel = ypixel;
usr.bin/tmux/window.c
438
struct window *w = wp->window;
usr.bin/tmux/window.c
449
ws.ws_xpixel = w->xpixel * ws.ws_col;
usr.bin/tmux/window.c
450
ws.ws_ypixel = w->ypixel * ws.ws_row;
usr.bin/tmux/window.c
456
window_has_pane(struct window *w, struct window_pane *wp)
usr.bin/tmux/window.c
460
TAILQ_FOREACH(wp1, &w->panes, entry) {
usr.bin/tmux/window.c
468
window_update_focus(struct window *w)
usr.bin/tmux/window.c
470
if (w != NULL) {
usr.bin/tmux/window.c
471
log_debug("%s: @%u", __func__, w->id);
usr.bin/tmux/window.c
472
window_pane_update_focus(w->active);
usr.bin/tmux/window.c
515
window_set_active_pane(struct window *w, struct window_pane *wp, int notify)
usr.bin/tmux/window.c
521
if (wp == w->active)
usr.bin/tmux/window.c
523
lastwp = w->active;
usr.bin/tmux/window.c
525
window_pane_stack_remove(&w->last_panes, wp);
usr.bin/tmux/window.c
526
window_pane_stack_push(&w->last_panes, lastwp);
usr.bin/tmux/window.c
528
w->active = wp;
usr.bin/tmux/window.c
529
w->active->active_point = next_active_point++;
usr.bin/tmux/window.c
530
w->active->flags |= PANE_CHANGED;
usr.bin/tmux/window.c
534
window_pane_update_focus(w->active);
usr.bin/tmux/window.c
537
tty_update_window_offset(w);
usr.bin/tmux/window.c
540
notify_window("window-pane-changed", w);
usr.bin/tmux/window.c
553
window_redraw_active_switch(struct window *w, struct window_pane *wp)
usr.bin/tmux/window.c
558
if (wp == w->active)
usr.bin/tmux/window.c
582
if (wp == w->active)
usr.bin/tmux/window.c
584
wp = w->active;
usr.bin/tmux/window.c
589
window_get_active_at(struct window *w, u_int x, u_int y)
usr.bin/tmux/window.c
595
pane_status = options_get_number(w->options, "pane-border-status");
usr.bin/tmux/window.c
597
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/window.c
616
window_find_string(struct window *w, const char *s)
usr.bin/tmux/window.c
618
u_int x, y, top = 0, bottom = w->sy - 1;
usr.bin/tmux/window.c
621
x = w->sx / 2;
usr.bin/tmux/window.c
622
y = w->sy / 2;
usr.bin/tmux/window.c
624
status = options_get_number(w->options, "pane-border-status");
usr.bin/tmux/window.c
637
x = w->sx - 1;
usr.bin/tmux/window.c
642
x = w->sx - 1;
usr.bin/tmux/window.c
648
x = w->sx - 1;
usr.bin/tmux/window.c
653
return (window_get_active_at(w, x, y));
usr.bin/tmux/window.c
659
struct window *w = wp->window;
usr.bin/tmux/window.c
662
if (w->flags & WINDOW_ZOOMED)
usr.bin/tmux/window.c
665
if (window_count_panes(w) == 1)
usr.bin/tmux/window.c
668
if (w->active != wp)
usr.bin/tmux/window.c
669
window_set_active_pane(w, wp, 1);
usr.bin/tmux/window.c
672
TAILQ_FOREACH(wp1, &w->panes, entry) {
usr.bin/tmux/window.c
677
w->saved_layout_root = w->layout_root;
usr.bin/tmux/window.c
678
layout_init(w, wp);
usr.bin/tmux/window.c
679
w->flags |= WINDOW_ZOOMED;
usr.bin/tmux/window.c
680
notify_window("window-layout-changed", w);
usr.bin/tmux/window.c
686
window_unzoom(struct window *w, int notify)
usr.bin/tmux/window.c
690
if (!(w->flags & WINDOW_ZOOMED))
usr.bin/tmux/window.c
693
w->flags &= ~WINDOW_ZOOMED;
usr.bin/tmux/window.c
694
layout_free(w);
usr.bin/tmux/window.c
695
w->layout_root = w->saved_layout_root;
usr.bin/tmux/window.c
696
w->saved_layout_root = NULL;
usr.bin/tmux/window.c
698
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/window.c
703
layout_fix_panes(w, NULL);
usr.bin/tmux/window.c
706
notify_window("window-layout-changed", w);
usr.bin/tmux/window.c
712
window_push_zoom(struct window *w, int always, int flag)
usr.bin/tmux/window.c
714
log_debug("%s: @%u %d", __func__, w->id,
usr.bin/tmux/window.c
715
flag && (w->flags & WINDOW_ZOOMED));
usr.bin/tmux/window.c
716
if (flag && (always || (w->flags & WINDOW_ZOOMED)))
usr.bin/tmux/window.c
717
w->flags |= WINDOW_WASZOOMED;
usr.bin/tmux/window.c
719
w->flags &= ~WINDOW_WASZOOMED;
usr.bin/tmux/window.c
720
return (window_unzoom(w, 1) == 0);
usr.bin/tmux/window.c
724
window_pop_zoom(struct window *w)
usr.bin/tmux/window.c
726
log_debug("%s: @%u %d", __func__, w->id,
usr.bin/tmux/window.c
727
!!(w->flags & WINDOW_WASZOOMED));
usr.bin/tmux/window.c
728
if (w->flags & WINDOW_WASZOOMED)
usr.bin/tmux/window.c
729
return (window_zoom(w->active) == 0);
usr.bin/tmux/window.c
734
window_add_pane(struct window *w, struct window_pane *other, u_int hlimit,
usr.bin/tmux/window.c
740
other = w->active;
usr.bin/tmux/window.c
742
wp = window_pane_create(w, w->sx, w->sy, hlimit);
usr.bin/tmux/window.c
743
if (TAILQ_EMPTY(&w->panes)) {
usr.bin/tmux/window.c
744
log_debug("%s: @%u at start", __func__, w->id);
usr.bin/tmux/window.c
745
TAILQ_INSERT_HEAD(&w->panes, wp, entry);
usr.bin/tmux/window.c
747
log_debug("%s: @%u before %%%u", __func__, w->id, wp->id);
usr.bin/tmux/window.c
749
TAILQ_INSERT_HEAD(&w->panes, wp, entry);
usr.bin/tmux/window.c
753
log_debug("%s: @%u after %%%u", __func__, w->id, wp->id);
usr.bin/tmux/window.c
755
TAILQ_INSERT_TAIL(&w->panes, wp, entry);
usr.bin/tmux/window.c
757
TAILQ_INSERT_AFTER(&w->panes, other, wp, entry);
usr.bin/tmux/window.c
763
window_lost_pane(struct window *w, struct window_pane *wp)
usr.bin/tmux/window.c
765
log_debug("%s: @%u pane %%%u", __func__, w->id, wp->id);
usr.bin/tmux/window.c
770
window_pane_stack_remove(&w->last_panes, wp);
usr.bin/tmux/window.c
771
if (wp == w->active) {
usr.bin/tmux/window.c
772
w->active = TAILQ_FIRST(&w->last_panes);
usr.bin/tmux/window.c
773
if (w->active == NULL) {
usr.bin/tmux/window.c
774
w->active = TAILQ_PREV(wp, window_panes, entry);
usr.bin/tmux/window.c
775
if (w->active == NULL)
usr.bin/tmux/window.c
776
w->active = TAILQ_NEXT(wp, entry);
usr.bin/tmux/window.c
778
if (w->active != NULL) {
usr.bin/tmux/window.c
779
window_pane_stack_remove(&w->last_panes, w->active);
usr.bin/tmux/window.c
780
w->active->flags |= PANE_CHANGED;
usr.bin/tmux/window.c
781
notify_window("window-pane-changed", w);
usr.bin/tmux/window.c
782
window_update_focus(w);
usr.bin/tmux/window.c
788
window_remove_pane(struct window *w, struct window_pane *wp)
usr.bin/tmux/window.c
790
window_lost_pane(w, wp);
usr.bin/tmux/window.c
792
TAILQ_REMOVE(&w->panes, wp, entry);
usr.bin/tmux/window.c
797
window_pane_at_index(struct window *w, u_int idx)
usr.bin/tmux/window.c
802
n = options_get_number(w->options, "pane-base-index");
usr.bin/tmux/window.c
803
TAILQ_FOREACH(wp, &w->panes, entry) {
usr.bin/tmux/window.c
812
window_pane_next_by_number(struct window *w, struct window_pane *wp, u_int n)
usr.bin/tmux/window.c
816
wp = TAILQ_FIRST(&w->panes);
usr.bin/tmux/window.c
823
window_pane_previous_by_number(struct window *w, struct window_pane *wp,
usr.bin/tmux/window.c
828
wp = TAILQ_LAST(&w->panes, window_panes);
usr.bin/tmux/window.c
838
struct window *w = wp->window;
usr.bin/tmux/window.c
840
*i = options_get_number(w->options, "pane-base-index");
usr.bin/tmux/window.c
841
TAILQ_FOREACH(wq, &w->panes, entry) {
usr.bin/tmux/window.c
852
window_count_panes(struct window *w)
usr.bin/tmux/window.c
858
TAILQ_FOREACH(wp, &w->panes, entry)
usr.bin/tmux/window.c
864
window_destroy_panes(struct window *w)
usr.bin/tmux/window.c
868
while (!TAILQ_EMPTY(&w->last_panes)) {
usr.bin/tmux/window.c
869
wp = TAILQ_FIRST(&w->last_panes);
usr.bin/tmux/window.c
870
window_pane_stack_remove(&w->last_panes, wp);
usr.bin/tmux/window.c
873
while (!TAILQ_EMPTY(&w->panes)) {
usr.bin/tmux/window.c
874
wp = TAILQ_FIRST(&w->panes);
usr.bin/tmux/window.c
875
TAILQ_REMOVE(&w->panes, wp, entry);
usr.bin/tmux/window.c
911
struct window *w = wp->window;
usr.bin/tmux/window.c
915
if (wp == w->active)
usr.bin/tmux/window.c
917
if (wp == TAILQ_FIRST(&w->last_panes))
usr.bin/tmux/window.c
952
window_pane_create(struct window *w, u_int sx, u_int sy, u_int hlimit)
usr.bin/tmux/window.c
958
wp->window = w;
usr.bin/tmux/window.c
959
wp->options = options_create(w->options);
usr.bin/ul/ul.c
167
int skip_bs, w, wt;
usr.bin/ul/ul.c
205
while ((w = obuf[col].c_pos) > 0 && w <= wt)
usr.bin/ul/ul.c
209
if (w == 0) {
usr.bin/ul/ul.c
210
w = obuf[col - 1].c_pos;
usr.bin/ul/ul.c
211
while (w < wt) {
usr.bin/ul/ul.c
213
obuf[col++].c_pos = ++w;
usr.bin/ul/ul.c
302
if ((w = wcwidth(c)) == -1)
usr.bin/ul/ul.c
308
obuf[col].c_width = w;
usr.bin/ul/ul.c
309
obuf[col].c_pos = obuf[col - 1].c_pos + w;
usr.bin/ul/ul.c
313
obuf[col].c_width = w;
usr.bin/ul/ul.c
314
obuf[col].c_pos = obuf[col - 1].c_pos + w;
usr.bin/yacc/output.c
458
int w;
usr.bin/yacc/output.c
466
w = width[i];
usr.bin/yacc/output.c
469
while (j >= 0 && (width[order[j]] < w))
usr.bin/yacc/output.c
472
while (j >= 0 && (width[order[j]] == w) &&
usr.bin/yacc/output.c
548
int i, j, k, t, w, match, prev;
usr.bin/yacc/output.c
555
w = width[i];
usr.bin/yacc/output.c
559
if (width[j] != w || tally[j] != t)
usr.sbin/amd/amd/sched.c
140
bzero(&p->w, sizeof(p->w));
usr.sbin/amd/amd/sched.c
195
int w;
usr.sbin/amd/amd/sched.c
199
while ((pid = waitpid((pid_t)-1, &w, WNOHANG)) > 0) {
usr.sbin/amd/amd/sched.c
202
if (WIFSIGNALED(w))
usr.sbin/amd/amd/sched.c
204
(long)pid, WTERMSIG(w));
usr.sbin/amd/amd/sched.c
208
(long)pid, WEXITSTATUS(w));
usr.sbin/amd/amd/sched.c
215
p->w = w;
usr.sbin/amd/amd/sched.c
258
(*p->cb_fun)(WIFEXITED(p->w) ? WEXITSTATUS(p->w) : 0,
usr.sbin/amd/amd/sched.c
259
WIFSIGNALED(p->w) ? WTERMSIG(p->w) : 0,
usr.sbin/amd/amd/sched.c
57
int w; /* Status filled in by sigchld */
usr.sbin/arp/arp.c
652
#define NEXTADDR(w, s) \
usr.sbin/arp/arp.c
653
if (rtm->rtm_addrs & (w)) { \
usr.sbin/bgpd/parse.y
6032
geticmptypebyname(char *w, uint8_t aid)
usr.sbin/bgpd/parse.y
6039
if (!strcmp(w, icmp_type[i].name))
usr.sbin/bgpd/parse.y
6045
if (!strcmp(w, icmp6_type[i].name))
usr.sbin/bgpd/parse.y
6054
geticmpcodebyname(u_long type, char *w, uint8_t aid)
usr.sbin/bgpd/parse.y
6062
!strcmp(w, icmp_code[i].name))
usr.sbin/bgpd/parse.y
6069
!strcmp(w, icmp6_code[i].name))
usr.sbin/bgpd/rtr_proto.c
1135
msgbuf_clear(rs->w);
usr.sbin/bgpd/rtr_proto.c
1277
if (pfd->revents & POLLOUT && msgbuf_queuelen(rs->w) > 0) {
usr.sbin/bgpd/rtr_proto.c
1278
if (ibuf_write(rs->fd, rs->w) == -1) {
usr.sbin/bgpd/rtr_proto.c
1284
msgbuf_queuelen(rs->w) == 0)
usr.sbin/bgpd/rtr_proto.c
1288
switch (ibuf_read(rs->fd, rs->w)) {
usr.sbin/bgpd/rtr_proto.c
1301
while ((b = msgbuf_get(rs->w)) != NULL) {
usr.sbin/bgpd/rtr_proto.c
1391
if (msgbuf_queuelen(rs->w) > 0)
usr.sbin/bgpd/rtr_proto.c
1407
if ((rs->w = msgbuf_new_reader(sizeof(struct rtr_header),
usr.sbin/bgpd/rtr_proto.c
1460
msgbuf_free(rs->w);
usr.sbin/bgpd/rtr_proto.c
193
struct msgbuf *w;
usr.sbin/bgpd/rtr_proto.c
362
ibuf_close(rs->w, buf);
usr.sbin/bgpd/rtr_proto.c
380
ibuf_close(rs->w, buf);
usr.sbin/bgpd/rtr_proto.c
399
ibuf_close(rs->w, buf);
usr.sbin/ldapd/btree.c
57
#define F_ISSET(w, f) (((w) & (f)) == (f))
usr.sbin/ldapd/ldapd.h
344
void conn_err(struct bufferevent *bev, short w, void *data);
usr.sbin/lpd/frontend_lpr.c
522
size_t len, w;
usr.sbin/lpd/frontend_lpr.c
534
w = fwrite(data, 1, len, conn->ofp);
usr.sbin/lpd/frontend_lpr.c
535
if (w != len) {
usr.sbin/lpd/frontend_lpr.c
540
io_drop(conn->io, w);
usr.sbin/lpd/frontend_lpr.c
541
conn->expect -= w;
usr.sbin/lpd/io.c
1068
size_t w2, w;
usr.sbin/lpd/io.c
1078
w = io_queued(io);
usr.sbin/lpd/io.c
1104
if (w > io->lowat && w2 <= io->lowat)
usr.sbin/lpd/io.c
761
size_t w;
usr.sbin/lpd/io.c
772
if (ev & EV_WRITE && (w = io_queued(io))) {
usr.sbin/lpd/io.c
787
if (w > io->lowat && w - n <= io->lowat)
usr.sbin/lpr/lpc/lpc.c
225
int i, j, w;
usr.sbin/lpr/lpc/lpc.c
249
w = strlen(c->c_name);
usr.sbin/lpr/lpc/lpc.c
250
while (w < width) {
usr.sbin/lpr/lpc/lpc.c
251
w = (w + 8) &~ 7;
usr.sbin/makefs/cd9660/cd9660_conversion.c
58
cd9660_721(uint16_t w, unsigned char *twochar)
usr.sbin/makefs/cd9660/cd9660_conversion.c
61
w = bswap16(w);
usr.sbin/makefs/cd9660/cd9660_conversion.c
63
memcpy(twochar,&w,2);
usr.sbin/makefs/cd9660/cd9660_conversion.c
67
cd9660_731(uint32_t w, unsigned char *fourchar)
usr.sbin/makefs/cd9660/cd9660_conversion.c
70
w = bswap32(w);
usr.sbin/makefs/cd9660/cd9660_conversion.c
72
memcpy(fourchar,&w,4);
usr.sbin/makefs/cd9660/cd9660_conversion.c
77
cd9660_722(uint16_t w, unsigned char *twochar)
usr.sbin/makefs/cd9660/cd9660_conversion.c
80
w = bswap16(w);
usr.sbin/makefs/cd9660/cd9660_conversion.c
82
memcpy(twochar,&w,2);
usr.sbin/makefs/cd9660/cd9660_conversion.c
86
cd9660_732(uint32_t w, unsigned char *fourchar)
usr.sbin/makefs/cd9660/cd9660_conversion.c
89
w = bswap32(w);
usr.sbin/makefs/cd9660/cd9660_conversion.c
91
memcpy(fourchar,&w,4);
usr.sbin/mrouted/inet.c
194
u_int16_t *w = addr;
usr.sbin/mrouted/inet.c
205
sum += *w++;
usr.sbin/mrouted/inet.c
211
*(u_char *) (&answer) = *(u_char *)w ;
usr.sbin/ndp/ndp.c
767
#define NEXTADDR(w, s) \
usr.sbin/ndp/ndp.c
768
if (rtm->rtm_addrs & (w)) { \
usr.sbin/npppctl/npppctl.c
248
fprint_who_brief(int i, struct npppd_who *w, FILE *out)
usr.sbin/npppctl/npppctl.c
258
fprintf(out, "%10u %-15s %-20s %-5s %s\n", w->ppp_id,
usr.sbin/npppctl/npppctl.c
259
inet_ntoa(w->framed_ip_address), w->username, w->tunnel_proto,
usr.sbin/npppctl/npppctl.c
260
peerstr((struct sockaddr *)&w->tunnel_peer, buf, sizeof(buf)));
usr.sbin/npppctl/npppctl.c
264
fprint_who_packets(int i, struct npppd_who *w, FILE *out)
usr.sbin/npppctl/npppctl.c
273
fprintf(out, "%10u %-20s %9.1f %7u %5u %9.1f %7u %5u\n", w->ppp_id,
usr.sbin/npppctl/npppctl.c
274
w->username,
usr.sbin/npppctl/npppctl.c
275
(double)w->ibytes/1024, w->ipackets, w->ierrors,
usr.sbin/npppctl/npppctl.c
276
(double)w->obytes/1024, w->opackets, w->oerrors);
usr.sbin/npppctl/npppctl.c
280
fprint_who_all(int i, struct npppd_who *w, FILE *out)
usr.sbin/npppctl/npppctl.c
286
localtime_r(&w->time, &tm);
usr.sbin/npppctl/npppctl.c
309
w->ppp_id, w->ppp_id, w->username, w->rlmname, w->ifname,
usr.sbin/npppctl/npppctl.c
310
inet_ntoa(w->framed_ip_address), (u_int)w->mru, w->tunnel_proto,
usr.sbin/npppctl/npppctl.c
311
peerstr((struct sockaddr *)&w->tunnel_peer, peer_buf,
usr.sbin/npppctl/npppctl.c
313
(unsigned long)w->duration_sec,
usr.sbin/npppctl/npppctl.c
314
humanize_duration(w->duration_sec, dur_buf, sizeof(dur_buf)),
usr.sbin/npppctl/npppctl.c
315
(unsigned long long)w->ibytes,
usr.sbin/npppctl/npppctl.c
316
humanize_bytes((double)w->ibytes, ibytes_buf, sizeof(ibytes_buf)),
usr.sbin/npppctl/npppctl.c
317
(unsigned long)w->ipackets,
usr.sbin/npppctl/npppctl.c
318
(unsigned long)w->ierrors,
usr.sbin/npppctl/npppctl.c
319
((w->ipackets + w->ierrors) <= 0)
usr.sbin/npppctl/npppctl.c
320
? 0.0 : (100.0 * w->ierrors) / (w->ierrors + w->ipackets),
usr.sbin/npppctl/npppctl.c
321
(unsigned long long)w->obytes,
usr.sbin/npppctl/npppctl.c
322
humanize_bytes((double)w->obytes, obytes_buf, sizeof(obytes_buf)),
usr.sbin/npppctl/npppctl.c
323
(unsigned long)w->opackets,
usr.sbin/npppctl/npppctl.c
324
(unsigned long)w->oerrors,
usr.sbin/npppctl/npppctl.c
325
((w->opackets + w->oerrors) <= 0)
usr.sbin/npppctl/npppctl.c
326
? 0.0 : (100.0 * w->oerrors) / (w->oerrors + w->opackets));
usr.sbin/npppd/common/hash.c
107
hash_link *w;
usr.sbin/npppd/common/hash.c
112
for (w = htbl->bucket[c]; w != NULL; w = w->next)
usr.sbin/npppd/common/hash.c
113
if (htbl->cmp(w->key, k) == 0)
usr.sbin/npppd/common/hash.c
114
return w;
usr.sbin/npppd/common/hash.c
152
hash_link *b, *w;
usr.sbin/npppd/common/hash.c
159
for (w = htbl->bucket[i], b = NULL; w != NULL; w = w->next) {
usr.sbin/npppd/common/hash.c
160
if (htbl->cmp(w->key, k) == 0) {
usr.sbin/npppd/common/hash.c
162
b->next = w->next;
usr.sbin/npppd/common/hash.c
164
htbl->bucket[i] = w->next;
usr.sbin/npppd/common/hash.c
166
if (htbl->bucket_cur == w)
usr.sbin/npppd/common/hash.c
167
htbl->bucket_cur = w->next;
usr.sbin/npppd/common/hash.c
169
if (w->item != NULL && memfree) {
usr.sbin/npppd/common/hash.c
170
free(w->item);
usr.sbin/npppd/common/hash.c
172
free(w);
usr.sbin/npppd/common/hash.c
175
b = w;
usr.sbin/npppd/common/hash.c
188
hash_link *w, *hl;
usr.sbin/npppd/common/hash.c
194
w = hl;
usr.sbin/npppd/common/hash.c
196
if (memfree && w->item != NULL)
usr.sbin/npppd/common/hash.c
197
free(w->item);
usr.sbin/npppd/common/hash.c
198
free(w);
usr.sbin/npppd/common/radish.c
665
void *w)
usr.sbin/npppd/common/radish.c
674
if ((error = (*f)(cur, w)))
usr.sbin/nsd/mini_event.c
201
fd_set r, w;
usr.sbin/nsd/mini_event.c
209
memmove(&w, &base->writes, sizeof(fd_set));
usr.sbin/nsd/mini_event.c
212
if((ret = select(base->maxfd+1, &r, &w, NULL, wait)) == -1) {
usr.sbin/nsd/mini_event.c
233
if(FD_ISSET(i, &w)) {
usr.sbin/nsd/nsd-checkconf.c
110
static void zone_print_rrl_whitelist(const char* s, uint16_t w)
usr.sbin/nsd/nsd-checkconf.c
113
if(w==rrl_type_all) {
usr.sbin/nsd/nsd-checkconf.c
118
if( (w&i) )
usr.sbin/nsd/simdzone/src/fallback/name.h
19
uint8_t *l = octets, *w = octets + 1;
usr.sbin/nsd/simdzone/src/fallback/name.h
28
while ((t < te) & (w < we)) {
usr.sbin/nsd/simdzone/src/fallback/name.h
29
*w = (uint8_t)*t;
usr.sbin/nsd/simdzone/src/fallback/name.h
32
if (!(n = unescape(t, w)))
usr.sbin/nsd/simdzone/src/fallback/name.h
34
w += 1; t += n;
usr.sbin/nsd/simdzone/src/fallback/name.h
36
if ((w - 1) - l > 63 || (w - 1) - l == 0)
usr.sbin/nsd/simdzone/src/fallback/name.h
38
l[0] = (uint8_t)((w - 1) - l);
usr.sbin/nsd/simdzone/src/fallback/name.h
39
l = w;
usr.sbin/nsd/simdzone/src/fallback/name.h
41
w += 1; t += 1;
usr.sbin/nsd/simdzone/src/fallback/name.h
43
w += 1; t += 1;
usr.sbin/nsd/simdzone/src/fallback/name.h
47
if ((w - 1) - l > 63)
usr.sbin/nsd/simdzone/src/fallback/name.h
49
*l = (uint8_t)((w - 1) - l);
usr.sbin/nsd/simdzone/src/fallback/name.h
51
if (t != te || w > we)
usr.sbin/nsd/simdzone/src/fallback/name.h
54
*lengthp = (size_t)(w - octets);
usr.sbin/nsd/udb.c
240
ssize_t w;
usr.sbin/nsd/udb.c
241
if((w=write(fd, data, len)) == -1) {
usr.sbin/nsd/udb.c
245
} else if(w != (ssize_t)len) {
usr.sbin/nsd/udb.c
586
ssize_t w;
usr.sbin/nsd/udb.c
591
if((w=pwrite(udb->fd, &z, sizeof(z), (off_t)(nsize-1))) == -1) {
usr.sbin/nsd/udb.c
597
if((w=write(udb->fd, &z, sizeof(z))) == -1) {
usr.sbin/nsd/udb.c
602
} else if(w != (ssize_t)sizeof(z)) {
usr.sbin/ocspcheck/ocspcheck.c
562
ssize_t written, w;
usr.sbin/ocspcheck/ocspcheck.c
751
w = write(staplefd, instaple + written,
usr.sbin/ocspcheck/ocspcheck.c
753
if (w == -1) {
usr.sbin/ocspcheck/ocspcheck.c
757
written += w;
usr.sbin/ospf6d/rde_spf.c
106
w = lsa_find_rtr(area, net_link->att_rtr);
usr.sbin/ospf6d/rde_spf.c
112
if (w == NULL)
usr.sbin/ospf6d/rde_spf.c
115
if (ntohs(w->lsa->hdr.age) == MAX_AGE)
usr.sbin/ospf6d/rde_spf.c
1156
linked(struct vertex *w, struct vertex *v)
usr.sbin/ospf6d/rde_spf.c
1162
switch (w->type) {
usr.sbin/ospf6d/rde_spf.c
1164
for (i = 0; i < lsa_num_links(w); i++) {
usr.sbin/ospf6d/rde_spf.c
1165
rtr_link = get_rtr_link(w, i);
usr.sbin/ospf6d/rde_spf.c
118
if (lsa_num_links(w) == 0)
usr.sbin/ospf6d/rde_spf.c
1184
for (i = 0; i < lsa_num_links(w); i++) {
usr.sbin/ospf6d/rde_spf.c
1185
net_link = get_net_link(w, i);
usr.sbin/ospf6d/rde_spf.c
121
if (!linked(w, v)) {
usr.sbin/ospf6d/rde_spf.c
125
log_rtr_id(htonl(w->adv_rtr)),
usr.sbin/ospf6d/rde_spf.c
126
log_rtr_id(htonl(w->ls_id)), w->type,
usr.sbin/ospf6d/rde_spf.c
127
lsa_num_links(w),
usr.sbin/ospf6d/rde_spf.c
138
if (cand_list_present(w)) {
usr.sbin/ospf6d/rde_spf.c
139
if (d > w->cost)
usr.sbin/ospf6d/rde_spf.c
141
if (d < w->cost) {
usr.sbin/ospf6d/rde_spf.c
142
w->cost = d;
usr.sbin/ospf6d/rde_spf.c
143
vertex_nexthop_clear(w);
usr.sbin/ospf6d/rde_spf.c
144
calc_nexthop(w, v, area, rtr_link);
usr.sbin/ospf6d/rde_spf.c
149
TAILQ_REMOVE(&cand_list, w, cand);
usr.sbin/ospf6d/rde_spf.c
150
cand_list_add(w);
usr.sbin/ospf6d/rde_spf.c
153
calc_nexthop(w, v, area, rtr_link);
usr.sbin/ospf6d/rde_spf.c
154
} else if (w->cost == LS_INFINITY && d < LS_INFINITY) {
usr.sbin/ospf6d/rde_spf.c
155
w->cost = d;
usr.sbin/ospf6d/rde_spf.c
157
vertex_nexthop_clear(w);
usr.sbin/ospf6d/rde_spf.c
158
calc_nexthop(w, v, area, rtr_link);
usr.sbin/ospf6d/rde_spf.c
159
cand_list_add(w);
usr.sbin/ospf6d/rde_spf.c
165
w = NULL;
usr.sbin/ospf6d/rde_spf.c
203
struct vertex *w;
usr.sbin/ospf6d/rde_spf.c
237
w = lsa_find_rtr(area, iap->ref_adv_rtr);
usr.sbin/ospf6d/rde_spf.c
238
if (w == NULL) {
usr.sbin/ospf6d/rde_spf.c
245
flags = LSA_24_GETHI(ntohl(w->lsa->data.rtr.opts));
usr.sbin/ospf6d/rde_spf.c
248
w = lsa_find_tree(&area->lsa_tree, iap->ref_type,
usr.sbin/ospf6d/rde_spf.c
250
if (w == NULL) {
usr.sbin/ospf6d/rde_spf.c
267
if (w->cost >= LS_INFINITY || TAILQ_EMPTY(&w->nexthop))
usr.sbin/ospf6d/rde_spf.c
280
adv_rtr.s_addr = htonl(w->adv_rtr);
usr.sbin/ospf6d/rde_spf.c
282
rt_update(&ia6, prefix->prefixlen, &w->nexthop,
usr.sbin/ospf6d/rde_spf.c
283
v->type, w->cost + ntohs(prefix->metric), 0,
usr.sbin/ospf6d/rde_spf.c
298
w = lsa_find_rtr(area, adv_rtr.s_addr);
usr.sbin/ospf6d/rde_spf.c
299
if (w == NULL) {
usr.sbin/ospf6d/rde_spf.c
306
if (w->cost >= LS_INFINITY || TAILQ_EMPTY(&w->nexthop))
usr.sbin/ospf6d/rde_spf.c
319
rt_update(&ia6, prefix->prefixlen, &w->nexthop, v->type,
usr.sbin/ospf6d/rde_spf.c
320
w->cost + (ntohs(v->lsa->data.rtr_sum.metric) &
usr.sbin/ospf6d/rde_spf.c
331
w = lsa_find_rtr(area, adv_rtr.s_addr);
usr.sbin/ospf6d/rde_spf.c
332
if (w == NULL) {
usr.sbin/ospf6d/rde_spf.c
339
if (w->cost >= LS_INFINITY || TAILQ_EMPTY(&w->nexthop))
usr.sbin/ospf6d/rde_spf.c
348
rt_update(&ia6, 128, &w->nexthop, v->type, w->cost +
usr.sbin/ospf6d/rde_spf.c
59
struct vertex *v, *w;
usr.sbin/ospf6d/rde_spf.c
76
w = NULL;
usr.sbin/ospf6d/rde_spf.c
89
w = lsa_find_rtr(area,
usr.sbin/ospf6d/rde_spf.c
94
w = lsa_find_tree(&area->lsa_tree,
usr.sbin/ospfd/rde_spf.c
100
w = lsa_find_net(area, rtr_link->id);
usr.sbin/ospfd/rde_spf.c
1024
linked(struct vertex *w, struct vertex *v)
usr.sbin/ospfd/rde_spf.c
1030
switch (w->type) {
usr.sbin/ospfd/rde_spf.c
1032
for (i = 0; i < lsa_num_links(w); i++) {
usr.sbin/ospfd/rde_spf.c
1033
rtr_link = get_rtr_link(w, i);
usr.sbin/ospfd/rde_spf.c
1050
for (i = 0; i < lsa_num_links(w); i++) {
usr.sbin/ospfd/rde_spf.c
1051
net_link = get_net_link(w, i);
usr.sbin/ospfd/rde_spf.c
109
w = lsa_find_area(area, LSA_TYPE_ROUTER,
usr.sbin/ospfd/rde_spf.c
116
if (w == NULL)
usr.sbin/ospfd/rde_spf.c
119
if (w->lsa->hdr.age == MAX_AGE)
usr.sbin/ospfd/rde_spf.c
122
if (!linked(w, v)) {
usr.sbin/ospfd/rde_spf.c
123
addr.s_addr = htonl(w->ls_id);
usr.sbin/ospfd/rde_spf.c
125
inet_ntoa(addr), w->type);
usr.sbin/ospfd/rde_spf.c
137
if (cand_list_present(w)) {
usr.sbin/ospfd/rde_spf.c
138
if (d > w->cost)
usr.sbin/ospfd/rde_spf.c
140
if (d < w->cost) {
usr.sbin/ospfd/rde_spf.c
141
w->cost = d;
usr.sbin/ospfd/rde_spf.c
142
vertex_nexthop_clear(w);
usr.sbin/ospfd/rde_spf.c
143
calc_nexthop(w, v, area, rtr_link);
usr.sbin/ospfd/rde_spf.c
148
TAILQ_REMOVE(&cand_list, w, cand);
usr.sbin/ospfd/rde_spf.c
149
cand_list_add(w);
usr.sbin/ospfd/rde_spf.c
152
calc_nexthop(w, v, area, rtr_link);
usr.sbin/ospfd/rde_spf.c
153
} else if (w->cost == LS_INFINITY && d < LS_INFINITY) {
usr.sbin/ospfd/rde_spf.c
154
w->cost = d;
usr.sbin/ospfd/rde_spf.c
156
vertex_nexthop_clear(w);
usr.sbin/ospfd/rde_spf.c
157
calc_nexthop(w, v, area, rtr_link);
usr.sbin/ospfd/rde_spf.c
158
cand_list_add(w);
usr.sbin/ospfd/rde_spf.c
164
w = NULL;
usr.sbin/ospfd/rde_spf.c
177
struct vertex *w;
usr.sbin/ospfd/rde_spf.c
240
if ((w = lsa_find_area(area, LSA_TYPE_ROUTER,
usr.sbin/ospfd/rde_spf.c
247
TAILQ_FOREACH(vn, &w->nexthop, entry)
usr.sbin/ospfd/rde_spf.c
248
vertex_nexthop_add(v, w, vn->nexthop.s_addr);
usr.sbin/ospfd/rde_spf.c
250
v->cost = w->cost +
usr.sbin/ospfd/rde_spf.c
55
struct vertex *v, *w;
usr.sbin/ospfd/rde_spf.c
75
w = NULL;
usr.sbin/ospfd/rde_spf.c
95
w = lsa_find_area(area, LSA_TYPE_ROUTER,
usr.sbin/rarpd/arptab.c
204
#define NEXTADDR(w, s) \
usr.sbin/rarpd/arptab.c
205
if (rtm->rtm_addrs & (w)) { \
usr.sbin/rbootd/rmp_var.h
136
#define WORDZE(w) ((w) == 0)
usr.sbin/rbootd/rmp_var.h
137
#define ZEROWORD(w) (w) = 0
usr.sbin/rbootd/rmp_var.h
139
#define GETWORD(w, i) (i) = ntohl(w)
usr.sbin/rbootd/rmp_var.h
140
#define PUTWORD(i, w) (w) = htonl(i)
usr.sbin/rbootd/rmp_var.h
149
#define WORDZE(w) \
usr.sbin/rbootd/rmp_var.h
150
((w.val[_WORD_HIGHPART] == 0) && (w.val[_WORD_LOWPART] == 0))
usr.sbin/rbootd/rmp_var.h
151
#define ZEROWORD(w) \
usr.sbin/rbootd/rmp_var.h
152
(w).val[_WORD_HIGHPART] = (w).val[_WORD_LOWPART] = 0
usr.sbin/rbootd/rmp_var.h
157
#define GETWORD(w, i) \
usr.sbin/rbootd/rmp_var.h
158
(i) = (((u_int32_t)ntohs((w).val[_WORD_HIGHPART])) << 16) | ntohs((w).val[_WORD_LOWPART])
usr.sbin/rbootd/rmp_var.h
159
#define PUTWORD(i, w) \
usr.sbin/rbootd/rmp_var.h
160
{ (w).val[_WORD_HIGHPART] = htons((u_int16_t) ((i >> 16) & 0xffff)); \
usr.sbin/rbootd/rmp_var.h
161
(w).val[_WORD_LOWPART] = htons((u_int16_t) (i & 0xffff)); \
usr.sbin/relayd/check_icmp.c
387
u_short *w = addr;
usr.sbin/relayd/check_icmp.c
397
sum += *w++;
usr.sbin/relayd/check_icmp.c
403
*(u_char *)(&answer) = *(u_char *)w ;
usr.sbin/smtpd/ioev.c
678
size_t w;
usr.sbin/smtpd/ioev.c
689
if (ev & EV_WRITE && (w = io_queued(io))) {
usr.sbin/smtpd/ioev.c
703
if (w > io->lowat && w - n <= io->lowat)
usr.sbin/smtpd/ioev.c
928
size_t w2, w;
usr.sbin/smtpd/ioev.c
937
w = io_queued(io);
usr.sbin/smtpd/ioev.c
955
if (w > io->lowat && w2 <= io->lowat)
usr.sbin/smtpd/queue_fs.c
479
size_t w;
usr.sbin/smtpd/queue_fs.c
491
w = fwrite(evpbuf, 1, evplen, fp);
usr.sbin/smtpd/queue_fs.c
492
if (w < evplen) {
usr.sbin/smtpd/smtp_client.c
832
size_t sz = 0, total, w;
usr.sbin/smtpd/smtp_client.c
837
w = 0;
usr.sbin/smtpd/smtp_client.c
851
w += n;
usr.sbin/smtpd/smtp_client.c
860
log_trace(TRACE_SMTPCLT, "%p: >>> [...%zd bytes...]", proto, w);
usr.sbin/smtpd/waitq.c
58
struct waiter *w;
usr.sbin/smtpd/waitq.c
69
w = xmalloc(sizeof *w);
usr.sbin/smtpd/waitq.c
70
w->cb = cb;
usr.sbin/smtpd/waitq.c
71
w->arg = arg;
usr.sbin/smtpd/waitq.c
72
TAILQ_INSERT_TAIL(&wq->waiters, w, entry);
usr.sbin/smtpd/waitq.c
74
return (w == TAILQ_FIRST(&wq->waiters));
usr.sbin/smtpd/waitq.c
81
struct waiter *w;
usr.sbin/smtpd/waitq.c
87
while ((w = TAILQ_FIRST(&wq->waiters))) {
usr.sbin/smtpd/waitq.c
88
TAILQ_REMOVE(&wq->waiters, w, entry);
usr.sbin/smtpd/waitq.c
89
w->cb(tag, w->arg, result);
usr.sbin/smtpd/waitq.c
90
free(w);
usr.sbin/tcpdump/print-gre.c
843
uint32_t w;
usr.sbin/tcpdump/print-gre.c
845
if (l < sizeof(w))
usr.sbin/tcpdump/print-gre.c
848
w = EXTRACT_32BITS(p);
usr.sbin/tcpdump/print-gre.c
849
p += sizeof(w);
usr.sbin/tcpdump/print-gre.c
850
l -= sizeof(w);
usr.sbin/tcpdump/print-gre.c
852
printf(" %08x", w);
usr.sbin/tcpdump/print-mobile.c
111
u_int16_t w;
usr.sbin/tcpdump/print-mobile.c
116
sum += u.w;
usr.sbin/tcpdump/print-ofp.c
673
uint32_t *w;
usr.sbin/tcpdump/print-ofp.c
675
if (length < sizeof(*w)) {
usr.sbin/tcpdump/print-ofp.c
680
w = (uint32_t *)bp;
usr.sbin/tcpdump/print-ofp.c
682
printf("%#08x", ntohl(*w));
usr.sbin/tcpdump/print-ofp.c
684
printf("%u", ntohl(*w));
usr.sbin/tcpdump/print-ofp.c
687
bp += sizeof(*w);
usr.sbin/tcpdump/print-ofp.c
688
length -= sizeof(*w);
usr.sbin/traceroute/worker.c
887
u_short *w = addr, answer;
usr.sbin/traceroute/worker.c
897
sum += *w++;
usr.sbin/traceroute/worker.c
903
sum += *(u_char *)w;
usr.sbin/unbound/daemon/remote.c
2532
do_flush_name(RES* ssl, struct worker* w, char* arg)
usr.sbin/unbound/daemon/remote.c
2542
do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_A, LDNS_RR_CLASS_IN, pc);
usr.sbin/unbound/daemon/remote.c
2543
do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_AAAA, LDNS_RR_CLASS_IN, pc);
usr.sbin/unbound/daemon/remote.c
2544
do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_NS, LDNS_RR_CLASS_IN, pc);
usr.sbin/unbound/daemon/remote.c
2545
do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_SOA, LDNS_RR_CLASS_IN, pc);
usr.sbin/unbound/daemon/remote.c
2546
do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_CNAME, LDNS_RR_CLASS_IN, pc);
usr.sbin/unbound/daemon/remote.c
2547
do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_DNAME, LDNS_RR_CLASS_IN, pc);
usr.sbin/unbound/daemon/remote.c
2548
do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_MX, LDNS_RR_CLASS_IN, pc);
usr.sbin/unbound/daemon/remote.c
2549
do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_PTR, LDNS_RR_CLASS_IN, pc);
usr.sbin/unbound/daemon/remote.c
2550
do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_SRV, LDNS_RR_CLASS_IN, pc);
usr.sbin/unbound/daemon/remote.c
2551
do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_NAPTR, LDNS_RR_CLASS_IN, pc);
usr.sbin/unbound/daemon/remote.c
2552
do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_SVCB, LDNS_RR_CLASS_IN, pc);
usr.sbin/unbound/daemon/remote.c
2553
do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_HTTPS, LDNS_RR_CLASS_IN, pc);
usr.sbin/unbound/daemon/worker.c
1030
chaos_trustanchor(sldns_buffer* pkt, struct edns_data* edns, struct worker* w,
usr.sbin/unbound/daemon/worker.c
1040
if(!w->env.need_to_validate) {
usr.sbin/unbound/daemon/worker.c
1042
chaos_replystr(pkt, NULL, 0, edns, w, repinfo);
usr.sbin/unbound/daemon/worker.c
1047
lock_basic_lock(&w->env.anchors->lock);
usr.sbin/unbound/daemon/worker.c
1048
RBTREE_FOR(ta, struct trust_anchor*, w->env.anchors->tree) {
usr.sbin/unbound/daemon/worker.c
1052
str = (char*)regional_alloc(w->scratchpad, str_len);
usr.sbin/unbound/daemon/worker.c
1074
lock_basic_unlock(&w->env.anchors->lock);
usr.sbin/unbound/daemon/worker.c
1076
chaos_replystr(pkt, str_array, num, edns, w, repinfo);
usr.sbin/unbound/daemon/worker.c
1077
regional_free_all(w->scratchpad);
usr.sbin/unbound/daemon/worker.c
1090
answer_chaos(struct worker* w, struct query_info* qinfo,
usr.sbin/unbound/daemon/worker.c
1093
struct config_file* cfg = w->env.cfg;
usr.sbin/unbound/daemon/worker.c
1107
chaos_replyonestr(pkt, buf, edns, w, repinfo);
usr.sbin/unbound/daemon/worker.c
1110
chaos_replyonestr(pkt, "no hostname", edns, w, repinfo);
usr.sbin/unbound/daemon/worker.c
1113
else chaos_replyonestr(pkt, cfg->identity, edns, w, repinfo);
usr.sbin/unbound/daemon/worker.c
1124
chaos_replyonestr(pkt, PACKAGE_STRING, edns, w, repinfo);
usr.sbin/unbound/daemon/worker.c
1125
else chaos_replyonestr(pkt, cfg->version, edns, w, repinfo);
usr.sbin/unbound/daemon/worker.c
1133
chaos_trustanchor(pkt, edns, w, repinfo);
usr.sbin/unbound/daemon/worker.c
1152
answer_notify(struct worker* w, struct query_info* qinfo,
usr.sbin/unbound/daemon/worker.c
1160
if(!w->env.auth_zones) return;
usr.sbin/unbound/daemon/worker.c
1162
if(auth_zones_notify(w->env.auth_zones, &w->env, qinfo->qname,
usr.sbin/unbound/ipsecmod/ipsecmod.c
254
int w = 0, w_temp, qtype;
usr.sbin/unbound/ipsecmod/ipsecmod.c
271
w += sldns_str_print(&s, &slen, "%s", qstate->env->cfg->ipsecmod_hook);
usr.sbin/unbound/ipsecmod/ipsecmod.c
273
w += sldns_str_print(&s, &slen, " ");
usr.sbin/unbound/ipsecmod/ipsecmod.c
286
w += sldns_str_print(&s, &slen, "\"%s\"", tempstring);
usr.sbin/unbound/ipsecmod/ipsecmod.c
289
w += sldns_str_print(&s, &slen, " ");
usr.sbin/unbound/ipsecmod/ipsecmod.c
292
w += sldns_str_print(&s, &slen, "\"%ld\"", (long)rrset_data->ttl);
usr.sbin/unbound/ipsecmod/ipsecmod.c
294
w += sldns_str_print(&s, &slen, " ");
usr.sbin/unbound/ipsecmod/ipsecmod.c
309
w += sldns_str_print(&s, &slen, "\"");
usr.sbin/unbound/ipsecmod/ipsecmod.c
313
w += sldns_str_print(&s, &slen, " ");
usr.sbin/unbound/ipsecmod/ipsecmod.c
330
w += w_temp;
usr.sbin/unbound/ipsecmod/ipsecmod.c
333
w += sldns_str_print(&s, &slen, "\"");
usr.sbin/unbound/ipsecmod/ipsecmod.c
335
w += sldns_str_print(&s, &slen, " ");
usr.sbin/unbound/ipsecmod/ipsecmod.c
338
w += sldns_str_print(&s, &slen, "\"");
usr.sbin/unbound/ipsecmod/ipsecmod.c
343
w += sldns_str_print(&s, &slen, " ");
usr.sbin/unbound/ipsecmod/ipsecmod.c
362
w += w_temp;
usr.sbin/unbound/ipsecmod/ipsecmod.c
365
w += sldns_str_print(&s, &slen, "\"");
usr.sbin/unbound/ipsecmod/ipsecmod.c
366
if(w >= (int)sizeof(str)) {
usr.sbin/unbound/libunbound/context.h
178
struct libworker* w;
usr.sbin/unbound/libunbound/libworker.c
100
regional_destroy(w->env->scratch);
usr.sbin/unbound/libunbound/libworker.c
101
ub_randfree(w->env->rnd);
usr.sbin/unbound/libunbound/libworker.c
102
free(w->env);
usr.sbin/unbound/libunbound/libworker.c
105
SSL_CTX_free(w->sslctx);
usr.sbin/unbound/libunbound/libworker.c
107
outside_network_delete(w->back);
usr.sbin/unbound/libunbound/libworker.c
112
libworker_delete(struct libworker* w)
usr.sbin/unbound/libunbound/libworker.c
114
if(!w) return;
usr.sbin/unbound/libunbound/libworker.c
115
libworker_delete_env(w);
usr.sbin/unbound/libunbound/libworker.c
116
comm_base_delete(w->base);
usr.sbin/unbound/libunbound/libworker.c
117
free(w);
usr.sbin/unbound/libunbound/libworker.c
121
libworker_delete_event(struct libworker* w)
usr.sbin/unbound/libunbound/libworker.c
123
if(!w) return;
usr.sbin/unbound/libunbound/libworker.c
124
libworker_delete_env(w);
usr.sbin/unbound/libunbound/libworker.c
125
comm_base_delete_no_base(w->base);
usr.sbin/unbound/libunbound/libworker.c
126
free(w);
usr.sbin/unbound/libunbound/libworker.c
133
struct libworker* w = (struct libworker*)calloc(1, sizeof(*w));
usr.sbin/unbound/libunbound/libworker.c
137
if(!w) return NULL;
usr.sbin/unbound/libunbound/libworker.c
138
w->is_bg = is_bg;
usr.sbin/unbound/libunbound/libworker.c
139
w->ctx = ctx;
usr.sbin/unbound/libunbound/libworker.c
140
w->env = (struct module_env*)malloc(sizeof(*w->env));
usr.sbin/unbound/libunbound/libworker.c
141
if(!w->env) {
usr.sbin/unbound/libunbound/libworker.c
142
free(w);
usr.sbin/unbound/libunbound/libworker.c
145
*w->env = *ctx->env;
usr.sbin/unbound/libunbound/libworker.c
146
w->env->alloc = context_obtain_alloc(ctx, !w->is_bg || w->is_bg_thread);
usr.sbin/unbound/libunbound/libworker.c
147
if(!w->env->alloc) {
usr.sbin/unbound/libunbound/libworker.c
148
libworker_delete(w);
usr.sbin/unbound/libunbound/libworker.c
151
w->thread_num = w->env->alloc->thread_num;
usr.sbin/unbound/libunbound/libworker.c
152
alloc_set_id_cleanup(w->env->alloc, &libworker_alloc_cleanup, w);
usr.sbin/unbound/libunbound/libworker.c
153
if(!w->is_bg || w->is_bg_thread) {
usr.sbin/unbound/libunbound/libworker.c
156
w->env->scratch = regional_create_custom(cfg->msg_buffer_size);
usr.sbin/unbound/libunbound/libworker.c
157
w->env->scratch_buffer = sldns_buffer_new(cfg->msg_buffer_size);
usr.sbin/unbound/libunbound/libworker.c
159
w->sslctx = connect_sslctx_create(NULL, NULL,
usr.sbin/unbound/libunbound/libworker.c
161
if(!w->sslctx) {
usr.sbin/unbound/libunbound/libworker.c
163
sldns_buffer_free(w->env->scratch_buffer);
usr.sbin/unbound/libunbound/libworker.c
164
w->env->scratch_buffer = NULL;
usr.sbin/unbound/libunbound/libworker.c
167
if(!w->is_bg || w->is_bg_thread) {
usr.sbin/unbound/libunbound/libworker.c
170
if(!w->env->scratch || !w->env->scratch_buffer) {
usr.sbin/unbound/libunbound/libworker.c
171
libworker_delete(w);
usr.sbin/unbound/libunbound/libworker.c
174
w->env->worker = (struct worker*)w;
usr.sbin/unbound/libunbound/libworker.c
175
w->env->probe_timer = NULL;
usr.sbin/unbound/libunbound/libworker.c
176
if(!w->is_bg || w->is_bg_thread) {
usr.sbin/unbound/libunbound/libworker.c
179
if(!(w->env->rnd = ub_initstate(ctx->seed_rnd))) {
usr.sbin/unbound/libunbound/libworker.c
180
if(!w->is_bg || w->is_bg_thread) {
usr.sbin/unbound/libunbound/libworker.c
183
libworker_delete(w);
usr.sbin/unbound/libunbound/libworker.c
186
if(!w->is_bg || w->is_bg_thread) {
usr.sbin/unbound/libunbound/libworker.c
199
hash_set_raninit((uint32_t)ub_random(w->env->rnd));
usr.sbin/unbound/libunbound/libworker.c
204
w->base = comm_base_create_event(eb);
usr.sbin/unbound/libunbound/libworker.c
205
else w->base = comm_base_create(0);
usr.sbin/unbound/libunbound/libworker.c
206
if(!w->base) {
usr.sbin/unbound/libunbound/libworker.c
207
libworker_delete(w);
usr.sbin/unbound/libunbound/libworker.c
210
w->env->worker_base = w->base;
usr.sbin/unbound/libunbound/libworker.c
211
if(!w->is_bg || w->is_bg_thread) {
usr.sbin/unbound/libunbound/libworker.c
216
if(!w->is_bg || w->is_bg_thread) {
usr.sbin/unbound/libunbound/libworker.c
219
libworker_delete(w);
usr.sbin/unbound/libunbound/libworker.c
222
w->back = outside_network_create(w->base, cfg->msg_buffer_size,
usr.sbin/unbound/libunbound/libworker.c
226
w->env->infra_cache, w->env->rnd, cfg->use_caps_bits_for_id,
usr.sbin/unbound/libunbound/libworker.c
228
cfg->outgoing_tcp_mss, &libworker_alloc_cleanup, w,
usr.sbin/unbound/libunbound/libworker.c
229
cfg->do_udp || cfg->udp_upstream_without_downstream, w->sslctx,
usr.sbin/unbound/libunbound/libworker.c
233
w->env->outnet = w->back;
usr.sbin/unbound/libunbound/libworker.c
234
if(!w->is_bg || w->is_bg_thread) {
usr.sbin/unbound/libunbound/libworker.c
238
if(!w->back) {
usr.sbin/unbound/libunbound/libworker.c
239
libworker_delete(w);
usr.sbin/unbound/libunbound/libworker.c
242
w->env->mesh = mesh_create(&ctx->mods, w->env);
usr.sbin/unbound/libunbound/libworker.c
243
if(!w->env->mesh) {
usr.sbin/unbound/libunbound/libworker.c
244
libworker_delete(w);
usr.sbin/unbound/libunbound/libworker.c
247
w->env->send_query = &libworker_send_query;
usr.sbin/unbound/libunbound/libworker.c
248
w->env->detach_subs = &mesh_detach_subs;
usr.sbin/unbound/libunbound/libworker.c
249
w->env->attach_sub = &mesh_attach_sub;
usr.sbin/unbound/libunbound/libworker.c
250
w->env->add_sub = &mesh_add_sub;
usr.sbin/unbound/libunbound/libworker.c
251
w->env->kill_sub = &mesh_state_delete;
usr.sbin/unbound/libunbound/libworker.c
252
w->env->detect_cycle = &mesh_detect_cycle;
usr.sbin/unbound/libunbound/libworker.c
253
comm_base_timept(w->base, &w->env->now, &w->env->now_tv);
usr.sbin/unbound/libunbound/libworker.c
255
return w;
usr.sbin/unbound/libunbound/libworker.c
266
handle_cancel(struct libworker* w, uint8_t* buf, uint32_t len)
usr.sbin/unbound/libunbound/libworker.c
269
if(w->is_bg_thread) {
usr.sbin/unbound/libunbound/libworker.c
270
lock_basic_lock(&w->ctx->cfglock);
usr.sbin/unbound/libunbound/libworker.c
271
q = context_deserialize_cancel(w->ctx, buf, len);
usr.sbin/unbound/libunbound/libworker.c
272
lock_basic_unlock(&w->ctx->cfglock);
usr.sbin/unbound/libunbound/libworker.c
274
q = context_deserialize_cancel(w->ctx, buf, len);
usr.sbin/unbound/libunbound/libworker.c
287
libworker_do_cmd(struct libworker* w, uint8_t* msg, uint32_t len)
usr.sbin/unbound/libunbound/libworker.c
299
comm_base_exit(w->base);
usr.sbin/unbound/libunbound/libworker.c
302
handle_newq(w, msg, len);
usr.sbin/unbound/libunbound/libworker.c
305
handle_cancel(w, msg, len);
usr.sbin/unbound/libunbound/libworker.c
315
struct libworker* w = (struct libworker*)arg;
usr.sbin/unbound/libunbound/libworker.c
320
comm_base_exit(w->base);
usr.sbin/unbound/libunbound/libworker.c
323
libworker_do_cmd(w, msg, len); /* also frees the buf */
usr.sbin/unbound/libunbound/libworker.c
332
struct libworker* w = (struct libworker*)arg;
usr.sbin/unbound/libunbound/libworker.c
334
if(!w) {
usr.sbin/unbound/libunbound/libworker.c
338
ctx = w->ctx;
usr.sbin/unbound/libunbound/libworker.c
339
log_thread_set(&w->thread_num);
usr.sbin/unbound/libunbound/libworker.c
342
w->is_bg_thread = 0;
usr.sbin/unbound/libunbound/libworker.c
347
if(!tube_setup_bg_listen(ctx->qq_pipe, w->base,
usr.sbin/unbound/libunbound/libworker.c
348
libworker_handle_control_cmd, w)) {
usr.sbin/unbound/libunbound/libworker.c
352
if(!tube_setup_bg_write(ctx->rr_pipe, w->base)) {
usr.sbin/unbound/libunbound/libworker.c
358
comm_base_dispatch(w->base);
usr.sbin/unbound/libunbound/libworker.c
362
w->want_quit = 1;
usr.sbin/unbound/libunbound/libworker.c
363
tube_remove_bg_listen(w->ctx->qq_pipe);
usr.sbin/unbound/libunbound/libworker.c
364
tube_remove_bg_write(w->ctx->rr_pipe);
usr.sbin/unbound/libunbound/libworker.c
365
libworker_delete(w);
usr.sbin/unbound/libunbound/libworker.c
378
struct libworker* w;
usr.sbin/unbound/libunbound/libworker.c
383
w = libworker_setup(ctx, 1, NULL);
usr.sbin/unbound/libunbound/libworker.c
384
if(!w) return UB_NOMEM;
usr.sbin/unbound/libunbound/libworker.c
385
w->is_bg_thread = 1;
usr.sbin/unbound/libunbound/libworker.c
386
ctx->thread_worker = w;
usr.sbin/unbound/libunbound/libworker.c
388
w->thread_num = 1; /* for nicer DEBUG checklocks */
usr.sbin/unbound/libunbound/libworker.c
390
ub_thread_create(&ctx->bg_tid, libworker_dobg, w);
usr.sbin/unbound/libunbound/libworker.c
399
w = libworker_setup(ctx, 1, NULL);
usr.sbin/unbound/libunbound/libworker.c
400
if(!w) fatal_exit("out of memory");
usr.sbin/unbound/libunbound/libworker.c
404
(void)libworker_dobg(w);
usr.sbin/unbound/libunbound/libworker.c
562
libworker_enter_result(q->res, buf, q->w->env->scratch, s);
usr.sbin/unbound/libunbound/libworker.c
571
comm_base_exit(q->w->base);
usr.sbin/unbound/libunbound/libworker.c
578
setup_qinfo_edns(struct libworker* w, struct ctx_query* q,
usr.sbin/unbound/libunbound/libworker.c
598
if(sldns_buffer_capacity(w->back->udp_buff) < 65535)
usr.sbin/unbound/libunbound/libworker.c
600
w->back->udp_buff);
usr.sbin/unbound/libunbound/libworker.c
607
struct libworker* w = libworker_setup(ctx, 0, NULL);
usr.sbin/unbound/libunbound/libworker.c
611
if(!w)
usr.sbin/unbound/libunbound/libworker.c
613
if(!setup_qinfo_edns(w, q, &qinfo, &edns)) {
usr.sbin/unbound/libunbound/libworker.c
614
libworker_delete(w);
usr.sbin/unbound/libunbound/libworker.c
619
q->w = w;
usr.sbin/unbound/libunbound/libworker.c
621
sldns_buffer_write_u16_at(w->back->udp_buff, 0, qid);
usr.sbin/unbound/libunbound/libworker.c
622
sldns_buffer_write_u16_at(w->back->udp_buff, 2, qflags);
usr.sbin/unbound/libunbound/libworker.c
623
if(local_zones_answer(ctx->local_zones, w->env, &qinfo, &edns,
usr.sbin/unbound/libunbound/libworker.c
624
w->back->udp_buff, w->env->scratch, NULL, NULL, 0, NULL, 0,
usr.sbin/unbound/libunbound/libworker.c
626
regional_free_all(w->env->scratch);
usr.sbin/unbound/libunbound/libworker.c
628
w->back->udp_buff, sec_status_insecure, NULL, 0);
usr.sbin/unbound/libunbound/libworker.c
629
libworker_delete(w);
usr.sbin/unbound/libunbound/libworker.c
634
ctx->env->auth_zones, w->env, &qinfo, &edns, NULL,
usr.sbin/unbound/libunbound/libworker.c
635
w->back->udp_buff, w->env->scratch)) {
usr.sbin/unbound/libunbound/libworker.c
636
regional_free_all(w->env->scratch);
usr.sbin/unbound/libunbound/libworker.c
638
w->back->udp_buff, sec_status_insecure, NULL, 0);
usr.sbin/unbound/libunbound/libworker.c
639
libworker_delete(w);
usr.sbin/unbound/libunbound/libworker.c
644
if(!mesh_new_callback(w->env->mesh, &qinfo, qflags, &edns,
usr.sbin/unbound/libunbound/libworker.c
645
w->back->udp_buff, qid, libworker_fg_done_cb, q, 0)) {
usr.sbin/unbound/libunbound/libworker.c
652
comm_base_dispatch(w->base);
usr.sbin/unbound/libunbound/libworker.c
654
libworker_delete(w);
usr.sbin/unbound/libunbound/libworker.c
668
struct ub_ctx* ctx = q->w->ctx;
usr.sbin/unbound/libunbound/libworker.c
690
struct libworker* w = ctx->event_worker;
usr.sbin/unbound/libunbound/libworker.c
694
if(!w)
usr.sbin/unbound/libunbound/libworker.c
696
if(!setup_qinfo_edns(w, q, &qinfo, &edns))
usr.sbin/unbound/libunbound/libworker.c
700
q->w = w;
usr.sbin/unbound/libunbound/libworker.c
702
sldns_buffer_write_u16_at(w->back->udp_buff, 0, qid);
usr.sbin/unbound/libunbound/libworker.c
703
sldns_buffer_write_u16_at(w->back->udp_buff, 2, qflags);
usr.sbin/unbound/libunbound/libworker.c
704
if(local_zones_answer(ctx->local_zones, w->env, &qinfo, &edns,
usr.sbin/unbound/libunbound/libworker.c
705
w->back->udp_buff, w->env->scratch, NULL, NULL, 0, NULL, 0,
usr.sbin/unbound/libunbound/libworker.c
707
regional_free_all(w->env->scratch);
usr.sbin/unbound/libunbound/libworker.c
710
w->back->udp_buff, sec_status_insecure, NULL, 0);
usr.sbin/unbound/libunbound/libworker.c
714
ctx->env->auth_zones, w->env, &qinfo, &edns, NULL,
usr.sbin/unbound/libunbound/libworker.c
715
w->back->udp_buff, w->env->scratch)) {
usr.sbin/unbound/libunbound/libworker.c
716
regional_free_all(w->env->scratch);
usr.sbin/unbound/libunbound/libworker.c
719
w->back->udp_buff, sec_status_insecure, NULL, 0);
usr.sbin/unbound/libunbound/libworker.c
725
if(!mesh_new_callback(w->env->mesh, &qinfo, qflags, &edns,
usr.sbin/unbound/libunbound/libworker.c
726
w->back->udp_buff, qid, libworker_event_done_cb, q, 0)) {
usr.sbin/unbound/libunbound/libworker.c
736
add_bg_result(struct libworker* w, struct ctx_query* q, sldns_buffer* pkt,
usr.sbin/unbound/libunbound/libworker.c
742
if(w->want_quit) {
usr.sbin/unbound/libunbound/libworker.c
747
if(w->is_bg_thread) {
usr.sbin/unbound/libunbound/libworker.c
748
lock_basic_lock(&w->ctx->cfglock);
usr.sbin/unbound/libunbound/libworker.c
763
lock_basic_unlock(&w->ctx->cfglock);
usr.sbin/unbound/libunbound/libworker.c
769
(void)rbtree_delete(&w->ctx->queries, q->node.key);
usr.sbin/unbound/libunbound/libworker.c
770
w->ctx->num_async--;
usr.sbin/unbound/libunbound/libworker.c
778
if(!tube_queue_item(w->ctx->rr_pipe, msg, len)) {
usr.sbin/unbound/libunbound/libworker.c
790
if(q->cancelled || q->w->back->want_to_quit) {
usr.sbin/unbound/libunbound/libworker.c
791
if(q->w->is_bg_thread) {
usr.sbin/unbound/libunbound/libworker.c
793
struct ub_ctx* ctx = q->w->ctx;
usr.sbin/unbound/libunbound/libworker.c
805
buf = q->w->env->scratch_buffer;
usr.sbin/unbound/libunbound/libworker.c
810
add_bg_result(q->w, q, buf, UB_NOERROR, why_bogus, was_ratelimited);
usr.sbin/unbound/libunbound/libworker.c
816
handle_newq(struct libworker* w, uint8_t* buf, uint32_t len)
usr.sbin/unbound/libunbound/libworker.c
822
if(w->is_bg_thread) {
usr.sbin/unbound/libunbound/libworker.c
823
lock_basic_lock(&w->ctx->cfglock);
usr.sbin/unbound/libunbound/libworker.c
824
q = context_lookup_new_query(w->ctx, buf, len);
usr.sbin/unbound/libunbound/libworker.c
825
lock_basic_unlock(&w->ctx->cfglock);
usr.sbin/unbound/libunbound/libworker.c
827
q = context_deserialize_new_query(w->ctx, buf, len);
usr.sbin/unbound/libunbound/libworker.c
834
if(!setup_qinfo_edns(w, q, &qinfo, &edns)) {
usr.sbin/unbound/libunbound/libworker.c
835
add_bg_result(w, q, NULL, UB_SYNTAX, NULL, 0);
usr.sbin/unbound/libunbound/libworker.c
841
sldns_buffer_write_u16_at(w->back->udp_buff, 0, qid);
usr.sbin/unbound/libunbound/libworker.c
842
sldns_buffer_write_u16_at(w->back->udp_buff, 2, qflags);
usr.sbin/unbound/libunbound/libworker.c
843
if(local_zones_answer(w->ctx->local_zones, w->env, &qinfo, &edns,
usr.sbin/unbound/libunbound/libworker.c
844
w->back->udp_buff, w->env->scratch, NULL, NULL, 0, NULL, 0,
usr.sbin/unbound/libunbound/libworker.c
846
regional_free_all(w->env->scratch);
usr.sbin/unbound/libunbound/libworker.c
848
add_bg_result(w, q, w->back->udp_buff, UB_NOERROR, NULL, 0);
usr.sbin/unbound/libunbound/libworker.c
852
if(w->ctx->env->auth_zones && auth_zones_downstream_answer(
usr.sbin/unbound/libunbound/libworker.c
853
w->ctx->env->auth_zones, w->env, &qinfo, &edns, NULL,
usr.sbin/unbound/libunbound/libworker.c
854
w->back->udp_buff, w->env->scratch)) {
usr.sbin/unbound/libunbound/libworker.c
855
regional_free_all(w->env->scratch);
usr.sbin/unbound/libunbound/libworker.c
857
add_bg_result(w, q, w->back->udp_buff, UB_NOERROR, NULL, 0);
usr.sbin/unbound/libunbound/libworker.c
861
q->w = w;
usr.sbin/unbound/libunbound/libworker.c
863
if(!mesh_new_callback(w->env->mesh, &qinfo, qflags, &edns,
usr.sbin/unbound/libunbound/libworker.c
864
w->back->udp_buff, qid, libworker_bg_done_cb, q, 0)) {
usr.sbin/unbound/libunbound/libworker.c
865
add_bg_result(w, q, NULL, UB_NOMEM, NULL, 0);
usr.sbin/unbound/libunbound/libworker.c
872
struct libworker* w = (struct libworker*)arg;
usr.sbin/unbound/libunbound/libworker.c
873
slabhash_clear(&w->env->rrset_cache->table);
usr.sbin/unbound/libunbound/libworker.c
874
slabhash_clear(w->env->msg_cache);
usr.sbin/unbound/libunbound/libworker.c
88
static void handle_newq(struct libworker* w, uint8_t* buf, uint32_t len);
usr.sbin/unbound/libunbound/libworker.c
884
struct libworker* w = (struct libworker*)q->env->worker;
usr.sbin/unbound/libunbound/libworker.c
890
e->qsent = outnet_serviced_query(w->back, qinfo, flags, dnssec,
usr.sbin/unbound/libunbound/libworker.c
893
libworker_handle_service_reply, e, w->back->udp_buff, q->env,
usr.sbin/unbound/libunbound/libworker.c
92
libworker_delete_env(struct libworker* w)
usr.sbin/unbound/libunbound/libworker.c
94
if(w->env) {
usr.sbin/unbound/libunbound/libworker.c
95
outside_network_quit_prepare(w->back);
usr.sbin/unbound/libunbound/libworker.c
96
mesh_delete(w->env->mesh);
usr.sbin/unbound/libunbound/libworker.c
97
context_release_alloc(w->ctx, w->env->alloc,
usr.sbin/unbound/libunbound/libworker.c
98
!w->is_bg || w->is_bg_thread);
usr.sbin/unbound/libunbound/libworker.c
99
sldns_buffer_free(w->env->scratch_buffer);
usr.sbin/unbound/libunbound/libworker.h
137
void libworker_delete_event(struct libworker* w);
usr.sbin/unbound/services/authzone.c
1655
int w = 0;
usr.sbin/unbound/services/authzone.c
1661
w += sldns_wire2str_dname_scan(&dat, &datlen, &s, &slen, NULL, 0, NULL);
usr.sbin/unbound/services/authzone.c
1662
w += sldns_str_print(&s, &slen, "\t");
usr.sbin/unbound/services/authzone.c
1663
w += sldns_str_print(&s, &slen, "%lu\t", (unsigned long)data->rr_ttl[i]);
usr.sbin/unbound/services/authzone.c
1664
w += sldns_wire2str_class_print(&s, &slen, cl);
usr.sbin/unbound/services/authzone.c
1665
w += sldns_str_print(&s, &slen, "\t");
usr.sbin/unbound/services/authzone.c
1666
w += sldns_wire2str_type_print(&s, &slen, tp);
usr.sbin/unbound/services/authzone.c
1667
w += sldns_str_print(&s, &slen, "\t");
usr.sbin/unbound/services/authzone.c
1670
w += sldns_wire2str_rdata_scan(&dat, &datlen, &s, &slen, tp, NULL, 0, NULL);
usr.sbin/unbound/services/authzone.c
1673
w += sldns_str_print(&s, &slen, " ;{id = %u}",
usr.sbin/unbound/services/authzone.c
1677
w += sldns_str_print(&s, &slen, "\n");
usr.sbin/unbound/services/authzone.c
1679
if(w >= (int)buflen) {
usr.sbin/unbound/services/cache/infra.c
1279
struct wait_limit_netblock_info* w;
usr.sbin/unbound/services/cache/infra.c
1288
w = (struct wait_limit_netblock_info*)addr_tree_lookup(tree,
usr.sbin/unbound/services/cache/infra.c
1290
if(w) {
usr.sbin/unbound/services/cache/infra.c
1291
if(w->limit != -1 && mesh_wait > w->limit)
usr.sbin/unbound/services/outside_network.c
1002
memcpy(&pend->reuse.addr, &w->addr, w->addrlen);
usr.sbin/unbound/services/outside_network.c
1003
pend->reuse.addrlen = w->addrlen;
usr.sbin/unbound/services/outside_network.c
1004
if(!outnet_tcp_take_into_use(w)) {
usr.sbin/unbound/services/outside_network.c
1005
waiting_tcp_callback(w, NULL, NETEVENT_CLOSED,
usr.sbin/unbound/services/outside_network.c
1007
waiting_tcp_delete(w);
usr.sbin/unbound/services/outside_network.c
1009
w = NULL;
usr.sbin/unbound/services/outside_network.c
1017
outnet_waiting_tcp_list_add_first(outnet, w, 0);
usr.sbin/unbound/services/outside_network.c
1021
if(outnet->dtenv && pend_tcp && w && w->sq &&
usr.sbin/unbound/services/outside_network.c
1025
sldns_buffer_init_frm_data(&tmp, w->pkt, w->pkt_len);
usr.sbin/unbound/services/outside_network.c
1026
dt_msg_send_outside_query(outnet->dtenv, &w->sq->addr,
usr.sbin/unbound/services/outside_network.c
1027
&pend_tcp->pi->addr, comm_tcp, NULL, w->sq->zone,
usr.sbin/unbound/services/outside_network.c
1028
w->sq->zonelen, &tmp);
usr.sbin/unbound/services/outside_network.c
1036
reuse_tree_by_id_delete(struct reuse_tcp* reuse, struct waiting_tcp* w)
usr.sbin/unbound/services/outside_network.c
1041
log_assert(w->id_node.key != NULL);
usr.sbin/unbound/services/outside_network.c
1047
rbtree_delete(&reuse->tree_by_id, w);
usr.sbin/unbound/services/outside_network.c
1049
w->id_node.key = NULL;
usr.sbin/unbound/services/outside_network.c
1063
struct waiting_tcp* w;
usr.sbin/unbound/services/outside_network.c
1083
w = pend->query;
usr.sbin/unbound/services/outside_network.c
1089
w->error_count ++;
usr.sbin/unbound/services/outside_network.c
1090
reuse_tree_by_id_delete(&pend->reuse, w);
usr.sbin/unbound/services/outside_network.c
1091
outnet_waiting_tcp_list_add(outnet, w, 1);
usr.sbin/unbound/services/outside_network.c
1093
while((w = reuse_write_wait_pop(&pend->reuse)) != NULL) {
usr.sbin/unbound/services/outside_network.c
1094
if(verbosity >= VERB_CLIENT && w->pkt_len > 12+2+2 &&
usr.sbin/unbound/services/outside_network.c
1095
LDNS_QDCOUNT(w->pkt) > 0 &&
usr.sbin/unbound/services/outside_network.c
1096
dname_valid(w->pkt+12, w->pkt_len-12)) {
usr.sbin/unbound/services/outside_network.c
1098
dname_str(w->pkt+12, buf);
usr.sbin/unbound/services/outside_network.c
1101
reuse_tree_by_id_delete(&pend->reuse, w);
usr.sbin/unbound/services/outside_network.c
1102
outnet_waiting_tcp_list_add(outnet, w, 1);
usr.sbin/unbound/services/outside_network.c
1171
struct waiting_tcp* w = (struct waiting_tcp*)node->key;
usr.sbin/unbound/services/outside_network.c
1172
waiting_tcp_delete(w);
usr.sbin/unbound/services/outside_network.c
1230
struct waiting_tcp* w = (struct waiting_tcp*)node->key;
usr.sbin/unbound/services/outside_network.c
1231
waiting_tcp_callback(w, NULL, err, NULL);
usr.sbin/unbound/services/outside_network.c
1240
struct waiting_tcp* w = (struct waiting_tcp*)node->key;
usr.sbin/unbound/services/outside_network.c
1244
w->in_cb_and_decommission = 1;
usr.sbin/unbound/services/outside_network.c
1248
if(w->cb)
usr.sbin/unbound/services/outside_network.c
1249
((struct serviced_query*)w->cb_arg)->to_be_deleted = 1;
usr.sbin/unbound/services/outside_network.c
1300
struct waiting_tcp* w = NULL;
usr.sbin/unbound/services/outside_network.c
1366
w = reuse_tcp_by_id_find(&pend->reuse, id);
usr.sbin/unbound/services/outside_network.c
1371
if(w && (w->on_tcp_waiting_list || w->write_wait_queued))
usr.sbin/unbound/services/outside_network.c
1372
w = NULL;
usr.sbin/unbound/services/outside_network.c
1375
if(error == NETEVENT_NOERROR && !w) {
usr.sbin/unbound/services/outside_network.c
1389
if(w) {
usr.sbin/unbound/services/outside_network.c
1390
log_assert(!w->on_tcp_waiting_list);
usr.sbin/unbound/services/outside_network.c
1391
log_assert(!w->write_wait_queued);
usr.sbin/unbound/services/outside_network.c
1392
reuse_tree_by_id_delete(&pend->reuse, w);
usr.sbin/unbound/services/outside_network.c
1395
waiting_tcp_callback(w, c, error, reply_info);
usr.sbin/unbound/services/outside_network.c
1396
waiting_tcp_delete(w);
usr.sbin/unbound/services/outside_network.c
195
waiting_tcp_delete(struct waiting_tcp* w)
usr.sbin/unbound/services/outside_network.c
197
if(!w) return;
usr.sbin/unbound/services/outside_network.c
198
if(w->timer)
usr.sbin/unbound/services/outside_network.c
199
comm_timer_delete(w->timer);
usr.sbin/unbound/services/outside_network.c
200
free(w);
usr.sbin/unbound/services/outside_network.c
213
pick_outgoing_tcp(struct pending_tcp* pend, struct waiting_tcp* w, int s)
usr.sbin/unbound/services/outside_network.c
219
if(addr_is_ip6(&w->addr, w->addrlen))
usr.sbin/unbound/services/outside_network.c
220
num = w->outnet->num_ip6;
usr.sbin/unbound/services/outside_network.c
223
num = w->outnet->num_ip4;
usr.sbin/unbound/services/outside_network.c
226
log_addr(VERB_OPS, "for addr", &w->addr, w->addrlen);
usr.sbin/unbound/services/outside_network.c
231
if(addr_is_ip6(&w->addr, w->addrlen))
usr.sbin/unbound/services/outside_network.c
232
pi = &w->outnet->ip6_ifs[ub_random_max(w->outnet->rnd, num)];
usr.sbin/unbound/services/outside_network.c
2326
struct waiting_tcp* w = (struct waiting_tcp*)arg;
usr.sbin/unbound/services/outside_network.c
2327
struct outside_network* outnet = w->outnet;
usr.sbin/unbound/services/outside_network.c
2329
if(w->on_tcp_waiting_list) {
usr.sbin/unbound/services/outside_network.c
2331
outnet_waiting_tcp_list_remove(outnet, w);
usr.sbin/unbound/services/outside_network.c
2332
waiting_tcp_callback(w, NULL, NETEVENT_TIMEOUT, NULL);
usr.sbin/unbound/services/outside_network.c
2333
waiting_tcp_delete(w);
usr.sbin/unbound/services/outside_network.c
2336
struct pending_tcp* pend=(struct pending_tcp*)w->next_waiting;
usr.sbin/unbound/services/outside_network.c
235
pi = &w->outnet->ip4_ifs[ub_random_max(w->outnet->rnd, num)];
usr.sbin/unbound/services/outside_network.c
2439
struct waiting_tcp* w;
usr.sbin/unbound/services/outside_network.c
2470
w = (struct waiting_tcp*)malloc(sizeof(struct waiting_tcp)
usr.sbin/unbound/services/outside_network.c
2472
if(!w) {
usr.sbin/unbound/services/outside_network.c
2475
if(!(w->timer = comm_timer_create(sq->outnet->base, outnet_tcptimer, w))) {
usr.sbin/unbound/services/outside_network.c
2476
free(w);
usr.sbin/unbound/services/outside_network.c
2479
w->pkt = (uint8_t*)w + sizeof(struct waiting_tcp);
usr.sbin/unbound/services/outside_network.c
2480
w->pkt_len = sldns_buffer_limit(packet);
usr.sbin/unbound/services/outside_network.c
2481
memmove(w->pkt, sldns_buffer_begin(packet), w->pkt_len);
usr.sbin/unbound/services/outside_network.c
2482
w->id = tcp_select_id(sq->outnet, reuse);
usr.sbin/unbound/services/outside_network.c
2483
LDNS_ID_SET(w->pkt, w->id);
usr.sbin/unbound/services/outside_network.c
2484
memcpy(&w->addr, &sq->addr, sq->addrlen);
usr.sbin/unbound/services/outside_network.c
2485
w->addrlen = sq->addrlen;
usr.sbin/unbound/services/outside_network.c
2486
w->outnet = sq->outnet;
usr.sbin/unbound/services/outside_network.c
2487
w->on_tcp_waiting_list = 0;
usr.sbin/unbound/services/outside_network.c
2488
w->next_waiting = NULL;
usr.sbin/unbound/services/outside_network.c
2489
w->cb = callback;
usr.sbin/unbound/services/outside_network.c
2490
w->cb_arg = callback_arg;
usr.sbin/unbound/services/outside_network.c
2491
w->ssl_upstream = sq->ssl_upstream;
usr.sbin/unbound/services/outside_network.c
2492
w->tls_auth_name = sq->tls_auth_name;
usr.sbin/unbound/services/outside_network.c
2493
w->timeout = timeout;
usr.sbin/unbound/services/outside_network.c
2494
w->id_node.key = NULL;
usr.sbin/unbound/services/outside_network.c
2495
w->write_wait_prev = NULL;
usr.sbin/unbound/services/outside_network.c
2496
w->write_wait_next = NULL;
usr.sbin/unbound/services/outside_network.c
2497
w->write_wait_queued = 0;
usr.sbin/unbound/services/outside_network.c
2498
w->error_count = 0;
usr.sbin/unbound/services/outside_network.c
2500
w->sq = NULL;
usr.sbin/unbound/services/outside_network.c
2502
w->in_cb_and_decommission = 0;
usr.sbin/unbound/services/outside_network.c
2510
w->next_waiting = (void*)pend;
usr.sbin/unbound/services/outside_network.c
2511
reuse_tree_by_id_insert(&pend->reuse, w);
usr.sbin/unbound/services/outside_network.c
2517
pend->query = w;
usr.sbin/unbound/services/outside_network.c
2519
w);
usr.sbin/unbound/services/outside_network.c
2523
reuse_write_wait_push_back(&pend->reuse, w);
usr.sbin/unbound/services/outside_network.c
2533
if(!outnet_tcp_take_into_use(w)) {
usr.sbin/unbound/services/outside_network.c
2534
waiting_tcp_delete(w);
usr.sbin/unbound/services/outside_network.c
2544
sldns_buffer_init_frm_data(&tmp, w->pkt, w->pkt_len);
usr.sbin/unbound/services/outside_network.c
2556
w->sq = sq;
usr.sbin/unbound/services/outside_network.c
2558
outnet_waiting_tcp_list_add(sq->outnet, w, 1);
usr.sbin/unbound/services/outside_network.c
2560
return w;
usr.sbin/unbound/services/outside_network.c
2709
reuse_tcp_remove_serviced_keep(struct waiting_tcp* w,
usr.sbin/unbound/services/outside_network.c
2712
struct pending_tcp* pend_tcp = (struct pending_tcp*)w->next_waiting;
usr.sbin/unbound/services/outside_network.c
2718
w->cb = NULL;
usr.sbin/unbound/services/outside_network.c
2768
struct waiting_tcp* w = (struct waiting_tcp*)
usr.sbin/unbound/services/outside_network.c
2771
log_assert(!(w->write_wait_queued && w->on_tcp_waiting_list));
usr.sbin/unbound/services/outside_network.c
2774
if(w->write_wait_queued) {
usr.sbin/unbound/services/outside_network.c
2776
(struct pending_tcp*)w->next_waiting;
usr.sbin/unbound/services/outside_network.c
2778
if(!w->in_cb_and_decommission)
usr.sbin/unbound/services/outside_network.c
2779
reuse_tree_by_id_delete(&pend->reuse, w);
usr.sbin/unbound/services/outside_network.c
2780
reuse_write_wait_remove(&pend->reuse, w);
usr.sbin/unbound/services/outside_network.c
2781
if(!w->in_cb_and_decommission)
usr.sbin/unbound/services/outside_network.c
2782
waiting_tcp_delete(w);
usr.sbin/unbound/services/outside_network.c
2783
} else if(!w->on_tcp_waiting_list) {
usr.sbin/unbound/services/outside_network.c
2785
(struct pending_tcp*)w->next_waiting;
usr.sbin/unbound/services/outside_network.c
2790
w->cb = NULL;
usr.sbin/unbound/services/outside_network.c
2791
if(!reuse_tcp_remove_serviced_keep(w, sq)) {
usr.sbin/unbound/services/outside_network.c
2792
if(!w->in_cb_and_decommission)
usr.sbin/unbound/services/outside_network.c
2800
outnet_waiting_tcp_list_remove(sq->outnet, w);
usr.sbin/unbound/services/outside_network.c
2801
if(!w->in_cb_and_decommission)
usr.sbin/unbound/services/outside_network.c
2802
waiting_tcp_delete(w);
usr.sbin/unbound/services/outside_network.c
3094
struct waiting_tcp* w = (struct waiting_tcp*)sq->pending;
usr.sbin/unbound/services/outside_network.c
3097
if(w && !w->on_tcp_waiting_list && w->next_waiting) {
usr.sbin/unbound/services/outside_network.c
3098
pend_tcp = (struct pending_tcp*)w->next_waiting;
usr.sbin/unbound/services/outside_network.c
3855
waiting_tcp_get_mem(struct waiting_tcp* w)
usr.sbin/unbound/services/outside_network.c
3858
if(!w) return 0;
usr.sbin/unbound/services/outside_network.c
3859
s = sizeof(*w) + w->pkt_len;
usr.sbin/unbound/services/outside_network.c
3860
if(w->timer)
usr.sbin/unbound/services/outside_network.c
3861
s += comm_timer_get_mem(w->timer);
usr.sbin/unbound/services/outside_network.c
388
struct waiting_tcp* w = reuse->write_wait_first;
usr.sbin/unbound/services/outside_network.c
3884
waiting_udp_get_mem(struct pending* w)
usr.sbin/unbound/services/outside_network.c
3887
s = sizeof(*w) + comm_timer_get_mem(w->timer) + w->pkt_len;
usr.sbin/unbound/services/outside_network.c
389
if(!w)
usr.sbin/unbound/services/outside_network.c
3895
struct waiting_tcp* w;
usr.sbin/unbound/services/outside_network.c
391
log_assert(w->write_wait_queued);
usr.sbin/unbound/services/outside_network.c
392
log_assert(!w->write_wait_prev);
usr.sbin/unbound/services/outside_network.c
3921
for(w=outnet->tcp_wait_first; w; w = w->next_waiting)
usr.sbin/unbound/services/outside_network.c
3922
s += waiting_tcp_get_mem(w);
usr.sbin/unbound/services/outside_network.c
393
reuse->write_wait_first = w->write_wait_next;
usr.sbin/unbound/services/outside_network.c
394
if(w->write_wait_next)
usr.sbin/unbound/services/outside_network.c
395
w->write_wait_next->write_wait_prev = NULL;
usr.sbin/unbound/services/outside_network.c
397
w->write_wait_queued = 0;
usr.sbin/unbound/services/outside_network.c
398
w->write_wait_next = NULL;
usr.sbin/unbound/services/outside_network.c
399
w->write_wait_prev = NULL;
usr.sbin/unbound/services/outside_network.c
400
return w;
usr.sbin/unbound/services/outside_network.c
405
reuse_write_wait_remove(struct reuse_tcp* reuse, struct waiting_tcp* w)
usr.sbin/unbound/services/outside_network.c
407
log_assert(w);
usr.sbin/unbound/services/outside_network.c
408
log_assert(w->write_wait_queued);
usr.sbin/unbound/services/outside_network.c
409
if(!w)
usr.sbin/unbound/services/outside_network.c
411
if(!w->write_wait_queued)
usr.sbin/unbound/services/outside_network.c
413
if(w->write_wait_prev)
usr.sbin/unbound/services/outside_network.c
414
w->write_wait_prev->write_wait_next = w->write_wait_next;
usr.sbin/unbound/services/outside_network.c
415
else reuse->write_wait_first = w->write_wait_next;
usr.sbin/unbound/services/outside_network.c
416
log_assert(!w->write_wait_prev ||
usr.sbin/unbound/services/outside_network.c
417
w->write_wait_prev->write_wait_next != w->write_wait_prev);
usr.sbin/unbound/services/outside_network.c
418
if(w->write_wait_next)
usr.sbin/unbound/services/outside_network.c
419
w->write_wait_next->write_wait_prev = w->write_wait_prev;
usr.sbin/unbound/services/outside_network.c
420
else reuse->write_wait_last = w->write_wait_prev;
usr.sbin/unbound/services/outside_network.c
421
log_assert(!w->write_wait_next
usr.sbin/unbound/services/outside_network.c
422
|| w->write_wait_next->write_wait_prev != w->write_wait_next);
usr.sbin/unbound/services/outside_network.c
423
w->write_wait_queued = 0;
usr.sbin/unbound/services/outside_network.c
424
w->write_wait_next = NULL;
usr.sbin/unbound/services/outside_network.c
425
w->write_wait_prev = NULL;
usr.sbin/unbound/services/outside_network.c
430
reuse_write_wait_push_back(struct reuse_tcp* reuse, struct waiting_tcp* w)
usr.sbin/unbound/services/outside_network.c
432
if(!w) return;
usr.sbin/unbound/services/outside_network.c
433
log_assert(!w->write_wait_queued);
usr.sbin/unbound/services/outside_network.c
435
reuse->write_wait_last->write_wait_next = w;
usr.sbin/unbound/services/outside_network.c
438
w->write_wait_prev = reuse->write_wait_last;
usr.sbin/unbound/services/outside_network.c
440
reuse->write_wait_first = w;
usr.sbin/unbound/services/outside_network.c
441
w->write_wait_prev = NULL;
usr.sbin/unbound/services/outside_network.c
443
w->write_wait_next = NULL;
usr.sbin/unbound/services/outside_network.c
444
reuse->write_wait_last = w;
usr.sbin/unbound/services/outside_network.c
445
w->write_wait_queued = 1;
usr.sbin/unbound/services/outside_network.c
450
reuse_tree_by_id_insert(struct reuse_tcp* reuse, struct waiting_tcp* w)
usr.sbin/unbound/services/outside_network.c
455
log_assert(w->id_node.key == NULL);
usr.sbin/unbound/services/outside_network.c
456
w->id_node.key = w;
usr.sbin/unbound/services/outside_network.c
462
rbtree_insert(&reuse->tree_by_id, &w->id_node);
usr.sbin/unbound/services/outside_network.c
484
struct waiting_tcp* w = (struct waiting_tcp*)node->key;
usr.sbin/unbound/services/outside_network.c
485
return w->id;
usr.sbin/unbound/services/outside_network.c
619
struct waiting_tcp* w)
usr.sbin/unbound/services/outside_network.c
624
(int)w->pkt_len, w->timeout);
usr.sbin/unbound/services/outside_network.c
625
pend->c->tcp_write_pkt = w->pkt;
usr.sbin/unbound/services/outside_network.c
626
pend->c->tcp_write_pkt_len = w->pkt_len;
usr.sbin/unbound/services/outside_network.c
635
tv.tv_sec = w->timeout/1000;
usr.sbin/unbound/services/outside_network.c
636
tv.tv_usec = (w->timeout%1000)*1000;
usr.sbin/unbound/services/outside_network.c
641
comm_timer_set(w->timer, &tv);
usr.sbin/unbound/services/outside_network.c
646
outnet_tcp_take_into_use(struct waiting_tcp* w)
usr.sbin/unbound/services/outside_network.c
648
struct pending_tcp* pend = w->outnet->tcp_free;
usr.sbin/unbound/services/outside_network.c
651
log_assert(w->pkt);
usr.sbin/unbound/services/outside_network.c
652
log_assert(w->pkt_len > 0);
usr.sbin/unbound/services/outside_network.c
653
log_assert(w->addrlen > 0);
usr.sbin/unbound/services/outside_network.c
660
if (w->ssl_upstream && !w->outnet->sslctx) {
usr.sbin/unbound/services/outside_network.c
666
s = outnet_get_tcp_fd(&w->addr, w->addrlen, w->outnet->tcp_mss,
usr.sbin/unbound/services/outside_network.c
667
w->outnet->ip_dscp, w->ssl_upstream);
usr.sbin/unbound/services/outside_network.c
672
if(!pick_outgoing_tcp(pend, w, s))
usr.sbin/unbound/services/outside_network.c
680
struct sockaddr_in *addr_in = (struct sockaddr_in *)&w->addr;
usr.sbin/unbound/services/outside_network.c
681
addr_in->sin_len = w->addrlen;
usr.sbin/unbound/services/outside_network.c
686
endpoints.sae_dstaddr = (struct sockaddr *)&w->addr;
usr.sbin/unbound/services/outside_network.c
687
endpoints.sae_dstaddrlen = w->addrlen;
usr.sbin/unbound/services/outside_network.c
697
if(connect(s, (struct sockaddr*)&w->addr, w->addrlen) == -1) {
usr.sbin/unbound/services/outside_network.c
704
if (w->outnet->sslctx && w->ssl_upstream) {
usr.sbin/unbound/services/outside_network.c
705
if(connect(s, (struct sockaddr*)&w->addr, w->addrlen) == -1) {
usr.sbin/unbound/services/outside_network.c
707
if(connect(s, (struct sockaddr*)&w->addr, w->addrlen) == -1) {
usr.sbin/unbound/services/outside_network.c
717
(struct sockaddr*)&w->addr, w->addrlen))
usr.sbin/unbound/services/outside_network.c
719
strerror(errno), &w->addr, w->addrlen);
usr.sbin/unbound/services/outside_network.c
736
if(w->outnet->sslctx && w->ssl_upstream) {
usr.sbin/unbound/services/outside_network.c
737
pend->c->ssl = outgoing_ssl_fd(w->outnet->sslctx, s);
usr.sbin/unbound/services/outside_network.c
744
(w->tls_auth_name?w->tls_auth_name:"an unauthenticated connection"));
usr.sbin/unbound/services/outside_network.c
749
if(!set_auth_name_on_ssl(pend->c->ssl, w->tls_auth_name,
usr.sbin/unbound/services/outside_network.c
750
w->outnet->tls_use_sni)) {
usr.sbin/unbound/services/outside_network.c
760
w->next_waiting = (void*)pend;
usr.sbin/unbound/services/outside_network.c
761
w->outnet->num_tcp_outgoing++;
usr.sbin/unbound/services/outside_network.c
762
w->outnet->tcp_free = pend->next_free;
usr.sbin/unbound/services/outside_network.c
764
pend->query = w;
usr.sbin/unbound/services/outside_network.c
765
pend->reuse.outnet = w->outnet;
usr.sbin/unbound/services/outside_network.c
766
pend->c->repinfo.remote_addrlen = w->addrlen;
usr.sbin/unbound/services/outside_network.c
771
memcpy(&pend->c->repinfo.remote_addr, &w->addr, w->addrlen);
usr.sbin/unbound/services/outside_network.c
779
reuse_tcp_remove_tree_list(w->outnet, &pend->reuse);
usr.sbin/unbound/services/outside_network.c
785
(void)reuse_tcp_insert(w->outnet, pend);
usr.sbin/unbound/services/outside_network.c
786
reuse_tree_by_id_insert(&pend->reuse, w);
usr.sbin/unbound/services/outside_network.c
787
outnet_tcp_take_query_setup(s, pend, w);
usr.sbin/unbound/services/outside_network.c
857
outnet_waiting_tcp_list_remove(struct outside_network* outnet, struct waiting_tcp* w)
usr.sbin/unbound/services/outside_network.c
860
w->on_tcp_waiting_list = 0;
usr.sbin/unbound/services/outside_network.c
862
if(p == w) {
usr.sbin/unbound/services/outside_network.c
865
prev->next_waiting = w->next_waiting;
usr.sbin/unbound/services/outside_network.c
866
else outnet->tcp_wait_first = w->next_waiting;
usr.sbin/unbound/services/outside_network.c
867
if(outnet->tcp_wait_last == w)
usr.sbin/unbound/services/outside_network.c
869
w->next_waiting = NULL;
usr.sbin/unbound/services/outside_network.c
884
struct waiting_tcp* w = outnet->tcp_wait_first;
usr.sbin/unbound/services/outside_network.c
886
log_assert(w->on_tcp_waiting_list);
usr.sbin/unbound/services/outside_network.c
887
outnet->tcp_wait_first = w->next_waiting;
usr.sbin/unbound/services/outside_network.c
888
if(outnet->tcp_wait_last == w)
usr.sbin/unbound/services/outside_network.c
890
w->on_tcp_waiting_list = 0;
usr.sbin/unbound/services/outside_network.c
891
w->next_waiting = NULL;
usr.sbin/unbound/services/outside_network.c
892
return w;
usr.sbin/unbound/services/outside_network.c
898
struct waiting_tcp* w, int set_timer)
usr.sbin/unbound/services/outside_network.c
901
log_assert(!w->on_tcp_waiting_list);
usr.sbin/unbound/services/outside_network.c
902
if(w->on_tcp_waiting_list)
usr.sbin/unbound/services/outside_network.c
904
w->next_waiting = NULL;
usr.sbin/unbound/services/outside_network.c
906
outnet->tcp_wait_last->next_waiting = w;
usr.sbin/unbound/services/outside_network.c
907
else outnet->tcp_wait_first = w;
usr.sbin/unbound/services/outside_network.c
908
outnet->tcp_wait_last = w;
usr.sbin/unbound/services/outside_network.c
909
w->on_tcp_waiting_list = 1;
usr.sbin/unbound/services/outside_network.c
912
tv.tv_sec = w->timeout/1000;
usr.sbin/unbound/services/outside_network.c
913
tv.tv_usec = (w->timeout%1000)*1000;
usr.sbin/unbound/services/outside_network.c
915
comm_timer_set(w->timer, &tv);
usr.sbin/unbound/services/outside_network.c
922
struct waiting_tcp* w, int reset_timer)
usr.sbin/unbound/services/outside_network.c
925
log_assert(!w->on_tcp_waiting_list);
usr.sbin/unbound/services/outside_network.c
926
if(w->on_tcp_waiting_list)
usr.sbin/unbound/services/outside_network.c
928
w->next_waiting = outnet->tcp_wait_first;
usr.sbin/unbound/services/outside_network.c
929
log_assert(w->next_waiting != w);
usr.sbin/unbound/services/outside_network.c
931
outnet->tcp_wait_last = w;
usr.sbin/unbound/services/outside_network.c
932
outnet->tcp_wait_first = w;
usr.sbin/unbound/services/outside_network.c
933
w->on_tcp_waiting_list = 1;
usr.sbin/unbound/services/outside_network.c
936
tv.tv_sec = w->timeout/1000;
usr.sbin/unbound/services/outside_network.c
937
tv.tv_usec = (w->timeout%1000)*1000;
usr.sbin/unbound/services/outside_network.c
939
comm_timer_set(w->timer, &tv);
usr.sbin/unbound/services/outside_network.c
948
waiting_tcp_callback(struct waiting_tcp* w, struct comm_point* c, int error,
usr.sbin/unbound/services/outside_network.c
951
if(w && w->cb) {
usr.sbin/unbound/services/outside_network.c
952
fptr_ok(fptr_whitelist_pending_tcp(w->cb));
usr.sbin/unbound/services/outside_network.c
953
(void)(*w->cb)(c, w->cb_arg, error, reply_info);
usr.sbin/unbound/services/outside_network.c
961
struct waiting_tcp* w;
usr.sbin/unbound/services/outside_network.c
967
w = outnet_waiting_tcp_list_pop(outnet);
usr.sbin/unbound/services/outside_network.c
971
reuse = reuse_tcp_find(outnet, &w->addr, w->addrlen,
usr.sbin/unbound/services/outside_network.c
972
w->ssl_upstream);
usr.sbin/unbound/services/outside_network.c
974
w->id = tcp_select_id(outnet, reuse);
usr.sbin/unbound/services/outside_network.c
975
LDNS_ID_SET(w->pkt, w->id);
usr.sbin/unbound/services/outside_network.c
983
comm_timer_disable(w->timer);
usr.sbin/unbound/services/outside_network.c
984
w->next_waiting = (void*)reuse->pending;
usr.sbin/unbound/services/outside_network.c
985
reuse_tree_by_id_insert(reuse, w);
usr.sbin/unbound/services/outside_network.c
988
reuse_write_wait_push_back(reuse, w);
usr.sbin/unbound/services/outside_network.c
993
reuse->pending->query = w;
usr.sbin/unbound/services/outside_network.c
996
w);
usr.sbin/unbound/services/outside_network.c
999
struct pending_tcp* pend = w->outnet->tcp_free;
usr.sbin/unbound/services/outside_network.h
701
void reuse_tree_by_id_insert(struct reuse_tcp* reuse, struct waiting_tcp* w);
usr.sbin/unbound/services/outside_network.h
723
struct waiting_tcp* w);
usr.sbin/unbound/services/outside_network.h
730
struct waiting_tcp* w, int set_timer);
usr.sbin/unbound/services/outside_network.h
734
struct waiting_tcp* w, int reset_timer);
usr.sbin/unbound/services/outside_network.h
740
void reuse_write_wait_remove(struct reuse_tcp* reuse, struct waiting_tcp* w);
usr.sbin/unbound/services/outside_network.h
743
void reuse_write_wait_push_back(struct reuse_tcp* reuse, struct waiting_tcp* w);
usr.sbin/unbound/sldns/wire2str.c
1037
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
1041
w = sldns_str_print(s, slen, "=%d", (int)sldns_read_uint16(data));
usr.sbin/unbound/sldns/wire2str.c
1043
return w;
usr.sbin/unbound/sldns/wire2str.c
1051
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
1059
w += sldns_str_print(s, slen, "=%s", ip_str);
usr.sbin/unbound/sldns/wire2str.c
1066
w += sldns_str_print(s, slen, ",%s", ip_str);
usr.sbin/unbound/sldns/wire2str.c
1072
return w;
usr.sbin/unbound/sldns/wire2str.c
1080
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
1088
w += sldns_str_print(s, slen, "=%s", ip_str);
usr.sbin/unbound/sldns/wire2str.c
1095
w += sldns_str_print(s, slen, ",%s", ip_str);
usr.sbin/unbound/sldns/wire2str.c
1101
return w;
usr.sbin/unbound/sldns/wire2str.c
1107
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
1113
w += sldns_str_print(s, slen, "=");
usr.sbin/unbound/sldns/wire2str.c
1114
w += sldns_print_svcparamkey(s, slen, sldns_read_uint16(data));
usr.sbin/unbound/sldns/wire2str.c
1118
w += sldns_str_print(s, slen, ",");
usr.sbin/unbound/sldns/wire2str.c
1119
w += sldns_print_svcparamkey(s, slen, sldns_read_uint16(data));
usr.sbin/unbound/sldns/wire2str.c
1123
return w;
usr.sbin/unbound/sldns/wire2str.c
1130
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
1134
w += sldns_str_print(s, slen, "=\"");
usr.sbin/unbound/sldns/wire2str.c
1144
w += sldns_str_print(s, slen, "\\\\\\%c", dp[i]);
usr.sbin/unbound/sldns/wire2str.c
1147
w += sldns_str_print(s, slen, "\\\\%c", dp[i]);
usr.sbin/unbound/sldns/wire2str.c
1150
w += sldns_str_print(s, slen, "\\%03u", (unsigned) dp[i]);
usr.sbin/unbound/sldns/wire2str.c
1153
w += sldns_str_print(s, slen, "%c", dp[i]);
usr.sbin/unbound/sldns/wire2str.c
1157
w += sldns_str_print(s, slen, "%s", ",");
usr.sbin/unbound/sldns/wire2str.c
1159
w += sldns_str_print(s, slen, "\"");
usr.sbin/unbound/sldns/wire2str.c
1161
return w;
usr.sbin/unbound/sldns/wire2str.c
1168
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
1172
w += sldns_str_print(s, slen, "=\"");
usr.sbin/unbound/sldns/wire2str.c
1180
w += sldns_str_print(s, slen, "\"");
usr.sbin/unbound/sldns/wire2str.c
1182
return w + size;
usr.sbin/unbound/sldns/wire2str.c
1364
int w;
usr.sbin/unbound/sldns/wire2str.c
1366
w = sldns_str_print(s, sl, "%u", (unsigned)**d);
usr.sbin/unbound/sldns/wire2str.c
1369
return w;
usr.sbin/unbound/sldns/wire2str.c
1374
int w;
usr.sbin/unbound/sldns/wire2str.c
1376
w = sldns_str_print(s, sl, "%lu", (unsigned long)sldns_read_uint16(*d));
usr.sbin/unbound/sldns/wire2str.c
1379
return w;
usr.sbin/unbound/sldns/wire2str.c
1384
int w;
usr.sbin/unbound/sldns/wire2str.c
1386
w = sldns_str_print(s, sl, "%lu", (unsigned long)sldns_read_uint32(*d));
usr.sbin/unbound/sldns/wire2str.c
1389
return w;
usr.sbin/unbound/sldns/wire2str.c
1394
int w;
usr.sbin/unbound/sldns/wire2str.c
1396
w = sldns_str_print(s, sl, "%u", (unsigned)sldns_read_uint32(*d));
usr.sbin/unbound/sldns/wire2str.c
1399
return w;
usr.sbin/unbound/sldns/wire2str.c
1405
int w;
usr.sbin/unbound/sldns/wire2str.c
1417
w = sldns_str_print(s, sl, "%llu", (long long)tsigtime);
usr.sbin/unbound/sldns/wire2str.c
1419
w = sldns_str_print(s, sl, "%I64u", (long long)tsigtime);
usr.sbin/unbound/sldns/wire2str.c
1423
return w;
usr.sbin/unbound/sldns/wire2str.c
1429
int w;
usr.sbin/unbound/sldns/wire2str.c
1433
w = sldns_str_print(s, sl, "%s", buf);
usr.sbin/unbound/sldns/wire2str.c
1436
return w;
usr.sbin/unbound/sldns/wire2str.c
1443
int w;
usr.sbin/unbound/sldns/wire2str.c
1447
w = sldns_str_print(s, sl, "%s", buf);
usr.sbin/unbound/sldns/wire2str.c
1450
return w;
usr.sbin/unbound/sldns/wire2str.c
1474
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
1481
w += sldns_str_print(s, sl, "\"");
usr.sbin/unbound/sldns/wire2str.c
1483
w += str_char_print(s, sl, (*d)[i]);
usr.sbin/unbound/sldns/wire2str.c
1484
w += sldns_str_print(s, sl, "\"");
usr.sbin/unbound/sldns/wire2str.c
1487
return w;
usr.sbin/unbound/sldns/wire2str.c
1492
int i, w = 0;
usr.sbin/unbound/sldns/wire2str.c
1504
w += sldns_str_print(s, sl, "!");
usr.sbin/unbound/sldns/wire2str.c
1505
w += sldns_str_print(s, sl, "%u:", (unsigned)family);
usr.sbin/unbound/sldns/wire2str.c
1511
w += sldns_str_print(s, sl, ".");
usr.sbin/unbound/sldns/wire2str.c
1513
w += sldns_str_print(s, sl, "%d", (*d)[4+i]);
usr.sbin/unbound/sldns/wire2str.c
1514
else w += sldns_str_print(s, sl, "0");
usr.sbin/unbound/sldns/wire2str.c
1521
w += sldns_str_print(s, sl, ":");
usr.sbin/unbound/sldns/wire2str.c
1523
w += sldns_str_print(s, sl, "%02x", (*d)[4+i]);
usr.sbin/unbound/sldns/wire2str.c
1524
else w += sldns_str_print(s, sl, "00");
usr.sbin/unbound/sldns/wire2str.c
1527
w += sldns_str_print(s, sl, "/%u", (unsigned)prefix);
usr.sbin/unbound/sldns/wire2str.c
1530
return w;
usr.sbin/unbound/sldns/wire2str.c
1597
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
1623
if(w) w += sldns_str_print(s, sl, " ");
usr.sbin/unbound/sldns/wire2str.c
1624
w += sldns_wire2str_type_print(s, sl,
usr.sbin/unbound/sldns/wire2str.c
1634
return w;
usr.sbin/unbound/sldns/wire2str.c
1640
int w;
usr.sbin/unbound/sldns/wire2str.c
1649
w = print_hex_buf(s, sl, *d, salt_len);
usr.sbin/unbound/sldns/wire2str.c
1652
return w;
usr.sbin/unbound/sldns/wire2str.c
1658
int data, w;
usr.sbin/unbound/sldns/wire2str.c
1663
w = sldns_str_print(s, sl, "%s", lt->name);
usr.sbin/unbound/sldns/wire2str.c
1664
else w = sldns_str_print(s, sl, "%d", data);
usr.sbin/unbound/sldns/wire2str.c
1667
return w;
usr.sbin/unbound/sldns/wire2str.c
1704
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
1713
w += sldns_str_print(str, sl, "%d", (int)mantissa);
usr.sbin/unbound/sldns/wire2str.c
1715
w += sldns_str_print(str, sl, "0");
usr.sbin/unbound/sldns/wire2str.c
1716
return w;
usr.sbin/unbound/sldns/wire2str.c
1735
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
1761
w += sldns_str_print(str, sl, "%02u %02u %06.3f %c ",
usr.sbin/unbound/sldns/wire2str.c
1776
w += sldns_str_print(str, sl, "%02u %02u %06.3f %c ",
usr.sbin/unbound/sldns/wire2str.c
1783
w += sldns_str_print(str, sl, "%.2f", s);
usr.sbin/unbound/sldns/wire2str.c
1785
w += sldns_str_print(str, sl, "%.0f", s);
usr.sbin/unbound/sldns/wire2str.c
1787
w += sldns_str_print(str, sl, "m ");
usr.sbin/unbound/sldns/wire2str.c
1789
w += loc_cm_print(str, sl, (size & 0xf0) >> 4, size & 0x0f);
usr.sbin/unbound/sldns/wire2str.c
1790
w += sldns_str_print(str, sl, "m ");
usr.sbin/unbound/sldns/wire2str.c
1792
w += loc_cm_print(str, sl, (horizontal_precision & 0xf0) >> 4,
usr.sbin/unbound/sldns/wire2str.c
1794
w += sldns_str_print(str, sl, "m ");
usr.sbin/unbound/sldns/wire2str.c
1796
w += loc_cm_print(str, sl, (vertical_precision & 0xf0) >> 4,
usr.sbin/unbound/sldns/wire2str.c
1798
w += sldns_str_print(str, sl, "m");
usr.sbin/unbound/sldns/wire2str.c
1802
return w;
usr.sbin/unbound/sldns/wire2str.c
1812
int bit, port, w = 0;
usr.sbin/unbound/sldns/wire2str.c
1826
w += sldns_str_print(s, sl, "%s", protocol->p_name);
usr.sbin/unbound/sldns/wire2str.c
1829
w += sldns_str_print(s, sl, "tcp");
usr.sbin/unbound/sldns/wire2str.c
1831
w += sldns_str_print(s, sl, "udp");
usr.sbin/unbound/sldns/wire2str.c
1833
w += sldns_str_print(s, sl, "%u", (unsigned)protocol_nr);
usr.sbin/unbound/sldns/wire2str.c
1850
w += sldns_str_print(s, sl, " %s",
usr.sbin/unbound/sldns/wire2str.c
1852
else w += sldns_str_print(s, sl, " %u",
usr.sbin/unbound/sldns/wire2str.c
1865
return w;
usr.sbin/unbound/sldns/wire2str.c
1876
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
1889
w += sldns_str_print(s, sl, "+");
usr.sbin/unbound/sldns/wire2str.c
1893
w += sldns_str_print(s, sl, "%c", (*d)[i]);
usr.sbin/unbound/sldns/wire2str.c
1901
return w;
usr.sbin/unbound/sldns/wire2str.c
1910
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
1920
w += sldns_str_print(s, sl, "%d %d %d ",
usr.sbin/unbound/sldns/wire2str.c
1925
w += sldns_str_print(s, sl, ".");
usr.sbin/unbound/sldns/wire2str.c
1928
w += sldns_wire2str_a_scan(d, dl, s, sl);
usr.sbin/unbound/sldns/wire2str.c
1931
w += sldns_wire2str_aaaa_scan(d, dl, s, sl);
usr.sbin/unbound/sldns/wire2str.c
1934
w += sldns_wire2str_dname_scan(d, dl, s, sl, pkt, pktlen, comprloop);
usr.sbin/unbound/sldns/wire2str.c
1942
w += sldns_str_print(s, sl, " ");
usr.sbin/unbound/sldns/wire2str.c
1943
w += sldns_wire2str_b64_scan_num(d, dl, s, sl, *dl);
usr.sbin/unbound/sldns/wire2str.c
1944
return w;
usr.sbin/unbound/sldns/wire2str.c
1953
int w=sldns_wire2str_ipseckey_scan_internal(d, dl, s, sl, pkt, pktlen, comprloop);
usr.sbin/unbound/sldns/wire2str.c
1954
if(w == -1) {
usr.sbin/unbound/sldns/wire2str.c
1961
return w;
usr.sbin/unbound/sldns/wire2str.c
1966
int w;
usr.sbin/unbound/sldns/wire2str.c
1980
w = sldns_str_print(s, sl, "%u ", (unsigned)algo);
usr.sbin/unbound/sldns/wire2str.c
1981
w += print_hex_buf(s, sl, (*d)+4, hitlen);
usr.sbin/unbound/sldns/wire2str.c
1982
w += sldns_str_print(s, sl, " ");
usr.sbin/unbound/sldns/wire2str.c
1985
w += sldns_wire2str_b64_scan_num(d, dl, s, sl, pklen);
usr.sbin/unbound/sldns/wire2str.c
1986
return w;
usr.sbin/unbound/sldns/wire2str.c
1991
int w;
usr.sbin/unbound/sldns/wire2str.c
2003
w = sldns_str_print(s, sl, "%u ", (unsigned)n);
usr.sbin/unbound/sldns/wire2str.c
2004
w += sldns_wire2str_b64_scan_num(d, dl, s, sl, n);
usr.sbin/unbound/sldns/wire2str.c
2005
return w;
usr.sbin/unbound/sldns/wire2str.c
2016
int w;
usr.sbin/unbound/sldns/wire2str.c
2019
w = sldns_str_print(s, sl, "%.4x:%.4x:%.4x:%.4x",
usr.sbin/unbound/sldns/wire2str.c
2024
return w;
usr.sbin/unbound/sldns/wire2str.c
2029
int w;
usr.sbin/unbound/sldns/wire2str.c
2032
w = sldns_str_print(s, sl, "%.2x-%.2x-%.2x-%.2x-%.2x-%.2x",
usr.sbin/unbound/sldns/wire2str.c
2036
return w;
usr.sbin/unbound/sldns/wire2str.c
2041
int w;
usr.sbin/unbound/sldns/wire2str.c
2044
w = sldns_str_print(s, sl, "%.2x-%.2x-%.2x-%.2x-%.2x-%.2x-%.2x-%.2x",
usr.sbin/unbound/sldns/wire2str.c
2049
return w;
usr.sbin/unbound/sldns/wire2str.c
2054
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
2064
w += sldns_str_print(s, sl, "\\%c", (char)(*d)[i]);
usr.sbin/unbound/sldns/wire2str.c
2065
else w += str_char_print(s, sl, (*d)[i]);
usr.sbin/unbound/sldns/wire2str.c
2069
return w;
usr.sbin/unbound/sldns/wire2str.c
2075
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
2085
w += sldns_str_print(s, sl, "%c", (char)(*d)[i+1]);
usr.sbin/unbound/sldns/wire2str.c
2088
return w;
usr.sbin/unbound/sldns/wire2str.c
2094
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
2095
w += sldns_str_print(s, sl, "\"");
usr.sbin/unbound/sldns/wire2str.c
2097
w += str_char_print(s, sl, (*d)[i]);
usr.sbin/unbound/sldns/wire2str.c
2098
w += sldns_str_print(s, sl, "\"");
usr.sbin/unbound/sldns/wire2str.c
2101
return w;
usr.sbin/unbound/sldns/wire2str.c
2107
int data, w;
usr.sbin/unbound/sldns/wire2str.c
2112
w = sldns_str_print(s, sl, "%s", lt->name);
usr.sbin/unbound/sldns/wire2str.c
2113
else w = sldns_str_print(s, sl, "%d", data);
usr.sbin/unbound/sldns/wire2str.c
2116
return w;
usr.sbin/unbound/sldns/wire2str.c
2131
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
2135
w += sldns_str_print(s, sl, "malformed LLQ ");
usr.sbin/unbound/sldns/wire2str.c
2136
w += print_hex_buf(s, sl, data, len);
usr.sbin/unbound/sldns/wire2str.c
2137
return w;
usr.sbin/unbound/sldns/wire2str.c
2146
w += sldns_str_print(s, sl, "v%d ", (int)version);
usr.sbin/unbound/sldns/wire2str.c
2148
w += sldns_str_print(s, sl, "%s", llq_opcodes[llq_opcode]);
usr.sbin/unbound/sldns/wire2str.c
2149
else w += sldns_str_print(s, sl, "opcode %d", (int)llq_opcode);
usr.sbin/unbound/sldns/wire2str.c
2151
w += sldns_str_print(s, sl, " %s", llq_errors[error_code]);
usr.sbin/unbound/sldns/wire2str.c
2152
else w += sldns_str_print(s, sl, " error %d", (int)error_code);
usr.sbin/unbound/sldns/wire2str.c
2154
w += sldns_str_print(s, sl, " id %llx lease-life %lu",
usr.sbin/unbound/sldns/wire2str.c
2157
w += sldns_str_print(s, sl, " id %I64x lease-life %lu",
usr.sbin/unbound/sldns/wire2str.c
2160
return w;
usr.sbin/unbound/sldns/wire2str.c
2167
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
2169
w += sldns_str_print(s, sl, "malformed UL ");
usr.sbin/unbound/sldns/wire2str.c
2170
w += print_hex_buf(s, sl, data, len);
usr.sbin/unbound/sldns/wire2str.c
2171
return w;
usr.sbin/unbound/sldns/wire2str.c
2174
w += sldns_str_print(s, sl, "lease %lu", (unsigned long)lease);
usr.sbin/unbound/sldns/wire2str.c
2175
return w;
usr.sbin/unbound/sldns/wire2str.c
2181
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
2183
w += print_hex_buf(s, sl, data, len);
usr.sbin/unbound/sldns/wire2str.c
2187
w += sldns_str_print(s, sl, " (");
usr.sbin/unbound/sldns/wire2str.c
2190
w += sldns_str_print(s, sl, "%c", (char)data[i]);
usr.sbin/unbound/sldns/wire2str.c
2194
w += sldns_str_print(s, sl, ")");
usr.sbin/unbound/sldns/wire2str.c
2195
return w;
usr.sbin/unbound/sldns/wire2str.c
2203
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
2207
w += sldns_str_print(s, sl, " %s", lt->name);
usr.sbin/unbound/sldns/wire2str.c
2208
else w += sldns_str_print(s, sl, " %d", (int)data[i]);
usr.sbin/unbound/sldns/wire2str.c
2210
return w;
usr.sbin/unbound/sldns/wire2str.c
2218
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
2222
w += sldns_str_print(s, sl, " %s", lt->name);
usr.sbin/unbound/sldns/wire2str.c
2223
else w += sldns_str_print(s, sl, " %d", (int)data[i]);
usr.sbin/unbound/sldns/wire2str.c
2225
return w;
usr.sbin/unbound/sldns/wire2str.c
2232
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
2235
w += sldns_str_print(s, sl, " SHA1");
usr.sbin/unbound/sldns/wire2str.c
2236
else w += sldns_str_print(s, sl, " %d", (int)data[i]);
usr.sbin/unbound/sldns/wire2str.c
2238
return w;
usr.sbin/unbound/sldns/wire2str.c
2244
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
2248
w += sldns_str_print(s, sl, "malformed subnet ");
usr.sbin/unbound/sldns/wire2str.c
2249
w += print_hex_buf(s, sl, data, len);
usr.sbin/unbound/sldns/wire2str.c
2250
return w;
usr.sbin/unbound/sldns/wire2str.c
2261
w += sldns_str_print(s, sl, "trailingdata:");
usr.sbin/unbound/sldns/wire2str.c
2262
w += print_hex_buf(s, sl, data+4+4, len-4-4);
usr.sbin/unbound/sldns/wire2str.c
2263
w += sldns_str_print(s, sl, " ");
usr.sbin/unbound/sldns/wire2str.c
2268
w += sldns_str_print(s, sl, "ip4ntoperror ");
usr.sbin/unbound/sldns/wire2str.c
2269
w += print_hex_buf(s, sl, data+4+4, len-4-4);
usr.sbin/unbound/sldns/wire2str.c
2271
w += sldns_str_print(s, sl, "%s", buf);
usr.sbin/unbound/sldns/wire2str.c
2279
w += sldns_str_print(s, sl, "trailingdata:");
usr.sbin/unbound/sldns/wire2str.c
2280
w += print_hex_buf(s, sl, data+4+16, len-4-16);
usr.sbin/unbound/sldns/wire2str.c
2281
w += sldns_str_print(s, sl, " ");
usr.sbin/unbound/sldns/wire2str.c
2287
w += sldns_str_print(s, sl, "ip6ntoperror ");
usr.sbin/unbound/sldns/wire2str.c
2288
w += print_hex_buf(s, sl, data+4+4, len-4-4);
usr.sbin/unbound/sldns/wire2str.c
2290
w += sldns_str_print(s, sl, "%s", buf);
usr.sbin/unbound/sldns/wire2str.c
2293
w += print_hex_buf(s, sl, data+4+4, len-4-4);
usr.sbin/unbound/sldns/wire2str.c
2297
w += sldns_str_print(s, sl, "family %d ",
usr.sbin/unbound/sldns/wire2str.c
2299
w += print_hex_buf(s, sl, data, len);
usr.sbin/unbound/sldns/wire2str.c
2301
w += sldns_str_print(s, sl, "/%d scope /%d", (int)source, (int)scope);
usr.sbin/unbound/sldns/wire2str.c
2302
return w;
usr.sbin/unbound/sldns/wire2str.c
2308
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
2311
w += sldns_str_print(s, sl, "malformed keepalive ");
usr.sbin/unbound/sldns/wire2str.c
2312
w += print_hex_buf(s, sl, data, len);
usr.sbin/unbound/sldns/wire2str.c
2313
return w;
usr.sbin/unbound/sldns/wire2str.c
2316
w += sldns_str_print(s, sl, "no timeout value (only valid for client option) ");
usr.sbin/unbound/sldns/wire2str.c
2319
w += sldns_str_print(s, sl, "timeout value in units of 100ms %u", (int)timeout);
usr.sbin/unbound/sldns/wire2str.c
2321
return w;
usr.sbin/unbound/sldns/wire2str.c
2328
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
2334
w += sldns_str_print(s, sl, "malformed ede ");
usr.sbin/unbound/sldns/wire2str.c
2335
w += print_hex_buf(s, sl, data, len);
usr.sbin/unbound/sldns/wire2str.c
2336
return w;
usr.sbin/unbound/sldns/wire2str.c
2342
w += sldns_str_print(s, sl, "%s", lt->name);
usr.sbin/unbound/sldns/wire2str.c
2343
else w += sldns_str_print(s, sl, "%d", (int)ede_code);
usr.sbin/unbound/sldns/wire2str.c
2346
return w;
usr.sbin/unbound/sldns/wire2str.c
2348
w += sldns_str_print(s, sl, " ");
usr.sbin/unbound/sldns/wire2str.c
2359
w += sldns_str_print(s, sl, "\"");
usr.sbin/unbound/sldns/wire2str.c
2361
w += str_char_print(s, sl, data[i]);
usr.sbin/unbound/sldns/wire2str.c
2363
w += sldns_str_print(s, sl, "\"");
usr.sbin/unbound/sldns/wire2str.c
2365
w += print_hex_buf(s, sl, data+2, len-2);
usr.sbin/unbound/sldns/wire2str.c
2367
return w;
usr.sbin/unbound/sldns/wire2str.c
2373
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
2374
w += sldns_wire2str_edns_option_code_print(s, sl, option_code);
usr.sbin/unbound/sldns/wire2str.c
2375
w += sldns_str_print(s, sl, ": ");
usr.sbin/unbound/sldns/wire2str.c
2378
w += sldns_wire2str_edns_llq_print(s, sl, optdata, optlen);
usr.sbin/unbound/sldns/wire2str.c
2381
w += sldns_wire2str_edns_ul_print(s, sl, optdata, optlen);
usr.sbin/unbound/sldns/wire2str.c
2384
w += sldns_wire2str_edns_nsid_print(s, sl, optdata, optlen);
usr.sbin/unbound/sldns/wire2str.c
2387
w += sldns_wire2str_edns_dau_print(s, sl, optdata, optlen);
usr.sbin/unbound/sldns/wire2str.c
2390
w += sldns_wire2str_edns_dhu_print(s, sl, optdata, optlen);
usr.sbin/unbound/sldns/wire2str.c
2393
w += sldns_wire2str_edns_n3u_print(s, sl, optdata, optlen);
usr.sbin/unbound/sldns/wire2str.c
2396
w += sldns_wire2str_edns_subnet_print(s, sl, optdata, optlen);
usr.sbin/unbound/sldns/wire2str.c
2399
w += sldns_wire2str_edns_keepalive_print(s, sl, optdata, optlen);
usr.sbin/unbound/sldns/wire2str.c
2402
w += print_hex_buf(s, sl, optdata, optlen);
usr.sbin/unbound/sldns/wire2str.c
2405
w += sldns_wire2str_edns_ede_print(s, sl, optdata, optlen);
usr.sbin/unbound/sldns/wire2str.c
2409
w += print_hex_buf(s, sl, optdata, optlen);
usr.sbin/unbound/sldns/wire2str.c
2412
return w;
usr.sbin/unbound/sldns/wire2str.c
2420
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
2424
w += sldns_str_print(s, sl, " ; malformed: ");
usr.sbin/unbound/sldns/wire2str.c
2425
w += print_hex_buf(s, sl, rdata, rdatalen);
usr.sbin/unbound/sldns/wire2str.c
2426
return w;
usr.sbin/unbound/sldns/wire2str.c
2435
w += sldns_str_print(s, sl, " ; malformed ");
usr.sbin/unbound/sldns/wire2str.c
2436
w += sldns_wire2str_edns_option_code_print(s, sl,
usr.sbin/unbound/sldns/wire2str.c
2438
w += sldns_str_print(s, sl, ": ");
usr.sbin/unbound/sldns/wire2str.c
2439
w += print_hex_buf(s, sl, rdata, rdatalen);
usr.sbin/unbound/sldns/wire2str.c
2440
return w;
usr.sbin/unbound/sldns/wire2str.c
2442
w += sldns_str_print(s, sl, " ; ");
usr.sbin/unbound/sldns/wire2str.c
2443
w += sldns_wire2str_edns_option_print(s, sl, option_code,
usr.sbin/unbound/sldns/wire2str.c
2448
return w;
usr.sbin/unbound/sldns/wire2str.c
2454
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
2457
w += sldns_str_print(str, str_len, "; EDNS:");
usr.sbin/unbound/sldns/wire2str.c
2461
return w + print_remainder_hex("Error malformed 0x",
usr.sbin/unbound/sldns/wire2str.c
2464
return w + print_remainder_hex("Error nonrootdname 0x",
usr.sbin/unbound/sldns/wire2str.c
2472
return w + print_remainder_hex("Error nottypeOPT 0x",
usr.sbin/unbound/sldns/wire2str.c
2483
w += sldns_str_print(str, str_len, " version: %u;",
usr.sbin/unbound/sldns/wire2str.c
2485
w += sldns_str_print(str, str_len, " flags:");
usr.sbin/unbound/sldns/wire2str.c
2487
w += sldns_str_print(str, str_len, " do");
usr.sbin/unbound/sldns/wire2str.c
2494
w += sldns_str_print(str, str_len, " ; ext-rcode: %d", rc);
usr.sbin/unbound/sldns/wire2str.c
2496
w += sldns_str_print(str, str_len, " ; udp: %u", (unsigned)udpsize);
usr.sbin/unbound/sldns/wire2str.c
2500
w += sldns_str_print(str, str_len,
usr.sbin/unbound/sldns/wire2str.c
2504
w += print_edns_opts(str, str_len, *data, rdatalen);
usr.sbin/unbound/sldns/wire2str.c
2508
w += sldns_str_print(str, str_len, "\n");
usr.sbin/unbound/sldns/wire2str.c
2509
return w;
usr.sbin/unbound/sldns/wire2str.c
388
int w = vsnprintf(*str, *slen, format, args);
usr.sbin/unbound/sldns/wire2str.c
389
if(w < 0) {
usr.sbin/unbound/sldns/wire2str.c
392
} else if((size_t)w >= *slen) {
usr.sbin/unbound/sldns/wire2str.c
396
*str += w;
usr.sbin/unbound/sldns/wire2str.c
397
*slen -= w;
usr.sbin/unbound/sldns/wire2str.c
399
return w;
usr.sbin/unbound/sldns/wire2str.c
404
int w;
usr.sbin/unbound/sldns/wire2str.c
407
w = sldns_str_vprint(str, slen, format, args);
usr.sbin/unbound/sldns/wire2str.c
409
return w;
usr.sbin/unbound/sldns/wire2str.c
428
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
429
w += sldns_str_print(s, slen, "%s", pref);
usr.sbin/unbound/sldns/wire2str.c
430
w += print_hex_buf(s, slen, *d, *dlen);
usr.sbin/unbound/sldns/wire2str.c
433
return w;
usr.sbin/unbound/sldns/wire2str.c
438
int w = 0, comprloop = 0;
usr.sbin/unbound/sldns/wire2str.c
450
w += sldns_wire2str_header_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
451
w += sldns_str_print(s, slen, "\n");
usr.sbin/unbound/sldns/wire2str.c
452
w += sldns_str_print(s, slen, ";; QUESTION SECTION:\n");
usr.sbin/unbound/sldns/wire2str.c
454
w += sldns_wire2str_rrquestion_scan(d, dlen, s, slen,
usr.sbin/unbound/sldns/wire2str.c
458
w += sldns_str_print(s, slen, "\n");
usr.sbin/unbound/sldns/wire2str.c
459
w += sldns_str_print(s, slen, ";; ANSWER SECTION:\n");
usr.sbin/unbound/sldns/wire2str.c
461
w += sldns_wire2str_rr_scan(d, dlen, s, slen, pkt, pktlen, &comprloop);
usr.sbin/unbound/sldns/wire2str.c
464
w += sldns_str_print(s, slen, "\n");
usr.sbin/unbound/sldns/wire2str.c
465
w += sldns_str_print(s, slen, ";; AUTHORITY SECTION:\n");
usr.sbin/unbound/sldns/wire2str.c
467
w += sldns_wire2str_rr_scan(d, dlen, s, slen, pkt, pktlen, &comprloop);
usr.sbin/unbound/sldns/wire2str.c
470
w += sldns_str_print(s, slen, "\n");
usr.sbin/unbound/sldns/wire2str.c
471
w += sldns_str_print(s, slen, ";; ADDITIONAL SECTION:\n");
usr.sbin/unbound/sldns/wire2str.c
473
w += sldns_wire2str_rr_scan(d, dlen, s, slen, pkt, pktlen, &comprloop);
usr.sbin/unbound/sldns/wire2str.c
477
w += sldns_str_print(s, slen, ";; MSG SIZE rcvd: %d\n", (int)pktlen);
usr.sbin/unbound/sldns/wire2str.c
479
w += print_remainder_hex(";; trailing garbage 0x",
usr.sbin/unbound/sldns/wire2str.c
481
w += sldns_str_print(s, slen, "\n");
usr.sbin/unbound/sldns/wire2str.c
483
return w;
usr.sbin/unbound/sldns/wire2str.c
489
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
494
return w + print_remainder_hex("; Error malformed 0x",
usr.sbin/unbound/sldns/wire2str.c
501
w += sldns_wire2str_class_print(s, sl, c);
usr.sbin/unbound/sldns/wire2str.c
502
w += sldns_str_print(s, sl, "\t");
usr.sbin/unbound/sldns/wire2str.c
503
w += sldns_wire2str_type_print(s, sl, t);
usr.sbin/unbound/sldns/wire2str.c
505
return w + sldns_str_print(s, sl, "; Error no ttl");
usr.sbin/unbound/sldns/wire2str.c
506
return w + print_remainder_hex(
usr.sbin/unbound/sldns/wire2str.c
514
w += sldns_str_print(s, sl, "%lu\t", (unsigned long)ttl);
usr.sbin/unbound/sldns/wire2str.c
515
w += sldns_wire2str_class_print(s, sl, c);
usr.sbin/unbound/sldns/wire2str.c
516
w += sldns_str_print(s, sl, "\t");
usr.sbin/unbound/sldns/wire2str.c
517
w += sldns_wire2str_type_print(s, sl, t);
usr.sbin/unbound/sldns/wire2str.c
518
return w;
usr.sbin/unbound/sldns/wire2str.c
524
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
537
w += sldns_wire2str_dname_scan(d, dlen, s, slen, pkt, pktlen, comprloop);
usr.sbin/unbound/sldns/wire2str.c
538
w += sldns_str_print(s, slen, "\t");
usr.sbin/unbound/sldns/wire2str.c
546
w += sldns_wire2str_class_print(s, slen, c);
usr.sbin/unbound/sldns/wire2str.c
547
w += sldns_str_print(s, slen, "\t");
usr.sbin/unbound/sldns/wire2str.c
548
w += sldns_wire2str_type_print(s, slen, t);
usr.sbin/unbound/sldns/wire2str.c
549
w += sldns_str_print(s, slen, " ; Error no ttl,rdata\n");
usr.sbin/unbound/sldns/wire2str.c
550
return w;
usr.sbin/unbound/sldns/wire2str.c
554
return w + sldns_str_print(s, slen, ";Error missing RR\n");
usr.sbin/unbound/sldns/wire2str.c
555
w += print_remainder_hex(";Error partial RR 0x", d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
556
return w + sldns_str_print(s, slen, "\n");
usr.sbin/unbound/sldns/wire2str.c
559
w += sldns_rr_tcttl_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
560
w += sldns_str_print(s, slen, "\t");
usr.sbin/unbound/sldns/wire2str.c
565
return w + sldns_str_print(s, slen, ";Error missing rdatalen\n");
usr.sbin/unbound/sldns/wire2str.c
566
w += print_remainder_hex(";Error missing rdatalen 0x",
usr.sbin/unbound/sldns/wire2str.c
568
return w + sldns_str_print(s, slen, "\n");
usr.sbin/unbound/sldns/wire2str.c
575
w += sldns_str_print(s, slen, "\\# %u ", (unsigned)rdlen);
usr.sbin/unbound/sldns/wire2str.c
577
return w + sldns_str_print(s, slen, ";Error missing rdata\n");
usr.sbin/unbound/sldns/wire2str.c
578
w += print_remainder_hex(";Error partial rdata 0x", d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
579
return w + sldns_str_print(s, slen, "\n");
usr.sbin/unbound/sldns/wire2str.c
581
w += sldns_wire2str_rdata_scan(d, &rdlen, s, slen, rrtype, pkt, pktlen,
usr.sbin/unbound/sldns/wire2str.c
586
w += sldns_wire2str_rr_comment_print(s, slen, rr, rrlen, dname_off,
usr.sbin/unbound/sldns/wire2str.c
588
w += sldns_str_print(s, slen, "\n");
usr.sbin/unbound/sldns/wire2str.c
589
return w;
usr.sbin/unbound/sldns/wire2str.c
595
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
597
w += sldns_wire2str_dname_scan(d, dlen, s, slen, pkt, pktlen, comprloop);
usr.sbin/unbound/sldns/wire2str.c
598
w += sldns_str_print(s, slen, "\t");
usr.sbin/unbound/sldns/wire2str.c
601
return w + sldns_str_print(s, slen, "Error malformed\n");
usr.sbin/unbound/sldns/wire2str.c
602
w += print_remainder_hex("Error malformed 0x", d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
603
return w + sldns_str_print(s, slen, "\n");
usr.sbin/unbound/sldns/wire2str.c
609
w += sldns_wire2str_class_print(s, slen, c);
usr.sbin/unbound/sldns/wire2str.c
610
w += sldns_str_print(s, slen, "\t");
usr.sbin/unbound/sldns/wire2str.c
611
w += sldns_wire2str_type_print(s, slen, t);
usr.sbin/unbound/sldns/wire2str.c
612
w += sldns_str_print(s, slen, "\n");
usr.sbin/unbound/sldns/wire2str.c
613
return w;
usr.sbin/unbound/sldns/wire2str.c
620
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
621
w += sldns_wire2str_dname_scan(d, dlen, s, slen, pkt, pktlen, comprloop);
usr.sbin/unbound/sldns/wire2str.c
622
w += sldns_str_print(s, slen, "\t");
usr.sbin/unbound/sldns/wire2str.c
623
w += sldns_rr_tcttl_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
624
w += sldns_str_print(s, slen, "\t");
usr.sbin/unbound/sldns/wire2str.c
627
return w + sldns_str_print(s, slen, ";Error missing rdatalen\n");
usr.sbin/unbound/sldns/wire2str.c
628
w += print_remainder_hex(";Error missing rdatalen 0x",
usr.sbin/unbound/sldns/wire2str.c
630
return w + sldns_str_print(s, slen, "\n");
usr.sbin/unbound/sldns/wire2str.c
637
w += sldns_str_print(s, slen, "\\# %u ", (unsigned)rdlen);
usr.sbin/unbound/sldns/wire2str.c
639
return w + sldns_str_print(s, slen, ";Error missing rdata\n");
usr.sbin/unbound/sldns/wire2str.c
640
w += print_remainder_hex(";Error partial rdata 0x", d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
641
return w + sldns_str_print(s, slen, "\n");
usr.sbin/unbound/sldns/wire2str.c
643
w += sldns_wire2str_rdata_unknown_scan(d, &rdlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
645
w += sldns_str_print(s, slen, "\n");
usr.sbin/unbound/sldns/wire2str.c
646
return w;
usr.sbin/unbound/sldns/wire2str.c
655
int flags, w = 0;
usr.sbin/unbound/sldns/wire2str.c
662
w += sldns_str_print(s, slen, " ;{");
usr.sbin/unbound/sldns/wire2str.c
665
w += sldns_str_print(s, slen, "id = %u",
usr.sbin/unbound/sldns/wire2str.c
671
w += sldns_str_print(s, slen, " (ksk)");
usr.sbin/unbound/sldns/wire2str.c
672
else w += sldns_str_print(s, slen, " (zsk)");
usr.sbin/unbound/sldns/wire2str.c
677
w += sldns_str_print(s, slen, ", ");
usr.sbin/unbound/sldns/wire2str.c
678
w += sldns_str_print(s, slen, "size = %db",
usr.sbin/unbound/sldns/wire2str.c
683
w += sldns_str_print(s, slen, "}");
usr.sbin/unbound/sldns/wire2str.c
684
return w;
usr.sbin/unbound/sldns/wire2str.c
708
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
715
w += sldns_str_print(s, slen, " ;{flags: optout}");
usr.sbin/unbound/sldns/wire2str.c
716
return w;
usr.sbin/unbound/sldns/wire2str.c
735
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
737
w += sldns_str_print(s, slen, ";; ->>HEADER<<- ");
usr.sbin/unbound/sldns/wire2str.c
739
return w+sldns_str_print(s, slen, "Error empty packet");
usr.sbin/unbound/sldns/wire2str.c
741
return w+print_remainder_hex("Error header too short 0x", d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
744
w += sldns_str_print(s, slen, "opcode: ");
usr.sbin/unbound/sldns/wire2str.c
745
w += sldns_wire2str_opcode_print(s, slen, opcode);
usr.sbin/unbound/sldns/wire2str.c
746
w += sldns_str_print(s, slen, ", ");
usr.sbin/unbound/sldns/wire2str.c
747
w += sldns_str_print(s, slen, "rcode: ");
usr.sbin/unbound/sldns/wire2str.c
748
w += sldns_wire2str_rcode_print(s, slen, rcode);
usr.sbin/unbound/sldns/wire2str.c
749
w += sldns_str_print(s, slen, ", ");
usr.sbin/unbound/sldns/wire2str.c
750
w += sldns_str_print(s, slen, "id: %d\n", (int)LDNS_ID_WIRE(*d));
usr.sbin/unbound/sldns/wire2str.c
751
w += sldns_str_print(s, slen, ";; flags:");
usr.sbin/unbound/sldns/wire2str.c
752
if(LDNS_QR_WIRE(*d)) w += sldns_str_print(s, slen, " qr");
usr.sbin/unbound/sldns/wire2str.c
753
if(LDNS_AA_WIRE(*d)) w += sldns_str_print(s, slen, " aa");
usr.sbin/unbound/sldns/wire2str.c
754
if(LDNS_TC_WIRE(*d)) w += sldns_str_print(s, slen, " tc");
usr.sbin/unbound/sldns/wire2str.c
755
if(LDNS_RD_WIRE(*d)) w += sldns_str_print(s, slen, " rd");
usr.sbin/unbound/sldns/wire2str.c
756
if(LDNS_CD_WIRE(*d)) w += sldns_str_print(s, slen, " cd");
usr.sbin/unbound/sldns/wire2str.c
757
if(LDNS_RA_WIRE(*d)) w += sldns_str_print(s, slen, " ra");
usr.sbin/unbound/sldns/wire2str.c
758
if(LDNS_AD_WIRE(*d)) w += sldns_str_print(s, slen, " ad");
usr.sbin/unbound/sldns/wire2str.c
759
if(LDNS_Z_WIRE(*d)) w += sldns_str_print(s, slen, " z");
usr.sbin/unbound/sldns/wire2str.c
760
w += sldns_str_print(s, slen, " ; ");
usr.sbin/unbound/sldns/wire2str.c
762
return w+print_remainder_hex("Error header too short 0x", d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
763
w += sldns_str_print(s, slen, "QUERY: %d, ", (int)LDNS_QDCOUNT(*d));
usr.sbin/unbound/sldns/wire2str.c
764
w += sldns_str_print(s, slen, "ANSWER: %d, ", (int)LDNS_ANCOUNT(*d));
usr.sbin/unbound/sldns/wire2str.c
765
w += sldns_str_print(s, slen, "AUTHORITY: %d, ", (int)LDNS_NSCOUNT(*d));
usr.sbin/unbound/sldns/wire2str.c
766
w += sldns_str_print(s, slen, "ADDITIONAL: %d ", (int)LDNS_ARCOUNT(*d));
usr.sbin/unbound/sldns/wire2str.c
769
return w;
usr.sbin/unbound/sldns/wire2str.c
782
int w = 0, n;
usr.sbin/unbound/sldns/wire2str.c
798
w += sldns_str_print(s, slen, " ");
usr.sbin/unbound/sldns/wire2str.c
809
w += n;
usr.sbin/unbound/sldns/wire2str.c
814
return w;
usr.sbin/unbound/sldns/wire2str.c
820
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
823
w += sldns_str_print(s, slen, "\\# %u", (unsigned)*dlen);
usr.sbin/unbound/sldns/wire2str.c
827
w += sldns_str_print(s, slen, " ");
usr.sbin/unbound/sldns/wire2str.c
828
w += print_hex_buf(s, slen, *d, *dlen);
usr.sbin/unbound/sldns/wire2str.c
831
return w;
usr.sbin/unbound/sldns/wire2str.c
853
int w = 0;
usr.sbin/unbound/sldns/wire2str.c
882
return w + sldns_str_print(s, slen,
usr.sbin/unbound/sldns/wire2str.c
885
return w + sldns_str_print(s, slen,
usr.sbin/unbound/sldns/wire2str.c
891
return w + sldns_str_print(s, slen,
usr.sbin/unbound/sldns/wire2str.c
896
return w + sldns_str_print(s, slen,
usr.sbin/unbound/sldns/wire2str.c
904
w += sldns_str_print(s, slen,
usr.sbin/unbound/sldns/wire2str.c
907
return w;
usr.sbin/unbound/sldns/wire2str.c
921
w += sldns_str_print(s, slen,
usr.sbin/unbound/sldns/wire2str.c
923
return w;
usr.sbin/unbound/sldns/wire2str.c
926
w += dname_char_print(s, slen, *pos++);
usr.sbin/unbound/sldns/wire2str.c
933
w += sldns_str_print(s, slen, ".");
usr.sbin/unbound/sldns/wire2str.c
938
if(w == 0) w += sldns_str_print(s, slen, ".");
usr.sbin/unbound/sldns/wire2str.c
939
return w;
usr.sbin/unbound/testcode/checklocks.c
854
struct checked_lock* w = NULL;
usr.sbin/unbound/testcode/checklocks.c
868
w = thr->waiting;
usr.sbin/unbound/testcode/checklocks.c
871
log_info("thread waiting for a lock: %s %llx", w?"yes":"no",
usr.sbin/unbound/testcode/checklocks.c
872
(unsigned long long)(size_t)w);
usr.sbin/unbound/testcode/checklocks.c
873
lock_debug_info(w);
usr.sbin/unbound/testcode/testpkts.c
850
uint8_t* w = *p;
usr.sbin/unbound/testcode/testpkts.c
858
w += LDNS_HEADER_SIZE;
usr.sbin/unbound/testcode/testpkts.c
863
(void)sldns_wire2str_rrquestion_scan(&w, &wlen, &snull, &sl,
usr.sbin/unbound/testcode/testpkts.c
866
(void)sldns_wire2str_rr_scan(&w, &wlen, &snull, &sl, *p, *plen, &comprloop);
usr.sbin/unbound/testcode/testpkts.c
868
(void)sldns_wire2str_rr_scan(&w, &wlen, &snull, &sl, *p, *plen, &comprloop);
usr.sbin/unbound/testcode/testpkts.c
873
uint8_t* dstart = w;
usr.sbin/unbound/testcode/testpkts.c
883
(void)sldns_wire2str_rr_scan(&w, &wlen, &snull, &sl, *p, *plen, &comprloop);
usr.sbin/unbound/testcode/unittcpreuse.c
237
struct waiting_tcp* w = outnet->tcp_wait_first;
usr.sbin/unbound/testcode/unittcpreuse.c
241
for(i=0; w; i++) {
usr.sbin/unbound/testcode/unittcpreuse.c
243
unit_assert(w->on_tcp_waiting_list);
usr.sbin/unbound/testcode/unittcpreuse.c
244
n = w->next_waiting;
usr.sbin/unbound/testcode/unittcpreuse.c
247
unit_assert(n != w);
usr.sbin/unbound/testcode/unittcpreuse.c
250
w = w->next_waiting;
usr.sbin/unbound/testcode/unittcpreuse.c
257
struct waiting_tcp* w = outnet->tcp_wait_first, *n = NULL;
usr.sbin/unbound/testcode/unittcpreuse.c
258
if(!w) return;
usr.sbin/unbound/testcode/unittcpreuse.c
261
while(w) {
usr.sbin/unbound/testcode/unittcpreuse.c
262
n = w->next_waiting;
usr.sbin/unbound/testcode/unittcpreuse.c
263
w->on_tcp_waiting_list = 0;
usr.sbin/unbound/testcode/unittcpreuse.c
264
w->next_waiting = (struct waiting_tcp*)1; /* In purpose faux value */
usr.sbin/unbound/testcode/unittcpreuse.c
265
w = n;
usr.sbin/unbound/testcode/unittcpreuse.c
278
struct waiting_tcp* w;
usr.sbin/unbound/testcode/unittcpreuse.c
286
w = outnet_waiting_tcp_list_pop(outnet);
usr.sbin/unbound/testcode/unittcpreuse.c
287
unit_assert(w); /* please clang-analyser */
usr.sbin/unbound/testcode/unittcpreuse.c
289
w = outnet->tcp_wait_first;
usr.sbin/unbound/testcode/unittcpreuse.c
291
unit_assert(w); /* please clang-analyser */
usr.sbin/unbound/testcode/unittcpreuse.c
292
w = w->next_waiting;
usr.sbin/unbound/testcode/unittcpreuse.c
294
unit_assert(w); /* please clang-analyser */
usr.sbin/unbound/testcode/unittcpreuse.c
295
outnet_waiting_tcp_list_remove(outnet, w);
usr.sbin/unbound/testcode/unittcpreuse.c
297
unit_assert(!(w->on_tcp_waiting_list || w->next_waiting));
usr.sbin/unbound/testcode/unittcpreuse.c
318
struct waiting_tcp* w, *t = NULL;
usr.sbin/unbound/testcode/unittcpreuse.c
332
w = &store[i];
usr.sbin/unbound/testcode/unittcpreuse.c
333
outnet_waiting_tcp_list_add(&outnet, w, 0);
usr.sbin/unbound/testcode/unittcpreuse.c
335
check_waiting_tcp_list(&outnet, t, w, MAX_TCP_WAITING_NODES-1);
usr.sbin/unbound/testcode/unittcpreuse.c
339
w = &store[i];
usr.sbin/unbound/testcode/unittcpreuse.c
341
outnet_waiting_tcp_list_add_first(&outnet, w, 0);
usr.sbin/unbound/testcode/unittcpreuse.c
342
check_waiting_tcp_list(&outnet, w, t, MAX_TCP_WAITING_NODES);
usr.sbin/unbound/testcode/unittcpreuse.c
363
struct waiting_tcp* w = reuse->write_wait_first;
usr.sbin/unbound/testcode/unittcpreuse.c
368
for(i=0; w; i++) {
usr.sbin/unbound/testcode/unittcpreuse.c
370
unit_assert(w->write_wait_queued);
usr.sbin/unbound/testcode/unittcpreuse.c
371
n = w->write_wait_next;
usr.sbin/unbound/testcode/unittcpreuse.c
374
unit_assert(n != w);
usr.sbin/unbound/testcode/unittcpreuse.c
377
w = w->write_wait_next;
usr.sbin/unbound/testcode/unittcpreuse.c
380
w = reuse->write_wait_last;
usr.sbin/unbound/testcode/unittcpreuse.c
381
for(i=0; w; i++) {
usr.sbin/unbound/testcode/unittcpreuse.c
383
unit_assert(w->write_wait_queued);
usr.sbin/unbound/testcode/unittcpreuse.c
384
n = w->write_wait_prev;
usr.sbin/unbound/testcode/unittcpreuse.c
387
unit_assert(n != w);
usr.sbin/unbound/testcode/unittcpreuse.c
390
w = w->write_wait_prev;
usr.sbin/unbound/testcode/unittcpreuse.c
397
struct waiting_tcp* w = reuse->write_wait_first, *n = NULL;
usr.sbin/unbound/testcode/unittcpreuse.c
398
if(!w) return;
usr.sbin/unbound/testcode/unittcpreuse.c
401
while(w) {
usr.sbin/unbound/testcode/unittcpreuse.c
402
n = w->write_wait_next;
usr.sbin/unbound/testcode/unittcpreuse.c
403
w->write_wait_queued = 0;
usr.sbin/unbound/testcode/unittcpreuse.c
404
w->write_wait_next = (struct waiting_tcp*)1; /* In purpose faux value */
usr.sbin/unbound/testcode/unittcpreuse.c
405
w->write_wait_prev = (struct waiting_tcp*)1; /* In purpose faux value */
usr.sbin/unbound/testcode/unittcpreuse.c
406
w = n;
usr.sbin/unbound/testcode/unittcpreuse.c
419
struct waiting_tcp* w;
usr.sbin/unbound/testcode/unittcpreuse.c
427
w = reuse_write_wait_pop(reuse);
usr.sbin/unbound/testcode/unittcpreuse.c
429
w = reuse->write_wait_first;
usr.sbin/unbound/testcode/unittcpreuse.c
430
for(i=0; i<position; i++) w = w->write_wait_next;
usr.sbin/unbound/testcode/unittcpreuse.c
431
reuse_write_wait_remove(reuse, w);
usr.sbin/unbound/testcode/unittcpreuse.c
433
unit_assert(!(w->write_wait_queued || w->write_wait_next || w->write_wait_prev));
usr.sbin/unbound/testcode/unittcpreuse.c
455
struct waiting_tcp* w;
usr.sbin/unbound/testcode/unittcpreuse.c
462
w = &store[i];
usr.sbin/unbound/testcode/unittcpreuse.c
463
reuse_write_wait_push_back(&reuse, w);
usr.sbin/unbound/testcode/unittcpreuse.c
465
check_reuse_write_wait(&reuse, &store[0], w, MAX_TCP_WAITING_NODES);
usr.sbin/unbound/testcode/unittcpreuse.c
54
struct waiting_tcp* w;
usr.sbin/unbound/testcode/unittcpreuse.c
58
w = calloc(1, sizeof(*w));
usr.sbin/unbound/testcode/unittcpreuse.c
59
unit_assert(w);
usr.sbin/unbound/testcode/unittcpreuse.c
60
w->id = id;
usr.sbin/unbound/testcode/unittcpreuse.c
61
w->outnet = outnet;
usr.sbin/unbound/testcode/unittcpreuse.c
62
w->next_waiting = (void*)reuse->pending;
usr.sbin/unbound/testcode/unittcpreuse.c
63
reuse_tree_by_id_insert(reuse, w);
usr.sbin/unbound/util/config_file.c
1009
w = r;
usr.sbin/unbound/util/config_file.c
1016
snprintf(w, left, "%s\n", s->str);
usr.sbin/unbound/util/config_file.c
1017
this = strlen(w);
usr.sbin/unbound/util/config_file.c
1018
w += this;
usr.sbin/unbound/util/config_file.c
997
char *r, *w;
usr.sbin/unbound/util/mini_event.c
180
fd_set r, w;
usr.sbin/unbound/util/mini_event.c
188
memmove(&w, &base->writes, sizeof(fd_set));
usr.sbin/unbound/util/mini_event.c
191
if((ret = select(base->maxfd+1, &r, &w, NULL, wait)) == -1) {
usr.sbin/unbound/util/mini_event.c
212
if(FD_ISSET(i, &w)) {