Symbol: w
bin/ed/io.c
304
int w;
bin/ed/io.c
320
clen > 1 && iswprint(wc) && (w = wcwidth(wc)) >= 0) {
bin/ed/io.c
322
if (col + w > cols) {
bin/ed/io.c
336
col += w;
bin/ls/print.c
163
size_t width, donelen, clen, w;
bin/ls/print.c
170
if ((w = wcwidth(wc)) == (size_t)-1)
bin/ls/print.c
172
width += w;
crypto/heimdal/appl/ftp/ftp/main.c
540
int i, j, w, k;
crypto/heimdal/appl/ftp/ftp/main.c
569
w = strlen(c->c_name);
crypto/heimdal/appl/ftp/ftp/main.c
570
while (w < width) {
crypto/heimdal/appl/ftp/ftp/main.c
571
w = (w + 8) &~ 7;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3442
int i, j, w;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3462
w = strlen(c->name) + 1;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3463
while (w < width) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3467
w++;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1389
int i, j, w;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1409
w = strlen(c->name) + 1;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1410
while (w < width) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1414
w++;
crypto/heimdal/appl/push/push.c
155
write_state_init (struct write_state *w, int fd)
crypto/heimdal/appl/push/push.c
158
w->maxiovecs = UIO_MAXIOV;
crypto/heimdal/appl/push/push.c
160
w->maxiovecs = 16;
crypto/heimdal/appl/push/push.c
162
w->allociovecs = min(STEP, w->maxiovecs);
crypto/heimdal/appl/push/push.c
163
w->niovecs = 0;
crypto/heimdal/appl/push/push.c
164
w->iovecs = emalloc(w->allociovecs * sizeof(*w->iovecs));
crypto/heimdal/appl/push/push.c
165
w->fd = fd;
crypto/heimdal/appl/push/push.c
169
write_state_add (struct write_state *w, void *v, size_t len)
crypto/heimdal/appl/push/push.c
171
if(w->niovecs == w->allociovecs) {
crypto/heimdal/appl/push/push.c
172
if(w->niovecs == w->maxiovecs) {
crypto/heimdal/appl/push/push.c
173
if(writev (w->fd, w->iovecs, w->niovecs) < 0)
crypto/heimdal/appl/push/push.c
175
w->niovecs = 0;
crypto/heimdal/appl/push/push.c
177
w->allociovecs = min(w->allociovecs + STEP, w->maxiovecs);
crypto/heimdal/appl/push/push.c
178
w->iovecs = erealloc (w->iovecs,
crypto/heimdal/appl/push/push.c
179
w->allociovecs * sizeof(*w->iovecs));
crypto/heimdal/appl/push/push.c
182
w->iovecs[w->niovecs].iov_base = v;
crypto/heimdal/appl/push/push.c
183
w->iovecs[w->niovecs].iov_len = len;
crypto/heimdal/appl/push/push.c
184
++w->niovecs;
crypto/heimdal/appl/push/push.c
188
write_state_flush (struct write_state *w)
crypto/heimdal/appl/push/push.c
190
if (w->niovecs) {
crypto/heimdal/appl/push/push.c
191
if (writev (w->fd, w->iovecs, w->niovecs) < 0)
crypto/heimdal/appl/push/push.c
193
w->niovecs = 0;
crypto/heimdal/appl/push/push.c
198
write_state_destroy (struct write_state *w)
crypto/heimdal/appl/push/push.c
200
free (w->iovecs);
crypto/heimdal/kadmin/add-random-users.c
48
char **w = NULL;
crypto/heimdal/kadmin/add-random-users.c
61
w = erealloc (w, alloc * sizeof(char **));
crypto/heimdal/kadmin/add-random-users.c
69
w[n++] = wptr;
crypto/heimdal/kadmin/add-random-users.c
74
*ret_w = w;
crypto/heimdal/kadmin/get.c
354
int w = strlen(f->header ? f->header : f->ff->def_longheader);
crypto/heimdal/kadmin/get.c
355
if(w > width)
crypto/heimdal/kadmin/get.c
356
width = w;
crypto/heimdal/kpasswd/kpasswd-generator.c
44
char **w = NULL;
crypto/heimdal/kpasswd/kpasswd-generator.c
54
w = erealloc (w, alloc * sizeof(char **));
crypto/heimdal/kpasswd/kpasswd-generator.c
56
w[n++] = estrdup (buf);
crypto/heimdal/kpasswd/kpasswd-generator.c
58
*ret_w = w;
crypto/heimdal/kuser/generate-requests.c
42
char **w = NULL;
crypto/heimdal/kuser/generate-requests.c
52
w = erealloc (w, alloc * sizeof(char **));
crypto/heimdal/kuser/generate-requests.c
54
w[n++] = estrdup (buf);
crypto/heimdal/kuser/generate-requests.c
56
*ret_w = w;
crypto/heimdal/lib/asn1/der_format.c
135
char *s, *w, *brkt, *endptr;
crypto/heimdal/lib/asn1/der_format.c
147
for (w = strtok_r(s, sep, &brkt);
crypto/heimdal/lib/asn1/der_format.c
148
w != NULL;
crypto/heimdal/lib/asn1/der_format.c
149
w = strtok_r(NULL, sep, &brkt)) {
crypto/heimdal/lib/asn1/der_format.c
160
l = strtol(w, &endptr, 10);
crypto/heimdal/lib/hx509/sel.c
117
const char *w, *s1;
crypto/heimdal/lib/hx509/sel.c
119
w = eval_word(context, env, expr->arg1);
crypto/heimdal/lib/hx509/sel.c
126
if (strcmp(w, s1) == 0)
crypto/heimdal/lib/hx509/sel.c
140
if (strcmp(w, subenv->name) == 0)
crypto/heimdal/lib/hx509/sel.c
142
if (strcmp(w, subenv->u.string) == 0)
crypto/heimdal/lib/krb5/store.c
385
unsigned long w;
crypto/heimdal/lib/krb5/store.c
391
_krb5_get_int(v, &w, len);
crypto/heimdal/lib/krb5/store.c
392
*value = w;
crypto/heimdal/lib/roken/rtbl.c
402
int w;
crypto/heimdal/lib/roken/rtbl.c
408
w = c->width;
crypto/heimdal/lib/roken/rtbl.c
413
w = 0;
crypto/heimdal/lib/roken/rtbl.c
415
w = -w;
crypto/heimdal/lib/roken/rtbl.c
419
fprintf (f, "%*s", w, "");
crypto/heimdal/lib/roken/rtbl.c
421
fprintf (f, "%*s", w, c->rows[j].data);
crypto/krb5/src/kadmin/server/ipropd_svc.c
68
debprret(char *w, update_status_t ret, kdb_sno_t sno)
crypto/krb5/src/kadmin/server/ipropd_svc.c
73
w, sno);
crypto/krb5/src/kadmin/server/ipropd_svc.c
76
printf("%s: end (ERROR)\n", w);
crypto/krb5/src/kadmin/server/ipropd_svc.c
79
printf("%s: end (FR NEEDED)\n", w);
crypto/krb5/src/kadmin/server/ipropd_svc.c
82
printf("%s: end (BUSY)\n", w);
crypto/krb5/src/kadmin/server/ipropd_svc.c
85
printf("%s: end (NIL)\n", w);
crypto/krb5/src/kadmin/server/ipropd_svc.c
88
printf("%s: end (PERM)\n", w);
crypto/krb5/src/kadmin/server/ipropd_svc.c
91
printf("%s: end (UNKNOWN return code (%d))\n", w, ret);
crypto/krb5/src/kprop/kpropd.c
1550
#define WEXITSTATUS(w) (w).w_retcode
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
100
w(0x00), w(0x01), w(0x02), w(0x03), w(0x04), w(0x05), w(0x06), w(0x07),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
101
w(0x08), w(0x09), w(0x0a), w(0x0b), w(0x0c), w(0x0d), w(0x0e), w(0x0f),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
102
w(0x10), w(0x11), w(0x12), w(0x13), w(0x14), w(0x15), w(0x16), w(0x17),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
103
w(0x18), w(0x19), w(0x1a), w(0x1b), w(0x1c), w(0x1d), w(0x1e), w(0x1f),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
104
w(0x20), w(0x21), w(0x22), w(0x23), w(0x24), w(0x25), w(0x26), w(0x27),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
105
w(0x28), w(0x29), w(0x2a), w(0x2b), w(0x2c), w(0x2d), w(0x2e), w(0x2f),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
106
w(0x30), w(0x31), w(0x32), w(0x33), w(0x34), w(0x35), w(0x36), w(0x37),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
107
w(0x38), w(0x39), w(0x3a), w(0x3b), w(0x3c), w(0x3d), w(0x3e), w(0x3f),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
108
w(0x40), w(0x41), w(0x42), w(0x43), w(0x44), w(0x45), w(0x46), w(0x47),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
109
w(0x48), w(0x49), w(0x4a), w(0x4b), w(0x4c), w(0x4d), w(0x4e), w(0x4f),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
110
w(0x50), w(0x51), w(0x52), w(0x53), w(0x54), w(0x55), w(0x56), w(0x57),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
111
w(0x58), w(0x59), w(0x5a), w(0x5b), w(0x5c), w(0x5d), w(0x5e), w(0x5f),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
112
w(0x60), w(0x61), w(0x62), w(0x63), w(0x64), w(0x65), w(0x66), w(0x67),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
113
w(0x68), w(0x69), w(0x6a), w(0x6b), w(0x6c), w(0x6d), w(0x6e), w(0x6f),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
114
w(0x70), w(0x71), w(0x72), w(0x73), w(0x74), w(0x75), w(0x76), w(0x77),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
115
w(0x78), w(0x79), w(0x7a), w(0x7b), w(0x7c), w(0x7d), w(0x7e), w(0x7f),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
116
w(0x80), w(0x81), w(0x82), w(0x83), w(0x84), w(0x85), w(0x86), w(0x87),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
117
w(0x88), w(0x89), w(0x8a), w(0x8b), w(0x8c), w(0x8d), w(0x8e), w(0x8f),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
118
w(0x90), w(0x91), w(0x92), w(0x93), w(0x94), w(0x95), w(0x96), w(0x97),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
119
w(0x98), w(0x99), w(0x9a), w(0x9b), w(0x9c), w(0x9d), w(0x9e), w(0x9f),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
120
w(0xa0), w(0xa1), w(0xa2), w(0xa3), w(0xa4), w(0xa5), w(0xa6), w(0xa7),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
121
w(0xa8), w(0xa9), w(0xaa), w(0xab), w(0xac), w(0xad), w(0xae), w(0xaf),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
122
w(0xb0), w(0xb1), w(0xb2), w(0xb3), w(0xb4), w(0xb5), w(0xb6), w(0xb7),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
123
w(0xb8), w(0xb9), w(0xba), w(0xbb), w(0xbc), w(0xbd), w(0xbe), w(0xbf),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
124
w(0xc0), w(0xc1), w(0xc2), w(0xc3), w(0xc4), w(0xc5), w(0xc6), w(0xc7),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
125
w(0xc8), w(0xc9), w(0xca), w(0xcb), w(0xcc), w(0xcd), w(0xce), w(0xcf),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
126
w(0xd0), w(0xd1), w(0xd2), w(0xd3), w(0xd4), w(0xd5), w(0xd6), w(0xd7),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
127
w(0xd8), w(0xd9), w(0xda), w(0xdb), w(0xdc), w(0xdd), w(0xde), w(0xdf),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
128
w(0xe0), w(0xe1), w(0xe2), w(0xe3), w(0xe4), w(0xe5), w(0xe6), w(0xe7),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
129
w(0xe8), w(0xe9), w(0xea), w(0xeb), w(0xec), w(0xed), w(0xee), w(0xef),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
130
w(0xf0), w(0xf1), w(0xf2), w(0xf3), w(0xf4), w(0xf5), w(0xf6), w(0xf7),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
131
w(0xf8), w(0xf9), w(0xfa), w(0xfb), w(0xfc), w(0xfd), w(0xfe), w(0xff) }
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
133
#define rc_data(w) {\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
134
w(0x01), w(0x02), w(0x04), w(0x08), w(0x10),w(0x20), w(0x40), w(0x80),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
135
w(0x1b), w(0x36) }
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
260
{ uint32_t w = x;
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
261
w ^= (w << 1) ^ (w << 2) ^ (w << 3) ^ (w << 4);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
262
return 0x63 ^ ((w ^ (w >> 8)) & 0xff);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
266
{ uint32_t w = x;
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
267
w = (w << 1) ^ (w << 3) ^ (w << 6);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
268
return 0x05 ^ ((w ^ (w >> 8)) & 0xff);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
274
{ uint32_t i, w;
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
287
i = 0; w = 1;
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
290
pow[i] = (uint8_t)w;
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
291
pow[i + 255] = (uint8_t)w;
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
292
log[w] = (uint8_t)i++;
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
293
w ^= (w << 1) ^ (w & 0x80 ? WPOLY : 0);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
295
while (w != 1);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
302
for(i = 0, w = 1; i < RC_LENGTH; ++i)
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
304
t_set(r,c)[i] = bytes2word(w, 0, 0, 0);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
305
w = f2(w);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
31
#define sb_data(w) {\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
312
w = bytes2word(f2(b), b, b, f3(b));
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
319
t_set(f,n)[i] = w;
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
32
w(0x63), w(0x7c), w(0x77), w(0x7b), w(0xf2), w(0x6b), w(0x6f), w(0xc5),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
322
t_set(f,n)[0][i] = w;
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
323
t_set(f,n)[1][i] = upr(w,1);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
324
t_set(f,n)[2][i] = upr(w,2);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
325
t_set(f,n)[3][i] = upr(w,3);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
327
w = bytes2word(b, 0, 0, 0);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
33
w(0x30), w(0x01), w(0x67), w(0x2b), w(0xfe), w(0xd7), w(0xab), w(0x76),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
330
t_set(f,l)[i] = w; /* be used in the key schedule) */
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
333
t_set(f,l)[0][i] = w;
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
334
t_set(f,l)[1][i] = upr(w,1);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
335
t_set(f,l)[2][i] = upr(w,2);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
336
t_set(f,l)[3][i] = upr(w,3);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
34
w(0xca), w(0x82), w(0xc9), w(0x7d), w(0xfa), w(0x59), w(0x47), w(0xf0),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
340
t_set(l,s)[i] = w; /* not of the required form */
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
343
t_set(l,s)[0][i] = w;
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
344
t_set(l,s)[1][i] = upr(w,1);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
345
t_set(l,s)[2][i] = upr(w,2);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
346
t_set(l,s)[3][i] = upr(w,3);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
35
w(0xad), w(0xd4), w(0xa2), w(0xaf), w(0x9c), w(0xa4), w(0x72), w(0xc0),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
350
w = bytes2word(fe(b), f9(b), fd(b), fb(b));
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
353
t_set(i,m)[b] = w;
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
356
t_set(i,m)[0][b] = w;
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
357
t_set(i,m)[1][b] = upr(w,1);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
358
t_set(i,m)[2][b] = upr(w,2);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
359
t_set(i,m)[3][b] = upr(w,3);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
36
w(0xb7), w(0xfd), w(0x93), w(0x26), w(0x36), w(0x3f), w(0xf7), w(0xcc),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
366
t_set(i,n)[i] = w;
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
369
t_set(i,n)[0][i] = w;
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
37
w(0x34), w(0xa5), w(0xe5), w(0xf1), w(0x71), w(0xd8), w(0x31), w(0x15),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
370
t_set(i,n)[1][i] = upr(w,1);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
371
t_set(i,n)[2][i] = upr(w,2);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
372
t_set(i,n)[3][i] = upr(w,3);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
374
w = bytes2word(b, 0, 0, 0);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
376
t_set(i,l)[i] = w;
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
379
t_set(i,l)[0][i] = w;
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
38
w(0x04), w(0xc7), w(0x23), w(0xc3), w(0x18), w(0x96), w(0x05), w(0x9a),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
380
t_set(i,l)[1][i] = upr(w,1);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
381
t_set(i,l)[2][i] = upr(w,2);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
382
t_set(i,l)[3][i] = upr(w,3);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
39
w(0x07), w(0x12), w(0x80), w(0xe2), w(0xeb), w(0x27), w(0xb2), w(0x75),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
40
w(0x09), w(0x83), w(0x2c), w(0x1a), w(0x1b), w(0x6e), w(0x5a), w(0xa0),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
41
w(0x52), w(0x3b), w(0xd6), w(0xb3), w(0x29), w(0xe3), w(0x2f), w(0x84),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
42
w(0x53), w(0xd1), w(0x00), w(0xed), w(0x20), w(0xfc), w(0xb1), w(0x5b),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
43
w(0x6a), w(0xcb), w(0xbe), w(0x39), w(0x4a), w(0x4c), w(0x58), w(0xcf),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
44
w(0xd0), w(0xef), w(0xaa), w(0xfb), w(0x43), w(0x4d), w(0x33), w(0x85),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
45
w(0x45), w(0xf9), w(0x02), w(0x7f), w(0x50), w(0x3c), w(0x9f), w(0xa8),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
46
w(0x51), w(0xa3), w(0x40), w(0x8f), w(0x92), w(0x9d), w(0x38), w(0xf5),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
47
w(0xbc), w(0xb6), w(0xda), w(0x21), w(0x10), w(0xff), w(0xf3), w(0xd2),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
48
w(0xcd), w(0x0c), w(0x13), w(0xec), w(0x5f), w(0x97), w(0x44), w(0x17),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
49
w(0xc4), w(0xa7), w(0x7e), w(0x3d), w(0x64), w(0x5d), w(0x19), w(0x73),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
50
w(0x60), w(0x81), w(0x4f), w(0xdc), w(0x22), w(0x2a), w(0x90), w(0x88),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
51
w(0x46), w(0xee), w(0xb8), w(0x14), w(0xde), w(0x5e), w(0x0b), w(0xdb),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
52
w(0xe0), w(0x32), w(0x3a), w(0x0a), w(0x49), w(0x06), w(0x24), w(0x5c),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
53
w(0xc2), w(0xd3), w(0xac), w(0x62), w(0x91), w(0x95), w(0xe4), w(0x79),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
54
w(0xe7), w(0xc8), w(0x37), w(0x6d), w(0x8d), w(0xd5), w(0x4e), w(0xa9),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
55
w(0x6c), w(0x56), w(0xf4), w(0xea), w(0x65), w(0x7a), w(0xae), w(0x08),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
56
w(0xba), w(0x78), w(0x25), w(0x2e), w(0x1c), w(0xa6), w(0xb4), w(0xc6),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
57
w(0xe8), w(0xdd), w(0x74), w(0x1f), w(0x4b), w(0xbd), w(0x8b), w(0x8a),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
58
w(0x70), w(0x3e), w(0xb5), w(0x66), w(0x48), w(0x03), w(0xf6), w(0x0e),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
59
w(0x61), w(0x35), w(0x57), w(0xb9), w(0x86), w(0xc1), w(0x1d), w(0x9e),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
60
w(0xe1), w(0xf8), w(0x98), w(0x11), w(0x69), w(0xd9), w(0x8e), w(0x94),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
61
w(0x9b), w(0x1e), w(0x87), w(0xe9), w(0xce), w(0x55), w(0x28), w(0xdf),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
62
w(0x8c), w(0xa1), w(0x89), w(0x0d), w(0xbf), w(0xe6), w(0x42), w(0x68),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
63
w(0x41), w(0x99), w(0x2d), w(0x0f), w(0xb0), w(0x54), w(0xbb), w(0x16) }
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
65
#define isb_data(w) {\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
66
w(0x52), w(0x09), w(0x6a), w(0xd5), w(0x30), w(0x36), w(0xa5), w(0x38),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
67
w(0xbf), w(0x40), w(0xa3), w(0x9e), w(0x81), w(0xf3), w(0xd7), w(0xfb),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
68
w(0x7c), w(0xe3), w(0x39), w(0x82), w(0x9b), w(0x2f), w(0xff), w(0x87),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
69
w(0x34), w(0x8e), w(0x43), w(0x44), w(0xc4), w(0xde), w(0xe9), w(0xcb),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
70
w(0x54), w(0x7b), w(0x94), w(0x32), w(0xa6), w(0xc2), w(0x23), w(0x3d),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
71
w(0xee), w(0x4c), w(0x95), w(0x0b), w(0x42), w(0xfa), w(0xc3), w(0x4e),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
72
w(0x08), w(0x2e), w(0xa1), w(0x66), w(0x28), w(0xd9), w(0x24), w(0xb2),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
73
w(0x76), w(0x5b), w(0xa2), w(0x49), w(0x6d), w(0x8b), w(0xd1), w(0x25),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
74
w(0x72), w(0xf8), w(0xf6), w(0x64), w(0x86), w(0x68), w(0x98), w(0x16),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
75
w(0xd4), w(0xa4), w(0x5c), w(0xcc), w(0x5d), w(0x65), w(0xb6), w(0x92),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
76
w(0x6c), w(0x70), w(0x48), w(0x50), w(0xfd), w(0xed), w(0xb9), w(0xda),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
77
w(0x5e), w(0x15), w(0x46), w(0x57), w(0xa7), w(0x8d), w(0x9d), w(0x84),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
78
w(0x90), w(0xd8), w(0xab), w(0x00), w(0x8c), w(0xbc), w(0xd3), w(0x0a),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
79
w(0xf7), w(0xe4), w(0x58), w(0x05), w(0xb8), w(0xb3), w(0x45), w(0x06),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
80
w(0xd0), w(0x2c), w(0x1e), w(0x8f), w(0xca), w(0x3f), w(0x0f), w(0x02),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
81
w(0xc1), w(0xaf), w(0xbd), w(0x03), w(0x01), w(0x13), w(0x8a), w(0x6b),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
82
w(0x3a), w(0x91), w(0x11), w(0x41), w(0x4f), w(0x67), w(0xdc), w(0xea),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
83
w(0x97), w(0xf2), w(0xcf), w(0xce), w(0xf0), w(0xb4), w(0xe6), w(0x73),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
84
w(0x96), w(0xac), w(0x74), w(0x22), w(0xe7), w(0xad), w(0x35), w(0x85),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
85
w(0xe2), w(0xf9), w(0x37), w(0xe8), w(0x1c), w(0x75), w(0xdf), w(0x6e),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
86
w(0x47), w(0xf1), w(0x1a), w(0x71), w(0x1d), w(0x29), w(0xc5), w(0x89),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
87
w(0x6f), w(0xb7), w(0x62), w(0x0e), w(0xaa), w(0x18), w(0xbe), w(0x1b),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
88
w(0xfc), w(0x56), w(0x3e), w(0x4b), w(0xc6), w(0xd2), w(0x79), w(0x20),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
89
w(0x9a), w(0xdb), w(0xc0), w(0xfe), w(0x78), w(0xcd), w(0x5a), w(0xf4),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
90
w(0x1f), w(0xdd), w(0xa8), w(0x33), w(0x88), w(0x07), w(0xc7), w(0x31),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
91
w(0xb1), w(0x12), w(0x10), w(0x59), w(0x27), w(0x80), w(0xec), w(0x5f),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
92
w(0x60), w(0x51), w(0x7f), w(0xa9), w(0x19), w(0xb5), w(0x4a), w(0x0d),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
93
w(0x2d), w(0xe5), w(0x7a), w(0x9f), w(0x93), w(0xc9), w(0x9c), w(0xef),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
94
w(0xa0), w(0xe0), w(0x3b), w(0x4d), w(0xae), w(0x2a), w(0xf5), w(0xb0),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
95
w(0xc8), w(0xeb), w(0xbb), w(0x3c), w(0x83), w(0x53), w(0x99), w(0x61),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
96
w(0x17), w(0x2b), w(0x04), w(0x7e), w(0xba), w(0x77), w(0xd6), w(0x26),\
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
97
w(0xe1), w(0x69), w(0x14), w(0x63), w(0x55), w(0x21), w(0x0c), w(0x7d) }
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
99
#define mm_data(w) {\
crypto/krb5/src/lib/gssapi/generic/t_seqstate.c
170
enum width w;
crypto/krb5/src/lib/gssapi/generic/t_seqstate.c
178
for (w = NARROW; w <= WIDE; w++) {
crypto/krb5/src/lib/gssapi/generic/t_seqstate.c
179
if (t->wide_seqnums != BOTH && t->wide_seqnums != w)
crypto/krb5/src/lib/gssapi/generic/t_seqstate.c
182
t->do_sequence, w))
crypto/krb5/src/plugins/preauth/spake/openssl.c
147
BIGNUM *w = NULL;
crypto/krb5/src/plugins/preauth/spake/openssl.c
149
w = BN_new();
crypto/krb5/src/plugins/preauth/spake/openssl.c
150
if (w == NULL)
crypto/krb5/src/plugins/preauth/spake/openssl.c
153
BN_set_flags(w, BN_FLG_CONSTTIME);
crypto/krb5/src/plugins/preauth/spake/openssl.c
155
if (BN_bin2bn(wbytes, reg->mult_len, w) &&
crypto/krb5/src/plugins/preauth/spake/openssl.c
156
BN_div(NULL, w, w, gdata->order, gdata->ctx))
crypto/krb5/src/plugins/preauth/spake/openssl.c
157
return w;
crypto/krb5/src/plugins/preauth/spake/openssl.c
159
BN_free(w);
crypto/krb5/src/plugins/preauth/spake/openssl.c
171
BIGNUM *priv = NULL, *w = NULL;
crypto/krb5/src/plugins/preauth/spake/openssl.c
174
w = unmarshal_w(gdata, wbytes);
crypto/krb5/src/plugins/preauth/spake/openssl.c
175
if (w == NULL)
crypto/krb5/src/plugins/preauth/spake/openssl.c
190
if (!EC_POINT_mul(gdata->group, pub, priv, constant, w, gdata->ctx))
crypto/krb5/src/plugins/preauth/spake/openssl.c
208
BN_clear_free(w);
crypto/krb5/src/plugins/preauth/spake/openssl.c
221
BIGNUM *priv = NULL, *w = NULL;
crypto/krb5/src/plugins/preauth/spake/openssl.c
224
w = unmarshal_w(gdata, wbytes);
crypto/krb5/src/plugins/preauth/spake/openssl.c
225
if (w == NULL)
crypto/krb5/src/plugins/preauth/spake/openssl.c
246
if (!EC_POINT_mul(gdata->group, result, NULL, constant, w, gdata->ctx))
crypto/krb5/src/plugins/preauth/spake/openssl.c
265
BN_clear_free(w);
crypto/krb5/src/plugins/preauth/spake/t_vectors.c
386
krb5_data *w, *x, *y, *T, *S, *K, *support, *challenge, *thash;
crypto/krb5/src/plugins/preauth/spake/t_vectors.c
391
w = decode_data(t->w);
crypto/krb5/src/plugins/preauth/spake/t_vectors.c
407
assert(data_eq(*w, wbytes));
crypto/krb5/src/plugins/preauth/spake/t_vectors.c
44
const char *w;
crypto/krb5/src/plugins/preauth/spake/t_vectors.c
450
krb5_free_data(ctx, w);
crypto/krb5/src/util/verto/ev.c
1545
# define ABSPRI(w) (((W)w), 0)
crypto/krb5/src/util/verto/ev.c
1547
# define ABSPRI(w) (((W)w)->priority - EV_MINPRI)
crypto/krb5/src/util/verto/ev.c
1557
#define ev_active(w) ((W)(w))->active
crypto/krb5/src/util/verto/ev.c
1558
#define ev_at(w) ((WT)(w))->at
crypto/krb5/src/util/verto/ev.c
1787
W w;
crypto/krb5/src/util/verto/ev.c
1804
WT w;
crypto/krb5/src/util/verto/ev.c
1807
#define ANHE_w(he) (he).w /* access watcher, read-write */
crypto/krb5/src/util/verto/ev.c
1809
#define ANHE_at_cache(he) (he).at = (he).w->at /* update at from watcher */
crypto/krb5/src/util/verto/ev.c
1988
pendingcb (EV_P_ ev_prepare *w, int revents)
crypto/krb5/src/util/verto/ev.c
1993
ev_feed_event (EV_P_ void *w, int revents) EV_THROW
crypto/krb5/src/util/verto/ev.c
1995
W w_ = (W)w;
crypto/krb5/src/util/verto/ev.c
2004
pendings [pri][w_->pending - 1].w = w_;
crypto/krb5/src/util/verto/ev.c
2012
feed_reverse (EV_P_ W w)
crypto/krb5/src/util/verto/ev.c
2015
rfeeds [rfeedcnt++] = w;
crypto/krb5/src/util/verto/ev.c
2041
ev_io *w;
crypto/krb5/src/util/verto/ev.c
2043
for (w = (ev_io *)anfd->head; w; w = (ev_io *)((WL)w)->next)
crypto/krb5/src/util/verto/ev.c
2045
int ev = w->events & revents;
crypto/krb5/src/util/verto/ev.c
2048
ev_feed_event (EV_A_ (W)w, ev);
crypto/krb5/src/util/verto/ev.c
2106
ev_io *w;
crypto/krb5/src/util/verto/ev.c
2117
for (w = (ev_io *)anfd->head; w; w = (ev_io *)((WL)w)->next)
crypto/krb5/src/util/verto/ev.c
2118
anfd->events |= (unsigned char)w->events;
crypto/krb5/src/util/verto/ev.c
2150
ev_io *w;
crypto/krb5/src/util/verto/ev.c
2152
while ((w = (ev_io *)anfds [fd].head))
crypto/krb5/src/util/verto/ev.c
2154
ev_io_stop (EV_A_ w);
crypto/krb5/src/util/verto/ev.c
2155
ev_feed_event (EV_A_ (W)w, EV_ERROR | EV_READ | EV_WRITE);
crypto/krb5/src/util/verto/ev.c
2579
WL w;
crypto/krb5/src/util/verto/ev.c
2597
for (w = signals [signum].head; w; w = w->next)
crypto/krb5/src/util/verto/ev.c
2598
ev_feed_event (EV_A_ (W)w, EV_SIGNAL);
crypto/krb5/src/util/verto/ev.c
2638
ev_child *w;
crypto/krb5/src/util/verto/ev.c
2641
for (w = (ev_child *)childs [chain & ((EV_PID_HASHSIZE) - 1)]; w; w = (ev_child *)((WL)w)->next)
crypto/krb5/src/util/verto/ev.c
2643
if ((w->pid == pid || !w->pid)
crypto/krb5/src/util/verto/ev.c
2644
&& (!traced || (w->flags & 1)))
crypto/krb5/src/util/verto/ev.c
2646
ev_set_priority (w, EV_MAXPRI); /* need to do it *now*, this *must* be the same prio as the signal watcher itself */
crypto/krb5/src/util/verto/ev.c
2647
w->rpid = pid;
crypto/krb5/src/util/verto/ev.c
2648
w->rstatus = status;
crypto/krb5/src/util/verto/ev.c
2649
ev_feed_event (EV_A_ (W)w, EV_CHILD);
crypto/krb5/src/util/verto/ev.c
3101
verify_watcher (EV_P_ W w)
crypto/krb5/src/util/verto/ev.c
3103
assert (("libev: watcher has invalid priority", ABSPRI (w) >= 0 && ABSPRI (w) < NUMPRI));
crypto/krb5/src/util/verto/ev.c
3105
if (w->pending)
crypto/krb5/src/util/verto/ev.c
3106
assert (("libev: pending watcher not on pending queue", pendings [ABSPRI (w)][w->pending - 1].w == w));
crypto/krb5/src/util/verto/ev.c
3141
WL w, w2;
crypto/krb5/src/util/verto/ev.c
3154
for (w = w2 = anfds [i].head; w; w = w->next)
crypto/krb5/src/util/verto/ev.c
3156
verify_watcher (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
3160
assert (("libev: io watcher list contains a loop", w != w2));
crypto/krb5/src/util/verto/ev.c
3164
assert (("libev: inactive fd watcher on anfd list", ev_active (w) == 1));
crypto/krb5/src/util/verto/ev.c
3165
assert (("libev: fd mismatch between watcher and anfd", ((ev_io *)w)->fd == i));
crypto/krb5/src/util/verto/ev.c
3214
for (w = (ev_child *)childs [chain & ((EV_PID_HASHSIZE) - 1)]; w; w = (ev_child *)((WL)w)->next)
crypto/krb5/src/util/verto/ev.c
3264
ev_invoke (EV_P_ void *w, int revents)
crypto/krb5/src/util/verto/ev.c
3266
EV_CB_INVOKE ((W)w, revents);
crypto/krb5/src/util/verto/ev.c
3294
p->w->pending = 0;
crypto/krb5/src/util/verto/ev.c
3295
EV_CB_INVOKE (p->w, p->events);
crypto/krb5/src/util/verto/ev.c
3336
ev_timer *w = (ev_timer *)ANHE_w (timers [HEAP0]);
crypto/krb5/src/util/verto/ev.c
3341
if (w->repeat)
crypto/krb5/src/util/verto/ev.c
3343
ev_at (w) += w->repeat;
crypto/krb5/src/util/verto/ev.c
3344
if (ev_at (w) < mn_now)
crypto/krb5/src/util/verto/ev.c
3345
ev_at (w) = mn_now;
crypto/krb5/src/util/verto/ev.c
3347
assert (("libev: negative ev_timer repeat value found while processing timers", w->repeat > 0.));
crypto/krb5/src/util/verto/ev.c
3353
ev_timer_stop (EV_A_ w); /* nonrepeating: stop timer */
crypto/krb5/src/util/verto/ev.c
3356
feed_reverse (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
3367
periodic_recalc (EV_P_ ev_periodic *w)
crypto/krb5/src/util/verto/ev.c
3369
ev_tstamp interval = w->interval > MIN_INTERVAL ? w->interval : MIN_INTERVAL;
crypto/krb5/src/util/verto/ev.c
3370
ev_tstamp at = w->offset + interval * ev_floor ((ev_rt_now - w->offset) / interval);
crypto/krb5/src/util/verto/ev.c
3375
ev_tstamp nat = at + w->interval;
crypto/krb5/src/util/verto/ev.c
3387
ev_at (w) = at;
crypto/krb5/src/util/verto/ev.c
3400
ev_periodic *w = (ev_periodic *)ANHE_w (periodics [HEAP0]);
crypto/krb5/src/util/verto/ev.c
3405
if (w->reschedule_cb)
crypto/krb5/src/util/verto/ev.c
3407
ev_at (w) = w->reschedule_cb (w, ev_rt_now);
crypto/krb5/src/util/verto/ev.c
3409
assert (("libev: ev_periodic reschedule callback returned time in the past", ev_at (w) >= ev_rt_now));
crypto/krb5/src/util/verto/ev.c
3414
else if (w->interval)
crypto/krb5/src/util/verto/ev.c
3416
periodic_recalc (EV_A_ w);
crypto/krb5/src/util/verto/ev.c
3421
ev_periodic_stop (EV_A_ w); /* nonrepeating: stop timer */
crypto/krb5/src/util/verto/ev.c
3424
feed_reverse (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
3442
ev_periodic *w = (ev_periodic *)ANHE_w (periodics [i]);
crypto/krb5/src/util/verto/ev.c
3444
if (w->reschedule_cb)
crypto/krb5/src/util/verto/ev.c
3445
ev_at (w) = w->reschedule_cb (w, ev_rt_now);
crypto/krb5/src/util/verto/ev.c
3446
else if (w->interval)
crypto/krb5/src/util/verto/ev.c
3447
periodic_recalc (EV_A_ w);
crypto/krb5/src/util/verto/ev.c
3783
clear_pending (EV_P_ W w)
crypto/krb5/src/util/verto/ev.c
3785
if (w->pending)
crypto/krb5/src/util/verto/ev.c
3787
pendings [ABSPRI (w)][w->pending - 1].w = (W)&pending_w;
crypto/krb5/src/util/verto/ev.c
3788
w->pending = 0;
crypto/krb5/src/util/verto/ev.c
3793
ev_clear_pending (EV_P_ void *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
3795
W w_ = (W)w;
crypto/krb5/src/util/verto/ev.c
3801
p->w = (W)&pending_w;
crypto/krb5/src/util/verto/ev.c
3810
pri_adjust (EV_P_ W w)
crypto/krb5/src/util/verto/ev.c
3812
int pri = ev_priority (w);
crypto/krb5/src/util/verto/ev.c
3815
ev_set_priority (w, pri);
crypto/krb5/src/util/verto/ev.c
3819
ev_start (EV_P_ W w, int active)
crypto/krb5/src/util/verto/ev.c
3821
pri_adjust (EV_A_ w);
crypto/krb5/src/util/verto/ev.c
3822
w->active = active;
crypto/krb5/src/util/verto/ev.c
3827
ev_stop (EV_P_ W w)
crypto/krb5/src/util/verto/ev.c
3830
w->active = 0;
crypto/krb5/src/util/verto/ev.c
3836
ev_io_start (EV_P_ ev_io *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
3838
int fd = w->fd;
crypto/krb5/src/util/verto/ev.c
3840
if (expect_false (ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
3844
assert (("libev: ev_io_start called with illegal event mask", !(w->events & ~(EV__IOFDSET | EV_READ | EV_WRITE))));
crypto/krb5/src/util/verto/ev.c
3848
ev_start (EV_A_ (W)w, 1);
crypto/krb5/src/util/verto/ev.c
3850
wlist_add (&anfds[fd].head, (WL)w);
crypto/krb5/src/util/verto/ev.c
3853
assert (("libev: ev_io_start called with corrupted watcher", ((WL)w)->next != (WL)w));
crypto/krb5/src/util/verto/ev.c
3855
fd_change (EV_A_ fd, w->events & EV__IOFDSET | EV_ANFD_REIFY);
crypto/krb5/src/util/verto/ev.c
3856
w->events &= ~EV__IOFDSET;
crypto/krb5/src/util/verto/ev.c
3862
ev_io_stop (EV_P_ ev_io *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
3864
clear_pending (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
3865
if (expect_false (!ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
3868
assert (("libev: ev_io_stop called with illegal fd (must stay constant after start!)", w->fd >= 0 && w->fd < anfdmax));
crypto/krb5/src/util/verto/ev.c
3872
wlist_del (&anfds[w->fd].head, (WL)w);
crypto/krb5/src/util/verto/ev.c
3873
ev_stop (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
3875
fd_change (EV_A_ w->fd, EV_ANFD_REIFY);
crypto/krb5/src/util/verto/ev.c
3881
ev_timer_start (EV_P_ ev_timer *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
3883
if (expect_false (ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
3886
ev_at (w) += mn_now;
crypto/krb5/src/util/verto/ev.c
3888
assert (("libev: ev_timer_start called with negative timer repeat value", w->repeat >= 0.));
crypto/krb5/src/util/verto/ev.c
3893
ev_start (EV_A_ (W)w, timercnt + HEAP0 - 1);
crypto/krb5/src/util/verto/ev.c
3894
array_needsize (ANHE, timers, timermax, ev_active (w) + 1, EMPTY2);
crypto/krb5/src/util/verto/ev.c
3895
ANHE_w (timers [ev_active (w)]) = (WT)w;
crypto/krb5/src/util/verto/ev.c
3896
ANHE_at_cache (timers [ev_active (w)]);
crypto/krb5/src/util/verto/ev.c
3897
upheap (timers, ev_active (w));
crypto/krb5/src/util/verto/ev.c
3905
ev_timer_stop (EV_P_ ev_timer *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
3907
clear_pending (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
3908
if (expect_false (!ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
3914
int active = ev_active (w);
crypto/krb5/src/util/verto/ev.c
3916
assert (("libev: internal timer heap corruption", ANHE_w (timers [active]) == (WT)w));
crypto/krb5/src/util/verto/ev.c
3927
ev_at (w) -= mn_now;
crypto/krb5/src/util/verto/ev.c
3929
ev_stop (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
3935
ev_timer_again (EV_P_ ev_timer *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
3939
clear_pending (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
3941
if (ev_is_active (w))
crypto/krb5/src/util/verto/ev.c
3943
if (w->repeat)
crypto/krb5/src/util/verto/ev.c
3945
ev_at (w) = mn_now + w->repeat;
crypto/krb5/src/util/verto/ev.c
3946
ANHE_at_cache (timers [ev_active (w)]);
crypto/krb5/src/util/verto/ev.c
3947
adjustheap (timers, timercnt, ev_active (w));
crypto/krb5/src/util/verto/ev.c
3950
ev_timer_stop (EV_A_ w);
crypto/krb5/src/util/verto/ev.c
3952
else if (w->repeat)
crypto/krb5/src/util/verto/ev.c
3954
ev_at (w) = w->repeat;
crypto/krb5/src/util/verto/ev.c
3955
ev_timer_start (EV_A_ w);
crypto/krb5/src/util/verto/ev.c
3962
ev_timer_remaining (EV_P_ ev_timer *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
3964
return ev_at (w) - (ev_is_active (w) ? mn_now : 0.);
crypto/krb5/src/util/verto/ev.c
3969
ev_periodic_start (EV_P_ ev_periodic *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
3971
if (expect_false (ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
3974
if (w->reschedule_cb)
crypto/krb5/src/util/verto/ev.c
3975
ev_at (w) = w->reschedule_cb (w, ev_rt_now);
crypto/krb5/src/util/verto/ev.c
3976
else if (w->interval)
crypto/krb5/src/util/verto/ev.c
3978
assert (("libev: ev_periodic_start called with negative interval value", w->interval >= 0.));
crypto/krb5/src/util/verto/ev.c
3979
periodic_recalc (EV_A_ w);
crypto/krb5/src/util/verto/ev.c
3982
ev_at (w) = w->offset;
crypto/krb5/src/util/verto/ev.c
3987
ev_start (EV_A_ (W)w, periodiccnt + HEAP0 - 1);
crypto/krb5/src/util/verto/ev.c
3988
array_needsize (ANHE, periodics, periodicmax, ev_active (w) + 1, EMPTY2);
crypto/krb5/src/util/verto/ev.c
3989
ANHE_w (periodics [ev_active (w)]) = (WT)w;
crypto/krb5/src/util/verto/ev.c
3990
ANHE_at_cache (periodics [ev_active (w)]);
crypto/krb5/src/util/verto/ev.c
3991
upheap (periodics, ev_active (w));
crypto/krb5/src/util/verto/ev.c
3999
ev_periodic_stop (EV_P_ ev_periodic *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4001
clear_pending (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4002
if (expect_false (!ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
4008
int active = ev_active (w);
crypto/krb5/src/util/verto/ev.c
4010
assert (("libev: internal periodic heap corruption", ANHE_w (periodics [active]) == (WT)w));
crypto/krb5/src/util/verto/ev.c
4021
ev_stop (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4027
ev_periodic_again (EV_P_ ev_periodic *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4030
ev_periodic_stop (EV_A_ w);
crypto/krb5/src/util/verto/ev.c
4031
ev_periodic_start (EV_A_ w);
crypto/krb5/src/util/verto/ev.c
4042
ev_signal_start (EV_P_ ev_signal *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4044
if (expect_false (ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
4047
assert (("libev: ev_signal_start called with illegal signal number", w->signum > 0 && w->signum < EV_NSIG));
crypto/krb5/src/util/verto/ev.c
4051
!signals [w->signum - 1].loop || signals [w->signum - 1].loop == loop));
crypto/krb5/src/util/verto/ev.c
4053
signals [w->signum - 1].loop = EV_A;
crypto/krb5/src/util/verto/ev.c
4082
sigaddset (&sigfd_set, w->signum);
crypto/krb5/src/util/verto/ev.c
4089
ev_start (EV_A_ (W)w, 1);
crypto/krb5/src/util/verto/ev.c
4090
wlist_add (&signals [w->signum - 1].head, (WL)w);
crypto/krb5/src/util/verto/ev.c
4092
if (!((WL)w)->next)
crypto/krb5/src/util/verto/ev.c
4100
signal (w->signum, ev_sighandler);
crypto/krb5/src/util/verto/ev.c
4109
sigaction (w->signum, &sa, 0);
crypto/krb5/src/util/verto/ev.c
4114
sigaddset (&sa.sa_mask, w->signum);
crypto/krb5/src/util/verto/ev.c
4124
ev_signal_stop (EV_P_ ev_signal *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4126
clear_pending (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4127
if (expect_false (!ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
4132
wlist_del (&signals [w->signum - 1].head, (WL)w);
crypto/krb5/src/util/verto/ev.c
4133
ev_stop (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4135
if (!signals [w->signum - 1].head)
crypto/krb5/src/util/verto/ev.c
4138
signals [w->signum - 1].loop = 0; /* unattach from signal */
crypto/krb5/src/util/verto/ev.c
4146
sigaddset (&ss, w->signum);
crypto/krb5/src/util/verto/ev.c
4147
sigdelset (&sigfd_set, w->signum);
crypto/krb5/src/util/verto/ev.c
4154
signal (w->signum, SIG_DFL);
crypto/krb5/src/util/verto/ev.c
4165
ev_child_start (EV_P_ ev_child *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4170
if (expect_false (ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
4175
ev_start (EV_A_ (W)w, 1);
crypto/krb5/src/util/verto/ev.c
4176
wlist_add (&childs [w->pid & ((EV_PID_HASHSIZE) - 1)], (WL)w);
crypto/krb5/src/util/verto/ev.c
4182
ev_child_stop (EV_P_ ev_child *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4184
clear_pending (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4185
if (expect_false (!ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
4190
wlist_del (&childs [w->pid & ((EV_PID_HASHSIZE) - 1)], (WL)w);
crypto/krb5/src/util/verto/ev.c
4191
ev_stop (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4217
infy_add (EV_P_ ev_stat *w)
crypto/krb5/src/util/verto/ev.c
4219
w->wd = inotify_add_watch (fs_fd, w->path,
crypto/krb5/src/util/verto/ev.c
4224
if (w->wd >= 0)
crypto/krb5/src/util/verto/ev.c
4233
w->timer.repeat = w->interval ? w->interval : DEF_STAT_INTERVAL;
crypto/krb5/src/util/verto/ev.c
4234
else if (!statfs (w->path, &sfs)
crypto/krb5/src/util/verto/ev.c
4247
w->timer.repeat = 0.; /* filesystem is local, kernel new enough */
crypto/krb5/src/util/verto/ev.c
4249
w->timer.repeat = w->interval ? w->interval : NFS_STAT_INTERVAL; /* remote, use reduced frequency */
crypto/krb5/src/util/verto/ev.c
4254
w->timer.repeat = w->interval ? w->interval : DEF_STAT_INTERVAL;
crypto/krb5/src/util/verto/ev.c
4259
if ((errno == ENOENT || errno == EACCES) && strlen (w->path) < 4096)
crypto/krb5/src/util/verto/ev.c
4262
strcpy (path, w->path);
crypto/krb5/src/util/verto/ev.c
4275
w->wd = inotify_add_watch (fs_fd, path, mask);
crypto/krb5/src/util/verto/ev.c
4277
while (w->wd < 0 && (errno == ENOENT || errno == EACCES));
crypto/krb5/src/util/verto/ev.c
4281
if (w->wd >= 0)
crypto/krb5/src/util/verto/ev.c
4282
wlist_add (&fs_hash [w->wd & ((EV_INOTIFY_HASHSIZE) - 1)].head, (WL)w);
crypto/krb5/src/util/verto/ev.c
4285
if (ev_is_active (&w->timer)) ev_ref (EV_A);
crypto/krb5/src/util/verto/ev.c
4286
ev_timer_again (EV_A_ &w->timer);
crypto/krb5/src/util/verto/ev.c
4287
if (ev_is_active (&w->timer)) ev_unref (EV_A);
crypto/krb5/src/util/verto/ev.c
4291
infy_del (EV_P_ ev_stat *w)
crypto/krb5/src/util/verto/ev.c
4294
int wd = w->wd;
crypto/krb5/src/util/verto/ev.c
4299
w->wd = -2;
crypto/krb5/src/util/verto/ev.c
4301
wlist_del (&fs_hash [slot].head, (WL)w);
crypto/krb5/src/util/verto/ev.c
4320
ev_stat *w = (ev_stat *)w_;
crypto/krb5/src/util/verto/ev.c
4323
if (w->wd == wd || wd == -1)
crypto/krb5/src/util/verto/ev.c
4327
wlist_del (&fs_hash [slot & ((EV_INOTIFY_HASHSIZE) - 1)].head, (WL)w);
crypto/krb5/src/util/verto/ev.c
4328
w->wd = -1;
crypto/krb5/src/util/verto/ev.c
4329
infy_add (EV_A_ w); /* re-add, no matter what */
crypto/krb5/src/util/verto/ev.c
4332
stat_timer_cb (EV_A_ &w->timer, 0);
crypto/krb5/src/util/verto/ev.c
4339
infy_cb (EV_P_ ev_io *w, int revents)
crypto/krb5/src/util/verto/ev.c
4426
ev_stat *w = (ev_stat *)w_;
crypto/krb5/src/util/verto/ev.c
4429
w->wd = -1;
crypto/krb5/src/util/verto/ev.c
4432
infy_add (EV_A_ w); /* re-add, no matter what */
crypto/krb5/src/util/verto/ev.c
4435
w->timer.repeat = w->interval ? w->interval : DEF_STAT_INTERVAL;
crypto/krb5/src/util/verto/ev.c
4436
if (ev_is_active (&w->timer)) ev_ref (EV_A);
crypto/krb5/src/util/verto/ev.c
4437
ev_timer_again (EV_A_ &w->timer);
crypto/krb5/src/util/verto/ev.c
4438
if (ev_is_active (&w->timer)) ev_unref (EV_A);
crypto/krb5/src/util/verto/ev.c
4453
ev_stat_stat (EV_P_ ev_stat *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4455
if (lstat (w->path, &w->attr) < 0)
crypto/krb5/src/util/verto/ev.c
4456
w->attr.st_nlink = 0;
crypto/krb5/src/util/verto/ev.c
4457
else if (!w->attr.st_nlink)
crypto/krb5/src/util/verto/ev.c
4458
w->attr.st_nlink = 1;
crypto/krb5/src/util/verto/ev.c
4464
ev_stat *w = (ev_stat *)(((char *)w_) - offsetof (ev_stat, timer));
crypto/krb5/src/util/verto/ev.c
4466
ev_statdata prev = w->attr;
crypto/krb5/src/util/verto/ev.c
4467
ev_stat_stat (EV_A_ w);
crypto/krb5/src/util/verto/ev.c
4471
prev.st_dev != w->attr.st_dev
crypto/krb5/src/util/verto/ev.c
4472
|| prev.st_ino != w->attr.st_ino
crypto/krb5/src/util/verto/ev.c
4473
|| prev.st_mode != w->attr.st_mode
crypto/krb5/src/util/verto/ev.c
4474
|| prev.st_nlink != w->attr.st_nlink
crypto/krb5/src/util/verto/ev.c
4475
|| prev.st_uid != w->attr.st_uid
crypto/krb5/src/util/verto/ev.c
4476
|| prev.st_gid != w->attr.st_gid
crypto/krb5/src/util/verto/ev.c
4477
|| prev.st_rdev != w->attr.st_rdev
crypto/krb5/src/util/verto/ev.c
4478
|| prev.st_size != w->attr.st_size
crypto/krb5/src/util/verto/ev.c
4479
|| prev.st_atime != w->attr.st_atime
crypto/krb5/src/util/verto/ev.c
4480
|| prev.st_mtime != w->attr.st_mtime
crypto/krb5/src/util/verto/ev.c
4481
|| prev.st_ctime != w->attr.st_ctime
crypto/krb5/src/util/verto/ev.c
4486
w->prev = prev;
crypto/krb5/src/util/verto/ev.c
4491
infy_del (EV_A_ w);
crypto/krb5/src/util/verto/ev.c
4492
infy_add (EV_A_ w);
crypto/krb5/src/util/verto/ev.c
4493
ev_stat_stat (EV_A_ w); /* avoid race... */
crypto/krb5/src/util/verto/ev.c
4497
ev_feed_event (EV_A_ w, EV_STAT);
crypto/krb5/src/util/verto/ev.c
4502
ev_stat_start (EV_P_ ev_stat *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4504
if (expect_false (ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
4507
ev_stat_stat (EV_A_ w);
crypto/krb5/src/util/verto/ev.c
4509
if (w->interval < MIN_STAT_INTERVAL && w->interval)
crypto/krb5/src/util/verto/ev.c
4510
w->interval = MIN_STAT_INTERVAL;
crypto/krb5/src/util/verto/ev.c
4512
ev_timer_init (&w->timer, stat_timer_cb, 0., w->interval ? w->interval : DEF_STAT_INTERVAL);
crypto/krb5/src/util/verto/ev.c
4513
ev_set_priority (&w->timer, ev_priority (w));
crypto/krb5/src/util/verto/ev.c
4519
infy_add (EV_A_ w);
crypto/krb5/src/util/verto/ev.c
4523
ev_timer_again (EV_A_ &w->timer);
crypto/krb5/src/util/verto/ev.c
4527
ev_start (EV_A_ (W)w, 1);
crypto/krb5/src/util/verto/ev.c
4533
ev_stat_stop (EV_P_ ev_stat *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4535
clear_pending (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4536
if (expect_false (!ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
4542
infy_del (EV_A_ w);
crypto/krb5/src/util/verto/ev.c
4545
if (ev_is_active (&w->timer))
crypto/krb5/src/util/verto/ev.c
4548
ev_timer_stop (EV_A_ &w->timer);
crypto/krb5/src/util/verto/ev.c
4551
ev_stop (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4559
ev_idle_start (EV_P_ ev_idle *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4561
if (expect_false (ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
4564
pri_adjust (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4569
int active = ++idlecnt [ABSPRI (w)];
crypto/krb5/src/util/verto/ev.c
4572
ev_start (EV_A_ (W)w, active);
crypto/krb5/src/util/verto/ev.c
4574
array_needsize (ev_idle *, idles [ABSPRI (w)], idlemax [ABSPRI (w)], active, EMPTY2);
crypto/krb5/src/util/verto/ev.c
4575
idles [ABSPRI (w)][active - 1] = w;
crypto/krb5/src/util/verto/ev.c
4582
ev_idle_stop (EV_P_ ev_idle *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4584
clear_pending (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4585
if (expect_false (!ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
4591
int active = ev_active (w);
crypto/krb5/src/util/verto/ev.c
4593
idles [ABSPRI (w)][active - 1] = idles [ABSPRI (w)][--idlecnt [ABSPRI (w)]];
crypto/krb5/src/util/verto/ev.c
4594
ev_active (idles [ABSPRI (w)][active - 1]) = active;
crypto/krb5/src/util/verto/ev.c
4596
ev_stop (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4606
ev_prepare_start (EV_P_ ev_prepare *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4608
if (expect_false (ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
4613
ev_start (EV_A_ (W)w, ++preparecnt);
crypto/krb5/src/util/verto/ev.c
4615
prepares [preparecnt - 1] = w;
crypto/krb5/src/util/verto/ev.c
4621
ev_prepare_stop (EV_P_ ev_prepare *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4623
clear_pending (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4624
if (expect_false (!ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
4630
int active = ev_active (w);
crypto/krb5/src/util/verto/ev.c
4636
ev_stop (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4644
ev_check_start (EV_P_ ev_check *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4646
if (expect_false (ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
4651
ev_start (EV_A_ (W)w, ++checkcnt);
crypto/krb5/src/util/verto/ev.c
4653
checks [checkcnt - 1] = w;
crypto/krb5/src/util/verto/ev.c
4659
ev_check_stop (EV_P_ ev_check *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4661
clear_pending (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4662
if (expect_false (!ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
4668
int active = ev_active (w);
crypto/krb5/src/util/verto/ev.c
4674
ev_stop (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4682
ev_embed_sweep (EV_P_ ev_embed *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4684
ev_run (w->other, EVRUN_NOWAIT);
crypto/krb5/src/util/verto/ev.c
4690
ev_embed *w = (ev_embed *)(((char *)io) - offsetof (ev_embed, io));
crypto/krb5/src/util/verto/ev.c
4692
if (ev_cb (w))
crypto/krb5/src/util/verto/ev.c
4693
ev_feed_event (EV_A_ (W)w, EV_EMBED);
crypto/krb5/src/util/verto/ev.c
4695
ev_run (w->other, EVRUN_NOWAIT);
crypto/krb5/src/util/verto/ev.c
4701
ev_embed *w = (ev_embed *)(((char *)prepare) - offsetof (ev_embed, prepare));
crypto/krb5/src/util/verto/ev.c
4704
EV_P = w->other;
crypto/krb5/src/util/verto/ev.c
4717
ev_embed *w = (ev_embed *)(((char *)fork_w) - offsetof (ev_embed, fork));
crypto/krb5/src/util/verto/ev.c
4719
ev_embed_stop (EV_A_ w);
crypto/krb5/src/util/verto/ev.c
4722
EV_P = w->other;
crypto/krb5/src/util/verto/ev.c
4728
ev_embed_start (EV_A_ w);
crypto/krb5/src/util/verto/ev.c
4740
ev_embed_start (EV_P_ ev_embed *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4742
if (expect_false (ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
4746
EV_P = w->other;
crypto/krb5/src/util/verto/ev.c
4748
ev_io_init (&w->io, embed_io_cb, backend_fd, EV_READ);
crypto/krb5/src/util/verto/ev.c
4753
ev_set_priority (&w->io, ev_priority (w));
crypto/krb5/src/util/verto/ev.c
4754
ev_io_start (EV_A_ &w->io);
crypto/krb5/src/util/verto/ev.c
4756
ev_prepare_init (&w->prepare, embed_prepare_cb);
crypto/krb5/src/util/verto/ev.c
4757
ev_set_priority (&w->prepare, EV_MINPRI);
crypto/krb5/src/util/verto/ev.c
4758
ev_prepare_start (EV_A_ &w->prepare);
crypto/krb5/src/util/verto/ev.c
4760
ev_fork_init (&w->fork, embed_fork_cb);
crypto/krb5/src/util/verto/ev.c
4761
ev_fork_start (EV_A_ &w->fork);
crypto/krb5/src/util/verto/ev.c
4765
ev_start (EV_A_ (W)w, 1);
crypto/krb5/src/util/verto/ev.c
4771
ev_embed_stop (EV_P_ ev_embed *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4773
clear_pending (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4774
if (expect_false (!ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
4779
ev_io_stop (EV_A_ &w->io);
crypto/krb5/src/util/verto/ev.c
4780
ev_prepare_stop (EV_A_ &w->prepare);
crypto/krb5/src/util/verto/ev.c
4781
ev_fork_stop (EV_A_ &w->fork);
crypto/krb5/src/util/verto/ev.c
4783
ev_stop (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4791
ev_fork_start (EV_P_ ev_fork *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4793
if (expect_false (ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
4798
ev_start (EV_A_ (W)w, ++forkcnt);
crypto/krb5/src/util/verto/ev.c
4800
forks [forkcnt - 1] = w;
crypto/krb5/src/util/verto/ev.c
4806
ev_fork_stop (EV_P_ ev_fork *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4808
clear_pending (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4809
if (expect_false (!ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
4815
int active = ev_active (w);
crypto/krb5/src/util/verto/ev.c
4821
ev_stop (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4829
ev_cleanup_start (EV_P_ ev_cleanup *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4831
if (expect_false (ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
4836
ev_start (EV_A_ (W)w, ++cleanupcnt);
crypto/krb5/src/util/verto/ev.c
4838
cleanups [cleanupcnt - 1] = w;
crypto/krb5/src/util/verto/ev.c
4846
ev_cleanup_stop (EV_P_ ev_cleanup *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4848
clear_pending (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4849
if (expect_false (!ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
4856
int active = ev_active (w);
crypto/krb5/src/util/verto/ev.c
4862
ev_stop (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4870
ev_async_start (EV_P_ ev_async *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4872
if (expect_false (ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
4875
w->sent = 0;
crypto/krb5/src/util/verto/ev.c
4881
ev_start (EV_A_ (W)w, ++asynccnt);
crypto/krb5/src/util/verto/ev.c
4883
asyncs [asynccnt - 1] = w;
crypto/krb5/src/util/verto/ev.c
4889
ev_async_stop (EV_P_ ev_async *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4891
clear_pending (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4892
if (expect_false (!ev_is_active (w)))
crypto/krb5/src/util/verto/ev.c
4898
int active = ev_active (w);
crypto/krb5/src/util/verto/ev.c
4904
ev_stop (EV_A_ (W)w);
crypto/krb5/src/util/verto/ev.c
4910
ev_async_send (EV_P_ ev_async *w) EV_THROW
crypto/krb5/src/util/verto/ev.c
4912
w->sent = 1;
crypto/krb5/src/util/verto/ev.c
4941
once_cb_io (EV_P_ ev_io *w, int revents)
crypto/krb5/src/util/verto/ev.c
4943
struct ev_once *once = (struct ev_once *)(((char *)w) - offsetof (struct ev_once, io));
crypto/krb5/src/util/verto/ev.c
4949
once_cb_to (EV_P_ ev_timer *w, int revents)
crypto/krb5/src/util/verto/ev.c
4951
struct ev_once *once = (struct ev_once *)(((char *)w) - offsetof (struct ev_once, to));
crypto/krb5/src/util/verto/ev.c
4989
ev_walk (EV_P_ int types, void (*cb)(EV_P_ int type, void *w)) EV_THROW
crypto/krb5/src/util/verto/ev.h
249
# define EV_CB_DECLARE(type) void (*cb)(EV_P_ struct type *w, int revents);
crypto/krb5/src/util/verto/ev.h
256
#define EV_CB(type,name) void name (EV_P_ struct ev_ ## type *w, int revents)
crypto/krb5/src/util/verto/ev.h
342
ev_tstamp (*reschedule_cb)(struct ev_periodic *w, ev_tstamp now) EV_THROW; /* rw */
crypto/krb5/src/util/verto/ev.h
464
# define ev_async_pending(w) (+(w)->sent)
crypto/krb5/src/util/verto/ev.h
470
struct ev_watcher w;
crypto/krb5/src/util/verto/ev.h
620
EV_API_DECL void ev_walk (EV_P_ int types, void (*cb)(EV_P_ int type, void *w)) EV_THROW;
crypto/krb5/src/util/verto/ev.h
747
EV_API_DECL void ev_feed_event (EV_P_ void *w, int revents) EV_THROW;
crypto/krb5/src/util/verto/ev.h
753
EV_API_DECL void ev_invoke (EV_P_ void *w, int revents);
crypto/krb5/src/util/verto/ev.h
754
EV_API_DECL int ev_clear_pending (EV_P_ void *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
756
EV_API_DECL void ev_io_start (EV_P_ ev_io *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
757
EV_API_DECL void ev_io_stop (EV_P_ ev_io *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
759
EV_API_DECL void ev_timer_start (EV_P_ ev_timer *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
760
EV_API_DECL void ev_timer_stop (EV_P_ ev_timer *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
762
EV_API_DECL void ev_timer_again (EV_P_ ev_timer *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
764
EV_API_DECL ev_tstamp ev_timer_remaining (EV_P_ ev_timer *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
767
EV_API_DECL void ev_periodic_start (EV_P_ ev_periodic *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
768
EV_API_DECL void ev_periodic_stop (EV_P_ ev_periodic *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
769
EV_API_DECL void ev_periodic_again (EV_P_ ev_periodic *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
774
EV_API_DECL void ev_signal_start (EV_P_ ev_signal *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
775
EV_API_DECL void ev_signal_stop (EV_P_ ev_signal *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
780
EV_API_DECL void ev_child_start (EV_P_ ev_child *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
781
EV_API_DECL void ev_child_stop (EV_P_ ev_child *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
785
EV_API_DECL void ev_stat_start (EV_P_ ev_stat *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
786
EV_API_DECL void ev_stat_stop (EV_P_ ev_stat *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
787
EV_API_DECL void ev_stat_stat (EV_P_ ev_stat *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
791
EV_API_DECL void ev_idle_start (EV_P_ ev_idle *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
792
EV_API_DECL void ev_idle_stop (EV_P_ ev_idle *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
796
EV_API_DECL void ev_prepare_start (EV_P_ ev_prepare *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
797
EV_API_DECL void ev_prepare_stop (EV_P_ ev_prepare *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
801
EV_API_DECL void ev_check_start (EV_P_ ev_check *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
802
EV_API_DECL void ev_check_stop (EV_P_ ev_check *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
806
EV_API_DECL void ev_fork_start (EV_P_ ev_fork *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
807
EV_API_DECL void ev_fork_stop (EV_P_ ev_fork *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
811
EV_API_DECL void ev_cleanup_start (EV_P_ ev_cleanup *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
812
EV_API_DECL void ev_cleanup_stop (EV_P_ ev_cleanup *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
817
EV_API_DECL void ev_embed_start (EV_P_ ev_embed *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
818
EV_API_DECL void ev_embed_stop (EV_P_ ev_embed *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
819
EV_API_DECL void ev_embed_sweep (EV_P_ ev_embed *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
823
EV_API_DECL void ev_async_start (EV_P_ ev_async *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
824
EV_API_DECL void ev_async_stop (EV_P_ ev_async *w) EV_THROW;
crypto/krb5/src/util/verto/ev.h
825
EV_API_DECL void ev_async_send (EV_P_ ev_async *w) EV_THROW;
crypto/krb5/src/util/verto/verto-k5ev.c
113
libev_callback(EV_P_ ev_watcher *w, int revents)
crypto/krb5/src/util/verto/verto-k5ev.c
122
if (verto_get_type(w->data)== VERTO_EV_TYPE_CHILD)
crypto/krb5/src/util/verto/verto-k5ev.c
123
verto_set_proc_status(w->data, ((ev_child*) w)->rstatus);
crypto/krb5/src/util/verto/verto-k5ev.c
132
verto_set_fd_state(w->data, state);
crypto/krb5/src/util/verto/verto-k5ev.c
133
verto_fire(w->data);
crypto/krb5/src/util/verto/verto-k5ev.c
155
w.type = malloc(sizeof(ev_ ## type)); \
crypto/krb5/src/util/verto/verto-k5ev.c
156
if (w.type) { \
crypto/krb5/src/util/verto/verto-k5ev.c
157
ev_ ## type ## _init(w.type, (EV_CB(type, (*))) __VA_ARGS__); \
crypto/krb5/src/util/verto/verto-k5ev.c
158
ev_ ## type ## _start(ctx, w.type); \
crypto/krb5/src/util/verto/verto-k5ev.c
172
} w;
crypto/krb5/src/util/verto/verto-k5ev.c
175
w.watcher = NULL;
crypto/krb5/src/util/verto/verto-k5ev.c
194
if (w.watcher) {
crypto/krb5/src/util/verto/verto-k5ev.c
195
w.watcher->data = (void*) ev;
crypto/krb5/src/util/verto/verto-k5ev.c
196
k5ev_ctx_set_flags(ctx, ev, w.watcher);
crypto/krb5/src/util/verto/verto-k5ev.c
198
return w.watcher;
crypto/krb5/src/util/verto/verto-libev.c
121
w.type = malloc(sizeof(ev_ ## type)); \
crypto/krb5/src/util/verto/verto-libev.c
122
if (w.type) { \
crypto/krb5/src/util/verto/verto-libev.c
123
ev_ ## type ## _init(w.type, (EV_CB(type, (*))) __VA_ARGS__); \
crypto/krb5/src/util/verto/verto-libev.c
124
ev_ ## type ## _start(ctx, w.type); \
crypto/krb5/src/util/verto/verto-libev.c
138
} w;
crypto/krb5/src/util/verto/verto-libev.c
141
w.watcher = NULL;
crypto/krb5/src/util/verto/verto-libev.c
160
if (w.watcher) {
crypto/krb5/src/util/verto/verto-libev.c
161
w.watcher->data = (void*) ev;
crypto/krb5/src/util/verto/verto-libev.c
162
libev_ctx_set_flags(ctx, ev, w.watcher);
crypto/krb5/src/util/verto/verto-libev.c
164
return w.watcher;
crypto/krb5/src/util/verto/verto-libev.c
79
libev_callback(EV_P_ ev_watcher *w, int revents)
crypto/krb5/src/util/verto/verto-libev.c
88
if (verto_get_type(w->data)== VERTO_EV_TYPE_CHILD)
crypto/krb5/src/util/verto/verto-libev.c
89
verto_set_proc_status(w->data, ((ev_child*) w)->rstatus);
crypto/krb5/src/util/verto/verto-libev.c
98
verto_set_fd_state(w->data, state);
crypto/krb5/src/util/verto/verto-libev.c
99
verto_fire(w->data);
crypto/krb5/src/windows/leashdll/lsh_pwd.c
530
#define CSendDlgItemMessage(hDlg, id, m, w, l) checkfirst(id, SendDlgItemMessage(hDlg, id, m, w, l))
crypto/krb5/src/windows/leashdll/lsh_pwd.c
531
#define CSendMessage(hwnd, m, w, l) IsWindow(hwnd) ? SendMessage(hwnd, m, w, l) : 0
crypto/libecc/include/libecc/fp/fp_mul.h
23
ATTRIBUTE_WARN_UNUSED_RET int fp_inv_word(fp_t out, word_t w);
crypto/libecc/include/libecc/hash/sha2.h
107
#define UPDATEW(w, i, sha_type) ((w)[(i)] = SIGMA_MIN1_##sha_type((w)[(i)-2]) + (w)[(i)-7] + SIGMA_MIN0_##sha_type((w)[(i)-15]) + (w)[(i)-16])
crypto/libecc/include/libecc/hash/sha2.h
109
#define SHA2CORE(a, b, c, d, e, f, g, h, w, k, sha_word_type, sha_type) do {\
crypto/libecc/include/libecc/hash/sha2.h
111
t1 = (h) + SIGMA_MAJ1_##sha_type((e)) + CH((e), (f), (g)) + (k) + (w);\
crypto/libecc/include/libecc/hash/sha2.h
134
#define SHA2CORE_SHA256(a, b, c, d, e, f, g, h, w, k) \
crypto/libecc/include/libecc/hash/sha2.h
135
SHA2CORE(a, b, c, d, e, f, g, h, w, k, u32, SHA256)
crypto/libecc/include/libecc/hash/sha2.h
136
#define UPDATEW_SHA256(w, i) UPDATEW(w, i, SHA256)
crypto/libecc/include/libecc/hash/sha2.h
170
#define SHA2CORE_SHA512(a, b, c, d, e, f, g, h, w, k) \
crypto/libecc/include/libecc/hash/sha2.h
171
SHA2CORE(a, b, c, d, e, f, g, h, w, k, u64, SHA512)
crypto/libecc/include/libecc/hash/sha2.h
172
#define UPDATEW_SHA512(w, i) UPDATEW(w, i, SHA512)
crypto/libecc/include/libecc/nn/nn.h
89
ATTRIBUTE_WARN_UNUSED_RET int nn_cmp_word(nn_src_t in, word_t w, int *cmp);
crypto/libecc/include/libecc/nn/nn_config.h
68
#define BIT_LEN_ROUNDING(x, w) ((((x) + (w) - 1) / (w)) * (w))
crypto/libecc/include/libecc/nn/nn_config.h
75
#define MAX_BIT_LEN_ROUNDING(x, w) (((((x) + (w) - 1) / (w)) * (w)) * 3)
crypto/libecc/include/libecc/nn/nn_modinv.h
22
ATTRIBUTE_WARN_UNUSED_RET int nn_modinv_word(nn_t out, word_t w, nn_src_t m);
crypto/libecc/include/libecc/nn/nn_mul_public.h
22
ATTRIBUTE_WARN_UNUSED_RET int nn_mul_word(nn_t out, nn_src_t in, word_t w);
crypto/libecc/include/libecc/words/words.h
79
#define WLSHIFT(w, c) ((word_t)(((c) >= WORD_BITS) ? WORD(0) : (word_t)((w) << (c))))
crypto/libecc/include/libecc/words/words.h
80
#define WRSHIFT(w, c) ((word_t)(((c) >= WORD_BITS) ? WORD(0) : (word_t)((w) >> (c))))
crypto/libecc/include/libecc/words/words.h
89
#define WORD_MASK_IFZERO(w) ((word_t)(((word_t)((w) != 0)) - WORD(1)))
crypto/libecc/include/libecc/words/words.h
90
#define WORD_MASK_IFNOTZERO(w) ((word_t)(((word_t)((w) == 0)) - WORD(1)))
crypto/libecc/src/curves/prj_pt.c
641
fp XX, ZZ, w, s, ss, sss, R, RR, B, h;
crypto/libecc/src/curves/prj_pt.c
643
XX.magic = ZZ.magic = w.magic = s.magic = WORD(0);
crypto/libecc/src/curves/prj_pt.c
651
ret = fp_init(&w, out->crv->a.ctx); EG(ret, err);
crypto/libecc/src/curves/prj_pt.c
667
ret = fp_mul_monty(&w, &(in->crv->a_monty), &ZZ); EG(ret, err);
crypto/libecc/src/curves/prj_pt.c
668
ret = fp_add_monty(&w, &w, &XX); EG(ret, err);
crypto/libecc/src/curves/prj_pt.c
669
ret = fp_add_monty(&w, &w, &XX); EG(ret, err);
crypto/libecc/src/curves/prj_pt.c
670
ret = fp_add_monty(&w, &w, &XX); EG(ret, err);
crypto/libecc/src/curves/prj_pt.c
695
ret = fp_sqr_monty(&h, &w); EG(ret, err);
crypto/libecc/src/curves/prj_pt.c
704
ret = fp_mul_monty(&(out->Y), &w, &B); EG(ret, err);
crypto/libecc/src/curves/prj_pt.c
714
fp_uninit(&w);
crypto/libecc/src/fp/fp_mul.c
89
int fp_inv_word(fp_t out, word_t w)
crypto/libecc/src/fp/fp_mul.c
95
ret = nn_modinv_word(&(out->fp_val), w, &(out->ctx->p));
crypto/libecc/src/hash/ripemd160.c
107
#define RIPEMD160_CORE(a, b, c, d, e, round, idx, w, F, S, R, K) do { \
crypto/libecc/src/hash/ripemd160.c
108
u32 t = ROTL_RIPEMD160(a + F(b, c, d) + w[R[round][idx]] + K[round], S[round][idx]) + e;\
crypto/libecc/src/nn/nn.c
321
int nn_cmp_word(nn_src_t in, word_t w, int *cmp)
crypto/libecc/src/nn/nn.c
332
*cmp = -(w != 0);
crypto/libecc/src/nn/nn.c
352
tmp += (int)(((word_t)(in->val[i] > w)) & (mask));
crypto/libecc/src/nn/nn.c
353
tmp -= (int)(((word_t)(in->val[i] < w)) & (mask));
crypto/libecc/src/nn/nn_add.c
179
ATTRIBUTE_WARN_UNUSED_RET static int nn_add_word(nn_t out, nn_src_t in1, word_t w)
crypto/libecc/src/nn/nn_add.c
196
carry = w;
crypto/libecc/src/nn/nn_add.c
298
const word_t w = WORD(1);
crypto/libecc/src/nn/nn_add.c
308
borrow = w;
crypto/libecc/src/nn/nn_div.c
114
ATTRIBUTE_WARN_UNUSED_RET static int _nn_submul_word_shift(nn_t out, nn_src_t in, word_t w, u8 shift,
crypto/libecc/src/nn/nn_div.c
129
WORD_MUL(prod_high, prod_low, in->val[i], w);
crypto/libecc/src/nn/nn_modinv.c
422
int nn_modinv_word(nn_t out, word_t w, nn_src_t m)
crypto/libecc/src/nn/nn_modinv.c
429
ret = nn_set_word_value(&nn_tmp, w); EG(ret, err);
crypto/libecc/src/nn/nn_mul.c
182
int nn_mul_word(nn_t out, nn_src_t in, word_t w)
crypto/libecc/src/nn/nn_mul.c
190
w_nn.val[0] = w;
crypto/libecc/src/utils/print_nn.c
21
int ret, w;
crypto/libecc/src/utils/print_nn.c
29
for (w = a->wlen - 1; w >= 0; w--) {
crypto/libecc/src/utils/print_nn.c
30
ext_printf(PRINTF_WORD_HEX_FMT, a->val[w]);
crypto/openssh/bitmap.c
144
BITMAP_WTYPE w;
crypto/openssh/bitmap.c
152
w = b->d[b->top];
crypto/openssh/bitmap.c
154
while (!(w & ((BITMAP_WTYPE)1 << (BITMAP_BITS - 1)))) {
crypto/openssh/bitmap.c
155
w <<= 1;
crypto/openssh/chacha.c
41
#define XOR(v,w) ((v) ^ (w))
crypto/openssh/chacha.c
42
#define PLUS(v,w) (U32V((v) + (w)))
crypto/openssh/openbsd-compat/bsd-waitpid.h
36
#define _W_INT(w) (*(int*)&(w)) /* convert union wait to int */
crypto/openssh/openbsd-compat/bsd-waitpid.h
37
#define WIFEXITED(w) (!((_W_INT(w)) & 0377))
crypto/openssh/openbsd-compat/bsd-waitpid.h
38
#define WIFSTOPPED(w) ((_W_INT(w)) & 0100)
crypto/openssh/openbsd-compat/bsd-waitpid.h
39
#define WIFSIGNALED(w) (!WIFEXITED(w) && !WIFSTOPPED(w))
crypto/openssh/openbsd-compat/bsd-waitpid.h
40
#define WEXITSTATUS(w) (int)(WIFEXITED(w) ? ((_W_INT(w) >> 8) & 0377) : -1)
crypto/openssh/openbsd-compat/bsd-waitpid.h
41
#define WTERMSIG(w) (int)(WIFSIGNALED(w) ? (_W_INT(w) & 0177) : -1)
crypto/openssh/openbsd-compat/bsd-waitpid.h
43
#define WCOREDUMP(w) ((_W_INT(w)) & WCOREFLAG)
crypto/openssh/openbsd-compat/chacha_private.h
43
#define XOR(v,w) ((v) ^ (w))
crypto/openssh/openbsd-compat/chacha_private.h
44
#define PLUS(v,w) (U32V((v) + (w)))
crypto/openssh/openbsd-compat/md5.c
148
#define MD5STEP(f, w, x, y, z, data, s) \
crypto/openssh/openbsd-compat/md5.c
149
( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x )
crypto/openssh/openbsd-compat/sha1.c
42
#define R0(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk0(i)+0x5A827999+rol(v,5);w=rol(w,30);
crypto/openssh/openbsd-compat/sha1.c
43
#define R1(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk(i)+0x5A827999+rol(v,5);w=rol(w,30);
crypto/openssh/openbsd-compat/sha1.c
44
#define R2(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0x6ED9EBA1+rol(v,5);w=rol(w,30);
crypto/openssh/openbsd-compat/sha1.c
45
#define R3(v,w,x,y,z,i) z+=(((w|x)&y)|(w&x))+blk(i)+0x8F1BBCDC+rol(v,5);w=rol(w,30);
crypto/openssh/openbsd-compat/sha1.c
46
#define R4(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0xCA62C1D6+rol(v,5);w=rol(w,30);
crypto/openssh/openbsd-compat/sha2.c
145
#define ADDINC128(w,n) do { \
crypto/openssh/openbsd-compat/sha2.c
146
(w)[0] += (u_int64_t)(n); \
crypto/openssh/openbsd-compat/sha2.c
147
if ((w)[0] < (n)) { \
crypto/openssh/openbsd-compat/sha2.c
148
(w)[1]++; \
crypto/openssh/sntrup761.c
1721
return crypto_int16_nonzero_mask(weight - w);
crypto/openssh/sntrup761.c
1949
for (i = 0; i < w; ++i) L[i] = in[i] & (uint32_t)-2;
crypto/openssh/sntrup761.c
1950
for (i = w; i < p; ++i) L[i] = (in[i] & (uint32_t)-3) | 1;
crypto/openssh/sntrup761.c
2015
for (i = 0; i < w; ++i) r[i] = ((ev[i] ^ 1) & ~mask) ^ 1;
crypto/openssh/sntrup761.c
2016
for (i = w; i < p; ++i) r[i] = ev[i] & ~mask;
crypto/openssh/sshkey-xmss.c
108
state->w = 16;
crypto/openssh/sshkey-xmss.c
112
state->w = 16;
crypto/openssh/sshkey-xmss.c
116
state->w = 16;
crypto/openssh/sshkey-xmss.c
128
if (xmss_set_params(&state->params, state->n, state->h, state->w,
crypto/openssh/sshkey-xmss.c
57
u_int32_t n, w, h, k;
crypto/openssh/sshpty.c
155
struct winsize w;
crypto/openssh/sshpty.c
158
w.ws_row = row;
crypto/openssh/sshpty.c
159
w.ws_col = col;
crypto/openssh/sshpty.c
160
w.ws_xpixel = xpixel;
crypto/openssh/sshpty.c
161
w.ws_ypixel = ypixel;
crypto/openssh/sshpty.c
162
(void) ioctl(ptyfd, TIOCSWINSZ, &w);
crypto/openssh/xmss_fast.c
101
if (xmss_set_params(&xmss_par, n, (h/d), w, k)) {
crypto/openssh/xmss_fast.c
53
int xmss_set_params(xmss_params *params, int n, int h, int w, int k)
crypto/openssh/xmss_fast.c
63
wots_set_params(&wots_par, n, w);
crypto/openssh/xmss_fast.c
90
int xmssmt_set_params(xmssmt_params *params, int n, int h, int d, int w, int k)
crypto/openssh/xmss_fast.h
63
int xmss_set_params(xmss_params *params, int n, int h, int w, int k);
crypto/openssh/xmss_fast.h
70
int xmssmt_set_params(xmssmt_params *params, int n, int h, int d, int w, int k);
crypto/openssh/xmss_wots.c
103
output[out] = (total >> bits) & (params->w - 1);
crypto/openssh/xmss_wots.c
114
gen_chain(pk+i*params->n, pk+i*params->n, 0, params->w-1, params, pub_seed, addr);
crypto/openssh/xmss_wots.c
131
csum += params->w - 1 - basew[i];
crypto/openssh/xmss_wots.c
169
csum += params->w - 1 - basew[i];
crypto/openssh/xmss_wots.c
187
gen_chain(pk+i*params->n, sig+i*params->n, basew[i], params->w-1-basew[i], params, pub_seed, addr);
crypto/openssh/xmss_wots.c
38
wots_set_params(wots_params *params, int n, int w)
crypto/openssh/xmss_wots.c
41
params->w = w;
crypto/openssh/xmss_wots.c
42
params->log_w = wots_log2(params->w);
crypto/openssh/xmss_wots.c
44
params->len_2 = (wots_log2(params->len_1 * (w - 1)) / params->log_w) + 1;
crypto/openssh/xmss_wots.c
77
for (i = start; i < (start+steps) && i < params->w; i++) {
crypto/openssh/xmss_wots.h
27
uint32_t w;
crypto/openssh/xmss_wots.h
39
void wots_set_params(wots_params *params, int n, int w);
crypto/openssl/apps/lib/s_cb.c
550
int w;
crypto/openssl/apps/lib/s_cb.c
552
w = where & ~SSL_ST_MASK;
crypto/openssl/apps/lib/s_cb.c
554
if (w & SSL_ST_CONNECT)
crypto/openssl/apps/lib/s_cb.c
556
else if (w & SSL_ST_ACCEPT)
crypto/openssl/apps/passwd.c
717
unsigned int w = ((B2) << 16) | ((B1) << 8) | (B0); \
crypto/openssl/apps/passwd.c
720
*cp++ = cov_2char[w & 0x3f]; \
crypto/openssl/apps/passwd.c
721
w >>= 6; \
crypto/openssl/crypto/aes/aes_core.c
145
static void SubWord(u32 *w)
crypto/openssl/crypto/aes/aes_core.c
149
x = *w;
crypto/openssl/crypto/aes/aes_core.c
233
*w = x;
crypto/openssl/crypto/aes/aes_core.c
236
static void SubLong(u64 *w)
crypto/openssl/crypto/aes/aes_core.c
240
x = *w;
crypto/openssl/crypto/aes/aes_core.c
324
*w = x;
crypto/openssl/crypto/aes/aes_core.c
330
static void InvSubLong(u64 *w)
crypto/openssl/crypto/aes/aes_core.c
334
x = *w;
crypto/openssl/crypto/aes/aes_core.c
422
*w = x;
crypto/openssl/crypto/aes/aes_core.c
527
static void AddRoundKey(u64 *state, const u64 *w)
crypto/openssl/crypto/aes/aes_core.c
529
state[0] ^= w[0];
crypto/openssl/crypto/aes/aes_core.c
530
state[1] ^= w[1];
crypto/openssl/crypto/aes/aes_core.c
534
const u64 *w, int nr)
crypto/openssl/crypto/aes/aes_core.c
541
AddRoundKey(state, w);
crypto/openssl/crypto/aes/aes_core.c
548
AddRoundKey(state, w + i * 2);
crypto/openssl/crypto/aes/aes_core.c
554
AddRoundKey(state, w + nr * 2);
crypto/openssl/crypto/aes/aes_core.c
560
const u64 *w, int nr)
crypto/openssl/crypto/aes/aes_core.c
568
AddRoundKey(state, w + nr * 2);
crypto/openssl/crypto/aes/aes_core.c
574
AddRoundKey(state, w + i * 2);
crypto/openssl/crypto/aes/aes_core.c
581
AddRoundKey(state, w);
crypto/openssl/crypto/aes/aes_core.c
599
static void KeyExpansion(const unsigned char *key, u64 *w,
crypto/openssl/crypto/aes/aes_core.c
607
memcpy(w, key, nk * 4);
crypto/openssl/crypto/aes/aes_core.c
610
prev.d = w[n - 1];
crypto/openssl/crypto/aes/aes_core.c
612
temp = prev.w[1];
crypto/openssl/crypto/aes/aes_core.c
621
prev.d = w[i - n];
crypto/openssl/crypto/aes/aes_core.c
622
prev.w[0] ^= temp;
crypto/openssl/crypto/aes/aes_core.c
623
prev.w[1] ^= prev.w[0];
crypto/openssl/crypto/aes/aes_core.c
624
w[i] = prev.d;
crypto/openssl/crypto/aes/aes_core.c
65
u32 w[2];
crypto/openssl/crypto/aes/aes_core.c
73
static void XtimeWord(u32 *w)
crypto/openssl/crypto/aes/aes_core.c
77
a = *w;
crypto/openssl/crypto/aes/aes_core.c
83
*w = b;
crypto/openssl/crypto/aes/aes_core.c
86
static void XtimeLong(u64 *w)
crypto/openssl/crypto/aes/aes_core.c
90
a = *w;
crypto/openssl/crypto/aes/aes_core.c
96
*w = b;
crypto/openssl/crypto/asn1/a_bitstr.c
150
int w, v, iv;
crypto/openssl/crypto/asn1/a_bitstr.c
156
w = n / 8;
crypto/openssl/crypto/asn1/a_bitstr.c
167
if ((a->length < (w + 1)) || (a->data == NULL)) {
crypto/openssl/crypto/asn1/a_bitstr.c
170
c = OPENSSL_clear_realloc(a->data, a->length, w + 1);
crypto/openssl/crypto/asn1/a_bitstr.c
173
if (w + 1 - a->length > 0)
crypto/openssl/crypto/asn1/a_bitstr.c
174
memset(c + a->length, 0, w + 1 - a->length);
crypto/openssl/crypto/asn1/a_bitstr.c
176
a->length = w + 1;
crypto/openssl/crypto/asn1/a_bitstr.c
178
a->data[w] = ((a->data[w]) & iv) | v;
crypto/openssl/crypto/asn1/a_bitstr.c
186
int w, v;
crypto/openssl/crypto/asn1/a_bitstr.c
191
w = n / 8;
crypto/openssl/crypto/asn1/a_bitstr.c
193
if ((a == NULL) || (a->length < (w + 1)) || (a->data == NULL))
crypto/openssl/crypto/asn1/a_bitstr.c
195
return ((a->data[w] & v) != 0);
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
115
BN_ULONG w)
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
123
mul_add(rp[0], ap[0], w, c1);
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
124
mul_add(rp[1], ap[1], w, c1);
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
125
mul_add(rp[2], ap[2], w, c1);
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
126
mul_add(rp[3], ap[3], w, c1);
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
132
mul_add(rp[0], ap[0], w, c1);
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
135
mul_add(rp[1], ap[1], w, c1);
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
138
mul_add(rp[2], ap[2], w, c1);
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
145
BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w)
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
153
mul(rp[0], ap[0], w, c1);
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
154
mul(rp[1], ap[1], w, c1);
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
155
mul(rp[2], ap[2], w, c1);
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
156
mul(rp[3], ap[3], w, c1);
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
162
mul(rp[0], ap[0], w, c1);
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
165
mul(rp[1], ap[1], w, c1);
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
168
mul(rp[2], ap[2], w, c1);
crypto/openssl/crypto/bn/bn_asm.c
104
BN_ULONG w)
crypto/openssl/crypto/bn/bn_asm.c
113
bl = LBITS(w);
crypto/openssl/crypto/bn/bn_asm.c
114
bh = HBITS(w);
crypto/openssl/crypto/bn/bn_asm.c
136
BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w)
crypto/openssl/crypto/bn/bn_asm.c
145
bl = LBITS(w);
crypto/openssl/crypto/bn/bn_asm.c
146
bh = HBITS(w);
crypto/openssl/crypto/bn/bn_asm.c
18
BN_ULONG w)
crypto/openssl/crypto/bn/bn_asm.c
28
mul_add(rp[0], ap[0], w, c1);
crypto/openssl/crypto/bn/bn_asm.c
29
mul_add(rp[1], ap[1], w, c1);
crypto/openssl/crypto/bn/bn_asm.c
30
mul_add(rp[2], ap[2], w, c1);
crypto/openssl/crypto/bn/bn_asm.c
31
mul_add(rp[3], ap[3], w, c1);
crypto/openssl/crypto/bn/bn_asm.c
38
mul_add(rp[0], ap[0], w, c1);
crypto/openssl/crypto/bn/bn_asm.c
47
BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w)
crypto/openssl/crypto/bn/bn_asm.c
57
mul(rp[0], ap[0], w, c1);
crypto/openssl/crypto/bn/bn_asm.c
58
mul(rp[1], ap[1], w, c1);
crypto/openssl/crypto/bn/bn_asm.c
59
mul(rp[2], ap[2], w, c1);
crypto/openssl/crypto/bn/bn_asm.c
60
mul(rp[3], ap[3], w, c1);
crypto/openssl/crypto/bn/bn_asm.c
67
mul(rp[0], ap[0], w, c1);
crypto/openssl/crypto/bn/bn_exp.c
1164
BN_ULONG w, next_w;
crypto/openssl/crypto/bn/bn_exp.c
1167
#define BN_MOD_MUL_WORD(r, w, m) \
crypto/openssl/crypto/bn/bn_exp.c
1168
(BN_mul_word(r, (w)) && (/* BN_ucmp(r, (m)) < 0 ? 1 :*/ \
crypto/openssl/crypto/bn/bn_exp.c
1180
#define BN_TO_MONTGOMERY_WORD(r, w, mont) \
crypto/openssl/crypto/bn/bn_exp.c
1181
(BN_set_word(r, (w)) && BN_to_montgomery(r, r, (mont), ctx))
crypto/openssl/crypto/bn/bn_exp.c
1237
w = a; /* bit 'bits-1' of 'p' is always set */
crypto/openssl/crypto/bn/bn_exp.c
1240
next_w = w * w;
crypto/openssl/crypto/bn/bn_exp.c
1241
if ((next_w / w) != w) { /* overflow */
crypto/openssl/crypto/bn/bn_exp.c
1243
if (!BN_TO_MONTGOMERY_WORD(r, w, mont))
crypto/openssl/crypto/bn/bn_exp.c
1247
if (!BN_MOD_MUL_WORD(r, w, m))
crypto/openssl/crypto/bn/bn_exp.c
1252
w = next_w;
crypto/openssl/crypto/bn/bn_exp.c
1260
next_w = w * a;
crypto/openssl/crypto/bn/bn_exp.c
1261
if ((next_w / a) != w) { /* overflow */
crypto/openssl/crypto/bn/bn_exp.c
1263
if (!BN_TO_MONTGOMERY_WORD(r, w, mont))
crypto/openssl/crypto/bn/bn_exp.c
1267
if (!BN_MOD_MUL_WORD(r, w, m))
crypto/openssl/crypto/bn/bn_exp.c
1272
w = next_w;
crypto/openssl/crypto/bn/bn_exp.c
1277
if (w != 1) {
crypto/openssl/crypto/bn/bn_exp.c
1279
if (!BN_TO_MONTGOMERY_WORD(r, w, mont))
crypto/openssl/crypto/bn/bn_exp.c
1283
if (!BN_MOD_MUL_WORD(r, w, m))
crypto/openssl/crypto/bn/bn_gf2m.c
1008
w = BN_CTX_get(ctx);
crypto/openssl/crypto/bn/bn_gf2m.c
1009
if (w == NULL)
crypto/openssl/crypto/bn/bn_gf2m.c
1048
if (!BN_copy(w, rho))
crypto/openssl/crypto/bn/bn_gf2m.c
1053
if (!BN_GF2m_mod_sqr_arr(w2, w, p, ctx))
crypto/openssl/crypto/bn/bn_gf2m.c
1059
if (!BN_GF2m_add(w, w2, rho))
crypto/openssl/crypto/bn/bn_gf2m.c
1063
} while (BN_is_zero(w) && (count < MAX_ITERATIONS));
crypto/openssl/crypto/bn/bn_gf2m.c
1064
if (BN_is_zero(w)) {
crypto/openssl/crypto/bn/bn_gf2m.c
1070
if (!BN_GF2m_mod_sqr_arr(w, z, p, ctx))
crypto/openssl/crypto/bn/bn_gf2m.c
1072
if (!BN_GF2m_add(w, z, w))
crypto/openssl/crypto/bn/bn_gf2m.c
1074
if (BN_GF2m_cmp(w, a)) {
crypto/openssl/crypto/bn/bn_gf2m.c
26
#define SQR_nibble(w) ((((w) & 8) << 3) \
crypto/openssl/crypto/bn/bn_gf2m.c
27
| (((w) & 4) << 2) \
crypto/openssl/crypto/bn/bn_gf2m.c
28
| (((w) & 2) << 1) \
crypto/openssl/crypto/bn/bn_gf2m.c
29
| ((w) & 1))
crypto/openssl/crypto/bn/bn_gf2m.c
33
#define SQR1(w) \
crypto/openssl/crypto/bn/bn_gf2m.c
34
SQR_nibble((w) >> 60) << 56 | SQR_nibble((w) >> 56) << 48 | SQR_nibble((w) >> 52) << 40 | SQR_nibble((w) >> 48) << 32 | SQR_nibble((w) >> 44) << 24 | SQR_nibble((w) >> 40) << 16 | SQR_nibble((w) >> 36) << 8 | SQR_nibble((w) >> 32)
crypto/openssl/crypto/bn/bn_gf2m.c
35
#define SQR0(w) \
crypto/openssl/crypto/bn/bn_gf2m.c
36
SQR_nibble((w) >> 28) << 56 | SQR_nibble((w) >> 24) << 48 | SQR_nibble((w) >> 20) << 40 | SQR_nibble((w) >> 16) << 32 | SQR_nibble((w) >> 12) << 24 | SQR_nibble((w) >> 8) << 16 | SQR_nibble((w) >> 4) << 8 | SQR_nibble((w))
crypto/openssl/crypto/bn/bn_gf2m.c
39
#define SQR1(w) \
crypto/openssl/crypto/bn/bn_gf2m.c
40
SQR_nibble((w) >> 28) << 24 | SQR_nibble((w) >> 24) << 16 | SQR_nibble((w) >> 20) << 8 | SQR_nibble((w) >> 16)
crypto/openssl/crypto/bn/bn_gf2m.c
41
#define SQR0(w) \
crypto/openssl/crypto/bn/bn_gf2m.c
42
SQR_nibble((w) >> 12) << 24 | SQR_nibble((w) >> 8) << 16 | SQR_nibble((w) >> 4) << 8 | SQR_nibble((w))
crypto/openssl/crypto/bn/bn_gf2m.c
995
BIGNUM *a, *z, *rho, *w, *w2, *tmp;
crypto/openssl/crypto/bn/bn_intern.c
117
window_val += bit * BN_is_bit_set(scalar, j + w);
crypto/openssl/crypto/bn/bn_intern.c
22
signed char *bn_compute_wNAF(const BIGNUM *scalar, int w, size_t *ret_len)
crypto/openssl/crypto/bn/bn_intern.c
39
if (w <= 0 || w > 7) { /* 'signed char' can represent integers with
crypto/openssl/crypto/bn/bn_intern.c
44
bit = 1 << w; /* at most 128 */
crypto/openssl/crypto/bn/bn_intern.c
67
while ((window_val != 0) || (j + w + 1 < len)) { /* if j+w+1 >= len,
crypto/openssl/crypto/bn/bn_intern.c
81
if (j + w + 1 >= len) {
crypto/openssl/crypto/bn/bn_lib.c
1029
int BN_abs_is_word(const BIGNUM *a, const BN_ULONG w)
crypto/openssl/crypto/bn/bn_lib.c
1031
return ((a->top == 1) && (a->d[0] == w)) || ((w == 0) && (a->top == 0));
crypto/openssl/crypto/bn/bn_lib.c
1044
int BN_is_word(const BIGNUM *a, const BN_ULONG w)
crypto/openssl/crypto/bn/bn_lib.c
1046
return BN_abs_is_word(a, w) && (!w || !a->neg);
crypto/openssl/crypto/bn/bn_lib.c
1049
int ossl_bn_is_word_fixed_top(const BIGNUM *a, const BN_ULONG w)
crypto/openssl/crypto/bn/bn_lib.c
1057
res = constant_time_select_int(constant_time_eq_bn(ap[0], w), 1, 0);
crypto/openssl/crypto/bn/bn_lib.c
413
int BN_set_word(BIGNUM *a, BN_ULONG w)
crypto/openssl/crypto/bn/bn_lib.c
419
a->d[0] = w;
crypto/openssl/crypto/bn/bn_lib.c
420
a->top = (w ? 1 : 0);
crypto/openssl/crypto/bn/bn_lib.c
846
int b, w;
crypto/openssl/crypto/bn/bn_lib.c
851
w = n / BN_BITS2;
crypto/openssl/crypto/bn/bn_lib.c
853
if (w >= a->top)
crypto/openssl/crypto/bn/bn_lib.c
856
a->top = w;
crypto/openssl/crypto/bn/bn_lib.c
858
a->top = w + 1;
crypto/openssl/crypto/bn/bn_lib.c
859
a->d[w] &= ~(BN_MASK2 << b);
crypto/openssl/crypto/bn/bn_local.h
231
BN_ULONG w);
crypto/openssl/crypto/bn/bn_local.h
232
BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w);
crypto/openssl/crypto/bn/bn_local.h
476
#define mul_add(r, a, w, c) \
crypto/openssl/crypto/bn/bn_local.h
479
t = (BN_ULLONG)w * (a) + (r) + (c); \
crypto/openssl/crypto/bn/bn_local.h
484
#define mul(r, a, w, c) \
crypto/openssl/crypto/bn/bn_local.h
487
t = (BN_ULLONG)w * (a) + (c); \
crypto/openssl/crypto/bn/bn_local.h
501
#define mul_add(r, a, w, c) \
crypto/openssl/crypto/bn/bn_local.h
505
BN_UMULT_LOHI(low, high, w, tmp); \
crypto/openssl/crypto/bn/bn_local.h
514
#define mul(r, a, w, c) \
crypto/openssl/crypto/bn/bn_local.h
517
BN_UMULT_LOHI(low, high, w, ta); \
crypto/openssl/crypto/bn/bn_local.h
531
#define mul_add(r, a, w, c) \
crypto/openssl/crypto/bn/bn_local.h
535
high = BN_UMULT_HIGH(w, tmp); \
crypto/openssl/crypto/bn/bn_local.h
537
low = (w) * tmp; \
crypto/openssl/crypto/bn/bn_local.h
545
#define mul(r, a, w, c) \
crypto/openssl/crypto/bn/bn_local.h
548
low = (w) * ta; \
crypto/openssl/crypto/bn/bn_local.h
549
high = BN_UMULT_HIGH(w, ta); \
crypto/openssl/crypto/bn/bn_local.h
690
int ossl_bn_check_prime(const BIGNUM *w, int checks, BN_CTX *ctx,
crypto/openssl/crypto/bn/bn_prime.c
234
int BN_is_prime_fasttest_ex(const BIGNUM *w, int checks, BN_CTX *ctx,
crypto/openssl/crypto/bn/bn_prime.c
237
return ossl_bn_check_prime(w, checks, ctx, do_trial_division, cb);
crypto/openssl/crypto/bn/bn_prime.c
242
int ossl_bn_check_prime(const BIGNUM *w, int checks, BN_CTX *ctx,
crypto/openssl/crypto/bn/bn_prime.c
245
int min_checks = bn_mr_min_checks(BN_num_bits(w));
crypto/openssl/crypto/bn/bn_prime.c
250
return bn_is_prime_int(w, checks, ctx, do_trial_division, cb);
crypto/openssl/crypto/bn/bn_prime.c
258
int ossl_bn_check_generated_prime(const BIGNUM *w, int checks, BN_CTX *ctx,
crypto/openssl/crypto/bn/bn_prime.c
261
return bn_is_prime_int(w, checks, ctx, 1, cb);
crypto/openssl/crypto/bn/bn_prime.c
27
static int bn_is_prime_int(const BIGNUM *w, int checks, BN_CTX *ctx,
crypto/openssl/crypto/bn/bn_prime.c
275
static int bn_is_prime_int(const BIGNUM *w, int checks, BN_CTX *ctx,
crypto/openssl/crypto/bn/bn_prime.c
288
if (BN_cmp(w, BN_value_one()) <= 0)
crypto/openssl/crypto/bn/bn_prime.c
292
if (BN_is_odd(w)) {
crypto/openssl/crypto/bn/bn_prime.c
294
if (BN_is_word(w, 3))
crypto/openssl/crypto/bn/bn_prime.c
298
return BN_is_word(w, 2);
crypto/openssl/crypto/bn/bn_prime.c
303
int trial_divisions = calc_trial_divisions(BN_num_bits(w));
crypto/openssl/crypto/bn/bn_prime.c
306
BN_ULONG mod = BN_mod_word(w, primes[i]);
crypto/openssl/crypto/bn/bn_prime.c
310
return BN_is_word(w, primes[i]);
crypto/openssl/crypto/bn/bn_prime.c
320
if (!ossl_bn_miller_rabin_is_prime(w, checks, ctx, cb, 0, &status)) {
crypto/openssl/crypto/bn/bn_prime.c
347
int ossl_bn_miller_rabin_is_prime(const BIGNUM *w, int iterations, BN_CTX *ctx,
crypto/openssl/crypto/bn/bn_prime.c
355
if (!BN_is_odd(w))
crypto/openssl/crypto/bn/bn_prime.c
369
&& BN_copy(w1, w)
crypto/openssl/crypto/bn/bn_prime.c
372
&& BN_copy(w3, w)
crypto/openssl/crypto/bn/bn_prime.c
390
if (mont == NULL || !BN_MONT_CTX_set(mont, w, ctx))
crypto/openssl/crypto/bn/bn_prime.c
394
iterations = bn_mr_min_checks(BN_num_bits(w));
crypto/openssl/crypto/bn/bn_prime.c
405
if (!BN_gcd(g, b, w, ctx))
crypto/openssl/crypto/bn/bn_prime.c
415
if (!BN_mod_exp_mont(z, b, m, w, ctx, mont))
crypto/openssl/crypto/bn/bn_prime.c
423
if (!BN_copy(x, z) || !BN_mod_mul(z, x, x, w, ctx))
crypto/openssl/crypto/bn/bn_prime.c
434
if (!BN_copy(x, z) || !BN_mod_mul(z, x, x, w, ctx))
crypto/openssl/crypto/bn/bn_prime.c
445
if (!BN_sub_word(x, 1) || !BN_gcd(g, x, w, ctx))
crypto/openssl/crypto/bn/bn_word.c
103
w &= BN_MASK2;
crypto/openssl/crypto/bn/bn_word.c
106
if (!w)
crypto/openssl/crypto/bn/bn_word.c
110
return BN_set_word(a, w);
crypto/openssl/crypto/bn/bn_word.c
114
i = BN_sub_word(a, w);
crypto/openssl/crypto/bn/bn_word.c
119
for (i = 0; w != 0 && i < a->top; i++) {
crypto/openssl/crypto/bn/bn_word.c
120
a->d[i] = l = (a->d[i] + w) & BN_MASK2;
crypto/openssl/crypto/bn/bn_word.c
121
w = (w > l) ? 1 : 0;
crypto/openssl/crypto/bn/bn_word.c
123
if (w && i == a->top) {
crypto/openssl/crypto/bn/bn_word.c
127
a->d[i] = w;
crypto/openssl/crypto/bn/bn_word.c
13
BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w)
crypto/openssl/crypto/bn/bn_word.c
133
int BN_sub_word(BIGNUM *a, BN_ULONG w)
crypto/openssl/crypto/bn/bn_word.c
138
w &= BN_MASK2;
crypto/openssl/crypto/bn/bn_word.c
141
if (!w)
crypto/openssl/crypto/bn/bn_word.c
145
i = BN_set_word(a, w);
crypto/openssl/crypto/bn/bn_word.c
153
i = BN_add_word(a, w);
crypto/openssl/crypto/bn/bn_word.c
158
if ((a->top == 1) && (a->d[0] < w)) {
crypto/openssl/crypto/bn/bn_word.c
159
a->d[0] = w - a->d[0];
crypto/openssl/crypto/bn/bn_word.c
165
if (a->d[i] >= w) {
crypto/openssl/crypto/bn/bn_word.c
166
a->d[i] -= w;
crypto/openssl/crypto/bn/bn_word.c
169
a->d[i] = (a->d[i] - w) & BN_MASK2;
crypto/openssl/crypto/bn/bn_word.c
171
w = 1;
crypto/openssl/crypto/bn/bn_word.c
180
int BN_mul_word(BIGNUM *a, BN_ULONG w)
crypto/openssl/crypto/bn/bn_word.c
185
w &= BN_MASK2;
crypto/openssl/crypto/bn/bn_word.c
187
if (w == 0)
crypto/openssl/crypto/bn/bn_word.c
190
ll = bn_mul_words(a->d, a->d, a->top, w);
crypto/openssl/crypto/bn/bn_word.c
22
if (w == 0)
crypto/openssl/crypto/bn/bn_word.c
30
if (w > ((BN_ULONG)1 << BN_BITS4)) {
crypto/openssl/crypto/bn/bn_word.c
35
ret = BN_div_word(tmp, w);
crypto/openssl/crypto/bn/bn_word.c
43
w &= BN_MASK2;
crypto/openssl/crypto/bn/bn_word.c
51
ret = ((ret << BN_BITS4) | ((a->d[i] >> BN_BITS4) & BN_MASK2l)) % w;
crypto/openssl/crypto/bn/bn_word.c
52
ret = ((ret << BN_BITS4) | (a->d[i] & BN_MASK2l)) % w;
crypto/openssl/crypto/bn/bn_word.c
54
ret = (BN_ULLONG)(((ret << (BN_ULLONG)BN_BITS2) | a->d[i]) % (BN_ULLONG)w);
crypto/openssl/crypto/bn/bn_word.c
60
BN_ULONG BN_div_word(BIGNUM *a, BN_ULONG w)
crypto/openssl/crypto/bn/bn_word.c
66
w &= BN_MASK2;
crypto/openssl/crypto/bn/bn_word.c
68
if (!w)
crypto/openssl/crypto/bn/bn_word.c
75
j = BN_BITS2 - BN_num_bits_word(w);
crypto/openssl/crypto/bn/bn_word.c
76
w <<= j;
crypto/openssl/crypto/bn/bn_word.c
84
d = bn_div_words(ret, l, w);
crypto/openssl/crypto/bn/bn_word.c
85
ret = (l - ((d * w) & BN_MASK2)) & BN_MASK2;
crypto/openssl/crypto/bn/bn_word.c
97
int BN_add_word(BIGNUM *a, BN_ULONG w)
crypto/openssl/crypto/cast/cast_local.h
129
CAST_LONG u, v, w; \
crypto/openssl/crypto/cast/cast_local.h
130
w = (key[n * 2] OP1 R) & 0xffffffffL; \
crypto/openssl/crypto/cast/cast_local.h
132
w = ROTL(w, i); \
crypto/openssl/crypto/cast/cast_local.h
133
u = w >> C_2; \
crypto/openssl/crypto/cast/cast_local.h
134
v = w << C_3; \
crypto/openssl/crypto/cast/cast_local.h
138
u = w >> C_0; \
crypto/openssl/crypto/cast/cast_local.h
140
v = w >> C_1; \
crypto/openssl/crypto/ec/curve25519.c
2003
fe w;
crypto/openssl/crypto/ec/curve25519.c
2014
fe_mul(w, u, v); /* w = u*v */
crypto/openssl/crypto/ec/curve25519.c
2016
fe_pow22523(h->X, w); /* x = w^((q-5)/8) */
crypto/openssl/crypto/ec/curve448/curve448.c
554
unsigned int w;
crypto/openssl/crypto/ec/curve448/curve448.c
569
for (w = 1; w < (C448_SCALAR_BITS - 1) / 16 + 3; w++) {
crypto/openssl/crypto/ec/curve448/curve448.c
570
if (w < (C448_SCALAR_BITS - 1) / 16 + 1) {
crypto/openssl/crypto/ec/curve448/curve448.c
572
current += (uint32_t)((scalar->limb[w / B_OVER_16]
crypto/openssl/crypto/ec/curve448/curve448.c
573
>> (16 * (w % B_OVER_16)))
crypto/openssl/crypto/ec/curve448/curve448.c
593
control[position].power = pos + 16 * (w - 1);
crypto/openssl/crypto/ec/curve448/field.h
121
static ossl_inline void gf_mulw(gf c, const gf a, int32_t w)
crypto/openssl/crypto/ec/curve448/field.h
123
if (w > 0) {
crypto/openssl/crypto/ec/curve448/field.h
124
ossl_gf_mulw_unsigned(c, a, w);
crypto/openssl/crypto/ec/curve448/field.h
126
ossl_gf_mulw_unsigned(c, a, -w);
crypto/openssl/crypto/ec/ec_mult.c
279
#define EC_POINT_CSWAP(c, a, b, w, t) \
crypto/openssl/crypto/ec/ec_mult.c
281
BN_consttime_swap(c, (a)->X, (b)->X, w); \
crypto/openssl/crypto/ec/ec_mult.c
282
BN_consttime_swap(c, (a)->Y, (b)->Y, w); \
crypto/openssl/crypto/ec/ec_mult.c
283
BN_consttime_swap(c, (a)->Z, (b)->Z, w); \
crypto/openssl/crypto/ec/ec_mult.c
42
size_t w; /* window size */
crypto/openssl/crypto/ec/ec_mult.c
487
pre_points_per_block = (size_t)1 << (pre_comp->w - 1);
crypto/openssl/crypto/ec/ec_mult.c
559
wsize[num] = pre_comp->w;
crypto/openssl/crypto/ec/ec_mult.c
63
ret->w = 4; /* default */
crypto/openssl/crypto/ec/ec_mult.c
777
signed char **w;
crypto/openssl/crypto/ec/ec_mult.c
779
for (w = wNAF; *w != NULL; w++)
crypto/openssl/crypto/ec/ec_mult.c
780
OPENSSL_free(*w);
crypto/openssl/crypto/ec/ec_mult.c
819
size_t i, bits, w, pre_points_per_block, blocksize, numblocks, num;
crypto/openssl/crypto/ec/ec_mult.c
865
w = 4;
crypto/openssl/crypto/ec/ec_mult.c
866
if (EC_window_bits_for_scalar_size(bits) > w) {
crypto/openssl/crypto/ec/ec_mult.c
868
w = EC_window_bits_for_scalar_size(bits);
crypto/openssl/crypto/ec/ec_mult.c
875
pre_points_per_block = (size_t)1 << (w - 1);
crypto/openssl/crypto/ec/ec_mult.c
946
pre_comp->w = w;
crypto/openssl/crypto/ec/ecp_nistz256.c
1201
ret->w = 6; /* default */
crypto/openssl/crypto/ec/ecp_nistz256.c
61
size_t w; /* Window size */
crypto/openssl/crypto/ec/ecp_nistz256.c
809
size_t w;
crypto/openssl/crypto/ec/ecp_nistz256.c
850
w = 7;
crypto/openssl/crypto/ec/ecp_nistz256.c
896
pre_comp->w = w;
crypto/openssl/crypto/evp/e_aes.c
1327
unsigned int w[4];
crypto/openssl/crypto/evp/e_aes.c
1388
buf.w[0] = ctx->kma.param.j0.w[0];
crypto/openssl/crypto/evp/e_aes.c
1389
buf.w[1] = ctx->kma.param.j0.w[1];
crypto/openssl/crypto/evp/e_aes.c
1390
buf.w[2] = ctx->kma.param.j0.w[2];
crypto/openssl/crypto/evp/e_aes.c
1391
buf.w[3] = ctx->kma.param.cv.w + 1;
crypto/openssl/crypto/evp/e_aes.c
1422
ctx->kma.param.j0.w[3] = 1;
crypto/openssl/crypto/evp/e_aes.c
1423
ctx->kma.param.cv.w = 1;
crypto/openssl/crypto/evp/e_aes.c
1433
ctx->kma.param.cv.w = ctx->kma.param.j0.w[3];
crypto/openssl/crypto/evp/e_aes.c
924
unsigned int w;
crypto/openssl/crypto/evp/e_aes.c
936
unsigned int w[4];
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
165
uint32_t v, w, mask = 0x3ff; /* 10 bits */
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
173
w = *in;
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
178
*out++ = (v >> 30) | (w << 2);
crypto/openssl/crypto/ml_dsa/ml_dsa_key_compress.c
134
uint32_t gamma2, uint32_t w)
crypto/openssl/crypto/ml_dsa/ml_dsa_key_compress.c
136
uint32_t r_plus_z = mod_sub(w, cs2);
crypto/openssl/crypto/ml_dsa/ml_dsa_local.h
88
uint32_t gamma2, uint32_t w);
crypto/openssl/crypto/ml_dsa/ml_dsa_poly.h
139
poly_make_hint(const POLY *ct0, const POLY *cs2, const POLY *w, uint32_t gamma2,
crypto/openssl/crypto/ml_dsa/ml_dsa_poly.h
147
gamma2, w->coeff[i]);
crypto/openssl/crypto/ml_dsa/ml_dsa_sign.c
100
vector_init(&w1, w.poly + k, k);
crypto/openssl/crypto/ml_dsa/ml_dsa_sign.c
148
matrix_mult_vector(&a_ntt, y_ntt, &w);
crypto/openssl/crypto/ml_dsa/ml_dsa_sign.c
149
vector_ntt_inverse(&w);
crypto/openssl/crypto/ml_dsa/ml_dsa_sign.c
151
vector_high_bits(&w, gamma2, &w1);
crypto/openssl/crypto/ml_dsa/ml_dsa_sign.c
170
vector_sub(&w, &cs2, r0);
crypto/openssl/crypto/ml_dsa/ml_dsa_sign.c
185
vector_make_hint(ct0, &cs2, &w, gamma2, &sig.hint);
crypto/openssl/crypto/ml_dsa/ml_dsa_sign.c
67
VECTOR s1_ntt, s2_ntt, t0_ntt, w, w1, cs1, cs2, y;
crypto/openssl/crypto/ml_dsa/ml_dsa_sign.c
99
vector_init(&w, t0_ntt.poly + k, k);
crypto/openssl/crypto/ml_dsa/ml_dsa_vector.h
236
vector_make_hint(const VECTOR *ct0, const VECTOR *cs2, const VECTOR *w,
crypto/openssl/crypto/ml_dsa/ml_dsa_vector.h
242
poly_make_hint(ct0->poly + i, cs2->poly + i, w->poly + i, gamma2,
crypto/openssl/crypto/punycode.c
151
unsigned int w = 1;
crypto/openssl/crypto/punycode.c
164
if ((unsigned int)digit > (maxint - i) / w)
crypto/openssl/crypto/punycode.c
167
i = i + digit * w;
crypto/openssl/crypto/punycode.c
174
if (w > maxint / (base - t))
crypto/openssl/crypto/punycode.c
176
w = w * (base - t);
crypto/openssl/crypto/ripemd/rmd_local.h
100
a += F5(b, c, d) + X(w) + K; \
crypto/openssl/crypto/ripemd/rmd_local.h
70
#define RIP1(a, b, c, d, e, w, s) \
crypto/openssl/crypto/ripemd/rmd_local.h
72
a += F1(b, c, d) + X(w); \
crypto/openssl/crypto/ripemd/rmd_local.h
77
#define RIP2(a, b, c, d, e, w, s, K) \
crypto/openssl/crypto/ripemd/rmd_local.h
79
a += F2(b, c, d) + X(w) + K; \
crypto/openssl/crypto/ripemd/rmd_local.h
84
#define RIP3(a, b, c, d, e, w, s, K) \
crypto/openssl/crypto/ripemd/rmd_local.h
86
a += F3(b, c, d) + X(w) + K; \
crypto/openssl/crypto/ripemd/rmd_local.h
91
#define RIP4(a, b, c, d, e, w, s, K) \
crypto/openssl/crypto/ripemd/rmd_local.h
93
a += F4(b, c, d) + X(w) + K; \
crypto/openssl/crypto/ripemd/rmd_local.h
98
#define RIP5(a, b, c, d, e, w, s, K) \
crypto/openssl/crypto/sha/keccak1600.c
1099
size_t i, w = r / 8;
crypto/openssl/crypto/sha/keccak1600.c
1104
for (i = 0; i < w; i++) {
crypto/openssl/crypto/sha/keccak1600.c
1130
size_t i, w = r / 8;
crypto/openssl/crypto/sha/keccak1600.c
1138
for (i = 0; i < w && len != 0; i++) {
crypto/openssl/doc/designs/ddd/ddd-06-mem-uv.c
445
op->w.data = op;
crypto/openssl/doc/designs/ddd/ddd-06-mem-uv.c
450
rc = uv_udp_send(&op->w, &conn->udp, &op->b, 1, NULL, net_write_done);
crypto/openssl/doc/designs/ddd/ddd-06-mem-uv.c
452
rc = uv_write(&op->w, conn->stream, &op->b, 1, net_write_done);
crypto/openssl/doc/designs/ddd/ddd-06-mem-uv.c
58
uv_udp_send_t w;
crypto/openssl/doc/designs/ddd/ddd-06-mem-uv.c
60
uv_write_t w;
crypto/openssl/engines/e_loader_attic.c
121
static int file_get_pem_pass(char *buf, int num, int w, void *data)
crypto/openssl/include/crypto/bn.h
107
int ossl_bn_miller_rabin_is_prime(const BIGNUM *w, int iterations, BN_CTX *ctx,
crypto/openssl/include/crypto/bn.h
109
int ossl_bn_check_generated_prime(const BIGNUM *w, int checks, BN_CTX *ctx,
crypto/openssl/include/crypto/bn.h
30
signed char *bn_compute_wNAF(const BIGNUM *scalar, int w, size_t *ret_len);
crypto/openssl/include/crypto/bn.h
94
int ossl_bn_is_word_fixed_top(const BIGNUM *a, const BN_ULONG w);
crypto/openssl/include/internal/quic_reactor.h
161
const BIO_POLL_DESCRIPTOR *w);
crypto/openssl/include/openssl/bn.h
190
int BN_abs_is_word(const BIGNUM *a, const BN_ULONG w);
crypto/openssl/include/openssl/bn.h
193
int BN_is_word(const BIGNUM *a, const BN_ULONG w);
crypto/openssl/include/openssl/bn.h
295
BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w);
crypto/openssl/include/openssl/bn.h
296
BN_ULONG BN_div_word(BIGNUM *a, BN_ULONG w);
crypto/openssl/include/openssl/bn.h
297
int BN_mul_word(BIGNUM *a, BN_ULONG w);
crypto/openssl/include/openssl/bn.h
298
int BN_add_word(BIGNUM *a, BN_ULONG w);
crypto/openssl/include/openssl/bn.h
299
int BN_sub_word(BIGNUM *a, BN_ULONG w);
crypto/openssl/include/openssl/bn.h
300
int BN_set_word(BIGNUM *a, BN_ULONG w);
crypto/openssl/providers/implementations/digests/blake2_impl.h
102
p[0] = (uint8_t)w;
crypto/openssl/providers/implementations/digests/blake2_impl.h
103
p[1] = (uint8_t)(w >> 8);
crypto/openssl/providers/implementations/digests/blake2_impl.h
104
p[2] = (uint8_t)(w >> 16);
crypto/openssl/providers/implementations/digests/blake2_impl.h
105
p[3] = (uint8_t)(w >> 24);
crypto/openssl/providers/implementations/digests/blake2_impl.h
106
p[4] = (uint8_t)(w >> 32);
crypto/openssl/providers/implementations/digests/blake2_impl.h
107
p[5] = (uint8_t)(w >> 40);
crypto/openssl/providers/implementations/digests/blake2_impl.h
110
static ossl_inline uint32_t rotr32(const uint32_t w, const unsigned int c)
crypto/openssl/providers/implementations/digests/blake2_impl.h
112
return (w >> c) | (w << (32 - c));
crypto/openssl/providers/implementations/digests/blake2_impl.h
115
static ossl_inline uint64_t rotr64(const uint64_t w, const unsigned int c)
crypto/openssl/providers/implementations/digests/blake2_impl.h
117
return (w >> c) | (w << (64 - c));
crypto/openssl/providers/implementations/digests/blake2_impl.h
25
uint32_t w;
crypto/openssl/providers/implementations/digests/blake2_impl.h
26
memcpy(&w, src, sizeof(w));
crypto/openssl/providers/implementations/digests/blake2_impl.h
27
return w;
crypto/openssl/providers/implementations/digests/blake2_impl.h
29
uint32_t w = ((uint32_t)src[0])
crypto/openssl/providers/implementations/digests/blake2_impl.h
33
return w;
crypto/openssl/providers/implementations/digests/blake2_impl.h
42
uint64_t w;
crypto/openssl/providers/implementations/digests/blake2_impl.h
43
memcpy(&w, src, sizeof(w));
crypto/openssl/providers/implementations/digests/blake2_impl.h
44
return w;
crypto/openssl/providers/implementations/digests/blake2_impl.h
46
uint64_t w = ((uint64_t)src[0])
crypto/openssl/providers/implementations/digests/blake2_impl.h
54
return w;
crypto/openssl/providers/implementations/digests/blake2_impl.h
58
static ossl_inline void store32(uint8_t *dst, uint32_t w)
crypto/openssl/providers/implementations/digests/blake2_impl.h
63
memcpy(dst, &w, sizeof(w));
crypto/openssl/providers/implementations/digests/blake2_impl.h
69
p[i] = (uint8_t)(w >> (8 * i));
crypto/openssl/providers/implementations/digests/blake2_impl.h
73
static ossl_inline void store64(uint8_t *dst, uint64_t w)
crypto/openssl/providers/implementations/digests/blake2_impl.h
78
memcpy(dst, &w, sizeof(w));
crypto/openssl/providers/implementations/digests/blake2_impl.h
84
p[i] = (uint8_t)(w >> (8 * i));
crypto/openssl/providers/implementations/digests/blake2_impl.h
90
uint64_t w = ((uint64_t)src[0])
crypto/openssl/providers/implementations/digests/blake2_impl.h
96
return w;
crypto/openssl/providers/implementations/digests/blake2_impl.h
99
static ossl_inline void store48(uint8_t *dst, uint64_t w)
crypto/openssl/providers/implementations/encode_decode/decode_pem2der.c
114
static int pem2der_pass_helper(char *buf, int num, int w, void *data)
crypto/openssl/providers/implementations/include/prov/ciphercommon_gcm.h
32
unsigned int w;
crypto/openssl/providers/implementations/include/prov/ciphercommon_gcm.h
44
unsigned int w[4];
crypto/openssl/providers/implementations/kdfs/argon2.c
224
static ossl_inline void store32(uint8_t *dst, uint32_t w);
crypto/openssl/providers/implementations/kdfs/argon2.c
225
static ossl_inline void store64(uint8_t *dst, uint64_t w);
crypto/openssl/providers/implementations/kdfs/argon2.c
226
static ossl_inline uint64_t rotr64(const uint64_t w, const unsigned int c);
crypto/openssl/providers/implementations/kdfs/argon2.c
279
static ossl_inline void store32(uint8_t *dst, uint32_t w)
crypto/openssl/providers/implementations/kdfs/argon2.c
281
dst[0] = (uint8_t)(w >> 0);
crypto/openssl/providers/implementations/kdfs/argon2.c
282
dst[1] = (uint8_t)(w >> 8);
crypto/openssl/providers/implementations/kdfs/argon2.c
283
dst[2] = (uint8_t)(w >> 16);
crypto/openssl/providers/implementations/kdfs/argon2.c
284
dst[3] = (uint8_t)(w >> 24);
crypto/openssl/providers/implementations/kdfs/argon2.c
287
static ossl_inline void store64(uint8_t *dst, uint64_t w)
crypto/openssl/providers/implementations/kdfs/argon2.c
289
dst[0] = (uint8_t)(w >> 0);
crypto/openssl/providers/implementations/kdfs/argon2.c
290
dst[1] = (uint8_t)(w >> 8);
crypto/openssl/providers/implementations/kdfs/argon2.c
291
dst[2] = (uint8_t)(w >> 16);
crypto/openssl/providers/implementations/kdfs/argon2.c
292
dst[3] = (uint8_t)(w >> 24);
crypto/openssl/providers/implementations/kdfs/argon2.c
293
dst[4] = (uint8_t)(w >> 32);
crypto/openssl/providers/implementations/kdfs/argon2.c
294
dst[5] = (uint8_t)(w >> 40);
crypto/openssl/providers/implementations/kdfs/argon2.c
295
dst[6] = (uint8_t)(w >> 48);
crypto/openssl/providers/implementations/kdfs/argon2.c
296
dst[7] = (uint8_t)(w >> 56);
crypto/openssl/providers/implementations/kdfs/argon2.c
299
static ossl_inline uint64_t rotr64(const uint64_t w, const unsigned int c)
crypto/openssl/providers/implementations/kdfs/argon2.c
301
return (w >> c) | (w << (64 - c));
crypto/openssl/providers/implementations/macs/kmac_prov.c
148
size_t w);
crypto/openssl/providers/implementations/macs/kmac_prov.c
152
size_t w);
crypto/openssl/providers/implementations/macs/kmac_prov.c
266
int w = EVP_MD_get_block_size(digest);
crypto/openssl/providers/implementations/macs/kmac_prov.c
291
if (w <= 0) {
crypto/openssl/providers/implementations/macs/kmac_prov.c
296
key, keylen, (size_t)w))
crypto/openssl/providers/implementations/macs/kmac_prov.c
600
const unsigned char *in2, size_t in2_len, size_t w)
crypto/openssl/providers/implementations/macs/kmac_prov.c
604
int sz = w;
crypto/openssl/providers/implementations/macs/kmac_prov.c
612
*out_len = (sz + w - 1) / w * w;
crypto/openssl/providers/implementations/macs/kmac_prov.c
616
if (!ossl_assert(w <= 255))
crypto/openssl/providers/implementations/macs/kmac_prov.c
621
*p++ = (unsigned char)w;
crypto/openssl/providers/implementations/macs/kmac_prov.c
632
sz = (len + w - 1) / w * w;
crypto/openssl/providers/implementations/macs/kmac_prov.c
645
size_t w)
crypto/openssl/providers/implementations/macs/kmac_prov.c
652
if (!bytepad(NULL, out_len, tmp, tmp_len, NULL, 0, w))
crypto/openssl/providers/implementations/macs/kmac_prov.c
656
return bytepad(out, NULL, tmp, tmp_len, NULL, 0, w);
crypto/openssl/ssl/quic/quic_impl.c
2416
int w;
crypto/openssl/ssl/quic/quic_impl.c
2423
w = error_to_want(ctx.is_stream ? ctx.xso->last_error : ctx.qc->last_error);
crypto/openssl/ssl/quic/quic_impl.c
2426
return w;
crypto/openssl/ssl/quic/quic_reactor.c
121
void ossl_quic_reactor_set_poll_w(QUIC_REACTOR *rtor, const BIO_POLL_DESCRIPTOR *w)
crypto/openssl/ssl/quic/quic_reactor.c
123
if (w == NULL)
crypto/openssl/ssl/quic/quic_reactor.c
126
rtor->poll_w = *w;
crypto/openssl/ssl/quic/quic_reactor.c
430
const BIO_POLL_DESCRIPTOR *w, int w_want_write,
crypto/openssl/ssl/quic/quic_reactor.c
438
|| !poll_descriptor_to_fd(w, &wfd))
crypto/openssl/ssl/s3_lib.c
3739
const unsigned char *v, size_t w, int x)
crypto/openssl/ssl/s3_lib.c
3746
(void)w;
crypto/openssl/ssl/ssl_lib.c
65
const unsigned char *v, size_t w, int x)
crypto/openssl/test/bioprinttest.c
177
const char *w;
crypto/openssl/test/bioprinttest.c
232
r = TEST_true(dofptest(i, t++, 0.0, pwp->w, pwp->p))
crypto/openssl/test/bioprinttest.c
233
&& TEST_true(dofptest(i, t++, 0.67, pwp->w, pwp->p))
crypto/openssl/test/bioprinttest.c
234
&& TEST_true(dofptest(i, t++, frac, pwp->w, pwp->p))
crypto/openssl/test/bioprinttest.c
235
&& TEST_true(dofptest(i, t++, frac / 1000, pwp->w, pwp->p))
crypto/openssl/test/bioprinttest.c
236
&& TEST_true(dofptest(i, t++, frac / 10000, pwp->w, pwp->p))
crypto/openssl/test/bioprinttest.c
237
&& TEST_true(dofptest(i, t++, 6.0 + frac, pwp->w, pwp->p))
crypto/openssl/test/bioprinttest.c
238
&& TEST_true(dofptest(i, t++, 66.0 + frac, pwp->w, pwp->p))
crypto/openssl/test/bioprinttest.c
239
&& TEST_true(dofptest(i, t++, 666.0 + frac, pwp->w, pwp->p))
crypto/openssl/test/bioprinttest.c
240
&& TEST_true(dofptest(i, t++, 6666.0 + frac, pwp->w, pwp->p))
crypto/openssl/test/bioprinttest.c
241
&& TEST_true(dofptest(i, t++, 66666.0 + frac, pwp->w, pwp->p))
crypto/openssl/test/bioprinttest.c
242
&& TEST_true(dofptest(i, t++, -66666.0 - frac, pwp->w, pwp->p));
crypto/openssl/test/helpers/quictestlib.c
1089
size_t newlen, w;
crypto/openssl/test/helpers/quictestlib.c
1115
|| !WPACKET_get_total_written(&old_ext_wpkt, &w)) {
crypto/openssl/test/helpers/quictestlib.c
1121
old_ext->length = w;
crypto/openssl/test/json_test.c
552
struct script_word w;
crypto/openssl/test/json_test.c
558
#define GET_WORD() (w = words[wp++])
crypto/openssl/test/quic_multistream_test.c
1018
int w = SSL_want(s);
crypto/openssl/test/quic_multistream_test.c
1021
(ec == SSL_ERROR_NONE && w == SSL_NOTHING)
crypto/openssl/test/quic_multistream_test.c
1022
|| (ec == SSL_ERROR_ZERO_RETURN && w == SSL_NOTHING)
crypto/openssl/test/quic_multistream_test.c
1023
|| (ec == SSL_ERROR_SSL && w == SSL_NOTHING)
crypto/openssl/test/quic_multistream_test.c
1024
|| (ec == SSL_ERROR_SYSCALL && w == SSL_NOTHING)
crypto/openssl/test/quic_multistream_test.c
1025
|| (ec == SSL_ERROR_WANT_READ && w == SSL_READING)
crypto/openssl/test/quic_multistream_test.c
1026
|| (ec == SSL_ERROR_WANT_WRITE && w == SSL_WRITING)
crypto/openssl/test/quic_multistream_test.c
1027
|| (ec == SSL_ERROR_WANT_CLIENT_HELLO_CB && w == SSL_CLIENT_HELLO_CB)
crypto/openssl/test/quic_multistream_test.c
1028
|| (ec == SSL_ERROR_WANT_X509_LOOKUP && w == SSL_X509_LOOKUP)
crypto/openssl/test/quic_multistream_test.c
1029
|| (ec == SSL_ERROR_WANT_RETRY_VERIFY && w == SSL_RETRY_VERIFY));
crypto/openssl/test/quic_multistream_test.c
1032
TEST_error("got error=%d, want=%d", ec, w);
crypto/openssl/test/radix/quic_ops.c
530
int w = SSL_want(s);
crypto/openssl/test/radix/quic_ops.c
533
(ec == SSL_ERROR_NONE && w == SSL_NOTHING)
crypto/openssl/test/radix/quic_ops.c
534
|| (ec == SSL_ERROR_ZERO_RETURN && w == SSL_NOTHING)
crypto/openssl/test/radix/quic_ops.c
535
|| (ec == SSL_ERROR_SSL && w == SSL_NOTHING)
crypto/openssl/test/radix/quic_ops.c
536
|| (ec == SSL_ERROR_SYSCALL && w == SSL_NOTHING)
crypto/openssl/test/radix/quic_ops.c
537
|| (ec == SSL_ERROR_WANT_READ && w == SSL_READING)
crypto/openssl/test/radix/quic_ops.c
538
|| (ec == SSL_ERROR_WANT_WRITE && w == SSL_WRITING)
crypto/openssl/test/radix/quic_ops.c
539
|| (ec == SSL_ERROR_WANT_CLIENT_HELLO_CB && w == SSL_CLIENT_HELLO_CB)
crypto/openssl/test/radix/quic_ops.c
540
|| (ec == SSL_ERROR_WANT_X509_LOOKUP && w == SSL_X509_LOOKUP)
crypto/openssl/test/radix/quic_ops.c
541
|| (ec == SSL_ERROR_WANT_RETRY_VERIFY && w == SSL_RETRY_VERIFY));
crypto/openssl/test/radix/quic_ops.c
544
TEST_error("got error=%d, want=%d", ec, w);
crypto/openssl/test/testutil.h
399
const BIGNUM *a, BN_ULONG w);
crypto/openssl/test/testutil.h
401
const char *ws, const BIGNUM *a, BN_ULONG w);
crypto/openssl/test/testutil.h
538
#define TEST_BN_eq_word(a, w) test_BN_eq_word(__FILE__, __LINE__, #a, #w, a, w)
crypto/openssl/test/testutil.h
539
#define TEST_BN_abs_eq_word(a, w) test_BN_abs_eq_word(__FILE__, __LINE__, #a, #w, a, w)
crypto/openssl/test/testutil/tests.c
414
const BIGNUM *a, BN_ULONG w)
crypto/openssl/test/testutil/tests.c
418
if (a != NULL && BN_is_word(a, w))
crypto/openssl/test/testutil/tests.c
421
BN_set_word(bw, w);
crypto/openssl/test/testutil/tests.c
428
const char *ws, const BIGNUM *a, BN_ULONG w)
crypto/openssl/test/testutil/tests.c
432
if (a != NULL && BN_abs_is_word(a, w))
crypto/openssl/test/testutil/tests.c
437
BN_set_word(bw, w);
lib/libbsdstat/bsdstat.c
174
int i, w, width;
lib/libbsdstat/bsdstat.c
178
w = strlen(sf->stats[i].name);
lib/libbsdstat/bsdstat.c
179
if (w > width)
lib/libbsdstat/bsdstat.c
180
width = w;
lib/libc/gen/termios.c
276
tcgetwinsize(int fd, struct winsize *w)
lib/libc/gen/termios.c
279
return (_ioctl(fd, TIOCGWINSZ, w));
lib/libc/gen/termios.c
283
tcsetwinsize(int fd, const struct winsize *w)
lib/libc/gen/termios.c
286
return (_ioctl(fd, TIOCSWINSZ, w));
lib/libc/iconv/citrus_memstream.h
104
_citrus_memory_stream_seek(struct _citrus_memory_stream *ms, size_t pos, int w)
lib/libc/iconv/citrus_memstream.h
110
switch (w) {
lib/libc/locale/collate.c
754
wchar_t w, *wp;
lib/libc/locale/collate.c
770
l = mbrtowc(&w, src, slen, ps);
lib/libc/locale/collate.c
777
*wp++ = w;
lib/libc/locale/collate.c
830
wchar_t w, *wp;
lib/libc/locale/collate.c
841
l = mbrtowc(&w, src, slen, ps);
lib/libc/locale/collate.c
848
*wp++ = w;
lib/libc/locale/collate.c
903
wchar_t w;
lib/libc/locale/collate.c
930
l = mbrtowc(&w, s, sl, ps);
lib/libc/locale/collate.c
933
*wp++ = w;
lib/libc/locale/collate.c
975
l = mbrtowc(&w, src, slen, ps);
lib/libc/nameser/ns_print.c
740
u_int t, w, l, j, k, c;
lib/libc/nameser/ns_print.c
835
w = *rdata++;
lib/libc/nameser/ns_print.c
843
c = w * 256 + j * 8 + k;
lib/libc/nameser/ns_print.c
854
u_int w, l, j, k, c;
lib/libc/nameser/ns_print.c
859
w = *rdata++;
lib/libc/nameser/ns_print.c
867
c = w * 256 + j * 8 + k;
lib/libc/net/getaddrinfo.c
351
#define MATCH_FAMILY(x, y, w) \
lib/libc/net/getaddrinfo.c
352
((x) == (y) || (/*CONSTCOND*/(w) && ((x) == PF_UNSPEC || (y) == PF_UNSPEC)))
lib/libc/net/getaddrinfo.c
353
#define MATCH(x, y, w) \
lib/libc/net/getaddrinfo.c
354
((x) == (y) || (/*CONSTCOND*/(w) && ((x) == ANY || (y) == ANY)))
lib/libc/stdio/fvwrite.c
119
w = fp->_w;
lib/libc/stdio/fvwrite.c
121
if (len < w)
lib/libc/stdio/fvwrite.c
122
w = len;
lib/libc/stdio/fvwrite.c
123
if (w > 0) {
lib/libc/stdio/fvwrite.c
124
COPY(w); /* copy MIN(fp->_w,len), */
lib/libc/stdio/fvwrite.c
125
fp->_w -= w;
lib/libc/stdio/fvwrite.c
126
fp->_p += w;
lib/libc/stdio/fvwrite.c
128
w = len; /* but pretend copied all */
lib/libc/stdio/fvwrite.c
129
} else if (fp->_p > fp->_bf._base && len > w) {
lib/libc/stdio/fvwrite.c
131
COPY(w);
lib/libc/stdio/fvwrite.c
133
fp->_p += w;
lib/libc/stdio/fvwrite.c
136
} else if (len >= (w = fp->_bf._size)) {
lib/libc/stdio/fvwrite.c
138
w = _swrite(fp, p, w);
lib/libc/stdio/fvwrite.c
139
if (w <= 0)
lib/libc/stdio/fvwrite.c
143
w = len;
lib/libc/stdio/fvwrite.c
144
COPY(w);
lib/libc/stdio/fvwrite.c
145
fp->_w -= w;
lib/libc/stdio/fvwrite.c
146
fp->_p += w;
lib/libc/stdio/fvwrite.c
148
p += w;
lib/libc/stdio/fvwrite.c
149
len -= w;
lib/libc/stdio/fvwrite.c
150
} while ((uio->uio_resid -= w) != 0);
lib/libc/stdio/fvwrite.c
169
w = fp->_w + fp->_bf._size;
lib/libc/stdio/fvwrite.c
170
if (fp->_p > fp->_bf._base && s > w) {
lib/libc/stdio/fvwrite.c
171
COPY(w);
lib/libc/stdio/fvwrite.c
173
fp->_p += w;
lib/libc/stdio/fvwrite.c
176
} else if (s >= (w = fp->_bf._size)) {
lib/libc/stdio/fvwrite.c
177
w = _swrite(fp, p, w);
lib/libc/stdio/fvwrite.c
178
if (w <= 0)
lib/libc/stdio/fvwrite.c
181
w = s;
lib/libc/stdio/fvwrite.c
182
COPY(w);
lib/libc/stdio/fvwrite.c
183
fp->_w -= w;
lib/libc/stdio/fvwrite.c
184
fp->_p += w;
lib/libc/stdio/fvwrite.c
186
if ((nldist -= w) == 0) {
lib/libc/stdio/fvwrite.c
192
p += w;
lib/libc/stdio/fvwrite.c
193
len -= w;
lib/libc/stdio/fvwrite.c
194
} while ((uio->uio_resid -= w) != 0);
lib/libc/stdio/fvwrite.c
53
int w, s;
lib/libc/stdio/fvwrite.c
83
w = _swrite(fp, p, MIN(len, BUFSIZ));
lib/libc/stdio/fvwrite.c
84
if (w <= 0)
lib/libc/stdio/fvwrite.c
86
p += w;
lib/libc/stdio/fvwrite.c
87
len -= w;
lib/libc/stdio/fvwrite.c
88
} while ((uio->uio_resid -= w) != 0);
lib/libc/stdio/gets.c
48
static const char w[] =
lib/libc/stdio/gets.c
54
(void) _write(STDERR_FILENO, w, sizeof(w) - 1);
lib/libc/stdio/putw.c
43
putw(int w, FILE *fp)
lib/libc/stdio/putw.c
49
iov.iov_base = &w;
lib/libc/stdio/putw.c
50
uio.uio_resid = iov.iov_len = sizeof(w);
lib/libc/stdtime/strftime.c
365
int w;
lib/libc/stdtime/strftime.c
396
w = 1;
lib/libc/stdtime/strftime.c
400
w = 1 + ((yday - bot) /
lib/libc/stdtime/strftime.c
410
if ((w == 52 &&
lib/libc/stdtime/strftime.c
412
(w == 1 &&
lib/libc/stdtime/strftime.c
414
w = 53;
lib/libc/stdtime/strftime.c
417
pt = _conv(w, fmt_padding[PAD_FMT_WEEKOFYEAR][PadIndex],
lib/libc/string/memchr.c
45
const word *w;
lib/libc/string/memchr.c
47
for (w = (const void *)s; n >= SS && !HASZERO(*w ^ k);
lib/libc/string/memchr.c
48
w++, n -= SS)
lib/libc/string/memchr.c
50
s = (const void *)w;
lib/libc/string/strchrnul.c
45
const word *w;
lib/libc/string/strchrnul.c
50
for (w = (void *)s; !HASZERO(*w) && !HASZERO(*w ^ k); w++)
lib/libc/string/strchrnul.c
52
s = (void *)w;
lib/libcrypt/misc.c
51
uint32_t w;
lib/libcrypt/misc.c
54
w = (B2 << 16) | (B1 << 8) | B0;
lib/libcrypt/misc.c
56
**cp = itoa64[w&0x3f];
lib/libcrypt/misc.c
58
w >>= 6;
lib/libfetch/ftp.c
528
int w;
lib/libfetch/ftp.c
543
w = fetch_write(io->dconn, buf, len);
lib/libfetch/ftp.c
544
if (w >= 0)
lib/libfetch/ftp.c
545
return (w);
lib/libipsec/pfkey_dump.c
670
int w;
lib/libipsec/pfkey_dump.c
681
w = 1;
lib/libipsec/pfkey_dump.c
685
w = 1;
lib/libipsec/pfkey_dump.c
689
w = 0;
lib/libipsec/pfkey_dump.c
694
w = 0;
lib/libipsec/pfkey_dump.c
696
printf("\t%s: %.*f(%sbytes)", str, w, y, unit);
lib/libmd/rmd_locl.h
192
#define RIP1(a,b,c,d,e,w,s) { \
lib/libmd/rmd_locl.h
193
a+=F1(b,c,d)+X[w]; \
lib/libmd/rmd_locl.h
197
#define RIP2(a,b,c,d,e,w,s,K) { \
lib/libmd/rmd_locl.h
198
a+=F2(b,c,d)+X[w]+K; \
lib/libmd/rmd_locl.h
202
#define RIP3(a,b,c,d,e,w,s,K) { \
lib/libmd/rmd_locl.h
203
a+=F3(b,c,d)+X[w]+K; \
lib/libmd/rmd_locl.h
207
#define RIP4(a,b,c,d,e,w,s,K) { \
lib/libmd/rmd_locl.h
208
a+=F4(b,c,d)+X[w]+K; \
lib/libmd/rmd_locl.h
212
#define RIP5(a,b,c,d,e,w,s,K) { \
lib/libmd/rmd_locl.h
213
a+=F5(b,c,d)+X[w]+K; \
lib/libmd/sha1c.c
145
uint32_t w[16];
lib/libmd/sha1c.c
156
w[i] = be32dec(p + 4*i);
lib/libmd/sha1c.c
161
t = (a << 5 | a >> 32 - 5) + f + e + w[i & 0xf] + K0;
lib/libmd/sha1c.c
171
tmp = w[i - 3 & 0xf] ^ w[i - 8 & 0xf] ^ w[i - 14 & 0xf] ^ w[i & 0xf];
lib/libmd/sha1c.c
172
w[i & 0xf] = tmp << 1 | tmp >> 32 - 1;
lib/libmd/sha1c.c
175
t = (a << 5 | a >> 32 - 5) + f + e + w[i & 0xf] + K0;
lib/libmd/sha1c.c
185
tmp = w[i - 3 & 0xf] ^ w[i - 8 & 0xf] ^ w[i - 14 & 0xf] ^ w[i & 0xf];
lib/libmd/sha1c.c
186
w[i & 0xf] = tmp << 1 | tmp >> 32 - 1;
lib/libmd/sha1c.c
189
t = (a << 5 | a >> 32 - 5) + f + e + w[i & 0xf] + K1;
lib/libmd/sha1c.c
199
tmp = w[i - 3 & 0xf] ^ w[i - 8 & 0xf] ^ w[i - 14 & 0xf] ^ w[i & 0xf];
lib/libmd/sha1c.c
200
w[i & 0xf] = tmp << 1 | tmp >> 32 - 1;
lib/libmd/sha1c.c
203
t = (a << 5 | a >> 32 - 5) + f + e + w[i & 0xf] + K2;
lib/libmd/sha1c.c
213
tmp = w[i - 3 & 0xf] ^ w[i - 8 & 0xf] ^ w[i - 14 & 0xf] ^ w[i & 0xf];
lib/libmd/sha1c.c
214
w[i & 0xf] = tmp << 1 | tmp >> 32 - 1;
lib/libmd/sha1c.c
217
t = (a << 5 | a >> 32 - 5) + f + e + w[i & 0xf] + K3;
lib/libnetbsd/sockaddr_snprintf.c
123
char *w = NULL;
lib/libnetbsd/sockaddr_snprintf.c
168
if ((w = strchr(addr, ':')) != NULL) {
lib/libnetbsd/sockaddr_snprintf.c
169
*w++ = '\0';
lib/libnetbsd/sockaddr_snprintf.c
170
addr = w;
lib/libnetmap/nmreq.c
555
char *w;
lib/libnetmap/nmreq.c
581
w = nmctx_malloc(ctx, len + 1);
lib/libnetmap/nmreq.c
582
if (w == NULL) {
lib/libnetmap/nmreq.c
587
memcpy(w, opt1, len);
lib/libnetmap/nmreq.c
588
w[len] = '\0';
lib/libnetmap/nmreq.c
589
ret = nmreq_option_decode1(w, parsers, token, ctx);
lib/libnetmap/nmreq.c
590
nmctx_free(ctx, w);
lib/libopenbsd/imsg.c
260
ibuf_close(&ibuf->w, msg);
lib/libopenbsd/imsg.c
288
while (ibuf->w.queued)
lib/libopenbsd/imsg.c
289
if (msgbuf_write(&ibuf->w) <= 0)
lib/libopenbsd/imsg.c
299
msgbuf_clear(&ibuf->w);
lib/libopenbsd/imsg.c
38
msgbuf_init(&ibuf->w);
lib/libopenbsd/imsg.c
41
ibuf->w.fd = fd;
lib/libopenbsd/imsg.h
58
struct msgbuf w;
lib/libpmcstat/libpmcstat.h
298
int (*pl_topkeypress)(int c, void *w);
lib/libusb/libusb01.c
290
uint16_t w;
lib/libusb/libusb01.c
303
w = (sp[1] << 8) | sp[0];
lib/libusb/libusb01.c
307
*((uint16_t *)dp) = w;
lib/libutil/trimdomain.c
120
size_t w;
lib/libutil/trimdomain.c
123
w = strspn(disp, "0123456789");
lib/libutil/trimdomain.c
125
if (w > 0) {
lib/libutil/trimdomain.c
126
if (disp[w] == '\0')
lib/libutil/trimdomain.c
128
else if (disp[w] == '.') {
lib/libutil/trimdomain.c
129
disp += w + 1;
lib/libutil/trimdomain.c
130
w = strspn(disp, "0123456789");
lib/libutil/trimdomain.c
131
if (w > 0 && disp[w] == '\0')
lib/msun/ld128/e_lgammal_r.c
223
long double nadj,p,p1,p2,p3,q,r,t,w,y,z;
lib/msun/ld128/e_lgammal_r.c
317
w = w0+z*(w1+y*(w2+y*(w3+y*(w4+y*(w5+y*(w6+y*(w7+y*(w8+
lib/msun/ld128/e_lgammal_r.c
320
r = (x-half)*(t-one)+w;
lib/msun/ld128/e_powl.c
148
long double yy1, t1, t2, r, s, t, u, v, w;
lib/msun/ld128/e_powl.c
421
w = v - (z - u);
lib/msun/ld128/e_powl.c
427
r = (z * t1) / (t1 - two) - (w + z * w);
lib/msun/ld128/e_rem_pio2l.h
100
y[0] = r-w;
lib/msun/ld128/e_rem_pio2l.h
104
y[1] = (r-y[0])-w;
lib/msun/ld128/e_rem_pio2l.h
128
w = ty[0] - (r - t);
lib/msun/ld128/e_rem_pio2l.h
129
if(expsign<0) {y[0] = -r; y[1] = -w; return -n;}
lib/msun/ld128/e_rem_pio2l.h
130
y[0] = r; y[1] = w; return n;
lib/msun/ld128/e_rem_pio2l.h
61
long double z,w,t,r,fn;
lib/msun/ld128/e_rem_pio2l.h
77
w = fn*pio2_1t; /* 1st round good to 180 bit */
lib/msun/ld128/e_rem_pio2l.h
82
y[0] = r-w;
lib/msun/ld128/e_rem_pio2l.h
88
w = fn*pio2_2;
lib/msun/ld128/e_rem_pio2l.h
89
r = t-w;
lib/msun/ld128/e_rem_pio2l.h
90
w = fn*pio2_2t-((t-r)-w);
lib/msun/ld128/e_rem_pio2l.h
91
y[0] = r-w;
lib/msun/ld128/e_rem_pio2l.h
97
w = fn*pio2_3;
lib/msun/ld128/e_rem_pio2l.h
98
r = t-w;
lib/msun/ld128/e_rem_pio2l.h
99
w = fn*pio2_3t-((t-r)-w);
lib/msun/ld128/k_cosl.c
47
long double hz,z,r,w;
lib/msun/ld128/k_cosl.c
53
w = one-hz;
lib/msun/ld128/k_cosl.c
54
return w + (((one-w)-hz) + (z*r-x*y));
lib/msun/ld128/k_tanl.c
106
z = w;
lib/msun/ld128/k_tanl.c
109
t = a = -1.0 / w; /* a = -1.0/w */
lib/msun/ld128/k_tanl.c
61
long double z, r, v, w, s;
lib/msun/ld128/k_tanl.c
73
w = pio4lo - y;
lib/msun/ld128/k_tanl.c
74
x = z + w;
lib/msun/ld128/k_tanl.c
80
w = z * z;
lib/msun/ld128/k_tanl.c
81
r = T5 + w * (T9 + w * (T13 + w * (T17 + w * (T21 +
lib/msun/ld128/k_tanl.c
82
w * (T25 + w * (T29 + w * (T33 +
lib/msun/ld128/k_tanl.c
83
w * (T37 + w * (T41 + w * (T45 + w * (T49 + w * (T53 +
lib/msun/ld128/k_tanl.c
84
w * T57))))))))))));
lib/msun/ld128/k_tanl.c
85
v = z * (T7 + w * (T11 + w * (T15 + w * (T19 + w * (T23 +
lib/msun/ld128/k_tanl.c
86
w * (T27 + w * (T31 + w * (T35 +
lib/msun/ld128/k_tanl.c
87
w * (T39 + w * (T43 + w * (T47 + w * (T51 + w * T55))))))))))));
lib/msun/ld128/k_tanl.c
91
w = x + r;
lib/msun/ld128/k_tanl.c
95
(v - 2.0 * (x - (w * w / (w + v) - r)));
lib/msun/ld128/k_tanl.c
98
return w;
lib/msun/ld80/e_lgammal_r.c
248
long double nadj,p,p1,p2,q,r,t,w,y,z;
lib/msun/ld80/e_lgammal_r.c
347
w = w0+z*(w1+y*(w2+y*(w3+y*(w4+y*(w5+y*(w6+y*(w7+y*w8)))))));
lib/msun/ld80/e_lgammal_r.c
348
r = (x-half)*(t-one)+w;
lib/msun/ld80/e_powl.c
234
static _Thread_local long double w, W, Wa, Wb, ya, yb, u;
lib/msun/ld80/e_powl.c
298
w = floorl(y);
lib/msun/ld80/e_powl.c
301
if( w == y )
lib/msun/ld80/e_powl.c
310
yb = 0.5L * fabsl(w);
lib/msun/ld80/e_powl.c
366
i = w;
lib/msun/ld80/e_powl.c
367
w = floorl(x);
lib/msun/ld80/e_powl.c
368
if( (w == x) && (fabsl(y) < 32768.0) )
lib/msun/ld80/e_powl.c
370
w = powil( x, (int) y );
lib/msun/ld80/e_powl.c
371
return( w );
lib/msun/ld80/e_powl.c
415
w = x * ( z * __polevll( x, P, 3 ) / __p1evll( x, Q, 3 ) );
lib/msun/ld80/e_powl.c
416
w = w - ldexpl( z, -1 ); /* w - 0.5 * z */
lib/msun/ld80/e_powl.c
421
z = LOG2EA * w;
lib/msun/ld80/e_powl.c
422
z += w;
lib/msun/ld80/e_powl.c
427
w = -i;
lib/msun/ld80/e_powl.c
428
w = ldexpl( w, -LNXT ); /* divide by NXT */
lib/msun/ld80/e_powl.c
429
w += e;
lib/msun/ld80/e_powl.c
443
F = z * y + w * yb;
lib/msun/ld80/e_powl.c
447
G = Fa + w * ya;
lib/msun/ld80/e_powl.c
453
w = ldexpl( Ga+Ha, LNXT );
lib/msun/ld80/e_powl.c
456
if( w > MEXP )
lib/msun/ld80/e_powl.c
459
if( w < MNEXP )
lib/msun/ld80/e_powl.c
462
e = w;
lib/msun/ld80/e_powl.c
487
w = douba( e );
lib/msun/ld80/e_powl.c
488
z = w * z; /* 2**-e * ( 1 + (2**Hb-1) ) */
lib/msun/ld80/e_powl.c
489
z = z + w;
lib/msun/ld80/e_powl.c
498
w = ldexpl( y, -1 );
lib/msun/ld80/e_powl.c
499
w = floorl(w);
lib/msun/ld80/e_powl.c
500
w = ldexpl( w, 1 );
lib/msun/ld80/e_powl.c
501
if( w != y )
lib/msun/ld80/e_rem_pio2l.h
100
y[0] = r-w;
lib/msun/ld80/e_rem_pio2l.h
106
w = fn*pio2_3;
lib/msun/ld80/e_rem_pio2l.h
107
r = t-w;
lib/msun/ld80/e_rem_pio2l.h
108
w = fn*pio2_3t-((t-r)-w);
lib/msun/ld80/e_rem_pio2l.h
109
y[0] = r-w;
lib/msun/ld80/e_rem_pio2l.h
113
y[1] = (r-y[0])-w;
lib/msun/ld80/e_rem_pio2l.h
136
w = ty[1] - (r - ty[0]);
lib/msun/ld80/e_rem_pio2l.h
137
if(expsign<0) {y[0] = -r; y[1] = -w; return -n;}
lib/msun/ld80/e_rem_pio2l.h
138
y[0] = r; y[1] = w; return n;
lib/msun/ld80/e_rem_pio2l.h
73
long double z,w,t,r,fn;
lib/msun/ld80/e_rem_pio2l.h
86
w = fn*pio2_1t; /* 1st round good to 102 bit */
lib/msun/ld80/e_rem_pio2l.h
91
y[0] = r-w;
lib/msun/ld80/e_rem_pio2l.h
97
w = fn*pio2_2;
lib/msun/ld80/e_rem_pio2l.h
98
r = t-w;
lib/msun/ld80/e_rem_pio2l.h
99
w = fn*pio2_2t-((t-r)-w);
lib/msun/ld80/k_cosl.c
67
long double hz,z,r,w;
lib/msun/ld80/k_cosl.c
72
w = one-hz;
lib/msun/ld80/k_cosl.c
73
return w + (((one-w)-hz) + (z*r-x*y));
lib/msun/ld80/k_tanl.c
100
(v - 2.0 * (x - (w * w / (w + v) - r)));
lib/msun/ld80/k_tanl.c
103
return w;
lib/msun/ld80/k_tanl.c
111
z = w;
lib/msun/ld80/k_tanl.c
114
t = a = -1.0 / w; /* a = -1.0/w */
lib/msun/ld80/k_tanl.c
69
long double z, r, v, w, s;
lib/msun/ld80/k_tanl.c
81
w = pio4lo - y;
lib/msun/ld80/k_tanl.c
82
x = z + w;
lib/msun/ld80/k_tanl.c
88
w = z * z;
lib/msun/ld80/k_tanl.c
89
r = T5 + w * (T9 + w * (T13 + w * (T17 + w * (T21 +
lib/msun/ld80/k_tanl.c
90
w * (T25 + w * (T29 + w * T33))))));
lib/msun/ld80/k_tanl.c
91
v = z * (T7 + w * (T11 + w * (T15 + w * (T19 + w * (T23 +
lib/msun/ld80/k_tanl.c
92
w * (T27 + w * T31))))));
lib/msun/ld80/k_tanl.c
96
w = x + r;
lib/msun/src/catrig.c
278
double complex w;
lib/msun/src/catrig.c
306
w = clog_for_large_values(z) + m_ln2;
lib/msun/src/catrig.c
308
w = clog_for_large_values(-z) + m_ln2;
lib/msun/src/catrig.c
309
return (CMPLX(copysign(creal(w), x), copysign(cimag(w), y)));
lib/msun/src/catrig.c
337
double complex w = casinh(CMPLX(cimag(z), creal(z)));
lib/msun/src/catrig.c
339
return (CMPLX(cimag(w), creal(w)));
lib/msun/src/catrig.c
360
double complex w;
lib/msun/src/catrig.c
389
w = clog_for_large_values(z);
lib/msun/src/catrig.c
390
rx = fabs(cimag(w));
lib/msun/src/catrig.c
391
ry = creal(w) + m_ln2;
lib/msun/src/catrig.c
431
double complex w;
lib/msun/src/catrig.c
434
w = cacos(z);
lib/msun/src/catrig.c
435
rx = creal(w);
lib/msun/src/catrig.c
436
ry = cimag(w);
lib/msun/src/catrig.c
640
double complex w = catanh(CMPLX(cimag(z), creal(z)));
lib/msun/src/catrig.c
642
return (CMPLX(cimag(w), creal(w)));
lib/msun/src/catrigf.c
149
float complex w;
lib/msun/src/catrigf.c
168
w = clog_for_large_values(z) + m_ln2;
lib/msun/src/catrigf.c
170
w = clog_for_large_values(-z) + m_ln2;
lib/msun/src/catrigf.c
171
return (CMPLXF(copysignf(crealf(w), x),
lib/msun/src/catrigf.c
172
copysignf(cimagf(w), y)));
lib/msun/src/catrigf.c
194
float complex w = casinhf(CMPLXF(cimagf(z), crealf(z)));
lib/msun/src/catrigf.c
196
return (CMPLXF(cimagf(w), crealf(w)));
lib/msun/src/catrigf.c
205
float complex w;
lib/msun/src/catrigf.c
225
w = clog_for_large_values(z);
lib/msun/src/catrigf.c
226
rx = fabsf(cimagf(w));
lib/msun/src/catrigf.c
227
ry = crealf(w) + m_ln2;
lib/msun/src/catrigf.c
261
float complex w;
lib/msun/src/catrigf.c
264
w = cacosf(z);
lib/msun/src/catrigf.c
265
rx = crealf(w);
lib/msun/src/catrigf.c
266
ry = cimagf(w);
lib/msun/src/catrigf.c
389
float complex w = catanhf(CMPLXF(cimagf(z), crealf(z)));
lib/msun/src/catrigf.c
391
return (CMPLXF(cimagf(w), crealf(w)));
lib/msun/src/catrigl.c
168
long double complex w;
lib/msun/src/catrigl.c
187
w = clog_for_large_values(z) + m_ln2;
lib/msun/src/catrigl.c
189
w = clog_for_large_values(-z) + m_ln2;
lib/msun/src/catrigl.c
190
return (CMPLXL(copysignl(creall(w), x),
lib/msun/src/catrigl.c
191
copysignl(cimagl(w), y)));
lib/msun/src/catrigl.c
213
long double complex w;
lib/msun/src/catrigl.c
215
w = casinhl(CMPLXL(cimagl(z), creall(z)));
lib/msun/src/catrigl.c
216
return (CMPLXL(cimagl(w), creall(w)));
lib/msun/src/catrigl.c
225
long double complex w;
lib/msun/src/catrigl.c
245
w = clog_for_large_values(z);
lib/msun/src/catrigl.c
246
rx = fabsl(cimagl(w));
lib/msun/src/catrigl.c
247
ry = creall(w) + m_ln2;
lib/msun/src/catrigl.c
281
long double complex w;
lib/msun/src/catrigl.c
284
w = cacosl(z);
lib/msun/src/catrigl.c
285
rx = creall(w);
lib/msun/src/catrigl.c
286
ry = cimagl(w);
lib/msun/src/catrigl.c
410
long double complex w;
lib/msun/src/catrigl.c
412
w = catanhl(CMPLXL(cimagl(z), creall(z)));
lib/msun/src/catrigl.c
413
return (CMPLXL(cimagl(w), creall(w)));
lib/msun/src/e_acos.c
100
w = r*s+c;
lib/msun/src/e_acos.c
101
return 2.0*(df+w);
lib/msun/src/e_acos.c
63
double z,p,q,r,w,s,c,df;
lib/msun/src/e_acos.c
89
w = r*s-pio2_lo;
lib/msun/src/e_acos.c
90
return pi - 2.0*(s+w);
lib/msun/src/e_acosf.c
40
float z,p,q,r,w,s,c,df;
lib/msun/src/e_acosf.c
64
w = r*s-pio2_lo;
lib/msun/src/e_acosf.c
65
return pi - (float)2.0*(s+w);
lib/msun/src/e_acosf.c
77
w = r*s+c;
lib/msun/src/e_acosf.c
78
return (float)2.0*(df+w);
lib/msun/src/e_acosl.c
43
long double z,p,q,r,w,s,c,df;
lib/msun/src/e_acosl.c
68
w = r*s-pio2_lo;
lib/msun/src/e_acosl.c
69
return pi - 2.0*(s+w);
lib/msun/src/e_acosl.c
80
w = r*s+c;
lib/msun/src/e_acosl.c
81
return 2.0*(df+w);
lib/msun/src/e_asin.c
100
w = s;
lib/msun/src/e_asin.c
101
SET_LOW_WORD(w,0);
lib/msun/src/e_asin.c
102
c = (t-w*w)/(s+w);
lib/msun/src/e_asin.c
105
q = pio4_hi-2.0*w;
lib/msun/src/e_asin.c
69
double t=0.0,w,p,q,c,r,s;
lib/msun/src/e_asin.c
87
w = p/q;
lib/msun/src/e_asin.c
88
return x+x*w;
lib/msun/src/e_asin.c
91
w = one-fabs(x);
lib/msun/src/e_asin.c
92
t = w*0.5;
lib/msun/src/e_asin.c
97
w = p/q;
lib/msun/src/e_asin.c
98
t = pio2_hi-(2.0*(s+s*w)-pio2_lo);
lib/msun/src/e_asinf.c
41
float t,w,p,q;
lib/msun/src/e_asinf.c
56
w = p/q;
lib/msun/src/e_asinf.c
57
return x+x*w;
lib/msun/src/e_asinf.c
60
w = one-fabsf(x);
lib/msun/src/e_asinf.c
61
t = w*(float)0.5;
lib/msun/src/e_asinf.c
65
w = p/q;
lib/msun/src/e_asinf.c
66
t = pio2-2.0*(s+s*w);
lib/msun/src/e_asinl.c
33
long double t=0.0,w,p,q,c,r,s;
lib/msun/src/e_asinl.c
50
w = p/q;
lib/msun/src/e_asinl.c
51
return x+x*w;
lib/msun/src/e_asinl.c
54
w = one-fabsl(x);
lib/msun/src/e_asinl.c
55
t = w*0.5;
lib/msun/src/e_asinl.c
60
w = p/q;
lib/msun/src/e_asinl.c
61
t = pio2_hi-(2.0*(s+s*w)-pio2_lo);
lib/msun/src/e_asinl.c
65
w = u.e;
lib/msun/src/e_asinl.c
66
c = (t-w*w)/(s+w);
lib/msun/src/e_asinl.c
69
q = pio4_hi-2.0*w;
lib/msun/src/e_cosh.c
44
double t,w;
lib/msun/src/e_cosh.c
57
w = one+t;
lib/msun/src/e_cosh.c
58
if (ix<0x3c800000) return w; /* cosh(tiny) = 1 */
lib/msun/src/e_cosh.c
59
return one+(t*t)/(w+w);
lib/msun/src/e_coshf.c
24
float t,w;
lib/msun/src/e_coshf.c
36
w = one+t;
lib/msun/src/e_coshf.c
38
return one+(t*t)/(w+w);
lib/msun/src/e_hypot.c
100
w = a-b;
lib/msun/src/e_hypot.c
101
if (w>b) {
lib/msun/src/e_hypot.c
105
w = sqrt(t1*t1-(b*(-b)-t2*(a+t1)));
lib/msun/src/e_hypot.c
114
w = sqrt(t1*y1-(w*(-w)-(t1*y2+t2*b)));
lib/msun/src/e_hypot.c
119
return t1*w;
lib/msun/src/e_hypot.c
120
} else return w;
lib/msun/src/e_hypot.c
53
double a,b,t1,t2,y1,y2,w;
lib/msun/src/e_hypot.c
69
w = fabsl(x+0.0L)-fabs(y+0);
lib/msun/src/e_hypot.c
71
if(((ha&0xfffff)|low)==0) w = a;
lib/msun/src/e_hypot.c
73
if(((hb^0x7ff00000)|low)==0) w = b;
lib/msun/src/e_hypot.c
74
return w;
lib/msun/src/e_hypotf.c
22
float a,b,t1,t2,y1,y2,w;
lib/msun/src/e_hypotf.c
37
w = fabsl(x+0.0L)-fabsf(y+0);
lib/msun/src/e_hypotf.c
38
if(ha == 0x7f800000) w = a;
lib/msun/src/e_hypotf.c
39
if(hb == 0x7f800000) w = b;
lib/msun/src/e_hypotf.c
40
return w;
lib/msun/src/e_hypotf.c
63
w = a-b;
lib/msun/src/e_hypotf.c
64
if (w>b) {
lib/msun/src/e_hypotf.c
67
w = sqrtf(t1*t1-(b*(-b)-t2*(a+t1)));
lib/msun/src/e_hypotf.c
74
w = sqrtf(t1*y1-(w*(-w)-(t1*y2+t2*b)));
lib/msun/src/e_hypotf.c
78
return t1*w;
lib/msun/src/e_hypotf.c
79
} else return w;
lib/msun/src/e_hypotl.c
101
w = sqrtl(t1*t1-(b*(-b)-t2*(a+t1)));
lib/msun/src/e_hypotl.c
111
w = sqrtl(t1*y1-(w*(-w)-(t1*y2+t2*b)));
lib/msun/src/e_hypotl.c
118
return t1*w;
lib/msun/src/e_hypotl.c
119
} else return w;
lib/msun/src/e_hypotl.c
47
long double a=x,b=y,t1,t2,y1,y2,w;
lib/msun/src/e_hypotl.c
63
w = fabsl(x+0.0L)-fabsl(y+0);
lib/msun/src/e_hypotl.c
65
if (manh == LDBL_NBIT && manl == 0) w = a;
lib/msun/src/e_hypotl.c
67
if (hb >= ESW(MAX_EXP) && manh == LDBL_NBIT && manl == 0) w = b;
lib/msun/src/e_hypotl.c
68
return w;
lib/msun/src/e_hypotl.c
95
w = a-b;
lib/msun/src/e_hypotl.c
96
if (w>b) {
lib/msun/src/e_jn.c
154
w = (n+n)/(double)x; h = 2.0/(double)x;
lib/msun/src/e_jn.c
155
q0 = w; z = w+h; q1 = w*z - 1.0; k=1;
lib/msun/src/e_jn.c
201
w = j1(x);
lib/msun/src/e_jn.c
202
if (fabs(z) >= fabs(w))
lib/msun/src/e_jn.c
205
b = (t*w/a);
lib/msun/src/e_jn.c
54
double z, w;
lib/msun/src/e_jnf.c
112
w = (n+n)/(float)x; h = (float)2.0/(float)x;
lib/msun/src/e_jnf.c
113
q0 = w; z = w+h; q1 = w*z - (float)1.0; k=1;
lib/msun/src/e_jnf.c
159
w = j1f(x);
lib/msun/src/e_jnf.c
160
if (fabsf(z) >= fabsf(w))
lib/msun/src/e_jnf.c
163
b = (t*w/a);
lib/msun/src/e_jnf.c
36
float z, w;
lib/msun/src/e_lgamma_r.c
200
double nadj,p,p1,p2,p3,q,r,t,w,y,z;
lib/msun/src/e_lgamma_r.c
255
w = z*y;
lib/msun/src/e_lgamma_r.c
256
p1 = t0+w*(t3+w*(t6+w*(t9 +w*t12))); /* parallel comp */
lib/msun/src/e_lgamma_r.c
257
p2 = t1+w*(t4+w*(t7+w*(t10+w*t13)));
lib/msun/src/e_lgamma_r.c
258
p3 = t2+w*(t5+w*(t8+w*(t11+w*t14)));
lib/msun/src/e_lgamma_r.c
259
p = z*p1-(tt-w*(p2+y*p3));
lib/msun/src/e_lgamma_r.c
288
w = w0+z*(w1+y*(w2+y*(w3+y*(w4+y*(w5+y*w6)))));
lib/msun/src/e_lgamma_r.c
289
r = (x-half)*(t-one)+w;
lib/msun/src/e_lgammaf_r.c
122
float nadj,p,p1,p2,q,r,t,w,y,z;
lib/msun/src/e_lgammaf_r.c
205
w = w0+z*(w1+y*w2);
lib/msun/src/e_lgammaf_r.c
206
r = (x-half)*(t-one)+w;
lib/msun/src/e_log.c
125
w = z*z;
lib/msun/src/e_log.c
127
t1= w*(Lg2+w*(Lg4+w*Lg6));
lib/msun/src/e_log.c
128
t2= z*(Lg1+w*(Lg3+w*(Lg5+w*Lg7)));
lib/msun/src/e_log.c
87
double hfsq,f,s,z,R,w,t1,t2,dk;
lib/msun/src/e_log10.c
40
double f,hfsq,hi,lo,r,val_hi,val_lo,w,y,y2;
lib/msun/src/e_log10.c
81
w = y2 + val_hi;
lib/msun/src/e_log10.c
82
val_lo += (y2 - w) + val_hi;
lib/msun/src/e_log10.c
83
val_hi = w;
lib/msun/src/e_log2.c
104
w = y + val_hi;
lib/msun/src/e_log2.c
105
val_lo += (y - w) + val_hi;
lib/msun/src/e_log2.c
106
val_hi = w;
lib/msun/src/e_log2.c
40
double f,hfsq,hi,lo,r,val_hi,val_lo,w,y;
lib/msun/src/e_logf.c
35
float hfsq,f,s,z,R,w,t1,t2,dk;
lib/msun/src/e_logf.c
72
w = z*z;
lib/msun/src/e_logf.c
74
t1= w*(Lg2+w*Lg4);
lib/msun/src/e_logf.c
75
t2= z*(Lg1+w*Lg3);
lib/msun/src/e_pow.c
100
double y1,t1,t2,r,s,t,u,v,w;
lib/msun/src/e_pow.c
200
w = (t*t)*(half-t*(thrd-t*qrtr));
lib/msun/src/e_pow.c
202
v = t*ivln2_l-w*ivln2;
lib/msun/src/e_pow.c
296
w = v-(z-u);
lib/msun/src/e_pow.c
299
r = (z*t1)/(t1-two)-(w+z*w);
lib/msun/src/e_powf.c
141
w = (t*t)*(half-t*(thrd-t*qrtr));
lib/msun/src/e_powf.c
143
v = t*ivln2_l-w*ivln2;
lib/msun/src/e_powf.c
239
w = v-(z-u);
lib/msun/src/e_powf.c
242
r = (z*t1)/(t1-two)-(w+z*w);
lib/msun/src/e_powf.c
59
float y1,t1,t2,r,s,sn,t,u,v,w;
lib/msun/src/e_rem_pio2.c
129
w = fn*pio2_1t; /* 1st round good to 85 bit */
lib/msun/src/e_rem_pio2.c
133
y[0] = r-w;
lib/msun/src/e_rem_pio2.c
138
w = fn*pio2_2;
lib/msun/src/e_rem_pio2.c
139
r = t-w;
lib/msun/src/e_rem_pio2.c
140
w = fn*pio2_2t-((t-r)-w);
lib/msun/src/e_rem_pio2.c
141
y[0] = r-w;
lib/msun/src/e_rem_pio2.c
146
w = fn*pio2_3;
lib/msun/src/e_rem_pio2.c
147
r = t-w;
lib/msun/src/e_rem_pio2.c
148
w = fn*pio2_3t-((t-r)-w);
lib/msun/src/e_rem_pio2.c
149
y[0] = r-w;
lib/msun/src/e_rem_pio2.c
153
y[1] = (r-y[0])-w;
lib/msun/src/e_rem_pio2.c
53
double z,w,t,r,fn;
lib/msun/src/e_rem_pio2f.c
46
double w,r,fn;
lib/msun/src/e_rem_pio2f.c
58
w = fn*pio2_1t;
lib/msun/src/e_rem_pio2f.c
59
*y = r-w;
lib/msun/src/k_cos.c
67
double hz,z,r,w;
lib/msun/src/k_cos.c
70
w = z*z;
lib/msun/src/k_cos.c
71
r = z*(C1+z*(C2+z*C3)) + w*w*(C4+z*(C5+z*C6));
lib/msun/src/k_cos.c
73
w = one-hz;
lib/msun/src/k_cos.c
74
return w + (((one-w)-hz) + (z*r-x*y));
lib/msun/src/k_cosf.c
34
double r, w, z;
lib/msun/src/k_cosf.c
38
w = z*z;
lib/msun/src/k_cosf.c
40
return ((one+z*C0) + w*C1) + (w*z)*r;
lib/msun/src/k_log.h
86
double hfsq,s,z,R,w,t1,t2;
lib/msun/src/k_log.h
90
w = z*z;
lib/msun/src/k_log.h
91
t1= w*(Lg2+w*(Lg4+w*Lg6));
lib/msun/src/k_log.h
92
t2= z*(Lg1+w*(Lg3+w*(Lg5+w*Lg7)));
lib/msun/src/k_logf.h
26
float hfsq,s,z,R,w,t1,t2;
lib/msun/src/k_logf.h
30
w = z*z;
lib/msun/src/k_logf.h
31
t1= w*(Lg2+w*Lg4);
lib/msun/src/k_logf.h
32
t2= z*(Lg1+w*Lg3);
lib/msun/src/k_sin.c
58
double z,r,v,w;
lib/msun/src/k_sin.c
61
w = z*z;
lib/msun/src/k_sin.c
62
r = S2+z*(S3+z*S4) + z*w*(S5+z*S6);
lib/msun/src/k_sincos.h
33
double hz, r, v, w, z;
lib/msun/src/k_sincos.h
36
w = z * z;
lib/msun/src/k_sincos.h
37
r = S2 + z * (S3 + z * S4) + z * w * (S5 + z * S6);
lib/msun/src/k_sincos.h
45
r = z * (C1 + z * (C2 + z * C3)) + w * w * (C4 + z * (C5 + z * C6));
lib/msun/src/k_sincos.h
47
w = 1 - hz;
lib/msun/src/k_sincos.h
48
*cs = w + (((1 - w) - hz) + (z * r - x * y));
lib/msun/src/k_sincosf.h
31
double r, s, w, z;
lib/msun/src/k_sincosf.h
34
w = z * z;
lib/msun/src/k_sincosf.h
37
*sn = (x + s * (S1 + z * S2)) + s * w * r;
lib/msun/src/k_sincosf.h
39
*cs = ((1 + z * C0) + w * C1) + (w * z) * r;
lib/msun/src/k_sincosl.h
109
long double hz, r, v, w, z;
lib/msun/src/k_sincosl.h
126
w = 1 - hz;
lib/msun/src/k_sincosl.h
130
*cs = w + (((1 - w) - hz) + (z * r - x * y));
lib/msun/src/k_sincosl.h
51
long double hz, r, v, w, z;
lib/msun/src/k_sincosl.h
67
w = 1 - hz;
lib/msun/src/k_sincosl.h
70
*cs = w + (((1 - w) - hz) + (z * r - x * y));
lib/msun/src/k_sinf.c
33
double r, s, w, z;
lib/msun/src/k_sinf.c
37
w = z*z;
lib/msun/src/k_sinf.c
40
return (x + s*(S1+z*S2)) + s*w*r;
lib/msun/src/k_tan.c
103
w = x + r;
lib/msun/src/k_tan.c
107
(v - 2.0 * (x - (w * w / (w + v) - r)));
lib/msun/src/k_tan.c
110
return w;
lib/msun/src/k_tan.c
118
z = w;
lib/msun/src/k_tan.c
121
t = a = -1.0 / w; /* a = -1.0/w */
lib/msun/src/k_tan.c
74
double z, r, v, w, s;
lib/msun/src/k_tan.c
85
w = pio4lo - y;
lib/msun/src/k_tan.c
86
x = z + w;
lib/msun/src/k_tan.c
90
w = z * z;
lib/msun/src/k_tan.c
96
r = T[1] + w * (T[3] + w * (T[5] + w * (T[7] + w * (T[9] +
lib/msun/src/k_tan.c
97
w * T[11]))));
lib/msun/src/k_tan.c
98
v = z * (T[2] + w * (T[4] + w * (T[6] + w * (T[8] + w * (T[10] +
lib/msun/src/k_tan.c
99
w * T[12])))));
lib/msun/src/k_tanf.c
36
double z,r,w,s,t,u;
lib/msun/src/k_tanf.c
55
w = z*z;
lib/msun/src/k_tanf.c
58
r = (x+s*u)+(s*w)*(t+w*r);
lib/msun/src/math_private.h
102
u_int64_t w;
lib/msun/src/math_private.h
120
u_int64_t w;
lib/msun/src/math_private.h
141
(ix) = ew_u.xparts.w; \
lib/msun/src/math_private.h
176
iw_u.xparts.w = (ix); \
lib/msun/src/s_asinh.c
36
double t,w;
lib/msun/src/s_asinh.c
45
w = log(fabs(x))+ln2;
lib/msun/src/s_asinh.c
48
w = log(2.0*t+one/(sqrt(x*x+one)+t));
lib/msun/src/s_asinh.c
51
w =log1p(fabs(x)+t/(one+sqrt(one+t)));
lib/msun/src/s_asinh.c
53
if(hx>0) return w; else return -w;
lib/msun/src/s_asinhf.c
27
float t,w;
lib/msun/src/s_asinhf.c
36
w = logf(fabsf(x))+ln2;
lib/msun/src/s_asinhf.c
39
w = logf((float)2.0*t+one/(sqrtf(x*x+one)+t));
lib/msun/src/s_asinhf.c
42
w =log1pf(fabsf(x)+t/(one+sqrtf(one+t)));
lib/msun/src/s_asinhf.c
44
if(hx>0) return w; else return -w;
lib/msun/src/s_asinhl.c
67
long double t, w;
lib/msun/src/s_asinhl.c
78
w = logl(fabsl(x))+ln2;
lib/msun/src/s_asinhl.c
81
w = logl(2.0*t+one/(sqrtl(x*x+one)+t));
lib/msun/src/s_asinhl.c
84
w =log1pl(fabsl(x)+t/(one+sqrtl(one+t)));
lib/msun/src/s_asinhl.c
86
RETURNI((hx & 0x8000) == 0 ? w : -w);
lib/msun/src/s_atan.c
107
w = z*z;
lib/msun/src/s_atan.c
109
s1 = z*(aT[0]+w*(aT[2]+w*(aT[4]+w*(aT[6]+w*(aT[8]+w*aT[10])))));
lib/msun/src/s_atan.c
110
s2 = w*(aT[1]+w*(aT[3]+w*(aT[5]+w*(aT[7]+w*aT[9]))));
lib/msun/src/s_atan.c
72
double w,s1,s2,z;
lib/msun/src/s_atanf.c
48
float w,s1,s2,z;
lib/msun/src/s_atanf.c
80
w = z*z;
lib/msun/src/s_atanf.c
82
s1 = z*(aT[0]+w*(aT[2]+w*aT[4]));
lib/msun/src/s_atanf.c
83
s2 = w*(aT[1]+w*aT[3]);
lib/msun/src/s_atanl.c
32
long double w,s1,s2,z;
lib/msun/src/s_atanl.c
72
w = z*z;
lib/msun/src/s_atanl.c
74
s1 = z*T_even(w);
lib/msun/src/s_atanl.c
75
s2 = w*T_odd(w);
lib/msun/src/s_cbrt.c
105
w=t+t; /* t+t is exact */
lib/msun/src/s_cbrt.c
106
r=(r-t)/(w+r); /* r-t is exact; w+r ~= 3*t */
lib/msun/src/s_cbrt.c
41
double r,s,t=0.0,w;
lib/msun/src/s_cbrtl.c
134
w=t+t; /* t+t is exact */
lib/msun/src/s_cbrtl.c
135
r=(r-t)/(w+r); /* r-t is exact; w+r ~= 3*t */
lib/msun/src/s_cbrtl.c
35
long double r, s, t, w;
lib/msun/src/s_cpow.c
54
double complex w;
lib/msun/src/s_cpow.c
73
w = CMPLX(r * cos (theta), r * sin (theta));
lib/msun/src/s_cpow.c
74
return (w);
lib/msun/src/s_cpowf.c
53
float complex w;
lib/msun/src/s_cpowf.c
72
w = CMPLXF(r * cosf (theta), r * sinf (theta));
lib/msun/src/s_cpowf.c
73
return (w);
lib/msun/src/s_cpowl.c
53
long double complex w;
lib/msun/src/s_cpowl.c
72
w = CMPLXL(r * cosl(theta), r * sinl(theta));
lib/msun/src/s_cpowl.c
73
return (w);
lib/msun/src/s_rint.c
38
double w,t;
lib/msun/src/s_rint.c
49
STRICT_ASSIGN(double,w,TWO52[sx]+x);
lib/msun/src/s_rint.c
50
t = w-TWO52[sx];
lib/msun/src/s_rint.c
82
STRICT_ASSIGN(double,w,TWO52[sx]+x);
lib/msun/src/s_rint.c
83
return w-TWO52[sx];
lib/msun/src/s_rintf.c
32
float w,t;
lib/msun/src/s_rintf.c
39
STRICT_ASSIGN(float,w,TWO23[sx]+x);
lib/msun/src/s_rintf.c
40
t = w-TWO23[sx];
lib/msun/src/s_rintf.c
45
STRICT_ASSIGN(float,w,TWO23[sx]+x);
lib/msun/src/s_rintf.c
46
return w-TWO23[sx];
libexec/bootpd/rtmsg.c
206
#define NEXTADDR(w, s) \
libexec/bootpd/rtmsg.c
207
if (rtm->rtm_addrs & (w)) { \
libexec/rbootd/rmp_var.h
133
#define WORDZE(w) ((w) == 0)
libexec/rbootd/rmp_var.h
134
#define ZEROWORD(w) (w) = 0
libexec/rbootd/rmp_var.h
136
#define GETWORD(w, i) (i) = ntohl(w)
libexec/rbootd/rmp_var.h
137
#define PUTWORD(i, w) (w) = htonl(i)
libexec/rbootd/rmp_var.h
146
#define WORDZE(w) \
libexec/rbootd/rmp_var.h
147
((w.val[_WORD_HIGHPART] == 0) && (w.val[_WORD_LOWPART] == 0))
libexec/rbootd/rmp_var.h
148
#define ZEROWORD(w) \
libexec/rbootd/rmp_var.h
149
(w).val[_WORD_HIGHPART] = (w).val[_WORD_LOWPART] = 0
libexec/rbootd/rmp_var.h
154
#define GETWORD(w, i) \
libexec/rbootd/rmp_var.h
155
(i) = (((u_int32_t)ntohs((w).val[_WORD_HIGHPART])) << 16) | ntohs((w).val[_WORD_LOWPART])
libexec/rbootd/rmp_var.h
156
#define PUTWORD(i, w) \
libexec/rbootd/rmp_var.h
157
{ (w).val[_WORD_HIGHPART] = htons((u_int16_t) ((i >> 16) & 0xffff)); \
libexec/rbootd/rmp_var.h
158
(w).val[_WORD_LOWPART] = htons((u_int16_t) (i & 0xffff)); \
sbin/bsdlabel/bsdlabel.c
982
#define NXTWORD(w,n) do { \
sbin/bsdlabel/bsdlabel.c
990
if (tmp) (w) = *tmp; \
sbin/ifconfig/ifieee80211.c
3211
u_int32_t w = LE_READ_4(sel);
sbin/ifconfig/ifieee80211.c
3213
switch (w) {
sbin/ifconfig/ifieee80211.c
3233
u_int32_t w = LE_READ_4(sel);
sbin/ifconfig/ifieee80211.c
3235
switch (w) {
sbin/ifconfig/ifieee80211.c
3295
u_int32_t w = LE_READ_4(sel);
sbin/ifconfig/ifieee80211.c
3297
switch (w) {
sbin/ifconfig/ifieee80211.c
3325
u_int32_t w = LE_READ_4(sel);
sbin/ifconfig/ifieee80211.c
3327
switch (w) {
sbin/ipf/common/lexer.c
541
wordtab_t *w;
sbin/ipf/common/lexer.c
543
w = NULL;
sbin/ipf/common/lexer.c
547
w = yyfindkey(yystr);
sbin/ipf/common/lexer.c
548
if (w == NULL && yywordtab != NULL && !yydictfixed) {
sbin/ipf/common/lexer.c
550
w = yyfindkey(yystr);
sbin/ipf/common/lexer.c
554
if (w != NULL)
sbin/ipf/common/lexer.c
555
rval = w->w_value;
sbin/ipf/common/lexer.c
608
wordtab_t *w;
sbin/ipf/common/lexer.c
613
for (w = yywordtab; w->w_word != 0; w++)
sbin/ipf/common/lexer.c
614
if (strcasecmp(key, w->w_word) == 0)
sbin/ipf/common/lexer.c
615
return (w);
sbin/ipf/common/lexer.c
623
wordtab_t *w;
sbin/ipf/common/lexer.c
628
for (w = yywordtab; w->w_word; w++)
sbin/ipf/common/lexer.c
629
if (w->w_value == num)
sbin/ipf/common/lexer.c
630
return (w->w_word);
sbin/ipf/ipsend/ipsend.c
141
u_short w[6];
sbin/ipf/ipsend/ipsend.c
152
opts = &ph.w[0];
sbin/ipf/libipf/findword.c
15
wordtab_t *w;
sbin/ipf/libipf/findword.c
17
for (w = words; w->w_word != NULL; w++)
sbin/ipf/libipf/findword.c
18
if (!strcmp(name, w->w_word))
sbin/ipf/libipf/findword.c
20
if (w->w_word == NULL)
sbin/ipf/libipf/findword.c
23
return (w);
sbin/ipf/libipf/printfieldhdr.c
16
wordtab_t *w;
sbin/ipf/libipf/printfieldhdr.c
20
for (w = words; w->w_word != NULL; ) {
sbin/ipf/libipf/printfieldhdr.c
21
if (w->w_value > 0) {
sbin/ipf/libipf/printfieldhdr.c
22
printfieldhdr(words, w);
sbin/ipf/libipf/printfieldhdr.c
23
w++;
sbin/ipf/libipf/printfieldhdr.c
24
if (w->w_value > 0)
sbin/ipf/libipf/printfieldhdr.c
27
w++;
sbin/ipf/libipf/printfieldhdr.c
33
for (w = words; w->w_word != NULL; w++) {
sbin/ipf/libipf/printfieldhdr.c
34
if (w->w_value == field->w_value) {
sbin/ipf/libipf/printfieldhdr.c
35
if (w->w_word == field->w_word) {
sbin/ipf/libipf/printfieldhdr.c
36
s = strdup(w->w_word);
sbin/ipf/libipf/printfieldhdr.c
41
if ((w->w_word != field->w_word) || (s == NULL)) {
sbin/pfctl/parse.y
1252
$$.b2 = $$.w = 0;
sbin/pfctl/parse.y
288
u_int16_t w;
sbin/pfctl/parse.y
3235
filter_opts.flags.w |= $1.w;
sbin/pfctl/parse.y
3584
$$.w = returnicmpdefault;
sbin/pfctl/parse.y
3587
| MATCH { $$.b1 = PF_MATCH; $$.b2 = $$.w = 0; }
sbin/pfctl/parse.y
3593
$$.w = returnicmpdefault;
sbin/pfctl/parse.y
3598
$$.w = 0;
sbin/pfctl/parse.y
3603
$$.w = 0;
sbin/pfctl/parse.y
3612
$$.w = $4;
sbin/pfctl/parse.y
3617
$$.w = returnicmpdefault;
sbin/pfctl/parse.y
3622
$$.w = returnicmpdefault;
sbin/pfctl/parse.y
3627
$$.w = $3;
sbin/pfctl/parse.y
3632
$$.w = returnicmpdefault;
sbin/pfctl/parse.y
3637
$$.w = $3;
sbin/pfctl/parse.y
3642
$$.w = returnicmpdefault;
sbin/pfctl/parse.y
511
u_int16_t w;
sbin/pfctl/parse.y
5234
$$.w = $3.b2;
sbin/pfctl/parse.y
5247
$$.w = $3.b2;
sbin/pfctl/parse.y
8006
parseicmpspec(char *w, sa_family_t af)
sbin/pfctl/parse.y
8017
if (atoul(w, &ulval) == -1) {
sbin/pfctl/parse.y
8018
if ((p = geticmpcodebyname(icmptype, w, af)) == NULL) {
sbin/pfctl/parse.y
8019
yyerror("unknown icmp code %s", w);
sbin/pfctl/pfctl.c
3197
pfctl_cfg_syncookies(struct pfctl *pf, uint8_t val, struct pfctl_watermarks *w)
sbin/pfctl/pfctl.c
3199
if (val != PF_SYNCOOKIES_ADAPTIVE && w != NULL) {
sbin/pfctl/pfctl.c
3203
if (val == PF_SYNCOOKIES_ADAPTIVE && w != NULL) {
sbin/pfctl/pfctl.c
3204
if (!w->hi)
sbin/pfctl/pfctl.c
3205
w->hi = PF_SYNCOOKIES_HIWATPCT;
sbin/pfctl/pfctl.c
3206
if (!w->lo)
sbin/pfctl/pfctl.c
3207
w->lo = w->hi / 2;
sbin/pfctl/pfctl.c
3208
if (w->lo >= w->hi) {
sbin/pfctl/pfctl.c
3212
pf->syncookieswat[0] = w->lo;
sbin/pfctl/pfctl.c
3213
pf->syncookieswat[1] = w->hi;
sbin/pfctl/pfctl_parser.c
262
geticmptypebyname(char *w, sa_family_t af)
sbin/pfctl/pfctl_parser.c
268
if (!strcmp(w, icmp_type[i].name))
sbin/pfctl/pfctl_parser.c
273
if (!strcmp(w, icmp6_type[i].name))
sbin/pfctl/pfctl_parser.c
302
geticmpcodebyname(u_long type, char *w, sa_family_t af)
sbin/pfctl/pfctl_parser.c
309
!strcmp(w, icmp_code[i].name))
sbin/pfctl/pfctl_parser.c
315
!strcmp(w, icmp6_code[i].name))
sbin/ping/utils.c
47
u_char *w;
sbin/ping/utils.c
56
w = addr;
sbin/ping/utils.c
66
memcpy(&data, w, sizeof(data));
sbin/ping/utils.c
68
w += sizeof(data);
sbin/ping/utils.c
74
last.uc[0] = *w;
sbin/restore/interactive.c
635
int i, j, w, precision, columns, lines;
sbin/restore/interactive.c
687
for (w = fp->len; w < width; w++)
sbin/route/route.c
1578
#define NEXTADDR(w, u) \
sbin/route/route.c
1579
if (rtm_addrs & (w)) { \
sbin/route/route.c
1584
sodump((struct sockaddr *)&(u), #w); \
sbin/routed/radix.c
806
struct walkarg *w)
sbin/routed/radix.c
831
if (!(rn->rn_flags & RNF_ROOT) && (error = (*f)(rn, w)))
sbin/routed/radix.h
128
struct walkarg *w);
sbin/routed/table.c
682
} w;
sbin/routed/table.c
688
memset(&w, 0, sizeof(w));
sbin/routed/table.c
689
w.w_rtm.rtm_msglen = sizeof(w);
sbin/routed/table.c
690
w.w_rtm.rtm_version = RTM_VERSION;
sbin/routed/table.c
691
w.w_rtm.rtm_type = action;
sbin/routed/table.c
692
w.w_rtm.rtm_flags = flags;
sbin/routed/table.c
693
w.w_rtm.rtm_seq = ++rt_sock_seqno;
sbin/routed/table.c
694
w.w_rtm.rtm_addrs = RTA_DST|RTA_GATEWAY;
sbin/routed/table.c
696
w.w_rtm.rtm_rmx.rmx_hopcount = metric;
sbin/routed/table.c
697
w.w_rtm.rtm_inits |= RTV_HOPCOUNT;
sbin/routed/table.c
699
w.w_dst.sin_family = AF_INET;
sbin/routed/table.c
700
w.w_dst.sin_addr.s_addr = dst;
sbin/routed/table.c
701
w.w_gate.sin_family = AF_INET;
sbin/routed/table.c
702
w.w_gate.sin_addr.s_addr = gate;
sbin/routed/table.c
704
w.w_dst.sin_len = sizeof(w.w_dst);
sbin/routed/table.c
705
w.w_gate.sin_len = sizeof(w.w_gate);
sbin/routed/table.c
708
w.w_rtm.rtm_flags |= RTF_HOST;
sbin/routed/table.c
709
w.w_rtm.rtm_msglen -= sizeof(w.w_mask);
sbin/routed/table.c
711
w.w_rtm.rtm_addrs |= RTA_NETMASK;
sbin/routed/table.c
712
w.w_mask.sin_addr.s_addr = htonl(mask);
sbin/routed/table.c
714
masktrim(&w.w_mask);
sbin/routed/table.c
715
if (w.w_mask.sin_len == 0)
sbin/routed/table.c
716
w.w_mask.sin_len = sizeof(long);
sbin/routed/table.c
717
w.w_rtm.rtm_msglen -= (sizeof(w.w_mask) - w.w_mask.sin_len);
sbin/routed/table.c
722
cc = write(rt_sock, &w, w.w_rtm.rtm_msglen);
sbin/routed/table.c
735
} else if (cc != w.w_rtm.rtm_msglen) {
sbin/routed/table.c
737
cc, w.w_rtm.rtm_msglen, ARGS);
sbin/routed/trace.c
820
struct walkarg *w UNUSED)
sbin/savecore/savecore.c
551
size_t nw = 0, w;
sbin/savecore/savecore.c
575
w = sparsefwrite(zbuf, zbufsize - z->avail_out, fp);
sbin/savecore/savecore.c
576
if (w < zbufsize - z->avail_out)
sbin/savecore/savecore.c
578
nw += w;
sbin/savecore/savecore.c
589
size_t nw = 0, w;
sbin/savecore/savecore.c
605
w = sparsefwrite(zbuf, Zout.pos, fp);
sbin/savecore/savecore.c
606
if (w < Zout.pos)
sbin/savecore/savecore.c
608
nw += w;
stand/common/gfx_fb.c
2065
unsigned w, h;
stand/common/gfx_fb.c
2070
w = edid_info->display.max_horizontal_image_size;
stand/common/gfx_fb.c
2074
if (w == 0 || h == 0)
stand/common/gfx_fb.c
2080
if ((w == 16 && h == 9) || (w == 16 && h == 10) ||
stand/common/gfx_fb.c
2081
(w == 4 && h == 3) || (w == 5 && h == 4))
stand/common/gfx_fb.c
2087
w = w * 100 / 254;
stand/common/gfx_fb.c
2091
return (w * w + h * h);
stand/common/gfx_fb.c
2178
set_font(teken_unit_t *rows, teken_unit_t *cols, teken_unit_t h, teken_unit_t w)
stand/common/gfx_fb.c
2183
unsigned width = w;
stand/common/gfx_fb.c
2202
font = gfx_get_font(*rows, *cols, h, w);
stand/common/reloc_elf.c
193
Elf_Size w;
stand/common/reloc_elf.c
207
w = relbase + rela->r_addend;
stand/common/reloc_elf.c
208
bcopy(&w, (u_char *)data + (relbase +
stand/common/reloc_elf.c
209
rela->r_offset - dataaddr), sizeof(w));
stand/liblua/lstd.c
122
ssize_t w;
stand/liblua/lstd.c
126
w = write(stream->fd, ptr, size * count);
stand/liblua/lstd.c
127
if (w == -1)
stand/liblua/lstd.c
130
stream->offset += w;
stand/liblua/lstd.c
131
return ((size_t)w);
stand/liblua/lutils.c
345
size_t bufsz, w, wrsz;
stand/liblua/lutils.c
349
w = 0;
stand/liblua/lutils.c
382
w += wrsz;
stand/liblua/lutils.c
384
lua_pushinteger(L, w);
stand/libsa/uuid_to_string.c
100
*w++ = '-';
stand/libsa/uuid_to_string.c
101
tohex(&w, 2, u->node[0]);
stand/libsa/uuid_to_string.c
102
tohex(&w, 2, u->node[1]);
stand/libsa/uuid_to_string.c
103
tohex(&w, 2, u->node[2]);
stand/libsa/uuid_to_string.c
104
tohex(&w, 2, u->node[3]);
stand/libsa/uuid_to_string.c
105
tohex(&w, 2, u->node[4]);
stand/libsa/uuid_to_string.c
106
tohex(&w, 2, u->node[5]);
stand/libsa/uuid_to_string.c
107
*w++ = '\0';
stand/libsa/uuid_to_string.c
74
char *w;
stand/libsa/uuid_to_string.c
80
w = *s = malloc(37);
stand/libsa/uuid_to_string.c
91
tohex(&w, 8, u->time_low);
stand/libsa/uuid_to_string.c
92
*w++ = '-';
stand/libsa/uuid_to_string.c
93
tohex(&w, 4, u->time_mid);
stand/libsa/uuid_to_string.c
94
*w++ = '-';
stand/libsa/uuid_to_string.c
95
tohex(&w, 4, u->time_hi_and_version);
stand/libsa/uuid_to_string.c
96
*w++ = '-';
stand/libsa/uuid_to_string.c
98
tohex(&w, 2, u->clock_seq_hi_and_reserved);
stand/libsa/uuid_to_string.c
99
tohex(&w, 2, u->clock_seq_low);
sys/amd64/include/asmacros.h
103
.rept \qw
sys/amd64/vmm/amd/vmcb.h
226
#define VMCB_ACCESS(o, w) (0x80000000 | (((w) & 0xF) << 16) | \
sys/arm/include/bus.h
272
(*(t)->__bs_opname_s(w,sz))((t), h, o, v)
sys/arm/nvidia/tegra124/tegra124_car.c
101
.i_width = w, \
sys/arm/nvidia/tegra124/tegra124_car.c
64
#define MUX(_id, cname, plists, o, s, w) \
sys/arm/nvidia/tegra124/tegra124_car.c
73
.width = w, \
sys/arm/nvidia/tegra124/tegra124_car.c
92
#define DIV(_id, cname, plist, o, s, w, f) \
sys/arm64/include/atomic.h
109
"ld"#lse_asm_op#a#l#s" %"#w"2, %"#w"0, [%1]\n" \
sys/arm64/include/atomic.h
126
_ATOMIC_OP_IMPL(8, w, b, op, llsc_asm_op, lse_asm_op, pre, \
sys/arm64/include/atomic.h
128
_ATOMIC_OP_IMPL(16, w, h, op, llsc_asm_op, lse_asm_op, pre, \
sys/arm64/include/atomic.h
130
_ATOMIC_OP_IMPL(32, w, , op, llsc_asm_op, lse_asm_op, pre, \
sys/arm64/include/atomic.h
155
#define _ATOMIC_CMPSET_IMPL(t, w, s, bar, a, l) \
sys/arm64/include/atomic.h
163
" ld"#a"xr"#s" %"#w"0, [%2]\n" \
sys/arm64/include/atomic.h
164
" cmp %"#w"0, %"#w"3\n" \
sys/arm64/include/atomic.h
166
" st"#l"xr"#s" %w1, %"#w"4, [%2]\n" \
sys/arm64/include/atomic.h
185
"cas"#a#l#s" %"#w"1, %"#w"4, [%3]\n" \
sys/arm64/include/atomic.h
186
"cmp %"#w"1, %"#w"2\n" \
sys/arm64/include/atomic.h
215
" ld"#a"xr"#s" %"#w"0, [%2]\n" \
sys/arm64/include/atomic.h
216
" cmp %"#w"0, %"#w"3\n" \
sys/arm64/include/atomic.h
218
" st"#l"xr"#s" %w1, %"#w"4, [%2]\n" \
sys/arm64/include/atomic.h
237
"cas"#a#l#s" %"#w"1, %"#w"4, [%3]\n" \
sys/arm64/include/atomic.h
238
"cmp %"#w"1, %"#w"2\n" \
sys/arm64/include/atomic.h
261
_ATOMIC_CMPSET_IMPL(8, w, b, bar, a, l) \
sys/arm64/include/atomic.h
262
_ATOMIC_CMPSET_IMPL(16, w, h, bar, a, l) \
sys/arm64/include/atomic.h
263
_ATOMIC_CMPSET_IMPL(32, w, , bar, a, l) \
sys/arm64/include/atomic.h
279
#define _ATOMIC_FETCHADD_IMPL(t, w) \
sys/arm64/include/atomic.h
286
"1: ldxr %"#w"2, [%3]\n" \
sys/arm64/include/atomic.h
287
" add %"#w"0, %"#w"2, %"#w"4\n" \
sys/arm64/include/atomic.h
288
" stxr %w1, %"#w"0, [%3]\n" \
sys/arm64/include/atomic.h
304
"ldadd %"#w"2, %"#w"0, [%1]\n" \
sys/arm64/include/atomic.h
322
_ATOMIC_FETCHADD_IMPL(32, w)
sys/arm64/include/atomic.h
333
#define _ATOMIC_SWAP_IMPL(t, w, zreg) \
sys/arm64/include/atomic.h
340
"1: ldxr %"#w"1, [%2]\n" \
sys/arm64/include/atomic.h
341
" stxr %w0, %"#w"3, [%2]\n" \
sys/arm64/include/atomic.h
357
"swp %"#w"2, %"#w"0, [%1]\n" \
sys/arm64/include/atomic.h
381
"1: ldxr %"#w"1, [%2]\n" \
sys/arm64/include/atomic.h
405
_ATOMIC_SWAP_IMPL(32, w, wzr)
sys/arm64/include/atomic.h
412
#define _ATOMIC_TEST_OP_IMPL(t, w, op, llsc_asm_op, lse_asm_op, bar, a) \
sys/arm64/include/atomic.h
420
"1: ld"#a"xr %"#w"2, [%3]\n" \
sys/arm64/include/atomic.h
421
" "#llsc_asm_op" %"#w"0, %"#w"2, %"#w"4\n" \
sys/arm64/include/atomic.h
422
" stxr %w1, %"#w"0, [%3]\n" \
sys/arm64/include/atomic.h
439
"ld"#lse_asm_op#a" %"#w"2, %"#w"0, [%1]\n" \
sys/arm64/include/atomic.h
458
_ATOMIC_TEST_OP_IMPL(32, w, op, llsc_asm_op, lse_asm_op, , ) \
sys/arm64/include/atomic.h
459
_ATOMIC_TEST_OP_IMPL(32, w, op, llsc_asm_op, lse_asm_op, acq_, a) \
sys/arm64/include/atomic.h
466
#define _ATOMIC_LOAD_ACQ_IMPL(t, w, s) \
sys/arm64/include/atomic.h
473
"ldar"#s" %"#w"0, [%1]\n" \
sys/arm64/include/atomic.h
483
_ATOMIC_LOAD_ACQ_IMPL(8, w, b)
sys/arm64/include/atomic.h
484
_ATOMIC_LOAD_ACQ_IMPL(16, w, h)
sys/arm64/include/atomic.h
485
_ATOMIC_LOAD_ACQ_IMPL(32, w, )
sys/arm64/include/atomic.h
488
#define _ATOMIC_STORE_REL_IMPL(t, w, s) \
sys/arm64/include/atomic.h
493
"stlr"#s" %"#w"0, [%1]\n" \
sys/arm64/include/atomic.h
499
_ATOMIC_STORE_REL_IMPL(8, w, b)
sys/arm64/include/atomic.h
500
_ATOMIC_STORE_REL_IMPL(16, w, h)
sys/arm64/include/atomic.h
501
_ATOMIC_STORE_REL_IMPL(32, w, )
sys/arm64/include/atomic.h
84
#define _ATOMIC_OP_IMPL(t, w, s, op, llsc_asm_op, lse_asm_op, pre, bar, a, l) \
sys/arm64/include/atomic.h
92
"1: ld"#a"xr"#s" %"#w"0, [%2]\n" \
sys/arm64/include/atomic.h
93
" "#llsc_asm_op" %"#w"0, %"#w"0, %"#w"3\n" \
sys/arm64/include/atomic.h
94
" st"#l"xr"#s" %w1, %"#w"0, [%2]\n" \
sys/arm64/include/bus.h
297
(*(t)->__bs_opname(w,sz))((t)->bs_cookie, h, o, v)
sys/arm64/include/bus.h
309
(*(t)->__bs_opname_s(w,sz))((t)->bs_cookie, h, o, v)
sys/arm64/nvidia/tegra210/tegra210_car.c
102
.i_width = w, \
sys/arm64/nvidia/tegra210/tegra210_car.c
65
#define MUX(_id, cname, plists, o, s, w) \
sys/arm64/nvidia/tegra210/tegra210_car.c
74
.width = w, \
sys/arm64/nvidia/tegra210/tegra210_car.c
93
#define DIV(_id, cname, plist, o, s, w, f) \
sys/arm64/nvidia/tegra210/tegra210_clk_pll.c
152
#define MUX(_id, cname, plists, o, s, w) \
sys/arm64/nvidia/tegra210/tegra210_clk_pll.c
161
.width = w, \
sys/cam/mmc/mmc_da.c
1172
*bus_width_str(enum mmc_bus_width w)
sys/cam/mmc/mmc_da.c
1175
switch (w) {
sys/cddl/boot/zfs/blkptr.c
51
uint64_t w = 0;
sys/cddl/boot/zfs/blkptr.c
63
if (i % sizeof (w) == 0) {
sys/cddl/boot/zfs/blkptr.c
66
w = *bp64;
sys/cddl/boot/zfs/blkptr.c
71
buf8[i] = BF64_GET(w, (i % sizeof (w)) * NBBY, NBBY);
sys/compat/linprocfs/linprocfs.c
1525
struct walkarg *w = vw;
sys/compat/linprocfs/linprocfs.c
1550
sbuf_printf(w->sb,
sys/compat/linprocfs/linprocfs.c
1560
sbuf_printf(w->sb, "\n\n");
sys/compat/linprocfs/linprocfs.c
1572
struct walkarg w = {
sys/compat/linprocfs/linprocfs.c
1577
sbuf_printf(w.sb, "%-127s\n", "Iface\tDestination\tGateway "
sys/compat/linprocfs/linprocfs.c
1583
rib_walk(fibnum, AF_INET, false, linux_route_print, &w);
sys/compat/linux/linux_videodev2_compat.h
47
struct v4l2_rect w;
sys/compat/linuxkpi/common/include/net/mac80211.h
2180
ieee80211_queue_delayed_work(struct ieee80211_hw *hw, struct delayed_work *w,
sys/compat/linuxkpi/common/include/net/mac80211.h
2184
linuxkpi_ieee80211_queue_delayed_work(hw, w, delay);
sys/compat/linuxkpi/common/include/net/mac80211.h
2188
ieee80211_queue_work(struct ieee80211_hw *hw, struct work_struct *w)
sys/compat/linuxkpi/common/include/net/mac80211.h
2191
linuxkpi_ieee80211_queue_work(hw, w);
sys/compat/linuxkpi/common/src/linux_80211.c
8347
struct delayed_work *w, int delay)
sys/compat/linuxkpi/common/src/linux_80211.c
8355
queue_delayed_work(lhw->workq, w, delay);
sys/compat/linuxkpi/common/src/linux_80211.c
8360
struct work_struct *w)
sys/compat/linuxkpi/common/src/linux_80211.c
8368
queue_work(lhw->workq, w);
sys/crypto/chacha20/chacha.c
43
#define XOR(v,w) ((v) ^ (w))
sys/crypto/chacha20/chacha.c
44
#define PLUS(v,w) (U32V((v) + (w)))
sys/crypto/skein/skein.c
121
memset(&cfg.w,0,sizeof(cfg.w)); /* pre-pad cfg.w[] with zeroes */
sys/crypto/skein/skein.c
122
cfg.w[0] = Skein_Swap64(SKEIN_SCHEMA_VER);
sys/crypto/skein/skein.c
123
cfg.w[1] = Skein_Swap64(hashBitLen); /* hash result length in bits */
sys/crypto/skein/skein.c
124
cfg.w[2] = Skein_Swap64(treeInfo); /* tree hash config info (or SKEIN_CFG_TREE_INFO_SEQUENTIAL) */
sys/crypto/skein/skein.c
241
u64b_t w[SKEIN_512_STATE_WORDS];
sys/crypto/skein/skein.c
260
cfg.w[0] = Skein_Swap64(SKEIN_SCHEMA_VER); /* set the schema, version */
sys/crypto/skein/skein.c
261
cfg.w[1] = Skein_Swap64(hashBitLen); /* hash result length in bits */
sys/crypto/skein/skein.c
262
cfg.w[2] = Skein_Swap64(SKEIN_CFG_TREE_INFO_SEQUENTIAL);
sys/crypto/skein/skein.c
263
memset(&cfg.w[3],0,sizeof(cfg) - 3*sizeof(cfg.w[0])); /* zero pad config block */
sys/crypto/skein/skein.c
286
u64b_t w[SKEIN_512_STATE_WORDS];
sys/crypto/skein/skein.c
319
memset(&cfg.w,0,sizeof(cfg.w)); /* pre-pad cfg.w[] with zeroes */
sys/crypto/skein/skein.c
320
cfg.w[0] = Skein_Swap64(SKEIN_SCHEMA_VER);
sys/crypto/skein/skein.c
321
cfg.w[1] = Skein_Swap64(hashBitLen); /* hash result length in bits */
sys/crypto/skein/skein.c
322
cfg.w[2] = Skein_Swap64(treeInfo); /* tree hash config info (or SKEIN_CFG_TREE_INFO_SEQUENTIAL) */
sys/crypto/skein/skein.c
439
u64b_t w[SKEIN1024_STATE_WORDS];
sys/crypto/skein/skein.c
44
u64b_t w[SKEIN_256_STATE_WORDS];
sys/crypto/skein/skein.c
457
cfg.w[0] = Skein_Swap64(SKEIN_SCHEMA_VER); /* set the schema, version */
sys/crypto/skein/skein.c
458
cfg.w[1] = Skein_Swap64(hashBitLen); /* hash result length in bits */
sys/crypto/skein/skein.c
459
cfg.w[2] = Skein_Swap64(SKEIN_CFG_TREE_INFO_SEQUENTIAL);
sys/crypto/skein/skein.c
460
memset(&cfg.w[3],0,sizeof(cfg) - 3*sizeof(cfg.w[0])); /* zero pad config block */
sys/crypto/skein/skein.c
483
u64b_t w[SKEIN1024_STATE_WORDS];
sys/crypto/skein/skein.c
516
memset(&cfg.w,0,sizeof(cfg.w)); /* pre-pad cfg.w[] with zeroes */
sys/crypto/skein/skein.c
517
cfg.w[0] = Skein_Swap64(SKEIN_SCHEMA_VER);
sys/crypto/skein/skein.c
518
cfg.w[1] = Skein_Swap64(hashBitLen); /* hash result length in bits */
sys/crypto/skein/skein.c
519
cfg.w[2] = Skein_Swap64(treeInfo); /* tree hash config info (or SKEIN_CFG_TREE_INFO_SEQUENTIAL) */
sys/crypto/skein/skein.c
63
cfg.w[0] = Skein_Swap64(SKEIN_SCHEMA_VER); /* set the schema, version */
sys/crypto/skein/skein.c
64
cfg.w[1] = Skein_Swap64(hashBitLen); /* hash result length in bits */
sys/crypto/skein/skein.c
65
cfg.w[2] = Skein_Swap64(SKEIN_CFG_TREE_INFO_SEQUENTIAL);
sys/crypto/skein/skein.c
66
memset(&cfg.w[3],0,sizeof(cfg) - 3*sizeof(cfg.w[0])); /* zero pad config block */
sys/crypto/skein/skein.c
88
u64b_t w[SKEIN_256_STATE_WORDS];
sys/crypto/skein/skein_block.c
103
Skein_Get64_LSB_First(w,blkPtr,WCNT); /* get input block in little-endian format */
sys/crypto/skein/skein_block.c
105
Skein_Show_Block(BLK_BITS,&ctx->h,ctx->X,blkPtr,w,ks,ts);
sys/crypto/skein/skein_block.c
107
X0 = w[0] + ks[0]; /* do the first full key injection */
sys/crypto/skein/skein_block.c
108
X1 = w[1] + ks[1] + ts[0];
sys/crypto/skein/skein_block.c
109
X2 = w[2] + ks[2] + ts[1];
sys/crypto/skein/skein_block.c
110
X3 = w[3] + ks[3];
sys/crypto/skein/skein_block.c
213
ctx->X[0] = X0 ^ w[0];
sys/crypto/skein/skein_block.c
214
ctx->X[1] = X1 ^ w[1];
sys/crypto/skein/skein_block.c
215
ctx->X[2] = X2 ^ w[2];
sys/crypto/skein/skein_block.c
216
ctx->X[3] = X3 ^ w[3];
sys/crypto/skein/skein_block.c
267
u64b_t w [WCNT]; /* local copy of input block */
sys/crypto/skein/skein_block.c
295
Skein_Get64_LSB_First(w,blkPtr,WCNT); /* get input block in little-endian format */
sys/crypto/skein/skein_block.c
297
Skein_Show_Block(BLK_BITS,&ctx->h,ctx->X,blkPtr,w,ks,ts);
sys/crypto/skein/skein_block.c
299
X0 = w[0] + ks[0]; /* do the first full key injection */
sys/crypto/skein/skein_block.c
300
X1 = w[1] + ks[1];
sys/crypto/skein/skein_block.c
301
X2 = w[2] + ks[2];
sys/crypto/skein/skein_block.c
302
X3 = w[3] + ks[3];
sys/crypto/skein/skein_block.c
303
X4 = w[4] + ks[4];
sys/crypto/skein/skein_block.c
304
X5 = w[5] + ks[5] + ts[0];
sys/crypto/skein/skein_block.c
305
X6 = w[6] + ks[6] + ts[1];
sys/crypto/skein/skein_block.c
306
X7 = w[7] + ks[7];
sys/crypto/skein/skein_block.c
418
ctx->X[0] = X0 ^ w[0];
sys/crypto/skein/skein_block.c
419
ctx->X[1] = X1 ^ w[1];
sys/crypto/skein/skein_block.c
420
ctx->X[2] = X2 ^ w[2];
sys/crypto/skein/skein_block.c
421
ctx->X[3] = X3 ^ w[3];
sys/crypto/skein/skein_block.c
422
ctx->X[4] = X4 ^ w[4];
sys/crypto/skein/skein_block.c
423
ctx->X[5] = X5 ^ w[5];
sys/crypto/skein/skein_block.c
424
ctx->X[6] = X6 ^ w[6];
sys/crypto/skein/skein_block.c
425
ctx->X[7] = X7 ^ w[7];
sys/crypto/skein/skein_block.c
477
u64b_t w [WCNT]; /* local copy of input block */
sys/crypto/skein/skein_block.c
517
Skein_Get64_LSB_First(w,blkPtr,WCNT); /* get input block in little-endian format */
sys/crypto/skein/skein_block.c
519
Skein_Show_Block(BLK_BITS,&ctx->h,ctx->X,blkPtr,w,ks,ts);
sys/crypto/skein/skein_block.c
521
X00 = w[ 0] + ks[ 0]; /* do the first full key injection */
sys/crypto/skein/skein_block.c
522
X01 = w[ 1] + ks[ 1];
sys/crypto/skein/skein_block.c
523
X02 = w[ 2] + ks[ 2];
sys/crypto/skein/skein_block.c
524
X03 = w[ 3] + ks[ 3];
sys/crypto/skein/skein_block.c
525
X04 = w[ 4] + ks[ 4];
sys/crypto/skein/skein_block.c
526
X05 = w[ 5] + ks[ 5];
sys/crypto/skein/skein_block.c
527
X06 = w[ 6] + ks[ 6];
sys/crypto/skein/skein_block.c
528
X07 = w[ 7] + ks[ 7];
sys/crypto/skein/skein_block.c
529
X08 = w[ 8] + ks[ 8];
sys/crypto/skein/skein_block.c
530
X09 = w[ 9] + ks[ 9];
sys/crypto/skein/skein_block.c
531
X10 = w[10] + ks[10];
sys/crypto/skein/skein_block.c
532
X11 = w[11] + ks[11];
sys/crypto/skein/skein_block.c
533
X12 = w[12] + ks[12];
sys/crypto/skein/skein_block.c
534
X13 = w[13] + ks[13] + ts[0];
sys/crypto/skein/skein_block.c
535
X14 = w[14] + ks[14] + ts[1];
sys/crypto/skein/skein_block.c
536
X15 = w[15] + ks[15];
sys/crypto/skein/skein_block.c
666
ctx->X[ 0] = X00 ^ w[ 0];
sys/crypto/skein/skein_block.c
667
ctx->X[ 1] = X01 ^ w[ 1];
sys/crypto/skein/skein_block.c
668
ctx->X[ 2] = X02 ^ w[ 2];
sys/crypto/skein/skein_block.c
669
ctx->X[ 3] = X03 ^ w[ 3];
sys/crypto/skein/skein_block.c
670
ctx->X[ 4] = X04 ^ w[ 4];
sys/crypto/skein/skein_block.c
671
ctx->X[ 5] = X05 ^ w[ 5];
sys/crypto/skein/skein_block.c
672
ctx->X[ 6] = X06 ^ w[ 6];
sys/crypto/skein/skein_block.c
673
ctx->X[ 7] = X07 ^ w[ 7];
sys/crypto/skein/skein_block.c
674
ctx->X[ 8] = X08 ^ w[ 8];
sys/crypto/skein/skein_block.c
675
ctx->X[ 9] = X09 ^ w[ 9];
sys/crypto/skein/skein_block.c
676
ctx->X[10] = X10 ^ w[10];
sys/crypto/skein/skein_block.c
677
ctx->X[11] = X11 ^ w[11];
sys/crypto/skein/skein_block.c
678
ctx->X[12] = X12 ^ w[12];
sys/crypto/skein/skein_block.c
679
ctx->X[13] = X13 ^ w[13];
sys/crypto/skein/skein_block.c
680
ctx->X[14] = X14 ^ w[14];
sys/crypto/skein/skein_block.c
681
ctx->X[15] = X15 ^ w[15];
sys/crypto/skein/skein_block.c
82
u64b_t w [WCNT]; /* local copy of input block */
sys/dev/ath/ath_hal/ah_eeprom_9287.c
296
u_int w, off, len;
sys/dev/ath/ath_hal/ah_eeprom_9287.c
327
for (w = 0; w < NW(struct ar9287_eeprom); w++) {
sys/dev/ath/ath_hal/ah_eeprom_9287.c
328
off = AR9287_EEP_START_LOC + w;
sys/dev/ath/ath_hal/ah_eeprom_9287.c
329
if (!ath_hal_eepromRead(ah, off, &eep_data[w])) {
sys/dev/ath/ath_hal/ah_eeprom_9287.c
342
for (w = 0; w < NW(HAL_EEPROM_9287); w++)
sys/dev/ath/ath_hal/ah_eeprom_9287.c
343
eep_data[w] = __bswap16(eep_data[w]);
sys/dev/ath/ath_hal/ah_eeprom_9287.c
368
for (w = 0; w < len; w++)
sys/dev/ath/ath_hal/ah_eeprom_9287.c
369
sum ^= eep_data[w];
sys/dev/ath/ath_hal/ah_eeprom_v14.c
339
u_int w, off, len;
sys/dev/ath/ath_hal/ah_eeprom_v14.c
370
for (w = 0; w < NW(struct ar5416eeprom); w++) {
sys/dev/ath/ath_hal/ah_eeprom_v14.c
371
off = owl_eep_start_loc + w; /* NB: AP71 starts at 0 */
sys/dev/ath/ath_hal/ah_eeprom_v14.c
372
if (!ath_hal_eepromRead(ah, off, &eep_data[w])) {
sys/dev/ath/ath_hal/ah_eeprom_v14.c
382
for (w = 0; w < NW(struct ar5416eeprom); w++)
sys/dev/ath/ath_hal/ah_eeprom_v14.c
383
eep_data[w] = __bswap16(eep_data[w]);
sys/dev/ath/ath_hal/ah_eeprom_v14.c
408
for (w = 0; w < len; w++)
sys/dev/ath/ath_hal/ah_eeprom_v14.c
409
sum ^= eep_data[w];
sys/dev/ath/ath_hal/ah_eeprom_v4k.c
286
u_int w, off, len;
sys/dev/ath/ath_hal/ah_eeprom_v4k.c
316
for (w = 0; w < NW(struct ar5416eeprom_4k); w++) {
sys/dev/ath/ath_hal/ah_eeprom_v4k.c
317
off = owl_eep_start_loc + w; /* NB: AP71 starts at 0 */
sys/dev/ath/ath_hal/ah_eeprom_v4k.c
318
if (!ath_hal_eepromRead(ah, off, &eep_data[w])) {
sys/dev/ath/ath_hal/ah_eeprom_v4k.c
331
for (w = 0; w < NW(struct ar5416eeprom_4k); w++)
sys/dev/ath/ath_hal/ah_eeprom_v4k.c
332
eep_data[w] = __bswap16(eep_data[w]);
sys/dev/ath/ath_hal/ah_eeprom_v4k.c
357
for (w = 0; w < len; w++) {
sys/dev/ath/ath_hal/ah_eeprom_v4k.c
358
sum ^= eep_data[w];
sys/dev/ath/if_ath.c
2893
int w = 0;
sys/dev/ath/if_ath.c
2899
w = 1;
sys/dev/ath/if_ath.c
2903
w = 0;
sys/dev/ath/if_ath.c
2928
if (w == 0)
sys/dev/ath/if_ath.c
2933
return w;
sys/dev/atkbdc/psm.c
1732
evdev_push_abs(sc->evdev_a, ABS_TOOL_WIDTH, f->w);
sys/dev/atkbdc/psm.c
3264
int w, id, nfingers, palm, ewcode, extended_buttons, clickpad_pressed;
sys/dev/atkbdc/psm.c
329
int w;
sys/dev/atkbdc/psm.c
3350
w = ((pb->ipacket[0] & 0x30) >> 2) |
sys/dev/atkbdc/psm.c
3355
w = 4;
sys/dev/atkbdc/psm.c
3358
switch (w) {
sys/dev/atkbdc/psm.c
339
(f) = (finger_t) { .x = -1, .y = -1, .p = 0, .w = 0, .flags = 0 }; \
sys/dev/atkbdc/psm.c
3407
.w = PSM_FINGER_DEFAULT_W,
sys/dev/atkbdc/psm.c
3418
.w = (((pb->ipacket[5] & 0x01) << 2) |
sys/dev/atkbdc/psm.c
3439
nfingers = w + 2;
sys/dev/atkbdc/psm.c
3544
.w = (((pb->ipacket[2] & 0x01) << 2) |
sys/dev/atkbdc/psm.c
3558
.w = w,
sys/dev/atkbdc/psm.c
3756
(sc->synhw.capPalmDetect && f->w <= sc->syninfo.max_width) ||
sys/dev/atkbdc/psm.c
3768
VLOG(2, (LOG_DEBUG, "synaptics: palm detected! (%d)\n", f->w));
sys/dev/atkbdc/psm.c
3846
x0, y0, f->p, f->w));
sys/dev/atkbdc/psm.c
391
.w = PSM_FINGER_DEFAULT_W, \
sys/dev/atkbdc/psm.c
4238
smoother_id, x0, y0, f->p, f->w));
sys/dev/atkbdc/psm.c
4485
f[0].w = ((pb->ipacket[0] & 0x30) >> 2) |
sys/dev/atkbdc/psm.c
4489
f[0].w = PSM_FINGER_DEFAULT_W;
sys/dev/atkbdc/psm.c
4526
.w = PSM_FINGER_DEFAULT_W,
sys/dev/atkbdc/psm.c
4552
fn.w = ((pb->ipacket[0] & 0x30) >> 2) |
sys/dev/atkbdc/psm.c
4625
fn.w =(pb->ipacket[0] & 0xf0) >> 4;
sys/dev/atkbdc/psm.c
4753
f[id].x, f[id].y, f[id].p, f[id].w, f[id].flags));
sys/dev/atkbdc/psm.c
4775
f[id].w * sc->elanhw.dptracex);
sys/dev/cxgb/common/cxgb_t3_hw.c
3428
unsigned int i, w;
sys/dev/cxgb/common/cxgb_t3_hw.c
3439
for (w = 0; w < NCCTRL_WIN; ++w) {
sys/dev/cxgb/common/cxgb_t3_hw.c
3442
inc = max(((mtu - 40) * alpha[w]) / avg_pkts[w],
sys/dev/cxgb/common/cxgb_t3_hw.c
3446
(w << 16) | (beta[w] << 13) | inc);
sys/dev/cxgb/common/cxgb_t3_hw.c
3482
unsigned int mtu, w;
sys/dev/cxgb/common/cxgb_t3_hw.c
3485
for (w = 0; w < NCCTRL_WIN; ++w) {
sys/dev/cxgb/common/cxgb_t3_hw.c
3487
0xffff0000 | (mtu << 5) | w);
sys/dev/cxgb/common/cxgb_t3_hw.c
3488
incr[mtu][w] = (unsigned short)t3_read_reg(adap,
sys/dev/cxgbe/common/t4_hw.c
8053
unsigned int mtu, w;
sys/dev/cxgbe/common/t4_hw.c
8056
for (w = 0; w < NCCTRL_WIN; ++w) {
sys/dev/cxgbe/common/t4_hw.c
8058
V_ROWINDEX(0xffff) | (mtu << 5) | w);
sys/dev/cxgbe/common/t4_hw.c
8059
incr[mtu][w] = (u16)t4_read_reg(adap,
sys/dev/cxgbe/common/t4_hw.c
8149
unsigned int i, w;
sys/dev/cxgbe/common/t4_hw.c
8160
for (w = 0; w < NCCTRL_WIN; ++w) {
sys/dev/cxgbe/common/t4_hw.c
8163
inc = max(((mtu - 40) * alpha[w]) / avg_pkts[w],
sys/dev/cxgbe/common/t4_hw.c
8167
(w << 16) | (beta[w] << 13) | inc);
sys/dev/cxgbe/offload.h
38
#define INIT_ULPTX_WRH(w, wrlen, atomic, tid) do { \
sys/dev/cxgbe/offload.h
39
(w)->wr_hi = htonl(V_FW_WR_OP(FW_ULPTX_WR) | V_FW_WR_ATOMIC(atomic)); \
sys/dev/cxgbe/offload.h
40
(w)->wr_mid = htonl(V_FW_WR_LEN16(DIV_ROUND_UP(wrlen, 16)) | \
sys/dev/cxgbe/offload.h
42
(w)->wr_lo = cpu_to_be64(0); \
sys/dev/cxgbe/offload.h
45
#define INIT_ULPTX_WR(w, wrlen, atomic, tid) \
sys/dev/cxgbe/offload.h
46
INIT_ULPTX_WRH(&((w)->wr), wrlen, atomic, tid)
sys/dev/cxgbe/offload.h
48
#define INIT_TP_WR(w, tid) do { \
sys/dev/cxgbe/offload.h
49
(w)->wr.wr_hi = htonl(V_FW_WR_OP(FW_TP_WR) | \
sys/dev/cxgbe/offload.h
50
V_FW_WR_IMMDLEN(sizeof(*w) - sizeof(w->wr))); \
sys/dev/cxgbe/offload.h
51
(w)->wr.wr_mid = htonl(V_FW_WR_LEN16(DIV_ROUND_UP(sizeof(*w), 16)) | \
sys/dev/cxgbe/offload.h
53
(w)->wr.wr_lo = cpu_to_be64(0); \
sys/dev/cxgbe/offload.h
56
#define INIT_TP_WR_MIT_CPL(w, cpl, tid) do { \
sys/dev/cxgbe/offload.h
57
INIT_TP_WR(w, tid); \
sys/dev/cxgbe/offload.h
58
OPCODE_TID(w) = htonl(MK_OPCODE_TID(cpl, tid)); \
sys/dev/cxgbe/t4_sge.c
2968
void *w;
sys/dev/cxgbe/t4_sge.c
3006
w = &eq->desc[eq->pidx];
sys/dev/cxgbe/t4_sge.c
3009
w = &wrq->ss[0];
sys/dev/cxgbe/t4_sge.c
3016
return (w);
sys/dev/cxgbe/t4_sge.c
3020
commit_wrq_wr(struct sge_wrq *wrq, void *w, struct wrq_cookie *cookie)
sys/dev/cxgbe/t4_sge.c
3028
struct wrqe *wr = __containerof(w, struct wrqe, wr);
sys/dev/cxgbe/t4_sge.c
3034
if (__predict_false(w == &wrq->ss[0])) {
sys/dev/drm2/drmP.h
1598
#define DRM_WAKEUP(w) wakeup((void *)w)
sys/dev/drm2/drmP.h
1599
#define DRM_WAKEUP_INT(w) wakeup(w)
sys/dev/drm2/drm_edid.c
1139
newmode = drm_gtf_mode(dev, m->w, m->h, m->r, 0, 0);
sys/dev/drm2/drm_edid.c
1168
newmode = drm_cvt_mode(dev, m->w, m->h, m->r, rb, 0, 0);
sys/dev/drm2/drm_edid.c
1252
est3_modes[m].w,
sys/dev/drm2/drm_edid.c
861
int w, h;
sys/dev/drm2/drm_edid.c
876
if ((mode->hdisplay == cea_interlaced[i].w) &&
sys/dev/drm2/drm_edid_modes.h
415
short w;
sys/dev/enetc/enetc_hw.h
404
} w;
sys/dev/enetc/if_enetc.c
1309
desc->w.addr = paddrs[i];
sys/dev/fdc/fdc.c
1408
fd_access(struct g_provider *pp, int r, int w, int e)
sys/dev/fdc/fdc.c
1425
aw = w + pp->acw;
sys/dev/fdc/fdc.c
1452
if (w > 0 && (fd->flags & FD_WP)) {
sys/dev/firewire/fwohci.c
2140
int s, w=0, ldesc;
sys/dev/firewire/fwohci.c
2172
w++;
sys/dev/firewire/fwohci.c
2176
if (w)
sys/dev/firewire/fwohci.c
2188
int w = 0, ldesc;
sys/dev/firewire/fwohci.c
2230
w++;
sys/dev/firewire/fwohci.c
2234
if (w == 0)
sys/dev/firewire/sbp.c
380
char w[SBP_NUM_TARGETS];
sys/dev/firewire/sbp.c
382
bzero(w, sizeof(w));
sys/dev/firewire/sbp.c
389
w[wired[i].target] = 1;
sys/dev/firewire/sbp.c
406
if (sbp->targets[i].fwdev == NULL && w[i] == 0) {
sys/dev/fxp/if_fxp.c
329
uint16_t w;
sys/dev/fxp/if_fxp.c
342
CSR_READ_1(sc, FXP_CSR_SCB_RUSCUS), flowctl.w);
sys/dev/hid/bcm5974.c
233
struct bcm5974_axis w; /* finger width limits */
sys/dev/hid/bcm5974.c
249
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/hid/bcm5974.c
258
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/hid/bcm5974.c
267
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/hid/bcm5974.c
276
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/hid/bcm5974.c
285
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/hid/bcm5974.c
294
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/hid/bcm5974.c
303
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/hid/bcm5974.c
312
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/hid/bcm5974.c
321
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/hid/bcm5974.c
330
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/hid/bcm5974.c
339
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/hid/bcm5974.c
348
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/hid/bcm5974.c
363
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/hid/bcm5974.c
372
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/hid/bcm5974.c
381
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/hid/bcm5974.c
390
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/hid/bcm5974.c
399
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/hid/bcm5974.c
753
BCM5974_ABS(sc->sc_evdev, ABS_MT_TOUCH_MAJOR, sc->sc_params->w);
sys/dev/hid/bcm5974.c
754
BCM5974_ABS(sc->sc_evdev, ABS_MT_TOUCH_MINOR, sc->sc_params->w);
sys/dev/hid/bcm5974.c
757
BCM5974_ABS(sc->sc_evdev, ABS_MT_WIDTH_MAJOR, sc->sc_params->w);
sys/dev/hid/bcm5974.c
758
BCM5974_ABS(sc->sc_evdev, ABS_MT_WIDTH_MINOR, sc->sc_params->w);
sys/dev/hid/ietp.c
371
int32_t x, y, w, h, wh;
sys/dev/hid/ietp.c
415
w = (wh & 0x0F) * (sc->trace_x - IETP_FWIDTH_REDUCE);
sys/dev/hid/ietp.c
424
.ori = w > h ? 1 : 0,
sys/dev/hid/ietp.c
425
.maj = MAX(w, h),
sys/dev/hid/ietp.c
426
.min = MIN(w, h),
sys/dev/hid/ps4dshock.c
1242
#define HGETW(w) ((int16_t)((w)[0] | (((uint16_t)((w)[1])) << 8)))
sys/dev/hptmv/hptproc.c
363
#define shortswap(w) ((WORD)((w)>>8 | ((w) & 0xFF)<<8))
sys/dev/hptmv/osbsd.h
258
#define shortswap(w) ((WORD)((w)>>8 | ((w) & 0xFF)<<8))
sys/dev/hyperv/vmbus/vmbus_br.c
38
#define VMBUS_BR_WAVAIL(r, w, z) \
sys/dev/hyperv/vmbus/vmbus_br.c
39
(((w) >= (r)) ? ((z) - ((w) - (r))) : ((r) - (w)))
sys/dev/iwi/if_iwi.c
2341
const uint16_t *w;
sys/dev/iwi/if_iwi.c
2380
for (w = (const uint16_t *)uc; size > 0; w++, size -= 2)
sys/dev/iwi/if_iwi.c
2381
MEM_WRITE_2(sc, 0x200010, htole16(*w));
sys/dev/iwn/if_iwn.c
4373
uint16_t *w = &sc->sched[qid * IWN4965_SCHED_COUNT + idx];
sys/dev/iwn/if_iwn.c
4377
*w = htole16(len + 8);
sys/dev/iwn/if_iwn.c
4381
*(w + IWN_TX_RING_COUNT) = *w;
sys/dev/iwn/if_iwn.c
4391
uint16_t *w = &sc->sched[qid * IWN5000_SCHED_COUNT + idx];
sys/dev/iwn/if_iwn.c
4395
*w = htole16(id << 12 | (len + 8));
sys/dev/iwn/if_iwn.c
4399
*(w + IWN_TX_RING_COUNT) = *w;
sys/dev/iwn/if_iwn.c
4409
uint16_t *w = &sc->sched[qid * IWN5000_SCHED_COUNT + idx];
sys/dev/iwn/if_iwn.c
4413
*w = (*w & htole16(0xf000)) | htole16(1);
sys/dev/iwn/if_iwn.c
4417
*(w + IWN_TX_RING_COUNT) = *w;
sys/dev/ixgbe/ixgbe_e610.c
797
static u8 ixgbe_hweight8(u32 w)
sys/dev/ixgbe/ixgbe_e610.c
802
if (w & (1 << i))
sys/dev/ixgbe/ixgbe_e610.c
815
static u8 ixgbe_hweight32(u32 w)
sys/dev/ixgbe/ixgbe_e610.c
822
if (w & bitMask)
sys/dev/kbdmux/kbdmux.c
105
#define KBDMUX_LOCK_ASSERT(s, w) \
sys/dev/kbdmux/kbdmux.c
106
mtx_assert(&(s)->ks_lock, (w))
sys/dev/kbdmux/kbdmux.c
118
#define KBDMUX_LOCK_ASSERT(s, w)
sys/dev/liquidio/base/lio_common.h
365
uint64_t w:1;
sys/dev/liquidio/base/lio_common.h
436
uint64_t w:1;
sys/dev/liquidio/base/lio_ctrl.h
169
pki_ih3->w = 1;
sys/dev/liquidio/base/lio_request_manager.c
638
pki_ih3->w = 1;
sys/dev/md/md.c
467
g_md_access(struct g_provider *pp, int r, int w, int e)
sys/dev/md/md.c
473
if (r <= 0 && w <= 0 && e <= 0)
sys/dev/md/md.c
478
w += pp->acw;
sys/dev/md/md.c
480
if ((sc->flags & MD_READONLY) != 0 && w > 0)
sys/dev/md/md.c
482
if ((pp->acr + pp->acw + pp->ace) == 0 && (r + w + e) > 0) {
sys/dev/md/md.c
484
} else if ((pp->acr + pp->acw + pp->ace) > 0 && (r + w + e) == 0) {
sys/dev/mfi/mfireg.h
1060
uint32_t w[24];
sys/dev/mrsas/mrsas.c
645
prev_aen.word = le32toh(sc->aen_cmd->frame->dcmd.mbox.w[1]);
sys/dev/mrsas/mrsas.c
701
dcmd->mbox.w[0] = htole32(seq_num);
sys/dev/mrsas/mrsas.c
703
dcmd->mbox.w[1] = htole32(curr_aen.word);
sys/dev/mrsas/mrsas.h
2686
u_int32_t w[3];
sys/dev/mrsas/mrsas.h
2952
u_int32_t w[24];
sys/dev/mrsas/mrsas.h
3221
u_int32_t w;
sys/dev/mwl/mwlhal.c
843
uint32_t w;
sys/dev/mwl/mwlhal.c
849
w = (chan->channelFlags.FreqBand == MWL_FREQ_BAND_2DOT4GHZ) ?
sys/dev/mwl/mwlhal.c
853
w |= CH_10_MHz_WIDTH;
sys/dev/mwl/mwlhal.c
856
w |= CH_20_MHz_WIDTH;
sys/dev/mwl/mwlhal.c
860
w |= CH_40_MHz_WIDTH;
sys/dev/mwl/mwlhal.c
865
w |= EXT_CH_NONE;
sys/dev/mwl/mwlhal.c
868
w |= EXT_CH_ABOVE_CTRL_CH;
sys/dev/mwl/mwlhal.c
871
w |= EXT_CH_BELOW_CTRL_CH;
sys/dev/mwl/mwlhal.c
874
return htole32(w);
sys/dev/nvdimm/nvdimm_spa.c
423
nvdimm_spa_g_access(struct g_provider *pp, int r, int w, int e)
sys/dev/ocs_fc/ocs_hw.c
12520
static int32_t ocs_hw_workaround_match(ocs_hw_t *hw, hw_workaround_t *w);
sys/dev/ocs_fc/ocs_hw.c
12570
ocs_hw_workaround_match(ocs_hw_t *hw, hw_workaround_t *w)
sys/dev/ocs_fc/ocs_hw.c
12572
return (((w->asic_type == SLI4_ASIC_TYPE_ANY) || (w->asic_type == hw->sli.asic_type)) &&
sys/dev/ocs_fc/ocs_hw.c
12573
((w->asic_rev == SLI4_ASIC_REV_ANY) || (w->asic_rev == hw->sli.asic_rev)) &&
sys/dev/ocs_fc/ocs_hw.c
12574
(w->fwrev_low <= hw->workaround.fwrev) &&
sys/dev/ocs_fc/ocs_hw.c
12575
((w->fwrev_high == HW_FWREV_MAX) || (hw->workaround.fwrev < w->fwrev_high)));
sys/dev/ocs_fc/ocs_hw.c
12592
hw_workaround_t *w;
sys/dev/ocs_fc/ocs_hw.c
12610
for (i = 0, w = hw_workarounds; i < ARRAY_SIZE(hw_workarounds); i++, w++) {
sys/dev/ocs_fc/ocs_hw.c
12611
if (ocs_hw_workaround_match(hw, w)) {
sys/dev/ocs_fc/ocs_hw.c
12612
switch(w->workaround) {
sys/dev/ocs_fc/ocs_hw.c
12614
ocs_log_debug(hw->os, "Override: test: %d\n", w->value);
sys/dev/ocs_fc/ocs_hw.c
12626
ocs_log_debug(hw->os, "HW Workaround: override max_qentries: %d\n", w->value);
sys/dev/ocs_fc/ocs_hw.c
12628
if (hw->num_qentries[q] > w->value) {
sys/dev/ocs_fc/ocs_hw.c
12629
hw->num_qentries[q] = w->value;
sys/dev/ocs_fc/ocs_hw.c
12635
ocs_log_debug(hw->os, "HW Workaround: override RQ max_qentries: %d\n", w->value);
sys/dev/ocs_fc/ocs_hw.c
12636
if (hw->num_qentries[SLI_QTYPE_RQ] > w->value) {
sys/dev/ocs_fc/ocs_hw.c
12637
hw->num_qentries[SLI_QTYPE_RQ] = w->value;
sys/dev/ocs_fc/ocs_hw.c
12642
ocs_log_debug(hw->os, "HW Workaround: set WQE count method=%d\n", w->value);
sys/dev/ocs_fc/ocs_hw.c
12643
sli4->config.count_method[SLI_QTYPE_WQ] = w->value;
sys/dev/ocs_fc/ocs_hw.c
12648
ocs_log_debug(hw->os, "HW Workaround: set RQE count method=%d\n", w->value);
sys/dev/ocs_fc/ocs_hw.c
12649
sli4->config.count_method[SLI_QTYPE_RQ] = w->value;
sys/dev/ofw/ofw_disk.c
199
g_ofwd_access(struct g_provider *pp, int r, int w, int e)
sys/dev/pci/pci.c
4243
#define REG(n, w) PCIB_READ_CONFIG(pcib, busno, s, f, n, w)
sys/dev/pci/pci.c
4290
#define REG(n, w) PCIB_READ_CONFIG(pcib, busno, s, f, n, w)
sys/dev/pci/pci.c
687
#define REG(n, w) PCIB_READ_CONFIG(pcib, b, s, f, n, w)
sys/dev/pci/pci.c
722
#define REG(n, w) PCIB_READ_CONFIG(pcib, b, s, f, n, w)
sys/dev/pci/pci.c
814
#define REG(n, w) PCIB_READ_CONFIG(pcib, cfg->bus, cfg->slot, cfg->func, \
sys/dev/pci/pci.c
815
cfg->ea.ea_location + (n), w)
sys/dev/pci/pci.c
888
#define REG(n, w) PCIB_READ_CONFIG(pcib, cfg->bus, cfg->slot, cfg->func, n, w)
sys/dev/pci/pci.c
889
#define WREG(n, v, w) PCIB_WRITE_CONFIG(pcib, cfg->bus, cfg->slot, cfg->func, n, v, w)
sys/dev/pci/pci_iov.c
84
#define IOV_READ(d, r, w) \
sys/dev/pci/pci_iov.c
85
pci_read_config((d)->cfg.dev, (d)->cfg.iov->iov_pos + r, w)
sys/dev/pci/pci_iov.c
87
#define IOV_WRITE(d, r, v, w) \
sys/dev/pci/pci_iov.c
88
pci_write_config((d)->cfg.dev, (d)->cfg.iov->iov_pos + r, v, w)
sys/dev/pci/pci_pci.c
1681
pcib_suballoc_resource(struct pcib_softc *sc, struct pcib_window *w,
sys/dev/pci/pci_pci.c
1687
if (!pcib_is_window_open(w))
sys/dev/pci/pci_pci.c
1690
res = rman_reserve_resource(&w->rman, start, end, count,
sys/dev/pci/pci_pci.c
1698
w->name, rman_get_start(res), rman_get_end(res), rid,
sys/dev/pci/pci_pci.c
1715
pcib_alloc_new_window(struct pcib_softc *sc, struct pcib_window *w, int type,
sys/dev/pci/pci_pci.c
1758
w->base = base;
sys/dev/pci/pci_pci.c
1759
w->limit = limit;
sys/dev/pci/pci_pci.c
1766
wmask = ((rman_res_t)1 << w->step) - 1;
sys/dev/pci/pci_pci.c
1767
if (RF_ALIGNMENT(flags) < w->step) {
sys/dev/pci/pci_pci.c
1769
flags |= RF_ALIGNMENT_LOG2(w->step);
sys/dev/pci/pci_pci.c
1773
count = roundup2(count, (rman_res_t)1 << w->step);
sys/dev/pci/pci_pci.c
1774
rid = w->reg;
sys/dev/pci/pci_pci.c
1779
pcib_add_window_resources(w, &res, 1);
sys/dev/pci/pci_pci.c
1781
w->base = rman_get_start(res);
sys/dev/pci/pci_pci.c
1782
w->limit = rman_get_end(res);
sys/dev/pci/pci_pci.c
1788
pcib_expand_window(struct pcib_softc *sc, struct pcib_window *w, int type,
sys/dev/pci/pci_pci.c
1794
KASSERT(base <= w->base && limit >= w->limit,
sys/dev/pci/pci_pci.c
1801
KASSERT(limit == w->limit || base == w->base,
sys/dev/pci/pci_pci.c
1813
(limit <= 65535 || (base <= 65535 && base != w->base))) {
sys/dev/pci/pci_pci.c
1814
KASSERT(limit == w->limit || limit <= 65535,
sys/dev/pci/pci_pci.c
1817
if (base != w->base)
sys/dev/pci/pci_pci.c
1818
error = pcib_alloc_nonisa_ranges(sc, base, w->base - 1);
sys/dev/pci/pci_pci.c
1820
error = pcib_alloc_nonisa_ranges(sc, w->limit + 1,
sys/dev/pci/pci_pci.c
1823
w->base = base;
sys/dev/pci/pci_pci.c
1824
w->limit = limit;
sys/dev/pci/pci_pci.c
1835
for (i = 0; i < w->count; i++) {
sys/dev/pci/pci_pci.c
1836
if (rman_get_end(w->res[i]) == w->limit)
sys/dev/pci/pci_pci.c
1839
KASSERT(i != w->count, ("did not find existing resource"));
sys/dev/pci/pci_pci.c
1840
res = w->res[i];
sys/dev/pci/pci_pci.c
1849
w->base <= 65535) {
sys/dev/pci/pci_pci.c
1854
KASSERT(w->base == rman_get_start(res),
sys/dev/pci/pci_pci.c
1865
if (w->base != base) {
sys/dev/pci/pci_pci.c
1866
error = rman_manage_region(&w->rman, base, w->base - 1);
sys/dev/pci/pci_pci.c
1867
w->base = base;
sys/dev/pci/pci_pci.c
1869
error = rman_manage_region(&w->rman, w->limit + 1, limit);
sys/dev/pci/pci_pci.c
1870
w->limit = limit;
sys/dev/pci/pci_pci.c
1875
"failed to expand %s resource manager\n", w->name);
sys/dev/pci/pci_pci.c
1877
rman_get_start(res) : w->base, w->limit);
sys/dev/pci/pci_pci.c
1886
pcib_grow_window(struct pcib_softc *sc, struct pcib_window *w, int type,
sys/dev/pci/pci_pci.c
1899
if (!w->valid)
sys/dev/pci/pci_pci.c
1904
if (end > w->rman.rm_end)
sys/dev/pci/pci_pci.c
1905
end = w->rman.rm_end;
sys/dev/pci/pci_pci.c
1908
wmask = ((rman_res_t)1 << w->step) - 1;
sys/dev/pci/pci_pci.c
1914
if (w->res == NULL) {
sys/dev/pci/pci_pci.c
1915
error = pcib_alloc_new_window(sc, w, type, start, end, count,
sys/dev/pci/pci_pci.c
1921
w->name, start, end, count);
sys/dev/pci/pci_pci.c
1927
w->name, (uintmax_t)w->base, (uintmax_t)w->limit);
sys/dev/pci/pci_pci.c
1953
w->name, start, end, count);
sys/dev/pci/pci_pci.c
1955
if (start < w->base) {
sys/dev/pci/pci_pci.c
1956
if (rman_first_free_region(&w->rman, &start_free, &end_free) !=
sys/dev/pci/pci_pci.c
1957
0 || start_free != w->base)
sys/dev/pci/pci_pci.c
1958
end_free = w->base;
sys/dev/pci/pci_pci.c
1979
front = w->base - front;
sys/dev/pci/pci_pci.c
1984
if (end > w->limit) {
sys/dev/pci/pci_pci.c
1985
if (rman_last_free_region(&w->rman, &start_free, &end_free) !=
sys/dev/pci/pci_pci.c
1986
0 || end_free != w->limit)
sys/dev/pci/pci_pci.c
1987
start_free = w->limit + 1;
sys/dev/pci/pci_pci.c
2007
back -= w->limit;
sys/dev/pci/pci_pci.c
2020
error = pcib_expand_window(sc, w, type, w->base - front,
sys/dev/pci/pci_pci.c
2021
w->limit);
sys/dev/pci/pci_pci.c
2026
error = pcib_expand_window(sc, w, type, w->base,
sys/dev/pci/pci_pci.c
2027
w->limit + back);
sys/dev/pci/pci_pci.c
2038
w->name, (uintmax_t)w->base, (uintmax_t)w->limit);
sys/dev/pci/pci_pci.c
2042
KASSERT((w->base & wmask) == 0, ("start address is not aligned"));
sys/dev/pci/pci_pci.c
2043
KASSERT((w->limit & wmask) == wmask, ("end address is not aligned"));
sys/dev/pci/pci_pci.c
2044
pcib_write_windows(sc, w->mask);
sys/dev/pci/pci_pci.c
2144
struct pcib_window *w;
sys/dev/pci/pci_pci.c
2176
w = pcib_get_resource_window(sc, r);
sys/dev/pci/pci_pci.c
2177
KASSERT(w != NULL,
sys/dev/pci/pci_pci.c
2185
if (start < w->base || end > w->limit) {
sys/dev/pci/pci_pci.c
2186
wmask = ((rman_res_t)1 << w->step) - 1;
sys/dev/pci/pci_pci.c
2187
error = pcib_expand_window(sc, w, type,
sys/dev/pci/pci_pci.c
2188
MIN(start & ~wmask, w->base),
sys/dev/pci/pci_pci.c
2189
MAX(end | wmask, w->limit));
sys/dev/pci/pci_pci.c
2195
w->name, (uintmax_t)w->base,
sys/dev/pci/pci_pci.c
2196
(uintmax_t)w->limit);
sys/dev/pci/pci_pci.c
2197
pcib_write_windows(sc, w->mask);
sys/dev/pci/pci_pci.c
2274
pcib_find_parent_resource(struct pcib_window *w, struct resource *r)
sys/dev/pci/pci_pci.c
2276
for (int i = 0; i < w->count; i++) {
sys/dev/pci/pci_pci.c
2277
if (rman_get_start(w->res[i]) <= rman_get_start(r) &&
sys/dev/pci/pci_pci.c
2278
rman_get_end(w->res[i]) >= rman_get_end(r))
sys/dev/pci/pci_pci.c
2279
return (w->res[i]);
sys/dev/pci/pci_pci.c
2290
struct pcib_window *w;
sys/dev/pci/pci_pci.c
2295
w = pcib_get_resource_window(sc, r);
sys/dev/pci/pci_pci.c
2296
if (w == NULL)
sys/dev/pci/pci_pci.c
2308
pres = pcib_find_parent_resource(w, r);
sys/dev/pci/pci_pci.c
2322
struct pcib_window *w;
sys/dev/pci/pci_pci.c
2325
w = pcib_get_resource_window(sc, r);
sys/dev/pci/pci_pci.c
2326
if (w == NULL)
sys/dev/pci/pci_pci.c
2329
pres = pcib_find_parent_resource(w, r);
sys/dev/pci/pci_pci.c
289
pcib_add_window_resources(struct pcib_window *w, struct resource **res,
sys/dev/pci/pci_pci.c
295
newarray = malloc(sizeof(struct resource *) * (w->count + count),
sys/dev/pci/pci_pci.c
297
if (w->res != NULL)
sys/dev/pci/pci_pci.c
298
bcopy(w->res, newarray, sizeof(struct resource *) * w->count);
sys/dev/pci/pci_pci.c
299
bcopy(res, newarray + w->count, sizeof(struct resource *) * count);
sys/dev/pci/pci_pci.c
300
free(w->res, M_DEVBUF);
sys/dev/pci/pci_pci.c
301
w->res = newarray;
sys/dev/pci/pci_pci.c
302
w->count += count;
sys/dev/pci/pci_pci.c
305
error = rman_manage_region(&w->rman, rman_get_start(res[i]),
sys/dev/pci/pci_pci.c
364
struct pcib_window *w;
sys/dev/pci/pci_pci.c
371
w = &as->sc->io;
sys/dev/pci/pci_pci.c
372
rid = w->reg;
sys/dev/pci/pci_pci.c
417
pcib_alloc_window(struct pcib_softc *sc, struct pcib_window *w, int type,
sys/dev/pci/pci_pci.c
426
w->rman.rm_start = 0;
sys/dev/pci/pci_pci.c
427
w->rman.rm_end = max_address;
sys/dev/pci/pci_pci.c
428
w->rman.rm_type = RMAN_ARRAY;
sys/dev/pci/pci_pci.c
430
device_get_nameunit(sc->dev), w->name);
sys/dev/pci/pci_pci.c
431
w->rman.rm_descr = strdup(buf, M_DEVBUF);
sys/dev/pci/pci_pci.c
432
error = rman_init(&w->rman);
sys/dev/pci/pci_pci.c
435
device_get_nameunit(sc->dev), w->name);
sys/dev/pci/pci_pci.c
437
if (!pcib_is_window_open(w))
sys/dev/pci/pci_pci.c
451
if (w->base == 0 && w->limit == ((pci_addr_t)1 << w->step) - 1) {
sys/dev/pci/pci_pci.c
452
w->base = max_address;
sys/dev/pci/pci_pci.c
453
w->limit = 0;
sys/dev/pci/pci_pci.c
454
pcib_write_windows(sc, w->mask);
sys/dev/pci/pci_pci.c
458
if (w->base > max_address || w->limit > max_address) {
sys/dev/pci/pci_pci.c
460
"initial %s window has too many bits, ignoring\n", w->name);
sys/dev/pci/pci_pci.c
464
(void)pcib_alloc_nonisa_ranges(sc, w->base, w->limit);
sys/dev/pci/pci_pci.c
466
rid = w->reg;
sys/dev/pci/pci_pci.c
467
res = bus_alloc_resource(sc->dev, type, &rid, w->base, w->limit,
sys/dev/pci/pci_pci.c
468
w->limit - w->base + 1, flags | RF_ACTIVE | RF_UNMAPPED);
sys/dev/pci/pci_pci.c
470
pcib_add_window_resources(w, &res, 1);
sys/dev/pci/pci_pci.c
472
if (w->res == NULL) {
sys/dev/pci/pci_pci.c
475
w->name, (uintmax_t)w->base, (uintmax_t)w->limit);
sys/dev/pci/pci_pci.c
476
w->base = max_address;
sys/dev/pci/pci_pci.c
477
w->limit = 0;
sys/dev/pci/pci_pci.c
478
pcib_write_windows(sc, w->mask);
sys/dev/pci/pci_pci.c
589
pcib_release_window(struct pcib_softc *sc, struct pcib_window *w, int type)
sys/dev/pci/pci_pci.c
594
if (!w->valid)
sys/dev/pci/pci_pci.c
598
error = rman_fini(&w->rman);
sys/dev/pci/pci_pci.c
600
device_printf(dev, "failed to release %s rman\n", w->name);
sys/dev/pci/pci_pci.c
603
free(__DECONST(char *, w->rman.rm_descr), M_DEVBUF);
sys/dev/pci/pci_pci.c
605
for (i = 0; i < w->count; i++) {
sys/dev/pci/pci_pci.c
606
error = bus_free_resource(dev, type, w->res[i]);
sys/dev/pci/pci_pci.c
609
"failed to release %s resource: %d\n", w->name,
sys/dev/pci/pci_pci.c
612
free(w->res, M_DEVBUF);
sys/dev/safe/safe.c
1395
u_int32_t w, v;
sys/dev/safe/safe.c
1417
w = READ_REG(sc, SAFE_RNG_OUT);
sys/dev/safe/safe.c
1420
if (v != w) {
sys/dev/safe/safe.c
1421
w = v;
sys/dev/safe/safe.c
1431
if (v != w)
sys/dev/safe/safe.c
1486
u_int32_t freq_inc, w;
sys/dev/safe/safe.c
1494
w = READ_REG(sc, SAFE_RNG_CNFG);
sys/dev/safe/safe.c
1495
freq_inc = ((w + freq_inc) & 0x3fL);
sys/dev/safe/safe.c
1496
w = ((w & ~0x3fL) | freq_inc);
sys/dev/safe/safe.c
1497
WRITE_REG(sc, SAFE_RNG_CNFG, w);
sys/dev/sound/pci/emu10k1.c
1435
emu_addefxop(struct sc_info *sc, int op, int z, int w, int x, int y,
sys/dev/sound/pci/emu10k1.c
1439
emu_wrefx(sc, (*pc) * 2 + 1, (op << 20) | (z << 10) | w);
sys/dev/sound/pci/emu10k1.c
1444
audigy_addefxop(struct sc_info *sc, int op, int z, int w, int x, int y,
sys/dev/sound/pci/emu10k1.c
1448
emu_wrefx(sc, (*pc) * 2 + 1, (op << 24) | (z << 12) | w);
sys/dev/sound/pci/emu10kx.c
1512
emu_addefxop(struct emu_sc_info *sc, unsigned int op, unsigned int z, unsigned int w, unsigned int x, unsigned int y, uint32_t * pc)
sys/dev/sound/pci/emu10kx.c
1519
emu_wrefx(sc, (*pc) * 2 + 1, (op << sc->opcode_shift) | (z << sc->high_operand_shift) | w);
sys/dev/sound/pci/emu10kx.c
411
static void emu_addefxop(struct emu_sc_info *sc, unsigned int op, unsigned int z, unsigned int w, unsigned int x, unsigned int y, uint32_t * pc);
sys/dev/sound/pci/hda/hdaa.c
1000
w->nid, orig, config);
sys/dev/sound/pci/hda/hdaa.c
1002
w->wclass.pin.newconf = w->wclass.pin.config = config;
sys/dev/sound/pci/hda/hdaa.c
1061
hdaa_dump_pin_sb(struct sbuf *sb, struct hdaa_widget *w)
sys/dev/sound/pci/hda/hdaa.c
1065
pincap = w->wclass.pin.cap;
sys/dev/sound/pci/hda/hdaa.c
1105
conf = w->wclass.pin.config;
sys/dev/sound/pci/hda/hdaa.c
1117
sbuf_printf(sb, " Pin control: 0x%08x", w->wclass.pin.ctrl);
sys/dev/sound/pci/hda/hdaa.c
1118
if (w->wclass.pin.ctrl & HDA_CMD_SET_PIN_WIDGET_CTRL_HPHN_ENABLE)
sys/dev/sound/pci/hda/hdaa.c
1120
if (w->wclass.pin.ctrl & HDA_CMD_SET_PIN_WIDGET_CTRL_IN_ENABLE)
sys/dev/sound/pci/hda/hdaa.c
1122
if (w->wclass.pin.ctrl & HDA_CMD_SET_PIN_WIDGET_CTRL_OUT_ENABLE)
sys/dev/sound/pci/hda/hdaa.c
1124
if (HDA_PARAM_AUDIO_WIDGET_CAP_DIGITAL(w->param.widget_cap)) {
sys/dev/sound/pci/hda/hdaa.c
1125
if ((w->wclass.pin.ctrl &
sys/dev/sound/pci/hda/hdaa.c
1128
else if ((w->wclass.pin.ctrl &
sys/dev/sound/pci/hda/hdaa.c
1132
if ((w->wclass.pin.ctrl &
sys/dev/sound/pci/hda/hdaa.c
1160
struct hdaa_widget *w, *cw;
sys/dev/sound/pci/hda/hdaa.c
1165
w = (struct hdaa_widget *)oidp->oid_arg1;
sys/dev/sound/pci/hda/hdaa.c
1166
devinfo = w->devinfo;
sys/dev/sound/pci/hda/hdaa.c
1169
sbuf_printf(&sb, "%s%s\n", w->name,
sys/dev/sound/pci/hda/hdaa.c
1170
(w->enable == 0) ? " [DISABLED]" : "");
sys/dev/sound/pci/hda/hdaa.c
1172
w->param.widget_cap);
sys/dev/sound/pci/hda/hdaa.c
1173
if (w->param.widget_cap & 0x0ee1) {
sys/dev/sound/pci/hda/hdaa.c
1174
if (HDA_PARAM_AUDIO_WIDGET_CAP_LR_SWAP(w->param.widget_cap))
sys/dev/sound/pci/hda/hdaa.c
1176
if (HDA_PARAM_AUDIO_WIDGET_CAP_POWER_CTRL(w->param.widget_cap))
sys/dev/sound/pci/hda/hdaa.c
1178
if (HDA_PARAM_AUDIO_WIDGET_CAP_DIGITAL(w->param.widget_cap))
sys/dev/sound/pci/hda/hdaa.c
1180
if (HDA_PARAM_AUDIO_WIDGET_CAP_UNSOL_CAP(w->param.widget_cap))
sys/dev/sound/pci/hda/hdaa.c
1182
if (HDA_PARAM_AUDIO_WIDGET_CAP_PROC_WIDGET(w->param.widget_cap))
sys/dev/sound/pci/hda/hdaa.c
1184
if (HDA_PARAM_AUDIO_WIDGET_CAP_STRIPE(w->param.widget_cap))
sys/dev/sound/pci/hda/hdaa.c
1186
1 << (fls(w->wclass.conv.stripecap) - 1));
sys/dev/sound/pci/hda/hdaa.c
1187
j = HDA_PARAM_AUDIO_WIDGET_CAP_CC(w->param.widget_cap);
sys/dev/sound/pci/hda/hdaa.c
1194
if (w->bindas != -1) {
sys/dev/sound/pci/hda/hdaa.c
1196
w->bindas, w->bindseqmask);
sys/dev/sound/pci/hda/hdaa.c
1198
if (w->ossmask != 0 || w->ossdev >= 0) {
sys/dev/sound/pci/hda/hdaa.c
1200
hdaa_audio_ctl_ossmixer_mask2allname(w->ossmask, buf, sizeof(buf)));
sys/dev/sound/pci/hda/hdaa.c
1201
if (w->ossdev >= 0)
sys/dev/sound/pci/hda/hdaa.c
1202
sbuf_printf(&sb, " (%s)", ossnames[w->ossdev]);
sys/dev/sound/pci/hda/hdaa.c
1205
if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_OUTPUT ||
sys/dev/sound/pci/hda/hdaa.c
1206
w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_INPUT) {
sys/dev/sound/pci/hda/hdaa.c
1208
w->param.supp_stream_formats,
sys/dev/sound/pci/hda/hdaa.c
1209
w->param.supp_pcm_size_rate);
sys/dev/sound/pci/hda/hdaa.c
1210
} else if (w->type ==
sys/dev/sound/pci/hda/hdaa.c
1211
HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX || w->waspin)
sys/dev/sound/pci/hda/hdaa.c
1212
hdaa_dump_pin_sb(&sb, w);
sys/dev/sound/pci/hda/hdaa.c
1213
if (w->param.eapdbtl != HDA_INVALID) {
sys/dev/sound/pci/hda/hdaa.c
1215
w->param.eapdbtl,
sys/dev/sound/pci/hda/hdaa.c
1216
(w->param.eapdbtl & HDA_CMD_SET_EAPD_BTL_ENABLE_LR_SWAP) ?
sys/dev/sound/pci/hda/hdaa.c
1218
(w->param.eapdbtl & HDA_CMD_SET_EAPD_BTL_ENABLE_EAPD) ?
sys/dev/sound/pci/hda/hdaa.c
1220
(w->param.eapdbtl & HDA_CMD_SET_EAPD_BTL_ENABLE_BTL) ?
sys/dev/sound/pci/hda/hdaa.c
1223
if (HDA_PARAM_AUDIO_WIDGET_CAP_OUT_AMP(w->param.widget_cap) &&
sys/dev/sound/pci/hda/hdaa.c
1224
w->param.outamp_cap != 0)
sys/dev/sound/pci/hda/hdaa.c
1225
hdaa_dump_amp_sb(&sb, w->param.outamp_cap, "Output");
sys/dev/sound/pci/hda/hdaa.c
1226
if (HDA_PARAM_AUDIO_WIDGET_CAP_IN_AMP(w->param.widget_cap) &&
sys/dev/sound/pci/hda/hdaa.c
1227
w->param.inamp_cap != 0)
sys/dev/sound/pci/hda/hdaa.c
1228
hdaa_dump_amp_sb(&sb, w->param.inamp_cap, " Input");
sys/dev/sound/pci/hda/hdaa.c
1229
if (w->nconns > 0)
sys/dev/sound/pci/hda/hdaa.c
1230
sbuf_printf(&sb, " Connections: %d\n", w->nconns);
sys/dev/sound/pci/hda/hdaa.c
1231
for (j = 0; j < w->nconns; j++) {
sys/dev/sound/pci/hda/hdaa.c
1232
cw = hdaa_widget_get(devinfo, w->conns[j]);
sys/dev/sound/pci/hda/hdaa.c
1234
(w->connsenable[j] == 0)?"[DISABLED] ":"",
sys/dev/sound/pci/hda/hdaa.c
1235
w->conns[j], (cw == NULL) ? "GHOST!" : cw->name);
sys/dev/sound/pci/hda/hdaa.c
1240
if (w->nconns > 1 && w->selconn == j && w->type !=
sys/dev/sound/pci/hda/hdaa.c
1351
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
1357
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
1358
if (w == NULL)
sys/dev/sound/pci/hda/hdaa.c
1360
if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX)
sys/dev/sound/pci/hda/hdaa.c
1361
hdaa_local_patch_pin(w);
sys/dev/sound/pci/hda/hdaa.c
1408
hdaa_widget_connection_parse(struct hdaa_widget *w)
sys/dev/sound/pci/hda/hdaa.c
1412
nid_t nid = w->nid;
sys/dev/sound/pci/hda/hdaa.c
1415
w->nconns = 0;
sys/dev/sound/pci/hda/hdaa.c
1417
res = hda_command(w->devinfo->dev,
sys/dev/sound/pci/hda/hdaa.c
1426
max = (sizeof(w->conns) / sizeof(w->conns[0])) - 1;
sys/dev/sound/pci/hda/hdaa.c
1436
res = hda_command(w->devinfo->dev,
sys/dev/sound/pci/hda/hdaa.c
1441
if (w->nconns < ents)
sys/dev/sound/pci/hda/hdaa.c
1442
device_printf(w->devinfo->dev,
sys/dev/sound/pci/hda/hdaa.c
1447
ents, w->nconns, res);
sys/dev/sound/pci/hda/hdaa.c
1451
if (cnid < w->devinfo->startnode ||
sys/dev/sound/pci/hda/hdaa.c
1452
cnid >= w->devinfo->endnode) {
sys/dev/sound/pci/hda/hdaa.c
1454
device_printf(w->devinfo->dev,
sys/dev/sound/pci/hda/hdaa.c
1464
device_printf(w->devinfo->dev,
sys/dev/sound/pci/hda/hdaa.c
1474
if (w->nconns > max) {
sys/dev/sound/pci/hda/hdaa.c
1475
device_printf(w->devinfo->dev,
sys/dev/sound/pci/hda/hdaa.c
1481
w->connsenable[w->nconns] = 1;
sys/dev/sound/pci/hda/hdaa.c
1482
w->conns[w->nconns++] = addcnid++;
sys/dev/sound/pci/hda/hdaa.c
1493
hdaa_widget_parse(struct hdaa_widget *w)
sys/dev/sound/pci/hda/hdaa.c
1495
device_t dev = w->devinfo->dev;
sys/dev/sound/pci/hda/hdaa.c
1497
nid_t nid = w->nid;
sys/dev/sound/pci/hda/hdaa.c
1500
w->param.widget_cap = wcap = hda_command(dev,
sys/dev/sound/pci/hda/hdaa.c
1502
w->type = HDA_PARAM_AUDIO_WIDGET_CAP_TYPE(wcap);
sys/dev/sound/pci/hda/hdaa.c
1504
hdaa_widget_connection_parse(w);
sys/dev/sound/pci/hda/hdaa.c
1508
w->param.outamp_cap =
sys/dev/sound/pci/hda/hdaa.c
1513
w->param.outamp_cap =
sys/dev/sound/pci/hda/hdaa.c
1514
w->devinfo->outamp_cap;
sys/dev/sound/pci/hda/hdaa.c
1516
w->param.outamp_cap = 0;
sys/dev/sound/pci/hda/hdaa.c
1520
w->param.inamp_cap =
sys/dev/sound/pci/hda/hdaa.c
1525
w->param.inamp_cap =
sys/dev/sound/pci/hda/hdaa.c
1526
w->devinfo->inamp_cap;
sys/dev/sound/pci/hda/hdaa.c
1528
w->param.inamp_cap = 0;
sys/dev/sound/pci/hda/hdaa.c
1530
if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_OUTPUT ||
sys/dev/sound/pci/hda/hdaa.c
1531
w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_INPUT) {
sys/dev/sound/pci/hda/hdaa.c
1536
w->param.supp_stream_formats = (cap != 0) ? cap :
sys/dev/sound/pci/hda/hdaa.c
1537
w->devinfo->supp_stream_formats;
sys/dev/sound/pci/hda/hdaa.c
1541
w->param.supp_pcm_size_rate = (cap != 0) ? cap :
sys/dev/sound/pci/hda/hdaa.c
1542
w->devinfo->supp_pcm_size_rate;
sys/dev/sound/pci/hda/hdaa.c
1544
w->param.supp_stream_formats =
sys/dev/sound/pci/hda/hdaa.c
1545
w->devinfo->supp_stream_formats;
sys/dev/sound/pci/hda/hdaa.c
1546
w->param.supp_pcm_size_rate =
sys/dev/sound/pci/hda/hdaa.c
1547
w->devinfo->supp_pcm_size_rate;
sys/dev/sound/pci/hda/hdaa.c
1549
if (HDA_PARAM_AUDIO_WIDGET_CAP_STRIPE(w->param.widget_cap)) {
sys/dev/sound/pci/hda/hdaa.c
1550
w->wclass.conv.stripecap = hda_command(dev,
sys/dev/sound/pci/hda/hdaa.c
1551
HDA_CMD_GET_STRIPE_CONTROL(0, w->nid)) >> 20;
sys/dev/sound/pci/hda/hdaa.c
1553
w->wclass.conv.stripecap = 1;
sys/dev/sound/pci/hda/hdaa.c
1555
w->param.supp_stream_formats = 0;
sys/dev/sound/pci/hda/hdaa.c
1556
w->param.supp_pcm_size_rate = 0;
sys/dev/sound/pci/hda/hdaa.c
1559
if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX) {
sys/dev/sound/pci/hda/hdaa.c
1560
w->wclass.pin.original = w->wclass.pin.newconf =
sys/dev/sound/pci/hda/hdaa.c
1561
w->wclass.pin.config = hda_command(dev,
sys/dev/sound/pci/hda/hdaa.c
1562
HDA_CMD_GET_CONFIGURATION_DEFAULT(0, w->nid));
sys/dev/sound/pci/hda/hdaa.c
1563
w->wclass.pin.cap = hda_command(dev,
sys/dev/sound/pci/hda/hdaa.c
1564
HDA_CMD_GET_PARAMETER(0, w->nid, HDA_PARAM_PIN_CAP));
sys/dev/sound/pci/hda/hdaa.c
1565
w->wclass.pin.ctrl = hda_command(dev,
sys/dev/sound/pci/hda/hdaa.c
1567
w->wclass.pin.connected = 2;
sys/dev/sound/pci/hda/hdaa.c
1568
if (HDA_PARAM_PIN_CAP_EAPD_CAP(w->wclass.pin.cap)) {
sys/dev/sound/pci/hda/hdaa.c
1569
w->param.eapdbtl = hda_command(dev,
sys/dev/sound/pci/hda/hdaa.c
1571
w->param.eapdbtl &= 0x7;
sys/dev/sound/pci/hda/hdaa.c
1572
w->param.eapdbtl |= HDA_CMD_SET_EAPD_BTL_ENABLE_EAPD;
sys/dev/sound/pci/hda/hdaa.c
1574
w->param.eapdbtl = HDA_INVALID;
sys/dev/sound/pci/hda/hdaa.c
1576
w->unsol = -1;
sys/dev/sound/pci/hda/hdaa.c
1578
hdaa_unlock(w->devinfo);
sys/dev/sound/pci/hda/hdaa.c
1579
snprintf(buf, sizeof(buf), "nid%d", w->nid);
sys/dev/sound/pci/hda/hdaa.c
1583
w, 0, hdaa_sysctl_caps, "A", "Node capabilities");
sys/dev/sound/pci/hda/hdaa.c
1584
if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX) {
sys/dev/sound/pci/hda/hdaa.c
1585
snprintf(buf, sizeof(buf), "nid%d_config", w->nid);
sys/dev/sound/pci/hda/hdaa.c
1589
&w->wclass.pin.newconf, 0, hdaa_sysctl_config, "A",
sys/dev/sound/pci/hda/hdaa.c
1591
snprintf(buf, sizeof(buf), "nid%d_original", w->nid);
sys/dev/sound/pci/hda/hdaa.c
1595
&w->wclass.pin.original, 0, hdaa_sysctl_config, "A",
sys/dev/sound/pci/hda/hdaa.c
1598
hdaa_lock(w->devinfo);
sys/dev/sound/pci/hda/hdaa.c
1602
hdaa_widget_postprocess(struct hdaa_widget *w)
sys/dev/sound/pci/hda/hdaa.c
1606
w->type = HDA_PARAM_AUDIO_WIDGET_CAP_TYPE(w->param.widget_cap);
sys/dev/sound/pci/hda/hdaa.c
1607
switch (w->type) {
sys/dev/sound/pci/hda/hdaa.c
1639
strlcpy(w->name, typestr, sizeof(w->name));
sys/dev/sound/pci/hda/hdaa.c
1641
if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX) {
sys/dev/sound/pci/hda/hdaa.c
1646
config = w->wclass.pin.config;
sys/dev/sound/pci/hda/hdaa.c
1653
strlcat(w->name, ": ", sizeof(w->name));
sys/dev/sound/pci/hda/hdaa.c
1654
strlcat(w->name, devstr, sizeof(w->name));
sys/dev/sound/pci/hda/hdaa.c
1655
strlcat(w->name, " (", sizeof(w->name));
sys/dev/sound/pci/hda/hdaa.c
1657
strlcat(w->name, HDA_COLORS[color], sizeof(w->name));
sys/dev/sound/pci/hda/hdaa.c
1658
strlcat(w->name, " ", sizeof(w->name));
sys/dev/sound/pci/hda/hdaa.c
1660
strlcat(w->name, HDA_CONNS[conn], sizeof(w->name));
sys/dev/sound/pci/hda/hdaa.c
1661
strlcat(w->name, ")", sizeof(w->name));
sys/dev/sound/pci/hda/hdaa.c
1739
hdaa_widget_connection_select(struct hdaa_widget *w, uint8_t index)
sys/dev/sound/pci/hda/hdaa.c
1741
if (w == NULL || w->nconns < 1 || index > (w->nconns - 1))
sys/dev/sound/pci/hda/hdaa.c
1744
device_printf(w->devinfo->dev,
sys/dev/sound/pci/hda/hdaa.c
1745
"Setting selector nid=%d index=%d\n", w->nid, index);
sys/dev/sound/pci/hda/hdaa.c
1747
hda_command(w->devinfo->dev,
sys/dev/sound/pci/hda/hdaa.c
1748
HDA_CMD_SET_CONNECTION_SELECT_CONTROL(0, w->nid, index));
sys/dev/sound/pci/hda/hdaa.c
1749
w->selconn = index;
sys/dev/sound/pci/hda/hdaa.c
179
static void hdaa_dump_pin_config(struct hdaa_widget *w, uint32_t conf);
sys/dev/sound/pci/hda/hdaa.c
1871
struct hdaa_widget *w, *wp;
sys/dev/sound/pci/hda/hdaa.c
1916
w = hdaa_widget_get(ch->devinfo, ch->io[i]);
sys/dev/sound/pci/hda/hdaa.c
1917
if (w == NULL)
sys/dev/sound/pci/hda/hdaa.c
1937
if (HDA_PARAM_AUDIO_WIDGET_CAP_DIGITAL(w->param.widget_cap)) {
sys/dev/sound/pci/hda/hdaa.c
1943
if (HDA_PARAM_AUDIO_WIDGET_CAP_STRIPE(w->param.widget_cap)) {
sys/dev/sound/pci/hda/hdaa.c
1945
HDA_CMD_SET_STRIPE_CONTROL(0, w->nid, ch->stripectl));
sys/dev/sound/pci/hda/hdaa.c
1947
cchn = HDA_PARAM_AUDIO_WIDGET_CAP_CC(w->param.widget_cap);
sys/dev/sound/pci/hda/hdaa.c
2011
if (w->eld != NULL && w->eld_len >= 6 &&
sys/dev/sound/pci/hda/hdaa.c
2012
((w->eld[5] >> 2) & 0x3) == 1) { /* DisplayPort */
sys/dev/sound/pci/hda/hdaa.c
2130
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
2139
w = hdaa_widget_get(ch->devinfo, ch->io[i]);
sys/dev/sound/pci/hda/hdaa.c
2140
if (w == NULL)
sys/dev/sound/pci/hda/hdaa.c
2142
if (HDA_PARAM_AUDIO_WIDGET_CAP_DIGITAL(w->param.widget_cap)) {
sys/dev/sound/pci/hda/hdaa.c
2253
struct hdaa_widget *w, *cw;
sys/dev/sound/pci/hda/hdaa.c
2271
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
2272
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
2274
if (w->type != HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX ||
sys/dev/sound/pci/hda/hdaa.c
2275
w->param.eapdbtl == HDA_INVALID ||
sys/dev/sound/pci/hda/hdaa.c
2276
w->bindas != pdevinfo->playas)
sys/dev/sound/pci/hda/hdaa.c
2315
w = hdaa_widget_get(devinfo,
sys/dev/sound/pci/hda/hdaa.c
2317
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
2319
for (j = 0; j < w->nconns; j++) {
sys/dev/sound/pci/hda/hdaa.c
2320
if (w->connsenable[j] == 0)
sys/dev/sound/pci/hda/hdaa.c
2322
cw = hdaa_widget_get(devinfo, w->conns[j]);
sys/dev/sound/pci/hda/hdaa.c
2383
struct hdaa_widget *w, *wc;
sys/dev/sound/pci/hda/hdaa.c
2390
w = hdaa_widget_get(devinfo, nid);
sys/dev/sound/pci/hda/hdaa.c
2391
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
2396
for (j = 0; j < w->nconns; j++) {
sys/dev/sound/pci/hda/hdaa.c
2397
if (!w->connsenable[j])
sys/dev/sound/pci/hda/hdaa.c
2406
w->type != HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX)) {
sys/dev/sound/pci/hda/hdaa.c
2407
ctl = hdaa_audio_ctl_amp_get(devinfo, w->nid, HDAA_CTL_IN,
sys/dev/sound/pci/hda/hdaa.c
2415
if (w->ossdev >= 0 && depth > 0)
sys/dev/sound/pci/hda/hdaa.c
2419
if ((w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_INPUT ||
sys/dev/sound/pci/hda/hdaa.c
2420
w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX) &&
sys/dev/sound/pci/hda/hdaa.c
2429
(w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_MIXER ||
sys/dev/sound/pci/hda/hdaa.c
2430
w->selconn != index))
sys/dev/sound/pci/hda/hdaa.c
2433
ctl = hdaa_audio_ctl_amp_get(devinfo, w->nid, HDAA_CTL_OUT, -1, 1);
sys/dev/sound/pci/hda/hdaa.c
2460
struct hdaa_widget *w, *wc;
sys/dev/sound/pci/hda/hdaa.c
2467
w = hdaa_widget_get(devinfo, nid);
sys/dev/sound/pci/hda/hdaa.c
2468
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
2488
if ((consumers == 2 && (w->bindas < 0 ||
sys/dev/sound/pci/hda/hdaa.c
2489
as[w->bindas].hpredir < 0 || as[w->bindas].fakeredir ||
sys/dev/sound/pci/hda/hdaa.c
2490
(w->bindseqmask & (1 << 15)) == 0)) ||
sys/dev/sound/pci/hda/hdaa.c
2495
ctl = hdaa_audio_ctl_amp_get(devinfo, w->nid,
sys/dev/sound/pci/hda/hdaa.c
2502
if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX &&
sys/dev/sound/pci/hda/hdaa.c
2506
for (i = 0; i < w->nconns; i++) {
sys/dev/sound/pci/hda/hdaa.c
2507
if (w->connsenable[i] == 0)
sys/dev/sound/pci/hda/hdaa.c
2513
ctl = hdaa_audio_ctl_amp_get(devinfo, w->nid,
sys/dev/sound/pci/hda/hdaa.c
2517
hdaa_audio_ctl_dest_volume(pdevinfo, ossdev, w->conns[i], -1,
sys/dev/sound/pci/hda/hdaa.c
2529
struct hdaa_widget *w, *cw;
sys/dev/sound/pci/hda/hdaa.c
2548
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
2549
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
2551
if (w->bindas < 0) {
sys/dev/sound/pci/hda/hdaa.c
2555
if (w->bindas != pdevinfo->playas &&
sys/dev/sound/pci/hda/hdaa.c
2556
w->bindas != pdevinfo->recas)
sys/dev/sound/pci/hda/hdaa.c
2560
w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_INPUT) {
sys/dev/sound/pci/hda/hdaa.c
2562
w->nid, -1, mute, lvol, rvol, 0);
sys/dev/sound/pci/hda/hdaa.c
2566
w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX &&
sys/dev/sound/pci/hda/hdaa.c
2567
devinfo->as[w->bindas].dir == HDAA_CTL_OUT) {
sys/dev/sound/pci/hda/hdaa.c
2569
w->nid, -1, mute, lvol, rvol, 0);
sys/dev/sound/pci/hda/hdaa.c
2573
w->pflags & HDAA_ADC_MONITOR) {
sys/dev/sound/pci/hda/hdaa.c
2574
for (j = 0; j < w->nconns; j++) {
sys/dev/sound/pci/hda/hdaa.c
2575
if (!w->connsenable[j])
sys/dev/sound/pci/hda/hdaa.c
2577
cw = hdaa_widget_get(devinfo, w->conns[j]);
sys/dev/sound/pci/hda/hdaa.c
2586
w->nid, j, mute, lvol, rvol, 0);
sys/dev/sound/pci/hda/hdaa.c
2590
if (w->ossdev != dev)
sys/dev/sound/pci/hda/hdaa.c
2593
w->nid, -1, mute, lvol, rvol, 0);
sys/dev/sound/pci/hda/hdaa.c
2594
if (dev == SOUND_MIXER_IMIX && (w->pflags & HDAA_IMIX_AS_DST))
sys/dev/sound/pci/hda/hdaa.c
2596
w->nid, -1, mute, lvol, rvol, 0);
sys/dev/sound/pci/hda/hdaa.c
2609
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
2621
w = NULL;
sys/dev/sound/pci/hda/hdaa.c
2623
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
2624
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
2626
if (w->type != HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX ||
sys/dev/sound/pci/hda/hdaa.c
2627
w->param.eapdbtl == HDA_INVALID)
sys/dev/sound/pci/hda/hdaa.c
2635
orig = w->param.eapdbtl;
sys/dev/sound/pci/hda/hdaa.c
2637
w->param.eapdbtl &= ~HDA_CMD_SET_EAPD_BTL_ENABLE_EAPD;
sys/dev/sound/pci/hda/hdaa.c
2639
w->param.eapdbtl |= HDA_CMD_SET_EAPD_BTL_ENABLE_EAPD;
sys/dev/sound/pci/hda/hdaa.c
2640
if (orig != w->param.eapdbtl) {
sys/dev/sound/pci/hda/hdaa.c
2643
val = w->param.eapdbtl;
sys/dev/sound/pci/hda/hdaa.c
2647
HDA_CMD_SET_EAPD_BTL_ENABLE(0, w->nid, val));
sys/dev/sound/pci/hda/hdaa.c
268
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
2710
struct hdaa_widget *w, *cw;
sys/dev/sound/pci/hda/hdaa.c
2719
w = hdaa_widget_get(devinfo, nid);
sys/dev/sound/pci/hda/hdaa.c
2720
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
2723
for (i = 0; i < w->nconns; i++) {
sys/dev/sound/pci/hda/hdaa.c
2724
if (w->connsenable[i] == 0)
sys/dev/sound/pci/hda/hdaa.c
2726
cw = hdaa_widget_get(devinfo, w->conns[i]);
sys/dev/sound/pci/hda/hdaa.c
2733
w->conns[i], depth + 1);
sys/dev/sound/pci/hda/hdaa.c
2739
if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_MIXER) {
sys/dev/sound/pci/hda/hdaa.c
2741
w->nid, HDAA_CTL_IN, i, 1);
sys/dev/sound/pci/hda/hdaa.c
2761
if (w->nconns == 1)
sys/dev/sound/pci/hda/hdaa.c
2766
hdaa_widget_connection_select(w, i);
sys/dev/sound/pci/hda/hdaa.c
2785
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
279
w = hdaa_widget_get(devinfo, as->pins[i]);
sys/dev/sound/pci/hda/hdaa.c
280
if (w == NULL)
sys/dev/sound/pci/hda/hdaa.c
2809
w = hdaa_widget_get(devinfo, ch->io[i]);
sys/dev/sound/pci/hda/hdaa.c
2810
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
282
if (w->wclass.pin.connected == 1)
sys/dev/sound/pci/hda/hdaa.c
284
else if (w->wclass.pin.connected != 0)
sys/dev/sound/pci/hda/hdaa.c
286
if (w->eld != NULL && w->eld_len >= 8)
sys/dev/sound/pci/hda/hdaa.c
287
eld = w->eld;
sys/dev/sound/pci/hda/hdaa.c
2951
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
2993
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
2994
if (w == NULL)
sys/dev/sound/pci/hda/hdaa.c
2997
w->devinfo = devinfo;
sys/dev/sound/pci/hda/hdaa.c
2998
w->nid = i;
sys/dev/sound/pci/hda/hdaa.c
2999
w->enable = 1;
sys/dev/sound/pci/hda/hdaa.c
3000
w->selconn = -1;
sys/dev/sound/pci/hda/hdaa.c
3001
w->pflags = 0;
sys/dev/sound/pci/hda/hdaa.c
3002
w->ossdev = -1;
sys/dev/sound/pci/hda/hdaa.c
3003
w->bindas = -1;
sys/dev/sound/pci/hda/hdaa.c
3004
w->param.eapdbtl = HDA_INVALID;
sys/dev/sound/pci/hda/hdaa.c
3005
hdaa_widget_parse(w);
sys/dev/sound/pci/hda/hdaa.c
3013
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
3017
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
3018
if (w == NULL)
sys/dev/sound/pci/hda/hdaa.c
3020
hdaa_widget_postprocess(w);
sys/dev/sound/pci/hda/hdaa.c
3028
struct hdaa_widget *w, *cw;
sys/dev/sound/pci/hda/hdaa.c
3035
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
3036
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
3038
if (w->param.outamp_cap != 0)
sys/dev/sound/pci/hda/hdaa.c
3040
if (w->param.inamp_cap != 0) {
sys/dev/sound/pci/hda/hdaa.c
3041
switch (w->type) {
sys/dev/sound/pci/hda/hdaa.c
3044
for (j = 0; j < w->nconns; j++) {
sys/dev/sound/pci/hda/hdaa.c
3046
w->conns[j]);
sys/dev/sound/pci/hda/hdaa.c
3079
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
3080
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
3082
ocap = w->param.outamp_cap;
sys/dev/sound/pci/hda/hdaa.c
3083
icap = w->param.inamp_cap;
sys/dev/sound/pci/hda/hdaa.c
3099
ctls[cnt].widget = w;
sys/dev/sound/pci/hda/hdaa.c
3106
if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX ||
sys/dev/sound/pci/hda/hdaa.c
3107
w->waspin)
sys/dev/sound/pci/hda/hdaa.c
3128
switch (w->type) {
sys/dev/sound/pci/hda/hdaa.c
3131
for (j = 0; j < w->nconns; j++) {
sys/dev/sound/pci/hda/hdaa.c
3139
w->conns[j]);
sys/dev/sound/pci/hda/hdaa.c
3143
ctls[cnt].widget = w;
sys/dev/sound/pci/hda/hdaa.c
3164
ctls[cnt].widget = w;
sys/dev/sound/pci/hda/hdaa.c
3171
if (w->type ==
sys/dev/sound/pci/hda/hdaa.c
3189
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
3196
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
3197
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
3199
if (w->type != HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX)
sys/dev/sound/pci/hda/hdaa.c
3201
if (HDA_CONFIG_DEFAULTCONF_ASSOCIATION(w->wclass.pin.config)
sys/dev/sound/pci/hda/hdaa.c
3237
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
3238
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
3240
if (w->type != HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX)
sys/dev/sound/pci/hda/hdaa.c
3242
assoc = HDA_CONFIG_DEFAULTCONF_ASSOCIATION(w->wclass.pin.config);
sys/dev/sound/pci/hda/hdaa.c
3243
seq = HDA_CONFIG_DEFAULTCONF_SEQUENCE(w->wclass.pin.config);
sys/dev/sound/pci/hda/hdaa.c
3250
type = w->wclass.pin.config &
sys/dev/sound/pci/hda/hdaa.c
3273
__func__, seq, w->nid, j);
sys/dev/sound/pci/hda/hdaa.c
3280
__func__, w->nid, j);
sys/dev/sound/pci/hda/hdaa.c
3283
if (HDA_PARAM_AUDIO_WIDGET_CAP_DIGITAL(w->param.widget_cap)) {
sys/dev/sound/pci/hda/hdaa.c
3285
if (HDA_PARAM_PIN_CAP_HDMI(w->wclass.pin.cap))
sys/dev/sound/pci/hda/hdaa.c
3287
if (HDA_PARAM_PIN_CAP_DP(w->wclass.pin.cap))
sys/dev/sound/pci/hda/hdaa.c
3292
HDA_CONFIG_DEFAULTCONF_LOCATION(w->wclass.pin.config);
sys/dev/sound/pci/hda/hdaa.c
3294
HDA_CONFIG_DEFAULTCONF_LOCATION(w->wclass.pin.config)) {
sys/dev/sound/pci/hda/hdaa.c
3301
as[cnt].pins[seq] = w->nid;
sys/dev/sound/pci/hda/hdaa.c
3346
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
3352
w = hdaa_widget_get(devinfo, nid);
sys/dev/sound/pci/hda/hdaa.c
3353
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
3359
depth + 1, "", w->nid);
sys/dev/sound/pci/hda/hdaa.c
3363
if (w->bindas >= 0 && w->bindas != as) {
sys/dev/sound/pci/hda/hdaa.c
3368
depth + 1, "", w->nid, w->bindas);
sys/dev/sound/pci/hda/hdaa.c
3374
if (w->bindseqmask != 0) {
sys/dev/sound/pci/hda/hdaa.c
3379
depth + 1, "", w->nid, w->bindseqmask);
sys/dev/sound/pci/hda/hdaa.c
3386
if (w->bindseqmask != 0 &&
sys/dev/sound/pci/hda/hdaa.c
3387
(w->bindseqmask & (1 << dupseq)) == 0) {
sys/dev/sound/pci/hda/hdaa.c
3391
depth + 1, "", w->nid, w->bindseqmask);
sys/dev/sound/pci/hda/hdaa.c
3397
switch (w->type) {
sys/dev/sound/pci/hda/hdaa.c
3404
if ((only == 0 || only == w->nid) &&
sys/dev/sound/pci/hda/hdaa.c
3405
(w->nid >= min) && (dupseq < 0 || w->nid ==
sys/dev/sound/pci/hda/hdaa.c
3407
m = w->nid;
sys/dev/sound/pci/hda/hdaa.c
3415
for (i = 0; i < w->nconns; i++) {
sys/dev/sound/pci/hda/hdaa.c
3416
if (w->connsenable[i] == 0)
sys/dev/sound/pci/hda/hdaa.c
3418
if (w->selconn != -1 && w->selconn != i)
sys/dev/sound/pci/hda/hdaa.c
3421
w->conns[i], dupseq, min, only, depth + 1)) != 0) {
sys/dev/sound/pci/hda/hdaa.c
3430
if (im >= 0 && only && ((w->nconns > 1 &&
sys/dev/sound/pci/hda/hdaa.c
3431
w->type != HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_MIXER) ||
sys/dev/sound/pci/hda/hdaa.c
3432
w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_SELECTOR))
sys/dev/sound/pci/hda/hdaa.c
3433
w->selconn = im;
sys/dev/sound/pci/hda/hdaa.c
3437
w->bindas = as;
sys/dev/sound/pci/hda/hdaa.c
3438
w->bindseqmask |= (1 << seq);
sys/dev/sound/pci/hda/hdaa.c
3444
depth + 1, "", w->nid, m);
sys/dev/sound/pci/hda/hdaa.c
3457
struct hdaa_widget *w, *wc;
sys/dev/sound/pci/hda/hdaa.c
3463
w = hdaa_widget_get(devinfo, nid);
sys/dev/sound/pci/hda/hdaa.c
3464
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
3469
depth + 1, "", w->nid);
sys/dev/sound/pci/hda/hdaa.c
3472
if (w->bindas >= 0 && w->bindas != as) {
sys/dev/sound/pci/hda/hdaa.c
3476
depth + 1, "", w->nid, w->bindas);
sys/dev/sound/pci/hda/hdaa.c
3480
if (!mixed && w->bindseqmask != 0) {
sys/dev/sound/pci/hda/hdaa.c
3484
depth + 1, "", w->nid, w->bindseqmask);
sys/dev/sound/pci/hda/hdaa.c
3488
switch (w->type) {
sys/dev/sound/pci/hda/hdaa.c
3490
if ((only == 0 || only == w->nid) && (w->nid >= min) &&
sys/dev/sound/pci/hda/hdaa.c
3492
m = w->nid;
sys/dev/sound/pci/hda/hdaa.c
3534
w->bindas = as;
sys/dev/sound/pci/hda/hdaa.c
3535
w->bindseqmask |= (1 << seq);
sys/dev/sound/pci/hda/hdaa.c
3540
depth + 1, "", w->nid, m);
sys/dev/sound/pci/hda/hdaa.c
3551
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
3555
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
3556
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
3558
if (w->bindas == as) {
sys/dev/sound/pci/hda/hdaa.c
3560
w->bindseqmask &= ~(1 << seq);
sys/dev/sound/pci/hda/hdaa.c
3561
if (w->bindseqmask == 0) {
sys/dev/sound/pci/hda/hdaa.c
3562
w->bindas = -1;
sys/dev/sound/pci/hda/hdaa.c
3563
w->selconn = -1;
sys/dev/sound/pci/hda/hdaa.c
3566
w->bindas = -1;
sys/dev/sound/pci/hda/hdaa.c
3567
w->bindseqmask = 0;
sys/dev/sound/pci/hda/hdaa.c
3568
w->selconn = -1;
sys/dev/sound/pci/hda/hdaa.c
379
hdaa_hpredir_handler(struct hdaa_widget *w)
sys/dev/sound/pci/hda/hdaa.c
3804
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
3808
w = hdaa_widget_get(devinfo, j);
sys/dev/sound/pci/hda/hdaa.c
3809
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
381
struct hdaa_devinfo *devinfo = w->devinfo;
sys/dev/sound/pci/hda/hdaa.c
3811
if (w->type != HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_INPUT)
sys/dev/sound/pci/hda/hdaa.c
3813
if (w->bindas >= 0 && w->bindas != as)
sys/dev/sound/pci/hda/hdaa.c
382
struct hdaa_audio_as *as = &devinfo->as[w->bindas];
sys/dev/sound/pci/hda/hdaa.c
386
int j, connected = w->wclass.pin.connected;
sys/dev/sound/pci/hda/hdaa.c
3918
struct hdaa_widget *w, *wc;
sys/dev/sound/pci/hda/hdaa.c
3924
w = hdaa_widget_get(devinfo, nid);
sys/dev/sound/pci/hda/hdaa.c
3925
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
3930
depth + 1, "", w->nid);
sys/dev/sound/pci/hda/hdaa.c
3933
if (depth > 0 && w->bindas != -1) {
sys/dev/sound/pci/hda/hdaa.c
3934
if (w->bindas < 0 || ases[w->bindas].dir == HDAA_CTL_OUT) {
sys/dev/sound/pci/hda/hdaa.c
3938
depth + 1, "", w->nid, w->bindas);
sys/dev/sound/pci/hda/hdaa.c
3940
if (w->bindas >= 0)
sys/dev/sound/pci/hda/hdaa.c
3941
w->pflags |= HDAA_ADC_MONITOR;
sys/dev/sound/pci/hda/hdaa.c
3947
depth + 1, "", w->nid, w->bindas);
sys/dev/sound/pci/hda/hdaa.c
3953
switch (w->type) {
sys/dev/sound/pci/hda/hdaa.c
396
w->nid, HDAA_CTL_IN, -1, 1);
sys/dev/sound/pci/hda/hdaa.c
3984
if (res && w->bindas == -1)
sys/dev/sound/pci/hda/hdaa.c
3985
w->bindas = -2;
sys/dev/sound/pci/hda/hdaa.c
3990
depth + 1, "", w->nid, res);
sys/dev/sound/pci/hda/hdaa.c
4002
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
4013
w = hdaa_widget_get(devinfo, j);
sys/dev/sound/pci/hda/hdaa.c
4014
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
4016
if (w->type != HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_MIXER)
sys/dev/sound/pci/hda/hdaa.c
4018
if (w->bindas < 0 || as[w->bindas].dir != HDAA_CTL_IN)
sys/dev/sound/pci/hda/hdaa.c
4025
if (hdaa_audio_trace_to_out(devinfo, w->nid, 0)) {
sys/dev/sound/pci/hda/hdaa.c
4029
w->nid);
sys/dev/sound/pci/hda/hdaa.c
4031
w->ossdev = SOUND_MIXER_IMIX;
sys/dev/sound/pci/hda/hdaa.c
4043
w = hdaa_widget_get(devinfo, j);
sys/dev/sound/pci/hda/hdaa.c
4044
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
4046
if (w->type != HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX)
sys/dev/sound/pci/hda/hdaa.c
4048
if (w->bindas < 0 || as[w->bindas].dir != HDAA_CTL_IN)
sys/dev/sound/pci/hda/hdaa.c
4055
if (hdaa_audio_trace_to_out(devinfo, w->nid, 0)) {
sys/dev/sound/pci/hda/hdaa.c
4059
w->nid);
sys/dev/sound/pci/hda/hdaa.c
4070
w = hdaa_widget_get(devinfo, j);
sys/dev/sound/pci/hda/hdaa.c
4071
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
4073
if (w->type != HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_BEEP_WIDGET)
sys/dev/sound/pci/hda/hdaa.c
4080
if (hdaa_audio_trace_to_out(devinfo, w->nid, 0)) {
sys/dev/sound/pci/hda/hdaa.c
4087
w->bindas = -2;
sys/dev/sound/pci/hda/hdaa.c
409
val = w->wclass.pin.ctrl |
sys/dev/sound/pci/hda/hdaa.c
412
val = w->wclass.pin.ctrl &
sys/dev/sound/pci/hda/hdaa.c
414
if (val != w->wclass.pin.ctrl) {
sys/dev/sound/pci/hda/hdaa.c
415
w->wclass.pin.ctrl = val;
sys/dev/sound/pci/hda/hdaa.c
4153
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
4158
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
4159
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
4161
if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_POWER_WIDGET ||
sys/dev/sound/pci/hda/hdaa.c
4162
w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_VOLUME_WIDGET) {
sys/dev/sound/pci/hda/hdaa.c
4163
w->enable = 0;
sys/dev/sound/pci/hda/hdaa.c
4168
w->nid);
sys/dev/sound/pci/hda/hdaa.c
4177
struct hdaa_widget *w, *cw;
sys/dev/sound/pci/hda/hdaa.c
418
w->nid, w->wclass.pin.ctrl));
sys/dev/sound/pci/hda/hdaa.c
4183
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
4184
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
4186
if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX) {
sys/dev/sound/pci/hda/hdaa.c
4187
if ((w->wclass.pin.config &
sys/dev/sound/pci/hda/hdaa.c
4190
w->enable = 0;
sys/dev/sound/pci/hda/hdaa.c
4195
w->nid);
sys/dev/sound/pci/hda/hdaa.c
4197
} else if ((w->wclass.pin.config &
sys/dev/sound/pci/hda/hdaa.c
4199
w->enable = 0;
sys/dev/sound/pci/hda/hdaa.c
4204
w->nid);
sys/dev/sound/pci/hda/hdaa.c
4239
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
4240
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
4243
for (j = 0; j < w->nconns; j++) {
sys/dev/sound/pci/hda/hdaa.c
4244
if (w->connsenable[j]) {
sys/dev/sound/pci/hda/hdaa.c
4245
cw = hdaa_widget_get(devinfo, w->conns[j]);
sys/dev/sound/pci/hda/hdaa.c
4247
w->connsenable[j] = 0;
sys/dev/sound/pci/hda/hdaa.c
4257
if (w->type != HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_SELECTOR &&
sys/dev/sound/pci/hda/hdaa.c
4258
w->type != HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_MIXER)
sys/dev/sound/pci/hda/hdaa.c
4262
for (j = 0; j < w->nconns; j++) {
sys/dev/sound/pci/hda/hdaa.c
4263
if (w->connsenable[j]) {
sys/dev/sound/pci/hda/hdaa.c
4269
w->enable = 0;
sys/dev/sound/pci/hda/hdaa.c
4274
" inputs disabled.\n", w->nid);
sys/dev/sound/pci/hda/hdaa.c
4278
if (w->type != HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_SELECTOR &&
sys/dev/sound/pci/hda/hdaa.c
4279
w->type != HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_MIXER)
sys/dev/sound/pci/hda/hdaa.c
4294
w->enable = 0;
sys/dev/sound/pci/hda/hdaa.c
4299
" consumers disabled.\n", w->nid);
sys/dev/sound/pci/hda/hdaa.c
4311
struct hdaa_widget *w, *cw;
sys/dev/sound/pci/hda/hdaa.c
4317
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
4318
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
4320
if (w->bindas == -1) {
sys/dev/sound/pci/hda/hdaa.c
4321
w->enable = 0;
sys/dev/sound/pci/hda/hdaa.c
4325
w->nid);
sys/dev/sound/pci/hda/hdaa.c
4332
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
4333
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
4335
if (w->type != HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX)
sys/dev/sound/pci/hda/hdaa.c
4337
if (w->bindas < 0)
sys/dev/sound/pci/hda/hdaa.c
4339
if (as[w->bindas].dir == HDAA_CTL_IN) {
sys/dev/sound/pci/hda/hdaa.c
4340
for (j = 0; j < w->nconns; j++) {
sys/dev/sound/pci/hda/hdaa.c
4341
if (w->connsenable[j] == 0)
sys/dev/sound/pci/hda/hdaa.c
4343
w->connsenable[j] = 0;
sys/dev/sound/pci/hda/hdaa.c
4351
ctl = hdaa_audio_ctl_amp_get(devinfo, w->nid,
sys/dev/sound/pci/hda/hdaa.c
4361
ctl = hdaa_audio_ctl_amp_get(devinfo, w->nid,
sys/dev/sound/pci/hda/hdaa.c
4406
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
4411
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
4412
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
4414
if (w->nconns <= 1)
sys/dev/sound/pci/hda/hdaa.c
4416
if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_MIXER)
sys/dev/sound/pci/hda/hdaa.c
4418
if (w->bindas < 0 || as[w->bindas].dir == HDAA_CTL_IN)
sys/dev/sound/pci/hda/hdaa.c
4420
for (j = 0; j < w->nconns; j++) {
sys/dev/sound/pci/hda/hdaa.c
4421
if (w->connsenable[j] == 0)
sys/dev/sound/pci/hda/hdaa.c
4423
if (w->selconn < 0 || w->selconn == j)
sys/dev/sound/pci/hda/hdaa.c
4425
w->connsenable[j] = 0;
sys/dev/sound/pci/hda/hdaa.c
4440
struct hdaa_widget *w, *cw;
sys/dev/sound/pci/hda/hdaa.c
4447
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
4448
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
4450
if (w->nconns <= 1)
sys/dev/sound/pci/hda/hdaa.c
4452
if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_MIXER)
sys/dev/sound/pci/hda/hdaa.c
4455
if (w->bindas == -2)
sys/dev/sound/pci/hda/hdaa.c
4457
for (j = 0; j < w->nconns; j++) {
sys/dev/sound/pci/hda/hdaa.c
4458
if (w->connsenable[j] == 0)
sys/dev/sound/pci/hda/hdaa.c
4460
cw = hdaa_widget_get(devinfo, w->conns[j]);
sys/dev/sound/pci/hda/hdaa.c
4461
if (cw == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
4464
if (cw->bindas == -2 && w->bindas >= 0 &&
sys/dev/sound/pci/hda/hdaa.c
4465
ases[w->bindas].dir == HDAA_CTL_OUT)
sys/dev/sound/pci/hda/hdaa.c
4468
if (cw->bindas == -2 && w->bindas >= 0 &&
sys/dev/sound/pci/hda/hdaa.c
4469
ases[w->bindas].mixed)
sys/dev/sound/pci/hda/hdaa.c
4472
if ((w->pflags & HDAA_ADC_MONITOR) &&
sys/dev/sound/pci/hda/hdaa.c
4477
if (w->bindas == cw->bindas &&
sys/dev/sound/pci/hda/hdaa.c
4478
(w->bindseqmask & cw->bindseqmask) != 0)
sys/dev/sound/pci/hda/hdaa.c
4480
w->connsenable[j] = 0;
sys/dev/sound/pci/hda/hdaa.c
4542
struct hdaa_widget *w, *wc;
sys/dev/sound/pci/hda/hdaa.c
4549
w = hdaa_widget_get(devinfo, nid);
sys/dev/sound/pci/hda/hdaa.c
4550
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
4555
for (j = 0; j < w->nconns; j++) {
sys/dev/sound/pci/hda/hdaa.c
4556
if (!w->connsenable[j])
sys/dev/sound/pci/hda/hdaa.c
4565
w->type != HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX)) {
sys/dev/sound/pci/hda/hdaa.c
4566
ctl = hdaa_audio_ctl_amp_get(devinfo, w->nid, HDAA_CTL_IN,
sys/dev/sound/pci/hda/hdaa.c
4580
if (w->ossdev >= 0 && depth > 0)
sys/dev/sound/pci/hda/hdaa.c
4584
if ((w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_INPUT ||
sys/dev/sound/pci/hda/hdaa.c
4585
w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX) &&
sys/dev/sound/pci/hda/hdaa.c
4590
w->ossmask |= (1 << ossdev);
sys/dev/sound/pci/hda/hdaa.c
4597
w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_MIXER)
sys/dev/sound/pci/hda/hdaa.c
4601
ctl = hdaa_audio_ctl_amp_get(devinfo, w->nid, HDAA_CTL_OUT, -1, 1);
sys/dev/sound/pci/hda/hdaa.c
461
hdaa_autorecsrc_handler(struct hdaa_audio_as *as, struct hdaa_widget *w)
sys/dev/sound/pci/hda/hdaa.c
4649
struct hdaa_widget *w, *wc;
sys/dev/sound/pci/hda/hdaa.c
4656
w = hdaa_widget_get(devinfo, nid);
sys/dev/sound/pci/hda/hdaa.c
4657
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
4677
if ((consumers == 2 && (w->bindas < 0 ||
sys/dev/sound/pci/hda/hdaa.c
4678
as[w->bindas].hpredir < 0 || as[w->bindas].fakeredir ||
sys/dev/sound/pci/hda/hdaa.c
4679
(w->bindseqmask & (1 << 15)) == 0)) ||
sys/dev/sound/pci/hda/hdaa.c
4684
ctl = hdaa_audio_ctl_amp_get(devinfo, w->nid,
sys/dev/sound/pci/hda/hdaa.c
4697
if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX &&
sys/dev/sound/pci/hda/hdaa.c
4702
for (i = 0; i < w->nconns; i++) {
sys/dev/sound/pci/hda/hdaa.c
4703
if (w->connsenable[i] == 0)
sys/dev/sound/pci/hda/hdaa.c
4708
ctl = hdaa_audio_ctl_amp_get(devinfo, w->nid,
sys/dev/sound/pci/hda/hdaa.c
4718
found += hdaa_audio_ctl_dest_amp(devinfo, w->conns[i], -1, ossdev,
sys/dev/sound/pci/hda/hdaa.c
473
(pdevinfo->autorecsrc == 1 && w != NULL))
sys/dev/sound/pci/hda/hdaa.c
4742
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
4763
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
4764
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
4766
if (w->bindas == -1)
sys/dev/sound/pci/hda/hdaa.c
4769
switch (w->type) {
sys/dev/sound/pci/hda/hdaa.c
4771
if (as[w->bindas].dir == HDAA_CTL_OUT)
sys/dev/sound/pci/hda/hdaa.c
4774
switch (w->wclass.pin.config & HDA_CONFIG_DEFAULTCONF_DEVICE_MASK) {
sys/dev/sound/pci/hda/hdaa.c
4779
if ((w->wclass.pin.config & HDA_CONFIG_DEFAULTCONF_CONNECTIVITY_MASK)
sys/dev/sound/pci/hda/hdaa.c
4815
w->ossdev = use;
sys/dev/sound/pci/hda/hdaa.c
4821
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
4822
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
4824
if (w->ossdev >= 0)
sys/dev/sound/pci/hda/hdaa.c
4826
if (w->bindas == -1)
sys/dev/sound/pci/hda/hdaa.c
4828
if (w->type != HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX)
sys/dev/sound/pci/hda/hdaa.c
4830
if (as[w->bindas].dir == HDAA_CTL_OUT)
sys/dev/sound/pci/hda/hdaa.c
4833
switch (w->wclass.pin.config & HDA_CONFIG_DEFAULTCONF_DEVICE_MASK) {
sys/dev/sound/pci/hda/hdaa.c
4856
w->ossdev = types[type][j];
sys/dev/sound/pci/hda/hdaa.c
4862
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
4863
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
4865
if (w->ossdev >= 0)
sys/dev/sound/pci/hda/hdaa.c
4867
if (w->bindas == -1)
sys/dev/sound/pci/hda/hdaa.c
4869
if (w->type != HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX)
sys/dev/sound/pci/hda/hdaa.c
4871
if (as[w->bindas].dir == HDAA_CTL_OUT)
sys/dev/sound/pci/hda/hdaa.c
4879
w->ossdev = types[6][j];
sys/dev/sound/pci/hda/hdaa.c
4945
hdaa_adjust_amp(struct hdaa_widget *w, int ossdev,
sys/dev/sound/pci/hda/hdaa.c
4948
struct hdaa_devinfo *devinfo = w->devinfo;
sys/dev/sound/pci/hda/hdaa.c
4951
if (w->bindas >= 0)
sys/dev/sound/pci/hda/hdaa.c
4952
pdevinfo = devinfo->as[w->bindas].pdevinfo;
sys/dev/sound/pci/hda/hdaa.c
4976
struct hdaa_widget *w, *cw;
sys/dev/sound/pci/hda/hdaa.c
4981
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
4982
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
4985
if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_OUTPUT ||
sys/dev/sound/pci/hda/hdaa.c
4986
w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_BEEP_WIDGET ||
sys/dev/sound/pci/hda/hdaa.c
4987
(w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX &&
sys/dev/sound/pci/hda/hdaa.c
4988
as[w->bindas].dir == HDAA_CTL_IN)) {
sys/dev/sound/pci/hda/hdaa.c
4989
if (w->ossdev < 0)
sys/dev/sound/pci/hda/hdaa.c
4991
found = hdaa_audio_ctl_source_amp(devinfo, w->nid, -1,
sys/dev/sound/pci/hda/hdaa.c
4992
w->ossdev, 1, 0, &minamp, &maxamp);
sys/dev/sound/pci/hda/hdaa.c
4993
hdaa_adjust_amp(w, w->ossdev, found, minamp, maxamp);
sys/dev/sound/pci/hda/hdaa.c
4994
} else if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_INPUT) {
sys/dev/sound/pci/hda/hdaa.c
4995
found = hdaa_audio_ctl_dest_amp(devinfo, w->nid, -1,
sys/dev/sound/pci/hda/hdaa.c
4997
hdaa_adjust_amp(w, SOUND_MIXER_RECLEV, found, minamp, maxamp);
sys/dev/sound/pci/hda/hdaa.c
4998
} else if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX &&
sys/dev/sound/pci/hda/hdaa.c
4999
as[w->bindas].dir == HDAA_CTL_OUT) {
sys/dev/sound/pci/hda/hdaa.c
5000
found = hdaa_audio_ctl_dest_amp(devinfo, w->nid, -1,
sys/dev/sound/pci/hda/hdaa.c
5002
hdaa_adjust_amp(w, SOUND_MIXER_VOLUME, found, minamp, maxamp);
sys/dev/sound/pci/hda/hdaa.c
5004
if (w->ossdev == SOUND_MIXER_IMIX) {
sys/dev/sound/pci/hda/hdaa.c
5006
found = hdaa_audio_ctl_source_amp(devinfo, w->nid, -1,
sys/dev/sound/pci/hda/hdaa.c
5007
w->ossdev, 1, 0, &minamp, &maxamp);
sys/dev/sound/pci/hda/hdaa.c
5011
found += hdaa_audio_ctl_dest_amp(devinfo, w->nid, -1,
sys/dev/sound/pci/hda/hdaa.c
5012
w->ossdev, 0, &minamp, &maxamp);
sys/dev/sound/pci/hda/hdaa.c
5013
w->pflags |= HDAA_IMIX_AS_DST;
sys/dev/sound/pci/hda/hdaa.c
5015
hdaa_adjust_amp(w, w->ossdev, found, minamp, maxamp);
sys/dev/sound/pci/hda/hdaa.c
5017
if (w->pflags & HDAA_ADC_MONITOR) {
sys/dev/sound/pci/hda/hdaa.c
5018
for (j = 0; j < w->nconns; j++) {
sys/dev/sound/pci/hda/hdaa.c
5019
if (!w->connsenable[j])
sys/dev/sound/pci/hda/hdaa.c
5021
cw = hdaa_widget_get(devinfo, w->conns[j]);
sys/dev/sound/pci/hda/hdaa.c
5031
w->nid, j, SOUND_MIXER_IGAIN, 0,
sys/dev/sound/pci/hda/hdaa.c
5033
hdaa_adjust_amp(w, SOUND_MIXER_IGAIN,
sys/dev/sound/pci/hda/hdaa.c
5044
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
5049
w = &devinfo->widget[i];
sys/dev/sound/pci/hda/hdaa.c
505
if (w != NULL && (mask & (1 << w->ossdev)))
sys/dev/sound/pci/hda/hdaa.c
5050
if (w == NULL)
sys/dev/sound/pci/hda/hdaa.c
5052
if (w->type != HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX &&
sys/dev/sound/pci/hda/hdaa.c
5053
w->waspin == 0)
sys/dev/sound/pci/hda/hdaa.c
5056
pincap = w->wclass.pin.cap;
sys/dev/sound/pci/hda/hdaa.c
506
mask = (1 << w->ossdev);
sys/dev/sound/pci/hda/hdaa.c
5060
w->wclass.pin.ctrl &= ~(
sys/dev/sound/pci/hda/hdaa.c
5067
if (w->enable == 0) {
sys/dev/sound/pci/hda/hdaa.c
5070
} else if (w->waspin) {
sys/dev/sound/pci/hda/hdaa.c
5072
w->wclass.pin.ctrl |=
sys/dev/sound/pci/hda/hdaa.c
5074
} else if (w->bindas < 0 || as[w->bindas].enable == 0) {
sys/dev/sound/pci/hda/hdaa.c
5077
} else if (as[w->bindas].dir == HDAA_CTL_IN) {
sys/dev/sound/pci/hda/hdaa.c
5080
w->wclass.pin.ctrl |=
sys/dev/sound/pci/hda/hdaa.c
5085
w->wclass.pin.ctrl |=
sys/dev/sound/pci/hda/hdaa.c
5090
w->wclass.pin.ctrl |=
sys/dev/sound/pci/hda/hdaa.c
5095
w->wclass.pin.ctrl |=
sys/dev/sound/pci/hda/hdaa.c
5101
w->wclass.pin.ctrl |=
sys/dev/sound/pci/hda/hdaa.c
5105
(w->wclass.pin.config &
sys/dev/sound/pci/hda/hdaa.c
5108
w->wclass.pin.ctrl |=
sys/dev/sound/pci/hda/hdaa.c
5113
w->wclass.pin.ctrl |=
sys/dev/sound/pci/hda/hdaa.c
5118
w->wclass.pin.ctrl |=
sys/dev/sound/pci/hda/hdaa.c
5123
w->wclass.pin.ctrl |=
sys/dev/sound/pci/hda/hdaa.c
5235
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
5243
w = &devinfo->widget[i];
sys/dev/sound/pci/hda/hdaa.c
5244
if (w == NULL)
sys/dev/sound/pci/hda/hdaa.c
5246
if (w->selconn == -1)
sys/dev/sound/pci/hda/hdaa.c
5247
w->selconn = 0;
sys/dev/sound/pci/hda/hdaa.c
5248
if (w->nconns > 0)
sys/dev/sound/pci/hda/hdaa.c
5249
hdaa_widget_connection_select(w, w->selconn);
sys/dev/sound/pci/hda/hdaa.c
5250
if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX ||
sys/dev/sound/pci/hda/hdaa.c
5251
w->waspin) {
sys/dev/sound/pci/hda/hdaa.c
5253
HDA_CMD_SET_PIN_WIDGET_CTRL(0, w->nid,
sys/dev/sound/pci/hda/hdaa.c
5254
w->wclass.pin.ctrl));
sys/dev/sound/pci/hda/hdaa.c
5256
if (w->param.eapdbtl != HDA_INVALID) {
sys/dev/sound/pci/hda/hdaa.c
5259
val = w->param.eapdbtl;
sys/dev/sound/pci/hda/hdaa.c
5264
HDA_CMD_SET_EAPD_BTL_ENABLE(0, w->nid,
sys/dev/sound/pci/hda/hdaa.c
5296
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
532
hdaa_presence_handler(struct hdaa_widget *w)
sys/dev/sound/pci/hda/hdaa.c
5331
w = hdaa_widget_get(devinfo, as[ch->as].dacs[ch->asindex][i]);
sys/dev/sound/pci/hda/hdaa.c
5332
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
5334
cap = w->param.supp_stream_formats;
sys/dev/sound/pci/hda/hdaa.c
534
struct hdaa_devinfo *devinfo = w->devinfo;
sys/dev/sound/pci/hda/hdaa.c
5340
if (HDA_PARAM_AUDIO_WIDGET_CAP_DIGITAL(w->param.widget_cap))
sys/dev/sound/pci/hda/hdaa.c
5344
pcmcap = w->param.supp_pcm_size_rate;
sys/dev/sound/pci/hda/hdaa.c
5347
pcmcap &= w->param.supp_pcm_size_rate;
sys/dev/sound/pci/hda/hdaa.c
5350
ch->stripecap &= w->wclass.conv.stripecap;
sys/dev/sound/pci/hda/hdaa.c
5354
channels += HDA_PARAM_AUDIO_WIDGET_CAP_CC(w->param.widget_cap) + 1;
sys/dev/sound/pci/hda/hdaa.c
5355
if (HDA_PARAM_AUDIO_WIDGET_CAP_CC(w->param.widget_cap) != 1)
sys/dev/sound/pci/hda/hdaa.c
541
if (w->enable == 0 || w->type !=
sys/dev/sound/pci/hda/hdaa.c
545
if (HDA_PARAM_PIN_CAP_PRESENCE_DETECT_CAP(w->wclass.pin.cap) == 0 ||
sys/dev/sound/pci/hda/hdaa.c
546
(HDA_CONFIG_DEFAULTCONF_MISC(w->wclass.pin.config) & 1) != 0)
sys/dev/sound/pci/hda/hdaa.c
549
res = hda_command(devinfo->dev, HDA_CMD_GET_PIN_SENSE(0, w->nid));
sys/dev/sound/pci/hda/hdaa.c
553
old = w->wclass.pin.connected;
sys/dev/sound/pci/hda/hdaa.c
556
w->wclass.pin.connected = connected;
sys/dev/sound/pci/hda/hdaa.c
558
as = &devinfo->as[w->bindas];
sys/dev/sound/pci/hda/hdaa.c
559
if (as->hpredir >= 0 && as->pins[15] == w->nid)
sys/dev/sound/pci/hda/hdaa.c
560
hdaa_hpredir_handler(w);
sys/dev/sound/pci/hda/hdaa.c
562
hdaa_autorecsrc_handler(as, w);
sys/dev/sound/pci/hda/hdaa.c
5699
hdaa_dump_pin(struct hdaa_widget *w)
sys/dev/sound/pci/hda/hdaa.c
570
w->nid, res, !connected ? "dis" : "");
sys/dev/sound/pci/hda/hdaa.c
5703
pincap = w->wclass.pin.cap;
sys/dev/sound/pci/hda/hdaa.c
5705
device_printf(w->devinfo->dev, " Pin cap: 0x%08x", pincap);
sys/dev/sound/pci/hda/hdaa.c
5743
device_printf(w->devinfo->dev, " Pin config: 0x%08x\n",
sys/dev/sound/pci/hda/hdaa.c
5744
w->wclass.pin.config);
sys/dev/sound/pci/hda/hdaa.c
5745
device_printf(w->devinfo->dev, " Pin control: 0x%08x", w->wclass.pin.ctrl);
sys/dev/sound/pci/hda/hdaa.c
5746
if (w->wclass.pin.ctrl & HDA_CMD_SET_PIN_WIDGET_CTRL_HPHN_ENABLE)
sys/dev/sound/pci/hda/hdaa.c
5748
if (w->wclass.pin.ctrl & HDA_CMD_SET_PIN_WIDGET_CTRL_IN_ENABLE)
sys/dev/sound/pci/hda/hdaa.c
5750
if (w->wclass.pin.ctrl & HDA_CMD_SET_PIN_WIDGET_CTRL_OUT_ENABLE)
sys/dev/sound/pci/hda/hdaa.c
5752
if (HDA_PARAM_AUDIO_WIDGET_CAP_DIGITAL(w->param.widget_cap)) {
sys/dev/sound/pci/hda/hdaa.c
5753
if ((w->wclass.pin.ctrl &
sys/dev/sound/pci/hda/hdaa.c
5756
else if ((w->wclass.pin.ctrl &
sys/dev/sound/pci/hda/hdaa.c
5760
if ((w->wclass.pin.ctrl &
sys/dev/sound/pci/hda/hdaa.c
5768
hdaa_dump_pin_config(struct hdaa_widget *w, uint32_t conf)
sys/dev/sound/pci/hda/hdaa.c
5771
device_printf(w->devinfo->dev, "%2d %08x %-2d %-2d "
sys/dev/sound/pci/hda/hdaa.c
5773
w->nid, conf,
sys/dev/sound/pci/hda/hdaa.c
5782
(w->enable == 0)?" DISA":"");
sys/dev/sound/pci/hda/hdaa.c
5788
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
5794
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
5795
if (w == NULL)
sys/dev/sound/pci/hda/hdaa.c
5797
if (w->type != HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX)
sys/dev/sound/pci/hda/hdaa.c
5799
hdaa_dump_pin_config(w, w->wclass.pin.config);
sys/dev/sound/pci/hda/hdaa.c
5823
struct hdaa_widget *w, *cw;
sys/dev/sound/pci/hda/hdaa.c
5835
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
5836
if (w == NULL) {
sys/dev/sound/pci/hda/hdaa.c
5841
device_printf(devinfo->dev, " nid: %d%s\n", w->nid,
sys/dev/sound/pci/hda/hdaa.c
5842
(w->enable == 0) ? " [DISABLED]" : "");
sys/dev/sound/pci/hda/hdaa.c
5843
device_printf(devinfo->dev, " Name: %s\n", w->name);
sys/dev/sound/pci/hda/hdaa.c
5845
w->param.widget_cap);
sys/dev/sound/pci/hda/hdaa.c
5846
if (w->param.widget_cap & 0x0ee1) {
sys/dev/sound/pci/hda/hdaa.c
5847
if (HDA_PARAM_AUDIO_WIDGET_CAP_LR_SWAP(w->param.widget_cap))
sys/dev/sound/pci/hda/hdaa.c
5849
if (HDA_PARAM_AUDIO_WIDGET_CAP_POWER_CTRL(w->param.widget_cap))
sys/dev/sound/pci/hda/hdaa.c
5851
if (HDA_PARAM_AUDIO_WIDGET_CAP_DIGITAL(w->param.widget_cap))
sys/dev/sound/pci/hda/hdaa.c
5853
if (HDA_PARAM_AUDIO_WIDGET_CAP_UNSOL_CAP(w->param.widget_cap))
sys/dev/sound/pci/hda/hdaa.c
5855
if (HDA_PARAM_AUDIO_WIDGET_CAP_PROC_WIDGET(w->param.widget_cap))
sys/dev/sound/pci/hda/hdaa.c
5857
if (HDA_PARAM_AUDIO_WIDGET_CAP_STRIPE(w->param.widget_cap))
sys/dev/sound/pci/hda/hdaa.c
5859
1 << (fls(w->wclass.conv.stripecap) - 1));
sys/dev/sound/pci/hda/hdaa.c
5860
j = HDA_PARAM_AUDIO_WIDGET_CAP_CC(w->param.widget_cap);
sys/dev/sound/pci/hda/hdaa.c
5867
if (w->bindas != -1) {
sys/dev/sound/pci/hda/hdaa.c
5869
w->bindas, w->bindseqmask);
sys/dev/sound/pci/hda/hdaa.c
5871
if (w->ossmask != 0 || w->ossdev >= 0) {
sys/dev/sound/pci/hda/hdaa.c
5873
hdaa_audio_ctl_ossmixer_mask2allname(w->ossmask, buf, sizeof(buf)));
sys/dev/sound/pci/hda/hdaa.c
5874
if (w->ossdev >= 0)
sys/dev/sound/pci/hda/hdaa.c
5875
printf(" (%s)", ossnames[w->ossdev]);
sys/dev/sound/pci/hda/hdaa.c
5878
if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_OUTPUT ||
sys/dev/sound/pci/hda/hdaa.c
5879
w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_INPUT) {
sys/dev/sound/pci/hda/hdaa.c
5881
w->param.supp_stream_formats,
sys/dev/sound/pci/hda/hdaa.c
5882
w->param.supp_pcm_size_rate);
sys/dev/sound/pci/hda/hdaa.c
5883
} else if (w->type ==
sys/dev/sound/pci/hda/hdaa.c
5884
HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX || w->waspin)
sys/dev/sound/pci/hda/hdaa.c
5885
hdaa_dump_pin(w);
sys/dev/sound/pci/hda/hdaa.c
5886
if (w->param.eapdbtl != HDA_INVALID)
sys/dev/sound/pci/hda/hdaa.c
5888
w->param.eapdbtl);
sys/dev/sound/pci/hda/hdaa.c
5889
if (HDA_PARAM_AUDIO_WIDGET_CAP_OUT_AMP(w->param.widget_cap) &&
sys/dev/sound/pci/hda/hdaa.c
5890
w->param.outamp_cap != 0)
sys/dev/sound/pci/hda/hdaa.c
5891
hdaa_dump_amp(devinfo->dev, w->param.outamp_cap, "Output");
sys/dev/sound/pci/hda/hdaa.c
5892
if (HDA_PARAM_AUDIO_WIDGET_CAP_IN_AMP(w->param.widget_cap) &&
sys/dev/sound/pci/hda/hdaa.c
5893
w->param.inamp_cap != 0)
sys/dev/sound/pci/hda/hdaa.c
5894
hdaa_dump_amp(devinfo->dev, w->param.inamp_cap, " Input");
sys/dev/sound/pci/hda/hdaa.c
5895
if (w->nconns > 0)
sys/dev/sound/pci/hda/hdaa.c
5896
device_printf(devinfo->dev, " Connections: %d\n", w->nconns);
sys/dev/sound/pci/hda/hdaa.c
5897
for (j = 0; j < w->nconns; j++) {
sys/dev/sound/pci/hda/hdaa.c
5898
cw = hdaa_widget_get(devinfo, w->conns[j]);
sys/dev/sound/pci/hda/hdaa.c
5900
(w->connsenable[j] == 0)?"[DISABLED] ":"",
sys/dev/sound/pci/hda/hdaa.c
5901
w->conns[j], (cw == NULL) ? "GHOST!" : cw->name);
sys/dev/sound/pci/hda/hdaa.c
5906
if (w->nconns > 1 && w->selconn == j && w->type !=
sys/dev/sound/pci/hda/hdaa.c
5919
struct hdaa_widget *w, *cw;
sys/dev/sound/pci/hda/hdaa.c
5926
w = hdaa_widget_get(devinfo, nid);
sys/dev/sound/pci/hda/hdaa.c
5927
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
5934
printf("nid=%d [%s]", w->nid, w->name);
sys/dev/sound/pci/hda/hdaa.c
5937
if (w->ossmask == 0) {
sys/dev/sound/pci/hda/hdaa.c
5943
w->ossmask, buf, sizeof(buf)));
sys/dev/sound/pci/hda/hdaa.c
5944
if (w->ossdev >= 0) {
sys/dev/sound/pci/hda/hdaa.c
5951
for (i = 0; i < w->nconns; i++) {
sys/dev/sound/pci/hda/hdaa.c
5952
if (w->connsenable[i] == 0)
sys/dev/sound/pci/hda/hdaa.c
5954
cw = hdaa_widget_get(devinfo, w->conns[i]);
sys/dev/sound/pci/hda/hdaa.c
5957
hdaa_dump_dst_nid(pdevinfo, w->conns[i], depth + 1);
sys/dev/sound/pci/hda/hdaa.c
5967
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
5992
w = hdaa_widget_get(devinfo, as->pins[i]);
sys/dev/sound/pci/hda/hdaa.c
5993
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
6005
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
6027
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
6028
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
6030
if (w->type != HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_INPUT)
sys/dev/sound/pci/hda/hdaa.c
6032
if (w->bindas != pdevinfo->recas)
sys/dev/sound/pci/hda/hdaa.c
6044
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
6049
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
6050
if (w == NULL || w->enable == 0)
sys/dev/sound/pci/hda/hdaa.c
6052
if (w->ossdev != SOUND_MIXER_IMIX)
sys/dev/sound/pci/hda/hdaa.c
6054
if (w->bindas != pdevinfo->recas)
sys/dev/sound/pci/hda/hdaa.c
606
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
6071
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
6079
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
6080
if (w == NULL || w->type !=
sys/dev/sound/pci/hda/hdaa.c
6083
hdaa_dump_pin_config(w, w->wclass.pin.config);
sys/dev/sound/pci/hda/hdaa.c
6084
pincap = w->wclass.pin.cap;
sys/dev/sound/pci/hda/hdaa.c
6096
HDA_CMD_SET_PIN_SENSE(0, w->nid, 0));
sys/dev/sound/pci/hda/hdaa.c
6099
HDA_CMD_GET_PIN_SENSE(0, w->nid));
sys/dev/sound/pci/hda/hdaa.c
6107
w->nid));
sys/dev/sound/pci/hda/hdaa.c
6112
(HDA_PARAM_AUDIO_WIDGET_CAP_DIGITAL(w->param.widget_cap) &&
sys/dev/sound/pci/hda/hdaa.c
617
w = hdaa_widget_get(devinfo, devinfo->as[i].pins[15]);
sys/dev/sound/pci/hda/hdaa.c
618
if (w == NULL || w->enable == 0 || w->type !=
sys/dev/sound/pci/hda/hdaa.c
621
hdaa_presence_handler(w);
sys/dev/sound/pci/hda/hdaa.c
6286
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
629
hdaa_eld_dump(struct hdaa_widget *w)
sys/dev/sound/pci/hda/hdaa.c
6306
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
6307
if (w == NULL)
sys/dev/sound/pci/hda/hdaa.c
6309
w->enable = 1;
sys/dev/sound/pci/hda/hdaa.c
631
struct hdaa_devinfo *devinfo = w->devinfo;
sys/dev/sound/pci/hda/hdaa.c
6310
w->selconn = -1;
sys/dev/sound/pci/hda/hdaa.c
6311
w->pflags = 0;
sys/dev/sound/pci/hda/hdaa.c
6312
w->bindas = -1;
sys/dev/sound/pci/hda/hdaa.c
6313
w->bindseqmask = 0;
sys/dev/sound/pci/hda/hdaa.c
6314
w->ossdev = -1;
sys/dev/sound/pci/hda/hdaa.c
6315
w->ossmask = 0;
sys/dev/sound/pci/hda/hdaa.c
6316
for (j = 0; j < w->nconns; j++)
sys/dev/sound/pci/hda/hdaa.c
6317
w->connsenable[j] = 1;
sys/dev/sound/pci/hda/hdaa.c
6318
if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX)
sys/dev/sound/pci/hda/hdaa.c
6319
w->wclass.pin.config = w->wclass.pin.newconf;
sys/dev/sound/pci/hda/hdaa.c
6320
if (w->eld != NULL) {
sys/dev/sound/pci/hda/hdaa.c
6321
w->eld_len = 0;
sys/dev/sound/pci/hda/hdaa.c
6322
free(w->eld, M_HDAA);
sys/dev/sound/pci/hda/hdaa.c
6323
w->eld = NULL;
sys/dev/sound/pci/hda/hdaa.c
636
if (w->eld == NULL || w->eld_len < 4)
sys/dev/sound/pci/hda/hdaa.c
640
w->nid, w->eld[0] >> 3, w->eld[2]);
sys/dev/sound/pci/hda/hdaa.c
641
if ((w->eld[0] >> 3) != 0x02)
sys/dev/sound/pci/hda/hdaa.c
643
mnl = w->eld[4] & 0x1f;
sys/dev/sound/pci/hda/hdaa.c
646
w->nid, w->eld[4] >> 5, mnl);
sys/dev/sound/pci/hda/hdaa.c
647
sadc = w->eld[5] >> 4;
sys/dev/sound/pci/hda/hdaa.c
650
w->nid, sadc, (w->eld[5] >> 2) & 0x3,
sys/dev/sound/pci/hda/hdaa.c
651
(w->eld[5] >> 1) & 0x1, w->eld[5] & 0x1);
sys/dev/sound/pci/hda/hdaa.c
654
w->nid, w->eld[6] * 2);
sys/dev/sound/pci/hda/hdaa.c
657
w->nid, w->eld[7],
sys/dev/sound/pci/hda/hdaa.c
661
w->nid, w->eld[8], w->eld[9], w->eld[10], w->eld[11],
sys/dev/sound/pci/hda/hdaa.c
662
w->eld[12], w->eld[13], w->eld[14], w->eld[15]);
sys/dev/sound/pci/hda/hdaa.c
665
w->nid, w->eld[16], w->eld[17]);
sys/dev/sound/pci/hda/hdaa.c
668
w->nid, w->eld[18], w->eld[19]);
sys/dev/sound/pci/hda/hdaa.c
671
w->nid, mnl, &w->eld[20]);
sys/dev/sound/pci/hda/hdaa.c
673
sad = &w->eld[20 + mnl + i * 3];
sys/dev/sound/pci/hda/hdaa.c
6823
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
6831
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
6832
if (w == NULL || w->enable == 0 || w->type !=
sys/dev/sound/pci/hda/hdaa.c
6835
if (w->unsol != tag)
sys/dev/sound/pci/hda/hdaa.c
6837
if (HDA_PARAM_PIN_CAP_DP(w->wclass.pin.cap) ||
sys/dev/sound/pci/hda/hdaa.c
6838
HDA_PARAM_PIN_CAP_HDMI(w->wclass.pin.cap))
sys/dev/sound/pci/hda/hdaa.c
684
w->nid, HDA_HDMI_CODING_TYPES[fmt], (sad[0] & 0x07) + 1,
sys/dev/sound/pci/hda/hdaa.c
6843
hdaa_presence_handler(w);
sys/dev/sound/pci/hda/hdaa.c
6845
hdaa_eld_handler(w);
sys/dev/sound/pci/hda/hdaa.c
6907
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
6912
w = hdaa_widget_get(devinfo, as->pins[i]);
sys/dev/sound/pci/hda/hdaa.c
6913
if (w == NULL || w->enable == 0 || w->type !=
sys/dev/sound/pci/hda/hdaa.c
6916
t1 = HDA_CONFIG_DEFAULTCONF_DEVICE(w->wclass.pin.config);
sys/dev/sound/pci/hda/hdaa.c
709
hdaa_eld_handler(struct hdaa_widget *w)
sys/dev/sound/pci/hda/hdaa.c
711
struct hdaa_devinfo *devinfo = w->devinfo;
sys/dev/sound/pci/hda/hdaa.c
715
if (w->enable == 0 || w->type !=
sys/dev/sound/pci/hda/hdaa.c
719
if (HDA_PARAM_PIN_CAP_PRESENCE_DETECT_CAP(w->wclass.pin.cap) == 0 ||
sys/dev/sound/pci/hda/hdaa.c
720
(HDA_CONFIG_DEFAULTCONF_MISC(w->wclass.pin.config) & 1) != 0)
sys/dev/sound/pci/hda/hdaa.c
723
res = hda_command(devinfo->dev, HDA_CMD_GET_PIN_SENSE(0, w->nid));
sys/dev/sound/pci/hda/hdaa.c
724
if ((w->eld != 0) == ((res & HDA_CMD_GET_PIN_SENSE_ELD_VALID) != 0))
sys/dev/sound/pci/hda/hdaa.c
726
if (w->eld != NULL) {
sys/dev/sound/pci/hda/hdaa.c
727
w->eld_len = 0;
sys/dev/sound/pci/hda/hdaa.c
728
free(w->eld, M_HDAA);
sys/dev/sound/pci/hda/hdaa.c
729
w->eld = NULL;
sys/dev/sound/pci/hda/hdaa.c
735
w->nid, res,
sys/dev/sound/pci/hda/hdaa.c
743
HDA_CMD_GET_HDMI_DIP_SIZE(0, w->nid, 0x08));
sys/dev/sound/pci/hda/hdaa.c
746
w->eld_len = res & 0xff;
sys/dev/sound/pci/hda/hdaa.c
747
if (w->eld_len != 0)
sys/dev/sound/pci/hda/hdaa.c
748
w->eld = malloc(w->eld_len, M_HDAA, M_ZERO | M_NOWAIT);
sys/dev/sound/pci/hda/hdaa.c
749
if (w->eld == NULL) {
sys/dev/sound/pci/hda/hdaa.c
750
w->eld_len = 0;
sys/dev/sound/pci/hda/hdaa.c
754
for (i = 0; i < w->eld_len; i++) {
sys/dev/sound/pci/hda/hdaa.c
756
HDA_CMD_GET_HDMI_ELDD(0, w->nid, i));
sys/dev/sound/pci/hda/hdaa.c
758
w->eld[i] = res & 0xff;
sys/dev/sound/pci/hda/hdaa.c
761
hdaa_eld_dump(w);
sys/dev/sound/pci/hda/hdaa.c
763
hdaa_channels_handler(&devinfo->as[w->bindas]);
sys/dev/sound/pci/hda/hdaa.c
773
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
777
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
778
if (w == NULL || w->enable == 0 || w->type !=
sys/dev/sound/pci/hda/hdaa.c
781
if (HDA_PARAM_AUDIO_WIDGET_CAP_UNSOL_CAP(w->param.widget_cap)) {
sys/dev/sound/pci/hda/hdaa.c
782
if (w->unsol < 0)
sys/dev/sound/pci/hda/hdaa.c
783
w->unsol = HDAC_UNSOL_ALLOC(
sys/dev/sound/pci/hda/hdaa.c
785
devinfo->dev, w->nid);
sys/dev/sound/pci/hda/hdaa.c
787
HDA_CMD_SET_UNSOLICITED_RESPONSE(0, w->nid,
sys/dev/sound/pci/hda/hdaa.c
788
HDA_CMD_SET_UNSOLICITED_RESPONSE_ENABLE | w->unsol));
sys/dev/sound/pci/hda/hdaa.c
790
as = &devinfo->as[w->bindas];
sys/dev/sound/pci/hda/hdaa.c
791
if (as->hpredir >= 0 && as->pins[15] == w->nid) {
sys/dev/sound/pci/hda/hdaa.c
792
if (HDA_PARAM_PIN_CAP_PRESENCE_DETECT_CAP(w->wclass.pin.cap) == 0 ||
sys/dev/sound/pci/hda/hdaa.c
793
(HDA_CONFIG_DEFAULTCONF_MISC(w->wclass.pin.config) & 1) != 0) {
sys/dev/sound/pci/hda/hdaa.c
796
w->nid);
sys/dev/sound/pci/hda/hdaa.c
798
if (w->unsol < 0)
sys/dev/sound/pci/hda/hdaa.c
804
w->bindas, w->nid,
sys/dev/sound/pci/hda/hdaa.c
805
(w->unsol < 0) ? "polling" :
sys/dev/sound/pci/hda/hdaa.c
810
hdaa_presence_handler(w);
sys/dev/sound/pci/hda/hdaa.c
811
if (!HDA_PARAM_PIN_CAP_DP(w->wclass.pin.cap) &&
sys/dev/sound/pci/hda/hdaa.c
812
!HDA_PARAM_PIN_CAP_HDMI(w->wclass.pin.cap))
sys/dev/sound/pci/hda/hdaa.c
814
hdaa_eld_handler(w);
sys/dev/sound/pci/hda/hdaa.c
825
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa.c
830
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa.c
831
if (w == NULL || w->enable == 0 || w->type !=
sys/dev/sound/pci/hda/hdaa.c
834
if (w->unsol < 0)
sys/dev/sound/pci/hda/hdaa.c
837
HDA_CMD_SET_UNSOLICITED_RESPONSE(0, w->nid, 0));
sys/dev/sound/pci/hda/hdaa.c
840
w->unsol);
sys/dev/sound/pci/hda/hdaa.c
841
w->unsol = -1;
sys/dev/sound/pci/hda/hdaa.c
967
hdaa_local_patch_pin(struct hdaa_widget *w)
sys/dev/sound/pci/hda/hdaa.c
969
device_t dev = w->devinfo->dev;
sys/dev/sound/pci/hda/hdaa.c
974
config = orig = w->wclass.pin.config;
sys/dev/sound/pci/hda/hdaa.c
976
hda_get_codec_id(dev), w->nid);
sys/dev/sound/pci/hda/hdaa.c
987
snprintf(buf, sizeof(buf), "nid%u.config", w->nid);
sys/dev/sound/pci/hda/hdaa.c
998
device_printf(w->devinfo->dev,
sys/dev/sound/pci/hda/hdaa_patches.c
174
hdac_pin_patch(struct hdaa_widget *w)
sys/dev/sound/pci/hda/hdaa_patches.c
178
nid_t nid = w->nid;
sys/dev/sound/pci/hda/hdaa_patches.c
180
config = orig = w->wclass.pin.config;
sys/dev/sound/pci/hda/hdaa_patches.c
181
id = hdaa_codec_id(w->devinfo);
sys/dev/sound/pci/hda/hdaa_patches.c
182
subid = hdaa_card_id(w->devinfo);
sys/dev/sound/pci/hda/hdaa_patches.c
456
device_printf(w->devinfo->dev,
sys/dev/sound/pci/hda/hdaa_patches.c
460
w->wclass.pin.config = config;
sys/dev/sound/pci/hda/hdaa_patches.c
464
hdaa_widget_patch(struct hdaa_widget *w)
sys/dev/sound/pci/hda/hdaa_patches.c
466
struct hdaa_devinfo *devinfo = w->devinfo;
sys/dev/sound/pci/hda/hdaa_patches.c
470
orig = w->param.widget_cap;
sys/dev/sound/pci/hda/hdaa_patches.c
493
if (w->nid == beeper) {
sys/dev/sound/pci/hda/hdaa_patches.c
494
w->param.widget_cap &= ~HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_MASK;
sys/dev/sound/pci/hda/hdaa_patches.c
495
w->param.widget_cap |= HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_BEEP_WIDGET <<
sys/dev/sound/pci/hda/hdaa_patches.c
497
w->waspin = 1;
sys/dev/sound/pci/hda/hdaa_patches.c
504
w->nid == 23)
sys/dev/sound/pci/hda/hdaa_patches.c
505
w->param.widget_cap &= ~HDA_PARAM_AUDIO_WIDGET_CAP_DIGITAL_MASK;
sys/dev/sound/pci/hda/hdaa_patches.c
507
if (w->param.widget_cap != orig) {
sys/dev/sound/pci/hda/hdaa_patches.c
508
device_printf(w->devinfo->dev,
sys/dev/sound/pci/hda/hdaa_patches.c
510
w->nid, orig, w->param.widget_cap);
sys/dev/sound/pci/hda/hdaa_patches.c
514
if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX)
sys/dev/sound/pci/hda/hdaa_patches.c
515
hdac_pin_patch(w);
sys/dev/sound/pci/hda/hdaa_patches.c
521
struct hdaa_widget *w;
sys/dev/sound/pci/hda/hdaa_patches.c
544
w = hdaa_widget_get(devinfo, i);
sys/dev/sound/pci/hda/hdaa_patches.c
545
if (w == NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
547
hdaa_widget_patch(w);
sys/dev/sound/pci/hda/hdaa_patches.c
557
w = hdaa_widget_get(devinfo, 5);
sys/dev/sound/pci/hda/hdaa_patches.c
558
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
559
w->connsenable[0] = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
560
w = hdaa_widget_get(devinfo, 6);
sys/dev/sound/pci/hda/hdaa_patches.c
561
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
562
w->connsenable[0] = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
563
w = hdaa_widget_get(devinfo, 11);
sys/dev/sound/pci/hda/hdaa_patches.c
564
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
565
w->connsenable[0] = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
567
w = hdaa_widget_get(devinfo, 12);
sys/dev/sound/pci/hda/hdaa_patches.c
568
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
569
w->connsenable[1] = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
570
w = hdaa_widget_get(devinfo, 13);
sys/dev/sound/pci/hda/hdaa_patches.c
571
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
572
w->connsenable[1] = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
574
w = hdaa_widget_get(devinfo, 20);
sys/dev/sound/pci/hda/hdaa_patches.c
575
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
576
w->connsenable[3] = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
584
w = hdaa_widget_get(devinfo, 43);
sys/dev/sound/pci/hda/hdaa_patches.c
585
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
586
w->enable = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
588
w = hdaa_widget_get(devinfo, 39);
sys/dev/sound/pci/hda/hdaa_patches.c
589
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
590
w->enable = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
591
w = hdaa_widget_get(devinfo, 40);
sys/dev/sound/pci/hda/hdaa_patches.c
592
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
593
w->enable = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
594
w = hdaa_widget_get(devinfo, 41);
sys/dev/sound/pci/hda/hdaa_patches.c
595
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
596
w->enable = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
597
w = hdaa_widget_get(devinfo, 42);
sys/dev/sound/pci/hda/hdaa_patches.c
598
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
599
w->enable = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
601
w = hdaa_widget_get(devinfo, 15);
sys/dev/sound/pci/hda/hdaa_patches.c
602
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
603
w->connsenable[3] = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
605
w = hdaa_widget_get(devinfo, 31);
sys/dev/sound/pci/hda/hdaa_patches.c
606
if (w != NULL) {
sys/dev/sound/pci/hda/hdaa_patches.c
607
if ((w->wclass.pin.config &
sys/dev/sound/pci/hda/hdaa_patches.c
610
w = hdaa_widget_get(devinfo, 16);
sys/dev/sound/pci/hda/hdaa_patches.c
611
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
612
w->connsenable[2] = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
614
w = hdaa_widget_get(devinfo, 15);
sys/dev/sound/pci/hda/hdaa_patches.c
615
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
616
w->connsenable[0] = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
619
w = hdaa_widget_get(devinfo, 32);
sys/dev/sound/pci/hda/hdaa_patches.c
620
if (w != NULL) {
sys/dev/sound/pci/hda/hdaa_patches.c
621
if ((w->wclass.pin.config &
sys/dev/sound/pci/hda/hdaa_patches.c
624
w = hdaa_widget_get(devinfo, 16);
sys/dev/sound/pci/hda/hdaa_patches.c
625
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
626
w->connsenable[0] = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
628
w = hdaa_widget_get(devinfo, 15);
sys/dev/sound/pci/hda/hdaa_patches.c
629
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
630
w->connsenable[1] = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
640
w = hdaa_widget_get(devinfo, 26);
sys/dev/sound/pci/hda/hdaa_patches.c
641
if (w != NULL && w->type ==
sys/dev/sound/pci/hda/hdaa_patches.c
643
(w->wclass.pin.config &
sys/dev/sound/pci/hda/hdaa_patches.c
656
w = hdaa_widget_get(devinfo, 21);
sys/dev/sound/pci/hda/hdaa_patches.c
657
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
658
w->connsenable[3] = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
660
w = hdaa_widget_get(devinfo, 31);
sys/dev/sound/pci/hda/hdaa_patches.c
661
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
662
w->enable = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
664
w = hdaa_widget_get(devinfo, 5);
sys/dev/sound/pci/hda/hdaa_patches.c
665
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
666
w->connsenable[0] = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
667
w = hdaa_widget_get(devinfo, 6);
sys/dev/sound/pci/hda/hdaa_patches.c
668
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
669
w->connsenable[0] = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
670
w = hdaa_widget_get(devinfo, 9);
sys/dev/sound/pci/hda/hdaa_patches.c
671
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
672
w->connsenable[0] = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
673
w = hdaa_widget_get(devinfo, 24);
sys/dev/sound/pci/hda/hdaa_patches.c
674
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
675
w->connsenable[0] = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
687
w = hdaa_widget_get(devinfo, 15);
sys/dev/sound/pci/hda/hdaa_patches.c
688
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
689
w->param.inamp_cap = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
701
w = hdaa_widget_get(devinfo, 20);
sys/dev/sound/pci/hda/hdaa_patches.c
702
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
703
w->connsenable[1] = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
704
w = hdaa_widget_get(devinfo, 21);
sys/dev/sound/pci/hda/hdaa_patches.c
705
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
706
w->connsenable[1] = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
707
w = hdaa_widget_get(devinfo, 22);
sys/dev/sound/pci/hda/hdaa_patches.c
708
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
709
w->connsenable[0] = 0;
sys/dev/sound/pci/hda/hdaa_patches.c
722
w = hdaa_widget_get(devinfo, 26);
sys/dev/sound/pci/hda/hdaa_patches.c
723
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
724
w->param.inamp_cap =
sys/dev/sound/pci/hda/hdaa_patches.c
728
w = hdaa_widget_get(devinfo, 30);
sys/dev/sound/pci/hda/hdaa_patches.c
729
if (w != NULL)
sys/dev/sound/pci/hda/hdaa_patches.c
730
w->param.inamp_cap =
sys/dev/sound/pcm/channel.h
190
#define CHN_FOREACH_SAFE(w, x, y, z) \
sys/dev/sound/pcm/channel.h
191
SLIST_FOREACH_SAFE(w, CHN_HEAD(x, z), CHN_LINK(z), y)
sys/dev/sound/pcm/channel.h
209
#define CHN_INSERT_AFTER_SAFE(w, x, y, z) do { \
sys/dev/sound/pcm/channel.h
211
CHN_FOREACH(t, w, z) { \
sys/dev/sound/pcm/channel.h
233
#define CHN_INSERT_SORT(w, x, y, z) do { \
sys/dev/sound/pcm/channel.h
236
if (((y)->type w t->type) || \
sys/dev/sound/pcm/channel.h
237
(((y)->type == t->type) && ((y)->unit w t->unit))) \
sys/dev/sound/pcm/feeder_eq.c
143
intpcm64_t w;
sys/dev/sound/pcm/feeder_eq.c
174
w = (intpcm64_t)v * treble->b0;
sys/dev/sound/pcm/feeder_eq.c
175
w += (intpcm64_t)info->treble.i1[i] * treble->b1;
sys/dev/sound/pcm/feeder_eq.c
176
w += (intpcm64_t)info->treble.i2[i] * treble->b2;
sys/dev/sound/pcm/feeder_eq.c
177
w -= (intpcm64_t)info->treble.o1[i] * treble->a1;
sys/dev/sound/pcm/feeder_eq.c
178
w -= (intpcm64_t)info->treble.o2[i] * treble->a2;
sys/dev/sound/pcm/feeder_eq.c
182
w >>= FEEDEQ_COEFF_SHIFT;
sys/dev/sound/pcm/feeder_eq.c
183
FEEDEQ_ERR_CLIP_CHECK(treble, w);
sys/dev/sound/pcm/feeder_eq.c
184
v = pcm_clamp(w, AFMT_S32_NE);
sys/dev/sound/pcm/feeder_eq.c
187
w = (intpcm64_t)v * bass->b0;
sys/dev/sound/pcm/feeder_eq.c
188
w += (intpcm64_t)info->bass.i1[i] * bass->b1;
sys/dev/sound/pcm/feeder_eq.c
189
w += (intpcm64_t)info->bass.i2[i] * bass->b2;
sys/dev/sound/pcm/feeder_eq.c
190
w -= (intpcm64_t)info->bass.o1[i] * bass->a1;
sys/dev/sound/pcm/feeder_eq.c
191
w -= (intpcm64_t)info->bass.o2[i] * bass->a2;
sys/dev/sound/pcm/feeder_eq.c
195
w >>= FEEDEQ_COEFF_SHIFT;
sys/dev/sound/pcm/feeder_eq.c
196
FEEDEQ_ERR_CLIP_CHECK(bass, w);
sys/dev/sound/pcm/feeder_eq.c
197
v = pcm_clamp(w, AFMT_S32_NE);
sys/dev/sound/pcm/feeder_rate.c
387
int32_t w;
sys/dev/sound/pcm/feeder_rate.c
390
w = x % y;
sys/dev/sound/pcm/feeder_rate.c
392
y = w;
sys/dev/syscons/scvgarndr.c
288
#define GET_PIXEL(scp, pos, x, w) \
sys/dev/syscons/scvgarndr.c
292
(scp)->yoff * (scp)->font_size * (w) + \
sys/dev/syscons/scvgarndr.c
294
(scp)->font_size * (w) * ((pos) / (scp)->xsize); \
sys/dev/ti/if_tireg.h
830
#define TI_DO_CMD_EXT(x, y, z, v, w) do { \
sys/dev/ti/if_tireg.h
832
ti_cmd_ext(sc, &cmd, (v), (w)); \
sys/dev/usb/input/wsp.c
378
struct wsp_param w; /* finger width limits */
sys/dev/usb/input/wsp.c
394
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/usb/input/wsp.c
403
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/usb/input/wsp.c
412
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/usb/input/wsp.c
421
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/usb/input/wsp.c
430
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/usb/input/wsp.c
439
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/usb/input/wsp.c
448
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/usb/input/wsp.c
457
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/usb/input/wsp.c
466
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/usb/input/wsp.c
475
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/usb/input/wsp.c
484
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/usb/input/wsp.c
493
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/usb/input/wsp.c
502
.w = { SN_WIDTH, 0, 2048, 0 },
sys/dev/usb/input/wsp.c
901
WSP_SUPPORT_ABS(sc->sc_evdev, ABS_MT_TOUCH_MAJOR, sc->sc_params->w);
sys/dev/usb/input/wsp.c
902
WSP_SUPPORT_ABS(sc->sc_evdev, ABS_MT_TOUCH_MINOR, sc->sc_params->w);
sys/dev/usb/input/wsp.c
904
WSP_SUPPORT_ABS(sc->sc_evdev, ABS_MT_WIDTH_MAJOR, sc->sc_params->w);
sys/dev/usb/input/wsp.c
905
WSP_SUPPORT_ABS(sc->sc_evdev, ABS_MT_WIDTH_MINOR, sc->sc_params->w);
sys/dev/usb/usb_endian.h
100
(w)[0] = (uint8_t)(b0); \
sys/dev/usb/usb_endian.h
101
(w)[1] = (uint8_t)(b1); \
sys/dev/usb/usb_endian.h
104
#define USETW4(w,b3,b2,b1,b0) do { \
sys/dev/usb/usb_endian.h
105
(w)[0] = (uint8_t)(b0); \
sys/dev/usb/usb_endian.h
106
(w)[1] = (uint8_t)(b1); \
sys/dev/usb/usb_endian.h
107
(w)[2] = (uint8_t)(b2); \
sys/dev/usb/usb_endian.h
108
(w)[3] = (uint8_t)(b3); \
sys/dev/usb/usb_endian.h
111
#define USETW8(w,b7,b6,b5,b4,b3,b2,b1,b0) do { \
sys/dev/usb/usb_endian.h
112
(w)[0] = (uint8_t)(b0); \
sys/dev/usb/usb_endian.h
113
(w)[1] = (uint8_t)(b1); \
sys/dev/usb/usb_endian.h
114
(w)[2] = (uint8_t)(b2); \
sys/dev/usb/usb_endian.h
115
(w)[3] = (uint8_t)(b3); \
sys/dev/usb/usb_endian.h
116
(w)[4] = (uint8_t)(b4); \
sys/dev/usb/usb_endian.h
117
(w)[5] = (uint8_t)(b5); \
sys/dev/usb/usb_endian.h
118
(w)[6] = (uint8_t)(b6); \
sys/dev/usb/usb_endian.h
119
(w)[7] = (uint8_t)(b7); \
sys/dev/usb/usb_endian.h
49
#define UGETB(w) \
sys/dev/usb/usb_endian.h
50
((w)[0])
sys/dev/usb/usb_endian.h
52
#define UGETW(w) \
sys/dev/usb/usb_endian.h
53
((w)[0] | \
sys/dev/usb/usb_endian.h
54
(((uint16_t)((w)[1])) << 8))
sys/dev/usb/usb_endian.h
56
#define UGETDW(w) \
sys/dev/usb/usb_endian.h
57
((w)[0] | \
sys/dev/usb/usb_endian.h
58
(((uint16_t)((w)[1])) << 8) | \
sys/dev/usb/usb_endian.h
59
(((uint32_t)((w)[2])) << 16) | \
sys/dev/usb/usb_endian.h
60
(((uint32_t)((w)[3])) << 24))
sys/dev/usb/usb_endian.h
62
#define UGETQW(w) \
sys/dev/usb/usb_endian.h
63
((w)[0] | \
sys/dev/usb/usb_endian.h
64
(((uint16_t)((w)[1])) << 8) | \
sys/dev/usb/usb_endian.h
65
(((uint32_t)((w)[2])) << 16) | \
sys/dev/usb/usb_endian.h
66
(((uint32_t)((w)[3])) << 24) | \
sys/dev/usb/usb_endian.h
67
(((uint64_t)((w)[4])) << 32) | \
sys/dev/usb/usb_endian.h
68
(((uint64_t)((w)[5])) << 40) | \
sys/dev/usb/usb_endian.h
69
(((uint64_t)((w)[6])) << 48) | \
sys/dev/usb/usb_endian.h
70
(((uint64_t)((w)[7])) << 56))
sys/dev/usb/usb_endian.h
72
#define USETB(w,v) do { \
sys/dev/usb/usb_endian.h
73
(w)[0] = (uint8_t)(v); \
sys/dev/usb/usb_endian.h
76
#define USETW(w,v) do { \
sys/dev/usb/usb_endian.h
77
(w)[0] = (uint8_t)(v); \
sys/dev/usb/usb_endian.h
78
(w)[1] = (uint8_t)((v) >> 8); \
sys/dev/usb/usb_endian.h
81
#define USETDW(w,v) do { \
sys/dev/usb/usb_endian.h
82
(w)[0] = (uint8_t)(v); \
sys/dev/usb/usb_endian.h
83
(w)[1] = (uint8_t)((v) >> 8); \
sys/dev/usb/usb_endian.h
84
(w)[2] = (uint8_t)((v) >> 16); \
sys/dev/usb/usb_endian.h
85
(w)[3] = (uint8_t)((v) >> 24); \
sys/dev/usb/usb_endian.h
88
#define USETQW(w,v) do { \
sys/dev/usb/usb_endian.h
89
(w)[0] = (uint8_t)(v); \
sys/dev/usb/usb_endian.h
90
(w)[1] = (uint8_t)((v) >> 8); \
sys/dev/usb/usb_endian.h
91
(w)[2] = (uint8_t)((v) >> 16); \
sys/dev/usb/usb_endian.h
92
(w)[3] = (uint8_t)((v) >> 24); \
sys/dev/usb/usb_endian.h
93
(w)[4] = (uint8_t)((v) >> 32); \
sys/dev/usb/usb_endian.h
94
(w)[5] = (uint8_t)((v) >> 40); \
sys/dev/usb/usb_endian.h
95
(w)[6] = (uint8_t)((v) >> 48); \
sys/dev/usb/usb_endian.h
96
(w)[7] = (uint8_t)((v) >> 56); \
sys/dev/usb/usb_endian.h
99
#define USETW2(w,b1,b0) do { \
sys/dev/virtio/gpu/virtio_gpu.h
248
uint32_t w, h, d;
sys/dev/virtio/network/if_vtnet.c
3896
uint32_t w;
sys/dev/virtio/network/if_vtnet.c
3904
w = sc->vtnet_vlan_filter[i];
sys/dev/virtio/network/if_vtnet.c
3906
while ((bit = ffs(w) - 1) != -1) {
sys/dev/virtio/network/if_vtnet.c
3907
w &= ~(1 << bit);
sys/dev/virtio/network/if_vtnet.c
3908
tag = sizeof(w) * CHAR_BIT * i + bit;
sys/dev/vkbd/vkbd.c
83
#define VKBD_LOCK_ASSERT(s, w) mtx_assert(&(s)->ks_lock, w)
sys/dev/vkbd/vkbd.c
92
#define VKBD_LOCK_ASSERT(s, w)
sys/dev/vmd/vmd.c
251
struct pcib_window *w;
sys/dev/vmd/vmd.c
329
w = &sc->psc.mem;
sys/dev/vmd/vmd.c
330
w->rman.rm_type = RMAN_ARRAY;
sys/dev/vmd/vmd.c
332
w->rman.rm_descr = strdup(buf, M_DEVBUF);
sys/dev/vmd/vmd.c
333
error = rman_init(&w->rman);
sys/dev/vmd/vmd.c
336
w->rman.rm_end = 0;
sys/dev/vmd/vmd.c
339
error = rman_manage_region(&w->rman,
sys/dev/vmd/vmd.c
346
error = rman_manage_region(&w->rman,
sys/dev/vt/vt.h
413
#define PIXEL_WIDTH(w) ((w) / 8)
sys/dev/vt/vt_buf.c
501
unsigned int w, h, c, r, old_history_size;
sys/dev/vt/vt_buf.c
524
w = vb->vb_scr_size.tp_col;
sys/dev/vt/vt_buf.c
567
MIN(p->tp_col, w) * sizeof(term_char_t));
sys/dev/vt/vt_buf.c
574
for (c = MIN(p->tp_col, w); c < p->tp_col; c++) {
sys/dev/vt/vt_buf.c
582
for (c = MIN(p->tp_col, w); c < p->tp_col; c++) {
sys/dev/vt/vt_buf.c
624
MIN(p->tp_col, w) * sizeof(term_char_t));
sys/dev/vt/vt_buf.c
631
for (c = MIN(p->tp_col, w); c < p->tp_col; c++) {
sys/fs/nfs/nfsport.h
1000
if (w) { \
sys/fs/nfs/nfsport.h
156
#define NFSMCLGET(m, w) do { \
sys/fs/nfs/nfsport.h
162
MCLGET((m), (w)); \
sys/fs/nfs/nfsport.h
164
#define NFSMCLGETHDR(m, w) do { \
sys/fs/nfs/nfsport.h
998
#define NFSWRITERPC_SETTIME(w, n, a, v4) \
sys/fs/procfs/procfs_dbregs.c
70
#define PROC(d, w, t, r) wrap32 ? \
sys/fs/procfs/procfs_dbregs.c
71
proc_ ## d ## _ ## w ## 32(t, r ## 32) : \
sys/fs/procfs/procfs_dbregs.c
72
proc_ ## d ## _ ## w(t, r)
sys/fs/procfs/procfs_dbregs.c
77
#define PROC(d, w, t, r) proc_ ## d ## _ ## w(t, r)
sys/fs/procfs/procfs_fpregs.c
64
#define PROC(d, w, t, r) wrap32 ? \
sys/fs/procfs/procfs_fpregs.c
65
proc_ ## d ## _ ## w ## 32(t, r ## 32) : \
sys/fs/procfs/procfs_fpregs.c
66
proc_ ## d ## _ ## w(t, r)
sys/fs/procfs/procfs_fpregs.c
71
#define PROC(d, w, t, r) proc_ ## d ## _ ## w(t, r)
sys/fs/procfs/procfs_regs.c
64
#define PROC(d, w, t, r) wrap32 ? \
sys/fs/procfs/procfs_regs.c
65
proc_ ## d ## _ ## w ## 32(t, r ## 32) : \
sys/fs/procfs/procfs_regs.c
66
proc_ ## d ## _ ## w(t, r)
sys/fs/procfs/procfs_regs.c
71
#define PROC(d, w, t, r) proc_ ## d ## _ ## w(t, r)
sys/geom/eli/g_eli.h
128
#define G_ELI_SETWORKER(pflags, w) \
sys/geom/eli/g_eli.h
129
(pflags) = ((pflags) & 0xff00) | ((w) & 0xff)
sys/geom/geom_dev.c
430
int error, r, w, e;
sys/geom/geom_dev.c
437
w = flags & FWRITE ? 1 : 0;
sys/geom/geom_dev.c
447
if (r + w + e == 0)
sys/geom/geom_dev.c
450
if (w) {
sys/geom/geom_dev.c
460
error = g_access(cp, r, w, e);
sys/geom/geom_dev.c
467
sc->sc_open += r + w + e;
sys/geom/geom_dev.c
483
int error, r, w, e;
sys/geom/geom_dev.c
490
w = flags & FWRITE ? -1 : 0;
sys/geom/geom_dev.c
507
if (r + w + e == 0)
sys/geom/geom_dev.c
512
sc->sc_open += r + w + e;
sys/geom/geom_dev.c
519
KNOTE_LOCKED(&sc->sc_selinfo.si_note, NOTE_CLOSE | (w ? NOTE_CLOSE_WRITE : 0));
sys/geom/geom_dev.c
522
error = g_access(cp, r, w, e);
sys/geom/geom_disk.c
100
g_disk_access(struct g_provider *pp, int r, int w, int e)
sys/geom/geom_disk.c
107
pp->name, r, w, e);
sys/geom/geom_disk.c
115
if (r <= 0 && w <= 0 && e <= 0)
sys/geom/geom_disk.c
120
w += pp->acw;
sys/geom/geom_disk.c
123
if ((pp->acr + pp->acw + pp->ace) == 0 && (r + w + e) > 0) {
sys/geom/geom_disk.c
128
if (w > 0 && (dp->d_flags & DISKFLAG_WRITE_PROTECT) != 0)
sys/geom/geom_disk.c
160
} else if ((pp->acr + pp->acw + pp->ace) > 0 && (r + w + e) == 0) {
sys/geom/multipath/g_multipath.c
210
int w;
sys/geom/multipath/g_multipath.c
216
w = cp->acw;
sys/geom/multipath/g_multipath.c
218
if (w > 0 && cp->provider != NULL &&
sys/geom/union/g_union.c
773
g_union_access(struct g_provider *pp, int r, int w, int e)
sys/geom/union/g_union.c
779
if (r <= 0 && w <= 0 && e <= 0)
sys/geom/union/g_union.c
784
w += pp->acw;
sys/geom/union/g_union.c
787
if ((pp->acr + pp->acw + pp->ace) > 0 && (r + w + e) == 0)
sys/i386/i386/elan-mmcr.c
374
u_int u, v, w;
sys/i386/i386/elan-mmcr.c
390
w = elan_mmcr->GPECHO;
sys/i386/i386/elan-mmcr.c
408
elan_mmcr->GPECHO = w;
sys/i386/i386/elan-mmcr.c
411
w = elan_mmcr->GPECHO;
sys/i386/i386/elan-mmcr.c
416
elan_mmcr->WDTMRCTL = w; /* XXX What does this statement do? */
sys/i386/i386/elan-mmcr.c
417
elan_mmcr->GPECHO = w;
sys/i386/i386/in_cksum_machdep.c
101
su.c[1] = *(u_char *)w;
sys/i386/i386/in_cksum_machdep.c
103
w = (u_short *)((char *)w + 1);
sys/i386/i386/in_cksum_machdep.c
116
if (3 & (int) w) {
sys/i386/i386/in_cksum_machdep.c
118
if ((1 & (int) w) && (mlen > 0)) {
sys/i386/i386/in_cksum_machdep.c
120
su.c[0] = *(char *)w;
sys/i386/i386/in_cksum_machdep.c
121
w = (u_short *)((char *)w + 1);
sys/i386/i386/in_cksum_machdep.c
125
if ((2 & (int) w) && (mlen >= 2)) {
sys/i386/i386/in_cksum_machdep.c
126
sum += *w++;
sys/i386/i386/in_cksum_machdep.c
133
if (4 & (int) w && mlen >= 4) {
sys/i386/i386/in_cksum_machdep.c
138
: "g" (((const u_int32_t *)w)[0])
sys/i386/i386/in_cksum_machdep.c
140
w += 2;
sys/i386/i386/in_cksum_machdep.c
143
if (8 & (int) w && mlen >= 8) {
sys/i386/i386/in_cksum_machdep.c
149
: "g" (((const u_int32_t *)w)[0]),
sys/i386/i386/in_cksum_machdep.c
150
"g" (((const u_int32_t *)w)[1])
sys/i386/i386/in_cksum_machdep.c
152
w += 4;
sys/i386/i386/in_cksum_machdep.c
193
: "g" (((const u_int32_t *)w)[4]),
sys/i386/i386/in_cksum_machdep.c
194
"g" (((const u_int32_t *)w)[0]),
sys/i386/i386/in_cksum_machdep.c
195
"g" (((const u_int32_t *)w)[1]),
sys/i386/i386/in_cksum_machdep.c
196
"g" (((const u_int32_t *)w)[2]),
sys/i386/i386/in_cksum_machdep.c
197
"g" (((const u_int32_t *)w)[3]),
sys/i386/i386/in_cksum_machdep.c
198
"g" (((const u_int32_t *)w)[8]),
sys/i386/i386/in_cksum_machdep.c
199
"g" (((const u_int32_t *)w)[5]),
sys/i386/i386/in_cksum_machdep.c
200
"g" (((const u_int32_t *)w)[6]),
sys/i386/i386/in_cksum_machdep.c
201
"g" (((const u_int32_t *)w)[7])
sys/i386/i386/in_cksum_machdep.c
204
w += 16;
sys/i386/i386/in_cksum_machdep.c
219
: "g" (((const u_int32_t *)w)[4]),
sys/i386/i386/in_cksum_machdep.c
220
"g" (((const u_int32_t *)w)[0]),
sys/i386/i386/in_cksum_machdep.c
221
"g" (((const u_int32_t *)w)[1]),
sys/i386/i386/in_cksum_machdep.c
222
"g" (((const u_int32_t *)w)[2]),
sys/i386/i386/in_cksum_machdep.c
223
"g" (((const u_int32_t *)w)[3]),
sys/i386/i386/in_cksum_machdep.c
224
"g" (((const u_int32_t *)w)[5]),
sys/i386/i386/in_cksum_machdep.c
225
"g" (((const u_int32_t *)w)[6]),
sys/i386/i386/in_cksum_machdep.c
226
"g" (((const u_int32_t *)w)[7])
sys/i386/i386/in_cksum_machdep.c
228
w += 16;
sys/i386/i386/in_cksum_machdep.c
239
: "g" (((const u_int32_t *)w)[0]),
sys/i386/i386/in_cksum_machdep.c
240
"g" (((const u_int32_t *)w)[1]),
sys/i386/i386/in_cksum_machdep.c
241
"g" (((const u_int32_t *)w)[2]),
sys/i386/i386/in_cksum_machdep.c
242
"g" (((const u_int32_t *)w)[3])
sys/i386/i386/in_cksum_machdep.c
244
w += 8;
sys/i386/i386/in_cksum_machdep.c
253
: "g" (((const u_int32_t *)w)[0]),
sys/i386/i386/in_cksum_machdep.c
254
"g" (((const u_int32_t *)w)[1])
sys/i386/i386/in_cksum_machdep.c
256
w += 4;
sys/i386/i386/in_cksum_machdep.c
263
sum += *w++;
sys/i386/i386/in_cksum_machdep.c
269
su.c[1] = *(char *)w;
sys/i386/i386/in_cksum_machdep.c
281
su.c[0] = *(char *)w;
sys/i386/i386/in_cksum_machdep.c
70
u_short *w;
sys/i386/i386/in_cksum_machdep.c
80
w = (u_short *)(mtod(m, u_char *) + skip);
sys/i386/i386/in_cksum_machdep.c
90
w = mtod(m, u_short *);
sys/kern/kern_lockf.c
2425
struct owner_vertex *w;
sys/kern/kern_lockf.c
2438
w = g->g_vertices[i];
sys/kern/kern_lockf.c
2439
w->v_order--;
sys/kern/kern_lockf.c
2440
g->g_vertices[i - 1] = w;
sys/kern/kern_procctl.c
261
reap_kill_proc_locked(struct reap_kill_proc_work *w)
sys/kern/kern_procctl.c
265
PROC_LOCK_ASSERT(w->target, MA_OWNED);
sys/kern/kern_procctl.c
266
PROC_ASSERT_HELD(w->target);
sys/kern/kern_procctl.c
268
error = cr_cansignal(w->cr, w->target, w->rk->rk_sig);
sys/kern/kern_procctl.c
274
if (error != ESRCH && *w->error == 0) {
sys/kern/kern_procctl.c
275
w->rk->rk_fpid = w->target->p_pid;
sys/kern/kern_procctl.c
276
*w->error = error;
sys/kern/kern_procctl.c
281
(void)pksignal(w->target, w->rk->rk_sig, w->ksi);
sys/kern/kern_procctl.c
282
w->rk->rk_killed++;
sys/kern/kern_procctl.c
283
*w->error = error;
sys/kern/kern_procctl.c
287
reap_kill_proc(struct reap_kill_proc_work *w, bool *proctree_dropped)
sys/kern/kern_procctl.c
294
PROC_LOCK_ASSERT(w->target, MA_OWNED);
sys/kern/kern_procctl.c
295
PROC_ASSERT_HELD(w->target);
sys/kern/kern_procctl.c
306
if ((w->target->p_flag2 & P2_WEXIT) != 0)
sys/kern/kern_procctl.c
309
pgrp = w->target->p_pgrp;
sys/kern/kern_procctl.c
313
PROC_UNLOCK(w->target);
sys/kern/kern_procctl.c
323
PROC_LOCK(w->target);
sys/kern/kern_procctl.c
326
reap_kill_proc_locked(w);
sys/kern/kern_procctl.c
395
struct unrhdr *pids, struct reap_kill_proc_work *w)
sys/kern/kern_procctl.c
423
(w->rk->rk_flags & REAPER_KILL_SUBTREE) != 0 &&
sys/kern/kern_procctl.c
424
p2->p_reapsubtree != w->rk->rk_subtree)
sys/kern/kern_procctl.c
455
w->target = p2;
sys/kern/kern_procctl.c
456
reap_kill_proc(w, &proctree_dropped);
sys/kern/kern_procctl.c
471
struct reap_kill_proc_work *w)
sys/kern/kern_procctl.c
490
while (reap_kill_subtree_once(td, p, reaper, &pids, w))
sys/kern/kern_procctl.c
520
struct reap_kill_proc_work w;
sys/kern/kern_procctl.c
551
w.cr = crhold(td->td_ucred);
sys/kern/kern_procctl.c
552
w.ksi = &ksi;
sys/kern/kern_procctl.c
553
w.rk = rk;
sys/kern/kern_procctl.c
554
w.error = &error;
sys/kern/kern_procctl.c
555
reap_kill_subtree(td, p, reaper, &w);
sys/kern/kern_procctl.c
556
crfree(w.cr);
sys/kern/kern_switch.c
459
const rqsw_t w, runq_pred_t *const pred, void *const pred_data)
sys/kern/kern_switch.c
462
rqsw_t tw = w;
sys/kern/kern_switch.c
497
rqsw_t w;
sys/kern/kern_switch.c
508
w = (*rqsw)[i] & ~(RQSW_BIT(lvl_min) - 1);
sys/kern/kern_switch.c
511
idx = runq_findq_status_word(rq, i, w, pred, pred_data);
sys/kern/kern_switch.c
516
w = (*rqsw)[i];
sys/kern/kern_switch.c
517
idx = runq_findq_status_word(rq, i, w, pred, pred_data);
sys/kern/kern_switch.c
523
w = (*rqsw)[i];
sys/kern/kern_switch.c
526
w &= (RQSW_BIT(lvl_max) - 1) | RQSW_BIT(lvl_max);
sys/kern/kern_switch.c
527
idx = runq_findq_status_word(rq, i, w, pred, pred_data);
sys/kern/kern_switch.c
534
(*rqsw)[i], w, i, idx);
sys/kern/kern_switch.c
581
const rqsw_t w = (*rqsw)[sw_idx];
sys/kern/kern_switch.c
583
if (w != 0) {
sys/kern/kern_switch.c
586
rq, sw_idx, w);
sys/kern/kern_umtx.c
86
#define UPROF_PERC_BIGGER(w, f, sw, sf) \
sys/kern/kern_umtx.c
87
(((w) > (sw)) || ((w) == (sw) && (f) > (sf)))
sys/kern/subr_unit.c
359
int w;
sys/kern/subr_unit.c
372
w = 0;
sys/kern/subr_unit.c
373
bit_count(ub->map, 0, up->len, &w);
sys/kern/subr_unit.c
374
y += w;
sys/kern/subr_witness.c
1002
w->w_name, w->w_class->lc_name,
sys/kern/subr_witness.c
1003
w->w_ddb_level, w->w_refcount);
sys/kern/subr_witness.c
1004
if (w->w_displayed) {
sys/kern/subr_witness.c
1008
w->w_displayed = 1;
sys/kern/subr_witness.c
1009
if (w->w_file != NULL && w->w_line != 0)
sys/kern/subr_witness.c
1010
prnt(" -- last acquired @ %s:%d\n", fixup_filename(w->w_file),
sys/kern/subr_witness.c
1011
w->w_line);
sys/kern/subr_witness.c
1015
WITNESS_INDEX_ASSERT(w->w_index);
sys/kern/subr_witness.c
1019
if (w_rmatrix[w->w_index][i] & WITNESS_PARENT)
sys/kern/subr_witness.c
1029
struct witness *w;
sys/kern/subr_witness.c
1031
STAILQ_FOREACH(w, list, w_typelist) {
sys/kern/subr_witness.c
1032
if (w->w_file == NULL || w->w_ddb_level > 0)
sys/kern/subr_witness.c
1036
witness_ddb_display_descendants(prnt, w, 0);
sys/kern/subr_witness.c
1045
struct witness *w;
sys/kern/subr_witness.c
1051
STAILQ_FOREACH(w, &w_all, w_list)
sys/kern/subr_witness.c
1052
w->w_displayed = 0;
sys/kern/subr_witness.c
1075
STAILQ_FOREACH(w, &w_all, w_list) {
sys/kern/subr_witness.c
1076
if (w->w_file != NULL || w->w_refcount == 0)
sys/kern/subr_witness.c
1078
prnt("%s (type: %s, depth: %d)\n", w->w_name,
sys/kern/subr_witness.c
1079
w->w_class->lc_name, w->w_ddb_level);
sys/kern/subr_witness.c
1359
struct witness *w, *w1;
sys/kern/subr_witness.c
1368
w = lock->lo_witness;
sys/kern/subr_witness.c
1478
if (witness_lock_order_check(w1, w))
sys/kern/subr_witness.c
1482
if (witness_lock_order_check(w1, w)) {
sys/kern/subr_witness.c
1486
witness_lock_order_add(w1, w);
sys/kern/subr_witness.c
1493
if (w1 == w) {
sys/kern/subr_witness.c
1494
i = w->w_index;
sys/kern/subr_witness.c
1498
w->w_reversed = 1;
sys/kern/subr_witness.c
1502
w->w_name);
sys/kern/subr_witness.c
1519
if (isitmychild(w1, w))
sys/kern/subr_witness.c
1587
if (!isitmydescendant(w, w1))
sys/kern/subr_witness.c
1597
if (w_rmatrix[w1->w_index][w->w_index] & WITNESS_REVERSAL)
sys/kern/subr_witness.c
1601
w_rmatrix[w1->w_index][w->w_index] |= WITNESS_REVERSAL;
sys/kern/subr_witness.c
1602
w_rmatrix[w->w_index][w1->w_index] |= WITNESS_REVERSAL;
sys/kern/subr_witness.c
1603
w->w_reversed = w1->w_reversed = 1;
sys/kern/subr_witness.c
1611
if (blessed(w, w1))
sys/kern/subr_witness.c
1619
data = witness_lock_order_get(w, w1);
sys/kern/subr_witness.c
1665
if (lock2->li_lock->lo_witness == w)
sys/kern/subr_witness.c
1681
lock, lock->lo_name, w->w_name,
sys/kern/subr_witness.c
1682
w->w_class->lc_name, fixup_filename(file),
sys/kern/subr_witness.c
1698
lock->lo_name, w->w_name,
sys/kern/subr_witness.c
1699
w->w_class->lc_name, fixup_filename(file),
sys/kern/subr_witness.c
1714
w->w_name, w1->w_name);
sys/kern/subr_witness.c
1742
w->w_name, w1->w_name);
sys/kern/subr_witness.c
1744
w->w_index, w1->w_index);
sys/kern/subr_witness.c
1752
w1->w_name, w->w_name);
sys/kern/subr_witness.c
1776
w->w_name, plock->li_lock->lo_witness->w_name);
sys/kern/subr_witness.c
1777
itismychild(plock->li_lock->lo_witness, w);
sys/kern/subr_witness.c
1788
struct witness *w;
sys/kern/subr_witness.c
1794
w = lock->lo_witness;
sys/kern/subr_witness.c
1804
w->w_file = file;
sys/kern/subr_witness.c
1805
w->w_line = line;
sys/kern/subr_witness.c
2158
struct witness *w;
sys/kern/subr_witness.c
2162
w = lock->lo_witness;
sys/kern/subr_witness.c
2163
return (w->w_file);
sys/kern/subr_witness.c
2169
struct witness *w;
sys/kern/subr_witness.c
2173
w = lock->lo_witness;
sys/kern/subr_witness.c
2174
return (w->w_line);
sys/kern/subr_witness.c
2180
struct witness *w;
sys/kern/subr_witness.c
2196
w = witness_hash_get(description);
sys/kern/subr_witness.c
2197
if (w)
sys/kern/subr_witness.c
2199
if ((w = witness_get()) == NULL)
sys/kern/subr_witness.c
2202
strcpy(w->w_name, description);
sys/kern/subr_witness.c
2203
w->w_class = lock_class;
sys/kern/subr_witness.c
2204
w->w_refcount = 1;
sys/kern/subr_witness.c
2205
STAILQ_INSERT_HEAD(&w_all, w, w_list);
sys/kern/subr_witness.c
2207
STAILQ_INSERT_HEAD(&w_spin, w, w_typelist);
sys/kern/subr_witness.c
2210
STAILQ_INSERT_HEAD(&w_sleep, w, w_typelist);
sys/kern/subr_witness.c
2215
witness_hash_put(w);
sys/kern/subr_witness.c
2218
return (w);
sys/kern/subr_witness.c
2220
w->w_refcount++;
sys/kern/subr_witness.c
2221
if (w->w_refcount == 1)
sys/kern/subr_witness.c
2222
w->w_class = lock_class;
sys/kern/subr_witness.c
2224
if (lock_class != w->w_class)
sys/kern/subr_witness.c
2228
w->w_class->lc_name);
sys/kern/subr_witness.c
2229
return (w);
sys/kern/subr_witness.c
2233
depart(struct witness *w)
sys/kern/subr_witness.c
2235
MPASS(w->w_refcount == 0);
sys/kern/subr_witness.c
2236
if (w->w_class->lc_flags & LC_SLEEPLOCK) {
sys/kern/subr_witness.c
2244
w->w_file = NULL;
sys/kern/subr_witness.c
2245
w->w_line = 0;
sys/kern/subr_witness.c
2446
struct witness *w;
sys/kern/subr_witness.c
2462
w = STAILQ_FIRST(&w_free);
sys/kern/subr_witness.c
2465
index = w->w_index;
sys/kern/subr_witness.c
2468
bzero(w, sizeof(*w));
sys/kern/subr_witness.c
2469
w->w_index = index;
sys/kern/subr_witness.c
2472
return (w);
sys/kern/subr_witness.c
2476
witness_free(struct witness *w)
sys/kern/subr_witness.c
2478
STAILQ_INSERT_HEAD(&w_free, w, w_list);
sys/kern/subr_witness.c
309
static void depart(struct witness *w);
sys/kern/subr_witness.c
3182
struct witness *w;
sys/kern/subr_witness.c
3210
STAILQ_FOREACH(w, &w_all, w_list)
sys/kern/subr_witness.c
3211
w->w_displayed = 0;
sys/kern/subr_witness.c
3212
STAILQ_FOREACH(w, &w_all, w_list)
sys/kern/subr_witness.c
3213
witness_add_fullgraph(sb, w);
sys/kern/subr_witness.c
3242
witness_add_fullgraph(struct sbuf *sb, struct witness *w)
sys/kern/subr_witness.c
3246
if (w->w_displayed != 0 || (w->w_file == NULL && w->w_line == 0))
sys/kern/subr_witness.c
3248
w->w_displayed = 1;
sys/kern/subr_witness.c
3250
WITNESS_INDEX_ASSERT(w->w_index);
sys/kern/subr_witness.c
3252
if (w_rmatrix[w->w_index][i] & WITNESS_PARENT) {
sys/kern/subr_witness.c
3253
sbuf_printf(sb, "\"%s\",\"%s\"\n", w->w_name,
sys/kern/subr_witness.c
3317
struct witness *w;
sys/kern/subr_witness.c
3324
w = w_hash.wh_array[hash];
sys/kern/subr_witness.c
3325
while (w != NULL) {
sys/kern/subr_witness.c
3326
if (strcmp(w->w_name, key) == 0)
sys/kern/subr_witness.c
3328
w = w->w_hash_next;
sys/kern/subr_witness.c
3332
return (w);
sys/kern/subr_witness.c
3336
witness_hash_put(struct witness *w)
sys/kern/subr_witness.c
3340
MPASS(w != NULL);
sys/kern/subr_witness.c
3341
MPASS(w->w_name != NULL);
sys/kern/subr_witness.c
3344
KASSERT(witness_hash_get(w->w_name) == NULL,
sys/kern/subr_witness.c
3346
KASSERT(w->w_hash_next == NULL,
sys/kern/subr_witness.c
3349
hash = witness_hash_djb2(w->w_name, 0) % w_hash.wh_size;
sys/kern/subr_witness.c
3350
w->w_hash_next = w_hash.wh_array[hash];
sys/kern/subr_witness.c
3351
w_hash.wh_array[hash] = w;
sys/kern/subr_witness.c
338
static void witness_hash_put(struct witness *w);
sys/kern/subr_witness.c
800
struct witness *w, *w1;
sys/kern/subr_witness.c
828
w = &w_data[i];
sys/kern/subr_witness.c
829
memset(w, 0, sizeof(*w));
sys/kern/subr_witness.c
831
witness_free(w);
sys/kern/subr_witness.c
851
w = enroll(order->w_name, order->w_class);
sys/kern/subr_witness.c
852
if (w == NULL)
sys/kern/subr_witness.c
854
w->w_file = "order list";
sys/kern/subr_witness.c
860
itismychild(w, w1);
sys/kern/subr_witness.c
861
w_rmatrix[w->w_index][w1->w_index] |=
sys/kern/subr_witness.c
863
w_rmatrix[w1->w_index][w->w_index] |=
sys/kern/subr_witness.c
865
w = w1;
sys/kern/subr_witness.c
931
struct witness *w;
sys/kern/subr_witness.c
942
w = lock->lo_witness;
sys/kern/subr_witness.c
945
MPASS(w->w_refcount > 0);
sys/kern/subr_witness.c
946
w->w_refcount--;
sys/kern/subr_witness.c
948
if (w->w_refcount == 0)
sys/kern/subr_witness.c
949
depart(w);
sys/kern/subr_witness.c
957
struct witness *w;
sys/kern/subr_witness.c
962
STAILQ_FOREACH(w, &w_all, w_list)
sys/kern/subr_witness.c
963
w->w_ddb_level = -1;
sys/kern/subr_witness.c
968
STAILQ_FOREACH(w, &w_all, w_list) {
sys/kern/subr_witness.c
970
if (w->w_num_ancestors > 0)
sys/kern/subr_witness.c
972
witness_ddb_level_descendants(w, 0);
sys/kern/subr_witness.c
977
witness_ddb_level_descendants(struct witness *w, int l)
sys/kern/subr_witness.c
981
if (w->w_ddb_level >= l)
sys/kern/subr_witness.c
984
w->w_ddb_level = l;
sys/kern/subr_witness.c
988
if (w_rmatrix[w->w_index][i] & WITNESS_PARENT)
sys/kern/subr_witness.c
995
struct witness *w, int indent)
sys/kern/sys_process.c
763
#define PROC_READ(w, t, a) wrap32 ? \
sys/kern/sys_process.c
764
proc_read_ ## w ## 32(t, a) : \
sys/kern/sys_process.c
765
proc_read_ ## w (t, a)
sys/kern/sys_process.c
766
#define PROC_WRITE(w, t, a) wrap32 ? \
sys/kern/sys_process.c
767
(safe ? proc_write_ ## w ## 32(t, a) : EINVAL ) : \
sys/kern/sys_process.c
768
proc_write_ ## w (t, a)
sys/kern/sys_process.c
770
#define PROC_READ(w, t, a) proc_read_ ## w (t, a)
sys/kern/sys_process.c
771
#define PROC_WRITE(w, t, a) proc_write_ ## w (t, a)
sys/kern/vfs_export.c
232
vfs_free_netcred(struct radix_node *rn, void *w)
sys/kern/vfs_export.c
234
struct radix_node_head *rnh = (struct radix_node_head *) w;
sys/kern/vfs_export.c
71
static int vfs_free_netcred(struct radix_node *rn, void *w);
sys/kern/vfs_mount.c
2635
vfs_flagopt(struct vfsoptlist *opts, const char *name, uint64_t *w,
sys/kern/vfs_mount.c
2643
if (w != NULL)
sys/kern/vfs_mount.c
2644
*w |= val;
sys/kern/vfs_mount.c
2648
if (w != NULL)
sys/kern/vfs_mount.c
2649
*w &= ~val;
sys/libkern/iconv_ucs.c
412
size_t i, w = 0;
sys/libkern/iconv_ucs.c
424
w = 1;
sys/libkern/iconv_ucs.c
433
w = 2;
sys/libkern/iconv_ucs.c
442
w = 3;
sys/libkern/iconv_ucs.c
451
w = 4;
sys/libkern/iconv_ucs.c
459
if (srclen < w)
sys/libkern/iconv_ucs.c
465
for (i = 1 ; i < w ; i++) {
sys/libkern/iconv_ucs.c
475
*utf8width = w;
sys/libkern/iconv_ucs.c
483
size_t i, w;
sys/libkern/iconv_ucs.c
489
w = 1;
sys/libkern/iconv_ucs.c
492
w = 2;
sys/libkern/iconv_ucs.c
495
w = 3;
sys/libkern/iconv_ucs.c
498
w = 4;
sys/libkern/iconv_ucs.c
504
if (dstlen < w)
sys/libkern/iconv_ucs.c
511
for (i = w - 1 ; i >= 1 ; i--) {
sys/libkern/iconv_ucs.c
518
*utf8width = w;
sys/net/altq/altq_red.c
177
int w, i;
sys/net/altq/altq_red.c
233
w = rp->red_weight;
sys/net/altq/altq_red.c
234
for (i = 0; w > 1; i++)
sys/net/altq/altq_red.c
235
w = w >> 1;
sys/net/altq/altq_red.c
237
w = 1 << rp->red_wshift;
sys/net/altq/altq_red.c
238
if (w != rp->red_weight) {
sys/net/altq/altq_red.c
240
rp->red_weight, w);
sys/net/altq/altq_red.c
241
rp->red_weight = w;
sys/net/altq/altq_red.c
553
struct wtab *w;
sys/net/altq/altq_red.c
556
for (w = wtab_list; w != NULL; w = w->w_next)
sys/net/altq/altq_red.c
557
if (w->w_weight == weight) {
sys/net/altq/altq_red.c
558
w->w_refcount++;
sys/net/altq/altq_red.c
559
return (w);
sys/net/altq/altq_red.c
562
w = malloc(sizeof(struct wtab), M_DEVBUF, M_NOWAIT | M_ZERO);
sys/net/altq/altq_red.c
563
if (w == NULL)
sys/net/altq/altq_red.c
565
w->w_weight = weight;
sys/net/altq/altq_red.c
566
w->w_refcount = 1;
sys/net/altq/altq_red.c
567
w->w_next = wtab_list;
sys/net/altq/altq_red.c
568
wtab_list = w;
sys/net/altq/altq_red.c
571
w->w_tab[0] = ((weight - 1) << FP_SHIFT) / weight;
sys/net/altq/altq_red.c
573
w->w_tab[i] = (w->w_tab[i-1] * w->w_tab[i-1]) >> FP_SHIFT;
sys/net/altq/altq_red.c
574
if (w->w_tab[i] == 0 && w->w_param_max == 0)
sys/net/altq/altq_red.c
575
w->w_param_max = 1 << i;
sys/net/altq/altq_red.c
578
return (w);
sys/net/altq/altq_red.c
582
wtab_destroy(struct wtab *w)
sys/net/altq/altq_red.c
586
if (--w->w_refcount > 0)
sys/net/altq/altq_red.c
589
if (wtab_list == w)
sys/net/altq/altq_red.c
590
wtab_list = w->w_next;
sys/net/altq/altq_red.c
592
if (prev->w_next == w) {
sys/net/altq/altq_red.c
593
prev->w_next = w->w_next;
sys/net/altq/altq_red.c
597
free(w, M_DEVBUF);
sys/net/altq/altq_red.c
602
pow_w(struct wtab *w, int n)
sys/net/altq/altq_red.c
607
if (n >= w->w_param_max)
sys/net/altq/altq_red.c
618
val = (val * w->w_tab[i]) >> FP_SHIFT;
sys/net/altq/altq_rio.c
182
int w, i;
sys/net/altq/altq_rio.c
214
w = rp->rio_weight;
sys/net/altq/altq_rio.c
215
for (i = 0; w > 1; i++)
sys/net/altq/altq_rio.c
216
w = w >> 1;
sys/net/altq/altq_rio.c
218
w = 1 << rp->rio_wshift;
sys/net/altq/altq_rio.c
219
if (w != rp->rio_weight) {
sys/net/altq/altq_rio.c
221
rp->rio_weight, w);
sys/net/altq/altq_rio.c
222
rp->rio_weight = w;
sys/net/radix.c
1044
&& (error = (*f)(rn, w)))
sys/net/radix.c
1058
rn_walktree(struct radix_head *h, walktree_f_t *f, void *w)
sys/net/radix.c
1086
&& (error = (*f)(rn, w)))
sys/net/radix.c
954
walktree_f_t *f, void *w)
sys/net/radix.h
115
void *w);
sys/net/radix.h
117
void *a, void *m, walktree_f_t *f, void *w);
sys/net/radix.h
184
walktree_f_t *f, void *w);
sys/net/route/fib_algo.c
917
struct walk_cbdata *w = (struct walk_cbdata *)_data;
sys/net/route/fib_algo.c
918
struct fib_data *fd = w->fd;
sys/net/route/fib_algo.c
920
RIB_WLOCK_ASSERT(w->fd->fd_rh);
sys/net/route/fib_algo.c
923
w->result = FLM_ERROR;
sys/net/route/fib_algo.c
930
if (w->result == FLM_SUCCESS)
sys/net/route/fib_algo.c
931
w->result = FLM_REBUILD;
sys/net/route/fib_algo.c
935
if (stage != RIB_WALK_HOOK_POST || w->result != FLM_SUCCESS)
sys/net/route/fib_algo.c
939
w->result = fd->fd_flm->flm_dump_end_cb(fd->fd_algo_data, &fd->fd_dp);
sys/net/route/fib_algo.c
941
if (w->result == FLM_SUCCESS) {
sys/net/route/fib_algo.c
955
struct walk_cbdata *w = (struct walk_cbdata *)_data;
sys/net/route/fib_algo.c
957
RIB_WLOCK_ASSERT(w->fd->fd_rh);
sys/net/route/fib_algo.c
959
if (w->result == FLM_SUCCESS && w->func) {
sys/net/route/fib_algo.c
967
if (fib_ref_nhop(w->fd, nh) != 0)
sys/net/route/fib_algo.c
968
w->result = w->func(rt, w->fd->fd_algo_data);
sys/net/route/fib_algo.c
970
w->result = FLM_REBUILD;
sys/net/route/fib_algo.c
982
struct walk_cbdata w = {
sys/net/route/fib_algo.c
988
rib_walk_ext_locked(fd->fd_rh, sync_algo_cb, sync_algo_end_cb, &w);
sys/net/route/fib_algo.c
992
fd->fd_rh->rnh_gen, print_op_result(w.result));
sys/net/route/fib_algo.c
994
return (w.result);
sys/net/route/nhgrp_ctl.c
834
char *buffer, size_t buffer_size, struct sysctl_req *w)
sys/net/route/nhgrp_ctl.c
896
error = SYSCTL_OUT(w, buffer, sz);
sys/net/route/nhgrp_ctl.c
938
nhgrp_dump_sysctl(struct rib_head *rh, struct sysctl_req *w)
sys/net/route/nhgrp_ctl.c
961
error = dump_nhgrp_entry(rh, nhg_priv, buffer, sz, w);
sys/net/route/nhop_ctl.c
1180
dump_nhop_entry(struct rib_head *rh, struct nhop_object *nh, struct sysctl_req *w)
sys/net/route/nhop_ctl.c
1240
error = SYSCTL_OUT(w, &arpc, sizeof(arpc));
sys/net/route/nhop_ctl.c
1242
error = SYSCTL_OUT(w, gw_sa, gw_sa->sa_len);
sys/net/route/nhop_ctl.c
1244
error = SYSCTL_OUT(w, src_sa, src_sa->sa_len);
sys/net/route/nhop_ctl.c
1265
nhops_dump_sysctl(struct rib_head *rh, struct sysctl_req *w)
sys/net/route/nhop_ctl.c
1276
error = dump_nhop_entry(rh, nh_priv->nh, w);
sys/net/route/nhop_ctl.c
85
static int dump_nhop_entry(struct rib_head *rh, struct nhop_object *nh, struct sysctl_req *w);
sys/net/route/route_var.h
265
int nhops_dump_sysctl(struct rib_head *rh, struct sysctl_req *w);
sys/net/route/route_var.h
304
int nhgrp_dump_sysctl(struct rib_head *rh, struct sysctl_req *w);
sys/net/rtsock.c
1796
rtsock_msg_buffer(int type, struct rt_addrinfo *rtinfo, struct walkarg *w, int *plen)
sys/net/rtsock.c
1808
compat32 = w != NULL && w->w_req != NULL &&
sys/net/rtsock.c
1809
(w->w_req->flags & SCTL_MASK32);
sys/net/rtsock.c
1815
if (w != NULL && w->w_op == NET_RT_IFLISTL) {
sys/net/rtsock.c
1827
if (w != NULL && w->w_op == NET_RT_IFLISTL) {
sys/net/rtsock.c
1852
if (w != NULL) {
sys/net/rtsock.c
1853
rtm = (struct rt_msghdr *)w->w_tmem;
sys/net/rtsock.c
1854
buflen = w->w_tmemsize - len;
sys/net/rtsock.c
1855
cp = (caddr_t)w->w_tmem + len;
sys/net/rtsock.c
1918
if (w != NULL && cp == NULL)
sys/net/rtsock.c
198
struct walkarg *w, int *plen);
sys/net/rtsock.c
204
uint32_t weight, struct walkarg *w);
sys/net/rtsock.c
205
static int sysctl_iflist(int af, struct walkarg *w);
sys/net/rtsock.c
206
static int sysctl_ifmalist(int af, struct walkarg *w);
sys/net/rtsock.c
2247
struct walkarg *w = vw;
sys/net/rtsock.c
2254
if (!rt_is_exportable(rt, w->w_req->td->td_ucred))
sys/net/rtsock.c
2257
export_rtaddrs(rt, w->dst, w->mask);
sys/net/rtsock.c
2262
error = sysctl_dumpnhop(rt, wn[i].nh, wn[i].weight, w);
sys/net/rtsock.c
2267
sysctl_dumpnhop(rt, nh, rt->rt_weight, w);
sys/net/rtsock.c
2275
struct walkarg *w)
sys/net/rtsock.c
2283
if (w->w_op == NET_RT_FLAGS && !(rtflags & w->w_arg))
sys/net/rtsock.c
2287
info.rti_info[RTAX_DST] = w->dst;
sys/net/rtsock.c
2289
info.rti_info[RTAX_NETMASK] = (rtflags & RTF_HOST) ? NULL : w->mask;
sys/net/rtsock.c
2297
if ((error = rtsock_msg_buffer(RTM_GET, &info, w, &size)) != 0)
sys/net/rtsock.c
2299
if (w->w_req && w->w_tmem) {
sys/net/rtsock.c
2300
struct rt_msghdr *rtm = (struct rt_msghdr *)w->w_tmem;
sys/net/rtsock.c
2318
error = SYSCTL_OUT(w->w_req, (caddr_t)rtm, size);
sys/net/rtsock.c
2326
struct rt_addrinfo *info, struct walkarg *w, int len)
sys/net/rtsock.c
2331
ifm = (struct if_msghdrl *)w->w_tmem;
sys/net/rtsock.c
2334
if (w->w_req->flags & SCTL_MASK32) {
sys/net/rtsock.c
2361
return (SYSCTL_OUT(w->w_req, (caddr_t)ifm, len));
sys/net/rtsock.c
2366
struct rt_addrinfo *info, struct walkarg *w, int len)
sys/net/rtsock.c
2371
ifm = (struct if_msghdr *)w->w_tmem;
sys/net/rtsock.c
2374
if (w->w_req->flags & SCTL_MASK32) {
sys/net/rtsock.c
2395
return (SYSCTL_OUT(w->w_req, (caddr_t)ifm, len));
sys/net/rtsock.c
2400
struct walkarg *w, int len)
sys/net/rtsock.c
2405
ifam = (struct ifa_msghdrl *)w->w_tmem;
sys/net/rtsock.c
2408
if (w->w_req->flags & SCTL_MASK32) {
sys/net/rtsock.c
2445
return (SYSCTL_OUT(w->w_req, w->w_tmem, len));
sys/net/rtsock.c
2450
struct walkarg *w, int len)
sys/net/rtsock.c
2454
ifam = (struct ifa_msghdr *)w->w_tmem;
sys/net/rtsock.c
2461
return (SYSCTL_OUT(w->w_req, w->w_tmem, len));
sys/net/rtsock.c
2465
sysctl_iflist(int af, struct walkarg *w)
sys/net/rtsock.c
2477
if (w->w_arg && w->w_arg != ifp->if_index)
sys/net/rtsock.c
2482
error = rtsock_msg_buffer(RTM_IFINFO, &info, w, &len);
sys/net/rtsock.c
2486
if (w->w_req && w->w_tmem) {
sys/net/rtsock.c
2487
if (w->w_op == NET_RT_IFLISTL)
sys/net/rtsock.c
2488
error = sysctl_iflist_ifml(ifp, &ifd, &info, w,
sys/net/rtsock.c
2491
error = sysctl_iflist_ifm(ifp, &ifd, &info, w,
sys/net/rtsock.c
2499
if (prison_if(w->w_req->td->td_ucred,
sys/net/rtsock.c
2506
error = rtsock_msg_buffer(RTM_NEWADDR, &info, w, &len);
sys/net/rtsock.c
2509
if (w->w_req && w->w_tmem) {
sys/net/rtsock.c
2510
if (w->w_op == NET_RT_IFLISTL)
sys/net/rtsock.c
2512
w, len);
sys/net/rtsock.c
2515
w, len);
sys/net/rtsock.c
2529
sysctl_ifmalist(int af, struct walkarg *w)
sys/net/rtsock.c
2543
if (w->w_arg && w->w_arg != ifp->if_index)
sys/net/rtsock.c
2550
if (prison_if(w->w_req->td->td_ucred,
sys/net/rtsock.c
2557
error = rtsock_msg_buffer(RTM_NEWMADDR, &info, w, &len);
sys/net/rtsock.c
2560
if (w->w_req && w->w_tmem) {
sys/net/rtsock.c
2563
ifmam = (struct ifma_msghdr *)w->w_tmem;
sys/net/rtsock.c
2568
error = SYSCTL_OUT(w->w_req, w->w_tmem, len);
sys/net/rtsock.c
2580
rtable_sysctl_dump(uint32_t fibnum, int family, struct walkarg *w)
sys/net/rtsock.c
2584
w->family = family;
sys/net/rtsock.c
2585
w->dst = (struct sockaddr *)&sa_dst;
sys/net/rtsock.c
2586
w->mask = (struct sockaddr *)&sa_mask;
sys/net/rtsock.c
2588
init_sockaddrs_family(family, w->dst, w->mask);
sys/net/rtsock.c
2590
rib_walk(fibnum, family, false, sysctl_dumpentry, w);
sys/net/rtsock.c
2603
struct walkarg w;
sys/net/rtsock.c
2627
bzero(&w, sizeof(w));
sys/net/rtsock.c
2628
w.w_op = name[1];
sys/net/rtsock.c
2629
w.w_arg = name[2];
sys/net/rtsock.c
2630
w.w_req = req;
sys/net/rtsock.c
2640
w.w_tmemsize = 65536;
sys/net/rtsock.c
2641
w.w_tmem = malloc(w.w_tmemsize, M_TEMP, M_WAITOK);
sys/net/rtsock.c
2644
switch (w.w_op) {
sys/net/rtsock.c
2657
if (w.w_op == NET_RT_FLAGS &&
sys/net/rtsock.c
2658
(w.w_arg == 0 || w.w_arg & RTF_LLINFO)) {
sys/net/rtsock.c
2660
error = lltable_sysctl_dumparp(af, w.w_req);
sys/net/rtsock.c
2671
rtable_sysctl_dump(fib, i, &w);
sys/net/rtsock.c
2693
if (w.w_op == NET_RT_NHOP)
sys/net/rtsock.c
2694
error = nhops_dump_sysctl(rnh, w.w_req);
sys/net/rtsock.c
2696
error = nhgrp_dump_sysctl(rnh, w.w_req);
sys/net/rtsock.c
2700
error = sysctl_iflist(af, &w);
sys/net/rtsock.c
2704
error = sysctl_ifmalist(af, &w);
sys/net/rtsock.c
2709
free(w.w_tmem, M_TEMP);
sys/net/rtsock.c
933
struct walkarg w;
sys/net/rtsock.c
956
w = (struct walkarg ){
sys/net/rtsock.c
960
rtsock_msg_buffer(rtm->rtm_type, info, &w, &len);
sys/net80211/ieee80211_hostap.c
1186
uint32_t w = le32dec(sel);
sys/net80211/ieee80211_hostap.c
1188
switch (w) {
sys/net80211/ieee80211_hostap.c
1225
uint32_t w = le32dec(sel);
sys/net80211/ieee80211_hostap.c
1227
switch (w) {
sys/net80211/ieee80211_hostap.c
1250
uint32_t w;
sys/net80211/ieee80211_hostap.c
1272
w = le16dec(frm);
sys/net80211/ieee80211_hostap.c
1273
if (w != WPA_VERSION) {
sys/net80211/ieee80211_hostap.c
1276
wh, "WPA", "bad version %u", w);
sys/net80211/ieee80211_hostap.c
1304
w = 0;
sys/net80211/ieee80211_hostap.c
1310
w |= 1 << cipher;
sys/net80211/ieee80211_hostap.c
1314
if (w == 0) {
sys/net80211/ieee80211_hostap.c
1318
w);
sys/net80211/ieee80211_hostap.c
1322
if (w & (1 << IEEE80211_CIPHER_AES_CCM))
sys/net80211/ieee80211_hostap.c
1337
w = 0;
sys/net80211/ieee80211_hostap.c
1339
w |= wpa_keymgmt(frm);
sys/net80211/ieee80211_hostap.c
1342
if (w & WPA_ASE_8021X_UNSPEC)
sys/net80211/ieee80211_hostap.c
1362
uint32_t w = le32dec(sel);
sys/net80211/ieee80211_hostap.c
1364
switch (w) {
sys/net80211/ieee80211_hostap.c
1406
uint32_t w = le32dec(sel);
sys/net80211/ieee80211_hostap.c
1408
switch (w) {
sys/net80211/ieee80211_hostap.c
1430
uint32_t w;
sys/net80211/ieee80211_hostap.c
1452
w = le16dec(frm);
sys/net80211/ieee80211_hostap.c
1453
if (w != RSN_VERSION) {
sys/net80211/ieee80211_hostap.c
1456
wh, "RSN", "bad version %u", w);
sys/net80211/ieee80211_hostap.c
1491
w = 0;
sys/net80211/ieee80211_hostap.c
1498
w |= 1 << cipher;
sys/net80211/ieee80211_hostap.c
1502
if (w & (1 << IEEE80211_CIPHER_AES_GCM_128))
sys/net80211/ieee80211_hostap.c
1504
else if (w & (1 << IEEE80211_CIPHER_AES_CCM))
sys/net80211/ieee80211_hostap.c
1506
else if (w & (1 << IEEE80211_CIPHER_AES_OCB))
sys/net80211/ieee80211_hostap.c
1508
else if (w & (1 << IEEE80211_CIPHER_TKIP))
sys/net80211/ieee80211_hostap.c
1510
else if ((w & (1 << IEEE80211_CIPHER_NONE)) &&
sys/net80211/ieee80211_hostap.c
1518
w);
sys/net80211/ieee80211_hostap.c
1532
w = 0;
sys/net80211/ieee80211_hostap.c
1534
w |= rsn_keymgmt(frm);
sys/net80211/ieee80211_hostap.c
1537
if (w & RSN_ASE_8021X_UNSPEC)
sys/net80211/ieee80211_ht.c
1696
uint16_t w;
sys/net80211/ieee80211_ht.c
1701
w = le16dec(&htinfo->hi_byte2);
sys/net80211/ieee80211_ht.c
1702
ni->ni_htopmode = _IEEE80211_SHIFTMASK(w, IEEE80211_HTINFO_OPMODE);
sys/net80211/ieee80211_ht.c
1703
w = le16dec(&htinfo->hi_byte45);
sys/net80211/ieee80211_ht.c
1704
ni->ni_htstbc = _IEEE80211_SHIFTMASK(w, IEEE80211_HTINFO_BASIC_STBCMCS);
sys/netinet6/in6_cksum.c
119
w = (u_int16_t *)&ip6->ip6_src;
sys/netinet6/in6_cksum.c
120
sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3];
sys/netinet6/in6_cksum.c
121
sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7];
sys/netinet6/in6_cksum.c
127
w = (u_int16_t *)&ip6->ip6_dst;
sys/netinet6/in6_cksum.c
128
sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3];
sys/netinet6/in6_cksum.c
129
sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7];
sys/netinet6/in6_cksum.c
152
uint16_t *w;
sys/netinet6/in6_cksum.c
168
w = data;
sys/netinet6/in6_cksum.c
175
s_util.c[1] = *(uint8_t *)w;
sys/netinet6/in6_cksum.c
177
w = (uint16_t *)((uint8_t *)w + 1);
sys/netinet6/in6_cksum.c
185
if ((1 & (uintptr_t)w) && len > 0) {
sys/netinet6/in6_cksum.c
188
s_util.c[0] = *(uint8_t *)w;
sys/netinet6/in6_cksum.c
189
w = (uint16_t *)((uint8_t *)w + 1);
sys/netinet6/in6_cksum.c
198
sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3];
sys/netinet6/in6_cksum.c
199
sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7];
sys/netinet6/in6_cksum.c
200
sum += w[8]; sum += w[9]; sum += w[10]; sum += w[11];
sys/netinet6/in6_cksum.c
201
sum += w[12]; sum += w[13]; sum += w[14]; sum += w[15];
sys/netinet6/in6_cksum.c
202
w += 16;
sys/netinet6/in6_cksum.c
206
sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3];
sys/netinet6/in6_cksum.c
207
w += 4;
sys/netinet6/in6_cksum.c
214
sum += *w++;
sys/netinet6/in6_cksum.c
220
s_util.c[1] = *(uint8_t *)w;
sys/netinet6/in6_cksum.c
226
*residp = *(uint8_t *)w;
sys/netinet6/in6_cksum.c
264
uint16_t *w, scope;
sys/netinet6/in6_cksum.c
297
w = (uint16_t *)&ip6->ip6_src;
sys/netinet6/in6_cksum.c
298
sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3];
sys/netinet6/in6_cksum.c
299
sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7];
sys/netinet6/in6_cksum.c
305
w = (uint16_t *)&ip6->ip6_dst;
sys/netinet6/in6_cksum.c
306
sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3];
sys/netinet6/in6_cksum.c
307
sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7];
sys/netinet6/in6_cksum.c
94
uint16_t scope, *w;
sys/netinet6/in6_src.c
1069
walk_addrsel_policy(int (*callback)(struct in6_addrpolicy *, void *), void *w)
sys/netinet6/in6_src.c
1076
if ((error = (*callback)(&pol->ape_policy, w)) != 0) {
sys/netinet6/in6_src.c
1089
struct walkarg *w = arg;
sys/netinet6/in6_src.c
1091
error = SYSCTL_OUT(w->w_req, pol, sizeof(*pol));
sys/netinet6/in6_src.c
939
struct walkarg w;
sys/netinet6/in6_src.c
944
bzero(&w, sizeof(w));
sys/netinet6/in6_src.c
945
w.w_req = req;
sys/netinet6/in6_src.c
947
return (walk_addrsel_policy(dump_addrsel_policyent, &w));
sys/netipsec/ipsec.c
1197
#define IPSEC_BITMAP_INDEX_MASK(w) (w - 1)
sys/netpfil/ipfw/dn_aqm_pie.c
415
int32_t w;
sys/netpfil/ipfw/dn_aqm_pie.c
447
w = PIE_DQ_THRESHOLD >> 8;
sys/netpfil/ipfw/dn_aqm_pie.c
448
pst->avg_dq_time = (dq_time* w
sys/netpfil/ipfw/dn_aqm_pie.c
449
+ (pst->avg_dq_time * ((1L << 8) - w))) >> 8;
sys/netpfil/ipfw/dn_heap.c
56
#define malloc(s, t, w) my_malloc(s)
sys/netpfil/ipfw/dn_sched_fq_pie.c
622
int32_t w;
sys/netpfil/ipfw/dn_sched_fq_pie.c
655
w = PIE_DQ_THRESHOLD >> 8;
sys/netpfil/ipfw/dn_sched_fq_pie.c
656
pst->avg_dq_time = (dq_time* w
sys/netpfil/ipfw/dn_sched_fq_pie.c
657
+ (pst->avg_dq_time * ((1L << 8) - w))) >> 8;
sys/netpfil/ipfw/dn_sched_qfq.c
307
uint32_t w; /* approximated weight */
sys/netpfil/ipfw/dn_sched_qfq.c
312
w = _q->fs->fs.par[0];
sys/netpfil/ipfw/dn_sched_qfq.c
314
if (!w || w > QFQ_MAX_WEIGHT) {
sys/netpfil/ipfw/dn_sched_qfq.c
315
w = 1;
sys/netpfil/ipfw/dn_sched_qfq.c
318
cl->inv_w = ONE_FP/w;
sys/netpfil/ipfw/dn_sched_qfq.c
319
w = ONE_FP/cl->inv_w;
sys/netpfil/ipfw/dn_sched_qfq.c
320
if (q->wsum + w > QFQ_MAX_WSUM)
sys/netpfil/ipfw/dn_sched_qfq.c
325
q->wsum += w;
sys/netpfil/ipfw/test/main.c
340
int w, w_h, w_steps, wi;
sys/netpfil/ipfw/test/main.c
344
w = getnum(strsep(&cur, ":"), &p, "weight");
sys/netpfil/ipfw/test/main.c
345
if (w <= 0)
sys/netpfil/ipfw/test/main.c
346
w = 1;
sys/netpfil/ipfw/test/main.c
347
w_h = p ? getnum(p+1, &p, "weight_max") : w;
sys/netpfil/ipfw/test/main.c
348
w_steps = p ? getnum(p+1, &p, "w_steps") : (w_h == w ?1:2);
sys/netpfil/ipfw/test/main.c
358
w, w_h, w_steps, len, len_h, l_steps, flows);
sys/netpfil/ipfw/test/main.c
359
if (w == 0 || w_h < w || len == 0 || len_h < len ||
sys/netpfil/ipfw/test/main.c
366
wi = w + ((w_h - w)* i)/(w_steps == 1 ? 1 : (w_steps-1));
sys/netpfil/pf/in4_cksum.c
108
w = u.w;
sys/netpfil/pf/in4_cksum.c
110
sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3]; sum += w[4];
sys/netpfil/pf/in4_cksum.c
111
sum += w[5]; sum += w[6]; sum += w[7]; sum += w[8]; sum += w[9];
sys/netpfil/pf/in4_cksum.c
86
u_int16_t w[10];
sys/netpfil/pf/in4_cksum.c
93
u_int16_t *w;
sys/netpfil/pf/pf_table.c
1072
const struct pfr_walktree *w)
sys/netpfil/pf/pf_table.c
1081
if (! (w->pfrw_flags & PFR_TFLAG_COUNTERS) ||
sys/netpfil/pf/pf_table.c
1118
struct pfr_walktree *w = arg;
sys/netpfil/pf/pf_table.c
1120
switch (w->pfrw_op) {
sys/netpfil/pf/pf_table.c
1129
SLIST_INSERT_HEAD(w->pfrw_workq, ke, pfrke_workq);
sys/netpfil/pf/pf_table.c
1130
w->pfrw_free++;
sys/netpfil/pf/pf_table.c
1133
if (w->pfrw_free-- > 0) {
sys/netpfil/pf/pf_table.c
1134
pfr_copyout_addr(w->pfrw_addr, ke);
sys/netpfil/pf/pf_table.c
1135
w->pfrw_addr++;
sys/netpfil/pf/pf_table.c
1139
if (w->pfrw_free-- > 0) {
sys/netpfil/pf/pf_table.c
1142
pfr_copyout_astats(&as, ke, w);
sys/netpfil/pf/pf_table.c
1144
bcopy(&as, w->pfrw_astats, sizeof(as));
sys/netpfil/pf/pf_table.c
1145
w->pfrw_astats++;
sys/netpfil/pf/pf_table.c
1151
if (!w->pfrw_free--) {
sys/netpfil/pf/pf_table.c
1152
w->pfrw_kentry = ke;
sys/netpfil/pf/pf_table.c
1162
if (w->pfrw_dyn->pfid_acnt4++ > 0)
sys/netpfil/pf/pf_table.c
1165
pfr_sockaddr_to_pf_addr(&ke->pfrke_sa, &w->pfrw_dyn->pfid_addr4);
sys/netpfil/pf/pf_table.c
1166
pfr_sockaddr_to_pf_addr(&pfr_mask, &w->pfrw_dyn->pfid_mask4);
sys/netpfil/pf/pf_table.c
1169
if (w->pfrw_dyn->pfid_acnt6++ > 0)
sys/netpfil/pf/pf_table.c
1172
pfr_sockaddr_to_pf_addr(&ke->pfrke_sa, &w->pfrw_dyn->pfid_addr6);
sys/netpfil/pf/pf_table.c
1173
pfr_sockaddr_to_pf_addr(&pfr_mask, &w->pfrw_dyn->pfid_mask6);
sys/netpfil/pf/pf_table.c
1182
if (w->pfrw_flags & PFR_TFLAG_COUNTERS) {
sys/netpfil/pf/pf_table.c
1898
struct pfr_walktree w;
sys/netpfil/pf/pf_table.c
1920
bzero(&w, sizeof(w));
sys/netpfil/pf/pf_table.c
1921
w.pfrw_op = PFRW_COUNTERS;
sys/netpfil/pf/pf_table.c
1922
w.pfrw_flags |= PFR_TFLAG_COUNTERS;
sys/netpfil/pf/pf_table.c
1923
kt->pfrkt_ip4->rnh_walktree(&kt->pfrkt_ip4->rh, pfr_walktree, &w);
sys/netpfil/pf/pf_table.c
1924
kt->pfrkt_ip6->rnh_walktree(&kt->pfrkt_ip6->rh, pfr_walktree, &w);
sys/netpfil/pf/pf_table.c
1927
bzero(&w, sizeof(w));
sys/netpfil/pf/pf_table.c
1928
w.pfrw_op = PFRW_COUNTERS;
sys/netpfil/pf/pf_table.c
1929
w.pfrw_flags |= 0;
sys/netpfil/pf/pf_table.c
1930
kt->pfrkt_ip4->rnh_walktree(&kt->pfrkt_ip4->rh, pfr_walktree, &w);
sys/netpfil/pf/pf_table.c
1931
kt->pfrkt_ip6->rnh_walktree(&kt->pfrkt_ip6->rh, pfr_walktree, &w);
sys/netpfil/pf/pf_table.c
2443
struct pfr_walktree w;
sys/netpfil/pf/pf_table.c
2445
bzero(&w, sizeof(w));
sys/netpfil/pf/pf_table.c
2446
w.pfrw_op = PFRW_POOL_GET;
sys/netpfil/pf/pf_table.c
2447
w.pfrw_free = idx;
sys/netpfil/pf/pf_table.c
2452
kt->pfrkt_ip4->rnh_walktree(&kt->pfrkt_ip4->rh, pfr_walktree, &w);
sys/netpfil/pf/pf_table.c
2453
return (w.pfrw_kentry);
sys/netpfil/pf/pf_table.c
2457
kt->pfrkt_ip6->rnh_walktree(&kt->pfrkt_ip6->rh, pfr_walktree, &w);
sys/netpfil/pf/pf_table.c
2458
return (w.pfrw_kentry);
sys/netpfil/pf/pf_table.c
2468
struct pfr_walktree w;
sys/netpfil/pf/pf_table.c
2470
bzero(&w, sizeof(w));
sys/netpfil/pf/pf_table.c
2471
w.pfrw_op = PFRW_DYNADDR_UPDATE;
sys/netpfil/pf/pf_table.c
2472
w.pfrw_dyn = dyn;
sys/netpfil/pf/pf_table.c
2478
kt->pfrkt_ip4->rnh_walktree(&kt->pfrkt_ip4->rh, pfr_walktree, &w);
sys/netpfil/pf/pf_table.c
2479
kt->pfrkt_ip6->rnh_walktree(&kt->pfrkt_ip6->rh, pfr_walktree, &w);
sys/netpfil/pf/pf_table.c
2482
kt->pfrkt_ip4->rnh_walktree(&kt->pfrkt_ip4->rh, pfr_walktree, &w);
sys/netpfil/pf/pf_table.c
2485
kt->pfrkt_ip6->rnh_walktree(&kt->pfrkt_ip6->rh, pfr_walktree, &w);
sys/netpfil/pf/pf_table.c
547
struct pfr_walktree w;
sys/netpfil/pf/pf_table.c
563
bzero(&w, sizeof(w));
sys/netpfil/pf/pf_table.c
564
w.pfrw_op = PFRW_GET_ADDRS;
sys/netpfil/pf/pf_table.c
565
w.pfrw_addr = addr;
sys/netpfil/pf/pf_table.c
566
w.pfrw_free = kt->pfrkt_cnt;
sys/netpfil/pf/pf_table.c
567
rv = kt->pfrkt_ip4->rnh_walktree(&kt->pfrkt_ip4->rh, pfr_walktree, &w);
sys/netpfil/pf/pf_table.c
570
pfr_walktree, &w);
sys/netpfil/pf/pf_table.c
574
KASSERT(w.pfrw_free == 0, ("%s: corruption detected (%d)", __func__,
sys/netpfil/pf/pf_table.c
575
w.pfrw_free));
sys/netpfil/pf/pf_table.c
586
struct pfr_walktree w;
sys/netpfil/pf/pf_table.c
605
bzero(&w, sizeof(w));
sys/netpfil/pf/pf_table.c
606
w.pfrw_op = PFRW_GET_ASTATS;
sys/netpfil/pf/pf_table.c
607
w.pfrw_astats = addr;
sys/netpfil/pf/pf_table.c
608
w.pfrw_free = kt->pfrkt_cnt;
sys/netpfil/pf/pf_table.c
615
w.pfrw_flags = kt->pfrkt_flags;
sys/netpfil/pf/pf_table.c
616
rv = kt->pfrkt_ip4->rnh_walktree(&kt->pfrkt_ip4->rh, pfr_walktree, &w);
sys/netpfil/pf/pf_table.c
619
pfr_walktree, &w);
sys/netpfil/pf/pf_table.c
627
if (w.pfrw_free) {
sys/netpfil/pf/pf_table.c
629
w.pfrw_free);
sys/netpfil/pf/pf_table.c
718
struct pfr_walktree w;
sys/netpfil/pf/pf_table.c
721
bzero(&w, sizeof(w));
sys/netpfil/pf/pf_table.c
722
w.pfrw_op = sweep ? PFRW_SWEEP : PFRW_ENQUEUE;
sys/netpfil/pf/pf_table.c
723
w.pfrw_workq = workq;
sys/netpfil/pf/pf_table.c
726
pfr_walktree, &w))
sys/netpfil/pf/pf_table.c
730
pfr_walktree, &w))
sys/netpfil/pf/pf_table.c
733
*naddr = w.pfrw_free;
sys/netpfil/pf/pf_table.c
739
struct pfr_walktree w;
sys/netpfil/pf/pf_table.c
741
bzero(&w, sizeof(w));
sys/netpfil/pf/pf_table.c
742
w.pfrw_op = PFRW_MARK;
sys/netpfil/pf/pf_table.c
743
if (kt->pfrkt_ip4->rnh_walktree(&kt->pfrkt_ip4->rh, pfr_walktree, &w))
sys/netpfil/pf/pf_table.c
745
if (kt->pfrkt_ip6->rnh_walktree(&kt->pfrkt_ip6->rh, pfr_walktree, &w))
sys/opencrypto/crypto.c
173
#define CRYPTO_RETW_ID(w) ((w) - crypto_ret_workers)
sys/opencrypto/crypto.c
174
#define FOREACH_CRYPTO_RETW(w) \
sys/opencrypto/crypto.c
175
for (w = crypto_ret_workers; w < crypto_ret_workers + crypto_workers_num; ++w)
sys/opencrypto/crypto.c
177
#define CRYPTO_RETW_LOCK(w) mtx_lock(&w->crypto_ret_mtx)
sys/opencrypto/crypto.c
178
#define CRYPTO_RETW_UNLOCK(w) mtx_unlock(&w->crypto_ret_mtx)
sys/powerpc/include/bus.h
267
(*(t)->__bs_opname(w,sz))(h, o, v)
sys/powerpc/mpc85xx/fsl_diu.c
339
int h, r, w;
sys/powerpc/mpc85xx/fsl_diu.c
378
if ((err = sscanf(vm_name, "%dx%d@%d", &w, &h, &r)) != 3) {
sys/powerpc/mpc85xx/fsl_diu.c
383
videomode = pick_mode_by_ref(w, h, r);
sys/powerpc/mpc85xx/fsl_diu.c
386
"Cannot find mode for %dx%d@%d", w, h, r);
sys/riscv/include/bus.h
265
(*(t)->__bs_opname(w,sz))((t)->bs_cookie, h, o, v)
sys/riscv/include/bus.h
277
(*(t)->__bs_opname_s(w,sz))((t)->bs_cookie, h, o, v)
sys/security/mac_biba/mac_biba.h
89
#define MAC_BIBA_BIT_TEST(b, w) \
sys/security/mac_biba/mac_biba.h
90
((w)[(((b) - 1) >> 3)] & (1 << (((b) - 1) & 7)))
sys/security/mac_biba/mac_biba.h
91
#define MAC_BIBA_BIT_SET(b, w) \
sys/security/mac_biba/mac_biba.h
92
((w)[(((b) - 1) >> 3)] |= (1 << (((b) - 1) & 7)))
sys/security/mac_mls/mac_mls.h
94
#define MAC_MLS_BIT_TEST(b, w) \
sys/security/mac_mls/mac_mls.h
95
((w)[(((b) - 1) >> 3)] & (1 << (((b) - 1) & 7)))
sys/security/mac_mls/mac_mls.h
96
#define MAC_MLS_BIT_SET(b, w) \
sys/security/mac_mls/mac_mls.h
97
((w)[(((b) - 1) >> 3)] |= (1 << (((b) - 1) & 7)))
sys/sys/bufobj.h
87
#define BO_SYNC(bo, w) ((bo)->bo_ops->bop_sync((bo), (w)))
sys/sys/mount.h
1016
int vfs_flagopt(struct vfsoptlist *opts, const char *name, uint64_t *w,
sys/sys/mutex.h
205
#define _mtx_assert(m, w, f, l) \
sys/sys/mutex.h
206
__mtx_assert(&(m)->mtx_lock, w, f, l)
sys/sys/rwlock.h
208
#define _rw_assert(rw, w, f, l) \
sys/sys/rwlock.h
209
__rw_assert(&(rw)->rw_lock, w, f, l)
sys/sys/systm.h
368
#define subyte(b, w) SAN_INTERCEPTOR(subyte)((b), (w))
sys/sys/systm.h
369
#define suword(b, w) SAN_INTERCEPTOR(suword)((b), (w))
sys/sys/systm.h
370
#define suword16(b, w) SAN_INTERCEPTOR(suword16)((b), (w))
sys/sys/systm.h
371
#define suword32(b, w) SAN_INTERCEPTOR(suword32)((b), (w))
sys/sys/systm.h
372
#define suword64(b, w) SAN_INTERCEPTOR(suword64)((b), (w))
sys/teken/teken.c
533
k, r, g, y, b, m, c, w,
sys/teken/teken.c
536
k, r, g, y, b, m, c, w,
sys/teken/teken.c
557
y, y, w, b, b, b,
sys/teken/teken.c
566
y, y, y, w, b, b,
sys/teken/teken.c
575
y, y, y, y, w, b,
sys/teken/teken.c
584
y, y, y, y, y, w,
sys/teken/teken.c
589
w, w, w, w, w, w,
sys/teken/teken.c
590
w, w, w, w, w, w,
sys/teken/teken.c
601
k, r, g, y, b, m, c, w,
sys/teken/teken.c
625
y, y, w, B, B, B,
sys/teken/teken.c
657
w, w, w, w, w, w,
tests/sys/cddl/zfs/bin/mkfile.c
120
size_t w;
tests/sys/cddl/zfs/bin/mkfile.c
151
w = (s > MKFILE_WBUF) ? MKFILE_WBUF : s;
tests/sys/cddl/zfs/bin/mkfile.c
152
if ((ws = write(fd, buf, w)) == (ssize_t)-1) {
tools/regression/gaithrstress/gaithrstress.c
102
struct worker *w = arg;
tools/regression/gaithrstress/gaithrstress.c
132
if (ts_total.tv_sec > w->w_max_lookup_time.tv_sec ||
tools/regression/gaithrstress/gaithrstress.c
133
(ts_total.tv_sec == w->w_max_lookup_time.tv_sec &&
tools/regression/gaithrstress/gaithrstress.c
134
ts_total.tv_nsec > w->w_max_lookup_time.tv_sec))
tools/regression/gaithrstress/gaithrstress.c
135
w->w_max_lookup_time = ts_total;
tools/regression/gaithrstress/gaithrstress.c
138
w->w_lookup_success++;
tools/regression/gaithrstress/gaithrstress.c
141
w->w_lookup_failure++;
tools/tools/cxgbtool/cxgbtool.c
183
uint32_t addr, val = 0, w = 0;
tools/tools/cxgbtool/cxgbtool.c
191
w = 1;
tools/tools/cxgbtool/cxgbtool.c
198
if (w)
tools/tools/net80211/stumbler/stumbler.c
118
char* wep2str(int w) {
tools/tools/net80211/stumbler/stumbler.c
122
switch (w) {
tools/tools/net80211/w00t/assoc/assoc.c
194
struct ieee80211_frame w;
tools/tools/net80211/w00t/assoc/assoc.c
203
wh = (struct ieee80211_frame*) &u.w;
tools/tools/net80211/wlaninject/wlaninject.c
531
struct ieee80211_frame w;
tools/tools/net80211/wlaninject/wlaninject.c
537
struct ieee80211_frame *wh = &u.w;
tools/tools/netmap/pkt-gen.c
1366
struct timespec w, cur;
tools/tools/netmap/pkt-gen.c
1368
w = timespec_sub(ts, cur);
tools/tools/netmap/pkt-gen.c
1369
if (w.tv_sec < 0)
tools/tools/netmap/pkt-gen.c
1371
else if (w.tv_sec > 0 || w.tv_nsec > 1000000)
tools/tools/netmap/pkt-gen.c
2151
uint16_t *w = (uint16_t *)PKT(pkt, body, targ->g->af), t;
tools/tools/netmap/pkt-gen.c
2156
t = *w;
tools/tools/netmap/pkt-gen.c
2159
sum = ~cksum_add(~sum, cksum_add(~t, *w));
tools/tools/netmap/pkt-gen.c
2160
t = *++w;
tools/tools/netmap/pkt-gen.c
2163
sum = ~cksum_add(~sum, cksum_add(~t, *w));
tools/tools/netmap/pkt-gen.c
637
char *w, *tok;
tools/tools/netmap/pkt-gen.c
644
w = strdup(conf);
tools/tools/netmap/pkt-gen.c
645
for (i = 0, tok = strtok(w, ","); tok; i++, tok = strtok(NULL, ",")) {
tools/tools/netmap/pkt-gen.c
668
free(w);
usr.bin/ar/acpyacc.y
329
ssize_t w;
usr.bin/ar/acpyacc.y
341
for (buf = p, bytes = sb.st_size; bytes > 0; bytes -= w) {
usr.bin/ar/acpyacc.y
342
w = write(ofd, buf, bytes);
usr.bin/ar/acpyacc.y
343
if (w <= 0) {
usr.bin/bintrans/bintrans.c
130
const char *w = NULL;
usr.bin/bintrans/bintrans.c
148
w = optarg;
usr.bin/bintrans/bintrans.c
164
main_base64_encode(argv[optind], w);
usr.bin/bintrans/uuencode.c
247
arg_to_col(const char *w)
usr.bin/bintrans/uuencode.c
253
option = strtol(w, &ep, 10);
usr.bin/bintrans/uuencode.c
68
main_base64_encode(const char *in, const char *w)
usr.bin/bintrans/uuencode.c
74
if (w != NULL)
usr.bin/bintrans/uuencode.c
75
columns = arg_to_col(w);
usr.bin/column/column.c
336
int w, cw;
usr.bin/column/column.c
338
for (w = 0; *wcs != L'\0'; wcs++)
usr.bin/column/column.c
340
w += cw;
usr.bin/column/column.c
341
return (w);
usr.bin/compress/zopen.c
127
} w; /* Write parameters */
usr.bin/compress/zopen.c
159
#define fcode zs->u.w.zs_fcode
usr.bin/compress/zopen.c
160
#define hsize_reg zs->u.w.zs_hsize_reg
usr.bin/compress/zopen.c
161
#define ent zs->u.w.zs_ent
usr.bin/compress/zopen.c
162
#define hshift zs->u.w.zs_hshift
usr.bin/diff/diffreg.c
869
struct line *ai, *aim, w;
usr.bin/diff/diffreg.c
887
w.value = ai[0].value;
usr.bin/diff/diffreg.c
889
aim->value = w.value;
usr.bin/diff/diffreg.c
890
w.serial = ai[0].serial;
usr.bin/diff/diffreg.c
892
aim->serial = w.serial;
usr.bin/dpv/dpv.c
155
ssize_t r, w;
usr.bin/dpv/dpv.c
171
if ((w = write(out, buf, r)) < 0) {
usr.bin/dpv/dpv.c
200
ssize_t r, w;
usr.bin/dpv/dpv.c
217
if ((w = write(out, buf, r)) < 0) {
usr.bin/finger/lprint.c
163
for (w = pn->whead, maxlen = -1; w != NULL; w = w->next)
usr.bin/finger/lprint.c
164
if ((len = strlen(w->tty)) > maxlen)
usr.bin/finger/lprint.c
167
for (w = pn->whead; w != NULL; w = w->next) {
usr.bin/finger/lprint.c
168
if (w->info == LOGGEDIN) {
usr.bin/finger/lprint.c
169
tp = localtime(&w->loginat);
usr.bin/finger/lprint.c
173
cpr = printf("On since %s on %s", t, w->tty);
usr.bin/finger/lprint.c
179
delta = gmtime(&w->idletime);
usr.bin/finger/lprint.c
180
if (w->idletime != -1 && (delta->tm_yday ||
usr.bin/finger/lprint.c
183
maxlen - (int)strlen(w->tty) + 1, ",");
usr.bin/finger/lprint.c
191
if (*w->host) {
usr.bin/finger/lprint.c
196
if (!w->writable)
usr.bin/finger/lprint.c
198
} else if (w->loginat == 0) {
usr.bin/finger/lprint.c
201
tp = localtime(&w->loginat);
usr.bin/finger/lprint.c
202
if (now - w->loginat > 86400 * 365 / 2) {
usr.bin/finger/lprint.c
213
cpr = printf("Last login %s on %s", t, w->tty);
usr.bin/finger/lprint.c
215
if (*w->host) {
usr.bin/finger/lprint.c
216
if (LINE_LEN < (cpr + 6 + strlen(w->host)))
usr.bin/finger/lprint.c
218
(void)printf(" from %s", w->host);
usr.bin/finger/lprint.c
95
WHERE *w;
usr.bin/finger/sprint.c
101
if (!w->loginat) {
usr.bin/finger/sprint.c
105
(void)putchar(w->info == LOGGEDIN && !w->writable ?
usr.bin/finger/sprint.c
107
if (*w->tty)
usr.bin/finger/sprint.c
109
(strncmp(w->tty, "tty", 3)
usr.bin/finger/sprint.c
110
&& strncmp(w->tty, "cua", 3))
usr.bin/finger/sprint.c
111
? w->tty : w->tty + 3);
usr.bin/finger/sprint.c
114
if (w->info == LOGGEDIN) {
usr.bin/finger/sprint.c
115
stimeprint(w);
usr.bin/finger/sprint.c
119
lc = localtime(&w->loginat);
usr.bin/finger/sprint.c
123
if (now - w->loginat < SECSPERDAY * (DAYSPERWEEK - 1)) {
usr.bin/finger/sprint.c
130
if (now - w->loginat >= SECSPERDAY * DAYSPERNYEAR / 2) {
usr.bin/finger/sprint.c
148
(void)printf(" %.*s", MAXHOSTNAME, w->host);
usr.bin/finger/sprint.c
156
stimeprint(WHERE *w)
usr.bin/finger/sprint.c
160
if (w->idletime == -1) {
usr.bin/finger/sprint.c
165
delta = gmtime(&w->idletime);
usr.bin/finger/sprint.c
54
WHERE *w;
usr.bin/finger/sprint.c
94
for (w = pn->whead; w != NULL; w = w->next) {
usr.bin/finger/sprint.c
96
if (w->info == LOGGEDIN && !w->writable)
usr.bin/finger/util.c
100
WHERE *w;
usr.bin/finger/util.c
106
if ((w = pn->whead) == NULL)
usr.bin/finger/util.c
110
for (; !doit && w != NULL; w = w->next)
usr.bin/finger/util.c
111
if (w->info == LOGGEDIN &&
usr.bin/finger/util.c
112
w->loginat < ut->ut_tv.tv_sec)
usr.bin/finger/util.c
119
for (w = pn->whead; doit && w != NULL; w = w->next)
usr.bin/finger/util.c
120
if (w->info == LOGGEDIN &&
usr.bin/finger/util.c
121
strcmp(w->tty, ut->ut_line) == 0)
usr.bin/finger/util.c
125
w = walloc(pn);
usr.bin/finger/util.c
126
w->info = LASTLOG;
usr.bin/finger/util.c
127
strcpy(w->tty, ut->ut_line);
usr.bin/finger/util.c
128
strcpy(w->host, ut->ut_host);
usr.bin/finger/util.c
129
w->loginat = ut->ut_tv.tv_sec;
usr.bin/finger/util.c
137
WHERE *w;
usr.bin/finger/util.c
139
w = walloc(pn);
usr.bin/finger/util.c
140
w->info = LOGGEDIN;
usr.bin/finger/util.c
141
strcpy(w->tty, ut->ut_line);
usr.bin/finger/util.c
142
strcpy(w->host, ut->ut_host);
usr.bin/finger/util.c
143
w->loginat = ut->ut_tv.tv_sec;
usr.bin/finger/util.c
144
find_idle_and_ttywrite(w);
usr.bin/finger/util.c
218
WHERE *w;
usr.bin/finger/util.c
220
if ((w = malloc(sizeof(WHERE))) == NULL)
usr.bin/finger/util.c
223
pn->whead = pn->wtail = w;
usr.bin/finger/util.c
225
pn->wtail->next = w;
usr.bin/finger/util.c
226
pn->wtail = w;
usr.bin/finger/util.c
228
w->next = NULL;
usr.bin/finger/util.c
229
return(w);
usr.bin/finger/util.c
282
find_idle_and_ttywrite(WHERE *w)
usr.bin/finger/util.c
288
(void)snprintf(tbuf, sizeof(tbuf), "%s/%s", _PATH_DEV, w->tty);
usr.bin/finger/util.c
298
w->idletime = -1;
usr.bin/finger/util.c
302
w->idletime = -1;
usr.bin/finger/util.c
306
if (touched < w->loginat) {
usr.bin/finger/util.c
308
touched = w->loginat;
usr.bin/finger/util.c
310
w->idletime = now < touched ? 0 : now - touched;
usr.bin/finger/util.c
313
w->writable = ((sb.st_mode & TALKABLE) == TALKABLE);
usr.bin/fold/fold.c
198
int w;
usr.bin/fold/fold.c
216
if ((w = wcwidth(ch)) > 0)
usr.bin/fold/fold.c
217
col += w;
usr.bin/gzip/gzip.c
1712
ssize_t w;
usr.bin/gzip/gzip.c
1715
w = write_retry(STDOUT_FILENO, prepend, count);
usr.bin/gzip/gzip.c
1716
if (w == -1 || (size_t)w != count) {
usr.bin/gzip/gzip.c
655
ssize_t w;
usr.bin/gzip/gzip.c
666
w = write_retry(out, outbufp, len);
usr.bin/gzip/gzip.c
667
if (w == -1 || (size_t)w != len) {
usr.bin/gzip/zuncompress.c
118
} w; /* Write parameters */
usr.bin/indent/io.c
235
int w;
usr.bin/indent/io.c
238
if ((w = count_spaces(t, s_code) - opt.max_col) > 0
usr.bin/indent/io.c
240
t -= w + 1;
usr.bin/localedef/collate.c
1027
weight_t *w;
usr.bin/localedef/collate.c
1042
if ((w = calloc(1, sizeof(*w))) == NULL) {
usr.bin/localedef/collate.c
1046
w->pri = srch.pri;
usr.bin/localedef/collate.c
1047
RB_INSERT(weights, &weights[pass], w);
usr.bin/localedef/collate.c
1063
weight_t *w;
usr.bin/localedef/collate.c
1074
if ((w = RB_FIND(weights, &weights[pass], &srch)) == NULL) {
usr.bin/localedef/collate.c
1078
return (w->opt);
usr.bin/localedef/collate.c
1154
weight_t *w;
usr.bin/localedef/collate.c
1155
RB_FOREACH(w, weights, &weights[i]) {
usr.bin/localedef/collate.c
1156
w->opt = nweight[i];
usr.bin/localedef/parser.y
198
wchar_t *w = get_wcs();
usr.bin/localedef/parser.y
199
set_wide_encoding(to_mb_string(w));
usr.bin/localedef/parser.y
200
free(w);
usr.bin/localedef/parser.y
214
wchar_t *w = get_wcs();
usr.bin/localedef/parser.y
215
copy_category(to_mb_string(w));
usr.bin/localedef/parser.y
216
free(w);
usr.bin/mail/send.c
501
puthead(struct header *hp, FILE *fo, int w)
usr.bin/mail/send.c
506
if (hp->h_to != NULL && w & GTO)
usr.bin/mail/send.c
507
fmt("To:", hp->h_to, fo, w&GCOMMA), gotcha++;
usr.bin/mail/send.c
508
if (hp->h_subject != NULL && w & GSUBJECT)
usr.bin/mail/send.c
510
if (hp->h_cc != NULL && w & GCC)
usr.bin/mail/send.c
511
fmt("Cc:", hp->h_cc, fo, w&GCOMMA), gotcha++;
usr.bin/mail/send.c
512
if (hp->h_bcc != NULL && w & GBCC)
usr.bin/mail/send.c
513
fmt("Bcc:", hp->h_bcc, fo, w&GCOMMA), gotcha++;
usr.bin/mail/send.c
514
if (hp->h_replyto != NULL && w & GREPLYTO)
usr.bin/mail/send.c
516
if (hp->h_inreplyto != NULL && w & GINREPLYTO)
usr.bin/mail/send.c
518
if (gotcha && w & GNL)
usr.bin/ncal/ncal.c
1065
center(char *s, char *t, int w)
usr.bin/ncal/ncal.c
1070
sprintf(s, "%.*s%s", (int)(w - strlen(t)) / 2, blanks, t);
usr.bin/ncal/ncal.c
1076
wcenter(wchar_t *s, wchar_t *t, int w)
usr.bin/ncal/ncal.c
1081
swprintf(s, MAX_WIDTH, L"%.*s%ls", (int)(w - wcslen(t)) / 2, blanks, t);
usr.bin/ncal/ncal.c
168
static char *center(char *s, char *t, int w);
usr.bin/ncal/ncal.c
169
static wchar_t *wcenter(wchar_t *s, wchar_t *t, int w);
usr.bin/resizewin/resizewin.c
145
if (sscanf(data, "\033[%hu;%huR", &w.ws_row, &w.ws_col) != 2) {
usr.bin/resizewin/resizewin.c
152
if (ioctl(fd, TIOCSWINSZ, &w) == -1)
usr.bin/resizewin/resizewin.c
64
struct winsize w;
usr.bin/resizewin/resizewin.c
89
if (ioctl(fd, TIOCGWINSZ, &w) == -1)
usr.bin/resizewin/resizewin.c
91
if (w.ws_row != 0 && w.ws_col != 0)
usr.bin/ruptime/ruptime.c
138
iwidth(int w)
usr.bin/ruptime/ruptime.c
140
if (w < 10)
usr.bin/ruptime/ruptime.c
142
if (w < 100)
usr.bin/ruptime/ruptime.c
144
if (w < 1000)
usr.bin/ruptime/ruptime.c
146
if (w < 10000)
usr.bin/ruptime/ruptime.c
184
int fd, hostnamewidth, i, loadavwidth[3], userswidth, w;
usr.bin/ruptime/ruptime.c
227
w = iwidth(wd->wd_loadav[i] / 100) + 3;
usr.bin/ruptime/ruptime.c
228
if (loadavwidth[i] < w)
usr.bin/ruptime/ruptime.c
229
loadavwidth[i] = w;
usr.bin/ruptime/ruptime.c
250
w = userswidth + loadavwidth[0] + loadavwidth[1] + loadavwidth[2];
usr.bin/ruptime/ruptime.c
251
if (hostnamewidth + w > 41)
usr.bin/ruptime/ruptime.c
252
hostnamewidth = 41 - w; /* limit to 79 cols */
usr.bin/rwho/rwho.c
142
if (down(w, now) != 0) {
usr.bin/rwho/rwho.c
147
we = w->wd_we;
usr.bin/rwho/rwho.c
157
(void) strcpy(mp->myhost, w->wd_hostname);
usr.bin/rwho/rwho.c
57
#define down(w,now) ((now) - (w)->wd_recvtime > 11 * 60)
usr.bin/rwho/rwho.c
81
struct whod *w;
usr.bin/rwho/rwho.c
90
w = &wd;
usr.bin/systat/icmp.c
91
closeicmp(WINDOW *w)
usr.bin/systat/icmp.c
93
if (w == NULL)
usr.bin/systat/icmp.c
95
wclear(w);
usr.bin/systat/icmp.c
96
wrefresh(w);
usr.bin/systat/icmp.c
97
delwin(w);
usr.bin/systat/icmp6.c
90
closeicmp6(WINDOW *w)
usr.bin/systat/icmp6.c
92
if (w == NULL)
usr.bin/systat/icmp6.c
94
wclear(w);
usr.bin/systat/icmp6.c
95
wrefresh(w);
usr.bin/systat/icmp6.c
96
delwin(w);
usr.bin/systat/ifstat.c
173
closeifstat(WINDOW *w)
usr.bin/systat/ifstat.c
183
if (w != NULL) {
usr.bin/systat/ifstat.c
184
wclear(w);
usr.bin/systat/ifstat.c
185
wrefresh(w);
usr.bin/systat/ifstat.c
186
delwin(w);
usr.bin/systat/iolat.c
305
closeiolat(WINDOW *w)
usr.bin/systat/iolat.c
307
if (w == NULL)
usr.bin/systat/iolat.c
309
wclear(w);
usr.bin/systat/iolat.c
310
wrefresh(w);
usr.bin/systat/iolat.c
311
delwin(w);
usr.bin/systat/iostat.c
100
wrefresh(w);
usr.bin/systat/iostat.c
101
delwin(w);
usr.bin/systat/iostat.c
95
closeiostat(WINDOW *w)
usr.bin/systat/iostat.c
97
if (w == NULL)
usr.bin/systat/iostat.c
99
wclear(w);
usr.bin/systat/ip.c
100
closeip(WINDOW *w)
usr.bin/systat/ip.c
102
if (w == NULL)
usr.bin/systat/ip.c
104
wclear(w);
usr.bin/systat/ip.c
105
wrefresh(w);
usr.bin/systat/ip.c
106
delwin(w);
usr.bin/systat/ip6.c
100
delwin(w);
usr.bin/systat/ip6.c
94
closeip6(WINDOW *w)
usr.bin/systat/ip6.c
96
if (w == NULL)
usr.bin/systat/ip6.c
98
wclear(w);
usr.bin/systat/ip6.c
99
wrefresh(w);
usr.bin/systat/netstat.c
111
closenetstat(WINDOW *w)
usr.bin/systat/netstat.c
122
if (w != NULL) {
usr.bin/systat/netstat.c
123
wclear(w);
usr.bin/systat/netstat.c
124
wrefresh(w);
usr.bin/systat/netstat.c
125
delwin(w);
usr.bin/systat/netstat.c
79
#define YMAX(w) (getmaxy(w)-2)
usr.bin/systat/pigs.c
69
closepigs(WINDOW *w)
usr.bin/systat/pigs.c
71
if (w == NULL)
usr.bin/systat/pigs.c
73
wclear(w);
usr.bin/systat/pigs.c
74
wrefresh(w);
usr.bin/systat/pigs.c
75
delwin(w);
usr.bin/systat/sctp.c
81
closesctp(WINDOW *w)
usr.bin/systat/sctp.c
83
if (w != NULL) {
usr.bin/systat/sctp.c
84
wclear(w);
usr.bin/systat/sctp.c
85
wrefresh(w);
usr.bin/systat/sctp.c
86
delwin(w);
usr.bin/systat/swap.c
65
closeswap(WINDOW *w)
usr.bin/systat/swap.c
68
if (w == NULL)
usr.bin/systat/swap.c
70
wclear(w);
usr.bin/systat/swap.c
71
wrefresh(w);
usr.bin/systat/swap.c
72
delwin(w);
usr.bin/systat/tcp.c
92
closetcp(WINDOW *w)
usr.bin/systat/tcp.c
94
if (w == NULL)
usr.bin/systat/tcp.c
96
wclear(w);
usr.bin/systat/tcp.c
97
wrefresh(w);
usr.bin/systat/tcp.c
98
delwin(w);
usr.bin/systat/vmstat.c
152
closekre(WINDOW *w)
usr.bin/systat/vmstat.c
155
if (w == NULL)
usr.bin/systat/vmstat.c
157
wclear(w);
usr.bin/systat/vmstat.c
158
wrefresh(w);
usr.bin/systat/vmstat.c
365
#define PUTRATE(fld, l, c, w) \
usr.bin/systat/vmstat.c
368
sysputwuint64(wnd, l, c, w, (s.fld/etime + 0.5), 0); \
usr.bin/systat/vmstat.c
624
putint(int n, int l, int lc, int w)
usr.bin/systat/vmstat.c
627
do_putuint64(n, l, lc, w, SI);
usr.bin/systat/vmstat.c
631
do_putuint64(uint64_t n, int l, int lc, int w, int div)
usr.bin/systat/vmstat.c
639
while (w-- > 0)
usr.bin/systat/vmstat.c
644
while (w-- > 0)
usr.bin/systat/vmstat.c
648
snr = snprintf(b, sizeof(b), "%*ju", w, (uintmax_t)n);
usr.bin/systat/vmstat.c
649
if (snr != w) {
usr.bin/systat/vmstat.c
650
humanize_number(lbuf, w, n, "", HN_AUTOSCALE,
usr.bin/systat/vmstat.c
652
snr = snprintf(b, sizeof(b), "%*s", w, lbuf);
usr.bin/systat/vmstat.c
654
if (snr != w) {
usr.bin/systat/vmstat.c
655
while (w-- > 0)
usr.bin/systat/vmstat.c
663
putfloat(double f, int l, int lc, int w, int d, int nz)
usr.bin/systat/vmstat.c
670
while (--w >= 0)
usr.bin/systat/vmstat.c
675
while (--w >= 0)
usr.bin/systat/vmstat.c
679
snr = snprintf(b, sizeof(b), "%*.*f", w, d, f);
usr.bin/systat/vmstat.c
680
if (snr != w)
usr.bin/systat/vmstat.c
681
snr = snprintf(b, sizeof(b), "%*.0f", w, f);
usr.bin/systat/vmstat.c
682
if (snr != w)
usr.bin/systat/vmstat.c
683
snr = snprintf(b, sizeof(b), "%*.0fk", w - 1, f / 1000);
usr.bin/systat/vmstat.c
684
if (snr != w)
usr.bin/systat/vmstat.c
685
snr = snprintf(b, sizeof(b), "%*.0fM", w - 1, f / 1000000);
usr.bin/systat/vmstat.c
686
if (snr != w) {
usr.bin/systat/vmstat.c
687
while (--w >= 0)
usr.bin/systat/vmstat.c
695
putlongdouble(long double f, int l, int lc, int w, int d, int nz)
usr.bin/systat/vmstat.c
702
while (--w >= 0)
usr.bin/systat/vmstat.c
707
while (--w >= 0)
usr.bin/systat/vmstat.c
711
snr = snprintf(b, sizeof(b), "%*.*Lf", w, d, f);
usr.bin/systat/vmstat.c
712
if (snr != w)
usr.bin/systat/vmstat.c
713
snr = snprintf(b, sizeof(b), "%*.0Lf", w, f);
usr.bin/systat/vmstat.c
714
if (snr != w)
usr.bin/systat/vmstat.c
715
snr = snprintf(b, sizeof(b), "%*.0Lfk", w - 1, f / 1000);
usr.bin/systat/vmstat.c
716
if (snr != w)
usr.bin/systat/vmstat.c
717
snr = snprintf(b, sizeof(b), "%*.0LfM", w - 1, f / 1000000);
usr.bin/systat/vmstat.c
718
if (snr != w) {
usr.bin/systat/vmstat.c
719
while (--w >= 0)
usr.bin/systat/zarc.c
71
closezarc(WINDOW *w)
usr.bin/systat/zarc.c
74
if (w == NULL)
usr.bin/systat/zarc.c
76
wclear(w);
usr.bin/systat/zarc.c
77
wrefresh(w);
usr.bin/systat/zarc.c
78
delwin(w);
usr.bin/talk/io.c
124
wint_t w;
usr.bin/talk/io.c
127
w = fgetwc(sockfp);
usr.bin/talk/io.c
128
if (w == WEOF) {
usr.bin/talk/io.c
132
display(&his_win, &w);
usr.bin/talk/io.c
135
wint_t w;
usr.bin/talk/io.c
137
if ((w = getwchar()) != WEOF) {
usr.bin/talk/io.c
138
display(&my_win, &w);
usr.bin/talk/io.c
139
(void )fputwc(w, sockfp);
usr.bin/ul/ul.c
161
int i, w;
usr.bin/ul/ul.c
249
w = obuf[col].c_width;
usr.bin/ul/ul.c
250
for (i = 0; i < w; i++)
usr.bin/ul/ul.c
275
if ((w = wcwidth(c)) <= 0) /* non printing */
usr.bin/ul/ul.c
279
for (i = 0; i < w; i++)
usr.bin/ul/ul.c
281
obuf[col].c_width = w;
usr.bin/ul/ul.c
282
for (i = 1; i < w; i++)
usr.bin/ul/ul.c
286
for (i = 0; i < w; i++)
usr.bin/ul/ul.c
288
obuf[col].c_width = w;
usr.bin/ul/ul.c
289
for (i = 1; i < w; i++)
usr.bin/ul/ul.c
292
for (i = 0; i < w; i++)
usr.bin/ul/ul.c
295
w = obuf[col].c_width;
usr.bin/ul/ul.c
296
for (i = 0; i < w; i++)
usr.bin/ul/ul.c
299
col += w;
usr.bin/vmstat/vmstat.c
889
struct winsize w;
usr.bin/vmstat/vmstat.c
893
status = ioctl(fileno(stdout), TIOCGWINSZ, &w);
usr.bin/vmstat/vmstat.c
898
if (w.ws_row > 3)
usr.bin/vmstat/vmstat.c
899
winlines = w.ws_row - 3;
usr.bin/vtfontcvt/vtfontcvt.c
293
struct whitelist *w = NULL;
usr.bin/vtfontcvt/vtfontcvt.c
300
w = s_list;
usr.bin/vtfontcvt/vtfontcvt.c
304
w = c_list;
usr.bin/vtfontcvt/vtfontcvt.c
307
if (w == NULL)
usr.bin/vtfontcvt/vtfontcvt.c
310
if (c >= w[i].c && c <= w[i].c + w[i].len)
usr.bin/vtfontcvt/vtfontcvt.c
359
split_row(uint8_t *left, uint8_t *right, uint8_t *line, size_t w)
usr.bin/vtfontcvt/vtfontcvt.c
368
if (w > width) { /* Double-width character. */
usr.bin/vtfontcvt/vtfontcvt.c
391
set_width(int w)
usr.bin/vtfontcvt/vtfontcvt.c
393
if (w <= 0 || w > VFNT_MAXDIMENSION)
usr.bin/vtfontcvt/vtfontcvt.c
394
errx(1, "invalid width %d", w);
usr.bin/vtfontcvt/vtfontcvt.c
395
width = w;
usr.sbin/acpi/acpidump/acpi.c
687
ACPI_WHEA_HEADER *w = &entry->WheaHeader;
usr.sbin/acpi/acpidump/acpi.c
689
printf("\n\tAction=%s\n", einj_action(w->Action));
usr.sbin/acpi/acpidump/acpi.c
690
printf("\tInstruction=%s\n", einj_instruction(w->Instruction));
usr.sbin/acpi/acpidump/acpi.c
691
if (w->Flags != 0) {
usr.sbin/acpi/acpidump/acpi.c
692
printf("\tFlags=%02x", w->Flags);
usr.sbin/acpi/acpidump/acpi.c
693
if (w->Flags & 0x1)
usr.sbin/acpi/acpidump/acpi.c
698
acpi_print_gas(&w->RegisterRegion);
usr.sbin/acpi/acpidump/acpi.c
700
switch (w->Instruction) {
usr.sbin/acpi/acpidump/acpi.c
707
printf("\tValue=0x%016jx\n", w->Value);
usr.sbin/acpi/acpidump/acpi.c
709
printf("\tMask=0x%016jx\n", w->Mask);
usr.sbin/acpi/acpidump/acpi.c
716
ACPI_EINJ_ENTRY *w;
usr.sbin/acpi/acpidump/acpi.c
725
w = (ACPI_EINJ_ENTRY *)(einj + 1);
usr.sbin/acpi/acpidump/acpi.c
728
acpi_print_einj_entry(w + i);
usr.sbin/acpi/acpidump/acpi.c
806
ACPI_WHEA_HEADER *w = &entry->WheaHeader;
usr.sbin/acpi/acpidump/acpi.c
808
printf("\n\tAction=%s\n", erst_action(w->Action));
usr.sbin/acpi/acpidump/acpi.c
809
printf("\tInstruction=%s\n", erst_instruction(w->Instruction));
usr.sbin/acpi/acpidump/acpi.c
810
if (w->Flags != 0) {
usr.sbin/acpi/acpidump/acpi.c
811
printf("\tFlags=%02x", w->Flags);
usr.sbin/acpi/acpidump/acpi.c
812
if (w->Flags & 0x1)
usr.sbin/acpi/acpidump/acpi.c
817
acpi_print_gas(&w->RegisterRegion);
usr.sbin/acpi/acpidump/acpi.c
819
switch (w->Instruction) {
usr.sbin/acpi/acpidump/acpi.c
833
printf("\tValue=0x%016jx\n", w->Value);
usr.sbin/acpi/acpidump/acpi.c
836
printf("\tMask=0x%016jx\n", w->Mask);
usr.sbin/acpi/acpidump/acpi.c
843
ACPI_ERST_ENTRY *w;
usr.sbin/acpi/acpidump/acpi.c
851
w = (ACPI_ERST_ENTRY *)(erst + 1);
usr.sbin/acpi/acpidump/acpi.c
854
acpi_print_erst_entry(w + i);
usr.sbin/arp/arp.c
792
#define NEXTADDR(w, s) \
usr.sbin/arp/arp.c
794
if ((s) != NULL && rtm->rtm_addrs & (w)) { \
usr.sbin/bhyve/amd64/fwctl.c
89
uint32_t w;
usr.sbin/bhyve/amd64/fwctl.c
93
u.w = 0;
usr.sbin/bhyve/amd64/fwctl.c
97
return (u.w);
usr.sbin/bhyve/console.c
50
console_init(int w, int h, void *fbaddr)
usr.sbin/bhyve/console.c
52
console.gc = bhyvegc_init(w, h, fbaddr);
usr.sbin/bhyve/console.h
38
void console_init(int w, int h, void *fbaddr);
usr.sbin/bhyve/rfb.c
518
int x, int y, int w, int h)
usr.sbin/bhyve/rfb.c
534
srect_hdr.width = htons(w);
usr.sbin/bhyve/rfb.c
537
width = w;
usr.sbin/bhyve/rfb.c
539
w *= sizeof(uint32_t);
usr.sbin/bhyve/rfb.c
547
rc->zstream.avail_in = w;
usr.sbin/bhyve/rfb.c
583
memcpy(zbufp, pixelp, w);
usr.sbin/bhyve/rfb.c
584
zbufp += w;
usr.sbin/bhyve/rfb.c
585
total += w;
usr.sbin/bhyve/rfb.c
698
int w, h;
usr.sbin/bhyve/rfb.c
759
w = rc->crc_width;
usr.sbin/bhyve/rfb.c
764
rem_x = w & PIXCELL_MASK;
usr.sbin/bluetooth/btpand/event.c
133
FD_SET(ev->fd, &w);
usr.sbin/bluetooth/btpand/event.c
143
nfd = select(nfd + 1, &r, &w, NULL, &timeout);
usr.sbin/bluetooth/btpand/event.c
161
if (FD_ISSET(ev->fd, &r) || FD_ISSET(ev->fd, &w)) {
usr.sbin/bluetooth/btpand/event.c
87
fd_set r, w;
usr.sbin/bluetooth/btpand/event.c
93
FD_ZERO(&w);
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
2819
struct wlan_iface *w;
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
2821
while ((w = SLIST_FIRST(&wlan_ifaces)) != NULL) {
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
2823
wlan_free_interface(w);
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
3035
wlan_append_ifindex(struct asn_oid *oid, uint sub, const struct wlan_iface *w)
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
3039
oid->len = sub + strlen(w->wname) + 1;
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
3040
oid->subs[sub] = strlen(w->wname);
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
3041
for (i = 1; i <= strlen(w->wname); i++)
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
3042
oid->subs[sub + i] = w->wname[i - 1];
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
480
#define WLAN_SET_TDMA_OPMODE(w) do { \
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
481
if ((w)->mode == WlanIfaceOperatingModeType_adhocDemo && \
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
482
((w)->drivercaps & WlanDriverCaps_tdma) != 0) \
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
483
(w)->mode = WlanIfaceOperatingModeType_tdma; \
usr.sbin/cxgbetool/cxgbetool.c
1526
unsigned int w = 0;
usr.sbin/cxgbetool/cxgbetool.c
1530
w = max(w, strlen(p->name));
usr.sbin/cxgbetool/cxgbetool.c
1546
printf("%-*s ", w, fd->name);
usr.sbin/cxgbetool/cxgbetool.c
208
int w = 0, rc;
usr.sbin/cxgbetool/cxgbetool.c
220
w = 1;
usr.sbin/cxgbetool/cxgbetool.c
233
w = 1;
usr.sbin/cxgbetool/cxgbetool.c
251
if (w)
usr.sbin/fifolog/lib/fifolog_reader.c
210
uint32_t v, w, u;
usr.sbin/fifolog/lib/fifolog_reader.c
219
w = 4;
usr.sbin/fifolog/lib/fifolog_reader.c
223
w += 4;
usr.sbin/fifolog/lib/fifolog_reader.c
226
v = p[w];
usr.sbin/fifolog/lib/fifolog_reader.c
227
w++;
usr.sbin/fifolog/lib/fifolog_reader.c
228
if (p + w + v >= q)
usr.sbin/fifolog/lib/fifolog_reader.c
231
for (v = 0; p + v + w < q && p[v + w] != '\0'; v++)
usr.sbin/fifolog/lib/fifolog_reader.c
233
if (p + v + w >= q)
usr.sbin/fifolog/lib/fifolog_reader.c
237
func(priv, fr->now, u, p + w, v);
usr.sbin/fifolog/lib/fifolog_reader.c
238
p += w + v;
usr.sbin/fifolog/lib/fifolog_write_poll.c
190
ssize_t i, w;
usr.sbin/fifolog/lib/fifolog_write_poll.c
212
w = f->ff->recsize - l;
usr.sbin/fifolog/lib/fifolog_write_poll.c
213
if (w > 255) {
usr.sbin/fifolog/lib/fifolog_write_poll.c
214
be32enc(f->obuf + f->ff->recsize - 4, w);
usr.sbin/fifolog/lib/fifolog_write_poll.c
216
} else if (w > 0) {
usr.sbin/fifolog/lib/fifolog_write_poll.c
217
f->obuf[f->ff->recsize - 1] = (uint8_t)w;
usr.sbin/iostat/iostat.c
699
struct winsize w;
usr.sbin/iostat/iostat.c
702
status = ioctl(fileno(stdout), TIOCGWINSZ, &w);
usr.sbin/iostat/iostat.c
707
if (w.ws_row > 3)
usr.sbin/iostat/iostat.c
708
wrows = w.ws_row - 3;
usr.sbin/lpr/lpc/lpc.c
288
register int i, j, w;
usr.sbin/lpr/lpc/lpc.c
312
w = strlen(c->c_name);
usr.sbin/lpr/lpc/lpc.c
313
while (w < width) {
usr.sbin/lpr/lpc/lpc.c
314
w = (w + 8) &~ 7;
usr.sbin/makefs/cd9660/cd9660_conversion.c
56
cd9660_721(uint16_t w, unsigned char *twochar)
usr.sbin/makefs/cd9660/cd9660_conversion.c
59
w = bswap16(w);
usr.sbin/makefs/cd9660/cd9660_conversion.c
61
memcpy(twochar,&w,2);
usr.sbin/makefs/cd9660/cd9660_conversion.c
65
cd9660_731(uint32_t w, unsigned char *fourchar)
usr.sbin/makefs/cd9660/cd9660_conversion.c
68
w = bswap32(w);
usr.sbin/makefs/cd9660/cd9660_conversion.c
70
memcpy(fourchar,&w,4);
usr.sbin/makefs/cd9660/cd9660_conversion.c
75
cd9660_722(uint16_t w, unsigned char *twochar)
usr.sbin/makefs/cd9660/cd9660_conversion.c
78
w = bswap16(w);
usr.sbin/makefs/cd9660/cd9660_conversion.c
80
memcpy(twochar,&w,2);
usr.sbin/makefs/cd9660/cd9660_conversion.c
84
cd9660_732(uint32_t w, unsigned char *fourchar)
usr.sbin/makefs/cd9660/cd9660_conversion.c
87
w = bswap32(w);
usr.sbin/makefs/cd9660/cd9660_conversion.c
89
memcpy(fourchar,&w,4);
usr.sbin/moused/moused/moused.c
2140
ev->st.w = ie->value;
usr.sbin/moused/moused/moused.c
2231
ev->st.p, ev->st.w);
usr.sbin/moused/moused/moused.c
2232
switch (r_gestures(tp, ev->st.x, ev->st.y, ev->st.p, ev->st.w,
usr.sbin/moused/moused/moused.c
268
int w;
usr.sbin/moused/moused/moused.c
2824
r_gestures(struct tpad *tp, int x0, int y0, u_int z, int w, int nfingers,
usr.sbin/moused/moused/moused.c
2862
((tphw->cap_width && w > max_width) ||
usr.sbin/moused/moused/moused.c
2892
debug("packet: [%d, %d], %d, %d", x0, y0, z, w);
usr.sbin/moused/moused/moused.c
523
static enum gesture r_gestures(struct tpad *tp, int x0, int y0, u_int z, int w,
usr.sbin/moused/moused/util.c
171
parse_dimension_property(const char *prop, size_t *w, size_t *h)
usr.sbin/moused/moused/util.c
184
*w = (size_t)x;
usr.sbin/moused/moused/util.h
406
bool parse_dimension_property(const char *prop, size_t *w, size_t *h);
usr.sbin/ndp/ndp.c
115
#define NEXTADDR(w, s) \
usr.sbin/ndp/ndp.c
116
if (rtm->rtm_addrs & (w)) { \
usr.sbin/pmcstat/pmcpl_callgraph.c
661
WINDOW *w;
usr.sbin/pmcstat/pmcpl_callgraph.c
663
w = (WINDOW *)arg;
usr.sbin/pmcstat/pmcpl_callgraph.c
665
(void) c; (void) w;
usr.sbin/pmcstat/pmcpl_callgraph.h
63
int pmcpl_cg_topkeypress(int c, void *w);
usr.sbin/pmcstat/pmcpl_calltree.c
588
WINDOW *w;
usr.sbin/pmcstat/pmcpl_calltree.c
590
w = (WINDOW *)arg;
usr.sbin/pmcstat/pmcpl_calltree.c
595
wprintw(w, "skip empty link %s",
usr.sbin/pmcstat/pmcpl_calltree.h
38
int pmcpl_ct_topkeypress(int c, void *w);
usr.sbin/pmcstat/pmcstat.c
272
int c, w;
usr.sbin/pmcstat/pmcstat.c
285
w = ev->ev_fieldwidth - ev->ev_fieldskip - 2;
usr.sbin/pmcstat/pmcstat.c
289
ev->ev_cpu, w-3, ev->ev_name);
usr.sbin/pmcstat/pmcstat.c
291
(void) fprintf(args.pa_printfile, "p/%*s ", w,
usr.sbin/pmcstat/pmcstat_log.c
721
WINDOW *w;
usr.sbin/pmcstat/pmcstat_log.c
723
w = newwin(1, 0, 1, 0);
usr.sbin/pmcstat/pmcstat_log.c
724
c = wgetch(w);
usr.sbin/pmcstat/pmcstat_log.c
725
wprintw(w, "Key: %c => ", c);
usr.sbin/pmcstat/pmcstat_log.c
734
wprintw(w, "enter mode 'd' or 'a' => ");
usr.sbin/pmcstat/pmcstat_log.c
735
c = wgetch(w);
usr.sbin/pmcstat/pmcstat_log.c
738
wprintw(w, "switching to delta mode");
usr.sbin/pmcstat/pmcstat_log.c
741
wprintw(w, "switching to accumulation mode");
usr.sbin/pmcstat/pmcstat_log.c
763
wprintw(w, "merge PMC %s", pmcstat_mergepmc ? "on" : "off");
usr.sbin/pmcstat/pmcstat_log.c
781
wprintw(w, "switching to plugin %s",
usr.sbin/pmcstat/pmcstat_log.c
789
wprintw(w, "switching to PMC %s.%d",
usr.sbin/pmcstat/pmcstat_log.c
796
wprintw(w, "pause => press space again to continue");
usr.sbin/pmcstat/pmcstat_log.c
799
wprintw(w, "exiting...");
usr.sbin/pmcstat/pmcstat_log.c
804
if (plugins[args.pa_plugin].pl_topkeypress(c, (void *)w))
usr.sbin/pmcstat/pmcstat_log.c
808
wrefresh(w);
usr.sbin/pmcstat/pmcstat_log.c
809
delwin(w);
usr.sbin/ppp/bundle.c
451
bundle_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w, fd_set *e, int *n)
usr.sbin/ppp/bundle.c
493
result += descriptor_UpdateSet(&bundle->radius.desc, r, w, e, n);
usr.sbin/ppp/bundle.c
498
result += descriptor_UpdateSet(&dl->desc, r, w, e, n);
usr.sbin/ppp/bundle.c
505
result += descriptor_UpdateSet(&bundle->ncp.mp.server.desc, r, w, e, n);
usr.sbin/ppp/chap.c
396
chap_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w __unused,
usr.sbin/ppp/chat.c
140
chat_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w, fd_set *e, int *n)
usr.sbin/ppp/chat.c
274
return chat_UpdateSet(d, r, w, e, n);
usr.sbin/ppp/chat.c
309
return chat_UpdateSet(d, r, w, e, n);
usr.sbin/ppp/chat.c
326
return physical_doUpdateSet(&c->physical->desc, NULL, w, e, n, 1);
usr.sbin/ppp/datalink.c
251
datalink_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w, fd_set *e,
usr.sbin/ppp/datalink.c
295
return datalink_UpdateSet(d, r, w, e, n);
usr.sbin/ppp/datalink.c
340
return datalink_UpdateSet(d, r, w, e, n);
usr.sbin/ppp/datalink.c
348
return datalink_UpdateSet(d, r, w, e, n);
usr.sbin/ppp/datalink.c
359
result = descriptor_UpdateSet(&dl->chat.desc, r, w, e, n);
usr.sbin/ppp/datalink.c
369
return datalink_UpdateSet(d, r, w, e, n);
usr.sbin/ppp/datalink.c
375
return datalink_UpdateSet(d, r, w, e, n);
usr.sbin/ppp/datalink.c
379
return datalink_UpdateSet(d, r, w, e, n);
usr.sbin/ppp/datalink.c
396
return datalink_UpdateSet(d, r, w, e, n);
usr.sbin/ppp/datalink.c
407
result = descriptor_UpdateSet(&dl->chap.desc, r, w, e, n) +
usr.sbin/ppp/datalink.c
408
descriptor_UpdateSet(&dl->physical->desc, r, w, e, n);
usr.sbin/ppp/datalink.c
415
datalink_RemoveFromSet(struct datalink *dl, fd_set *r, fd_set *w, fd_set *e)
usr.sbin/ppp/datalink.c
417
return physical_RemoveFromSet(dl->physical, r, w, e);
usr.sbin/ppp/descriptor.h
50
#define descriptor_UpdateSet(d, r, w, e, n) ((*(d)->UpdateSet)(d, r, w, e, n))
usr.sbin/ppp/ether.c
136
ether_RemoveFromSet(struct physical *p, fd_set *r, fd_set *w, fd_set *e)
usr.sbin/ppp/ether.c
151
result += physical_RemoveFromSet(p, r, w, e);
usr.sbin/ppp/ether.c
376
ether_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w, fd_set *e, int *n)
usr.sbin/ppp/ether.c
389
result += physical_doUpdateSet(d, r, w, e, n, 0);
usr.sbin/ppp/exec.c
118
exec_RemoveFromSet(struct physical *p, fd_set *r, fd_set *w, fd_set *e)
usr.sbin/ppp/exec.c
124
sets = physical_RemoveFromSet(p, r, w, e);
usr.sbin/ppp/exec.c
128
if (w && FD_ISSET(dev->fd_out, w)) {
usr.sbin/ppp/exec.c
129
FD_CLR(dev->fd_out, w);
usr.sbin/ppp/exec.c
204
exec_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w, fd_set *e, int *n)
usr.sbin/ppp/exec.c
210
if (w && dev->fd_out >= 0) {
usr.sbin/ppp/exec.c
211
FD_SET(dev->fd_out, w);
usr.sbin/ppp/exec.c
214
w = NULL;
usr.sbin/ppp/exec.c
226
return result + physical_doUpdateSet(d, r, w, e, n, 0);
usr.sbin/ppp/mp.c
1041
mpserver_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w, fd_set *e,
usr.sbin/ppp/mp.c
1053
result -= datalink_RemoveFromSet(s->send.dl, r, w, e);
usr.sbin/ppp/netgraph.c
248
ng_RemoveFromSet(struct physical *p, fd_set *r, fd_set *w, fd_set *e)
usr.sbin/ppp/netgraph.c
263
result += physical_RemoveFromSet(p, r, w, e);
usr.sbin/ppp/netgraph.c
353
ng_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w, fd_set *e, int *n)
usr.sbin/ppp/netgraph.c
371
result = physical_doUpdateSet(d, r, w, e, n, 0);
usr.sbin/ppp/physical.c
139
physical_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w, fd_set *e,
usr.sbin/ppp/physical.c
142
return physical_doUpdateSet(d, r, w, e, n, 0);
usr.sbin/ppp/physical.c
827
physical_doUpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w, fd_set *e,
usr.sbin/ppp/physical.c
845
if (w && (force || link_QueueLen(&p->link) || p->out)) {
usr.sbin/ppp/physical.c
846
FD_SET(p->fd, w);
usr.sbin/ppp/physical.c
858
physical_RemoveFromSet(struct physical *p, fd_set *r, fd_set *w, fd_set *e)
usr.sbin/ppp/physical.c
861
return (*p->handler->removefromset)(p, r, w, e);
usr.sbin/ppp/physical.c
877
if (w && FD_ISSET(p->fd, w)) {
usr.sbin/ppp/physical.c
878
FD_CLR(p->fd, w);
usr.sbin/ppp/prompt.c
132
prompt_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w __unused,
usr.sbin/ppp/radius.c
714
radius_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w __unused,
usr.sbin/ppp/server.c
51
server_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w, fd_set *e, int *n)
usr.sbin/ppp/server.c
67
sets += descriptor_UpdateSet(&p->desc, r, w, e, n);
usr.sbin/rwhod/rwhod.c
712
struct whod *w;
usr.sbin/rwhod/rwhod.c
716
w = (struct whod *)buf;
usr.sbin/rwhod/rwhod.c
720
printf("hostname %s %s\n", w->wd_hostname,
usr.sbin/rwhod/rwhod.c
721
interval(ntohl(w->wd_sendtime) - ntohl(w->wd_boottime), " up"));
usr.sbin/rwhod/rwhod.c
723
ntohl(w->wd_loadav[0]) / 100.0, ntohl(w->wd_loadav[1]) / 100.0,
usr.sbin/rwhod/rwhod.c
724
ntohl(w->wd_loadav[2]) / 100.0);
usr.sbin/rwhod/rwhod.c
726
for (we = w->wd_we, cc /= sizeof(struct whoent); cc > 0; cc--, we++) {
usr.sbin/rwhod/rwhod.c
730
w->wd_hostname, we->we_utmp.out_line, ctime(&t) + 4);
usr.sbin/traceroute/traceroute.c
1720
register u_short *w = addr;
usr.sbin/traceroute/traceroute.c
1731
sum += *w++;
usr.sbin/traceroute/traceroute.c
1737
sum += *(u_char *)w;
usr.sbin/traceroute6/traceroute6.c
1759
u_int16_t *w = addr;
usr.sbin/traceroute6/traceroute6.c
1770
sum += *w++;
usr.sbin/traceroute6/traceroute6.c
1776
sum += *(u_char *)w;
usr.sbin/valectl/valectl.c
121
free(w);
usr.sbin/valectl/valectl.c
127
char *w, *tok;
usr.sbin/valectl/valectl.c
134
w = strdup(conf);
usr.sbin/valectl/valectl.c
135
for (i = 0, tok = strtok(w, ","); tok; i++, tok = strtok(NULL, ",")) {
usr.sbin/valectl/valectl.c
157
free(w);
usr.sbin/valectl/valectl.c
90
char *w, *tok;
usr.sbin/valectl/valectl.c
97
w = strdup(conf);
usr.sbin/valectl/valectl.c
98
for (i = 0, tok = strtok(w, ","); tok; i++, tok = strtok(NULL, ",")) {
usr.sbin/vidcontrol/vidcontrol.c
469
int h, i, size, w;
usr.sbin/vidcontrol/vidcontrol.c
480
int w;
usr.sbin/vidcontrol/vidcontrol.c
514
if (sscanf(type, "%dx%d", &w, &h) == 2) {
usr.sbin/vidcontrol/vidcontrol.c
515
for (i = 0; sizes[i].w != 0; i++) {
usr.sbin/vidcontrol/vidcontrol.c
516
if (sizes[i].w == w && sizes[i].h == h) {
usr.sbin/vidcontrol/vidcontrol.c
542
for (i = 0; sizes[i].w != 0; i++) {
usr.sbin/vidcontrol/vidcontrol.c
55
#define DATASIZE(x) ((x).w * (x).h * 256 / 8)
usr.sbin/ypldap/ldapclient.c
176
if ((n = msgbuf_write(&ibuf->w)) == -1 && errno != EAGAIN)
usr.sbin/ypldap/ldapclient.c
272
if ((n = msgbuf_write(&ibuf->w)) == -1 && errno != EAGAIN)
usr.sbin/ypldap/ypldap.c
370
if ((n = msgbuf_write(&ibuf->w)) == -1 && errno != EAGAIN)
usr.sbin/ypldap/ypldap.c
633
if (iev->ibuf.w.queued)
usr.sbin/ypldap/ypldap_dns.c
149
if ((n = msgbuf_write(&ibuf->w)) == -1 && errno != EAGAIN)