Symbol: q
bin/sh/cd.c
186
char *q;
bin/sh/cd.c
206
while ((q = getcomponent(&path)) != NULL) {
bin/sh/cd.c
207
if (q[0] == '\0' || (q[0] == '.' && q[1] == '\0'))
bin/sh/cd.c
212
component = q;
bin/sh/cd.c
213
STPUTS(q, p);
bin/sh/exec.c
216
char *q;
bin/sh/exec.c
230
STARTSTACKSTR(q);
bin/sh/exec.c
231
CHECKSTRSPACE(len, q);
bin/sh/exec.c
233
memcpy(q, start, p - start);
bin/sh/exec.c
234
q += p - start;
bin/sh/exec.c
235
*q++ = '/';
bin/sh/exec.c
237
memcpy(q, name, namelen + 1);
bin/sh/expand.c
1075
const char *q;
bin/sh/expand.c
1093
q = p + 1;
bin/sh/expand.c
1094
if (*q == '!' || *q == '^')
bin/sh/expand.c
1095
q++;
bin/sh/expand.c
1097
if (*q == CTLESC)
bin/sh/expand.c
1098
q++;
bin/sh/expand.c
1099
if (*q == '/' || *q == '\0')
bin/sh/expand.c
1101
if (*++q == ']') {
bin/sh/expand.c
1269
const char *p, *q, *end;
bin/sh/expand.c
1275
q = string;
bin/sh/expand.c
1281
if (*q != '\0')
bin/sh/expand.c
1285
if (*q++ != *p++)
bin/sh/expand.c
1289
if (*q == '\0')
bin/sh/expand.c
1292
wc = get_wc(&q);
bin/sh/expand.c
1300
q++;
bin/sh/expand.c
1319
bt_q = q;
bin/sh/expand.c
1326
savep = p, saveq = q;
bin/sh/expand.c
1333
if (*q == '\0')
bin/sh/expand.c
1336
chr = get_wc(&q);
bin/sh/expand.c
1340
chr = (unsigned char)*q++;
bin/sh/expand.c
1344
p = savep, q = saveq;
bin/sh/expand.c
1388
if (*q == '\0')
bin/sh/expand.c
1390
if (*q++ == c)
bin/sh/expand.c
1404
q = bt_q;
bin/sh/expand.c
1419
char *p, *q;
bin/sh/expand.c
1426
q = p;
bin/sh/expand.c
1434
*q++ = *p++;
bin/sh/expand.c
1436
*q = '\0';
bin/sh/expand.c
419
char *q, *start;
bin/sh/expand.c
431
q = grabstackstr(expdest);
bin/sh/expand.c
433
ungrabstackstr(q, expdest);
bin/sh/input.c
198
char *p, *q, *r, *end;
bin/sh/input.c
227
q = strchrnul(p, '\n');
bin/sh/input.c
228
if (q != end && *q == '\0') {
bin/sh/input.c
230
for (r = q; q != end; q++) {
bin/sh/input.c
231
if (*q != '\0')
bin/sh/input.c
232
*r++ = *q;
bin/sh/input.c
239
q = strchrnul(p, '\n');
bin/sh/input.c
241
if (q == end) {
bin/sh/input.c
245
q++;
bin/sh/input.c
246
parsenleft = q - parsenextc;
bin/sh/input.c
251
savec = *q;
bin/sh/input.c
252
*q = '\0';
bin/sh/input.c
270
*q = savec;
bin/sh/jobs.c
1516
char *q;
bin/sh/jobs.c
1523
q = cmdnextc;
bin/sh/jobs.c
1526
*q++ = *p++;
bin/sh/jobs.c
1528
*q++ = '$';
bin/sh/jobs.c
1530
*q++ = '{';
bin/sh/jobs.c
1533
*q++ = '#';
bin/sh/jobs.c
1535
*q = "}-+?=##%%\0X"[(subtype & VSTYPE) - VSNORMAL];
bin/sh/jobs.c
1536
if (*q)
bin/sh/jobs.c
1537
q++;
bin/sh/jobs.c
1543
*q = q[-1], q++;
bin/sh/jobs.c
1546
*q++ = '}';
bin/sh/jobs.c
1550
*q++ = '$';
bin/sh/jobs.c
1551
*q++ = '(';
bin/sh/jobs.c
1552
*q++ = '.';
bin/sh/jobs.c
1553
*q++ = '.';
bin/sh/jobs.c
1554
*q++ = '.';
bin/sh/jobs.c
1555
*q++ = ')';
bin/sh/jobs.c
1560
*q++ = '$';
bin/sh/jobs.c
1561
*q++ = '(';
bin/sh/jobs.c
1562
*q++ = '(';
bin/sh/jobs.c
1567
*q++ = ')';
bin/sh/jobs.c
1568
*q++ = ')';
bin/sh/jobs.c
1573
*q++ = c;
bin/sh/jobs.c
1575
*q++ = '.';
bin/sh/jobs.c
1576
*q++ = '.';
bin/sh/jobs.c
1577
*q++ = '.';
bin/sh/jobs.c
1581
cmdnextc = q;
bin/sh/mknodes.c
393
char *p, *q;
bin/sh/mknodes.c
398
q = buf;
bin/sh/mknodes.c
400
*q++ = *p++;
bin/sh/mknodes.c
401
*q = '\0';
bin/sh/mknodes.c
403
return (q > buf);
bin/sh/mystring.c
87
const char *q;
bin/sh/mystring.c
93
for (q = p; *q != '\0'; q++)
bin/sh/mystring.c
94
if (! is_digit(*q))
bin/sh/mystring.c
96
if (q - p > 10 ||
bin/sh/mystring.c
97
(q - p == 10 && memcmp(p, "2147483647", 10) > 0))
bin/sh/options.c
195
char *q;
bin/sh/options.c
197
q = *argptr++;
bin/sh/options.c
198
if (q == NULL || minusc != NULL)
bin/sh/options.c
200
minusc = q;
bin/sh/options.c
468
char *p, *q;
bin/sh/options.c
495
for (q = optstr; *q != c; ) {
bin/sh/options.c
496
if (*q == '\0') {
bin/sh/options.c
507
if (*++q == ':')
bin/sh/options.c
508
q++;
bin/sh/options.c
511
if (*++q == ':') {
bin/sh/options.c
568
const char *q;
bin/sh/options.c
580
for (q = optstring ; *q != c ; ) {
bin/sh/options.c
581
if (*q == '\0')
bin/sh/options.c
583
if (*++q == ':')
bin/sh/options.c
584
q++;
bin/sh/options.c
586
if (*++q == ':') {
bin/sh/parser.c
1002
const char *q;
bin/sh/parser.c
1004
for (q = eofmark + 1; c2 = pgetc(), *q != '\0' && c2 == *q; q++)
bin/sh/parser.c
1006
if ((c2 == PEOF || c2 == '\n') && *q == '\0') {
bin/sh/parser.c
1014
pushstring(eofmark + 1, q - (eofmark + 1), NULL);
bin/sh/pregenerated/nodes.c
344
char *q = state->string;
bin/sh/pregenerated/nodes.c
347
while ((*q++ = *p++) != '\0')
bin/sh/pregenerated/nodes.c
349
state->string = q;
bin/sh/var.c
924
varequal(const char *p, const char *q)
bin/sh/var.c
926
while (*p == *q++) {
bin/sh/var.c
930
if (*p == '=' && *(q - 1) == '\0')
crypto/libressl/apps/openssl/apps.c
2050
const char *p, *q;
crypto/libressl/apps/openssl/apps.c
2065
while ((q = strchr(p, '\n')) != NULL) {
crypto/libressl/apps/openssl/apps.c
2066
fprintf(stderr, " %.*s", (int)(q - p), p);
crypto/libressl/apps/openssl/apps.c
2068
p = q + 1;
crypto/libressl/apps/openssl/certhash.c
235
const char *q, *p = filename;
crypto/libressl/apps/openssl/certhash.c
237
if ((q = strchr(p, '\0')) == NULL)
crypto/libressl/apps/openssl/certhash.c
239
if ((q - p) < 4)
crypto/libressl/apps/openssl/certhash.c
241
if (strncmp((q - 4), ".pem", 4) != 0)
crypto/libressl/apps/openssl/req.c
1217
char *p, *q;
crypto/libressl/apps/openssl/req.c
1245
p = q = NULL;
crypto/libressl/apps/openssl/req.c
1400
char *p, *q;
crypto/libressl/apps/openssl/req.c
1410
p = q = NULL;
crypto/libressl/apps/openssl/testdsa.h
10
const unsigned char *q, size_t q_size,
crypto/libressl/apps/openssl/testdsa.h
220
BIGNUM *p = NULL, *q = NULL, *g = NULL;
crypto/libressl/apps/openssl/testdsa.h
236
q = BN_bin2bn(q_char, q_size, NULL);
crypto/libressl/apps/openssl/testdsa.h
238
if (p == NULL || q == NULL || g == NULL)
crypto/libressl/apps/openssl/testdsa.h
241
if (!DSA_set0_pqg(dsa, p, q, g))
crypto/libressl/apps/openssl/testdsa.h
244
q = NULL;
crypto/libressl/apps/openssl/testdsa.h
254
BN_free(q);
crypto/libressl/crypto/asn1/a_mbstr.c
369
unsigned char **p, *q;
crypto/libressl/crypto/asn1/a_mbstr.c
372
q = *p;
crypto/libressl/crypto/asn1/a_mbstr.c
373
*q = value;
crypto/libressl/crypto/asn1/a_mbstr.c
383
unsigned char **p, *q;
crypto/libressl/crypto/asn1/a_mbstr.c
386
q = *p;
crypto/libressl/crypto/asn1/a_mbstr.c
387
*q++ = (value >> 8) & 0xff;
crypto/libressl/crypto/asn1/a_mbstr.c
388
*q = value & 0xff;
crypto/libressl/crypto/asn1/a_mbstr.c
398
unsigned char **p, *q;
crypto/libressl/crypto/asn1/a_mbstr.c
401
q = *p;
crypto/libressl/crypto/asn1/a_mbstr.c
402
*q++ = (value >> 24) & 0xff;
crypto/libressl/crypto/asn1/a_mbstr.c
403
*q++ = (value >> 16) & 0xff;
crypto/libressl/crypto/asn1/a_mbstr.c
404
*q++ = (value >> 8) & 0xff;
crypto/libressl/crypto/asn1/a_mbstr.c
405
*q = value & 0xff;
crypto/libressl/crypto/asn1/a_strex.c
189
unsigned char orflags, *p, *q;
crypto/libressl/crypto/asn1/a_strex.c
193
q = buf + buflen;
crypto/libressl/crypto/asn1/a_strex.c
195
while (p != q) {
crypto/libressl/crypto/asn1/a_strex.c
222
i = UTF8_getc(p, q - p, &c);
crypto/libressl/crypto/asn1/a_strex.c
230
if (p == q && flags & ASN1_STRFLGS_ESC_2253)
crypto/libressl/crypto/asn1/a_strex.c
269
unsigned char *p, *q;
crypto/libressl/crypto/asn1/a_strex.c
273
q = buf + buflen;
crypto/libressl/crypto/asn1/a_strex.c
274
while (p != q) {
crypto/libressl/crypto/asn1/asn1_item.c
436
const unsigned char *q;
crypto/libressl/crypto/asn1/asn1_item.c
476
q = p;
crypto/libressl/crypto/asn1/asn1_item.c
477
inf = ASN1_get_object(&q, &slen, &tag, &xclass, len - off);
crypto/libressl/crypto/asn1/asn1_item.c
487
i = q - p; /* header length */
crypto/libressl/crypto/asn1/asn_mime.c
670
char *p, *q, c;
crypto/libressl/crypto/asn1/asn_mime.c
689
for (p = linebuf, q = linebuf;
crypto/libressl/crypto/asn1/asn_mime.c
701
ntmp = strip_ends(q);
crypto/libressl/crypto/asn1/asn_mime.c
702
q = p + 1;
crypto/libressl/crypto/asn1/asn_mime.c
711
strip_ends(q));
crypto/libressl/crypto/asn1/asn_mime.c
718
q = p + 1;
crypto/libressl/crypto/asn1/asn_mime.c
736
ntmp = strip_ends(q);
crypto/libressl/crypto/asn1/asn_mime.c
737
q = p + 1;
crypto/libressl/crypto/asn1/asn_mime.c
746
strip_ends(q));
crypto/libressl/crypto/asn1/asn_mime.c
748
q = p + 1;
crypto/libressl/crypto/asn1/asn_mime.c
768
mhdr = mime_hdr_new(ntmp, strip_ends(q));
crypto/libressl/crypto/asn1/asn_mime.c
774
mime_hdr_addparam(mhdr, ntmp, strip_ends(q));
crypto/libressl/crypto/asn1/x_name.c
290
const unsigned char *p = *in, *q;
crypto/libressl/crypto/asn1/x_name.c
302
q = p;
crypto/libressl/crypto/asn1/x_name.c
316
if (!BUF_MEM_grow(nm.x->bytes, p - q))
crypto/libressl/crypto/asn1/x_name.c
318
memcpy(nm.x->bytes->data, q, p - q);
crypto/libressl/crypto/asn1/x_x509.c
321
const unsigned char *q;
crypto/libressl/crypto/asn1/x_x509.c
325
q = *pp;
crypto/libressl/crypto/asn1/x_x509.c
331
length -= *pp - q;
crypto/libressl/crypto/bio/bss_conn.c
128
char *p, *q;
crypto/libressl/crypto/bio/bss_conn.c
151
for (q = p; *q; q++)
crypto/libressl/crypto/bio/bss_conn.c
152
if (*q == '/') {
crypto/libressl/crypto/bio/bss_conn.c
153
*q = '\0';
crypto/libressl/crypto/bn/bn_asm.c
269
BN_ULONG dh, dl, q,ret = 0, th, tl, t;
crypto/libressl/crypto/bn/bn_asm.c
291
q = BN_MASK2l;
crypto/libressl/crypto/bn/bn_asm.c
293
q = h / dh;
crypto/libressl/crypto/bn/bn_asm.c
295
th = q * dh;
crypto/libressl/crypto/bn/bn_asm.c
296
tl = dl * q;
crypto/libressl/crypto/bn/bn_asm.c
304
q--;
crypto/libressl/crypto/bn/bn_asm.c
317
q--;
crypto/libressl/crypto/bn/bn_asm.c
324
ret = q << BN_BITS4;
crypto/libressl/crypto/bn/bn_asm.c
328
ret |= q;
crypto/libressl/crypto/bn/bn_div.c
101
: "=a"(q), "=d"(rem) \
crypto/libressl/crypto/bn/bn_div.c
104
q; \
crypto/libressl/crypto/bn/bn_div.c
255
BN_ULONG q, l0;
crypto/libressl/crypto/bn/bn_div.c
261
q = bn_div_3_words(wnump, d1, d0);
crypto/libressl/crypto/bn/bn_div.c
268
q = BN_MASK2;
crypto/libressl/crypto/bn/bn_div.c
275
q = (BN_ULONG)(((((BN_ULLONG)n0) << BN_BITS2)|n1)/d0);
crypto/libressl/crypto/bn/bn_div.c
277
q = bn_div_words(n0, n1, d0);
crypto/libressl/crypto/bn/bn_div.c
285
rem = (n1 - q * d0) & BN_MASK2;
crypto/libressl/crypto/bn/bn_div.c
287
t2 = (BN_ULLONG)d1*q;
crypto/libressl/crypto/bn/bn_div.c
293
q--;
crypto/libressl/crypto/bn/bn_div.c
301
q = bn_div_words(n0, n1, d0);
crypto/libressl/crypto/bn/bn_div.c
303
rem = (n1 - q*d0)&BN_MASK2;
crypto/libressl/crypto/bn/bn_div.c
307
BN_UMULT_LOHI(t2l, t2h, d1, q);
crypto/libressl/crypto/bn/bn_div.c
309
t2l = d1 * q;
crypto/libressl/crypto/bn/bn_div.c
310
t2h = BN_UMULT_HIGH(d1, q);
crypto/libressl/crypto/bn/bn_div.c
316
ql = LBITS(q);
crypto/libressl/crypto/bn/bn_div.c
317
qh = HBITS(q);
crypto/libressl/crypto/bn/bn_div.c
326
q--;
crypto/libressl/crypto/bn/bn_div.c
338
l0 = bn_mul_words(tmp->d, sdiv->d, div_n, q);
crypto/libressl/crypto/bn/bn_div.c
349
q--;
crypto/libressl/crypto/bn/bn_div.c
357
*resp = q;
crypto/libressl/crypto/bn/bn_div.c
86
: "=a"(q), "=d"(rem) \
crypto/libressl/crypto/bn/bn_div.c
89
q; \
crypto/libressl/crypto/bn/bn_prime.c
499
BIGNUM *t1, *qadd, *q;
crypto/libressl/crypto/bn/bn_prime.c
505
if ((q = BN_CTX_get(ctx)) == NULL)
crypto/libressl/crypto/bn/bn_prime.c
513
if (!BN_rand(q, bits, 0, 1))
crypto/libressl/crypto/bn/bn_prime.c
517
if (!BN_mod_ct(t1, q,qadd, ctx))
crypto/libressl/crypto/bn/bn_prime.c
519
if (!BN_sub(q, q, t1))
crypto/libressl/crypto/bn/bn_prime.c
522
if (!BN_add_word(q, 1))
crypto/libressl/crypto/bn/bn_prime.c
527
if (!BN_add(q, q, t1))
crypto/libressl/crypto/bn/bn_prime.c
532
if (!BN_lshift1(p, q))
crypto/libressl/crypto/bn/bn_prime.c
543
BN_ULONG qmod = BN_mod_word(q, (BN_ULONG)primes[i]);
crypto/libressl/crypto/bn/bn_prime.c
549
if (!BN_add(q, q, qadd))
crypto/libressl/crypto/bn/bn_sqrt.c
115
if ((q = BN_CTX_get(ctx)) == NULL)
crypto/libressl/crypto/bn/bn_sqrt.c
147
if (!BN_rshift(q, p, 2))
crypto/libressl/crypto/bn/bn_sqrt.c
149
q->neg = 0;
crypto/libressl/crypto/bn/bn_sqrt.c
150
if (!BN_add_word(q, 1))
crypto/libressl/crypto/bn/bn_sqrt.c
152
if (!BN_mod_exp_ct(ret, A, q, p, ctx))
crypto/libressl/crypto/bn/bn_sqrt.c
190
if (!BN_rshift(q, p, 3))
crypto/libressl/crypto/bn/bn_sqrt.c
192
q->neg = 0;
crypto/libressl/crypto/bn/bn_sqrt.c
193
if (!BN_mod_exp_ct(b, t, q, p, ctx))
crypto/libressl/crypto/bn/bn_sqrt.c
220
if (!BN_copy(q, p)) /* use 'q' as temp */
crypto/libressl/crypto/bn/bn_sqrt.c
222
q->neg = 0;
crypto/libressl/crypto/bn/bn_sqrt.c
249
r = BN_kronecker(y, q, ctx); /* here 'q' is |p| */
crypto/libressl/crypto/bn/bn_sqrt.c
270
if (!BN_rshift(q, q, e))
crypto/libressl/crypto/bn/bn_sqrt.c
275
if (!BN_mod_exp_ct(y, y, q, p, ctx))
crypto/libressl/crypto/bn/bn_sqrt.c
301
if (!BN_rshift1(t, q))
crypto/libressl/crypto/bn/bn_sqrt.c
74
BIGNUM *A, *b, *q, *t, *x, *y;
crypto/libressl/crypto/buffer/buffer.c
142
unsigned char *q;
crypto/libressl/crypto/buffer/buffer.c
144
q = out + size - 1;
crypto/libressl/crypto/buffer/buffer.c
146
c = *q;
crypto/libressl/crypto/buffer/buffer.c
147
*q-- = *out;
crypto/libressl/crypto/conf/conf_def.c
458
int q, r,rr = 0, to = 0, len = 0;
crypto/libressl/crypto/conf/conf_def.c
472
q = *from;
crypto/libressl/crypto/conf/conf_def.c
474
while (!IS_EOF(conf, *from) && (*from != q)) {
crypto/libressl/crypto/conf/conf_def.c
482
if (*from == q)
crypto/libressl/crypto/conf/conf_def.c
485
q = *from;
crypto/libressl/crypto/conf/conf_def.c
488
if (*from == q) {
crypto/libressl/crypto/conf/conf_def.c
489
if (*(from + 1) == q) {
crypto/libressl/crypto/conf/conf_def.c
497
if (*from == q)
crypto/libressl/crypto/conf/conf_def.c
520
q = '}';
crypto/libressl/crypto/conf/conf_def.c
522
q = ')';
crypto/libressl/crypto/conf/conf_def.c
524
q = 0;
crypto/libressl/crypto/conf/conf_def.c
526
if (q)
crypto/libressl/crypto/conf/conf_def.c
545
if (q) {
crypto/libressl/crypto/conf/conf_def.c
546
if (r != q) {
crypto/libressl/crypto/conf/conf_def.c
631
int q = *p;
crypto/libressl/crypto/conf/conf_def.c
634
while (!(IS_EOF(conf, *p)) && (*p != q)) {
crypto/libressl/crypto/conf/conf_def.c
642
if (*p == q)
crypto/libressl/crypto/conf/conf_def.c
651
int q = *p;
crypto/libressl/crypto/conf/conf_def.c
655
if (*p == q) {
crypto/libressl/crypto/conf/conf_def.c
656
if (*(p + 1) == q) {
crypto/libressl/crypto/conf/conf_def.c
664
if (*p == q)
crypto/libressl/crypto/curve25519/curve25519.c
1128
ge_p2 q;
crypto/libressl/crypto/curve25519/curve25519.c
1129
ge_p3_to_p2(&q, p);
crypto/libressl/crypto/curve25519/curve25519.c
1130
ge_p2_dbl(r, &q);
crypto/libressl/crypto/curve25519/curve25519.c
1134
static void ge_madd(ge_p1p1 *r, const ge_p3 *p, const ge_precomp *q) {
crypto/libressl/crypto/curve25519/curve25519.c
1139
fe_mul(r->Z, r->X, q->yplusx);
crypto/libressl/crypto/curve25519/curve25519.c
1140
fe_mul(r->Y, r->Y, q->yminusx);
crypto/libressl/crypto/curve25519/curve25519.c
1141
fe_mul(r->T, q->xy2d, p->T);
crypto/libressl/crypto/curve25519/curve25519.c
1151
static void ge_msub(ge_p1p1 *r, const ge_p3 *p, const ge_precomp *q) {
crypto/libressl/crypto/curve25519/curve25519.c
1156
fe_mul(r->Z, r->X, q->yminusx);
crypto/libressl/crypto/curve25519/curve25519.c
1157
fe_mul(r->Y, r->Y, q->yplusx);
crypto/libressl/crypto/curve25519/curve25519.c
1158
fe_mul(r->T, q->xy2d, p->T);
crypto/libressl/crypto/curve25519/curve25519.c
1168
void x25519_ge_add(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q) {
crypto/libressl/crypto/curve25519/curve25519.c
1173
fe_mul(r->Z, r->X, q->YplusX);
crypto/libressl/crypto/curve25519/curve25519.c
1174
fe_mul(r->Y, r->Y, q->YminusX);
crypto/libressl/crypto/curve25519/curve25519.c
1175
fe_mul(r->T, q->T2d, p->T);
crypto/libressl/crypto/curve25519/curve25519.c
1176
fe_mul(r->X, p->Z, q->Z);
crypto/libressl/crypto/curve25519/curve25519.c
1185
void x25519_ge_sub(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q) {
crypto/libressl/crypto/curve25519/curve25519.c
1190
fe_mul(r->Z, r->X, q->YminusX);
crypto/libressl/crypto/curve25519/curve25519.c
1191
fe_mul(r->Y, r->Y, q->YplusX);
crypto/libressl/crypto/curve25519/curve25519.c
1192
fe_mul(r->T, q->T2d, p->T);
crypto/libressl/crypto/curve25519/curve25519.c
1193
fe_mul(r->X, p->Z, q->Z);
crypto/libressl/crypto/curve25519/curve25519.c
140
int32_t q;
crypto/libressl/crypto/curve25519/curve25519.c
142
q = (19 * h9 + (((int32_t) 1) << 24)) >> 25;
crypto/libressl/crypto/curve25519/curve25519.c
143
q = (h0 + q) >> 26;
crypto/libressl/crypto/curve25519/curve25519.c
144
q = (h1 + q) >> 25;
crypto/libressl/crypto/curve25519/curve25519.c
145
q = (h2 + q) >> 26;
crypto/libressl/crypto/curve25519/curve25519.c
146
q = (h3 + q) >> 25;
crypto/libressl/crypto/curve25519/curve25519.c
147
q = (h4 + q) >> 26;
crypto/libressl/crypto/curve25519/curve25519.c
148
q = (h5 + q) >> 25;
crypto/libressl/crypto/curve25519/curve25519.c
149
q = (h6 + q) >> 26;
crypto/libressl/crypto/curve25519/curve25519.c
150
q = (h7 + q) >> 25;
crypto/libressl/crypto/curve25519/curve25519.c
151
q = (h8 + q) >> 26;
crypto/libressl/crypto/curve25519/curve25519.c
152
q = (h9 + q) >> 25;
crypto/libressl/crypto/curve25519/curve25519.c
155
h0 += 19 * q;
crypto/libressl/crypto/curve25519/curve25519_internal.h
81
void x25519_ge_add(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q);
crypto/libressl/crypto/curve25519/curve25519_internal.h
82
void x25519_ge_sub(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q);
crypto/libressl/crypto/dh/dh_check.c
173
if (dh->q != NULL) {
crypto/libressl/crypto/dh/dh_check.c
182
if (!BN_mod_exp_ct(residue, dh->g, dh->q, dh->p, ctx))
crypto/libressl/crypto/dh/dh_check.c
187
is_prime = BN_is_prime_ex(dh->q, DH_NUMBER_ITERATIONS_FOR_PRIME,
crypto/libressl/crypto/dh/dh_check.c
194
if (!BN_div_ct(quotient, residue, dh->p, dh->q, ctx))
crypto/libressl/crypto/dh/dh_check.c
208
else if (dh->q == NULL) {
crypto/libressl/crypto/dh/dh_check.c
209
BIGNUM *q;
crypto/libressl/crypto/dh/dh_check.c
211
if ((q = BN_CTX_get(ctx)) == NULL)
crypto/libressl/crypto/dh/dh_check.c
213
if (!BN_rshift1(q, dh->p))
crypto/libressl/crypto/dh/dh_check.c
215
is_prime = BN_is_prime_ex(q, DH_NUMBER_ITERATIONS_FOR_PRIME,
crypto/libressl/crypto/dh/dh_check.c
282
if (dh->q != NULL) {
crypto/libressl/crypto/dh/dh_check.c
288
if (!BN_mod_exp_ct(residue, pub_key, dh->q, dh->p, ctx))
crypto/libressl/crypto/dh/dh_key.c
138
if (dh->q) {
crypto/libressl/crypto/dh/dh_key.c
143
if (!bn_rand_interval(priv_key, two, dh->q))
crypto/libressl/crypto/dh/dh_lib.c
158
ret->q = NULL;
crypto/libressl/crypto/dh/dh_lib.c
199
BN_clear_free(r->q);
crypto/libressl/crypto/dh/dh_lib.c
253
if (dh->q != NULL)
crypto/libressl/crypto/dh/dh_lib.c
254
N = BN_num_bits(dh->q);
crypto/libressl/crypto/dh/dh_lib.c
268
DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g)
crypto/libressl/crypto/dh/dh_lib.c
272
if (q != NULL)
crypto/libressl/crypto/dh/dh_lib.c
273
*q = dh->q;
crypto/libressl/crypto/dh/dh_lib.c
279
DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g)
crypto/libressl/crypto/dh/dh_lib.c
288
if (q != NULL) {
crypto/libressl/crypto/dh/dh_lib.c
289
BN_free(dh->q);
crypto/libressl/crypto/dh/dh_lib.c
290
dh->q = q;
crypto/libressl/crypto/dh/dh_lib.c
291
dh->length = BN_num_bits(dh->q);
crypto/libressl/crypto/dh/dh_lib.c
334
return dh->q;
crypto/libressl/crypto/dh/dh_local.h
94
BIGNUM *q;
crypto/libressl/crypto/dsa/dsa_ameth.c
143
if (pkey->save_parameters && dsa->p && dsa->q && dsa->g) {
crypto/libressl/crypto/dsa/dsa_ameth.c
320
if (dsa->p == NULL || dsa->q == NULL || dsa->g == NULL)
crypto/libressl/crypto/dsa/dsa_ameth.c
335
if ((a = BN_dup(from->pkey.dsa->q)) == NULL)
crypto/libressl/crypto/dsa/dsa_ameth.c
337
BN_free(to->pkey.dsa->q);
crypto/libressl/crypto/dsa/dsa_ameth.c
338
to->pkey.dsa->q = a;
crypto/libressl/crypto/dsa/dsa_ameth.c
351
BN_cmp(a->pkey.dsa->q, b->pkey.dsa->q) ||
crypto/libressl/crypto/dsa/dsa_ameth.c
411
update_buflen(x->q, &buf_len);
crypto/libressl/crypto/dsa/dsa_ameth.c
436
if (!ASN1_bn_print(bp, "Q: ", x->q, m, off))
crypto/libressl/crypto/dsa/dsa_ameth.c
497
qbits = BN_num_bits(dsa->q);
crypto/libressl/crypto/dsa/dsa_ameth.c
532
if (BN_div_ct(j, NULL, p1, dsa->q, ctx) == 0)
crypto/libressl/crypto/dsa/dsa_ameth.c
535
if (BN_mul(newp1, dsa->q, j, ctx) == 0)
crypto/libressl/crypto/dsa/dsa_ameth.c
548
if (!BN_mod_exp_ct(powg, dsa->g, dsa->q, dsa->p, ctx))
crypto/libressl/crypto/dsa/dsa_ameth.c
559
if (BN_is_prime_ex(dsa->q, BN_prime_checks, ctx, NULL) <= 0) {
crypto/libressl/crypto/dsa/dsa_asn1.c
201
.offset = offsetof(DSA, q),
crypto/libressl/crypto/dsa/dsa_asn1.c
271
.offset = offsetof(DSA, q),
crypto/libressl/crypto/dsa/dsa_asn1.c
358
.offset = offsetof(DSA, q),
crypto/libressl/crypto/dsa/dsa_gen.c
108
BIGNUM *g = NULL, *q = NULL, *p = NULL;
crypto/libressl/crypto/dsa/dsa_gen.c
158
if ((q = BN_CTX_get(ctx)) == NULL)
crypto/libressl/crypto/dsa/dsa_gen.c
209
if (!BN_bin2bn(md, qsize, q))
crypto/libressl/crypto/dsa/dsa_gen.c
213
r = BN_is_prime_fasttest_ex(q, DSS_prime_checks, ctx,
crypto/libressl/crypto/dsa/dsa_gen.c
272
if (!BN_lshift1(r0, q))
crypto/libressl/crypto/dsa/dsa_gen.c
309
if (!BN_div_ct(r0, NULL, test, q, ctx))
crypto/libressl/crypto/dsa/dsa_gen.c
335
BN_free(ret->q);
crypto/libressl/crypto/dsa/dsa_gen.c
338
ret->q = BN_dup(q);
crypto/libressl/crypto/dsa/dsa_gen.c
340
if (ret->p == NULL || ret->q == NULL || ret->g == NULL) {
crypto/libressl/crypto/dsa/dsa_key.c
97
if (!bn_rand_interval(priv_key, BN_value_one(), dsa->q))
crypto/libressl/crypto/dsa/dsa_lib.c
158
ret->q = NULL;
crypto/libressl/crypto/dsa/dsa_lib.c
204
BN_clear_free(r->q);
crypto/libressl/crypto/dsa/dsa_lib.c
226
signature.r = r->q;
crypto/libressl/crypto/dsa/dsa_lib.c
227
signature.s = r->q;
crypto/libressl/crypto/dsa/dsa_lib.c
258
if (d->p == NULL || d->q == NULL)
crypto/libressl/crypto/dsa/dsa_lib.c
261
return BN_security_bits(BN_num_bits(d->p), BN_num_bits(d->q));
crypto/libressl/crypto/dsa/dsa_lib.c
283
if (r->q != NULL) {
crypto/libressl/crypto/dsa/dsa_lib.c
284
ret->length = BN_num_bits(r->q);
crypto/libressl/crypto/dsa/dsa_lib.c
285
if ((ret->q = BN_dup(r->q)) == NULL)
crypto/libressl/crypto/dsa/dsa_lib.c
307
DSA_get0_pqg(const DSA *d, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g)
crypto/libressl/crypto/dsa/dsa_lib.c
311
if (q != NULL)
crypto/libressl/crypto/dsa/dsa_lib.c
312
*q = d->q;
crypto/libressl/crypto/dsa/dsa_lib.c
318
DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g)
crypto/libressl/crypto/dsa/dsa_lib.c
320
if ((d->p == NULL && p == NULL) || (d->q == NULL && q == NULL) ||
crypto/libressl/crypto/dsa/dsa_lib.c
328
if (q != NULL) {
crypto/libressl/crypto/dsa/dsa_lib.c
329
BN_free(d->q);
crypto/libressl/crypto/dsa/dsa_lib.c
330
d->q = q;
crypto/libressl/crypto/dsa/dsa_lib.c
376
return d->q;
crypto/libressl/crypto/dsa/dsa_locl.h
94
BIGNUM *q; /* == 20 */
crypto/libressl/crypto/dsa/dsa_ossl.c
110
if (!dsa->p || !dsa->q || !dsa->g) {
crypto/libressl/crypto/dsa/dsa_ossl.c
127
if (dlen > BN_num_bytes(dsa->q))
crypto/libressl/crypto/dsa/dsa_ossl.c
128
dlen = BN_num_bytes(dsa->q);
crypto/libressl/crypto/dsa/dsa_ossl.c
156
if (!bn_rand_interval(&b, BN_value_one(), dsa->q))
crypto/libressl/crypto/dsa/dsa_ossl.c
158
if (BN_mod_inverse_ct(&binv, &b, dsa->q, ctx) == NULL)
crypto/libressl/crypto/dsa/dsa_ossl.c
161
if (!BN_mod_mul(&bxr, &b, dsa->priv_key, dsa->q, ctx)) /* bx */
crypto/libressl/crypto/dsa/dsa_ossl.c
163
if (!BN_mod_mul(&bxr, &bxr, r, dsa->q, ctx)) /* bxr */
crypto/libressl/crypto/dsa/dsa_ossl.c
165
if (!BN_mod_mul(&bm, &b, &m, dsa->q, ctx)) /* bm */
crypto/libressl/crypto/dsa/dsa_ossl.c
167
if (!BN_mod_add(s, &bxr, &bm, dsa->q, ctx)) /* s = bm + bxr */
crypto/libressl/crypto/dsa/dsa_ossl.c
169
if (!BN_mod_mul(s, s, kinv, dsa->q, ctx)) /* s = b(m + xr)k^-1 */
crypto/libressl/crypto/dsa/dsa_ossl.c
171
if (!BN_mod_mul(s, s, &binv, dsa->q, ctx)) /* s = (m + xr)k^-1 */
crypto/libressl/crypto/dsa/dsa_ossl.c
217
if (!dsa->p || !dsa->q || !dsa->g) {
crypto/libressl/crypto/dsa/dsa_ossl.c
236
q_bits = BN_num_bits(dsa->q);
crypto/libressl/crypto/dsa/dsa_ossl.c
242
if (!bn_rand_interval(&k, BN_value_one(), dsa->q))
crypto/libressl/crypto/dsa/dsa_ossl.c
268
if (!BN_add(&l, &k, dsa->q) ||
crypto/libressl/crypto/dsa/dsa_ossl.c
269
!BN_add(&m, &l, dsa->q) ||
crypto/libressl/crypto/dsa/dsa_ossl.c
283
if (!BN_mod_ct(r, r, dsa->q, ctx))
crypto/libressl/crypto/dsa/dsa_ossl.c
287
if ((kinv = BN_mod_inverse_ct(NULL, &k, dsa->q, ctx)) == NULL)
crypto/libressl/crypto/dsa/dsa_ossl.c
321
if (!dsa->p || !dsa->q || !dsa->g) {
crypto/libressl/crypto/dsa/dsa_ossl.c
327
qbits = BN_num_bits(dsa->q);
crypto/libressl/crypto/dsa/dsa_ossl.c
345
BN_ucmp(sig->r, dsa->q) >= 0) {
crypto/libressl/crypto/dsa/dsa_ossl.c
350
BN_ucmp(sig->s, dsa->q) >= 0) {
crypto/libressl/crypto/dsa/dsa_ossl.c
356
if ((BN_mod_inverse_ct(&u2, sig->s, dsa->q, ctx)) == NULL)
crypto/libressl/crypto/dsa/dsa_ossl.c
371
if (!BN_mod_mul(&u1, &u1, &u2, dsa->q, ctx))
crypto/libressl/crypto/dsa/dsa_ossl.c
375
if (!BN_mod_mul(&u2, sig->r, &u2, dsa->q, ctx))
crypto/libressl/crypto/dsa/dsa_ossl.c
397
if (!BN_mod_ct(&u1, &t1, dsa->q, ctx))
crypto/libressl/crypto/ec/ec_lib.c
274
BIGNUM *q = NULL;
crypto/libressl/crypto/ec/ec_lib.c
291
if ((q = BN_CTX_get(ctx)) == NULL)
crypto/libressl/crypto/ec/ec_lib.c
296
BN_zero(q);
crypto/libressl/crypto/ec/ec_lib.c
297
if (!BN_set_bit(q, BN_num_bits(&group->field) - 1))
crypto/libressl/crypto/ec/ec_lib.c
300
if (!BN_copy(q, &group->field))
crypto/libressl/crypto/ec/ec_lib.c
316
if (!BN_add(&group->cofactor, &group->cofactor, q))
crypto/libressl/crypto/evp/bio_b64.c
156
unsigned char *p, *q;
crypto/libressl/crypto/evp/bio_b64.c
230
q = p =(unsigned char *)ctx->tmp;
crypto/libressl/crypto/evp/bio_b64.c
233
if (*(q++) != '\n')
crypto/libressl/crypto/evp/bio_b64.c
241
p = q;
crypto/libressl/crypto/evp/bio_b64.c
248
&num, p, q - p);
crypto/libressl/crypto/evp/bio_b64.c
263
p = q;
crypto/libressl/crypto/evp/bio_b64.c
277
else if (p != q) /* finished on a '\n' */
crypto/libressl/crypto/evp/bio_b64.c
279
n = q - p;
crypto/libressl/crypto/idea/i_skey.c
130
long n1,n2,q,r,b1,b2,t;
crypto/libressl/crypto/idea/i_skey.c
143
q=(n1-r)/n2;
crypto/libressl/crypto/idea/i_skey.c
151
b2=b1-q*b2;
crypto/libressl/crypto/ocsp/ocsp_ht.c
204
char *p, *q, *r;
crypto/libressl/crypto/ocsp/ocsp_ht.c
223
for (q = p; *q && !isspace((unsigned char)*q); q++)
crypto/libressl/crypto/ocsp/ocsp_ht.c
225
if (!*q) {
crypto/libressl/crypto/ocsp/ocsp_ht.c
231
*q++ = 0;
crypto/libressl/crypto/ocsp/ocsp_ht.c
240
while (*q && isspace((unsigned char)*q))
crypto/libressl/crypto/ocsp/ocsp_ht.c
241
q++;
crypto/libressl/crypto/ocsp/ocsp_ht.c
242
if (*q) {
crypto/libressl/crypto/ocsp/ocsp_ht.c
247
for (r = q + strlen(q) - 1; isspace((unsigned char)*r); r--)
crypto/libressl/crypto/ocsp/ocsp_ht.c
252
if (!*q)
crypto/libressl/crypto/ocsp/ocsp_ht.c
255
ERR_asprintf_error_data("Code=%s,Reason=%s", p, q);
crypto/libressl/crypto/pem/pvkfmt.c
107
unsigned char *tmpbuf, *q;
crypto/libressl/crypto/pem/pvkfmt.c
114
q = tmpbuf;
crypto/libressl/crypto/pem/pvkfmt.c
116
*q++ = *p--;
crypto/libressl/crypto/pem/pvkfmt.c
329
if (!read_lebn(&p, 20, &dsa->q))
crypto/libressl/crypto/pem/pvkfmt.c
388
if (!read_lebn(&p, hnbyte, &rsa->q))
crypto/libressl/crypto/pem/pvkfmt.c
452
unsigned char *p = *out, *q, c;
crypto/libressl/crypto/pem/pvkfmt.c
456
q = p + nb - 1;
crypto/libressl/crypto/pem/pvkfmt.c
460
*p++ = *q;
crypto/libressl/crypto/pem/pvkfmt.c
461
*q-- = c;
crypto/libressl/crypto/pem/pvkfmt.c
552
if ((bitlen & 7) || (BN_num_bits(dsa->q) != 160) ||
crypto/libressl/crypto/pem/pvkfmt.c
594
(BN_num_bytes(rsa->q) > hnbyte) ||
crypto/libressl/crypto/pem/pvkfmt.c
618
write_lebn(out, rsa->q, hnbyte);
crypto/libressl/crypto/pem/pvkfmt.c
632
write_lebn(out, dsa->q, 20);
crypto/libressl/crypto/pem/pvkfmt.c
728
unsigned char *enctmp = NULL, *q;
crypto/libressl/crypto/pem/pvkfmt.c
766
q = enctmp + 8;
crypto/libressl/crypto/pem/pvkfmt.c
769
if (!EVP_DecryptUpdate(cctx, q, &enctmplen, p, inlen))
crypto/libressl/crypto/pem/pvkfmt.c
771
if (!EVP_DecryptFinal_ex(cctx, q + enctmplen, &enctmplen))
crypto/libressl/crypto/pem/pvkfmt.c
773
magic = read_ledword((const unsigned char **)&q);
crypto/libressl/crypto/pem/pvkfmt.c
775
q = enctmp + 8;
crypto/libressl/crypto/pem/pvkfmt.c
781
if (!EVP_DecryptUpdate(cctx, q, &enctmplen, p, inlen))
crypto/libressl/crypto/pem/pvkfmt.c
783
if (!EVP_DecryptFinal_ex(cctx, q + enctmplen,
crypto/libressl/crypto/pem/pvkfmt.c
786
magic = read_ledword((const unsigned char **)&q);
crypto/libressl/crypto/rsa/rsa_ameth.c
437
update_buflen(x->q, &buf_len);
crypto/libressl/crypto/rsa/rsa_ameth.c
478
if (!ASN1_bn_print(bp, "prime2:", x->q, m, off))
crypto/libressl/crypto/rsa/rsa_asn1.c
132
.offset = offsetof(RSA, q),
crypto/libressl/crypto/rsa/rsa_chk.c
103
r = BN_is_prime_ex(key->q, BN_prime_checks, NULL, NULL);
crypto/libressl/crypto/rsa/rsa_chk.c
112
r = BN_mul(i, key->p, key->q, ctx);
crypto/libressl/crypto/rsa/rsa_chk.c
130
r = BN_sub(j, key->q, BN_value_one());
crypto/libressl/crypto/rsa/rsa_chk.c
184
r = BN_sub(i, key->q, BN_value_one());
crypto/libressl/crypto/rsa/rsa_chk.c
202
if (BN_mod_inverse_ct(i, key->q, key->p, ctx) == NULL) {
crypto/libressl/crypto/rsa/rsa_chk.c
66
if (!key->p || !key->q || !key->n || !key->e || !key->d) {
crypto/libressl/crypto/rsa/rsa_crpt.c
149
rsa_get_public_exp(const BIGNUM *d, const BIGNUM *p, const BIGNUM *q,
crypto/libressl/crypto/rsa/rsa_crpt.c
154
if (d == NULL || p == NULL || q == NULL)
crypto/libressl/crypto/rsa/rsa_crpt.c
167
if (!BN_sub(r2, q, BN_value_one()))
crypto/libressl/crypto/rsa/rsa_crpt.c
195
e = rsa_get_public_exp(rsa->d, rsa->p, rsa->q, ctx);
crypto/libressl/crypto/rsa/rsa_eay.c
424
(rsa->p != NULL && rsa->q != NULL && rsa->dmp1 != NULL &&
crypto/libressl/crypto/rsa/rsa_eay.c
543
(rsa->p != NULL && rsa->q != NULL && rsa->dmp1 != NULL &&
crypto/libressl/crypto/rsa/rsa_eay.c
716
BIGNUM p, q;
crypto/libressl/crypto/rsa/rsa_eay.c
723
BN_init(&q);
crypto/libressl/crypto/rsa/rsa_eay.c
725
BN_with_flags(&q, rsa->q, BN_FLG_CONSTTIME);
crypto/libressl/crypto/rsa/rsa_eay.c
731
CRYPTO_LOCK_RSA, &q, ctx)) {
crypto/libressl/crypto/rsa/rsa_eay.c
746
if (!BN_mod_ct(r1, &c, rsa->q, ctx))
crypto/libressl/crypto/rsa/rsa_eay.c
753
if (!rsa->meth->bn_mod_exp(m1, r1, &dmq1, rsa->q, ctx,
crypto/libressl/crypto/rsa/rsa_eay.c
804
if (!BN_mul(r1, r0, rsa->q, ctx))
crypto/libressl/crypto/rsa/rsa_gen.c
125
if (!rsa->q && ((rsa->q = BN_new()) == NULL))
crypto/libressl/crypto/rsa/rsa_gen.c
159
if (!BN_generate_prime_ex(rsa->q, bitsq, 0, NULL, NULL,
crypto/libressl/crypto/rsa/rsa_gen.c
162
} while (BN_cmp(rsa->p, rsa->q) == 0 &&
crypto/libressl/crypto/rsa/rsa_gen.c
169
if (!BN_sub(r2, rsa->q, BN_value_one()))
crypto/libressl/crypto/rsa/rsa_gen.c
180
if (BN_cmp(rsa->p, rsa->q) < 0) {
crypto/libressl/crypto/rsa/rsa_gen.c
182
rsa->p = rsa->q;
crypto/libressl/crypto/rsa/rsa_gen.c
183
rsa->q = tmp;
crypto/libressl/crypto/rsa/rsa_gen.c
187
if (!BN_mul(rsa->n, rsa->p, rsa->q, ctx))
crypto/libressl/crypto/rsa/rsa_gen.c
193
if (!BN_sub(r2, rsa->q, BN_value_one())) /* q-1 */
crypto/libressl/crypto/rsa/rsa_gen.c
219
if (BN_mod_inverse_ct(rsa->iqmp, rsa->q, &p, ctx) == NULL)
crypto/libressl/crypto/rsa/rsa_lib.c
207
BN_clear_free(r->q);
crypto/libressl/crypto/rsa/rsa_lib.c
320
RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q)
crypto/libressl/crypto/rsa/rsa_lib.c
324
if (q != NULL)
crypto/libressl/crypto/rsa/rsa_lib.c
325
*q = r->q;
crypto/libressl/crypto/rsa/rsa_lib.c
329
RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q)
crypto/libressl/crypto/rsa/rsa_lib.c
331
if ((r->p == NULL && p == NULL) || (r->q == NULL && q == NULL))
crypto/libressl/crypto/rsa/rsa_lib.c
338
if (q != NULL) {
crypto/libressl/crypto/rsa/rsa_lib.c
339
BN_free(r->q);
crypto/libressl/crypto/rsa/rsa_lib.c
340
r->q = q;
crypto/libressl/crypto/rsa/rsa_lib.c
373
return r->q;
crypto/libressl/crypto/rsa/rsa_locl.h
61
BIGNUM *q;
crypto/libressl/crypto/whrlpool/wp_block.c
124
# define C0(K,i) (Cx.q[K.c[(i)*8+0]])
crypto/libressl/crypto/whrlpool/wp_block.c
125
# define C1(K,i) ROTATE(Cx.q[K.c[(i)*8+1]],8)
crypto/libressl/crypto/whrlpool/wp_block.c
126
# define C2(K,i) ROTATE(Cx.q[K.c[(i)*8+2]],16)
crypto/libressl/crypto/whrlpool/wp_block.c
127
# define C3(K,i) ROTATE(Cx.q[K.c[(i)*8+3]],24)
crypto/libressl/crypto/whrlpool/wp_block.c
128
# define C4(K,i) ROTATE(Cx.q[K.c[(i)*8+4]],32)
crypto/libressl/crypto/whrlpool/wp_block.c
129
# define C5(K,i) ROTATE(Cx.q[K.c[(i)*8+5]],40)
crypto/libressl/crypto/whrlpool/wp_block.c
130
# define C6(K,i) ROTATE(Cx.q[K.c[(i)*8+6]],48)
crypto/libressl/crypto/whrlpool/wp_block.c
131
# define C7(K,i) ROTATE(Cx.q[K.c[(i)*8+7]],56)
crypto/libressl/crypto/whrlpool/wp_block.c
142
# define C0(K,i) (Cx.q[0+8*K.c[(i)*8+0]])
crypto/libressl/crypto/whrlpool/wp_block.c
143
# define C1(K,i) (Cx.q[1+8*K.c[(i)*8+1]])
crypto/libressl/crypto/whrlpool/wp_block.c
144
# define C2(K,i) (Cx.q[2+8*K.c[(i)*8+2]])
crypto/libressl/crypto/whrlpool/wp_block.c
145
# define C3(K,i) (Cx.q[3+8*K.c[(i)*8+3]])
crypto/libressl/crypto/whrlpool/wp_block.c
146
# define C4(K,i) (Cx.q[4+8*K.c[(i)*8+4]])
crypto/libressl/crypto/whrlpool/wp_block.c
147
# define C5(K,i) (Cx.q[5+8*K.c[(i)*8+5]])
crypto/libressl/crypto/whrlpool/wp_block.c
148
# define C6(K,i) (Cx.q[6+8*K.c[(i)*8+6]])
crypto/libressl/crypto/whrlpool/wp_block.c
149
# define C7(K,i) (Cx.q[7+8*K.c[(i)*8+7]])
crypto/libressl/crypto/whrlpool/wp_block.c
168
u64 q[(256*N+ROUNDS)];
crypto/libressl/crypto/whrlpool/wp_block.c
427
#define RC (&(Cx.q[256*N]))
crypto/libressl/crypto/whrlpool/wp_block.c
445
union { u64 q[8]; u8 c[64]; } S,K,*H=(void *)ctx->H.q;
crypto/libressl/crypto/whrlpool/wp_block.c
466
memcpy (K.q,L,64);
crypto/libressl/crypto/whrlpool/wp_block.c
474
memcpy (S.q,L,64);
crypto/libressl/crypto/whrlpool/wp_block.c
484
S.q[0] ^= (K.q[0] = H->q[0]);
crypto/libressl/crypto/whrlpool/wp_block.c
485
S.q[1] ^= (K.q[1] = H->q[1]);
crypto/libressl/crypto/whrlpool/wp_block.c
486
S.q[2] ^= (K.q[2] = H->q[2]);
crypto/libressl/crypto/whrlpool/wp_block.c
487
S.q[3] ^= (K.q[3] = H->q[3]);
crypto/libressl/crypto/whrlpool/wp_block.c
488
S.q[4] ^= (K.q[4] = H->q[4]);
crypto/libressl/crypto/whrlpool/wp_block.c
489
S.q[5] ^= (K.q[5] = H->q[5]);
crypto/libressl/crypto/whrlpool/wp_block.c
490
S.q[6] ^= (K.q[6] = H->q[6]);
crypto/libressl/crypto/whrlpool/wp_block.c
491
S.q[7] ^= (K.q[7] = H->q[7]);
crypto/libressl/crypto/whrlpool/wp_block.c
497
S.q[0] = (K.q[0] = H->q[0]) ^ pa[0];
crypto/libressl/crypto/whrlpool/wp_block.c
498
S.q[1] = (K.q[1] = H->q[1]) ^ pa[1];
crypto/libressl/crypto/whrlpool/wp_block.c
499
S.q[2] = (K.q[2] = H->q[2]) ^ pa[2];
crypto/libressl/crypto/whrlpool/wp_block.c
500
S.q[3] = (K.q[3] = H->q[3]) ^ pa[3];
crypto/libressl/crypto/whrlpool/wp_block.c
501
S.q[4] = (K.q[4] = H->q[4]) ^ pa[4];
crypto/libressl/crypto/whrlpool/wp_block.c
502
S.q[5] = (K.q[5] = H->q[5]) ^ pa[5];
crypto/libressl/crypto/whrlpool/wp_block.c
503
S.q[6] = (K.q[6] = H->q[6]) ^ pa[6];
crypto/libressl/crypto/whrlpool/wp_block.c
504
S.q[7] = (K.q[7] = H->q[7]) ^ pa[7];
crypto/libressl/crypto/whrlpool/wp_block.c
527
K.q[0] = L0; K.q[1] = L1; K.q[2] = L2; K.q[3] = L3;
crypto/libressl/crypto/whrlpool/wp_block.c
528
K.q[4] = L4; K.q[5] = L5; K.q[6] = L6; K.q[7] = L7;
crypto/libressl/crypto/whrlpool/wp_block.c
547
S.q[0] = L0; S.q[1] = L1; S.q[2] = L2; S.q[3] = L3;
crypto/libressl/crypto/whrlpool/wp_block.c
548
S.q[4] = L4; S.q[5] = L5; S.q[6] = L6; S.q[7] = L7;
crypto/libressl/crypto/whrlpool/wp_block.c
575
K.q[0] = L0; K.q[1] = L1; K.q[2] = L2; K.q[3] = L3;
crypto/libressl/crypto/whrlpool/wp_block.c
576
K.q[4] = L4; K.q[5] = L5; K.q[6] = L6; K.q[7] = L7;
crypto/libressl/crypto/whrlpool/wp_block.c
602
S.q[0] = L0; S.q[1] = L1; S.q[2] = L2; S.q[3] = L3;
crypto/libressl/crypto/whrlpool/wp_block.c
603
S.q[4] = L4; S.q[5] = L5; S.q[6] = L6; S.q[7] = L7;
crypto/libressl/crypto/whrlpool/wp_block.c
617
H->q[0] ^= S.q[0] ^ pa[0];
crypto/libressl/crypto/whrlpool/wp_block.c
618
H->q[1] ^= S.q[1] ^ pa[1];
crypto/libressl/crypto/whrlpool/wp_block.c
619
H->q[2] ^= S.q[2] ^ pa[2];
crypto/libressl/crypto/whrlpool/wp_block.c
620
H->q[3] ^= S.q[3] ^ pa[3];
crypto/libressl/crypto/whrlpool/wp_block.c
621
H->q[4] ^= S.q[4] ^ pa[4];
crypto/libressl/crypto/whrlpool/wp_block.c
622
H->q[5] ^= S.q[5] ^ pa[5];
crypto/libressl/crypto/whrlpool/wp_block.c
623
H->q[6] ^= S.q[6] ^ pa[6];
crypto/libressl/crypto/whrlpool/wp_block.c
624
H->q[7] ^= S.q[7] ^ pa[7];
crypto/libressl/crypto/x509/x509_obj.c
114
q = ne->value->data;
crypto/libressl/crypto/x509/x509_obj.c
118
if (q[j] != 0)
crypto/libressl/crypto/x509/x509_obj.c
134
if ((q[j] < ' ') || (q[j] > '~'))
crypto/libressl/crypto/x509/x509_obj.c
152
q = ne->value->data;
crypto/libressl/crypto/x509/x509_obj.c
156
n = q[j];
crypto/libressl/crypto/x509/x509_obj.c
78
unsigned char *q;
crypto/libressl/crypto/x509/x509_utl.c
328
char *p, *q, c;
crypto/libressl/crypto/x509/x509_utl.c
343
for (p = linebuf, q = linebuf; (c = *p) && (c != '\r') &&
crypto/libressl/crypto/x509/x509_utl.c
351
ntmp = strip_spaces(q);
crypto/libressl/crypto/x509/x509_utl.c
356
q = p + 1;
crypto/libressl/crypto/x509/x509_utl.c
359
ntmp = strip_spaces(q);
crypto/libressl/crypto/x509/x509_utl.c
360
q = p + 1;
crypto/libressl/crypto/x509/x509_utl.c
373
vtmp = strip_spaces(q);
crypto/libressl/crypto/x509/x509_utl.c
380
q = p + 1;
crypto/libressl/crypto/x509/x509_utl.c
387
vtmp = strip_spaces(q);
crypto/libressl/crypto/x509/x509_utl.c
394
ntmp = strip_spaces(q);
crypto/libressl/crypto/x509/x509_utl.c
415
char *p, *q;
crypto/libressl/crypto/x509/x509_utl.c
423
q = p + strlen(p) - 1;
crypto/libressl/crypto/x509/x509_utl.c
424
while ((q != p) && isspace((unsigned char)*q))
crypto/libressl/crypto/x509/x509_utl.c
425
q--;
crypto/libressl/crypto/x509/x509_utl.c
426
if (p != q)
crypto/libressl/crypto/x509/x509_utl.c
427
q[1] = 0;
crypto/libressl/crypto/x509/x509_utl.c
441
char *tmp, *q;
crypto/libressl/crypto/x509/x509_utl.c
452
q = tmp;
crypto/libressl/crypto/x509/x509_utl.c
454
*q++ = hexdig[(*p >> 4) & 0xf];
crypto/libressl/crypto/x509/x509_utl.c
455
*q++ = hexdig[*p & 0xf];
crypto/libressl/crypto/x509/x509_utl.c
456
*q++ = ':';
crypto/libressl/crypto/x509/x509_utl.c
458
q[-1] = 0;
crypto/libressl/crypto/x509/x509_utl.c
469
unsigned char *hexbuf, *q;
crypto/libressl/crypto/x509/x509_utl.c
477
for (p = (unsigned char *)str, q = hexbuf; *p; ) {
crypto/libressl/crypto/x509/x509_utl.c
504
*q++ = (ch << 4) | cl;
crypto/libressl/crypto/x509/x509_utl.c
508
*len = q - hexbuf;
crypto/libressl/include/openssl/dh.h
149
void DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q,
crypto/libressl/include/openssl/dh.h
151
int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
crypto/libressl/include/openssl/dsa.h
205
void DSA_get0_pqg(const DSA *d, const BIGNUM **p, const BIGNUM **q,
crypto/libressl/include/openssl/dsa.h
207
int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g);
crypto/libressl/include/openssl/ec.h
682
int EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n, const EC_POINT *q, const BIGNUM *m, BN_CTX *ctx);
crypto/libressl/include/openssl/rsa.h
383
void RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q);
crypto/libressl/include/openssl/rsa.h
384
int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q);
crypto/libressl/include/openssl/whrlpool.h
22
double q[WHIRLPOOL_DIGEST_LENGTH/sizeof(double)];
crypto/libressl/ssl/d1_lib.c
141
dtls1_drain_records(s->d1->unprocessed_rcds.q);
crypto/libressl/ssl/d1_lib.c
144
dtls1_drain_records(s->d1->buffered_app_data.q);
crypto/libressl/ssl/d1_lib.c
160
pqueue_free(s->d1->unprocessed_rcds.q);
crypto/libressl/ssl/d1_lib.c
163
pqueue_free(s->d1->buffered_app_data.q);
crypto/libressl/ssl/d1_lib.c
179
unprocessed_rcds = s->d1->unprocessed_rcds.q;
crypto/libressl/ssl/d1_lib.c
182
buffered_app_data = s->d1->buffered_app_data.q;
crypto/libressl/ssl/d1_lib.c
200
s->d1->unprocessed_rcds.q = unprocessed_rcds;
crypto/libressl/ssl/d1_lib.c
203
s->d1->buffered_app_data.q = buffered_app_data;
crypto/libressl/ssl/d1_lib.c
87
if ((s->d1->unprocessed_rcds.q = pqueue_new()) == NULL)
crypto/libressl/ssl/d1_lib.c
93
if ((s->d1->buffered_app_data.q = pqueue_new()) == NULL)
crypto/libressl/ssl/d1_pkt.c
186
static int dtls1_buffer_record(SSL *s, record_pqueue *q,
crypto/libressl/ssl/d1_pkt.c
211
if (pqueue_size(queue->q) >= 100)
crypto/libressl/ssl/d1_pkt.c
235
if (pqueue_insert(queue->q, item) == NULL)
crypto/libressl/ssl/d1_pkt.c
256
item = pqueue_pop(queue->q);
crypto/libressl/ssl/d1_pkt.c
278
if (pqueue_peek(s->d1->unprocessed_rcds.q) == NULL) {
crypto/libressl/ssl/dtls_locl.h
109
struct _pqueue *q;
crypto/libressl/ssl/ssl_ciphers.c
209
char *p, *q;
crypto/libressl/ssl/ssl_ciphers.c
223
q = s;
crypto/libressl/ssl/ssl_ciphers.c
224
while ((p = strsep(&q, ":")) != NULL) {
crypto/libressl/ssl/ssl_clnt.c
1436
const unsigned char *q;
crypto/libressl/ssl/ssl_clnt.c
1532
q = CBS_data(&rdn);
crypto/libressl/ssl/ssl_clnt.c
1533
if ((xn = d2i_X509_NAME(NULL, &q, CBS_len(&rdn))) == NULL) {
crypto/libressl/ssl/ssl_clnt.c
1540
if (q != CBS_data(&rdn) + CBS_len(&rdn)) {
crypto/libressl/ssl/t1_lib.c
568
char *gs, *p, *q;
crypto/libressl/ssl/t1_lib.c
574
q = gs;
crypto/libressl/ssl/t1_lib.c
575
while ((p = strsep(&q, ":")) != NULL) {
crypto/libressl/tls/tls_config.c
218
char *s, *p, *q;
crypto/libressl/tls/tls_config.c
229
q = s;
crypto/libressl/tls/tls_config.c
230
while ((p = strsep(&q, ",:")) != NULL) {
crypto/libressl/tls/tls_config.c
286
char *p, *q;
crypto/libressl/tls/tls_config.c
308
q = s;
crypto/libressl/tls/tls_config.c
309
while ((p = strsep(&q, ",")) != NULL) {
crypto/libressl/tls/tls_config.c
559
char *p, *q;
crypto/libressl/tls/tls_config.c
575
q = cs;
crypto/libressl/tls/tls_config.c
576
while ((p = strsep(&q, ",:")) != NULL) {
crypto/openssh/ed25519.c
1672
static void ge25519_mixadd2(ge25519_p3 *r, const ge25519_aff *q)
crypto/openssh/ed25519.c
1675
fe25519_mul(&qt, &q->x, &q->y);
crypto/openssh/ed25519.c
1678
fe25519_sub(&t1, &q->y, &q->x);
crypto/openssh/ed25519.c
1679
fe25519_add(&t2, &q->y, &q->x);
crypto/openssh/ed25519.c
1695
static void add_p1p1(ge25519_p1p1 *r, const ge25519_p3 *p, const ge25519_p3 *q)
crypto/openssh/ed25519.c
1700
fe25519_sub(&t, &q->y, &q->x);
crypto/openssh/ed25519.c
1703
fe25519_add(&t, &q->x, &q->y);
crypto/openssh/ed25519.c
1705
fe25519_mul(&c, &p->t, &q->t); /* C = T1*k*T2 */
crypto/openssh/ed25519.c
1707
fe25519_mul(&d, &p->z, &q->z); /* D = Z1*2*Z2 */
crypto/openssh/moduli.c
247
BIGNUM *q;
crypto/openssh/moduli.c
322
if ((q = BN_new()) == NULL)
crypto/openssh/moduli.c
425
if (BN_set_word(q, 2 * j) == 0)
crypto/openssh/moduli.c
427
if (BN_add(q, q, largebase) == 0)
crypto/openssh/moduli.c
431
(power - 1) /* MSB */, (0), q) == -1) {
crypto/openssh/moduli.c
583
BIGNUM *q, *p, *a;
crypto/openssh/moduli.c
605
if ((q = BN_new()) == NULL)
crypto/openssh/moduli.c
668
a = q;
crypto/openssh/moduli.c
672
if (BN_lshift(p, q, 1) == 0)
crypto/openssh/moduli.c
689
if (BN_rshift(q, p, 1) == 0)
crypto/openssh/moduli.c
756
is_prime = BN_is_prime_ex(q, 1, NULL, NULL);
crypto/openssh/moduli.c
782
is_prime = BN_is_prime_ex(q, trials - 1, NULL, NULL);
crypto/openssh/moduli.c
804
BN_free(q);
crypto/openssh/sftp-realpath.c
144
q = strrchr(resolved, '/') + 1;
crypto/openssh/sftp-realpath.c
145
*q = '\0';
crypto/openssh/sftp-realpath.c
146
resolved_len = q - resolved;
crypto/openssh/sftp-realpath.c
183
q = strrchr(resolved, '/') + 1;
crypto/openssh/sftp-realpath.c
184
*q = '\0';
crypto/openssh/sftp-realpath.c
185
resolved_len = q - resolved;
crypto/openssh/sftp-realpath.c
61
char *p, *q, *s;
crypto/openssh/sftp.c
1203
enum { MA_START, MA_SQUOTE, MA_DQUOTE, MA_UNQUOTED } state, q;
crypto/openssh/sftp.c
1231
q = arg[i] == '"' ? MA_DQUOTE : MA_SQUOTE;
crypto/openssh/sftp.c
1234
state = q;
crypto/openssh/sftp.c
1238
state = q;
crypto/openssh/sftp.c
1239
else if (state == q)
crypto/openssh/smult_curve25519_ref.c
110
static void select(unsigned int p[64],unsigned int q[64],const unsigned int r[64],const unsigned int s[64],unsigned int b)
crypto/openssh/smult_curve25519_ref.c
120
q[j] = r[j] ^ t;
crypto/openssh/smult_curve25519_ref.c
247
int crypto_scalarmult_curve25519(unsigned char *q,
crypto/openssh/smult_curve25519_ref.c
263
for (i = 0;i < 32;++i) q[i] = work[64 + i];
crypto/openssh/sntrup761.c
1003
for (i = 0;i < p;++i) M[i] = (q+2)/3;
crypto/openssh/sntrup761.c
1012
for (i = 0;i < p;++i) M[i] = (q+2)/3;
crypto/openssh/sntrup761.c
125
static void uint32_divmod_uint14(uint32 *q,uint16 *r,uint32 x,uint16 m)
crypto/openssh/sntrup761.c
138
*q = 0;
crypto/openssh/sntrup761.c
148
x -= qpart*m; *q += qpart;
crypto/openssh/sntrup761.c
157
x -= qpart*m; *q += qpart;
crypto/openssh/sntrup761.c
160
x -= m; *q += 1;
crypto/openssh/sntrup761.c
162
x += mask&(uint32)m; *q += mask;
crypto/openssh/sntrup761.c
171
uint32 q;
crypto/openssh/sntrup761.c
173
uint32_divmod_uint14(&q,&r,x,m);
crypto/openssh/sntrup761.c
179
static void int32_divmod_uint14(int32 *q,uint16 *r,int32 x,uint16 m)
crypto/openssh/sntrup761.c
190
*r = ur; *q = uq;
crypto/openssh/sntrup761.c
196
int32 q;
crypto/openssh/sntrup761.c
198
int32_divmod_uint14(&q,&r,x,m);
crypto/openssh/sntrup761.c
436
#define q12 ((q-1)/2)
crypto/openssh/sntrup761.c
44
long long top,p,q,r,i,j;
crypto/openssh/sntrup761.c
444
return int32_mod_uint14(x+q12,q)-q12;
crypto/openssh/sntrup761.c
454
while (i < q-2) {
crypto/openssh/sntrup761.c
63
for (q = top;q > p;q >>= 1) {
crypto/openssh/sntrup761.c
65
if (j == n - q) goto done;
crypto/openssh/sntrup761.c
67
for (r = q;r > p;r >>= 1)
crypto/openssh/sntrup761.c
76
while (i + p <= n - q) {
crypto/openssh/sntrup761.c
79
for (r = q;r > p;r >>= 1)
crypto/openssh/sntrup761.c
87
while (j < n - q) {
crypto/openssh/sntrup761.c
884
for (i = 0;i < p;++i) G[i] = uint32_mod_uint14(L[i],q)-q12;
crypto/openssh/sntrup761.c
89
for (r = q;r > p;r >>= 1)
crypto/openssh/sntrup761.c
979
for (i = 0;i < p;++i) M[i] = q;
crypto/openssh/sntrup761.c
988
for (i = 0;i < p;++i) M[i] = q;
games/atc/list.c
58
PLANE *q = NULL, *r = NULL;
games/atc/list.c
64
q = l -> head;
games/atc/list.c
66
while (q != NULL && q->plane_no < p->plane_no) {
games/atc/list.c
67
r = q;
games/atc/list.c
68
q = q -> next;
games/atc/list.c
71
if (q) {
games/atc/list.c
75
p->next = q;
games/atc/list.c
76
q->prev = p;
games/atc/list.c
78
p->next = q;
games/atc/list.c
80
q->prev = p;
games/boggle/boggle/bog.c
222
int *p, *q;
games/boggle/boggle/bog.c
225
q = &wordpath[MAXWORDLEN + 1];
games/boggle/boggle/bog.c
227
while (p < q)
games/boggle/boggle/bog.c
233
while (p < q && *p != -1)
games/boggle/boggle/bog.c
250
int i, *p, *q;
games/boggle/boggle/bog.c
262
q = &wordpath[MAXWORDLEN + 1];
games/boggle/boggle/bog.c
264
while (p < q)
games/boggle/boggle/bog.c
299
while (p < q && *p != -1)
games/boggle/boggle/bog.c
382
char *p, *q;
games/boggle/boggle/bog.c
406
q = subword;
games/boggle/boggle/bog.c
410
*q++ = *p;
games/boggle/boggle/bog.c
416
*q = '\0';
games/boggle/boggle/bog.c
464
char *q, *w;
games/boggle/boggle/bog.c
477
q = word;
games/boggle/boggle/bog.c
478
while ((ch = *w++) == *q++ && ch != '\0')
games/boggle/boggle/bog.c
480
if (*(w - 1) == '\0' && *(q - 1) == '\0')
games/boggle/boggle/bog.c
584
int p, q;
games/boggle/boggle/bog.c
607
q = (int)arc4random_uniform(p + 1);
games/boggle/boggle/bog.c
609
cubes[p] = cubes[q];
games/boggle/boggle/bog.c
610
cubes[q] = tmp;
games/boggle/boggle/bog.c
662
compar(const void *p, const void *q)
games/boggle/boggle/bog.c
664
return (strcmp(*(const char *const*)p, *(const char *const*)q));
games/boggle/boggle/mach.c
189
get_line(char *q)
games/boggle/boggle/mach.c
195
p = q;
games/boggle/boggle/mach.c
210
if (p == q)
games/boggle/boggle/mach.c
220
if (p == q)
games/boggle/boggle/mach.c
223
move(row, col - (int) (p - q));
games/boggle/boggle/mach.c
224
p = q;
games/boggle/boggle/mach.c
264
if ((int) (p - q) == MAXWORDLEN) {
games/boggle/boggle/mach.c
265
p = q;
games/boggle/boggle/mach.c
278
return(q);
games/boggle/boggle/mach.c
518
getword(char *q)
games/boggle/boggle/mach.c
525
p = q;
games/boggle/boggle/mach.c
533
if (p == q)
games/boggle/boggle/mach.c
542
if (p == q)
games/boggle/boggle/mach.c
545
move(row, col - (int) (p - q));
games/boggle/boggle/mach.c
546
p = q;
games/boggle/mkdict/mkdict.c
106
q = buf[prev];
games/boggle/mkdict/mkdict.c
108
while ((ch = *p++) == *q++ && ch != '\0')
games/boggle/mkdict/mkdict.c
57
char *p, *q;
games/boggle/mkdict/mkdict.c
88
q = p + 1;
games/boggle/mkdict/mkdict.c
89
if (*q != 'u')
games/boggle/mkdict/mkdict.c
92
while ((*q = *(q + 1)))
games/boggle/mkdict/mkdict.c
93
q++;
games/boggle/mkindex/mkindex.c
101
q = buffer;
games/boggle/mkindex/mkindex.c
102
while ((*q++ = *p) != '\0') {
games/boggle/mkindex/mkindex.c
104
*q++ = 'u';
games/boggle/mkindex/mkindex.c
77
char *p, *q;
games/hack/hack.invent.c
359
mkgoldobj(long q)
games/hack/hack.invent.c
366
u.ugold -= q;
games/hack/hack.invent.c
367
OGOLD(otmp) = q;
games/hack/hack.mkmaze.c
157
int q, a, dir;
games/hack/hack.mkmaze.c
161
q = 0;
games/hack/hack.mkmaze.c
164
dirs[q++] = a;
games/hack/hack.mkmaze.c
165
if (!q)
games/hack/hack.mkmaze.c
167
dir = dirs[rn2(q)];
games/hack/hack.pager.c
110
buf[0] = q;
games/hack/hack.pager.c
88
char *buf = &bufr[6], *ep, q;
games/hack/hack.pager.c
94
q = readchar();
games/hack/hack.pager.c
95
if (q != '\t')
games/hack/hack.pager.c
97
if (*buf == q) {
games/hack/hack.shknam.c
207
const char *const *q;
games/hack/hack.shknam.c
216
q = p->xn;
games/hack/hack.shknam.c
218
if (!q[i]) {
games/hack/hack.shknam.c
226
(void) strncpy(nampt, q[i], PL_NSIZ);
games/primes/primes.c
195
char *q; /* sieve spot */
games/primes/primes.c
282
q = &table[(factor-mod)/2];
games/primes/primes.c
284
q = &table[mod ? factor-(mod/2) : 0];
games/primes/primes.c
287
for ( ; q < tab_lim; q += factor) {
games/primes/primes.c
288
*q = '\0'; /* sieve out a spot */
games/primes/primes.c
296
for (q = table; q < tab_lim; ++q, start+=2) {
games/primes/primes.c
297
if (*q) {
games/sail/parties.c
48
struct BP *q = p + NBP;
games/sail/parties.c
50
for (; p < q; p++)
games/sail/parties.c
60
struct BP *q = p + NBP;
games/sail/parties.c
62
for (; p < q; p++)
games/snake/snscore/snscore.c
63
const char *q;
games/snake/snscore/snscore.c
92
q = p -> pw_name;
games/snake/snscore/snscore.c
93
players[noplayers].name = strdup(q);
games/trek/abandon.c
65
struct quad *q;
games/trek/abandon.c
81
q = &Quad[Ship.quadx][Ship.quady];
games/trek/abandon.c
82
if (q->qsystemname == 0 || damaged(XPORTER)) {
games/trek/abandon.c
87
printf("Crew beams down to planet %s\n", systemname(q));
games/trek/computer.c
113
struct quad *q;
games/trek/computer.c
138
q = &Quad[i][j];
games/trek/computer.c
140
if (q->scanned >= 1000)
games/trek/computer.c
141
if (q->scanned > 1000)
games/trek/computer.c
146
if (q->scanned < 0)
games/trek/computer.c
150
q->scanned);
games/trek/events.c
145
q = &Quad[ix][iy];
games/trek/events.c
146
if (q->stars >= 0)
games/trek/events.c
147
if ((i -= q->klings)
games/trek/events.c
187
q = &Quad[ix][iy];
games/trek/events.c
188
if (q->klings <= 0)
games/trek/events.c
240
q = &Quad[e->x][e->y];
games/trek/events.c
245
if (q->bases <=0 || q->klings <= 0)
games/trek/events.c
267
q = &Quad[ix][iy];
games/trek/events.c
276
q->stars < 0 ||
games/trek/events.c
277
(q->qsystemname & Q_DISTRESSED) ||
games/trek/events.c
278
(q->qsystemname & Q_SYSTEM) == 0 ||
games/trek/events.c
279
q->klings <= 0))
games/trek/events.c
288
e = xsched(E_ENSLV, 1, ix, iy, q->qsystemname);
games/trek/events.c
289
q->qsystemname = (e - Event) | Q_DISTRESSED;
games/trek/events.c
306
q = &Quad[e->x][e->y];
games/trek/events.c
307
if (q->klings <= 0) {
games/trek/events.c
310
q->qsystemname = e->systemname;
games/trek/events.c
331
q = &Quad[e->x][e->y];
games/trek/events.c
332
if (q->klings <= 0) {
games/trek/events.c
334
q->qsystemname = e->systemname;
games/trek/events.c
345
if (q->klings >= MAXKLQUAD) {
games/trek/events.c
353
q = &Quad[i][j];
games/trek/events.c
358
if (q->klings >= MAXKLQUAD ||
games/trek/events.c
359
q->stars < 0)
games/trek/events.c
373
q->klings++;
games/trek/events.c
61
struct quad *q;
games/trek/getpar.c
117
const char *p, *q;
games/trek/getpar.c
157
for (q = r->abbrev; *q; q++)
games/trek/getpar.c
158
if (*p++ != *q)
games/trek/getpar.c
160
if (!*q) {
games/trek/getpar.c
161
for (q = r->full; *p && *q; q++, p++)
games/trek/getpar.c
162
if (*p != *q)
games/trek/getpar.c
164
if (!*p || !*q)
games/trek/initquad.c
108
if (q->qsystemname != 0) {
games/trek/initquad.c
59
struct quad *q;
games/trek/initquad.c
62
q = &Quad[Ship.quadx][Ship.quady];
games/trek/initquad.c
65
if (q->stars < 0)
games/trek/initquad.c
67
Etc.nkling = q->klings;
games/trek/initquad.c
68
nbases = q->bases;
games/trek/initquad.c
69
nstars = q->stars;
games/trek/initquad.c
70
nholes = q->holes;
games/trek/kill.c
100
if (q->bases <= 0)
games/trek/kill.c
104
if (q->scanned < 1000)
games/trek/kill.c
105
q->scanned -= 10;
games/trek/kill.c
107
if (q->scanned > 1000)
games/trek/kill.c
108
q->scanned = -1;
games/trek/kill.c
110
q->bases = 0;
games/trek/kill.c
145
struct quad *q;
games/trek/kill.c
151
q = &Quad[Ship.quadx][Ship.quady];
games/trek/kill.c
153
name = systemname(q);
games/trek/kill.c
162
q = &Quad[x][y];
games/trek/kill.c
164
if (q->qsystemname & Q_DISTRESSED) {
games/trek/kill.c
166
e = &Event[q->qsystemname & Q_SYSTEM];
games/trek/kill.c
171
q->qsystemname = 0;
games/trek/kill.c
172
q->stars -= 1;
games/trek/kill.c
188
struct quad *q;
games/trek/kill.c
190
q = &Quad[x][y];
games/trek/kill.c
211
q->qsystemname = e->systemname;
games/trek/kill.c
95
struct quad *q;
games/trek/kill.c
98
q = &Quad[qx][qy];
games/trek/lrscan.c
53
struct quad *q;
games/trek/lrscan.c
86
q = &Quad[i][j];
games/trek/lrscan.c
87
if (q->stars < 0) {
games/trek/lrscan.c
90
q->scanned = 1000;
games/trek/lrscan.c
93
q->scanned = q->klings * 100 + q->bases * 10 + q->stars;
games/trek/lrscan.c
94
printf(" %3d !", q->scanned);
games/trek/setup.c
224
q = &Quad[i][j];
games/trek/setup.c
225
q->klings = q->bases = 0;
games/trek/setup.c
226
q->scanned = -1;
games/trek/setup.c
227
q->stars = ranf(9) + 1;
games/trek/setup.c
228
q->holes = ranf(3);
games/trek/setup.c
229
s5 = q->stars / 5;
games/trek/setup.c
230
q->holes = q->holes > s5 ? q->holes - s5 : 0;
games/trek/setup.c
231
q->qsystemname = 0;
games/trek/setup.c
240
q = &Quad[i][j];
games/trek/setup.c
241
} while (q->qsystemname);
games/trek/setup.c
242
q->qsystemname = d;
games/trek/setup.c
250
q = &Quad[ix][iy];
games/trek/setup.c
251
if (q->bases > 0)
games/trek/setup.c
255
q->bases = 1;
games/trek/setup.c
258
q->scanned = 1001;
games/trek/setup.c
274
q = &Quad[ix][iy];
games/trek/setup.c
275
if (q->klings + klump > MAXKLQUAD)
games/trek/setup.c
277
q->klings += klump;
games/trek/setup.c
81
struct quad *q;
games/trek/snova.c
112
q->scanned = 1000;
games/trek/snova.c
115
q->scanned = 1000;
games/trek/snova.c
124
dx = q->klings;
games/trek/snova.c
125
dy = q->stars;
games/trek/snova.c
130
if (q->bases)
games/trek/snova.c
134
if (q->bases)
games/trek/snova.c
138
q->stars = -1;
games/trek/snova.c
139
q->klings = 0;
games/trek/snova.c
66
struct quad *q;
games/trek/snova.c
75
q = &Quad[qx][qy];
games/trek/snova.c
76
if (q->stars > 0)
games/trek/snova.c
81
n = ranf(q->stars);
games/trek/snova.c
98
q = &Quad[qx][qy];
games/trek/srscan.c
171
if (q->qsystemname & Q_DISTRESSED)
games/trek/srscan.c
173
if (q->qsystemname)
games/trek/srscan.c
174
printf("Starsystem %s\n", systemname(q));
games/trek/srscan.c
66
struct quad *q = NULL;
games/trek/srscan.c
86
q = &Quad[Ship.quadx][Ship.quady];
games/trek/srscan.c
87
q->scanned = q->klings * 100 + q->bases * 10 + q->stars;
games/trek/systemname.c
50
const struct quad *q;
games/trek/systemname.c
53
q = q1;
games/trek/systemname.c
55
i = q->qsystemname;
include/mpool.h
53
TAILQ_ENTRY(_bkt) q; /* lru queue */
lib/libalias/alias_nbt.c
278
NBTNsQuestion *q,
lib/libalias/alias_nbt.c
285
q = (NBTNsQuestion *)AliasHandleName((u_char *)q, pmax);
lib/libalias/alias_nbt.c
287
if (q == NULL || (char *)(q + 1) > pmax) {
lib/libalias/alias_nbt.c
288
q = NULL;
lib/libalias/alias_nbt.c
293
switch ( ntohs(q->type) ) {
lib/libalias/alias_nbt.c
296
q= q+1;
lib/libalias/alias_nbt.c
300
printf("\nUnknown Type on Question %0x\n", ntohs(q->type) );
lib/libalias/alias_nbt.c
308
return ((u_char *)q);
lib/libalias/alias_nbt.c
334
NBTNsResource *q,
lib/libalias/alias_nbt.c
341
if (q == NULL || (char *)(q + 1) > pmax)
lib/libalias/alias_nbt.c
344
bcount = ntohs(q->rdlen);
lib/libalias/alias_nbt.c
347
nb = (NBTNsRNB *)((u_char *)q + SizeOfNsResource);
lib/libalias/alias_nbt.c
403
NBTNsResource *q,
lib/libalias/alias_nbt.c
410
if (q == NULL || (char *)(q + 1) > pmax)
lib/libalias/alias_nbt.c
414
a = (NBTNsResourceA *)( (u_char *)q + sizeof(NBTNsResource) );
lib/libalias/alias_nbt.c
417
bcount = ntohs(q->rdlen);
lib/libalias/alias_nbt.c
460
NBTNsResource *q,
lib/libalias/alias_nbt.c
467
if (q == NULL || (char *)(q + 1) > pmax)
lib/libalias/alias_nbt.c
471
n = (NBTNsResourceNULL *)( (u_char *)q + sizeof(NBTNsResource) );
lib/libalias/alias_nbt.c
474
bcount = ntohs(q->rdlen);
lib/libalias/alias_nbt.c
493
NBTNsResource *q,
lib/libalias/alias_nbt.c
500
if (q == NULL || (char *)(q + 1) > pmax)
lib/libalias/alias_nbt.c
504
n = (NBTNsResourceNULL *)( (u_char *)q + sizeof(NBTNsResource) );
lib/libalias/alias_nbt.c
507
bcount = ntohs(q->rdlen);
lib/libalias/alias_nbt.c
510
q = (NBTNsResource *)AliasHandleName( (u_char *)n, pmax ); /* XXX */
lib/libalias/alias_nbt.c
512
if (q == NULL || (char *)((u_char *)n + bcount) > pmax)
lib/libalias/alias_nbt.c
524
NBTNsResource *q,
lib/libalias/alias_nbt.c
531
if (q == NULL || (char *)(q + 1) > pmax)
lib/libalias/alias_nbt.c
535
n = (NBTNsResourceNBSTAT *)( (u_char *)q + sizeof(NBTNsResource) );
lib/libalias/alias_nbt.c
538
bcount = ntohs(q->rdlen);
lib/libalias/alias_nbt.c
540
if (q == NULL || (char *)((u_char *)n + bcount) > pmax)
lib/libalias/alias_nbt.c
549
NBTNsResource *q,
lib/libalias/alias_nbt.c
556
q = (NBTNsResource *)AliasHandleName( (u_char *)q, pmax );
lib/libalias/alias_nbt.c
558
if (q == NULL || (char *)(q + 1) > pmax)
lib/libalias/alias_nbt.c
561
printf("type=%02x, count=%d\n", ntohs(q->type), count );
lib/libalias/alias_nbt.c
565
switch ( ntohs(q->type) ) {
lib/libalias/alias_nbt.c
567
q = (NBTNsResource *)AliasHandleResourceNB(
lib/libalias/alias_nbt.c
568
q,
lib/libalias/alias_nbt.c
574
q = (NBTNsResource *)AliasHandleResourceA(
lib/libalias/alias_nbt.c
575
q,
lib/libalias/alias_nbt.c
581
q = (NBTNsResource *)AliasHandleResourceNS(
lib/libalias/alias_nbt.c
582
q,
lib/libalias/alias_nbt.c
588
q = (NBTNsResource *)AliasHandleResourceNULL(
lib/libalias/alias_nbt.c
589
q,
lib/libalias/alias_nbt.c
595
q = (NBTNsResource *)AliasHandleResourceNBSTAT(
lib/libalias/alias_nbt.c
596
q,
lib/libalias/alias_nbt.c
605
ntohs(q->type)
lib/libalias/alias_nbt.c
613
return ((u_char *)q);
lib/libbluetooth/bluetooth.c
102
char *p, *cp, **q;
lib/libbluetooth/bluetooth.c
134
q = host.h_aliases = host_aliases;
lib/libbluetooth/bluetooth.c
142
if (q < &host_aliases[MAXALIASES - 1])
lib/libbluetooth/bluetooth.c
143
*q++ = cp;
lib/libbluetooth/bluetooth.c
147
*q = NULL;
lib/libbluetooth/bluetooth.c
210
char *p, *cp, **q;
lib/libbluetooth/bluetooth.c
234
q = proto.p_aliases = proto_aliases;
lib/libbluetooth/bluetooth.c
242
if (q < &proto_aliases[MAXALIASES - 1])
lib/libbluetooth/bluetooth.c
243
*q++ = cp;
lib/libbluetooth/bluetooth.c
248
*q = NULL;
lib/libc/citrus/citrus_esdb.c
261
char **list, **q;
lib/libc/citrus/citrus_esdb.c
358
q = realloc(list, num * sizeof(char *));
lib/libc/citrus/citrus_esdb.c
359
if (!q) {
lib/libc/citrus/citrus_esdb.c
363
list = q;
lib/libc/citrus/citrus_lookup.c
174
const char *p, *q;
lib/libc/citrus/citrus_lookup.c
186
q = memchr(p, T_COMM, len);
lib/libc/citrus/citrus_lookup.c
187
if (q) {
lib/libc/citrus/citrus_lookup.c
188
len = q - p;
lib/libc/citrus/citrus_lookup.c
193
q = _bcs_skip_nonws_len(p, &len);
lib/libc/citrus/citrus_lookup.c
194
if (p == q)
lib/libc/citrus/citrus_lookup.c
196
if (cl->cl_key && ((size_t)(q - p) != cl->cl_keylen ||
lib/libc/citrus/citrus_lookup.c
197
memcmp(p, cl->cl_key, (size_t)(q - p)) != 0))
lib/libc/citrus/citrus_lookup.c
202
_region_init(key, __DECONST(void *, p), (size_t)(q - p));
lib/libc/citrus/citrus_lookup.c
203
p = _bcs_skip_ws_len(q, &len);
lib/libc/citrus/citrus_memstream.c
106
p = _bcs_skip_ws_len(q, &len);
lib/libc/citrus/citrus_memstream.c
72
const char *p, *q;
lib/libc/citrus/citrus_memstream.c
82
q = memchr(p, T_COMM, len);
lib/libc/citrus/citrus_memstream.c
83
if (q) {
lib/libc/citrus/citrus_memstream.c
84
len = q - p;
lib/libc/citrus/citrus_memstream.c
93
q = _bcs_skip_nonws_len(p, &len);
lib/libc/citrus/citrus_memstream.c
95
if ((size_t)(q - p) == keylen) {
lib/libc/db/mpool/mpool.c
139
TAILQ_INSERT_TAIL(&mp->lqh, bp, q);
lib/libc/db/mpool/mpool.c
162
TAILQ_REMOVE(&mp->lqh, bp, q);
lib/libc/db/mpool/mpool.c
203
TAILQ_REMOVE(&mp->lqh, bp, q);
lib/libc/db/mpool/mpool.c
204
TAILQ_INSERT_TAIL(&mp->lqh, bp, q);
lib/libc/db/mpool/mpool.c
255
TAILQ_INSERT_TAIL(&mp->lqh, bp, q);
lib/libc/db/mpool/mpool.c
303
TAILQ_REMOVE(&mp->lqh, bp, q);
lib/libc/db/mpool/mpool.c
322
TAILQ_FOREACH(bp, &mp->lqh, q)
lib/libc/db/mpool/mpool.c
351
TAILQ_FOREACH(bp, &mp->lqh, q)
lib/libc/db/mpool/mpool.c
363
TAILQ_REMOVE(&mp->lqh, bp, q);
lib/libc/db/mpool/mpool.c
475
TAILQ_FOREACH(bp, &mp->lqh, q) {
lib/libc/gen/getgrent.c
1473
char *q;
lib/libc/gen/getgrent.c
1498
n = strtoul(p, &q, 10);
lib/libc/gen/getgrent.c
1499
if (q < eol && *q == ':' && gid == (gid_t)n)
lib/libc/gen/getpwent.c
1253
char *result, *p, *q, *eor;
lib/libc/gen/getpwent.c
1265
(q = memchr(p, ':', eor - p)) != NULL) {
lib/libc/gen/getpwent.c
1266
if (q - p >= bufsize)
lib/libc/gen/getpwent.c
1269
memcpy(buffer, p, q - p);
lib/libc/gen/getpwent.c
1270
buffer[q - p] ='\0';
lib/libc/gen/getpwent.c
1477
char *copy, *p, *q, *eob;
lib/libc/gen/getpwent.c
1517
q = (template->pw_fields & flag) ? template->field : hold.field; \
lib/libc/gen/getpwent.c
1518
if (q == NULL) \
lib/libc/gen/getpwent.c
1522
if ((n = strlcpy(p, q, eob-p)) >= eob-p) { \
lib/libc/gen/getpwent.c
1964
char *q;
lib/libc/gen/getpwent.c
1988
m = strtoul(++p, &q, 10);
lib/libc/gen/getpwent.c
1989
if (q[0] != ':' || (uid_t)m != uid)
lib/libc/gen/getttyent.c
186
int c, q;
lib/libc/gen/getttyent.c
188
for (q = 0, t = p; (c = *p) != '\0'; p++) {
lib/libc/gen/getttyent.c
190
q ^= QUOTED; /* obscure, but nice */
lib/libc/gen/getttyent.c
193
if (q == QUOTED && *p == '\\' && *(p+1) == '"')
lib/libc/gen/getttyent.c
196
if (q == QUOTED)
lib/libc/gen/glob.c
553
compare(const void *p, const void *q)
lib/libc/gen/glob.c
555
return (strcmp(*(char **)p, *(char **)q));
lib/libc/gen/glob.c
580
Char *p, *q;
lib/libc/gen/glob.c
617
q = pathend;
lib/libc/gen/glob.c
622
if (q + 1 > pathend_last)
lib/libc/gen/glob.c
624
*q++ = *p++;
lib/libc/gen/glob.c
628
pathend = q;
lib/libc/locale/wctype.c
102
q = propmasks;
lib/libc/locale/wctype.c
105
return (*q);
lib/libc/locale/wctype.c
106
q++;
lib/libc/locale/wctype.c
99
const wctype_t *q;
lib/libc/net/getaddrinfo.c
1989
struct res_target q, q2;
lib/libc/net/getaddrinfo.c
1995
memset(&q, 0, sizeof(q));
lib/libc/net/getaddrinfo.c
2014
q.name = hostname;
lib/libc/net/getaddrinfo.c
2015
q.qclass = C_IN;
lib/libc/net/getaddrinfo.c
2016
q.qtype = T_A;
lib/libc/net/getaddrinfo.c
2017
q.answer = buf->buf;
lib/libc/net/getaddrinfo.c
2018
q.anslen = sizeof(buf->buf);
lib/libc/net/getaddrinfo.c
2019
q.next = &q2;
lib/libc/net/getaddrinfo.c
2027
q.name = hostname;
lib/libc/net/getaddrinfo.c
2028
q.qclass = C_IN;
lib/libc/net/getaddrinfo.c
2029
q.qtype = T_A;
lib/libc/net/getaddrinfo.c
2030
q.answer = buf->buf;
lib/libc/net/getaddrinfo.c
2031
q.anslen = sizeof(buf->buf);
lib/libc/net/getaddrinfo.c
2034
q.name = hostname;
lib/libc/net/getaddrinfo.c
2035
q.qclass = C_IN;
lib/libc/net/getaddrinfo.c
2036
q.qtype = T_AAAA;
lib/libc/net/getaddrinfo.c
2037
q.answer = buf->buf;
lib/libc/net/getaddrinfo.c
2038
q.anslen = sizeof(buf->buf);
lib/libc/net/getaddrinfo.c
2054
if (res_searchN(hostname, &q, res) < 0) {
lib/libc/net/getaddrinfo.c
2060
if (q.next) {
lib/libc/net/getaddrinfo.c
2068
ai = getanswer(buf, q.n, q.name, q.qtype, pai, res);
lib/libc/net/gethostbyht.c
138
q = he->h_aliases = hed->host_aliases;
lib/libc/net/gethostbyht.c
154
if (q >= &hed->host_aliases[_MAXALIASES - 1])
lib/libc/net/gethostbyht.c
162
*q++ = bp;
lib/libc/net/gethostbyht.c
166
*q = NULL;
lib/libc/net/gethostbyht.c
91
char *cp, **q;
lib/libc/net/gethostbynis.c
128
q = he->h_aliases = hed->host_aliases;
lib/libc/net/gethostbynis.c
145
if (q >= &hed->host_aliases[_MAXALIASES - 1])
lib/libc/net/gethostbynis.c
154
*q++ = bp;
lib/libc/net/gethostbynis.c
158
*q = NULL;
lib/libc/net/gethostbynis.c
55
char *cp, **q;
lib/libc/net/getnetbyht.c
120
q = ne->n_aliases = ned->net_aliases;
lib/libc/net/getnetbyht.c
128
if (q >= &ned->net_aliases[_MAXALIASES - 1])
lib/libc/net/getnetbyht.c
137
*q++ = bp;
lib/libc/net/getnetbyht.c
142
*q = NULL;
lib/libc/net/getnetbyht.c
83
char *cp, **q;
lib/libc/net/getnetbynis.c
104
q = ne->n_aliases = ned->net_aliases;
lib/libc/net/getnetbynis.c
113
if (q > &ned->net_aliases[_MAXALIASES - 1])
lib/libc/net/getnetbynis.c
122
*q++ = bp;
lib/libc/net/getnetbynis.c
126
*q = NULL;
lib/libc/net/getnetbynis.c
55
char *cp, **q;
lib/libc/net/getprotoent.c
362
char *cp, **q, *endp;
lib/libc/net/getprotoent.c
389
q = pe->p_aliases = ped->aliases;
lib/libc/net/getprotoent.c
397
if (q < &ped->aliases[_MAXALIASES - 1])
lib/libc/net/getprotoent.c
398
*q++ = cp;
lib/libc/net/getprotoent.c
404
*q = NULL;
lib/libc/net/getservent.c
152
char *cp, **q, *endp;
lib/libc/net/getservent.c
182
q = serv->s_aliases = aliases;
lib/libc/net/getservent.c
191
if (q < &aliases[aliases_size - 1]) {
lib/libc/net/getservent.c
192
*q++ = cp;
lib/libc/net/getservent.c
194
*q = NULL;
lib/libc/net/getservent.c
202
*q = NULL;
lib/libc/rpc/getnetconfig.c
345
struct netconfig_list *q, *p;
lib/libc/rpc/getnetconfig.c
371
q = p = ni.head;
lib/libc/rpc/getnetconfig.c
375
while (q) {
lib/libc/rpc/getnetconfig.c
376
p = q->next;
lib/libc/rpc/getnetconfig.c
377
if (q->ncp->nc_lookups != NULL) free(q->ncp->nc_lookups);
lib/libc/rpc/getnetconfig.c
378
free(q->ncp);
lib/libc/rpc/getnetconfig.c
379
free(q->linep);
lib/libc/rpc/getnetconfig.c
380
free(q);
lib/libc/rpc/getnetconfig.c
381
q = p;
lib/libc/rpc/getrpcent.c
145
char *cp, **q;
lib/libc/rpc/getrpcent.c
164
q = rpc->r_aliases = r_aliases;
lib/libc/rpc/getrpcent.c
173
if (q < &(r_aliases[aliases_size - 1]))
lib/libc/rpc/getrpcent.c
174
*q++ = cp;
lib/libc/rpc/getrpcent.c
184
*q = NULL;
lib/libc/stdio/xprintf_hexdump.c
55
char buf[100], *q;
lib/libc/stdio/xprintf_hexdump.c
68
q = buf;
lib/libc/stdio/xprintf_hexdump.c
70
q += sprintf(q, " %04x", a);
lib/libc/stdio/xprintf_hexdump.c
72
q += sprintf(q, " %02x", p[j]);
lib/libc/stdio/xprintf_hexdump.c
75
q += sprintf(q, " ");
lib/libc/stdio/xprintf_hexdump.c
76
q += sprintf(q, " |");
lib/libc/stdio/xprintf_hexdump.c
79
*q++ = '.';
lib/libc/stdio/xprintf_hexdump.c
81
*q++ = p[j];
lib/libc/stdio/xprintf_hexdump.c
84
*q++ = ' ';
lib/libc/stdio/xprintf_hexdump.c
85
*q++ = '|';
lib/libc/stdio/xprintf_hexdump.c
95
*q++ = '\n';
lib/libc/stdio/xprintf_hexdump.c
96
ret += __printf_puts(io, buf + 1, q - (buf + 1));
lib/libc/stdlib/merge.c
101
u_char *f1, *f2, *t, *b, *tp2, *q, *l1, *l2;
lib/libc/stdlib/merge.c
139
q = f2;
lib/libc/stdlib/merge.c
143
q = f1;
lib/libc/stdlib/merge.c
148
while ((b += size) < t && cmp(q, b) >sense)
lib/libc/stdlib/merge.c
157
(*cmp)(q, p) <= sense)
lib/libc/stdlib/merge.c
162
} else if ((*cmp)(q, p) <= sense) {
lib/libc/stdlib/merge.c
171
if ((*cmp)(q, p = b + i) <= sense)
lib/libc/stdlib/merge.c
178
if ((*cmp)(q,
lib/libc/stdlib/merge.c
186
if (q == f1) {
lib/libc/stdlib/realpath.c
160
q = strrchr(resolved, '/') + 1;
lib/libc/stdlib/realpath.c
161
*q = '\0';
lib/libc/stdlib/realpath.c
162
resolved_len = q - resolved;
lib/libc/stdlib/realpath.c
202
q = strrchr(resolved, '/') + 1;
lib/libc/stdlib/realpath.c
203
*q = '\0';
lib/libc/stdlib/realpath.c
204
resolved_len = q - resolved;
lib/libc/stdlib/realpath.c
54
char *p, *q, *s;
lib/libc/stdlib/tdelete.c
33
node_t *p, *q, *r;
lib/libc/stdlib/tdelete.c
48
if ((q = (*rootp)->llink) == NULL) /* Left NULL? */
lib/libc/stdlib/tdelete.c
49
q = r;
lib/libc/stdlib/tdelete.c
52
r->llink = q;
lib/libc/stdlib/tdelete.c
53
q = r;
lib/libc/stdlib/tdelete.c
55
for (q = r->llink; q->llink != NULL; q = r->llink)
lib/libc/stdlib/tdelete.c
56
r = q;
lib/libc/stdlib/tdelete.c
57
r->llink = q->rlink;
lib/libc/stdlib/tdelete.c
58
q->llink = (*rootp)->llink;
lib/libc/stdlib/tdelete.c
59
q->rlink = (*rootp)->rlink;
lib/libc/stdlib/tdelete.c
63
*rootp = q; /* link parent to new node */
lib/libc/stdlib/tsearch.c
31
node_t *q;
lib/libc/stdlib/tsearch.c
48
q = malloc(sizeof(node_t)); /* T5: key not found */
lib/libc/stdlib/tsearch.c
49
if (q != NULL) { /* make new node */
lib/libc/stdlib/tsearch.c
50
*rootp = q; /* link new node to old */
lib/libc/stdlib/tsearch.c
52
q->key = __DECONST(void *, vkey); /* initialize new node */
lib/libc/stdlib/tsearch.c
53
q->llink = q->rlink = NULL;
lib/libc/stdlib/tsearch.c
55
return q;
lib/libc/string/wcscspn.c
36
const wchar_t *q;
lib/libc/string/wcscspn.c
40
q = set;
lib/libc/string/wcscspn.c
41
while (*q) {
lib/libc/string/wcscspn.c
42
if (*p == *q)
lib/libc/string/wcscspn.c
44
q++;
lib/libc/string/wcsncat.c
36
wchar_t *q;
lib/libc/string/wcsncat.c
42
q = p;
lib/libc/string/wcsncat.c
45
*q++ = *r++;
lib/libc/string/wcsncat.c
48
*q = '\0';
lib/libc/string/wcspbrk.c
36
const wchar_t *q;
lib/libc/string/wcspbrk.c
40
q = set;
lib/libc/string/wcspbrk.c
41
while (*q) {
lib/libc/string/wcspbrk.c
42
if (*p == *q) {
lib/libc/string/wcspbrk.c
46
q++;
lib/libc/string/wcsspn.c
36
const wchar_t *q;
lib/libc/string/wcsspn.c
40
q = set;
lib/libc/string/wcsspn.c
41
while (*q) {
lib/libc/string/wcsspn.c
42
if (*p == *q)
lib/libc/string/wcsspn.c
44
q++;
lib/libc/string/wcsspn.c
46
if (!*q)
lib/libcrypt/crypt-des.c
592
u_char *p, *q;
lib/libcrypt/crypt-des.c
603
q = (u_char *) keybuf;
lib/libcrypt/crypt-des.c
604
while (q - (u_char *) keybuf - 8) {
lib/libcrypt/crypt-des.c
605
*q++ = *key << 1;
lib/libcrypt/crypt-des.c
633
q = (u_char *) keybuf;
lib/libcrypt/crypt-des.c
634
while (q - (u_char *) keybuf - 8 && *key)
lib/libcrypt/crypt-des.c
635
*q++ ^= *key++ << 1;
lib/libevtr/evtr.c
1472
evtr_load_fmt(evtr_query_t q, char *buf)
lib/libevtr/evtr.c
1474
evtr_t evtr = q->evtr;
lib/libevtr/evtr.c
1594
evtr_query_reserve_buf(struct evtr_query *q, int len)
lib/libevtr/evtr.c
1598
if (q->bufsize >= len)
lib/libevtr/evtr.c
1600
if (!(tmp = realloc(q->buf, len)))
lib/libevtr/evtr.c
1602
q->buf = tmp;
lib/libevtr/evtr.c
1603
q->bufsize = len;
lib/libevtr/evtr.c
1609
evtr_load_probe(evtr_t evtr, evtr_event_t ev, char *buf, struct evtr_query *q)
lib/libevtr/evtr.c
1653
if (evtr_query_reserve_buf(q, evh->datalen + 1)) {
lib/libevtr/evtr.c
1655
} else if (!evtr_read(evtr, q->buf, evh->datalen)) {
lib/libevtr/evtr.c
1662
ev->fmtdata = q->buf;
lib/libevtr/evtr.c
1679
evtr_run_callbacks(ev, q);
lib/libevtr/evtr.c
1757
_evtr_next_event(evtr_t evtr, evtr_event_t ev, struct evtr_query *q)
lib/libevtr/evtr.c
1764
if (q->flags & EVTRQF_PENDING) {
lib/libevtr/evtr.c
1765
q->off = evtr->bytes;
lib/libevtr/evtr.c
1766
memcpy(ev, &q->pending_event, sizeof(*ev));
lib/libevtr/evtr.c
1767
q->flags &= ~EVTRQF_PENDING;
lib/libevtr/evtr.c
1797
if ((err = evtr_load_probe(evtr, ev, buf, q))) {
lib/libevtr/evtr.c
1814
if (evtr_load_fmt(q, buf)) {
lib/libevtr/evtr.c
1825
if (!evtr_match_filters(q, ev)) {
lib/libevtr/evtr.c
1829
q->off = evtr->bytes;
lib/libevtr/evtr.c
1841
struct evtr_query *q;
lib/libevtr/evtr.c
1844
if (!(q = evtr_query_init(evtr, NULL, 0))) {
lib/libevtr/evtr.c
1848
ret = _evtr_next_event(evtr, ev, q);
lib/libevtr/evtr.c
1849
evtr_query_destroy(q);
lib/libevtr/evtr.c
1900
struct evtr_query *q;
lib/libevtr/evtr.c
1903
if (!(q = malloc(sizeof(*q)))) {
lib/libevtr/evtr.c
1904
return q;
lib/libevtr/evtr.c
1906
q->bufsize = 2;
lib/libevtr/evtr.c
1907
if (!(q->buf = malloc(q->bufsize))) {
lib/libevtr/evtr.c
1910
if (!(q->symtab = symtab_new()))
lib/libevtr/evtr.c
1912
q->evtr = evtr;
lib/libevtr/evtr.c
1913
q->off = 0;
lib/libevtr/evtr.c
1914
q->filt = filt;
lib/libevtr/evtr.c
1915
q->nfilt = nfilt;
lib/libevtr/evtr.c
1916
TAILQ_INIT(&q->unresolved_filtq);
lib/libevtr/evtr.c
1917
q->nmatched = 0;
lib/libevtr/evtr.c
1918
q->cbs = NULL;
lib/libevtr/evtr.c
1919
q->ncbs = 0;
lib/libevtr/evtr.c
1920
q->flags = 0;
lib/libevtr/evtr.c
1921
memset(&q->pending_event, '\0', sizeof(q->pending_event));
lib/libevtr/evtr.c
1922
if (evtr_register_callback(q, &thread_creation_callback, q)) {
lib/libevtr/evtr.c
1925
if (evtr_register_callback(q, &thread_switch_callback, q)) {
lib/libevtr/evtr.c
1928
if (evtr_query_needs_parsing(q) &&
lib/libevtr/evtr.c
1929
evtr_register_callback(q, &parse_callback, q)) {
lib/libevtr/evtr.c
1937
if (evtr_filter_register(q, &filt[i])) {
lib/libevtr/evtr.c
1938
evtr_deregister_filters(q, filt, i);
lib/libevtr/evtr.c
1943
return q;
lib/libevtr/evtr.c
1945
evtr_deregister_callbacks(q);
lib/libevtr/evtr.c
1947
symtab_destroy(q->symtab);
lib/libevtr/evtr.c
1949
free(q->buf);
lib/libevtr/evtr.c
1951
free(q);
lib/libevtr/evtr.c
1956
evtr_query_destroy(struct evtr_query *q)
lib/libevtr/evtr.c
1958
evtr_deregister_filters(q, q->filt, q->nfilt);
lib/libevtr/evtr.c
1960
free(q->buf);
lib/libevtr/evtr.c
1961
free(q);
lib/libevtr/evtr.c
1965
evtr_query_next(struct evtr_query *q, evtr_event_t ev)
lib/libevtr/evtr.c
1967
if (evtr_query_error(q))
lib/libevtr/evtr.c
1970
if (q->off != q->evtr->bytes) {
lib/libevtr/evtr.c
1971
q->errmsg = "evtr/query offset mismatch";
lib/libevtr/evtr.c
1974
return _evtr_next_event(q->evtr, ev, q);
lib/libevtr/evtr.c
281
evtr_register_callback(evtr_query_t q, void (*fn)(evtr_event_t, void *), void *d)
lib/libevtr/evtr.c
287
q->err = ENOMEM;
lib/libevtr/evtr.c
292
if (!(cbs = realloc(q->cbs, (++q->ncbs) * sizeof(cb)))) {
lib/libevtr/evtr.c
293
--q->ncbs;
lib/libevtr/evtr.c
295
q->err = ENOMEM;
lib/libevtr/evtr.c
298
q->cbs = cbs;
lib/libevtr/evtr.c
299
q->cbs[q->ncbs - 1] = cb;
lib/libevtr/evtr.c
305
evtr_deregister_callbacks(evtr_query_t q)
lib/libevtr/evtr.c
309
for (i = 0; i < q->ncbs; ++i) {
lib/libevtr/evtr.c
310
free(q->cbs[i]);
lib/libevtr/evtr.c
312
free(q->cbs);
lib/libevtr/evtr.c
313
q->cbs = NULL;
lib/libevtr/evtr.c
318
evtr_run_callbacks(evtr_event_t ev, evtr_query_t q)
lib/libevtr/evtr.c
323
for (i = 0; i < q->ncbs; ++i) {
lib/libevtr/evtr.c
324
cb = q->cbs[i];
lib/libevtr/evtr.c
358
evtr_deregister_filters(evtr_query_t q, evtr_filter_t filt, int nfilt)
lib/libevtr/evtr.c
362
TAILQ_FOREACH_MUTABLE(u, &q->unresolved_filtq, link, tmp) {
lib/libevtr/evtr.c
365
TAILQ_REMOVE(&q->unresolved_filtq, u, link);
lib/libevtr/evtr.c
373
evtr_filter_register(evtr_query_t q, evtr_filter_t filt)
lib/libevtr/evtr.c
378
q->err = ENOMEM;
lib/libevtr/evtr.c
382
TAILQ_INSERT_TAIL(&q->unresolved_filtq, res, link);
lib/libevtr/evtr.c
388
evtr_query_needs_parsing(evtr_query_t q)
lib/libevtr/evtr.c
392
for (i = 0; i < q->nfilt; ++i)
lib/libevtr/evtr.c
393
if (q->filt[i].ev_type == EVTR_TYPE_STMT)
lib/libevtr/evtr.c
425
evtr_query_error(evtr_query_t q)
lib/libevtr/evtr.c
427
return q->err || (q->errmsg != NULL) || evtr_error(q->evtr);
lib/libevtr/evtr.c
431
evtr_query_errmsg(evtr_query_t q)
lib/libevtr/evtr.c
433
return q->errmsg ? q->errmsg :
lib/libevtr/evtr.c
434
(q->err ? strerror(q->err) :
lib/libevtr/evtr.c
435
(evtr_errmsg(q->evtr)));
lib/libevtr/evtr.c
741
evtr_filter_match(evtr_query_t q, evtr_filter_t f, evtr_event_t ev)
lib/libevtr/evtr.c
756
parse_var(f->var, q->symtab, &var, &q->parse_err_buf[0],
lib/libevtr/evtr.c
770
evtr_match_filters(struct evtr_query *q, evtr_event_t ev)
lib/libevtr/evtr.c
775
if (!q->nfilt)
lib/libevtr/evtr.c
777
++q->ntried;
lib/libevtr/evtr.c
778
for (i = 0; i < q->nfilt; ++i) {
lib/libevtr/evtr.c
779
if (evtr_filter_match(q, &q->filt[i], ev)) {
lib/libevtr/evtr.c
780
++q->nmatched;
lib/libevtr/evtr.c
791
evtr_query_t q = (evtr_query_t)d;
lib/libevtr/evtr.c
801
memcpy(&q->pending_event, ev, sizeof(*ev));
lib/libevtr/evtr.c
802
parse_string(&q->pending_event, q->symtab, &ev->fmt[1],
lib/libevtr/evtr.c
803
&q->parse_err_buf[0], PARSE_ERR_BUFSIZE);
lib/libevtr/evtr.c
804
if (q->parse_err_buf[0]) { /* parse error */
lib/libevtr/evtr.c
805
q->errmsg = &q->parse_err_buf[0];
lib/libevtr/evtr.c
808
if (!evtr_match_filters(q, &q->pending_event))
lib/libevtr/evtr.c
814
q->flags |= EVTRQF_PENDING;
lib/libevtr/evtr.c
821
evtr_query_t q = (evtr_query_t)d;
lib/libevtr/evtr.c
822
evtr_t evtr = q->evtr;
lib/libevtr/evtr.c
833
q->err = ENOMEM;
lib/libevtr/evtr.c
840
q->err = ENOMEM;
lib/libfetch/common.c
1773
const char *no_proxy, *p, *q;
lib/libfetch/common.c
1792
for (q = p; *q; ++q)
lib/libfetch/common.c
1793
if (*q == ',' || isspace((unsigned char)*q))
lib/libfetch/common.c
1796
d_len = q - p;
lib/libfetch/common.c
1804
p = q + 1;
lib/libfetch/common.c
1805
} while (*q);
lib/libfetch/fetch.c
354
const char *p, *q;
lib/libfetch/fetch.c
389
q = fetch_pctdecode(u->user, URL, URL_USERLEN);
lib/libfetch/fetch.c
390
if (q == NULL)
lib/libfetch/fetch.c
394
if (*q == ':') {
lib/libfetch/fetch.c
395
q = fetch_pctdecode(u->pwd, q + 1, URL_PWDLEN);
lib/libfetch/fetch.c
396
if (q == NULL)
lib/libfetch/fetch.c
406
q = p + 1 + strspn(p + 1, ":0123456789ABCDEFabcdef");
lib/libfetch/fetch.c
407
if (*q++ != ']')
lib/libfetch/fetch.c
411
q = p + strspn(p, "-." "0123456789"
lib/libfetch/fetch.c
415
if ((*q != '\0' && *q != '/' && *q != ':') || q - p > MAXHOSTNAMELEN)
lib/libfetch/fetch.c
417
for (i = 0; p + i < q; i++)
lib/libfetch/fetch.c
420
p = q;
lib/libfetch/fetch.c
424
for (n = 0, q = ++p; *q && (*q != '/'); q++) {
lib/libfetch/fetch.c
425
if (*q >= '0' && *q <= '9' && n < INT_MAX / 10) {
lib/libfetch/fetch.c
426
n = n * 10 + (*q - '0');
lib/libfetch/fetch.c
436
p = q;
lib/libfetch/ftp.c
239
int q;
lib/libfetch/ftp.c
248
for (q = 0, dst = pwd; src < end && pwdlen--; ++src) {
lib/libfetch/ftp.c
249
if (!q && *src == '"')
lib/libfetch/ftp.c
250
q = 1;
lib/libfetch/ftp.c
251
else if (q && *src != '"')
lib/libfetch/ftp.c
253
else if (q)
lib/libfetch/ftp.c
254
*dst++ = '"', q = 0;
lib/libfetch/http.c
1485
char *line, *p, *q;
lib/libfetch/http.c
1492
for (p = q = line; q < line + len; ++q) {
lib/libfetch/http.c
1493
if (comment && *q == '-') {
lib/libfetch/http.c
1494
if (q + 2 < line + len &&
lib/libfetch/http.c
1495
strncmp(q, "-->", 3) == 0) {
lib/libfetch/http.c
1497
q += 2;
lib/libfetch/http.c
1499
} else if (tag && !comment && *q == '>') {
lib/libfetch/http.c
1500
p = q + 1;
lib/libfetch/http.c
1502
} else if (!tag && *q == '<') {
lib/libfetch/http.c
1503
if (q > p)
lib/libfetch/http.c
1504
fwrite(p, q - p, 1, out);
lib/libfetch/http.c
1506
if (q + 3 < line + len &&
lib/libfetch/http.c
1507
strncmp(q, "<!--", 4) == 0) {
lib/libfetch/http.c
1509
q += 3;
lib/libfetch/http.c
1513
if (!tag && q > p)
lib/libfetch/http.c
1514
fwrite(p, q - p, 1, out);
lib/libftpio/ftpio.c
60
static int get_a_number(FTP_t ftp, char **q);
lib/libftpio/ftpio.c
629
get_a_number(FTP_t ftp, char **q)
lib/libftpio/ftpio.c
652
if (q) *q = p+4;
lib/libftpio/ftpio.c
656
if (q) *q = p+4;
lib/libftpio/ftpio.c
804
char *q;
lib/libftpio/ftpio.c
834
i = get_a_number(ftp, &q);
lib/libftpio/ftpio.c
849
i = get_a_number(ftp, &q);
lib/libftpio/ftpio.c
859
i = get_a_number(ftp, &q);
lib/libftpio/ftpio.c
869
while (*q && !isdigit(*q))
lib/libftpio/ftpio.c
870
q++;
lib/libftpio/ftpio.c
871
if (!*q) {
lib/libftpio/ftpio.c
875
q--;
lib/libftpio/ftpio.c
878
q++;
lib/libftpio/ftpio.c
879
addr[i] = strtol(q, &q, 10);
lib/libftpio/ftpio.c
895
while (*q && *q != '(') /* ) */
lib/libftpio/ftpio.c
896
q++;
lib/libftpio/ftpio.c
897
if (!*q) {
lib/libftpio/ftpio.c
901
q++;
lib/libftpio/ftpio.c
902
if (sscanf(q, "%c%c%c%d%c", &addr[0], &addr[1], &addr[2],
lib/libpam/modules/pam_echo/pam_echo.c
100
msg[len++] = *q;
lib/libpam/modules/pam_echo/pam_echo.c
53
const char *p, *q;
lib/libpam/modules/pam_echo/pam_echo.c
99
for (q = str; *q != '\0' && len < sizeof(msg) - 1; ++q)
lib/libssh/openbsd-compat/bsd-misc.c
46
char *p, *q;
lib/libssh/openbsd-compat/bsd-misc.c
60
if ((q = strdup(p)) == NULL) {
lib/libssh/openbsd-compat/bsd-misc.c
64
return q;
lib/libssh/openbsd-compat/glob.c
599
compare(const void *p, const void *q)
lib/libssh/openbsd-compat/glob.c
601
return(strcmp(*(char **)p, *(char **)q));
lib/libssh/openbsd-compat/glob.c
608
const struct glob_path_stat *q = (const struct glob_path_stat *)_q;
lib/libssh/openbsd-compat/glob.c
610
return(strcmp(p->gps_path, q->gps_path));
lib/libssh/openbsd-compat/glob.c
636
Char *p, *q;
lib/libssh/openbsd-compat/glob.c
672
q = pathend;
lib/libssh/openbsd-compat/glob.c
677
if (q+1 > pathend_last)
lib/libssh/openbsd-compat/glob.c
679
*q++ = *p++;
lib/libssh/openbsd-compat/glob.c
683
pathend = q;
lib/libssh/openbsd-compat/openssl-compat.h
123
void RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q);
lib/libssh/openbsd-compat/openssl-compat.h
127
int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q);
lib/libssh/openbsd-compat/openssl-compat.h
149
void DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q,
lib/libssh/openbsd-compat/openssl-compat.h
154
int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
lib/libssh/openbsd-compat/openssl-compat.h
73
void DSA_get0_pqg(const DSA *d, const BIGNUM **p, const BIGNUM **q,
lib/libssh/openbsd-compat/openssl-compat.h
78
int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g);
lib/libusb/libusb20_ugen20.c
1000
error = ugen20_be_ioctl(IOUSB(USB_QUIRK_NAME_GET), &q);
lib/libusb/libusb20_ugen20.c
1007
strlcpy(pq->quirkname, q.quirkname, sizeof(pq->quirkname));
lib/libusb/libusb20_ugen20.c
1016
struct usb_gen_quirk q;
lib/libusb/libusb20_ugen20.c
1019
memset(&q, 0, sizeof(q));
lib/libusb/libusb20_ugen20.c
1021
q.vid = pq->vid;
lib/libusb/libusb20_ugen20.c
1022
q.pid = pq->pid;
lib/libusb/libusb20_ugen20.c
1023
q.bcdDeviceLow = pq->bcdDeviceLow;
lib/libusb/libusb20_ugen20.c
1024
q.bcdDeviceHigh = pq->bcdDeviceHigh;
lib/libusb/libusb20_ugen20.c
1025
strlcpy(q.quirkname, pq->quirkname, sizeof(q.quirkname));
lib/libusb/libusb20_ugen20.c
1027
error = ugen20_be_ioctl(IOUSB(USB_DEV_QUIRK_ADD), &q);
lib/libusb/libusb20_ugen20.c
1040
struct usb_gen_quirk q;
lib/libusb/libusb20_ugen20.c
1043
memset(&q, 0, sizeof(q));
lib/libusb/libusb20_ugen20.c
1045
q.vid = pq->vid;
lib/libusb/libusb20_ugen20.c
1046
q.pid = pq->pid;
lib/libusb/libusb20_ugen20.c
1047
q.bcdDeviceLow = pq->bcdDeviceLow;
lib/libusb/libusb20_ugen20.c
1048
q.bcdDeviceHigh = pq->bcdDeviceHigh;
lib/libusb/libusb20_ugen20.c
1049
strlcpy(q.quirkname, pq->quirkname, sizeof(q.quirkname));
lib/libusb/libusb20_ugen20.c
1051
error = ugen20_be_ioctl(IOUSB(USB_DEV_QUIRK_REMOVE), &q);
lib/libusb/libusb20_ugen20.c
966
struct usb_gen_quirk q;
lib/libusb/libusb20_ugen20.c
969
memset(&q, 0, sizeof(q));
lib/libusb/libusb20_ugen20.c
971
q.index = quirk_index;
lib/libusb/libusb20_ugen20.c
973
error = ugen20_be_ioctl(IOUSB(USB_DEV_QUIRK_GET), &q);
lib/libusb/libusb20_ugen20.c
980
pq->vid = q.vid;
lib/libusb/libusb20_ugen20.c
981
pq->pid = q.pid;
lib/libusb/libusb20_ugen20.c
982
pq->bcdDeviceLow = q.bcdDeviceLow;
lib/libusb/libusb20_ugen20.c
983
pq->bcdDeviceHigh = q.bcdDeviceHigh;
lib/libusb/libusb20_ugen20.c
984
strlcpy(pq->quirkname, q.quirkname, sizeof(pq->quirkname));
lib/libusb/libusb20_ugen20.c
993
struct usb_gen_quirk q;
lib/libusb/libusb20_ugen20.c
996
memset(&q, 0, sizeof(q));
lib/libusb/libusb20_ugen20.c
998
q.index = quirk_index;
lib/libutil/efun.c
122
void *q = realloc(p, n);
lib/libutil/efun.c
123
if (q == NULL)
lib/libutil/efun.c
125
return q;
lib/libutil/gr_util.c
166
char buf[8192], *end, *line, *p, *q, *r, t;
lib/libutil/gr_util.c
183
p = q = end = buf;
lib/libutil/gr_util.c
186
for (p = q; q < end && *q != '\0'; ++q)
lib/libutil/gr_util.c
187
if (*q == '\n')
lib/libutil/gr_util.c
191
if (q >= end) {
lib/libutil/gr_util.c
194
if ((size_t)(q - p) >= sizeof(buf)) {
lib/libutil/gr_util.c
200
q = memmove(buf, p, end -p);
lib/libutil/gr_util.c
203
p = q = end = buf;
lib/libutil/gr_util.c
223
for (r = p; r < q && isspace(*r); ++r)
lib/libutil/gr_util.c
225
if (r == q || *r == '#') {
lib/libutil/gr_util.c
227
if (write(tfd, p, q -p + 1) != q - p + 1)
lib/libutil/gr_util.c
229
++q;
lib/libutil/gr_util.c
235
t = *q;
lib/libutil/gr_util.c
236
*q = '\0';
lib/libutil/gr_util.c
244
*q = t;
lib/libutil/gr_util.c
249
if (write(tfd, p, q - p + 1) != q - p + 1)
lib/libutil/gr_util.c
251
++q;
lib/libutil/gr_util.c
269
q++;
lib/libutil/gr_util.c
273
if (write(tfd, q, end - q) != end - q)
lib/libutil/gr_util.c
275
q = buf;
lib/libutil/login_class.c
145
const char *q;
lib/libutil/login_class.c
148
for (q = var; *q != '\0'; ++q) {
lib/libutil/login_class.c
149
tildes += (*q == '~');
lib/libutil/login_class.c
150
dollas += (*q == '$');
lib/libutil/pw_util.c
425
char buf[8192], *end, *line, *p, *q, *r, t;
lib/libutil/pw_util.c
449
p = q = end = buf;
lib/libutil/pw_util.c
452
for (p = q; q < end && *q != '\0'; ++q)
lib/libutil/pw_util.c
453
if (*q == '\n')
lib/libutil/pw_util.c
457
if (q >= end) {
lib/libutil/pw_util.c
460
if ((size_t)(q - p) >= sizeof(buf)) {
lib/libutil/pw_util.c
466
q = memmove(buf, p, end - p);
lib/libutil/pw_util.c
469
p = q = end = buf;
lib/libutil/pw_util.c
489
for (r = p; r < q && isspace(*r); ++r)
lib/libutil/pw_util.c
491
if (r == q || *r == '#') {
lib/libutil/pw_util.c
493
if (write(tfd, p, q - p + 1) != q - p + 1)
lib/libutil/pw_util.c
495
++q;
lib/libutil/pw_util.c
501
t = *q;
lib/libutil/pw_util.c
502
*q = '\0';
lib/libutil/pw_util.c
511
*q = t;
lib/libutil/pw_util.c
516
if (write(tfd, p, q - p + 1) != q - p + 1)
lib/libutil/pw_util.c
518
++q;
lib/libutil/pw_util.c
536
q++;
lib/libutil/pw_util.c
540
if (write(tfd, q, end - q) != end - q)
lib/libutil/pw_util.c
542
q = buf;
libexec/diff3prog/diff3prog.c
585
char *q;
libexec/diff3prog/diff3prog.c
607
q = reallocarray(overlap, newsz, sizeof(char));
libexec/diff3prog/diff3prog.c
608
if (q == NULL)
libexec/diff3prog/diff3prog.c
610
memset(q + szchanges, 0, incr * sizeof(char));
libexec/diff3prog/diff3prog.c
611
overlap = q;
libexec/dma/base64.c
119
unsigned char *q;
libexec/dma/base64.c
121
q = data;
libexec/dma/base64.c
127
*q++ = (val >> 16) & 0xff;
libexec/dma/base64.c
129
*q++ = (val >> 8) & 0xff;
libexec/dma/base64.c
131
*q++ = val & 0xff;
libexec/dma/base64.c
133
return q - (unsigned char *) data;
libexec/dma/base64.c
59
const unsigned char *q;
libexec/dma/base64.c
64
q = (const unsigned char *) data;
libexec/dma/base64.c
67
c = q[i++];
libexec/dma/base64.c
70
c += q[i];
libexec/dma/base64.c
74
c += q[i];
libexec/ftpd/ftpcmd.y
1705
char *p, *q;
libexec/ftpd/ftpcmd.y
1723
asprintf(&q, "%s/%s", ppw->pw_dir, path);
libexec/ftpd/ftpcmd.y
1725
q = strdup(ppw->pw_dir);
libexec/ftpd/ftpcmd.y
1727
p = q;
libexec/ftpd/ftpcmd.y
223
char *p, *q;
libexec/ftpd/ftpcmd.y
249
q = strchr(p, delim);
libexec/ftpd/ftpcmd.y
250
if (!q || *q != delim) {
libexec/ftpd/ftpcmd.y
259
*q++ = '\0';
libexec/ftpd/ftpcmd.y
263
p = q;
libexec/ftpd/ftpcmd.y
601
char p[64], *q;
libexec/ftpd/ftpcmd.y
604
q = sitemd5($6, p);
libexec/ftpd/ftpcmd.y
605
if (q != NULL)
libexec/getty/chat.c
110
char * q;
libexec/getty/chat.c
114
for (i = 0, q = *ptr; i++ < max; ++q) {
libexec/getty/chat.c
116
const char * s = strchr(xdigits, tolower(*q));
libexec/getty/chat.c
122
*ptr = q;
libexec/getty/chat.c
152
unsigned char *q, *r;
libexec/getty/chat.c
155
for (q = r = (unsigned char *)p; *r; ++q)
libexec/getty/chat.c
157
if (*q == '\\')
libexec/getty/chat.c
160
switch (*++q)
libexec/getty/chat.c
191
++q;
libexec/getty/chat.c
192
*r++ = getdigit(&q, 16, 2);
libexec/getty/chat.c
193
--q;
libexec/getty/chat.c
196
++q;
libexec/getty/chat.c
197
*r++ = getdigit(&q, 8, 3);
libexec/getty/chat.c
198
--q;
libexec/getty/chat.c
201
*r++ = *q;
libexec/getty/chat.c
204
--q;
libexec/getty/chat.c
209
*r++ = *q;
libexec/getty/chat.c
216
q = strrchr(p+1, *p);
libexec/getty/chat.c
217
if (q != NULL && *q == *p && q[1] == '\0') {
libexec/getty/chat.c
218
*q = '\0';
libexec/getty/main.c
336
char *q = name;
libexec/getty/main.c
338
while (*p && q < &name[sizeof name - 1]) {
libexec/getty/main.c
345
*q++ = *p++;
libexec/getty/subr.c
551
char *p, *q;
libexec/getty/subr.c
560
q = p;
libexec/getty/subr.c
561
while ((q = strchr(q, ','))) {
libexec/getty/subr.c
562
*q++ = '\0';
libexec/getty/subr.c
564
p = q;
libexec/rtld-elf/rtld_printf.c
126
const char *p, *percent, *q;
libexec/rtld-elf/rtld_printf.c
204
for (q = ksprintn(nbuf, num, *p++, NULL, 0); *q;)
libexec/rtld-elf/rtld_printf.c
205
PCHAR(*q--);
libexec/rtld-elf/rtld_printf.c
237
for (q=p;*q;q++)
libexec/rtld-elf/rtld_printf.c
238
PCHAR(*q);
sbin/dump/tape.c
381
struct req *p, *q, *prev;
sbin/dump/tape.c
395
q = &tslp->req[1];
sbin/dump/tape.c
404
*q = *p;
sbin/dump/tape.c
407
prev = q;
sbin/dump/tape.c
408
q += q->count;
sbin/dump/tape.c
416
q -= 1;
sbin/dump/tape.c
417
q->count = 0;
sbin/dump/tape.c
418
q = &tslp->req[0];
sbin/dump/tape.c
420
q->dblk = 0;
sbin/dump/tape.c
421
q->count = 1;
sbin/dump/tape.c
430
size = (char *)ntb - (char *)q;
sbin/dump/tape.c
431
if (atomic_write(slp->fd, q, size) != size) {
sbin/dump/tape.c
439
q->count = 1;
sbin/dump/tape.c
447
q->dblk = prev->dblk +
sbin/dump/tape.c
455
q->dblk = 0;
sbin/dump/tape.c
460
slp->req[0] = *q;
sbin/dump/tape.c
462
if (q->dblk == 0)
sbin/fsck_msdosfs/dir.c
634
u_char *q;
sbin/fsck_msdosfs/dir.c
641
q = ((empcl == cl) ? empty : buffer);
sbin/fsck_msdosfs/dir.c
642
assert(q != NULL);
sbin/fsck_msdosfs/dir.c
643
for (; q < p; q += 32)
sbin/fsck_msdosfs/dir.c
644
*q = SLOT_DELETED;
sbin/hammer/cmd_dedup.c
457
validate_dedup_pair(hammer_btree_leaf_elm_t p, hammer_btree_leaf_elm_t q)
sbin/hammer/cmd_dedup.c
459
if (HAMMER_ZONE(p->data_offset) != HAMMER_ZONE(q->data_offset))
sbin/hammer/cmd_dedup.c
461
if (p->data_len != q->data_len)
sbin/hammer/cmd_dedup.c
475
deduplicate(hammer_btree_leaf_elm_t p, hammer_btree_leaf_elm_t q)
sbin/hammer/cmd_dedup.c
485
if (p->data_offset == q->data_offset)
sbin/hammer/cmd_dedup.c
489
dedup.elm2 = q->base;
sbin/hammer/misc.c
180
int q, r;
sbin/hammer/misc.c
182
q = i >> 6;
sbin/hammer/misc.c
185
bits += q;
sbin/hammer2/zlib/hammer2_zlib_zutil.h
146
#define ZSWAP32(q) ((((q) >> 24) & 0xff) + (((q) >> 8) & 0xff00) + \
sbin/hammer2/zlib/hammer2_zlib_zutil.h
147
(((q) & 0xff00) << 8) + (((q) & 0xff) << 24))
sbin/ifconfig/ifconfig.c
113
static int calcorders(struct ifaddrs *ifa, struct ifa_queue *q);
sbin/ifconfig/ifconfig.c
115
struct ifa_queue *q);
sbin/ifconfig/ifconfig.c
118
struct ifa_queue *q);
sbin/ifconfig/ifconfig.c
154
calcorders(struct ifaddrs *ifa, struct ifa_queue *q)
sbin/ifconfig/ifconfig.c
172
TAILQ_INSERT_TAIL(q, cur, link);
sbin/ifconfig/ifconfig.c
193
cmpifaddrs(struct ifaddrs *a, struct ifaddrs *b, struct ifa_queue *q)
sbin/ifconfig/ifconfig.c
201
TAILQ_FOREACH(cur, q, link) {
sbin/ifconfig/ifconfig.c
217
TAILQ_FOREACH(cur, q, link) {
sbin/ifconfig/ifconfig.c
238
sortifaddrs(struct ifaddrs *list, ifaddrs_cmp compare, struct ifa_queue *q)
sbin/ifconfig/ifconfig.c
256
list = sortifaddrs(list, compare, q);
sbin/ifconfig/ifconfig.c
257
right = sortifaddrs(right, compare, q);
sbin/ifconfig/ifconfig.c
266
} else if (compare(list, right, q) <= 0) {
sbin/ifconfig/ifconfig.c
356
struct ifa_queue q = TAILQ_HEAD_INITIALIZER(q);
sbin/ifconfig/ifconfig.c
536
if (calcorders(ifap, &q) != 0)
sbin/ifconfig/ifconfig.c
538
sifap = sortifaddrs(ifap, cmpifaddrs, &q);
sbin/ifconfig/ifconfig.c
540
TAILQ_FOREACH_MUTABLE(cur, &q, link, tmp)
sbin/init/init.c
1717
char *q;
sbin/init/init.c
1732
q = t;
sbin/init/init.c
1735
q = t;
sbin/init/init.c
1739
q = t = NULL;
sbin/init/init.c
1749
return q;
sbin/ip6fw/ip6fw.c
684
char *p = *vp,*q;
sbin/ip6fw/ip6fw.c
707
q = strchr(p, ',');
sbin/ip6fw/ip6fw.c
708
if (q)
sbin/ip6fw/ip6fw.c
709
*q++ = '\0';
sbin/ip6fw/ip6fw.c
717
p = q;
sbin/ip6fw/ip6fw.c
724
char *p = *vp,*q;
sbin/ip6fw/ip6fw.c
734
q = strchr(p, ',');
sbin/ip6fw/ip6fw.c
735
if (q)
sbin/ip6fw/ip6fw.c
736
*q++ = '\0';
sbin/ip6fw/ip6fw.c
744
p = q;
sbin/ipfw/ipfw2.c
1345
list_queues(struct dn_ioc_flowset *fs, struct dn_ioc_flowqueue *q)
sbin/ipfw/ipfw2.c
1359
heapsort(q, fs->rq_elements, sizeof(*q), sort_q);
sbin/ipfw/ipfw2.c
1364
ina.s_addr = htonl(q[l].id.u.ip.src_ip);
sbin/ipfw/ipfw2.c
1365
printf("%3d ", q[l].hash_slot);
sbin/ipfw/ipfw2.c
1366
pe = getprotobynumber(q[l].id.u.ip.proto);
sbin/ipfw/ipfw2.c
1370
printf("%4u ", q[l].id.u.ip.proto);
sbin/ipfw/ipfw2.c
1372
inet_ntoa(ina), q[l].id.u.ip.src_port);
sbin/ipfw/ipfw2.c
1373
ina.s_addr = htonl(q[l].id.u.ip.dst_ip);
sbin/ipfw/ipfw2.c
1375
inet_ntoa(ina), q[l].id.u.ip.dst_port);
sbin/ipfw/ipfw2.c
1377
(uintmax_t)q[l].tot_pkts, (uintmax_t)q[l].tot_bytes,
sbin/ipfw/ipfw2.c
1378
q[l].len, q[l].len_bytes, q[l].drops);
sbin/ipfw/ipfw2.c
1381
(uintmax_t)q[l].S, (uintmax_t)q[l].F);
sbin/ipfw/ipfw2.c
1427
struct dn_ioc_flowqueue *q;
sbin/ipfw/ipfw2.c
1445
l = sizeof(*p) + p->fs.rq_elements * sizeof(*q);
sbin/ipfw/ipfw2.c
1470
q = (struct dn_ioc_flowqueue *)(p+1);
sbin/ipfw/ipfw2.c
1471
list_queues(&p->fs, q);
sbin/ipfw/ipfw2.c
1478
l = sizeof(*fs) + fs->rq_elements * sizeof(*q);
sbin/ipfw/ipfw2.c
1481
q = (struct dn_ioc_flowqueue *)(fs+1);
sbin/ipfw/ipfw2.c
1485
list_queues(fs, q);
sbin/ipfw/ipfw2.c
2011
char *q; /* points to the separator */
sbin/ipfw/ipfw2.c
2020
q = strchr(p, ',');
sbin/ipfw/ipfw2.c
2021
if (q)
sbin/ipfw/ipfw2.c
2022
*q++ = '\0';
sbin/ipfw/ipfw2.c
2027
p = q;
sbin/ipfw/ipfw2.c
3758
char *q;
sbin/ipfw/ipfw2.c
3760
q = strchr(*av, '/');
sbin/ipfw/ipfw2.c
3761
if (q != NULL) {
sbin/ipfw/ipfw2.c
3765
*q = '\0';
sbin/ipfw/ipfw2.c
3767
*q = '/';
sbin/ipfw/ipfw2.c
3773
bits = strtoul(q + 1, &eptr, 0);
sbin/ipfw3/ipfw3dummynet.c
502
struct dn_ioc_flowqueue *q;
sbin/ipfw3/ipfw3dummynet.c
520
l = sizeof(*p) + p->fs.rq_elements * sizeof(*q);
sbin/ipfw3/ipfw3dummynet.c
545
q = (struct dn_ioc_flowqueue *)(p+1);
sbin/ipfw3/ipfw3dummynet.c
546
show_queues(&p->fs, q);
sbin/ipfw3/ipfw3dummynet.c
554
l = sizeof(*fs) + fs->rq_elements * sizeof(*q);
sbin/ipfw3/ipfw3dummynet.c
557
q = (struct dn_ioc_flowqueue *)(fs+1);
sbin/ipfw3/ipfw3dummynet.c
561
show_queues(fs, q);
sbin/ipfw3/ipfw3dummynet.c
566
show_queues(struct dn_ioc_flowset *fs, struct dn_ioc_flowqueue *q)
sbin/ipfw3/ipfw3dummynet.c
580
heapsort(q, fs->rq_elements, sizeof(*q), sort_q);
sbin/ipfw3/ipfw3dummynet.c
585
ina.s_addr = htonl(q[l].id.u.ip.src_ip);
sbin/ipfw3/ipfw3dummynet.c
586
printf("%3d ", q[l].hash_slot);
sbin/ipfw3/ipfw3dummynet.c
587
pe = getprotobynumber(q[l].id.u.ip.proto);
sbin/ipfw3/ipfw3dummynet.c
591
printf("%4u ", q[l].id.u.ip.proto);
sbin/ipfw3/ipfw3dummynet.c
593
inet_ntoa(ina), q[l].id.u.ip.src_port);
sbin/ipfw3/ipfw3dummynet.c
594
ina.s_addr = htonl(q[l].id.u.ip.dst_ip);
sbin/ipfw3/ipfw3dummynet.c
596
inet_ntoa(ina), q[l].id.u.ip.dst_port);
sbin/ipfw3/ipfw3dummynet.c
598
(uintmax_t)q[l].tot_pkts, (uintmax_t)q[l].tot_bytes,
sbin/ipfw3/ipfw3dummynet.c
599
q[l].len, q[l].len_bytes, q[l].drops);
sbin/ipfw3/ipfw3dummynet.c
602
(uintmax_t)q[l].S, (uintmax_t)q[l].F);
sbin/ipfw3/ipfw3dummynet.h
45
void show_queues(struct dn_ioc_flowset *fs, struct dn_ioc_flowqueue *q);
sbin/iscontrol/iscontrol.c
128
char *pname, *p, *q, *ta, *kw;
sbin/iscontrol/iscontrol.c
198
q = op->targetAddress;
sbin/iscontrol/iscontrol.c
199
if(*q == '[' && (q = strchr(q, ']')) != NULL) {
sbin/iscontrol/iscontrol.c
200
*q++ = '\0';
sbin/iscontrol/iscontrol.c
203
q = op->targetAddress;
sbin/iscontrol/iscontrol.c
204
if((p = strchr(q, ':')) != NULL) {
sbin/iscontrol/iscontrol.c
209
if(p || ((p = strchr(q, ',')) != NULL)) {
sbin/iscontrol/login.c
169
char *p, *q, *ta = NULL;
sbin/iscontrol/login.c
173
q = op->targetAddress = strdup(eq+1);
sbin/iscontrol/login.c
174
if(*q == '[') {
sbin/iscontrol/login.c
176
if((q = strchr(q, ']')) != NULL) {
sbin/iscontrol/login.c
177
*q++ = '\0';
sbin/iscontrol/login.c
181
q = op->targetAddress;
sbin/iscontrol/login.c
183
if((p = strchr(q, ',')) != NULL) {
sbin/iscontrol/login.c
187
if((p = strchr(q, ':')) != NULL) {
sbin/ping6/ping6.c
2442
char *q;
sbin/ping6/ping6.c
2459
for (q = name; *q; q++) {
sbin/ping6/ping6.c
2460
if (isupper(*(unsigned char *)q))
sbin/ping6/ping6.c
2461
*q = tolower(*(unsigned char *)q);
sbin/route/route.c
1098
q = NULL;
sbin/route/route.c
1099
if (which == RTA_DST && (q = strchr(str, '/')) != NULL)
sbin/route/route.c
1100
*q = '\0';
sbin/route/route.c
1121
if (q != NULL)
sbin/route/route.c
1122
*q++ = '/';
sbin/route/route.c
1124
return(inet6_makenetandmask(&su->sin6, q));
sbin/route/route.c
1164
q = strchr(str,'/');
sbin/route/route.c
1165
if (q != NULL && which == RTA_DST) {
sbin/route/route.c
1166
*q = '\0';
sbin/route/route.c
1169
val, &su->sin, strtoul(q+1, 0, 0));
sbin/route/route.c
1172
*q = '/';
sbin/route/route.c
1206
int len = atoi(len_str), q, r;
sbin/route/route.c
1233
q = len >> 3;
sbin/route/route.c
1238
if (q > 0)
sbin/route/route.c
1239
memset((void *)p, 0xff, q);
sbin/route/route.c
1241
*((u_char *)p + q) = (0xff00 >> r) & 0xff;
sbin/route/route.c
993
char *q;
sbin/routed/main.c
174
n = (int)strtoul(p+1, &q, 0);
sbin/routed/main.c
175
if (*q == '\0'
sbin/routed/main.c
197
q = strdup(optarg);
sbin/routed/main.c
198
cp = parse_parms(q, 0);
sbin/routed/main.c
201
free(q);
sbin/routed/main.c
89
char *p, *q;
stand/boot/common/interp_parse.c
151
PARSE_FAIL((q = index(p, token)) == NULL);
stand/boot/common/interp_parse.c
153
q = p;
stand/boot/common/interp_parse.c
154
while (*q && !isspace(*q))
stand/boot/common/interp_parse.c
155
++q;
stand/boot/common/interp_parse.c
157
tmp = *q;
stand/boot/common/interp_parse.c
158
*q = '\0';
stand/boot/common/interp_parse.c
165
*q = tmp; /* restore value */
stand/boot/common/interp_parse.c
166
p = q + (token ? 1 : 0);
stand/boot/common/interp_parse.c
82
char *val, *p, *q, *copy = NULL;
stand/boot/pc32/boot2/boot2.c
441
char *p, *q;
stand/boot/pc32/boot2/boot2.c
472
for (q = arg--; *q && *q != '('; q++);
stand/boot/pc32/boot2/boot2.c
473
if (*q) {
stand/boot/pc32/boot2/boot2.c
481
if (q - arg != 2)
stand/boot/pc32/boot2/boot2.c
645
uint64_t q;
stand/boot/pc32/boot2/boot2.c
664
q = va_arg(ap, uint64_t);
stand/boot/pc32/boot2/boot2.c
667
if ((q & 15) < 10)
stand/boot/pc32/boot2/boot2.c
668
*s++ = '0' + (q & 15);
stand/boot/pc32/boot2/boot2.c
670
*s++ = 'a' + (q & 15) - 10;
stand/boot/pc32/boot2/boot2.c
671
} while (q >>= 4);
stand/lib/qdivrem.c
105
return (tmp.q);
stand/lib/qdivrem.c
114
q = &qspace[0];
stand/lib/qdivrem.c
165
return (tmp.q);
stand/lib/qdivrem.c
177
q[i] = 0;
stand/lib/qdivrem.c
178
q += 4 - m;
stand/lib/qdivrem.c
256
q[j] = qhat;
stand/lib/qdivrem.c
273
*arq = tmp.q;
stand/lib/qdivrem.c
278
return (tmp.q);
stand/lib/qdivrem.c
89
digit *u, *v, *q;
stand/lib/quad.h
52
quad_t q; /* as a (signed) quad */
sys/bus/firewire/firewire.c
1001
STAILQ_REMOVE(&xfer->q->q, xfer, fw_xfer, link);
sys/bus/firewire/firewire.c
1002
xfer->q->queued --;
sys/bus/firewire/firewire.c
1895
STAILQ_INSERT_TAIL(&rb->fc->ir[bind->sub]->q,
sys/bus/firewire/firewire.c
1930
STAILQ_INSERT_TAIL(&xferq->q, rb->xfer, link);
sys/bus/firewire/firewire.c
246
xfer->q = xferq;
sys/bus/firewire/firewire.c
303
STAILQ_INSERT_TAIL(&xfer->q->q, xfer, link);
sys/bus/firewire/firewire.c
304
xfer->q->queued ++;
sys/bus/firewire/firewire.c
308
xfer->q->start(fc);
sys/bus/firewire/firewire.c
502
while ((xfer = STAILQ_FIRST(&xferq->q)) != NULL) {
sys/bus/firewire/firewire.c
503
STAILQ_REMOVE_HEAD(&xferq->q, link);
sys/bus/firewire/firewire.c
705
STAILQ_INIT(&fc->atq->q);
sys/bus/firewire/firewire.c
706
STAILQ_INIT(&fc->ats->q);
sys/bus/firewire/firewire.c
721
STAILQ_INIT(&fc->it[i]->q);
sys/bus/firewire/firewire.c
722
STAILQ_INIT(&fc->ir[i]->q);
sys/bus/firewire/firewirereg.h
187
STAILQ_HEAD(, fw_xfer) q;
sys/bus/firewire/firewirereg.h
235
struct fw_xferq *q;
sys/bus/firewire/fwdev.c
100
if (q->flag & (FWXFERQ_RUNNING | FWXFERQ_EXTBUF))
sys/bus/firewire/fwdev.c
103
q->bulkxfer = (struct fw_bulkxfer *) kmalloc(
sys/bus/firewire/fwdev.c
108
q->buf = fwdma_malloc_multiseg(fc, sizeof(u_int32_t),
sys/bus/firewire/fwdev.c
111
if (q->buf == NULL) {
sys/bus/firewire/fwdev.c
112
kfree(q->bulkxfer, M_FW);
sys/bus/firewire/fwdev.c
113
q->bulkxfer = NULL;
sys/bus/firewire/fwdev.c
116
q->bnchunk = b->nchunk;
sys/bus/firewire/fwdev.c
117
q->bnpacket = b->npacket;
sys/bus/firewire/fwdev.c
118
q->psize = (b->psize + 3) & ~3;
sys/bus/firewire/fwdev.c
119
q->queued = 0;
sys/bus/firewire/fwdev.c
121
STAILQ_INIT(&q->stvalid);
sys/bus/firewire/fwdev.c
122
STAILQ_INIT(&q->stfree);
sys/bus/firewire/fwdev.c
123
STAILQ_INIT(&q->stdma);
sys/bus/firewire/fwdev.c
124
q->stproc = NULL;
sys/bus/firewire/fwdev.c
126
for(i = 0 ; i < q->bnchunk; i++){
sys/bus/firewire/fwdev.c
127
q->bulkxfer[i].poffset = i * q->bnpacket;
sys/bus/firewire/fwdev.c
128
q->bulkxfer[i].mbuf = NULL;
sys/bus/firewire/fwdev.c
129
STAILQ_INSERT_TAIL(&q->stfree, &q->bulkxfer[i], link);
sys/bus/firewire/fwdev.c
132
q->flag &= ~FWXFERQ_MODEMASK;
sys/bus/firewire/fwdev.c
133
q->flag |= FWXFERQ_STREAM;
sys/bus/firewire/fwdev.c
134
q->flag |= FWXFERQ_EXTBUF;
sys/bus/firewire/fwdev.c
140
fwdev_freebuf(struct fw_xferq *q)
sys/bus/firewire/fwdev.c
142
if (q->flag & FWXFERQ_EXTBUF) {
sys/bus/firewire/fwdev.c
143
if (q->buf != NULL)
sys/bus/firewire/fwdev.c
144
fwdma_free_multiseg(q->buf);
sys/bus/firewire/fwdev.c
145
q->buf = NULL;
sys/bus/firewire/fwdev.c
146
kfree(q->bulkxfer, M_FW);
sys/bus/firewire/fwdev.c
147
q->bulkxfer = NULL;
sys/bus/firewire/fwdev.c
148
q->flag &= ~FWXFERQ_EXTBUF;
sys/bus/firewire/fwdev.c
149
q->psize = 0;
sys/bus/firewire/fwdev.c
150
q->maxq = FWMAXQUEUE;
sys/bus/firewire/fwdev.c
215
for (xfer = STAILQ_FIRST(&ir->q);
sys/bus/firewire/fwdev.c
216
xfer != NULL; xfer = STAILQ_FIRST(&ir->q)) {
sys/bus/firewire/fwdev.c
218
STAILQ_REMOVE_HEAD(&ir->q, link);
sys/bus/firewire/fwdev.c
281
xfer = STAILQ_FIRST(&ir->q);
sys/bus/firewire/fwdev.c
309
STAILQ_REMOVE_HEAD(&ir->q, link);
sys/bus/firewire/fwdev.c
760
if (STAILQ_FIRST(&ir->q) != NULL)
sys/bus/firewire/fwdev.c
95
fwdev_allocbuf(struct firewire_comm *fc, struct fw_xferq *q,
sys/bus/firewire/fwohci.c
855
xfer = STAILQ_FIRST(&dbch->xferq.q);
sys/bus/firewire/fwohci.c
862
STAILQ_REMOVE_HEAD(&dbch->xferq.q, link);
sys/bus/pccard/pccard_cis_quirks.c
202
pccard_cis_quirk_match(struct pccard_softc *sc, struct pccard_cis_quirk *q)
sys/bus/pccard/pccard_cis_quirks.c
204
if ((sc->card.manufacturer == q->manufacturer) &&
sys/bus/pccard/pccard_cis_quirks.c
205
(sc->card.product == q->product) &&
sys/bus/pccard/pccard_cis_quirks.c
211
(strcmp(sc->card.cis1_info[0], q->cis1_info[0]) == 0) &&
sys/bus/pccard/pccard_cis_quirks.c
213
(strcmp(sc->card.cis1_info[1], q->cis1_info[1]) == 0))))
sys/bus/pccard/pccard_cis_quirks.c
226
struct pccard_cis_quirk *q;
sys/bus/pccard/pccard_cis_quirks.c
232
q = &pccard_cis_quirks[i];
sys/bus/pccard/pccard_cis_quirks.c
233
if (!pccard_cis_quirk_match(sc, q))
sys/bus/pccard/pccard_cis_quirks.c
263
if (pf_last == q->pf) {
sys/bus/pccard/pccard_cis_quirks.c
269
*cfe = *q->cfe;
sys/bus/pccard/pccard_cis_quirks.c
278
*pf = *q->pf;
sys/bus/pccard/pccard_cis_quirks.c
286
*cfe = *q->cfe;
sys/bus/pccard/pccard_cis_quirks.c
289
pf_last = q->pf;
sys/bus/pci/pci.c
1879
struct pci_quirk *q;
sys/bus/pci/pci.c
1884
for (q = &pci_quirks[0]; q->devid; q++) {
sys/bus/pci/pci.c
1885
if (q->devid == pci_get_devid(dev) &&
sys/bus/pci/pci.c
1886
q->type == PCI_QUIRK_DISABLE_MSI)
sys/bus/pci/pci.c
3018
struct pci_quirk *q;
sys/bus/pci/pci.c
3040
for (q = &pci_quirks[0]; q->devid; q++) {
sys/bus/pci/pci.c
3041
if (q->devid == ((cfg->device << 16) | cfg->vendor)
sys/bus/pci/pci.c
3042
&& q->type == PCI_QUIRK_MAP_REG)
sys/bus/pci/pci.c
3043
pci_add_map(pcib, bus, dev, b, s, f, q->arg1, rl,
sys/bus/pci/pci.c
333
const struct pci_quirk *q;
sys/bus/pci/pci.c
335
for (q = &pci_quirks[0]; q->devid; q++) {
sys/bus/pci/pci.c
336
if (q->devid == devid && q->type == quirk)
sys/bus/u4b/serial/ulpt.c
702
char *p, *q;
sys/bus/u4b/serial/ulpt.c
710
q = strchr(p, ';');
sys/bus/u4b/serial/ulpt.c
711
if (q)
sys/bus/u4b/serial/ulpt.c
712
printf("%.*s", (int)(q - p + 1), p);
sys/bus/u4b/usb_util.c
198
char *q;
sys/bus/u4b/usb_util.c
203
q = e = p;
sys/bus/u4b/usb_util.c
204
while (*q == ' ') /* skip leading spaces */
sys/bus/u4b/usb_util.c
205
q++;
sys/bus/u4b/usb_util.c
206
while ((*p = *q++)) /* copy string */
sys/bus/u4b/uvc/uvc_drv.c
341
uvc_drv_xu_ctrl_query(struct uvc_drv_video *v, struct uvc_xu_control_query *q)
sys/bus/u4b/uvc/uvc_drv.c
347
__func__, q->query, q->unit, q->selector, q->size);
sys/bus/u4b/uvc/uvc_drv.c
351
if (!(q->query & 0x80))
sys/bus/u4b/uvc/uvc_drv.c
352
ret = copyin(q->data, tmp, q->size);
sys/bus/u4b/uvc/uvc_drv.c
355
ret = uvc_drv_do_request(v->sc->udev, q->query, q->unit, 0, q->selector,
sys/bus/u4b/uvc/uvc_drv.c
356
tmp, q->size, USB_DEFAULT_TIMEOUT);
sys/bus/u4b/uvc/uvc_drv.c
361
if (q->query & 0x80)
sys/bus/u4b/uvc/uvc_drv.c
362
ret = copyout(tmp, q->data, q->size);
sys/bus/u4b/uvc/uvc_drv.c
364
if (q->unit == v->ctrl->h264id) {
sys/bus/u4b/uvc/uvc_drv.h
767
struct uvc_xu_control_query *q);
sys/crypto/twofish/twofish.c
292
case 4: b0 = q(1, (u_int8_t) b0) ^ extract_byte(key[3],0);
sys/crypto/twofish/twofish.c
293
b1 = q(0, (u_int8_t) b1) ^ extract_byte(key[3],1);
sys/crypto/twofish/twofish.c
294
b2 = q(0, (u_int8_t) b2) ^ extract_byte(key[3],2);
sys/crypto/twofish/twofish.c
295
b3 = q(1, (u_int8_t) b3) ^ extract_byte(key[3],3);
sys/crypto/twofish/twofish.c
297
case 3: b0 = q(1, (u_int8_t) b0) ^ extract_byte(key[2],0);
sys/crypto/twofish/twofish.c
298
b1 = q(1, (u_int8_t) b1) ^ extract_byte(key[2],1);
sys/crypto/twofish/twofish.c
299
b2 = q(0, (u_int8_t) b2) ^ extract_byte(key[2],2);
sys/crypto/twofish/twofish.c
300
b3 = q(0, (u_int8_t) b3) ^ extract_byte(key[2],3);
sys/crypto/twofish/twofish.c
302
case 2: b0 = q(0, (u_int8_t) (q(0, (u_int8_t) b0) ^ extract_byte(key[1],0))) ^ extract_byte(key[0],0);
sys/crypto/twofish/twofish.c
303
b1 = q(0, (u_int8_t) (q(1, (u_int8_t) b1) ^ extract_byte(key[1],1))) ^ extract_byte(key[0],1);
sys/crypto/twofish/twofish.c
304
b2 = q(1, (u_int8_t) (q(0, (u_int8_t) b2) ^ extract_byte(key[1],2))) ^ extract_byte(key[0],2);
sys/crypto/twofish/twofish.c
305
b3 = q(1, (u_int8_t) (q(1, (u_int8_t) b3) ^ extract_byte(key[1],3))) ^ extract_byte(key[0],3);
sys/crypto/twofish/twofish.c
313
#define q20(x) q(0,q(0,x) ^ extract_byte(key[1],0)) ^ extract_byte(key[0],0)
sys/crypto/twofish/twofish.c
314
#define q21(x) q(0,q(1,x) ^ extract_byte(key[1],1)) ^ extract_byte(key[0],1)
sys/crypto/twofish/twofish.c
315
#define q22(x) q(1,q(0,x) ^ extract_byte(key[1],2)) ^ extract_byte(key[0],2)
sys/crypto/twofish/twofish.c
316
#define q23(x) q(1,q(1,x) ^ extract_byte(key[1],3)) ^ extract_byte(key[0],3)
sys/crypto/twofish/twofish.c
318
#define q30(x) q(0,q(0,q(1, x) ^ extract_byte(key[2],0)) ^ extract_byte(key[1],0)) ^ extract_byte(key[0],0)
sys/crypto/twofish/twofish.c
319
#define q31(x) q(0,q(1,q(1, x) ^ extract_byte(key[2],1)) ^ extract_byte(key[1],1)) ^ extract_byte(key[0],1)
sys/crypto/twofish/twofish.c
320
#define q32(x) q(1,q(0,q(0, x) ^ extract_byte(key[2],2)) ^ extract_byte(key[1],2)) ^ extract_byte(key[0],2)
sys/crypto/twofish/twofish.c
321
#define q33(x) q(1,q(1,q(0, x) ^ extract_byte(key[2],3)) ^ extract_byte(key[1],3)) ^ extract_byte(key[0],3)
sys/crypto/twofish/twofish.c
323
#define q40(x) q(0,q(0,q(1, q(1, x) ^ extract_byte(key[3],0)) ^ extract_byte(key[2],0)) ^ extract_byte(key[1],0)) ^ extract_byte(key[0],0)
sys/crypto/twofish/twofish.c
324
#define q41(x) q(0,q(1,q(1, q(0, x) ^ extract_byte(key[3],1)) ^ extract_byte(key[2],1)) ^ extract_byte(key[1],1)) ^ extract_byte(key[0],1)
sys/crypto/twofish/twofish.c
325
#define q42(x) q(1,q(0,q(0, q(0, x) ^ extract_byte(key[3],2)) ^ extract_byte(key[2],2)) ^ extract_byte(key[1],2)) ^ extract_byte(key[0],2)
sys/crypto/twofish/twofish.c
326
#define q43(x) q(1,q(1,q(0, q(1, x) ^ extract_byte(key[3],3)) ^ extract_byte(key[2],3)) ^ extract_byte(key[1],3)) ^ extract_byte(key[0],3)
sys/dev/disk/iscsi/initiator/isc_subr.c
65
char *p, *q;
sys/dev/disk/iscsi/initiator/isc_subr.c
72
q = kmalloc(len, M_ISCSI, M_WAITOK);
sys/dev/disk/iscsi/initiator/isc_subr.c
73
bcopy(p, q, len);
sys/dev/disk/iscsi/initiator/isc_subr.c
76
return q;
sys/dev/disk/isp/isp.c
2087
uint8_t q[QENTRY_LEN];
sys/dev/disk/isp/isp.c
2107
ISP_MEMZERO(q, QENTRY_LEN);
sys/dev/disk/isp/isp.c
2108
plp = (isp_plogx_t *) q;
sys/dev/disk/isp/isp.c
3253
uint8_t q[QENTRY_LEN];
sys/dev/disk/isp/isp.c
3271
ISP_MEMZERO(un.q, QENTRY_LEN);
sys/dev/disk/isp/isp.c
4036
uint8_t q[QENTRY_LEN];
sys/dev/disk/isp/isp.c
4051
ISP_MEMZERO(un.q, QENTRY_LEN);
sys/dev/disk/isp/ispvar.h
134
#define ISP_QUEUE_ENTRY(q, idx) (((uint8_t *)q) + ((idx) * QENTRY_LEN))
sys/dev/disk/sym/sym_hipd.c
458
m_link_s *q;
sys/dev/disk/sym/sym_hipd.c
484
q = &h[i];
sys/dev/disk/sym/sym_hipd.c
485
while (q->next && q->next != (m_link_s *) b) {
sys/dev/disk/sym/sym_hipd.c
486
q = q->next;
sys/dev/disk/sym/sym_hipd.c
488
if (!q->next) {
sys/dev/disk/sym/sym_hipd.c
493
q->next = q->next->next;
sys/dev/drm/amd/amdgpu/amdgpu_gfx.h
316
#define amdgpu_gfx_select_me_pipe_q(adev, me, pipe, q) (adev)->gfx.funcs->select_me_pipe_q((adev), (me), (pipe), (q))
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
4278
u32 me, u32 pipe, u32 q)
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
4280
cik_srbm_select(adev, me, pipe, q, 0);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
3545
u32 me, u32 pipe, u32 q)
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
3547
vi_srbm_select(adev, me, pipe, q, 0);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1373
u32 me, u32 pipe, u32 q)
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1375
soc15_grbm_select(adev, me, pipe, q, 0);
sys/dev/drm/i915/i915_drv.h
3665
__raw_read(64, q)
sys/dev/drm/i915/i915_drv.h
3670
__raw_write(64, q)
sys/dev/drm/i915/intel_display.c
15130
struct intel_quirk *q = &intel_quirks[i];
sys/dev/drm/i915/intel_display.c
15132
if (d->device == q->device &&
sys/dev/drm/i915/intel_display.c
15133
(d->subsystem_vendor == q->subsystem_vendor ||
sys/dev/drm/i915/intel_display.c
15134
q->subsystem_vendor == PCI_ANY_ID) &&
sys/dev/drm/i915/intel_display.c
15135
(d->subsystem_device == q->subsystem_device ||
sys/dev/drm/i915/intel_display.c
15136
q->subsystem_device == PCI_ANY_ID))
sys/dev/drm/i915/intel_display.c
15137
q->hook(dev);
sys/dev/drm/include/linux/kernel.h
118
uintmax_t q = (x / divisor);
sys/dev/drm/include/linux/kernel.h
121
return ((q * multiplier) + ((r * multiplier) / divisor));
sys/dev/drm/include/linux/wait.h
211
waitqueue_active(wait_queue_head_t *q)
sys/dev/drm/include/linux/wait.h
213
return !list_empty(&q->head);
sys/dev/drm/include/linux/wait.h
57
void __init_waitqueue_head(wait_queue_head_t *q, const char *name, struct lock_class_key *);
sys/dev/drm/include/linux/wait.h
60
init_waitqueue_head(wait_queue_head_t *q)
sys/dev/drm/include/linux/wait.h
62
__init_waitqueue_head(q, "", NULL);
sys/dev/drm/include/linux/wait.h
65
void __wake_up_core(wait_queue_head_t *q, int num_to_wake_up);
sys/dev/drm/include/linux/wait.h
68
wake_up(wait_queue_head_t *q)
sys/dev/drm/include/linux/wait.h
70
lockmgr(&q->lock, LK_EXCLUSIVE);
sys/dev/drm/include/linux/wait.h
71
__wake_up_core(q, 1);
sys/dev/drm/include/linux/wait.h
72
lockmgr(&q->lock, LK_RELEASE);
sys/dev/drm/include/linux/wait.h
73
wakeup_one(q);
sys/dev/drm/include/linux/wait.h
77
wake_up_all(wait_queue_head_t *q)
sys/dev/drm/include/linux/wait.h
79
lockmgr(&q->lock, LK_EXCLUSIVE);
sys/dev/drm/include/linux/wait.h
80
__wake_up_core(q, 0);
sys/dev/drm/include/linux/wait.h
81
lockmgr(&q->lock, LK_RELEASE);
sys/dev/drm/include/linux/wait.h
82
wakeup(q);
sys/dev/drm/include/linux/wait.h
93
void prepare_to_wait(wait_queue_head_t *q, wait_queue_entry_t *wait, int state);
sys/dev/drm/include/linux/wait.h
94
void finish_wait(wait_queue_head_t *q, wait_queue_entry_t *wait);
sys/dev/drm/linux_wait.c
133
void __init_waitqueue_head(wait_queue_head_t *q,
sys/dev/drm/linux_wait.c
136
lockinit(&q->lock, "lwq", 0, 0);
sys/dev/drm/linux_wait.c
137
INIT_LIST_HEAD(&q->head);
sys/dev/drm/linux_wait.c
32
default_wake_function(wait_queue_entry_t *q, unsigned mode, int wake_flags, void *key)
sys/dev/drm/linux_wait.c
34
return wake_up_process(q->private);
sys/dev/drm/linux_wait.c
50
__wake_up_core(wait_queue_head_t *q, int num_to_wake_up)
sys/dev/drm/linux_wait.c
55
list_for_each_entry_safe(curr, next, &q->head, entry) {
sys/dev/drm/linux_wait.c
77
prepare_to_wait(wait_queue_head_t *q, wait_queue_entry_t *wait, int state)
sys/dev/drm/linux_wait.c
79
lockmgr(&q->lock, LK_EXCLUSIVE);
sys/dev/drm/linux_wait.c
81
__add_wait_queue(q, wait);
sys/dev/drm/linux_wait.c
83
lockmgr(&q->lock, LK_RELEASE);
sys/dev/drm/linux_wait.c
87
finish_wait(wait_queue_head_t *q, wait_queue_entry_t *wait)
sys/dev/drm/linux_wait.c
91
lockmgr(&q->lock, LK_EXCLUSIVE);
sys/dev/drm/linux_wait.c
94
lockmgr(&q->lock, LK_RELEASE);
sys/dev/misc/kbd/atkbd.c
87
#define HAS_QUIRK(p, q) (((atkbdc_softc_t *)(p))->quirks & q)
sys/dev/misc/kbd/atkbdc.c
381
addq(kbdkqueue *q, int c)
sys/dev/misc/kbd/atkbdc.c
383
if (nextq(q->tail) != q->head) {
sys/dev/misc/kbd/atkbdc.c
384
q->q[q->tail] = c;
sys/dev/misc/kbd/atkbdc.c
385
q->tail = nextq(q->tail);
sys/dev/misc/kbd/atkbdc.c
387
++q->call_count;
sys/dev/misc/kbd/atkbdc.c
388
++q->qcount;
sys/dev/misc/kbd/atkbdc.c
389
if (q->qcount > q->max_qcount)
sys/dev/misc/kbd/atkbdc.c
390
q->max_qcount = q->qcount;
sys/dev/misc/kbd/atkbdc.c
398
removeq(kbdkqueue *q)
sys/dev/misc/kbd/atkbdc.c
402
if (q->tail != q->head) {
sys/dev/misc/kbd/atkbdc.c
403
c = q->q[q->head];
sys/dev/misc/kbd/atkbdc.c
404
q->head = nextq(q->head);
sys/dev/misc/kbd/atkbdc.c
406
--q->qcount;
sys/dev/misc/kbd/atkbdc.c
66
#define availq(q) ((q)->head != (q)->tail)
sys/dev/misc/kbd/atkbdc.c
68
#define emptyq(q) ((q)->tail = (q)->head = (q)->qcount = 0)
sys/dev/misc/kbd/atkbdc.c
70
#define emptyq(q) ((q)->tail = (q)->head = 0)
sys/dev/misc/kbd/atkbdc.c
95
static int addq(kbdkqueue *q, int c);
sys/dev/misc/kbd/atkbdc.c
96
static int removeq(kbdkqueue *q);
sys/dev/misc/kbd/atkbdcreg.h
217
unsigned char q[KBDQ_BUFSIZE];
sys/dev/misc/syscons/dragon/dragon_saver.c
111
static int i, p, q;
sys/dev/misc/syscons/dragon/dragon_saver.c
156
q = p = 0; i = q + 1;
sys/dev/misc/syscons/dragon/dragon_saver.c
159
if (i > q) {
sys/dev/misc/syscons/dragon/dragon_saver.c
160
SET_FOLD(p); q = p * 2;
sys/dev/misc/syscons/dragon/dragon_saver.c
163
i = p; p = q + 1;
sys/dev/misc/syscons/dragon/dragon_saver.c
166
if (GET_FOLD(q-i) != 0) {
sys/dev/misc/vkbd/vkbd.c
112
int q[VKBD_Q_SIZE]; /* queue */
sys/dev/misc/vkbd/vkbd.c
410
vkbd_queue_t *q = NULL;
sys/dev/misc/vkbd/vkbd.c
433
q = &state->ks_inq;
sys/dev/misc/vkbd/vkbd.c
435
while (uio->uio_resid >= sizeof(q->q[0])) {
sys/dev/misc/vkbd/vkbd.c
436
if (q->head == q->tail) {
sys/dev/misc/vkbd/vkbd.c
437
if (q->cc == 0)
sys/dev/misc/vkbd/vkbd.c
438
avail = nitems(q->q) - q->head;
sys/dev/misc/vkbd/vkbd.c
441
} else if (q->head < q->tail)
sys/dev/misc/vkbd/vkbd.c
442
avail = nitems(q->q) - q->tail;
sys/dev/misc/vkbd/vkbd.c
444
avail = q->head - q->tail;
sys/dev/misc/vkbd/vkbd.c
456
bytes = avail * sizeof(q->q[0]);
sys/dev/misc/vkbd/vkbd.c
458
avail = uio->uio_resid / sizeof(q->q[0]);
sys/dev/misc/vkbd/vkbd.c
459
bytes = avail * sizeof(q->q[0]);
sys/dev/misc/vkbd/vkbd.c
462
error = uiomove((caddr_t) &q->q[q->tail], bytes, uio);
sys/dev/misc/vkbd/vkbd.c
466
q->cc += avail;
sys/dev/misc/vkbd/vkbd.c
467
q->tail += avail;
sys/dev/misc/vkbd/vkbd.c
468
if (q->tail == nitems(q->q))
sys/dev/misc/vkbd/vkbd.c
469
q->tail = 0;
sys/dev/misc/vkbd/vkbd.c
533
vkbd_queue_t *q = NULL;
sys/dev/misc/vkbd/vkbd.c
534
q = &state->ks_inq;
sys/dev/misc/vkbd/vkbd.c
536
if (q->cc < nitems(q->q))
sys/dev/misc/vkbd/vkbd.c
588
vkbd_queue_t *q = NULL;
sys/dev/misc/vkbd/vkbd.c
596
q = &state->ks_inq;
sys/dev/misc/vkbd/vkbd.c
606
if (q->cc < nitems(q->q))
sys/dev/misc/vkbd/vkbd.c
661
vkbd_queue_t *q = &state->ks_inq;
sys/dev/misc/vkbd/vkbd.c
666
if (q->cc == 0)
sys/dev/misc/vkbd/vkbd.c
670
q->cc --;
sys/dev/misc/vkbd/vkbd.c
671
c = q->q[q->head ++];
sys/dev/misc/vkbd/vkbd.c
672
if (q->head == nitems(q->q))
sys/dev/misc/vkbd/vkbd.c
673
q->head = 0;
sys/dev/misc/vkbd/vkbd.c
677
wakeup(q);
sys/dev/netif/ath/ath/if_ath.c
4538
#define TXQACTIVE(t, q) ( (t) & (1 << (q)))
sys/dev/netif/ath/ath/if_ath_rx.c
1466
ath_legacy_recv_sched_queue(struct ath_softc *sc, HAL_RX_QUEUE q,
sys/dev/netif/ath/ath/if_athvar.h
523
HAL_RX_QUEUE q, int dosched);
sys/dev/netif/ath/ath_hal/ah.h
1385
HAL_BOOL __ahdecl(*ah_setTxQueueProps)(struct ath_hal *, int q,
sys/dev/netif/ath/ath_hal/ah.h
1387
HAL_BOOL __ahdecl(*ah_getTxQueueProps)(struct ath_hal *, int q,
sys/dev/netif/ath/ath_hal/ah.h
1389
HAL_BOOL __ahdecl(*ah_releaseTxQueue)(struct ath_hal *ah, u_int q);
sys/dev/netif/ath/ath_hal/ah.h
1390
HAL_BOOL __ahdecl(*ah_resetTxQueue)(struct ath_hal *ah, u_int q);
sys/dev/netif/ath/ath_hal/ah.h
1393
uint32_t __ahdecl(*ah_numTxPending)(struct ath_hal *, u_int q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210.h
151
extern HAL_BOOL ar5210SetTxQueueProps(struct ath_hal *ah, int q,
sys/dev/netif/ath/ath_hal/ar5210/ar5210.h
153
extern HAL_BOOL ar5210GetTxQueueProps(struct ath_hal *ah, int q,
sys/dev/netif/ath/ath_hal/ar5210/ar5210.h
157
extern HAL_BOOL ar5210ReleaseTxQueue(struct ath_hal *ah, u_int q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210.h
158
extern HAL_BOOL ar5210ResetTxQueue(struct ath_hal *ah, u_int q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_reset.c
267
for (q = 0; q < HAL_NUM_TX_QUEUES; q++)
sys/dev/netif/ath/ath_hal/ar5210/ar5210_reset.c
268
ar5210ResetTxQueue(ah, q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_reset.c
82
int i, q;
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
114
(void) ar5210SetTxQueueProps(ah, q, qInfo);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
116
return q;
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
123
ar5210ReleaseTxQueue(struct ath_hal *ah, u_int q)
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
128
if (q >= HAL_NUM_TX_QUEUES) {
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
130
__func__, q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
133
qi = &ahp->ah_txq[q];
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
136
__func__, q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
140
HALDEBUG(ah, HAL_DEBUG_TXQUEUE, "%s: release queue %u\n", __func__, q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
143
ahp->ah_txOkInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
144
ahp->ah_txErrInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
145
ahp->ah_txDescInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
146
ahp->ah_txEolInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
147
ahp->ah_txUrnInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
154
ar5210ResetTxQueue(struct ath_hal *ah, u_int q)
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
161
if (q >= HAL_NUM_TX_QUEUES) {
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
163
__func__, q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
166
qi = &ahp->ah_txq[q];
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
169
__func__, q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
229
ahp->ah_txOkInterruptMask |= 1 << q;
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
231
ahp->ah_txOkInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
233
ahp->ah_txErrInterruptMask |= 1 << q;
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
235
ahp->ah_txErrInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
237
ahp->ah_txDescInterruptMask |= 1 << q;
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
239
ahp->ah_txDescInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
241
ahp->ah_txEolInterruptMask |= 1 << q;
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
243
ahp->ah_txEolInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
245
ahp->ah_txUrnInterruptMask |= 1 << q;
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
247
ahp->ah_txUrnInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
257
ar5210GetTxDP(struct ath_hal *ah, u_int q)
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
262
HALASSERT(q < HAL_NUM_TX_QUEUES);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
264
qi = &ahp->ah_txq[q];
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
270
__func__, q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
282
ar5210SetTxDP(struct ath_hal *ah, u_int q, uint32_t txdp)
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
287
HALASSERT(q < HAL_NUM_TX_QUEUES);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
290
__func__, q, txdp);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
291
qi = &ahp->ah_txq[q];
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
312
__func__, q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
36
ar5210SetTxQueueProps(struct ath_hal *ah, int q, const HAL_TXQ_INFO *qInfo)
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
367
ar5210StartTxDma(struct ath_hal *ah, u_int q)
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
372
HALASSERT(q < HAL_NUM_TX_QUEUES);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
374
HALDEBUG(ah, HAL_DEBUG_TXQUEUE, "%s: queue %u\n", __func__, q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
375
qi = &ahp->ah_txq[q];
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
391
__func__, q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
40
if (q >= HAL_NUM_TX_QUEUES) {
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
400
ar5210NumTxPending(struct ath_hal *ah, u_int q)
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
406
HALASSERT(q < HAL_NUM_TX_QUEUES);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
408
HALDEBUG(ah, HAL_DEBUG_TXQUEUE, "%s: queue %u\n", __func__, q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
409
qi = &ahp->ah_txq[q];
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
416
__func__, q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
42
__func__, q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
428
ar5210StopTxDma(struct ath_hal *ah, u_int q)
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
433
HALASSERT(q < HAL_NUM_TX_QUEUES);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
435
HALDEBUG(ah, HAL_DEBUG_TXQUEUE, "%s: queue %u\n", __func__, q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
436
qi = &ahp->ah_txq[q];
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
45
return ath_hal_setTxQProps(ah, &ahp->ah_txq[q], qInfo);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
453
__func__, q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
52
ar5210GetTxQueueProps(struct ath_hal *ah, int q, HAL_TXQ_INFO *qInfo)
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
56
if (q >= HAL_NUM_TX_QUEUES) {
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
58
__func__, q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
61
return ath_hal_getTxQProps(ah, qInfo, &ahp->ah_txq[q]);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
73
int q;
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
77
q = 2;
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
80
q = 1;
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
83
q = 0;
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
91
HALDEBUG(ah, HAL_DEBUG_TXQUEUE, "%s: queue %u\n", __func__, q);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
93
qi = &ahp->ah_txq[q];
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
96
__func__, q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211.h
172
extern HAL_BOOL ar5211SetTxQueueProps(struct ath_hal *ah, int q,
sys/dev/netif/ath/ath_hal/ar5211/ar5211.h
174
extern HAL_BOOL ar5211GetTxQueueProps(struct ath_hal *ah, int q,
sys/dev/netif/ath/ath_hal/ar5211/ar5211.h
178
extern HAL_BOOL ar5211ReleaseTxQueue(struct ath_hal *ah, u_int q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211.h
179
extern HAL_BOOL ar5211ResetTxQueue(struct ath_hal *ah, u_int q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_reset.c
167
int q;
sys/dev/netif/ath/ath_hal/ar5211/ar5211_reset.c
484
for (q = 0; q < AR_NUM_DCU; q++)
sys/dev/netif/ath/ath_hal/ar5211/ar5211_reset.c
485
OS_REG_WRITE(ah, AR_DQCUMASK(q), 1<<q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_reset.c
487
for (q = 0; q < HAL_NUM_TX_QUEUES; q++)
sys/dev/netif/ath/ath_hal/ar5211/ar5211_reset.c
488
ar5211ResetTxQueue(ah, q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
100
if (q >= HAL_NUM_TX_QUEUES) {
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
102
__func__, q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
105
return ath_hal_getTxQProps(ah, qInfo, &ahp->ah_txq[q]);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
117
int q;
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
121
q = 9;
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
124
q = 8;
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
127
q = 0;
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
128
if (ahp->ah_txq[q].tqi_type != HAL_TX_QUEUE_INACTIVE)
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
129
return q;
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
137
HALDEBUG(ah, HAL_DEBUG_TXQUEUE, "%s: queue %u\n", __func__, q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
139
qi = &ahp->ah_txq[q];
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
142
__func__, q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
161
(void) ar5211SetTxQueueProps(ah, q, qInfo);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
162
return q;
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
199
ar5211ReleaseTxQueue(struct ath_hal *ah, u_int q)
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
204
if (q >= HAL_NUM_TX_QUEUES) {
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
206
__func__, q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
209
qi = &ahp->ah_txq[q];
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
212
__func__, q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
216
HALDEBUG(ah, HAL_DEBUG_TXQUEUE, "%s: release queue %u\n", __func__, q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
219
ahp->ah_txOkInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
220
ahp->ah_txErrInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
221
ahp->ah_txDescInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
222
ahp->ah_txEolInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
223
ahp->ah_txUrnInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
233
ar5211ResetTxQueue(struct ath_hal *ah, u_int q)
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
240
if (q >= HAL_NUM_TX_QUEUES) {
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
242
__func__, q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
245
qi = &ahp->ah_txq[q];
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
248
__func__, q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
268
OS_REG_WRITE(ah, AR_DLCL_IFS(q),
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
274
OS_REG_WRITE(ah, AR_DRETRY_LIMIT(q),
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
282
OS_REG_WRITE(ah, AR_QMISC(q), AR_Q_MISC_DCU_EARLY_TERM_REQ);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
286
OS_REG_WRITE(ah, AR_DMISC(q), AR5311_D_MISC_SEQ_NUM_CONTROL);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
290
OS_REG_WRITE(ah, AR_QCBRCFG(q),
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
293
OS_REG_WRITE(ah, AR_QMISC(q),
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
294
OS_REG_READ(ah, AR_QMISC(q)) |
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
300
OS_REG_WRITE(ah, AR_QRDYTIMECFG(q),
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
305
OS_REG_WRITE(ah, AR_DCHNTIME(q),
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
309
OS_REG_WRITE(ah, AR_QMISC(q),
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
310
OS_REG_READ(ah, AR_QMISC(q)) |
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
316
OS_REG_WRITE(ah, AR_DMISC(q),
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
317
OS_REG_READ(ah, AR_DMISC(q)) |
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
321
OS_REG_WRITE(ah, AR_DMISC(q),
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
322
OS_REG_READ(ah, AR_DMISC(q)) |
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
328
OS_REG_WRITE(ah, AR_QMISC(q),
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
329
OS_REG_READ(ah, AR_QMISC(q))
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
338
OS_REG_WRITE(ah, AR_DMISC(q), value);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
342
OS_REG_WRITE(ah, AR_QMISC(q),
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
343
OS_REG_READ(ah, AR_QMISC(q))
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
351
OS_REG_WRITE(ah, AR_QRDYTIMECFG(q), value | AR_Q_RDYTIMECFG_EN);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
357
OS_REG_WRITE(ah, AR_QMISC(q), value);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
375
ahp->ah_txOkInterruptMask |= 1 << q;
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
377
ahp->ah_txOkInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
379
ahp->ah_txErrInterruptMask |= 1 << q;
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
381
ahp->ah_txErrInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
383
ahp->ah_txDescInterruptMask |= 1 << q;
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
385
ahp->ah_txDescInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
387
ahp->ah_txEolInterruptMask |= 1 << q;
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
389
ahp->ah_txEolInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
391
ahp->ah_txUrnInterruptMask |= 1 << q;
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
393
ahp->ah_txUrnInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
403
ar5211GetTxDP(struct ath_hal *ah, u_int q)
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
405
HALASSERT(q < HAL_NUM_TX_QUEUES);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
406
return OS_REG_READ(ah, AR_QTXDP(q));
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
413
ar5211SetTxDP(struct ath_hal *ah, u_int q, uint32_t txdp)
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
415
HALASSERT(q < HAL_NUM_TX_QUEUES);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
416
HALASSERT(AH5211(ah)->ah_txq[q].tqi_type != HAL_TX_QUEUE_INACTIVE);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
422
HALASSERT((OS_REG_READ(ah, AR_Q_TXE) & (1 << q)) == 0);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
424
OS_REG_WRITE(ah, AR_QTXDP(q), txdp);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
433
ar5211StartTxDma(struct ath_hal *ah, u_int q)
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
435
HALASSERT(q < HAL_NUM_TX_QUEUES);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
436
HALASSERT(AH5211(ah)->ah_txq[q].tqi_type != HAL_TX_QUEUE_INACTIVE);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
439
HALASSERT((OS_REG_READ(ah, AR_Q_TXD) & (1<<q)) == 0);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
441
HALDEBUG(ah, HAL_DEBUG_TXQUEUE, "%s: queue %u\n", __func__, q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
444
HALASSERT((OS_REG_READ(ah, AR_Q_TXD) & (1 << q)) == 0);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
446
OS_REG_WRITE(ah, AR_Q_TXE, 1 << q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
454
ar5211NumTxPending(struct ath_hal *ah, u_int q)
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
458
HALASSERT(q < HAL_NUM_TX_QUEUES);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
459
HALASSERT(AH5211(ah)->ah_txq[q].tqi_type != HAL_TX_QUEUE_INACTIVE);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
461
n = OS_REG_READ(ah, AR_QSTS(q)) & AR_Q_STS_PEND_FR_CNT_M;
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
467
if (n == 0 && (OS_REG_READ(ah, AR_Q_TXE) & (1<<q)))
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
476
ar5211StopTxDma(struct ath_hal *ah, u_int q)
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
480
HALASSERT(q < HAL_NUM_TX_QUEUES);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
481
HALASSERT(AH5211(ah)->ah_txq[q].tqi_type != HAL_TX_QUEUE_INACTIVE);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
483
OS_REG_WRITE(ah, AR_Q_TXD, 1<<q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
485
if (ar5211NumTxPending(ah, q) == 0)
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
80
ar5211SetTxQueueProps(struct ath_hal *ah, int q, const HAL_TXQ_INFO *qInfo)
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
84
if (q >= HAL_NUM_TX_QUEUES) {
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
86
__func__, q);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
89
return ath_hal_setTxQProps(ah, &ahp->ah_txq[q], qInfo);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
96
ar5211GetTxQueueProps(struct ath_hal *ah, int q, HAL_TXQ_INFO *qInfo)
sys/dev/netif/ath/ath_hal/ar5212/ar5212.h
587
extern HAL_BOOL ar5212SetTxQueueProps(struct ath_hal *ah, int q,
sys/dev/netif/ath/ath_hal/ar5212/ar5212.h
589
extern HAL_BOOL ar5212GetTxQueueProps(struct ath_hal *ah, int q,
sys/dev/netif/ath/ath_hal/ar5212/ar5212.h
593
extern HAL_BOOL ar5212ReleaseTxQueue(struct ath_hal *ah, u_int q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212.h
594
extern HAL_BOOL ar5212ResetTxQueue(struct ath_hal *ah, u_int q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212.h
595
extern uint32_t ar5212GetTxDP(struct ath_hal *ah, u_int q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212.h
596
extern HAL_BOOL ar5212SetTxDP(struct ath_hal *ah, u_int q, uint32_t txdp);
sys/dev/netif/ath/ath_hal/ar5212/ar5212.h
597
extern HAL_BOOL ar5212StartTxDma(struct ath_hal *ah, u_int q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212.h
598
extern uint32_t ar5212NumTxPending(struct ath_hal *ah, u_int q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212.h
599
extern HAL_BOOL ar5212StopTxDma(struct ath_hal *ah, u_int q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
103
ar5212GetTxQueueProps(struct ath_hal *ah, int q, HAL_TXQ_INFO *qInfo)
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
109
if (q >= pCap->halTotalQueues) {
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
111
__func__, q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
114
return ath_hal_getTxQProps(ah, qInfo, &ahp->ah_txq[q]);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
127
int q, defqflags;
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
137
q = pCap->halTotalQueues-1; /* highest priority */
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
144
q = pCap->halTotalQueues-2; /* next highest priority */
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
152
q = pCap->halTotalQueues-3; /* nextest highest priority */
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
153
if (ahp->ah_txq[q].tqi_type != HAL_TX_QUEUE_INACTIVE) {
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
160
for (q = 0; q < pCap->halTotalQueues; q++)
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
161
if (ahp->ah_txq[q].tqi_type == HAL_TX_QUEUE_INACTIVE)
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
163
if (q == pCap->halTotalQueues) {
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
175
HALDEBUG(ah, HAL_DEBUG_TXQUEUE, "%s: queue %u\n", __func__, q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
177
qi = &ahp->ah_txq[q];
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
180
__func__, q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
195
(void) ar5212SetTxQueueProps(ah, q, qInfo);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
198
return q;
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
231
ar5212ReleaseTxQueue(struct ath_hal *ah, u_int q)
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
237
if (q >= pCap->halTotalQueues) {
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
239
__func__, q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
242
qi = &ahp->ah_txq[q];
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
245
__func__, q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
249
HALDEBUG(ah, HAL_DEBUG_TXQUEUE, "%s: release queue %u\n", __func__, q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
252
ahp->ah_txOkInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
253
ahp->ah_txErrInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
254
ahp->ah_txDescInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
255
ahp->ah_txEolInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
256
ahp->ah_txUrnInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
269
ar5212ResetTxQueue(struct ath_hal *ah, u_int q)
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
277
if (q >= pCap->halTotalQueues) {
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
279
__func__, q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
282
qi = &ahp->ah_txq[q];
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
285
__func__, q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
289
HALDEBUG(ah, HAL_DEBUG_TXQUEUE, "%s: reset queue %u\n", __func__, q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
307
OS_REG_WRITE(ah, AR_DLCL_IFS(q),
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
313
OS_REG_WRITE(ah, AR_DRETRY_LIMIT(q),
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
335
OS_REG_WRITE(ah, AR_QCBRCFG(q),
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
343
OS_REG_WRITE(ah, AR_QRDYTIMECFG(q),
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
348
OS_REG_WRITE(ah, AR_DCHNTIME(q),
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
417
OS_REG_WRITE(ah, AR_QRDYTIMECFG(q),
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
445
OS_REG_WRITE(ah, AR_QRDYTIMECFG(q),
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
456
OS_REG_WRITE(ah, AR_QMISC(q), qmisc);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
457
OS_REG_WRITE(ah, AR_DMISC(q), dmisc);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
467
OS_REG_WRITE(ah, AR_Q_CBBS, (80 + 2*q));
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
470
OS_REG_WRITE(ah, AR_Q0_MISC + 4*q,
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
471
OS_REG_READ(ah, AR_Q0_MISC + 4*q)
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
486
ahp->ah_txOkInterruptMask |= 1 << q;
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
488
ahp->ah_txOkInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
490
ahp->ah_txErrInterruptMask |= 1 << q;
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
492
ahp->ah_txErrInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
494
ahp->ah_txDescInterruptMask |= 1 << q;
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
496
ahp->ah_txDescInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
498
ahp->ah_txEolInterruptMask |= 1 << q;
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
500
ahp->ah_txEolInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
502
ahp->ah_txUrnInterruptMask |= 1 << q;
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
504
ahp->ah_txUrnInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
515
ar5212GetTxDP(struct ath_hal *ah, u_int q)
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
517
HALASSERT(q < AH_PRIVATE(ah)->ah_caps.halTotalQueues);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
518
return OS_REG_READ(ah, AR_QTXDP(q));
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
525
ar5212SetTxDP(struct ath_hal *ah, u_int q, uint32_t txdp)
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
527
HALASSERT(q < AH_PRIVATE(ah)->ah_caps.halTotalQueues);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
528
HALASSERT(AH5212(ah)->ah_txq[q].tqi_type != HAL_TX_QUEUE_INACTIVE);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
534
HALASSERT((OS_REG_READ(ah, AR_Q_TXE) & (1 << q)) == 0);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
536
OS_REG_WRITE(ah, AR_QTXDP(q), txdp);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
545
ar5212StartTxDma(struct ath_hal *ah, u_int q)
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
547
HALASSERT(q < AH_PRIVATE(ah)->ah_caps.halTotalQueues);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
549
HALASSERT(AH5212(ah)->ah_txq[q].tqi_type != HAL_TX_QUEUE_INACTIVE);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
551
HALDEBUG(ah, HAL_DEBUG_TXQUEUE, "%s: queue %u\n", __func__, q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
554
HALASSERT((OS_REG_READ(ah, AR_Q_TXD) & (1 << q)) == 0);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
556
OS_REG_WRITE(ah, AR_Q_TXE, 1 << q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
565
ar5212NumTxPending(struct ath_hal *ah, u_int q)
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
569
HALASSERT(q < AH_PRIVATE(ah)->ah_caps.halTotalQueues);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
570
HALASSERT(AH5212(ah)->ah_txq[q].tqi_type != HAL_TX_QUEUE_INACTIVE);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
572
npend = OS_REG_READ(ah, AR_QSTS(q)) & AR_Q_STS_PEND_FR_CNT;
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
579
if (OS_REG_READ(ah, AR_Q_TXE) & (1 << q))
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
589
ar5212StopTxDma(struct ath_hal *ah, u_int q)
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
594
HALASSERT(q < AH_PRIVATE(ah)->ah_caps.halTotalQueues);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
596
HALASSERT(AH5212(ah)->ah_txq[q].tqi_type != HAL_TX_QUEUE_INACTIVE);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
598
OS_REG_WRITE(ah, AR_Q_TXD, 1 << q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
600
if (ar5212NumTxPending(ah, q) == 0)
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
607
"%s: queue %u DMA did not stop in 100 msec\n", __func__, q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
610
OS_REG_READ(ah, AR_QSTS(q)), OS_REG_READ(ah, AR_Q_TXE),
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
611
OS_REG_READ(ah, AR_Q_TXD), OS_REG_READ(ah, AR_QCBRCFG(q)));
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
614
__func__, OS_REG_READ(ah, AR_QMISC(q)),
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
615
OS_REG_READ(ah, AR_QRDYTIMECFG(q)),
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
621
if (ar5212NumTxPending(ah, q) &&
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
627
__func__, ar5212NumTxPending(ah, q), q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
656
while (ar5212NumTxPending(ah, q)) {
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
86
ar5212SetTxQueueProps(struct ath_hal *ah, int q, const HAL_TXQ_INFO *qInfo)
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
91
if (q >= pCap->halTotalQueues) {
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
93
__func__, q);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
96
return ath_hal_setTxQProps(ah, &ahp->ah_txq[q], qInfo);
sys/dev/netif/ath/ath_hal/ar5416/ar5416.h
375
extern HAL_BOOL ar5416StopTxDma(struct ath_hal *ah, u_int q);
sys/dev/netif/ath/ath_hal/ar5416/ar5416.h
395
extern HAL_BOOL ar5416ResetTxQueue(struct ath_hal *ah, u_int q);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
101
if (ar5212NumTxPending(ah, q) == 0)
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1124
int q, defqflags;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1134
q = pCap->halTotalQueues-1; /* highest priority */
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1141
q = pCap->halTotalQueues-2; /* next highest priority */
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1149
q = 1; /* lowest priority */
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1157
q = pCap->halTotalQueues-3; /* nextest highest priority */
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1158
if (ahp->ah_txq[q].tqi_type != HAL_TX_QUEUE_INACTIVE) {
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1165
for (q = 0; q < pCap->halTotalQueues; q++)
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1166
if (ahp->ah_txq[q].tqi_type == HAL_TX_QUEUE_INACTIVE)
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1168
if (q == pCap->halTotalQueues) {
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1180
HALDEBUG(ah, HAL_DEBUG_TXQUEUE, "%s: queue %u\n", __func__, q);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1182
qi = &ahp->ah_txq[q];
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1185
__func__, q);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1200
(void) ar5212SetTxQueueProps(ah, q, qInfo);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1203
return q;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1239
ar5416ResetTxQueue(struct ath_hal *ah, u_int q)
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1247
if (q >= pCap->halTotalQueues) {
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1249
__func__, q);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1252
qi = &ahp->ah_txq[q];
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1255
__func__, q);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1259
HALDEBUG(ah, HAL_DEBUG_TXQUEUE, "%s: reset queue %u\n", __func__, q);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1277
OS_REG_WRITE(ah, AR_DLCL_IFS(q),
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1283
OS_REG_WRITE(ah, AR_DRETRY_LIMIT(q),
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1308
OS_REG_WRITE(ah, AR_QCBRCFG(q),
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1317
OS_REG_WRITE(ah, AR_QRDYTIMECFG(q),
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1322
OS_REG_WRITE(ah, AR_DCHNTIME(q),
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1392
OS_REG_WRITE(ah, AR_QRDYTIMECFG(q),
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1424
OS_REG_WRITE(ah, AR_QRDYTIMECFG(q),
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1441
OS_REG_WRITE(ah, AR_QMISC(q), qmisc);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1442
OS_REG_WRITE(ah, AR_DMISC(q), dmisc);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1452
OS_REG_WRITE(ah, AR_Q_CBBS, (80 + 2*q));
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1455
OS_REG_WRITE(ah, AR_Q0_MISC + 4*q,
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1456
OS_REG_READ(ah, AR_Q0_MISC + 4*q)
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1471
ahp->ah_txOkInterruptMask |= 1 << q;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1473
ahp->ah_txOkInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1475
ahp->ah_txErrInterruptMask |= 1 << q;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1477
ahp->ah_txErrInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1479
ahp->ah_txDescInterruptMask |= 1 << q;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1481
ahp->ah_txDescInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1483
ahp->ah_txEolInterruptMask |= 1 << q;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1485
ahp->ah_txEolInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1487
ahp->ah_txUrnInterruptMask |= 1 << q;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
1489
ahp->ah_txUrnInterruptMask &= ~(1 << q);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
34
ar5416StopTxDma(struct ath_hal *ah, u_int q)
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
40
HALASSERT(q < AH_PRIVATE(ah)->ah_caps.halTotalQueues);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
42
HALASSERT(AH5212(ah)->ah_txq[q].tqi_type != HAL_TX_QUEUE_INACTIVE);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
44
OS_REG_WRITE(ah, AR_Q_TXD, 1 << q);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
46
if (ar5212NumTxPending(ah, q) == 0)
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
53
"%s: queue %u DMA did not stop in 400 msec\n", __func__, q);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
56
OS_REG_READ(ah, AR_QSTS(q)), OS_REG_READ(ah, AR_Q_TXE),
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
57
OS_REG_READ(ah, AR_Q_TXD), OS_REG_READ(ah, AR_QCBRCFG(q)));
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
60
__func__, OS_REG_READ(ah, AR_QMISC(q)),
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
61
OS_REG_READ(ah, AR_QRDYTIMECFG(q)),
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
67
if (ar5212NumTxPending(ah, q)) {
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
72
__func__, ar5212NumTxPending(ah, q), q);
sys/dev/netif/bnx/if_bnx.c
5712
uint32_t q;
sys/dev/netif/bnx/if_bnx.c
5714
q = sc->bnx_rdr_table[r];
sys/dev/netif/bnx/if_bnx.c
5715
tbl |= q << (BGE_RSS_INDIR_TBLENT_SHIFT *
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
1929
value = (uint8_t) (ctl->q);
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
209
int32_t m1, m2, f, q, delta;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
223
q = BWN_TSSI2DBM(f * 4096 - BWN_TSSI2DBM(m2 * f, 16) *
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
225
delta = abs(q - f);
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
226
f = q;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2422
test.q += modifiers[i - 1].q * d->multipler;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2423
if ((test.i != prev.i || test.q != prev.q) &&
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2424
(abs(test.i) <= 16 && abs(test.q) <= 16)) {
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2490
if ((probe.i == d.loctl.i) && (probe.q == d.loctl.q))
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2626
val = (uint8_t)(cal->ctl.q);
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
805
cal->ctl.i, cal->ctl.q);
sys/dev/netif/bwn/bwn/if_bwn_phy_lp.c
1882
uint32_t i, q, r;
sys/dev/netif/bwn/bwn/if_bwn_phy_lp.c
1887
for (i = 0, q = value / div, r = value % div; i < pre; i++) {
sys/dev/netif/bwn/bwn/if_bwn_phy_lp.c
1888
q <<= 1;
sys/dev/netif/bwn/bwn/if_bwn_phy_lp.c
1890
q++;
sys/dev/netif/bwn/bwn/if_bwn_phy_lp.c
1895
q++;
sys/dev/netif/bwn/bwn/if_bwn_phy_lp.c
1896
return (q);
sys/dev/netif/bwn/bwn/if_bwnvar.h
233
int8_t q;
sys/dev/netif/emx/if_emx.c
3204
uint32_t q;
sys/dev/netif/emx/if_emx.c
3206
q = sc->rdr_table[r] << EMX_RETA_RINGIDX_SHIFT;
sys/dev/netif/emx/if_emx.c
3207
reta |= q << (8 * i);
sys/dev/netif/ig_hal/e1000_nvm.c
1252
u8 q, hval, rem, result;
sys/dev/netif/ig_hal/e1000_nvm.c
1334
q = eeprom_verl / NVM_HEX_CONV;
sys/dev/netif/ig_hal/e1000_nvm.c
1335
hval = q * NVM_HEX_TENS;
sys/dev/netif/igb/if_igb.c
2655
uint32_t q;
sys/dev/netif/igb/if_igb.c
2657
q = sc->rdr_table[r] << reta_shift;
sys/dev/netif/igb/if_igb.c
2658
reta |= q << (8 * i);
sys/dev/netif/iwm/if_iwmreg.h
442
#define IWM_RFH_Q_FRBDCB_BA_LSB(q) (IWM_RFH_Q0_FRBDCB_BA_LSB + (q) * 8)
sys/dev/netif/iwm/if_iwmreg.h
445
#define IWM_RFH_Q_FRBDCB_WIDX(q) (IWM_RFH_Q0_FRBDCB_WIDX + (q) * 4)
sys/dev/netif/iwm/if_iwmreg.h
448
#define IWM_RFH_Q_FRBDCB_WIDX_TRG(q) (IWM_RFH_Q0_FRBDCB_WIDX_TRG + (q) * 4)
sys/dev/netif/iwm/if_iwmreg.h
451
#define IWM_RFH_Q_FRBDCB_RIDX(q) (IWM_RFH_Q0_FRBDCB_RIDX + (q) * 4)
sys/dev/netif/iwm/if_iwmreg.h
454
#define IWM_RFH_Q_URBDCB_BA_LSB(q) (IWM_RFH_Q0_URBDCB_BA_LSB + (q) * 8)
sys/dev/netif/iwm/if_iwmreg.h
457
#define IWM_RFH_Q_URBDCB_WIDX(q) (IWM_RFH_Q0_URBDCB_WIDX + (q) * 4)
sys/dev/netif/iwm/if_iwmreg.h
459
#define IWM_RFH_Q_URBDCB_VAID(q) (IWM_RFH_Q0_URBDCB_VAID + (q) * 4)
sys/dev/netif/iwm/if_iwmreg.h
462
#define IWM_RFH_Q_URBD_STTS_WPTR_LSB(q) (IWM_RFH_Q0_URBD_STTS_WPTR_LSB + (q) * 8)
sys/dev/netif/iwm/if_iwmreg.h
465
#define IWM_RFH_Q_ORB_WPTR_LSB(q) (IWM_RFH_Q0_ORB_WPTR_LSB + (q) * 8)
sys/dev/netif/iwm/if_iwmreg.h
467
#define IWM_RFH_RBDBUF_RBD_LSB(q) (IWM_RFH_RBDBUF_RBD0_LSB + (q) * 8)
sys/dev/netif/ix/if_ix.c
2812
uint32_t q;
sys/dev/netif/ix/if_ix.c
2814
q = sc->rdr_table[r];
sys/dev/netif/ix/if_ix.c
2815
KASSERT(q < sc->rx_ring_inuse,
sys/dev/netif/ix/if_ix.c
2816
("invalid RX ring index %d", q));
sys/dev/netif/ix/if_ix.c
2817
reta |= q << (8 * i);
sys/dev/netif/ix/ixgbe_dcb_82599.c
511
u32 q;
sys/dev/netif/ix/ixgbe_dcb_82599.c
567
for (q = 0; q < 128; q++)
sys/dev/netif/ix/ixgbe_dcb_82599.c
569
(IXGBE_QDE_WRITE | (q << IXGBE_QDE_IDX_SHIFT)));
sys/dev/netif/ix/ixgbe_x550.c
1449
u32 i, j, reg, q, shift, vf, idx;
sys/dev/netif/ix/ixgbe_x550.c
1483
q = j + (i * 32);
sys/dev/netif/ix/ixgbe_x550.c
1486
vf = (q >> shift);
sys/dev/netif/jme/if_jme.c
3541
int q;
sys/dev/netif/jme/if_jme.c
3543
q = sc->jme_rdrtable[r];
sys/dev/netif/jme/if_jme.c
3544
ind |= q << (i * 8);
sys/dev/raid/mpr/mpr.c
1263
struct mpr_queue *q;
sys/dev/raid/mpr/mpr.c
1275
q = &sc->queues[i];
sys/dev/raid/mpr/mpr.c
1276
mpr_dprint(sc, MPR_INIT, "Configuring queue %d %p\n", i, q);
sys/dev/raid/mpr/mpr.c
1277
q->sc = sc;
sys/dev/raid/mpr/mpr.c
1278
q->qnum = i;
sys/dev/raid/mpr/mpr_pci.c
273
struct mpr_queue *q;
sys/dev/raid/mpr/mpr_pci.c
291
q = &sc->queues[i];
sys/dev/raid/mpr/mpr_pci.c
293
q->irq_rid = rid;
sys/dev/raid/mpr/mpr_pci.c
294
q->irq = bus_alloc_resource_any(dev, SYS_RES_IRQ,
sys/dev/raid/mpr/mpr_pci.c
295
&q->irq_rid, sc->irq_flags);
sys/dev/raid/mpr/mpr_pci.c
296
if (q->irq == NULL) {
sys/dev/raid/mpr/mpr_pci.c
302
error = bus_setup_intr(dev, q->irq, INTR_MPSAFE, ihandler,
sys/dev/raid/mpr/mpr_pci.c
303
sc, &q->intrhand, NULL);
sys/dev/raid/mpr/mpr_pci.c
334
struct mpr_queue *q;
sys/dev/raid/mpr/mpr_pci.c
341
q = &sc->queues[i];
sys/dev/raid/mpr/mpr_pci.c
342
if (q->irq != NULL) {
sys/dev/raid/mpr/mpr_pci.c
343
bus_teardown_intr(sc->mpr_dev, q->irq,
sys/dev/raid/mpr/mpr_pci.c
344
q->intrhand);
sys/dev/raid/mpr/mpr_pci.c
346
q->irq_rid, q->irq);
sys/dev/raid/tws/tws.c
401
kfree(sc->aen_q.q, M_TWS);
sys/dev/raid/tws/tws.c
402
kfree(sc->trace_q.q, M_TWS);
sys/dev/raid/tws/tws.c
580
sc->aen_q.q = kmalloc(sizeof(struct tws_event_packet)*sc->aen_q.depth,
sys/dev/raid/tws/tws.c
592
sc->trace_q.q = kmalloc(sizeof(struct tws_trace_rec)*sc->trace_q.depth,
sys/dev/raid/tws/tws.h
178
void * q;
sys/dev/raid/tws/tws_services.c
91
struct tws_trace_rec *rec = (struct tws_trace_rec *)sc->trace_q.q;
sys/dev/raid/tws/tws_user.c
210
qp = (struct tws_event_packet *)sc->aen_q.q;
sys/dev/raid/tws/tws_user.c
344
struct tws_event_packet *q = (struct tws_event_packet *)cq->q;
sys/dev/raid/tws/tws_user.c
351
retr = q[tail].retrieved;
sys/dev/raid/tws/tws_user.c
353
memcpy(&q[tail], aen, sizeof(struct tws_event_packet));
sys/dev/virtual/amazon/ena/ena.c
3020
uint32_t q;
sys/dev/virtual/amazon/ena/ena.c
3033
q = rounddown2(queue_size, v);
sys/dev/virtual/amazon/ena/ena.c
3034
if (q != 0) {
sys/dev/virtual/amazon/ena/ena.c
3035
queue_size = q;
sys/dev/virtual/amazon/ena/ena.h
122
#define ENA_IO_TXQ_IDX(q) (2 * (q))
sys/dev/virtual/amazon/ena/ena.h
123
#define ENA_IO_RXQ_IDX(q) (2 * (q) + 1)
sys/dev/virtual/amazon/ena/ena.h
127
#define ENA_IO_IRQ_IDX(q) (ENA_IO_IRQ_FIRST_IDX + (q))
sys/dev/virtual/virtio/block/virtio_blk.c
1068
vtblk_drain_vq(struct vtblk_queue *q, int skip_done)
sys/dev/virtual/virtio/block/virtio_blk.c
1070
struct virtqueue *vq = q->vtblk_vq;
sys/dev/virtual/virtio/block/virtio_blk.c
1080
vtblk_enqueue_request(q, req);
sys/dev/virtual/virtio/block/virtio_blk.c
1089
struct vtblk_queue *q;
sys/dev/virtual/virtio/block/virtio_blk.c
1095
q = &sc->vtblk_queues[i];
sys/dev/virtual/virtio/block/virtio_blk.c
1096
bioq = &q->vtblk_bioq;
sys/dev/virtual/virtio/block/virtio_blk.c
1098
if (q->vtblk_vq != NULL)
sys/dev/virtual/virtio/block/virtio_blk.c
1099
vtblk_drain_vq(q, 0);
sys/dev/virtual/virtio/block/virtio_blk.c
1152
struct vtblk_queue *q = &sc->vtblk_queues[i];
sys/dev/virtual/virtio/block/virtio_blk.c
1153
while ((req = vtblk_dequeue_request(q)) != NULL) {
sys/dev/virtual/virtio/block/virtio_blk.c
1163
vtblk_dequeue_request(struct vtblk_queue *q)
sys/dev/virtual/virtio/block/virtio_blk.c
1167
req = SLIST_FIRST(&q->vtblk_req_free);
sys/dev/virtual/virtio/block/virtio_blk.c
1169
SLIST_REMOVE_HEAD(&q->vtblk_req_free, vbr_link);
sys/dev/virtual/virtio/block/virtio_blk.c
529
struct vtblk_queue *q = &sc->vtblk_queues[sc->vtblk_vqmap[mycpuid]];
sys/dev/virtual/virtio/block/virtio_blk.c
536
lwkt_serialize_enter(&q->vtblk_slz);
sys/dev/virtual/virtio/block/virtio_blk.c
538
bioqdisksort(&q->vtblk_bioq, bio);
sys/dev/virtual/virtio/block/virtio_blk.c
539
vtblk_vq_startio(q);
sys/dev/virtual/virtio/block/virtio_blk.c
540
lwkt_serialize_exit(&q->vtblk_slz);
sys/dev/virtual/virtio/block/virtio_blk.c
542
lwkt_serialize_exit(&q->vtblk_slz);
sys/dev/virtual/virtio/block/virtio_blk.c
768
vtblk_vq_startio(struct vtblk_queue *q)
sys/dev/virtual/virtio/block/virtio_blk.c
770
struct vtblk_softc *sc = q->vtblk_sc;
sys/dev/virtual/virtio/block/virtio_blk.c
775
vq = q->vtblk_vq;
sys/dev/virtual/virtio/block/virtio_blk.c
778
ASSERT_SERIALIZED(&q->vtblk_slz);
sys/dev/virtual/virtio/block/virtio_blk.c
784
req = vtblk_bio_request(q);
sys/dev/virtual/virtio/block/virtio_blk.c
788
if (vtblk_execute_request(q, req) != 0) {
sys/dev/virtual/virtio/block/virtio_blk.c
789
bioqdisksort(&q->vtblk_bioq, req->vbr_bio);
sys/dev/virtual/virtio/block/virtio_blk.c
790
vtblk_enqueue_request(q, req);
sys/dev/virtual/virtio/block/virtio_blk.c
799
virtqueue_notify(vq, &q->vtblk_slz);
sys/dev/virtual/virtio/block/virtio_blk.c
803
vtblk_bio_request(struct vtblk_queue *q)
sys/dev/virtual/virtio/block/virtio_blk.c
810
bioq = &q->vtblk_bioq;
sys/dev/virtual/virtio/block/virtio_blk.c
815
req = vtblk_dequeue_request(q);
sys/dev/virtual/virtio/block/virtio_blk.c
847
vtblk_execute_request(struct vtblk_queue *q, struct vtblk_request *req)
sys/dev/virtual/virtio/block/virtio_blk.c
854
sg = q->vtblk_sglist;
sys/dev/virtual/virtio/block/virtio_blk.c
884
error = virtqueue_enqueue(q->vtblk_vq, req, sg,
sys/dev/virtual/virtio/block/virtio_blk.c
895
struct vtblk_queue *q = arg;
sys/dev/virtual/virtio/block/virtio_blk.c
896
struct vtblk_softc *sc = q->vtblk_sc;
sys/dev/virtual/virtio/block/virtio_blk.c
897
struct virtqueue *vq = q->vtblk_vq;
sys/dev/virtual/virtio/block/virtio_blk.c
902
ASSERT_SERIALIZED(&q->vtblk_slz);
sys/dev/virtual/virtio/block/virtio_blk.c
907
lwkt_serialize_handler_disable(&q->vtblk_slz);
sys/dev/virtual/virtio/block/virtio_blk.c
908
virtqueue_disable_intr(q->vtblk_vq);
sys/dev/virtual/virtio/block/virtio_blk.c
931
lwkt_serialize_exit(&q->vtblk_slz);
sys/dev/virtual/virtio/block/virtio_blk.c
939
lwkt_serialize_enter(&q->vtblk_slz);
sys/dev/virtual/virtio/block/virtio_blk.c
941
vtblk_enqueue_request(q, req);
sys/dev/virtual/virtio/block/virtio_blk.c
944
vtblk_vq_startio(q);
sys/dev/virtual/virtio/block/virtio_blk.c
956
lwkt_serialize_handler_enable(&q->vtblk_slz);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1028
vmxnet3_init_rxq(struct vmxnet3_softc *sc, int q)
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1034
rxq = &sc->vmx_rxq[q];
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1037
device_get_nameunit(sc->vmx_dev), q);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1041
rxq->vxrxq_id = q;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1059
vmxnet3_init_txq(struct vmxnet3_softc *sc, int q)
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1064
txq = &sc->vmx_txq[q];
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1068
device_get_nameunit(sc->vmx_dev), q);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1072
txq->vxtxq_id = q;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1284
int i, q, error;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1288
for (q = 0; q < sc->vmx_ntxqueues; q++) {
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1289
txq = &sc->vmx_txq[q];
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1307
"unable to create Tx buffer tag for queue %d\n", q);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1314
"queue %d error %d\n", q, error);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1323
"for queue %d error %d\n", q, error);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1334
"dmamap for queue %d idx %d\n", q, i);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1351
int i, q;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1355
for (q = 0; q < sc->vmx_ntxqueues; q++) {
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1356
txq = &sc->vmx_txq[q];
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1394
int i, j, q, error;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1398
for (q = 0; q < sc->vmx_nrxqueues; q++) {
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1399
rxq = &sc->vmx_rxq[q];
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1423
"queue %d\n", q);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1432
i, q, error);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1442
"for queue %d error %d\n", q, error);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1456
q, i, error);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1467
q, i, j, error);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1485
int i, j, q;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1489
for (q = 0; q < sc->vmx_nrxqueues; q++) {
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1490
rxq = &sc->vmx_rxq[q];
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2499
int q;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2514
for (q = 0; q < sc->vmx_ntxqueues; q++)
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2515
vmxnet3_txstop(sc, &sc->vmx_txq[q]);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2516
for (q = 0; q < sc->vmx_nrxqueues; q++)
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2517
vmxnet3_rxstop(sc, &sc->vmx_rxq[q]);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2618
int q, error;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2622
for (q = 0; q < sc->vmx_ntxqueues; q++)
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2623
vmxnet3_txinit(sc, &sc->vmx_txq[q]);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2625
for (q = 0; q < sc->vmx_nrxqueues; q++) {
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2626
error = vmxnet3_rxinit(sc, &sc->vmx_rxq[q]);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2628
device_printf(dev, "cannot populate Rx queue %d\n", q);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2639
int q;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2647
for (q = 0; q < sc->vmx_nrxqueues; q++) {
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2648
vmxnet3_write_bar0(sc, VMXNET3_BAR0_RXH1(q), 0);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2649
vmxnet3_write_bar0(sc, VMXNET3_BAR0_RXH2(q), 0);
sys/dev/virtual/vmware/vmxnet3/if_vmxreg.h
62
#define VMXNET3_BAR0_TXH(q) (0x600 + (q) * 8) /* Tx head */
sys/dev/virtual/vmware/vmxnet3/if_vmxreg.h
63
#define VMXNET3_BAR0_RXH1(q) (0x800 + (q) * 8) /* Ring1 Rx head */
sys/dev/virtual/vmware/vmxnet3/if_vmxreg.h
64
#define VMXNET3_BAR0_RXH2(q) (0xA00 + (q) * 8) /* Ring2 Rx head */
sys/kern/kern_exit.c
1005
struct proc *q = td->td_proc;
sys/kern/kern_exit.c
1028
lwkt_gettoken(&q->p_token);
sys/kern/kern_exit.c
1048
if (STOPLWP(q, td->td_lwp))
sys/kern/kern_exit.c
1060
waitgen = atomic_fetchadd_long(&q->p_waitgen, 0x80000000);
sys/kern/kern_exit.c
1061
LIST_FOREACH(p, &q->p_children, p_sibling) {
sys/kern/kern_exit.c
1159
if (p->p_pptr != q) {
sys/kern/kern_exit.c
1274
ruadd(&q->p_cru, &p->p_ru);
sys/kern/kern_exit.c
1275
ruadd(&q->p_cru, &p->p_cru);
sys/kern/kern_exit.c
1324
lwkt_reltoken(&q->p_token);
sys/kern/kern_exit.c
1326
lwkt_gettoken(&q->p_token);
sys/kern/kern_exit.c
1350
if (p->p_pptr != q) {
sys/kern/kern_exit.c
1390
if (p->p_pptr != q) {
sys/kern/kern_exit.c
1437
while ((waitgen & 0x7FFFFFFF) == (q->p_waitgen & 0x7FFFFFFF)) {
sys/kern/kern_exit.c
1438
tsleep_interlock(q, PCATCH);
sys/kern/kern_exit.c
1439
waitgen = atomic_fetchadd_long(&q->p_waitgen, 0x80000000);
sys/kern/kern_exit.c
1440
if ((waitgen & 0x7FFFFFFF) == (q->p_waitgen & 0x7FFFFFFF)) {
sys/kern/kern_exit.c
1441
error = tsleep(q, PCATCH | PINTERLOCKED, "wait", 0);
sys/kern/kern_exit.c
1447
lwkt_reltoken(&q->p_token);
sys/kern/kern_exit.c
295
struct proc *q;
sys/kern/kern_exit.c
330
q = p->p_peers;
sys/kern/kern_exit.c
331
while (q) {
sys/kern/kern_exit.c
332
sysmsg.extargs.kill.pid = q->p_pid;
sys/kern/kern_exit.c
338
q = q->p_peers;
sys/kern/kern_exit.c
385
q = p->p_leader;
sys/kern/kern_exit.c
386
while(q->p_peers != p)
sys/kern/kern_exit.c
387
q = q->p_peers;
sys/kern/kern_exit.c
388
q->p_peers = p->p_peers;
sys/kern/kern_exit.c
550
q = LIST_FIRST(&p->p_children);
sys/kern/kern_exit.c
551
if (q) {
sys/kern/kern_exit.c
554
while ((q = LIST_FIRST(&p->p_children)) != NULL) {
sys/kern/kern_exit.c
555
PHOLD(q);
sys/kern/kern_exit.c
556
lwkt_gettoken(&q->p_token);
sys/kern/kern_exit.c
557
if (q != LIST_FIRST(&p->p_children)) {
sys/kern/kern_exit.c
558
lwkt_reltoken(&q->p_token);
sys/kern/kern_exit.c
559
PRELE(q);
sys/kern/kern_exit.c
562
LIST_REMOVE(q, p_sibling);
sys/kern/kern_exit.c
563
LIST_INSERT_HEAD(&reproc->p_children, q, p_sibling);
sys/kern/kern_exit.c
564
q->p_pptr = reproc;
sys/kern/kern_exit.c
565
q->p_ppid = reproc->p_pid;
sys/kern/kern_exit.c
566
q->p_reaptid = 0;
sys/kern/kern_exit.c
567
q->p_sigparent = SIGCHLD;
sys/kern/kern_exit.c
573
if (q->p_flags & P_TRACED) {
sys/kern/kern_exit.c
574
q->p_flags &= ~P_TRACED;
sys/kern/kern_exit.c
575
ksignal(q, SIGKILL);
sys/kern/kern_exit.c
581
if (q->p_deathsig)
sys/kern/kern_exit.c
582
ksignal(q, q->p_deathsig);
sys/kern/kern_exit.c
583
lwkt_reltoken(&q->p_token);
sys/kern/kern_exit.c
584
PRELE(q);
sys/kern/kern_p1003_1b.c
73
#define CAN_AFFECT(p, cr, q) \
sys/kern/kern_p1003_1b.c
75
(cr)->cr_ruid == (q)->p_ucred->cr_ruid || \
sys/kern/kern_p1003_1b.c
76
(cr)->cr_uid == (q)->p_ucred->cr_ruid || \
sys/kern/kern_p1003_1b.c
77
(cr)->cr_ruid == (q)->p_ucred->cr_uid || \
sys/kern/kern_p1003_1b.c
78
(cr)->cr_uid == (q)->p_ucred->cr_uid)
sys/kern/kern_p1003_1b.c
80
#define CAN_AFFECT(p, cr, q) ((cr)->cr_uid == 0)
sys/kern/kern_sig.c
101
(ruid) == (q)->p_ucred->cr_ruid || \
sys/kern/kern_sig.c
102
(uc)->cr_uid == (q)->p_ucred->cr_ruid || \
sys/kern/kern_sig.c
103
(ruid) == (q)->p_ucred->cr_uid || \
sys/kern/kern_sig.c
104
(uc)->cr_uid == (q)->p_ucred->cr_uid)
sys/kern/kern_sig.c
1135
struct proc *q;
sys/kern/kern_sig.c
1283
q = p->p_pptr;
sys/kern/kern_sig.c
1284
PHOLD(q);
sys/kern/kern_sig.c
1285
lwkt_gettoken(&q->p_token);
sys/kern/kern_sig.c
1287
wakeup(q);
sys/kern/kern_sig.c
1291
lwkt_reltoken(&q->p_token);
sys/kern/kern_sig.c
1292
PRELE(q);
sys/kern/kern_sig.c
1567
struct proc *q;
sys/kern/kern_sig.c
1631
q = p->p_pptr;
sys/kern/kern_sig.c
1632
PHOLD(q);
sys/kern/kern_sig.c
1633
lwkt_gettoken(&q->p_token);
sys/kern/kern_sig.c
1635
wakeup(q);
sys/kern/kern_sig.c
1636
if ((q->p_sigacts->ps_flag & PS_NOCLDSTOP) == 0)
sys/kern/kern_sig.c
1638
lwkt_reltoken(&q->p_token);
sys/kern/kern_sig.c
1639
PRELE(q);
sys/kern/kern_sig.c
99
#define CANSIGIO(ruid, uc, q) \
sys/kern/kern_synch.c
1343
struct proc *q;
sys/kern/kern_synch.c
1365
q = p->p_pptr;
sys/kern/kern_synch.c
1366
PHOLD(q);
sys/kern/kern_synch.c
1367
lwkt_gettoken(&q->p_token);
sys/kern/kern_synch.c
1370
if ((q->p_sigacts->ps_flag & PS_NOCLDSTOP) == 0)
sys/kern/kern_synch.c
1371
ksignal(q, SIGCHLD);
sys/kern/kern_synch.c
1372
lwkt_reltoken(&q->p_token);
sys/kern/kern_synch.c
1373
PRELE(q);
sys/kern/kern_sysctl.c
117
struct sysctl_oid *q;
sys/kern/kern_sysctl.c
158
q = NULL;
sys/kern/kern_sysctl.c
162
q = p;
sys/kern/kern_sysctl.c
164
if (q)
sys/kern/kern_sysctl.c
165
SLIST_INSERT_AFTER(q, oidp, oid_link);
sys/kern/subr_gtaskqueue.c
809
struct gtaskqueue *q;
sys/kern/subr_gtaskqueue.c
812
q = tqg->tqg_queue[i].tgc_taskq;
sys/kern/subr_gtaskqueue.c
813
if (q == NULL)
sys/kern/subr_gtaskqueue.c
815
gtaskqueue_drain_all(q);
sys/kern/subr_prf.c
556
const char *p, *percent, *q;
sys/kern/subr_prf.c
711
for (q = ksprintn(nbuf, num, *p++, NULL, 0);*q;)
sys/kern/subr_prf.c
712
PCHAR(*q--);
sys/kern/tty.c
383
#define FLUSHQ(q) { \
sys/kern/tty.c
384
if ((q)->c_cc) \
sys/kern/tty.c
385
ndflush(q, (q)->c_cc); \
sys/kern/uipc_mbuf2.c
311
struct m_tag *p, *q;
sys/kern/uipc_mbuf2.c
318
while ((q = SLIST_NEXT(p, m_tag_link)) != NULL)
sys/kern/uipc_mbuf2.c
319
m_tag_delete(m, q);
sys/kern/usched_bsd4.c
1320
struct rq *q;
sys/kern/usched_bsd4.c
1337
q = &bsd4_rtqueues[pri];
sys/kern/usched_bsd4.c
1342
q = &bsd4_queues[pri];
sys/kern/usched_bsd4.c
1347
q = &bsd4_idqueues[pri];
sys/kern/usched_bsd4.c
1353
lp = TAILQ_FIRST(q);
sys/kern/usched_bsd4.c
1396
TAILQ_REMOVE(q, lp, lwp_procq);
sys/kern/usched_bsd4.c
1398
if (TAILQ_EMPTY(q))
sys/kern/usched_bsd4.c
1419
struct rq *q;
sys/kern/usched_bsd4.c
1456
q = &bsd4_rtqueues[pri];
sys/kern/usched_bsd4.c
1461
q = &bsd4_queues[pri];
sys/kern/usched_bsd4.c
1466
q = &bsd4_idqueues[pri];
sys/kern/usched_bsd4.c
1476
lp = TAILQ_FIRST(q);
sys/kern/usched_bsd4.c
1515
min_q = q;
sys/kern/usched_bsd4.c
1545
q = min_q;
sys/kern/usched_bsd4.c
1572
TAILQ_REMOVE(q, lp, lwp_procq);
sys/kern/usched_bsd4.c
1574
if (TAILQ_EMPTY(q))
sys/kern/usched_bsd4.c
1644
struct rq *q;
sys/kern/usched_bsd4.c
1656
q = &bsd4_queues[pri];
sys/kern/usched_bsd4.c
1661
q = &bsd4_rtqueues[pri];
sys/kern/usched_bsd4.c
1665
q = &bsd4_idqueues[pri];
sys/kern/usched_bsd4.c
1672
TAILQ_REMOVE(q, lp, lwp_procq);
sys/kern/usched_bsd4.c
1673
if (TAILQ_EMPTY(q)) {
sys/kern/usched_bsd4.c
1694
struct rq *q;
sys/kern/usched_bsd4.c
1706
q = &bsd4_queues[pri];
sys/kern/usched_bsd4.c
1711
q = &bsd4_rtqueues[pri];
sys/kern/usched_bsd4.c
1715
q = &bsd4_idqueues[pri];
sys/kern/usched_bsd4.c
1730
TAILQ_INSERT_TAIL(q, lp, lwp_procq);
sys/kern/usched_dfly.c
1446
struct rq *q;
sys/kern/usched_dfly.c
1467
q = &rdd->idqueues[pri];
sys/kern/usched_dfly.c
1472
q = &rdd->queues[pri];
sys/kern/usched_dfly.c
1477
q = &rdd->rtqueues[pri];
sys/kern/usched_dfly.c
1482
lp = TAILQ_LAST(q, rq);
sys/kern/usched_dfly.c
1487
q = &rdd->rtqueues[pri];
sys/kern/usched_dfly.c
1492
q = &rdd->queues[pri];
sys/kern/usched_dfly.c
1497
q = &rdd->idqueues[pri];
sys/kern/usched_dfly.c
1502
lp = TAILQ_FIRST(q);
sys/kern/usched_dfly.c
1543
TAILQ_REMOVE(q, lp, lwp_procq);
sys/kern/usched_dfly.c
1545
if (TAILQ_EMPTY(q))
sys/kern/usched_dfly.c
2205
struct rq *q;
sys/kern/usched_dfly.c
2215
q = &rdd->queues[pri];
sys/kern/usched_dfly.c
2220
q = &rdd->rtqueues[pri];
sys/kern/usched_dfly.c
2224
q = &rdd->idqueues[pri];
sys/kern/usched_dfly.c
2233
TAILQ_REMOVE(q, lp, lwp_procq);
sys/kern/usched_dfly.c
2235
if (TAILQ_EMPTY(q)) {
sys/kern/usched_dfly.c
2262
struct rq *q;
sys/kern/usched_dfly.c
2279
q = &rdd->queues[pri];
sys/kern/usched_dfly.c
2284
q = &rdd->rtqueues[pri];
sys/kern/usched_dfly.c
2288
q = &rdd->idqueues[pri];
sys/kern/usched_dfly.c
2320
TAILQ_INSERT_TAIL(q, lp, lwp_procq);
sys/kern/usched_dfly.c
2326
TAILQ_INSERT_HEAD(q, lp, lwp_procq);
sys/kern/vfs_bio.c
107
static int flushbufqueues(struct buf *marker, bufq_type_t q);
sys/kern/vfs_bio.c
2335
flushbufqueues(struct buf *marker, bufq_type_t q)
sys/kern/vfs_bio.c
2354
marker->b_qindex = q;
sys/kern/vfs_bio.c
2355
TAILQ_INSERT_HEAD(&pcpu->bufqueues[q], marker, b_freelist);
sys/kern/vfs_bio.c
2370
KKASSERT(bp->b_qcpu == marker->b_qcpu && bp->b_qindex == q);
sys/kern/vfs_bio.c
2378
TAILQ_REMOVE(&pcpu->bufqueues[q], marker, b_freelist);
sys/kern/vfs_bio.c
2379
TAILQ_INSERT_AFTER(&pcpu->bufqueues[q], bp, marker, b_freelist);
sys/kern/vfs_bio.c
2422
TAILQ_INSERT_TAIL(&pcpu->bufqueues[q], bp, b_freelist);
sys/kern/vfs_bio.c
2423
bp->b_qindex = q;
sys/kern/vfs_bio.c
2461
TAILQ_REMOVE(&pcpu->bufqueues[q], marker, b_freelist);
sys/kern/vfs_subr.c
2628
#define SETHIGH(q, h) { \
sys/kern/vfs_subr.c
2630
tmp.qcvt = (q); \
sys/kern/vfs_subr.c
2632
(q) = tmp.qcvt; \
sys/kern/vfs_subr.c
2634
#define SETLOW(q, l) { \
sys/kern/vfs_subr.c
2636
tmp.qcvt = (q); \
sys/kern/vfs_subr.c
2638
(q) = tmp.qcvt; \
sys/libiconv/iconv_ucs.c
175
u_char ucs[4], *q;
sys/libiconv/iconv_ucs.c
229
for (q = ucs, i = ucslen - 1 ; i >= 0 ; i--)
sys/libiconv/iconv_ucs.c
230
*q++ = (code >> (i << 3)) & 0xff;
sys/libiconv/iconv_ucs.c
236
q = ucs;
sys/libiconv/iconv_ucs.c
237
ret = iconv_convchr_case(dp->f_ctp, &p, &inlen, (char **)&q,
sys/libiconv/iconv_ucs.c
246
q = ucs;
sys/libiconv/iconv_ucs.c
248
*q = *(p + 1);
sys/libiconv/iconv_ucs.c
249
*(q + 1) = *p;
sys/libiconv/iconv_ucs.c
252
*q = *p++;
sys/libiconv/iconv_ucs.c
253
*(q + 1) = *p++;
sys/libiconv/iconv_ucs.c
255
if ((*q & 0xfc) == 0xd8) {
sys/libiconv/iconv_ucs.c
272
q += 2;
sys/libiconv/iconv_ucs.c
274
*q = *(p + 1);
sys/libiconv/iconv_ucs.c
275
*(q + 1) = *p;
sys/libiconv/iconv_ucs.c
277
*q = *p++;
sys/libiconv/iconv_ucs.c
278
*(q + 1) = *p;
sys/libiconv/iconv_ucs.c
280
if ((*q & 0xfc) != 0xdc) {
sys/libiconv/iconv_ucs.c
294
q = (u_char *)dst;
sys/libiconv/iconv_ucs.c
309
if (ucs4_to_utf8(code, q, &outlen, or) == NULL) {
sys/net/altq/altq_classq.h
101
if ((m = m0 = qtail(q)) == NULL)
sys/net/altq/altq_classq.h
109
qtail(q) = NULL;
sys/net/altq/altq_classq.h
111
qtail(q) = prev;
sys/net/altq/altq_classq.h
112
qlen(q)--;
sys/net/altq/altq_classq.h
119
_getq_random(class_queue_t *q)
sys/net/altq/altq_classq.h
124
if ((m = qtail(q)) == NULL)
sys/net/altq/altq_classq.h
127
qtail(q) = NULL;
sys/net/altq/altq_classq.h
131
n = krandom() % qlen(q) + 1;
sys/net/altq/altq_classq.h
137
if (m == qtail(q))
sys/net/altq/altq_classq.h
138
qtail(q) = prev;
sys/net/altq/altq_classq.h
140
qlen(q)--;
sys/net/altq/altq_classq.h
146
_removeq(class_queue_t *q, struct mbuf *m)
sys/net/altq/altq_classq.h
150
m0 = qtail(q);
sys/net/altq/altq_classq.h
157
qtail(q) = NULL;
sys/net/altq/altq_classq.h
158
else if (qtail(q) == m)
sys/net/altq/altq_classq.h
159
qtail(q) = prev;
sys/net/altq/altq_classq.h
160
qlen(q)--;
sys/net/altq/altq_classq.h
164
_flushq(class_queue_t *q)
sys/net/altq/altq_classq.h
168
while ((m = _getq(q)) != NULL)
sys/net/altq/altq_classq.h
66
#define qtype(q) (q)->qtype_ /* Get queue type */
sys/net/altq/altq_classq.h
67
#define qlimit(q) (q)->qlim_ /* Max packets to be queued */
sys/net/altq/altq_classq.h
68
#define qlen(q) (q)->qlen_ /* Current queue length. */
sys/net/altq/altq_classq.h
69
#define qtail(q) classq_tail(&(q)->que_) /* Tail of the queue */
sys/net/altq/altq_classq.h
70
#define qhead(q) classq_head(&(q)->que_)
sys/net/altq/altq_classq.h
72
#define qempty(q) ((q)->qlen_ == 0) /* Is the queue empty?? */
sys/net/altq/altq_classq.h
73
#define q_is_red(q) ((q)->qtype_ == Q_RED) /* Is the queue a red queue */
sys/net/altq/altq_classq.h
74
#define q_is_rio(q) ((q)->qtype_ == Q_RIO) /* Is the queue a rio queue */
sys/net/altq/altq_classq.h
75
#define q_is_red_or_rio(q) ((q)->qtype_ == Q_RED || (q)->qtype_ == Q_RIO)
sys/net/altq/altq_classq.h
78
_addq(class_queue_t *q, struct mbuf *m)
sys/net/altq/altq_classq.h
80
classq_add(&q->que_, m);
sys/net/altq/altq_classq.h
81
qlen(q)++;
sys/net/altq/altq_classq.h
85
_getq(class_queue_t *q)
sys/net/altq/altq_classq.h
89
m = classq_get(&q->que_);
sys/net/altq/altq_classq.h
91
qlen(q)--;
sys/net/altq/altq_classq.h
97
_getq_tail(class_queue_t *q)
sys/net/altq/altq_red.c
263
red_addq(red_t *rp, class_queue_t *q, struct mbuf *m, struct altq_pktattr *pktattr)
sys/net/altq/altq_red.c
299
avg += (qlen(q) << FP_SHIFT) - (avg >> rp->red_wshift);
sys/net/altq/altq_red.c
310
if (avg >= rp->red_thmin_s && qlen(q) > 1) {
sys/net/altq/altq_red.c
341
if (droptype == DTYPE_NODROP && qlen(q) >= qlimit(q))
sys/net/altq/altq_red.c
347
_addq(q, m);
sys/net/altq/altq_red.c
351
_addq(q, m);
sys/net/altq/altq_red.c
362
m = _getq_random(q);
sys/net/altq/altq_red.c
512
red_getq(red_t *rp, class_queue_t *q)
sys/net/altq/altq_red.c
516
if ((m = _getq(q)) == NULL) {
sys/net/altq/altq_rio.c
293
rio_addq(rio_t *rp, class_queue_t *q, struct mbuf *m, struct altq_pktattr *pktattr)
sys/net/altq/altq_rio.c
366
if (droptype == DTYPE_NODROP && qlen(q) >= qlimit(q))
sys/net/altq/altq_rio.c
396
_addq(q, m);
sys/net/altq/altq_rio.c
405
rio_getq(rio_t *rp, class_queue_t *q)
sys/net/altq/altq_rio.c
410
if ((m = _getq(q)) == NULL)
sys/net/altq/if_classq.h
46
#define classq_tail(q) (q)->clq_tail
sys/net/altq/if_classq.h
47
#define classq_head(q) ((q)->clq_tail ? (q)->clq_tail->m_nextpkt : NULL)
sys/net/altq/if_classq.h
50
classq_add(struct if_classq *q, struct mbuf *m)
sys/net/altq/if_classq.h
54
if ((m0 = classq_tail(q)) != NULL)
sys/net/altq/if_classq.h
59
classq_tail(q) = m;
sys/net/altq/if_classq.h
63
classq_get(struct if_classq *q)
sys/net/altq/if_classq.h
67
if ((m = classq_tail(q)) == NULL)
sys/net/altq/if_classq.h
72
classq_tail(q) = NULL;
sys/net/dummynet/ip_dummynet.c
1040
struct dn_flow_queue *q = NULL;
sys/net/dummynet/ip_dummynet.c
1068
q = find_queue(fs, &pkt->id);
sys/net/dummynet/ip_dummynet.c
1069
if (q == NULL)
sys/net/dummynet/ip_dummynet.c
1075
q->tot_bytes += len;
sys/net/dummynet/ip_dummynet.c
1076
q->tot_pkts++;
sys/net/dummynet/ip_dummynet.c
1082
if (q->len_bytes > fs->qsize)
sys/net/dummynet/ip_dummynet.c
1085
if (q->len >= fs->qsize)
sys/net/dummynet/ip_dummynet.c
1089
if ((fs->flags_fs & DN_IS_RED) && red_drops(fs, q, len))
sys/net/dummynet/ip_dummynet.c
1092
TAILQ_INSERT_TAIL(&q->queue, pkt, dn_next);
sys/net/dummynet/ip_dummynet.c
1093
q->len++;
sys/net/dummynet/ip_dummynet.c
1094
q->len_bytes += len;
sys/net/dummynet/ip_dummynet.c
1096
if (TAILQ_FIRST(&q->queue) != pkt) /* Flow was not idle, we are done */
sys/net/dummynet/ip_dummynet.c
1111
t = SET_TICKS(pkt, q, pipe);
sys/net/dummynet/ip_dummynet.c
1113
q->sched_time = curr_time;
sys/net/dummynet/ip_dummynet.c
1115
ready_event(q);
sys/net/dummynet/ip_dummynet.c
1117
heap_insert(&ready_heap, curr_time + t, q);
sys/net/dummynet/ip_dummynet.c
1129
if (DN_KEY_GT(q->S, q->F)) { /* Means timestamps are invalid */
sys/net/dummynet/ip_dummynet.c
1130
q->S = pipe->V;
sys/net/dummynet/ip_dummynet.c
1133
heap_extract(&pipe->idle_heap, q);
sys/net/dummynet/ip_dummynet.c
1134
q->S = MAX64(q->F, pipe->V);
sys/net/dummynet/ip_dummynet.c
1136
q->F = q->S + (len << MY_M) / (uint64_t)fs->weight;
sys/net/dummynet/ip_dummynet.c
1140
pipe->V = MAX64(q->S, pipe->V);
sys/net/dummynet/ip_dummynet.c
1157
if (DN_KEY_GT(q->S, pipe->V)) { /* Not eligible */
sys/net/dummynet/ip_dummynet.c
1160
heap_insert(&pipe->not_eligible_heap, q->S, q);
sys/net/dummynet/ip_dummynet.c
1162
heap_insert(&pipe->scheduler_heap, q->F, q);
sys/net/dummynet/ip_dummynet.c
1167
pipe->pipe_nr, (int)(q->F >> MY_M));
sys/net/dummynet/ip_dummynet.c
1177
if (q)
sys/net/dummynet/ip_dummynet.c
1178
q->drops++;
sys/net/dummynet/ip_dummynet.c
1197
struct dn_flow_queue *q;
sys/net/dummynet/ip_dummynet.c
1199
while ((q = LIST_FIRST(&fs->rq[i])) != NULL) {
sys/net/dummynet/ip_dummynet.c
1202
while ((pkt = TAILQ_FIRST(&q->queue)) != NULL) {
sys/net/dummynet/ip_dummynet.c
1203
TAILQ_REMOVE(&q->queue, pkt, dn_next);
sys/net/dummynet/ip_dummynet.c
1207
LIST_REMOVE(q, q_link);
sys/net/dummynet/ip_dummynet.c
1208
kfree(q, M_DUMMYNET);
sys/net/dummynet/ip_dummynet.c
1509
struct dn_flow_queue *q;
sys/net/dummynet/ip_dummynet.c
1511
LIST_FOREACH(q, &x->fs.rq[i], q_link)
sys/net/dummynet/ip_dummynet.c
1512
q->numbytes = 0;
sys/net/dummynet/ip_dummynet.c
1740
const struct dn_flow_queue *q;
sys/net/dummynet/ip_dummynet.c
1742
LIST_FOREACH(q, &fs->rq[i], q_link) {
sys/net/dummynet/ip_dummynet.c
1743
if (q->hash_slot != i) { /* XXX ASSERT */
sys/net/dummynet/ip_dummynet.c
1745
"should be %d)\n", copied, q->hash_slot, i);
sys/net/dummynet/ip_dummynet.c
1747
if (q->fs != fs) { /* XXX ASSERT */
sys/net/dummynet/ip_dummynet.c
1749
i, q->fs, fs);
sys/net/dummynet/ip_dummynet.c
1754
ioc_fq->len = q->len;
sys/net/dummynet/ip_dummynet.c
1755
ioc_fq->len_bytes = q->len_bytes;
sys/net/dummynet/ip_dummynet.c
1756
ioc_fq->tot_pkts = q->tot_pkts;
sys/net/dummynet/ip_dummynet.c
1757
ioc_fq->tot_bytes = q->tot_bytes;
sys/net/dummynet/ip_dummynet.c
1758
ioc_fq->drops = q->drops;
sys/net/dummynet/ip_dummynet.c
1759
ioc_fq->hash_slot = q->hash_slot;
sys/net/dummynet/ip_dummynet.c
1760
ioc_fq->S = q->S;
sys/net/dummynet/ip_dummynet.c
1761
ioc_fq->F = q->F;
sys/net/dummynet/ip_dummynet.c
1762
dn_copy_flowid(&q->id, &ioc_fq->id);
sys/net/dummynet/ip_dummynet.c
431
#define SET_TICKS(pkt, q, p) \
sys/net/dummynet/ip_dummynet.c
432
(pkt->dn_m->m_pkthdr.len*8*dn_hz - (q)->numbytes + p->bandwidth - 1 ) / \
sys/net/dummynet/ip_dummynet.c
440
move_pkt(struct dn_pkt *pkt, struct dn_flow_queue *q,
sys/net/dummynet/ip_dummynet.c
443
TAILQ_REMOVE(&q->queue, pkt, dn_next);
sys/net/dummynet/ip_dummynet.c
444
q->len--;
sys/net/dummynet/ip_dummynet.c
445
q->len_bytes -= len;
sys/net/dummynet/ip_dummynet.c
460
ready_event(struct dn_flow_queue *q)
sys/net/dummynet/ip_dummynet.c
463
struct dn_pipe *p = q->fs->pipe;
sys/net/dummynet/ip_dummynet.c
480
q->numbytes += (curr_time - q->sched_time) * p->bandwidth;
sys/net/dummynet/ip_dummynet.c
481
while ((pkt = TAILQ_FIRST(&q->queue)) != NULL) {
sys/net/dummynet/ip_dummynet.c
485
if (len_scaled > q->numbytes)
sys/net/dummynet/ip_dummynet.c
487
q->numbytes -= len_scaled;
sys/net/dummynet/ip_dummynet.c
488
move_pkt(pkt, q, p, len);
sys/net/dummynet/ip_dummynet.c
498
if ((pkt = TAILQ_FIRST(&q->queue)) != NULL) {
sys/net/dummynet/ip_dummynet.c
500
dn_key t = SET_TICKS(pkt, q, p); /* ticks i have to wait */
sys/net/dummynet/ip_dummynet.c
502
q->sched_time = curr_time;
sys/net/dummynet/ip_dummynet.c
508
heap_insert(&ready_heap, curr_time + t, q);
sys/net/dummynet/ip_dummynet.c
510
q->q_time = curr_time;
sys/net/dummynet/ip_dummynet.c
511
q->numbytes = 0;
sys/net/dummynet/ip_dummynet.c
545
struct dn_flow_queue *q = sch->p[0].object;
sys/net/dummynet/ip_dummynet.c
546
struct dn_pkt *pkt = TAILQ_FIRST(&q->queue);
sys/net/dummynet/ip_dummynet.c
547
struct dn_flow_set *fs = q->fs;
sys/net/dummynet/ip_dummynet.c
553
move_pkt(pkt, q, p, len);
sys/net/dummynet/ip_dummynet.c
556
q->S = q->F; /* Update start time */
sys/net/dummynet/ip_dummynet.c
558
if (q->len == 0) { /* Flow not backlogged any more */
sys/net/dummynet/ip_dummynet.c
560
heap_insert(&p->idle_heap, q->F, q);
sys/net/dummynet/ip_dummynet.c
566
len = TAILQ_FIRST(&q->queue)->dn_m->m_pkthdr.len;
sys/net/dummynet/ip_dummynet.c
567
q->F += (len << MY_M) / (uint64_t)fs->weight;
sys/net/dummynet/ip_dummynet.c
568
if (DN_KEY_LEQ(q->S, p->V))
sys/net/dummynet/ip_dummynet.c
569
heap_insert(neh, q->S, q);
sys/net/dummynet/ip_dummynet.c
571
heap_insert(sch, q->F, q);
sys/net/dummynet/ip_dummynet.c
588
struct dn_flow_queue *q = neh->p[0].object;
sys/net/dummynet/ip_dummynet.c
591
heap_insert(sch, q->F, q);
sys/net/dummynet/ip_dummynet.c
603
struct dn_flow_queue *q = p->idle_heap.p[i].object;
sys/net/dummynet/ip_dummynet.c
605
q->F = 0;
sys/net/dummynet/ip_dummynet.c
606
q->S = q->F + 1;
sys/net/dummynet/ip_dummynet.c
646
struct dn_flow_queue *q = pipe->idle_heap.p[0].object;
sys/net/dummynet/ip_dummynet.c
649
q->S = q->F + 1; /* Mark timestamp as invalid */
sys/net/dummynet/ip_dummynet.c
650
pipe->sum -= q->fs->weight;
sys/net/dummynet/ip_dummynet.c
715
struct dn_flow_queue *q, *qn;
sys/net/dummynet/ip_dummynet.c
717
LIST_FOREACH_MUTABLE(q, &fs->rq[i], q_link, qn) {
sys/net/dummynet/ip_dummynet.c
718
if (!TAILQ_EMPTY(&q->queue) || q->S != q->F + 1)
sys/net/dummynet/ip_dummynet.c
724
LIST_REMOVE(q, q_link);
sys/net/dummynet/ip_dummynet.c
725
kfree(q, M_DUMMYNET);
sys/net/dummynet/ip_dummynet.c
742
struct dn_flow_queue *q;
sys/net/dummynet/ip_dummynet.c
754
q = kmalloc(sizeof(*q), M_DUMMYNET, M_INTWAIT | M_NULLOK | M_ZERO);
sys/net/dummynet/ip_dummynet.c
755
if (q == NULL)
sys/net/dummynet/ip_dummynet.c
758
q->fs = fs;
sys/net/dummynet/ip_dummynet.c
759
q->hash_slot = i;
sys/net/dummynet/ip_dummynet.c
760
q->S = q->F + 1; /* hack - mark timestamp as invalid */
sys/net/dummynet/ip_dummynet.c
761
TAILQ_INIT(&q->queue);
sys/net/dummynet/ip_dummynet.c
763
LIST_INSERT_HEAD(&fs->rq[i], q, q_link);
sys/net/dummynet/ip_dummynet.c
766
return q;
sys/net/dummynet/ip_dummynet.c
777
struct dn_flow_queue *q;
sys/net/dummynet/ip_dummynet.c
781
q = LIST_FIRST(&fs->rq[0]);
sys/net/dummynet/ip_dummynet.c
807
LIST_FOREACH_MUTABLE(q, &fs->rq[i], q_link, qn) {
sys/net/dummynet/ip_dummynet.c
809
if (id->fid_dst_ip == q->id.fid_dst_ip &&
sys/net/dummynet/ip_dummynet.c
810
id->fid_src_ip == q->id.fid_src_ip &&
sys/net/dummynet/ip_dummynet.c
811
id->fid_dst_port == q->id.fid_dst_port &&
sys/net/dummynet/ip_dummynet.c
812
id->fid_src_port == q->id.fid_src_port &&
sys/net/dummynet/ip_dummynet.c
813
id->fid_proto == q->id.fid_proto &&
sys/net/dummynet/ip_dummynet.c
814
id->fid_flags == q->id.fid_flags) {
sys/net/dummynet/ip_dummynet.c
816
} else if (pipe_expire && TAILQ_EMPTY(&q->queue) &&
sys/net/dummynet/ip_dummynet.c
817
q->S == q->F + 1) {
sys/net/dummynet/ip_dummynet.c
821
LIST_REMOVE(q, q_link);
sys/net/dummynet/ip_dummynet.c
822
kfree(q, M_DUMMYNET);
sys/net/dummynet/ip_dummynet.c
829
if (q && LIST_FIRST(&fs->rq[i]) != q) { /* Found and not in front */
sys/net/dummynet/ip_dummynet.c
830
LIST_REMOVE(q, q_link);
sys/net/dummynet/ip_dummynet.c
831
LIST_INSERT_HEAD(&fs->rq[i], q, q_link);
sys/net/dummynet/ip_dummynet.c
834
if (q == NULL) { /* No match, need to allocate a new entry */
sys/net/dummynet/ip_dummynet.c
835
q = create_queue(fs, i);
sys/net/dummynet/ip_dummynet.c
836
if (q != NULL)
sys/net/dummynet/ip_dummynet.c
837
q->id = *id;
sys/net/dummynet/ip_dummynet.c
839
return q;
sys/net/dummynet/ip_dummynet.c
843
red_drops(struct dn_flow_set *fs, struct dn_flow_queue *q, int len)
sys/net/dummynet/ip_dummynet.c
863
u_int q_size = (fs->flags_fs & DN_QSIZE_IS_BYTES) ? q->len_bytes : q->len;
sys/net/dummynet/ip_dummynet.c
872
int diff = SCALE(q_size) - q->avg;
sys/net/dummynet/ip_dummynet.c
875
q->avg += (int)v;
sys/net/dummynet/ip_dummynet.c
884
if (q->avg) {
sys/net/dummynet/ip_dummynet.c
885
u_int t = (curr_time - q->q_time) / fs->lookup_step;
sys/net/dummynet/ip_dummynet.c
887
q->avg = (t < fs->lookup_depth) ?
sys/net/dummynet/ip_dummynet.c
888
SCALE_MUL(q->avg, fs->w_q_lookup[t]) : 0;
sys/net/dummynet/ip_dummynet.c
891
DPRINTF("avg: %u ", SCALE_VAL(q->avg));
sys/net/dummynet/ip_dummynet.c
895
if (q->avg < fs->min_th) {
sys/net/dummynet/ip_dummynet.c
897
q->count = -1;
sys/net/dummynet/ip_dummynet.c
901
if (q->avg >= fs->max_th) { /* Average queue >= Max threshold */
sys/net/dummynet/ip_dummynet.c
909
p_b = SCALE_MUL((int64_t)fs->c_3, (int64_t)q->avg) - fs->c_4;
sys/net/dummynet/ip_dummynet.c
911
q->count = -1;
sys/net/dummynet/ip_dummynet.c
915
} else if (q->avg > fs->min_th) {
sys/net/dummynet/ip_dummynet.c
921
p_b = SCALE_MUL((int64_t)fs->c_1, (int64_t)q->avg) - fs->c_2;
sys/net/dummynet/ip_dummynet.c
926
if (++q->count == 0) {
sys/net/dummynet/ip_dummynet.c
927
q->random = krandom() & 0xffff;
sys/net/dummynet/ip_dummynet.c
933
if (SCALE_MUL(p_b, SCALE((int64_t)q->count)) > q->random) {
sys/net/dummynet/ip_dummynet.c
934
q->count = 0;
sys/net/dummynet/ip_dummynet.c
937
q->random = krandom() & 0xffff;
sys/net/dummynet3/ip_dummynet3.c
1059
struct dn_flow_queue *q = NULL;
sys/net/dummynet3/ip_dummynet3.c
1087
q = find_queue(fs, &pkt->id);
sys/net/dummynet3/ip_dummynet3.c
1088
if (q == NULL)
sys/net/dummynet3/ip_dummynet3.c
1094
q->tot_bytes += len;
sys/net/dummynet3/ip_dummynet3.c
1095
q->tot_pkts++;
sys/net/dummynet3/ip_dummynet3.c
1101
if (q->len_bytes > fs->qsize)
sys/net/dummynet3/ip_dummynet3.c
1104
if (q->len >= fs->qsize)
sys/net/dummynet3/ip_dummynet3.c
1108
if ((fs->flags_fs & DN_IS_RED) && red_drops(fs, q, len))
sys/net/dummynet3/ip_dummynet3.c
1111
TAILQ_INSERT_TAIL(&q->queue, pkt, dn_next);
sys/net/dummynet3/ip_dummynet3.c
1112
q->len++;
sys/net/dummynet3/ip_dummynet3.c
1113
q->len_bytes += len;
sys/net/dummynet3/ip_dummynet3.c
1115
if (TAILQ_FIRST(&q->queue) != pkt) /* Flow was not idle, we are done */
sys/net/dummynet3/ip_dummynet3.c
1130
t = SET_TICKS(pkt, q, pipe);
sys/net/dummynet3/ip_dummynet3.c
1132
q->sched_time = curr_time;
sys/net/dummynet3/ip_dummynet3.c
1134
ready_event(q);
sys/net/dummynet3/ip_dummynet3.c
1136
heap_insert(&ready_heap, curr_time + t, q);
sys/net/dummynet3/ip_dummynet3.c
1148
if (DN_KEY_GT(q->S, q->F)) { /* Means timestamps are invalid */
sys/net/dummynet3/ip_dummynet3.c
1149
q->S = pipe->V;
sys/net/dummynet3/ip_dummynet3.c
1152
heap_extract(&pipe->idle_heap, q);
sys/net/dummynet3/ip_dummynet3.c
1153
q->S = MAX64(q->F, pipe->V);
sys/net/dummynet3/ip_dummynet3.c
1155
q->F = q->S + (len << MY_M) / (uint64_t)fs->weight;
sys/net/dummynet3/ip_dummynet3.c
1159
pipe->V = MAX64(q->S, pipe->V);
sys/net/dummynet3/ip_dummynet3.c
1176
if (DN_KEY_GT(q->S, pipe->V)) { /* Not eligible */
sys/net/dummynet3/ip_dummynet3.c
1179
heap_insert(&pipe->not_eligible_heap, q->S, q);
sys/net/dummynet3/ip_dummynet3.c
1181
heap_insert(&pipe->scheduler_heap, q->F, q);
sys/net/dummynet3/ip_dummynet3.c
1186
pipe->pipe_nr, (int)(q->F >> MY_M));
sys/net/dummynet3/ip_dummynet3.c
1196
if (q)
sys/net/dummynet3/ip_dummynet3.c
1197
q->drops++;
sys/net/dummynet3/ip_dummynet3.c
1216
struct dn_flow_queue *q;
sys/net/dummynet3/ip_dummynet3.c
1218
while ((q = LIST_FIRST(&fs->rq[i])) != NULL) {
sys/net/dummynet3/ip_dummynet3.c
1221
while ((pkt = TAILQ_FIRST(&q->queue)) != NULL) {
sys/net/dummynet3/ip_dummynet3.c
1222
TAILQ_REMOVE(&q->queue, pkt, dn_next);
sys/net/dummynet3/ip_dummynet3.c
1226
LIST_REMOVE(q, q_link);
sys/net/dummynet3/ip_dummynet3.c
1227
kfree(q, M_DUMMYNET);
sys/net/dummynet3/ip_dummynet3.c
1512
struct dn_flow_queue *q;
sys/net/dummynet3/ip_dummynet3.c
1514
LIST_FOREACH(q, &x->fs.rq[i], q_link)
sys/net/dummynet3/ip_dummynet3.c
1515
q->numbytes = 0;
sys/net/dummynet3/ip_dummynet3.c
1718
const struct dn_flow_queue *q;
sys/net/dummynet3/ip_dummynet3.c
1720
LIST_FOREACH(q, &fs->rq[i], q_link) {
sys/net/dummynet3/ip_dummynet3.c
1721
if (q->hash_slot != i) { /* XXX ASSERT */
sys/net/dummynet3/ip_dummynet3.c
1724
copied, q->hash_slot, i);
sys/net/dummynet3/ip_dummynet3.c
1726
if (q->fs != fs) { /* XXX ASSERT */
sys/net/dummynet3/ip_dummynet3.c
1728
i, q->fs, fs);
sys/net/dummynet3/ip_dummynet3.c
1733
ioc_fq->len = q->len;
sys/net/dummynet3/ip_dummynet3.c
1734
ioc_fq->len_bytes = q->len_bytes;
sys/net/dummynet3/ip_dummynet3.c
1735
ioc_fq->tot_pkts = q->tot_pkts;
sys/net/dummynet3/ip_dummynet3.c
1736
ioc_fq->tot_bytes = q->tot_bytes;
sys/net/dummynet3/ip_dummynet3.c
1737
ioc_fq->drops = q->drops;
sys/net/dummynet3/ip_dummynet3.c
1738
ioc_fq->hash_slot = q->hash_slot;
sys/net/dummynet3/ip_dummynet3.c
1739
ioc_fq->S = q->S;
sys/net/dummynet3/ip_dummynet3.c
1740
ioc_fq->F = q->F;
sys/net/dummynet3/ip_dummynet3.c
1741
dn_copy_flowid(&q->id, &ioc_fq->id);
sys/net/dummynet3/ip_dummynet3.c
450
#define SET_TICKS(pkt, q, p) \
sys/net/dummynet3/ip_dummynet3.c
451
(pkt->dn_m->m_pkthdr.len*8*dn_hz - (q)->numbytes + p->bandwidth - 1 ) / \
sys/net/dummynet3/ip_dummynet3.c
459
move_pkt(struct dn_pkt *pkt, struct dn_flow_queue *q,
sys/net/dummynet3/ip_dummynet3.c
462
TAILQ_REMOVE(&q->queue, pkt, dn_next);
sys/net/dummynet3/ip_dummynet3.c
463
q->len--;
sys/net/dummynet3/ip_dummynet3.c
464
q->len_bytes -= len;
sys/net/dummynet3/ip_dummynet3.c
479
ready_event(struct dn_flow_queue *q)
sys/net/dummynet3/ip_dummynet3.c
482
struct dn_pipe *p = q->fs->pipe;
sys/net/dummynet3/ip_dummynet3.c
499
q->numbytes += (curr_time - q->sched_time) * p->bandwidth;
sys/net/dummynet3/ip_dummynet3.c
500
while ((pkt = TAILQ_FIRST(&q->queue)) != NULL) {
sys/net/dummynet3/ip_dummynet3.c
504
if (len_scaled > q->numbytes)
sys/net/dummynet3/ip_dummynet3.c
506
q->numbytes -= len_scaled;
sys/net/dummynet3/ip_dummynet3.c
507
move_pkt(pkt, q, p, len);
sys/net/dummynet3/ip_dummynet3.c
517
if ((pkt = TAILQ_FIRST(&q->queue)) != NULL) {
sys/net/dummynet3/ip_dummynet3.c
519
dn_key t = SET_TICKS(pkt, q, p); /* ticks i have to wait */
sys/net/dummynet3/ip_dummynet3.c
521
q->sched_time = curr_time;
sys/net/dummynet3/ip_dummynet3.c
527
heap_insert(&ready_heap, curr_time + t, q);
sys/net/dummynet3/ip_dummynet3.c
529
q->q_time = curr_time;
sys/net/dummynet3/ip_dummynet3.c
530
q->numbytes = 0;
sys/net/dummynet3/ip_dummynet3.c
564
struct dn_flow_queue *q = sch->p[0].object;
sys/net/dummynet3/ip_dummynet3.c
565
struct dn_pkt *pkt = TAILQ_FIRST(&q->queue);
sys/net/dummynet3/ip_dummynet3.c
566
struct dn_flow_set *fs = q->fs;
sys/net/dummynet3/ip_dummynet3.c
572
move_pkt(pkt, q, p, len);
sys/net/dummynet3/ip_dummynet3.c
575
q->S = q->F; /* Update start time */
sys/net/dummynet3/ip_dummynet3.c
577
if (q->len == 0) { /* Flow not backlogged any more */
sys/net/dummynet3/ip_dummynet3.c
579
heap_insert(&p->idle_heap, q->F, q);
sys/net/dummynet3/ip_dummynet3.c
585
len = TAILQ_FIRST(&q->queue)->dn_m->m_pkthdr.len;
sys/net/dummynet3/ip_dummynet3.c
586
q->F += (len << MY_M) / (uint64_t)fs->weight;
sys/net/dummynet3/ip_dummynet3.c
587
if (DN_KEY_LEQ(q->S, p->V))
sys/net/dummynet3/ip_dummynet3.c
588
heap_insert(neh, q->S, q);
sys/net/dummynet3/ip_dummynet3.c
590
heap_insert(sch, q->F, q);
sys/net/dummynet3/ip_dummynet3.c
607
struct dn_flow_queue *q = neh->p[0].object;
sys/net/dummynet3/ip_dummynet3.c
610
heap_insert(sch, q->F, q);
sys/net/dummynet3/ip_dummynet3.c
622
struct dn_flow_queue *q = p->idle_heap.p[i].object;
sys/net/dummynet3/ip_dummynet3.c
624
q->F = 0;
sys/net/dummynet3/ip_dummynet3.c
625
q->S = q->F + 1;
sys/net/dummynet3/ip_dummynet3.c
665
struct dn_flow_queue *q = pipe->idle_heap.p[0].object;
sys/net/dummynet3/ip_dummynet3.c
668
q->S = q->F + 1; /* Mark timestamp as invalid */
sys/net/dummynet3/ip_dummynet3.c
669
pipe->sum -= q->fs->weight;
sys/net/dummynet3/ip_dummynet3.c
734
struct dn_flow_queue *q, *qn;
sys/net/dummynet3/ip_dummynet3.c
736
LIST_FOREACH_MUTABLE(q, &fs->rq[i], q_link, qn) {
sys/net/dummynet3/ip_dummynet3.c
737
if (!TAILQ_EMPTY(&q->queue) || q->S != q->F + 1)
sys/net/dummynet3/ip_dummynet3.c
743
LIST_REMOVE(q, q_link);
sys/net/dummynet3/ip_dummynet3.c
744
kfree(q, M_DUMMYNET);
sys/net/dummynet3/ip_dummynet3.c
761
struct dn_flow_queue *q;
sys/net/dummynet3/ip_dummynet3.c
773
q = kmalloc(sizeof(*q), M_DUMMYNET, M_INTWAIT | M_NULLOK | M_ZERO);
sys/net/dummynet3/ip_dummynet3.c
774
if (q == NULL)
sys/net/dummynet3/ip_dummynet3.c
777
q->fs = fs;
sys/net/dummynet3/ip_dummynet3.c
778
q->hash_slot = i;
sys/net/dummynet3/ip_dummynet3.c
779
q->S = q->F + 1; /* hack - mark timestamp as invalid */
sys/net/dummynet3/ip_dummynet3.c
780
TAILQ_INIT(&q->queue);
sys/net/dummynet3/ip_dummynet3.c
782
LIST_INSERT_HEAD(&fs->rq[i], q, q_link);
sys/net/dummynet3/ip_dummynet3.c
785
return q;
sys/net/dummynet3/ip_dummynet3.c
796
struct dn_flow_queue *q;
sys/net/dummynet3/ip_dummynet3.c
800
q = LIST_FIRST(&fs->rq[0]);
sys/net/dummynet3/ip_dummynet3.c
826
LIST_FOREACH_MUTABLE(q, &fs->rq[i], q_link, qn) {
sys/net/dummynet3/ip_dummynet3.c
828
if (id->fid_dst_ip == q->id.fid_dst_ip &&
sys/net/dummynet3/ip_dummynet3.c
829
id->fid_src_ip == q->id.fid_src_ip &&
sys/net/dummynet3/ip_dummynet3.c
830
id->fid_dst_port == q->id.fid_dst_port &&
sys/net/dummynet3/ip_dummynet3.c
831
id->fid_src_port == q->id.fid_src_port &&
sys/net/dummynet3/ip_dummynet3.c
832
id->fid_proto == q->id.fid_proto &&
sys/net/dummynet3/ip_dummynet3.c
833
id->fid_flags == q->id.fid_flags) {
sys/net/dummynet3/ip_dummynet3.c
835
} else if (pipe_expire && TAILQ_EMPTY(&q->queue) &&
sys/net/dummynet3/ip_dummynet3.c
836
q->S == q->F + 1) {
sys/net/dummynet3/ip_dummynet3.c
840
LIST_REMOVE(q, q_link);
sys/net/dummynet3/ip_dummynet3.c
841
kfree(q, M_DUMMYNET);
sys/net/dummynet3/ip_dummynet3.c
848
if (q && LIST_FIRST(&fs->rq[i]) != q) { /* Found and not in front */
sys/net/dummynet3/ip_dummynet3.c
849
LIST_REMOVE(q, q_link);
sys/net/dummynet3/ip_dummynet3.c
850
LIST_INSERT_HEAD(&fs->rq[i], q, q_link);
sys/net/dummynet3/ip_dummynet3.c
853
if (q == NULL) { /* No match, need to allocate a new entry */
sys/net/dummynet3/ip_dummynet3.c
854
q = create_queue(fs, i);
sys/net/dummynet3/ip_dummynet3.c
855
if (q != NULL)
sys/net/dummynet3/ip_dummynet3.c
856
q->id = *id;
sys/net/dummynet3/ip_dummynet3.c
858
return q;
sys/net/dummynet3/ip_dummynet3.c
862
red_drops(struct dn_flow_set *fs, struct dn_flow_queue *q, int len)
sys/net/dummynet3/ip_dummynet3.c
882
u_int q_size = (fs->flags_fs & DN_QSIZE_IS_BYTES) ? q->len_bytes : q->len;
sys/net/dummynet3/ip_dummynet3.c
891
int diff = SCALE(q_size) - q->avg;
sys/net/dummynet3/ip_dummynet3.c
894
q->avg += (int)v;
sys/net/dummynet3/ip_dummynet3.c
903
if (q->avg) {
sys/net/dummynet3/ip_dummynet3.c
904
u_int t = (curr_time - q->q_time) / fs->lookup_step;
sys/net/dummynet3/ip_dummynet3.c
906
q->avg = (t < fs->lookup_depth) ?
sys/net/dummynet3/ip_dummynet3.c
907
SCALE_MUL(q->avg, fs->w_q_lookup[t]) : 0;
sys/net/dummynet3/ip_dummynet3.c
910
IPFW3_DEBUG("avg: %u ", SCALE_VAL(q->avg));
sys/net/dummynet3/ip_dummynet3.c
914
if (q->avg < fs->min_th) {
sys/net/dummynet3/ip_dummynet3.c
916
q->count = -1;
sys/net/dummynet3/ip_dummynet3.c
920
if (q->avg >= fs->max_th) { /* Average queue >= Max threshold */
sys/net/dummynet3/ip_dummynet3.c
928
p_b = SCALE_MUL((int64_t)fs->c_3, (int64_t)q->avg) - fs->c_4;
sys/net/dummynet3/ip_dummynet3.c
930
q->count = -1;
sys/net/dummynet3/ip_dummynet3.c
934
} else if (q->avg > fs->min_th) {
sys/net/dummynet3/ip_dummynet3.c
940
p_b = SCALE_MUL((int64_t)fs->c_1, (int64_t)q->avg) - fs->c_2;
sys/net/dummynet3/ip_dummynet3.c
945
if (++q->count == 0) {
sys/net/dummynet3/ip_dummynet3.c
946
q->random = krandom() & 0xffff;
sys/net/dummynet3/ip_dummynet3.c
952
if (SCALE_MUL(p_b, SCALE((int64_t)q->count)) > q->random) {
sys/net/dummynet3/ip_dummynet3.c
953
q->count = 0;
sys/net/dummynet3/ip_dummynet3.c
956
q->random = krandom() & 0xffff;
sys/net/if.c
1083
for (q = 0; q < ifp->if_snd.altq_subq_cnt; ++q) {
sys/net/if.c
1084
struct ifaltq_subque *ifsq = &ifp->if_snd.altq_subq[q];
sys/net/if.c
3120
int q;
sys/net/if.c
3128
for (q = 0; q < ifq->altq_subq_cnt; ++q) {
sys/net/if.c
3129
struct ifaltq_subque *ifsq = &ifq->altq_subq[q];
sys/net/if.c
487
int i, q, qlen;
sys/net/if.c
626
for (q = 0; q < ifq->altq_subq_cnt; ++q) {
sys/net/if.c
627
struct ifaltq_subque *ifsq = &ifq->altq_subq[q];
sys/net/if.c
630
ifsq->ifsq_index = q;
sys/net/if.c
700
struct ifnet **q;
sys/net/if.c
706
n = if_indexlim * sizeof(*q);
sys/net/if.c
707
q = kmalloc(n, M_IFADDR, M_WAITOK | M_ZERO);
sys/net/if.c
709
bcopy(ifindex2ifnet, q, n/2);
sys/net/if.c
713
ifindex2ifnet = q;
sys/net/if.c
893
int q;
sys/net/if.c
895
for (q = 0; q < ifq->altq_subq_cnt; ++q) {
sys/net/if.c
896
struct ifaltq_subque *ifsq = &ifq->altq_subq[q];
sys/net/if.c
955
int q;
sys/net/netmap/netmap.c
1571
struct mbq q;
sys/net/netmap/netmap.c
1582
mbq_init(&q);
sys/net/netmap/netmap.c
1765
netmap_grab_packets(kring, &q, netmap_fwd);
sys/net/netmap/netmap.c
1803
if (q.head)
sys/net/netmap/netmap.c
1804
netmap_send_up(na->ifp, &q);
sys/net/netmap/netmap.c
2149
netmap_common_irq(struct ifnet *ifp, u_int q, u_int *work_done)
sys/net/netmap/netmap.c
2154
q &= NETMAP_RING_MASK;
sys/net/netmap/netmap.c
2157
RD(5, "received %s queue %d", work_done ? "RX" : "TX" , q);
sys/net/netmap/netmap.c
2161
if (q >= na->num_rx_rings)
sys/net/netmap/netmap.c
2163
kring = na->rx_rings + q;
sys/net/netmap/netmap.c
2165
na->nm_notify(na, q, NR_RX,
sys/net/netmap/netmap.c
2169
if (q >= na->num_tx_rings)
sys/net/netmap/netmap.c
2171
kring = na->tx_rings + q;
sys/net/netmap/netmap.c
2172
na->nm_notify(na, q, NR_TX,
sys/net/netmap/netmap.c
2198
netmap_rx_irq(struct ifnet *ifp, u_int q, u_int *work_done)
sys/net/netmap/netmap.c
2209
return netmap_common_irq(ifp, q, work_done);
sys/net/netmap/netmap.c
705
netmap_send_up(struct ifnet *dst, struct mbq *q)
sys/net/netmap/netmap.c
710
while ((m = mbq_dequeue(q)) != NULL) {
sys/net/netmap/netmap.c
715
mbq_destroy(q);
sys/net/netmap/netmap.c
724
netmap_grab_packets(struct netmap_kring *kring, struct mbq *q, int force)
sys/net/netmap/netmap.c
758
mbq_enqueue(q, m);
sys/net/netmap/netmap.c
842
struct mbq q;
sys/net/netmap/netmap.c
863
mbq_init(&q);
sys/net/netmap/netmap.c
864
netmap_grab_packets(kring, &q, 1);
sys/net/netmap/netmap.c
869
netmap_send_up(na->ifp, &q);
sys/net/netmap/netmap_generic.c
169
netmap_generic_irq(struct ifnet *ifp, u_int q, u_int *work_done)
sys/net/netmap/netmap_generic.c
174
return netmap_common_irq(ifp, q, work_done);
sys/net/netmap/netmap_mbq.c
104
struct mbuf *mbq_dequeue(struct mbq *q)
sys/net/netmap/netmap_mbq.c
106
return __mbq_dequeue(q);
sys/net/netmap/netmap_mbq.c
110
static void __mbq_purge(struct mbq *q, int safe)
sys/net/netmap/netmap_mbq.c
115
m = safe ? mbq_safe_dequeue(q) : mbq_dequeue(q);
sys/net/netmap/netmap_mbq.c
124
void mbq_purge(struct mbq *q)
sys/net/netmap/netmap_mbq.c
126
__mbq_purge(q, 0);
sys/net/netmap/netmap_mbq.c
129
void mbq_safe_purge(struct mbq *q)
sys/net/netmap/netmap_mbq.c
131
__mbq_purge(q, 1);
sys/net/netmap/netmap_mbq.c
134
void mbq_safe_destroy(struct mbq *q)
sys/net/netmap/netmap_mbq.c
136
spin_uninit(&q->lock);
sys/net/netmap/netmap_mbq.c
140
void mbq_destroy(struct mbq *q)
sys/net/netmap/netmap_mbq.c
35
static inline void __mbq_init(struct mbq *q)
sys/net/netmap/netmap_mbq.c
37
q->head = q->tail = NULL;
sys/net/netmap/netmap_mbq.c
38
q->count = 0;
sys/net/netmap/netmap_mbq.c
41
void mbq_safe_init(struct mbq *q)
sys/net/netmap/netmap_mbq.c
43
spin_init(&q->lock, "mbq");
sys/net/netmap/netmap_mbq.c
44
__mbq_init(q);
sys/net/netmap/netmap_mbq.c
47
void mbq_init(struct mbq *q)
sys/net/netmap/netmap_mbq.c
49
__mbq_init(q);
sys/net/netmap/netmap_mbq.c
52
static inline void __mbq_enqueue(struct mbq *q, struct mbuf *m)
sys/net/netmap/netmap_mbq.c
55
if (q->tail) {
sys/net/netmap/netmap_mbq.c
56
q->tail->m_nextpkt = m;
sys/net/netmap/netmap_mbq.c
57
q->tail = m;
sys/net/netmap/netmap_mbq.c
59
q->head = q->tail = m;
sys/net/netmap/netmap_mbq.c
61
q->count++;
sys/net/netmap/netmap_mbq.c
64
void mbq_safe_enqueue(struct mbq *q, struct mbuf *m)
sys/net/netmap/netmap_mbq.c
66
spin_lock(&q->lock);
sys/net/netmap/netmap_mbq.c
67
__mbq_enqueue(q, m);
sys/net/netmap/netmap_mbq.c
68
spin_unlock(&q->lock);
sys/net/netmap/netmap_mbq.c
71
void mbq_enqueue(struct mbq *q, struct mbuf *m)
sys/net/netmap/netmap_mbq.c
73
__mbq_enqueue(q, m);
sys/net/netmap/netmap_mbq.c
76
static inline struct mbuf *__mbq_dequeue(struct mbq *q)
sys/net/netmap/netmap_mbq.c
80
if (q->head) {
sys/net/netmap/netmap_mbq.c
81
ret = q->head;
sys/net/netmap/netmap_mbq.c
82
q->head = ret->m_nextpkt;
sys/net/netmap/netmap_mbq.c
83
if (q->head == NULL) {
sys/net/netmap/netmap_mbq.c
84
q->tail = NULL;
sys/net/netmap/netmap_mbq.c
86
q->count--;
sys/net/netmap/netmap_mbq.c
93
struct mbuf *mbq_safe_dequeue(struct mbq *q)
sys/net/netmap/netmap_mbq.c
97
spin_lock(&q->lock);
sys/net/netmap/netmap_mbq.c
98
ret = __mbq_dequeue(q);
sys/net/netmap/netmap_mbq.c
99
spin_unlock(&q->lock);
sys/net/netmap/netmap_mbq.h
55
void mbq_init(struct mbq *q);
sys/net/netmap/netmap_mbq.h
56
void mbq_destroy(struct mbq *q);
sys/net/netmap/netmap_mbq.h
57
void mbq_enqueue(struct mbq *q, struct mbuf *m);
sys/net/netmap/netmap_mbq.h
58
struct mbuf *mbq_dequeue(struct mbq *q);
sys/net/netmap/netmap_mbq.h
59
void mbq_purge(struct mbq *q);
sys/net/netmap/netmap_mbq.h
63
void mbq_safe_init(struct mbq *q);
sys/net/netmap/netmap_mbq.h
64
void mbq_safe_destroy(struct mbq *q);
sys/net/netmap/netmap_mbq.h
65
void mbq_safe_enqueue(struct mbq *q, struct mbuf *m);
sys/net/netmap/netmap_mbq.h
66
struct mbuf *mbq_safe_dequeue(struct mbq *q);
sys/net/netmap/netmap_mbq.h
67
void mbq_safe_purge(struct mbq *q);
sys/net/netmap/netmap_mbq.h
69
static inline unsigned int mbq_len(struct mbq *q)
sys/net/netmap/netmap_mbq.h
71
return q->count;
sys/net/pf/pf_if.c
701
pfi_if_compare(struct pfi_kif *p, struct pfi_kif *q)
sys/net/pf/pf_if.c
703
return (strncmp(p->pfik_name, q->pfik_name, IFNAMSIZ));
sys/net/pf/pf_ruleset.c
187
char *p, *q, *r;
sys/net/pf/pf_ruleset.c
201
while (parent == NULL && (q = strrchr(p, '/')) != NULL) {
sys/net/pf/pf_ruleset.c
202
*q = 0;
sys/net/pf/pf_ruleset.c
208
if (q == NULL)
sys/net/pf/pf_ruleset.c
209
q = p;
sys/net/pf/pf_ruleset.c
211
q++;
sys/net/pf/pf_ruleset.c
213
if (!*q) {
sys/net/pf/pf_ruleset.c
217
while ((r = strchr(q, '/')) != NULL || *q) {
sys/net/pf/pf_ruleset.c
220
if (!*q || strlen(q) >= PF_ANCHOR_NAME_SIZE ||
sys/net/pf/pf_ruleset.c
233
strlcpy(anchor->name, q, sizeof(anchor->name));
sys/net/pf/pf_ruleset.c
268
q = r + 1;
sys/net/pf/pf_ruleset.c
270
*q = 0;
sys/net/pf/pf_table.c
1156
struct pfr_ktable *p, *q, *r, key;
sys/net/pf/pf_table.c
1175
SLIST_FOREACH(q, &addq, pfrkt_workq) {
sys/net/pf/pf_table.c
1176
if (!pfr_ktable_compare(p, q))
sys/net/pf/pf_table.c
1191
SLIST_FOREACH(q, &addq, pfrkt_workq) {
sys/net/pf/pf_table.c
1192
if (!pfr_ktable_compare(&key, q)) {
sys/net/pf/pf_table.c
1193
p->pfrkt_root = q;
sys/net/pf/pf_table.c
1204
SLIST_FOREACH(q, &changeq, pfrkt_workq)
sys/net/pf/pf_table.c
1205
if (!pfr_ktable_compare(&key, q))
sys/net/pf/pf_table.c
1236
struct pfr_ktable *p, *q, key;
sys/net/pf/pf_table.c
1249
SLIST_FOREACH(q, &workq, pfrkt_workq)
sys/net/pf/pf_table.c
1250
if (!pfr_ktable_compare(p, q))
sys/net/pf/pf_table.c
1395
struct pfr_ktable *p, *q, key;
sys/net/pf/pf_table.c
1416
SLIST_FOREACH(q, &workq, pfrkt_workq)
sys/net/pf/pf_table.c
1417
if (!pfr_ktable_compare(p, q))
sys/net/pf/pf_table.c
1612
struct pfr_ktable *p, *q;
sys/net/pf/pf_table.c
1638
for (p = SLIST_FIRST(&workq); p != NULL; p = q) {
sys/net/pf/pf_table.c
1639
q = SLIST_NEXT(p, pfrkt_workq);
sys/net/pf/pf_table.c
1667
struct pfr_kentry *p, *q, *next;
sys/net/pf/pf_table.c
1680
q = pfr_lookup_addr(kt, &ad, 1);
sys/net/pf/pf_table.c
1681
if (q != NULL) {
sys/net/pf/pf_table.c
1682
if (q->pfrke_not != p->pfrke_not)
sys/net/pf/pf_table.c
1683
SLIST_INSERT_HEAD(&changeq, q,
sys/net/pf/pf_table.c
1685
q->pfrke_mark = 1;
sys/net/pf/pf_table.c
1811
struct pfr_ktable *p, *q;
sys/net/pf/pf_table.c
1813
for (p = SLIST_FIRST(workq); p; p = q) {
sys/net/pf/pf_table.c
1814
q = SLIST_NEXT(p, pfrkt_workq);
sys/net/pf/pf_table.c
1914
struct pfr_ktable *p, *q;
sys/net/pf/pf_table.c
1916
for (p = SLIST_FIRST(workq); p; p = q) {
sys/net/pf/pf_table.c
1917
q = SLIST_NEXT(p, pfrkt_workq);
sys/net/pf/pf_table.c
1947
pfr_ktable_compare(struct pfr_ktable *p, struct pfr_ktable *q)
sys/net/pf/pf_table.c
1951
if ((d = strncmp(p->pfrkt_name, q->pfrkt_name, PF_TABLE_NAME_SIZE)))
sys/net/pf/pf_table.c
1953
return (strcmp(p->pfrkt_anchor, q->pfrkt_anchor));
sys/net/pf/pf_table.c
238
struct pfr_kentry *p, *q;
sys/net/pf/pf_table.c
262
q = pfr_lookup_addr(tmpkt, &ad, 1);
sys/net/pf/pf_table.c
264
if (q != NULL)
sys/net/pf/pf_table.c
273
if (p == NULL && q == NULL) {
sys/net/pf/pf_table.c
409
struct pfr_kentry *p, *q;
sys/net/pf/pf_table.c
450
q = pfr_lookup_addr(tmpkt, &ad, 1);
sys/net/pf/pf_table.c
451
if (q != NULL) {
sys/net/pf/pf_table.c
821
struct pfr_kentry *p, *q;
sys/net/pf/pf_table.c
823
for (p = SLIST_FIRST(workq); p != NULL; p = q) {
sys/net/pf/pf_table.c
824
q = SLIST_NEXT(p, pfrke_workq);
sys/net/sppp/if_spppsubr.c
976
struct sppp **q, *p, *sp = (struct sppp*) ifp;
sys/net/sppp/if_spppsubr.c
980
for (q = &spppq; (p = *q); q = &p->pp_next)
sys/net/sppp/if_spppsubr.c
982
*q = p->pp_next;
sys/net/zlib.c
3601
#define UPDOUT {s->write=q;}
sys/net/zlib.c
3611
#define WAVAIL (uInt)(q<s->read?s->read-q-1:s->end-q)
sys/net/zlib.c
3612
#define LOADOUT {q=s->write;m=(uInt)WAVAIL;}
sys/net/zlib.c
3613
#define WWRAP {if(q==s->end&&s->read!=s->window){q=s->window;m=(uInt)WAVAIL;}}
sys/net/zlib.c
3616
#define OUTBYTE(a) {*q++=(Byte)(a);m--;}
sys/net/zlib.c
3747
Bytef *q; /* output window write pointer */
sys/net/zlib.c
3825
zmemcpy(q, p, t);
sys/net/zlib.c
3827
q += t; m -= t;
sys/net/zlib.c
3831
z->total_out + (q >= s->read ? q - s->read :
sys/net/zlib.c
3832
(s->end - s->read) + (q - s->window))));
sys/net/zlib.c
3980
z->total_out + (q >= s->read ? q - s->read :
sys/net/zlib.c
3981
(s->end - s->read) + (q - s->window))));
sys/net/zlib.c
4047
Bytef *q; /* output window write pointer */
sys/net/zlib.c
4066
s->check = (*s->checkfn)(s->check, q, t);
sys/net/zlib.c
4067
zmemcpy(q, p, t);
sys/net/zlib.c
4068
q += t;
sys/net/zlib.c
4072
s->read = q; /* drag read pointer forward */
sys/net/zlib.c
4074
if (q == s->end) {
sys/net/zlib.c
4075
s->read = q = s->window;
sys/net/zlib.c
4231
inflate_huft *q; /* points to current table */
sys/net/zlib.c
4309
q = (inflate_huft *)Z_NULL; /* ditto */
sys/net/zlib.c
4343
if ((q = (inflate_huft *)ZALLOC
sys/net/zlib.c
4353
*t = q + 1; /* link to list for huft_free() */
sys/net/zlib.c
4354
*(t = &(q->next)) = Z_NULL;
sys/net/zlib.c
4355
u[h] = ++q; /* table starts after link */
sys/net/zlib.c
4363
r.next = q; /* pointer to this table */
sys/net/zlib.c
4387
q[j] = r;
sys/net/zlib.c
4511
zfalloc(voidpf q, uInt n, uInt s)
sys/net/zlib.c
4513
Assert(s == sizeof(inflate_huft) && n <= *(intf *)q,
sys/net/zlib.c
4515
*(intf *)q -= n+s-s; /* s-s to avoid warning */
sys/net/zlib.c
4516
return (voidpf)(fixed_mem + *(intf *)q);
sys/net/zlib.c
4583
inflate_huft *p, *q, *r;
sys/net/zlib.c
4587
q = t;
sys/net/zlib.c
4588
while (q != Z_NULL)
sys/net/zlib.c
4590
r = (q - 1)->next;
sys/net/zlib.c
4591
(q - 1)->next = p;
sys/net/zlib.c
4592
p = q;
sys/net/zlib.c
4593
q = r;
sys/net/zlib.c
4598
q = (--p)->next;
sys/net/zlib.c
4600
p = q;
sys/net/zlib.c
4717
Bytef *q; /* output window write pointer */
sys/net/zlib.c
4824
f = (uInt)(q - s->window) < c->sub.copy.dist ?
sys/net/zlib.c
4825
s->end - (c->sub.copy.dist - (q - s->window)) :
sys/net/zlib.c
4826
q - c->sub.copy.dist;
sys/net/zlib.c
4828
f = q - c->sub.copy.dist;
sys/net/zlib.c
4829
if ((uInt)(q - s->window) < c->sub.copy.dist)
sys/net/zlib.c
4830
f = s->end - (c->sub.copy.dist - (uInt)(q - s->window));
sys/net/zlib.c
4903
Bytef *q;
sys/net/zlib.c
4907
q = s->read;
sys/net/zlib.c
4910
n = (uInt)((q <= s->write ? s->write : s->end) - q);
sys/net/zlib.c
4920
z->adler = s->check = (*s->checkfn)(s->check, q, n);
sys/net/zlib.c
4924
zmemcpy(p, q, n);
sys/net/zlib.c
4927
q += n;
sys/net/zlib.c
4930
if (q == s->end)
sys/net/zlib.c
4933
q = s->window;
sys/net/zlib.c
4938
n = (uInt)(s->write - q);
sys/net/zlib.c
4948
z->adler = s->check = (*s->checkfn)(s->check, q, n);
sys/net/zlib.c
4952
zmemcpy(p, q, n);
sys/net/zlib.c
4955
q += n;
sys/net/zlib.c
4960
s->read = q;
sys/net/zlib.c
5012
Bytef *q; /* output window write pointer */
sys/net/zlib.c
5037
*q++ = (Byte)t->base;
sys/net/zlib.c
5067
if ((uInt)(q - s->window) >= d) /* offset before dest */
sys/net/zlib.c
5069
r = q - d;
sys/net/zlib.c
5070
*q++ = *r++; c--; /* minimum count is three, */
sys/net/zlib.c
5071
*q++ = *r++; c--; /* so unroll loop a little */
sys/net/zlib.c
5075
e = d - (uInt)(q - s->window); /* bytes from offset to end */
sys/net/zlib.c
5081
*q++ = *r++;
sys/net/zlib.c
5087
*q++ = *r++;
sys/net/zlib.c
5111
*q++ = (Byte)t->base;
sys/netgraph/netgraph/ng_base.c
1886
struct ng_queue_entry *q;
sys/netgraph/netgraph/ng_base.c
1892
if ((q = ngqfree) == NULL) {
sys/netgraph/netgraph/ng_base.c
1895
q = kmalloc(sizeof(*q), M_NETGRAPH, M_NOWAIT);
sys/netgraph/netgraph/ng_base.c
1898
ngqfree = q->next;
sys/netgraph/netgraph/ng_base.c
1902
return (q);
sys/netgraph/netgraph/ng_base.c
1908
#define RETURN_QBLK(q) \
sys/netgraph/netgraph/ng_base.c
1912
(q)->next = ngqfree; \
sys/netgraph/netgraph/ng_base.c
1913
ngqfree = (q); \
sys/netgraph/netgraph/ng_base.c
1917
kfree((q), M_NETGRAPH); \
sys/netgraph/netgraph/ng_base.c
1928
struct ng_queue_entry *q;
sys/netgraph/netgraph/ng_base.c
1934
if ((q = ng_getqblk()) == NULL) {
sys/netgraph/netgraph/ng_base.c
1940
q->flags = NGQF_DATA;
sys/netgraph/netgraph/ng_base.c
1941
q->next = NULL;
sys/netgraph/netgraph/ng_base.c
1942
q->body.data.da_hook = hook;
sys/netgraph/netgraph/ng_base.c
1943
q->body.data.da_m = m;
sys/netgraph/netgraph/ng_base.c
1944
q->body.data.da_meta = meta;
sys/netgraph/netgraph/ng_base.c
1950
ngqlast->next = q;
sys/netgraph/netgraph/ng_base.c
1952
ngqbase = q;
sys/netgraph/netgraph/ng_base.c
1954
ngqlast = q;
sys/netgraph/netgraph/ng_base.c
1970
struct ng_queue_entry *q;
sys/netgraph/netgraph/ng_base.c
1981
if ((q = ng_getqblk()) == NULL) {
sys/netgraph/netgraph/ng_base.c
1989
q->flags = NGQF_MESG;
sys/netgraph/netgraph/ng_base.c
1990
q->next = NULL;
sys/netgraph/netgraph/ng_base.c
1991
q->body.msg.msg_node = dest;
sys/netgraph/netgraph/ng_base.c
1992
q->body.msg.msg_msg = msg;
sys/netgraph/netgraph/ng_base.c
1993
q->body.msg.msg_retaddr = retaddr;
sys/netgraph/netgraph/ng_base.c
1999
ngqlast->next = q;
sys/netgraph/netgraph/ng_base.c
2001
ngqbase = q;
sys/netgraph/netgraph/ng_base.c
2003
ngqlast = q;
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1564
struct ng_bt_mbufq *q;
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1636
q = &sc->sc_cmdq;
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1640
q = &sc->sc_aclq;
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1644
q = &sc->sc_scoq;
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1653
q->maxlen = qlen;
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1666
q = &sc->sc_cmdq;
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1670
q = &sc->sc_aclq;
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1674
q = &sc->sc_scoq;
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1691
((ng_ubt_node_qlen_ep *) (rsp->data))->qlen = q->maxlen;
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1737
struct ng_bt_mbufq *q;
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1767
q = &sc->sc_cmdq;
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1777
q = &sc->sc_aclq;
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1782
q = &sc->sc_scoq;
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1797
if (NG_BT_MBUFQ_FULL(q)) {
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1798
NG_BT_MBUFQ_DROP(q);
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1808
NG_BT_MBUFQ_ENQUEUE(q, m);
sys/netgraph7/bluetooth/include/ng_bluetooth.h
100
if ((q)->tail == NULL) \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
101
(q)->head = (i); \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
103
(q)->tail->m_nextpkt = (i); \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
105
(q)->tail = (i); \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
106
(q)->len ++; \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
109
#define NG_BT_MBUFQ_DEQUEUE(q, i) \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
111
(i) = (q)->head; \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
113
(q)->head = (q)->head->m_nextpkt; \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
114
if ((q)->head == NULL) \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
115
(q)->tail = NULL; \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
117
(q)->len --; \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
122
#define NG_BT_MBUFQ_PREPEND(q, i) \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
124
(i)->m_nextpkt = (q)->head; \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
125
if ((q)->tail == NULL) \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
126
(q)->tail = (i); \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
128
(q)->head = (i); \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
129
(q)->len ++; \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
132
#define NG_BT_MBUFQ_DRAIN(q) \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
137
NG_BT_MBUFQ_DEQUEUE((q), m); \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
160
#define NG_BT_ITEMQ_INIT(q, _maxlen) \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
162
STAILQ_INIT(&(q)->queue); \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
163
(q)->len = 0; \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
164
(q)->maxlen = (_maxlen); \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
165
(q)->drops = 0; \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
168
#define NG_BT_ITEMQ_DESTROY(q) \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
170
NG_BT_ITEMQ_DRAIN((q)); \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
173
#define NG_BT_ITEMQ_FIRST(q) STAILQ_FIRST(&(q)->queue)
sys/netgraph7/bluetooth/include/ng_bluetooth.h
175
#define NG_BT_ITEMQ_LEN(q) NG_BT_MBUFQ_LEN((q))
sys/netgraph7/bluetooth/include/ng_bluetooth.h
177
#define NG_BT_ITEMQ_FULL(q) NG_BT_MBUFQ_FULL((q))
sys/netgraph7/bluetooth/include/ng_bluetooth.h
179
#define NG_BT_ITEMQ_DROP(q) NG_BT_MBUFQ_DROP((q))
sys/netgraph7/bluetooth/include/ng_bluetooth.h
181
#define NG_BT_ITEMQ_ENQUEUE(q, i) \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
183
STAILQ_INSERT_TAIL(&(q)->queue, (i), el_next); \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
184
(q)->len ++; \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
187
#define NG_BT_ITEMQ_DEQUEUE(q, i) \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
189
(i) = STAILQ_FIRST(&(q)->queue); \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
191
STAILQ_REMOVE_HEAD(&(q)->queue, el_next); \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
192
(q)->len --; \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
196
#define NG_BT_ITEMQ_PREPEND(q, i) \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
198
STAILQ_INSERT_HEAD(&(q)->queue, (i), el_next); \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
199
(q)->len ++; \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
202
#define NG_BT_ITEMQ_DRAIN(q) \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
207
NG_BT_ITEMQ_DEQUEUE((q), i); \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
74
#define NG_BT_MBUFQ_INIT(q, _maxlen) \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
76
(q)->head = NULL; \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
77
(q)->tail = NULL; \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
78
(q)->len = 0; \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
79
(q)->maxlen = (_maxlen); \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
80
(q)->drops = 0; \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
83
#define NG_BT_MBUFQ_DESTROY(q) \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
85
NG_BT_MBUFQ_DRAIN((q)); \
sys/netgraph7/bluetooth/include/ng_bluetooth.h
88
#define NG_BT_MBUFQ_FIRST(q) (q)->head
sys/netgraph7/bluetooth/include/ng_bluetooth.h
90
#define NG_BT_MBUFQ_LEN(q) (q)->len
sys/netgraph7/bluetooth/include/ng_bluetooth.h
92
#define NG_BT_MBUFQ_FULL(q) ((q)->len >= (q)->maxlen)
sys/netgraph7/bluetooth/include/ng_bluetooth.h
94
#define NG_BT_MBUFQ_DROP(q) (q)->drops ++
sys/netgraph7/bluetooth/include/ng_bluetooth.h
96
#define NG_BT_MBUFQ_ENQUEUE(q, i) \
sys/netgraph7/ng_car.c
563
NG_FREE_M(hinfo->q[hinfo->q_first]);
sys/netgraph7/ng_car.c
67
struct mbuf *q[NG_CAR_QUEUE_SIZE]; /* circular packet queue */
sys/netgraph7/ng_car.c
679
m = hinfo->q[hinfo->q_first];
sys/netgraph7/ng_car.c
695
m = hinfo->q[hinfo->q_first];
sys/netgraph7/ng_car.c
743
hinfo->q[hinfo->q_last] = m;
sys/netinet/ip_encap.c
435
const u_int8_t *p, *q;
sys/netinet/ip_encap.c
449
q = (const u_int8_t *)&ep->srcmask;
sys/netinet/ip_encap.c
452
r[i] = p[i] & q[i];
sys/netinet/ip_encap.c
454
matchlen += (q[i] ? 8 : 0);
sys/netinet/ip_encap.c
458
q = (const u_int8_t *)&ep->dstmask;
sys/netinet/ip_encap.c
461
r[i] = p[i] & q[i];
sys/netinet/ip_encap.c
463
matchlen += (q[i] ? 8 : 0);
sys/netinet/ip_input.c
1026
struct ipq *q = TAILQ_LAST(head, ipqhead);
sys/netinet/ip_input.c
1027
if (q == NULL) {
sys/netinet/ip_input.c
1043
ipstat.ips_fragtimeout += q->ipq_nfrags;
sys/netinet/ip_input.c
1044
ip_freef(fragq, head, q);
sys/netinet/ip_input.c
1118
for (p = NULL, q = fp->ipq_frags; q; p = q, q = q->m_nextpkt) {
sys/netinet/ip_input.c
1119
if ((ntohs(GETIP(q)->ip_off) & IP_OFFMASK) >
sys/netinet/ip_input.c
1188
while (q) {
sys/netinet/ip_input.c
1193
fp_off = (ntohs(GETIP(q)->ip_off) & IP_OFFMASK) << 3;
sys/netinet/ip_input.c
1194
fp_hlen = (IP_VHL_HL(GETIP(q)->ip_vhl) << 2);
sys/netinet/ip_input.c
1195
fp_len = ntohs(GETIP(q)->ip_len) - fp_hlen;
sys/netinet/ip_input.c
1205
GETIP(q)->ip_len = htons(fp_len - i + fp_hlen);
sys/netinet/ip_input.c
1206
GETIP(q)->ip_off = htons((fp_off + i) >> 3);
sys/netinet/ip_input.c
1207
m_adj(q, i);
sys/netinet/ip_input.c
1208
q->m_pkthdr.csum_flags = 0;
sys/netinet/ip_input.c
1211
nq = q->m_nextpkt;
sys/netinet/ip_input.c
1215
q->m_nextpkt = NULL;
sys/netinet/ip_input.c
1216
m_freem(q);
sys/netinet/ip_input.c
1218
q = nq;
sys/netinet/ip_input.c
1233
for (p = NULL, q = fp->ipq_frags; q; p = q, q = q->m_nextpkt) {
sys/netinet/ip_input.c
1238
fp_off = (ntohs(GETIP(q)->ip_off) & IP_OFFMASK) << 3;
sys/netinet/ip_input.c
1239
fp_hlen = (IP_VHL_HL(GETIP(q)->ip_vhl) << 2);
sys/netinet/ip_input.c
1240
fp_len = ntohs(GETIP(q)->ip_len) - fp_hlen;
sys/netinet/ip_input.c
1262
q = fp->ipq_frags;
sys/netinet/ip_input.c
1263
ip = GETIP(q);
sys/netinet/ip_input.c
1275
m = q;
sys/netinet/ip_input.c
1279
nq = q->m_nextpkt;
sys/netinet/ip_input.c
1280
q->m_nextpkt = NULL;
sys/netinet/ip_input.c
1281
for (q = nq; q != NULL; q = nq) {
sys/netinet/ip_input.c
1282
nq = q->m_nextpkt;
sys/netinet/ip_input.c
1283
q->m_nextpkt = NULL;
sys/netinet/ip_input.c
1284
m->m_pkthdr.csum_flags &= q->m_pkthdr.csum_flags;
sys/netinet/ip_input.c
1285
m->m_pkthdr.csum_data += q->m_pkthdr.csum_data;
sys/netinet/ip_input.c
1286
m_cat(m, q);
sys/netinet/ip_input.c
1357
struct mbuf *q;
sys/netinet/ip_input.c
1368
q = fp->ipq_frags;
sys/netinet/ip_input.c
1369
fp->ipq_frags = q->m_nextpkt;
sys/netinet/ip_input.c
1370
q->m_nextpkt = NULL;
sys/netinet/ip_input.c
1371
m_freem(q);
sys/netinet/ip_input.c
1865
struct in_addr *p, *q;
sys/netinet/ip_input.c
1913
q = (struct in_addr *)(mtod(m, caddr_t) +
sys/netinet/ip_input.c
1923
kprintf(" %x", ntohl(q->s_addr));
sys/netinet/ip_input.c
1925
*q++ = *p--;
sys/netinet/ip_input.c
1930
*q = opt->ip_srcrt.dst;
sys/netinet/ip_input.c
1934
kprintf(" %x\n", ntohl(q->s_addr));
sys/netinet/ip_input.c
981
struct mbuf *p = NULL, *q, *nq;
sys/netinet/tcp_input.c
376
struct tseg_qent *q;
sys/netinet/tcp_input.c
423
TAILQ_FOREACH(q, &tp->t_segq, tqe_q) {
sys/netinet/tcp_input.c
424
if (SEQ_GT(q->tqe_th->th_seq, th->th_seq))
sys/netinet/tcp_input.c
426
p = q;
sys/netinet/tcp_input.c
482
while (q) {
sys/netinet/tcp_input.c
483
tcp_seq_diff_t i = (th->th_seq + *tlenp) - q->tqe_th->th_seq;
sys/netinet/tcp_input.c
484
tcp_seq qend = q->tqe_th->th_seq + q->tqe_len;
sys/netinet/tcp_input.c
485
tcp_seq qend_sack = TCP_SACK_BLKEND(qend, q->tqe_th->th_flags);
sys/netinet/tcp_input.c
495
tp->reportblk.rblk_start = q->tqe_th->th_seq;
sys/netinet/tcp_input.c
502
if (i < q->tqe_len) {
sys/netinet/tcp_input.c
503
q->tqe_th->th_seq += i;
sys/netinet/tcp_input.c
504
q->tqe_len -= i;
sys/netinet/tcp_input.c
505
m_adj(q->tqe_m, i);
sys/netinet/tcp_input.c
509
if (q->tqe_th->th_flags & TH_FIN)
sys/netinet/tcp_input.c
512
nq = TAILQ_NEXT(q, tqe_q);
sys/netinet/tcp_input.c
513
TAILQ_REMOVE(&tp->t_segq, q, tqe_q);
sys/netinet/tcp_input.c
514
m_freem(q->tqe_m);
sys/netinet/tcp_input.c
515
kfree(q, M_TSEGQ);
sys/netinet/tcp_input.c
517
q = nq;
sys/netinet/tcp_input.c
526
if (q != NULL && (th->th_seq + *tlenp == q->tqe_th->th_seq)) {
sys/netinet/tcp_input.c
529
te->tqe_len += q->tqe_len;
sys/netinet/tcp_input.c
530
if (q->tqe_th->th_flags & TH_FIN)
sys/netinet/tcp_input.c
535
m_cat(te->tqe_m, q->tqe_m);
sys/netinet/tcp_input.c
543
TAILQ_REMOVE(&tp->t_segq, q, tqe_q);
sys/netinet/tcp_input.c
544
kfree(q, M_TSEGQ);
sys/netinet/tcp_input.c
578
q = TAILQ_FIRST(&tp->t_segq);
sys/netinet/tcp_input.c
579
if (q == NULL || q->tqe_th->th_seq != tp->rcv_nxt)
sys/netinet/tcp_input.c
581
tp->rcv_nxt += q->tqe_len;
sys/netinet/tcp_input.c
588
flags = q->tqe_th->th_flags & TH_FIN;
sys/netinet/tcp_input.c
589
TAILQ_REMOVE(&tp->t_segq, q, tqe_q);
sys/netinet/tcp_input.c
594
m_freem(q->tqe_m);
sys/netinet/tcp_input.c
597
ssb_appendstream(&so->so_rcv, q->tqe_m);
sys/netinet/tcp_input.c
600
kfree(q, M_TSEGQ);
sys/netinet/tcp_sack.c
962
struct tseg_qent *q;
sys/netinet/tcp_sack.c
964
q = TAILQ_FIRST(&tp->t_segq);
sys/netinet/tcp_sack.c
965
while (q != NULL &&
sys/netinet/tcp_sack.c
967
*lp++ = htonl(q->tqe_th->th_seq);
sys/netinet/tcp_sack.c
969
q->tqe_th->th_seq + q->tqe_len,
sys/netinet/tcp_sack.c
970
q->tqe_th->th_flags));
sys/netinet/tcp_sack.c
972
q = TAILQ_NEXT(q, tqe_q);
sys/netinet/tcp_subr.c
1031
while((q = TAILQ_FIRST(&tp->t_segq)) != NULL) {
sys/netinet/tcp_subr.c
1032
TAILQ_REMOVE(&tp->t_segq, q, tqe_q);
sys/netinet/tcp_subr.c
1033
m_freem(q->tqe_m);
sys/netinet/tcp_subr.c
1034
kfree(q, M_TSEGQ);
sys/netinet/tcp_subr.c
848
struct tseg_qent *q;
sys/netinet6/icmp6.c
1415
const char *p, *q;
sys/netinet6/icmp6.c
1459
for (q = p; q < name + namelen && *q && *q != '.'; q++)
sys/netinet6/icmp6.c
1474
p = q;
sys/netinet6/in6_ifattach.c
591
u_char *q;
sys/netinet6/in6_ifattach.c
608
for (q = n; *q; q++) {
sys/netinet6/in6_ifattach.c
609
if ('A' <= *q && *q <= 'Z')
sys/netinet6/in6_ifattach.c
610
*q = *q - 'A' + 'a';
sys/netproto/802_11/wlan/ieee80211_ddb.c
85
static void _db_show_ageq(const char *tag, const struct ieee80211_ageq *q);
sys/netproto/802_11/wlan/ieee80211_ddb.c
867
_db_show_ageq(const char *tag, const struct ieee80211_ageq *q)
sys/netproto/802_11/wlan/ieee80211_ddb.c
872
tag, &q->aq_lock, q->aq_len, q->aq_maxlen, q->aq_drops,
sys/netproto/802_11/wlan/ieee80211_ddb.c
873
q->aq_head, q->aq_tail);
sys/netproto/802_11/wlan/ieee80211_ddb.c
874
for (m = q->aq_head; m != NULL; m = m->m_nextpkt)
sys/platform/pc64/x86_64/__udivti3.c
102
utwords n, d, q, r;
sys/platform/pc64/x86_64/__udivti3.c
177
q.s.low = 0;
sys/platform/pc64/x86_64/__udivti3.c
178
q.s.high = n.s.low << (n_udword_bits - sr);
sys/platform/pc64/x86_64/__udivti3.c
194
q.s.high = n.s.high >> sr;
sys/platform/pc64/x86_64/__udivti3.c
195
q.s.low = (n.s.high << (n_udword_bits - sr)) |
sys/platform/pc64/x86_64/__udivti3.c
197
return q.all;
sys/platform/pc64/x86_64/__udivti3.c
231
q.s.low = (n.s.low << (n_utword_bits - sr)) &
sys/platform/pc64/x86_64/__udivti3.c
233
q.s.high = ((n.s.low << ( n_udword_bits - sr)) &
sys/platform/pc64/x86_64/__udivti3.c
260
q.s.low = 0;
sys/platform/pc64/x86_64/__udivti3.c
261
q.s.high = n.s.low << (n_udword_bits - sr);
sys/platform/pc64/x86_64/__udivti3.c
291
r.s.low = (r.s.low << 1) | (q.s.high >> (n_udword_bits - 1));
sys/platform/pc64/x86_64/__udivti3.c
292
q.s.high = (q.s.high << 1) | (q.s.low >> (n_udword_bits - 1));
sys/platform/pc64/x86_64/__udivti3.c
293
q.s.low = (q.s.low << 1) | carry;
sys/platform/pc64/x86_64/__udivti3.c
306
q.all = (q.all << 1) | carry;
sys/platform/pc64/x86_64/__udivti3.c
309
return q.all;
sys/sys/signal2.h
46
#define CANSIGNAL(q, sig, initok) \
sys/sys/signal2.h
47
((!p_trespass(curproc->p_ucred, (q)->p_ucred) && \
sys/sys/signal2.h
48
reaper_sigtest(curproc, q, initok)) || \
sys/sys/signal2.h
49
((sig) == SIGCONT && (q)->p_session == curproc->p_session))
sys/sys/tty.h
240
int clist_btoq (char *cp, int cc, struct clist *q);
sys/sys/tty.h
242
void clist_alloc_cblocks (struct clist *q, int ccmax);
sys/sys/tty.h
243
void clist_free_cblocks (struct clist *q);
sys/sys/tty.h
244
int clist_getc (struct clist *q);
sys/sys/tty.h
245
int clist_unputc (struct clist *q);
sys/sys/tty.h
246
void ndflush (struct clist *q, int cc);
sys/sys/tty.h
247
void *clist_nextc (struct clist *q, void *cp, int *c);
sys/sys/tty.h
249
int clist_putc (int c, struct clist *q);
sys/sys/tty.h
250
int clist_qtob (struct clist *q, char *cp, int cc);
sys/vfs/hammer2/zlib/hammer2_zlib_zutil.h
146
#define ZSWAP32(q) ((((q) >> 24) & 0xff) + (((q) >> 8) & 0xff00) + \
sys/vfs/hammer2/zlib/hammer2_zlib_zutil.h
147
(((q) & 0xff00) << 8) + (((q) & 0xff) << 24))
sys/vm/vm_contig.c
258
vm_pindex_t i, q, start;
sys/vm/vm_contig.c
339
for (q = 0; q < PQ_L2_SIZE; ++q) {
sys/vm/vm_contig.c
340
vm_contig_pg_clean(PQ_INACTIVE + q,
sys/vm/vm_contig.c
356
for (q = 0; q < PQ_L2_SIZE; ++q) {
sys/vm/vm_contig.c
357
vm_contig_pg_clean(PQ_ACTIVE + q,
sys/vm/vm_pageout.c
1004
vm_page_queues_spin_lock(PQ_INACTIVE + q);
sys/vm/vm_pageout.c
1018
TAILQ_REMOVE(&vm_page_queues[PQ_INACTIVE + q].pl, &marker, pageq);
sys/vm/vm_pageout.c
1019
vm_page_queues_spin_unlock(PQ_INACTIVE + q);
sys/vm/vm_pageout.c
1404
vm_pageout_scan_active(int pass, int q,
sys/vm/vm_pageout.c
1441
vm_page_queues_spin_lock(PQ_ACTIVE + q);
sys/vm/vm_pageout.c
1442
maxscan = (vm_page_queues[PQ_ACTIVE + q].lcnt + MAXSCAN_DIVIDER - 1) /
sys/vm/vm_pageout.c
1452
KKASSERT(m->queue == PQ_ACTIVE + q);
sys/vm/vm_pageout.c
1453
TAILQ_REMOVE(&vm_page_queues[PQ_ACTIVE + q].pl,
sys/vm/vm_pageout.c
1455
TAILQ_INSERT_AFTER(&vm_page_queues[PQ_ACTIVE + q].pl, m,
sys/vm/vm_pageout.c
1476
KKASSERT(m->queue == PQ_ACTIVE + q);
sys/vm/vm_pageout.c
1477
vm_page_queues_spin_unlock(PQ_ACTIVE + q);
sys/vm/vm_pageout.c
1488
&vm_page_queues[PQ_ACTIVE + q].pl,
sys/vm/vm_pageout.c
1491
&vm_page_queues[PQ_ACTIVE + q].pl,
sys/vm/vm_pageout.c
1517
&vm_page_queues[PQ_ACTIVE + q].pl,
sys/vm/vm_pageout.c
1520
&vm_page_queues[PQ_ACTIVE + q].pl,
sys/vm/vm_pageout.c
1562
&vm_page_queues[PQ_ACTIVE + q].pl,
sys/vm/vm_pageout.c
1565
&vm_page_queues[PQ_ACTIVE + q].pl,
sys/vm/vm_pageout.c
1626
&vm_page_queues[PQ_ACTIVE + q].pl,
sys/vm/vm_pageout.c
1629
&vm_page_queues[PQ_ACTIVE + q].pl,
sys/vm/vm_pageout.c
1639
vm_page_queues_spin_lock(PQ_ACTIVE + q);
sys/vm/vm_pageout.c
1648
TAILQ_REMOVE(&vm_page_queues[PQ_ACTIVE + q].pl,
sys/vm/vm_pageout.c
1650
TAILQ_INSERT_HEAD(&vm_page_queues[PQ_ACTIVE + q].pl,
sys/vm/vm_pageout.c
1653
vm_page_queues_spin_unlock(PQ_ACTIVE + q);
sys/vm/vm_pageout.c
1906
vm_pageout_scan_hold(int q, struct vm_page *marker)
sys/vm/vm_pageout.c
1911
pcount = vm_page_queues[PQ_HOLD + q].lcnt;
sys/vm/vm_pageout.c
1915
vm_page_queues_spin_lock(PQ_HOLD + q);
sys/vm/vm_pageout.c
1919
KKASSERT(m->queue == PQ_HOLD + q);
sys/vm/vm_pageout.c
1920
TAILQ_REMOVE(&vm_page_queues[PQ_HOLD + q].pl, marker, pageq);
sys/vm/vm_pageout.c
1921
TAILQ_INSERT_AFTER(&vm_page_queues[PQ_HOLD + q].pl, m,
sys/vm/vm_pageout.c
1934
vm_page_queues_spin_unlock(PQ_HOLD + q);
sys/vm/vm_pageout.c
1936
vm_page_queues_spin_lock(PQ_HOLD + q);
sys/vm/vm_pageout.c
1943
TAILQ_REMOVE(&vm_page_queues[PQ_HOLD + q].pl,
sys/vm/vm_pageout.c
1945
TAILQ_INSERT_HEAD(&vm_page_queues[PQ_HOLD + q].pl,
sys/vm/vm_pageout.c
1949
vm_page_queues_spin_unlock(PQ_HOLD + q);
sys/vm/vm_pageout.c
1962
vm_pageout_page_stats(int q, struct vm_page *marker, long *counterp)
sys/vm/vm_pageout.c
1964
struct vpgqueues *pq = &vm_page_queues[PQ_ACTIVE + q];
sys/vm/vm_pageout.c
2003
q, vm_paging_inactive_count());
sys/vm/vm_pageout.c
2015
vm_page_queues_spin_lock(PQ_ACTIVE + q);
sys/vm/vm_pageout.c
2025
KKASSERT(m->queue == PQ_ACTIVE + q);
sys/vm/vm_pageout.c
2049
KKASSERT(m->queue == PQ_ACTIVE + q);
sys/vm/vm_pageout.c
2050
vm_page_queues_spin_unlock(PQ_ACTIVE + q);
sys/vm/vm_pageout.c
2137
vm_page_queues_spin_lock(PQ_ACTIVE + q);
sys/vm/vm_pageout.c
2153
vm_page_queues_spin_unlock(PQ_ACTIVE + q);
sys/vm/vm_pageout.c
2209
int q;
sys/vm/vm_pageout.c
2229
for (q = 0; q < PQ_L2_SIZE; ++q) {
sys/vm/vm_pageout.c
2230
struct markers *mark = &markers[q];
sys/vm/vm_pageout.c
2234
mark->hold.queue = PQ_HOLD + q;
sys/vm/vm_pageout.c
2235
mark->hold.pc = PQ_HOLD + q;
sys/vm/vm_pageout.c
2237
vm_page_queues_spin_lock(PQ_HOLD + q);
sys/vm/vm_pageout.c
2238
TAILQ_INSERT_HEAD(&vm_page_queues[PQ_HOLD + q].pl,
sys/vm/vm_pageout.c
2240
vm_page_queues_spin_unlock(PQ_HOLD + q);
sys/vm/vm_pageout.c
2244
mark->stat.queue = PQ_ACTIVE + q;
sys/vm/vm_pageout.c
2245
mark->stat.pc = PQ_ACTIVE + q;
sys/vm/vm_pageout.c
2247
vm_page_queues_spin_lock(PQ_ACTIVE + q);
sys/vm/vm_pageout.c
2248
TAILQ_INSERT_HEAD(&vm_page_queues[PQ_ACTIVE + q].pl,
sys/vm/vm_pageout.c
2250
vm_page_queues_spin_unlock(PQ_ACTIVE + q);
sys/vm/vm_pageout.c
2254
mark->pact.queue = PQ_ACTIVE + q;
sys/vm/vm_pageout.c
2255
mark->pact.pc = PQ_ACTIVE + q;
sys/vm/vm_pageout.c
2257
vm_page_queues_spin_lock(PQ_ACTIVE + q);
sys/vm/vm_pageout.c
2258
TAILQ_INSERT_HEAD(&vm_page_queues[PQ_ACTIVE + q].pl,
sys/vm/vm_pageout.c
2260
vm_page_queues_spin_unlock(PQ_ACTIVE + q);
sys/vm/vm_pageout.c
2531
for (q = 0; q < PQ_L2_SIZE; ++q) {
sys/vm/vm_pageout.c
2640
for (q = 0; q < PQ_L2_SIZE; ++q) {
sys/vm/vm_pageout.c
805
vm_pageout_scan_inactive(int pass, int q, long avail_shortage,
sys/vm/vm_pageout.c
855
marker.queue = PQ_INACTIVE + q;
sys/vm/vm_pageout.c
856
marker.pc = q;
sys/vm/vm_pageout.c
872
vm_page_queues_spin_lock(PQ_INACTIVE + q);
sys/vm/vm_pageout.c
873
TAILQ_INSERT_HEAD(&vm_page_queues[PQ_INACTIVE + q].pl, &marker, pageq);
sys/vm/vm_pageout.c
874
maxscan = (vm_page_queues[PQ_INACTIVE + q].lcnt + MAXSCAN_DIVIDER - 1) /
sys/vm/vm_pageout.c
885
KKASSERT(m->queue == PQ_INACTIVE + q);
sys/vm/vm_pageout.c
886
TAILQ_REMOVE(&vm_page_queues[PQ_INACTIVE + q].pl,
sys/vm/vm_pageout.c
888
TAILQ_INSERT_AFTER(&vm_page_queues[PQ_INACTIVE + q].pl, m,
sys/vm/vm_pageout.c
910
KKASSERT(m->queue == PQ_INACTIVE + q);
sys/vm/vm_pageout.c
911
vm_page_queues_spin_unlock(PQ_INACTIVE + q);
sys/vm/vm_pageout.c
954
vm_page_queues_spin_lock(PQ_INACTIVE + q);
sys/vm/vm_swap.c
449
int q;
sys/vm/vm_swap.c
463
for (q = 0; q < PQ_L2_SIZE; ++q) {
sys/vm/vm_swap.c
467
marker.queue = PQ_ACTIVE + q;
sys/vm/vm_swap.c
468
marker.pc = q;
sys/vm/vm_swap.c
497
marker.queue = PQ_INACTIVE + q;
sys/vm/vm_swap.c
498
marker.pc = q;
sys/vm/vm_swapcache.c
184
int q;
sys/vm/vm_swapcache.c
199
for (q = 0; q < PQ_L2_SIZE; ++q) {
sys/vm/vm_swapcache.c
200
page_marker[q].flags = PG_FICTITIOUS | PG_MARKER;
sys/vm/vm_swapcache.c
201
page_marker[q].busy_count = PBUSY_LOCKED;
sys/vm/vm_swapcache.c
202
page_marker[q].queue = PQ_INACTIVE + q;
sys/vm/vm_swapcache.c
203
page_marker[q].pc = q;
sys/vm/vm_swapcache.c
204
page_marker[q].wire_count = 1;
sys/vm/vm_swapcache.c
205
vm_page_queues_spin_lock(PQ_INACTIVE + q);
sys/vm/vm_swapcache.c
207
&vm_page_queues[PQ_INACTIVE + q].pl,
sys/vm/vm_swapcache.c
208
&page_marker[q], pageq);
sys/vm/vm_swapcache.c
209
vm_page_queues_spin_unlock(PQ_INACTIVE + q);
sys/vm/vm_swapcache.c
295
for (q = 0; q < PQ_L2_SIZE; ++q) {
sys/vm/vm_swapcache.c
298
&page_marker[q],
sys/vm/vm_swapcache.c
307
for (q = 0; q < PQ_L2_SIZE; ++q) {
sys/vm/vm_swapcache.c
310
&page_marker[q],
sys/vm/vm_swapcache.c
325
for (q = 0; q < PQ_L2_SIZE; ++q) {
sys/vm/vm_swapcache.c
326
vm_page_queues_spin_lock(PQ_INACTIVE + q);
sys/vm/vm_swapcache.c
328
&vm_page_queues[PQ_INACTIVE + q].pl,
sys/vm/vm_swapcache.c
329
&page_marker[q], pageq);
sys/vm/vm_swapcache.c
330
vm_page_queues_spin_unlock(PQ_INACTIVE + q);
sys/vm/vm_swapcache.c
360
int q;
sys/vm/vm_swapcache.c
370
for (q = PQ_INACTIVE; q < PQ_INACTIVE + PQ_L2_SIZE; ++q) {
sys/vm/vm_swapcache.c
371
adds += atomic_swap_long(&vm_page_queues[q].adds, 0);
test/debug/bufqueues.c
205
int q;
test/debug/bufqueues.c
207
for (q = 0; q < BUFFER_QUEUES; q++) {
test/debug/bufqueues.c
208
if (bqp->bufqueues[q].tqh_first == NULL)
test/debug/bufqueues.c
210
kkread(kd, (u_long)bqp->bufqueues[q].tqh_first, &b, sizeof(b), 1);
test/debug/bufqueues.c
211
tmp = bqp->bufqueues[q].tqh_first;
test/debug/bufqueues.c
213
qcounter[q]++;
test/debug/bufqueues.c
216
printf("cpu=%d queue=%8s buf=%p", cpu, q2s(q), tmp);
test/debug/bufqueues.c
225
qcounter[q]++;
test/debug/vmpagequeues.c
101
q = PQ_ACTIVE;
test/debug/vmpagequeues.c
104
q = PQ_CACHE;
test/debug/vmpagequeues.c
107
q = PQ_FREE;
test/debug/vmpagequeues.c
141
struct vpgqueues *vpq = &queues[q+i];
test/debug/vmpagequeues.c
92
int q = PQ_FREE;
test/debug/vmpagequeues.c
98
q = PQ_INACTIVE;
test/interbench/interbench.c
1476
int q, i, j, affinity, benchmark = 0;
test/interbench/interbench.c
1494
while ((q = getopt(argc, argv, "hl:L:B:N:ut:bcnrC:I:m:w:x:W:X:")) != -1) {
test/interbench/interbench.c
1495
switch (q) {
tools/regression/include/tgmath/tgmath.c
144
float (remquof)(float x, float y, int *q) { n_float++; }
tools/regression/include/tgmath/tgmath.c
145
double (remquo)(double x, double y, int *q) { n_double++; }
tools/regression/include/tgmath/tgmath.c
146
long double (remquol)(long double x, long double y, int *q) { n_long_double++; }
tools/regression/lib/libc-regex/testregex.c
729
char* q;
tools/regression/lib/libc-regex/testregex.c
776
q = c == 'u' ? (s + 5) : (char*)0;
tools/regression/lib/libc-regex/testregex.c
778
while (!e || !q || s < q)
tools/regression/lib/libc-regex/testregex.c
817
q = s + 2;
tools/regression/lib/libc-regex/testregex.c
818
while (s < q)
tools/regression/lib/libc-regex/testregex.c
827
q = --s;
tools/regression/lib/libm/test-rem.c
112
int q;
tools/regression/lib/libm/test-rem.c
114
q = 0xdeadbeef;
tools/regression/lib/libm/test-rem.c
117
assert(isnan(remquo(x, y, &q)));
tools/regression/lib/libm/test-rem.c
119
assert(q == 0xdeadbeef);
tools/regression/lib/libm/test-rem.c
123
assert(isnan(remquof(x, y, &q)));
tools/regression/lib/libm/test-rem.c
125
assert(q == 0xdeadbeef);
tools/regression/lib/libm/test-rem.c
129
assert(isnan(remquol(x, y, &q)));
tools/regression/lib/libm/test-rem.c
131
assert(q == 0xdeadbeef);
tools/regression/lib/libm/test-rem.c
145
int q;
tools/regression/lib/libm/test-rem.c
148
q = random();
tools/regression/lib/libm/test-rem.c
152
rem = remquol(x, y, &q);
tools/regression/lib/libm/test-rem.c
155
assert((q ^ expected_quo) >= 0); /* sign(q) == sign(expected_quo) */
tools/regression/lib/libm/test-rem.c
156
assert((q & 0x7) == (expected_quo & 0x7));
tools/regression/lib/libm/test-rem.c
157
if (q != 0) {
tools/regression/lib/libm/test-rem.c
158
assert((q > 0) ^ !(expected_quo > 0));
tools/regression/lib/libm/test-rem.c
159
q = abs(q);
tools/regression/lib/libm/test-rem.c
160
assert(q == (abs(expected_quo) & mask(q)));
tools/regression/lib/libm/test-rem.c
167
int q;
tools/regression/lib/libm/test-rem.c
170
q = random();
tools/regression/lib/libm/test-rem.c
174
rem = remquo(x, y, &q);
tools/regression/lib/libm/test-rem.c
177
assert((q ^ expected_quo) >= 0); /* sign(q) == sign(expected_quo) */
tools/regression/lib/libm/test-rem.c
178
assert((q & 0x7) == (expected_quo & 0x7));
tools/regression/lib/libm/test-rem.c
179
if (q != 0) {
tools/regression/lib/libm/test-rem.c
180
assert((q > 0) ^ !(expected_quo > 0));
tools/regression/lib/libm/test-rem.c
181
q = abs(q);
tools/regression/lib/libm/test-rem.c
182
assert(q == (abs(expected_quo) & mask(q)));
tools/regression/lib/libm/test-rem.c
189
int q;
tools/regression/lib/libm/test-rem.c
192
q = random();
tools/regression/lib/libm/test-rem.c
196
rem = remquof(x, y, &q);
tools/regression/lib/libm/test-rem.c
199
assert((q ^ expected_quo) >= 0); /* sign(q) == sign(expected_quo) */
tools/regression/lib/libm/test-rem.c
200
assert((q & 0x7) == (expected_quo & 0x7));
tools/regression/lib/libm/test-rem.c
201
if (q != 0) {
tools/regression/lib/libm/test-rem.c
202
assert((q > 0) ^ !(expected_quo > 0));
tools/regression/lib/libm/test-rem.c
203
q = abs(q);
tools/regression/lib/libm/test-rem.c
204
assert((q & mask(q)) == (abs(expected_quo) & mask(q)));
tools/regression/p1003_1b/sched.c
168
q(__LINE__, sched_setscheduler(0, orig_scheduler, &orig_param),
tools/regression/p1003_1b/sched.c
173
q(__LINE__, sched_setscheduler(0, SCHED_FIFO, &rt_param),
tools/regression/p1003_1b/sched.c
178
q(__LINE__, sched_getparam(0, &shouldbe), "sched_getparam");
tools/regression/p1003_1b/sched.c
185
q(__LINE__, sched_setparam(0, &rt_param),
tools/regression/p1003_1b/sched.c
190
q(__LINE__, sched_setparam(0, &rt_param),
tools/regression/p1003_1b/sched.c
193
q(__LINE__, sched_getparam(0, &shouldbe),
tools/regression/p1003_1b/sched.c
199
q(__LINE__, sched_setscheduler(0, SCHED_RR, &rt_param),
tools/regression/p1003_1b/sched.c
204
q(__LINE__, sched_setscheduler(0, orig_scheduler, &orig_param),
tools/regression/p1003_1b/sched.c
220
q(__LINE__, errno, "tmpnam " NAM);
tools/regression/p1003_1b/sched.c
221
q(__LINE__, (fd = open(nam, O_RDWR|O_CREAT, 0666)),
tools/regression/p1003_1b/sched.c
230
q(__LINE__, (int)(lastrun = mmap(0, sizeof(*lastrun), PROT_READ|PROT_WRITE,
tools/regression/p1003_1b/sched.c
237
q(__LINE__, sched_setscheduler(0, sched, &rt_param),
tools/regression/p1003_1b/sched.c
256
q(__LINE__, sched_setscheduler(0, sched, &rt_param),
tools/regression/p1003_1b/sched.c
261
q(__LINE__, sched_getparam(0, &rt_param), "sched_getparam");
tools/regression/p1003_1b/sched.c
270
q(__LINE__, sched_setparam(0, &rt_param), "sched_setparam");
tools/tools/net80211/w00t/expand/expand.c
116
struct queue *q = p->q;
tools/tools/net80211/w00t/expand/expand.c
122
while (q) {
tools/tools/net80211/w00t/expand/expand.c
123
if (q->live)
tools/tools/net80211/w00t/expand/expand.c
127
ret = q->buf;
tools/tools/net80211/w00t/expand/expand.c
131
last = q;
tools/tools/net80211/w00t/expand/expand.c
132
q = q->next;
tools/tools/net80211/w00t/expand/expand.c
136
if (!q) {
tools/tools/net80211/w00t/expand/expand.c
137
q = (struct queue*) malloc(sizeof(*q));
tools/tools/net80211/w00t/expand/expand.c
138
if (!q)
tools/tools/net80211/w00t/expand/expand.c
140
memset(q, 0, sizeof(*q));
tools/tools/net80211/w00t/expand/expand.c
143
if (!p->q)
tools/tools/net80211/w00t/expand/expand.c
144
p->q = q;
tools/tools/net80211/w00t/expand/expand.c
147
last->next = q;
tools/tools/net80211/w00t/expand/expand.c
151
q->live = 1;
tools/tools/net80211/w00t/expand/expand.c
152
q->buf = *buf;
tools/tools/net80211/w00t/expand/expand.c
153
q->len = len;
tools/tools/net80211/w00t/expand/expand.c
154
q->wh = wh;
tools/tools/net80211/w00t/expand/expand.c
183
struct queue *q = p->q;
tools/tools/net80211/w00t/expand/expand.c
192
assert(q);
tools/tools/net80211/w00t/expand/expand.c
214
ptr = (char*) (q->wh+1);
tools/tools/net80211/w00t/expand/expand.c
223
memcpy(key, (q->wh+1), 3);
tools/tools/net80211/w00t/expand/expand.c
232
int ptl = q->len;
tools/tools/net80211/w00t/expand/expand.c
235
pt = known_pt(q->wh, &ptl);
tools/tools/net80211/w00t/expand/expand.c
306
struct queue *q = p->q;
tools/tools/net80211/w00t/expand/expand.c
309
assert(q);
tools/tools/net80211/w00t/expand/expand.c
310
assert(q->live);
tools/tools/net80211/w00t/expand/expand.c
387
if (p->q && p->q->live) {
tools/tools/net80211/w00t/expand/expand.c
75
struct queue *q;
tools/tools/net80211/w00t/redir/redir.c
157
struct queue *q = p->q;
tools/tools/net80211/w00t/redir/redir.c
163
while (q) {
tools/tools/net80211/w00t/redir/redir.c
164
if (q->live)
tools/tools/net80211/w00t/redir/redir.c
168
ret = q->buf;
tools/tools/net80211/w00t/redir/redir.c
172
last = q;
tools/tools/net80211/w00t/redir/redir.c
173
q = q->next;
tools/tools/net80211/w00t/redir/redir.c
177
if (!q) {
tools/tools/net80211/w00t/redir/redir.c
178
q = (struct queue*) malloc(sizeof(*q));
tools/tools/net80211/w00t/redir/redir.c
179
if (!q)
tools/tools/net80211/w00t/redir/redir.c
181
memset(q, 0, sizeof(*q));
tools/tools/net80211/w00t/redir/redir.c
184
if (!p->q)
tools/tools/net80211/w00t/redir/redir.c
185
p->q = q;
tools/tools/net80211/w00t/redir/redir.c
188
last->next = q;
tools/tools/net80211/w00t/redir/redir.c
192
q->live = 1;
tools/tools/net80211/w00t/redir/redir.c
193
q->buf = *buf;
tools/tools/net80211/w00t/redir/redir.c
194
q->len = len;
tools/tools/net80211/w00t/redir/redir.c
195
q->wh = wh;
tools/tools/net80211/w00t/redir/redir.c
196
q->id = p->id++;
tools/tools/net80211/w00t/redir/redir.c
255
void send_header(struct params *p, struct queue *q)
tools/tools/net80211/w00t/redir/redir.c
297
len = q->len - sizeof(*wh) - 4 - 4 + 20;
tools/tools/net80211/w00t/redir/redir.c
299
ih->ip_id = htons(q->id);
tools/tools/net80211/w00t/redir/redir.c
323
struct queue *q = p->q;
tools/tools/net80211/w00t/redir/redir.c
325
assert(q);
tools/tools/net80211/w00t/redir/redir.c
326
assert(q->live);
tools/tools/net80211/w00t/redir/redir.c
328
send_header(p, q);
tools/tools/net80211/w00t/redir/redir.c
336
struct queue *q = p->q;
tools/tools/net80211/w00t/redir/redir.c
340
assert(q);
tools/tools/net80211/w00t/redir/redir.c
361
src = (char*) (q->wh+1);
tools/tools/net80211/w00t/redir/redir.c
362
len = q->len - sizeof(*wh);
tools/tools/net80211/w00t/redir/redir.c
479
struct queue *q = p->q;
tools/tools/net80211/w00t/redir/redir.c
480
struct queue *last = p->q;
tools/tools/net80211/w00t/redir/redir.c
500
if (!q)
tools/tools/net80211/w00t/redir/redir.c
502
if (!q->live)
tools/tools/net80211/w00t/redir/redir.c
506
if (q->id != id) {
tools/tools/net80211/w00t/redir/redir.c
511
rem = q->len - sizeof(*q->wh) - 4 - 4;
tools/tools/net80211/w00t/redir/redir.c
518
if (q->wh->i_fc[1] & IEEE80211_FC1_DIR_TODS) {
tools/tools/net80211/w00t/redir/redir.c
519
memcpy(mac, q->wh->i_addr3, 6);
tools/tools/net80211/w00t/redir/redir.c
520
memcpy(&mac[6], q->wh->i_addr2, 6);
tools/tools/net80211/w00t/redir/redir.c
522
memcpy(mac, q->wh->i_addr1, 6);
tools/tools/net80211/w00t/redir/redir.c
523
memcpy(&mac[6], q->wh->i_addr3, 6);
tools/tools/net80211/w00t/redir/redir.c
539
q->live = 0;
tools/tools/net80211/w00t/redir/redir.c
540
if (q->next) {
tools/tools/net80211/w00t/redir/redir.c
542
p->q = q->next;
tools/tools/net80211/w00t/redir/redir.c
546
last->next = q;
tools/tools/net80211/w00t/redir/redir.c
547
q->next = NULL;
tools/tools/net80211/w00t/redir/redir.c
556
if (p->q->live)
tools/tools/net80211/w00t/redir/redir.c
84
struct queue *q;
usr.bin/apply/apply.c
187
for (p = cmd, q = c; *p != '\0'; ++p) {
usr.bin/apply/apply.c
189
offset = snprintf(q, l, "%s",
usr.bin/apply/apply.c
193
q += offset;
usr.bin/apply/apply.c
196
*q++ = *p;
usr.bin/apply/apply.c
201
*q = '\0';
usr.bin/apply/apply.c
59
char *c, *cmd, *name, *p, *q, *shell, *slashp, *tmpshell;
usr.bin/banner/banner.c
85
#define TRC(q) (((q)-' ')&0177)
usr.bin/basename/basename.c
105
char *q;
usr.bin/basename/basename.c
110
if (suffixlen && (q = strchr(p, '\0') - suffixlen) > p &&
usr.bin/basename/basename.c
111
strcmp(suffix, q) == 0) {
usr.bin/basename/basename.c
114
for (r = p; r < q; r += n) {
usr.bin/basename/basename.c
122
if (q == r)
usr.bin/basename/basename.c
123
*q = '\0';
usr.bin/bc/bc.y
1096
char *q;
usr.bin/bc/bc.y
1115
q = cmdexpr;
usr.bin/bc/bc.y
1118
free(q);
usr.bin/calendar/utils.h
125
int q = x / y;
usr.bin/calendar/utils.h
128
q--;
usr.bin/calendar/utils.h
129
return q;
usr.bin/dc/inout.c
174
char *q = buf;
usr.bin/dc/inout.c
177
while (*q)
usr.bin/dc/inout.c
178
putcharwrap(f, *q++);
usr.bin/dc/mem.c
76
void *q;
usr.bin/dc/mem.c
78
q = realloc(p, sz);
usr.bin/dc/mem.c
79
if (q == NULL)
usr.bin/dc/mem.c
81
return q;
usr.bin/dc/mem.c
87
char *q;
usr.bin/dc/mem.c
89
q = strdup(p);
usr.bin/dc/mem.c
90
if (q == NULL)
usr.bin/dc/mem.c
92
return q;
usr.bin/diff/diffreg.c
641
struct cand *q;
usr.bin/diff/diffreg.c
647
q = clist + clen;
usr.bin/diff/diffreg.c
648
q->x = x;
usr.bin/diff/diffreg.c
649
q->y = y;
usr.bin/diff/diffreg.c
650
q->pred = pred;
usr.bin/diff/diffreg.c
681
struct cand *q;
usr.bin/diff/diffreg.c
687
for (q = clist + p; q->y != 0; q = clist + q->pred)
usr.bin/diff/diffreg.c
688
J[q->x + pref] = q->y + pref;
usr.bin/evtranalyze/evtranalyze.c
1029
q = evtr_query_init(evtr, &filt, 1);
usr.bin/evtranalyze/evtranalyze.c
1030
if (!q)
usr.bin/evtranalyze/evtranalyze.c
1032
while(!evtr_query_next(q, &ev)) {
usr.bin/evtranalyze/evtranalyze.c
1061
if (evtr_query_error(q)) {
usr.bin/evtranalyze/evtranalyze.c
1062
err(1, "%s", evtr_query_errmsg(q));
usr.bin/evtranalyze/evtranalyze.c
1064
evtr_query_destroy(q);
usr.bin/evtranalyze/evtranalyze.c
1372
struct evtr_query *q;
usr.bin/evtranalyze/evtranalyze.c
1407
q = evtr_query_init(evtr, &filt, 1);
usr.bin/evtranalyze/evtranalyze.c
1408
if (!q)
usr.bin/evtranalyze/evtranalyze.c
1410
while(!evtr_query_next(q, &ev)) {
usr.bin/evtranalyze/evtranalyze.c
1419
if (evtr_query_error(q)) {
usr.bin/evtranalyze/evtranalyze.c
1420
err(1, "%s", evtr_query_errmsg(q));
usr.bin/evtranalyze/evtranalyze.c
1422
evtr_query_destroy(q);
usr.bin/evtranalyze/evtranalyze.c
1434
struct evtr_query *q;
usr.bin/evtranalyze/evtranalyze.c
1450
q = evtr_query_init(evtr, &filt, 1);
usr.bin/evtranalyze/evtranalyze.c
1451
if (!q)
usr.bin/evtranalyze/evtranalyze.c
1453
while(!evtr_query_next(q, &ev)) {
usr.bin/evtranalyze/evtranalyze.c
1460
if (evtr_query_error(q)) {
usr.bin/evtranalyze/evtranalyze.c
1461
err(1, "%s", evtr_query_errmsg(q));
usr.bin/evtranalyze/evtranalyze.c
1463
evtr_query_destroy(q);
usr.bin/evtranalyze/evtranalyze.c
499
struct evtr_query *q;
usr.bin/evtranalyze/evtranalyze.c
516
q = evtr_query_init(evtr, filts, nfilts);
usr.bin/evtranalyze/evtranalyze.c
517
if (!q)
usr.bin/evtranalyze/evtranalyze.c
519
while(!evtr_query_next(q, &ev)) {
usr.bin/evtranalyze/evtranalyze.c
525
if (evtr_query_error(q)) {
usr.bin/evtranalyze/evtranalyze.c
526
err(1, "%s", evtr_query_errmsg(q));
usr.bin/evtranalyze/evtranalyze.c
528
evtr_query_destroy(q);
usr.bin/evtranalyze/evtranalyze.c
994
struct evtr_query *q;
usr.bin/fetch/fetch.c
1195
asprintf(&q, "%s/%s", o_filename, p);
usr.bin/fetch/fetch.c
1196
e = fetch(*argv, q);
usr.bin/fetch/fetch.c
1197
free(q);
usr.bin/fetch/fetch.c
926
char *end, *q;
usr.bin/find/getdate.y
671
char *q;
usr.bin/find/getdate.y
756
for (i = 0, p = q = buff; *q; q++)
usr.bin/find/getdate.y
757
if (*q != '.')
usr.bin/find/getdate.y
758
*p++ = *q;
usr.bin/gencat/gencat.c
592
struct _setT *p, *q;
usr.bin/gencat/gencat.c
604
q = NULL;
usr.bin/gencat/gencat.c
605
for (; p != NULL && p->setId < setId; q = p, p = p->entries.le_next);
usr.bin/gencat/gencat.c
616
if (q == NULL) {
usr.bin/gencat/gencat.c
619
LIST_INSERT_AFTER(q, p, entries);
usr.bin/gencat/gencat.c
629
struct _msgT *p, *q;
usr.bin/gencat/gencat.c
644
q = NULL;
usr.bin/gencat/gencat.c
645
for (; p != NULL && p->msgId < msgId; q = p, p = p->entries.le_next);
usr.bin/gencat/gencat.c
653
if (q == NULL) {
usr.bin/gencat/gencat.c
656
LIST_INSERT_AFTER(q, p, entries);
usr.bin/jot/jot.c
328
const char *q;
usr.bin/jot/jot.c
335
for (q = ++p; *p; p++)
usr.bin/jot/jot.c
338
return (p - q);
usr.bin/limits/limits.c
633
const char * q;
usr.bin/limits/limits.c
637
for (i = 0; (q = shellparm[i].name) != NULL; i++) {
usr.bin/limits/limits.c
638
while (*q) {
usr.bin/limits/limits.c
639
int j = strcspn(q, "|");
usr.bin/limits/limits.c
643
if (strncmp(p, q, j) == 0)
usr.bin/limits/limits.c
645
if (*(q += j))
usr.bin/limits/limits.c
646
++q;
usr.bin/locate/locate/fastfind.c
132
u_char *p, *s, *patend, *q, *foundchar;
usr.bin/locate/locate/fastfind.c
286
for (p = patend - 1, q = s - 1; *p != '\0';
usr.bin/locate/locate/fastfind.c
287
p--, q--)
usr.bin/locate/locate/fastfind.c
288
if (*q != *p
usr.bin/locate/locate/fastfind.c
290
&& TOLOWER(*q) != *p
usr.bin/ncal/ncal.c
191
struct djswitch *p, *q; /* to search user defined switch date */
usr.bin/ncal/ncal.c
234
q = switches + sizeof(switches) / sizeof(struct djswitch);
usr.bin/ncal/ncal.c
235
for (p = switches; p != q; p++)
usr.bin/ncal/ncal.c
238
if (p == q) {
usr.bin/ncal/ncal.c
330
q = switches +
usr.bin/ncal/ncal.c
333
p != q && strcmp(p->cc, optarg) != 0; p++)
usr.bin/ncal/ncal.c
335
if (p == q)
usr.bin/pkill/pkill.c
130
char buf[_POSIX2_LINE_MAX], *mstr, **pargv, *p, *q, *pidfile, *tdev;
usr.bin/pkill/pkill.c
154
i = (int)strtol(p, &q, 10);
usr.bin/pkill/pkill.c
155
if (*q == '\0') {
usr.bin/sdiff/sdiff.c
716
char *line, *p, *q;
usr.bin/sdiff/sdiff.c
736
q = p;
usr.bin/sdiff/sdiff.c
742
file1end = strtonum(q, 0, INT_MAX, &errstr);
usr.bin/sdiff/sdiff.c
755
q = p;
usr.bin/sdiff/sdiff.c
761
file2start = strtonum(q, 0, INT_MAX, &errstr);
usr.bin/sed/compile.c
675
char wfile[_POSIX2_LINE_MAX + 1], *q, *eq;
usr.bin/sed/compile.c
727
q = wfile;
usr.bin/sed/compile.c
732
if (q >= eq)
usr.bin/sed/compile.c
734
*q++ = *p++;
usr.bin/sed/compile.c
736
*q = '\0';
usr.bin/sed/compile.c
737
if (q == wfile)
usr.bin/sockstat/sockstat.c
111
const char *p, *q;
usr.bin/sockstat/sockstat.c
121
for (q = p; *q != '\0' && isdigit(*q); ++q)
usr.bin/sockstat/sockstat.c
123
for (port = 0; p < q; ++p)
usr.bin/sockstat/sockstat.c
139
for (q = p; *q != '\0' && isdigit(*q); ++q)
usr.bin/sockstat/sockstat.c
141
for (end = 0; p < q; ++p)
usr.bin/systat/altqs.c
108
static void print_altq(if_stat_t *p, queue_stats_t *q);
usr.bin/systat/altqs.c
164
queue_stats_t *q;
usr.bin/systat/altqs.c
169
while ((q = SLIST_FIRST(&node->queues)) != NULL) {
usr.bin/systat/altqs.c
171
free(q);
usr.bin/systat/altqs.c
208
queue_stats_t *q;
usr.bin/systat/altqs.c
229
SLIST_FOREACH(q, &p->queues, link) {
usr.bin/systat/altqs.c
230
print_altq(p, q);
usr.bin/systat/altqs.c
408
queue_stats_t *q;
usr.bin/systat/altqs.c
432
SLIST_FOREACH(q, &p->queues, link) {
usr.bin/systat/altqs.c
433
if (strcmp(pa.altq.qname, q->pa.altq.qname) == 0)
usr.bin/systat/altqs.c
436
if (q == NULL) {
usr.bin/systat/altqs.c
437
q = calloc(1, sizeof(*q));
usr.bin/systat/altqs.c
438
q->pa = pa;
usr.bin/systat/altqs.c
439
SLIST_INSERT_HEAD(&p->queues, q, link);
usr.bin/systat/altqs.c
441
q->pa.ticket = pa.ticket;
usr.bin/systat/altqs.c
443
q->ostats = q->nstats;
usr.bin/systat/altqs.c
444
q->pq.nr = i;
usr.bin/systat/altqs.c
445
q->pq.ticket = q->pa.ticket;
usr.bin/systat/altqs.c
446
q->pq.buf = &q->nstats;
usr.bin/systat/altqs.c
447
q->pq.nbytes = sizeof(q->nstats);
usr.bin/systat/altqs.c
448
if (ioctl(pf_fd, DIOCGETQSTATS, &q->pq) < 0) {
usr.bin/systat/altqs.c
449
SLIST_REMOVE(&p->queues, q, queue_stats, link);
usr.bin/systat/altqs.c
450
free(q);
usr.bin/systat/altqs.c
453
if (strcmp(q->pa.altq.qname, qc->qname) == 0)
usr.bin/systat/altqs.c
458
qc->qname = strdup(q->pa.altq.qname);
usr.bin/systat/altqs.c
462
q->qc = qc;
usr.bin/systat/altqs.c
468
print_altq(if_stat_t *p, queue_stats_t *q)
usr.bin/systat/altqs.c
476
switch(q->pa.altq.scheduler) {
usr.bin/systat/altqs.c
478
xmit_pkts = q->nstats.cbq.xmit_cnt.packets;
usr.bin/systat/altqs.c
479
xmit_bytes = q->nstats.cbq.xmit_cnt.bytes;
usr.bin/systat/altqs.c
480
drop_pkts = q->nstats.cbq.drop_cnt.packets;
usr.bin/systat/altqs.c
481
drop_bytes = q->nstats.cbq.drop_cnt.bytes;
usr.bin/systat/altqs.c
482
xmit_pkts -= q->ostats.cbq.xmit_cnt.packets;
usr.bin/systat/altqs.c
483
xmit_bytes -= q->ostats.cbq.xmit_cnt.bytes;
usr.bin/systat/altqs.c
484
drop_pkts -= q->ostats.cbq.drop_cnt.packets;
usr.bin/systat/altqs.c
485
drop_bytes -= q->ostats.cbq.drop_cnt.bytes;
usr.bin/systat/altqs.c
489
xmit_pkts = q->nstats.priq.xmitcnt.packets;
usr.bin/systat/altqs.c
490
xmit_bytes = q->nstats.priq.xmitcnt.bytes;
usr.bin/systat/altqs.c
491
drop_pkts = q->nstats.priq.dropcnt.packets;
usr.bin/systat/altqs.c
492
drop_bytes = q->nstats.priq.dropcnt.bytes;
usr.bin/systat/altqs.c
493
xmit_pkts -= q->ostats.priq.xmitcnt.packets;
usr.bin/systat/altqs.c
494
xmit_bytes -= q->ostats.priq.xmitcnt.bytes;
usr.bin/systat/altqs.c
495
drop_pkts -= q->ostats.priq.dropcnt.packets;
usr.bin/systat/altqs.c
496
drop_bytes -= q->ostats.priq.dropcnt.bytes;
usr.bin/systat/altqs.c
497
qlen = q->nstats.priq.qlength;
usr.bin/systat/altqs.c
500
xmit_pkts = q->nstats.hfsc.xmit_cnt.packets;
usr.bin/systat/altqs.c
501
xmit_bytes = q->nstats.hfsc.xmit_cnt.bytes;
usr.bin/systat/altqs.c
502
drop_pkts = q->nstats.hfsc.drop_cnt.packets;
usr.bin/systat/altqs.c
503
drop_bytes = q->nstats.hfsc.drop_cnt.bytes;
usr.bin/systat/altqs.c
504
xmit_pkts -= q->ostats.hfsc.xmit_cnt.packets;
usr.bin/systat/altqs.c
505
xmit_bytes -= q->ostats.hfsc.xmit_cnt.bytes;
usr.bin/systat/altqs.c
506
drop_pkts -= q->ostats.hfsc.drop_cnt.packets;
usr.bin/systat/altqs.c
507
drop_bytes -= q->ostats.hfsc.drop_cnt.bytes;
usr.bin/systat/altqs.c
508
qlen = q->nstats.hfsc.qlength;
usr.bin/systat/altqs.c
511
xmit_pkts = q->nstats.fairq.xmit_cnt.packets;
usr.bin/systat/altqs.c
512
xmit_bytes = q->nstats.fairq.xmit_cnt.bytes;
usr.bin/systat/altqs.c
513
drop_pkts = q->nstats.fairq.drop_cnt.packets;
usr.bin/systat/altqs.c
514
drop_bytes = q->nstats.fairq.drop_cnt.bytes;
usr.bin/systat/altqs.c
515
xmit_pkts -= q->ostats.fairq.xmit_cnt.packets;
usr.bin/systat/altqs.c
516
xmit_bytes -= q->ostats.fairq.xmit_cnt.bytes;
usr.bin/systat/altqs.c
517
drop_pkts -= q->ostats.fairq.drop_cnt.packets;
usr.bin/systat/altqs.c
518
drop_bytes -= q->ostats.fairq.drop_cnt.bytes;
usr.bin/systat/altqs.c
519
qlen = q->nstats.fairq.qlength;
usr.bin/systat/altqs.c
531
TOPQSTART + q->qc->col * TOPQWIDTH - 1,
usr.bin/systat/altqs.c
535
TOPQSTART + q->qc->col * TOPQWIDTH - 1,
usr.bin/systat/altqs.c
540
TOPQSTART + q->qc->col * TOPQWIDTH - 1,
usr.bin/systat/altqs.c
544
TOPQSTART + q->qc->col * TOPQWIDTH - 1,
usr.bin/systat/altqs.c
548
TOPQSTART + q->qc->col * TOPQWIDTH - 1,
usr.bin/systat/altqs.c
552
TOPQSTART + q->qc->col * TOPQWIDTH - 1,
usr.bin/systat/altqs.c
556
TOPQSTART + q->qc->col * TOPQWIDTH - 1,
usr.bin/systat/cmds.c
143
const char *p, *q;
usr.bin/systat/cmds.c
151
for (q = name; *q == *p++; q++)
usr.bin/systat/cmds.c
152
if (*q == 0) /* exact match? */
usr.bin/systat/cmds.c
154
if (!*q) { /* the name was a prefix */
usr.bin/systat/cmds.c
155
if (q - name > longest) {
usr.bin/systat/cmds.c
156
longest = q - name;
usr.bin/systat/cmds.c
159
} else if (q - name == longest)
usr.bin/systat/netstat.c
314
struct netinfo *p, *q;
usr.bin/systat/netstat.c
328
q = netcb.ni_forw;
usr.bin/systat/netstat.c
329
for (; q != (struct netinfo *)&netcb; q = q->ni_forw)
usr.bin/systat/netstat.c
330
if (q != p && q->ni_line > p->ni_line) {
usr.bin/systat/netstat.c
331
q->ni_line--;
usr.bin/systat/netstat.c
333
q->ni_flags |= NIF_LACHG|NIF_FACHG;
usr.bin/systat/netstat.c
336
q = p->ni_forw;
usr.bin/systat/netstat.c
340
p = q;
usr.bin/tftp/main.c
637
char *q;
usr.bin/tftp/main.c
645
for (q = name; *q == *p++; q++)
usr.bin/tftp/main.c
646
if (*q == 0) /* exact match? */
usr.bin/tftp/main.c
648
if (!*q) { /* the name was a prefix */
usr.bin/tftp/main.c
649
if (q - name > longest) {
usr.bin/tftp/main.c
650
longest = q - name;
usr.bin/tftp/main.c
653
} else if (q - name == longest)
usr.bin/tip/remote.c
141
for (p = capstrings, q = caps; *p != NULL; p++, q++)
usr.bin/tip/remote.c
142
if (**q == NULL)
usr.bin/tip/remote.c
143
cgetstr(bp, *p, *q);
usr.bin/tip/remote.c
99
char **p, ***q;
usr.bin/tip/tip.c
471
char *p = buf, c, *q;
usr.bin/tip/tip.c
474
for (q = "\nn\rr\tt\ff\033E\bb"; *q; q++)
usr.bin/tip/tip.c
475
if (*q++ == c) {
usr.bin/tip/tip.c
476
*p++ = '\\'; *p++ = *q;
usr.bin/tip/value.c
297
char *q = "n\nr\rt\tb\bf\f";
usr.bin/tip/value.c
299
for (; *q; q++)
usr.bin/tip/value.c
300
if (c == *q++) {
usr.bin/tip/value.c
301
*p++ = *q;
usr.bin/top/hash.c
148
void ll_init(llist *q)
usr.bin/top/hash.c
151
q->head = NULL;
usr.bin/top/hash.c
152
q->count = 0;
usr.bin/top/hash.c
171
void ll_add(llist *q, llistitem *new)
usr.bin/top/hash.c
174
new->next = q->head;
usr.bin/top/hash.c
175
q->head = new;
usr.bin/top/hash.c
176
q->count++;
usr.bin/top/hash.c
179
void ll_extract(llist *q, llistitem *qi, llistitem *last)
usr.bin/top/hash.c
184
q->head = qi->next;
usr.bin/top/hash.c
191
q->count--;
usr.bin/top/hash.c
194
#define LL_FIRST(q) ((q)->head)
usr.bin/top/hash.c
196
ll_first(llist *q)
usr.bin/top/hash.c
199
return q->head;
usr.bin/top/hash.c
202
#define LL_NEXT(q, qi) ((qi) != NULL ? (qi)->next : NULL)
usr.bin/top/hash.c
204
ll_next(llist *q, llistitem *qi)
usr.bin/truss/syscalls.c
237
u_char *q;
usr.bin/truss/syscalls.c
279
for (q = (u_char *)&sa->sa_data; q < (u_char *)sa + sa->sa_len; q++)
usr.bin/truss/syscalls.c
280
p += sprintf(p, " %#02x,", *q);
usr.bin/unzip/unzip.c
500
unsigned char *p, *q, *end;
usr.bin/unzip/unzip.c
553
for (p = buffer; p < end; p = q + 1) {
usr.bin/unzip/unzip.c
554
for (q = p; q < end; q++) {
usr.bin/unzip/unzip.c
555
if (!warn && BYTE_IS_BINARY(*q)) {
usr.bin/unzip/unzip.c
561
if (q[0] != '\r')
usr.bin/unzip/unzip.c
563
if (&q[1] == end) {
usr.bin/unzip/unzip.c
567
if (q[1] == '\n')
usr.bin/unzip/unzip.c
570
if (write(fd, p, q - p) != q - p)
usr.bin/unzip/unzip.c
684
char *p, *q;
usr.bin/unzip/unzip.c
723
for (p = q = pathname; *p; ++p)
usr.bin/unzip/unzip.c
725
q = p + 1;
usr.bin/unzip/unzip.c
726
realpathname = pathcat(d_arg, q);
usr.bin/usbhidaction/usbhidaction.c
468
char cmdbuf[SIZE], *p, *q;
usr.bin/usbhidaction/usbhidaction.c
472
for (p = cmd->action, q = cmdbuf; *p && q < &cmdbuf[SIZE-1]; ) {
usr.bin/usbhidaction/usbhidaction.c
475
len = &cmdbuf[SIZE-1] - q;
usr.bin/usbhidaction/usbhidaction.c
479
strncpy(q, argv[n], len);
usr.bin/usbhidaction/usbhidaction.c
480
q += strlen(q);
usr.bin/usbhidaction/usbhidaction.c
484
snprintf(q, len, "%d", value);
usr.bin/usbhidaction/usbhidaction.c
485
q += strlen(q);
usr.bin/usbhidaction/usbhidaction.c
488
strncpy(q, cmd->name, len);
usr.bin/usbhidaction/usbhidaction.c
489
q += strlen(q);
usr.bin/usbhidaction/usbhidaction.c
492
strncpy(q, hid, len);
usr.bin/usbhidaction/usbhidaction.c
493
q += strlen(q);
usr.bin/usbhidaction/usbhidaction.c
495
*q++ = *p++;
usr.bin/usbhidaction/usbhidaction.c
498
*q++ = *p++;
usr.bin/usbhidaction/usbhidaction.c
501
*q = 0;
usr.bin/users/users.c
101
return(strncmp(p, q, 32));
usr.bin/users/users.c
99
scmp(const void *p, const void *q)
usr.bin/uudecode/uudecode.c
169
char *p, *q;
usr.bin/uudecode/uudecode.c
190
q = strchr(p, ' ');
usr.bin/uudecode/uudecode.c
191
if (q == NULL)
usr.bin/uudecode/uudecode.c
193
*q++ = '\0';
usr.bin/uudecode/uudecode.c
195
n = strlen(q);
usr.bin/uudecode/uudecode.c
196
while (n > 0 && (q[n-1] == '\n' || q[n-1] == '\r'))
usr.bin/uudecode/uudecode.c
197
q[--n] = '\0';
usr.bin/uudecode/uudecode.c
220
if (*q == '~')
usr.bin/uudecode/uudecode.c
221
p = strchr(q, '/');
usr.bin/uudecode/uudecode.c
224
pw = getpwnam(q + 1);
usr.bin/uudecode/uudecode.c
239
q = memcpy(p - n, pw->pw_dir, n);
usr.bin/uudecode/uudecode.c
243
p = strrchr(q, '/');
usr.bin/uudecode/uudecode.c
245
q = p + 1;
usr.bin/uudecode/uudecode.c
248
outfile = q;
usr.bin/window/compress.c
134
#define qinsertq(q, p) \
usr.bin/window/compress.c
135
((q)->qforw == (q) ? 0 : \
usr.bin/window/compress.c
136
((q)->qback->qforw = (p)->qforw, \
usr.bin/window/compress.c
137
(p)->qforw->qback = (q)->qback, \
usr.bin/window/compress.c
138
(q)->qforw->qback = (p), \
usr.bin/window/compress.c
139
(p)->qforw = (q)->qforw, \
usr.bin/window/compress.c
140
(q)->qforw = (q), \
usr.bin/window/compress.c
141
(q)->qback = (q)))
usr.bin/window/lcmd2.c
311
char *p, *q;
usr.bin/window/lcmd2.c
322
for (q = str, vp = a + 1; vp->v_type != V_ERR;
usr.bin/window/lcmd2.c
323
vp++, q[-1] = ' ')
usr.bin/window/lcmd2.c
324
for (p = vp->v_str; (*q++ = *p++);)
usr.bin/window/lcmd2.c
326
q[-1] = 0;
usr.bin/window/string.c
89
const char *q;
usr.bin/window/string.c
94
for (q = s1; (*p++ = *q++);)
usr.bin/window/string.c
96
for (q = s2, p--; (*p++ = *q++);)
usr.bin/window/ttinit.c
67
char *p, *q;
usr.bin/window/ttinit.c
91
for (q = p; *q && *q != '|' && *q != ':'; q++)
usr.bin/window/ttinit.c
93
if (q != p && (t = malloc((unsigned) (q - p + 1))) != NULL) {
usr.bin/window/ttinit.c
95
while (p < q)
usr.bin/window/ttzapple.c
397
char *q;
usr.bin/window/ttzapple.c
401
for (i = n, q = p; --i >= 0;) {
usr.bin/window/ttzapple.c
407
*q++ = 0;
usr.bin/window/ttzapple.c
431
*q++ = c;
usr.bin/window/ttzapple.c
438
*q++ = zz_lastc;
usr.bin/window/ttzapple.c
446
return q - (p - n);
usr.bin/window/wwdelchar.c
110
union ww_char *p, *q;
usr.bin/window/wwdelchar.c
114
q = p + 1;
usr.bin/window/wwdelchar.c
116
*p++ = *q++;
usr.bin/window/wwdelchar.c
50
union ww_char *p, *q;
usr.bin/window/wwdelchar.c
53
q = p + 1;
usr.bin/window/wwdelchar.c
55
*p++ = *q++;
usr.bin/window/wwinschar.c
111
union ww_char *p, *q;
usr.bin/window/wwinschar.c
120
q = p - 1;
usr.bin/window/wwinschar.c
122
*--p = *--q;
usr.bin/window/wwinschar.c
123
q->c_w = x;
usr.bin/window/wwinschar.c
51
union ww_char *p, *q;
usr.bin/window/wwinschar.c
54
q = p - 1;
usr.bin/window/wwinschar.c
56
*--p = *--q;
usr.bin/window/wwinschar.c
57
q->c_w = x;
usr.bin/window/wwscroll.c
168
char *p, *q;
usr.bin/window/wwscroll.c
171
q = p + 1;
usr.bin/window/wwscroll.c
173
*p++ = *q++;
usr.bin/window/wwscroll.c
197
char *p, *q;
usr.bin/window/wwscroll.c
200
q = p - 1;
usr.bin/window/wwscroll.c
202
*--p = *--q;
usr.bin/window/wwscroll.c
203
*q |= WWU_TOUCHED;
usr.bin/window/wwupdate.c
205
char *p, *q;
usr.bin/window/wwupdate.c
222
q = p;
usr.bin/window/wwupdate.c
232
q = p;
usr.bin/window/wwupdate.c
238
n = q - buf;
usr.bin/window/wwupdate.c
243
q[-2] = q[-1];
usr.bin/window/wwwrite.c
103
while (i < w->ww_w.r && p < q)
usr.bin/window/wwwrite.c
106
q = s;
usr.bin/window/wwwrite.c
120
s = q;
usr.bin/window/wwwrite.c
122
q = p + 10;
usr.bin/window/wwwrite.c
60
const char *q = p + n;
usr.bin/window/wwwrite.c
67
while (p < q && !ISSET(w->ww_pflags, WWP_STOPPED) &&
usr.bin/window/wwwrite.c
71
q = s;
usr.bin/window/wwwrite.c
92
s = q;
usr.bin/window/wwwrite.c
94
q = p + 10;
usr.bin/xinstall/xinstall.c
877
char *p, *q;
usr.bin/xinstall/xinstall.c
892
q = mmap(NULL, from_len, PROT_READ, MAP_SHARED,
usr.bin/xinstall/xinstall.c
894
if (q == (char *)MAP_FAILED) {
usr.bin/xinstall/xinstall.c
899
rv = memcmp(p, q, from_len);
usr.bin/xinstall/xinstall.c
901
munmap(q, from_len);
usr.sbin/boot0cfg/boot0cfg.c
372
const char *q;
usr.sbin/boot0cfg/boot0cfg.c
378
for (s1 = s; (q = strtok(s1, ",")); s1 = NULL) {
usr.sbin/boot0cfg/boot0cfg.c
379
if ((inv = !strncmp(q, "no", 2)))
usr.sbin/boot0cfg/boot0cfg.c
380
q += 2;
usr.sbin/boot0cfg/boot0cfg.c
382
if (!strcmp(q, opttbl[i].tok))
usr.sbin/boot0cfg/boot0cfg.c
385
errx(1, "%s: Unknown -o option", q);
usr.sbin/cdcontrol/cdcontrol.c
1220
char *q;
usr.sbin/cdcontrol/cdcontrol.c
1223
for (q=p; *q && *q != '\n' && *q != '\r'; q++)
usr.sbin/cdcontrol/cdcontrol.c
1225
*q = 0;
usr.sbin/config/main.c
436
char *p, *q;
usr.sbin/config/main.c
468
q = mmap(NULL, tsize, PROT_READ, MAP_SHARED, to_fd, (off_t)0);
usr.sbin/config/main.c
469
if (q == MAP_FAILED)
usr.sbin/config/main.c
472
changed = memcmp(p, q, tsize);
usr.sbin/config/main.c
474
munmap(q, tsize);
usr.sbin/cron/crontab/crontab.c
298
char n[MAX_FNAME], q[MAX_TEMPSTR];
usr.sbin/cron/crontab/crontab.c
456
q[0] = '\0';
usr.sbin/cron/crontab/crontab.c
457
fgets(q, sizeof q, stdin);
usr.sbin/cron/crontab/crontab.c
458
switch (islower(q[0]) ? q[0] : tolower(q[0])) {
usr.sbin/cron/lib/env.c
102
free(q);
usr.sbin/cron/lib/env.c
188
char *p, *q;
usr.sbin/cron/lib/env.c
192
if (!(q = strchr(p, '=')))
usr.sbin/cron/lib/env.c
194
if ((q - p) == len && !strncmp(p, name, len))
usr.sbin/cron/lib/env.c
195
return (q+1);
usr.sbin/cron/lib/env.c
77
char *q;
usr.sbin/cron/lib/env.c
95
q = envp[found];
usr.sbin/cron/lib/env.c
97
envp[found] = q;
usr.sbin/kbdmap/kbdmap.c
241
char *tmp, *p, *q;
usr.sbin/kbdmap/kbdmap.c
256
if ((q = strstr(p, ".fnt")))
usr.sbin/kbdmap/kbdmap.c
257
*q = '\0';
usr.sbin/kbdmap/kbdmap.c
301
char *vid_cmd, *tmp, *p, *q;
usr.sbin/kbdmap/kbdmap.c
311
q = get_extension(p);
usr.sbin/kbdmap/kbdmap.c
312
if (q) {
usr.sbin/kbdmap/kbdmap.c
313
*q = '\0';
usr.sbin/kbdmap/kbdmap.c
704
char *q;
usr.sbin/kbdmap/kbdmap.c
707
q = strdup(dp->d_name);
usr.sbin/kbdmap/kbdmap.c
708
*(get_extension(q)) = '\0';
usr.sbin/kbdmap/kbdmap.c
709
add_keymap(q, 0, dp->d_name);
usr.sbin/kbdmap/kbdmap.c
710
free(q);
usr.sbin/lpr/common_source/common.c
104
struct jobqueue *q, **queue;
usr.sbin/lpr/common_source/common.c
140
entrysz = sizeof(struct jobqueue) - sizeof(q->job_cfname) +
usr.sbin/lpr/common_source/common.c
142
q = (struct jobqueue *)malloc(entrysz);
usr.sbin/lpr/common_source/common.c
143
if (q == NULL)
usr.sbin/lpr/common_source/common.c
145
q->job_matched = 0;
usr.sbin/lpr/common_source/common.c
146
q->job_processed = 0;
usr.sbin/lpr/common_source/common.c
147
q->job_time = stbuf.st_mtime;
usr.sbin/lpr/common_source/common.c
148
strcpy(q->job_cfname, d->d_name);
usr.sbin/lpr/common_source/common.c
160
queue[nitems-1] = q;
usr.sbin/lpr/common_source/displayq.c
201
q = queue[i];
usr.sbin/lpr/common_source/displayq.c
202
inform(pp, q->job_cfname);
usr.sbin/lpr/common_source/displayq.c
203
free(q);
usr.sbin/lpr/common_source/displayq.c
88
struct jobqueue *q;
usr.sbin/lpr/lpc/lpc.c
224
const char *p, *q;
usr.sbin/lpr/lpc/lpc.c
232
for (q = name; *q == *p++; q++)
usr.sbin/lpr/lpc/lpc.c
233
if (*q == 0) /* exact match? */
usr.sbin/lpr/lpc/lpc.c
235
if (!*q) { /* the name was a prefix */
usr.sbin/lpr/lpc/lpc.c
236
if (q - name > longest) {
usr.sbin/lpr/lpc/lpc.c
237
longest = q - name;
usr.sbin/lpr/lpc/lpc.c
240
} else if (q - name == longest)
usr.sbin/lpr/lpd/printjob.c
1356
#define TRC(q) (((q)-' ')&0177)
usr.sbin/lpr/lpd/printjob.c
142
struct jobqueue *q, **qp;
usr.sbin/lpr/lpd/printjob.c
247
for (qp = queue; nitems--; free((char *) q)) {
usr.sbin/lpr/lpd/printjob.c
248
q = *qp++;
usr.sbin/lpr/lpd/printjob.c
249
if (stat(q->job_cfname, &stb) < 0)
usr.sbin/lpr/lpd/printjob.c
254
snprintf(line, sizeof(line), "%s\n", q->job_cfname);
usr.sbin/lpr/lpd/printjob.c
260
i = printit(pp, q->job_cfname);
usr.sbin/lpr/lpd/printjob.c
262
i = sendit(pp, q->job_cfname);
usr.sbin/lpr/lpd/printjob.c
273
for (free(q); nitems--; free(q))
usr.sbin/lpr/lpd/printjob.c
274
q = *qp++;
usr.sbin/lpr/lpd/printjob.c
308
q->job_cfname);
usr.sbin/lpr/lpd/printjob.c
311
unlink(q->job_cfname);
usr.sbin/lpr/lpd/printjob.c
312
q->job_cfname[0] = 'd';
usr.sbin/lpr/lpd/printjob.c
313
unlink(q->job_cfname);
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_zutil.h
146
#define ZSWAP32(q) ((((q) >> 24) & 0xff) + (((q) >> 8) & 0xff00) + \
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_zutil.h
147
(((q) & 0xff00) << 8) + (((q) & 0xff) << 24))
usr.sbin/mpsutil/mpsutil.c
213
mps_parse_flags(uintmax_t num, const char *q, char *outbuf, int tmpsz)
usr.sbin/mpsutil/mpsutil.c
222
while (*q) {
usr.sbin/mpsutil/mpsutil.c
223
n = *q++;
usr.sbin/mpsutil/mpsutil.c
226
for (; (n = *q) > ' '; ++q)
usr.sbin/mpsutil/mpsutil.c
229
for (; *q > ' '; ++q)
usr.sbin/mtree/spec.c
313
char *p, *q;
usr.sbin/mtree/spec.c
400
q = p + strlen(p);
usr.sbin/mtree/spec.c
401
while(q > p && q[-1] == ',')
usr.sbin/mtree/spec.c
402
q--;
usr.sbin/mtree/spec.c
403
appendfield(fp, pathlast, "tags=%.*s", (int)(q - p), p);
usr.sbin/newsyslog/newsyslog.c
1076
char line[BUFSIZ], *parse, *q;
usr.sbin/newsyslog/newsyslog.c
1105
q = parse = missing_field(sob(line), errline);
usr.sbin/newsyslog/newsyslog.c
1117
if (strcasecmp(DEBUG_MARKER, q) == 0) {
usr.sbin/newsyslog/newsyslog.c
1118
q = parse = missing_field(sob(parse + 1), errline);
usr.sbin/newsyslog/newsyslog.c
1125
parse_doption(q);
usr.sbin/newsyslog/newsyslog.c
1128
} else if (strcasecmp(INCLUDE_MARKER, q) == 0) {
usr.sbin/newsyslog/newsyslog.c
1131
q = parse = missing_field(sob(parse + 1), errline);
usr.sbin/newsyslog/newsyslog.c
1141
if (isglobstr(q)) {
usr.sbin/newsyslog/newsyslog.c
1142
res = glob(q, GLOB_NOCHECK, NULL, &pglob);
usr.sbin/newsyslog/newsyslog.c
1145
res, q);
usr.sbin/newsyslog/newsyslog.c
1150
printf("\t+ Expanding pattern %s\n", q);
usr.sbin/newsyslog/newsyslog.c
1157
add_to_queue(q, inclist);
usr.sbin/newsyslog/newsyslog.c
1162
working = init_entry(q, NULL);
usr.sbin/newsyslog/newsyslog.c
1163
if (strcasecmp(DEFAULT_MARKER, q) == 0) {
usr.sbin/newsyslog/newsyslog.c
1166
warnx("Ignoring duplicate entry for %s!", q);
usr.sbin/newsyslog/newsyslog.c
1173
q = parse = missing_field(sob(parse + 1), errline);
usr.sbin/newsyslog/newsyslog.c
1179
if ((group = strchr(q, ':')) != NULL ||
usr.sbin/newsyslog/newsyslog.c
1180
(group = strrchr(q, '.')) != NULL) {
usr.sbin/newsyslog/newsyslog.c
1182
if (*q) {
usr.sbin/newsyslog/newsyslog.c
1183
if (!(isnumberstr(q))) {
usr.sbin/newsyslog/newsyslog.c
1184
if ((pwd = getpwnam(q)) == NULL)
usr.sbin/newsyslog/newsyslog.c
1190
working->uid = atoi(q);
usr.sbin/newsyslog/newsyslog.c
1194
q = group;
usr.sbin/newsyslog/newsyslog.c
1195
if (*q) {
usr.sbin/newsyslog/newsyslog.c
1196
if (!(isnumberstr(q))) {
usr.sbin/newsyslog/newsyslog.c
1197
if ((grp = getgrnam(q)) == NULL)
usr.sbin/newsyslog/newsyslog.c
1203
working->gid = atoi(q);
usr.sbin/newsyslog/newsyslog.c
1207
q = parse = missing_field(sob(parse + 1), errline);
usr.sbin/newsyslog/newsyslog.c
1218
if (!sscanf(q, "%o", &working->permissions))
usr.sbin/newsyslog/newsyslog.c
1222
q = parse = missing_field(sob(parse + 1), errline);
usr.sbin/newsyslog/newsyslog.c
1228
if (!sscanf(q, "%d", &working->numlogs) || working->numlogs < 0)
usr.sbin/newsyslog/newsyslog.c
1232
q = parse = missing_field(sob(parse + 1), errline);
usr.sbin/newsyslog/newsyslog.c
1238
if (isdigitch(*q))
usr.sbin/newsyslog/newsyslog.c
1239
working->trsize = atoi(q);
usr.sbin/newsyslog/newsyslog.c
1240
else if (strcmp(q, "*") == 0)
usr.sbin/newsyslog/newsyslog.c
1244
q, errline);
usr.sbin/newsyslog/newsyslog.c
1250
q = parse = missing_field(sob(parse + 1), errline);
usr.sbin/newsyslog/newsyslog.c
1258
ul = strtoul(q, &ep, 10);
usr.sbin/newsyslog/newsyslog.c
1259
if (ep == q)
usr.sbin/newsyslog/newsyslog.c
1290
q = NULL;
usr.sbin/newsyslog/newsyslog.c
1292
q = parse = sob(parse + 1); /* Optional field */
usr.sbin/newsyslog/newsyslog.c
1299
for (; q && *q && !isspacech(*q); q++) {
usr.sbin/newsyslog/newsyslog.c
1300
switch (tolowerch(*q)) {
usr.sbin/newsyslog/newsyslog.c
1349
*q);
usr.sbin/newsyslog/newsyslog.c
1354
q = NULL;
usr.sbin/newsyslog/newsyslog.c
1356
q = parse = sob(parse + 1); /* Optional field */
usr.sbin/newsyslog/newsyslog.c
1364
if (q && *q) {
usr.sbin/newsyslog/newsyslog.c
1365
if (*q == '/')
usr.sbin/newsyslog/newsyslog.c
1366
working->pid_cmd_file = strdup(q);
usr.sbin/newsyslog/newsyslog.c
1367
else if (isalnum(*q))
usr.sbin/newsyslog/newsyslog.c
1376
q = NULL;
usr.sbin/newsyslog/newsyslog.c
1378
q = parse = sob(parse + 1); /* Optional field */
usr.sbin/newsyslog/newsyslog.c
1383
if (q && *q) {
usr.sbin/newsyslog/newsyslog.c
1385
working->sig = parse_signal(q);
usr.sbin/pfctl/parse.y
4639
char *p, *q;
usr.sbin/pfctl/parse.y
4643
p = q = label;
usr.sbin/pfctl/parse.y
4644
while ((q = strstr(p, srch)) != NULL) {
usr.sbin/pfctl/parse.y
4645
*q = '\0';
usr.sbin/pfctl/parse.y
4649
q += strlen(srch);
usr.sbin/pfctl/parse.y
4650
p = q;
usr.sbin/pfctl/pfctl.c
387
int prefix, ret_ga, q, r;
usr.sbin/pfctl/pfctl.c
412
q = prefix >> 3;
usr.sbin/pfctl/pfctl.c
422
if (q > 0)
usr.sbin/pfctl/pfctl.c
423
memset((void *)&mask->v6, 0xff, q);
usr.sbin/pfctl/pfctl.c
425
*((u_char *)&mask->v6 + q) =
usr.sbin/pfctl/pfctl_parser.c
1074
const char *p, *q;
usr.sbin/pfctl/pfctl_parser.c
1078
if ((q = strchr(tcpflags, *p)) == NULL)
usr.sbin/pfctl/pfctl_parser.c
1081
f |= 1 << (q - tcpflags);
usr.sbin/pfctl/pfctl_parser.c
1411
char *p, *q, *ps;
usr.sbin/pfctl/pfctl_parser.c
1414
mask = strtol(p+1, &q, 0);
usr.sbin/pfctl/pfctl_parser.c
1415
if (!q || *q || mask > 128 || q == (p+1)) {
usr.sbin/ppp/ipcp.c
1417
struct mqueue *q;
usr.sbin/ppp/ipcp.c
1421
for (q = ipcp->Queue; q < ipcp->Queue + IPCP_QUEUES(ipcp); q++)
usr.sbin/ppp/ipcp.c
1422
result += q->len;
usr.sbin/ppp/ipv6cp.c
409
struct mqueue *q;
usr.sbin/ppp/ipv6cp.c
413
for (q = ipv6cp->Queue; q < ipv6cp->Queue + IPV6CP_QUEUES(ipv6cp); q++)
usr.sbin/ppp/ipv6cp.c
414
result += q->len;
usr.sbin/ppp/mbuf.c
344
m_dequeue(struct mqueue *q)
usr.sbin/ppp/mbuf.c
348
log_Printf(LogDEBUG, "m_dequeue: queue len = %lu\n", (u_long)q->len);
usr.sbin/ppp/mbuf.c
349
bp = q->top;
usr.sbin/ppp/mbuf.c
351
q->top = q->top->m_nextpkt;
usr.sbin/ppp/mbuf.c
352
q->len--;
usr.sbin/ppp/mbuf.c
353
if (q->top == NULL) {
usr.sbin/ppp/mbuf.c
354
q->last = q->top;
usr.sbin/ppp/mbuf.c
355
if (q->len)
usr.sbin/ppp/mbuf.c
357
(u_long)q->len);
usr.sbin/ppp/mp.c
419
struct mbuf *q, *last;
usr.sbin/ppp/mp.c
462
q = mp->inbufs;
usr.sbin/ppp/mp.c
463
while (q || m) {
usr.sbin/ppp/mp.c
464
if (!q) {
usr.sbin/ppp/mp.c
469
q = m;
usr.sbin/ppp/mp.c
473
mp_ReadHeader(mp, q, &h);
usr.sbin/ppp/mp.c
481
m->m_nextpkt = q;
usr.sbin/ppp/mp.c
482
q = m;
usr.sbin/ppp/mp.c
495
while (mp->inbufs != q) {
usr.sbin/ppp/mp.c
531
q = mp->inbufs;
usr.sbin/ppp/mp.c
537
struct mbuf **frag = &q;
usr.sbin/ppp/mp.c
547
if (frag == &q && !h.begin) {
usr.sbin/ppp/mp.c
550
m_freem(q);
usr.sbin/ppp/mp.c
551
q = NULL;
usr.sbin/ppp/mp.c
552
} else if (frag != &q && h.begin) {
usr.sbin/ppp/mp.c
562
m_freem(q);
usr.sbin/ppp/mp.c
563
q = NULL;
usr.sbin/ppp/mp.c
564
frag = &q;
usr.sbin/ppp/mp.c
576
if (q) {
usr.sbin/ppp/mp.c
577
q = m_pullup(q);
usr.sbin/ppp/mp.c
579
(u_long)first, (u_long)h.seq, m_length(q));
usr.sbin/ppp/mp.c
580
link_PullPacket(&mp->link, MBUF_CTOP(q), q->m_len, mp->bundle);
usr.sbin/ppp/mp.c
581
m_freem(q);
usr.sbin/ppp/mp.c
586
q = mp->inbufs;
usr.sbin/ppp/mp.c
590
last = q;
usr.sbin/ppp/mp.c
591
q = q->m_nextpkt;
usr.sbin/ppp/mp.c
598
for (q = mp->inbufs; q; last = q, q = q->m_nextpkt) {
usr.sbin/ppp/mp.c
599
mp_ReadHeader(mp, q, &h);
usr.sbin/ppp/mp.c
608
m->m_nextpkt = q;
usr.sbin/ppp/ncp.c
279
struct mqueue *q;
usr.sbin/ppp/ncp.c
281
for (q = ipcp->Queue; q < ipcp->Queue + IPCP_QUEUES(ipcp); q++)
usr.sbin/ppp/ncp.c
282
while (q->top)
usr.sbin/ppp/ncp.c
283
m_freem(m_dequeue(q));
usr.sbin/ppp/ncp.c
286
for (q = ipv6cp->Queue; q < ipv6cp->Queue + IPV6CP_QUEUES(ipv6cp); q++)
usr.sbin/ppp/ncp.c
287
while (q->top)
usr.sbin/ppp/ncp.c
288
m_freem(m_dequeue(q));
usr.sbin/pw/psdate.c
228
char *q, tmp[64];
usr.sbin/pw/psdate.c
241
while ((q = strrchr(tmp, ' ')) != NULL) {
usr.sbin/pw/psdate.c
242
if (strchr("(+-", q[1]) != NULL)
usr.sbin/pw/psdate.c
243
*q = '\0';
usr.sbin/pw/psdate.c
247
while (q[j] && isupper((unsigned char)q[j]))
usr.sbin/pw/psdate.c
249
if (q[j] == '\0')
usr.sbin/pw/psdate.c
250
*q = '\0';
usr.sbin/pw/psdate.c
272
if ((q = strpbrk(p, " \t")) != NULL) { /* Time first? */
usr.sbin/pw/psdate.c
273
int l = q - str;
usr.sbin/pw/psdate.c
276
strlcpy(datestr, q + 1, sizeof(datestr));
usr.sbin/pw/psdate.c
279
} else if ((q = strrchr(tmp, ' ')) != NULL) { /* Time last */
usr.sbin/pw/psdate.c
280
int l = q - tmp;
usr.sbin/pw/psdate.c
282
strlcpy(timestr, q + 1, sizeof(timestr));
usr.sbin/pw/pw_conf.c
209
char *q = NULL;
usr.sbin/pw/pw_conf.c
214
if ((q = malloc(l)) != NULL)
usr.sbin/pw/pw_conf.c
215
memcpy(q, p, l);
usr.sbin/pw/pw_conf.c
217
return q;
usr.sbin/pw/pw_conf.c
257
char *q = strtok(NULL, toks);
usr.sbin/pw/pw_conf.c
265
printf("Got unknown kwd `%s' val=`%s'\n", p, q ? q : "");
usr.sbin/pw/pw_conf.c
267
printf("Got kwd[%s]=%s\n", p, q);
usr.sbin/pw/pw_conf.c
271
config.default_password = boolean_val(q, 1);
usr.sbin/pw/pw_conf.c
274
config.reuse_uids = boolean_val(q, 0);
usr.sbin/pw/pw_conf.c
277
config.reuse_gids = boolean_val(q, 0);
usr.sbin/pw/pw_conf.c
280
config.nispasswd = (q == NULL || !boolean_val(q, 1))
usr.sbin/pw/pw_conf.c
281
? NULL : newstr(q);
usr.sbin/pw/pw_conf.c
284
config.dotdir = (q == NULL || !boolean_val(q, 1))
usr.sbin/pw/pw_conf.c
285
? NULL : newstr(q);
usr.sbin/pw/pw_conf.c
288
config.newmail = (q == NULL || !boolean_val(q, 1))
usr.sbin/pw/pw_conf.c
289
? NULL : newstr(q);
usr.sbin/pw/pw_conf.c
292
config.logfile = (q == NULL || !boolean_val(q, 1))
usr.sbin/pw/pw_conf.c
293
? NULL : newstr(q);
usr.sbin/pw/pw_conf.c
296
config.home = (q == NULL || !boolean_val(q, 1))
usr.sbin/pw/pw_conf.c
297
? "/home" : newstr(q);
usr.sbin/pw/pw_conf.c
300
modeset = setmode(q);
usr.sbin/pw/pw_conf.c
301
config.homemode = (q == NULL || !boolean_val(q, 1))
usr.sbin/pw/pw_conf.c
306
config.shelldir = (q == NULL || !boolean_val(q, 1))
usr.sbin/pw/pw_conf.c
307
? "/bin" : newstr(q);
usr.sbin/pw/pw_conf.c
310
for (i = 0; i < _UC_MAXSHELLS && q != NULL; i++, q = strtok(NULL, toks))
usr.sbin/pw/pw_conf.c
311
system_shells[i] = newstr(q);
usr.sbin/pw/pw_conf.c
317
config.shell_default = (q == NULL || !boolean_val(q, 1))
usr.sbin/pw/pw_conf.c
318
? (char *) bourne_shell : newstr(q);
usr.sbin/pw/pw_conf.c
321
q = unquote(q);
usr.sbin/pw/pw_conf.c
322
config.default_group = (q == NULL || !boolean_val(q, 1) || GETGRNAM(q) == NULL)
usr.sbin/pw/pw_conf.c
323
? NULL : newstr(q);
usr.sbin/pw/pw_conf.c
326
for (i = 0; q != NULL; q = strtok(NULL, toks)) {
usr.sbin/pw/pw_conf.c
328
config.groups[i++] = newstr(q);
usr.sbin/pw/pw_conf.c
335
config.default_class = (q == NULL || !boolean_val(q, 1))
usr.sbin/pw/pw_conf.c
336
? NULL : newstr(q);
usr.sbin/pw/pw_conf.c
339
if ((q = unquote(q)) != NULL && isdigit(*q))
usr.sbin/pw/pw_conf.c
340
config.min_uid = (uid_t) atol(q);
usr.sbin/pw/pw_conf.c
343
if ((q = unquote(q)) != NULL && isdigit(*q))
usr.sbin/pw/pw_conf.c
344
config.max_uid = (uid_t) atol(q);
usr.sbin/pw/pw_conf.c
347
if ((q = unquote(q)) != NULL && isdigit(*q))
usr.sbin/pw/pw_conf.c
348
config.min_gid = (gid_t) atol(q);
usr.sbin/pw/pw_conf.c
351
if ((q = unquote(q)) != NULL && isdigit(*q))
usr.sbin/pw/pw_conf.c
352
config.max_gid = (gid_t) atol(q);
usr.sbin/pw/pw_conf.c
355
if ((q = unquote(q)) != NULL && isdigit(*q))
usr.sbin/pw/pw_conf.c
356
config.expire_days = atoi(q);
usr.sbin/pw/pw_conf.c
359
if ((q = unquote(q)) != NULL && isdigit(*q))
usr.sbin/pw/pw_conf.c
360
config.password_days = atoi(q);
usr.sbin/pw/pw_vpw.c
216
char * q, * p;
usr.sbin/pw/pw_vpw.c
230
q = p = grtmp;
usr.sbin/pw/pw_vpw.c
233
while (!quickout && (p = strsep(&q, sep)) != NULL) {
usr.sbin/pw/pw_vpw.c
259
q = p;
usr.sbin/pw/pw_vpw.c
69
char * q;
usr.sbin/pw/pw_vpw.c
83
q = p = pwtmp;
usr.sbin/pw/pw_vpw.c
85
while (!quickout && (p = strsep(&q, ":\n")) != NULL) {
usr.sbin/route6d/misc/cksum.c
41
unsigned short *p = buf, *q = &buf[4];
usr.sbin/route6d/misc/cksum.c
50
while (q != p)
usr.sbin/route6d/misc/cksum.c
51
sum += (*q++ & 0xffff);
usr.sbin/route6d/route6d.c
1479
char *p, *q;
usr.sbin/route6d/route6d.c
1516
q = (char *)(ifam + 1);
usr.sbin/route6d/route6d.c
1521
q = (char *)(ifm + 1);
usr.sbin/route6d/route6d.c
1526
q = (char *)(rtm + 1);
usr.sbin/route6d/route6d.c
1544
rta[i] = (struct sockaddr_in6 *)q;
usr.sbin/route6d/route6d.c
1545
q += RT_ROUNDUP(rta[i]->sin6_len);
usr.sbin/route6d/route6d.c
3154
char *q = (char *)malloc(strlen(p) + 1);
usr.sbin/route6d/route6d.c
3156
strcpy(q, p);
usr.sbin/route6d/route6d.c
3157
return q;
usr.sbin/rtadvctl/rtadvctl.c
227
char *q;
usr.sbin/rtadvctl/rtadvctl.c
242
q = strchr(plstr, '=');
usr.sbin/rtadvctl/rtadvctl.c
243
if (p != NULL && q != NULL && p > q)
usr.sbin/rtadvctl/rtadvctl.c
257
if (q == NULL)
usr.sbin/rtadvctl/rtadvctl.c
260
*q++ = '\0';
usr.sbin/rtadvctl/rtadvctl.c
261
cp.cp_val = q;
usr.sbin/rtadvd/advcap.c
181
char *p, *q;
usr.sbin/rtadvd/advcap.c
198
q = tcname;
usr.sbin/rtadvd/advcap.c
199
while (*q && *q != ':')
usr.sbin/rtadvd/advcap.c
200
q++;
usr.sbin/rtadvd/advcap.c
201
*q = 0;
usr.sbin/rtadvd/advcap.c
209
for (q = tcbuf; *q++ != ':'; )
usr.sbin/rtadvd/advcap.c
211
l = p - holdtbuf + strlen(q);
usr.sbin/rtadvd/advcap.c
214
q[BUFSIZ - (p-holdtbuf)] = 0;
usr.sbin/rtadvd/advcap.c
216
strcpy(p, q);
usr.sbin/syslogd/syslogd.c
1766
const char *p, *q;
usr.sbin/syslogd/syslogd.c
1814
for (q = p; *q && *q != '\t' && *q != ' ' && *q++ != '.'; )
usr.sbin/syslogd/syslogd.c
1821
if (*q == '!') {
usr.sbin/syslogd/syslogd.c
1823
q++;
usr.sbin/syslogd/syslogd.c
1826
switch (*q) {
usr.sbin/syslogd/syslogd.c
1829
q++;
usr.sbin/syslogd/syslogd.c
1833
q++;
usr.sbin/syslogd/syslogd.c
1837
q++;
usr.sbin/syslogd/syslogd.c
1846
for (bp = buf; *q && !strchr("\t,; ", *q); )
usr.sbin/syslogd/syslogd.c
1847
*bp++ = *q++;
usr.sbin/syslogd/syslogd.c
1851
while (strchr(",;", *q))
usr.sbin/syslogd/syslogd.c
1852
q++;
usr.sbin/syslogd/syslogd.c
1908
p = q;
usr.sbin/syslogd/syslogd.c
2002
for (q = p; *q && *q != ','; )
usr.sbin/syslogd/syslogd.c
2003
q++;
usr.sbin/syslogd/syslogd.c
2005
if ((q - p) >= MAXLOGNAME)
usr.sbin/syslogd/syslogd.c
2008
f->f_un.f_uname[i][q - p] = '\0';
usr.sbin/syslogd/syslogd.c
2009
while (*q == ',' || *q == ' ')
usr.sbin/syslogd/syslogd.c
2010
q++;
usr.sbin/syslogd/syslogd.c
2011
p = q;
usr.sbin/syslogd/syslogd.c
2049
dq_t q, next;
usr.sbin/syslogd/syslogd.c
2070
for (q = TAILQ_FIRST(&deadq_head); q != NULL; q = next) {
usr.sbin/syslogd/syslogd.c
2071
next = TAILQ_NEXT(q, dq_entries);
usr.sbin/syslogd/syslogd.c
2073
switch (q->dq_timeout) {
usr.sbin/syslogd/syslogd.c
2076
if (kill(q->dq_pid, SIGKILL) != 0)
usr.sbin/syslogd/syslogd.c
2077
(void)deadq_remove(q->dq_pid);
usr.sbin/syslogd/syslogd.c
2089
if (kill(q->dq_pid, SIGTERM) != 0)
usr.sbin/syslogd/syslogd.c
2090
(void)deadq_remove(q->dq_pid);
usr.sbin/syslogd/syslogd.c
2094
q->dq_timeout--;
usr.sbin/syslogd/syslogd.c
2579
dq_t q;
usr.sbin/syslogd/syslogd.c
2581
TAILQ_FOREACH(q, &deadq_head, dq_entries) {
usr.sbin/syslogd/syslogd.c
2582
if (q->dq_pid == pid) {
usr.sbin/syslogd/syslogd.c
2583
TAILQ_REMOVE(&deadq_head, q, dq_entries);
usr.sbin/syslogd/syslogd.c
2584
free(q);
usr.sbin/syslogd/syslogd.c
715
char *p, *q;
usr.sbin/syslogd/syslogd.c
725
n = strtol(p + 1, &q, 10);
usr.sbin/syslogd/syslogd.c
726
if (*q == '>' && n >= 0 && n < INT_MAX && errno == 0) {
usr.sbin/syslogd/syslogd.c
727
p = q + 1;
usr.sbin/syslogd/syslogd.c
742
q = line;
usr.sbin/syslogd/syslogd.c
745
q < &line[sizeof(line) - 4]) {
usr.sbin/syslogd/syslogd.c
748
*q++ = 'M';
usr.sbin/syslogd/syslogd.c
749
*q++ = '-';
usr.sbin/syslogd/syslogd.c
753
*q++ = ' ';
usr.sbin/syslogd/syslogd.c
755
*q++ = '\t';
usr.sbin/syslogd/syslogd.c
757
*q++ = '^';
usr.sbin/syslogd/syslogd.c
758
*q++ = c ^ 0100;
usr.sbin/syslogd/syslogd.c
761
*q++ = c;
usr.sbin/syslogd/syslogd.c
764
*q = '\0';
usr.sbin/syslogd/syslogd.c
780
char *p, *q;
usr.sbin/syslogd/syslogd.c
795
for (p = line; (q = strchr(p, '\n')) != NULL; p = q + 1) {
usr.sbin/syslogd/syslogd.c
796
*q = '\0';
usr.sbin/syslogd/syslogd.c
815
char *p, *q;
usr.sbin/syslogd/syslogd.c
825
n = strtol(p + 1, &q, 10);
usr.sbin/syslogd/syslogd.c
826
if (*q == '>' && n >= 0 && n < INT_MAX && errno == 0) {
usr.sbin/syslogd/syslogd.c
827
p = q + 1;
usr.sbin/tzsetup/tzsetup.c
117
const char *q;
usr.sbin/tzsetup/tzsetup.c
119
for (; (q = strchr(p, '\n')) != NULL; p = q + 1) {
usr.sbin/tzsetup/tzsetup.c
120
len = q - p;
usr.sbin/usbconfig/dump.c
332
struct libusb20_quirk q;
usr.sbin/usbconfig/dump.c
336
memset(&q, 0, sizeof(q));
usr.sbin/usbconfig/dump.c
342
error = libusb20_be_get_quirk_name(pbe, x, &q);
usr.sbin/usbconfig/dump.c
350
if (strcmp(q.quirkname, "UQ_NONE"))
usr.sbin/usbconfig/dump.c
351
printf("%s\n", q.quirkname);
usr.sbin/usbconfig/dump.c
360
struct libusb20_quirk q;
usr.sbin/usbconfig/dump.c
364
memset(&q, 0, sizeof(q));
usr.sbin/usbconfig/dump.c
370
error = libusb20_be_get_dev_quirk(pbe, x, &q);
usr.sbin/usbconfig/dump.c
378
if (strcmp(q.quirkname, "UQ_NONE")) {
usr.sbin/usbconfig/dump.c
381
q.vid, q.pid, q.bcdDeviceLow,
usr.sbin/usbconfig/dump.c
382
q.bcdDeviceHigh, q.quirkname);
usr.sbin/usbconfig/usbconfig.c
166
struct libusb20_quirk q;
usr.sbin/usbconfig/usbconfig.c
169
memset(&q, 0, sizeof(q));
usr.sbin/usbconfig/usbconfig.c
171
q.vid = vid;
usr.sbin/usbconfig/usbconfig.c
172
q.pid = pid;
usr.sbin/usbconfig/usbconfig.c
173
q.bcdDeviceLow = lorev;
usr.sbin/usbconfig/usbconfig.c
174
q.bcdDeviceHigh = hirev;
usr.sbin/usbconfig/usbconfig.c
175
strlcpy(q.quirkname, str, sizeof(q.quirkname));
usr.sbin/usbconfig/usbconfig.c
177
error = libusb20_be_remove_dev_quirk(pbe, &q);
usr.sbin/usbconfig/usbconfig.c
189
struct libusb20_quirk q;
usr.sbin/usbconfig/usbconfig.c
192
memset(&q, 0, sizeof(q));
usr.sbin/usbconfig/usbconfig.c
194
q.vid = vid;
usr.sbin/usbconfig/usbconfig.c
195
q.pid = pid;
usr.sbin/usbconfig/usbconfig.c
196
q.bcdDeviceLow = lorev;
usr.sbin/usbconfig/usbconfig.c
197
q.bcdDeviceHigh = hirev;
usr.sbin/usbconfig/usbconfig.c
198
strlcpy(q.quirkname, str, sizeof(q.quirkname));
usr.sbin/usbconfig/usbconfig.c
200
error = libusb20_be_add_dev_quirk(pbe, &q);
usr.sbin/ypserv/yp_dblookup.c
102
struct circleq_entry *q;
usr.sbin/ypserv/yp_dblookup.c
104
q = (struct circleq_entry *)malloc(sizeof(struct circleq_entry));
usr.sbin/ypserv/yp_dblookup.c
105
if (q == NULL) {
usr.sbin/ypserv/yp_dblookup.c
109
bzero((char *)q, sizeof(struct circleq_entry));
usr.sbin/ypserv/yp_dblookup.c
110
q->dbptr = (struct dbent *)malloc(sizeof(struct dbent));
usr.sbin/ypserv/yp_dblookup.c
111
if (q->dbptr == NULL) {
usr.sbin/ypserv/yp_dblookup.c
113
free(q);
usr.sbin/ypserv/yp_dblookup.c
116
bzero((char *)q->dbptr, sizeof(struct dbent));
usr.sbin/ypserv/yp_dblookup.c
118
return(q);
usr.sbin/ypserv/yp_dblookup.c
126
yp_free_qent(struct circleq_entry *q)
usr.sbin/ypserv/yp_dblookup.c
134
if (q->dbptr->dbp) {
usr.sbin/ypserv/yp_dblookup.c
135
q->dbptr->dbp->close(q->dbptr->dbp);
usr.sbin/ypserv/yp_dblookup.c
136
q->dbptr->dbp = NULL;
usr.sbin/ypserv/yp_dblookup.c
141
free(q->dbptr->name);
usr.sbin/ypserv/yp_dblookup.c
146
free(q->dbptr);
usr.sbin/ypserv/yp_dblookup.c
147
q->dbptr = NULL;
usr.sbin/ypserv/yp_dblookup.c
152
free(q);
usr.sbin/ypserv/yp_dblookup.c
153
q = NULL;
usr.sbin/ypserv/yp_dnslookup.c
149
struct circleq_dnsentry *q;
usr.sbin/ypserv/yp_dnslookup.c
151
q = (struct circleq_dnsentry *)malloc(sizeof(struct circleq_dnsentry));
usr.sbin/ypserv/yp_dnslookup.c
153
if (q == NULL) {
usr.sbin/ypserv/yp_dnslookup.c
158
return(q);
usr.sbin/ypserv/yp_dnslookup.c
202
struct circleq_dnsentry *q;
usr.sbin/ypserv/yp_dnslookup.c
204
TAILQ_FOREACH(q, &qhead, links) {
usr.sbin/ypserv/yp_dnslookup.c
207
if (id == q->xid)
usr.sbin/ypserv/yp_dnslookup.c
208
return(q);
usr.sbin/ypserv/yp_dnslookup.c
212
if (id == q->id)
usr.sbin/ypserv/yp_dnslookup.c
213
return(q);
usr.sbin/ypserv/yp_dnslookup.c
221
yp_send_dns_reply(struct circleq_dnsentry *q, char *buf)
usr.sbin/ypserv/yp_dnslookup.c
234
switch (q->ypvers) {
usr.sbin/ypserv/yp_dnslookup.c
269
yp_error("bad YP program version (%lu)!", q->ypvers);
usr.sbin/ypserv/yp_dnslookup.c
276
inet_ntoa(q->client_addr.sin_addr), q->id);
usr.sbin/ypserv/yp_dnslookup.c
293
if (q->prot_type == SOCK_DGRAM)
usr.sbin/ypserv/yp_dnslookup.c
294
xid = svcudp_set_xid(q->xprt, q->xid);
usr.sbin/ypserv/yp_dnslookup.c
295
client_addr = q->xprt->xp_raddr;
usr.sbin/ypserv/yp_dnslookup.c
296
q->xprt->xp_raddr = q->client_addr;
usr.sbin/ypserv/yp_dnslookup.c
298
if (!svc_sendreply(q->xprt, xdrfunc, result))
usr.sbin/ypserv/yp_dnslookup.c
305
if (q->prot_type == SOCK_DGRAM)
usr.sbin/ypserv/yp_dnslookup.c
306
svcudp_set_xid(q->xprt, xid);
usr.sbin/ypserv/yp_dnslookup.c
307
q->xprt->xp_raddr = client_addr;
usr.sbin/ypserv/yp_dnslookup.c
319
struct circleq_dnsentry *q, *n;
usr.sbin/ypserv/yp_dnslookup.c
321
q = TAILQ_FIRST(&qhead);
usr.sbin/ypserv/yp_dnslookup.c
322
while (q != NULL) {
usr.sbin/ypserv/yp_dnslookup.c
323
q->ttl--;
usr.sbin/ypserv/yp_dnslookup.c
324
n = TAILQ_NEXT(q, links);
usr.sbin/ypserv/yp_dnslookup.c
325
if (!q->ttl) {
usr.sbin/ypserv/yp_dnslookup.c
326
TAILQ_REMOVE(&qhead, q, links);
usr.sbin/ypserv/yp_dnslookup.c
327
free(q->name);
usr.sbin/ypserv/yp_dnslookup.c
328
free(q);
usr.sbin/ypserv/yp_dnslookup.c
331
q = n;
usr.sbin/ypserv/yp_dnslookup.c
347
struct circleq_dnsentry *q;
usr.sbin/ypserv/yp_dnslookup.c
378
(q = yp_find_dnsqent(ntohs(hptr->id), BY_DNS_ID)) == NULL) {
usr.sbin/ypserv/yp_dnslookup.c
386
hent = __dns_getanswer(buf, rval, q->name, q->type);
usr.sbin/ypserv/yp_dnslookup.c
389
if (q->type == T_PTR) {
usr.sbin/ypserv/yp_dnslookup.c
390
hent->h_addr = (char *)q->addr;
usr.sbin/ypserv/yp_dnslookup.c
391
hent->h_addrtype = q->addrtype;
usr.sbin/ypserv/yp_dnslookup.c
392
hent->h_length = q->addrlen;
usr.sbin/ypserv/yp_dnslookup.c
397
yp_send_dns_reply(q, parse(hent));
usr.sbin/ypserv/yp_dnslookup.c
399
TAILQ_REMOVE(&qhead, q, links);
usr.sbin/ypserv/yp_dnslookup.c
400
free(q->name);
usr.sbin/ypserv/yp_dnslookup.c
401
free(q);
usr.sbin/ypserv/yp_dnslookup.c
415
struct circleq_dnsentry *q;
usr.sbin/ypserv/yp_dnslookup.c
433
if ((q = yp_malloc_dnsent()) == NULL)
usr.sbin/ypserv/yp_dnslookup.c
436
q->type = (af == AF_INET) ? T_A : T_AAAA;
usr.sbin/ypserv/yp_dnslookup.c
437
q->ttl = DEF_TTL;
usr.sbin/ypserv/yp_dnslookup.c
438
q->xprt = rqstp->rq_xprt;
usr.sbin/ypserv/yp_dnslookup.c
439
q->ypvers = rqstp->rq_vers;
usr.sbin/ypserv/yp_dnslookup.c
440
q->prot_type = type;
usr.sbin/ypserv/yp_dnslookup.c
441
if (q->prot_type == SOCK_DGRAM)
usr.sbin/ypserv/yp_dnslookup.c
442
q->xid = svcudp_get_xid(q->xprt);
usr.sbin/ypserv/yp_dnslookup.c
443
q->client_addr = q->xprt->xp_raddr;
usr.sbin/ypserv/yp_dnslookup.c
444
q->domain = _res.dnsrch;
usr.sbin/ypserv/yp_dnslookup.c
445
q->id = yp_send_dns_query(name, q->type);
usr.sbin/ypserv/yp_dnslookup.c
447
if (q->id == 0) {
usr.sbin/ypserv/yp_dnslookup.c
449
free(q);
usr.sbin/ypserv/yp_dnslookup.c
453
q->name = strdup(name);
usr.sbin/ypserv/yp_dnslookup.c
454
TAILQ_INSERT_HEAD(&qhead, q, links);
usr.sbin/ypserv/yp_dnslookup.c
458
yp_error("queueing async DNS name lookup (%lu)", q->id);
usr.sbin/ypserv/yp_dnslookup.c
470
struct circleq_dnsentry *q;
usr.sbin/ypserv/yp_dnslookup.c
491
if ((q = yp_malloc_dnsent()) == NULL)
usr.sbin/ypserv/yp_dnslookup.c
521
q->type = T_PTR;
usr.sbin/ypserv/yp_dnslookup.c
522
q->ttl = DEF_TTL;
usr.sbin/ypserv/yp_dnslookup.c
523
q->xprt = rqstp->rq_xprt;
usr.sbin/ypserv/yp_dnslookup.c
524
q->ypvers = rqstp->rq_vers;
usr.sbin/ypserv/yp_dnslookup.c
525
q->domain = NULL;
usr.sbin/ypserv/yp_dnslookup.c
526
q->prot_type = type;
usr.sbin/ypserv/yp_dnslookup.c
527
if (q->prot_type == SOCK_DGRAM)
usr.sbin/ypserv/yp_dnslookup.c
528
q->xid = svcudp_get_xid(q->xprt);
usr.sbin/ypserv/yp_dnslookup.c
529
q->client_addr = q->xprt->xp_raddr;
usr.sbin/ypserv/yp_dnslookup.c
530
q->id = yp_send_dns_query(buf, q->type);
usr.sbin/ypserv/yp_dnslookup.c
532
if (q->id == 0) {
usr.sbin/ypserv/yp_dnslookup.c
534
free(q);
usr.sbin/ypserv/yp_dnslookup.c
538
memcpy(q->addr, uaddr, len);
usr.sbin/ypserv/yp_dnslookup.c
539
q->addrlen = len;
usr.sbin/ypserv/yp_dnslookup.c
540
q->addrtype = af;
usr.sbin/ypserv/yp_dnslookup.c
541
q->name = strdup(buf);
usr.sbin/ypserv/yp_dnslookup.c
542
TAILQ_INSERT_HEAD(&qhead, q, links);
usr.sbin/ypserv/yp_dnslookup.c
546
yp_error("queueing async DNS address lookup (%lu)", q->id);