Symbol: c
bin/chio/chio.c
533
int c;
bin/chio/chio.c
540
while ((c = getopt(argc, argv, "vVsSbaI")) != -1) {
bin/chio/chio.c
541
switch (c) {
bin/chio/chio.c
769
int c;
bin/chio/chio.c
775
while ((c = getopt(argc, argv, "fca")) != -1) {
bin/chio/chio.c
776
switch (c) {
bin/dd/dd.c
122
parity(u_char c)
bin/dd/dd.c
126
i = c ^ (c >> 1) ^ (c >> 2) ^ (c >> 3) ^
bin/dd/dd.c
127
(c >> 4) ^ (c >> 5) ^ (c >> 6) ^ (c >> 7);
bin/ed/io.c
115
int c;
bin/ed/io.c
118
while (((c = getc(fp)) != EOF || (!feof(fp) && !ferror(fp))) &&
bin/ed/io.c
119
c != '\n') {
bin/ed/io.c
121
if (!(sbuf[i++] = c))
bin/ed/io.c
125
if (c == '\n')
bin/ed/io.c
126
sbuf[i++] = c;
bin/ed/io.c
255
int c;
bin/ed/io.c
258
switch (c = getchar()) {
bin/ed/io.c
262
if (!(ibuf[i++] = c)) isbinary = 1;
bin/ed/io.c
263
if (c != '\n')
bin/ed/main.c
101
while ((c = getopt(argc, argv, "p:sx")) != -1)
bin/ed/main.c
102
switch(c) {
bin/ed/main.c
283
int c;
bin/ed/main.c
287
switch (c = *ibufp) {
bin/ed/main.c
297
addr += (c == '-' || c == '^') ? -n : n;
bin/ed/main.c
298
} else if (!isspace((unsigned char)c))
bin/ed/main.c
299
addr += (c == '-' || c == '^') ? -1 : 1;
bin/ed/main.c
311
addr = (c == '.') ? current_addr : addr_last;
bin/ed/main.c
317
get_compiled_pattern(), c == '/')) < 0)
bin/ed/main.c
319
else if (c == *ibufp)
bin/ed/main.c
334
second_addr = (c == ';') ? current_addr : 1;
bin/ed/main.c
441
int c;
bin/ed/main.c
444
switch(c = *ibufp++) {
bin/ed/main.c
532
else if (build_active_list(c == 'g' || c == 'G') < 0)
bin/ed/main.c
534
else if ((n = (c == 'G' || c == 'V')))
bin/ed/main.c
577
c = *ibufp++;
bin/ed/main.c
583
if (mark_line_node(get_addressed_line_node(second_addr), c) < 0)
bin/ed/main.c
638
gflag = (modified && !scripted && c == 'q') ? EMOD : EOF;
bin/ed/main.c
793
(c == 'W') ? "a" : "w", first_addr, second_addr)) < 0)
bin/ed/main.c
94
int c, n;
bin/ed/re.c
117
int c, d;
bin/ed/re.c
125
for (s++, c = *++s; *s != ']' || c != d; s++)
bin/ed/re.c
126
if ((c = *s) == '\n')
bin/ed/sub.c
76
char c;
bin/ed/sub.c
87
if ((c = rhbuf[i++] = *ibufp++) == '\n' && *ibufp == '\0') {
bin/ed/sub.c
90
} else if (c != '\\')
bin/expr/expr.y
268
int c;
bin/expr/expr.y
276
while ((c = getopt(argc, argv, "e")) != -1) {
bin/expr/expr.y
277
switch (c) {
bin/ls/print.c
532
putch(int c)
bin/ls/print.c
534
(void)putchar(c);
bin/ls/print.c
539
writech(int c)
bin/ls/print.c
541
char tmp = (char)c;
bin/ls/print.c
548
printcolor_termcap(Colors c)
bin/ls/print.c
552
if (colors[c].bold)
bin/ls/print.c
554
if (colors[c].underline)
bin/ls/print.c
557
if (colors[c].num[0] != -1) {
bin/ls/print.c
558
ansiseq = tgoto(ansi_fgcol, 0, colors[c].num[0]);
bin/ls/print.c
562
if (colors[c].num[1] != -1) {
bin/ls/print.c
563
ansiseq = tgoto(ansi_bgcol, 0, colors[c].num[1]);
bin/ls/print.c
570
printcolor_ansi(Colors c)
bin/ls/print.c
575
if (colors[c].bold)
bin/ls/print.c
577
if (colors[c].underline)
bin/ls/print.c
579
if (colors[c].num[0] != -1)
bin/ls/print.c
580
printf(";3%d", colors[c].num[0]);
bin/ls/print.c
581
if (colors[c].num[1] != -1)
bin/ls/print.c
582
printf(";4%d", colors[c].num[1]);
bin/ls/print.c
587
printcolor(Colors c)
bin/ls/print.c
591
printcolor_ansi(c);
bin/ls/print.c
593
printcolor_termcap(c);
bin/ls/print.c
669
char c[2];
bin/ls/print.c
680
c[0] = defcolors[2 * i];
bin/ls/print.c
681
c[1] = defcolors[2 * i + 1];
bin/ls/print.c
683
c[0] = cs[2 * i];
bin/ls/print.c
684
c[1] = cs[2 * i + 1];
bin/ls/print.c
688
if (c[j] >= '0' && c[j] <= '7') {
bin/ls/print.c
689
colors[i].num[j] = c[j] - '0';
bin/ls/print.c
696
} else if (c[j] >= 'a' && c[j] <= 'h')
bin/ls/print.c
697
colors[i].num[j] = c[j] - 'a';
bin/ls/print.c
698
else if (c[j] >= 'A' && c[j] <= 'H') {
bin/ls/print.c
699
colors[i].num[j] = c[j] - 'A';
bin/ls/print.c
704
} else if (tolower((unsigned char)c[j]) == 'x') {
bin/ls/print.c
705
if (j == 1 && c[j] == 'X')
bin/ls/print.c
710
" env var", c[j]);
bin/pax/getoldopt.c
26
char c;
bin/pax/getoldopt.c
44
c = *key++;
bin/pax/getoldopt.c
45
if (c == '\0') {
bin/pax/getoldopt.c
49
place = strchr(optstring, c);
bin/pax/getoldopt.c
51
if (place == NULL || c == ':') {
bin/pax/getoldopt.c
52
fprintf(stderr, "%s: unknown option %c\n", argv[0], c);
bin/pax/getoldopt.c
63
argv[0], c);
bin/pax/getoldopt.c
68
return (c);
bin/pax/options.c
1016
int c;
bin/pax/options.c
1030
while ((c=getopt(argc,argv,"abcdfiklmoprstuvzABC:E:F:H:I:LO:SZ6")) != -1)
bin/pax/options.c
1031
switch (c) {
bin/pax/options.c
181
int c;
bin/pax/options.c
191
while ((c=getopt(argc,argv,"ab:cdf:iklno:p:rs:tuvwx:zB:DE:G:HLOPT:U:XYZ"))
bin/pax/options.c
193
switch (c) {
bin/pax/options.c
585
int c;
bin/pax/options.c
604
while ((c = getoldopt(argc, argv,
bin/pax/options.c
606
switch(c) {
bin/pax/pat_rep.c
1008
if ((c == '\\') && ((*spt == '\\') || (*spt == '&')))
bin/pax/pat_rep.c
1009
c = *spt++;
bin/pax/pat_rep.c
1010
*dpt++ = c;
bin/pax/pat_rep.c
466
char c;
bin/pax/pat_rep.c
471
switch (c = *pattern++) {
bin/pax/pat_rep.c
496
c = *pattern;
bin/pax/pat_rep.c
500
while (c == '*')
bin/pax/pat_rep.c
501
c = *++pattern;
bin/pax/pat_rep.c
506
if (c == '\0')
bin/pax/pat_rep.c
528
if (c != *string++)
bin/pax/pat_rep.c
539
char c;
bin/pax/pat_rep.c
547
while ((c = *pattern++) != ']') {
bin/pax/pat_rep.c
551
if (c == '\0')
bin/pax/pat_rep.c
556
if ((c <= test) && (test <= c2))
bin/pax/pat_rep.c
559
} else if (c == test)
bin/pax/pat_rep.c
982
char c;
bin/pax/pat_rep.c
990
while ((dpt < destend) && ((c = *spt++) != '\0')) {
bin/pax/pat_rep.c
995
if (c == '&') {
bin/pax/pat_rep.c
997
} else if ((c == '\\') && (*spt >= '0') && (*spt <= '9')) {
bin/sh/arith_yacc.c
284
arith_t c;
bin/sh/arith_yacc.c
297
c = cond(token, val, yylex(), noeval | !!a);
bin/sh/arith_yacc.c
299
return a ? b : c;
bin/sh/bltin/bltin.h
54
#define putc(c, file) outc(c, file)
bin/sh/bltin/bltin.h
56
#define putchar(c) out1c(c)
bin/sh/bltin/echo.c
51
char c;
bin/sh/bltin/echo.c
73
while ((c = *p++) != '\0') {
bin/sh/bltin/echo.c
74
if (c == '\\' && eflag) {
bin/sh/bltin/echo.c
76
case 'a': c = '\a'; break;
bin/sh/bltin/echo.c
77
case 'b': c = '\b'; break;
bin/sh/bltin/echo.c
79
case 'e': c = '\033'; break;
bin/sh/bltin/echo.c
80
case 'f': c = '\f'; break;
bin/sh/bltin/echo.c
81
case 'n': c = '\n'; break;
bin/sh/bltin/echo.c
82
case 'r': c = '\r'; break;
bin/sh/bltin/echo.c
83
case 't': c = '\t'; break;
bin/sh/bltin/echo.c
84
case 'v': c = '\v'; break;
bin/sh/bltin/echo.c
87
c = 0;
bin/sh/bltin/echo.c
90
c = (c << 3) + (*p++ - '0');
bin/sh/bltin/echo.c
97
putchar(c);
bin/sh/exec.c
256
int c;
bin/sh/exec.c
264
while ((c = nextopt("rv")) != '\0') {
bin/sh/exec.c
265
if (c == 'r') {
bin/sh/exec.c
267
} else if (c == 'v') {
bin/sh/expand.c
1034
char c;
bin/sh/expand.c
1038
for (; (c = *p) != '\0'; p++) {
bin/sh/expand.c
1040
if (c == '*' || c == '?' || c == '[') {
bin/sh/expand.c
1207
wchar_t c;
bin/sh/expand.c
1210
chrlen = mbtowc(&c, *p, 4);
bin/sh/expand.c
1214
c = 0;
bin/sh/expand.c
1217
return c;
bin/sh/expand.c
1261
char c;
bin/sh/expand.c
1269
switch (c = *p++) {
bin/sh/expand.c
1293
c = *p;
bin/sh/expand.c
1294
while (c == '*')
bin/sh/expand.c
1295
c = *++p;
bin/sh/expand.c
1300
if (c == '\0')
bin/sh/expand.c
1331
c = *p++;
bin/sh/expand.c
1333
if (c == '\0') {
bin/sh/expand.c
1335
c = '[';
bin/sh/expand.c
1338
if (c == '[' && *p == ':') {
bin/sh/expand.c
1345
if (c == CTLESC)
bin/sh/expand.c
1346
c = *p++;
bin/sh/expand.c
1347
if (localeisutf8 && c & 0x80) {
bin/sh/expand.c
1353
wc = (unsigned char)c;
bin/sh/expand.c
1372
} while ((c = *p++) != ']');
bin/sh/expand.c
1380
if (*q++ == c)
bin/sh/expand.c
165
nextword(char c, int flag, char *p, struct worddest *dst)
bin/sh/expand.c
169
is_ws = c == '\t' || c == '\n' || c == ' ';
bin/sh/expand.c
171
dst->state != WORD_WS_DELIMITED) || c == '\0') {
bin/sh/expand.c
186
#define NEXTWORD(c, flag, p, dstlist) p = nextword(c, flag, p, dstlist)
bin/sh/expand.c
193
char c;
bin/sh/expand.c
198
c = *data++;
bin/sh/expand.c
199
if (strchr(ifs, c) != NULL) {
bin/sh/expand.c
200
NEXTWORD(c, flag, p, dst);
bin/sh/expand.c
203
if (flag & EXP_GLOB && syntax[(int)c] == CCTL)
bin/sh/expand.c
205
USTPUTC(c, p);
bin/sh/expand.c
270
char c;
bin/sh/expand.c
283
switch (c = *p++) {
bin/sh/expand.c
302
c = *p++;
bin/sh/expand.c
304
strchr(ifsset() ? ifsval() : " \t\n", c) != NULL) {
bin/sh/expand.c
305
NEXTWORD(c, flag, expdest, dst);
bin/sh/expand.c
310
USTPUTC(c, expdest);
bin/sh/expand.c
317
expbackq((*argbackq)->n, c & CTLQUOTE, flag, dst);
bin/sh/expand.c
330
strchr(ifsset() ? ifsval() : " \t\n", c) != NULL) {
bin/sh/expand.c
331
NEXTWORD(c, flag, expdest, dst);
bin/sh/expand.c
334
USTPUTC(c, expdest);
bin/sh/expand.c
336
(c != '=' || firsteq)) {
bin/sh/expand.c
337
if (c == '=')
bin/sh/expand.c
344
strchr(ifsset() ? ifsval() : " \t\n", c) != NULL) {
bin/sh/expand.c
345
NEXTWORD(c, flag, expdest, dst);
bin/sh/expand.c
348
USTPUTC(c, expdest);
bin/sh/expand.c
360
char c;
bin/sh/expand.c
368
c = *p;
bin/sh/expand.c
369
switch(c) {
bin/sh/expand.c
549
int c = 0;
bin/sh/expand.c
560
c = *loc;
bin/sh/expand.c
563
*loc = c;
bin/sh/expand.c
567
*loc = c;
bin/sh/expand.c
573
c = *loc;
bin/sh/expand.c
576
*loc = c;
bin/sh/expand.c
580
*loc = c;
bin/sh/expand.c
663
int c;
bin/sh/expand.c
796
c = p - var - 1;
bin/sh/expand.c
797
error("${%.*s%s}: Bad substitution", c, var,
bin/sh/expand.c
798
(c > 0 && *p != CTLENDVAR) ? "..." : "");
bin/sh/expand.c
807
if ((c = *p++) == CTLESC)
bin/sh/expand.c
809
else if (c == CTLBACKQ || c == (CTLBACKQ|CTLQUOTE))
bin/sh/expand.c
811
else if (c == CTLVAR) {
bin/sh/expand.c
814
} else if (c == CTLENDVAR) {
bin/sh/jobs.c
1513
char c;
bin/sh/jobs.c
1520
while ((c = *p++) != '\0') {
bin/sh/jobs.c
1521
if (c == CTLESC)
bin/sh/jobs.c
1523
else if (c == CTLVAR) {
bin/sh/jobs.c
1530
} else if (c == '=' && subtype != 0) {
bin/sh/jobs.c
1541
} else if (c == CTLENDVAR) {
bin/sh/jobs.c
1543
} else if (c == CTLBACKQ || c == CTLBACKQ+CTLQUOTE) {
bin/sh/jobs.c
1553
} else if (c == CTLARI) {
bin/sh/jobs.c
1561
} else if (c == CTLENDARI) {
bin/sh/jobs.c
1566
} else if (c == CTLQUOTEMARK || c == CTLQUOTEEND)
bin/sh/jobs.c
1569
*q++ = c;
bin/sh/jobs.c
377
char c;
bin/sh/jobs.c
431
c = '+';
bin/sh/jobs.c
433
c = '-';
bin/sh/jobs.c
435
c = ' ';
bin/sh/jobs.c
437
fmtstr(s, 64, "[%d] %c ", jobno, c);
bin/sh/jobs.c
439
fmtstr(s, 64, " %c ", c);
bin/sh/memalloc.h
68
#define STPUTC(c, p) do { if (p == sstrend) p = growstackstr(); *p++ = (c); } while(0)
bin/sh/memalloc.h
70
#define USTPUTC(c, p) (*p++ = (c))
bin/sh/miscbltin.c
107
*c = fdc->buf[fdc->off++];
bin/sh/miscbltin.c
157
char c;
bin/sh/miscbltin.c
271
c = 0;
bin/sh/miscbltin.c
272
nread = fdgetc(&fdctx, &c);
bin/sh/miscbltin.c
288
if (c == '\0')
bin/sh/miscbltin.c
293
if (c != '\n') {
bin/sh/miscbltin.c
296
USTPUTC(c, p);
bin/sh/miscbltin.c
300
if (!rflag && c == '\\') {
bin/sh/miscbltin.c
304
if (c == '\n')
bin/sh/miscbltin.c
306
if (strchr(ifs, c))
bin/sh/miscbltin.c
307
is_ifs = strchr(" \t\n", c) ? 1 : 2;
bin/sh/miscbltin.c
315
USTPUTC(c, p);
bin/sh/miscbltin.c
323
USTPUTC(c, p);
bin/sh/miscbltin.c
336
USTPUTC(c, p);
bin/sh/miscbltin.c
348
USTPUTC(c, p);
bin/sh/miscbltin.c
95
fdgetc(struct fdctx *fdc, char *c)
bin/sh/mksyntax.c
279
char c = *p;
bin/sh/mksyntax.c
280
switch (c) {
bin/sh/mksyntax.c
281
case '\t': c = 't'; break;
bin/sh/mksyntax.c
282
case '\n': c = 'n'; break;
bin/sh/mksyntax.c
283
case '\'': c = '\''; break;
bin/sh/mksyntax.c
284
case '\\': c = '\\'; break;
bin/sh/mksyntax.c
287
fprintf(cfile, "\t[SYNBASE + '%c'] = %s,\n", c, type);
bin/sh/mksyntax.c
290
fprintf(cfile, "\t[SYNBASE + '\\%c'] = %s,\n", c, type);
bin/sh/options.c
150
int c;
bin/sh/options.c
157
if ((c = *p++) == '-') {
bin/sh/options.c
183
} else if (c == '+') {
bin/sh/options.c
189
while ((c = *p++) != '\0') {
bin/sh/options.c
190
if (c == 'c' && cmdline) {
bin/sh/options.c
197
} else if (c == 'l' && cmdline) {
bin/sh/options.c
199
} else if (c == 'o') {
bin/sh/options.c
204
setoption(c, val);
bin/sh/options.c
469
char c = '?';
bin/sh/options.c
494
c = *p++;
bin/sh/options.c
495
for (q = optstr; *q != c; ) {
bin/sh/options.c
498
s[0] = c;
bin/sh/options.c
503
out2fmt_flush("Illegal option -%c\n", c);
bin/sh/options.c
504
c = '?';
bin/sh/options.c
514
s[0] = c;
bin/sh/options.c
517
c = ':';
bin/sh/options.c
520
out2fmt_flush("No arg for -%c option\n", c);
bin/sh/options.c
521
c = '?';
bin/sh/options.c
545
s[0] = c;
bin/sh/options.c
569
char c;
bin/sh/options.c
579
c = *p++;
bin/sh/options.c
580
for (q = optstring ; *q != c ; ) {
bin/sh/options.c
582
error("Illegal option -%c", c);
bin/sh/options.c
588
error("No arg for -%c option", c);
bin/sh/options.c
596
return c;
bin/sh/output.c
75
outcslow(int c, struct output *file)
bin/sh/output.c
77
outc(c, file);
bin/sh/output.h
79
#define outc(c, file) ((file)->nextc == (file)->bufend ? (emptyoutbuf(file), *(file)->nextc++ = (c)) : (*(file)->nextc++ = (c)))
bin/sh/output.h
80
#define out1c(c) outc(c, out1);
bin/sh/output.h
81
#define out2c(c) outcslow(c, out2);
bin/sh/parser.c
1003
c = PEOF;
bin/sh/parser.c
1012
} else if (c == '\n' && *eofmark == '\0') {
bin/sh/parser.c
1013
c = PEOF;
bin/sh/parser.c
1017
return (c);
bin/sh/parser.c
1028
parseredir(char *out, int c)
bin/sh/parser.c
1034
if (c == '>') {
bin/sh/parser.c
1036
c = pgetc_linecont();
bin/sh/parser.c
1037
if (c == '>')
bin/sh/parser.c
1039
else if (c == '&')
bin/sh/parser.c
1041
else if (c == '|')
bin/sh/parser.c
1049
c = pgetc_linecont();
bin/sh/parser.c
1050
if (c == '<') {
bin/sh/parser.c
1058
if ((c = pgetc_linecont()) == '-') {
bin/sh/parser.c
1064
} else if (c == '&')
bin/sh/parser.c
1066
else if (c == '>')
bin/sh/parser.c
1128
int c;
bin/sh/parser.c
1139
c = pgetc_linecont();
bin/sh/parser.c
1140
if (c == '`')
bin/sh/parser.c
1142
switch (c) {
bin/sh/parser.c
1144
c = pgetc();
bin/sh/parser.c
1145
if (c != '\\' && c != '`' && c != '$'
bin/sh/parser.c
1146
&& (!dblquote || c != '"'))
bin/sh/parser.c
1163
USTPUTC(c, oout);
bin/sh/parser.c
1239
int c, vc, i, n;
bin/sh/parser.c
1242
c = pgetc();
bin/sh/parser.c
1243
switch (c) {
bin/sh/parser.c
1256
v = c;
bin/sh/parser.c
1269
c = pgetc();
bin/sh/parser.c
1270
if (c >= '0' && c <= '9')
bin/sh/parser.c
1271
v = (v << 4) + c - '0';
bin/sh/parser.c
1272
else if (c >= 'A' && c <= 'F')
bin/sh/parser.c
1273
v = (v << 4) + c - 'A' + 10;
bin/sh/parser.c
1274
else if (c >= 'a' && c <= 'f')
bin/sh/parser.c
1275
v = (v << 4) + c - 'a' + 10;
bin/sh/parser.c
1283
v = c - '0';
bin/sh/parser.c
1284
c = pgetc();
bin/sh/parser.c
1285
if (c >= '0' && c <= '7') {
bin/sh/parser.c
1287
v += c - '0';
bin/sh/parser.c
1288
c = pgetc();
bin/sh/parser.c
1289
if (c >= '0' && c <= '7') {
bin/sh/parser.c
1291
v += c - '0';
bin/sh/parser.c
1298
c = pgetc();
bin/sh/parser.c
1299
if (c < 0x3f || c > 0x7a || c == 0x60)
bin/sh/parser.c
1301
if (c == '\\' && pgetc() != '\\')
bin/sh/parser.c
1303
if (c == '?')
bin/sh/parser.c
1306
v = c & 0x1f;
bin/sh/parser.c
1310
n = c == 'U' ? 8 : 4;
bin/sh/parser.c
1313
c = pgetc();
bin/sh/parser.c
1314
if (c >= '0' && c <= '9')
bin/sh/parser.c
1315
v = (v << 4) + c - '0';
bin/sh/parser.c
1316
else if (c >= 'A' && c <= 'F')
bin/sh/parser.c
1317
v = (v << 4) + c - 'A' + 10;
bin/sh/parser.c
1318
else if (c >= 'a' && c <= 'f')
bin/sh/parser.c
1319
v = (v << 4) + c - 'a' + 10;
bin/sh/parser.c
1361
while ((c = pgetc()) != '\'') {
bin/sh/parser.c
1362
if (c == '\\')
bin/sh/parser.c
1363
c = pgetc();
bin/sh/parser.c
1364
if (c == PEOF)
bin/sh/parser.c
1366
if (c == '\n') {
bin/sh/parser.c
1403
int c = firstc;
bin/sh/parser.c
1429
c = checkend(c, eofmark, striptabs);
bin/sh/parser.c
1433
synentry = state[level].syntax[c];
bin/sh/parser.c
1441
USTPUTC(c, out);
bin/sh/parser.c
1447
c = pgetc();
bin/sh/parser.c
1456
USTPUTC(c, out);
bin/sh/parser.c
1461
USTPUTC(c, out);
bin/sh/parser.c
1464
c = pgetc();
bin/sh/parser.c
1465
if (c == PEOF) {
bin/sh/parser.c
1468
} else if (c == '\n') {
bin/sh/parser.c
1476
c != '\\' && c != '`' && c != '$' &&
bin/sh/parser.c
1477
(c != '"' || (eofmark != NULL &&
bin/sh/parser.c
1479
(c != '}' || state[level].category != TSTATE_VAR_OLD))
bin/sh/parser.c
1485
if (SQSYNTAX[c] == CCTL)
bin/sh/parser.c
1487
USTPUTC(c, out);
bin/sh/parser.c
1507
USTPUTC(c, out);
bin/sh/parser.c
1530
USTPUTC(c, out);
bin/sh/parser.c
1535
USTPUTC(c, out);
bin/sh/parser.c
1539
USTPUTC(c, out);
bin/sh/parser.c
1572
USTPUTC(c, out);
bin/sh/parser.c
1574
c = pgetc_macro();
bin/sh/parser.c
1593
if ((c == '>' || c == '<')
bin/sh/parser.c
1597
parseredir(out, c);
bin/sh/parser.c
1626
c = pgetc_linecont();
bin/sh/parser.c
1627
if (c == '(') { /* $(command) or $((arith)) */
bin/sh/parser.c
1638
} else if (c == '{' || is_name(c) || is_special(c)) {
bin/sh/parser.c
1644
if (c == '{') {
bin/sh/parser.c
1645
c = pgetc_linecont();
bin/sh/parser.c
1649
if (!is_eof(c) && is_name(c)) {
bin/sh/parser.c
1652
STPUTC(c, out);
bin/sh/parser.c
1653
c = pgetc_linecont();
bin/sh/parser.c
1655
} while (!is_eof(c) && is_in_name(c));
bin/sh/parser.c
1671
} else if (is_digit(c)) {
bin/sh/parser.c
1674
STPUTC(c, out);
bin/sh/parser.c
1675
c = pgetc_linecont();
bin/sh/parser.c
1676
} while (is_digit(c));
bin/sh/parser.c
1678
USTPUTC(c, out);
bin/sh/parser.c
1679
c = pgetc_linecont();
bin/sh/parser.c
1681
} else if (is_special(c)) {
bin/sh/parser.c
1682
c1 = c;
bin/sh/parser.c
1683
c = pgetc_linecont();
bin/sh/parser.c
1686
if (strchr(types, c) == NULL && c != ':' &&
bin/sh/parser.c
1687
c != '#' && c != '%')
bin/sh/parser.c
1689
c1 = c;
bin/sh/parser.c
1690
c = pgetc_linecont();
bin/sh/parser.c
1691
if (c1 != '}' && c == '}') {
bin/sh/parser.c
1693
c = c1;
bin/sh/parser.c
1697
c = c1;
bin/sh/parser.c
1704
if (c == '}')
bin/sh/parser.c
1706
else if (c == '\n' || c == PEOF)
bin/sh/parser.c
1708
else if (BASESYNTAX[c] != CCTL)
bin/sh/parser.c
1709
USTPUTC(c, out);
bin/sh/parser.c
1712
switch (c) {
bin/sh/parser.c
1715
c = pgetc_linecont();
bin/sh/parser.c
1718
p = strchr(types, c);
bin/sh/parser.c
1720
if (c == '\n' || c == PEOF)
bin/sh/parser.c
1724
if (BASESYNTAX[c] != CCTL)
bin/sh/parser.c
1725
STPUTC(c, out);
bin/sh/parser.c
1733
int cc = c;
bin/sh/parser.c
1734
subtype = c == '#' ? VSTRIMLEFT :
bin/sh/parser.c
1736
c = pgetc_linecont();
bin/sh/parser.c
1737
if (c == cc)
bin/sh/parser.c
1745
if (subtype == VSLENGTH && c != '}')
bin/sh/parser.c
1788
} else if (c == '\'' && state[level].syntax == BASESYNTAX) {
bin/sh/parser.c
1841
char c;
bin/sh/parser.c
1844
while ((c = *p++) != '\0') {
bin/sh/parser.c
1845
if ( c == CTLQUOTEMARK)
bin/sh/parser.c
1847
if (c == CTLESC)
bin/sh/parser.c
1849
else if (BASESYNTAX[(int)c] == CCTL)
bin/sh/parser.c
1952
int c;
bin/sh/parser.c
1954
while ((c = pgetc_macro()) == '\\') {
bin/sh/parser.c
1955
c = pgetc();
bin/sh/parser.c
1956
if (c == '\n') {
bin/sh/parser.c
1969
return (c);
bin/sh/parser.c
900
int c;
bin/sh/parser.c
912
c = pgetc_macro();
bin/sh/parser.c
913
switch (c) {
bin/sh/parser.c
917
while ((c = pgetc()) != '\n' && c != PEOF);
bin/sh/parser.c
932
return readtoken1(c, BASESYNTAX, (char *)NULL, 0);
bin/sh/parser.c
950
c = pgetc_linecont();
bin/sh/parser.c
951
if (c == ';')
bin/sh/parser.c
953
else if (c == '&')
bin/sh/parser.c
990
checkend(int c, const char *eofmark, int striptabs)
bin/sh/parser.c
993
while (c == '\t')
bin/sh/parser.c
994
c = pgetc();
bin/sh/parser.c
996
if (c == *eofmark) {
bin/sh/show.c
278
trputc(int c)
bin/sh/show.c
282
putc(c, tracefile);
bin/sh/show.c
283
if (c == '\n')
bin/sh/show.c
317
char c;
bin/sh/show.c
324
case '\n': c = 'n'; goto backslash;
bin/sh/show.c
325
case '\t': c = 't'; goto backslash;
bin/sh/show.c
326
case '\r': c = 'r'; goto backslash;
bin/sh/show.c
327
case '"': c = '"'; goto backslash;
bin/sh/show.c
328
case '\\': c = '\\'; goto backslash;
bin/sh/show.c
329
case CTLESC: c = 'e'; goto backslash;
bin/sh/show.c
330
case CTLVAR: c = 'v'; goto backslash;
bin/sh/show.c
331
case CTLVAR+CTLQUOTE: c = 'V'; goto backslash;
bin/sh/show.c
332
case CTLBACKQ: c = 'q'; goto backslash;
bin/sh/show.c
333
case CTLBACKQ+CTLQUOTE: c = 'Q'; goto backslash;
bin/sh/show.c
335
putc(c, tracefile);
bin/stty/print.c
253
ccval(struct cchar *p, int c)
bin/stty/print.c
259
(void)snprintf(buf, sizeof(buf), "%d", c);
bin/stty/print.c
262
if (c == _POSIX_VDISABLE)
bin/stty/print.c
265
if (c & 0200) {
bin/stty/print.c
268
c &= 0177;
bin/stty/print.c
270
if (c == 0177) {
bin/stty/print.c
274
else if (c < 040) {
bin/stty/print.c
276
*bp++ = c + '@';
bin/stty/print.c
279
*bp++ = c;
bin/test/test.c
419
char c;
bin/test/test.c
421
c = s[0];
bin/test/test.c
423
if (c == *op->op_text)
bin/timeout/timeout.c
281
char c;
bin/timeout/timeout.c
365
error = read(pp[0], &c, 1);
cddl/compat/opensolaris/include/sha2.h
32
#define SHA256Init(c) SHA256_Init(c)
cddl/compat/opensolaris/include/sha2.h
33
#define SHA256Update(c, d, s) SHA256_Update((c), (d), (s))
cddl/compat/opensolaris/include/sha2.h
34
#define SHA256Final(b, c) SHA256_Final((unsigned char *)(b), (c))
cddl/usr.sbin/zfsd/vdev.cc
213
for (u_int c = 0;c < numChildren; c++)
cddl/usr.sbin/zfsd/vdev.cc
214
children.push_back(Vdev(m_poolConfig, vdevChildren[c]));
cddl/usr.sbin/zfsd/vdev.cc
288
uint_t c;
cddl/usr.sbin/zfsd/vdev.cc
294
reinterpret_cast<uint64_t **>(&vs), &c);
cddl/usr.sbin/zfsd/vdev.cc
304
uint_t c;
cddl/usr.sbin/zfsd/vdev.cc
310
reinterpret_cast<uint64_t **>(&ps), &c);
cddl/usr.sbin/zfsd/vdev_iterator.cc
103
for (uint_t c = 0; c < spare_children; c++)
cddl/usr.sbin/zfsd/vdev_iterator.cc
104
m_vdevQueue.push_back(spare_child[c]);
cddl/usr.sbin/zfsd/vdev_iterator.cc
96
for (uint_t c = 0; c < cache_children; c++)
cddl/usr.sbin/zfsd/vdev_iterator.cc
97
m_vdevQueue.push_back(cache_child[c]);
crypto/heimdal/admin/ktutil.c
114
SL_cmd *c = sl_match (commands, argv[0], 0);
crypto/heimdal/admin/ktutil.c
115
if(c == NULL) {
crypto/heimdal/admin/ktutil.c
120
if(c->func) {
crypto/heimdal/admin/ktutil.c
126
(*c->func)(2, fake);
crypto/heimdal/admin/ktutil.c
129
if(c->help && *c->help)
crypto/heimdal/admin/ktutil.c
130
fprintf (stderr, "%s\n", c->help);
crypto/heimdal/admin/ktutil.c
131
if((++c)->name && c->func == NULL) {
crypto/heimdal/admin/ktutil.c
134
while (c->name && c->func == NULL) {
crypto/heimdal/admin/ktutil.c
135
fprintf (stderr, "%s%s", f ? ", " : " ", (c++)->name);
crypto/heimdal/appl/afsutil/afslog.c
105
const char *c;
crypto/heimdal/appl/afsutil/afslog.c
115
c = expand_one_file(f, cell);
crypto/heimdal/appl/afsutil/afslog.c
117
if(c)
crypto/heimdal/appl/afsutil/afslog.c
118
return c;
crypto/heimdal/appl/afsutil/afslog.c
139
const char *c = cell;
crypto/heimdal/appl/afsutil/afslog.c
141
c = expand_cell_name(cell);
crypto/heimdal/appl/afsutil/afslog.c
142
if(c == NULL){
crypto/heimdal/appl/afsutil/afslog.c
146
if(verbose && strcmp(c, cell) != 0)
crypto/heimdal/appl/afsutil/afslog.c
147
warnx("Cell \"%s\" expanded to \"%s\"", cell, c);
crypto/heimdal/appl/afsutil/afslog.c
152
if(strcmp(p->cell, c) == 0)
crypto/heimdal/appl/afsutil/afslog.c
157
p->cell = strdup(c);
crypto/heimdal/appl/ftp/ftp/cmds.c
1626
struct cmd *c;
crypto/heimdal/appl/ftp/ftp/cmds.c
1634
c = getcmd(argv[1]);
crypto/heimdal/appl/ftp/ftp/cmds.c
1635
if (c == (struct cmd *) -1) {
crypto/heimdal/appl/ftp/ftp/cmds.c
1641
if (c == 0) {
crypto/heimdal/appl/ftp/ftp/cmds.c
1647
if (!c->c_proxy) {
crypto/heimdal/appl/ftp/ftp/cmds.c
1659
if (c->c_conn && !connected) {
crypto/heimdal/appl/ftp/ftp/cmds.c
1667
(*c->c_handler)(argc-1, argv+1);
crypto/heimdal/appl/ftp/ftp/cmds.c
2014
int c;
crypto/heimdal/appl/ftp/ftp/cmds.c
2040
if ((c = getchar()) == EOF) {
crypto/heimdal/appl/ftp/ftp/cmds.c
2045
if ((*tmp = c) == '\n') {
crypto/heimdal/appl/ftp/ftp/cmds.c
2061
while ((c = getchar()) != '\n' && c != EOF)
crypto/heimdal/appl/ftp/ftp/cmds.c
2063
if (c == EOF || getchar() == '\n') {
crypto/heimdal/appl/ftp/ftp/domacro.c
115
c = getcmd(margv[0]);
crypto/heimdal/appl/ftp/ftp/domacro.c
116
if (c == (struct cmd *)-1) {
crypto/heimdal/appl/ftp/ftp/domacro.c
120
else if (c == 0) {
crypto/heimdal/appl/ftp/ftp/domacro.c
124
else if (c->c_conn && !connected) {
crypto/heimdal/appl/ftp/ftp/domacro.c
132
(*c->c_handler)(margc, margv);
crypto/heimdal/appl/ftp/ftp/domacro.c
133
if (bell && c->c_bell) {
crypto/heimdal/appl/ftp/ftp/domacro.c
42
struct cmd *c;
crypto/heimdal/appl/ftp/ftp/ftp.c
1046
while ((c = sec_read (fileno (din), buf, bufsize)) > 0) {
crypto/heimdal/appl/ftp/ftp/ftp.c
1047
if ((d = write (fileno (fout), buf, c)) != c)
crypto/heimdal/appl/ftp/ftp/ftp.c
1049
bytes += c;
crypto/heimdal/appl/ftp/ftp/ftp.c
1064
if (c < 0) {
crypto/heimdal/appl/ftp/ftp/ftp.c
1069
if (d < c) {
crypto/heimdal/appl/ftp/ftp/ftp.c
1098
while ((c = sec_getc(din)) != EOF) {
crypto/heimdal/appl/ftp/ftp/ftp.c
1099
if (c == '\n')
crypto/heimdal/appl/ftp/ftp/ftp.c
1101
while (c == '\r') {
crypto/heimdal/appl/ftp/ftp/ftp.c
1108
if ((c = sec_getc (din)) != '\n' || tcrflag) {
crypto/heimdal/appl/ftp/ftp/ftp.c
1112
if (c == '\0') {
crypto/heimdal/appl/ftp/ftp/ftp.c
1116
if (c == EOF)
crypto/heimdal/appl/ftp/ftp/ftp.c
1120
putc (c, fout);
crypto/heimdal/appl/ftp/ftp/ftp.c
330
int c;
crypto/heimdal/appl/ftp/ftp/ftp.c
345
c = getc (cin);
crypto/heimdal/appl/ftp/ftp/ftp.c
346
switch (c) {
crypto/heimdal/appl/ftp/ftp/ftp.c
362
c = getc (cin);
crypto/heimdal/appl/ftp/ftp/ftp.c
363
if (c == WILL || c == WONT)
crypto/heimdal/appl/ftp/ftp/ftp.c
365
if (c == DO || c == DONT)
crypto/heimdal/appl/ftp/ftp/ftp.c
434
*p++ = c;
crypto/heimdal/appl/ftp/ftp/ftp.c
449
int c, n;
crypto/heimdal/appl/ftp/ftp/ftp.c
460
while ((c = getc (cin)) != '\n') {
crypto/heimdal/appl/ftp/ftp/ftp.c
461
if (c == IAC) { /* handle telnet commands */
crypto/heimdal/appl/ftp/ftp/ftp.c
462
switch (c = getc (cin)) {
crypto/heimdal/appl/ftp/ftp/ftp.c
465
c = getc (cin);
crypto/heimdal/appl/ftp/ftp/ftp.c
466
fprintf (cout, "%c%c%c", IAC, DONT, c);
crypto/heimdal/appl/ftp/ftp/ftp.c
471
c = getc (cin);
crypto/heimdal/appl/ftp/ftp/ftp.c
472
fprintf (cout, "%c%c%c", IAC, WONT, c);
crypto/heimdal/appl/ftp/ftp/ftp.c
481
if (c == EOF) {
crypto/heimdal/appl/ftp/ftp/ftp.c
495
if (c != '\r' && (verbose > 0 ||
crypto/heimdal/appl/ftp/ftp/ftp.c
500
putchar (c);
crypto/heimdal/appl/ftp/ftp/ftp.c
502
if (dig < 4 && isdigit (c))
crypto/heimdal/appl/ftp/ftp/ftp.c
503
code = code * 10 + (c - '0');
crypto/heimdal/appl/ftp/ftp/ftp.c
506
if (dig > 4 && pflag == 1 && isdigit (c))
crypto/heimdal/appl/ftp/ftp/ftp.c
509
if (c != '\r' && c != ')')
crypto/heimdal/appl/ftp/ftp/ftp.c
510
*pt++ = c;
crypto/heimdal/appl/ftp/ftp/ftp.c
516
if (dig == 4 && c == '-') {
crypto/heimdal/appl/ftp/ftp/ftp.c
522
n = c;
crypto/heimdal/appl/ftp/ftp/ftp.c
524
*cp++ = c;
crypto/heimdal/appl/ftp/ftp/ftp.c
527
putchar (c);
crypto/heimdal/appl/ftp/ftp/ftp.c
673
int c, d;
crypto/heimdal/appl/ftp/ftp/ftp.c
813
errno = d = c = 0;
crypto/heimdal/appl/ftp/ftp/ftp.c
818
while ((c = getc (fin)) != EOF) {
crypto/heimdal/appl/ftp/ftp/ftp.c
819
if (c == '\n') {
crypto/heimdal/appl/ftp/ftp/ftp.c
830
sec_putc (c, dout);
crypto/heimdal/appl/ftp/ftp/ftp.c
903
int c, d, is_retr, tcrflag, bare_lfs = 0;
crypto/heimdal/appl/ftp/ftp/main.c
274
struct cmd *c;
crypto/heimdal/appl/ftp/ftp/main.c
316
c = getcmd(margv[0]);
crypto/heimdal/appl/ftp/ftp/main.c
317
if (c == (struct cmd *)-1) {
crypto/heimdal/appl/ftp/ftp/main.c
321
if (c == 0) {
crypto/heimdal/appl/ftp/ftp/main.c
325
if (c->c_conn && !connected) {
crypto/heimdal/appl/ftp/ftp/main.c
329
(*c->c_handler)(margc, margv);
crypto/heimdal/appl/ftp/ftp/main.c
330
if (bell && c->c_bell)
crypto/heimdal/appl/ftp/ftp/main.c
332
if (c->c_handler != help)
crypto/heimdal/appl/ftp/ftp/main.c
343
struct cmd *c, *found;
crypto/heimdal/appl/ftp/ftp/main.c
349
for (c = cmdtab; (p = c->c_name); c++) {
crypto/heimdal/appl/ftp/ftp/main.c
352
return (c);
crypto/heimdal/appl/ftp/ftp/main.c
357
found = c;
crypto/heimdal/appl/ftp/ftp/main.c
537
struct cmd *c;
crypto/heimdal/appl/ftp/ftp/main.c
544
for (c = cmdtab; c < &cmdtab[NCMDS]; c++) {
crypto/heimdal/appl/ftp/ftp/main.c
545
int len = strlen(c->c_name);
crypto/heimdal/appl/ftp/ftp/main.c
557
c = cmdtab + j * lines + i;
crypto/heimdal/appl/ftp/ftp/main.c
558
if ((!proxy || c->c_proxy)) {
crypto/heimdal/appl/ftp/ftp/main.c
559
printf("%s", c->c_name);
crypto/heimdal/appl/ftp/ftp/main.c
561
for (k=0; k < strlen(c->c_name); k++) {
crypto/heimdal/appl/ftp/ftp/main.c
565
if (c + lines >= &cmdtab[NCMDS]) {
crypto/heimdal/appl/ftp/ftp/main.c
569
w = strlen(c->c_name);
crypto/heimdal/appl/ftp/ftp/main.c
581
c = getcmd(arg);
crypto/heimdal/appl/ftp/ftp/main.c
582
if (c == (struct cmd *)-1)
crypto/heimdal/appl/ftp/ftp/main.c
584
else if (c == (struct cmd *)0)
crypto/heimdal/appl/ftp/ftp/main.c
588
c->c_name, c->c_help);
crypto/heimdal/appl/ftp/ftp/ruserpass.c
111
int t, i, c, usedefault = 0;
crypto/heimdal/appl/ftp/ftp/ruserpass.c
202
while ((c=getc(cfile)) != EOF &&
crypto/heimdal/appl/ftp/ftp/ruserpass.c
203
(c == ' ' || c == '\t'));
crypto/heimdal/appl/ftp/ftp/ruserpass.c
204
if (c == EOF || c == '\n') {
crypto/heimdal/appl/ftp/ftp/ruserpass.c
213
*tmp++ = c;
crypto/heimdal/appl/ftp/ftp/ruserpass.c
214
for (i=0; i < 8 && (c=getc(cfile)) != EOF &&
crypto/heimdal/appl/ftp/ftp/ruserpass.c
215
!isspace(c); ++i) {
crypto/heimdal/appl/ftp/ftp/ruserpass.c
216
*tmp++ = c;
crypto/heimdal/appl/ftp/ftp/ruserpass.c
218
if (c == EOF) {
crypto/heimdal/appl/ftp/ftp/ruserpass.c
223
if (c != '\n') {
crypto/heimdal/appl/ftp/ftp/ruserpass.c
224
while ((c=getc(cfile)) != EOF && c != '\n');
crypto/heimdal/appl/ftp/ftp/ruserpass.c
226
if (c == EOF) {
crypto/heimdal/appl/ftp/ftp/ruserpass.c
238
if ((c=getc(cfile)) == EOF) {
crypto/heimdal/appl/ftp/ftp/ruserpass.c
242
*tmp = c;
crypto/heimdal/appl/ftp/ftp/ruserpass.c
280
int c;
crypto/heimdal/appl/ftp/ftp/ruserpass.c
285
while ((c = getc(cfile)) != EOF &&
crypto/heimdal/appl/ftp/ftp/ruserpass.c
286
(c == '\n' || c == '\t' || c == ' ' || c == ','))
crypto/heimdal/appl/ftp/ftp/ruserpass.c
288
if (c == EOF)
crypto/heimdal/appl/ftp/ftp/ruserpass.c
291
if (c == '"') {
crypto/heimdal/appl/ftp/ftp/ruserpass.c
292
while ((c = getc(cfile)) != EOF && c != '"') {
crypto/heimdal/appl/ftp/ftp/ruserpass.c
293
if (c == '\\')
crypto/heimdal/appl/ftp/ftp/ruserpass.c
294
c = getc(cfile);
crypto/heimdal/appl/ftp/ftp/ruserpass.c
295
*cp++ = c;
crypto/heimdal/appl/ftp/ftp/ruserpass.c
298
*cp++ = c;
crypto/heimdal/appl/ftp/ftp/ruserpass.c
299
while ((c = getc(cfile)) != EOF
crypto/heimdal/appl/ftp/ftp/ruserpass.c
300
&& c != '\n' && c != '\t' && c != ' ' && c != ',') {
crypto/heimdal/appl/ftp/ftp/ruserpass.c
301
if (c == '\\')
crypto/heimdal/appl/ftp/ftp/ruserpass.c
302
c = getc(cfile);
crypto/heimdal/appl/ftp/ftp/ruserpass.c
303
*cp++ = c;
crypto/heimdal/appl/ftp/ftp/security.c
118
char c;
crypto/heimdal/appl/ftp/ftp/security.c
119
if(sec_read(fileno(F), &c, 1) <= 0)
crypto/heimdal/appl/ftp/ftp/security.c
121
return c;
crypto/heimdal/appl/ftp/ftp/security.c
329
sec_putc(int c, FILE *F)
crypto/heimdal/appl/ftp/ftp/security.c
331
char ch = c;
crypto/heimdal/appl/ftp/ftp/security.c
333
return putc(c, F);
crypto/heimdal/appl/ftp/ftp/security.c
336
if(c == '\n' || out_buffer.index >= 1024 /* XXX */) {
crypto/heimdal/appl/ftp/ftp/security.c
340
return c;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3089
int c;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3101
while ((c = getc(stdin)) != EOF) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3102
c &= 0377;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3103
if (c == IAC) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3104
if ((c = getc(stdin)) != EOF) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3105
c &= 0377;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3106
switch (c) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3109
c = getc(stdin);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3110
printf("%c%c%c", IAC, DONT, 0377&c);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3115
c = getc(stdin);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3116
printf("%c%c%c", IAC, WONT, 0377&c);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3126
*cs++ = c;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3127
if (--n <= 0 || c == '\n')
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3130
if (c == EOF && cs == s)
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3178
char c;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3205
c = cbuf[cpos];
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3209
cbuf[cpos] = c;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3230
c = cbuf[cpos];
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3234
cbuf[cpos] = c;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3301
c = cbuf[cpos];
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3304
cbuf[cpos] = c;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3316
c = cbuf[cpos];
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3319
cbuf[cpos] = c;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3423
struct tab *c;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3433
for (c = ctab; c->name != NULL; c++) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3434
int len = strlen(c->name);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3454
c = ctab + j * lines + i;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3458
c->name,
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3459
c->implemented ? ' ' : '*');
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3460
if (c + lines >= &ctab[NCMDS])
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3462
w = strlen(c->name) + 1;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3476
c = lookup(ctab, s);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3477
if (c == (struct tab *)0) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3481
if (c->implemented)
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3482
reply(214, "Syntax: %s%s %s", t, c->name, c->help);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3485
c->name, c->help);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3503
int c;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3518
while((c=getc(fin)) != EOF) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3519
if (c == '\n') /* will get expanded to \r\n */
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1036
int c;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1048
while ((c = getc(stdin)) != EOF) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1049
c &= 0377;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1050
if (c == IAC) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1051
if ((c = getc(stdin)) != EOF) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1052
c &= 0377;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1053
switch (c) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1056
c = getc(stdin);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1057
printf("%c%c%c", IAC, DONT, 0377&c);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1062
c = getc(stdin);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1063
printf("%c%c%c", IAC, WONT, 0377&c);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1073
*cs++ = c;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1074
if (--n <= 0 || c == '\n')
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1077
if (c == EOF && cs == s)
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1125
char c;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1152
c = cbuf[cpos];
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1156
cbuf[cpos] = c;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1177
c = cbuf[cpos];
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1181
cbuf[cpos] = c;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1248
c = cbuf[cpos];
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1251
cbuf[cpos] = c;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1263
c = cbuf[cpos];
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1266
cbuf[cpos] = c;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1370
struct tab *c;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1380
for (c = ctab; c->name != NULL; c++) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1381
int len = strlen(c->name);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1401
c = ctab + j * lines + i;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1405
c->name,
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1406
c->implemented ? ' ' : '*');
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1407
if (c + lines >= &ctab[NCMDS])
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1409
w = strlen(c->name) + 1;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1423
c = lookup(ctab, s);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1424
if (c == (struct tab *)0) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1428
if (c->implemented)
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1429
reply(214, "Syntax: %s%s %s", t, c->name, c->help);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1432
c->name, c->help);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1450
int c;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1465
while((c=getc(fin)) != EOF) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1466
if (c == '\n') /* will get expanded to \r\n */
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1041
int c;
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1046
if ((c=getc(fin)) == EOF) {
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1050
if (c == '\n')
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1132
int c;
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1137
if ((c=getc(fout)) == EOF) {
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1141
if (c == '\n')
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1342
int c, cnt, filefd, netfd;
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1350
while ((c = getc(instr)) != EOF) {
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1354
if(c == '\n')
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1356
sec_putc(c, outstr);
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1569
int c;
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1575
while ((c = getc(fin)) != EOF) {
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1576
if (c == '\n') {
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1590
putc(c, stdout);
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1669
int_reply(int n, char *c, const char *fmt, va_list ap)
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1675
snprintf(p, sizeof(buf), "%d%s", n, c);
crypto/heimdal/appl/ftp/ftpd/ftpd.c
980
char c = *tail;
crypto/heimdal/appl/ftp/ftpd/ftpd.c
986
*tail = c;
crypto/heimdal/appl/ftp/ftpd/ftpd.c
989
*tail = c;
crypto/heimdal/appl/ftp/ftpd/security.c
118
char c;
crypto/heimdal/appl/ftp/ftpd/security.c
119
if(sec_read(fileno(F), &c, 1) <= 0)
crypto/heimdal/appl/ftp/ftpd/security.c
121
return c;
crypto/heimdal/appl/ftp/ftpd/security.c
329
sec_putc(int c, FILE *F)
crypto/heimdal/appl/ftp/ftpd/security.c
331
char ch = c;
crypto/heimdal/appl/ftp/ftpd/security.c
333
return putc(c, F);
crypto/heimdal/appl/ftp/ftpd/security.c
336
if(c == '\n' || out_buffer.index >= 1024 /* XXX */) {
crypto/heimdal/appl/ftp/ftpd/security.c
340
return c;
crypto/heimdal/appl/gssmask/gssmaestro.c
268
wait_log(struct client *c)
crypto/heimdal/appl/gssmask/gssmaestro.c
277
assert(sizeof(sast) >= c->salen);
crypto/heimdal/appl/gssmask/gssmaestro.c
279
fd = socket(c->sa->sa_family, SOCK_STREAM, 0);
crypto/heimdal/appl/gssmask/gssmaestro.c
281
err(1, "failed to build socket for %s's logging port", c->moniker);
crypto/heimdal/appl/gssmask/gssmaestro.c
283
((struct sockaddr *)&sast)->sa_family = c->sa->sa_family;
crypto/heimdal/appl/gssmask/gssmaestro.c
284
ret = bind(fd, (struct sockaddr *)&sast, c->salen);
crypto/heimdal/appl/gssmask/gssmaestro.c
286
err(1, "failed to bind %s's logging port", c->moniker);
crypto/heimdal/appl/gssmask/gssmaestro.c
289
err(1, "failed to listen %s's logging port", c->moniker);
crypto/heimdal/appl/gssmask/gssmaestro.c
294
err(1, "failed to get address of local socket for %s", c->moniker);
crypto/heimdal/appl/gssmask/gssmaestro.c
298
put32(c, eSetLoggingSocket);
crypto/heimdal/appl/gssmask/gssmaestro.c
299
put32(c, ntohs(port));
crypto/heimdal/appl/gssmask/gssmaestro.c
304
err(1, "failed to accept local socket for %s", c->moniker);
crypto/heimdal/appl/gssmask/gssmaestro.c
566
struct client *c = ptr;
crypto/heimdal/appl/gssmask/gssmaestro.c
571
if (krb5_ret_int32(c->logsock, &cmd))
crypto/heimdal/appl/gssmask/gssmaestro.c
576
if (krb5_ret_string(c->logsock, &file))
crypto/heimdal/appl/gssmask/gssmaestro.c
582
if (krb5_ret_string(c->logsock, &file))
crypto/heimdal/appl/gssmask/gssmaestro.c
584
if (krb5_ret_int32(c->logsock, &line))
crypto/heimdal/appl/gssmask/gssmaestro.c
586
if (krb5_ret_string(c->logsock, &string))
crypto/heimdal/appl/gssmask/gssmaestro.c
595
if (krb5_store_int32(c->logsock, 0))
crypto/heimdal/appl/gssmask/gssmaestro.c
611
struct client *c = ecalloc(1, sizeof(*c));
crypto/heimdal/appl/gssmask/gssmaestro.c
621
c->name = estrdup(slave);
crypto/heimdal/appl/gssmask/gssmaestro.c
640
c->sa = ecalloc(1, res->ai_addrlen);
crypto/heimdal/appl/gssmask/gssmaestro.c
641
memcpy(c->sa, res->ai_addr, res->ai_addrlen);
crypto/heimdal/appl/gssmask/gssmaestro.c
642
c->salen = res->ai_addrlen;
crypto/heimdal/appl/gssmask/gssmaestro.c
649
c->sock = krb5_storage_from_fd(fd);
crypto/heimdal/appl/gssmask/gssmaestro.c
651
if (c->sock == NULL)
crypto/heimdal/appl/gssmask/gssmaestro.c
657
get_version_capa(c, &version, &c->capabilities, &str);
crypto/heimdal/appl/gssmask/gssmaestro.c
661
if (c->capabilities & HAS_MONIKER)
crypto/heimdal/appl/gssmask/gssmaestro.c
662
get_moniker(c, &c->moniker);
crypto/heimdal/appl/gssmask/gssmaestro.c
664
c->moniker = c->name;
crypto/heimdal/appl/gssmask/gssmaestro.c
665
if (c->capabilities & ISSERVER)
crypto/heimdal/appl/gssmask/gssmaestro.c
666
get_targetname(c, &c->target_name);
crypto/heimdal/appl/gssmask/gssmaestro.c
672
printf("starting log socket to client %s\n", c->moniker);
crypto/heimdal/appl/gssmask/gssmaestro.c
674
fd = wait_log(c);
crypto/heimdal/appl/gssmask/gssmaestro.c
676
c->logsock = krb5_storage_from_fd(fd);
crypto/heimdal/appl/gssmask/gssmaestro.c
678
if (c->logsock == NULL)
crypto/heimdal/appl/gssmask/gssmaestro.c
681
pthread_create(&c->thr, NULL, log_function, c);
crypto/heimdal/appl/gssmask/gssmaestro.c
683
c->child = fork();
crypto/heimdal/appl/gssmask/gssmaestro.c
684
if (c->child == -1)
crypto/heimdal/appl/gssmask/gssmaestro.c
686
else if (c->child == 0) {
crypto/heimdal/appl/gssmask/gssmaestro.c
687
log_function(c);
crypto/heimdal/appl/gssmask/gssmaestro.c
697
clients[num_clients] = c;
crypto/heimdal/appl/gssmask/gssmaestro.c
836
struct client *c = clients[i];
crypto/heimdal/appl/gssmask/gssmaestro.c
838
if (c->target_name == NULL)
crypto/heimdal/appl/gssmask/gssmaestro.c
842
c->moniker, c->target_name);
crypto/heimdal/appl/gssmask/gssmaestro.c
844
val = acquire_cred(c, user, password, 1, &hCred);
crypto/heimdal/appl/gssmask/gssmaestro.c
848
val = build_context(c, c,
crypto/heimdal/appl/gssmask/gssmaestro.c
854
test_token(c, clientC, c, serverC, wrap_ext);
crypto/heimdal/appl/gssmask/gssmaestro.c
855
toast_resource(c, clientC);
crypto/heimdal/appl/gssmask/gssmaestro.c
856
toast_resource(c, serverC);
crypto/heimdal/appl/gssmask/gssmaestro.c
858
toast_resource(c, delegCred);
crypto/heimdal/appl/gssmask/gssmaestro.c
866
val = build_context(c, c,
crypto/heimdal/appl/gssmask/gssmaestro.c
870
test_token(c, clientC, c, serverC, wrap_ext);
crypto/heimdal/appl/gssmask/gssmaestro.c
871
toast_resource(c, clientC);
crypto/heimdal/appl/gssmask/gssmaestro.c
872
toast_resource(c, serverC);
crypto/heimdal/appl/gssmask/gssmaestro.c
874
toast_resource(c, delegCred);
crypto/heimdal/appl/gssmask/gssmaestro.c
879
toast_resource(c, hCred);
crypto/heimdal/appl/gssmask/gssmask.c
1026
put32(c, 0); /* XXX fix gsm_error */
crypto/heimdal/appl/gssmask/gssmask.c
1027
putdata(c, token);
crypto/heimdal/appl/gssmask/gssmask.c
104
add_handle(struct client *c, enum handle_type type, void *data)
crypto/heimdal/appl/gssmask/gssmask.c
1090
struct client *c;
crypto/heimdal/appl/gssmask/gssmask.c
1092
c = ecalloc(1, sizeof(*c));
crypto/heimdal/appl/gssmask/gssmask.c
1095
c->moniker = estrdup(moniker);
crypto/heimdal/appl/gssmask/gssmask.c
1099
asprintf(&c->moniker, "gssmask: %s:%d", hostname, port);
crypto/heimdal/appl/gssmask/gssmask.c
110
h->idx = ++c->nHandle;
crypto/heimdal/appl/gssmask/gssmask.c
1103
c->salen = sizeof(c->sa);
crypto/heimdal/appl/gssmask/gssmask.c
1104
getpeername(fd, (struct sockaddr *)&c->sa, &c->salen);
crypto/heimdal/appl/gssmask/gssmask.c
1106
getnameinfo((struct sockaddr *)&c->sa, c->salen,
crypto/heimdal/appl/gssmask/gssmask.c
1107
c->servername, sizeof(c->servername),
crypto/heimdal/appl/gssmask/gssmask.c
1111
c->sock = krb5_storage_from_fd(fd);
crypto/heimdal/appl/gssmask/gssmask.c
1112
if (c->sock == NULL)
crypto/heimdal/appl/gssmask/gssmask.c
1117
return c;
crypto/heimdal/appl/gssmask/gssmask.c
1121
free_client(struct client *c)
crypto/heimdal/appl/gssmask/gssmask.c
1123
while(c->handles)
crypto/heimdal/appl/gssmask/gssmask.c
1124
del_handle(&c->handles, c->handles->idx);
crypto/heimdal/appl/gssmask/gssmask.c
1126
free(c->moniker);
crypto/heimdal/appl/gssmask/gssmask.c
1127
krb5_storage_free(c->sock);
crypto/heimdal/appl/gssmask/gssmask.c
1128
if (c->logging)
crypto/heimdal/appl/gssmask/gssmask.c
1129
krb5_storage_free(c->logging);
crypto/heimdal/appl/gssmask/gssmask.c
113
h->next = c->handles;
crypto/heimdal/appl/gssmask/gssmask.c
1130
free(c);
crypto/heimdal/appl/gssmask/gssmask.c
1138
struct client *c;
crypto/heimdal/appl/gssmask/gssmask.c
114
c->handles = h;
crypto/heimdal/appl/gssmask/gssmask.c
1141
c = (struct client *)ptr;
crypto/heimdal/appl/gssmask/gssmask.c
1145
ret32(c, op);
crypto/heimdal/appl/gssmask/gssmask.c
1149
logmessage(c, __FILE__, __LINE__, 0,
crypto/heimdal/appl/gssmask/gssmask.c
1154
logmessage(c, __FILE__, __LINE__, 0,
crypto/heimdal/appl/gssmask/gssmask.c
1156
handler->name, c->servername);
crypto/heimdal/appl/gssmask/gssmask.c
1158
if ((handler->func)(handler->op, c))
crypto/heimdal/appl/gssmask/gssmask.c
1244
struct client *c;
crypto/heimdal/appl/gssmask/gssmask.c
1246
c = create_client(0, port, moniker_str);
crypto/heimdal/appl/gssmask/gssmask.c
1249
handleServer(c);
crypto/heimdal/appl/gssmask/gssmask.c
1251
free_client(c);
crypto/heimdal/appl/gssmask/gssmask.c
133
gss_ctx_id_t c = p->ptr;
crypto/heimdal/appl/gssmask/gssmask.c
134
gss_delete_sec_context(&min_stat, &c, NULL);
crypto/heimdal/appl/gssmask/gssmask.c
137
gss_cred_id_t c = p->ptr;
crypto/heimdal/appl/gssmask/gssmask.c
138
gss_release_cred(&min_stat, &c);
crypto/heimdal/appl/gssmask/gssmask.c
200
acquire_cred(struct client *c,
crypto/heimdal/appl/gssmask/gssmask.c
228
logmessage(c, __FILE__, __LINE__, 0,
crypto/heimdal/appl/gssmask/gssmask.c
254
logmessage(c, __FILE__, __LINE__, 0,
crypto/heimdal/appl/gssmask/gssmask.c
259
*handle = add_handle(c, handle_cred, gcred);
crypto/heimdal/appl/gssmask/gssmask.c
270
handle##h(enum gssMaggotOp op, struct client *c)
crypto/heimdal/appl/gssmask/gssmask.c
279
put32(c, GSSMAGGOTPROTOCOL);
crypto/heimdal/appl/gssmask/gssmask.c
286
struct handle *h = c->handles;
crypto/heimdal/appl/gssmask/gssmask.c
295
logmessage(c, __FILE__, __LINE__, 0,
crypto/heimdal/appl/gssmask/gssmask.c
316
ret32(c, hContext);
crypto/heimdal/appl/gssmask/gssmask.c
317
ret32(c, hCred);
crypto/heimdal/appl/gssmask/gssmask.c
318
ret32(c, flags);
crypto/heimdal/appl/gssmask/gssmask.c
319
retdata(c, target_name);
crypto/heimdal/appl/gssmask/gssmask.c
320
retdata(c, in_token);
crypto/heimdal/appl/gssmask/gssmask.c
322
logmessage(c, __FILE__, __LINE__, 0,
crypto/heimdal/appl/gssmask/gssmask.c
326
ctx = find_handle(c->handles, hContext, handle_context);
crypto/heimdal/appl/gssmask/gssmask.c
329
creds = find_handle(c->handles, hCred, handle_cred);
crypto/heimdal/appl/gssmask/gssmask.c
341
logmessage(c, __FILE__, __LINE__, 0,
crypto/heimdal/appl/gssmask/gssmask.c
363
logmessage(c, __FILE__, __LINE__, 0, "init_sec_context delegating");
crypto/heimdal/appl/gssmask/gssmask.c
365
logmessage(c, __FILE__, __LINE__, 0, "init_sec_context dce-style");
crypto/heimdal/appl/gssmask/gssmask.c
382
del_handle(&c->handles, hContext);
crypto/heimdal/appl/gssmask/gssmask.c
384
logmessage(c, __FILE__, __LINE__, 0,
crypto/heimdal/appl/gssmask/gssmask.c
389
new_context_id = add_handle(c, handle_context, ctx);
crypto/heimdal/appl/gssmask/gssmask.c
402
logmessage(c, __FILE__, __LINE__, 0,
crypto/heimdal/appl/gssmask/gssmask.c
405
put32(c, new_context_id);
crypto/heimdal/appl/gssmask/gssmask.c
406
put32(c, gsm_error);
crypto/heimdal/appl/gssmask/gssmask.c
407
putdata(c, out_token);
crypto/heimdal/appl/gssmask/gssmask.c
432
ret32(c, hContext);
crypto/heimdal/appl/gssmask/gssmask.c
433
ret32(c, flags);
crypto/heimdal/appl/gssmask/gssmask.c
434
retdata(c, in_token);
crypto/heimdal/appl/gssmask/gssmask.c
436
ctx = find_handle(c->handles, hContext, handle_context);
crypto/heimdal/appl/gssmask/gssmask.c
462
del_handle(&c->handles, hContext);
crypto/heimdal/appl/gssmask/gssmask.c
463
logmessage(c, __FILE__, __LINE__, 0,
crypto/heimdal/appl/gssmask/gssmask.c
469
new_context_id = add_handle(c, handle_context, ctx);
crypto/heimdal/appl/gssmask/gssmask.c
478
logmessage(c, __FILE__, __LINE__, 0, "accept_sec_context dce-style");
crypto/heimdal/appl/gssmask/gssmask.c
480
deleg_hcred = add_handle(c, handle_cred, deleg_cred);
crypto/heimdal/appl/gssmask/gssmask.c
481
logmessage(c, __FILE__, __LINE__, 0,
crypto/heimdal/appl/gssmask/gssmask.c
491
put32(c, new_context_id);
crypto/heimdal/appl/gssmask/gssmask.c
492
put32(c, gsm_error);
crypto/heimdal/appl/gssmask/gssmask.c
493
putdata(c, out_token);
crypto/heimdal/appl/gssmask/gssmask.c
494
put32(c, deleg_hcred);
crypto/heimdal/appl/gssmask/gssmask.c
508
ret32(c, handle);
crypto/heimdal/appl/gssmask/gssmask.c
509
logmessage(c, __FILE__, __LINE__, 0, "toasting %d", handle);
crypto/heimdal/appl/gssmask/gssmask.c
510
del_handle(&c->handles, handle);
crypto/heimdal/appl/gssmask/gssmask.c
511
put32(c, GSMERR_OK);
crypto/heimdal/appl/gssmask/gssmask.c
525
retstring(c, name);
crypto/heimdal/appl/gssmask/gssmask.c
526
retstring(c, password);
crypto/heimdal/appl/gssmask/gssmask.c
527
ret32(c, flags);
crypto/heimdal/appl/gssmask/gssmask.c
529
logmessage(c, __FILE__, __LINE__, 0,
crypto/heimdal/appl/gssmask/gssmask.c
544
gsm_error = acquire_cred(c, principal, opt, &handle);
crypto/heimdal/appl/gssmask/gssmask.c
547
logmessage(c, __FILE__, __LINE__, 0,
crypto/heimdal/appl/gssmask/gssmask.c
557
put32(c, gsm_error);
crypto/heimdal/appl/gssmask/gssmask.c
558
put32(c, handle);
crypto/heimdal/appl/gssmask/gssmask.c
572
ret32(c, hContext);
crypto/heimdal/appl/gssmask/gssmask.c
573
ret32(c, flags);
crypto/heimdal/appl/gssmask/gssmask.c
574
ret32(c, seqno);
crypto/heimdal/appl/gssmask/gssmask.c
575
retdata(c, token);
crypto/heimdal/appl/gssmask/gssmask.c
577
ctx = find_handle(c->handles, hContext, handle_context);
crypto/heimdal/appl/gssmask/gssmask.c
594
put32(c, 0); /* XXX fix gsm_error */
crypto/heimdal/appl/gssmask/gssmask.c
595
putdata(c, token);
crypto/heimdal/appl/gssmask/gssmask.c
612
ret32(c, hContext);
crypto/heimdal/appl/gssmask/gssmask.c
614
ctx = find_handle(c->handles, hContext, handle_context);
crypto/heimdal/appl/gssmask/gssmask.c
618
ret32(c, flags);
crypto/heimdal/appl/gssmask/gssmask.c
619
ret32(c, seqno);
crypto/heimdal/appl/gssmask/gssmask.c
620
retdata(c, msg);
crypto/heimdal/appl/gssmask/gssmask.c
625
retdata(c, mic);
crypto/heimdal/appl/gssmask/gssmask.c
638
put32(c, 0); /* XXX fix gsm_error */
crypto/heimdal/appl/gssmask/gssmask.c
664
put32(c, GSSMAGGOTPROTOCOL);
crypto/heimdal/appl/gssmask/gssmask.c
665
put32(c, cap);
crypto/heimdal/appl/gssmask/gssmask.c
666
putstring(c, str);
crypto/heimdal/appl/gssmask/gssmask.c
676
putstring(c, targetname);
crypto/heimdal/appl/gssmask/gssmask.c
678
putstring(c, "");
crypto/heimdal/appl/gssmask/gssmask.c
688
ret32(c, portnum);
crypto/heimdal/appl/gssmask/gssmask.c
690
logmessage(c, __FILE__, __LINE__, 0,
crypto/heimdal/appl/gssmask/gssmask.c
693
socket_set_port((struct sockaddr *)(&c->sa), htons(portnum));
crypto/heimdal/appl/gssmask/gssmask.c
695
fd = socket(((struct sockaddr *)&c->sa)->sa_family, SOCK_STREAM, 0);
crypto/heimdal/appl/gssmask/gssmask.c
699
ret = connect(fd, (struct sockaddr *)&c->sa, c->salen);
crypto/heimdal/appl/gssmask/gssmask.c
70
logmessage(struct client *c, const char *file, unsigned int lineno,
crypto/heimdal/appl/gssmask/gssmask.c
701
logmessage(c, __FILE__, __LINE__, 0, "failed connect to log port: %s",
crypto/heimdal/appl/gssmask/gssmask.c
707
if (c->logging)
crypto/heimdal/appl/gssmask/gssmask.c
708
krb5_storage_free(c->logging);
crypto/heimdal/appl/gssmask/gssmask.c
709
c->logging = krb5_storage_from_fd(fd);
crypto/heimdal/appl/gssmask/gssmask.c
712
krb5_store_int32(c->logging, eLogSetMoniker);
crypto/heimdal/appl/gssmask/gssmask.c
713
store_string(c->logging, c->moniker);
crypto/heimdal/appl/gssmask/gssmask.c
715
logmessage(c, __FILE__, __LINE__, 0, "logging turned on");
crypto/heimdal/appl/gssmask/gssmask.c
743
ret32(c, hContext);
crypto/heimdal/appl/gssmask/gssmask.c
744
ret32(c, flags);
crypto/heimdal/appl/gssmask/gssmask.c
745
ret32(c, seqno);
crypto/heimdal/appl/gssmask/gssmask.c
746
retdata(c, token);
crypto/heimdal/appl/gssmask/gssmask.c
748
ctx = find_handle(c->handles, hContext, handle_context);
crypto/heimdal/appl/gssmask/gssmask.c
765
put32(c, 0); /* XXX fix gsm_error */
crypto/heimdal/appl/gssmask/gssmask.c
766
putdata(c, token);
crypto/heimdal/appl/gssmask/gssmask.c
785
ret32(c, hContext);
crypto/heimdal/appl/gssmask/gssmask.c
786
ret32(c, flags);
crypto/heimdal/appl/gssmask/gssmask.c
787
ret32(c, seqno);
crypto/heimdal/appl/gssmask/gssmask.c
788
retdata(c, token);
crypto/heimdal/appl/gssmask/gssmask.c
790
ctx = find_handle(c->handles, hContext, handle_context);
crypto/heimdal/appl/gssmask/gssmask.c
811
put32(c, 0); /* XXX fix gsm_error */
crypto/heimdal/appl/gssmask/gssmask.c
812
putdata(c, token);
crypto/heimdal/appl/gssmask/gssmask.c
823
return handleWrap(op, c);
crypto/heimdal/appl/gssmask/gssmask.c
829
return handleUnwrap(op, c);
crypto/heimdal/appl/gssmask/gssmask.c
84
if (c->logging) {
crypto/heimdal/appl/gssmask/gssmask.c
841
putstring(c, c->moniker);
crypto/heimdal/appl/gssmask/gssmask.c
85
if (krb5_store_int32(c->logging, eLogInfo) != 0)
crypto/heimdal/appl/gssmask/gssmask.c
860
ret32(c, flags);
crypto/heimdal/appl/gssmask/gssmask.c
861
retdata(c, pfxdata);
crypto/heimdal/appl/gssmask/gssmask.c
87
if (krb5_store_string(c->logging, file) != 0)
crypto/heimdal/appl/gssmask/gssmask.c
874
put32(c, -1); /* hResource */
crypto/heimdal/appl/gssmask/gssmask.c
875
put32(c, GSMERR_NOT_SUPPORTED);
crypto/heimdal/appl/gssmask/gssmask.c
89
if (krb5_store_int32(c->logging, lineno) != 0)
crypto/heimdal/appl/gssmask/gssmask.c
890
ret32(c, hContext);
crypto/heimdal/appl/gssmask/gssmask.c
891
ret32(c, flags);
crypto/heimdal/appl/gssmask/gssmask.c
892
ret32(c, bflags);
crypto/heimdal/appl/gssmask/gssmask.c
893
retdata(c, header);
crypto/heimdal/appl/gssmask/gssmask.c
894
retdata(c, token);
crypto/heimdal/appl/gssmask/gssmask.c
895
retdata(c, trailer);
crypto/heimdal/appl/gssmask/gssmask.c
897
ctx = find_handle(c->handles, hContext, handle_context);
crypto/heimdal/appl/gssmask/gssmask.c
91
if (krb5_store_string(c->logging, message) != 0)
crypto/heimdal/appl/gssmask/gssmask.c
93
if (krb5_ret_int32(c->logging, &ackid) != 0)
crypto/heimdal/appl/gssmask/gssmask.c
958
put32(c, 0); /* XXX fix gsm_error */
crypto/heimdal/appl/gssmask/gssmask.c
959
putdata(c, token);
crypto/heimdal/appl/gssmask/gssmask.c
978
ret32(c, hContext);
crypto/heimdal/appl/gssmask/gssmask.c
979
ret32(c, flags);
crypto/heimdal/appl/gssmask/gssmask.c
980
ret32(c, bflags);
crypto/heimdal/appl/gssmask/gssmask.c
981
retdata(c, header);
crypto/heimdal/appl/gssmask/gssmask.c
982
retdata(c, token);
crypto/heimdal/appl/gssmask/gssmask.c
983
retdata(c, trailer);
crypto/heimdal/appl/gssmask/gssmask.c
990
ctx = find_handle(c->handles, hContext, handle_context);
crypto/heimdal/appl/login/limits_conf.c
131
int c;
crypto/heimdal/appl/login/limits_conf.c
132
while((c = fgetc(f)) != EOF) {
crypto/heimdal/appl/login/limits_conf.c
134
if(c == '\n')
crypto/heimdal/appl/login/read_string.c
100
*p++ = c;
crypto/heimdal/appl/login/read_string.c
60
int c;
crypto/heimdal/appl/login/read_string.c
91
c = getc(tty);
crypto/heimdal/appl/login/read_string.c
92
if(c == EOF){
crypto/heimdal/appl/login/read_string.c
97
if(c == '\n')
crypto/heimdal/appl/rcp/util.c
103
c = *cp;
crypto/heimdal/appl/rcp/util.c
104
if (c & 0200)
crypto/heimdal/appl/rcp/util.c
106
if (!isalpha(c) && !isdigit(c) && c != '_' && c != '-')
crypto/heimdal/appl/rcp/util.c
98
int c;
crypto/heimdal/appl/rsh/limits_conf.c
131
int c;
crypto/heimdal/appl/rsh/limits_conf.c
132
while((c = fgetc(f)) != EOF) {
crypto/heimdal/appl/rsh/limits_conf.c
134
if(c == '\n')
crypto/heimdal/appl/telnet/libtelnet/enc_des.c
540
void cfb64_encrypt(unsigned char *s, int c)
crypto/heimdal/appl/telnet/libtelnet/enc_des.c
546
while (c-- > 0) {
crypto/heimdal/appl/telnet/libtelnet/enc_des.c
612
void ofb64_encrypt(unsigned char *s, int c)
crypto/heimdal/appl/telnet/libtelnet/enc_des.c
618
while (c-- > 0) {
crypto/heimdal/appl/telnet/libtelnet/genget.c
80
char **c, **found;
crypto/heimdal/appl/telnet/libtelnet/genget.c
87
for (c = table; *c != 0; c = (char **)((char *)c + stlen)) {
crypto/heimdal/appl/telnet/libtelnet/genget.c
88
if ((n = isprefix(name, *c)) == 0)
crypto/heimdal/appl/telnet/libtelnet/genget.c
91
return(c);
crypto/heimdal/appl/telnet/libtelnet/genget.c
94
found = c;
crypto/heimdal/appl/telnet/libtelnet/kerberos5.c
118
Data(Authenticator *ap, int type, const void *d, int c)
crypto/heimdal/appl/telnet/libtelnet/kerberos5.c
125
if (c == -1)
crypto/heimdal/appl/telnet/libtelnet/kerberos5.c
126
c = strlen((const char*)cd);
crypto/heimdal/appl/telnet/libtelnet/kerberos5.c
128
for (cp = cd; cp - cd < c; cp++, len++)
crypto/heimdal/appl/telnet/libtelnet/kerberos5.c
143
type, c);
crypto/heimdal/appl/telnet/libtelnet/kerberos5.c
144
printd(d, c);
crypto/heimdal/appl/telnet/libtelnet/kerberos5.c
150
while (c-- > 0) {
crypto/heimdal/appl/telnet/libtelnet/kerberos5.c
723
#define ADDC(buf, len, c) if ((len) > 0) {*(buf)++ = (c); --(len);}
crypto/heimdal/appl/telnet/libtelnet/rsaencpwd.c
115
Data(ap, type, d, c)
crypto/heimdal/appl/telnet/libtelnet/rsaencpwd.c
119
int c;
crypto/heimdal/appl/telnet/libtelnet/rsaencpwd.c
124
if (c == -1)
crypto/heimdal/appl/telnet/libtelnet/rsaencpwd.c
125
c = strlen((char *)cd);
crypto/heimdal/appl/telnet/libtelnet/rsaencpwd.c
131
type, c);
crypto/heimdal/appl/telnet/libtelnet/rsaencpwd.c
132
printd(d, c);
crypto/heimdal/appl/telnet/libtelnet/rsaencpwd.c
138
while (c-- > 0) {
crypto/heimdal/appl/telnet/libtelnet/rsaencpwd.c
403
#define ADDC(buf, len, c) if ((len) > 0) {*(buf)++ = (c); --(len);}
crypto/heimdal/appl/telnet/libtelnet/spx.c
132
Data(ap, type, d, c)
crypto/heimdal/appl/telnet/libtelnet/spx.c
136
int c;
crypto/heimdal/appl/telnet/libtelnet/spx.c
141
if (c == -1)
crypto/heimdal/appl/telnet/libtelnet/spx.c
142
c = strlen((char *)cd);
crypto/heimdal/appl/telnet/libtelnet/spx.c
148
type, c);
crypto/heimdal/appl/telnet/libtelnet/spx.c
149
printd(d, c);
crypto/heimdal/appl/telnet/libtelnet/spx.c
155
while (c-- > 0) {
crypto/heimdal/appl/telnet/libtelnet/spx.c
530
#define ADDC(buf, len, c) if ((len) > 0) {*(buf)++ = (c); --(len);}
crypto/heimdal/appl/telnet/telnet/commands.c
102
*cp2++ = c;
crypto/heimdal/appl/telnet/telnet/commands.c
1023
unsigned char c;
crypto/heimdal/appl/telnet/telnet/commands.c
1032
c = (linemode | bit);
crypto/heimdal/appl/telnet/telnet/commands.c
1034
c = (linemode & ~bit);
crypto/heimdal/appl/telnet/telnet/commands.c
1035
lm_mode(&c, 1, 1);
crypto/heimdal/appl/telnet/telnet/commands.c
105
if (c == '\0')
crypto/heimdal/appl/telnet/telnet/commands.c
121
char c;
crypto/heimdal/appl/telnet/telnet/commands.c
128
c = b | 0x40; /* DEL */
crypto/heimdal/appl/telnet/telnet/commands.c
130
c = b & 0x1f;
crypto/heimdal/appl/telnet/telnet/commands.c
134
c = *s;
crypto/heimdal/appl/telnet/telnet/commands.c
137
return c;
crypto/heimdal/appl/telnet/telnet/commands.c
1383
struct slclist *c;
crypto/heimdal/appl/telnet/telnet/commands.c
1385
for (c = SlcList; c->name; c++) {
crypto/heimdal/appl/telnet/telnet/commands.c
1386
if (c->help) {
crypto/heimdal/appl/telnet/telnet/commands.c
1387
if (*c->help)
crypto/heimdal/appl/telnet/telnet/commands.c
1388
printf("%-15s %s\r\n", c->name, c->help);
crypto/heimdal/appl/telnet/telnet/commands.c
1405
struct slclist *c;
crypto/heimdal/appl/telnet/telnet/commands.c
1412
c = getslc(argv[1]);
crypto/heimdal/appl/telnet/telnet/commands.c
1413
if (c == 0) {
crypto/heimdal/appl/telnet/telnet/commands.c
1418
if (Ambiguous(c)) {
crypto/heimdal/appl/telnet/telnet/commands.c
1423
(*c->handler)(c->arg);
crypto/heimdal/appl/telnet/telnet/commands.c
145
control(cc_t c)
crypto/heimdal/appl/telnet/telnet/commands.c
1461
struct envlist *c;
crypto/heimdal/appl/telnet/telnet/commands.c
1463
for (c = EnvList; c->name; c++) {
crypto/heimdal/appl/telnet/telnet/commands.c
1464
if (c->help) {
crypto/heimdal/appl/telnet/telnet/commands.c
1465
if (*c->help)
crypto/heimdal/appl/telnet/telnet/commands.c
1466
printf("%-15s %s\r\n", c->name, c->help);
crypto/heimdal/appl/telnet/telnet/commands.c
1483
struct envlist *c;
crypto/heimdal/appl/telnet/telnet/commands.c
1490
c = getenvcmd(argv[1]);
crypto/heimdal/appl/telnet/telnet/commands.c
1491
if (c == 0) {
crypto/heimdal/appl/telnet/telnet/commands.c
1496
if (Ambiguous(c)) {
crypto/heimdal/appl/telnet/telnet/commands.c
1501
if (c->narg + 2 != argc) {
crypto/heimdal/appl/telnet/telnet/commands.c
1504
c->narg < argc + 2 ? "only " : "",
crypto/heimdal/appl/telnet/telnet/commands.c
1505
c->narg, c->narg == 1 ? "" : "s", c->name);
crypto/heimdal/appl/telnet/telnet/commands.c
1508
(*c->handler)(argv[2], argv[3]);
crypto/heimdal/appl/telnet/telnet/commands.c
155
unsigned int uic = (unsigned int)c;
crypto/heimdal/appl/telnet/telnet/commands.c
159
if (c == (cc_t)_POSIX_VDISABLE) {
crypto/heimdal/appl/telnet/telnet/commands.c
164
buf[1] = ((c>>6)&07) + '0';
crypto/heimdal/appl/telnet/telnet/commands.c
165
buf[2] = ((c>>3)&07) + '0';
crypto/heimdal/appl/telnet/telnet/commands.c
166
buf[3] = (c&07) + '0';
crypto/heimdal/appl/telnet/telnet/commands.c
169
buf[0] = c;
crypto/heimdal/appl/telnet/telnet/commands.c
173
buf[1] = '@'+c;
crypto/heimdal/appl/telnet/telnet/commands.c
1767
struct authlist *c;
crypto/heimdal/appl/telnet/telnet/commands.c
1769
for (c = AuthList; c->name; c++) {
crypto/heimdal/appl/telnet/telnet/commands.c
1770
if (c->help) {
crypto/heimdal/appl/telnet/telnet/commands.c
1771
if (*c->help)
crypto/heimdal/appl/telnet/telnet/commands.c
1772
printf("%-15s %s\r\n", c->name, c->help);
crypto/heimdal/appl/telnet/telnet/commands.c
1783
struct authlist *c;
crypto/heimdal/appl/telnet/telnet/commands.c
1791
c = (struct authlist *)
crypto/heimdal/appl/telnet/telnet/commands.c
1793
if (c == 0) {
crypto/heimdal/appl/telnet/telnet/commands.c
1798
if (Ambiguous(c)) {
crypto/heimdal/appl/telnet/telnet/commands.c
1803
if (c->narg + 2 != argc) {
crypto/heimdal/appl/telnet/telnet/commands.c
1806
c->narg < argc + 2 ? "only " : "",
crypto/heimdal/appl/telnet/telnet/commands.c
1807
c->narg, c->narg == 1 ? "" : "s", c->name);
crypto/heimdal/appl/telnet/telnet/commands.c
1810
return((*c->handler)(argv[2], argv[3]));
crypto/heimdal/appl/telnet/telnet/commands.c
1862
struct encryptlist *c;
crypto/heimdal/appl/telnet/telnet/commands.c
1864
for (c = EncryptList; c->name; c++) {
crypto/heimdal/appl/telnet/telnet/commands.c
1865
if (c->help) {
crypto/heimdal/appl/telnet/telnet/commands.c
1866
if (*c->help)
crypto/heimdal/appl/telnet/telnet/commands.c
1867
printf("%-15s %s\r\n", c->name, c->help);
crypto/heimdal/appl/telnet/telnet/commands.c
1878
struct encryptlist *c;
crypto/heimdal/appl/telnet/telnet/commands.c
1880
c = (struct encryptlist *)
crypto/heimdal/appl/telnet/telnet/commands.c
1882
if (c == 0) {
crypto/heimdal/appl/telnet/telnet/commands.c
1887
if (Ambiguous(c)) {
crypto/heimdal/appl/telnet/telnet/commands.c
1893
if (argc < c->minarg || argc > c->maxarg) {
crypto/heimdal/appl/telnet/telnet/commands.c
1894
if (c->minarg == c->maxarg) {
crypto/heimdal/appl/telnet/telnet/commands.c
1896
c->minarg < argc ? "only " : "", c->minarg,
crypto/heimdal/appl/telnet/telnet/commands.c
1897
c->minarg == 1 ? "" : "s");
crypto/heimdal/appl/telnet/telnet/commands.c
1900
c->maxarg < argc ? "only " : "", c->minarg, c->maxarg);
crypto/heimdal/appl/telnet/telnet/commands.c
1903
c->name);
crypto/heimdal/appl/telnet/telnet/commands.c
1906
if (c->needconnect && !connected) {
crypto/heimdal/appl/telnet/telnet/commands.c
1912
return ((*c->handler)(argc > 0 ? argv[2] : 0,
crypto/heimdal/appl/telnet/telnet/commands.c
1978
Command *c;
crypto/heimdal/appl/telnet/telnet/commands.c
2031
c = getcmd(margv[0]);
crypto/heimdal/appl/telnet/telnet/commands.c
2032
if (Ambiguous(c)) {
crypto/heimdal/appl/telnet/telnet/commands.c
2036
if (c == 0) {
crypto/heimdal/appl/telnet/telnet/commands.c
2043
if (c->needconnect && !connected) {
crypto/heimdal/appl/telnet/telnet/commands.c
2047
(*c->handler)(margc, margv);
crypto/heimdal/appl/telnet/telnet/commands.c
2362
Command *c;
crypto/heimdal/appl/telnet/telnet/commands.c
2403
c = getcmd(margv[0]);
crypto/heimdal/appl/telnet/telnet/commands.c
2404
if (Ambiguous(c)) {
crypto/heimdal/appl/telnet/telnet/commands.c
2408
if (c == 0) {
crypto/heimdal/appl/telnet/telnet/commands.c
2412
if (c->needconnect && !connected) {
crypto/heimdal/appl/telnet/telnet/commands.c
2416
if ((*c->handler)(margc, margv)) {
crypto/heimdal/appl/telnet/telnet/commands.c
2435
Command *c;
crypto/heimdal/appl/telnet/telnet/commands.c
2439
for (c = cmdtab; c->name; c++)
crypto/heimdal/appl/telnet/telnet/commands.c
2440
if (c->help) {
crypto/heimdal/appl/telnet/telnet/commands.c
2441
printf("%-*s\t%s\r\n", HELPINDENT, c->name,
crypto/heimdal/appl/telnet/telnet/commands.c
2442
c->help);
crypto/heimdal/appl/telnet/telnet/commands.c
2449
c = getcmd(arg);
crypto/heimdal/appl/telnet/telnet/commands.c
2450
if (Ambiguous(c))
crypto/heimdal/appl/telnet/telnet/commands.c
2452
else if (c == (Command *)0)
crypto/heimdal/appl/telnet/telnet/commands.c
2455
printf("%s\r\n", c->help);
crypto/heimdal/appl/telnet/telnet/commands.c
2519
register char c;
crypto/heimdal/appl/telnet/telnet/commands.c
2582
for (c = 0;;) {
crypto/heimdal/appl/telnet/telnet/commands.c
2583
if (c == ':')
crypto/heimdal/appl/telnet/telnet/commands.c
2585
else for (cp2 = cp; (c = *cp2) != '\0'; cp2++) {
crypto/heimdal/appl/telnet/telnet/commands.c
2586
if (c == ',') {
crypto/heimdal/appl/telnet/telnet/commands.c
2590
} else if (c == '@') {
crypto/heimdal/appl/telnet/telnet/commands.c
2594
else if (c == ':') {
crypto/heimdal/appl/telnet/telnet/commands.c
2602
if (!c)
crypto/heimdal/appl/telnet/telnet/commands.c
63
char *cp, *cp2, c;
crypto/heimdal/appl/telnet/telnet/commands.c
709
struct togglelist *c;
crypto/heimdal/appl/telnet/telnet/commands.c
711
for (c = Togglelist; c->name; c++) {
crypto/heimdal/appl/telnet/telnet/commands.c
712
if (c->help) {
crypto/heimdal/appl/telnet/telnet/commands.c
713
if (*c->help)
crypto/heimdal/appl/telnet/telnet/commands.c
714
printf("%-15s toggle %s\r\n", c->name, c->help);
crypto/heimdal/appl/telnet/telnet/commands.c
727
struct togglelist *c;
crypto/heimdal/appl/telnet/telnet/commands.c
729
for (c = Togglelist; c->name; c++) {
crypto/heimdal/appl/telnet/telnet/commands.c
730
if (c->help) {
crypto/heimdal/appl/telnet/telnet/commands.c
731
if (*c->help)
crypto/heimdal/appl/telnet/telnet/commands.c
732
printf("%-15s %s %s\r\n", c->name, set ? "enable" : "disable",
crypto/heimdal/appl/telnet/telnet/commands.c
733
c->help);
crypto/heimdal/appl/telnet/telnet/commands.c
748
struct togglelist *c;
crypto/heimdal/appl/telnet/telnet/commands.c
75
while ((c = *cp)) {
crypto/heimdal/appl/telnet/telnet/commands.c
759
c = GETTOGGLE(name);
crypto/heimdal/appl/telnet/telnet/commands.c
760
if (Ambiguous(c)) {
crypto/heimdal/appl/telnet/telnet/commands.c
764
} else if (c == 0) {
crypto/heimdal/appl/telnet/telnet/commands.c
769
if (c->variable) {
crypto/heimdal/appl/telnet/telnet/commands.c
77
while (isspace((unsigned char)c))
crypto/heimdal/appl/telnet/telnet/commands.c
770
*c->variable = !*c->variable; /* invert it */
crypto/heimdal/appl/telnet/telnet/commands.c
771
if (c->actionexplanation) {
crypto/heimdal/appl/telnet/telnet/commands.c
772
printf("%s %s.\r\n", *c->variable? "Will" : "Won't",
crypto/heimdal/appl/telnet/telnet/commands.c
773
c->actionexplanation);
crypto/heimdal/appl/telnet/telnet/commands.c
776
if (c->handler) {
crypto/heimdal/appl/telnet/telnet/commands.c
777
retval &= (*c->handler)(-1);
crypto/heimdal/appl/telnet/telnet/commands.c
78
c = *++cp;
crypto/heimdal/appl/telnet/telnet/commands.c
79
if (c == '\0')
crypto/heimdal/appl/telnet/telnet/commands.c
83
for (cp2 = cp; c != '\0'; c = *++cp) {
crypto/heimdal/appl/telnet/telnet/commands.c
85
if (c == inquote) {
crypto/heimdal/appl/telnet/telnet/commands.c
851
struct togglelist *c;
crypto/heimdal/appl/telnet/telnet/commands.c
868
c = GETTOGGLE(argv[1]);
crypto/heimdal/appl/telnet/telnet/commands.c
869
if (c == 0) {
crypto/heimdal/appl/telnet/telnet/commands.c
873
} else if (Ambiguous(c)) {
crypto/heimdal/appl/telnet/telnet/commands.c
878
if (c->variable) {
crypto/heimdal/appl/telnet/telnet/commands.c
880
*c->variable = 1;
crypto/heimdal/appl/telnet/telnet/commands.c
882
*c->variable = 0;
crypto/heimdal/appl/telnet/telnet/commands.c
887
if (c->actionexplanation) {
crypto/heimdal/appl/telnet/telnet/commands.c
888
printf("%s %s.\r\n", *c->variable? "Will" : "Won't",
crypto/heimdal/appl/telnet/telnet/commands.c
889
c->actionexplanation);
crypto/heimdal/appl/telnet/telnet/commands.c
892
if (c->handler)
crypto/heimdal/appl/telnet/telnet/commands.c
893
(*c->handler)(1);
crypto/heimdal/appl/telnet/telnet/commands.c
90
if (c == '\\') {
crypto/heimdal/appl/telnet/telnet/commands.c
91
if ((c = *++cp) == '\0')
crypto/heimdal/appl/telnet/telnet/commands.c
921
struct togglelist *c;
crypto/heimdal/appl/telnet/telnet/commands.c
93
} else if (c == '"') {
crypto/heimdal/appl/telnet/telnet/commands.c
944
c = GETTOGGLE(name);
crypto/heimdal/appl/telnet/telnet/commands.c
945
if (c == 0) {
crypto/heimdal/appl/telnet/telnet/commands.c
949
} else if (Ambiguous(c)) {
crypto/heimdal/appl/telnet/telnet/commands.c
954
if (c->variable) {
crypto/heimdal/appl/telnet/telnet/commands.c
955
*c->variable = 0;
crypto/heimdal/appl/telnet/telnet/commands.c
956
if (c->actionexplanation) {
crypto/heimdal/appl/telnet/telnet/commands.c
957
printf("%s %s.\r\n", *c->variable? "Will" : "Won't",
crypto/heimdal/appl/telnet/telnet/commands.c
958
c->actionexplanation);
crypto/heimdal/appl/telnet/telnet/commands.c
96
} else if (c == '\'') {
crypto/heimdal/appl/telnet/telnet/commands.c
961
if (c->handler)
crypto/heimdal/appl/telnet/telnet/commands.c
962
(*c->handler)(0);
crypto/heimdal/appl/telnet/telnet/commands.c
99
} else if (isspace((unsigned char)c))
crypto/heimdal/appl/telnet/telnet/defines.h
38
#define NETADD(c) { *netoring.supply = c; ring_supplied(&netoring, 1); }
crypto/heimdal/appl/telnet/telnet/defines.h
43
#define TTYADD(c) if (!(SYNCHing||flushout)) { \
crypto/heimdal/appl/telnet/telnet/defines.h
44
*ttyoring.supply = c; \
crypto/heimdal/appl/telnet/telnet/externs.h
258
int TerminalSpecialChars(int c);
crypto/heimdal/appl/telnet/telnet/ring.c
293
unsigned char *s, *c;
crypto/heimdal/appl/telnet/telnet/ring.c
298
if (!(c = ring->clearto))
crypto/heimdal/appl/telnet/telnet/ring.c
299
c = ring->consume;
crypto/heimdal/appl/telnet/telnet/ring.c
303
if (s <= c) {
crypto/heimdal/appl/telnet/telnet/ring.c
304
(*encryptor)(c, ring->top - c);
crypto/heimdal/appl/telnet/telnet/ring.c
307
(*encryptor)(c, s - c);
crypto/heimdal/appl/telnet/telnet/ring.c
54
#define ring_increment(d,a,c) (((a)+(c) < (d)->top)? \
crypto/heimdal/appl/telnet/telnet/ring.c
55
(a)+(c) : (((a)+(c))-(d)->size))
crypto/heimdal/appl/telnet/telnet/ring.c
57
#define ring_decrement(d,a,c) (((a)-(c) >= (d)->bottom)? \
crypto/heimdal/appl/telnet/telnet/ring.c
58
(a)-(c) : (((a)-(c))-(d)->size))
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
134
TerminalSpecialChars(int c)
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
136
if (c == termIntChar) {
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
139
} else if (c == termQuitChar) {
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
147
} else if (c == termEofChar) {
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
153
} else if (c == termSuspChar) {
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
156
} else if (c == termFlushChar) {
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
160
if (c == termKillChar) {
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
163
} else if (c == termEraseChar) {
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
770
int c;
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
801
if ((c = select(FD_SETSIZE, &ibits, &obits, &xbits,
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
803
if (c == -1) {
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
877
c = recv(net, netiring.supply, canread, MSG_OOB);
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
878
if ((c == -1) && (errno == EINVAL)) {
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
879
c = recv(net, netiring.supply, canread, 0);
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
883
} else if (first && c > 0) {
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
896
i = recv(net, netiring.supply + c, canread - c, MSG_OOB);
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
897
if (i == c &&
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
898
memcmp(netiring.supply, netiring.supply + c, i) == 0) {
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
905
c += i;
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
907
if (bogus_oob && c > 0) {
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
914
i = read(net, netiring.supply + c, canread - c);
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
916
c += i;
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
919
c = recv(net, netiring.supply, canread, 0);
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
922
c = recv(net, netiring.supply, canread, 0);
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
926
c = recv(net, (char *)netiring.supply, canread, 0);
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
928
if (c < 0 && errno == EWOULDBLOCK) {
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
929
c = 0;
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
930
} else if (c <= 0) {
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
934
Dump('<', netiring.supply, c);
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
936
if (c)
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
937
ring_supplied(&netiring, c);
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
946
c = TerminalRead(ttyiring.supply, ring_empty_consecutive(&ttyiring));
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
947
if (c < 0 && errno == EIO)
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
948
c = 0;
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
949
if (c < 0 && errno == EWOULDBLOCK) {
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
950
c = 0;
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
953
if ((c == 0) && MODE_LOCAL_CHARS(globalmode) && isatty(tin)) {
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
956
c = 1;
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
958
if (c <= 0) {
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
962
Dump('<', ttyiring.supply, c);
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
964
ring_supplied(&ttyiring, c);
crypto/heimdal/appl/telnet/telnet/telnet.c
1470
unsigned char *vp, c;
crypto/heimdal/appl/telnet/telnet/telnet.c
1515
while ((c = *ep++)) {
crypto/heimdal/appl/telnet/telnet/telnet.c
1518
switch(c&0xff) {
crypto/heimdal/appl/telnet/telnet/telnet.c
1529
*opt_replyp++ = c;
crypto/heimdal/appl/telnet/telnet/telnet.c
1587
int c;
crypto/heimdal/appl/telnet/telnet/telnet.c
1610
c = *sbp++ & 0xff, scc--; count++;
crypto/heimdal/appl/telnet/telnet/telnet.c
1613
c = (*decrypt_input)(c);
crypto/heimdal/appl/telnet/telnet/telnet.c
1620
if (c == '\0') {
crypto/heimdal/appl/telnet/telnet/telnet.c
1623
else if ((c == '\n') && my_want_state_is_dont(TELOPT_ECHO) && !crmod) {
crypto/heimdal/appl/telnet/telnet/telnet.c
1624
TTYADD(c);
crypto/heimdal/appl/telnet/telnet/telnet.c
1630
if (c == IAC) {
crypto/heimdal/appl/telnet/telnet/telnet.c
1641
if ((c == '\r') && my_want_state_is_dont(TELOPT_BINARY)) {
crypto/heimdal/appl/telnet/telnet/telnet.c
1643
c = *sbp&0xff;
crypto/heimdal/appl/telnet/telnet/telnet.c
1646
c = (*decrypt_input)(c);
crypto/heimdal/appl/telnet/telnet/telnet.c
1648
if (c == 0) {
crypto/heimdal/appl/telnet/telnet/telnet.c
1653
(c == '\n')) {
crypto/heimdal/appl/telnet/telnet/telnet.c
1675
TTYADD(c);
crypto/heimdal/appl/telnet/telnet/telnet.c
1681
switch (c) {
crypto/heimdal/appl/telnet/telnet/telnet.c
1725
printoption("RCVD", IAC, c);
crypto/heimdal/appl/telnet/telnet/telnet.c
1732
printoption("RCVD", WILL, c);
crypto/heimdal/appl/telnet/telnet/telnet.c
1733
willoption(c);
crypto/heimdal/appl/telnet/telnet/telnet.c
1738
printoption("RCVD", WONT, c);
crypto/heimdal/appl/telnet/telnet/telnet.c
1739
wontoption(c);
crypto/heimdal/appl/telnet/telnet/telnet.c
1744
printoption("RCVD", DO, c);
crypto/heimdal/appl/telnet/telnet/telnet.c
1745
dooption(c);
crypto/heimdal/appl/telnet/telnet/telnet.c
1746
if (c == TELOPT_NAWS) {
crypto/heimdal/appl/telnet/telnet/telnet.c
1748
} else if (c == TELOPT_LFLOW) {
crypto/heimdal/appl/telnet/telnet/telnet.c
175
send_do(int c, int init)
crypto/heimdal/appl/telnet/telnet/telnet.c
1757
printoption("RCVD", DONT, c);
crypto/heimdal/appl/telnet/telnet/telnet.c
1758
dontoption(c);
crypto/heimdal/appl/telnet/telnet/telnet.c
1765
if (c == IAC) {
crypto/heimdal/appl/telnet/telnet/telnet.c
1768
SB_ACCUM(c);
crypto/heimdal/appl/telnet/telnet/telnet.c
1773
if (c != SE) {
crypto/heimdal/appl/telnet/telnet/telnet.c
1774
if (c != IAC) {
crypto/heimdal/appl/telnet/telnet/telnet.c
178
if (((do_dont_resp[c] == 0) && my_state_is_do(c)) ||
crypto/heimdal/appl/telnet/telnet/telnet.c
1788
SB_ACCUM(c);
crypto/heimdal/appl/telnet/telnet/telnet.c
179
my_want_state_is_do(c))
crypto/heimdal/appl/telnet/telnet/telnet.c
1792
printoption("In SUBOPTION processing, RCVD", IAC, c);
crypto/heimdal/appl/telnet/telnet/telnet.c
1797
SB_ACCUM(c);
crypto/heimdal/appl/telnet/telnet/telnet.c
181
set_my_want_state_do(c);
crypto/heimdal/appl/telnet/telnet/telnet.c
182
do_dont_resp[c]++;
crypto/heimdal/appl/telnet/telnet/telnet.c
1840
int c;
crypto/heimdal/appl/telnet/telnet/telnet.c
185
NETADD(c);
crypto/heimdal/appl/telnet/telnet/telnet.c
1854
c = *tbp++ & 0xff, sc = strip(c), tcc--; count++;
crypto/heimdal/appl/telnet/telnet/telnet.c
186
printoption("SENT", DO, c);
crypto/heimdal/appl/telnet/telnet/telnet.c
1864
if (sc == '.' || c == termEofChar) {
crypto/heimdal/appl/telnet/telnet/telnet.c
1886
c = sc = rlogin;
crypto/heimdal/appl/telnet/telnet/telnet.c
190
send_dont(int c, int init)
crypto/heimdal/appl/telnet/telnet/telnet.c
193
if (((do_dont_resp[c] == 0) && my_state_is_dont(c)) ||
crypto/heimdal/appl/telnet/telnet/telnet.c
1930
switch (c) {
crypto/heimdal/appl/telnet/telnet/telnet.c
194
my_want_state_is_dont(c))
crypto/heimdal/appl/telnet/telnet/telnet.c
1955
NETADD(c);
crypto/heimdal/appl/telnet/telnet/telnet.c
1958
} else if (c == IAC) {
crypto/heimdal/appl/telnet/telnet/telnet.c
196
set_my_want_state_dont(c);
crypto/heimdal/appl/telnet/telnet/telnet.c
1961
NETADD(c);
crypto/heimdal/appl/telnet/telnet/telnet.c
197
do_dont_resp[c]++;
crypto/heimdal/appl/telnet/telnet/telnet.c
200
NETADD(c);
crypto/heimdal/appl/telnet/telnet/telnet.c
201
printoption("SENT", DONT, c);
crypto/heimdal/appl/telnet/telnet/telnet.c
205
send_will(int c, int init)
crypto/heimdal/appl/telnet/telnet/telnet.c
208
if (((will_wont_resp[c] == 0) && my_state_is_will(c)) ||
crypto/heimdal/appl/telnet/telnet/telnet.c
209
my_want_state_is_will(c))
crypto/heimdal/appl/telnet/telnet/telnet.c
211
set_my_want_state_will(c);
crypto/heimdal/appl/telnet/telnet/telnet.c
212
will_wont_resp[c]++;
crypto/heimdal/appl/telnet/telnet/telnet.c
215
NETADD(c);
crypto/heimdal/appl/telnet/telnet/telnet.c
216
printoption("SENT", WILL, c);
crypto/heimdal/appl/telnet/telnet/telnet.c
220
send_wont(int c, int init)
crypto/heimdal/appl/telnet/telnet/telnet.c
223
if (((will_wont_resp[c] == 0) && my_state_is_wont(c)) ||
crypto/heimdal/appl/telnet/telnet/telnet.c
224
my_want_state_is_wont(c))
crypto/heimdal/appl/telnet/telnet/telnet.c
226
set_my_want_state_wont(c);
crypto/heimdal/appl/telnet/telnet/telnet.c
227
will_wont_resp[c]++;
crypto/heimdal/appl/telnet/telnet/telnet.c
230
NETADD(c);
crypto/heimdal/appl/telnet/telnet/telnet.c
231
printoption("SENT", WONT, c);
crypto/heimdal/appl/telnet/telnet/telnet.c
44
#define SB_ACCUM(c) if (subpointer < (subbuffer+sizeof subbuffer)) { \
crypto/heimdal/appl/telnet/telnet/telnet.c
45
*subpointer++ = (c); \
crypto/heimdal/appl/telnet/telnet/telnet.c
515
char c, *cp, **argvp, *cp2, **argv, **avt;
crypto/heimdal/appl/telnet/telnet/telnet.c
547
for (cp = cp2 = buf; (c = *cp); cp++) {
crypto/heimdal/appl/telnet/telnet/telnet.c
548
if (c == '|' || c == ':') {
crypto/heimdal/appl/telnet/telnet/telnet.c
563
if (c == ':')
crypto/heimdal/appl/telnet/telnet/telnet.c
570
while ((c = *cp) == '|')
crypto/heimdal/appl/telnet/telnet/telnet.c
580
#define ISASCII(c) (!((c)&0x80))
crypto/heimdal/appl/telnet/telnet/telnet.c
581
if ((c == ' ') || !ISASCII(c))
crypto/heimdal/appl/telnet/telnet/telnet.c
583
else if (islower((unsigned char)c))
crypto/heimdal/appl/telnet/telnet/telnet.c
584
*cp = toupper((unsigned char)c);
crypto/heimdal/appl/telnet/telnetd/defs.h
78
#define NIACCUM(c) { *netip++ = c; \
crypto/heimdal/appl/telnet/telnetd/state.c
1026
int c;
crypto/heimdal/appl/telnet/telnetd/state.c
1031
c = SB_GET();
crypto/heimdal/appl/telnet/telnetd/state.c
1032
if (c == TELQUAL_IS) {
crypto/heimdal/appl/telnet/telnetd/state.c
1037
} else if (c != TELQUAL_INFO) {
crypto/heimdal/appl/telnet/telnetd/state.c
104
if (c == IAC) {
crypto/heimdal/appl/telnet/telnetd/state.c
1044
c = SB_GET();
crypto/heimdal/appl/telnet/telnetd/state.c
1045
if ((c == NEW_ENV_VAR) || (c == ENV_USERVAR))
crypto/heimdal/appl/telnet/telnetd/state.c
1077
c = SB_GET();
crypto/heimdal/appl/telnet/telnetd/state.c
1078
switch(c) {
crypto/heimdal/appl/telnet/telnetd/state.c
1107
c = SB_GET();
crypto/heimdal/appl/telnet/telnetd/state.c
1154
c = SB_GET();
crypto/heimdal/appl/telnet/telnetd/state.c
1155
if ((c == env_ovar) || (c == ENV_USERVAR))
crypto/heimdal/appl/telnet/telnetd/state.c
1167
c = SB_GET();
crypto/heimdal/appl/telnet/telnetd/state.c
1169
if (c == env_ovar)
crypto/heimdal/appl/telnet/telnetd/state.c
1170
c = NEW_ENV_VAR;
crypto/heimdal/appl/telnet/telnetd/state.c
1171
else if (c == env_ovalue)
crypto/heimdal/appl/telnet/telnetd/state.c
1172
c = NEW_ENV_VALUE;
crypto/heimdal/appl/telnet/telnetd/state.c
1174
switch (c) {
crypto/heimdal/appl/telnet/telnetd/state.c
119
if ((c == '\r') && his_state_is_wont(TELOPT_BINARY)) {
crypto/heimdal/appl/telnet/telnetd/state.c
1195
c = SB_GET();
crypto/heimdal/appl/telnet/telnetd/state.c
1198
*cp++ = c;
crypto/heimdal/appl/telnet/telnetd/state.c
1291
#define ADD(c) *ncp++ = c
crypto/heimdal/appl/telnet/telnetd/state.c
1292
#define ADD_DATA(c) { *ncp++ = c; if (c == SE || c == IAC) *ncp++ = c; }
crypto/heimdal/appl/telnet/telnetd/state.c
133
*pfrontp++ = c;
crypto/heimdal/appl/telnet/telnetd/state.c
137
gotiac: switch (c) {
crypto/heimdal/appl/telnet/telnetd/state.c
146
printoption("td: recv IAC", c));
crypto/heimdal/appl/telnet/telnetd/state.c
152
printoption("td: recv IAC", c));
crypto/heimdal/appl/telnet/telnetd/state.c
161
printoption("td: recv IAC", c));
crypto/heimdal/appl/telnet/telnetd/state.c
171
printoption("td: recv IAC", c));
crypto/heimdal/appl/telnet/telnetd/state.c
199
printoption("td: recv IAC", c));
crypto/heimdal/appl/telnet/telnetd/state.c
202
if (c == EC)
crypto/heimdal/appl/telnet/telnetd/state.c
216
printoption("td: recv IAC", c));
crypto/heimdal/appl/telnet/telnetd/state.c
267
*pfrontp++ = c;
crypto/heimdal/appl/telnet/telnetd/state.c
274
if (c == IAC) {
crypto/heimdal/appl/telnet/telnetd/state.c
277
SB_ACCUM(c);
crypto/heimdal/appl/telnet/telnetd/state.c
282
if (c != SE) {
crypto/heimdal/appl/telnet/telnetd/state.c
283
if (c != IAC) {
crypto/heimdal/appl/telnet/telnetd/state.c
295
SB_ACCUM(c);
crypto/heimdal/appl/telnet/telnetd/state.c
303
SB_ACCUM(c);
crypto/heimdal/appl/telnet/telnetd/state.c
318
willoption(c);
crypto/heimdal/appl/telnet/telnetd/state.c
323
wontoption(c);
crypto/heimdal/appl/telnet/telnetd/state.c
324
if (c==TELOPT_ENCRYPT && his_do_dont_is_changing(TELOPT_ENCRYPT) )
crypto/heimdal/appl/telnet/telnetd/state.c
325
dontoption(c);
crypto/heimdal/appl/telnet/telnetd/state.c
330
dooption(c);
crypto/heimdal/appl/telnet/telnetd/state.c
335
dontoption(c);
crypto/heimdal/appl/telnet/telnetd/state.c
52
#define SB_ACCUM(c) if (subpointer < (subbuffer+sizeof subbuffer)) { \
crypto/heimdal/appl/telnet/telnetd/state.c
53
*subpointer++ = (c); \
crypto/heimdal/appl/telnet/telnetd/state.c
82
int c;
crypto/heimdal/appl/telnet/telnetd/state.c
88
c = *netip++ & 0377, ncc--;
crypto/heimdal/appl/telnet/telnetd/state.c
91
c = (*decrypt_input)(c);
crypto/heimdal/appl/telnet/telnetd/state.c
956
int c;
crypto/heimdal/appl/telnet/telnetd/state.c
958
c = SB_GET();
crypto/heimdal/appl/telnet/telnetd/state.c
959
if (isupper(c)) {
crypto/heimdal/appl/telnet/telnetd/state.c
960
c = tolower(c);
crypto/heimdal/appl/telnet/telnetd/state.c
962
*p++ = c; /* accumulate name */
crypto/heimdal/appl/telnet/telnetd/state.c
98
if ((c == 0) || (c == '\n')) {
crypto/heimdal/appl/telnet/telnetd/telnetd.c
1034
if ((c = select(nfd, &ibits, &obits, &xbits,
crypto/heimdal/appl/telnet/telnetd/telnetd.c
1036
if (c == -1) {
crypto/heimdal/appl/telnet/telnetd/telnetd.c
1194
c = *ptyip++ & 0377, pcc--;
crypto/heimdal/appl/telnet/telnetd/telnetd.c
1195
if (c == IAC)
crypto/heimdal/appl/telnet/telnetd/telnetd.c
1196
*nfrontp++ = c;
crypto/heimdal/appl/telnet/telnetd/telnetd.c
1197
*nfrontp++ = c;
crypto/heimdal/appl/telnet/telnetd/telnetd.c
1198
if ((c == '\r') && (my_state_is_wont(TELOPT_BINARY))) {
crypto/heimdal/appl/telnet/telnetd/telnetd.c
271
char *c;
crypto/heimdal/appl/telnet/telnetd/telnetd.c
279
c = strchr(optarg, '-');
crypto/heimdal/appl/telnet/telnetd/telnetd.c
280
if (c) {
crypto/heimdal/appl/telnet/telnetd/telnetd.c
281
*c++ = '\0';
crypto/heimdal/appl/telnet/telnetd/telnetd.c
282
highpty = atoi(c);
crypto/heimdal/appl/telnet/telnetd/telnetd.c
997
int c;
crypto/heimdal/kadmin/rpc.c
342
krb5_data c;
crypto/heimdal/kadmin/rpc.c
344
c.data = rk_UNCONST(str);
crypto/heimdal/kadmin/rpc.c
345
c.length = strlen(str) + 1;
crypto/heimdal/kadmin/rpc.c
347
krb5_data_zero(&c);
crypto/heimdal/kadmin/rpc.c
349
return store_data_xdr(sp, c);
crypto/heimdal/kadmin/rpc.c
355
krb5_data c;
crypto/heimdal/kadmin/rpc.c
357
CHECK(ret_data_xdr(sp, &c));
crypto/heimdal/kadmin/rpc.c
358
if (c.length) {
crypto/heimdal/kadmin/rpc.c
359
*str = malloc(c.length + 1);
crypto/heimdal/kadmin/rpc.c
361
memcpy(*str, c.data, c.length);
crypto/heimdal/kadmin/rpc.c
362
(*str)[c.length] = '\0';
crypto/heimdal/kadmin/rpc.c
364
krb5_data_free(&c);
crypto/heimdal/kadmin/rpc.c
427
krb5_data c;
crypto/heimdal/kadmin/rpc.c
428
c.length = tp->tl_data_length;
crypto/heimdal/kadmin/rpc.c
429
c.data = tp->tl_data_contents;
crypto/heimdal/kadmin/rpc.c
433
CHECK(store_data_xdr(sp, c));
crypto/heimdal/kadmin/rpc.c
500
krb5_data c;
crypto/heimdal/kadmin/rpc.c
508
CHECK(ret_data_xdr(sp, &c));
crypto/heimdal/kadmin/rpc.c
509
(*tp)->tl_data_length = c.length;
crypto/heimdal/kadmin/rpc.c
510
(*tp)->tl_data_contents = c.data;
crypto/heimdal/kadmin/util.c
614
hex2n (char c)
crypto/heimdal/kadmin/util.c
619
p = strchr (hexdigits, tolower((unsigned char)c));
crypto/heimdal/kcm/cache.c
423
kcm_release_ccache(krb5_context context, kcm_ccache c)
crypto/heimdal/kcm/cache.c
427
KCM_ASSERT_VALID(c);
crypto/heimdal/kcm/cache.c
429
HEIMDAL_MUTEX_lock(&c->mutex);
crypto/heimdal/kcm/cache.c
430
if (c->refcnt == 1) {
crypto/heimdal/kcm/cache.c
431
kcm_free_ccache_data_internal(context, c);
crypto/heimdal/kcm/cache.c
432
free(c);
crypto/heimdal/kcm/cache.c
434
c->refcnt--;
crypto/heimdal/kcm/cache.c
435
HEIMDAL_MUTEX_unlock(&c->mutex);
crypto/heimdal/kcm/cache.c
520
struct kcm_creds *c;
crypto/heimdal/kcm/cache.c
522
for (c = ccache->creds; c != NULL; c = c->next)
crypto/heimdal/kcm/cache.c
523
if (memcmp(c->uuid, uuid, sizeof(c->uuid)) == 0)
crypto/heimdal/kcm/cache.c
524
return c;
crypto/heimdal/kcm/cache.c
538
struct kcm_creds **c;
crypto/heimdal/kcm/cache.c
541
for (c = &ccache->creds; *c != NULL; c = &(*c)->next)
crypto/heimdal/kcm/cache.c
544
*c = (struct kcm_creds *)calloc(1, sizeof(**c));
crypto/heimdal/kcm/cache.c
545
if (*c == NULL)
crypto/heimdal/kcm/cache.c
548
RAND_bytes((*c)->uuid, sizeof((*c)->uuid));
crypto/heimdal/kcm/cache.c
550
*credp = &(*c)->cred;
crypto/heimdal/kcm/cache.c
555
free(*c);
crypto/heimdal/kcm/cache.c
556
*c = NULL;
crypto/heimdal/kcm/cache.c
573
struct kcm_creds **c;
crypto/heimdal/kcm/cache.c
577
for (c = &ccache->creds; *c != NULL; c = &(*c)->next) {
crypto/heimdal/kcm/cache.c
578
if (krb5_compare_creds(context, whichfields, mcreds, &(*c)->cred)) {
crypto/heimdal/kcm/cache.c
579
struct kcm_creds *cred = *c;
crypto/heimdal/kcm/cache.c
581
*c = cred->next;
crypto/heimdal/kcm/cache.c
585
if (*c == NULL)
crypto/heimdal/kcm/cache.c
618
struct kcm_creds *c;
crypto/heimdal/kcm/cache.c
626
for (c = ccache->creds; c != NULL; c = c->next) {
crypto/heimdal/kcm/cache.c
627
match = krb5_compare_creds(context, whichfields, mcreds, &c->cred);
crypto/heimdal/kcm/cache.c
634
*creds = &c->cred;
crypto/heimdal/kcm/glue.c
105
kcm_ccache c = KCMCACHE(id);
crypto/heimdal/kcm/glue.c
107
KCM_ASSERT_VALID(c);
crypto/heimdal/kcm/glue.c
120
kcm_ccache c = KCMCACHE(id);
crypto/heimdal/kcm/glue.c
123
KCM_ASSERT_VALID(c);
crypto/heimdal/kcm/glue.c
125
ret = kcm_ccache_store_cred_internal(context, c, creds, 1, &tmp);
crypto/heimdal/kcm/glue.c
138
kcm_ccache c = KCMCACHE(id);
crypto/heimdal/kcm/glue.c
141
KCM_ASSERT_VALID(c);
crypto/heimdal/kcm/glue.c
143
ret = kcm_ccache_retrieve_cred_internal(context, c, which,
crypto/heimdal/kcm/glue.c
161
kcm_ccache c = KCMCACHE(id);
crypto/heimdal/kcm/glue.c
163
KCM_ASSERT_VALID(c);
crypto/heimdal/kcm/glue.c
165
ret = krb5_copy_principal(context, c->client,
crypto/heimdal/kcm/glue.c
176
kcm_ccache c = KCMCACHE(id);
crypto/heimdal/kcm/glue.c
178
KCM_ASSERT_VALID(c);
crypto/heimdal/kcm/glue.c
180
*cursor = c->creds;
crypto/heimdal/kcm/glue.c
192
kcm_ccache c = KCMCACHE(id);
crypto/heimdal/kcm/glue.c
194
KCM_ASSERT_VALID(c);
crypto/heimdal/kcm/glue.c
225
kcm_ccache c = KCMCACHE(id);
crypto/heimdal/kcm/glue.c
227
KCM_ASSERT_VALID(c);
crypto/heimdal/kcm/glue.c
229
ret = kcm_ccache_remove_cred_internal(context, c, which, cred);
crypto/heimdal/kcm/glue.c
271
kcm_ccache c,
crypto/heimdal/kcm/glue.c
275
id->data.length = sizeof(*c);
crypto/heimdal/kcm/glue.c
276
id->data.data = c;
crypto/heimdal/kcm/glue.c
72
kcm_ccache c = KCMCACHE(id);
crypto/heimdal/kcm/glue.c
74
KCM_ASSERT_VALID(c);
crypto/heimdal/kcm/glue.c
76
ret = kcm_zero_ccache_data_internal(context, c);
crypto/heimdal/kcm/glue.c
81
&c->client);
crypto/heimdal/kcm/glue.c
90
kcm_ccache c = KCMCACHE(id);
crypto/heimdal/kcm/glue.c
92
KCM_ASSERT_VALID(c);
crypto/heimdal/kcm/protocol.c
1069
struct kcm_default_cache *c;
crypto/heimdal/kcm/protocol.c
1076
for (c = default_caches; c != NULL; c = c->next) {
crypto/heimdal/kcm/protocol.c
1077
if (kcm_is_same_session(client, c->uid, c->session)) {
crypto/heimdal/kcm/protocol.c
1078
name = c->name;
crypto/heimdal/kcm/protocol.c
1100
struct kcm_default_cache **c;
crypto/heimdal/kcm/protocol.c
1102
for (c = &default_caches; *c != NULL; c = &(*c)->next) {
crypto/heimdal/kcm/protocol.c
1103
if (!kcm_is_same_session(client, (*c)->uid, (*c)->session))
crypto/heimdal/kcm/protocol.c
1105
if (strcmp((*c)->name, name) == 0) {
crypto/heimdal/kcm/protocol.c
1106
struct kcm_default_cache *h = *c;
crypto/heimdal/kcm/protocol.c
1107
*c = (*c)->next;
crypto/heimdal/kcm/protocol.c
1122
struct kcm_default_cache *c;
crypto/heimdal/kcm/protocol.c
1132
for (c = default_caches; c != NULL; c = c->next) {
crypto/heimdal/kcm/protocol.c
1133
if (kcm_is_same_session(client, c->uid, c->session))
crypto/heimdal/kcm/protocol.c
1136
if (c == NULL) {
crypto/heimdal/kcm/protocol.c
1137
c = malloc(sizeof(*c));
crypto/heimdal/kcm/protocol.c
1138
if (c == NULL)
crypto/heimdal/kcm/protocol.c
1140
c->session = client->session;
crypto/heimdal/kcm/protocol.c
1141
c->uid = client->uid;
crypto/heimdal/kcm/protocol.c
1142
c->name = strdup(name);
crypto/heimdal/kcm/protocol.c
1144
c->next = default_caches;
crypto/heimdal/kcm/protocol.c
1145
default_caches = c;
crypto/heimdal/kcm/protocol.c
1147
free(c->name);
crypto/heimdal/kcm/protocol.c
1148
c->name = strdup(name);
crypto/heimdal/kcm/protocol.c
1257
struct kcm_ntlm_cred *c;
crypto/heimdal/kcm/protocol.c
1259
for (c = ntlm_head; c != NULL; c = c->next)
crypto/heimdal/kcm/protocol.c
1260
if ((user[0] == '\0' || strcmp(user, c->user) == 0) &&
crypto/heimdal/kcm/protocol.c
1261
(domain == NULL || strcmp(domain, c->domain) == 0) &&
crypto/heimdal/kcm/protocol.c
1262
kcm_is_same_session(client, c->uid, c->session))
crypto/heimdal/kcm/protocol.c
1263
return c;
crypto/heimdal/kcm/protocol.c
1275
struct kcm_ntlm_cred *cred, *c;
crypto/heimdal/kcm/protocol.c
1297
c = find_ntlm_cred(cred->user, cred->domain, client);
crypto/heimdal/kcm/protocol.c
1298
if (c) {
crypto/heimdal/kcm/protocol.c
1299
krb5_data hash = c->nthash;
crypto/heimdal/kcm/protocol.c
1300
c->nthash = cred->nthash;
crypto/heimdal/kcm/protocol.c
1303
cred = c;
crypto/heimdal/kcm/protocol.c
1338
struct kcm_ntlm_cred *c;
crypto/heimdal/kcm/protocol.c
1355
c = find_ntlm_cred(user, domain, client);
crypto/heimdal/kcm/protocol.c
1356
if (c == NULL)
crypto/heimdal/kcm/protocol.c
1382
struct kcm_ntlm_cred **cp, *c;
crypto/heimdal/kcm/protocol.c
1398
c = *cp;
crypto/heimdal/kcm/protocol.c
1399
*cp = c->next;
crypto/heimdal/kcm/protocol.c
1401
free_cred(c);
crypto/heimdal/kcm/protocol.c
1438
struct kcm_ntlm_cred *c;
crypto/heimdal/kcm/protocol.c
1465
c = find_ntlm_cred(user, domain, client);
crypto/heimdal/kcm/protocol.c
1466
if (c == NULL) {
crypto/heimdal/kcm/protocol.c
1488
type3.username = c->user;
crypto/heimdal/kcm/protocol.c
1510
c->nthash.data,
crypto/heimdal/kcm/protocol.c
1514
ret = heim_ntlm_calculate_ntlm1(c->nthash.data,
crypto/heimdal/kcm/protocol.c
1515
c->nthash.length,
crypto/heimdal/kcm/protocol.c
1523
ret = heim_ntlm_build_ntlm1_master(c->nthash.data,
crypto/heimdal/kcm/protocol.c
1524
c->nthash.length,
crypto/heimdal/kcm/protocol.c
1675
struct kcm_ntlm_cred *c;
crypto/heimdal/kcm/protocol.c
1678
for (c = ntlm_head; c != NULL; c = c->next) {
crypto/heimdal/kcm/protocol.c
1679
if (!kcm_is_same_session(client, c->uid, c->session))
crypto/heimdal/kcm/protocol.c
1685
ret = krb5_store_stringz(response, c->user);
crypto/heimdal/kcm/protocol.c
1688
ret = krb5_store_stringz(response, c->domain);
crypto/heimdal/kcm/protocol.c
493
struct kcm_creds *c;
crypto/heimdal/kcm/protocol.c
516
c = kcm_ccache_find_cred_uuid(context, ccache, uuid);
crypto/heimdal/kcm/protocol.c
517
if (c == NULL) {
crypto/heimdal/kcm/protocol.c
523
ret = krb5_store_creds(response, &c->cred);
crypto/heimdal/kdc/default_config.c
103
c->enable_kx509 =
crypto/heimdal/kdc/default_config.c
108
if (c->enable_kx509) {
crypto/heimdal/kdc/default_config.c
109
c->kx509_template =
crypto/heimdal/kdc/default_config.c
112
c->kx509_ca =
crypto/heimdal/kdc/default_config.c
115
if (c->kx509_ca == NULL || c->kx509_template == NULL) {
crypto/heimdal/kdc/default_config.c
116
kdc_log(context, c, 0,
crypto/heimdal/kdc/default_config.c
118
c->enable_kx509 = FALSE;
crypto/heimdal/kdc/default_config.c
123
c->tgt_use_strongest_session_key =
crypto/heimdal/kdc/default_config.c
125
c->tgt_use_strongest_session_key,
crypto/heimdal/kdc/default_config.c
128
c->preauth_use_strongest_session_key =
crypto/heimdal/kdc/default_config.c
130
c->preauth_use_strongest_session_key,
crypto/heimdal/kdc/default_config.c
133
c->svc_use_strongest_session_key =
crypto/heimdal/kdc/default_config.c
135
c->svc_use_strongest_session_key,
crypto/heimdal/kdc/default_config.c
138
c->use_strongest_server_key =
crypto/heimdal/kdc/default_config.c
140
c->use_strongest_server_key,
crypto/heimdal/kdc/default_config.c
144
c->check_ticket_addresses =
crypto/heimdal/kdc/default_config.c
146
c->check_ticket_addresses,
crypto/heimdal/kdc/default_config.c
149
c->allow_null_ticket_addresses =
crypto/heimdal/kdc/default_config.c
151
c->allow_null_ticket_addresses,
crypto/heimdal/kdc/default_config.c
155
c->allow_anonymous =
crypto/heimdal/kdc/default_config.c
157
c->allow_anonymous,
crypto/heimdal/kdc/default_config.c
161
c->max_datagram_reply_length =
crypto/heimdal/kdc/default_config.c
176
c->trpolicy = TRPOLICY_ALWAYS_CHECK;
crypto/heimdal/kdc/default_config.c
178
c->trpolicy = TRPOLICY_ALLOW_PER_PRINCIPAL;
crypto/heimdal/kdc/default_config.c
180
c->trpolicy = TRPOLICY_ALWAYS_HONOUR_REQUEST;
crypto/heimdal/kdc/default_config.c
184
kdc_log(context, c, 0,
crypto/heimdal/kdc/default_config.c
191
c->encode_as_rep_as_tgs_rep =
crypto/heimdal/kdc/default_config.c
193
c->encode_as_rep_as_tgs_rep,
crypto/heimdal/kdc/default_config.c
197
c->kdc_warn_pwexpire =
crypto/heimdal/kdc/default_config.c
199
c->kdc_warn_pwexpire,
crypto/heimdal/kdc/default_config.c
203
c->enable_pkinit =
crypto/heimdal/kdc/default_config.c
206
c->enable_pkinit,
crypto/heimdal/kdc/default_config.c
212
c->pkinit_kdc_identity =
crypto/heimdal/kdc/default_config.c
215
c->pkinit_kdc_anchors =
crypto/heimdal/kdc/default_config.c
218
c->pkinit_kdc_cert_pool =
crypto/heimdal/kdc/default_config.c
221
c->pkinit_kdc_revoke =
crypto/heimdal/kdc/default_config.c
224
c->pkinit_kdc_ocsp_file =
crypto/heimdal/kdc/default_config.c
227
c->pkinit_kdc_friendly_name =
crypto/heimdal/kdc/default_config.c
230
c->pkinit_princ_in_cert =
crypto/heimdal/kdc/default_config.c
232
c->pkinit_princ_in_cert,
crypto/heimdal/kdc/default_config.c
236
c->pkinit_require_binding =
crypto/heimdal/kdc/default_config.c
238
c->pkinit_require_binding,
crypto/heimdal/kdc/default_config.c
242
c->pkinit_dh_min_bits =
crypto/heimdal/kdc/default_config.c
247
*config = c;
crypto/heimdal/kdc/default_config.c
43
krb5_kdc_configuration *c;
crypto/heimdal/kdc/default_config.c
45
c = calloc(1, sizeof(*c));
crypto/heimdal/kdc/default_config.c
46
if (c == NULL) {
crypto/heimdal/kdc/default_config.c
51
c->require_preauth = TRUE;
crypto/heimdal/kdc/default_config.c
52
c->kdc_warn_pwexpire = 0;
crypto/heimdal/kdc/default_config.c
53
c->encode_as_rep_as_tgs_rep = FALSE;
crypto/heimdal/kdc/default_config.c
54
c->tgt_use_strongest_session_key = FALSE;
crypto/heimdal/kdc/default_config.c
55
c->preauth_use_strongest_session_key = FALSE;
crypto/heimdal/kdc/default_config.c
56
c->svc_use_strongest_session_key = FALSE;
crypto/heimdal/kdc/default_config.c
57
c->use_strongest_server_key = TRUE;
crypto/heimdal/kdc/default_config.c
58
c->check_ticket_addresses = TRUE;
crypto/heimdal/kdc/default_config.c
59
c->allow_null_ticket_addresses = TRUE;
crypto/heimdal/kdc/default_config.c
60
c->allow_anonymous = FALSE;
crypto/heimdal/kdc/default_config.c
61
c->trpolicy = TRPOLICY_ALWAYS_CHECK;
crypto/heimdal/kdc/default_config.c
62
c->enable_pkinit = FALSE;
crypto/heimdal/kdc/default_config.c
63
c->pkinit_princ_in_cert = TRUE;
crypto/heimdal/kdc/default_config.c
64
c->pkinit_require_binding = TRUE;
crypto/heimdal/kdc/default_config.c
65
c->db = NULL;
crypto/heimdal/kdc/default_config.c
66
c->num_db = 0;
crypto/heimdal/kdc/default_config.c
67
c->logf = NULL;
crypto/heimdal/kdc/default_config.c
69
c->require_preauth =
crypto/heimdal/kdc/default_config.c
71
c->require_preauth,
crypto/heimdal/kdc/default_config.c
74
c->enable_digest =
crypto/heimdal/kdc/default_config.c
87
c->digests_allowed = parse_flags(digests,_kdc_digestunits, 0);
crypto/heimdal/kdc/default_config.c
88
if (c->digests_allowed == -1) {
crypto/heimdal/kdc/default_config.c
89
kdc_log(context, c, 0,
crypto/heimdal/kdc/default_config.c
92
c->enable_digest = 0;
crypto/heimdal/kdc/default_config.c
93
} else if (c->digests_allowed == 0) {
crypto/heimdal/kdc/default_config.c
94
kdc_log(context, c, 0,
crypto/heimdal/kdc/default_config.c
97
c->enable_digest = 0;
crypto/heimdal/kdc/set_dbinfo.c
101
for (i = 0; i < c->num_db; i++)
crypto/heimdal/kdc/set_dbinfo.c
102
if (c->db[i] && c->db[i]->hdb_destroy)
crypto/heimdal/kdc/set_dbinfo.c
103
(*c->db[i]->hdb_destroy)(context, c->db[i]);
crypto/heimdal/kdc/set_dbinfo.c
104
c->num_db = 0;
crypto/heimdal/kdc/set_dbinfo.c
105
free(c->db);
crypto/heimdal/kdc/set_dbinfo.c
106
c->db = NULL;
crypto/heimdal/kdc/set_dbinfo.c
39
add_db(krb5_context context, struct krb5_kdc_configuration *c,
crypto/heimdal/kdc/set_dbinfo.c
45
ptr = realloc(c->db, (c->num_db + 1) * sizeof(*c->db));
crypto/heimdal/kdc/set_dbinfo.c
50
c->db = ptr;
crypto/heimdal/kdc/set_dbinfo.c
52
ret = hdb_create(context, &c->db[c->num_db], conf);
crypto/heimdal/kdc/set_dbinfo.c
56
c->num_db++;
crypto/heimdal/kdc/set_dbinfo.c
59
ret = hdb_set_master_keyfile(context, c->db[c->num_db - 1], master_key);
crypto/heimdal/kdc/set_dbinfo.c
68
krb5_kdc_set_dbinfo(krb5_context context, struct krb5_kdc_configuration *c)
crypto/heimdal/kdc/set_dbinfo.c
82
ret = add_db(context, c,
crypto/heimdal/kdc/set_dbinfo.c
88
kdc_log(context, c, 0, "label: %s",
crypto/heimdal/kdc/set_dbinfo.c
90
kdc_log(context, c, 0, "\tdbname: %s",
crypto/heimdal/kdc/set_dbinfo.c
92
kdc_log(context, c, 0, "\tmkey_file: %s",
crypto/heimdal/kdc/set_dbinfo.c
94
kdc_log(context, c, 0, "\tacl_file: %s",
crypto/heimdal/kuser/kgetcred.c
158
krb5_creds c, mc;
crypto/heimdal/kuser/kgetcred.c
170
ret = krb5_cc_retrieve_cred(context, id, 0, &mc, &c);
crypto/heimdal/kuser/kgetcred.c
174
ret = decode_Ticket(c.ticket.data, c.ticket.length, &ticket, NULL);
crypto/heimdal/kuser/kgetcred.c
179
krb5_free_cred_contents(context, &c);
crypto/heimdal/lib/asn1/asn1_gen.c
110
line, (unsigned long)offset, c, ty, ta, l,
crypto/heimdal/lib/asn1/asn1_gen.c
115
c,
crypto/heimdal/lib/asn1/asn1_gen.c
74
int ret, l, c, ty, ta;
crypto/heimdal/lib/asn1/asn1_gen.c
98
c = der_get_class_num(class);
crypto/heimdal/lib/asn1/asn1_gen.c
99
if (c == -1) errx(1, "no valid class on line %lu", line);
crypto/heimdal/lib/asn1/asn1parse.c
2824
struct constraint_spec *c = ecalloc(1, sizeof(*c));
crypto/heimdal/lib/asn1/asn1parse.c
2825
c->ctype = ct;
crypto/heimdal/lib/asn1/asn1parse.c
2826
return c;
crypto/heimdal/lib/asn1/asn1parse.y
1001
struct constraint_spec *c = ecalloc(1, sizeof(*c));
crypto/heimdal/lib/asn1/asn1parse.y
1002
c->ctype = ct;
crypto/heimdal/lib/asn1/asn1parse.y
1003
return c;
crypto/heimdal/lib/asn1/check-gen.c
648
Certificate c, c2;
crypto/heimdal/lib/asn1/check-gen.c
656
certs[i].len, &c, &size);
crypto/heimdal/lib/asn1/check-gen.c
660
ret = copy_Certificate(&c, &c2);
crypto/heimdal/lib/asn1/check-gen.c
661
free_Certificate(&c);
crypto/heimdal/lib/asn1/der_format.c
136
unsigned int *c;
crypto/heimdal/lib/asn1/der_format.c
151
c = realloc(data->components,
crypto/heimdal/lib/asn1/der_format.c
153
if (c == NULL) {
crypto/heimdal/lib/asn1/der_format.c
158
data->components = c;
crypto/heimdal/lib/asn1/gen_encode.c
391
int c;
crypto/heimdal/lib/asn1/gen_encode.c
394
c = encode_type (name, t->subtype, tname);
crypto/heimdal/lib/asn1/gen_encode.c
399
c ? "CONS" : "PRIM",
crypto/heimdal/lib/asn1/lex.c
118
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
crypto/heimdal/lib/asn1/lex.c
1541
int c, start_lineno = lineno;
crypto/heimdal/lib/asn1/lex.c
1543
while((c = input()) != EOF) {
crypto/heimdal/lib/asn1/lex.c
1544
if(f && c == '-')
crypto/heimdal/lib/asn1/lex.c
1546
if(c == '-') {
crypto/heimdal/lib/asn1/lex.c
1550
if(c == '\n') {
crypto/heimdal/lib/asn1/lex.c
1556
if(c == EOF)
crypto/heimdal/lib/asn1/lex.c
1564
int c, start_lineno = lineno;
crypto/heimdal/lib/asn1/lex.c
1568
while((c = input()) != EOF) {
crypto/heimdal/lib/asn1/lex.c
1569
if(c == '/') {
crypto/heimdal/lib/asn1/lex.c
1579
if(seen_star && c == '/') {
crypto/heimdal/lib/asn1/lex.c
1585
if(c == '*') {
crypto/heimdal/lib/asn1/lex.c
1595
if(c == '\n') {
crypto/heimdal/lib/asn1/lex.c
1600
if(c == EOF)
crypto/heimdal/lib/asn1/lex.c
1609
int c;
crypto/heimdal/lib/asn1/lex.c
1615
while((c = input()) != EOF) {
crypto/heimdal/lib/asn1/lex.c
1616
if(isspace(c) && skip_ws) {
crypto/heimdal/lib/asn1/lex.c
1617
if(c == '\n')
crypto/heimdal/lib/asn1/lex.c
1623
if(c == '"') {
crypto/heimdal/lib/asn1/lex.c
1632
unput(c);
crypto/heimdal/lib/asn1/lex.c
1635
if(c == '\n') {
crypto/heimdal/lib/asn1/lex.c
1642
*p++ = c;
crypto/heimdal/lib/asn1/lex.c
1644
if(c == EOF)
crypto/heimdal/lib/asn1/lex.c
184
#define unput(c) yyunput( c, (yytext_ptr) )
crypto/heimdal/lib/asn1/lex.c
2032
static void yyunput (int c, register char * yy_bp )
crypto/heimdal/lib/asn1/lex.c
2062
*--yy_cp = (char) c;
crypto/heimdal/lib/asn1/lex.c
2077
int c;
crypto/heimdal/lib/asn1/lex.c
2135
c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
crypto/heimdal/lib/asn1/lex.c
2139
return c;
crypto/heimdal/lib/asn1/lex.c
909
static void yyunput (int c,char *buf_ptr );
crypto/heimdal/lib/asn1/lex.c
949
int c = '*'; \
crypto/heimdal/lib/asn1/lex.c
952
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
crypto/heimdal/lib/asn1/lex.c
953
buf[n] = (char) c; \
crypto/heimdal/lib/asn1/lex.c
954
if ( c == '\n' ) \
crypto/heimdal/lib/asn1/lex.c
955
buf[n++] = (char) c; \
crypto/heimdal/lib/asn1/lex.c
956
if ( c == EOF && ferror( yyin ) ) \
crypto/heimdal/lib/asn1/template.c
621
unsigned char c = 0;
crypto/heimdal/lib/asn1/template.c
634
if (rfc1510 || bitset || c) {
crypto/heimdal/lib/asn1/template.c
637
*p-- = c; len--;
crypto/heimdal/lib/asn1/template.c
639
c = 0;
crypto/heimdal/lib/asn1/template.c
642
bmember_put_bit(&c, data, bmember->offset, size, &bitset);
crypto/heimdal/lib/asn1/template.c
648
*p-- = c; len--;
crypto/heimdal/lib/com_err/lex.c
118
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
crypto/heimdal/lib/com_err/lex.c
1212
int c;
crypto/heimdal/lib/com_err/lex.c
1270
c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
crypto/heimdal/lib/com_err/lex.c
1274
return c;
crypto/heimdal/lib/com_err/lex.c
184
#define unput(c) yyunput( c, (yytext_ptr) )
crypto/heimdal/lib/com_err/lex.c
1852
int c;
crypto/heimdal/lib/com_err/lex.c
1854
while(i < sizeof(x) - 1 && (c = input()) != EOF){
crypto/heimdal/lib/com_err/lex.c
1856
x[i++] = c;
crypto/heimdal/lib/com_err/lex.c
1860
if(c == '\n'){
crypto/heimdal/lib/com_err/lex.c
1865
if(c == '\\'){
crypto/heimdal/lib/com_err/lex.c
1869
if(c == '\"')
crypto/heimdal/lib/com_err/lex.c
1871
x[i++] = c;
crypto/heimdal/lib/com_err/lex.c
626
int c = '*'; \
crypto/heimdal/lib/com_err/lex.c
629
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
crypto/heimdal/lib/com_err/lex.c
630
buf[n] = (char) c; \
crypto/heimdal/lib/com_err/lex.c
631
if ( c == '\n' ) \
crypto/heimdal/lib/com_err/lex.c
632
buf[n++] = (char) c; \
crypto/heimdal/lib/com_err/lex.c
633
if ( c == EOF && ferror( yyin ) ) \
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
297
krb5_kt_cursor c;
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
299
kret = krb5_kt_start_seq_get (context, handle->keytab, &c);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
302
if (krb5_kt_next_entry(context, handle->keytab, &tmp, &c) == 0) {
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
306
krb5_kt_end_seq_get (context, handle->keytab, &c);
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
184
struct gsskrb5_send_to_kdc c;
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
186
if (value->length != sizeof(c)) {
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
190
memcpy(&c, value->value, sizeof(c));
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
192
(krb5_send_to_kdc_func)c.func,
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
193
c.ptr);
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
245
struct gsskrb5_krb5_plugin c;
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
247
if (value->length != sizeof(c)) {
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
251
memcpy(&c, value->value, sizeof(c));
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
252
krb5_plugin_register(context, c.type, c.name, c.symbol);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
404
gss_krb5_free_lucid_sec_context(OM_uint32 *minor_status, void *c)
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
406
gss_krb5_lucid_context_v1_t *ctx = c;
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
486
gsskrb5_set_send_to_kdc(struct gsskrb5_send_to_kdc *c)
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
494
if (c) {
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
495
buffer.value = c;
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
496
buffer.length = sizeof(*c);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
922
gsskrb5_plugin_register(struct gsskrb5_krb5_plugin *c)
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
930
buffer.value = c;
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
931
buffer.length = sizeof(*c);
crypto/heimdal/lib/gssapi/ntlm/creds.c
57
ntlm_cred c = (ntlm_cred)cred_handle;
crypto/heimdal/lib/gssapi/ntlm/creds.c
59
n->user = strdup(c->username);
crypto/heimdal/lib/gssapi/ntlm/creds.c
60
n->domain = strdup(c->domain);
crypto/heimdal/lib/gssapi/ntlm/crypto.c
151
HMAC_CTX *c;
crypto/heimdal/lib/gssapi/ntlm/crypto.c
153
c = HMAC_CTX_new();
crypto/heimdal/lib/gssapi/ntlm/crypto.c
154
if (c == NULL)
crypto/heimdal/lib/gssapi/ntlm/crypto.c
156
HMAC_Init_ex(c, signkey, 16, EVP_md5(), NULL);
crypto/heimdal/lib/gssapi/ntlm/crypto.c
159
HMAC_Update(c, hmac, 4);
crypto/heimdal/lib/gssapi/ntlm/crypto.c
160
HMAC_Update(c, in->value, in->length);
crypto/heimdal/lib/gssapi/ntlm/crypto.c
161
HMAC_Final(c, hmac, &hmaclen);
crypto/heimdal/lib/gssapi/ntlm/crypto.c
162
HMAC_CTX_free(c);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
160
struct ntlmkrb5 *c;
crypto/heimdal/lib/gssapi/ntlm/kdc.c
163
c = calloc(1, sizeof(*c));
crypto/heimdal/lib/gssapi/ntlm/kdc.c
164
if (c == NULL) {
crypto/heimdal/lib/gssapi/ntlm/kdc.c
169
ret = krb5_init_context(&c->context);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
171
kdc_destroy(&junk, c);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
176
ret = get_ccache(c->context, &c->destroy, &c->id);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
178
kdc_destroy(&junk, c);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
183
ret = krb5_ntlm_alloc(c->context, &c->ntlm);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
185
kdc_destroy(&junk, c);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
190
*ctx = c;
crypto/heimdal/lib/gssapi/ntlm/kdc.c
198
struct ntlmkrb5 *c = ctx;
crypto/heimdal/lib/gssapi/ntlm/kdc.c
202
ret = krb5_digest_probe(c->context, rk_UNCONST(realm), c->id, &flags);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
219
struct ntlmkrb5 *c = ctx;
crypto/heimdal/lib/gssapi/ntlm/kdc.c
220
krb5_data_free(&c->opaque);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
221
krb5_data_free(&c->sessionkey);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
222
if (c->ntlm)
crypto/heimdal/lib/gssapi/ntlm/kdc.c
223
krb5_ntlm_free(c->context, c->ntlm);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
224
if (c->id) {
crypto/heimdal/lib/gssapi/ntlm/kdc.c
225
if (c->destroy)
crypto/heimdal/lib/gssapi/ntlm/kdc.c
226
krb5_cc_destroy(c->context, c->id);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
228
krb5_cc_close(c->context, c->id);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
230
if (c->context)
crypto/heimdal/lib/gssapi/ntlm/kdc.c
231
krb5_free_context(c->context);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
232
memset(c, 0, sizeof(*c));
crypto/heimdal/lib/gssapi/ntlm/kdc.c
233
free(c);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
251
struct ntlmkrb5 *c = ctx;
crypto/heimdal/lib/gssapi/ntlm/kdc.c
263
ret = krb5_ntlm_init_request(c->context,
crypto/heimdal/lib/gssapi/ntlm/kdc.c
264
c->ntlm,
crypto/heimdal/lib/gssapi/ntlm/kdc.c
266
c->id,
crypto/heimdal/lib/gssapi/ntlm/kdc.c
279
ret = krb5_ntlm_init_get_opaque(c->context, c->ntlm, &c->opaque);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
289
ret = krb5_ntlm_init_get_flags(c->context, c->ntlm, &type2.flags);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
296
ret = krb5_ntlm_init_get_challange(c->context, c->ntlm, &challange);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
309
ret = krb5_ntlm_init_get_targetname(c->context, c->ntlm,
crypto/heimdal/lib/gssapi/ntlm/kdc.c
316
ret = krb5_ntlm_init_get_targetinfo(c->context, c->ntlm, &ti);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
350
struct ntlmkrb5 *c = ctx;
crypto/heimdal/lib/gssapi/ntlm/kdc.c
356
ret = krb5_ntlm_req_set_flags(c->context, c->ntlm, type3->flags);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
358
ret = krb5_ntlm_req_set_username(c->context, c->ntlm, type3->username);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
360
ret = krb5_ntlm_req_set_targetname(c->context, c->ntlm,
crypto/heimdal/lib/gssapi/ntlm/kdc.c
363
ret = krb5_ntlm_req_set_lm(c->context, c->ntlm,
crypto/heimdal/lib/gssapi/ntlm/kdc.c
366
ret = krb5_ntlm_req_set_ntlm(c->context, c->ntlm,
crypto/heimdal/lib/gssapi/ntlm/kdc.c
369
ret = krb5_ntlm_req_set_opaque(c->context, c->ntlm, &c->opaque);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
373
ret = krb5_ntlm_req_set_session(c->context, c->ntlm,
crypto/heimdal/lib/gssapi/ntlm/kdc.c
382
ret = krb5_ntlm_request(c->context,
crypto/heimdal/lib/gssapi/ntlm/kdc.c
383
c->ntlm,
crypto/heimdal/lib/gssapi/ntlm/kdc.c
385
c->id);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
389
if (krb5_ntlm_rep_get_status(c->context, c->ntlm) != TRUE) {
crypto/heimdal/lib/gssapi/ntlm/kdc.c
395
ret = krb5_ntlm_rep_get_sessionkey(c->context,
crypto/heimdal/lib/gssapi/ntlm/kdc.c
396
c->ntlm,
crypto/heimdal/lib/gssapi/ntlm/kdc.c
397
&c->sessionkey);
crypto/heimdal/lib/gssapi/ntlm/kdc.c
401
sessionkey->data = c->sessionkey.data;
crypto/heimdal/lib/gssapi/ntlm/kdc.c
402
sessionkey->length = c->sessionkey.length;
crypto/heimdal/lib/hdb/hdb-ldap.c
792
need_quote(unsigned char c)
crypto/heimdal/lib/hdb/hdb-ldap.c
794
return (c & 0x80) ||
crypto/heimdal/lib/hdb/hdb-ldap.c
795
(c < 32) ||
crypto/heimdal/lib/hdb/hdb-ldap.c
796
(c == '(') ||
crypto/heimdal/lib/hdb/hdb-ldap.c
797
(c == ')') ||
crypto/heimdal/lib/hdb/hdb-ldap.c
798
(c == '*') ||
crypto/heimdal/lib/hdb/hdb-ldap.c
799
(c == '\\') ||
crypto/heimdal/lib/hdb/hdb-ldap.c
800
(c == 0x7f);
crypto/heimdal/lib/hdb/keytab.c
266
struct hdb_cursor *c;
crypto/heimdal/lib/hdb/keytab.c
296
cursor->data = c = malloc (sizeof(*c));
crypto/heimdal/lib/hdb/keytab.c
297
if(c == NULL){
crypto/heimdal/lib/hdb/keytab.c
304
c->db = db;
crypto/heimdal/lib/hdb/keytab.c
305
c->first = TRUE;
crypto/heimdal/lib/hdb/keytab.c
306
c->next = TRUE;
crypto/heimdal/lib/hdb/keytab.c
307
c->key_idx = 0;
crypto/heimdal/lib/hdb/keytab.c
309
cursor->data = c;
crypto/heimdal/lib/hdb/keytab.c
319
struct hdb_cursor *c = cursor->data;
crypto/heimdal/lib/hdb/keytab.c
324
if (c->first) {
crypto/heimdal/lib/hdb/keytab.c
325
c->first = FALSE;
crypto/heimdal/lib/hdb/keytab.c
326
ret = (c->db->hdb_firstkey)(context, c->db,
crypto/heimdal/lib/hdb/keytab.c
329
&c->hdb_entry);
crypto/heimdal/lib/hdb/keytab.c
335
if (c->hdb_entry.entry.keys.len == 0)
crypto/heimdal/lib/hdb/keytab.c
336
hdb_free_entry(context, &c->hdb_entry);
crypto/heimdal/lib/hdb/keytab.c
338
c->next = FALSE;
crypto/heimdal/lib/hdb/keytab.c
341
while (c->next) {
crypto/heimdal/lib/hdb/keytab.c
342
ret = (c->db->hdb_nextkey)(context, c->db,
crypto/heimdal/lib/hdb/keytab.c
345
&c->hdb_entry);
crypto/heimdal/lib/hdb/keytab.c
352
if (c->hdb_entry.entry.keys.len == 0)
crypto/heimdal/lib/hdb/keytab.c
353
hdb_free_entry(context, &c->hdb_entry);
crypto/heimdal/lib/hdb/keytab.c
355
c->next = FALSE;
crypto/heimdal/lib/hdb/keytab.c
364
c->hdb_entry.entry.principal,
crypto/heimdal/lib/hdb/keytab.c
369
entry->vno = c->hdb_entry.entry.kvno;
crypto/heimdal/lib/hdb/keytab.c
371
&c->hdb_entry.entry.keys.val[c->key_idx].key,
crypto/heimdal/lib/hdb/keytab.c
378
c->key_idx++;
crypto/heimdal/lib/hdb/keytab.c
385
if ((size_t)c->key_idx == c->hdb_entry.entry.keys.len) {
crypto/heimdal/lib/hdb/keytab.c
386
hdb_free_entry(context, &c->hdb_entry);
crypto/heimdal/lib/hdb/keytab.c
387
c->next = TRUE;
crypto/heimdal/lib/hdb/keytab.c
388
c->key_idx = 0;
crypto/heimdal/lib/hdb/keytab.c
400
struct hdb_cursor *c = cursor->data;
crypto/heimdal/lib/hdb/keytab.c
402
if (!c->next)
crypto/heimdal/lib/hdb/keytab.c
403
hdb_free_entry(context, &c->hdb_entry);
crypto/heimdal/lib/hdb/keytab.c
405
(c->db->hdb_close)(context, c->db);
crypto/heimdal/lib/hdb/keytab.c
406
(c->db->hdb_destroy)(context, c->db);
crypto/heimdal/lib/hdb/keytab.c
408
free(c);
crypto/heimdal/lib/hx509/ca.c
1002
memset(&c, 0, sizeof(c));
crypto/heimdal/lib/hx509/ca.c
1037
tbsc = &c.tbsCertificate;
crypto/heimdal/lib/hx509/ca.c
1405
&c.signatureAlgorithm,
crypto/heimdal/lib/hx509/ca.c
1406
&c.signatureValue);
crypto/heimdal/lib/hx509/ca.c
1411
ret = hx509_cert_init(context, &c, certificate);
crypto/heimdal/lib/hx509/ca.c
1415
free_Certificate(&c);
crypto/heimdal/lib/hx509/ca.c
1420
free_Certificate(&c);
crypto/heimdal/lib/hx509/ca.c
991
Certificate c;
crypto/heimdal/lib/hx509/cert.c
1003
hx509_cert c;
crypto/heimdal/lib/hx509/cert.c
1014
ret = hx509_certs_find(context, trust_anchors, &q, &c);
crypto/heimdal/lib/hx509/cert.c
1016
hx509_cert_free(c);
crypto/heimdal/lib/hx509/cert.c
1043
subject_null_p(const Certificate *c)
crypto/heimdal/lib/hx509/cert.c
1045
return c->tbsCertificate.subject.u.rdnSequence.len == 0;
crypto/heimdal/lib/hx509/cert.c
1400
hx509_cert_get_base_subject(hx509_context context, hx509_cert c,
crypto/heimdal/lib/hx509/cert.c
1403
if (c->basename)
crypto/heimdal/lib/hx509/cert.c
1404
return hx509_name_copy(context, c->basename, name);
crypto/heimdal/lib/hx509/cert.c
1405
if (is_proxy_cert(context, c->data, NULL) == 0) {
crypto/heimdal/lib/hx509/cert.c
1412
return _hx509_name_from_Name(&c->data->tbsCertificate.subject, name);
crypto/heimdal/lib/hx509/cert.c
1661
add_name_constraints(hx509_context context, const Certificate *c, int not_ca,
crypto/heimdal/lib/hx509/cert.c
1667
ret = find_extension_name_constraints(c, &tnc);
crypto/heimdal/lib/hx509/cert.c
1699
match_RDN(const RelativeDistinguishedName *c,
crypto/heimdal/lib/hx509/cert.c
1704
if (c->len != n->len)
crypto/heimdal/lib/hx509/cert.c
1710
if (der_heim_oid_cmp(&c->val[i].type, &n->val[i].type) != 0)
crypto/heimdal/lib/hx509/cert.c
1712
ret = _hx509_name_ds_cmp(&c->val[i].value, &n->val[i].value, &diff);
crypto/heimdal/lib/hx509/cert.c
1722
match_X501Name(const Name *c, const Name *n)
crypto/heimdal/lib/hx509/cert.c
1727
if (c->element != choice_Name_rdnSequence
crypto/heimdal/lib/hx509/cert.c
1730
if (c->u.rdnSequence.len > n->u.rdnSequence.len)
crypto/heimdal/lib/hx509/cert.c
1732
for (i = 0; i < c->u.rdnSequence.len; i++) {
crypto/heimdal/lib/hx509/cert.c
1733
ret = match_RDN(&c->u.rdnSequence.val[i], &n->u.rdnSequence.val[i]);
crypto/heimdal/lib/hx509/cert.c
1742
match_general_name(const GeneralName *c, const GeneralName *n, int *match)
crypto/heimdal/lib/hx509/cert.c
1748
assert(c->element == n->element);
crypto/heimdal/lib/hx509/cert.c
1750
switch(c->element) {
crypto/heimdal/lib/hx509/cert.c
1752
if (der_heim_oid_cmp(&c->u.otherName.type_id,
crypto/heimdal/lib/hx509/cert.c
1755
if (heim_any_cmp(&c->u.otherName.value,
crypto/heimdal/lib/hx509/cert.c
1763
s = memchr(c->u.rfc822Name.data, '@', c->u.rfc822Name.length);
crypto/heimdal/lib/hx509/cert.c
1765
if (der_printable_string_cmp(&c->u.rfc822Name, &n->u.rfc822Name) != 0)
crypto/heimdal/lib/hx509/cert.c
1771
len1 = c->u.rfc822Name.length;
crypto/heimdal/lib/hx509/cert.c
1776
if (memcmp(s + 1 + len2 - len1, c->u.rfc822Name.data, len1) != 0)
crypto/heimdal/lib/hx509/cert.c
1788
lenc = c->u.dNSName.length;
crypto/heimdal/lib/hx509/cert.c
1793
if (memcmp(&ptr[lenn - lenc], c->u.dNSName.data, lenc) != 0)
crypto/heimdal/lib/hx509/cert.c
1806
c_name.element = c->u.directoryName.element;
crypto/heimdal/lib/hx509/cert.c
1807
c_name.u.rdnSequence = c->u.directoryName.u.rdnSequence;
crypto/heimdal/lib/hx509/cert.c
1828
match_alt_name(const GeneralName *n, const Certificate *c,
crypto/heimdal/lib/hx509/cert.c
1837
ret = find_extension_subject_alt_name(c, &i, &sa);
crypto/heimdal/lib/hx509/cert.c
1857
match_tree(const GeneralSubtrees *t, const Certificate *c, int *match)
crypto/heimdal/lib/hx509/cert.c
1875
&& !subject_null_p(c))
crypto/heimdal/lib/hx509/cert.c
1882
c->tbsCertificate.subject.element;
crypto/heimdal/lib/hx509/cert.c
1884
c->tbsCertificate.subject.u.rdnSequence;
crypto/heimdal/lib/hx509/cert.c
1894
ret = match_alt_name(&t->val[i].base, c, &same, &alt_name);
crypto/heimdal/lib/hx509/cert.c
1904
const Certificate *c)
crypto/heimdal/lib/hx509/cert.c
1914
ret = match_tree(&gs, c, &match);
crypto/heimdal/lib/hx509/cert.c
1920
if (match == 0 && !subject_null_p(c)) {
crypto/heimdal/lib/hx509/cert.c
1930
ret = match_tree(&gs, c, &match);
crypto/heimdal/lib/hx509/cert.c
2037
Certificate *c;
crypto/heimdal/lib/hx509/cert.c
2040
c = _hx509_get_cert(path.val[i]);
crypto/heimdal/lib/hx509/cert.c
2052
ret = check_key_usage(context, c, 1 << 5,
crypto/heimdal/lib/hx509/cert.c
2064
ret = certificate_is_self_signed(context, c, &selfsigned);
crypto/heimdal/lib/hx509/cert.c
2075
if (is_proxy_cert(context, c, &info) == 0) {
crypto/heimdal/lib/hx509/cert.c
2092
if (find_extension(c, &asn1_oid_id_x509_ce_subjectAltName, &j)) {
crypto/heimdal/lib/hx509/cert.c
2101
if (find_extension(c, &asn1_oid_id_x509_ce_issuerAltName, &j)) {
crypto/heimdal/lib/hx509/cert.c
2117
ret = _hx509_name_cmp(&proxy_issuer, &c->tbsCertificate.subject, &diff);
crypto/heimdal/lib/hx509/cert.c
2132
ret = copy_Name(&c->tbsCertificate.subject, &proxy_issuer);
crypto/heimdal/lib/hx509/cert.c
2155
ret = _hx509_name_cmp(&proxy_issuer, &c->tbsCertificate.issuer, &diff);
crypto/heimdal/lib/hx509/cert.c
2187
&c->tbsCertificate.subject, &diff);
crypto/heimdal/lib/hx509/cert.c
220
hx509_cert_init(hx509_context context, const Certificate *c, hx509_cert *cert)
crypto/heimdal/lib/hx509/cert.c
2210
ret = check_basic_constraints(context, c, type,
crypto/heimdal/lib/hx509/cert.c
2221
t = _hx509_Time2time_t(&c->tbsCertificate.validity.notBefore);
crypto/heimdal/lib/hx509/cert.c
2227
t = _hx509_Time2time_t(&c->tbsCertificate.validity.notAfter);
crypto/heimdal/lib/hx509/cert.c
2247
Certificate *c;
crypto/heimdal/lib/hx509/cert.c
2251
c = _hx509_get_cert(path.val[i]);
crypto/heimdal/lib/hx509/cert.c
2253
ret = certificate_is_self_signed(context, c, &selfsigned);
crypto/heimdal/lib/hx509/cert.c
2259
ret = check_name_constraints(context, &nc, c);
crypto/heimdal/lib/hx509/cert.c
2264
ret = add_name_constraints(context, c, i == 0, &nc);
crypto/heimdal/lib/hx509/cert.c
2321
Certificate *c;
crypto/heimdal/lib/hx509/cert.c
2324
c = _hx509_get_cert(path.val[i]);
crypto/heimdal/lib/hx509/cert.c
2347
&c->signatureAlgorithm,
crypto/heimdal/lib/hx509/cert.c
2348
&c->tbsCertificate._save,
crypto/heimdal/lib/hx509/cert.c
2349
&c->signatureValue);
crypto/heimdal/lib/hx509/cert.c
2366
_hx509_Time2time_t(&c->tbsCertificate.validity.notBefore);
crypto/heimdal/lib/hx509/cert.c
2368
&c->signatureAlgorithm,
crypto/heimdal/lib/hx509/cert.c
241
ret = copy_Certificate(c, (*cert)->data);
crypto/heimdal/lib/hx509/cert.c
2947
Certificate *c = _hx509_get_cert(cert);
crypto/heimdal/lib/hx509/cert.c
2953
_hx509_cert_is_parent_cmp(q->subject, c, 0) != 0)
crypto/heimdal/lib/hx509/cert.c
2957
_hx509_Certificate_cmp(q->certificate, c) != 0)
crypto/heimdal/lib/hx509/cert.c
2961
&& der_heim_integer_cmp(&c->tbsCertificate.serialNumber, q->serial) != 0)
crypto/heimdal/lib/hx509/cert.c
2965
ret = _hx509_name_cmp(&c->tbsCertificate.issuer, q->issuer_name, &diff);
crypto/heimdal/lib/hx509/cert.c
2971
ret = _hx509_name_cmp(&c->tbsCertificate.subject, q->subject_name, &diff);
crypto/heimdal/lib/hx509/cert.c
2979
ret = _hx509_find_extension_subject_key_id(c, &si);
crypto/heimdal/lib/hx509/cert.c
3010
if (ku && check_key_usage(context, c, ku, TRUE))
crypto/heimdal/lib/hx509/cert.c
3049
os.data = c->tbsCertificate.subjectPublicKeyInfo.subjectPublicKey.data;
crypto/heimdal/lib/hx509/cert.c
3051
c->tbsCertificate.subjectPublicKeyInfo.subjectPublicKey.length / 8;
crypto/heimdal/lib/hx509/cert.c
3064
t = _hx509_Time2time_t(&c->tbsCertificate.validity.notBefore);
crypto/heimdal/lib/hx509/cert.c
3067
t = _hx509_Time2time_t(&c->tbsCertificate.validity.notAfter);
crypto/heimdal/lib/hx509/cert.c
3300
hx509_cert c,
crypto/heimdal/lib/hx509/cert.c
3311
cert = _hx509_get_cert(c);
crypto/heimdal/lib/hx509/cert.c
3357
hx509_cert_binary(hx509_context context, hx509_cert c, heim_octet_string *os)
crypto/heimdal/lib/hx509/cert.c
3366
_hx509_get_cert(c), &size, ret);
crypto/heimdal/lib/hx509/cert.c
3502
Certificate *c = _hx509_get_cert(cert);
crypto/heimdal/lib/hx509/cert.c
3506
os.data = c->tbsCertificate.subjectPublicKeyInfo.subjectPublicKey.data;
crypto/heimdal/lib/hx509/cert.c
3508
c->tbsCertificate.subjectPublicKeyInfo.subjectPublicKey.length / 8;
crypto/heimdal/lib/hx509/cert.c
400
hx509_verify_ctx c;
crypto/heimdal/lib/hx509/cert.c
402
c = calloc(1, sizeof(*c));
crypto/heimdal/lib/hx509/cert.c
403
if (c == NULL)
crypto/heimdal/lib/hx509/cert.c
406
c->max_depth = HX509_VERIFY_MAX_DEPTH;
crypto/heimdal/lib/hx509/cert.c
408
*ctx = c;
crypto/heimdal/lib/hx509/cert.c
589
const TBSCertificate *c = &cert->tbsCertificate;
crypto/heimdal/lib/hx509/cert.c
591
if (c->version == NULL || *c->version < 2 || c->extensions == NULL)
crypto/heimdal/lib/hx509/cert.c
594
for (;*idx < c->extensions->len; (*idx)++) {
crypto/heimdal/lib/hx509/cert.c
595
if (der_heim_oid_cmp(&c->extensions->val[*idx].extnID, oid) == 0)
crypto/heimdal/lib/hx509/cert.c
596
return &c->extensions->val[(*idx)++];
crypto/heimdal/lib/hx509/cms.c
268
Certificate c;
crypto/heimdal/lib/hx509/cms.c
271
memset(&c, 0, sizeof(c));
crypto/heimdal/lib/hx509/cms.c
729
hx509_cert c;
crypto/heimdal/lib/hx509/cms.c
734
&c);
crypto/heimdal/lib/hx509/cms.c
737
ret = hx509_certs_add(context, certs, c);
crypto/heimdal/lib/hx509/cms.c
738
hx509_cert_free(c);
crypto/heimdal/lib/hx509/collector.c
100
return hx509_certs_add(context, c->certs, cert);
crypto/heimdal/lib/hx509/collector.c
115
struct hx509_collector *c,
crypto/heimdal/lib/hx509/collector.c
129
d = realloc(c->val.data, (c->val.len + 1) * sizeof(c->val.data[0]));
crypto/heimdal/lib/hx509/collector.c
135
c->val.data = d;
crypto/heimdal/lib/hx509/collector.c
163
c->val.data[c->val.len] = key;
crypto/heimdal/lib/hx509/collector.c
164
c->val.len++;
crypto/heimdal/lib/hx509/collector.c
207
hx509_cert c;
crypto/heimdal/lib/hx509/collector.c
220
c = NULL;
crypto/heimdal/lib/hx509/collector.c
222
ret = hx509_certs_next_cert(context, certs, cursor, &c);
crypto/heimdal/lib/hx509/collector.c
225
if (c == NULL)
crypto/heimdal/lib/hx509/collector.c
227
if (_hx509_cert_private_key(c)) {
crypto/heimdal/lib/hx509/collector.c
228
hx509_cert_free(c);
crypto/heimdal/lib/hx509/collector.c
232
ret = _hx509_match_keys(c, value->private_key);
crypto/heimdal/lib/hx509/collector.c
234
_hx509_cert_assign_key(c, value->private_key);
crypto/heimdal/lib/hx509/collector.c
235
hx509_cert_free(c);
crypto/heimdal/lib/hx509/collector.c
239
hx509_cert_free(c);
crypto/heimdal/lib/hx509/collector.c
252
struct hx509_collector *c,
crypto/heimdal/lib/hx509/collector.c
265
ret = hx509_certs_merge(context, certs, c->certs);
crypto/heimdal/lib/hx509/collector.c
271
for (i = 0; i < c->val.len; i++) {
crypto/heimdal/lib/hx509/collector.c
272
ret = match_localkeyid(context, c->val.data[i], certs);
crypto/heimdal/lib/hx509/collector.c
275
ret = match_keys(context, c->val.data[i], certs);
crypto/heimdal/lib/hx509/collector.c
287
struct hx509_collector *c,
crypto/heimdal/lib/hx509/collector.c
294
for (i = 0, nkeys = 0; i < c->val.len; i++)
crypto/heimdal/lib/hx509/collector.c
295
if (c->val.data[i]->private_key)
crypto/heimdal/lib/hx509/collector.c
304
for (i = 0, nkeys = 0; i < c->val.len; i++) {
crypto/heimdal/lib/hx509/collector.c
305
if (c->val.data[i]->private_key) {
crypto/heimdal/lib/hx509/collector.c
306
(*keys)[nkeys++] = c->val.data[i]->private_key;
crypto/heimdal/lib/hx509/collector.c
307
c->val.data[i]->private_key = NULL;
crypto/heimdal/lib/hx509/collector.c
317
_hx509_collector_free(struct hx509_collector *c)
crypto/heimdal/lib/hx509/collector.c
321
if (c->unenvelop_certs)
crypto/heimdal/lib/hx509/collector.c
322
hx509_certs_free(&c->unenvelop_certs);
crypto/heimdal/lib/hx509/collector.c
323
if (c->certs)
crypto/heimdal/lib/hx509/collector.c
324
hx509_certs_free(&c->certs);
crypto/heimdal/lib/hx509/collector.c
325
for (i = 0; i < c->val.len; i++)
crypto/heimdal/lib/hx509/collector.c
326
free_private_key(c->val.data[i]);
crypto/heimdal/lib/hx509/collector.c
327
if (c->val.data)
crypto/heimdal/lib/hx509/collector.c
328
free(c->val.data);
crypto/heimdal/lib/hx509/collector.c
329
free(c);
crypto/heimdal/lib/hx509/collector.c
56
struct hx509_collector *c;
crypto/heimdal/lib/hx509/collector.c
61
c = calloc(1, sizeof(*c));
crypto/heimdal/lib/hx509/collector.c
62
if (c == NULL) {
crypto/heimdal/lib/hx509/collector.c
66
c->lock = lock;
crypto/heimdal/lib/hx509/collector.c
69
0,NULL, &c->unenvelop_certs);
crypto/heimdal/lib/hx509/collector.c
71
free(c);
crypto/heimdal/lib/hx509/collector.c
74
c->val.data = NULL;
crypto/heimdal/lib/hx509/collector.c
75
c->val.len = 0;
crypto/heimdal/lib/hx509/collector.c
77
0, NULL, &c->certs);
crypto/heimdal/lib/hx509/collector.c
79
hx509_certs_free(&c->unenvelop_certs);
crypto/heimdal/lib/hx509/collector.c
80
free(c);
crypto/heimdal/lib/hx509/collector.c
84
*collector = c;
crypto/heimdal/lib/hx509/collector.c
89
_hx509_collector_get_lock(struct hx509_collector *c)
crypto/heimdal/lib/hx509/collector.c
91
return c->lock;
crypto/heimdal/lib/hx509/collector.c
97
struct hx509_collector *c,
crypto/heimdal/lib/hx509/crypto.c
2156
const EVP_CIPHER *c;
crypto/heimdal/lib/hx509/crypto.c
2274
crypto->c = EVP_rc2_40_cbc();
crypto/heimdal/lib/hx509/crypto.c
2278
crypto->c = EVP_rc2_64_cbc();
crypto/heimdal/lib/hx509/crypto.c
2282
crypto->c = EVP_rc2_cbc();
crypto/heimdal/lib/hx509/crypto.c
2442
(*crypto)->c = (*cipher->evp_func)();
crypto/heimdal/lib/hx509/crypto.c
2506
if (EVP_CIPHER_key_length(crypto->c) > (int)length)
crypto/heimdal/lib/hx509/crypto.c
2531
crypto->key.length = EVP_CIPHER_key_length(crypto->c);
crypto/heimdal/lib/hx509/crypto.c
2570
ivec->length = EVP_CIPHER_iv_length(crypto->c);
crypto/heimdal/lib/hx509/crypto.c
2603
assert(EVP_CIPHER_iv_length(crypto->c) == (int)ivec->length);
crypto/heimdal/lib/hx509/crypto.c
2609
ret = EVP_CipherInit_ex(evp, crypto->c, NULL,
crypto/heimdal/lib/hx509/crypto.c
2624
bsize = EVP_CIPHER_block_size(crypto->c);
crypto/heimdal/lib/hx509/crypto.c
2693
if (ivec && EVP_CIPHER_iv_length(crypto->c) < (int)ivec->length)
crypto/heimdal/lib/hx509/crypto.c
2706
ret = EVP_CipherInit_ex(evp, crypto->c, NULL,
crypto/heimdal/lib/hx509/crypto.c
2727
if ((crypto->flags & PADDING_PKCS7) && EVP_CIPHER_block_size(crypto->c) > 1) {
crypto/heimdal/lib/hx509/crypto.c
2730
int j, bsize = EVP_CIPHER_block_size(crypto->c);
crypto/heimdal/lib/hx509/crypto.c
2781
hx509_crypto c;
crypto/heimdal/lib/hx509/crypto.c
2815
ret = hx509_crypto_init(context, NULL, enc_oid, &c);
crypto/heimdal/lib/hx509/crypto.c
2819
hx509_crypto_allow_weak(c);
crypto/heimdal/lib/hx509/crypto.c
2821
ret = hx509_crypto_set_key_data(c, key->data, key->length);
crypto/heimdal/lib/hx509/crypto.c
2823
hx509_crypto_destroy(c);
crypto/heimdal/lib/hx509/crypto.c
2827
*crypto = c;
crypto/heimdal/lib/hx509/crypto.c
2835
const EVP_CIPHER **c,
crypto/heimdal/lib/hx509/crypto.c
2840
*c = EVP_rc2_40_cbc();
crypto/heimdal/lib/hx509/crypto.c
2845
*c = EVP_rc2_cbc();
crypto/heimdal/lib/hx509/crypto.c
2851
*c = EVP_rc4_40();
crypto/heimdal/lib/hx509/crypto.c
2856
*c = EVP_rc4();
crypto/heimdal/lib/hx509/crypto.c
2862
*c = EVP_des_ede3_cbc();
crypto/heimdal/lib/hx509/crypto.c
2900
const EVP_CIPHER *c;
crypto/heimdal/lib/hx509/crypto.c
2911
enc_oid = find_string2key(&ai->algorithm, &c, &md, &s2k);
crypto/heimdal/lib/hx509/crypto.c
2919
key.length = EVP_CIPHER_key_length(c);
crypto/heimdal/lib/hx509/crypto.c
2927
iv.length = EVP_CIPHER_iv_length(c);
crypto/heimdal/lib/hx509/crypto.c
2978
match_keys_rsa(hx509_cert c, hx509_private_key private_key)
crypto/heimdal/lib/hx509/crypto.c
2999
cert = _hx509_get_cert(c);
crypto/heimdal/lib/hx509/crypto.c
3084
match_keys_ec(hx509_cert c, hx509_private_key private_key)
crypto/heimdal/lib/hx509/crypto.c
3091
_hx509_match_keys(hx509_cert c, hx509_private_key key)
crypto/heimdal/lib/hx509/crypto.c
3094
return match_keys_rsa(c, key);
crypto/heimdal/lib/hx509/crypto.c
3096
return match_keys_ec(c, key);
crypto/heimdal/lib/hx509/hxtool.c
1044
ret = hx509_certs_find(context, certs, q, &c);
crypto/heimdal/lib/hx509/hxtool.c
1051
print_certificate(context, c, 0);
crypto/heimdal/lib/hx509/hxtool.c
1054
hx509_cert_free(c);
crypto/heimdal/lib/hx509/hxtool.c
1143
verify_o(hx509_context hxcontext, void *ctx, hx509_cert c)
crypto/heimdal/lib/hx509/hxtool.c
1149
ret = hx509_ocsp_verify(context, 0, c, 0,
crypto/heimdal/lib/hx509/hxtool.c
183
heim_octet_string c, co, signeddata, *sd = NULL;
crypto/heimdal/lib/hx509/hxtool.c
2029
heim_octet_string sd, c;
crypto/heimdal/lib/hx509/hxtool.c
2044
NULL, NULL, &type, &c, &signer);
crypto/heimdal/lib/hx509/hxtool.c
2051
free(c.data);
crypto/heimdal/lib/hx509/hxtool.c
289
store, &type, &c, &signers);
crypto/heimdal/lib/hx509/hxtool.c
320
ret = _hx509_write_file(argv[1], c.data, c.length);
crypto/heimdal/lib/hx509/hxtool.c
325
der_free_octet_string(&c);
crypto/heimdal/lib/hx509/hxtool.c
744
validate_f(hx509_context hxcontext, void *ctx, hx509_cert c)
crypto/heimdal/lib/hx509/hxtool.c
746
hx509_validate_cert(hxcontext, ctx, c);
crypto/heimdal/lib/hx509/hxtool.c
831
verify_f(hx509_context hxcontext, void *ctx, hx509_cert c)
crypto/heimdal/lib/hx509/hxtool.c
836
ret = hx509_verify_path(hxcontext, v->ctx, c, v->chain);
crypto/heimdal/lib/hx509/hxtool.c
848
ret = hx509_verify_hostname(hxcontext, c, 0, HX509_HN_HOSTNAME,
crypto/heimdal/lib/hx509/hxtool.c
995
hx509_cert c;
crypto/heimdal/lib/hx509/keyset.c
120
hx509_certs c;
crypto/heimdal/lib/hx509/keyset.c
151
c = calloc(1, sizeof(*c));
crypto/heimdal/lib/hx509/keyset.c
152
if (c == NULL) {
crypto/heimdal/lib/hx509/keyset.c
156
c->ops = ops;
crypto/heimdal/lib/hx509/keyset.c
157
c->ref = 1;
crypto/heimdal/lib/hx509/keyset.c
159
ret = (*ops->init)(context, c, &c->ops_data, flags, residue, lock);
crypto/heimdal/lib/hx509/keyset.c
161
free(c);
crypto/heimdal/lib/hx509/keyset.c
165
*certs = c;
crypto/heimdal/lib/hx509/keyset.c
343
hx509_cert c;
crypto/heimdal/lib/hx509/keyset.c
351
ret = hx509_certs_next_cert(context, certs, cursor, &c);
crypto/heimdal/lib/hx509/keyset.c
354
if (c == NULL) {
crypto/heimdal/lib/hx509/keyset.c
358
ret = (*func)(context, ctx, c);
crypto/heimdal/lib/hx509/keyset.c
359
hx509_cert_free(c);
crypto/heimdal/lib/hx509/keyset.c
432
hx509_ci_print_names(hx509_context context, void *ctx, hx509_cert c)
crypto/heimdal/lib/hx509/keyset.c
438
cert = _hx509_get_cert(c);
crypto/heimdal/lib/hx509/keyset.c
502
hx509_cert c;
crypto/heimdal/lib/hx509/keyset.c
516
c = NULL;
crypto/heimdal/lib/hx509/keyset.c
518
ret = hx509_certs_next_cert(context, certs, cursor, &c);
crypto/heimdal/lib/hx509/keyset.c
521
if (c == NULL)
crypto/heimdal/lib/hx509/keyset.c
523
if (_hx509_query_match_cert(context, q, c)) {
crypto/heimdal/lib/hx509/keyset.c
524
*r = c;
crypto/heimdal/lib/hx509/keyset.c
527
hx509_cert_free(c);
crypto/heimdal/lib/hx509/keyset.c
537
if (c == NULL) {
crypto/heimdal/lib/hx509/keyset.c
566
hx509_cert c;
crypto/heimdal/lib/hx509/keyset.c
582
c = NULL;
crypto/heimdal/lib/hx509/keyset.c
584
ret = hx509_certs_next_cert(context, certs, cursor, &c);
crypto/heimdal/lib/hx509/keyset.c
587
if (c == NULL)
crypto/heimdal/lib/hx509/keyset.c
589
if (_hx509_query_match_cert(context, q, c)) {
crypto/heimdal/lib/hx509/keyset.c
590
hx509_certs_add(context, *result, c);
crypto/heimdal/lib/hx509/keyset.c
593
hx509_cert_free(c);
crypto/heimdal/lib/hx509/keyset.c
617
certs_merge_func(hx509_context context, void *ctx, hx509_cert c)
crypto/heimdal/lib/hx509/keyset.c
619
return hx509_certs_add(context, (hx509_certs)ctx, c);
crypto/heimdal/lib/hx509/keyset.c
688
hx509_get_one_cert(hx509_context context, hx509_certs certs, hx509_cert *c)
crypto/heimdal/lib/hx509/keyset.c
693
*c = NULL;
crypto/heimdal/lib/hx509/keyset.c
699
ret = hx509_certs_next_cert(context, certs, cursor, c);
crypto/heimdal/lib/hx509/ks_file.c
119
EVP_CipherInit_ex(ctx, c, NULL, key, ivdata, 0);
crypto/heimdal/lib/hx509/ks_file.c
141
struct hx509_collector *c,
crypto/heimdal/lib/hx509/ks_file.c
159
c,
crypto/heimdal/lib/hx509/ks_file.c
170
struct hx509_collector *c,
crypto/heimdal/lib/hx509/ks_file.c
190
lock = _hx509_collector_get_lock(c);
crypto/heimdal/lib/hx509/ks_file.c
273
ret = try_decrypt(context, c, ai, cipher, ivdata,
crypto/heimdal/lib/hx509/ks_file.c
294
ret = try_decrypt(context, c, ai, cipher, ivdata, password,
crypto/heimdal/lib/hx509/ks_file.c
307
ret = _hx509_collector_private_key_add(context, c, ai, NULL,
crypto/heimdal/lib/hx509/ks_file.c
331
struct hx509_collector *c;
crypto/heimdal/lib/hx509/ks_file.c
350
ret = (*formats[j].func)(context, NULL, pem_ctx->c,
crypto/heimdal/lib/hx509/ks_file.c
385
pem_ctx.c = NULL;
crypto/heimdal/lib/hx509/ks_file.c
420
ret = _hx509_collector_alloc(context, lock, &pem_ctx.c);
crypto/heimdal/lib/hx509/ks_file.c
461
ret = (*formats[i].func)(context, p, pem_ctx.c, NULL, ptr, length, ai);
crypto/heimdal/lib/hx509/ks_file.c
473
ret = _hx509_collector_collect_certs(context, pem_ctx.c, &ksf->certs);
crypto/heimdal/lib/hx509/ks_file.c
477
ret = _hx509_collector_collect_private_keys(context, pem_ctx.c, &keys);
crypto/heimdal/lib/hx509/ks_file.c
494
if (pem_ctx.c)
crypto/heimdal/lib/hx509/ks_file.c
495
_hx509_collector_free(pem_ctx.c);
crypto/heimdal/lib/hx509/ks_file.c
50
struct hx509_collector *c,
crypto/heimdal/lib/hx509/ks_file.c
532
store_func(hx509_context context, void *ctx, hx509_cert c)
crypto/heimdal/lib/hx509/ks_file.c
538
ret = hx509_cert_binary(context, c, &data);
crypto/heimdal/lib/hx509/ks_file.c
551
if (_hx509_cert_private_key_exportable(c)) {
crypto/heimdal/lib/hx509/ks_file.c
552
hx509_private_key key = _hx509_cert_private_key(c);
crypto/heimdal/lib/hx509/ks_file.c
590
file_add(hx509_context context, hx509_certs certs, void *data, hx509_cert c)
crypto/heimdal/lib/hx509/ks_file.c
593
return hx509_certs_add(context, ksf->certs, c);
crypto/heimdal/lib/hx509/ks_file.c
62
ret = _hx509_collector_certs_add(context, c, cert);
crypto/heimdal/lib/hx509/ks_file.c
71
const EVP_CIPHER *c,
crypto/heimdal/lib/hx509/ks_file.c
83
keylen = EVP_CIPHER_key_length(c);
crypto/heimdal/lib/hx509/ks_file.c
91
ret = EVP_BytesToKey(c, EVP_md5(), ivdata,
crypto/heimdal/lib/hx509/ks_mem.c
101
mem->certs.val[mem->certs.len] = hx509_cert_ref(c);
crypto/heimdal/lib/hx509/ks_mem.c
90
mem_add(hx509_context context, hx509_certs certs, void *data, hx509_cert c)
crypto/heimdal/lib/hx509/ks_p11.c
1043
struct p11_cursor *c;
crypto/heimdal/lib/hx509/ks_p11.c
1047
c = malloc(sizeof(*c));
crypto/heimdal/lib/hx509/ks_p11.c
1048
if (c == NULL) {
crypto/heimdal/lib/hx509/ks_p11.c
1052
ret = hx509_certs_init(context, "MEMORY:pkcs11-iter", 0, NULL, &c->certs);
crypto/heimdal/lib/hx509/ks_p11.c
1054
free(c);
crypto/heimdal/lib/hx509/ks_p11.c
1061
ret = hx509_certs_merge(context, c->certs, p->slot[i].certs);
crypto/heimdal/lib/hx509/ks_p11.c
1063
hx509_certs_free(&c->certs);
crypto/heimdal/lib/hx509/ks_p11.c
1064
free(c);
crypto/heimdal/lib/hx509/ks_p11.c
1069
ret = hx509_certs_start_seq(context, c->certs, &c->cursor);
crypto/heimdal/lib/hx509/ks_p11.c
1071
hx509_certs_free(&c->certs);
crypto/heimdal/lib/hx509/ks_p11.c
1072
free(c);
crypto/heimdal/lib/hx509/ks_p11.c
1075
*cursor = c;
crypto/heimdal/lib/hx509/ks_p11.c
1084
struct p11_cursor *c = cursor;
crypto/heimdal/lib/hx509/ks_p11.c
1085
return hx509_certs_next_cert(context, c->certs, c->cursor, cert);
crypto/heimdal/lib/hx509/ks_p11.c
1092
struct p11_cursor *c = cursor;
crypto/heimdal/lib/hx509/ks_p11.c
1094
ret = hx509_certs_end_seq(context, c->certs, c->cursor);
crypto/heimdal/lib/hx509/ks_p11.c
1095
hx509_certs_free(&c->certs);
crypto/heimdal/lib/hx509/ks_p11.c
1096
free(c);
crypto/heimdal/lib/hx509/ks_p11.c
352
char c = slot_info.slotDescription[i];
crypto/heimdal/lib/hx509/ks_p11.c
353
if (c == ' ' || c == '\t' || c == '\n' || c == '\r' || c == '\0')
crypto/heimdal/lib/hx509/ks_p12.c
114
_hx509_collector_get_lock(c),
crypto/heimdal/lib/hx509/ks_p12.c
122
ret = keyBag_parser(context, c, content.data, content.length, attrs);
crypto/heimdal/lib/hx509/ks_p12.c
129
struct hx509_collector *c,
crypto/heimdal/lib/hx509/ks_p12.c
160
ret = _hx509_collector_certs_add(context, c, cert);
crypto/heimdal/lib/hx509/ks_p12.c
189
struct hx509_collector *c,
crypto/heimdal/lib/hx509/ks_p12.c
204
c,
crypto/heimdal/lib/hx509/ks_p12.c
216
struct hx509_collector *c,
crypto/heimdal/lib/hx509/ks_p12.c
226
ret = parse_safe_content(context, c, os.data, os.length);
crypto/heimdal/lib/hx509/ks_p12.c
233
struct hx509_collector *c,
crypto/heimdal/lib/hx509/ks_p12.c
244
_hx509_collector_get_lock(c),
crypto/heimdal/lib/hx509/ks_p12.c
252
ret = parse_safe_content(context, c, content.data, content.length);
crypto/heimdal/lib/hx509/ks_p12.c
261
struct hx509_collector *c,
crypto/heimdal/lib/hx509/ks_p12.c
272
lock = _hx509_collector_get_lock(c);
crypto/heimdal/lib/hx509/ks_p12.c
289
ret = parse_safe_content(context, c, content.data, content.length);
crypto/heimdal/lib/hx509/ks_p12.c
309
struct hx509_collector *c,
crypto/heimdal/lib/hx509/ks_p12.c
318
(*bagtypes[i].func)(context, c, data, length, attrs);
crypto/heimdal/lib/hx509/ks_p12.c
333
struct hx509_collector *c;
crypto/heimdal/lib/hx509/ks_p12.c
340
ret = _hx509_collector_alloc(context, lock, &c);
crypto/heimdal/lib/hx509/ks_p12.c
421
c,
crypto/heimdal/lib/hx509/ks_p12.c
429
ret = _hx509_collector_collect_certs(context, c, &p12->certs);
crypto/heimdal/lib/hx509/ks_p12.c
434
_hx509_collector_free(c);
crypto/heimdal/lib/hx509/ks_p12.c
486
store_func(hx509_context context, void *ctx, hx509_cert c)
crypto/heimdal/lib/hx509/ks_p12.c
500
ret = hx509_cert_binary(context, c, &os);
crypto/heimdal/lib/hx509/ks_p12.c
523
if (_hx509_cert_private_key_exportable(c)) {
crypto/heimdal/lib/hx509/ks_p12.c
524
hx509_private_key key = _hx509_cert_private_key(c);
crypto/heimdal/lib/hx509/ks_p12.c
539
_hx509_cert_private_key(c),
crypto/heimdal/lib/hx509/ks_p12.c
653
p12_add(hx509_context context, hx509_certs certs, void *data, hx509_cert c)
crypto/heimdal/lib/hx509/ks_p12.c
656
return hx509_certs_add(context, p12->certs, c);
crypto/heimdal/lib/hx509/ks_p12.c
70
struct hx509_collector *c,
crypto/heimdal/lib/hx509/ks_p12.c
88
c,
crypto/heimdal/lib/hx509/ks_p12.c
99
struct hx509_collector *c,
crypto/heimdal/lib/hx509/lock.c
162
_hx509_lock_find_cert(hx509_lock lock, const hx509_query *q, hx509_cert *c)
crypto/heimdal/lib/hx509/lock.c
164
*c = NULL;
crypto/heimdal/lib/hx509/name.c
442
_hx509_name_cmp(const Name *n1, const Name *n2, int *c)
crypto/heimdal/lib/hx509/name.c
447
*c = n1->u.rdnSequence.len - n2->u.rdnSequence.len;
crypto/heimdal/lib/hx509/name.c
448
if (*c)
crypto/heimdal/lib/hx509/name.c
452
*c = n1->u.rdnSequence.val[i].len - n2->u.rdnSequence.val[i].len;
crypto/heimdal/lib/hx509/name.c
453
if (*c)
crypto/heimdal/lib/hx509/name.c
457
*c = der_heim_oid_cmp(&n1->u.rdnSequence.val[i].val[j].type,
crypto/heimdal/lib/hx509/name.c
459
if (*c)
crypto/heimdal/lib/hx509/name.c
464
c);
crypto/heimdal/lib/hx509/name.c
467
if (*c)
crypto/heimdal/lib/hx509/name.c
471
*c = 0;
crypto/heimdal/lib/hx509/print.c
1024
&c->signatureAlgorithm,
crypto/heimdal/lib/hx509/print.c
1025
&c->tbsCertificate._save,
crypto/heimdal/lib/hx509/print.c
1026
&c->signatureValue);
crypto/heimdal/lib/hx509/print.c
191
hx509_cert_keyusage_print(hx509_context context, hx509_cert c, char **s)
crypto/heimdal/lib/hx509/print.c
199
ret = _hx509_cert_get_keyusage(context, c, &ku);
crypto/heimdal/lib/hx509/print.c
217
validate_vprint(void *c, const char *fmt, va_list va)
crypto/heimdal/lib/hx509/print.c
219
hx509_validate_ctx ctx = c;
crypto/heimdal/lib/hx509/print.c
835
void *c)
crypto/heimdal/lib/hx509/print.c
838
ctx->ctx = c;
crypto/heimdal/lib/hx509/print.c
890
Certificate *c = _hx509_get_cert(cert);
crypto/heimdal/lib/hx509/print.c
891
TBSCertificate *t = &c->tbsCertificate;
crypto/heimdal/lib/hx509/print.c
899
if (_hx509_cert_get_version(c) != 3)
crypto/heimdal/lib/hx509/print.c
907
if (_hx509_cert_get_version(c) >= 3 && t->extensions == NULL)
crypto/heimdal/lib/hx509/revoke.c
1194
const Certificate *c = _hx509_get_cert(cert);
crypto/heimdal/lib/hx509/revoke.c
1214
&c->tbsCertificate.serialNumber);
crypto/heimdal/lib/hx509/revoke.c
1222
&c->tbsCertificate.issuer._save,
crypto/heimdal/lib/hx509/revoke.c
1379
TBSCRLCertList *c = ctx;
crypto/heimdal/lib/hx509/revoke.c
1384
num = c->revokedCertificates->len;
crypto/heimdal/lib/hx509/revoke.c
1385
ptr = realloc(c->revokedCertificates->val,
crypto/heimdal/lib/hx509/revoke.c
1386
(num + 1) * sizeof(c->revokedCertificates->val[0]));
crypto/heimdal/lib/hx509/revoke.c
1391
c->revokedCertificates->val = ptr;
crypto/heimdal/lib/hx509/revoke.c
1394
&c->revokedCertificates->val[num].userCertificate);
crypto/heimdal/lib/hx509/revoke.c
1399
c->revokedCertificates->val[num].revocationDate.element =
crypto/heimdal/lib/hx509/revoke.c
1401
c->revokedCertificates->val[num].revocationDate.u.generalTime =
crypto/heimdal/lib/hx509/revoke.c
1403
c->revokedCertificates->val[num].crlEntryExtensions = NULL;
crypto/heimdal/lib/hx509/revoke.c
1405
c->revokedCertificates->len++;
crypto/heimdal/lib/hx509/revoke.c
1431
CRLCertificateList c;
crypto/heimdal/lib/hx509/revoke.c
1436
memset(&c, 0, sizeof(c));
crypto/heimdal/lib/hx509/revoke.c
1446
c.tbsCertList.version = malloc(sizeof(*c.tbsCertList.version));
crypto/heimdal/lib/hx509/revoke.c
1447
if (c.tbsCertList.version == NULL) {
crypto/heimdal/lib/hx509/revoke.c
1452
*c.tbsCertList.version = 1;
crypto/heimdal/lib/hx509/revoke.c
1454
ret = copy_AlgorithmIdentifier(sigalg, &c.tbsCertList.signature);
crypto/heimdal/lib/hx509/revoke.c
1461
&c.tbsCertList.issuer);
crypto/heimdal/lib/hx509/revoke.c
1467
c.tbsCertList.thisUpdate.element = choice_Time_generalTime;
crypto/heimdal/lib/hx509/revoke.c
1468
c.tbsCertList.thisUpdate.u.generalTime = time(NULL) - 24 * 3600;
crypto/heimdal/lib/hx509/revoke.c
1470
c.tbsCertList.nextUpdate = malloc(sizeof(*c.tbsCertList.nextUpdate));
crypto/heimdal/lib/hx509/revoke.c
1471
if (c.tbsCertList.nextUpdate == NULL) {
crypto/heimdal/lib/hx509/revoke.c
1482
c.tbsCertList.nextUpdate->element = choice_Time_generalTime;
crypto/heimdal/lib/hx509/revoke.c
1483
c.tbsCertList.nextUpdate->u.generalTime = next;
crypto/heimdal/lib/hx509/revoke.c
1486
c.tbsCertList.revokedCertificates =
crypto/heimdal/lib/hx509/revoke.c
1487
calloc(1, sizeof(*c.tbsCertList.revokedCertificates));
crypto/heimdal/lib/hx509/revoke.c
1488
if (c.tbsCertList.revokedCertificates == NULL) {
crypto/heimdal/lib/hx509/revoke.c
1493
c.tbsCertList.crlExtensions = NULL;
crypto/heimdal/lib/hx509/revoke.c
1495
ret = hx509_certs_iter_f(context, crl->revoked, add_revoked, &c.tbsCertList);
crypto/heimdal/lib/hx509/revoke.c
1500
if (c.tbsCertList.revokedCertificates->len == 0) {
crypto/heimdal/lib/hx509/revoke.c
1501
free(c.tbsCertList.revokedCertificates);
crypto/heimdal/lib/hx509/revoke.c
1502
c.tbsCertList.revokedCertificates = NULL;
crypto/heimdal/lib/hx509/revoke.c
1506
&c.tbsCertList, &size, ret);
crypto/heimdal/lib/hx509/revoke.c
1519
&c.signatureAlgorithm,
crypto/heimdal/lib/hx509/revoke.c
1520
&c.signatureValue);
crypto/heimdal/lib/hx509/revoke.c
1528
&c, &size, ret);
crypto/heimdal/lib/hx509/revoke.c
1536
free_CRLCertificateList(&c);
crypto/heimdal/lib/hx509/revoke.c
1541
free_CRLCertificateList(&c);
crypto/heimdal/lib/hx509/revoke.c
362
hx509_cert c;
crypto/heimdal/lib/hx509/revoke.c
364
ret = hx509_cert_init(context, &basic.certs->val[i], &c);
crypto/heimdal/lib/hx509/revoke.c
368
ret = hx509_certs_add(context, certs, c);
crypto/heimdal/lib/hx509/revoke.c
369
hx509_cert_free(c);
crypto/heimdal/lib/hx509/revoke.c
686
const Certificate *c = _hx509_get_cert(cert);
crypto/heimdal/lib/hx509/revoke.c
718
&c->tbsCertificate.serialNumber);
crypto/heimdal/lib/hx509/revoke.c
726
&c->tbsCertificate.issuer._save,
crypto/heimdal/lib/hx509/revoke.c
775
ret = _hx509_name_cmp(&c->tbsCertificate.issuer,
crypto/heimdal/lib/hx509/revoke.c
824
&c->tbsCertificate.serialNumber);
crypto/heimdal/lib/hx509/revoke.c
869
Certificate *p, *c = _hx509_get_cert(cert);
crypto/heimdal/lib/hx509/revoke.c
888
q.subject = c;
crypto/heimdal/lib/hx509/revoke.c
914
&c->tbsCertificate.issuer._save,
crypto/heimdal/lib/hx509/revoke.c
933
ret = copy_CertificateSerialNumber(&c->tbsCertificate.serialNumber,
crypto/heimdal/lib/ipc/client.c
192
struct async_client *c = dispatch_get_context(dispatch_get_current_queue());
crypto/heimdal/lib/ipc/client.c
206
(*c->func)(c->userctx, returnvalue, &response, NULL);
crypto/heimdal/lib/ipc/client.c
211
dispatch_source_cancel(c->source);
crypto/heimdal/lib/ipc/client.c
230
struct async_client *c;
crypto/heimdal/lib/ipc/client.c
235
c = malloc(sizeof(*c));
crypto/heimdal/lib/ipc/client.c
236
if (c == NULL)
crypto/heimdal/lib/ipc/client.c
239
kr = mach_port_allocate(mach_task_self(), MACH_PORT_RIGHT_RECEIVE, &c->mp);
crypto/heimdal/lib/ipc/client.c
243
c->queue = dispatch_queue_create("heim-ipc-async-client", NULL);
crypto/heimdal/lib/ipc/client.c
244
c->source = dispatch_source_create(DISPATCH_SOURCE_TYPE_MACH_RECV, c->mp, 0, c->queue);
crypto/heimdal/lib/ipc/client.c
245
dispatch_set_context(c->queue, c);
crypto/heimdal/lib/ipc/client.c
247
dispatch_source_set_event_handler(c->source, ^{
crypto/heimdal/lib/ipc/client.c
248
dispatch_mig_server(c->source,
crypto/heimdal/lib/ipc/client.c
253
dispatch_source_set_cancel_handler(c->source, ^{
crypto/heimdal/lib/ipc/client.c
254
mach_port_mod_refs(mach_task_self(), c->mp,
crypto/heimdal/lib/ipc/client.c
256
dispatch_release(c->queue);
crypto/heimdal/lib/ipc/client.c
257
dispatch_release(c->source);
crypto/heimdal/lib/ipc/client.c
258
free(c);
crypto/heimdal/lib/ipc/client.c
261
c->func = func;
crypto/heimdal/lib/ipc/client.c
262
c->userctx = userctx;
crypto/heimdal/lib/ipc/client.c
264
dispatch_resume(c->source);
crypto/heimdal/lib/ipc/client.c
276
ret = mheim_ipc_call_request(sport, c->mp,
crypto/heimdal/lib/ipc/client.c
282
dispatch_source_cancel(c->source);
crypto/heimdal/lib/ipc/client.c
289
dispatch_source_cancel(c->source);
crypto/heimdal/lib/ipc/client.c
295
dispatch_source_cancel(c->source);
crypto/heimdal/lib/ipc/client.c
509
heim_ipc c;
crypto/heimdal/lib/ipc/client.c
518
c = calloc(1, sizeof(*c));
crypto/heimdal/lib/ipc/client.c
519
if (c == NULL)
crypto/heimdal/lib/ipc/client.c
522
c->ops = &ipcs[i];
crypto/heimdal/lib/ipc/client.c
524
ret = (c->ops->init)(name + prefix_len + 1, &c->ctx);
crypto/heimdal/lib/ipc/client.c
526
free(c);
crypto/heimdal/lib/ipc/client.c
532
*ctx = c;
crypto/heimdal/lib/ipc/server.c
1020
struct client *c = clients[n];
crypto/heimdal/lib/ipc/server.c
1021
if (maybe_close(c)) {
crypto/heimdal/lib/ipc/server.c
1038
struct client *c = ctx->mech;
crypto/heimdal/lib/ipc/server.c
1039
c->flags |= WAITING_CLOSE;
crypto/heimdal/lib/ipc/server.c
1049
struct client *c;
crypto/heimdal/lib/ipc/server.c
1056
c = add_new_socket(fd, LISTEN_SOCKET|WAITING_READ|INCLUDE_ERROR_CODE, callback, user);
crypto/heimdal/lib/ipc/server.c
1059
c = add_new_socket(fd, LISTEN_SOCKET|WAITING_READ, callback, user);
crypto/heimdal/lib/ipc/server.c
1063
c = add_new_socket(fd, LISTEN_SOCKET|WAITING_READ|ALLOW_HTTP, callback, user);
crypto/heimdal/lib/ipc/server.c
1070
ct->mech = c;
crypto/heimdal/lib/ipc/server.c
1073
c->unixrights.uid = (uid_t) -1;
crypto/heimdal/lib/ipc/server.c
1074
c->unixrights.gid = (gid_t) -1;
crypto/heimdal/lib/ipc/server.c
1075
c->unixrights.pid = (pid_t) 0;
crypto/heimdal/lib/ipc/server.c
1122
struct client *c = (*ctx)->mech;
crypto/heimdal/lib/ipc/server.c
1123
c->flags |= UNIX_SOCKET;
crypto/heimdal/lib/ipc/server.c
409
heim_sipc c = NULL;
crypto/heimdal/lib/ipc/server.c
420
c = calloc(1, sizeof(*c));
crypto/heimdal/lib/ipc/server.c
421
if (c == NULL) {
crypto/heimdal/lib/ipc/server.c
425
c->release = mach_release;
crypto/heimdal/lib/ipc/server.c
426
c->userctx = user;
crypto/heimdal/lib/ipc/server.c
427
c->callback = callback;
crypto/heimdal/lib/ipc/server.c
429
ret = mach_init(service, sport, c);
crypto/heimdal/lib/ipc/server.c
433
*ctx = c;
crypto/heimdal/lib/ipc/server.c
436
if (c)
crypto/heimdal/lib/ipc/server.c
437
free(c);
crypto/heimdal/lib/ipc/server.c
498
update_client_creds(struct client *c)
crypto/heimdal/lib/ipc/server.c
505
if (getpeerucred(c->fd, &peercred) != 0) {
crypto/heimdal/lib/ipc/server.c
506
c->unixrights.uid = ucred_geteuid(peercred);
crypto/heimdal/lib/ipc/server.c
507
c->unixrights.gid = ucred_getegid(peercred);
crypto/heimdal/lib/ipc/server.c
508
c->unixrights.pid = 0;
crypto/heimdal/lib/ipc/server.c
520
if (getpeereid(c->fd, &uid, &gid) == 0) {
crypto/heimdal/lib/ipc/server.c
521
c->unixrights.uid = uid;
crypto/heimdal/lib/ipc/server.c
522
c->unixrights.gid = gid;
crypto/heimdal/lib/ipc/server.c
523
c->unixrights.pid = 0;
crypto/heimdal/lib/ipc/server.c
534
if (getsockopt(c->fd, SOL_SOCKET, SO_PEERCRED, (void *)&pc, &pclen) == 0) {
crypto/heimdal/lib/ipc/server.c
535
c->unixrights.uid = pc.uid;
crypto/heimdal/lib/ipc/server.c
536
c->unixrights.gid = pc.gid;
crypto/heimdal/lib/ipc/server.c
537
c->unixrights.pid = pc.pid;
crypto/heimdal/lib/ipc/server.c
547
if (getsockopt(c->fd, LOCAL_PEERCRED, 1,
crypto/heimdal/lib/ipc/server.c
551
c->unixrights.uid = peercred.cr_uid;
crypto/heimdal/lib/ipc/server.c
552
c->unixrights.gid = peercred.cr_gid;
crypto/heimdal/lib/ipc/server.c
553
c->unixrights.pid = peercred.cr_pid;
crypto/heimdal/lib/ipc/server.c
560
if (c->unixrights.uid == (uid_t)-1) {
crypto/heimdal/lib/ipc/server.c
581
if (recvmsg(c->fd, &msg, 0) < 0) {
crypto/heimdal/lib/ipc/server.c
599
c->unixrights.uid = sc->sc_euid;
crypto/heimdal/lib/ipc/server.c
600
c->unixrights.gid = sc->sc_egid;
crypto/heimdal/lib/ipc/server.c
601
c->unixrights.pid = 0;
crypto/heimdal/lib/ipc/server.c
621
struct client *c;
crypto/heimdal/lib/ipc/server.c
624
c = calloc(1, sizeof(*c));
crypto/heimdal/lib/ipc/server.c
625
if (c == NULL)
crypto/heimdal/lib/ipc/server.c
629
c->fd = fd;
crypto/heimdal/lib/ipc/server.c
631
c->fd = accept(fd, NULL, NULL);
crypto/heimdal/lib/ipc/server.c
632
if(c->fd < 0) {
crypto/heimdal/lib/ipc/server.c
633
free(c);
crypto/heimdal/lib/ipc/server.c
638
c->flags = flags;
crypto/heimdal/lib/ipc/server.c
639
c->callback = callback;
crypto/heimdal/lib/ipc/server.c
640
c->userctx = userctx;
crypto/heimdal/lib/ipc/server.c
642
fileflags = fcntl(c->fd, F_GETFL, 0);
crypto/heimdal/lib/ipc/server.c
643
fcntl(c->fd, F_SETFL, fileflags | O_NONBLOCK);
crypto/heimdal/lib/ipc/server.c
648
c->in = dispatch_source_create(DISPATCH_SOURCE_TYPE_READ,
crypto/heimdal/lib/ipc/server.c
649
c->fd, 0, eventq);
crypto/heimdal/lib/ipc/server.c
650
c->out = dispatch_source_create(DISPATCH_SOURCE_TYPE_WRITE,
crypto/heimdal/lib/ipc/server.c
651
c->fd, 0, eventq);
crypto/heimdal/lib/ipc/server.c
653
dispatch_source_set_event_handler(c->in, ^{
crypto/heimdal/lib/ipc/server.c
654
int rw = (c->flags & WAITING_WRITE);
crypto/heimdal/lib/ipc/server.c
655
handle_read(c);
crypto/heimdal/lib/ipc/server.c
656
if (rw == 0 && (c->flags & WAITING_WRITE))
crypto/heimdal/lib/ipc/server.c
657
dispatch_resume(c->out);
crypto/heimdal/lib/ipc/server.c
658
if ((c->flags & WAITING_READ) == 0)
crypto/heimdal/lib/ipc/server.c
659
dispatch_suspend(c->in);
crypto/heimdal/lib/ipc/server.c
660
maybe_close(c);
crypto/heimdal/lib/ipc/server.c
662
dispatch_source_set_event_handler(c->out, ^{
crypto/heimdal/lib/ipc/server.c
663
handle_write(c);
crypto/heimdal/lib/ipc/server.c
664
if ((c->flags & WAITING_WRITE) == 0) {
crypto/heimdal/lib/ipc/server.c
665
dispatch_suspend(c->out);
crypto/heimdal/lib/ipc/server.c
667
maybe_close(c);
crypto/heimdal/lib/ipc/server.c
670
dispatch_resume(c->in);
crypto/heimdal/lib/ipc/server.c
673
clients[num_clients] = c;
crypto/heimdal/lib/ipc/server.c
677
return c;
crypto/heimdal/lib/ipc/server.c
681
maybe_close(struct client *c)
crypto/heimdal/lib/ipc/server.c
683
if (c->calls != 0)
crypto/heimdal/lib/ipc/server.c
685
if (c->flags & (WAITING_READ|WAITING_WRITE))
crypto/heimdal/lib/ipc/server.c
689
dispatch_source_cancel(c->in);
crypto/heimdal/lib/ipc/server.c
690
if ((c->flags & WAITING_READ) == 0)
crypto/heimdal/lib/ipc/server.c
691
dispatch_resume(c->in);
crypto/heimdal/lib/ipc/server.c
692
dispatch_release(c->in);
crypto/heimdal/lib/ipc/server.c
694
dispatch_source_cancel(c->out);
crypto/heimdal/lib/ipc/server.c
695
if ((c->flags & WAITING_WRITE) == 0)
crypto/heimdal/lib/ipc/server.c
696
dispatch_resume(c->out);
crypto/heimdal/lib/ipc/server.c
697
dispatch_release(c->out);
crypto/heimdal/lib/ipc/server.c
699
close(c->fd); /* ref count fd close */
crypto/heimdal/lib/ipc/server.c
700
free(c);
crypto/heimdal/lib/ipc/server.c
707
struct client *c;
crypto/heimdal/lib/ipc/server.c
712
output_data(struct client *c, const void *data, size_t len)
crypto/heimdal/lib/ipc/server.c
714
if (c->olen + len < c->olen)
crypto/heimdal/lib/ipc/server.c
716
c->outmsg = erealloc(c->outmsg, c->olen + len);
crypto/heimdal/lib/ipc/server.c
717
memcpy(&c->outmsg[c->olen], data, len);
crypto/heimdal/lib/ipc/server.c
718
c->olen += len;
crypto/heimdal/lib/ipc/server.c
719
c->flags |= WAITING_WRITE;
crypto/heimdal/lib/ipc/server.c
726
struct client *c = sc->c;
crypto/heimdal/lib/ipc/server.c
729
if (c == NULL)
crypto/heimdal/lib/ipc/server.c
732
if ((c->flags & WAITING_CLOSE) == 0) {
crypto/heimdal/lib/ipc/server.c
737
output_data(c, &u32, sizeof(u32));
crypto/heimdal/lib/ipc/server.c
740
if (c->flags & INCLUDE_ERROR_CODE) {
crypto/heimdal/lib/ipc/server.c
742
output_data(c, &u32, sizeof(u32));
crypto/heimdal/lib/ipc/server.c
746
output_data(c, reply->data, reply->length);
crypto/heimdal/lib/ipc/server.c
749
if (c->flags & HTTP_REPLY) {
crypto/heimdal/lib/ipc/server.c
750
c->flags |= WAITING_CLOSE;
crypto/heimdal/lib/ipc/server.c
751
c->flags &= ~WAITING_READ;
crypto/heimdal/lib/ipc/server.c
755
c->calls--;
crypto/heimdal/lib/ipc/server.c
759
sc->c = NULL; /* so we can catch double complete */
crypto/heimdal/lib/ipc/server.c
762
maybe_close(c);
crypto/heimdal/lib/ipc/server.c
785
handle_http_tcp(struct client *c)
crypto/heimdal/lib/ipc/server.c
793
s = (char *)c->inmsg;
crypto/heimdal/lib/ipc/server.c
839
output_data(c, proto, strlen(proto));
crypto/heimdal/lib/ipc/server.c
840
output_data(c, msg, strlen(msg));
crypto/heimdal/lib/ipc/server.c
845
cs->c = c;
crypto/heimdal/lib/ipc/server.c
848
c->ptr = 0;
crypto/heimdal/lib/ipc/server.c
858
output_data(c, proto, strlen(proto));
crypto/heimdal/lib/ipc/server.c
859
output_data(c, msg, strlen(msg));
crypto/heimdal/lib/ipc/server.c
867
handle_read(struct client *c)
crypto/heimdal/lib/ipc/server.c
872
if (c->flags & LISTEN_SOCKET) {
crypto/heimdal/lib/ipc/server.c
873
add_new_socket(c->fd,
crypto/heimdal/lib/ipc/server.c
874
WAITING_READ | (c->flags & INHERIT_MASK),
crypto/heimdal/lib/ipc/server.c
875
c->callback,
crypto/heimdal/lib/ipc/server.c
876
c->userctx);
crypto/heimdal/lib/ipc/server.c
880
if (c->ptr - c->len < 1024) {
crypto/heimdal/lib/ipc/server.c
881
c->inmsg = erealloc(c->inmsg,
crypto/heimdal/lib/ipc/server.c
882
c->len + 1024);
crypto/heimdal/lib/ipc/server.c
883
c->len += 1024;
crypto/heimdal/lib/ipc/server.c
886
len = read(c->fd, c->inmsg + c->ptr, c->len - c->ptr);
crypto/heimdal/lib/ipc/server.c
888
c->flags |= WAITING_CLOSE;
crypto/heimdal/lib/ipc/server.c
889
c->flags &= ~WAITING_READ;
crypto/heimdal/lib/ipc/server.c
892
c->ptr += len;
crypto/heimdal/lib/ipc/server.c
893
if (c->ptr > c->len)
crypto/heimdal/lib/ipc/server.c
896
while (c->ptr >= sizeof(dlen)) {
crypto/heimdal/lib/ipc/server.c
899
if((c->flags & ALLOW_HTTP) && c->ptr >= 4 &&
crypto/heimdal/lib/ipc/server.c
900
strncmp((char *)c->inmsg, "GET ", 4) == 0 &&
crypto/heimdal/lib/ipc/server.c
901
strncmp((char *)c->inmsg + c->ptr - 4, "\r\n\r\n", 4) == 0) {
crypto/heimdal/lib/ipc/server.c
904
c->inmsg[c->ptr - 4] = '\0';
crypto/heimdal/lib/ipc/server.c
906
c->flags |= HTTP_REPLY;
crypto/heimdal/lib/ipc/server.c
908
cs = handle_http_tcp(c);
crypto/heimdal/lib/ipc/server.c
910
c->flags |= WAITING_CLOSE;
crypto/heimdal/lib/ipc/server.c
911
c->flags &= ~WAITING_READ;
crypto/heimdal/lib/ipc/server.c
915
memcpy(&dlen, c->inmsg, sizeof(dlen));
crypto/heimdal/lib/ipc/server.c
919
c->flags |= WAITING_CLOSE;
crypto/heimdal/lib/ipc/server.c
920
c->flags &= ~WAITING_READ;
crypto/heimdal/lib/ipc/server.c
923
if (dlen > c->ptr - sizeof(dlen)) {
crypto/heimdal/lib/ipc/server.c
928
cs->c = c;
crypto/heimdal/lib/ipc/server.c
930
memcpy(cs->in.data, c->inmsg + sizeof(dlen), dlen);
crypto/heimdal/lib/ipc/server.c
933
c->ptr -= sizeof(dlen) + dlen;
crypto/heimdal/lib/ipc/server.c
934
memmove(c->inmsg,
crypto/heimdal/lib/ipc/server.c
935
c->inmsg + sizeof(dlen) + dlen,
crypto/heimdal/lib/ipc/server.c
936
c->ptr);
crypto/heimdal/lib/ipc/server.c
939
c->calls++;
crypto/heimdal/lib/ipc/server.c
941
if ((c->flags & UNIX_SOCKET) != 0) {
crypto/heimdal/lib/ipc/server.c
942
if (update_client_creds(c))
crypto/heimdal/lib/ipc/server.c
943
_heim_ipc_create_cred(c->unixrights.uid, c->unixrights.gid,
crypto/heimdal/lib/ipc/server.c
944
c->unixrights.pid, -1, &cs->cred);
crypto/heimdal/lib/ipc/server.c
947
c->callback(c->userctx, &cs->in,
crypto/heimdal/lib/ipc/server.c
954
handle_write(struct client *c)
crypto/heimdal/lib/ipc/server.c
958
len = write(c->fd, c->outmsg, c->olen);
crypto/heimdal/lib/ipc/server.c
960
c->flags |= WAITING_CLOSE;
crypto/heimdal/lib/ipc/server.c
961
c->flags &= ~(WAITING_WRITE);
crypto/heimdal/lib/ipc/server.c
962
} else if (c->olen != (size_t)len) {
crypto/heimdal/lib/ipc/server.c
963
memmove(&c->outmsg[0], &c->outmsg[len], c->olen - len);
crypto/heimdal/lib/ipc/server.c
964
c->olen -= len;
crypto/heimdal/lib/ipc/server.c
966
c->olen = 0;
crypto/heimdal/lib/ipc/server.c
967
free(c->outmsg);
crypto/heimdal/lib/ipc/server.c
968
c->outmsg = NULL;
crypto/heimdal/lib/ipc/server.c
969
c->flags &= ~(WAITING_WRITE);
crypto/heimdal/lib/kadm5/ad.c
1333
set_funcs(kadm5_ad_context *c)
crypto/heimdal/lib/kadm5/ad.c
1336
SET(c, chpass_principal);
crypto/heimdal/lib/kadm5/ad.c
1337
SET(c, chpass_principal_with_key);
crypto/heimdal/lib/kadm5/ad.c
1338
SET(c, create_principal);
crypto/heimdal/lib/kadm5/ad.c
1339
SET(c, delete_principal);
crypto/heimdal/lib/kadm5/ad.c
1340
SET(c, destroy);
crypto/heimdal/lib/kadm5/ad.c
1341
SET(c, flush);
crypto/heimdal/lib/kadm5/ad.c
1342
SET(c, get_principal);
crypto/heimdal/lib/kadm5/ad.c
1343
SET(c, get_principals);
crypto/heimdal/lib/kadm5/ad.c
1344
SET(c, get_privs);
crypto/heimdal/lib/kadm5/ad.c
1345
SET(c, modify_principal);
crypto/heimdal/lib/kadm5/ad.c
1346
SET(c, randkey_principal);
crypto/heimdal/lib/kadm5/ad.c
1347
SET(c, rename_principal);
crypto/heimdal/lib/kadm5/context_s.c
39
set_funcs(kadm5_server_context *c)
crypto/heimdal/lib/kadm5/context_s.c
42
SET(c, chpass_principal);
crypto/heimdal/lib/kadm5/context_s.c
43
SET(c, chpass_principal_with_key);
crypto/heimdal/lib/kadm5/context_s.c
44
SET(c, create_principal);
crypto/heimdal/lib/kadm5/context_s.c
45
SET(c, delete_principal);
crypto/heimdal/lib/kadm5/context_s.c
46
SET(c, destroy);
crypto/heimdal/lib/kadm5/context_s.c
47
SET(c, flush);
crypto/heimdal/lib/kadm5/context_s.c
48
SET(c, get_principal);
crypto/heimdal/lib/kadm5/context_s.c
49
SET(c, get_principals);
crypto/heimdal/lib/kadm5/context_s.c
50
SET(c, get_privs);
crypto/heimdal/lib/kadm5/context_s.c
51
SET(c, modify_principal);
crypto/heimdal/lib/kadm5/context_s.c
52
SET(c, randkey_principal);
crypto/heimdal/lib/kadm5/context_s.c
53
SET(c, rename_principal);
crypto/heimdal/lib/kadm5/destroy_s.c
43
destroy_config (kadm5_config_params *c)
crypto/heimdal/lib/kadm5/destroy_s.c
45
free (c->realm);
crypto/heimdal/lib/kadm5/destroy_s.c
46
free (c->dbname);
crypto/heimdal/lib/kadm5/destroy_s.c
47
free (c->acl_file);
crypto/heimdal/lib/kadm5/destroy_s.c
48
free (c->stash_file);
crypto/heimdal/lib/kadm5/destroy_s.c
56
destroy_kadm5_log_context (kadm5_log_context *c)
crypto/heimdal/lib/kadm5/destroy_s.c
58
free (c->log_file);
crypto/heimdal/lib/kadm5/destroy_s.c
59
rk_closesocket (c->socket_fd);
crypto/heimdal/lib/kadm5/destroy_s.c
61
if (c->socket_info) {
crypto/heimdal/lib/kadm5/destroy_s.c
62
freeaddrinfo(c->socket_info);
crypto/heimdal/lib/kadm5/destroy_s.c
63
c->socket_info = NULL;
crypto/heimdal/lib/kadm5/init_c.c
49
set_funcs(kadm5_client_context *c)
crypto/heimdal/lib/kadm5/init_c.c
52
SET(c, chpass_principal);
crypto/heimdal/lib/kadm5/init_c.c
53
SET(c, chpass_principal_with_key);
crypto/heimdal/lib/kadm5/init_c.c
54
SET(c, create_principal);
crypto/heimdal/lib/kadm5/init_c.c
55
SET(c, delete_principal);
crypto/heimdal/lib/kadm5/init_c.c
56
SET(c, destroy);
crypto/heimdal/lib/kadm5/init_c.c
57
SET(c, flush);
crypto/heimdal/lib/kadm5/init_c.c
58
SET(c, get_principal);
crypto/heimdal/lib/kadm5/init_c.c
59
SET(c, get_principals);
crypto/heimdal/lib/kadm5/init_c.c
60
SET(c, get_privs);
crypto/heimdal/lib/kadm5/init_c.c
61
SET(c, modify_principal);
crypto/heimdal/lib/kadm5/init_c.c
62
SET(c, randkey_principal);
crypto/heimdal/lib/kadm5/init_c.c
63
SET(c, rename_principal);
crypto/heimdal/lib/kadm5/iprop-log.c
434
SL_cmd *c = sl_match (commands, argv[0], 0);
crypto/heimdal/lib/kadm5/iprop-log.c
435
if(c == NULL) {
crypto/heimdal/lib/kadm5/iprop-log.c
440
if(c->func) {
crypto/heimdal/lib/kadm5/iprop-log.c
446
(*c->func)(2, fake);
crypto/heimdal/lib/kadm5/iprop-log.c
449
if(c->help && *c->help)
crypto/heimdal/lib/kadm5/iprop-log.c
450
fprintf (stderr, "%s\n", c->help);
crypto/heimdal/lib/kadm5/iprop-log.c
451
if((++c)->name && c->func == NULL) {
crypto/heimdal/lib/kadm5/iprop-log.c
454
while (c->name && c->func == NULL) {
crypto/heimdal/lib/kadm5/iprop-log.c
455
fprintf (stderr, "%s%s", f ? ", " : " ", (c++)->name);
crypto/heimdal/lib/kadm5/marshall.c
100
c.length = tl->tl_data_length;
crypto/heimdal/lib/kadm5/marshall.c
101
c.data = tl->tl_data_contents;
crypto/heimdal/lib/kadm5/marshall.c
102
CHECK(krb5_store_data(sp, c));
crypto/heimdal/lib/kadm5/marshall.c
110
krb5_data c;
crypto/heimdal/lib/kadm5/marshall.c
114
CHECK(krb5_ret_data(sp, &c));
crypto/heimdal/lib/kadm5/marshall.c
115
tl->tl_data_length = c.length;
crypto/heimdal/lib/kadm5/marshall.c
116
tl->tl_data_contents = c.data;
crypto/heimdal/lib/kadm5/marshall.c
43
krb5_data c;
crypto/heimdal/lib/kadm5/marshall.c
47
c.length = key->key_data_length[0];
crypto/heimdal/lib/kadm5/marshall.c
48
c.data = key->key_data_contents[0];
crypto/heimdal/lib/kadm5/marshall.c
49
CHECK(krb5_store_data(sp, c));
crypto/heimdal/lib/kadm5/marshall.c
51
c.length = key->key_data_length[1];
crypto/heimdal/lib/kadm5/marshall.c
52
c.data = key->key_data_contents[1];
crypto/heimdal/lib/kadm5/marshall.c
53
CHECK(krb5_store_data(sp, c));
crypto/heimdal/lib/kadm5/marshall.c
62
krb5_data c;
crypto/heimdal/lib/kadm5/marshall.c
75
ret = krb5_ret_data(sp, &c);
crypto/heimdal/lib/kadm5/marshall.c
78
key->key_data_length[0] = c.length;
crypto/heimdal/lib/kadm5/marshall.c
79
key->key_data_contents[0] = c.data;
crypto/heimdal/lib/kadm5/marshall.c
84
ret = krb5_ret_data(sp, &c);
crypto/heimdal/lib/kadm5/marshall.c
87
key->key_data_length[1] = c.length;
crypto/heimdal/lib/kadm5/marshall.c
88
key->key_data_contents[1] = c.data;
crypto/heimdal/lib/kadm5/marshall.c
98
krb5_data c;
crypto/heimdal/lib/kafs/afskrb5.c
117
char *c, *val;
crypto/heimdal/lib/kafs/afskrb5.c
119
c = strdup(cell);
crypto/heimdal/lib/kafs/afskrb5.c
120
if (c == NULL)
crypto/heimdal/lib/kafs/afskrb5.c
122
_kafs_foldup(c, c);
crypto/heimdal/lib/kafs/afskrb5.c
124
c,
crypto/heimdal/lib/kafs/afskrb5.c
126
free(c);
crypto/heimdal/lib/kafs/common.c
42
#define IsAsciiLower(c) ('a' <= (c) && (c) <= 'z')
crypto/heimdal/lib/kafs/common.c
44
#define ToAsciiUpper(c) ((c) - 'a' + 'A')
crypto/heimdal/lib/krb5/cache.c
1473
krb5_cccol_cursor c = *cursor;
crypto/heimdal/lib/krb5/cache.c
1476
if (c) {
crypto/heimdal/lib/krb5/cache.c
1477
if (c->cursor)
crypto/heimdal/lib/krb5/cache.c
1478
krb5_cc_cache_end_seq_get(context, c->cursor);
crypto/heimdal/lib/krb5/cache.c
1479
free(c);
crypto/heimdal/lib/krb5/config_file.c
1035
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
1040
str = krb5_config_vget_string (context, c, args);
crypto/heimdal/lib/krb5/config_file.c
1065
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
1068
return krb5_config_vget_bool_default (context, c, FALSE, args);
crypto/heimdal/lib/krb5/config_file.c
1089
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
1096
ret = krb5_config_vget_bool_default(context, c, def_value, ap);
crypto/heimdal/lib/krb5/config_file.c
1119
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
1124
va_start(ap, c);
crypto/heimdal/lib/krb5/config_file.c
1125
ret = krb5_config_vget_bool (context, c, ap);
crypto/heimdal/lib/krb5/config_file.c
1149
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
1156
str = krb5_config_vget_string (context, c, args);
crypto/heimdal/lib/krb5/config_file.c
1178
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
1181
return krb5_config_vget_time_default (context, c, -1, args);
crypto/heimdal/lib/krb5/config_file.c
1200
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
1207
ret = krb5_config_vget_time_default(context, c, def_value, ap);
crypto/heimdal/lib/krb5/config_file.c
1226
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
1231
va_start(ap, c);
crypto/heimdal/lib/krb5/config_file.c
1232
ret = krb5_config_vget_time (context, c, ap);
crypto/heimdal/lib/krb5/config_file.c
1240
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
1245
str = krb5_config_vget_string (context, c, args);
crypto/heimdal/lib/krb5/config_file.c
1261
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
1264
return krb5_config_vget_int_default (context, c, -1, args);
crypto/heimdal/lib/krb5/config_file.c
1269
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
1276
ret = krb5_config_vget_int_default(context, c, def_value, ap);
crypto/heimdal/lib/krb5/config_file.c
1283
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
1288
va_start(ap, c);
crypto/heimdal/lib/krb5/config_file.c
1289
ret = krb5_config_vget_int (context, c, ap);
crypto/heimdal/lib/krb5/config_file.c
575
krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
582
while (c) {
crypto/heimdal/lib/krb5/config_file.c
588
d->name = strdup(c->name);
crypto/heimdal/lib/krb5/config_file.c
589
d->type = c->type;
crypto/heimdal/lib/krb5/config_file.c
591
d->u.string = strdup(c->u.string);
crypto/heimdal/lib/krb5/config_file.c
593
_krb5_config_copy (context, c->u.list, &d->u.list);
crypto/heimdal/lib/krb5/config_file.c
602
c = c->next;
crypto/heimdal/lib/krb5/config_file.c
611
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
620
ret = _krb5_config_vget_next (context, c, pointer, type, args);
crypto/heimdal/lib/krb5/config_file.c
650
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
658
if(c == NULL)
crypto/heimdal/lib/krb5/config_file.c
659
c = context->cf;
crypto/heimdal/lib/krb5/config_file.c
661
if (c == NULL)
crypto/heimdal/lib/krb5/config_file.c
670
return vget_next(context, c, pointer, type, p, args);
crypto/heimdal/lib/krb5/config_file.c
686
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
694
ret = _krb5_config_vget (context, c, type, args);
crypto/heimdal/lib/krb5/config_file.c
702
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
708
return _krb5_config_vget_next (context, c, &foo, type, args);
crypto/heimdal/lib/krb5/config_file.c
725
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
731
va_start(args, c);
crypto/heimdal/lib/krb5/config_file.c
732
ret = krb5_config_vget_list (context, c, args);
crypto/heimdal/lib/krb5/config_file.c
751
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
754
return _krb5_config_vget (context, c, krb5_config_list, args);
crypto/heimdal/lib/krb5/config_file.c
774
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
780
va_start(args, c);
crypto/heimdal/lib/krb5/config_file.c
781
ret = krb5_config_vget_string (context, c, args);
crypto/heimdal/lib/krb5/config_file.c
800
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
803
return _krb5_config_vget (context, c, krb5_config_string, args);
crypto/heimdal/lib/krb5/config_file.c
823
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
829
ret = krb5_config_vget_string (context, c, args);
crypto/heimdal/lib/krb5/config_file.c
852
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
860
ret = krb5_config_vget_string_default (context, c, def_value, args);
crypto/heimdal/lib/krb5/config_file.c
924
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
932
while((p = _krb5_config_vget_next(context, c, &b,
crypto/heimdal/lib/krb5/config_file.c
984
const krb5_config_section *c,
crypto/heimdal/lib/krb5/config_file.c
989
va_start(ap, c);
crypto/heimdal/lib/krb5/config_file.c
990
ret = krb5_config_vget_strings(context, c, ap);
crypto/heimdal/lib/krb5/creds.c
100
ret = krb5_data_copy (&c->second_ticket,
crypto/heimdal/lib/krb5/creds.c
105
ret = copy_AuthorizationData(&incred->authdata, &c->authdata);
crypto/heimdal/lib/krb5/creds.c
110
&c->addresses);
crypto/heimdal/lib/krb5/creds.c
113
c->flags = incred->flags;
crypto/heimdal/lib/krb5/creds.c
117
krb5_free_cred_contents (context, c);
crypto/heimdal/lib/krb5/creds.c
139
krb5_creds *c;
crypto/heimdal/lib/krb5/creds.c
141
c = malloc (sizeof (*c));
crypto/heimdal/lib/krb5/creds.c
142
if (c == NULL) {
crypto/heimdal/lib/krb5/creds.c
147
memset (c, 0, sizeof(*c));
crypto/heimdal/lib/krb5/creds.c
148
*outcred = c;
crypto/heimdal/lib/krb5/creds.c
149
return krb5_copy_creds_contents (context, incred, c);
crypto/heimdal/lib/krb5/creds.c
165
krb5_free_creds (krb5_context context, krb5_creds *c)
crypto/heimdal/lib/krb5/creds.c
167
krb5_free_cred_contents (context, c);
crypto/heimdal/lib/krb5/creds.c
168
free (c);
crypto/heimdal/lib/krb5/creds.c
49
krb5_free_cred_contents (krb5_context context, krb5_creds *c)
crypto/heimdal/lib/krb5/creds.c
51
krb5_free_principal (context, c->client);
crypto/heimdal/lib/krb5/creds.c
52
c->client = NULL;
crypto/heimdal/lib/krb5/creds.c
53
krb5_free_principal (context, c->server);
crypto/heimdal/lib/krb5/creds.c
54
c->server = NULL;
crypto/heimdal/lib/krb5/creds.c
55
krb5_free_keyblock_contents (context, &c->session);
crypto/heimdal/lib/krb5/creds.c
56
krb5_data_free (&c->ticket);
crypto/heimdal/lib/krb5/creds.c
57
krb5_data_free (&c->second_ticket);
crypto/heimdal/lib/krb5/creds.c
58
free_AuthorizationData (&c->authdata);
crypto/heimdal/lib/krb5/creds.c
59
krb5_free_addresses (context, &c->addresses);
crypto/heimdal/lib/krb5/creds.c
60
memset(c, 0, sizeof(*c));
crypto/heimdal/lib/krb5/creds.c
80
krb5_creds *c)
crypto/heimdal/lib/krb5/creds.c
84
memset(c, 0, sizeof(*c));
crypto/heimdal/lib/krb5/creds.c
85
ret = krb5_copy_principal (context, incred->client, &c->client);
crypto/heimdal/lib/krb5/creds.c
88
ret = krb5_copy_principal (context, incred->server, &c->server);
crypto/heimdal/lib/krb5/creds.c
91
ret = krb5_copy_keyblock_contents (context, &incred->session, &c->session);
crypto/heimdal/lib/krb5/creds.c
94
c->times = incred->times;
crypto/heimdal/lib/krb5/creds.c
95
ret = krb5_data_copy (&c->ticket,
crypto/heimdal/lib/krb5/crypto-aes.c
126
const EVP_CIPHER *c = (*crypto->et->keytype->evp)();
crypto/heimdal/lib/krb5/crypto-aes.c
132
EVP_CipherInit_ex(ctx, c, NULL, derived->keyvalue.data, NULL, 1);
crypto/heimdal/lib/krb5/crypto-arcfour.c
102
ret = _krb5_internal_hmac(context, c, tmp, sizeof(tmp), 0, &ksign, result);
crypto/heimdal/lib/krb5/crypto-arcfour.c
133
struct _krb5_checksum_type *c = _krb5_find_checksum (CKSUMTYPE_RSA_MD5);
crypto/heimdal/lib/krb5/crypto-arcfour.c
150
ret = _krb5_internal_hmac(NULL, c, t, sizeof(t), 0, key, &k1_c);
crypto/heimdal/lib/krb5/crypto-arcfour.c
165
ret = _krb5_internal_hmac(NULL, c, cdata + 16, len - 16, 0, &ke, &cksum);
crypto/heimdal/lib/krb5/crypto-arcfour.c
175
ret = _krb5_internal_hmac(NULL, c, data, 16, 0, &ke, &k3_c);
crypto/heimdal/lib/krb5/crypto-arcfour.c
202
struct _krb5_checksum_type *c = _krb5_find_checksum (CKSUMTYPE_RSA_MD5);
crypto/heimdal/lib/krb5/crypto-arcfour.c
220
ret = _krb5_internal_hmac(NULL, c, t, sizeof(t), 0, key, &k1_c);
crypto/heimdal/lib/krb5/crypto-arcfour.c
235
ret = _krb5_internal_hmac(NULL, c, cdata, 16, 0, &ke, &k3_c);
crypto/heimdal/lib/krb5/crypto-arcfour.c
252
ret = _krb5_internal_hmac(NULL, c, cdata + 16, len - 16, 0, &ke, &cksum);
crypto/heimdal/lib/krb5/crypto-arcfour.c
67
struct _krb5_checksum_type *c = _krb5_find_checksum (CKSUMTYPE_RSA_MD5);
crypto/heimdal/lib/krb5/crypto-arcfour.c
84
ret = _krb5_internal_hmac(context, c, signature, sizeof(signature),
crypto/heimdal/lib/krb5/crypto-des.c
225
EVP_CIPHER_CTX *c;
crypto/heimdal/lib/krb5/crypto-des.c
228
c = encryptp ? ctx->ectx : ctx->dctx;
crypto/heimdal/lib/krb5/crypto-des.c
229
EVP_CipherInit_ex(c, NULL, NULL, NULL, (void *)&ivec, -1);
crypto/heimdal/lib/krb5/crypto-des.c
230
EVP_Cipher(c, data, data, len);
crypto/heimdal/lib/krb5/crypto-des.c
244
EVP_CIPHER_CTX *c;
crypto/heimdal/lib/krb5/crypto-des.c
247
c = encryptp ? ctx->ectx : ctx->dctx;
crypto/heimdal/lib/krb5/crypto-des.c
248
EVP_CipherInit_ex(c, NULL, NULL, NULL, (void *)&ivec, -1);
crypto/heimdal/lib/krb5/crypto-des.c
249
EVP_Cipher(c, data, data, len);
crypto/heimdal/lib/krb5/crypto-evp.c
104
EVP_CIPHER_CTX *c;
crypto/heimdal/lib/krb5/crypto-evp.c
107
c = encryptp ? ctx->ectx : ctx->dctx;
crypto/heimdal/lib/krb5/crypto-evp.c
109
blocksize = EVP_CIPHER_CTX_block_size(c);
crypto/heimdal/lib/krb5/crypto-evp.c
116
EVP_CipherInit_ex(c, NULL, NULL, NULL, zero_ivec, -1);
crypto/heimdal/lib/krb5/crypto-evp.c
117
EVP_Cipher(c, data, data, len);
crypto/heimdal/lib/krb5/crypto-evp.c
122
EVP_CipherInit_ex(c, NULL, NULL, NULL, ivec, -1);
crypto/heimdal/lib/krb5/crypto-evp.c
124
EVP_CipherInit_ex(c, NULL, NULL, NULL, zero_ivec, -1);
crypto/heimdal/lib/krb5/crypto-evp.c
130
EVP_Cipher(c, p, p, i);
crypto/heimdal/lib/krb5/crypto-evp.c
140
EVP_CipherInit_ex(c, NULL, NULL, NULL, zero_ivec, -1);
crypto/heimdal/lib/krb5/crypto-evp.c
141
EVP_Cipher(c, p, tmp, blocksize);
crypto/heimdal/lib/krb5/crypto-evp.c
154
EVP_Cipher(c, p, p, i);
crypto/heimdal/lib/krb5/crypto-evp.c
166
EVP_CipherInit_ex(c, NULL, NULL, NULL, zero_ivec, -1);
crypto/heimdal/lib/krb5/crypto-evp.c
167
EVP_Cipher(c, tmp2, p, blocksize);
crypto/heimdal/lib/krb5/crypto-evp.c
175
EVP_CipherInit_ex(c, NULL, NULL, NULL, zero_ivec, -1);
crypto/heimdal/lib/krb5/crypto-evp.c
176
EVP_Cipher(c, p, tmp3, blocksize);
crypto/heimdal/lib/krb5/crypto-evp.c
42
const EVP_CIPHER *c = (*kt->evp)();
crypto/heimdal/lib/krb5/crypto-evp.c
49
EVP_CipherInit_ex(key->ectx, c, NULL, kd->key->keyvalue.data, NULL, 1);
crypto/heimdal/lib/krb5/crypto-evp.c
50
EVP_CipherInit_ex(key->dctx, c, NULL, kd->key->keyvalue.data, NULL, 0);
crypto/heimdal/lib/krb5/crypto-evp.c
71
EVP_CIPHER_CTX *c;
crypto/heimdal/lib/krb5/crypto-evp.c
72
c = encryptp ? ctx->ectx : ctx->dctx;
crypto/heimdal/lib/krb5/crypto-evp.c
75
size_t len2 = EVP_CIPHER_CTX_iv_length(c);
crypto/heimdal/lib/krb5/crypto-evp.c
82
EVP_CipherInit_ex(c, NULL, NULL, NULL, loiv, -1);
crypto/heimdal/lib/krb5/crypto-evp.c
85
EVP_CipherInit_ex(c, NULL, NULL, NULL, ivec, -1);
crypto/heimdal/lib/krb5/crypto-evp.c
86
EVP_Cipher(c, data, data, len);
crypto/heimdal/lib/krb5/crypto-stubs.c
98
const krb5_config_section *c,
crypto/heimdal/lib/krb5/crypto.c
1881
void *c = malloc(len);
crypto/heimdal/lib/krb5/crypto.c
1884
if(len != 0 && c == NULL) {
crypto/heimdal/lib/krb5/crypto.c
1889
memcpy(c, constant, len);
crypto/heimdal/lib/krb5/crypto.c
1890
(*et->encrypt)(context, key, c, len, 1, 0, NULL);
crypto/heimdal/lib/krb5/crypto.c
1893
free(c);
crypto/heimdal/lib/krb5/crypto.c
1898
ret = _krb5_n_fold(c, len, k, res_len);
crypto/heimdal/lib/krb5/crypto.c
1899
free(c);
crypto/heimdal/lib/krb5/crypto.c
248
struct _krb5_checksum_type *c = _krb5_find_checksum(cktype);
crypto/heimdal/lib/krb5/crypto.c
252
if (c == NULL) {
crypto/heimdal/lib/krb5/crypto.c
262
ret = _krb5_internal_hmac(context, c, data, len, usage, &kd, result);
crypto/heimdal/lib/krb5/crypto.c
278
struct _krb5_checksum_type *c = _krb5_find_checksum(CKSUMTYPE_SHA1);
crypto/heimdal/lib/krb5/crypto.c
286
ret = _krb5_internal_hmac(context, c, data, len, usage, key, &res);
crypto/heimdal/lib/krb5/crypto.c
439
Checksum c;
crypto/heimdal/lib/krb5/crypto.c
500
ret = krb5_data_alloc (&c.checksum, ct->checksumsize);
crypto/heimdal/lib/krb5/crypto.c
504
ret = (*ct->checksum)(context, dkey, data, len, usage, &c);
crypto/heimdal/lib/krb5/crypto.c
506
krb5_data_free(&c.checksum);
crypto/heimdal/lib/krb5/crypto.c
510
if(krb5_data_ct_cmp(&c.checksum, &cksum->checksum) != 0) {
crypto/heimdal/lib/krb5/crypto.c
519
krb5_data_free (&c.checksum);
crypto/heimdal/lib/krb5/crypto.c
777
struct _krb5_checksum_type *c = _krb5_find_checksum(ctype);
crypto/heimdal/lib/krb5/crypto.c
778
if (c == NULL) {
crypto/heimdal/lib/krb5/crypto.c
784
if (c->flags & F_DISABLED) {
crypto/heimdal/lib/krb5/crypto.c
787
c->name);
crypto/heimdal/lib/krb5/deprecated.c
433
krb5_free_creds_contents (krb5_context context, krb5_creds *c)
crypto/heimdal/lib/krb5/deprecated.c
436
return krb5_free_cred_contents (context, c);
crypto/heimdal/lib/krb5/expand_path.c
492
char * c;
crypto/heimdal/lib/krb5/expand_path.c
493
for (c = *ppath_out; *c; c++)
crypto/heimdal/lib/krb5/expand_path.c
494
if (*c == '/')
crypto/heimdal/lib/krb5/expand_path.c
495
*c = '\\';
crypto/heimdal/lib/krb5/kcm.c
534
krb5_kcm_cursor c;
crypto/heimdal/lib/krb5/kcm.c
554
c = calloc(1, sizeof(*c));
crypto/heimdal/lib/krb5/kcm.c
555
if (c == NULL) {
crypto/heimdal/lib/krb5/kcm.c
576
ptr = realloc(c->uuids, sizeof(c->uuids[0]) * (c->length + 1));
crypto/heimdal/lib/krb5/kcm.c
578
free(c->uuids);
crypto/heimdal/lib/krb5/kcm.c
579
free(c);
crypto/heimdal/lib/krb5/kcm.c
584
c->uuids = ptr;
crypto/heimdal/lib/krb5/kcm.c
586
memcpy(&c->uuids[c->length], &uuid, sizeof(uuid));
crypto/heimdal/lib/krb5/kcm.c
587
c->length += 1;
crypto/heimdal/lib/krb5/kcm.c
594
free(c->uuids);
crypto/heimdal/lib/krb5/kcm.c
595
free(c);
crypto/heimdal/lib/krb5/kcm.c
599
*cursor = c;
crypto/heimdal/lib/krb5/kcm.c
620
krb5_kcm_cursor c = KCMCURSOR(*cursor);
crypto/heimdal/lib/krb5/kcm.c
627
if (c->offset >= c->length)
crypto/heimdal/lib/krb5/kcm.c
641
&c->uuids[c->offset],
crypto/heimdal/lib/krb5/kcm.c
642
sizeof(c->uuids[c->offset]));
crypto/heimdal/lib/krb5/kcm.c
643
c->offset++;
crypto/heimdal/lib/krb5/kcm.c
644
if (sret != sizeof(c->uuids[c->offset])) {
crypto/heimdal/lib/krb5/kcm.c
679
krb5_kcm_cursor c = KCMCURSOR(*cursor);
crypto/heimdal/lib/krb5/kcm.c
681
free(c->uuids);
crypto/heimdal/lib/krb5/kcm.c
682
free(c);
crypto/heimdal/lib/krb5/kcm.c
783
krb5_kcm_cursor c;
crypto/heimdal/lib/krb5/kcm.c
789
c = calloc(1, sizeof(*c));
crypto/heimdal/lib/krb5/kcm.c
790
if (c == NULL) {
crypto/heimdal/lib/krb5/kcm.c
820
ptr = realloc(c->uuids, sizeof(c->uuids[0]) * (c->length + 1));
crypto/heimdal/lib/krb5/kcm.c
827
c->uuids = ptr;
crypto/heimdal/lib/krb5/kcm.c
829
memcpy(&c->uuids[c->length], &uuid, sizeof(uuid));
crypto/heimdal/lib/krb5/kcm.c
830
c->length += 1;
crypto/heimdal/lib/krb5/kcm.c
837
if (ret && c) {
crypto/heimdal/lib/krb5/kcm.c
838
free(c->uuids);
crypto/heimdal/lib/krb5/kcm.c
839
free(c);
crypto/heimdal/lib/krb5/kcm.c
841
*cursor = c;
crypto/heimdal/lib/krb5/kcm.c
855
krb5_kcm_cursor c = KCMCURSOR(cursor);
crypto/heimdal/lib/krb5/kcm.c
865
if (c->offset >= c->length)
crypto/heimdal/lib/krb5/kcm.c
873
&c->uuids[c->offset],
crypto/heimdal/lib/krb5/kcm.c
874
sizeof(c->uuids[c->offset]));
crypto/heimdal/lib/krb5/kcm.c
875
c->offset++;
crypto/heimdal/lib/krb5/kcm.c
876
if (sret != sizeof(c->uuids[c->offset])) {
crypto/heimdal/lib/krb5/kcm.c
921
krb5_kcm_cursor c = KCMCURSOR(cursor);
crypto/heimdal/lib/krb5/kcm.c
923
free(c->uuids);
crypto/heimdal/lib/krb5/kcm.c
924
free(c);
crypto/heimdal/lib/krb5/keytab_any.c
127
krb5_kt_cursor *c)
crypto/heimdal/lib/krb5/keytab_any.c
133
c->data = malloc (sizeof(struct any_cursor_extra_data));
crypto/heimdal/lib/krb5/keytab_any.c
134
if(c->data == NULL){
crypto/heimdal/lib/krb5/keytab_any.c
138
ed = (struct any_cursor_extra_data *)c->data;
crypto/heimdal/lib/krb5/keytab_any.c
145
free (c->data);
crypto/heimdal/lib/krb5/keytab_any.c
146
c->data = NULL;
crypto/heimdal/lib/krb5/keytab_file.c
376
krb5_kt_cursor *c)
crypto/heimdal/lib/krb5/keytab_file.c
382
c->fd = open (d->filename, flags);
crypto/heimdal/lib/krb5/keytab_file.c
383
if (c->fd < 0) {
crypto/heimdal/lib/krb5/keytab_file.c
390
rk_cloexec(c->fd);
crypto/heimdal/lib/krb5/keytab_file.c
391
ret = _krb5_xlock(context, c->fd, exclusive, d->filename);
crypto/heimdal/lib/krb5/keytab_file.c
393
close(c->fd);
crypto/heimdal/lib/krb5/keytab_file.c
396
c->sp = krb5_storage_from_fd(c->fd);
crypto/heimdal/lib/krb5/keytab_file.c
397
if (c->sp == NULL) {
crypto/heimdal/lib/krb5/keytab_file.c
398
_krb5_xunlock(context, c->fd);
crypto/heimdal/lib/krb5/keytab_file.c
399
close(c->fd);
crypto/heimdal/lib/krb5/keytab_file.c
404
krb5_storage_set_eof_code(c->sp, KRB5_KT_END);
crypto/heimdal/lib/krb5/keytab_file.c
405
ret = krb5_ret_int8(c->sp, &pvno);
crypto/heimdal/lib/krb5/keytab_file.c
407
krb5_storage_free(c->sp);
crypto/heimdal/lib/krb5/keytab_file.c
408
_krb5_xunlock(context, c->fd);
crypto/heimdal/lib/krb5/keytab_file.c
409
close(c->fd);
crypto/heimdal/lib/krb5/keytab_file.c
414
krb5_storage_free(c->sp);
crypto/heimdal/lib/krb5/keytab_file.c
415
_krb5_xunlock(context, c->fd);
crypto/heimdal/lib/krb5/keytab_file.c
416
close(c->fd);
crypto/heimdal/lib/krb5/keytab_file.c
420
ret = krb5_ret_int8(c->sp, &tag);
crypto/heimdal/lib/krb5/keytab_file.c
422
krb5_storage_free(c->sp);
crypto/heimdal/lib/krb5/keytab_file.c
423
_krb5_xunlock(context, c->fd);
crypto/heimdal/lib/krb5/keytab_file.c
424
close(c->fd);
crypto/heimdal/lib/krb5/keytab_file.c
429
storage_set_flags(context, c->sp, id->version);
crypto/heimdal/lib/krb5/keytab_file.c
436
krb5_kt_cursor *c)
crypto/heimdal/lib/krb5/keytab_file.c
438
return fkt_start_seq_get_int(context, id, O_RDONLY | O_BINARY | O_CLOEXEC, 0, c);
crypto/heimdal/lib/krb5/keytab_keyfile.c
201
krb5_kt_cursor *c)
crypto/heimdal/lib/krb5/keytab_keyfile.c
206
c->fd = open (d->filename, O_RDONLY | O_BINARY | O_CLOEXEC, 0600);
crypto/heimdal/lib/krb5/keytab_keyfile.c
207
if (c->fd < 0) {
crypto/heimdal/lib/krb5/keytab_keyfile.c
215
c->data = NULL;
crypto/heimdal/lib/krb5/keytab_keyfile.c
216
c->sp = krb5_storage_from_fd(c->fd);
crypto/heimdal/lib/krb5/keytab_keyfile.c
217
if (c->sp == NULL) {
crypto/heimdal/lib/krb5/keytab_keyfile.c
218
close(c->fd);
crypto/heimdal/lib/krb5/keytab_keyfile.c
222
krb5_storage_set_eof_code(c->sp, KRB5_KT_END);
crypto/heimdal/lib/krb5/keytab_keyfile.c
224
ret = krb5_ret_uint32(c->sp, &d->num_entries);
crypto/heimdal/lib/krb5/keytab_keyfile.c
226
krb5_storage_free(c->sp);
crypto/heimdal/lib/krb5/keytab_keyfile.c
227
close(c->fd);
crypto/heimdal/lib/krb5/keytab_memory.c
143
krb5_kt_cursor *c)
crypto/heimdal/lib/krb5/keytab_memory.c
146
c->fd = 0;
crypto/heimdal/lib/krb5/keytab_memory.c
154
krb5_kt_cursor *c)
crypto/heimdal/lib/krb5/keytab_memory.c
157
if(c->fd >= d->num_entries)
crypto/heimdal/lib/krb5/keytab_memory.c
159
return krb5_kt_copy_entry_contents(context, &d->entries[c->fd++], entry);
crypto/heimdal/lib/krb5/krb5.h
933
#define krb5_enomem(c) (krb5_enomem(c), ENOMEM)
crypto/heimdal/lib/krb5/kuserok.c
84
int c;
crypto/heimdal/lib/krb5/kuserok.c
85
c = fgetc(f);
crypto/heimdal/lib/krb5/kuserok.c
86
if(c != EOF) {
crypto/heimdal/lib/krb5/kuserok.c
87
while(c != EOF && c != '\n')
crypto/heimdal/lib/krb5/kuserok.c
88
c = fgetc(f);
crypto/heimdal/lib/krb5/log.c
278
char c;
crypto/heimdal/lib/krb5/log.c
281
n = sscanf(p, "%d%c%d/", &min, &c, &max);
crypto/heimdal/lib/krb5/log.c
283
if(c == '/') {
crypto/heimdal/lib/krb5/mk_req_ext.c
102
&c);
crypto/heimdal/lib/krb5/mk_req_ext.c
115
&c);
crypto/heimdal/lib/krb5/mk_req_ext.c
118
c_opt = &c;
crypto/heimdal/lib/krb5/mk_req_ext.c
48
Checksum c;
crypto/heimdal/lib/krb5/mk_req_ext.c
90
&c);
crypto/heimdal/lib/krb5/pkinit.c
1646
void *c,
crypto/heimdal/lib/krb5/pkinit.c
1654
krb5_pk_init_ctx ctx = c;
crypto/heimdal/lib/krb5/pkinit.c
1868
hx509_certs c = hx509_certs_ref(certs);
crypto/heimdal/lib/krb5/pkinit.c
1879
ctx->id->certs = c;
crypto/heimdal/lib/krb5/pkinit.c
265
cert2epi(hx509_context context, void *ctx, hx509_cert c)
crypto/heimdal/lib/krb5/pkinit.c
278
ret = hx509_cert_get_subject(c, &subject);
crypto/heimdal/lib/krb5/pkinit.c
314
ret = hx509_cert_get_issuer(c, &issuer);
crypto/heimdal/lib/krb5/pkinit.c
327
ret = hx509_cert_get_serialnumber(c, &iasn.serialNumber);
crypto/heimdal/lib/krb5/pkinit.c
825
void *c,
crypto/heimdal/lib/krb5/pkinit.c
832
krb5_pk_init_ctx ctx = c;
crypto/heimdal/lib/krb5/principal.c
203
char c;
crypto/heimdal/lib/krb5/principal.c
255
c = *p++;
crypto/heimdal/lib/krb5/principal.c
256
if(c == '\\'){
crypto/heimdal/lib/krb5/principal.c
257
c = *p++;
crypto/heimdal/lib/krb5/principal.c
258
if(c == 'n')
crypto/heimdal/lib/krb5/principal.c
259
c = '\n';
crypto/heimdal/lib/krb5/principal.c
260
else if(c == 't')
crypto/heimdal/lib/krb5/principal.c
261
c = '\t';
crypto/heimdal/lib/krb5/principal.c
262
else if(c == 'b')
crypto/heimdal/lib/krb5/principal.c
263
c = '\b';
crypto/heimdal/lib/krb5/principal.c
264
else if(c == '0')
crypto/heimdal/lib/krb5/principal.c
265
c = '\0';
crypto/heimdal/lib/krb5/principal.c
266
else if(c == '\0') {
crypto/heimdal/lib/krb5/principal.c
273
if (c == '@')
crypto/heimdal/lib/krb5/principal.c
275
}else if((c == '/' && !enterprise) || c == '@'){
crypto/heimdal/lib/krb5/principal.c
293
if(c == '@')
crypto/heimdal/lib/krb5/principal.c
298
if(got_realm && (c == '/' || c == '\0')) {
crypto/heimdal/lib/krb5/principal.c
304
*q++ = c;
crypto/heimdal/lib/krb5/rd_safe.c
45
Checksum c;
crypto/heimdal/lib/krb5/rd_safe.c
49
c = safe->cksum;
crypto/heimdal/lib/krb5/rd_safe.c
75
&c);
crypto/heimdal/lib/krb5/rd_safe.c
78
safe->cksum = c;
crypto/heimdal/lib/krb5/salt-des.c
58
char c = ((i < pw.length) ? ((char*)pw.data)[i] : 0) ^
crypto/heimdal/lib/krb5/salt-des.c
61
password[i] = c ? c : 'X';
crypto/heimdal/lib/krb5/store.c
789
char c;
crypto/heimdal/lib/krb5/store.c
794
while((ret = sp->fetch(sp, &c, 1)) == 1){
crypto/heimdal/lib/krb5/store.c
807
s[len - 1] = c;
crypto/heimdal/lib/krb5/store.c
808
if(c == 0)
crypto/heimdal/lib/krb5/store.c
849
char c;
crypto/heimdal/lib/krb5/store.c
854
while((ret = sp->fetch(sp, &c, 1)) == 1){
crypto/heimdal/lib/krb5/store.c
857
if (c == '\r') {
crypto/heimdal/lib/krb5/store.c
861
if (expect_nl && c != '\n') {
crypto/heimdal/lib/krb5/store.c
876
if(c == '\n') {
crypto/heimdal/lib/krb5/store.c
880
s[len - 1] = c;
crypto/heimdal/lib/krb5/test_acl.c
36
#define RETVAL(c, r, e, s) \
crypto/heimdal/lib/krb5/test_acl.c
37
do { if (r != e) krb5_errx(c, 1, "%s", s); } while (0)
crypto/heimdal/lib/krb5/test_acl.c
38
#define STRINGMATCH(c, s, _s1, _s2) \
crypto/heimdal/lib/krb5/test_acl.c
41
krb5_errx(c, 1, "s1 or s2 is NULL"); \
crypto/heimdal/lib/krb5/test_acl.c
43
krb5_errx(c, 1, "%s", s); \
crypto/heimdal/lib/krb5/test_cc.c
104
char *c;
crypto/heimdal/lib/krb5/test_cc.c
127
if (asprintf(&c, "%s:%s", tc, nc) < 0 || c == NULL)
crypto/heimdal/lib/krb5/test_cc.c
132
ret = krb5_cc_resolve(context, c, &id2);
crypto/heimdal/lib/krb5/test_cc.c
147
ret = krb5_cc_resolve(context, c, &id2);
crypto/heimdal/lib/krb5/test_cc.c
156
free(c);
crypto/heimdal/lib/krb5/test_config.c
193
krb5_config_section *c = NULL;
crypto/heimdal/lib/krb5/test_config.c
201
ret = krb5_config_parse_file(context, "test_config_strings.out", &c);
crypto/heimdal/lib/krb5/test_config.c
210
ps = krb5_config_get_strings(context, c, "escapes", config_strings_tests[i].name,
crypto/heimdal/lib/krb5/test_config.c
233
ret = krb5_config_file_free(context, c);
crypto/heimdal/lib/krb5/verify_krb5_conf.c
290
char c;
crypto/heimdal/lib/krb5/verify_krb5_conf.c
293
n = sscanf(p, "%d%c%d/", &min, &c, &max);
crypto/heimdal/lib/krb5/verify_krb5_conf.c
295
if(c == '/') {
crypto/heimdal/lib/ntlm/ntlm.c
1170
HMAC_CTX *c;
crypto/heimdal/lib/ntlm/ntlm.c
1181
c = HMAC_CTX_new();
crypto/heimdal/lib/ntlm/ntlm.c
1182
if (c == NULL) {
crypto/heimdal/lib/ntlm/ntlm.c
1186
HMAC_Init_ex(c, key, len, EVP_md5(), NULL);
crypto/heimdal/lib/ntlm/ntlm.c
1187
HMAC_Update(c, ntlmResponse->data, 16);
crypto/heimdal/lib/ntlm/ntlm.c
1188
HMAC_Final(c, session->data, &hmaclen);
crypto/heimdal/lib/ntlm/ntlm.c
1189
HMAC_CTX_free(c);
crypto/heimdal/lib/ntlm/ntlm.c
1200
EVP_CIPHER_CTX *c;
crypto/heimdal/lib/ntlm/ntlm.c
1217
c = EVP_CIPHER_CTX_new();
crypto/heimdal/lib/ntlm/ntlm.c
1218
if (c == NULL) {
crypto/heimdal/lib/ntlm/ntlm.c
1224
ret = EVP_CipherInit_ex(c, EVP_rc4(), NULL, base_session->data, NULL, 1);
crypto/heimdal/lib/ntlm/ntlm.c
1226
EVP_CIPHER_CTX_free(c);
crypto/heimdal/lib/ntlm/ntlm.c
1233
EVP_CIPHER_CTX_free(c);
crypto/heimdal/lib/ntlm/ntlm.c
1239
EVP_Cipher(c, encryptedSession->data, session->data, encryptedSession->length);
crypto/heimdal/lib/ntlm/ntlm.c
1240
EVP_CIPHER_CTX_free(c);
crypto/heimdal/lib/ntlm/ntlm.c
1335
EVP_CIPHER_CTX *c;
crypto/heimdal/lib/ntlm/ntlm.c
1348
c = EVP_CIPHER_CTX_new();
crypto/heimdal/lib/ntlm/ntlm.c
1349
if (c == NULL) {
crypto/heimdal/lib/ntlm/ntlm.c
1354
if (EVP_CipherInit_ex(c, EVP_rc4(), NULL, baseKey->data, NULL, 0) != 1) {
crypto/heimdal/lib/ntlm/ntlm.c
1355
EVP_CIPHER_CTX_free(c);
crypto/heimdal/lib/ntlm/ntlm.c
1360
EVP_Cipher(c, session->data, encryptedSession->data, session->length);
crypto/heimdal/lib/ntlm/ntlm.c
1361
EVP_CIPHER_CTX_free(c);
crypto/heimdal/lib/ntlm/ntlm.c
1389
HMAC_CTX *c;
crypto/heimdal/lib/ntlm/ntlm.c
1391
c = HMAC_CTX_new();
crypto/heimdal/lib/ntlm/ntlm.c
1392
if (c == NULL)
crypto/heimdal/lib/ntlm/ntlm.c
1394
HMAC_Init_ex(c, key, len, EVP_md5(), NULL);
crypto/heimdal/lib/ntlm/ntlm.c
1401
HMAC_Update(c, buf.data, buf.length);
crypto/heimdal/lib/ntlm/ntlm.c
1407
HMAC_Update(c, buf.data, buf.length);
crypto/heimdal/lib/ntlm/ntlm.c
1410
HMAC_Final(c, ntlmv2, &hmaclen);
crypto/heimdal/lib/ntlm/ntlm.c
1412
HMAC_CTX_free(c);
crypto/heimdal/lib/ntlm/ntlm.c
1844
HMAC_CTX *c;
crypto/heimdal/lib/ntlm/ntlm.c
1847
c = HMAC_CTX_new();
crypto/heimdal/lib/ntlm/ntlm.c
1848
if (c == NULL)
crypto/heimdal/lib/ntlm/ntlm.c
1850
HMAC_Init_ex(c, sessionkey, 16, EVP_md5(), NULL);
crypto/heimdal/lib/ntlm/ntlm.c
1851
HMAC_Update(c, svr_chal, 8);
crypto/heimdal/lib/ntlm/ntlm.c
1852
HMAC_Update(c, clnt_nonce, clnt_nonce_length);
crypto/heimdal/lib/ntlm/ntlm.c
1853
HMAC_Final(c, derivedkey, &hmaclen);
crypto/heimdal/lib/ntlm/ntlm.c
1854
HMAC_CTX_free(c);
crypto/heimdal/lib/roken/base64.c
45
pos(char c)
crypto/heimdal/lib/roken/base64.c
49
if (*p == c)
crypto/heimdal/lib/roken/base64.c
59
int c;
crypto/heimdal/lib/roken/base64.c
75
c = q[i++];
crypto/heimdal/lib/roken/base64.c
76
c *= 256;
crypto/heimdal/lib/roken/base64.c
78
c += q[i];
crypto/heimdal/lib/roken/base64.c
80
c *= 256;
crypto/heimdal/lib/roken/base64.c
82
c += q[i];
crypto/heimdal/lib/roken/base64.c
84
p[0] = base64_chars[(c & 0x00fc0000) >> 18];
crypto/heimdal/lib/roken/base64.c
85
p[1] = base64_chars[(c & 0x0003f000) >> 12];
crypto/heimdal/lib/roken/base64.c
86
p[2] = base64_chars[(c & 0x00000fc0) >> 6];
crypto/heimdal/lib/roken/base64.c
87
p[3] = base64_chars[(c & 0x0000003f) >> 0];
crypto/heimdal/lib/roken/fnmatch.c
100
else if (c == '/' && flags & FNM_PATHNAME) {
crypto/heimdal/lib/roken/fnmatch.c
127
if ((c = *pattern++) == EOS) {
crypto/heimdal/lib/roken/fnmatch.c
128
c = '\\';
crypto/heimdal/lib/roken/fnmatch.c
134
if (c != *string++)
crypto/heimdal/lib/roken/fnmatch.c
145
char c, c2;
crypto/heimdal/lib/roken/fnmatch.c
157
for (ok = 0; (c = *pattern++) != ']';) {
crypto/heimdal/lib/roken/fnmatch.c
158
if (c == '\\' && !(flags & FNM_NOESCAPE))
crypto/heimdal/lib/roken/fnmatch.c
159
c = *pattern++;
crypto/heimdal/lib/roken/fnmatch.c
160
if (c == EOS)
crypto/heimdal/lib/roken/fnmatch.c
169
if (c <= test && test <= c2)
crypto/heimdal/lib/roken/fnmatch.c
171
} else if (c == test)
crypto/heimdal/lib/roken/fnmatch.c
65
char c, test;
crypto/heimdal/lib/roken/fnmatch.c
68
switch (c = *pattern++) {
crypto/heimdal/lib/roken/fnmatch.c
83
c = *pattern;
crypto/heimdal/lib/roken/fnmatch.c
85
while (c == '*')
crypto/heimdal/lib/roken/fnmatch.c
86
c = *++pattern;
crypto/heimdal/lib/roken/fnmatch.c
94
if (c == EOS)
crypto/heimdal/lib/roken/getarg.c
461
struct getarg_collect_info *c = current->value;
crypto/heimdal/lib/roken/getarg.c
463
return (*c->func)(FALSE, argc, rargv, goptind, &o, c->data);
crypto/heimdal/lib/roken/getarg.c
498
struct getarg_collect_info *c = args[k].value;
crypto/heimdal/lib/roken/getarg.c
501
if((*c->func)(TRUE, argc, rargv, goptind, &a, c->data))
crypto/heimdal/lib/roken/getcap.c
334
int c, slash;
crypto/heimdal/lib/roken/getcap.c
377
c = *bp++;
crypto/heimdal/lib/roken/getcap.c
378
if (c == '\n') {
crypto/heimdal/lib/roken/getcap.c
390
if (c == ':') {
crypto/heimdal/lib/roken/getcap.c
401
} else if (c == '\\') {
crypto/heimdal/lib/roken/getcap.c
403
} else if (c != ' ' && c != '\t') {
crypto/heimdal/lib/roken/getcap.c
410
*rp++ = c;
crypto/heimdal/lib/roken/getifaddrs.c
232
char *p = NULL, c;
crypto/heimdal/lib/roken/getifaddrs.c
265
c = 0xff;
crypto/heimdal/lib/roken/getifaddrs.c
266
c <<= (8 - (prefixlen % 8));
crypto/heimdal/lib/roken/getifaddrs.c
267
*p = c;
crypto/heimdal/lib/roken/glob.c
134
#define CHAR(c) ((Char)((c)&M_ASCII))
crypto/heimdal/lib/roken/glob.c
135
#define META(c) ((Char)((c)|M_QUOTE))
crypto/heimdal/lib/roken/glob.c
142
#define ismeta(c) (((c)&M_QUOTE) != 0)
crypto/heimdal/lib/roken/glob.c
174
int c;
crypto/heimdal/lib/roken/glob.c
192
while (bufnext < bufend && (c = *patnext++) != CHAR_EOS)
crypto/heimdal/lib/roken/glob.c
193
if (c == CHAR_QUOTE) {
crypto/heimdal/lib/roken/glob.c
194
if ((c = *patnext++) == CHAR_EOS) {
crypto/heimdal/lib/roken/glob.c
195
c = CHAR_QUOTE;
crypto/heimdal/lib/roken/glob.c
198
*bufnext++ = c | M_PROTECT;
crypto/heimdal/lib/roken/glob.c
201
*bufnext++ = c;
crypto/heimdal/lib/roken/glob.c
204
while (bufnext < bufend && (c = *patnext++) != CHAR_EOS)
crypto/heimdal/lib/roken/glob.c
205
*bufnext++ = c;
crypto/heimdal/lib/roken/glob.c
407
int c, err, oldpathc;
crypto/heimdal/lib/roken/glob.c
416
while ((c = *qpatnext++) != CHAR_EOS) {
crypto/heimdal/lib/roken/glob.c
417
switch (c) {
crypto/heimdal/lib/roken/glob.c
419
c = *qpatnext;
crypto/heimdal/lib/roken/glob.c
420
if (c == CHAR_NOT)
crypto/heimdal/lib/roken/glob.c
425
if (c == CHAR_NOT)
crypto/heimdal/lib/roken/glob.c
430
if (c == CHAR_NOT)
crypto/heimdal/lib/roken/glob.c
432
c = *qpatnext++;
crypto/heimdal/lib/roken/glob.c
434
*bufnext++ = CHAR(c);
crypto/heimdal/lib/roken/glob.c
436
(c = qpatnext[1]) != CHAR_RBRACKET) {
crypto/heimdal/lib/roken/glob.c
438
*bufnext++ = CHAR(c);
crypto/heimdal/lib/roken/glob.c
441
} while ((c = *qpatnext++) != CHAR_RBRACKET);
crypto/heimdal/lib/roken/glob.c
458
*bufnext++ = CHAR(c);
crypto/heimdal/lib/roken/glob.c
699
Char c, k;
crypto/heimdal/lib/roken/glob.c
702
c = *pat++;
crypto/heimdal/lib/roken/glob.c
703
switch (c & M_MASK) {
crypto/heimdal/lib/roken/glob.c
722
while (((c = *pat++) & M_MASK) != M_END)
crypto/heimdal/lib/roken/glob.c
724
if (c <= k && k <= pat[1])
crypto/heimdal/lib/roken/glob.c
727
} else if (c == k)
crypto/heimdal/lib/roken/glob.c
733
if (*name++ != c)
crypto/heimdal/lib/roken/hex.c
43
pos(char c)
crypto/heimdal/lib/roken/hex.c
46
c = toupper((unsigned char)c);
crypto/heimdal/lib/roken/hex.c
48
if (*p == c)
crypto/heimdal/lib/roken/qsort.c
106
(CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a ))
crypto/heimdal/lib/roken/qsort.c
107
:(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c ));
crypto/heimdal/lib/roken/qsort.c
99
med3(char *a, char *b, char *c, cmp_t *cmp, void *thunk
crypto/heimdal/lib/roken/resolve.c
508
#define resolve_search(h,n,c,t,r,l) \
crypto/heimdal/lib/roken/resolve.c
509
((int)dns_search(h,n,c,t,r,l,(struct sockaddr *)&from,&fromsize))
crypto/heimdal/lib/roken/resolve.c
512
#define resolve_search(h,n,c,t,r,l) res_nsearch(h,n,c,t,r,l)
crypto/heimdal/lib/roken/resolve.c
515
#define resolve_search(h,n,c,t,r,l) res_search(n,c,t,r,l)
crypto/heimdal/lib/roken/rkpty.c
160
struct command *c;
crypto/heimdal/lib/roken/rkpty.c
175
c = calloc(1, sizeof(*c));
crypto/heimdal/lib/roken/rkpty.c
176
if (c == NULL)
crypto/heimdal/lib/roken/rkpty.c
179
c->lineno = lineno;
crypto/heimdal/lib/roken/rkpty.c
180
(*next) = c;
crypto/heimdal/lib/roken/rkpty.c
181
next = &(c->next);
crypto/heimdal/lib/roken/rkpty.c
184
c->type = CMD_EXPECT;
crypto/heimdal/lib/roken/rkpty.c
185
c->str = str;
crypto/heimdal/lib/roken/rkpty.c
187
c->type = CMD_SEND;
crypto/heimdal/lib/roken/rkpty.c
188
c->str = str;
crypto/heimdal/lib/roken/rkpty.c
190
c->type = CMD_PASSWORD;
crypto/heimdal/lib/roken/rkpty.c
191
c->str = str;
crypto/heimdal/lib/roken/rkpty.c
207
struct command *c;
crypto/heimdal/lib/roken/rkpty.c
212
for (c = commands; c != NULL; c = c->next) {
crypto/heimdal/lib/roken/rkpty.c
213
switch(c->type) {
crypto/heimdal/lib/roken/rkpty.c
216
printf("[expecting %s]", c->str);
crypto/heimdal/lib/roken/rkpty.c
222
if (c->str[len] != in) {
crypto/heimdal/lib/roken/rkpty.c
227
if (c->str[len] == '\0')
crypto/heimdal/lib/roken/rkpty.c
233
c->str, c->lineno);
crypto/heimdal/lib/roken/rkpty.c
236
alarmset, c->str, c->lineno);
crypto/heimdal/lib/roken/rkpty.c
239
c->str, c->lineno);
crypto/heimdal/lib/roken/rkpty.c
244
const char *msg = (c->type == CMD_PASSWORD) ? "****" : c->str;
crypto/heimdal/lib/roken/rkpty.c
249
len = strlen(c->str);
crypto/heimdal/lib/roken/rkpty.c
252
if (c->str[i] == '\\' && i < len - 1) {
crypto/heimdal/lib/roken/rkpty.c
255
switch(c->str[i]) {
crypto/heimdal/lib/roken/rkpty.c
261
c->str[i], c->lineno);
crypto/heimdal/lib/roken/rkpty.c
264
errx(1, "command refused input (line %u)", c->lineno);
crypto/heimdal/lib/roken/rkpty.c
266
if (net_write(master, &c->str[i], 1) != 1)
crypto/heimdal/lib/roken/rkpty.c
267
errx(1, "command refused input (line %u)", c->lineno);
crypto/heimdal/lib/roken/rtbl.c
106
struct column_data *c = table->columns[i];
crypto/heimdal/lib/roken/rtbl.c
108
for (j = 0; j < c->num_rows; j++)
crypto/heimdal/lib/roken/rtbl.c
109
free (c->rows[j].data);
crypto/heimdal/lib/roken/rtbl.c
110
free (c->rows);
crypto/heimdal/lib/roken/rtbl.c
111
free (c->header);
crypto/heimdal/lib/roken/rtbl.c
112
free (c->prefix);
crypto/heimdal/lib/roken/rtbl.c
113
free (c->suffix);
crypto/heimdal/lib/roken/rtbl.c
114
free (c);
crypto/heimdal/lib/roken/rtbl.c
161
size_t c;
crypto/heimdal/lib/roken/rtbl.c
162
for (c = 0; c < table->num_columns; c++)
crypto/heimdal/lib/roken/rtbl.c
163
if(table->columns[c]->num_rows > max_rows)
crypto/heimdal/lib/roken/rtbl.c
164
max_rows = table->columns[c]->num_rows;
crypto/heimdal/lib/roken/rtbl.c
165
for (c = 0; c < table->num_columns; c++) {
crypto/heimdal/lib/roken/rtbl.c
168
if(table->columns[c]->num_rows == max_rows)
crypto/heimdal/lib/roken/rtbl.c
170
tmp = realloc(table->columns[c]->rows,
crypto/heimdal/lib/roken/rtbl.c
171
max_rows * sizeof(table->columns[c]->rows));
crypto/heimdal/lib/roken/rtbl.c
174
table->columns[c]->rows = tmp;
crypto/heimdal/lib/roken/rtbl.c
175
while(table->columns[c]->num_rows < max_rows) {
crypto/heimdal/lib/roken/rtbl.c
176
if((tmp[table->columns[c]->num_rows++].data = strdup("")) == NULL)
crypto/heimdal/lib/roken/rtbl.c
223
struct column_data *c = rtbl_get_column (table, column);
crypto/heimdal/lib/roken/rtbl.c
225
if (c == NULL)
crypto/heimdal/lib/roken/rtbl.c
227
if (c->prefix)
crypto/heimdal/lib/roken/rtbl.c
228
free (c->prefix);
crypto/heimdal/lib/roken/rtbl.c
229
c->prefix = strdup (prefix);
crypto/heimdal/lib/roken/rtbl.c
230
if (c->prefix == NULL)
crypto/heimdal/lib/roken/rtbl.c
239
struct column_data *c = rtbl_get_column_by_id (table, id);
crypto/heimdal/lib/roken/rtbl.c
241
if (c == NULL)
crypto/heimdal/lib/roken/rtbl.c
243
if (c->prefix)
crypto/heimdal/lib/roken/rtbl.c
244
free (c->prefix);
crypto/heimdal/lib/roken/rtbl.c
246
c->prefix = NULL;
crypto/heimdal/lib/roken/rtbl.c
248
c->prefix = strdup (prefix);
crypto/heimdal/lib/roken/rtbl.c
249
if (c->prefix == NULL)
crypto/heimdal/lib/roken/rtbl.c
253
if (c->suffix)
crypto/heimdal/lib/roken/rtbl.c
254
free (c->suffix);
crypto/heimdal/lib/roken/rtbl.c
256
c->suffix = NULL;
crypto/heimdal/lib/roken/rtbl.c
258
c->suffix = strdup (suffix);
crypto/heimdal/lib/roken/rtbl.c
259
if (c->suffix == NULL)
crypto/heimdal/lib/roken/rtbl.c
267
get_column_prefix (rtbl_t table, struct column_data *c)
crypto/heimdal/lib/roken/rtbl.c
269
if (c == NULL)
crypto/heimdal/lib/roken/rtbl.c
271
if (c->prefix)
crypto/heimdal/lib/roken/rtbl.c
272
return c->prefix;
crypto/heimdal/lib/roken/rtbl.c
279
get_column_suffix (rtbl_t table, struct column_data *c)
crypto/heimdal/lib/roken/rtbl.c
281
if (c && c->suffix)
crypto/heimdal/lib/roken/rtbl.c
282
return c->suffix;
crypto/heimdal/lib/roken/rtbl.c
287
add_column_entry (struct column_data *c, const char *data)
crypto/heimdal/lib/roken/rtbl.c
294
tmp = realloc (c->rows, (c->num_rows + 1) * sizeof (*tmp));
crypto/heimdal/lib/roken/rtbl.c
299
c->rows = tmp;
crypto/heimdal/lib/roken/rtbl.c
300
c->rows[c->num_rows++] = row;
crypto/heimdal/lib/roken/rtbl.c
307
struct column_data *c = rtbl_get_column_by_id (table, id);
crypto/heimdal/lib/roken/rtbl.c
309
if (c == NULL)
crypto/heimdal/lib/roken/rtbl.c
312
return add_column_entry(c, data);
crypto/heimdal/lib/roken/rtbl.c
336
struct column_data *c = rtbl_get_column (table, column);
crypto/heimdal/lib/roken/rtbl.c
338
if (c == NULL)
crypto/heimdal/lib/roken/rtbl.c
341
return add_column_entry(c, data);
crypto/heimdal/lib/roken/rtbl.c
371
struct column_data *c = table->columns[i];
crypto/heimdal/lib/roken/rtbl.c
375
fprintf (f, "%s", get_column_prefix (table, c));
crypto/heimdal/lib/roken/rtbl.c
376
if(i == table->num_columns - 1 && c->suffix == NULL)
crypto/heimdal/lib/roken/rtbl.c
378
fprintf (f, "%-*s", 0, c->header);
crypto/heimdal/lib/roken/rtbl.c
380
fprintf (f, "%-*s", (int)c->width, c->header);
crypto/heimdal/lib/roken/rtbl.c
381
fprintf (f, "%s", get_column_suffix (table, c));
crypto/heimdal/lib/roken/rtbl.c
391
struct column_data *c = table->columns[i];
crypto/heimdal/lib/roken/rtbl.c
393
if (c->num_rows > j) {
crypto/heimdal/lib/roken/rtbl.c
403
struct column_data *c = table->columns[i];
crypto/heimdal/lib/roken/rtbl.c
408
w = c->width;
crypto/heimdal/lib/roken/rtbl.c
410
if ((c->flags & RTBL_ALIGN_RIGHT) == 0) {
crypto/heimdal/lib/roken/rtbl.c
411
if(i == table->num_columns - 1 && c->suffix == NULL)
crypto/heimdal/lib/roken/rtbl.c
417
fprintf (f, "%s", get_column_prefix (table, c));
crypto/heimdal/lib/roken/rtbl.c
418
if (c->num_rows <= j)
crypto/heimdal/lib/roken/rtbl.c
421
fprintf (f, "%*s", w, c->rows[j].data);
crypto/heimdal/lib/roken/rtbl.c
422
fprintf (f, "%s", get_column_suffix (table, c));
crypto/heimdal/lib/roken/snprintf.c
104
as_append_char (struct snprintf_state *state, unsigned char c)
crypto/heimdal/lib/roken/snprintf.c
107
*state->s++ = c;
crypto/heimdal/lib/roken/snprintf.c
123
pad(struct snprintf_state *state, int width, char c)
crypto/heimdal/lib/roken/snprintf.c
127
(*state->append_char)(state, c);
crypto/heimdal/lib/roken/snprintf.c
351
unsigned char c;
crypto/heimdal/lib/roken/snprintf.c
354
while((c = *format++)) {
crypto/heimdal/lib/roken/snprintf.c
355
if (c == '%') {
crypto/heimdal/lib/roken/snprintf.c
365
while((c = *format++)){
crypto/heimdal/lib/roken/snprintf.c
366
if(c == '-')
crypto/heimdal/lib/roken/snprintf.c
368
else if(c == '+')
crypto/heimdal/lib/roken/snprintf.c
370
else if(c == ' ')
crypto/heimdal/lib/roken/snprintf.c
372
else if(c == '#')
crypto/heimdal/lib/roken/snprintf.c
374
else if(c == '0')
crypto/heimdal/lib/roken/snprintf.c
376
else if(c == '\'')
crypto/heimdal/lib/roken/snprintf.c
389
if (isdigit(c))
crypto/heimdal/lib/roken/snprintf.c
391
width = width * 10 + c - '0';
crypto/heimdal/lib/roken/snprintf.c
392
c = *format++;
crypto/heimdal/lib/roken/snprintf.c
393
} while(isdigit(c));
crypto/heimdal/lib/roken/snprintf.c
394
else if(c == '*') {
crypto/heimdal/lib/roken/snprintf.c
396
c = *format++;
crypto/heimdal/lib/roken/snprintf.c
400
if (c == '.') {
crypto/heimdal/lib/roken/snprintf.c
402
c = *format++;
crypto/heimdal/lib/roken/snprintf.c
403
if (isdigit(c))
crypto/heimdal/lib/roken/snprintf.c
405
prec = prec * 10 + c - '0';
crypto/heimdal/lib/roken/snprintf.c
406
c = *format++;
crypto/heimdal/lib/roken/snprintf.c
407
} while(isdigit(c));
crypto/heimdal/lib/roken/snprintf.c
408
else if (c == '*') {
crypto/heimdal/lib/roken/snprintf.c
410
c = *format++;
crypto/heimdal/lib/roken/snprintf.c
416
if (c == 'h') {
crypto/heimdal/lib/roken/snprintf.c
418
c = *format++;
crypto/heimdal/lib/roken/snprintf.c
419
} else if (c == 'z') {
crypto/heimdal/lib/roken/snprintf.c
421
c = *format++;
crypto/heimdal/lib/roken/snprintf.c
422
} else if (c == 'l') {
crypto/heimdal/lib/roken/snprintf.c
424
c = *format++;
crypto/heimdal/lib/roken/snprintf.c
425
if (c == 'l') {
crypto/heimdal/lib/roken/snprintf.c
427
c = *format++;
crypto/heimdal/lib/roken/snprintf.c
431
if(c != 'd' && c != 'i')
crypto/heimdal/lib/roken/snprintf.c
434
switch (c) {
crypto/heimdal/lib/roken/snprintf.c
516
(*state->append_char)(state, c);
crypto/heimdal/lib/roken/snprintf.c
521
(*state->append_char)(state, c);
crypto/heimdal/lib/roken/snprintf.c
526
(*state->append_char) (state, c);
crypto/heimdal/lib/roken/snprintf.c
73
sn_append_char (struct snprintf_state *state, unsigned char c)
crypto/heimdal/lib/roken/snprintf.c
76
*state->s++ = c;
crypto/heimdal/lib/roken/strptime.c
243
char c;
crypto/heimdal/lib/roken/strptime.c
245
for (; (c = *format) != '\0'; ++format) {
crypto/heimdal/lib/roken/strptime.c
249
if (isspace ((unsigned char)c)) {
crypto/heimdal/lib/roken/strptime.c
252
} else if (c == '%' && format[1] != '\0') {
crypto/heimdal/lib/roken/strptime.c
253
c = *++format;
crypto/heimdal/lib/roken/strptime.c
254
if (c == 'E' || c == 'O')
crypto/heimdal/lib/roken/strptime.c
255
c = *++format;
crypto/heimdal/lib/roken/strptime.c
256
switch (c) {
crypto/heimdal/lib/roken/strptime.c
435
if (*buf == '%' || *++buf == c)
crypto/heimdal/lib/roken/strptime.c
442
if (*buf == c)
crypto/heimdal/lib/roken/unvis.c
110
if (c == '\\') {
crypto/heimdal/lib/roken/unvis.c
114
*cp = c;
crypto/heimdal/lib/roken/unvis.c
118
switch(c) {
crypto/heimdal/lib/roken/unvis.c
120
*cp = c;
crypto/heimdal/lib/roken/unvis.c
125
*cp = (c - '0');
crypto/heimdal/lib/roken/unvis.c
188
if (c == '-')
crypto/heimdal/lib/roken/unvis.c
190
else if (c == '^')
crypto/heimdal/lib/roken/unvis.c
200
*cp |= c;
crypto/heimdal/lib/roken/unvis.c
204
if (c == '?')
crypto/heimdal/lib/roken/unvis.c
207
*cp |= c & 037;
crypto/heimdal/lib/roken/unvis.c
212
if (isoctal(c)) {
crypto/heimdal/lib/roken/unvis.c
216
*cp = (*cp << 3) + (c - '0');
crypto/heimdal/lib/roken/unvis.c
228
if (isoctal(c)) {
crypto/heimdal/lib/roken/unvis.c
229
*cp = (*cp << 3) + (c - '0');
crypto/heimdal/lib/roken/unvis.c
256
char c;
crypto/heimdal/lib/roken/unvis.c
263
while ((c = *src++) != '\0') {
crypto/heimdal/lib/roken/unvis.c
265
switch (rk_unvis(dst, (unsigned char)c, &state, 0)) {
crypto/heimdal/lib/roken/unvis.c
279
if (unvis(dst, (unsigned char)c, &state, UNVIS_END) == UNVIS_VALID)
crypto/heimdal/lib/roken/unvis.c
80
#define isoctal(c) (((u_char)(c)) >= '0' && ((u_char)(c)) <= '7')
crypto/heimdal/lib/roken/unvis.c
92
rk_unvis(char *cp, int c, int *astate, int flag)
crypto/heimdal/lib/roken/vis.c
123
#define isoctal(c) (((u_char)(c)) >= '0' && ((u_char)(c)) <= '7')
crypto/heimdal/lib/roken/vis.c
124
#define iswhite(c) (c == ' ' || c == '\t' || c == '\n')
crypto/heimdal/lib/roken/vis.c
125
#define issafe(c) (c == '\b' || c == BELL || c == '\r')
crypto/heimdal/lib/roken/vis.c
126
#define xtoa(c) "0123456789abcdef"[c]
crypto/heimdal/lib/roken/vis.c
153
do_hvis(char *dst, int c, int flag, int nextc, const char *extra)
crypto/heimdal/lib/roken/vis.c
155
if (!isascii(c) || !isalnum(c) || strchr("$-_.+!*'(),", c) != NULL) {
crypto/heimdal/lib/roken/vis.c
157
*dst++ = xtoa(((unsigned int)c >> 4) & 0xf);
crypto/heimdal/lib/roken/vis.c
158
*dst++ = xtoa((unsigned int)c & 0xf);
crypto/heimdal/lib/roken/vis.c
160
dst = do_svis(dst, c, flag, nextc, extra);
crypto/heimdal/lib/roken/vis.c
175
do_svis(char *dst, int c, int flag, int nextc, const char *extra)
crypto/heimdal/lib/roken/vis.c
178
isextra = strchr(extra, c) != NULL;
crypto/heimdal/lib/roken/vis.c
179
if (!isextra && isascii(c) && (isgraph(c) || iswhite(c) ||
crypto/heimdal/lib/roken/vis.c
180
((flag & VIS_SAFE) && issafe(c)))) {
crypto/heimdal/lib/roken/vis.c
181
*dst++ = c;
crypto/heimdal/lib/roken/vis.c
185
switch (c) {
crypto/heimdal/lib/roken/vis.c
218
if (isgraph(c)) {
crypto/heimdal/lib/roken/vis.c
219
*dst++ = '\\'; *dst++ = c;
crypto/heimdal/lib/roken/vis.c
224
if (isextra || ((c & 0177) == ' ') || (flag & VIS_OCTAL)) {
crypto/heimdal/lib/roken/vis.c
226
*dst++ = (u_char)(((unsigned int)(u_char)c >> 6) & 03) + '0';
crypto/heimdal/lib/roken/vis.c
227
*dst++ = (u_char)(((unsigned int)(u_char)c >> 3) & 07) + '0';
crypto/heimdal/lib/roken/vis.c
228
*dst++ = (u_char)( c & 07) + '0';
crypto/heimdal/lib/roken/vis.c
231
if (c & 0200) {
crypto/heimdal/lib/roken/vis.c
232
c &= 0177; *dst++ = 'M';
crypto/heimdal/lib/roken/vis.c
234
if (iscntrl(c)) {
crypto/heimdal/lib/roken/vis.c
236
if (c == 0177)
crypto/heimdal/lib/roken/vis.c
239
*dst++ = c + '@';
crypto/heimdal/lib/roken/vis.c
241
*dst++ = '-'; *dst++ = c;
crypto/heimdal/lib/roken/vis.c
253
rk_svis(char *dst, int c, int flag, int nextc, const char *extra)
crypto/heimdal/lib/roken/vis.c
265
dst = do_hvis(dst, c, flag, nextc, nextra);
crypto/heimdal/lib/roken/vis.c
267
dst = do_svis(dst, c, flag, nextc, nextra);
crypto/heimdal/lib/roken/vis.c
293
int c;
crypto/heimdal/lib/roken/vis.c
307
for (start = dst; (c = *src++) != '\0'; /* empty */)
crypto/heimdal/lib/roken/vis.c
308
dst = do_hvis(dst, c, flag, *src, nextra);
crypto/heimdal/lib/roken/vis.c
310
for (start = dst; (c = *src++) != '\0'; /* empty */)
crypto/heimdal/lib/roken/vis.c
311
dst = do_svis(dst, c, flag, *src, nextra);
crypto/heimdal/lib/roken/vis.c
322
unsigned char c;
crypto/heimdal/lib/roken/vis.c
338
c = *src++;
crypto/heimdal/lib/roken/vis.c
339
dst = do_hvis(dst, c, flag, len ? *src : '\0', nextra);
crypto/heimdal/lib/roken/vis.c
343
c = *src++;
crypto/heimdal/lib/roken/vis.c
344
dst = do_svis(dst, c, flag, len ? *src : '\0', nextra);
crypto/heimdal/lib/roken/vis.c
358
rk_vis(char *dst, int c, int flag, int nextc)
crypto/heimdal/lib/roken/vis.c
361
unsigned char uc = (unsigned char)c;
crypto/heimdal/lib/sl/sl.c
111
SL_cmd *c, *current = NULL, *partial_cmd = NULL;
crypto/heimdal/lib/sl/sl.c
114
for (c = cmds; c->name; ++c) {
crypto/heimdal/lib/sl/sl.c
115
if (c->func)
crypto/heimdal/lib/sl/sl.c
116
current = c;
crypto/heimdal/lib/sl/sl.c
117
if (strcmp (cmd, c->name) == 0)
crypto/heimdal/lib/sl/sl.c
119
else if (strncmp (cmd, c->name, strlen(cmd)) == 0 &&
crypto/heimdal/lib/sl/sl.c
134
SL_cmd *c, *prev_c;
crypto/heimdal/lib/sl/sl.c
143
for (c = cmds; c->name; ++c) {
crypto/heimdal/lib/sl/sl.c
144
if (c->func) {
crypto/heimdal/lib/sl/sl.c
148
prev_c = c;
crypto/heimdal/lib/sl/sl.c
149
printf ("%s", c->name);
crypto/heimdal/lib/sl/sl.c
151
printf (", %s", c->name);
crypto/heimdal/lib/sl/sl.c
157
c = sl_match (cmds, argv[1], 0);
crypto/heimdal/lib/sl/sl.c
158
if (c == NULL)
crypto/heimdal/lib/sl/sl.c
163
printf ("%s\t%s\n", c->name, c->usage);
crypto/heimdal/lib/sl/sl.c
164
if(c->help && *c->help)
crypto/heimdal/lib/sl/sl.c
165
printf ("%s\n", c->help);
crypto/heimdal/lib/sl/sl.c
166
if((++c)->name && c->func == NULL) {
crypto/heimdal/lib/sl/sl.c
168
while (c->name && c->func == NULL)
crypto/heimdal/lib/sl/sl.c
169
printf ("\t%s", (c++)->name);
crypto/heimdal/lib/sl/sl.c
205
SL_cmd *c;
crypto/heimdal/lib/sl/sl.c
206
c = sl_match (cmds, argv[0], 0);
crypto/heimdal/lib/sl/sl.c
207
if (c == NULL)
crypto/heimdal/lib/sl/sl.c
209
return (*c->func)(argc, argv);
crypto/heimdal/lib/sl/sl.c
367
SL_cmd *c = sl_match (cmds, argv[0], 0);
crypto/heimdal/lib/sl/sl.c
368
if(c == NULL) {
crypto/heimdal/lib/sl/sl.c
373
if(c->func) {
crypto/heimdal/lib/sl/sl.c
379
(*c->func)(2, fake);
crypto/heimdal/lib/sl/sl.c
382
if(c->help && *c->help)
crypto/heimdal/lib/sl/sl.c
383
fprintf (stderr, "%s\n", c->help);
crypto/heimdal/lib/sl/sl.c
384
if((++c)->name && c->func == NULL) {
crypto/heimdal/lib/sl/sl.c
387
while (c->name && c->func == NULL) {
crypto/heimdal/lib/sl/sl.c
388
fprintf (stderr, "%s%s", f ? ", " : " ", (c++)->name);
crypto/heimdal/lib/sl/sl.c
43
SL_cmd *c, *prev;
crypto/heimdal/lib/sl/sl.c
70
for(c = cmds; c->name; ++c) {
crypto/heimdal/lib/sl/sl.c
73
printf(".Op Fl %s", c->name);
crypto/heimdal/lib/sl/sl.c
83
for(c = cmds; c->name; ++c) {
crypto/heimdal/lib/sl/sl.c
84
if (c->func) {
crypto/heimdal/lib/sl/sl.c
88
printf (".It Fl %s", c->name);
crypto/heimdal/lib/sl/sl.c
89
prev = c;
crypto/heimdal/lib/sl/sl.c
91
printf (", %s\n", c->name);
crypto/heimdal/lib/sl/slc-lex.c
1149
int c;
crypto/heimdal/lib/sl/slc-lex.c
118
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
crypto/heimdal/lib/sl/slc-lex.c
1207
c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
crypto/heimdal/lib/sl/slc-lex.c
1211
return c;
crypto/heimdal/lib/sl/slc-lex.c
1797
int c;
crypto/heimdal/lib/sl/slc-lex.c
1802
while((c = input()) != EOF) {
crypto/heimdal/lib/sl/slc-lex.c
1803
if(c == '/') {
crypto/heimdal/lib/sl/slc-lex.c
1812
} else if(c == '*') {
crypto/heimdal/lib/sl/slc-lex.c
1822
if(c == '\n') {
crypto/heimdal/lib/sl/slc-lex.c
1827
if(c == EOF)
crypto/heimdal/lib/sl/slc-lex.c
1836
int c;
crypto/heimdal/lib/sl/slc-lex.c
1838
while((c = input()) != EOF){
crypto/heimdal/lib/sl/slc-lex.c
184
#define unput(c) yyunput( c, (yytext_ptr) )
crypto/heimdal/lib/sl/slc-lex.c
1841
x[i++] = c;
crypto/heimdal/lib/sl/slc-lex.c
1845
if(c == '\n'){
crypto/heimdal/lib/sl/slc-lex.c
1850
if(c == '\\'){
crypto/heimdal/lib/sl/slc-lex.c
1854
if(c == '\"')
crypto/heimdal/lib/sl/slc-lex.c
1856
x[i++] = c;
crypto/heimdal/lib/sl/slc-lex.c
605
int c = '*'; \
crypto/heimdal/lib/sl/slc-lex.c
608
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
crypto/heimdal/lib/sl/slc-lex.c
609
buf[n] = (char) c; \
crypto/heimdal/lib/sl/slc-lex.c
610
if ( c == '\n' ) \
crypto/heimdal/lib/sl/slc-lex.c
611
buf[n++] = (char) c; \
crypto/heimdal/lib/sl/slc-lex.c
612
if ( c == EOF && ferror( yyin ) ) \
crypto/heimdal/lib/wind/ldap.c
38
put_char(uint32_t *out, size_t *o, uint32_t c, size_t out_len)
crypto/heimdal/lib/wind/ldap.c
42
out[*o] = c;
crypto/heimdal/lib/wind/normalize.c
226
const struct canon_node *c = &_wind_canon_table[canon_index];
crypto/heimdal/lib/wind/normalize.c
231
return c->val;
crypto/heimdal/lib/wind/normalize.c
236
if (i < c->next_start || i >= c->next_end)
crypto/heimdal/lib/wind/normalize.c
240
_wind_canon_next_table[c->next_offset + i - c->next_start];
crypto/heimdal/lib/wind/test-map.c
62
try(const struct example *c)
crypto/heimdal/lib/wind/test-map.c
65
size_t out_len = c->out_len;
crypto/heimdal/lib/wind/test-map.c
69
ret = _wind_stringprep_map(c->in, c->in_len, tmp, &out_len, WIND_PROFILE_NAME);
crypto/heimdal/lib/wind/test-map.c
74
if (out_len != c->out_len) {
crypto/heimdal/lib/wind/test-map.c
79
if (memcmp(c->out, tmp, out_len * sizeof(uint32_t)) != 0) {
crypto/heimdal/lib/wind/test-normalize.c
104
c = strtok_r(NULL, ";", &last);
crypto/heimdal/lib/wind/test-normalize.c
105
if (c == NULL)
crypto/heimdal/lib/wind/test-normalize.c
107
out_len = parse_vector(c, out);
crypto/heimdal/lib/wind/test-normalize.c
110
c = last;
crypto/heimdal/lib/wind/test-normalize.c
118
printf("wind_stringprep_normalize %s failed\n", c);
crypto/heimdal/lib/wind/test-normalize.c
123
printf("%u: wrong out len (%s)\n", lineno, c);
crypto/heimdal/lib/wind/test-normalize.c
130
printf("%u: wrong out data (%s)\n", lineno, c);
crypto/heimdal/lib/wind/test-normalize.c
86
char *c;
crypto/heimdal/lib/wind/test-normalize.c
95
c = strtok_r(buf, ";", &last);
crypto/heimdal/lib/wind/test-normalize.c
96
if (c == NULL)
crypto/heimdal/lib/wind/test-normalize.c
99
in_len = parse_vector(c, in);
crypto/heimdal/lib/wind/utf8.c
41
unsigned c = *p;
crypto/heimdal/lib/wind/utf8.c
43
if (c & 0x80) {
crypto/heimdal/lib/wind/utf8.c
44
if ((c & 0xE0) == 0xC0) {
crypto/heimdal/lib/wind/utf8.c
47
*out = ((c & 0x1F) << 6)
crypto/heimdal/lib/wind/utf8.c
52
} else if ((c & 0xF0) == 0xE0) {
crypto/heimdal/lib/wind/utf8.c
57
*out = ((c & 0x0F) << 12)
crypto/heimdal/lib/wind/utf8.c
66
} else if ((c & 0xF8) == 0xF0) {
crypto/heimdal/lib/wind/utf8.c
73
*out = ((c & 0x07) << 18)
crypto/heimdal/lib/wind/utf8.c
90
*out = c;
crypto/krb5/src/clients/kdestroy/kdestroy.c
100
while ((c = getopt(argc, argv, "54Aqc:p:")) != -1) {
crypto/krb5/src/clients/kdestroy/kdestroy.c
101
switch (c) {
crypto/krb5/src/clients/kdestroy/kdestroy.c
95
int code = 0, errflg = 0, quiet = 0, all = 0, c;
crypto/krb5/src/clients/klist/klist.c
128
int c, mode;
crypto/krb5/src/clients/klist/klist.c
137
while ((c = getopt(argc, argv, "dfetKsnacki45lAVC")) != -1) {
crypto/krb5/src/clients/klist/klist.c
138
switch (c) {
crypto/krb5/src/clients/klist/klist.c
890
fillit(FILE *f, unsigned int num, int c)
crypto/krb5/src/clients/klist/klist.c
895
fputc(c, f);
crypto/krb5/src/clients/kswitch/kswitch.c
52
int c;
crypto/krb5/src/clients/kswitch/kswitch.c
61
while ((c = getopt(argc, argv, "c:p:")) != -1) {
crypto/krb5/src/clients/kswitch/kswitch.c
62
switch (c) {
crypto/krb5/src/clients/kswitch/kswitch.c
68
} else if (c == 'c') {
crypto/krb5/src/include/gssrpc/auth.h
78
char c[8];
crypto/krb5/src/include/k5-trace.h
108
#define TRACE_CC_CACHE_MATCH(c, princ, ret) \
crypto/krb5/src/include/k5-trace.h
109
TRACE(c, "Matching {princ} in collection with result: {kerr}", \
crypto/krb5/src/include/k5-trace.h
111
#define TRACE_CC_DESTROY(c, cache) \
crypto/krb5/src/include/k5-trace.h
112
TRACE(c, "Destroying ccache {ccache}", cache)
crypto/krb5/src/include/k5-trace.h
113
#define TRACE_CC_GEN_NEW(c, cache) \
crypto/krb5/src/include/k5-trace.h
114
TRACE(c, "Generating new unique ccache based on {ccache}", cache)
crypto/krb5/src/include/k5-trace.h
115
#define TRACE_CC_GET_CONFIG(c, cache, princ, key, data) \
crypto/krb5/src/include/k5-trace.h
116
TRACE(c, "Read config in {ccache} for {princ}: {str}: {data}", \
crypto/krb5/src/include/k5-trace.h
118
#define TRACE_CC_INIT(c, cache, princ) \
crypto/krb5/src/include/k5-trace.h
119
TRACE(c, "Initializing {ccache} with default princ {princ}", \
crypto/krb5/src/include/k5-trace.h
121
#define TRACE_CC_MOVE(c, src, dst) \
crypto/krb5/src/include/k5-trace.h
122
TRACE(c, "Moving ccache {ccache} to {ccache}", src, dst)
crypto/krb5/src/include/k5-trace.h
123
#define TRACE_CC_NEW_UNIQUE(c, type) \
crypto/krb5/src/include/k5-trace.h
124
TRACE(c, "Resolving unique ccache of type {str}", type)
crypto/krb5/src/include/k5-trace.h
125
#define TRACE_CC_REMOVE(c, cache, creds) \
crypto/krb5/src/include/k5-trace.h
126
TRACE(c, "Removing {creds} from {ccache}", creds, cache)
crypto/krb5/src/include/k5-trace.h
127
#define TRACE_CC_RETRIEVE(c, cache, creds, ret) \
crypto/krb5/src/include/k5-trace.h
128
TRACE(c, "Retrieving {creds} from {ccache} with result: {kerr}", \
crypto/krb5/src/include/k5-trace.h
130
#define TRACE_CC_RETRIEVE_REF(c, cache, creds, ret) \
crypto/krb5/src/include/k5-trace.h
131
TRACE(c, "Retrying {creds} with result: {kerr}", creds, ret)
crypto/krb5/src/include/k5-trace.h
132
#define TRACE_CC_SET_CONFIG(c, cache, princ, key, data) \
crypto/krb5/src/include/k5-trace.h
133
TRACE(c, "Storing config in {ccache} for {princ}: {str}: {data}", \
crypto/krb5/src/include/k5-trace.h
135
#define TRACE_CC_STORE(c, cache, creds) \
crypto/krb5/src/include/k5-trace.h
136
TRACE(c, "Storing {creds} in {ccache}", creds, cache)
crypto/krb5/src/include/k5-trace.h
137
#define TRACE_CC_STORE_TKT(c, cache, creds) \
crypto/krb5/src/include/k5-trace.h
138
TRACE(c, "Also storing {creds} based on ticket", creds)
crypto/krb5/src/include/k5-trace.h
140
#define TRACE_CCSELECT_VTINIT_FAIL(c, ret) \
crypto/krb5/src/include/k5-trace.h
141
TRACE(c, "ccselect module failed to init vtable: {kerr}", ret)
crypto/krb5/src/include/k5-trace.h
142
#define TRACE_CCSELECT_INIT_FAIL(c, name, ret) \
crypto/krb5/src/include/k5-trace.h
143
TRACE(c, "ccselect module {str} failed to init: {kerr}", name, ret)
crypto/krb5/src/include/k5-trace.h
144
#define TRACE_CCSELECT_MODCHOICE(c, name, server, cache, princ) \
crypto/krb5/src/include/k5-trace.h
145
TRACE(c, "ccselect module {str} chose cache {ccache} with client " \
crypto/krb5/src/include/k5-trace.h
148
#define TRACE_CCSELECT_MODNOTFOUND(c, name, server, princ) \
crypto/krb5/src/include/k5-trace.h
149
TRACE(c, "ccselect module {str} chose client principal {princ} " \
crypto/krb5/src/include/k5-trace.h
152
#define TRACE_CCSELECT_MODFAIL(c, name, ret, server) \
crypto/krb5/src/include/k5-trace.h
153
TRACE(c, "ccselect module {str} yielded error {kerr} for server " \
crypto/krb5/src/include/k5-trace.h
155
#define TRACE_CCSELECT_NOTFOUND(c, server) \
crypto/krb5/src/include/k5-trace.h
156
TRACE(c, "ccselect can't find appropriate cache for server " \
crypto/krb5/src/include/k5-trace.h
158
#define TRACE_CCSELECT_DEFAULT(c, cache, server) \
crypto/krb5/src/include/k5-trace.h
159
TRACE(c, "ccselect choosing default cache {ccache} for server " \
crypto/krb5/src/include/k5-trace.h
162
#define TRACE_DNS_SRV_ANS(c, host, port, prio, weight) \
crypto/krb5/src/include/k5-trace.h
163
TRACE(c, "SRV answer: {int} {int} {int} \"{str}\"", prio, weight, \
crypto/krb5/src/include/k5-trace.h
165
#define TRACE_DNS_SRV_NOTFOUND(c) \
crypto/krb5/src/include/k5-trace.h
166
TRACE(c, "No SRV records found")
crypto/krb5/src/include/k5-trace.h
167
#define TRACE_DNS_SRV_SEND(c, domain) \
crypto/krb5/src/include/k5-trace.h
168
TRACE(c, "Sending DNS SRV query for {str}", domain)
crypto/krb5/src/include/k5-trace.h
169
#define TRACE_DNS_URI_ANS(c, uri, prio, weight) \
crypto/krb5/src/include/k5-trace.h
170
TRACE(c, "URI answer: {int} {int} \"{str}\"", prio, weight, uri)
crypto/krb5/src/include/k5-trace.h
171
#define TRACE_DNS_URI_NOTFOUND(c) \
crypto/krb5/src/include/k5-trace.h
172
TRACE(c, "No URI records found")
crypto/krb5/src/include/k5-trace.h
173
#define TRACE_DNS_URI_SEND(c, domain) \
crypto/krb5/src/include/k5-trace.h
174
TRACE(c, "Sending DNS URI query for {str}", domain)
crypto/krb5/src/include/k5-trace.h
176
#define TRACE_FAST_ARMOR_CCACHE(c, ccache_name) \
crypto/krb5/src/include/k5-trace.h
177
TRACE(c, "FAST armor ccache: {str}", ccache_name)
crypto/krb5/src/include/k5-trace.h
178
#define TRACE_FAST_ARMOR_CCACHE_KEY(c, keyblock) \
crypto/krb5/src/include/k5-trace.h
179
TRACE(c, "Armor ccache session key: {keyblock}", keyblock)
crypto/krb5/src/include/k5-trace.h
180
#define TRACE_FAST_ARMOR_KEY(c, keyblock) \
crypto/krb5/src/include/k5-trace.h
181
TRACE(c, "FAST armor key: {keyblock}", keyblock)
crypto/krb5/src/include/k5-trace.h
182
#define TRACE_FAST_CCACHE_CONFIG(c) \
crypto/krb5/src/include/k5-trace.h
183
TRACE(c, "Using FAST due to armor ccache negotiation result")
crypto/krb5/src/include/k5-trace.h
184
#define TRACE_FAST_DECODE(c) \
crypto/krb5/src/include/k5-trace.h
185
TRACE(c, "Decoding FAST response")
crypto/krb5/src/include/k5-trace.h
186
#define TRACE_FAST_ENCODE(c) \
crypto/krb5/src/include/k5-trace.h
187
TRACE(c, "Encoding request body and padata into FAST request")
crypto/krb5/src/include/k5-trace.h
188
#define TRACE_FAST_NEGO(c, avail) \
crypto/krb5/src/include/k5-trace.h
189
TRACE(c, "FAST negotiation: {str}available", (avail) ? "" : "un")
crypto/krb5/src/include/k5-trace.h
190
#define TRACE_FAST_PADATA_UPGRADE(c) \
crypto/krb5/src/include/k5-trace.h
191
TRACE(c, "Upgrading to FAST due to presence of PA_FX_FAST in reply")
crypto/krb5/src/include/k5-trace.h
192
#define TRACE_FAST_REPLY_KEY(c, keyblock) \
crypto/krb5/src/include/k5-trace.h
193
TRACE(c, "FAST reply key: {keyblock}", keyblock)
crypto/krb5/src/include/k5-trace.h
194
#define TRACE_FAST_REQUIRED(c) \
crypto/krb5/src/include/k5-trace.h
195
TRACE(c, "Using FAST due to KRB5_FAST_REQUIRED flag")
crypto/krb5/src/include/k5-trace.h
197
#define TRACE_GET_CREDS_FALLBACK(c, hostname) \
crypto/krb5/src/include/k5-trace.h
198
TRACE(c, "Falling back to canonicalized server hostname {str}", hostname)
crypto/krb5/src/include/k5-trace.h
200
#define TRACE_GIC_PWD_CHANGED(c) \
crypto/krb5/src/include/k5-trace.h
201
TRACE(c, "Getting initial TGT with changed password")
crypto/krb5/src/include/k5-trace.h
202
#define TRACE_GIC_PWD_CHANGEPW(c, tries) \
crypto/krb5/src/include/k5-trace.h
203
TRACE(c, "Attempting password change; {int} tries remaining", tries)
crypto/krb5/src/include/k5-trace.h
204
#define TRACE_GIC_PWD_EXPIRED(c) \
crypto/krb5/src/include/k5-trace.h
205
TRACE(c, "Principal expired; getting changepw ticket")
crypto/krb5/src/include/k5-trace.h
207
#define TRACE_GSS_CLIENT_KEYTAB_FAIL(c, ret) \
crypto/krb5/src/include/k5-trace.h
208
TRACE(c, "Unable to resolve default client keytab: {kerr}", ret)
crypto/krb5/src/include/k5-trace.h
210
#define TRACE_ENCTYPE_LIST_UNKNOWN(c, profvar, name) \
crypto/krb5/src/include/k5-trace.h
211
TRACE(c, "Unrecognized enctype name in {str}: {str}", profvar, name)
crypto/krb5/src/include/k5-trace.h
213
#define TRACE_HOSTREALM_VTINIT_FAIL(c, ret) \
crypto/krb5/src/include/k5-trace.h
214
TRACE(c, "hostrealm module failed to init vtable: {kerr}", ret)
crypto/krb5/src/include/k5-trace.h
215
#define TRACE_HOSTREALM_INIT_FAIL(c, name, ret) \
crypto/krb5/src/include/k5-trace.h
216
TRACE(c, "hostrealm module {str} failed to init: {kerr}", name, ret)
crypto/krb5/src/include/k5-trace.h
218
#define TRACE_INIT_CREDS(c, princ) \
crypto/krb5/src/include/k5-trace.h
219
TRACE(c, "Getting initial credentials for {princ}", princ)
crypto/krb5/src/include/k5-trace.h
220
#define TRACE_INIT_CREDS_AS_KEY_GAK(c, keyblock) \
crypto/krb5/src/include/k5-trace.h
221
TRACE(c, "AS key obtained from gak_fct: {keyblock}", keyblock)
crypto/krb5/src/include/k5-trace.h
222
#define TRACE_INIT_CREDS_AS_KEY_PREAUTH(c, keyblock) \
crypto/krb5/src/include/k5-trace.h
223
TRACE(c, "AS key determined by preauth: {keyblock}", keyblock)
crypto/krb5/src/include/k5-trace.h
224
#define TRACE_INIT_CREDS_DECRYPTED_REPLY(c, keyblock) \
crypto/krb5/src/include/k5-trace.h
225
TRACE(c, "Decrypted AS reply; session key is: {keyblock}", keyblock)
crypto/krb5/src/include/k5-trace.h
226
#define TRACE_INIT_CREDS_ERROR_REPLY(c, code) \
crypto/krb5/src/include/k5-trace.h
227
TRACE(c, "Received error from KDC: {kerr}", code)
crypto/krb5/src/include/k5-trace.h
228
#define TRACE_INIT_CREDS_GAK(c, salt, s2kparams) \
crypto/krb5/src/include/k5-trace.h
229
TRACE(c, "Getting AS key, salt \"{data}\", params \"{data}\"", \
crypto/krb5/src/include/k5-trace.h
231
#define TRACE_INIT_CREDS_IDENTIFIED_REALM(c, realm) \
crypto/krb5/src/include/k5-trace.h
232
TRACE(c, "Identified realm of client principal as {data}", realm)
crypto/krb5/src/include/k5-trace.h
233
#define TRACE_INIT_CREDS_KEYTAB_LOOKUP(c, princ, etypes) \
crypto/krb5/src/include/k5-trace.h
234
TRACE(c, "Found entries for {princ} in keytab: {etypes}", princ, etypes)
crypto/krb5/src/include/k5-trace.h
235
#define TRACE_INIT_CREDS_KEYTAB_LOOKUP_FAILED(c, code) \
crypto/krb5/src/include/k5-trace.h
236
TRACE(c, "Couldn't lookup etypes in keytab: {kerr}", code)
crypto/krb5/src/include/k5-trace.h
237
#define TRACE_INIT_CREDS_PREAUTH(c) \
crypto/krb5/src/include/k5-trace.h
238
TRACE(c, "Preauthenticating using KDC method data")
crypto/krb5/src/include/k5-trace.h
239
#define TRACE_INIT_CREDS_PREAUTH_DECRYPT_FAIL(c, code) \
crypto/krb5/src/include/k5-trace.h
240
TRACE(c, "Decrypt with preauth AS key failed: {kerr}", code)
crypto/krb5/src/include/k5-trace.h
241
#define TRACE_INIT_CREDS_PREAUTH_MORE(c, patype) \
crypto/krb5/src/include/k5-trace.h
242
TRACE(c, "Continuing preauth mech {patype}", patype)
crypto/krb5/src/include/k5-trace.h
243
#define TRACE_INIT_CREDS_PREAUTH_NONE(c) \
crypto/krb5/src/include/k5-trace.h
244
TRACE(c, "Sending unauthenticated request")
crypto/krb5/src/include/k5-trace.h
245
#define TRACE_INIT_CREDS_PREAUTH_OPTIMISTIC(c) \
crypto/krb5/src/include/k5-trace.h
246
TRACE(c, "Attempting optimistic preauth")
crypto/krb5/src/include/k5-trace.h
247
#define TRACE_INIT_CREDS_PREAUTH_TRYAGAIN(c, patype, code) \
crypto/krb5/src/include/k5-trace.h
248
TRACE(c, "Recovering from KDC error {int} using preauth mech {patype}", \
crypto/krb5/src/include/k5-trace.h
250
#define TRACE_INIT_CREDS_PRIMARY(c) \
crypto/krb5/src/include/k5-trace.h
251
TRACE(c, "Retrying AS request with primary KDC")
crypto/krb5/src/include/k5-trace.h
252
#define TRACE_INIT_CREDS_RESTART_FAST(c) \
crypto/krb5/src/include/k5-trace.h
253
TRACE(c, "Restarting to upgrade to FAST")
crypto/krb5/src/include/k5-trace.h
254
#define TRACE_INIT_CREDS_RESTART_PREAUTH_FAILED(c) \
crypto/krb5/src/include/k5-trace.h
255
TRACE(c, "Restarting due to PREAUTH_FAILED from FAST negotiation")
crypto/krb5/src/include/k5-trace.h
256
#define TRACE_INIT_CREDS_REFERRAL(c, realm) \
crypto/krb5/src/include/k5-trace.h
257
TRACE(c, "Following referral to realm {data}", realm)
crypto/krb5/src/include/k5-trace.h
258
#define TRACE_INIT_CREDS_RETRY_TCP(c) \
crypto/krb5/src/include/k5-trace.h
259
TRACE(c, "Request or response is too big for UDP; retrying with TCP")
crypto/krb5/src/include/k5-trace.h
260
#define TRACE_INIT_CREDS_SALT_PRINC(c, salt) \
crypto/krb5/src/include/k5-trace.h
261
TRACE(c, "Salt derived from principal: {data}", salt)
crypto/krb5/src/include/k5-trace.h
262
#define TRACE_INIT_CREDS_SERVICE(c, service) \
crypto/krb5/src/include/k5-trace.h
263
TRACE(c, "Setting initial creds service to {str}", service)
crypto/krb5/src/include/k5-trace.h
265
#define TRACE_KADM5_AUTH_VTINIT_FAIL(c, ret) \
crypto/krb5/src/include/k5-trace.h
266
TRACE(c, "kadm5_auth module failed to init vtable: {kerr}", ret)
crypto/krb5/src/include/k5-trace.h
267
#define TRACE_KADM5_AUTH_INIT_FAIL(c, name, ret) \
crypto/krb5/src/include/k5-trace.h
268
TRACE(c, "kadm5_auth module {str} failed to init: {kerr}", ret)
crypto/krb5/src/include/k5-trace.h
269
#define TRACE_KADM5_AUTH_INIT_SKIP(c, name) \
crypto/krb5/src/include/k5-trace.h
270
TRACE(c, "kadm5_auth module {str} declined to initialize", name)
crypto/krb5/src/include/k5-trace.h
272
#define TRACE_KT_GET_ENTRY(c, keytab, princ, vno, enctype, err) \
crypto/krb5/src/include/k5-trace.h
273
TRACE(c, "Retrieving {princ} from {keytab} (vno {int}, enctype {etype}) " \
crypto/krb5/src/include/k5-trace.h
276
#define TRACE_LOCALAUTH_INIT_CONFLICT(c, type, oldname, newname) \
crypto/krb5/src/include/k5-trace.h
277
TRACE(c, "Ignoring localauth module {str} because it conflicts " \
crypto/krb5/src/include/k5-trace.h
279
#define TRACE_LOCALAUTH_VTINIT_FAIL(c, ret) \
crypto/krb5/src/include/k5-trace.h
280
TRACE(c, "localauth module failed to init vtable: {kerr}", ret)
crypto/krb5/src/include/k5-trace.h
281
#define TRACE_LOCALAUTH_INIT_FAIL(c, name, ret) \
crypto/krb5/src/include/k5-trace.h
282
TRACE(c, "localauth module {str} failed to init: {kerr}", name, ret)
crypto/krb5/src/include/k5-trace.h
284
#define TRACE_MK_REP(c, ctime, cusec, subkey, seqnum) \
crypto/krb5/src/include/k5-trace.h
285
TRACE(c, "Creating AP-REP, time {long}.{int}, subkey {keyblock}, " \
crypto/krb5/src/include/k5-trace.h
288
#define TRACE_MK_REQ(c, creds, seqnum, subkey, sesskeyblock) \
crypto/krb5/src/include/k5-trace.h
289
TRACE(c, "Creating authenticator for {creds}, seqnum {int}, " \
crypto/krb5/src/include/k5-trace.h
292
#define TRACE_MK_REQ_ETYPES(c, etypes) \
crypto/krb5/src/include/k5-trace.h
293
TRACE(c, "Negotiating for enctypes in authenticator: {etypes}", etypes)
crypto/krb5/src/include/k5-trace.h
295
#define TRACE_MSPAC_VERIFY_FAIL(c, err) \
crypto/krb5/src/include/k5-trace.h
296
TRACE(c, "PAC checksum verification failed: {kerr}", err)
crypto/krb5/src/include/k5-trace.h
297
#define TRACE_MSPAC_DISCARD_UNVERF(c) \
crypto/krb5/src/include/k5-trace.h
298
TRACE(c, "Filtering out unverified MS PAC")
crypto/krb5/src/include/k5-trace.h
300
#define TRACE_NEGOEX_INCOMING(c, seqnum, typestr, info) \
crypto/krb5/src/include/k5-trace.h
301
TRACE(c, "NegoEx received [{int}]{str}: {str}", (int)seqnum, typestr, info)
crypto/krb5/src/include/k5-trace.h
302
#define TRACE_NEGOEX_OUTGOING(c, seqnum, typestr, info) \
crypto/krb5/src/include/k5-trace.h
303
TRACE(c, "NegoEx sending [{int}]{str}: {str}", (int)seqnum, typestr, info)
crypto/krb5/src/include/k5-trace.h
305
#define TRACE_PLUGIN_LOAD_FAIL(c, modname, err) \
crypto/krb5/src/include/k5-trace.h
306
TRACE(c, "Error loading plugin module {str}: {kerr}", modname, err)
crypto/krb5/src/include/k5-trace.h
307
#define TRACE_PLUGIN_LOOKUP_FAIL(c, modname, err) \
crypto/krb5/src/include/k5-trace.h
308
TRACE(c, "Error initializing module {str}: {kerr}", modname, err)
crypto/krb5/src/include/k5-trace.h
310
#define TRACE_PREAUTH_CONFLICT(c, name1, name2, patype) \
crypto/krb5/src/include/k5-trace.h
311
TRACE(c, "Preauth module {str} conflicts with module {str} for pa " \
crypto/krb5/src/include/k5-trace.h
313
#define TRACE_PREAUTH_COOKIE(c, len, data) \
crypto/krb5/src/include/k5-trace.h
314
TRACE(c, "Received cookie: {lenstr}", (size_t) len, data)
crypto/krb5/src/include/k5-trace.h
315
#define TRACE_PREAUTH_ENC_TS_KEY_GAK(c, keyblock) \
crypto/krb5/src/include/k5-trace.h
316
TRACE(c, "AS key obtained for encrypted timestamp: {keyblock}", keyblock)
crypto/krb5/src/include/k5-trace.h
317
#define TRACE_PREAUTH_ENC_TS(c, sec, usec, plain, enc) \
crypto/krb5/src/include/k5-trace.h
318
TRACE(c, "Encrypted timestamp (for {long}.{int}): plain {hexdata}, " \
crypto/krb5/src/include/k5-trace.h
320
#define TRACE_PREAUTH_ENC_TS_DISABLED(c) \
crypto/krb5/src/include/k5-trace.h
321
TRACE(c, "Ignoring encrypted timestamp because it is disabled")
crypto/krb5/src/include/k5-trace.h
322
#define TRACE_PREAUTH_ETYPE_INFO(c, etype, salt, s2kparams) \
crypto/krb5/src/include/k5-trace.h
323
TRACE(c, "Selected etype info: etype {etype}, salt \"{data}\", " \
crypto/krb5/src/include/k5-trace.h
325
#define TRACE_PREAUTH_INFO_FAIL(c, patype, code) \
crypto/krb5/src/include/k5-trace.h
326
TRACE(c, "Preauth builtin info function failure, type={patype}: {kerr}", \
crypto/krb5/src/include/k5-trace.h
328
#define TRACE_PREAUTH_INPUT(c, padata) \
crypto/krb5/src/include/k5-trace.h
329
TRACE(c, "Processing preauth types: {patypes}", padata)
crypto/krb5/src/include/k5-trace.h
330
#define TRACE_PREAUTH_OUTPUT(c, padata) \
crypto/krb5/src/include/k5-trace.h
331
TRACE(c, "Produced preauth for next request: {patypes}", padata)
crypto/krb5/src/include/k5-trace.h
332
#define TRACE_PREAUTH_PROCESS(c, name, patype, real, code) \
crypto/krb5/src/include/k5-trace.h
333
TRACE(c, "Preauth module {str} ({int}) ({str}) returned: " \
crypto/krb5/src/include/k5-trace.h
335
#define TRACE_PREAUTH_SAM_KEY_GAK(c, keyblock) \
crypto/krb5/src/include/k5-trace.h
336
TRACE(c, "AS key obtained for SAM: {keyblock}", keyblock)
crypto/krb5/src/include/k5-trace.h
337
#define TRACE_PREAUTH_SALT(c, salt, patype) \
crypto/krb5/src/include/k5-trace.h
338
TRACE(c, "Received salt \"{data}\" via padata type {patype}", salt, \
crypto/krb5/src/include/k5-trace.h
340
#define TRACE_PREAUTH_SKIP(c, name, patype) \
crypto/krb5/src/include/k5-trace.h
341
TRACE(c, "Skipping previously used preauth module {str} ({int})", \
crypto/krb5/src/include/k5-trace.h
343
#define TRACE_PREAUTH_TRYAGAIN_INPUT(c, patype, padata) \
crypto/krb5/src/include/k5-trace.h
344
TRACE(c, "Preauth tryagain input types ({int}): {patypes}", patype, padata)
crypto/krb5/src/include/k5-trace.h
345
#define TRACE_PREAUTH_TRYAGAIN(c, name, patype, code) \
crypto/krb5/src/include/k5-trace.h
346
TRACE(c, "Preauth module {str} ({int}) tryagain returned: {kerr}", \
crypto/krb5/src/include/k5-trace.h
348
#define TRACE_PREAUTH_TRYAGAIN_OUTPUT(c, padata) \
crypto/krb5/src/include/k5-trace.h
349
TRACE(c, "Followup preauth for next request: {patypes}", padata)
crypto/krb5/src/include/k5-trace.h
350
#define TRACE_PREAUTH_WRONG_CONTEXT(c) \
crypto/krb5/src/include/k5-trace.h
351
TRACE(c, "Wrong context passed to krb5_init_creds_free(); leaking " \
crypto/krb5/src/include/k5-trace.h
354
#define TRACE_PROFILE_ERR(c,subsection, section, retval) \
crypto/krb5/src/include/k5-trace.h
355
TRACE(c, "Bad value of {str} from [{str}] in conf file: {kerr}", \
crypto/krb5/src/include/k5-trace.h
358
#define TRACE_RD_REP(c, ctime, cusec, subkey, seqnum) \
crypto/krb5/src/include/k5-trace.h
359
TRACE(c, "Read AP-REP, time {long}.{int}, subkey {keyblock}, " \
crypto/krb5/src/include/k5-trace.h
361
#define TRACE_RD_REP_DCE(c, ctime, cusec, seqnum) \
crypto/krb5/src/include/k5-trace.h
362
TRACE(c, "Read DCE-style AP-REP, time {long}.{int}, seqnum {int}", \
crypto/krb5/src/include/k5-trace.h
365
#define TRACE_RD_REQ_DECRYPT_ANY(c, princ, keyblock) \
crypto/krb5/src/include/k5-trace.h
366
TRACE(c, "Decrypted AP-REQ with server principal {princ}: " \
crypto/krb5/src/include/k5-trace.h
368
#define TRACE_RD_REQ_DECRYPT_SPECIFIC(c, princ, keyblock) \
crypto/krb5/src/include/k5-trace.h
369
TRACE(c, "Decrypted AP-REQ with specified server principal {princ}: " \
crypto/krb5/src/include/k5-trace.h
371
#define TRACE_RD_REQ_DECRYPT_FAIL(c, err) \
crypto/krb5/src/include/k5-trace.h
372
TRACE(c, "Failed to decrypt AP-REQ ticket: {kerr}", err)
crypto/krb5/src/include/k5-trace.h
373
#define TRACE_RD_REQ_NEGOTIATED_ETYPE(c, etype) \
crypto/krb5/src/include/k5-trace.h
374
TRACE(c, "Negotiated enctype based on authenticator: {etype}", \
crypto/krb5/src/include/k5-trace.h
376
#define TRACE_RD_REQ_SUBKEY(c, keyblock) \
crypto/krb5/src/include/k5-trace.h
377
TRACE(c, "Authenticator contains subkey: {keyblock}", keyblock)
crypto/krb5/src/include/k5-trace.h
378
#define TRACE_RD_REQ_TICKET(c, client, server, keyblock) \
crypto/krb5/src/include/k5-trace.h
379
TRACE(c, "AP-REQ ticket: {princ} -> {princ}, session key {keyblock}", \
crypto/krb5/src/include/k5-trace.h
382
#define TRACE_SENDTO_KDC_ERROR_SET_MESSAGE(c, raddr, err) \
crypto/krb5/src/include/k5-trace.h
383
TRACE(c, "Error preparing message to send to {raddr}: {errno}", \
crypto/krb5/src/include/k5-trace.h
385
#define TRACE_SENDTO_KDC(c, len, rlm, primary, tcp) \
crypto/krb5/src/include/k5-trace.h
386
TRACE(c, "Sending request ({int} bytes) to {data}{str}{str}", len, \
crypto/krb5/src/include/k5-trace.h
388
#define TRACE_SENDTO_KDC_K5TLS_LOAD_ERROR(c, ret) \
crypto/krb5/src/include/k5-trace.h
389
TRACE(c, "Error loading k5tls module: {kerr}", ret)
crypto/krb5/src/include/k5-trace.h
390
#define TRACE_SENDTO_KDC_RESOLVING(c, hostname) \
crypto/krb5/src/include/k5-trace.h
391
TRACE(c, "Resolving hostname {str}", hostname)
crypto/krb5/src/include/k5-trace.h
392
#define TRACE_SENDTO_KDC_RESPONSE(c, len, raddr) \
crypto/krb5/src/include/k5-trace.h
393
TRACE(c, "Received answer ({int} bytes) from {raddr}", len, raddr)
crypto/krb5/src/include/k5-trace.h
394
#define TRACE_SENDTO_KDC_HTTPS_ERROR_CONNECT(c, raddr) \
crypto/krb5/src/include/k5-trace.h
395
TRACE(c, "HTTPS error connecting to {raddr}", raddr)
crypto/krb5/src/include/k5-trace.h
396
#define TRACE_SENDTO_KDC_HTTPS_ERROR_RECV(c, raddr) \
crypto/krb5/src/include/k5-trace.h
397
TRACE(c, "HTTPS error receiving from {raddr}", raddr)
crypto/krb5/src/include/k5-trace.h
398
#define TRACE_SENDTO_KDC_HTTPS_ERROR_SEND(c, raddr) \
crypto/krb5/src/include/k5-trace.h
399
TRACE(c, "HTTPS error sending to {raddr}", raddr)
crypto/krb5/src/include/k5-trace.h
400
#define TRACE_SENDTO_KDC_HTTPS_SEND(c, raddr) \
crypto/krb5/src/include/k5-trace.h
401
TRACE(c, "Sending HTTPS request to {raddr}", raddr)
crypto/krb5/src/include/k5-trace.h
402
#define TRACE_SENDTO_KDC_HTTPS_ERROR(c, errs) \
crypto/krb5/src/include/k5-trace.h
403
TRACE(c, "HTTPS error: {str}", errs)
crypto/krb5/src/include/k5-trace.h
404
#define TRACE_SENDTO_KDC_TCP_CONNECT(c, raddr) \
crypto/krb5/src/include/k5-trace.h
405
TRACE(c, "Initiating TCP connection to {raddr}", raddr)
crypto/krb5/src/include/k5-trace.h
406
#define TRACE_SENDTO_KDC_TCP_DISCONNECT(c, raddr) \
crypto/krb5/src/include/k5-trace.h
407
TRACE(c, "Terminating TCP connection to {raddr}", raddr)
crypto/krb5/src/include/k5-trace.h
408
#define TRACE_SENDTO_KDC_TCP_ERROR_CONNECT(c, raddr, err) \
crypto/krb5/src/include/k5-trace.h
409
TRACE(c, "TCP error connecting to {raddr}: {errno}", raddr, err)
crypto/krb5/src/include/k5-trace.h
410
#define TRACE_SENDTO_KDC_TCP_ERROR_RECV(c, raddr, err) \
crypto/krb5/src/include/k5-trace.h
411
TRACE(c, "TCP error receiving from {raddr}: {errno}", raddr, err)
crypto/krb5/src/include/k5-trace.h
412
#define TRACE_SENDTO_KDC_TCP_ERROR_RECV_LEN(c, raddr, err) \
crypto/krb5/src/include/k5-trace.h
413
TRACE(c, "TCP error receiving from {raddr}: {errno}", raddr, err)
crypto/krb5/src/include/k5-trace.h
414
#define TRACE_SENDTO_KDC_TCP_ERROR_SEND(c, raddr, err) \
crypto/krb5/src/include/k5-trace.h
415
TRACE(c, "TCP error sending to {raddr}: {errno}", raddr, err)
crypto/krb5/src/include/k5-trace.h
416
#define TRACE_SENDTO_KDC_TCP_SEND(c, raddr) \
crypto/krb5/src/include/k5-trace.h
417
TRACE(c, "Sending TCP request to {raddr}", raddr)
crypto/krb5/src/include/k5-trace.h
418
#define TRACE_SENDTO_KDC_UDP_ERROR_RECV(c, raddr, err) \
crypto/krb5/src/include/k5-trace.h
419
TRACE(c, "UDP error receiving from {raddr}: {errno}", raddr, err)
crypto/krb5/src/include/k5-trace.h
420
#define TRACE_SENDTO_KDC_UDP_ERROR_SEND_INITIAL(c, raddr, err) \
crypto/krb5/src/include/k5-trace.h
421
TRACE(c, "UDP error sending to {raddr}: {errno}", raddr, err)
crypto/krb5/src/include/k5-trace.h
422
#define TRACE_SENDTO_KDC_UDP_ERROR_SEND_RETRY(c, raddr, err) \
crypto/krb5/src/include/k5-trace.h
423
TRACE(c, "UDP error sending to {raddr}: {errno}", raddr, err)
crypto/krb5/src/include/k5-trace.h
424
#define TRACE_SENDTO_KDC_UDP_SEND_INITIAL(c, raddr) \
crypto/krb5/src/include/k5-trace.h
425
TRACE(c, "Sending initial UDP request to {raddr}", raddr)
crypto/krb5/src/include/k5-trace.h
426
#define TRACE_SENDTO_KDC_UDP_SEND_RETRY(c, raddr) \
crypto/krb5/src/include/k5-trace.h
427
TRACE(c, "Sending retry UDP request to {raddr}", raddr)
crypto/krb5/src/include/k5-trace.h
429
#define TRACE_SEND_TGS_ETYPES(c, etypes) \
crypto/krb5/src/include/k5-trace.h
430
TRACE(c, "etypes requested in TGS request: {etypes}", etypes)
crypto/krb5/src/include/k5-trace.h
431
#define TRACE_SEND_TGS_SUBKEY(c, keyblock) \
crypto/krb5/src/include/k5-trace.h
432
TRACE(c, "Generated subkey for TGS request: {keyblock}", keyblock)
crypto/krb5/src/include/k5-trace.h
434
#define TRACE_TGS_REPLY(c, client, server, keyblock) \
crypto/krb5/src/include/k5-trace.h
435
TRACE(c, "TGS reply is for {princ} -> {princ} with session key " \
crypto/krb5/src/include/k5-trace.h
437
#define TRACE_TGS_REPLY_DECODE_SESSION(c, keyblock) \
crypto/krb5/src/include/k5-trace.h
438
TRACE(c, "TGS reply didn't decode with subkey; trying session key " \
crypto/krb5/src/include/k5-trace.h
441
#define TRACE_TLS_ERROR(c, errs) \
crypto/krb5/src/include/k5-trace.h
442
TRACE(c, "TLS error: {str}", errs)
crypto/krb5/src/include/k5-trace.h
443
#define TRACE_TLS_NO_REMOTE_CERTIFICATE(c) \
crypto/krb5/src/include/k5-trace.h
444
TRACE(c, "TLS server certificate not received")
crypto/krb5/src/include/k5-trace.h
445
#define TRACE_TLS_CERT_ERROR(c, depth, namelen, name, err, errs) \
crypto/krb5/src/include/k5-trace.h
446
TRACE(c, "TLS certificate error at {int} ({lenstr}): {int} ({str})", \
crypto/krb5/src/include/k5-trace.h
448
#define TRACE_TLS_SERVER_NAME_MISMATCH(c, hostname) \
crypto/krb5/src/include/k5-trace.h
449
TRACE(c, "TLS certificate name mismatch: server certificate is " \
crypto/krb5/src/include/k5-trace.h
451
#define TRACE_TLS_SERVER_NAME_MATCH(c, hostname) \
crypto/krb5/src/include/k5-trace.h
452
TRACE(c, "TLS certificate name matched \"{str}\"", hostname)
crypto/krb5/src/include/k5-trace.h
454
#define TRACE_TKT_CREDS(c, creds, cache) \
crypto/krb5/src/include/k5-trace.h
455
TRACE(c, "Getting credentials {creds} using ccache {ccache}", \
crypto/krb5/src/include/k5-trace.h
457
#define TRACE_TKT_CREDS_ADVANCE(c, realm) \
crypto/krb5/src/include/k5-trace.h
458
TRACE(c, "Received TGT for {data}; advancing current realm", realm)
crypto/krb5/src/include/k5-trace.h
459
#define TRACE_TKT_CREDS_CACHED_INTERMEDIATE_TGT(c, tgt) \
crypto/krb5/src/include/k5-trace.h
460
TRACE(c, "Found cached TGT for intermediate realm: {creds}", tgt)
crypto/krb5/src/include/k5-trace.h
461
#define TRACE_TKT_CREDS_CACHED_SERVICE_TGT(c, tgt) \
crypto/krb5/src/include/k5-trace.h
462
TRACE(c, "Found cached TGT for service realm: {creds}", tgt)
crypto/krb5/src/include/k5-trace.h
463
#define TRACE_TKT_CREDS_CLOSER_REALM(c, realm) \
crypto/krb5/src/include/k5-trace.h
464
TRACE(c, "Trying next closer realm in path: {data}", realm)
crypto/krb5/src/include/k5-trace.h
465
#define TRACE_TKT_CREDS_COMPLETE(c, princ) \
crypto/krb5/src/include/k5-trace.h
466
TRACE(c, "Received creds for desired service {princ}", princ)
crypto/krb5/src/include/k5-trace.h
467
#define TRACE_TKT_CREDS_FALLBACK(c, realm) \
crypto/krb5/src/include/k5-trace.h
468
TRACE(c, "Local realm referral failed; trying fallback realm {data}", \
crypto/krb5/src/include/k5-trace.h
470
#define TRACE_TKT_CREDS_LOCAL_TGT(c, tgt) \
crypto/krb5/src/include/k5-trace.h
471
TRACE(c, "Starting with TGT for client realm: {creds}", tgt)
crypto/krb5/src/include/k5-trace.h
472
#define TRACE_TKT_CREDS_NON_TGT(c, princ) \
crypto/krb5/src/include/k5-trace.h
473
TRACE(c, "Received non-TGT referral response ({princ}); trying " \
crypto/krb5/src/include/k5-trace.h
475
#define TRACE_TKT_CREDS_OFFPATH(c, realm) \
crypto/krb5/src/include/k5-trace.h
476
TRACE(c, "Received TGT for offpath realm {data}", realm)
crypto/krb5/src/include/k5-trace.h
477
#define TRACE_TKT_CREDS_REFERRAL(c, princ) \
crypto/krb5/src/include/k5-trace.h
478
TRACE(c, "Following referral TGT {princ}", princ)
crypto/krb5/src/include/k5-trace.h
479
#define TRACE_TKT_CREDS_REFERRAL_REALM(c, princ) \
crypto/krb5/src/include/k5-trace.h
480
TRACE(c, "Server has referral realm; starting with {princ}", princ)
crypto/krb5/src/include/k5-trace.h
481
#define TRACE_TKT_CREDS_RESPONSE_CODE(c, code) \
crypto/krb5/src/include/k5-trace.h
482
TRACE(c, "TGS request result: {kerr}", code)
crypto/krb5/src/include/k5-trace.h
483
#define TRACE_TKT_CREDS_RETRY_TCP(c) \
crypto/krb5/src/include/k5-trace.h
484
TRACE(c, "Request or response is too big for UDP; retrying with TCP")
crypto/krb5/src/include/k5-trace.h
485
#define TRACE_TKT_CREDS_SAME_REALM_TGT(c, realm) \
crypto/krb5/src/include/k5-trace.h
486
TRACE(c, "Received TGT referral back to same realm ({data}); trying " \
crypto/krb5/src/include/k5-trace.h
488
#define TRACE_TKT_CREDS_SERVICE_REQ(c, princ, referral) \
crypto/krb5/src/include/k5-trace.h
489
TRACE(c, "Requesting tickets for {princ}, referrals {str}", princ, \
crypto/krb5/src/include/k5-trace.h
491
#define TRACE_TKT_CREDS_TARGET_TGT(c, princ) \
crypto/krb5/src/include/k5-trace.h
492
TRACE(c, "Received TGT for service realm: {princ}", princ)
crypto/krb5/src/include/k5-trace.h
493
#define TRACE_TKT_CREDS_TARGET_TGT_OFFPATH(c, princ) \
crypto/krb5/src/include/k5-trace.h
494
TRACE(c, "Received TGT for service realm: {princ}", princ)
crypto/krb5/src/include/k5-trace.h
495
#define TRACE_TKT_CREDS_TGT_REQ(c, next, cur) \
crypto/krb5/src/include/k5-trace.h
496
TRACE(c, "Requesting TGT {princ} using TGT {princ}", next, cur)
crypto/krb5/src/include/k5-trace.h
497
#define TRACE_TKT_CREDS_WRONG_ENCTYPE(c) \
crypto/krb5/src/include/k5-trace.h
498
TRACE(c, "Retrying TGS request with desired service ticket enctypes")
crypto/krb5/src/include/k5-trace.h
500
#define TRACE_TXT_LOOKUP_NOTFOUND(c, host) \
crypto/krb5/src/include/k5-trace.h
501
TRACE(c, "TXT record {str} not found", host)
crypto/krb5/src/include/k5-trace.h
502
#define TRACE_TXT_LOOKUP_SUCCESS(c, host, realm) \
crypto/krb5/src/include/k5-trace.h
503
TRACE(c, "TXT record {str} found: {str}", host, realm)
crypto/krb5/src/include/k5-trace.h
505
#define TRACE_CHECK_REPLY_SERVER_DIFFERS(c, request, reply) \
crypto/krb5/src/include/k5-trace.h
506
TRACE(c, "Reply server {princ} differs from requested {princ}", \
crypto/krb5/src/include/k5-trace.h
509
#define TRACE_GET_CRED_VIA_TKT_EXT(c, request, reply, kdcoptions) \
crypto/krb5/src/include/k5-trace.h
510
TRACE(c, "Get cred via TGT {princ} after requesting {princ} " \
crypto/krb5/src/include/k5-trace.h
513
#define TRACE_GET_CRED_VIA_TKT_EXT_RETURN(c, ret) \
crypto/krb5/src/include/k5-trace.h
514
TRACE(c, "Got cred; {kerr}", ret)
crypto/krb5/src/include/k5-trace.h
516
#define TRACE_KDCPOLICY_VTINIT_FAIL(c, ret) \
crypto/krb5/src/include/k5-trace.h
517
TRACE(c, "KDC policy module failed to init vtable: {kerr}", ret)
crypto/krb5/src/include/k5-trace.h
518
#define TRACE_KDCPOLICY_INIT_SKIP(c, name) \
crypto/krb5/src/include/k5-trace.h
519
TRACE(c, "kadm5_auth module {str} declined to initialize", name)
crypto/krb5/src/include/k5-utf8.h
118
#define KRB5_UPPER(c) ((c) >= 'A' && (c) <= 'Z')
crypto/krb5/src/include/k5-utf8.h
77
size_t krb5int_ucs4_to_utf8(krb5_ucs4 c, char *buf);
crypto/krb5/src/kadmin/cli/getdate.y
780
char c;
crypto/krb5/src/kadmin/cli/getdate.y
790
c = *yyInput;
crypto/krb5/src/kadmin/cli/getdate.y
791
if (isdigit((int) c) || c == '-' || c == '+') {
crypto/krb5/src/kadmin/cli/getdate.y
792
if (c == '-' || c == '+') {
crypto/krb5/src/kadmin/cli/getdate.y
793
sign = c == '-' ? -1 : 1;
crypto/krb5/src/kadmin/cli/getdate.y
800
for (yylval.Number = 0; isdigit((int) (c = *yyInput++)); )
crypto/krb5/src/kadmin/cli/getdate.y
801
yylval.Number = 10 * yylval.Number + c - '0';
crypto/krb5/src/kadmin/cli/getdate.y
807
if (isalpha((int) c)) {
crypto/krb5/src/kadmin/cli/getdate.y
808
for (p = buff; isalpha((int) (c = *yyInput++)) || c == '.'; )
crypto/krb5/src/kadmin/cli/getdate.y
810
*p++ = c;
crypto/krb5/src/kadmin/cli/getdate.y
815
if (c != '(')
crypto/krb5/src/kadmin/cli/getdate.y
819
c = *yyInput++;
crypto/krb5/src/kadmin/cli/getdate.y
820
if (c == '\0')
crypto/krb5/src/kadmin/cli/getdate.y
821
return c;
crypto/krb5/src/kadmin/cli/getdate.y
822
if (c == '(')
crypto/krb5/src/kadmin/cli/getdate.y
824
else if (c == ')')
crypto/krb5/src/kadmin/dbutil/dump.c
479
int c, i;
crypto/krb5/src/kadmin/dbutil/dump.c
482
c = fgetc(f);
crypto/krb5/src/kadmin/dbutil/dump.c
483
if (c < 0)
crypto/krb5/src/kadmin/dbutil/dump.c
485
if (c == '\n')
crypto/krb5/src/kadmin/dbutil/dump.c
487
buf[i] = c;
crypto/krb5/src/kadmin/dbutil/dump.c
497
int c, i;
crypto/krb5/src/kadmin/dbutil/dump.c
500
if (fscanf(f, "%02x", &c) != 1)
crypto/krb5/src/kadmin/dbutil/dump.c
502
buf[i] = c;
crypto/krb5/src/kadmin/dbutil/dump.c
881
int nread, c, ret = 0;
crypto/krb5/src/kadmin/dbutil/dump.c
906
c = getc(filep);
crypto/krb5/src/kadmin/dbutil/dump.c
907
if (c == EOF)
crypto/krb5/src/kadmin/dbutil/dump.c
909
if (c != '\n') {
crypto/krb5/src/kadmin/dbutil/strtok.c
56
int c, sc;
crypto/krb5/src/kadmin/dbutil/strtok.c
69
c = *s++;
crypto/krb5/src/kadmin/dbutil/strtok.c
71
if (c == sc)
crypto/krb5/src/kadmin/dbutil/strtok.c
75
if (c == 0) { /* no non-delimiter characters */
crypto/krb5/src/kadmin/dbutil/strtok.c
89
c = *s++;
crypto/krb5/src/kadmin/dbutil/strtok.c
92
if ((sc = *spanp++) == c) {
crypto/krb5/src/kadmin/dbutil/strtok.c
93
if (c == 0)
crypto/krb5/src/kdc/main.c
602
int c;
crypto/krb5/src/kdc/main.c
669
while ((c = getopt(argc, argv, "x:r:d:mM:k:R:P:p:nw:4:T:X3")) != -1) {
crypto/krb5/src/kdc/main.c
670
switch(c) {
crypto/krb5/src/kprop/kprop.c
125
int c;
crypto/krb5/src/kprop/kprop.c
129
while ((c = getopt(argc, argv, "r:f:dP:s:")) != -1) {
crypto/krb5/src/kprop/kprop.c
130
switch (c) {
crypto/krb5/src/kprop/kpropd.c
1046
int c;
crypto/krb5/src/kprop/kpropd.c
1065
while ((c = getopt_long(argc, argv, "A:f:F:p:P:r:s:DdSa:tx:",
crypto/krb5/src/kprop/kpropd.c
1067
switch (c) {
crypto/krb5/src/kprop/kproplog.c
430
int c, ulog_fd = -1;
crypto/krb5/src/kprop/kproplog.c
442
while ((c = getopt(argc, argv, "Rvhe:")) != -1) {
crypto/krb5/src/kprop/kproplog.c
443
switch (c) {
crypto/krb5/src/lib/apputils/net-server.c
1194
struct connection *c = NULL, *oldest_c = NULL;
crypto/krb5/src/lib/apputils/net-server.c
1204
c = verto_get_private(ev);
crypto/krb5/src/lib/apputils/net-server.c
1205
if (!c)
crypto/krb5/src/lib/apputils/net-server.c
1207
if (c->type != CONN_TCP && c->type != CONN_RPC &&
crypto/krb5/src/lib/apputils/net-server.c
1208
c->type != CONN_UNIXSOCK)
crypto/krb5/src/lib/apputils/net-server.c
1211
|| oldest_c->start_time > c->start_time) {
crypto/krb5/src/lib/apputils/net-server.c
1213
oldest_c = c;
crypto/krb5/src/lib/apputils/udppktinfo.c
213
#define check_cmsg_v4_pktinfo(c, t, l, a) 0
crypto/krb5/src/lib/apputils/udppktinfo.c
243
#define check_cmsg_v6_pktinfo(c, t, l, a) 0
crypto/krb5/src/lib/apputils/udppktinfo.c
366
#define set_msg_from_ipv4(m, c, f, l, a) EINVAL
crypto/krb5/src/lib/apputils/udppktinfo.c
401
#define set_msg_from_ipv6(m, c, f, l, a) EINVAL
crypto/krb5/src/lib/apputils/udppktinfo.c
70
char c;
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
193
#define inv_var(x,r,c)\
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
194
( r == 0 ? ( c == 0 ? s(x,0) : c == 1 ? s(x,1) : c == 2 ? s(x,2) : s(x,3))\
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
195
: r == 1 ? ( c == 0 ? s(x,3) : c == 1 ? s(x,0) : c == 2 ? s(x,1) : s(x,2))\
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
196
: r == 2 ? ( c == 0 ? s(x,2) : c == 1 ? s(x,3) : c == 2 ? s(x,0) : s(x,1))\
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
197
: ( c == 0 ? s(x,1) : c == 1 ? s(x,2) : c == 2 ? s(x,3) : s(x,0)))
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
201
#define inv_rnd(y,x,k,c) (s(y,c) = (k)[c] ^ four_tables(x,t_use(i,n),inv_var,rf1,c))
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
204
#define inv_rnd(y,x,k,c) (s(y,c) = (k)[c] ^ one_table(x,upr,t_use(i,n),inv_var,rf1,c))
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
206
#define inv_rnd(y,x,k,c) (s(y,c) = inv_mcol((k)[c] ^ no_table(x,t_use(i,box),inv_var,rf1,c)))
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
210
#define inv_lrnd(y,x,k,c) (s(y,c) = (k)[c] ^ four_tables(x,t_use(i,l),inv_var,rf1,c))
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
212
#define inv_lrnd(y,x,k,c) (s(y,c) = (k)[c] ^ one_table(x,ups,t_use(i,l),inv_var,rf1,c))
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
214
#define inv_lrnd(y,x,k,c) (s(y,c) = (k)[c] ^ no_table(x,t_use(i,box),inv_var,rf1,c))
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
39
#define si(y,x,k,c) (s(y,c) = word_in(x, c) ^ (k)[c])
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
40
#define so(y,x,c) word_out(y, c, s(x,c))
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
76
#define fwd_var(x,r,c)\
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
77
( r == 0 ? ( c == 0 ? s(x,0) : c == 1 ? s(x,1) : c == 2 ? s(x,2) : s(x,3))\
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
78
: r == 1 ? ( c == 0 ? s(x,1) : c == 1 ? s(x,2) : c == 2 ? s(x,3) : s(x,0))\
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
79
: r == 2 ? ( c == 0 ? s(x,2) : c == 1 ? s(x,3) : c == 2 ? s(x,0) : s(x,1))\
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
80
: ( c == 0 ? s(x,3) : c == 1 ? s(x,0) : c == 2 ? s(x,1) : s(x,2)))
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
84
#define fwd_rnd(y,x,k,c) (s(y,c) = (k)[c] ^ four_tables(x,t_use(f,n),fwd_var,rf1,c))
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
87
#define fwd_rnd(y,x,k,c) (s(y,c) = (k)[c] ^ one_table(x,upr,t_use(f,n),fwd_var,rf1,c))
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
89
#define fwd_rnd(y,x,k,c) (s(y,c) = (k)[c] ^ fwd_mcol(no_table(x,t_use(s,box),fwd_var,rf1,c)))
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
93
#define fwd_lrnd(y,x,k,c) (s(y,c) = (k)[c] ^ four_tables(x,t_use(f,l),fwd_var,rf1,c))
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
95
#define fwd_lrnd(y,x,k,c) (s(y,c) = (k)[c] ^ one_table(x,ups,t_use(f,l),fwd_var,rf1,c))
crypto/krb5/src/lib/crypto/builtin/aes/aescrypt.c
97
#define fwd_lrnd(y,x,k,c) (s(y,c) = (k)[c] ^ no_table(x,t_use(s,box),fwd_var,rf1,c))
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
129
{ k[6*(i)+ 6] = ss[0] ^= ls_box(ss[5],3) ^ t_use(r,c)[i]; \
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
179
{ k[8*(i)+ 8] = ss[0] ^= ls_box(ss[7],3) ^ t_use(r,c)[i]; \
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
254
{ k[v(40,(4*(i))+4)] = ss[0] ^= ls_box(ss[3],3) ^ t_use(r,c)[i]; \
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
266
ss[4] = ls_box(ss[(i+3) % 4], 3) ^ t_use(r,c)[i]; \
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
275
{ ss[4] = ls_box(ss[(i+3) % 4], 3) ^ t_use(r,c)[i]; \
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
284
{ ss[4] = ls_box(ss[(i+3) % 4], 3) ^ t_use(r,c)[i]; ss[i % 4] ^= ss[4]; \
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
294
{ ss[0] ^= ls_box(ss[3],3) ^ t_use(r,c)[i]; k[v(40,(4*(i))+ 4)] = ff(ss[0]); \
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
301
{ ss[4] = ls_box(ss[3],3) ^ t_use(r,c)[i]; \
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
309
{ ss[0] ^= ls_box(ss[3],3) ^ t_use(r,c)[i]; k[v(40,(4*(i))+ 4)] = ss[0]; \
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
360
{ k[v(48,(6*(i))+ 6)] = ss[0] ^= ls_box(ss[5],3) ^ t_use(r,c)[i]; \
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
373
{ ss[0] ^= ls_box(ss[5],3) ^ t_use(r,c)[i]; k[v(48,(6*(i))+ 6)] = ff(ss[0]); \
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
382
{ ss[6] = ls_box(ss[5],3) ^ t_use(r,c)[i]; \
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
392
{ ss[0] ^= ls_box(ss[5],3) ^ t_use(r,c)[i]; k[v(48,(6*(i))+ 6)] = ss[0]; \
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
448
{ k[v(56,(8*(i))+ 8)] = ss[0] ^= ls_box(ss[7],3) ^ t_use(r,c)[i]; \
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
463
{ ss[0] ^= ls_box(ss[7],3) ^ t_use(r,c)[i]; k[v(56,(8*(i))+ 8)] = ff(ss[0]); \
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
474
{ ss[8] = ls_box(ss[7],3) ^ t_use(r,c)[i]; \
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
487
{ ss[0] ^= ls_box(ss[7],3) ^ t_use(r,c)[i]; k[v(56,(8*(i))+ 8)] = ss[0]; \
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
86
{ k[4*(i)+4] = ss[0] ^= ls_box(ss[3],3) ^ t_use(r,c)[i]; \
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
500
# define s(x,c) x[c]
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
502
# define s(x,c) x##c
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
604
# define word_in(x,c) bytes2word(((const uint8_t*)(x)+4*c)[0], ((const uint8_t*)(x)+4*c)[1], \
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
605
((const uint8_t*)(x)+4*c)[2], ((const uint8_t*)(x)+4*c)[3])
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
606
# define word_out(x,c,v) { ((uint8_t*)(x)+4*c)[0] = bval(v,0); ((uint8_t*)(x)+4*c)[1] = bval(v,1); \
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
607
((uint8_t*)(x)+4*c)[2] = bval(v,2); ((uint8_t*)(x)+4*c)[3] = bval(v,3); }
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
609
# define word_in(x,c) (*((uint32_t*)(x)+(c)))
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
610
# define word_out(x,c,v) (*((uint32_t*)(x)+(c)) = (v))
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
612
# define word_in(x,c) aes_sw32(*((uint32_t*)(x)+(c)))
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
613
# define word_out(x,c,v) (*((uint32_t*)(x)+(c)) = aes_sw32(v))
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
722
#define no_table(x,box,vf,rf,c) bytes2word( \
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
723
box[bval(vf(x,0,c),rf(0,c))], \
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
724
box[bval(vf(x,1,c),rf(1,c))], \
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
725
box[bval(vf(x,2,c),rf(2,c))], \
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
726
box[bval(vf(x,3,c),rf(3,c))])
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
728
#define one_table(x,op,tab,vf,rf,c) \
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
729
( tab[bval(vf(x,0,c),rf(0,c))] \
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
730
^ op(tab[bval(vf(x,1,c),rf(1,c))],1) \
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
731
^ op(tab[bval(vf(x,2,c),rf(2,c))],2) \
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
732
^ op(tab[bval(vf(x,3,c),rf(3,c))],3))
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
734
#define four_tables(x,tab,vf,rf,c) \
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
735
( tab[0][bval(vf(x,0,c),rf(0,c))] \
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
736
^ tab[1][bval(vf(x,1,c),rf(1,c))] \
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
737
^ tab[2][bval(vf(x,2,c),rf(2,c))] \
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
738
^ tab[3][bval(vf(x,3,c),rf(3,c))])
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
740
#define vf1(x,r,c) (x)
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
741
#define rf1(r,c) (r)
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
742
#define rf2(r,c) ((8+r-c)&3)
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
769
# define ls_box(x,c) four_tables(x,t_use(f,l),vf1,rf2,c)
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
771
# define ls_box(x,c) four_tables(x,t_use(l,s),vf1,rf2,c)
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
773
# define ls_box(x,c) one_table(x,upr,t_use(f,l),vf1,rf2,c)
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
775
# define ls_box(x,c) one_table(x,upr,t_use(l,s),vf1,rf2,c)
crypto/krb5/src/lib/crypto/builtin/aes/aesopt.h
777
# define ls_box(x,c) no_table(x,t_use(s,box),vf1,rf2,c)
crypto/krb5/src/lib/crypto/builtin/aes/aestab.c
304
t_set(r,c)[i] = bytes2word(w, 0, 0, 0);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.h
105
EXTERN AES_ALIGN CONST uint32_t t_dec(r,c)[RC_LENGTH] = rc_data(w0);
crypto/krb5/src/lib/crypto/builtin/aes/aestab.h
109
EXTERN AES_ALIGN CONST uint32_t t_dec(r,c)[RC_LENGTH];
crypto/krb5/src/lib/crypto/builtin/des/destest.c
69
union { unsigned char c[8*4+3]; long l; } u;
crypto/krb5/src/lib/crypto/builtin/des/destest.c
70
unsigned char *ioblocks = u.c;
crypto/krb5/src/lib/crypto/builtin/des/f_sched.c
246
unsigned DES_INT32 c, d;
crypto/krb5/src/lib/crypto/builtin/des/f_sched.c
268
c = PC1_CL[(tmp >> 29) & 0x7]
crypto/krb5/src/lib/crypto/builtin/des/f_sched.c
279
c |= PC1_CR[(tmp >> 28) & 0xf]
crypto/krb5/src/lib/crypto/builtin/des/f_sched.c
312
c = ((c << 2) & 0xffffffc) | (c >> 26);
crypto/krb5/src/lib/crypto/builtin/des/f_sched.c
315
c = ((c << 1) & 0xffffffe) | (c >> 27);
crypto/krb5/src/lib/crypto/builtin/des/f_sched.c
331
ltmp = PC2_C[0][((c >> 22) & 0x3f)]
crypto/krb5/src/lib/crypto/builtin/des/f_sched.c
332
| PC2_C[1][((c >> 15) & 0xf) | ((c >> 16) & 0x30)]
crypto/krb5/src/lib/crypto/builtin/des/f_sched.c
333
| PC2_C[2][((c >> 4) & 0x3) | ((c >> 9) & 0x3c)]
crypto/krb5/src/lib/crypto/builtin/des/f_sched.c
334
| PC2_C[3][((c ) & 0x7) | ((c >> 4) & 0x38)];
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
74
unsigned int a, b, c, d;
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
76
return __get_cpuid(1, &a, &b, &c, &d) && (c & (1 << 25));
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
156
krb5_ui_4 a = buf[0], b = buf[1], c = buf[2], d = buf[3];
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
160
#define ROTATE { krb5_ui_4 temp; temp = d, d = c, c = b, b = a, a = temp; }
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
163
FF (a, b, c, d, in[i], round1consts[i%4]); ROTATE;
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
170
GG (a, b, c, d, in[round2indices[i]], round2consts[i%4]); ROTATE;
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
177
HH (a, b, c, d, in[round3indices[i]], round3consts[i%4]); ROTATE;
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
181
FF (a, b, c, d, in[ 0], 3);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
182
FF (d, a, b, c, in[ 1], 7);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
183
FF (c, d, a, b, in[ 2], 11);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
184
FF (b, c, d, a, in[ 3], 19);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
185
FF (a, b, c, d, in[ 4], 3);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
186
FF (d, a, b, c, in[ 5], 7);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
187
FF (c, d, a, b, in[ 6], 11);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
188
FF (b, c, d, a, in[ 7], 19);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
189
FF (a, b, c, d, in[ 8], 3);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
190
FF (d, a, b, c, in[ 9], 7);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
191
FF (c, d, a, b, in[10], 11);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
192
FF (b, c, d, a, in[11], 19);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
193
FF (a, b, c, d, in[12], 3);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
194
FF (d, a, b, c, in[13], 7);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
195
FF (c, d, a, b, in[14], 11);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
196
FF (b, c, d, a, in[15], 19);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
199
GG (a, b, c, d, in[ 0], 3);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
200
GG (d, a, b, c, in[ 4], 5);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
201
GG (c, d, a, b, in[ 8], 9);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
202
GG (b, c, d, a, in[12], 13);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
203
GG (a, b, c, d, in[ 1], 3);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
204
GG (d, a, b, c, in[ 5], 5);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
205
GG (c, d, a, b, in[ 9], 9);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
206
GG (b, c, d, a, in[13], 13);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
207
GG (a, b, c, d, in[ 2], 3);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
208
GG (d, a, b, c, in[ 6], 5);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
209
GG (c, d, a, b, in[10], 9);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
210
GG (b, c, d, a, in[14], 13);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
211
GG (a, b, c, d, in[ 3], 3);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
212
GG (d, a, b, c, in[ 7], 5);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
213
GG (c, d, a, b, in[11], 9);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
214
GG (b, c, d, a, in[15], 13);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
217
HH (a, b, c, d, in[ 0], 3);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
218
HH (d, a, b, c, in[ 8], 9);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
219
HH (c, d, a, b, in[ 4], 11);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
220
HH (b, c, d, a, in[12], 15);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
221
HH (a, b, c, d, in[ 2], 3);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
222
HH (d, a, b, c, in[10], 9);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
223
HH (c, d, a, b, in[ 6], 11);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
224
HH (b, c, d, a, in[14], 15);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
225
HH (a, b, c, d, in[ 1], 3);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
226
HH (d, a, b, c, in[ 9], 9);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
227
HH (c, d, a, b, in[ 5], 11);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
228
HH (b, c, d, a, in[13], 15);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
229
HH (a, b, c, d, in[ 3], 3);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
230
HH (d, a, b, c, in[11], 9);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
231
HH (c, d, a, b, in[ 7], 11);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
232
HH (b, c, d, a, in[15], 15);
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
237
buf[2] += c;
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
64
#define FF(a, b, c, d, x, s) \
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
65
{(a) += F ((b), (c), (d)) + (x); \
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
68
#define GG(a, b, c, d, x, s) \
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
69
{(a) += G ((b), (c), (d)) + (x) + 013240474631UL; \
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
72
#define HH(a, b, c, d, x, s) \
crypto/krb5/src/lib/crypto/builtin/md4/md4.c
73
{(a) += H ((b), (c), (d)) + (x) + 015666365641UL; \
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
100
{(a) += I ((b), (c), (d)) + (x) + (krb5_ui_4)(ac); \
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
194
krb5_ui_4 a = buf[0], b = buf[1], c = buf[2], d = buf[3];
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
199
#define ROTATE { krb5_ui_4 temp; temp = d, d = c, c = b, b = a, a = temp; }
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
208
FF (a, b, c, d, in[i], round1s[i%4], round1consts[i]);
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
220
GG (a, b, c, d, in[r2index], round2s[i%4], round2consts[i]);
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
232
HH (a, b, c, d, in[r3index], round3s[i%4], round3consts[i]);
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
244
II (a, b, c, d, in[r4index], round4s[i%4], round4consts[i]);
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
255
FF ( a, b, c, d, in[ 0], S11, 3614090360UL); /* 1 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
256
FF ( d, a, b, c, in[ 1], S12, 3905402710UL); /* 2 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
257
FF ( c, d, a, b, in[ 2], S13, 606105819UL); /* 3 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
258
FF ( b, c, d, a, in[ 3], S14, 3250441966UL); /* 4 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
259
FF ( a, b, c, d, in[ 4], S11, 4118548399UL); /* 5 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
260
FF ( d, a, b, c, in[ 5], S12, 1200080426UL); /* 6 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
261
FF ( c, d, a, b, in[ 6], S13, 2821735955UL); /* 7 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
262
FF ( b, c, d, a, in[ 7], S14, 4249261313UL); /* 8 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
263
FF ( a, b, c, d, in[ 8], S11, 1770035416UL); /* 9 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
264
FF ( d, a, b, c, in[ 9], S12, 2336552879UL); /* 10 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
265
FF ( c, d, a, b, in[10], S13, 4294925233UL); /* 11 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
266
FF ( b, c, d, a, in[11], S14, 2304563134UL); /* 12 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
267
FF ( a, b, c, d, in[12], S11, 1804603682UL); /* 13 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
268
FF ( d, a, b, c, in[13], S12, 4254626195UL); /* 14 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
269
FF ( c, d, a, b, in[14], S13, 2792965006UL); /* 15 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
270
FF ( b, c, d, a, in[15], S14, 1236535329UL); /* 16 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
277
GG ( a, b, c, d, in[ 1], S21, 4129170786UL); /* 17 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
278
GG ( d, a, b, c, in[ 6], S22, 3225465664UL); /* 18 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
279
GG ( c, d, a, b, in[11], S23, 643717713UL); /* 19 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
280
GG ( b, c, d, a, in[ 0], S24, 3921069994UL); /* 20 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
281
GG ( a, b, c, d, in[ 5], S21, 3593408605UL); /* 21 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
282
GG ( d, a, b, c, in[10], S22, 38016083UL); /* 22 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
283
GG ( c, d, a, b, in[15], S23, 3634488961UL); /* 23 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
284
GG ( b, c, d, a, in[ 4], S24, 3889429448UL); /* 24 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
285
GG ( a, b, c, d, in[ 9], S21, 568446438UL); /* 25 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
286
GG ( d, a, b, c, in[14], S22, 3275163606UL); /* 26 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
287
GG ( c, d, a, b, in[ 3], S23, 4107603335UL); /* 27 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
288
GG ( b, c, d, a, in[ 8], S24, 1163531501UL); /* 28 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
289
GG ( a, b, c, d, in[13], S21, 2850285829UL); /* 29 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
290
GG ( d, a, b, c, in[ 2], S22, 4243563512UL); /* 30 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
291
GG ( c, d, a, b, in[ 7], S23, 1735328473UL); /* 31 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
292
GG ( b, c, d, a, in[12], S24, 2368359562UL); /* 32 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
299
HH ( a, b, c, d, in[ 5], S31, 4294588738UL); /* 33 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
300
HH ( d, a, b, c, in[ 8], S32, 2272392833UL); /* 34 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
301
HH ( c, d, a, b, in[11], S33, 1839030562UL); /* 35 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
302
HH ( b, c, d, a, in[14], S34, 4259657740UL); /* 36 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
303
HH ( a, b, c, d, in[ 1], S31, 2763975236UL); /* 37 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
304
HH ( d, a, b, c, in[ 4], S32, 1272893353UL); /* 38 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
305
HH ( c, d, a, b, in[ 7], S33, 4139469664UL); /* 39 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
306
HH ( b, c, d, a, in[10], S34, 3200236656UL); /* 40 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
307
HH ( a, b, c, d, in[13], S31, 681279174UL); /* 41 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
308
HH ( d, a, b, c, in[ 0], S32, 3936430074UL); /* 42 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
309
HH ( c, d, a, b, in[ 3], S33, 3572445317UL); /* 43 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
310
HH ( b, c, d, a, in[ 6], S34, 76029189UL); /* 44 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
311
HH ( a, b, c, d, in[ 9], S31, 3654602809UL); /* 45 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
312
HH ( d, a, b, c, in[12], S32, 3873151461UL); /* 46 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
313
HH ( c, d, a, b, in[15], S33, 530742520UL); /* 47 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
314
HH ( b, c, d, a, in[ 2], S34, 3299628645UL); /* 48 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
321
II ( a, b, c, d, in[ 0], S41, 4096336452UL); /* 49 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
322
II ( d, a, b, c, in[ 7], S42, 1126891415UL); /* 50 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
323
II ( c, d, a, b, in[14], S43, 2878612391UL); /* 51 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
324
II ( b, c, d, a, in[ 5], S44, 4237533241UL); /* 52 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
325
II ( a, b, c, d, in[12], S41, 1700485571UL); /* 53 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
326
II ( d, a, b, c, in[ 3], S42, 2399980690UL); /* 54 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
327
II ( c, d, a, b, in[10], S43, 4293915773UL); /* 55 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
328
II ( b, c, d, a, in[ 1], S44, 2240044497UL); /* 56 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
329
II ( a, b, c, d, in[ 8], S41, 1873313359UL); /* 57 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
330
II ( d, a, b, c, in[15], S42, 4264355552UL); /* 58 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
331
II ( c, d, a, b, in[ 6], S43, 2734768916UL); /* 59 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
332
II ( b, c, d, a, in[13], S44, 1309151649UL); /* 60 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
333
II ( a, b, c, d, in[ 4], S41, 4149444226UL); /* 61 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
334
II ( d, a, b, c, in[11], S42, 3174756917UL); /* 62 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
335
II ( c, d, a, b, in[ 2], S43, 718787259UL); /* 63 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
336
II ( b, c, d, a, in[ 9], S44, 3951481745UL); /* 64 */
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
342
buf[2] += c;
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
78
#define FF(a, b, c, d, x, s, ac) \
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
79
{(a) += F ((b), (c), (d)) + (x) + (krb5_ui_4)(ac); \
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
85
#define GG(a, b, c, d, x, s, ac) \
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
86
{(a) += G ((b), (c), (d)) + (x) + (krb5_ui_4)(ac); \
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
92
#define HH(a, b, c, d, x, s, ac) \
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
93
{(a) += H ((b), (c), (d)) + (x) + (krb5_ui_4)(ac); \
crypto/krb5/src/lib/crypto/builtin/md5/md5.c
99
#define II(a, b, c, d, x, s, ac) \
crypto/krb5/src/lib/crypto/builtin/pbkdf2.c
67
int c = 0xff & d->data[j];
crypto/krb5/src/lib/crypto/builtin/pbkdf2.c
68
printf("%c", isprint(c) ? c : '.');
crypto/krb5/src/lib/crypto/builtin/sha1/shs.c
76
#define subRound(a, b, c, d, e, f, k, data) \
crypto/krb5/src/lib/crypto/builtin/sha1/shs.c
77
( e += ROTL( 5, a ) + f( b, c, d ) + k + data, \
crypto/krb5/src/lib/crypto/crypto_tests/t_cts.c
66
int c = 0xff & d->data[j];
crypto/krb5/src/lib/crypto/crypto_tests/t_cts.c
67
printf("%c", isprint(c) ? c : '.');
crypto/krb5/src/lib/crypto/crypto_tests/t_hmac.c
63
int c = 0xff & d->data[j];
crypto/krb5/src/lib/crypto/crypto_tests/t_hmac.c
64
printf("%c", isprint(c) ? c : '.');
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
359
int c = 0xff & d->data[j];
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
360
printf("%c", isprint(c) ? c : '.');
crypto/krb5/src/lib/crypto/krb/crypto_int.h
649
iov_cursor_contig_blocks(struct iov_cursor *c)
crypto/krb5/src/lib/crypto/krb/crypto_int.h
651
return (c->iov[c->in_iov].data.length - c->in_pos) / c->block_size;
crypto/krb5/src/lib/crypto/krb/crypto_int.h
657
iov_cursor_ptr(struct iov_cursor *c)
crypto/krb5/src/lib/crypto/krb/crypto_int.h
659
return (unsigned char *)&c->iov[c->in_iov].data.data[c->in_pos];
crypto/krb5/src/lib/crypto/krb/crypto_int.h
668
iov_cursor_advance(struct iov_cursor *c, size_t nblocks)
crypto/krb5/src/lib/crypto/krb/crypto_int.h
670
c->in_pos += nblocks * c->block_size;
crypto/krb5/src/lib/crypto/krb/crypto_int.h
671
c->out_pos += nblocks * c->block_size;
crypto/krb5/src/lib/crypto/krb/keyed_checksum_types.c
43
unsigned int i, c, nctypes;
crypto/krb5/src/lib/crypto/krb/keyed_checksum_types.c
66
c = 0;
crypto/krb5/src/lib/crypto/krb/keyed_checksum_types.c
70
ctypes[c++] = ctp->ctype;
crypto/krb5/src/lib/crypto/krb/nfold.c
50
int a,b,c,lcm;
crypto/krb5/src/lib/crypto/krb/nfold.c
65
c = b;
crypto/krb5/src/lib/crypto/krb/nfold.c
67
a = c;
crypto/krb5/src/lib/kadm5/srv/server_misc.c
79
int c, nclasses;
crypto/krb5/src/lib/kadm5/srv/server_misc.c
86
while ((c = (unsigned char)*password++) != '\0') {
crypto/krb5/src/lib/kadm5/srv/server_misc.c
87
if (islower(c))
crypto/krb5/src/lib/kadm5/srv/server_misc.c
89
else if (isupper(c))
crypto/krb5/src/lib/kadm5/srv/server_misc.c
91
else if (isdigit(c))
crypto/krb5/src/lib/kadm5/srv/server_misc.c
93
else if (ispunct(c))
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
1001
const struct choice_info *choice = c->tinfo;
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
1121
const struct cntype_info *c, void *val, size_t *count_out);
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
1253
const struct cntype_info *c, void *val, size_t *count_out)
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
1257
switch (c->type) {
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
1259
const struct string_info *string = c->tinfo;
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
1266
const struct atype_info *a = c->tinfo;
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
1278
const struct choice_info *choice = c->tinfo;
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
1295
assert(c->type > cntype_min);
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
1296
assert(c->type < cntype_max);
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
259
#define c2i(c) ((c) - '0')
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
641
const struct cntype_info *c, taginfo *tag_out);
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
784
const struct cntype_info *c, taginfo *tag_out)
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
788
switch (c->type) {
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
790
const struct string_info *string = c->tinfo;
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
803
const struct atype_info *a = c->tinfo;
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
816
const struct choice_info *choice = c->tinfo;
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
823
assert(c->type > cntype_min);
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
824
assert(c->type < cntype_max);
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
983
free_cntype(const struct cntype_info *c, void *val, size_t count)
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
985
switch (c->type) {
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
992
const struct atype_info *a = c->tinfo;
crypto/krb5/src/lib/krb5/ccache/cc_file.c
754
cred_removed(krb5_creds *c)
crypto/krb5/src/lib/krb5/ccache/cc_file.c
756
return c->times.endtime == 0 && c->times.authtime != 0;
crypto/krb5/src/lib/krb5/ccache/cc_kcm.c
1034
struct kcm_cursor *c = (struct kcm_cursor *)*cursor;
crypto/krb5/src/lib/krb5/ccache/cc_kcm.c
1037
if (c->uuids != NULL)
crypto/krb5/src/lib/krb5/ccache/cc_kcm.c
1038
return next_cred_by_uuid(context, cache, c->uuids, cred_out);
crypto/krb5/src/lib/krb5/ccache/cc_kcm.c
1040
list = c->creds;
crypto/krb5/src/lib/krb5/ccache/cc_kcm.c
1056
struct kcm_cursor *c = *cursor;
crypto/krb5/src/lib/krb5/ccache/cc_kcm.c
1058
if (c == NULL)
crypto/krb5/src/lib/krb5/ccache/cc_kcm.c
1060
free_uuid_list(c->uuids);
crypto/krb5/src/lib/krb5/ccache/cc_kcm.c
1061
free_cred_list(c->creds);
crypto/krb5/src/lib/krb5/ccache/cc_kcm.c
1062
free(c);
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
1257
krb5_creds c;
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
1267
ret = krcc_next_cred(context, cache, &cursor, &c);
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
1270
match = krb5int_cc_creds_match_request(context, flags, creds, &c);
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
1271
krb5_free_cred_contents(context, &c);
crypto/krb5/src/lib/krb5/ccache/cccursor.c
130
krb5_cccol_cursor c = *cursor;
crypto/krb5/src/lib/krb5/ccache/cccursor.c
132
if (c == NULL)
crypto/krb5/src/lib/krb5/ccache/cccursor.c
135
if (c->ptcursor != NULL)
crypto/krb5/src/lib/krb5/ccache/cccursor.c
136
c->ops->ptcursor_free(context, &c->ptcursor);
crypto/krb5/src/lib/krb5/ccache/cccursor.c
137
if (c->typecursor != NULL)
crypto/krb5/src/lib/krb5/ccache/cccursor.c
138
krb5int_cc_typecursor_free(context, &c->typecursor);
crypto/krb5/src/lib/krb5/ccache/cccursor.c
139
free(c);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
205
verify_cred1(const krb5_creds *c)
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
209
verify_princ(c->client);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
210
assert(c->server->length == 2);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
211
assert(data_eq_string(c->server->realm, "EXAMPLE.COM"));
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
212
assert(data_eq_string(c->server->data[0], "test"));
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
213
assert(data_eq_string(c->server->data[1], "host"));
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
214
assert(c->keyblock.enctype == ENCTYPE_AES128_CTS_HMAC_SHA1_96);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
215
assert(c->keyblock.length == 16);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
216
assert(memcmp(c->keyblock.contents,
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
219
assert(c->times.authtime == 11);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
220
assert(c->times.starttime == 222);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
221
assert(c->times.endtime == 3333);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
222
assert(c->times.renew_till == 1000000000);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
223
assert(c->is_skey == FALSE);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
224
assert(c->ticket_flags == (TKT_FLG_FORWARDABLE | TKT_FLG_RENEWABLE));
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
225
assert(c->addresses != NULL && c->addresses[0] != NULL);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
226
assert(c->addresses[0]->addrtype == ADDRTYPE_INET);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
227
assert(c->addresses[0]->length == 4);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
228
assert(memcmp(c->addresses[0]->contents, &ipaddr, 4) == 0);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
229
assert(c->addresses[1] == NULL);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
230
assert(c->authdata != NULL && c->authdata[0] != NULL);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
231
assert(c->authdata[0]->ad_type == KRB5_AUTHDATA_SIGNTICKET);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
232
assert(c->authdata[0]->length == 10);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
233
assert(memcmp(c->authdata[0]->contents, "signticket", 10) == 0);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
234
assert(c->authdata[1] != NULL);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
235
assert(c->authdata[1]->ad_type == -100);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
236
assert(c->authdata[1]->length == 0);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
237
assert(c->authdata[2] == NULL);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
238
assert(data_eq_string(c->ticket, "ticket"));
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
239
assert(c->second_ticket.length == 0);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
243
verify_cred2(const krb5_creds *c)
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
245
verify_princ(c->client);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
246
assert(c->server->length == 0);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
247
assert(c->server->realm.length == 0);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
248
assert(c->keyblock.enctype == ENCTYPE_ARCFOUR_HMAC);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
249
assert(c->keyblock.length == 16);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
250
assert(memcmp(c->keyblock.contents,
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
253
assert(c->times.authtime == 0);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
254
assert(c->times.starttime == 0);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
255
assert(c->times.endtime == 0);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
256
assert(c->times.renew_till == 0);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
257
assert(c->is_skey == TRUE);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
258
assert(c->ticket_flags == 0);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
259
assert(c->addresses == NULL || c->addresses[0] == NULL);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
260
assert(c->authdata == NULL || c->authdata[0] == NULL);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
261
assert(data_eq_string(c->ticket, "ticket"));
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
262
assert(data_eq_string(c->second_ticket, "2ticket"));
crypto/krb5/src/lib/krb5/krb/conv_princ.c
134
strnchr(char *s, int c, unsigned int n)
crypto/krb5/src/lib/krb5/krb/conv_princ.c
140
if (*s == c)
crypto/krb5/src/lib/krb5/krb/conv_princ.c
157
char *c, *tmp_realm, *tmp_prealm;
crypto/krb5/src/lib/krb5/krb/conv_princ.c
181
c = strnchr(compo->data, '.', compo->length);
crypto/krb5/src/lib/krb5/krb/conv_princ.c
182
if (!c || (c - compo->data) >= INST_SZ - 1)
crypto/krb5/src/lib/krb5/krb/conv_princ.c
184
memcpy(inst, compo->data, (size_t) (c - compo->data));
crypto/krb5/src/lib/krb5/krb/conv_princ.c
185
inst[c - compo->data] = '\0';
crypto/krb5/src/lib/krb5/krb/deltat.c
1525
int num, c;
crypto/krb5/src/lib/krb5/krb/deltat.c
1533
switch (c = *P++) {
crypto/krb5/src/lib/krb5/krb/deltat.c
1540
return c;
crypto/krb5/src/lib/krb5/krb/deltat.c
1552
num = c - '0';
crypto/krb5/src/lib/krb5/krb/parse.c
134
char c;
crypto/krb5/src/lib/krb5/krb/parse.c
156
c = *p;
crypto/krb5/src/lib/krb5/krb/parse.c
157
if (c == '\\') {
crypto/krb5/src/lib/krb5/krb/parse.c
158
c = *++p;
crypto/krb5/src/lib/krb5/krb/parse.c
159
if (c == 'n')
crypto/krb5/src/lib/krb5/krb/parse.c
160
c = '\n';
crypto/krb5/src/lib/krb5/krb/parse.c
161
else if (c == 't')
crypto/krb5/src/lib/krb5/krb/parse.c
162
c = '\t';
crypto/krb5/src/lib/krb5/krb/parse.c
163
else if (c == 'b')
crypto/krb5/src/lib/krb5/krb/parse.c
164
c = '\b';
crypto/krb5/src/lib/krb5/krb/parse.c
165
else if (c == '0')
crypto/krb5/src/lib/krb5/krb/parse.c
166
c = '\0';
crypto/krb5/src/lib/krb5/krb/parse.c
169
cur_data->data[pos++] = c;
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
454
int (*table[])(int c) = { isdigit, isxdigit, isalnum };
crypto/krb5/src/lib/krb5/krb/strptime.c
66
char c;
crypto/krb5/src/lib/krb5/krb/strptime.c
73
while ((c = *fmt) != '\0') {
crypto/krb5/src/lib/krb5/krb/strptime.c
78
if (isspace(c)) {
crypto/krb5/src/lib/krb5/krb/strptime.c
86
if ((c = *fmt++) != '%')
crypto/krb5/src/lib/krb5/krb/strptime.c
90
again: switch (c = *fmt++) {
crypto/krb5/src/lib/krb5/krb/strptime.c
93
if (c != *bp++)
crypto/krb5/src/lib/krb5/krb/t_cc_config.c
120
int c;
crypto/krb5/src/lib/krb5/krb/t_cc_config.c
128
while ((c = getopt(argc, argv, "p:")) != -1) {
crypto/krb5/src/lib/krb5/krb/t_cc_config.c
129
switch (c) {
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
100
check(c->err.msg == NULL);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
101
check(c->kdblog_context == NULL);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
102
check(c->trace_callback == NULL);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
103
check(c->trace_callback_data == NULL);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
105
check(c->plugins[i].modules == NULL);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
106
check(!c->plugins[i].configured);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
68
check_context(krb5_context c, krb5_context r)
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
73
compare_etypes(c->tgs_etypes, r->tgs_etypes);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
74
check(c->os_context.time_offset == r->os_context.time_offset);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
75
check(c->os_context.usec_offset == r->os_context.usec_offset);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
76
check(c->os_context.os_flags == r->os_context.os_flags);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
77
compare_string(c->os_context.default_ccname, r->os_context.default_ccname);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
78
check(c->clockskew == r->clockskew);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
79
check(c->kdc_default_options == r->kdc_default_options);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
80
check(c->library_options == r->library_options);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
81
check(c->profile_secure == r->profile_secure);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
82
check(c->fcc_default_format == r->fcc_default_format);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
83
check(c->udp_pref_limit == r->udp_pref_limit);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
84
check(c->use_conf_ktypes == r->use_conf_ktypes);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
85
check(c->allow_weak_crypto == r->allow_weak_crypto);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
86
check(c->ignore_acceptor_hostname == r->ignore_acceptor_hostname);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
87
check(c->enforce_ok_as_delegate == r->enforce_ok_as_delegate);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
88
check(c->dns_canonicalize_hostname == r->dns_canonicalize_hostname);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
89
compare_string(c->plugin_base_dir, r->plugin_base_dir);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
92
check(c->dal_handle == NULL);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
93
check(c->prompt_types == NULL);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
94
check(c->libkrb5_plugins.files == NULL);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
95
check(c->preauth_context == NULL);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
96
check(c->ccselect_handles == NULL);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
97
check(c->localauth_handles == NULL);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
98
check(c->hostrealm_handles == NULL);
crypto/krb5/src/lib/krb5/krb/t_copy_context.c
99
check(c->err.code == 0);
crypto/krb5/src/lib/krb5/krb/t_get_etype_info.c
48
int c, netypes = 0;
crypto/krb5/src/lib/krb5/krb/t_get_etype_info.c
50
while ((c = getopt(argc, argv, "e:T:")) != -1) {
crypto/krb5/src/lib/krb5/krb/t_get_etype_info.c
51
switch (c) {
crypto/krb5/src/lib/krb5/krb/t_in_ccache.c
78
int c;
crypto/krb5/src/lib/krb5/krb/t_in_ccache.c
80
while ((c = getopt(argc, argv, "I:A:")) != -1) {
crypto/krb5/src/lib/krb5/krb/t_in_ccache.c
81
switch (c) {
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
402
struct hstate c, s;
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
410
c.str = client->data;
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
411
c.len = client->length;
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
412
c.dot = c.tail = NULL;
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
417
comtail(&c, &s, sep);
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
418
adjtail(&c, &s, sep);
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
420
retval = rtree_hier_tweens(context, &c, &ctweens, &nctween, 1, sep);
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
521
adjtail(struct hstate *c, struct hstate *s, int sep)
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
526
cp = c->tail;
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
537
cfull = (cp == c->str || cp[-1] == sep);
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
544
} else if (c->dot != NULL && s->dot != NULL) {
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
545
cp = c->dot + 1;
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
550
if (cp >= &c->str[c->len] || sp >= &s->str[s->len]) {
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
556
c->tail = cp;
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
569
comtail(struct hstate *c, struct hstate *s, int sep)
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
573
if (c->len == 0 || s->len == 0)
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
581
cp = &c->str[c->len];
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
588
while (cp > c->str && sp > s->str) {
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
607
if (cp == &c->str[c->len])
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
609
c->tail = cp;
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
611
c->dot = cdot;
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
90
adjtail(struct hstate *c, struct hstate *s, int sep);
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
93
comtail(struct hstate *c, struct hstate *s, int sep);
crypto/krb5/src/lib/krb5/krb/x-deltat.y
182
int num, c;
crypto/krb5/src/lib/krb5/krb/x-deltat.y
190
switch (c = *P++) {
crypto/krb5/src/lib/krb5/krb/x-deltat.y
197
return c;
crypto/krb5/src/lib/krb5/krb/x-deltat.y
209
num = c - '0';
crypto/krb5/src/lib/krb5/os/dnsglue.c
106
#define SEARCH(h, n, c, t, a, l) res_search(n, c, t, a, l)
crypto/krb5/src/lib/krb5/os/dnsglue.c
84
#define SEARCH(h, n, c, t, a, l) dns_search(h, n, c, t, a, l, NULL, NULL)
crypto/krb5/src/lib/krb5/os/dnsglue.c
93
#define SEARCH(h, n, c, t, a, l) res_nsearch(&h, n, c, t, a, l)
crypto/krb5/src/lib/krb5/os/t_std_conf.c
181
int c;
crypto/krb5/src/lib/krb5/os/t_std_conf.c
193
while ((c = getopt(argc, argv, "cdr:C:D:l:s:")) != -1) {
crypto/krb5/src/lib/krb5/os/t_std_conf.c
194
switch (c) {
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
136
#define COMPEX_SET(c) (compexs[(c) >> 5] |= (1 << ((c) & 31)))
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
137
#define COMPEX_TEST(c) (compexs[(c) >> 5] & (1 << ((c) & 31)))
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
314
ordered_range_insert(krb5_ui_4 c, char *name, int len)
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
371
rlp->ranges[0] = rlp->ranges[1] = c;
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
384
if (c == e + 1) {
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
388
rlp->ranges[j] = c;
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
392
if (c > e + 1) {
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
397
rlp->ranges[j] = rlp->ranges[j + 1] = c;
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
402
if (c >= s)
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
413
i < rlp->used && c > rlp->ranges[i + 1] + 1; i += 2) ;
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
418
if (c == e + 1)
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
422
rlp->ranges[i + 1] = c;
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
423
else if (c < s) {
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
432
rlp->ranges[i] = rlp->ranges[i + 1] = c;
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
658
ordered_ccl_insert(krb5_ui_4 c, krb5_ui_4 ccl_code)
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
675
ccl[0] = ccl[1] = c;
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
685
if (ccl_code == ccl[ccl_used - 1] && c == ccl[ccl_used - 2] + 1) {
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
686
ccl[ccl_used - 2] = c;
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
693
if (c > ccl[ccl_used - 2] + 1 ||
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
694
(c == ccl[ccl_used - 2] + 1 && ccl_code != ccl[ccl_used - 1])) {
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
695
ccl[ccl_used++] = c;
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
696
ccl[ccl_used++] = c;
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
704
for (i = 0; i < ccl_used && c > ccl[i + 1] + 1; i += 3) ;
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
706
if (ccl_code == ccl[i + 2] && c == ccl[i + 1] + 1) {
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
710
ccl[i + 1] = c;
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
712
} else if (c < ccl[i]) {
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
721
ccl[i] = ccl[i + 1] = c;
crypto/krb5/src/lib/krb5/unicode/ucstr.c
89
#define TOLOWER(c) (isupper(c) ? tolower(c) : (c))
crypto/krb5/src/lib/rpc/authgss_prot.c
320
int c;
crypto/krb5/src/lib/rpc/authgss_prot.c
341
c = buf[i+j];
crypto/krb5/src/lib/rpc/authgss_prot.c
342
c = isprint(c) ? c : '.';
crypto/krb5/src/lib/rpc/authgss_prot.c
343
fprintf(stderr, "%c", c);
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
665
client_list *c, *c2;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
669
c = clients;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
670
while (c) {
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
671
c2 = c;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
672
c = c->next;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
696
client_list *c;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
720
c = (client_list *) malloc(sizeof(client_list));
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
721
if (c == NULL)
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
723
c->client = client_data;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
724
c->next = NULL;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
728
clients = c;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
730
c->next = clients;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
731
clients = c;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
785
client_list *c;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
792
c = clients;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
793
while (c) {
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
794
if (c->client->key == handle)
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
795
return c->client;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
796
c = c->next;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
822
client_list *c, *c2;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
849
c = clients;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
851
free(c);
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
854
c = clients->next;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
855
while (c) {
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
856
if (c->client == client_data) {
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
857
c2->next = c->next;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
858
free(c);
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
861
c2 = c;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
862
c = c->next;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
879
client_list *c;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
883
c = clients;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
884
while (c) {
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
885
client_data = c->client;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
888
c = c->next;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
897
client_list *c;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
901
c = clients;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
902
while (c) {
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
903
client_data = c->client;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
912
c = clients; /* start over, just to be safe */
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
914
c = c->next;
crypto/krb5/src/lib/rpc/unit-test/client.c
64
int c;
crypto/krb5/src/lib/rpc/unit-test/client.c
77
while ((c = getopt(argc, argv, "a:m:os:tu")) != -1) {
crypto/krb5/src/lib/rpc/unit-test/client.c
78
switch (c) {
crypto/krb5/src/lib/rpc/unit-test/server.c
61
int c, prot;
crypto/krb5/src/lib/rpc/unit-test/server.c
75
while ((c = getopt(argc, argv, "tu")) != -1) {
crypto/krb5/src/lib/rpc/unit-test/server.c
76
switch (c) {
crypto/krb5/src/lib/rpc/xdr_array.c
115
for (i = 0; (i < c) && stat; i++) {
crypto/krb5/src/lib/rpc/xdr_array.c
72
u_int c; /* the actual element count */
crypto/krb5/src/lib/rpc/xdr_array.c
80
c = *sizep;
crypto/krb5/src/lib/rpc/xdr_array.c
81
if ((c > maxsize || c > LASTUNSIGNED / elsize)
crypto/krb5/src/lib/rpc/xdr_array.c
85
nodesize = c * elsize;
crypto/krb5/src/lib/rpc/xdr_array.c
94
if (c == 0)
crypto/krb5/src/plugins/certauth/test/main.c
116
c = memchr(cert, *cntag, c_left);
crypto/krb5/src/plugins/certauth/test/main.c
117
while (c != NULL) {
crypto/krb5/src/plugins/certauth/test/main.c
118
c_left = cert_len - (c - cert);
crypto/krb5/src/plugins/certauth/test/main.c
121
if (memcmp(c, buf.data, buf.len) == 0) {
crypto/krb5/src/plugins/certauth/test/main.c
126
c = memchr(c + 1, *cntag, c_left - 1);
crypto/krb5/src/plugins/certauth/test/main.c
99
const uint8_t *c;
crypto/krb5/src/plugins/kdb/db2/db2_exp.c
180
krb5_error_code c;
crypto/krb5/src/plugins/kdb/db2/db2_exp.c
182
c = krb5int_mutex_alloc (&krb5_db2_mutex);
crypto/krb5/src/plugins/kdb/db2/db2_exp.c
183
if (c)
crypto/krb5/src/plugins/kdb/db2/db2_exp.c
184
return c;
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
122
#define inited(c) ((c)->dal_handle->db_context && \
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
123
((krb5_db2_context *)(c)->dal_handle->db_context)-> \
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
310
char *a = NULL, *b = NULL, *c = NULL, *d = NULL;
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
317
if (ctx_dbsuffix(dbc, SUFFIX_POLICY, &c))
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
323
*polname_out = c;
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
329
free(c);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
107
status = __bt_dleaf(t, NULL, h, c->pg.index);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
140
__bt_stkacq(BTREE *t, PAGE **hp, CURSOR *c)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
158
if ((e = __bt_search(t, &c->key, &exact)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
163
if (h->pgno == c->pg.pgno)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
172
while (h->pgno != c->pg.pgno) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
212
if (h->pgno == c->pg.pgno)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
217
if ((e = __bt_search(t, &c->key, &exact)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
227
while (h->pgno != c->pg.pgno) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
270
return ((*hp = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
527
CURSOR *c;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
536
c = &t->bt_cursor;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
537
F_CLR(c, CURS_AFTER | CURS_BEFORE | CURS_ACQUIRE);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
550
&c->key, &c->key, NULL, NULL, 1)) != RET_SUCCESS)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
553
key = &c->key;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
560
F_SET(c, CURS_BEFORE);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
569
F_SET(c, CURS_AFTER);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
580
F_SET(c, CURS_BEFORE);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
592
F_SET(c, CURS_AFTER);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
594
dup2: c->pg.pgno = e.page->pgno;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
595
c->pg.index = e.index;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
604
__bt_ret(t, &e, &c->key, &c->key, NULL, NULL, 1)) == RET_SUCCESS) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
605
F_SET(c, CURS_ACQUIRE);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
65
CURSOR *c;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
92
c = &t->bt_cursor;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
93
if (F_ISSET(c, CURS_INIT)) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
94
if (F_ISSET(c, CURS_ACQUIRE | CURS_AFTER | CURS_BEFORE))
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
96
if ((h = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
271
CURSOR *c;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
281
c = &t->bt_cursor;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
310
if (F_ISSET(c, CURS_ACQUIRE)) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
311
if ((rval = __bt_first(t, &c->key, ep, &exact)) == RET_ERROR)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
319
c->pg.pgno = ep->page->pgno;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
320
c->pg.index = ep->index;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
325
if ((h = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
340
if (F_ISSET(c, CURS_AFTER))
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
342
idx = c->pg.index;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
365
if (F_ISSET(c, CURS_BEFORE)) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
366
usecurrent: F_CLR(c, CURS_AFTER | CURS_BEFORE);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
368
ep->index = c->pg.index;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
371
idx = c->pg.index;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
607
CURSOR *c;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
699
c = &t->bt_cursor;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
700
if (F_ISSET(c, CURS_INIT) && c->pg.pgno == h->pgno) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
701
if (c->pg.index >= skip)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
702
++c->pg.index;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
703
if (c->pg.index < nxt) /* Left page. */
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
704
c->pg.pgno = l->pgno;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
706
c->pg.pgno = r->pgno;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
707
c->pg.index -= nxt;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
302
DBT k, c;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
306
c.data = content.dptr;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
307
c.size = content.dsize;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
308
return ((db->put)(db, &k, &c,
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
100
dcharhash(h, c);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
86
#define dcharhash(h, c) ((h) = 0x63c63cd9*(h) + 0x9c39c33d + (c))
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
92
u_int8_t *e, c, *k;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
97
c = *k++;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
98
if (!c && k > e)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
185
int c;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
202
while ((c = getopt(argc, argv, "bc:di:lp:ruw")) != -1) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
203
switch (c) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
328
char *c;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
330
c = lbuf;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
331
while (isspace(*c))
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
332
c++;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
333
while (*c != '\0' && argc < maxargc) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
334
*argv++ = c;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
336
while (!isspace(*c) && *c != '\0') {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
337
c++;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
339
while (isspace(*c))
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
340
*c++ = '\0';
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h
223
#define k5ldap_inited(c) (c && c->db_context \
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h
224
&& ((kdb5_dal_handle*)c->db_context)->db_context \
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h
225
&& ((krb5_ldap_context *) ((kdb5_dal_handle*)c->db_context)->db_context))
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
281
#define ku_reject(c, u) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
282
(((c)->ex_flags & EXFLAG_KUSAGE) && !((c)->ex_kusage & (u)))
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
287
#define ku_reject(c, u) (!(X509_get_key_usage(c) & (u)))
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
100
#define TRACE_PKINIT_OPENSSL_ERROR(c, msg) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
101
TRACE(c, "PKINIT OpenSSL error: {str}", msg)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
103
#define TRACE_PKINIT_PKCS11_NO_MATCH_TOKEN(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
104
TRACE(c, "PKINIT PKCS#11 module has no matching tokens")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
105
#define TRACE_PKINIT_PKCS11_NO_TOKEN(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
106
TRACE(c, "PKINIT PKCS#11 module shows no slots with tokens")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
107
#define TRACE_PKINIT_PKCS11_OPEN(c, name) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
108
TRACE(c, "PKINIT opening PKCS#11 module \"{str}\"", name)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
109
#define TRACE_PKINIT_PKCS11_SLOT(c, slot, len, label) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
110
TRACE(c, "PKINIT PKCS#11 slotid {int} token {lenstr}", \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
113
#define TRACE_PKINIT_SERVER_CERT_AUTH(c, modname) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
114
TRACE(c, "PKINIT server authorizing cert with module {str}", \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
116
#define TRACE_PKINIT_SERVER_EKU_REJECT(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
117
TRACE(c, "PKINIT server found no acceptable EKU in client cert")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
118
#define TRACE_PKINIT_SERVER_EKU_SKIP(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
119
TRACE(c, "PKINIT server skipping EKU check due to configuration")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
120
#define TRACE_PKINIT_SERVER_INIT_REALM(c, realm) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
121
TRACE(c, "PKINIT server initializing realm {str}", realm)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
122
#define TRACE_PKINIT_SERVER_INIT_FAIL(c, realm, retval) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
123
TRACE(c, "PKINIT server initialization failed for realm {str}: {kerr}", \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
125
#define TRACE_PKINIT_SERVER_MATCHING_UPN_FOUND(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
126
TRACE(c, "PKINIT server found a matching UPN SAN in client cert")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
127
#define TRACE_PKINIT_SERVER_MATCHING_SAN_FOUND(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
128
TRACE(c, "PKINIT server found a matching SAN in client cert")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
129
#define TRACE_PKINIT_SERVER_NO_SAN(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
130
TRACE(c, "PKINIT server found no SAN in client cert")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
131
#define TRACE_PKINIT_SERVER_PADATA_VERIFY(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
132
TRACE(c, "PKINIT server verifying KRB5_PADATA_PK_AS_REQ")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
133
#define TRACE_PKINIT_SERVER_PADATA_VERIFY_FAIL(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
134
TRACE(c, "PKINIT server failed to verify PA data")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
135
#define TRACE_PKINIT_SERVER_RETURN_PADATA(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
136
TRACE(c, "PKINIT server returning PA data")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
137
#define TRACE_PKINIT_SERVER_SAN_REJECT(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
138
TRACE(c, "PKINIT server found no acceptable SAN in client cert")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
139
#define TRACE_PKINIT_SERVER_UPN_PARSE_FAIL(c, upn, ret) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
140
TRACE(c, "PKINIT server could not parse UPN \"{str}\": {kerr}", \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
143
#define TRACE_PKINIT_CERT_CHAIN_NAME(c, index, name) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
144
TRACE(c, "PKINIT chain cert #{int}: {str}", index, name)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
145
#define TRACE_PKINIT_CERT_NUM_MATCHING(c, total, nummatch) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
146
TRACE(c, "PKINIT client checked {int} certs, found {int} matches", \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
148
#define TRACE_PKINIT_CERT_RULE(c, rule) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
149
TRACE(c, "PKINIT client matching rule '{str}' against certificates", rule)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
150
#define TRACE_PKINIT_CERT_RULE_INVALID(c, rule) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
151
TRACE(c, "PKINIT client ignoring invalid rule '{str}'", rule)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
153
#define TRACE_PKINIT_EKU(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
154
TRACE(c, "PKINIT found acceptable EKU and digitalSignature KU")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
155
#define TRACE_PKINIT_EKU_NO_KU(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
156
TRACE(c, "PKINIT found acceptable EKU but no digitalSignature KU")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
157
#define TRACE_PKINIT_IDENTITY_OPTION(c, name) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
158
TRACE(c, "PKINIT loading identity {str}", name)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
159
#define TRACE_PKINIT_LOADED_CERT(c, name) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
160
TRACE(c, "PKINIT loaded cert and key for {str}", name)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
161
#define TRACE_PKINIT_LOAD_FROM_FILE(c, name) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
162
TRACE(c, "PKINIT loading CA certs and CRLs from FILE {str}", name)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
163
#define TRACE_PKINIT_LOAD_FROM_DIR(c, name) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
164
TRACE(c, "PKINIT loading CA certs and CRLs from DIR {str}", name)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
165
#define TRACE_PKINIT_NO_CA_ANCHOR(c, file) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
166
TRACE(c, "PKINIT no anchor CA in file {str}", file)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
167
#define TRACE_PKINIT_NO_CA_INTERMEDIATE(c, file) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
168
TRACE(c, "PKINIT no intermediate CA in file {str}", file)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
169
#define TRACE_PKINIT_NO_CERT(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
170
TRACE(c, "PKINIT no certificate provided")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
171
#define TRACE_PKINIT_NO_CERT_AND_KEY(c, dirname) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
172
TRACE(c, "PKINIT no cert and key pair found in directory {str}", \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
174
#define TRACE_PKINIT_NO_CRL(c, file) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
175
TRACE(c, "PKINIT no CRL in file {str}", file)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
176
#define TRACE_PKINIT_NO_DEFAULT_CERT(c, count) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
177
TRACE(c, "PKINIT error: There are {int} certs, but there must " \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
179
#define TRACE_PKINIT_NO_MATCHING_CERT(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
180
TRACE(c, "PKINIT no matching certificate found")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
181
#define TRACE_PKINIT_NO_PRIVKEY(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
182
TRACE(c, "PKINIT no private key provided")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
183
#define TRACE_PKINIT_PKCS_DECODE_FAIL(c, name) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
184
TRACE(c, "PKINIT failed to decode PKCS12 file {str} contents", name)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
185
#define TRACE_PKINIT_PKCS_OPEN_FAIL(c, name, err) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
186
TRACE(c, "PKINIT failed to open PKCS12 file {str}: err {errno}", \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
188
#define TRACE_PKINIT_PKCS_PARSE_FAIL_FIRST(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
189
TRACE(c, "PKINIT initial PKCS12_parse with no password failed")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
190
#define TRACE_PKINIT_PKCS_PARSE_FAIL_SECOND(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
191
TRACE(c, "PKINIT second PKCS12_parse with password failed")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
192
#define TRACE_PKINIT_PKCS_PROMPT_FAIL(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
193
TRACE(c, "PKINIT failed to prompt for PKCS12 password")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
194
#define TRACE_PKINIT_REGEXP_MATCH(c, keyword, comp, value, idx) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
195
TRACE(c, "PKINIT matched {str} rule '{str}' with " \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
197
#define TRACE_PKINIT_REGEXP_NOMATCH(c, keyword, comp, value, idx) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
198
TRACE(c, "PKINIT didn't match {str} rule '{str}' with " \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
200
#define TRACE_PKINIT_SAN_CERT_COUNT(c, count, princ, upns, dns, cert) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
201
TRACE(c, "PKINIT client found {int} SANs ({int} princs, {int} " \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
204
#define TRACE_PKINIT_SAN_CERT_NONE(c, cert) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
205
TRACE(c, "PKINIT client found no SANs in certificate {str}", cert)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
207
#define TRACE_CERTAUTH_VTINIT_FAIL(c, ret) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
208
TRACE(c, "certauth module failed to init vtable: {kerr}", ret)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
209
#define TRACE_CERTAUTH_INIT_FAIL(c, name, ret) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
210
TRACE(c, "certauth module {str} failed to init: {kerr}", name, ret)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
38
#define TRACE_PKINIT_CLIENT_EKU_ACCEPT(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
39
TRACE(c, "PKINIT client found acceptable EKU in KDC cert")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
40
#define TRACE_PKINIT_CLIENT_EKU_REJECT(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
41
TRACE(c, "PKINIT client found no acceptable EKU in KDC cert")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
42
#define TRACE_PKINIT_CLIENT_EKU_SKIP(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
43
TRACE(c, "PKINIT client skipping EKU check due to configuration")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
44
#define TRACE_PKINIT_CLIENT_FRESHNESS_TOKEN(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
45
TRACE(c, "PKINIT client received freshness token from KDC")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
46
#define TRACE_PKINIT_CLIENT_NO_IDENTITY(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
47
TRACE(c, "PKINIT client has no configured identity; giving up")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
48
#define TRACE_PKINIT_CLIENT_REP_CHECKSUM_FAIL(c, expected, received) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
49
TRACE(c, "PKINIT client checksum mismatch: expected {cksum}, " \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
51
#define TRACE_PKINIT_CLIENT_REP_DH(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
52
TRACE(c, "PKINIT client verified DH reply")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
53
#define TRACE_PKINIT_CLIENT_REP_DH_FAIL(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
54
TRACE(c, "PKINIT client could not verify DH reply")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
55
#define TRACE_PKINIT_CLIENT_REQ_CHECKSUMS(c, ck1, ck2) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
56
TRACE(c, "PKINIT client computed checksums: {hexdata} {hexdata}", \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
58
#define TRACE_PKINIT_CLIENT_REQ_DH(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
59
TRACE(c, "PKINIT client making DH request")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
60
#define TRACE_PKINIT_CLIENT_SAN_CONFIG_DNSNAME(c, host) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
61
TRACE(c, "PKINIT client config accepts KDC dNSName SAN {str}", host)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
62
#define TRACE_PKINIT_CLIENT_SAN_MATCH_DNSNAME(c, host) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
63
TRACE(c, "PKINIT client matched KDC hostname {str} against " \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
65
#define TRACE_PKINIT_CLIENT_SAN_MATCH_NONE(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
66
TRACE(c, "PKINIT client found no acceptable SAN in KDC cert")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
67
#define TRACE_PKINIT_CLIENT_SAN_MATCH_PRINC(c, princ) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
68
TRACE(c, "PKINIT client matched KDC principal {princ} against " \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
70
#define TRACE_PKINIT_CLIENT_SAN_ERR(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
71
TRACE(c, "PKINIT client failed to decode SANs in KDC cert")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
72
#define TRACE_PKINIT_CLIENT_SAN_KDCCERT_DNSNAME(c, host) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
73
TRACE(c, "PKINIT client found dNSName SAN in KDC cert: {str}", host)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
74
#define TRACE_PKINIT_CLIENT_SAN_KDCCERT_PRINC(c, princ) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
75
TRACE(c, "PKINIT client found id-pkinit-san in KDC cert: {princ}", princ)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
76
#define TRACE_PKINIT_CLIENT_TRYAGAIN(c) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
77
TRACE(c, "PKINIT client trying again with KDC-provided parameters")
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
79
#define TRACE_PKINIT_DH_GROUP_UNAVAILABLE(c, name) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
80
TRACE(c, "PKINIT key exchange group {str} unsupported", name)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
81
#define TRACE_PKINIT_DH_INVALID_MIN_BITS(c, str) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
82
TRACE(c, "Invalid pkinit_dh_min_bits value {str}, using default", str)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
83
#define TRACE_PKINIT_DH_NEGOTIATED_GROUP(c, desc) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
84
TRACE(c, "PKINIT accepting KDC key exchange group preference {str}", desc)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
85
#define TRACE_PKINIT_DH_PROPOSING_GROUP(c, desc) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
86
TRACE(c, "PKINIT using {str} key exchange group", desc)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
87
#define TRACE_PKINIT_DH_RECEIVED_GROUP(c, desc) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
88
TRACE(c, "PKINIT received {str} key from client for key exchange", desc)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
89
#define TRACE_PKINIT_DH_REJECTING_GROUP(c, desc, mindesc) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
90
TRACE(c, "PKINIT client key has group {str}, need at least {str}", \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
93
#define TRACE_PKINIT_KDF_ALG(c, kdf, keyblock) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
94
TRACE(c, "PKINIT used KDF {hexdata} to compute reply key {keyblock}", \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
96
#define TRACE_PKINIT_KDF_OS2K(c, keyblock) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
97
TRACE(c, "PKINIT used octetstring2key to compute reply key {keyblock}", \
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
808
static uint8_t equal(signed char b, signed char c) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
810
uint8_t uc = c;
crypto/krb5/src/plugins/preauth/spake/trace.h
44
#define TRACE_SPAKE_CLIENT_THASH(c, thash) \
crypto/krb5/src/plugins/preauth/spake/trace.h
45
TRACE(c, "SPAKE final transcript hash: {hexdata}", thash)
crypto/krb5/src/plugins/preauth/spake/trace.h
46
#define TRACE_SPAKE_DERIVE_KEY(c, n, kb) \
crypto/krb5/src/plugins/preauth/spake/trace.h
47
TRACE(c, "SPAKE derived K'[{int}] = {keyblock}", n, kb)
crypto/krb5/src/plugins/preauth/spake/trace.h
48
#define TRACE_SPAKE_KDC_THASH(c, thash) \
crypto/krb5/src/plugins/preauth/spake/trace.h
49
TRACE(c, "SPAKE final transcript hash: {hexdata}", thash)
crypto/krb5/src/plugins/preauth/spake/trace.h
50
#define TRACE_SPAKE_KEYGEN(c, pubkey) \
crypto/krb5/src/plugins/preauth/spake/trace.h
51
TRACE(c, "SPAKE key generated with pubkey {hexdata}", pubkey)
crypto/krb5/src/plugins/preauth/spake/trace.h
52
#define TRACE_SPAKE_RECEIVE_CHALLENGE(c, group, pubkey) \
crypto/krb5/src/plugins/preauth/spake/trace.h
53
TRACE(c, "SPAKE challenge received with group {int}, pubkey {hexdata}", \
crypto/krb5/src/plugins/preauth/spake/trace.h
55
#define TRACE_SPAKE_RECEIVE_RESPONSE(c, pubkey) \
crypto/krb5/src/plugins/preauth/spake/trace.h
56
TRACE(c, "SPAKE response received with pubkey {hexdata}", pubkey)
crypto/krb5/src/plugins/preauth/spake/trace.h
57
#define TRACE_SPAKE_RECEIVE_SUPPORT(c, group) \
crypto/krb5/src/plugins/preauth/spake/trace.h
58
TRACE(c, "SPAKE support message received, selected group {int}", group)
crypto/krb5/src/plugins/preauth/spake/trace.h
59
#define TRACE_SPAKE_REJECT_CHALLENGE(c, group) \
crypto/krb5/src/plugins/preauth/spake/trace.h
60
TRACE(c, "SPAKE challenge with group {int} rejected", (int)group)
crypto/krb5/src/plugins/preauth/spake/trace.h
61
#define TRACE_SPAKE_REJECT_SUPPORT(c) \
crypto/krb5/src/plugins/preauth/spake/trace.h
62
TRACE(c, "SPAKE support message rejected")
crypto/krb5/src/plugins/preauth/spake/trace.h
63
#define TRACE_SPAKE_RESULT(c, result) \
crypto/krb5/src/plugins/preauth/spake/trace.h
64
TRACE(c, "SPAKE algorithm result: {hexdata}", result)
crypto/krb5/src/plugins/preauth/spake/trace.h
65
#define TRACE_SPAKE_SEND_CHALLENGE(c, group) \
crypto/krb5/src/plugins/preauth/spake/trace.h
66
TRACE(c, "Sending SPAKE challenge with group {int}", group)
crypto/krb5/src/plugins/preauth/spake/trace.h
67
#define TRACE_SPAKE_SEND_RESPONSE(c) \
crypto/krb5/src/plugins/preauth/spake/trace.h
68
TRACE(c, "Sending SPAKE response")
crypto/krb5/src/plugins/preauth/spake/trace.h
69
#define TRACE_SPAKE_SEND_SUPPORT(c) \
crypto/krb5/src/plugins/preauth/spake/trace.h
70
TRACE(c, "Sending SPAKE support message")
crypto/krb5/src/plugins/preauth/spake/trace.h
71
#define TRACE_SPAKE_UNKNOWN_GROUP(c, name) \
crypto/krb5/src/plugins/preauth/spake/trace.h
72
TRACE(c, "Unrecognized SPAKE group name: {str}", name)
crypto/krb5/src/util/profile/prof_parse.c
370
char *c = bptr + strlen (bptr);
crypto/krb5/src/util/profile/prof_parse.c
372
if (*c == '\r' || *c == '\n') {
crypto/krb5/src/util/profile/prof_parse.c
373
*c = '\0';
crypto/krb5/src/util/profile/prof_parse.c
377
c--;
crypto/krb5/src/util/ss/listen.c
144
char *c = input;
crypto/krb5/src/util/ss/listen.c
145
while (*c == ' ' || *c == '\t')
crypto/krb5/src/util/ss/listen.c
146
c++;
crypto/krb5/src/util/ss/listen.c
147
cp = strchr (c, ' ');
crypto/krb5/src/util/ss/listen.c
150
cp = strchr (c, '\t');
crypto/krb5/src/util/ss/listen.c
155
c);
crypto/krb5/src/util/support/base64.c
47
unsigned int c;
crypto/krb5/src/util/support/base64.c
59
c = q[i++];
crypto/krb5/src/util/support/base64.c
60
c *= 256;
crypto/krb5/src/util/support/base64.c
62
c += q[i];
crypto/krb5/src/util/support/base64.c
64
c *= 256;
crypto/krb5/src/util/support/base64.c
66
c += q[i];
crypto/krb5/src/util/support/base64.c
68
p[0] = base64_chars[(c & 0x00fc0000) >> 18];
crypto/krb5/src/util/support/base64.c
69
p[1] = base64_chars[(c & 0x0003f000) >> 12];
crypto/krb5/src/util/support/base64.c
70
p[2] = base64_chars[(c & 0x00000fc0) >> 6];
crypto/krb5/src/util/support/base64.c
71
p[3] = base64_chars[(c & 0x0000003f) >> 0];
crypto/krb5/src/util/support/fnmatch.c
100
} else if (c == test)
crypto/krb5/src/util/support/fnmatch.c
111
char c, test;
crypto/krb5/src/util/support/fnmatch.c
120
switch (c = FOLDCASE(*pattern++, flags)) {
crypto/krb5/src/util/support/fnmatch.c
137
c = FOLDCASE(*pattern, flags);
crypto/krb5/src/util/support/fnmatch.c
139
while (c == '*')
crypto/krb5/src/util/support/fnmatch.c
140
c = FOLDCASE(*++pattern, flags);
crypto/krb5/src/util/support/fnmatch.c
148
if (c == EOS) {
crypto/krb5/src/util/support/fnmatch.c
155
} else if (c == '/' && flags & FNM_PATHNAME) {
crypto/krb5/src/util/support/fnmatch.c
188
if ((c = FOLDCASE(*pattern++, flags)) == EOS) {
crypto/krb5/src/util/support/fnmatch.c
189
c = '\\';
crypto/krb5/src/util/support/fnmatch.c
195
if (c != FOLDCASE(*string++, flags))
crypto/krb5/src/util/support/fnmatch.c
71
char c, c2;
crypto/krb5/src/util/support/fnmatch.c
85
for (ok = 0; (c = FOLDCASE(*pattern++, flags)) != ']';) {
crypto/krb5/src/util/support/fnmatch.c
86
if (c == '\\' && !(flags & FNM_NOESCAPE))
crypto/krb5/src/util/support/fnmatch.c
87
c = FOLDCASE(*pattern++, flags);
crypto/krb5/src/util/support/fnmatch.c
88
if (c == EOS)
crypto/krb5/src/util/support/fnmatch.c
98
if (c <= test && test <= c2)
crypto/krb5/src/util/support/hex.c
74
decode_hexchar(unsigned char c)
crypto/krb5/src/util/support/hex.c
76
if (isdigit(c))
crypto/krb5/src/util/support/hex.c
77
return c - '0';
crypto/krb5/src/util/support/hex.c
78
if (c >= 'A' && c <= 'F')
crypto/krb5/src/util/support/hex.c
79
return c - 'A' + 10;
crypto/krb5/src/util/support/hex.c
80
if (c >= 'a' && c <= 'f')
crypto/krb5/src/util/support/hex.c
81
return c - 'a' + 10;
crypto/krb5/src/util/support/json.c
717
unsigned char c;
crypto/krb5/src/util/support/json.c
720
c = *ctx->p;
crypto/krb5/src/util/support/json.c
721
if (c != ' ' && c != '\t' && c != '\r' && c != '\n')
crypto/krb5/src/util/support/json.c
729
is_digit(unsigned char c)
crypto/krb5/src/util/support/json.c
731
return ('0' <= c && c <= '9');
crypto/krb5/src/util/support/json.c
736
is_hex_digit(unsigned char c)
crypto/krb5/src/util/support/json.c
738
return is_digit(c) || ('A' <= c && c <= 'F');
crypto/krb5/src/util/support/json.c
743
hexval(unsigned char c)
crypto/krb5/src/util/support/json.c
745
if (is_digit(c))
crypto/krb5/src/util/support/json.c
746
return c - '0';
crypto/krb5/src/util/support/json.c
747
else if ('A' <= c && c <= 'F')
crypto/krb5/src/util/support/json.c
748
return c - 'A' + 10;
crypto/krb5/src/util/support/path.c
123
char *path, c;
crypto/krb5/src/util/support/path.c
139
c = path1[strlen(path1) - 1];
crypto/krb5/src/util/support/path.c
140
if (IS_SEPARATOR(c) || IS_SEPARATOR(*path2))
crypto/krb5/src/util/support/path.c
41
#define IS_SEPARATOR(c) ((c) == '\\' || (c) == '/')
crypto/krb5/src/util/support/path.c
44
#define IS_SEPARATOR(c) ((c) == '/')
crypto/krb5/src/util/support/utf8.c
104
const unsigned char *c = (const unsigned char *) p;
crypto/krb5/src/util/support/utf8.c
116
ch = c[0] & mask[len];
crypto/krb5/src/util/support/utf8.c
119
if ((c[i] & 0xc0) != 0x80)
crypto/krb5/src/util/support/utf8.c
123
ch |= c[i] & 0x3f;
crypto/krb5/src/util/support/utf8.c
134
size_t krb5int_ucs4_to_utf8(krb5_ucs4 c, char *buf)
crypto/krb5/src/util/support/utf8.c
140
if (c > 0x10ffff)
crypto/krb5/src/util/support/utf8.c
145
if (c < 0x80) return 1;
crypto/krb5/src/util/support/utf8.c
146
else if (c < 0x800) return 2;
crypto/krb5/src/util/support/utf8.c
147
else if (c < 0x10000) return 3;
crypto/krb5/src/util/support/utf8.c
151
if (c < 0x80) {
crypto/krb5/src/util/support/utf8.c
152
p[len++] = c;
crypto/krb5/src/util/support/utf8.c
153
} else if (c < 0x800) {
crypto/krb5/src/util/support/utf8.c
154
p[len++] = 0xc0 | ( c >> 6 );
crypto/krb5/src/util/support/utf8.c
155
p[len++] = 0x80 | ( c & 0x3f );
crypto/krb5/src/util/support/utf8.c
156
} else if (c < 0x10000) {
crypto/krb5/src/util/support/utf8.c
157
p[len++] = 0xe0 | ( c >> 12 );
crypto/krb5/src/util/support/utf8.c
158
p[len++] = 0x80 | ( (c >> 6) & 0x3f );
crypto/krb5/src/util/support/utf8.c
159
p[len++] = 0x80 | ( c & 0x3f );
crypto/krb5/src/util/support/utf8.c
161
p[len++] = 0xf0 | ( c >> 18 );
crypto/krb5/src/util/support/utf8.c
162
p[len++] = 0x80 | ( (c >> 12) & 0x3f );
crypto/krb5/src/util/support/utf8.c
163
p[len++] = 0x80 | ( (c >> 6) & 0x3f );
crypto/krb5/src/util/support/utf8.c
164
p[len++] = 0x80 | ( c & 0x3f );
crypto/krb5/src/util/support/utf8.c
91
c krb5int_utf8_mintab[] = {
crypto/krb5/src/util/support/utf8.c
92
(c)0x20, (c)0x80, (c)0x80, (c)0x80, (c)0x80, (c)0x80, (c)0x80, (c)0x80,
crypto/krb5/src/util/support/utf8.c
93
(c)0x80, (c)0x80, (c)0x80, (c)0x80, (c)0x80, (c)0x80, (c)0x80, (c)0x80,
crypto/krb5/src/util/support/utf8.c
94
(c)0x30, (c)0x80, (c)0x80, (c)0x80, (c)0x80, (c)0x00, (c)0x00, (c)0x00,
crypto/krb5/src/util/support/utf8.c
95
(c)0x00, (c)0x00, (c)0x00, (c)0x00, (c)0x00, (c)0x00, (c)0x00, (c)0x00 };
crypto/krb5/src/util/support/utf8_conv.c
70
#define IS_HIGH_SURROGATE(c) ((c) >= 0xD800 && (c) <= 0xDBFF)
crypto/krb5/src/util/support/utf8_conv.c
73
#define IS_LOW_SURROGATE(c) ((c) >= 0xDC00 && (c) <= 0xDFFF)
crypto/krb5/src/util/support/utf8_conv.c
77
#define IS_SURROGATE(c) ((c) >= 0xD800 && (c) <= 0xDFFF)
crypto/krb5/src/util/support/utf8_conv.c
78
#define IS_VALID_UNICODE(c) ((c) <= 0x10FFFF && !IS_SURROGATE(c))
crypto/krb5/src/util/support/utf8_conv.c
82
#define IS_BMP(c) ((c) <= 0xFFFF && !IS_SURROGATE(c))
crypto/krb5/src/util/support/utf8_conv.c
87
#define HIGH_SURROGATE(c) (0xD800 | (((c) - BASE) >> 10))
crypto/krb5/src/util/support/utf8_conv.c
88
#define LOW_SURROGATE(c) (0xDC00 | (((c) - BASE) & 0x3FF))
crypto/krb5/src/util/verto/ev.c
1152
uint8_t c[4];
crypto/krb5/src/util/verto/ev.c
1652
unsigned int c = 0;
crypto/krb5/src/util/verto/ev.c
1657
c = c * 10 + *p++ - '0';
crypto/krb5/src/util/verto/ev.c
1665
v = (v << 8) | c;
crypto/krb5/src/util/verto/ev.c
2304
int c = k << 1;
crypto/krb5/src/util/verto/ev.c
2306
if (c >= N + HEAP0)
crypto/krb5/src/util/verto/ev.c
2309
c += c + 1 < N + HEAP0 && ANHE_at (heap [c]) > ANHE_at (heap [c + 1])
crypto/krb5/src/util/verto/ev.c
2312
if (ANHE_at (he) <= ANHE_at (heap [c]))
crypto/krb5/src/util/verto/ev.c
2315
heap [k] = heap [c];
crypto/krb5/src/util/verto/ev.c
2318
k = c;
crypto/krb5/src/util/verto/verto.c
125
int c = pthread_mutex_lock(x); \
crypto/krb5/src/util/verto/verto.c
126
if (c != 0) { \
crypto/krb5/src/util/verto/verto.c
128
c, strerror(c), __FUNCTION__); \
crypto/krb5/src/util/verto/verto.c
130
assert(c == 0); \
crypto/krb5/src/util/verto/verto.c
133
int c = pthread_mutex_unlock(x); \
crypto/krb5/src/util/verto/verto.c
134
if (c != 0) { \
crypto/krb5/src/util/verto/verto.c
136
c, strerror(c), __FUNCTION__); \
crypto/krb5/src/util/verto/verto.c
138
assert(c == 0); \
crypto/krb5/src/util/verto/verto.c
141
int c = pthread_mutex_destroy(x); \
crypto/krb5/src/util/verto/verto.c
142
if (c != 0) { \
crypto/krb5/src/util/verto/verto.c
144
c, strerror(c), __FUNCTION__); \
crypto/krb5/src/util/verto/verto.c
146
assert(c == 0); \
crypto/krb5/src/windows/installer/wix/custom/custom.cpp
34
$(CC) /c /Fo$@ custom.cpp
crypto/krb5/src/windows/leashdll/lsh_pwd.c
1000
if (c == '\n') {
crypto/krb5/src/windows/leashdll/lsh_pwd.c
1006
if (c == EOF) {
crypto/krb5/src/windows/leashdll/lsh_pwd.c
988
int c,i;
crypto/krb5/src/windows/leashdll/lsh_pwd.c
990
for (i=0, c=fgetc(file); c != EOF ; c=fgetc(file), i++)
crypto/krb5/src/windows/leashdll/lsh_pwd.c
993
if (c == '\n') {
crypto/krb5/src/windows/leashdll/lsh_pwd.c
997
buf[i] = c;
crypto/krb5/src/windows/leashdll/lshutil.cpp
399
int c;
crypto/krb5/src/windows/leashdll/lshutil.cpp
401
while ((c = *str) != NULL) {
crypto/krb5/src/windows/leashdll/lshutil.cpp
402
if (__isascii(c) && islower(c)) {
crypto/krb5/src/windows/leashdll/lshutil.cpp
404
*str = _toupper(c);
crypto/libecc/include/libecc/hash/sha2.h
109
#define SHA2CORE(a, b, c, d, e, f, g, h, w, k, sha_word_type, sha_type) do {\
crypto/libecc/include/libecc/hash/sha2.h
112
t2 = SIGMA_MAJ0_##sha_type((a)) + MAJ((a), (b), (c));\
crypto/libecc/include/libecc/hash/sha2.h
117
(d) = (c);\
crypto/libecc/include/libecc/hash/sha2.h
118
(c) = (b);\
crypto/libecc/include/libecc/hash/sha2.h
134
#define SHA2CORE_SHA256(a, b, c, d, e, f, g, h, w, k) \
crypto/libecc/include/libecc/hash/sha2.h
135
SHA2CORE(a, b, c, d, e, f, g, h, w, k, u32, SHA256)
crypto/libecc/include/libecc/hash/sha2.h
170
#define SHA2CORE_SHA512(a, b, c, d, e, f, g, h, w, k) \
crypto/libecc/include/libecc/hash/sha2.h
171
SHA2CORE(a, b, c, d, e, f, g, h, w, k, u64, SHA512)
crypto/libecc/include/libecc/nn/nn_config.h
183
#define _LIBECC_CONCATENATE(a, b, c, d, e) a##_##b##_##c##_##d##_##e
crypto/libecc/include/libecc/nn/nn_config.h
184
#define LIBECC_CONCATENATE(a, b, c, d, e) _LIBECC_CONCATENATE(a, b, c, d, e)
crypto/libecc/include/libecc/nn/nn_config.h
201
#define _LIBECC_CONCATENATE(a, b, c, d, e, f) a##_##b##_##c##_##d##_##e##_##f
crypto/libecc/include/libecc/nn/nn_config.h
202
#define LIBECC_CONCATENATE(a, b, c, d, e, f) _LIBECC_CONCATENATE(a, b, c, d, e, f)
crypto/libecc/include/libecc/utils/utils.h
171
ATTRIBUTE_WARN_UNUSED_RET int local_memset(void *v, u8 c, u32 n);
crypto/libecc/include/libecc/words/types.h
140
#define UINT8_C(c) ((uint8_t)(c ## UL))
crypto/libecc/include/libecc/words/types.h
141
#define UINT16_C(c) ((uint16_t)(c ## UL))
crypto/libecc/include/libecc/words/types.h
142
#define UINT32_C(c) ((uint32_t)(c ## UL))
crypto/libecc/include/libecc/words/types.h
143
#define UINT64_C(c) (c ## ULL)
crypto/libecc/include/libecc/words/words.h
79
#define WLSHIFT(w, c) ((word_t)(((c) >= WORD_BITS) ? WORD(0) : (word_t)((w) << (c))))
crypto/libecc/include/libecc/words/words.h
80
#define WRSHIFT(w, c) ((word_t)(((c) >= WORD_BITS) ? WORD(0) : (word_t)((w) >> (c))))
crypto/libecc/src/arithmetic_tests/arithmetic_tests.c
375
#define SET_PARAMETER_PRETTY_NAME3(a, b, c) SET_PARAMETER_PRETTY_NAME2(a, b) "\0" c
crypto/libecc/src/arithmetic_tests/arithmetic_tests.c
376
#define SET_PARAMETER_PRETTY_NAME4(a, b, c, d) SET_PARAMETER_PRETTY_NAME3(a, b, c) "\0" d
crypto/libecc/src/arithmetic_tests/arithmetic_tests.c
377
#define SET_PARAMETER_PRETTY_NAME5(a, b, c, d, e) SET_PARAMETER_PRETTY_NAME4(a, b, c, d) "\0" e
crypto/libecc/src/arithmetic_tests/arithmetic_tests.c
378
#define SET_PARAMETER_PRETTY_NAME6(a, b, c, d, e, f) SET_PARAMETER_PRETTY_NAME5(a, b, c, d, e) "\0" f
crypto/libecc/src/arithmetic_tests/arithmetic_tests.c
841
char c;
crypto/libecc/src/arithmetic_tests/arithmetic_tests.c
854
while ((len > 0) && ((ret = read(fd, &c, 1)) != 0) && (c != '\n')) {
crypto/libecc/src/arithmetic_tests/arithmetic_tests.c
855
buf[pos++] = c;
crypto/libecc/src/curves/aff_pt_montgomery.c
396
fp c, gamma_inv, A, tmp;
crypto/libecc/src/curves/aff_pt_montgomery.c
397
c.magic = gamma_inv.magic = A.magic = tmp.magic = WORD(0);
crypto/libecc/src/curves/aff_pt_montgomery.c
406
ret = fp_init(&c, shortw_crv->a.ctx); EG(ret, err);
crypto/libecc/src/curves/aff_pt_montgomery.c
418
ret = fp_set_word_value(&c, WORD(3)); EG(ret, err);
crypto/libecc/src/curves/aff_pt_montgomery.c
419
ret = fp_mul(&c, &c, alpha); EG(ret, err);
crypto/libecc/src/curves/aff_pt_montgomery.c
420
ret = fp_mul(&c, &c, alpha); EG(ret, err);
crypto/libecc/src/curves/aff_pt_montgomery.c
421
ret = fp_add(&c, &c, &(shortw_crv->a)); EG(ret, err);
crypto/libecc/src/curves/aff_pt_montgomery.c
424
MUST_HAVE((!fp_cmp(&c, &tmp, &cmp)) && (!cmp), ret, err);
crypto/libecc/src/curves/aff_pt_montgomery.c
432
fp_uninit(&c);
crypto/libecc/src/examples/basic/nn_pollard_rho.c
137
word_t c;
crypto/libecc/src/examples/basic/nn_pollard_rho.c
165
c = 0;
crypto/libecc/src/examples/basic/nn_pollard_rho.c
167
c++;
crypto/libecc/src/examples/basic/nn_pollard_rho.c
168
ret = pollard_rho(&(divisors[n_divisors_found]), &n, c);
crypto/libecc/src/examples/basic/nn_pollard_rho.c
205
c = 0;
crypto/libecc/src/examples/basic/nn_pollard_rho.c
40
ATTRIBUTE_WARN_UNUSED_RET int pollard_rho(nn_t d, nn_src_t n, const word_t c);
crypto/libecc/src/examples/basic/nn_pollard_rho.c
58
int pollard_rho(nn_t d, nn_src_t n, const word_t c)
crypto/libecc/src/examples/basic/nn_pollard_rho.c
73
MUST_HAVE((c > 0), ret, err);
crypto/libecc/src/examples/basic/nn_pollard_rho.c
81
ret = nn_set_word_value(&c_bignum, c); EG(ret, err);
crypto/libecc/src/examples/hash/gostr34_11_94.c
308
u64 a, b, c;
crypto/libecc/src/examples/hash/gostr34_11_94.c
314
c = (u64)(tmp + _carry);
crypto/libecc/src/examples/hash/gostr34_11_94.c
315
carry2 = (u64)(c < tmp);
crypto/libecc/src/examples/hash/gostr34_11_94.c
317
PUT_UINT64_BE(c, (u8*)(&C[idx]), 0);
crypto/libecc/src/examples/hash/sha0.c
28
#define SHA0_SUBROUND(a, b, c, d, e, F, K, data) do { \
crypto/libecc/src/examples/hash/sha0.c
30
A_ = (e + ROTL_SHA0(a, 5) + F(b, c, d) + K + data); \
crypto/libecc/src/examples/hash/sha0.c
33
D_ = c; \
crypto/libecc/src/examples/hash/sha0.c
36
a = A_; b = B_; c = C_; d = D_; e = E_; \
crypto/libecc/src/examples/hash/sha1.c
28
#define SHA1_SUBROUND(a, b, c, d, e, F, K, data) do { \
crypto/libecc/src/examples/hash/sha1.c
30
A_ = (e + ROTL_SHA1(a, 5) + F(b, c, d) + K + data); \
crypto/libecc/src/examples/hash/sha1.c
33
D_ = c; \
crypto/libecc/src/examples/hash/sha1.c
36
a = A_; b = B_; c = C_; d = D_; e = E_; \
crypto/libecc/src/examples/sig/rsa/rsa.c
1136
u8 *c, u32 *clen, u32 modbits,
crypto/libecc/src/examples/sig/rsa/rsa.c
1141
u8 *em = c;
crypto/libecc/src/examples/sig/rsa/rsa.c
1146
MUST_HAVE((clen != NULL) && (c != NULL) && (m != NULL), ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
1185
ret = rsa_i2osp(&c_, c, (u16)k); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
1193
IGNORE_RET_VAL(local_memset(c, 0, (*clen)));
crypto/libecc/src/examples/sig/rsa/rsa.c
1202
ATTRIBUTE_WARN_UNUSED_RET static int _rsaes_pkcs1_v1_5_decrypt(const rsa_priv_key *priv, const rsa_pub_key *pub, const u8 *c, u32 clen,
crypto/libecc/src/examples/sig/rsa/rsa.c
1213
MUST_HAVE((mlen != NULL) && (c != NULL) && (m != NULL), ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
1223
ret = rsa_os2ip(&c_, c, clen); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
1281
int rsaes_pkcs1_v1_5_decrypt(const rsa_priv_key *priv, const u8 *c, u32 clen,
crypto/libecc/src/examples/sig/rsa/rsa.c
1284
return _rsaes_pkcs1_v1_5_decrypt(priv, NULL, c, clen, m, mlen, modbits);
crypto/libecc/src/examples/sig/rsa/rsa.c
1290
int rsaes_pkcs1_v1_5_decrypt_hardened(const rsa_priv_key *priv, const rsa_pub_key *pub, const u8 *c, u32 clen,
crypto/libecc/src/examples/sig/rsa/rsa.c
1293
return _rsaes_pkcs1_v1_5_decrypt(priv, pub, c, clen, m, mlen, modbits);
crypto/libecc/src/examples/sig/rsa/rsa.c
1300
u8 *c, u32 *clen, u32 modbits, const u8 *label, u32 label_len,
crypto/libecc/src/examples/sig/rsa/rsa.c
1308
u8 *em = c;
crypto/libecc/src/examples/sig/rsa/rsa.c
1317
const u8 *input[2] = { c, NULL };
crypto/libecc/src/examples/sig/rsa/rsa.c
1327
MUST_HAVE((clen != NULL) && (c != NULL) && (m != NULL), ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
1401
ret = rsa_i2osp(&c_, c, (u16)k); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
1409
IGNORE_RET_VAL(local_memset(c, 0, (*clen)));
crypto/libecc/src/examples/sig/rsa/rsa.c
1418
ATTRIBUTE_WARN_UNUSED_RET static int _rsaes_oaep_decrypt(const rsa_priv_key *priv, const rsa_pub_key *pub, const u8 *c, u32 clen,
crypto/libecc/src/examples/sig/rsa/rsa.c
1437
const u8 *input[2] = { c, NULL };
crypto/libecc/src/examples/sig/rsa/rsa.c
1447
MUST_HAVE((c != NULL) && (m != NULL), ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
1460
ret = rsa_os2ip(&c_, c, clen); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
1553
int rsaes_oaep_decrypt(const rsa_priv_key *priv, const u8 *c, u32 clen,
crypto/libecc/src/examples/sig/rsa/rsa.c
1558
return _rsaes_oaep_decrypt(priv, NULL, c, clen, m, mlen, modbits, label, label_len, gen_hash_type, mgf_hash_type);
crypto/libecc/src/examples/sig/rsa/rsa.c
1564
int rsaes_oaep_decrypt_hardened(const rsa_priv_key *priv, const rsa_pub_key *pub, const u8 *c, u32 clen,
crypto/libecc/src/examples/sig/rsa/rsa.c
1569
return _rsaes_oaep_decrypt(priv, pub, c, clen, m, mlen, modbits, label, label_len, gen_hash_type, mgf_hash_type);
crypto/libecc/src/examples/sig/rsa/rsa.c
214
int rsaep(const rsa_pub_key *pub, nn_src_t m, nn_t c)
crypto/libecc/src/examples/sig/rsa/rsa.c
237
ret = _nn_mod_pow_insecure(c, m, e, n);
crypto/libecc/src/examples/sig/rsa/rsa.c
294
ATTRIBUTE_WARN_UNUSED_RET static int rsadp_crt_coeffs(const rsa_priv_key *priv, nn_src_t c, nn_t m, u8 u)
crypto/libecc/src/examples/sig/rsa/rsa.c
329
ret = nn_mod_pow(&m_i, c, &h, r_i); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
331
ret = nn_mod_pow(&m_i, c, d_i, r_i); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
357
ATTRIBUTE_WARN_UNUSED_RET static int rsadp_crt(const rsa_priv_key *priv, nn_src_t c, nn_t m)
crypto/libecc/src/examples/sig/rsa/rsa.c
388
ret = nn_mod_pow(&m_1, c, &h, p); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
390
ret = nn_mod_pow(&m_1, c, dP, p); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
395
ret = nn_mod_pow(&m_2, c, &h, q); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
397
ret = nn_mod_pow(&m_2, c, dQ, q); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
408
ret = rsadp_crt_coeffs(priv, c, m, u);
crypto/libecc/src/examples/sig/rsa/rsa.c
425
ATTRIBUTE_WARN_UNUSED_RET static int rsadp_nocrt(const rsa_priv_key *priv, nn_src_t c, nn_t m)
crypto/libecc/src/examples/sig/rsa/rsa.c
450
MUST_HAVE((!nn_cmp(c, n, &cmp)) && (cmp < 0), ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
467
ret = nn_mod_pow(m, c, &b2, n); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
476
ret = nn_mod_pow(m, c, d, n);
crypto/libecc/src/examples/sig/rsa/rsa.c
492
int rsadp(const rsa_priv_key *priv, nn_src_t c, nn_t m)
crypto/libecc/src/examples/sig/rsa/rsa.c
501
ret = rsadp_nocrt(priv, c, m); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
504
ret = rsadp_crt(priv, c, m); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
520
int rsadp_hardened(const rsa_priv_key *priv, const rsa_pub_key *pub, nn_src_t c, nn_t m)
crypto/libecc/src/examples/sig/rsa/rsa.c
547
ret = nn_mod_mul(&b, m, c, n); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
559
ret = nn_cmp(c, &b, &check); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
792
u32 c, ceil;
crypto/libecc/src/examples/sig/rsa/rsa.c
812
for(c = 0; c < ceil; c++){
crypto/libecc/src/examples/sig/rsa/rsa.c
814
C[0] = (u8)((c >> 24) & 0xff);
crypto/libecc/src/examples/sig/rsa/rsa.c
815
C[1] = (u8)((c >> 16) & 0xff);
crypto/libecc/src/examples/sig/rsa/rsa.c
816
C[2] = (u8)((c >> 8) & 0xff);
crypto/libecc/src/examples/sig/rsa/rsa.c
817
C[3] = (u8)((c >> 0) & 0xff);
crypto/libecc/src/examples/sig/rsa/rsa.c
820
if ((masklen % hlen) && (c == (ceil - 1))) { /* need last chunk smaller than hlen */
crypto/libecc/src/examples/sig/rsa/rsa.c
822
ret = local_memcpy(&mask[c * hlen], digest, (u32)(masklen % hlen)); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
824
ret = gen_hash_hfunc_scattered(input, ilens, &mask[c * hlen], mgf_hash_type); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.h
120
ATTRIBUTE_WARN_UNUSED_RET int rsaep(const rsa_pub_key *pub, nn_src_t m, nn_t c);
crypto/libecc/src/examples/sig/rsa/rsa.h
121
ATTRIBUTE_WARN_UNUSED_RET int rsadp(const rsa_priv_key *priv, nn_src_t c, nn_t m);
crypto/libecc/src/examples/sig/rsa/rsa.h
122
ATTRIBUTE_WARN_UNUSED_RET int rsadp_hardened(const rsa_priv_key *priv, const rsa_pub_key *pub, nn_src_t c, nn_t m);
crypto/libecc/src/examples/sig/rsa/rsa.h
140
u8 *c, u32 *clen, u32 modbits,
crypto/libecc/src/examples/sig/rsa/rsa.h
142
ATTRIBUTE_WARN_UNUSED_RET int rsaes_pkcs1_v1_5_decrypt(const rsa_priv_key *priv, const u8 *c, u32 clen,
crypto/libecc/src/examples/sig/rsa/rsa.h
144
ATTRIBUTE_WARN_UNUSED_RET int rsaes_pkcs1_v1_5_decrypt_hardened(const rsa_priv_key *priv, const rsa_pub_key *pub, const u8 *c, u32 clen,
crypto/libecc/src/examples/sig/rsa/rsa.h
148
u8 *c, u32 *clen, u32 modbits, const u8 *label, u32 label_len,
crypto/libecc/src/examples/sig/rsa/rsa.h
151
ATTRIBUTE_WARN_UNUSED_RET int rsaes_oaep_decrypt(const rsa_priv_key *priv, const u8 *c, u32 clen,
crypto/libecc/src/examples/sig/rsa/rsa.h
154
ATTRIBUTE_WARN_UNUSED_RET int rsaes_oaep_decrypt_hardened(const rsa_priv_key *priv, const rsa_pub_key *pub, const u8 *c, u32 clen,
crypto/libecc/src/fp/fp_sqrt.c
116
fp z, t, b, r, c, one_fp, tmp_fp, __n;
crypto/libecc/src/fp/fp_sqrt.c
120
r.magic = c.magic = one_fp.magic = tmp_fp.magic = __n.magic = WORD(0);
crypto/libecc/src/fp/fp_sqrt.c
133
ret = fp_init(&c, n->ctx); EG(ret, err);
crypto/libecc/src/fp/fp_sqrt.c
204
ret = fp_pow(&c, &z, &q); EG(ret, err);
crypto/libecc/src/fp/fp_sqrt.c
243
ret = fp_copy(&b, &c); EG(ret, err);
crypto/libecc/src/fp/fp_sqrt.c
253
ret = fp_sqr(&c, &b); EG(ret, err);
crypto/libecc/src/fp/fp_sqrt.c
255
ret = fp_mul(&t, &t, &c); EG(ret, err);
crypto/libecc/src/fp/fp_sqrt.c
273
fp_uninit(&c);
crypto/libecc/src/hash/belt-hash.c
119
u32 a, b, c, d, e;
crypto/libecc/src/hash/belt-hash.c
124
GET_UINT32_LE(c, in, 8);
crypto/libecc/src/hash/belt-hash.c
132
c ^= G(d + key, 21);
crypto/libecc/src/hash/belt-hash.c
136
e = G(b + c + key, 21) ^ (i + 1);
crypto/libecc/src/hash/belt-hash.c
138
c = (u32)(c - e);
crypto/libecc/src/hash/belt-hash.c
140
d += G(c + key, 13);
crypto/libecc/src/hash/belt-hash.c
144
c ^= G(d + key, 5);
crypto/libecc/src/hash/belt-hash.c
146
SWAP_BELT(c, d);
crypto/libecc/src/hash/belt-hash.c
147
SWAP_BELT(b, c);
crypto/libecc/src/hash/belt-hash.c
153
PUT_UINT32_LE(c, out, 12);
crypto/libecc/src/hash/belt-hash.c
160
u32 a, b, c, d, e;
crypto/libecc/src/hash/belt-hash.c
165
GET_UINT32_LE(c, in, 8);
crypto/libecc/src/hash/belt-hash.c
174
c ^= G(d + key, 21);
crypto/libecc/src/hash/belt-hash.c
178
e = G(b + c + key, 21) ^ (j + 1);
crypto/libecc/src/hash/belt-hash.c
180
c = (u32)(c - e);
crypto/libecc/src/hash/belt-hash.c
182
d += G(c + key, 13);
crypto/libecc/src/hash/belt-hash.c
186
c ^= G(d + key, 5);
crypto/libecc/src/hash/belt-hash.c
188
SWAP_BELT(c, d);
crypto/libecc/src/hash/belt-hash.c
192
PUT_UINT32_LE(c, out, 0);
crypto/libecc/src/hash/belt-hash.c
286
u64 a0, a1, b, c;
crypto/libecc/src/hash/belt-hash.c
293
c = (a0 + b);
crypto/libecc/src/hash/belt-hash.c
294
if(c < b){
crypto/libecc/src/hash/belt-hash.c
300
PUT_UINT64_LE(c, (u8*)(ctx->belt_hash_state), 0);
crypto/libecc/src/hash/ripemd160.c
107
#define RIPEMD160_CORE(a, b, c, d, e, round, idx, w, F, S, R, K) do { \
crypto/libecc/src/hash/ripemd160.c
108
u32 t = ROTL_RIPEMD160(a + F(b, c, d) + w[R[round][idx]] + K[round], S[round][idx]) + e;\
crypto/libecc/src/hash/ripemd160.c
109
a = e; e = d; d = ROTL_RIPEMD160(c, 10); c = b; b = t; \
crypto/libecc/src/hash/sha224.c
25
u32 a, b, c, d, e, f, g, h;
crypto/libecc/src/hash/sha224.c
36
c = ctx->sha224_state[2];
crypto/libecc/src/hash/sha224.c
45
SHA2CORE_SHA256(a, b, c, d, e, f, g, h, W[i], K_SHA256[i]);
crypto/libecc/src/hash/sha224.c
49
SHA2CORE_SHA256(a, b, c, d, e, f, g, h, UPDATEW_SHA256(W, i),
crypto/libecc/src/hash/sha224.c
56
ctx->sha224_state[2] += c;
crypto/libecc/src/hash/sha256.c
25
u32 a, b, c, d, e, f, g, h;
crypto/libecc/src/hash/sha256.c
36
c = ctx->sha256_state[2];
crypto/libecc/src/hash/sha256.c
45
SHA2CORE_SHA256(a, b, c, d, e, f, g, h, W[i], K_SHA256[i]);
crypto/libecc/src/hash/sha256.c
49
SHA2CORE_SHA256(a, b, c, d, e, f, g, h, UPDATEW_SHA256(W, i),
crypto/libecc/src/hash/sha256.c
56
ctx->sha256_state[2] += c;
crypto/libecc/src/hash/sha384.c
25
u64 a, b, c, d, e, f, g, h;
crypto/libecc/src/hash/sha384.c
36
c = ctx->sha384_state[2];
crypto/libecc/src/hash/sha384.c
45
SHA2CORE_SHA512(a, b, c, d, e, f, g, h, W[i], K_SHA512[i]);
crypto/libecc/src/hash/sha384.c
49
SHA2CORE_SHA512(a, b, c, d, e, f, g, h, UPDATEW_SHA512(W, i),
crypto/libecc/src/hash/sha384.c
56
ctx->sha384_state[2] += c;
crypto/libecc/src/hash/sha512_core.c
24
u64 a, b, c, d, e, f, g, h;
crypto/libecc/src/hash/sha512_core.c
34
c = ctx->sha512_state[2];
crypto/libecc/src/hash/sha512_core.c
43
SHA2CORE_SHA512(a, b, c, d, e, f, g, h, W[i], K_SHA512[i]);
crypto/libecc/src/hash/sha512_core.c
47
SHA2CORE_SHA512(a, b, c, d, e, f, g, h, UPDATEW_SHA512(W, i),
crypto/libecc/src/hash/sha512_core.c
54
ctx->sha512_state[2] += c;
crypto/libecc/src/nn/nn_div.c
1049
nn_t c, d, q, r, u1, v1, u2, v2;
crypto/libecc/src/nn/nn_div.c
1112
c = &(scratch[4]);
crypto/libecc/src/nn/nn_div.c
1114
ret = nn_copy(c, a); EG(ret, err); /* Copy could be skipped. */
crypto/libecc/src/nn/nn_div.c
1125
ret = nn_divrem(q, r, c, d); EG(ret, err);
crypto/libecc/src/nn/nn_div.c
1128
ret = nn_copy(c, r); EG(ret, err);
crypto/libecc/src/nn/nn_div.c
1138
ret = nn_iszero(c, &iszero); EG(ret, err);
crypto/libecc/src/nn/nn_div.c
1142
ret = nn_divrem(q, r, d, c); EG(ret, err);
crypto/libecc/src/nn/nn_div.c
1166
ret = nn_copy(g, c); EG(ret, err);
crypto/libecc/src/sig/bip0340.c
630
#define CHACHA20_QROUND(a, b, c, d) do { \
crypto/libecc/src/sig/bip0340.c
634
(c) += (d); \
crypto/libecc/src/sig/bip0340.c
635
(b) ^= (c); \
crypto/libecc/src/sig/bip0340.c
640
(c) += (d); \
crypto/libecc/src/sig/bip0340.c
641
(b) ^= (c); \
crypto/libecc/src/tests/ec_self_tests_core.c
100
c->sig_type);
crypto/libecc/src/tests/ec_self_tests_core.c
1007
ret = encode_error_value(c, failed_test, &ret_); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
1021
ATTRIBUTE_WARN_UNUSED_RET static int ecdh_known_vector_tests_one(const ecdh_test_case *c)
crypto/libecc/src/tests/ec_self_tests_core.c
1028
MUST_HAVE((c != NULL), ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
1033
ret = import_params(&params, c->ec_str_p);
crypto/libecc/src/tests/ec_self_tests_core.c
1040
switch(c->ecdh_type){
crypto/libecc/src/tests/ec_self_tests_core.c
1055
ret = ecccdh_import_key_pair_from_priv_key_buf(&kp, &params, c->our_priv_key,
crypto/libecc/src/tests/ec_self_tests_core.c
1056
c->our_priv_key_len);
crypto/libecc/src/tests/ec_self_tests_core.c
1072
MUST_HAVE((serialized_pub_key_len == c->exp_our_pub_key_len), ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
1073
ret = are_equal(serialized_pub_key, c->exp_our_pub_key, serialized_pub_key_len, &check); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
108
c->sig_type);
crypto/libecc/src/tests/ec_self_tests_core.c
1082
ret = ecccdh_derive_secret(&(kp.priv_key), c->peer_pub_key, c->peer_pub_key_len, shared_secret, shared_secret_len);
crypto/libecc/src/tests/ec_self_tests_core.c
1089
MUST_HAVE((shared_secret_len == c->exp_shared_secret_len), ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
1090
ret = are_equal(shared_secret, c->exp_shared_secret, shared_secret_len, &check); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
1109
MUST_HAVE((c->our_priv_key_len == X25519_SIZE), ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
1110
ret = x25519_init_pub_key(c->our_priv_key, pub_key);
crypto/libecc/src/tests/ec_self_tests_core.c
1117
MUST_HAVE((c->exp_our_pub_key_len == X25519_SIZE), ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
1118
ret = are_equal(pub_key, c->exp_our_pub_key, X25519_SIZE, &check); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
1125
MUST_HAVE((c->peer_pub_key_len == X25519_SIZE), ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
1126
ret = x25519_derive_secret(c->our_priv_key, c->peer_pub_key, shared_secret);
crypto/libecc/src/tests/ec_self_tests_core.c
1133
MUST_HAVE((c->exp_shared_secret_len == X25519_SIZE), ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
1134
ret = are_equal(shared_secret, c->exp_shared_secret, X25519_SIZE, &check); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
1153
MUST_HAVE((c->our_priv_key_len == X448_SIZE), ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
1154
ret = x448_init_pub_key(c->our_priv_key, pub_key);
crypto/libecc/src/tests/ec_self_tests_core.c
1161
MUST_HAVE((c->exp_our_pub_key_len == X448_SIZE), ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
1162
ret = are_equal(pub_key, c->exp_our_pub_key, X448_SIZE, &check); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
1169
MUST_HAVE((c->peer_pub_key_len == X448_SIZE), ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
1170
ret = x448_derive_secret(c->our_priv_key, c->peer_pub_key, shared_secret);
crypto/libecc/src/tests/ec_self_tests_core.c
1177
MUST_HAVE((c->exp_shared_secret_len == X448_SIZE), ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
1178
ret = are_equal(shared_secret, c->exp_shared_secret, X448_SIZE, &check); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
1198
ret = ecdh_encode_error_value(c, failed_test, &ret_); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
1578
ATTRIBUTE_WARN_UNUSED_RET static int ec_performance_test(const ec_test_case *c,
crypto/libecc/src/tests/ec_self_tests_core.c
1588
MUST_HAVE(c != NULL, ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
1596
ret = import_params(&params, c->ec_str_p);
crypto/libecc/src/tests/ec_self_tests_core.c
1603
ret = ec_gen_import_export_kp(&kp, &params, c);
crypto/libecc/src/tests/ec_self_tests_core.c
1623
ret = ec_get_sig_len(&params, c->sig_type, c->hash_type,
crypto/libecc/src/tests/ec_self_tests_core.c
1634
ret = get_hash_sizes(c->hash_type, &hash_digest_size,
crypto/libecc/src/tests/ec_self_tests_core.c
1662
c->nn_random, c->sig_type, c->hash_type, c->adata, c->adata_len);
crypto/libecc/src/tests/ec_self_tests_core.c
1685
c->sig_type, c->hash_type, c->adata, c->adata_len);
crypto/libecc/src/tests/ec_self_tests_core.c
1702
ret = is_verify_batch_mode_supported(c->sig_type, &check); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
1722
adatas[j] = c->adata;
crypto/libecc/src/tests/ec_self_tests_core.c
1723
adatas_len[j] = c->adata_len;
crypto/libecc/src/tests/ec_self_tests_core.c
1731
PERF_BATCH_VERIFICATION, c->sig_type, c->hash_type, adatas, adatas_len, scratch_pad_area, &scratch_pad_area_len);
crypto/libecc/src/tests/ec_self_tests_core.c
234
ATTRIBUTE_WARN_UNUSED_RET static int ec_import_export_test(const ec_test_case *c)
crypto/libecc/src/tests/ec_self_tests_core.c
240
MUST_HAVE(c != NULL, ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
246
ret = import_params(&params, c->ec_str_p);
crypto/libecc/src/tests/ec_self_tests_core.c
253
ret = ec_gen_import_export_kp(&kp, &params, c);
crypto/libecc/src/tests/ec_self_tests_core.c
270
ret = ec_get_sig_len(&params, c->sig_type, c->hash_type,
crypto/libecc/src/tests/ec_self_tests_core.c
291
c->nn_random, c->sig_type, c->hash_type, c->adata, c->adata_len);
crypto/libecc/src/tests/ec_self_tests_core.c
299
ret = is_sign_streaming_mode_supported(c->sig_type, &check); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
303
c->nn_random, c->sig_type, c->hash_type, c->adata, c->adata_len);
crypto/libecc/src/tests/ec_self_tests_core.c
310
c->nn_random, c->sig_type, c->hash_type, c->adata, c->adata_len);
crypto/libecc/src/tests/ec_self_tests_core.c
317
ret = is_sign_deterministic(c->sig_type, &check); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
337
c->sig_type, c->hash_type, c->adata, c->adata_len);
crypto/libecc/src/tests/ec_self_tests_core.c
343
ret = is_verify_streaming_mode_supported(c->sig_type, &check); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
345
ret = is_sign_streaming_mode_supported(c->sig_type, &check); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
348
c->sig_type, c->hash_type, c->adata, c->adata_len);
crypto/libecc/src/tests/ec_self_tests_core.c
352
c->sig_type, c->hash_type, c->adata, c->adata_len);
crypto/libecc/src/tests/ec_self_tests_core.c
358
ret = is_sign_streaming_mode_supported(c->sig_type, &check); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
361
c->sig_type, c->hash_type, c->adata, c->adata_len);
crypto/libecc/src/tests/ec_self_tests_core.c
365
c->sig_type, c->hash_type, c->adata, c->adata_len);
crypto/libecc/src/tests/ec_self_tests_core.c
373
ret = is_verify_batch_mode_supported(c->sig_type, &check); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
380
const u8 *adatas[] = { c->adata };
crypto/libecc/src/tests/ec_self_tests_core.c
381
const u16 adatas_len[] = { c->adata_len };
crypto/libecc/src/tests/ec_self_tests_core.c
383
1, c->sig_type, c->hash_type, adatas, adatas_len, NULL, NULL);
crypto/libecc/src/tests/ec_self_tests_core.c
391
if(c->sig_type == ECDSA){
crypto/libecc/src/tests/ec_self_tests_core.c
396
if(c->sig_type == DECDSA){
crypto/libecc/src/tests/ec_self_tests_core.c
414
ret = ec_sign_init(&sig_ctx, &kp, c->sig_type, c->hash_type, c->adata, c->adata_len); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
423
ret = __ecdsa_public_key_from_sig(&pub_key1, &pub_key2, &params, sig, siglen, digest, digestlen, c->sig_type);
crypto/libecc/src/tests/ec_self_tests_core.c
451
if(c->sig_type == ECDSA){
crypto/libecc/src/tests/ec_self_tests_core.c
456
if(c->sig_type == ECGDSA){
crypto/libecc/src/tests/ec_self_tests_core.c
461
if(c->sig_type == ECRDSA){
crypto/libecc/src/tests/ec_self_tests_core.c
473
ret = ec_sign_init(&sig_ctx, &kp, c->sig_type, c->hash_type, c->adata, c->adata_len); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
481
if(c->sig_type == ECDSA){
crypto/libecc/src/tests/ec_self_tests_core.c
486
if(c->sig_type == ECGDSA){
crypto/libecc/src/tests/ec_self_tests_core.c
491
if(c->sig_type == ECRDSA){
crypto/libecc/src/tests/ec_self_tests_core.c
496
ret = ec_verify_init(&verif_ctx, &(kp.pub_key), sig, siglen, c->sig_type, c->hash_type, c->adata, c->adata_len); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
498
if(c->sig_type == ECDSA){
crypto/libecc/src/tests/ec_self_tests_core.c
503
if(c->sig_type == ECGDSA){
crypto/libecc/src/tests/ec_self_tests_core.c
508
if(c->sig_type == ECRDSA){
crypto/libecc/src/tests/ec_self_tests_core.c
517
ret = is_verify_batch_mode_supported(c->sig_type, &check); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
547
ret = ec_get_sig_len(&params, c->sig_type, c->hash_type,
crypto/libecc/src/tests/ec_self_tests_core.c
558
ret = ec_gen_import_export_kp(&keypairs[i], &params, c);
crypto/libecc/src/tests/ec_self_tests_core.c
57
const ec_test_case *c)
crypto/libecc/src/tests/ec_self_tests_core.c
581
adata_len[i] = c->adata_len;
crypto/libecc/src/tests/ec_self_tests_core.c
582
adata[i] = c->adata;
crypto/libecc/src/tests/ec_self_tests_core.c
584
c->nn_random, c->sig_type, c->hash_type, c->adata, c->adata_len);
crypto/libecc/src/tests/ec_self_tests_core.c
592
num_batch, c->sig_type, c->hash_type, adata, adata_len, NULL, NULL);
crypto/libecc/src/tests/ec_self_tests_core.c
603
num_batch, c->sig_type, c->hash_type, adata, adata_len, NULL, &scratch_pad_area_len);
crypto/libecc/src/tests/ec_self_tests_core.c
612
num_batch, c->sig_type, c->hash_type, adata, adata_len, scratch_pad_area, &scratch_pad_area_len);
crypto/libecc/src/tests/ec_self_tests_core.c
631
const ec_test_case *c)
crypto/libecc/src/tests/ec_self_tests_core.c
639
MUST_HAVE(c != NULL, ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
641
ret = _ec_sign(sig, siglen, kp, (const u8 *)(c->msg), c->msglen,
crypto/libecc/src/tests/ec_self_tests_core.c
642
c->nn_random, c->sig_type, c->hash_type, c->adata, c->adata_len); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
643
ret = is_sign_streaming_mode_supported(c->sig_type, &check); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
647
ret = generic_ec_sign(sig_tmp, siglen, kp, (const u8 *)(c->msg), c->msglen,
crypto/libecc/src/tests/ec_self_tests_core.c
648
c->nn_random, c->sig_type, c->hash_type, c->adata, c->adata_len); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
65
MUST_HAVE(c != NULL, ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
655
ret = random_split_ec_sign(sig_tmp, siglen, kp, (const u8 *)(c->msg), c->msglen,
crypto/libecc/src/tests/ec_self_tests_core.c
656
c->nn_random, c->sig_type, c->hash_type, c->adata, c->adata_len); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
670
const ec_test_case *c)
crypto/libecc/src/tests/ec_self_tests_core.c
678
MUST_HAVE(c != NULL, ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
680
ret = ec_verify(sig, siglen, pub_key, (const u8 *)(c->msg), c->msglen,
crypto/libecc/src/tests/ec_self_tests_core.c
681
c->sig_type, c->hash_type, c->adata, c->adata_len);
crypto/libecc/src/tests/ec_self_tests_core.c
686
ret = is_verify_streaming_mode_supported(c->sig_type, &check); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
688
ret = ec_verify(sig, siglen, pub_key, (const u8 *)(c->msg), c->msglen,
crypto/libecc/src/tests/ec_self_tests_core.c
689
c->sig_type, c->hash_type, c->adata, c->adata_len);
crypto/libecc/src/tests/ec_self_tests_core.c
695
ret = random_split_ec_verify(sig, siglen, pub_key, (const u8 *)(c->msg), c->msglen,
crypto/libecc/src/tests/ec_self_tests_core.c
696
c->sig_type, c->hash_type, c->adata, c->adata_len);
crypto/libecc/src/tests/ec_self_tests_core.c
703
ret = is_verify_batch_mode_supported(c->sig_type, &check); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
707
const u8 *messages[] = { (const u8*)c->msg };
crypto/libecc/src/tests/ec_self_tests_core.c
708
const u32 messages_len[] = { c->msglen };
crypto/libecc/src/tests/ec_self_tests_core.c
710
const u8 *adatas[] = { c->adata };
crypto/libecc/src/tests/ec_self_tests_core.c
711
const u16 adatas_len[] = { c->adata_len };
crypto/libecc/src/tests/ec_self_tests_core.c
713
1, c->sig_type, c->hash_type, adatas, adatas_len, NULL, NULL);
crypto/libecc/src/tests/ec_self_tests_core.c
72
ret = ec_key_pair_gen(kp, params, c->sig_type);
crypto/libecc/src/tests/ec_self_tests_core.c
731
ATTRIBUTE_WARN_UNUSED_RET static int ec_sig_known_vector_tests_one(const ec_test_case *c)
crypto/libecc/src/tests/ec_self_tests_core.c
741
MUST_HAVE((c != NULL), ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
747
ret = import_params(&params, c->ec_str_p);
crypto/libecc/src/tests/ec_self_tests_core.c
756
if((c->sig_type == EDDSA25519) || (c->sig_type == EDDSA25519CTX) || (c->sig_type == EDDSA25519PH) || \
crypto/libecc/src/tests/ec_self_tests_core.c
757
(c->sig_type == EDDSA448) || (c->sig_type == EDDSA448PH)){
crypto/libecc/src/tests/ec_self_tests_core.c
760
if((c->sig_type == EDDSA25519) || (c->sig_type == EDDSA25519CTX) || (c->sig_type == EDDSA25519PH)){
crypto/libecc/src/tests/ec_self_tests_core.c
763
if((c->sig_type == EDDSA448) || (c->sig_type == EDDSA448PH)){
crypto/libecc/src/tests/ec_self_tests_core.c
766
if(eddsa_import_key_pair_from_priv_key_buf(&kp, c->priv_key, c->priv_key_len, &params, c->sig_type)){
crypto/libecc/src/tests/ec_self_tests_core.c
776
ret = ec_key_pair_import_from_priv_key_buf(&kp, &params, c->priv_key,
crypto/libecc/src/tests/ec_self_tests_core.c
777
c->priv_key_len,
crypto/libecc/src/tests/ec_self_tests_core.c
778
c->sig_type);
crypto/libecc/src/tests/ec_self_tests_core.c
785
siglen = c->exp_siglen;
crypto/libecc/src/tests/ec_self_tests_core.c
786
ret = ec_test_sign(sig, siglen, &kp, c);
crypto/libecc/src/tests/ec_self_tests_core.c
792
ret = are_equal(sig, c->exp_sig, siglen, &check); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
799
ret = ec_test_verify(sig, siglen, &(kp.pub_key), c);
crypto/libecc/src/tests/ec_self_tests_core.c
807
if(c->sig_type == ECDSA){
crypto/libecc/src/tests/ec_self_tests_core.c
812
if(c->sig_type == DECDSA){
crypto/libecc/src/tests/ec_self_tests_core.c
827
const u8 *input[2] = { (const u8*)(c->msg) , NULL};
crypto/libecc/src/tests/ec_self_tests_core.c
828
u32 ilens[2] = { c->msglen , 0 };
crypto/libecc/src/tests/ec_self_tests_core.c
830
ret = ec_sign_init(&sig_ctx, &kp, c->sig_type, c->hash_type, c->adata, c->adata_len); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
839
ret = __ecdsa_public_key_from_sig(&pub_key1, &pub_key2, &params, sig, siglen, digest, digestlen, c->sig_type);
crypto/libecc/src/tests/ec_self_tests_core.c
867
if(c->sig_type == ECDSA){
crypto/libecc/src/tests/ec_self_tests_core.c
872
if(c->sig_type == ECGDSA){
crypto/libecc/src/tests/ec_self_tests_core.c
877
if(c->sig_type == ECRDSA){
crypto/libecc/src/tests/ec_self_tests_core.c
887
const u8 *input[2] = { (const u8*)(c->msg) , NULL};
crypto/libecc/src/tests/ec_self_tests_core.c
888
u32 ilens[2] = { c->msglen , 0 };
crypto/libecc/src/tests/ec_self_tests_core.c
894
if(ec_sign_init(&sig_ctx, &kp, c->sig_type, c->hash_type, c->adata, c->adata_len)){
crypto/libecc/src/tests/ec_self_tests_core.c
910
if(c->nn_random(&n_nonce, &(kp.priv_key.params->ec_gen_order))){
crypto/libecc/src/tests/ec_self_tests_core.c
933
if(c->sig_type == ECDSA){
crypto/libecc/src/tests/ec_self_tests_core.c
942
if(c->sig_type == ECGDSA){
crypto/libecc/src/tests/ec_self_tests_core.c
951
if(c->sig_type == ECRDSA){
crypto/libecc/src/tests/ec_self_tests_core.c
960
ret = are_equal(sig, c->exp_sig, siglen, &check); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
967
if(ec_verify_init(&verif_ctx, &(kp.pub_key), sig, siglen, c->sig_type, c->hash_type, c->adata, c->adata_len)){
crypto/libecc/src/tests/ec_self_tests_core.c
974
if(c->sig_type == ECDSA){
crypto/libecc/src/tests/ec_self_tests_core.c
983
if(c->sig_type == ECGDSA){
crypto/libecc/src/tests/ec_self_tests_core.c
992
if(c->sig_type == ECRDSA){
crypto/libecc/src/tests/ec_self_tests_core.h
5708
static int encode_error_value(const ec_test_case *c, test_err_kind failed_test, u32 *err_val)
crypto/libecc/src/tests/ec_self_tests_core.h
5711
ec_alg_type stype = c->sig_type;
crypto/libecc/src/tests/ec_self_tests_core.h
5712
hash_alg_type htype = c->hash_type;
crypto/libecc/src/tests/ec_self_tests_core.h
5716
MUST_HAVE((c != NULL) && (err_val != NULL), ret, err);
crypto/libecc/src/tests/ec_self_tests_core.h
5718
ret = ec_get_curve_type_by_name(c->ec_str_p->name->buf,
crypto/libecc/src/tests/ec_self_tests_core.h
5719
c->ec_str_p->name->buflen, &ctype); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.h
5731
static inline int ecdh_encode_error_value(const ecdh_test_case *c, test_err_kind failed_test, u32 *err_val)
crypto/libecc/src/tests/ec_self_tests_core.h
5734
ec_alg_type stype = c->ecdh_type;
crypto/libecc/src/tests/ec_self_tests_core.h
5738
MUST_HAVE((c != NULL) && (err_val != NULL), ret, err);
crypto/libecc/src/tests/ec_self_tests_core.h
5740
ret = ec_get_curve_type_by_name(c->ec_str_p->name->buf,
crypto/libecc/src/tests/ec_self_tests_core.h
5741
c->ec_str_p->name->buflen, &ctype); EG(ret, err);
crypto/libecc/src/utils/utils.c
74
int local_memset(void *v, u8 c, u32 n)
crypto/libecc/src/utils/utils.c
83
*p = c;
crypto/openssh/auth-options.c
190
sshbuf_free(c);
crypto/openssh/auth-options.c
82
struct sshbuf *c = NULL, *data = NULL;
crypto/openssh/auth-options.c
85
if ((c = sshbuf_fromb(oblob)) == NULL) {
crypto/openssh/auth-options.c
90
while (sshbuf_len(c) > 0) {
crypto/openssh/auth-options.c
93
if ((r = sshbuf_get_cstring(c, &name, NULL)) != 0 ||
crypto/openssh/auth-options.c
94
(r = sshbuf_froms(c, &data)) != 0) {
crypto/openssh/chacha.c
120
ctarget = c;
crypto/openssh/chacha.c
121
c = tmp;
crypto/openssh/chacha.c
189
U32TO8_LITTLE(c + 0,x0);
crypto/openssh/chacha.c
190
U32TO8_LITTLE(c + 4,x1);
crypto/openssh/chacha.c
191
U32TO8_LITTLE(c + 8,x2);
crypto/openssh/chacha.c
192
U32TO8_LITTLE(c + 12,x3);
crypto/openssh/chacha.c
193
U32TO8_LITTLE(c + 16,x4);
crypto/openssh/chacha.c
194
U32TO8_LITTLE(c + 20,x5);
crypto/openssh/chacha.c
195
U32TO8_LITTLE(c + 24,x6);
crypto/openssh/chacha.c
196
U32TO8_LITTLE(c + 28,x7);
crypto/openssh/chacha.c
197
U32TO8_LITTLE(c + 32,x8);
crypto/openssh/chacha.c
198
U32TO8_LITTLE(c + 36,x9);
crypto/openssh/chacha.c
199
U32TO8_LITTLE(c + 40,x10);
crypto/openssh/chacha.c
200
U32TO8_LITTLE(c + 44,x11);
crypto/openssh/chacha.c
201
U32TO8_LITTLE(c + 48,x12);
crypto/openssh/chacha.c
202
U32TO8_LITTLE(c + 52,x13);
crypto/openssh/chacha.c
203
U32TO8_LITTLE(c + 56,x14);
crypto/openssh/chacha.c
204
U32TO8_LITTLE(c + 60,x15);
crypto/openssh/chacha.c
208
for (i = 0;i < bytes;++i) ctarget[i] = c[i];
crypto/openssh/chacha.c
215
c += 64;
crypto/openssh/chacha.c
40
#define ROTATE(v,c) (ROTL32(v,c))
crypto/openssh/chacha.c
45
#define QUARTERROUND(a,b,c,d) \
crypto/openssh/chacha.c
47
c = PLUS(c,d); b = ROTATE(XOR(b,c),12); \
crypto/openssh/chacha.c
49
c = PLUS(c,d); b = ROTATE(XOR(b,c), 7);
crypto/openssh/chacha.c
89
chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes)
crypto/openssh/chacha.h
31
u_char *c, u_int bytes)
crypto/openssh/channels.c
1001
if (c->efd == -1)
crypto/openssh/channels.c
1004
switch (c->extended_usage) {
crypto/openssh/channels.c
1017
channel_format_status(const Channel *c)
crypto/openssh/channels.c
1023
c->type, c->xctype != NULL ? c->xctype : c->ctype,
crypto/openssh/channels.c
1024
c->have_remote_id ? "r" : "nr", c->remote_id,
crypto/openssh/channels.c
1025
c->mux_ctx != NULL ? "m" : "nm", c->mux_downstream_id,
crypto/openssh/channels.c
1026
c->istate, sshbuf_len(c->input),
crypto/openssh/channels.c
1027
c->ostate, sshbuf_len(c->output),
crypto/openssh/channels.c
1028
channel_format_extended_usage(c), sshbuf_len(c->extended),
crypto/openssh/channels.c
1029
c->rfd, c->wfd, c->efd, c->sock, c->ctl_chan,
crypto/openssh/channels.c
103
typedef void chan_fn(struct ssh *, Channel *c);
crypto/openssh/channels.c
1030
c->have_ctl_child_id ? "c" : "nc", c->ctl_child_id,
crypto/openssh/channels.c
1031
c->io_want, c->io_ready);
crypto/openssh/channels.c
1044
Channel *c;
crypto/openssh/channels.c
1055
c = ssh->chanctxt->channels[i];
crypto/openssh/channels.c
1056
if (c == NULL)
crypto/openssh/channels.c
1058
switch (c->type) {
crypto/openssh/channels.c
1080
cp = channel_format_status(c);
crypto/openssh/channels.c
1082
c->self, c->remote_name, cp)) != 0) {
crypto/openssh/channels.c
1089
fatal_f("bad channel type %d", c->type);
crypto/openssh/channels.c
1100
open_preamble(struct ssh *ssh, const char *where, Channel *c, const char *type)
crypto/openssh/channels.c
1106
(r = sshpkt_put_u32(ssh, c->self)) != 0 ||
crypto/openssh/channels.c
1107
(r = sshpkt_put_u32(ssh, c->local_window)) != 0 ||
crypto/openssh/channels.c
1108
(r = sshpkt_put_u32(ssh, c->local_maxpacket)) != 0) {
crypto/openssh/channels.c
1109
fatal_r(r, "%s: channel %i: open", where, c->self);
crypto/openssh/channels.c
1116
Channel *c = channel_lookup(ssh, id);
crypto/openssh/channels.c
1119
if (c == NULL) {
crypto/openssh/channels.c
1124
open_preamble(ssh, __func__, c, c->ctype);
crypto/openssh/channels.c
1126
fatal_fr(r, "channel %i", c->self);
crypto/openssh/channels.c
1132
Channel *c = channel_lookup(ssh, id);
crypto/openssh/channels.c
1135
if (c == NULL) {
crypto/openssh/channels.c
1139
if (!c->have_remote_id)
crypto/openssh/channels.c
1140
fatal_f("channel %d: no remote id", c->self);
crypto/openssh/channels.c
1144
(r = sshpkt_put_u32(ssh, c->remote_id)) != 0 ||
crypto/openssh/channels.c
1147
fatal_fr(r, "channel %i", c->self);
crypto/openssh/channels.c
1156
Channel *c;
crypto/openssh/channels.c
1158
if ((c = channel_lookup(ssh, id)) == NULL)
crypto/openssh/channels.c
1165
TAILQ_INSERT_TAIL(&c->status_confirms, cc, entry);
crypto/openssh/channels.c
1172
Channel *c = channel_lookup(ssh, id);
crypto/openssh/channels.c
1174
if (c == NULL) {
crypto/openssh/channels.c
1178
c->open_confirm = fn;
crypto/openssh/channels.c
1179
c->open_confirm_ctx = ctx;
crypto/openssh/channels.c
1186
Channel *c = channel_by_id(ssh, id);
crypto/openssh/channels.c
1188
if (c == NULL) {
crypto/openssh/channels.c
1192
c->detach_user = fn;
crypto/openssh/channels.c
1193
c->detach_close = do_close;
crypto/openssh/channels.c
1199
Channel *c = channel_by_id(ssh, id);
crypto/openssh/channels.c
1201
if (c == NULL) {
crypto/openssh/channels.c
1205
c->detach_user = NULL;
crypto/openssh/channels.c
1206
c->detach_close = 0;
crypto/openssh/channels.c
1213
Channel *c = channel_lookup(ssh, id);
crypto/openssh/channels.c
1215
if (c == NULL) {
crypto/openssh/channels.c
1219
c->input_filter = ifn;
crypto/openssh/channels.c
1220
c->output_filter = ofn;
crypto/openssh/channels.c
1221
c->filter_ctx = ctx;
crypto/openssh/channels.c
1222
c->filter_cleanup = cfn;
crypto/openssh/channels.c
1229
Channel *c = channel_lookup(ssh, id);
crypto/openssh/channels.c
1232
if (c == NULL || c->type != SSH_CHANNEL_LARVAL)
crypto/openssh/channels.c
1234
if (!c->have_remote_id)
crypto/openssh/channels.c
1235
fatal_f("channel %d: no remote id", c->self);
crypto/openssh/channels.c
1237
channel_register_fds(ssh, c, rfd, wfd, efd, extusage, nonblock, is_tty);
crypto/openssh/channels.c
1238
c->type = SSH_CHANNEL_OPEN;
crypto/openssh/channels.c
1239
channel_set_used_time(ssh, c);
crypto/openssh/channels.c
1240
c->local_window = c->local_window_max = window_max;
crypto/openssh/channels.c
1243
(r = sshpkt_put_u32(ssh, c->remote_id)) != 0 ||
crypto/openssh/channels.c
1244
(r = sshpkt_put_u32(ssh, c->local_window)) != 0 ||
crypto/openssh/channels.c
1246
fatal_fr(r, "channel %i", c->self);
crypto/openssh/channels.c
1250
channel_pre_listener(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
1252
c->io_want = SSH_CHAN_IO_SOCK_R;
crypto/openssh/channels.c
1256
channel_pre_connecting(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
1258
debug3("channel %d: waiting for connection", c->self);
crypto/openssh/channels.c
1259
c->io_want = SSH_CHAN_IO_SOCK_W;
crypto/openssh/channels.c
1263
channel_pre_open(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
1265
c->io_want = 0;
crypto/openssh/channels.c
1266
if (c->istate == CHAN_INPUT_OPEN &&
crypto/openssh/channels.c
1267
c->remote_window > 0 &&
crypto/openssh/channels.c
1268
sshbuf_len(c->input) < c->remote_window &&
crypto/openssh/channels.c
1269
sshbuf_check_reserve(c->input, CHAN_RBUF) == 0)
crypto/openssh/channels.c
1270
c->io_want |= SSH_CHAN_IO_RFD;
crypto/openssh/channels.c
1271
if (c->ostate == CHAN_OUTPUT_OPEN ||
crypto/openssh/channels.c
1272
c->ostate == CHAN_OUTPUT_WAIT_DRAIN) {
crypto/openssh/channels.c
1273
if (sshbuf_len(c->output) > 0) {
crypto/openssh/channels.c
1274
c->io_want |= SSH_CHAN_IO_WFD;
crypto/openssh/channels.c
1275
} else if (c->ostate == CHAN_OUTPUT_WAIT_DRAIN) {
crypto/openssh/channels.c
1276
if (CHANNEL_EFD_OUTPUT_ACTIVE(c))
crypto/openssh/channels.c
1278
"obuf_empty delayed efd %d/(%zu)", c->self,
crypto/openssh/channels.c
1279
c->efd, sshbuf_len(c->extended));
crypto/openssh/channels.c
1281
chan_obuf_empty(ssh, c);
crypto/openssh/channels.c
1285
if (c->efd != -1 && !(c->istate == CHAN_INPUT_CLOSED &&
crypto/openssh/channels.c
1286
c->ostate == CHAN_OUTPUT_CLOSED)) {
crypto/openssh/channels.c
1287
if (c->extended_usage == CHAN_EXTENDED_WRITE &&
crypto/openssh/channels.c
1288
sshbuf_len(c->extended) > 0)
crypto/openssh/channels.c
1289
c->io_want |= SSH_CHAN_IO_EFD_W;
crypto/openssh/channels.c
1290
else if (c->efd != -1 && !(c->flags & CHAN_EOF_SENT) &&
crypto/openssh/channels.c
1291
(c->extended_usage == CHAN_EXTENDED_READ ||
crypto/openssh/channels.c
1292
c->extended_usage == CHAN_EXTENDED_IGNORE) &&
crypto/openssh/channels.c
1293
sshbuf_len(c->extended) < c->remote_window)
crypto/openssh/channels.c
1294
c->io_want |= SSH_CHAN_IO_EFD_R;
crypto/openssh/channels.c
1376
channel_force_close(struct ssh *ssh, Channel *c, int abandon)
crypto/openssh/channels.c
1378
debug3_f("channel %d: forcibly closing", c->self);
crypto/openssh/channels.c
1379
if (c->istate == CHAN_INPUT_OPEN)
crypto/openssh/channels.c
1380
chan_read_failed(ssh, c);
crypto/openssh/channels.c
1381
if (c->istate == CHAN_INPUT_WAIT_DRAIN) {
crypto/openssh/channels.c
1382
sshbuf_reset(c->input);
crypto/openssh/channels.c
1383
chan_ibuf_empty(ssh, c);
crypto/openssh/channels.c
1385
if (c->ostate == CHAN_OUTPUT_OPEN ||
crypto/openssh/channels.c
1386
c->ostate == CHAN_OUTPUT_WAIT_DRAIN) {
crypto/openssh/channels.c
1387
sshbuf_reset(c->output);
crypto/openssh/channels.c
1388
chan_write_failed(ssh, c);
crypto/openssh/channels.c
1390
if (c->detach_user)
crypto/openssh/channels.c
1391
c->detach_user(ssh, c->self, 1, NULL);
crypto/openssh/channels.c
1392
if (c->efd != -1)
crypto/openssh/channels.c
1393
channel_close_fd(ssh, c, &c->efd);
crypto/openssh/channels.c
1395
c->type = SSH_CHANNEL_ABANDONED;
crypto/openssh/channels.c
1397
c->inactive_deadline = 0;
crypto/openssh/channels.c
1398
c->lastused = 0;
crypto/openssh/channels.c
1402
channel_pre_x11_open(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
1404
int ret = x11_open_helper(ssh, c->output);
crypto/openssh/channels.c
1409
c->type = SSH_CHANNEL_OPEN;
crypto/openssh/channels.c
1410
channel_set_used_time(ssh, c);
crypto/openssh/channels.c
1411
channel_pre_open(ssh, c);
crypto/openssh/channels.c
1416
c->self, c->istate, c->ostate);
crypto/openssh/channels.c
1417
channel_force_close(ssh, c, 0);
crypto/openssh/channels.c
1422
channel_pre_mux_client(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
1424
c->io_want = 0;
crypto/openssh/channels.c
1425
if (c->istate == CHAN_INPUT_OPEN && !c->mux_pause &&
crypto/openssh/channels.c
1426
sshbuf_check_reserve(c->input, CHAN_RBUF) == 0)
crypto/openssh/channels.c
1427
c->io_want |= SSH_CHAN_IO_RFD;
crypto/openssh/channels.c
1428
if (c->istate == CHAN_INPUT_WAIT_DRAIN) {
crypto/openssh/channels.c
1430
sshbuf_reset(c->input);
crypto/openssh/channels.c
1431
chan_ibuf_empty(ssh, c);
crypto/openssh/channels.c
1433
chan_rcvd_oclose(ssh, c);
crypto/openssh/channels.c
1435
if (c->ostate == CHAN_OUTPUT_OPEN ||
crypto/openssh/channels.c
1436
c->ostate == CHAN_OUTPUT_WAIT_DRAIN) {
crypto/openssh/channels.c
1437
if (sshbuf_len(c->output) > 0)
crypto/openssh/channels.c
1438
c->io_want |= SSH_CHAN_IO_WFD;
crypto/openssh/channels.c
1439
else if (c->ostate == CHAN_OUTPUT_WAIT_DRAIN)
crypto/openssh/channels.c
1440
chan_obuf_empty(ssh, c);
crypto/openssh/channels.c
1446
channel_decode_socks4(Channel *c, struct sshbuf *input, struct sshbuf *output)
crypto/openssh/channels.c
1460
debug2("channel %d: decode socks4", c->self);
crypto/openssh/channels.c
1471
debug2("channel %d: socks4a request", c->self);
crypto/openssh/channels.c
1485
c->self);
crypto/openssh/channels.c
1495
debug_r(r, "channels %d: decode socks4", c->self);
crypto/openssh/channels.c
1501
error("channel %d: decode socks4: unterminated user", c->self);
crypto/openssh/channels.c
1505
debug2("channel %d: decode socks4: user %s/%d", c->self, p, len);
crypto/openssh/channels.c
1509
fatal_fr(r, "channel %d: consume", c->self);
crypto/openssh/channels.c
1510
free(c->path);
crypto/openssh/channels.c
1511
c->path = NULL;
crypto/openssh/channels.c
1514
c->path = xstrdup(host);
crypto/openssh/channels.c
1520
"terminated", c->self);
crypto/openssh/channels.c
1525
c->self, p, len);
crypto/openssh/channels.c
1529
c->self, p);
crypto/openssh/channels.c
1532
c->path = xstrdup(p);
crypto/openssh/channels.c
1534
fatal_fr(r, "channel %d: consume", c->self);
crypto/openssh/channels.c
1536
c->host_port = ntohs(s4_req.dest_port);
crypto/openssh/channels.c
1539
c->self, c->path, c->host_port, s4_req.command);
crypto/openssh/channels.c
1543
c->self, need == 1 ? "SOCKS4" : "SOCKS4A", s4_req.command);
crypto/openssh/channels.c
1551
fatal_fr(r, "channel %d: append reply", c->self);
crypto/openssh/channels.c
1565
channel_decode_socks5(Channel *c, struct sshbuf *input, struct sshbuf *output)
crypto/openssh/channels.c
1580
debug2("channel %d: decode socks5", c->self);
crypto/openssh/channels.c
1585
if (!(c->flags & SSH_SOCKS5_AUTHDONE)) {
crypto/openssh/channels.c
1601
c->self);
crypto/openssh/channels.c
1605
fatal_fr(r, "channel %d: consume", c->self);
crypto/openssh/channels.c
1609
fatal_fr(r, "channel %d: append reply", c->self);
crypto/openssh/channels.c
1610
c->flags |= SSH_SOCKS5_AUTHDONE;
crypto/openssh/channels.c
1611
debug2("channel %d: socks5 auth done", c->self);
crypto/openssh/channels.c
1614
debug2("channel %d: socks5 post auth", c->self);
crypto/openssh/channels.c
1621
debug2("channel %d: only socks5 connect supported", c->self);
crypto/openssh/channels.c
1638
debug2("channel %d: bad socks5 atyp %d", c->self, s5_req.atyp);
crypto/openssh/channels.c
1647
fatal_fr(r, "channel %d: consume", c->self);
crypto/openssh/channels.c
1651
fatal_fr(r, "channel %d: consume", c->self);
crypto/openssh/channels.c
1655
debug_r(r, "channel %d: parse addr/port", c->self);
crypto/openssh/channels.c
1659
free(c->path);
crypto/openssh/channels.c
1660
c->path = NULL;
crypto/openssh/channels.c
1664
"\"%.100s\" too long", c->self, dest_addr);
crypto/openssh/channels.c
1667
c->path = xstrdup(dest_addr);
crypto/openssh/channels.c
1671
c->path = xstrdup(ntop);
crypto/openssh/channels.c
1673
c->host_port = ntohs(dest_port);
crypto/openssh/channels.c
1676
c->self, c->path, c->host_port, s5_req.command);
crypto/openssh/channels.c
1687
fatal_fr(r, "channel %d: append reply", c->self);
crypto/openssh/channels.c
1696
Channel *c;
crypto/openssh/channels.c
1700
c = channel_new(ssh, "stdio-forward", SSH_CHANNEL_OPENING, in, out,
crypto/openssh/channels.c
1704
c->path = xstrdup(host_to_connect);
crypto/openssh/channels.c
1705
c->host_port = port_to_connect;
crypto/openssh/channels.c
1706
c->listening_port = 0;
crypto/openssh/channels.c
1707
c->force_drain = 1;
crypto/openssh/channels.c
1709
channel_register_fds(ssh, c, in, out, -1, 0, 1, 0);
crypto/openssh/channels.c
1710
port_open_helper(ssh, c, port_to_connect == PORT_STREAMLOCAL ?
crypto/openssh/channels.c
1713
return c;
crypto/openssh/channels.c
1718
channel_pre_dynamic(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
1724
c->io_want = 0;
crypto/openssh/channels.c
1725
have = sshbuf_len(c->input);
crypto/openssh/channels.c
1726
debug2("channel %d: pre_dynamic: have %d", c->self, have);
crypto/openssh/channels.c
1731
c->io_want |= SSH_CHAN_IO_RFD;
crypto/openssh/channels.c
1735
p = sshbuf_ptr(c->input);
crypto/openssh/channels.c
1739
ret = channel_decode_socks4(c, c->input, c->output);
crypto/openssh/channels.c
1742
ret = channel_decode_socks5(c, c->input, c->output);
crypto/openssh/channels.c
1749
chan_mark_dead(ssh, c);
crypto/openssh/channels.c
1751
debug2("channel %d: pre_dynamic: need more", c->self);
crypto/openssh/channels.c
1753
c->io_want |= SSH_CHAN_IO_RFD;
crypto/openssh/channels.c
1754
if (sshbuf_len(c->output))
crypto/openssh/channels.c
1755
c->io_want |= SSH_CHAN_IO_WFD;
crypto/openssh/channels.c
1758
c->type = SSH_CHANNEL_OPENING;
crypto/openssh/channels.c
1759
port_open_helper(ssh, c, "direct-tcpip");
crypto/openssh/channels.c
1765
rdynamic_close(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
1767
c->type = SSH_CHANNEL_OPEN;
crypto/openssh/channels.c
1768
channel_force_close(ssh, c, 0);
crypto/openssh/channels.c
1773
channel_before_prepare_io_rdynamic(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
1779
have = sshbuf_len(c->output);
crypto/openssh/channels.c
1780
debug2("channel %d: pre_rdynamic: have %d", c->self, have);
crypto/openssh/channels.c
1783
if (c->flags & CHAN_EOF_RCVD) {
crypto/openssh/channels.c
1784
if ((r = sshbuf_consume(c->output, have)) != 0)
crypto/openssh/channels.c
1785
fatal_fr(r, "channel %d: consume", c->self);
crypto/openssh/channels.c
1786
rdynamic_close(ssh, c);
crypto/openssh/channels.c
1793
p = sshbuf_ptr(c->output);
crypto/openssh/channels.c
1797
ret = channel_decode_socks4(c, c->output, c->input);
crypto/openssh/channels.c
1800
ret = channel_decode_socks5(c, c->output, c->input);
crypto/openssh/channels.c
1807
rdynamic_close(ssh, c);
crypto/openssh/channels.c
1809
debug2("channel %d: pre_rdynamic: need more", c->self);
crypto/openssh/channels.c
1811
len = sshbuf_len(c->input);
crypto/openssh/channels.c
1812
if (len > 0 && len < c->remote_window) {
crypto/openssh/channels.c
1814
(r = sshpkt_put_u32(ssh, c->remote_id)) != 0 ||
crypto/openssh/channels.c
1815
(r = sshpkt_put_stringb(ssh, c->input)) != 0 ||
crypto/openssh/channels.c
1817
fatal_fr(r, "channel %i: rdynamic", c->self);
crypto/openssh/channels.c
1819
if ((r = sshbuf_consume(c->input, len)) != 0)
crypto/openssh/channels.c
1820
fatal_fr(r, "channel %d: consume", c->self);
crypto/openssh/channels.c
1821
c->remote_window -= len;
crypto/openssh/channels.c
1823
} else if (rdynamic_connect_finish(ssh, c) < 0) {
crypto/openssh/channels.c
1825
rdynamic_close(ssh, c);
crypto/openssh/channels.c
1831
channel_post_x11_listener(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
1839
if ((c->io_ready & SSH_CHAN_IO_SOCK_R) == 0)
crypto/openssh/channels.c
1844
newsock = accept(c->sock, (struct sockaddr *)&addr, &addrlen);
crypto/openssh/channels.c
1845
if (c->single_connection) {
crypto/openssh/channels.c
1848
channel_close_fd(ssh, c, &c->sock);
crypto/openssh/channels.c
1849
chan_mark_dead(ssh, c);
crypto/openssh/channels.c
1857
c->notbefore = monotime() + 1;
crypto/openssh/channels.c
1868
c->local_window_max, c->local_maxpacket, 0, buf, 1);
crypto/openssh/channels.c
1872
fatal_fr(r, "channel %i: reply", c->self);
crypto/openssh/channels.c
1875
fatal_fr(r, "channel %i: send", c->self);
crypto/openssh/channels.c
1880
port_open_helper(struct ssh *ssh, Channel *c, char *rtype)
crypto/openssh/channels.c
1882
char *local_ipaddr = get_local_ipaddr(c->sock);
crypto/openssh/channels.c
1883
int local_port = c->sock == -1 ? 65536 : get_local_port(c->sock);
crypto/openssh/channels.c
1884
char *remote_ipaddr = get_peer_ipaddr(c->sock);
crypto/openssh/channels.c
1885
int remote_port = get_peer_port(c->sock);
crypto/openssh/channels.c
1895
free(c->remote_name);
crypto/openssh/channels.c
1896
xasprintf(&c->remote_name,
crypto/openssh/channels.c
1899
rtype, c->listening_port, c->path, c->host_port,
crypto/openssh/channels.c
1902
open_preamble(ssh, __func__, c, rtype);
crypto/openssh/channels.c
1905
if ((r = sshpkt_put_cstring(ssh, c->path)) != 0 ||
crypto/openssh/channels.c
1906
(r = sshpkt_put_u32(ssh, c->host_port)) != 0)
crypto/openssh/channels.c
1907
fatal_fr(r, "channel %i: reply", c->self);
crypto/openssh/channels.c
1910
if ((r = sshpkt_put_cstring(ssh, c->path)) != 0)
crypto/openssh/channels.c
1911
fatal_fr(r, "channel %i: reply", c->self);
crypto/openssh/channels.c
1914
if ((r = sshpkt_put_cstring(ssh, c->path)) != 0)
crypto/openssh/channels.c
1915
fatal_fr(r, "channel %i: reply", c->self);
crypto/openssh/channels.c
1918
if ((r = sshpkt_put_cstring(ssh, c->path)) != 0 ||
crypto/openssh/channels.c
1920
fatal_fr(r, "channel %i: reply", c->self);
crypto/openssh/channels.c
1925
fatal_fr(r, "channel %i: reply", c->self);
crypto/openssh/channels.c
1930
fatal_fr(r, "channel %i: reply", c->self);
crypto/openssh/channels.c
1933
fatal_fr(r, "channel %i: send", c->self);
crypto/openssh/channels.c
1948
channel_post_port_listener(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
1956
if ((c->io_ready & SSH_CHAN_IO_SOCK_R) == 0)
crypto/openssh/channels.c
1960
c->listening_port, c->path, c->host_port);
crypto/openssh/channels.c
1962
if (c->type == SSH_CHANNEL_RPORT_LISTENER) {
crypto/openssh/channels.c
1965
} else if (c->type == SSH_CHANNEL_RUNIX_LISTENER) {
crypto/openssh/channels.c
1968
} else if (c->host_port == PORT_STREAMLOCAL) {
crypto/openssh/channels.c
1971
} else if (c->host_port == 0) {
crypto/openssh/channels.c
1980
newsock = accept(c->sock, (struct sockaddr *)&addr, &addrlen);
crypto/openssh/channels.c
1986
c->notbefore = monotime() + 1;
crypto/openssh/channels.c
1989
if (c->host_port != PORT_STREAMLOCAL)
crypto/openssh/channels.c
1992
c->local_window_max, c->local_maxpacket, 0, rtype, 1);
crypto/openssh/channels.c
1993
nc->listening_port = c->listening_port;
crypto/openssh/channels.c
1994
nc->host_port = c->host_port;
crypto/openssh/channels.c
1995
if (c->path != NULL)
crypto/openssh/channels.c
1996
nc->path = xstrdup(c->path);
crypto/openssh/channels.c
2007
channel_post_auth_listener(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
2014
if ((c->io_ready & SSH_CHAN_IO_SOCK_R) == 0)
crypto/openssh/channels.c
2018
newsock = accept(c->sock, (struct sockaddr *)&addr, &addrlen);
crypto/openssh/channels.c
2022
c->notbefore = monotime() + 1;
crypto/openssh/channels.c
2027
c->local_window_max, c->local_maxpacket,
crypto/openssh/channels.c
2031
fatal_fr(r, "channel %i", c->self);
crypto/openssh/channels.c
2035
channel_post_connecting(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
2040
if ((c->io_ready & SSH_CHAN_IO_SOCK_W) == 0)
crypto/openssh/channels.c
2042
if (!c->have_remote_id)
crypto/openssh/channels.c
2043
fatal_f("channel %d: no remote id", c->self);
crypto/openssh/channels.c
2045
isopen = (c->type == SSH_CHANNEL_RDYNAMIC_FINISH);
crypto/openssh/channels.c
2047
if (getsockopt(c->sock, SOL_SOCKET, SO_ERROR, &err, &sz) == -1) {
crypto/openssh/channels.c
2055
c->self, c->connect_ctx.host, c->connect_ctx.port);
crypto/openssh/channels.c
2056
channel_connect_ctx_free(&c->connect_ctx);
crypto/openssh/channels.c
2057
c->type = SSH_CHANNEL_OPEN;
crypto/openssh/channels.c
2058
channel_set_used_time(ssh, c);
crypto/openssh/channels.c
2064
(r = sshpkt_put_u32(ssh, c->remote_id)) != 0 ||
crypto/openssh/channels.c
2065
(r = sshpkt_put_u32(ssh, c->self)) != 0 ||
crypto/openssh/channels.c
2066
(r = sshpkt_put_u32(ssh, c->local_window)) != 0 ||
crypto/openssh/channels.c
2067
(r = sshpkt_put_u32(ssh, c->local_maxpacket)) != 0 ||
crypto/openssh/channels.c
2069
fatal_fr(r, "channel %i open confirm", c->self);
crypto/openssh/channels.c
2077
debug("channel %d: connection failed: %s", c->self, strerror(err));
crypto/openssh/channels.c
2080
if ((sock = connect_next(&c->connect_ctx)) == -1) {
crypto/openssh/channels.c
2083
c->connect_ctx.host, c->connect_ctx.port);
crypto/openssh/channels.c
2084
channel_connect_ctx_free(&c->connect_ctx);
crypto/openssh/channels.c
2086
rdynamic_close(ssh, c);
crypto/openssh/channels.c
2090
(r = sshpkt_put_u32(ssh, c->remote_id)) != 0 ||
crypto/openssh/channels.c
2096
fatal_fr(r, "channel %i: failure", c->self);
crypto/openssh/channels.c
2097
chan_mark_dead(ssh, c);
crypto/openssh/channels.c
2102
close(c->sock);
crypto/openssh/channels.c
2103
c->sock = c->rfd = c->wfd = sock;
crypto/openssh/channels.c
2107
channel_handle_rfd(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
2117
pty_zeroread = c->isatty;
crypto/openssh/channels.c
2120
force = c->isatty && c->detach_close && c->istate != CHAN_INPUT_CLOSED;
crypto/openssh/channels.c
2122
if (!force && (c->io_ready & SSH_CHAN_IO_RFD) == 0)
crypto/openssh/channels.c
2124
if ((avail = sshbuf_avail(c->input)) == 0)
crypto/openssh/channels.c
2131
if (!pty_zeroread && c->input_filter == NULL && !c->datagram) {
crypto/openssh/channels.c
2133
if (c->type == SSH_CHANNEL_OPEN) {
crypto/openssh/channels.c
2134
if ((have = sshbuf_len(c->input)) >= c->remote_window)
crypto/openssh/channels.c
2136
if (maxlen > c->remote_window - have)
crypto/openssh/channels.c
2137
maxlen = c->remote_window - have;
crypto/openssh/channels.c
2141
if ((r = sshbuf_read(c->rfd, c->input, maxlen, &nr)) != 0) {
crypto/openssh/channels.c
2146
c->self, c->rfd, maxlen, ssh_err(r));
crypto/openssh/channels.c
2150
channel_set_used_time(ssh, c);
crypto/openssh/channels.c
2155
len = read(c->rfd, buf, sizeof(buf));
crypto/openssh/channels.c
2164
c->self, c->rfd, len,
crypto/openssh/channels.c
2167
if (c->type != SSH_CHANNEL_OPEN) {
crypto/openssh/channels.c
2168
debug2("channel %d: not open", c->self);
crypto/openssh/channels.c
2169
chan_mark_dead(ssh, c);
crypto/openssh/channels.c
2172
chan_read_failed(ssh, c);
crypto/openssh/channels.c
2176
channel_set_used_time(ssh, c);
crypto/openssh/channels.c
2177
if (c->input_filter != NULL) {
crypto/openssh/channels.c
2178
if (c->input_filter(ssh, c, buf, len) == -1) {
crypto/openssh/channels.c
2179
debug2("channel %d: filter stops", c->self);
crypto/openssh/channels.c
218
static void port_open_helper(struct ssh *ssh, Channel *c, char *rtype);
crypto/openssh/channels.c
2180
chan_read_failed(ssh, c);
crypto/openssh/channels.c
2182
} else if (c->datagram) {
crypto/openssh/channels.c
2183
if ((r = sshbuf_put_string(c->input, buf, len)) != 0)
crypto/openssh/channels.c
2184
fatal_fr(r, "channel %i: put datagram", c->self);
crypto/openssh/channels.c
2185
} else if ((r = sshbuf_put(c->input, buf, len)) != 0)
crypto/openssh/channels.c
2186
fatal_fr(r, "channel %i: put data", c->self);
crypto/openssh/channels.c
2192
channel_handle_wfd(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
2199
if ((c->io_ready & SSH_CHAN_IO_WFD) == 0)
crypto/openssh/channels.c
2201
if (sshbuf_len(c->output) == 0)
crypto/openssh/channels.c
2205
olen = sshbuf_len(c->output);
crypto/openssh/channels.c
2206
if (c->output_filter != NULL) {
crypto/openssh/channels.c
2207
if ((buf = c->output_filter(ssh, c, &data, &dlen)) == NULL) {
crypto/openssh/channels.c
2208
debug2("channel %d: filter stops", c->self);
crypto/openssh/channels.c
2209
if (c->type != SSH_CHANNEL_OPEN)
crypto/openssh/channels.c
2210
chan_mark_dead(ssh, c);
crypto/openssh/channels.c
2212
chan_write_failed(ssh, c);
crypto/openssh/channels.c
2215
} else if (c->datagram) {
crypto/openssh/channels.c
2216
if ((r = sshbuf_get_string(c->output, &data, &dlen)) != 0)
crypto/openssh/channels.c
2217
fatal_fr(r, "channel %i: get datagram", c->self);
crypto/openssh/channels.c
2220
buf = data = sshbuf_mutable_ptr(c->output);
crypto/openssh/channels.c
2221
dlen = sshbuf_len(c->output);
crypto/openssh/channels.c
2224
if (c->datagram) {
crypto/openssh/channels.c
2226
len = write(c->wfd, buf, dlen);
crypto/openssh/channels.c
2238
if (c->wfd_isatty)
crypto/openssh/channels.c
2242
len = write(c->wfd, buf, dlen);
crypto/openssh/channels.c
2248
if (c->type != SSH_CHANNEL_OPEN) {
crypto/openssh/channels.c
2249
debug2("channel %d: not open", c->self);
crypto/openssh/channels.c
2250
chan_mark_dead(ssh, c);
crypto/openssh/channels.c
2253
chan_write_failed(ssh, c);
crypto/openssh/channels.c
2257
channel_set_used_time(ssh, c);
crypto/openssh/channels.c
2259
if (c->isatty && dlen >= 1 && buf[0] != '\r') {
crypto/openssh/channels.c
2260
if (tcgetattr(c->wfd, &tio) == 0 &&
crypto/openssh/channels.c
2270
fatal_fr(r, "channel %i: ignore", c->self);
crypto/openssh/channels.c
2274
if ((r = sshbuf_consume(c->output, len)) != 0)
crypto/openssh/channels.c
2275
fatal_fr(r, "channel %i: consume", c->self);
crypto/openssh/channels.c
2277
c->local_consumed += olen - sshbuf_len(c->output);
crypto/openssh/channels.c
2283
channel_handle_efd_write(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
2288
if ((c->io_ready & SSH_CHAN_IO_EFD_W) == 0)
crypto/openssh/channels.c
2290
if (sshbuf_len(c->extended) == 0)
crypto/openssh/channels.c
2293
len = write(c->efd, sshbuf_ptr(c->extended),
crypto/openssh/channels.c
2294
sshbuf_len(c->extended));
crypto/openssh/channels.c
2295
debug2("channel %d: written %zd to efd %d", c->self, len, c->efd);
crypto/openssh/channels.c
2300
debug2("channel %d: closing write-efd %d", c->self, c->efd);
crypto/openssh/channels.c
2301
channel_close_fd(ssh, c, &c->efd);
crypto/openssh/channels.c
2303
if ((r = sshbuf_consume(c->extended, len)) != 0)
crypto/openssh/channels.c
2304
fatal_fr(r, "channel %i: consume", c->self);
crypto/openssh/channels.c
2305
c->local_consumed += len;
crypto/openssh/channels.c
2306
channel_set_used_time(ssh, c);
crypto/openssh/channels.c
2312
channel_handle_efd_read(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
2318
force = c->isatty && c->detach_close && c->istate != CHAN_INPUT_CLOSED;
crypto/openssh/channels.c
2320
if (!force && (c->io_ready & SSH_CHAN_IO_EFD_R) == 0)
crypto/openssh/channels.c
2323
len = read(c->efd, buf, sizeof(buf));
crypto/openssh/channels.c
2324
debug2("channel %d: read %zd from efd %d", c->self, len, c->efd);
crypto/openssh/channels.c
2329
debug2("channel %d: closing read-efd %d", c->self, c->efd);
crypto/openssh/channels.c
2330
channel_close_fd(ssh, c, &c->efd);
crypto/openssh/channels.c
2333
channel_set_used_time(ssh, c);
crypto/openssh/channels.c
2334
if (c->extended_usage == CHAN_EXTENDED_IGNORE)
crypto/openssh/channels.c
2335
debug3("channel %d: discard efd", c->self);
crypto/openssh/channels.c
2336
else if ((r = sshbuf_put(c->extended, buf, len)) != 0)
crypto/openssh/channels.c
2337
fatal_fr(r, "channel %i: append", c->self);
crypto/openssh/channels.c
2342
channel_handle_efd(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
2344
if (c->efd == -1)
crypto/openssh/channels.c
2349
if (c->extended_usage == CHAN_EXTENDED_WRITE)
crypto/openssh/channels.c
2350
return channel_handle_efd_write(ssh, c);
crypto/openssh/channels.c
2351
else if (c->extended_usage == CHAN_EXTENDED_READ ||
crypto/openssh/channels.c
2352
c->extended_usage == CHAN_EXTENDED_IGNORE)
crypto/openssh/channels.c
2353
return channel_handle_efd_read(ssh, c);
crypto/openssh/channels.c
2359
channel_check_window(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
2363
if (c->type == SSH_CHANNEL_OPEN &&
crypto/openssh/channels.c
2364
!(c->flags & (CHAN_CLOSE_SENT|CHAN_CLOSE_RCVD)) &&
crypto/openssh/channels.c
2365
((c->local_window_max - c->local_window >
crypto/openssh/channels.c
2366
c->local_maxpacket*3) ||
crypto/openssh/channels.c
2367
c->local_window < c->local_window_max/2) &&
crypto/openssh/channels.c
2368
c->local_consumed > 0) {
crypto/openssh/channels.c
2369
if (!c->have_remote_id)
crypto/openssh/channels.c
2370
fatal_f("channel %d: no remote id", c->self);
crypto/openssh/channels.c
2373
(r = sshpkt_put_u32(ssh, c->remote_id)) != 0 ||
crypto/openssh/channels.c
2374
(r = sshpkt_put_u32(ssh, c->local_consumed)) != 0 ||
crypto/openssh/channels.c
2376
fatal_fr(r, "channel %i", c->self);
crypto/openssh/channels.c
2378
debug2("channel %d: window %d sent adjust %d", c->self,
crypto/openssh/channels.c
2379
c->local_window, c->local_consumed);
crypto/openssh/channels.c
2380
c->local_window += c->local_consumed;
crypto/openssh/channels.c
2381
c->local_consumed = 0;
crypto/openssh/channels.c
2387
channel_post_open(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
2389
channel_handle_rfd(ssh, c);
crypto/openssh/channels.c
2390
channel_handle_wfd(ssh, c);
crypto/openssh/channels.c
2391
channel_handle_efd(ssh, c);
crypto/openssh/channels.c
2392
channel_check_window(ssh, c);
crypto/openssh/channels.c
2396
read_mux(struct ssh *ssh, Channel *c, u_int need)
crypto/openssh/channels.c
2403
if (sshbuf_len(c->input) < need) {
crypto/openssh/channels.c
2404
rlen = need - sshbuf_len(c->input);
crypto/openssh/channels.c
2405
len = read(c->rfd, buf, MINIMUM(rlen, CHAN_RBUF));
crypto/openssh/channels.c
2407
return sshbuf_len(c->input);
crypto/openssh/channels.c
2410
c->self, c->rfd, len);
crypto/openssh/channels.c
2411
chan_read_failed(ssh, c);
crypto/openssh/channels.c
2413
} else if ((r = sshbuf_put(c->input, buf, len)) != 0)
crypto/openssh/channels.c
2414
fatal_fr(r, "channel %i: append", c->self);
crypto/openssh/channels.c
2416
return sshbuf_len(c->input);
crypto/openssh/channels.c
2420
channel_post_mux_client_read(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
2424
if ((c->io_ready & SSH_CHAN_IO_RFD) == 0)
crypto/openssh/channels.c
2426
if (c->istate != CHAN_INPUT_OPEN && c->istate != CHAN_INPUT_WAIT_DRAIN)
crypto/openssh/channels.c
2428
if (c->mux_pause)
crypto/openssh/channels.c
2435
if (read_mux(ssh, c, 4) < 4) /* read header */
crypto/openssh/channels.c
2438
need = PEEK_U32(sshbuf_ptr(c->input));
crypto/openssh/channels.c
2442
c->self, CHANNEL_MUX_MAX_PACKET, need);
crypto/openssh/channels.c
2443
chan_rcvd_oclose(ssh, c);
crypto/openssh/channels.c
2446
if (read_mux(ssh, c, need + 4) < need + 4) /* read body */
crypto/openssh/channels.c
2448
if (c->mux_rcb(ssh, c) != 0) {
crypto/openssh/channels.c
2449
debug("channel %d: mux_rcb failed", c->self);
crypto/openssh/channels.c
2450
chan_mark_dead(ssh, c);
crypto/openssh/channels.c
2456
channel_post_mux_client_write(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
2461
if ((c->io_ready & SSH_CHAN_IO_WFD) == 0)
crypto/openssh/channels.c
2463
if (sshbuf_len(c->output) == 0)
crypto/openssh/channels.c
2466
len = write(c->wfd, sshbuf_ptr(c->output), sshbuf_len(c->output));
crypto/openssh/channels.c
2470
chan_mark_dead(ssh, c);
crypto/openssh/channels.c
2473
if ((r = sshbuf_consume(c->output, len)) != 0)
crypto/openssh/channels.c
2474
fatal_fr(r, "channel %i: consume", c->self);
crypto/openssh/channels.c
2478
channel_post_mux_client(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
2480
channel_post_mux_client_read(ssh, c);
crypto/openssh/channels.c
2481
channel_post_mux_client_write(ssh, c);
crypto/openssh/channels.c
2485
channel_post_mux_listener(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
2494
if ((c->io_ready & SSH_CHAN_IO_SOCK_R) == 0)
crypto/openssh/channels.c
250
Channel *c;
crypto/openssh/channels.c
2504
if ((newsock = accept(c->sock, (struct sockaddr*)&addr,
crypto/openssh/channels.c
2508
c->notbefore = monotime() + 1;
crypto/openssh/channels.c
2524
newsock, newsock, -1, c->local_window_max,
crypto/openssh/channels.c
2525
c->local_maxpacket, 0, "mux-control", 1);
crypto/openssh/channels.c
2526
nc->mux_rcb = c->mux_rcb;
crypto/openssh/channels.c
256
c = ssh->chanctxt->channels[id];
crypto/openssh/channels.c
257
if (c == NULL) {
crypto/openssh/channels.c
2576
channel_garbage_collect(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
2578
if (c == NULL)
crypto/openssh/channels.c
2580
if (c->detach_user != NULL) {
crypto/openssh/channels.c
2581
if (!chan_is_dead(ssh, c, c->detach_close))
crypto/openssh/channels.c
2584
debug2("channel %d: gc: notify user", c->self);
crypto/openssh/channels.c
2585
c->detach_user(ssh, c->self, 0, NULL);
crypto/openssh/channels.c
2587
if (c->detach_user != NULL)
crypto/openssh/channels.c
2589
debug2("channel %d: gc: user detached", c->self);
crypto/openssh/channels.c
2591
if (!chan_is_dead(ssh, c, 1))
crypto/openssh/channels.c
2593
debug2("channel %d: garbage collecting", c->self);
crypto/openssh/channels.c
2594
channel_free(ssh, c);
crypto/openssh/channels.c
2605
Channel *c;
crypto/openssh/channels.c
261
return c;
crypto/openssh/channels.c
2610
c = sc->channels[i];
crypto/openssh/channels.c
2611
if (c == NULL)
crypto/openssh/channels.c
2614
if (ssh_packet_is_rekeying(ssh) && c->type != SSH_CHANNEL_OPEN)
crypto/openssh/channels.c
2616
if (c->delayed) {
crypto/openssh/channels.c
2618
c->delayed = 0;
crypto/openssh/channels.c
2622
if (ftab[c->type] != NULL) {
crypto/openssh/channels.c
2623
if (table == CHAN_PRE && c->type == SSH_CHANNEL_OPEN &&
crypto/openssh/channels.c
2624
channel_get_expiry(ssh, c) != 0 &&
crypto/openssh/channels.c
2625
now >= channel_get_expiry(ssh, c)) {
crypto/openssh/channels.c
2628
"of inactivity", c->self,
crypto/openssh/channels.c
2629
c->inactive_deadline);
crypto/openssh/channels.c
2630
channel_force_close(ssh, c, 1);
crypto/openssh/channels.c
2631
} else if (c->notbefore <= now) {
crypto/openssh/channels.c
2633
(*ftab[c->type])(ssh, c);
crypto/openssh/channels.c
2636
c->type == SSH_CHANNEL_OPEN &&
crypto/openssh/channels.c
2637
channel_get_expiry(ssh, c) != 0) {
crypto/openssh/channels.c
2639
channel_get_expiry(ssh, c));
crypto/openssh/channels.c
2647
c->notbefore);
crypto/openssh/channels.c
2650
channel_garbage_collect(ssh, c);
crypto/openssh/channels.c
2664
Channel *c;
crypto/openssh/channels.c
2668
c = sc->channels[i];
crypto/openssh/channels.c
2669
if (c == NULL)
crypto/openssh/channels.c
267
Channel *c;
crypto/openssh/channels.c
2671
if (c->type == SSH_CHANNEL_RDYNAMIC_OPEN)
crypto/openssh/channels.c
2672
channel_before_prepare_io_rdynamic(ssh, c);
crypto/openssh/channels.c
2677
dump_channel_poll(const char *func, const char *what, Channel *c,
crypto/openssh/channels.c
2683
"pfd.ev 0x%02x pfd.rev 0x%02x", func, c->self, what,
crypto/openssh/channels.c
2684
c->rfd, c->wfd, c->efd, c->sock,
crypto/openssh/channels.c
2685
c->pfds[0], c->pfds[1], c->pfds[2], c->pfds[3],
crypto/openssh/channels.c
2686
c->io_want, c->io_ready,
crypto/openssh/channels.c
2693
channel_prepare_pollfd(Channel *c, u_int *next_pollfd,
crypto/openssh/channels.c
2698
if (c == NULL)
crypto/openssh/channels.c
2703
c->self, p, npfd);
crypto/openssh/channels.c
2705
c->pfds[0] = c->pfds[1] = c->pfds[2] = c->pfds[3] = -1;
crypto/openssh/channels.c
271
c = ssh->chanctxt->channels[i];
crypto/openssh/channels.c
2713
if (c->rfd != -1) {
crypto/openssh/channels.c
2715
if ((c->io_want & SSH_CHAN_IO_RFD) != 0)
crypto/openssh/channels.c
2718
if (c->wfd == c->rfd) {
crypto/openssh/channels.c
2719
if ((c->io_want & SSH_CHAN_IO_WFD) != 0)
crypto/openssh/channels.c
272
if (c != NULL && c->have_remote_id && c->remote_id == remote_id)
crypto/openssh/channels.c
2723
if (c->efd == c->rfd) {
crypto/openssh/channels.c
2724
if ((c->io_want & SSH_CHAN_IO_EFD_R) != 0)
crypto/openssh/channels.c
2726
if ((c->io_want & SSH_CHAN_IO_EFD_W) != 0)
crypto/openssh/channels.c
273
return c;
crypto/openssh/channels.c
2730
if (c->sock == c->rfd) {
crypto/openssh/channels.c
2731
if ((c->io_want & SSH_CHAN_IO_SOCK_R) != 0)
crypto/openssh/channels.c
2733
if ((c->io_want & SSH_CHAN_IO_SOCK_W) != 0)
crypto/openssh/channels.c
2738
c->pfds[0] = p;
crypto/openssh/channels.c
2739
pfd[p].fd = c->rfd;
crypto/openssh/channels.c
2741
dump_channel_poll(__func__, "rfd", c, p, &pfd[p]);
crypto/openssh/channels.c
2746
if (c->wfd != -1 && c->rfd != c->wfd) {
crypto/openssh/channels.c
2748
if ((c->io_want & SSH_CHAN_IO_WFD))
crypto/openssh/channels.c
2752
c->pfds[1] = p;
crypto/openssh/channels.c
2753
pfd[p].fd = c->wfd;
crypto/openssh/channels.c
2755
dump_channel_poll(__func__, "wfd", c, p, &pfd[p]);
crypto/openssh/channels.c
2760
if (c->efd != -1 && c->rfd != c->efd) {
crypto/openssh/channels.c
2762
if ((c->io_want & SSH_CHAN_IO_EFD_R) != 0)
crypto/openssh/channels.c
2764
if ((c->io_want & SSH_CHAN_IO_EFD_W) != 0)
crypto/openssh/channels.c
2768
c->pfds[2] = p;
crypto/openssh/channels.c
2769
pfd[p].fd = c->efd;
crypto/openssh/channels.c
2771
dump_channel_poll(__func__, "efd", c, p, &pfd[p]);
crypto/openssh/channels.c
2776
if (c->sock != -1 && c->rfd != c->sock) {
crypto/openssh/channels.c
2778
if ((c->io_want & SSH_CHAN_IO_SOCK_R) != 0)
crypto/openssh/channels.c
2780
if ((c->io_want & SSH_CHAN_IO_SOCK_W) != 0)
crypto/openssh/channels.c
2784
c->pfds[3] = p;
crypto/openssh/channels.c
2785
pfd[p].fd = c->sock;
crypto/openssh/channels.c
2787
dump_channel_poll(__func__, "sock", c, p, &pfd[p]);
crypto/openssh/channels.c
2837
fd_ready(Channel *c, int p, struct pollfd *pfds, u_int npfd, int fd,
crypto/openssh/channels.c
2845
fatal_f("channel %d: bad pfd %d (max %u)", c->self, p, npfd);
crypto/openssh/channels.c
2846
dump_channel_poll(__func__, what, c, p, pfd);
crypto/openssh/channels.c
2849
"r%d w%d e%d s%d", c->self, what, fd, p, pfd->fd,
crypto/openssh/channels.c
285
Channel *c;
crypto/openssh/channels.c
2850
c->rfd, c->wfd, c->efd, c->sock);
crypto/openssh/channels.c
2854
c->self, what, p, pfd->fd, c->rfd, c->wfd, c->efd, c->sock);
crypto/openssh/channels.c
2857
c->io_ready |= ready & c->io_want;
crypto/openssh/channels.c
287
if ((c = channel_by_id(ssh, id)) == NULL)
crypto/openssh/channels.c
2870
Channel *c;
crypto/openssh/channels.c
2883
c = sc->channels[i];
crypto/openssh/channels.c
2884
if (c == NULL)
crypto/openssh/channels.c
2887
if (c->rfd != -1 && c->wfd != -1 && c->rfd != c->wfd &&
crypto/openssh/channels.c
2888
(c->rfd == c->efd || c->rfd == c->sock)) {
crypto/openssh/channels.c
2891
c->self, c->rfd, c->wfd, c->efd, c->sock);
crypto/openssh/channels.c
2893
c->io_ready = 0;
crypto/openssh/channels.c
2895
if (c->rfd != -1 && (p = c->pfds[0]) != -1) {
crypto/openssh/channels.c
2896
fd_ready(c, p, pfd, npfd, c->rfd,
crypto/openssh/channels.c
2898
if (c->rfd == c->wfd) {
crypto/openssh/channels.c
2899
fd_ready(c, p, pfd, npfd, c->wfd,
crypto/openssh/channels.c
290
switch (c->type) {
crypto/openssh/channels.c
2902
if (c->rfd == c->efd) {
crypto/openssh/channels.c
2903
fd_ready(c, p, pfd, npfd, c->efd,
crypto/openssh/channels.c
2905
fd_ready(c, p, pfd, npfd, c->efd,
crypto/openssh/channels.c
2908
if (c->rfd == c->sock) {
crypto/openssh/channels.c
2909
fd_ready(c, p, pfd, npfd, c->sock,
crypto/openssh/channels.c
2911
fd_ready(c, p, pfd, npfd, c->sock,
crypto/openssh/channels.c
2914
dump_channel_poll(__func__, "rfd", c, p, pfd);
crypto/openssh/channels.c
2917
if (c->wfd != -1 && c->wfd != c->rfd &&
crypto/openssh/channels.c
2918
(p = c->pfds[1]) != -1) {
crypto/openssh/channels.c
2919
fd_ready(c, p, pfd, npfd, c->wfd,
crypto/openssh/channels.c
2921
dump_channel_poll(__func__, "wfd", c, p, pfd);
crypto/openssh/channels.c
2924
if (c->efd != -1 && c->efd != c->rfd &&
crypto/openssh/channels.c
2925
(p = c->pfds[2]) != -1) {
crypto/openssh/channels.c
2926
fd_ready(c, p, pfd, npfd, c->efd,
crypto/openssh/channels.c
2928
fd_ready(c, p, pfd, npfd, c->efd,
crypto/openssh/channels.c
2930
dump_channel_poll(__func__, "efd", c, p, pfd);
crypto/openssh/channels.c
2933
if (c->sock != -1 && c->sock != c->rfd &&
crypto/openssh/channels.c
2934
(p = c->pfds[3]) != -1) {
crypto/openssh/channels.c
2935
fd_ready(c, p, pfd, npfd, c->sock,
crypto/openssh/channels.c
2937
fd_ready(c, p, pfd, npfd, c->sock,
crypto/openssh/channels.c
2939
dump_channel_poll(__func__, "sock", c, p, pfd);
crypto/openssh/channels.c
2950
channel_output_poll_input_open(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
2956
if ((len = sshbuf_len(c->input)) == 0) {
crypto/openssh/channels.c
2957
if (c->istate == CHAN_INPUT_WAIT_DRAIN) {
crypto/openssh/channels.c
2965
if (CHANNEL_EFD_INPUT_ACTIVE(c))
crypto/openssh/channels.c
2968
c->self, c->efd, sshbuf_len(c->extended));
crypto/openssh/channels.c
2970
chan_ibuf_empty(ssh, c);
crypto/openssh/channels.c
2975
if (!c->have_remote_id)
crypto/openssh/channels.c
2976
fatal_f("channel %d: no remote id", c->self);
crypto/openssh/channels.c
2978
if (c->datagram) {
crypto/openssh/channels.c
2980
if ((r = sshbuf_get_string_direct(c->input, &pkt, &plen)) != 0)
crypto/openssh/channels.c
2981
fatal_fr(r, "channel %i: get datagram", c->self);
crypto/openssh/channels.c
2987
if (plen > c->remote_window || plen > c->remote_maxpacket) {
crypto/openssh/channels.c
2988
debug("channel %d: datagram too big", c->self);
crypto/openssh/channels.c
2993
(r = sshpkt_put_u32(ssh, c->remote_id)) != 0 ||
crypto/openssh/channels.c
2996
fatal_fr(r, "channel %i: send datagram", c->self);
crypto/openssh/channels.c
2997
c->remote_window -= plen;
crypto/openssh/channels.c
3002
if (len > c->remote_window)
crypto/openssh/channels.c
3003
len = c->remote_window;
crypto/openssh/channels.c
3004
if (len > c->remote_maxpacket)
crypto/openssh/channels.c
3005
len = c->remote_maxpacket;
crypto/openssh/channels.c
3009
(r = sshpkt_put_u32(ssh, c->remote_id)) != 0 ||
crypto/openssh/channels.c
301
return c;
crypto/openssh/channels.c
3010
(r = sshpkt_put_string(ssh, sshbuf_ptr(c->input), len)) != 0 ||
crypto/openssh/channels.c
3012
fatal_fr(r, "channel %i: send data", c->self);
crypto/openssh/channels.c
3013
if ((r = sshbuf_consume(c->input, len)) != 0)
crypto/openssh/channels.c
3014
fatal_fr(r, "channel %i: consume", c->self);
crypto/openssh/channels.c
3015
c->remote_window -= len;
crypto/openssh/channels.c
3024
channel_output_poll_extended_read(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
3029
if ((len = sshbuf_len(c->extended)) == 0)
crypto/openssh/channels.c
303
logit("Non-public channel %d, type %d.", id, c->type);
crypto/openssh/channels.c
3032
debug2("channel %d: rwin %u elen %zu euse %d", c->self,
crypto/openssh/channels.c
3033
c->remote_window, sshbuf_len(c->extended), c->extended_usage);
crypto/openssh/channels.c
3034
if (len > c->remote_window)
crypto/openssh/channels.c
3035
len = c->remote_window;
crypto/openssh/channels.c
3036
if (len > c->remote_maxpacket)
crypto/openssh/channels.c
3037
len = c->remote_maxpacket;
crypto/openssh/channels.c
3040
if (!c->have_remote_id)
crypto/openssh/channels.c
3041
fatal_f("channel %d: no remote id", c->self);
crypto/openssh/channels.c
3043
(r = sshpkt_put_u32(ssh, c->remote_id)) != 0 ||
crypto/openssh/channels.c
3045
(r = sshpkt_put_string(ssh, sshbuf_ptr(c->extended), len)) != 0 ||
crypto/openssh/channels.c
3047
fatal_fr(r, "channel %i: data", c->self);
crypto/openssh/channels.c
3048
if ((r = sshbuf_consume(c->extended, len)) != 0)
crypto/openssh/channels.c
3049
fatal_fr(r, "channel %i: consume", c->self);
crypto/openssh/channels.c
3050
c->remote_window -= len;
crypto/openssh/channels.c
3051
debug2("channel %d: sent ext data %zu", c->self, len);
crypto/openssh/channels.c
3063
Channel *c;
crypto/openssh/channels.c
3068
c = sc->channels[i];
crypto/openssh/channels.c
3069
if (c == NULL)
crypto/openssh/channels.c
3076
if (c->type != SSH_CHANNEL_OPEN)
crypto/openssh/channels.c
3078
if ((c->flags & (CHAN_CLOSE_SENT|CHAN_CLOSE_RCVD))) {
crypto/openssh/channels.c
3081
c->self);
crypto/openssh/channels.c
3086
if (c->istate == CHAN_INPUT_OPEN ||
crypto/openssh/channels.c
3087
c->istate == CHAN_INPUT_WAIT_DRAIN)
crypto/openssh/channels.c
3088
ret |= channel_output_poll_input_open(ssh, c);
crypto/openssh/channels.c
3090
if (!(c->flags & CHAN_EOF_SENT) &&
crypto/openssh/channels.c
3091
c->extended_usage == CHAN_EXTENDED_READ)
crypto/openssh/channels.c
3092
ret |= channel_output_poll_extended_read(ssh, c);
crypto/openssh/channels.c
3140
Channel *c = NULL;
crypto/openssh/channels.c
3179
c = channel_new(ssh, "mux-proxy", SSH_CHANNEL_MUX_PROXY,
crypto/openssh/channels.c
3181
c->mux_ctx = downstream; /* point to mux client */
crypto/openssh/channels.c
3182
c->mux_downstream_id = id; /* original downstream id */
crypto/openssh/channels.c
3184
(r = sshbuf_put_u32(modified, c->self)) != 0 ||
crypto/openssh/channels.c
3187
channel_free(ssh, c);
crypto/openssh/channels.c
3206
c = channel_new(ssh, "mux-proxy", SSH_CHANNEL_MUX_PROXY,
crypto/openssh/channels.c
3208
c->mux_ctx = downstream; /* point to mux client */
crypto/openssh/channels.c
3209
c->mux_downstream_id = id;
crypto/openssh/channels.c
3210
c->remote_id = remote_id;
crypto/openssh/channels.c
3211
c->have_remote_id = 1;
crypto/openssh/channels.c
3213
(r = sshbuf_put_u32(modified, c->self)) != 0 ||
crypto/openssh/channels.c
3216
channel_free(ssh, c);
crypto/openssh/channels.c
3252
if ((c = channel_by_remote_id(ssh, remote_id)) != NULL) {
crypto/openssh/channels.c
3253
if (c->flags & CHAN_CLOSE_RCVD)
crypto/openssh/channels.c
3254
channel_free(ssh, c);
crypto/openssh/channels.c
3256
c->flags |= CHAN_CLOSE_SENT;
crypto/openssh/channels.c
3291
channel_proxy_upstream(Channel *c, int type, u_int32_t seq, struct ssh *ssh)
crypto/openssh/channels.c
3305
if (c == NULL || c->type != SSH_CHANNEL_MUX_PROXY)
crypto/openssh/channels.c
3307
if ((downstream = c->mux_ctx) == NULL)
crypto/openssh/channels.c
3322
debug2_f("channel %u: unsupported type %u", c->self, type);
crypto/openssh/channels.c
3338
(r = sshbuf_put_u32(b, c->mux_downstream_id)) != 0 ||
crypto/openssh/channels.c
3346
debug3_f("channel %u: up->down: type %u", c->self, type);
crypto/openssh/channels.c
3353
c->remote_id = PEEK_U32(cp);
crypto/openssh/channels.c
3354
c->have_remote_id = 1;
crypto/openssh/channels.c
3358
if (c->flags & CHAN_CLOSE_SENT)
crypto/openssh/channels.c
3359
channel_free(ssh, c);
crypto/openssh/channels.c
3361
c->flags |= CHAN_CLOSE_RCVD;
crypto/openssh/channels.c
3393
Channel *c;
crypto/openssh/channels.c
3395
if ((c = channel_lookup(ssh, id)) == NULL) {
crypto/openssh/channels.c
3399
return c;
crypto/openssh/channels.c
3407
Channel *c = channel_from_packet_id(ssh, __func__, "data");
crypto/openssh/channels.c
3410
if (channel_proxy_upstream(c, type, seq, ssh))
crypto/openssh/channels.c
3414
if (c->type != SSH_CHANNEL_OPEN &&
crypto/openssh/channels.c
3415
c->type != SSH_CHANNEL_RDYNAMIC_OPEN &&
crypto/openssh/channels.c
3416
c->type != SSH_CHANNEL_RDYNAMIC_FINISH &&
crypto/openssh/channels.c
3417
c->type != SSH_CHANNEL_X11_OPEN)
crypto/openssh/channels.c
3423
fatal_fr(r, "channel %i: get data", c->self);
crypto/openssh/channels.c
3426
if (c->datagram)
crypto/openssh/channels.c
3434
if (c->ostate != CHAN_OUTPUT_OPEN) {
crypto/openssh/channels.c
3435
c->local_window -= win_len;
crypto/openssh/channels.c
3436
c->local_consumed += win_len;
crypto/openssh/channels.c
3440
if (win_len > c->local_maxpacket) {
crypto/openssh/channels.c
3442
c->self, win_len, c->local_maxpacket);
crypto/openssh/channels.c
3445
if (win_len > c->local_window) {
crypto/openssh/channels.c
3446
c->local_window_exceeded += win_len - c->local_window;
crypto/openssh/channels.c
3448
"(excess %u)", c->self, win_len, c->local_window,
crypto/openssh/channels.c
3449
c->local_window_max, c->local_window_exceeded);
crypto/openssh/channels.c
3450
c->local_window = 0;
crypto/openssh/channels.c
3452
if (c->local_window_exceeded > (c->local_window_max / 10)) {
crypto/openssh/channels.c
3454
"channel window", c->self);
crypto/openssh/channels.c
3457
c->local_window -= win_len;
crypto/openssh/channels.c
3458
c->local_window_exceeded = 0;
crypto/openssh/channels.c
3461
if (c->datagram) {
crypto/openssh/channels.c
3462
if ((r = sshbuf_put_string(c->output, data, data_len)) != 0)
crypto/openssh/channels.c
3463
fatal_fr(r, "channel %i: append datagram", c->self);
crypto/openssh/channels.c
3464
} else if ((r = sshbuf_put(c->output, data, data_len)) != 0)
crypto/openssh/channels.c
3465
fatal_fr(r, "channel %i: append data", c->self);
crypto/openssh/channels.c
3476
Channel *c = channel_from_packet_id(ssh, __func__, "extended data");
crypto/openssh/channels.c
3479
if (channel_proxy_upstream(c, type, seq, ssh))
crypto/openssh/channels.c
3481
if (c->type != SSH_CHANNEL_OPEN) {
crypto/openssh/channels.c
3482
logit("channel %d: ext data for non open", c->self);
crypto/openssh/channels.c
3485
if (c->flags & CHAN_EOF_RCVD) {
crypto/openssh/channels.c
3488
c->self);
crypto/openssh/channels.c
3491
"after EOF on channel %d.", c->self);
crypto/openssh/channels.c
3498
if (c->efd == -1 ||
crypto/openssh/channels.c
3499
c->extended_usage != CHAN_EXTENDED_WRITE ||
crypto/openssh/channels.c
3501
logit("channel %d: bad ext data", c->self);
crypto/openssh/channels.c
3510
if (data_len > c->local_window) {
crypto/openssh/channels.c
3512
c->self, data_len, c->local_window);
crypto/openssh/channels.c
3515
debug2("channel %d: rcvd ext data %zu", c->self, data_len);
crypto/openssh/channels.c
3517
if ((r = sshbuf_put(c->extended, data, data_len)) != 0)
crypto/openssh/channels.c
3519
c->local_window -= data_len;
crypto/openssh/channels.c
3526
Channel *c = channel_from_packet_id(ssh, __func__, "ieof");
crypto/openssh/channels.c
3534
if (channel_proxy_upstream(c, type, seq, ssh))
crypto/openssh/channels.c
3536
chan_rcvd_ieof(ssh, c);
crypto/openssh/channels.c
3539
if (c->force_drain && c->istate == CHAN_INPUT_OPEN) {
crypto/openssh/channels.c
3540
debug("channel %d: FORCE input drain", c->self);
crypto/openssh/channels.c
3541
c->istate = CHAN_INPUT_WAIT_DRAIN;
crypto/openssh/channels.c
3542
if (sshbuf_len(c->input) == 0)
crypto/openssh/channels.c
3543
chan_ibuf_empty(ssh, c);
crypto/openssh/channels.c
3551
Channel *c = channel_from_packet_id(ssh, __func__, "oclose");
crypto/openssh/channels.c
3554
if (channel_proxy_upstream(c, type, seq, ssh))
crypto/openssh/channels.c
3560
chan_rcvd_oclose(ssh, c);
crypto/openssh/channels.c
3567
Channel *c = channel_from_packet_id(ssh, __func__, "open confirmation");
crypto/openssh/channels.c
3571
if (channel_proxy_upstream(c, type, seq, ssh))
crypto/openssh/channels.c
3573
if (c->type != SSH_CHANNEL_OPENING)
crypto/openssh/channels.c
3575
"non-opening channel %d.", c->self);
crypto/openssh/channels.c
3580
if ((r = sshpkt_get_u32(ssh, &c->remote_id)) != 0 ||
crypto/openssh/channels.c
3588
c->have_remote_id = 1;
crypto/openssh/channels.c
3589
c->remote_window = remote_window;
crypto/openssh/channels.c
3590
c->remote_maxpacket = remote_maxpacket;
crypto/openssh/channels.c
3591
c->type = SSH_CHANNEL_OPEN;
crypto/openssh/channels.c
3592
if (c->open_confirm) {
crypto/openssh/channels.c
3593
debug2_f("channel %d: callback start", c->self);
crypto/openssh/channels.c
3594
c->open_confirm(ssh, c->self, 1, c->open_confirm_ctx);
crypto/openssh/channels.c
3595
debug2_f("channel %d: callback done", c->self);
crypto/openssh/channels.c
3597
channel_set_used_time(ssh, c);
crypto/openssh/channels.c
3598
debug2("channel %d: open confirm rwindow %u rmax %u", c->self,
crypto/openssh/channels.c
3599
c->remote_window, c->remote_maxpacket);
crypto/openssh/channels.c
3622
Channel *c = channel_from_packet_id(ssh, __func__, "open failure");
crypto/openssh/channels.c
3627
if (channel_proxy_upstream(c, type, seq, ssh))
crypto/openssh/channels.c
3629
if (c->type != SSH_CHANNEL_OPENING)
crypto/openssh/channels.c
3631
"non-opening channel %d.", c->self);
crypto/openssh/channels.c
3643
logit("channel %d: open failed: %s%s%s", c->self,
crypto/openssh/channels.c
3646
if (c->open_confirm) {
crypto/openssh/channels.c
3647
debug2_f("channel %d: callback start", c->self);
crypto/openssh/channels.c
3648
c->open_confirm(ssh, c->self, 0, c->open_confirm_ctx);
crypto/openssh/channels.c
3649
debug2_f("channel %d: callback done", c->self);
crypto/openssh/channels.c
3652
chan_mark_dead(ssh, c);
crypto/openssh/channels.c
3660
Channel *c;
crypto/openssh/channels.c
3665
if ((c = channel_lookup(ssh, id)) == NULL) {
crypto/openssh/channels.c
3670
if (channel_proxy_upstream(c, type, seq, ssh))
crypto/openssh/channels.c
3677
debug2("channel %d: rcvd adjust %u", c->self, adjust);
crypto/openssh/channels.c
3678
if ((new_rwin = c->remote_window + adjust) < c->remote_window) {
crypto/openssh/channels.c
3680
c->self, adjust, c->remote_window);
crypto/openssh/channels.c
3682
c->remote_window = new_rwin;
crypto/openssh/channels.c
369
Channel *c;
crypto/openssh/channels.c
3690
Channel *c;
crypto/openssh/channels.c
3698
if ((c = channel_lookup(ssh, id)) == NULL) {
crypto/openssh/channels.c
3702
if (channel_proxy_upstream(c, type, seq, ssh))
crypto/openssh/channels.c
3706
if ((cc = TAILQ_FIRST(&c->status_confirms)) == NULL)
crypto/openssh/channels.c
3708
cc->cb(ssh, type, c, cc->ctx);
crypto/openssh/channels.c
3709
TAILQ_REMOVE(&c->status_confirms, cc, entry);
crypto/openssh/channels.c
371
if ((c = channel_by_id(ssh, id)) == NULL)
crypto/openssh/channels.c
373
if (c->xctype != NULL)
crypto/openssh/channels.c
374
free(c->xctype);
crypto/openssh/channels.c
375
c->xctype = xstrdup(xctype);
crypto/openssh/channels.c
377
c->inactive_deadline = lookup_timeout(ssh, c->xctype);
crypto/openssh/channels.c
379
c->inactive_deadline);
crypto/openssh/channels.c
3797
Channel *c;
crypto/openssh/channels.c
387
channel_set_used_time(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
390
if (c != NULL)
crypto/openssh/channels.c
391
c->lastused = ssh->chanctxt->lastused;
crypto/openssh/channels.c
3931
c = channel_new(ssh, "port-listener", type, sock, sock, -1,
crypto/openssh/channels.c
3934
c->path = xstrdup(host);
crypto/openssh/channels.c
3935
c->host_port = fwd->connect_port;
crypto/openssh/channels.c
3936
c->listening_addr = addr == NULL ? NULL : xstrdup(addr);
crypto/openssh/channels.c
3939
c->listening_port = *allocated_listen_port;
crypto/openssh/channels.c
3941
c->listening_port = fwd->listen_port;
crypto/openssh/channels.c
3956
Channel *c;
crypto/openssh/channels.c
399
channel_get_expiry(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
4014
c = channel_new(ssh, "unix-listener", type, sock, sock, -1,
crypto/openssh/channels.c
4017
c->path = xstrdup(path);
crypto/openssh/channels.c
4018
c->host_port = port;
crypto/openssh/channels.c
4019
c->listening_port = PORT_STREAMLOCAL;
crypto/openssh/channels.c
4020
c->listening_addr = xstrdup(fwd->listen_path);
crypto/openssh/channels.c
4032
Channel *c = ssh->chanctxt->channels[i];
crypto/openssh/channels.c
4033
if (c == NULL || c->type != SSH_CHANNEL_RPORT_LISTENER)
crypto/openssh/channels.c
4035
if (strcmp(c->path, host) == 0 && c->listening_port == port) {
crypto/openssh/channels.c
4037
channel_free(ssh, c);
crypto/openssh/channels.c
4052
Channel *c = ssh->chanctxt->channels[i];
crypto/openssh/channels.c
4053
if (c == NULL || c->type != SSH_CHANNEL_RUNIX_LISTENER)
crypto/openssh/channels.c
4055
if (c->path == NULL)
crypto/openssh/channels.c
4057
if (strcmp(c->path, path) == 0) {
crypto/openssh/channels.c
4059
channel_free(ssh, c);
crypto/openssh/channels.c
406
if (c->lastused != 0 && c->inactive_deadline != 0) {
crypto/openssh/channels.c
407
channel_expiry = c->lastused + c->inactive_deadline;
crypto/openssh/channels.c
4089
Channel *c = ssh->chanctxt->channels[i];
crypto/openssh/channels.c
4090
if (c == NULL || c->type != SSH_CHANNEL_PORT_LISTENER)
crypto/openssh/channels.c
4092
if (c->listening_port != lport)
crypto/openssh/channels.c
4096
if (c->host_port == 0)
crypto/openssh/channels.c
4099
if (c->host_port != cport)
crypto/openssh/channels.c
4102
if ((c->listening_addr == NULL && addr != NULL) ||
crypto/openssh/channels.c
4103
(c->listening_addr != NULL && addr == NULL))
crypto/openssh/channels.c
4105
if (addr == NULL || strcmp(c->listening_addr, addr) == 0) {
crypto/openssh/channels.c
4107
channel_free(ssh, c);
crypto/openssh/channels.c
4127
Channel *c = ssh->chanctxt->channels[i];
crypto/openssh/channels.c
4128
if (c == NULL || c->type != SSH_CHANNEL_UNIX_LISTENER)
crypto/openssh/channels.c
4130
if (c->listening_addr == NULL)
crypto/openssh/channels.c
4132
if (strcmp(c->listening_addr, path) == 0) {
crypto/openssh/channels.c
4134
channel_free(ssh, c);
crypto/openssh/channels.c
419
channel_register_fds(struct ssh *ssh, Channel *c, int rfd, int wfd, int efd,
crypto/openssh/channels.c
431
c->rfd = rfd;
crypto/openssh/channels.c
432
c->wfd = wfd;
crypto/openssh/channels.c
433
c->sock = (rfd == wfd) ? rfd : -1;
crypto/openssh/channels.c
434
c->efd = efd;
crypto/openssh/channels.c
435
c->extended_usage = extusage;
crypto/openssh/channels.c
437
if ((c->isatty = is_tty) != 0)
crypto/openssh/channels.c
438
debug2("channel %d: rfd %d isatty", c->self, c->rfd);
crypto/openssh/channels.c
441
c->wfd_isatty = is_tty || isatty(c->wfd);
crypto/openssh/channels.c
445
c->restore_block = 0;
crypto/openssh/channels.c
455
c->restore_flags[0] = val;
crypto/openssh/channels.c
456
c->restore_block |= CHANNEL_RESTORE_RFD;
crypto/openssh/channels.c
461
c->restore_flags[1] = val;
crypto/openssh/channels.c
462
c->restore_block |= CHANNEL_RESTORE_WFD;
crypto/openssh/channels.c
467
c->restore_flags[2] = val;
crypto/openssh/channels.c
468
c->restore_block |= CHANNEL_RESTORE_EFD;
crypto/openssh/channels.c
4727
Channel *c;
crypto/openssh/channels.c
4737
c = channel_new(ssh, ctype, SSH_CHANNEL_CONNECTING, sock, sock, -1,
crypto/openssh/channels.c
4739
c->host_port = port;
crypto/openssh/channels.c
4740
c->path = xstrdup(host);
crypto/openssh/channels.c
4741
c->connect_ctx = cctx;
crypto/openssh/channels.c
4743
return c;
crypto/openssh/channels.c
4808
Channel *c;
crypto/openssh/channels.c
4852
c = channel_new(ssh, ctype, SSH_CHANNEL_CONNECTING, sock, sock, -1,
crypto/openssh/channels.c
4854
c->host_port = port;
crypto/openssh/channels.c
4855
c->path = xstrdup(host);
crypto/openssh/channels.c
4856
c->connect_ctx = cctx;
crypto/openssh/channels.c
4858
return c;
crypto/openssh/channels.c
4929
Channel *c;
crypto/openssh/channels.c
493
Channel *c;
crypto/openssh/channels.c
4932
c = channel_new(ssh, ctype, SSH_CHANNEL_RDYNAMIC_OPEN, -1, -1, -1,
crypto/openssh/channels.c
4934
c->host_port = 0;
crypto/openssh/channels.c
4935
c->path = NULL;
crypto/openssh/channels.c
4942
(r = sshpkt_put_u32(ssh, c->remote_id)) != 0 ||
crypto/openssh/channels.c
4943
(r = sshpkt_put_u32(ssh, c->self)) != 0 ||
crypto/openssh/channels.c
4944
(r = sshpkt_put_u32(ssh, c->local_window)) != 0 ||
crypto/openssh/channels.c
4945
(r = sshpkt_put_u32(ssh, c->local_maxpacket)) != 0)
crypto/openssh/channels.c
4946
fatal_fr(r, "channel %i; confirm", c->self);
crypto/openssh/channels.c
4947
return c;
crypto/openssh/channels.c
4952
rdynamic_connect_finish(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
4965
if (open_match(perm, c->path, c->host_port)) {
crypto/openssh/channels.c
4977
sock = connect_to_helper(ssh, c->path, c->host_port, SOCK_STREAM, NULL,
crypto/openssh/channels.c
4983
c->type = SSH_CHANNEL_RDYNAMIC_FINISH;
crypto/openssh/channels.c
4984
c->connect_ctx = cctx;
crypto/openssh/channels.c
4985
channel_register_fds(ssh, c, sock, sock, -1, 0, 1, 0);
crypto/openssh/channels.c
519
c = sc->channels[found] = xcalloc(1, sizeof(Channel));
crypto/openssh/channels.c
520
if ((c->input = sshbuf_new()) == NULL ||
crypto/openssh/channels.c
521
(c->output = sshbuf_new()) == NULL ||
crypto/openssh/channels.c
522
(c->extended = sshbuf_new()) == NULL)
crypto/openssh/channels.c
524
if ((r = sshbuf_set_max_size(c->input, CHAN_INPUT_MAX)) != 0)
crypto/openssh/channels.c
526
c->ostate = CHAN_OUTPUT_OPEN;
crypto/openssh/channels.c
527
c->istate = CHAN_INPUT_OPEN;
crypto/openssh/channels.c
528
channel_register_fds(ssh, c, rfd, wfd, efd, extusage, nonblock, 0);
crypto/openssh/channels.c
529
c->self = found;
crypto/openssh/channels.c
530
c->type = type;
crypto/openssh/channels.c
531
c->ctype = ctype;
crypto/openssh/channels.c
532
c->local_window = window;
crypto/openssh/channels.c
533
c->local_window_max = window;
crypto/openssh/channels.c
534
c->local_maxpacket = maxpack;
crypto/openssh/channels.c
5349
Channel *c;
crypto/openssh/channels.c
535
c->remote_name = xstrdup(remote_name);
crypto/openssh/channels.c
5353
c = ssh->chanctxt->channels[i];
crypto/openssh/channels.c
5354
if (c == NULL || c->ctype == NULL || c->lastused == 0 ||
crypto/openssh/channels.c
5355
strcmp(c->ctype, "x11-connection") != 0)
crypto/openssh/channels.c
5357
lastused = c->lastused;
crypto/openssh/channels.c
536
c->ctl_chan = -1;
crypto/openssh/channels.c
537
c->delayed = 1; /* prevent call to channel_post handler */
crypto/openssh/channels.c
538
c->inactive_deadline = lookup_timeout(ssh, c->ctype);
crypto/openssh/channels.c
539
TAILQ_INIT(&c->status_confirms);
crypto/openssh/channels.c
541
found, c->ctype, remote_name, c->inactive_deadline);
crypto/openssh/channels.c
542
return c;
crypto/openssh/channels.c
546
channel_close_fd(struct ssh *ssh, Channel *c, int *fdp)
crypto/openssh/channels.c
554
if (*fdp == c->rfd &&
crypto/openssh/channels.c
555
(c->restore_block & CHANNEL_RESTORE_RFD) != 0)
crypto/openssh/channels.c
556
(void)fcntl(*fdp, F_SETFL, c->restore_flags[0]);
crypto/openssh/channels.c
557
else if (*fdp == c->wfd &&
crypto/openssh/channels.c
558
(c->restore_block & CHANNEL_RESTORE_WFD) != 0)
crypto/openssh/channels.c
559
(void)fcntl(*fdp, F_SETFL, c->restore_flags[1]);
crypto/openssh/channels.c
560
else if (*fdp == c->efd &&
crypto/openssh/channels.c
561
(c->restore_block & CHANNEL_RESTORE_EFD) != 0)
crypto/openssh/channels.c
562
(void)fcntl(*fdp, F_SETFL, c->restore_flags[2]);
crypto/openssh/channels.c
564
if (*fdp == c->rfd) {
crypto/openssh/channels.c
565
c->io_want &= ~SSH_CHAN_IO_RFD;
crypto/openssh/channels.c
566
c->io_ready &= ~SSH_CHAN_IO_RFD;
crypto/openssh/channels.c
567
c->rfd = -1;
crypto/openssh/channels.c
568
c->pfds[0] = -1;
crypto/openssh/channels.c
570
if (*fdp == c->wfd) {
crypto/openssh/channels.c
571
c->io_want &= ~SSH_CHAN_IO_WFD;
crypto/openssh/channels.c
572
c->io_ready &= ~SSH_CHAN_IO_WFD;
crypto/openssh/channels.c
573
c->wfd = -1;
crypto/openssh/channels.c
574
c->pfds[1] = -1;
crypto/openssh/channels.c
576
if (*fdp == c->efd) {
crypto/openssh/channels.c
577
c->io_want &= ~SSH_CHAN_IO_EFD;
crypto/openssh/channels.c
578
c->io_ready &= ~SSH_CHAN_IO_EFD;
crypto/openssh/channels.c
579
c->efd = -1;
crypto/openssh/channels.c
580
c->pfds[2] = -1;
crypto/openssh/channels.c
582
if (*fdp == c->sock) {
crypto/openssh/channels.c
583
c->io_want &= ~SSH_CHAN_IO_SOCK;
crypto/openssh/channels.c
584
c->io_ready &= ~SSH_CHAN_IO_SOCK;
crypto/openssh/channels.c
585
c->sock = -1;
crypto/openssh/channels.c
586
c->pfds[3] = -1;
crypto/openssh/channels.c
596
channel_close_fds(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
598
int sock = c->sock, rfd = c->rfd, wfd = c->wfd, efd = c->efd;
crypto/openssh/channels.c
600
channel_close_fd(ssh, c, &c->sock);
crypto/openssh/channels.c
602
channel_close_fd(ssh, c, &c->rfd);
crypto/openssh/channels.c
604
channel_close_fd(ssh, c, &c->wfd);
crypto/openssh/channels.c
606
channel_close_fd(ssh, c, &c->efd);
crypto/openssh/channels.c
704
mux_remove_remote_forwardings(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
714
if (perm->downstream != c)
crypto/openssh/channels.c
719
c->self, perm->listen_host, perm->listen_port);
crypto/openssh/channels.c
728
fatal_fr(r, "channel %i", c->self);
crypto/openssh/channels.c
736
channel_free(struct ssh *ssh, Channel *c)
crypto/openssh/channels.c
749
if (c->type == SSH_CHANNEL_MUX_CLIENT &&
crypto/openssh/channels.c
751
other->mux_ctx == c) {
crypto/openssh/channels.c
758
debug("channel %d: free: %s, nchannels %u", c->self,
crypto/openssh/channels.c
759
c->remote_name ? c->remote_name : "???", n);
crypto/openssh/channels.c
761
if (c->type == SSH_CHANNEL_MUX_CLIENT) {
crypto/openssh/channels.c
762
mux_remove_remote_forwardings(ssh, c);
crypto/openssh/channels.c
763
free(c->mux_ctx);
crypto/openssh/channels.c
764
c->mux_ctx = NULL;
crypto/openssh/channels.c
765
} else if (c->type == SSH_CHANNEL_MUX_LISTENER) {
crypto/openssh/channels.c
766
free(c->mux_ctx);
crypto/openssh/channels.c
767
c->mux_ctx = NULL;
crypto/openssh/channels.c
772
debug3("channel %d: status: %s", c->self, s);
crypto/openssh/channels.c
776
channel_close_fds(ssh, c);
crypto/openssh/channels.c
777
sshbuf_free(c->input);
crypto/openssh/channels.c
778
sshbuf_free(c->output);
crypto/openssh/channels.c
779
sshbuf_free(c->extended);
crypto/openssh/channels.c
780
c->input = c->output = c->extended = NULL;
crypto/openssh/channels.c
781
free(c->remote_name);
crypto/openssh/channels.c
782
c->remote_name = NULL;
crypto/openssh/channels.c
783
free(c->path);
crypto/openssh/channels.c
784
c->path = NULL;
crypto/openssh/channels.c
785
free(c->listening_addr);
crypto/openssh/channels.c
786
c->listening_addr = NULL;
crypto/openssh/channels.c
787
free(c->xctype);
crypto/openssh/channels.c
788
c->xctype = NULL;
crypto/openssh/channels.c
789
while ((cc = TAILQ_FIRST(&c->status_confirms)) != NULL) {
crypto/openssh/channels.c
791
cc->abandon_cb(ssh, c, cc->ctx);
crypto/openssh/channels.c
792
TAILQ_REMOVE(&c->status_confirms, cc, entry);
crypto/openssh/channels.c
795
if (c->filter_cleanup != NULL && c->filter_ctx != NULL)
crypto/openssh/channels.c
796
c->filter_cleanup(ssh, c->self, c->filter_ctx);
crypto/openssh/channels.c
797
sc->channels[c->self] = NULL;
crypto/openssh/channels.c
798
freezero(c, sizeof(*c));
crypto/openssh/channels.c
851
Channel *c;
crypto/openssh/channels.c
854
c = ssh->chanctxt->channels[i];
crypto/openssh/channels.c
855
if (c != NULL) {
crypto/openssh/channels.c
856
switch (c->type) {
crypto/openssh/channels.c
863
channel_close_fd(ssh, c, &c->sock);
crypto/openssh/channels.c
864
channel_free(ssh, c);
crypto/openssh/channels.c
880
Channel *c;
crypto/openssh/channels.c
883
c = ssh->chanctxt->channels[i];
crypto/openssh/channels.c
884
if (c == NULL || c->type != SSH_CHANNEL_OPEN)
crypto/openssh/channels.c
886
if (sshbuf_len(c->output) > maxsize) {
crypto/openssh/channels.c
888
c->self, sshbuf_len(c->output), maxsize);
crypto/openssh/channels.c
900
Channel *c;
crypto/openssh/channels.c
903
c = ssh->chanctxt->channels[i];
crypto/openssh/channels.c
904
if (c == NULL)
crypto/openssh/channels.c
906
switch (c->type) {
crypto/openssh/channels.c
931
fatal_f("bad channel type %d", c->type);
crypto/openssh/channels.c
943
Channel *c;
crypto/openssh/channels.c
946
c = ssh->chanctxt->channels[i];
crypto/openssh/channels.c
947
if (c == NULL || c->type != SSH_CHANNEL_OPEN)
crypto/openssh/channels.c
949
if (c->client_tty)
crypto/openssh/channels.c
960
Channel *c;
crypto/openssh/channels.c
963
c = ssh->chanctxt->channels[i];
crypto/openssh/channels.c
964
if (c == NULL || !c->have_remote_id)
crypto/openssh/channels.c
966
switch (c->type) {
crypto/openssh/channels.c
990
fatal_f("bad channel type %d", c->type);
crypto/openssh/channels.c
999
channel_format_extended_usage(const Channel *c)
crypto/openssh/channels.h
271
#define CHANNEL_EFD_INPUT_ACTIVE(c) \
crypto/openssh/channels.h
272
(c->extended_usage == CHAN_EXTENDED_READ && \
crypto/openssh/channels.h
273
(c->efd != -1 || \
crypto/openssh/channels.h
274
sshbuf_len(c->extended) > 0))
crypto/openssh/channels.h
275
#define CHANNEL_EFD_OUTPUT_ACTIVE(c) \
crypto/openssh/channels.h
276
(c->extended_usage == CHAN_EXTENDED_WRITE && \
crypto/openssh/channels.h
277
c->efd != -1 && (!(c->flags & (CHAN_EOF_RCVD|CHAN_CLOSE_RCVD)) || \
crypto/openssh/channels.h
278
sshbuf_len(c->extended) > 0))
crypto/openssh/cipher-aes.c
106
rijndael_decrypt(&c->r_ctx, cnow, plain);
crypto/openssh/cipher-aes.c
107
ivp = (i == 1) ? c->r_iv : cnow-RIJNDAEL_BLOCKSIZE;
crypto/openssh/cipher-aes.c
111
memcpy(c->r_iv, buf, RIJNDAEL_BLOCKSIZE);
crypto/openssh/cipher-aes.c
119
struct ssh_rijndael_ctx *c;
crypto/openssh/cipher-aes.c
121
if ((c = EVP_CIPHER_CTX_get_app_data(ctx)) != NULL) {
crypto/openssh/cipher-aes.c
122
memset(c, 0, sizeof(*c));
crypto/openssh/cipher-aes.c
123
free(c);
crypto/openssh/cipher-aes.c
132
struct ssh_rijndael_ctx *c;
crypto/openssh/cipher-aes.c
134
if ((c = EVP_CIPHER_CTX_get_app_data(evp)) == NULL)
crypto/openssh/cipher-aes.c
137
memcpy(c->r_iv, iv, len);
crypto/openssh/cipher-aes.c
139
memcpy(iv, c->r_iv, len);
crypto/openssh/cipher-aes.c
53
struct ssh_rijndael_ctx *c;
crypto/openssh/cipher-aes.c
55
if ((c = EVP_CIPHER_CTX_get_app_data(ctx)) == NULL) {
crypto/openssh/cipher-aes.c
56
c = xmalloc(sizeof(*c));
crypto/openssh/cipher-aes.c
57
EVP_CIPHER_CTX_set_app_data(ctx, c);
crypto/openssh/cipher-aes.c
62
rijndael_set_key(&c->r_ctx, (u_char *)key,
crypto/openssh/cipher-aes.c
66
memcpy(c->r_iv, iv, RIJNDAEL_BLOCKSIZE);
crypto/openssh/cipher-aes.c
74
struct ssh_rijndael_ctx *c;
crypto/openssh/cipher-aes.c
83
if ((c = EVP_CIPHER_CTX_get_app_data(ctx)) == NULL) {
crypto/openssh/cipher-aes.c
90
cprev = c->r_iv;
crypto/openssh/cipher-aes.c
95
rijndael_encrypt(&c->r_ctx, buf, cnow);
crypto/openssh/cipher-aes.c
98
memcpy(c->r_iv, cprev, RIJNDAEL_BLOCKSIZE);
crypto/openssh/cipher-aesctr.c
69
aesctr_encrypt_bytes(aesctr_ctx *x,const u8 *m,u8 *c,u32 bytes)
crypto/openssh/cipher-aesctr.c
79
*(c++) = *(m++) ^ buf[n];
crypto/openssh/cipher-aesctr.h
33
void aesctr_encrypt_bytes(aesctr_ctx *x,const u8 *m,u8 *c,u32 bytes);
crypto/openssh/cipher.c
121
const struct sshcipher *c;
crypto/openssh/cipher.c
123
for (c = ciphers; c->name != NULL; c++) {
crypto/openssh/cipher.c
124
if ((c->flags & CFLAG_INTERNAL) != 0)
crypto/openssh/cipher.c
126
if (auth_only && c->auth_len == 0)
crypto/openssh/cipher.c
130
nlen = strlen(c->name);
crypto/openssh/cipher.c
136
memcpy(ret + rlen, c->name, nlen + 1);
crypto/openssh/cipher.c
154
cipher_blocksize(const struct sshcipher *c)
crypto/openssh/cipher.c
156
return (c->block_size);
crypto/openssh/cipher.c
160
cipher_keylen(const struct sshcipher *c)
crypto/openssh/cipher.c
162
return (c->key_len);
crypto/openssh/cipher.c
166
cipher_seclen(const struct sshcipher *c)
crypto/openssh/cipher.c
168
if (strcmp("3des-cbc", c->name) == 0)
crypto/openssh/cipher.c
170
return cipher_keylen(c);
crypto/openssh/cipher.c
174
cipher_authlen(const struct sshcipher *c)
crypto/openssh/cipher.c
176
return (c->auth_len);
crypto/openssh/cipher.c
180
cipher_ivlen(const struct sshcipher *c)
crypto/openssh/cipher.c
186
return (c->iv_len != 0 || (c->flags & CFLAG_CHACHAPOLY) != 0) ?
crypto/openssh/cipher.c
187
c->iv_len : c->block_size;
crypto/openssh/cipher.c
191
cipher_is_cbc(const struct sshcipher *c)
crypto/openssh/cipher.c
193
return (c->flags & CFLAG_CBC) != 0;
crypto/openssh/cipher.c
205
const struct sshcipher *c;
crypto/openssh/cipher.c
206
for (c = ciphers; c->name != NULL; c++)
crypto/openssh/cipher.c
207
if (strcmp(c->name, name) == 0)
crypto/openssh/cipher.c
208
return c;
crypto/openssh/cipher.c
216
const struct sshcipher *c;
crypto/openssh/cipher.c
226
c = cipher_by_name(p);
crypto/openssh/cipher.c
227
if (c == NULL || (c->flags & CFLAG_INTERNAL) != 0) {
crypto/openssh/cipher.c
441
const struct sshcipher *c = cc->cipher;
crypto/openssh/cipher.c
467
if (cipher_authlen(c)) {
crypto/openssh/cipher.c
481
const struct sshcipher *c = cc->cipher;
crypto/openssh/cipher.c
496
if (cipher_authlen(c)) {
crypto/openssh/clientloop.c
1171
process_escapes(struct ssh *ssh, Channel *c,
crypto/openssh/clientloop.c
1182
if (c == NULL || c->filter_ctx == NULL || len <= 0)
crypto/openssh/clientloop.c
1185
efc = (struct escape_filter_ctx *)c->filter_ctx;
crypto/openssh/clientloop.c
1203
if (c && c->ctl_chan != -1) {
crypto/openssh/clientloop.c
1204
channel_force_close(ssh, c, 1);
crypto/openssh/clientloop.c
1212
if (c && c->ctl_chan != -1) {
crypto/openssh/clientloop.c
1242
channel_request_start(ssh, c->self, "break", 0);
crypto/openssh/clientloop.c
1259
if (c && c->ctl_chan != -1)
crypto/openssh/clientloop.c
1282
if (c->ctl_chan != -1)
crypto/openssh/clientloop.c
1317
(c && c->ctl_chan != -1),
crypto/openssh/clientloop.c
1332
if (c && c->ctl_chan != -1)
crypto/openssh/clientloop.c
1420
client_simple_escape_filter(struct ssh *ssh, Channel *c, char *buf, int len)
crypto/openssh/clientloop.c
1422
if (c->extended_usage != CHAN_EXTENDED_WRITE)
crypto/openssh/clientloop.c
1425
return process_escapes(ssh, c, c->input, c->output, c->extended,
crypto/openssh/clientloop.c
1691
Channel *c = NULL;
crypto/openssh/clientloop.c
1713
c = channel_connect_by_listen_address(ssh,
crypto/openssh/clientloop.c
1718
if (c != NULL && c->type == SSH_CHANNEL_MUX_CLIENT) {
crypto/openssh/clientloop.c
1734
(r = sshbuf_put_stringb(c->output, b)) != 0) {
crypto/openssh/clientloop.c
1744
return c;
crypto/openssh/clientloop.c
1751
Channel *c = NULL;
crypto/openssh/clientloop.c
1763
c = channel_connect_by_listen_path(ssh, listen_path,
crypto/openssh/clientloop.c
1766
return c;
crypto/openssh/clientloop.c
1772
Channel *c = NULL;
crypto/openssh/clientloop.c
1800
c = channel_new(ssh, "x11-connection",
crypto/openssh/clientloop.c
1803
c->force_drain = 1;
crypto/openssh/clientloop.c
1804
return c;
crypto/openssh/clientloop.c
1810
Channel *c = NULL;
crypto/openssh/clientloop.c
1835
c = channel_new(ssh, "agent-connection",
crypto/openssh/clientloop.c
1839
c->force_drain = 1;
crypto/openssh/clientloop.c
1840
return c;
crypto/openssh/clientloop.c
1847
Channel *c;
crypto/openssh/clientloop.c
1863
c = channel_new(ssh, "tun-connection", SSH_CHANNEL_OPENING, fd, fd, -1,
crypto/openssh/clientloop.c
1865
c->datagram = 1;
crypto/openssh/clientloop.c
1869
channel_register_filter(ssh, c->self, sys_tun_infilter,
crypto/openssh/clientloop.c
1874
channel_register_open_confirm(ssh, c->self, cb, cbctx);
crypto/openssh/clientloop.c
1878
(r = sshpkt_put_u32(ssh, c->self)) != 0 ||
crypto/openssh/clientloop.c
1879
(r = sshpkt_put_u32(ssh, c->local_window_max)) != 0 ||
crypto/openssh/clientloop.c
1880
(r = sshpkt_put_u32(ssh, c->local_maxpacket)) != 0 ||
crypto/openssh/clientloop.c
1893
Channel *c = NULL;
crypto/openssh/clientloop.c
1910
c = client_request_forwarded_tcpip(ssh, ctype, rchan, rwindow,
crypto/openssh/clientloop.c
1913
c = client_request_forwarded_streamlocal(ssh, ctype, rchan);
crypto/openssh/clientloop.c
1915
c = client_request_x11(ssh, ctype, rchan);
crypto/openssh/clientloop.c
1917
c = client_request_agent(ssh, ctype, rchan);
crypto/openssh/clientloop.c
1919
if (c != NULL && c->type == SSH_CHANNEL_MUX_CLIENT) {
crypto/openssh/clientloop.c
1921
} else if (c != NULL) {
crypto/openssh/clientloop.c
1923
c->remote_id = rchan;
crypto/openssh/clientloop.c
1924
c->have_remote_id = 1;
crypto/openssh/clientloop.c
1925
c->remote_window = rwindow;
crypto/openssh/clientloop.c
1926
c->remote_maxpacket = rmaxpack;
crypto/openssh/clientloop.c
1927
if (c->type != SSH_CHANNEL_CONNECTING) {
crypto/openssh/clientloop.c
1929
(r = sshpkt_put_u32(ssh, c->remote_id)) != 0 ||
crypto/openssh/clientloop.c
1930
(r = sshpkt_put_u32(ssh, c->self)) != 0 ||
crypto/openssh/clientloop.c
1931
(r = sshpkt_put_u32(ssh, c->local_window)) != 0 ||
crypto/openssh/clientloop.c
1932
(r = sshpkt_put_u32(ssh, c->local_maxpacket)) != 0 ||
crypto/openssh/clientloop.c
1955
Channel *c = NULL;
crypto/openssh/clientloop.c
1964
c = channel_lookup(ssh, id);
crypto/openssh/clientloop.c
1965
if (channel_proxy_upstream(c, type, seq, ssh))
crypto/openssh/clientloop.c
1974
if (c == NULL) {
crypto/openssh/clientloop.c
1980
chan_rcvd_eow(ssh, c);
crypto/openssh/clientloop.c
1984
if (c->ctl_chan != -1) {
crypto/openssh/clientloop.c
1985
mux_exit_message(ssh, c, exitval);
crypto/openssh/clientloop.c
1999
if (reply && c != NULL && !(c->flags & CHAN_CLOSE_SENT)) {
crypto/openssh/clientloop.c
2000
if (!c->have_remote_id)
crypto/openssh/clientloop.c
2001
fatal_f("channel %d: no remote_id", c->self);
crypto/openssh/clientloop.c
2004
(r = sshpkt_put_u32(ssh, c->remote_id)) != 0 ||
crypto/openssh/clientloop.c
2687
Channel *c = NULL;
crypto/openssh/clientloop.c
2691
if ((c = channel_lookup(ssh, id)) == NULL)
crypto/openssh/clientloop.c
2719
c->client_tty = 1;
crypto/openssh/clientloop.c
815
client_status_confirm(struct ssh *ssh, int type, Channel *c, void *ctx)
crypto/openssh/clientloop.c
832
c->ctl_chan != -1 && c->extended_usage == CHAN_EXTENDED_WRITE;
crypto/openssh/clientloop.c
836
cr->request_type, c->self);
crypto/openssh/clientloop.c
844
cr->request_type, c->self);
crypto/openssh/clientloop.c
847
if (cr->action == CONFIRM_CLOSE && c->self == session_ident)
crypto/openssh/clientloop.c
854
debug3_f("channel %d: mux request: %s", c->self,
crypto/openssh/clientloop.c
856
if ((r = sshbuf_put(c->extended, errmsg,
crypto/openssh/clientloop.c
866
if (c->self == session_ident)
crypto/openssh/clientloop.c
869
mux_tty_alloc_failed(ssh, c);
crypto/openssh/clientloop.c
871
chan_read_failed(ssh, c);
crypto/openssh/clientloop.c
872
chan_write_failed(ssh, c);
crypto/openssh/clientloop.c
879
client_abandon_status_confirm(struct ssh *ssh, Channel *c, void *ctx)
crypto/openssh/ed25519.c
1674
fe25519 a,b,t1,t2,c,d,e,f,g,h,qt;
crypto/openssh/ed25519.c
1684
fe25519_mul(&c, &r->t, &qt); /* C = T1*k*T2 */
crypto/openssh/ed25519.c
1685
fe25519_mul(&c, &c, &ge25519_ec2d);
crypto/openssh/ed25519.c
1687
fe25519_sub(&f, &d, &c); /* F = D-C */
crypto/openssh/ed25519.c
1688
fe25519_add(&g, &d, &c); /* G = D+C */
crypto/openssh/ed25519.c
1697
fe25519 a, b, c, d, t;
crypto/openssh/ed25519.c
1705
fe25519_mul(&c, &p->t, &q->t); /* C = T1*k*T2 */
crypto/openssh/ed25519.c
1706
fe25519_mul(&c, &c, &ge25519_ec2d);
crypto/openssh/ed25519.c
1710
fe25519_sub(&r->t, &d, &c); /* F = D-C */
crypto/openssh/ed25519.c
1711
fe25519_add(&r->z, &d, &c); /* G = D+C */
crypto/openssh/ed25519.c
1718
fe25519 a,b,c,d;
crypto/openssh/ed25519.c
1721
fe25519_square(&c, &p->z);
crypto/openssh/ed25519.c
1722
fe25519_add(&c, &c, &c);
crypto/openssh/ed25519.c
1730
fe25519_sub(&r->t, &r->z, &c);
crypto/openssh/ed25519.c
1741
static unsigned char equal(signed char b,signed char c)
crypto/openssh/ed25519.c
1744
unsigned char uc = c;
crypto/openssh/kex.c
1064
char c = id;
crypto/openssh/kex.c
1081
ssh_digest_update(hashctx, &c, 1) != 0 ||
crypto/openssh/kex.c
1110
fprintf(stderr, "key '%c'== ", c);
crypto/openssh/kex.c
1241
u_char c;
crypto/openssh/kex.c
1315
&c, 1);
crypto/openssh/kex.c
1326
if (c == '\r') {
crypto/openssh/kex.c
1330
if (c == '\n')
crypto/openssh/kex.c
1332
if (c == '\0' || expect_nl) {
crypto/openssh/kex.c
1337
if ((r = sshbuf_put_u8(peer_version, c)) != 0) {
crypto/openssh/kexc25519.c
44
const u_char b[CURVE25519_SIZE], const u_char c[CURVE25519_SIZE])
crypto/openssh/libcrux_mlkem768_sha3.h
2053
uint64_t c[5U] = {
crypto/openssh/libcrux_mlkem768_sha3.h
2070
c[((size_t)0U + (size_t)4U) % (size_t)5U],
crypto/openssh/libcrux_mlkem768_sha3.h
2071
c[((size_t)0U + (size_t)1U) % (size_t)5U]);
crypto/openssh/libcrux_mlkem768_sha3.h
2073
c[((size_t)1U + (size_t)4U) % (size_t)5U],
crypto/openssh/libcrux_mlkem768_sha3.h
2074
c[((size_t)1U + (size_t)1U) % (size_t)5U]);
crypto/openssh/libcrux_mlkem768_sha3.h
2076
c[((size_t)2U + (size_t)4U) % (size_t)5U],
crypto/openssh/libcrux_mlkem768_sha3.h
2077
c[((size_t)2U + (size_t)1U) % (size_t)5U]);
crypto/openssh/libcrux_mlkem768_sha3.h
2079
c[((size_t)3U + (size_t)4U) % (size_t)5U],
crypto/openssh/libcrux_mlkem768_sha3.h
2080
c[((size_t)3U + (size_t)1U) % (size_t)5U]);
crypto/openssh/libcrux_mlkem768_sha3.h
2083
c[((size_t)4U + (size_t)4U) % (size_t)5U],
crypto/openssh/libcrux_mlkem768_sha3.h
2084
c[((size_t)4U + (size_t)1U) % (size_t)5U])};
crypto/openssh/libcrux_mlkem768_sha3.h
6759
libcrux_ml_kem_vector_portable_vector_type_PortableVector v, int16_t c) {
crypto/openssh/libcrux_mlkem768_sha3.h
6764
v.elements[uu____0] = v.elements[uu____0] * c;
crypto/openssh/libcrux_mlkem768_sha3.h
6775
libcrux_ml_kem_vector_portable_vector_type_PortableVector v, int16_t c) {
crypto/openssh/libcrux_mlkem768_sha3.h
6776
return libcrux_ml_kem_vector_portable_arithmetic_multiply_by_constant(v, c);
crypto/openssh/libcrux_mlkem768_sha3.h
6781
libcrux_ml_kem_vector_portable_vector_type_PortableVector v, int16_t c) {
crypto/openssh/libcrux_mlkem768_sha3.h
6786
v.elements[uu____0] = v.elements[uu____0] & c;
crypto/openssh/libcrux_mlkem768_sha3.h
6797
libcrux_ml_kem_vector_portable_vector_type_PortableVector v, int16_t c) {
crypto/openssh/libcrux_mlkem768_sha3.h
6799
c);
crypto/openssh/libcrux_mlkem768_sha3.h
6923
int16_t c =
crypto/openssh/libcrux_mlkem768_sha3.h
6931
return value_high - c;
crypto/openssh/libcrux_mlkem768_sha3.h
6954
libcrux_ml_kem_vector_portable_vector_type_PortableVector v, int16_t c) {
crypto/openssh/libcrux_mlkem768_sha3.h
6960
v.elements[i0], c);
crypto/openssh/libcrux_mlkem768_sha3.h
927
uint64_t a, uint64_t b, uint64_t c, uint64_t d, uint64_t e) {
crypto/openssh/libcrux_mlkem768_sha3.h
929
uint64_t cd = c ^ d;
crypto/openssh/libcrux_mlkem768_sha3.h
939
uint64_t a, uint64_t b, uint64_t c, uint64_t d, uint64_t e) {
crypto/openssh/libcrux_mlkem768_sha3.h
940
return libcrux_sha3_portable_keccak__veor5q_u64(a, b, c, d, e);
crypto/openssh/libcrux_mlkem768_sha3.h
970
libcrux_sha3_portable_keccak__vbcaxq_u64(uint64_t a, uint64_t b, uint64_t c) {
crypto/openssh/libcrux_mlkem768_sha3.h
971
return a ^ (b & ~c);
crypto/openssh/libcrux_mlkem768_sha3.h
979
uint64_t a, uint64_t b, uint64_t c) {
crypto/openssh/libcrux_mlkem768_sha3.h
980
return libcrux_sha3_portable_keccak__vbcaxq_u64(a, b, c);
crypto/openssh/libcrux_mlkem768_sha3.h
984
libcrux_sha3_portable_keccak__veorq_n_u64(uint64_t a, uint64_t c) {
crypto/openssh/libcrux_mlkem768_sha3.h
985
return a ^ c;
crypto/openssh/libcrux_mlkem768_sha3.h
993
libcrux_sha3_portable_keccak_xor_constant_5a(uint64_t a, uint64_t c) {
crypto/openssh/libcrux_mlkem768_sha3.h
994
return libcrux_sha3_portable_keccak__veorq_n_u64(a, c);
crypto/openssh/match.c
277
char *c, *s, *p, *ret, *cp, *sp;
crypto/openssh/match.c
280
c = cp = xstrdup(client);
crypto/openssh/match.c
299
strlen(c) : (u_int)(cp - c);
crypto/openssh/match.c
300
free(c);
crypto/openssh/match.c
307
*next = strlen(c);
crypto/openssh/match.c
308
free(c);
crypto/openssh/misc.c
2141
char c, *ret;
crypto/openssh/misc.c
2152
c = argv[i][j];
crypto/openssh/misc.c
2153
switch (c) {
crypto/openssh/misc.c
2157
r = sshbuf_put_u8(arg, c);
crypto/openssh/misc.c
2166
r = sshbuf_put_u8(arg, c);
crypto/openssh/misc.c
2402
u_char c, last = '\0';
crypto/openssh/misc.c
2416
c = tolower((u_char)name[i]);
crypto/openssh/misc.c
2418
name[i] = (char)c;
crypto/openssh/misc.c
2419
if (last == '.' && c == '.') {
crypto/openssh/misc.c
2424
if (c != '.' && c != '-' && !isalnum(c) &&
crypto/openssh/misc.c
2425
c != '_') /* technically invalid, but common */ {
crypto/openssh/misc.c
2430
last = c;
crypto/openssh/misc.c
620
char *p, *os, *np, c = 0;
crypto/openssh/misc.c
632
c = *np;
crypto/openssh/misc.c
638
*np = c;
crypto/openssh/misc.c
641
switch (c) {
crypto/openssh/mux.c
1005
if (c->have_ctl_child_id) {
crypto/openssh/mux.c
1036
nc->ctl_chan = c->self; /* link session -> control channel */
crypto/openssh/mux.c
1037
c->ctl_child_id = nc->self; /* link control -> session channel */
crypto/openssh/mux.c
1038
c->have_ctl_child_id = 1;
crypto/openssh/mux.c
1048
c->mux_pause = 1; /* stop handling messages until open_confirm done */
crypto/openssh/mux.c
1059
Channel *c, *cc;
crypto/openssh/mux.c
1065
if ((c = channel_by_id(ssh, id)) == NULL)
crypto/openssh/mux.c
1067
if ((cc = channel_by_id(ssh, c->ctl_chan)) == NULL)
crypto/openssh/mux.c
1069
id, c->ctl_chan);
crypto/openssh/mux.c
1085
(r = sshbuf_put_u32(reply, c->self)) != 0)
crypto/openssh/mux.c
1097
c->open_confirm_ctx = NULL;
crypto/openssh/mux.c
1103
Channel *c, struct sshbuf *m, struct sshbuf *reply)
crypto/openssh/mux.c
1105
debug_f("channel %d: stop listening", c->self);
crypto/openssh/mux.c
1133
Channel *c, struct sshbuf *m, struct sshbuf *reply)
crypto/openssh/mux.c
1137
debug_f("channel %d: proxy request", c->self);
crypto/openssh/mux.c
1139
c->mux_rcb = channel_proxy_downstream;
crypto/openssh/mux.c
1149
mux_master_read_cb(struct ssh *ssh, Channel *c)
crypto/openssh/mux.c
1151
struct mux_master_state *state = (struct mux_master_state *)c->mux_ctx;
crypto/openssh/mux.c
1160
if (c->mux_ctx == NULL) {
crypto/openssh/mux.c
1162
c->mux_ctx = state;
crypto/openssh/mux.c
1163
channel_register_cleanup(ssh, c->self,
crypto/openssh/mux.c
1171
if ((r = sshbuf_put_stringb(c->output, out)) != 0)
crypto/openssh/mux.c
1173
debug3_f("channel %d: hello sent", c->self);
crypto/openssh/mux.c
1179
if ((r = sshbuf_froms(c->input, &in)) != 0) {
crypto/openssh/mux.c
1187
debug3_f("channel %d packet type 0x%08x len %zu", c->self,
crypto/openssh/mux.c
1205
c, in, out);
crypto/openssh/mux.c
1216
(r = sshbuf_put_stringb(c->output, out)) != 0)
crypto/openssh/mux.c
1225
mux_exit_message(struct ssh *ssh, Channel *c, int exitval)
crypto/openssh/mux.c
1231
debug3_f("channel %d: exit message, exitval %d", c->self, exitval);
crypto/openssh/mux.c
1233
if ((mux_chan = channel_by_id(ssh, c->ctl_chan)) == NULL)
crypto/openssh/mux.c
1234
fatal_f("channel %d missing mux %d", c->self, c->ctl_chan);
crypto/openssh/mux.c
1240
(r = sshbuf_put_u32(m, c->self)) != 0 ||
crypto/openssh/mux.c
1248
mux_tty_alloc_failed(struct ssh *ssh, Channel *c)
crypto/openssh/mux.c
1254
debug3_f("channel %d: TTY alloc failed", c->self);
crypto/openssh/mux.c
1256
if ((mux_chan = channel_by_id(ssh, c->ctl_chan)) == NULL)
crypto/openssh/mux.c
1257
fatal_f("channel %d missing mux %d", c->self, c->ctl_chan);
crypto/openssh/mux.c
1263
(r = sshbuf_put_u32(m, c->self)) != 0 ||
crypto/openssh/mux.c
1359
Channel *c, *cc;
crypto/openssh/mux.c
1365
if ((c = channel_by_id(ssh, id)) == NULL)
crypto/openssh/mux.c
1367
if ((cc = channel_by_id(ssh, c->ctl_chan)) == NULL)
crypto/openssh/mux.c
1369
id, c->ctl_chan);
crypto/openssh/mux.c
1407
cctx->term, &cctx->tio, c->rfd, cctx->cmd, cctx->env);
crypto/openssh/mux.c
1413
(r = sshbuf_put_u32(reply, c->self)) != 0)
crypto/openssh/mux.c
1425
c->open_confirm_ctx = NULL;
crypto/openssh/mux.c
193
Channel *cc, *c = channel_by_id(ssh, cid);
crypto/openssh/mux.c
196
if (c == NULL)
crypto/openssh/mux.c
198
if (c->ctl_chan != -1) {
crypto/openssh/mux.c
199
if ((cc = channel_by_id(ssh, c->ctl_chan)) == NULL)
crypto/openssh/mux.c
201
c->self, c->ctl_chan);
crypto/openssh/mux.c
202
c->ctl_chan = -1;
crypto/openssh/mux.c
207
channel_cancel_cleanup(ssh, c->self);
crypto/openssh/mux.c
214
Channel *sc, *c = channel_by_id(ssh, cid);
crypto/openssh/mux.c
217
if (c == NULL)
crypto/openssh/mux.c
219
if (c->have_ctl_child_id) {
crypto/openssh/mux.c
220
if ((sc = channel_by_id(ssh, c->ctl_child_id)) == NULL)
crypto/openssh/mux.c
222
c->self, c->ctl_child_id);
crypto/openssh/mux.c
223
c->ctl_child_id = 0;
crypto/openssh/mux.c
224
c->have_ctl_child_id = 0;
crypto/openssh/mux.c
237
channel_cancel_cleanup(ssh, c->self);
crypto/openssh/mux.c
267
Channel *c, struct sshbuf *m, struct sshbuf *reply)
crypto/openssh/mux.c
270
struct mux_master_state *state = (struct mux_master_state *)c->mux_ctx;
crypto/openssh/mux.c
274
fatal_f("channel %d: c->mux_ctx == NULL", c->self);
crypto/openssh/mux.c
288
debug2_f("channel %d client version %u", c->self, ver);
crypto/openssh/mux.c
333
Channel *c, struct sshbuf *m, struct sshbuf *reply)
crypto/openssh/mux.c
387
"term \"%s\", cmd \"%s\", env %u", c->self,
crypto/openssh/mux.c
400
if ((new_fd[i] = mm_receive_fd(c->sock)) == -1) {
crypto/openssh/mux.c
420
if (c->have_ctl_child_id) {
crypto/openssh/mux.c
464
nc->ctl_chan = c->self; /* link session -> control channel */
crypto/openssh/mux.c
465
c->ctl_child_id = nc->self; /* link control -> session channel */
crypto/openssh/mux.c
466
c->have_ctl_child_id = 1;
crypto/openssh/mux.c
480
c->mux_pause = 1; /* stop handling messages until open_confirm done */
crypto/openssh/mux.c
490
Channel *c, struct sshbuf *m, struct sshbuf *reply)
crypto/openssh/mux.c
494
debug2_f("channel %d: alive check", c->self);
crypto/openssh/mux.c
507
Channel *c, struct sshbuf *m, struct sshbuf *reply)
crypto/openssh/mux.c
509
debug2_f("channel %d: terminate request", c->self);
crypto/openssh/mux.c
599
Channel *c;
crypto/openssh/mux.c
604
if ((c = channel_by_id(ssh, fctx->cid)) == NULL) {
crypto/openssh/mux.c
673
if ((r = sshbuf_put_stringb(c->output, out)) != 0)
crypto/openssh/mux.c
676
if (c->mux_pause <= 0)
crypto/openssh/mux.c
677
fatal_f("mux_pause %d", c->mux_pause);
crypto/openssh/mux.c
678
c->mux_pause = 0; /* start processing messages again */
crypto/openssh/mux.c
683
Channel *c, struct sshbuf *m, struct sshbuf *reply)
crypto/openssh/mux.c
727
debug2_f("channel %d: request %s", c->self,
crypto/openssh/mux.c
824
fctx->cid = c->self;
crypto/openssh/mux.c
830
c->mux_pause = 1; /* wait for mux_confirm_remote_forward */
crypto/openssh/mux.c
848
Channel *c, struct sshbuf *m, struct sshbuf *reply)
crypto/openssh/mux.c
893
debug2_f("channel %d: request cancel %s", c->self,
crypto/openssh/mux.c
960
Channel *c, struct sshbuf *m, struct sshbuf *reply)
crypto/openssh/mux.c
985
debug2_f("channel %d: stdio fwd to %s:%d", c->self, chost, cport);
crypto/openssh/mux.c
989
if ((new_fd[i] = mm_receive_fd(c->sock)) == -1) {
crypto/openssh/nchan.c
103
chan_set_ostate(Channel *c, u_int next)
crypto/openssh/nchan.c
105
if (c->ostate > CHAN_OUTPUT_CLOSED || next > CHAN_OUTPUT_CLOSED)
crypto/openssh/nchan.c
106
fatal("chan_set_ostate: bad state %d -> %d", c->ostate, next);
crypto/openssh/nchan.c
107
debug2("channel %d: output %s -> %s", c->self, ostates[c->ostate],
crypto/openssh/nchan.c
109
c->ostate = next;
crypto/openssh/nchan.c
113
chan_read_failed(struct ssh *ssh, Channel *c)
crypto/openssh/nchan.c
115
debug2("channel %d: read failed", c->self);
crypto/openssh/nchan.c
116
switch (c->istate) {
crypto/openssh/nchan.c
118
chan_shutdown_read(ssh, c);
crypto/openssh/nchan.c
119
chan_set_istate(c, CHAN_INPUT_WAIT_DRAIN);
crypto/openssh/nchan.c
123
c->self, c->istate);
crypto/openssh/nchan.c
129
chan_ibuf_empty(struct ssh *ssh, Channel *c)
crypto/openssh/nchan.c
131
debug2("channel %d: ibuf empty", c->self);
crypto/openssh/nchan.c
132
if (sshbuf_len(c->input)) {
crypto/openssh/nchan.c
134
c->self);
crypto/openssh/nchan.c
137
switch (c->istate) {
crypto/openssh/nchan.c
139
if (!(c->flags & (CHAN_CLOSE_SENT|CHAN_LOCAL)))
crypto/openssh/nchan.c
140
chan_send_eof2(ssh, c);
crypto/openssh/nchan.c
141
chan_set_istate(c, CHAN_INPUT_CLOSED);
crypto/openssh/nchan.c
145
c->self, c->istate);
crypto/openssh/nchan.c
151
chan_obuf_empty(struct ssh *ssh, Channel *c)
crypto/openssh/nchan.c
153
debug2("channel %d: obuf empty", c->self);
crypto/openssh/nchan.c
154
if (sshbuf_len(c->output)) {
crypto/openssh/nchan.c
156
c->self);
crypto/openssh/nchan.c
159
switch (c->ostate) {
crypto/openssh/nchan.c
161
chan_shutdown_write(ssh, c);
crypto/openssh/nchan.c
162
chan_set_ostate(c, CHAN_OUTPUT_CLOSED);
crypto/openssh/nchan.c
166
c->self, c->ostate);
crypto/openssh/nchan.c
172
chan_rcvd_eow(struct ssh *ssh, Channel *c)
crypto/openssh/nchan.c
174
debug2("channel %d: rcvd eow", c->self);
crypto/openssh/nchan.c
175
switch (c->istate) {
crypto/openssh/nchan.c
177
chan_shutdown_read(ssh, c);
crypto/openssh/nchan.c
178
chan_set_istate(c, CHAN_INPUT_CLOSED);
crypto/openssh/nchan.c
184
chan_send_eof2(struct ssh *ssh, Channel *c)
crypto/openssh/nchan.c
188
debug2("channel %d: send eof", c->self);
crypto/openssh/nchan.c
189
switch (c->istate) {
crypto/openssh/nchan.c
191
if (!c->have_remote_id)
crypto/openssh/nchan.c
192
fatal_f("channel %d: no remote_id", c->self);
crypto/openssh/nchan.c
194
(r = sshpkt_put_u32(ssh, c->remote_id)) != 0 ||
crypto/openssh/nchan.c
197
c->flags |= CHAN_EOF_SENT;
crypto/openssh/nchan.c
201
c->self, c->istate);
crypto/openssh/nchan.c
207
chan_send_close2(struct ssh *ssh, Channel *c)
crypto/openssh/nchan.c
211
debug2("channel %d: send_close2", c->self);
crypto/openssh/nchan.c
212
if (c->ostate != CHAN_OUTPUT_CLOSED ||
crypto/openssh/nchan.c
213
c->istate != CHAN_INPUT_CLOSED) {
crypto/openssh/nchan.c
215
c->self, c->istate, c->ostate);
crypto/openssh/nchan.c
216
} else if (c->flags & CHAN_CLOSE_SENT) {
crypto/openssh/nchan.c
217
error("channel %d: already sent close", c->self);
crypto/openssh/nchan.c
219
if (!c->have_remote_id)
crypto/openssh/nchan.c
220
fatal_f("channel %d: no remote_id", c->self);
crypto/openssh/nchan.c
221
debug2("channel %d: send close for remote id %u", c->self,
crypto/openssh/nchan.c
222
c->remote_id);
crypto/openssh/nchan.c
224
(r = sshpkt_put_u32(ssh, c->remote_id)) != 0 ||
crypto/openssh/nchan.c
227
c->flags |= CHAN_CLOSE_SENT;
crypto/openssh/nchan.c
232
chan_send_eow2(struct ssh *ssh, Channel *c)
crypto/openssh/nchan.c
236
debug2("channel %d: send eow", c->self);
crypto/openssh/nchan.c
237
if (c->ostate == CHAN_OUTPUT_CLOSED) {
crypto/openssh/nchan.c
239
c->self);
crypto/openssh/nchan.c
244
if (!c->have_remote_id)
crypto/openssh/nchan.c
245
fatal_f("channel %d: no remote_id", c->self);
crypto/openssh/nchan.c
247
(r = sshpkt_put_u32(ssh, c->remote_id)) != 0 ||
crypto/openssh/nchan.c
257
chan_rcvd_ieof(struct ssh *ssh, Channel *c)
crypto/openssh/nchan.c
259
debug2("channel %d: rcvd eof", c->self);
crypto/openssh/nchan.c
260
c->flags |= CHAN_EOF_RCVD;
crypto/openssh/nchan.c
261
if (c->ostate == CHAN_OUTPUT_OPEN)
crypto/openssh/nchan.c
262
chan_set_ostate(c, CHAN_OUTPUT_WAIT_DRAIN);
crypto/openssh/nchan.c
263
if (c->ostate == CHAN_OUTPUT_WAIT_DRAIN &&
crypto/openssh/nchan.c
264
sshbuf_len(c->output) == 0 &&
crypto/openssh/nchan.c
265
!CHANNEL_EFD_OUTPUT_ACTIVE(c))
crypto/openssh/nchan.c
266
chan_obuf_empty(ssh, c);
crypto/openssh/nchan.c
270
chan_rcvd_oclose(struct ssh *ssh, Channel *c)
crypto/openssh/nchan.c
272
debug2("channel %d: rcvd close", c->self);
crypto/openssh/nchan.c
273
if (!(c->flags & CHAN_LOCAL)) {
crypto/openssh/nchan.c
274
if (c->flags & CHAN_CLOSE_RCVD)
crypto/openssh/nchan.c
276
c->self);
crypto/openssh/nchan.c
277
c->flags |= CHAN_CLOSE_RCVD;
crypto/openssh/nchan.c
279
if (c->type == SSH_CHANNEL_LARVAL) {
crypto/openssh/nchan.c
281
chan_set_ostate(c, CHAN_OUTPUT_CLOSED);
crypto/openssh/nchan.c
282
chan_set_istate(c, CHAN_INPUT_CLOSED);
crypto/openssh/nchan.c
285
switch (c->ostate) {
crypto/openssh/nchan.c
291
chan_set_ostate(c, CHAN_OUTPUT_WAIT_DRAIN);
crypto/openssh/nchan.c
294
switch (c->istate) {
crypto/openssh/nchan.c
296
chan_shutdown_read(ssh, c);
crypto/openssh/nchan.c
297
chan_shutdown_extended_read(ssh, c);
crypto/openssh/nchan.c
298
chan_set_istate(c, CHAN_INPUT_CLOSED);
crypto/openssh/nchan.c
301
if (!(c->flags & CHAN_LOCAL))
crypto/openssh/nchan.c
302
chan_send_eof2(ssh, c);
crypto/openssh/nchan.c
303
chan_shutdown_extended_read(ssh, c);
crypto/openssh/nchan.c
304
chan_set_istate(c, CHAN_INPUT_CLOSED);
crypto/openssh/nchan.c
310
chan_write_failed(struct ssh *ssh, Channel *c)
crypto/openssh/nchan.c
312
debug2("channel %d: write failed", c->self);
crypto/openssh/nchan.c
313
switch (c->ostate) {
crypto/openssh/nchan.c
316
chan_shutdown_write(ssh, c);
crypto/openssh/nchan.c
317
if (strcmp(c->ctype, "session") == 0)
crypto/openssh/nchan.c
318
chan_send_eow2(ssh, c);
crypto/openssh/nchan.c
319
chan_set_ostate(c, CHAN_OUTPUT_CLOSED);
crypto/openssh/nchan.c
323
c->self, c->ostate);
crypto/openssh/nchan.c
329
chan_mark_dead(struct ssh *ssh, Channel *c)
crypto/openssh/nchan.c
331
c->type = SSH_CHANNEL_ZOMBIE;
crypto/openssh/nchan.c
335
chan_is_dead(struct ssh *ssh, Channel *c, int do_send)
crypto/openssh/nchan.c
337
if (c->type == SSH_CHANNEL_ZOMBIE) {
crypto/openssh/nchan.c
338
debug2("channel %d: zombie", c->self);
crypto/openssh/nchan.c
341
if (c->istate != CHAN_INPUT_CLOSED || c->ostate != CHAN_OUTPUT_CLOSED)
crypto/openssh/nchan.c
344
c->extended_usage == CHAN_EXTENDED_WRITE &&
crypto/openssh/nchan.c
345
c->efd != -1 &&
crypto/openssh/nchan.c
346
sshbuf_len(c->extended) > 0) {
crypto/openssh/nchan.c
348
c->self, c->efd, sshbuf_len(c->extended));
crypto/openssh/nchan.c
351
if (c->flags & CHAN_LOCAL) {
crypto/openssh/nchan.c
352
debug2("channel %d: is dead (local)", c->self);
crypto/openssh/nchan.c
355
if (!(c->flags & CHAN_CLOSE_SENT)) {
crypto/openssh/nchan.c
357
chan_send_close2(ssh, c);
crypto/openssh/nchan.c
360
if (c->flags & CHAN_CLOSE_RCVD) {
crypto/openssh/nchan.c
362
c->self);
crypto/openssh/nchan.c
367
if ((c->flags & CHAN_CLOSE_SENT) &&
crypto/openssh/nchan.c
368
(c->flags & CHAN_CLOSE_RCVD)) {
crypto/openssh/nchan.c
369
debug2("channel %d: is dead", c->self);
crypto/openssh/nchan.c
377
chan_shutdown_write(struct ssh *ssh, Channel *c)
crypto/openssh/nchan.c
379
sshbuf_reset(c->output);
crypto/openssh/nchan.c
380
if (c->type == SSH_CHANNEL_LARVAL)
crypto/openssh/nchan.c
384
c->self, c->istate, c->ostate, c->sock, c->wfd, c->efd,
crypto/openssh/nchan.c
385
channel_format_extended_usage(c));
crypto/openssh/nchan.c
386
if (c->sock != -1) {
crypto/openssh/nchan.c
387
if (shutdown(c->sock, SHUT_WR) == -1) {
crypto/openssh/nchan.c
389
"fd %d [i%d o%d]: %.100s", c->self, c->sock,
crypto/openssh/nchan.c
390
c->istate, c->ostate, strerror(errno));
crypto/openssh/nchan.c
393
if (channel_close_fd(ssh, c, &c->wfd) < 0) {
crypto/openssh/nchan.c
395
"fd %d [i%d o%d]: %.100s", c->self, c->wfd,
crypto/openssh/nchan.c
396
c->istate, c->ostate, strerror(errno));
crypto/openssh/nchan.c
402
chan_shutdown_read(struct ssh *ssh, Channel *c)
crypto/openssh/nchan.c
404
if (c->type == SSH_CHANNEL_LARVAL)
crypto/openssh/nchan.c
407
c->self, c->istate, c->ostate, c->sock, c->rfd, c->efd,
crypto/openssh/nchan.c
408
channel_format_extended_usage(c));
crypto/openssh/nchan.c
409
if (c->sock != -1) {
crypto/openssh/nchan.c
415
if (shutdown(c->sock, SHUT_RD) == -1 && errno != ENOTCONN) {
crypto/openssh/nchan.c
417
"fd %d [i%d o%d]: %.100s", c->self, c->sock,
crypto/openssh/nchan.c
418
c->istate, c->ostate, strerror(errno));
crypto/openssh/nchan.c
421
if (channel_close_fd(ssh, c, &c->rfd) < 0) {
crypto/openssh/nchan.c
423
"fd %d [i%d o%d]: %.100s", c->self, c->rfd,
crypto/openssh/nchan.c
424
c->istate, c->ostate, strerror(errno));
crypto/openssh/nchan.c
430
chan_shutdown_extended_read(struct ssh *ssh, Channel *c)
crypto/openssh/nchan.c
432
if (c->type == SSH_CHANNEL_LARVAL || c->efd == -1)
crypto/openssh/nchan.c
434
if (c->extended_usage != CHAN_EXTENDED_READ &&
crypto/openssh/nchan.c
435
c->extended_usage != CHAN_EXTENDED_IGNORE)
crypto/openssh/nchan.c
438
c->self, c->istate, c->ostate, c->sock, c->rfd, c->efd,
crypto/openssh/nchan.c
439
channel_format_extended_usage(c));
crypto/openssh/nchan.c
440
if (channel_close_fd(ssh, c, &c->efd) < 0) {
crypto/openssh/nchan.c
442
"extended fd %d [i%d o%d]: %.100s", c->self, c->efd,
crypto/openssh/nchan.c
443
c->istate, c->ostate, strerror(errno));
crypto/openssh/nchan.c
93
chan_set_istate(Channel *c, u_int next)
crypto/openssh/nchan.c
95
if (c->istate > CHAN_INPUT_CLOSED || next > CHAN_INPUT_CLOSED)
crypto/openssh/nchan.c
96
fatal("chan_set_istate: bad state %d -> %d", c->istate, next);
crypto/openssh/nchan.c
97
debug2("channel %d: input %s -> %s", c->self, istates[c->istate],
crypto/openssh/nchan.c
99
c->istate = next;
crypto/openssh/openbsd-compat/base64.h
53
# define __b64_ntop(a,b,c,d) b64_ntop(a,b,c,d)
crypto/openssh/openbsd-compat/base64.h
60
# define __b64_pton(a,b,c) b64_pton(a,b,c)
crypto/openssh/openbsd-compat/blowfish.c
100
u_int32_t *s = c->S[0];
crypto/openssh/openbsd-compat/blowfish.c
101
u_int32_t *p = c->P;
crypto/openssh/openbsd-compat/blowfish.c
121
Blowfish_initstate(blf_ctx *c)
crypto/openssh/openbsd-compat/blowfish.c
396
*c = initstate;
crypto/openssh/openbsd-compat/blowfish.c
421
Blowfish_expand0state(blf_ctx *c, const u_int8_t *key, u_int16_t keybytes)
crypto/openssh/openbsd-compat/blowfish.c
434
c->P[i] = c->P[i] ^ temp;
crypto/openssh/openbsd-compat/blowfish.c
441
Blowfish_encipher(c, &datal, &datar);
crypto/openssh/openbsd-compat/blowfish.c
443
c->P[i] = datal;
crypto/openssh/openbsd-compat/blowfish.c
444
c->P[i + 1] = datar;
crypto/openssh/openbsd-compat/blowfish.c
449
Blowfish_encipher(c, &datal, &datar);
crypto/openssh/openbsd-compat/blowfish.c
451
c->S[i][k] = datal;
crypto/openssh/openbsd-compat/blowfish.c
452
c->S[i][k + 1] = datar;
crypto/openssh/openbsd-compat/blowfish.c
459
Blowfish_expandstate(blf_ctx *c, const u_int8_t *data, u_int16_t databytes,
crypto/openssh/openbsd-compat/blowfish.c
473
c->P[i] = c->P[i] ^ temp;
crypto/openssh/openbsd-compat/blowfish.c
482
Blowfish_encipher(c, &datal, &datar);
crypto/openssh/openbsd-compat/blowfish.c
484
c->P[i] = datal;
crypto/openssh/openbsd-compat/blowfish.c
485
c->P[i + 1] = datar;
crypto/openssh/openbsd-compat/blowfish.c
492
Blowfish_encipher(c, &datal, &datar);
crypto/openssh/openbsd-compat/blowfish.c
494
c->S[i][k] = datal;
crypto/openssh/openbsd-compat/blowfish.c
495
c->S[i][k + 1] = datar;
crypto/openssh/openbsd-compat/blowfish.c
502
blf_key(blf_ctx *c, const u_int8_t *k, u_int16_t len)
crypto/openssh/openbsd-compat/blowfish.c
505
Blowfish_initstate(c);
crypto/openssh/openbsd-compat/blowfish.c
508
Blowfish_expand0state(c, k, len);
crypto/openssh/openbsd-compat/blowfish.c
512
blf_enc(blf_ctx *c, u_int32_t *data, u_int16_t blocks)
crypto/openssh/openbsd-compat/blowfish.c
519
Blowfish_encipher(c, d, d + 1);
crypto/openssh/openbsd-compat/blowfish.c
525
blf_dec(blf_ctx *c, u_int32_t *data, u_int16_t blocks)
crypto/openssh/openbsd-compat/blowfish.c
532
Blowfish_decipher(c, d, d + 1);
crypto/openssh/openbsd-compat/blowfish.c
538
blf_ecb_encrypt(blf_ctx *c, u_int8_t *data, u_int32_t len)
crypto/openssh/openbsd-compat/blowfish.c
546
Blowfish_encipher(c, &l, &r);
crypto/openssh/openbsd-compat/blowfish.c
560
blf_ecb_decrypt(blf_ctx *c, u_int8_t *data, u_int32_t len)
crypto/openssh/openbsd-compat/blowfish.c
568
Blowfish_decipher(c, &l, &r);
crypto/openssh/openbsd-compat/blowfish.c
582
blf_cbc_encrypt(blf_ctx *c, u_int8_t *iv, u_int8_t *data, u_int32_t len)
crypto/openssh/openbsd-compat/blowfish.c
592
Blowfish_encipher(c, &l, &r);
crypto/openssh/openbsd-compat/blowfish.c
607
blf_cbc_decrypt(blf_ctx *c, u_int8_t *iva, u_int8_t *data, u_int32_t len)
crypto/openssh/openbsd-compat/blowfish.c
618
Blowfish_decipher(c, &l, &r);
crypto/openssh/openbsd-compat/blowfish.c
634
Blowfish_decipher(c, &l, &r);
crypto/openssh/openbsd-compat/blowfish.c
660
blf_ctx c;
crypto/openssh/openbsd-compat/blowfish.c
674
blf_key(&c, (u_int8_t *) key, 5);
crypto/openssh/openbsd-compat/blowfish.c
675
blf_enc(&c, data, 5);
crypto/openssh/openbsd-compat/blowfish.c
676
blf_dec(&c, data, 1);
crypto/openssh/openbsd-compat/blowfish.c
677
blf_dec(&c, data + 2, 4);
crypto/openssh/openbsd-compat/blowfish.c
682
blf_key(&c, (u_int8_t *) key2, strlen(key2));
crypto/openssh/openbsd-compat/blowfish.c
683
blf_enc(&c, data2, 1);
crypto/openssh/openbsd-compat/blowfish.c
686
blf_dec(&c, data2, 1);
crypto/openssh/openbsd-compat/blowfish.c
71
Blowfish_encipher(blf_ctx *c, u_int32_t *xl, u_int32_t *xr)
crypto/openssh/openbsd-compat/blowfish.c
75
u_int32_t *s = c->S[0];
crypto/openssh/openbsd-compat/blowfish.c
76
u_int32_t *p = c->P;
crypto/openssh/openbsd-compat/blowfish.c
96
Blowfish_decipher(blf_ctx *c, u_int32_t *xl, u_int32_t *xr)
crypto/openssh/openbsd-compat/bsd-getline.c
62
int c = fgetc(fp);
crypto/openssh/openbsd-compat/bsd-getline.c
63
if (c == -1) {
crypto/openssh/openbsd-compat/bsd-getline.c
73
*ptr++ = c;
crypto/openssh/openbsd-compat/bsd-getline.c
74
if (c == delimiter) {
crypto/openssh/openbsd-compat/bsd-misc.c
335
isblank(int c)
crypto/openssh/openbsd-compat/bsd-misc.c
337
return (c == ' ' || c == '\t');
crypto/openssh/openbsd-compat/bsd-pselect.c
100
char c;
crypto/openssh/openbsd-compat/bsd-pselect.c
103
while (read(notify_pipe[0], &c, 1) != -1)
crypto/openssh/openbsd-compat/chacha_private.h
122
ctarget = c;
crypto/openssh/openbsd-compat/chacha_private.h
123
c = tmp;
crypto/openssh/openbsd-compat/chacha_private.h
193
U32TO8_LITTLE(c + 0,x0);
crypto/openssh/openbsd-compat/chacha_private.h
194
U32TO8_LITTLE(c + 4,x1);
crypto/openssh/openbsd-compat/chacha_private.h
195
U32TO8_LITTLE(c + 8,x2);
crypto/openssh/openbsd-compat/chacha_private.h
196
U32TO8_LITTLE(c + 12,x3);
crypto/openssh/openbsd-compat/chacha_private.h
197
U32TO8_LITTLE(c + 16,x4);
crypto/openssh/openbsd-compat/chacha_private.h
198
U32TO8_LITTLE(c + 20,x5);
crypto/openssh/openbsd-compat/chacha_private.h
199
U32TO8_LITTLE(c + 24,x6);
crypto/openssh/openbsd-compat/chacha_private.h
200
U32TO8_LITTLE(c + 28,x7);
crypto/openssh/openbsd-compat/chacha_private.h
201
U32TO8_LITTLE(c + 32,x8);
crypto/openssh/openbsd-compat/chacha_private.h
202
U32TO8_LITTLE(c + 36,x9);
crypto/openssh/openbsd-compat/chacha_private.h
203
U32TO8_LITTLE(c + 40,x10);
crypto/openssh/openbsd-compat/chacha_private.h
204
U32TO8_LITTLE(c + 44,x11);
crypto/openssh/openbsd-compat/chacha_private.h
205
U32TO8_LITTLE(c + 48,x12);
crypto/openssh/openbsd-compat/chacha_private.h
206
U32TO8_LITTLE(c + 52,x13);
crypto/openssh/openbsd-compat/chacha_private.h
207
U32TO8_LITTLE(c + 56,x14);
crypto/openssh/openbsd-compat/chacha_private.h
208
U32TO8_LITTLE(c + 60,x15);
crypto/openssh/openbsd-compat/chacha_private.h
212
for (i = 0;i < bytes;++i) ctarget[i] = c[i];
crypto/openssh/openbsd-compat/chacha_private.h
219
c += 64;
crypto/openssh/openbsd-compat/chacha_private.h
42
#define ROTATE(v,c) (ROTL32(v,c))
crypto/openssh/openbsd-compat/chacha_private.h
47
#define QUARTERROUND(a,b,c,d) \
crypto/openssh/openbsd-compat/chacha_private.h
49
c = PLUS(c,d); b = ROTATE(XOR(b,c),12); \
crypto/openssh/openbsd-compat/chacha_private.h
51
c = PLUS(c,d); b = ROTATE(XOR(b,c), 7);
crypto/openssh/openbsd-compat/chacha_private.h
91
chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes)
crypto/openssh/openbsd-compat/fake-rfc2553.h
154
#define getaddrinfo(a,b,c,d) (ssh_getaddrinfo(a,b,c,d))
crypto/openssh/openbsd-compat/fake-rfc2553.h
170
#define getnameinfo(a,b,c,d,e,f,g) (ssh_getnameinfo(a,b,c,d,e,f,g))
crypto/openssh/openbsd-compat/getopt_long.c
135
int c;
crypto/openssh/openbsd-compat/getopt_long.c
137
c = a % b;
crypto/openssh/openbsd-compat/getopt_long.c
138
while (c != 0) {
crypto/openssh/openbsd-compat/getopt_long.c
140
b = c;
crypto/openssh/openbsd-compat/getopt_long.c
141
c = a % b;
crypto/openssh/openbsd-compat/getrrsetbyname.c
68
#define _THREAD_PRIVATE(a,b,c) (c)
crypto/openssh/openbsd-compat/glob.c
129
#define CHAR(c) ((Char)((c)&M_ASCII))
crypto/openssh/openbsd-compat/glob.c
130
#define META(c) ((Char)((c)|M_QUOTE))
crypto/openssh/openbsd-compat/glob.c
138
#define ismeta(c) (((c)&M_QUOTE) != 0)
crypto/openssh/openbsd-compat/glob.c
186
int c;
crypto/openssh/openbsd-compat/glob.c
212
while (bufnext < bufend && (c = *patnext++) != EOS)
crypto/openssh/openbsd-compat/glob.c
213
*bufnext++ = c;
crypto/openssh/openbsd-compat/glob.c
216
while (bufnext < bufend && (c = *patnext++) != EOS)
crypto/openssh/openbsd-compat/glob.c
217
if (c == QUOTE) {
crypto/openssh/openbsd-compat/glob.c
218
if ((c = *patnext++) == EOS) {
crypto/openssh/openbsd-compat/glob.c
219
c = QUOTE;
crypto/openssh/openbsd-compat/glob.c
222
*bufnext++ = c | M_PROTECT;
crypto/openssh/openbsd-compat/glob.c
224
*bufnext++ = c;
crypto/openssh/openbsd-compat/glob.c
478
int c, err;
crypto/openssh/openbsd-compat/glob.c
487
while ((c = *qpatnext++) != EOS) {
crypto/openssh/openbsd-compat/glob.c
488
switch (c) {
crypto/openssh/openbsd-compat/glob.c
490
c = *qpatnext;
crypto/openssh/openbsd-compat/glob.c
491
if (c == NOT)
crypto/openssh/openbsd-compat/glob.c
496
if (c == NOT)
crypto/openssh/openbsd-compat/glob.c
501
if (c == NOT)
crypto/openssh/openbsd-compat/glob.c
503
c = *qpatnext++;
crypto/openssh/openbsd-compat/glob.c
505
if (c == LBRACKET && *qpatnext == ':') {
crypto/openssh/openbsd-compat/glob.c
511
c = *qpatnext++;
crypto/openssh/openbsd-compat/glob.c
512
} while (c == LBRACKET && *qpatnext == ':');
crypto/openssh/openbsd-compat/glob.c
516
if (c == RBRACKET)
crypto/openssh/openbsd-compat/glob.c
519
*bufnext++ = CHAR(c);
crypto/openssh/openbsd-compat/glob.c
521
(c = qpatnext[1]) != RBRACKET) {
crypto/openssh/openbsd-compat/glob.c
523
*bufnext++ = CHAR(c);
crypto/openssh/openbsd-compat/glob.c
526
} while ((c = *qpatnext++) != RBRACKET);
crypto/openssh/openbsd-compat/glob.c
543
*bufnext++ = CHAR(c);
crypto/openssh/openbsd-compat/glob.c
909
Char c, k;
crypto/openssh/openbsd-compat/glob.c
915
c = *pat++;
crypto/openssh/openbsd-compat/glob.c
916
switch (c & M_MASK) {
crypto/openssh/openbsd-compat/glob.c
937
while (((c = *pat++) & M_MASK) != M_END) {
crypto/openssh/openbsd-compat/glob.c
938
if ((c & M_MASK) == M_CLASS) {
crypto/openssh/openbsd-compat/glob.c
946
if (c <= k && k <= pat[1])
crypto/openssh/openbsd-compat/glob.c
949
} else if (c == k)
crypto/openssh/openbsd-compat/glob.c
956
if (*name++ != c)
crypto/openssh/openbsd-compat/glob.h
52
# define glob(a, b, c, d) _ssh__compat_glob(a, b, c, d)
crypto/openssh/openbsd-compat/inet_aton.c
102
if (!isdigit(c))
crypto/openssh/openbsd-compat/inet_aton.c
105
if (c == '0') {
crypto/openssh/openbsd-compat/inet_aton.c
106
c = *++cp;
crypto/openssh/openbsd-compat/inet_aton.c
107
if (c == 'x' || c == 'X')
crypto/openssh/openbsd-compat/inet_aton.c
108
base = 16, c = *++cp;
crypto/openssh/openbsd-compat/inet_aton.c
113
if (isascii(c) && isdigit(c)) {
crypto/openssh/openbsd-compat/inet_aton.c
114
val = (val * base) + (c - '0');
crypto/openssh/openbsd-compat/inet_aton.c
115
c = *++cp;
crypto/openssh/openbsd-compat/inet_aton.c
116
} else if (base == 16 && isascii(c) && isxdigit(c)) {
crypto/openssh/openbsd-compat/inet_aton.c
118
(c + 10 - (islower(c) ? 'a' : 'A'));
crypto/openssh/openbsd-compat/inet_aton.c
119
c = *++cp;
crypto/openssh/openbsd-compat/inet_aton.c
123
if (c == '.') {
crypto/openssh/openbsd-compat/inet_aton.c
133
c = *++cp;
crypto/openssh/openbsd-compat/inet_aton.c
140
if (c != '\0' && (!isascii(c) || !isspace(c)))
crypto/openssh/openbsd-compat/inet_aton.c
91
char c;
crypto/openssh/openbsd-compat/inet_aton.c
95
c = *cp;
crypto/openssh/openbsd-compat/md5.c
159
u_int32_t a, b, c, d, in[MD5_BLOCK_LENGTH / 4];
crypto/openssh/openbsd-compat/md5.c
175
c = state[2];
crypto/openssh/openbsd-compat/md5.c
178
MD5STEP(F1, a, b, c, d, in[ 0] + 0xd76aa478, 7);
crypto/openssh/openbsd-compat/md5.c
179
MD5STEP(F1, d, a, b, c, in[ 1] + 0xe8c7b756, 12);
crypto/openssh/openbsd-compat/md5.c
180
MD5STEP(F1, c, d, a, b, in[ 2] + 0x242070db, 17);
crypto/openssh/openbsd-compat/md5.c
181
MD5STEP(F1, b, c, d, a, in[ 3] + 0xc1bdceee, 22);
crypto/openssh/openbsd-compat/md5.c
182
MD5STEP(F1, a, b, c, d, in[ 4] + 0xf57c0faf, 7);
crypto/openssh/openbsd-compat/md5.c
183
MD5STEP(F1, d, a, b, c, in[ 5] + 0x4787c62a, 12);
crypto/openssh/openbsd-compat/md5.c
184
MD5STEP(F1, c, d, a, b, in[ 6] + 0xa8304613, 17);
crypto/openssh/openbsd-compat/md5.c
185
MD5STEP(F1, b, c, d, a, in[ 7] + 0xfd469501, 22);
crypto/openssh/openbsd-compat/md5.c
186
MD5STEP(F1, a, b, c, d, in[ 8] + 0x698098d8, 7);
crypto/openssh/openbsd-compat/md5.c
187
MD5STEP(F1, d, a, b, c, in[ 9] + 0x8b44f7af, 12);
crypto/openssh/openbsd-compat/md5.c
188
MD5STEP(F1, c, d, a, b, in[10] + 0xffff5bb1, 17);
crypto/openssh/openbsd-compat/md5.c
189
MD5STEP(F1, b, c, d, a, in[11] + 0x895cd7be, 22);
crypto/openssh/openbsd-compat/md5.c
190
MD5STEP(F1, a, b, c, d, in[12] + 0x6b901122, 7);
crypto/openssh/openbsd-compat/md5.c
191
MD5STEP(F1, d, a, b, c, in[13] + 0xfd987193, 12);
crypto/openssh/openbsd-compat/md5.c
192
MD5STEP(F1, c, d, a, b, in[14] + 0xa679438e, 17);
crypto/openssh/openbsd-compat/md5.c
193
MD5STEP(F1, b, c, d, a, in[15] + 0x49b40821, 22);
crypto/openssh/openbsd-compat/md5.c
195
MD5STEP(F2, a, b, c, d, in[ 1] + 0xf61e2562, 5);
crypto/openssh/openbsd-compat/md5.c
196
MD5STEP(F2, d, a, b, c, in[ 6] + 0xc040b340, 9);
crypto/openssh/openbsd-compat/md5.c
197
MD5STEP(F2, c, d, a, b, in[11] + 0x265e5a51, 14);
crypto/openssh/openbsd-compat/md5.c
198
MD5STEP(F2, b, c, d, a, in[ 0] + 0xe9b6c7aa, 20);
crypto/openssh/openbsd-compat/md5.c
199
MD5STEP(F2, a, b, c, d, in[ 5] + 0xd62f105d, 5);
crypto/openssh/openbsd-compat/md5.c
200
MD5STEP(F2, d, a, b, c, in[10] + 0x02441453, 9);
crypto/openssh/openbsd-compat/md5.c
201
MD5STEP(F2, c, d, a, b, in[15] + 0xd8a1e681, 14);
crypto/openssh/openbsd-compat/md5.c
202
MD5STEP(F2, b, c, d, a, in[ 4] + 0xe7d3fbc8, 20);
crypto/openssh/openbsd-compat/md5.c
203
MD5STEP(F2, a, b, c, d, in[ 9] + 0x21e1cde6, 5);
crypto/openssh/openbsd-compat/md5.c
204
MD5STEP(F2, d, a, b, c, in[14] + 0xc33707d6, 9);
crypto/openssh/openbsd-compat/md5.c
205
MD5STEP(F2, c, d, a, b, in[ 3] + 0xf4d50d87, 14);
crypto/openssh/openbsd-compat/md5.c
206
MD5STEP(F2, b, c, d, a, in[ 8] + 0x455a14ed, 20);
crypto/openssh/openbsd-compat/md5.c
207
MD5STEP(F2, a, b, c, d, in[13] + 0xa9e3e905, 5);
crypto/openssh/openbsd-compat/md5.c
208
MD5STEP(F2, d, a, b, c, in[ 2] + 0xfcefa3f8, 9);
crypto/openssh/openbsd-compat/md5.c
209
MD5STEP(F2, c, d, a, b, in[ 7] + 0x676f02d9, 14);
crypto/openssh/openbsd-compat/md5.c
210
MD5STEP(F2, b, c, d, a, in[12] + 0x8d2a4c8a, 20);
crypto/openssh/openbsd-compat/md5.c
212
MD5STEP(F3, a, b, c, d, in[ 5] + 0xfffa3942, 4);
crypto/openssh/openbsd-compat/md5.c
213
MD5STEP(F3, d, a, b, c, in[ 8] + 0x8771f681, 11);
crypto/openssh/openbsd-compat/md5.c
214
MD5STEP(F3, c, d, a, b, in[11] + 0x6d9d6122, 16);
crypto/openssh/openbsd-compat/md5.c
215
MD5STEP(F3, b, c, d, a, in[14] + 0xfde5380c, 23);
crypto/openssh/openbsd-compat/md5.c
216
MD5STEP(F3, a, b, c, d, in[ 1] + 0xa4beea44, 4);
crypto/openssh/openbsd-compat/md5.c
217
MD5STEP(F3, d, a, b, c, in[ 4] + 0x4bdecfa9, 11);
crypto/openssh/openbsd-compat/md5.c
218
MD5STEP(F3, c, d, a, b, in[ 7] + 0xf6bb4b60, 16);
crypto/openssh/openbsd-compat/md5.c
219
MD5STEP(F3, b, c, d, a, in[10] + 0xbebfbc70, 23);
crypto/openssh/openbsd-compat/md5.c
220
MD5STEP(F3, a, b, c, d, in[13] + 0x289b7ec6, 4);
crypto/openssh/openbsd-compat/md5.c
221
MD5STEP(F3, d, a, b, c, in[ 0] + 0xeaa127fa, 11);
crypto/openssh/openbsd-compat/md5.c
222
MD5STEP(F3, c, d, a, b, in[ 3] + 0xd4ef3085, 16);
crypto/openssh/openbsd-compat/md5.c
223
MD5STEP(F3, b, c, d, a, in[ 6] + 0x04881d05, 23);
crypto/openssh/openbsd-compat/md5.c
224
MD5STEP(F3, a, b, c, d, in[ 9] + 0xd9d4d039, 4);
crypto/openssh/openbsd-compat/md5.c
225
MD5STEP(F3, d, a, b, c, in[12] + 0xe6db99e5, 11);
crypto/openssh/openbsd-compat/md5.c
226
MD5STEP(F3, c, d, a, b, in[15] + 0x1fa27cf8, 16);
crypto/openssh/openbsd-compat/md5.c
227
MD5STEP(F3, b, c, d, a, in[2 ] + 0xc4ac5665, 23);
crypto/openssh/openbsd-compat/md5.c
229
MD5STEP(F4, a, b, c, d, in[ 0] + 0xf4292244, 6);
crypto/openssh/openbsd-compat/md5.c
230
MD5STEP(F4, d, a, b, c, in[7 ] + 0x432aff97, 10);
crypto/openssh/openbsd-compat/md5.c
231
MD5STEP(F4, c, d, a, b, in[14] + 0xab9423a7, 15);
crypto/openssh/openbsd-compat/md5.c
232
MD5STEP(F4, b, c, d, a, in[5 ] + 0xfc93a039, 21);
crypto/openssh/openbsd-compat/md5.c
233
MD5STEP(F4, a, b, c, d, in[12] + 0x655b59c3, 6);
crypto/openssh/openbsd-compat/md5.c
234
MD5STEP(F4, d, a, b, c, in[3 ] + 0x8f0ccc92, 10);
crypto/openssh/openbsd-compat/md5.c
235
MD5STEP(F4, c, d, a, b, in[10] + 0xffeff47d, 15);
crypto/openssh/openbsd-compat/md5.c
236
MD5STEP(F4, b, c, d, a, in[1 ] + 0x85845dd1, 21);
crypto/openssh/openbsd-compat/md5.c
237
MD5STEP(F4, a, b, c, d, in[8 ] + 0x6fa87e4f, 6);
crypto/openssh/openbsd-compat/md5.c
238
MD5STEP(F4, d, a, b, c, in[15] + 0xfe2ce6e0, 10);
crypto/openssh/openbsd-compat/md5.c
239
MD5STEP(F4, c, d, a, b, in[6 ] + 0xa3014314, 15);
crypto/openssh/openbsd-compat/md5.c
240
MD5STEP(F4, b, c, d, a, in[13] + 0x4e0811a1, 21);
crypto/openssh/openbsd-compat/md5.c
241
MD5STEP(F4, a, b, c, d, in[4 ] + 0xf7537e82, 6);
crypto/openssh/openbsd-compat/md5.c
242
MD5STEP(F4, d, a, b, c, in[11] + 0xbd3af235, 10);
crypto/openssh/openbsd-compat/md5.c
243
MD5STEP(F4, c, d, a, b, in[2 ] + 0x2ad7d2bb, 15);
crypto/openssh/openbsd-compat/md5.c
244
MD5STEP(F4, b, c, d, a, in[9 ] + 0xeb86d391, 21);
crypto/openssh/openbsd-compat/md5.c
248
state[2] += c;
crypto/openssh/openbsd-compat/port-aix.h
114
# define getnameinfo(a,b,c,d,e,f,g) (sshaix_getnameinfo(a,b,c,d,e,f,g))
crypto/openssh/openbsd-compat/port-net.c
309
sys_tun_infilter(struct ssh *ssh, struct Channel *c, char *buf, int _len)
crypto/openssh/openbsd-compat/port-net.c
347
if ((r = sshbuf_put_string(c->input, ptr, len)) != 0)
crypto/openssh/openbsd-compat/port-net.c
353
sys_tun_outfilter(struct ssh *ssh, struct Channel *c,
crypto/openssh/openbsd-compat/port-net.c
361
if ((r = sshbuf_get_string(c->output, data, dlen)) != 0)
crypto/openssh/openbsd-compat/sha1.c
102
a = b = c = d = e = 0;
crypto/openssh/openbsd-compat/sha1.c
49
u_int8_t c[64];
crypto/openssh/openbsd-compat/sha1.c
59
u_int32_t a, b, c, d, e;
crypto/openssh/openbsd-compat/sha1.c
68
c = state[2];
crypto/openssh/openbsd-compat/sha1.c
73
R0(a,b,c,d,e, 0); R0(e,a,b,c,d, 1); R0(d,e,a,b,c, 2); R0(c,d,e,a,b, 3);
crypto/openssh/openbsd-compat/sha1.c
74
R0(b,c,d,e,a, 4); R0(a,b,c,d,e, 5); R0(e,a,b,c,d, 6); R0(d,e,a,b,c, 7);
crypto/openssh/openbsd-compat/sha1.c
75
R0(c,d,e,a,b, 8); R0(b,c,d,e,a, 9); R0(a,b,c,d,e,10); R0(e,a,b,c,d,11);
crypto/openssh/openbsd-compat/sha1.c
76
R0(d,e,a,b,c,12); R0(c,d,e,a,b,13); R0(b,c,d,e,a,14); R0(a,b,c,d,e,15);
crypto/openssh/openbsd-compat/sha1.c
77
R1(e,a,b,c,d,16); R1(d,e,a,b,c,17); R1(c,d,e,a,b,18); R1(b,c,d,e,a,19);
crypto/openssh/openbsd-compat/sha1.c
78
R2(a,b,c,d,e,20); R2(e,a,b,c,d,21); R2(d,e,a,b,c,22); R2(c,d,e,a,b,23);
crypto/openssh/openbsd-compat/sha1.c
79
R2(b,c,d,e,a,24); R2(a,b,c,d,e,25); R2(e,a,b,c,d,26); R2(d,e,a,b,c,27);
crypto/openssh/openbsd-compat/sha1.c
80
R2(c,d,e,a,b,28); R2(b,c,d,e,a,29); R2(a,b,c,d,e,30); R2(e,a,b,c,d,31);
crypto/openssh/openbsd-compat/sha1.c
81
R2(d,e,a,b,c,32); R2(c,d,e,a,b,33); R2(b,c,d,e,a,34); R2(a,b,c,d,e,35);
crypto/openssh/openbsd-compat/sha1.c
82
R2(e,a,b,c,d,36); R2(d,e,a,b,c,37); R2(c,d,e,a,b,38); R2(b,c,d,e,a,39);
crypto/openssh/openbsd-compat/sha1.c
83
R3(a,b,c,d,e,40); R3(e,a,b,c,d,41); R3(d,e,a,b,c,42); R3(c,d,e,a,b,43);
crypto/openssh/openbsd-compat/sha1.c
84
R3(b,c,d,e,a,44); R3(a,b,c,d,e,45); R3(e,a,b,c,d,46); R3(d,e,a,b,c,47);
crypto/openssh/openbsd-compat/sha1.c
85
R3(c,d,e,a,b,48); R3(b,c,d,e,a,49); R3(a,b,c,d,e,50); R3(e,a,b,c,d,51);
crypto/openssh/openbsd-compat/sha1.c
86
R3(d,e,a,b,c,52); R3(c,d,e,a,b,53); R3(b,c,d,e,a,54); R3(a,b,c,d,e,55);
crypto/openssh/openbsd-compat/sha1.c
87
R3(e,a,b,c,d,56); R3(d,e,a,b,c,57); R3(c,d,e,a,b,58); R3(b,c,d,e,a,59);
crypto/openssh/openbsd-compat/sha1.c
88
R4(a,b,c,d,e,60); R4(e,a,b,c,d,61); R4(d,e,a,b,c,62); R4(c,d,e,a,b,63);
crypto/openssh/openbsd-compat/sha1.c
89
R4(b,c,d,e,a,64); R4(a,b,c,d,e,65); R4(e,a,b,c,d,66); R4(d,e,a,b,c,67);
crypto/openssh/openbsd-compat/sha1.c
90
R4(c,d,e,a,b,68); R4(b,c,d,e,a,69); R4(a,b,c,d,e,70); R4(e,a,b,c,d,71);
crypto/openssh/openbsd-compat/sha1.c
91
R4(d,e,a,b,c,72); R4(c,d,e,a,b,73); R4(b,c,d,e,a,74); R4(a,b,c,d,e,75);
crypto/openssh/openbsd-compat/sha1.c
92
R4(e,a,b,c,d,76); R4(d,e,a,b,c,77); R4(c,d,e,a,b,78); R4(b,c,d,e,a,79);
crypto/openssh/openbsd-compat/sha1.c
97
state[2] += c;
crypto/openssh/openbsd-compat/sha2.c
367
#define ROUND256_0_TO_15(a,b,c,d,e,f,g,h) do { \
crypto/openssh/openbsd-compat/sha2.c
372
(h) = T1 + Sigma0_256((a)) + Maj((a), (b), (c)); \
crypto/openssh/openbsd-compat/sha2.c
376
#define ROUND256(a,b,c,d,e,f,g,h) do { \
crypto/openssh/openbsd-compat/sha2.c
384
(h) = T1 + Sigma0_256((a)) + Maj((a), (b), (c)); \
crypto/openssh/openbsd-compat/sha2.c
391
u_int32_t a, b, c, d, e, f, g, h, s0, s1;
crypto/openssh/openbsd-compat/sha2.c
398
c = state[2];
crypto/openssh/openbsd-compat/sha2.c
408
ROUND256_0_TO_15(a,b,c,d,e,f,g,h);
crypto/openssh/openbsd-compat/sha2.c
409
ROUND256_0_TO_15(h,a,b,c,d,e,f,g);
crypto/openssh/openbsd-compat/sha2.c
410
ROUND256_0_TO_15(g,h,a,b,c,d,e,f);
crypto/openssh/openbsd-compat/sha2.c
411
ROUND256_0_TO_15(f,g,h,a,b,c,d,e);
crypto/openssh/openbsd-compat/sha2.c
412
ROUND256_0_TO_15(e,f,g,h,a,b,c,d);
crypto/openssh/openbsd-compat/sha2.c
413
ROUND256_0_TO_15(d,e,f,g,h,a,b,c);
crypto/openssh/openbsd-compat/sha2.c
414
ROUND256_0_TO_15(c,d,e,f,g,h,a,b);
crypto/openssh/openbsd-compat/sha2.c
415
ROUND256_0_TO_15(b,c,d,e,f,g,h,a);
crypto/openssh/openbsd-compat/sha2.c
420
ROUND256(a,b,c,d,e,f,g,h);
crypto/openssh/openbsd-compat/sha2.c
421
ROUND256(h,a,b,c,d,e,f,g);
crypto/openssh/openbsd-compat/sha2.c
422
ROUND256(g,h,a,b,c,d,e,f);
crypto/openssh/openbsd-compat/sha2.c
423
ROUND256(f,g,h,a,b,c,d,e);
crypto/openssh/openbsd-compat/sha2.c
424
ROUND256(e,f,g,h,a,b,c,d);
crypto/openssh/openbsd-compat/sha2.c
425
ROUND256(d,e,f,g,h,a,b,c);
crypto/openssh/openbsd-compat/sha2.c
426
ROUND256(c,d,e,f,g,h,a,b);
crypto/openssh/openbsd-compat/sha2.c
427
ROUND256(b,c,d,e,f,g,h,a);
crypto/openssh/openbsd-compat/sha2.c
433
state[2] += c;
crypto/openssh/openbsd-compat/sha2.c
441
a = b = c = d = e = f = g = h = T1 = 0;
crypto/openssh/openbsd-compat/sha2.c
449
u_int32_t a, b, c, d, e, f, g, h, s0, s1;
crypto/openssh/openbsd-compat/sha2.c
456
c = state[2];
crypto/openssh/openbsd-compat/sha2.c
469
T2 = Sigma0_256(a) + Maj(a, b, c);
crypto/openssh/openbsd-compat/sha2.c
474
d = c;
crypto/openssh/openbsd-compat/sha2.c
475
c = b;
crypto/openssh/openbsd-compat/sha2.c
492
T2 = Sigma0_256(a) + Maj(a, b, c);
crypto/openssh/openbsd-compat/sha2.c
497
d = c;
crypto/openssh/openbsd-compat/sha2.c
498
c = b;
crypto/openssh/openbsd-compat/sha2.c
508
state[2] += c;
crypto/openssh/openbsd-compat/sha2.c
516
a = b = c = d = e = f = g = h = T1 = T2 = 0;
crypto/openssh/openbsd-compat/sha2.c
647
#define ROUND512_0_TO_15(a,b,c,d,e,f,g,h) do { \
crypto/openssh/openbsd-compat/sha2.c
652
(h) = T1 + Sigma0_512((a)) + Maj((a), (b), (c)); \
crypto/openssh/openbsd-compat/sha2.c
657
#define ROUND512(a,b,c,d,e,f,g,h) do { \
crypto/openssh/openbsd-compat/sha2.c
665
(h) = T1 + Sigma0_512((a)) + Maj((a), (b), (c)); \
crypto/openssh/openbsd-compat/sha2.c
672
u_int64_t a, b, c, d, e, f, g, h, s0, s1;
crypto/openssh/openbsd-compat/sha2.c
679
c = state[2];
crypto/openssh/openbsd-compat/sha2.c
689
ROUND512_0_TO_15(a,b,c,d,e,f,g,h);
crypto/openssh/openbsd-compat/sha2.c
690
ROUND512_0_TO_15(h,a,b,c,d,e,f,g);
crypto/openssh/openbsd-compat/sha2.c
691
ROUND512_0_TO_15(g,h,a,b,c,d,e,f);
crypto/openssh/openbsd-compat/sha2.c
692
ROUND512_0_TO_15(f,g,h,a,b,c,d,e);
crypto/openssh/openbsd-compat/sha2.c
693
ROUND512_0_TO_15(e,f,g,h,a,b,c,d);
crypto/openssh/openbsd-compat/sha2.c
694
ROUND512_0_TO_15(d,e,f,g,h,a,b,c);
crypto/openssh/openbsd-compat/sha2.c
695
ROUND512_0_TO_15(c,d,e,f,g,h,a,b);
crypto/openssh/openbsd-compat/sha2.c
696
ROUND512_0_TO_15(b,c,d,e,f,g,h,a);
crypto/openssh/openbsd-compat/sha2.c
701
ROUND512(a,b,c,d,e,f,g,h);
crypto/openssh/openbsd-compat/sha2.c
702
ROUND512(h,a,b,c,d,e,f,g);
crypto/openssh/openbsd-compat/sha2.c
703
ROUND512(g,h,a,b,c,d,e,f);
crypto/openssh/openbsd-compat/sha2.c
704
ROUND512(f,g,h,a,b,c,d,e);
crypto/openssh/openbsd-compat/sha2.c
705
ROUND512(e,f,g,h,a,b,c,d);
crypto/openssh/openbsd-compat/sha2.c
706
ROUND512(d,e,f,g,h,a,b,c);
crypto/openssh/openbsd-compat/sha2.c
707
ROUND512(c,d,e,f,g,h,a,b);
crypto/openssh/openbsd-compat/sha2.c
708
ROUND512(b,c,d,e,f,g,h,a);
crypto/openssh/openbsd-compat/sha2.c
714
state[2] += c;
crypto/openssh/openbsd-compat/sha2.c
722
a = b = c = d = e = f = g = h = T1 = 0;
crypto/openssh/openbsd-compat/sha2.c
730
u_int64_t a, b, c, d, e, f, g, h, s0, s1;
crypto/openssh/openbsd-compat/sha2.c
737
c = state[2];
crypto/openssh/openbsd-compat/sha2.c
750
T2 = Sigma0_512(a) + Maj(a, b, c);
crypto/openssh/openbsd-compat/sha2.c
755
d = c;
crypto/openssh/openbsd-compat/sha2.c
756
c = b;
crypto/openssh/openbsd-compat/sha2.c
773
T2 = Sigma0_512(a) + Maj(a, b, c);
crypto/openssh/openbsd-compat/sha2.c
778
d = c;
crypto/openssh/openbsd-compat/sha2.c
779
c = b;
crypto/openssh/openbsd-compat/sha2.c
789
state[2] += c;
crypto/openssh/openbsd-compat/sha2.c
797
a = b = c = d = e = f = g = h = T1 = T2 = 0;
crypto/openssh/openbsd-compat/strcasestr.c
51
char c, sc;
crypto/openssh/openbsd-compat/strcasestr.c
54
if ((c = *find++) != 0) {
crypto/openssh/openbsd-compat/strcasestr.c
55
c = (char)tolower((unsigned char)c);
crypto/openssh/openbsd-compat/strcasestr.c
61
} while ((char)tolower((unsigned char)sc) != c);
crypto/openssh/openbsd-compat/strptime.c
101
if (c != *bp++)
crypto/openssh/openbsd-compat/strptime.c
69
unsigned char c;
crypto/openssh/openbsd-compat/strptime.c
81
while ((c = *fmt) != '\0') {
crypto/openssh/openbsd-compat/strptime.c
86
if (isspace(c)) {
crypto/openssh/openbsd-compat/strptime.c
94
if ((c = *fmt++) != '%')
crypto/openssh/openbsd-compat/strptime.c
98
again: switch (c = *fmt++) {
crypto/openssh/openbsd-compat/strsep.c
57
int c, sc;
crypto/openssh/openbsd-compat/strsep.c
63
c = *s++;
crypto/openssh/openbsd-compat/strsep.c
66
if ((sc = *spanp++) == c) {
crypto/openssh/openbsd-compat/strsep.c
67
if (c == 0)
crypto/openssh/openbsd-compat/strtoll.c
111
for (acc = 0, any = 0;; c = (unsigned char) *s++) {
crypto/openssh/openbsd-compat/strtoll.c
112
if (isdigit(c))
crypto/openssh/openbsd-compat/strtoll.c
113
c -= '0';
crypto/openssh/openbsd-compat/strtoll.c
114
else if (isalpha(c))
crypto/openssh/openbsd-compat/strtoll.c
115
c -= isupper(c) ? 'A' - 10 : 'a' - 10;
crypto/openssh/openbsd-compat/strtoll.c
118
if (c >= base)
crypto/openssh/openbsd-compat/strtoll.c
123
if (acc < cutoff || (acc == cutoff && c > cutlim)) {
crypto/openssh/openbsd-compat/strtoll.c
130
acc -= c;
crypto/openssh/openbsd-compat/strtoll.c
133
if (acc > cutoff || (acc == cutoff && c > cutlim)) {
crypto/openssh/openbsd-compat/strtoll.c
140
acc += c;
crypto/openssh/openbsd-compat/strtoll.c
54
int c;
crypto/openssh/openbsd-compat/strtoll.c
64
c = (unsigned char) *s++;
crypto/openssh/openbsd-compat/strtoll.c
65
} while (isspace(c));
crypto/openssh/openbsd-compat/strtoll.c
66
if (c == '-') {
crypto/openssh/openbsd-compat/strtoll.c
68
c = *s++;
crypto/openssh/openbsd-compat/strtoll.c
71
if (c == '+')
crypto/openssh/openbsd-compat/strtoll.c
72
c = *s++;
crypto/openssh/openbsd-compat/strtoll.c
75
c == '0' && (*s == 'x' || *s == 'X')) {
crypto/openssh/openbsd-compat/strtoll.c
76
c = s[1];
crypto/openssh/openbsd-compat/strtoll.c
81
base = c == '0' ? 8 : 10;
crypto/openssh/openbsd-compat/strtoul.c
52
int c;
crypto/openssh/openbsd-compat/strtoul.c
60
c = (unsigned char) *s++;
crypto/openssh/openbsd-compat/strtoul.c
61
} while (isspace(c));
crypto/openssh/openbsd-compat/strtoul.c
62
if (c == '-') {
crypto/openssh/openbsd-compat/strtoul.c
64
c = *s++;
crypto/openssh/openbsd-compat/strtoul.c
67
if (c == '+')
crypto/openssh/openbsd-compat/strtoul.c
68
c = *s++;
crypto/openssh/openbsd-compat/strtoul.c
71
c == '0' && (*s == 'x' || *s == 'X')) {
crypto/openssh/openbsd-compat/strtoul.c
72
c = s[1];
crypto/openssh/openbsd-compat/strtoul.c
77
base = c == '0' ? 8 : 10;
crypto/openssh/openbsd-compat/strtoul.c
81
for (acc = 0, any = 0;; c = (unsigned char) *s++) {
crypto/openssh/openbsd-compat/strtoul.c
82
if (isdigit(c))
crypto/openssh/openbsd-compat/strtoul.c
83
c -= '0';
crypto/openssh/openbsd-compat/strtoul.c
84
else if (isalpha(c))
crypto/openssh/openbsd-compat/strtoul.c
85
c -= isupper(c) ? 'A' - 10 : 'a' - 10;
crypto/openssh/openbsd-compat/strtoul.c
88
if (c >= base)
crypto/openssh/openbsd-compat/strtoul.c
92
if (acc > cutoff || acc == cutoff && c > cutlim) {
crypto/openssh/openbsd-compat/strtoul.c
99
acc += c;
crypto/openssh/openbsd-compat/strtoull.c
101
acc += c;
crypto/openssh/openbsd-compat/strtoull.c
54
int c;
crypto/openssh/openbsd-compat/strtoull.c
62
c = (unsigned char) *s++;
crypto/openssh/openbsd-compat/strtoull.c
63
} while (isspace(c));
crypto/openssh/openbsd-compat/strtoull.c
64
if (c == '-') {
crypto/openssh/openbsd-compat/strtoull.c
66
c = *s++;
crypto/openssh/openbsd-compat/strtoull.c
69
if (c == '+')
crypto/openssh/openbsd-compat/strtoull.c
70
c = *s++;
crypto/openssh/openbsd-compat/strtoull.c
73
c == '0' && (*s == 'x' || *s == 'X')) {
crypto/openssh/openbsd-compat/strtoull.c
74
c = s[1];
crypto/openssh/openbsd-compat/strtoull.c
79
base = c == '0' ? 8 : 10;
crypto/openssh/openbsd-compat/strtoull.c
83
for (acc = 0, any = 0;; c = (unsigned char) *s++) {
crypto/openssh/openbsd-compat/strtoull.c
84
if (isdigit(c))
crypto/openssh/openbsd-compat/strtoull.c
85
c -= '0';
crypto/openssh/openbsd-compat/strtoull.c
86
else if (isalpha(c))
crypto/openssh/openbsd-compat/strtoull.c
87
c -= isupper(c) ? 'A' - 10 : 'a' - 10;
crypto/openssh/openbsd-compat/strtoull.c
90
if (c >= base)
crypto/openssh/openbsd-compat/strtoull.c
94
if (acc > cutoff || (acc == cutoff && c > cutlim)) {
crypto/openssh/openbsd-compat/vis.c
117
if (((c & 0177) == ' ') || (flag & VIS_OCTAL) ||
crypto/openssh/openbsd-compat/vis.c
118
((flag & VIS_GLOB) && (c == '*' || c == '?' || c == '[' || c == '#'))) {
crypto/openssh/openbsd-compat/vis.c
120
*dst++ = ((u_char)c >> 6 & 07) + '0';
crypto/openssh/openbsd-compat/vis.c
121
*dst++ = ((u_char)c >> 3 & 07) + '0';
crypto/openssh/openbsd-compat/vis.c
122
*dst++ = ((u_char)c & 07) + '0';
crypto/openssh/openbsd-compat/vis.c
127
if (c & 0200) {
crypto/openssh/openbsd-compat/vis.c
128
c &= 0177;
crypto/openssh/openbsd-compat/vis.c
131
if (iscntrl((u_char)c)) {
crypto/openssh/openbsd-compat/vis.c
133
if (c == 0177)
crypto/openssh/openbsd-compat/vis.c
136
*dst++ = c + '@';
crypto/openssh/openbsd-compat/vis.c
139
*dst++ = c;
crypto/openssh/openbsd-compat/vis.c
163
char c;
crypto/openssh/openbsd-compat/vis.c
166
for (start = dst; (c = *src);)
crypto/openssh/openbsd-compat/vis.c
167
dst = vis(dst, c, flag, *++src);
crypto/openssh/openbsd-compat/vis.c
178
int c, i;
crypto/openssh/openbsd-compat/vis.c
181
for (start = dst, end = start + siz - 1; (c = *src) && dst < end; ) {
crypto/openssh/openbsd-compat/vis.c
182
if (isvisible(c, flag)) {
crypto/openssh/openbsd-compat/vis.c
183
if ((c == '"' && (flag & VIS_DQ) != 0) ||
crypto/openssh/openbsd-compat/vis.c
184
(c == '\\' && (flag & VIS_NOSLASH) == 0)) {
crypto/openssh/openbsd-compat/vis.c
193
*dst++ = c;
crypto/openssh/openbsd-compat/vis.c
196
i = vis(tbuf, c, flag, *++src) - tbuf;
crypto/openssh/openbsd-compat/vis.c
210
while ((c = *src))
crypto/openssh/openbsd-compat/vis.c
211
dst += vis(tbuf, c, flag, *++src) - tbuf;
crypto/openssh/openbsd-compat/vis.c
238
char c;
crypto/openssh/openbsd-compat/vis.c
242
c = *src;
crypto/openssh/openbsd-compat/vis.c
243
dst = vis(dst, c, flag, *++src);
crypto/openssh/openbsd-compat/vis.c
45
#define isoctal(c) (((u_char)(c)) >= '0' && ((u_char)(c)) <= '7')
crypto/openssh/openbsd-compat/vis.c
46
#define isvisible(c,flag) \
crypto/openssh/openbsd-compat/vis.c
47
(((c) == '\\' || (flag & VIS_ALL) == 0) && \
crypto/openssh/openbsd-compat/vis.c
48
(((u_int)(c) <= UCHAR_MAX && isascii((u_char)(c)) && \
crypto/openssh/openbsd-compat/vis.c
49
(((c) != '*' && (c) != '?' && (c) != '[' && (c) != '#') || \
crypto/openssh/openbsd-compat/vis.c
50
(flag & VIS_GLOB) == 0) && isgraph((u_char)(c))) || \
crypto/openssh/openbsd-compat/vis.c
51
((flag & VIS_SP) == 0 && (c) == ' ') || \
crypto/openssh/openbsd-compat/vis.c
52
((flag & VIS_TAB) == 0 && (c) == '\t') || \
crypto/openssh/openbsd-compat/vis.c
53
((flag & VIS_NL) == 0 && (c) == '\n') || \
crypto/openssh/openbsd-compat/vis.c
54
((flag & VIS_SAFE) && ((c) == '\b' || \
crypto/openssh/openbsd-compat/vis.c
55
(c) == '\007' || (c) == '\r' || \
crypto/openssh/openbsd-compat/vis.c
56
isgraph((u_char)(c))))))
crypto/openssh/openbsd-compat/vis.c
62
vis(char *dst, int c, int flag, int nextc)
crypto/openssh/openbsd-compat/vis.c
64
if (isvisible(c, flag)) {
crypto/openssh/openbsd-compat/vis.c
65
if ((c == '"' && (flag & VIS_DQ) != 0) ||
crypto/openssh/openbsd-compat/vis.c
66
(c == '\\' && (flag & VIS_NOSLASH) == 0))
crypto/openssh/openbsd-compat/vis.c
68
*dst++ = c;
crypto/openssh/openbsd-compat/vis.c
74
switch(c) {
crypto/openssh/poly1305.c
43
uint64_t c;
crypto/openssh/poly1305.c
96
h0 = (uint32_t)t[0] & 0x3ffffff; c = (t[0] >> 26);
crypto/openssh/poly1305.c
97
t[1] += c; h1 = (uint32_t)t[1] & 0x3ffffff; b = (uint32_t)(t[1] >> 26);
crypto/openssh/regress/netcat.c
1138
char *c;
crypto/openssh/regress/netcat.c
1142
c = portlist[x];
crypto/openssh/regress/netcat.c
1144
portlist[y] = c;
crypto/openssh/regress/unittests/sshbuf/test_sshbuf_fixed.c
32
u_char c;
crypto/openssh/regress/unittests/sshbuf/test_sshbuf_fixed.c
54
ASSERT_INT_EQ(sshbuf_get_u8(p1, &c), 0);
crypto/openssh/regress/unittests/sshbuf/test_sshbuf_fixed.c
56
ASSERT_U8_EQ(c, 1);
crypto/openssh/regress/unittests/sshbuf/test_sshbuf_fixed.c
85
ASSERT_INT_EQ(sshbuf_get_u8(p2, &c), 0);
crypto/openssh/regress/unittests/sshbuf/test_sshbuf_fixed.c
87
ASSERT_U8_EQ(c, 1);
crypto/openssh/regress/unittests/sshkey/test_file.c
176
c = load_bignum("dsa_1.param.pub");
crypto/openssh/regress/unittests/sshkey/test_file.c
179
ASSERT_BIGNUM_EQ(dsa_pub_key(k1), c);
crypto/openssh/regress/unittests/sshkey/test_file.c
182
BN_free(c);
crypto/openssh/regress/unittests/sshkey/test_file.c
274
c = EC_POINT_point2bn(EC_KEY_get0_group(EVP_PKEY_get0_EC_KEY(k1->pkey)),
crypto/openssh/regress/unittests/sshkey/test_file.c
277
ASSERT_PTR_NE(c, NULL);
crypto/openssh/regress/unittests/sshkey/test_file.c
280
ASSERT_BIGNUM_EQ(b, c);
crypto/openssh/regress/unittests/sshkey/test_file.c
283
BN_free(c);
crypto/openssh/regress/unittests/sshkey/test_file.c
49
BIGNUM *a, *b, *c;
crypto/openssh/regress/unittests/sshkey/test_file.c
66
c = load_bignum("rsa_1.param.q");
crypto/openssh/regress/unittests/sshkey/test_file.c
69
ASSERT_BIGNUM_EQ(rsa_q(k1), c);
crypto/openssh/regress/unittests/sshkey/test_file.c
72
BN_free(c);
crypto/openssh/regress/unittests/sshkey/test_fuzz.c
103
c, sizeof(c), NULL, 0, NULL), 0);
crypto/openssh/regress/unittests/sshkey/test_fuzz.c
81
u_char *sig, c[] = "some junk to be signed";
crypto/openssh/regress/unittests/sshkey/test_fuzz.c
91
ASSERT_INT_EQ(sshkey_sign(k, &sig, &l, c, sizeof(c),
crypto/openssh/regress/unittests/sshkey/test_fuzz.c
95
ASSERT_INT_EQ(sshkey_verify(k, sig, l, c, sizeof(c), NULL, 0, NULL), 0);
crypto/openssh/regress/unittests/test_helper/test_helper.h
105
#define TEST_ONERROR(f, c) set_onerror_func(f, c)
crypto/openssh/regress/unittests/test_helper/test_helper.h
114
#define ASSERT_MEM_FILLED_EQ(a1, c, l) \
crypto/openssh/regress/unittests/test_helper/test_helper.h
115
assert_mem_filled(__FILE__, __LINE__, #a1, a1, c, l, TEST_EQ)
crypto/openssh/scp.c
2200
int c;
crypto/openssh/scp.c
2205
c = (int)*cp;
crypto/openssh/scp.c
2206
if (c & 0200)
crypto/openssh/scp.c
2208
if (!isalpha(c) && !isdigit((unsigned char)c)) {
crypto/openssh/scp.c
2209
switch (c) {
crypto/openssh/serverloop.c
395
Channel *c = NULL;
crypto/openssh/serverloop.c
424
c = channel_connect_to_port(ssh, target, target_port,
crypto/openssh/serverloop.c
437
return c;
crypto/openssh/serverloop.c
443
Channel *c = NULL;
crypto/openssh/serverloop.c
469
c = channel_connect_to_path(ssh, target,
crypto/openssh/serverloop.c
480
return c;
crypto/openssh/serverloop.c
486
Channel *c = NULL;
crypto/openssh/serverloop.c
524
c = channel_new(ssh, "tun", SSH_CHANNEL_OPEN, sock, sock, -1,
crypto/openssh/serverloop.c
526
c->datagram = 1;
crypto/openssh/serverloop.c
529
channel_register_filter(ssh, c->self, sys_tun_infilter,
crypto/openssh/serverloop.c
547
if (c == NULL)
crypto/openssh/serverloop.c
549
return c;
crypto/openssh/serverloop.c
555
Channel *c;
crypto/openssh/serverloop.c
573
c = channel_new(ssh, "session", SSH_CHANNEL_LARVAL,
crypto/openssh/serverloop.c
576
if (session_open(the_authctxt, c->self) != 1) {
crypto/openssh/serverloop.c
577
debug("session open failed, free channel %d", c->self);
crypto/openssh/serverloop.c
578
channel_free(ssh, c);
crypto/openssh/serverloop.c
581
channel_register_cleanup(ssh, c->self, session_close_by_channel, 0);
crypto/openssh/serverloop.c
582
return c;
crypto/openssh/serverloop.c
588
Channel *c = NULL;
crypto/openssh/serverloop.c
603
c = server_request_session(ssh);
crypto/openssh/serverloop.c
605
c = server_request_direct_tcpip(ssh, &reason, &errmsg);
crypto/openssh/serverloop.c
607
c = server_request_direct_streamlocal(ssh);
crypto/openssh/serverloop.c
609
c = server_request_tun(ssh);
crypto/openssh/serverloop.c
611
if (c != NULL) {
crypto/openssh/serverloop.c
613
c->remote_id = rchan;
crypto/openssh/serverloop.c
614
c->have_remote_id = 1;
crypto/openssh/serverloop.c
615
c->remote_window = rwindow;
crypto/openssh/serverloop.c
616
c->remote_maxpacket = rmaxpack;
crypto/openssh/serverloop.c
617
if (c->type != SSH_CHANNEL_CONNECTING) {
crypto/openssh/serverloop.c
619
(r = sshpkt_put_u32(ssh, c->remote_id)) != 0 ||
crypto/openssh/serverloop.c
620
(r = sshpkt_put_u32(ssh, c->self)) != 0 ||
crypto/openssh/serverloop.c
621
(r = sshpkt_put_u32(ssh, c->local_window)) != 0 ||
crypto/openssh/serverloop.c
622
(r = sshpkt_put_u32(ssh, c->local_maxpacket)) != 0 ||
crypto/openssh/serverloop.c
837
Channel *c;
crypto/openssh/serverloop.c
851
if (id >= INT_MAX || (c = channel_lookup(ssh, (int)id)) == NULL) {
crypto/openssh/serverloop.c
858
chan_rcvd_eow(ssh, c);
crypto/openssh/serverloop.c
859
} else if ((c->type == SSH_CHANNEL_LARVAL ||
crypto/openssh/serverloop.c
860
c->type == SSH_CHANNEL_OPEN) && strcmp(c->ctype, "session") == 0)
crypto/openssh/serverloop.c
861
success = session_input_channel_req(ssh, c, rtype);
crypto/openssh/serverloop.c
862
if (want_reply && !(c->flags & CHAN_CLOSE_SENT)) {
crypto/openssh/serverloop.c
863
if (!c->have_remote_id)
crypto/openssh/serverloop.c
864
fatal_f("channel %d: no remote_id", c->self);
crypto/openssh/serverloop.c
867
(r = sshpkt_put_u32(ssh, c->remote_id)) != 0 ||
crypto/openssh/session.c
117
#define IS_INTERNAL_SFTP(c) \
crypto/openssh/session.c
118
(!strncmp(c, INTERNAL_SFTP_NAME, sizeof(INTERNAL_SFTP_NAME) - 1) && \
crypto/openssh/session.c
119
(c[sizeof(INTERNAL_SFTP_NAME) - 1] == '\0' || \
crypto/openssh/session.c
120
c[sizeof(INTERNAL_SFTP_NAME) - 1] == ' ' || \
crypto/openssh/session.c
121
c[sizeof(INTERNAL_SFTP_NAME) - 1] == '\t'))
crypto/openssh/session.c
2206
session_input_channel_req(struct ssh *ssh, Channel *c, const char *rtype)
crypto/openssh/session.c
2211
if ((s = session_by_channel(c->self)) == NULL) {
crypto/openssh/session.c
2212
logit_f("no session %d req %.100s", c->self, rtype);
crypto/openssh/session.c
2221
if (c->type == SSH_CHANNEL_LARVAL) {
crypto/openssh/session.c
2332
Channel *c;
crypto/openssh/session.c
2334
if ((c = channel_by_id(ssh, id)) == NULL) {
crypto/openssh/session.c
2340
if (c->ostate != CHAN_OUTPUT_CLOSED)
crypto/openssh/session.c
2341
chan_mark_dead(ssh, c);
crypto/openssh/session.c
2380
Channel *c;
crypto/openssh/session.c
2384
if ((c = channel_lookup(ssh, s->chanid)) == NULL)
crypto/openssh/session.c
2424
channel_register_cleanup(ssh, c->self, session_close_by_channel, 1);
crypto/openssh/session.c
2432
if (c->ostate != CHAN_OUTPUT_CLOSED)
crypto/openssh/session.c
2433
chan_write_failed(ssh, c);
crypto/openssh/sftp-client.c
2042
Attrib a, t, c;
crypto/openssh/sftp-client.c
2078
if (sftp_stat(conn, remote_path, 0, &c) != 0) {
crypto/openssh/sftp-client.c
2083
if ((off_t)c.size >= sb.st_size) {
crypto/openssh/sftp-client.c
2090
if (lseek(local_fd, (off_t)c.size, SEEK_SET) == -1) {
crypto/openssh/sftp-client.c
2094
highwater = c.size;
crypto/openssh/sftp-client.c
2115
offset = progress_counter = (resume ? c.size : 0);
crypto/openssh/sftp.c
1059
if (c >= columns) {
crypto/openssh/sftp.c
1061
c = 1;
crypto/openssh/sftp.c
1063
c++;
crypto/openssh/sftp.c
1068
if (!(lflag & LS_LONG_VIEW) && (c != 1))
crypto/openssh/sftp.c
1383
for (i = 0; cmds[i].c != NULL; i++) {
crypto/openssh/sftp.c
1384
if (argv[0] != NULL && strcasecmp(cmds[i].c, argv[0]) == 0)
crypto/openssh/sftp.c
1388
cmd = cmds[i].c;
crypto/openssh/sftp.c
168
const char *c;
crypto/openssh/sftp.c
1915
for (y = 0; cmds[y].c; y++)
crypto/openssh/sftp.c
1916
list[count++] = xstrdup(cmds[y].c);
crypto/openssh/sftp.c
1929
for (y = 0; cmds[y].c; y++) {
crypto/openssh/sftp.c
1930
if (!strncasecmp(cmd, cmds[y].c, cmdlen))
crypto/openssh/sftp.c
1931
list[count++] = xstrdup(cmds[y].c);
crypto/openssh/sftp.c
1986
for (i = 0; cmds[i].c; i++) {
crypto/openssh/sftp.c
1987
if (!strncasecmp(cmd, cmds[i].c, strlen(cmds[i].c))) {
crypto/openssh/sftp.c
853
u_int c = 1, colspace = 0, columns = 1;
crypto/openssh/sftp.c
920
if (c >= columns) {
crypto/openssh/sftp.c
922
c = 1;
crypto/openssh/sftp.c
924
c++;
crypto/openssh/sftp.c
930
if (!(lflag & LS_LONG_VIEW) && (c != 1))
crypto/openssh/sftp.c
977
u_int i, j, nentries, *indices = NULL, c = 1;
crypto/openssh/sntrup761.c
1965
unsigned char c[4];
crypto/openssh/sntrup761.c
1968
randombytes(c, 4);
crypto/openssh/sntrup761.c
1969
for (i = 0; i < 4; ++i) result += ((uint32_t)c[i]) << (8 * i);
crypto/openssh/sntrup761.c
2000
static void Encrypt(Fq *c, const small *r, const Fq *h) {
crypto/openssh/sntrup761.c
2003
Round(c, hr);
crypto/openssh/sntrup761.c
2006
static void Decrypt(small *r, const Fq *c, const small *f, const small *ginv) {
crypto/openssh/sntrup761.c
2010
Rq_mult_small(cf, c, f);
crypto/openssh/sntrup761.c
2080
Fq h[p], c[p];
crypto/openssh/sntrup761.c
2082
Encrypt(c, r, h);
crypto/openssh/sntrup761.c
2083
Rounded_encode(C, c);
crypto/openssh/sntrup761.c
2088
Fq c[p];
crypto/openssh/sntrup761.c
2091
Rounded_decode(c, C);
crypto/openssh/sntrup761.c
2092
Decrypt(r, c, f, v);
crypto/openssh/sntrup761.c
2121
static void Hide(unsigned char *c, unsigned char *r_enc, const Inputs r, const unsigned char *pk, const unsigned char *cache) {
crypto/openssh/sntrup761.c
2123
ZEncrypt(c, r, pk);
crypto/openssh/sntrup761.c
2124
HashConfirm(c + crypto_kem_sntrup761_CIPHERTEXTBYTES - Confirm_bytes, r_enc, cache);
crypto/openssh/sntrup761.c
2127
int crypto_kem_sntrup761_enc(unsigned char *c, unsigned char *k, const unsigned char *pk) {
crypto/openssh/sntrup761.c
2132
Hide(c, r_enc, r, pk, cache);
crypto/openssh/sntrup761.c
2133
HashSession(k, 1, r_enc, c);
crypto/openssh/sntrup761.c
2137
static int Ciphertexts_diff_mask(const unsigned char *c, const unsigned char *c2) {
crypto/openssh/sntrup761.c
2140
while (len-- > 0) differentbits |= (*c++) ^ (*c2++);
crypto/openssh/sntrup761.c
2144
int crypto_kem_sntrup761_dec(unsigned char *k, const unsigned char *c, const unsigned char *sk) {
crypto/openssh/sntrup761.c
2151
ZDecrypt(r, c, sk);
crypto/openssh/sntrup761.c
2153
mask = Ciphertexts_diff_mask(c, cnew);
crypto/openssh/sntrup761.c
2155
HashSession(k, 1 + mask, r_enc, c);
crypto/openssh/ssh-keygen.c
1689
prepare_options_buf(struct sshbuf *c, int which)
crypto/openssh/ssh-keygen.c
1698
sshbuf_reset(c);
crypto/openssh/ssh-keygen.c
1707
if ((r = sshbuf_put_cstring(c, ext->key)) != 0 ||
crypto/openssh/ssh-keygen.c
1708
(r = sshbuf_put_string(c, NULL, 0)) != 0)
crypto/openssh/ssh-keygen.c
1714
if ((r = sshbuf_put_cstring(c, ext->key)) != 0 ||
crypto/openssh/ssh-keygen.c
1716
(r = sshbuf_put_stringb(c, b)) != 0)
crypto/openssh/ssh-keygen.c
641
int c;
crypto/openssh/ssh-keygen.c
645
while ((c = fgetc(fp)) != EOF) {
crypto/openssh/ssh-keygen.c
648
switch (c) {
crypto/openssh/ssh-keygen.c
650
c = fgetc(fp);
crypto/openssh/ssh-keygen.c
651
if (c != EOF && c != '\n' && ungetc(c, fp) == EOF)
crypto/openssh/ssh-keygen.c
657
line[pos++] = c;
crypto/openssh/ssh-keyscan.c
124
static void keyprint(con *c, struct sshkey *key);
crypto/openssh/ssh-keyscan.c
212
con *c;
crypto/openssh/ssh-keyscan.c
214
if ((c = ssh_get_app_data(ssh)) != NULL)
crypto/openssh/ssh-keyscan.c
215
keyprint(c, hostkey);
crypto/openssh/ssh-keyscan.c
237
keygrab_ssh2(con *c)
crypto/openssh/ssh-keyscan.c
242
switch (c->c_keytype) {
crypto/openssh/ssh-keyscan.c
284
fatal("unknown key type %d", c->c_keytype);
crypto/openssh/ssh-keyscan.c
287
if ((r = kex_setup(c->c_ssh, myproposal)) != 0) {
crypto/openssh/ssh-keyscan.c
288
free(c->c_ssh);
crypto/openssh/ssh-keyscan.c
293
c->c_ssh->kex->kex[KEX_DH_GRP1_SHA1] = kex_gen_client;
crypto/openssh/ssh-keyscan.c
294
c->c_ssh->kex->kex[KEX_DH_GRP14_SHA1] = kex_gen_client;
crypto/openssh/ssh-keyscan.c
295
c->c_ssh->kex->kex[KEX_DH_GRP14_SHA256] = kex_gen_client;
crypto/openssh/ssh-keyscan.c
296
c->c_ssh->kex->kex[KEX_DH_GRP16_SHA512] = kex_gen_client;
crypto/openssh/ssh-keyscan.c
297
c->c_ssh->kex->kex[KEX_DH_GRP18_SHA512] = kex_gen_client;
crypto/openssh/ssh-keyscan.c
298
c->c_ssh->kex->kex[KEX_DH_GEX_SHA1] = kexgex_client;
crypto/openssh/ssh-keyscan.c
299
c->c_ssh->kex->kex[KEX_DH_GEX_SHA256] = kexgex_client;
crypto/openssh/ssh-keyscan.c
301
c->c_ssh->kex->kex[KEX_ECDH_SHA2] = kex_gen_client;
crypto/openssh/ssh-keyscan.c
304
c->c_ssh->kex->kex[KEX_C25519_SHA256] = kex_gen_client;
crypto/openssh/ssh-keyscan.c
305
c->c_ssh->kex->kex[KEX_KEM_SNTRUP761X25519_SHA512] = kex_gen_client;
crypto/openssh/ssh-keyscan.c
306
c->c_ssh->kex->kex[KEX_KEM_MLKEM768X25519_SHA256] = kex_gen_client;
crypto/openssh/ssh-keyscan.c
307
ssh_set_verify_host_key_callback(c->c_ssh, key_print_wrapper);
crypto/openssh/ssh-keyscan.c
312
ssh_dispatch_run(c->c_ssh, DISPATCH_BLOCK, &c->c_done);
crypto/openssh/ssh-keyscan.c
343
keyprint(con *c, struct sshkey *key)
crypto/openssh/ssh-keyscan.c
345
char *hosts = c->c_output_name ? c->c_output_name : c->c_name;
crypto/openssh/ssh-keyscan.c
457
con *c = &fdcon[s];
crypto/openssh/ssh-keyscan.c
460
ret = conalloc(c->c_namelist, c->c_output_name, c->c_keytype);
crypto/openssh/ssh-keyscan.c
472
con *c = &fdcon[s];
crypto/openssh/ssh-keyscan.c
483
error("write (%s): %s", c->c_name, strerror(errno));
crypto/openssh/ssh-keyscan.c
513
error("%s: Connection closed by remote host", c->c_name);
crypto/openssh/ssh-keyscan.c
518
error("read (%s): %s", c->c_name, strerror(errno));
crypto/openssh/ssh-keyscan.c
525
error("%s: greeting exceeds allowable length", c->c_name);
crypto/openssh/ssh-keyscan.c
530
error("%s: bad greeting", c->c_name);
crypto/openssh/ssh-keyscan.c
535
if ((c->c_ssh = ssh_packet_set_connection(NULL, s, s)) == NULL)
crypto/openssh/ssh-keyscan.c
537
ssh_packet_set_timeout(c->c_ssh, timeout, 1);
crypto/openssh/ssh-keyscan.c
538
ssh_set_app_data(c->c_ssh, c); /* back link */
crypto/openssh/ssh-keyscan.c
539
c->c_ssh->compat = 0;
crypto/openssh/ssh-keyscan.c
542
compat_banner(c->c_ssh, remote_version);
crypto/openssh/ssh-keyscan.c
544
debug("%s doesn't support ssh2", c->c_name);
crypto/openssh/ssh-keyscan.c
550
c->c_name, ssh_port, chop(buf));
crypto/openssh/ssh-keyscan.c
552
keygrab_ssh2(c);
crypto/openssh/ssh-keyscan.c
559
con *c = &fdcon[s];
crypto/openssh/ssh-keyscan.c
561
if (c->c_status != CS_CON)
crypto/openssh/ssh-keyscan.c
562
fatal("conread: invalid status %d", c->c_status);
crypto/openssh/ssh-keyscan.c
571
con *c;
crypto/openssh/ssh-keyscan.c
575
c = TAILQ_FIRST(&tq);
crypto/openssh/ssh-keyscan.c
577
if (c && timespeccmp(&c->c_ts, &now, >))
crypto/openssh/ssh-keyscan.c
578
timespecsub(&c->c_ts, &now, &seltime);
crypto/openssh/ssh-keyscan.c
595
c = TAILQ_FIRST(&tq);
crypto/openssh/ssh-keyscan.c
596
while (c && timespeccmp(&c->c_ts, &now, <)) {
crypto/openssh/ssh-keyscan.c
597
int s = c->c_fd;
crypto/openssh/ssh-keyscan.c
599
c = TAILQ_NEXT(c, c_link);
crypto/openssh/ssh-pkcs11-client.c
205
u_char c, buf[1024];
crypto/openssh/ssh-pkcs11-client.c
231
if ((r = sshbuf_get_u8(m, &c)) != 0)
crypto/openssh/ssh-pkcs11-client.c
233
return c;
crypto/openssh/ssh-pkcs11.c
1405
h2i(char c)
crypto/openssh/ssh-pkcs11.c
1407
if (c >= '0' && c <= '9')
crypto/openssh/ssh-pkcs11.c
1408
return c - '0';
crypto/openssh/ssh-pkcs11.c
1409
else if (c >= 'a' && c <= 'f')
crypto/openssh/ssh-pkcs11.c
1410
return c - 'a' + 10;
crypto/openssh/ssh-pkcs11.c
1411
else if (c >= 'A' && c <= 'F')
crypto/openssh/ssh-pkcs11.c
1412
return c - 'A' + 10;
crypto/openssh/ssh.c
2046
Channel *c;
crypto/openssh/ssh.c
2058
if ((c = channel_connect_stdio_fwd(ssh, options.stdio_forward_host,
crypto/openssh/ssh.c
2062
channel_register_cleanup(ssh, c->self, client_cleanup_stdio_fwd, 0);
crypto/openssh/ssh.c
2063
channel_register_open_confirm(ssh, c->self, ssh_stdio_confirm, NULL);
crypto/openssh/ssh.c
2245
Channel *c;
crypto/openssh/ssh.c
2265
c = channel_new(ssh,
crypto/openssh/ssh.c
2270
debug3_f("channel_new: %d", c->self);
crypto/openssh/ssh.c
2272
channel_send_open(ssh, c->self);
crypto/openssh/ssh.c
2274
channel_register_open_confirm(ssh, c->self,
crypto/openssh/ssh.c
2277
return c->self;
crypto/openssh/ssh_api.c
347
u_char c;
crypto/openssh/ssh_api.c
358
c = s[j++];
crypto/openssh/ssh_api.c
359
if (c == '\r') {
crypto/openssh/ssh_api.c
363
if (c == '\n')
crypto/openssh/ssh_api.c
367
if ((r = sshbuf_put_u8(banner, c)) != 0)
crypto/openssh/sshd.c
1097
switch (read(children[i].pipefd, &c, sizeof(c))) {
crypto/openssh/sshd.c
1126
if (children[i].early && c == '\0') {
crypto/openssh/sshd.c
1133
} else if (!children[i].early && c == '\001') {
crypto/openssh/sshd.c
1142
(int)c, (long)children[i].pid,
crypto/openssh/sshd.c
944
char c = 0;
crypto/openssh/ttymodes.c
251
special_char_encode(cc_t c)
crypto/openssh/ttymodes.c
254
if (c == _POSIX_VDISABLE)
crypto/openssh/ttymodes.c
257
return c;
crypto/openssh/ttymodes.c
264
special_char_decode(u_int c)
crypto/openssh/ttymodes.c
267
if (c == 255)
crypto/openssh/ttymodes.c
270
return c;
crypto/openssh/umac.c
340
UWORD c = dlen / 32;
crypto/openssh/umac.c
361
} while (--c);
crypto/openssh/umac.c
373
UWORD c = dlen / 32;
crypto/openssh/umac.c
407
} while (--c);
crypto/openssh/umac.c
420
UWORD c = dlen / 32;
crypto/openssh/umac.c
461
} while (--c);
crypto/openssh/umac.c
475
UWORD c = dlen / 32;
crypto/openssh/umac.c
524
} while (--c);
crypto/openssl/apps/ciphers.c
231
const SSL_CIPHER *c = sk_SSL_CIPHER_value(sk, i);
crypto/openssl/apps/ciphers.c
233
if (!ossl_assert(c != NULL))
crypto/openssl/apps/ciphers.c
236
p = SSL_CIPHER_get_name(c);
crypto/openssl/apps/ciphers.c
247
const SSL_CIPHER *c;
crypto/openssl/apps/ciphers.c
249
c = sk_SSL_CIPHER_value(sk, i);
crypto/openssl/apps/ciphers.c
251
if (!ossl_assert(c != NULL))
crypto/openssl/apps/ciphers.c
255
unsigned long id = SSL_CIPHER_get_id(c);
crypto/openssl/apps/ciphers.c
268
const char *nm = SSL_CIPHER_standard_name(c);
crypto/openssl/apps/ciphers.c
273
BIO_puts(bio_out, SSL_CIPHER_description(c, buf, sizeof(buf)));
crypto/openssl/apps/dgst.c
575
const char c = file[e];
crypto/openssl/apps/dgst.c
576
if (c == '\n') {
crypto/openssl/apps/dgst.c
581
file_cpy[i++] = c;
crypto/openssl/apps/include/apps.h
46
#define _UC(c) ((unsigned char)(c))
crypto/openssl/apps/include/apps.h
48
void app_RAND_load_conf(CONF *c, const char *section);
crypto/openssl/apps/lib/app_rand.c
20
void app_RAND_load_conf(CONF *c, const char *section)
crypto/openssl/apps/lib/app_rand.c
22
const char *randfile = app_conf_try_string(c, section, "RANDFILE");
crypto/openssl/apps/lib/apps.c
1291
char c;
crypto/openssl/apps/lib/apps.c
1294
c = arg[0];
crypto/openssl/apps/lib/apps.c
1295
if (c == '-') {
crypto/openssl/apps/lib/apps.c
1296
c = 0;
crypto/openssl/apps/lib/apps.c
1298
} else if (c == '+') {
crypto/openssl/apps/lib/apps.c
1299
c = 1;
crypto/openssl/apps/lib/apps.c
1302
c = 1;
crypto/openssl/apps/lib/apps.c
1308
if (c)
crypto/openssl/apps/lib/opt.c
409
EVP_CIPHER *c;
crypto/openssl/apps/lib/opt.c
412
if ((c = EVP_CIPHER_fetch(app_get0_libctx(), name,
crypto/openssl/apps/lib/opt.c
416
&& (c = (EVP_CIPHER *)EVP_get_cipherbyname(name)) != NULL)) {
crypto/openssl/apps/lib/opt.c
420
*cipherp = c;
crypto/openssl/apps/lib/opt.c
422
EVP_CIPHER_free(c);
crypto/openssl/apps/lib/opt.c
445
EVP_CIPHER *c = NULL;
crypto/openssl/apps/lib/opt.c
449
if (opt_cipher_any(name, &c)) {
crypto/openssl/apps/lib/opt.c
450
mode = EVP_CIPHER_get_mode(c);
crypto/openssl/apps/lib/opt.c
451
flags = EVP_CIPHER_get_flags(c);
crypto/openssl/apps/lib/opt.c
459
*cipherp = c;
crypto/openssl/apps/lib/s_cb.c
1210
const SSL_CIPHER *c = SSL_CIPHER_find(s, rlist);
crypto/openssl/apps/lib/s_cb.c
1213
if (c != NULL) {
crypto/openssl/apps/lib/s_cb.c
1214
BIO_puts(bio_err, SSL_CIPHER_get_name(c));
crypto/openssl/apps/lib/s_cb.c
1308
const SSL_CIPHER *c;
crypto/openssl/apps/lib/s_cb.c
1315
c = SSL_get_current_cipher(s);
crypto/openssl/apps/lib/s_cb.c
1316
BIO_printf(bio_err, "Ciphersuite: %s\n", SSL_CIPHER_get_name(c));
crypto/openssl/apps/lib/s_cb.c
1676
char c = (p >= 0 && (size_t)p <= sizeof(symbols) - 1) ? symbols[p] : '?';
crypto/openssl/apps/lib/s_cb.c
1678
BIO_write(b, &c, 1);
crypto/openssl/apps/list.c
1152
char c = o->valtype;
crypto/openssl/apps/list.c
1162
BIO_printf(bio_out, "%s %c\n", o->name, c == '\0' ? '-' : c);
crypto/openssl/apps/list.c
132
const EVP_CIPHER *c = sk_EVP_CIPHER_value(ciphers, i);
crypto/openssl/apps/list.c
135
if (select_name != NULL && !EVP_CIPHER_is_a(c, select_name))
crypto/openssl/apps/list.c
139
if (names != NULL && EVP_CIPHER_names_do_all(c, collect_names, names)) {
crypto/openssl/apps/list.c
144
OSSL_PROVIDER_get0_name(EVP_CIPHER_get0_provider(c)));
crypto/openssl/apps/list.c
147
const char *desc = EVP_CIPHER_get0_description(c);
crypto/openssl/apps/list.c
152
EVP_CIPHER_gettable_params(c), 4);
crypto/openssl/apps/list.c
154
EVP_CIPHER_gettable_ctx_params(c), 4);
crypto/openssl/apps/list.c
156
EVP_CIPHER_settable_ctx_params(c), 4);
crypto/openssl/apps/list.c
75
static void legacy_cipher_fn(const EVP_CIPHER *c,
crypto/openssl/apps/list.c
79
&& (c == NULL
crypto/openssl/apps/list.c
80
|| OPENSSL_strcasecmp(select_name, EVP_CIPHER_get0_name(c)) != 0))
crypto/openssl/apps/list.c
82
if (c != NULL) {
crypto/openssl/apps/list.c
83
BIO_printf(arg, " %s\n", EVP_CIPHER_get0_name(c));
crypto/openssl/apps/passwd.c
283
char *c = (strchr(passwd, '\n'));
crypto/openssl/apps/passwd.c
284
if (c != NULL) {
crypto/openssl/apps/passwd.c
285
*c = 0; /* truncate at newline */
crypto/openssl/apps/s_client.c
3467
const SSL_CIPHER *c;
crypto/openssl/apps/s_client.c
3581
c = SSL_get_current_cipher(s);
crypto/openssl/apps/s_client.c
3583
SSL_CIPHER_get_version(c), SSL_CIPHER_get_name(c));
crypto/openssl/apps/s_client.c
3836
char c = host[i];
crypto/openssl/apps/s_client.c
3838
if ((c >= 'a' && c <= 'z')
crypto/openssl/apps/s_client.c
3839
|| (c >= 'A' && c <= 'Z')
crypto/openssl/apps/s_client.c
3840
|| c == '_') {
crypto/openssl/apps/s_client.c
3846
if (c >= '0' && c <= '9') {
crypto/openssl/apps/s_client.c
3853
if (c == '-') {
crypto/openssl/apps/s_client.c
3862
if (c == '.'
crypto/openssl/apps/s_server.c
3261
const SSL_CIPHER *c;
crypto/openssl/apps/s_server.c
3499
c = sk_SSL_CIPHER_value(sk, i);
crypto/openssl/apps/s_server.c
3501
SSL_CIPHER_get_version(c), SSL_CIPHER_get_name(c));
crypto/openssl/apps/s_server.c
3531
c = SSL_get_current_cipher(con);
crypto/openssl/apps/s_server.c
3533
SSL_CIPHER_get_version(c), SSL_CIPHER_get_name(c));
crypto/openssl/apps/speed.c
1007
for (count = 0; COND(c[D_EVP][testnum]); count++) {
crypto/openssl/apps/speed.c
1079
for (count = 0; COND(c[D_EVP][testnum]); count++) {
crypto/openssl/apps/speed.c
727
for (count = 0; COND(c[algindex][testnum]); count++) {
crypto/openssl/apps/speed.c
736
for (count = 0; COND(c[algindex][testnum]); count++) {
crypto/openssl/apps/speed.c
818
for (count = 0; COND(c[algindex][testnum]); count++) {
crypto/openssl/apps/speed.c
884
for (count = 0; COND(c[algindex][testnum]); count++)
crypto/openssl/apps/speed.c
898
for (count = 0; COND(c[D_GHASH][testnum]); count++) {
crypto/openssl/apps/speed.c
951
for (count = 0; COND(c[D_RAND][testnum]); count++)
crypto/openssl/apps/speed.c
965
for (count = 0; COND(c[D_EVP][testnum]); count++) {
crypto/openssl/apps/speed.c
973
for (count = 0; COND(c[D_EVP][testnum]); count++) {
crypto/openssl/apps/ts.c
30
#define EXACTLY_ONE(a, b, c) \
crypto/openssl/apps/ts.c
31
((a && !b && !c) || (b && !a && !c) || (c && !a && !b))
crypto/openssl/crypto/LPdir_unix.c
105
char c = directory[strlen(directory) - 1];
crypto/openssl/crypto/LPdir_unix.c
107
if (c == ']' || c == '>' || c == ':')
crypto/openssl/crypto/aes/aes_core.c
467
int c;
crypto/openssl/crypto/aes/aes_core.c
469
for (c = 0; c < 2; c++) {
crypto/openssl/crypto/aes/aes_core.c
470
s1.d = state[c];
crypto/openssl/crypto/aes/aes_core.c
487
state[c] = s.d;
crypto/openssl/crypto/aes/aes_core.c
495
int c;
crypto/openssl/crypto/aes/aes_core.c
497
for (c = 0; c < 2; c++) {
crypto/openssl/crypto/aes/aes_core.c
498
s1.d = state[c];
crypto/openssl/crypto/aes/aes_core.c
523
state[c] = s.d;
crypto/openssl/crypto/aria/aria.c
1036
memcpy(w0.c, userKey, sizeof(w0));
crypto/openssl/crypto/aria/aria.c
1045
memset(kr.c, 0, sizeof(kr));
crypto/openssl/crypto/aria/aria.c
1053
memcpy(kr.c, userKey + ARIA_BLOCK_SIZE, sizeof(kr) / 2);
crypto/openssl/crypto/aria/aria.c
1054
memset(kr.c + ARIA_BLOCK_SIZE / 2, 0, sizeof(kr) / 2);
crypto/openssl/crypto/aria/aria.c
1062
memcpy(kr.c, userKey + ARIA_BLOCK_SIZE, sizeof(kr));
crypto/openssl/crypto/aria/aria.c
1067
xor128(w1.c, w3.c, &kr);
crypto/openssl/crypto/aria/aria.c
1069
xor128(w2.c, w3.c, &w0);
crypto/openssl/crypto/aria/aria.c
1071
xor128(w3.c, kr.c, &w1);
crypto/openssl/crypto/aria/aria.c
845
o[i] = x[i] ^ y->c[i];
crypto/openssl/crypto/aria/aria.c
860
t.c[(i + bytes) % ARIA_BLOCK_SIZE] = z->c[i];
crypto/openssl/crypto/aria/aria.c
862
o->c[i] = ((t.c[i] >> bits) | (t.c[i ? i - 1 : ARIA_BLOCK_SIZE - 1] << (8 - bits))) ^ xor->c[i];
crypto/openssl/crypto/aria/aria.c
918
o->c[i] = sb1[x->c[i] ^ y->c[i]];
crypto/openssl/crypto/aria/aria.c
919
o->c[i + 1] = sb2[x->c[i + 1] ^ y->c[i + 1]];
crypto/openssl/crypto/aria/aria.c
920
o->c[i + 2] = sb3[x->c[i + 2] ^ y->c[i + 2]];
crypto/openssl/crypto/aria/aria.c
921
o->c[i + 3] = sb4[x->c[i + 3] ^ y->c[i + 3]];
crypto/openssl/crypto/aria/aria.c
933
o[i] = sb3[x->c[i] ^ y->c[i]];
crypto/openssl/crypto/aria/aria.c
934
o[i + 1] = sb4[x->c[i + 1] ^ y->c[i + 1]];
crypto/openssl/crypto/aria/aria.c
935
o[i + 2] = sb1[x->c[i + 2] ^ y->c[i + 2]];
crypto/openssl/crypto/aria/aria.c
936
o[i + 3] = sb2[x->c[i + 3] ^ y->c[i + 3]];
crypto/openssl/crypto/aria/aria.c
946
y->c[0] = x->c[3] ^ x->c[4] ^ x->c[6] ^ x->c[8] ^ x->c[9] ^ x->c[13] ^ x->c[14];
crypto/openssl/crypto/aria/aria.c
947
y->c[1] = x->c[2] ^ x->c[5] ^ x->c[7] ^ x->c[8] ^ x->c[9] ^ x->c[12] ^ x->c[15];
crypto/openssl/crypto/aria/aria.c
948
y->c[2] = x->c[1] ^ x->c[4] ^ x->c[6] ^ x->c[10] ^ x->c[11] ^ x->c[12] ^ x->c[15];
crypto/openssl/crypto/aria/aria.c
949
y->c[3] = x->c[0] ^ x->c[5] ^ x->c[7] ^ x->c[10] ^ x->c[11] ^ x->c[13] ^ x->c[14];
crypto/openssl/crypto/aria/aria.c
950
y->c[4] = x->c[0] ^ x->c[2] ^ x->c[5] ^ x->c[8] ^ x->c[11] ^ x->c[14] ^ x->c[15];
crypto/openssl/crypto/aria/aria.c
951
y->c[5] = x->c[1] ^ x->c[3] ^ x->c[4] ^ x->c[9] ^ x->c[10] ^ x->c[14] ^ x->c[15];
crypto/openssl/crypto/aria/aria.c
952
y->c[6] = x->c[0] ^ x->c[2] ^ x->c[7] ^ x->c[9] ^ x->c[10] ^ x->c[12] ^ x->c[13];
crypto/openssl/crypto/aria/aria.c
953
y->c[7] = x->c[1] ^ x->c[3] ^ x->c[6] ^ x->c[8] ^ x->c[11] ^ x->c[12] ^ x->c[13];
crypto/openssl/crypto/aria/aria.c
954
y->c[8] = x->c[0] ^ x->c[1] ^ x->c[4] ^ x->c[7] ^ x->c[10] ^ x->c[13] ^ x->c[15];
crypto/openssl/crypto/aria/aria.c
955
y->c[9] = x->c[0] ^ x->c[1] ^ x->c[5] ^ x->c[6] ^ x->c[11] ^ x->c[12] ^ x->c[14];
crypto/openssl/crypto/aria/aria.c
956
y->c[10] = x->c[2] ^ x->c[3] ^ x->c[5] ^ x->c[6] ^ x->c[8] ^ x->c[13] ^ x->c[15];
crypto/openssl/crypto/aria/aria.c
957
y->c[11] = x->c[2] ^ x->c[3] ^ x->c[4] ^ x->c[7] ^ x->c[9] ^ x->c[12] ^ x->c[14];
crypto/openssl/crypto/aria/aria.c
958
y->c[12] = x->c[1] ^ x->c[2] ^ x->c[6] ^ x->c[7] ^ x->c[9] ^ x->c[11] ^ x->c[12];
crypto/openssl/crypto/aria/aria.c
959
y->c[13] = x->c[0] ^ x->c[3] ^ x->c[6] ^ x->c[7] ^ x->c[8] ^ x->c[10] ^ x->c[13];
crypto/openssl/crypto/aria/aria.c
960
y->c[14] = x->c[0] ^ x->c[3] ^ x->c[4] ^ x->c[5] ^ x->c[9] ^ x->c[11] ^ x->c[14];
crypto/openssl/crypto/aria/aria.c
961
y->c[15] = x->c[1] ^ x->c[2] ^ x->c[4] ^ x->c[5] ^ x->c[8] ^ x->c[10] ^ x->c[15];
crypto/openssl/crypto/aria/aria.c
988
sl2(y.c, d, rk);
crypto/openssl/crypto/asn1/a_bitstr.c
151
unsigned char *c;
crypto/openssl/crypto/asn1/a_bitstr.c
170
c = OPENSSL_clear_realloc(a->data, a->length, w + 1);
crypto/openssl/crypto/asn1/a_bitstr.c
171
if (c == NULL)
crypto/openssl/crypto/asn1/a_bitstr.c
174
memset(c + a->length, 0, w + 1 - a->length);
crypto/openssl/crypto/asn1/a_bitstr.c
175
a->data = c;
crypto/openssl/crypto/asn1/a_object.c
110
|| !BN_add_word(bl, c - '0'))
crypto/openssl/crypto/asn1/a_object.c
113
l = l * 10L + (long)(c - '0');
crypto/openssl/crypto/asn1/a_object.c
53
int i, first, len = 0, c, use_bn;
crypto/openssl/crypto/asn1/a_object.c
66
c = *(p++);
crypto/openssl/crypto/asn1/a_object.c
68
if ((c >= '0') && (c <= '2')) {
crypto/openssl/crypto/asn1/a_object.c
69
first = c - '0';
crypto/openssl/crypto/asn1/a_object.c
79
c = *(p++);
crypto/openssl/crypto/asn1/a_object.c
84
if ((c != '.') && (c != ' ')) {
crypto/openssl/crypto/asn1/a_object.c
94
c = *(p++);
crypto/openssl/crypto/asn1/a_object.c
95
if ((c == ' ') || (c == '.'))
crypto/openssl/crypto/asn1/a_object.c
97
if (!ossl_isdigit(c)) {
crypto/openssl/crypto/asn1/a_print.c
17
int c;
crypto/openssl/crypto/asn1/a_print.c
28
c = *(s++);
crypto/openssl/crypto/asn1/a_print.c
29
if (!ossl_isasn1print(c))
crypto/openssl/crypto/asn1/a_print.c
31
if (!ossl_isascii(c))
crypto/openssl/crypto/asn1/a_strex.c
140
unsigned long c;
crypto/openssl/crypto/asn1/a_strex.c
172
c = ((unsigned long)*p++) << 24;
crypto/openssl/crypto/asn1/a_strex.c
173
c |= ((unsigned long)*p++) << 16;
crypto/openssl/crypto/asn1/a_strex.c
174
c |= ((unsigned long)*p++) << 8;
crypto/openssl/crypto/asn1/a_strex.c
175
c |= *p++;
crypto/openssl/crypto/asn1/a_strex.c
179
c = ((unsigned long)*p++) << 8;
crypto/openssl/crypto/asn1/a_strex.c
180
c |= *p++;
crypto/openssl/crypto/asn1/a_strex.c
184
c = *p++;
crypto/openssl/crypto/asn1/a_strex.c
188
i = UTF8_getc(p, buflen, &c);
crypto/openssl/crypto/asn1/a_strex.c
201
int utflen = UTF8_putc(utfbuf, sizeof(utfbuf), c);
crypto/openssl/crypto/asn1/a_strex.c
219
len = do_esc_char(c, flags | orflags, quotes,
crypto/openssl/crypto/asn1/a_strex.c
63
static int do_esc_char(unsigned long c, unsigned short flags, char *do_quotes,
crypto/openssl/crypto/asn1/a_strex.c
70
if (c > 0xffffffffL)
crypto/openssl/crypto/asn1/a_strex.c
72
if (c > 0xffff) {
crypto/openssl/crypto/asn1/a_strex.c
73
BIO_snprintf(tmphex, sizeof(tmphex), "\\W%08lX", c);
crypto/openssl/crypto/asn1/a_strex.c
78
if (c > 0xff) {
crypto/openssl/crypto/asn1/a_strex.c
79
BIO_snprintf(tmphex, sizeof(tmphex), "\\U%04lX", c);
crypto/openssl/crypto/asn1/a_strex.c
84
chtmp = (unsigned char)c;
crypto/openssl/crypto/asn1/a_time.c
58
int c;
crypto/openssl/crypto/asn1/a_time.c
70
c = y / 100;
crypto/openssl/crypto/asn1/a_time.c
73
tm->tm_wday = (d + (13 * m) / 5 + y + y / 4 + c / 4 + 5 * c + 6) % 7;
crypto/openssl/crypto/asn1/asn1_lib.c
288
unsigned char *c;
crypto/openssl/crypto/asn1/asn1_lib.c
309
c = str->data;
crypto/openssl/crypto/asn1/asn1_lib.c
312
str->data = OPENSSL_realloc(c, len != 0 ? len : 1);
crypto/openssl/crypto/asn1/asn1_lib.c
314
str->data = OPENSSL_realloc(c, len + 1);
crypto/openssl/crypto/asn1/asn1_lib.c
317
str->data = c;
crypto/openssl/crypto/asn1/asn_mime.c
1017
char *p, c;
crypto/openssl/crypto/asn1/asn_mime.c
1036
c = *p;
crypto/openssl/crypto/asn1/asn_mime.c
1037
if (c == '\n') {
crypto/openssl/crypto/asn1/asn_mime.c
1039
} else if (is_eol && (flags & SMIME_ASCIICRLF) != 0 && c == 32) {
crypto/openssl/crypto/asn1/asn_mime.c
1042
} else if (c != '\r') {
crypto/openssl/crypto/asn1/asn_mime.c
254
char bound[33], c;
crypto/openssl/crypto/asn1/asn_mime.c
274
c = bound[i] & 0xf;
crypto/openssl/crypto/asn1/asn_mime.c
275
if (c < 10)
crypto/openssl/crypto/asn1/asn_mime.c
276
c += '0';
crypto/openssl/crypto/asn1/asn_mime.c
278
c += 'A' - 10;
crypto/openssl/crypto/asn1/asn_mime.c
279
bound[i] = c;
crypto/openssl/crypto/asn1/asn_mime.c
694
char *p, *q, c;
crypto/openssl/crypto/asn1/asn_mime.c
712
for (p = linebuf, q = linebuf; (c = *p) && (c != '\r') && (c != '\n');
crypto/openssl/crypto/asn1/asn_mime.c
722
if (c == ':') {
crypto/openssl/crypto/asn1/asn_mime.c
731
if (c == ';') {
crypto/openssl/crypto/asn1/asn_mime.c
744
} else if (c == '(') {
crypto/openssl/crypto/asn1/asn_mime.c
751
if (c == ')') {
crypto/openssl/crypto/asn1/asn_mime.c
757
if (c == '=') {
crypto/openssl/crypto/asn1/asn_mime.c
766
if (c == ';') {
crypto/openssl/crypto/asn1/asn_mime.c
772
} else if (c == '"') {
crypto/openssl/crypto/asn1/asn_mime.c
775
} else if (c == '(') {
crypto/openssl/crypto/asn1/asn_mime.c
782
if (c == '"') {
crypto/openssl/crypto/asn1/asn_mime.c
827
char *p, c;
crypto/openssl/crypto/asn1/asn_mime.c
829
for (p = name; (c = *p); p++) {
crypto/openssl/crypto/asn1/asn_mime.c
830
if (c == '"') {
crypto/openssl/crypto/asn1/asn_mime.c
837
if (!ossl_isspace(c))
crypto/openssl/crypto/asn1/asn_mime.c
846
char *p, c;
crypto/openssl/crypto/asn1/asn_mime.c
851
c = *p;
crypto/openssl/crypto/asn1/asn_mime.c
852
if (c == '"') {
crypto/openssl/crypto/asn1/asn_mime.c
858
if (ossl_isspace(c))
crypto/openssl/crypto/asn1/p5_scrypt.c
241
const EVP_CIPHER *c, const EVP_MD *md, int en_de,
crypto/openssl/crypto/asn1/p5_scrypt.c
311
const EVP_CIPHER *c, const EVP_MD *md, int en_de)
crypto/openssl/crypto/asn1/p5_scrypt.c
313
return PKCS5_v2_scrypt_keyivgen_ex(ctx, pass, passlen, param, c, md, en_de, NULL, NULL);
crypto/openssl/crypto/asn1/tasn_dec.c
114
#define asn1_tlc_clear(c) \
crypto/openssl/crypto/asn1/tasn_dec.c
116
if ((c) != NULL) \
crypto/openssl/crypto/asn1/tasn_dec.c
117
(c)->valid = 0; \
crypto/openssl/crypto/asn1/tasn_dec.c
120
#define asn1_tlc_clear_nc(c) \
crypto/openssl/crypto/asn1/tasn_dec.c
122
(c)->valid = 0; \
crypto/openssl/crypto/asn1/tasn_dec.c
163
ASN1_TLC c;
crypto/openssl/crypto/asn1/tasn_dec.c
168
asn1_tlc_clear_nc(&c);
crypto/openssl/crypto/asn1/tasn_dec.c
169
if (asn1_item_ex_d2i_intern(pval, in, len, it, -1, 0, 0, &c, libctx,
crypto/openssl/crypto/asn1/tasn_enc.c
528
unsigned char c;
crypto/openssl/crypto/asn1/tasn_enc.c
587
c = (unsigned char)*tbool;
crypto/openssl/crypto/asn1/tasn_enc.c
588
cont = &c;
crypto/openssl/crypto/async/arch/async_null.h
25
#define async_fibre_makecontext(c) 0
crypto/openssl/crypto/async/arch/async_win.h
31
#define async_fibre_makecontext(c) \
crypto/openssl/crypto/async/arch/async_win.h
32
((c)->fibre = CreateFiberEx(0, 0, FIBER_FLAG_FLOAT_SWITCH, \
crypto/openssl/crypto/async/arch/async_win.h
35
#define async_fibre_makecontext(c) \
crypto/openssl/crypto/async/arch/async_win.h
36
((c)->fibre = CreateFiber(0, async_start_func_win, 0))
crypto/openssl/crypto/bf/bf_cfb64.c
33
unsigned char *iv, c, cc;
crypto/openssl/crypto/bf/bf_cfb64.c
51
c = *(in++) ^ iv[n];
crypto/openssl/crypto/bf/bf_cfb64.c
52
*(out++) = c;
crypto/openssl/crypto/bf/bf_cfb64.c
53
iv[n] = c;
crypto/openssl/crypto/bf/bf_cfb64.c
72
c = iv[n];
crypto/openssl/crypto/bf/bf_cfb64.c
74
*(out++) = c ^ cc;
crypto/openssl/crypto/bf/bf_cfb64.c
78
v0 = v1 = ti[0] = ti[1] = t = c = cc = 0;
crypto/openssl/crypto/bf/bf_local.h
15
#define n2ln(c, l1, l2, n) \
crypto/openssl/crypto/bf/bf_local.h
17
c += n; \
crypto/openssl/crypto/bf/bf_local.h
21
l2 = ((unsigned long)(*(--(c)))); \
crypto/openssl/crypto/bf/bf_local.h
24
l2 |= ((unsigned long)(*(--(c)))) << 8; \
crypto/openssl/crypto/bf/bf_local.h
27
l2 |= ((unsigned long)(*(--(c)))) << 16; \
crypto/openssl/crypto/bf/bf_local.h
30
l2 |= ((unsigned long)(*(--(c)))) << 24; \
crypto/openssl/crypto/bf/bf_local.h
33
l1 = ((unsigned long)(*(--(c)))); \
crypto/openssl/crypto/bf/bf_local.h
36
l1 |= ((unsigned long)(*(--(c)))) << 8; \
crypto/openssl/crypto/bf/bf_local.h
39
l1 |= ((unsigned long)(*(--(c)))) << 16; \
crypto/openssl/crypto/bf/bf_local.h
42
l1 |= ((unsigned long)(*(--(c)))) << 24; \
crypto/openssl/crypto/bf/bf_local.h
47
#define l2nn(l1, l2, c, n) \
crypto/openssl/crypto/bf/bf_local.h
49
c += n; \
crypto/openssl/crypto/bf/bf_local.h
52
*(--(c)) = (unsigned char)(((l2)) & 0xff); \
crypto/openssl/crypto/bf/bf_local.h
55
*(--(c)) = (unsigned char)(((l2) >> 8) & 0xff); \
crypto/openssl/crypto/bf/bf_local.h
58
*(--(c)) = (unsigned char)(((l2) >> 16) & 0xff); \
crypto/openssl/crypto/bf/bf_local.h
61
*(--(c)) = (unsigned char)(((l2) >> 24) & 0xff); \
crypto/openssl/crypto/bf/bf_local.h
64
*(--(c)) = (unsigned char)(((l1)) & 0xff); \
crypto/openssl/crypto/bf/bf_local.h
67
*(--(c)) = (unsigned char)(((l1) >> 8) & 0xff); \
crypto/openssl/crypto/bf/bf_local.h
70
*(--(c)) = (unsigned char)(((l1) >> 16) & 0xff); \
crypto/openssl/crypto/bf/bf_local.h
73
*(--(c)) = (unsigned char)(((l1) >> 24) & 0xff); \
crypto/openssl/crypto/bf/bf_local.h
78
#define n2l(c, l) (l = ((unsigned long)(*((c)++))) << 24L, \
crypto/openssl/crypto/bf/bf_local.h
79
l |= ((unsigned long)(*((c)++))) << 16L, \
crypto/openssl/crypto/bf/bf_local.h
80
l |= ((unsigned long)(*((c)++))) << 8L, \
crypto/openssl/crypto/bf/bf_local.h
81
l |= ((unsigned long)(*((c)++))))
crypto/openssl/crypto/bf/bf_local.h
84
#define l2n(l, c) (*((c)++) = (unsigned char)(((l) >> 24L) & 0xff), \
crypto/openssl/crypto/bf/bf_local.h
85
*((c)++) = (unsigned char)(((l) >> 16L) & 0xff), \
crypto/openssl/crypto/bf/bf_local.h
86
*((c)++) = (unsigned char)(((l) >> 8L) & 0xff), \
crypto/openssl/crypto/bf/bf_local.h
87
*((c)++) = (unsigned char)(((l)) & 0xff))
crypto/openssl/crypto/bio/bf_lbuf.c
120
char c;
crypto/openssl/crypto/bio/bf_lbuf.c
122
for (p = in, c = '\0'; p < in + inl && (c = *p) != '\n'; p++)
crypto/openssl/crypto/bio/bf_lbuf.c
124
if (c == '\n') {
crypto/openssl/crypto/bio/bf_prefix.c
108
char c;
crypto/openssl/crypto/bio/bf_prefix.c
126
for (i = 0, c = '\0'; i < outl && (c = out[i]) != '\n'; i++)
crypto/openssl/crypto/bio/bf_prefix.c
128
if (c == '\n')
crypto/openssl/crypto/bio/bf_prefix.c
144
if (c == '\n')
crypto/openssl/crypto/bio/bio_print.c
835
char **buffer, size_t *currlen, size_t *maxlen, int c)
crypto/openssl/crypto/bio/bio_print.c
871
(*sbuffer)[(*currlen)++] = (char)c;
crypto/openssl/crypto/bio/bio_print.c
873
(*buffer)[(*currlen)++] = (char)c;
crypto/openssl/crypto/bio/bss_acpt.c
119
BIO_ACCEPT *c;
crypto/openssl/crypto/bio/bss_acpt.c
121
c = (BIO_ACCEPT *)bio->ptr;
crypto/openssl/crypto/bio/bss_acpt.c
122
if (c->accept_sock != (int)INVALID_SOCKET) {
crypto/openssl/crypto/bio/bss_acpt.c
123
shutdown(c->accept_sock, 2);
crypto/openssl/crypto/bio/bss_acpt.c
124
closesocket(c->accept_sock);
crypto/openssl/crypto/bio/bss_acpt.c
125
c->accept_sock = (int)INVALID_SOCKET;
crypto/openssl/crypto/bio/bss_acpt.c
148
static int acpt_state(BIO *b, BIO_ACCEPT *c)
crypto/openssl/crypto/bio/bss_acpt.c
154
switch (c->state) {
crypto/openssl/crypto/bio/bss_acpt.c
156
if (c->param_addr == NULL && c->param_serv == NULL) {
crypto/openssl/crypto/bio/bss_acpt.c
160
c->param_addr, c->param_serv);
crypto/openssl/crypto/bio/bss_acpt.c
168
OPENSSL_free(c->cache_accepting_name);
crypto/openssl/crypto/bio/bss_acpt.c
169
c->cache_accepting_name = NULL;
crypto/openssl/crypto/bio/bss_acpt.c
170
OPENSSL_free(c->cache_accepting_serv);
crypto/openssl/crypto/bio/bss_acpt.c
171
c->cache_accepting_serv = NULL;
crypto/openssl/crypto/bio/bss_acpt.c
172
OPENSSL_free(c->cache_peer_name);
crypto/openssl/crypto/bio/bss_acpt.c
173
c->cache_peer_name = NULL;
crypto/openssl/crypto/bio/bss_acpt.c
174
OPENSSL_free(c->cache_peer_serv);
crypto/openssl/crypto/bio/bss_acpt.c
175
c->cache_peer_serv = NULL;
crypto/openssl/crypto/bio/bss_acpt.c
177
c->state = ACPT_S_GET_ADDR;
crypto/openssl/crypto/bio/bss_acpt.c
182
switch (c->accept_family) {
crypto/openssl/crypto/bio/bss_acpt.c
206
if (BIO_lookup(c->param_addr, c->param_serv, BIO_LOOKUP_SERVER,
crypto/openssl/crypto/bio/bss_acpt.c
207
family, SOCK_STREAM, &c->addr_first)
crypto/openssl/crypto/bio/bss_acpt.c
211
if (c->addr_first == NULL) {
crypto/openssl/crypto/bio/bss_acpt.c
215
c->addr_iter = c->addr_first;
crypto/openssl/crypto/bio/bss_acpt.c
216
c->state = ACPT_S_CREATE_SOCKET;
crypto/openssl/crypto/bio/bss_acpt.c
221
s = BIO_socket(BIO_ADDRINFO_family(c->addr_iter),
crypto/openssl/crypto/bio/bss_acpt.c
222
BIO_ADDRINFO_socktype(c->addr_iter),
crypto/openssl/crypto/bio/bss_acpt.c
223
BIO_ADDRINFO_protocol(c->addr_iter), 0);
crypto/openssl/crypto/bio/bss_acpt.c
225
if ((c->addr_iter = BIO_ADDRINFO_next(c->addr_iter)) != NULL) {
crypto/openssl/crypto/bio/bss_acpt.c
235
c->param_addr, c->param_serv);
crypto/openssl/crypto/bio/bss_acpt.c
239
c->accept_sock = s;
crypto/openssl/crypto/bio/bss_acpt.c
241
c->state = ACPT_S_LISTEN;
crypto/openssl/crypto/bio/bss_acpt.c
246
if (!BIO_listen(c->accept_sock,
crypto/openssl/crypto/bio/bss_acpt.c
247
BIO_ADDRINFO_address(c->addr_iter),
crypto/openssl/crypto/bio/bss_acpt.c
248
c->bind_mode)) {
crypto/openssl/crypto/bio/bss_acpt.c
249
BIO_closesocket(c->accept_sock);
crypto/openssl/crypto/bio/bss_acpt.c
250
c->accept_sock = (int)INVALID_SOCKET;
crypto/openssl/crypto/bio/bss_acpt.c
259
info.addr = &c->cache_accepting_addr;
crypto/openssl/crypto/bio/bss_acpt.c
260
if (!BIO_sock_info(c->accept_sock, BIO_SOCK_INFO_ADDRESS,
crypto/openssl/crypto/bio/bss_acpt.c
262
BIO_closesocket(c->accept_sock);
crypto/openssl/crypto/bio/bss_acpt.c
263
c->accept_sock = (int)INVALID_SOCKET;
crypto/openssl/crypto/bio/bss_acpt.c
270
OPENSSL_free(c->cache_accepting_name);
crypto/openssl/crypto/bio/bss_acpt.c
271
OPENSSL_free(c->cache_accepting_serv);
crypto/openssl/crypto/bio/bss_acpt.c
272
c->cache_accepting_name = BIO_ADDR_hostname_string(&c->cache_accepting_addr, 1);
crypto/openssl/crypto/bio/bss_acpt.c
273
c->cache_accepting_serv = BIO_ADDR_service_string(&c->cache_accepting_addr, 1);
crypto/openssl/crypto/bio/bss_acpt.c
274
c->state = ACPT_S_ACCEPT;
crypto/openssl/crypto/bio/bss_acpt.c
281
c->state = ACPT_S_OK;
crypto/openssl/crypto/bio/bss_acpt.c
287
OPENSSL_free(c->cache_peer_name);
crypto/openssl/crypto/bio/bss_acpt.c
288
c->cache_peer_name = NULL;
crypto/openssl/crypto/bio/bss_acpt.c
289
OPENSSL_free(c->cache_peer_serv);
crypto/openssl/crypto/bio/bss_acpt.c
290
c->cache_peer_serv = NULL;
crypto/openssl/crypto/bio/bss_acpt.c
292
s = BIO_accept_ex(c->accept_sock, &c->cache_peer_addr,
crypto/openssl/crypto/bio/bss_acpt.c
293
c->accepted_mode);
crypto/openssl/crypto/bio/bss_acpt.c
325
if (c->bio_chain != NULL) {
crypto/openssl/crypto/bio/bss_acpt.c
326
if ((dbio = BIO_dup_chain(c->bio_chain)) == NULL)
crypto/openssl/crypto/bio/bss_acpt.c
335
c->cache_peer_name = BIO_ADDR_hostname_string(&c->cache_peer_addr, 1);
crypto/openssl/crypto/bio/bss_acpt.c
336
c->cache_peer_serv = BIO_ADDR_service_string(&c->cache_peer_addr, 1);
crypto/openssl/crypto/bio/bss_acpt.c
337
c->state = ACPT_S_OK;
crypto/openssl/crypto/bio/bss_acpt.c
344
c->state = ACPT_S_ACCEPT;
crypto/openssl/crypto/bio/bss_acpt.c
44
static int acpt_state(BIO *b, BIO_ACCEPT *c);
crypto/openssl/crypto/bio/bss_conn.c
100
if (c->dgram_bio == NULL)
crypto/openssl/crypto/bio/bss_conn.c
107
c->state = BIO_CONN_S_CONNECT_ERROR;
crypto/openssl/crypto/bio/bss_conn.c
111
static int conn_state(BIO *b, BIO_CONNECT *c)
crypto/openssl/crypto/bio/bss_conn.c
116
if (c->info_callback != NULL)
crypto/openssl/crypto/bio/bss_conn.c
117
cb = c->info_callback;
crypto/openssl/crypto/bio/bss_conn.c
120
switch (c->state) {
crypto/openssl/crypto/bio/bss_conn.c
122
if (c->param_hostname == NULL && c->param_service == NULL) {
crypto/openssl/crypto/bio/bss_conn.c
126
c->param_hostname, c->param_service);
crypto/openssl/crypto/bio/bss_conn.c
129
c->state = BIO_CONN_S_GET_ADDR;
crypto/openssl/crypto/bio/bss_conn.c
134
switch (c->connect_family) {
crypto/openssl/crypto/bio/bss_conn.c
158
if (BIO_lookup(c->param_hostname, c->param_service,
crypto/openssl/crypto/bio/bss_conn.c
160
family, c->connect_sock_type,
crypto/openssl/crypto/bio/bss_conn.c
161
&c->addr_first)
crypto/openssl/crypto/bio/bss_conn.c
165
if (c->addr_first == NULL) {
crypto/openssl/crypto/bio/bss_conn.c
169
c->addr_iter = c->addr_first;
crypto/openssl/crypto/bio/bss_conn.c
170
c->state = BIO_CONN_S_CREATE_SOCKET;
crypto/openssl/crypto/bio/bss_conn.c
174
ret = BIO_socket(BIO_ADDRINFO_family(c->addr_iter),
crypto/openssl/crypto/bio/bss_conn.c
175
BIO_ADDRINFO_socktype(c->addr_iter),
crypto/openssl/crypto/bio/bss_conn.c
176
BIO_ADDRINFO_protocol(c->addr_iter), 0);
crypto/openssl/crypto/bio/bss_conn.c
180
c->param_hostname, c->param_service);
crypto/openssl/crypto/bio/bss_conn.c
185
c->state = BIO_CONN_S_CONNECT;
crypto/openssl/crypto/bio/bss_conn.c
192
opts = c->connect_mode;
crypto/openssl/crypto/bio/bss_conn.c
193
if (BIO_ADDRINFO_socktype(c->addr_iter) == SOCK_STREAM)
crypto/openssl/crypto/bio/bss_conn.c
196
ret = BIO_connect(b->num, BIO_ADDRINFO_address(c->addr_iter), opts);
crypto/openssl/crypto/bio/bss_conn.c
201
c->state = BIO_CONN_S_BLOCKED_CONNECT;
crypto/openssl/crypto/bio/bss_conn.c
204
} else if ((c->addr_iter = BIO_ADDRINFO_next(c->addr_iter))
crypto/openssl/crypto/bio/bss_conn.c
210
c->state = BIO_CONN_S_CREATE_SOCKET;
crypto/openssl/crypto/bio/bss_conn.c
217
c->param_hostname, c->param_service);
crypto/openssl/crypto/bio/bss_conn.c
218
c->state = BIO_CONN_S_CONNECT_ERROR;
crypto/openssl/crypto/bio/bss_conn.c
224
if (!conn_create_dgram_bio(b, c))
crypto/openssl/crypto/bio/bss_conn.c
226
c->state = BIO_CONN_S_OK;
crypto/openssl/crypto/bio/bss_conn.c
237
if ((c->addr_iter = BIO_ADDRINFO_next(c->addr_iter)) != NULL) {
crypto/openssl/crypto/bio/bss_conn.c
242
c->state = BIO_CONN_S_CREATE_SOCKET;
crypto/openssl/crypto/bio/bss_conn.c
247
c->param_hostname, c->param_service);
crypto/openssl/crypto/bio/bss_conn.c
252
if (!conn_create_dgram_bio(b, c))
crypto/openssl/crypto/bio/bss_conn.c
254
c->state = BIO_CONN_S_OK;
crypto/openssl/crypto/bio/bss_conn.c
272
if ((ret = cb((BIO *)b, c->state, ret)) == 0)
crypto/openssl/crypto/bio/bss_conn.c
280
ret = cb((BIO *)b, c->state, ret);
crypto/openssl/crypto/bio/bss_conn.c
325
BIO_CONNECT *c;
crypto/openssl/crypto/bio/bss_conn.c
327
c = (BIO_CONNECT *)bio->ptr;
crypto/openssl/crypto/bio/bss_conn.c
330
if (c->state == BIO_CONN_S_OK)
crypto/openssl/crypto/bio/bss_conn.c
63
static int conn_state(BIO *b, BIO_CONNECT *c);
crypto/openssl/crypto/bio/bss_conn.c
93
static int conn_create_dgram_bio(BIO *b, BIO_CONNECT *c)
crypto/openssl/crypto/bio/bss_conn.c
95
if (c->connect_sock_type != SOCK_DGRAM)
crypto/openssl/crypto/bio/bss_conn.c
99
c->dgram_bio = BIO_new_dgram(b->num, 0);
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
267
int c = 0;
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
275
r[0] = (t1 - t2 - c) & BN_MASK2;
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
277
c = (t1 < t2);
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
283
r[1] = (t1 - t2 - c) & BN_MASK2;
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
285
c = (t1 < t2);
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
291
r[2] = (t1 - t2 - c) & BN_MASK2;
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
293
c = (t1 < t2);
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
299
r[3] = (t1 - t2 - c) & BN_MASK2;
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
301
c = (t1 < t2);
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
309
return c;
crypto/openssl/crypto/bn/bn_asm.c
106
BN_ULONG c = 0;
crypto/openssl/crypto/bn/bn_asm.c
118
mul_add(rp[0], ap[0], bl, bh, c);
crypto/openssl/crypto/bn/bn_asm.c
119
mul_add(rp[1], ap[1], bl, bh, c);
crypto/openssl/crypto/bn/bn_asm.c
120
mul_add(rp[2], ap[2], bl, bh, c);
crypto/openssl/crypto/bn/bn_asm.c
121
mul_add(rp[3], ap[3], bl, bh, c);
crypto/openssl/crypto/bn/bn_asm.c
128
mul_add(rp[0], ap[0], bl, bh, c);
crypto/openssl/crypto/bn/bn_asm.c
133
return c;
crypto/openssl/crypto/bn/bn_asm.c
315
BN_ULONG c, l, t;
crypto/openssl/crypto/bn/bn_asm.c
321
c = 0;
crypto/openssl/crypto/bn/bn_asm.c
325
t = (t + c) & BN_MASK2;
crypto/openssl/crypto/bn/bn_asm.c
326
c = (t < c);
crypto/openssl/crypto/bn/bn_asm.c
328
c += (l < t);
crypto/openssl/crypto/bn/bn_asm.c
331
t = (t + c) & BN_MASK2;
crypto/openssl/crypto/bn/bn_asm.c
332
c = (t < c);
crypto/openssl/crypto/bn/bn_asm.c
334
c += (l < t);
crypto/openssl/crypto/bn/bn_asm.c
337
t = (t + c) & BN_MASK2;
crypto/openssl/crypto/bn/bn_asm.c
338
c = (t < c);
crypto/openssl/crypto/bn/bn_asm.c
340
c += (l < t);
crypto/openssl/crypto/bn/bn_asm.c
343
t = (t + c) & BN_MASK2;
crypto/openssl/crypto/bn/bn_asm.c
344
c = (t < c);
crypto/openssl/crypto/bn/bn_asm.c
346
c += (l < t);
crypto/openssl/crypto/bn/bn_asm.c
356
t = (t + c) & BN_MASK2;
crypto/openssl/crypto/bn/bn_asm.c
357
c = (t < c);
crypto/openssl/crypto/bn/bn_asm.c
359
c += (l < t);
crypto/openssl/crypto/bn/bn_asm.c
366
return (BN_ULONG)c;
crypto/openssl/crypto/bn/bn_asm.c
374
int c = 0;
crypto/openssl/crypto/bn/bn_asm.c
383
t2 = (t1 - c) & BN_MASK2;
crypto/openssl/crypto/bn/bn_asm.c
384
c = (t2 > t1);
crypto/openssl/crypto/bn/bn_asm.c
388
c += (t1 > t2);
crypto/openssl/crypto/bn/bn_asm.c
390
t2 = (t1 - c) & BN_MASK2;
crypto/openssl/crypto/bn/bn_asm.c
391
c = (t2 > t1);
crypto/openssl/crypto/bn/bn_asm.c
395
c += (t1 > t2);
crypto/openssl/crypto/bn/bn_asm.c
397
t2 = (t1 - c) & BN_MASK2;
crypto/openssl/crypto/bn/bn_asm.c
398
c = (t2 > t1);
crypto/openssl/crypto/bn/bn_asm.c
402
c += (t1 > t2);
crypto/openssl/crypto/bn/bn_asm.c
404
t2 = (t1 - c) & BN_MASK2;
crypto/openssl/crypto/bn/bn_asm.c
405
c = (t2 > t1);
crypto/openssl/crypto/bn/bn_asm.c
409
c += (t1 > t2);
crypto/openssl/crypto/bn/bn_asm.c
418
t2 = (t1 - c) & BN_MASK2;
crypto/openssl/crypto/bn/bn_asm.c
419
c = (t2 > t1);
crypto/openssl/crypto/bn/bn_asm.c
423
c += (t1 > t2);
crypto/openssl/crypto/bn/bn_asm.c
429
return c;
crypto/openssl/crypto/bn/bn_conv.c
123
int neg = 0, h, m, i, j, k, c;
crypto/openssl/crypto/bn/bn_conv.c
168
c = a[j - m];
crypto/openssl/crypto/bn/bn_conv.c
169
k = OPENSSL_hexchar2int(c);
crypto/openssl/crypto/bn/bn_gf2m.c
551
BIGNUM *b, *c = NULL, *u = NULL, *v = NULL, *tmp;
crypto/openssl/crypto/bn/bn_gf2m.c
560
c = BN_CTX_get(ctx);
crypto/openssl/crypto/bn/bn_gf2m.c
599
b = c;
crypto/openssl/crypto/bn/bn_gf2m.c
600
c = tmp;
crypto/openssl/crypto/bn/bn_gf2m.c
605
if (!BN_GF2m_add(b, b, c))
crypto/openssl/crypto/bn/bn_gf2m.c
629
if (!bn_wexpand(c, top))
crypto/openssl/crypto/bn/bn_gf2m.c
631
cdp = c->d;
crypto/openssl/crypto/bn/bn_gf2m.c
634
c->top = top;
crypto/openssl/crypto/bn/bn_gf2m.c
675
b = c;
crypto/openssl/crypto/bn/bn_gf2m.c
676
c = tmp;
crypto/openssl/crypto/bn/bn_gf2m.c
680
cdp = c->d;
crypto/openssl/crypto/bn/bn_gf2m.c
707
bn_correct_top(c);
crypto/openssl/crypto/bn/bn_local.h
476
#define mul_add(r, a, w, c) \
crypto/openssl/crypto/bn/bn_local.h
479
t = (BN_ULLONG)w * (a) + (r) + (c); \
crypto/openssl/crypto/bn/bn_local.h
481
(c) = Hw(t); \
crypto/openssl/crypto/bn/bn_local.h
484
#define mul(r, a, w, c) \
crypto/openssl/crypto/bn/bn_local.h
487
t = (BN_ULLONG)w * (a) + (c); \
crypto/openssl/crypto/bn/bn_local.h
489
(c) = Hw(t); \
crypto/openssl/crypto/bn/bn_local.h
501
#define mul_add(r, a, w, c) \
crypto/openssl/crypto/bn/bn_local.h
506
ret += (c); \
crypto/openssl/crypto/bn/bn_local.h
507
(c) = (ret < (c)); \
crypto/openssl/crypto/bn/bn_local.h
508
(c) += high; \
crypto/openssl/crypto/bn/bn_local.h
510
(c) += (ret < low); \
crypto/openssl/crypto/bn/bn_local.h
514
#define mul(r, a, w, c) \
crypto/openssl/crypto/bn/bn_local.h
518
ret = low + (c); \
crypto/openssl/crypto/bn/bn_local.h
519
(c) = high; \
crypto/openssl/crypto/bn/bn_local.h
520
(c) += (ret < low); \
crypto/openssl/crypto/bn/bn_local.h
531
#define mul_add(r, a, w, c) \
crypto/openssl/crypto/bn/bn_local.h
536
ret += (c); \
crypto/openssl/crypto/bn/bn_local.h
538
(c) = (ret < (c)); \
crypto/openssl/crypto/bn/bn_local.h
539
(c) += high; \
crypto/openssl/crypto/bn/bn_local.h
541
(c) += (ret < low); \
crypto/openssl/crypto/bn/bn_local.h
545
#define mul(r, a, w, c) \
crypto/openssl/crypto/bn/bn_local.h
550
ret = low + (c); \
crypto/openssl/crypto/bn/bn_local.h
551
(c) = high; \
crypto/openssl/crypto/bn/bn_local.h
552
(c) += (ret < low); \
crypto/openssl/crypto/bn/bn_local.h
614
#define mul_add(r, a, bl, bh, c) \
crypto/openssl/crypto/bn/bn_local.h
624
l = (l + (c)) & BN_MASK2; \
crypto/openssl/crypto/bn/bn_local.h
625
h += (l < (c)); \
crypto/openssl/crypto/bn/bn_local.h
626
(c) = (r); \
crypto/openssl/crypto/bn/bn_local.h
627
l = (l + (c)) & BN_MASK2; \
crypto/openssl/crypto/bn/bn_local.h
628
h += (l < (c)); \
crypto/openssl/crypto/bn/bn_local.h
629
(c) = h & BN_MASK2; \
crypto/openssl/crypto/bn/bn_local.h
633
#define mul(r, a, bl, bh, c) \
crypto/openssl/crypto/bn/bn_local.h
643
l += (c); \
crypto/openssl/crypto/bn/bn_local.h
644
h += ((l & BN_MASK2) < (c)); \
crypto/openssl/crypto/bn/bn_local.h
645
(c) = h & BN_MASK2; \
crypto/openssl/crypto/bn/bn_mul.c
101
r[3] = (t - c) & BN_MASK2;
crypto/openssl/crypto/bn/bn_mul.c
103
c = 0;
crypto/openssl/crypto/bn/bn_mul.c
153
return c;
crypto/openssl/crypto/bn/bn_mul.c
31
BN_ULONG c, t;
crypto/openssl/crypto/bn/bn_mul.c
34
c = bn_sub_words(r, a, b, cl);
crypto/openssl/crypto/bn/bn_mul.c
37
return c;
crypto/openssl/crypto/bn/bn_mul.c
46
r[0] = (0 - t - c) & BN_MASK2;
crypto/openssl/crypto/bn/bn_mul.c
48
c = 1;
crypto/openssl/crypto/bn/bn_mul.c
53
r[1] = (0 - t - c) & BN_MASK2;
crypto/openssl/crypto/bn/bn_mul.c
55
c = 1;
crypto/openssl/crypto/bn/bn_mul.c
60
r[2] = (0 - t - c) & BN_MASK2;
crypto/openssl/crypto/bn/bn_mul.c
62
c = 1;
crypto/openssl/crypto/bn/bn_mul.c
67
r[3] = (0 - t - c) & BN_MASK2;
crypto/openssl/crypto/bn/bn_mul.c
69
c = 1;
crypto/openssl/crypto/bn/bn_mul.c
78
while (c) {
crypto/openssl/crypto/bn/bn_mul.c
80
r[0] = (t - c) & BN_MASK2;
crypto/openssl/crypto/bn/bn_mul.c
82
c = 0;
crypto/openssl/crypto/bn/bn_mul.c
87
r[1] = (t - c) & BN_MASK2;
crypto/openssl/crypto/bn/bn_mul.c
89
c = 0;
crypto/openssl/crypto/bn/bn_mul.c
94
r[2] = (t - c) & BN_MASK2;
crypto/openssl/crypto/bn/bn_mul.c
96
c = 0;
crypto/openssl/crypto/bn/bn_nist.c
1060
register BN_ULONG *ap, t, c;
crypto/openssl/crypto/bn/bn_nist.c
1062
c = 0;
crypto/openssl/crypto/bn/bn_nist.c
1065
*(ap++) = ((t << 1) | c) & BN_MASK2;
crypto/openssl/crypto/bn/bn_nist.c
1066
c = (t & BN_TBIT) ? 1 : 0;
crypto/openssl/crypto/bn/bn_nist.c
1068
*ap = c;
crypto/openssl/crypto/bn/bn_nist.c
805
register BN_ULONG *ap, t, c;
crypto/openssl/crypto/bn/bn_nist.c
807
c = 0;
crypto/openssl/crypto/bn/bn_nist.c
810
*(ap++) = ((t << 1) | c) & BN_MASK2;
crypto/openssl/crypto/bn/bn_nist.c
811
c = (t & BN_TBIT) ? 1 : 0;
crypto/openssl/crypto/bn/bn_nist.c
814
carry |= c;
crypto/openssl/crypto/bn/bn_rand.c
60
unsigned char c;
crypto/openssl/crypto/bn/bn_rand.c
63
if (RAND_bytes_ex(libctx, &c, 1, strength) <= 0)
crypto/openssl/crypto/bn/bn_rand.c
65
if (c >= 128 && i > 0)
crypto/openssl/crypto/bn/bn_rand.c
67
else if (c < 42)
crypto/openssl/crypto/bn/bn_rand.c
69
else if (c < 84)
crypto/openssl/crypto/bn/bn_shift.c
16
register BN_ULONG *ap, *rp, t, c;
crypto/openssl/crypto/bn/bn_shift.c
33
c = 0;
crypto/openssl/crypto/bn/bn_shift.c
36
*(rp++) = ((t << 1) | c) & BN_MASK2;
crypto/openssl/crypto/bn/bn_shift.c
37
c = t >> (BN_BITS2 - 1);
crypto/openssl/crypto/bn/bn_shift.c
39
*rp = c;
crypto/openssl/crypto/bn/bn_shift.c
40
r->top += c;
crypto/openssl/crypto/bn/bn_shift.c
47
BN_ULONG *ap, *rp, t, c;
crypto/openssl/crypto/bn/bn_shift.c
68
c = t << (BN_BITS2 - 1);
crypto/openssl/crypto/bn/bn_shift.c
72
rp[i] = ((t >> 1) & BN_MASK2) | c;
crypto/openssl/crypto/bn/bn_shift.c
73
c = t << (BN_BITS2 - 1);
crypto/openssl/crypto/bsearch.c
18
int l, h, i = 0, c = 0;
crypto/openssl/crypto/bsearch.c
28
c = (*cmp)(key, p);
crypto/openssl/crypto/bsearch.c
29
if (c < 0)
crypto/openssl/crypto/bsearch.c
31
else if (c > 0)
crypto/openssl/crypto/bsearch.c
36
if (c != 0 && !(flags & OSSL_BSEARCH_VALUE_ON_NOMATCH))
crypto/openssl/crypto/bsearch.c
38
else if (c == 0 && (flags & OSSL_BSEARCH_FIRST_VALUE_ON_MATCH)) {
crypto/openssl/crypto/buffer/buffer.c
153
char c;
crypto/openssl/crypto/buffer/buffer.c
156
c = *q;
crypto/openssl/crypto/buffer/buffer.c
158
*out++ = c;
crypto/openssl/crypto/cast/c_cfb64.c
33
unsigned char *iv, c, cc;
crypto/openssl/crypto/cast/c_cfb64.c
51
c = *(in++) ^ iv[n];
crypto/openssl/crypto/cast/c_cfb64.c
52
*(out++) = c;
crypto/openssl/crypto/cast/c_cfb64.c
53
iv[n] = c;
crypto/openssl/crypto/cast/c_cfb64.c
72
c = iv[n];
crypto/openssl/crypto/cast/c_cfb64.c
74
*(out++) = c ^ cc;
crypto/openssl/crypto/cast/c_cfb64.c
78
v0 = v1 = ti[0] = ti[1] = t = c = cc = 0;
crypto/openssl/crypto/cast/cast_local.h
15
#define n2ln(c, l1, l2, n) \
crypto/openssl/crypto/cast/cast_local.h
150
CAST_LONG a, b, c, d; \
crypto/openssl/crypto/cast/cast_local.h
155
c = CAST_S_table2[(t >> 24) & 0xff]; \
crypto/openssl/crypto/cast/cast_local.h
157
L ^= (((((a OP2 b) & 0xffffffffL) OP3 c) & 0xffffffffL) OP1 d) & 0xffffffffL; \
crypto/openssl/crypto/cast/cast_local.h
17
c += n; \
crypto/openssl/crypto/cast/cast_local.h
21
l2 = ((unsigned long)(*(--(c)))); \
crypto/openssl/crypto/cast/cast_local.h
24
l2 |= ((unsigned long)(*(--(c)))) << 8; \
crypto/openssl/crypto/cast/cast_local.h
27
l2 |= ((unsigned long)(*(--(c)))) << 16; \
crypto/openssl/crypto/cast/cast_local.h
30
l2 |= ((unsigned long)(*(--(c)))) << 24; \
crypto/openssl/crypto/cast/cast_local.h
33
l1 = ((unsigned long)(*(--(c)))); \
crypto/openssl/crypto/cast/cast_local.h
36
l1 |= ((unsigned long)(*(--(c)))) << 8; \
crypto/openssl/crypto/cast/cast_local.h
39
l1 |= ((unsigned long)(*(--(c)))) << 16; \
crypto/openssl/crypto/cast/cast_local.h
42
l1 |= ((unsigned long)(*(--(c)))) << 24; \
crypto/openssl/crypto/cast/cast_local.h
47
#define l2nn(l1, l2, c, n) \
crypto/openssl/crypto/cast/cast_local.h
49
c += n; \
crypto/openssl/crypto/cast/cast_local.h
52
*(--(c)) = (unsigned char)(((l2)) & 0xff); \
crypto/openssl/crypto/cast/cast_local.h
55
*(--(c)) = (unsigned char)(((l2) >> 8) & 0xff); \
crypto/openssl/crypto/cast/cast_local.h
58
*(--(c)) = (unsigned char)(((l2) >> 16) & 0xff); \
crypto/openssl/crypto/cast/cast_local.h
61
*(--(c)) = (unsigned char)(((l2) >> 24) & 0xff); \
crypto/openssl/crypto/cast/cast_local.h
64
*(--(c)) = (unsigned char)(((l1)) & 0xff); \
crypto/openssl/crypto/cast/cast_local.h
67
*(--(c)) = (unsigned char)(((l1) >> 8) & 0xff); \
crypto/openssl/crypto/cast/cast_local.h
70
*(--(c)) = (unsigned char)(((l1) >> 16) & 0xff); \
crypto/openssl/crypto/cast/cast_local.h
73
*(--(c)) = (unsigned char)(((l1) >> 24) & 0xff); \
crypto/openssl/crypto/cast/cast_local.h
78
#define n2l(c, l) (l = ((unsigned long)(*((c)++))) << 24L, \
crypto/openssl/crypto/cast/cast_local.h
79
l |= ((unsigned long)(*((c)++))) << 16L, \
crypto/openssl/crypto/cast/cast_local.h
80
l |= ((unsigned long)(*((c)++))) << 8L, \
crypto/openssl/crypto/cast/cast_local.h
81
l |= ((unsigned long)(*((c)++))))
crypto/openssl/crypto/cast/cast_local.h
84
#define l2n(l, c) (*((c)++) = (unsigned char)(((l) >> 24L) & 0xff), \
crypto/openssl/crypto/cast/cast_local.h
85
*((c)++) = (unsigned char)(((l) >> 16L) & 0xff), \
crypto/openssl/crypto/cast/cast_local.h
86
*((c)++) = (unsigned char)(((l) >> 8L) & 0xff), \
crypto/openssl/crypto/cast/cast_local.h
87
*((c)++) = (unsigned char)(((l)) & 0xff))
crypto/openssl/crypto/chacha/chacha_enc.c
141
out[i] = inp[i] ^ buf.c[i];
crypto/openssl/crypto/chacha/chacha_enc.c
22
u8 c[64];
crypto/openssl/crypto/chacha/chacha_enc.c
57
#define QUARTERROUND(a, b, c, d) ( \
crypto/openssl/crypto/chacha/chacha_enc.c
59
x[c] += x[d], x[b] = ROTATE((x[b] ^ x[c]), 12), \
crypto/openssl/crypto/chacha/chacha_enc.c
61
x[c] += x[d], x[b] = ROTATE((x[b] ^ x[c]), 7))
crypto/openssl/crypto/chacha/chacha_enc.c
89
U32TO8_LITTLE(output->c + 4 * i, (x[i] + input[i]));
crypto/openssl/crypto/cmac/cmac.c
44
unsigned char c = l[0], carry = c >> 7, cnext;
crypto/openssl/crypto/cmac/cmac.c
47
for (i = 0; i < bl - 1; i++, c = cnext)
crypto/openssl/crypto/cmac/cmac.c
48
k1[i] = (c << 1) | ((cnext = l[i + 1]) >> 7);
crypto/openssl/crypto/cmac/cmac.c
51
k1[i] = (c << 1) ^ ((0 - carry) & (bl == 16 ? 0x87 : 0x1b));
crypto/openssl/crypto/conf/conf_def.c
1003
static int def_is_number(const CONF *conf, char c)
crypto/openssl/crypto/conf/conf_def.c
1005
return IS_NUMBER(conf, c);
crypto/openssl/crypto/conf/conf_def.c
1008
static int def_to_int(const CONF *conf, char c)
crypto/openssl/crypto/conf/conf_def.c
1010
return c - '0';
crypto/openssl/crypto/conf/conf_def.c
45
static int is_keytype(const CONF *conf, char c, unsigned short type);
crypto/openssl/crypto/conf/conf_def.c
70
static int def_is_number(const CONF *conf, char c);
crypto/openssl/crypto/conf/conf_def.c
71
static int def_to_int(const CONF *conf, char c);
crypto/openssl/crypto/conf/conf_def.c
891
static int is_keytype(const CONF *conf, char c, unsigned short type)
crypto/openssl/crypto/conf/conf_def.c
894
unsigned char key = (unsigned char)c;
crypto/openssl/crypto/conf/conf_def.h
30
#define IS_COMMENT(conf,c) is_keytype(conf, c, CONF_COMMENT)
crypto/openssl/crypto/conf/conf_def.h
31
#define IS_FCOMMENT(conf,c) is_keytype(conf, c, CONF_FCOMMENT)
crypto/openssl/crypto/conf/conf_def.h
32
#define IS_EOF(conf,c) is_keytype(conf, c, CONF_EOF)
crypto/openssl/crypto/conf/conf_def.h
33
#define IS_ESC(conf,c) is_keytype(conf, c, CONF_ESC)
crypto/openssl/crypto/conf/conf_def.h
34
#define IS_NUMBER(conf,c) is_keytype(conf, c, CONF_NUMBER)
crypto/openssl/crypto/conf/conf_def.h
35
#define IS_WS(conf,c) is_keytype(conf, c, CONF_WS)
crypto/openssl/crypto/conf/conf_def.h
36
#define IS_ALNUM(conf,c) is_keytype(conf, c, CONF_ALNUM)
crypto/openssl/crypto/conf/conf_def.h
37
#define IS_ALNUM_PUNCT(conf,c) is_keytype(conf, c, CONF_ALNUM_PUNCT)
crypto/openssl/crypto/conf/conf_def.h
38
#define IS_QUOTE(conf,c) is_keytype(conf, c, CONF_QUOTE)
crypto/openssl/crypto/conf/conf_def.h
39
#define IS_DQUOTE(conf,c) is_keytype(conf, c, CONF_DQUOTE)
crypto/openssl/crypto/conf/conf_def.h
40
#define IS_DOLLAR(conf,c) is_keytype(conf, c, CONF_DOLLAR)
crypto/openssl/crypto/conf/conf_lib.c
321
static int default_is_number(const CONF *conf, char c)
crypto/openssl/crypto/conf/conf_lib.c
323
return ossl_isdigit(c);
crypto/openssl/crypto/conf/conf_lib.c
326
static int default_to_int(const CONF *conf, char c)
crypto/openssl/crypto/conf/conf_lib.c
328
return (int)(c - '0');
crypto/openssl/crypto/cpuid.c
50
static int todigit(variant_char c)
crypto/openssl/crypto/cpuid.c
52
if (ossl_isdigit(c))
crypto/openssl/crypto/cpuid.c
53
return c - '0';
crypto/openssl/crypto/cpuid.c
54
else if (ossl_isxdigit(c))
crypto/openssl/crypto/cpuid.c
55
return ossl_tolower(c) - 'a' + 10;
crypto/openssl/crypto/cpuid.c
80
variant_char c;
crypto/openssl/crypto/cpuid.c
82
while ((c = *str)) {
crypto/openssl/crypto/cpuid.c
83
if (c == srch)
crypto/openssl/crypto/ct/ct_local.h
28
#define n2s(c, s) ((s = (((unsigned int)((c)[0])) << 8) | (((unsigned int)((c)[1])))), c += 2)
crypto/openssl/crypto/ct/ct_local.h
30
#define s2n(s, c) ((c[0] = (unsigned char)(((s) >> 8) & 0xff), \
crypto/openssl/crypto/ct/ct_local.h
31
c[1] = (unsigned char)(((s)) & 0xff)), \
crypto/openssl/crypto/ct/ct_local.h
32
c += 2)
crypto/openssl/crypto/ct/ct_local.h
34
#define l2n3(l, c) ((c[0] = (unsigned char)(((l) >> 16) & 0xff), \
crypto/openssl/crypto/ct/ct_local.h
35
c[1] = (unsigned char)(((l) >> 8) & 0xff), \
crypto/openssl/crypto/ct/ct_local.h
36
c[2] = (unsigned char)(((l)) & 0xff)), \
crypto/openssl/crypto/ct/ct_local.h
37
c += 3)
crypto/openssl/crypto/ct/ct_local.h
39
#define n2l8(c, l) (l = ((uint64_t)(*((c)++))) << 56, \
crypto/openssl/crypto/ct/ct_local.h
40
l |= ((uint64_t)(*((c)++))) << 48, \
crypto/openssl/crypto/ct/ct_local.h
41
l |= ((uint64_t)(*((c)++))) << 40, \
crypto/openssl/crypto/ct/ct_local.h
42
l |= ((uint64_t)(*((c)++))) << 32, \
crypto/openssl/crypto/ct/ct_local.h
43
l |= ((uint64_t)(*((c)++))) << 24, \
crypto/openssl/crypto/ct/ct_local.h
44
l |= ((uint64_t)(*((c)++))) << 16, \
crypto/openssl/crypto/ct/ct_local.h
45
l |= ((uint64_t)(*((c)++))) << 8, \
crypto/openssl/crypto/ct/ct_local.h
46
l |= ((uint64_t)(*((c)++))))
crypto/openssl/crypto/ct/ct_local.h
48
#define l2n8(l, c) (*((c)++) = (unsigned char)(((l) >> 56) & 0xff), \
crypto/openssl/crypto/ct/ct_local.h
49
*((c)++) = (unsigned char)(((l) >> 48) & 0xff), \
crypto/openssl/crypto/ct/ct_local.h
50
*((c)++) = (unsigned char)(((l) >> 40) & 0xff), \
crypto/openssl/crypto/ct/ct_local.h
51
*((c)++) = (unsigned char)(((l) >> 32) & 0xff), \
crypto/openssl/crypto/ct/ct_local.h
52
*((c)++) = (unsigned char)(((l) >> 24) & 0xff), \
crypto/openssl/crypto/ct/ct_local.h
53
*((c)++) = (unsigned char)(((l) >> 16) & 0xff), \
crypto/openssl/crypto/ct/ct_local.h
54
*((c)++) = (unsigned char)(((l) >> 8) & 0xff), \
crypto/openssl/crypto/ct/ct_local.h
55
*((c)++) = (unsigned char)(((l)) & 0xff))
crypto/openssl/crypto/ctype.c
227
int ossl_toascii(int c)
crypto/openssl/crypto/ctype.c
229
if (c < -128 || c > 256 || c == EOF)
crypto/openssl/crypto/ctype.c
230
return c;
crypto/openssl/crypto/ctype.c
237
if (c < 0)
crypto/openssl/crypto/ctype.c
238
c += 256;
crypto/openssl/crypto/ctype.c
239
return os_toascii[c];
crypto/openssl/crypto/ctype.c
242
int ossl_fromascii(int c)
crypto/openssl/crypto/ctype.c
244
if (c < -128 || c > 256 || c == EOF)
crypto/openssl/crypto/ctype.c
245
return c;
crypto/openssl/crypto/ctype.c
246
if (c < 0)
crypto/openssl/crypto/ctype.c
247
c += 256;
crypto/openssl/crypto/ctype.c
248
return os_toebcdic[c];
crypto/openssl/crypto/ctype.c
252
int ossl_ctype_check(int c, unsigned int mask)
crypto/openssl/crypto/ctype.c
255
const int a = ossl_toascii(c);
crypto/openssl/crypto/ctype.c
265
#define ASCII_IS_DIGIT(c) (c >= 0x30 && c <= 0x39)
crypto/openssl/crypto/ctype.c
266
#define ASCII_IS_UPPER(c) (c >= 0x41 && c <= 0x5A)
crypto/openssl/crypto/ctype.c
267
#define ASCII_IS_LOWER(c) (c >= 0x61 && c <= 0x7A)
crypto/openssl/crypto/ctype.c
269
int ossl_isdigit(int c)
crypto/openssl/crypto/ctype.c
271
int a = ossl_toascii(c);
crypto/openssl/crypto/ctype.c
276
int ossl_isupper(int c)
crypto/openssl/crypto/ctype.c
278
int a = ossl_toascii(c);
crypto/openssl/crypto/ctype.c
283
int ossl_islower(int c)
crypto/openssl/crypto/ctype.c
285
int a = ossl_toascii(c);
crypto/openssl/crypto/ctype.c
296
int ossl_tolower(int c)
crypto/openssl/crypto/ctype.c
298
int a = ossl_toascii(c);
crypto/openssl/crypto/ctype.c
300
return ASCII_IS_UPPER(a) ? c ^ case_change : c;
crypto/openssl/crypto/ctype.c
303
int ossl_toupper(int c)
crypto/openssl/crypto/ctype.c
305
int a = ossl_toascii(c);
crypto/openssl/crypto/ctype.c
307
return ASCII_IS_LOWER(a) ? c ^ case_change : c;
crypto/openssl/crypto/ctype.c
310
int ossl_ascii_isdigit(int c)
crypto/openssl/crypto/ctype.c
312
return ASCII_IS_DIGIT(c);
crypto/openssl/crypto/des/cfb64ede.c
33
unsigned char *iv, c, cc;
crypto/openssl/crypto/des/cfb64ede.c
53
c = *(in++) ^ iv[n];
crypto/openssl/crypto/des/cfb64ede.c
54
*(out++) = c;
crypto/openssl/crypto/des/cfb64ede.c
55
iv[n] = c;
crypto/openssl/crypto/des/cfb64ede.c
76
c = iv[n];
crypto/openssl/crypto/des/cfb64ede.c
78
*(out++) = c ^ cc;
crypto/openssl/crypto/des/cfb64ede.c
82
v0 = v1 = ti[0] = ti[1] = c = cc = 0;
crypto/openssl/crypto/des/cfb64enc.c
32
unsigned char *iv, c, cc;
crypto/openssl/crypto/des/cfb64enc.c
50
c = *(in++) ^ iv[n];
crypto/openssl/crypto/des/cfb64enc.c
51
*(out++) = c;
crypto/openssl/crypto/des/cfb64enc.c
52
iv[n] = c;
crypto/openssl/crypto/des/cfb64enc.c
71
c = iv[n];
crypto/openssl/crypto/des/cfb64enc.c
73
*(out++) = c ^ cc;
crypto/openssl/crypto/des/cfb64enc.c
77
v0 = v1 = ti[0] = ti[1] = c = cc = 0;
crypto/openssl/crypto/des/des_local.h
159
#define LOAD_DATA_tmp(a, b, c, d, e, f) LOAD_DATA(a, b, c, d, e, f, g)
crypto/openssl/crypto/des/des_local.h
29
#define c2l(c, l) (l = ((DES_LONG)(*((c)++))), \
crypto/openssl/crypto/des/des_local.h
30
l |= ((DES_LONG)(*((c)++))) << 8L, \
crypto/openssl/crypto/des/des_local.h
31
l |= ((DES_LONG)(*((c)++))) << 16L, \
crypto/openssl/crypto/des/des_local.h
32
l |= ((DES_LONG)(*((c)++))) << 24L)
crypto/openssl/crypto/des/des_local.h
35
#define c2ln(c, l1, l2, n) \
crypto/openssl/crypto/des/des_local.h
37
c += n; \
crypto/openssl/crypto/des/des_local.h
41
l2 = ((DES_LONG)(*(--(c)))) << 24L; \
crypto/openssl/crypto/des/des_local.h
44
l2 |= ((DES_LONG)(*(--(c)))) << 16L; \
crypto/openssl/crypto/des/des_local.h
47
l2 |= ((DES_LONG)(*(--(c)))) << 8L; \
crypto/openssl/crypto/des/des_local.h
50
l2 |= ((DES_LONG)(*(--(c)))); \
crypto/openssl/crypto/des/des_local.h
53
l1 = ((DES_LONG)(*(--(c)))) << 24L; \
crypto/openssl/crypto/des/des_local.h
56
l1 |= ((DES_LONG)(*(--(c)))) << 16L; \
crypto/openssl/crypto/des/des_local.h
59
l1 |= ((DES_LONG)(*(--(c)))) << 8L; \
crypto/openssl/crypto/des/des_local.h
62
l1 |= ((DES_LONG)(*(--(c)))); \
crypto/openssl/crypto/des/des_local.h
66
#define l2c(l, c) (*((c)++) = (unsigned char)(((l)) & 0xff), \
crypto/openssl/crypto/des/des_local.h
67
*((c)++) = (unsigned char)(((l) >> 8L) & 0xff), \
crypto/openssl/crypto/des/des_local.h
68
*((c)++) = (unsigned char)(((l) >> 16L) & 0xff), \
crypto/openssl/crypto/des/des_local.h
69
*((c)++) = (unsigned char)(((l) >> 24L) & 0xff))
crypto/openssl/crypto/des/des_local.h
72
#define l2cn(l1, l2, c, n) \
crypto/openssl/crypto/des/des_local.h
74
c += n; \
crypto/openssl/crypto/des/des_local.h
77
*(--(c)) = (unsigned char)(((l2) >> 24L) & 0xff); \
crypto/openssl/crypto/des/des_local.h
80
*(--(c)) = (unsigned char)(((l2) >> 16L) & 0xff); \
crypto/openssl/crypto/des/des_local.h
83
*(--(c)) = (unsigned char)(((l2) >> 8L) & 0xff); \
crypto/openssl/crypto/des/des_local.h
86
*(--(c)) = (unsigned char)(((l2)) & 0xff); \
crypto/openssl/crypto/des/des_local.h
89
*(--(c)) = (unsigned char)(((l1) >> 24L) & 0xff); \
crypto/openssl/crypto/des/des_local.h
92
*(--(c)) = (unsigned char)(((l1) >> 16L) & 0xff); \
crypto/openssl/crypto/des/des_local.h
95
*(--(c)) = (unsigned char)(((l1) >> 8L) & 0xff); \
crypto/openssl/crypto/des/des_local.h
98
*(--(c)) = (unsigned char)(((l1)) & 0xff); \
crypto/openssl/crypto/des/fcrypt.c
218
unsigned char c, u;
crypto/openssl/crypto/des/fcrypt.c
233
c = *(buf++);
crypto/openssl/crypto/des/fcrypt.c
234
if (!c)
crypto/openssl/crypto/des/fcrypt.c
236
key[i] = (c << 1);
crypto/openssl/crypto/des/fcrypt.c
252
c = 0;
crypto/openssl/crypto/des/fcrypt.c
254
c <<= 1;
crypto/openssl/crypto/des/fcrypt.c
256
c |= 1;
crypto/openssl/crypto/des/fcrypt.c
263
ret[i] = cov_2char[c];
crypto/openssl/crypto/des/set_key.c
714
register DES_LONG c, d, t, s, t2;
crypto/openssl/crypto/des/set_key.c
726
c2l(in, c);
crypto/openssl/crypto/des/set_key.c
733
PERM_OP(d, c, t, 4, 0x0f0f0f0fL);
crypto/openssl/crypto/des/set_key.c
734
HPERM_OP(c, t, -2, 0xcccc0000L);
crypto/openssl/crypto/des/set_key.c
736
PERM_OP(d, c, t, 1, 0x55555555L);
crypto/openssl/crypto/des/set_key.c
737
PERM_OP(c, d, t, 8, 0x00ff00ffL);
crypto/openssl/crypto/des/set_key.c
738
PERM_OP(d, c, t, 1, 0x55555555L);
crypto/openssl/crypto/des/set_key.c
739
d = (((d & 0x000000ffL) << 16L) | (d & 0x0000ff00L) | ((d & 0x00ff0000L) >> 16L) | ((c & 0xf0000000L) >> 4L));
crypto/openssl/crypto/des/set_key.c
740
c &= 0x0fffffffL;
crypto/openssl/crypto/des/set_key.c
744
c = ((c >> 2L) | (c << 26L));
crypto/openssl/crypto/des/set_key.c
747
c = ((c >> 1L) | (c << 27L));
crypto/openssl/crypto/des/set_key.c
750
c &= 0x0fffffffL;
crypto/openssl/crypto/des/set_key.c
756
s = des_skb[0][(c) & 0x3f] | des_skb[1][((c >> 6L) & 0x03) | ((c >> 7L) & 0x3c)] | des_skb[2][((c >> 13L) & 0x0f) | ((c >> 14L) & 0x30)] | des_skb[3][((c >> 20L) & 0x01) | ((c >> 21L) & 0x06) | ((c >> 22L) & 0x38)];
crypto/openssl/crypto/dso/dso_win32.c
461
static const char *openssl_strnchr(const char *string, int c, size_t len)
crypto/openssl/crypto/dso/dso_win32.c
466
if (*p == c)
crypto/openssl/crypto/dso/dso_win32.c
70
static const char *openssl_strnchr(const char *string, int c, size_t len);
crypto/openssl/crypto/ec/curve25519.c
2193
static uint8_t equal(signed char b, signed char c)
crypto/openssl/crypto/ec/curve25519.c
2196
uint8_t uc = c;
crypto/openssl/crypto/ec/curve25519.c
5119
const uint8_t *c)
crypto/openssl/crypto/ec/curve25519.c
5145
int64_t c0 = kBottom21Bits & load_3(c);
crypto/openssl/crypto/ec/curve25519.c
5146
int64_t c1 = kBottom21Bits & (load_4(c + 2) >> 5);
crypto/openssl/crypto/ec/curve25519.c
5147
int64_t c2 = kBottom21Bits & (load_3(c + 5) >> 2);
crypto/openssl/crypto/ec/curve25519.c
5148
int64_t c3 = kBottom21Bits & (load_4(c + 7) >> 7);
crypto/openssl/crypto/ec/curve25519.c
5149
int64_t c4 = kBottom21Bits & (load_4(c + 10) >> 4);
crypto/openssl/crypto/ec/curve25519.c
5150
int64_t c5 = kBottom21Bits & (load_3(c + 13) >> 1);
crypto/openssl/crypto/ec/curve25519.c
5151
int64_t c6 = kBottom21Bits & (load_4(c + 15) >> 6);
crypto/openssl/crypto/ec/curve25519.c
5152
int64_t c7 = kBottom21Bits & (load_3(c + 18) >> 3);
crypto/openssl/crypto/ec/curve25519.c
5153
int64_t c8 = kBottom21Bits & load_3(c + 21);
crypto/openssl/crypto/ec/curve25519.c
5154
int64_t c9 = kBottom21Bits & (load_4(c + 23) >> 5);
crypto/openssl/crypto/ec/curve25519.c
5155
int64_t c10 = kBottom21Bits & (load_3(c + 26) >> 2);
crypto/openssl/crypto/ec/curve25519.c
5156
int64_t c11 = (load_4(c + 28) >> 7);
crypto/openssl/crypto/ec/curve448/arch_32/f_impl.h
18
#define FIELD_LITERAL(a, b, c, d, e, f, g, h) \
crypto/openssl/crypto/ec/curve448/arch_32/f_impl.h
21
LIMB(a), LIMB(b), LIMB(c), LIMB(d), LIMB(e), LIMB(f), LIMB(g), LIMB(h) \
crypto/openssl/crypto/ec/curve448/arch_32/f_impl32.c
27
uint32_t *c = cs->limb;
crypto/openssl/crypto/ec/curve448/arch_32/f_impl32.c
55
c[j] = ((uint32_t)(accum0)) & mask;
crypto/openssl/crypto/ec/curve448/arch_32/f_impl32.c
56
c[j + 8] = ((uint32_t)(accum1)) & mask;
crypto/openssl/crypto/ec/curve448/arch_32/f_impl32.c
62
accum0 += c[8];
crypto/openssl/crypto/ec/curve448/arch_32/f_impl32.c
63
accum1 += c[0];
crypto/openssl/crypto/ec/curve448/arch_32/f_impl32.c
64
c[8] = ((uint32_t)(accum0)) & mask;
crypto/openssl/crypto/ec/curve448/arch_32/f_impl32.c
65
c[0] = ((uint32_t)(accum1)) & mask;
crypto/openssl/crypto/ec/curve448/arch_32/f_impl32.c
69
c[9] += ((uint32_t)(accum0));
crypto/openssl/crypto/ec/curve448/arch_32/f_impl32.c
70
c[1] += ((uint32_t)(accum1));
crypto/openssl/crypto/ec/curve448/arch_32/f_impl32.c
76
uint32_t *c = cs->limb;
crypto/openssl/crypto/ec/curve448/arch_32/f_impl32.c
86
c[i] = accum0 & mask;
crypto/openssl/crypto/ec/curve448/arch_32/f_impl32.c
88
c[i + 8] = accum8 & mask;
crypto/openssl/crypto/ec/curve448/arch_32/f_impl32.c
92
accum0 += accum8 + c[8];
crypto/openssl/crypto/ec/curve448/arch_32/f_impl32.c
93
c[8] = ((uint32_t)accum0) & mask;
crypto/openssl/crypto/ec/curve448/arch_32/f_impl32.c
94
c[9] += (uint32_t)(accum0 >> 28);
crypto/openssl/crypto/ec/curve448/arch_32/f_impl32.c
96
accum8 += c[0];
crypto/openssl/crypto/ec/curve448/arch_32/f_impl32.c
97
c[0] = ((uint32_t)accum8) & mask;
crypto/openssl/crypto/ec/curve448/arch_32/f_impl32.c
98
c[1] += (uint32_t)(accum8 >> 28);
crypto/openssl/crypto/ec/curve448/arch_64/f_impl.h
17
#define FIELD_LITERAL(a, b, c, d, e, f, g, h) \
crypto/openssl/crypto/ec/curve448/arch_64/f_impl.h
20
a, b, c, d, e, f, g, h \
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
105
uint64_t *c = cs->limb;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
126
c[3] = ((uint64_t)(accum1)) << 1 & mask;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
127
c[7] = ((uint64_t)(accum0)) << 1 & mask;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
148
c[0] = ((uint64_t)(accum0)) & mask;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
149
c[4] = ((uint64_t)(accum1)) & mask;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
168
c[1] = ((uint64_t)(accum0)) & mask;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
169
c[5] = ((uint64_t)(accum1)) & mask;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
192
c[2] = ((uint64_t)(accum0)) & mask;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
193
c[6] = ((uint64_t)(accum1)) & mask;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
198
accum0 += c[3];
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
199
accum1 += c[7];
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
200
c[3] = ((uint64_t)(accum0)) & mask;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
201
c[7] = ((uint64_t)(accum1)) & mask;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
207
c[4] += ((uint64_t)(accum0)) + ((uint64_t)(accum1));
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
208
c[0] += ((uint64_t)(accum1));
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
27
uint64_t *c = cs->limb;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
56
c[i] = ((uint64_t)(accum0)) & mask;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
57
c[i + 4] = ((uint64_t)(accum1)) & mask;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
64
accum0 += c[4];
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
65
accum1 += c[0];
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
66
c[4] = ((uint64_t)(accum0)) & mask;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
67
c[0] = ((uint64_t)(accum1)) & mask;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
72
c[5] += ((uint64_t)(accum0));
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
73
c[1] += ((uint64_t)(accum1));
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
79
uint64_t *c = cs->limb;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
87
c[i] = accum0 & mask;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
89
c[i + 4] = accum4 & mask;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
93
accum0 += accum4 + c[4];
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
94
c[4] = accum0 & mask;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
95
c[5] += accum0 >> 56;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
97
accum4 += c[0];
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
98
c[0] = accum4 & mask;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
99
c[1] += accum4 >> 56;
crypto/openssl/crypto/ec/curve448/curve448.c
125
gf a, b, c;
crypto/openssl/crypto/ec/curve448/curve448.c
131
ossl_gf_mul(d->x, e->c, d->t);
crypto/openssl/crypto/ec/curve448/curve448.c
132
gf_add_nr(c, a, d->y); /* 2+e */
crypto/openssl/crypto/ec/curve448/curve448.c
138
ossl_gf_mul(d->y, a, c);
crypto/openssl/crypto/ec/curve448/curve448.c
140
ossl_gf_mul(d->t, b, c);
crypto/openssl/crypto/ec/curve448/curve448.c
146
gf a, b, c;
crypto/openssl/crypto/ec/curve448/curve448.c
152
ossl_gf_mul(d->x, e->c, d->t);
crypto/openssl/crypto/ec/curve448/curve448.c
153
gf_add_nr(c, a, d->y); /* 2+e */
crypto/openssl/crypto/ec/curve448/curve448.c
159
ossl_gf_mul(d->y, a, c);
crypto/openssl/crypto/ec/curve448/curve448.c
161
ossl_gf_mul(d->t, b, c);
crypto/openssl/crypto/ec/curve448/curve448.c
203
gf a, b, c;
crypto/openssl/crypto/ec/curve448/curve448.c
212
gf_mulw(c, b, TWISTED_D);
crypto/openssl/crypto/ec/curve448/curve448.c
214
gf_add(b, b, c);
crypto/openssl/crypto/ec/curve448/curve448.c
350
gf a, b, c, d;
crypto/openssl/crypto/ec/curve448/curve448.c
353
ossl_gf_sqr(c, p->x);
crypto/openssl/crypto/ec/curve448/curve448.c
355
gf_add(d, c, a);
crypto/openssl/crypto/ec/curve448/curve448.c
359
gf_sub(p->t, a, c);
crypto/openssl/crypto/ec/curve448/curve448.c
369
OPENSSL_cleanse(c, sizeof(c));
crypto/openssl/crypto/ec/curve448/curve448.c
61
gf a, b, c, d;
crypto/openssl/crypto/ec/curve448/curve448.c
63
ossl_gf_sqr(c, q->x);
crypto/openssl/crypto/ec/curve448/curve448.c
65
gf_add_nr(d, c, a); /* 2+e */
crypto/openssl/crypto/ec/curve448/curve448.c
69
gf_sub_nr(p->t, a, c); /* 3+e */
crypto/openssl/crypto/ec/curve448/curve448.c
91
gf_cond_neg(n->c, neg);
crypto/openssl/crypto/ec/curve448/curve448.c
98
gf_mulw(b->n->c, a->t, 2 * TWISTED_D);
crypto/openssl/crypto/ec/curve448/eddsa.c
116
unsigned int c;
crypto/openssl/crypto/ec/curve448/eddsa.c
138
for (c = 1; c < C448_EDDSA_ENCODE_RATIO; c <<= 1)
crypto/openssl/crypto/ec/curve448/eddsa.c
168
unsigned int c;
crypto/openssl/crypto/ec/curve448/eddsa.c
217
for (c = 2; c < C448_EDDSA_ENCODE_RATIO; c <<= 1)
crypto/openssl/crypto/ec/curve448/f_generic.c
154
gf c;
crypto/openssl/crypto/ec/curve448/f_generic.c
158
gf_sub(c, a, b);
crypto/openssl/crypto/ec/curve448/f_generic.c
159
gf_strong_reduce(c);
crypto/openssl/crypto/ec/curve448/f_generic.c
162
ret |= c->limb[LIMBPERM(i)];
crypto/openssl/crypto/ec/curve448/field.h
103
static ossl_inline void gf_sub_nr(gf c, const gf a, const gf b)
crypto/openssl/crypto/ec/curve448/field.h
105
gf_sub_RAW(c, a, b);
crypto/openssl/crypto/ec/curve448/field.h
106
gf_bias(c, 2);
crypto/openssl/crypto/ec/curve448/field.h
108
gf_weak_reduce(c);
crypto/openssl/crypto/ec/curve448/field.h
112
static ossl_inline void gf_subx_nr(gf c, const gf a, const gf b, int amt)
crypto/openssl/crypto/ec/curve448/field.h
114
gf_sub_RAW(c, a, b);
crypto/openssl/crypto/ec/curve448/field.h
115
gf_bias(c, amt);
crypto/openssl/crypto/ec/curve448/field.h
117
gf_weak_reduce(c);
crypto/openssl/crypto/ec/curve448/field.h
121
static ossl_inline void gf_mulw(gf c, const gf a, int32_t w)
crypto/openssl/crypto/ec/curve448/field.h
124
ossl_gf_mulw_unsigned(c, a, w);
crypto/openssl/crypto/ec/curve448/field.h
126
ossl_gf_mulw_unsigned(c, a, -w);
crypto/openssl/crypto/ec/curve448/field.h
127
gf_sub(c, ZERO, c);
crypto/openssl/crypto/ec/curve448/point_448.h
26
gf a, b, c;
crypto/openssl/crypto/ec/ec_mult.c
279
#define EC_POINT_CSWAP(c, a, b, w, t) \
crypto/openssl/crypto/ec/ec_mult.c
281
BN_consttime_swap(c, (a)->X, (b)->X, w); \
crypto/openssl/crypto/ec/ec_mult.c
282
BN_consttime_swap(c, (a)->Y, (b)->Y, w); \
crypto/openssl/crypto/ec/ec_mult.c
283
BN_consttime_swap(c, (a)->Z, (b)->Z, w); \
crypto/openssl/crypto/ec/ec_mult.c
284
t = ((a)->Z_is_one ^ (b)->Z_is_one) & (c); \
crypto/openssl/crypto/ec/ecp_nistp256.c
734
int128_t c;
crypto/openssl/crypto/ec/ecp_nistp256.c
736
c = in[4] + (in[5] << 32);
crypto/openssl/crypto/ec/ecp_nistp256.c
737
out[0] += c;
crypto/openssl/crypto/ec/ecp_nistp256.c
738
out[3] -= c;
crypto/openssl/crypto/ec/ecp_nistp256.c
740
c = in[5] - in[7];
crypto/openssl/crypto/ec/ecp_nistp256.c
741
out[1] += c;
crypto/openssl/crypto/ec/ecp_nistp256.c
742
out[2] -= c;
crypto/openssl/crypto/ec/ecx_s390x.c
24
unsigned int c = 0;
crypto/openssl/crypto/ec/ecx_s390x.c
29
c += (unsigned int)u_red[31] + 19;
crypto/openssl/crypto/ec/ecx_s390x.c
30
u_red[31] = (unsigned char)c;
crypto/openssl/crypto/ec/ecx_s390x.c
31
c >>= 8;
crypto/openssl/crypto/ec/ecx_s390x.c
34
c += (unsigned int)u_red[i];
crypto/openssl/crypto/ec/ecx_s390x.c
35
u_red[i] = (unsigned char)c;
crypto/openssl/crypto/ec/ecx_s390x.c
36
c >>= 8;
crypto/openssl/crypto/ec/ecx_s390x.c
39
c = (u_red[0] & 0x80) >> 7;
crypto/openssl/crypto/ec/ecx_s390x.c
41
constant_time_cond_swap_buff(0 - (unsigned char)c,
crypto/openssl/crypto/ec/ecx_s390x.c
48
unsigned int c = 0;
crypto/openssl/crypto/ec/ecx_s390x.c
53
c += (unsigned int)u_red[55] + 1;
crypto/openssl/crypto/ec/ecx_s390x.c
54
u_red[55] = (unsigned char)c;
crypto/openssl/crypto/ec/ecx_s390x.c
55
c >>= 8;
crypto/openssl/crypto/ec/ecx_s390x.c
58
c += (unsigned int)u_red[i];
crypto/openssl/crypto/ec/ecx_s390x.c
59
u_red[i] = (unsigned char)c;
crypto/openssl/crypto/ec/ecx_s390x.c
60
c >>= 8;
crypto/openssl/crypto/ec/ecx_s390x.c
63
c += (unsigned int)u_red[27] + 1;
crypto/openssl/crypto/ec/ecx_s390x.c
64
u_red[27] = (unsigned char)c;
crypto/openssl/crypto/ec/ecx_s390x.c
65
c >>= 8;
crypto/openssl/crypto/ec/ecx_s390x.c
68
c += (unsigned int)u_red[i];
crypto/openssl/crypto/ec/ecx_s390x.c
69
u_red[i] = (unsigned char)c;
crypto/openssl/crypto/ec/ecx_s390x.c
70
c >>= 8;
crypto/openssl/crypto/ec/ecx_s390x.c
73
constant_time_cond_swap_buff(0 - (unsigned char)c,
crypto/openssl/crypto/engine/eng_dyn.c
159
dynamic_data_ctx *c = OPENSSL_zalloc(sizeof(*c));
crypto/openssl/crypto/engine/eng_dyn.c
162
if (c == NULL)
crypto/openssl/crypto/engine/eng_dyn.c
164
c->dirs = sk_OPENSSL_STRING_new_null();
crypto/openssl/crypto/engine/eng_dyn.c
165
if (c->dirs == NULL) {
crypto/openssl/crypto/engine/eng_dyn.c
169
c->DYNAMIC_F1 = "v_check";
crypto/openssl/crypto/engine/eng_dyn.c
170
c->DYNAMIC_F2 = "bind_engine";
crypto/openssl/crypto/engine/eng_dyn.c
171
c->dir_load = 1;
crypto/openssl/crypto/engine/eng_dyn.c
178
ret = ENGINE_set_ex_data(e, dynamic_ex_data_idx, c);
crypto/openssl/crypto/engine/eng_dyn.c
180
*ctx = c;
crypto/openssl/crypto/engine/eng_dyn.c
181
c = NULL;
crypto/openssl/crypto/engine/eng_dyn.c
191
if (c != NULL)
crypto/openssl/crypto/engine/eng_dyn.c
192
sk_OPENSSL_STRING_free(c->dirs);
crypto/openssl/crypto/engine/eng_dyn.c
193
OPENSSL_free(c);
crypto/openssl/crypto/engine/eng_table.c
55
static unsigned long engine_pile_hash(const ENGINE_PILE *c)
crypto/openssl/crypto/engine/eng_table.c
57
return c->nid;
crypto/openssl/crypto/evp/bio_enc.c
410
int BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k,
crypto/openssl/crypto/evp/bio_enc.c
424
if (callback_ex(b, BIO_CB_CTRL, (const char *)c, 0, BIO_CTRL_SET,
crypto/openssl/crypto/evp/bio_enc.c
433
if ((callback != NULL) && (callback(b, BIO_CB_CTRL, (const char *)c, BIO_CTRL_SET, e, 0L) <= 0))
crypto/openssl/crypto/evp/bio_enc.c
440
if (!EVP_CipherInit_ex(ctx->cipher, c, NULL, k, i, e))
crypto/openssl/crypto/evp/bio_enc.c
444
return callback_ex(b, BIO_CB_CTRL | BIO_CB_RETURN, (const char *)c, 0,
crypto/openssl/crypto/evp/bio_enc.c
448
return callback(b, BIO_CB_CTRL, (const char *)c, BIO_CTRL_SET, e, 1L);
crypto/openssl/crypto/evp/bio_ok.c
422
unsigned char *p = _ptr, c;
crypto/openssl/crypto/evp/bio_ok.c
425
c = p[0], p[0] = p[3], p[3] = c;
crypto/openssl/crypto/evp/bio_ok.c
426
c = p[1], p[1] = p[2], p[2] = c;
crypto/openssl/crypto/evp/e_aes.c
125
unsigned char c;
crypto/openssl/crypto/evp/e_aes.c
129
c = counter[n];
crypto/openssl/crypto/evp/e_aes.c
130
++c;
crypto/openssl/crypto/evp/e_aes.c
131
counter[n] = c;
crypto/openssl/crypto/evp/e_aes.c
132
if (c)
crypto/openssl/crypto/evp/e_aes.c
1444
static int s390x_aes_gcm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr)
crypto/openssl/crypto/evp/e_aes.c
1446
S390X_AES_GCM_CTX *gctx = EVP_C_DATA(S390X_AES_GCM_CTX, c);
crypto/openssl/crypto/evp/e_aes.c
1454
ivlen = EVP_CIPHER_get_iv_length(c->cipher);
crypto/openssl/crypto/evp/e_aes.c
1458
gctx->iv = c->iv;
crypto/openssl/crypto/evp/e_aes.c
1477
if (gctx->iv != c->iv)
crypto/openssl/crypto/evp/e_aes.c
1491
buf = EVP_CIPHER_CTX_buf_noconst(c);
crypto/openssl/crypto/evp/e_aes.c
1492
enc = EVP_CIPHER_CTX_is_encrypting(c);
crypto/openssl/crypto/evp/e_aes.c
1501
enc = EVP_CIPHER_CTX_is_encrypting(c);
crypto/openssl/crypto/evp/e_aes.c
1525
enc = EVP_CIPHER_CTX_is_encrypting(c);
crypto/openssl/crypto/evp/e_aes.c
1551
enc = EVP_CIPHER_CTX_is_encrypting(c);
crypto/openssl/crypto/evp/e_aes.c
1565
buf = EVP_CIPHER_CTX_buf_noconst(c);
crypto/openssl/crypto/evp/e_aes.c
1577
enc = EVP_CIPHER_CTX_is_encrypting(c);
crypto/openssl/crypto/evp/e_aes.c
1592
if (gctx->iv == c->iv) {
crypto/openssl/crypto/evp/e_aes.c
1768
static int s390x_aes_gcm_cleanup(EVP_CIPHER_CTX *c)
crypto/openssl/crypto/evp/e_aes.c
1770
S390X_AES_GCM_CTX *gctx = EVP_C_DATA(S390X_AES_GCM_CTX, c);
crypto/openssl/crypto/evp/e_aes.c
1775
if (gctx->iv != c->iv)
crypto/openssl/crypto/evp/e_aes.c
2157
static int s390x_aes_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr)
crypto/openssl/crypto/evp/e_aes.c
2159
S390X_AES_CCM_CTX *cctx = EVP_C_DATA(S390X_AES_CCM_CTX, c);
crypto/openssl/crypto/evp/e_aes.c
2183
buf = EVP_CIPHER_CTX_buf_noconst(c);
crypto/openssl/crypto/evp/e_aes.c
2194
enc = EVP_CIPHER_CTX_is_encrypting(c);
crypto/openssl/crypto/evp/e_aes.c
2214
memcpy(c->iv, ptr, arg);
crypto/openssl/crypto/evp/e_aes.c
2232
enc = EVP_CIPHER_CTX_is_encrypting(c);
crypto/openssl/crypto/evp/e_aes.c
2238
buf = EVP_CIPHER_CTX_buf_noconst(c);
crypto/openssl/crypto/evp/e_aes.c
2246
enc = EVP_CIPHER_CTX_is_encrypting(c);
crypto/openssl/crypto/evp/e_aes.c
2647
static int aes_gcm_cleanup(EVP_CIPHER_CTX *c)
crypto/openssl/crypto/evp/e_aes.c
2649
EVP_AES_GCM_CTX *gctx = EVP_C_DATA(EVP_AES_GCM_CTX, c);
crypto/openssl/crypto/evp/e_aes.c
2653
if (gctx->iv != c->iv)
crypto/openssl/crypto/evp/e_aes.c
2658
static int aes_gcm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr)
crypto/openssl/crypto/evp/e_aes.c
2660
EVP_AES_GCM_CTX *gctx = EVP_C_DATA(EVP_AES_GCM_CTX, c);
crypto/openssl/crypto/evp/e_aes.c
2665
gctx->ivlen = EVP_CIPHER_get_iv_length(c->cipher);
crypto/openssl/crypto/evp/e_aes.c
2666
gctx->iv = c->iv;
crypto/openssl/crypto/evp/e_aes.c
2681
if (gctx->iv != c->iv)
crypto/openssl/crypto/evp/e_aes.c
2690
if (arg <= 0 || arg > 16 || c->encrypt)
crypto/openssl/crypto/evp/e_aes.c
2692
memcpy(c->buf, ptr, arg);
crypto/openssl/crypto/evp/e_aes.c
2697
if (arg <= 0 || arg > 16 || !c->encrypt
crypto/openssl/crypto/evp/e_aes.c
2700
memcpy(ptr, c->buf, arg);
crypto/openssl/crypto/evp/e_aes.c
2718
if (c->encrypt && RAND_bytes(gctx->iv + arg, gctx->ivlen - arg) <= 0)
crypto/openssl/crypto/evp/e_aes.c
2739
if (gctx->iv_gen == 0 || gctx->key_set == 0 || c->encrypt)
crypto/openssl/crypto/evp/e_aes.c
2750
memcpy(c->buf, ptr, arg);
crypto/openssl/crypto/evp/e_aes.c
2754
unsigned int len = c->buf[arg - 2] << 8 | c->buf[arg - 1];
crypto/openssl/crypto/evp/e_aes.c
2760
if (!c->encrypt) {
crypto/openssl/crypto/evp/e_aes.c
2765
c->buf[arg - 2] = len >> 8;
crypto/openssl/crypto/evp/e_aes.c
2766
c->buf[arg - 1] = len & 0xff;
crypto/openssl/crypto/evp/e_aes.c
2779
if (gctx->iv == c->iv)
crypto/openssl/crypto/evp/e_aes.c
2931
gctx->gcm.Yi.c, gctx->gcm.Xi.u);
crypto/openssl/crypto/evp/e_aes.c
2949
gctx->gcm.Yi.c, gctx->gcm.Xi.u);
crypto/openssl/crypto/evp/e_aes.c
2972
gctx->gcm.Yi.c, gctx->gcm.Xi.u);
crypto/openssl/crypto/evp/e_aes.c
2990
gctx->gcm.Yi.c, gctx->gcm.Xi.u);
crypto/openssl/crypto/evp/e_aes.c
3087
gctx->gcm.key, gctx->gcm.Yi.c,
crypto/openssl/crypto/evp/e_aes.c
3109
gctx->gcm.key, gctx->gcm.Yi.c,
crypto/openssl/crypto/evp/e_aes.c
3132
gctx->gcm.Yi.c, gctx->gcm.Xi.u);
crypto/openssl/crypto/evp/e_aes.c
3154
gctx->gcm.Yi.c, gctx->gcm.Xi.u);
crypto/openssl/crypto/evp/e_aes.c
3197
static int aes_xts_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr)
crypto/openssl/crypto/evp/e_aes.c
3199
EVP_AES_XTS_CTX *xctx = EVP_C_DATA(EVP_AES_XTS_CTX, c);
crypto/openssl/crypto/evp/e_aes.c
3383
static int aes_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr)
crypto/openssl/crypto/evp/e_aes.c
3385
EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX, c);
crypto/openssl/crypto/evp/e_aes.c
3405
memcpy(EVP_CIPHER_CTX_buf_noconst(c), ptr, arg);
crypto/openssl/crypto/evp/e_aes.c
3408
uint16_t len = EVP_CIPHER_CTX_buf_noconst(c)[arg - 2] << 8
crypto/openssl/crypto/evp/e_aes.c
3409
| EVP_CIPHER_CTX_buf_noconst(c)[arg - 1];
crypto/openssl/crypto/evp/e_aes.c
3415
if (!EVP_CIPHER_CTX_is_encrypting(c)) {
crypto/openssl/crypto/evp/e_aes.c
3420
EVP_CIPHER_CTX_buf_noconst(c)[arg - 2] = len >> 8;
crypto/openssl/crypto/evp/e_aes.c
3421
EVP_CIPHER_CTX_buf_noconst(c)[arg - 1] = len & 0xff;
crypto/openssl/crypto/evp/e_aes.c
3431
memcpy(c->iv, ptr, arg);
crypto/openssl/crypto/evp/e_aes.c
3446
if (EVP_CIPHER_CTX_is_encrypting(c) && ptr)
crypto/openssl/crypto/evp/e_aes.c
3450
memcpy(EVP_CIPHER_CTX_buf_noconst(c), ptr, arg);
crypto/openssl/crypto/evp/e_aes.c
3456
if (!EVP_CIPHER_CTX_is_encrypting(c) || !cctx->tag_set)
crypto/openssl/crypto/evp/e_aes.c
3850
static int aes_ocb_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr)
crypto/openssl/crypto/evp/e_aes.c
3852
EVP_AES_OCB_CTX *octx = EVP_C_DATA(EVP_AES_OCB_CTX, c);
crypto/openssl/crypto/evp/e_aes.c
3860
octx->ivlen = EVP_CIPHER_get_iv_length(c->cipher);
crypto/openssl/crypto/evp/e_aes.c
3861
octx->iv = c->iv;
crypto/openssl/crypto/evp/e_aes.c
3888
if (arg != octx->taglen || EVP_CIPHER_CTX_is_encrypting(c))
crypto/openssl/crypto/evp/e_aes.c
3894
if (arg != octx->taglen || !EVP_CIPHER_CTX_is_encrypting(c))
crypto/openssl/crypto/evp/e_aes.c
4140
static int aes_ocb_cleanup(EVP_CIPHER_CTX *c)
crypto/openssl/crypto/evp/e_aes.c
4142
EVP_AES_OCB_CTX *octx = EVP_C_DATA(EVP_AES_OCB_CTX, c);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
100
void sha1_block_data_order(void *c, const void *p, size_t len);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
102
static void sha1_update(SHA_CTX *c, const void *data, size_t len)
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
107
if ((res = c->num)) {
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
111
SHA1_Update(c, ptr, res);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
120
sha1_block_data_order(c, ptr, len / SHA_CBLOCK);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
123
c->Nh += len >> 29;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
124
c->Nl += len <<= 3;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
125
if (c->Nl < (unsigned int)len)
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
126
c->Nh++;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
130
SHA1_Update(c, ptr, res);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
170
u8 c[128];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
181
if (RAND_bytes((IVs = blocks[0].c), 16 * x4) <= 0)
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
213
memcpy(blocks[0].c, key->md.data, 8);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
233
blocks[i].c[j] = ((u8 *)key->md.data)[j] + carry;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
234
carry = (blocks[i].c[j] - carry) >> (sizeof(carry) * 8 - 1);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
237
blocks[i].c[8] = ((u8 *)key->md.data)[8];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
238
blocks[i].c[9] = ((u8 *)key->md.data)[9];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
239
blocks[i].c[10] = ((u8 *)key->md.data)[10];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
241
blocks[i].c[11] = (u8)(len >> 8);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
242
blocks[i].c[12] = (u8)(len);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
244
memcpy(blocks[i].c + 13, hash_d[i].ptr, 64 - 13);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
248
edges[i].ptr = blocks[i].c;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
298
memcpy(blocks[i].c, ptr, off);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
299
blocks[i].c[off] = 0x80;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
306
PUTU32(blocks[i].c + 60, len);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
313
PUTU32(blocks[i].c + 124, len);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
317
edges[i].ptr = blocks[i].c;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
336
blocks[i].c[20] = 0x80;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
339
PUTU32(blocks[i].c + 0, ctx->A[i]);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
341
PUTU32(blocks[i].c + 4, ctx->B[i]);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
343
PUTU32(blocks[i].c + 8, ctx->C[i]);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
345
PUTU32(blocks[i].c + 12, ctx->D[i]);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
347
PUTU32(blocks[i].c + 16, ctx->E[i]);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
349
blocks[i].c[20] = 0x80;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
350
PUTU32(blocks[i].c + 60, (64 + 20) * 8);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
352
edges[i].ptr = blocks[i].c;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
478
unsigned char c[32 + SHA_DIGEST_LENGTH];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
482
pmac = (void *)(((size_t)mac.c + 31) & ((size_t)0 - 32));
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
490
unsigned char c[SHA_CBLOCK];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
596
mac.c[0] = 0;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
597
mac.c[1] = (unsigned char)(bitlen >> 16);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
598
mac.c[2] = (unsigned char)(bitlen >> 8);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
599
mac.c[3] = (unsigned char)bitlen;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
610
size_t c = out[j];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
612
c &= mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
613
c |= 0x80 & ~mask & ~((inp_len - j) >> (sizeof(j) * 8 - 8));
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
614
data->c[res++] = (unsigned char)c;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
633
data->c[i] = 0;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
667
pmac->c[4 * i + 0] = (unsigned char)(res >> 24);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
668
pmac->c[4 * i + 1] = (unsigned char)(res >> 16);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
669
pmac->c[4 * i + 2] = (unsigned char)(res >> 8);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
670
pmac->c[4 * i + 3] = (unsigned char)res;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
677
SHA1_Final(pmac->c, &key->md);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
693
SHA1_Update(&key->md, pmac->c, SHA_DIGEST_LENGTH);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
694
SHA1_Final(pmac->c, &key->md);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
703
unsigned int c, cmask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
706
c = p[j];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
708
res |= (c ^ pad) & ~cmask; /* ... and padding */
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
710
res |= (c ^ pmac->c[i]) & cmask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
719
res |= out[i] ^ pmac->c[i];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
101
if ((res = c->num)) {
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
105
SHA256_Update(c, ptr, res);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
114
sha256_block_data_order(c, ptr, len / SHA256_CBLOCK);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
117
c->Nh += len >> 29;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
118
c->Nl += len <<= 3;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
119
if (c->Nl < (unsigned int)len)
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
120
c->Nh++;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
124
SHA256_Update(c, ptr, res);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
164
u8 c[128];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
175
if (RAND_bytes((IVs = blocks[0].c), 16 * x4) <= 0)
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
208
memcpy(blocks[0].c, key->md.data, 8);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
231
blocks[i].c[j] = ((u8 *)key->md.data)[j] + carry;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
232
carry = (blocks[i].c[j] - carry) >> (sizeof(carry) * 8 - 1);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
235
blocks[i].c[8] = ((u8 *)key->md.data)[8];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
236
blocks[i].c[9] = ((u8 *)key->md.data)[9];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
237
blocks[i].c[10] = ((u8 *)key->md.data)[10];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
239
blocks[i].c[11] = (u8)(len >> 8);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
240
blocks[i].c[12] = (u8)(len);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
242
memcpy(blocks[i].c + 13, hash_d[i].ptr, 64 - 13);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
246
edges[i].ptr = blocks[i].c;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
296
memcpy(blocks[i].c, ptr, off);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
297
blocks[i].c[off] = 0x80;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
304
PUTU32(blocks[i].c + 60, len);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
311
PUTU32(blocks[i].c + 124, len);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
315
edges[i].ptr = blocks[i].c;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
340
blocks[i].c[32] = 0x80;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
343
PUTU32(blocks[i].c + 0, ctx->A[i]);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
345
PUTU32(blocks[i].c + 4, ctx->B[i]);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
347
PUTU32(blocks[i].c + 8, ctx->C[i]);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
349
PUTU32(blocks[i].c + 12, ctx->D[i]);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
351
PUTU32(blocks[i].c + 16, ctx->E[i]);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
353
PUTU32(blocks[i].c + 20, ctx->F[i]);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
355
PUTU32(blocks[i].c + 24, ctx->G[i]);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
357
PUTU32(blocks[i].c + 28, ctx->H[i]);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
359
blocks[i].c[32] = 0x80;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
360
PUTU32(blocks[i].c + 60, (64 + 32) * 8);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
362
edges[i].ptr = blocks[i].c;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
506
unsigned char c[64 + SHA256_DIGEST_LENGTH];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
510
pmac = (void *)(((size_t)mac.c + 63) & ((size_t)0 - 64));
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
522
unsigned char c[SHA256_CBLOCK];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
577
mac.c[0] = 0;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
578
mac.c[1] = (unsigned char)(bitlen >> 16);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
579
mac.c[2] = (unsigned char)(bitlen >> 8);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
580
mac.c[3] = (unsigned char)bitlen;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
594
size_t c = out[j];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
596
c &= mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
597
c |= 0x80 & ~mask & ~((inp_len - j) >> (sizeof(j) * 8 - 8));
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
598
data->c[res++] = (unsigned char)c;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
620
data->c[i] = 0;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
663
pmac->c[4 * i + 0] = (unsigned char)(res >> 24);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
664
pmac->c[4 * i + 1] = (unsigned char)(res >> 16);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
665
pmac->c[4 * i + 2] = (unsigned char)(res >> 8);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
666
pmac->c[4 * i + 3] = (unsigned char)res;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
673
SHA256_Final(pmac->c, &key->md);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
689
SHA256_Update(&key->md, pmac->c, SHA256_DIGEST_LENGTH);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
690
SHA256_Final(pmac->c, &key->md);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
699
unsigned int c, cmask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
703
c = p[j];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
705
res |= (c ^ pad) & ~cmask; /* ... and padding */
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
707
res |= (c ^ pmac->c[i]) & cmask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
716
res |= out[i] ^ pmac->c[i];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
94
void sha256_block_data_order(void *c, const void *p, size_t len);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
96
static void sha256_update(SHA256_CTX *c, const void *data, size_t len)
crypto/openssl/crypto/evp/e_aria.c
206
unsigned char c;
crypto/openssl/crypto/evp/e_aria.c
210
c = counter[n];
crypto/openssl/crypto/evp/e_aria.c
211
++c;
crypto/openssl/crypto/evp/e_aria.c
212
counter[n] = c;
crypto/openssl/crypto/evp/e_aria.c
213
if (c)
crypto/openssl/crypto/evp/e_aria.c
259
static int aria_gcm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr)
crypto/openssl/crypto/evp/e_aria.c
261
EVP_ARIA_GCM_CTX *gctx = EVP_C_DATA(EVP_ARIA_GCM_CTX, c);
crypto/openssl/crypto/evp/e_aria.c
267
gctx->ivlen = EVP_CIPHER_get_iv_length(c->cipher);
crypto/openssl/crypto/evp/e_aria.c
268
gctx->iv = c->iv;
crypto/openssl/crypto/evp/e_aria.c
283
if (gctx->iv != c->iv)
crypto/openssl/crypto/evp/e_aria.c
292
if (arg <= 0 || arg > 16 || EVP_CIPHER_CTX_is_encrypting(c))
crypto/openssl/crypto/evp/e_aria.c
294
memcpy(EVP_CIPHER_CTX_buf_noconst(c), ptr, arg);
crypto/openssl/crypto/evp/e_aria.c
299
if (arg <= 0 || arg > 16 || !EVP_CIPHER_CTX_is_encrypting(c)
crypto/openssl/crypto/evp/e_aria.c
302
memcpy(ptr, EVP_CIPHER_CTX_buf_noconst(c), arg);
crypto/openssl/crypto/evp/e_aria.c
320
if (EVP_CIPHER_CTX_is_encrypting(c)
crypto/openssl/crypto/evp/e_aria.c
343
|| EVP_CIPHER_CTX_is_encrypting(c))
crypto/openssl/crypto/evp/e_aria.c
354
memcpy(EVP_CIPHER_CTX_buf_noconst(c), ptr, arg);
crypto/openssl/crypto/evp/e_aria.c
357
unsigned int len = EVP_CIPHER_CTX_buf_noconst(c)[arg - 2] << 8
crypto/openssl/crypto/evp/e_aria.c
358
| EVP_CIPHER_CTX_buf_noconst(c)[arg - 1];
crypto/openssl/crypto/evp/e_aria.c
364
if (!EVP_CIPHER_CTX_is_encrypting(c)) {
crypto/openssl/crypto/evp/e_aria.c
369
EVP_CIPHER_CTX_buf_noconst(c)[arg - 2] = len >> 8;
crypto/openssl/crypto/evp/e_aria.c
370
EVP_CIPHER_CTX_buf_noconst(c)[arg - 1] = len & 0xff;
crypto/openssl/crypto/evp/e_aria.c
383
if (gctx->iv == c->iv)
crypto/openssl/crypto/evp/e_aria.c
538
static int aria_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr)
crypto/openssl/crypto/evp/e_aria.c
540
EVP_ARIA_CCM_CTX *cctx = EVP_C_DATA(EVP_ARIA_CCM_CTX, c);
crypto/openssl/crypto/evp/e_aria.c
561
memcpy(EVP_CIPHER_CTX_buf_noconst(c), ptr, arg);
crypto/openssl/crypto/evp/e_aria.c
564
uint16_t len = EVP_CIPHER_CTX_buf_noconst(c)[arg - 2] << 8
crypto/openssl/crypto/evp/e_aria.c
565
| EVP_CIPHER_CTX_buf_noconst(c)[arg - 1];
crypto/openssl/crypto/evp/e_aria.c
571
if (!EVP_CIPHER_CTX_is_encrypting(c)) {
crypto/openssl/crypto/evp/e_aria.c
576
EVP_CIPHER_CTX_buf_noconst(c)[arg - 2] = len >> 8;
crypto/openssl/crypto/evp/e_aria.c
577
EVP_CIPHER_CTX_buf_noconst(c)[arg - 1] = len & 0xff;
crypto/openssl/crypto/evp/e_aria.c
587
memcpy(c->iv, ptr, arg);
crypto/openssl/crypto/evp/e_aria.c
601
if (EVP_CIPHER_CTX_is_encrypting(c) && ptr)
crypto/openssl/crypto/evp/e_aria.c
605
memcpy(EVP_CIPHER_CTX_buf_noconst(c), ptr, arg);
crypto/openssl/crypto/evp/e_aria.c
611
if (!EVP_CIPHER_CTX_is_encrypting(c) || !cctx->tag_set)
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
274
unsigned char c = in[i];
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
275
out[i] = ctr[i] ^ c;
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
276
ctr[i] = c;
crypto/openssl/crypto/evp/e_des.c
152
unsigned char c[1];
crypto/openssl/crypto/evp/e_des.c
160
c[0] = (in[n / 8] & (1 << (7 - n % 8))) ? 0x80 : 0;
crypto/openssl/crypto/evp/e_des.c
161
DES_cfb_encrypt(c, d, 1, 1, EVP_CIPHER_CTX_get_cipher_data(ctx),
crypto/openssl/crypto/evp/e_des.c
230
static int des_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr)
crypto/openssl/crypto/evp/e_des.c
53
static int des_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr);
crypto/openssl/crypto/evp/e_des3.c
168
unsigned char c[1];
crypto/openssl/crypto/evp/e_des3.c
174
c[0] = (in[n / 8] & (1 << (7 - n % 8))) ? 0x80 : 0;
crypto/openssl/crypto/evp/e_des3.c
175
DES_ede3_cfb_encrypt(c, d, 1, 1,
crypto/openssl/crypto/evp/e_des3.c
60
static int des3_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr);
crypto/openssl/crypto/evp/e_rc2.c
130
static int rc2_get_asn1_type_and_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type)
crypto/openssl/crypto/evp/e_rc2.c
139
l = EVP_CIPHER_CTX_get_iv_length(c);
crypto/openssl/crypto/evp/e_rc2.c
147
if (i > 0 && !EVP_CipherInit_ex(c, NULL, NULL, NULL, iv, -1))
crypto/openssl/crypto/evp/e_rc2.c
149
if (EVP_CIPHER_CTX_ctrl(c, EVP_CTRL_SET_RC2_KEY_BITS, key_bits,
crypto/openssl/crypto/evp/e_rc2.c
152
|| EVP_CIPHER_CTX_set_key_length(c, key_bits / 8) <= 0)
crypto/openssl/crypto/evp/e_rc2.c
158
static int rc2_set_asn1_type_and_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type)
crypto/openssl/crypto/evp/e_rc2.c
164
num = rc2_meth_to_magic(c);
crypto/openssl/crypto/evp/e_rc2.c
165
j = EVP_CIPHER_CTX_get_iv_length(c);
crypto/openssl/crypto/evp/e_rc2.c
166
i = ASN1_TYPE_set_int_octetstring(type, num, c->oiv, j);
crypto/openssl/crypto/evp/e_rc2.c
171
static int rc2_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr)
crypto/openssl/crypto/evp/e_rc2.c
175
data(c)->key_bits = EVP_CIPHER_CTX_get_key_length(c) * 8;
crypto/openssl/crypto/evp/e_rc2.c
179
*(int *)ptr = data(c)->key_bits;
crypto/openssl/crypto/evp/e_rc2.c
184
data(c)->key_bits = arg;
crypto/openssl/crypto/evp/e_rc2.c
31
static int rc2_set_asn1_type_and_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type);
crypto/openssl/crypto/evp/e_rc2.c
32
static int rc2_get_asn1_type_and_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type);
crypto/openssl/crypto/evp/e_rc2.c
33
static int rc2_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr);
crypto/openssl/crypto/evp/e_rc5.c
29
static int rc5_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr);
crypto/openssl/crypto/evp/e_rc5.c
43
static int rc5_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr)
crypto/openssl/crypto/evp/e_rc5.c
47
data(c)->rounds = RC5_12_ROUNDS;
crypto/openssl/crypto/evp/e_rc5.c
51
*(int *)ptr = data(c)->rounds;
crypto/openssl/crypto/evp/e_rc5.c
59
data(c)->rounds = arg;
crypto/openssl/crypto/evp/encode.c
637
int i, ret = 0, a, b, c, d;
crypto/openssl/crypto/evp/encode.c
671
c = conv_ascii2bin(*(f++), table);
crypto/openssl/crypto/evp/encode.c
673
if ((a | b | c | d) & 0x80)
crypto/openssl/crypto/evp/encode.c
675
l = ((((unsigned long)a) << 18L) | (((unsigned long)b) << 12L) | (((unsigned long)c) << 6L) | (((unsigned long)d)));
crypto/openssl/crypto/evp/encode.c
685
c = conv_ascii2bin(*(f++), table);
crypto/openssl/crypto/evp/encode.c
687
if ((a | b | c | d) & 0x80)
crypto/openssl/crypto/evp/encode.c
689
l = ((((unsigned long)a) << 18L) | (((unsigned long)b) << 12L) | (((unsigned long)c) << 6L) | (((unsigned long)d)));
crypto/openssl/crypto/evp/encode.c
692
eof = (c == '=') + (d == '=');
crypto/openssl/crypto/evp/evp_enc.c
1368
int EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *c, int keylen)
crypto/openssl/crypto/evp/evp_enc.c
1370
if (c->cipher->prov != NULL) {
crypto/openssl/crypto/evp/evp_enc.c
1375
if (EVP_CIPHER_CTX_get_key_length(c) == keylen)
crypto/openssl/crypto/evp/evp_enc.c
1379
if (OSSL_PARAM_locate_const(EVP_CIPHER_settable_ctx_params(c->cipher),
crypto/openssl/crypto/evp/evp_enc.c
1389
ok = evp_do_ciph_ctx_setparams(c->cipher, c->algctx, params);
crypto/openssl/crypto/evp/evp_enc.c
1392
c->key_len = keylen;
crypto/openssl/crypto/evp/evp_enc.c
1402
if (c->cipher->flags & EVP_CIPH_CUSTOM_KEY_LENGTH)
crypto/openssl/crypto/evp/evp_enc.c
1403
return EVP_CIPHER_CTX_ctrl(c, EVP_CTRL_SET_KEY_LENGTH, keylen, NULL);
crypto/openssl/crypto/evp/evp_enc.c
1404
if (EVP_CIPHER_CTX_get_key_length(c) == keylen)
crypto/openssl/crypto/evp/evp_enc.c
1406
if ((keylen > 0) && (c->cipher->flags & EVP_CIPH_VARIABLE_LENGTH)) {
crypto/openssl/crypto/evp/evp_enc.c
1407
c->key_len = keylen;
crypto/openssl/crypto/evp/evp_enc.c
362
const EVP_CIPHER *c = ENGINE_get_cipher(impl, cipher->nid);
crypto/openssl/crypto/evp/evp_enc.c
364
if (c == NULL) {
crypto/openssl/crypto/evp/evp_enc.c
374
cipher = c;
crypto/openssl/crypto/evp/evp_key.c
102
if (!EVP_DigestInit_ex(c, md, NULL))
crypto/openssl/crypto/evp/evp_key.c
105
if (!EVP_DigestUpdate(c, &(md_buf[0]), mds))
crypto/openssl/crypto/evp/evp_key.c
107
if (!EVP_DigestUpdate(c, data, datal))
crypto/openssl/crypto/evp/evp_key.c
110
if (!EVP_DigestUpdate(c, salt, PKCS5_SALT_LEN))
crypto/openssl/crypto/evp/evp_key.c
112
if (!EVP_DigestFinal_ex(c, &(md_buf[0]), &mds))
crypto/openssl/crypto/evp/evp_key.c
116
if (!EVP_DigestInit_ex(c, md, NULL))
crypto/openssl/crypto/evp/evp_key.c
118
if (!EVP_DigestUpdate(c, &(md_buf[0]), mds))
crypto/openssl/crypto/evp/evp_key.c
120
if (!EVP_DigestFinal_ex(c, &(md_buf[0]), &mds))
crypto/openssl/crypto/evp/evp_key.c
153
EVP_MD_CTX_free(c);
crypto/openssl/crypto/evp/evp_key.c
85
EVP_MD_CTX *c;
crypto/openssl/crypto/evp/evp_key.c
98
c = EVP_MD_CTX_new();
crypto/openssl/crypto/evp/evp_key.c
99
if (c == NULL)
crypto/openssl/crypto/evp/evp_lib.c
1029
EVP_MD_CTX *c = (EVP_MD_CTX *)ctx;
crypto/openssl/crypto/evp/evp_lib.c
1032
gettables = EVP_MD_CTX_gettable_params(c);
crypto/openssl/crypto/evp/evp_lib.c
1046
if (EVP_MD_CTX_get_params(c, params) != 1
crypto/openssl/crypto/evp/evp_lib.c
108
ret = cipher->set_asn1_parameters(c, type);
crypto/openssl/crypto/evp/evp_lib.c
118
ret = evp_cipher_set_asn1_aead_params(c, type, asn1_params);
crypto/openssl/crypto/evp/evp_lib.c
128
ret = EVP_CIPHER_set_asn1_iv(c, type);
crypto/openssl/crypto/evp/evp_lib.c
137
ret = EVP_CIPHER_CTX_get_algor_params(c, &alg);
crypto/openssl/crypto/evp/evp_lib.c
152
int evp_cipher_asn1_to_param_ex(EVP_CIPHER_CTX *c, ASN1_TYPE *type,
crypto/openssl/crypto/evp/evp_lib.c
158
if (c == NULL || c->cipher == NULL)
crypto/openssl/crypto/evp/evp_lib.c
161
cipher = c->cipher;
crypto/openssl/crypto/evp/evp_lib.c
179
ret = cipher->get_asn1_parameters(c, type);
crypto/openssl/crypto/evp/evp_lib.c
187
ret = evp_cipher_get_asn1_aead_params(c, type, asn1_params);
crypto/openssl/crypto/evp/evp_lib.c
197
ret = EVP_CIPHER_get_asn1_iv(c, type) >= 0 ? 1 : -1;
crypto/openssl/crypto/evp/evp_lib.c
206
ret = EVP_CIPHER_CTX_set_algor_params(c, &alg);
crypto/openssl/crypto/evp/evp_lib.c
221
int evp_cipher_get_asn1_aead_params(EVP_CIPHER_CTX *c, ASN1_TYPE *type,
crypto/openssl/crypto/evp/evp_lib.c
241
int evp_cipher_set_asn1_aead_params(EVP_CIPHER_CTX *c, ASN1_TYPE *type,
crypto/openssl/crypto/evp/evp_lib.c
35
int EVP_CIPHER_param_to_asn1(EVP_CIPHER_CTX *c, ASN1_TYPE *type)
crypto/openssl/crypto/evp/evp_lib.c
37
return evp_cipher_param_to_asn1_ex(c, type, NULL);
crypto/openssl/crypto/evp/evp_lib.c
40
int EVP_CIPHER_asn1_to_param(EVP_CIPHER_CTX *c, ASN1_TYPE *type)
crypto/openssl/crypto/evp/evp_lib.c
42
return evp_cipher_asn1_to_param_ex(c, type, NULL);
crypto/openssl/crypto/evp/evp_lib.c
66
int EVP_CIPHER_set_asn1_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type)
crypto/openssl/crypto/evp/evp_lib.c
73
oiv = (unsigned char *)EVP_CIPHER_CTX_original_iv(c);
crypto/openssl/crypto/evp/evp_lib.c
74
j = EVP_CIPHER_CTX_get_iv_length(c);
crypto/openssl/crypto/evp/evp_lib.c
75
OPENSSL_assert(j <= sizeof(c->iv));
crypto/openssl/crypto/evp/evp_lib.c
81
int evp_cipher_param_to_asn1_ex(EVP_CIPHER_CTX *c, ASN1_TYPE *type,
crypto/openssl/crypto/evp/evp_lib.c
87
if (c == NULL || c->cipher == NULL)
crypto/openssl/crypto/evp/evp_lib.c
90
cipher = c->cipher;
crypto/openssl/crypto/evp/evp_local.h
270
const EVP_CIPHER *c, const EVP_MD *md,
crypto/openssl/crypto/evp/evp_local.h
274
const EVP_CIPHER *c, const EVP_MD *md,
crypto/openssl/crypto/evp/evp_local.h
356
int evp_cipher_get_asn1_aead_params(EVP_CIPHER_CTX *c, ASN1_TYPE *type,
crypto/openssl/crypto/evp/evp_local.h
358
int evp_cipher_set_asn1_aead_params(EVP_CIPHER_CTX *c, ASN1_TYPE *type,
crypto/openssl/crypto/evp/names.c
19
int EVP_add_cipher(const EVP_CIPHER *c)
crypto/openssl/crypto/evp/names.c
23
if (c == NULL)
crypto/openssl/crypto/evp/names.c
26
r = OBJ_NAME_add(OBJ_nid2sn(c->nid), OBJ_NAME_TYPE_CIPHER_METH,
crypto/openssl/crypto/evp/names.c
27
(const char *)c);
crypto/openssl/crypto/evp/names.c
30
r = OBJ_NAME_add(OBJ_nid2ln(c->nid), OBJ_NAME_TYPE_CIPHER_METH,
crypto/openssl/crypto/evp/names.c
31
(const char *)c);
crypto/openssl/crypto/evp/p5_crpt2.c
114
ASN1_TYPE *param, const EVP_CIPHER *c,
crypto/openssl/crypto/evp/p5_crpt2.c
175
ASN1_TYPE *param, const EVP_CIPHER *c,
crypto/openssl/crypto/evp/p5_crpt2.c
178
return PKCS5_v2_PBE_keyivgen_ex(ctx, pass, passlen, param, c, md, en_de, NULL, NULL);
crypto/openssl/crypto/evp/p5_crpt2.c
183
const EVP_CIPHER *c, const EVP_MD *md, int en_de,
crypto/openssl/crypto/evp/p5_crpt2.c
268
const EVP_CIPHER *c, const EVP_MD *md, int en_de)
crypto/openssl/crypto/evp/p5_crpt2.c
270
return PKCS5_v2_PBKDF2_keyivgen_ex(ctx, pass, passlen, param, c, md, en_de,
crypto/openssl/crypto/ffc/ffc_params_generate.c
200
BIGNUM *W, *X, *tmp, *c, *test;
crypto/openssl/crypto/ffc/ffc_params_generate.c
205
c = BN_CTX_get(ctx);
crypto/openssl/crypto/ffc/ffc_params_generate.c
270
|| !BN_mod(c, X, tmp, ctx)
crypto/openssl/crypto/ffc/ffc_params_generate.c
276
|| !BN_sub(tmp, c, BN_value_one())
crypto/openssl/crypto/idea/i_cfb64.c
34
unsigned char *iv, c, cc;
crypto/openssl/crypto/idea/i_cfb64.c
58
c = *(in++) ^ iv[n];
crypto/openssl/crypto/idea/i_cfb64.c
59
*(out++) = c;
crypto/openssl/crypto/idea/i_cfb64.c
60
iv[n] = c;
crypto/openssl/crypto/idea/i_cfb64.c
79
c = iv[n];
crypto/openssl/crypto/idea/i_cfb64.c
81
*(out++) = c ^ cc;
crypto/openssl/crypto/idea/i_cfb64.c
85
v0 = v1 = ti[0] = ti[1] = t = c = cc = 0;
crypto/openssl/crypto/idea/idea_local.h
100
l |= ((IDEA_INT)(*((c)++))))
crypto/openssl/crypto/idea/idea_local.h
20
#define n2ln(c, l1, l2, n) \
crypto/openssl/crypto/idea/idea_local.h
22
c += n; \
crypto/openssl/crypto/idea/idea_local.h
26
l2 = ((unsigned long)(*(--(c)))); \
crypto/openssl/crypto/idea/idea_local.h
29
l2 |= ((unsigned long)(*(--(c)))) << 8; \
crypto/openssl/crypto/idea/idea_local.h
32
l2 |= ((unsigned long)(*(--(c)))) << 16; \
crypto/openssl/crypto/idea/idea_local.h
35
l2 |= ((unsigned long)(*(--(c)))) << 24; \
crypto/openssl/crypto/idea/idea_local.h
38
l1 = ((unsigned long)(*(--(c)))); \
crypto/openssl/crypto/idea/idea_local.h
41
l1 |= ((unsigned long)(*(--(c)))) << 8; \
crypto/openssl/crypto/idea/idea_local.h
44
l1 |= ((unsigned long)(*(--(c)))) << 16; \
crypto/openssl/crypto/idea/idea_local.h
47
l1 |= ((unsigned long)(*(--(c)))) << 24; \
crypto/openssl/crypto/idea/idea_local.h
52
#define l2nn(l1, l2, c, n) \
crypto/openssl/crypto/idea/idea_local.h
54
c += n; \
crypto/openssl/crypto/idea/idea_local.h
57
*(--(c)) = (unsigned char)(((l2)) & 0xff); \
crypto/openssl/crypto/idea/idea_local.h
60
*(--(c)) = (unsigned char)(((l2) >> 8) & 0xff); \
crypto/openssl/crypto/idea/idea_local.h
63
*(--(c)) = (unsigned char)(((l2) >> 16) & 0xff); \
crypto/openssl/crypto/idea/idea_local.h
66
*(--(c)) = (unsigned char)(((l2) >> 24) & 0xff); \
crypto/openssl/crypto/idea/idea_local.h
69
*(--(c)) = (unsigned char)(((l1)) & 0xff); \
crypto/openssl/crypto/idea/idea_local.h
72
*(--(c)) = (unsigned char)(((l1) >> 8) & 0xff); \
crypto/openssl/crypto/idea/idea_local.h
75
*(--(c)) = (unsigned char)(((l1) >> 16) & 0xff); \
crypto/openssl/crypto/idea/idea_local.h
78
*(--(c)) = (unsigned char)(((l1) >> 24) & 0xff); \
crypto/openssl/crypto/idea/idea_local.h
83
#define n2l(c, l) (l = ((unsigned long)(*((c)++))) << 24L, \
crypto/openssl/crypto/idea/idea_local.h
84
l |= ((unsigned long)(*((c)++))) << 16L, \
crypto/openssl/crypto/idea/idea_local.h
85
l |= ((unsigned long)(*((c)++))) << 8L, \
crypto/openssl/crypto/idea/idea_local.h
86
l |= ((unsigned long)(*((c)++))))
crypto/openssl/crypto/idea/idea_local.h
89
#define l2n(l, c) (*((c)++) = (unsigned char)(((l) >> 24L) & 0xff), \
crypto/openssl/crypto/idea/idea_local.h
90
*((c)++) = (unsigned char)(((l) >> 16L) & 0xff), \
crypto/openssl/crypto/idea/idea_local.h
91
*((c)++) = (unsigned char)(((l) >> 8L) & 0xff), \
crypto/openssl/crypto/idea/idea_local.h
92
*((c)++) = (unsigned char)(((l)) & 0xff))
crypto/openssl/crypto/idea/idea_local.h
95
#define s2n(l, c) (*((c)++) = (unsigned char)(((l)) & 0xff), \
crypto/openssl/crypto/idea/idea_local.h
96
*((c)++) = (unsigned char)(((l) >> 8L) & 0xff))
crypto/openssl/crypto/idea/idea_local.h
99
#define n2s(c, l) (l = ((IDEA_INT)(*((c)++))) << 8L, \
crypto/openssl/crypto/lhash/lhash.c
360
unsigned long OPENSSL_LH_strhash(const char *c)
crypto/openssl/crypto/lhash/lhash.c
367
if ((c == NULL) || (*c == '\0'))
crypto/openssl/crypto/lhash/lhash.c
371
while (*c) {
crypto/openssl/crypto/lhash/lhash.c
372
v = n | (*c);
crypto/openssl/crypto/lhash/lhash.c
379
c++;
crypto/openssl/crypto/lhash/lhash.c
398
unsigned long ossl_lh_strcasehash(const char *c)
crypto/openssl/crypto/lhash/lhash.c
410
if (c == NULL || *c == '\0')
crypto/openssl/crypto/lhash/lhash.c
413
for (n = 0x100; *c != '\0'; n += 0x100) {
crypto/openssl/crypto/lhash/lhash.c
414
v = n | (case_adjust & *c);
crypto/openssl/crypto/lhash/lhash.c
420
c++;
crypto/openssl/crypto/lhash/lhash.c
63
OPENSSL_LHASH *OPENSSL_LH_new(OPENSSL_LH_HASHFUNC h, OPENSSL_LH_COMPFUNC c)
crypto/openssl/crypto/lhash/lhash.c
71
ret->comp = ((c == NULL) ? (OPENSSL_LH_COMPFUNC)strcmp : c);
crypto/openssl/crypto/md2/md2_dgst.c
29
static void md2_block(MD2_CTX *c, const unsigned char *d);
crypto/openssl/crypto/md2/md2_dgst.c
301
int MD2_Init(MD2_CTX *c)
crypto/openssl/crypto/md2/md2_dgst.c
303
c->num = 0;
crypto/openssl/crypto/md2/md2_dgst.c
304
memset(c->state, 0, sizeof(c->state));
crypto/openssl/crypto/md2/md2_dgst.c
305
memset(c->cksm, 0, sizeof(c->cksm));
crypto/openssl/crypto/md2/md2_dgst.c
306
memset(c->data, 0, sizeof(c->data));
crypto/openssl/crypto/md2/md2_dgst.c
310
int MD2_Update(MD2_CTX *c, const unsigned char *data, size_t len)
crypto/openssl/crypto/md2/md2_dgst.c
317
p = c->data;
crypto/openssl/crypto/md2/md2_dgst.c
318
if (c->num != 0) {
crypto/openssl/crypto/md2/md2_dgst.c
319
if ((c->num + len) >= MD2_BLOCK) {
crypto/openssl/crypto/md2/md2_dgst.c
320
memcpy(&(p[c->num]), data, MD2_BLOCK - c->num);
crypto/openssl/crypto/md2/md2_dgst.c
321
md2_block(c, c->data);
crypto/openssl/crypto/md2/md2_dgst.c
322
data += (MD2_BLOCK - c->num);
crypto/openssl/crypto/md2/md2_dgst.c
323
len -= (MD2_BLOCK - c->num);
crypto/openssl/crypto/md2/md2_dgst.c
324
c->num = 0;
crypto/openssl/crypto/md2/md2_dgst.c
327
memcpy(&(p[c->num]), data, len);
crypto/openssl/crypto/md2/md2_dgst.c
329
c->num += (int)len;
crypto/openssl/crypto/md2/md2_dgst.c
338
md2_block(c, data);
crypto/openssl/crypto/md2/md2_dgst.c
343
c->num = (int)len;
crypto/openssl/crypto/md2/md2_dgst.c
347
static void md2_block(MD2_CTX *c, const unsigned char *d)
crypto/openssl/crypto/md2/md2_dgst.c
353
sp1 = c->state;
crypto/openssl/crypto/md2/md2_dgst.c
354
sp2 = c->cksm;
crypto/openssl/crypto/md2/md2_dgst.c
380
int MD2_Final(unsigned char *md, MD2_CTX *c)
crypto/openssl/crypto/md2/md2_dgst.c
386
cp = c->data;
crypto/openssl/crypto/md2/md2_dgst.c
387
p1 = c->state;
crypto/openssl/crypto/md2/md2_dgst.c
388
p2 = c->cksm;
crypto/openssl/crypto/md2/md2_dgst.c
389
v = MD2_BLOCK - c->num;
crypto/openssl/crypto/md2/md2_dgst.c
390
for (i = c->num; i < MD2_BLOCK; i++)
crypto/openssl/crypto/md2/md2_dgst.c
393
md2_block(c, cp);
crypto/openssl/crypto/md2/md2_dgst.c
397
md2_block(c, cp);
crypto/openssl/crypto/md2/md2_dgst.c
401
OPENSSL_cleanse(c, sizeof(*c));
crypto/openssl/crypto/md2/md2_one.c
27
MD2_CTX c;
crypto/openssl/crypto/md2/md2_one.c
32
if (!MD2_Init(&c))
crypto/openssl/crypto/md2/md2_one.c
35
MD2_Update(&c, d, n);
crypto/openssl/crypto/md2/md2_one.c
44
MD2_Update(&c, temp, chunk);
crypto/openssl/crypto/md2/md2_one.c
50
MD2_Final(md, &c);
crypto/openssl/crypto/md2/md2_one.c
51
OPENSSL_cleanse(&c, sizeof(c)); /* Security consideration */
crypto/openssl/crypto/md4/md4_dgst.c
147
A = c->A += A;
crypto/openssl/crypto/md4/md4_dgst.c
148
B = c->B += B;
crypto/openssl/crypto/md4/md4_dgst.c
149
C = c->C += C;
crypto/openssl/crypto/md4/md4_dgst.c
150
D = c->D += D;
crypto/openssl/crypto/md4/md4_dgst.c
29
int MD4_Init(MD4_CTX *c)
crypto/openssl/crypto/md4/md4_dgst.c
31
memset(c, 0, sizeof(*c));
crypto/openssl/crypto/md4/md4_dgst.c
32
c->A = INIT_DATA_A;
crypto/openssl/crypto/md4/md4_dgst.c
33
c->B = INIT_DATA_B;
crypto/openssl/crypto/md4/md4_dgst.c
34
c->C = INIT_DATA_C;
crypto/openssl/crypto/md4/md4_dgst.c
35
c->D = INIT_DATA_D;
crypto/openssl/crypto/md4/md4_dgst.c
43
void md4_block_data_order(MD4_CTX *c, const void *data_, size_t num)
crypto/openssl/crypto/md4/md4_dgst.c
57
A = c->A;
crypto/openssl/crypto/md4/md4_dgst.c
58
B = c->B;
crypto/openssl/crypto/md4/md4_dgst.c
59
C = c->C;
crypto/openssl/crypto/md4/md4_dgst.c
60
D = c->D;
crypto/openssl/crypto/md4/md4_local.h
15
void md4_block_data_order(MD4_CTX *c, const void *p, size_t num);
crypto/openssl/crypto/md4/md4_local.h
25
#define HASH_MAKE_STRING(c, s) \
crypto/openssl/crypto/md4/md4_local.h
28
ll = (c)->A; \
crypto/openssl/crypto/md4/md4_local.h
30
ll = (c)->B; \
crypto/openssl/crypto/md4/md4_local.h
32
ll = (c)->C; \
crypto/openssl/crypto/md4/md4_local.h
34
ll = (c)->D; \
crypto/openssl/crypto/md4/md4_local.h
51
#define F(b, c, d) ((((c) ^ (d)) & (b)) ^ (d))
crypto/openssl/crypto/md4/md4_local.h
52
#define G(b, c, d) (((b) & (c)) | ((b) & (d)) | ((c) & (d)))
crypto/openssl/crypto/md4/md4_local.h
53
#define H(b, c, d) ((b) ^ (c) ^ (d))
crypto/openssl/crypto/md4/md4_local.h
55
#define R0(a, b, c, d, k, s, t) \
crypto/openssl/crypto/md4/md4_local.h
57
a += ((k) + (t) + F((b), (c), (d))); \
crypto/openssl/crypto/md4/md4_local.h
61
#define R1(a, b, c, d, k, s, t) \
crypto/openssl/crypto/md4/md4_local.h
63
a += ((k) + (t) + G((b), (c), (d))); \
crypto/openssl/crypto/md4/md4_local.h
67
#define R2(a, b, c, d, k, s, t) \
crypto/openssl/crypto/md4/md4_local.h
69
a += ((k) + (t) + H((b), (c), (d))); \
crypto/openssl/crypto/md4/md4_one.c
27
MD4_CTX c;
crypto/openssl/crypto/md4/md4_one.c
32
if (!MD4_Init(&c))
crypto/openssl/crypto/md4/md4_one.c
35
MD4_Update(&c, d, n);
crypto/openssl/crypto/md4/md4_one.c
44
MD4_Update(&c, temp, chunk);
crypto/openssl/crypto/md4/md4_one.c
50
MD4_Final(md, &c);
crypto/openssl/crypto/md4/md4_one.c
51
OPENSSL_cleanse(&c, sizeof(c)); /* security consideration */
crypto/openssl/crypto/md5/md5_dgst.c
164
A = c->A += A;
crypto/openssl/crypto/md5/md5_dgst.c
165
B = c->B += B;
crypto/openssl/crypto/md5/md5_dgst.c
166
C = c->C += C;
crypto/openssl/crypto/md5/md5_dgst.c
167
D = c->D += D;
crypto/openssl/crypto/md5/md5_dgst.c
29
int MD5_Init(MD5_CTX *c)
crypto/openssl/crypto/md5/md5_dgst.c
31
memset(c, 0, sizeof(*c));
crypto/openssl/crypto/md5/md5_dgst.c
32
c->A = INIT_DATA_A;
crypto/openssl/crypto/md5/md5_dgst.c
33
c->B = INIT_DATA_B;
crypto/openssl/crypto/md5/md5_dgst.c
34
c->C = INIT_DATA_C;
crypto/openssl/crypto/md5/md5_dgst.c
35
c->D = INIT_DATA_D;
crypto/openssl/crypto/md5/md5_dgst.c
43
void md5_block_data_order(MD5_CTX *c, const void *data_, size_t num)
crypto/openssl/crypto/md5/md5_dgst.c
57
A = c->A;
crypto/openssl/crypto/md5/md5_dgst.c
58
B = c->B;
crypto/openssl/crypto/md5/md5_dgst.c
59
C = c->C;
crypto/openssl/crypto/md5/md5_dgst.c
60
D = c->D;
crypto/openssl/crypto/md5/md5_local.h
25
void md5_block_data_order(MD5_CTX *c, const void *p, size_t num);
crypto/openssl/crypto/md5/md5_local.h
35
#define HASH_MAKE_STRING(c, s) \
crypto/openssl/crypto/md5/md5_local.h
38
ll = (c)->A; \
crypto/openssl/crypto/md5/md5_local.h
40
ll = (c)->B; \
crypto/openssl/crypto/md5/md5_local.h
42
ll = (c)->C; \
crypto/openssl/crypto/md5/md5_local.h
44
ll = (c)->D; \
crypto/openssl/crypto/md5/md5_local.h
61
#define F(b, c, d) ((((c) ^ (d)) & (b)) ^ (d))
crypto/openssl/crypto/md5/md5_local.h
62
#define G(b, c, d) ((((b) ^ (c)) & (d)) ^ (c))
crypto/openssl/crypto/md5/md5_local.h
63
#define H(b, c, d) ((b) ^ (c) ^ (d))
crypto/openssl/crypto/md5/md5_local.h
64
#define I(b, c, d) (((~(d)) | (b)) ^ (c))
crypto/openssl/crypto/md5/md5_local.h
66
#define R0(a, b, c, d, k, s, t) \
crypto/openssl/crypto/md5/md5_local.h
68
a += ((k) + (t) + F((b), (c), (d))); \
crypto/openssl/crypto/md5/md5_local.h
73
#define R1(a, b, c, d, k, s, t) \
crypto/openssl/crypto/md5/md5_local.h
75
a += ((k) + (t) + G((b), (c), (d))); \
crypto/openssl/crypto/md5/md5_local.h
80
#define R2(a, b, c, d, k, s, t) \
crypto/openssl/crypto/md5/md5_local.h
82
a += ((k) + (t) + H((b), (c), (d))); \
crypto/openssl/crypto/md5/md5_local.h
87
#define R3(a, b, c, d, k, s, t) \
crypto/openssl/crypto/md5/md5_local.h
89
a += ((k) + (t) + I((b), (c), (d))); \
crypto/openssl/crypto/md5/md5_one.c
27
MD5_CTX c;
crypto/openssl/crypto/md5/md5_one.c
32
if (!MD5_Init(&c))
crypto/openssl/crypto/md5/md5_one.c
35
MD5_Update(&c, d, n);
crypto/openssl/crypto/md5/md5_one.c
44
MD5_Update(&c, temp, chunk);
crypto/openssl/crypto/md5/md5_one.c
50
MD5_Final(md, &c);
crypto/openssl/crypto/md5/md5_one.c
51
OPENSSL_cleanse(&c, sizeof(c)); /* security consideration */
crypto/openssl/crypto/mdc2/mdc2_one.c
22
MDC2_CTX c;
crypto/openssl/crypto/mdc2/mdc2_one.c
27
if (!MDC2_Init(&c))
crypto/openssl/crypto/mdc2/mdc2_one.c
29
MDC2_Update(&c, d, n);
crypto/openssl/crypto/mdc2/mdc2_one.c
30
MDC2_Final(md, &c);
crypto/openssl/crypto/mdc2/mdc2_one.c
31
OPENSSL_cleanse(&c, sizeof(c)); /* security consideration */
crypto/openssl/crypto/mdc2/mdc2dgst.c
107
p = c->h;
crypto/openssl/crypto/mdc2/mdc2dgst.c
110
p = c->hh;
crypto/openssl/crypto/mdc2/mdc2dgst.c
116
int MDC2_Final(unsigned char *md, MDC2_CTX *c)
crypto/openssl/crypto/mdc2/mdc2dgst.c
121
i = c->num;
crypto/openssl/crypto/mdc2/mdc2dgst.c
122
j = c->pad_type;
crypto/openssl/crypto/mdc2/mdc2dgst.c
125
c->data[i++] = 0x80;
crypto/openssl/crypto/mdc2/mdc2dgst.c
126
memset(&(c->data[i]), 0, MDC2_BLOCK - i);
crypto/openssl/crypto/mdc2/mdc2dgst.c
127
mdc2_body(c, c->data, MDC2_BLOCK);
crypto/openssl/crypto/mdc2/mdc2dgst.c
129
memcpy(md, (char *)c->h, MDC2_BLOCK);
crypto/openssl/crypto/mdc2/mdc2dgst.c
130
memcpy(&(md[MDC2_BLOCK]), (char *)c->hh, MDC2_BLOCK);
crypto/openssl/crypto/mdc2/mdc2dgst.c
24
#define c2l(c, l) (l = ((DES_LONG)(*((c)++))), \
crypto/openssl/crypto/mdc2/mdc2dgst.c
25
l |= ((DES_LONG)(*((c)++))) << 8L, \
crypto/openssl/crypto/mdc2/mdc2dgst.c
26
l |= ((DES_LONG)(*((c)++))) << 16L, \
crypto/openssl/crypto/mdc2/mdc2dgst.c
27
l |= ((DES_LONG)(*((c)++))) << 24L)
crypto/openssl/crypto/mdc2/mdc2dgst.c
30
#define l2c(l, c) (*((c)++) = (unsigned char)(((l)) & 0xff), \
crypto/openssl/crypto/mdc2/mdc2dgst.c
31
*((c)++) = (unsigned char)(((l) >> 8L) & 0xff), \
crypto/openssl/crypto/mdc2/mdc2dgst.c
32
*((c)++) = (unsigned char)(((l) >> 16L) & 0xff), \
crypto/openssl/crypto/mdc2/mdc2dgst.c
33
*((c)++) = (unsigned char)(((l) >> 24L) & 0xff))
crypto/openssl/crypto/mdc2/mdc2dgst.c
35
static void mdc2_body(MDC2_CTX *c, const unsigned char *in, size_t len);
crypto/openssl/crypto/mdc2/mdc2dgst.c
36
int MDC2_Init(MDC2_CTX *c)
crypto/openssl/crypto/mdc2/mdc2dgst.c
38
c->num = 0;
crypto/openssl/crypto/mdc2/mdc2dgst.c
39
c->pad_type = 1;
crypto/openssl/crypto/mdc2/mdc2dgst.c
40
memset(&(c->h[0]), 0x52, MDC2_BLOCK);
crypto/openssl/crypto/mdc2/mdc2dgst.c
41
memset(&(c->hh[0]), 0x25, MDC2_BLOCK);
crypto/openssl/crypto/mdc2/mdc2dgst.c
45
int MDC2_Update(MDC2_CTX *c, const unsigned char *in, size_t len)
crypto/openssl/crypto/mdc2/mdc2dgst.c
49
i = c->num;
crypto/openssl/crypto/mdc2/mdc2dgst.c
53
memcpy(&(c->data[i]), in, len);
crypto/openssl/crypto/mdc2/mdc2dgst.c
54
c->num += (int)len;
crypto/openssl/crypto/mdc2/mdc2dgst.c
59
memcpy(&(c->data[i]), in, j);
crypto/openssl/crypto/mdc2/mdc2dgst.c
62
c->num = 0;
crypto/openssl/crypto/mdc2/mdc2dgst.c
63
mdc2_body(c, &(c->data[0]), MDC2_BLOCK);
crypto/openssl/crypto/mdc2/mdc2dgst.c
68
mdc2_body(c, in, i);
crypto/openssl/crypto/mdc2/mdc2dgst.c
71
memcpy(&(c->data[0]), &(in[i]), j);
crypto/openssl/crypto/mdc2/mdc2dgst.c
72
c->num = (int)j;
crypto/openssl/crypto/mdc2/mdc2dgst.c
77
static void mdc2_body(MDC2_CTX *c, const unsigned char *in, size_t len)
crypto/openssl/crypto/mdc2/mdc2dgst.c
91
c->h[0] = (c->h[0] & 0x9f) | 0x40;
crypto/openssl/crypto/mdc2/mdc2dgst.c
92
c->hh[0] = (c->hh[0] & 0x9f) | 0x20;
crypto/openssl/crypto/mdc2/mdc2dgst.c
94
DES_set_odd_parity(&c->h);
crypto/openssl/crypto/mdc2/mdc2dgst.c
95
DES_set_key_unchecked(&c->h, &k);
crypto/openssl/crypto/mdc2/mdc2dgst.c
98
DES_set_odd_parity(&c->hh);
crypto/openssl/crypto/mdc2/mdc2dgst.c
99
DES_set_key_unchecked(&c->hh, &k);
crypto/openssl/crypto/ml_dsa/ml_dsa_ntt.c
97
uint32_t c = b >> 32; /* /2^32 = 0..2q */
crypto/openssl/crypto/ml_dsa/ml_dsa_ntt.c
99
return reduce_once(c); /* 0..q */
crypto/openssl/crypto/ml_dsa/ml_dsa_poly.h
166
uint32_t c = p->coeff[i];
crypto/openssl/crypto/ml_dsa/ml_dsa_poly.h
167
uint32_t abs = abs_mod_prime(c);
crypto/openssl/crypto/ml_dsa/ml_dsa_poly.h
179
uint32_t c = p->coeff[i];
crypto/openssl/crypto/ml_dsa/ml_dsa_poly.h
180
uint32_t abs = abs_signed(c);
crypto/openssl/crypto/ml_kem/ml_kem.c
1012
uint16_t *curr = out->c, *end = curr + DEGREE;
crypto/openssl/crypto/ml_kem/ml_kem.c
1058
uint16_t *c = out->c;
crypto/openssl/crypto/ml_kem/ml_kem.c
1064
int outOfRange1 = (*c++ = b1 | ((b2 & 0x0f) << 8)) >= kPrime;
crypto/openssl/crypto/ml_kem/ml_kem.c
1065
int outOfRange2 = (*c++ = (b2 >> 4) | (b3 << 4)) >= kPrime;
crypto/openssl/crypto/ml_kem/ml_kem.c
1089
uint16_t *curr = out->c, *end = curr + DEGREE;
crypto/openssl/crypto/ml_kem/ml_kem.c
1182
s->c[i] = compress(s->c[i], bits);
crypto/openssl/crypto/ml_kem/ml_kem.c
1194
s->c[i] = decompress(s->c[i], bits);
crypto/openssl/crypto/ml_kem/ml_kem.c
1338
uint16_t *curr = out->c, *end = curr + DEGREE;
crypto/openssl/crypto/ml_kem/ml_kem.c
1378
uint16_t *curr = out->c, *end = curr + DEGREE;
crypto/openssl/crypto/ml_kem/ml_kem.c
758
uint16_t *curr = out->c, *endout = curr + DEGREE;
crypto/openssl/crypto/ml_kem/ml_kem.c
818
uint16_t *curr = s->c, *end = curr + DEGREE, tmp;
crypto/openssl/crypto/ml_kem/ml_kem.c
838
uint16_t *end = s->c + DEGREE;
crypto/openssl/crypto/ml_kem/ml_kem.c
842
uint16_t *curr = s->c, *peer;
crypto/openssl/crypto/ml_kem/ml_kem.c
870
uint16_t *end = s->c + DEGREE;
crypto/openssl/crypto/ml_kem/ml_kem.c
874
uint16_t *curr = s->c, *peer;
crypto/openssl/crypto/ml_kem/ml_kem.c
898
lhs->c[i] = reduce_once(lhs->c[i] + rhs->c[i]);
crypto/openssl/crypto/ml_kem/ml_kem.c
907
lhs->c[i] = reduce_once(lhs->c[i] - rhs->c[i] + kPrime);
crypto/openssl/crypto/ml_kem/ml_kem.c
924
uint16_t *curr = out->c, *end = curr + DEGREE;
crypto/openssl/crypto/ml_kem/ml_kem.c
925
const uint16_t *lc = lhs->c, *rc = rhs->c;
crypto/openssl/crypto/ml_kem/ml_kem.c
93
uint16_t c[ML_KEM_DEGREE];
crypto/openssl/crypto/ml_kem/ml_kem.c
942
uint16_t *curr = out->c, *end = curr + DEGREE;
crypto/openssl/crypto/ml_kem/ml_kem.c
943
const uint16_t *lc = lhs->c, *rc = rhs->c;
crypto/openssl/crypto/ml_kem/ml_kem.c
964
const uint16_t *curr = s->c, *end = curr + DEGREE;
crypto/openssl/crypto/ml_kem/ml_kem.c
996
out_byte |= bit0(s->c[i + j]) << j;
crypto/openssl/crypto/modes/cbc128.c
119
unsigned char c;
crypto/openssl/crypto/modes/cbc128.c
121
(*block)(in, tmp.c, key);
crypto/openssl/crypto/modes/cbc128.c
123
c = in[n];
crypto/openssl/crypto/modes/cbc128.c
124
out[n] = tmp.c[n] ^ ivec[n];
crypto/openssl/crypto/modes/cbc128.c
125
ivec[n] = c;
crypto/openssl/crypto/modes/cbc128.c
133
size_t c;
crypto/openssl/crypto/modes/cbc128.c
138
(*block)(in, tmp.c, key);
crypto/openssl/crypto/modes/cbc128.c
140
c = in_t[n];
crypto/openssl/crypto/modes/cbc128.c
142
ivec_t[n] = c;
crypto/openssl/crypto/modes/cbc128.c
152
unsigned char c;
crypto/openssl/crypto/modes/cbc128.c
153
(*block)(in, tmp.c, key);
crypto/openssl/crypto/modes/cbc128.c
155
c = in[n];
crypto/openssl/crypto/modes/cbc128.c
156
out[n] = tmp.c[n] ^ ivec[n];
crypto/openssl/crypto/modes/cbc128.c
157
ivec[n] = c;
crypto/openssl/crypto/modes/cbc128.c
81
unsigned char c[16];
crypto/openssl/crypto/modes/ccm128.c
100
ctx->cmac.c[2] ^= (u8)(alen >> 24);
crypto/openssl/crypto/modes/ccm128.c
101
ctx->cmac.c[3] ^= (u8)(alen >> 16);
crypto/openssl/crypto/modes/ccm128.c
102
ctx->cmac.c[4] ^= (u8)(alen >> 8);
crypto/openssl/crypto/modes/ccm128.c
103
ctx->cmac.c[5] ^= (u8)alen;
crypto/openssl/crypto/modes/ccm128.c
109
ctx->cmac.c[i] ^= *aad;
crypto/openssl/crypto/modes/ccm128.c
110
(*block)(ctx->cmac.c, ctx->cmac.c, ctx->key), ctx->blocks++;
crypto/openssl/crypto/modes/ccm128.c
124
u8 c;
crypto/openssl/crypto/modes/ccm128.c
129
c = counter[n];
crypto/openssl/crypto/modes/ccm128.c
130
++c;
crypto/openssl/crypto/modes/ccm128.c
131
counter[n] = c;
crypto/openssl/crypto/modes/ccm128.c
132
if (c)
crypto/openssl/crypto/modes/ccm128.c
143
unsigned char flags0 = ctx->nonce.c[0];
crypto/openssl/crypto/modes/ccm128.c
148
u8 c[16];
crypto/openssl/crypto/modes/ccm128.c
152
(*block)(ctx->nonce.c, ctx->cmac.c, key), ctx->blocks++;
crypto/openssl/crypto/modes/ccm128.c
154
ctx->nonce.c[0] = L = flags0 & 7;
crypto/openssl/crypto/modes/ccm128.c
156
n |= ctx->nonce.c[i];
crypto/openssl/crypto/modes/ccm128.c
157
ctx->nonce.c[i] = 0;
crypto/openssl/crypto/modes/ccm128.c
160
n |= ctx->nonce.c[15]; /* reconstructed length */
crypto/openssl/crypto/modes/ccm128.c
161
ctx->nonce.c[15] = 1;
crypto/openssl/crypto/modes/ccm128.c
174
u8 c[16];
crypto/openssl/crypto/modes/ccm128.c
177
memcpy(temp.c, inp, 16);
crypto/openssl/crypto/modes/ccm128.c
184
(*block)(ctx->cmac.c, ctx->cmac.c, key);
crypto/openssl/crypto/modes/ccm128.c
185
(*block)(ctx->nonce.c, scratch.c, key);
crypto/openssl/crypto/modes/ccm128.c
186
ctr64_inc(ctx->nonce.c);
crypto/openssl/crypto/modes/ccm128.c
190
memcpy(out, temp.c, 16);
crypto/openssl/crypto/modes/ccm128.c
202
ctx->cmac.c[i] ^= inp[i];
crypto/openssl/crypto/modes/ccm128.c
203
(*block)(ctx->cmac.c, ctx->cmac.c, key);
crypto/openssl/crypto/modes/ccm128.c
204
(*block)(ctx->nonce.c, scratch.c, key);
crypto/openssl/crypto/modes/ccm128.c
206
out[i] = scratch.c[i] ^ inp[i];
crypto/openssl/crypto/modes/ccm128.c
210
ctx->nonce.c[i] = 0;
crypto/openssl/crypto/modes/ccm128.c
212
(*block)(ctx->nonce.c, scratch.c, key);
crypto/openssl/crypto/modes/ccm128.c
216
ctx->nonce.c[0] = flags0;
crypto/openssl/crypto/modes/ccm128.c
227
unsigned char flags0 = ctx->nonce.c[0];
crypto/openssl/crypto/modes/ccm128.c
232
u8 c[16];
crypto/openssl/crypto/modes/ccm128.c
236
(*block)(ctx->nonce.c, ctx->cmac.c, key);
crypto/openssl/crypto/modes/ccm128.c
238
ctx->nonce.c[0] = L = flags0 & 7;
crypto/openssl/crypto/modes/ccm128.c
240
n |= ctx->nonce.c[i];
crypto/openssl/crypto/modes/ccm128.c
241
ctx->nonce.c[i] = 0;
crypto/openssl/crypto/modes/ccm128.c
244
n |= ctx->nonce.c[15]; /* reconstructed length */
crypto/openssl/crypto/modes/ccm128.c
245
ctx->nonce.c[15] = 1;
crypto/openssl/crypto/modes/ccm128.c
254
u8 c[16];
crypto/openssl/crypto/modes/ccm128.c
257
(*block)(ctx->nonce.c, scratch.c, key);
crypto/openssl/crypto/modes/ccm128.c
258
ctr64_inc(ctx->nonce.c);
crypto/openssl/crypto/modes/ccm128.c
260
memcpy(temp.c, inp, 16);
crypto/openssl/crypto/modes/ccm128.c
263
memcpy(out, scratch.c, 16);
crypto/openssl/crypto/modes/ccm128.c
270
(*block)(ctx->cmac.c, ctx->cmac.c, key);
crypto/openssl/crypto/modes/ccm128.c
278
(*block)(ctx->nonce.c, scratch.c, key);
crypto/openssl/crypto/modes/ccm128.c
280
ctx->cmac.c[i] ^= (out[i] = scratch.c[i] ^ inp[i]);
crypto/openssl/crypto/modes/ccm128.c
281
(*block)(ctx->cmac.c, ctx->cmac.c, key);
crypto/openssl/crypto/modes/ccm128.c
285
ctx->nonce.c[i] = 0;
crypto/openssl/crypto/modes/ccm128.c
287
(*block)(ctx->nonce.c, scratch.c, key);
crypto/openssl/crypto/modes/ccm128.c
291
ctx->nonce.c[0] = flags0;
crypto/openssl/crypto/modes/ccm128.c
30
memset(ctx->nonce.c, 0, sizeof(ctx->nonce.c));
crypto/openssl/crypto/modes/ccm128.c
31
ctx->nonce.c[0] = ((u8)(L - 1) & 7) | (u8)(((M - 2) / 2) & 7) << 3;
crypto/openssl/crypto/modes/ccm128.c
316
unsigned char flags0 = ctx->nonce.c[0];
crypto/openssl/crypto/modes/ccm128.c
321
u8 c[16];
crypto/openssl/crypto/modes/ccm128.c
325
(*block)(ctx->nonce.c, ctx->cmac.c, key), ctx->blocks++;
crypto/openssl/crypto/modes/ccm128.c
327
ctx->nonce.c[0] = L = flags0 & 7;
crypto/openssl/crypto/modes/ccm128.c
329
n |= ctx->nonce.c[i];
crypto/openssl/crypto/modes/ccm128.c
330
ctx->nonce.c[i] = 0;
crypto/openssl/crypto/modes/ccm128.c
333
n |= ctx->nonce.c[15]; /* reconstructed length */
crypto/openssl/crypto/modes/ccm128.c
334
ctx->nonce.c[15] = 1;
crypto/openssl/crypto/modes/ccm128.c
344
(*stream)(inp, out, n, key, ctx->nonce.c, ctx->cmac.c);
crypto/openssl/crypto/modes/ccm128.c
350
ctr64_add(ctx->nonce.c, n / 16);
crypto/openssl/crypto/modes/ccm128.c
355
ctx->cmac.c[i] ^= inp[i];
crypto/openssl/crypto/modes/ccm128.c
356
(*block)(ctx->cmac.c, ctx->cmac.c, key);
crypto/openssl/crypto/modes/ccm128.c
357
(*block)(ctx->nonce.c, scratch.c, key);
crypto/openssl/crypto/modes/ccm128.c
359
out[i] = scratch.c[i] ^ inp[i];
crypto/openssl/crypto/modes/ccm128.c
363
ctx->nonce.c[i] = 0;
crypto/openssl/crypto/modes/ccm128.c
365
(*block)(ctx->nonce.c, scratch.c, key);
crypto/openssl/crypto/modes/ccm128.c
369
ctx->nonce.c[0] = flags0;
crypto/openssl/crypto/modes/ccm128.c
380
unsigned char flags0 = ctx->nonce.c[0];
crypto/openssl/crypto/modes/ccm128.c
385
u8 c[16];
crypto/openssl/crypto/modes/ccm128.c
389
(*block)(ctx->nonce.c, ctx->cmac.c, key);
crypto/openssl/crypto/modes/ccm128.c
391
ctx->nonce.c[0] = L = flags0 & 7;
crypto/openssl/crypto/modes/ccm128.c
393
n |= ctx->nonce.c[i];
crypto/openssl/crypto/modes/ccm128.c
394
ctx->nonce.c[i] = 0;
crypto/openssl/crypto/modes/ccm128.c
397
n |= ctx->nonce.c[15]; /* reconstructed length */
crypto/openssl/crypto/modes/ccm128.c
398
ctx->nonce.c[15] = 1;
crypto/openssl/crypto/modes/ccm128.c
404
(*stream)(inp, out, n, key, ctx->nonce.c, ctx->cmac.c);
crypto/openssl/crypto/modes/ccm128.c
410
ctr64_add(ctx->nonce.c, n / 16);
crypto/openssl/crypto/modes/ccm128.c
414
(*block)(ctx->nonce.c, scratch.c, key);
crypto/openssl/crypto/modes/ccm128.c
416
ctx->cmac.c[i] ^= (out[i] = scratch.c[i] ^ inp[i]);
crypto/openssl/crypto/modes/ccm128.c
417
(*block)(ctx->cmac.c, ctx->cmac.c, key);
crypto/openssl/crypto/modes/ccm128.c
421
ctx->nonce.c[i] = 0;
crypto/openssl/crypto/modes/ccm128.c
423
(*block)(ctx->nonce.c, scratch.c, key);
crypto/openssl/crypto/modes/ccm128.c
427
ctx->nonce.c[0] = flags0;
crypto/openssl/crypto/modes/ccm128.c
43
unsigned int L = ctx->nonce.c[0] & 7; /* the L parameter */
crypto/openssl/crypto/modes/ccm128.c
434
unsigned int M = (ctx->nonce.c[0] >> 3) & 7; /* the M parameter */
crypto/openssl/crypto/modes/ccm128.c
440
memcpy(tag, ctx->cmac.c, M);
crypto/openssl/crypto/modes/ccm128.c
49
ctx->nonce.c[8] = (u8)(mlen >> (56 % (sizeof(mlen) * 8)));
crypto/openssl/crypto/modes/ccm128.c
50
ctx->nonce.c[9] = (u8)(mlen >> (48 % (sizeof(mlen) * 8)));
crypto/openssl/crypto/modes/ccm128.c
51
ctx->nonce.c[10] = (u8)(mlen >> (40 % (sizeof(mlen) * 8)));
crypto/openssl/crypto/modes/ccm128.c
52
ctx->nonce.c[11] = (u8)(mlen >> (32 % (sizeof(mlen) * 8)));
crypto/openssl/crypto/modes/ccm128.c
56
ctx->nonce.c[12] = (u8)(mlen >> 24);
crypto/openssl/crypto/modes/ccm128.c
57
ctx->nonce.c[13] = (u8)(mlen >> 16);
crypto/openssl/crypto/modes/ccm128.c
58
ctx->nonce.c[14] = (u8)(mlen >> 8);
crypto/openssl/crypto/modes/ccm128.c
59
ctx->nonce.c[15] = (u8)mlen;
crypto/openssl/crypto/modes/ccm128.c
61
ctx->nonce.c[0] &= ~0x40; /* clear Adata flag */
crypto/openssl/crypto/modes/ccm128.c
62
memcpy(&ctx->nonce.c[1], nonce, 14 - L);
crypto/openssl/crypto/modes/ccm128.c
77
ctx->nonce.c[0] |= 0x40; /* set Adata flag */
crypto/openssl/crypto/modes/ccm128.c
78
(*block)(ctx->nonce.c, ctx->cmac.c, ctx->key), ctx->blocks++;
crypto/openssl/crypto/modes/ccm128.c
81
ctx->cmac.c[0] ^= (u8)(alen >> 8);
crypto/openssl/crypto/modes/ccm128.c
82
ctx->cmac.c[1] ^= (u8)alen;
crypto/openssl/crypto/modes/ccm128.c
86
ctx->cmac.c[0] ^= 0xFF;
crypto/openssl/crypto/modes/ccm128.c
87
ctx->cmac.c[1] ^= 0xFF;
crypto/openssl/crypto/modes/ccm128.c
88
ctx->cmac.c[2] ^= (u8)(alen >> (56 % (sizeof(alen) * 8)));
crypto/openssl/crypto/modes/ccm128.c
89
ctx->cmac.c[3] ^= (u8)(alen >> (48 % (sizeof(alen) * 8)));
crypto/openssl/crypto/modes/ccm128.c
90
ctx->cmac.c[4] ^= (u8)(alen >> (40 % (sizeof(alen) * 8)));
crypto/openssl/crypto/modes/ccm128.c
91
ctx->cmac.c[5] ^= (u8)(alen >> (32 % (sizeof(alen) * 8)));
crypto/openssl/crypto/modes/ccm128.c
92
ctx->cmac.c[6] ^= (u8)(alen >> 24);
crypto/openssl/crypto/modes/ccm128.c
93
ctx->cmac.c[7] ^= (u8)(alen >> 16);
crypto/openssl/crypto/modes/ccm128.c
94
ctx->cmac.c[8] ^= (u8)(alen >> 8);
crypto/openssl/crypto/modes/ccm128.c
95
ctx->cmac.c[9] ^= (u8)alen;
crypto/openssl/crypto/modes/ccm128.c
98
ctx->cmac.c[0] ^= 0xFF;
crypto/openssl/crypto/modes/ccm128.c
99
ctx->cmac.c[1] ^= 0xFE;
crypto/openssl/crypto/modes/cfb128.c
117
unsigned char c;
crypto/openssl/crypto/modes/cfb128.c
118
out[n] = ivec[n] ^ (c = in[n]);
crypto/openssl/crypto/modes/cfb128.c
119
ivec[n] = c;
crypto/openssl/crypto/modes/cfb128.c
130
unsigned char c;
crypto/openssl/crypto/modes/cfb128.c
134
out[l] = ivec[n] ^ (c = in[l]);
crypto/openssl/crypto/modes/cfb128.c
135
ivec[n] = c;
crypto/openssl/crypto/modes/cfb128.c
189
unsigned char c[1], d[1];
crypto/openssl/crypto/modes/cfb128.c
192
c[0] = (in[n / 8] & (1 << (7 - n % 8))) ? 0x80 : 0;
crypto/openssl/crypto/modes/cfb128.c
193
cfbr_encrypt_block(c, d, 1, key, ivec, enc, block);
crypto/openssl/crypto/modes/cfb128.c
91
unsigned char c;
crypto/openssl/crypto/modes/cfb128.c
92
*(out++) = ivec[n] ^ (c = *(in++));
crypto/openssl/crypto/modes/cfb128.c
93
ivec[n] = c;
crypto/openssl/crypto/modes/ctr128.c
140
u32 n = 12, c = 1;
crypto/openssl/crypto/modes/ctr128.c
144
c += counter[n];
crypto/openssl/crypto/modes/ctr128.c
145
counter[n] = (u8)c;
crypto/openssl/crypto/modes/ctr128.c
146
c >>= 8;
crypto/openssl/crypto/modes/ctr128.c
29
u32 n = 16, c = 1;
crypto/openssl/crypto/modes/ctr128.c
33
c += counter[n];
crypto/openssl/crypto/modes/ctr128.c
34
counter[n] = (u8)c;
crypto/openssl/crypto/modes/ctr128.c
35
c >>= 8;
crypto/openssl/crypto/modes/ctr128.c
42
size_t *data, c, d, n;
crypto/openssl/crypto/modes/ctr128.c
51
c = 1;
crypto/openssl/crypto/modes/ctr128.c
55
d = data[n] += c;
crypto/openssl/crypto/modes/ctr128.c
57
c = ((d - c) & ~d) >> (sizeof(size_t) * 8 - 1);
crypto/openssl/crypto/modes/cts128.c
111
memcpy(tmp.c, out - 16, 16);
crypto/openssl/crypto/modes/cts128.c
113
memcpy(out, tmp.c, residue);
crypto/openssl/crypto/modes/cts128.c
115
memset(tmp.c, 0, sizeof(tmp));
crypto/openssl/crypto/modes/cts128.c
116
memcpy(tmp.c, in, residue);
crypto/openssl/crypto/modes/cts128.c
118
(*cbc)(tmp.c, out - 16, 16, key, ivec, 1);
crypto/openssl/crypto/modes/cts128.c
130
unsigned char c[16];
crypto/openssl/crypto/modes/cts128.c
151
memset(tmp.c, 0, sizeof(tmp));
crypto/openssl/crypto/modes/cts128.c
152
memcpy(tmp.c, in, residue);
crypto/openssl/crypto/modes/cts128.c
153
(*cbc)(tmp.c, out - 16 + residue, 16, key, ivec, 1);
crypto/openssl/crypto/modes/cts128.c
166
unsigned char c[32];
crypto/openssl/crypto/modes/cts128.c
183
(*block)(in, tmp.c + 16, key);
crypto/openssl/crypto/modes/cts128.c
185
memcpy(tmp.c, tmp.c + 16, 16);
crypto/openssl/crypto/modes/cts128.c
186
memcpy(tmp.c, in + 16, residue);
crypto/openssl/crypto/modes/cts128.c
187
(*block)(tmp.c, tmp.c, key);
crypto/openssl/crypto/modes/cts128.c
190
unsigned char c = in[n];
crypto/openssl/crypto/modes/cts128.c
191
out[n] = tmp.c[n] ^ ivec[n];
crypto/openssl/crypto/modes/cts128.c
192
ivec[n] = c;
crypto/openssl/crypto/modes/cts128.c
195
out[n] = tmp.c[n] ^ in[n];
crypto/openssl/crypto/modes/cts128.c
209
unsigned char c[32];
crypto/openssl/crypto/modes/cts128.c
230
(*block)(in + residue, tmp.c + 16, key);
crypto/openssl/crypto/modes/cts128.c
232
memcpy(tmp.c, tmp.c + 16, 16);
crypto/openssl/crypto/modes/cts128.c
233
memcpy(tmp.c, in, residue);
crypto/openssl/crypto/modes/cts128.c
234
(*block)(tmp.c, tmp.c, key);
crypto/openssl/crypto/modes/cts128.c
237
unsigned char c = in[n];
crypto/openssl/crypto/modes/cts128.c
238
out[n] = tmp.c[n] ^ ivec[n];
crypto/openssl/crypto/modes/cts128.c
240
tmp.c[n] = c;
crypto/openssl/crypto/modes/cts128.c
243
out[n] = tmp.c[n] ^ tmp.c[n - 16];
crypto/openssl/crypto/modes/cts128.c
255
unsigned char c[32];
crypto/openssl/crypto/modes/cts128.c
272
memset(tmp.c, 0, sizeof(tmp));
crypto/openssl/crypto/modes/cts128.c
276
(*cbc)(in, tmp.c, 16, key, tmp.c + 16, 0);
crypto/openssl/crypto/modes/cts128.c
278
memcpy(tmp.c, in + 16, residue);
crypto/openssl/crypto/modes/cts128.c
280
(*cbc)(tmp.c, out, 16 + residue, key, ivec, 0);
crypto/openssl/crypto/modes/cts128.c
282
(*cbc)(tmp.c, tmp.c, 32, key, ivec, 0);
crypto/openssl/crypto/modes/cts128.c
283
memcpy(out, tmp.c, 16 + residue);
crypto/openssl/crypto/modes/cts128.c
295
unsigned char c[32];
crypto/openssl/crypto/modes/cts128.c
316
memset(tmp.c, 0, sizeof(tmp));
crypto/openssl/crypto/modes/cts128.c
320
(*cbc)(in + residue, tmp.c, 16, key, tmp.c + 16, 0);
crypto/openssl/crypto/modes/cts128.c
322
memcpy(tmp.c, in, residue);
crypto/openssl/crypto/modes/cts128.c
324
(*cbc)(tmp.c, out, 16 + residue, key, ivec, 0);
crypto/openssl/crypto/modes/cts128.c
326
(*cbc)(tmp.c, tmp.c, 32, key, ivec, 0);
crypto/openssl/crypto/modes/cts128.c
327
memcpy(out, tmp.c, 16 + residue);
crypto/openssl/crypto/modes/cts128.c
94
unsigned char c[16];
crypto/openssl/crypto/modes/gcm128.c
1021
memcpy(ctx->Xn, ctx->Xi.c, sizeof(ctx->Xi));
crypto/openssl/crypto/modes/gcm128.c
1035
ctr = GETU32(ctx->Yi.c + 12);
crypto/openssl/crypto/modes/gcm128.c
1047
*(out++) = (ctx->Xn[mres++] = *(in++)) ^ ctx->EKi.c[n];
crypto/openssl/crypto/modes/gcm128.c
1060
u8 c = *(in++);
crypto/openssl/crypto/modes/gcm128.c
1061
*(out++) = c ^ ctx->EKi.c[n];
crypto/openssl/crypto/modes/gcm128.c
1062
ctx->Xi.c[n] ^= c;
crypto/openssl/crypto/modes/gcm128.c
1093
(*block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
1099
PUTU32(ctx->Yi.c + 12, ctr);
crypto/openssl/crypto/modes/gcm128.c
1118
(*block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
1124
PUTU32(ctx->Yi.c + 12, ctr);
crypto/openssl/crypto/modes/gcm128.c
1140
(*block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
1146
PUTU32(ctx->Yi.c + 12, ctr);
crypto/openssl/crypto/modes/gcm128.c
1151
size_t c = in_t[i];
crypto/openssl/crypto/modes/gcm128.c
1152
out_t[i] = c ^ ctx->EKi.t[i];
crypto/openssl/crypto/modes/gcm128.c
1153
ctx->Xi.t[i] ^= c;
crypto/openssl/crypto/modes/gcm128.c
1162
(*block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
1168
PUTU32(ctx->Yi.c + 12, ctr);
crypto/openssl/crypto/modes/gcm128.c
1174
out[n] = (ctx->Xn[mres++] = in[n]) ^ ctx->EKi.c[n];
crypto/openssl/crypto/modes/gcm128.c
1179
u8 c = in[n];
crypto/openssl/crypto/modes/gcm128.c
1180
ctx->Xi.c[n] ^= c;
crypto/openssl/crypto/modes/gcm128.c
1181
out[n] = c ^ ctx->EKi.c[n];
crypto/openssl/crypto/modes/gcm128.c
1194
u8 c;
crypto/openssl/crypto/modes/gcm128.c
1196
(*block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
1202
PUTU32(ctx->Yi.c + 12, ctr);
crypto/openssl/crypto/modes/gcm128.c
1208
out[i] = (ctx->Xn[mres++] = c = in[i]) ^ ctx->EKi.c[n];
crypto/openssl/crypto/modes/gcm128.c
1215
c = in[i];
crypto/openssl/crypto/modes/gcm128.c
1216
out[i] = c ^ ctx->EKi.c[n];
crypto/openssl/crypto/modes/gcm128.c
1217
ctx->Xi.c[n] ^= c;
crypto/openssl/crypto/modes/gcm128.c
1256
memcpy(ctx->Xn, ctx->Xi.c, sizeof(ctx->Xi));
crypto/openssl/crypto/modes/gcm128.c
1270
ctr = GETU32(ctx->Yi.c + 12);
crypto/openssl/crypto/modes/gcm128.c
1279
ctx->Xn[mres++] = *(out++) = *(in++) ^ ctx->EKi.c[n];
crypto/openssl/crypto/modes/gcm128.c
1292
ctx->Xi.c[n] ^= *(out++) = *(in++) ^ ctx->EKi.c[n];
crypto/openssl/crypto/modes/gcm128.c
1312
(*stream)(in, out, GHASH_CHUNK / 16, key, ctx->Yi.c);
crypto/openssl/crypto/modes/gcm128.c
1318
PUTU32(ctx->Yi.c + 12, ctr);
crypto/openssl/crypto/modes/gcm128.c
1332
(*stream)(in, out, j, key, ctx->Yi.c);
crypto/openssl/crypto/modes/gcm128.c
1338
PUTU32(ctx->Yi.c + 12, ctr);
crypto/openssl/crypto/modes/gcm128.c
1350
ctx->Xi.c[i] ^= out[i];
crypto/openssl/crypto/modes/gcm128.c
1357
(*ctx->block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
1363
PUTU32(ctx->Yi.c + 12, ctr);
crypto/openssl/crypto/modes/gcm128.c
1369
ctx->Xn[mres++] = out[n] = in[n] ^ ctx->EKi.c[n];
crypto/openssl/crypto/modes/gcm128.c
1371
ctx->Xi.c[mres++] ^= out[n] = in[n] ^ ctx->EKi.c[n];
crypto/openssl/crypto/modes/gcm128.c
1410
memcpy(ctx->Xn, ctx->Xi.c, sizeof(ctx->Xi));
crypto/openssl/crypto/modes/gcm128.c
1424
ctr = GETU32(ctx->Yi.c + 12);
crypto/openssl/crypto/modes/gcm128.c
1433
*(out++) = (ctx->Xn[mres++] = *(in++)) ^ ctx->EKi.c[n];
crypto/openssl/crypto/modes/gcm128.c
1446
u8 c = *(in++);
crypto/openssl/crypto/modes/gcm128.c
1447
*(out++) = c ^ ctx->EKi.c[n];
crypto/openssl/crypto/modes/gcm128.c
1448
ctx->Xi.c[n] ^= c;
crypto/openssl/crypto/modes/gcm128.c
1469
(*stream)(in, out, GHASH_CHUNK / 16, key, ctx->Yi.c);
crypto/openssl/crypto/modes/gcm128.c
1475
PUTU32(ctx->Yi.c + 12, ctr);
crypto/openssl/crypto/modes/gcm128.c
1494
ctx->Xi.c[k] ^= in[k];
crypto/openssl/crypto/modes/gcm128.c
1501
(*stream)(in, out, j, key, ctx->Yi.c);
crypto/openssl/crypto/modes/gcm128.c
1507
PUTU32(ctx->Yi.c + 12, ctr);
crypto/openssl/crypto/modes/gcm128.c
1516
(*ctx->block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
1522
PUTU32(ctx->Yi.c + 12, ctr);
crypto/openssl/crypto/modes/gcm128.c
1528
out[n] = (ctx->Xn[mres++] = in[n]) ^ ctx->EKi.c[n];
crypto/openssl/crypto/modes/gcm128.c
1530
u8 c = in[n];
crypto/openssl/crypto/modes/gcm128.c
1531
ctx->Xi.c[mres++] ^= c;
crypto/openssl/crypto/modes/gcm128.c
1532
out[n] = c ^ ctx->EKi.c[n];
crypto/openssl/crypto/modes/gcm128.c
1576
u8 *p = ctx->len.c;
crypto/openssl/crypto/modes/gcm128.c
1602
return CRYPTO_memcmp(ctx->Xi.c, tag, len);
crypto/openssl/crypto/modes/gcm128.c
1610
memcpy(tag, ctx->Xi.c,
crypto/openssl/crypto/modes/gcm128.c
1611
len <= sizeof(ctx->Xi.c) ? len : sizeof(ctx->Xi.c));
crypto/openssl/crypto/modes/gcm128.c
608
(*block)(ctx->H.c, ctx->H.c, key);
crypto/openssl/crypto/modes/gcm128.c
616
u8 *p = ctx->H.c;
crypto/openssl/crypto/modes/gcm128.c
641
memcpy(ctx->Yi.c, iv, 12);
crypto/openssl/crypto/modes/gcm128.c
642
ctx->Yi.c[12] = 0;
crypto/openssl/crypto/modes/gcm128.c
643
ctx->Yi.c[13] = 0;
crypto/openssl/crypto/modes/gcm128.c
644
ctx->Yi.c[14] = 0;
crypto/openssl/crypto/modes/gcm128.c
645
ctx->Yi.c[15] = 1;
crypto/openssl/crypto/modes/gcm128.c
657
ctx->Xi.c[i] ^= iv[i];
crypto/openssl/crypto/modes/gcm128.c
664
ctx->Xi.c[i] ^= iv[i];
crypto/openssl/crypto/modes/gcm128.c
672
ctx->Xi.c[8] ^= (u8)(len0 >> 56);
crypto/openssl/crypto/modes/gcm128.c
673
ctx->Xi.c[9] ^= (u8)(len0 >> 48);
crypto/openssl/crypto/modes/gcm128.c
674
ctx->Xi.c[10] ^= (u8)(len0 >> 40);
crypto/openssl/crypto/modes/gcm128.c
675
ctx->Xi.c[11] ^= (u8)(len0 >> 32);
crypto/openssl/crypto/modes/gcm128.c
676
ctx->Xi.c[12] ^= (u8)(len0 >> 24);
crypto/openssl/crypto/modes/gcm128.c
677
ctx->Xi.c[13] ^= (u8)(len0 >> 16);
crypto/openssl/crypto/modes/gcm128.c
678
ctx->Xi.c[14] ^= (u8)(len0 >> 8);
crypto/openssl/crypto/modes/gcm128.c
679
ctx->Xi.c[15] ^= (u8)(len0);
crypto/openssl/crypto/modes/gcm128.c
691
ctr = GETU32(ctx->Xi.c + 12);
crypto/openssl/crypto/modes/gcm128.c
704
(*ctx->block)(ctx->Yi.c, ctx->EK0.c, ctx->key);
crypto/openssl/crypto/modes/gcm128.c
710
PUTU32(ctx->Yi.c + 12, ctr);
crypto/openssl/crypto/modes/gcm128.c
734
ctx->Xi.c[n] ^= *(aad++);
crypto/openssl/crypto/modes/gcm128.c
754
ctx->Xi.c[i] ^= aad[i];
crypto/openssl/crypto/modes/gcm128.c
763
ctx->Xi.c[i] ^= aad[i];
crypto/openssl/crypto/modes/gcm128.c
796
memcpy(ctx->Xn, ctx->Xi.c, sizeof(ctx->Xi));
crypto/openssl/crypto/modes/gcm128.c
810
ctr = GETU32(ctx->Yi.c + 12);
crypto/openssl/crypto/modes/gcm128.c
822
ctx->Xn[mres++] = *(out++) = *(in++) ^ ctx->EKi.c[n];
crypto/openssl/crypto/modes/gcm128.c
835
ctx->Xi.c[n] ^= *(out++) = *(in++) ^ ctx->EKi.c[n];
crypto/openssl/crypto/modes/gcm128.c
865
(*block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
871
PUTU32(ctx->Yi.c + 12, ctr);
crypto/openssl/crypto/modes/gcm128.c
892
(*block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
898
PUTU32(ctx->Yi.c + 12, ctr);
crypto/openssl/crypto/modes/gcm128.c
915
(*block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
921
PUTU32(ctx->Yi.c + 12, ctr);
crypto/openssl/crypto/modes/gcm128.c
934
(*block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
940
PUTU32(ctx->Yi.c + 12, ctr);
crypto/openssl/crypto/modes/gcm128.c
946
ctx->Xn[mres++] = out[n] = in[n] ^ ctx->EKi.c[n];
crypto/openssl/crypto/modes/gcm128.c
951
ctx->Xi.c[n] ^= out[n] = in[n] ^ ctx->EKi.c[n];
crypto/openssl/crypto/modes/gcm128.c
965
(*block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
971
PUTU32(ctx->Yi.c + 12, ctr);
crypto/openssl/crypto/modes/gcm128.c
977
ctx->Xn[mres++] = out[i] = in[i] ^ ctx->EKi.c[n];
crypto/openssl/crypto/modes/gcm128.c
984
ctx->Xi.c[n] ^= out[i] = in[i] ^ ctx->EKi.c[n];
crypto/openssl/crypto/modes/ocb128.c
173
ctx->encrypt(ctx->l_star.c, ctx->l_star.c, ctx->keyenc);
crypto/openssl/crypto/modes/ocb128.c
251
ocb_block_lshift(stretch + (bottom / 8), shift, ctx->sess.offset.c);
crypto/openssl/crypto/modes/ocb128.c
254
ctx->sess.offset.c[15] |= (*(stretch + (bottom / 8) + 16) & mask) >> (8 - shift);
crypto/openssl/crypto/modes/ocb128.c
284
memcpy(tmp.c, aad, 16);
crypto/openssl/crypto/modes/ocb128.c
289
ctx->encrypt(tmp.c, tmp.c, ctx->keyenc);
crypto/openssl/crypto/modes/ocb128.c
305
memset(tmp.c, 0, 16);
crypto/openssl/crypto/modes/ocb128.c
306
memcpy(tmp.c, aad, last_len);
crypto/openssl/crypto/modes/ocb128.c
307
tmp.c[last_len] = 0x80;
crypto/openssl/crypto/modes/ocb128.c
311
ctx->encrypt(tmp.c, tmp.c, ctx->keyenc);
crypto/openssl/crypto/modes/ocb128.c
352
(size_t)ctx->sess.blocks_processed + 1, ctx->sess.offset.c,
crypto/openssl/crypto/modes/ocb128.c
353
(const unsigned char (*)[16])ctx->l, ctx->sess.checksum.c);
crypto/openssl/crypto/modes/ocb128.c
369
memcpy(tmp.c, in, 16);
crypto/openssl/crypto/modes/ocb128.c
377
ctx->encrypt(tmp.c, tmp.c, ctx->keyenc);
crypto/openssl/crypto/modes/ocb128.c
380
memcpy(out, tmp.c, 16);
crypto/openssl/crypto/modes/ocb128.c
398
ctx->encrypt(ctx->sess.offset.c, pad.c, ctx->keyenc);
crypto/openssl/crypto/modes/ocb128.c
401
ocb_block_xor(in, pad.c, last_len, out);
crypto/openssl/crypto/modes/ocb128.c
404
memset(pad.c, 0, 16); /* borrow pad */
crypto/openssl/crypto/modes/ocb128.c
405
memcpy(pad.c, in, last_len);
crypto/openssl/crypto/modes/ocb128.c
406
pad.c[last_len] = 0x80;
crypto/openssl/crypto/modes/ocb128.c
447
(size_t)ctx->sess.blocks_processed + 1, ctx->sess.offset.c,
crypto/openssl/crypto/modes/ocb128.c
448
(const unsigned char (*)[16])ctx->l, ctx->sess.checksum.c);
crypto/openssl/crypto/modes/ocb128.c
464
memcpy(tmp.c, in, 16);
crypto/openssl/crypto/modes/ocb128.c
469
ctx->decrypt(tmp.c, tmp.c, ctx->keydec);
crypto/openssl/crypto/modes/ocb128.c
475
memcpy(out, tmp.c, 16);
crypto/openssl/crypto/modes/ocb128.c
493
ctx->encrypt(ctx->sess.offset.c, pad.c, ctx->keyenc);
crypto/openssl/crypto/modes/ocb128.c
496
ocb_block_xor(in, pad.c, last_len, out);
crypto/openssl/crypto/modes/ocb128.c
499
memset(pad.c, 0, 16); /* borrow pad */
crypto/openssl/crypto/modes/ocb128.c
500
memcpy(pad.c, out, last_len);
crypto/openssl/crypto/modes/ocb128.c
501
pad.c[last_len] = 0x80;
crypto/openssl/crypto/modes/ocb128.c
524
ctx->encrypt(tmp.c, tmp.c, ctx->keyenc);
crypto/openssl/crypto/modes/ocb128.c
66
mask = in->c[0] & 0x80;
crypto/openssl/crypto/modes/ocb128.c
70
ocb_block_lshift(in->c, 1, out->c);
crypto/openssl/crypto/modes/ocb128.c
72
out->c[15] ^= mask;
crypto/openssl/crypto/modes/xts128.c
100
(*ctx->block1)(scratch.c, scratch.c, ctx->key1);
crypto/openssl/crypto/modes/xts128.c
103
memcpy(out - 16, scratch.c, 16);
crypto/openssl/crypto/modes/xts128.c
107
u8 c[16];
crypto/openssl/crypto/modes/xts128.c
118
size_t c;
crypto/openssl/crypto/modes/xts128.c
120
for (c = 0, i = 0; i < 16; ++i) {
crypto/openssl/crypto/modes/xts128.c
124
c += ((size_t)tweak.c[i]) << 1;
crypto/openssl/crypto/modes/xts128.c
125
tweak1.c[i] = (u8)c;
crypto/openssl/crypto/modes/xts128.c
126
c = c >> 8;
crypto/openssl/crypto/modes/xts128.c
128
tweak1.c[0] ^= (u8)(0x87 & (0 - c));
crypto/openssl/crypto/modes/xts128.c
131
memcpy(scratch.c, inp, 16);
crypto/openssl/crypto/modes/xts128.c
138
(*ctx->block1)(scratch.c, scratch.c, ctx->key1);
crypto/openssl/crypto/modes/xts128.c
143
u8 c = inp[16 + i];
crypto/openssl/crypto/modes/xts128.c
144
out[16 + i] = scratch.c[i];
crypto/openssl/crypto/modes/xts128.c
145
scratch.c[i] = c;
crypto/openssl/crypto/modes/xts128.c
149
(*ctx->block1)(scratch.c, scratch.c, ctx->key1);
crypto/openssl/crypto/modes/xts128.c
153
memcpy(out, scratch.c, 16);
crypto/openssl/crypto/modes/xts128.c
32
u8 c[16];
crypto/openssl/crypto/modes/xts128.c
39
memcpy(tweak.c, iv, 16);
crypto/openssl/crypto/modes/xts128.c
41
(*ctx->block2)(tweak.c, tweak.c, ctx->key2);
crypto/openssl/crypto/modes/xts128.c
48
memcpy(scratch.c, inp, 16);
crypto/openssl/crypto/modes/xts128.c
55
(*ctx->block1)(scratch.c, scratch.c, ctx->key1);
crypto/openssl/crypto/modes/xts128.c
59
memcpy(out, scratch.c, 16);
crypto/openssl/crypto/modes/xts128.c
79
size_t c;
crypto/openssl/crypto/modes/xts128.c
81
for (c = 0, i = 0; i < 16; ++i) {
crypto/openssl/crypto/modes/xts128.c
85
c += ((size_t)tweak.c[i]) << 1;
crypto/openssl/crypto/modes/xts128.c
86
tweak.c[i] = (u8)c;
crypto/openssl/crypto/modes/xts128.c
87
c = c >> 8;
crypto/openssl/crypto/modes/xts128.c
89
tweak.c[0] ^= (u8)(0x87 & (0 - c));
crypto/openssl/crypto/modes/xts128.c
94
u8 c = inp[i];
crypto/openssl/crypto/modes/xts128.c
95
out[i] = scratch.c[i];
crypto/openssl/crypto/modes/xts128.c
96
scratch.c[i] = c;
crypto/openssl/crypto/modes/xts128gb.c
103
res = (tweak.c[i] << 7) & 0x80;
crypto/openssl/crypto/modes/xts128gb.c
104
tweak.c[i] = ((tweak.c[i] >> 1) + carry) & 0xff;
crypto/openssl/crypto/modes/xts128gb.c
108
tweak.c[0] ^= 0xe1;
crypto/openssl/crypto/modes/xts128gb.c
113
u8 c = inp[i];
crypto/openssl/crypto/modes/xts128gb.c
114
out[i] = scratch.c[i];
crypto/openssl/crypto/modes/xts128gb.c
115
scratch.c[i] = c;
crypto/openssl/crypto/modes/xts128gb.c
119
(*ctx->block1)(scratch.c, scratch.c, ctx->key1);
crypto/openssl/crypto/modes/xts128gb.c
122
memcpy(out - 16, scratch.c, 16);
crypto/openssl/crypto/modes/xts128gb.c
126
u8 c[16];
crypto/openssl/crypto/modes/xts128gb.c
136
u8 *p = tweak.c;
crypto/openssl/crypto/modes/xts128gb.c
145
tweak1.c[15] ^= 0xe1;
crypto/openssl/crypto/modes/xts128gb.c
150
p = tweak1.c;
crypto/openssl/crypto/modes/xts128gb.c
161
res = (tweak.c[i] << 7) & 0x80;
crypto/openssl/crypto/modes/xts128gb.c
162
tweak1.c[i] = ((tweak.c[i] >> 1) + carry) & 0xff;
crypto/openssl/crypto/modes/xts128gb.c
166
tweak1.c[0] ^= 0xe1;
crypto/openssl/crypto/modes/xts128gb.c
169
memcpy(scratch.c, inp, 16);
crypto/openssl/crypto/modes/xts128gb.c
176
(*ctx->block1)(scratch.c, scratch.c, ctx->key1);
crypto/openssl/crypto/modes/xts128gb.c
181
u8 c = inp[16 + i];
crypto/openssl/crypto/modes/xts128gb.c
182
out[16 + i] = scratch.c[i];
crypto/openssl/crypto/modes/xts128gb.c
183
scratch.c[i] = c;
crypto/openssl/crypto/modes/xts128gb.c
187
(*ctx->block1)(scratch.c, scratch.c, ctx->key1);
crypto/openssl/crypto/modes/xts128gb.c
191
memcpy(out, scratch.c, 16);
crypto/openssl/crypto/modes/xts128gb.c
32
u8 c[16];
crypto/openssl/crypto/modes/xts128gb.c
39
memcpy(tweak.c, iv, 16);
crypto/openssl/crypto/modes/xts128gb.c
41
(*ctx->block2)(tweak.c, tweak.c, ctx->key2);
crypto/openssl/crypto/modes/xts128gb.c
48
memcpy(scratch.c, inp, 16);
crypto/openssl/crypto/modes/xts128gb.c
55
(*ctx->block1)(scratch.c, scratch.c, ctx->key1);
crypto/openssl/crypto/modes/xts128gb.c
59
memcpy(out, scratch.c, 16);
crypto/openssl/crypto/modes/xts128gb.c
78
u8 *p = tweak.c;
crypto/openssl/crypto/modes/xts128gb.c
87
tweak.c[15] ^= 0xe1;
crypto/openssl/crypto/modes/xts128gb.c
92
p = tweak.c;
crypto/openssl/crypto/o_str.c
161
int OPENSSL_hexchar2int(unsigned char c)
crypto/openssl/crypto/o_str.c
164
c = os_toebcdic[c];
crypto/openssl/crypto/o_str.c
167
switch (c) {
crypto/openssl/crypto/objects/obj_dat.c
521
unsigned char c = *p++;
crypto/openssl/crypto/objects/obj_dat.c
524
if (len == 0 && (c & 0x80) != 0)
crypto/openssl/crypto/objects/obj_dat.c
527
if (!BN_add_word(bl, c & 0x7f))
crypto/openssl/crypto/objects/obj_dat.c
530
l |= c & 0x7f;
crypto/openssl/crypto/objects/obj_dat.c
532
if ((c & 0x80) == 0)
crypto/openssl/crypto/objects/obj_dat.c
708
int l, h, i = 0, c = 0;
crypto/openssl/crypto/objects/obj_dat.c
713
c = (*cmp)(key, p1);
crypto/openssl/crypto/objects/obj_dat.c
714
if (c == 0
crypto/openssl/crypto/objects/obj_dat.c
715
|| (c < 0 && (flags & OBJ_BSEARCH_VALUE_ON_NOMATCH)))
crypto/openssl/crypto/pem/pem_lib.c
523
char *dekinfostart, c;
crypto/openssl/crypto/pem/pem_lib.c
567
c = *header;
crypto/openssl/crypto/pem/pem_lib.c
570
*header = c;
crypto/openssl/crypto/poly1305/poly1305.c
142
u64 h0, h1, h2, c;
crypto/openssl/crypto/poly1305/poly1305.c
175
c = (h2 >> 2) + (h2 & ~3UL);
crypto/openssl/crypto/poly1305/poly1305.c
177
h0 += c;
crypto/openssl/crypto/poly1305/poly1305.c
178
h1 += (c = CONSTANT_TIME_CARRY(h0, c));
crypto/openssl/crypto/poly1305/poly1305.c
179
h2 += CONSTANT_TIME_CARRY(h1, c);
crypto/openssl/crypto/poly1305/poly1305.c
281
u32 h0, h1, h2, h3, h4, c;
crypto/openssl/crypto/poly1305/poly1305.c
322
c = (h4 >> 2) + (h4 & ~3U);
crypto/openssl/crypto/poly1305/poly1305.c
324
h0 += c;
crypto/openssl/crypto/poly1305/poly1305.c
325
h1 += (c = CONSTANT_TIME_CARRY(h0, c));
crypto/openssl/crypto/poly1305/poly1305.c
326
h2 += (c = CONSTANT_TIME_CARRY(h1, c));
crypto/openssl/crypto/poly1305/poly1305.c
327
h3 += (c = CONSTANT_TIME_CARRY(h2, c));
crypto/openssl/crypto/poly1305/poly1305.c
328
h4 += CONSTANT_TIME_CARRY(h3, c);
crypto/openssl/crypto/poly1305/poly1305_base2_44.c
116
c = (d2 >> 42);
crypto/openssl/crypto/poly1305/poly1305_base2_44.c
117
h0 += c + (c << 2);
crypto/openssl/crypto/poly1305/poly1305_base2_44.c
80
u64 h0, h1, h2, c;
crypto/openssl/crypto/property/property.c
803
static void impl_cache_flush_cache(QUERY *c, IMPL_CACHE_FLUSH *state)
crypto/openssl/crypto/property/property.c
821
impl_cache_free(lh_QUERY_delete(state->cache, c));
crypto/openssl/crypto/rc2/rc2_local.h
11
#define c2l(c, l) (l = ((unsigned long)(*((c)++))), \
crypto/openssl/crypto/rc2/rc2_local.h
12
l |= ((unsigned long)(*((c)++))) << 8L, \
crypto/openssl/crypto/rc2/rc2_local.h
13
l |= ((unsigned long)(*((c)++))) << 16L, \
crypto/openssl/crypto/rc2/rc2_local.h
14
l |= ((unsigned long)(*((c)++))) << 24L)
crypto/openssl/crypto/rc2/rc2_local.h
18
#define c2ln(c, l1, l2, n) \
crypto/openssl/crypto/rc2/rc2_local.h
20
c += n; \
crypto/openssl/crypto/rc2/rc2_local.h
24
l2 = ((unsigned long)(*(--(c)))) << 24L; \
crypto/openssl/crypto/rc2/rc2_local.h
27
l2 |= ((unsigned long)(*(--(c)))) << 16L; \
crypto/openssl/crypto/rc2/rc2_local.h
30
l2 |= ((unsigned long)(*(--(c)))) << 8L; \
crypto/openssl/crypto/rc2/rc2_local.h
33
l2 |= ((unsigned long)(*(--(c)))); \
crypto/openssl/crypto/rc2/rc2_local.h
36
l1 = ((unsigned long)(*(--(c)))) << 24L; \
crypto/openssl/crypto/rc2/rc2_local.h
39
l1 |= ((unsigned long)(*(--(c)))) << 16L; \
crypto/openssl/crypto/rc2/rc2_local.h
42
l1 |= ((unsigned long)(*(--(c)))) << 8L; \
crypto/openssl/crypto/rc2/rc2_local.h
45
l1 |= ((unsigned long)(*(--(c)))); \
crypto/openssl/crypto/rc2/rc2_local.h
50
#define l2c(l, c) (*((c)++) = (unsigned char)(((l)) & 0xff), \
crypto/openssl/crypto/rc2/rc2_local.h
51
*((c)++) = (unsigned char)(((l) >> 8L) & 0xff), \
crypto/openssl/crypto/rc2/rc2_local.h
52
*((c)++) = (unsigned char)(((l) >> 16L) & 0xff), \
crypto/openssl/crypto/rc2/rc2_local.h
53
*((c)++) = (unsigned char)(((l) >> 24L) & 0xff))
crypto/openssl/crypto/rc2/rc2_local.h
57
#define l2cn(l1, l2, c, n) \
crypto/openssl/crypto/rc2/rc2_local.h
59
c += n; \
crypto/openssl/crypto/rc2/rc2_local.h
62
*(--(c)) = (unsigned char)(((l2) >> 24L) & 0xff); \
crypto/openssl/crypto/rc2/rc2_local.h
65
*(--(c)) = (unsigned char)(((l2) >> 16L) & 0xff); \
crypto/openssl/crypto/rc2/rc2_local.h
68
*(--(c)) = (unsigned char)(((l2) >> 8L) & 0xff); \
crypto/openssl/crypto/rc2/rc2_local.h
71
*(--(c)) = (unsigned char)(((l2)) & 0xff); \
crypto/openssl/crypto/rc2/rc2_local.h
74
*(--(c)) = (unsigned char)(((l1) >> 24L) & 0xff); \
crypto/openssl/crypto/rc2/rc2_local.h
77
*(--(c)) = (unsigned char)(((l1) >> 16L) & 0xff); \
crypto/openssl/crypto/rc2/rc2_local.h
80
*(--(c)) = (unsigned char)(((l1) >> 8L) & 0xff); \
crypto/openssl/crypto/rc2/rc2_local.h
83
*(--(c)) = (unsigned char)(((l1)) & 0xff); \
crypto/openssl/crypto/rc2/rc2_skey.c
294
unsigned int c, d;
crypto/openssl/crypto/rc2/rc2_skey.c
321
c = (0xff >> (-bits & 0x07));
crypto/openssl/crypto/rc2/rc2_skey.c
323
d = key_table[k[i] & c];
crypto/openssl/crypto/rc2/rc2cfb64.c
33
unsigned char *iv, c, cc;
crypto/openssl/crypto/rc2/rc2cfb64.c
51
c = *(in++) ^ iv[n];
crypto/openssl/crypto/rc2/rc2cfb64.c
52
*(out++) = c;
crypto/openssl/crypto/rc2/rc2cfb64.c
53
iv[n] = c;
crypto/openssl/crypto/rc2/rc2cfb64.c
72
c = iv[n];
crypto/openssl/crypto/rc2/rc2cfb64.c
74
*(out++) = c ^ cc;
crypto/openssl/crypto/rc2/rc2cfb64.c
78
v0 = v1 = ti[0] = ti[1] = t = c = cc = 0;
crypto/openssl/crypto/rc5/rc5_local.h
13
#define c2l(c, l) (l = ((unsigned long)(*((c)++))), \
crypto/openssl/crypto/rc5/rc5_local.h
14
l |= ((unsigned long)(*((c)++))) << 8L, \
crypto/openssl/crypto/rc5/rc5_local.h
15
l |= ((unsigned long)(*((c)++))) << 16L, \
crypto/openssl/crypto/rc5/rc5_local.h
16
l |= ((unsigned long)(*((c)++))) << 24L)
crypto/openssl/crypto/rc5/rc5_local.h
20
#define c2ln(c, l1, l2, n) \
crypto/openssl/crypto/rc5/rc5_local.h
22
c += n; \
crypto/openssl/crypto/rc5/rc5_local.h
26
l2 = ((unsigned long)(*(--(c)))) << 24L; \
crypto/openssl/crypto/rc5/rc5_local.h
29
l2 |= ((unsigned long)(*(--(c)))) << 16L; \
crypto/openssl/crypto/rc5/rc5_local.h
32
l2 |= ((unsigned long)(*(--(c)))) << 8L; \
crypto/openssl/crypto/rc5/rc5_local.h
35
l2 |= ((unsigned long)(*(--(c)))); \
crypto/openssl/crypto/rc5/rc5_local.h
38
l1 = ((unsigned long)(*(--(c)))) << 24L; \
crypto/openssl/crypto/rc5/rc5_local.h
41
l1 |= ((unsigned long)(*(--(c)))) << 16L; \
crypto/openssl/crypto/rc5/rc5_local.h
44
l1 |= ((unsigned long)(*(--(c)))) << 8L; \
crypto/openssl/crypto/rc5/rc5_local.h
47
l1 |= ((unsigned long)(*(--(c)))); \
crypto/openssl/crypto/rc5/rc5_local.h
52
#define l2c(l, c) (*((c)++) = (unsigned char)(((l)) & 0xff), \
crypto/openssl/crypto/rc5/rc5_local.h
53
*((c)++) = (unsigned char)(((l) >> 8L) & 0xff), \
crypto/openssl/crypto/rc5/rc5_local.h
54
*((c)++) = (unsigned char)(((l) >> 16L) & 0xff), \
crypto/openssl/crypto/rc5/rc5_local.h
55
*((c)++) = (unsigned char)(((l) >> 24L) & 0xff))
crypto/openssl/crypto/rc5/rc5_local.h
59
#define l2cn(l1, l2, c, n) \
crypto/openssl/crypto/rc5/rc5_local.h
61
c += n; \
crypto/openssl/crypto/rc5/rc5_local.h
64
*(--(c)) = (unsigned char)(((l2) >> 24L) & 0xff); \
crypto/openssl/crypto/rc5/rc5_local.h
67
*(--(c)) = (unsigned char)(((l2) >> 16L) & 0xff); \
crypto/openssl/crypto/rc5/rc5_local.h
70
*(--(c)) = (unsigned char)(((l2) >> 8L) & 0xff); \
crypto/openssl/crypto/rc5/rc5_local.h
73
*(--(c)) = (unsigned char)(((l2)) & 0xff); \
crypto/openssl/crypto/rc5/rc5_local.h
76
*(--(c)) = (unsigned char)(((l1) >> 24L) & 0xff); \
crypto/openssl/crypto/rc5/rc5_local.h
79
*(--(c)) = (unsigned char)(((l1) >> 16L) & 0xff); \
crypto/openssl/crypto/rc5/rc5_local.h
82
*(--(c)) = (unsigned char)(((l1) >> 8L) & 0xff); \
crypto/openssl/crypto/rc5/rc5_local.h
85
*(--(c)) = (unsigned char)(((l1)) & 0xff); \
crypto/openssl/crypto/rc5/rc5_skey.c
23
int i, j, m, c, t, ii, jj;
crypto/openssl/crypto/rc5/rc5_skey.c
48
c = (len + 3) / 4;
crypto/openssl/crypto/rc5/rc5_skey.c
54
j = (t > c) ? t : c;
crypto/openssl/crypto/rc5/rc5_skey.c
66
if (++jj >= c)
crypto/openssl/crypto/rc5/rc5cfb64.c
33
unsigned char *iv, c, cc;
crypto/openssl/crypto/rc5/rc5cfb64.c
51
c = *(in++) ^ iv[n];
crypto/openssl/crypto/rc5/rc5cfb64.c
52
*(out++) = c;
crypto/openssl/crypto/rc5/rc5cfb64.c
53
iv[n] = c;
crypto/openssl/crypto/rc5/rc5cfb64.c
72
c = iv[n];
crypto/openssl/crypto/rc5/rc5cfb64.c
74
*(out++) = c ^ cc;
crypto/openssl/crypto/rc5/rc5cfb64.c
78
v0 = v1 = ti[0] = ti[1] = t = c = cc = 0;
crypto/openssl/crypto/ripemd/rmd_dgst.c
184
c = C;
crypto/openssl/crypto/ripemd/rmd_dgst.c
21
void ripemd160_block_x86(RIPEMD160_CTX *c, unsigned long *p, size_t num);
crypto/openssl/crypto/ripemd/rmd_dgst.c
24
void ripemd160_block(RIPEMD160_CTX *c, unsigned long *p, size_t num);
crypto/openssl/crypto/ripemd/rmd_dgst.c
27
int RIPEMD160_Init(RIPEMD160_CTX *c)
crypto/openssl/crypto/ripemd/rmd_dgst.c
279
D = ctx->B + c + D;
crypto/openssl/crypto/ripemd/rmd_dgst.c
29
memset(c, 0, sizeof(*c));
crypto/openssl/crypto/ripemd/rmd_dgst.c
30
c->A = RIPEMD160_A;
crypto/openssl/crypto/ripemd/rmd_dgst.c
31
c->B = RIPEMD160_B;
crypto/openssl/crypto/ripemd/rmd_dgst.c
32
c->C = RIPEMD160_C;
crypto/openssl/crypto/ripemd/rmd_dgst.c
33
c->D = RIPEMD160_D;
crypto/openssl/crypto/ripemd/rmd_dgst.c
34
c->E = RIPEMD160_E;
crypto/openssl/crypto/ripemd/rmd_dgst.c
46
unsigned MD32_REG_T a, b, c, d, e, l;
crypto/openssl/crypto/ripemd/rmd_local.h
100
a += F5(b, c, d) + X(w) + K; \
crypto/openssl/crypto/ripemd/rmd_local.h
102
c = ROTATE(c, 10); \
crypto/openssl/crypto/ripemd/rmd_local.h
25
void ripemd160_block_data_order(RIPEMD160_CTX *c, const void *p, size_t num);
crypto/openssl/crypto/ripemd/rmd_local.h
35
#define HASH_MAKE_STRING(c, s) \
crypto/openssl/crypto/ripemd/rmd_local.h
38
ll = (c)->A; \
crypto/openssl/crypto/ripemd/rmd_local.h
40
ll = (c)->B; \
crypto/openssl/crypto/ripemd/rmd_local.h
42
ll = (c)->C; \
crypto/openssl/crypto/ripemd/rmd_local.h
44
ll = (c)->D; \
crypto/openssl/crypto/ripemd/rmd_local.h
46
ll = (c)->E; \
crypto/openssl/crypto/ripemd/rmd_local.h
70
#define RIP1(a, b, c, d, e, w, s) \
crypto/openssl/crypto/ripemd/rmd_local.h
72
a += F1(b, c, d) + X(w); \
crypto/openssl/crypto/ripemd/rmd_local.h
74
c = ROTATE(c, 10); \
crypto/openssl/crypto/ripemd/rmd_local.h
77
#define RIP2(a, b, c, d, e, w, s, K) \
crypto/openssl/crypto/ripemd/rmd_local.h
79
a += F2(b, c, d) + X(w) + K; \
crypto/openssl/crypto/ripemd/rmd_local.h
81
c = ROTATE(c, 10); \
crypto/openssl/crypto/ripemd/rmd_local.h
84
#define RIP3(a, b, c, d, e, w, s, K) \
crypto/openssl/crypto/ripemd/rmd_local.h
86
a += F3(b, c, d) + X(w) + K; \
crypto/openssl/crypto/ripemd/rmd_local.h
88
c = ROTATE(c, 10); \
crypto/openssl/crypto/ripemd/rmd_local.h
91
#define RIP4(a, b, c, d, e, w, s, K) \
crypto/openssl/crypto/ripemd/rmd_local.h
93
a += F4(b, c, d) + X(w) + K; \
crypto/openssl/crypto/ripemd/rmd_local.h
95
c = ROTATE(c, 10); \
crypto/openssl/crypto/ripemd/rmd_local.h
98
#define RIP5(a, b, c, d, e, w, s, K) \
crypto/openssl/crypto/ripemd/rmd_one.c
23
RIPEMD160_CTX c;
crypto/openssl/crypto/ripemd/rmd_one.c
28
if (!RIPEMD160_Init(&c))
crypto/openssl/crypto/ripemd/rmd_one.c
30
RIPEMD160_Update(&c, d, n);
crypto/openssl/crypto/ripemd/rmd_one.c
31
RIPEMD160_Final(md, &c);
crypto/openssl/crypto/ripemd/rmd_one.c
32
OPENSSL_cleanse(&c, sizeof(c)); /* security consideration */
crypto/openssl/crypto/rsa/rsa_oaep.c
355
EVP_MD_CTX *c = EVP_MD_CTX_new();
crypto/openssl/crypto/rsa/rsa_oaep.c
360
if (c == NULL)
crypto/openssl/crypto/rsa/rsa_oaep.c
373
if (!EVP_DigestInit_ex(c, dgst, NULL)
crypto/openssl/crypto/rsa/rsa_oaep.c
374
|| !EVP_DigestUpdate(c, seed, seedlen)
crypto/openssl/crypto/rsa/rsa_oaep.c
375
|| !EVP_DigestUpdate(c, cnt, 4))
crypto/openssl/crypto/rsa/rsa_oaep.c
378
if (!EVP_DigestFinal_ex(c, mask + outlen, NULL))
crypto/openssl/crypto/rsa/rsa_oaep.c
382
if (!EVP_DigestFinal_ex(c, md, NULL))
crypto/openssl/crypto/rsa/rsa_oaep.c
391
EVP_MD_CTX_free(c);
crypto/openssl/crypto/rsa/rsa_ossl.c
919
BIGNUM *c = BN_new();
crypto/openssl/crypto/rsa/rsa_ossl.c
920
if (c == NULL)
crypto/openssl/crypto/rsa/rsa_ossl.c
922
BN_with_flags(c, I, BN_FLG_CONSTTIME);
crypto/openssl/crypto/rsa/rsa_ossl.c
924
if (!BN_mod(r1, c, rsa->q, ctx)) {
crypto/openssl/crypto/rsa/rsa_ossl.c
925
BN_free(c);
crypto/openssl/crypto/rsa/rsa_ossl.c
932
BN_free(c);
crypto/openssl/crypto/rsa/rsa_ossl.c
940
BN_free(c);
crypto/openssl/crypto/rsa/rsa_ossl.c
949
if (!BN_mod(r1, c, rsa->p, ctx)) {
crypto/openssl/crypto/rsa/rsa_ossl.c
950
BN_free(c);
crypto/openssl/crypto/rsa/rsa_ossl.c
954
BN_free(c);
crypto/openssl/crypto/rsa/rsa_x931.c
94
unsigned char c = *p++;
crypto/openssl/crypto/rsa/rsa_x931.c
95
if (c == 0xBA)
crypto/openssl/crypto/rsa/rsa_x931.c
97
if (c != 0xBB) {
crypto/openssl/crypto/seed/seed_local.h
47
#define char2word(c, i) \
crypto/openssl/crypto/seed/seed_local.h
48
(i) = ((((seed_word)(c)[0]) << 24) | (((seed_word)(c)[1]) << 16) | (((seed_word)(c)[2]) << 8) | ((seed_word)(c)[3]))
crypto/openssl/crypto/seed/seed_local.h
50
#define word2char(l, c) \
crypto/openssl/crypto/seed/seed_local.h
51
*((c) + 0) = (unsigned char)((l) >> 24) & 0xff; \
crypto/openssl/crypto/seed/seed_local.h
52
*((c) + 1) = (unsigned char)((l) >> 16) & 0xff; \
crypto/openssl/crypto/seed/seed_local.h
53
*((c) + 2) = (unsigned char)((l) >> 8) & 0xff; \
crypto/openssl/crypto/seed/seed_local.h
54
*((c) + 3) = (unsigned char)((l)) & 0xff
crypto/openssl/crypto/sha/sha1_one.c
25
SHA_CTX c;
crypto/openssl/crypto/sha/sha1_one.c
30
if (!SHA1_Init(&c))
crypto/openssl/crypto/sha/sha1_one.c
32
SHA1_Update(&c, d, n);
crypto/openssl/crypto/sha/sha1_one.c
33
SHA1_Final(md, &c);
crypto/openssl/crypto/sha/sha1_one.c
34
OPENSSL_cleanse(&c, sizeof(c));
crypto/openssl/crypto/sha/sha256.c
101
ll = (c)->h[nn]; \
crypto/openssl/crypto/sha/sha256.c
107
ll = (c)->h[nn]; \
crypto/openssl/crypto/sha/sha256.c
112
if ((c)->md_len > SHA256_DIGEST_LENGTH) \
crypto/openssl/crypto/sha/sha256.c
114
for (nn = 0; nn < (c)->md_len / 4; nn++) { \
crypto/openssl/crypto/sha/sha256.c
115
ll = (c)->h[nn]; \
crypto/openssl/crypto/sha/sha256.c
219
unsigned MD32_REG_T a, b, c, d, e, f, g, h, s0, s1, T1, T2;
crypto/openssl/crypto/sha/sha256.c
228
c = ctx->h[2];
crypto/openssl/crypto/sha/sha256.c
239
T2 = Sigma0(a) + Maj(a, b, c);
crypto/openssl/crypto/sha/sha256.c
244
d = c;
crypto/openssl/crypto/sha/sha256.c
245
c = b;
crypto/openssl/crypto/sha/sha256.c
258
T2 = Sigma0(a) + Maj(a, b, c);
crypto/openssl/crypto/sha/sha256.c
263
d = c;
crypto/openssl/crypto/sha/sha256.c
264
c = b;
crypto/openssl/crypto/sha/sha256.c
27
int SHA224_Init(SHA256_CTX *c)
crypto/openssl/crypto/sha/sha256.c
271
ctx->h[2] += c;
crypto/openssl/crypto/sha/sha256.c
282
#define ROUND_00_15(i, a, b, c, d, e, f, g, h) \
crypto/openssl/crypto/sha/sha256.c
285
h = Sigma0(a) + Maj(a, b, c); \
crypto/openssl/crypto/sha/sha256.c
29
memset(c, 0, sizeof(*c));
crypto/openssl/crypto/sha/sha256.c
290
#define ROUND_16_63(i, a, b, c, d, e, f, g, h, X) \
crypto/openssl/crypto/sha/sha256.c
297
ROUND_00_15(i, a, b, c, d, e, f, g, h); \
crypto/openssl/crypto/sha/sha256.c
30
c->h[0] = 0xc1059ed8UL;
crypto/openssl/crypto/sha/sha256.c
307
unsigned MD32_REG_T a, b, c, d, e, f, g, h, s0, s1, T1;
crypto/openssl/crypto/sha/sha256.c
31
c->h[1] = 0x367cd507UL;
crypto/openssl/crypto/sha/sha256.c
317
c = ctx->h[2];
crypto/openssl/crypto/sha/sha256.c
32
c->h[2] = 0x3070dd17UL;
crypto/openssl/crypto/sha/sha256.c
329
ROUND_00_15(0, a, b, c, d, e, f, g, h);
crypto/openssl/crypto/sha/sha256.c
33
c->h[3] = 0xf70e5939UL;
crypto/openssl/crypto/sha/sha256.c
331
ROUND_00_15(1, h, a, b, c, d, e, f, g);
crypto/openssl/crypto/sha/sha256.c
333
ROUND_00_15(2, g, h, a, b, c, d, e, f);
crypto/openssl/crypto/sha/sha256.c
335
ROUND_00_15(3, f, g, h, a, b, c, d, e);
crypto/openssl/crypto/sha/sha256.c
337
ROUND_00_15(4, e, f, g, h, a, b, c, d);
crypto/openssl/crypto/sha/sha256.c
339
ROUND_00_15(5, d, e, f, g, h, a, b, c);
crypto/openssl/crypto/sha/sha256.c
34
c->h[4] = 0xffc00b31UL;
crypto/openssl/crypto/sha/sha256.c
341
ROUND_00_15(6, c, d, e, f, g, h, a, b);
crypto/openssl/crypto/sha/sha256.c
343
ROUND_00_15(7, b, c, d, e, f, g, h, a);
crypto/openssl/crypto/sha/sha256.c
345
ROUND_00_15(8, a, b, c, d, e, f, g, h);
crypto/openssl/crypto/sha/sha256.c
347
ROUND_00_15(9, h, a, b, c, d, e, f, g);
crypto/openssl/crypto/sha/sha256.c
349
ROUND_00_15(10, g, h, a, b, c, d, e, f);
crypto/openssl/crypto/sha/sha256.c
35
c->h[5] = 0x68581511UL;
crypto/openssl/crypto/sha/sha256.c
351
ROUND_00_15(11, f, g, h, a, b, c, d, e);
crypto/openssl/crypto/sha/sha256.c
353
ROUND_00_15(12, e, f, g, h, a, b, c, d);
crypto/openssl/crypto/sha/sha256.c
355
ROUND_00_15(13, d, e, f, g, h, a, b, c);
crypto/openssl/crypto/sha/sha256.c
357
ROUND_00_15(14, c, d, e, f, g, h, a, b);
crypto/openssl/crypto/sha/sha256.c
359
ROUND_00_15(15, b, c, d, e, f, g, h, a);
crypto/openssl/crypto/sha/sha256.c
36
c->h[6] = 0x64f98fa7UL;
crypto/openssl/crypto/sha/sha256.c
367
ROUND_00_15(0, a, b, c, d, e, f, g, h);
crypto/openssl/crypto/sha/sha256.c
37
c->h[7] = 0xbefa4fa4UL;
crypto/openssl/crypto/sha/sha256.c
370
ROUND_00_15(1, h, a, b, c, d, e, f, g);
crypto/openssl/crypto/sha/sha256.c
373
ROUND_00_15(2, g, h, a, b, c, d, e, f);
crypto/openssl/crypto/sha/sha256.c
376
ROUND_00_15(3, f, g, h, a, b, c, d, e);
crypto/openssl/crypto/sha/sha256.c
379
ROUND_00_15(4, e, f, g, h, a, b, c, d);
crypto/openssl/crypto/sha/sha256.c
38
c->md_len = SHA224_DIGEST_LENGTH;
crypto/openssl/crypto/sha/sha256.c
382
ROUND_00_15(5, d, e, f, g, h, a, b, c);
crypto/openssl/crypto/sha/sha256.c
385
ROUND_00_15(6, c, d, e, f, g, h, a, b);
crypto/openssl/crypto/sha/sha256.c
388
ROUND_00_15(7, b, c, d, e, f, g, h, a);
crypto/openssl/crypto/sha/sha256.c
391
ROUND_00_15(8, a, b, c, d, e, f, g, h);
crypto/openssl/crypto/sha/sha256.c
394
ROUND_00_15(9, h, a, b, c, d, e, f, g);
crypto/openssl/crypto/sha/sha256.c
397
ROUND_00_15(10, g, h, a, b, c, d, e, f);
crypto/openssl/crypto/sha/sha256.c
400
ROUND_00_15(11, f, g, h, a, b, c, d, e);
crypto/openssl/crypto/sha/sha256.c
403
ROUND_00_15(12, e, f, g, h, a, b, c, d);
crypto/openssl/crypto/sha/sha256.c
406
ROUND_00_15(13, d, e, f, g, h, a, b, c);
crypto/openssl/crypto/sha/sha256.c
409
ROUND_00_15(14, c, d, e, f, g, h, a, b);
crypto/openssl/crypto/sha/sha256.c
412
ROUND_00_15(15, b, c, d, e, f, g, h, a);
crypto/openssl/crypto/sha/sha256.c
416
ROUND_16_63(i + 0, a, b, c, d, e, f, g, h, X);
crypto/openssl/crypto/sha/sha256.c
417
ROUND_16_63(i + 1, h, a, b, c, d, e, f, g, X);
crypto/openssl/crypto/sha/sha256.c
418
ROUND_16_63(i + 2, g, h, a, b, c, d, e, f, X);
crypto/openssl/crypto/sha/sha256.c
419
ROUND_16_63(i + 3, f, g, h, a, b, c, d, e, X);
crypto/openssl/crypto/sha/sha256.c
42
int SHA256_Init(SHA256_CTX *c)
crypto/openssl/crypto/sha/sha256.c
420
ROUND_16_63(i + 4, e, f, g, h, a, b, c, d, X);
crypto/openssl/crypto/sha/sha256.c
421
ROUND_16_63(i + 5, d, e, f, g, h, a, b, c, X);
crypto/openssl/crypto/sha/sha256.c
422
ROUND_16_63(i + 6, c, d, e, f, g, h, a, b, X);
crypto/openssl/crypto/sha/sha256.c
423
ROUND_16_63(i + 7, b, c, d, e, f, g, h, a, X);
crypto/openssl/crypto/sha/sha256.c
428
ctx->h[2] += c;
crypto/openssl/crypto/sha/sha256.c
44
memset(c, 0, sizeof(*c));
crypto/openssl/crypto/sha/sha256.c
45
c->h[0] = 0x6a09e667UL;
crypto/openssl/crypto/sha/sha256.c
46
c->h[1] = 0xbb67ae85UL;
crypto/openssl/crypto/sha/sha256.c
47
c->h[2] = 0x3c6ef372UL;
crypto/openssl/crypto/sha/sha256.c
48
c->h[3] = 0xa54ff53aUL;
crypto/openssl/crypto/sha/sha256.c
49
c->h[4] = 0x510e527fUL;
crypto/openssl/crypto/sha/sha256.c
50
c->h[5] = 0x9b05688cUL;
crypto/openssl/crypto/sha/sha256.c
51
c->h[6] = 0x1f83d9abUL;
crypto/openssl/crypto/sha/sha256.c
52
c->h[7] = 0x5be0cd19UL;
crypto/openssl/crypto/sha/sha256.c
53
c->md_len = SHA256_DIGEST_LENGTH;
crypto/openssl/crypto/sha/sha256.c
57
int ossl_sha256_192_init(SHA256_CTX *c)
crypto/openssl/crypto/sha/sha256.c
59
SHA256_Init(c);
crypto/openssl/crypto/sha/sha256.c
60
c->md_len = SHA256_192_DIGEST_LENGTH;
crypto/openssl/crypto/sha/sha256.c
64
int SHA224_Update(SHA256_CTX *c, const void *data, size_t len)
crypto/openssl/crypto/sha/sha256.c
66
return SHA256_Update(c, data, len);
crypto/openssl/crypto/sha/sha256.c
69
int SHA224_Final(unsigned char *md, SHA256_CTX *c)
crypto/openssl/crypto/sha/sha256.c
71
return SHA256_Final(md, c);
crypto/openssl/crypto/sha/sha256.c
88
#define HASH_MAKE_STRING(c, s) \
crypto/openssl/crypto/sha/sha256.c
92
switch ((c)->md_len) { \
crypto/openssl/crypto/sha/sha256.c
95
ll = (c)->h[nn]; \
crypto/openssl/crypto/sha/sha512.c
100
c->h[6] = U64(0x2b0199fc2c85b8aa);
crypto/openssl/crypto/sha/sha512.c
101
c->h[7] = U64(0x0eb72ddc81c52ca2);
crypto/openssl/crypto/sha/sha512.c
103
c->Nl = 0;
crypto/openssl/crypto/sha/sha512.c
104
c->Nh = 0;
crypto/openssl/crypto/sha/sha512.c
105
c->num = 0;
crypto/openssl/crypto/sha/sha512.c
106
c->md_len = SHA256_DIGEST_LENGTH;
crypto/openssl/crypto/sha/sha512.c
110
int SHA384_Init(SHA512_CTX *c)
crypto/openssl/crypto/sha/sha512.c
112
c->h[0] = U64(0xcbbb9d5dc1059ed8);
crypto/openssl/crypto/sha/sha512.c
113
c->h[1] = U64(0x629a292a367cd507);
crypto/openssl/crypto/sha/sha512.c
114
c->h[2] = U64(0x9159015a3070dd17);
crypto/openssl/crypto/sha/sha512.c
115
c->h[3] = U64(0x152fecd8f70e5939);
crypto/openssl/crypto/sha/sha512.c
116
c->h[4] = U64(0x67332667ffc00b31);
crypto/openssl/crypto/sha/sha512.c
117
c->h[5] = U64(0x8eb44a8768581511);
crypto/openssl/crypto/sha/sha512.c
118
c->h[6] = U64(0xdb0c2e0d64f98fa7);
crypto/openssl/crypto/sha/sha512.c
119
c->h[7] = U64(0x47b5481dbefa4fa4);
crypto/openssl/crypto/sha/sha512.c
121
c->Nl = 0;
crypto/openssl/crypto/sha/sha512.c
122
c->Nh = 0;
crypto/openssl/crypto/sha/sha512.c
123
c->num = 0;
crypto/openssl/crypto/sha/sha512.c
124
c->md_len = SHA384_DIGEST_LENGTH;
crypto/openssl/crypto/sha/sha512.c
128
int SHA512_Init(SHA512_CTX *c)
crypto/openssl/crypto/sha/sha512.c
130
c->h[0] = U64(0x6a09e667f3bcc908);
crypto/openssl/crypto/sha/sha512.c
131
c->h[1] = U64(0xbb67ae8584caa73b);
crypto/openssl/crypto/sha/sha512.c
132
c->h[2] = U64(0x3c6ef372fe94f82b);
crypto/openssl/crypto/sha/sha512.c
133
c->h[3] = U64(0xa54ff53a5f1d36f1);
crypto/openssl/crypto/sha/sha512.c
134
c->h[4] = U64(0x510e527fade682d1);
crypto/openssl/crypto/sha/sha512.c
135
c->h[5] = U64(0x9b05688c2b3e6c1f);
crypto/openssl/crypto/sha/sha512.c
136
c->h[6] = U64(0x1f83d9abfb41bd6b);
crypto/openssl/crypto/sha/sha512.c
137
c->h[7] = U64(0x5be0cd19137e2179);
crypto/openssl/crypto/sha/sha512.c
139
c->Nl = 0;
crypto/openssl/crypto/sha/sha512.c
140
c->Nh = 0;
crypto/openssl/crypto/sha/sha512.c
141
c->num = 0;
crypto/openssl/crypto/sha/sha512.c
142
c->md_len = SHA512_DIGEST_LENGTH;
crypto/openssl/crypto/sha/sha512.c
155
int SHA512_Final(unsigned char *md, SHA512_CTX *c)
crypto/openssl/crypto/sha/sha512.c
157
unsigned char *p = (unsigned char *)c->u.p;
crypto/openssl/crypto/sha/sha512.c
158
size_t n = c->num;
crypto/openssl/crypto/sha/sha512.c
162
if (n > (sizeof(c->u) - 16)) {
crypto/openssl/crypto/sha/sha512.c
163
memset(p + n, 0, sizeof(c->u) - n);
crypto/openssl/crypto/sha/sha512.c
165
sha512_block_data_order(c, p, 1);
crypto/openssl/crypto/sha/sha512.c
168
memset(p + n, 0, sizeof(c->u) - 16 - n);
crypto/openssl/crypto/sha/sha512.c
170
c->u.d[SHA_LBLOCK - 2] = c->Nh;
crypto/openssl/crypto/sha/sha512.c
171
c->u.d[SHA_LBLOCK - 1] = c->Nl;
crypto/openssl/crypto/sha/sha512.c
173
p[sizeof(c->u) - 1] = (unsigned char)(c->Nl);
crypto/openssl/crypto/sha/sha512.c
174
p[sizeof(c->u) - 2] = (unsigned char)(c->Nl >> 8);
crypto/openssl/crypto/sha/sha512.c
175
p[sizeof(c->u) - 3] = (unsigned char)(c->Nl >> 16);
crypto/openssl/crypto/sha/sha512.c
176
p[sizeof(c->u) - 4] = (unsigned char)(c->Nl >> 24);
crypto/openssl/crypto/sha/sha512.c
177
p[sizeof(c->u) - 5] = (unsigned char)(c->Nl >> 32);
crypto/openssl/crypto/sha/sha512.c
178
p[sizeof(c->u) - 6] = (unsigned char)(c->Nl >> 40);
crypto/openssl/crypto/sha/sha512.c
179
p[sizeof(c->u) - 7] = (unsigned char)(c->Nl >> 48);
crypto/openssl/crypto/sha/sha512.c
180
p[sizeof(c->u) - 8] = (unsigned char)(c->Nl >> 56);
crypto/openssl/crypto/sha/sha512.c
181
p[sizeof(c->u) - 9] = (unsigned char)(c->Nh);
crypto/openssl/crypto/sha/sha512.c
182
p[sizeof(c->u) - 10] = (unsigned char)(c->Nh >> 8);
crypto/openssl/crypto/sha/sha512.c
183
p[sizeof(c->u) - 11] = (unsigned char)(c->Nh >> 16);
crypto/openssl/crypto/sha/sha512.c
184
p[sizeof(c->u) - 12] = (unsigned char)(c->Nh >> 24);
crypto/openssl/crypto/sha/sha512.c
185
p[sizeof(c->u) - 13] = (unsigned char)(c->Nh >> 32);
crypto/openssl/crypto/sha/sha512.c
186
p[sizeof(c->u) - 14] = (unsigned char)(c->Nh >> 40);
crypto/openssl/crypto/sha/sha512.c
187
p[sizeof(c->u) - 15] = (unsigned char)(c->Nh >> 48);
crypto/openssl/crypto/sha/sha512.c
188
p[sizeof(c->u) - 16] = (unsigned char)(c->Nh >> 56);
crypto/openssl/crypto/sha/sha512.c
191
sha512_block_data_order(c, p, 1);
crypto/openssl/crypto/sha/sha512.c
196
switch (c->md_len) {
crypto/openssl/crypto/sha/sha512.c
200
SHA_LONG64 t = c->h[n];
crypto/openssl/crypto/sha/sha512.c
216
SHA_LONG64 t = c->h[SHA224_DIGEST_LENGTH / 8];
crypto/openssl/crypto/sha/sha512.c
226
SHA_LONG64 t = c->h[n];
crypto/openssl/crypto/sha/sha512.c
240
SHA_LONG64 t = c->h[n];
crypto/openssl/crypto/sha/sha512.c
254
SHA_LONG64 t = c->h[n];
crypto/openssl/crypto/sha/sha512.c
274
int SHA384_Final(unsigned char *md, SHA512_CTX *c)
crypto/openssl/crypto/sha/sha512.c
276
return SHA512_Final(md, c);
crypto/openssl/crypto/sha/sha512.c
279
int SHA512_Update(SHA512_CTX *c, const void *_data, size_t len)
crypto/openssl/crypto/sha/sha512.c
282
unsigned char *p = c->u.p;
crypto/openssl/crypto/sha/sha512.c
288
l = (c->Nl + (((SHA_LONG64)len) << 3)) & U64(0xffffffffffffffff);
crypto/openssl/crypto/sha/sha512.c
289
if (l < c->Nl)
crypto/openssl/crypto/sha/sha512.c
290
c->Nh++;
crypto/openssl/crypto/sha/sha512.c
292
c->Nh += (((SHA_LONG64)len) >> 61);
crypto/openssl/crypto/sha/sha512.c
293
c->Nl = l;
crypto/openssl/crypto/sha/sha512.c
295
if (c->num != 0) {
crypto/openssl/crypto/sha/sha512.c
296
size_t n = sizeof(c->u) - c->num;
crypto/openssl/crypto/sha/sha512.c
299
memcpy(p + c->num, data, len), c->num += (unsigned int)len;
crypto/openssl/crypto/sha/sha512.c
302
memcpy(p + c->num, data, n), c->num = 0;
crypto/openssl/crypto/sha/sha512.c
304
sha512_block_data_order(c, p, 1);
crypto/openssl/crypto/sha/sha512.c
308
if (len >= sizeof(c->u)) {
crypto/openssl/crypto/sha/sha512.c
310
if ((size_t)data % sizeof(c->u.d[0]) != 0)
crypto/openssl/crypto/sha/sha512.c
311
while (len >= sizeof(c->u))
crypto/openssl/crypto/sha/sha512.c
312
memcpy(p, data, sizeof(c->u)),
crypto/openssl/crypto/sha/sha512.c
313
sha512_block_data_order(c, p, 1),
crypto/openssl/crypto/sha/sha512.c
314
len -= sizeof(c->u), data += sizeof(c->u);
crypto/openssl/crypto/sha/sha512.c
317
sha512_block_data_order(c, data, len / sizeof(c->u)),
crypto/openssl/crypto/sha/sha512.c
318
data += len, len %= sizeof(c->u), data -= len;
crypto/openssl/crypto/sha/sha512.c
322
memcpy(p, data, len), c->num = (int)len;
crypto/openssl/crypto/sha/sha512.c
327
int SHA384_Update(SHA512_CTX *c, const void *data, size_t len)
crypto/openssl/crypto/sha/sha512.c
329
return SHA512_Update(c, data, len);
crypto/openssl/crypto/sha/sha512.c
332
void SHA512_Transform(SHA512_CTX *c, const unsigned char *data)
crypto/openssl/crypto/sha/sha512.c
335
if ((size_t)data % sizeof(c->u.d[0]) != 0)
crypto/openssl/crypto/sha/sha512.c
336
memcpy(c->u.p, data, sizeof(c->u.p)), data = c->u.p;
crypto/openssl/crypto/sha/sha512.c
338
sha512_block_data_order(c, data, 1);
crypto/openssl/crypto/sha/sha512.c
649
SHA_LONG64 a, b, c, d, e, f, g, h, s0, s1, T1, T2;
crypto/openssl/crypto/sha/sha512.c
657
c = ctx->h[2];
crypto/openssl/crypto/sha/sha512.c
671
T2 = Sigma0(a) + Maj(a, b, c);
crypto/openssl/crypto/sha/sha512.c
676
d = c;
crypto/openssl/crypto/sha/sha512.c
677
c = b;
crypto/openssl/crypto/sha/sha512.c
690
T2 = Sigma0(a) + Maj(a, b, c);
crypto/openssl/crypto/sha/sha512.c
695
d = c;
crypto/openssl/crypto/sha/sha512.c
696
c = b;
crypto/openssl/crypto/sha/sha512.c
703
ctx->h[2] += c;
crypto/openssl/crypto/sha/sha512.c
715
#define ROUND_00_15(i, a, b, c, d, e, f, g, h) \
crypto/openssl/crypto/sha/sha512.c
718
h = Sigma0(a) + Maj(a, b, c); \
crypto/openssl/crypto/sha/sha512.c
723
#define ROUND_16_80(i, j, a, b, c, d, e, f, g, h, X) \
crypto/openssl/crypto/sha/sha512.c
730
ROUND_00_15(i + j, a, b, c, d, e, f, g, h); \
crypto/openssl/crypto/sha/sha512.c
74
int sha512_224_init(SHA512_CTX *c)
crypto/openssl/crypto/sha/sha512.c
741
SHA_LONG64 a, b, c, d, e, f, g, h, s0, s1, T1;
crypto/openssl/crypto/sha/sha512.c
749
c = ctx->h[2];
crypto/openssl/crypto/sha/sha512.c
758
ROUND_00_15(0, a, b, c, d, e, f, g, h);
crypto/openssl/crypto/sha/sha512.c
76
c->h[0] = U64(0x8c3d37c819544da2);
crypto/openssl/crypto/sha/sha512.c
760
ROUND_00_15(1, h, a, b, c, d, e, f, g);
crypto/openssl/crypto/sha/sha512.c
762
ROUND_00_15(2, g, h, a, b, c, d, e, f);
crypto/openssl/crypto/sha/sha512.c
764
ROUND_00_15(3, f, g, h, a, b, c, d, e);
crypto/openssl/crypto/sha/sha512.c
766
ROUND_00_15(4, e, f, g, h, a, b, c, d);
crypto/openssl/crypto/sha/sha512.c
768
ROUND_00_15(5, d, e, f, g, h, a, b, c);
crypto/openssl/crypto/sha/sha512.c
77
c->h[1] = U64(0x73e1996689dcd4d6);
crypto/openssl/crypto/sha/sha512.c
770
ROUND_00_15(6, c, d, e, f, g, h, a, b);
crypto/openssl/crypto/sha/sha512.c
772
ROUND_00_15(7, b, c, d, e, f, g, h, a);
crypto/openssl/crypto/sha/sha512.c
774
ROUND_00_15(8, a, b, c, d, e, f, g, h);
crypto/openssl/crypto/sha/sha512.c
776
ROUND_00_15(9, h, a, b, c, d, e, f, g);
crypto/openssl/crypto/sha/sha512.c
778
ROUND_00_15(10, g, h, a, b, c, d, e, f);
crypto/openssl/crypto/sha/sha512.c
78
c->h[2] = U64(0x1dfab7ae32ff9c82);
crypto/openssl/crypto/sha/sha512.c
780
ROUND_00_15(11, f, g, h, a, b, c, d, e);
crypto/openssl/crypto/sha/sha512.c
782
ROUND_00_15(12, e, f, g, h, a, b, c, d);
crypto/openssl/crypto/sha/sha512.c
784
ROUND_00_15(13, d, e, f, g, h, a, b, c);
crypto/openssl/crypto/sha/sha512.c
786
ROUND_00_15(14, c, d, e, f, g, h, a, b);
crypto/openssl/crypto/sha/sha512.c
788
ROUND_00_15(15, b, c, d, e, f, g, h, a);
crypto/openssl/crypto/sha/sha512.c
79
c->h[3] = U64(0x679dd514582f9fcf);
crypto/openssl/crypto/sha/sha512.c
791
ROUND_00_15(0, a, b, c, d, e, f, g, h);
crypto/openssl/crypto/sha/sha512.c
793
ROUND_00_15(1, h, a, b, c, d, e, f, g);
crypto/openssl/crypto/sha/sha512.c
795
ROUND_00_15(2, g, h, a, b, c, d, e, f);
crypto/openssl/crypto/sha/sha512.c
797
ROUND_00_15(3, f, g, h, a, b, c, d, e);
crypto/openssl/crypto/sha/sha512.c
799
ROUND_00_15(4, e, f, g, h, a, b, c, d);
crypto/openssl/crypto/sha/sha512.c
80
c->h[4] = U64(0x0f6d2b697bd44da8);
crypto/openssl/crypto/sha/sha512.c
801
ROUND_00_15(5, d, e, f, g, h, a, b, c);
crypto/openssl/crypto/sha/sha512.c
803
ROUND_00_15(6, c, d, e, f, g, h, a, b);
crypto/openssl/crypto/sha/sha512.c
805
ROUND_00_15(7, b, c, d, e, f, g, h, a);
crypto/openssl/crypto/sha/sha512.c
807
ROUND_00_15(8, a, b, c, d, e, f, g, h);
crypto/openssl/crypto/sha/sha512.c
809
ROUND_00_15(9, h, a, b, c, d, e, f, g);
crypto/openssl/crypto/sha/sha512.c
81
c->h[5] = U64(0x77e36f7304c48942);
crypto/openssl/crypto/sha/sha512.c
811
ROUND_00_15(10, g, h, a, b, c, d, e, f);
crypto/openssl/crypto/sha/sha512.c
813
ROUND_00_15(11, f, g, h, a, b, c, d, e);
crypto/openssl/crypto/sha/sha512.c
815
ROUND_00_15(12, e, f, g, h, a, b, c, d);
crypto/openssl/crypto/sha/sha512.c
817
ROUND_00_15(13, d, e, f, g, h, a, b, c);
crypto/openssl/crypto/sha/sha512.c
819
ROUND_00_15(14, c, d, e, f, g, h, a, b);
crypto/openssl/crypto/sha/sha512.c
82
c->h[6] = U64(0x3f9d85a86a1d36c8);
crypto/openssl/crypto/sha/sha512.c
821
ROUND_00_15(15, b, c, d, e, f, g, h, a);
crypto/openssl/crypto/sha/sha512.c
825
ROUND_16_80(i, 0, a, b, c, d, e, f, g, h, X);
crypto/openssl/crypto/sha/sha512.c
826
ROUND_16_80(i, 1, h, a, b, c, d, e, f, g, X);
crypto/openssl/crypto/sha/sha512.c
827
ROUND_16_80(i, 2, g, h, a, b, c, d, e, f, X);
crypto/openssl/crypto/sha/sha512.c
828
ROUND_16_80(i, 3, f, g, h, a, b, c, d, e, X);
crypto/openssl/crypto/sha/sha512.c
829
ROUND_16_80(i, 4, e, f, g, h, a, b, c, d, X);
crypto/openssl/crypto/sha/sha512.c
83
c->h[7] = U64(0x1112e6ad91d692a1);
crypto/openssl/crypto/sha/sha512.c
830
ROUND_16_80(i, 5, d, e, f, g, h, a, b, c, X);
crypto/openssl/crypto/sha/sha512.c
831
ROUND_16_80(i, 6, c, d, e, f, g, h, a, b, X);
crypto/openssl/crypto/sha/sha512.c
832
ROUND_16_80(i, 7, b, c, d, e, f, g, h, a, X);
crypto/openssl/crypto/sha/sha512.c
833
ROUND_16_80(i, 8, a, b, c, d, e, f, g, h, X);
crypto/openssl/crypto/sha/sha512.c
834
ROUND_16_80(i, 9, h, a, b, c, d, e, f, g, X);
crypto/openssl/crypto/sha/sha512.c
835
ROUND_16_80(i, 10, g, h, a, b, c, d, e, f, X);
crypto/openssl/crypto/sha/sha512.c
836
ROUND_16_80(i, 11, f, g, h, a, b, c, d, e, X);
crypto/openssl/crypto/sha/sha512.c
837
ROUND_16_80(i, 12, e, f, g, h, a, b, c, d, X);
crypto/openssl/crypto/sha/sha512.c
838
ROUND_16_80(i, 13, d, e, f, g, h, a, b, c, X);
crypto/openssl/crypto/sha/sha512.c
839
ROUND_16_80(i, 14, c, d, e, f, g, h, a, b, X);
crypto/openssl/crypto/sha/sha512.c
840
ROUND_16_80(i, 15, b, c, d, e, f, g, h, a, X);
crypto/openssl/crypto/sha/sha512.c
845
ctx->h[2] += c;
crypto/openssl/crypto/sha/sha512.c
85
c->Nl = 0;
crypto/openssl/crypto/sha/sha512.c
86
c->Nh = 0;
crypto/openssl/crypto/sha/sha512.c
87
c->num = 0;
crypto/openssl/crypto/sha/sha512.c
88
c->md_len = SHA224_DIGEST_LENGTH;
crypto/openssl/crypto/sha/sha512.c
92
int sha512_256_init(SHA512_CTX *c)
crypto/openssl/crypto/sha/sha512.c
94
c->h[0] = U64(0x22312194fc2bf72c);
crypto/openssl/crypto/sha/sha512.c
95
c->h[1] = U64(0x9f555fa3c84c64c2);
crypto/openssl/crypto/sha/sha512.c
96
c->h[2] = U64(0x2393b86b6f53b151);
crypto/openssl/crypto/sha/sha512.c
97
c->h[3] = U64(0x963877195940eabd);
crypto/openssl/crypto/sha/sha512.c
98
c->h[4] = U64(0x96283ee2a88effe3);
crypto/openssl/crypto/sha/sha512.c
99
c->h[5] = U64(0xbe5e1e2553863992);
crypto/openssl/crypto/sha/sha_local.h
101
(f) += (e) + K_20_39 + ROTATE((a), 5) + F_20_39((b), (c), (d)); \
crypto/openssl/crypto/sha/sha_local.h
104
#define BODY_32_39(i, a, b, c, d, e, f, xa, xb, xc, xd) \
crypto/openssl/crypto/sha/sha_local.h
106
(f) += (e) + K_20_39 + ROTATE((a), 5) + F_20_39((b), (c), (d)); \
crypto/openssl/crypto/sha/sha_local.h
109
#define BODY_40_59(i, a, b, c, d, e, f, xa, xb, xc, xd) \
crypto/openssl/crypto/sha/sha_local.h
111
(f) += (e) + K_40_59 + ROTATE((a), 5) + F_40_59((b), (c), (d)); \
crypto/openssl/crypto/sha/sha_local.h
114
#define BODY_60_79(i, a, b, c, d, e, f, xa, xb, xc, xd) \
crypto/openssl/crypto/sha/sha_local.h
116
(f) = xa + (e) + K_60_79 + ROTATE((a), 5) + F_60_79((b), (c), (d)); \
crypto/openssl/crypto/sha/sha_local.h
142
static void HASH_BLOCK_DATA_ORDER(SHA_CTX *c, const void *p, size_t num)
crypto/openssl/crypto/sha/sha_local.h
153
A = c->h0;
crypto/openssl/crypto/sha/sha_local.h
154
B = c->h1;
crypto/openssl/crypto/sha/sha_local.h
155
C = c->h2;
crypto/openssl/crypto/sha/sha_local.h
156
D = c->h3;
crypto/openssl/crypto/sha/sha_local.h
157
E = c->h4;
crypto/openssl/crypto/sha/sha_local.h
22
#define HASH_MAKE_STRING(c, s) \
crypto/openssl/crypto/sha/sha_local.h
25
ll = (c)->h0; \
crypto/openssl/crypto/sha/sha_local.h
27
ll = (c)->h1; \
crypto/openssl/crypto/sha/sha_local.h
29
ll = (c)->h2; \
crypto/openssl/crypto/sha/sha_local.h
31
ll = (c)->h3; \
crypto/openssl/crypto/sha/sha_local.h
320
c->h0 = (c->h0 + E) & 0xffffffffL;
crypto/openssl/crypto/sha/sha_local.h
321
c->h1 = (c->h1 + T) & 0xffffffffL;
crypto/openssl/crypto/sha/sha_local.h
322
c->h2 = (c->h2 + A) & 0xffffffffL;
crypto/openssl/crypto/sha/sha_local.h
323
c->h3 = (c->h3 + B) & 0xffffffffL;
crypto/openssl/crypto/sha/sha_local.h
324
c->h4 = (c->h4 + C) & 0xffffffffL;
crypto/openssl/crypto/sha/sha_local.h
329
A = c->h0;
crypto/openssl/crypto/sha/sha_local.h
33
ll = (c)->h4; \
crypto/openssl/crypto/sha/sha_local.h
330
B = c->h1;
crypto/openssl/crypto/sha/sha_local.h
331
C = c->h2;
crypto/openssl/crypto/sha/sha_local.h
332
D = c->h3;
crypto/openssl/crypto/sha/sha_local.h
333
E = c->h4;
crypto/openssl/crypto/sha/sha_local.h
380
static void HASH_BLOCK_DATA_ORDER(SHA_CTX *c, const void *p, size_t num)
crypto/openssl/crypto/sha/sha_local.h
387
A = c->h0;
crypto/openssl/crypto/sha/sha_local.h
388
B = c->h1;
crypto/openssl/crypto/sha/sha_local.h
389
C = c->h2;
crypto/openssl/crypto/sha/sha_local.h
390
D = c->h3;
crypto/openssl/crypto/sha/sha_local.h
391
E = c->h4;
crypto/openssl/crypto/sha/sha_local.h
415
c->h0 = (c->h0 + A) & 0xffffffffL;
crypto/openssl/crypto/sha/sha_local.h
416
c->h1 = (c->h1 + B) & 0xffffffffL;
crypto/openssl/crypto/sha/sha_local.h
417
c->h2 = (c->h2 + C) & 0xffffffffL;
crypto/openssl/crypto/sha/sha_local.h
418
c->h3 = (c->h3 + D) & 0xffffffffL;
crypto/openssl/crypto/sha/sha_local.h
419
c->h4 = (c->h4 + E) & 0xffffffffL;
crypto/openssl/crypto/sha/sha_local.h
424
A = c->h0;
crypto/openssl/crypto/sha/sha_local.h
425
B = c->h1;
crypto/openssl/crypto/sha/sha_local.h
426
C = c->h2;
crypto/openssl/crypto/sha/sha_local.h
427
D = c->h3;
crypto/openssl/crypto/sha/sha_local.h
428
E = c->h4;
crypto/openssl/crypto/sha/sha_local.h
46
static void sha1_block_data_order(SHA_CTX *c, const void *p, size_t num);
crypto/openssl/crypto/sha/sha_local.h
48
void sha1_block_data_order(SHA_CTX *c, const void *p, size_t num);
crypto/openssl/crypto/sha/sha_local.h
59
int HASH_INIT(SHA_CTX *c)
crypto/openssl/crypto/sha/sha_local.h
61
memset(c, 0, sizeof(*c));
crypto/openssl/crypto/sha/sha_local.h
62
c->h0 = INIT_DATA_h0;
crypto/openssl/crypto/sha/sha_local.h
63
c->h1 = INIT_DATA_h1;
crypto/openssl/crypto/sha/sha_local.h
64
c->h2 = INIT_DATA_h2;
crypto/openssl/crypto/sha/sha_local.h
65
c->h3 = INIT_DATA_h3;
crypto/openssl/crypto/sha/sha_local.h
66
c->h4 = INIT_DATA_h4;
crypto/openssl/crypto/sha/sha_local.h
83
#define F_00_19(b, c, d) ((((c) ^ (d)) & (b)) ^ (d))
crypto/openssl/crypto/sha/sha_local.h
84
#define F_20_39(b, c, d) ((b) ^ (c) ^ (d))
crypto/openssl/crypto/sha/sha_local.h
85
#define F_40_59(b, c, d) (((b) & (c)) | (((b) | (c)) & (d)))
crypto/openssl/crypto/sha/sha_local.h
86
#define F_60_79(b, c, d) F_20_39(b, c, d)
crypto/openssl/crypto/sha/sha_local.h
90
#define BODY_00_15(i, a, b, c, d, e, f, xi) \
crypto/openssl/crypto/sha/sha_local.h
91
(f) = xi + (e) + K_00_19 + ROTATE((a), 5) + F_00_19((b), (c), (d)); \
crypto/openssl/crypto/sha/sha_local.h
94
#define BODY_16_19(i, a, b, c, d, e, f, xi, xa, xb, xc, xd) \
crypto/openssl/crypto/sha/sha_local.h
96
(f) += (e) + K_00_19 + ROTATE((a), 5) + F_00_19((b), (c), (d)); \
crypto/openssl/crypto/sha/sha_local.h
99
#define BODY_20_31(i, a, b, c, d, e, f, xi, xa, xb, xc, xd) \
crypto/openssl/crypto/sm3/sm3.c
15
int ossl_sm3_init(SM3_CTX *c)
crypto/openssl/crypto/sm3/sm3.c
17
memset(c, 0, sizeof(*c));
crypto/openssl/crypto/sm3/sm3.c
18
c->A = SM3_A;
crypto/openssl/crypto/sm3/sm3.c
19
c->B = SM3_B;
crypto/openssl/crypto/sm3/sm3.c
20
c->C = SM3_C;
crypto/openssl/crypto/sm3/sm3.c
21
c->D = SM3_D;
crypto/openssl/crypto/sm3/sm3.c
22
c->E = SM3_E;
crypto/openssl/crypto/sm3/sm3.c
23
c->F = SM3_F;
crypto/openssl/crypto/sm3/sm3.c
24
c->G = SM3_G;
crypto/openssl/crypto/sm3/sm3.c
25
c->H = SM3_H;
crypto/openssl/crypto/sm3/sm3_local.h
23
#define HASH_MAKE_STRING(c, s) \
crypto/openssl/crypto/sm3/sm3_local.h
26
ll = (c)->A; \
crypto/openssl/crypto/sm3/sm3_local.h
28
ll = (c)->B; \
crypto/openssl/crypto/sm3/sm3_local.h
30
ll = (c)->C; \
crypto/openssl/crypto/sm3/sm3_local.h
32
ll = (c)->D; \
crypto/openssl/crypto/sm3/sm3_local.h
34
ll = (c)->E; \
crypto/openssl/crypto/sm3/sm3_local.h
36
ll = (c)->F; \
crypto/openssl/crypto/sm3/sm3_local.h
38
ll = (c)->G; \
crypto/openssl/crypto/sm3/sm3_local.h
40
ll = (c)->H; \
crypto/openssl/crypto/sm3/sm3_local.h
48
void ossl_hwsm3_block_data_order(SM3_CTX *c, const void *p, size_t num);
crypto/openssl/crypto/sm3/sm3_local.h
53
void ossl_hwsm3_block_data_order(SM3_CTX *c, const void *p, size_t num);
crypto/openssl/crypto/sm3/sm3_local.h
64
void ossl_sm3_block_data_order(SM3_CTX *c, const void *p, size_t num);
crypto/openssl/crypto/sm3/sm3_local.h
65
void ossl_sm3_transform(SM3_CTX *c, const unsigned char *data);
crypto/openssl/crypto/sm3/sm3_riscv.c
18
void ossl_hwsm3_block_data_order_zvksh(SM3_CTX *c, const void *p, size_t num);
crypto/openssl/crypto/sm3/sm3_riscv.c
19
void ossl_sm3_block_data_order(SM3_CTX *c, const void *p, size_t num);
crypto/openssl/crypto/sm3/sm3_riscv.c
20
void ossl_hwsm3_block_data_order(SM3_CTX *c, const void *p, size_t num);
crypto/openssl/crypto/sm3/sm3_riscv.c
22
void ossl_hwsm3_block_data_order(SM3_CTX *c, const void *p, size_t num)
crypto/openssl/crypto/sm3/sm3_riscv.c
25
ossl_hwsm3_block_data_order_zvksh(c, p, num);
crypto/openssl/crypto/sm3/sm3_riscv.c
27
ossl_sm3_block_data_order(c, p, num);
crypto/openssl/crypto/stack/stack.c
136
OPENSSL_STACK *OPENSSL_sk_new(OPENSSL_sk_compfunc c)
crypto/openssl/crypto/stack/stack.c
138
return OPENSSL_sk_new_reserve(c, 0);
crypto/openssl/crypto/stack/stack.c
227
OPENSSL_STACK *OPENSSL_sk_new_reserve(OPENSSL_sk_compfunc c, int n)
crypto/openssl/crypto/stack/stack.c
234
st->comp = c;
crypto/openssl/crypto/stack/stack.c
37
OPENSSL_sk_compfunc c)
crypto/openssl/crypto/stack/stack.c
41
if (sk->comp != c)
crypto/openssl/crypto/stack/stack.c
43
sk->comp = c;
crypto/openssl/crypto/whrlpool/wp_block.c
100
whirlpool_block_mmx(ctx->H.c, inp, num); \
crypto/openssl/crypto/whrlpool/wp_block.c
182
#define C0(K, i) (Cx.q[K.c[(i) * 8 + 0]])
crypto/openssl/crypto/whrlpool/wp_block.c
183
#define C1(K, i) ROTATE(Cx.q[K.c[(i) * 8 + 1]], 8)
crypto/openssl/crypto/whrlpool/wp_block.c
184
#define C2(K, i) ROTATE(Cx.q[K.c[(i) * 8 + 2]], 16)
crypto/openssl/crypto/whrlpool/wp_block.c
185
#define C3(K, i) ROTATE(Cx.q[K.c[(i) * 8 + 3]], 24)
crypto/openssl/crypto/whrlpool/wp_block.c
186
#define C4(K, i) ROTATE(Cx.q[K.c[(i) * 8 + 4]], 32)
crypto/openssl/crypto/whrlpool/wp_block.c
187
#define C5(K, i) ROTATE(Cx.q[K.c[(i) * 8 + 5]], 40)
crypto/openssl/crypto/whrlpool/wp_block.c
188
#define C6(K, i) ROTATE(Cx.q[K.c[(i) * 8 + 6]], 48)
crypto/openssl/crypto/whrlpool/wp_block.c
189
#define C7(K, i) ROTATE(Cx.q[K.c[(i) * 8 + 7]], 56)
crypto/openssl/crypto/whrlpool/wp_block.c
200
#define C0(K, i) (Cx.q[0 + 8 * K.c[(i) * 8 + 0]])
crypto/openssl/crypto/whrlpool/wp_block.c
201
#define C1(K, i) (Cx.q[1 + 8 * K.c[(i) * 8 + 1]])
crypto/openssl/crypto/whrlpool/wp_block.c
202
#define C2(K, i) (Cx.q[2 + 8 * K.c[(i) * 8 + 2]])
crypto/openssl/crypto/whrlpool/wp_block.c
203
#define C3(K, i) (Cx.q[3 + 8 * K.c[(i) * 8 + 3]])
crypto/openssl/crypto/whrlpool/wp_block.c
204
#define C4(K, i) (Cx.q[4 + 8 * K.c[(i) * 8 + 4]])
crypto/openssl/crypto/whrlpool/wp_block.c
205
#define C5(K, i) (Cx.q[5 + 8 * K.c[(i) * 8 + 5]])
crypto/openssl/crypto/whrlpool/wp_block.c
206
#define C6(K, i) (Cx.q[6 + 8 * K.c[(i) * 8 + 6]])
crypto/openssl/crypto/whrlpool/wp_block.c
207
#define C7(K, i) (Cx.q[7 + 8 * K.c[(i) * 8 + 7]])
crypto/openssl/crypto/whrlpool/wp_block.c
213
#define C0(K, i) (((u64 *)(Cx.c + 0))[2 * K.c[(i) * 8 + 0]])
crypto/openssl/crypto/whrlpool/wp_block.c
214
#define C1(K, i) (((u64_a1 *)(Cx.c + 7))[2 * K.c[(i) * 8 + 1]])
crypto/openssl/crypto/whrlpool/wp_block.c
215
#define C2(K, i) (((u64_a1 *)(Cx.c + 6))[2 * K.c[(i) * 8 + 2]])
crypto/openssl/crypto/whrlpool/wp_block.c
216
#define C3(K, i) (((u64_a1 *)(Cx.c + 5))[2 * K.c[(i) * 8 + 3]])
crypto/openssl/crypto/whrlpool/wp_block.c
217
#define C4(K, i) (((u64_a1 *)(Cx.c + 4))[2 * K.c[(i) * 8 + 4]])
crypto/openssl/crypto/whrlpool/wp_block.c
218
#define C5(K, i) (((u64_a1 *)(Cx.c + 3))[2 * K.c[(i) * 8 + 5]])
crypto/openssl/crypto/whrlpool/wp_block.c
219
#define C6(K, i) (((u64_a1 *)(Cx.c + 2))[2 * K.c[(i) * 8 + 6]])
crypto/openssl/crypto/whrlpool/wp_block.c
220
#define C7(K, i) (((u64_a1 *)(Cx.c + 1))[2 * K.c[(i) * 8 + 7]])
crypto/openssl/crypto/whrlpool/wp_block.c
224
u8 c[(256 * N + ROUNDS) * sizeof(u64)];
crypto/openssl/crypto/whrlpool/wp_block.c
502
u8 c[64];
crypto/openssl/crypto/whrlpool/wp_block.c
514
S.c[i] = (K.c[i] = H->c[i]) ^ p[i];
crypto/openssl/crypto/whrlpool/wp_block.c
527
H->c[i] ^= S.c[i] ^ p[i];
crypto/openssl/crypto/whrlpool/wp_block.c
533
memcpy(S.c, p, 64);
crypto/openssl/crypto/whrlpool/wp_block.c
763
H->c[i] ^= S.c[i] ^ p[i];
crypto/openssl/crypto/whrlpool/wp_dgst.c
104
c->bitlen[0] += bits;
crypto/openssl/crypto/whrlpool/wp_dgst.c
105
if (c->bitlen[0] < bits) { /* overflow */
crypto/openssl/crypto/whrlpool/wp_dgst.c
108
c->bitlen[n]++;
crypto/openssl/crypto/whrlpool/wp_dgst.c
109
} while (c->bitlen[n] == 0
crypto/openssl/crypto/whrlpool/wp_dgst.c
117
whirlpool_block(c, inp, n);
crypto/openssl/crypto/whrlpool/wp_dgst.c
127
memcpy(c->data + byteoff, inp, bitrem);
crypto/openssl/crypto/whrlpool/wp_dgst.c
129
whirlpool_block(c, c->data, 1);
crypto/openssl/crypto/whrlpool/wp_dgst.c
132
memcpy(c->data + byteoff, inp, bits / 8);
crypto/openssl/crypto/whrlpool/wp_dgst.c
136
c->bitoff = bitoff;
crypto/openssl/crypto/whrlpool/wp_dgst.c
160
c->data[byteoff++] |= inp[0] & (0xff >> inpgap);
crypto/openssl/crypto/whrlpool/wp_dgst.c
168
whirlpool_block(c, c->data, 1);
crypto/openssl/crypto/whrlpool/wp_dgst.c
171
c->bitoff = bitoff;
crypto/openssl/crypto/whrlpool/wp_dgst.c
179
c->data[byteoff++] |= b >> bitrem;
crypto/openssl/crypto/whrlpool/wp_dgst.c
181
c->data[byteoff++] = b;
crypto/openssl/crypto/whrlpool/wp_dgst.c
186
whirlpool_block(c, c->data, 1);
crypto/openssl/crypto/whrlpool/wp_dgst.c
191
c->data[byteoff] = b << (8 - bitrem);
crypto/openssl/crypto/whrlpool/wp_dgst.c
196
c->data[byteoff++] |= b >> bitrem;
crypto/openssl/crypto/whrlpool/wp_dgst.c
198
c->data[byteoff++] = b;
crypto/openssl/crypto/whrlpool/wp_dgst.c
201
whirlpool_block(c, c->data, 1);
crypto/openssl/crypto/whrlpool/wp_dgst.c
206
c->data[byteoff] = b << (8 - bitrem);
crypto/openssl/crypto/whrlpool/wp_dgst.c
209
c->bitoff = bitoff;
crypto/openssl/crypto/whrlpool/wp_dgst.c
214
int WHIRLPOOL_Final(unsigned char *md, WHIRLPOOL_CTX *c)
crypto/openssl/crypto/whrlpool/wp_dgst.c
216
unsigned int bitoff = c->bitoff, byteoff = bitoff / 8;
crypto/openssl/crypto/whrlpool/wp_dgst.c
222
c->data[byteoff] |= 0x80 >> bitoff;
crypto/openssl/crypto/whrlpool/wp_dgst.c
224
c->data[byteoff] = 0x80;
crypto/openssl/crypto/whrlpool/wp_dgst.c
230
memset(&c->data[byteoff], 0, WHIRLPOOL_BBLOCK / 8 - byteoff);
crypto/openssl/crypto/whrlpool/wp_dgst.c
231
whirlpool_block(c, c->data, 1);
crypto/openssl/crypto/whrlpool/wp_dgst.c
235
memset(&c->data[byteoff], 0,
crypto/openssl/crypto/whrlpool/wp_dgst.c
238
p = &c->data[WHIRLPOOL_BBLOCK / 8 - 1]; /* last byte in c->data */
crypto/openssl/crypto/whrlpool/wp_dgst.c
240
for (v = c->bitlen[i], j = 0; j < sizeof(size_t); j++, v >>= 8)
crypto/openssl/crypto/whrlpool/wp_dgst.c
243
whirlpool_block(c, c->data, 1);
crypto/openssl/crypto/whrlpool/wp_dgst.c
246
memcpy(md, c->H.c, WHIRLPOOL_DIGEST_LENGTH);
crypto/openssl/crypto/whrlpool/wp_dgst.c
247
OPENSSL_cleanse(c, sizeof(*c));
crypto/openssl/crypto/whrlpool/wp_dgst.c
65
int WHIRLPOOL_Init(WHIRLPOOL_CTX *c)
crypto/openssl/crypto/whrlpool/wp_dgst.c
67
memset(c, 0, sizeof(*c));
crypto/openssl/crypto/whrlpool/wp_dgst.c
71
int WHIRLPOOL_Update(WHIRLPOOL_CTX *c, const void *_inp, size_t bytes)
crypto/openssl/crypto/whrlpool/wp_dgst.c
82
WHIRLPOOL_BitUpdate(c, inp, chunk * 8);
crypto/openssl/crypto/whrlpool/wp_dgst.c
87
WHIRLPOOL_BitUpdate(c, inp, bytes * 8);
crypto/openssl/crypto/whrlpool/wp_dgst.c
92
void WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c, const void *_inp, size_t bits)
crypto/openssl/crypto/whrlpool/wp_dgst.c
95
unsigned int bitoff = c->bitoff,
crypto/openssl/crypto/x509/by_dir.c
292
char c = '/';
crypto/openssl/crypto/x509/by_dir.c
295
c = ent->dir[strlen(ent->dir) - 1];
crypto/openssl/crypto/x509/by_dir.c
296
if (c != ':' && c != '>' && c != ']') {
crypto/openssl/crypto/x509/by_dir.c
303
c = ':';
crypto/openssl/crypto/x509/by_dir.c
305
c = '\0';
crypto/openssl/crypto/x509/by_dir.c
308
if (c == '\0') {
crypto/openssl/crypto/x509/by_dir.c
319
"%s%c%08lx.%s%d", ent->dir, c, h, postfix, k);
crypto/openssl/crypto/x509/v3_addr.c
1127
int p, c;
crypto/openssl/crypto/x509/v3_addr.c
1135
for (c = 0; c < sk_IPAddressOrRange_num(child); c++) {
crypto/openssl/crypto/x509/v3_addr.c
1136
if (!extract_min_max(sk_IPAddressOrRange_value(child, c),
crypto/openssl/crypto/x509/v3_asid.c
642
int p, c;
crypto/openssl/crypto/x509/v3_asid.c
650
for (c = 0; c < sk_ASIdOrRange_num(child); c++) {
crypto/openssl/crypto/x509/v3_asid.c
651
if (!extract_min_max(sk_ASIdOrRange_value(child, c), &c_min, &c_max))
crypto/openssl/crypto/x509/v3_ncons.c
102
static char *ia5memrchr(ASN1_IA5STRING *str, int c)
crypto/openssl/crypto/x509/v3_ncons.c
106
for (i = str->length; i > 0 && str->data[i - 1] != c; i--)
crypto/openssl/crypto/x509/v3_ncons.c
396
unsigned char c = utf8_value[i];
crypto/openssl/crypto/x509/v3_ncons.c
398
if ((c >= 'a' && c <= 'z')
crypto/openssl/crypto/x509/v3_ncons.c
399
|| (c >= 'A' && c <= 'Z')
crypto/openssl/crypto/x509/v3_ncons.c
400
|| (c >= '0' && c <= '9')
crypto/openssl/crypto/x509/v3_ncons.c
401
|| c == '_')
crypto/openssl/crypto/x509/v3_ncons.c
406
if (c == '-')
crypto/openssl/crypto/x509/v3_ncons.c
413
if (c == '.'
crypto/openssl/crypto/x509/v3_ncons.c
99
#define ia5memchr(str, start, c) memchr(start, c, IA5_OFFSET_LEN(str, start))
crypto/openssl/crypto/x509/v3_utl.c
1352
unsigned char c;
crypto/openssl/crypto/x509/v3_utl.c
1359
c = *in++;
crypto/openssl/crypto/x509/v3_utl.c
1361
x = OPENSSL_hexchar2int(c);
crypto/openssl/crypto/x509/v3_utl.c
317
char *p, *q, c;
crypto/openssl/crypto/x509/v3_utl.c
330
for (p = linebuf, q = linebuf; (c = *p) && (c != '\r') && (c != '\n');
crypto/openssl/crypto/x509/v3_utl.c
335
if (c == ':') {
crypto/openssl/crypto/x509/v3_utl.c
344
} else if (c == ',') {
crypto/openssl/crypto/x509/v3_utl.c
359
if (c == ',') {
crypto/openssl/crypto/x509/v3_utl.c
432
char c;
crypto/openssl/crypto/x509/v3_utl.c
437
c = name[len];
crypto/openssl/crypto/x509/v3_utl.c
438
if (!c || (c == '.'))
crypto/openssl/crypto/x509/x509_v3.c
64
int n, c;
crypto/openssl/crypto/x509/x509_v3.c
75
c = X509_EXTENSION_get_critical(ex);
crypto/openssl/crypto/x509/x509_v3.c
77
if (c == crit)
crypto/openssl/crypto/x509/x509cset.c
57
int X509_CRL_sort(X509_CRL *c)
crypto/openssl/crypto/x509/x509cset.c
65
sk_X509_REVOKED_sort(c->crl.revoked);
crypto/openssl/crypto/x509/x509cset.c
66
for (i = 0; i < sk_X509_REVOKED_num(c->crl.revoked); i++) {
crypto/openssl/crypto/x509/x509cset.c
67
r = sk_X509_REVOKED_value(c->crl.revoked, i);
crypto/openssl/crypto/x509/x509cset.c
70
c->crl.enc.modified = 1;
crypto/openssl/crypto/x509/x_name.c
504
char *s, *c, *b;
crypto/openssl/crypto/x509/x_name.c
516
c = s;
crypto/openssl/crypto/x509/x_name.c
519
i = s - c;
crypto/openssl/crypto/x509/x_name.c
520
if (BIO_write(bp, c, i) != i)
crypto/openssl/crypto/x509/x_name.c
522
c = s + 1; /* skip following slash */
crypto/openssl/engines/e_capi.c
624
unsigned char c;
crypto/openssl/engines/e_capi.c
625
c = bin[i];
crypto/openssl/engines/e_capi.c
627
bin[binlen - i - 1] = c;
crypto/openssl/engines/e_capi.c
921
unsigned char c;
crypto/openssl/engines/e_capi.c
922
c = sigret[i];
crypto/openssl/engines/e_capi.c
924
sigret[slen - i - 1] = c;
crypto/openssl/engines/e_dasync.c
903
static int (*pparamgen)(EVP_PKEY_CTX *c, EVP_PKEY *pkey);
crypto/openssl/engines/e_dasync.c
921
static int (*pkeygen)(EVP_PKEY_CTX *c, EVP_PKEY *pkey);
crypto/openssl/engines/e_loader_attic.c
989
char c = tolower((unsigned char)p[1]);
crypto/openssl/engines/e_loader_attic.c
991
if (c >= 'a' && c <= 'z') {
crypto/openssl/engines/e_padlock.c
349
unsigned char c = *(in_arg++);
crypto/openssl/engines/e_padlock.c
350
*(out_arg++) = c ^ ivp[chunk];
crypto/openssl/engines/e_padlock.c
351
ivp[chunk++] = c, nbytes--;
crypto/openssl/engines/e_padlock.c
381
unsigned char c = *(in_arg++);
crypto/openssl/engines/e_padlock.c
382
*(out_arg++) = c ^ *ivp;
crypto/openssl/engines/e_padlock.c
383
*(ivp++) = c, nbytes--;
crypto/openssl/include/crypto/aria.h
30
unsigned char c[ARIA_BLOCK_SIZE];
crypto/openssl/include/crypto/ctype.h
53
int ossl_toascii(int c);
crypto/openssl/include/crypto/ctype.h
54
int ossl_fromascii(int c);
crypto/openssl/include/crypto/ctype.h
56
#define ossl_toascii(c) (c)
crypto/openssl/include/crypto/ctype.h
57
#define ossl_fromascii(c) (c)
crypto/openssl/include/crypto/ctype.h
59
int ossl_ctype_check(int c, unsigned int mask);
crypto/openssl/include/crypto/ctype.h
61
int ossl_tolower(int c);
crypto/openssl/include/crypto/ctype.h
62
int ossl_toupper(int c);
crypto/openssl/include/crypto/ctype.h
64
int ossl_isdigit(int c);
crypto/openssl/include/crypto/ctype.h
65
int ossl_islower(int c);
crypto/openssl/include/crypto/ctype.h
66
int ossl_isupper(int c);
crypto/openssl/include/crypto/ctype.h
68
int ossl_ascii_isdigit(int c);
crypto/openssl/include/crypto/ctype.h
70
#define ossl_isalnum(c) (ossl_ctype_check((c), CTYPE_MASK_alnum))
crypto/openssl/include/crypto/ctype.h
71
#define ossl_isalpha(c) (ossl_ctype_check((c), CTYPE_MASK_alpha))
crypto/openssl/include/crypto/ctype.h
73
#define ossl_isascii(c) (ossl_ctype_check((c), CTYPE_MASK_ascii))
crypto/openssl/include/crypto/ctype.h
75
#define ossl_isascii(c) (((c) & ~127) == 0)
crypto/openssl/include/crypto/ctype.h
77
#define ossl_isblank(c) (ossl_ctype_check((c), CTYPE_MASK_blank))
crypto/openssl/include/crypto/ctype.h
78
#define ossl_iscntrl(c) (ossl_ctype_check((c), CTYPE_MASK_cntrl))
crypto/openssl/include/crypto/ctype.h
79
#define ossl_isgraph(c) (ossl_ctype_check((c), CTYPE_MASK_graph))
crypto/openssl/include/crypto/ctype.h
80
#define ossl_isprint(c) (ossl_ctype_check((c), CTYPE_MASK_print))
crypto/openssl/include/crypto/ctype.h
81
#define ossl_ispunct(c) (ossl_ctype_check((c), CTYPE_MASK_punct))
crypto/openssl/include/crypto/ctype.h
82
#define ossl_isspace(c) (ossl_ctype_check((c), CTYPE_MASK_space))
crypto/openssl/include/crypto/ctype.h
83
#define ossl_isxdigit(c) (ossl_ctype_check((c), CTYPE_MASK_xdigit))
crypto/openssl/include/crypto/ctype.h
84
#define ossl_isbase64(c) (ossl_ctype_check((c), CTYPE_MASK_base64))
crypto/openssl/include/crypto/ctype.h
85
#define ossl_isasn1print(c) (ossl_ctype_check((c), CTYPE_MASK_asn1print))
crypto/openssl/include/crypto/evp.h
587
int evp_cipher_param_to_asn1_ex(EVP_CIPHER_CTX *c, ASN1_TYPE *type,
crypto/openssl/include/crypto/evp.h
590
int evp_cipher_asn1_to_param_ex(EVP_CIPHER_CTX *c, ASN1_TYPE *type,
crypto/openssl/include/crypto/md32_common.h
125
#define HOST_c2l(c, l) (l = (((unsigned long)(*((c)++))) << 24), \
crypto/openssl/include/crypto/md32_common.h
126
l |= (((unsigned long)(*((c)++))) << 16), \
crypto/openssl/include/crypto/md32_common.h
127
l |= (((unsigned long)(*((c)++))) << 8), \
crypto/openssl/include/crypto/md32_common.h
128
l |= (((unsigned long)(*((c)++)))))
crypto/openssl/include/crypto/md32_common.h
129
#define HOST_l2c(l, c) (*((c)++) = (unsigned char)(((l) >> 24) & 0xff), \
crypto/openssl/include/crypto/md32_common.h
130
*((c)++) = (unsigned char)(((l) >> 16) & 0xff), \
crypto/openssl/include/crypto/md32_common.h
131
*((c)++) = (unsigned char)(((l) >> 8) & 0xff), \
crypto/openssl/include/crypto/md32_common.h
132
*((c)++) = (unsigned char)(((l)) & 0xff), \
crypto/openssl/include/crypto/md32_common.h
137
#define HOST_c2l(c, l) (l = (((unsigned long)(*((c)++)))), \
crypto/openssl/include/crypto/md32_common.h
138
l |= (((unsigned long)(*((c)++))) << 8), \
crypto/openssl/include/crypto/md32_common.h
139
l |= (((unsigned long)(*((c)++))) << 16), \
crypto/openssl/include/crypto/md32_common.h
140
l |= (((unsigned long)(*((c)++))) << 24))
crypto/openssl/include/crypto/md32_common.h
141
#define HOST_l2c(l, c) (*((c)++) = (unsigned char)(((l)) & 0xff), \
crypto/openssl/include/crypto/md32_common.h
142
*((c)++) = (unsigned char)(((l) >> 8) & 0xff), \
crypto/openssl/include/crypto/md32_common.h
143
*((c)++) = (unsigned char)(((l) >> 16) & 0xff), \
crypto/openssl/include/crypto/md32_common.h
144
*((c)++) = (unsigned char)(((l) >> 24) & 0xff), \
crypto/openssl/include/crypto/md32_common.h
153
int HASH_UPDATE(HASH_CTX *c, const void *data_, size_t len)
crypto/openssl/include/crypto/md32_common.h
163
l = (c->Nl + (((HASH_LONG)len) << 3)) & 0xffffffffUL;
crypto/openssl/include/crypto/md32_common.h
164
if (l < c->Nl) /* overflow */
crypto/openssl/include/crypto/md32_common.h
165
c->Nh++;
crypto/openssl/include/crypto/md32_common.h
166
c->Nh += (HASH_LONG)(len >> 29); /* might cause compiler warning on
crypto/openssl/include/crypto/md32_common.h
168
c->Nl = l;
crypto/openssl/include/crypto/md32_common.h
170
n = c->num;
crypto/openssl/include/crypto/md32_common.h
172
p = (unsigned char *)c->data;
crypto/openssl/include/crypto/md32_common.h
176
HASH_BLOCK_DATA_ORDER(c, p, 1);
crypto/openssl/include/crypto/md32_common.h
180
c->num = 0;
crypto/openssl/include/crypto/md32_common.h
190
c->num += (unsigned int)len;
crypto/openssl/include/crypto/md32_common.h
197
HASH_BLOCK_DATA_ORDER(c, data, n);
crypto/openssl/include/crypto/md32_common.h
204
p = (unsigned char *)c->data;
crypto/openssl/include/crypto/md32_common.h
205
c->num = (unsigned int)len;
crypto/openssl/include/crypto/md32_common.h
211
void HASH_TRANSFORM(HASH_CTX *c, const unsigned char *data)
crypto/openssl/include/crypto/md32_common.h
213
HASH_BLOCK_DATA_ORDER(c, data, 1);
crypto/openssl/include/crypto/md32_common.h
216
int HASH_FINAL(unsigned char *md, HASH_CTX *c)
crypto/openssl/include/crypto/md32_common.h
218
unsigned char *p = (unsigned char *)c->data;
crypto/openssl/include/crypto/md32_common.h
219
size_t n = c->num;
crypto/openssl/include/crypto/md32_common.h
227
HASH_BLOCK_DATA_ORDER(c, p, 1);
crypto/openssl/include/crypto/md32_common.h
233
(void)HOST_l2c(c->Nh, p);
crypto/openssl/include/crypto/md32_common.h
234
(void)HOST_l2c(c->Nl, p);
crypto/openssl/include/crypto/md32_common.h
236
(void)HOST_l2c(c->Nl, p);
crypto/openssl/include/crypto/md32_common.h
237
(void)HOST_l2c(c->Nh, p);
crypto/openssl/include/crypto/md32_common.h
240
HASH_BLOCK_DATA_ORDER(c, p, 1);
crypto/openssl/include/crypto/md32_common.h
241
c->num = 0;
crypto/openssl/include/crypto/md32_common.h
247
HASH_MAKE_STRING(c, md);
crypto/openssl/include/crypto/modes.h
119
u8 c[16];
crypto/openssl/include/crypto/modes.h
162
u8 c[16];
crypto/openssl/include/crypto/modes.h
173
unsigned char c[16];
crypto/openssl/include/crypto/modes.h
180
ocb_block_xor((in1)->c, (in2)->c, 16, (out)->c)
crypto/openssl/include/crypto/sha.h
17
int ossl_sha256_192_init(SHA256_CTX *c);
crypto/openssl/include/internal/common.h
104
#define c2l(c, l) (l = ((unsigned long)(*((c)++))), \
crypto/openssl/include/internal/common.h
105
l |= (((unsigned long)(*((c)++))) << 8), \
crypto/openssl/include/internal/common.h
106
l |= (((unsigned long)(*((c)++))) << 16), \
crypto/openssl/include/internal/common.h
107
l |= (((unsigned long)(*((c)++))) << 24))
crypto/openssl/include/internal/common.h
110
#define c2ln(c, l1, l2, n) \
crypto/openssl/include/internal/common.h
112
c += n; \
crypto/openssl/include/internal/common.h
116
l2 = ((unsigned long)(*(--(c)))) << 24; \
crypto/openssl/include/internal/common.h
118
l2 |= ((unsigned long)(*(--(c)))) << 16; \
crypto/openssl/include/internal/common.h
120
l2 |= ((unsigned long)(*(--(c)))) << 8; \
crypto/openssl/include/internal/common.h
122
l2 |= ((unsigned long)(*(--(c)))); \
crypto/openssl/include/internal/common.h
124
l1 = ((unsigned long)(*(--(c)))) << 24; \
crypto/openssl/include/internal/common.h
126
l1 |= ((unsigned long)(*(--(c)))) << 16; \
crypto/openssl/include/internal/common.h
128
l1 |= ((unsigned long)(*(--(c)))) << 8; \
crypto/openssl/include/internal/common.h
130
l1 |= ((unsigned long)(*(--(c)))); \
crypto/openssl/include/internal/common.h
134
#define l2c(l, c) (*((c)++) = (unsigned char)(((l)) & 0xff), \
crypto/openssl/include/internal/common.h
135
*((c)++) = (unsigned char)(((l) >> 8) & 0xff), \
crypto/openssl/include/internal/common.h
136
*((c)++) = (unsigned char)(((l) >> 16) & 0xff), \
crypto/openssl/include/internal/common.h
137
*((c)++) = (unsigned char)(((l) >> 24) & 0xff))
crypto/openssl/include/internal/common.h
139
#define n2l(c, l) (l = ((unsigned long)(*((c)++))) << 24, \
crypto/openssl/include/internal/common.h
140
l |= ((unsigned long)(*((c)++))) << 16, \
crypto/openssl/include/internal/common.h
141
l |= ((unsigned long)(*((c)++))) << 8, \
crypto/openssl/include/internal/common.h
142
l |= ((unsigned long)(*((c)++))))
crypto/openssl/include/internal/common.h
144
#define n2l8(c, l) (l = ((uint64_t)(*((c)++))) << 56, \
crypto/openssl/include/internal/common.h
145
l |= ((uint64_t)(*((c)++))) << 48, \
crypto/openssl/include/internal/common.h
146
l |= ((uint64_t)(*((c)++))) << 40, \
crypto/openssl/include/internal/common.h
147
l |= ((uint64_t)(*((c)++))) << 32, \
crypto/openssl/include/internal/common.h
148
l |= ((uint64_t)(*((c)++))) << 24, \
crypto/openssl/include/internal/common.h
149
l |= ((uint64_t)(*((c)++))) << 16, \
crypto/openssl/include/internal/common.h
150
l |= ((uint64_t)(*((c)++))) << 8, \
crypto/openssl/include/internal/common.h
151
l |= ((uint64_t)(*((c)++))))
crypto/openssl/include/internal/common.h
153
#define l2n(l, c) (*((c)++) = (unsigned char)(((l) >> 24) & 0xff), \
crypto/openssl/include/internal/common.h
154
*((c)++) = (unsigned char)(((l) >> 16) & 0xff), \
crypto/openssl/include/internal/common.h
155
*((c)++) = (unsigned char)(((l) >> 8) & 0xff), \
crypto/openssl/include/internal/common.h
156
*((c)++) = (unsigned char)(((l)) & 0xff))
crypto/openssl/include/internal/common.h
158
#define l2n8(l, c) (*((c)++) = (unsigned char)(((l) >> 56) & 0xff), \
crypto/openssl/include/internal/common.h
159
*((c)++) = (unsigned char)(((l) >> 48) & 0xff), \
crypto/openssl/include/internal/common.h
160
*((c)++) = (unsigned char)(((l) >> 40) & 0xff), \
crypto/openssl/include/internal/common.h
161
*((c)++) = (unsigned char)(((l) >> 32) & 0xff), \
crypto/openssl/include/internal/common.h
162
*((c)++) = (unsigned char)(((l) >> 24) & 0xff), \
crypto/openssl/include/internal/common.h
163
*((c)++) = (unsigned char)(((l) >> 16) & 0xff), \
crypto/openssl/include/internal/common.h
164
*((c)++) = (unsigned char)(((l) >> 8) & 0xff), \
crypto/openssl/include/internal/common.h
165
*((c)++) = (unsigned char)(((l)) & 0xff))
crypto/openssl/include/internal/common.h
168
#define l2cn(l1, l2, c, n) \
crypto/openssl/include/internal/common.h
170
c += n; \
crypto/openssl/include/internal/common.h
173
*(--(c)) = (unsigned char)(((l2) >> 24) & 0xff); \
crypto/openssl/include/internal/common.h
175
*(--(c)) = (unsigned char)(((l2) >> 16) & 0xff); \
crypto/openssl/include/internal/common.h
177
*(--(c)) = (unsigned char)(((l2) >> 8) & 0xff); \
crypto/openssl/include/internal/common.h
179
*(--(c)) = (unsigned char)(((l2)) & 0xff); \
crypto/openssl/include/internal/common.h
181
*(--(c)) = (unsigned char)(((l1) >> 24) & 0xff); \
crypto/openssl/include/internal/common.h
183
*(--(c)) = (unsigned char)(((l1) >> 16) & 0xff); \
crypto/openssl/include/internal/common.h
185
*(--(c)) = (unsigned char)(((l1) >> 8) & 0xff); \
crypto/openssl/include/internal/common.h
187
*(--(c)) = (unsigned char)(((l1)) & 0xff); \
crypto/openssl/include/internal/common.h
191
#define n2s(c, s) ((s = (((unsigned int)((c)[0])) << 8) | (((unsigned int)((c)[1])))), (c) += 2)
crypto/openssl/include/internal/common.h
192
#define s2n(s, c) (((c)[0] = (unsigned char)(((s) >> 8) & 0xff), \
crypto/openssl/include/internal/common.h
193
(c)[1] = (unsigned char)(((s)) & 0xff)), \
crypto/openssl/include/internal/common.h
194
(c) += 2)
crypto/openssl/include/internal/common.h
196
#define n2l3(c, l) ((l = (((unsigned long)((c)[0])) << 16) | (((unsigned long)((c)[1])) << 8) | (((unsigned long)((c)[2])))), (c) += 3)
crypto/openssl/include/internal/common.h
198
#define l2n3(l, c) (((c)[0] = (unsigned char)(((l) >> 16) & 0xff), \
crypto/openssl/include/internal/common.h
199
(c)[1] = (unsigned char)(((l) >> 8) & 0xff), \
crypto/openssl/include/internal/common.h
200
(c)[2] = (unsigned char)(((l)) & 0xff)), \
crypto/openssl/include/internal/common.h
201
(c) += 3)
crypto/openssl/include/internal/e_os.h
267
#define ioctlsocket(a, b, c) ioctl(a, b, c)
crypto/openssl/include/internal/e_os.h
313
#define accept(a, b, c) accept(a, (struct sockaddr *)b, c)
crypto/openssl/include/internal/e_os.h
314
#define recvfrom(a, b, c, d, e, f) recvfrom(a, b, (socklen_t)c, d, e, f)
crypto/openssl/include/internal/numbers.h
69
#define UINT32_C(c) (c)
crypto/openssl/include/internal/numbers.h
72
#define UINT64_C(c) (c##UL)
crypto/openssl/include/internal/numbers.h
81
#define UINT32_C(c) (c##UL)
crypto/openssl/include/internal/numbers.h
84
#define UINT64_C(c) (c##ULL)
crypto/openssl/include/internal/safe_math.h
322
type c, \
crypto/openssl/include/internal/safe_math.h
328
if (c == 0) { \
crypto/openssl/include/internal/safe_math.h
334
return safe_div_##type_name(x, c, err); \
crypto/openssl/include/internal/safe_math.h
340
q = safe_div_##type_name(a, c, err); \
crypto/openssl/include/internal/safe_math.h
341
r = safe_mod_##type_name(a, c, err); \
crypto/openssl/include/internal/safe_math.h
344
q = safe_div_##type_name(x, c, err); \
crypto/openssl/include/internal/safe_math.h
351
type c, \
crypto/openssl/include/internal/safe_math.h
357
if (c == 0) { \
crypto/openssl/include/internal/safe_math.h
363
return x / c; \
crypto/openssl/include/internal/safe_math.h
369
x = safe_mul_##type_name(a % c, b, err); \
crypto/openssl/include/internal/safe_math.h
370
y = safe_mul_##type_name(a / c, b, err); \
crypto/openssl/include/internal/safe_math.h
371
return safe_add_##type_name(y, x / c, err); \
crypto/openssl/include/internal/sm3.h
35
int ossl_sm3_init(SM3_CTX *c);
crypto/openssl/include/internal/sm3.h
36
int ossl_sm3_update(SM3_CTX *c, const void *data, size_t len);
crypto/openssl/include/internal/sm3.h
37
int ossl_sm3_final(unsigned char *md, SM3_CTX *c);
crypto/openssl/include/internal/sockets.h
184
#define ioctlsocket(a, b, c) ioctl(a, b, c)
crypto/openssl/include/internal/sockets.h
189
#define ioctlsocket(a, b, c) ioctl((a), (b), (int)(c))
crypto/openssl/include/internal/sockets.h
196
#define ioctlsocket(a, b, c) ioctl(a, b, c)
crypto/openssl/include/internal/sockets.h
199
#define ioctlsocket(a, b, c) ioctl(a, b, c)
crypto/openssl/include/internal/ssl.h
26
int SSL_CTX_is_quic(const SSL_CTX *c);
crypto/openssl/include/internal/ssl_unwrap.h
100
#define QUIC_CONNECTION_FROM_SSL_int(ssl, c) NULL
crypto/openssl/include/internal/ssl_unwrap.h
101
#define QUIC_XSO_FROM_SSL_int(ssl, c) NULL
crypto/openssl/include/internal/ssl_unwrap.h
102
#define QUIC_LISTENER_FROM_SSL_int(ssl, c) NULL
crypto/openssl/include/internal/ssl_unwrap.h
103
#define SSL_CONNECTION_FROM_QUIC_SSL_int(ssl, c) NULL
crypto/openssl/include/internal/ssl_unwrap.h
16
#define SSL_CONNECTION_FROM_SSL_ONLY_int(ssl, c) \
crypto/openssl/include/internal/ssl_unwrap.h
19
? (c SSL_CONNECTION *)(ssl) \
crypto/openssl/include/internal/ssl_unwrap.h
31
#define SSL_CONNECTION_FROM_SSL_int(ssl, c) \
crypto/openssl/include/internal/ssl_unwrap.h
34
? (c SSL_CONNECTION *)(ssl) \
crypto/openssl/include/internal/ssl_unwrap.h
36
? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
crypto/openssl/include/internal/ssl_unwrap.h
56
#define QUIC_CONNECTION_FROM_SSL_int(ssl, c) \
crypto/openssl/include/internal/ssl_unwrap.h
59
? (c QUIC_CONNECTION *)(ssl) \
crypto/openssl/include/internal/ssl_unwrap.h
62
#define QUIC_XSO_FROM_SSL_int(ssl, c) \
crypto/openssl/include/internal/ssl_unwrap.h
66
? (c QUIC_XSO *)(ssl) \
crypto/openssl/include/internal/ssl_unwrap.h
68
? (c QUIC_XSO *)((QUIC_CONNECTION *)(ssl))->default_xso \
crypto/openssl/include/internal/ssl_unwrap.h
71
#define SSL_CONNECTION_FROM_QUIC_SSL_int(ssl, c) \
crypto/openssl/include/internal/ssl_unwrap.h
74
? (c SSL_CONNECTION *)((c QUIC_CONNECTION *)(ssl))->tls \
crypto/openssl/include/internal/ssl_unwrap.h
77
#define QUIC_LISTENER_FROM_SSL_int(ssl, c) \
crypto/openssl/include/internal/ssl_unwrap.h
81
? (c QUIC_LISTENER *)(ssl) \
crypto/openssl/include/internal/ssl_unwrap.h
84
#define QUIC_DOMAIN_FROM_SSL_int(ssl, c) \
crypto/openssl/include/internal/ssl_unwrap.h
88
? (c QUIC_DOMAIN *)(ssl) \
crypto/openssl/include/internal/time.h
216
ossl_time_muldiv(OSSL_TIME a, uint64_t b, uint64_t c)
crypto/openssl/include/internal/time.h
221
r.t = safe_muldiv_time(a.t, b, c, &err);
crypto/openssl/include/openssl/bio.h
564
#define BIO_set_fd(b, fd, c) BIO_int_ctrl(b, BIO_C_SET_FD, c, fd)
crypto/openssl/include/openssl/bio.h
565
#define BIO_get_fd(b, c) BIO_ctrl(b, BIO_C_GET_FD, 0, (char *)(c))
crypto/openssl/include/openssl/bio.h
568
#define BIO_set_fp(b, fp, c) BIO_ctrl(b, BIO_C_SET_FILE_PTR, c, (char *)(fp))
crypto/openssl/include/openssl/bio.h
602
#define BIO_set_ssl(b, ssl, c) BIO_ctrl(b, BIO_C_SET_SSL, c, (char *)(ssl))
crypto/openssl/include/openssl/bio.h
616
#define BIO_set_mem_buf(b, bm, c) BIO_ctrl(b, BIO_C_SET_BUF_MEM, c, (char *)(bm))
crypto/openssl/include/openssl/bio.h
634
#define BIO_set_close(b, c) (int)BIO_ctrl(b, BIO_CTRL_SET_CLOSE, (c), NULL)
crypto/openssl/include/openssl/bn.h
212
void BN_CTX_free(BN_CTX *c);
crypto/openssl/include/openssl/conf.h
178
#define NCONF_get_number(c, g, n, r) NCONF_get_number_e(c, g, n, r)
crypto/openssl/include/openssl/conftypes.h
29
int (*is_number)(const CONF *conf, char c);
crypto/openssl/include/openssl/conftypes.h
30
int (*to_int)(const CONF *conf, char c);
crypto/openssl/include/openssl/crypto.h
148
int OPENSSL_hexchar2int(unsigned char c);
crypto/openssl/include/openssl/evp.h
1515
int EVP_CIPHER_param_to_asn1(EVP_CIPHER_CTX *c, ASN1_TYPE *type);
crypto/openssl/include/openssl/evp.h
1516
int EVP_CIPHER_asn1_to_param(EVP_CIPHER_CTX *c, ASN1_TYPE *type);
crypto/openssl/include/openssl/evp.h
1519
int EVP_CIPHER_set_asn1_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type);
crypto/openssl/include/openssl/evp.h
1520
int EVP_CIPHER_get_asn1_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type);
crypto/openssl/include/openssl/evp.h
1557
const EVP_CIPHER *c, const EVP_MD *md, int en_de);
crypto/openssl/include/openssl/evp.h
1560
const EVP_CIPHER *c, const EVP_MD *md, int en_de,
crypto/openssl/include/openssl/evp.h
660
#define EVP_CIPHER_CTX_get0_name(c) EVP_CIPHER_get0_name(EVP_CIPHER_CTX_get0_cipher(c))
crypto/openssl/include/openssl/evp.h
661
#define EVP_CIPHER_CTX_get_type(c) EVP_CIPHER_get_type(EVP_CIPHER_CTX_get0_cipher(c))
crypto/openssl/include/openssl/evp.h
664
#define EVP_CIPHER_CTX_flags(c) EVP_CIPHER_get_flags(EVP_CIPHER_CTX_get0_cipher(c))
crypto/openssl/include/openssl/evp.h
666
#define EVP_CIPHER_CTX_get_mode(c) EVP_CIPHER_get_mode(EVP_CIPHER_CTX_get0_cipher(c))
crypto/openssl/include/openssl/evp.h
672
#define EVP_SignInit_ex(a, b, c) EVP_DigestInit_ex(a, b, c)
crypto/openssl/include/openssl/evp.h
674
#define EVP_SignUpdate(a, b, c) EVP_DigestUpdate(a, b, c)
crypto/openssl/include/openssl/evp.h
675
#define EVP_VerifyInit_ex(a, b, c) EVP_DigestInit_ex(a, b, c)
crypto/openssl/include/openssl/evp.h
677
#define EVP_VerifyUpdate(a, b, c) EVP_DigestUpdate(a, b, c)
crypto/openssl/include/openssl/evp.h
678
#define EVP_OpenUpdate(a, b, c, d, e) EVP_DecryptUpdate(a, b, c, d, e)
crypto/openssl/include/openssl/evp.h
679
#define EVP_SealUpdate(a, b, c, d, e) EVP_EncryptUpdate(a, b, c, d, e)
crypto/openssl/include/openssl/evp.h
692
__owur int EVP_Cipher(EVP_CIPHER_CTX *c,
crypto/openssl/include/openssl/evp.h
910
#define EVP_CIPHER_CTX_init(c) EVP_CIPHER_CTX_reset(c)
crypto/openssl/include/openssl/evp.h
911
#define EVP_CIPHER_CTX_cleanup(c) EVP_CIPHER_CTX_reset(c)
crypto/openssl/include/openssl/evp.h
914
int EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *c);
crypto/openssl/include/openssl/evp.h
915
void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *c);
crypto/openssl/include/openssl/evp.h
917
int EVP_CIPHER_CTX_set_padding(EVP_CIPHER_CTX *c, int pad);
crypto/openssl/include/openssl/evp.h
937
__owur int BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k,
crypto/openssl/include/openssl/lhash.h
113
unsigned long OPENSSL_LH_strhash(const char *c);
crypto/openssl/include/openssl/lhash.h
95
OPENSSL_LHASH *OPENSSL_LH_new(OPENSSL_LH_HASHFUNC h, OPENSSL_LH_COMPFUNC c);
crypto/openssl/include/openssl/md2.h
44
OSSL_DEPRECATEDIN_3_0 int MD2_Init(MD2_CTX *c);
crypto/openssl/include/openssl/md2.h
45
OSSL_DEPRECATEDIN_3_0 int MD2_Update(MD2_CTX *c, const unsigned char *data,
crypto/openssl/include/openssl/md2.h
47
OSSL_DEPRECATEDIN_3_0 int MD2_Final(unsigned char *md, MD2_CTX *c);
crypto/openssl/include/openssl/md4.h
50
OSSL_DEPRECATEDIN_3_0 int MD4_Init(MD4_CTX *c);
crypto/openssl/include/openssl/md4.h
51
OSSL_DEPRECATEDIN_3_0 int MD4_Update(MD4_CTX *c, const void *data, size_t len);
crypto/openssl/include/openssl/md4.h
52
OSSL_DEPRECATEDIN_3_0 int MD4_Final(unsigned char *md, MD4_CTX *c);
crypto/openssl/include/openssl/md4.h
55
OSSL_DEPRECATEDIN_3_0 void MD4_Transform(MD4_CTX *c, const unsigned char *b);
crypto/openssl/include/openssl/md5.h
49
OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c);
crypto/openssl/include/openssl/md5.h
50
OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
crypto/openssl/include/openssl/md5.h
51
OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c);
crypto/openssl/include/openssl/md5.h
54
OSSL_DEPRECATEDIN_3_0 void MD5_Transform(MD5_CTX *c, const unsigned char *b);
crypto/openssl/include/openssl/mdc2.h
42
OSSL_DEPRECATEDIN_3_0 int MDC2_Init(MDC2_CTX *c);
crypto/openssl/include/openssl/mdc2.h
43
OSSL_DEPRECATEDIN_3_0 int MDC2_Update(MDC2_CTX *c, const unsigned char *data,
crypto/openssl/include/openssl/mdc2.h
45
OSSL_DEPRECATEDIN_3_0 int MDC2_Final(unsigned char *md, MDC2_CTX *c);
crypto/openssl/include/openssl/objects.h
49
#define OBJ_create_and_add_object(a, b, c) OBJ_create(a, b, c)
crypto/openssl/include/openssl/ripemd.h
45
OSSL_DEPRECATEDIN_3_0 int RIPEMD160_Init(RIPEMD160_CTX *c);
crypto/openssl/include/openssl/ripemd.h
46
OSSL_DEPRECATEDIN_3_0 int RIPEMD160_Update(RIPEMD160_CTX *c, const void *data,
crypto/openssl/include/openssl/ripemd.h
48
OSSL_DEPRECATEDIN_3_0 int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);
crypto/openssl/include/openssl/ripemd.h
51
OSSL_DEPRECATEDIN_3_0 void RIPEMD160_Transform(RIPEMD160_CTX *c,
crypto/openssl/include/openssl/sha.h
120
OSSL_DEPRECATEDIN_3_0 int SHA384_Init(SHA512_CTX *c);
crypto/openssl/include/openssl/sha.h
121
OSSL_DEPRECATEDIN_3_0 int SHA384_Update(SHA512_CTX *c,
crypto/openssl/include/openssl/sha.h
123
OSSL_DEPRECATEDIN_3_0 int SHA384_Final(unsigned char *md, SHA512_CTX *c);
crypto/openssl/include/openssl/sha.h
124
OSSL_DEPRECATEDIN_3_0 int SHA512_Init(SHA512_CTX *c);
crypto/openssl/include/openssl/sha.h
125
OSSL_DEPRECATEDIN_3_0 int SHA512_Update(SHA512_CTX *c,
crypto/openssl/include/openssl/sha.h
127
OSSL_DEPRECATEDIN_3_0 int SHA512_Final(unsigned char *md, SHA512_CTX *c);
crypto/openssl/include/openssl/sha.h
128
OSSL_DEPRECATEDIN_3_0 void SHA512_Transform(SHA512_CTX *c,
crypto/openssl/include/openssl/sha.h
49
OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c);
crypto/openssl/include/openssl/sha.h
50
OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
crypto/openssl/include/openssl/sha.h
51
OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
crypto/openssl/include/openssl/sha.h
52
OSSL_DEPRECATEDIN_3_0 void SHA1_Transform(SHA_CTX *c, const unsigned char *data);
crypto/openssl/include/openssl/sha.h
69
OSSL_DEPRECATEDIN_3_0 int SHA224_Init(SHA256_CTX *c);
crypto/openssl/include/openssl/sha.h
70
OSSL_DEPRECATEDIN_3_0 int SHA224_Update(SHA256_CTX *c,
crypto/openssl/include/openssl/sha.h
72
OSSL_DEPRECATEDIN_3_0 int SHA224_Final(unsigned char *md, SHA256_CTX *c);
crypto/openssl/include/openssl/sha.h
73
OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c);
crypto/openssl/include/openssl/sha.h
74
OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c,
crypto/openssl/include/openssl/sha.h
76
OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c);
crypto/openssl/include/openssl/sha.h
77
OSSL_DEPRECATEDIN_3_0 void SHA256_Transform(SHA256_CTX *c,
crypto/openssl/include/openssl/ssl.h
1644
__owur int SSL_CIPHER_get_bits(const SSL_CIPHER *c, int *alg_bits);
crypto/openssl/include/openssl/ssl.h
1645
__owur const char *SSL_CIPHER_get_version(const SSL_CIPHER *c);
crypto/openssl/include/openssl/ssl.h
1646
__owur const char *SSL_CIPHER_get_name(const SSL_CIPHER *c);
crypto/openssl/include/openssl/ssl.h
1647
__owur const char *SSL_CIPHER_standard_name(const SSL_CIPHER *c);
crypto/openssl/include/openssl/ssl.h
1649
__owur uint32_t SSL_CIPHER_get_id(const SSL_CIPHER *c);
crypto/openssl/include/openssl/ssl.h
1650
__owur uint16_t SSL_CIPHER_get_protocol_id(const SSL_CIPHER *c);
crypto/openssl/include/openssl/ssl.h
1651
__owur int SSL_CIPHER_get_kx_nid(const SSL_CIPHER *c);
crypto/openssl/include/openssl/ssl.h
1652
__owur int SSL_CIPHER_get_auth_nid(const SSL_CIPHER *c);
crypto/openssl/include/openssl/ssl.h
1653
__owur const EVP_MD *SSL_CIPHER_get_handshake_digest(const SSL_CIPHER *c);
crypto/openssl/include/openssl/ssl.h
1654
__owur int SSL_CIPHER_is_aead(const SSL_CIPHER *c);
crypto/openssl/include/openssl/ssl.h
1840
void SSL_CTX_set_cert_cb(SSL_CTX *c, int (*cb)(SSL *ssl, void *arg),
crypto/openssl/include/openssl/ssl.h
1961
void SSL_CTX_set_client_hello_cb(SSL_CTX *c, SSL_client_hello_cb_fn cb,
crypto/openssl/include/openssl/ssl.h
1965
void SSL_CTX_set_new_pending_conn_cb(SSL_CTX *c, SSL_new_pending_conn_cb_fn cb,
crypto/openssl/include/openssl/ssl.h
2303
int SSL_CIPHER_get_cipher_nid(const SSL_CIPHER *c);
crypto/openssl/include/openssl/ssl.h
2304
int SSL_CIPHER_get_digest_nid(const SSL_CIPHER *c);
crypto/openssl/include/openssl/stack.h
36
OPENSSL_STACK *OPENSSL_sk_new_reserve(OPENSSL_sk_compfunc c, int n);
crypto/openssl/include/openssl/stack.h
41
OPENSSL_sk_copyfunc c,
crypto/openssl/include/openssl/whrlpool.h
37
unsigned char c[WHIRLPOOL_DIGEST_LENGTH];
crypto/openssl/include/openssl/whrlpool.h
47
OSSL_DEPRECATEDIN_3_0 int WHIRLPOOL_Init(WHIRLPOOL_CTX *c);
crypto/openssl/include/openssl/whrlpool.h
48
OSSL_DEPRECATEDIN_3_0 int WHIRLPOOL_Update(WHIRLPOOL_CTX *c,
crypto/openssl/include/openssl/whrlpool.h
50
OSSL_DEPRECATEDIN_3_0 void WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c,
crypto/openssl/include/openssl/whrlpool.h
52
OSSL_DEPRECATEDIN_3_0 int WHIRLPOOL_Final(unsigned char *md, WHIRLPOOL_CTX *c);
crypto/openssl/include/openssl/x509_vfy.h
775
void X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *c, STACK_OF(X509) *sk);
crypto/openssl/providers/common/provider_seeding.c
49
#define set_func(c, f) \
crypto/openssl/providers/common/provider_seeding.c
51
if (c == NULL) \
crypto/openssl/providers/common/provider_seeding.c
52
c = f; \
crypto/openssl/providers/common/provider_seeding.c
53
else if (c != f) \
crypto/openssl/providers/fips/fipsprov.c
765
#define set_func(c, f) \
crypto/openssl/providers/fips/fipsprov.c
766
if (c == NULL) \
crypto/openssl/providers/fips/fipsprov.c
767
c = f; \
crypto/openssl/providers/fips/fipsprov.c
768
else if (c != f) \
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
134
u8 c[128];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
146
if (RAND_bytes_ex(ctx->base.libctx, (IVs = blocks[0].c), 16 * x4, 0) <= 0)
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
178
memcpy(blocks[0].c, sctx->md.data, 8);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
198
blocks[i].c[j] = ((u8 *)sctx->md.data)[j] + carry;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
199
carry = (blocks[i].c[j] - carry) >> (sizeof(carry) * 8 - 1);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
202
blocks[i].c[8] = ((u8 *)sctx->md.data)[8];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
203
blocks[i].c[9] = ((u8 *)sctx->md.data)[9];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
204
blocks[i].c[10] = ((u8 *)sctx->md.data)[10];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
206
blocks[i].c[11] = (u8)(len >> 8);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
207
blocks[i].c[12] = (u8)(len);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
209
memcpy(blocks[i].c + 13, hash_d[i].ptr, 64 - 13);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
213
edges[i].ptr = blocks[i].c;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
263
memcpy(blocks[i].c, ptr, off);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
264
blocks[i].c[off] = 0x80;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
271
PUTU32(blocks[i].c + 60, len);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
278
PUTU32(blocks[i].c + 124, len);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
282
edges[i].ptr = blocks[i].c;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
301
blocks[i].c[20] = 0x80;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
304
PUTU32(blocks[i].c + 0, mctx->A[i]);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
306
PUTU32(blocks[i].c + 4, mctx->B[i]);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
308
PUTU32(blocks[i].c + 8, mctx->C[i]);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
310
PUTU32(blocks[i].c + 12, mctx->D[i]);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
312
PUTU32(blocks[i].c + 16, mctx->E[i]);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
314
blocks[i].c[20] = 0x80;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
315
PUTU32(blocks[i].c + 60, (64 + 20) * 8);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
317
edges[i].ptr = blocks[i].c;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
35
void sha1_block_data_order(void *c, const void *p, size_t len);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
440
unsigned char c[32 + SHA_DIGEST_LENGTH];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
444
pmac = (void *)(((size_t)mac.c + 31) & ((size_t)0 - 32));
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
452
unsigned char c[SHA_CBLOCK];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
513
mac.c[0] = 0;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
514
mac.c[1] = (unsigned char)(bitlen >> 16);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
515
mac.c[2] = (unsigned char)(bitlen >> 8);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
516
mac.c[3] = (unsigned char)bitlen;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
527
size_t c = out[j];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
529
c &= mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
530
c |= 0x80 & ~mask & ~((inp_len - j) >> (sizeof(j) * 8 - 8));
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
531
data->c[res++] = (unsigned char)c;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
550
data->c[i] = 0;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
584
pmac->c[4 * i + 0] = (unsigned char)(res >> 24);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
585
pmac->c[4 * i + 1] = (unsigned char)(res >> 16);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
586
pmac->c[4 * i + 2] = (unsigned char)(res >> 8);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
587
pmac->c[4 * i + 3] = (unsigned char)res;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
592
sha1_update(&sctx->md, pmac->c, SHA_DIGEST_LENGTH);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
593
SHA1_Final(pmac->c, &sctx->md);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
602
unsigned int c, cmask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
605
c = p[j];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
607
res |= (c ^ pad) & ~cmask; /* ... and padding */
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
609
res |= (c ^ pmac->c[i]) & cmask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
69
static void sha1_update(SHA_CTX *c, const void *data, size_t len)
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
74
if ((res = c->num)) {
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
78
SHA1_Update(c, ptr, res);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
87
sha1_block_data_order(c, ptr, len / SHA_CBLOCK);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
90
c->Nh += len >> 29;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
91
c->Nl += len <<= 3;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
92
if (c->Nl < (unsigned int)len)
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
93
c->Nh++;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
97
SHA1_Update(c, ptr, res);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
101
SHA256_Update(c, ptr, res);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
138
u8 c[128];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
150
if (RAND_bytes_ex(ctx->base.libctx, (IVs = blocks[0].c), 16 * x4, 0) <= 0)
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
182
memcpy(blocks[0].c, sctx->md.data, 8);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
206
blocks[i].c[j] = ((u8 *)sctx->md.data)[j] + carry;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
207
carry = (blocks[i].c[j] - carry) >> (sizeof(carry) * 8 - 1);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
210
blocks[i].c[8] = ((u8 *)sctx->md.data)[8];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
211
blocks[i].c[9] = ((u8 *)sctx->md.data)[9];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
212
blocks[i].c[10] = ((u8 *)sctx->md.data)[10];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
214
blocks[i].c[11] = (u8)(len >> 8);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
215
blocks[i].c[12] = (u8)(len);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
217
memcpy(blocks[i].c + 13, hash_d[i].ptr, 64 - 13);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
221
edges[i].ptr = blocks[i].c;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
271
memcpy(blocks[i].c, ptr, off);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
272
blocks[i].c[off] = 0x80;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
279
PUTU32(blocks[i].c + 60, len);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
286
PUTU32(blocks[i].c + 124, len);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
290
edges[i].ptr = blocks[i].c;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
315
blocks[i].c[32] = 0x80;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
318
PUTU32(blocks[i].c + 0, mctx->A[i]);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
320
PUTU32(blocks[i].c + 4, mctx->B[i]);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
322
PUTU32(blocks[i].c + 8, mctx->C[i]);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
324
PUTU32(blocks[i].c + 12, mctx->D[i]);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
326
PUTU32(blocks[i].c + 16, mctx->E[i]);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
328
PUTU32(blocks[i].c + 20, mctx->F[i]);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
330
PUTU32(blocks[i].c + 24, mctx->G[i]);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
332
PUTU32(blocks[i].c + 28, mctx->H[i]);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
334
blocks[i].c[32] = 0x80;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
335
PUTU32(blocks[i].c + 60, (64 + 32) * 8);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
337
edges[i].ptr = blocks[i].c;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
35
void sha256_block_data_order(void *c, const void *p, size_t len);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
478
unsigned char c[64 + SHA256_DIGEST_LENGTH];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
482
pmac = (void *)(((size_t)mac.c + 63) & ((size_t)0 - 64));
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
494
unsigned char c[SHA256_CBLOCK];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
549
mac.c[0] = 0;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
550
mac.c[1] = (unsigned char)(bitlen >> 16);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
551
mac.c[2] = (unsigned char)(bitlen >> 8);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
552
mac.c[3] = (unsigned char)bitlen;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
566
size_t c = out[j];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
568
c &= mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
569
c |= 0x80 & ~mask & ~((inp_len - j) >> (sizeof(j) * 8 - 8));
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
570
data->c[res++] = (unsigned char)c;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
592
data->c[i] = 0;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
635
pmac->c[4 * i + 0] = (unsigned char)(res >> 24);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
636
pmac->c[4 * i + 1] = (unsigned char)(res >> 16);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
637
pmac->c[4 * i + 2] = (unsigned char)(res >> 8);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
638
pmac->c[4 * i + 3] = (unsigned char)res;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
643
sha256_update(&sctx->md, pmac->c, SHA256_DIGEST_LENGTH);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
644
SHA256_Final(pmac->c, &sctx->md);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
653
unsigned int c, cmask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
658
c = p[j];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
660
res |= (c ^ pad) & ~cmask; /* ... and padding */
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
662
res |= (c ^ pmac->c[i]) & cmask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
71
void sha256_block_data_order(void *c, const void *p, size_t len);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
73
static void sha256_update(SHA256_CTX *c, const void *data, size_t len)
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
78
if ((res = c->num)) {
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
82
SHA256_Update(c, ptr, res);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
91
sha256_block_data_order(c, ptr, len / SHA256_CBLOCK);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
94
c->Nh += len >> 29;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
95
c->Nl += len <<= 3;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
96
if (c->Nl < (unsigned int)len)
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
97
c->Nh++;
crypto/openssl/providers/implementations/ciphers/cipher_aes_gcm_hw.c
106
ctx->gcm.Yi.c, ctx->gcm.Xi.u);
crypto/openssl/providers/implementations/ciphers/cipher_aes_gcm_hw.c
77
ctx->gcm.Yi.c, ctx->gcm.Xi.u);
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c
174
unsigned char c = in[i];
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c
176
out[i] = ctr[i] ^ c;
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c
177
ctr[i] = c;
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
116
memset(tmp_in.c, 0, sizeof(tmp_in));
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
117
memcpy(tmp_in.c, in, residue);
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
118
if (!ctx->hw->cipher(ctx, out - CTS_BLOCK_SIZE + residue, tmp_in.c,
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
155
memcpy(mid_iv.c, ctx->iv, CTS_BLOCK_SIZE);
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
157
memcpy(cn.c, in + residue, CTS_BLOCK_SIZE);
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
161
if (!ctx->hw->cipher(ctx, pt_last.c, in + residue, CTS_BLOCK_SIZE))
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
169
memcpy(ct_mid.c, in, residue);
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
170
memcpy(ct_mid.c + residue, pt_last.c + residue, CTS_BLOCK_SIZE - residue);
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
178
do_xor(ct_mid.c, pt_last.c, residue, out + CTS_BLOCK_SIZE);
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
181
memcpy(ctx->iv, mid_iv.c, CTS_BLOCK_SIZE);
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
187
if (!ctx->hw->cipher(ctx, out, ct_mid.c, CTS_BLOCK_SIZE))
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
191
memcpy(ctx->iv, cn.c, CTS_BLOCK_SIZE);
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
219
memset(tmp_in.c, 0, sizeof(tmp_in));
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
220
memcpy(tmp_in.c, in, residue);
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
222
if (!ctx->hw->cipher(ctx, out - CTS_BLOCK_SIZE, tmp_in.c, CTS_BLOCK_SIZE))
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
261
memcpy(mid_iv.c, ctx->iv, CTS_BLOCK_SIZE);
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
263
memcpy(cn.c, in, CTS_BLOCK_SIZE);
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
267
if (!ctx->hw->cipher(ctx, pt_last.c, in, CTS_BLOCK_SIZE))
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
275
memcpy(ct_mid.c, in + CTS_BLOCK_SIZE, residue);
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
277
memcpy(ct_mid.c + residue, pt_last.c + residue, CTS_BLOCK_SIZE - residue);
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
285
do_xor(ct_mid.c, pt_last.c, residue, out + CTS_BLOCK_SIZE);
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
288
memcpy(ctx->iv, mid_iv.c, CTS_BLOCK_SIZE);
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
293
if (!ctx->hw->cipher(ctx, out, ct_mid.c, CTS_BLOCK_SIZE))
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
297
memcpy(ctx->iv, cn.c, CTS_BLOCK_SIZE);
crypto/openssl/providers/implementations/ciphers/cipher_cts.c
63
unsigned char c[CTS_BLOCK_SIZE];
crypto/openssl/providers/implementations/ciphers/cipher_des_hw.c
138
unsigned char c[1];
crypto/openssl/providers/implementations/ciphers/cipher_des_hw.c
146
c[0] = (in[n / 8] & (1 << (7 - n % 8))) ? 0x80 : 0;
crypto/openssl/providers/implementations/ciphers/cipher_des_hw.c
147
DES_cfb_encrypt(c, d, 1, 1, key, (DES_cblock *)ctx->iv, ctx->enc);
crypto/openssl/providers/implementations/ciphers/cipher_tdes_default_hw.c
101
unsigned char c[1];
crypto/openssl/providers/implementations/ciphers/cipher_tdes_default_hw.c
107
c[0] = (in[n / 8] & (1 << (7 - n % 8))) ? 0x80 : 0;
crypto/openssl/providers/implementations/ciphers/cipher_tdes_default_hw.c
108
DES_ede3_cfb_encrypt(c, d, 1, 1,
crypto/openssl/providers/implementations/ciphers/ciphercommon_gcm.c
100
unsigned char c;
crypto/openssl/providers/implementations/ciphers/ciphercommon_gcm.c
104
c = counter[n];
crypto/openssl/providers/implementations/ciphers/ciphercommon_gcm.c
105
++c;
crypto/openssl/providers/implementations/ciphers/ciphercommon_gcm.c
106
counter[n] = c;
crypto/openssl/providers/implementations/ciphers/ciphercommon_gcm.c
107
if (c > 0)
crypto/openssl/providers/implementations/digests/blake2_impl.h
110
static ossl_inline uint32_t rotr32(const uint32_t w, const unsigned int c)
crypto/openssl/providers/implementations/digests/blake2_impl.h
112
return (w >> c) | (w << (32 - c));
crypto/openssl/providers/implementations/digests/blake2_impl.h
115
static ossl_inline uint64_t rotr64(const uint64_t w, const unsigned int c)
crypto/openssl/providers/implementations/digests/blake2_impl.h
117
return (w >> c) | (w << (64 - c));
crypto/openssl/providers/implementations/digests/blake2b_prov.c
125
int ossl_blake2b_init(BLAKE2B_CTX *c, const BLAKE2B_PARAM *P)
crypto/openssl/providers/implementations/digests/blake2b_prov.c
127
blake2b_init_param(c, P);
crypto/openssl/providers/implementations/digests/blake2b_prov.c
135
int ossl_blake2b_init_key(BLAKE2B_CTX *c, const BLAKE2B_PARAM *P,
crypto/openssl/providers/implementations/digests/blake2b_prov.c
138
blake2b_init_param(c, P);
crypto/openssl/providers/implementations/digests/blake2b_prov.c
145
ossl_blake2b_update(c, block, BLAKE2B_BLOCKBYTES);
crypto/openssl/providers/implementations/digests/blake2b_prov.c
204
#define G(r, i, a, b, c, d) \
crypto/openssl/providers/implementations/digests/blake2b_prov.c
208
c = c + d; \
crypto/openssl/providers/implementations/digests/blake2b_prov.c
209
b = rotr64(b ^ c, 24); \
crypto/openssl/providers/implementations/digests/blake2b_prov.c
212
c = c + d; \
crypto/openssl/providers/implementations/digests/blake2b_prov.c
213
b = rotr64(b ^ c, 63); \
crypto/openssl/providers/implementations/digests/blake2b_prov.c
257
int ossl_blake2b_update(BLAKE2B_CTX *c, const void *data, size_t datalen)
crypto/openssl/providers/implementations/digests/blake2b_prov.c
270
fill = sizeof(c->buf) - c->buflen;
crypto/openssl/providers/implementations/digests/blake2b_prov.c
272
if (c->buflen) {
crypto/openssl/providers/implementations/digests/blake2b_prov.c
273
memcpy(c->buf + c->buflen, in, fill); /* Fill buffer */
crypto/openssl/providers/implementations/digests/blake2b_prov.c
274
blake2b_compress(c, c->buf, BLAKE2B_BLOCKBYTES);
crypto/openssl/providers/implementations/digests/blake2b_prov.c
275
c->buflen = 0;
crypto/openssl/providers/implementations/digests/blake2b_prov.c
287
blake2b_compress(c, in, datalen);
crypto/openssl/providers/implementations/digests/blake2b_prov.c
295
memcpy(c->buf + c->buflen, in, datalen);
crypto/openssl/providers/implementations/digests/blake2b_prov.c
296
c->buflen += datalen; /* Be lazy, do not compress */
crypto/openssl/providers/implementations/digests/blake2b_prov.c
305
int ossl_blake2b_final(unsigned char *md, BLAKE2B_CTX *c)
crypto/openssl/providers/implementations/digests/blake2b_prov.c
309
int iter = (c->outlen + 7) / 8;
crypto/openssl/providers/implementations/digests/blake2b_prov.c
313
if ((c->outlen % sizeof(c->h[0])) == 0)
crypto/openssl/providers/implementations/digests/blake2b_prov.c
316
blake2b_set_lastblock(c);
crypto/openssl/providers/implementations/digests/blake2b_prov.c
318
memset(c->buf + c->buflen, 0, sizeof(c->buf) - c->buflen);
crypto/openssl/providers/implementations/digests/blake2b_prov.c
319
blake2b_compress(c, c->buf, c->buflen);
crypto/openssl/providers/implementations/digests/blake2b_prov.c
323
store64(target + sizeof(c->h[i]) * i, c->h[i]);
crypto/openssl/providers/implementations/digests/blake2b_prov.c
326
memcpy(md, target, c->outlen);
crypto/openssl/providers/implementations/digests/blake2b_prov.c
330
OPENSSL_cleanse(c, sizeof(BLAKE2B_CTX));
crypto/openssl/providers/implementations/digests/blake2s_prov.c
118
int ossl_blake2s_init(BLAKE2S_CTX *c, const BLAKE2S_PARAM *P)
crypto/openssl/providers/implementations/digests/blake2s_prov.c
120
blake2s_init_param(c, P);
crypto/openssl/providers/implementations/digests/blake2s_prov.c
128
int ossl_blake2s_init_key(BLAKE2S_CTX *c, const BLAKE2S_PARAM *P,
crypto/openssl/providers/implementations/digests/blake2s_prov.c
131
blake2s_init_param(c, P);
crypto/openssl/providers/implementations/digests/blake2s_prov.c
138
ossl_blake2s_update(c, block, BLAKE2S_BLOCKBYTES);
crypto/openssl/providers/implementations/digests/blake2s_prov.c
197
#define G(r, i, a, b, c, d) \
crypto/openssl/providers/implementations/digests/blake2s_prov.c
201
c = c + d; \
crypto/openssl/providers/implementations/digests/blake2s_prov.c
202
b = rotr32(b ^ c, 12); \
crypto/openssl/providers/implementations/digests/blake2s_prov.c
205
c = c + d; \
crypto/openssl/providers/implementations/digests/blake2s_prov.c
206
b = rotr32(b ^ c, 7); \
crypto/openssl/providers/implementations/digests/blake2s_prov.c
248
int ossl_blake2s_update(BLAKE2S_CTX *c, const void *data, size_t datalen)
crypto/openssl/providers/implementations/digests/blake2s_prov.c
261
fill = sizeof(c->buf) - c->buflen;
crypto/openssl/providers/implementations/digests/blake2s_prov.c
263
if (c->buflen) {
crypto/openssl/providers/implementations/digests/blake2s_prov.c
264
memcpy(c->buf + c->buflen, in, fill); /* Fill buffer */
crypto/openssl/providers/implementations/digests/blake2s_prov.c
265
blake2s_compress(c, c->buf, BLAKE2S_BLOCKBYTES);
crypto/openssl/providers/implementations/digests/blake2s_prov.c
266
c->buflen = 0;
crypto/openssl/providers/implementations/digests/blake2s_prov.c
278
blake2s_compress(c, in, datalen);
crypto/openssl/providers/implementations/digests/blake2s_prov.c
286
memcpy(c->buf + c->buflen, in, datalen);
crypto/openssl/providers/implementations/digests/blake2s_prov.c
287
c->buflen += datalen; /* Be lazy, do not compress */
crypto/openssl/providers/implementations/digests/blake2s_prov.c
296
int ossl_blake2s_final(unsigned char *md, BLAKE2S_CTX *c)
crypto/openssl/providers/implementations/digests/blake2s_prov.c
300
int iter = (c->outlen + 3) / 4;
crypto/openssl/providers/implementations/digests/blake2s_prov.c
304
if ((c->outlen % sizeof(c->h[0])) == 0)
crypto/openssl/providers/implementations/digests/blake2s_prov.c
307
blake2s_set_lastblock(c);
crypto/openssl/providers/implementations/digests/blake2s_prov.c
309
memset(c->buf + c->buflen, 0, sizeof(c->buf) - c->buflen);
crypto/openssl/providers/implementations/digests/blake2s_prov.c
310
blake2s_compress(c, c->buf, c->buflen);
crypto/openssl/providers/implementations/digests/blake2s_prov.c
314
store32(target + sizeof(c->h[i]) * i, c->h[i]);
crypto/openssl/providers/implementations/digests/blake2s_prov.c
317
memcpy(md, target, c->outlen);
crypto/openssl/providers/implementations/digests/blake2s_prov.c
321
OPENSSL_cleanse(c, sizeof(BLAKE2S_CTX));
crypto/openssl/providers/implementations/include/prov/blake2.h
100
int ossl_blake2b_final(unsigned char *md, BLAKE2B_CTX *c);
crypto/openssl/providers/implementations/include/prov/blake2.h
119
int ossl_blake2s_init(BLAKE2S_CTX *c, const BLAKE2S_PARAM *P);
crypto/openssl/providers/implementations/include/prov/blake2.h
120
int ossl_blake2s_init_key(BLAKE2S_CTX *c, const BLAKE2S_PARAM *P,
crypto/openssl/providers/implementations/include/prov/blake2.h
122
int ossl_blake2s_update(BLAKE2S_CTX *c, const void *data, size_t datalen);
crypto/openssl/providers/implementations/include/prov/blake2.h
123
int ossl_blake2s_final(unsigned char *md, BLAKE2S_CTX *c);
crypto/openssl/providers/implementations/include/prov/blake2.h
96
int ossl_blake2b_init(BLAKE2B_CTX *c, const BLAKE2B_PARAM *P);
crypto/openssl/providers/implementations/include/prov/blake2.h
97
int ossl_blake2b_init_key(BLAKE2B_CTX *c, const BLAKE2B_PARAM *P,
crypto/openssl/providers/implementations/include/prov/blake2.h
99
int ossl_blake2b_update(BLAKE2B_CTX *c, const void *data, size_t datalen);
crypto/openssl/providers/implementations/kdfs/argon2.c
226
static ossl_inline uint64_t rotr64(const uint64_t w, const unsigned int c);
crypto/openssl/providers/implementations/kdfs/argon2.c
299
static ossl_inline uint64_t rotr64(const uint64_t w, const unsigned int c)
crypto/openssl/providers/implementations/kdfs/argon2.c
301
return (w >> c) | (w << (64 - c));
crypto/openssl/providers/implementations/kdfs/argon2.c
84
#define G(a, b, c, d) \
crypto/openssl/providers/implementations/kdfs/argon2.c
88
c = c + d + 2 * mul_lower(c, d); \
crypto/openssl/providers/implementations/kdfs/argon2.c
89
b = rotr64(b ^ c, 24); \
crypto/openssl/providers/implementations/kdfs/argon2.c
907
static void kdf_argon2_init(KDF_ARGON2 *c, ARGON2_TYPE type)
crypto/openssl/providers/implementations/kdfs/argon2.c
911
libctx = c->libctx;
crypto/openssl/providers/implementations/kdfs/argon2.c
912
memset(c, 0, sizeof(*c));
crypto/openssl/providers/implementations/kdfs/argon2.c
914
c->libctx = libctx;
crypto/openssl/providers/implementations/kdfs/argon2.c
915
c->outlen = ARGON2_DEFAULT_OUTLEN;
crypto/openssl/providers/implementations/kdfs/argon2.c
916
c->t_cost = ARGON2_DEFAULT_T_COST;
crypto/openssl/providers/implementations/kdfs/argon2.c
917
c->m_cost = ARGON2_DEFAULT_M_COST;
crypto/openssl/providers/implementations/kdfs/argon2.c
918
c->lanes = ARGON2_DEFAULT_LANES;
crypto/openssl/providers/implementations/kdfs/argon2.c
919
c->threads = ARGON2_DEFAULT_THREADS;
crypto/openssl/providers/implementations/kdfs/argon2.c
92
c = c + d + 2 * mul_lower(c, d); \
crypto/openssl/providers/implementations/kdfs/argon2.c
920
c->version = ARGON2_DEFAULT_VERSION;
crypto/openssl/providers/implementations/kdfs/argon2.c
921
c->type = type;
crypto/openssl/providers/implementations/kdfs/argon2.c
93
b = rotr64(b ^ c, 63); \
crypto/openssl/providers/implementations/kdfs/pkcs12kdf.c
116
uint16_t c = 1;
crypto/openssl/providers/implementations/kdfs/pkcs12kdf.c
121
c += Ij[k] + B[k];
crypto/openssl/providers/implementations/kdfs/pkcs12kdf.c
122
Ij[k] = (unsigned char)c;
crypto/openssl/providers/implementations/kdfs/pkcs12kdf.c
123
c >>= 8;
crypto/openssl/providers/implementations/kdfs/sskdf.c
125
unsigned char c[4];
crypto/openssl/providers/implementations/kdfs/sskdf.c
149
c[0] = (unsigned char)((counter >> 24) & 0xff);
crypto/openssl/providers/implementations/kdfs/sskdf.c
150
c[1] = (unsigned char)((counter >> 16) & 0xff);
crypto/openssl/providers/implementations/kdfs/sskdf.c
151
c[2] = (unsigned char)((counter >> 8) & 0xff);
crypto/openssl/providers/implementations/kdfs/sskdf.c
152
c[3] = (unsigned char)(counter & 0xff);
crypto/openssl/providers/implementations/kdfs/sskdf.c
155
&& (append_ctr || EVP_DigestUpdate(ctx, c, sizeof(c)))
crypto/openssl/providers/implementations/kdfs/sskdf.c
157
&& (!append_ctr || EVP_DigestUpdate(ctx, c, sizeof(c)))
crypto/openssl/providers/implementations/kdfs/sskdf.c
245
unsigned char c[4];
crypto/openssl/providers/implementations/kdfs/sskdf.c
271
c[0] = (unsigned char)((counter >> 24) & 0xff);
crypto/openssl/providers/implementations/kdfs/sskdf.c
272
c[1] = (unsigned char)((counter >> 16) & 0xff);
crypto/openssl/providers/implementations/kdfs/sskdf.c
273
c[2] = (unsigned char)((counter >> 8) & 0xff);
crypto/openssl/providers/implementations/kdfs/sskdf.c
274
c[3] = (unsigned char)(counter & 0xff);
crypto/openssl/providers/implementations/kdfs/sskdf.c
278
&& EVP_MAC_update(ctx, c, sizeof(c))
crypto/openssl/providers/implementations/rands/drbg_ctr.c
383
u32 n = 12, c = 1;
crypto/openssl/providers/implementations/rands/drbg_ctr.c
387
c += counter[n];
crypto/openssl/providers/implementations/rands/drbg_ctr.c
388
counter[n] = (u8)c;
crypto/openssl/providers/implementations/rands/drbg_ctr.c
389
c >>= 8;
crypto/openssl/providers/implementations/rands/drbg_ctr.c
67
u32 n = 16, c = 1;
crypto/openssl/providers/implementations/rands/drbg_ctr.c
71
c += p[n];
crypto/openssl/providers/implementations/rands/drbg_ctr.c
72
p[n] = (u8)c;
crypto/openssl/providers/implementations/rands/drbg_ctr.c
73
c >>= 8;
crypto/openssl/providers/implementations/rands/seeding/rand_tsc.c
35
unsigned char c;
crypto/openssl/providers/implementations/rands/seeding/rand_tsc.c
40
c = (unsigned char)(OPENSSL_rdtsc() & 0xFF);
crypto/openssl/providers/implementations/rands/seeding/rand_tsc.c
41
ossl_rand_pool_add(pool, &c, 1, 4);
crypto/openssl/providers/implementations/rands/seeding/rand_unix.c
440
char c, *p;
crypto/openssl/providers/implementations/rands/seeding/rand_unix.c
475
while ((r = read(fd, &c, 1)) < 0 && errno == EINTR)
crypto/openssl/providers/implementations/storemgmt/file_store.c
240
char c = tolower((unsigned char)p[1]);
crypto/openssl/providers/implementations/storemgmt/file_store.c
242
if (c >= 'a' && c <= 'z') {
crypto/openssl/providers/legacyprov.c
217
#define set_func(c, f) \
crypto/openssl/providers/legacyprov.c
218
if (c == NULL) \
crypto/openssl/providers/legacyprov.c
219
c = f; \
crypto/openssl/providers/legacyprov.c
220
else if (c != f) \
crypto/openssl/ssl/quic/json_enc.c
58
static ossl_inline int wbuf_write_char(struct json_write_buf *wbuf, char c)
crypto/openssl/ssl/quic/json_enc.c
610
char c, *o, obuf[7];
crypto/openssl/ssl/quic/json_enc.c
621
c = *str;
crypto/openssl/ssl/quic/json_enc.c
623
switch (c) {
crypto/openssl/ssl/quic/json_enc.c
65
wbuf->buf[wbuf->cur++] = c;
crypto/openssl/ssl/quic/json_enc.c
688
json_write_char(json, c);
crypto/openssl/ssl/quic/json_enc.c
737
unsigned char c;
crypto/openssl/ssl/quic/json_enc.c
74
char c;
crypto/openssl/ssl/quic/json_enc.c
745
c = *b;
crypto/openssl/ssl/quic/json_enc.c
746
json_write_char(json, hex_digit(c >> 4));
crypto/openssl/ssl/quic/json_enc.c
747
json_write_char(json, hex_digit(c & 0x0F));
crypto/openssl/ssl/quic/json_enc.c
76
while ((c = *s++) != 0)
crypto/openssl/ssl/quic/json_enc.c
77
if (!wbuf_write_char(wbuf, c))
crypto/openssl/ssl/quic/qlog.c
521
static ossl_inline int is_term_sep_ws(char c)
crypto/openssl/ssl/quic/qlog.c
523
return c == ' ' || c == '\r' || c == '\n' || c == '\t';
crypto/openssl/ssl/quic/qlog.c
526
static ossl_inline int is_name_char(char c)
crypto/openssl/ssl/quic/qlog.c
528
return ossl_isalpha(c) || ossl_isdigit(c) || c == '_' || c == '-';
crypto/openssl/ssl/quic/qlog.c
599
static int lex_extract_to(struct lexer *lex, char c,
crypto/openssl/ssl/quic/qlog.c
604
for (s = p; s < term_end && *s != c; ++s)
crypto/openssl/ssl/quic/qlog.c
687
char c;
crypto/openssl/ssl/quic/qlog.c
698
c = lex_peek_char(&lex);
crypto/openssl/ssl/quic/qlog.c
699
if (c == '+' || c == '-') {
crypto/openssl/ssl/quic/qlog.c
700
add = (c == '+');
crypto/openssl/ssl/quic/qlog.c
703
c = lex_peek_char(&lex);
crypto/openssl/ssl/quic/qlog.c
704
if (!is_name_char(c) && c != '*')
crypto/openssl/ssl/quic/qlog.c
707
} else if (!is_name_char(c) && c != '*') {
crypto/openssl/ssl/quic/quic_impl.c
4893
SSL_TOKEN_STORE *c = ctx->tokencache;
crypto/openssl/ssl/quic/quic_impl.c
4904
ossl_crypto_mutex_lock(c->mutex);
crypto/openssl/ssl/quic/quic_impl.c
4906
old = lh_QUIC_TOKEN_retrieve(c->cache, tok);
crypto/openssl/ssl/quic/quic_impl.c
4908
lh_QUIC_TOKEN_delete(c->cache, old);
crypto/openssl/ssl/quic/quic_impl.c
4911
lh_QUIC_TOKEN_insert(c->cache, tok);
crypto/openssl/ssl/quic/quic_impl.c
4913
ossl_crypto_mutex_unlock(c->mutex);
crypto/openssl/ssl/quic/quic_impl.c
4920
SSL_TOKEN_STORE *c = ctx->tokencache;
crypto/openssl/ssl/quic/quic_impl.c
4926
if (c == NULL)
crypto/openssl/ssl/quic/quic_impl.c
4933
ossl_crypto_mutex_lock(c->mutex);
crypto/openssl/ssl/quic/quic_impl.c
4934
tok = lh_QUIC_TOKEN_retrieve(c->cache, key);
crypto/openssl/ssl/quic/quic_impl.c
4941
ossl_crypto_mutex_unlock(c->mutex);
crypto/openssl/ssl/quic/quic_record_util.c
249
const struct suite_info *c = get_suite(suite_id);
crypto/openssl/ssl/quic/quic_record_util.c
250
return c != NULL ? c->cipher_name : NULL;
crypto/openssl/ssl/quic/quic_record_util.c
255
const struct suite_info *c = get_suite(suite_id);
crypto/openssl/ssl/quic/quic_record_util.c
256
return c != NULL ? c->md_name : NULL;
crypto/openssl/ssl/quic/quic_record_util.c
261
const struct suite_info *c = get_suite(suite_id);
crypto/openssl/ssl/quic/quic_record_util.c
262
return c != NULL ? c->secret_len : 0;
crypto/openssl/ssl/quic/quic_record_util.c
267
const struct suite_info *c = get_suite(suite_id);
crypto/openssl/ssl/quic/quic_record_util.c
268
return c != NULL ? c->cipher_key_len : 0;
crypto/openssl/ssl/quic/quic_record_util.c
273
const struct suite_info *c = get_suite(suite_id);
crypto/openssl/ssl/quic/quic_record_util.c
274
return c != NULL ? c->cipher_iv_len : 0;
crypto/openssl/ssl/quic/quic_record_util.c
279
const struct suite_info *c = get_suite(suite_id);
crypto/openssl/ssl/quic/quic_record_util.c
280
return c != NULL ? c->cipher_tag_len : 0;
crypto/openssl/ssl/quic/quic_record_util.c
285
const struct suite_info *c = get_suite(suite_id);
crypto/openssl/ssl/quic/quic_record_util.c
286
return c != NULL ? c->hdr_prot_cipher_id : 0;
crypto/openssl/ssl/quic/quic_record_util.c
291
const struct suite_info *c = get_suite(suite_id);
crypto/openssl/ssl/quic/quic_record_util.c
292
return c != NULL ? c->hdr_prot_key_len : 0;
crypto/openssl/ssl/quic/quic_record_util.c
297
const struct suite_info *c = get_suite(suite_id);
crypto/openssl/ssl/quic/quic_record_util.c
298
return c != NULL ? c->max_pkt : UINT64_MAX;
crypto/openssl/ssl/quic/quic_record_util.c
303
const struct suite_info *c = get_suite(suite_id);
crypto/openssl/ssl/quic/quic_record_util.c
304
return c != NULL ? c->max_forged_pkt : UINT64_MAX;
crypto/openssl/ssl/quic/quic_wire.c
139
size_t a, b, c;
crypto/openssl/ssl/quic/quic_wire.c
143
c = ossl_quic_vlint_encode_len(f->len);
crypto/openssl/ssl/quic/quic_wire.c
144
if (a == 0 || b == 0 || c == 0)
crypto/openssl/ssl/quic/quic_wire.c
147
return a + b + c;
crypto/openssl/ssl/quic/quic_wire.c
205
size_t a, b, c, d;
crypto/openssl/ssl/quic/quic_wire.c
213
c = ossl_quic_vlint_encode_len(f->offset);
crypto/openssl/ssl/quic/quic_wire.c
214
if (c == 0)
crypto/openssl/ssl/quic/quic_wire.c
217
c = 0;
crypto/openssl/ssl/quic/quic_wire.c
228
return a + b + c + d;
crypto/openssl/ssl/record/methods/ktls_meth.c
129
const EVP_CIPHER *c,
crypto/openssl/ssl/record/methods/ktls_meth.c
148
if (EVP_CIPHER_is_a(c, "AES-128-CCM")) {
crypto/openssl/ssl/record/methods/ktls_meth.c
156
|| EVP_CIPHER_is_a(c, "AES-128-GCM")
crypto/openssl/ssl/record/methods/ktls_meth.c
159
|| EVP_CIPHER_is_a(c, "AES-256-GCM")
crypto/openssl/ssl/record/methods/ktls_meth.c
162
|| EVP_CIPHER_is_a(c, "ChaCha20-Poly1305")
crypto/openssl/ssl/record/methods/ktls_meth.c
171
static int ktls_configure_crypto(OSSL_LIB_CTX *libctx, int version, const EVP_CIPHER *c,
crypto/openssl/ssl/record/methods/ktls_meth.c
186
if (EVP_CIPHER_get_mode(c) == EVP_CIPH_GCM_MODE
crypto/openssl/ssl/record/methods/ktls_meth.c
187
|| EVP_CIPHER_get_mode(c) == EVP_CIPH_CCM_MODE) {
crypto/openssl/ssl/record/methods/ktls_meth.c
212
switch (EVP_CIPHER_get_nid(c)) {
crypto/openssl/ssl/record/methods/ktls_meth.c
30
const EVP_CIPHER *c,
crypto/openssl/ssl/record/methods/ktls_meth.c
46
if (EVP_CIPHER_is_a(c, "AES-128-GCM")
crypto/openssl/ssl/record/methods/ktls_meth.c
47
|| EVP_CIPHER_is_a(c, "AES-256-GCM")
crypto/openssl/ssl/record/methods/ktls_meth.c
49
|| EVP_CIPHER_is_a(c, "CHACHA20-POLY1305")
crypto/openssl/ssl/record/methods/ktls_meth.c
54
if (!EVP_CIPHER_is_a(c, "AES-128-CBC")
crypto/openssl/ssl/record/methods/ktls_meth.c
55
&& !EVP_CIPHER_is_a(c, "AES-256-CBC"))
crypto/openssl/ssl/record/methods/ktls_meth.c
73
static int ktls_configure_crypto(OSSL_LIB_CTX *libctx, int version, const EVP_CIPHER *c,
crypto/openssl/ssl/record/methods/ktls_meth.c
81
if (EVP_CIPHER_is_a(c, "AES-128-GCM")
crypto/openssl/ssl/record/methods/ktls_meth.c
82
|| EVP_CIPHER_is_a(c, "AES-256-GCM")) {
crypto/openssl/ssl/record/methods/ktls_meth.c
87
if (EVP_CIPHER_is_a(c, "CHACHA20-POLY1305")) {
crypto/openssl/ssl/record/methods/ktls_meth.c
92
if (EVP_CIPHER_is_a(c, "AES-128-CBC") || EVP_CIPHER_is_a(c, "AES-256-CBC")) {
crypto/openssl/ssl/record/methods/ssl3_cbc.c
138
unsigned char c[sizeof(LARGEST_DIGEST_CTX)];
crypto/openssl/ssl/record/methods/ssl3_cbc.c
145
num_starting_blocks, k, mac_end_offset, c, index_a, index_b;
crypto/openssl/ssl/record/methods/ssl3_cbc.c
174
if (MD5_Init((MD5_CTX *)md_state.c) <= 0)
crypto/openssl/ssl/record/methods/ssl3_cbc.c
183
if (SHA1_Init((SHA_CTX *)md_state.c) <= 0)
crypto/openssl/ssl/record/methods/ssl3_cbc.c
189
if (SHA224_Init((SHA256_CTX *)md_state.c) <= 0)
crypto/openssl/ssl/record/methods/ssl3_cbc.c
195
if (SHA256_Init((SHA256_CTX *)md_state.c) <= 0)
crypto/openssl/ssl/record/methods/ssl3_cbc.c
201
if (SHA384_Init((SHA512_CTX *)md_state.c) <= 0)
crypto/openssl/ssl/record/methods/ssl3_cbc.c
209
if (SHA512_Init((SHA512_CTX *)md_state.c) <= 0)
crypto/openssl/ssl/record/methods/ssl3_cbc.c
294
c = mac_end_offset % md_block_size;
crypto/openssl/ssl/record/methods/ssl3_cbc.c
334
md_transform(md_state.c, hmac_pad);
crypto/openssl/ssl/record/methods/ssl3_cbc.c
369
md_transform(md_state.c, header);
crypto/openssl/ssl/record/methods/ssl3_cbc.c
372
md_transform(md_state.c, first_block);
crypto/openssl/ssl/record/methods/ssl3_cbc.c
374
md_transform(md_state.c, data + md_block_size * i - overhang);
crypto/openssl/ssl/record/methods/ssl3_cbc.c
379
md_transform(md_state.c, first_block);
crypto/openssl/ssl/record/methods/ssl3_cbc.c
381
md_transform(md_state.c, data + md_block_size * i - 13);
crypto/openssl/ssl/record/methods/ssl3_cbc.c
408
is_past_c = is_block_a & constant_time_ge_8_s(j, c);
crypto/openssl/ssl/record/methods/ssl3_cbc.c
409
is_past_cp1 = is_block_a & constant_time_ge_8_s(j, c + 1);
crypto/openssl/ssl/record/methods/ssl3_cbc.c
439
md_transform(md_state.c, block);
crypto/openssl/ssl/record/methods/ssl3_cbc.c
440
md_final_raw(md_state.c, block);
crypto/openssl/ssl/s3_enc.c
164
const EVP_CIPHER *c;
crypto/openssl/ssl/s3_enc.c
173
if (!ssl_cipher_get_evp(SSL_CONNECTION_GET_CTX(s), s->session, &c, &hash,
crypto/openssl/ssl/s3_enc.c
181
s->s3.tmp.new_sym_enc = c;
crypto/openssl/ssl/s3_enc.c
194
num = EVP_CIPHER_get_key_length(c) + num + EVP_CIPHER_get_iv_length(c);
crypto/openssl/ssl/s3_enc.c
25
unsigned char c = 'A';
crypto/openssl/ssl/s3_enc.c
31
c = os_toascii[c]; /* 'A' in ASCII */
crypto/openssl/ssl/s3_enc.c
50
memset(buf, c, k);
crypto/openssl/ssl/s3_enc.c
51
c++;
crypto/openssl/ssl/s3_lib.c
3952
static int ssl3_set_req_cert_type(CERT *c, const unsigned char *p, size_t len);
crypto/openssl/ssl/s3_lib.c
4647
SSL_CIPHER c;
crypto/openssl/ssl/s3_lib.c
4650
c.id = id;
crypto/openssl/ssl/s3_lib.c
4651
cp = OBJ_bsearch_ssl_cipher_id(&c, tls13_ciphers, TLS13_NUM_CIPHERS);
crypto/openssl/ssl/s3_lib.c
4654
cp = OBJ_bsearch_ssl_cipher_id(&c, ssl3_ciphers, SSL3_NUM_CIPHERS);
crypto/openssl/ssl/s3_lib.c
4657
return OBJ_bsearch_ssl_cipher_id(&c, ssl3_scsvs, SSL3_NUM_SCSVS);
crypto/openssl/ssl/s3_lib.c
4690
int ssl3_put_cipher_by_char(const SSL_CIPHER *c, WPACKET *pkt, size_t *len)
crypto/openssl/ssl/s3_lib.c
4692
if ((c->id & 0xff000000) != SSL3_CK_CIPHERSUITE_FLAG) {
crypto/openssl/ssl/s3_lib.c
4697
if (!WPACKET_put_bytes_u16(pkt, c->id & 0xffff))
crypto/openssl/ssl/s3_lib.c
4715
const SSL_CIPHER *c, *ret = NULL;
crypto/openssl/ssl/s3_lib.c
4735
c = sk_SSL_CIPHER_value(srvr, i);
crypto/openssl/ssl/s3_lib.c
4736
BIO_printf(trc_out, "%p:%s\n", (void *)c, c->name);
crypto/openssl/ssl/s3_lib.c
4741
c = sk_SSL_CIPHER_value(clnt, i);
crypto/openssl/ssl/s3_lib.c
4742
BIO_printf(trc_out, "%p:%s\n", (void *)c, c->name);
crypto/openssl/ssl/s3_lib.c
4759
c = sk_SSL_CIPHER_value(clnt, 0);
crypto/openssl/ssl/s3_lib.c
4760
if (c->algorithm_enc == SSL_CHACHA20POLY1305) {
crypto/openssl/ssl/s3_lib.c
4765
c = sk_SSL_CIPHER_value(srvr, i);
crypto/openssl/ssl/s3_lib.c
4766
if (c->algorithm_enc == SSL_CHACHA20POLY1305) {
crypto/openssl/ssl/s3_lib.c
4776
sk_SSL_CIPHER_push(prio_chacha, c);
crypto/openssl/ssl/s3_lib.c
4778
c = sk_SSL_CIPHER_value(srvr, i);
crypto/openssl/ssl/s3_lib.c
4779
if (c->algorithm_enc == SSL_CHACHA20POLY1305)
crypto/openssl/ssl/s3_lib.c
4780
sk_SSL_CIPHER_push(prio_chacha, c);
crypto/openssl/ssl/s3_lib.c
4784
c = sk_SSL_CIPHER_value(srvr, i);
crypto/openssl/ssl/s3_lib.c
4785
if (c->algorithm_enc != SSL_CHACHA20POLY1305)
crypto/openssl/ssl/s3_lib.c
4786
sk_SSL_CIPHER_push(prio_chacha, c);
crypto/openssl/ssl/s3_lib.c
4826
c = sk_SSL_CIPHER_value(prio, i);
crypto/openssl/ssl/s3_lib.c
4827
minversion = SSL_CONNECTION_IS_DTLS(s) ? c->min_dtls : c->min_tls;
crypto/openssl/ssl/s3_lib.c
4828
maxversion = SSL_CONNECTION_IS_DTLS(s) ? c->max_dtls : c->max_tls;
crypto/openssl/ssl/s3_lib.c
4849
alg_k = c->algorithm_mkey;
crypto/openssl/ssl/s3_lib.c
4850
alg_a = c->algorithm_auth;
crypto/openssl/ssl/s3_lib.c
4861
ok, alg_k, alg_a, mask_k, mask_a, (void *)c, c->name);
crypto/openssl/ssl/s3_lib.c
4868
ok = ok && tls1_check_ec_tmp_key(s, c->id);
crypto/openssl/ssl/s3_lib.c
4873
ii = sk_SSL_CIPHER_find(allow, c);
crypto/openssl/ssl/s3_lib.c
4877
c->strength_bits, 0, (void *)c))
crypto/openssl/ssl/s3_lib.c
4962
static int ssl3_set_req_cert_type(CERT *c, const unsigned char *p, size_t len)
crypto/openssl/ssl/s3_lib.c
4964
OPENSSL_free(c->ctype);
crypto/openssl/ssl/s3_lib.c
4965
c->ctype = NULL;
crypto/openssl/ssl/s3_lib.c
4966
c->ctype_len = 0;
crypto/openssl/ssl/s3_lib.c
4971
c->ctype = OPENSSL_memdup(p, len);
crypto/openssl/ssl/s3_lib.c
4972
if (c->ctype == NULL)
crypto/openssl/ssl/s3_lib.c
4974
c->ctype_len = len;
crypto/openssl/ssl/ssl_cert.c
1068
CERT *c = s != NULL ? s->cert : ctx->cert;
crypto/openssl/ssl/ssl_cert.c
1069
CERT_PKEY *cpk = c->key;
crypto/openssl/ssl/ssl_cert.c
1095
if (c->chain_store != NULL)
crypto/openssl/ssl/ssl_cert.c
1096
chain_store = c->chain_store;
crypto/openssl/ssl/ssl_cert.c
1115
c->cert_flags & SSL_CERT_FLAG_SUITEB_128_LOS);
crypto/openssl/ssl/ssl_cert.c
1172
int ssl_cert_set_cert_store(CERT *c, X509_STORE *store, int chain, int ref)
crypto/openssl/ssl/ssl_cert.c
1180
pstore = &c->chain_store;
crypto/openssl/ssl/ssl_cert.c
1182
pstore = &c->verify_store;
crypto/openssl/ssl/ssl_cert.c
1189
int ssl_cert_get_cert_store(CERT *c, X509_STORE **pstore, int chain)
crypto/openssl/ssl/ssl_cert.c
1191
*pstore = (chain ? c->chain_store : c->verify_store);
crypto/openssl/ssl/ssl_cert.c
1243
const SSL_CIPHER *c = other;
crypto/openssl/ssl/ssl_cert.c
1248
if (c->algorithm_auth & SSL_aNULL)
crypto/openssl/ssl/ssl_cert.c
1251
if (c->algorithm_mac & SSL_MD5)
crypto/openssl/ssl/ssl_cert.c
1254
if (minbits > 160 && c->algorithm_mac & SSL_SHA1)
crypto/openssl/ssl/ssl_cert.c
1258
if (level >= 3 && c->min_tls != TLS1_3_VERSION && !(c->algorithm_mkey & pfs_mask))
crypto/openssl/ssl/ssl_cert.c
240
void ssl_cert_clear_certs(CERT *c)
crypto/openssl/ssl/ssl_cert.c
247
if (c == NULL)
crypto/openssl/ssl/ssl_cert.c
249
for (i = 0; i < c->ssl_pkey_num; i++) {
crypto/openssl/ssl/ssl_cert.c
250
CERT_PKEY *cpk = c->pkeys + i;
crypto/openssl/ssl/ssl_cert.c
270
void ssl_cert_free(CERT *c)
crypto/openssl/ssl/ssl_cert.c
274
if (c == NULL)
crypto/openssl/ssl/ssl_cert.c
276
CRYPTO_DOWN_REF(&c->references, &i);
crypto/openssl/ssl/ssl_cert.c
277
REF_PRINT_COUNT("CERT", i, c);
crypto/openssl/ssl/ssl_cert.c
282
EVP_PKEY_free(c->dh_tmp);
crypto/openssl/ssl/ssl_cert.c
284
ssl_cert_clear_certs(c);
crypto/openssl/ssl/ssl_cert.c
285
OPENSSL_free(c->conf_sigalgs);
crypto/openssl/ssl/ssl_cert.c
286
OPENSSL_free(c->client_sigalgs);
crypto/openssl/ssl/ssl_cert.c
287
OPENSSL_free(c->ctype);
crypto/openssl/ssl/ssl_cert.c
288
X509_STORE_free(c->verify_store);
crypto/openssl/ssl/ssl_cert.c
289
X509_STORE_free(c->chain_store);
crypto/openssl/ssl/ssl_cert.c
290
custom_exts_free(&c->custext);
crypto/openssl/ssl/ssl_cert.c
292
OPENSSL_free(c->psk_identity_hint);
crypto/openssl/ssl/ssl_cert.c
294
OPENSSL_free(c->pkeys);
crypto/openssl/ssl/ssl_cert.c
295
CRYPTO_FREE_REF(&c->references);
crypto/openssl/ssl/ssl_cert.c
296
OPENSSL_free(c);
crypto/openssl/ssl/ssl_cert.c
366
int ssl_cert_select_current(CERT *c, X509 *x)
crypto/openssl/ssl/ssl_cert.c
372
for (i = 0; i < c->ssl_pkey_num; i++) {
crypto/openssl/ssl/ssl_cert.c
373
CERT_PKEY *cpk = c->pkeys + i;
crypto/openssl/ssl/ssl_cert.c
375
c->key = cpk;
crypto/openssl/ssl/ssl_cert.c
380
for (i = 0; i < c->ssl_pkey_num; i++) {
crypto/openssl/ssl/ssl_cert.c
381
CERT_PKEY *cpk = c->pkeys + i;
crypto/openssl/ssl/ssl_cert.c
383
c->key = cpk;
crypto/openssl/ssl/ssl_cert.c
390
int ssl_cert_set_current(CERT *c, long op)
crypto/openssl/ssl/ssl_cert.c
394
if (!c)
crypto/openssl/ssl/ssl_cert.c
399
idx = (size_t)(c->key - c->pkeys + 1);
crypto/openssl/ssl/ssl_cert.c
400
if (idx >= c->ssl_pkey_num)
crypto/openssl/ssl/ssl_cert.c
404
for (i = idx; i < c->ssl_pkey_num; i++) {
crypto/openssl/ssl/ssl_cert.c
405
CERT_PKEY *cpk = c->pkeys + i;
crypto/openssl/ssl/ssl_cert.c
407
c->key = cpk;
crypto/openssl/ssl/ssl_cert.c
414
void ssl_cert_set_cert_cb(CERT *c, int (*cb)(SSL *ssl, void *arg), void *arg)
crypto/openssl/ssl/ssl_cert.c
416
c->cert_cb = cb;
crypto/openssl/ssl/ssl_cert.c
417
c->cert_cb_arg = arg;
crypto/openssl/ssl/ssl_ciph.c
1181
c->sec_level = level;
crypto/openssl/ssl/ssl_ciph.c
1213
static int check_suiteb_cipher_list(const SSL_METHOD *meth, CERT *c,
crypto/openssl/ssl/ssl_ciph.c
1229
c->cert_flags &= ~SSL_CERT_FLAG_SUITEB_128_LOS;
crypto/openssl/ssl/ssl_ciph.c
1230
c->cert_flags |= suiteb_flags;
crypto/openssl/ssl/ssl_ciph.c
1232
suiteb_flags = c->cert_flags & SSL_CERT_FLAG_SUITEB_128_LOS;
crypto/openssl/ssl/ssl_ciph.c
1412
CERT *c)
crypto/openssl/ssl/ssl_ciph.c
1428
if (!check_suiteb_cipher_list(ssl_method, c, &rule_str))
crypto/openssl/ssl/ssl_ciph.c
1577
&head, &tail, ca_list, c);
crypto/openssl/ssl/ssl_ciph.c
1584
ok = ssl_cipher_process_rulestr(rule_p, &head, &tail, ca_list, c);
crypto/openssl/ssl/ssl_ciph.c
1865
const char *SSL_CIPHER_get_version(const SSL_CIPHER *c)
crypto/openssl/ssl/ssl_ciph.c
1867
if (c == NULL)
crypto/openssl/ssl/ssl_ciph.c
1874
if (c->min_tls == TLS1_VERSION)
crypto/openssl/ssl/ssl_ciph.c
1876
return ssl_protocol_to_string(c->min_tls);
crypto/openssl/ssl/ssl_ciph.c
1880
const char *SSL_CIPHER_get_name(const SSL_CIPHER *c)
crypto/openssl/ssl/ssl_ciph.c
1882
if (c != NULL)
crypto/openssl/ssl/ssl_ciph.c
1883
return c->name;
crypto/openssl/ssl/ssl_ciph.c
1888
const char *SSL_CIPHER_standard_name(const SSL_CIPHER *c)
crypto/openssl/ssl/ssl_ciph.c
1890
if (c != NULL)
crypto/openssl/ssl/ssl_ciph.c
1891
return c->stdname;
crypto/openssl/ssl/ssl_ciph.c
1898
const SSL_CIPHER *c;
crypto/openssl/ssl/ssl_ciph.c
1902
c = ssl3_get_cipher_by_std_name(stdname);
crypto/openssl/ssl/ssl_ciph.c
1903
return SSL_CIPHER_get_name(c);
crypto/openssl/ssl/ssl_ciph.c
1907
int SSL_CIPHER_get_bits(const SSL_CIPHER *c, int *alg_bits)
crypto/openssl/ssl/ssl_ciph.c
1911
if (c != NULL) {
crypto/openssl/ssl/ssl_ciph.c
1913
*alg_bits = (int)c->alg_bits;
crypto/openssl/ssl/ssl_ciph.c
1914
ret = (int)c->strength_bits;
crypto/openssl/ssl/ssl_ciph.c
1919
uint32_t SSL_CIPHER_get_id(const SSL_CIPHER *c)
crypto/openssl/ssl/ssl_ciph.c
1921
return c->id;
crypto/openssl/ssl/ssl_ciph.c
1924
uint16_t SSL_CIPHER_get_protocol_id(const SSL_CIPHER *c)
crypto/openssl/ssl/ssl_ciph.c
1926
return c->id & 0xFFFF;
crypto/openssl/ssl/ssl_ciph.c
2072
const SSL_CIPHER *c = SSL_CONNECTION_GET_SSL(s)->method->get_cipher_by_char(ptr);
crypto/openssl/ssl/ssl_ciph.c
2074
if (c == NULL || (!all && c->valid == 0))
crypto/openssl/ssl/ssl_ciph.c
2076
return c;
crypto/openssl/ssl/ssl_ciph.c
2084
int SSL_CIPHER_get_cipher_nid(const SSL_CIPHER *c)
crypto/openssl/ssl/ssl_ciph.c
2087
if (c == NULL)
crypto/openssl/ssl/ssl_ciph.c
2089
i = ssl_cipher_info_lookup(ssl_cipher_table_cipher, c->algorithm_enc);
crypto/openssl/ssl/ssl_ciph.c
2095
int SSL_CIPHER_get_digest_nid(const SSL_CIPHER *c)
crypto/openssl/ssl/ssl_ciph.c
2097
int i = ssl_cipher_info_lookup(ssl_cipher_table_mac, c->algorithm_mac);
crypto/openssl/ssl/ssl_ciph.c
2104
int SSL_CIPHER_get_kx_nid(const SSL_CIPHER *c)
crypto/openssl/ssl/ssl_ciph.c
2106
int i = ssl_cipher_info_lookup(ssl_cipher_table_kx, c->algorithm_mkey);
crypto/openssl/ssl/ssl_ciph.c
2113
int SSL_CIPHER_get_auth_nid(const SSL_CIPHER *c)
crypto/openssl/ssl/ssl_ciph.c
2115
int i = ssl_cipher_info_lookup(ssl_cipher_table_auth, c->algorithm_auth);
crypto/openssl/ssl/ssl_ciph.c
2133
const EVP_MD *SSL_CIPHER_get_handshake_digest(const SSL_CIPHER *c)
crypto/openssl/ssl/ssl_ciph.c
2135
int idx = c->algorithm2 & SSL_HANDSHAKE_MAC_MASK;
crypto/openssl/ssl/ssl_ciph.c
2142
int SSL_CIPHER_is_aead(const SSL_CIPHER *c)
crypto/openssl/ssl/ssl_ciph.c
2144
return (c->algorithm_mac & SSL_AEAD) ? 1 : 0;
crypto/openssl/ssl/ssl_ciph.c
2147
int ssl_cipher_get_overhead(const SSL_CIPHER *c, size_t *mac_overhead,
crypto/openssl/ssl/ssl_ciph.c
2155
if (c->algorithm_enc & (SSL_AESGCM | SSL_ARIAGCM)) {
crypto/openssl/ssl/ssl_ciph.c
2157
} else if (c->algorithm_enc & (SSL_AES128CCM | SSL_AES256CCM)) {
crypto/openssl/ssl/ssl_ciph.c
2159
} else if (c->algorithm_enc & (SSL_AES128CCM8 | SSL_AES256CCM8)) {
crypto/openssl/ssl/ssl_ciph.c
2161
} else if (c->algorithm_enc & SSL_CHACHA20POLY1305) {
crypto/openssl/ssl/ssl_ciph.c
2163
} else if (c->algorithm_mac & SSL_AEAD) {
crypto/openssl/ssl/ssl_ciph.c
2168
int digest_nid = SSL_CIPHER_get_digest_nid(c);
crypto/openssl/ssl/ssl_ciph.c
2177
if (c->algorithm_enc != SSL_eNULL) {
crypto/openssl/ssl/ssl_ciph.c
2178
int cipher_nid = SSL_CIPHER_get_cipher_nid(c);
crypto/openssl/ssl/ssl_ciph.c
499
const SSL_CIPHER *c;
crypto/openssl/ssl/ssl_ciph.c
501
c = s->cipher;
crypto/openssl/ssl/ssl_ciph.c
502
if (c == NULL)
crypto/openssl/ssl/ssl_ciph.c
524
if (!ssl_cipher_get_evp_cipher(ctx, c, enc))
crypto/openssl/ssl/ssl_ciph.c
527
if (!ssl_cipher_get_evp_md_mac(ctx, c, md, mac_pkey_type,
crypto/openssl/ssl/ssl_ciph.c
536
&& (c->algorithm_mac == SSL_AEAD
crypto/openssl/ssl/ssl_ciph.c
545
if (c->algorithm_enc == SSL_RC4
crypto/openssl/ssl/ssl_ciph.c
546
&& c->algorithm_mac == SSL_MD5)
crypto/openssl/ssl/ssl_ciph.c
549
else if (c->algorithm_enc == SSL_AES128
crypto/openssl/ssl/ssl_ciph.c
550
&& c->algorithm_mac == SSL_SHA1)
crypto/openssl/ssl/ssl_ciph.c
554
else if (c->algorithm_enc == SSL_AES256
crypto/openssl/ssl/ssl_ciph.c
555
&& c->algorithm_mac == SSL_SHA1)
crypto/openssl/ssl/ssl_ciph.c
559
else if (c->algorithm_enc == SSL_AES128
crypto/openssl/ssl/ssl_ciph.c
560
&& c->algorithm_mac == SSL_SHA256)
crypto/openssl/ssl/ssl_ciph.c
564
else if (c->algorithm_enc == SSL_AES256
crypto/openssl/ssl/ssl_ciph.c
565
&& c->algorithm_mac == SSL_SHA256)
crypto/openssl/ssl/ssl_ciph.c
649
const SSL_CIPHER *c;
crypto/openssl/ssl/ssl_ciph.c
661
c = ssl_method->get_cipher(i);
crypto/openssl/ssl/ssl_ciph.c
663
if (c == NULL || !c->valid)
crypto/openssl/ssl/ssl_ciph.c
665
if ((c->algorithm_mkey & disabled_mkey) || (c->algorithm_auth & disabled_auth) || (c->algorithm_enc & disabled_enc) || (c->algorithm_mac & disabled_mac))
crypto/openssl/ssl/ssl_ciph.c
667
if (((ssl_method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS) == 0) && c->min_tls == 0)
crypto/openssl/ssl/ssl_ciph.c
669
if (((ssl_method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS) != 0) && c->min_dtls == 0)
crypto/openssl/ssl/ssl_ciph.c
672
co_list[co_list_num].cipher = c;
crypto/openssl/ssl/ssl_ciph.c
958
const SSL_CIPHER **ca_list, CERT *c)
crypto/openssl/ssl/ssl_conf.c
1064
CERT *c = NULL;
crypto/openssl/ssl/ssl_conf.c
1067
c = cctx->ctx->cert;
crypto/openssl/ssl/ssl_conf.c
1072
c = sc->cert;
crypto/openssl/ssl/ssl_conf.c
1074
if (c != NULL && cctx->flags & SSL_CONF_FLAG_REQUIRE_PRIVATE) {
crypto/openssl/ssl/ssl_conf.c
1081
if (p != NULL && c->pkeys[i].privatekey == NULL) {
crypto/openssl/ssl/ssl_conf.c
440
CERT *c = NULL;
crypto/openssl/ssl/ssl_conf.c
443
c = cctx->ctx->cert;
crypto/openssl/ssl/ssl_conf.c
450
c = sc->cert;
crypto/openssl/ssl/ssl_conf.c
455
if (rv > 0 && c != NULL && cctx->flags & SSL_CONF_FLAG_REQUIRE_PRIVATE) {
crypto/openssl/ssl/ssl_conf.c
456
size_t fileidx = c->key - c->pkeys;
crypto/openssl/ssl/ssl_conf.c
461
char **pfilename = &cctx->cert_filename[c->key - c->pkeys];
crypto/openssl/ssl/ssl_lib.c
1012
int SSL_CTX_is_quic(const SSL_CTX *c)
crypto/openssl/ssl/ssl_lib.c
1014
return IS_QUIC_CTX(c);
crypto/openssl/ssl/ssl_lib.c
3284
const SSL_CIPHER *c = sk_SSL_CIPHER_value(ciphers, i);
crypto/openssl/ssl/ssl_lib.c
3285
if (!ssl_cipher_disabled(sc, c, SSL_SECOP_CIPHER_SUPPORTED, 0)) {
crypto/openssl/ssl/ssl_lib.c
3290
if (!sk_SSL_CIPHER_push(sk, c)) {
crypto/openssl/ssl/ssl_lib.c
3316
const SSL_CIPHER *c;
crypto/openssl/ssl/ssl_lib.c
3324
c = sk_SSL_CIPHER_value(sk, n);
crypto/openssl/ssl/ssl_lib.c
3325
if (c == NULL)
crypto/openssl/ssl/ssl_lib.c
3327
return c->name;
crypto/openssl/ssl/ssl_lib.c
3346
const SSL_CIPHER *c;
crypto/openssl/ssl/ssl_lib.c
3351
c = sk_SSL_CIPHER_value(sk, i);
crypto/openssl/ssl/ssl_lib.c
3352
if (c->min_tls >= TLS1_3_VERSION)
crypto/openssl/ssl/ssl_lib.c
3411
const SSL_CIPHER *c;
crypto/openssl/ssl/ssl_lib.c
3434
c = sk_SSL_CIPHER_value(clntsk, i);
crypto/openssl/ssl/ssl_lib.c
3435
if (sk_SSL_CIPHER_find(srvrsk, c) < 0)
crypto/openssl/ssl/ssl_lib.c
3438
n = (int)OPENSSL_strnlen(c->name, size);
crypto/openssl/ssl/ssl_lib.c
3442
memcpy(p, c->name, n);
crypto/openssl/ssl/ssl_lib.c
4543
void SSL_CTX_set_cert_cb(SSL_CTX *c, int (*cb)(SSL *ssl, void *arg), void *arg)
crypto/openssl/ssl/ssl_lib.c
4545
ssl_cert_set_cert_cb(c->cert, cb, arg);
crypto/openssl/ssl/ssl_lib.c
4560
CERT *c = s->cert;
crypto/openssl/ssl/ssl_lib.c
4566
if (c == NULL)
crypto/openssl/ssl/ssl_lib.c
4569
dh_tmp = (c->dh_tmp != NULL
crypto/openssl/ssl/ssl_lib.c
4570
|| c->dh_tmp_cb != NULL
crypto/openssl/ssl/ssl_lib.c
4571
|| c->dh_tmp_auto);
crypto/openssl/ssl/ssl_lib.c
4642
ex_kusage = X509_get_key_usage(c->pkeys[SSL_PKEY_ECC].x509);
crypto/openssl/ssl/ssl_lib.c
6714
void SSL_CTX_set_client_hello_cb(SSL_CTX *c, SSL_client_hello_cb_fn cb,
crypto/openssl/ssl/ssl_lib.c
6717
c->client_hello_cb = cb;
crypto/openssl/ssl/ssl_lib.c
6718
c->client_hello_cb_arg = arg;
crypto/openssl/ssl/ssl_lib.c
6721
void SSL_CTX_set_new_pending_conn_cb(SSL_CTX *c, SSL_new_pending_conn_cb_fn cb,
crypto/openssl/ssl/ssl_lib.c
6724
c->new_pending_conn_cb = cb;
crypto/openssl/ssl/ssl_lib.c
6725
c->new_pending_conn_arg = arg;
crypto/openssl/ssl/ssl_lib.c
7128
const SSL_CIPHER *c;
crypto/openssl/ssl/ssl_lib.c
7174
c = ssl_get_cipher_by_char(s, sslv2format ? &cipher[1] : cipher, 1);
crypto/openssl/ssl/ssl_lib.c
7175
if (c != NULL) {
crypto/openssl/ssl/ssl_lib.c
7176
if ((c->valid && !sk_SSL_CIPHER_push(sk, c)) || (!c->valid && !sk_SSL_CIPHER_push(scsvs, c))) {
crypto/openssl/ssl/ssl_local.h
2003
void OSSL_COMP_CERT_free(OSSL_COMP_CERT *c);
crypto/openssl/ssl/ssl_local.h
2004
int OSSL_COMP_CERT_up_ref(OSSL_COMP_CERT *c);
crypto/openssl/ssl/ssl_local.h
2540
void ssl_cert_clear_certs(CERT *c);
crypto/openssl/ssl/ssl_local.h
2541
void ssl_cert_free(CERT *c);
crypto/openssl/ssl/ssl_local.h
2558
CERT *c);
crypto/openssl/ssl/ssl_local.h
2575
__owur int ssl_cipher_get_overhead(const SSL_CIPHER *c, size_t *mac_overhead,
crypto/openssl/ssl/ssl_local.h
2588
__owur int ssl_cert_select_current(CERT *c, X509 *x);
crypto/openssl/ssl/ssl_local.h
2589
__owur int ssl_cert_set_current(CERT *c, long arg);
crypto/openssl/ssl/ssl_local.h
2590
void ssl_cert_set_cert_cb(CERT *c, int (*cb)(SSL *ssl, void *arg), void *arg);
crypto/openssl/ssl/ssl_local.h
2595
__owur int ssl_cert_set_cert_store(CERT *c, X509_STORE *store, int chain,
crypto/openssl/ssl/ssl_local.h
2597
__owur int ssl_cert_get_cert_store(CERT *c, X509_STORE **pstore, int chain);
crypto/openssl/ssl/ssl_local.h
2650
__owur int ssl3_put_cipher_by_char(const SSL_CIPHER *c, WPACKET *pkt,
crypto/openssl/ssl/ssl_local.h
2889
__owur int tls1_set_sigalgs_list(SSL_CTX *ctx, CERT *c, const char *str, int client);
crypto/openssl/ssl/ssl_local.h
2890
__owur int tls1_set_raw_sigalgs(CERT *c, const uint16_t *psigs, size_t salglen,
crypto/openssl/ssl/ssl_local.h
2892
__owur int tls1_set_sigalgs(CERT *c, const int *salg, size_t salglen,
crypto/openssl/ssl/ssl_local.h
2925
__owur int ssl_cipher_disabled(const SSL_CONNECTION *s, const SSL_CIPHER *c,
crypto/openssl/ssl/ssl_rsa.c
1047
if (!override && (c->pkeys[i].x509 != NULL || c->pkeys[i].privatekey != NULL || c->pkeys[i].chain != NULL)) {
crypto/openssl/ssl/ssl_rsa.c
1072
OSSL_STACK_OF_X509_free(c->pkeys[i].chain);
crypto/openssl/ssl/ssl_rsa.c
1073
c->pkeys[i].chain = dup_chain;
crypto/openssl/ssl/ssl_rsa.c
1075
X509_free(c->pkeys[i].x509);
crypto/openssl/ssl/ssl_rsa.c
1076
c->pkeys[i].x509 = x509;
crypto/openssl/ssl/ssl_rsa.c
1078
EVP_PKEY_free(c->pkeys[i].privatekey);
crypto/openssl/ssl/ssl_rsa.c
1079
c->pkeys[i].privatekey = privatekey;
crypto/openssl/ssl/ssl_rsa.c
1081
c->key = &(c->pkeys[i]);
crypto/openssl/ssl/ssl_rsa.c
133
static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey, SSL_CTX *ctx)
crypto/openssl/ssl/ssl_rsa.c
142
if (c->pkeys[i].x509 != NULL
crypto/openssl/ssl/ssl_rsa.c
143
&& !X509_check_private_key(c->pkeys[i].x509, pkey))
crypto/openssl/ssl/ssl_rsa.c
148
EVP_PKEY_free(c->pkeys[i].privatekey);
crypto/openssl/ssl/ssl_rsa.c
149
c->pkeys[i].privatekey = pkey;
crypto/openssl/ssl/ssl_rsa.c
150
c->key = &c->pkeys[i];
crypto/openssl/ssl/ssl_rsa.c
21
static int ssl_set_cert(CERT *c, X509 *x509, SSL_CTX *ctx);
crypto/openssl/ssl/ssl_rsa.c
22
static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey, SSL_CTX *ctx);
crypto/openssl/ssl/ssl_rsa.c
258
static int ssl_set_cert(CERT *c, X509 *x, SSL_CTX *ctx)
crypto/openssl/ssl/ssl_rsa.c
279
if (c->pkeys[i].privatekey != NULL) {
crypto/openssl/ssl/ssl_rsa.c
285
EVP_PKEY_copy_parameters(pkey, c->pkeys[i].privatekey);
crypto/openssl/ssl/ssl_rsa.c
288
if (!X509_check_private_key(x, c->pkeys[i].privatekey)) {
crypto/openssl/ssl/ssl_rsa.c
294
EVP_PKEY_free(c->pkeys[i].privatekey);
crypto/openssl/ssl/ssl_rsa.c
295
c->pkeys[i].privatekey = NULL;
crypto/openssl/ssl/ssl_rsa.c
304
X509_free(c->pkeys[i].x509);
crypto/openssl/ssl/ssl_rsa.c
305
c->pkeys[i].x509 = x;
crypto/openssl/ssl/ssl_rsa.c
306
c->key = &(c->pkeys[i]);
crypto/openssl/ssl/ssl_rsa.c
986
CERT *c;
crypto/openssl/ssl/ssl_rsa.c
994
c = sc != NULL ? sc->cert : ctx->cert;
crypto/openssl/ssl/ssl_sess.c
26
static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck);
crypto/openssl/ssl/ssl_sess.c
723
int SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *c)
crypto/openssl/ssl/ssl_sess.c
733
if (!SSL_SESSION_up_ref(c))
crypto/openssl/ssl/ssl_sess.c
740
SSL_SESSION_free(c);
crypto/openssl/ssl/ssl_sess.c
743
s = lh_SSL_SESSION_insert(ctx->sessions, c);
crypto/openssl/ssl/ssl_sess.c
750
if (s != NULL && s != c) {
crypto/openssl/ssl/ssl_sess.c
761
} else if (s == NULL && lh_SSL_SESSION_retrieve(ctx->sessions, c) == NULL) {
crypto/openssl/ssl/ssl_sess.c
768
s = c;
crypto/openssl/ssl/ssl_sess.c
773
c->time = ossl_time_now();
crypto/openssl/ssl/ssl_sess.c
774
ssl_session_calculate_timeout(c);
crypto/openssl/ssl/ssl_sess.c
794
SSL_SESSION_list_add(ctx, c);
crypto/openssl/ssl/ssl_sess.c
810
int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
crypto/openssl/ssl/ssl_sess.c
812
return remove_session_lock(ctx, c, 1);
crypto/openssl/ssl/ssl_sess.c
815
static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
crypto/openssl/ssl/ssl_sess.c
820
if ((c != NULL) && (c->session_id_length != 0)) {
crypto/openssl/ssl/ssl_sess.c
825
if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) != NULL) {
crypto/openssl/ssl/ssl_sess.c
830
c->not_resumable = 1;
crypto/openssl/ssl/ssl_sess.c
836
ctx->remove_session_cb(ctx, c);
crypto/openssl/ssl/statem/extensions_clnt.c
155
const SSL_CIPHER *c = sk_SSL_CIPHER_value(cipher_stack, i);
crypto/openssl/ssl/statem/extensions_clnt.c
157
alg_k = c->algorithm_mkey;
crypto/openssl/ssl/statem/extensions_clnt.c
158
alg_a = c->algorithm_auth;
crypto/openssl/ssl/statem/extensions_clnt.c
161
|| c->min_tls >= TLS1_3_VERSION) {
crypto/openssl/ssl/statem/statem_clnt.c
1392
const SSL_CIPHER *c;
crypto/openssl/ssl/statem/statem_clnt.c
1396
c = ssl_get_cipher_by_char(s, cipherchars, 0);
crypto/openssl/ssl/statem/statem_clnt.c
1397
if (c == NULL) {
crypto/openssl/ssl/statem/statem_clnt.c
1406
if (ssl_cipher_disabled(s, c, SSL_SECOP_CIPHER_CHECK, 1)) {
crypto/openssl/ssl/statem/statem_clnt.c
1412
i = sk_SSL_CIPHER_find(sk, c);
crypto/openssl/ssl/statem/statem_clnt.c
1420
&& s->s3.tmp.new_cipher->id != c->id) {
crypto/openssl/ssl/statem/statem_clnt.c
1433
if (s->hit && (s->session->cipher_id != c->id)) {
crypto/openssl/ssl/statem/statem_clnt.c
1435
const EVP_MD *md = ssl_md(sctx, c->algorithm2);
crypto/openssl/ssl/statem/statem_clnt.c
1461
s->s3.tmp.new_cipher = c;
crypto/openssl/ssl/statem/statem_clnt.c
4154
const SSL_CIPHER *c;
crypto/openssl/ssl/statem/statem_clnt.c
4156
c = sk_SSL_CIPHER_value(sk, i);
crypto/openssl/ssl/statem/statem_clnt.c
4158
if (ssl_cipher_disabled(s, c, SSL_SECOP_CIPHER_SUPPORTED, 0))
crypto/openssl/ssl/statem/statem_clnt.c
4161
if (!ssl->method->put_cipher_by_char(c, pkt, &len)) {
crypto/openssl/ssl/statem/statem_clnt.c
4168
int minproto = SSL_CONNECTION_IS_DTLS(s) ? c->min_dtls : c->min_tls;
crypto/openssl/ssl/statem/statem_clnt.c
4169
int maxproto = SSL_CONNECTION_IS_DTLS(s) ? c->max_dtls : c->max_tls;
crypto/openssl/ssl/statem/statem_lib.c
201
const SSL_CIPHER *c = sk_SSL_CIPHER_value(ciphers, i);
crypto/openssl/ssl/statem/statem_lib.c
203
? c->min_dtls
crypto/openssl/ssl/statem/statem_lib.c
204
: c->min_tls;
crypto/openssl/ssl/statem/statem_lib.c
206
? c->max_dtls
crypto/openssl/ssl/statem/statem_lib.c
207
: c->max_tls;
crypto/openssl/ssl/statem/statem_srvr.c
1726
const SSL_CIPHER *c;
crypto/openssl/ssl/statem/statem_srvr.c
1829
c = sk_SSL_CIPHER_value(scsvs, i);
crypto/openssl/ssl/statem/statem_srvr.c
1830
if (SSL_CIPHER_get_id(c) == SSL3_CK_SCSV) {
crypto/openssl/ssl/statem/statem_srvr.c
1838
} else if (SSL_CIPHER_get_id(c) == SSL3_CK_FALLBACK_SCSV && !ssl_check_version_downgrade(s)) {
crypto/openssl/ssl/statem/statem_srvr.c
1940
c = sk_SSL_CIPHER_value(ciphers, i);
crypto/openssl/ssl/statem/statem_srvr.c
1943
sk_SSL_CIPHER_num(ciphers), SSL_CIPHER_get_name(c));
crypto/openssl/ssl/statem/statem_srvr.c
1944
if (c->id == id) {
crypto/openssl/ssl/t1_enc.c
105
static int tls_iv_length_within_key_block(const EVP_CIPHER *c)
crypto/openssl/ssl/t1_enc.c
108
if (EVP_CIPHER_get_mode(c) == EVP_CIPH_GCM_MODE)
crypto/openssl/ssl/t1_enc.c
110
else if (EVP_CIPHER_get_mode(c) == EVP_CIPH_CCM_MODE)
crypto/openssl/ssl/t1_enc.c
113
return EVP_CIPHER_get_iv_length(c);
crypto/openssl/ssl/t1_enc.c
120
const EVP_CIPHER *c;
crypto/openssl/ssl/t1_enc.c
134
c = s->s3.tmp.new_sym_enc;
crypto/openssl/ssl/t1_enc.c
144
cl = EVP_CIPHER_get_key_length(c);
crypto/openssl/ssl/t1_enc.c
146
iivlen = tls_iv_length_within_key_block(c);
crypto/openssl/ssl/t1_enc.c
174
switch (EVP_CIPHER_get_mode(c)) {
crypto/openssl/ssl/t1_enc.c
187
if (EVP_CIPHER_is_a(c, "CHACHA20-POLY1305")) {
crypto/openssl/ssl/t1_enc.c
238
mac_secret_size, c, taglen, mac_type,
crypto/openssl/ssl/t1_enc.c
247
BIO_dump_indent(trc_out, key, EVP_CIPHER_get_key_length(c), 4);
crypto/openssl/ssl/t1_enc.c
261
const EVP_CIPHER *c;
crypto/openssl/ssl/t1_enc.c
272
if (!ssl_cipher_get_evp(SSL_CONNECTION_GET_CTX(s), s->session, &c, &hash,
crypto/openssl/ssl/t1_enc.c
281
s->s3.tmp.new_sym_enc = c;
crypto/openssl/ssl/t1_enc.c
286
ivlen = tls_iv_length_within_key_block(c);
crypto/openssl/ssl/t1_enc.c
291
num = mac_secret_size + EVP_CIPHER_get_key_length(c) + ivlen;
crypto/openssl/ssl/t1_lib.c
2906
int ssl_cipher_disabled(const SSL_CONNECTION *s, const SSL_CIPHER *c,
crypto/openssl/ssl/t1_lib.c
2909
int minversion = SSL_CONNECTION_IS_DTLS(s) ? c->min_dtls : c->min_tls;
crypto/openssl/ssl/t1_lib.c
2910
int maxversion = SSL_CONNECTION_IS_DTLS(s) ? c->max_dtls : c->max_tls;
crypto/openssl/ssl/t1_lib.c
2912
if (c->algorithm_mkey & s->s3.tmp.mask_k
crypto/openssl/ssl/t1_lib.c
2913
|| c->algorithm_auth & s->s3.tmp.mask_a)
crypto/openssl/ssl/t1_lib.c
2920
switch (SSL_CIPHER_get_id(c)) {
crypto/openssl/ssl/t1_lib.c
2935
&& (c->algorithm_mkey & (SSL_kECDHE | SSL_kECDHEPSK)) != 0)
crypto/openssl/ssl/t1_lib.c
2942
return !ssl_security(s, op, c->strength_bits, 0, (void *)c);
crypto/openssl/ssl/t1_lib.c
3389
const SSL_CIPHER *c;
crypto/openssl/ssl/t1_lib.c
3391
c = sk_SSL_CIPHER_value(sk, i);
crypto/openssl/ssl/t1_lib.c
3393
if (ssl_cipher_disabled(s, c, SSL_SECOP_CIPHER_SUPPORTED, 0))
crypto/openssl/ssl/t1_lib.c
3396
if ((c->algorithm_mkey & (SSL_kGOST | SSL_kGOST18)) != 0)
crypto/openssl/ssl/t1_lib.c
3506
CERT *c = s->cert;
crypto/openssl/ssl/t1_lib.c
3513
if (!s->server && c->client_sigalgs && !is_suiteb) {
crypto/openssl/ssl/t1_lib.c
3514
conf = c->client_sigalgs;
crypto/openssl/ssl/t1_lib.c
3515
conflen = c->client_sigalgslen;
crypto/openssl/ssl/t1_lib.c
3516
} else if (c->conf_sigalgs && !is_suiteb) {
crypto/openssl/ssl/t1_lib.c
3517
conf = c->conf_sigalgs;
crypto/openssl/ssl/t1_lib.c
3518
conflen = c->conf_sigalgslen;
crypto/openssl/ssl/t1_lib.c
3825
int tls1_set_sigalgs_list(SSL_CTX *ctx, CERT *c, const char *str, int client)
crypto/openssl/ssl/t1_lib.c
3839
if (c == NULL)
crypto/openssl/ssl/t1_lib.c
3841
return tls1_set_raw_sigalgs(c, sig.sigalgs, sig.sigalgcnt, client);
crypto/openssl/ssl/t1_lib.c
3844
int tls1_set_raw_sigalgs(CERT *c, const uint16_t *psigs, size_t salglen,
crypto/openssl/ssl/t1_lib.c
3854
OPENSSL_free(c->client_sigalgs);
crypto/openssl/ssl/t1_lib.c
3855
c->client_sigalgs = sigalgs;
crypto/openssl/ssl/t1_lib.c
3856
c->client_sigalgslen = salglen;
crypto/openssl/ssl/t1_lib.c
3858
OPENSSL_free(c->conf_sigalgs);
crypto/openssl/ssl/t1_lib.c
3859
c->conf_sigalgs = sigalgs;
crypto/openssl/ssl/t1_lib.c
3860
c->conf_sigalgslen = salglen;
crypto/openssl/ssl/t1_lib.c
3866
int tls1_set_sigalgs(CERT *c, const int *psig_nids, size_t salglen, int client)
crypto/openssl/ssl/t1_lib.c
3894
OPENSSL_free(c->client_sigalgs);
crypto/openssl/ssl/t1_lib.c
3895
c->client_sigalgs = sigalgs;
crypto/openssl/ssl/t1_lib.c
3896
c->client_sigalgslen = salglen / 2;
crypto/openssl/ssl/t1_lib.c
3898
OPENSSL_free(c->conf_sigalgs);
crypto/openssl/ssl/t1_lib.c
3899
c->conf_sigalgs = sigalgs;
crypto/openssl/ssl/t1_lib.c
3900
c->conf_sigalgslen = salglen / 2;
crypto/openssl/ssl/t1_lib.c
4013
CERT *c = s->cert;
crypto/openssl/ssl/t1_lib.c
4027
cpk = c->key;
crypto/openssl/ssl/t1_lib.c
4028
idx = (int)(cpk - c->pkeys);
crypto/openssl/ssl/t1_lib.c
4030
cpk = c->pkeys + idx;
crypto/openssl/ssl/t1_lib.c
4035
strict_mode = c->cert_flags & SSL_CERT_FLAGS_CHECK_TLS_STRICT;
crypto/openssl/ssl/t1_lib.c
4058
if (c->cert_flags & SSL_CERT_FLAGS_CHECK_TLS_STRICT)
crypto/openssl/ssl/t1_lib.c
4130
if (default_nid > 0 && c->conf_sigalgs) {
crypto/openssl/ssl/t1_lib.c
4132
const uint16_t *p = c->conf_sigalgs;
crypto/openssl/ssl/t1_lib.c
4133
for (j = 0; j < c->conf_sigalgslen; j++, p++) {
crypto/openssl/ssl/t1_lib.c
4139
if (j == c->conf_sigalgslen) {
crypto/openssl/ssl/tls13_enc.c
325
const EVP_CIPHER *c;
crypto/openssl/ssl/tls13_enc.c
331
if (!ssl_cipher_get_evp(SSL_CONNECTION_GET_CTX(s), s->session, &c, &hash,
crypto/openssl/ssl/tls13_enc.c
339
s->s3.tmp.new_sym_enc = c;
crypto/openssl/test/bio_base64_test.c
65
static int memout(BIO *mem, char c, int llen, int *pos)
crypto/openssl/test/bio_base64_test.c
67
if (BIO_write(mem, &c, 1) != 1)
crypto/openssl/test/bio_base64_test.c
71
c = '\n';
crypto/openssl/test/bio_base64_test.c
72
if (BIO_write(mem, &c, 1) != 1)
crypto/openssl/test/bio_base64_test.c
79
static int memoutws(BIO *mem, char c, unsigned wscnt, unsigned llen, int *pos)
crypto/openssl/test/bio_base64_test.c
85
return memout(mem, c, llen, pos);
crypto/openssl/test/bntest.c
1002
|| !TEST_ptr(c = BN_new())
crypto/openssl/test/bntest.c
1014
&& TEST_true(BN_bntest_rand(c, 512, 0, 0))
crypto/openssl/test/bntest.c
1018
if (!(TEST_true(BN_GF2m_mod_exp(e, a, c, b[j], ctx))
crypto/openssl/test/bntest.c
1021
&& TEST_true(BN_add(f, c, d))
crypto/openssl/test/bntest.c
1034
BN_free(c);
crypto/openssl/test/bntest.c
1043
BIGNUM *a = NULL, *b[2] = { NULL, NULL }, *c = NULL, *d = NULL;
crypto/openssl/test/bntest.c
1050
|| !TEST_ptr(c = BN_new())
crypto/openssl/test/bntest.c
1065
if (!(TEST_true(BN_GF2m_mod(c, a, b[j]))
crypto/openssl/test/bntest.c
1068
&& TEST_true(BN_GF2m_add(f, c, e))
crypto/openssl/test/bntest.c
1079
BN_free(c);
crypto/openssl/test/bntest.c
1088
BIGNUM *a = NULL, *b[2] = { NULL, NULL }, *c = NULL, *d = NULL;
crypto/openssl/test/bntest.c
1095
|| !TEST_ptr(c = BN_new())
crypto/openssl/test/bntest.c
1108
t = BN_GF2m_mod_solve_quad(c, a, b[j], ctx);
crypto/openssl/test/bntest.c
1111
if (!(TEST_true(BN_GF2m_mod_sqr(d, c, b[j], ctx))
crypto/openssl/test/bntest.c
1112
&& TEST_true(BN_GF2m_add(d, c, d))
crypto/openssl/test/bntest.c
1133
BN_free(c);
crypto/openssl/test/bntest.c
153
BIGNUM *a = NULL, *b = NULL, *c = NULL, *d = NULL;
crypto/openssl/test/bntest.c
158
|| !TEST_ptr(c = BN_new())
crypto/openssl/test/bntest.c
164
&& TEST_ptr(BN_copy(c, a))
crypto/openssl/test/bntest.c
1716
BIGNUM *b = NULL, *c = NULL, *d = NULL;
crypto/openssl/test/bntest.c
172
|| !equalBN("swap", b, c))
crypto/openssl/test/bntest.c
1743
BN_hex2bn(&c,
crypto/openssl/test/bntest.c
1750
if (!TEST_true(BN_mod_exp(d, a, b, c, ctx))
crypto/openssl/test/bntest.c
1759
BN_free(c);
crypto/openssl/test/bntest.c
183
if (!equalBN("cswap true", a, c)
crypto/openssl/test/bntest.c
189
if (!equalBN("cswap true", a, c))
crypto/openssl/test/bntest.c
195
if (!equalBN("cswap false", a, c)
crypto/openssl/test/bntest.c
201
if (!equalBN("cswap false", a, c))
crypto/openssl/test/bntest.c
209
|| !equalBN("swap, flags", b, c)
crypto/openssl/test/bntest.c
216
if (!equalBN("cswap true, flags", a, c)
crypto/openssl/test/bntest.c
224
if (!equalBN("cswap false, flags", a, c)
crypto/openssl/test/bntest.c
234
BN_free(c);
crypto/openssl/test/bntest.c
241
BIGNUM *a = NULL, *b = NULL, *c = NULL;
crypto/openssl/test/bntest.c
2455
BIGNUM *a = NULL, *b = NULL, *c = NULL, *d = NULL;
crypto/openssl/test/bntest.c
246
|| !TEST_ptr(c = BN_new()))
crypto/openssl/test/bntest.c
2461
|| !TEST_ptr(c = BN_new())
crypto/openssl/test/bntest.c
2470
if (!TEST_true(BN_mul(c, a, b, ctx)))
crypto/openssl/test/bntest.c
2472
if (!TEST_BN_eq_zero(c)
crypto/openssl/test/bntest.c
2473
|| !TEST_BN_ge_zero(c))
crypto/openssl/test/bntest.c
2515
BN_free(c);
crypto/openssl/test/bntest.c
262
if (!(TEST_true(BN_sub(c, a, b))
crypto/openssl/test/bntest.c
263
&& TEST_true(BN_add(c, c, b))
crypto/openssl/test/bntest.c
264
&& TEST_true(BN_sub(c, c, a))
crypto/openssl/test/bntest.c
265
&& TEST_BN_eq_zero(c)))
crypto/openssl/test/bntest.c
272
BN_free(c);
crypto/openssl/test/bntest.c
2765
static int test_ctx_set_ct_flag(BN_CTX *c)
crypto/openssl/test/bntest.c
2771
BN_CTX_start(c);
crypto/openssl/test/bntest.c
2773
if (!TEST_ptr(b[i] = BN_CTX_get(c)))
crypto/openssl/test/bntest.c
278
BIGNUM *a = NULL, *b = NULL, *c = NULL, *d = NULL, *e = NULL;
crypto/openssl/test/bntest.c
2781
BN_CTX_end(c);
crypto/openssl/test/bntest.c
2785
static int test_ctx_check_ct_flag(BN_CTX *c)
crypto/openssl/test/bntest.c
2791
BN_CTX_start(c);
crypto/openssl/test/bntest.c
2793
if (!TEST_ptr(b[i] = BN_CTX_get(c)))
crypto/openssl/test/bntest.c
2801
BN_CTX_end(c);
crypto/openssl/test/bntest.c
2838
BN_CTX *c = i == 0 ? nctx : sctx;
crypto/openssl/test/bntest.c
2839
if (!TEST_true(test_ctx_set_ct_flag(c))
crypto/openssl/test/bntest.c
284
|| !TEST_ptr(c = BN_new())
crypto/openssl/test/bntest.c
2840
|| !TEST_true(test_ctx_check_ct_flag(c)))
crypto/openssl/test/bntest.c
304
&& TEST_true(BN_div_recp(d, c, a, recp, ctx))
crypto/openssl/test/bntest.c
306
&& TEST_true(BN_add(d, e, c))
crypto/openssl/test/bntest.c
315
BN_free(c);
crypto/openssl/test/bntest.c
3249
BIGNUM *c = NULL;
crypto/openssl/test/bntest.c
3256
if (!TEST_true(BN_dec2bn(&c, "39")))
crypto/openssl/test/bntest.c
3262
: BN_mod_exp_recp)(r, a, b, c, ctx),
crypto/openssl/test/bntest.c
3277
: BN_mod_exp_recp)(r, a, r, c, ctx),
crypto/openssl/test/bntest.c
3290
if (!TEST_int_eq(BN_mod_exp_simple(c, a, b, c, ctx), 0))
crypto/openssl/test/bntest.c
3293
if (!TEST_int_eq(BN_mod_exp_recp(c, a, b, c, ctx), 1))
crypto/openssl/test/bntest.c
3295
if (!TEST_ptr_ne(str = BN_bn2dec(c), NULL))
crypto/openssl/test/bntest.c
3306
BN_free(c);
crypto/openssl/test/bntest.c
3350
int c;
crypto/openssl/test/bntest.c
3369
c = s->errors;
crypto/openssl/test/bntest.c
3372
return c == 0;
crypto/openssl/test/bntest.c
347
BIGNUM *a = NULL, *b = NULL, *c = NULL, *d = NULL;
crypto/openssl/test/bntest.c
352
|| !TEST_ptr(c = set_signed_bn(signed_mod_tests[n].result))
crypto/openssl/test/bntest.c
357
&& TEST_BN_eq(a, c)
crypto/openssl/test/bntest.c
363
BN_free(c);
crypto/openssl/test/bntest.c
370
BIGNUM *a = NULL, *b = NULL, *c = NULL, *d = NULL;
crypto/openssl/test/bntest.c
375
|| !TEST_ptr(c = set_signed_bn(signed_mod_tests[n].result))
crypto/openssl/test/bntest.c
380
&& TEST_BN_eq(b, c)
crypto/openssl/test/bntest.c
386
BN_free(c);
crypto/openssl/test/bntest.c
393
BIGNUM *a = NULL, *b = NULL, *c = NULL, *d = NULL, *e = NULL;
crypto/openssl/test/bntest.c
398
|| !TEST_ptr(c = BN_new())
crypto/openssl/test/bntest.c
410
if (!(TEST_true(BN_mod(c, a, b, ctx))
crypto/openssl/test/bntest.c
412
&& TEST_BN_eq(e, c)
crypto/openssl/test/bntest.c
413
&& TEST_true(BN_mul(c, d, b, ctx))
crypto/openssl/test/bntest.c
414
&& TEST_true(BN_add(d, c, e))
crypto/openssl/test/bntest.c
422
BN_free(c);
crypto/openssl/test/bntest.c
475
BIGNUM *b = NULL, *n = NULL, *c = NULL;
crypto/openssl/test/bntest.c
486
|| !TEST_ptr(c = BN_new())
crypto/openssl/test/bntest.c
521
&& TEST_true(BN_mod_mul_montgomery(c, a, b, mont, ctx))
crypto/openssl/test/bntest.c
523
&& TEST_BN_eq(c, d)))
crypto/openssl/test/bntest.c
533
&& TEST_true(BN_mod_mul_montgomery(c, a, a, mont, ctx))
crypto/openssl/test/bntest.c
535
&& TEST_BN_eq(c, d)))
crypto/openssl/test/bntest.c
580
if (!TEST_true(BN_mod_mul_montgomery(c, a, a, mont, ctx))
crypto/openssl/test/bntest.c
582
|| !TEST_BN_eq(c, d))
crypto/openssl/test/bntest.c
614
&& TEST_true(BN_mod_exp_mont_consttime(c, a, b, n, ctx, mont))
crypto/openssl/test/bntest.c
616
&& TEST_BN_eq(c, d)))
crypto/openssl/test/bntest.c
639
&& TEST_true(BN_mod_exp_mont_consttime(c, a, b, n, ctx, mont))))
crypto/openssl/test/bntest.c
642
if (!TEST_BN_eq(c, d))
crypto/openssl/test/bntest.c
733
BN_free(c);
crypto/openssl/test/bntest.c
740
BIGNUM *a = NULL, *b = NULL, *c = NULL;
crypto/openssl/test/bntest.c
745
|| !TEST_ptr(c = BN_new()))
crypto/openssl/test/bntest.c
754
if (!(TEST_true(BN_GF2m_add(c, a, b))
crypto/openssl/test/bntest.c
756
&& TEST_false((BN_is_odd(a) && BN_is_odd(c))
crypto/openssl/test/bntest.c
757
|| (!BN_is_odd(a) && !BN_is_odd(c)))))
crypto/openssl/test/bntest.c
759
if (!(TEST_true(BN_GF2m_add(c, c, c))
crypto/openssl/test/bntest.c
761
&& TEST_BN_eq_zero(c)))
crypto/openssl/test/bntest.c
768
BN_free(c);
crypto/openssl/test/bntest.c
774
BIGNUM *a = NULL, *b[2] = { NULL, NULL }, *c = NULL, *d = NULL, *e = NULL;
crypto/openssl/test/bntest.c
780
|| !TEST_ptr(c = BN_new())
crypto/openssl/test/bntest.c
793
if (!(TEST_true(BN_GF2m_mod(c, a, b[j]))
crypto/openssl/test/bntest.c
794
&& TEST_true(BN_GF2m_add(d, a, c))
crypto/openssl/test/bntest.c
806
BN_free(c);
crypto/openssl/test/bntest.c
814
BIGNUM *a, *b[2] = { NULL, NULL }, *c = NULL, *d = NULL;
crypto/openssl/test/bntest.c
821
|| !TEST_ptr(c = BN_new())
crypto/openssl/test/bntest.c
835
&& TEST_true(BN_bntest_rand(c, 1024, 0, 0))
crypto/openssl/test/bntest.c
839
if (!(TEST_true(BN_GF2m_mod_mul(e, a, c, b[j], ctx))
crypto/openssl/test/bntest.c
841
&& TEST_true(BN_GF2m_mod_mul(g, f, c, b[j], ctx))
crypto/openssl/test/bntest.c
842
&& TEST_true(BN_GF2m_mod_mul(h, d, c, b[j], ctx))
crypto/openssl/test/bntest.c
856
BN_free(c);
crypto/openssl/test/bntest.c
867
BIGNUM *a = NULL, *b[2] = { NULL, NULL }, *c = NULL, *d = NULL;
crypto/openssl/test/bntest.c
873
|| !TEST_ptr(c = BN_new())
crypto/openssl/test/bntest.c
885
if (!(TEST_true(BN_GF2m_mod_sqr(c, a, b[j], ctx))
crypto/openssl/test/bntest.c
888
&& TEST_true(BN_GF2m_add(d, c, d))
crypto/openssl/test/bntest.c
899
BN_free(c);
crypto/openssl/test/bntest.c
906
BIGNUM *a = NULL, *b[2] = { NULL, NULL }, *c = NULL, *d = NULL;
crypto/openssl/test/bntest.c
912
|| !TEST_ptr(c = BN_new())
crypto/openssl/test/bntest.c
921
if (!TEST_false(BN_GF2m_mod_inv(c, a, b[0], ctx)))
crypto/openssl/test/bntest.c
932
if (!(TEST_true(BN_GF2m_mod_inv(c, a, b[j], ctx))
crypto/openssl/test/bntest.c
933
&& TEST_true(BN_GF2m_mod_mul(d, a, c, b[j], ctx))
crypto/openssl/test/bntest.c
944
BN_free(c);
crypto/openssl/test/bntest.c
951
BIGNUM *a = NULL, *b[2] = { NULL, NULL }, *c = NULL, *d = NULL;
crypto/openssl/test/bntest.c
958
|| !TEST_ptr(c = BN_new())
crypto/openssl/test/bntest.c
970
&& TEST_true(BN_bntest_rand(c, 512, 0, 0))))
crypto/openssl/test/bntest.c
973
if (!(TEST_true(BN_GF2m_mod_div(d, a, c, b[j], ctx))
crypto/openssl/test/bntest.c
974
&& TEST_true(BN_GF2m_mod_mul(e, d, c, b[j], ctx))
crypto/openssl/test/bntest.c
986
BN_free(c);
crypto/openssl/test/bntest.c
995
BIGNUM *a = NULL, *b[2] = { NULL, NULL }, *c = NULL, *d = NULL;
crypto/openssl/test/casttest.c
38
static unsigned char c[3][8] = {
crypto/openssl/test/casttest.c
72
if (!TEST_mem_eq(out, sizeof(c[z]), c[z], sizeof(c[z]))) {
crypto/openssl/test/ciphername_test.c
385
const SSL_CIPHER *c;
crypto/openssl/test/ciphername_test.c
434
c = sk_SSL_CIPHER_value(sk, i);
crypto/openssl/test/ciphername_test.c
435
id = SSL_CIPHER_get_id(c) & 0xFFFF;
crypto/openssl/test/ciphername_test.c
439
p = SSL_CIPHER_standard_name(c);
crypto/openssl/test/ciphername_test.c
453
q = SSL_CIPHER_get_name(c);
crypto/openssl/test/constant_time_test.c
100
if (is_true && c != CONSTTIME_TRUE_64) {
crypto/openssl/test/constant_time_test.c
104
} else if (!is_true && c != CONSTTIME_FALSE_64) {
crypto/openssl/test/constant_time_test.c
335
int c = signed_test_values[i];
crypto/openssl/test/constant_time_test.c
342
if (!test_select_int(c, d)
crypto/openssl/test/constant_time_test.c
343
|| !test_eq_int(c, d)
crypto/openssl/test/constant_time_test.c
344
|| !test_eq_int_8(c, d))
crypto/openssl/test/constant_time_test.c
98
uint64_t c = op(a, b);
crypto/openssl/test/ctype_internal_test.c
22
static int isblank(int c)
crypto/openssl/test/ctype_internal_test.c
24
return c == ' ' || c == '\t';
crypto/openssl/test/danetest.c
29
#define _UC(c) ((unsigned char)(c))
crypto/openssl/test/dhtest.c
203
if (!TEST_ptr(c = DHparams_dup(b))
crypto/openssl/test/dhtest.c
205
|| !TEST_true(DH_set0_key(c, NULL, cpriv_key)))
crypto/openssl/test/dhtest.c
219
clen = DH_size(c);
crypto/openssl/test/dhtest.c
221
|| !TEST_int_gt((cout = DH_compute_key(cbuf, apub_key, c)), 0))
crypto/openssl/test/dhtest.c
247
DH_free(c);
crypto/openssl/test/dhtest.c
47
DH *c = NULL;
crypto/openssl/test/ec_internal_test.c
28
BIGNUM *a = NULL, *b = NULL, *c = NULL;
crypto/openssl/test/ec_internal_test.c
37
if (!TEST_ptr(c = BN_CTX_get(ctx))
crypto/openssl/test/ec_internal_test.c
47
|| !TEST_true(group->meth->field_mul(group, c, a, b, ctx))
crypto/openssl/test/ec_internal_test.c
48
|| (group->meth->field_decode && !TEST_true(group->meth->field_decode(group, c, c, ctx)))
crypto/openssl/test/ec_internal_test.c
49
|| !TEST_true(BN_is_one(c)))
crypto/openssl/test/evp_test.c
5338
int c;
crypto/openssl/test/evp_test.c
5349
c = parse(t);
crypto/openssl/test/evp_test.c
5354
if (c == 0 || !run_test(t)) {
crypto/openssl/test/evp_test.c
5367
c = t->s.errors;
crypto/openssl/test/evp_test.c
5369
return c == 0;
crypto/openssl/test/exptest.c
154
unsigned char c;
crypto/openssl/test/exptest.c
176
if (!TEST_int_gt(RAND_bytes(&c, 1), 0))
crypto/openssl/test/exptest.c
178
c = (c % BN_BITS) - BN_BITS2;
crypto/openssl/test/exptest.c
179
if (!TEST_true(BN_rand(a, NUM_BITS + c, BN_RAND_TOP_ONE,
crypto/openssl/test/exptest.c
183
if (!TEST_int_gt(RAND_bytes(&c, 1), 0))
crypto/openssl/test/exptest.c
185
c = (c % BN_BITS) - BN_BITS2;
crypto/openssl/test/exptest.c
186
if (!TEST_true(BN_rand(b, NUM_BITS + c, BN_RAND_TOP_ONE,
crypto/openssl/test/exptest.c
190
if (!TEST_int_gt(RAND_bytes(&c, 1), 0))
crypto/openssl/test/exptest.c
192
c = (c % BN_BITS) - BN_BITS2;
crypto/openssl/test/exptest.c
193
if (!TEST_true(BN_rand(m, NUM_BITS + c, BN_RAND_TOP_ONE,
crypto/openssl/test/ideatest.c
31
static const unsigned char c[8] = { 0x11, 0xFB, 0xED, 0x2B, 0x01, 0x98, 0x6D, 0xE5 };
crypto/openssl/test/ideatest.c
82
if (!TEST_mem_eq(out, IDEA_BLOCK, c, sizeof(c)))
crypto/openssl/test/ideatest.c
86
IDEA_ecb_encrypt(c, out, &dkey);
crypto/openssl/test/list_test.c
122
c = ossl_list_int_head(&l);
crypto/openssl/test/list_test.c
124
while (c != NULL && d != NULL) {
crypto/openssl/test/list_test.c
125
if (!TEST_int_eq(c->n, n) || !TEST_int_eq(d->n, 8 - n))
crypto/openssl/test/list_test.c
127
c = ossl_list_int_next(c);
crypto/openssl/test/list_test.c
131
if (!TEST_ptr_null(c) || !TEST_ptr_null(d))
crypto/openssl/test/list_test.c
139
c = ossl_list_int_head(&l);
crypto/openssl/test/list_test.c
141
while (c != NULL && d != NULL) {
crypto/openssl/test/list_test.c
142
if (!TEST_int_eq(c->n, n) || !TEST_int_eq(d->n, 7 - n))
crypto/openssl/test/list_test.c
144
c = ossl_list_int_next(c);
crypto/openssl/test/list_test.c
148
if (!TEST_ptr_null(c) || !TEST_ptr_null(d))
crypto/openssl/test/list_test.c
99
INTL *c, *d;
crypto/openssl/test/mdc2_internal_test.c
51
MDC2_CTX c;
crypto/openssl/test/mdc2_internal_test.c
54
MDC2_Init(&c);
crypto/openssl/test/mdc2_internal_test.c
55
MDC2_Update(&c, (const unsigned char *)testdata.input,
crypto/openssl/test/mdc2_internal_test.c
57
MDC2_Final(&(md[0]), &c);
crypto/openssl/test/mdc2test.c
50
EVP_MD_CTX *c = NULL;
crypto/openssl/test/mdc2test.c
68
c = EVP_MD_CTX_new();
crypto/openssl/test/mdc2test.c
69
if (!TEST_ptr(c)
crypto/openssl/test/mdc2test.c
70
|| !TEST_true(EVP_DigestInit_ex(c, EVP_mdc2(), NULL))
crypto/openssl/test/mdc2test.c
71
|| !TEST_true(EVP_DigestUpdate(c, (unsigned char *)text, tlen))
crypto/openssl/test/mdc2test.c
72
|| !TEST_true(EVP_DigestFinal_ex(c, &(md[0]), NULL))
crypto/openssl/test/mdc2test.c
74
|| !TEST_true(EVP_DigestInit_ex(c, EVP_mdc2(), NULL)))
crypto/openssl/test/mdc2test.c
77
if (!TEST_int_gt(EVP_MD_CTX_set_params(c, params), 0)
crypto/openssl/test/mdc2test.c
78
|| !TEST_true(EVP_DigestUpdate(c, (unsigned char *)text, tlen))
crypto/openssl/test/mdc2test.c
79
|| !TEST_true(EVP_DigestFinal_ex(c, &(md[0]), NULL))
crypto/openssl/test/mdc2test.c
85
EVP_MD_CTX_free(c);
crypto/openssl/test/ml_kem_evp_extra_test.c
244
unsigned char c;
crypto/openssl/test/ml_kem_evp_extra_test.c
266
if (!TEST_int_le(RAND_priv_bytes(&c, 1), 0))
crypto/openssl/test/ml_kem_evp_extra_test.c
321
if (!TEST_int_le(RAND_bytes(&c, 1), 0))
crypto/openssl/test/ml_kem_internal_test.c
108
unsigned char c;
crypto/openssl/test/ml_kem_internal_test.c
141
if (!TEST_int_le(RAND_priv_bytes(&c, 1), 0))
crypto/openssl/test/ml_kem_internal_test.c
226
if (!TEST_int_le(RAND_bytes(&c, 1), 0))
crypto/openssl/test/params_api_test.c
507
BIGNUM *b = NULL, *c = NULL;
crypto/openssl/test/params_api_test.c
527
if (!TEST_true(OSSL_PARAM_get_BN(&param, &c))
crypto/openssl/test/params_api_test.c
528
|| !TEST_BN_eq(b, c))
crypto/openssl/test/params_api_test.c
534
BN_free(c);
crypto/openssl/test/params_api_test.c
542
BIGNUM *b = NULL, *c = NULL;
crypto/openssl/test/params_api_test.c
564
if (!TEST_true(OSSL_PARAM_get_BN(&param, &c))
crypto/openssl/test/params_api_test.c
565
|| !TEST_BN_eq(b, c)) {
crypto/openssl/test/params_api_test.c
566
BN_print_fp(stderr, c);
crypto/openssl/test/params_api_test.c
573
BN_free(c);
crypto/openssl/test/quic_ackm_test.c
346
const struct tx_ack_test_case *c = tx_ack_cases[tidx];
crypto/openssl/test/quic_ackm_test.c
356
if (!TEST_int_eq(helper_init(&h, c->pn_table_len), 1))
crypto/openssl/test/quic_ackm_test.c
365
for (i = 0; i < c->pn_table_len; ++i) {
crypto/openssl/test/quic_ackm_test.c
370
tx->pkt_num = c->pn_table[i];
crypto/openssl/test/quic_ackm_test.c
393
for (i = 0; i < c->pn_table_len; ++i) {
crypto/openssl/test/quic_ackm_test.c
403
ack.ack_ranges = (OSSL_QUIC_ACK_RANGE *)c->ack_ranges;
crypto/openssl/test/quic_ackm_test.c
404
ack.num_ack_ranges = c->num_ack_ranges;
crypto/openssl/test/quic_ackm_test.c
409
for (i = 0; i < c->pn_table_len; ++i) {
crypto/openssl/test/quic_ackm_test.c
411
(c->expect_ack[i] & 1) != 0 ? 1 : 0))
crypto/openssl/test/quic_ackm_test.c
414
(c->expect_ack[i] & 2) != 0 ? 1 : 0))
crypto/openssl/test/quic_ackm_test.c
417
(c->expect_ack[i] & 4) != 0 ? 1 : 0))
crypto/openssl/test/quic_multistream_test.c
1122
ossl_crypto_condvar_signal(h->server_thread.c);
crypto/openssl/test/quic_multistream_test.c
116
CRYPTO_CONDVAR *c;
crypto/openssl/test/quic_multistream_test.c
2095
OP_C_NEW_STREAM_UNI(c, C_UNI_ID(0))
crypto/openssl/test/quic_multistream_test.c
2096
OP_C_WRITE(c, "elephant", 8)
crypto/openssl/test/quic_multistream_test.c
2097
OP_C_CONCLUDE(c)
crypto/openssl/test/quic_multistream_test.c
2098
OP_S_BIND_STREAM_ID(c, C_UNI_ID(0))
crypto/openssl/test/quic_multistream_test.c
2099
OP_S_READ_EXPECT(c, "elephant", 8)
crypto/openssl/test/quic_multistream_test.c
2100
OP_S_EXPECT_FIN(c)
crypto/openssl/test/quic_multistream_test.c
2101
OP_S_WRITE_FAIL(c)
crypto/openssl/test/quic_multistream_test.c
2339
OP_S_NEW_STREAM_BIDI(c, ANY_ID)
crypto/openssl/test/quic_multistream_test.c
2340
OP_S_WRITE(c, "foo", 3)
crypto/openssl/test/quic_multistream_test.c
2341
OP_S_CONCLUDE(c)
crypto/openssl/test/quic_multistream_test.c
2377
OP_S_BIND_STREAM_ID(c, C_BIDI_ID(2))
crypto/openssl/test/quic_multistream_test.c
2378
OP_S_READ_EXPECT(c, "foo", 3)
crypto/openssl/test/quic_multistream_test.c
2379
OP_S_EXPECT_FIN(c)
crypto/openssl/test/quic_multistream_test.c
527
ossl_crypto_condvar_signal(h->server_thread.c);
crypto/openssl/test/quic_multistream_test.c
5528
OP_S_NEW_STREAM_BIDI(c, S_BIDI_ID(0))
crypto/openssl/test/quic_multistream_test.c
5529
OP_S_WRITE(c, "x", 1)
crypto/openssl/test/quic_multistream_test.c
5531
OP_C_ACCEPT_STREAM_WAIT(c)
crypto/openssl/test/quic_multistream_test.c
5532
OP_C_READ_EXPECT(c, "x", 1)
crypto/openssl/test/quic_multistream_test.c
5663
OP_C_NEW_STREAM_BIDI(c, C_BIDI_ID(2))
crypto/openssl/test/quic_multistream_test.c
5664
OP_C_WRITE(c, "Strawberry", 10)
crypto/openssl/test/quic_multistream_test.c
5671
OP_S_BIND_STREAM_ID(c, C_BIDI_ID(2))
crypto/openssl/test/quic_multistream_test.c
585
ossl_crypto_condvar_wait(h->server_thread.c, h->server_thread.m);
crypto/openssl/test/quic_multistream_test.c
681
ossl_crypto_condvar_free(&h->server_thread.c);
crypto/openssl/test/quic_multistream_test.c
839
if (!TEST_ptr(h->server_thread.c = ossl_crypto_condvar_new()))
crypto/openssl/test/quic_tserver_test.c
294
unsigned char c;
crypto/openssl/test/quic_tserver_test.c
296
ret = SSL_read_ex(c_ssl, &c, sizeof(c), &l);
crypto/openssl/test/quic_wire_test.c
1285
const struct encode_test_case *c = &encode_cases[idx];
crypto/openssl/test/quic_wire_test.c
1296
if (!TEST_int_eq(c->serializer(&wpkt), 1))
crypto/openssl/test/quic_wire_test.c
1302
if (!TEST_mem_eq(buf->data, written, c->expect_buf, c->expect_buf_len))
crypto/openssl/test/quic_wire_test.c
1308
if (!TEST_int_eq(c->deserializer(&pkt, -1), 1))
crypto/openssl/test/quic_wire_test.c
1314
for (i = 0; i < c->expect_buf_len; ++i) {
crypto/openssl/test/quic_wire_test.c
1324
if (!TEST_int_eq(PACKET_buf_init(&pkt2, (unsigned char *)c->expect_buf, i), 1))
crypto/openssl/test/quic_wire_test.c
1327
if (!TEST_int_eq(c->deserializer(&pkt2, i), 1))
crypto/openssl/test/quic_wire_test.c
1485
const struct ack_test_case *c = &ack_cases[idx];
crypto/openssl/test/quic_wire_test.c
1488
(unsigned char *)c->input_buf,
crypto/openssl/test/quic_wire_test.c
1489
c->input_buf_len),
crypto/openssl/test/quic_wire_test.c
1493
r = c->deserializer(&pkt);
crypto/openssl/test/quic_wire_test.c
1494
if (c->expect_fail) {
crypto/openssl/test/radix/quic_bindings.c
693
#define REQUIRE_SSL_3(a, b, c) \
crypto/openssl/test/radix/quic_bindings.c
697
REQUIRE_SSL_N(2, (c)); \
crypto/openssl/test/radix/quic_bindings.c
700
#define REQUIRE_SSL_4(a, b, c, d) \
crypto/openssl/test/radix/quic_bindings.c
704
REQUIRE_SSL_N(2, (c)); \
crypto/openssl/test/radix/quic_bindings.c
708
#define REQUIRE_SSL_5(a, b, c, d, e) \
crypto/openssl/test/radix/quic_bindings.c
712
REQUIRE_SSL_N(2, (c)); \
crypto/openssl/test/rc4test.c
104
SHA_CTX c;
crypto/openssl/test/rc4test.c
114
SHA1_Init(&c);
crypto/openssl/test/rc4test.c
117
SHA1_Update(&c, buf, sizeof(buf));
crypto/openssl/test/rc4test.c
119
SHA1_Final(md, &c);
crypto/openssl/test/rsa_test.c
126
static int key3(RSA *key, unsigned char *c)
crypto/openssl/test/rsa_test.c
44
if (c != NULL) \
crypto/openssl/test/rsa_test.c
45
memcpy(c, ctext_ex, sizeof(ctext_ex) - 1); \
crypto/openssl/test/rsa_test.c
48
static int key1(RSA *key, unsigned char *c)
crypto/openssl/test/rsa_test.c
89
static int key2(RSA *key, unsigned char *c)
crypto/openssl/test/safe_math_test.c
296
int a, b, c;
crypto/openssl/test/safe_math_test.c
321
const int c = test_muldiv_ints[n].c;
crypto/openssl/test/safe_math_test.c
323
r = safe_muldiv_int(a, b, c, &err);
crypto/openssl/test/safe_math_test.c
324
if (c != 0)
crypto/openssl/test/safe_math_test.c
325
real = (int)((int64_t)a * (int64_t)b / (int64_t)c);
crypto/openssl/test/safe_math_test.c
328
TEST_info("%d * %d / %d r = %d err = %d", a, b, c, r, err);
crypto/openssl/test/safe_math_test.c
335
unsigned int a, b, c;
crypto/openssl/test/safe_math_test.c
353
const unsigned int c = test_muldiv_uints[n].c;
crypto/openssl/test/safe_math_test.c
355
r = safe_muldiv_uint(a, b, c, &err);
crypto/openssl/test/safe_math_test.c
356
if (c != 0)
crypto/openssl/test/safe_math_test.c
357
real = (unsigned int)((uint64_t)a * (uint64_t)b / (uint64_t)c);
crypto/openssl/test/safe_math_test.c
360
TEST_info("%u * %u / %u r = %u err = %d", a, b, c, r, err);
crypto/openssl/test/ssl_old_test.c
1337
const SSL_COMP *c = sk_SSL_COMP_value(ssl_comp_methods, j);
crypto/openssl/test/ssl_old_test.c
1338
printf(" %s:%d", SSL_COMP_get0_name(c), SSL_COMP_get_id(c));
crypto/openssl/test/ssl_old_test.c
2909
X509 *c = X509_STORE_CTX_get0_cert(ctx);
crypto/openssl/test/ssl_old_test.c
2914
(void *)ctx, (void *)c);
crypto/openssl/test/ssl_old_test.c
2915
if (c)
crypto/openssl/test/ssl_old_test.c
2916
s = X509_NAME_oneline(X509_get_subject_name(c), buf, 256);
crypto/openssl/test/sslapitest.c
2735
unsigned char c, buf[1];
crypto/openssl/test/sslapitest.c
2769
c = '1';
crypto/openssl/test/sslapitest.c
2770
if (!TEST_true(SSL_write_ex(serverssl, &c, 1, &nbytes))
crypto/openssl/test/sslapitest.c
2776
|| !TEST_int_eq(c, buf[0])
crypto/openssl/test/sslapitest.c
2781
c = '2';
crypto/openssl/test/sslapitest.c
2784
|| !TEST_true(SSL_write_ex(serverssl, &c, sizeof(c), &nbytes))
crypto/openssl/test/sslapitest.c
2785
|| !TEST_size_t_eq(sizeof(c), nbytes)
crypto/openssl/test/sslapitest.c
2790
|| !TEST_int_eq(c, buf[0]))
crypto/openssl/test/sslapitest.c
2794
c = '3';
crypto/openssl/test/sslapitest.c
2798
|| !TEST_true(SSL_write_ex(serverssl, &c, 0, &nbytes))
crypto/openssl/test/sslapitest.c
2806
c = '4';
crypto/openssl/test/sslapitest.c
2820
c = '5';
crypto/openssl/test/sslapitest.c
2829
if (!TEST_false(SSL_write_ex(serverssl, &c, 1, &nbytes))
crypto/openssl/test/sslapitest.c
2847
if (!TEST_true(SSL_write_ex(serverssl, &c, 1, &nbytes))
crypto/openssl/test/sslapitest.c
2853
|| !TEST_int_eq(c, buf[0])
crypto/openssl/test/sslapitest.c
2861
c = '6';
crypto/openssl/test/sslapitest.c
2862
if (!TEST_true(SSL_write_ex(serverssl, &c, 1, &nbytes))
crypto/openssl/test/sslapitest.c
2868
|| !TEST_int_eq(c, buf[0])
crypto/openssl/test/stack_test.c
288
v[i]->c = 'A' + i;
crypto/openssl/test/stack_test.c
31
char c;
crypto/openssl/test/stack_test.c
316
if (!TEST_char_eq(p->c, v[i]->c)) {
crypto/openssl/test/stack_test.c
359
v[i].c = 'A' + i;
crypto/openssl/test/stack_test.c
36
char c;
crypto/openssl/test/test_test.c
314
BIGNUM *a = NULL, *b = NULL, *c = NULL;
crypto/openssl/test/test_test.c
330
|| !TEST(1, TEST_BN_eq(b, c))
crypto/openssl/test/test_test.c
332
|| !TEST(0, TEST_BN_ne(NULL, c))
crypto/openssl/test/test_test.c
346
|| !TEST(1, TEST_int_eq(BN_dec2bn(&c, "-334739439"), 10))
crypto/openssl/test/test_test.c
347
|| !TEST(0, TEST_BN_eq_word(c, 334739439))
crypto/openssl/test/test_test.c
348
|| !TEST(1, TEST_BN_abs_eq_word(c, 334739439))
crypto/openssl/test/test_test.c
349
|| !TEST(0, TEST_BN_eq_zero(c))
crypto/openssl/test/test_test.c
350
|| !TEST(1, TEST_BN_ne_zero(c))
crypto/openssl/test/test_test.c
351
|| !TEST(1, TEST_BN_le_zero(c))
crypto/openssl/test/test_test.c
352
|| !TEST(1, TEST_BN_lt_zero(c))
crypto/openssl/test/test_test.c
353
|| !TEST(0, TEST_BN_ge_zero(c))
crypto/openssl/test/test_test.c
354
|| !TEST(0, TEST_BN_gt_zero(c))
crypto/openssl/test/test_test.c
355
|| !TEST(0, TEST_BN_even(c))
crypto/openssl/test/test_test.c
356
|| !TEST(1, TEST_BN_odd(c))
crypto/openssl/test/test_test.c
361
|| !TEST(0, TEST_BN_lt(a, c))
crypto/openssl/test/test_test.c
362
|| !TEST(1, TEST_BN_lt(c, b))
crypto/openssl/test/test_test.c
363
|| !TEST(0, TEST_BN_lt(b, c))
crypto/openssl/test/test_test.c
364
|| !TEST(0, TEST_BN_le(a, c))
crypto/openssl/test/test_test.c
365
|| !TEST(1, TEST_BN_le(c, b))
crypto/openssl/test/test_test.c
366
|| !TEST(0, TEST_BN_le(b, c))
crypto/openssl/test/test_test.c
367
|| !TEST(1, TEST_BN_gt(a, c))
crypto/openssl/test/test_test.c
368
|| !TEST(0, TEST_BN_gt(c, b))
crypto/openssl/test/test_test.c
369
|| !TEST(1, TEST_BN_gt(b, c))
crypto/openssl/test/test_test.c
370
|| !TEST(1, TEST_BN_ge(a, c))
crypto/openssl/test/test_test.c
371
|| !TEST(0, TEST_BN_ge(c, b))
crypto/openssl/test/test_test.c
372
|| !TEST(1, TEST_BN_ge(b, c)))
crypto/openssl/test/test_test.c
379
BN_free(c);
crypto/openssl/test/test_test.c
404
BIGNUM *a = NULL, *b = NULL, *c = NULL, *d = NULL;
crypto/openssl/test/test_test.c
426
&& TEST_true(BN_hex2bn(&c, cs))
crypto/openssl/test/test_test.c
433
& TEST(0, TEST_BN_eq(c, d)));
crypto/openssl/test/test_test.c
436
BN_free(c);
crypto/openssl/test/test_test.c
452
char c = 'd';
crypto/openssl/test/test_test.c
471
&& TEST_char_eq(++c, 'e')
crypto/openssl/test/test_test.c
472
&& TEST_char_eq('e', c--)
crypto/openssl/test/test_test.c
473
&& TEST_char_ne('d', --c)
crypto/openssl/test/test_test.c
474
&& TEST_char_le('b', --c)
crypto/openssl/test/test_test.c
475
&& TEST_char_lt(c++, 'c')
crypto/openssl/test/testutil/format_output.c
155
const unsigned char c = *m++;
crypto/openssl/test/testutil/format_output.c
157
*b++ = "0123456789abcdef"[c >> 4];
crypto/openssl/test/testutil/format_output.c
158
*b++ = "0123456789abcdef"[c & 15];
crypto/openssl/test/testutil/format_output.c
30
static void test_string_null_empty(const char *m, char c)
crypto/openssl/test/testutil/format_output.c
33
test_printf_stderr("%4s %c NULL\n", "", c);
crypto/openssl/test/testutil/format_output.c
35
test_printf_stderr("%4u:%c ''\n", 0u, c);
crypto/openssl/test/testutil/format_output.c
412
static void test_memory_null_empty(const unsigned char *m, char c)
crypto/openssl/test/testutil/format_output.c
415
test_printf_stderr("%4s %c%s\n", "", c, "NULL");
crypto/openssl/test/testutil/format_output.c
417
test_printf_stderr("%04x %c%s\n", 0u, c, "empty");
crypto/openssl/test/x509_check_cert_pkey_test.c
172
if (!TEST_ptr(c = test_get_argument(0))
crypto/openssl/test/x509_check_cert_pkey_test.c
23
static const char *c;
crypto/openssl/test/x509_check_cert_pkey_test.c
68
if (!TEST_ptr(bio = BIO_new_file(c, "r")))
crypto/openssl/test/x509aux.c
158
if (c > 0) {
crypto/openssl/test/x509aux.c
23
int c;
crypto/openssl/test/x509aux.c
36
for (c = 0; !err && PEM_read_bio(fp, &name, &header, &data, &len); ++c) {
include/ctype.h
114
#define _tolower(c) __sbtolower(c)
include/ctype.h
115
#define _toupper(c) __sbtoupper(c)
include/ctype.h
116
#define isascii(c) (((c) & ~0x7F) == 0)
include/ctype.h
117
#define toascii(c) ((c) & 0x7F)
include/ctype.h
121
#define isblank(c) __sbistype((c), _CTYPE_B)
include/ctype.h
125
#define digittoint(c) __sbmaskrune((c), 0xFF)
include/ctype.h
126
#define ishexnumber(c) __sbistype((c), _CTYPE_X)
include/ctype.h
127
#define isideogram(c) __sbistype((c), _CTYPE_I)
include/ctype.h
128
#define isnumber(c) __sbistype((c), _CTYPE_D|_CTYPE_N)
include/ctype.h
129
#define isphonogram(c) __sbistype((c), _CTYPE_Q)
include/ctype.h
130
#define isrune(c) __sbistype((c), 0xFFFFFF00L)
include/ctype.h
131
#define isspecial(c) __sbistype((c), _CTYPE_T)
include/ctype.h
87
#define isalnum(c) __sbistype((c), _CTYPE_A|_CTYPE_D|_CTYPE_N)
include/ctype.h
88
#define isalpha(c) __sbistype((c), _CTYPE_A)
include/ctype.h
89
#define iscntrl(c) __sbistype((c), _CTYPE_C)
include/ctype.h
90
#define isdigit(c) __sbistype((c), _CTYPE_D)
include/ctype.h
91
#define isgraph(c) __sbistype((c), _CTYPE_G)
include/ctype.h
92
#define islower(c) __sbistype((c), _CTYPE_L)
include/ctype.h
93
#define isprint(c) __sbistype((c), _CTYPE_R)
include/ctype.h
94
#define ispunct(c) __sbistype((c), _CTYPE_P)
include/ctype.h
95
#define isspace(c) __sbistype((c), _CTYPE_S)
include/ctype.h
96
#define isupper(c) __sbistype((c), _CTYPE_U)
include/ctype.h
97
#define isxdigit(c) __sbistype((c), _CTYPE_X)
include/ctype.h
98
#define tolower(c) __sbtolower(c)
include/ctype.h
99
#define toupper(c) __sbtoupper(c)
include/rpc/auth.h
156
char c[8];
include/rpc/auth.h
270
#define authsys_create(c,i1,i2,i3,ip) authunix_create((c),(i1),(i2),(i3),(ip))
include/ssp/wchar.h
103
return (__ssp_real(wmemset)(buf, c, len));
include/ssp/wchar.h
97
(wchar_t *buf, wchar_t c, size_t len))
include/stdio.h
483
#define __sputc(c, p) \
include/stdio.h
486
(*(p)->_p = (c)), *(p)->_p != '\n' ? \
include/stdio.h
489
__swbuf((int)(c), p) : \
include/stdio.h
490
(*(p)->_p = (c), (int)*(p)->_p++))
include/termios.h
53
#define CCEQ(val, c) ((c) == (val) && (val) != _POSIX_VDISABLE)
include/tgmath.h
135
__tg_impl_full(x, x, c##fn##l, c##fn, c##fn##f, fn##l, fn, fn##f, x)
include/tgmath.h
137
__tg_impl_full(x, y, c##fn##l, c##fn, c##fn##f, fn##l, fn, fn##f, x, y)
kerberos5/lib/libgssapi_krb5/gss_krb5.c
388
gss_krb5_free_lucid_sec_context(OM_uint32 *minor_status, void *c)
kerberos5/lib/libgssapi_krb5/gss_krb5.c
390
gss_krb5_lucid_context_v1_t *ctx = c;
kerberos5/lib/libgssapi_krb5/gss_krb5.c
470
gsskrb5_set_send_to_kdc(struct gsskrb5_send_to_kdc *c)
kerberos5/lib/libgssapi_krb5/gss_krb5.c
475
if (c) {
kerberos5/lib/libgssapi_krb5/gss_krb5.c
476
buffer.value = c;
kerberos5/lib/libgssapi_krb5/gss_krb5.c
477
buffer.length = sizeof(*c);
lib/clang/liblldb/LLDBWrapLua.cpp
2672
char c = (char)constants[i].lvalue;
lib/clang/liblldb/LLDBWrapLua.cpp
2673
lua_pushlstring(L,&c,1);
lib/clang/liblldb/LLDBWrapLua.cpp
442
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
lib/clang/liblldb/LLDBWrapLua.cpp
446
if (strcmp(iter->type->name, c) == 0) {
lib/clang/liblldb/LLDBWrapLua.cpp
652
SWIG_PackData(char *c, void *ptr, size_t sz) {
lib/clang/liblldb/LLDBWrapLua.cpp
658
*(c++) = hex[(uu & 0xf0) >> 4];
lib/clang/liblldb/LLDBWrapLua.cpp
659
*(c++) = hex[uu & 0xf];
lib/clang/liblldb/LLDBWrapLua.cpp
661
return c;
lib/clang/liblldb/LLDBWrapLua.cpp
668
SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
lib/clang/liblldb/LLDBWrapLua.cpp
672
char d = *(c++);
lib/clang/liblldb/LLDBWrapLua.cpp
680
d = *(c++);
lib/clang/liblldb/LLDBWrapLua.cpp
689
return c;
lib/clang/liblldb/LLDBWrapLua.cpp
707
SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
lib/clang/liblldb/LLDBWrapLua.cpp
708
if (*c != '_') {
lib/clang/liblldb/LLDBWrapLua.cpp
709
if (strcmp(c,"NULL") == 0) {
lib/clang/liblldb/LLDBWrapLua.cpp
716
return SWIG_UnpackData(++c,ptr,sizeof(void *));
lib/clang/liblldb/LLDBWrapLua.cpp
735
SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
lib/clang/liblldb/LLDBWrapLua.cpp
736
if (*c != '_') {
lib/clang/liblldb/LLDBWrapLua.cpp
737
if (strcmp(c,"NULL") == 0) {
lib/clang/liblldb/LLDBWrapLua.cpp
744
return SWIG_UnpackData(++c,ptr,sz);
lib/geom/mirror/geom_mirror.c
469
#define CSZ(c) ((c)->lg_provider->lg_mediasize - \
lib/geom/mirror/geom_mirror.c
470
(c)->lg_provider->lg_sectorsize)
lib/libc/db/btree/bt_delete.c
102
status = __bt_dleaf(t, NULL, h, c->pg.index);
lib/libc/db/btree/bt_delete.c
135
__bt_stkacq(BTREE *t, PAGE **hp, CURSOR *c)
lib/libc/db/btree/bt_delete.c
152
if ((e = __bt_search(t, &c->key, &exact)) == NULL)
lib/libc/db/btree/bt_delete.c
157
if (h->pgno == c->pg.pgno)
lib/libc/db/btree/bt_delete.c
166
while (h->pgno != c->pg.pgno) {
lib/libc/db/btree/bt_delete.c
206
if (h->pgno == c->pg.pgno)
lib/libc/db/btree/bt_delete.c
211
if ((e = __bt_search(t, &c->key, &exact)) == NULL)
lib/libc/db/btree/bt_delete.c
221
while (h->pgno != c->pg.pgno) {
lib/libc/db/btree/bt_delete.c
264
return ((*hp = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL);
lib/libc/db/btree/bt_delete.c
521
CURSOR *c;
lib/libc/db/btree/bt_delete.c
530
c = &t->bt_cursor;
lib/libc/db/btree/bt_delete.c
531
F_CLR(c, CURS_AFTER | CURS_BEFORE | CURS_ACQUIRE);
lib/libc/db/btree/bt_delete.c
544
&c->key, &c->key, NULL, NULL, 1)) != RET_SUCCESS)
lib/libc/db/btree/bt_delete.c
547
key = &c->key;
lib/libc/db/btree/bt_delete.c
554
F_SET(c, CURS_BEFORE);
lib/libc/db/btree/bt_delete.c
563
F_SET(c, CURS_AFTER);
lib/libc/db/btree/bt_delete.c
574
F_SET(c, CURS_BEFORE);
lib/libc/db/btree/bt_delete.c
586
F_SET(c, CURS_AFTER);
lib/libc/db/btree/bt_delete.c
588
dup2: c->pg.pgno = e.page->pgno;
lib/libc/db/btree/bt_delete.c
589
c->pg.index = e.index;
lib/libc/db/btree/bt_delete.c
598
__bt_ret(t, &e, &c->key, &c->key, NULL, NULL, 1)) == RET_SUCCESS) {
lib/libc/db/btree/bt_delete.c
599
F_SET(c, CURS_ACQUIRE);
lib/libc/db/btree/bt_delete.c
60
CURSOR *c;
lib/libc/db/btree/bt_delete.c
87
c = &t->bt_cursor;
lib/libc/db/btree/bt_delete.c
88
if (F_ISSET(c, CURS_INIT)) {
lib/libc/db/btree/bt_delete.c
89
if (F_ISSET(c, CURS_ACQUIRE | CURS_AFTER | CURS_BEFORE))
lib/libc/db/btree/bt_delete.c
91
if ((h = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL)
lib/libc/db/btree/bt_seq.c
229
CURSOR *c;
lib/libc/db/btree/bt_seq.c
239
c = &t->bt_cursor;
lib/libc/db/btree/bt_seq.c
249
if (F_ISSET(c, CURS_ACQUIRE))
lib/libc/db/btree/bt_seq.c
250
return (__bt_first(t, &c->key, ep, &exact));
lib/libc/db/btree/bt_seq.c
253
if ((h = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL)
lib/libc/db/btree/bt_seq.c
267
if (F_ISSET(c, CURS_AFTER))
lib/libc/db/btree/bt_seq.c
269
idx = c->pg.index;
lib/libc/db/btree/bt_seq.c
286
if (F_ISSET(c, CURS_BEFORE)) {
lib/libc/db/btree/bt_seq.c
287
usecurrent: F_CLR(c, CURS_AFTER | CURS_BEFORE);
lib/libc/db/btree/bt_seq.c
289
ep->index = c->pg.index;
lib/libc/db/btree/bt_seq.c
292
idx = c->pg.index;
lib/libc/db/btree/bt_split.c
594
CURSOR *c;
lib/libc/db/btree/bt_split.c
685
c = &t->bt_cursor;
lib/libc/db/btree/bt_split.c
686
if (F_ISSET(c, CURS_INIT) && c->pg.pgno == h->pgno) {
lib/libc/db/btree/bt_split.c
687
if (c->pg.index >= skip)
lib/libc/db/btree/bt_split.c
688
++c->pg.index;
lib/libc/db/btree/bt_split.c
689
if (c->pg.index < nxt) /* Left page. */
lib/libc/db/btree/bt_split.c
690
c->pg.pgno = l->pgno;
lib/libc/db/btree/bt_split.c
692
c->pg.pgno = r->pgno;
lib/libc/db/btree/bt_split.c
693
c->pg.index -= nxt;
lib/libc/db/test/btree.tests/main.c
117
int c;
lib/libc/db/test/btree.tests/main.c
132
while ((c = getopt(argc, argv, "bc:di:lp:ru")) != -1) {
lib/libc/db/test/btree.tests/main.c
133
switch (c) {
lib/libc/db/test/btree.tests/main.c
249
char *c;
lib/libc/db/test/btree.tests/main.c
251
c = lbuf;
lib/libc/db/test/btree.tests/main.c
252
while (isspace(*c))
lib/libc/db/test/btree.tests/main.c
253
c++;
lib/libc/db/test/btree.tests/main.c
254
while (*c != '\0' && argc < maxargc) {
lib/libc/db/test/btree.tests/main.c
255
*argv++ = c;
lib/libc/db/test/btree.tests/main.c
257
while (!isspace(*c) && *c != '\0') {
lib/libc/db/test/btree.tests/main.c
258
c++;
lib/libc/db/test/btree.tests/main.c
260
while (isspace(*c))
lib/libc/db/test/btree.tests/main.c
261
*c++ = '\0';
lib/libc/gen/fnmatch.c
125
c = *pattern;
lib/libc/gen/fnmatch.c
127
while (c == '*')
lib/libc/gen/fnmatch.c
128
c = *++pattern;
lib/libc/gen/fnmatch.c
136
if (c == EOS)
lib/libc/gen/fnmatch.c
143
else if (c == '/' && flags & FNM_PATHNAME) {
lib/libc/gen/fnmatch.c
240
wchar_t c, c2;
lib/libc/gen/fnmatch.c
272
c = 0;
lib/libc/gen/fnmatch.c
344
c = *buf;
lib/libc/gen/fnmatch.c
392
if (!c) {
lib/libc/gen/fnmatch.c
393
pclen = mbrtowc(&c, pattern, MB_LEN_MAX, patmbs);
lib/libc/gen/fnmatch.c
399
c = towlower(c);
lib/libc/gen/fnmatch.c
448
c <= test && test <= c2 :
lib/libc/gen/fnmatch.c
449
__wcollate_range_cmp(c, test) <= 0
lib/libc/gen/fnmatch.c
455
} else if (c == test) {
lib/libc/gen/fnmatch.c
481
pclen = mbrtowc(&c, pattern, MB_LEN_MAX, patmbs);
lib/libc/gen/fnmatch.c
90
char c;
lib/libc/gen/getcap.c
275
int c;
lib/libc/gen/getcap.c
315
c = *bp++;
lib/libc/gen/getcap.c
316
if (c == '\n') {
lib/libc/gen/getcap.c
323
*rp++ = c;
lib/libc/gen/getcwd.c
68
char *ept, c;
lib/libc/gen/getcwd.c
97
c = *bpt;
lib/libc/gen/getcwd.c
99
*ept-- = c;
lib/libc/gen/getttyent.c
123
int c;
lib/libc/gen/getttyent.c
201
while ((c = *++p) == ' ' || c == '\t')
lib/libc/gen/getttyent.c
221
int c, q;
lib/libc/gen/getttyent.c
223
for (q = 0, t = p; (c = *p) != '\0'; p++) {
lib/libc/gen/getttyent.c
224
if (c == '"') {
lib/libc/gen/getttyent.c
233
if (c == '#') {
lib/libc/gen/getttyent.c
234
zapchar = c;
lib/libc/gen/getttyent.c
238
if (c == '\t' || c == ' ' || c == '\n') {
lib/libc/gen/getttyent.c
239
zapchar = c;
lib/libc/gen/getttyent.c
241
while ((c = *p) == '\t' || c == ' ' || c == '\n')
lib/libc/gen/glob-compat11.c
102
#define CHAR(c) ((Char)((c)&M_CHAR))
lib/libc/gen/glob-compat11.c
103
#define META(c) ((Char)((c)|M_QUOTE))
lib/libc/gen/glob-compat11.c
104
#define UNPROT(c) ((c) & ~M_PROTECT)
lib/libc/gen/glob-compat11.c
111
#define ismeta(c) (((c)&M_QUOTE) != 0)
lib/libc/gen/glob-compat11.c
113
#define isprot(c) (((c)&M_PROTECT) != 0)
lib/libc/gen/glob-compat11.c
500
Char *bufnext, c, patbuf[MAXPATHLEN];
lib/libc/gen/glob-compat11.c
511
while ((c = *qpatnext++) != EOS) {
lib/libc/gen/glob-compat11.c
512
switch (c) {
lib/libc/gen/glob-compat11.c
514
c = *qpatnext;
lib/libc/gen/glob-compat11.c
515
if (c == NOT)
lib/libc/gen/glob-compat11.c
520
if (c == NOT)
lib/libc/gen/glob-compat11.c
525
if (c == NOT)
lib/libc/gen/glob-compat11.c
527
c = *qpatnext++;
lib/libc/gen/glob-compat11.c
529
*bufnext++ = CHAR(c);
lib/libc/gen/glob-compat11.c
531
(c = qpatnext[1]) != RBRACKET) {
lib/libc/gen/glob-compat11.c
533
*bufnext++ = CHAR(c);
lib/libc/gen/glob-compat11.c
536
} while ((c = *qpatnext++) != RBRACKET);
lib/libc/gen/glob-compat11.c
553
*bufnext++ = CHAR(c);
lib/libc/gen/glob-compat11.c
876
Char c, k, *nextp, *nextn;
lib/libc/gen/glob-compat11.c
885
c = *pat++;
lib/libc/gen/glob-compat11.c
886
switch (c & M_MASK) {
lib/libc/gen/glob-compat11.c
906
while (((c = *pat++) & M_MASK) != M_END)
lib/libc/gen/glob-compat11.c
909
CHAR(c) <= CHAR(k) &&
lib/libc/gen/glob-compat11.c
911
__wcollate_range_cmp(CHAR(c),
lib/libc/gen/glob-compat11.c
917
} else if (c == k)
lib/libc/gen/glob-compat11.c
923
if (*name++ != c)
lib/libc/gen/glob.c
137
#define CHAR(c) ((Char)((c)&M_CHAR))
lib/libc/gen/glob.c
138
#define META(c) ((Char)((c)|M_QUOTE))
lib/libc/gen/glob.c
139
#define UNPROT(c) ((c) & ~M_PROTECT)
lib/libc/gen/glob.c
146
#define ismeta(c) (((c)&M_QUOTE) != 0)
lib/libc/gen/glob.c
148
#define isprot(c) (((c)&M_PROTECT) != 0)
lib/libc/gen/glob.c
562
Char *bufnext, c, patbuf[MAXPATHLEN];
lib/libc/gen/glob.c
573
while ((c = *qpatnext++) != EOS) {
lib/libc/gen/glob.c
574
switch (c) {
lib/libc/gen/glob.c
576
c = *qpatnext;
lib/libc/gen/glob.c
577
if (c == NOT)
lib/libc/gen/glob.c
582
if (c == NOT)
lib/libc/gen/glob.c
587
if (c == NOT)
lib/libc/gen/glob.c
589
c = *qpatnext++;
lib/libc/gen/glob.c
591
*bufnext++ = CHAR(c);
lib/libc/gen/glob.c
593
(c = qpatnext[1]) != RBRACKET) {
lib/libc/gen/glob.c
595
*bufnext++ = CHAR(c);
lib/libc/gen/glob.c
598
} while ((c = *qpatnext++) != RBRACKET);
lib/libc/gen/glob.c
616
*bufnext++ = CHAR(c);
lib/libc/gen/glob.c
938
Char c, k, *nextp, *nextn;
lib/libc/gen/glob.c
947
c = *pat++;
lib/libc/gen/glob.c
948
switch (c & M_MASK) {
lib/libc/gen/glob.c
968
while (((c = *pat++) & M_MASK) != M_END)
lib/libc/gen/glob.c
971
CHAR(c) <= CHAR(k) &&
lib/libc/gen/glob.c
973
__wcollate_range_cmp(CHAR(c),
lib/libc/gen/glob.c
979
} else if (c == k)
lib/libc/gen/glob.c
985
if (*name++ != c)
lib/libc/gen/psignal.c
45
const char *c;
lib/libc/gen/psignal.c
48
c = sys_siglist[sig];
lib/libc/gen/psignal.c
50
c = "Unknown signal";
lib/libc/gen/psignal.c
55
(void)_write(STDERR_FILENO, c, strlen(c));
lib/libc/gen/sched_setaffinity.c
43
cpuset_t c;
lib/libc/gen/sched_setaffinity.c
56
memset(&c, 0, sizeof(c));
lib/libc/gen/sched_setaffinity.c
57
memcpy(&c, cpuset, sz);
lib/libc/gen/sched_setaffinity.c
67
lbs = CPU_FLS(&c) - 1;
lib/libc/gen/sched_setaffinity.c
69
CPU_FOREACH_ISSET(cpu, &c)
lib/libc/gen/sched_setaffinity.c
71
CPU_CLR(cpu, &c);
lib/libc/gen/sched_setaffinity.c
74
pid == 0 ? -1 : pid, sizeof(cpuset_t), &c);
lib/libc/gen/setmode.c
150
#define ADDCMD(a, b, c, d) \
lib/libc/gen/setmode.c
161
set = addcmd(set, (mode_t)(a), (mode_t)(b), (mode_t)(c), (d))
lib/libc/gen/termios.c
253
u_char c;
lib/libc/gen/termios.c
264
c = term.c_cc[action == TCIOFF ? VSTOP : VSTART];
lib/libc/gen/termios.c
265
if (c != _POSIX_VDISABLE && _write(fd, &c, sizeof(c)) == -1)
lib/libc/gen/times.c
48
clock_t c;
lib/libc/gen/times.c
60
c = t.tv_sec * CLK_TCK + t.tv_nsec / (1000000000 / CLK_TCK);
lib/libc/gen/times.c
61
return (c);
lib/libc/gen/unvis-compat.c
40
__unvis_44bsd(char *cp, int c, int *astate, int flag)
lib/libc/gen/unvis-compat.c
45
return unvis(cp, c, astate, flag);
lib/libc/gen/wordexp.c
309
char c;
lib/libc/gen/wordexp.c
319
while ((c = *words++) != '\0') {
lib/libc/gen/wordexp.c
320
switch (c) {
lib/libc/iconv/__iconv.c
34
__iconv(iconv_t a, char **b, size_t *c, char **d,
lib/libc/iconv/__iconv.c
37
return __bsd___iconv(a, b, c, d, e, f, g);
lib/libc/iconv/__iconv_get_list.c
34
__iconv_get_list(char ***a, size_t *b, __iconv_bool c)
lib/libc/iconv/__iconv_get_list.c
36
return __bsd___iconv_get_list(a, b, c);
lib/libc/iconv/_strtol.h
102
base = (c == '0' ? 8 : 10);
lib/libc/iconv/_strtol.h
131
for (acc = 0, any = 0;; c = *s++) {
lib/libc/iconv/_strtol.h
132
if (isdigit(c))
lib/libc/iconv/_strtol.h
133
i = c - '0';
lib/libc/iconv/_strtol.h
134
else if (isalpha(c))
lib/libc/iconv/_strtol.h
135
i = c - (isupper(c) ? 'A' - 10 : 'a' - 10);
lib/libc/iconv/_strtol.h
52
unsigned char c;
lib/libc/iconv/_strtol.h
75
c = *s++;
lib/libc/iconv/_strtol.h
76
} while (isspace(c));
lib/libc/iconv/_strtol.h
77
if (c == '-') {
lib/libc/iconv/_strtol.h
79
c = *s++;
lib/libc/iconv/_strtol.h
82
if (c == '+')
lib/libc/iconv/_strtol.h
83
c = *s++;
lib/libc/iconv/_strtol.h
86
c == '0' && (*s == 'x' || *s == 'X') &&
lib/libc/iconv/_strtol.h
90
c = s[1];
lib/libc/iconv/_strtol.h
95
c == '0' && (*s == 'b' || *s == 'B') &&
lib/libc/iconv/_strtol.h
97
c = s[1];
lib/libc/iconv/_strtoul.h
105
for (acc = 0, any = 0;; c = *s++) {
lib/libc/iconv/_strtoul.h
106
if (isdigit(c))
lib/libc/iconv/_strtoul.h
107
i = c - '0';
lib/libc/iconv/_strtoul.h
108
else if (isalpha(c))
lib/libc/iconv/_strtoul.h
109
i = c - (isupper(c) ? 'A' - 10 : 'a' - 10);
lib/libc/iconv/_strtoul.h
51
unsigned char c;
lib/libc/iconv/_strtoul.h
71
c = *s++;
lib/libc/iconv/_strtoul.h
72
} while (isspace(c));
lib/libc/iconv/_strtoul.h
73
if (c == '-') {
lib/libc/iconv/_strtoul.h
75
c = *s++;
lib/libc/iconv/_strtoul.h
78
if (c == '+')
lib/libc/iconv/_strtoul.h
79
c = *s++;
lib/libc/iconv/_strtoul.h
82
c == '0' && (*s == 'x' || *s == 'X') &&
lib/libc/iconv/_strtoul.h
86
c = s[1];
lib/libc/iconv/_strtoul.h
91
c == '0' && (*s == 'b' || *s == 'B') &&
lib/libc/iconv/_strtoul.h
93
c = s[1];
lib/libc/iconv/_strtoul.h
98
base = (c == '0' ? 8 : 10);
lib/libc/iconv/citrus_bcs.h
45
static __inline int _citrus_bcs_##_name_(uint8_t c) { return (_cond_); }
lib/libc/iconv/citrus_bcs.h
51
_CITRUS_BCS_PRED(isblank, c == ' ' || c == '\t')
lib/libc/iconv/citrus_bcs.h
52
_CITRUS_BCS_PRED(iseol, c == '\n' || c == '\r')
lib/libc/iconv/citrus_bcs.h
53
_CITRUS_BCS_PRED(isspace, _citrus_bcs_isblank(c) || _citrus_bcs_iseol(c) ||
lib/libc/iconv/citrus_bcs.h
54
c == '\f' || c == '\v')
lib/libc/iconv/citrus_bcs.h
55
_CITRUS_BCS_PRED(isdigit, c >= '0' && c <= '9')
lib/libc/iconv/citrus_bcs.h
56
_CITRUS_BCS_PRED(isupper, c >= 'A' && c <= 'Z')
lib/libc/iconv/citrus_bcs.h
57
_CITRUS_BCS_PRED(islower, c >= 'a' && c <= 'z')
lib/libc/iconv/citrus_bcs.h
58
_CITRUS_BCS_PRED(isalpha, _citrus_bcs_isupper(c) || _citrus_bcs_islower(c))
lib/libc/iconv/citrus_bcs.h
59
_CITRUS_BCS_PRED(isalnum, _citrus_bcs_isdigit(c) || _citrus_bcs_isalpha(c))
lib/libc/iconv/citrus_bcs.h
60
_CITRUS_BCS_PRED(isxdigit, _citrus_bcs_isdigit(c) ||
lib/libc/iconv/citrus_bcs.h
61
(c >= 'A' && c <= 'F') || (c >= 'a' && c <= 'f'))
lib/libc/iconv/citrus_bcs.h
68
_citrus_bcs_toupper(uint8_t c)
lib/libc/iconv/citrus_bcs.h
71
return (_citrus_bcs_islower(c) ? (c - 'a' + 'A') : c);
lib/libc/iconv/citrus_bcs.h
75
_citrus_bcs_tolower(uint8_t c)
lib/libc/iconv/citrus_bcs.h
78
return (_citrus_bcs_isupper(c) ? (c - 'A' + 'a') : c);
lib/libc/iconv/citrus_bcs_strtol.c
46
#define isspace(c) _bcs_isspace(c)
lib/libc/iconv/citrus_bcs_strtol.c
49
#define isdigit(c) _bcs_isdigit(c)
lib/libc/iconv/citrus_bcs_strtol.c
52
#define isalpha(c) _bcs_isalpha(c)
lib/libc/iconv/citrus_bcs_strtol.c
55
#define isupper(c) _bcs_isupper(c)
lib/libc/iconv/citrus_bcs_strtoul.c
46
#define isspace(c) _bcs_isspace(c)
lib/libc/iconv/citrus_bcs_strtoul.c
49
#define isdigit(c) _bcs_isdigit(c)
lib/libc/iconv/citrus_bcs_strtoul.c
52
#define isalpha(c) _bcs_isalpha(c)
lib/libc/iconv/citrus_bcs_strtoul.c
55
#define isupper(c) _bcs_isupper(c)
lib/libc/iconv/iconv.c
35
size_t * __restrict c, char ** __restrict d,
lib/libc/iconv/iconv.c
38
return __bsd_iconv(a, b, c, d, e);
lib/libc/iconv/iconv_compat.c
40
__iconv_compat(iconv_t a, char ** b, size_t * c, char ** d,
lib/libc/iconv/iconv_compat.c
43
return __bsd___iconv(a, b, c, d, e, f, g);
lib/libc/iconv/iconv_compat.c
53
__iconv_get_list_compat(char ***a, size_t *b, __iconv_bool c)
lib/libc/iconv/iconv_compat.c
55
return __bsd___iconv_get_list(a, b, c);
lib/libc/iconv/iconv_compat.c
60
size_t * __restrict c, char ** __restrict d,
lib/libc/iconv/iconv_compat.c
63
return __bsd_iconv(a, b, c, d, e);
lib/libc/iconv/iconv_compat.c
85
iconv_open_into_compat(const char *a, const char *b, iconv_allocation_t *c)
lib/libc/iconv/iconv_compat.c
87
return __bsd_iconv_open_into(a, b, c);
lib/libc/iconv/iconv_compat.c
97
iconvctl_compat(iconv_t a, int b, void *c)
lib/libc/iconv/iconv_compat.c
99
return __bsd_iconvctl(a, b, c);
lib/libc/iconv/iconv_open_into.c
34
iconv_open_into(const char *a, const char *b, iconv_allocation_t *c)
lib/libc/iconv/iconv_open_into.c
36
return __bsd_iconv_open_into(a, b, c);
lib/libc/iconv/iconvctl.c
34
iconvctl(iconv_t a, int b, void *c)
lib/libc/iconv/iconvctl.c
36
return __bsd_iconvctl(a, b, c);
lib/libc/include/reentrant.h
104
#define cond_init(c, a, p) _pthread_cond_init(c, a)
lib/libc/include/reentrant.h
109
#define cond_wait(c, m) if (__isthreaded) \
lib/libc/include/reentrant.h
110
_pthread_cond_wait(c, m)
lib/libc/inet/inet_addr.c
104
char c;
lib/libc/inet/inet_addr.c
109
c = *cp;
lib/libc/inet/inet_addr.c
116
if (!isdigit((unsigned char)c))
lib/libc/inet/inet_addr.c
119
if (c == '0') {
lib/libc/inet/inet_addr.c
120
c = *++cp;
lib/libc/inet/inet_addr.c
121
if (c == 'x' || c == 'X')
lib/libc/inet/inet_addr.c
122
base = 16, c = *++cp;
lib/libc/inet/inet_addr.c
129
if (isascii(c) && isdigit((unsigned char)c)) {
lib/libc/inet/inet_addr.c
130
if (base == 8 && (c == '8' || c == '9'))
lib/libc/inet/inet_addr.c
132
val = (val * base) + (c - '0');
lib/libc/inet/inet_addr.c
133
c = *++cp;
lib/libc/inet/inet_addr.c
135
} else if (base == 16 && isascii(c) &&
lib/libc/inet/inet_addr.c
136
isxdigit((unsigned char)c)) {
lib/libc/inet/inet_addr.c
138
(c + 10 - (islower((unsigned char)c) ? 'a' : 'A'));
lib/libc/inet/inet_addr.c
139
c = *++cp;
lib/libc/inet/inet_addr.c
144
if (c == '.') {
lib/libc/inet/inet_addr.c
154
c = *++cp;
lib/libc/inet/inet_addr.c
161
if (c != '\0' && (!isascii(c) || !isspace((unsigned char)c)))
lib/libc/inet/inet_network.c
50
char c;
lib/libc/inet/inet_network.c
60
while ((c = *cp) != 0) {
lib/libc/inet/inet_network.c
61
if (isdigit((unsigned char)c)) {
lib/libc/inet/inet_network.c
62
if (base == 8U && (c == '8' || c == '9'))
lib/libc/inet/inet_network.c
64
val = (val * base) + (c - '0');
lib/libc/inet/inet_network.c
69
if (base == 16U && isxdigit((unsigned char)c)) {
lib/libc/inet/inet_network.c
71
(c + 10 - (islower((unsigned char)c) ? 'a' : 'A'));
lib/libc/inet/nsap_addr.c
36
xtob(int c) {
lib/libc/inet/nsap_addr.c
37
return (c - (((c >= '0') && (c <= '9')) ? '0' : '7'));
lib/libc/inet/nsap_addr.c
42
u_char c, nib;
lib/libc/inet/nsap_addr.c
49
while ((c = *ascii++) != '\0' && len < (u_int)maxlen) {
lib/libc/inet/nsap_addr.c
50
if (c == '.' || c == '+' || c == '/')
lib/libc/inet/nsap_addr.c
52
if (!isascii(c))
lib/libc/inet/nsap_addr.c
54
if (islower(c))
lib/libc/inet/nsap_addr.c
55
c = toupper(c);
lib/libc/inet/nsap_addr.c
56
if (isxdigit(c)) {
lib/libc/inet/nsap_addr.c
57
nib = xtob(c);
lib/libc/inet/nsap_addr.c
58
c = *ascii++;
lib/libc/inet/nsap_addr.c
59
if (c != '\0') {
lib/libc/inet/nsap_addr.c
60
c = toupper(c);
lib/libc/inet/nsap_addr.c
61
if (isxdigit(c)) {
lib/libc/inet/nsap_addr.c
62
*binary++ = (nib << 4) | xtob(c);
lib/libc/locale/big5.c
90
_big5_check(u_int c)
lib/libc/locale/big5.c
93
c &= 0xff;
lib/libc/locale/big5.c
94
return ((c >= 0xa1 && c <= 0xfe) ? 2 : 1);
lib/libc/locale/btowc.c
39
btowc_l(int c, locale_t l)
lib/libc/locale/btowc.c
47
if (c == EOF)
lib/libc/locale/btowc.c
54
cc = (char)c;
lib/libc/locale/btowc.c
60
btowc(int c)
lib/libc/locale/btowc.c
62
return btowc_l(c, __get_locale());
lib/libc/locale/cXXrtomb_iconv.h
108
cXXrtomb(char * __restrict s, charXX_t c, mbstate_t * __restrict ps)
lib/libc/locale/cXXrtomb_iconv.h
111
return (cXXrtomb_l(s, c, ps, __get_locale()));
lib/libc/locale/cXXrtomb_iconv.h
54
cXXrtomb_l(char * __restrict s, charXX_t c, mbstate_t * __restrict ps,
lib/libc/locale/cXXrtomb_iconv.h
84
cs->srcbuf.widechar[cs->srcbuf_len++] = c;
lib/libc/locale/collate.c
457
wchar_t *bp, *fp, c;
lib/libc/locale/collate.c
466
c = *bp;
lib/libc/locale/collate.c
468
*fp-- = c;
lib/libc/locale/collate.c
604
wchar_t *bp, *fp, c;
lib/libc/locale/collate.c
613
c = *bp;
lib/libc/locale/collate.c
615
*fp-- = c;
lib/libc/locale/gb18030.c
180
int c;
lib/libc/locale/gb18030.c
197
c = (wc >> 24) & 0xff;
lib/libc/locale/gb18030.c
198
if (c < 0x81 || c > 0xfe)
lib/libc/locale/gb18030.c
200
*s++ = c;
lib/libc/locale/gb18030.c
201
c = (wc >> 16) & 0xff;
lib/libc/locale/gb18030.c
202
if (c < 0x30 || c > 0x39)
lib/libc/locale/gb18030.c
204
*s++ = c;
lib/libc/locale/gb18030.c
205
c = (wc >> 8) & 0xff;
lib/libc/locale/gb18030.c
206
if (c < 0x81 || c > 0xfe)
lib/libc/locale/gb18030.c
208
*s++ = c;
lib/libc/locale/gb18030.c
209
c = wc & 0xff;
lib/libc/locale/gb18030.c
210
if (c < 0x30 || c > 0x39)
lib/libc/locale/gb18030.c
212
*s++ = c;
lib/libc/locale/gb18030.c
217
c = (wc >> 8) & 0xff;
lib/libc/locale/gb18030.c
218
if (c < 0x81 || c > 0xfe)
lib/libc/locale/gb18030.c
220
*s++ = c;
lib/libc/locale/gb18030.c
221
c = wc & 0xff;
lib/libc/locale/gb18030.c
222
if (c < 0x40 || c == 0x7f || c == 0xff)
lib/libc/locale/gb18030.c
224
*s++ = c;
lib/libc/locale/gbk.c
92
_gbk_check(u_int c)
lib/libc/locale/gbk.c
95
c &= 0xff;
lib/libc/locale/gbk.c
96
return ((c >= 0x81 && c <= 0xfe) ? 2 : 1);
lib/libc/locale/isctype.c
100
ishexnumber(int c)
lib/libc/locale/isctype.c
102
return (__sbistype(c, _CTYPE_X));
lib/libc/locale/isctype.c
107
isideogram(int c)
lib/libc/locale/isctype.c
109
return (__sbistype(c, _CTYPE_I));
lib/libc/locale/isctype.c
114
islower(int c)
lib/libc/locale/isctype.c
116
return (__sbistype(c, _CTYPE_L));
lib/libc/locale/isctype.c
121
isnumber(int c)
lib/libc/locale/isctype.c
123
return (__sbistype(c, _CTYPE_N));
lib/libc/locale/isctype.c
128
isphonogram(int c)
lib/libc/locale/isctype.c
130
return (__sbistype(c, _CTYPE_Q));
lib/libc/locale/isctype.c
135
isprint(int c)
lib/libc/locale/isctype.c
137
return (__sbistype(c, _CTYPE_R));
lib/libc/locale/isctype.c
142
ispunct(int c)
lib/libc/locale/isctype.c
144
return (__sbistype(c, _CTYPE_P));
lib/libc/locale/isctype.c
149
isrune(int c)
lib/libc/locale/isctype.c
151
return (__sbistype(c, 0xFFFFFF00L));
lib/libc/locale/isctype.c
156
isspace(int c)
lib/libc/locale/isctype.c
158
return (__sbistype(c, _CTYPE_S));
lib/libc/locale/isctype.c
163
isspecial(int c)
lib/libc/locale/isctype.c
165
return (__sbistype(c, _CTYPE_T));
lib/libc/locale/isctype.c
170
isupper(int c)
lib/libc/locale/isctype.c
172
return (__sbistype(c, _CTYPE_U));
lib/libc/locale/isctype.c
177
isxdigit(int c)
lib/libc/locale/isctype.c
179
return (__isctype(c, _CTYPE_X));
lib/libc/locale/isctype.c
184
toascii(int c)
lib/libc/locale/isctype.c
186
return (c & 0x7F);
lib/libc/locale/isctype.c
191
tolower(int c)
lib/libc/locale/isctype.c
193
return (__sbtolower(c));
lib/libc/locale/isctype.c
198
toupper(int c)
lib/libc/locale/isctype.c
200
return (__sbtoupper(c));
lib/libc/locale/isctype.c
44
digittoint(int c)
lib/libc/locale/isctype.c
46
return (__sbmaskrune(c, 0xFF));
lib/libc/locale/isctype.c
51
isalnum(int c)
lib/libc/locale/isctype.c
53
return (__sbistype(c, _CTYPE_A|_CTYPE_N));
lib/libc/locale/isctype.c
58
isalpha(int c)
lib/libc/locale/isctype.c
60
return (__sbistype(c, _CTYPE_A));
lib/libc/locale/isctype.c
65
isascii(int c)
lib/libc/locale/isctype.c
67
return ((c & ~0x7F) == 0);
lib/libc/locale/isctype.c
72
isblank(int c)
lib/libc/locale/isctype.c
74
return (__sbistype(c, _CTYPE_B));
lib/libc/locale/isctype.c
79
iscntrl(int c)
lib/libc/locale/isctype.c
81
return (__sbistype(c, _CTYPE_C));
lib/libc/locale/isctype.c
86
isdigit(int c)
lib/libc/locale/isctype.c
88
return (__isctype(c, _CTYPE_D));
lib/libc/locale/isctype.c
93
isgraph(int c)
lib/libc/locale/isctype.c
95
return (__sbistype(c, _CTYPE_G));
lib/libc/locale/runetype.c
47
___runetype_l(__ct_rune_t c, locale_t locale)
lib/libc/locale/runetype.c
54
if (c < 0 || c == EOF)
lib/libc/locale/runetype.c
61
if (re->__min <= c && c <= re->__max) {
lib/libc/locale/runetype.c
63
return(re->__types[c - re->__min]);
lib/libc/locale/runetype.c
66
} else if (c > re->__max) {
lib/libc/locale/runetype.c
75
___runetype(__ct_rune_t c)
lib/libc/locale/runetype.c
77
return ___runetype_l(c, __get_locale());
lib/libc/locale/table.c
256
struct xlocale_ctype *c = XLOCALE_CTYPE(locale);
lib/libc/locale/table.c
257
*mb_sb_limit = c->__mb_sb_limit;
lib/libc/locale/table.c
258
return c->runes;
lib/libc/locale/tolower.c
47
___tolower_l(__ct_rune_t c, locale_t l)
lib/libc/locale/tolower.c
54
if (c < 0 || c == EOF)
lib/libc/locale/tolower.c
55
return(c);
lib/libc/locale/tolower.c
61
if (re->__min <= c && c <= re->__max)
lib/libc/locale/tolower.c
62
return (re->__map + c - re->__min);
lib/libc/locale/tolower.c
63
else if (c > re->__max) {
lib/libc/locale/tolower.c
69
return(c);
lib/libc/locale/tolower.c
72
___tolower(__ct_rune_t c)
lib/libc/locale/tolower.c
74
return ___tolower_l(c, __get_locale());
lib/libc/locale/toupper.c
47
___toupper_l(__ct_rune_t c, locale_t l)
lib/libc/locale/toupper.c
54
if (c < 0 || c == EOF)
lib/libc/locale/toupper.c
55
return(c);
lib/libc/locale/toupper.c
61
if (re->__min <= c && c <= re->__max)
lib/libc/locale/toupper.c
63
return (re->__map + c - re->__min);
lib/libc/locale/toupper.c
65
else if (c > re->__max) {
lib/libc/locale/toupper.c
71
return(c);
lib/libc/locale/toupper.c
74
___toupper(__ct_rune_t c)
lib/libc/locale/toupper.c
76
return ___toupper_l(c, __get_locale());
lib/libc/locale/wcstoimax.c
101
if (iswdigit_l(c, locale))
lib/libc/locale/wcstoimax.c
102
c = digittoint_l(c, locale);
lib/libc/locale/wcstoimax.c
105
if (c >= L'0' && c <= L'9')
lib/libc/locale/wcstoimax.c
106
c -= L'0';
lib/libc/locale/wcstoimax.c
107
else if (c >= L'A' && c <= L'Z')
lib/libc/locale/wcstoimax.c
108
c -= L'A' - 10;
lib/libc/locale/wcstoimax.c
109
else if (c >= 'a' && c <= 'z')
lib/libc/locale/wcstoimax.c
110
c -= L'a' - 10;
lib/libc/locale/wcstoimax.c
113
if (c >= base)
lib/libc/locale/wcstoimax.c
115
if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
lib/libc/locale/wcstoimax.c
120
acc += c;
lib/libc/locale/wcstoimax.c
53
wchar_t c;
lib/libc/locale/wcstoimax.c
63
c = *s++;
lib/libc/locale/wcstoimax.c
64
} while (iswspace_l(c, locale));
lib/libc/locale/wcstoimax.c
65
if (c == L'-') {
lib/libc/locale/wcstoimax.c
67
c = *s++;
lib/libc/locale/wcstoimax.c
70
if (c == L'+')
lib/libc/locale/wcstoimax.c
71
c = *s++;
lib/libc/locale/wcstoimax.c
74
c == L'0' && (*s == L'x' || *s == L'X') &&
lib/libc/locale/wcstoimax.c
78
c = s[1];
lib/libc/locale/wcstoimax.c
83
c == L'0' && (*s == L'b' || *s == L'B') &&
lib/libc/locale/wcstoimax.c
85
c = s[1];
lib/libc/locale/wcstoimax.c
90
base = c == L'0' ? 8 : 10;
lib/libc/locale/wcstoimax.c
99
for ( ; ; c = *s++) {
lib/libc/locale/wcstol.c
101
if (iswdigit_l(c, locale))
lib/libc/locale/wcstol.c
102
c = digittoint_l(c, locale);
lib/libc/locale/wcstol.c
105
if (c >= L'0' && c <= L'9')
lib/libc/locale/wcstol.c
106
c -= L'0';
lib/libc/locale/wcstol.c
107
else if (c >= L'A' && c <= L'Z')
lib/libc/locale/wcstol.c
108
c -= L'A' - 10;
lib/libc/locale/wcstol.c
109
else if (c >= L'a' && c <= L'z')
lib/libc/locale/wcstol.c
110
c -= L'a' - 10;
lib/libc/locale/wcstol.c
113
if (c >= base)
lib/libc/locale/wcstol.c
115
if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
lib/libc/locale/wcstol.c
120
acc += c;
lib/libc/locale/wcstol.c
53
wchar_t c;
lib/libc/locale/wcstol.c
63
c = *s++;
lib/libc/locale/wcstol.c
64
} while (iswspace_l(c, locale));
lib/libc/locale/wcstol.c
65
if (c == L'-') {
lib/libc/locale/wcstol.c
67
c = *s++;
lib/libc/locale/wcstol.c
70
if (c == L'+')
lib/libc/locale/wcstol.c
71
c = *s++;
lib/libc/locale/wcstol.c
74
c == L'0' && (*s == L'x' || *s == L'X') &&
lib/libc/locale/wcstol.c
78
c = s[1];
lib/libc/locale/wcstol.c
83
c == L'0' && (*s == L'b' || *s == L'B') &&
lib/libc/locale/wcstol.c
85
c = s[1];
lib/libc/locale/wcstol.c
90
base = c == L'0' ? 8 : 10;
lib/libc/locale/wcstol.c
99
for ( ; ; c = *s++) {
lib/libc/locale/wcstoll.c
101
if (iswdigit_l(c, locale))
lib/libc/locale/wcstoll.c
102
c = digittoint_l(c, locale);
lib/libc/locale/wcstoll.c
105
if (c >= L'0' && c <= L'9')
lib/libc/locale/wcstoll.c
106
c -= L'0';
lib/libc/locale/wcstoll.c
107
else if (c >= L'A' && c <= L'Z')
lib/libc/locale/wcstoll.c
108
c -= L'A' - 10;
lib/libc/locale/wcstoll.c
109
else if (c >= L'a' && c <= L'z')
lib/libc/locale/wcstoll.c
110
c -= L'a' - 10;
lib/libc/locale/wcstoll.c
113
if (c >= base)
lib/libc/locale/wcstoll.c
115
if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
lib/libc/locale/wcstoll.c
120
acc += c;
lib/libc/locale/wcstoll.c
53
wchar_t c;
lib/libc/locale/wcstoll.c
63
c = *s++;
lib/libc/locale/wcstoll.c
64
} while (iswspace_l(c, locale));
lib/libc/locale/wcstoll.c
65
if (c == L'-') {
lib/libc/locale/wcstoll.c
67
c = *s++;
lib/libc/locale/wcstoll.c
70
if (c == L'+')
lib/libc/locale/wcstoll.c
71
c = *s++;
lib/libc/locale/wcstoll.c
74
c == L'0' && (*s == L'x' || *s == L'X') &&
lib/libc/locale/wcstoll.c
78
c = s[1];
lib/libc/locale/wcstoll.c
83
c == L'0' && (*s == L'b' || *s == L'B') &&
lib/libc/locale/wcstoll.c
85
c = s[1];
lib/libc/locale/wcstoll.c
90
base = c == L'0' ? 8 : 10;
lib/libc/locale/wcstoll.c
99
for ( ; ; c = *s++) {
lib/libc/locale/wcstoul.c
100
c = digittoint_l(c, locale);
lib/libc/locale/wcstoul.c
103
if (c >= L'0' && c <= L'9')
lib/libc/locale/wcstoul.c
104
c -= L'0';
lib/libc/locale/wcstoul.c
105
else if (c >= L'A' && c <= L'Z')
lib/libc/locale/wcstoul.c
106
c -= L'A' - 10;
lib/libc/locale/wcstoul.c
107
else if (c >= L'a' && c <= L'z')
lib/libc/locale/wcstoul.c
108
c -= L'a' - 10;
lib/libc/locale/wcstoul.c
111
if (c >= base)
lib/libc/locale/wcstoul.c
113
if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
lib/libc/locale/wcstoul.c
118
acc += c;
lib/libc/locale/wcstoul.c
53
wchar_t c;
lib/libc/locale/wcstoul.c
63
c = *s++;
lib/libc/locale/wcstoul.c
64
} while (iswspace_l(c, locale));
lib/libc/locale/wcstoul.c
65
if (c == L'-') {
lib/libc/locale/wcstoul.c
67
c = *s++;
lib/libc/locale/wcstoul.c
70
if (c == L'+')
lib/libc/locale/wcstoul.c
71
c = *s++;
lib/libc/locale/wcstoul.c
74
c == L'0' && (*s == L'x' || *s == L'X') &&
lib/libc/locale/wcstoul.c
78
c = s[1];
lib/libc/locale/wcstoul.c
83
c == L'0' && (*s == L'b' || *s == L'B') &&
lib/libc/locale/wcstoul.c
85
c = s[1];
lib/libc/locale/wcstoul.c
90
base = c == L'0' ? 8 : 10;
lib/libc/locale/wcstoul.c
97
for ( ; ; c = *s++) {
lib/libc/locale/wcstoul.c
99
if (iswdigit_l(c, locale))
lib/libc/locale/wcstoull.c
100
c = digittoint_l(c, locale);
lib/libc/locale/wcstoull.c
103
if (c >= L'0' && c <= L'9')
lib/libc/locale/wcstoull.c
104
c -= L'0';
lib/libc/locale/wcstoull.c
105
else if (c >= L'A' && c <= L'Z')
lib/libc/locale/wcstoull.c
106
c -= L'A' - 10;
lib/libc/locale/wcstoull.c
107
else if (c >= L'a' && c <= L'z')
lib/libc/locale/wcstoull.c
108
c -= L'a' - 10;
lib/libc/locale/wcstoull.c
111
if (c >= base)
lib/libc/locale/wcstoull.c
113
if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
lib/libc/locale/wcstoull.c
118
acc += c;
lib/libc/locale/wcstoull.c
53
wchar_t c;
lib/libc/locale/wcstoull.c
63
c = *s++;
lib/libc/locale/wcstoull.c
64
} while (iswspace_l(c, locale));
lib/libc/locale/wcstoull.c
65
if (c == L'-') {
lib/libc/locale/wcstoull.c
67
c = *s++;
lib/libc/locale/wcstoull.c
70
if (c == L'+')
lib/libc/locale/wcstoull.c
71
c = *s++;
lib/libc/locale/wcstoull.c
74
c == L'0' && (*s == L'x' || *s == L'X') &&
lib/libc/locale/wcstoull.c
78
c = s[1];
lib/libc/locale/wcstoull.c
83
c == L'0' && (*s == L'b' || *s == L'B') &&
lib/libc/locale/wcstoull.c
85
c = s[1];
lib/libc/locale/wcstoull.c
90
base = c == L'0' ? 8 : 10;
lib/libc/locale/wcstoull.c
97
for ( ; ; c = *s++) {
lib/libc/locale/wcstoull.c
99
if (iswdigit_l(c, locale))
lib/libc/locale/wcstoumax.c
100
c = digittoint_l(c, locale);
lib/libc/locale/wcstoumax.c
103
if (c >= L'0' && c <= L'9')
lib/libc/locale/wcstoumax.c
104
c -= L'0';
lib/libc/locale/wcstoumax.c
105
else if (c >= L'A' && c <= L'Z')
lib/libc/locale/wcstoumax.c
106
c -= L'A' - 10;
lib/libc/locale/wcstoumax.c
107
else if (c >= L'a' && c <= L'z')
lib/libc/locale/wcstoumax.c
108
c -= L'a' - 10;
lib/libc/locale/wcstoumax.c
111
if (c >= base)
lib/libc/locale/wcstoumax.c
113
if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
lib/libc/locale/wcstoumax.c
118
acc += c;
lib/libc/locale/wcstoumax.c
53
wchar_t c;
lib/libc/locale/wcstoumax.c
63
c = *s++;
lib/libc/locale/wcstoumax.c
64
} while (iswspace_l(c, locale));
lib/libc/locale/wcstoumax.c
65
if (c == L'-') {
lib/libc/locale/wcstoumax.c
67
c = *s++;
lib/libc/locale/wcstoumax.c
70
if (c == L'+')
lib/libc/locale/wcstoumax.c
71
c = *s++;
lib/libc/locale/wcstoumax.c
74
c == L'0' && (*s == L'x' || *s == L'X') &&
lib/libc/locale/wcstoumax.c
78
c = s[1];
lib/libc/locale/wcstoumax.c
83
c == L'0' && (*s == L'b' || *s == L'B') &&
lib/libc/locale/wcstoumax.c
85
c = s[1];
lib/libc/locale/wcstoumax.c
90
base = c == L'0' ? 8 : 10;
lib/libc/locale/wcstoumax.c
97
for ( ; ; c = *s++) {
lib/libc/locale/wcstoumax.c
99
if (iswdigit_l(c, locale))
lib/libc/locale/wctob.c
40
wctob_l(wint_t c, locale_t locale)
lib/libc/locale/wctob.c
47
if (c == WEOF || XLOCALE_CTYPE(locale)->__wcrtomb(buf, c, &mbs) != 1)
lib/libc/locale/wctob.c
52
wctob(wint_t c)
lib/libc/locale/wctob.c
54
return wctob_l(c, __get_locale());
lib/libc/nameser/ns_name.c
1031
char c;
lib/libc/nameser/ns_name.c
1049
switch((c = *cp)) {
lib/libc/nameser/ns_name.c
1067
if (!isdigit(c&0xff))
lib/libc/nameser/ns_name.c
1071
if (c == '0') {
lib/libc/nameser/ns_name.c
1078
if (!isxdigit(c&0xff))
lib/libc/nameser/ns_name.c
1081
value += digitvalue[(int)c];
lib/libc/nameser/ns_name.c
145
c = *cp++;
lib/libc/nameser/ns_name.c
146
if (special(c)) {
lib/libc/nameser/ns_name.c
152
*dn++ = (char)c;
lib/libc/nameser/ns_name.c
153
} else if (!printable(c)) {
lib/libc/nameser/ns_name.c
159
*dn++ = digits[c / 100];
lib/libc/nameser/ns_name.c
160
*dn++ = digits[(c % 100) / 10];
lib/libc/nameser/ns_name.c
161
*dn++ = digits[c % 10];
lib/libc/nameser/ns_name.c
167
*dn++ = (char)c;
lib/libc/nameser/ns_name.c
218
int c, n, escaped, e = 0;
lib/libc/nameser/ns_name.c
226
while ((c = *src++) != 0) {
lib/libc/nameser/ns_name.c
228
if (c == '[') { /*%< start a bit string label */
lib/libc/nameser/ns_name.c
241
if ((c = *src++) == 0)
lib/libc/nameser/ns_name.c
243
else if (c != '.') {
lib/libc/nameser/ns_name.c
249
else if ((cp = strchr(digits, c)) != NULL) {
lib/libc/nameser/ns_name.c
251
if ((c = *src++) == 0 ||
lib/libc/nameser/ns_name.c
252
(cp = strchr(digits, c)) == NULL) {
lib/libc/nameser/ns_name.c
257
if ((c = *src++) == 0 ||
lib/libc/nameser/ns_name.c
258
(cp = strchr(digits, c)) == NULL) {
lib/libc/nameser/ns_name.c
267
c = n;
lib/libc/nameser/ns_name.c
270
} else if (c == '\\') {
lib/libc/nameser/ns_name.c
273
} else if (c == '.') {
lib/libc/nameser/ns_name.c
274
c = (bp - label - 1);
lib/libc/nameser/ns_name.c
275
if ((c & NS_CMPRSFLGS) != 0) { /*%< Label too big. */
lib/libc/nameser/ns_name.c
283
*label = c;
lib/libc/nameser/ns_name.c
286
if (c != 0) {
lib/libc/nameser/ns_name.c
301
if (c == 0 || *src == '.') {
lib/libc/nameser/ns_name.c
312
*bp++ = (u_char)c;
lib/libc/nameser/ns_name.c
314
c = (bp - label - 1);
lib/libc/nameser/ns_name.c
315
if ((c & NS_CMPRSFLGS) != 0) { /*%< Label too big. */
lib/libc/nameser/ns_name.c
324
*label = c;
lib/libc/nameser/ns_name.c
325
if (c != 0) {
lib/libc/nameser/ns_name.c
356
u_char c;
lib/libc/nameser/ns_name.c
384
c = *cp++;
lib/libc/nameser/ns_name.c
385
if (isascii(c) && isupper(c))
lib/libc/nameser/ns_name.c
386
*dn++ = tolower(c);
lib/libc/nameser/ns_name.c
388
*dn++ = c;
lib/libc/nameser/ns_name.c
99
u_char c;
lib/libc/nameser/ns_print.c
434
u_int c = *rdata++;
lib/libc/nameser/ns_print.c
436
if (c & 0200) {
lib/libc/nameser/ns_print.c
447
c <<= 1;
lib/libc/nameser/ns_print.c
564
int n, c;
lib/libc/nameser/ns_print.c
571
for (c = 0; c < n*8; c++)
lib/libc/nameser/ns_print.c
572
if (NS_NXT_BIT_ISSET(c, rdata)) {
lib/libc/nameser/ns_print.c
573
len = SPRINTF((tmp, " %s", p_type(c)));
lib/libc/nameser/ns_print.c
740
u_int t, w, l, j, k, c;
lib/libc/nameser/ns_print.c
843
c = w * 256 + j * 8 + k;
lib/libc/nameser/ns_print.c
844
len = SPRINTF((tmp, " %s", p_type(c)));
lib/libc/nameser/ns_print.c
854
u_int w, l, j, k, c;
lib/libc/nameser/ns_print.c
867
c = w * 256 + j * 8 + k;
lib/libc/nameser/ns_print.c
868
len = SPRINTF((tmp, " %s", p_type(c)));
lib/libc/net/linkaddr.c
241
#define OUT(c) do { \
lib/libc/net/linkaddr.c
243
*out++ = (c); \
lib/libc/net/linkaddr.c
92
#define DIGIT(c) \
lib/libc/net/linkaddr.c
93
(((c) >= '0' && (c) <= '9') ? ((c) - '0') \
lib/libc/net/linkaddr.c
94
: ((c) >= 'a' && (c) <= 'f') ? ((c) - 'a' + 10) \
lib/libc/net/linkaddr.c
95
: ((c) >= 'A' && (c) <= 'F') ? ((c) - 'A' + 10) \
lib/libc/net/linkaddr.c
97
#define ISDELIM(c) (((c) == '.' || (c) == ':' || (c) == '-') && \
lib/libc/net/linkaddr.c
98
(delim == 0 || delim == (c)))
lib/libc/net/nsdispatch.c
238
#define VECTOR_FREE(v, c, s, f) \
lib/libc/net/nsdispatch.c
239
do { vector_free(v, c, s, f); v = NULL; } while (0)
lib/libc/net/rcmd.c
286
if (_read(s, &c, 1) != 1) {
lib/libc/net/rcmd.c
291
if (c != 0) {
lib/libc/net/rcmd.c
292
while (_read(s, &c, 1) == 1) {
lib/libc/net/rcmd.c
293
(void)_write(STDERR_FILENO, &c, 1);
lib/libc/net/rcmd.c
294
if (c == '\n')
lib/libc/net/rcmd.c
88
char c, *p;
lib/libc/net/rthdr.c
113
int c, b;
lib/libc/net/rthdr.c
114
c = rt0->ip6r0_segleft / 8;
lib/libc/net/rthdr.c
116
rt0->ip6r0_slmap[c] |= (1 << (7 - b));
lib/libc/net/rthdr.c
156
int c, b;
lib/libc/net/rthdr.c
157
c = rt0->ip6r0_segleft / 8;
lib/libc/net/rthdr.c
159
rt0->ip6r0_slmap[c] |= (1 << (7 - b));
lib/libc/powerpc64/string/bcopy_resolver.c
35
#define CAT3(a,b,c) CAT(CAT(a,b),c)
lib/libc/regex/engine.c
117
#define NONCHAR(c) ((c) <= OUT)
lib/libc/regex/engine.c
138
#define SP(t, s, c) print(m, t, s, c, stdout)
lib/libc/regex/engine.c
142
#define SP(t, s, c) /* nothing */
lib/libc/regex/engine.c
850
wint_t c;
lib/libc/regex/engine.c
867
c = OUT;
lib/libc/regex/engine.c
874
c = (uch)*(start - 1);
lib/libc/regex/engine.c
878
lastc = c;
lib/libc/regex/engine.c
881
c = OUT;
lib/libc/regex/engine.c
884
clen = XMBRTOWC(&c, p, m->endp - p, &m->mbs, BADCHAR);
lib/libc/regex/engine.c
897
if ( (c == '\n' && m->g->cflags&REG_NEWLINE) ||
lib/libc/regex/engine.c
898
(c == OUT && !(m->eflags&REG_NOTEOL)) ) {
lib/libc/regex/engine.c
907
if (c == OUT && (m->eflags & REG_NOTEOL) == 0) {
lib/libc/regex/engine.c
916
SP("sboleol", st, c);
lib/libc/regex/engine.c
921
(c != OUT && ISWORD(c)) ) {
lib/libc/regex/engine.c
925
(flagch == EOL || (c != OUT && !ISWORD(c))) ) {
lib/libc/regex/engine.c
930
SP("sboweow", st, c);
lib/libc/regex/engine.c
932
if (lastc != OUT && c != OUT &&
lib/libc/regex/engine.c
933
ISWORD(lastc) == ISWORD(c)) {
lib/libc/regex/engine.c
935
} else if ((lastc == OUT && !ISWORD(c)) ||
lib/libc/regex/engine.c
936
(c == OUT && !ISWORD(lastc))) {
lib/libc/regex/engine.c
941
SP("snwbnd", st, c);
lib/libc/regex/engine.c
960
assert(c != OUT);
lib/libc/regex/engine.c
961
st = step(m->g, startst, stopst, tmp, c, st, sflags);
lib/libc/regex/engine.c
962
SP("saft", st, c);
lib/libc/regex/grot/debug.c
26
int c;
lib/libc/regex/grot/main.c
36
int c;
lib/libc/regex/grot/main.c
360
opt(int c, char *s)
lib/libc/regex/grot/main.c
362
return(strchr(s, c) != NULL);
lib/libc/regex/grot/main.c
44
while ((c = getopt(argc, argv, "c:e:S:E:x")) != -1)
lib/libc/regex/grot/main.c
45
switch (c) {
lib/libc/regex/grot/split.c
116
c = *p++;
lib/libc/regex/grot/split.c
117
if (c == '\0')
lib/libc/regex/grot/split.c
120
while ((sepc = *sepp++) != '\0' && sepc != c)
lib/libc/regex/grot/split.c
128
c = *p++;
lib/libc/regex/grot/split.c
130
while ((sepc = *sepp++) != '\0' && sepc != c)
lib/libc/regex/grot/split.c
17
char c; /* latest character */
lib/libc/regex/grot/split.c
27
while ((c = *p++) == ' ' || c == '\t')
lib/libc/regex/grot/split.c
49
while ((c = *p++) != sepc)
lib/libc/regex/grot/split.c
50
if (c == '\0')
lib/libc/regex/grot/split.c
57
while ((c = *p++) != sepc)
lib/libc/regex/grot/split.c
58
if (c == '\0')
lib/libc/regex/grot/split.c
71
while ((c = *p++) != sepc && c != sepc2)
lib/libc/regex/grot/split.c
72
if (c == '\0') {
lib/libc/regex/grot/split.c
80
while ((c = *p++) == sepc || c == sepc2)
lib/libc/regex/grot/split.c
86
while (c != '\0') {
lib/libc/regex/grot/split.c
87
while ((c = *p++) == sepc || c == sepc2)
lib/libc/regex/grot/split.c
91
while ((c = *p++) != '\0' && c != sepc && c != sepc2)
lib/libc/regex/grot/split.c
97
while ((c = *--p) == sepc || c == sepc2)
lib/libc/regex/regcomp.c
1093
char c;
lib/libc/regex/regcomp.c
1103
c = (MORE2()) ? PEEK2() : '\0';
lib/libc/regex/regcomp.c
1109
c = '\0';
lib/libc/regex/regcomp.c
1113
switch (c) {
lib/libc/regex/regcomp.c
1117
c = PEEK();
lib/libc/regex/regcomp.c
1118
(void)REQUIRE(c != '-' && c != ']', REG_ECTYPE);
lib/libc/regex/regcomp.c
1126
c = PEEK();
lib/libc/regex/regcomp.c
1127
(void)REQUIRE(c != '-' && c != ']', REG_ECOLLATE);
lib/libc/regex/regcomp.c
1171
p_b_pseudoclass(struct parse *p, char c) {
lib/libc/regex/regcomp.c
1180
switch (c) {
lib/libc/regex/regcomp.c
1249
wint_t c;
lib/libc/regex/regcomp.c
1251
c = p_b_coll_elem(p, '=');
lib/libc/regex/regcomp.c
1252
CHadd(p, cs, c);
lib/libc/regex/regcomp.c
127
static int p_b_pseudoclass(struct parse *p, char c);
lib/libc/regex/regcomp.c
174
#define SEE(c) (MORE() && PEEK() == (c))
lib/libc/regex/regcomp.c
177
#define EAT(c) ((SEE(c)) ? (NEXT(), 1) : 0)
lib/libc/regex/regcomp.c
187
#define MUSTSEE(c, e) (REQUIRE(MORE() && PEEK() == (c), e))
lib/libc/regex/regcomp.c
188
#define MUSTEAT(c, e) (REQUIRE(MORE() && GETNEXT() == (c), e))
lib/libc/regex/regcomp.c
189
#define MUSTNOTSEE(c, e) (REQUIRE(!MORE() || PEEK() != (c), e))
lib/libc/regex/regcomp.c
390
char c;
lib/libc/regex/regcomp.c
404
c = GETNEXT();
lib/libc/regex/regcomp.c
410
switch (c) {
lib/libc/regex/regcomp.c
557
c = PEEK();
lib/libc/regex/regcomp.c
559
if (!( c == '*' || c == '+' || c == '?' ||
lib/libc/regex/regcomp.c
561
(c == '{' && MORE2() && isdigit((uch)PEEK2()))
lib/libc/regex/regcomp.c
563
c == '{'
lib/libc/regex/regcomp.c
568
else if (c == '{')
lib/libc/regex/regcomp.c
575
switch (c) {
lib/libc/regex/regcomp.c
618
c = PEEK();
lib/libc/regex/regcomp.c
619
if (!( c == '*' || c == '+' || c == '?' ||
lib/libc/regex/regcomp.c
620
(c == '{' && MORE2() && isdigit((uch)PEEK2())) ) )
lib/libc/regex/regcomp.c
825
int c;
lib/libc/regex/regcomp.c
840
c = (uch)GETNEXT();
lib/libc/regex/regcomp.c
841
if (c == '\\') {
lib/libc/regex/regcomp.c
844
c = BACKSL | cc;
lib/libc/regex/regcomp.c
848
switch (c) {
lib/libc/regex/regcomp.c
874
switch (c) {
lib/libc/regex/regcomp.c
924
i = (c&~BACKSL) - '0';
lib/libc/regex/regcomp.c
951
if ((c & BACKSL) == 0 || may_escape(p, wc))
lib/libc/regex/regcomp.c
990
} else if (c == '$') /* $ (but not \$) ends it */
lib/libc/regex/regex2.h
201
#define ISWORD(c) (iswalnum((uch)(c)) || (c) == '_')
lib/libc/regex/utils.h
54
#define memmove(d, s, c) bcopy(s, d, c)
lib/libc/resolv/res_comp.c
135
#define hyphenchar(c) ((c) == 0x2d)
lib/libc/resolv/res_comp.c
136
#define bslashchar(c) ((c) == 0x5c)
lib/libc/resolv/res_comp.c
137
#define underscorechar(c) ((c) == 0x5f)
lib/libc/resolv/res_comp.c
138
#define periodchar(c) ((c) == PERIOD)
lib/libc/resolv/res_comp.c
139
#define asterchar(c) ((c) == 0x2a)
lib/libc/resolv/res_comp.c
140
#define alphachar(c) (((c) >= 0x41 && (c) <= 0x5a) \
lib/libc/resolv/res_comp.c
141
|| ((c) >= 0x61 && (c) <= 0x7a))
lib/libc/resolv/res_comp.c
142
#define digitchar(c) ((c) >= 0x30 && (c) <= 0x39)
lib/libc/resolv/res_comp.c
145
#define borderchar(c) (alphachar(c) || digitchar(c))
lib/libc/resolv/res_comp.c
147
#define borderchar(c) (alphachar(c) || digitchar(c) || underscorechar(c))
lib/libc/resolv/res_comp.c
149
#define middlechar(c) (borderchar(c) || hyphenchar(c))
lib/libc/resolv/res_comp.c
150
#define domainchar(c) ((c) > 0x20 && (c) < 0x7f)
lib/libc/resolv/res_init.c
111
# define isascii(c) (!(c & 0200))
lib/libc/resolv/res_mkupdate.c
735
int c;
lib/libc/resolv/res_mkupdate.c
738
c = **startpp;
lib/libc/resolv/res_mkupdate.c
739
if (isspace(c) || c == '\0') {
lib/libc/resolv/res_mkupdate.c
750
*cp++ = (u_char)c;
lib/libc/resolv/res_mkupdate.c
765
int c, c1 = 0;
lib/libc/resolv/res_mkupdate.c
772
if ((c = **startpp) == '\0')
lib/libc/resolv/res_mkupdate.c
775
if ((cp == buf) && !seen_quote && isspace(c)) {
lib/libc/resolv/res_mkupdate.c
780
switch (c) {
lib/libc/resolv/res_mkupdate.c
801
switch (c) {
lib/libc/resolv/res_mkupdate.c
813
(strchr(digits, c) - digits);
lib/libc/resolv/res_mkupdate.c
816
c = c1 &0xff;
lib/libc/resolv/res_mkupdate.c
823
} else if (!inquote && isspace(c))
lib/libc/resolv/res_mkupdate.c
827
*cp++ = (u_char)c;
lib/libc/resolv/res_mkupdate.c
842
int c, n;
lib/libc/resolv/res_mkupdate.c
850
c = **startpp;
lib/libc/resolv/res_mkupdate.c
851
if (isspace(c) || c == '\0') {
lib/libc/resolv/res_mkupdate.c
859
if (c == ';') {
lib/libc/resolv/res_mkupdate.c
861
((c = **startpp) != '\n'))
lib/libc/resolv/res_mkupdate.c
867
if (!isxdigit(c)) {
lib/libc/resolv/res_mkupdate.c
868
if (c == ')' && seendigit) {
lib/libc/resolv/res_mkupdate.c
875
if (isdigit(c))
lib/libc/resolv/res_mkupdate.c
876
n = n * 16 + (c - '0');
lib/libc/resolv/res_mkupdate.c
878
n = n * 16 + (tolower(c) - 'a' + 10);
lib/libc/resolv/res_mkupdate.c
890
int c, n;
lib/libc/resolv/res_mkupdate.c
895
c = **startpp;
lib/libc/resolv/res_mkupdate.c
896
if (isspace(c) || c == '\0') {
lib/libc/resolv/res_mkupdate.c
904
if (c == ';') {
lib/libc/resolv/res_mkupdate.c
906
((c = **startpp) != '\n'))
lib/libc/resolv/res_mkupdate.c
912
if (!isdigit(c)) {
lib/libc/resolv/res_mkupdate.c
913
if (c == ')' && seendigit) {
lib/libc/resolv/res_mkupdate.c
920
n = n * 10 + (c - '0');
lib/libc/rpc/auth_des.c
392
ixdr = (uint32_t *)buf.c;
lib/libc/stdio/fclose.c
47
cleanfile(FILE *fp, bool c)
lib/libc/stdio/fclose.c
52
if (c) {
lib/libc/stdio/fputc.c
44
fputc_unlocked(int c, FILE *fp)
lib/libc/stdio/fputc.c
49
return (__sputc(c, fp));
lib/libc/stdio/fputc.c
53
fputc(int c, FILE *fp)
lib/libc/stdio/fputc.c
58
retval = fputc_unlocked(c, fp);
lib/libc/stdio/gets.c
45
int c;
lib/libc/stdio/gets.c
57
for (s = buf; (c = __sgetc(stdin)) != '\n'; ) {
lib/libc/stdio/gets.c
58
if (c == EOF) {
lib/libc/stdio/gets.c
65
*s++ = c;
lib/libc/stdio/gets_s.c
50
int c;
lib/libc/stdio/gets_s.c
54
for (s = buf, n--; (c = __sgetc(stdin)) != '\n' && n > 0 ; n--) {
lib/libc/stdio/gets_s.c
55
if (c == EOF) {
lib/libc/stdio/gets_s.c
61
*s++ = c;
lib/libc/stdio/gets_s.c
70
while ((c = __sgetc(stdin)) != '\n' && c != EOF);
lib/libc/stdio/printflocal.h
57
#define to_digit(c) ((c) - '0')
lib/libc/stdio/printflocal.h
58
#define is_digit(c) ((unsigned)to_digit(c) <= 9)
lib/libc/stdio/putc.c
45
putc(int c, FILE *fp)
lib/libc/stdio/putc.c
51
retval = __sputc(c, fp);
lib/libc/stdio/putchar.c
48
putchar(int c)
lib/libc/stdio/putchar.c
56
retval = __sputc(c, so);
lib/libc/stdio/puts.c
50
size_t c;
lib/libc/stdio/puts.c
55
iov[0].iov_len = c = strlen(s);
lib/libc/stdio/puts.c
58
uio.uio_resid = c + 1;
lib/libc/stdio/ungetc.c
104
__ungetc(int c, FILE *fp)
lib/libc/stdio/ungetc.c
107
if (c == EOF)
lib/libc/stdio/ungetc.c
125
c = (unsigned char)c;
lib/libc/stdio/ungetc.c
134
*--fp->_p = c;
lib/libc/stdio/ungetc.c
136
return (c);
lib/libc/stdio/ungetc.c
146
fp->_p[-1] == c) {
lib/libc/stdio/ungetc.c
149
return (c);
lib/libc/stdio/ungetc.c
160
fp->_ubuf[sizeof(fp->_ubuf) - 1] = c;
lib/libc/stdio/ungetc.c
163
return (c);
lib/libc/stdio/ungetc.c
87
ungetc(int c, FILE *fp)
lib/libc/stdio/ungetc.c
95
ret = __ungetc(c, fp);
lib/libc/stdio/vfscanf.c
1003
c = *fp->_p;
lib/libc/stdio/vfscanf.c
1008
if (c == '-' || c == '+')
lib/libc/stdio/vfscanf.c
1013
switch (c) {
lib/libc/stdio/vfscanf.c
1033
(c != "nfinity"[infnanpos] &&
lib/libc/stdio/vfscanf.c
1034
c != "NFINITY"[infnanpos]))
lib/libc/stdio/vfscanf.c
1043
if (c != 'A' && c != 'a')
lib/libc/stdio/vfscanf.c
1047
if (c != 'N' && c != 'n')
lib/libc/stdio/vfscanf.c
1053
if (c != '(')
lib/libc/stdio/vfscanf.c
1057
if (c == ')') {
lib/libc/stdio/vfscanf.c
1060
} else if (!isalnum(c) && c != '_')
lib/libc/stdio/vfscanf.c
1070
if (c == 'X' || c == 'x') {
lib/libc/stdio/vfscanf.c
1078
if ((ishex && isxdigit(c)) || isdigit(c)) {
lib/libc/stdio/vfscanf.c
1087
if (c == decpt[decptpos]) {
lib/libc/stdio/vfscanf.c
1107
if (((c == 'E' || c == 'e') && !ishex) ||
lib/libc/stdio/vfscanf.c
1108
((c == 'P' || c == 'p') && ishex)) {
lib/libc/stdio/vfscanf.c
1113
} else if ((ishex && isxdigit(c)) || isdigit(c)) {
lib/libc/stdio/vfscanf.c
1121
if (c == '-' || c == '+')
lib/libc/stdio/vfscanf.c
1126
if (isdigit(c))
lib/libc/stdio/vfscanf.c
1134
*p++ = c;
lib/libc/stdio/vfscanf.c
304
parseint_fsm(int c, enum parseint_state *state, int *base)
lib/libc/stdio/vfscanf.c
306
switch (c) {
lib/libc/stdio/vfscanf.c
344
if (*base > c - '0') {
lib/libc/stdio/vfscanf.c
369
if (*base > c - 'a' + 10) {
lib/libc/stdio/vfscanf.c
394
if (*base > c - 'A' + 10) {
lib/libc/stdio/vfscanf.c
425
int c;
lib/libc/stdio/vfscanf.c
428
c = __sgetc(fp);
lib/libc/stdio/vfscanf.c
429
if (c == EOF)
lib/libc/stdio/vfscanf.c
431
if (!parseint_fsm(c, &state, &base))
lib/libc/stdio/vfscanf.c
433
*p++ = c;
lib/libc/stdio/vfscanf.c
446
(void) __ungetc(c, fp);
lib/libc/stdio/vfscanf.c
447
} else if (width && c != EOF) {
lib/libc/stdio/vfscanf.c
448
(void) __ungetc(c, fp);
lib/libc/stdio/vfscanf.c
486
int c; /* character from format, or conversion */
lib/libc/stdio/vfscanf.c
503
c = *fmt++;
lib/libc/stdio/vfscanf.c
504
if (c == 0)
lib/libc/stdio/vfscanf.c
506
if (isspace(c)) {
lib/libc/stdio/vfscanf.c
511
if (c != '%')
lib/libc/stdio/vfscanf.c
519
again: c = *fmt++;
lib/libc/stdio/vfscanf.c
520
switch (c) {
lib/libc/stdio/vfscanf.c
525
if (*fp->_p != c)
lib/libc/stdio/vfscanf.c
605
width = width * 10 + c - '0';
lib/libc/stdio/vfscanf.c
613
c = CT_INT;
lib/libc/stdio/vfscanf.c
619
c = CT_INT;
lib/libc/stdio/vfscanf.c
624
c = CT_INT;
lib/libc/stdio/vfscanf.c
629
c = CT_INT;
lib/libc/stdio/vfscanf.c
635
c = CT_INT;
lib/libc/stdio/vfscanf.c
642
c = CT_INT;
lib/libc/stdio/vfscanf.c
649
c = CT_FLOAT;
lib/libc/stdio/vfscanf.c
656
c = CT_STRING;
lib/libc/stdio/vfscanf.c
662
c = CT_CCL;
lib/libc/stdio/vfscanf.c
670
c = CT_CHAR;
lib/libc/stdio/vfscanf.c
675
c = CT_INT; /* assumes sizeof(uintmax_t) */
lib/libc/stdio/vfscanf.c
739
switch (c) {
lib/libc/stdio/vfscanf.c
875
int c, n, v, i;
lib/libc/stdio/vfscanf.c
880
c = *fmt++; /* first char hat => negated scanset */
lib/libc/stdio/vfscanf.c
881
if (c == '^') {
lib/libc/stdio/vfscanf.c
883
c = *fmt++; /* get new first char */
lib/libc/stdio/vfscanf.c
890
if (c == 0)
lib/libc/stdio/vfscanf.c
902
tab[c] = v; /* take character c */
lib/libc/stdio/vfscanf.c
931
|| (table->__collate_load_error ? n < c :
lib/libc/stdio/vfscanf.c
932
__collate_range_cmp(n, c) < 0
lib/libc/stdio/vfscanf.c
935
c = '-';
lib/libc/stdio/vfscanf.c
942
tab[++c] = v;
lib/libc/stdio/vfscanf.c
943
} while (c < n);
lib/libc/stdio/vfscanf.c
946
if (__collate_range_cmp(c, i) <= 0 &&
lib/libc/stdio/vfscanf.c
952
c = n;
lib/libc/stdio/vfscanf.c
960
c = *fmt++;
lib/libc/stdio/vfscanf.c
961
if (c == 0)
lib/libc/stdio/vfscanf.c
963
if (c == ']')
lib/libc/stdio/vfscanf.c
972
c = n;
lib/libc/stdio/vfscanf.c
988
unsigned char c;
lib/libc/stdio/vfwscanf.c
286
parseint_fsm(wchar_t c, enum parseint_state *state, int *base)
lib/libc/stdio/vfwscanf.c
288
switch (c) {
lib/libc/stdio/vfwscanf.c
326
if (*base > c - '0') {
lib/libc/stdio/vfwscanf.c
351
if (*base > c - 'a' + 10) {
lib/libc/stdio/vfwscanf.c
376
if (*base > c - 'A' + 10) {
lib/libc/stdio/vfwscanf.c
408
int c;
lib/libc/stdio/vfwscanf.c
411
c = __fgetwc(fp, locale);
lib/libc/stdio/vfwscanf.c
412
if (c == WEOF)
lib/libc/stdio/vfwscanf.c
414
if (!parseint_fsm(c, &state, &base))
lib/libc/stdio/vfwscanf.c
416
*wcp++ = (wchar_t)c;
lib/libc/stdio/vfwscanf.c
429
__ungetwc(c, fp, locale);
lib/libc/stdio/vfwscanf.c
430
} else if (width && c != WEOF) {
lib/libc/stdio/vfwscanf.c
431
__ungetwc(c, fp, locale);
lib/libc/stdio/vfwscanf.c
466
wint_t c; /* character from format, or conversion */
lib/libc/stdio/vfwscanf.c
483
c = *fmt++;
lib/libc/stdio/vfwscanf.c
484
if (c == 0)
lib/libc/stdio/vfwscanf.c
486
if (iswspace(c)) {
lib/libc/stdio/vfwscanf.c
487
while ((c = __fgetwc(fp, locale)) != WEOF &&
lib/libc/stdio/vfwscanf.c
488
iswspace_l(c, locale))
lib/libc/stdio/vfwscanf.c
490
if (c != WEOF)
lib/libc/stdio/vfwscanf.c
491
__ungetwc(c, fp, locale);
lib/libc/stdio/vfwscanf.c
494
if (c != '%')
lib/libc/stdio/vfwscanf.c
502
again: c = *fmt++;
lib/libc/stdio/vfwscanf.c
503
switch (c) {
lib/libc/stdio/vfwscanf.c
508
if (wi != c) {
lib/libc/stdio/vfwscanf.c
589
width = width * 10 + c - '0';
lib/libc/stdio/vfwscanf.c
597
c = CT_INT;
lib/libc/stdio/vfwscanf.c
603
c = CT_INT;
lib/libc/stdio/vfwscanf.c
608
c = CT_INT;
lib/libc/stdio/vfwscanf.c
613
c = CT_INT;
lib/libc/stdio/vfwscanf.c
619
c = CT_INT;
lib/libc/stdio/vfwscanf.c
626
c = CT_INT;
lib/libc/stdio/vfwscanf.c
633
c = CT_FLOAT;
lib/libc/stdio/vfwscanf.c
640
c = CT_STRING;
lib/libc/stdio/vfwscanf.c
657
c = CT_CCL;
lib/libc/stdio/vfwscanf.c
665
c = CT_CHAR;
lib/libc/stdio/vfwscanf.c
670
c = CT_INT; /* assumes sizeof(uintmax_t) */
lib/libc/stdio/vfwscanf.c
721
switch (c) {
lib/libc/stdio/vfwscanf.c
856
wchar_t c;
lib/libc/stdio/vfwscanf.c
875
c = WEOF;
lib/libc/stdio/vfwscanf.c
877
if ((c = __fgetwc(fp, locale)) == WEOF)
lib/libc/stdio/vfwscanf.c
883
if (c == '-' || c == '+')
lib/libc/stdio/vfwscanf.c
888
switch (c) {
lib/libc/stdio/vfwscanf.c
908
(c != "nfinity"[infnanpos] &&
lib/libc/stdio/vfwscanf.c
909
c != "NFINITY"[infnanpos]))
lib/libc/stdio/vfwscanf.c
918
if (c != 'A' && c != 'a')
lib/libc/stdio/vfwscanf.c
922
if (c != 'N' && c != 'n')
lib/libc/stdio/vfwscanf.c
928
if (c != '(')
lib/libc/stdio/vfwscanf.c
932
if (c == ')') {
lib/libc/stdio/vfwscanf.c
935
} else if (!iswalnum(c) && c != '_')
lib/libc/stdio/vfwscanf.c
945
if (c == 'X' || c == 'x') {
lib/libc/stdio/vfwscanf.c
953
if ((ishex && iswxdigit(c)) || iswdigit(c))
lib/libc/stdio/vfwscanf.c
957
if (c != decpt)
lib/libc/stdio/vfwscanf.c
964
if (((c == 'E' || c == 'e') && !ishex) ||
lib/libc/stdio/vfwscanf.c
965
((c == 'P' || c == 'p') && ishex)) {
lib/libc/stdio/vfwscanf.c
970
} else if ((ishex && iswxdigit(c)) || iswdigit(c)) {
lib/libc/stdio/vfwscanf.c
978
if (c == '-' || c == '+')
lib/libc/stdio/vfwscanf.c
983
if (iswdigit(c))
lib/libc/stdio/vfwscanf.c
991
*p++ = c;
lib/libc/stdio/vfwscanf.c
992
c = WEOF;
lib/libc/stdio/vfwscanf.c
996
if (c != WEOF)
lib/libc/stdio/vfwscanf.c
997
__ungetwc(c, fp, locale);
lib/libc/stdio/wbuf.c
47
__swbuf(int c, FILE *fp)
lib/libc/stdio/wbuf.c
63
c = (unsigned char)c;
lib/libc/stdio/wbuf.c
83
*fp->_p++ = c;
lib/libc/stdio/wbuf.c
84
if (++n == fp->_bf._size || (fp->_flags & __SLBF && c == '\n'))
lib/libc/stdio/wbuf.c
87
return (c);
lib/libc/stdio/xprintf.c
74
#define to_digit(c) ((c) - '0')
lib/libc/stdio/xprintf.c
75
#define is_digit(c) (((unsigned)to_digit(c)) <= 9)
lib/libc/stdio/xprintf_str.c
167
unsigned char c;
lib/libc/stdio/xprintf_str.c
183
c = i;
lib/libc/stdio/xprintf_str.c
184
i = __printf_out(io, pi, &c, 1);
lib/libc/stdlib/getopt_long.c
129
int c;
lib/libc/stdlib/getopt_long.c
131
c = a % b;
lib/libc/stdlib/getopt_long.c
132
while (c != 0) {
lib/libc/stdlib/getopt_long.c
134
b = c;
lib/libc/stdlib/getopt_long.c
135
c = a % b;
lib/libc/stdlib/qsort.c
81
med3(char *a, char *b, char *c, cmp_t *cmp, void *thunk
lib/libc/stdlib/qsort.c
88
(CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a ))
lib/libc/stdlib/qsort.c
89
:(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c ));
lib/libc/stdlib/radixsort.c
102
int c;
lib/libc/stdlib/radixsort.c
127
int c;
lib/libc/stdlib/radixsort.c
148
c = tr[(*ak++)[i]];
lib/libc/stdlib/radixsort.c
149
if (++count[c] == 1 && c != endch) {
lib/libc/stdlib/radixsort.c
150
if (c < bmin)
lib/libc/stdlib/radixsort.c
151
bmin = c;
lib/libc/stdlib/radixsort.c
214
for (aj = a; aj < an; *aj = r, aj += count[c], count[c] = 0)
lib/libc/stdlib/radixsort.c
215
for (r = *aj; aj < (ak = --top[c = tr[r[i]]]);)
lib/libc/stdlib/radixsort.c
226
int c;
lib/libc/stdlib/radixsort.c
244
c = tr[(*ak)[i]];
lib/libc/stdlib/radixsort.c
245
if (++count[c] == 1 && c != endch) {
lib/libc/stdlib/radixsort.c
246
if (c < bmin)
lib/libc/stdlib/radixsort.c
247
bmin = c;
lib/libc/stdlib/radixsort.c
270
if ((c = *cp) > 1) {
lib/libc/stdlib/radixsort.c
271
if (c > bigc) {
lib/libc/stdlib/radixsort.c
272
bigc = c;
lib/libc/stdlib/radixsort.c
275
push(ak, c, i+1);
lib/libc/stdlib/radixsort.c
277
top[cp-count] = ak += c;
lib/libc/stdlib/radixsort.c
70
for (c = 0; c < endch; c++) \
lib/libc/stdlib/radixsort.c
71
tr0[c] = c + 1; \
lib/libc/stdlib/radixsort.c
72
tr0[c] = 0; \
lib/libc/stdlib/radixsort.c
73
for (c++; c < 256; c++) \
lib/libc/stdlib/radixsort.c
74
tr0[c] = c; \
lib/libc/stdlib/radixsort.c
90
int c;
lib/libc/stdlib/strtoimax.c
121
for ( ; ; c = *s++) {
lib/libc/stdlib/strtoimax.c
122
if (c >= '0' && c <= '9')
lib/libc/stdlib/strtoimax.c
123
c -= '0';
lib/libc/stdlib/strtoimax.c
124
else if (c >= 'A' && c <= 'Z')
lib/libc/stdlib/strtoimax.c
125
c -= 'A' - 10;
lib/libc/stdlib/strtoimax.c
126
else if (c >= 'a' && c <= 'z')
lib/libc/stdlib/strtoimax.c
127
c -= 'a' - 10;
lib/libc/stdlib/strtoimax.c
130
if (c >= base)
lib/libc/stdlib/strtoimax.c
132
if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
lib/libc/stdlib/strtoimax.c
137
acc += c;
lib/libc/stdlib/strtoimax.c
55
char c;
lib/libc/stdlib/strtoimax.c
67
c = *s++;
lib/libc/stdlib/strtoimax.c
68
} while (isspace_l((unsigned char)c, locale));
lib/libc/stdlib/strtoimax.c
69
if (c == '-') {
lib/libc/stdlib/strtoimax.c
71
c = *s++;
lib/libc/stdlib/strtoimax.c
74
if (c == '+')
lib/libc/stdlib/strtoimax.c
75
c = *s++;
lib/libc/stdlib/strtoimax.c
78
c == '0' && (*s == 'x' || *s == 'X') &&
lib/libc/stdlib/strtoimax.c
82
c = s[1];
lib/libc/stdlib/strtoimax.c
87
c == '0' && (*s == 'b' || *s == 'B') &&
lib/libc/stdlib/strtoimax.c
89
c = s[1];
lib/libc/stdlib/strtoimax.c
94
base = c == '0' ? 8 : 10;
lib/libc/stdlib/strtol.c
120
for ( ; ; c = *s++) {
lib/libc/stdlib/strtol.c
121
if (c >= '0' && c <= '9')
lib/libc/stdlib/strtol.c
122
c -= '0';
lib/libc/stdlib/strtol.c
123
else if (c >= 'A' && c <= 'Z')
lib/libc/stdlib/strtol.c
124
c -= 'A' - 10;
lib/libc/stdlib/strtol.c
125
else if (c >= 'a' && c <= 'z')
lib/libc/stdlib/strtol.c
126
c -= 'a' - 10;
lib/libc/stdlib/strtol.c
129
if (c >= base)
lib/libc/stdlib/strtol.c
131
if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
lib/libc/stdlib/strtol.c
136
acc += c;
lib/libc/stdlib/strtol.c
55
char c;
lib/libc/stdlib/strtol.c
67
c = *s++;
lib/libc/stdlib/strtol.c
68
} while (isspace_l((unsigned char)c, locale));
lib/libc/stdlib/strtol.c
69
if (c == '-') {
lib/libc/stdlib/strtol.c
71
c = *s++;
lib/libc/stdlib/strtol.c
74
if (c == '+')
lib/libc/stdlib/strtol.c
75
c = *s++;
lib/libc/stdlib/strtol.c
78
c == '0' && (*s == 'x' || *s == 'X') &&
lib/libc/stdlib/strtol.c
82
c = s[1];
lib/libc/stdlib/strtol.c
87
c == '0' && (*s == 'b' || *s == 'B') &&
lib/libc/stdlib/strtol.c
89
c = s[1];
lib/libc/stdlib/strtol.c
94
base = c == '0' ? 8 : 10;
lib/libc/stdlib/strtoll.c
122
for ( ; ; c = *s++) {
lib/libc/stdlib/strtoll.c
123
if (c >= '0' && c <= '9')
lib/libc/stdlib/strtoll.c
124
c -= '0';
lib/libc/stdlib/strtoll.c
125
else if (c >= 'A' && c <= 'Z')
lib/libc/stdlib/strtoll.c
126
c -= 'A' - 10;
lib/libc/stdlib/strtoll.c
127
else if (c >= 'a' && c <= 'z')
lib/libc/stdlib/strtoll.c
128
c -= 'a' - 10;
lib/libc/stdlib/strtoll.c
131
if (c >= base)
lib/libc/stdlib/strtoll.c
133
if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
lib/libc/stdlib/strtoll.c
138
acc += c;
lib/libc/stdlib/strtoll.c
55
char c;
lib/libc/stdlib/strtoll.c
68
c = *s++;
lib/libc/stdlib/strtoll.c
69
} while (isspace_l((unsigned char)c, locale));
lib/libc/stdlib/strtoll.c
70
if (c == '-') {
lib/libc/stdlib/strtoll.c
72
c = *s++;
lib/libc/stdlib/strtoll.c
75
if (c == '+')
lib/libc/stdlib/strtoll.c
76
c = *s++;
lib/libc/stdlib/strtoll.c
79
c == '0' && (*s == 'x' || *s == 'X') &&
lib/libc/stdlib/strtoll.c
83
c = s[1];
lib/libc/stdlib/strtoll.c
88
c == '0' && (*s == 'b' || *s == 'B') &&
lib/libc/stdlib/strtoll.c
90
c = s[1];
lib/libc/stdlib/strtoll.c
95
base = c == '0' ? 8 : 10;
lib/libc/stdlib/strtoul.c
100
c -= '0';
lib/libc/stdlib/strtoul.c
101
else if (c >= 'A' && c <= 'Z')
lib/libc/stdlib/strtoul.c
102
c -= 'A' - 10;
lib/libc/stdlib/strtoul.c
103
else if (c >= 'a' && c <= 'z')
lib/libc/stdlib/strtoul.c
104
c -= 'a' - 10;
lib/libc/stdlib/strtoul.c
107
if (c >= base)
lib/libc/stdlib/strtoul.c
109
if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
lib/libc/stdlib/strtoul.c
114
acc += c;
lib/libc/stdlib/strtoul.c
54
char c;
lib/libc/stdlib/strtoul.c
64
c = *s++;
lib/libc/stdlib/strtoul.c
65
} while (isspace_l((unsigned char)c, locale));
lib/libc/stdlib/strtoul.c
66
if (c == '-') {
lib/libc/stdlib/strtoul.c
68
c = *s++;
lib/libc/stdlib/strtoul.c
71
if (c == '+')
lib/libc/stdlib/strtoul.c
72
c = *s++;
lib/libc/stdlib/strtoul.c
75
c == '0' && (*s == 'x' || *s == 'X') &&
lib/libc/stdlib/strtoul.c
79
c = s[1];
lib/libc/stdlib/strtoul.c
84
c == '0' && (*s == 'b' || *s == 'B') &&
lib/libc/stdlib/strtoul.c
86
c = s[1];
lib/libc/stdlib/strtoul.c
91
base = c == '0' ? 8 : 10;
lib/libc/stdlib/strtoul.c
98
for ( ; ; c = *s++) {
lib/libc/stdlib/strtoul.c
99
if (c >= '0' && c <= '9')
lib/libc/stdlib/strtoull.c
100
if (c >= '0' && c <= '9')
lib/libc/stdlib/strtoull.c
101
c -= '0';
lib/libc/stdlib/strtoull.c
102
else if (c >= 'A' && c <= 'Z')
lib/libc/stdlib/strtoull.c
103
c -= 'A' - 10;
lib/libc/stdlib/strtoull.c
104
else if (c >= 'a' && c <= 'z')
lib/libc/stdlib/strtoull.c
105
c -= 'a' - 10;
lib/libc/stdlib/strtoull.c
108
if (c >= base)
lib/libc/stdlib/strtoull.c
110
if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
lib/libc/stdlib/strtoull.c
115
acc += c;
lib/libc/stdlib/strtoull.c
55
char c;
lib/libc/stdlib/strtoull.c
65
c = *s++;
lib/libc/stdlib/strtoull.c
66
} while (isspace_l((unsigned char)c, locale));
lib/libc/stdlib/strtoull.c
67
if (c == '-') {
lib/libc/stdlib/strtoull.c
69
c = *s++;
lib/libc/stdlib/strtoull.c
72
if (c == '+')
lib/libc/stdlib/strtoull.c
73
c = *s++;
lib/libc/stdlib/strtoull.c
76
c == '0' && (*s == 'x' || *s == 'X') &&
lib/libc/stdlib/strtoull.c
80
c = s[1];
lib/libc/stdlib/strtoull.c
85
c == '0' && (*s == 'b' || *s == 'B') &&
lib/libc/stdlib/strtoull.c
87
c = s[1];
lib/libc/stdlib/strtoull.c
92
base = c == '0' ? 8 : 10;
lib/libc/stdlib/strtoull.c
99
for ( ; ; c = *s++) {
lib/libc/stdlib/strtoumax.c
100
if (c >= '0' && c <= '9')
lib/libc/stdlib/strtoumax.c
101
c -= '0';
lib/libc/stdlib/strtoumax.c
102
else if (c >= 'A' && c <= 'Z')
lib/libc/stdlib/strtoumax.c
103
c -= 'A' - 10;
lib/libc/stdlib/strtoumax.c
104
else if (c >= 'a' && c <= 'z')
lib/libc/stdlib/strtoumax.c
105
c -= 'a' - 10;
lib/libc/stdlib/strtoumax.c
108
if (c >= base)
lib/libc/stdlib/strtoumax.c
110
if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
lib/libc/stdlib/strtoumax.c
115
acc += c;
lib/libc/stdlib/strtoumax.c
55
char c;
lib/libc/stdlib/strtoumax.c
65
c = *s++;
lib/libc/stdlib/strtoumax.c
66
} while (isspace_l((unsigned char)c, locale));
lib/libc/stdlib/strtoumax.c
67
if (c == '-') {
lib/libc/stdlib/strtoumax.c
69
c = *s++;
lib/libc/stdlib/strtoumax.c
72
if (c == '+')
lib/libc/stdlib/strtoumax.c
73
c = *s++;
lib/libc/stdlib/strtoumax.c
76
c == '0' && (*s == 'x' || *s == 'X') &&
lib/libc/stdlib/strtoumax.c
80
c = s[1];
lib/libc/stdlib/strtoumax.c
85
c == '0' && (*s == 'b' || *s == 'B') &&
lib/libc/stdlib/strtoumax.c
87
c = s[1];
lib/libc/stdlib/strtoumax.c
92
base = c == '0' ? 8 : 10;
lib/libc/stdlib/strtoumax.c
99
for ( ; ; c = *s++) {
lib/libc/stdtime/strptime.c
101
c = *ptr++;
lib/libc/stdtime/strptime.c
103
if (c != '%') {
lib/libc/stdtime/strptime.c
104
if (isspace_l((unsigned char)c, locale))
lib/libc/stdtime/strptime.c
108
else if (c != *buf++)
lib/libc/stdtime/strptime.c
116
c = *ptr++;
lib/libc/stdtime/strptime.c
117
switch (c) {
lib/libc/stdtime/strptime.c
248
if (c == 'M') {
lib/libc/stdtime/strptime.c
274
if ((c == 'k' || c == 'l') &&
lib/libc/stdtime/strptime.c
289
if (c == 'H' || c == 'k') {
lib/libc/stdtime/strptime.c
366
if (c == 'U')
lib/libc/stdtime/strptime.c
382
if (i < 0 || i > 7 || (c == 'u' && i < 1) ||
lib/libc/stdtime/strptime.c
383
(c == 'w' && i > 6))
lib/libc/stdtime/strptime.c
433
if (c == 'B') {
lib/libc/stdtime/strptime.c
520
len = (c == 'Y') ? 4 : 2;
lib/libc/stdtime/strptime.c
527
if (c == 'Y')
lib/libc/stdtime/strptime.c
81
char c;
lib/libc/string/memccpy.c
35
memccpy(void * restrict t, const void * restrict f, int c, size_t n)
lib/libc/string/memccpy.c
41
unsigned char uc = c;
lib/libc/string/memchr.c
36
memchr(const void *src, int c, size_t n)
lib/libc/string/memchr.c
39
c = (unsigned char)c;
lib/libc/string/memchr.c
41
for (; ((uintptr_t)s & ALIGN) && n && *s != c; s++, n--)
lib/libc/string/memchr.c
43
if (n && *s != c) {
lib/libc/string/memchr.c
46
size_t k = ONES * c;
lib/libc/string/memchr.c
53
for (; n && *s != c; s++, n--)
lib/libc/string/memrchr.c
26
memrchr(const void *s, int c, size_t n)
lib/libc/string/memrchr.c
33
if (*(--cp) == (unsigned char)c)
lib/libc/string/memset.c
101
c = (c << 16) | c; /* u_long is 32 bits. */
lib/libc/string/memset.c
104
c = (c << 32) | c; /* u_long is 64 bits. */
lib/libc/string/memset.c
60
#define WIDEVAL c
lib/libc/string/memset.c
68
u_long c;
lib/libc/string/memset.c
98
if ((c = (u_char)c0) != 0) { /* Fill the word. */
lib/libc/string/memset.c
99
c = (c << 8) | c; /* u_long is 16 bits. */
lib/libc/string/memset_s.c
34
memset_s(void *s, rsize_t smax, int c, rsize_t n)
lib/libc/string/memset_s.c
43
v = (unsigned char)c;
lib/libc/string/strcasestr.c
50
char c, sc;
lib/libc/string/strcasestr.c
54
if ((c = *find++) != 0) {
lib/libc/string/strcasestr.c
55
c = tolower_l((unsigned char)c, locale);
lib/libc/string/strcasestr.c
61
} while ((char)tolower_l((unsigned char)sc, locale) != c);
lib/libc/string/strchr.c
30
strchr(const char *s, int c)
lib/libc/string/strchr.c
32
char *r = __strchrnul(s, c);
lib/libc/string/strchr.c
33
return *(unsigned char *)r == (unsigned char)c ? r : NULL;
lib/libc/string/strchrnul.c
37
__strchrnul(const char *s, int c)
lib/libc/string/strchrnul.c
39
c = (unsigned char)c;
lib/libc/string/strchrnul.c
40
if (!c)
lib/libc/string/strchrnul.c
47
if (!*s || *(unsigned char *)s == c)
lib/libc/string/strchrnul.c
49
size_t k = ONES * c;
lib/libc/string/strchrnul.c
54
for (; *s && *(unsigned char *)s != c; s++)
lib/libc/string/strcspn.c
33
#define IDX(c) ((u_char)(c) / LONG_BIT)
lib/libc/string/strcspn.c
34
#define BIT(c) ((u_long)1 << ((u_char)(c) % LONG_BIT))
lib/libc/string/strnstr.c
45
char c, sc;
lib/libc/string/strnstr.c
48
if ((c = *find++) != '\0') {
lib/libc/string/strnstr.c
54
} while (sc != c);
lib/libc/string/strpbrk.c
41
int c, sc;
lib/libc/string/strpbrk.c
43
while ((c = *s1++) != 0) {
lib/libc/string/strpbrk.c
45
if (sc == c)
lib/libc/string/strrchr.c
39
char c;
lib/libc/string/strrchr.c
41
c = ch;
lib/libc/string/strrchr.c
43
if (*p == c)
lib/libc/string/strsep.c
51
int c, sc;
lib/libc/string/strsep.c
57
c = *s++;
lib/libc/string/strsep.c
60
if ((sc = *spanp++) == c) {
lib/libc/string/strsep.c
61
if (c == 0)
lib/libc/string/strspn.c
33
#define IDX(c) ((u_char)(c) / LONG_BIT)
lib/libc/string/strspn.c
34
#define BIT(c) ((u_long)1 << ((u_char)(c) % LONG_BIT))
lib/libc/string/strtok.c
51
int c, sc;
lib/libc/string/strtok.c
60
c = *s++;
lib/libc/string/strtok.c
62
if (c == sc)
lib/libc/string/strtok.c
66
if (c == 0) { /* no non-delimiter characters */
lib/libc/string/strtok.c
77
c = *s++;
lib/libc/string/strtok.c
80
if ((sc = *spanp++) == c) {
lib/libc/string/strtok.c
81
if (c == 0)
lib/libc/string/wcschr.c
32
wcschr(const wchar_t *s, wchar_t c)
lib/libc/string/wcschr.c
35
while (*s != c && *s != L'\0')
lib/libc/string/wcschr.c
37
if (*s == c)
lib/libc/string/wcscoll.c
105
c = *bp;
lib/libc/string/wcscoll.c
107
*fp-- = c;
lib/libc/string/wcscoll.c
88
wchar_t *bp, *fp, c;
lib/libc/string/wcscoll.c
95
c = *bp;
lib/libc/string/wcscoll.c
97
*fp-- = c;
lib/libc/string/wcsrchr.c
32
wcsrchr(const wchar_t *s, wchar_t c)
lib/libc/string/wcsrchr.c
38
if (*s == c)
lib/libc/string/wcsstr.c
43
wchar_t c, sc;
lib/libc/string/wcsstr.c
46
if ((c = *find++) != L'\0') {
lib/libc/string/wcsstr.c
52
} while (sc != c);
lib/libc/string/wcstok.c
45
wchar_t c, sc;
lib/libc/string/wcstok.c
54
c = *s++;
lib/libc/string/wcstok.c
56
if (c == sc)
lib/libc/string/wcstok.c
60
if (c == L'\0') { /* no non-delimiter characters */
lib/libc/string/wcstok.c
71
c = *s++;
lib/libc/string/wcstok.c
74
if ((sc = *spanp++) == c) {
lib/libc/string/wcstok.c
75
if (c == L'\0')
lib/libc/string/wmemchr.c
40
wmemchr(const wchar_t *s, wchar_t c, size_t n)
lib/libc/string/wmemchr.c
45
if (*s == c) {
lib/libc/string/wmemset.c
41
__ssp_real(wmemset)(wchar_t *s, wchar_t c, size_t n)
lib/libc/string/wmemset.c
48
*p = c;
lib/libc/tests/gen/arc4random_test.c
58
char c;
lib/libc/tests/gen/arc4random_test.c
64
arc4random_buf(&c, 1);
lib/libc/tests/resolv/resolv_test.c
258
int c;
lib/libc/tests/resolv/resolv_test.c
289
c = 0;
lib/libc/tests/resolv/resolv_test.c
295
c += ask[i] != got[i];
lib/libc/tests/resolv/resolv_test.c
302
return c;
lib/libc/tests/stdio/eintr_test.c
123
c = i;
lib/libc/tests/stdio/eintr_test.c
124
MD5Update(&md5, &c, 1);
lib/libc/tests/stdio/eintr_test.c
58
char c, digest0[33], digest[33], *p;
lib/libc/tests/stdio/getdelim_test.c
231
char c;
lib/libc/tests/stdio/getdelim_test.c
234
c = 0;
lib/libc/tests/stdio/getdelim_test.c
235
while (c != wait_c) {
lib/libc/tests/stdio/getdelim_test.c
236
len = read(fd, &c, 1);
lib/libc/tests/stdio/getdelim_test.c
247
_ipc_write(int fd, char c)
lib/libc/tests/stdio/getdelim_test.c
250
while ((write(fd, &c, 1) != 1))
lib/libc/tests/stdio/open_memstream2_test.c
134
if (fread(&c, sizeof(c), 1, fp) != 0)
lib/libc/tests/stdio/open_memstream2_test.c
77
char c;
lib/libc/tests/stdio/open_wmemstream_test.c
134
if (fread(&c, sizeof(c), 1, fp) != 0)
lib/libc/tests/stdio/open_wmemstream_test.c
77
wchar_t c;
lib/libc/tests/stdio/sscanf_test.c
334
int a = 0, b = 0, c = 0;
lib/libc/tests/stdio/sscanf_test.c
337
ATF_CHECK_EQ(4, sscanf("3.1415", "%d%c%2d%d", &a, &d, &b, &c));
lib/libc/tests/stdio/sscanf_test.c
340
ATF_CHECK_EQ(15, c);
lib/libc/tests/stdio/swscanf_test.c
337
int a = 0, b = 0, c = 0;
lib/libc/tests/stdio/swscanf_test.c
340
ATF_CHECK_EQ(4, swscanf(L"3.1415", L"%d%lc%2d%d", &a, &d, &b, &c));
lib/libc/tests/stdio/swscanf_test.c
343
ATF_CHECK_EQ(15, c);
lib/libc/tests/string/memrchr_test.c
73
do_values_test(unsigned char buf[], size_t len, size_t i, int c)
lib/libc/tests/string/memrchr_test.c
76
buf[-1] = c;
lib/libc/tests/string/memrchr_test.c
77
buf[len] = c;
lib/libc/tests/string/memrchr_test.c
78
memset(buf, c + 1, len);
lib/libc/tests/string/memrchr_test.c
81
buf[i] = c;
lib/libc/tests/string/memrchr_test.c
82
ATF_CHECK_EQ(memrchr_fn(buf, c, len), buf + i);
lib/libc/tests/string/memrchr_test.c
84
ATF_CHECK_EQ(memrchr_fn(buf, c, len), NULL);
lib/libc/tests/string/memrchr_test.c
91
int c;
lib/libc/tests/string/memrchr_test.c
97
for (c = 0; c <= UCHAR_MAX; c++)
lib/libc/tests/string/memrchr_test.c
98
do_values_test(buf + i + 1, j, k, c);
lib/libc/tests/string/memset_test.c
16
int c = 0xDEADBEEF;
lib/libc/tests/string/memset_test.c
17
memset(&b, c, 64);
lib/libc/tests/string/memset_test.c
19
assert(b[i] == (char)c);
lib/libc/tests/string/strrchr_test.c
105
do_values_test(char buf[], size_t len, size_t i, int c)
lib/libc/tests/string/strrchr_test.c
108
buf[-1] = c;
lib/libc/tests/string/strrchr_test.c
113
memset(buf, c == UCHAR_MAX ? c - 1 : c + 1, len);
lib/libc/tests/string/strrchr_test.c
116
buf[i] = c;
lib/libc/tests/string/strrchr_test.c
117
ATF_CHECK_EQ(strrchr_fn(buf, c), buf + i);
lib/libc/tests/string/strrchr_test.c
119
ATF_CHECK_EQ(strrchr_fn(buf, c), c == 0 ? buf + len : NULL);
lib/libc/tests/string/strrchr_test.c
131
int c;
lib/libc/tests/string/strrchr_test.c
137
for (c = 0; c <= UCHAR_MAX; c++)
lib/libc/tests/string/strrchr_test.c
138
do_values_test(buf + i + 1, j, k, c);
lib/libc/tests/string/wcscoll_test.c
100
c = random() & 0xFF;
lib/libc/tests/string/wcscoll_test.c
101
} while (!((c >= ' ' && c <= 127) ||
lib/libc/tests/string/wcscoll_test.c
102
(c >= 0xA0 && c <= 0xFF)));
lib/libc/tests/string/wcscoll_test.c
105
if (c <= 127) {
lib/libc/tests/string/wcscoll_test.c
106
*p++ = c;
lib/libc/tests/string/wcscoll_test.c
112
*p++ = 0xC0 + (c >> 6);
lib/libc/tests/string/wcscoll_test.c
114
*p++ = 0x80 + (c & 0x3F);
lib/libc/tests/string/wcscoll_test.c
49
wchar_t c[] = L"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzЁАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюяё";
lib/libc/tests/string/wcscoll_test.c
54
qsort(c, wcslen(c), sizeof(wchar_t), cmp);
lib/libc/tests/string/wcscoll_test.c
55
ATF_CHECK_MSG(wcscmp(c, res) == 0,
lib/libc/tests/string/wcscoll_test.c
56
"Bad collation, expected: '%ls' got '%ls'", res, c);
lib/libc/tests/string/wcscoll_test.c
90
int c;
lib/libc/tests/string/wcscoll_test.c
97
c = ' ';
lib/libc/xdr/xdr_array.c
116
for (i = 0; (i < c) && stat; i++) {
lib/libc/xdr/xdr_array.c
74
u_int c; /* the actual element count */
lib/libc/xdr/xdr_array.c
82
c = *sizep;
lib/libc/xdr/xdr_array.c
83
if ((c > maxsize || UINT_MAX/elsize < c) &&
lib/libc/xdr/xdr_array.c
87
nodesize = c * elsize;
lib/libc/xdr/xdr_array.c
96
if (c == 0)
lib/libc/yp/yplib.c
129
struct ypmatch_ent *n, *c = ypdb->cache;
lib/libc/yp/yplib.c
131
while (c != NULL) {
lib/libc/yp/yplib.c
132
n = c->ypc_next;
lib/libc/yp/yplib.c
133
ypmatch_cache_delete(ypdb, NULL, c);
lib/libc/yp/yplib.c
134
c = n;
lib/libc/yp/yplib.c
143
struct ypmatch_ent *c = ypdb->cache;
lib/libc/yp/yplib.c
149
while (c != NULL) {
lib/libc/yp/yplib.c
150
if (t >= c->ypc_expire_t) {
lib/libc/yp/yplib.c
151
n = c->ypc_next;
lib/libc/yp/yplib.c
152
ypmatch_cache_delete(ypdb, p, c);
lib/libc/yp/yplib.c
153
c = n;
lib/libc/yp/yplib.c
155
p = c;
lib/libc/yp/yplib.c
156
c = c->ypc_next;
lib/libc/yp/yplib.c
178
struct ypmatch_ent *o = NULL, *c = ypdb->cache;
lib/libc/yp/yplib.c
183
while (c != NULL) {
lib/libc/yp/yplib.c
184
if (c->ypc_expire_t < oldest) {
lib/libc/yp/yplib.c
185
oldest = c->ypc_expire_t;
lib/libc/yp/yplib.c
186
o = c;
lib/libc/yp/yplib.c
188
c = c->ypc_next;
lib/libc/yp/yplib.c
238
struct ypmatch_ent *c;
lib/libc/yp/yplib.c
242
for (c = ypdb->cache; c != NULL; c = c->ypc_next) {
lib/libc/yp/yplib.c
243
if (strcmp(map, c->ypc_map))
lib/libc/yp/yplib.c
245
if (key->keydat_len != c->ypc_key.keydat_len)
lib/libc/yp/yplib.c
247
if (bcmp(key->keydat_val, c->ypc_key.keydat_val,
lib/libc/yp/yplib.c
252
if (c == NULL)
lib/libc/yp/yplib.c
255
val->valdat_len = c->ypc_val.valdat_len;
lib/libc/yp/yplib.c
256
val->valdat_val = c->ypc_val.valdat_val;
lib/libcalendar/easter.c
40
int c, i, j, k, l, n;
lib/libcalendar/easter.c
43
c = y / 100;
lib/libcalendar/easter.c
44
k = (c - 17) / 25;
lib/libcalendar/easter.c
45
i = (c - c/4 -(c-k)/3 + 19 * n + 15) % 30;
lib/libcalendar/easter.c
47
j = (y + y/4 + i + 2 - c + c/4) % 7;
lib/libcam/scsi_cmdparse.c
555
char c;
lib/libcam/scsi_cmdparse.c
563
while ((ret = next_field(&fmt, &c, &width, &value, field_name,
lib/libcam/scsi_cmdparse.c
579
ret, c, width, value, field_name, error, suppress);
lib/libcam/scsi_cmdparse.c
582
if (c == 's') {
lib/libcompat/4.3/rexec.c
101
while ((c = getc(cfile)) != EOF &&
lib/libcompat/4.3/rexec.c
102
(c == '\n' || c == '\t' || c == ' ' || c == ','))
lib/libcompat/4.3/rexec.c
104
if (c == EOF)
lib/libcompat/4.3/rexec.c
107
if (c == '"') {
lib/libcompat/4.3/rexec.c
108
while ((c = getc(cfile)) != EOF && c != '"') {
lib/libcompat/4.3/rexec.c
109
if (c == '\\')
lib/libcompat/4.3/rexec.c
110
c = getc(cfile);
lib/libcompat/4.3/rexec.c
111
*cp++ = c;
lib/libcompat/4.3/rexec.c
114
*cp++ = c;
lib/libcompat/4.3/rexec.c
115
while ((c = getc(cfile)) != EOF
lib/libcompat/4.3/rexec.c
116
&& c != '\n' && c != '\t' && c != ' ' && c != ',') {
lib/libcompat/4.3/rexec.c
117
if (c == '\\')
lib/libcompat/4.3/rexec.c
118
c = getc(cfile);
lib/libcompat/4.3/rexec.c
119
*cp++ = c;
lib/libcompat/4.3/rexec.c
136
int t, i, c, usedefault = 0;
lib/libcompat/4.3/rexec.c
219
while ((c=getc(cfile)) != EOF &&
lib/libcompat/4.3/rexec.c
220
(c == ' ' || c == '\t'))
lib/libcompat/4.3/rexec.c
222
if (c == EOF || c == '\n') {
lib/libcompat/4.3/rexec.c
231
*tmp++ = c;
lib/libcompat/4.3/rexec.c
232
for (i=0; i < 8 && (c=getc(cfile)) != EOF &&
lib/libcompat/4.3/rexec.c
233
!isspace(c); ++i) {
lib/libcompat/4.3/rexec.c
234
*tmp++ = c;
lib/libcompat/4.3/rexec.c
236
if (c == EOF) {
lib/libcompat/4.3/rexec.c
241
if (c != '\n') {
lib/libcompat/4.3/rexec.c
242
while ((c=getc(cfile)) != EOF && c != '\n');
lib/libcompat/4.3/rexec.c
244
if (c == EOF) {
lib/libcompat/4.3/rexec.c
256
if ((c=getc(cfile)) == EOF) {
lib/libcompat/4.3/rexec.c
260
*tmp = c;
lib/libcompat/4.3/rexec.c
296
char c, *acct;
lib/libcompat/4.3/rexec.c
365
if (read(s, &c, 1) != 1) {
lib/libcompat/4.3/rexec.c
369
if (c != 0) {
lib/libcompat/4.3/rexec.c
370
while (read(s, &c, 1) == 1) {
lib/libcompat/4.3/rexec.c
371
(void) write(2, &c, 1);
lib/libcompat/4.3/rexec.c
372
if (c == '\n')
lib/libcompat/4.3/rexec.c
96
int c;
lib/libdpv/dprompt.c
377
char c;
lib/libdpv/dprompt.c
461
c = *lastline;
lib/libdpv/dprompt.c
464
*lastline = c;
lib/libdpv/dpv.c
299
c = *last;
lib/libdpv/dpv.c
302
*last = c;
lib/libdpv/dpv.c
92
char c;
lib/libefivar/efivar.h
50
#define EFI_GUID(a, b, c, d, e0, e1, e2, e3, e4, e5) \
lib/libefivar/efivar.h
51
((efi_guid_t) {(a), (b), (c), { (d) >> 8, (d) & 0xff, \
lib/libefivar/efivar.h
54
#define EFI_GUID(a, b, c, d, e0, e1, e2, e3, e4, e5) \
lib/libefivar/efivar.h
55
((efi_guid_t) {(a), (b), (c), { (d) & 0xff, (d) >> 8, \
lib/libfetch/common.c
1387
char c;
lib/libfetch/common.c
1401
len = fetch_read(conn, &c, 1);
lib/libfetch/common.c
1406
conn->buf[conn->buflen++] = c;
lib/libfetch/common.c
1417
} while (c != '\n');
lib/libfetch/fetch.c
319
char c;
lib/libfetch/fetch.c
325
c = d1 << 4 | d2;
lib/libfetch/fetch.c
331
c = *s;
lib/libfetch/fetch.c
334
*dst++ = c;
lib/libfetch/http.c
1247
http_digest_auth(conn_t *conn, const char *hdr, http_auth_challenge_t *c,
lib/libfetch/http.c
1255
if (!c->realm || !c->nonce) {
lib/libfetch/http.c
1259
if (!c->algo)
lib/libfetch/http.c
1260
c->algo = strdup("");
lib/libfetch/http.c
1263
*c->algo? ",algorithm=" : "", c->algo,
lib/libfetch/http.c
1264
c->opaque? ",opaque=" : "", c->opaque?c->opaque:"") < 0)
lib/libfetch/http.c
1267
if (!c->qop) {
lib/libfetch/http.c
1268
c->qop = strdup("");
lib/libfetch/http.c
1272
c->nc++;
lib/libfetch/http.c
1273
sprintf(noncecount, "%08x", c->nc);
lib/libfetch/http.c
1279
DigestCalcHA1(c->algo, parms->user, c->realm,
lib/libfetch/http.c
1280
parms->password, c->nonce, cnonce, HA1);
lib/libfetch/http.c
1284
DigestCalcResponse(HA1, c->nonce, noncecount, cnonce, c->qop,
lib/libfetch/http.c
1287
if (c->qop[0]) {
lib/libfetch/http.c
1291
hdr, parms->user, c->realm,
lib/libfetch/http.c
1292
c->nonce, url->doc, digest,
lib/libfetch/http.c
1297
hdr, parms->user, c->realm,
lib/libfetch/http.c
1298
c->nonce, url->doc, digest, options);
lib/libfetch/http.c
83
#define MD5Init(c) MD5_Init(c)
lib/libfetch/http.c
84
#define MD5Update(c, data, len) MD5_Update(c, data, len)
lib/libfetch/http.c
85
#define MD5Final(md, c) MD5_Final(md, c)
lib/libfigpar/string_m.c
177
uint8_t c;
lib/libfigpar/string_m.c
212
c = (uint8_t)strtoul(d, 0, 16);
lib/libfigpar/string_m.c
215
*pos = (c != 0 || d[0] == '0') ? c : *++chr;
lib/libfigpar/string_m.c
231
c = (uint8_t)strtoul(d, 0, 8);
lib/libfigpar/string_m.c
234
*pos = c;
lib/libgeom/geom_xml2tree.c
194
struct gconf *c;
lib/libgeom/geom_xml2tree.c
272
c = mt->config;
lib/libgeom/geom_xml2tree.c
274
c = &mt->provider->lg_config;
lib/libgeom/geom_xml2tree.c
276
c = &mt->geom->lg_config;
lib/libgeom/geom_xml2tree.c
297
LIST_INSERT_HEAD(c, gc, lg_config);
lib/libgeom/geom_xml2tree.c
517
geom_gettree_geom(struct gmesh *gmp, const char *c, const char *g, int parents)
lib/libgeom/geom_xml2tree.c
524
p = geom_getxml_geom(c, g, parents);
lib/libiconv_modules/BIG5/citrus_big5.c
150
_citrus_BIG5_check(_BIG5EncodingInfo *ei, unsigned int c)
lib/libiconv_modules/BIG5/citrus_big5.c
153
return ((ei->cell[c & 0xFF] & 0x1) ? 2 : 1);
lib/libiconv_modules/BIG5/citrus_big5.c
157
_citrus_BIG5_check2(_BIG5EncodingInfo *ei, unsigned int c)
lib/libiconv_modules/BIG5/citrus_big5.c
160
return ((ei->cell[c & 0xFF] & 0x2) ? 1 : 0);
lib/libiconv_modules/BIG5/citrus_big5.c
164
_citrus_BIG5_check_excludes(_BIG5EncodingInfo *ei, wint_t c)
lib/libiconv_modules/BIG5/citrus_big5.c
169
if (c >= exclude->start && c <= exclude->end)
lib/libiconv_modules/BIG5/citrus_big5.c
279
int c, chlenbak;
lib/libiconv_modules/BIG5/citrus_big5.c
307
c = _citrus_BIG5_check(ei, psenc->ch[0] & 0xff);
lib/libiconv_modules/BIG5/citrus_big5.c
308
if (c == 0)
lib/libiconv_modules/BIG5/citrus_big5.c
310
while (psenc->chlen < c) {
lib/libiconv_modules/BIG5/citrus_big5.c
319
switch (c) {
lib/libiconv_modules/BIG5/citrus_big5.c
340
*nresult = wchar ? c - chlenbak : 0;
lib/libiconv_modules/DECHanyu/citrus_dechanyu.c
122
is_singlebyte(int c)
lib/libiconv_modules/DECHanyu/citrus_dechanyu.c
125
return (c <= 0x7F);
lib/libiconv_modules/DECHanyu/citrus_dechanyu.c
129
is_leadbyte(int c)
lib/libiconv_modules/DECHanyu/citrus_dechanyu.c
132
return (c >= 0xA1 && c <= 0xFE);
lib/libiconv_modules/DECHanyu/citrus_dechanyu.c
136
is_trailbyte(int c)
lib/libiconv_modules/DECHanyu/citrus_dechanyu.c
139
c &= ~0x80;
lib/libiconv_modules/DECHanyu/citrus_dechanyu.c
140
return (c >= 0x21 && c <= 0x7E);
lib/libiconv_modules/DECHanyu/citrus_dechanyu.c
144
is_hanyu1(int c)
lib/libiconv_modules/DECHanyu/citrus_dechanyu.c
147
return (c == 0xC2);
lib/libiconv_modules/DECHanyu/citrus_dechanyu.c
151
is_hanyu2(int c)
lib/libiconv_modules/DECHanyu/citrus_dechanyu.c
154
return (c == 0xCB);
lib/libiconv_modules/DECHanyu/citrus_dechanyu.c
160
is_94charset(int c)
lib/libiconv_modules/DECHanyu/citrus_dechanyu.c
163
return (c >= 0x21 && c <= 0x7E);
lib/libiconv_modules/EUC/citrus_euc.c
113
_citrus_EUC_cs(unsigned int c)
lib/libiconv_modules/EUC/citrus_euc.c
116
c &= 0xff;
lib/libiconv_modules/EUC/citrus_euc.c
118
return ((c & 0x80) ? c == _SS3 ? 3 : c == _SS2 ? 2 : 1 : 0);
lib/libiconv_modules/EUC/citrus_euc.c
197
int c, chlenbak, cs, len;
lib/libiconv_modules/EUC/citrus_euc.c
227
c = ei->count[cs = _citrus_EUC_cs(psenc->ch[0] & 0xff)];
lib/libiconv_modules/EUC/citrus_euc.c
228
if (c == 0)
lib/libiconv_modules/EUC/citrus_euc.c
230
while (psenc->chlen < c) {
lib/libiconv_modules/EUC/citrus_euc.c
243
len = c - 1;
lib/libiconv_modules/EUC/citrus_euc.c
248
len = c;
lib/libiconv_modules/EUC/citrus_euc.c
262
*nresult = wchar ? (size_t)(c - chlenbak) : 0;
lib/libiconv_modules/EUCTW/citrus_euctw.c
104
_citrus_EUCTW_cs(unsigned int c)
lib/libiconv_modules/EUCTW/citrus_euctw.c
107
c &= 0xff;
lib/libiconv_modules/EUCTW/citrus_euctw.c
109
return ((c & 0x80) ? (c == _SS2 ? 2 : 1) : 0);
lib/libiconv_modules/EUCTW/citrus_euctw.c
184
int c, chlenbak, cs;
lib/libiconv_modules/EUCTW/citrus_euctw.c
213
c = _citrus_EUCTW_count(cs = _citrus_EUCTW_cs(psenc->ch[0] & 0xff));
lib/libiconv_modules/EUCTW/citrus_euctw.c
214
if (c == 0)
lib/libiconv_modules/EUCTW/citrus_euctw.c
216
while (psenc->chlen < c) {
lib/libiconv_modules/EUCTW/citrus_euctw.c
255
*nresult = wchar ? c - chlenbak : 0;
lib/libiconv_modules/GBK2K/citrus_gbk2k.c
104
_mb_singlebyte(int c)
lib/libiconv_modules/GBK2K/citrus_gbk2k.c
107
return ((c & 0xff) <= 0x7f);
lib/libiconv_modules/GBK2K/citrus_gbk2k.c
111
_mb_leadbyte(int c)
lib/libiconv_modules/GBK2K/citrus_gbk2k.c
114
c &= 0xff;
lib/libiconv_modules/GBK2K/citrus_gbk2k.c
115
return (0x81 <= c && c <= 0xfe);
lib/libiconv_modules/GBK2K/citrus_gbk2k.c
119
_mb_trailbyte(int c)
lib/libiconv_modules/GBK2K/citrus_gbk2k.c
122
c &= 0xff;
lib/libiconv_modules/GBK2K/citrus_gbk2k.c
123
return ((0x40 <= c && c <= 0x7e) || (0x80 <= c && c <= 0xfe));
lib/libiconv_modules/GBK2K/citrus_gbk2k.c
127
_mb_surrogate(int c)
lib/libiconv_modules/GBK2K/citrus_gbk2k.c
130
c &= 0xff;
lib/libiconv_modules/GBK2K/citrus_gbk2k.c
131
return (0x30 <= c && c <= 0x39);
lib/libiconv_modules/GBK2K/citrus_gbk2k.c
137
uint32_t c;
lib/libiconv_modules/GBK2K/citrus_gbk2k.c
139
c = (uint32_t)v; /* XXX */
lib/libiconv_modules/GBK2K/citrus_gbk2k.c
140
if (!(c & 0xffffff00))
lib/libiconv_modules/GBK2K/citrus_gbk2k.c
142
if (!(c & 0xffff0000))
lib/libiconv_modules/GBK2K/citrus_gbk2k.c
148
#define _PUSH_PSENC(c) (psenc->ch[psenc->chlen++] = (c))
lib/libiconv_modules/ISO2022/citrus_iso2022.c
851
int c, chlenbak;
lib/libiconv_modules/ISO2022/citrus_iso2022.c
859
c = 0;
lib/libiconv_modules/ISO2022/citrus_iso2022.c
884
c += result - p;
lib/libiconv_modules/ISO2022/citrus_iso2022.c
886
if (psenc->chlen > (size_t)c)
lib/libiconv_modules/ISO2022/citrus_iso2022.c
887
memmove(psenc->ch, result, psenc->chlen - c);
lib/libiconv_modules/ISO2022/citrus_iso2022.c
888
if (psenc->chlen < (size_t)c)
lib/libiconv_modules/ISO2022/citrus_iso2022.c
891
psenc->chlen -= c;
lib/libiconv_modules/ISO2022/citrus_iso2022.c
911
c += result - s0;
lib/libiconv_modules/ISO2022/citrus_iso2022.c
917
c += (result - s0);
lib/libiconv_modules/ISO2022/citrus_iso2022.c
925
n += c;
lib/libiconv_modules/ISO2022/citrus_iso2022.c
927
memcpy(psenc->ch, s0 - c, n);
lib/libiconv_modules/ISO2022/citrus_iso2022.c
944
*nresult = wchar ? c - chlenbak : 0;
lib/libiconv_modules/MSKanji/citrus_mskanji.c
110
_mskanji1(int c)
lib/libiconv_modules/MSKanji/citrus_mskanji.c
113
return ((c >= 0x81 && c <= 0x9f) || (c >= 0xe0 && c <= 0xfc));
lib/libiconv_modules/MSKanji/citrus_mskanji.c
117
_mskanji2(int c)
lib/libiconv_modules/MSKanji/citrus_mskanji.c
120
return ((c >= 0x40 && c <= 0x7e) || (c >= 0x80 && c <= 0xfc));
lib/libiconv_modules/UTF7/citrus_utf7.c
133
#define SHIFT7BIT(c) ((c) >> 7)
lib/libiconv_modules/UTF7/citrus_utf7.c
134
#define ISSPECIAL(c) ((c) == '\0' || (c) == BASE64_IN)
lib/libiconv_modules/UTF7/citrus_utf7.c
136
#define FINDLEN(ei, c) \
lib/libiconv_modules/UTF7/citrus_utf7.c
137
(SHIFT7BIT((c)) ? -1 : (((ei)->cell[(c)] & EI_MASK) - 1))
lib/libiconv_modules/UTF7/citrus_utf7.c
139
#define ISDIRECT(ei, c) (!SHIFT7BIT((c)) && (ISSPECIAL((c)) || \
lib/libiconv_modules/UTF7/citrus_utf7.c
140
ei->cell[(c)] & (EI_DIRECT | EI_OPTION | EI_SPACE)))
lib/libiconv_modules/UTF7/citrus_utf7.c
142
#define ISSAFE(ei, c) (!SHIFT7BIT((c)) && (ISSPECIAL((c)) || \
lib/libiconv_modules/UTF7/citrus_utf7.c
143
(c < 0x80 && ei->cell[(c)] & (EI_DIRECT | EI_SPACE))))
lib/libiconv_modules/UTF8/citrus_utf8.c
134
uint32_t c;
lib/libiconv_modules/UTF8/citrus_utf8.c
136
c = (uint32_t)v; /*XXX*/
lib/libiconv_modules/UTF8/citrus_utf8.c
138
if (c >= _UTF8_range[i] && c < _UTF8_range[i + 1])
lib/libiconv_modules/UTF8/citrus_utf8.c
186
uint8_t c;
lib/libiconv_modules/UTF8/citrus_utf8.c
203
c = _UTF8_count[psenc->ch[0] & 0xff];
lib/libiconv_modules/UTF8/citrus_utf8.c
204
if (c < 1 || c < psenc->chlen)
lib/libiconv_modules/UTF8/citrus_utf8.c
207
if (c == 1)
lib/libiconv_modules/UTF8/citrus_utf8.c
210
while (psenc->chlen < c) {
lib/libiconv_modules/UTF8/citrus_utf8.c
215
wchar = psenc->ch[0] & (0x7f >> c);
lib/libiconv_modules/UTF8/citrus_utf8.c
216
for (i = 1; i < c; i++) {
lib/libiconv_modules/UTF8/citrus_utf8.c
222
if (_UTF8_surrogate(wchar) || _UTF8_findlen(wchar) != c)
lib/libiconv_modules/UTF8/citrus_utf8.c
247
wchar_t c;
lib/libiconv_modules/UTF8/citrus_utf8.c
267
c = wc;
lib/libiconv_modules/UTF8/citrus_utf8.c
270
s[i] = 0x80 | (c & 0x3f);
lib/libiconv_modules/UTF8/citrus_utf8.c
271
c >>= 6;
lib/libiconv_modules/UTF8/citrus_utf8.c
273
s[0] = c;
lib/libiconv_modules/mapper_zone/citrus_mapper_zone.c
102
int c, i, sign = 0;
lib/libiconv_modules/mapper_zone/citrus_mapper_zone.c
108
c = _memstream_peek(ms);
lib/libiconv_modules/mapper_zone/citrus_mapper_zone.c
110
if (sign == 0 && (c == '+' || c == '-')) {
lib/libiconv_modules/mapper_zone/citrus_mapper_zone.c
111
sign = c;
lib/libiconv_modules/mapper_zone/citrus_mapper_zone.c
114
} else if (!_bcs_isdigit(c))
lib/libiconv_modules/mapper_zone/citrus_mapper_zone.c
116
} else if (!_bcs_isxdigit(c))
lib/libiconv_modules/mapper_zone/citrus_mapper_zone.c
117
if (!(i == 1 && c == 'x'))
lib/libiconv_modules/mapper_zone/citrus_mapper_zone.c
133
int c;
lib/libiconv_modules/mapper_zone/citrus_mapper_zone.c
136
c = _memstream_peek(ms);
lib/libiconv_modules/mapper_zone/citrus_mapper_zone.c
137
if (c == 0x00)
lib/libiconv_modules/mapper_zone/citrus_mapper_zone.c
139
if (_bcs_isspace(c)) {
lib/libiconv_modules/mapper_zone/citrus_mapper_zone.c
146
switch (c) {
lib/libiconv_modules/mapper_zone/citrus_mapper_zone.c
151
return (c);
lib/libiconv_modules/mapper_zone/citrus_mapper_zone.c
166
switch (c) {
lib/libiconv_modules/mapper_zone/citrus_mapper_zone.c
169
return (c);
lib/libipsec/policy_parse.y
69
#define ATOX(c) \
lib/libipsec/policy_parse.y
70
(isdigit(c) ? (c - '0') : (isupper(c) ? (c - 'A' + 10) : (c - 'a' + 10) ))
lib/libiscsiutil/utils.c
41
char *c;
lib/libiscsiutil/utils.c
43
c = strdup(s);
lib/libiscsiutil/utils.c
44
if (c == NULL)
lib/libiscsiutil/utils.c
46
return (c);
lib/libkiconv/quirks.c
161
quirk_vendor2unix(uint16_t c, struct quirk_replace_list *replace_list, size_t num)
lib/libkiconv/quirks.c
166
if (replace_list[i].vendor_code == c)
lib/libkiconv/quirks.c
169
return (c);
lib/libkiconv/quirks.c
173
quirk_unix2vendor(uint16_t c, struct quirk_replace_list *replace_list, size_t num)
lib/libkiconv/quirks.c
178
if (replace_list[i].standard_code == c)
lib/libkiconv/quirks.c
181
return (c);
lib/libkiconv/xlat16_iconv.c
156
uint16_t c;
lib/libkiconv/xlat16_iconv.c
194
c = ((ls & 0x100 ? us | 0x80 : us) << 8) | (u_char)ls;
lib/libkiconv/xlat16_iconv.c
197
if ((c & 0xff) == 0)
lib/libkiconv/xlat16_iconv.c
198
c >>= 8;
lib/libkiconv/xlat16_iconv.c
199
if (iswupper(c)) {
lib/libkiconv/xlat16_iconv.c
200
c = towlower(c);
lib/libkiconv/xlat16_iconv.c
201
if ((c & 0xff00) == 0)
lib/libkiconv/xlat16_iconv.c
202
c <<= 8;
lib/libkiconv/xlat16_iconv.c
203
table[us] = c | XLAT16_HAS_LOWER_CASE;
lib/libkiconv/xlat16_iconv.c
204
} else if (iswlower(c)) {
lib/libkiconv/xlat16_iconv.c
205
c = towupper(c);
lib/libkiconv/xlat16_iconv.c
206
if ((c & 0xff00) == 0)
lib/libkiconv/xlat16_iconv.c
207
c <<= 8;
lib/libkiconv/xlat16_iconv.c
208
table[us] = c | XLAT16_HAS_UPPER_CASE;
lib/libkiconv/xlat16_iconv.c
220
c = quirk_vendor2unix(c, pre_q_list, pre_q_size);
lib/libkiconv/xlat16_iconv.c
221
src[0] = (u_char)(c >> 8);
lib/libkiconv/xlat16_iconv.c
222
src[1] = (u_char)c;
lib/libkiconv/xlat16_iconv.c
270
c = ls > 0xff ? us | 0x80 : us;
lib/libkiconv/xlat16_iconv.c
271
if (lcase & KICONV_FROM_LOWER && c != tolower(c)) {
lib/libkiconv/xlat16_iconv.c
272
table[us] |= (u_char)tolower(c) << 16;
lib/libkiconv/xlat16_iconv.c
275
if (lcase & KICONV_FROM_UPPER && c != toupper(c)) {
lib/libkiconv/xlat16_iconv.c
276
table[us] |= (u_char)toupper(c) << 16;
lib/libkvm/kvm_pcpu.c
368
uint64_t r, c;
lib/libkvm/kvm_pcpu.c
376
if (kvm_read_zpcpu(kd, base, &c, sizeof(c), i) != sizeof(c))
lib/libkvm/kvm_pcpu.c
378
r += c;
lib/libmd/amd64/sha1dispatch.c
57
sha1block_avx2_wrapper(SHA1_CTX *c, const void *data, size_t len)
lib/libmd/amd64/sha1dispatch.c
73
_libmd_sha1block_avx2(c, data, safe_len);
lib/libmd/amd64/sha1dispatch.c
74
_libmd_sha1block_scalar(c, data + safe_len, len - safe_len);
lib/libmd/amd64/sha1dispatch.c
76
_libmd_sha1block_scalar(c, data, len);
lib/libmd/ripemd.h
120
void RIPEMD160_Init(RIPEMD160_CTX *c);
lib/libmd/ripemd.h
121
void RIPEMD160_Update(RIPEMD160_CTX *c, const void *data,
lib/libmd/ripemd.h
123
void RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);
lib/libmd/rmd160c.c
100
void RIPEMD160_Update(RIPEMD160_CTX *c, const void *in, size_t len)
lib/libmd/rmd160c.c
109
l=(c->Nl+(len<<3))&0xffffffffL;
lib/libmd/rmd160c.c
110
if (l < c->Nl) /* overflow */
lib/libmd/rmd160c.c
111
c->Nh++;
lib/libmd/rmd160c.c
112
c->Nh+=(len>>29);
lib/libmd/rmd160c.c
113
c->Nl=l;
lib/libmd/rmd160c.c
115
if (c->num != 0)
lib/libmd/rmd160c.c
117
p=c->data;
lib/libmd/rmd160c.c
118
sw=c->num>>2;
lib/libmd/rmd160c.c
119
sc=c->num&0x03;
lib/libmd/rmd160c.c
121
if ((c->num+len) >= RIPEMD160_CBLOCK)
lib/libmd/rmd160c.c
131
len-=(RIPEMD160_CBLOCK-c->num);
lib/libmd/rmd160c.c
133
ripemd160_block(c,p,64);
lib/libmd/rmd160c.c
134
c->num=0;
lib/libmd/rmd160c.c
141
c->num+=(int)len;
lib/libmd/rmd160c.c
150
ew=(c->num>>2);
lib/libmd/rmd160c.c
151
ec=(c->num&0x03);
lib/libmd/rmd160c.c
175
ripemd160_block(c,(u_int32_t *)data,sw);
lib/libmd/rmd160c.c
181
p=c->data;
lib/libmd/rmd160c.c
207
p=c->data;
lib/libmd/rmd160c.c
208
ripemd160_block(c,p,64);
lib/libmd/rmd160c.c
212
c->num=sc;
lib/libmd/rmd160c.c
229
static void RIPEMD160_Transform(RIPEMD160_CTX *c, unsigned char *b)
lib/libmd/rmd160c.c
261
ripemd160_block(c,p,64);
lib/libmd/rmd160c.c
269
u_int32_t a,b,c,d,e;
lib/libmd/rmd160c.c
360
a=A; b=B; c=C; d=D; e=E;
lib/libmd/rmd160c.c
449
D =ctx->B+c+D;
lib/libmd/rmd160c.c
463
void RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c)
lib/libmd/rmd160c.c
472
p=c->data;
lib/libmd/rmd160c.c
473
j=c->num;
lib/libmd/rmd160c.c
493
if (c->num >= RIPEMD160_LAST_BLOCK)
lib/libmd/rmd160c.c
497
ripemd160_block(c,p,64);
lib/libmd/rmd160c.c
502
p[RIPEMD160_LBLOCK-2]=c->Nl;
lib/libmd/rmd160c.c
503
p[RIPEMD160_LBLOCK-1]=c->Nh;
lib/libmd/rmd160c.c
504
ripemd160_block(c,p,64);
lib/libmd/rmd160c.c
506
l=c->A; l2c(l,cp);
lib/libmd/rmd160c.c
507
l=c->B; l2c(l,cp);
lib/libmd/rmd160c.c
508
l=c->C; l2c(l,cp);
lib/libmd/rmd160c.c
509
l=c->D; l2c(l,cp);
lib/libmd/rmd160c.c
510
l=c->E; l2c(l,cp);
lib/libmd/rmd160c.c
513
explicit_bzero(&c, sizeof(c));
lib/libmd/rmd160c.c
82
void ripemd160_block_x86(RIPEMD160_CTX *c, const u_int32_t *p,int num);
lib/libmd/rmd160c.c
85
void ripemd160_block(RIPEMD160_CTX *c, const u_int32_t *p,int num);
lib/libmd/rmd160c.c
88
void RIPEMD160_Init(RIPEMD160_CTX *c)
lib/libmd/rmd160c.c
90
c->A=RIPEMD160_A;
lib/libmd/rmd160c.c
91
c->B=RIPEMD160_B;
lib/libmd/rmd160c.c
92
c->C=RIPEMD160_C;
lib/libmd/rmd160c.c
93
c->D=RIPEMD160_D;
lib/libmd/rmd160c.c
94
c->E=RIPEMD160_E;
lib/libmd/rmd160c.c
95
c->Nl=0;
lib/libmd/rmd160c.c
96
c->Nh=0;
lib/libmd/rmd160c.c
97
c->num=0;
lib/libmd/rmd_locl.h
102
#define nl2c(l,c) (*((c)++)=(unsigned char)(((l)>>24)&0xff), \
lib/libmd/rmd_locl.h
103
*((c)++)=(unsigned char)(((l)>>16)&0xff), \
lib/libmd/rmd_locl.h
104
*((c)++)=(unsigned char)(((l)>> 8)&0xff), \
lib/libmd/rmd_locl.h
105
*((c)++)=(unsigned char)(((l) )&0xff))
lib/libmd/rmd_locl.h
108
#define c2l(c,l) (l =(((u_int32_t)(*((c)++))) ), \
lib/libmd/rmd_locl.h
109
l|=(((u_int32_t)(*((c)++)))<< 8), \
lib/libmd/rmd_locl.h
110
l|=(((u_int32_t)(*((c)++)))<<16), \
lib/libmd/rmd_locl.h
111
l|=(((u_int32_t)(*((c)++)))<<24))
lib/libmd/rmd_locl.h
114
#define p_c2l(c,l,n) { \
lib/libmd/rmd_locl.h
116
case 0: l =((u_int32_t)(*((c)++))); \
lib/libmd/rmd_locl.h
117
case 1: l|=((u_int32_t)(*((c)++)))<< 8; \
lib/libmd/rmd_locl.h
118
case 2: l|=((u_int32_t)(*((c)++)))<<16; \
lib/libmd/rmd_locl.h
119
case 3: l|=((u_int32_t)(*((c)++)))<<24; \
lib/libmd/rmd_locl.h
125
#define c2l_p(c,l,n) { \
lib/libmd/rmd_locl.h
127
(c)+=n; \
lib/libmd/rmd_locl.h
129
case 3: l =((u_int32_t)(*(--(c))))<<16; \
lib/libmd/rmd_locl.h
130
case 2: l|=((u_int32_t)(*(--(c))))<< 8; \
lib/libmd/rmd_locl.h
131
case 1: l|=((u_int32_t)(*(--(c)))); \
lib/libmd/rmd_locl.h
136
#define p_c2l_p(c,l,sc,len) { \
lib/libmd/rmd_locl.h
139
case 0: l =((u_int32_t)(*((c)++))); \
lib/libmd/rmd_locl.h
141
case 1: l|=((u_int32_t)(*((c)++)))<< 8; \
lib/libmd/rmd_locl.h
143
case 2: l|=((u_int32_t)(*((c)++)))<<16; \
lib/libmd/rmd_locl.h
148
#define l2c(l,c) (*((c)++)=(unsigned char)(((l) )&0xff), \
lib/libmd/rmd_locl.h
149
*((c)++)=(unsigned char)(((l)>> 8)&0xff), \
lib/libmd/rmd_locl.h
150
*((c)++)=(unsigned char)(((l)>>16)&0xff), \
lib/libmd/rmd_locl.h
151
*((c)++)=(unsigned char)(((l)>>24)&0xff))
lib/libmd/rmd_locl.h
192
#define RIP1(a,b,c,d,e,w,s) { \
lib/libmd/rmd_locl.h
193
a+=F1(b,c,d)+X[w]; \
lib/libmd/rmd_locl.h
195
c=ROTATE(c,10); }
lib/libmd/rmd_locl.h
197
#define RIP2(a,b,c,d,e,w,s,K) { \
lib/libmd/rmd_locl.h
198
a+=F2(b,c,d)+X[w]+K; \
lib/libmd/rmd_locl.h
200
c=ROTATE(c,10); }
lib/libmd/rmd_locl.h
202
#define RIP3(a,b,c,d,e,w,s,K) { \
lib/libmd/rmd_locl.h
203
a+=F3(b,c,d)+X[w]+K; \
lib/libmd/rmd_locl.h
205
c=ROTATE(c,10); }
lib/libmd/rmd_locl.h
207
#define RIP4(a,b,c,d,e,w,s,K) { \
lib/libmd/rmd_locl.h
208
a+=F4(b,c,d)+X[w]+K; \
lib/libmd/rmd_locl.h
210
c=ROTATE(c,10); }
lib/libmd/rmd_locl.h
212
#define RIP5(a,b,c,d,e,w,s,K) { \
lib/libmd/rmd_locl.h
213
a+=F5(b,c,d)+X[w]+K; \
lib/libmd/rmd_locl.h
215
c=ROTATE(c,10); }
lib/libmd/rmd_locl.h
62
#define c2nl(c,l) (l =(((u_int32_t)(*((c)++)))<<24), \
lib/libmd/rmd_locl.h
63
l|=(((u_int32_t)(*((c)++)))<<16), \
lib/libmd/rmd_locl.h
64
l|=(((u_int32_t)(*((c)++)))<< 8), \
lib/libmd/rmd_locl.h
65
l|=(((u_int32_t)(*((c)++))) ))
lib/libmd/rmd_locl.h
68
#define p_c2nl(c,l,n) { \
lib/libmd/rmd_locl.h
70
case 0: l =((u_int32_t)(*((c)++)))<<24; \
lib/libmd/rmd_locl.h
71
case 1: l|=((u_int32_t)(*((c)++)))<<16; \
lib/libmd/rmd_locl.h
72
case 2: l|=((u_int32_t)(*((c)++)))<< 8; \
lib/libmd/rmd_locl.h
73
case 3: l|=((u_int32_t)(*((c)++))); \
lib/libmd/rmd_locl.h
79
#define c2nl_p(c,l,n) { \
lib/libmd/rmd_locl.h
81
(c)+=n; \
lib/libmd/rmd_locl.h
83
case 3: l =((u_int32_t)(*(--(c))))<< 8; \
lib/libmd/rmd_locl.h
84
case 2: l|=((u_int32_t)(*(--(c))))<<16; \
lib/libmd/rmd_locl.h
85
case 1: l|=((u_int32_t)(*(--(c))))<<24; \
lib/libmd/rmd_locl.h
90
#define p_c2nl_p(c,l,sc,len) { \
lib/libmd/rmd_locl.h
93
case 0: l =((u_int32_t)(*((c)++)))<<24; \
lib/libmd/rmd_locl.h
95
case 1: l|=((u_int32_t)(*((c)++)))<<16; \
lib/libmd/rmd_locl.h
97
case 2: l|=((u_int32_t)(*((c)++)))<< 8; \
lib/libmd/sha.h
149
void SHA_Init(SHA_CTX *c);
lib/libmd/sha.h
150
void SHA_Update(SHA_CTX *c, const void *data, size_t len);
lib/libmd/sha.h
151
void SHA_Final(unsigned char *md, SHA_CTX *c);
lib/libmd/sha.h
159
void SHA1_Init(SHA_CTX *c);
lib/libmd/sha.h
160
void SHA1_Update(SHA_CTX *c, const void *data, size_t len);
lib/libmd/sha.h
161
void SHA1_Final(unsigned char *md, SHA_CTX *c);
lib/libmd/sha0c.c
102
void SHA_Init(SHA_CTX *c)
lib/libmd/sha0c.c
104
c->h0=INIT_DATA_h0;
lib/libmd/sha0c.c
105
c->h1=INIT_DATA_h1;
lib/libmd/sha0c.c
106
c->h2=INIT_DATA_h2;
lib/libmd/sha0c.c
107
c->h3=INIT_DATA_h3;
lib/libmd/sha0c.c
108
c->h4=INIT_DATA_h4;
lib/libmd/sha0c.c
109
c->Nl=0;
lib/libmd/sha0c.c
110
c->Nh=0;
lib/libmd/sha0c.c
111
c->num=0;
lib/libmd/sha0c.c
114
void SHA_Update(SHA_CTX *c, const void *in, size_t len)
lib/libmd/sha0c.c
123
l=(c->Nl+(len<<3))&0xffffffffL;
lib/libmd/sha0c.c
124
if (l < c->Nl) /* overflow */
lib/libmd/sha0c.c
125
c->Nh++;
lib/libmd/sha0c.c
126
c->Nh+=(len>>29);
lib/libmd/sha0c.c
127
c->Nl=l;
lib/libmd/sha0c.c
129
if (c->num != 0)
lib/libmd/sha0c.c
131
p=c->data;
lib/libmd/sha0c.c
132
sw=c->num>>2;
lib/libmd/sha0c.c
133
sc=c->num&0x03;
lib/libmd/sha0c.c
135
if ((c->num+len) >= SHA_CBLOCK)
lib/libmd/sha0c.c
145
len-=(SHA_CBLOCK-c->num);
lib/libmd/sha0c.c
147
sha_block(c,p,64);
lib/libmd/sha0c.c
148
c->num=0;
lib/libmd/sha0c.c
153
c->num+=(int)len;
lib/libmd/sha0c.c
162
ew=(c->num>>2);
lib/libmd/sha0c.c
163
ec=(c->num&0x03);
lib/libmd/sha0c.c
192
sha_block(c,(u_int32_t *)data,sw);
lib/libmd/sha0c.c
201
p=c->data;
lib/libmd/sha0c.c
218
p=c->data;
lib/libmd/sha0c.c
229
p=c->data;
lib/libmd/sha0c.c
231
sha_block(c,p,64);
lib/libmd/sha0c.c
235
c->num=ec;
lib/libmd/sha0c.c
245
static void SHA_Transform(SHA_CTX *c, unsigned char *b)
lib/libmd/sha0c.c
277
sha_block(c,p,64);
lib/libmd/sha0c.c
280
void sha_block(SHA_CTX *c, const u_int32_t *W, int num)
lib/libmd/sha0c.c
285
A=c->h0;
lib/libmd/sha0c.c
286
B=c->h1;
lib/libmd/sha0c.c
287
C=c->h2;
lib/libmd/sha0c.c
288
D=c->h3;
lib/libmd/sha0c.c
289
E=c->h4;
lib/libmd/sha0c.c
377
c->h0=(c->h0+E)&0xffffffffL;
lib/libmd/sha0c.c
378
c->h1=(c->h1+T)&0xffffffffL;
lib/libmd/sha0c.c
379
c->h2=(c->h2+A)&0xffffffffL;
lib/libmd/sha0c.c
380
c->h3=(c->h3+B)&0xffffffffL;
lib/libmd/sha0c.c
381
c->h4=(c->h4+C)&0xffffffffL;
lib/libmd/sha0c.c
386
A=c->h0;
lib/libmd/sha0c.c
387
B=c->h1;
lib/libmd/sha0c.c
388
C=c->h2;
lib/libmd/sha0c.c
389
D=c->h3;
lib/libmd/sha0c.c
390
E=c->h4;
lib/libmd/sha0c.c
396
void SHA_Final(unsigned char *md, SHA_CTX *c)
lib/libmd/sha0c.c
405
p=c->data;
lib/libmd/sha0c.c
406
j=c->num;
lib/libmd/sha0c.c
416
if (c->num >= SHA_LAST_BLOCK)
lib/libmd/sha0c.c
420
sha_block(c,p,64);
lib/libmd/sha0c.c
425
p[SHA_LBLOCK-2]=c->Nh;
lib/libmd/sha0c.c
426
p[SHA_LBLOCK-1]=c->Nl;
lib/libmd/sha0c.c
427
sha_block(c,p,64);
lib/libmd/sha0c.c
429
l=c->h0; nl2c(l,cp);
lib/libmd/sha0c.c
430
l=c->h1; nl2c(l,cp);
lib/libmd/sha0c.c
431
l=c->h2; nl2c(l,cp);
lib/libmd/sha0c.c
432
l=c->h3; nl2c(l,cp);
lib/libmd/sha0c.c
433
l=c->h4; nl2c(l,cp);
lib/libmd/sha0c.c
436
explicit_bzero(&c, sizeof(c));
lib/libmd/sha0c.c
91
void sha_block(SHA_CTX *c, const u_int32_t *p, int num);
lib/libmd/sha1c.c
102
sha1_block(c, p, n);
lib/libmd/sha1c.c
108
memcpy(c->data, p, len);
lib/libmd/sha1c.c
109
c->num = len;
lib/libmd/sha1c.c
114
SHA1_Final(unsigned char *md, SHA1_CTX *c)
lib/libmd/sha1c.c
120
len = (uint64_t)c->Nl | (uint64_t)c->Nh << 32;
lib/libmd/sha1c.c
121
t = 64 + 56 - c->Nl % 64;
lib/libmd/sha1c.c
128
SHA1_Update(c, tmp, t + 8);
lib/libmd/sha1c.c
129
assert(c->num == 0);
lib/libmd/sha1c.c
131
be32enc(md + 0, c->h0);
lib/libmd/sha1c.c
132
be32enc(md + 4, c->h1);
lib/libmd/sha1c.c
133
be32enc(md + 8, c->h2);
lib/libmd/sha1c.c
134
be32enc(md + 12, c->h3);
lib/libmd/sha1c.c
135
be32enc(md + 16, c->h4);
lib/libmd/sha1c.c
137
explicit_bzero(c, sizeof(*c));
lib/libmd/sha1c.c
143
sha1_block(SHA1_CTX *c, const void *data, size_t len)
lib/libmd/sha1c.c
146
uint32_t h0 = c->h0, h1 = c->h1, h2 = c->h2, h3 = c->h3, h4 = c->h4;
lib/libmd/sha1c.c
151
uint32_t a = h0, b = h1, c = h2, d = h3, e = h4;
lib/libmd/sha1c.c
160
f = b & c | ~b & d;
lib/libmd/sha1c.c
163
d = c;
lib/libmd/sha1c.c
164
c = b << 30 | b >> 32 - 30;
lib/libmd/sha1c.c
174
f = b & c | ~b & d;
lib/libmd/sha1c.c
177
d = c;
lib/libmd/sha1c.c
178
c = b << 30 | b >> 32 - 30;
lib/libmd/sha1c.c
188
f = b ^ c ^ d;
lib/libmd/sha1c.c
191
d = c;
lib/libmd/sha1c.c
192
c = b << 30 | b >> 32 - 30;
lib/libmd/sha1c.c
202
f = (b | c) & d | b & c;
lib/libmd/sha1c.c
205
d = c;
lib/libmd/sha1c.c
206
c = b << 30 | b >> 32 - 30;
lib/libmd/sha1c.c
216
f = b ^ c ^ d;
lib/libmd/sha1c.c
219
d = c;
lib/libmd/sha1c.c
220
c = b << 30 | b >> 32 - 30;
lib/libmd/sha1c.c
227
h2 += c;
lib/libmd/sha1c.c
235
c->h0 = h0;
lib/libmd/sha1c.c
236
c->h1 = h1;
lib/libmd/sha1c.c
237
c->h2 = h2;
lib/libmd/sha1c.c
238
c->h3 = h3;
lib/libmd/sha1c.c
239
c->h4 = h4;
lib/libmd/sha1c.c
59
SHA1_Init(SHA1_CTX *c)
lib/libmd/sha1c.c
61
c->h0 = INIT0;
lib/libmd/sha1c.c
62
c->h1 = INIT1;
lib/libmd/sha1c.c
63
c->h2 = INIT2;
lib/libmd/sha1c.c
64
c->h3 = INIT3;
lib/libmd/sha1c.c
65
c->h4 = INIT4;
lib/libmd/sha1c.c
66
c->Nl = 0;
lib/libmd/sha1c.c
67
c->Nh = 0;
lib/libmd/sha1c.c
68
c->num = 0;
lib/libmd/sha1c.c
72
SHA1_Update(SHA1_CTX *c, const void *data, size_t len)
lib/libmd/sha1c.c
77
nn = (uint64_t)c->Nl | (uint64_t)c->Nh << 32;
lib/libmd/sha1c.c
79
c->Nl = (uint32_t)nn;
lib/libmd/sha1c.c
80
c->Nh = (uint32_t)(nn >> 32);
lib/libmd/sha1c.c
82
if (c->num > 0) {
lib/libmd/sha1c.c
83
size_t n = SHA_CBLOCK - c->num;
lib/libmd/sha1c.c
88
memcpy((char *)c->data + c->num, p, n);
lib/libmd/sha1c.c
89
c->num += n;
lib/libmd/sha1c.c
90
if (c->num == SHA_CBLOCK) {
lib/libmd/sha1c.c
91
sha1_block(c, (void *)c->data, SHA_CBLOCK);
lib/libmd/sha1c.c
92
c->num = 0;
lib/libmd/sha_locl.h
103
#define p_c2nl_p(c,l,sc,len) { \
lib/libmd/sha_locl.h
106
case 0: l =((unsigned long)(*((c)++)))<<24; \
lib/libmd/sha_locl.h
108
case 1: l|=((unsigned long)(*((c)++)))<<16; \
lib/libmd/sha_locl.h
110
case 2: l|=((unsigned long)(*((c)++)))<< 8; \
lib/libmd/sha_locl.h
115
#define nl2c(l,c) (*((c)++)=(unsigned char)(((l)>>24)&0xff), \
lib/libmd/sha_locl.h
116
*((c)++)=(unsigned char)(((l)>>16)&0xff), \
lib/libmd/sha_locl.h
117
*((c)++)=(unsigned char)(((l)>> 8)&0xff), \
lib/libmd/sha_locl.h
118
*((c)++)=(unsigned char)(((l) )&0xff))
lib/libmd/sha_locl.h
121
#define c2l(c,l) (l =(((unsigned long)(*((c)++))) ), \
lib/libmd/sha_locl.h
122
l|=(((unsigned long)(*((c)++)))<< 8), \
lib/libmd/sha_locl.h
123
l|=(((unsigned long)(*((c)++)))<<16), \
lib/libmd/sha_locl.h
124
l|=(((unsigned long)(*((c)++)))<<24))
lib/libmd/sha_locl.h
127
#define p_c2l(c,l,n) { \
lib/libmd/sha_locl.h
129
case 0: l =((unsigned long)(*((c)++))); \
lib/libmd/sha_locl.h
130
case 1: l|=((unsigned long)(*((c)++)))<< 8; \
lib/libmd/sha_locl.h
131
case 2: l|=((unsigned long)(*((c)++)))<<16; \
lib/libmd/sha_locl.h
132
case 3: l|=((unsigned long)(*((c)++)))<<24; \
lib/libmd/sha_locl.h
138
#define c2l_p(c,l,n) { \
lib/libmd/sha_locl.h
140
(c)+=n; \
lib/libmd/sha_locl.h
142
case 3: l =((unsigned long)(*(--(c))))<<16; \
lib/libmd/sha_locl.h
143
case 2: l|=((unsigned long)(*(--(c))))<< 8; \
lib/libmd/sha_locl.h
144
case 1: l|=((unsigned long)(*(--(c)))); \
lib/libmd/sha_locl.h
149
#define p_c2l_p(c,l,sc,len) { \
lib/libmd/sha_locl.h
152
case 0: l =((unsigned long)(*((c)++))); \
lib/libmd/sha_locl.h
154
case 1: l|=((unsigned long)(*((c)++)))<< 8; \
lib/libmd/sha_locl.h
156
case 2: l|=((unsigned long)(*((c)++)))<<16; \
lib/libmd/sha_locl.h
161
#define l2c(l,c) (*((c)++)=(unsigned char)(((l) )&0xff), \
lib/libmd/sha_locl.h
162
*((c)++)=(unsigned char)(((l)>> 8)&0xff), \
lib/libmd/sha_locl.h
163
*((c)++)=(unsigned char)(((l)>>16)&0xff), \
lib/libmd/sha_locl.h
164
*((c)++)=(unsigned char)(((l)>>24)&0xff))
lib/libmd/sha_locl.h
198
#define F_00_19(b,c,d) ((((c) ^ (d)) & (b)) ^ (d))
lib/libmd/sha_locl.h
199
#define F_20_39(b,c,d) ((b) ^ (c) ^ (d))
lib/libmd/sha_locl.h
200
#define F_40_59(b,c,d) (((b) & (c)) | (((b)|(c)) & (d)))
lib/libmd/sha_locl.h
201
#define F_60_79(b,c,d) F_20_39(b,c,d)
lib/libmd/sha_locl.h
215
#define BODY_00_15(i,a,b,c,d,e,f,xa) \
lib/libmd/sha_locl.h
216
(f)=xa[i]+(e)+K_00_19+ROTATE((a),5)+F_00_19((b),(c),(d)); \
lib/libmd/sha_locl.h
219
#define BODY_16_19(i,a,b,c,d,e,f,xa,xb,xc,xd) \
lib/libmd/sha_locl.h
221
(f)+=(e)+K_00_19+ROTATE((a),5)+F_00_19((b),(c),(d)); \
lib/libmd/sha_locl.h
224
#define BODY_20_31(i,a,b,c,d,e,f,xa,xb,xc,xd) \
lib/libmd/sha_locl.h
226
(f)+=(e)+K_20_39+ROTATE((a),5)+F_20_39((b),(c),(d)); \
lib/libmd/sha_locl.h
229
#define BODY_32_39(i,a,b,c,d,e,f,xa) \
lib/libmd/sha_locl.h
231
(f)+=(e)+K_20_39+ROTATE((a),5)+F_20_39((b),(c),(d)); \
lib/libmd/sha_locl.h
234
#define BODY_40_59(i,a,b,c,d,e,f,xa) \
lib/libmd/sha_locl.h
236
(f)+=(e)+K_40_59+ROTATE((a),5)+F_40_59((b),(c),(d)); \
lib/libmd/sha_locl.h
239
#define BODY_60_79(i,a,b,c,d,e,f,xa) \
lib/libmd/sha_locl.h
241
(f)=X[(i)&0x0f]+(e)+K_60_79+ROTATE((a),5)+F_60_79((b),(c),(d)); \
lib/libmd/sha_locl.h
75
#define c2nl(c,l) (l =(((unsigned long)(*((c)++)))<<24), \
lib/libmd/sha_locl.h
76
l|=(((unsigned long)(*((c)++)))<<16), \
lib/libmd/sha_locl.h
77
l|=(((unsigned long)(*((c)++)))<< 8), \
lib/libmd/sha_locl.h
78
l|=(((unsigned long)(*((c)++))) ))
lib/libmd/sha_locl.h
81
#define p_c2nl(c,l,n) { \
lib/libmd/sha_locl.h
83
case 0: l =((unsigned long)(*((c)++)))<<24; \
lib/libmd/sha_locl.h
84
case 1: l|=((unsigned long)(*((c)++)))<<16; \
lib/libmd/sha_locl.h
85
case 2: l|=((unsigned long)(*((c)++)))<< 8; \
lib/libmd/sha_locl.h
86
case 3: l|=((unsigned long)(*((c)++))); \
lib/libmd/sha_locl.h
92
#define c2nl_p(c,l,n) { \
lib/libmd/sha_locl.h
94
(c)+=n; \
lib/libmd/sha_locl.h
96
case 3: l =((unsigned long)(*(--(c))))<< 8; \
lib/libmd/sha_locl.h
97
case 2: l|=((unsigned long)(*(--(c))))<<16; \
lib/libmd/sha_locl.h
98
case 1: l|=((unsigned long)(*(--(c))))<<24; \
lib/libmp/mpasbn.c
146
BN_CTX *c;
lib/libmp/mpasbn.c
149
c = BN_CTX_new();
lib/libmp/mpasbn.c
150
if (c != NULL)
lib/libmp/mpasbn.c
152
if (c == NULL || b == NULL)
lib/libmp/mpasbn.c
154
BN_ERRCHECK("gcd", BN_gcd(b, mp1->bn, mp2->bn, c));
lib/libmp/mpasbn.c
157
BN_CTX_free(c);
lib/libmp/mpasbn.c
232
BN_CTX *c)
lib/libmp/mpasbn.c
242
BN_ERRCHECK(msg, BN_div(q, r, nmp->bn, dmp->bn, c));
lib/libmp/mpasbn.c
252
BN_CTX *c;
lib/libmp/mpasbn.c
254
c = BN_CTX_new();
lib/libmp/mpasbn.c
255
if (c == NULL)
lib/libmp/mpasbn.c
257
_mdiv("mdiv", nmp, dmp, qmp, rmp, c);
lib/libmp/mpasbn.c
258
BN_CTX_free(c);
lib/libmp/mpasbn.c
370
BN_CTX *c;
lib/libmp/mpasbn.c
376
c = BN_CTX_new();
lib/libmp/mpasbn.c
377
if (c == NULL)
lib/libmp/mpasbn.c
387
_mdiv("msqrt", nmp, x, z1, z2, c);
lib/libmp/mpasbn.c
389
_sdiv("msqrt", z2, 2, x, &i, c);
lib/libmp/mpasbn.c
393
_mult("msqrt", x, x, z1, c);
lib/libmp/mpasbn.c
402
BN_CTX_free(c);
lib/libmp/mpasbn.c
490
_mult(const char *msg, const MINT *mp1, const MINT *mp2, MINT *rmp, BN_CTX *c)
lib/libmp/mpasbn.c
497
BN_ERRCHECK(msg, BN_mul(b, mp1->bn, mp2->bn, c));
lib/libmp/mpasbn.c
505
BN_CTX *c;
lib/libmp/mpasbn.c
507
c = BN_CTX_new();
lib/libmp/mpasbn.c
508
if (c == NULL)
lib/libmp/mpasbn.c
510
_mult("mult", mp1, mp2, rmp, c);
lib/libmp/mpasbn.c
511
BN_CTX_free(c);
lib/libmp/mpasbn.c
522
BN_CTX *c;
lib/libmp/mpasbn.c
525
c = BN_CTX_new();
lib/libmp/mpasbn.c
526
if (c != NULL)
lib/libmp/mpasbn.c
528
if (c == NULL || b == NULL)
lib/libmp/mpasbn.c
530
BN_ERRCHECK("pow", BN_mod_exp(b, bmp->bn, emp->bn, mmp->bn, c));
lib/libmp/mpasbn.c
533
BN_CTX_free(c);
lib/libmp/mpasbn.c
544
BN_CTX *c;
lib/libmp/mpasbn.c
547
c = BN_CTX_new();
lib/libmp/mpasbn.c
548
if (c != NULL)
lib/libmp/mpasbn.c
550
if (c == NULL || b == NULL)
lib/libmp/mpasbn.c
553
BN_ERRCHECK("rpow", BN_exp(b, bmp->bn, emp->bn, c));
lib/libmp/mpasbn.c
557
BN_CTX_free(c);
lib/libmp/mpasbn.c
565
BN_CTX *c)
lib/libmp/mpasbn.c
579
BN_ERRCHECK(msg, BN_div(q, r, nmp->bn, dmp->bn, c));
lib/libmp/mpasbn.c
597
BN_CTX *c;
lib/libmp/mpasbn.c
599
c = BN_CTX_new();
lib/libmp/mpasbn.c
600
if (c == NULL)
lib/libmp/mpasbn.c
602
_sdiv("sdiv", nmp, d, qmp, ro, c);
lib/libmp/mpasbn.c
603
BN_CTX_free(c);
lib/libnetbsd/sockaddr_snprintf.c
127
#define ADDC(c) do { if (buf < ebuf) *buf++ = c; else buf++; } \
lib/libnetgraph/debug.c
126
#define COOKIE(c) { NGM_ ## c ## _COOKIE, #c }
lib/libnetmap/nmport.c
113
nmport_extmem_cleanup(struct nmport_cleanup_d *c, struct nmport_d *d)
lib/libnetmap/nmport.c
115
(void)c;
lib/libnetmap/nmport.c
176
void nmport_extmem_from_file_cleanup(struct nmport_cleanup_d *c,
lib/libnetmap/nmport.c
181
(struct nmport_extmem_from_file_cleanup_d *)c;
lib/libnetmap/nmport.c
255
nmport_offset_cleanup(struct nmport_cleanup_d *c,
lib/libnetmap/nmport.c
259
(struct nmport_offset_cleanup_d *)c;
lib/libnetmap/nmport.c
52
nmport_push_cleanup(struct nmport_d *d, struct nmport_cleanup_d *c)
lib/libnetmap/nmport.c
54
c->next = d->clist;
lib/libnetmap/nmport.c
55
d->clist = c;
lib/libnetmap/nmport.c
833
struct nmport_d *c;
lib/libnetmap/nmport.c
844
c = nmport_new_with_ctx(ctx);
lib/libnetmap/nmport.c
845
if (c == NULL)
lib/libnetmap/nmport.c
848
c->hdr = d->hdr;
lib/libnetmap/nmport.c
850
c->hdr.nr_body = (uintptr_t)&c->reg;
lib/libnetmap/nmport.c
852
c->hdr.nr_options = 0;
lib/libnetmap/nmport.c
853
c->reg = d->reg; /* this also copies the mem_id */
lib/libnetmap/nmport.c
855
c->fd = -1;
lib/libnetmap/nmport.c
856
c->nifp = NULL;
lib/libnetmap/nmport.c
857
c->register_done = 0;
lib/libnetmap/nmport.c
858
c->mem = NULL;
lib/libnetmap/nmport.c
859
c->extmem = NULL;
lib/libnetmap/nmport.c
860
c->mmap_done = 0;
lib/libnetmap/nmport.c
861
c->first_tx_ring = 0;
lib/libnetmap/nmport.c
862
c->last_tx_ring = 0;
lib/libnetmap/nmport.c
863
c->first_rx_ring = 0;
lib/libnetmap/nmport.c
864
c->last_rx_ring = 0;
lib/libnetmap/nmport.c
865
c->cur_tx_ring = 0;
lib/libnetmap/nmport.c
866
c->cur_rx_ring = 0;
lib/libnetmap/nmport.c
868
return c;
lib/libnetmap/nmport.c
874
u_int c, n = d->last_tx_ring - d->first_tx_ring + 1,
lib/libnetmap/nmport.c
877
for (c = 0; c < n ; c++, ri++) {
lib/libpfctl/libpfctl.c
1861
struct pfctl_creator c;
lib/libpfctl/libpfctl.c
1862
bzero(&c, sizeof(c));
lib/libpfctl/libpfctl.c
1864
if (!snl_parse_nlmsg(ss, hdr, &creator_parser, &c))
lib/libpfctl/libpfctl.c
1867
creators[i] = c.id;
lib/libpfctl/libpfctl.c
284
struct pfctl_status_counter *c;
lib/libpfctl/libpfctl.c
286
c = malloc(sizeof(*c));
lib/libpfctl/libpfctl.c
287
if (c == NULL)
lib/libpfctl/libpfctl.c
290
c->id = ids[i];
lib/libpfctl/libpfctl.c
291
c->counter = counts[i];
lib/libpfctl/libpfctl.c
292
c->name = strdup(names[i]);
lib/libpfctl/libpfctl.c
294
TAILQ_INSERT_TAIL(counters, c, entry);
lib/libpfctl/libpfctl.c
312
struct pfctl_status_counter *c;
lib/libpfctl/libpfctl.c
319
c = malloc(sizeof(*c));
lib/libpfctl/libpfctl.c
320
if (c == NULL)
lib/libpfctl/libpfctl.c
323
c->id = counter.id;
lib/libpfctl/libpfctl.c
324
c->counter = counter.counter;
lib/libpfctl/libpfctl.c
325
c->name = strdup(counter.name);
lib/libpfctl/libpfctl.c
327
TAILQ_INSERT_TAIL((struct pfctl_status_counters *)target, c, entry);
lib/libpfctl/libpfctl.c
509
struct pfctl_status_counter *c;
lib/libpfctl/libpfctl.c
511
TAILQ_FOREACH(c, counters, entry) {
lib/libpfctl/libpfctl.c
512
if (c->id == id)
lib/libpfctl/libpfctl.c
513
return (c->counter);
lib/libpfctl/libpfctl.c
546
struct pfctl_status_counter *c, *tmp;
lib/libpfctl/libpfctl.c
551
TAILQ_FOREACH_SAFE(c, &status->counters, entry, tmp) {
lib/libpfctl/libpfctl.c
552
free(c->name);
lib/libpfctl/libpfctl.c
553
free(c);
lib/libpfctl/libpfctl.c
555
TAILQ_FOREACH_SAFE(c, &status->lcounters, entry, tmp) {
lib/libpfctl/libpfctl.c
556
free(c->name);
lib/libpfctl/libpfctl.c
557
free(c);
lib/libpfctl/libpfctl.c
559
TAILQ_FOREACH_SAFE(c, &status->fcounters, entry, tmp) {
lib/libpfctl/libpfctl.c
560
free(c->name);
lib/libpfctl/libpfctl.c
561
free(c);
lib/libpfctl/libpfctl.c
563
TAILQ_FOREACH_SAFE(c, &status->scounters, entry, tmp) {
lib/libpfctl/libpfctl.c
564
free(c->name);
lib/libpfctl/libpfctl.c
565
free(c);
lib/libpfctl/libpfctl.c
567
TAILQ_FOREACH_SAFE(c, &status->ncounters, entry, tmp) {
lib/libpfctl/libpfctl.c
568
free(c->name);
lib/libpfctl/libpfctl.c
569
free(c);
lib/libpmc/libpmc.c
1088
const unsigned char *c, *n;
lib/libpmc/libpmc.c
1090
c = (const unsigned char *) canonicalname;
lib/libpmc/libpmc.c
1093
for (; (nc = *n) && (cc = *c); n++, c++) {
lib/libpmc/libpmc.c
1106
if (*n == '\0' && *c == '\0')
lib/libpmc/libpmc.c
313
int c;
lib/libpmc/libpmc.c
320
c = 0; /* count of mask keywords seen */
lib/libpmc/libpmc.c
328
c++;
lib/libpmc/libpmc.c
330
return (c);
lib/libpmc/pmu-events/jevents.c
315
char c = tp[i];
lib/libpmc/pmu-events/jevents.c
317
if (c == '-')
lib/libpmc/pmu-events/jevents.c
319
else if (c == '.') {
lib/libpmc/pmu-events/jevents.c
913
int c;
lib/libpmc/pmu-events/jevents.c
929
c = tblname[i];
lib/libpmc/pmu-events/jevents.c
931
if (c == '-' || c == '/')
lib/libpmc/pmu-events/jevents.c
933
else if (c == '.') {
lib/libpmc/pmu-events/jevents.c
936
} else if (!isalnum(c) && c != '_') {
lib/libpmc/pmu-events/jevents.c
938
prog, c, fname);
lib/libpmc/pmu-events/jsmn.c
129
char c = js[parser->pos];
lib/libpmc/pmu-events/jsmn.c
132
if (c == '\"') {
lib/libpmc/pmu-events/jsmn.c
144
if (c == '\\') {
lib/libpmc/pmu-events/jsmn.c
191
char c;
lib/libpmc/pmu-events/jsmn.c
194
c = js[parser->pos];
lib/libpmc/pmu-events/jsmn.c
195
switch (c) {
lib/libpmc/pmu-events/jsmn.c
207
token->type = (c == '{' ? JSMN_OBJECT : JSMN_ARRAY);
lib/libpmc/pmu-events/jsmn.c
217
type = (c == '}' ? JSMN_OBJECT : JSMN_ARRAY);
lib/libpmc/pmu-events/json.c
121
static int countchar(char *map, char c, int end)
lib/libpmc/pmu-events/json.c
126
if (map[i] == c)
lib/libpmcstat/libpmcstat.h
298
int (*pl_topkeypress)(int c, void *w);
lib/libprocstat/libprocstat.c
2647
char *c;
lib/libprocstat/libprocstat.c
2677
for (c = buf; (char *)c < (char *)buf + buf_len;
lib/libprocstat/libprocstat.c
2678
c += kl->kl_structsize) {
lib/libprocstat/libprocstat.c
2679
kl = (struct kinfo_lockf *)(void *)c;
lib/librpcsvc/xcrypt.c
166
hexval(char c)
lib/librpcsvc/xcrypt.c
168
if (c >= '0' && c <= '9') {
lib/librpcsvc/xcrypt.c
169
return (c - '0');
lib/librpcsvc/xcrypt.c
170
} else if (c >= 'a' && c <= 'z') {
lib/librpcsvc/xcrypt.c
171
return (c - 'a' + 10);
lib/librpcsvc/xcrypt.c
172
} else if (c >= 'A' && c <= 'Z') {
lib/librpcsvc/xcrypt.c
173
return (c - 'A' + 10);
lib/librss/librss.c
113
int r, b, c;
lib/librss/librss.c
127
r = sscanf(s, "%d:%d", &b, &c);
lib/librss/librss.c
142
bucket_map[b] = c;
lib/libsecureboot/brf.c
33
is_ign(int c)
lib/libsecureboot/brf.c
35
if (c == 0) {
lib/libsecureboot/brf.c
38
if (c <= 32 || c == '-' || c == '_' || c == '.'
lib/libsecureboot/brf.c
39
|| c == '/' || c == '+' || c == ':')
lib/libsecureboot/brf.c
56
int c;
lib/libsecureboot/brf.c
61
c = *(*ps) ++;
lib/libsecureboot/brf.c
62
if (c == 0) {
lib/libsecureboot/brf.c
65
if (c >= 'A' && c <= 'Z') {
lib/libsecureboot/brf.c
66
c += 'a' - 'A';
lib/libsecureboot/brf.c
68
if (!is_ign(c)) {
lib/libsecureboot/brf.c
69
return (c);
lib/libsecureboot/tests/tvo.c
47
int c;
lib/libsecureboot/tests/tvo.c
62
while ((c = getopt(argc, argv, "D:dp:s:T:u:Vv")) != -1) {
lib/libsecureboot/tests/tvo.c
63
switch (c) {
lib/libsecureboot/tests/tvo.c
91
errx(1, "unknown option: -%c", c);
lib/libsys/x86/__vdso_gettc.c
236
char devname[64], *c, *c1, t;
lib/libsys/x86/__vdso_gettc.c
242
c1 = c = stpcpy(devname, devprefix);
lib/libsys/x86/__vdso_gettc.c
245
*c++ = u1 % 10 + '0';
lib/libsys/x86/__vdso_gettc.c
248
*c = '\0';
lib/libsys/x86/__vdso_gettc.c
249
for (c--; c1 != c; c1++, c--) {
lib/libsys/x86/__vdso_gettc.c
251
*c1 = *c;
lib/libsys/x86/__vdso_gettc.c
252
*c = t;
lib/libthr/arch/arm/thr_rtld_arm.c
42
void __aeabi_memset(void *dest, size_t n, int c);
lib/libthr/thread/thr_printf.c
101
r = ((c == 'u') || (c == 'd')) ? 10 : 16;
lib/libthr/thread/thr_printf.c
102
if (c == 'd') {
lib/libthr/thread/thr_printf.c
127
pchar(fd, c);
lib/libthr/thread/thr_printf.c
135
pchar(int fd, char c)
lib/libthr/thread/thr_printf.c
138
__sys_write(fd, &c, 1);
lib/libthr/thread/thr_printf.c
37
static void pchar(int fd, char c);
lib/libthr/thread/thr_printf.c
68
int c;
lib/libthr/thread/thr_printf.c
72
while ((c = *fmt++)) {
lib/libthr/thread/thr_printf.c
75
if (c == '%') {
lib/libthr/thread/thr_printf.c
76
next: c = *fmt++;
lib/libthr/thread/thr_printf.c
77
if (c == '\0')
lib/libthr/thread/thr_printf.c
79
switch (c) {
lib/libthr/thread/thr_printf.c
99
if (c == 'x' && isalt)
lib/libthread_db/libpthread_db.c
44
#define P2T(c) ps2td(c)
lib/libthread_db/libpthread_db.c
50
ps2td(int c)
lib/libthread_db/libpthread_db.c
52
switch (c) {
lib/libthread_db/libthr_db.c
74
#define P2T(c) ps2td(c)
lib/libthread_db/libthr_db.c
79
ps2td(int c)
lib/libthread_db/libthr_db.c
81
switch (c) {
lib/libufs/cgroup.c
194
cgread1(struct uufsd *disk, int c)
lib/libufs/cgroup.c
197
if (cgget(disk->d_fd, &disk->d_fs, c, &disk->d_cg) == 0) {
lib/libufs/cgroup.c
198
disk->d_lcg = c;
lib/libulog/ulog_login.c
41
SHA_CTX c;
lib/libulog/ulog_login.c
54
SHA1_Init(&c);
lib/libulog/ulog_login.c
55
SHA1_Update(&c, "libulog", 7);
lib/libulog/ulog_login.c
56
SHA1_Update(&c, utx->ut_line, sizeof utx->ut_line);
lib/libulog/ulog_login.c
57
SHA1_Final(id, &c);
lib/libunbound/config.h
1504
int isblank(int c);
lib/libusb/libusb01.c
469
uint32_t c;
lib/libusb/libusb01.c
489
c = ((uint8_t *)(ps.b.currep) - ((uint8_t *)0));
lib/libusb/libusb01.c
493
ptr = malloc(a + b + c + d);
lib/libusb/libusb01.c
504
ps.b.currextra = (void *)(ptr + a + b + c);
lib/libusb/libusb01.c
519
uint8_t c;
lib/libusb/libusb01.c
524
for (c = 0; c != dev->descriptor.bNumConfigurations; c++) {
lib/libusb/libusb01.c
525
struct usb_config_descriptor *cf = &dev->config[c];
lib/libusb/libusb20.c
879
uint16_t c;
lib/libusb/libusb20.c
924
c = temp[(2 * i) + 2] | (temp[(2 * i) + 3] << 8);
lib/libusb/libusb20.c
927
if (((c & 0xff00) == 0) && (swap & 1)) {
lib/libusb/libusb20.c
929
*buf = c;
lib/libusb/libusb20.c
931
} else if (((c & 0x00ff) == 0) && (swap & 2)) {
lib/libusb/libusb20.c
933
*buf = c >> 8;
lib/libusbhid/parse.c
102
if (c->report_ID == next_rID)
lib/libusbhid/parse.c
107
if (c->report_ID == 0) {
lib/libusbhid/parse.c
111
if (s->last_pos[i].rid == c->report_ID)
lib/libusbhid/parse.c
118
s->last_pos[i].rid = c->report_ID;
lib/libusbhid/parse.c
125
c->report_ID = next_rID;
lib/libusbhid/parse.c
215
hid_item_t *c;
lib/libusbhid/parse.c
223
c = &s->cur[s->pushlevel];
lib/libusbhid/parse.c
231
c->usage = dval;
lib/libusbhid/parse.c
248
if (s->kindset & (1 << c->kind)) {
lib/libusbhid/parse.c
249
*h = *c;
lib/libusbhid/parse.c
250
h->pos = s->pos[c->kind];
lib/libusbhid/parse.c
251
s->pos[c->kind] += c->report_size * c->report_count;
lib/libusbhid/parse.c
263
hid_clear_local(c);
lib/libusbhid/parse.c
315
c->kind = hid_input;
lib/libusbhid/parse.c
316
c->flags = dval;
lib/libusbhid/parse.c
318
c->report_count = s->loc_count;
lib/libusbhid/parse.c
319
c->report_size = s->loc_size;
lib/libusbhid/parse.c
321
if (c->flags & HIO_VARIABLE) {
lib/libusbhid/parse.c
323
if (c->report_count > 255) {
lib/libusbhid/parse.c
326
s->ncount = c->report_count;
lib/libusbhid/parse.c
332
c->report_count = 1;
lib/libusbhid/parse.c
333
c->usage_minimum = 0;
lib/libusbhid/parse.c
334
c->usage_maximum = 0;
lib/libusbhid/parse.c
341
c->kind = hid_output;
lib/libusbhid/parse.c
342
c->flags = dval;
lib/libusbhid/parse.c
345
c->kind = hid_collection;
lib/libusbhid/parse.c
346
c->collection = dval;
lib/libusbhid/parse.c
347
c->collevel++;
lib/libusbhid/parse.c
348
c->usage = s->usage_last;
lib/libusbhid/parse.c
349
*h = *c;
lib/libusbhid/parse.c
352
c->kind = hid_feature;
lib/libusbhid/parse.c
353
c->flags = dval;
lib/libusbhid/parse.c
356
c->kind = hid_endcollection;
lib/libusbhid/parse.c
357
if (c->collevel == 0) {
lib/libusbhid/parse.c
361
c->collevel--;
lib/libusbhid/parse.c
362
*h = *c;
lib/libusbhid/parse.c
372
c->_usage_page = dval << 16;
lib/libusbhid/parse.c
375
c->logical_minimum = dval;
lib/libusbhid/parse.c
378
c->logical_maximum = dval;
lib/libusbhid/parse.c
381
c->physical_minimum = dval;
lib/libusbhid/parse.c
384
c->physical_maximum = dval;
lib/libusbhid/parse.c
387
c->unit_exponent = dval;
lib/libusbhid/parse.c
390
c->unit = dval;
lib/libusbhid/parse.c
397
hid_switch_rid(s, c, dval & mask);
lib/libusbhid/parse.c
408
s->cur[s->pushlevel] = *c;
lib/libusbhid/parse.c
410
c->report_size = s->loc_size;
lib/libusbhid/parse.c
411
c->report_count = s->loc_count;
lib/libusbhid/parse.c
413
c = &s->cur[s->pushlevel];
lib/libusbhid/parse.c
420
c = &s->cur[s->pushlevel];
lib/libusbhid/parse.c
422
s->loc_size = c->report_size;
lib/libusbhid/parse.c
423
s->loc_count = c->report_count;
lib/libusbhid/parse.c
424
c->report_size = 0;
lib/libusbhid/parse.c
425
c->report_count = 0;
lib/libusbhid/parse.c
435
dval = (dval & mask) | c->_usage_page;
lib/libusbhid/parse.c
454
dval = (dval & mask) | c->_usage_page;
lib/libusbhid/parse.c
455
c->usage_minimum = dval;
lib/libusbhid/parse.c
462
dval = (dval & mask) | c->_usage_page;
lib/libusbhid/parse.c
463
c->usage_maximum = dval;
lib/libusbhid/parse.c
471
(c->usage_minimum <= c->usage_maximum)) {
lib/libusbhid/parse.c
474
c->usage_minimum;
lib/libusbhid/parse.c
476
c->usage_maximum;
lib/libusbhid/parse.c
484
c->designator_index = dval;
lib/libusbhid/parse.c
487
c->designator_minimum = dval;
lib/libusbhid/parse.c
490
c->designator_maximum = dval;
lib/libusbhid/parse.c
493
c->string_index = dval;
lib/libusbhid/parse.c
496
c->string_minimum = dval;
lib/libusbhid/parse.c
499
c->string_maximum = dval;
lib/libusbhid/parse.c
502
c->set_delimiter = dval;
lib/libusbhid/parse.c
80
hid_clear_local(hid_item_t *c)
lib/libusbhid/parse.c
83
c->usage = 0;
lib/libusbhid/parse.c
84
c->usage_minimum = 0;
lib/libusbhid/parse.c
85
c->usage_maximum = 0;
lib/libusbhid/parse.c
86
c->designator_index = 0;
lib/libusbhid/parse.c
87
c->designator_minimum = 0;
lib/libusbhid/parse.c
88
c->designator_maximum = 0;
lib/libusbhid/parse.c
89
c->string_index = 0;
lib/libusbhid/parse.c
90
c->string_minimum = 0;
lib/libusbhid/parse.c
91
c->string_maximum = 0;
lib/libusbhid/parse.c
92
c->set_delimiter = 0;
lib/libusbhid/parse.c
96
hid_switch_rid(struct hid_data *s, struct hid_item *c, int32_t next_rID)
lib/libveriexec/exec_script.c
128
int c;
lib/libveriexec/exec_script.c
135
while ((c = getopt(argc, argv, "i:")) != -1) {
lib/libveriexec/exec_script.c
136
switch (c) {
lib/libveriexec/exec_script.c
141
errx(1, "unknown option: -%c", c);
lib/libveriexec/exec_script.c
152
c = execv_script(interp, argv);
lib/libveriexec/exec_script.c
155
c = waitpid(child, &s, 0);
lib/libveriexec/gbl_check.c
101
int c;
lib/libveriexec/gbl_check.c
104
while ((c = getopt(argc, argv, "p")) != -1) {
lib/libveriexec/gbl_check.c
105
switch (c) {
lib/libveriexec/veriexec_get.c
279
int c;
lib/libveriexec/veriexec_get.c
281
while ((c = getopt(argc, argv, "lpw:")) != -1) {
lib/libveriexec/veriexec_get.c
282
switch (c) {
lib/libvgl/simple.c
187
int dx, dy, incr1, incr2, D, x, y, xend, c, pixels_left;
lib/libvgl/simple.c
232
c = 2 * dy;
lib/libvgl/simple.c
233
incr1 = 2 * c;
lib/libvgl/simple.c
248
if (D < c) {
lib/libvgl/simple.c
279
if (D < c) {
lib/libvgl/simple.c
298
c = 2 * (dy - dx);
lib/libvgl/simple.c
299
incr1 = 2 * c;
lib/libvgl/simple.c
313
if (D < c) {
lib/libvgl/simple.c
345
if (D < c) {
lib/libvgl/simple.c
357
if (D > c) /* step 3 */
lib/libvgl/simple.c
545
VGLrgb332ToNative(byte c)
lib/libvgl/simple.c
550
r = ((c & 0xe0) >> 5) * 0xffff / 7;
lib/libvgl/simple.c
551
g = ((c & 0x1c) >> 2) * 0xffff / 7;
lib/libvgl/simple.c
552
b = ((c & 0x03) >> 0) * 0xffff / 3;
lib/libvgl/vgl.h
147
u_long VGLrgb332ToNative(byte c);
lib/msun/bsdsrc/b_exp.c
105
lo = k * ln2lo - c;
lib/msun/bsdsrc/b_exp.c
110
c = x - z * (p1 + z * (p2 + z * (p3 + z * (p4 +
lib/msun/bsdsrc/b_exp.c
112
c = (x * c) / (2 - c);
lib/msun/bsdsrc/b_exp.c
114
return (ldexp(1 + (hi - (lo - c)), k));
lib/msun/bsdsrc/b_exp.c
86
__exp__D(double x, double c)
lib/msun/bsdsrc/b_tgamma.c
180
ratfun_gam(double z, double c)
lib/msun/bsdsrc/b_tgamma.c
192
tlo = (z - thi) + c;
lib/msun/ld128/k_expl.h
300
long double c, exp_x, hi, lo, s;
lib/msun/ld128/k_expl.h
317
sincosl(y, &s, &c);
lib/msun/ld128/k_expl.h
318
return (CMPLXL(c * exp_x * scale1 * scale2,
lib/msun/ld128/s_cexpl.c
46
long double c, exp_x, s, x, y;
lib/msun/ld128/s_cexpl.c
56
sincosl(y, &s, &c);
lib/msun/ld128/s_cexpl.c
57
return (CMPLXL(c, s));
lib/msun/ld128/s_cexpl.c
88
sincosl(y, &s, &c);
lib/msun/ld128/s_cexpl.c
89
return (CMPLXL(exp_x * c, exp_x * s));
lib/msun/ld128/s_cospil.c
50
long double ai, ar, ax, c;
lib/msun/ld128/s_cospil.c
64
c = __kernel_sinpil(0.5 - ax);
lib/msun/ld128/s_cospil.c
68
c = -__kernel_sinpil(ax - 0.5);
lib/msun/ld128/s_cospil.c
70
c = -__kernel_cospil(1 - ax);
lib/msun/ld128/s_cospil.c
71
return (c);
lib/msun/ld128/s_cospil.c
80
c = ar == 0 ? 1 : __kernel_cospil(ar);
lib/msun/ld128/s_cospil.c
82
c = __kernel_sinpil(0.5 - ar);
lib/msun/ld128/s_cospil.c
87
c = -__kernel_sinpil(ar - 0.5);
lib/msun/ld128/s_cospil.c
89
c = -__kernel_cospil(1 - ar);
lib/msun/ld128/s_cospil.c
91
return (fmodl(ai, 2.L) == 0 ? c : -c);
lib/msun/ld80/b_expl.c
101
c = x - z * (p1 + z * (p2 + z * (p3 + z * (p4 +
lib/msun/ld80/b_expl.c
103
c = (x * c) / (2 - c);
lib/msun/ld80/b_expl.c
105
return (ldexpl(1 + (hi - (lo - c)), k));
lib/msun/ld80/b_expl.c
77
__exp__D(long double x, long double c)
lib/msun/ld80/b_expl.c
96
lo = k * ln2lo - c;
lib/msun/ld80/b_tgammal.c
203
ratfun_gam(long double z, long double c)
lib/msun/ld80/b_tgammal.c
216
tlo = (z - thi) + c;
lib/msun/ld80/k_expl.h
277
long double c, exp_x, hi, lo, s;
lib/msun/ld80/k_expl.h
294
sincosl(y, &s, &c);
lib/msun/ld80/k_expl.h
295
return (CMPLXL(c * exp_x * scale1 * scale2,
lib/msun/ld80/s_cexpl.c
101
sincosl(y, &s, &c);
lib/msun/ld80/s_cexpl.c
102
RETURNI(CMPLXL(exp_x * c, exp_x * s));
lib/msun/ld80/s_cexpl.c
45
long double c, exp_x, s, x, y;
lib/msun/ld80/s_cexpl.c
63
sincosl(y, &s, &c);
lib/msun/ld80/s_cexpl.c
64
RETURNI(CMPLXL(c, s));
lib/msun/ld80/s_cospil.c
100
c = -__kernel_cospil(1 - ax);
lib/msun/ld80/s_cospil.c
109
RETURNI(j0 & 1 ? -c : c);
lib/msun/ld80/s_cospil.c
52
long double ax, c;
lib/msun/ld80/s_cospil.c
73
c = __kernel_sinpil(0.5 - ax);
lib/msun/ld80/s_cospil.c
77
c = -__kernel_sinpil(ax - 0.5);
lib/msun/ld80/s_cospil.c
79
c = -__kernel_cospil(1 - ax);
lib/msun/ld80/s_cospil.c
80
RETURNI(c);
lib/msun/ld80/s_cospil.c
90
c = ix == 0 ? 1 : __kernel_cospil(ax);
lib/msun/ld80/s_cospil.c
92
c = __kernel_sinpil(0.5 - ax);
lib/msun/ld80/s_cospil.c
98
c = -__kernel_sinpil(ax - 0.5);
lib/msun/src/e_acos.c
100
w = r*s+c;
lib/msun/src/e_acos.c
63
double z,p,q,r,w,s,c,df;
lib/msun/src/e_acos.c
96
c = (z-df*df)/(s+df);
lib/msun/src/e_acosf.c
40
float z,p,q,r,w,s,c,df;
lib/msun/src/e_acosf.c
73
c = (z-df*df)/(s+df);
lib/msun/src/e_acosf.c
77
w = r*s+c;
lib/msun/src/e_acosl.c
43
long double z,p,q,r,w,s,c,df;
lib/msun/src/e_acosl.c
76
c = (z-df*df)/(s+df);
lib/msun/src/e_acosl.c
80
w = r*s+c;
lib/msun/src/e_asin.c
102
c = (t-w*w)/(s+w);
lib/msun/src/e_asin.c
104
p = 2.0*s*r-(pio2_lo-2.0*c);
lib/msun/src/e_asin.c
69
double t=0.0,w,p,q,c,r,s;
lib/msun/src/e_asinl.c
33
long double t=0.0,w,p,q,c,r,s;
lib/msun/src/e_asinl.c
66
c = (t-w*w)/(s+w);
lib/msun/src/e_asinl.c
68
p = 2.0*s*r-(pio2_lo-2.0*c);
lib/msun/src/e_exp.c
103
double y,hi=0.0,lo=0.0,c,t,twopk;
lib/msun/src/e_exp.c
147
c = x - t*(P1+t*(P2+t*(P3+t*(P4+t*P5))));
lib/msun/src/e_exp.c
148
if(k==0) return one-((x*c)/(c-2.0)-x);
lib/msun/src/e_exp.c
149
else y = one-((lo-(x*c)/(2.0-c))-hi);
lib/msun/src/e_expf.c
45
float y,hi=0.0,lo=0.0,c,t,twopk;
lib/msun/src/e_expf.c
86
c = x - t*(P1+t*P2);
lib/msun/src/e_expf.c
87
if(k==0) return one-((x*c)/(c-(float)2.0)-x);
lib/msun/src/e_expf.c
88
else y = one-((lo-(x*c)/((float)2.0-c))-hi);
lib/msun/src/e_j0.c
144
double z, s,c,ss,cc,u,v;
lib/msun/src/e_j0.c
171
sincos(x, &s, &c);
lib/msun/src/e_j0.c
172
ss = s-c;
lib/msun/src/e_j0.c
173
cc = s+c;
lib/msun/src/e_j0.c
180
if ((s*c)<zero) cc = z/ss;
lib/msun/src/e_j0.c
84
double z, s,c,ss,cc,r,u,v;
lib/msun/src/e_j0.c
92
sincos(x, &s, &c);
lib/msun/src/e_j0.c
93
ss = s-c;
lib/msun/src/e_j0.c
94
cc = s+c;
lib/msun/src/e_j0.c
97
if ((s*c)<zero) cc = z/ss;
lib/msun/src/e_j0f.c
107
float z, s,c,ss,cc,u,v;
lib/msun/src/e_j0f.c
127
sincosf(x, &s, &c);
lib/msun/src/e_j0f.c
128
ss = s-c;
lib/msun/src/e_j0f.c
129
cc = s+c;
lib/msun/src/e_j0f.c
136
if ((s*c)<zero) cc = z/ss;
lib/msun/src/e_j0f.c
47
float z, s,c,ss,cc,r,u,v;
lib/msun/src/e_j0f.c
55
sincosf(x, &s, &c);
lib/msun/src/e_j0f.c
56
ss = s-c;
lib/msun/src/e_j0f.c
57
cc = s+c;
lib/msun/src/e_j0f.c
60
if ((s*c)<zero) cc = z/ss;
lib/msun/src/e_j1.c
141
double z, s,c,ss,cc,u,v;
lib/msun/src/e_j1.c
157
sincos(x, &s, &c);
lib/msun/src/e_j1.c
158
ss = -s-c;
lib/msun/src/e_j1.c
159
cc = s-c;
lib/msun/src/e_j1.c
162
if ((s*c)>zero) cc = z/ss;
lib/msun/src/e_j1.c
85
double z, s,c,ss,cc,r,u,v,y;
lib/msun/src/e_j1.c
93
sincos(y, &s, &c);
lib/msun/src/e_j1.c
94
ss = -s-c;
lib/msun/src/e_j1.c
95
cc = s-c;
lib/msun/src/e_j1.c
98
if ((s*c)>zero) cc = z/ss;
lib/msun/src/e_j1f.c
104
float z, s,c,ss,cc,u,v;
lib/msun/src/e_j1f.c
113
sincosf(x, &s, &c);
lib/msun/src/e_j1f.c
114
ss = -s-c;
lib/msun/src/e_j1f.c
115
cc = s-c;
lib/msun/src/e_j1f.c
118
if ((s*c)>zero) cc = z/ss;
lib/msun/src/e_j1f.c
48
float z, s,c,ss,cc,r,u,v,y;
lib/msun/src/e_j1f.c
56
sincosf(y, &s, &c);
lib/msun/src/e_j1f.c
57
ss = -s-c;
lib/msun/src/e_j1f.c
58
cc = s-c;
lib/msun/src/e_j1f.c
61
if ((s*c)>zero) cc = z/ss;
lib/msun/src/e_jn.c
216
double a, b, c, s, temp;
lib/msun/src/e_jn.c
248
sincos(x, &s, &c);
lib/msun/src/e_jn.c
250
case 0: temp = s-c; break;
lib/msun/src/e_jn.c
251
case 1: temp = -s-c; break;
lib/msun/src/e_jn.c
252
case 2: temp = -s+c; break;
lib/msun/src/e_jn.c
253
case 3: temp = s+c; break;
lib/msun/src/e_jn.c
53
double a, b, c, s, temp, di;
lib/msun/src/e_jn.c
90
sincos(x, &s, &c);
lib/msun/src/e_jn.c
92
case 0: temp = c+s; break;
lib/msun/src/e_jn.c
93
case 1: temp = -c+s; break;
lib/msun/src/e_jn.c
94
case 2: temp = -c-s; break;
lib/msun/src/e_jn.c
95
case 3: temp = c-s; break;
lib/msun/src/k_exp.c
105
sincos(y, &s, &c);
lib/msun/src/k_exp.c
106
return (CMPLX(c * exp_x * scale1 * scale2,
lib/msun/src/k_exp.c
88
double c, exp_x, s, scale1, scale2, x, y;
lib/msun/src/k_expf.c
71
float c, exp_x, s, scale1, scale2, x, y;
lib/msun/src/k_expf.c
84
sincosf(y, &s, &c);
lib/msun/src/k_expf.c
85
return (CMPLXF(c * exp_x * scale1 * scale2,
lib/msun/src/math_private.h
465
#define _3sumF(a, b, c) do { \
lib/msun/src/math_private.h
468
__tmp = (c); \
lib/msun/src/s_ccosh.c
135
sincos(y, &s, &c);
lib/msun/src/s_ccosh.c
136
return (CMPLX(INFINITY * c, x * s));
lib/msun/src/s_ccosh.c
51
double c, h, s, x, y;
lib/msun/src/s_ccosh.c
68
sincos(y, &s, &c);
lib/msun/src/s_ccosh.c
70
return (CMPLX(cosh(x) * c, sinh(x) * s));
lib/msun/src/s_ccosh.c
76
return (CMPLX(h * c, copysign(h, x) * s));
lib/msun/src/s_ccosh.c
84
return (CMPLX(h * h * c, h * s));
lib/msun/src/s_ccoshf.c
43
float c, h, s, x, y;
lib/msun/src/s_ccoshf.c
59
sincosf(y, &s, &c);
lib/msun/src/s_ccoshf.c
61
return (CMPLXF(coshf(x) * c, sinhf(x) * s));
lib/msun/src/s_ccoshf.c
67
return (CMPLXF(h * c, copysignf(h, x) * s));
lib/msun/src/s_ccoshf.c
75
return (CMPLXF(h * h * c, h * s));
lib/msun/src/s_ccoshf.c
92
sincosf(y, &s, &c);
lib/msun/src/s_ccoshf.c
93
return (CMPLXF(INFINITY * c, x * s));
lib/msun/src/s_ceill.c
29
#define INC_MANH(u, c) do { \
lib/msun/src/s_ceill.c
31
u.bits.manh += (c); \
lib/msun/src/s_ceill.c
37
#define INC_MANH(u, c) do { \
lib/msun/src/s_ceill.c
39
u.bits.manh += (c); \
lib/msun/src/s_cexp.c
42
double c, exp_x, s, x, y;
lib/msun/src/s_cexp.c
57
sincos(y, &s, &c);
lib/msun/src/s_cexp.c
58
return (CMPLX(c, s));
lib/msun/src/s_cexp.c
89
sincos(y, &s, &c);
lib/msun/src/s_cexp.c
90
return (CMPLX(exp_x * c, exp_x * s));
lib/msun/src/s_cexpf.c
41
float c, exp_x, s, x, y;
lib/msun/src/s_cexpf.c
56
sincosf(y, &s, &c);
lib/msun/src/s_cexpf.c
57
return (CMPLXF(c, s));
lib/msun/src/s_cexpf.c
88
sincosf(y, &s, &c);
lib/msun/src/s_cexpf.c
89
return (CMPLXF(exp_x * c, exp_x * s));
lib/msun/src/s_cospi.c
100
c = -__kernel_sinpi(ax - 0.5);
lib/msun/src/s_cospi.c
102
c = -__kernel_cospi(1 - ax);
lib/msun/src/s_cospi.c
103
return (c);
lib/msun/src/s_cospi.c
113
c = ix == 0 ? 1 : __kernel_cospi(ax);
lib/msun/src/s_cospi.c
115
c = __kernel_sinpi(0.5 - ax);
lib/msun/src/s_cospi.c
120
c = -__kernel_sinpi(ax - 0.5);
lib/msun/src/s_cospi.c
122
c = -__kernel_cospi(1 - ax);
lib/msun/src/s_cospi.c
128
return (j0 & 1 ? -c : c);
lib/msun/src/s_cospi.c
79
double ax, c;
lib/msun/src/s_cospi.c
96
c = __kernel_sinpi(0.5 - ax);
lib/msun/src/s_cospif.c
46
float ax, c;
lib/msun/src/s_cospif.c
64
c = __kernel_sinpif(0.5F - ax);
lib/msun/src/s_cospif.c
68
c = -__kernel_sinpif(ax - 0.5F);
lib/msun/src/s_cospif.c
70
c = -__kernel_cospif(1 - ax);
lib/msun/src/s_cospif.c
71
return (c);
lib/msun/src/s_cospif.c
81
c = ix == 0 ? 1 : __kernel_cospif(ax);
lib/msun/src/s_cospif.c
83
c = __kernel_sinpif(0.5F - ax);
lib/msun/src/s_cospif.c
88
c = -__kernel_sinpif(ax - 0.5F);
lib/msun/src/s_cospif.c
90
c = -__kernel_cospif(1 - ax);
lib/msun/src/s_cospif.c
94
return (j0 & 1 ? -c : c);
lib/msun/src/s_csinh.c
134
sincos(y, &s, &c);
lib/msun/src/s_csinh.c
135
return (CMPLX(x * c, INFINITY * s));
lib/msun/src/s_csinh.c
51
double c, h, s, x, y;
lib/msun/src/s_csinh.c
68
sincos(y, &s, &c);
lib/msun/src/s_csinh.c
70
return (CMPLX(sinh(x) * c, cosh(x) * s));
lib/msun/src/s_csinh.c
76
return (CMPLX(copysign(h, x) * c, h * s));
lib/msun/src/s_csinh.c
84
return (CMPLX(h * c, h * h * s));
lib/msun/src/s_csinhf.c
43
float c, h, s, x, y;
lib/msun/src/s_csinhf.c
59
sincosf(y, &s, &c);
lib/msun/src/s_csinhf.c
61
return (CMPLXF(sinhf(x) * c, coshf(x) * s));
lib/msun/src/s_csinhf.c
67
return (CMPLXF(copysignf(h, x) * c, h * s));
lib/msun/src/s_csinhf.c
75
return (CMPLXF(h * c, h * h * s));
lib/msun/src/s_csinhf.c
92
sincosf(y, &s, &c);
lib/msun/src/s_csinhf.c
93
return (CMPLXF(x * c, INFINITY * s));
lib/msun/src/s_expm1.c
131
double y,hi,lo,c,t,e,hxs,hfx,r1,twopk;
lib/msun/src/s_expm1.c
171
c = (hi-x)-lo;
lib/msun/src/s_expm1.c
188
e = (x*(e-c)-c);
lib/msun/src/s_expm1f.c
41
float y,hi,lo,c,t,e,hxs,hfx,r1,twopk;
lib/msun/src/s_expm1f.c
78
c = (hi-x)-lo;
lib/msun/src/s_expm1f.c
95
e = (x*(e-c)-c);
lib/msun/src/s_floorl.c
29
#define INC_MANH(u, c) do { \
lib/msun/src/s_floorl.c
31
u.bits.manh += (c); \
lib/msun/src/s_floorl.c
37
#define INC_MANH(u, c) do { \
lib/msun/src/s_floorl.c
39
u.bits.manh += (c); \
lib/msun/src/s_log1p.c
100
double hfsq,f,c,s,z,R,u;
lib/msun/src/s_log1p.c
128
c = (k>0)? 1.0-(u-x):x-(u-1.0);/* correction term */
lib/msun/src/s_log1p.c
129
c /= u;
lib/msun/src/s_log1p.c
134
c = 0;
lib/msun/src/s_log1p.c
159
c += k*ln2_lo;
lib/msun/src/s_log1p.c
160
return k*ln2_hi+c;
lib/msun/src/s_log1p.c
165
return k*ln2_hi-((R-(k*ln2_lo+c))-f);
lib/msun/src/s_log1p.c
171
return k*ln2_hi-((hfsq-(s*(hfsq+R)+(k*ln2_lo+c)))-f);
lib/msun/src/s_log1pf.c
100
return k*ln2_hi+c;
lib/msun/src/s_log1pf.c
105
return k*ln2_hi-((R-(k*ln2_lo+c))-f);
lib/msun/src/s_log1pf.c
111
return k*ln2_hi-((hfsq-(s*(hfsq+R)+(k*ln2_lo+c)))-f);
lib/msun/src/s_log1pf.c
39
float hfsq,f,c,s,z,R,u;
lib/msun/src/s_log1pf.c
68
c = (k>0)? (float)1.0-(u-x):x-(u-(float)1.0);
lib/msun/src/s_log1pf.c
69
c /= u;
lib/msun/src/s_log1pf.c
74
c = 0;
lib/msun/src/s_log1pf.c
99
c += k*ln2_lo;
lib/msun/src/s_sincosf.c
102
__kernel_sincosdf(y, &s, &c);
lib/msun/src/s_sincosf.c
107
*cs = c;
lib/msun/src/s_sincosf.c
110
*sn = c;
lib/msun/src/s_sincosf.c
115
*cs = -c;
lib/msun/src/s_sincosf.c
118
*sn = -c;
lib/msun/src/s_sincosf.c
36
float c, s;
lib/msun/src/s_tanhl.c
82
divl(long double a, long double b, long double c, long double d,
lib/msun/src/s_tanhl.c
88
_2sumF(a, c);
lib/msun/src/s_tanhl.c
89
b = b + c;
lib/msun/tests/ctrig_test.c
239
long double complex z, c, s;
lib/msun/tests/ctrig_test.c
264
c = INFINITY * cosl(finites[i]);
lib/msun/tests/ctrig_test.c
266
testall_odd(csinh, z, CMPLXL(c, s), OPT_INEXACT, 0, CS_BOTH);
lib/msun/tests/ctrig_test.c
267
testall_even(ccosh, z, CMPLXL(c, s), OPT_INEXACT, 0, CS_BOTH);
lib/msun/tests/ctrig_test.c
271
testall_odd(csin, z, CMPLXL(s, c), OPT_INEXACT, 0, CS_BOTH);
lib/msun/tests/ctrig_test.c
272
testall_even(ccos, z, CMPLXL(c, -s), OPT_INEXACT, 0, CS_BOTH);
libexec/atf/atf-pytest-wrapper/atf_pytest_wrapper.cpp
119
Usage("Unknown option -" + std::string(1, static_cast<char>(c)), true);
libexec/atf/atf-pytest-wrapper/atf_pytest_wrapper.cpp
96
int c;
libexec/atf/atf-pytest-wrapper/atf_pytest_wrapper.cpp
97
while ((c = getopt(argc, argv, "lr:s:v:")) != -1) {
libexec/atf/atf-pytest-wrapper/atf_pytest_wrapper.cpp
98
switch (c) {
libexec/atrun/atrun.c
457
int c;
libexec/atrun/atrun.c
476
while((c=getopt(argc, argv, "dl:"))!= -1)
libexec/atrun/atrun.c
478
switch (c)
libexec/bootpd/readfile.c
1815
char c;
libexec/bootpd/readfile.c
1831
while ((c = **src)) {
libexec/bootpd/readfile.c
1832
if (isdigit(c)) {
libexec/bootpd/readfile.c
1833
value = (value * base) + (c - '0');
libexec/bootpd/readfile.c
1837
if (base == 16 && isxdigit(c)) {
libexec/bootpd/readfile.c
1838
value = (value << 4) + ((c & ~32) + 10 - 'A');
libexec/bootpd/readfile.c
490
int c, length;
libexec/bootpd/readfile.c
498
c = fgetc(fp);
libexec/bootpd/readfile.c
499
if (c < 0) {
libexec/bootpd/readfile.c
502
if (isspace(c)) {
libexec/bootpd/readfile.c
505
if (c == '#') {
libexec/bootpd/readfile.c
507
c = fgetc(fp);
libexec/bootpd/readfile.c
508
if (c < 0) {
libexec/bootpd/readfile.c
511
if (c == '\n') {
libexec/bootpd/readfile.c
516
ungetc(c, fp); /* Other character, push it back to reprocess it */
libexec/bootpd/readfile.c
526
c = fgetc(fp);
libexec/bootpd/readfile.c
527
switch (c) {
libexec/bootpd/readfile.c
532
c = fgetc(fp); /* Backslash, read a new character */
libexec/bootpd/readfile.c
533
if (c < 0) {
libexec/bootpd/readfile.c
536
*buffer++ = c; /* Store the literal character */
libexec/bootpd/readfile.c
550
c = fgetc(fp);
libexec/bootpd/readfile.c
551
switch (c) {
libexec/bootpd/readfile.c
563
if ((c = fgetc(fp)) < 0) { /* Backslash */
libexec/bootpd/readfile.c
568
*buffer++ = c; /* Other character, store it */
libexec/bootpd/readfile.c
576
*buffer++ = c; /* Store colons */
libexec/bootpd/readfile.c
582
c = fgetc(fp);
libexec/bootpd/readfile.c
583
if ((c < 0) || (c == '\n')) {
libexec/bootpd/readfile.c
586
} while (isspace(c)); /* Skip whitespace */
libexec/bootpd/readfile.c
588
if (c == '\\') { /* Backslash quotes next character */
libexec/bootpd/readfile.c
589
c = fgetc(fp);
libexec/bootpd/readfile.c
590
if (c < 0) {
libexec/bootpd/readfile.c
593
if (c == '\n') {
libexec/bootpd/readfile.c
599
*buffer++ = c; /* Store other characters */
libexec/bootpd/tools/bootptest/bootptest.c
462
u_char c;
libexec/bootpd/tools/bootptest/bootptest.c
465
while ((c = *s++) != '\0') {
libexec/bootpd/tools/bootptest/bootptest.c
470
if (!isascii(c)) {
libexec/bootpd/tools/bootptest/bootptest.c
471
c = toascii(c);
libexec/bootpd/tools/bootptest/bootptest.c
475
if (!isprint(c)) {
libexec/bootpd/tools/bootptest/bootptest.c
476
c ^= 0x40; /* DEL to ?, others to alpha */
libexec/bootpd/tools/bootptest/bootptest.c
479
putchar(c);
libexec/getty/main.c
505
int c;
libexec/getty/main.c
536
if ((c = cs&0177) == 0)
libexec/getty/main.c
566
if (c == EOT || c == CTRL('d'))
libexec/getty/main.c
568
if (c == '\r' || c == '\n' || np >= &name[sizeof name-1]) {
libexec/getty/main.c
572
if (islower(c))
libexec/getty/main.c
574
else if (isupper(c))
libexec/getty/main.c
576
else if (c == ERASE || c == '\b' || c == 0177) {
libexec/getty/main.c
585
} else if (c == KILL || c == CTRL('u')) {
libexec/getty/main.c
596
} else if (isdigit(c))
libexec/getty/main.c
598
if (IG && (c <= ' ' || c > 0176))
libexec/getty/main.c
600
*np++ = c;
libexec/getty/main.c
605
if (c == '\r')
libexec/getty/main.c
664
char c;
libexec/getty/main.c
666
c = cc;
libexec/getty/main.c
668
c |= partab[c&0177] & 0200;
libexec/getty/main.c
670
c ^= 0200;
libexec/getty/main.c
673
outbuf[obufcnt++] = c;
libexec/getty/main.c
677
write(STDOUT_FILENO, &c, 1);
libexec/getty/subr.c
602
char c, baud[20];
libexec/getty/subr.c
609
if (read(STDIN_FILENO, &c, 1) <= 0)
libexec/getty/subr.c
611
c &= 0177;
libexec/getty/subr.c
612
if (c == '\n' || c == '\r')
libexec/getty/subr.c
614
if (c == 'B')
libexec/getty/subr.c
616
baud[len] = c;
libexec/getty/subr.c
638
char c;
libexec/getty/subr.c
646
if (read(STDIN_FILENO, &c, sizeof(char)) != sizeof(char))
libexec/getty/subr.c
652
switch (c & 0377) {
libexec/rbootd/rbootd.c
62
int c, fd, omask, maxfds;
libexec/rbootd/rbootd.c
82
while ((c = getopt(argc, argv, "adi:")) != -1)
libexec/rbootd/rbootd.c
83
switch(c) {
libexec/rtld-elf/libmap.c
203
char *cp, *f, *t, *c, *p;
libexec/rtld-elf/libmap.c
226
t = f = c = NULL;
libexec/rtld-elf/libmap.c
248
c = cp++;
libexec/rtld-elf/libmap.c
273
if (strlcpy(prog, c, sizeof prog) >= sizeof prog)
libexec/rtld-elf/libmap.c
56
#define iseol(c) (((c) == '#') || ((c) == '\0') || \
libexec/rtld-elf/libmap.c
57
((c) == '\n') || ((c) == '\r'))
libexec/rtld-elf/libmap.c
63
#define rtld_isspace(c) ((c) == ' ' || (c) == '\t')
libexec/rtld-elf/rtld.c
1871
unsigned char c;
libexec/rtld-elf/rtld.c
1874
for (c = *s; c != '\0'; c = *++s)
libexec/rtld-elf/rtld.c
1875
h = h * 33 + c;
libexec/rtld-elf/rtld.c
5222
int c;
libexec/rtld-elf/rtld.c
5230
while ((c = *fmt++) != '\0') {
libexec/rtld-elf/rtld.c
5231
switch (c) {
libexec/rtld-elf/rtld.c
5233
rtld_putchar(c);
libexec/rtld-elf/rtld.c
5236
switch (c = *fmt) {
libexec/rtld-elf/rtld.c
5248
switch (c = *fmt) {
libexec/rtld-elf/rtld.c
5253
rtld_putchar(c);
libexec/rtld-elf/rtld.c
6538
char c;
libexec/rtld-elf/rtld.c
6542
for (c = *str; c != '\0'; c = *++str) {
libexec/rtld-elf/rtld.c
6543
if (c < '0' || c > '9')
libexec/rtld-elf/rtld.c
6549
if (n > INT_MAX - (c - '0'))
libexec/rtld-elf/rtld.c
6551
n += c - '0';
libexec/rtld-elf/rtld_printf.c
107
char *p, c;
libexec/rtld-elf/rtld_printf.c
112
c = upper ? hex2ascii_upper(num % base) :
libexec/rtld-elf/rtld_printf.c
114
*++p = c;
libexec/rtld-elf/rtld_printf.c
124
#define PCHAR(c) snprintf_func((c), arg)
libexec/rtld-elf/rtld_printf.c
508
rtld_fdputchar(int fd, int c)
libexec/rtld-elf/rtld_printf.c
512
c1 = c;
libexec/rtld-elf/rtld_printf.h
42
void rtld_fdputchar(int fd, int c);
libexec/rtld-elf/rtld_printf.h
46
#define rtld_putchar(c) rtld_fdputchar(STDOUT_FILENO, (c))
libexec/tftpd/tftp-options.c
416
char *c, *cp, *option, *value;
libexec/tftpd/tftp-options.c
439
for (c = option; *c; c++)
libexec/tftpd/tftp-options.c
440
if (isupper(*c))
libexec/tftpd/tftp-options.c
441
*c = tolower(*c);
sbin/bsdlabel/bsdlabel.c
608
int c, fd;
sbin/bsdlabel/bsdlabel.c
628
c = getasciilabel(fp, &label);
sbin/bsdlabel/bsdlabel.c
630
if (c) {
sbin/bsdlabel/bsdlabel.c
639
c = getchar();
sbin/bsdlabel/bsdlabel.c
640
if (c != EOF && c != (int)'\n')
sbin/bsdlabel/bsdlabel.c
643
if (c == (int)'n')
sbin/bsdlabel/bsdlabel.c
705
char c;
sbin/bsdlabel/bsdlabel.c
709
if ((c = *cp) != '\0') {
sbin/bsdlabel/bsdlabel.c
711
if (c != '#')
sbin/camcontrol/attrib.c
130
int c;
sbin/camcontrol/attrib.c
161
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/attrib.c
162
switch (c) {
sbin/camcontrol/camcontrol.c
10396
int c;
sbin/camcontrol/camcontrol.c
10539
while ((c = getopt(argc, argv, combinedopt))!= -1){
sbin/camcontrol/camcontrol.c
10540
switch(c) {
sbin/camcontrol/camcontrol.c
1082
int c;
sbin/camcontrol/camcontrol.c
1085
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
1086
switch(c) {
sbin/camcontrol/camcontrol.c
2921
int error, confirm, quiet, c, action, actions, persist;
sbin/camcontrol/camcontrol.c
2938
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
2939
switch(c){
sbin/camcontrol/camcontrol.c
2947
if (ata_getpwd(pwd.password, pwdsize, c) != 0)
sbin/camcontrol/camcontrol.c
2961
if (ata_getpwd(pwd.password, pwdsize, c) != 0)
sbin/camcontrol/camcontrol.c
3129
int error, quiet, c, action, actions;
sbin/camcontrol/camcontrol.c
3139
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
3140
switch(c){
sbin/camcontrol/camcontrol.c
3249
int error, confirm, quiet, c, action, actions, setpwd;
sbin/camcontrol/camcontrol.c
3268
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
3269
switch(c){
sbin/camcontrol/camcontrol.c
3304
if (ata_getpwd(pwd.password, pwdsize, c) != 0)
sbin/camcontrol/camcontrol.c
3311
if (ata_getpwd(pwd.password, pwdsize, c) != 0)
sbin/camcontrol/camcontrol.c
3318
if (ata_getpwd(pwd.password, pwdsize, c) != 0)
sbin/camcontrol/camcontrol.c
3325
if (ata_getpwd(pwd.password, pwdsize, c) != 0)
sbin/camcontrol/camcontrol.c
3333
if (ata_getpwd(pwd.password, pwdsize, c) != 0)
sbin/camcontrol/camcontrol.c
3972
int c, error = 0;
sbin/camcontrol/camcontrol.c
3978
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
3979
switch(c){
sbin/camcontrol/camcontrol.c
4645
int c, page = -1, subpage = 0, pc = 0, llbaa = 0;
sbin/camcontrol/camcontrol.c
4648
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
4649
switch(c) {
sbin/camcontrol/camcontrol.c
468
int c;
sbin/camcontrol/camcontrol.c
470
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
471
switch(c) {
sbin/camcontrol/camcontrol.c
4723
int c, data_bytes = 0, valid_bytes;
sbin/camcontrol/camcontrol.c
4741
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
4742
switch(c) {
sbin/camcontrol/camcontrol.c
5071
int c, fd;
sbin/camcontrol/camcontrol.c
5081
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
5082
switch(c) {
sbin/camcontrol/camcontrol.c
5190
int c;
sbin/camcontrol/camcontrol.c
5204
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
5205
switch(c) {
sbin/camcontrol/camcontrol.c
6140
int c;
sbin/camcontrol/camcontrol.c
6158
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
6159
switch(c){
sbin/camcontrol/camcontrol.c
6472
int c;
sbin/camcontrol/camcontrol.c
6491
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
6492
switch(c) {
sbin/camcontrol/camcontrol.c
6950
int c;
sbin/camcontrol/camcontrol.c
6984
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
6985
switch(c) {
sbin/camcontrol/camcontrol.c
7323
int c, countonly, lunsonly;
sbin/camcontrol/camcontrol.c
7343
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
7344
switch (c) {
sbin/camcontrol/camcontrol.c
7564
int c;
sbin/camcontrol/camcontrol.c
7582
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
7583
switch (c) {
sbin/camcontrol/camcontrol.c
7761
int c, error = 0;
sbin/camcontrol/camcontrol.c
7781
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
7782
switch (c) {
sbin/camcontrol/camcontrol.c
7954
int c, error = 0;
sbin/camcontrol/camcontrol.c
7986
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
7987
switch (c) {
sbin/camcontrol/camcontrol.c
8317
int c, long_response = 0;
sbin/camcontrol/camcontrol.c
8330
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
8331
switch (c) {
sbin/camcontrol/camcontrol.c
8460
int c;
sbin/camcontrol/camcontrol.c
8472
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
8473
switch (c) {
sbin/camcontrol/camcontrol.c
848
int c;
sbin/camcontrol/camcontrol.c
8490
switch (c) {
sbin/camcontrol/camcontrol.c
856
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
857
switch (c) {
sbin/camcontrol/camcontrol.c
8715
int c;
sbin/camcontrol/camcontrol.c
8727
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
8728
switch (c) {
sbin/camcontrol/camcontrol.c
9090
int i, c;
sbin/camcontrol/camcontrol.c
9120
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
9121
switch (c) {
sbin/camcontrol/camcontrol.c
9399
int c;
sbin/camcontrol/camcontrol.c
9410
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
9411
switch (c) {
sbin/camcontrol/camcontrol.c
9480
int c;
sbin/camcontrol/camcontrol.c
9490
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
9491
switch (c) {
sbin/camcontrol/camcontrol.c
9906
int c;
sbin/camcontrol/camcontrol.c
9915
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/camcontrol.c
9916
switch (c) {
sbin/camcontrol/depop.c
203
int c;
sbin/camcontrol/depop.c
210
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/depop.c
211
switch (c) {
sbin/camcontrol/epc.c
614
int c;
sbin/camcontrol/epc.c
633
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/epc.c
634
switch (c) {
sbin/camcontrol/fwdownload.c
989
int c;
sbin/camcontrol/fwdownload.c
995
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/fwdownload.c
996
switch (c) {
sbin/camcontrol/modeedit.c
414
char c;
sbin/camcontrol/modeedit.c
435
if (c == '\n') \
sbin/camcontrol/modeedit.c
446
c = '\0';
sbin/camcontrol/modeedit.c
464
c = ch;
sbin/camcontrol/modeedit.c
467
if (c == '\n')
sbin/camcontrol/modeedit.c
471
if (c == PAGEDEF_START)
sbin/camcontrol/modeedit.c
473
else if (c == PAGEDEF_END) {
sbin/camcontrol/modeedit.c
487
if (isspace(c)) {
sbin/camcontrol/modeedit.c
490
} else if (depth == 0 && c == PAGEENTRY_END) {
sbin/camcontrol/modeedit.c
506
} else if (depth == 0 && c == PAGENAME_START) {
sbin/camcontrol/modeedit.c
508
} else if (c == PAGEDEF_START) {
sbin/camcontrol/modeedit.c
528
} else if (c == PAGEDEF_END) {
sbin/camcontrol/modeedit.c
532
strncat(str_page, &c, 1);
sbin/camcontrol/modeedit.c
541
if (c == PAGENAME_END) {
sbin/camcontrol/modeedit.c
548
strncat(str_pagename, &c, 1);
sbin/camcontrol/modeedit.c
565
strncat(format, &c, 1);
sbin/camcontrol/persist.c
430
int c, in = 0, out = 0;
sbin/camcontrol/persist.c
454
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/persist.c
455
switch (c) {
sbin/camcontrol/persist.c
509
if (c == 'k') {
sbin/camcontrol/persist.c
521
if (c == 'i') {
sbin/camcontrol/timestamp.c
331
int c;
sbin/camcontrol/timestamp.c
340
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/timestamp.c
341
switch (c) {
sbin/camcontrol/zone.c
336
int c;
sbin/camcontrol/zone.c
345
while ((c = getopt(argc, argv, combinedopt)) != -1) {
sbin/camcontrol/zone.c
346
switch (c) {
sbin/decryptcore/decryptcore.c
179
unsigned char c[1];
sbin/decryptcore/decryptcore.c
180
RAND_bytes(c, 1);
sbin/devd/devd.cc
194
event_proc::matches(config &c) const
sbin/devd/devd.cc
199
if (!(*i)->do_match(c))
sbin/devd/devd.cc
205
event_proc::run(config &c) const
sbin/devd/devd.cc
210
if (!(*i)->do_action(c))
sbin/devd/devd.cc
281
action::do_action(config &c)
sbin/devd/devd.cc
283
string s = c.expand_string(_cmd.c_str());
sbin/devd/devd.cc
289
match::match(config &c, const char *var, const char *re) :
sbin/devd/devd.cc
292
_re(c.expand_string(_inv ? re + 1 : re, "^", "$"))
sbin/devd/devd.cc
303
match::do_match(config &c)
sbin/devd/devd.cc
305
const string &value = c.get_variable(_var);
sbin/devd/devd.cc
352
media::do_match(config &c)
sbin/devd/devd.cc
364
value = c.get_variable("device-name");
sbin/devd/devd.cc
366
value = c.get_variable("subsystem");
sbin/devd/devd.cc
655
char c;
sbin/devd/devd.cc
668
c = *cs;
sbin/devd/devd.cc
669
if (c == '\'' || c == '\\') {
sbin/devd/devd.cc
672
buffer += c;
sbin/devfs/devfs.c
60
struct cmd *c;
sbin/devfs/devfs.c
83
for (c = ctbl_main; c->name != NULL; ++c)
sbin/devfs/devfs.c
84
if (strcmp(c->name, av[0]) == 0)
sbin/devfs/devfs.c
85
exit((*c->handler)(ac, av));
sbin/devfs/rule.c
101
for (c = ctbl_rule; c->name != NULL; ++c)
sbin/devfs/rule.c
102
if (strcmp(c->name, av[0]) == 0)
sbin/devfs/rule.c
103
exit((*c->handler)(ac, av));
sbin/devfs/rule.c
83
struct cmd *c;
sbin/devmatch/devmatch.c
164
char *c = (char *)p;
sbin/devmatch/devmatch.c
165
int len = *(uint8_t *)c;
sbin/devmatch/devmatch.c
167
memcpy(val, c + 1, len);
sbin/devmatch/devmatch.c
169
c += len + 1;
sbin/devmatch/devmatch.c
170
*ptr = (void *)c;
sbin/dhclient/conflex.c
106
} else if (c != EOF) {
sbin/dhclient/conflex.c
108
cur_line[lpos - 1] = c;
sbin/dhclient/conflex.c
115
return (c);
sbin/dhclient/conflex.c
121
int c, ttok;
sbin/dhclient/conflex.c
129
c = get_char(cfile);
sbin/dhclient/conflex.c
131
if (!(c == '\n' && eol_token) && isascii(c) && isspace(c))
sbin/dhclient/conflex.c
133
if (c == '#') {
sbin/dhclient/conflex.c
137
if (c == '"') {
sbin/dhclient/conflex.c
143
if ((isascii(c) && isdigit(c)) || c == '-') {
sbin/dhclient/conflex.c
146
ttok = read_number(c, cfile);
sbin/dhclient/conflex.c
148
} else if (isascii(c) && isalpha(c)) {
sbin/dhclient/conflex.c
151
ttok = read_num_or_name(c, cfile);
sbin/dhclient/conflex.c
156
tb[0] = c;
sbin/dhclient/conflex.c
159
ttok = c;
sbin/dhclient/conflex.c
215
int c;
sbin/dhclient/conflex.c
218
c = get_char(cfile);
sbin/dhclient/conflex.c
219
if (c == EOF)
sbin/dhclient/conflex.c
221
if (c == '\n')
sbin/dhclient/conflex.c
229
int c, bs = 0;
sbin/dhclient/conflex.c
233
c = get_char(cfile);
sbin/dhclient/conflex.c
234
if (c == EOF) {
sbin/dhclient/conflex.c
241
tokbuf[i] = c;
sbin/dhclient/conflex.c
242
} else if (c == '\\')
sbin/dhclient/conflex.c
244
else if (c == '"')
sbin/dhclient/conflex.c
247
tokbuf[i] = c;
sbin/dhclient/conflex.c
263
read_number(int c, FILE *cfile)
sbin/dhclient/conflex.c
268
tokbuf[i++] = c;
sbin/dhclient/conflex.c
270
c = get_char(cfile);
sbin/dhclient/conflex.c
271
if (!seenx && c == 'x')
sbin/dhclient/conflex.c
273
else if (!isascii(c) || !isxdigit(c)) {
sbin/dhclient/conflex.c
274
ungetc(c, cfile);
sbin/dhclient/conflex.c
278
tokbuf[i] = c;
sbin/dhclient/conflex.c
291
read_num_or_name(int c, FILE *cfile)
sbin/dhclient/conflex.c
296
tokbuf[i++] = c;
sbin/dhclient/conflex.c
298
c = get_char(cfile);
sbin/dhclient/conflex.c
299
if (!isascii(c) || (c != '-' && c != '_' && !isalnum(c))) {
sbin/dhclient/conflex.c
300
ungetc(c, cfile);
sbin/dhclient/conflex.c
304
if (!isxdigit(c))
sbin/dhclient/conflex.c
306
tokbuf[i] = c;
sbin/dhclient/conflex.c
93
int c = getc(cfile);
sbin/dhclient/conflex.c
95
if (c == '\n') {
sbin/dhclient/dhclient.c
76
#define hyphenchar(c) ((c) == 0x2d)
sbin/dhclient/dhclient.c
77
#define bslashchar(c) ((c) == 0x5c)
sbin/dhclient/dhclient.c
78
#define periodchar(c) ((c) == PERIOD)
sbin/dhclient/dhclient.c
79
#define asterchar(c) ((c) == 0x2a)
sbin/dhclient/dhclient.c
80
#define alphachar(c) (((c) >= 0x41 && (c) <= 0x5a) || \
sbin/dhclient/dhclient.c
81
((c) >= 0x61 && (c) <= 0x7a))
sbin/dhclient/dhclient.c
82
#define digitchar(c) ((c) >= 0x30 && (c) <= 0x39)
sbin/dhclient/dhclient.c
83
#define whitechar(c) ((c) == ' ' || (c) == '\t')
sbin/dhclient/dhclient.c
85
#define borderchar(c) (alphachar(c) || digitchar(c))
sbin/dhclient/dhclient.c
86
#define middlechar(c) (borderchar(c) || hyphenchar(c))
sbin/dhclient/dhclient.c
87
#define domainchar(c) ((c) > 0x20 && (c) < 0x7f)
sbin/dhclient/parse.c
253
pair c = NULL;
sbin/dhclient/parse.c
307
c = cons(t, c);
sbin/dhclient/parse.c
312
if (c) {
sbin/dhclient/parse.c
320
while (c) {
sbin/dhclient/parse.c
321
pair cdr = c->cdr;
sbin/dhclient/parse.c
322
convert_num(s, (char *)c->car, base, size);
sbin/dhclient/parse.c
325
free(c->car);
sbin/dhclient/parse.c
326
free(c);
sbin/dhclient/parse.c
327
c = cdr;
sbin/dump/dumprmt.c
181
int c;
sbin/dump/dumprmt.c
184
c = *cp;
sbin/dump/dumprmt.c
185
if (!isascii(c) || !(isalnum(c) || c == '_' || c == '-')) {
sbin/dump/dumprmt.c
342
char c;
sbin/dump/dumprmt.c
344
if (read(rmtape, &c, 1) != 1)
sbin/dump/dumprmt.c
346
return (c);
sbin/dumpon/dumpon.c
241
unsigned char c[1];
sbin/dumpon/dumpon.c
242
RAND_bytes(c, 1);
sbin/etherswitchcfg/etherswitchcfg.c
110
for (; (c = *bits) > 32; bits++)
sbin/etherswitchcfg/etherswitchcfg.c
111
putchar(c);
sbin/etherswitchcfg/etherswitchcfg.c
357
char *c, *d;
sbin/etherswitchcfg/etherswitchcfg.c
366
for (c=argv[1]; *c; c=d) {
sbin/etherswitchcfg/etherswitchcfg.c
367
v = strtol(c, &d, 0);
sbin/etherswitchcfg/etherswitchcfg.c
368
if (d == c)
sbin/etherswitchcfg/etherswitchcfg.c
399
char *c;
sbin/etherswitchcfg/etherswitchcfg.c
401
a = strtol(arg, &c, 0);
sbin/etherswitchcfg/etherswitchcfg.c
402
if (c==arg)
sbin/etherswitchcfg/etherswitchcfg.c
404
if (*c == '=') {
sbin/etherswitchcfg/etherswitchcfg.c
405
v = strtoul(c+1, NULL, 0);
sbin/etherswitchcfg/etherswitchcfg.c
416
char *c, *d;
sbin/etherswitchcfg/etherswitchcfg.c
418
phy = strtol(arg, &c, 0);
sbin/etherswitchcfg/etherswitchcfg.c
419
if (c==arg)
sbin/etherswitchcfg/etherswitchcfg.c
421
if (*c != '.')
sbin/etherswitchcfg/etherswitchcfg.c
423
d = c+1;
sbin/etherswitchcfg/etherswitchcfg.c
424
reg = strtol(d, &c, 0);
sbin/etherswitchcfg/etherswitchcfg.c
425
if (d == c)
sbin/etherswitchcfg/etherswitchcfg.c
427
if (*c == '=') {
sbin/etherswitchcfg/etherswitchcfg.c
428
val = strtoul(c+1, NULL, 0);
sbin/etherswitchcfg/etherswitchcfg.c
527
const char *c;
sbin/etherswitchcfg/etherswitchcfg.c
530
c = strrchr(cfg->controlfile, '/');
sbin/etherswitchcfg/etherswitchcfg.c
531
if (c != NULL)
sbin/etherswitchcfg/etherswitchcfg.c
532
c = c + 1;
sbin/etherswitchcfg/etherswitchcfg.c
534
c = cfg->controlfile;
sbin/etherswitchcfg/etherswitchcfg.c
538
printf("%s: VLAN mode: ", c);
sbin/etherswitchcfg/etherswitchcfg.c
563
c,
sbin/etherswitchcfg/etherswitchcfg.c
653
const char *c;
sbin/etherswitchcfg/etherswitchcfg.c
656
c = strrchr(cfg->controlfile, '/');
sbin/etherswitchcfg/etherswitchcfg.c
657
if (c != NULL)
sbin/etherswitchcfg/etherswitchcfg.c
658
c = c + 1;
sbin/etherswitchcfg/etherswitchcfg.c
660
c = cfg->controlfile;
sbin/etherswitchcfg/etherswitchcfg.c
662
printf("%s: %s with %d ports and %d VLAN groups\n", c,
sbin/etherswitchcfg/etherswitchcfg.c
665
printf("%s: ", c);
sbin/etherswitchcfg/etherswitchcfg.c
96
char c;
sbin/fdisk/fdisk.c
264
int c, i;
sbin/fdisk/fdisk.c
272
while ((c = getopt(argc, argv, "BIab:f:ipqstuv1234")) != -1)
sbin/fdisk/fdisk.c
273
switch (c) {
sbin/fdisk/fdisk.c
314
partition = c - '0';
sbin/fdisk/fdisk.c
925
int c;
sbin/fdisk/fdisk.c
940
while ((c = *cp) && (c == ' ' || c == '\t')) cp++;
sbin/fdisk/fdisk.c
941
if (!c)
sbin/fdisk/fdisk.c
943
while ((c = *cp++)) {
sbin/fdisk/fdisk.c
944
if (c <= '9' && c >= '0') {
sbin/fdisk/fdisk.c
946
acc = acc * 10 + c - '0';
sbin/fdisk/fdisk.c
95
#define DOSSECT(s,c) ((s & 0x3f) | ((c >> 2) & 0xc0))
sbin/fdisk/fdisk.c
950
if (c == ' ' || c == '\t')
sbin/fdisk/fdisk.c
951
while ((c = *cp) && (c == ' ' || c == '\t')) cp++;
sbin/fdisk/fdisk.c
952
if (!c) {
sbin/fdisk/fdisk.c
96
#define DOSCYL(c) (c & 0xff)
sbin/fsck_ffs/fsutil.c
120
char c;
sbin/fsck_ffs/fsutil.c
139
c = getc(stdin);
sbin/fsck_ffs/fsutil.c
140
while (c != '\n' && getc(stdin) != '\n') {
sbin/fsck_ffs/fsutil.c
146
} while (c != 'y' && c != 'Y' && c != 'n' && c != 'N');
sbin/fsck_ffs/fsutil.c
148
if (c == 'y' || c == 'Y')
sbin/fsck_ffs/inode.c
379
int c;
sbin/fsck_ffs/inode.c
395
c = dtog(&sblock, blk);
sbin/fsck_ffs/inode.c
396
if (blk < cgdmin(&sblock, c)) {
sbin/fsck_ffs/inode.c
397
if ((blk + cnt) > cgsblock(&sblock, c)) {
sbin/fsck_ffs/inode.c
400
(long)blk, (long)cgdmin(&sblock, c));
sbin/fsck_ffs/inode.c
403
(long)cgsblock(&sblock, c));
sbin/fsck_ffs/inode.c
408
if ((blk + cnt) > cgbase(&sblock, c+1)) {
sbin/fsck_ffs/inode.c
411
(long)blk, (long)cgdmin(&sblock, c));
sbin/fsck_ffs/pass1.c
103
rebuild_cg(c, cgbp);
sbin/fsck_ffs/pass1.c
112
(uintmax_t)inosused, sblock.fs_ipg, c,
sbin/fsck_ffs/pass1.c
121
cdevname, c, sblock.fs_ncg,
sbin/fsck_ffs/pass1.c
122
c * 100 / sblock.fs_ncg);
sbin/fsck_ffs/pass1.c
127
c * 100 / sblock.fs_ncg);
sbin/fsck_ffs/pass1.c
158
inostathead[c].il_numalloced = inosused;
sbin/fsck_ffs/pass1.c
160
inostathead[c].il_stat = NULL;
sbin/fsck_ffs/pass1.c
167
inostathead[c].il_stat = info;
sbin/fsck_ffs/pass1.c
171
setinodebuf(c, inosused);
sbin/fsck_ffs/pass1.c
204
c, i, cgp->cg_initediblk, "VALID INODES");
sbin/fsck_ffs/pass1.c
210
if (lastino < (c * sblock.fs_ipg))
sbin/fsck_ffs/pass1.c
213
inosused = lastino - (c * sblock.fs_ipg);
sbin/fsck_ffs/pass1.c
217
pwarn("CYLINDER GROUP %d: FOUND %d VALID INODES\n", c,
sbin/fsck_ffs/pass1.c
227
if (inumber == lastino || c == 0)
sbin/fsck_ffs/pass1.c
229
inostathead[c].il_numalloced = inosused;
sbin/fsck_ffs/pass1.c
231
free(inostathead[c].il_stat);
sbin/fsck_ffs/pass1.c
232
inostathead[c].il_stat = NULL;
sbin/fsck_ffs/pass1.c
239
memmove(info, inostathead[c].il_stat, inosused * sizeof(*info));
sbin/fsck_ffs/pass1.c
240
free(inostathead[c].il_stat);
sbin/fsck_ffs/pass1.c
241
inostathead[c].il_stat = info;
sbin/fsck_ffs/pass1.c
63
int c, rebuiltcg;
sbin/fsck_ffs/pass1.c
70
for (c = 0; c < sblock.fs_ncg; c++) {
sbin/fsck_ffs/pass1.c
71
cgd = cgdmin(&sblock, c);
sbin/fsck_ffs/pass1.c
72
if (c == 0) {
sbin/fsck_ffs/pass1.c
73
i = cgbase(&sblock, c);
sbin/fsck_ffs/pass1.c
75
i = cgsblock(&sblock, c);
sbin/fsck_ffs/pass1.c
90
for (c = 0; c < sblock.fs_ncg; c++) {
sbin/fsck_ffs/pass1.c
91
inumber = c * sblock.fs_ipg;
sbin/fsck_ffs/pass1.c
92
cgbp = cglookup(c);
sbin/fsck_ffs/pass1.c
95
if (!check_cgmagic(c, cgbp)) {
sbin/fsck_ffs/pass1b.c
47
int c, i;
sbin/fsck_ffs/pass1b.c
55
for (c = 0; c < sblock.fs_ncg; c++) {
sbin/fsck_ffs/pass1b.c
58
cdevname, c, sblock.fs_ncg,
sbin/fsck_ffs/pass1b.c
59
c * 100 / sblock.fs_ncg);
sbin/fsck_ffs/pass1b.c
64
c * 100 / sblock.fs_ncg);
sbin/fsck_ffs/pass1b.c
67
inosused = inostathead[c].il_numalloced;
sbin/fsck_ffs/pass1b.c
70
setinodebuf(c, inosused);
sbin/fsck_ffs/pass1b.c
71
inumber = c * sblock.fs_ipg;
sbin/fsck_ffs/pass5.c
150
for (c = 0; c < fs->fs_ncg; c++) {
sbin/fsck_ffs/pass5.c
153
cdevname, c, sblock.fs_ncg,
sbin/fsck_ffs/pass5.c
154
c * 100 / sblock.fs_ncg);
sbin/fsck_ffs/pass5.c
159
c * 100 / sblock.fs_ncg);
sbin/fsck_ffs/pass5.c
162
cgbp = cglookup(c);
sbin/fsck_ffs/pass5.c
165
pfatal("CG %d: BAD MAGIC NUMBER\n", c);
sbin/fsck_ffs/pass5.c
181
c, ckhash, thishash);
sbin/fsck_ffs/pass5.c
190
newcg->cg_cgx = c;
sbin/fsck_ffs/pass5.c
191
dbase = cgbase(fs, c);
sbin/fsck_ffs/pass5.c
197
if (c == fs->fs_ncg - 1)
sbin/fsck_ffs/pass5.c
233
inum = fs->fs_ipg * c;
sbin/fsck_ffs/pass5.c
234
for (i = 0; i < inostathead[c].il_numalloced; inum++, i++) {
sbin/fsck_ffs/pass5.c
261
if (c == 0)
sbin/fsck_ffs/pass5.c
338
cs = &fs->fs_cs(fs, c);
sbin/fsck_ffs/pass5.c
52
int c, i, j, blk, frags, basesize, mapsize;
sbin/fsck_msdosfs/main.c
135
int c;
sbin/fsck_msdosfs/main.c
156
c = getchar();
sbin/fsck_msdosfs/main.c
157
while (c != '\n' && getchar() != '\n')
sbin/fsck_msdosfs/main.c
160
} while (c != 'y' && c != 'Y' && c != 'n' && c != 'N');
sbin/fsck_msdosfs/main.c
161
return c == 'y' || c == 'Y';
sbin/fsdb/fsdb.c
493
int c, i, is_ufs2;
sbin/fsdb/fsdb.c
517
for (c = 0; c < sblock.fs_ncg; c++) {
sbin/fsdb/fsdb.c
522
inum = c * sblock.fs_ipg;
sbin/fsdb/fsdb.c
524
cgbp = cglookup(c);
sbin/geom/misc/subr.c
69
unsigned int c;
sbin/geom/misc/subr.c
72
c = a;
sbin/geom/misc/subr.c
74
b = (c % b);
sbin/ifconfig/ifconfig.c
1957
char c;
sbin/ifconfig/ifconfig.c
1971
for (; (c = *bits) > 32; bits++)
sbin/ifconfig/ifconfig.c
1972
putchar(c);
sbin/ifconfig/ifconfig.c
469
int c;
sbin/ifconfig/ifconfig.c
475
while ((c = getopt(argc, argv, options)) != -1) {
sbin/ifconfig/ifconfig.c
476
switch (c) {
sbin/ifconfig/ifconfig.c
537
if (p->opt[0] == c) {
sbin/ifconfig/ifieee80211.c
1137
int first, last, f, c;
sbin/ifconfig/ifieee80211.c
1165
c = *tp;
sbin/ifconfig/ifieee80211.c
1166
while (isspace(c))
sbin/ifconfig/ifieee80211.c
1168
if (!isdigit(c))
sbin/ifconfig/ifieee80211.c
1507
int c = *cp;
sbin/ifconfig/ifieee80211.c
1508
if (isupper(c))
sbin/ifconfig/ifieee80211.c
1509
c = tolower(c);
sbin/ifconfig/ifieee80211.c
1510
switch (c) {
sbin/ifconfig/ifieee80211.c
156
static void LINE_INIT(char c);
sbin/ifconfig/ifieee80211.c
2079
const struct ieee80211_channel *c = &chans[i];
sbin/ifconfig/ifieee80211.c
2080
if (c->ic_freq == freq &&
sbin/ifconfig/ifieee80211.c
2081
(c->ic_flags & IEEE80211_CHAN_ALLTURBO) == flags)
sbin/ifconfig/ifieee80211.c
2082
return c;
sbin/ifconfig/ifieee80211.c
2091
const struct ieee80211_channel *c = &chans[i];
sbin/ifconfig/ifieee80211.c
2092
if ((c->ic_flags & flags) == flags)
sbin/ifconfig/ifieee80211.c
2154
struct ieee80211_channel *c, *prev;
sbin/ifconfig/ifieee80211.c
2297
c = &ci->ic_chans[ci->ic_nchans++];
sbin/ifconfig/ifieee80211.c
2298
memset(c, 0, sizeof(*c));
sbin/ifconfig/ifieee80211.c
2299
c->ic_freq = freq;
sbin/ifconfig/ifieee80211.c
2300
c->ic_flags = flags;
sbin/ifconfig/ifieee80211.c
2301
if (c->ic_flags & IEEE80211_CHAN_DFS)
sbin/ifconfig/ifieee80211.c
2302
c->ic_maxregpower = nb->maxPowerDFS;
sbin/ifconfig/ifieee80211.c
2304
c->ic_maxregpower = nb->maxPower;
sbin/ifconfig/ifieee80211.c
2307
ci->ic_nchans-1, c->ic_freq);
sbin/ifconfig/ifieee80211.c
2308
printb("flags", c->ic_flags, IEEE80211_CHAN_BITS);
sbin/ifconfig/ifieee80211.c
2309
printf(" power %u\n", c->ic_maxregpower);
sbin/ifconfig/ifieee80211.c
2312
prev = c;
sbin/ifconfig/ifieee80211.c
2564
LINE_INIT(char c)
sbin/ifconfig/ifieee80211.c
2566
spacer = c;
sbin/ifconfig/ifieee80211.c
2567
if (c == '\t')
sbin/ifconfig/ifieee80211.c
358
const struct ieee80211_channel *c = &chaninfo->ic_chans[i];
sbin/ifconfig/ifieee80211.c
360
if (c->ic_freq == freq && (c->ic_flags & flags) == flags) {
sbin/ifconfig/ifieee80211.c
363
c = &chaninfo->ic_chans[promote(i)];
sbin/ifconfig/ifieee80211.c
365
*chan = *c;
sbin/ifconfig/ifieee80211.c
378
const struct ieee80211_channel *c = &chaninfo->ic_chans[i];
sbin/ifconfig/ifieee80211.c
380
if (c->ic_ieee == ieee && (c->ic_flags & flags) == flags) {
sbin/ifconfig/ifieee80211.c
383
c = &chaninfo->ic_chans[promote(i)];
sbin/ifconfig/ifieee80211.c
385
*chan = *c;
sbin/ifconfig/ifieee80211.c
410
chan2mode(const struct ieee80211_channel *c)
sbin/ifconfig/ifieee80211.c
412
if (IEEE80211_IS_CHAN_VHTA(c))
sbin/ifconfig/ifieee80211.c
414
if (IEEE80211_IS_CHAN_VHTG(c))
sbin/ifconfig/ifieee80211.c
416
if (IEEE80211_IS_CHAN_HTA(c))
sbin/ifconfig/ifieee80211.c
418
if (IEEE80211_IS_CHAN_HTG(c))
sbin/ifconfig/ifieee80211.c
420
if (IEEE80211_IS_CHAN_108A(c))
sbin/ifconfig/ifieee80211.c
422
if (IEEE80211_IS_CHAN_108G(c))
sbin/ifconfig/ifieee80211.c
424
if (IEEE80211_IS_CHAN_ST(c))
sbin/ifconfig/ifieee80211.c
426
if (IEEE80211_IS_CHAN_FHSS(c))
sbin/ifconfig/ifieee80211.c
4275
get_chaninfo(const struct ieee80211_channel *c, int precise,
sbin/ifconfig/ifieee80211.c
4279
if (IEEE80211_IS_CHAN_FHSS(c))
sbin/ifconfig/ifieee80211.c
428
if (IEEE80211_IS_CHAN_HALF(c))
sbin/ifconfig/ifieee80211.c
4281
if (IEEE80211_IS_CHAN_A(c))
sbin/ifconfig/ifieee80211.c
4283
else if (IEEE80211_IS_CHAN_ANYG(c))
sbin/ifconfig/ifieee80211.c
4285
else if (IEEE80211_IS_CHAN_B(c))
sbin/ifconfig/ifieee80211.c
4287
if (IEEE80211_IS_CHAN_HALF(c))
sbin/ifconfig/ifieee80211.c
4289
if (IEEE80211_IS_CHAN_QUARTER(c))
sbin/ifconfig/ifieee80211.c
4291
if (IEEE80211_IS_CHAN_TURBO(c))
sbin/ifconfig/ifieee80211.c
4294
if (IEEE80211_IS_CHAN_VHT80P80(c))
sbin/ifconfig/ifieee80211.c
4296
else if (IEEE80211_IS_CHAN_VHT160(c))
sbin/ifconfig/ifieee80211.c
4298
else if (IEEE80211_IS_CHAN_VHT80(c) &&
sbin/ifconfig/ifieee80211.c
4299
IEEE80211_IS_CHAN_HT40D(c))
sbin/ifconfig/ifieee80211.c
430
if (IEEE80211_IS_CHAN_QUARTER(c))
sbin/ifconfig/ifieee80211.c
4301
else if (IEEE80211_IS_CHAN_VHT80(c) &&
sbin/ifconfig/ifieee80211.c
4302
IEEE80211_IS_CHAN_HT40U(c))
sbin/ifconfig/ifieee80211.c
4304
else if (IEEE80211_IS_CHAN_VHT80(c))
sbin/ifconfig/ifieee80211.c
4306
else if (IEEE80211_IS_CHAN_VHT40D(c))
sbin/ifconfig/ifieee80211.c
4308
else if (IEEE80211_IS_CHAN_VHT40U(c))
sbin/ifconfig/ifieee80211.c
4310
else if (IEEE80211_IS_CHAN_VHT20(c))
sbin/ifconfig/ifieee80211.c
4312
else if (IEEE80211_IS_CHAN_HT20(c))
sbin/ifconfig/ifieee80211.c
4314
else if (IEEE80211_IS_CHAN_HT40D(c))
sbin/ifconfig/ifieee80211.c
4316
else if (IEEE80211_IS_CHAN_HT40U(c))
sbin/ifconfig/ifieee80211.c
4319
if (IEEE80211_IS_CHAN_VHT(c))
sbin/ifconfig/ifieee80211.c
432
if (IEEE80211_IS_CHAN_A(c))
sbin/ifconfig/ifieee80211.c
4321
else if (IEEE80211_IS_CHAN_HT(c))
sbin/ifconfig/ifieee80211.c
4328
print_chaninfo(const struct ieee80211_channel *c, int verb)
sbin/ifconfig/ifieee80211.c
4334
ieee80211_mhz2ieee(c->ic_freq, c->ic_flags), c->ic_freq,
sbin/ifconfig/ifieee80211.c
4335
IEEE80211_IS_CHAN_PASSIVE(c) ? '*' : ' ',
sbin/ifconfig/ifieee80211.c
4336
IEEE80211_IS_CHAN_DFS(c) ? 'D' : ' ',
sbin/ifconfig/ifieee80211.c
4337
IEEE80211_IS_CHAN_RADAR(c) ? 'R' : ' ',
sbin/ifconfig/ifieee80211.c
4338
IEEE80211_IS_CHAN_CWINT(c) ? 'I' : ' ',
sbin/ifconfig/ifieee80211.c
4339
IEEE80211_IS_CHAN_CACDONE(c) ? 'C' : ' ',
sbin/ifconfig/ifieee80211.c
434
if (IEEE80211_IS_CHAN_ANYG(c))
sbin/ifconfig/ifieee80211.c
4340
get_chaninfo(c, verb, buf, sizeof(buf)));
sbin/ifconfig/ifieee80211.c
4343
ieee80211_mhz2ieee(c->ic_freq, c->ic_flags), c->ic_freq,
sbin/ifconfig/ifieee80211.c
4344
IEEE80211_IS_CHAN_PASSIVE(c) ? '*' : ' ',
sbin/ifconfig/ifieee80211.c
4345
get_chaninfo(c, verb, buf, sizeof(buf)));
sbin/ifconfig/ifieee80211.c
4350
chanpref(const struct ieee80211_channel *c)
sbin/ifconfig/ifieee80211.c
4353
if (IEEE80211_IS_CHAN_VHT80P80(c))
sbin/ifconfig/ifieee80211.c
4355
if (IEEE80211_IS_CHAN_VHT160(c))
sbin/ifconfig/ifieee80211.c
4357
if (IEEE80211_IS_CHAN_VHT80(c))
sbin/ifconfig/ifieee80211.c
4359
if (IEEE80211_IS_CHAN_VHT40(c))
sbin/ifconfig/ifieee80211.c
436
if (IEEE80211_IS_CHAN_B(c))
sbin/ifconfig/ifieee80211.c
4361
if (IEEE80211_IS_CHAN_VHT20(c))
sbin/ifconfig/ifieee80211.c
4363
if (IEEE80211_IS_CHAN_HT40(c))
sbin/ifconfig/ifieee80211.c
4365
if (IEEE80211_IS_CHAN_HT20(c))
sbin/ifconfig/ifieee80211.c
4367
if (IEEE80211_IS_CHAN_HALF(c))
sbin/ifconfig/ifieee80211.c
4369
if (IEEE80211_IS_CHAN_QUARTER(c))
sbin/ifconfig/ifieee80211.c
4371
if (IEEE80211_IS_CHAN_TURBO(c))
sbin/ifconfig/ifieee80211.c
4373
if (IEEE80211_IS_CHAN_A(c))
sbin/ifconfig/ifieee80211.c
4375
if (IEEE80211_IS_CHAN_G(c))
sbin/ifconfig/ifieee80211.c
4377
if (IEEE80211_IS_CHAN_B(c))
sbin/ifconfig/ifieee80211.c
4379
if (IEEE80211_IS_CHAN_PUREG(c))
sbin/ifconfig/ifieee80211.c
4390
const struct ieee80211_channel *c;
sbin/ifconfig/ifieee80211.c
4404
c = &chans->ic_chans[i];
sbin/ifconfig/ifieee80211.c
4405
if (!isset(active.ic_channels, c->ic_ieee))
sbin/ifconfig/ifieee80211.c
4413
if (isset(reported, c->ic_ieee) && !verb) {
sbin/ifconfig/ifieee80211.c
4415
achans->ic_chans[achans->ic_nchans-1] = *c;
sbin/ifconfig/ifieee80211.c
4417
achans->ic_chans[achans->ic_nchans++] = *c;
sbin/ifconfig/ifieee80211.c
4418
setbit(reported, c->ic_ieee);
sbin/ifconfig/ifieee80211.c
4423
c = &chans->ic_chans[i];
sbin/ifconfig/ifieee80211.c
4425
if (isset(reported, c->ic_ieee) && !verb) {
sbin/ifconfig/ifieee80211.c
4429
if (chanpref(c) > chanpref(a))
sbin/ifconfig/ifieee80211.c
4430
*a = *c;
sbin/ifconfig/ifieee80211.c
4432
achans->ic_chans[achans->ic_nchans++] = *c;
sbin/ifconfig/ifieee80211.c
4433
setbit(reported, c->ic_ieee);
sbin/ifconfig/ifieee80211.c
4461
print_txpow(const struct ieee80211_channel *c)
sbin/ifconfig/ifieee80211.c
4464
c->ic_ieee, c->ic_freq,
sbin/ifconfig/ifieee80211.c
4465
c->ic_maxpower/2., c->ic_maxregpower);
sbin/ifconfig/ifieee80211.c
4469
print_txpow_verbose(const struct ieee80211_channel *c)
sbin/ifconfig/ifieee80211.c
4471
print_chaninfo(c, 1);
sbin/ifconfig/ifieee80211.c
4473
c->ic_minpower/2., c->ic_maxpower/2., c->ic_maxregpower);
sbin/ifconfig/ifieee80211.c
4475
if (c->ic_maxpower > 2*c->ic_maxregpower)
sbin/ifconfig/ifieee80211.c
4484
struct ieee80211_channel *c, *prev;
sbin/ifconfig/ifieee80211.c
4494
c = &chaninfo->ic_chans[i];
sbin/ifconfig/ifieee80211.c
4496
if (isset(reported, c->ic_ieee) && !ctx->args->verbose) {
sbin/ifconfig/ifieee80211.c
4501
if (c->ic_maxpower > prev->ic_maxpower)
sbin/ifconfig/ifieee80211.c
4502
*prev = *c;
sbin/ifconfig/ifieee80211.c
4504
achans->ic_chans[achans->ic_nchans++] = *c;
sbin/ifconfig/ifieee80211.c
4505
setbit(reported, c->ic_ieee);
sbin/ifconfig/ifieee80211.c
4780
char c;
sbin/ifconfig/ifieee80211.c
4794
c = '*';
sbin/ifconfig/ifieee80211.c
4796
c = '+';
sbin/ifconfig/ifieee80211.c
4798
c = '-';
sbin/ifconfig/ifieee80211.c
4800
c = 'r'; /* NB: should never have entries */
sbin/ifconfig/ifieee80211.c
4803
c = '?';
sbin/ifconfig/ifieee80211.c
4805
if (ctx->args->verbose || c == '?')
sbin/ifconfig/ifieee80211.c
4813
if (!(ctx->args->verbose || c == '?'))
sbin/ifconfig/ifieee80211.c
4829
printf("%c%s\n", c, ether_ntoa(
sbin/ifconfig/ifieee80211.c
5172
const struct ieee80211_channel *c;
sbin/ifconfig/ifieee80211.c
5211
c = getcurchan(ctx);
sbin/ifconfig/ifieee80211.c
5212
if (c->ic_freq != IEEE80211_CHAN_ANY) {
sbin/ifconfig/ifieee80211.c
5214
printf(" channel %d (%u MHz%s)", c->ic_ieee, c->ic_freq,
sbin/ifconfig/ifieee80211.c
5215
get_chaninfo(c, 1, buf, sizeof(buf)));
sbin/ifconfig/ifieee80211.c
5457
tp = &txparams.params[chan2mode(c)];
sbin/ifconfig/ifieee80211.c
5493
rp = &roamparams.params[chan2mode(c)];
sbin/ifconfig/ifieee80211.c
5508
if (IEEE80211_IS_CHAN_ANYG(c) || verbose) {
sbin/ifconfig/ifieee80211.c
5533
if (IEEE80211_IS_CHAN_HT(c) || verbose) {
sbin/ifconfig/ifieee80211.c
5718
if (IEEE80211_IS_CHAN_VHT(c) || verbose) {
sbin/ifconfig/ifieee80211.c
682
int c = *cp;
sbin/ifconfig/ifieee80211.c
683
if (isupper(c))
sbin/ifconfig/ifieee80211.c
684
c = tolower(c);
sbin/ifconfig/ifieee80211.c
685
switch (c) {
sbin/init/init.c
194
int c, error;
sbin/init/init.c
2068
int c;
sbin/init/init.c
2075
c = *t;
sbin/init/init.c
2076
while (c == ' ' || c == '\t' )
sbin/init/init.c
2077
c = *++t;
sbin/init/init.c
2078
if (!c) {
sbin/init/init.c
2083
if (c == '\'') {
sbin/init/init.c
2084
c = *++t;
sbin/init/init.c
2086
while (c && c != '\'')
sbin/init/init.c
2087
c = *++t;
sbin/init/init.c
2088
if (!c) /* unterminated string */
sbin/init/init.c
2093
while (c && c != ' ' && c != '\t' )
sbin/init/init.c
2094
c = *++t;
sbin/init/init.c
2096
if (!c)
sbin/init/init.c
272
while ((c = getopt(argc, argv, "dsfr")) != -1)
sbin/init/init.c
273
switch (c) {
sbin/init/init.c
287
warning("unrecognized flag '-%c'", c);
sbin/ipf/common/lexer.c
102
yyunputc(int c)
sbin/ipf/common/lexer.c
104
if (c == '\n')
sbin/ipf/common/lexer.c
106
yytext[--yypos] = c;
sbin/ipf/common/lexer.c
113
int c;
sbin/ipf/common/lexer.c
115
while (((c = yygetc(0)) > '\0') && (c != last))
sbin/ipf/common/lexer.c
118
if (c != EOF)
sbin/ipf/common/lexer.c
119
yyunputc(c);
sbin/ipf/common/lexer.c
120
if (c == last)
sbin/ipf/common/lexer.c
183
int c, n, isbuilding, rval, lnext, nokey = 0;
sbin/ipf/common/lexer.c
197
c = yygetc(0);
sbin/ipf/common/lexer.c
200
c, c, yypos, yypos, yytexttochar());
sbin/ipf/common/lexer.c
202
switch (c)
sbin/ipf/common/lexer.c
211
yyunputc(c);
sbin/ipf/common/lexer.c
243
if ((isbuilding == 0) && !ISALNUM(c)) {
sbin/ipf/common/lexer.c
244
prior = c;
sbin/ipf/common/lexer.c
245
return (c);
sbin/ipf/common/lexer.c
250
switch (c)
sbin/ipf/common/lexer.c
254
yyunputc(c);
sbin/ipf/common/lexer.c
263
yyunputc(c);
sbin/ipf/common/lexer.c
29
#define ishex(c) (ISDIGIT(c) || ((c) >= 'a' && (c) <= 'f') || \
sbin/ipf/common/lexer.c
30
((c) >= 'A' && (c) <= 'F'))
sbin/ipf/common/lexer.c
320
} while (n != c);
sbin/ipf/common/lexer.c
339
if (strchr("=,/;{}()@", c) != NULL) {
sbin/ipf/common/lexer.c
341
yyunputc(c);
sbin/ipf/common/lexer.c
344
rval = c;
sbin/ipf/common/lexer.c
346
} else if (c == '.') {
sbin/ipf/common/lexer.c
348
rval = c;
sbin/ipf/common/lexer.c
352
yyunputc(c);
sbin/ipf/common/lexer.c
357
switch (c)
sbin/ipf/common/lexer.c
368
yyunputc(c);
sbin/ipf/common/lexer.c
380
yyunputc(c);
sbin/ipf/common/lexer.c
396
yyunputc(c);
sbin/ipf/common/lexer.c
416
yyunputc(c);
sbin/ipf/common/lexer.c
442
(ishex(c) || isdigit(c) || c == ':')) {
sbin/ipf/common/lexer.c
449
oc = c;
sbin/ipf/common/lexer.c
451
if (prior == YY_NUMBER && c == ':') {
sbin/ipf/common/lexer.c
462
*s++ = c;
sbin/ipf/common/lexer.c
463
c = yygetc(1);
sbin/ipf/common/lexer.c
464
} while ((ishex(c) || c == ':' || c == '.') &&
sbin/ipf/common/lexer.c
466
yyunputc(c);
sbin/ipf/common/lexer.c
475
c = oc;
sbin/ipf/common/lexer.c
479
if ((c == ':') && (rval != YY_IPV6) && (triedv6 == 0)) {
sbin/ipf/common/lexer.c
489
c = *yystr;
sbin/ipf/common/lexer.c
499
yyunputc(c);
sbin/ipf/common/lexer.c
506
if (isbuilding == 0 && c == '0') {
sbin/ipf/common/lexer.c
522
if (isbuilding == 0 && ISDIGIT(c)) {
sbin/ipf/common/lexer.c
66
int c;
sbin/ipf/common/lexer.c
69
c = yytext[yypos++];
sbin/ipf/common/lexer.c
70
if (c == '\n')
sbin/ipf/common/lexer.c
72
return (c);
sbin/ipf/common/lexer.c
79
c = string_val[pos - string_start];
sbin/ipf/common/lexer.c
82
c = fgetc(yyin);
sbin/ipf/common/lexer.c
83
if (docont && (c == '\\')) {
sbin/ipf/common/lexer.c
84
c = fgetc(yyin);
sbin/ipf/common/lexer.c
85
if (c == '\n') {
sbin/ipf/common/lexer.c
87
c = fgetc(yyin);
sbin/ipf/common/lexer.c
91
if (c == '\n')
sbin/ipf/common/lexer.c
93
yytext[yypos++] = c;
sbin/ipf/common/lexer.c
97
return (c);
sbin/ipf/ipf/ipf.c
67
int c, *filter = NULL;
sbin/ipf/ipf/ipf.c
74
while ((c = getopt(argc, argv, "46Ac:dDEf:F:Il:m:noPrRsT:vVyzZ")) != -1) {
sbin/ipf/ipf/ipf.c
75
switch (c)
sbin/ipf/ipf/ipfcomp.c
1001
m[i].c = i;
sbin/ipf/ipf/ipfcomp.c
12
int c;
sbin/ipf/ipf/ipfcomp.c
246
return (i1->c - i2->c);
sbin/ipf/ipf/ipfcomp.c
573
switch(m[i].c)
sbin/ipf/ipf/ipfcomp.c
691
if (n[i].c != m[i].c)
sbin/ipf/ipf/ipfcomp.c
722
switch(m[i].c)
sbin/ipf/ipfs/ipfs.c
203
int c, lock = -1, devfd = -1, err = 0, rw = -1, ns = -1, set = 0;
sbin/ipf/ipfs/ipfs.c
207
while ((c = getopt(argc, argv, "d:f:i:lNnSRruvWw")) != -1)
sbin/ipf/ipfs/ipfs.c
208
switch (c)
sbin/ipf/ipfstat/ipfstat.c
1280
int len, srclen, dstlen, forward = 1, c = 0;
sbin/ipf/ipfstat/ipfstat.c
1672
c = wgetch(stdscr);
sbin/ipf/ipfstat/ipfstat.c
1673
if (c == ERR)
sbin/ipf/ipfstat/ipfstat.c
1676
if (ISALPHA(c) && ISUPPER(c))
sbin/ipf/ipfstat/ipfstat.c
1677
c = TOLOWER(c);
sbin/ipf/ipfstat/ipfstat.c
1678
if (c == 'l') {
sbin/ipf/ipfstat/ipfstat.c
1680
} else if (c == 'q') {
sbin/ipf/ipfstat/ipfstat.c
1682
} else if (c == 'r') {
sbin/ipf/ipfstat/ipfstat.c
1684
} else if (c == 'b') {
sbin/ipf/ipfstat/ipfstat.c
1686
} else if (c == 'f') {
sbin/ipf/ipfstat/ipfstat.c
1688
} else if (c == 's') {
sbin/ipf/ipfstat/ipfstat.c
193
int c;
sbin/ipf/ipfstat/ipfstat.c
226
while ((c = getopt(argc, argv, options)) != -1) {
sbin/ipf/ipfstat/ipfstat.c
227
switch (c)
sbin/ipf/ipfstat/ipfstat.c
278
while ((c = getopt(argc, argv, options)) != -1)
sbin/ipf/ipfstat/ipfstat.c
280
switch (c)
sbin/ipf/ipftest/ipftest.c
64
int fd, i, dir, c, loaded, dump, hlen;
sbin/ipf/ipftest/ipftest.c
98
while ((c = getopt(argc, argv, "6bCdDF:i:I:l:N:P:or:RS:T:vxX")) != -1)
sbin/ipf/ipftest/ipftest.c
99
switch (c)
sbin/ipf/ipftest/md5.c
201
UINT4 a = buf[0], b = buf[1], c = buf[2], d = buf[3];
sbin/ipf/ipftest/md5.c
208
FF ( a, b, c, d, in[ 0], S11, UL(3614090360)); /* 1 */
sbin/ipf/ipftest/md5.c
209
FF ( d, a, b, c, in[ 1], S12, UL(3905402710)); /* 2 */
sbin/ipf/ipftest/md5.c
210
FF ( c, d, a, b, in[ 2], S13, UL( 606105819)); /* 3 */
sbin/ipf/ipftest/md5.c
211
FF ( b, c, d, a, in[ 3], S14, UL(3250441966)); /* 4 */
sbin/ipf/ipftest/md5.c
212
FF ( a, b, c, d, in[ 4], S11, UL(4118548399)); /* 5 */
sbin/ipf/ipftest/md5.c
213
FF ( d, a, b, c, in[ 5], S12, UL(1200080426)); /* 6 */
sbin/ipf/ipftest/md5.c
214
FF ( c, d, a, b, in[ 6], S13, UL(2821735955)); /* 7 */
sbin/ipf/ipftest/md5.c
215
FF ( b, c, d, a, in[ 7], S14, UL(4249261313)); /* 8 */
sbin/ipf/ipftest/md5.c
216
FF ( a, b, c, d, in[ 8], S11, UL(1770035416)); /* 9 */
sbin/ipf/ipftest/md5.c
217
FF ( d, a, b, c, in[ 9], S12, UL(2336552879)); /* 10 */
sbin/ipf/ipftest/md5.c
218
FF ( c, d, a, b, in[10], S13, UL(4294925233)); /* 11 */
sbin/ipf/ipftest/md5.c
219
FF ( b, c, d, a, in[11], S14, UL(2304563134)); /* 12 */
sbin/ipf/ipftest/md5.c
220
FF ( a, b, c, d, in[12], S11, UL(1804603682)); /* 13 */
sbin/ipf/ipftest/md5.c
221
FF ( d, a, b, c, in[13], S12, UL(4254626195)); /* 14 */
sbin/ipf/ipftest/md5.c
222
FF ( c, d, a, b, in[14], S13, UL(2792965006)); /* 15 */
sbin/ipf/ipftest/md5.c
223
FF ( b, c, d, a, in[15], S14, UL(1236535329)); /* 16 */
sbin/ipf/ipftest/md5.c
230
GG ( a, b, c, d, in[ 1], S21, UL(4129170786)); /* 17 */
sbin/ipf/ipftest/md5.c
231
GG ( d, a, b, c, in[ 6], S22, UL(3225465664)); /* 18 */
sbin/ipf/ipftest/md5.c
232
GG ( c, d, a, b, in[11], S23, UL( 643717713)); /* 19 */
sbin/ipf/ipftest/md5.c
233
GG ( b, c, d, a, in[ 0], S24, UL(3921069994)); /* 20 */
sbin/ipf/ipftest/md5.c
234
GG ( a, b, c, d, in[ 5], S21, UL(3593408605)); /* 21 */
sbin/ipf/ipftest/md5.c
235
GG ( d, a, b, c, in[10], S22, UL( 38016083)); /* 22 */
sbin/ipf/ipftest/md5.c
236
GG ( c, d, a, b, in[15], S23, UL(3634488961)); /* 23 */
sbin/ipf/ipftest/md5.c
237
GG ( b, c, d, a, in[ 4], S24, UL(3889429448)); /* 24 */
sbin/ipf/ipftest/md5.c
238
GG ( a, b, c, d, in[ 9], S21, UL( 568446438)); /* 25 */
sbin/ipf/ipftest/md5.c
239
GG ( d, a, b, c, in[14], S22, UL(3275163606)); /* 26 */
sbin/ipf/ipftest/md5.c
240
GG ( c, d, a, b, in[ 3], S23, UL(4107603335)); /* 27 */
sbin/ipf/ipftest/md5.c
241
GG ( b, c, d, a, in[ 8], S24, UL(1163531501)); /* 28 */
sbin/ipf/ipftest/md5.c
242
GG ( a, b, c, d, in[13], S21, UL(2850285829)); /* 29 */
sbin/ipf/ipftest/md5.c
243
GG ( d, a, b, c, in[ 2], S22, UL(4243563512)); /* 30 */
sbin/ipf/ipftest/md5.c
244
GG ( c, d, a, b, in[ 7], S23, UL(1735328473)); /* 31 */
sbin/ipf/ipftest/md5.c
245
GG ( b, c, d, a, in[12], S24, UL(2368359562)); /* 32 */
sbin/ipf/ipftest/md5.c
252
HH ( a, b, c, d, in[ 5], S31, UL(4294588738)); /* 33 */
sbin/ipf/ipftest/md5.c
253
HH ( d, a, b, c, in[ 8], S32, UL(2272392833)); /* 34 */
sbin/ipf/ipftest/md5.c
254
HH ( c, d, a, b, in[11], S33, UL(1839030562)); /* 35 */
sbin/ipf/ipftest/md5.c
255
HH ( b, c, d, a, in[14], S34, UL(4259657740)); /* 36 */
sbin/ipf/ipftest/md5.c
256
HH ( a, b, c, d, in[ 1], S31, UL(2763975236)); /* 37 */
sbin/ipf/ipftest/md5.c
257
HH ( d, a, b, c, in[ 4], S32, UL(1272893353)); /* 38 */
sbin/ipf/ipftest/md5.c
258
HH ( c, d, a, b, in[ 7], S33, UL(4139469664)); /* 39 */
sbin/ipf/ipftest/md5.c
259
HH ( b, c, d, a, in[10], S34, UL(3200236656)); /* 40 */
sbin/ipf/ipftest/md5.c
260
HH ( a, b, c, d, in[13], S31, UL( 681279174)); /* 41 */
sbin/ipf/ipftest/md5.c
261
HH ( d, a, b, c, in[ 0], S32, UL(3936430074)); /* 42 */
sbin/ipf/ipftest/md5.c
262
HH ( c, d, a, b, in[ 3], S33, UL(3572445317)); /* 43 */
sbin/ipf/ipftest/md5.c
263
HH ( b, c, d, a, in[ 6], S34, UL( 76029189)); /* 44 */
sbin/ipf/ipftest/md5.c
264
HH ( a, b, c, d, in[ 9], S31, UL(3654602809)); /* 45 */
sbin/ipf/ipftest/md5.c
265
HH ( d, a, b, c, in[12], S32, UL(3873151461)); /* 46 */
sbin/ipf/ipftest/md5.c
266
HH ( c, d, a, b, in[15], S33, UL( 530742520)); /* 47 */
sbin/ipf/ipftest/md5.c
267
HH ( b, c, d, a, in[ 2], S34, UL(3299628645)); /* 48 */
sbin/ipf/ipftest/md5.c
274
II ( a, b, c, d, in[ 0], S41, UL(4096336452)); /* 49 */
sbin/ipf/ipftest/md5.c
275
II ( d, a, b, c, in[ 7], S42, UL(1126891415)); /* 50 */
sbin/ipf/ipftest/md5.c
276
II ( c, d, a, b, in[14], S43, UL(2878612391)); /* 51 */
sbin/ipf/ipftest/md5.c
277
II ( b, c, d, a, in[ 5], S44, UL(4237533241)); /* 52 */
sbin/ipf/ipftest/md5.c
278
II ( a, b, c, d, in[12], S41, UL(1700485571)); /* 53 */
sbin/ipf/ipftest/md5.c
279
II ( d, a, b, c, in[ 3], S42, UL(2399980690)); /* 54 */
sbin/ipf/ipftest/md5.c
280
II ( c, d, a, b, in[10], S43, UL(4293915773)); /* 55 */
sbin/ipf/ipftest/md5.c
281
II ( b, c, d, a, in[ 1], S44, UL(2240044497)); /* 56 */
sbin/ipf/ipftest/md5.c
282
II ( a, b, c, d, in[ 8], S41, UL(1873313359)); /* 57 */
sbin/ipf/ipftest/md5.c
283
II ( d, a, b, c, in[15], S42, UL(4264355552)); /* 58 */
sbin/ipf/ipftest/md5.c
284
II ( c, d, a, b, in[ 6], S43, UL(2734768916)); /* 59 */
sbin/ipf/ipftest/md5.c
285
II ( b, c, d, a, in[13], S44, UL(1309151649)); /* 60 */
sbin/ipf/ipftest/md5.c
286
II ( a, b, c, d, in[ 4], S41, UL(4149444226)); /* 61 */
sbin/ipf/ipftest/md5.c
287
II ( d, a, b, c, in[11], S42, UL(3174756917)); /* 62 */
sbin/ipf/ipftest/md5.c
288
II ( c, d, a, b, in[ 2], S43, UL( 718787259)); /* 63 */
sbin/ipf/ipftest/md5.c
289
II ( b, c, d, a, in[ 9], S44, UL(3951481745)); /* 64 */
sbin/ipf/ipftest/md5.c
293
buf[2] += c;
sbin/ipf/ipftest/md5.c
81
#define FF(a, b, c, d, x, s, ac) \
sbin/ipf/ipftest/md5.c
82
{(a) += F ((b), (c), (d)) + (x) + (UINT4)(ac); \
sbin/ipf/ipftest/md5.c
86
#define GG(a, b, c, d, x, s, ac) \
sbin/ipf/ipftest/md5.c
87
{(a) += G ((b), (c), (d)) + (x) + (UINT4)(ac); \
sbin/ipf/ipftest/md5.c
91
#define HH(a, b, c, d, x, s, ac) \
sbin/ipf/ipftest/md5.c
92
{(a) += H ((b), (c), (d)) + (x) + (UINT4)(ac); \
sbin/ipf/ipftest/md5.c
96
#define II(a, b, c, d, x, s, ac) \
sbin/ipf/ipftest/md5.c
97
{(a) += I ((b), (c), (d)) + (x) + (UINT4)(ac); \
sbin/ipf/iplang/iplang_y.y
720
u_char *s = (u_char *)*arg, *t = (u_char *)canip->ah_data, c;
sbin/ipf/iplang/iplang_y.y
723
while ((c = *s++)) {
sbin/ipf/iplang/iplang_y.y
725
if (ISDIGIT(c)) {
sbin/ipf/iplang/iplang_y.y
727
if (c > '7') {
sbin/ipf/iplang/iplang_y.y
728
fprintf(stderr, "octal with %c!\n", c);
sbin/ipf/iplang/iplang_y.y
732
val |= (c - '0');
sbin/ipf/iplang/iplang_y.y
734
if (!ISDIGIT(c) || !todo) {
sbin/ipf/iplang/iplang_y.y
742
if (ISDIGIT(c)) {
sbin/ipf/iplang/iplang_y.y
744
if (c > '7') {
sbin/ipf/iplang/iplang_y.y
745
fprintf(stderr, "octal with %c!\n", c);
sbin/ipf/iplang/iplang_y.y
748
val = (c - '0');
sbin/ipf/iplang/iplang_y.y
750
switch (c)
sbin/ipf/iplang/iplang_y.y
773
if (c == '\\')
sbin/ipf/iplang/iplang_y.y
776
*t++ = c;
sbin/ipf/ipmon/ipmon.c
1534
int doread, c, make_daemon = 0;
sbin/ipf/ipmon/ipmon.c
1546
while ((c = getopt(argc, argv,
sbin/ipf/ipmon/ipmon.c
1548
switch (c)
sbin/ipf/ipmon/ipmon.c
1598
logopts(c == 'o', optarg);
sbin/ipf/ipnat/ipnat.c
105
while ((c = getopt(argc, argv, "CdFf:hlm:M:N:nO:prRsv")) != -1)
sbin/ipf/ipnat/ipnat.c
106
switch (c)
sbin/ipf/ipnat/ipnat.c
89
int fd, c, mode, *natfilter;
sbin/ipf/ippool/ippool.c
131
int err = 0, c, ipset, role, type = IPLT_POOL, ttl = 0;
sbin/ipf/ippool/ippool.c
142
while ((c = getopt(argc, argv, "di:m:no:t:T:v")) != -1)
sbin/ipf/ippool/ippool.c
143
switch (c)
sbin/ipf/ippool/ippool.c
251
int type, role, c, err;
sbin/ipf/ippool/ippool.c
264
while ((c = getopt(argc, argv, "dm:no:S:vt:")) != -1)
sbin/ipf/ippool/ippool.c
265
switch (c)
sbin/ipf/ippool/ippool.c
372
int c;
sbin/ipf/ippool/ippool.c
374
while ((c = getopt(argc, argv, "dnuvf:")) != -1)
sbin/ipf/ippool/ippool.c
375
switch (c)
sbin/ipf/ippool/ippool.c
422
int c, type, role;
sbin/ipf/ippool/ippool.c
433
while ((c = getopt(argc, argv, "dM:N:o:t:v")) != -1)
sbin/ipf/ippool/ippool.c
434
switch (c)
sbin/ipf/ippool/ippool.c
481
c = ioctl(fd, SIOCLOOKUPSTAT, &op);
sbin/ipf/ippool/ippool.c
482
if (c == -1) {
sbin/ipf/ippool/ippool.c
496
c = ioctl(fd, SIOCLOOKUPSTAT, &op);
sbin/ipf/ippool/ippool.c
497
if (c == -1) {
sbin/ipf/ippool/ippool.c
513
c = ioctl(fd, SIOCLOOKUPSTAT, &op);
sbin/ipf/ippool/ippool.c
514
if (c == -1) {
sbin/ipf/ippool/ippool.c
537
int c, role, type, arg;
sbin/ipf/ippool/ippool.c
544
while ((c = getopt(argc, argv, "do:t:v")) != -1)
sbin/ipf/ippool/ippool.c
545
switch (c)
sbin/ipf/ippool/ippool.c
662
int c, role, type, live_kernel;
sbin/ipf/ippool/ippool.c
672
while ((c = getopt(argc, argv, "dDm:M:N:o:t:v")) != -1)
sbin/ipf/ippool/ippool.c
673
switch (c)
sbin/ipf/ippool/ippool.c
828
int c;
sbin/ipf/ippool/ippool.c
840
c = ioctl(fd, SIOCLOOKUPSTAT, &op);
sbin/ipf/ippool/ippool.c
841
if (c == -1) {
sbin/ipf/ippool/ippool.c
852
c = ioctl(fd, SIOCLOOKUPSTAT, &op);
sbin/ipf/ippool/ippool.c
853
if (c == -1) {
sbin/ipf/ippool/ippool.c
878
c = ioctl(fd, SIOCLOOKUPSTAT, &op);
sbin/ipf/ippool/ippool.c
879
if (c == -1) {
sbin/ipf/ippool/ippool.c
889
c = ioctl(fd, SIOCLOOKUPSTAT, &op);
sbin/ipf/ippool/ippool.c
890
if (c == -1) {
sbin/ipf/ippool/ippool.c
914
c = ioctl(fd, SIOCLOOKUPSTAT, &op);
sbin/ipf/ippool/ippool.c
915
if (c == -1) {
sbin/ipf/ippool/ippool.c
925
c = ioctl(fd, SIOCLOOKUPSTAT, &op);
sbin/ipf/ippool/ippool.c
926
if (c == -1) {
sbin/ipf/ipscan/ipscan_y.y
202
char c, *s, *t, *u;
sbin/ipf/ipscan/ipscan_y.y
205
c = *src;
sbin/ipf/ipscan/ipscan_y.y
207
t = strchr(s, c);
sbin/ipf/ipscan/ipscan_y.y
210
c = *s++;
sbin/ipf/ipscan/ipscan_y.y
211
if (c == '\\') {
sbin/ipf/ipscan/ipscan_y.y
216
c = *s++;
sbin/ipf/ipscan/ipscan_y.y
217
if (j && (!ISDIGIT(c) || (c > '7') ||
sbin/ipf/ipscan/ipscan_y.y
226
if (ISALPHA(c) || (c > '7')) {
sbin/ipf/ipscan/ipscan_y.y
227
switch (c)
sbin/ipf/ipscan/ipscan_y.y
239
*u++ = c;
sbin/ipf/ipscan/ipscan_y.y
242
} else if (ISDIGIT(c)) {
sbin/ipf/ipscan/ipscan_y.y
245
k |= (c - '0');
sbin/ipf/ipscan/ipscan_y.y
248
*u++ = c;
sbin/ipf/ipscan/ipscan_y.y
251
*u++ = c, i++;
sbin/ipf/ipscan/ipscan_y.y
503
int c;
sbin/ipf/ipscan/ipscan_y.y
510
while ((c = getopt(argc, argv, "df:lnrsv")) != -1)
sbin/ipf/ipscan/ipscan_y.y
511
switch (c)
sbin/ipf/ipsend/dlcommon.c
1063
hexnibble(char c)
sbin/ipf/ipsend/dlcommon.c
1070
return (hextab[c & 0x0f]);
sbin/ipf/ipsend/ipresend.c
105
fprintf(stderr, "Unknown option \"%c\"\n", c);
sbin/ipf/ipsend/ipresend.c
69
int mtu = 1500, c;
sbin/ipf/ipsend/ipresend.c
71
while ((c = getopt(argc, argv, "EHPRSTXd:g:m:r:")) != -1)
sbin/ipf/ipsend/ipresend.c
72
switch (c)
sbin/ipf/ipsend/ipsend.c
173
int mtu = 1500, olen = 0, c, nonl = 0;
sbin/ipf/ipsend/ipsend.c
184
while ((c = getopt(argc, argv, "I:L:P:TUdf:i:g:m:o:s:t:vw:")) != -1) {
sbin/ipf/ipsend/ipsend.c
185
switch (c)
sbin/ipf/ipsend/ipsend.c
300
fprintf(stderr, "Unknown option \"%c\"\n", c);
sbin/ipf/ipsend/ipsend.c
364
for (s = argv[optind]; s && (c = *s); s++)
sbin/ipf/ipsend/ipsend.c
365
switch(c)
sbin/ipf/ipsend/ipsend.h
57
#define KMCPY(a,b,c) kmemcpy((char *)(a), (void *)(b), (int)(c))
sbin/ipf/ipsend/iptest.c
113
fprintf(stderr, "Unknown option \"%c\"\n", c);
sbin/ipf/ipsend/iptest.c
70
int mtu = 1500, tests = 0, pointtest = 0, c;
sbin/ipf/ipsend/iptest.c
80
while ((c = getopt(argc, argv, "1234567d:g:m:p:s:")) != -1)
sbin/ipf/ipsend/iptest.c
81
switch (c)
sbin/ipf/ipsend/iptest.c
90
tests = c - '0';
sbin/ipf/libipf/alist_new.c
15
int a, b, c, d, bits;
sbin/ipf/libipf/alist_new.c
56
a = b = c = d = -1;
sbin/ipf/libipf/alist_new.c
57
sscanf(host, "%d.%d.%d.%d", &a, &b, &c, &d);
sbin/ipf/libipf/alist_new.c
63
b = c = d = 0;
sbin/ipf/libipf/alist_new.c
64
} else if (c == -1) {
sbin/ipf/libipf/alist_new.c
66
c = d = 0;
sbin/ipf/libipf/inet_addr.c
105
if (!ISDIGIT(c))
sbin/ipf/libipf/inet_addr.c
108
if (c == '0') {
sbin/ipf/libipf/inet_addr.c
109
c = *++cp;
sbin/ipf/libipf/inet_addr.c
110
if (c == 'x' || c == 'X')
sbin/ipf/libipf/inet_addr.c
111
base = 16, c = *++cp;
sbin/ipf/libipf/inet_addr.c
116
if (ISASCII(c) && ISDIGIT(c)) {
sbin/ipf/libipf/inet_addr.c
117
val = (val * base) + (c - '0');
sbin/ipf/libipf/inet_addr.c
118
c = *++cp;
sbin/ipf/libipf/inet_addr.c
119
} else if (base == 16 && ISASCII(c) && ISXDIGIT(c)) {
sbin/ipf/libipf/inet_addr.c
121
(c + 10 - (ISLOWER(c) ? 'a' : 'A'));
sbin/ipf/libipf/inet_addr.c
122
c = *++cp;
sbin/ipf/libipf/inet_addr.c
126
if (c == '.') {
sbin/ipf/libipf/inet_addr.c
136
c = *++cp;
sbin/ipf/libipf/inet_addr.c
143
if (c != '\0' && (!ISASCII(c) || !ISSPACE(c)))
sbin/ipf/libipf/inet_addr.c
94
register char c;
sbin/ipf/libipf/inet_addr.c
98
c = *cp;
sbin/ipf/libipf/ipft_hx.c
129
int c = *t;
sbin/ipf/libipf/ipft_hx.c
133
if (isprint(c) && isascii(c))
sbin/ipf/libipf/ipft_hx.c
134
putchar(c);
sbin/ipf/libipf/ipft_hx.c
154
char c;
sbin/ipf/libipf/ipft_hx.c
156
while ((c = *src++)) {
sbin/ipf/libipf/ipft_hx.c
157
if (ISSPACE(c)) {
sbin/ipf/libipf/ipft_hx.c
163
} else if ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') ||
sbin/ipf/libipf/ipft_hx.c
164
(c >= 'A' && c <= 'F')) {
sbin/ipf/libipf/ipft_hx.c
165
c = ISDIGIT(c) ? (c - '0') : (TOUPPER(c) - 55);
sbin/ipf/libipf/ipft_hx.c
167
*dst = (c << 4);
sbin/ipf/libipf/ipft_hx.c
170
*dst++ |= c;
sbin/ipf/libipf/ipft_tx.c
160
char *cps[20], **cpp, c, ipopts[68];
sbin/ipf/libipf/ipft_tx.c
179
c = **cpp;
sbin/ipf/libipf/ipft_tx.c
180
if (!ISALPHA(c) || (TOLOWER(c) != 'o' && TOLOWER(c) != 'i')) {
sbin/ipf/libipf/ipft_tx.c
191
*out = (TOLOWER(c) == 'o') ? 1 : 0;
sbin/ipf/libipf/ipft_tx.c
205
c = **cpp;
sbin/ipf/libipf/ipft_tx.c
209
if (c == 't') {
sbin/ipf/libipf/ipft_tx.c
213
} else if (c == 'u') {
sbin/ipf/libipf/printbuf.c
19
int c;
sbin/ipf/libipf/printbuf.c
23
c = *s++;
sbin/ipf/libipf/printbuf.c
24
if (isprint(c))
sbin/ipf/libipf/printbuf.c
25
putchar(c);
sbin/ipf/libipf/printbuf.c
27
PRINTF("\\%03o", c);
sbin/ipf/libipf/printbuf.c
28
if ((c == '\0') && zend)
sbin/ipf/libipf/var.c
101
c = *s;
sbin/ipf/libipf/var.c
102
if (c == '\0')
sbin/ipf/libipf/var.c
115
if (c == '{' && *p3 == '}')
sbin/ipf/libipf/var.c
39
char c, *s, *t, *value;
sbin/ipf/libipf/var.c
65
c = *t;
sbin/ipf/libipf/var.c
68
*t = c;
sbin/ipf/libipf/var.c
84
char c, *s, *p1, *p2, *p3, *newstring, *value;
sbin/ipfw/dummynet.c
1011
double c = y1 - m*x1;
sbin/ipfw/dummynet.c
1013
p->samples[ix] = (ix - c)/m;
sbin/ipfw/ipfw2.c
3271
int c, i, l;
sbin/ipfw/ipfw2.c
3282
c = name[i];
sbin/ipfw/ipfw2.c
3283
if (isalpha(c) || isdigit(c) || c == '_' ||
sbin/ipfw/ipfw2.c
3284
c == '-' || c == '.')
sbin/ipfw/ipfw2.c
3404
ipfw_insn_kidx *c = insntod(cmd, kidx);
sbin/ipfw/ipfw2.c
3414
if ((c->kidx = pack_table(tstate, av + 6)) == 0)
sbin/ipfw/ipfw2.c
4761
ipfw_insn_log *c = (ipfw_insn_log *)cmd;
sbin/ipfw/ipfw2.c
4767
have_log = (ipfw_insn *)c;
sbin/ipfw/ipfw2.c
4787
c->max_log = l;
sbin/ipfw/ipfw2.c
4790
len = sizeof(c->max_log);
sbin/ipfw/ipfw2.c
4792
&c->max_log, &len, NULL, 0) == -1) {
sbin/ipfw/ipfw2.c
4794
c->max_log = 0;
sbin/ipfw/ipfw2.c
5360
ipfw_insn_limit *c = insntod(cmd, limit);
sbin/ipfw/ipfw2.c
5375
c->limit_mask = c->conn_limit = c->kidx = 0;
sbin/ipfw/ipfw2.c
5380
c->limit_mask |= val;
sbin/ipfw/ipfw2.c
5384
if (c->limit_mask == 0)
sbin/ipfw/ipfw2.c
5387
GET_UINT_ARG(c->conn_limit, IPFW_ARG_MIN, IPFW_ARG_MAX,
sbin/ipfw/ipfw2.c
5395
c->kidx = pack_object(tstate, *av + 1,
sbin/ipfw/ipfw2.c
5399
c->kidx = pack_object(tstate,
sbin/ipfw/ipfw2.c
5557
ipfw_insn_lookup *c = insntod(cmd, lookup);
sbin/ipfw/ipfw2.c
5594
get_lookup_bitmask(i, c, *av);
sbin/ipfw/ipfw2.c
5602
c->kidx = pack_table(tstate, *av);
sbin/ipfw/ipfw2.c
5603
if (c->kidx == 0)
sbin/ipfw/ipfw2.c
6031
int c;
sbin/ipfw/ipfw2.c
6036
c = toupper(getc(stdin));
sbin/ipfw/ipfw2.c
6037
while (c != '\n' && getc(stdin) != '\n')
sbin/ipfw/ipfw2.c
6040
} while (c != 'Y' && c != 'N');
sbin/ipfw/ipfw2.c
6042
if (c == 'N') /* user said no */
sbin/ipfw/ipfw2.c
780
int i, c;
sbin/ipfw/ipfw2.c
783
c = 0;
sbin/ipfw/ipfw2.c
789
c++;
sbin/ipfw/ipfw2.c
792
if (c == 1)
sbin/ipfw/ipfw2.c
795
return (c > 0 ? -2: -1);
sbin/ipfw/main.c
521
int c, lineno=0;
sbin/ipfw/main.c
526
while ((c = getopt(ac, av, "cfNnp:qS")) != -1) {
sbin/ipfw/main.c
527
switch(c) {
sbin/ipfw/main.c
583
while ((c = getopt(ac, av, "nq")) != -1) {
sbin/ipfw/main.c
584
switch(c) {
sbin/ipfw/nat.c
326
u_int c = 0;
sbin/ipfw/nat.c
330
c++;
sbin/ipfw/nat.c
334
if (c > 0)
sbin/ipfw/nat.c
335
c++;
sbin/ipfw/nat.c
337
space += c * sizeof(struct nat44_cfg_spool);
sbin/ipfw/nat.c
388
u_int c = 0;
sbin/ipfw/nat.c
392
c++;
sbin/ipfw/nat.c
396
if (c > 0)
sbin/ipfw/nat.c
397
c++;
sbin/ipfw/nat.c
399
space += c * sizeof(struct nat44_cfg_spool);
sbin/ipfw/tables.c
1757
int c;
sbin/ipfw/tables.c
1761
for (c = 0; c < 8; c++) {
sbin/kldconfig/kldconfig.c
292
int c;
sbin/kldconfig/kldconfig.c
330
while ((c = getopt(argc, argv, "dfimnrS:Uv")) != -1)
sbin/kldconfig/kldconfig.c
331
switch (c) {
sbin/kldload/kldload.c
127
int c;
sbin/kldload/kldload.c
139
while ((c = getopt(argc, argv, "nqv")) != -1) {
sbin/kldload/kldload.c
140
switch (c) {
sbin/kldstat/kldstat.c
117
int c, modid;
sbin/kldstat/kldstat.c
122
while ((c = getopt(argc, argv, "dhi:m:n:qv")) != -1) {
sbin/kldstat/kldstat.c
123
switch (c) {
sbin/kldunload/kldunload.c
55
int c, fileid, force, opt;
sbin/kldunload/kldunload.c
61
while ((c = getopt(argc, argv, "finv")) != -1) {
sbin/kldunload/kldunload.c
62
switch (c) {
sbin/ldconfig/ldconfig.c
59
int c;
sbin/ldconfig/ldconfig.c
83
while((c = getopt(argc, argv, "BRf:imrsv")) != -1) {
sbin/ldconfig/ldconfig.c
84
switch (c) {
sbin/md5/md5.c
284
MD5_Update(MD5_CTX *c, const unsigned char *data, size_t len)
sbin/md5/md5.c
286
MD5Update(c, data, len);
sbin/mount/mount.c
530
if (sa->c + 1 == sa->sz) {
sbin/mount/mount.c
536
sa->a[++sa->c] = arg;
sbin/mount/mount.c
588
mnt_argv.c = -1;
sbin/mount/mount.c
603
for (i = 1; i < mnt_argv.c; i++)
sbin/mount/mount.c
615
ret = mount_fs(vfstype, mnt_argv.c, mnt_argv.a);
sbin/mount/mount.c
73
int c;
sbin/mount_msdosfs/mount_msdosfs.c
69
int c, set_gid, set_uid, set_mask, set_dirmask;
sbin/mount_msdosfs/mount_msdosfs.c
81
while ((c = getopt(argc, argv, "sl9u:g:m:M:o:L:D:W:")) != -1) {
sbin/mount_msdosfs/mount_msdosfs.c
82
switch (c) {
sbin/mount_nfs/mount_nfs.c
144
int c;
sbin/mount_nfs/mount_nfs.c
159
while ((c = getopt(argc, argv,
sbin/mount_nfs/mount_nfs.c
161
switch (c) {
sbin/newfs_msdos/mkfs_msdos.c
1068
int c, i;
sbin/newfs_msdos/mkfs_msdos.c
1071
c = (u_char)*src++;
sbin/newfs_msdos/mkfs_msdos.c
1072
if (c < ' ' + !i || strchr("\"*+,./:;<=>?[\\]|", c))
sbin/newfs_msdos/mkfs_msdos.c
1075
return i && !c;
sbin/newfs_msdos/mkfs_msdos.c
1084
int c, i;
sbin/newfs_msdos/mkfs_msdos.c
1087
c = *src ? toupper(*src++) : ' ';
sbin/newfs_msdos/mkfs_msdos.c
1088
*dest++ = !i && c == '\xe5' ? 5 : c;
sbin/nos-tun/nos-tun.c
237
int c, len, ipoff;
sbin/nos-tun/nos-tun.c
260
while ((c = getopt(argc, argv, "d:s:t:p:")) != -1) {
sbin/nos-tun/nos-tun.c
261
switch (c) {
sbin/nvmecontrol/comnd.h
87
#define CMD_COMMAND(c) \
sbin/nvmecontrol/comnd.h
88
static void cmd_register_##c(void) __attribute__((constructor)); \
sbin/nvmecontrol/comnd.h
89
static void cmd_register_##c(void) { cmd_register(NULL, &c); }
sbin/nvmecontrol/comnd.h
90
#define CMD_SUBCOMMAND(c,sc) \
sbin/nvmecontrol/comnd.h
92
static void cmd_register_##c_##sc(void) { cmd_register(&c, &sc); }
sbin/nvmecontrol/logpage.c
121
int c;
sbin/nvmecontrol/logpage.c
126
c = strcmp(a->vendor, b->vendor);
sbin/nvmecontrol/logpage.c
127
if (c != 0)
sbin/nvmecontrol/logpage.c
128
return (c);
sbin/pfctl/parse.y
7299
int c;
sbin/pfctl/parse.y
7302
c = file->ungetbuf[--file->ungetpos];
sbin/pfctl/parse.y
7304
c = getc(file->stream);
sbin/pfctl/parse.y
7305
if (c == START_EXPAND)
sbin/pfctl/parse.y
7307
else if (c == DONE_EXPAND)
sbin/pfctl/parse.y
7312
return (c);
sbin/pfctl/parse.y
7318
int c, next;
sbin/pfctl/parse.y
7321
if ((c = igetc()) == EOF) {
sbin/pfctl/parse.y
7327
return (c);
sbin/pfctl/parse.y
7330
while ((c = igetc()) == '\\') {
sbin/pfctl/parse.y
7333
c = next;
sbin/pfctl/parse.y
7340
if (c == EOF) {
sbin/pfctl/parse.y
7350
while (c == EOF) {
sbin/pfctl/parse.y
7353
c = igetc();
sbin/pfctl/parse.y
7356
return (c);
sbin/pfctl/parse.y
7360
lungetc(int c)
sbin/pfctl/parse.y
7362
if (c == EOF)
sbin/pfctl/parse.y
7371
file->ungetbuf[file->ungetpos++] = c;
sbin/pfctl/parse.y
7377
int c;
sbin/pfctl/parse.y
7381
c = lgetc(0);
sbin/pfctl/parse.y
7382
if (c == '\n') {
sbin/pfctl/parse.y
7386
if (c == EOF)
sbin/pfctl/parse.y
7397
int quotec, next, c;
sbin/pfctl/parse.y
7402
while ((c = lgetc(0)) == ' ' || c == '\t' || c == '\014')
sbin/pfctl/parse.y
7406
if (c == '#')
sbin/pfctl/parse.y
7407
while ((c = lgetc(0)) != '\n' && c != EOF)
sbin/pfctl/parse.y
7409
if (c == '$' && !expanding) {
sbin/pfctl/parse.y
7411
if ((c = lgetc(0)) == EOF)
sbin/pfctl/parse.y
7418
if (isalnum(c) || c == '_') {
sbin/pfctl/parse.y
7419
*p++ = (char)c;
sbin/pfctl/parse.y
7423
lungetc(c);
sbin/pfctl/parse.y
7441
switch (c) {
sbin/pfctl/parse.y
7444
quotec = c;
sbin/pfctl/parse.y
7446
if ((c = lgetc(quotec)) == EOF)
sbin/pfctl/parse.y
7448
if (c == '\n') {
sbin/pfctl/parse.y
7451
} else if (c == '\\') {
sbin/pfctl/parse.y
7456
c = next;
sbin/pfctl/parse.y
7463
} else if (c == quotec) {
sbin/pfctl/parse.y
7466
} else if (c == '\0') {
sbin/pfctl/parse.y
7474
*p++ = (char)c;
sbin/pfctl/parse.y
7515
if (c == '-' || isdigit(c)) {
sbin/pfctl/parse.y
7517
*p++ = c;
sbin/pfctl/parse.y
7522
} while ((c = lgetc(0)) != EOF && isdigit(c));
sbin/pfctl/parse.y
7523
lungetc(c);
sbin/pfctl/parse.y
7526
if (c == EOF || allowed_to_end_number(c)) {
sbin/pfctl/parse.y
7542
c = *--p;
sbin/pfctl/parse.y
7543
if (c == '-')
sbin/pfctl/parse.y
7544
return (c);
sbin/pfctl/parse.y
7554
if (isalnum(c) || c == ':' || c == '_') {
sbin/pfctl/parse.y
7556
*p++ = c;
sbin/pfctl/parse.y
7561
} while ((c = lgetc(0)) != EOF && (allowed_in_string(c)));
sbin/pfctl/parse.y
7562
lungetc(c);
sbin/pfctl/parse.y
7569
if (c == '\n') {
sbin/pfctl/parse.y
7573
if (c == EOF)
sbin/pfctl/parse.y
7575
return (c);
sbin/pfctl/pf_ruleset.c
93
int c = strcmp(a->path, b->path);
sbin/pfctl/pf_ruleset.c
95
return (c ? (c < 0 ? -1 : 1) : 0);
sbin/pfctl/pfctl_parser.c
520
struct pfctl_status_counter *c;
sbin/pfctl/pfctl_parser.c
598
TAILQ_FOREACH(c, &s->fcounters, entry) {
sbin/pfctl/pfctl_parser.c
599
printf(" %-25s %14ju ", c->name, c->counter);
sbin/pfctl/pfctl_parser.c
602
(double)c->counter / (double)runtime);
sbin/pfctl/pfctl_parser.c
610
TAILQ_FOREACH(c, &s->scounters, entry) {
sbin/pfctl/pfctl_parser.c
611
printf(" %-25s %14ju ", c->name, c->counter);
sbin/pfctl/pfctl_parser.c
614
(double)c->counter / (double)runtime);
sbin/pfctl/pfctl_parser.c
623
TAILQ_FOREACH(c, &s->ncounters, entry) {
sbin/pfctl/pfctl_parser.c
624
printf(" %-25s %14ju ", c->name,
sbin/pfctl/pfctl_parser.c
625
c->counter);
sbin/pfctl/pfctl_parser.c
628
(double)c->counter / (double)runtime);
sbin/pfctl/pfctl_parser.c
634
TAILQ_FOREACH(c, &s->counters, entry) {
sbin/pfctl/pfctl_parser.c
635
printf(" %-25s %14ju ", c->name, c->counter);
sbin/pfctl/pfctl_parser.c
638
(double)c->counter / (double)runtime);
sbin/pfctl/pfctl_parser.c
644
TAILQ_FOREACH(c, &s->lcounters, entry) {
sbin/pfctl/pfctl_parser.c
645
printf(" %-25s %14ju ", c->name, c->counter);
sbin/pfctl/pfctl_parser.c
648
(double)c->counter / (double)runtime);
sbin/pfilctl/pfilctl.c
182
int c;
sbin/pfilctl/pfilctl.c
190
while ((c = getopt(argc, argv, "ioa")) != -1)
sbin/pfilctl/pfilctl.c
191
switch (c) {
sbin/pflowctl/pflowctl.c
150
struct pflowctl_create c = {};
sbin/pflowctl/pflowctl.c
172
if (! snl_parse_nlmsg(&ss, hdr, &create_parser, &c))
sbin/pflowctl/pflowctl.c
175
printf("pflow%d\n", c.id);
sbin/ping/ping6.c
1528
#define safeputc(c) printf((isprint((c)) ? "%c" : "\\%03o"), c)
sbin/ping/ping6.c
2692
u_int8_t c;
sbin/ping/ping6.c
2715
c = l & 0xff;
sbin/ping/ping6.c
2716
MD5Update(&ctxt, &c, sizeof(c));
sbin/restore/tape.c
1607
char c;
sbin/restore/tape.c
1610
c = sp[0]; sp[0] = sp[1]; sp[1] = c;
sbin/restore/tape.c
1619
char c;
sbin/restore/tape.c
1622
c = sp[0]; sp[0] = sp[3]; sp[3] = c;
sbin/restore/tape.c
1623
c = sp[2]; sp[2] = sp[1]; sp[1] = c;
sbin/restore/tape.c
1632
char c;
sbin/restore/tape.c
1635
c = sp[0]; sp[0] = sp[7]; sp[7] = c;
sbin/restore/tape.c
1636
c = sp[1]; sp[1] = sp[6]; sp[6] = c;
sbin/restore/tape.c
1637
c = sp[2]; sp[2] = sp[5]; sp[5] = c;
sbin/restore/tape.c
1638
c = sp[3]; sp[3] = sp[4]; sp[4] = c;
sbin/restore/utilities.c
382
int c;
sbin/restore/utilities.c
387
c = getc(terminal);
sbin/restore/utilities.c
388
while (c != '\n' && getc(terminal) != '\n')
sbin/restore/utilities.c
389
if (c == EOF)
sbin/restore/utilities.c
391
} while (c != 'y' && c != 'n');
sbin/restore/utilities.c
392
if (c == 'y')
sbin/routed/parms.c
366
char c = '\0', *pc;
sbin/routed/parms.c
375
c = *pc++;
sbin/routed/parms.c
376
if (c == '\0')
sbin/routed/parms.c
379
if (c == '\\' && *pc != '\0') {
sbin/routed/parms.c
380
if ((c = *pc++) == 'n') {
sbin/routed/parms.c
381
c = '\n';
sbin/routed/parms.c
382
} else if (c == 'r') {
sbin/routed/parms.c
383
c = '\r';
sbin/routed/parms.c
384
} else if (c == 't') {
sbin/routed/parms.c
385
c = '\t';
sbin/routed/parms.c
386
} else if (c == 'b') {
sbin/routed/parms.c
387
c = '\b';
sbin/routed/parms.c
388
} else if (c >= '0' && c <= '7') {
sbin/routed/parms.c
389
c -= '0';
sbin/routed/parms.c
391
c = (c<<3)+(*pc++ - '0');
sbin/routed/parms.c
393
c = (c<<3)+(*pc++ - '0');
sbin/routed/parms.c
399
if (*p == c)
sbin/routed/parms.c
404
*buf++ = c;
sbin/routed/parms.c
413
*delimp = c; /* return delimiter */
sbin/routed/rtquery/rtquery.c
530
u_char *s2, c;
sbin/routed/rtquery/rtquery.c
534
c = *s++;
sbin/routed/rtquery/rtquery.c
535
if (c == '\0') {
sbin/routed/rtquery/rtquery.c
544
if (c >= ' ' && c < 0x7f && c != '\\') {
sbin/routed/rtquery/rtquery.c
545
*p++ = c;
sbin/routed/rtquery/rtquery.c
549
switch (c) {
sbin/routed/rtquery/rtquery.c
566
p += sprintf(p,"%o",c);
sbin/routed/rtquery/rtquery.c
850
char c, *pc;
sbin/routed/rtquery/rtquery.c
861
c = *pc++;
sbin/routed/rtquery/rtquery.c
862
if (c == '\0')
sbin/routed/rtquery/rtquery.c
865
if (c == '\\' && *pc != '\0') {
sbin/routed/rtquery/rtquery.c
866
if ((c = *pc++) == 'n') {
sbin/routed/rtquery/rtquery.c
867
c = '\n';
sbin/routed/rtquery/rtquery.c
868
} else if (c == 'r') {
sbin/routed/rtquery/rtquery.c
869
c = '\r';
sbin/routed/rtquery/rtquery.c
870
} else if (c == 't') {
sbin/routed/rtquery/rtquery.c
871
c = '\t';
sbin/routed/rtquery/rtquery.c
872
} else if (c == 'b') {
sbin/routed/rtquery/rtquery.c
873
c = '\b';
sbin/routed/rtquery/rtquery.c
874
} else if (c >= '0' && c <= '7') {
sbin/routed/rtquery/rtquery.c
875
c -= '0';
sbin/routed/rtquery/rtquery.c
877
c = (c<<3)+(*pc++ - '0');
sbin/routed/rtquery/rtquery.c
879
c = (c<<3)+(*pc++ - '0');
sbin/routed/rtquery/rtquery.c
885
if (*p == c)
sbin/routed/rtquery/rtquery.c
890
*buf++ = c;
sbin/routed/rtquery/rtquery.c
895
*delimp = c;
sbin/routed/trace.c
531
char c;
sbin/routed/trace.c
535
c = 0;
sbin/routed/trace.c
537
c = '<';
sbin/routed/trace.c
544
if (c)
sbin/routed/trace.c
545
(void)putc(c, ftrace);
sbin/routed/trace.c
547
c = '|';
sbin/routed/trace.c
555
if (c)
sbin/routed/trace.c
556
(void)putc(c, ftrace);
sbin/routed/trace.c
558
c = '|';
sbin/routed/trace.c
561
if (c != '<' || force)
sbin/routed/trace.c
58
u_char *s2, c;
sbin/routed/trace.c
62
c = *s++;
sbin/routed/trace.c
63
if (c == '\0') {
sbin/routed/trace.c
72
if (c >= ' ' && c < 0x7f && c != '\\') {
sbin/routed/trace.c
73
*p++ = c;
sbin/routed/trace.c
77
switch (c) {
sbin/routed/trace.c
94
p += sprintf(p,"%o",c);
sbin/setkey/parse.y
59
#define ATOX(c) \
sbin/setkey/parse.y
60
(isdigit(c) ? (c - '0') : (isupper(c) ? (c - 'A' + 10) : (c - 'a' + 10)))
sbin/setkey/setkey.c
124
int c;
sbin/setkey/setkey.c
133
while ((c = getopt(ac, av, "abcde:f:ghltvxDFPZ")) != -1) {
sbin/setkey/setkey.c
134
switch (c) {
sbin/umbctl/umbctl.c
150
uint16_t c;
sbin/umbctl/umbctl.c
153
c = *in++;
sbin/umbctl/umbctl.c
155
if (c == '\0') {
sbin/umbctl/umbctl.c
166
*out++ = htole16(c);
sbin/umbctl/umbctl.c
512
uint16_t c;
sbin/umbctl/umbctl.c
515
c = inlen > 0 ? htole16(*in) : 0;
sbin/umbctl/umbctl.c
516
if (c == 0 || --outlen == 0) {
sbin/umbctl/umbctl.c
521
*out++ = isascii(c) ? (char)c : '?';
sbin/veriexec/veriexec.c
182
int c, x;
sbin/veriexec/veriexec.c
189
while ((c = getopt(argc, argv, "C:hi:lSxvz:")) != -1) {
sbin/veriexec/veriexec.c
190
switch (c) {
secure/lib/libcrypt/blowfish.c
366
*c = initstate;
secure/lib/libcrypt/blowfish.c
392
Blowfish_expand0state(blf_ctx *c, const u_int8_t *key, u_int16_t keybytes)
secure/lib/libcrypt/blowfish.c
405
c->P[i] = c->P[i] ^ temp;
secure/lib/libcrypt/blowfish.c
412
Blowfish_encipher(c, &datal, &datar);
secure/lib/libcrypt/blowfish.c
414
c->P[i] = datal;
secure/lib/libcrypt/blowfish.c
415
c->P[i + 1] = datar;
secure/lib/libcrypt/blowfish.c
420
Blowfish_encipher(c, &datal, &datar);
secure/lib/libcrypt/blowfish.c
422
c->S[i][k] = datal;
secure/lib/libcrypt/blowfish.c
423
c->S[i][k + 1] = datar;
secure/lib/libcrypt/blowfish.c
429
Blowfish_expandstate(blf_ctx *c, const u_int8_t *data, u_int16_t databytes,
secure/lib/libcrypt/blowfish.c
443
c->P[i] = c->P[i] ^ temp;
secure/lib/libcrypt/blowfish.c
452
Blowfish_encipher(c, &datal, &datar);
secure/lib/libcrypt/blowfish.c
454
c->P[i] = datal;
secure/lib/libcrypt/blowfish.c
455
c->P[i + 1] = datar;
secure/lib/libcrypt/blowfish.c
462
Blowfish_encipher(c, &datal, &datar);
secure/lib/libcrypt/blowfish.c
464
c->S[i][k] = datal;
secure/lib/libcrypt/blowfish.c
465
c->S[i][k + 1] = datar;
secure/lib/libcrypt/blowfish.c
472
blf_enc(blf_ctx *c, u_int32_t *data, u_int16_t blocks)
secure/lib/libcrypt/blowfish.c
479
Blowfish_encipher(c, d, d + 1);
secure/lib/libcrypt/blowfish.c
64
Blowfish_encipher(blf_ctx *c, u_int32_t *xl, u_int32_t *xr)
secure/lib/libcrypt/blowfish.c
68
u_int32_t *s = c->S[0];
secure/lib/libcrypt/blowfish.c
69
u_int32_t *p = c->P;
secure/lib/libcrypt/blowfish.c
89
Blowfish_initstate(blf_ctx *c)
secure/lib/libcrypt/crypt-blowfish.c
94
#define CHAR64(c) ( (c) > 127 ? 255 : index_64[(c)])
secure/lib/libcrypt/crypt-des.c
568
const char *c;
secure/lib/libcrypt/crypt-des.c
576
trans.c = in;
secure/lib/libcrypt/crypt-des.c
582
trans.c = out;
share/doc/psd/20.ipctut/dgramread.c
1
.\" Copyright (c) 1986, 1993
share/doc/psd/20.ipctut/dgramsend.c
1
.\" Copyright (c) 1986, 1993
share/doc/psd/20.ipctut/pipe.c
1
.\" Copyright (c) 1986, 1993
share/doc/psd/20.ipctut/socketpair.c
1
.\" Copyright (c) 1986, 1993
share/doc/psd/20.ipctut/strchkread.c
1
.\" Copyright (c) 1986, 1993
share/doc/psd/20.ipctut/streamread.c
1
.\" Copyright (c) 1986, 1993
share/doc/psd/20.ipctut/streamwrite.c
1
.\" Copyright (c) 1986, 1993
share/doc/psd/20.ipctut/udgramread.c
1
.\" Copyright (c) 1986, 1993
share/doc/psd/20.ipctut/udgramsend.c
1
.\" Copyright (c) 1986, 1993
share/doc/psd/20.ipctut/ustreamread.c
1
.\" Copyright (c) 1986, 1993
share/doc/psd/20.ipctut/ustreamwrite.c
1
.\" Copyright (c) 1986, 1993
share/examples/ipfilter/l4check/l4check.c
484
char c, buf[512], *s, *t, *errtxt = NULL, *line;
share/examples/ipfilter/l4check/l4check.c
524
for (line = buf; (c = *line) && ISSPACE(c); line++)
share/examples/ipfilter/l4check/l4check.c
71
register char *s, *t, c;
share/examples/ipfilter/l4check/l4check.c
74
for (s = src, t = dst; s && t && (c = *s++); )
share/examples/ipfilter/l4check/l4check.c
761
int c;
share/examples/ipfilter/l4check/l4check.c
763
while ((c = getopt(argc, argv, "f:nv")) != -1)
share/examples/ipfilter/l4check/l4check.c
764
switch (c)
share/examples/ipfilter/l4check/l4check.c
77
switch (c)
share/examples/ipfilter/l4check/l4check.c
89
} else if (c != '\\')
share/examples/ipfilter/l4check/l4check.c
90
*t++ = c;
share/examples/kld/dyn_sysctl/dyn_sysctl.c
110
OID_AUTO, "string_c1", CTLFLAG_RD, c, 0, "just to try 2");
share/examples/kld/dyn_sysctl/dyn_sysctl.c
121
OID_AUTO, "string_c", CTLFLAG_RD, c, 0, "shouldn't panic");
share/examples/kld/dyn_sysctl/dyn_sysctl.c
40
static char *c = "hi there from dyn_sysctl";
share/examples/kld/dyn_sysctl/dyn_sysctl.c
90
OID_AUTO, "string_c", CTLFLAG_RD, c, 0, "just to try 2");
share/examples/kld/random_adaptor/random_adaptor_example.c
82
live_random_example_read(void *buf, u_int c)
share/examples/kld/random_adaptor/random_adaptor_example.c
89
for (count = 0; count < c; count++)
share/examples/kld/random_adaptor/random_adaptor_example.c
93
return (c);
share/examples/libusb20/bulk.c
160
int c;
share/examples/libusb20/bulk.c
162
while ((c = getopt(argc, argv, "i:o:p:v:")) != -1)
share/examples/libusb20/bulk.c
163
switch (c)
share/examples/libusb20/control.c
308
int c;
share/examples/libusb20/control.c
332
while ((c = getopt(argc, argv, "i:p:v:")) != -1)
share/examples/libusb20/control.c
333
switch (c)
share/examples/libusb20/util.c
40
uint8_t c = buf[i + j];
share/examples/libusb20/util.c
41
if(c >= ' ' && c <= '~')
share/examples/libusb20/util.c
42
printf("%c", (char)c);
share/examples/perfmon/perfmon.c
51
int c, fd, num;
share/examples/perfmon/perfmon.c
69
while ((c = getopt(argc, argv, "s:l:uoeiU:m:c:")) != -1) {
share/examples/perfmon/perfmon.c
70
switch(c) {
share/examples/ppi/ppilcd.c
29
static void hd44780_putc(int c);
share/examples/ppi/ppilcd.c
431
hd44780_putc(int c)
share/examples/ppi/ppilcd.c
433
hd44780_output(HD_DATA, c);
share/examples/ppi/ppilcd.c
53
void (* l_putc)(int c);
share/examples/ses/srcs/sesd.c
59
int fd, polltime, dev, nodaemon, clear, c;
share/examples/ses/srcs/sesd.c
70
while ((c = getopt(a, v, "cdt:")) != -1) {
share/examples/ses/srcs/sesd.c
71
switch (c) {
stand/common/boot.c
175
int c, yes;
stand/common/boot.c
221
c = getchar();
stand/common/boot.c
223
if ((c == '\r') || (c == '\n')) {
stand/common/boot.c
226
} else if (c != *p++)
stand/common/boot.c
231
if ((c == '\r') || (c == '\n'))
stand/common/bootstrap.h
116
void (* c_out)(int c);
stand/common/commands.c
409
int c;
stand/common/commands.c
415
while ((c = getopt(argc, argv, "p:t:")) != -1) {
stand/common/commands.c
416
switch (c) {
stand/common/console.c
187
putchar(int c)
stand/common/console.c
192
if (c == '\n')
stand/common/console.c
198
consoles[cons]->c_out(c);
stand/common/console.c
202
if (print_delay_usec != 0 && c == '\n')
stand/common/gfx_fb.c
1031
gfx_fb_putchar(void *arg, const teken_pos_t *p, teken_char_t c,
stand/common/gfx_fb.c
1046
screen_buffer[idx].c = c;
stand/common/gfx_fb.c
1049
glyph = font_lookup(&state->tg_font, c, a);
stand/common/gfx_fb.c
1055
const teken_pos_t *c;
stand/common/gfx_fb.c
1057
c = teken_get_cursor(&state->tg_teken);
stand/common/gfx_fb.c
1058
gfx_fb_cursor_draw(state, c, true);
stand/common/gfx_fb.c
1063
gfx_fb_fill(void *arg, const teken_rect_t *r, teken_char_t c,
stand/common/gfx_fb.c
1077
glyph = font_lookup(&state->tg_font, c, a);
stand/common/gfx_fb.c
1085
row[p.tp_col].c = c;
stand/common/gfx_fb.c
1093
const teken_pos_t *c;
stand/common/gfx_fb.c
1095
c = teken_get_cursor(&state->tg_teken);
stand/common/gfx_fb.c
1096
gfx_fb_cursor_draw(state, c, true);
stand/common/gfx_fb.c
1118
glyph = font_lookup(&state->tg_font, screen_buffer[idx].c,
stand/common/gfx_fb.c
1142
const teken_pos_t *c;
stand/common/gfx_fb.c
1155
c = teken_get_cursor(&state->tg_teken);
stand/common/gfx_fb.c
1156
gfx_fb_cursor_draw(state, c, true);
stand/common/gfx_fb.c
1171
if (px1->c != px2->c)
stand/common/gfx_fb.c
1343
const teken_pos_t *c;
stand/common/gfx_fb.c
1345
c = teken_get_cursor(&state->tg_teken);
stand/common/gfx_fb.c
1346
gfx_fb_cursor_draw(state, c, true);
stand/common/gfx_fb.c
1511
uint32_t c;
stand/common/gfx_fb.c
1516
c = ap->ta_bgcolor;
stand/common/gfx_fb.c
1518
c |= TC_LIGHT;
stand/common/gfx_fb.c
1520
c = ap->ta_fgcolor;
stand/common/gfx_fb.c
1522
c |= TC_LIGHT;
stand/common/gfx_fb.c
1525
return (gfx_fb_color_map(c));
stand/common/gfx_fb.c
1532
uint32_t c;
stand/common/gfx_fb.c
1537
c = gfx_fb_getcolor();
stand/common/gfx_fb.c
1543
gfxfb_blt(&c, GfxFbBltVideoFill, 0, 0, x, y, 1, 1, 0);
stand/common/gfx_fb.c
1553
uint32_t c;
stand/common/gfx_fb.c
1558
c = gfx_fb_getcolor();
stand/common/gfx_fb.c
1561
gfxfb_blt(&c, GfxFbBltVideoFill, 0, 0, x1, y1, x2 - x1,
stand/common/gfx_fb.c
1564
gfxfb_blt(&c, GfxFbBltVideoFill, 0, 0, x1, y1, x2 - x1, 1, 0);
stand/common/gfx_fb.c
1565
gfxfb_blt(&c, GfxFbBltVideoFill, 0, 0, x1, y2, x2 - x1, 1, 0);
stand/common/gfx_fb.c
1566
gfxfb_blt(&c, GfxFbBltVideoFill, 0, 0, x1, y1, 1, y2 - y1, 0);
stand/common/gfx_fb.c
1567
gfxfb_blt(&c, GfxFbBltVideoFill, 0, 0, x2, y1, 1, y2 - y1, 0);
stand/common/gfx_fb.c
2347
font_lookup(const struct vt_font *vf, teken_char_t c, const teken_attr_t *a)
stand/common/gfx_fb.c
2355
vf->vf_map_count[VFNT_MAP_BOLD], c);
stand/common/gfx_fb.c
2360
vf->vf_map_count[VFNT_MAP_NORMAL], c);
stand/common/gfx_fb.c
2852
int i, c, rc;
stand/common/gfx_fb.c
2862
while ((c = getopt(argc, argv, "l")) != -1) {
stand/common/gfx_fb.c
2863
switch (c) {
stand/common/gfx_fb.c
621
uint32_t c = 0;
stand/common/gfx_fb.c
627
c = *sb;
stand/common/gfx_fb.c
630
c = *(uint16_t *)sb;
stand/common/gfx_fb.c
633
c = sb[0] << 16 | sb[1] << 8 | sb[2];
stand/common/gfx_fb.c
636
c = *(uint32_t *)sb;
stand/common/gfx_fb.c
644
(c < 16) ?
stand/common/gfx_fb.c
645
vga_to_cons_colors[c] : c);
stand/common/gfx_fb.c
647
p->Red = (c >> rp) & rm;
stand/common/gfx_fb.c
648
p->Green = (c >> gp) & gm;
stand/common/gfx_fb.c
649
p->Blue = (c >> bp) & bm;
stand/common/gfx_fb.c
721
uint32_t c;
stand/common/gfx_fb.c
727
c = rgb_to_color_index(p->Red,
stand/common/gfx_fb.c
730
c = (p->Red & rm) << rp |
stand/common/gfx_fb.c
738
off, (c < 16) ?
stand/common/gfx_fb.c
739
cons_to_vga_colors[c] : c);
stand/common/gfx_fb.c
743
off, c);
stand/common/gfx_fb.c
747
off, (c >> 16) & 0xff);
stand/common/gfx_fb.c
749
off + 1, (c >> 8) & 0xff);
stand/common/gfx_fb.c
751
off + 2, c & 0xff);
stand/common/gfx_fb.c
755
x * bpp, c);
stand/common/gfx_fb.h
254
teken_char_t c;
stand/common/misc.c
65
char c;
stand/common/misc.c
69
archsw.arch_copyout(src++, &c, 1);
stand/common/misc.c
70
if (c == 0)
stand/common/modinfo.c
105
#define MOD_END(a, c) { \
stand/common/modinfo.c
106
COPY32(MODINFO_END, a, c); \
stand/common/modinfo.c
107
COPY32(0, a, c); \
stand/common/modinfo.c
124
int c;
stand/common/modinfo.c
128
c = addr != 0;
stand/common/modinfo.c
132
MOD_NAME(addr, fp->f_name, c); /* this field must come first */
stand/common/modinfo.c
133
MOD_TYPE(addr, fp->f_type, c);
stand/common/modinfo.c
135
MOD_ARGS(addr, fp->f_args, c);
stand/common/modinfo.c
138
MOD_ADDR(addr, scratch64, c);
stand/common/modinfo.c
140
MOD_SIZE(addr, scratch64, c);
stand/common/modinfo.c
146
MOD_ADDR(addr, scratch32, c);
stand/common/modinfo.c
147
MOD_SIZE(addr, fp->f_size, c);
stand/common/modinfo.c
151
MOD_METADATA(addr, md, c);
stand/common/modinfo.c
155
MOD_END(addr, c);
stand/common/modinfo.c
65
#define COPY32(v, a, c) { \
stand/common/modinfo.c
67
if (c) \
stand/common/modinfo.c
72
#define MOD_STR(t, a, s, c) { \
stand/common/modinfo.c
73
COPY32(t, a, c); \
stand/common/modinfo.c
74
COPY32(strlen(s) + 1, a, c) \
stand/common/modinfo.c
75
if (c) \
stand/common/modinfo.c
80
#define MOD_NAME(a, s, c) MOD_STR(MODINFO_NAME, a, s, c)
stand/common/modinfo.c
81
#define MOD_TYPE(a, s, c) MOD_STR(MODINFO_TYPE, a, s, c)
stand/common/modinfo.c
82
#define MOD_ARGS(a, s, c) MOD_STR(MODINFO_ARGS, a, s, c)
stand/common/modinfo.c
84
#define MOD_VAR(t, a, s, c) { \
stand/common/modinfo.c
85
COPY32(t, a, c); \
stand/common/modinfo.c
86
COPY32(sizeof(s), a, c); \
stand/common/modinfo.c
87
if (c) \
stand/common/modinfo.c
92
#define MOD_ADDR(a, s, c) MOD_VAR(MODINFO_ADDR, a, s, c)
stand/common/modinfo.c
93
#define MOD_SIZE(a, s, c) MOD_VAR(MODINFO_SIZE, a, s, c)
stand/common/modinfo.c
95
#define MOD_METADATA(a, mm, c) { \
stand/common/modinfo.c
96
COPY32(MODINFO_METADATA | mm->md_type, a, c);\
stand/common/modinfo.c
97
COPY32(mm->md_size, a, c); \
stand/common/modinfo.c
98
if (c) { \
stand/common/module.c
1242
char *c = (char *)p;
stand/common/module.c
1243
int len = *(uint8_t *)c;
stand/common/module.c
1245
memcpy(val, c + 1, len);
stand/common/module.c
1247
c += len + 1;
stand/common/module.c
1248
*ptr = (void *)c;
stand/common/nvstore.c
118
while ((c = getopt(argc, argv, "d:g:lt:")) != -1) {
stand/common/nvstore.c
119
switch (c) {
stand/common/nvstore.c
174
c = nvstore_set_var_from_string(st, type, argv[0], argv[1]);
stand/common/nvstore.c
175
if (c != 0) {
stand/common/nvstore.c
176
printf("error: %s\n", strerror(c));
stand/common/nvstore.c
61
int c;
stand/common/nvstore.c
71
while ((c = getopt(argc, argv, "l")) != -1) {
stand/common/nvstore.c
72
switch (c) {
stand/efi/boot1/boot1.c
334
putchar(int c)
stand/efi/boot1/boot1.c
338
if (c == '\n') {
stand/efi/boot1/boot1.c
343
buf[0] = c;
stand/efi/libefi/efi_console.c
1105
uint32_t c;
stand/efi/libefi/efi_console.c
1111
c = (utf8_partial >> (24 - (i << 3))) & 0xff;
stand/efi/libefi/efi_console.c
1112
if (c != 0)
stand/efi/libefi/efi_console.c
1113
efi_term_emu(c);
stand/efi/libefi/efi_console.c
1120
input_byte(uint8_t c)
stand/efi/libefi/efi_console.c
1122
if ((c & 0x80) == 0x00) {
stand/efi/libefi/efi_console.c
1125
efi_term_emu(c);
stand/efi/libefi/efi_console.c
1128
if ((c & 0xe0) == 0xc0) {
stand/efi/libefi/efi_console.c
1132
utf8_partial = c;
stand/efi/libefi/efi_console.c
1135
if ((c & 0xf0) == 0xe0) {
stand/efi/libefi/efi_console.c
1139
utf8_partial = c;
stand/efi/libefi/efi_console.c
1142
if ((c & 0xf8) == 0xf0) {
stand/efi/libefi/efi_console.c
1146
utf8_partial = c;
stand/efi/libefi/efi_console.c
1149
if ((c & 0xc0) == 0x80) {
stand/efi/libefi/efi_console.c
1152
efi_term_emu(c);
stand/efi/libefi/efi_console.c
1156
utf8_partial = (utf8_partial << 8) | c;
stand/efi/libefi/efi_console.c
1191
efi_term_emu(c);
stand/efi/libefi/efi_console.c
1195
efi_cons_putchar(int c)
stand/efi/libefi/efi_console.c
1197
unsigned char ch = c;
stand/efi/libefi/efi_console.c
1214
int i, c = 0;
stand/efi/libefi/efi_console.c
1218
c = keybuf[i];
stand/efi/libefi/efi_console.c
1224
return (c);
stand/efi/libefi/efi_console.c
1336
int c;
stand/efi/libefi/efi_console.c
1338
if ((c = keybuf_getchar()) != 0)
stand/efi/libefi/efi_console.c
1339
return (c);
stand/efi/libefi/efi_console.c
1394
efi_cons_efiputchar(int c)
stand/efi/libefi/efi_console.c
1399
buf[0] = c;
stand/efi/libefi/efi_console.c
227
efi_cons_efiputchar(px->c);
stand/efi/libefi/efi_console.c
232
efi_text_putchar(void *s, const teken_pos_t *p, teken_char_t c,
stand/efi/libefi/efi_console.c
246
screen_buffer[idx].c = c;
stand/efi/libefi/efi_console.c
253
efi_text_fill(void *arg, const teken_rect_t *r, teken_char_t c,
stand/efi/libefi/efi_console.c
268
efi_text_putchar(state, &p, c, a);
stand/efi/libefi/efi_console.c
566
efi_cons_rawputchar(int c)
stand/efi/libefi/efi_console.c
572
if (c == '\t') {
stand/efi/libefi/efi_console.c
580
if (c == '\n')
stand/efi/libefi/efi_console.c
582
efi_cons_efiputchar(c);
stand/efi/libefi/efi_console.c
584
switch (c) {
stand/efi/libefi/efi_console.c
604
efi_cons_efiputchar(c);
stand/efi/libefi/efi_console.c
623
bail_out(int c)
stand/efi/libefi/efi_console.c
639
efi_cons_rawputchar(c);
stand/efi/libefi/efi_console.c
737
get_arg(int c)
stand/efi/libefi/efi_console.c
742
args[argc] += c - '0';
stand/efi/libefi/efi_console.c
748
efi_term_emu(int c)
stand/efi/libefi/efi_console.c
761
switch (c) {
stand/efi/libefi/efi_console.c
763
esc = c;
stand/efi/libefi/efi_console.c
766
efi_cons_rawputchar(c);
stand/efi/libefi/efi_console.c
771
switch (c) {
stand/efi/libefi/efi_console.c
773
esc = c;
stand/efi/libefi/efi_console.c
778
bail_out(c);
stand/efi/libefi/efi_console.c
783
switch (c) {
stand/efi/libefi/efi_console.c
788
bail_out(c);
stand/efi/libefi/efi_console.c
798
bail_out(c);
stand/efi/libefi/efi_console.c
804
bail_out(c);
stand/efi/libefi/efi_console.c
856
if (isdigit(c))
stand/efi/libefi/efi_console.c
857
get_arg(c);
stand/efi/libefi/efi_console.c
859
bail_out(c);
stand/efi/libefi/efi_console.c
864
bail_out(c);
stand/efi/libefi/efi_console.c
868
efi_cons_rawputchar(c);
stand/efi/libefi/efichar.c
102
c = *nm++;
stand/efi/libefi/efichar.c
103
if (c > 0x7ff) {
stand/efi/libefi/efichar.c
105
*cp++ = (char)(0xE0 | (c >> 12));
stand/efi/libefi/efichar.c
107
*cp++ = (char)(0x80 | ((c >> 6) & 0x3f));
stand/efi/libefi/efichar.c
109
*cp++ = (char)(0x80 | (c & 0x3f));
stand/efi/libefi/efichar.c
110
} else if (c > 0x7f) {
stand/efi/libefi/efichar.c
112
*cp++ = (char)(0xC0 | ((c >> 6) & 0x1f));
stand/efi/libefi/efichar.c
114
*cp++ = (char)(0x80 | (c & 0x3f));
stand/efi/libefi/efichar.c
117
*cp++ = (char)(c & 0x7f);
stand/efi/libefi/efichar.c
140
int c, bytes;
stand/efi/libefi/efichar.c
154
c = *name++;
stand/efi/libefi/efichar.c
159
if ((c & 0xc0) != 0x80) {
stand/efi/libefi/efichar.c
163
if ((c & 0xf8) == 0xf0) {
stand/efi/libefi/efichar.c
164
ucs4 = c & 0x07;
stand/efi/libefi/efichar.c
166
} else if ((c & 0xf0) == 0xe0) {
stand/efi/libefi/efichar.c
167
ucs4 = c & 0x0f;
stand/efi/libefi/efichar.c
169
} else if ((c & 0xe0) == 0xc0) {
stand/efi/libefi/efichar.c
170
ucs4 = c & 0x1f;
stand/efi/libefi/efichar.c
173
ucs4 = c & 0x7f;
stand/efi/libefi/efichar.c
179
ucs4 = (ucs4 << 6) + (c & 0x3f);
stand/efi/libefi/efichar.c
68
efi_char c;
stand/efi/libefi/efichar.c
72
c = *nm++;
stand/efi/libefi/efichar.c
73
if (c > 0x7ff)
stand/efi/libefi/efichar.c
75
else if (c > 0x7f)
stand/efi/libefi/efichar.c
88
efi_char c;
stand/efi/libefi/eficom.c
401
comc_putchar(int c)
stand/efi/libefi/eficom.c
406
char cb = c;
stand/efi/libefi/eficom.c
423
char c;
stand/efi/libefi/eficom.c
439
status = comc_port->sio->Read(comc_port->sio, &bufsz, &c);
stand/efi/libefi/eficom.c
443
return (c);
stand/efi/libefi/efihttp.c
237
char *c;
stand/efi/libefi/efihttp.c
345
c = strrchr(oh->uri_base, '/');
stand/efi/libefi/efihttp.c
346
if (c != NULL)
stand/efi/libefi/efihttp.c
347
*c = '\0';
stand/efi/libefi/efihttp.c
348
c = strrchr(oh->uri_base, '/');
stand/efi/libefi/efihttp.c
349
if (c != NULL && *(c + 1) != '\0')
stand/efi/libefi/efihttp.c
350
*(c + 1) = '\0';
stand/efi/libefi/efihttp.c
393
char *c;
stand/efi/libefi/efihttp.c
452
c = strchr(host, '/');
stand/efi/libefi/efihttp.c
453
if (c != NULL && *(c + 1) == '/')
stand/efi/libefi/efihttp.c
454
hostp = (c + 2);
stand/efi/libefi/efihttp.c
457
c = strchr(hostp, '/');
stand/efi/libefi/efihttp.c
458
if (c != NULL)
stand/efi/libefi/efihttp.c
459
*c = '\0';
stand/fdt/fdt_loader_cmd.c
1343
const uint32_t *c;
stand/fdt/fdt_loader_cmd.c
1378
c = (const uint32_t *)((const uint8_t *)data + i);
stand/fdt/fdt_loader_cmd.c
1379
sprintf(tmp, "0x%08x%s", fdt32_to_cpu(*c),
stand/ficl/dict.c
104
CELL c;
stand/ficl/dict.c
106
c.p = (void *)cp;
stand/ficl/dict.c
107
c.u = c.u & (~FICL_ALIGN_ADD);
stand/ficl/dict.c
108
ptr = (CELL *)c.p;
stand/ficl/dict.c
190
void dictAppendCell(FICL_DICT *pDict, CELL c)
stand/ficl/dict.c
192
*pDict->here++ = c;
stand/ficl/dict.c
201
void dictAppendChar(FICL_DICT *pDict, char c)
stand/ficl/dict.c
204
*cp++ = c;
stand/ficl/ficl.h
381
void stackPush (FICL_STACK *pStack, CELL c);
stand/ficl/ficl.h
387
void stackSetTop (FICL_STACK *pStack, CELL c);
stand/ficl/ficl.h
388
void stackStore (FICL_STACK *pStack, int n, CELL c);
stand/ficl/ficl.h
403
#define PUSH(c) stackPush(pVM->pStack,c)
stand/ficl/ficl.h
410
#define SETTOP(c) stackSetTop(pVM->pStack,LVALUEtoCELL(c))
stand/ficl/ficl.h
412
#define SETTOPF(c) stackSetTop(pVM->fStack,LVALUEtoCELL(c))
stand/ficl/ficl.h
413
#define STORE(n,c) stackStore(pVM->pStack,n,LVALUEtoCELL(c))
stand/ficl/ficl.h
583
void vmPush (FICL_VM *pVM, CELL c);
stand/ficl/ficl.h
745
void dictAppendCell (FICL_DICT *pDict, CELL c);
stand/ficl/ficl.h
746
void dictAppendChar (FICL_DICT *pDict, char c);
stand/ficl/float.c
480
CELL c = POP();
stand/ficl/float.c
483
vmCheckFStack(pVM, c.i+1, c.i+2);
stand/ficl/float.c
486
PICKF(c.i);
stand/ficl/float.c
495
CELL c;
stand/ficl/float.c
501
c = GETTOPF();
stand/ficl/float.c
502
if (c.f != 0)
stand/ficl/float.c
677
CELL c;
stand/ficl/float.c
684
c.i = FICL_BOOL(POPFLOAT() == 0);
stand/ficl/float.c
685
PUSH(c);
stand/ficl/float.c
694
CELL c;
stand/ficl/float.c
701
c.i = FICL_BOOL(POPFLOAT() < 0);
stand/ficl/float.c
702
PUSH(c);
stand/ficl/float.c
711
CELL c;
stand/ficl/float.c
718
c.i = FICL_BOOL(POPFLOAT() > 0);
stand/ficl/float.c
719
PUSH(c);
stand/ficl/float.c
783
CELL c;
stand/ficl/float.c
790
c = stackPop(pVM->fStack);
stand/ficl/float.c
791
stackPush(pVM->pStack, c);
stand/ficl/float.c
797
CELL c;
stand/ficl/float.c
804
c = stackPop(pVM->pStack);
stand/ficl/float.c
805
stackPush(pVM->fStack, c);
stand/ficl/loader.c
462
CELL c;
stand/ficl/loader.c
466
c = stackPop(pVM->pStack);
stand/ficl/loader.c
467
ltoa((c).i, pVM->pad, pVM->base);
stand/ficl/stack.c
178
void stackStore(FICL_STACK *pStack, int n, CELL c)
stand/ficl/stack.c
180
pStack->sp[-n-1] = c;
stand/ficl/stack.c
278
void stackPush(FICL_STACK *pStack, CELL c)
stand/ficl/stack.c
280
*pStack->sp++ = c;
stand/ficl/stack.c
327
CELL c;
stand/ficl/stack.c
335
c = *pCell;
stand/ficl/stack.c
342
*pCell = c;
stand/ficl/stack.c
347
c = *pCell;
stand/ficl/stack.c
354
*pCell = c;
stand/ficl/stack.c
365
void stackSetTop(FICL_STACK *pStack, CELL c)
stand/ficl/stack.c
367
pStack->sp[-1] = c;
stand/ficl/tools.c
208
CELL c;
stand/ficl/tools.c
213
c = *++pc;
stand/ficl/tools.c
214
if (isAFiclWord(pd, c.p))
stand/ficl/tools.c
216
FICL_WORD *pLit = (FICL_WORD *)c.p;
stand/ficl/tools.c
218
pLit->nName, pLit->name, (unsigned long)c.u);
stand/ficl/tools.c
222
(long)c.i, (unsigned long)c.u);
stand/ficl/tools.c
239
c = *++pc;
stand/ficl/tools.c
240
if (c.i > 0)
stand/ficl/tools.c
241
sprintf(cp, "if / while (branch %d)", (int)(pc+c.i-param0));
stand/ficl/tools.c
243
sprintf(cp, "until (branch %d)", (int)(pc+c.i-param0));
stand/ficl/tools.c
246
c = *++pc;
stand/ficl/tools.c
247
if (c.i == 0)
stand/ficl/tools.c
248
sprintf(cp, "repeat (branch %d)", (int)(pc+c.i-param0));
stand/ficl/tools.c
249
else if (c.i == 1)
stand/ficl/tools.c
250
sprintf(cp, "else (branch %d)", (int)(pc+c.i-param0));
stand/ficl/tools.c
252
sprintf(cp, "endof (branch %d)", (int)(pc+c.i-param0));
stand/ficl/tools.c
256
c = *++pc;
stand/ficl/tools.c
257
sprintf(cp, "of (branch %d)", (int)(pc+c.i-param0));
stand/ficl/tools.c
261
c = *++pc;
stand/ficl/tools.c
262
sprintf(cp, "?do (leave %d)", (int)((CELL *)c.p-param0));
stand/ficl/tools.c
265
c = *++pc;
stand/ficl/tools.c
266
sprintf(cp, "do (leave %d)", (int)((CELL *)c.p-param0));
stand/ficl/tools.c
269
c = *++pc;
stand/ficl/tools.c
270
sprintf(cp, "loop (branch %d)", (int)(pc+c.i-param0));
stand/ficl/tools.c
273
c = *++pc;
stand/ficl/tools.c
274
sprintf(cp, "+loop (branch %d)", (int)(pc+c.i-param0));
stand/ficl/tools.c
663
CELL c = *pCell++;
stand/ficl/tools.c
670
if (dictIncludes(dp, c.p))
stand/ficl/tools.c
672
FICL_WORD *pFW = findEnclosingWord(pVM, c.p);
stand/ficl/tools.c
675
int offset = (CELL *)c.p - &pFW->param[0];
stand/ficl/tools.c
681
vmTextOut(pVM, ltoa(c.i, pVM->pad, pVM->base), 0);
stand/ficl/vm.c
203
CELL c;
stand/ficl/vm.c
231
c = *ip++;
stand/ficl/vm.c
232
stackPick(pStack, c.i);
stand/ficl/vm.c
235
c = *ip++;
stand/ficl/vm.c
236
stackRoll(pStack, c.i);
stand/ficl/vm.c
437
void vmPush(FICL_VM *pVM, CELL c)
stand/ficl/vm.c
439
stackPush(pVM->pStack, c);
stand/ficl/vm.c
611
char c;
stand/ficl/vm.c
617
c = *p2;
stand/ficl/vm.c
619
*p1 = c;
stand/ficl/words.c
1852
CELL c;
stand/ficl/words.c
1856
c.i = FICL_BOOL(stackPopINT(pVM->pStack) == 0);
stand/ficl/words.c
1857
stackPush(pVM->pStack, c);
stand/ficl/words.c
1863
CELL c;
stand/ficl/words.c
1867
c.i = FICL_BOOL(stackPopINT(pVM->pStack) < 0);
stand/ficl/words.c
1868
stackPush(pVM->pStack, c);
stand/ficl/words.c
1874
CELL c;
stand/ficl/words.c
1878
c.i = FICL_BOOL(stackPopINT(pVM->pStack) > 0);
stand/ficl/words.c
1879
stackPush(pVM->pStack, c);
stand/ficl/words.c
2412
CELL c;
stand/ficl/words.c
2418
c = POP();
stand/ficl/words.c
2419
dictAppendCell(dp, c);
stand/ficl/words.c
2426
char c;
stand/ficl/words.c
2432
c = (char)POPINT();
stand/ficl/words.c
2433
dictAppendChar(dp, c);
stand/ficl/words.c
4098
CELL c;
stand/ficl/words.c
4100
c = stackPop(pVM->pStack);
stand/ficl/words.c
4101
if (c.i >= FICL_USER_CELLS)
stand/ficl/words.c
4107
dictAppendCell(dp, c);
stand/ficl/words.c
625
CELL c;
stand/ficl/words.c
630
c = stackPop(pVM->pStack);
stand/ficl/words.c
633
dictAppendCell(dp, c);
stand/ficl/words.c
646
CELL c;
stand/ficl/words.c
650
c = stackPop(pVM->pStack);
stand/ficl/words.c
651
ltoa((c).i, pVM->pad, pVM->base);
stand/ficl/words.c
931
CELL c = stackPop(pVM->pStack);
stand/ficl/words.c
933
vmCheckStack(pVM, c.i+1, c.i+2);
stand/ficl/words.c
935
stackPick(pVM->pStack, c.i);
stand/ficl/words.c
942
CELL c;
stand/ficl/words.c
946
c = stackGetTop(pVM->pStack);
stand/ficl/words.c
948
if (c.i != 0)
stand/ficl/x86/sysdep.c
12
u_char c;
stand/ficl/x86/sysdep.c
16
c=(u_char)stackPopINT(pVM->pStack);
stand/ficl/x86/sysdep.c
17
outb(port,c);
stand/ficl/x86/sysdep.c
27
u_char c;
stand/ficl/x86/sysdep.c
31
c=inb(port);
stand/ficl/x86/sysdep.c
32
stackPushINT(pVM->pStack,c);
stand/i386/boot2/boot2.c
162
int c;
stand/i386/boot2/boot2.c
166
switch (c = xgetc(0)) {
stand/i386/boot2/boot2.c
182
*s++ = c;
stand/i386/boot2/boot2.c
183
putchar(c);
stand/i386/boot2/boot2.c
189
putc(int c)
stand/i386/boot2/boot2.c
193
v86.eax = 0xe00 | (c & 0xff);
stand/i386/boot2/boot2.c
360
int c, i, j;
stand/i386/boot2/boot2.c
365
while ((c = *arg++)) {
stand/i386/boot2/boot2.c
366
if (c == ' ' || c == '\t' || c == '\n')
stand/i386/boot2/boot2.c
372
if (c == '-') {
stand/i386/boot2/boot2.c
373
while ((c = *arg++)) {
stand/i386/boot2/boot2.c
374
if (c == 'P') {
stand/i386/boot2/boot2.c
385
} else if (c == 'S') {
stand/i386/boot2/boot2.c
399
for (i = 0; c != optstr[i]; i++)
stand/i386/boot2/boot2.c
540
int c;
stand/i386/boot2/boot2.c
543
while ((c = *fmt++)) {
stand/i386/boot2/boot2.c
544
if (c == '%') {
stand/i386/boot2/boot2.c
545
c = *fmt++;
stand/i386/boot2/boot2.c
546
switch (c) {
stand/i386/boot2/boot2.c
565
putchar(c);
stand/i386/boot2/boot2.c
572
putchar(int c)
stand/i386/boot2/boot2.c
575
if (c == '\n')
stand/i386/boot2/boot2.c
577
xputc(c);
stand/i386/boot2/boot2.c
583
static unsigned c = 0x2d5c7c2f;
stand/i386/boot2/boot2.c
586
xputc(c = c << 8 | c >> 24);
stand/i386/boot2/boot2.c
625
xputc(int c)
stand/i386/boot2/boot2.c
629
putc(c);
stand/i386/boot2/boot2.c
631
sio_putc(c);
stand/i386/boot2/boot2.c
632
return (c);
stand/i386/common/cons.c
132
uint32_t t0, t1, c;
stand/i386/common/cons.c
146
c = xgetc(1);
stand/i386/common/cons.c
147
if (c != 0 && c != 0x0100)
stand/i386/common/cons.c
164
int c;
stand/i386/common/cons.c
168
c = xgetc(0);
stand/i386/common/cons.c
171
switch (c) {
stand/i386/common/cons.c
173
c = '\177';
stand/i386/common/cons.c
176
c &= 0xff;
stand/i386/common/cons.c
180
switch (c) {
stand/i386/common/cons.c
193
if (c >= 0x20 && c <= 0x7e) {
stand/i386/common/cons.c
195
*s++ = c;
stand/i386/common/cons.c
196
putchar(c);
stand/i386/common/cons.c
33
putc(int c)
stand/i386/common/cons.c
38
v86.eax = 0xe00 | (c & 0xff);
stand/i386/common/cons.c
44
xputc(int c)
stand/i386/common/cons.c
48
putc(c);
stand/i386/common/cons.c
50
sio_putc(c);
stand/i386/common/cons.c
69
putchar(int c)
stand/i386/common/cons.c
73
switch (c) {
stand/i386/common/cons.c
85
xputc(c);
stand/i386/common/cons.h
24
void putc(int c);
stand/i386/common/cons.h
25
void xputc(int c);
stand/i386/common/cons.h
26
void putchar(int c);
stand/i386/common/drv.c
52
static unsigned c = 0x2d5c7c2f;
stand/i386/common/drv.c
55
printf("%c\b", c = c << 8 | c >> 24);
stand/i386/gptboot/gptboot.c
504
int c, i, j;
stand/i386/gptboot/gptboot.c
508
while ((c = *arg++)) {
stand/i386/gptboot/gptboot.c
509
if (c == ' ' || c == '\t' || c == '\n')
stand/i386/gptboot/gptboot.c
515
if (c == '-') {
stand/i386/gptboot/gptboot.c
516
while ((c = *arg++)) {
stand/i386/gptboot/gptboot.c
517
if (c == 'P') {
stand/i386/gptboot/gptboot.c
527
} else if (c == 'S') {
stand/i386/gptboot/gptboot.c
541
for (i = 0; c != optstr[i]; i++)
stand/i386/gptzfsboot/zfsboot.c
571
int c, i, j;
stand/i386/gptzfsboot/zfsboot.c
573
while ((c = *arg++)) {
stand/i386/gptzfsboot/zfsboot.c
574
if (c == ' ' || c == '\t' || c == '\n')
stand/i386/gptzfsboot/zfsboot.c
581
if (c == '-') {
stand/i386/gptzfsboot/zfsboot.c
582
while ((c = *arg++)) {
stand/i386/gptzfsboot/zfsboot.c
583
if (c == 'P') {
stand/i386/gptzfsboot/zfsboot.c
593
} else if (c == 'S') {
stand/i386/gptzfsboot/zfsboot.c
607
for (i = 0; c != optstr[i]; i++)
stand/i386/gptzfsboot/zfsboot.c
618
} if (c == '?') {
stand/i386/isoboot/isoboot.c
427
int c, i, j;
stand/i386/isoboot/isoboot.c
431
while ((c = *arg++)) {
stand/i386/isoboot/isoboot.c
432
if (c == ' ' || c == '\t' || c == '\n')
stand/i386/isoboot/isoboot.c
438
if (c == '-') {
stand/i386/isoboot/isoboot.c
439
while ((c = *arg++)) {
stand/i386/isoboot/isoboot.c
440
if (c == 'P') {
stand/i386/isoboot/isoboot.c
450
} else if (c == 'S') {
stand/i386/isoboot/isoboot.c
464
for (i = 0; c != optstr[i]; i++)
stand/i386/libi386/comconsole.c
148
comc_putchar(int c)
stand/i386/libi386/comconsole.c
154
outb(comc_port + com_data, (u_char)c);
stand/i386/libi386/comconsole.c
47
static void comc_putchar(int c);
stand/i386/libi386/nullconsole.c
43
static void nullc_putchar(int c);
stand/i386/libi386/nullconsole.c
70
nullc_putchar(int c)
stand/i386/libi386/spinconsole.c
43
static void spinc_putchar(int c);
stand/i386/libi386/spinconsole.c
78
spinc_putchar(int c)
stand/i386/libi386/textvidc.c
119
vidc_biosputchar(int c)
stand/i386/libi386/textvidc.c
124
v86.eax = 0xe00 | (c & 0xff);
stand/i386/libi386/textvidc.c
130
vidc_rawputchar(int c)
stand/i386/libi386/textvidc.c
134
if (c == '\t') {
stand/i386/libi386/textvidc.c
147
vidc_biosputchar(c);
stand/i386/libi386/textvidc.c
150
switch(c) {
stand/i386/libi386/textvidc.c
152
vidc_biosputchar(c);
stand/i386/libi386/textvidc.c
176
write_char(c, fg_c, bg_c);
stand/i386/libi386/textvidc.c
232
#define isvisible(c) (((c) >= 32) && ((c) < 255))
stand/i386/libi386/textvidc.c
259
write_char(int c, int fgcol, int bgcol)
stand/i386/libi386/textvidc.c
264
v86.eax = 0x0900 + (0x00ff & c);
stand/i386/libi386/textvidc.c
342
bail_out(int c)
stand/i386/libi386/textvidc.c
358
vidc_rawputchar(c);
stand/i386/libi386/textvidc.c
363
get_arg(int c)
stand/i386/libi386/textvidc.c
369
args[argc] += c - '0';
stand/i386/libi386/textvidc.c
374
vidc_term_emu(int c)
stand/i386/libi386/textvidc.c
384
switch (c) {
stand/i386/libi386/textvidc.c
386
esc = c;
stand/i386/libi386/textvidc.c
389
vidc_rawputchar(c);
stand/i386/libi386/textvidc.c
395
switch (c) {
stand/i386/libi386/textvidc.c
397
esc = c;
stand/i386/libi386/textvidc.c
402
bail_out(c);
stand/i386/libi386/textvidc.c
408
switch (c) {
stand/i386/libi386/textvidc.c
413
bail_out(c);
stand/i386/libi386/textvidc.c
423
bail_out(c);
stand/i386/libi386/textvidc.c
429
bail_out(c);
stand/i386/libi386/textvidc.c
43
static void vidc_putchar(int c);
stand/i386/libi386/textvidc.c
480
if (isdigit(c))
stand/i386/libi386/textvidc.c
481
get_arg(c);
stand/i386/libi386/textvidc.c
483
bail_out(c);
stand/i386/libi386/textvidc.c
489
bail_out(c);
stand/i386/libi386/textvidc.c
496
vidc_putchar(int c)
stand/i386/libi386/textvidc.c
499
vidc_term_emu(c);
stand/i386/libi386/textvidc.c
501
vidc_rawputchar(c);
stand/i386/libi386/textvidc.c
57
void bail_out(int c);
stand/i386/libi386/textvidc.c
58
void vidc_term_emu(int c);
stand/i386/libi386/textvidc.c
60
void write_char(int c, int fg, int bg);
stand/i386/libi386/vidconsole.c
1030
vidc_biosputchar(int c)
stand/i386/libi386/vidconsole.c
1035
v86.eax = 0xe00 | (c & 0xff);
stand/i386/libi386/vidconsole.c
1041
vidc_putchar(int c)
stand/i386/libi386/vidconsole.c
1043
unsigned char ch = c;
stand/i386/libi386/vidconsole.c
1048
vidc_biosputchar(c);
stand/i386/libi386/vidconsole.c
1054
int i, c;
stand/i386/libi386/vidconsole.c
1058
c = keybuf[i];
stand/i386/libi386/vidconsole.c
1060
return (c);
stand/i386/libi386/vidconsole.c
282
vga_get_cp437(teken_char_t c)
stand/i386/libi386/vidconsole.c
289
if (c < cp437table[0].unicode_base ||
stand/i386/libi386/vidconsole.c
290
c > cp437table[max].unicode_base + cp437table[max].length)
stand/i386/libi386/vidconsole.c
295
if (c < cp437table[mid].unicode_base)
stand/i386/libi386/vidconsole.c
297
else if (c > cp437table[mid].unicode_base +
stand/i386/libi386/vidconsole.c
301
return (c - cp437table[mid].unicode_base +
stand/i386/libi386/vidconsole.c
337
addr[idx].ch = vga_get_cp437(px->c);
stand/i386/libi386/vidconsole.c
342
vidc_text_putchar(void *s, const teken_pos_t *p, teken_char_t c,
stand/i386/libi386/vidconsole.c
352
screen_buffer[idx].c = c;
stand/i386/libi386/vidconsole.c
359
vidc_text_fill(void *arg, const teken_rect_t *r, teken_char_t c,
stand/i386/libi386/vidconsole.c
372
vidc_text_putchar(state, &p, c, a);
stand/i386/libi386/vidconsole.c
47
static void vidc_putchar(int c);
stand/i386/libi386/vidconsole.c
756
vga_cp437_to_uni(uint8_t c)
stand/i386/libi386/vidconsole.c
765
if (c < cp437unitable[mid].cp437_base)
stand/i386/libi386/vidconsole.c
767
else if (c > cp437unitable[mid].cp437_base +
stand/i386/libi386/vidconsole.c
771
return (c - cp437unitable[mid].cp437_base +
stand/i386/libi386/vidconsole.c
787
uint16_t c;
stand/i386/libi386/vidconsole.c
851
c = vga_cp437_to_uni(i);
stand/i386/libi386/vidconsole.c
852
from = font_lookup(&gfx_state.tg_font, c, &a);
stand/kboot/include/arch/powerpc64/termios_arch.h
179
#define _IOC(a,b,c,d) ( ((a)<<29) | ((b)<<8) | (c) | ((d)<<16) )
stand/kboot/include/arch/powerpc64/termios_arch.h
185
#define _IOW(a,b,c) _IOC(_IOC_WRITE,(a),(b),sizeof(c))
stand/kboot/include/arch/powerpc64/termios_arch.h
186
#define _IOR(a,b,c) _IOC(_IOC_READ,(a),(b),sizeof(c))
stand/kboot/include/arch/powerpc64/termios_arch.h
187
#define _IOWR(a,b,c) _IOC(_IOC_READ|_IOC_WRITE,(a),(b),sizeof(c))
stand/kboot/kboot/hostcons.c
33
static void hostcons_putchar(int c);
stand/kboot/kboot/hostcons.c
70
hostcons_putchar(int c)
stand/kboot/kboot/hostcons.c
72
uint8_t ch = c;
stand/kshim/bsd_kernel.c
436
callout_callback(struct callout *c)
stand/kshim/bsd_kernel.c
438
mtx_lock(c->mtx);
stand/kshim/bsd_kernel.c
441
if (c->entry.le_prev != NULL) {
stand/kshim/bsd_kernel.c
442
LIST_REMOVE(c, entry);
stand/kshim/bsd_kernel.c
443
c->entry.le_prev = NULL;
stand/kshim/bsd_kernel.c
447
if (c->c_func != NULL)
stand/kshim/bsd_kernel.c
448
(c->c_func) (c->c_arg);
stand/kshim/bsd_kernel.c
450
if (!(c->flags & CALLOUT_RETURNUNLOCKED))
stand/kshim/bsd_kernel.c
451
mtx_unlock(c->mtx);
stand/kshim/bsd_kernel.c
464
struct callout *c;
stand/kshim/bsd_kernel.c
470
LIST_FOREACH(c, &head_callout, entry) {
stand/kshim/bsd_kernel.c
472
delta = c->timeout - ticks;
stand/kshim/bsd_kernel.c
476
callout_callback(c);
stand/kshim/bsd_kernel.c
485
callout_init_mtx(struct callout *c, struct mtx *mtx, int flags)
stand/kshim/bsd_kernel.c
487
memset(c, 0, sizeof(*c));
stand/kshim/bsd_kernel.c
492
c->mtx = mtx;
stand/kshim/bsd_kernel.c
493
c->flags = (flags & CALLOUT_RETURNUNLOCKED);
stand/kshim/bsd_kernel.c
497
callout_reset(struct callout *c, int to_ticks,
stand/kshim/bsd_kernel.c
500
callout_stop(c);
stand/kshim/bsd_kernel.c
502
c->c_func = func;
stand/kshim/bsd_kernel.c
503
c->c_arg = arg;
stand/kshim/bsd_kernel.c
504
c->timeout = ticks + to_ticks;
stand/kshim/bsd_kernel.c
507
LIST_INSERT_HEAD(&head_callout, c, entry);
stand/kshim/bsd_kernel.c
512
callout_stop(struct callout *c)
stand/kshim/bsd_kernel.c
516
if (c->entry.le_prev != NULL) {
stand/kshim/bsd_kernel.c
517
LIST_REMOVE(c, entry);
stand/kshim/bsd_kernel.c
518
c->entry.le_prev = NULL;
stand/kshim/bsd_kernel.c
522
c->c_func = NULL;
stand/kshim/bsd_kernel.c
523
c->c_arg = NULL;
stand/kshim/bsd_kernel.c
527
callout_drain(struct callout *c)
stand/kshim/bsd_kernel.c
529
if (c->mtx == NULL)
stand/kshim/bsd_kernel.c
532
mtx_lock(c->mtx);
stand/kshim/bsd_kernel.c
533
callout_stop(c);
stand/kshim/bsd_kernel.c
534
mtx_unlock(c->mtx);
stand/kshim/bsd_kernel.c
538
callout_pending(struct callout *c)
stand/kshim/bsd_kernel.c
543
retval = (c->entry.le_prev != NULL);
stand/kshim/bsd_kernel.h
90
#define EARLY_DRIVER_MODULE(a, b, c, d, e, f) DRIVER_MODULE(a, b, c, d, e)
stand/libofw/ofw_console.c
69
ofw_cons_putchar(int c)
stand/libofw/ofw_console.c
73
if (c == '\n') {
stand/libofw/ofw_console.c
78
cbuf = c;
stand/libofw/openfirm.c
74
#define SETUP(a, b, c, d) \
stand/libofw/openfirm.c
76
a.nargs = IN( (c) ); \
stand/libsa/bootp.c
80
#define setenv_(a, b, c)
stand/libsa/bootparam.c
375
u_char c[4];
stand/libsa/bootparam.c
383
cp = uia.c;
stand/libsa/bootparam.c
406
u_char c[4];
stand/libsa/bootparam.c
418
cp = uia.c;
stand/libsa/bzipfs.c
126
int c;
stand/libsa/bzipfs.c
130
c = get_byte(bzf);
stand/libsa/bzipfs.c
131
if (c != bz_magic[len]) {
stand/libsa/bzipfs.c
136
c = get_byte(bzf);
stand/libsa/bzipfs.c
137
if (c < '1' || c > '9')
stand/libsa/dosfs.c
164
#define fatoff(sz, c) ((sz) == 12 ? (c) + ((c) >> 1) : \
stand/libsa/dosfs.c
165
(sz) == 16 ? (c) << 1 : \
stand/libsa/dosfs.c
166
(c) << 2)
stand/libsa/dosfs.c
169
#define okclus(fs, c) ((c) >= LOCLUS && (c) <= (fs)->xclus)
stand/libsa/dosfs.c
411
u_int clus, c, cnt, n;
stand/libsa/dosfs.c
430
c = f->c;
stand/libsa/dosfs.c
434
if (!c) {
stand/libsa/dosfs.c
435
if ((c = clus))
stand/libsa/dosfs.c
440
if ((err = fatget(f->fs, &c)))
stand/libsa/dosfs.c
442
if (!okclus(f->fs, c)) {
stand/libsa/dosfs.c
449
if (c != 0)
stand/libsa/dosfs.c
450
off += blkoff(f->fs, (uint64_t)c);
stand/libsa/dosfs.c
457
f->c = c;
stand/libsa/dosfs.c
499
f->c = 0;
stand/libsa/dosfs.c
832
u_int n, x, c;
stand/libsa/dosfs.c
838
if ((c = cv2(p)) && (c < 32 || c > 127))
stand/libsa/dosfs.c
839
c = '?';
stand/libsa/dosfs.c
840
if (!(*lfn++ = c))
stand/libsa/dosfs.c
882
u_int c;
stand/libsa/dosfs.c
886
if (!(c = stclus(fs->fatsz, de))) {
stand/libsa/dosfs.c
889
if ((n = fatcnt(fs, c)) == -1)
stand/libsa/dosfs.c
901
fatcnt(DOS_FS *fs, u_int c)
stand/libsa/dosfs.c
905
for (n = 0; okclus(fs, c); n++)
stand/libsa/dosfs.c
906
if (fatget(fs, &c))
stand/libsa/dosfs.c
908
return (fatend(fs->fatsz, c) ? n : -1);
stand/libsa/dosfs.c
916
fatget(DOS_FS *fs, u_int *c)
stand/libsa/dosfs.c
923
val_in = *c;
stand/libsa/dosfs.c
962
*c = val_out;
stand/libsa/dosfs.c
970
fatend(u_int sz, u_int c)
stand/libsa/dosfs.c
972
return (c > (sz == 12 ? 0xff7U : sz == 16 ? 0xfff7U : 0xffffff7));
stand/libsa/dosfs.h
121
u_int c; /* last cluster read */
stand/libsa/ext2fs.c
342
char c;
stand/libsa/ext2fs.c
450
while ((c = *cp) != '\0' && c != '/') {
stand/libsa/ext2fs.c
466
*cp = c;
stand/libsa/geli/pwgets.c
39
int c;
stand/libsa/geli/pwgets.c
43
switch (c = getchar() & 0177) {
stand/libsa/geli/pwgets.c
67
*lp++ = c;
stand/libsa/gets.c
101
if ((c == '\r') || /* line terminators */
stand/libsa/gets.c
102
(c == '\n'))
stand/libsa/gets.c
104
*buf++ = c; /* keep char */
stand/libsa/gets.c
39
int c;
stand/libsa/gets.c
43
c = getchar();
stand/libsa/gets.c
44
if (c == -1)
stand/libsa/gets.c
46
switch (c & 0177) {
stand/libsa/gets.c
76
*lp++ = c;
stand/libsa/gets.c
77
putchar(c);
stand/libsa/gets.c
87
char c;
stand/libsa/gets.c
93
err = read(fd, &c, sizeof(c));
stand/libsa/gzipfs.c
118
int c;
stand/libsa/gzipfs.c
123
c = get_byte(zf, &zf->zf_dataoffset);
stand/libsa/gzipfs.c
124
if (c != gz_magic[len]) {
stand/libsa/gzipfs.c
144
while ((c = get_byte(zf, &zf->zf_dataoffset)) != 0 && c != -1) ;
stand/libsa/gzipfs.c
147
while ((c = get_byte(zf, &zf->zf_dataoffset)) != 0 && c != -1) ;
stand/libsa/gzipfs.c
150
for (len = 0; len < 2; len++) c = get_byte(zf, &zf->zf_dataoffset);
stand/libsa/gzipfs.c
153
return((c == -1) ? 1 : 0);
stand/libsa/hexdump.c
37
int x, c;
stand/libsa/hexdump.c
63
c = *(uint8_t *)(line + x);
stand/libsa/hexdump.c
64
if (!isprint(c))
stand/libsa/hexdump.c
65
c = '.';
stand/libsa/hexdump.c
66
emit("%c", c);
stand/libsa/net.c
153
char c;
stand/libsa/net.c
164
while ((c = *cp) != '\0') {
stand/libsa/net.c
165
if (c >= '0' && c <= '9') {
stand/libsa/net.c
166
val = (val * 10) + (c - '0');
stand/libsa/nfs.c
475
int c;
stand/libsa/nfs.c
573
while ((c = *cp) != '\0' && c != '/') {
stand/libsa/nfs.c
585
*cp = c;
stand/libsa/pkgfs.c
451
int c;
stand/libsa/pkgfs.c
454
c = read(pkg->pkg_fd, pkg->pkg_buf, PKG_BUFSIZE);
stand/libsa/pkgfs.c
455
if (c <= 0)
stand/libsa/pkgfs.c
457
pkg->pkg_zs.avail_in = c;
stand/libsa/pkgfs.c
461
c = *pkg->pkg_zs.next_in;
stand/libsa/pkgfs.c
465
return (c);
stand/libsa/pkgfs.c
471
int c;
stand/libsa/pkgfs.c
478
c = read(pkg->pkg_fd, pkg->pkg_buf, PKG_BUFSIZE);
stand/libsa/pkgfs.c
479
if (c <= 0) {
stand/libsa/pkgfs.c
483
pkg->pkg_zs.avail_in = c;
stand/libsa/pkgfs.c
487
c = inflate(&pkg->pkg_zs, Z_SYNC_FLUSH);
stand/libsa/pkgfs.c
488
if (c != Z_OK && c != Z_STREAM_END) {
stand/libsa/printf.c
198
char *p, c;
stand/libsa/printf.c
203
c = hex2ascii(num % base);
stand/libsa/printf.c
204
*++p = upper ? toupper(c) : c;
stand/libsa/printf.c
240
#define PCHAR(c) { \
stand/libsa/printf.c
241
int cc = (c); \
stand/libsa/stand.h
228
#define isascii(c) (((c) & ~0x7F) == 0)
stand/libsa/stand.h
230
static __inline int isupper(int c)
stand/libsa/stand.h
232
return c >= 'A' && c <= 'Z';
stand/libsa/stand.h
235
static __inline int islower(int c)
stand/libsa/stand.h
237
return c >= 'a' && c <= 'z';
stand/libsa/stand.h
240
static __inline int isspace(int c)
stand/libsa/stand.h
242
return c == ' ' || (c >= 0x9 && c <= 0xd);
stand/libsa/stand.h
245
static __inline int isdigit(int c)
stand/libsa/stand.h
247
return c >= '0' && c <= '9';
stand/libsa/stand.h
250
static __inline int isxdigit(int c)
stand/libsa/stand.h
252
return isdigit(c) || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F');
stand/libsa/stand.h
255
static __inline int isalpha(int c)
stand/libsa/stand.h
257
return isupper(c) || islower(c);
stand/libsa/stand.h
260
static __inline int isalnum(int c)
stand/libsa/stand.h
262
return isalpha(c) || isdigit(c);
stand/libsa/stand.h
265
static __inline int iscntrl(int c)
stand/libsa/stand.h
267
return (c >= 0 && c < ' ') || c == 127;
stand/libsa/stand.h
270
static __inline int isgraph(int c)
stand/libsa/stand.h
272
return c >= '!' && c <= '~';
stand/libsa/stand.h
275
static __inline int ispunct(int c)
stand/libsa/stand.h
277
return (c >= '!' && c <= '/') || (c >= ':' && c <= '@') ||
stand/libsa/stand.h
278
(c >= '[' && c <= '`') || (c >= '{' && c <= '~');
stand/libsa/stand.h
281
static __inline int isprint(int c)
stand/libsa/stand.h
283
return (c >= ' ') && (c <= '~');
stand/libsa/stand.h
286
static __inline int toupper(int c)
stand/libsa/stand.h
288
return islower(c) ? c - 'a' + 'A' : c;
stand/libsa/stand.h
291
static __inline int tolower(int c)
stand/libsa/stand.h
293
return isupper(c) ? c - 'A' + 'a' : c;
stand/libsa/stand.h
565
#define TSRAW(a, b, c) tslog(a, b, c)
stand/libsa/ufs.c
501
int c;
stand/libsa/ufs.c
593
while ((c = *cp) != '\0' && c != '/') {
stand/libsa/ufs.c
610
*cp = c;
stand/libsa/ufsread.c
55
#define cgbase(fs, c) ((ufs2_daddr_t)((fs)->fs_fpg * (c)))
stand/libsa/xlocale_private.h
31
#define isspace_l(c, l) isspace(c)
stand/libsa/zfs/nvlist.c
1588
char c;
stand/libsa/zfs/nvlist.c
1590
if (xdr_char(&xdr, &c))
stand/libsa/zfs/nvlist.c
1591
printf(" = 0x%x\n", c);
stand/libsa/zfs/nvlist.c
331
unsigned c = nelem;
stand/libsa/zfs/nvlist.c
333
if (!xdr_u_int(xdr, &c))
stand/libsa/zfs/spl/sys/zfs_context.h
30
void *memset(void *dest, int c, size_t len);
stand/libsa/zfs/zfsimpl.c
683
for (int c = 0; c < is->is_children; c++) {
stand/libsa/zfs/zfsimpl.c
684
indirect_child_t *ic = &is->is_child[c];
stand/powerpc/boot1.chrp/boot1.c
32
typedef int putc_func_t(char c, void *arg);
stand/powerpc/boot1.chrp/boot1.c
673
putchar(char c, void *arg)
stand/powerpc/boot1.chrp/boot1.c
677
if (c == '\n') {
stand/powerpc/boot1.chrp/boot1.c
681
buf = c;
stand/powerpc/boot1.chrp/boot1.c
69
static int putchar(char c, void *arg);
stand/powerpc/boot1.chrp/boot1.c
720
int c;
stand/powerpc/boot1.chrp/boot1.c
724
while ((c = *fmt++) != 0) {
stand/powerpc/boot1.chrp/boot1.c
725
if (c != '%') {
stand/powerpc/boot1.chrp/boot1.c
726
ret += putc(c, arg);
stand/powerpc/boot1.chrp/boot1.c
732
reswitch: c = *fmt++;
stand/powerpc/boot1.chrp/boot1.c
733
switch (c) {
stand/powerpc/boot1.chrp/boot1.c
74
static int __putc(char c, void *arg);
stand/powerpc/boot1.chrp/boot1.c
741
c = va_arg(ap, int);
stand/powerpc/boot1.chrp/boot1.c
742
ret += putc(c, arg);
stand/powerpc/boot1.chrp/boot1.c
76
static int __sputc(char c, void *arg);
stand/powerpc/boot1.chrp/boot1.c
809
pad = pad * 10 + c - '0';
stand/powerpc/boot1.chrp/boot1.c
819
__sputc(char c, void *arg)
stand/powerpc/boot1.chrp/boot1.c
825
sp->sp_buf[sp->sp_len++] = c;
stand/uboot/glue.c
143
int c;
stand/uboot/glue.c
145
if (!syscall(API_GETC, NULL, &c))
stand/uboot/glue.c
148
return (c);
stand/uboot/glue.c
163
ub_putc(const char c)
stand/uboot/glue.c
166
syscall(API_PUTC, NULL, &c);
stand/uboot/glue.c
77
int c;
stand/uboot/glue.c
84
while ((c = getopt (argc, argv, "a:")) != -1)
stand/uboot/glue.c
85
switch (c) {
stand/uboot/uboot_console.c
64
uboot_cons_putchar(int c)
stand/uboot/uboot_console.c
67
if (c == '\n')
stand/uboot/uboot_console.c
70
ub_putc(c);
stand/usb/tools/sysinit.c
168
int c;
stand/usb/tools/sysinit.c
172
while ((c = getopt(argc, argv, "k:s:i:o:Rh")) != -1) {
stand/usb/tools/sysinit.c
173
switch (c) {
stand/usb/tools/sysinit.c
231
for (c = 0; c != entries; c++)
stand/usb/tools/sysinit.c
232
start[c] = &((struct sysinit_data *)input_ptr)[c];
stand/usb/tools/sysinit.c
277
int c;
stand/usb/tools/sysinit.c
286
for (c = 0, sipp = start; sipp < stop; c++, sipp++) {
stand/usb/tools/sysinit.c
294
c, (*sipp)->b_debug_info, (*sipp)->b_file_name,
stand/usb/tools/sysinit.c
312
for (c = 0, sipp = start; sipp < stop; c++, sipp++) {
stand/usb/tools/sysinit.c
320
(*sipp)->b_global_name, (unsigned int)c);
stand/userboot/test/test.c
119
char c;
stand/userboot/test/test.c
178
while ((c = *cp) != '\0' && c != '/')
stand/userboot/test/test.c
180
if (c == '/')
stand/userboot/test/test.c
71
char c = ch;
stand/userboot/test/test.c
73
write(1, &c, 1);
stand/userboot/test/test.c
79
char c;
stand/userboot/test/test.c
81
if (read(0, &c, 1) == 1)
stand/userboot/test/test.c
82
return c;
stand/userboot/userboot/userboot_cons.c
108
userboot_cons_putchar(int c)
stand/userboot/userboot/userboot_cons.c
111
CALLBACK(putc, c);
sys/amd64/amd64/machdep.c
1885
void *memset_std(void *buf, int c, size_t len);
sys/amd64/amd64/machdep.c
1886
void *memset_erms(void *buf, int c, size_t len);
sys/amd64/amd64/machdep.c
1901
memset(void *buf, int c, size_t len)
sys/amd64/amd64/machdep.c
1904
return (memset_std(buf, c, len));
sys/amd64/amd64/mem.c
110
error = uiomove((void *)v, c, uio);
sys/amd64/amd64/mem.c
123
if (!kernacc((void *)v, c, prot)) {
sys/amd64/amd64/mem.c
148
error = uiomove((void *)vd, c, uio);
sys/amd64/amd64/mem.c
156
error = uiomove(p, c, uio);
sys/amd64/amd64/mem.c
84
u_int c;
sys/amd64/amd64/mem.c
99
c = ulmin(iov->iov_len, PAGE_SIZE - (u_int)(v & PAGE_MASK));
sys/amd64/amd64/minidump_machdep.c
148
c = cncheckc();
sys/amd64/amd64/minidump_machdep.c
149
if (c == 0x03)
sys/amd64/amd64/minidump_machdep.c
151
if (c != -1)
sys/amd64/amd64/minidump_machdep.c
88
int error, i, c;
sys/amd64/amd64/pmap.c
2172
#define SYSMAP(c, p, v, n) \
sys/amd64/amd64/pmap.c
2173
v = (c)va; va += ((n)*PAGE_SIZE); p = pte; pte += (n);
sys/amd64/include/counter.h
46
counter_u64_read_one(counter_u64_t c, int cpu)
sys/amd64/include/counter.h
49
MPASS(c != EARLY_COUNTER);
sys/amd64/include/counter.h
50
return (*zpcpu_get_cpu(c, cpu));
sys/amd64/include/counter.h
54
counter_u64_fetch_inline(uint64_t *c)
sys/amd64/include/counter.h
61
r += counter_u64_read_one(c, cpu);
sys/amd64/include/counter.h
69
counter_u64_t c;
sys/amd64/include/counter.h
71
c = arg;
sys/amd64/include/counter.h
72
MPASS(c != EARLY_COUNTER);
sys/amd64/include/counter.h
73
*(zpcpu_get(c)) = 0;
sys/amd64/include/counter.h
77
counter_u64_zero_inline(counter_u64_t c)
sys/amd64/include/counter.h
81
smp_no_rendezvous_barrier, c);
sys/amd64/include/counter.h
85
#define counter_u64_add_protected(c, i) counter_u64_add(c, i)
sys/amd64/include/counter.h
88
counter_u64_add(counter_u64_t c, int64_t inc)
sys/amd64/include/counter.h
91
KASSERT(IS_BSP() || c != EARLY_COUNTER, ("EARLY_COUNTER used on AP"));
sys/amd64/include/counter.h
92
zpcpu_add(c, inc);
sys/amd64/include/in_cksum.h
45
u_short in_pseudo(u_int sum, u_int b, u_int c);
sys/amd64/vmm/io/vatpit.c
108
vatpit_delta_ticks(struct vatpit *vatpit, struct channel *c)
sys/amd64/vmm/io/vatpit.c
114
bintime_sub(&delta, &c->now_bt);
sys/amd64/vmm/io/vatpit.c
125
struct channel *c;
sys/amd64/vmm/io/vatpit.c
129
c = &vatpit->channel[channel];
sys/amd64/vmm/io/vatpit.c
131
switch (c->mode) {
sys/amd64/vmm/io/vatpit.c
133
delta_ticks = vatpit_delta_ticks(vatpit, c);
sys/amd64/vmm/io/vatpit.c
134
out = (delta_ticks >= c->initial);
sys/amd64/vmm/io/vatpit.c
150
struct channel *c;
sys/amd64/vmm/io/vatpit.c
153
c = &vatpit->channel[arg->channel_num];
sys/amd64/vmm/io/vatpit.c
154
callout = &c->callout;
sys/amd64/vmm/io/vatpit.c
168
if (c->mode == TIMER_RATEGEN) {
sys/amd64/vmm/io/vatpit.c
183
struct channel *c;
sys/amd64/vmm/io/vatpit.c
187
c = &vatpit->channel[0];
sys/amd64/vmm/io/vatpit.c
188
if (c->initial != 0) {
sys/amd64/vmm/io/vatpit.c
190
delta.frac = vatpit->freq_bt.frac * c->initial;
sys/amd64/vmm/io/vatpit.c
191
bintime_add(&c->callout_bt, &delta);
sys/amd64/vmm/io/vatpit.c
200
if (bintime_cmp(&c->callout_bt, &now, <)) {
sys/amd64/vmm/io/vatpit.c
201
c->callout_bt = now;
sys/amd64/vmm/io/vatpit.c
202
bintime_add(&c->callout_bt, &delta);
sys/amd64/vmm/io/vatpit.c
205
callout_reset_sbt(&c->callout, bttosbt(c->callout_bt),
sys/amd64/vmm/io/vatpit.c
206
precision, vatpit_callout_handler, &c->callout_arg,
sys/amd64/vmm/io/vatpit.c
212
pit_update_counter(struct vatpit *vatpit, struct channel *c, bool latch)
sys/amd64/vmm/io/vatpit.c
218
if (latch && c->olbyte != 0)
sys/amd64/vmm/io/vatpit.c
221
if (c->initial == 0) {
sys/amd64/vmm/io/vatpit.c
230
c->initial = TIMER_DIV(PIT_8254_FREQ, 100);
sys/amd64/vmm/io/vatpit.c
231
binuptime(&c->now_bt);
sys/amd64/vmm/io/vatpit.c
232
c->status &= ~TIMER_STS_NULLCNT;
sys/amd64/vmm/io/vatpit.c
235
delta_ticks = vatpit_delta_ticks(vatpit, c);
sys/amd64/vmm/io/vatpit.c
236
lval = c->initial - delta_ticks % c->initial;
sys/amd64/vmm/io/vatpit.c
239
c->olbyte = 2;
sys/amd64/vmm/io/vatpit.c
240
c->ol[1] = lval; /* LSB */
sys/amd64/vmm/io/vatpit.c
241
c->ol[0] = lval >> 8; /* MSB */
sys/amd64/vmm/io/vatpit.c
250
struct channel *c;
sys/amd64/vmm/io/vatpit.c
252
c = &vatpit->channel[channel];
sys/amd64/vmm/io/vatpit.c
258
if (!(cmd & TIMER_RB_LCTR) && !c->olbyte) {
sys/amd64/vmm/io/vatpit.c
259
(void) pit_update_counter(vatpit, c, true);
sys/amd64/vmm/io/vatpit.c
262
if (!(cmd & TIMER_RB_LSTATUS) && !c->slatched) {
sys/amd64/vmm/io/vatpit.c
263
c->slatched = true;
sys/amd64/vmm/io/vatpit.c
269
if (c->mode == TIMER_INTTC && vatpit_get_out(vatpit, channel))
sys/amd64/vmm/io/vatpit.c
270
c->status |= TIMER_STS_OUT;
sys/amd64/vmm/io/vatpit.c
272
c->status &= ~TIMER_STS_OUT;
sys/amd64/vmm/io/vatpit.c
300
struct channel *c;
sys/amd64/vmm/io/vatpit.c
325
c = &vatpit->channel[sel >> 6];
sys/amd64/vmm/io/vatpit.c
327
pit_update_counter(vatpit, c, true);
sys/amd64/vmm/io/vatpit.c
329
c->mode = mode;
sys/amd64/vmm/io/vatpit.c
330
c->olbyte = 0; /* reset latch after reprogramming */
sys/amd64/vmm/io/vatpit.c
331
c->status |= TIMER_STS_NULLCNT;
sys/amd64/vmm/io/vatpit.c
341
struct channel *c;
sys/amd64/vmm/io/vatpit.c
368
c = &vatpit->channel[port - TIMER_CNTR0];
sys/amd64/vmm/io/vatpit.c
371
if (in && c->slatched) {
sys/amd64/vmm/io/vatpit.c
375
*eax = c->status;
sys/amd64/vmm/io/vatpit.c
376
c->slatched = false;
sys/amd64/vmm/io/vatpit.c
377
c->status = 0;
sys/amd64/vmm/io/vatpit.c
386
if (c->olbyte == 0) {
sys/amd64/vmm/io/vatpit.c
389
tmp = pit_update_counter(vatpit, c, false);
sys/amd64/vmm/io/vatpit.c
390
if (c->frbyte)
sys/amd64/vmm/io/vatpit.c
394
c->frbyte ^= 1;
sys/amd64/vmm/io/vatpit.c
396
*eax = c->ol[--c->olbyte];
sys/amd64/vmm/io/vatpit.c
398
c->cr[c->crbyte++] = *eax;
sys/amd64/vmm/io/vatpit.c
399
if (c->crbyte == 2) {
sys/amd64/vmm/io/vatpit.c
400
c->status &= ~TIMER_STS_NULLCNT;
sys/amd64/vmm/io/vatpit.c
401
c->frbyte = 0;
sys/amd64/vmm/io/vatpit.c
402
c->crbyte = 0;
sys/amd64/vmm/io/vatpit.c
403
c->initial = c->cr[0] | (uint16_t)c->cr[1] << 8;
sys/amd64/vmm/io/vatpit.c
404
binuptime(&c->now_bt);
sys/amd64/vmm/io/vatpit.c
407
c->callout_bt = c->now_bt;
sys/amd64/vmm/io/vatpit.c
410
if (c->initial == 0)
sys/amd64/vmm/io/vatpit.c
411
c->initial = 0xffff;
sys/arm/allwinner/a10_codec.c
807
struct pcm_channel *c, int dir)
sys/arm/allwinner/a10_codec.c
825
ch->channel = c;
sys/arm/allwinner/axp81x.c
1027
val *= c->batsense_step;
sys/arm/allwinner/axp81x.c
1036
val *= c->charge_step;
sys/arm/allwinner/axp81x.c
1045
val *= c->discharge_step;
sys/arm/allwinner/axp81x.c
1052
val *= c->maxcap_step;
sys/arm/allwinner/axp81x.c
1059
val *= c->coulomb_step;
sys/arm/allwinner/axp81x.c
969
const struct axp8xx_config *c;
sys/arm/allwinner/axp81x.c
975
c = sc->config;
sys/arm/arm/debug_monitor.c
163
DBG_WB_READ(c0, c ## m, op2, val); \
sys/arm/arm/debug_monitor.c
168
DBG_WB_WRITE(c0, c ## m, op2, val); \
sys/arm/arm/mem.c
120
c = (u_int)(PAGE_SIZE - ((int)iov->iov_base & PAGE_MASK));
sys/arm/arm/mem.c
121
c = min(c, (u_int)(PAGE_SIZE - o));
sys/arm/arm/mem.c
122
c = min(c, (u_int)iov->iov_len);
sys/arm/arm/mem.c
123
error = uiomove((caddr_t)&_tmppt[o], (int)c, uio);
sys/arm/arm/mem.c
129
c = iov->iov_len;
sys/arm/arm/mem.c
137
eaddr = round_page(uio->uio_offset + c);
sys/arm/arm/mem.c
142
if (!kernacc((caddr_t)(int)uio->uio_offset, c,
sys/arm/arm/mem.c
146
error = uiomove((caddr_t)(int)uio->uio_offset, (int)c, uio);
sys/arm/arm/mem.c
86
u_int c = 0, v;
sys/arm/arm/minidump_machdep.c
136
c = cncheckc();
sys/arm/arm/minidump_machdep.c
137
if (c == 0x03)
sys/arm/arm/minidump_machdep.c
139
if (c != -1)
sys/arm/arm/minidump_machdep.c
80
int error, i, c;
sys/arm/arm/pmap-v6.c
1203
#define SYSMAP(c, p, v, n) do { \
sys/arm/arm/pmap-v6.c
1204
v = (c)pmap_preboot_reserve_pages(n); \
sys/arm/broadcom/bcm2835/bcm2835_audio.c
747
bcmchan_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir)
sys/arm/broadcom/bcm2835/bcm2835_audio.c
757
ch->channel = c;
sys/arm/broadcom/bcm2835/bcm2835_fb.c
310
bcmrend_clear(scr_stat* scp, int c, int attr)
sys/arm/broadcom/bcm2835/bcm2835_fb.c
323
int i, c, a;
sys/arm/broadcom/bcm2835/bcm2835_fb.c
331
c = sc_vtb_getc(&scp->vtb, from);
sys/arm/broadcom/bcm2835/bcm2835_fb.c
333
vidd_putc(adp, from, c, (a >> 4) | ((a & 0xf) << 4));
sys/arm/broadcom/bcm2835/bcm2835_fb.c
560
u_char *data, int c, int count)
sys/arm/broadcom/bcm2835/bcm2835_fb.c
567
u_char *data, int c, int count)
sys/arm/broadcom/bcm2835/bcm2835_fb.c
759
bcmfb_putc(video_adapter_t *adp, vm_offset_t off, uint8_t c, uint8_t a)
sys/arm/broadcom/bcm2835/bcm2835_fb.c
774
p = sc->font + c*BCMFB_FONT_HEIGHT;
sys/arm/freescale/imx/imx6_ipu.c
243
#define DI_SYNC_COUNTER(c) ((c) + 1)
sys/arm/freescale/imx/imx6_machdep.c
363
imx6_early_putc(int c)
sys/arm/freescale/imx/imx6_machdep.c
371
*UART_TX_REG = c;
sys/arm/freescale/imx/imx6_ssi.c
284
struct pcm_channel *c, int dir)
sys/arm/freescale/imx/imx6_ssi.c
298
ch->channel = c;
sys/arm/freescale/imx/imx_console.c
104
ub_putc(unsigned char c)
sys/arm/freescale/imx/imx_console.c
107
if (c == '\n')
sys/arm/freescale/imx/imx_console.c
113
ub_setreg(IMX_TXD, c);
sys/arm/freescale/imx/imx_console.c
153
uart_cnputc(struct consdev *cp, int c)
sys/arm/freescale/imx/imx_console.c
156
ub_putc(c);
sys/arm/freescale/vybrid/vf_sai.c
246
struct pcm_channel *c, int dir)
sys/arm/freescale/vybrid/vf_sai.c
260
ch->channel = c;
sys/arm/freescale/vybrid/vf_uart.c
153
vf_uart_putc(struct uart_bas *bas, int c)
sys/arm/freescale/vybrid/vf_uart.c
159
uart_setreg(bas, UART_D, c);
sys/arm/freescale/vybrid/vf_uart.c
178
int c;
sys/arm/freescale/vybrid/vf_uart.c
185
c = uart_getreg(bas, UART_D);
sys/arm/freescale/vybrid/vf_uart.c
188
return (c & 0xff);
sys/arm/freescale/vybrid/vf_uart.c
441
int c;
sys/arm/freescale/vybrid/vf_uart.c
454
c = uart_getreg(bas, UART_D);
sys/arm/freescale/vybrid/vf_uart.c
455
uart_rx_put(sc, c);
sys/arm/include/_stdint.h
38
#define INT8_C(c) (c)
sys/arm/include/_stdint.h
39
#define INT16_C(c) (c)
sys/arm/include/_stdint.h
40
#define INT32_C(c) (c)
sys/arm/include/_stdint.h
41
#define INT64_C(c) (c ## LL)
sys/arm/include/_stdint.h
43
#define UINT8_C(c) (c)
sys/arm/include/_stdint.h
44
#define UINT16_C(c) (c)
sys/arm/include/_stdint.h
45
#define UINT32_C(c) (c ## U)
sys/arm/include/_stdint.h
46
#define UINT64_C(c) (c ## ULL)
sys/arm/include/_stdint.h
48
#define INTMAX_C(c) INT64_C(c)
sys/arm/include/_stdint.h
49
#define UINTMAX_C(c) UINT64_C(c)
sys/arm/include/asm.h
175
# define RETc(c) bx##c lr
sys/arm/include/bus.h
261
#define __bs_nonsingle(type, sz, t, h, o, a, c) \
sys/arm/include/bus.h
262
(*(t)->__bs_opname(type,sz))((t), h, o, a, c)
sys/arm/include/bus.h
263
#define __bs_set(type, sz, t, h, o, v, c) \
sys/arm/include/bus.h
264
(*(t)->__bs_opname(type,sz))((t), h, o, v, c)
sys/arm/include/bus.h
266
(*(t)->__bs_opname(c,sz))((t), h1, o1, h2, o2, cnt)
sys/arm/include/bus.h
273
#define __bs_nonsingle_s(type, sz, t, h, o, a, c) \
sys/arm/include/bus.h
274
(*(t)->__bs_opname_s(type,sz))((t), h, o, a, c)
sys/arm/include/bus.h
301
#define bus_space_map(t, a, s, c, hp) \
sys/arm/include/bus.h
302
(*(t)->bs_map)((t), (a), (s), (c), (hp))
sys/arm/include/bus.h
311
#define bus_space_alloc(t, rs, re, s, a, b, c, ap, hp) \
sys/arm/include/bus.h
313
(c), (ap), (hp))
sys/arm/include/bus.h
342
#define bus_space_read_multi_1(t, h, o, a, c) \
sys/arm/include/bus.h
343
__bs_nonsingle(rm,1,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
344
#define bus_space_read_multi_2(t, h, o, a, c) \
sys/arm/include/bus.h
345
__bs_nonsingle(rm,2,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
346
#define bus_space_read_multi_4(t, h, o, a, c) \
sys/arm/include/bus.h
347
__bs_nonsingle(rm,4,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
348
#define bus_space_read_multi_8(t, h, o, a, c) \
sys/arm/include/bus.h
349
__bs_nonsingle(rm,8,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
351
#define bus_space_read_multi_stream_1(t, h, o, a, c) \
sys/arm/include/bus.h
352
__bs_nonsingle_s(rm,1,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
353
#define bus_space_read_multi_stream_2(t, h, o, a, c) \
sys/arm/include/bus.h
354
__bs_nonsingle_s(rm,2,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
355
#define bus_space_read_multi_stream_4(t, h, o, a, c) \
sys/arm/include/bus.h
356
__bs_nonsingle_s(rm,4,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
357
#define bus_space_read_multi_stream_8(t, h, o, a, c) \
sys/arm/include/bus.h
358
__bs_nonsingle_s(rm,8,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
363
#define bus_space_read_region_1(t, h, o, a, c) \
sys/arm/include/bus.h
364
__bs_nonsingle(rr,1,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
365
#define bus_space_read_region_2(t, h, o, a, c) \
sys/arm/include/bus.h
366
__bs_nonsingle(rr,2,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
367
#define bus_space_read_region_4(t, h, o, a, c) \
sys/arm/include/bus.h
368
__bs_nonsingle(rr,4,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
369
#define bus_space_read_region_8(t, h, o, a, c) \
sys/arm/include/bus.h
370
__bs_nonsingle(rr,8,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
372
#define bus_space_read_region_stream_1(t, h, o, a, c) \
sys/arm/include/bus.h
373
__bs_nonsingle_s(rr,1,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
374
#define bus_space_read_region_stream_2(t, h, o, a, c) \
sys/arm/include/bus.h
375
__bs_nonsingle_s(rr,2,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
376
#define bus_space_read_region_stream_4(t, h, o, a, c) \
sys/arm/include/bus.h
377
__bs_nonsingle_s(rr,4,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
378
#define bus_space_read_region_stream_8(t, h, o, a, c) \
sys/arm/include/bus.h
379
__bs_nonsingle_s(rr,8,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
397
#define bus_space_write_multi_1(t, h, o, a, c) \
sys/arm/include/bus.h
398
__bs_nonsingle(wm,1,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
399
#define bus_space_write_multi_2(t, h, o, a, c) \
sys/arm/include/bus.h
400
__bs_nonsingle(wm,2,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
401
#define bus_space_write_multi_4(t, h, o, a, c) \
sys/arm/include/bus.h
402
__bs_nonsingle(wm,4,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
403
#define bus_space_write_multi_8(t, h, o, a, c) \
sys/arm/include/bus.h
404
__bs_nonsingle(wm,8,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
406
#define bus_space_write_multi_stream_1(t, h, o, a, c) \
sys/arm/include/bus.h
407
__bs_nonsingle_s(wm,1,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
408
#define bus_space_write_multi_stream_2(t, h, o, a, c) \
sys/arm/include/bus.h
409
__bs_nonsingle_s(wm,2,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
410
#define bus_space_write_multi_stream_4(t, h, o, a, c) \
sys/arm/include/bus.h
411
__bs_nonsingle_s(wm,4,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
412
#define bus_space_write_multi_stream_8(t, h, o, a, c) \
sys/arm/include/bus.h
413
__bs_nonsingle_s(wm,8,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
418
#define bus_space_write_region_1(t, h, o, a, c) \
sys/arm/include/bus.h
419
__bs_nonsingle(wr,1,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
420
#define bus_space_write_region_2(t, h, o, a, c) \
sys/arm/include/bus.h
421
__bs_nonsingle(wr,2,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
422
#define bus_space_write_region_4(t, h, o, a, c) \
sys/arm/include/bus.h
423
__bs_nonsingle(wr,4,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
424
#define bus_space_write_region_8(t, h, o, a, c) \
sys/arm/include/bus.h
425
__bs_nonsingle(wr,8,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
427
#define bus_space_write_region_stream_1(t, h, o, a, c) \
sys/arm/include/bus.h
428
__bs_nonsingle_s(wr,1,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
429
#define bus_space_write_region_stream_2(t, h, o, a, c) \
sys/arm/include/bus.h
430
__bs_nonsingle_s(wr,2,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
431
#define bus_space_write_region_stream_4(t, h, o, a, c) \
sys/arm/include/bus.h
432
__bs_nonsingle_s(wr,4,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
433
#define bus_space_write_region_stream_8(t, h, o, a, c) \
sys/arm/include/bus.h
434
__bs_nonsingle_s(wr,8,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
439
#define bus_space_set_multi_1(t, h, o, v, c) \
sys/arm/include/bus.h
440
__bs_set(sm,1,(t),(h),(o),(v),(c))
sys/arm/include/bus.h
441
#define bus_space_set_multi_2(t, h, o, v, c) \
sys/arm/include/bus.h
442
__bs_set(sm,2,(t),(h),(o),(v),(c))
sys/arm/include/bus.h
443
#define bus_space_set_multi_4(t, h, o, v, c) \
sys/arm/include/bus.h
444
__bs_set(sm,4,(t),(h),(o),(v),(c))
sys/arm/include/bus.h
445
#define bus_space_set_multi_8(t, h, o, v, c) \
sys/arm/include/bus.h
446
__bs_set(sm,8,(t),(h),(o),(v),(c))
sys/arm/include/bus.h
451
#define bus_space_set_region_1(t, h, o, v, c) \
sys/arm/include/bus.h
452
__bs_set(sr,1,(t),(h),(o),(v),(c))
sys/arm/include/bus.h
453
#define bus_space_set_region_2(t, h, o, v, c) \
sys/arm/include/bus.h
454
__bs_set(sr,2,(t),(h),(o),(v),(c))
sys/arm/include/bus.h
455
#define bus_space_set_region_4(t, h, o, v, c) \
sys/arm/include/bus.h
456
__bs_set(sr,4,(t),(h),(o),(v),(c))
sys/arm/include/bus.h
457
#define bus_space_set_region_8(t, h, o, v, c) \
sys/arm/include/bus.h
458
__bs_set(sr,8,(t),(h),(o),(v),(c))
sys/arm/include/bus.h
463
#define bus_space_copy_region_1(t, h1, o1, h2, o2, c) \
sys/arm/include/bus.h
464
__bs_copy(1, t, h1, o1, h2, o2, c)
sys/arm/include/bus.h
465
#define bus_space_copy_region_2(t, h1, o1, h2, o2, c) \
sys/arm/include/bus.h
466
__bs_copy(2, t, h1, o1, h2, o2, c)
sys/arm/include/bus.h
467
#define bus_space_copy_region_4(t, h1, o1, h2, o2, c) \
sys/arm/include/bus.h
468
__bs_copy(4, t, h1, o1, h2, o2, c)
sys/arm/include/bus.h
469
#define bus_space_copy_region_8(t, h1, o1, h2, o2, c) \
sys/arm/include/bus.h
470
__bs_copy(8, t, h1, o1, h2, o2, c)
sys/arm/include/counter.h
70
counter_u64_zero_inline(counter_u64_t c)
sys/arm/include/counter.h
74
smp_no_rendezvous_barrier, c);
sys/arm/include/counter.h
78
#define counter_u64_add_protected(c, inc) counter_u64_add(c, inc)
sys/arm/include/counter.h
81
counter_u64_add(counter_u64_t c, int64_t inc)
sys/arm/include/counter.h
84
atomic_add_64((uint64_t *)zpcpu_get(c), inc);
sys/arm/include/in_cksum.h
51
in_pseudo(u_int sum, u_int b, u_int c)
sys/arm/include/in_cksum.h
57
: "r" (b), "r" (c));
sys/arm/mv/gpio.c
620
struct callout *c;
sys/arm/mv/gpio.c
627
c = sc->debounce_callouts[pin];
sys/arm/mv/gpio.c
628
if (c == NULL)
sys/arm/mv/gpio.c
631
if (callout_active(c))
sys/arm/mv/gpio.c
632
callout_deactivate(c);
sys/arm/mv/gpio.c
634
callout_stop(c);
sys/arm/mv/gpio.c
642
struct callout *c;
sys/arm/mv/gpio.c
647
c = sc->debounce_callouts[pin];
sys/arm/mv/gpio.c
648
if (c == NULL) {
sys/arm/mv/gpio.c
649
c = (struct callout *)malloc(sizeof(struct callout),
sys/arm/mv/gpio.c
651
sc->debounce_callouts[pin] = c;
sys/arm/mv/gpio.c
652
if (c == NULL)
sys/arm/mv/gpio.c
654
callout_init(c, 1);
sys/arm/mv/gpio.c
689
struct callout *c;
sys/arm/mv/gpio.c
697
c = sc->debounce_callouts[pin];
sys/arm/mv/gpio.c
698
if (c == NULL) {
sys/arm/mv/gpio.c
703
if (callout_pending(c) || callout_active(c)) {
sys/arm/mv/gpio.c
717
callout_reset(c, DEBOUNCE_CHECK_TICKS, mv_gpio_debounce, sd);
sys/arm/mv/mv_common.c
1025
int i, c;
sys/arm/mv/mv_common.c
1027
c = 0;
sys/arm/mv/mv_common.c
1030
c++;
sys/arm/mv/mv_common.c
1032
if (c > max) {
sys/arm/mv/mv_common.c
1034
"%d, available windows: %d\n", c, max);
sys/arm/nvidia/tegra124/tegra124_machdep.c
125
tegra124_early_putc(int c)
sys/arm/nvidia/tegra124/tegra124_machdep.c
133
*UART_TX_REG = c;
sys/arm/qualcomm/ipq4018_machdep.c
155
qca_msm_early_putc(int c)
sys/arm/qualcomm/ipq4018_machdep.c
212
*UART_DM_TF0 = c;
sys/arm/qualcomm/qcom_scm_legacy_defs.h
43
#define QCOM_SCM_LEGACY_SMC_FNID(s, c) (((s) << 10) | ((c) & 0x3ff))
sys/arm/rockchip/rk32xx_machdep.c
106
*UART_TX_REG = c;
sys/arm/rockchip/rk32xx_machdep.c
98
rk32xx_early_putc(int c)
sys/arm/ti/am335x/am335x_lcd_syscons.c
227
am335x_rend_clear(scr_stat* scp, int c, int attr)
sys/arm/ti/am335x/am335x_lcd_syscons.c
240
int i, c, a;
sys/arm/ti/am335x/am335x_lcd_syscons.c
248
c = sc_vtb_getc(&scp->vtb, from);
sys/arm/ti/am335x/am335x_lcd_syscons.c
250
vidd_putc(adp, from, c, (a >> 4) | ((a & 0xf) << 4));
sys/arm/ti/am335x/am335x_lcd_syscons.c
471
u_char *data, int c, int count)
sys/arm/ti/am335x/am335x_lcd_syscons.c
478
u_char *data, int c, int count)
sys/arm/ti/am335x/am335x_lcd_syscons.c
669
am335x_syscons_putc(video_adapter_t *adp, vm_offset_t off, uint8_t c, uint8_t a)
sys/arm/ti/am335x/am335x_lcd_syscons.c
687
p = sc->font + c*AM335X_FONT_HEIGHT;
sys/arm/ti/ti_edma3.c
90
#define TI_EDMA3CC_DMAQNUM_SET(c,q) ((0x7 & (q)) << (((c) % 8) * 4))
sys/arm/ti/ti_edma3.c
91
#define TI_EDMA3CC_DMAQNUM_CLR(c) (~(0x7 << (((c) % 8) * 4)))
sys/arm/ti/ti_edma3.c
92
#define TI_EDMA3CC_QDMAQNUM_SET(c,q) ((0x7 & (q)) << ((c) * 4))
sys/arm/ti/ti_edma3.c
93
#define TI_EDMA3CC_QDMAQNUM_CLR(c) (~(0x7 << ((c) * 4)))
sys/arm/xilinx/uart_dev_cdnc.c
164
#define SIGCHG(c, i, s, d) \
sys/arm/xilinx/uart_dev_cdnc.c
165
if (c) { \
sys/arm/xilinx/uart_dev_cdnc.c
329
cdnc_uart_putc(struct uart_bas *bas, int c)
sys/arm/xilinx/uart_dev_cdnc.c
337
WR4(bas, CDNC_UART_FIFO, c);
sys/arm/xilinx/uart_dev_cdnc.c
361
int c;
sys/arm/xilinx/uart_dev_cdnc.c
372
c = RD4(bas, CDNC_UART_FIFO);
sys/arm/xilinx/uart_dev_cdnc.c
376
c &= 0xff;
sys/arm/xilinx/uart_dev_cdnc.c
377
return (c);
sys/arm/xilinx/uart_dev_cdnc.c
510
int c, c_status = 0;
sys/arm/xilinx/uart_dev_cdnc.c
527
c = RD4(bas, CDNC_UART_FIFO) & 0xff;
sys/arm/xilinx/uart_dev_cdnc.c
530
if (c == 0 && (c_status & UART_STAT_FRAMERR) != 0 &&
sys/arm/xilinx/uart_dev_cdnc.c
537
uart_rx_put(sc, c | c_status);
sys/arm64/apple/exynos_uart.c
278
exynos4210_putc(struct uart_bas *bas, int c)
sys/arm64/apple/exynos_uart.c
288
uart_setreg(bas, SSCOM_UTXH, c);
sys/arm64/arm64/machdep.c
1076
void *memset_std(void *buf, int c, size_t len);
sys/arm64/arm64/machdep.c
1077
void *memset_mops(void *buf, int c, size_t len);
sys/arm64/arm64/minidump_machdep.c
138
c = cncheckc();
sys/arm64/arm64/minidump_machdep.c
139
if (c == 0x03)
sys/arm64/arm64/minidump_machdep.c
141
if (c != -1)
sys/arm64/arm64/minidump_machdep.c
85
int error, c;
sys/arm64/include/_stdint.h
40
#define INT8_C(c) (c)
sys/arm64/include/_stdint.h
41
#define INT16_C(c) (c)
sys/arm64/include/_stdint.h
42
#define INT32_C(c) (c)
sys/arm64/include/_stdint.h
43
#define INT64_C(c) (c ## L)
sys/arm64/include/_stdint.h
45
#define UINT8_C(c) (c)
sys/arm64/include/_stdint.h
46
#define UINT16_C(c) (c)
sys/arm64/include/_stdint.h
47
#define UINT32_C(c) (c ## U)
sys/arm64/include/_stdint.h
48
#define UINT64_C(c) (c ## UL)
sys/arm64/include/_stdint.h
50
#define INTMAX_C(c) INT64_C(c)
sys/arm64/include/_stdint.h
51
#define UINTMAX_C(c) UINT64_C(c)
sys/arm64/include/bus.h
298
#define __bs_nonsingle(type, sz, t, h, o, a, c) \
sys/arm64/include/bus.h
299
(*(t)->__bs_opname(type,sz))((t)->bs_cookie, h, o, a, c)
sys/arm64/include/bus.h
300
#define __bs_set(type, sz, t, h, o, v, c) \
sys/arm64/include/bus.h
301
(*(t)->__bs_opname(type,sz))((t)->bs_cookie, h, o, v, c)
sys/arm64/include/bus.h
303
(*(t)->__bs_opname(c,sz))((t)->bs_cookie, h1, o1, h2, o2, cnt)
sys/arm64/include/bus.h
314
#define __bs_nonsingle_s(type, sz, t, h, o, a, c) \
sys/arm64/include/bus.h
315
(*(t)->__bs_opname_s(type,sz))((t)->bs_cookie, h, o, a, c)
sys/arm64/include/bus.h
320
#define bus_space_map(t, a, s, c, hp) \
sys/arm64/include/bus.h
321
(*(t)->bs_map)((t)->bs_cookie, (a), (s), (c), (hp))
sys/arm64/include/bus.h
330
#define bus_space_alloc(t, rs, re, s, a, b, c, ap, hp) \
sys/arm64/include/bus.h
332
(c), (ap), (hp))
sys/arm64/include/bus.h
358
#define bus_space_read_multi_1(t, h, o, a, c) \
sys/arm64/include/bus.h
359
__bs_nonsingle(rm,1,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
360
#define bus_space_read_multi_2(t, h, o, a, c) \
sys/arm64/include/bus.h
361
__bs_nonsingle(rm,2,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
362
#define bus_space_read_multi_4(t, h, o, a, c) \
sys/arm64/include/bus.h
363
__bs_nonsingle(rm,4,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
364
#define bus_space_read_multi_8(t, h, o, a, c) \
sys/arm64/include/bus.h
365
__bs_nonsingle(rm,8,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
367
#define bus_space_read_multi_stream_1(t, h, o, a, c) \
sys/arm64/include/bus.h
368
__bs_nonsingle_s(rm,1,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
369
#define bus_space_read_multi_stream_2(t, h, o, a, c) \
sys/arm64/include/bus.h
370
__bs_nonsingle_s(rm,2,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
371
#define bus_space_read_multi_stream_4(t, h, o, a, c) \
sys/arm64/include/bus.h
372
__bs_nonsingle_s(rm,4,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
373
#define bus_space_read_multi_stream_8(t, h, o, a, c) \
sys/arm64/include/bus.h
374
__bs_nonsingle_s(rm,8,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
379
#define bus_space_read_region_1(t, h, o, a, c) \
sys/arm64/include/bus.h
380
__bs_nonsingle(rr,1,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
381
#define bus_space_read_region_2(t, h, o, a, c) \
sys/arm64/include/bus.h
382
__bs_nonsingle(rr,2,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
383
#define bus_space_read_region_4(t, h, o, a, c) \
sys/arm64/include/bus.h
384
__bs_nonsingle(rr,4,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
385
#define bus_space_read_region_8(t, h, o, a, c) \
sys/arm64/include/bus.h
386
__bs_nonsingle(rr,8,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
388
#define bus_space_read_region_stream_1(t, h, o, a, c) \
sys/arm64/include/bus.h
389
__bs_nonsingle_s(rr,1,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
390
#define bus_space_read_region_stream_2(t, h, o, a, c) \
sys/arm64/include/bus.h
391
__bs_nonsingle_s(rr,2,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
392
#define bus_space_read_region_stream_4(t, h, o, a, c) \
sys/arm64/include/bus.h
393
__bs_nonsingle_s(rr,4,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
394
#define bus_space_read_region_stream_8(t, h, o, a, c) \
sys/arm64/include/bus.h
395
__bs_nonsingle_s(rr,8,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
413
#define bus_space_write_multi_1(t, h, o, a, c) \
sys/arm64/include/bus.h
414
__bs_nonsingle(wm,1,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
415
#define bus_space_write_multi_2(t, h, o, a, c) \
sys/arm64/include/bus.h
416
__bs_nonsingle(wm,2,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
417
#define bus_space_write_multi_4(t, h, o, a, c) \
sys/arm64/include/bus.h
418
__bs_nonsingle(wm,4,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
419
#define bus_space_write_multi_8(t, h, o, a, c) \
sys/arm64/include/bus.h
420
__bs_nonsingle(wm,8,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
422
#define bus_space_write_multi_stream_1(t, h, o, a, c) \
sys/arm64/include/bus.h
423
__bs_nonsingle_s(wm,1,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
424
#define bus_space_write_multi_stream_2(t, h, o, a, c) \
sys/arm64/include/bus.h
425
__bs_nonsingle_s(wm,2,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
426
#define bus_space_write_multi_stream_4(t, h, o, a, c) \
sys/arm64/include/bus.h
427
__bs_nonsingle_s(wm,4,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
428
#define bus_space_write_multi_stream_8(t, h, o, a, c) \
sys/arm64/include/bus.h
429
__bs_nonsingle_s(wm,8,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
434
#define bus_space_write_region_1(t, h, o, a, c) \
sys/arm64/include/bus.h
435
__bs_nonsingle(wr,1,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
436
#define bus_space_write_region_2(t, h, o, a, c) \
sys/arm64/include/bus.h
437
__bs_nonsingle(wr,2,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
438
#define bus_space_write_region_4(t, h, o, a, c) \
sys/arm64/include/bus.h
439
__bs_nonsingle(wr,4,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
440
#define bus_space_write_region_8(t, h, o, a, c) \
sys/arm64/include/bus.h
441
__bs_nonsingle(wr,8,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
443
#define bus_space_write_region_stream_1(t, h, o, a, c) \
sys/arm64/include/bus.h
444
__bs_nonsingle_s(wr,1,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
445
#define bus_space_write_region_stream_2(t, h, o, a, c) \
sys/arm64/include/bus.h
446
__bs_nonsingle_s(wr,2,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
447
#define bus_space_write_region_stream_4(t, h, o, a, c) \
sys/arm64/include/bus.h
448
__bs_nonsingle_s(wr,4,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
449
#define bus_space_write_region_stream_8(t, h, o, a, c) \
sys/arm64/include/bus.h
450
__bs_nonsingle_s(wr,8,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
455
#define bus_space_set_multi_1(t, h, o, v, c) \
sys/arm64/include/bus.h
456
__bs_set(sm,1,(t),(h),(o),(v),(c))
sys/arm64/include/bus.h
457
#define bus_space_set_multi_2(t, h, o, v, c) \
sys/arm64/include/bus.h
458
__bs_set(sm,2,(t),(h),(o),(v),(c))
sys/arm64/include/bus.h
459
#define bus_space_set_multi_4(t, h, o, v, c) \
sys/arm64/include/bus.h
460
__bs_set(sm,4,(t),(h),(o),(v),(c))
sys/arm64/include/bus.h
461
#define bus_space_set_multi_8(t, h, o, v, c) \
sys/arm64/include/bus.h
462
__bs_set(sm,8,(t),(h),(o),(v),(c))
sys/arm64/include/bus.h
464
#define bus_space_set_multi_stream_1(t, h, o, v, c) \
sys/arm64/include/bus.h
465
bus_space_set_multi_1((t), (h), (o), (v), (c))
sys/arm64/include/bus.h
466
#define bus_space_set_multi_stream_2(t, h, o, v, c) \
sys/arm64/include/bus.h
467
bus_space_set_multi_2((t), (h), (o), (v), (c))
sys/arm64/include/bus.h
468
#define bus_space_set_multi_stream_4(t, h, o, v, c) \
sys/arm64/include/bus.h
469
bus_space_set_multi_4((t), (h), (o), (v), (c))
sys/arm64/include/bus.h
470
#define bus_space_set_multi_stream_8(t, h, o, v, c) \
sys/arm64/include/bus.h
471
bus_space_set_multi_8((t), (h), (o), (v), (c))
sys/arm64/include/bus.h
476
#define bus_space_set_region_1(t, h, o, v, c) \
sys/arm64/include/bus.h
477
__bs_set(sr,1,(t),(h),(o),(v),(c))
sys/arm64/include/bus.h
478
#define bus_space_set_region_2(t, h, o, v, c) \
sys/arm64/include/bus.h
479
__bs_set(sr,2,(t),(h),(o),(v),(c))
sys/arm64/include/bus.h
480
#define bus_space_set_region_4(t, h, o, v, c) \
sys/arm64/include/bus.h
481
__bs_set(sr,4,(t),(h),(o),(v),(c))
sys/arm64/include/bus.h
482
#define bus_space_set_region_8(t, h, o, v, c) \
sys/arm64/include/bus.h
483
__bs_set(sr,8,(t),(h),(o),(v),(c))
sys/arm64/include/bus.h
485
#define bus_space_set_region_stream_1(t, h, o, v, c) \
sys/arm64/include/bus.h
486
bus_space_set_region_1((t), (h), (o), (v), (c))
sys/arm64/include/bus.h
487
#define bus_space_set_region_stream_2(t, h, o, v, c) \
sys/arm64/include/bus.h
488
bus_space_set_region_2((t), (h), (o), (v), (c))
sys/arm64/include/bus.h
489
#define bus_space_set_region_stream_4(t, h, o, v, c) \
sys/arm64/include/bus.h
490
bus_space_set_region_4((t), (h), (o), (v), (c))
sys/arm64/include/bus.h
491
#define bus_space_set_region_stream_8(t, h, o, v, c) \
sys/arm64/include/bus.h
492
bus_space_set_region_8((t), (h), (o), (v), (c))
sys/arm64/include/bus.h
497
#define bus_space_copy_region_1(t, h1, o1, h2, o2, c) \
sys/arm64/include/bus.h
498
__bs_copy(1, t, h1, o1, h2, o2, c)
sys/arm64/include/bus.h
499
#define bus_space_copy_region_2(t, h1, o1, h2, o2, c) \
sys/arm64/include/bus.h
500
__bs_copy(2, t, h1, o1, h2, o2, c)
sys/arm64/include/bus.h
501
#define bus_space_copy_region_4(t, h1, o1, h2, o2, c) \
sys/arm64/include/bus.h
502
__bs_copy(4, t, h1, o1, h2, o2, c)
sys/arm64/include/bus.h
503
#define bus_space_copy_region_8(t, h1, o1, h2, o2, c) \
sys/arm64/include/bus.h
504
__bs_copy(8, t, h1, o1, h2, o2, c)
sys/arm64/include/counter.h
72
counter_u64_zero_inline(counter_u64_t c)
sys/arm64/include/counter.h
76
smp_no_rendezvous_barrier, c);
sys/arm64/include/counter.h
80
#define counter_u64_add_protected(c, inc) counter_u64_add(c, inc)
sys/arm64/include/counter.h
83
counter_u64_add(counter_u64_t c, int64_t inc)
sys/arm64/include/counter.h
86
atomic_add_64((uint64_t *)zpcpu_get(c), inc);
sys/arm64/include/in_cksum.h
45
u_short in_pseudo(u_int sum, u_int b, u_int c);
sys/cam/ata/ata_da.c
1993
int c, lastcount = 0, off, ranges = 0;
sys/cam/ata/ata_da.c
2003
c = min(count, ATA_DSM_RANGE_MAX - lastcount);
sys/cam/ata/ata_da.c
2004
lastcount += c;
sys/cam/ata/ata_da.c
2009
count -= c;
sys/cam/ata/ata_da.c
2010
lba += c;
sys/cam/ata/ata_da.c
2011
lbas += c;
sys/cam/ata/ata_da.c
2015
c = min(count, ATA_DSM_RANGE_MAX);
sys/cam/ata/ata_da.c
2023
req->data[off + 6] = c & 0xff;
sys/cam/ata/ata_da.c
2024
req->data[off + 7] = (c >> 8) & 0xff;
sys/cam/ata/ata_da.c
2025
lba += c;
sys/cam/ata/ata_da.c
2026
lbas += c;
sys/cam/ata/ata_da.c
2027
count -= c;
sys/cam/ata/ata_da.c
2028
lastcount = c;
sys/cam/ctl/ctl.c
4410
u_char c;
sys/cam/ctl/ctl.c
4421
c = str[i];
sys/cam/ctl/ctl.c
4422
if (isdigit(c))
sys/cam/ctl/ctl.c
4423
c -= '0';
sys/cam/ctl/ctl.c
4424
else if (isalpha(c))
sys/cam/ctl/ctl.c
4425
c -= isupper(c) ? 'A' - 10 : 'a' - 10;
sys/cam/ctl/ctl.c
4428
if (c >= 16)
sys/cam/ctl/ctl.c
4431
buf[i / 2] |= (c << 4);
sys/cam/ctl/ctl.c
4433
buf[i / 2] |= c;
sys/cam/scsi/scsi_all.c
6354
unsigned char c;
sys/cam/scsi/scsi_all.c
6368
c = tmpstr[i];
sys/cam/scsi/scsi_all.c
6370
if (isdigit(c))
sys/cam/scsi/scsi_all.c
6371
c -= '0';
sys/cam/scsi/scsi_all.c
6372
else if (isalpha(c))
sys/cam/scsi/scsi_all.c
6373
c -= isupper(c) ? 'A' - 10 : 'a' - 10;
sys/cam/scsi/scsi_all.c
6391
if (c > 0xf) {
sys/cam/scsi/scsi_all.c
6402
rdma_id[j] |= c << cur_shift;
sys/cam/scsi/scsi_ch.c
1032
char c = voltag->vif[i];
sys/cam/scsi/scsi_ch.c
1033
if (c && c != ' ')
sys/cam/scsi/scsi_ch.c
1034
uvoltag->cv_volid[i] = c;
sys/cam/scsi/scsi_ch.c
626
#define PLURAL(c) (c) == 1 ? "" : "s"
sys/cam/scsi/scsi_da.c
4124
uint32_t c, lastcount = 0, ranges = 0;
sys/cam/scsi/scsi_da.c
4156
c = omin(count, UNMAP_RANGE_MAX - lastcount);
sys/cam/scsi/scsi_da.c
4157
lastlba += c;
sys/cam/scsi/scsi_da.c
4158
lastcount += c;
sys/cam/scsi/scsi_da.c
4160
count -= c;
sys/cam/scsi/scsi_da.c
4161
lba += c;
sys/cam/scsi/scsi_da.c
4162
totalcount += c;
sys/cam/scsi/scsi_da.c
4166
if ((c = lastcount % softc->unmap_gran) != 0) {
sys/cam/scsi/scsi_da.c
4167
if (lastcount <= c) {
sys/cam/scsi/scsi_da.c
4173
totalcount -= c;
sys/cam/scsi/scsi_da.c
4174
lastlba -= c;
sys/cam/scsi/scsi_da.c
4175
lastcount -= c;
sys/cam/scsi/scsi_da.c
4181
c = (lba - softc->unmap_gran_align) % softc->unmap_gran;
sys/cam/scsi/scsi_da.c
4182
if (c != 0) {
sys/cam/scsi/scsi_da.c
4183
c = softc->unmap_gran - c;
sys/cam/scsi/scsi_da.c
4184
if (count <= c) {
sys/cam/scsi/scsi_da.c
4187
lba += c;
sys/cam/scsi/scsi_da.c
4188
count -= c;
sys/cam/scsi/scsi_da.c
4194
c = omin(count, UNMAP_RANGE_MAX);
sys/cam/scsi/scsi_da.c
4195
if (totalcount + c > softc->unmap_max_lba ||
sys/cam/scsi/scsi_da.c
4200
totalcount + c, softc->unmap_max_lba,
sys/cam/scsi/scsi_da.c
4205
scsi_ulto4b(c, d[ranges].length);
sys/cam/scsi/scsi_da.c
4206
lba += c;
sys/cam/scsi/scsi_da.c
4207
totalcount += c;
sys/cam/scsi/scsi_da.c
4209
count -= c;
sys/cam/scsi/scsi_da.c
4211
lastcount = c;
sys/cam/scsi/scsi_da.c
4226
(c = lastcount % softc->unmap_gran) != 0) {
sys/cam/scsi/scsi_da.c
4227
if (lastcount <= c)
sys/cam/scsi/scsi_da.c
4230
scsi_ulto4b(lastcount - c, d[ranges - 1].length);
sys/cam/scsi/scsi_da.c
4262
uint32_t lastcount = 0, c, requestcount;
sys/cam/scsi/scsi_da.c
4276
c = omin(count, ATA_DSM_RANGE_MAX - lastcount);
sys/cam/scsi/scsi_da.c
4277
lastcount += c;
sys/cam/scsi/scsi_da.c
4281
count -= c;
sys/cam/scsi/scsi_da.c
4282
lba += c;
sys/cam/scsi/scsi_da.c
4286
c = omin(count, ATA_DSM_RANGE_MAX);
sys/cam/scsi/scsi_da.c
4295
buf[off + 6] = c & 0xff;
sys/cam/scsi/scsi_da.c
4296
buf[off + 7] = (c >> 8) & 0xff;
sys/cam/scsi/scsi_da.c
4297
lba += c;
sys/cam/scsi/scsi_da.c
4299
count -= c;
sys/cam/scsi/scsi_da.c
4300
lastcount = c;
sys/cam/scsi/scsi_enc_ses.c
1089
const char *c;
sys/cam/scsi/scsi_enc_ses.c
1133
for (i = 0, c = elmpriv->descr; i < elmpriv->descr_len;
sys/cam/scsi/scsi_enc_ses.c
1134
i++, c++) {
sys/cam/scsi/scsi_enc_ses.c
1135
if (!isprint(*c) || isspace(*c) || *c == '/')
sys/cam/scsi/scsi_enc_ses.c
1138
sbuf_putc(&sb, *c);
sys/cddl/boot/zfs/fletcher.c
68
uint64_t a, b, c, d;
sys/cddl/boot/zfs/fletcher.c
70
for (a = b = c = d = 0; ip < ipend; ip++) {
sys/cddl/boot/zfs/fletcher.c
73
c += b;
sys/cddl/boot/zfs/fletcher.c
74
d += c;
sys/cddl/boot/zfs/fletcher.c
77
ZIO_SET_CHECKSUM(zcp, a, b, c, d);
sys/cddl/boot/zfs/fletcher.c
86
uint64_t a, b, c, d;
sys/cddl/boot/zfs/fletcher.c
88
for (a = b = c = d = 0; ip < ipend; ip++) {
sys/cddl/boot/zfs/fletcher.c
91
c += b;
sys/cddl/boot/zfs/fletcher.c
92
d += c;
sys/cddl/boot/zfs/fletcher.c
95
ZIO_SET_CHECKSUM(zcp, a, b, c, d);
sys/cddl/boot/zfs/sha256.c
130
uint32_t a, b, c, d, e, f, g, h, t, T1, T2, W[64];
sys/cddl/boot/zfs/sha256.c
142
a = H[0]; b = H[1]; c = H[2]; d = H[3];
sys/cddl/boot/zfs/sha256.c
148
T2 = BIGSIGMA0_256(a) + Maj(a, b, c);
sys/cddl/boot/zfs/sha256.c
150
d = c; c = b; b = a; a = T1 + T2;
sys/cddl/boot/zfs/sha256.c
154
H[0] += a; H[1] += b; H[2] += c; H[3] += d;
sys/cddl/boot/zfs/sha256.c
161
uint64_t a, b, c, d, e, f, g, h, t, T1, T2, W[80];
sys/cddl/boot/zfs/sha256.c
176
a = H[0]; b = H[1]; c = H[2]; d = H[3];
sys/cddl/boot/zfs/sha256.c
182
T2 = BIGSIGMA0_512(a) + Maj(a, b, c);
sys/cddl/boot/zfs/sha256.c
184
d = c; c = b; b = a; a = T1 + T2;
sys/cddl/boot/zfs/sha256.c
188
H[0] += a; H[1] += b; H[2] += c; H[3] += d;
sys/cddl/boot/zfs/zfssubr.c
1010
c = used[i];
sys/cddl/boot/zfs/zfssubr.c
1011
ASSERT3U(c, <, rm->rm_cols);
sys/cddl/boot/zfs/zfssubr.c
1013
src = rm->rm_col[c].rc_data;
sys/cddl/boot/zfs/zfssubr.c
1014
ccount = rm->rm_col[c].rc_size;
sys/cddl/boot/zfs/zfssubr.c
1019
ASSERT3U(cc, !=, c);
sys/cddl/boot/zfs/zfssubr.c
1057
int n, i, c, t, tt;
sys/cddl/boot/zfs/zfssubr.c
1089
for (tt = 0, c = 0, i = 0; i < nmissing_rows; c++) {
sys/cddl/boot/zfs/zfssubr.c
1091
ASSERT(c < rm->rm_firstdatacol);
sys/cddl/boot/zfs/zfssubr.c
1096
if (c == tgts[tt]) {
sys/cddl/boot/zfs/zfssubr.c
1101
code |= 1 << c;
sys/cddl/boot/zfs/zfssubr.c
1103
parity_map[i] = c;
sys/cddl/boot/zfs/zfssubr.c
1130
for (tt = 0, c = rm->rm_firstdatacol; c < rm->rm_cols; c++) {
sys/cddl/boot/zfs/zfssubr.c
1132
c == missing_rows[tt] + rm->rm_firstdatacol) {
sys/cddl/boot/zfs/zfssubr.c
1138
used[i] = c;
sys/cddl/boot/zfs/zfssubr.c
1169
int i, c;
sys/cddl/boot/zfs/zfssubr.c
1183
for (i = 0, c = 0; c < rm->rm_cols; c++) {
sys/cddl/boot/zfs/zfssubr.c
1184
if (i < nt && c == t[i]) {
sys/cddl/boot/zfs/zfssubr.c
1185
tgts[ntgts++] = c;
sys/cddl/boot/zfs/zfssubr.c
1187
} else if (rm->rm_col[c].rc_error != 0) {
sys/cddl/boot/zfs/zfssubr.c
1188
tgts[ntgts++] = c;
sys/cddl/boot/zfs/zfssubr.c
1189
} else if (c >= rm->rm_firstdatacol) {
sys/cddl/boot/zfs/zfssubr.c
1215
uint64_t q, r, c, bc, col, acols, scols, coff, devidx, asize, tot;
sys/cddl/boot/zfs/zfssubr.c
1249
for (c = 0; c < scols; c++) {
sys/cddl/boot/zfs/zfssubr.c
1250
col = f + c;
sys/cddl/boot/zfs/zfssubr.c
1256
rm->rm_col[c].rc_devidx = col;
sys/cddl/boot/zfs/zfssubr.c
1257
rm->rm_col[c].rc_offset = coff;
sys/cddl/boot/zfs/zfssubr.c
1258
rm->rm_col[c].rc_data = NULL;
sys/cddl/boot/zfs/zfssubr.c
1259
rm->rm_col[c].rc_error = 0;
sys/cddl/boot/zfs/zfssubr.c
1260
rm->rm_col[c].rc_tried = 0;
sys/cddl/boot/zfs/zfssubr.c
1261
rm->rm_col[c].rc_skipped = 0;
sys/cddl/boot/zfs/zfssubr.c
1263
if (c >= acols)
sys/cddl/boot/zfs/zfssubr.c
1264
rm->rm_col[c].rc_size = 0;
sys/cddl/boot/zfs/zfssubr.c
1265
else if (c < bc)
sys/cddl/boot/zfs/zfssubr.c
1266
rm->rm_col[c].rc_size = (q + 1) << unit_shift;
sys/cddl/boot/zfs/zfssubr.c
1268
rm->rm_col[c].rc_size = q << unit_shift;
sys/cddl/boot/zfs/zfssubr.c
1270
asize += rm->rm_col[c].rc_size;
sys/cddl/boot/zfs/zfssubr.c
1279
for (c = 0; c < rm->rm_firstdatacol; c++) {
sys/cddl/boot/zfs/zfssubr.c
1280
rm->rm_col[c].rc_data = malloc(rm->rm_col[c].rc_size);
sys/cddl/boot/zfs/zfssubr.c
1281
if (rm->rm_col[c].rc_data == NULL) {
sys/cddl/boot/zfs/zfssubr.c
1282
c++;
sys/cddl/boot/zfs/zfssubr.c
1283
while (c != 0)
sys/cddl/boot/zfs/zfssubr.c
1284
free(rm->rm_col[--c].rc_data);
sys/cddl/boot/zfs/zfssubr.c
1290
rm->rm_col[c].rc_data = data;
sys/cddl/boot/zfs/zfssubr.c
1292
for (c = c + 1; c < acols; c++)
sys/cddl/boot/zfs/zfssubr.c
1293
rm->rm_col[c].rc_data = (char *)rm->rm_col[c - 1].rc_data +
sys/cddl/boot/zfs/zfssubr.c
1294
rm->rm_col[c - 1].rc_size;
sys/cddl/boot/zfs/zfssubr.c
1337
int c;
sys/cddl/boot/zfs/zfssubr.c
1339
for (c = rm->rm_firstdatacol - 1; c >= 0; c--)
sys/cddl/boot/zfs/zfssubr.c
1340
free(rm->rm_col[c].rc_data);
sys/cddl/boot/zfs/zfssubr.c
1379
int c, ret = 0;
sys/cddl/boot/zfs/zfssubr.c
1382
for (c = 0; c < rm->rm_firstdatacol; c++) {
sys/cddl/boot/zfs/zfssubr.c
1383
rc = &rm->rm_col[c];
sys/cddl/boot/zfs/zfssubr.c
1386
orig[c] = malloc(rc->rc_size);
sys/cddl/boot/zfs/zfssubr.c
1387
if (orig[c] != NULL) {
sys/cddl/boot/zfs/zfssubr.c
1388
bcopy(rc->rc_data, orig[c], rc->rc_size);
sys/cddl/boot/zfs/zfssubr.c
1396
for (c = rm->rm_firstdatacol - 1; c >= 0; c--) {
sys/cddl/boot/zfs/zfssubr.c
1397
rc = &rm->rm_col[c];
sys/cddl/boot/zfs/zfssubr.c
1400
if (orig[c] == NULL ||
sys/cddl/boot/zfs/zfssubr.c
1401
bcmp(orig[c], rc->rc_data, rc->rc_size) != 0) {
sys/cddl/boot/zfs/zfssubr.c
1405
free(orig[c]);
sys/cddl/boot/zfs/zfssubr.c
1427
int current, next, i, c, n;
sys/cddl/boot/zfs/zfssubr.c
1447
for (c = 0, i = 0; i < n; i++) {
sys/cddl/boot/zfs/zfssubr.c
1449
c < rm->rm_firstdatacol) {
sys/cddl/boot/zfs/zfssubr.c
1450
c = rm->rm_firstdatacol;
sys/cddl/boot/zfs/zfssubr.c
1453
while (rm->rm_col[c].rc_error != 0) {
sys/cddl/boot/zfs/zfssubr.c
1454
c++;
sys/cddl/boot/zfs/zfssubr.c
1455
ASSERT3S(c, <, rm->rm_cols);
sys/cddl/boot/zfs/zfssubr.c
1458
tgts[i] = c++;
sys/cddl/boot/zfs/zfssubr.c
1492
c = tgts[i];
sys/cddl/boot/zfs/zfssubr.c
1493
ASSERT3S(c, >=, 0);
sys/cddl/boot/zfs/zfssubr.c
1494
ASSERT3S(c, <, rm->rm_cols);
sys/cddl/boot/zfs/zfssubr.c
1495
rc = &rm->rm_col[c];
sys/cddl/boot/zfs/zfssubr.c
1506
c = tgts[i];
sys/cddl/boot/zfs/zfssubr.c
1507
rc = &rm->rm_col[c];
sys/cddl/boot/zfs/zfssubr.c
1520
c = tgts[i];
sys/cddl/boot/zfs/zfssubr.c
1521
rc = &rm->rm_col[c];
sys/cddl/boot/zfs/zfssubr.c
1547
for (c = tgts[current - 1] + 1;
sys/cddl/boot/zfs/zfssubr.c
1548
rm->rm_col[c].rc_error != 0; c++)
sys/cddl/boot/zfs/zfssubr.c
1551
tgts[current] = c;
sys/cddl/boot/zfs/zfssubr.c
1574
int c, error;
sys/cddl/boot/zfs/zfssubr.c
1596
for (c = rm->rm_cols - 1; c >= 0; c--) {
sys/cddl/boot/zfs/zfssubr.c
1597
rc = &rm->rm_col[c];
sys/cddl/boot/zfs/zfssubr.c
1600
if (c >= rm->rm_firstdatacol)
sys/cddl/boot/zfs/zfssubr.c
1611
if (c >= rm->rm_firstdatacol)
sys/cddl/boot/zfs/zfssubr.c
1620
if (c >= rm->rm_firstdatacol || rm->rm_missingdata > 0) {
sys/cddl/boot/zfs/zfssubr.c
1638
for (c = 0; c < rm->rm_cols; c++) {
sys/cddl/boot/zfs/zfssubr.c
1639
rc = &rm->rm_col[c];
sys/cddl/boot/zfs/zfssubr.c
1644
if (c < rm->rm_firstdatacol)
sys/cddl/boot/zfs/zfssubr.c
1653
} else if (c < rm->rm_firstdatacol && !rc->rc_tried) {
sys/cddl/boot/zfs/zfssubr.c
1713
for (c = rm->rm_firstdatacol; c < rm->rm_cols; c++) {
sys/cddl/boot/zfs/zfssubr.c
1714
rc = &rm->rm_col[c];
sys/cddl/boot/zfs/zfssubr.c
1717
tgts[n++] = c;
sys/cddl/boot/zfs/zfssubr.c
1765
for (c = 0; c < rm->rm_cols; c++) {
sys/cddl/boot/zfs/zfssubr.c
1766
rc = &rm->rm_col[c];
sys/cddl/boot/zfs/zfssubr.c
369
uint8_t c;
sys/cddl/boot/zfs/zfssubr.c
374
for (cp = (const uint8_t *)name; (c = *cp) != '\0'; cp++)
sys/cddl/boot/zfs/zfssubr.c
375
crc = (crc >> 8) ^ zfs_crc64_table[(crc ^ c) & 0xFF];
sys/cddl/boot/zfs/zfssubr.c
538
int c;
sys/cddl/boot/zfs/zfssubr.c
542
for (c = rm->rm_firstdatacol; c < rm->rm_cols; c++) {
sys/cddl/boot/zfs/zfssubr.c
543
src = rm->rm_col[c].rc_data;
sys/cddl/boot/zfs/zfssubr.c
545
ccount = rm->rm_col[c].rc_size / sizeof (src[0]);
sys/cddl/boot/zfs/zfssubr.c
547
if (c == rm->rm_firstdatacol) {
sys/cddl/boot/zfs/zfssubr.c
565
int c;
sys/cddl/boot/zfs/zfssubr.c
571
for (c = rm->rm_firstdatacol; c < rm->rm_cols; c++) {
sys/cddl/boot/zfs/zfssubr.c
572
src = rm->rm_col[c].rc_data;
sys/cddl/boot/zfs/zfssubr.c
576
ccnt = rm->rm_col[c].rc_size / sizeof (src[0]);
sys/cddl/boot/zfs/zfssubr.c
578
if (c == rm->rm_firstdatacol) {
sys/cddl/boot/zfs/zfssubr.c
617
int c;
sys/cddl/boot/zfs/zfssubr.c
625
for (c = rm->rm_firstdatacol; c < rm->rm_cols; c++) {
sys/cddl/boot/zfs/zfssubr.c
626
src = rm->rm_col[c].rc_data;
sys/cddl/boot/zfs/zfssubr.c
631
ccnt = rm->rm_col[c].rc_size / sizeof (src[0]);
sys/cddl/boot/zfs/zfssubr.c
633
if (c == rm->rm_firstdatacol) {
sys/cddl/boot/zfs/zfssubr.c
978
int i, j, x, cc, c;
sys/cddl/compat/opensolaris/kern/opensolaris_string.c
31
#define IS_DIGIT(c) ((c) >= '0' && (c) <= '9')
sys/cddl/compat/opensolaris/kern/opensolaris_string.c
33
#define IS_ALPHA(c) \
sys/cddl/compat/opensolaris/kern/opensolaris_string.c
34
(((c) >= 'a' && (c) <= 'z') || ((c) >= 'A' && (c) <= 'Z'))
sys/cddl/compat/opensolaris/kern/opensolaris_string.c
59
char c;
sys/cddl/compat/opensolaris/kern/opensolaris_string.c
62
if ((c = *s) == 0)
sys/cddl/compat/opensolaris/kern/opensolaris_string.c
65
if (!IS_ALPHA(c) && c != '_')
sys/cddl/compat/opensolaris/kern/opensolaris_string.c
68
while (s < end && ((c = *(++s)) != 0)) {
sys/cddl/compat/opensolaris/kern/opensolaris_string.c
69
if (!IS_ALPHA(c) && !IS_DIGIT(c) && c != '_')
sys/cddl/dev/dtrace/dtrace_debug.c
153
dtrace_debug__putc(int cpu, char c)
sys/cddl/dev/dtrace/dtrace_debug.c
158
*d->next++ = c;
sys/cddl/dev/dtrace/dtrace_debug.c
173
dtrace_debug_putc(char c)
sys/cddl/dev/dtrace/dtrace_debug.c
180
dtrace_debug__putc(cpu, c);
sys/cddl/dev/dtrace/dtrace_debug.c
212
char *p, c;
sys/cddl/dev/dtrace/dtrace_debug.c
217
c = hex2ascii(num % base);
sys/cddl/dev/dtrace/dtrace_debug.c
218
*++p = upper ? toupper(c) : c;
sys/cddl/dev/dtrace/dtrace_hacks.c
6
priv_policy_only(const cred_t *a, int b, boolean_t c)
sys/cddl/dev/dtrace/dtrace_test.c
62
fbttest(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j)
sys/cddl/dev/dtrace/dtrace_test.c
65
a, b, c, d, e, f, g, h, i, j);
sys/compat/linux/linux_dtrace.h
46
#define _LIN_SDT_PROBE_DECLARE(a, b, c, d) SDT_PROBE_DECLARE(a, b, c, d)
sys/compat/linux/linux_dtrace.h
47
#define LIN_SDT_PROBE_DECLARE(a, b, c) _LIN_SDT_PROBE_DECLARE( \
sys/compat/linux/linux_dtrace.h
48
LINUX_DTRACE, a, b, c)
sys/compat/linux/linux_dtrace.h
50
#define _LIN_SDT_PROBE_DEFINE0(a, b, c, d) SDT_PROBE_DEFINE(a, \
sys/compat/linux/linux_dtrace.h
51
b, c, d)
sys/compat/linux/linux_dtrace.h
52
#define LIN_SDT_PROBE_DEFINE0(a, b, c) _LIN_SDT_PROBE_DEFINE0(\
sys/compat/linux/linux_dtrace.h
53
LINUX_DTRACE, a, b, c)
sys/compat/linux/linux_dtrace.h
54
#define _LIN_SDT_PROBE_DEFINE1(a, b, c, d, e) SDT_PROBE_DEFINE1(a, \
sys/compat/linux/linux_dtrace.h
55
b, c, d, e)
sys/compat/linux/linux_dtrace.h
56
#define LIN_SDT_PROBE_DEFINE1(a, b, c, d) _LIN_SDT_PROBE_DEFINE1(\
sys/compat/linux/linux_dtrace.h
57
LINUX_DTRACE, a, b, c, d)
sys/compat/linux/linux_dtrace.h
58
#define _LIN_SDT_PROBE_DEFINE2(a, b, c, d, e, f) SDT_PROBE_DEFINE2(a, \
sys/compat/linux/linux_dtrace.h
59
b, c, d, e, f)
sys/compat/linux/linux_dtrace.h
60
#define LIN_SDT_PROBE_DEFINE2(a, b, c, d, e) _LIN_SDT_PROBE_DEFINE2(\
sys/compat/linux/linux_dtrace.h
61
LINUX_DTRACE, a, b, c, d, e)
sys/compat/linux/linux_dtrace.h
62
#define _LIN_SDT_PROBE_DEFINE3(a, b, c, d, e, f, g) SDT_PROBE_DEFINE3(a, \
sys/compat/linux/linux_dtrace.h
63
b, c, d, e, f, g)
sys/compat/linux/linux_dtrace.h
64
#define LIN_SDT_PROBE_DEFINE3(a, b, c, d, e, f) _LIN_SDT_PROBE_DEFINE3(\
sys/compat/linux/linux_dtrace.h
65
LINUX_DTRACE, a, b, c, d, e, f)
sys/compat/linux/linux_dtrace.h
66
#define _LIN_SDT_PROBE_DEFINE4(a, b, c, d, e, f, g, h) SDT_PROBE_DEFINE4(a, \
sys/compat/linux/linux_dtrace.h
67
b, c, d, e, f, g, h)
sys/compat/linux/linux_dtrace.h
68
#define LIN_SDT_PROBE_DEFINE4(a, b, c, d, e, f, g) _LIN_SDT_PROBE_DEFINE4(\
sys/compat/linux/linux_dtrace.h
69
LINUX_DTRACE, a, b, c, d, e, f, g)
sys/compat/linux/linux_dtrace.h
70
#define _LIN_SDT_PROBE_DEFINE5(a, b, c, d, e, f, g, h, i) \
sys/compat/linux/linux_dtrace.h
71
SDT_PROBE_DEFINE5(a, b, c, d, e, f, g, h, i)
sys/compat/linux/linux_dtrace.h
72
#define LIN_SDT_PROBE_DEFINE5(a, b, c, d, e, f, g, h) _LIN_SDT_PROBE_DEFINE5(\
sys/compat/linux/linux_dtrace.h
73
LINUX_DTRACE, a, b, c, d, e, f, g, h)
sys/compat/linux/linux_dtrace.h
75
#define LIN_SDT_PROBE0(a, b, c) SDT_PROBE0(LINUX_DTRACE, a, b, \
sys/compat/linux/linux_dtrace.h
76
c)
sys/compat/linux/linux_dtrace.h
77
#define LIN_SDT_PROBE1(a, b, c, d) SDT_PROBE1(LINUX_DTRACE, a, b, \
sys/compat/linux/linux_dtrace.h
78
c, d)
sys/compat/linux/linux_dtrace.h
79
#define LIN_SDT_PROBE2(a, b, c, d, e) SDT_PROBE2(LINUX_DTRACE, a, b, \
sys/compat/linux/linux_dtrace.h
80
c, d, e)
sys/compat/linux/linux_dtrace.h
81
#define LIN_SDT_PROBE3(a, b, c, d, e, f) SDT_PROBE3(LINUX_DTRACE, a, b, \
sys/compat/linux/linux_dtrace.h
82
c, d, e, f)
sys/compat/linux/linux_dtrace.h
83
#define LIN_SDT_PROBE4(a, b, c, d, e, f, g) SDT_PROBE4(LINUX_DTRACE, a, b, \
sys/compat/linux/linux_dtrace.h
84
c, d, e, f, g)
sys/compat/linux/linux_dtrace.h
85
#define _LIN_SDT_PROBE5(a, b, c, d, e, f, g, h, i) SDT_PROBE5(a, b, c, d, \
sys/compat/linux/linux_dtrace.h
87
#define LIN_SDT_PROBE5(a, b, c, d, e, f, g, h) _LIN_SDT_PROBE5(LINUX_DTRACE, \
sys/compat/linux/linux_dtrace.h
88
a, b, c, d, e, f, g, h)
sys/compat/linux/linux_ioctl.c
1763
#define SETDIR(c) (((c) & ~IOC_DIRMASK) | dirbits[args->cmd >> 30])
sys/compat/linux/linux_ioctl.c
800
int c;
sys/compat/linux/linux_ioctl.c
807
c = (args->arg == LINUX_TCIOFF) ? VSTOP : VSTART;
sys/compat/linux/linux_ioctl.c
808
c = bios.c_cc[c];
sys/compat/linux/linux_ioctl.c
809
if (c != _POSIX_VDISABLE) {
sys/compat/linux/linux_ioctl.c
811
wr.buf = &c;
sys/compat/linux/linux_ioctl.c
812
wr.nbyte = sizeof(c);
sys/compat/linux/linux_mib.h
51
#define LINUX_KERNVER(a,b,c) (((a) << 16) + ((b) << 8) + (c))
sys/compat/linux/linux_videodev2_compat.h
42
struct v4l2_rect c;
sys/compat/linuxkpi/common/include/asm/atomic-long.h
105
long c = atomic_long_read(v);
sys/compat/linuxkpi/common/include/asm/atomic-long.h
108
if (unlikely(c == u))
sys/compat/linuxkpi/common/include/asm/atomic-long.h
110
if (likely(atomic_fcmpset_long(&v->counter, &c, c + a)))
sys/compat/linuxkpi/common/include/asm/atomic-long.h
113
return (c != u);
sys/compat/linuxkpi/common/include/asm/atomic-long.h
119
long c = atomic_long_read(v);
sys/compat/linuxkpi/common/include/asm/atomic-long.h
122
if (unlikely(c == u))
sys/compat/linuxkpi/common/include/asm/atomic-long.h
124
if (likely(atomic_fcmpset_long(&v->counter, &c, c + a)))
sys/compat/linuxkpi/common/include/asm/atomic-long.h
127
return (c);
sys/compat/linuxkpi/common/include/asm/atomic.h
108
int c = atomic_read(v);
sys/compat/linuxkpi/common/include/asm/atomic.h
111
if (unlikely(c == u))
sys/compat/linuxkpi/common/include/asm/atomic.h
113
if (likely(atomic_fcmpset_int(&v->counter, &c, c + a)))
sys/compat/linuxkpi/common/include/asm/atomic.h
116
return (c != u);
sys/compat/linuxkpi/common/include/asm/atomic.h
122
int c = atomic_read(v);
sys/compat/linuxkpi/common/include/asm/atomic.h
125
if (unlikely(c == u))
sys/compat/linuxkpi/common/include/asm/atomic.h
127
if (likely(atomic_fcmpset_int(&v->counter, &c, c + a)))
sys/compat/linuxkpi/common/include/asm/atomic.h
130
return (c);
sys/compat/linuxkpi/common/include/asm/atomic.h
310
int c, old; \
sys/compat/linuxkpi/common/include/asm/atomic.h
312
c = v->counter; \
sys/compat/linuxkpi/common/include/asm/atomic.h
313
while ((old = atomic_cmpxchg(v, c, c c_op i)) != c) \
sys/compat/linuxkpi/common/include/asm/atomic.h
314
c = old; \
sys/compat/linuxkpi/common/include/asm/atomic.h
320
int c, old; \
sys/compat/linuxkpi/common/include/asm/atomic.h
322
c = v->counter; \
sys/compat/linuxkpi/common/include/asm/atomic.h
323
while ((old = atomic_cmpxchg(v, c, c c_op i)) != c) \
sys/compat/linuxkpi/common/include/asm/atomic.h
324
c = old; \
sys/compat/linuxkpi/common/include/asm/atomic.h
326
return (c); \
sys/compat/linuxkpi/common/include/asm/atomic64.h
101
if (unlikely(c == u))
sys/compat/linuxkpi/common/include/asm/atomic64.h
103
if (likely(atomic_fcmpset_64(&v->counter, &c, c + a)))
sys/compat/linuxkpi/common/include/asm/atomic64.h
106
return (c != u);
sys/compat/linuxkpi/common/include/asm/atomic64.h
112
int64_t c = atomic64_read(v);
sys/compat/linuxkpi/common/include/asm/atomic64.h
115
if (unlikely(c == u))
sys/compat/linuxkpi/common/include/asm/atomic64.h
117
if (likely(atomic_fcmpset_64(&v->counter, &c, c + a)))
sys/compat/linuxkpi/common/include/asm/atomic64.h
120
return (c);
sys/compat/linuxkpi/common/include/asm/atomic64.h
98
int64_t c = atomic64_read(v);
sys/compat/linuxkpi/common/include/linux/cleanup.h
34
_dt c; \
sys/compat/linuxkpi/common/include/linux/cleanup.h
36
c = ({ _lock; _T; }); \
sys/compat/linuxkpi/common/include/linux/cleanup.h
37
return (c); \
sys/compat/linuxkpi/common/include/linux/compiler_types.h
30
#define __cond_lock(x,c) (c)
sys/compat/linuxkpi/common/include/linux/completion.h
38
#define INIT_COMPLETION(c) \
sys/compat/linuxkpi/common/include/linux/completion.h
39
((c).done = 0)
sys/compat/linuxkpi/common/include/linux/completion.h
40
#define init_completion(c) \
sys/compat/linuxkpi/common/include/linux/completion.h
41
do { (c)->done = 0; } while (0)
sys/compat/linuxkpi/common/include/linux/completion.h
42
#define reinit_completion(c) \
sys/compat/linuxkpi/common/include/linux/completion.h
43
do { (c)->done = 0; } while (0)
sys/compat/linuxkpi/common/include/linux/completion.h
44
#define complete(c) \
sys/compat/linuxkpi/common/include/linux/completion.h
45
linux_complete_common((c), 0)
sys/compat/linuxkpi/common/include/linux/completion.h
46
#define complete_all(c) \
sys/compat/linuxkpi/common/include/linux/completion.h
47
linux_complete_common((c), 1)
sys/compat/linuxkpi/common/include/linux/completion.h
48
#define wait_for_completion(c) \
sys/compat/linuxkpi/common/include/linux/completion.h
49
linux_wait_for_common((c), 0)
sys/compat/linuxkpi/common/include/linux/completion.h
50
#define wait_for_completion_interruptible(c) \
sys/compat/linuxkpi/common/include/linux/completion.h
51
linux_wait_for_common((c), 1)
sys/compat/linuxkpi/common/include/linux/completion.h
52
#define wait_for_completion_timeout(c, timeout) \
sys/compat/linuxkpi/common/include/linux/completion.h
53
linux_wait_for_timeout_common((c), (timeout), 0)
sys/compat/linuxkpi/common/include/linux/completion.h
54
#define wait_for_completion_interruptible_timeout(c, timeout) \
sys/compat/linuxkpi/common/include/linux/completion.h
55
linux_wait_for_timeout_common((c), (timeout), 1)
sys/compat/linuxkpi/common/include/linux/completion.h
56
#define try_wait_for_completion(c) \
sys/compat/linuxkpi/common/include/linux/completion.h
57
linux_try_wait_for_completion(c)
sys/compat/linuxkpi/common/include/linux/completion.h
58
#define completion_done(c) \
sys/compat/linuxkpi/common/include/linux/completion.h
59
linux_completion_done(c)
sys/compat/linuxkpi/common/include/linux/dynamic_debug.h
6
#define DECLARE_DYNDBG_CLASSMAP(a, b, c, ...)
sys/compat/linuxkpi/common/include/linux/gcd.h
36
unsigned long c;
sys/compat/linuxkpi/common/include/linux/gcd.h
38
c = a % b;
sys/compat/linuxkpi/common/include/linux/gcd.h
39
while (c != 0) {
sys/compat/linuxkpi/common/include/linux/gcd.h
41
b = c;
sys/compat/linuxkpi/common/include/linux/gcd.h
42
c = a % b;
sys/compat/linuxkpi/common/include/linux/io.h
444
#define memset_io(a, b, c) memset((a), (b), (c))
sys/compat/linuxkpi/common/include/linux/io.h
445
#define memcpy_fromio(a, b, c) memcpy((a), (b), (c))
sys/compat/linuxkpi/common/include/linux/io.h
446
#define memcpy_toio(a, b, c) memcpy((a), (b), (c))
sys/compat/linuxkpi/common/include/linux/jhash.h
100
c += k[2];
sys/compat/linuxkpi/common/include/linux/jhash.h
101
__jhash_mix(a, b, c);
sys/compat/linuxkpi/common/include/linux/jhash.h
105
c += length * 4;
sys/compat/linuxkpi/common/include/linux/jhash.h
112
__jhash_mix(a,b,c);
sys/compat/linuxkpi/common/include/linux/jhash.h
114
return c;
sys/compat/linuxkpi/common/include/linux/jhash.h
123
static inline u32 jhash_3words(u32 a, u32 b, u32 c, u32 initval)
sys/compat/linuxkpi/common/include/linux/jhash.h
127
c += initval;
sys/compat/linuxkpi/common/include/linux/jhash.h
129
__jhash_mix(a, b, c);
sys/compat/linuxkpi/common/include/linux/jhash.h
131
return c;
sys/compat/linuxkpi/common/include/linux/jhash.h
26
#define __jhash_mix(a, b, c) \
sys/compat/linuxkpi/common/include/linux/jhash.h
28
a -= b; a -= c; a ^= (c>>13); \
sys/compat/linuxkpi/common/include/linux/jhash.h
29
b -= c; b -= a; b ^= (a<<8); \
sys/compat/linuxkpi/common/include/linux/jhash.h
30
c -= a; c -= b; c ^= (b>>13); \
sys/compat/linuxkpi/common/include/linux/jhash.h
31
a -= b; a -= c; a ^= (c>>12); \
sys/compat/linuxkpi/common/include/linux/jhash.h
32
b -= c; b -= a; b ^= (a<<16); \
sys/compat/linuxkpi/common/include/linux/jhash.h
33
c -= a; c -= b; c ^= (b>>5); \
sys/compat/linuxkpi/common/include/linux/jhash.h
34
a -= b; a -= c; a ^= (c>>3); \
sys/compat/linuxkpi/common/include/linux/jhash.h
35
b -= c; b -= a; b ^= (a<<10); \
sys/compat/linuxkpi/common/include/linux/jhash.h
36
c -= a; c -= b; c ^= (b>>15); \
sys/compat/linuxkpi/common/include/linux/jhash.h
48
u32 a, b, c, len;
sys/compat/linuxkpi/common/include/linux/jhash.h
53
c = initval;
sys/compat/linuxkpi/common/include/linux/jhash.h
58
c += (k[8] +((u32)k[9]<<8) +((u32)k[10]<<16)+((u32)k[11]<<24));
sys/compat/linuxkpi/common/include/linux/jhash.h
60
__jhash_mix(a,b,c);
sys/compat/linuxkpi/common/include/linux/jhash.h
66
c += length;
sys/compat/linuxkpi/common/include/linux/jhash.h
68
case 11: c += ((u32)k[10]<<24);
sys/compat/linuxkpi/common/include/linux/jhash.h
69
case 10: c += ((u32)k[9]<<16);
sys/compat/linuxkpi/common/include/linux/jhash.h
70
case 9 : c += ((u32)k[8]<<8);
sys/compat/linuxkpi/common/include/linux/jhash.h
81
__jhash_mix(a,b,c);
sys/compat/linuxkpi/common/include/linux/jhash.h
83
return c;
sys/compat/linuxkpi/common/include/linux/jhash.h
91
u32 a, b, c, len;
sys/compat/linuxkpi/common/include/linux/jhash.h
94
c = initval;
sys/compat/linuxkpi/common/include/linux/jiffies.h
51
#define time_in_range(a,b,c) \
sys/compat/linuxkpi/common/include/linux/jiffies.h
52
(time_after_eq(a,b) && time_before_eq(a,c))
sys/compat/linuxkpi/common/include/linux/kernel.h
309
_h2b(const char c)
sys/compat/linuxkpi/common/include/linux/kernel.h
312
if (c >= '0' && c <= '9')
sys/compat/linuxkpi/common/include/linux/kernel.h
313
return (c - '0');
sys/compat/linuxkpi/common/include/linux/kernel.h
314
if (c >= 'a' && c <= 'f')
sys/compat/linuxkpi/common/include/linux/kernel.h
315
return (10 + c - 'a');
sys/compat/linuxkpi/common/include/linux/kernel.h
316
if (c >= 'A' && c <= 'F')
sys/compat/linuxkpi/common/include/linux/kernel.h
317
return (10 + c - 'A');
sys/compat/linuxkpi/common/include/linux/lockdep.h
117
#define lockdep_repin_lock(l,c) do { (void)(l); (void)(c); } while (0)
sys/compat/linuxkpi/common/include/linux/lockdep.h
118
#define lockdep_unpin_lock(l,c) do { (void)(l); (void)(c); } while (0)
sys/compat/linuxkpi/common/include/linux/minmax.h
44
#define min3(a, b, c) min(a, min(b, c))
sys/compat/linuxkpi/common/include/linux/minmax.h
45
#define max3(a, b, c) max(a, max(b, c))
sys/compat/linuxkpi/common/include/linux/moduleparam.h
49
#define LINUXKPI_PARAM_CONCAT_SUB(a,b,c,d) a##b##c##d
sys/compat/linuxkpi/common/include/linux/mutex.h
71
#define mutex_lock_interruptible_nested(m, c) mutex_lock_interruptible(m)
sys/compat/linuxkpi/common/include/linux/overflow.h
342
#define array3_size(a, b, c) size_mul(size_mul(a, b), c)
sys/compat/linuxkpi/common/include/linux/rcupdate.h
105
#define __rcu_dereference_protected(p, c, n) \
sys/compat/linuxkpi/common/include/linux/rcupdate.h
107
RCU_WARN_ONCE(!(c), "%s:%d: condition for %s failed\n", \
sys/compat/linuxkpi/common/include/linux/rcupdate.h
112
#define rcu_dereference_protected(p, c) \
sys/compat/linuxkpi/common/include/linux/rcupdate.h
113
__rcu_dereference_protected((p), (c), \
sys/compat/linuxkpi/common/include/linux/rcupdate.h
116
#define __rcu_dereference_check(p, c, n) \
sys/compat/linuxkpi/common/include/linux/rcupdate.h
119
RCU_WARN_ONCE(!(c), "%s:%d: condition for %s failed\n", \
sys/compat/linuxkpi/common/include/linux/rcupdate.h
124
#define rcu_dereference_check(p, c) \
sys/compat/linuxkpi/common/include/linux/rcupdate.h
125
__rcu_dereference_check((p), (c) || rcu_read_lock_held(), \
sys/compat/linuxkpi/common/include/linux/rcupdate.h
138
#define rcu_replace_pointer(rcu, ptr, c) \
sys/compat/linuxkpi/common/include/linux/rcupdate.h
140
typeof(ptr) __tmp = rcu_dereference_protected(rcu, c); \
sys/compat/linuxkpi/common/include/linux/rcupdate.h
145
#define rcu_swap_protected(rcu, ptr, c) do { \
sys/compat/linuxkpi/common/include/linux/rcupdate.h
146
typeof(ptr) p = rcu_dereference_protected(rcu, c); \
sys/compat/linuxkpi/common/include/linux/rcupdate.h
43
#define RCU_WARN_ONCE(c, ...) do { \
sys/compat/linuxkpi/common/include/linux/rcupdate.h
45
WARN_ONCE((c), ##__VA_ARGS__); \
sys/compat/linuxkpi/common/include/linux/seq_file.h
90
void seq_putc(struct seq_file *m, char c);
sys/compat/linuxkpi/common/include/linux/siphash.h
102
u32 hsiphash_3u32(const u32 a, const u32 b, const u32 c,
sys/compat/linuxkpi/common/include/linux/siphash.h
104
u32 hsiphash_4u32(const u32 a, const u32 b, const u32 c, const u32 d,
sys/compat/linuxkpi/common/include/linux/siphash.h
146
#define SIPHASH_PERMUTATION(a, b, c, d) ( \
sys/compat/linuxkpi/common/include/linux/siphash.h
148
(c) += (d), (d) = rol64((d), 16), (d) ^= (c), \
sys/compat/linuxkpi/common/include/linux/siphash.h
150
(c) += (b), (b) = rol64((b), 17), (b) ^= (c), (c) = rol64((c), 32))
sys/compat/linuxkpi/common/include/linux/siphash.h
157
#define HSIPHASH_PERMUTATION(a, b, c, d) ( \
sys/compat/linuxkpi/common/include/linux/siphash.h
159
(c) += (d), (d) = rol32((d), 8), (d) ^= (c), \
sys/compat/linuxkpi/common/include/linux/siphash.h
161
(c) += (b), (b) = rol32((b), 13), (b) ^= (c), (c) = rol32((c), 16))
sys/compat/linuxkpi/common/include/linux/siphash.h
35
u64 siphash_3u64(const u64 a, const u64 b, const u64 c,
sys/compat/linuxkpi/common/include/linux/siphash.h
37
u64 siphash_4u64(const u64 a, const u64 b, const u64 c, const u64 d,
sys/compat/linuxkpi/common/include/linux/siphash.h
40
u64 siphash_3u32(const u32 a, const u32 b, const u32 c,
sys/compat/linuxkpi/common/include/linux/siphash.h
48
static inline u64 siphash_4u32(const u32 a, const u32 b, const u32 c,
sys/compat/linuxkpi/common/include/linux/siphash.h
51
return siphash_2u64((u64)b << 32 | a, (u64)d << 32 | c, key);
sys/compat/linuxkpi/common/include/linux/string.h
183
memchr_inv(const void *start, int c, size_t length)
sys/compat/linuxkpi/common/include/linux/string.h
189
ch = c;
sys/compat/linuxkpi/common/include/linux/string.h
264
memset32(uint32_t *b, uint32_t c, size_t len)
sys/compat/linuxkpi/common/include/linux/string.h
269
*dst++ = c;
sys/compat/linuxkpi/common/include/linux/string.h
274
memset64(uint64_t *b, uint64_t c, size_t len)
sys/compat/linuxkpi/common/include/linux/string.h
279
*dst++ = c;
sys/compat/linuxkpi/common/src/linux_80211.c
1013
lkpi_net80211_chan_to_nl80211_band(struct ieee80211_channel *c)
sys/compat/linuxkpi/common/src/linux_80211.c
1016
if (IEEE80211_IS_CHAN_2GHZ(c))
sys/compat/linuxkpi/common/src/linux_80211.c
1018
else if (IEEE80211_IS_CHAN_5GHZ(c))
sys/compat/linuxkpi/common/src/linux_80211.c
1025
else if (IEEE80211_IS_CHAN_GSM(c))
sys/compat/linuxkpi/common/src/linux_80211.c
1030
__func__, c, c->ic_flags);
sys/compat/linuxkpi/common/src/linux_80211.c
1289
struct ieee80211_channel *c)
sys/compat/linuxkpi/common/src/linux_80211.c
1297
band = lkpi_net80211_chan_to_nl80211_band(c);
sys/compat/linuxkpi/common/src/linux_80211.c
1307
if (channels[i].center_freq == c->ic_freq)
sys/compat/linuxkpi/common/src/linux_80211.c
1319
struct ieee80211_channel *c;
sys/compat/linuxkpi/common/src/linux_80211.c
1324
c = ni->ni_chan;
sys/compat/linuxkpi/common/src/linux_80211.c
1326
c = ic->ic_bsschan;
sys/compat/linuxkpi/common/src/linux_80211.c
1328
c = ic->ic_curchan;
sys/compat/linuxkpi/common/src/linux_80211.c
1330
c = NULL;
sys/compat/linuxkpi/common/src/linux_80211.c
1332
if (c != NULL && c != IEEE80211_CHAN_ANYC) {
sys/compat/linuxkpi/common/src/linux_80211.c
1334
chan = lkpi_find_lkpi80211_chan(lhw, c);
sys/compat/linuxkpi/common/src/linux_80211.c
4339
struct ieee80211_channel *c;
sys/compat/linuxkpi/common/src/linux_80211.c
4341
c = ieee80211_ht_adjust_channel(ic, ic->ic_curchan,
sys/compat/linuxkpi/common/src/linux_80211.c
4343
p = ieee80211_add_htcap_ch(p, vap, c);
sys/compat/linuxkpi/common/src/linux_80211.c
4349
struct ieee80211_channel *c;
sys/compat/linuxkpi/common/src/linux_80211.c
4351
c = ieee80211_ht_adjust_channel(ic, ic->ic_curchan,
sys/compat/linuxkpi/common/src/linux_80211.c
4353
c = ieee80211_vht_adjust_channel(ic, c,
sys/compat/linuxkpi/common/src/linux_80211.c
4355
p = ieee80211_add_vhtcap_ch(p, vap, c);
sys/compat/linuxkpi/common/src/linux_80211.c
4463
lkpi_scan_chan(struct linuxkpi_ieee80211_channel *c,
sys/compat/linuxkpi/common/src/linux_80211.c
4467
if ((c->flags & IEEE80211_CHAN_DISABLED) != 0) {
sys/compat/linuxkpi/common/src/linux_80211.c
4471
lkpi_nl80211_band_name(c->band), c->hw_value,
sys/compat/linuxkpi/common/src/linux_80211.c
4472
c->center_freq, c->flags);
sys/compat/linuxkpi/common/src/linux_80211.c
4475
if (isclr(ic->ic_chan_active, ieee80211_mhz2ieee(c->center_freq,
sys/compat/linuxkpi/common/src/linux_80211.c
4476
lkpi_nl80211_band_to_net80211_band(c->band)))) {
sys/compat/linuxkpi/common/src/linux_80211.c
4480
lkpi_nl80211_band_name(c->band), c->hw_value,
sys/compat/linuxkpi/common/src/linux_80211.c
4481
c->center_freq, c->flags);
sys/compat/linuxkpi/common/src/linux_80211.c
4686
struct ieee80211_channel *c;
sys/compat/linuxkpi/common/src/linux_80211.c
4688
c = ss->ss_chans[ss->ss_next + i];
sys/compat/linuxkpi/common/src/linux_80211.c
4689
lc->center_freq = c->ic_freq; /* XXX */
sys/compat/linuxkpi/common/src/linux_80211.c
4691
lc->band = lkpi_net80211_chan_to_nl80211_band(c);
sys/compat/linuxkpi/common/src/linux_80211.c
4692
lc->max_power = c->ic_maxpower;
sys/compat/linuxkpi/common/src/linux_80211.c
5002
struct ieee80211_channel *c;
sys/compat/linuxkpi/common/src/linux_80211.c
5022
c = ic->ic_curchan;
sys/compat/linuxkpi/common/src/linux_80211.c
5023
if (c == NULL || c == IEEE80211_CHAN_ANYC) {
sys/compat/linuxkpi/common/src/linux_80211.c
5025
c, lhw->ops->config);
sys/compat/linuxkpi/common/src/linux_80211.c
5029
chan = lkpi_find_lkpi80211_chan(lhw, c);
sys/compat/linuxkpi/common/src/linux_80211.c
5032
c, chan);
sys/compat/linuxkpi/common/src/linux_80211.c
5054
lhw->rtap_tx.wt_chan_freq = htole16(c->ic_freq);
sys/compat/linuxkpi/common/src/linux_80211.c
5055
lhw->rtap_tx.wt_chan_flags = htole16(c->ic_flags);
sys/compat/linuxkpi/common/src/linux_80211.c
5056
lhw->rtap_rx.wr_chan_freq = htole16(c->ic_freq);
sys/compat/linuxkpi/common/src/linux_80211.c
5057
lhw->rtap_rx.wr_chan_flags = htole16(c->ic_flags);
sys/compat/linuxkpi/common/src/linux_80211.c
5422
struct ieee80211_channel *c;
sys/compat/linuxkpi/common/src/linux_80211.c
5469
c = ni->ni_chan;
sys/compat/linuxkpi/common/src/linux_80211.c
5482
if (c != NULL && c != IEEE80211_CHAN_ANYC) {
sys/compat/linuxkpi/common/src/linux_80211.c
5483
rtap->wt_chan_freq = htole16(c->ic_freq);
sys/compat/linuxkpi/common/src/linux_80211.c
5484
rtap->wt_chan_flags = htole16(c->ic_flags);
sys/compat/linuxkpi/common/src/linux_80211.c
5565
if (c == NULL || c == IEEE80211_CHAN_ANYC)
sys/compat/linuxkpi/common/src/linux_80211.c
5566
c = ic->ic_curchan;
sys/compat/linuxkpi/common/src/linux_80211.c
5567
info->band = lkpi_net80211_chan_to_nl80211_band(c);
sys/compat/linuxkpi/common/src/linux_80211.c
6219
int *n, struct ieee80211_channel *c)
sys/compat/linuxkpi/common/src/linux_80211.c
6271
error = ieee80211_add_channel_cbw(c, maxchan, n,
sys/compat/linuxkpi/common/src/linux_80211.c
6344
error = ieee80211_add_channel_cbw(c, maxchan, n,
sys/compat/linuxkpi/common/src/linux_compat.c
2222
linux_complete_common(struct completion *c, int all)
sys/compat/linuxkpi/common/src/linux_compat.c
2224
sleepq_lock(c);
sys/compat/linuxkpi/common/src/linux_compat.c
2226
c->done = UINT_MAX;
sys/compat/linuxkpi/common/src/linux_compat.c
2227
sleepq_broadcast(c, SLEEPQ_SLEEP, 0, 0);
sys/compat/linuxkpi/common/src/linux_compat.c
2229
if (c->done != UINT_MAX)
sys/compat/linuxkpi/common/src/linux_compat.c
2230
c->done++;
sys/compat/linuxkpi/common/src/linux_compat.c
2231
sleepq_signal(c, SLEEPQ_SLEEP, 0, 0);
sys/compat/linuxkpi/common/src/linux_compat.c
2233
sleepq_release(c);
sys/compat/linuxkpi/common/src/linux_compat.c
2240
linux_wait_for_common(struct completion *c, int flags)
sys/compat/linuxkpi/common/src/linux_compat.c
2256
sleepq_lock(c);
sys/compat/linuxkpi/common/src/linux_compat.c
2257
if (c->done)
sys/compat/linuxkpi/common/src/linux_compat.c
2259
sleepq_add(c, NULL, "completion", flags, 0);
sys/compat/linuxkpi/common/src/linux_compat.c
2262
error = -sleepq_wait_sig(c, 0);
sys/compat/linuxkpi/common/src/linux_compat.c
2271
sleepq_wait(c, 0);
sys/compat/linuxkpi/common/src/linux_compat.c
2275
if (c->done != UINT_MAX)
sys/compat/linuxkpi/common/src/linux_compat.c
2276
c->done--;
sys/compat/linuxkpi/common/src/linux_compat.c
2277
sleepq_release(c);
sys/compat/linuxkpi/common/src/linux_compat.c
2287
linux_wait_for_timeout_common(struct completion *c, unsigned long timeout,
sys/compat/linuxkpi/common/src/linux_compat.c
2304
sleepq_lock(c);
sys/compat/linuxkpi/common/src/linux_compat.c
2305
if (c->done)
sys/compat/linuxkpi/common/src/linux_compat.c
2307
sleepq_add(c, NULL, "completion", flags, 0);
sys/compat/linuxkpi/common/src/linux_compat.c
2308
sleepq_set_timeout(c, linux_timer_jiffies_until(end));
sys/compat/linuxkpi/common/src/linux_compat.c
2312
error = -sleepq_timedwait_sig(c, 0);
sys/compat/linuxkpi/common/src/linux_compat.c
2314
error = -sleepq_timedwait(c, 0);
sys/compat/linuxkpi/common/src/linux_compat.c
2329
if (c->done != UINT_MAX)
sys/compat/linuxkpi/common/src/linux_compat.c
2330
c->done--;
sys/compat/linuxkpi/common/src/linux_compat.c
2331
sleepq_release(c);
sys/compat/linuxkpi/common/src/linux_compat.c
2340
linux_try_wait_for_completion(struct completion *c)
sys/compat/linuxkpi/common/src/linux_compat.c
2344
sleepq_lock(c);
sys/compat/linuxkpi/common/src/linux_compat.c
2345
isdone = (c->done != 0);
sys/compat/linuxkpi/common/src/linux_compat.c
2346
if (c->done != 0 && c->done != UINT_MAX)
sys/compat/linuxkpi/common/src/linux_compat.c
2347
c->done--;
sys/compat/linuxkpi/common/src/linux_compat.c
2348
sleepq_release(c);
sys/compat/linuxkpi/common/src/linux_compat.c
2353
linux_completion_done(struct completion *c)
sys/compat/linuxkpi/common/src/linux_compat.c
2357
sleepq_lock(c);
sys/compat/linuxkpi/common/src/linux_compat.c
2358
isdone = (c->done != 0);
sys/compat/linuxkpi/common/src/linux_compat.c
2359
sleepq_release(c);
sys/compat/linuxkpi/common/src/linux_compat.c
990
int c, old;
sys/compat/linuxkpi/common/src/linux_compat.c
992
c = v->counter;
sys/compat/linuxkpi/common/src/linux_compat.c
994
while ((old = atomic_cmpxchg(v, c, pstate[c])) != c)
sys/compat/linuxkpi/common/src/linux_compat.c
995
c = old;
sys/compat/linuxkpi/common/src/linux_compat.c
997
return (c);
sys/compat/linuxkpi/common/src/linux_page.c
441
unsigned int i, c, chunk;
sys/compat/linuxkpi/common/src/linux_page.c
453
c = 0;
sys/compat/linuxkpi/common/src/linux_page.c
462
m = fma + c;
sys/compat/linuxkpi/common/src/linux_page.c
467
ma[c] = m;
sys/compat/linuxkpi/common/src/linux_page.c
468
c++;
sys/compat/linuxkpi/common/src/linux_page.c
469
if (c == chunk || i == count - 1) {
sys/compat/linuxkpi/common/src/linux_page.c
470
pmap_qenter(coff, ma, c);
sys/compat/linuxkpi/common/src/linux_page.c
473
coff += ptoa(c);
sys/compat/linuxkpi/common/src/linux_page.c
474
c = 0;
sys/compat/linuxkpi/common/src/linux_seq_file.c
80
seq_putc(struct seq_file *seq, char c)
sys/compat/linuxkpi/common/src/linux_seq_file.c
84
ret = sbuf_putc(seq->buf, c);
sys/compat/linuxkpi/common/src/linux_slab.c
115
struct linux_kmem_cache *c;
sys/compat/linuxkpi/common/src/linux_slab.c
117
c = malloc(sizeof(*c), M_KMALLOC, M_WAITOK);
sys/compat/linuxkpi/common/src/linux_slab.c
130
c->cache_zone = uma_zcreate(name, size,
sys/compat/linuxkpi/common/src/linux_slab.c
138
c->cache_zone = uma_zcreate(name, size,
sys/compat/linuxkpi/common/src/linux_slab.c
143
c->cache_flags = flags;
sys/compat/linuxkpi/common/src/linux_slab.c
144
c->cache_ctor = ctor;
sys/compat/linuxkpi/common/src/linux_slab.c
145
c->cache_size = size;
sys/compat/linuxkpi/common/src/linux_slab.c
146
init_llist_head(&c->cache_items);
sys/compat/linuxkpi/common/src/linux_slab.c
147
TASK_INIT(&c->cache_task, 0, lkpi_kmem_cache_free_async_fn, c);
sys/compat/linuxkpi/common/src/linux_slab.c
148
return (c);
sys/compat/linuxkpi/common/src/linux_slab.c
152
lkpi_kmem_cache_free_rcu(struct linux_kmem_cache *c, void *m)
sys/compat/linuxkpi/common/src/linux_slab.c
154
struct linux_kmem_rcu *rcu = LINUX_KMEM_TO_RCU(c, m);
sys/compat/linuxkpi/common/src/linux_slab.c
160
lkpi_kmem_cache_free_sync(struct linux_kmem_cache *c, void *m)
sys/compat/linuxkpi/common/src/linux_slab.c
162
uma_zfree(c->cache_zone, m);
sys/compat/linuxkpi/common/src/linux_slab.c
168
struct linux_kmem_cache *c = context;
sys/compat/linuxkpi/common/src/linux_slab.c
171
llist_for_each_safe(freed, next, llist_del_all(&c->cache_items))
sys/compat/linuxkpi/common/src/linux_slab.c
172
lkpi_kmem_cache_free_sync(c, freed);
sys/compat/linuxkpi/common/src/linux_slab.c
176
lkpi_kmem_cache_free_async(struct linux_kmem_cache *c, void *m)
sys/compat/linuxkpi/common/src/linux_slab.c
181
llist_add(m, &c->cache_items);
sys/compat/linuxkpi/common/src/linux_slab.c
182
taskqueue_enqueue(linux_irq_work_tq, &c->cache_task);
sys/compat/linuxkpi/common/src/linux_slab.c
186
lkpi_kmem_cache_free(struct linux_kmem_cache *c, void *m)
sys/compat/linuxkpi/common/src/linux_slab.c
188
if (unlikely(c->cache_flags & SLAB_TYPESAFE_BY_RCU))
sys/compat/linuxkpi/common/src/linux_slab.c
189
lkpi_kmem_cache_free_rcu(c, m);
sys/compat/linuxkpi/common/src/linux_slab.c
191
lkpi_kmem_cache_free_async(c, m);
sys/compat/linuxkpi/common/src/linux_slab.c
193
lkpi_kmem_cache_free_sync(c, m);
sys/compat/linuxkpi/common/src/linux_slab.c
197
linux_kmem_cache_destroy(struct linux_kmem_cache *c)
sys/compat/linuxkpi/common/src/linux_slab.c
199
if (c == NULL)
sys/compat/linuxkpi/common/src/linux_slab.c
202
if (unlikely(c->cache_flags & SLAB_TYPESAFE_BY_RCU)) {
sys/compat/linuxkpi/common/src/linux_slab.c
207
if (!llist_empty(&c->cache_items))
sys/compat/linuxkpi/common/src/linux_slab.c
208
taskqueue_enqueue(linux_irq_work_tq, &c->cache_task);
sys/compat/linuxkpi/common/src/linux_slab.c
209
taskqueue_drain(linux_irq_work_tq, &c->cache_task);
sys/compat/linuxkpi/common/src/linux_slab.c
210
uma_zdestroy(c->cache_zone);
sys/compat/linuxkpi/common/src/linux_slab.c
211
free(c, M_KMALLOC);
sys/compat/linuxkpi/common/src/linux_slab.c
57
#define LINUX_KMEM_TO_RCU(c, m) \
sys/compat/linuxkpi/common/src/linux_slab.c
59
(c)->cache_size - sizeof(struct linux_kmem_rcu)))
sys/compat/linuxkpi/common/src/linux_slab.c
70
lkpi_kmem_cache_alloc(struct linux_kmem_cache *c, gfp_t flags)
sys/compat/linuxkpi/common/src/linux_slab.c
72
return (uma_zalloc_arg(c->cache_zone, c,
sys/compat/linuxkpi/common/src/linux_slab.c
77
lkpi_kmem_cache_zalloc(struct linux_kmem_cache *c, gfp_t flags)
sys/compat/linuxkpi/common/src/linux_slab.c
79
return (uma_zalloc_arg(c->cache_zone, c,
sys/compat/linuxkpi/common/src/linux_slab.c
86
struct linux_kmem_cache *c = arg;
sys/compat/linuxkpi/common/src/linux_slab.c
88
if (unlikely(c->cache_flags & SLAB_TYPESAFE_BY_RCU)) {
sys/compat/linuxkpi/common/src/linux_slab.c
89
struct linux_kmem_rcu *rcu = LINUX_KMEM_TO_RCU(c, mem);
sys/compat/linuxkpi/common/src/linux_slab.c
92
rcu->cache = c;
sys/compat/linuxkpi/common/src/linux_slab.c
96
if (likely(c->cache_ctor != NULL))
sys/compat/linuxkpi/common/src/linux_slab.c
97
c->cache_ctor(mem);
sys/compat/linuxkpi/common/src/linux_tasklet.c
160
tasklet_setup(struct tasklet_struct *ts, tasklet_callback_t *c)
sys/compat/linuxkpi/common/src/linux_tasklet.c
165
ts->callback = c;
sys/compat/linuxkpi/common/src/linux_work.c
74
int c, old;
sys/compat/linuxkpi/common/src/linux_work.c
76
c = v->counter;
sys/compat/linuxkpi/common/src/linux_work.c
78
while ((old = atomic_cmpxchg(v, c, pstate[c])) != c)
sys/compat/linuxkpi/common/src/linux_work.c
79
c = old;
sys/compat/linuxkpi/common/src/linux_work.c
81
return (c);
sys/crypto/aesni/aesencdec.h
103
out[2] = _mm_aesdeclast_si128(c, keysched[i + 1]);
sys/crypto/aesni/aesencdec.h
39
__m128i b, __m128i c, __m128i d, __m128i e, __m128i f, __m128i g,
sys/crypto/aesni/aesencdec.h
46
c ^= keysched[0];
sys/crypto/aesni/aesencdec.h
56
c = _mm_aesenc_si128(c, keysched[i + 1]);
sys/crypto/aesni/aesencdec.h
66
out[2] = _mm_aesenclast_si128(c, keysched[i + 1]);
sys/crypto/aesni/aesencdec.h
76
__m128i b, __m128i c, __m128i d, __m128i e, __m128i f, __m128i g,
sys/crypto/aesni/aesencdec.h
83
c ^= keysched[0];
sys/crypto/aesni/aesencdec.h
93
c = _mm_aesdec_si128(c, keysched[i + 1]);
sys/crypto/aesni/aesni.c
381
ctx->c.b64[0] += blocks * 64 * 8;
sys/crypto/aesni/aesni.c
394
ctx->c.b64[0] += copysiz * 8;
sys/crypto/aesni/aesni_wrap.c
335
__m128i a, b, c, d, e, f, g, h;
sys/crypto/aesni/aesni_wrap.c
357
PREPINP(c, 2);
sys/crypto/aesni/aesni_wrap.c
366
aesni_enc8(rounds - 1, key_schedule, a, b, c, d, e, f, g, h,
sys/crypto/aesni/aesni_wrap.c
369
aesni_dec8(rounds - 1, key_schedule, a, b, c, d, e, f, g, h,
sys/crypto/armv8/armv8_crypto.c
247
memset(H.c, 0, sizeof(H.c));
sys/crypto/armv8/armv8_crypto.c
248
aes_v8_encrypt(H.c, H.c, &ses->enc_schedule);
sys/crypto/armv8/armv8_crypto.h
43
uint8_t c[16];
sys/crypto/armv8/armv8_crypto_wrap.c
343
aes_v8_encrypt(s->aes_counter, s->EK0.c, aes_key);
sys/crypto/armv8/armv8_crypto_wrap.c
348
memset(s->Xi.c, 0, sizeof(s->Xi.c));
sys/crypto/armv8/armv8_crypto_wrap.c
369
gcm_ghash_v8(s->Xi.u, Htable, s->lenblock.c, AES_BLOCK_LEN);
sys/crypto/armv8/armv8_crypto_wrap.c
379
aes_v8_encrypt(s->aes_counter, s->EKi.c, aes_key);
sys/crypto/armv8/armv8_crypto_wrap.c
422
aes_v8_encrypt(s.aes_counter, s.EKi.c, aes_key);
sys/crypto/armv8/armv8_crypto_wrap.c
425
block[i] ^= s.EKi.c[i];
sys/crypto/armv8/armv8_crypto_wrap.c
449
memcpy(tag, s.Xi.c, GMAC_DIGEST_LEN);
sys/crypto/armv8/armv8_crypto_wrap.c
490
if (timingsafe_bcmp(tag, s.Xi.c, GMAC_DIGEST_LEN) != 0) {
sys/crypto/ccp/ccp.h
231
u_int random_ccp_read(void *v, u_int c);
sys/crypto/ccp/ccp_hardware.c
2004
random_ccp_read(void *v, u_int c)
sys/crypto/ccp/ccp_hardware.c
2009
KASSERT(c % sizeof(*buf) == 0, ("%u not multiple of u_long", c));
sys/crypto/ccp/ccp_hardware.c
2012
for (i = c; i > 0; i -= sizeof(*buf)) {
sys/crypto/ccp/ccp_hardware.c
2022
return (c);
sys/crypto/chacha20/chacha.c
111
chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes)
sys/crypto/chacha20/chacha.c
144
ctarget = c;
sys/crypto/chacha20/chacha.c
145
c = tmp;
sys/crypto/chacha20/chacha.c
224
U32TO8_LITTLE(c + 0,x0);
sys/crypto/chacha20/chacha.c
225
U32TO8_LITTLE(c + 4,x1);
sys/crypto/chacha20/chacha.c
226
U32TO8_LITTLE(c + 8,x2);
sys/crypto/chacha20/chacha.c
227
U32TO8_LITTLE(c + 12,x3);
sys/crypto/chacha20/chacha.c
228
U32TO8_LITTLE(c + 16,x4);
sys/crypto/chacha20/chacha.c
229
U32TO8_LITTLE(c + 20,x5);
sys/crypto/chacha20/chacha.c
230
U32TO8_LITTLE(c + 24,x6);
sys/crypto/chacha20/chacha.c
231
U32TO8_LITTLE(c + 28,x7);
sys/crypto/chacha20/chacha.c
232
U32TO8_LITTLE(c + 32,x8);
sys/crypto/chacha20/chacha.c
233
U32TO8_LITTLE(c + 36,x9);
sys/crypto/chacha20/chacha.c
234
U32TO8_LITTLE(c + 40,x10);
sys/crypto/chacha20/chacha.c
235
U32TO8_LITTLE(c + 44,x11);
sys/crypto/chacha20/chacha.c
236
U32TO8_LITTLE(c + 48,x12);
sys/crypto/chacha20/chacha.c
237
U32TO8_LITTLE(c + 52,x13);
sys/crypto/chacha20/chacha.c
238
U32TO8_LITTLE(c + 56,x14);
sys/crypto/chacha20/chacha.c
239
U32TO8_LITTLE(c + 60,x15);
sys/crypto/chacha20/chacha.c
243
for (i = 0; i < bytes; ++i) ctarget[i] = c[i];
sys/crypto/chacha20/chacha.c
254
c += 64;
sys/crypto/chacha20/chacha.c
42
#define ROTATE(v,c) (ROTL32(v,c))
sys/crypto/chacha20/chacha.c
47
#define QUARTERROUND(a,b,c,d) \
sys/crypto/chacha20/chacha.c
49
c = PLUS(c,d); b = ROTATE(XOR(b,c),12); \
sys/crypto/chacha20/chacha.c
51
c = PLUS(c,d); b = ROTATE(XOR(b,c), 7);
sys/crypto/chacha20/chacha.h
37
u_char *c, u_int bytes);
sys/crypto/des/des_locl.h
100
l|=((DES_LONG)(*((c)++)))<< 8L, \
sys/crypto/des/des_locl.h
101
l|=((DES_LONG)(*((c)++))))
sys/crypto/des/des_locl.h
103
#define l2n(l,c) (*((c)++)=(unsigned char)(((l)>>24L)&0xff), \
sys/crypto/des/des_locl.h
104
*((c)++)=(unsigned char)(((l)>>16L)&0xff), \
sys/crypto/des/des_locl.h
105
*((c)++)=(unsigned char)(((l)>> 8L)&0xff), \
sys/crypto/des/des_locl.h
106
*((c)++)=(unsigned char)(((l) )&0xff))
sys/crypto/des/des_locl.h
109
#define l2cn(l1,l2,c,n) { \
sys/crypto/des/des_locl.h
110
c+=n; \
sys/crypto/des/des_locl.h
112
case 8: *(--(c))=(unsigned char)(((l2)>>24L)&0xff); \
sys/crypto/des/des_locl.h
113
case 7: *(--(c))=(unsigned char)(((l2)>>16L)&0xff); \
sys/crypto/des/des_locl.h
114
case 6: *(--(c))=(unsigned char)(((l2)>> 8L)&0xff); \
sys/crypto/des/des_locl.h
115
case 5: *(--(c))=(unsigned char)(((l2) )&0xff); \
sys/crypto/des/des_locl.h
116
case 4: *(--(c))=(unsigned char)(((l1)>>24L)&0xff); \
sys/crypto/des/des_locl.h
117
case 3: *(--(c))=(unsigned char)(((l1)>>16L)&0xff); \
sys/crypto/des/des_locl.h
118
case 2: *(--(c))=(unsigned char)(((l1)>> 8L)&0xff); \
sys/crypto/des/des_locl.h
119
case 1: *(--(c))=(unsigned char)(((l1) )&0xff); \
sys/crypto/des/des_locl.h
125
#define LOAD_DATA_tmp(a,b,c,d,e,f) LOAD_DATA(a,b,c,d,e,f,g)
sys/crypto/des/des_locl.h
68
#define c2l(c,l) (l =((DES_LONG)(*((c)++))) , \
sys/crypto/des/des_locl.h
69
l|=((DES_LONG)(*((c)++)))<< 8L, \
sys/crypto/des/des_locl.h
70
l|=((DES_LONG)(*((c)++)))<<16L, \
sys/crypto/des/des_locl.h
71
l|=((DES_LONG)(*((c)++)))<<24L)
sys/crypto/des/des_locl.h
74
#define c2ln(c,l1,l2,n) { \
sys/crypto/des/des_locl.h
75
c+=n; \
sys/crypto/des/des_locl.h
78
case 8: l2 =((DES_LONG)(*(--(c))))<<24L; \
sys/crypto/des/des_locl.h
79
case 7: l2|=((DES_LONG)(*(--(c))))<<16L; \
sys/crypto/des/des_locl.h
80
case 6: l2|=((DES_LONG)(*(--(c))))<< 8L; \
sys/crypto/des/des_locl.h
81
case 5: l2|=((DES_LONG)(*(--(c)))); \
sys/crypto/des/des_locl.h
82
case 4: l1 =((DES_LONG)(*(--(c))))<<24L; \
sys/crypto/des/des_locl.h
83
case 3: l1|=((DES_LONG)(*(--(c))))<<16L; \
sys/crypto/des/des_locl.h
84
case 2: l1|=((DES_LONG)(*(--(c))))<< 8L; \
sys/crypto/des/des_locl.h
85
case 1: l1|=((DES_LONG)(*(--(c)))); \
sys/crypto/des/des_locl.h
89
#define l2c(l,c) (*((c)++)=(unsigned char)(((l) )&0xff), \
sys/crypto/des/des_locl.h
90
*((c)++)=(unsigned char)(((l)>> 8L)&0xff), \
sys/crypto/des/des_locl.h
91
*((c)++)=(unsigned char)(((l)>>16L)&0xff), \
sys/crypto/des/des_locl.h
92
*((c)++)=(unsigned char)(((l)>>24L)&0xff))
sys/crypto/des/des_locl.h
98
#define n2l(c,l) (l =((DES_LONG)(*((c)++)))<<24L, \
sys/crypto/des/des_locl.h
99
l|=((DES_LONG)(*((c)++)))<<16L, \
sys/crypto/des/des_setkey.c
172
DES_LONG c,d,t,s,t2;
sys/crypto/des/des_setkey.c
180
c2l(in,c);
sys/crypto/des/des_setkey.c
186
PERM_OP (d,c,t,4,0x0f0f0f0fL);
sys/crypto/des/des_setkey.c
187
HPERM_OP(c,t,-2,0xcccc0000L);
sys/crypto/des/des_setkey.c
189
PERM_OP (d,c,t,1,0x55555555L);
sys/crypto/des/des_setkey.c
190
PERM_OP (c,d,t,8,0x00ff00ffL);
sys/crypto/des/des_setkey.c
191
PERM_OP (d,c,t,1,0x55555555L);
sys/crypto/des/des_setkey.c
193
((d&0x00ff0000L)>>16L)|((c&0xf0000000L)>>4L));
sys/crypto/des/des_setkey.c
194
c&=0x0fffffffL;
sys/crypto/des/des_setkey.c
199
{ c=((c>>2L)|(c<<26L)); d=((d>>2L)|(d<<26L)); }
sys/crypto/des/des_setkey.c
201
{ c=((c>>1L)|(c<<27L)); d=((d>>1L)|(d<<27L)); }
sys/crypto/des/des_setkey.c
202
c&=0x0fffffffL;
sys/crypto/des/des_setkey.c
206
s= des_skb[0][ (c )&0x3f ]|
sys/crypto/des/des_setkey.c
207
des_skb[1][((c>> 6L)&0x03)|((c>> 7L)&0x3c)]|
sys/crypto/des/des_setkey.c
208
des_skb[2][((c>>13L)&0x0f)|((c>>14L)&0x30)]|
sys/crypto/des/des_setkey.c
209
des_skb[3][((c>>20L)&0x01)|((c>>21L)&0x06) |
sys/crypto/des/des_setkey.c
210
((c>>22L)&0x38)];
sys/crypto/md4c.c
188
UINT4 a = state[0], b = state[1], c = state[2], d = state[3], x[16];
sys/crypto/md4c.c
193
FF (a, b, c, d, x[ 0], S11); /* 1 */
sys/crypto/md4c.c
194
FF (d, a, b, c, x[ 1], S12); /* 2 */
sys/crypto/md4c.c
195
FF (c, d, a, b, x[ 2], S13); /* 3 */
sys/crypto/md4c.c
196
FF (b, c, d, a, x[ 3], S14); /* 4 */
sys/crypto/md4c.c
197
FF (a, b, c, d, x[ 4], S11); /* 5 */
sys/crypto/md4c.c
198
FF (d, a, b, c, x[ 5], S12); /* 6 */
sys/crypto/md4c.c
199
FF (c, d, a, b, x[ 6], S13); /* 7 */
sys/crypto/md4c.c
200
FF (b, c, d, a, x[ 7], S14); /* 8 */
sys/crypto/md4c.c
201
FF (a, b, c, d, x[ 8], S11); /* 9 */
sys/crypto/md4c.c
202
FF (d, a, b, c, x[ 9], S12); /* 10 */
sys/crypto/md4c.c
203
FF (c, d, a, b, x[10], S13); /* 11 */
sys/crypto/md4c.c
204
FF (b, c, d, a, x[11], S14); /* 12 */
sys/crypto/md4c.c
205
FF (a, b, c, d, x[12], S11); /* 13 */
sys/crypto/md4c.c
206
FF (d, a, b, c, x[13], S12); /* 14 */
sys/crypto/md4c.c
207
FF (c, d, a, b, x[14], S13); /* 15 */
sys/crypto/md4c.c
208
FF (b, c, d, a, x[15], S14); /* 16 */
sys/crypto/md4c.c
211
GG (a, b, c, d, x[ 0], S21); /* 17 */
sys/crypto/md4c.c
212
GG (d, a, b, c, x[ 4], S22); /* 18 */
sys/crypto/md4c.c
213
GG (c, d, a, b, x[ 8], S23); /* 19 */
sys/crypto/md4c.c
214
GG (b, c, d, a, x[12], S24); /* 20 */
sys/crypto/md4c.c
215
GG (a, b, c, d, x[ 1], S21); /* 21 */
sys/crypto/md4c.c
216
GG (d, a, b, c, x[ 5], S22); /* 22 */
sys/crypto/md4c.c
217
GG (c, d, a, b, x[ 9], S23); /* 23 */
sys/crypto/md4c.c
218
GG (b, c, d, a, x[13], S24); /* 24 */
sys/crypto/md4c.c
219
GG (a, b, c, d, x[ 2], S21); /* 25 */
sys/crypto/md4c.c
220
GG (d, a, b, c, x[ 6], S22); /* 26 */
sys/crypto/md4c.c
221
GG (c, d, a, b, x[10], S23); /* 27 */
sys/crypto/md4c.c
222
GG (b, c, d, a, x[14], S24); /* 28 */
sys/crypto/md4c.c
223
GG (a, b, c, d, x[ 3], S21); /* 29 */
sys/crypto/md4c.c
224
GG (d, a, b, c, x[ 7], S22); /* 30 */
sys/crypto/md4c.c
225
GG (c, d, a, b, x[11], S23); /* 31 */
sys/crypto/md4c.c
226
GG (b, c, d, a, x[15], S24); /* 32 */
sys/crypto/md4c.c
229
HH (a, b, c, d, x[ 0], S31); /* 33 */
sys/crypto/md4c.c
230
HH (d, a, b, c, x[ 8], S32); /* 34 */
sys/crypto/md4c.c
231
HH (c, d, a, b, x[ 4], S33); /* 35 */
sys/crypto/md4c.c
232
HH (b, c, d, a, x[12], S34); /* 36 */
sys/crypto/md4c.c
233
HH (a, b, c, d, x[ 2], S31); /* 37 */
sys/crypto/md4c.c
234
HH (d, a, b, c, x[10], S32); /* 38 */
sys/crypto/md4c.c
235
HH (c, d, a, b, x[ 6], S33); /* 39 */
sys/crypto/md4c.c
236
HH (b, c, d, a, x[14], S34); /* 40 */
sys/crypto/md4c.c
237
HH (a, b, c, d, x[ 1], S31); /* 41 */
sys/crypto/md4c.c
238
HH (d, a, b, c, x[ 9], S32); /* 42 */
sys/crypto/md4c.c
239
HH (c, d, a, b, x[ 5], S33); /* 43 */
sys/crypto/md4c.c
240
HH (b, c, d, a, x[13], S34); /* 44 */
sys/crypto/md4c.c
241
HH (a, b, c, d, x[ 3], S31); /* 45 */
sys/crypto/md4c.c
242
HH (d, a, b, c, x[11], S32); /* 46 */
sys/crypto/md4c.c
243
HH (c, d, a, b, x[ 7], S33); /* 47 */
sys/crypto/md4c.c
244
HH (b, c, d, a, x[15], S34); /* 48 */
sys/crypto/md4c.c
248
state[2] += c;
sys/crypto/md4c.c
81
#define FF(a, b, c, d, x, s) { \
sys/crypto/md4c.c
82
(a) += F ((b), (c), (d)) + (x); \
sys/crypto/md4c.c
85
#define GG(a, b, c, d, x, s) { \
sys/crypto/md4c.c
86
(a) += G ((b), (c), (d)) + (x) + (UINT4)0x5a827999; \
sys/crypto/md4c.c
89
#define HH(a, b, c, d, x, s) { \
sys/crypto/md4c.c
90
(a) += H ((b), (c), (d)) + (x) + (UINT4)0x6ed9eba1; \
sys/crypto/md5c.c
160
uint32_t a = a0, b = b0, c = c0, d = d0, f, tmp;
sys/crypto/md5c.c
168
f = d ^ (b & (c ^ d));
sys/crypto/md5c.c
170
d = c;
sys/crypto/md5c.c
171
c = b;
sys/crypto/md5c.c
175
f = d ^ (b & (c ^ d));
sys/crypto/md5c.c
177
d = c;
sys/crypto/md5c.c
178
c = b;
sys/crypto/md5c.c
182
f = d ^ (b & (c ^ d));
sys/crypto/md5c.c
184
d = c;
sys/crypto/md5c.c
185
c = b;
sys/crypto/md5c.c
189
f = d ^ (b & (c ^ d));
sys/crypto/md5c.c
191
d = c;
sys/crypto/md5c.c
192
c = b;
sys/crypto/md5c.c
199
f = c ^ (d & (b ^ c));
sys/crypto/md5c.c
201
d = c;
sys/crypto/md5c.c
202
c = b;
sys/crypto/md5c.c
206
f = c ^ (d & (b ^ c));
sys/crypto/md5c.c
208
d = c;
sys/crypto/md5c.c
209
c = b;
sys/crypto/md5c.c
213
f = c ^ (d & (b ^ c));
sys/crypto/md5c.c
215
d = c;
sys/crypto/md5c.c
216
c = b;
sys/crypto/md5c.c
220
f = c ^ (d & (b ^ c));
sys/crypto/md5c.c
222
d = c;
sys/crypto/md5c.c
223
c = b;
sys/crypto/md5c.c
230
f = b ^ c ^ d;
sys/crypto/md5c.c
232
d = c;
sys/crypto/md5c.c
233
c = b;
sys/crypto/md5c.c
237
f = b ^ c ^ d;
sys/crypto/md5c.c
239
d = c;
sys/crypto/md5c.c
240
c = b;
sys/crypto/md5c.c
244
f = b ^ c ^ d;
sys/crypto/md5c.c
246
d = c;
sys/crypto/md5c.c
247
c = b;
sys/crypto/md5c.c
251
f = b ^ c ^ d;
sys/crypto/md5c.c
253
d = c;
sys/crypto/md5c.c
254
c = b;
sys/crypto/md5c.c
261
f = c ^ (b | ~d);
sys/crypto/md5c.c
263
d = c;
sys/crypto/md5c.c
264
c = b;
sys/crypto/md5c.c
268
f = c ^ (b | ~d);
sys/crypto/md5c.c
270
d = c;
sys/crypto/md5c.c
271
c = b;
sys/crypto/md5c.c
275
f = c ^ (b | ~d);
sys/crypto/md5c.c
277
d = c;
sys/crypto/md5c.c
278
c = b;
sys/crypto/md5c.c
282
f = c ^ (b | ~d);
sys/crypto/md5c.c
284
d = c;
sys/crypto/md5c.c
285
c = b;
sys/crypto/md5c.c
292
c0 += c;
sys/crypto/openssl/amd64/ossl_aes_gcm_avx512.c
115
ctx->gcm.Xi.c[15 - ares] ^= *(aad++);
sys/crypto/openssl/amd64/ossl_aes_gcm_avx512.c
140
ctx->gcm.Xi.c[15 - i] ^= aad[i];
sys/crypto/openssl/amd64/ossl_aes_gcm_avx512.c
206
return timingsafe_bcmp(ctx->gcm.Xi.c, tag, len);
sys/crypto/openssl/amd64/ossl_aes_gcm_avx512.c
47
memcpy(tag, ctx->gcm.Xi.c, len);
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
108
return timingsafe_bcmp(ctx->gcm.Xi.c, tag, len);
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
130
ctx->gcm.Xi.c[n] ^= *(aad++);
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
149
ctx->gcm.Xi.c[i] ^= aad[i];
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
188
ctx->gcm.Xi.c[n] ^= *(out++) = *(in++) ^ ctx->gcm.EKi.c[n];
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
206
ctx->gcm.Yi.c);
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
217
ctx->gcm.Xi.c[i] ^= out[i];
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
223
AES_encrypt(ctx->gcm.Yi.c, ctx->gcm.EKi.c, &ctx->aes_ks);
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
231
ctx->gcm.Xi.c[mres++] ^= out[n] = in[n] ^ ctx->gcm.EKi.c[n];
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
271
uint8_t c = *(in++);
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
272
*(out++) = c ^ ctx->gcm.EKi.c[n];
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
273
ctx->gcm.Xi.c[n] ^= c;
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
291
ctx->gcm.Xi.c[k] ^= in[k];
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
300
ctx->gcm.Yi.c);
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
312
AES_encrypt(ctx->gcm.Yi.c, ctx->gcm.EKi.c, &ctx->aes_ks);
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
320
uint8_t c = in[n];
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
321
ctx->gcm.Xi.c[mres++] ^= c;
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
322
out[n] = c ^ ctx->gcm.EKi.c[n];
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
335
memcpy(tag, ctx->gcm.Xi.c, len);
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
44
AES_encrypt(ctx->gcm.H.c, ctx->gcm.H.c, &ctx->aes_ks);
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
66
memcpy(ctx->gcm.Yi.c, iv, len);
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
67
ctx->gcm.Yi.c[12] = 0;
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
68
ctx->gcm.Yi.c[13] = 0;
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
69
ctx->gcm.Yi.c[14] = 0;
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
70
ctx->gcm.Yi.c[15] = 1;
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
76
AES_encrypt(ctx->gcm.Yi.c, ctx->gcm.EK0.c, &ctx->aes_ks);
sys/crypto/openssl/ossl_aes_gcm.c
119
s = encrypt ? ppc_aes_gcm_encrypt(in, out, len, key, ivec->c, Xi) :
sys/crypto/openssl/ossl_aes_gcm.c
120
ppc_aes_gcm_decrypt(in, out, len, key, ivec->c, Xi);
sys/crypto/openssl/ossl_aes_gcm.c
160
memcpy(tag, ctx->gcm.Xi.c, len);
sys/crypto/openssl/ossl_aes_gcm.c
166
AES_encrypt(ctx->gcm.H.c, ctx->gcm.H.c, &ctx->aes_ks);
sys/crypto/openssl/ossl_aes_gcm.c
189
memcpy(ctx->gcm.Yi.c, iv, len);
sys/crypto/openssl/ossl_aes_gcm.c
190
ctx->gcm.Yi.c[12] = 0;
sys/crypto/openssl/ossl_aes_gcm.c
191
ctx->gcm.Yi.c[13] = 0;
sys/crypto/openssl/ossl_aes_gcm.c
192
ctx->gcm.Yi.c[14] = 0;
sys/crypto/openssl/ossl_aes_gcm.c
193
ctx->gcm.Yi.c[15] = 1;
sys/crypto/openssl/ossl_aes_gcm.c
199
AES_encrypt(ctx->gcm.Yi.c, ctx->gcm.EK0.c, &ctx->aes_ks);
sys/crypto/openssl/ossl_aes_gcm.c
228
ctx->gcm.Xi.c[n] ^= *(aad++);
sys/crypto/openssl/ossl_aes_gcm.c
247
ctx->gcm.Xi.c[i] ^= aad[i];
sys/crypto/openssl/ossl_aes_gcm.c
284
AES_encrypt(ctx->gcm.Yi.c, ctx->gcm.EKi.c,
sys/crypto/openssl/ossl_aes_gcm.c
293
ctx->gcm.Xi.c[n] ^= out[i] = in[i] ^ ctx->gcm.EKi.c[n];
sys/crypto/openssl/ossl_aes_gcm.c
333
ctx->gcm.Xi.c[n] ^= *(out++) = *(in++) ^ ctx->gcm.EKi.c[n];
sys/crypto/openssl/ossl_aes_gcm.c
348
AES_ctr32_encrypt_blocks(in, out, j, &ctx->aes_ks, ctx->gcm.Yi.c);
sys/crypto/openssl/ossl_aes_gcm.c
359
ctx->gcm.Xi.c[i] ^= out[i];
sys/crypto/openssl/ossl_aes_gcm.c
365
AES_encrypt(ctx->gcm.Yi.c, ctx->gcm.EKi.c, &ctx->aes_ks);
sys/crypto/openssl/ossl_aes_gcm.c
373
ctx->gcm.Xi.c[mres++] ^= out[n] = in[n] ^ ctx->gcm.EKi.c[n];
sys/crypto/openssl/ossl_aes_gcm.c
394
&ctx->aes_ks, ctx->gcm.Yi.c, ctx->gcm.Xi.u);
sys/crypto/openssl/ossl_aes_gcm.c
434
uint8_t c;
sys/crypto/openssl/ossl_aes_gcm.c
436
AES_encrypt(ctx->gcm.Yi.c, ctx->gcm.EKi.c,
sys/crypto/openssl/ossl_aes_gcm.c
445
c = in[i];
sys/crypto/openssl/ossl_aes_gcm.c
446
out[i] = c ^ ctx->gcm.EKi.c[n];
sys/crypto/openssl/ossl_aes_gcm.c
447
ctx->gcm.Xi.c[n] ^= c;
sys/crypto/openssl/ossl_aes_gcm.c
487
uint8_t c = *(in++);
sys/crypto/openssl/ossl_aes_gcm.c
488
*(out++) = c ^ ctx->gcm.EKi.c[n];
sys/crypto/openssl/ossl_aes_gcm.c
489
ctx->gcm.Xi.c[n] ^= c;
sys/crypto/openssl/ossl_aes_gcm.c
507
ctx->gcm.Xi.c[k] ^= in[k];
sys/crypto/openssl/ossl_aes_gcm.c
513
AES_ctr32_encrypt_blocks(in, out, j, &ctx->aes_ks, ctx->gcm.Yi.c);
sys/crypto/openssl/ossl_aes_gcm.c
525
AES_encrypt(ctx->gcm.Yi.c, ctx->gcm.EKi.c, &ctx->aes_ks);
sys/crypto/openssl/ossl_aes_gcm.c
533
uint8_t c = in[n];
sys/crypto/openssl/ossl_aes_gcm.c
534
ctx->gcm.Xi.c[mres++] ^= c;
sys/crypto/openssl/ossl_aes_gcm.c
535
out[n] = c ^ ctx->gcm.EKi.c[n];
sys/crypto/openssl/ossl_aes_gcm.c
556
ctx->gcm.Yi.c, ctx->gcm.Xi.u);
sys/crypto/openssl/ossl_aes_gcm.c
589
return timingsafe_bcmp(ctx->gcm.Xi.c, tag, len);
sys/crypto/openssl/ossl_aes_gcm.c
88
uint8_t c[16];
sys/crypto/openssl/ossl_aes_gcm.h
60
uint8_t c[16];
sys/crypto/openssl/ossl_hash.h
100
p = (unsigned char *)c->data;
sys/crypto/openssl/ossl_hash.h
101
c->num = (unsigned int)len;
sys/crypto/openssl/ossl_hash.h
110
HASH_CTX *c = c_;
sys/crypto/openssl/ossl_hash.h
111
unsigned char *p = (unsigned char *)c->data;
sys/crypto/openssl/ossl_hash.h
112
size_t n = c->num;
sys/crypto/openssl/ossl_hash.h
120
HASH_BLOCK_DATA_ORDER(c, p, 1);
sys/crypto/openssl/ossl_hash.h
126
(void)HOST_l2c(c->Nh, p);
sys/crypto/openssl/ossl_hash.h
127
(void)HOST_l2c(c->Nl, p);
sys/crypto/openssl/ossl_hash.h
129
(void)HOST_l2c(c->Nl, p);
sys/crypto/openssl/ossl_hash.h
130
(void)HOST_l2c(c->Nh, p);
sys/crypto/openssl/ossl_hash.h
133
HASH_BLOCK_DATA_ORDER(c, p, 1);
sys/crypto/openssl/ossl_hash.h
134
c->num = 0;
sys/crypto/openssl/ossl_hash.h
140
HASH_MAKE_STRING(c, md);
sys/crypto/openssl/ossl_hash.h
19
# define HOST_c2l(c,l) (l =(((unsigned long)(*((c)++)))<<24), \
sys/crypto/openssl/ossl_hash.h
20
l|=(((unsigned long)(*((c)++)))<<16), \
sys/crypto/openssl/ossl_hash.h
21
l|=(((unsigned long)(*((c)++)))<< 8), \
sys/crypto/openssl/ossl_hash.h
22
l|=(((unsigned long)(*((c)++))) ) )
sys/crypto/openssl/ossl_hash.h
23
# define HOST_l2c(l,c) (*((c)++)=(unsigned char)(((l)>>24)&0xff), \
sys/crypto/openssl/ossl_hash.h
24
*((c)++)=(unsigned char)(((l)>>16)&0xff), \
sys/crypto/openssl/ossl_hash.h
25
*((c)++)=(unsigned char)(((l)>> 8)&0xff), \
sys/crypto/openssl/ossl_hash.h
26
*((c)++)=(unsigned char)(((l) )&0xff), \
sys/crypto/openssl/ossl_hash.h
31
# define HOST_c2l(c,l) (l =(((unsigned long)(*((c)++))) ), \
sys/crypto/openssl/ossl_hash.h
32
l|=(((unsigned long)(*((c)++)))<< 8), \
sys/crypto/openssl/ossl_hash.h
33
l|=(((unsigned long)(*((c)++)))<<16), \
sys/crypto/openssl/ossl_hash.h
34
l|=(((unsigned long)(*((c)++)))<<24) )
sys/crypto/openssl/ossl_hash.h
35
# define HOST_l2c(l,c) (*((c)++)=(unsigned char)(((l) )&0xff), \
sys/crypto/openssl/ossl_hash.h
36
*((c)++)=(unsigned char)(((l)>> 8)&0xff), \
sys/crypto/openssl/ossl_hash.h
37
*((c)++)=(unsigned char)(((l)>>16)&0xff), \
sys/crypto/openssl/ossl_hash.h
38
*((c)++)=(unsigned char)(((l)>>24)&0xff), \
sys/crypto/openssl/ossl_hash.h
50
HASH_CTX *c = c_;
sys/crypto/openssl/ossl_hash.h
59
l = (c->Nl + (((HASH_LONG) len) << 3)) & 0xffffffffUL;
sys/crypto/openssl/ossl_hash.h
60
if (l < c->Nl) /* overflow */
sys/crypto/openssl/ossl_hash.h
61
c->Nh++;
sys/crypto/openssl/ossl_hash.h
62
c->Nh += (HASH_LONG) (len >> 29); /* might cause compiler warning on
sys/crypto/openssl/ossl_hash.h
64
c->Nl = l;
sys/crypto/openssl/ossl_hash.h
66
n = c->num;
sys/crypto/openssl/ossl_hash.h
68
p = (unsigned char *)c->data;
sys/crypto/openssl/ossl_hash.h
72
HASH_BLOCK_DATA_ORDER(c, p, 1);
sys/crypto/openssl/ossl_hash.h
76
c->num = 0;
sys/crypto/openssl/ossl_hash.h
86
c->num += (unsigned int)len;
sys/crypto/openssl/ossl_hash.h
93
HASH_BLOCK_DATA_ORDER(c, data, n);
sys/crypto/openssl/ossl_sha1.c
21
void sha1_block_data_order(SHA_CTX *c, const void *p, size_t len);
sys/crypto/openssl/ossl_sha1.c
29
#define HASH_MAKE_STRING(c,s) do { \
sys/crypto/openssl/ossl_sha1.c
31
ll=(c)->h0; (void)HOST_l2c(ll,(s)); \
sys/crypto/openssl/ossl_sha1.c
32
ll=(c)->h1; (void)HOST_l2c(ll,(s)); \
sys/crypto/openssl/ossl_sha1.c
33
ll=(c)->h2; (void)HOST_l2c(ll,(s)); \
sys/crypto/openssl/ossl_sha1.c
34
ll=(c)->h3; (void)HOST_l2c(ll,(s)); \
sys/crypto/openssl/ossl_sha1.c
35
ll=(c)->h4; (void)HOST_l2c(ll,(s)); \
sys/crypto/openssl/ossl_sha1.c
52
SHA_CTX *c = c_;
sys/crypto/openssl/ossl_sha1.c
53
memset(c, 0, sizeof(*c));
sys/crypto/openssl/ossl_sha1.c
54
c->h0 = INIT_DATA_h0;
sys/crypto/openssl/ossl_sha1.c
55
c->h1 = INIT_DATA_h1;
sys/crypto/openssl/ossl_sha1.c
56
c->h2 = INIT_DATA_h2;
sys/crypto/openssl/ossl_sha1.c
57
c->h3 = INIT_DATA_h3;
sys/crypto/openssl/ossl_sha1.c
58
c->h4 = INIT_DATA_h4;
sys/crypto/openssl/ossl_sha256.c
21
void sha256_block_data_order(SHA256_CTX *c, const void *in, size_t num);
sys/crypto/openssl/ossl_sha256.c
28
SHA256_CTX *c = c_;
sys/crypto/openssl/ossl_sha256.c
29
memset(c, 0, sizeof(*c));
sys/crypto/openssl/ossl_sha256.c
30
c->h[0] = 0xc1059ed8UL;
sys/crypto/openssl/ossl_sha256.c
31
c->h[1] = 0x367cd507UL;
sys/crypto/openssl/ossl_sha256.c
32
c->h[2] = 0x3070dd17UL;
sys/crypto/openssl/ossl_sha256.c
33
c->h[3] = 0xf70e5939UL;
sys/crypto/openssl/ossl_sha256.c
34
c->h[4] = 0xffc00b31UL;
sys/crypto/openssl/ossl_sha256.c
35
c->h[5] = 0x68581511UL;
sys/crypto/openssl/ossl_sha256.c
36
c->h[6] = 0x64f98fa7UL;
sys/crypto/openssl/ossl_sha256.c
37
c->h[7] = 0xbefa4fa4UL;
sys/crypto/openssl/ossl_sha256.c
38
c->md_len = SHA224_DIGEST_LENGTH;
sys/crypto/openssl/ossl_sha256.c
44
SHA256_CTX *c = c_;
sys/crypto/openssl/ossl_sha256.c
45
memset(c, 0, sizeof(*c));
sys/crypto/openssl/ossl_sha256.c
46
c->h[0] = 0x6a09e667UL;
sys/crypto/openssl/ossl_sha256.c
47
c->h[1] = 0xbb67ae85UL;
sys/crypto/openssl/ossl_sha256.c
48
c->h[2] = 0x3c6ef372UL;
sys/crypto/openssl/ossl_sha256.c
49
c->h[3] = 0xa54ff53aUL;
sys/crypto/openssl/ossl_sha256.c
50
c->h[4] = 0x510e527fUL;
sys/crypto/openssl/ossl_sha256.c
51
c->h[5] = 0x9b05688cUL;
sys/crypto/openssl/ossl_sha256.c
52
c->h[6] = 0x1f83d9abUL;
sys/crypto/openssl/ossl_sha256.c
53
c->h[7] = 0x5be0cd19UL;
sys/crypto/openssl/ossl_sha256.c
54
c->md_len = SHA256_DIGEST_LENGTH;
sys/crypto/openssl/ossl_sha256.c
72
#define HASH_MAKE_STRING(c,s) do { \
sys/crypto/openssl/ossl_sha256.c
75
switch ((c)->md_len) \
sys/crypto/openssl/ossl_sha256.c
78
{ ll=(c)->h[nn]; (void)HOST_l2c(ll,(s)); } \
sys/crypto/openssl/ossl_sha256.c
82
{ ll=(c)->h[nn]; (void)HOST_l2c(ll,(s)); } \
sys/crypto/openssl/ossl_sha512.c
100
p[sizeof(c->u) - 14] = (unsigned char)(c->Nh >> 40);
sys/crypto/openssl/ossl_sha512.c
101
p[sizeof(c->u) - 15] = (unsigned char)(c->Nh >> 48);
sys/crypto/openssl/ossl_sha512.c
102
p[sizeof(c->u) - 16] = (unsigned char)(c->Nh >> 56);
sys/crypto/openssl/ossl_sha512.c
105
sha512_block_data_order(c, p, 1);
sys/crypto/openssl/ossl_sha512.c
107
switch (c->md_len) {
sys/crypto/openssl/ossl_sha512.c
111
SHA_LONG64 t = c->h[n];
sys/crypto/openssl/ossl_sha512.c
127
SHA_LONG64 t = c->h[SHA224_DIGEST_LENGTH / 8];
sys/crypto/openssl/ossl_sha512.c
137
SHA_LONG64 t = c->h[n];
sys/crypto/openssl/ossl_sha512.c
151
SHA_LONG64 t = c->h[n];
sys/crypto/openssl/ossl_sha512.c
165
SHA_LONG64 t = c->h[n];
sys/crypto/openssl/ossl_sha512.c
186
SHA512_CTX *c = c_;
sys/crypto/openssl/ossl_sha512.c
188
unsigned char *p = c->u.p;
sys/crypto/openssl/ossl_sha512.c
194
l = (c->Nl + (((SHA_LONG64) len) << 3)) & U64(0xffffffffffffffff);
sys/crypto/openssl/ossl_sha512.c
195
if (l < c->Nl)
sys/crypto/openssl/ossl_sha512.c
196
c->Nh++;
sys/crypto/openssl/ossl_sha512.c
198
c->Nh += (((SHA_LONG64) len) >> 61);
sys/crypto/openssl/ossl_sha512.c
199
c->Nl = l;
sys/crypto/openssl/ossl_sha512.c
201
if (c->num != 0) {
sys/crypto/openssl/ossl_sha512.c
202
size_t n = sizeof(c->u) - c->num;
sys/crypto/openssl/ossl_sha512.c
205
memcpy(p + c->num, data, len), c->num += (unsigned int)len;
sys/crypto/openssl/ossl_sha512.c
208
memcpy(p + c->num, data, n), c->num = 0;
sys/crypto/openssl/ossl_sha512.c
21
void sha512_block_data_order(SHA512_CTX *c, const void *in, size_t num);
sys/crypto/openssl/ossl_sha512.c
210
sha512_block_data_order(c, p, 1);
sys/crypto/openssl/ossl_sha512.c
214
if (len >= sizeof(c->u)) {
sys/crypto/openssl/ossl_sha512.c
216
if ((size_t)data % sizeof(c->u.d[0]) != 0)
sys/crypto/openssl/ossl_sha512.c
217
while (len >= sizeof(c->u))
sys/crypto/openssl/ossl_sha512.c
218
memcpy(p, data, sizeof(c->u)),
sys/crypto/openssl/ossl_sha512.c
219
sha512_block_data_order(c, p, 1),
sys/crypto/openssl/ossl_sha512.c
220
len -= sizeof(c->u), data += sizeof(c->u);
sys/crypto/openssl/ossl_sha512.c
223
sha512_block_data_order(c, data, len / sizeof(c->u)),
sys/crypto/openssl/ossl_sha512.c
224
data += len, len %= sizeof(c->u), data -= len;
sys/crypto/openssl/ossl_sha512.c
228
memcpy(p, data, len), c->num = (int)len;
sys/crypto/openssl/ossl_sha512.c
32
SHA512_CTX *c = c_;
sys/crypto/openssl/ossl_sha512.c
33
c->h[0] = U64(0xcbbb9d5dc1059ed8);
sys/crypto/openssl/ossl_sha512.c
34
c->h[1] = U64(0x629a292a367cd507);
sys/crypto/openssl/ossl_sha512.c
35
c->h[2] = U64(0x9159015a3070dd17);
sys/crypto/openssl/ossl_sha512.c
36
c->h[3] = U64(0x152fecd8f70e5939);
sys/crypto/openssl/ossl_sha512.c
37
c->h[4] = U64(0x67332667ffc00b31);
sys/crypto/openssl/ossl_sha512.c
38
c->h[5] = U64(0x8eb44a8768581511);
sys/crypto/openssl/ossl_sha512.c
39
c->h[6] = U64(0xdb0c2e0d64f98fa7);
sys/crypto/openssl/ossl_sha512.c
40
c->h[7] = U64(0x47b5481dbefa4fa4);
sys/crypto/openssl/ossl_sha512.c
42
c->Nl = 0;
sys/crypto/openssl/ossl_sha512.c
43
c->Nh = 0;
sys/crypto/openssl/ossl_sha512.c
44
c->num = 0;
sys/crypto/openssl/ossl_sha512.c
45
c->md_len = SHA384_DIGEST_LENGTH;
sys/crypto/openssl/ossl_sha512.c
51
SHA512_CTX *c = c_;
sys/crypto/openssl/ossl_sha512.c
52
c->h[0] = U64(0x6a09e667f3bcc908);
sys/crypto/openssl/ossl_sha512.c
53
c->h[1] = U64(0xbb67ae8584caa73b);
sys/crypto/openssl/ossl_sha512.c
54
c->h[2] = U64(0x3c6ef372fe94f82b);
sys/crypto/openssl/ossl_sha512.c
55
c->h[3] = U64(0xa54ff53a5f1d36f1);
sys/crypto/openssl/ossl_sha512.c
56
c->h[4] = U64(0x510e527fade682d1);
sys/crypto/openssl/ossl_sha512.c
57
c->h[5] = U64(0x9b05688c2b3e6c1f);
sys/crypto/openssl/ossl_sha512.c
58
c->h[6] = U64(0x1f83d9abfb41bd6b);
sys/crypto/openssl/ossl_sha512.c
59
c->h[7] = U64(0x5be0cd19137e2179);
sys/crypto/openssl/ossl_sha512.c
61
c->Nl = 0;
sys/crypto/openssl/ossl_sha512.c
62
c->Nh = 0;
sys/crypto/openssl/ossl_sha512.c
63
c->num = 0;
sys/crypto/openssl/ossl_sha512.c
64
c->md_len = SHA512_DIGEST_LENGTH;
sys/crypto/openssl/ossl_sha512.c
70
SHA512_CTX *c = c_;
sys/crypto/openssl/ossl_sha512.c
71
unsigned char *p = (unsigned char *)c->u.p;
sys/crypto/openssl/ossl_sha512.c
72
size_t n = c->num;
sys/crypto/openssl/ossl_sha512.c
76
if (n > (sizeof(c->u) - 16)) {
sys/crypto/openssl/ossl_sha512.c
77
memset(p + n, 0, sizeof(c->u) - n);
sys/crypto/openssl/ossl_sha512.c
79
sha512_block_data_order(c, p, 1);
sys/crypto/openssl/ossl_sha512.c
82
memset(p + n, 0, sizeof(c->u) - 16 - n);
sys/crypto/openssl/ossl_sha512.c
84
c->u.d[SHA_LBLOCK - 2] = c->Nh;
sys/crypto/openssl/ossl_sha512.c
85
c->u.d[SHA_LBLOCK - 1] = c->Nl;
sys/crypto/openssl/ossl_sha512.c
87
p[sizeof(c->u) - 1] = (unsigned char)(c->Nl);
sys/crypto/openssl/ossl_sha512.c
88
p[sizeof(c->u) - 2] = (unsigned char)(c->Nl >> 8);
sys/crypto/openssl/ossl_sha512.c
89
p[sizeof(c->u) - 3] = (unsigned char)(c->Nl >> 16);
sys/crypto/openssl/ossl_sha512.c
90
p[sizeof(c->u) - 4] = (unsigned char)(c->Nl >> 24);
sys/crypto/openssl/ossl_sha512.c
91
p[sizeof(c->u) - 5] = (unsigned char)(c->Nl >> 32);
sys/crypto/openssl/ossl_sha512.c
92
p[sizeof(c->u) - 6] = (unsigned char)(c->Nl >> 40);
sys/crypto/openssl/ossl_sha512.c
93
p[sizeof(c->u) - 7] = (unsigned char)(c->Nl >> 48);
sys/crypto/openssl/ossl_sha512.c
94
p[sizeof(c->u) - 8] = (unsigned char)(c->Nl >> 56);
sys/crypto/openssl/ossl_sha512.c
95
p[sizeof(c->u) - 9] = (unsigned char)(c->Nh);
sys/crypto/openssl/ossl_sha512.c
96
p[sizeof(c->u) - 10] = (unsigned char)(c->Nh >> 8);
sys/crypto/openssl/ossl_sha512.c
97
p[sizeof(c->u) - 11] = (unsigned char)(c->Nh >> 16);
sys/crypto/openssl/ossl_sha512.c
98
p[sizeof(c->u) - 12] = (unsigned char)(c->Nh >> 24);
sys/crypto/openssl/ossl_sha512.c
99
p[sizeof(c->u) - 13] = (unsigned char)(c->Nh >> 32);
sys/crypto/sha1.c
134
a = H(0); b = H(1); c = H(2); d = H(3); e = H(4);
sys/crypto/sha1.c
141
tmp = S(5, a) + F0(b, c, d) + e + W(s) + K(t);
sys/crypto/sha1.c
142
e = d; d = c; c = S(30, b); b = a; a = tmp;
sys/crypto/sha1.c
147
tmp = S(5, a) + F1(b, c, d) + e + W(s) + K(t);
sys/crypto/sha1.c
148
e = d; d = c; c = S(30, b); b = a; a = tmp;
sys/crypto/sha1.c
153
tmp = S(5, a) + F2(b, c, d) + e + W(s) + K(t);
sys/crypto/sha1.c
154
e = d; d = c; c = S(30, b); b = a; a = tmp;
sys/crypto/sha1.c
159
tmp = S(5, a) + F3(b, c, d) + e + W(s) + K(t);
sys/crypto/sha1.c
160
e = d; d = c; c = S(30, b); b = a; a = tmp;
sys/crypto/sha1.c
165
H(2) = H(2) + c;
sys/crypto/sha1.c
207
PUTPAD(ctxt->c.b8[0]); PUTPAD(ctxt->c.b8[1]);
sys/crypto/sha1.c
208
PUTPAD(ctxt->c.b8[2]); PUTPAD(ctxt->c.b8[3]);
sys/crypto/sha1.c
209
PUTPAD(ctxt->c.b8[4]); PUTPAD(ctxt->c.b8[5]);
sys/crypto/sha1.c
210
PUTPAD(ctxt->c.b8[6]); PUTPAD(ctxt->c.b8[7]);
sys/crypto/sha1.c
212
PUTPAD(ctxt->c.b8[7]); PUTPAD(ctxt->c.b8[6]);
sys/crypto/sha1.c
213
PUTPAD(ctxt->c.b8[5]); PUTPAD(ctxt->c.b8[4]);
sys/crypto/sha1.c
214
PUTPAD(ctxt->c.b8[3]); PUTPAD(ctxt->c.b8[2]);
sys/crypto/sha1.c
215
PUTPAD(ctxt->c.b8[1]); PUTPAD(ctxt->c.b8[0]);
sys/crypto/sha1.c
237
ctxt->c.b64[0] += copysiz * 8;
sys/crypto/sha1.c
59
#define F0(b, c, d) (((b) & (c)) | ((~(b)) & (d)))
sys/crypto/sha1.c
60
#define F1(b, c, d) (((b) ^ (c)) ^ (d))
sys/crypto/sha1.c
61
#define F2(b, c, d) (((b) & (c)) | ((b) & (d)) | ((c) & (d)))
sys/crypto/sha1.c
62
#define F3(b, c, d) (((b) ^ (c)) ^ (d))
sys/crypto/sha1.c
68
#define BCOUNT (ctxt->c.b64[0] / 8)
sys/crypto/sha1.c
75
ctxt->c.b64[0] += 8; \
sys/crypto/sha1.c
93
uint32_t a, b, c, d, e;
sys/crypto/sha1.h
50
} c;
sys/crypto/sha2/sha256c.c
117
#define RND(a, b, c, d, e, f, g, h, k) \
sys/crypto/sha2/sha256c.c
120
h += S0(a) + Maj(a, b, c);
sys/crypto/sha2/sha512c.c
146
#define RND(a, b, c, d, e, f, g, h, k) \
sys/crypto/sha2/sha512c.c
149
h += S0(a) + Maj(a, b, c);
sys/ddb/db_command.c
241
struct db_command *c, *last;
sys/ddb/db_command.c
251
LIST_FOREACH(c, list, next) {
sys/ddb/db_command.c
252
int n = strcmp(cmd->name, c->name);
sys/ddb/db_command.c
262
LIST_INSERT_BEFORE(c, cmd, next);
sys/ddb/db_command.c
265
last = c;
sys/ddb/db_command.c
279
struct db_command *c;
sys/ddb/db_command.c
281
LIST_FOREACH(c, list, next) {
sys/ddb/db_command.c
282
if (cmd == c) {
sys/ddb/db_command.c
298
int c;
sys/ddb/db_command.c
302
while ((c = *lp) == *rp) {
sys/ddb/db_command.c
303
if (c == 0) {
sys/ddb/db_command.c
312
if (c == 0) {
sys/ddb/db_examine.c
109
switch (c) {
sys/ddb/db_examine.c
68
int c;
sys/ddb/db_examine.c
77
while ((c = *fp++) != 0) {
sys/ddb/db_examine.c
78
switch (c) {
sys/ddb/db_input.c
126
db_inputchar(int c)
sys/ddb/db_input.c
132
if (c == '[' || c == 'O')
sys/ddb/db_input.c
144
switch (c) {
sys/ddb/db_input.c
146
c = CTRL('p');
sys/ddb/db_input.c
149
c = CTRL('n');
sys/ddb/db_input.c
152
c = CTRL('f');
sys/ddb/db_input.c
155
c = CTRL('b');
sys/ddb/db_input.c
162
switch (c) {
sys/ddb/db_input.c
220
c = db_lc[-2];
sys/ddb/db_input.c
222
db_lc[-1] = c;
sys/ddb/db_input.c
290
c = '\r';
sys/ddb/db_input.c
294
*db_le++ = c;
sys/ddb/db_input.c
300
else if (c >= ' ' && c <= '~') {
sys/ddb/db_input.c
305
*db_lc++ = c;
sys/ddb/db_input.c
307
cnputc(c);
sys/ddb/db_input.c
320
int c;
sys/ddb/db_input.c
323
c = cngetc();
sys/ddb/db_input.c
325
c = db_raw_pop();
sys/ddb/db_input.c
326
if (c == '\r')
sys/ddb/db_input.c
327
c = '\n';
sys/ddb/db_input.c
329
return (c);
sys/ddb/db_input.c
342
db_raw_push(int c)
sys/ddb/db_input.c
347
db_raw[(db_raw_pos + db_raw_cnt++) % DB_RAW_SIZE] = c;
sys/ddb/db_input.c
421
int c;
sys/ddb/db_input.c
431
c = cncheckc();
sys/ddb/db_input.c
432
switch (c) {
sys/ddb/db_input.c
442
c = cncheckc();
sys/ddb/db_input.c
443
if (c == CTRL('c'))
sys/ddb/db_input.c
445
} while (c != CTRL('q'));
sys/ddb/db_input.c
450
db_raw_push(c);
sys/ddb/db_input.c
75
#define CTRL(c) ((c) & 0x1f)
sys/ddb/db_input.c
80
static int db_inputchar(int c);
sys/ddb/db_input.c
81
static void db_putnchars(int c, int count);
sys/ddb/db_input.c
95
db_putnchars(int c, int count)
sys/ddb/db_input.c
98
cnputc(c);
sys/ddb/db_lex.c
100
int c;
sys/ddb/db_lex.c
103
c = -1;
sys/ddb/db_lex.c
105
c = *db_lp++;
sys/ddb/db_lex.c
106
return (c);
sys/ddb/db_lex.c
110
db_unread_char(int c)
sys/ddb/db_lex.c
113
if (c == -1) {
sys/ddb/db_lex.c
120
if (*db_lp != c)
sys/ddb/db_lex.c
167
int c, n, radix_mode;
sys/ddb/db_lex.c
188
c = db_read_char();
sys/ddb/db_lex.c
189
for (n = 0; c <= ' ' || c > '~'; n++) {
sys/ddb/db_lex.c
190
if (c == '\n' || c == -1)
sys/ddb/db_lex.c
192
c = db_read_char();
sys/ddb/db_lex.c
195
db_unread_char(c);
sys/ddb/db_lex.c
199
if ((c >= '0' && c <= '9') ||
sys/ddb/db_lex.c
201
((c >= 'a' && c <= 'f') ||
sys/ddb/db_lex.c
202
(c >= 'A' && c <= 'F')))) {
sys/ddb/db_lex.c
208
else if (c != '0')
sys/ddb/db_lex.c
211
c = db_read_char();
sys/ddb/db_lex.c
212
if (c == 'O' || c == 'o')
sys/ddb/db_lex.c
214
else if (c == 'T' || c == 't')
sys/ddb/db_lex.c
216
else if (c == 'X' || c == 'x')
sys/ddb/db_lex.c
220
db_unread_char(c);
sys/ddb/db_lex.c
222
c = db_read_char();
sys/ddb/db_lex.c
226
if (c >= '0' && c <= ((r == 8) ? '7' : '9'))
sys/ddb/db_lex.c
227
digit = c - '0';
sys/ddb/db_lex.c
228
else if (r == 16 && ((c >= 'A' && c <= 'F') ||
sys/ddb/db_lex.c
229
(c >= 'a' && c <= 'f'))) {
sys/ddb/db_lex.c
230
if (c >= 'a')
sys/ddb/db_lex.c
231
digit = c - 'a' + 10;
sys/ddb/db_lex.c
232
else if (c >= 'A')
sys/ddb/db_lex.c
233
digit = c - 'A' + 10;
sys/ddb/db_lex.c
238
c = db_read_char();
sys/ddb/db_lex.c
240
if ((c >= '0' && c <= '9') ||
sys/ddb/db_lex.c
241
(c >= 'A' && c <= 'Z') ||
sys/ddb/db_lex.c
242
(c >= 'a' && c <= 'z') ||
sys/ddb/db_lex.c
243
(c == '_'))
sys/ddb/db_lex.c
249
db_unread_char(c);
sys/ddb/db_lex.c
252
if ((c >= 'A' && c <= 'Z') ||
sys/ddb/db_lex.c
253
(c >= 'a' && c <= 'z') ||
sys/ddb/db_lex.c
254
c == '_' || c == '\\')
sys/ddb/db_lex.c
260
if (c == '\\') {
sys/ddb/db_lex.c
261
c = db_read_char();
sys/ddb/db_lex.c
262
if (c == '\n' || c == -1)
sys/ddb/db_lex.c
265
*cp++ = c;
sys/ddb/db_lex.c
267
c = db_read_char();
sys/ddb/db_lex.c
268
if ((c >= 'A' && c <= 'Z') ||
sys/ddb/db_lex.c
269
(c >= 'a' && c <= 'z') ||
sys/ddb/db_lex.c
270
(c >= '0' && c <= '9') ||
sys/ddb/db_lex.c
271
c == '_' || c == '\\' || c == ':' || c == '.')
sys/ddb/db_lex.c
273
if (c == '\\') {
sys/ddb/db_lex.c
274
c = db_read_char();
sys/ddb/db_lex.c
275
if (c == '\n' || c == -1)
sys/ddb/db_lex.c
278
*cp++ = c;
sys/ddb/db_lex.c
291
db_unread_char(c);
sys/ddb/db_lex.c
295
switch (c) {
sys/ddb/db_lex.c
301
c = db_read_char();
sys/ddb/db_lex.c
302
if (c == '.')
sys/ddb/db_lex.c
304
db_unread_char(c);
sys/ddb/db_lex.c
311
c = db_read_char();
sys/ddb/db_lex.c
312
if (c == '=')
sys/ddb/db_lex.c
314
db_unread_char(c);
sys/ddb/db_lex.c
331
c = db_read_char();
sys/ddb/db_lex.c
332
if (c == '='){
sys/ddb/db_lex.c
335
db_unread_char(c);
sys/ddb/db_lex.c
338
c = db_read_char();
sys/ddb/db_lex.c
339
if (c == ':')
sys/ddb/db_lex.c
341
db_unread_char(c);
sys/ddb/db_lex.c
346
c = db_read_char();
sys/ddb/db_lex.c
347
if (c == '&')
sys/ddb/db_lex.c
349
db_unread_char(c);
sys/ddb/db_lex.c
352
c = db_read_char();
sys/ddb/db_lex.c
353
if (c == '|')
sys/ddb/db_lex.c
355
db_unread_char(c);
sys/ddb/db_lex.c
358
c = db_read_char();
sys/ddb/db_lex.c
359
if (c == '<')
sys/ddb/db_lex.c
361
if (c == '=')
sys/ddb/db_lex.c
363
db_unread_char(c);
sys/ddb/db_lex.c
366
c = db_read_char();
sys/ddb/db_lex.c
367
if (c == '>')
sys/ddb/db_lex.c
369
if (c == '=')
sys/ddb/db_lex.c
371
db_unread_char(c);
sys/ddb/db_output.c
119
db_putchar(int c, void *arg)
sys/ddb/db_output.c
125
db_putc(c);
sys/ddb/db_output.c
127
*dap->da_pnext++ = c;
sys/ddb/db_output.c
134
if (dap->da_remain < 2 || c == '\n') {
sys/ddb/db_output.c
144
db_putc(int c)
sys/ddb/db_output.c
152
printf("%c", c);
sys/ddb/db_output.c
155
if (c == '\r' || c == '\n')
sys/ddb/db_output.c
157
if (c == '\n' && db_maxlines > 0) {
sys/ddb/db_output.c
166
if (c > ' ' && c <= '~') {
sys/ddb/db_output.c
173
cnputc(c);
sys/ddb/db_output.c
174
db_capture_writech(c);
sys/ddb/db_output.c
178
else if (c == '\n') {
sys/ddb/db_output.c
180
cnputc(c);
sys/ddb/db_output.c
181
db_capture_writech(c);
sys/ddb/db_output.c
191
else if (c == '\r') {
sys/ddb/db_output.c
193
cnputc(c);
sys/ddb/db_output.c
194
db_capture_writech(c);
sys/ddb/db_output.c
199
else if (c == '\t') {
sys/ddb/db_output.c
203
else if (c == ' ') {
sys/ddb/db_output.c
207
else if (c == '\007') {
sys/ddb/db_output.c
209
cnputc(c);
sys/ddb/db_output.c
254
int c, done;
sys/ddb/db_output.c
260
c = db_getc();
sys/ddb/db_output.c
261
switch (c) {
sys/ddb/db_output.c
83
static void db_putc(int c);
sys/ddb/db_output.c
85
static void db_putchar(int c, void *arg);
sys/ddb/db_sym.c
209
db_eqname(const char *src, const char *dst, int c)
sys/ddb/db_sym.c
213
if (src[0] == c)
sys/dev/acpica/acpi_apei.c
392
int i, c;
sys/dev/acpica/acpi_apei.c
397
c = (ges->BlockStatus >> 4) & 0x3ff;
sys/dev/acpica/acpi_apei.c
402
for (off = i = 0; i < c && off + sizeof(*ged) <= len; i++) {
sys/dev/acpica/acpi_battery.c
481
#define ACPI_REGISTER_IOCTL(a, b, c) do { \
sys/dev/acpica/acpi_battery.c
482
error = acpi_register_ioctl(a, b, c); \
sys/dev/ahci/ahciem.c
155
for (c = 0; c < enc->channels; c++) {
sys/dev/ahci/ahciem.c
156
if ((enc->ichannels & (1 << c)) == 0)
sys/dev/ahci/ahciem.c
159
enc->leds[c * AHCI_NUM_LEDS + i].dev = dev;
sys/dev/ahci/ahciem.c
160
enc->leds[c * AHCI_NUM_LEDS + i].num =
sys/dev/ahci/ahciem.c
161
c * AHCI_NUM_LEDS + i;
sys/dev/ahci/ahciem.c
165
device_get_nameunit(parent), c);
sys/dev/ahci/ahciem.c
166
enc->leds[c * AHCI_NUM_LEDS + 0].led =
sys/dev/ahci/ahciem.c
168
&enc->leds[c * AHCI_NUM_LEDS + 0], buf);
sys/dev/ahci/ahciem.c
171
device_get_nameunit(parent), c);
sys/dev/ahci/ahciem.c
172
enc->leds[c * AHCI_NUM_LEDS + 1].led =
sys/dev/ahci/ahciem.c
174
&enc->leds[c * AHCI_NUM_LEDS + 1], buf);
sys/dev/ahci/ahciem.c
176
device_get_nameunit(parent), c);
sys/dev/ahci/ahciem.c
177
enc->leds[c * AHCI_NUM_LEDS + 2].led =
sys/dev/ahci/ahciem.c
179
&enc->leds[c * AHCI_NUM_LEDS + 2], buf);
sys/dev/ahci/ahciem.c
290
ahci_em_setleds(device_t dev, int c)
sys/dev/ahci/ahciem.c
301
if (enc->status[c][2] & SESCTL_RQSACT) /* Activity */
sys/dev/ahci/ahciem.c
303
if (enc->status[c][1] & SESCTL_RQSRR) /* Rebuild */
sys/dev/ahci/ahciem.c
305
else if (enc->status[c][2] & SESCTL_RQSID) /* Identification */
sys/dev/ahci/ahciem.c
307
else if (enc->status[c][3] & SESCTL_RQSFLT) /* Fault */
sys/dev/ahci/ahciem.c
317
ATA_OUTL(enc->r_memt, 4, c | (0 << 8) | (val << 16));
sys/dev/ahci/ahciem.c
326
int c, l;
sys/dev/ahci/ahciem.c
330
c = led->num / AHCI_NUM_LEDS;
sys/dev/ahci/ahciem.c
335
enc->status[c][2] |= 0x80;
sys/dev/ahci/ahciem.c
337
enc->status[c][2] &= ~0x80;
sys/dev/ahci/ahciem.c
340
enc->status[c][2] |= SESCTL_RQSID;
sys/dev/ahci/ahciem.c
342
enc->status[c][2] &= ~SESCTL_RQSID;
sys/dev/ahci/ahciem.c
345
enc->status[c][3] |= SESCTL_RQSFLT;
sys/dev/ahci/ahciem.c
347
enc->status[c][3] &= SESCTL_RQSFLT;
sys/dev/ahci/ahciem.c
349
ahci_em_setleds(led->dev, c);
sys/dev/ahci/ahciem.c
60
static void ahci_em_setleds(device_t dev, int c);
sys/dev/ahci/ahciem.c
77
int i, c, rid, error;
sys/dev/aic7xxx/aic79xx_osm.c
1436
int c;
sys/dev/aic7xxx/aic79xx_osm.c
1447
while ((c = *modif++) != '\0') {
sys/dev/aic7xxx/aic79xx_osm.c
1448
switch (c) {
sys/dev/alc/if_alc.c
1733
#define ALC_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/alc/if_alc.c
1734
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/alc/if_alc.c
1735
#define ALC_SYSCTL_STAT_ADD64(c, h, n, p, d) \
sys/dev/alc/if_alc.c
1736
SYSCTL_ADD_UQUAD(c, h, OID_AUTO, n, CTLFLAG_RD, p, d)
sys/dev/ale/if_ale.c
744
#define ALE_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/ale/if_ale.c
745
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/ale/if_ale.c
747
#define ALE_SYSCTL_STAT_ADD64(c, h, n, p, d) \
sys/dev/ale/if_ale.c
748
SYSCTL_ADD_UQUAD(c, h, OID_AUTO, n, CTLFLAG_RD, p, d)
sys/dev/ath/ath_hal/ah.c
1255
HAL_CHANNEL_INTERNAL *c;
sys/dev/ath/ath_hal/ah.c
1270
c = &AH_PRIVATE(ah)->ah_channels[i];
sys/dev/ath/ath_hal/ah.c
1271
if (c->rawNoiseFloor >= 0)
sys/dev/ath/ath_hal/ah.c
1274
mode = IS_CHAN_5GHZ(c) ? WIRELESS_MODE_11a : WIRELESS_MODE_11g;
sys/dev/ath/ath_hal/ah.c
1275
nf = c->rawNoiseFloor + NOISE_FLOOR[mode] +
sys/dev/ath/ath_hal/ah.c
1276
ath_hal_getNfAdjust(ah, c);
sys/dev/ath/ath_hal/ah.c
1277
if (IS_CHAN_5GHZ(c)) {
sys/dev/ath/ath_hal/ah.c
1281
(c->rawNoiseFloor + ath_hal_getNfAdjust(ah, c));
sys/dev/ath/ath_hal/ah.c
1287
(c->rawNoiseFloor + ath_hal_getNfAdjust(ah, c));
sys/dev/ath/ath_hal/ah.c
1294
c = &AH_PRIVATE(ah)->ah_channels[i];
sys/dev/ath/ath_hal/ah.c
1295
if (c->rawNoiseFloor >= 0)
sys/dev/ath/ath_hal/ah.c
1298
c->noiseFloorAdjust = ath_hal_getNfAdjust(ah, c) +
sys/dev/ath/ath_hal/ah.c
1299
(IS_CHAN_5GHZ(c) ? correct5 : correct2);
sys/dev/ath/ath_hal/ah.c
1301
c->channel, c->rawNoiseFloor, c->noiseFloorAdjust);
sys/dev/ath/ath_hal/ah.c
597
const struct ieee80211_channel *c = AH_PRIVATE(ah)->ah_curchan;
sys/dev/ath/ath_hal/ah.c
602
if (c != AH_NULL && IS_5GHZ_FAST_CLOCK_EN(ah, c)) {
sys/dev/ath/ath_hal/ah.c
604
if (IEEE80211_IS_CHAN_HT40(c))
sys/dev/ath/ath_hal/ah.c
606
} else if (c != AH_NULL) {
sys/dev/ath/ath_hal/ah.c
607
clks = usecs * CLOCK_RATE[ath_hal_chan2wmode(ah, c)];
sys/dev/ath/ath_hal/ah.c
608
if (IEEE80211_IS_CHAN_HT40(c))
sys/dev/ath/ath_hal/ah.c
614
if (c != AH_NULL && IEEE80211_IS_CHAN_HALF(c))
sys/dev/ath/ath_hal/ah.c
616
else if (c != AH_NULL && IEEE80211_IS_CHAN_QUARTER(c))
sys/dev/ath/ath_hal/ah.c
637
const struct ieee80211_channel *c = AH_PRIVATE(ah)->ah_curchan;
sys/dev/ath/ath_hal/ah.c
642
if (c != AH_NULL && IS_5GHZ_FAST_CLOCK_EN(ah, c)) {
sys/dev/ath/ath_hal/ah.c
644
if (IEEE80211_IS_CHAN_HT40(c))
sys/dev/ath/ath_hal/ah.c
646
} else if (c != AH_NULL) {
sys/dev/ath/ath_hal/ah.c
647
psec = (clks * 1000000ULL) / CLOCK_RATE[ath_hal_chan2wmode(ah, c)];
sys/dev/ath/ath_hal/ah.c
648
if (IEEE80211_IS_CHAN_HT40(c))
sys/dev/ath/ath_hal/ah_btcoex.h
515
#define MCI_ANT_ARCH_PA_LNA_SHARED(c) \
sys/dev/ath/ath_hal/ah_btcoex.h
516
((MS(c, ATH_MCI_CONFIG_ANT_ARCH) == ATH_MCI_ANT_ARCH_1_ANT_PA_LNA_SHARED) || \
sys/dev/ath/ath_hal/ah_btcoex.h
517
(MS(c, ATH_MCI_CONFIG_ANT_ARCH) == ATH_MCI_ANT_ARCH_2_ANT_PA_LNA_SHARED))
sys/dev/ath/ath_hal/ah_internal.h
565
char c[4];
sys/dev/ath/ath_hal/ah_internal.h
568
return (u.c[0] == 0);
sys/dev/ath/ath_hal/ah_internal.h
709
ath_hal_checkchannel(struct ath_hal *ah, const struct ieee80211_channel *c)
sys/dev/ath/ath_hal/ah_internal.h
713
HALASSERT(c->ic_devdata < AH_PRIVATE(ah)->ah_nchan);
sys/dev/ath/ath_hal/ah_internal.h
714
cc = &AH_PRIVATE(ah)->ah_channels[c->ic_devdata];
sys/dev/ath/ath_hal/ah_internal.h
715
HALASSERT(c->ic_freq == cc->channel || IEEE80211_IS_CHAN_GSM(c));
sys/dev/ath/ath_hal/ah_internal.h
730
ath_hal_gethwchannel(struct ath_hal *ah, const struct ieee80211_channel *c)
sys/dev/ath/ath_hal/ah_internal.h
732
return ath_hal_checkchannel(ah, c)->channel;
sys/dev/ath/ath_hal/ah_regdomain.c
399
setchannelflags(struct ieee80211_channel *c, REG_DMN_FREQ_BAND *fband,
sys/dev/ath/ath_hal/ah_regdomain.c
403
c->ic_flags |= IEEE80211_CHAN_PASSIVE;
sys/dev/ath/ath_hal/ah_regdomain.c
405
c->ic_flags |= IEEE80211_CHAN_DFS;
sys/dev/ath/ath_hal/ah_regdomain.c
406
if (IEEE80211_IS_CHAN_5GHZ(c) && (rd->flags & DISALLOW_ADHOC_11A))
sys/dev/ath/ath_hal/ah_regdomain.c
407
c->ic_flags |= IEEE80211_CHAN_NOADHOC;
sys/dev/ath/ath_hal/ah_regdomain.c
408
if (IEEE80211_IS_CHAN_TURBO(c) &&
sys/dev/ath/ath_hal/ah_regdomain.c
410
c->ic_flags |= IEEE80211_CHAN_NOADHOC;
sys/dev/ath/ath_hal/ah_regdomain.c
412
c->ic_flags |= IEEE80211_CHAN_NOHOSTAP;
sys/dev/ath/ath_hal/ah_regdomain.c
414
c->ic_flags |= IEEE80211_CHAN_4MSXMIT;
sys/dev/ath/ath_hal/ah_regdomain.c
416
c->ic_flags |= CHANNEL_NFCREQUIRED;
sys/dev/ath/ath_hal/ah_regdomain.c
424
struct ieee80211_channel *c;
sys/dev/ath/ath_hal/ah_regdomain.c
433
c = &chans[(*nchans)++];
sys/dev/ath/ath_hal/ah_regdomain.c
434
c->ic_freq = freq;
sys/dev/ath/ath_hal/ah_regdomain.c
435
c->ic_flags = flags;
sys/dev/ath/ath_hal/ah_regdomain.c
436
setchannelflags(c, fband, rd);
sys/dev/ath/ath_hal/ah_regdomain.c
437
c->ic_maxregpower = fband->powerDfs;
sys/dev/ath/ath_hal/ah_regdomain.c
438
ath_hal_getpowerlimits(ah, c);
sys/dev/ath/ath_hal/ah_regdomain.c
439
c->ic_maxantgain = fband->antennaMax;
sys/dev/ath/ath_hal/ah_regdomain.c
448
struct ieee80211_channel *c;
sys/dev/ath/ath_hal/ah_regdomain.c
460
c = &chans[(*nchans)++];
sys/dev/ath/ath_hal/ah_regdomain.c
461
c[0] = c[-1];
sys/dev/ath/ath_hal/ah_regdomain.c
462
c->ic_freq = freq;
sys/dev/ath/ath_hal/ah_regdomain.c
464
ath_hal_getpowerlimits(ah, c);
sys/dev/ath/ath_hal/ah_regdomain.c
765
struct ieee80211_channel *c = &chans[i];
sys/dev/ath/ath_hal/ah_regdomain.c
767
if (chans[j].ic_freq == c->ic_freq) {
sys/dev/ath/ath_hal/ah_regdomain.c
768
c->ic_devdata = chans[j].ic_devdata;
sys/dev/ath/ath_hal/ah_regdomain.c
785
freq = IEEE80211_IS_CHAN_GSM(c) ?
sys/dev/ath/ath_hal/ah_regdomain.c
786
ath_hal_mapgsm(sku, c->ic_freq) : c->ic_freq;
sys/dev/ath/ath_hal/ah_regdomain.c
790
__func__, next, c->ic_freq, c->ic_flags, freq);
sys/dev/ath/ath_hal/ah_regdomain.c
800
c->ic_devdata = next;
sys/dev/ath/ath_hal/ah_regdomain.c
898
ath_hal_checkchannel(struct ath_hal *ah, const struct ieee80211_channel *c)
sys/dev/ath/ath_hal/ah_regdomain.c
900
HAL_CHANNEL_INTERNAL *cc = &AH_PRIVATE(ah)->ah_channels[c->ic_devdata];
sys/dev/ath/ath_hal/ah_regdomain.c
902
if (c->ic_devdata < AH_PRIVATE(ah)->ah_nchan &&
sys/dev/ath/ath_hal/ah_regdomain.c
903
(c->ic_freq == cc->channel || IEEE80211_IS_CHAN_GSM(c)))
sys/dev/ath/ath_hal/ah_regdomain.c
905
if (c->ic_devdata >= AH_PRIVATE(ah)->ah_nchan) {
sys/dev/ath/ath_hal/ah_regdomain.c
908
__func__, c->ic_devdata, AH_PRIVATE(ah)->ah_nchan);
sys/dev/ath/ath_hal/ah_regdomain.c
909
HALASSERT(c->ic_devdata < AH_PRIVATE(ah)->ah_nchan);
sys/dev/ath/ath_hal/ah_regdomain.c
913
__func__, c->ic_freq, c->ic_flags, c->ic_devdata,
sys/dev/ath/ath_hal/ah_regdomain.c
915
HALASSERT(c->ic_freq == cc->channel || IEEE80211_IS_CHAN_GSM(c));
sys/dev/ath/ath_hal/ah_regdomain.c
930
ath_hal_getctl(struct ath_hal *ah, const struct ieee80211_channel *c)
sys/dev/ath/ath_hal/ah_regdomain.c
937
else if (IEEE80211_IS_CHAN_2GHZ(c))
sys/dev/ath/ath_hal/ah_regdomain.c
941
if (IEEE80211_IS_CHAN_B(c))
sys/dev/ath/ath_hal/ah_regdomain.c
943
if (IEEE80211_IS_CHAN_G(c))
sys/dev/ath/ath_hal/ah_regdomain.c
945
if (IEEE80211_IS_CHAN_108G(c))
sys/dev/ath/ath_hal/ah_regdomain.c
947
if (IEEE80211_IS_CHAN_TURBO(c))
sys/dev/ath/ath_hal/ah_regdomain.c
949
if (IEEE80211_IS_CHAN_A(c))
sys/dev/ath/ath_hal/ar5210/ar5210_reset.c
996
ar5210GetNfAdjust(struct ath_hal *ah, const HAL_CHANNEL_INTERNAL *c)
sys/dev/ath/ath_hal/ar5211/ar5211_reset.c
1001
ar5211GetNfAdjust(struct ath_hal *ah, const HAL_CHANNEL_INTERNAL *c)
sys/dev/ath/ath_hal/ar5211/ar5211_reset.c
1020
for (i = 0; c->channel <= adjust5111[i].freqLow; i++)
sys/dev/ath/ath_hal/ar5212/ar5111.c
639
ar5111GetNfAdjust(struct ath_hal *ah, const HAL_CHANNEL_INTERNAL *c)
sys/dev/ath/ath_hal/ar5212/ar5111.c
659
for (i = 0; c->channel <= adjust5111[i].freqLow; i++)
sys/dev/ath/ath_hal/ar5212/ar5212_misc.c
767
ar5212GetNfAdjust(struct ath_hal *ah, const HAL_CHANNEL_INTERNAL *c)
sys/dev/ath/ath_hal/ar5212/ar5212_misc.c
787
for (i = 0; c->channel <= adjustDef[i].freqLow; i++)
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c
78
#define V(r, c) (ia)->data[((r)*(ia)->cols) + (c)]
sys/dev/ath/ath_hal/ar5312/ar5312_reset.c
62
#define V(r, c) (ia)->data[((r)*(ia)->cols) + (c)]
sys/dev/ath/ath_hal/ar5416/ar2133.c
505
ar2133GetNfAdjust(struct ath_hal *ah, const HAL_CHANNEL_INTERNAL *c)
sys/dev/ath/ath_hal/ar9002/ar9280.c
396
ar9280GetNfAdjust(struct ath_hal *ah, const HAL_CHANNEL_INTERNAL *c)
sys/dev/ath/ath_hal/ar9002/ar9280.c
43
int16_t ar9280GetNfAdjust(struct ath_hal *ah, const HAL_CHANNEL_INTERNAL *c);
sys/dev/ath/ath_hal/ar9002/ar9287.c
338
ar9287GetNfAdjust(struct ath_hal *ah, const HAL_CHANNEL_INTERNAL *c)
sys/dev/ath/ath_hal/ar9002/ar9287.c
43
int16_t ar9287GetNfAdjust(struct ath_hal *ah, const HAL_CHANNEL_INTERNAL *c);
sys/dev/atkbdc/atkbd.c
1172
atkbd_reset(KBDC kbdc, int flags, int c)
sys/dev/atkbdc/atkbd.c
1196
ALLOW_DISABLE_KBD(kbdc) ? 0xff : KBD_KBD_CONTROL_BITS, c);
sys/dev/atkbdc/atkbd.c
1298
int c;
sys/dev/atkbdc/atkbd.c
1314
c = get_controller_command_byte(kbdc);
sys/dev/atkbdc/atkbd.c
1315
if (c == -1) {
sys/dev/atkbdc/atkbd.c
1350
ALLOW_DISABLE_KBD(kbdc) ? 0xff : KBD_KBD_CONTROL_BITS, c);
sys/dev/atkbdc/atkbd.c
1364
int c;
sys/dev/atkbdc/atkbd.c
1376
c = get_controller_command_byte(kbdc);
sys/dev/atkbdc/atkbd.c
1377
if (c == -1) {
sys/dev/atkbdc/atkbd.c
1385
c);
sys/dev/atkbdc/atkbd.c
1388
c |= KBD_OVERRIDE_KBD_LOCK;
sys/dev/atkbdc/atkbd.c
1400
atkbd_reset(kbdc, flags, c)) {
sys/dev/atkbdc/atkbd.c
1416
else if ((c & KBD_TRANSLATION) == 0) {
sys/dev/atkbdc/atkbd.c
1450
atkbd_reset(kbdc, flags, c)) {
sys/dev/atkbdc/atkbd.c
1464
c &= ~KBD_TRANSLATION;
sys/dev/atkbdc/atkbd.c
1472
? 0xff : KBD_KBD_CONTROL_BITS, c);
sys/dev/atkbdc/atkbd.c
1493
(c & (KBD_TRANSLATION | KBD_OVERRIDE_KBD_LOCK))
sys/dev/atkbdc/atkbd.c
1502
KBD_OVERRIDE_KBD_LOCK), c);
sys/dev/atkbdc/atkbd.c
1524
c = get_controller_command_byte(kbdc);
sys/dev/atkbdc/atkbd.c
1525
if ((c == -1)
sys/dev/atkbdc/atkbd.c
1549
c & (KBD_KBD_CONTROL_BITS | KBD_AUX_CONTROL_BITS))) {
sys/dev/atkbdc/atkbd.c
544
int c;
sys/dev/atkbdc/atkbd.c
570
c = atkbd_read_char(kbd, FALSE);
sys/dev/atkbdc/atkbd.c
571
} while (c != NOKEY);
sys/dev/atkbdc/atkbd.c
626
int c;
sys/dev/atkbdc/atkbd.c
629
c = read_kbd_data(((atkbd_state_t *)kbd->kb_data)->kbdc);
sys/dev/atkbdc/atkbd.c
631
c = read_kbd_data_no_wait(((atkbd_state_t *)kbd->kb_data)->kbdc);
sys/dev/atkbdc/atkbd.c
632
if (c != -1)
sys/dev/atkbdc/atkbd.c
634
return (KBD_IS_ACTIVE(kbd) ? c : -1);
sys/dev/atkbdc/atkbd.c
83
static int atkbd_reset(KBDC kbdc, int flags, int c);
sys/dev/atkbdc/atkbdc.c
1002
log(LOG_DEBUG, "kbdc: RESET_KBD status:%04x\n", c);
sys/dev/atkbdc/atkbdc.c
1003
if (c != KBD_RESET_DONE)
sys/dev/atkbdc/atkbdc.c
1016
int c = PSM_RESEND; /* keep the compiler happy */
sys/dev/atkbdc/atkbdc.c
1026
c = read_aux_data_no_wait(p);
sys/dev/atkbdc/atkbdc.c
1027
if (c != -1)
sys/dev/atkbdc/atkbdc.c
1031
log(LOG_DEBUG, "kbdc: RESET_AUX return code:%04x\n", c);
sys/dev/atkbdc/atkbdc.c
1032
if (c == PSM_ACK) /* aux dev is about to reset... */
sys/dev/atkbdc/atkbdc.c
1041
c = read_aux_data_no_wait(p); /* RESET_DONE/RESET_FAIL */
sys/dev/atkbdc/atkbdc.c
1042
if (c != -1) /* wait again if the controller is not ready */
sys/dev/atkbdc/atkbdc.c
1046
log(LOG_DEBUG, "kbdc: RESET_AUX status:%04x\n", c);
sys/dev/atkbdc/atkbdc.c
1047
if (c != PSM_RESET_DONE) /* reset status */
sys/dev/atkbdc/atkbdc.c
1050
c = read_aux_data(p); /* device ID */
sys/dev/atkbdc/atkbdc.c
1052
log(LOG_DEBUG, "kbdc: RESET_AUX ID:%04x\n", c);
sys/dev/atkbdc/atkbdc.c
1064
int c = KBD_DIAG_FAIL;
sys/dev/atkbdc/atkbdc.c
1078
c = read_controller_data(p); /* DIAG_DONE/DIAG_FAIL */
sys/dev/atkbdc/atkbdc.c
1079
if (c != -1) /* wait again if the controller is not ready */
sys/dev/atkbdc/atkbdc.c
1083
log(LOG_DEBUG, "kbdc: DIAGNOSE status:%04x\n", c);
sys/dev/atkbdc/atkbdc.c
1084
return (c == KBD_DIAG_DONE);
sys/dev/atkbdc/atkbdc.c
1092
int c = -1;
sys/dev/atkbdc/atkbdc.c
1104
c = read_controller_data(p);
sys/dev/atkbdc/atkbdc.c
1105
if (c != -1) /* try again if the controller is not ready */
sys/dev/atkbdc/atkbdc.c
1109
log(LOG_DEBUG, "kbdc: TEST_KBD_PORT status:%04x\n", c);
sys/dev/atkbdc/atkbdc.c
1110
return c;
sys/dev/atkbdc/atkbdc.c
1118
int c = -1;
sys/dev/atkbdc/atkbdc.c
1130
c = read_controller_data(p);
sys/dev/atkbdc/atkbdc.c
1131
if (c != -1) /* try again if the controller is not ready */
sys/dev/atkbdc/atkbdc.c
1135
log(LOG_DEBUG, "kbdc: TEST_AUX_PORT status:%04x\n", c);
sys/dev/atkbdc/atkbdc.c
1136
return c;
sys/dev/atkbdc/atkbdc.c
394
addq(kqueue *q, int c)
sys/dev/atkbdc/atkbdc.c
397
q->q[q->tail] = c;
sys/dev/atkbdc/atkbdc.c
413
int c;
sys/dev/atkbdc/atkbdc.c
416
c = q->q[q->head];
sys/dev/atkbdc/atkbdc.c
421
return c;
sys/dev/atkbdc/atkbdc.c
589
write_controller_command(KBDC p, int c)
sys/dev/atkbdc/atkbdc.c
593
write_command(p, c);
sys/dev/atkbdc/atkbdc.c
599
write_controller_data(KBDC p, int c)
sys/dev/atkbdc/atkbdc.c
603
write_data(p, c);
sys/dev/atkbdc/atkbdc.c
609
write_kbd_command(KBDC p, int c)
sys/dev/atkbdc/atkbdc.c
613
write_data(p, c);
sys/dev/atkbdc/atkbdc.c
619
write_aux_command(KBDC p, int c)
sys/dev/atkbdc/atkbdc.c
628
return write_controller_data(p, c);
sys/dev/atkbdc/atkbdc.c
633
send_kbd_command(KBDC p, int c)
sys/dev/atkbdc/atkbdc.c
639
if (!write_kbd_command(p, c))
sys/dev/atkbdc/atkbdc.c
650
send_aux_command(KBDC p, int c)
sys/dev/atkbdc/atkbdc.c
656
if (!write_aux_command(p, c))
sys/dev/atkbdc/atkbdc.c
677
send_kbd_command_and_data(KBDC p, int c, int d)
sys/dev/atkbdc/atkbdc.c
683
if (!write_kbd_command(p, c))
sys/dev/atkbdc/atkbdc.c
706
send_aux_command_and_data(KBDC p, int c, int d)
sys/dev/atkbdc/atkbdc.c
712
if (!write_aux_command(p, c))
sys/dev/atkbdc/atkbdc.c
97
static int addq(kqueue *q, int c);
sys/dev/atkbdc/atkbdc.c
978
int c = KBD_RESEND; /* keep the compiler happy */
sys/dev/atkbdc/atkbdc.c
985
c = read_controller_data(p);
sys/dev/atkbdc/atkbdc.c
987
log(LOG_DEBUG, "kbdc: RESET_KBD return code:%04x\n", c);
sys/dev/atkbdc/atkbdc.c
988
if (c == KBD_ACK) /* keyboard has agreed to reset itself... */
sys/dev/atkbdc/atkbdc.c
997
c = read_controller_data(p); /* RESET_DONE/RESET_FAIL */
sys/dev/atkbdc/atkbdc.c
998
if (c != -1) /* wait again if the controller is not ready */
sys/dev/atkbdc/atkbdcreg.h
243
int write_controller_command(KBDC kbdc,int c);
sys/dev/atkbdc/atkbdcreg.h
244
int write_controller_data(KBDC kbdc,int c);
sys/dev/atkbdc/atkbdcreg.h
246
int write_kbd_command(KBDC kbdc,int c);
sys/dev/atkbdc/atkbdcreg.h
247
int write_aux_command(KBDC kbdc,int c);
sys/dev/atkbdc/atkbdcreg.h
248
int send_kbd_command(KBDC kbdc,int c);
sys/dev/atkbdc/atkbdcreg.h
249
int send_aux_command(KBDC kbdc,int c);
sys/dev/atkbdc/atkbdcreg.h
250
int send_kbd_command_and_data(KBDC kbdc,int c,int d);
sys/dev/atkbdc/atkbdcreg.h
251
int send_aux_command_and_data(KBDC kbdc,int c,int d);
sys/dev/atkbdc/psm.c
1246
int c;
sys/dev/atkbdc/psm.c
1260
c = get_controller_command_byte(sc->kbdc);
sys/dev/atkbdc/psm.c
1262
"current command byte: %04x (reinitialize).\n", c);
sys/dev/atkbdc/psm.c
1265
if ((c == -1) || !set_controller_command_byte(sc->kbdc,
sys/dev/atkbdc/psm.c
1296
restore_controller(sc->kbdc, c);
sys/dev/atkbdc/psm.c
1309
err = doopen(sc, c);
sys/dev/atkbdc/psm.c
1317
(c & KBD_KBD_CONTROL_BITS) |
sys/dev/atkbdc/psm.c
2499
block_mouse_data(struct psm_softc *sc, int *c)
sys/dev/atkbdc/psm.c
2507
*c = get_controller_command_byte(sc->kbdc);
sys/dev/atkbdc/psm.c
2508
if ((*c == -1) || !set_controller_command_byte(sc->kbdc,
sys/dev/atkbdc/psm.c
2561
unblock_mouse_data(struct psm_softc *sc, int c)
sys/dev/atkbdc/psm.c
2574
c & (KBD_KBD_CONTROL_BITS | KBD_AUX_CONTROL_BITS))) {
sys/dev/atkbdc/psm.c
3002
int c;
sys/dev/atkbdc/psm.c
3010
while((c = read_aux_data_no_wait(sc->kbdc)) != -1) {
sys/dev/atkbdc/psm.c
3030
pb->ipacket[pb->inputbytes++] = c;
sys/dev/atkbdc/psm.c
3047
c = pb->ipacket[0];
sys/dev/atkbdc/psm.c
3050
sc->mode.syncmask[1] = (c & sc->mode.syncmask[0]);
sys/dev/atkbdc/psm.c
3056
(c & sc->mode.syncmask[0]) != sc->mode.syncmask[1]) {
sys/dev/atkbdc/psm.c
3059
c & sc->mode.syncmask[0], sc->mode.syncmask[1],
sys/dev/atkbdc/psm.c
4851
int c, x0, y0;
sys/dev/atkbdc/psm.c
4874
c = pb->ipacket[0];
sys/dev/atkbdc/psm.c
4876
ms->button = butmap_versapad[c & MOUSE_PS2VERSA_BUTTONS];
sys/dev/atkbdc/psm.c
4877
ms->button |= (c & MOUSE_PS2VERSA_TAP) ? MOUSE_BUTTON4DOWN : 0;
sys/dev/atkbdc/psm.c
4878
if (c & MOUSE_PS2VERSA_IN_USE) {
sys/dev/atkbdc/psm.c
4949
int x, y, z, c, l, s;
sys/dev/atkbdc/psm.c
4961
c = pb->ipacket[0];
sys/dev/atkbdc/psm.c
4968
pb->ipacket[1] |= (c & MOUSE_PS2_XOVERFLOW) ? 0x80 : 0;
sys/dev/atkbdc/psm.c
4971
x = (c & MOUSE_PS2_XNEG) ?
sys/dev/atkbdc/psm.c
4973
y = (c & MOUSE_PS2_YNEG) ?
sys/dev/atkbdc/psm.c
4977
ms.button = butmap[c & MOUSE_PS2_BUTTONS];
sys/dev/atkbdc/psm.c
4980
ms.button |= ((c & MOUSE_PS2_TAP)) ?
sys/dev/atkbdc/psm.c
5018
ms.button |= (c & MOUSE_PS2INTELLI_BUTTON4DOWN) ?
sys/dev/atkbdc/psm.c
5020
ms.button |= (c & MOUSE_PS2INTELLI_BUTTON5DOWN) ?
sys/dev/atkbdc/psm.c
5030
ms.button |= ((c & MOUSE_PS2_TAP)) ? 0 :
sys/dev/atkbdc/psm.c
5049
ms.button |= (c & MOUSE_PS2_TAP) ?
sys/dev/atkbdc/psm.c
5055
c = ((x < 0) ? MOUSE_PS2_XNEG : 0) |
sys/dev/atkbdc/psm.c
5075
switch (c & MOUSE_4D_WHEELBITS) {
sys/dev/atkbdc/psm.c
5191
if (c & MOUSE_PS2_XNEG)
sys/dev/atkbdc/psm.c
5198
if (c & MOUSE_PS2_YNEG)
sys/dev/atkbdc/psm.c
5340
int c;
sys/dev/atkbdc/psm.c
5342
c = (command >> 6) & 0x03;
sys/dev/atkbdc/psm.c
5343
if (set_mouse_resolution(kbdc, c) != c)
sys/dev/atkbdc/psm.c
5345
c = (command >> 4) & 0x03;
sys/dev/atkbdc/psm.c
5346
if (set_mouse_resolution(kbdc, c) != c)
sys/dev/atkbdc/psm.c
5348
c = (command >> 2) & 0x03;
sys/dev/atkbdc/psm.c
5349
if (set_mouse_resolution(kbdc, c) != c)
sys/dev/atkbdc/psm.c
5351
c = (command >> 0) & 0x03;
sys/dev/atkbdc/psm.c
5352
if (set_mouse_resolution(kbdc, c) != c)
sys/dev/atkbdc/psm.c
925
int c = 2; /* assume two buttons by default */
sys/dev/atkbdc/psm.c
936
return (c);
sys/dev/atkbdc/psm.c
941
return (c);
sys/dev/axgbe/if_axgbe.c
241
axgbe_get_counter(if_t ifp, ift_counter c)
sys/dev/axgbe/if_axgbe.c
250
switch(c) {
sys/dev/axgbe/if_axgbe.c
267
return (if_get_counter_default(ifp, c));
sys/dev/bfe/if_bfe.c
765
bfe_discard_buf(struct bfe_softc *sc, int c)
sys/dev/bfe/if_bfe.c
770
r = &sc->bfe_rx_ring[c];
sys/dev/bfe/if_bfe.c
771
d = &sc->bfe_rx_list[c];
sys/dev/bfe/if_bfe.c
776
bfe_list_newbuf(struct bfe_softc *sc, int c)
sys/dev/bfe/if_bfe.c
799
r = &sc->bfe_rx_ring[c];
sys/dev/bfe/if_bfe.c
818
if (c == BFE_RX_LIST_CNT - 1)
sys/dev/bfe/if_bfe.c
822
d = &sc->bfe_rx_list[c];
sys/dev/bge/if_bge.c
6431
#define BGE_SYSCTL_STAT_ADD64(c, h, n, p, d) \
sys/dev/bge/if_bge.c
6432
SYSCTL_ADD_UQUAD(c, h, OID_AUTO, n, CTLFLAG_RD, p, d)
sys/dev/bhnd/bhnd.h
1487
#define bhnd_bus_read_multi_1(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1489
bus_read_multi_1((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1492
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1493
#define bhnd_bus_read_region_1(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1495
bus_read_region_1((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1498
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1505
#define bhnd_bus_write_multi_1(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1507
bus_write_multi_1((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1510
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1511
#define bhnd_bus_write_region_1(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1513
bus_write_region_1((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1516
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1523
#define bhnd_bus_read_multi_stream_1(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1525
bus_read_multi_stream_1((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1528
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1529
#define bhnd_bus_read_region_stream_1(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1531
bus_read_region_stream_1((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1534
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1541
#define bhnd_bus_write_multi_stream_1(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1543
bus_write_multi_stream_1((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1546
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1547
#define bhnd_bus_write_region_stream_1(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1549
bus_write_region_stream_1((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1552
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1553
#define bhnd_bus_set_multi_1(r, o, v, c) \
sys/dev/bhnd/bhnd.h
1555
bus_set_multi_1((r)->res, (o), (v), (c)) : \
sys/dev/bhnd/bhnd.h
1558
rman_get_device((r)->res), (r), (o), (v), (c)))
sys/dev/bhnd/bhnd.h
1559
#define bhnd_bus_set_region_1(r, o, v, c) \
sys/dev/bhnd/bhnd.h
1561
bus_set_region_1((r)->res, (o), (v), (c)) : \
sys/dev/bhnd/bhnd.h
1564
rman_get_device((r)->res), (r), (o), (v), (c)))
sys/dev/bhnd/bhnd.h
1571
#define bhnd_bus_read_multi_2(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1573
bus_read_multi_2((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1576
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1577
#define bhnd_bus_read_region_2(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1579
bus_read_region_2((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1582
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1589
#define bhnd_bus_write_multi_2(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1591
bus_write_multi_2((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1594
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1595
#define bhnd_bus_write_region_2(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1597
bus_write_region_2((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1600
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1607
#define bhnd_bus_read_multi_stream_2(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1609
bus_read_multi_stream_2((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1612
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1613
#define bhnd_bus_read_region_stream_2(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1615
bus_read_region_stream_2((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1618
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1625
#define bhnd_bus_write_multi_stream_2(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1627
bus_write_multi_stream_2((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1630
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1631
#define bhnd_bus_write_region_stream_2(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1633
bus_write_region_stream_2((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1636
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1637
#define bhnd_bus_set_multi_2(r, o, v, c) \
sys/dev/bhnd/bhnd.h
1639
bus_set_multi_2((r)->res, (o), (v), (c)) : \
sys/dev/bhnd/bhnd.h
1642
rman_get_device((r)->res), (r), (o), (v), (c)))
sys/dev/bhnd/bhnd.h
1643
#define bhnd_bus_set_region_2(r, o, v, c) \
sys/dev/bhnd/bhnd.h
1645
bus_set_region_2((r)->res, (o), (v), (c)) : \
sys/dev/bhnd/bhnd.h
1648
rman_get_device((r)->res), (r), (o), (v), (c)))
sys/dev/bhnd/bhnd.h
1655
#define bhnd_bus_read_multi_4(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1657
bus_read_multi_4((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1660
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1661
#define bhnd_bus_read_region_4(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1663
bus_read_region_4((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1666
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1673
#define bhnd_bus_write_multi_4(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1675
bus_write_multi_4((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1678
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1679
#define bhnd_bus_write_region_4(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1681
bus_write_region_4((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1684
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1691
#define bhnd_bus_read_multi_stream_4(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1693
bus_read_multi_stream_4((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1696
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1697
#define bhnd_bus_read_region_stream_4(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1699
bus_read_region_stream_4((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1702
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1709
#define bhnd_bus_write_multi_stream_4(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1711
bus_write_multi_stream_4((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1714
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1715
#define bhnd_bus_write_region_stream_4(r, o, d, c) \
sys/dev/bhnd/bhnd.h
1717
bus_write_region_stream_4((r)->res, (o), (d), (c)) : \
sys/dev/bhnd/bhnd.h
1720
rman_get_device((r)->res), (r), (o), (d), (c)))
sys/dev/bhnd/bhnd.h
1721
#define bhnd_bus_set_multi_4(r, o, v, c) \
sys/dev/bhnd/bhnd.h
1723
bus_set_multi_4((r)->res, (o), (v), (c)) : \
sys/dev/bhnd/bhnd.h
1726
rman_get_device((r)->res), (r), (o), (v), (c)))
sys/dev/bhnd/bhnd.h
1727
#define bhnd_bus_set_region_4(r, o, v, c) \
sys/dev/bhnd/bhnd.h
1729
bus_set_region_4((r)->res, (o), (v), (c)) : \
sys/dev/bhnd/bhnd.h
1732
rman_get_device((r)->res), (r), (o), (v), (c)))
sys/dev/bhnd/nvram/bhnd_nvram_data_bcmraw.c
108
char c = envp[i];
sys/dev/bhnd/nvram/bhnd_nvram_data_bcmraw.c
111
if (c == '\n')
sys/dev/bhnd/nvram/bhnd_nvram_data_bcmraw.c
114
if (c == '\0' && !bhnd_nv_isprint(c))
sys/dev/bhnd/nvram/bhnd_nvram_data_btxt.c
109
c = ident.btxt[i];
sys/dev/bhnd/nvram/bhnd_nvram_data_btxt.c
110
if (!bhnd_nv_isprint(c))
sys/dev/bhnd/nvram/bhnd_nvram_data_btxt.c
116
c = ident.btxt[0];
sys/dev/bhnd/nvram/bhnd_nvram_data_btxt.c
117
if (!bhnd_nv_isspace(c) && !bhnd_nv_isalpha(c) && c != '#')
sys/dev/bhnd/nvram/bhnd_nvram_data_btxt.c
822
char c = baseptr[*line_len - i - 1];
sys/dev/bhnd/nvram/bhnd_nvram_data_btxt.c
823
if (!bhnd_nv_isspace(c))
sys/dev/bhnd/nvram/bhnd_nvram_data_btxt.c
848
char c = *p;
sys/dev/bhnd/nvram/bhnd_nvram_data_btxt.c
854
if (c == '\r') {
sys/dev/bhnd/nvram/bhnd_nvram_data_btxt.c
862
} else if (c == '\n') {
sys/dev/bhnd/nvram/bhnd_nvram_data_btxt.c
889
char c = *p;
sys/dev/bhnd/nvram/bhnd_nvram_data_btxt.c
892
if (bhnd_nv_isspace(c)) {
sys/dev/bhnd/nvram/bhnd_nvram_data_btxt.c
898
if (c == '#') {
sys/dev/bhnd/nvram/bhnd_nvram_data_btxt.c
94
char c;
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
757
void *c;
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
774
c = bhnd_nvram_tlv_to_cookie(tlv, offset);
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
778
*cookiep = c;
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
780
return (bhnd_nvram_tlv_get_env(tlv, c));
sys/dev/bhnd/nvram/bhnd_nvram_private.h
141
#define bhnd_nv_isupper(c) ((c) >= 'A' && (c) <= 'Z')
sys/dev/bhnd/nvram/bhnd_nvram_private.h
142
#define bhnd_nv_islower(c) ((c) >= 'a' && (c) <= 'z')
sys/dev/bhnd/nvram/bhnd_nvram_private.h
143
#define bhnd_nv_isalpha(c) (bhnd_nv_isupper(c) || bhnd_nv_islower(c))
sys/dev/bhnd/nvram/bhnd_nvram_private.h
144
#define bhnd_nv_isprint(c) ((c) >= ' ' && (c) <= '~')
sys/dev/bhnd/nvram/bhnd_nvram_private.h
145
#define bhnd_nv_isspace(c) ((c) == ' ' || ((c) >= '\t' && (c) <= '\r'))
sys/dev/bhnd/nvram/bhnd_nvram_private.h
146
#define bhnd_nv_isdigit(c) isdigit(c)
sys/dev/bhnd/nvram/bhnd_nvram_private.h
147
#define bhnd_nv_isxdigit(c) isxdigit(c)
sys/dev/bhnd/nvram/bhnd_nvram_private.h
148
#define bhnd_nv_toupper(c) ((c) - \
sys/dev/bhnd/nvram/bhnd_nvram_private.h
149
(('a' - 'A') * ((c) >= 'a' && (c) <= 'z')))
sys/dev/bhnd/nvram/bhnd_nvram_private.h
65
#define bhnd_nv_isupper(c) isupper(c)
sys/dev/bhnd/nvram/bhnd_nvram_private.h
66
#define bhnd_nv_islower(c) islower(c)
sys/dev/bhnd/nvram/bhnd_nvram_private.h
67
#define bhnd_nv_isalpha(c) isalpha(c)
sys/dev/bhnd/nvram/bhnd_nvram_private.h
68
#define bhnd_nv_isprint(c) isprint(c)
sys/dev/bhnd/nvram/bhnd_nvram_private.h
69
#define bhnd_nv_isspace(c) isspace(c)
sys/dev/bhnd/nvram/bhnd_nvram_private.h
70
#define bhnd_nv_isdigit(c) isdigit(c)
sys/dev/bhnd/nvram/bhnd_nvram_private.h
71
#define bhnd_nv_isxdigit(c) isxdigit(c)
sys/dev/bhnd/nvram/bhnd_nvram_private.h
72
#define bhnd_nv_toupper(c) toupper(c)
sys/dev/bhnd/nvram/bhnd_nvram_subr.c
864
char c;
sys/dev/bhnd/nvram/bhnd_nvram_subr.c
867
c = str[*nbytes];
sys/dev/bhnd/nvram/bhnd_nvram_subr.c
868
if (bhnd_nv_isdigit(c)) {
sys/dev/bhnd/nvram/bhnd_nvram_subr.c
869
carry = c - '0';
sys/dev/bhnd/nvram/bhnd_nvram_subr.c
870
} else if (bhnd_nv_isxdigit(c)) {
sys/dev/bhnd/nvram/bhnd_nvram_subr.c
871
if (bhnd_nv_isupper(c))
sys/dev/bhnd/nvram/bhnd_nvram_subr.c
872
carry = (c - 'A') + 10;
sys/dev/bhnd/nvram/bhnd_nvram_subr.c
874
carry = (c - 'a') + 10;
sys/dev/bhnd/nvram/bhnd_nvram_value_fmts.c
1013
char c;
sys/dev/bhnd/nvram/bhnd_nvram_value_fmts.c
1016
c = inp[nbytes];
sys/dev/bhnd/nvram/bhnd_nvram_value_fmts.c
1017
if (bhnd_nv_isdigit(c)) {
sys/dev/bhnd/nvram/bhnd_nvram_value_fmts.c
1018
carry = c - '0';
sys/dev/bhnd/nvram/bhnd_nvram_value_fmts.c
1019
} else if (bhnd_nv_isxdigit(c)) {
sys/dev/bhnd/nvram/bhnd_nvram_value_fmts.c
1020
if (bhnd_nv_isupper(c))
sys/dev/bhnd/nvram/bhnd_nvram_value_fmts.c
1021
carry = (c - 'A') + 10;
sys/dev/bhnd/nvram/bhnd_nvram_value_fmts.c
1023
carry = (c - 'a') + 10;
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
682
char c;
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
686
c = bhnd_nv_hex2ascii(n);
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
688
c = bhnd_nv_toupper(c);
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
691
*sptr = c;
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
827
char c;
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
834
elen, &c, &arg_size, arg_type);
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
843
BHND_NV_ASSERT(arg_size == sizeof(c),
sys/dev/bwi/if_bwi.c
1723
struct ieee80211_channel *c = ic->ic_curchan;
sys/dev/bwi/if_bwi.c
1730
bwi_rf_set_chan(mac, ieee80211_chan2ieee(ic, c), 0);
sys/dev/bwi/if_bwi.c
1732
sc->sc_rates = ieee80211_get_ratetable(c);
sys/dev/bwn/if_bwn_phy_g.c
2550
struct bwn_lo_calib *c;
sys/dev/bwn/if_bwn_phy_g.c
2552
TAILQ_FOREACH(c, &lo->calib_list, list) {
sys/dev/bwn/if_bwn_phy_g.c
2553
if (!BWN_BBATTCMP(&c->bbatt, bbatt))
sys/dev/bwn/if_bwn_phy_g.c
2555
if (!BWN_RFATTCMP(&c->rfatt, rfatt))
sys/dev/bwn/if_bwn_phy_g.c
2557
return (c);
sys/dev/bwn/if_bwn_phy_g.c
2560
c = bwn_lo_calibset(mac, bbatt, rfatt);
sys/dev/bwn/if_bwn_phy_g.c
2561
if (!c)
sys/dev/bwn/if_bwn_phy_g.c
2563
TAILQ_INSERT_TAIL(&lo->calib_list, c, list);
sys/dev/bwn/if_bwn_phy_g.c
2565
return (c);
sys/dev/bwn/if_bwn_phy_g.c
3504
unsigned int a, b, c, d;
sys/dev/bwn/if_bwn_phy_g.c
3511
c = (tmp >> 16) & 0xff;
sys/dev/bwn/if_bwn_phy_g.c
3514
c == 0 || c == BWN_TSSI_MAX || d == 0 || d == BWN_TSSI_MAX)
sys/dev/bwn/if_bwn_phy_g.c
3523
c = (c + 32) & 0x3f;
sys/dev/bwn/if_bwn_phy_g.c
3527
avg = (a + b + c + d + 2) / 4;
sys/dev/bwn/if_bwnvar.h
1085
bwn_channel_band(struct bwn_mac *mac, struct ieee80211_channel *c)
sys/dev/bwn/if_bwnvar.h
1087
if (IEEE80211_IS_CHAN_5GHZ(c))
sys/dev/bwn/if_bwnvar.h
1154
bwn_get_chan_type(struct bwn_mac *mac, struct ieee80211_channel *c)
sys/dev/bwn/if_bwnvar.h
1157
if (c == NULL)
sys/dev/bwn/if_bwnvar.h
1158
c = ic->ic_curchan;
sys/dev/bwn/if_bwnvar.h
1159
if (IEEE80211_IS_CHAN_HT40U(c))
sys/dev/bwn/if_bwnvar.h
1161
else if (IEEE80211_IS_CHAN_HT40D(c))
sys/dev/bwn/if_bwnvar.h
1163
else if (IEEE80211_IS_CHAN_HT20(c))
sys/dev/bwn/if_bwnvar.h
1170
bwn_get_chan_power(struct bwn_mac *mac, struct ieee80211_channel *c)
sys/dev/bwn/if_bwnvar.h
1174
return c->ic_maxpower / 2;
sys/dev/bxe/bxe_debug.c
196
char c[32];
sys/dev/bxe/bxe_debug.c
210
snprintf(c, sizeof(c), "%03x", xx);
sys/dev/bxe/bxe_debug.c
211
strcat(buf, c);
sys/dev/bxe/bxe_debug.c
215
snprintf(c, sizeof(c), "%02x ", *mem);
sys/dev/bxe/bxe_debug.c
216
strcat(buf, c);
sys/dev/bxe/bxe_debug.c
234
char c[32];
sys/dev/bxe/bxe_debug.c
246
snprintf(c, sizeof(c), "%03x", xx);
sys/dev/bxe/bxe_debug.c
247
strcat(buf, c);
sys/dev/bxe/bxe_debug.c
258
snprintf(c, sizeof(c), "%03x", xx);
sys/dev/bxe/bxe_debug.c
259
strcat(buf, c);
sys/dev/bxe/bxe_debug.c
263
snprintf(c, sizeof(c), "%02x ", *memp);
sys/dev/bxe/bxe_debug.c
264
strcat(buf, c);
sys/dev/bxe/bxe_debug.c
272
snprintf(c, sizeof(c), "%d", m->m_len);
sys/dev/bxe/bxe_debug.c
273
strcat(buf, c);
sys/dev/bxe/ecore_sp.c
4189
int c, old;
sys/dev/bxe/ecore_sp.c
4191
c = ECORE_ATOMIC_READ(v);
sys/dev/bxe/ecore_sp.c
4193
if (ECORE_UNLIKELY(c + a >= u))
sys/dev/bxe/ecore_sp.c
4196
old = ECORE_ATOMIC_CMPXCHG((v), c, c + a);
sys/dev/bxe/ecore_sp.c
4197
if (ECORE_LIKELY(old == c))
sys/dev/bxe/ecore_sp.c
4199
c = old;
sys/dev/bxe/ecore_sp.c
4217
int c, old;
sys/dev/bxe/ecore_sp.c
4219
c = ECORE_ATOMIC_READ(v);
sys/dev/bxe/ecore_sp.c
4221
if (ECORE_UNLIKELY(c - a < u))
sys/dev/bxe/ecore_sp.c
4224
old = ECORE_ATOMIC_CMPXCHG((v), c, c - a);
sys/dev/bxe/ecore_sp.c
4225
if (ECORE_LIKELY(old == c))
sys/dev/bxe/ecore_sp.c
4227
c = old;
sys/dev/cfe/cfe_api.h
152
#define cfe_cpu_start(a,b,c,d,e) __cfe_cpu_start(a,b,c,d,e)
sys/dev/cfe/cfe_api.h
155
#define cfe_enumdev(a,b,c) __cfe_enumdev(a,b,c)
sys/dev/cfe/cfe_api.h
156
#define cfe_enummem(a,b,c,d,e) __cfe_enummem(a,b,c,d,e)
sys/dev/cfe/cfe_api.h
160
#define cfe_getenv(a,b,c) __cfe_getenv(a,b,c)
sys/dev/cfe/cfe_api.h
165
#define cfe_ioctl(a,b,c,d,e,f) __cfe_ioctl(a,b,c,d,e,f)
sys/dev/cfe/cfe_api.h
167
#define cfe_read(a,b,c) __cfe_read(a,b,c)
sys/dev/cfe/cfe_api.h
168
#define cfe_readblk(a,b,c,d) __cfe_readblk(a,b,c,d)
sys/dev/cfe/cfe_api.h
170
#define cfe_write(a,b,c) __cfe_write(a,b,c)
sys/dev/cfe/cfe_api.h
171
#define cfe_writeblk(a,b,c,d) __cfe_writeblk(a,b,c,d)
sys/dev/cfe/cfe_console.c
138
int c;
sys/dev/cfe/cfe_console.c
143
while ((c = cfe_cngetc(NULL)) != -1)
sys/dev/cfe/cfe_console.c
144
ttydisc_rint(tp, c, 0);
sys/dev/cfe/cfe_console.c
213
cfe_cnputc(struct consdev *cp, int c)
sys/dev/cfe/cfe_console.c
217
if (c == '\n')
sys/dev/cfe/cfe_console.c
220
cbuf = c;
sys/dev/ciss/cissvar.h
284
# define debug_const(c) printf(" CONST %s %jd/0x%jx\n", #c, (intmax_t)c, (intmax_t)c);
sys/dev/ciss/cissvar.h
292
# define debug_const(c)
sys/dev/ciss/cissvar.h
389
#define ciss_report_request(a, b, c) \
sys/dev/ciss/cissvar.h
390
_ciss_report_request(a, b, c, __FUNCTION__)
sys/dev/cxgb/common/cxgb_aq100x.c
64
#define ADV_10G_FULL AQBIT(c)
sys/dev/cxgb/common/cxgb_t3_hw.c
1078
unsigned int c, left, val, offset = addr & 0xff;
sys/dev/cxgb/common/cxgb_t3_hw.c
1089
for (left = n; left; left -= c) {
sys/dev/cxgb/common/cxgb_t3_hw.c
1090
c = min(left, 4U);
sys/dev/cxgb/common/cxgb_t3_hw.c
1092
data += c;
sys/dev/cxgb/common/cxgb_t3_hw.c
1096
ret = sf1_write(adapter, c, c != left, val);
sys/dev/cxgb/common/cxgb_t3_hw.c
728
static unsigned int hex2int(unsigned char c)
sys/dev/cxgb/common/cxgb_t3_hw.c
730
return isdigit(c) ? c - '0' : toupper(c) - 'A' + 10;
sys/dev/cxgb/common/cxgb_xgmac.c
390
int hash = 0, octet, bit, i = 0, c;
sys/dev/cxgb/common/cxgb_xgmac.c
393
for (c = addr[octet], bit = 0; bit < 8; c >>= 1, ++bit) {
sys/dev/cxgb/common/cxgb_xgmac.c
394
hash ^= (c & 1) << i;
sys/dev/cxgb/common/jhash.h
105
__jhash_mix(a,b,c);
sys/dev/cxgb/common/jhash.h
107
return c;
sys/dev/cxgb/common/jhash.h
117
static inline u32 jhash_3words(u32 a, u32 b, u32 c, u32 initval)
sys/dev/cxgb/common/jhash.h
121
c += initval;
sys/dev/cxgb/common/jhash.h
123
__jhash_mix(a, b, c);
sys/dev/cxgb/common/jhash.h
125
return c;
sys/dev/cxgb/common/jhash.h
19
#define __jhash_mix(a, b, c) \
sys/dev/cxgb/common/jhash.h
21
a -= b; a -= c; a ^= (c>>13); \
sys/dev/cxgb/common/jhash.h
22
b -= c; b -= a; b ^= (a<<8); \
sys/dev/cxgb/common/jhash.h
23
c -= a; c -= b; c ^= (b>>13); \
sys/dev/cxgb/common/jhash.h
24
a -= b; a -= c; a ^= (c>>12); \
sys/dev/cxgb/common/jhash.h
25
b -= c; b -= a; b ^= (a<<16); \
sys/dev/cxgb/common/jhash.h
26
c -= a; c -= b; c ^= (b>>5); \
sys/dev/cxgb/common/jhash.h
27
a -= b; a -= c; a ^= (c>>3); \
sys/dev/cxgb/common/jhash.h
28
b -= c; b -= a; b ^= (a<<10); \
sys/dev/cxgb/common/jhash.h
29
c -= a; c -= b; c ^= (b>>15); \
sys/dev/cxgb/common/jhash.h
41
u32 a, b, c, len;
sys/dev/cxgb/common/jhash.h
46
c = initval;
sys/dev/cxgb/common/jhash.h
51
c += (k[8] +((u32)k[9]<<8) +((u32)k[10]<<16)+((u32)k[11]<<24));
sys/dev/cxgb/common/jhash.h
53
__jhash_mix(a,b,c);
sys/dev/cxgb/common/jhash.h
59
c += length;
sys/dev/cxgb/common/jhash.h
61
case 11: c += ((u32)k[10]<<24);
sys/dev/cxgb/common/jhash.h
62
case 10: c += ((u32)k[9]<<16);
sys/dev/cxgb/common/jhash.h
63
case 9 : c += ((u32)k[8]<<8);
sys/dev/cxgb/common/jhash.h
74
__jhash_mix(a,b,c);
sys/dev/cxgb/common/jhash.h
76
return c;
sys/dev/cxgb/common/jhash.h
84
u32 a, b, c, len;
sys/dev/cxgb/common/jhash.h
87
c = initval;
sys/dev/cxgb/common/jhash.h
93
c += k[2];
sys/dev/cxgb/common/jhash.h
94
__jhash_mix(a, b, c);
sys/dev/cxgb/common/jhash.h
98
c += length * 4;
sys/dev/cxgb/cxgb_main.c
2152
cxgb_get_counter(if_t ifp, ift_counter c)
sys/dev/cxgb/cxgb_main.c
2161
switch (c) {
sys/dev/cxgb/cxgb_main.c
2212
return (if_get_counter_default(ifp, c));
sys/dev/cxgbe/common/t4_hw.c
10007
ret = t4_wr_mbox_meat(adap, adap->mbox, &c, sizeof(c), &c, sleep_ok);
sys/dev/cxgbe/common/t4_hw.c
10044
struct fw_vi_mac_cmd c;
sys/dev/cxgbe/common/t4_hw.c
10053
unsigned int fw_naddr = (rem < ARRAY_SIZE(c.u.exact)
sys/dev/cxgbe/common/t4_hw.c
10055
: ARRAY_SIZE(c.u.exact));
sys/dev/cxgbe/common/t4_hw.c
10061
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
10062
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_MAC_CMD) |
sys/dev/cxgbe/common/t4_hw.c
10067
c.freemacs_to_len16 = cpu_to_be32(V_FW_VI_MAC_CMD_FREEMACS(free) |
sys/dev/cxgbe/common/t4_hw.c
10070
for (i = 0, p = c.u.exact; i < fw_naddr; i++, p++) {
sys/dev/cxgbe/common/t4_hw.c
10082
ret = t4_wr_mbox_meat(adap, mbox, &c, sizeof(c), &c, sleep_ok);
sys/dev/cxgbe/common/t4_hw.c
10086
for (i = 0, p = c.u.exact; i < fw_naddr; i++, p++) {
sys/dev/cxgbe/common/t4_hw.c
10125
struct fw_vi_mac_cmd c;
sys/dev/cxgbe/common/t4_hw.c
10130
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
10131
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_MAC_CMD) |
sys/dev/cxgbe/common/t4_hw.c
10137
c.freemacs_to_len16 = cpu_to_be32(V_FW_VI_MAC_CMD_FREEMACS(0) |
sys/dev/cxgbe/common/t4_hw.c
10140
p = c.u.exact;
sys/dev/cxgbe/common/t4_hw.c
10145
ret = t4_wr_mbox_meat(adap, adap->mbox, &c, sizeof(c), &c, sleep_ok);
sys/dev/cxgbe/common/t4_hw.c
10168
struct fw_vi_mac_cmd c;
sys/dev/cxgbe/common/t4_hw.c
10169
struct fw_vi_mac_raw *p = &c.u.raw;
sys/dev/cxgbe/common/t4_hw.c
10172
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
10173
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_MAC_CMD) |
sys/dev/cxgbe/common/t4_hw.c
10178
c.freemacs_to_len16 = cpu_to_be32(V_FW_VI_MAC_CMD_FREEMACS(0) |
sys/dev/cxgbe/common/t4_hw.c
10196
return t4_wr_mbox_meat(adap, adap->mbox, &c, sizeof(c), &c, sleep_ok);
sys/dev/cxgbe/common/t4_hw.c
10217
struct fw_vi_mac_cmd c;
sys/dev/cxgbe/common/t4_hw.c
10226
unsigned int fw_naddr = (rem < ARRAY_SIZE(c.u.exact)
sys/dev/cxgbe/common/t4_hw.c
10228
: ARRAY_SIZE(c.u.exact));
sys/dev/cxgbe/common/t4_hw.c
10234
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
10235
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_MAC_CMD) |
sys/dev/cxgbe/common/t4_hw.c
10240
c.freemacs_to_len16 =
sys/dev/cxgbe/common/t4_hw.c
10244
for (i = 0, p = c.u.exact; i < (int)fw_naddr; i++, p++) {
sys/dev/cxgbe/common/t4_hw.c
10251
ret = t4_wr_mbox_meat(adap, mbox, &c, sizeof(c), &c, sleep_ok);
sys/dev/cxgbe/common/t4_hw.c
10255
for (i = 0, p = c.u.exact; i < fw_naddr; i++, p++) {
sys/dev/cxgbe/common/t4_hw.c
10298
struct fw_vi_mac_cmd c;
sys/dev/cxgbe/common/t4_hw.c
10299
struct fw_vi_mac_exact *p = c.u.exact;
sys/dev/cxgbe/common/t4_hw.c
10306
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
10307
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_MAC_CMD) |
sys/dev/cxgbe/common/t4_hw.c
10310
c.freemacs_to_len16 = cpu_to_be32(V_FW_CMD_LEN16(1));
sys/dev/cxgbe/common/t4_hw.c
10316
ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
sys/dev/cxgbe/common/t4_hw.c
10323
*smt_idx = G_FW_VI_MAC_CMD_SMTID(be32_to_cpu(c.op_to_viid));
sys/dev/cxgbe/common/t4_hw.c
10349
struct fw_vi_mac_cmd c;
sys/dev/cxgbe/common/t4_hw.c
10352
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
10353
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_MAC_CMD) |
sys/dev/cxgbe/common/t4_hw.c
10358
c.freemacs_to_len16 = cpu_to_be32(val);
sys/dev/cxgbe/common/t4_hw.c
10359
c.u.hash.hashvec = cpu_to_be64(vec);
sys/dev/cxgbe/common/t4_hw.c
10360
return t4_wr_mbox_meat(adap, mbox, &c, sizeof(c), NULL, sleep_ok);
sys/dev/cxgbe/common/t4_hw.c
10378
struct fw_vi_enable_cmd c;
sys/dev/cxgbe/common/t4_hw.c
10380
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
10381
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_ENABLE_CMD) |
sys/dev/cxgbe/common/t4_hw.c
10384
c.ien_to_len16 = cpu_to_be32(V_FW_VI_ENABLE_CMD_IEN(rx_en) |
sys/dev/cxgbe/common/t4_hw.c
10387
FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
10388
return t4_wr_mbox_ns(adap, mbox, &c, sizeof(c), NULL);
sys/dev/cxgbe/common/t4_hw.c
10420
struct fw_vi_enable_cmd c;
sys/dev/cxgbe/common/t4_hw.c
10422
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
10423
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_ENABLE_CMD) |
sys/dev/cxgbe/common/t4_hw.c
10426
c.ien_to_len16 = cpu_to_be32(F_FW_VI_ENABLE_CMD_LED | FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
10427
c.blinkdur = cpu_to_be16(nblinks);
sys/dev/cxgbe/common/t4_hw.c
10428
return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
sys/dev/cxgbe/common/t4_hw.c
10450
struct fw_iq_cmd c;
sys/dev/cxgbe/common/t4_hw.c
10452
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
10453
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_IQ_CMD) | F_FW_CMD_REQUEST |
sys/dev/cxgbe/common/t4_hw.c
10456
c.alloc_to_len16 = cpu_to_be32(F_FW_IQ_CMD_IQSTOP | FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
10457
c.type_to_iqandstindex = cpu_to_be32(V_FW_IQ_CMD_TYPE(iqtype));
sys/dev/cxgbe/common/t4_hw.c
10458
c.iqid = cpu_to_be16(iqid);
sys/dev/cxgbe/common/t4_hw.c
10459
c.fl0id = cpu_to_be16(fl0id);
sys/dev/cxgbe/common/t4_hw.c
10460
c.fl1id = cpu_to_be16(fl1id);
sys/dev/cxgbe/common/t4_hw.c
10461
return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
sys/dev/cxgbe/common/t4_hw.c
10481
struct fw_iq_cmd c;
sys/dev/cxgbe/common/t4_hw.c
10483
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
10484
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_IQ_CMD) | F_FW_CMD_REQUEST |
sys/dev/cxgbe/common/t4_hw.c
10487
c.alloc_to_len16 = cpu_to_be32(F_FW_IQ_CMD_FREE | FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
10488
c.type_to_iqandstindex = cpu_to_be32(V_FW_IQ_CMD_TYPE(iqtype));
sys/dev/cxgbe/common/t4_hw.c
10489
c.iqid = cpu_to_be16(iqid);
sys/dev/cxgbe/common/t4_hw.c
10490
c.fl0id = cpu_to_be16(fl0id);
sys/dev/cxgbe/common/t4_hw.c
10491
c.fl1id = cpu_to_be16(fl1id);
sys/dev/cxgbe/common/t4_hw.c
10492
return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
sys/dev/cxgbe/common/t4_hw.c
10509
struct fw_eq_eth_cmd c;
sys/dev/cxgbe/common/t4_hw.c
10511
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
10512
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_EQ_ETH_CMD) |
sys/dev/cxgbe/common/t4_hw.c
10516
c.alloc_to_len16 = cpu_to_be32(F_FW_EQ_ETH_CMD_EQSTOP | FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
10517
c.eqid_pkd = cpu_to_be32(V_FW_EQ_ETH_CMD_EQID(eqid));
sys/dev/cxgbe/common/t4_hw.c
10518
return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
sys/dev/cxgbe/common/t4_hw.c
10534
struct fw_eq_eth_cmd c;
sys/dev/cxgbe/common/t4_hw.c
10536
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
10537
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_EQ_ETH_CMD) |
sys/dev/cxgbe/common/t4_hw.c
10541
c.alloc_to_len16 = cpu_to_be32(F_FW_EQ_ETH_CMD_FREE | FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
10542
c.eqid_pkd = cpu_to_be32(V_FW_EQ_ETH_CMD_EQID(eqid));
sys/dev/cxgbe/common/t4_hw.c
10543
return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
sys/dev/cxgbe/common/t4_hw.c
10559
struct fw_eq_ctrl_cmd c;
sys/dev/cxgbe/common/t4_hw.c
10561
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
10562
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_EQ_CTRL_CMD) |
sys/dev/cxgbe/common/t4_hw.c
10566
c.alloc_to_len16 = cpu_to_be32(F_FW_EQ_CTRL_CMD_FREE | FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
10567
c.cmpliqid_eqid = cpu_to_be32(V_FW_EQ_CTRL_CMD_EQID(eqid));
sys/dev/cxgbe/common/t4_hw.c
10568
return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
sys/dev/cxgbe/common/t4_hw.c
10584
struct fw_eq_ofld_cmd c;
sys/dev/cxgbe/common/t4_hw.c
10586
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
10587
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_EQ_OFLD_CMD) |
sys/dev/cxgbe/common/t4_hw.c
10591
c.alloc_to_len16 = cpu_to_be32(F_FW_EQ_OFLD_CMD_FREE | FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
10592
c.eqid_pkd = cpu_to_be32(V_FW_EQ_OFLD_CMD_EQID(eqid));
sys/dev/cxgbe/common/t4_hw.c
10593
return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
sys/dev/cxgbe/common/t4_hw.c
13181
struct fw_ldst_cmd c;
sys/dev/cxgbe/common/t4_hw.c
13192
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
13193
c.op_to_addrspace = cpu_to_be32(V_FW_CMD_OP(FW_LDST_CMD) |
sys/dev/cxgbe/common/t4_hw.c
13196
c.cycles_to_len16 = cpu_to_be32(FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
13197
c.u.idctxt.physid = cpu_to_be32(cid);
sys/dev/cxgbe/common/t4_hw.c
13199
ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
sys/dev/cxgbe/common/t4_hw.c
13201
data[0] = be32_to_cpu(c.u.idctxt.ctxt_data0);
sys/dev/cxgbe/common/t4_hw.c
13202
data[1] = be32_to_cpu(c.u.idctxt.ctxt_data1);
sys/dev/cxgbe/common/t4_hw.c
13203
data[2] = be32_to_cpu(c.u.idctxt.ctxt_data2);
sys/dev/cxgbe/common/t4_hw.c
13204
data[3] = be32_to_cpu(c.u.idctxt.ctxt_data3);
sys/dev/cxgbe/common/t4_hw.c
13205
data[4] = be32_to_cpu(c.u.idctxt.ctxt_data4);
sys/dev/cxgbe/common/t4_hw.c
13206
data[5] = be32_to_cpu(c.u.idctxt.ctxt_data5);
sys/dev/cxgbe/common/t4_hw.c
13208
data[6] = be32_to_cpu(c.u.idctxt.ctxt_data6);
sys/dev/cxgbe/common/t4_hw.c
13559
struct fw_vi_mac_cmd c;
sys/dev/cxgbe/common/t4_hw.c
13560
struct fw_vi_mac_exact *p = c.u.exact;
sys/dev/cxgbe/common/t4_hw.c
13563
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
13564
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_MAC_CMD) |
sys/dev/cxgbe/common/t4_hw.c
13567
c.freemacs_to_len16 = cpu_to_be32(
sys/dev/cxgbe/common/t4_hw.c
13576
ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
sys/dev/cxgbe/common/t4_hw.c
13608
struct fw_vi_mac_cmd c;
sys/dev/cxgbe/common/t4_hw.c
13609
struct fw_vi_mac_exact *p = c.u.exact;
sys/dev/cxgbe/common/t4_hw.c
13616
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
13617
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_MAC_CMD) |
sys/dev/cxgbe/common/t4_hw.c
13620
c.freemacs_to_len16 = cpu_to_be32(
sys/dev/cxgbe/common/t4_hw.c
13628
ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
sys/dev/cxgbe/common/t4_hw.c
13636
*smt_idx = G_FW_VI_MAC_CMD_SMTID(be32_to_cpu(c.op_to_viid));
sys/dev/cxgbe/common/t4_hw.c
3978
unsigned int i, c, left, val, offset = addr & 0xff;
sys/dev/cxgbe/common/t4_hw.c
3989
for (left = n; left; left -= c) {
sys/dev/cxgbe/common/t4_hw.c
3990
c = min(left, 4U);
sys/dev/cxgbe/common/t4_hw.c
3991
for (val = 0, i = 0; i < c; ++i)
sys/dev/cxgbe/common/t4_hw.c
3997
ret = sf1_write(adapter, c, c != left, 1, val);
sys/dev/cxgbe/common/t4_hw.c
4407
struct fw_params_cmd c;
sys/dev/cxgbe/common/t4_hw.c
4409
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
4410
c.op_to_vfn =
sys/dev/cxgbe/common/t4_hw.c
4415
c.retval_len16 = cpu_to_be32(FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
4416
c.param[0].mnem =
sys/dev/cxgbe/common/t4_hw.c
4419
c.param[0].val = cpu_to_be32(op);
sys/dev/cxgbe/common/t4_hw.c
4421
return t4_wr_mbox(adap, adap->mbox, &c, sizeof(c), NULL);
sys/dev/cxgbe/common/t4_hw.c
4625
struct fw_port_cmd c;
sys/dev/cxgbe/common/t4_hw.c
4733
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
4734
c.op_to_portid = cpu_to_be32(V_FW_CMD_OP(FW_PORT_CMD) |
sys/dev/cxgbe/common/t4_hw.c
4738
c.action_to_len16 =
sys/dev/cxgbe/common/t4_hw.c
4740
FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
4741
c.u.l1cfg32.rcap32 = cpu_to_be32(rcap);
sys/dev/cxgbe/common/t4_hw.c
4743
c.action_to_len16 =
sys/dev/cxgbe/common/t4_hw.c
4745
FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
4746
c.u.l1cfg.rcap = cpu_to_be32(fwcaps32_to_caps16(rcap));
sys/dev/cxgbe/common/t4_hw.c
4750
return t4_wr_mbox_ns(adap, mbox, &c, sizeof(c), NULL);
sys/dev/cxgbe/common/t4_hw.c
4763
struct fw_port_cmd c;
sys/dev/cxgbe/common/t4_hw.c
4765
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
4766
c.op_to_portid = cpu_to_be32(V_FW_CMD_OP(FW_PORT_CMD) |
sys/dev/cxgbe/common/t4_hw.c
4769
c.action_to_len16 =
sys/dev/cxgbe/common/t4_hw.c
4771
FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
4772
c.u.l1cfg.rcap = cpu_to_be32(FW_PORT_CAP_ANEG);
sys/dev/cxgbe/common/t4_hw.c
4773
return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
sys/dev/cxgbe/common/t4_hw.c
7341
struct fw_rss_glb_config_cmd c;
sys/dev/cxgbe/common/t4_hw.c
7343
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
7344
c.op_to_write = cpu_to_be32(V_FW_CMD_OP(FW_RSS_GLB_CONFIG_CMD) |
sys/dev/cxgbe/common/t4_hw.c
7346
c.retval_len16 = cpu_to_be32(FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
7348
c.u.manual.mode_pkd =
sys/dev/cxgbe/common/t4_hw.c
7351
c.u.basicvirtual.mode_keymode =
sys/dev/cxgbe/common/t4_hw.c
7353
c.u.basicvirtual.synmapen_to_hashtoeplitz = cpu_to_be32(flags);
sys/dev/cxgbe/common/t4_hw.c
7356
return t4_wr_mbox(adapter, mbox, &c, sizeof(c), NULL);
sys/dev/cxgbe/common/t4_hw.c
7375
struct fw_rss_vi_config_cmd c;
sys/dev/cxgbe/common/t4_hw.c
7377
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
7378
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_RSS_VI_CONFIG_CMD) |
sys/dev/cxgbe/common/t4_hw.c
7381
c.retval_len16 = cpu_to_be32(FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
7382
c.u.basicvirtual.defaultq_to_udpen = cpu_to_be32(flags |
sys/dev/cxgbe/common/t4_hw.c
7384
c.u.basicvirtual.secretkeyidx_pkd = cpu_to_be32(
sys/dev/cxgbe/common/t4_hw.c
7386
c.u.basicvirtual.secretkeyxor = cpu_to_be32(skey);
sys/dev/cxgbe/common/t4_hw.c
7388
return t4_wr_mbox(adapter, mbox, &c, sizeof(c), NULL);
sys/dev/cxgbe/common/t4_hw.c
7446
struct fw_ldst_cmd c;
sys/dev/cxgbe/common/t4_hw.c
7449
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
7450
c.op_to_addrspace = cpu_to_be32(V_FW_CMD_OP(FW_LDST_CMD) |
sys/dev/cxgbe/common/t4_hw.c
7455
c.cycles_to_len16 = cpu_to_be32(FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
7457
c.u.addrval.addr = cpu_to_be32(start_index + i);
sys/dev/cxgbe/common/t4_hw.c
7458
c.u.addrval.val = rw ? 0 : cpu_to_be32(vals[i]);
sys/dev/cxgbe/common/t4_hw.c
7459
ret = t4_wr_mbox_meat(adap, adap->mbox, &c, sizeof(c), &c,
sys/dev/cxgbe/common/t4_hw.c
7465
vals[i] = be32_to_cpu(c.u.addrval.val);
sys/dev/cxgbe/common/t4_hw.c
8997
struct fw_ldst_cmd c;
sys/dev/cxgbe/common/t4_hw.c
8999
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
9001
c.op_to_addrspace = cpu_to_be32(V_FW_CMD_OP(FW_LDST_CMD) |
sys/dev/cxgbe/common/t4_hw.c
9005
c.cycles_to_len16 = cpu_to_be32(FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
9006
c.u.addrval.addr = cpu_to_be32(addr);
sys/dev/cxgbe/common/t4_hw.c
9007
c.u.addrval.val = cpu_to_be32(val);
sys/dev/cxgbe/common/t4_hw.c
9009
return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
sys/dev/cxgbe/common/t4_hw.c
9028
struct fw_ldst_cmd c;
sys/dev/cxgbe/common/t4_hw.c
9030
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
9032
c.op_to_addrspace = cpu_to_be32(V_FW_CMD_OP(FW_LDST_CMD) |
sys/dev/cxgbe/common/t4_hw.c
9035
c.cycles_to_len16 = cpu_to_be32(FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
9036
c.u.mdio.paddr_mmd = cpu_to_be16(V_FW_LDST_CMD_PADDR(phy_addr) |
sys/dev/cxgbe/common/t4_hw.c
9038
c.u.mdio.raddr = cpu_to_be16(reg);
sys/dev/cxgbe/common/t4_hw.c
9040
ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
sys/dev/cxgbe/common/t4_hw.c
9042
*valp = be16_to_cpu(c.u.mdio.rval);
sys/dev/cxgbe/common/t4_hw.c
9061
struct fw_ldst_cmd c;
sys/dev/cxgbe/common/t4_hw.c
9063
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
9065
c.op_to_addrspace = cpu_to_be32(V_FW_CMD_OP(FW_LDST_CMD) |
sys/dev/cxgbe/common/t4_hw.c
9068
c.cycles_to_len16 = cpu_to_be32(FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
9069
c.u.mdio.paddr_mmd = cpu_to_be16(V_FW_LDST_CMD_PADDR(phy_addr) |
sys/dev/cxgbe/common/t4_hw.c
9071
c.u.mdio.raddr = cpu_to_be16(reg);
sys/dev/cxgbe/common/t4_hw.c
9072
c.u.mdio.rval = cpu_to_be16(val);
sys/dev/cxgbe/common/t4_hw.c
9074
return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
sys/dev/cxgbe/common/t4_hw.c
9247
struct fw_ldst_cmd c;
sys/dev/cxgbe/common/t4_hw.c
9249
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
9253
c.op_to_addrspace = cpu_to_be32(V_FW_CMD_OP(FW_LDST_CMD) |
sys/dev/cxgbe/common/t4_hw.c
9256
c.cycles_to_len16 = cpu_to_be32(FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
9257
c.u.idctxt.msg_ctxtflush = cpu_to_be32(F_FW_LDST_CMD_CTXTFLUSH);
sys/dev/cxgbe/common/t4_hw.c
9259
ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
sys/dev/cxgbe/common/t4_hw.c
9278
struct fw_hello_cmd c;
sys/dev/cxgbe/common/t4_hw.c
9284
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
9285
INIT_CMD(c, HELLO, WRITE);
sys/dev/cxgbe/common/t4_hw.c
9286
c.err_to_clearinit = cpu_to_be32(
sys/dev/cxgbe/common/t4_hw.c
9302
ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
sys/dev/cxgbe/common/t4_hw.c
9309
v = be32_to_cpu(c.err_to_clearinit);
sys/dev/cxgbe/common/t4_hw.c
9400
struct fw_bye_cmd c;
sys/dev/cxgbe/common/t4_hw.c
9402
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
9403
INIT_CMD(c, BYE, WRITE);
sys/dev/cxgbe/common/t4_hw.c
9404
return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
sys/dev/cxgbe/common/t4_hw.c
9417
struct fw_reset_cmd c;
sys/dev/cxgbe/common/t4_hw.c
9419
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
9420
INIT_CMD(c, RESET, WRITE);
sys/dev/cxgbe/common/t4_hw.c
9421
c.val = cpu_to_be32(reset);
sys/dev/cxgbe/common/t4_hw.c
9422
return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
sys/dev/cxgbe/common/t4_hw.c
9450
struct fw_reset_cmd c;
sys/dev/cxgbe/common/t4_hw.c
9452
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
9453
INIT_CMD(c, RESET, WRITE);
sys/dev/cxgbe/common/t4_hw.c
9454
c.val = cpu_to_be32(F_PIORST | F_PIORSTMODE);
sys/dev/cxgbe/common/t4_hw.c
9455
c.halt_pkd = cpu_to_be32(F_FW_RESET_CMD_HALT);
sys/dev/cxgbe/common/t4_hw.c
9456
ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
sys/dev/cxgbe/common/t4_hw.c
9563
struct fw_initialize_cmd c;
sys/dev/cxgbe/common/t4_hw.c
9565
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
9566
INIT_CMD(c, INITIALIZE, WRITE);
sys/dev/cxgbe/common/t4_hw.c
9567
return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
sys/dev/cxgbe/common/t4_hw.c
9589
struct fw_params_cmd c;
sys/dev/cxgbe/common/t4_hw.c
9590
__be32 *p = &c.param[0].mnem;
sys/dev/cxgbe/common/t4_hw.c
9595
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
9596
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_PARAMS_CMD) |
sys/dev/cxgbe/common/t4_hw.c
9600
c.retval_len16 = cpu_to_be32(FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
9609
ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
sys/dev/cxgbe/common/t4_hw.c
9619
for (i = 0, p = &c.param[0].val; i < nparams; i++, p += 2)
sys/dev/cxgbe/common/t4_hw.c
9651
struct fw_params_cmd c;
sys/dev/cxgbe/common/t4_hw.c
9652
__be32 *p = &c.param[0].mnem;
sys/dev/cxgbe/common/t4_hw.c
9657
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
9658
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_PARAMS_CMD) |
sys/dev/cxgbe/common/t4_hw.c
9662
c.retval_len16 = cpu_to_be32(FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
9669
return t4_wr_mbox_timeout(adap, mbox, &c, sizeof(c), NULL, timeout);
sys/dev/cxgbe/common/t4_hw.c
9720
struct fw_pfvf_cmd c;
sys/dev/cxgbe/common/t4_hw.c
9722
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
9723
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_PFVF_CMD) | F_FW_CMD_REQUEST |
sys/dev/cxgbe/common/t4_hw.c
9726
c.retval_len16 = cpu_to_be32(FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
9727
c.niqflint_niq = cpu_to_be32(V_FW_PFVF_CMD_NIQFLINT(rxqi) |
sys/dev/cxgbe/common/t4_hw.c
9729
c.type_to_neq = cpu_to_be32(V_FW_PFVF_CMD_CMASK(cmask) |
sys/dev/cxgbe/common/t4_hw.c
9732
c.tc_to_nexactf = cpu_to_be32(V_FW_PFVF_CMD_TC(tc) |
sys/dev/cxgbe/common/t4_hw.c
9735
c.r_caps_to_nethctrl = cpu_to_be32(V_FW_PFVF_CMD_R_CAPS(rcaps) |
sys/dev/cxgbe/common/t4_hw.c
9738
return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
sys/dev/cxgbe/common/t4_hw.c
9768
struct fw_vi_cmd c;
sys/dev/cxgbe/common/t4_hw.c
9770
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
9771
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_VI_CMD) | F_FW_CMD_REQUEST |
sys/dev/cxgbe/common/t4_hw.c
9774
c.alloc_to_len16 = cpu_to_be32(F_FW_VI_CMD_ALLOC | FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
9775
c.type_to_viid = cpu_to_be16(V_FW_VI_CMD_TYPE(idstype) |
sys/dev/cxgbe/common/t4_hw.c
9777
c.portid_pkd = V_FW_VI_CMD_PORTID(port);
sys/dev/cxgbe/common/t4_hw.c
9778
c.nmac = nmac - 1;
sys/dev/cxgbe/common/t4_hw.c
9780
c.norss_rsssize = F_FW_VI_CMD_NORSS;
sys/dev/cxgbe/common/t4_hw.c
9782
ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
sys/dev/cxgbe/common/t4_hw.c
9785
ret = G_FW_VI_CMD_VIID(be16_to_cpu(c.type_to_viid));
sys/dev/cxgbe/common/t4_hw.c
9788
memcpy(mac, c.mac, sizeof(c.mac));
sys/dev/cxgbe/common/t4_hw.c
9791
memcpy(mac + 24, c.nmac3, sizeof(c.nmac3));
sys/dev/cxgbe/common/t4_hw.c
9793
memcpy(mac + 18, c.nmac2, sizeof(c.nmac2));
sys/dev/cxgbe/common/t4_hw.c
9795
memcpy(mac + 12, c.nmac1, sizeof(c.nmac1));
sys/dev/cxgbe/common/t4_hw.c
9797
memcpy(mac + 6, c.nmac0, sizeof(c.nmac0));
sys/dev/cxgbe/common/t4_hw.c
9801
*rss_size = G_FW_VI_CMD_RSSSIZE(be16_to_cpu(c.norss_rsssize));
sys/dev/cxgbe/common/t4_hw.c
9804
G_FW_VI_CMD_VFVLD(be32_to_cpu(c.alloc_to_len16)) :
sys/dev/cxgbe/common/t4_hw.c
9809
G_FW_VI_CMD_VIN(be32_to_cpu(c.alloc_to_len16)) :
sys/dev/cxgbe/common/t4_hw.c
9852
struct fw_vi_cmd c;
sys/dev/cxgbe/common/t4_hw.c
9854
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
9855
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_VI_CMD) |
sys/dev/cxgbe/common/t4_hw.c
9860
c.alloc_to_len16 = cpu_to_be32(F_FW_VI_CMD_FREE | FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
9861
c.type_to_viid = cpu_to_be16(V_FW_VI_CMD_VIID(viid));
sys/dev/cxgbe/common/t4_hw.c
9863
return t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
sys/dev/cxgbe/common/t4_hw.c
9884
struct fw_vi_rxmode_cmd c;
sys/dev/cxgbe/common/t4_hw.c
9898
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
9899
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_RXMODE_CMD) |
sys/dev/cxgbe/common/t4_hw.c
9902
c.retval_len16 = cpu_to_be32(FW_LEN16(c));
sys/dev/cxgbe/common/t4_hw.c
9903
c.mtu_to_vlanexen =
sys/dev/cxgbe/common/t4_hw.c
9909
return t4_wr_mbox_meat(adap, mbox, &c, sizeof(c), NULL, sleep_ok);
sys/dev/cxgbe/common/t4_hw.c
9933
struct fw_vi_mac_cmd c;
sys/dev/cxgbe/common/t4_hw.c
9934
struct fw_vi_mac_vni *p = c.u.exact_vni;
sys/dev/cxgbe/common/t4_hw.c
9938
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
9939
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_MAC_CMD) |
sys/dev/cxgbe/common/t4_hw.c
9944
c.freemacs_to_len16 = cpu_to_be32(val);
sys/dev/cxgbe/common/t4_hw.c
9955
ret = t4_wr_mbox_meat(adap, adap->mbox, &c, sizeof(c), &c, sleep_ok);
sys/dev/cxgbe/common/t4_hw.c
9981
struct fw_vi_mac_cmd c;
sys/dev/cxgbe/common/t4_hw.c
9982
struct fw_vi_mac_raw *p = &c.u.raw;
sys/dev/cxgbe/common/t4_hw.c
9985
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/common/t4_hw.c
9986
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_MAC_CMD) |
sys/dev/cxgbe/common/t4_hw.c
9991
c.freemacs_to_len16 = cpu_to_be32(val);
sys/dev/cxgbe/common/t4_msg.h
1649
struct cpl_tx_pkt_core c;
sys/dev/cxgbe/common/t4_msg.h
2049
struct cpl_tx_pkt_lso_core c;
sys/dev/cxgbe/common/t4_msg.h
2065
struct cpl_tx_pkt_ufo_core c;
sys/dev/cxgbe/cudbg/fastlz.c
50
#define FASTLZ_EXPECT_CONDITIONAL(c) (__builtin_expect((c), 1))
sys/dev/cxgbe/cudbg/fastlz.c
51
#define FASTLZ_UNEXPECT_CONDITIONAL(c) (__builtin_expect((c), 0))
sys/dev/cxgbe/cudbg/fastlz.c
53
#define FASTLZ_EXPECT_CONDITIONAL(c) (c)
sys/dev/cxgbe/cudbg/fastlz.c
54
#define FASTLZ_UNEXPECT_CONDITIONAL(c) (c)
sys/dev/cxgbe/cudbg/fastlz_api.c
287
int c;
sys/dev/cxgbe/cudbg/fastlz_api.c
295
for (c = 0; c < 8; c++)
sys/dev/cxgbe/cudbg/fastlz_api.c
296
if (buffer[c] != sixpack_magic[c])
sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
512
static inline struct c4iw_ucontext *to_c4iw_ucontext(struct ib_ucontext *c)
sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
514
return container_of(c, struct c4iw_ucontext, ibucontext);
sys/dev/cxgbe/osdep.h
136
char c, *r, *trim_at;
sys/dev/cxgbe/osdep.h
142
while ((c = *s++) != 0) {
sys/dev/cxgbe/osdep.h
143
if (!isspace(c))
sys/dev/cxgbe/t4_clip.c
217
struct fw_clip_cmd c;
sys/dev/cxgbe/t4_clip.c
222
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/t4_clip.c
223
c.op_to_write = htonl(V_FW_CMD_OP(FW_CLIP_CMD) | F_FW_CMD_REQUEST |
sys/dev/cxgbe/t4_clip.c
225
c.alloc_to_len16 = htonl(F_FW_CLIP_CMD_ALLOC | FW_LEN16(c));
sys/dev/cxgbe/t4_clip.c
226
c.ip_hi = *(uint64_t *)&lip->s6_addr[0];
sys/dev/cxgbe/t4_clip.c
227
c.ip_lo = *(uint64_t *)&lip->s6_addr[8];
sys/dev/cxgbe/t4_clip.c
229
rc = -t4_wr_mbox_ns(sc, sc->mbox, &c, sizeof(c), &c);
sys/dev/cxgbe/t4_clip.c
231
*idx = G_FW_CLIP_CMD_INDEX(ntohl(c.alloc_to_len16));
sys/dev/cxgbe/t4_clip.c
238
struct fw_clip_cmd c;
sys/dev/cxgbe/t4_clip.c
242
memset(&c, 0, sizeof(c));
sys/dev/cxgbe/t4_clip.c
243
c.op_to_write = htonl(V_FW_CMD_OP(FW_CLIP_CMD) | F_FW_CMD_REQUEST |
sys/dev/cxgbe/t4_clip.c
245
c.alloc_to_len16 = htonl(F_FW_CLIP_CMD_FREE | FW_LEN16(c));
sys/dev/cxgbe/t4_clip.c
246
c.ip_hi = *(uint64_t *)&lip->s6_addr[0];
sys/dev/cxgbe/t4_clip.c
247
c.ip_lo = *(uint64_t *)&lip->s6_addr[8];
sys/dev/cxgbe/t4_clip.c
249
return (-t4_wr_mbox_ns(sc, sc->mbox, &c, sizeof(c), &c));
sys/dev/cxgbe/t4_main.c
13717
calculate_nqueues(int *t, int nc, const int c)
sys/dev/cxgbe/t4_main.c
13723
nq = *t < 0 ? -*t : c;
sys/dev/cxgbe/t4_main.c
2338
#define COMPARE_CAPS(c) do { \
sys/dev/cxgbe/t4_main.c
2339
if (o->c##caps != sc->c##caps) { \
sys/dev/cxgbe/t4_main.c
2340
CH_ERR(sc, "%scaps 0x%04x -> 0x%04x.\n", #c, o->c##caps, \
sys/dev/cxgbe/t4_main.c
2341
sc->c##caps); \
sys/dev/cxgbe/t4_main.c
3407
vi_get_counter(if_t ifp, ift_counter c)
sys/dev/cxgbe/t4_main.c
3416
switch (c) {
sys/dev/cxgbe/t4_main.c
3454
return (if_get_counter_default(ifp, c));
sys/dev/cxgbe/t4_main.c
3459
cxgbe_get_counter(if_t ifp, ift_counter c)
sys/dev/cxgbe/t4_main.c
3469
switch (c) {
sys/dev/cxgbe/t4_main.c
3517
return (if_get_counter_default(ifp, c));
sys/dev/cxgbe/t4_main.c
5006
const uint32_t c = be32toh(card_fw->fw_ver);
sys/dev/cxgbe/t4_main.c
5037
if (c == 0xffffffff) {
sys/dev/cxgbe/t4_main.c
5051
if (d > c) {
sys/dev/cxgbe/t4_main.c
5056
if (fw_install == 2 && d != c) {
sys/dev/cxgbe/t4_main.c
5074
G_FW_HDR_FW_VER_MAJOR(c), G_FW_HDR_FW_VER_MINOR(c),
sys/dev/cxgbe/t4_main.c
5075
G_FW_HDR_FW_VER_MICRO(c), G_FW_HDR_FW_VER_BUILD(c), reason);
sys/dev/cxgbe/t4_main.c
5097
G_FW_HDR_FW_VER_MAJOR(c), G_FW_HDR_FW_VER_MINOR(c),
sys/dev/cxgbe/t4_main.c
5098
G_FW_HDR_FW_VER_MICRO(c), G_FW_HDR_FW_VER_BUILD(c), reason);
sys/dev/cxgbe/t4_main.c
5118
G_FW_HDR_FW_VER_MAJOR(c), G_FW_HDR_FW_VER_MINOR(c),
sys/dev/cxgbe/t4_main.c
5119
G_FW_HDR_FW_VER_MICRO(c), G_FW_HDR_FW_VER_BUILD(c), reason,
sys/dev/cxgbe/t4_netmap.c
285
struct fw_iq_cmd c;
sys/dev/cxgbe/t4_netmap.c
295
bzero(&c, sizeof(c));
sys/dev/cxgbe/t4_netmap.c
296
c.op_to_vfn = htobe32(V_FW_CMD_OP(FW_IQ_CMD) | F_FW_CMD_REQUEST |
sys/dev/cxgbe/t4_netmap.c
299
c.alloc_to_len16 = htobe32(F_FW_IQ_CMD_IQSTART | FW_LEN16(c));
sys/dev/cxgbe/t4_netmap.c
301
c.alloc_to_len16 |= htobe32(F_FW_IQ_CMD_ALLOC);
sys/dev/cxgbe/t4_netmap.c
303
c.iqid = htobe16(nm_rxq->iq_cntxt_id);
sys/dev/cxgbe/t4_netmap.c
304
c.fl0id = htobe16(nm_rxq->fl_cntxt_id);
sys/dev/cxgbe/t4_netmap.c
305
c.fl1id = htobe16(0xffff);
sys/dev/cxgbe/t4_netmap.c
306
c.physiqid = htobe16(nm_rxq->iq_abs_id);
sys/dev/cxgbe/t4_netmap.c
312
c.type_to_iqandstindex = htobe32(v |
sys/dev/cxgbe/t4_netmap.c
316
c.iqdroprss_to_iqesize = htobe16(V_FW_IQ_CMD_IQPCIECH(pi->hw_port) |
sys/dev/cxgbe/t4_netmap.c
320
c.iqsize = htobe16(vi->qsize_rxq);
sys/dev/cxgbe/t4_netmap.c
321
c.iqaddr = htobe64(nm_rxq->iq_ba);
sys/dev/cxgbe/t4_netmap.c
327
c.iqns_to_fl0congen = htobe32(F_FW_IQ_CMD_IQFLINTCONGEN |
sys/dev/cxgbe/t4_netmap.c
331
c.iqns_to_fl0congen |=
sys/dev/cxgbe/t4_netmap.c
337
c.fl0dcaen_to_fl0cidxfthresh =
sys/dev/cxgbe/t4_netmap.c
342
c.fl0size = htobe16(na->num_rx_desc / 8 + sp->spg_len / EQ_ESIZE);
sys/dev/cxgbe/t4_netmap.c
343
c.fl0addr = htobe64(nm_rxq->fl_ba);
sys/dev/cxgbe/t4_netmap.c
345
rc = -t4_wr_mbox(sc, sc->mbox, &c, sizeof(c), &c);
sys/dev/cxgbe/t4_netmap.c
355
nm_rxq->iq_cntxt_id = be16toh(c.iqid);
sys/dev/cxgbe/t4_netmap.c
356
nm_rxq->iq_abs_id = be16toh(c.physiqid);
sys/dev/cxgbe/t4_netmap.c
364
nm_rxq->fl_cntxt_id = be16toh(c.fl0id);
sys/dev/cxgbe/t4_netmap.c
414
struct fw_eq_eth_cmd c;
sys/dev/cxgbe/t4_netmap.c
422
bzero(&c, sizeof(c));
sys/dev/cxgbe/t4_netmap.c
423
c.op_to_vfn = htobe32(V_FW_CMD_OP(FW_EQ_ETH_CMD) | F_FW_CMD_REQUEST |
sys/dev/cxgbe/t4_netmap.c
426
c.alloc_to_len16 = htobe32(F_FW_EQ_ETH_CMD_EQSTART | FW_LEN16(c));
sys/dev/cxgbe/t4_netmap.c
431
c.alloc_to_len16 |= htobe32(F_FW_EQ_ETH_CMD_ALLOC |
sys/dev/cxgbe/t4_netmap.c
434
c.eqid_pkd = htobe32(V_FW_EQ_ETH_CMD_EQID(nm_txq->cntxt_id));
sys/dev/cxgbe/t4_netmap.c
435
c.autoequiqe_to_viid = htobe32(F_FW_EQ_ETH_CMD_AUTOEQUIQE |
sys/dev/cxgbe/t4_netmap.c
437
c.fetchszm_to_iqid =
sys/dev/cxgbe/t4_netmap.c
441
c.dcaen_to_eqsize =
sys/dev/cxgbe/t4_netmap.c
446
c.eqaddr = htobe64(nm_txq->ba);
sys/dev/cxgbe/t4_netmap.c
448
rc = -t4_wr_mbox(sc, sc->mbox, &c, sizeof(c), &c);
sys/dev/cxgbe/t4_netmap.c
455
nm_txq->cntxt_id = G_FW_EQ_ETH_CMD_EQID(be32toh(c.eqid_pkd));
sys/dev/cxgbe/t4_sge.c
3593
struct fw_iq_cmd c;
sys/dev/cxgbe/t4_sge.c
3600
bzero(&c, sizeof(c));
sys/dev/cxgbe/t4_sge.c
3601
c.op_to_vfn = htobe32(V_FW_CMD_OP(FW_IQ_CMD) | F_FW_CMD_REQUEST |
sys/dev/cxgbe/t4_sge.c
3605
c.alloc_to_len16 = htobe32(F_FW_IQ_CMD_ALLOC | F_FW_IQ_CMD_IQSTART |
sys/dev/cxgbe/t4_sge.c
3606
FW_LEN16(c));
sys/dev/cxgbe/t4_sge.c
3623
c.type_to_iqandstindex = htobe32(v |
sys/dev/cxgbe/t4_sge.c
3627
c.iqdroprss_to_iqesize = htobe16(V_FW_IQ_CMD_IQPCIECH(pi->hw_port) |
sys/dev/cxgbe/t4_sge.c
3631
c.iqsize = htobe16(iq->qsize);
sys/dev/cxgbe/t4_sge.c
3632
c.iqaddr = htobe64(iq->ba);
sys/dev/cxgbe/t4_sge.c
3633
c.iqns_to_fl0congen = htobe32(V_FW_IQ_CMD_IQTYPE(iq->qtype));
sys/dev/cxgbe/t4_sge.c
3642
c.iqns_to_fl0congen |= htobe32(F_FW_IQ_CMD_IQFLINTCONGEN);
sys/dev/cxgbe/t4_sge.c
3647
c.iqns_to_fl0congen |=
sys/dev/cxgbe/t4_sge.c
3654
c.iqns_to_fl0congen |=
sys/dev/cxgbe/t4_sge.c
3659
c.fl0dcaen_to_fl0cidxfthresh =
sys/dev/cxgbe/t4_sge.c
3664
c.fl0size = htobe16(fl->qsize);
sys/dev/cxgbe/t4_sge.c
3665
c.fl0addr = htobe64(fl->ba);
sys/dev/cxgbe/t4_sge.c
3668
rc = -t4_wr_mbox(sc, sc->mbox, &c, sizeof(c), &c);
sys/dev/cxgbe/t4_sge.c
3676
iq->cntxt_id = be16toh(c.iqid);
sys/dev/cxgbe/t4_sge.c
3677
iq->abs_id = be16toh(c.physiqid);
sys/dev/cxgbe/t4_sge.c
3695
fl->cntxt_id = be16toh(c.fl0id);
sys/dev/cxgbe/t4_sge.c
4376
struct fw_eq_ctrl_cmd c;
sys/dev/cxgbe/t4_sge.c
4379
bzero(&c, sizeof(c));
sys/dev/cxgbe/t4_sge.c
4381
c.op_to_vfn = htobe32(V_FW_CMD_OP(FW_EQ_CTRL_CMD) | F_FW_CMD_REQUEST |
sys/dev/cxgbe/t4_sge.c
4384
c.alloc_to_len16 = htobe32(F_FW_EQ_CTRL_CMD_ALLOC |
sys/dev/cxgbe/t4_sge.c
4386
F_FW_EQ_CTRL_CMD_EQSTART | FW_LEN16(c));
sys/dev/cxgbe/t4_sge.c
4387
c.cmpliqid_eqid = htonl(V_FW_EQ_CTRL_CMD_CMPLIQID(eq->iqid));
sys/dev/cxgbe/t4_sge.c
4388
c.physeqid_pkd = htobe32(0);
sys/dev/cxgbe/t4_sge.c
4389
c.fetchszm_to_iqid =
sys/dev/cxgbe/t4_sge.c
4393
c.dcaen_to_eqsize =
sys/dev/cxgbe/t4_sge.c
4399
c.eqaddr = htobe64(eq->ba);
sys/dev/cxgbe/t4_sge.c
4401
rc = -t4_wr_mbox(sc, sc->mbox, &c, sizeof(c), &c);
sys/dev/cxgbe/t4_sge.c
4408
eq->cntxt_id = G_FW_EQ_CTRL_CMD_EQID(be32toh(c.cmpliqid_eqid));
sys/dev/cxgbe/t4_sge.c
4409
eq->abs_id = G_FW_EQ_CTRL_CMD_PHYSEQID(be32toh(c.physeqid_pkd));
sys/dev/cxgbe/t4_sge.c
4423
struct fw_eq_eth_cmd c;
sys/dev/cxgbe/t4_sge.c
4426
bzero(&c, sizeof(c));
sys/dev/cxgbe/t4_sge.c
4428
c.op_to_vfn = htobe32(V_FW_CMD_OP(FW_EQ_ETH_CMD) | F_FW_CMD_REQUEST |
sys/dev/cxgbe/t4_sge.c
4431
c.alloc_to_len16 = htobe32(F_FW_EQ_ETH_CMD_ALLOC |
sys/dev/cxgbe/t4_sge.c
4433
F_FW_EQ_ETH_CMD_EQSTART | FW_LEN16(c));
sys/dev/cxgbe/t4_sge.c
4434
c.autoequiqe_to_viid = htobe32(F_FW_EQ_ETH_CMD_AUTOEQUIQE |
sys/dev/cxgbe/t4_sge.c
4436
c.fetchszm_to_iqid =
sys/dev/cxgbe/t4_sge.c
4440
c.dcaen_to_eqsize =
sys/dev/cxgbe/t4_sge.c
4445
c.eqaddr = htobe64(eq->ba);
sys/dev/cxgbe/t4_sge.c
4447
rc = -t4_wr_mbox(sc, sc->mbox, &c, sizeof(c), &c);
sys/dev/cxgbe/t4_sge.c
4454
eq->cntxt_id = G_FW_EQ_ETH_CMD_EQID(be32toh(c.eqid_pkd));
sys/dev/cxgbe/t4_sge.c
4455
eq->abs_id = G_FW_EQ_ETH_CMD_PHYSEQID(be32toh(c.physeqid_pkd));
sys/dev/cxgbe/t4_sge.c
4485
struct fw_eq_ofld_cmd c;
sys/dev/cxgbe/t4_sge.c
4493
bzero(&c, sizeof(c));
sys/dev/cxgbe/t4_sge.c
4495
c.op_to_vfn = htonl(V_FW_CMD_OP(FW_EQ_OFLD_CMD) | F_FW_CMD_REQUEST |
sys/dev/cxgbe/t4_sge.c
4498
c.alloc_to_len16 = htonl(F_FW_EQ_OFLD_CMD_ALLOC |
sys/dev/cxgbe/t4_sge.c
4500
F_FW_EQ_OFLD_CMD_EQSTART | FW_LEN16(c));
sys/dev/cxgbe/t4_sge.c
4501
c.fetchszm_to_iqid =
sys/dev/cxgbe/t4_sge.c
4505
c.dcaen_to_eqsize =
sys/dev/cxgbe/t4_sge.c
4511
c.eqaddr = htobe64(eq->ba);
sys/dev/cxgbe/t4_sge.c
4513
rc = -t4_wr_mbox(sc, sc->mbox, &c, sizeof(c), &c);
sys/dev/cxgbe/t4_sge.c
4520
eq->cntxt_id = G_FW_EQ_OFLD_CMD_EQID(be32toh(c.eqid_pkd));
sys/dev/cxgbe/t4_sge.c
4521
eq->abs_id = G_FW_EQ_OFLD_CMD_PHYSEQID(be32toh(c.physeqid_pkd));
sys/dev/cxgbe/t4_sge.c
6696
char c;
sys/dev/cxgbe/t4_sge.c
6701
c = '*';
sys/dev/cxgbe/t4_sge.c
6703
c = '\0';
sys/dev/cxgbe/t4_sge.c
6705
sbuf_printf(&sb, "%u%c ", sp->sge_fl_buffer_size[i], c);
sys/dev/cyapa/cyapa.c
1745
uint8_t c;
sys/dev/cyapa/cyapa.c
1751
c = 0;
sys/dev/cyapa/cyapa.c
1753
c = fifo->buf[fifo->rindex & CYAPA_BUFMASK];
sys/dev/cyapa/cyapa.c
1756
return (c);
sys/dev/cyapa/cyapa.c
1765
fifo_write_char(struct cyapa_softc *sc, struct cyapa_fifo *fifo, uint8_t c)
sys/dev/cyapa/cyapa.c
1771
fifo->buf[fifo->windex & CYAPA_BUFMASK] = c;
sys/dev/cyapa/cyapa.c
233
uint8_t c);
sys/dev/cyapa/cyapa.h
105
#define CYAPA_FNGR_NUMFINGERS(c) (((c) >> 4) & 0x0F)
sys/dev/dc/if_dc.c
2741
struct dc_desc *c = NULL;
sys/dev/dc/if_dc.c
2754
c = &sc->dc_ldata.dc_rx_list[i];
sys/dev/dc/if_dc.c
2755
rxstat = le32toh(c->dc_status);
sys/dev/dcons/dcons.c
102
c = ch->buf[ch->pos];
sys/dev/dcons/dcons.c
109
return (c);
sys/dev/dcons/dcons.c
113
dcons_putc(struct dcons_softc *dc, int c)
sys/dev/dcons/dcons.c
119
ch->buf[ch->pos] = c;
sys/dev/dcons/dcons.c
79
unsigned char c;
sys/dev/dcons/dcons_os.c
151
dcons_check_break(struct dcons_softc *dc, int c)
sys/dev/dcons/dcons_os.c
154
if (c < 0)
sys/dev/dcons/dcons_os.c
155
return (c);
sys/dev/dcons/dcons_os.c
159
kdb_alt_break_gdb(c, &dc->brk_state);
sys/dev/dcons/dcons_os.c
162
kdb_alt_break(c, &dc->brk_state);
sys/dev/dcons/dcons_os.c
164
return (c);
sys/dev/dcons/dcons_os.c
167
#define dcons_check_break(dc, c) (c)
sys/dev/dcons/dcons_os.c
173
int c;
sys/dev/dcons/dcons_os.c
178
c = dcons_check_break(dc, dcons_checkc(dc));
sys/dev/dcons/dcons_os.c
183
return (c);
sys/dev/dcons/dcons_os.c
194
dcons_os_putc(struct dcons_softc *dc, int c)
sys/dev/dcons/dcons_os.c
199
dcons_putc(dc, c);
sys/dev/dcons/dcons_os.c
230
int i, c, polltime;
sys/dev/dcons/dcons_os.c
237
while ((c = dcons_os_checkc_nopoll(dc)) != -1) {
sys/dev/dcons/dcons_os.c
238
ttydisc_rint(tp, c, 0);
sys/dev/dcons/dcons_os.c
292
dcons_cnputc(struct consdev *cp, int c)
sys/dev/dcons/dcons_os.c
295
dcons_os_putc(dc, c);
sys/dev/dcons/dcons_os.c
470
int c;
sys/dev/dcons/dcons_os.c
472
while ((c = dcons_os_checkc(dc)) == -1);
sys/dev/dcons/dcons_os.c
474
return (c & 0xff);
sys/dev/dcons/dcons_os.c
498
dcons_dbg_putc(int c)
sys/dev/dcons/dcons_os.c
501
dcons_os_putc(dc, c);
sys/dev/dpaa2/dpaa2_mcp.h
468
#define DPAA2_CMD_INIT(c) DPAA2_CMD_INIT_FLAGS((c), DPAA2_CMD_DEF)
sys/dev/dpaa2/dpaa2_mcp.h
469
#define DPAA2_CMD_TK(c, t) dpaa2_mcp_tk((c), (t))
sys/dev/dpaa2/dpaa2_mcp.h
470
#define DPAA2_CMD_F(c, f) dpaa2_mcp_f((c), (f))
sys/dev/dpaa2/dpaa2_ni.c
2531
dpaa2_ni_ioctl(if_t ifp, u_long c, caddr_t data)
sys/dev/dpaa2/dpaa2_ni.c
2560
switch (c) {
sys/dev/dpaa2/dpaa2_ni.c
2637
rc = ifmedia_ioctl(ifp, ifr, &sc->mii->mii_media, c);
sys/dev/dpaa2/dpaa2_ni.c
2639
rc = ifmedia_ioctl(ifp, ifr, &sc->fixed_ifmedia, c);
sys/dev/dpaa2/dpaa2_ni.c
2643
rc = ether_ioctl(ifp, c, data);
sys/dev/dpaa2/dpaa2_swp.c
1009
} *c;
sys/dev/dpaa2/dpaa2_swp.c
1018
c = (struct with_verb *) cmd;
sys/dev/dpaa2/dpaa2_swp.c
1029
bus_write_1(map, offset, c->verb | swp->vdq.valid_bit);
sys/dev/dpaa2/dpaa2_swp.c
1036
bus_write_1(map, offset, c->verb | swp->vdq.valid_bit);
sys/dev/dpaa2/dpaa2_swp.c
939
} *c;
sys/dev/dpaa2/dpaa2_swp.c
966
c = (struct with_verb *) cmd;
sys/dev/dpaa2/dpaa2_swp.c
977
bus_write_1(map, offset, c->verb | RAR_VB(rar) | buf_num);
sys/dev/dpaa2/dpaa2_swp.c
983
bus_write_1(map, offset, c->verb | RAR_VB(rar) | buf_num);
sys/dev/drm2/drm_crtc.h
112
#define DRM_MODE(nm, t, c, hd, hss, hse, ht, hsk, vd, vss, vse, vt, vs, f) \
sys/dev/drm2/drm_crtc.h
113
.name = nm, .status = 0, .type = (t), .clock = (c), \
sys/dev/drm2/drm_edid.c
1187
do_inferred_modes(struct detailed_timing *timing, void *c)
sys/dev/drm2/drm_edid.c
1189
struct detailed_mode_closure *closure = c;
sys/dev/drm2/drm_edid.c
1268
do_established_modes(struct detailed_timing *timing, void *c)
sys/dev/drm2/drm_edid.c
1270
struct detailed_mode_closure *closure = c;
sys/dev/drm2/drm_edid.c
1315
do_standard_modes(struct detailed_timing *timing, void *c)
sys/dev/drm2/drm_edid.c
1317
struct detailed_mode_closure *closure = c;
sys/dev/drm2/drm_edid.c
1425
do_cvt_mode(struct detailed_timing *timing, void *c)
sys/dev/drm2/drm_edid.c
1427
struct detailed_mode_closure *closure = c;
sys/dev/drm2/drm_edid.c
1450
do_detailed_mode(struct detailed_timing *timing, void *c)
sys/dev/drm2/drm_edid.c
1452
struct detailed_mode_closure *closure = c;
sys/dev/drm2/drm_edid.h
96
u8 c; /* need to divide by 2 */
sys/dev/drm2/drm_fb_helper.c
1248
int c, o;
sys/dev/drm2/drm_fb_helper.c
1288
for (c = 0; c < fb_helper->crtc_count; c++) {
sys/dev/drm2/drm_fb_helper.c
1289
crtc = &fb_helper->crtc_info[c];
sys/dev/drm2/drm_fb_helper.c
1291
if ((encoder->possible_crtcs & (1 << c)) == 0)
sys/dev/drm2/drm_fb_helper.c
294
struct drm_crtc *c;
sys/dev/drm2/drm_fb_helper.c
296
list_for_each_entry(c, &dev->mode_config.crtc_list, head) {
sys/dev/drm2/drm_fb_helper.c
297
if (crtc->base.id == c->base.id)
sys/dev/drm2/drm_fb_helper.c
298
return c->fb;
sys/dev/drm2/drm_fourcc.h
27
#define fourcc_code(a, b, c, d) ((__u32)(a) | ((__u32)(b) << 8) | \
sys/dev/drm2/drm_fourcc.h
28
((__u32)(c) << 16) | ((__u32)(d) << 24))
sys/dev/drm2/drm_os_freebsd.c
407
int i, j, c;
sys/dev/drm2/drm_os_freebsd.c
412
c = ((const char *)buf)[i];
sys/dev/drm2/drm_os_freebsd.c
429
sprintf(linebuf + j, "%02X", c);
sys/dev/drm2/drm_os_freebsd.h
195
#define memset_io(a, b, c) memset((a), (b), (c))
sys/dev/drm2/drm_os_freebsd.h
196
#define memcpy_fromio(a, b, c) memcpy((a), (b), (c))
sys/dev/drm2/drm_os_freebsd.h
197
#define memcpy_toio(a, b, c) memcpy((a), (b), (c))
sys/dev/drm2/drm_os_freebsd.h
364
char c;
sys/dev/drm2/drm_os_freebsd.h
372
ret = -copyin(uaddr, &c, 1);
sys/dev/drm2/drm_os_freebsd.h
381
ret = -copyin(end, &c, 1);
sys/dev/drm2/drm_os_freebsd.h
461
#define INIT_COMPLETION(c) ((c).done = 0);
sys/dev/drm2/drm_os_freebsd.h
464
init_completion(struct completion *c)
sys/dev/drm2/drm_os_freebsd.h
467
mtx_init(&c->lock, "drmcompl", NULL, MTX_DEF);
sys/dev/drm2/drm_os_freebsd.h
468
c->done = 0;
sys/dev/drm2/drm_os_freebsd.h
472
free_completion(struct completion *c)
sys/dev/drm2/drm_os_freebsd.h
475
mtx_destroy(&c->lock);
sys/dev/drm2/drm_os_freebsd.h
479
complete_all(struct completion *c)
sys/dev/drm2/drm_os_freebsd.h
482
mtx_lock(&c->lock);
sys/dev/drm2/drm_os_freebsd.h
483
c->done++;
sys/dev/drm2/drm_os_freebsd.h
484
mtx_unlock(&c->lock);
sys/dev/drm2/drm_os_freebsd.h
485
wakeup(c);
sys/dev/drm2/drm_os_freebsd.h
489
wait_for_completion_interruptible_timeout(struct completion *c,
sys/dev/drm2/drm_os_freebsd.h
498
mtx_lock(&c->lock);
sys/dev/drm2/drm_os_freebsd.h
499
while (c->done == 0 && !timeout_expired) {
sys/dev/drm2/drm_os_freebsd.h
500
ret = -msleep(c, &c->lock, PCATCH, "drmwco", timeout);
sys/dev/drm2/drm_os_freebsd.h
515
mtx_unlock(&c->lock);
sys/dev/drm2/drm_os_freebsd.h
548
#define simple_strtol(a, b, c) strtol((a), (b), (c))
sys/dev/e1000/e1000_nvm.c
108
u16 E1000_UNUSEDARG *c)
sys/dev/e1000/e1000_nvm.c
71
u16 E1000_UNUSEDARG *c)
sys/dev/e1000/e1000_nvm.h
61
s32 e1000_null_read_nvm(struct e1000_hw *hw, u16 a, u16 b, u16 *c);
sys/dev/e1000/e1000_nvm.h
64
s32 e1000_null_write_nvm(struct e1000_hw *hw, u16 a, u16 b, u16 *c);
sys/dev/enic/enic_res.c
101
c->wq_desc_count, c->rq_desc_count,
sys/dev/enic/enic_res.c
102
c->mtu, enic->max_mtu);
sys/dev/enic/enic_res.c
112
c->intr_mode == VENET_INTR_MODE_INTX ? "INTx" :
sys/dev/enic/enic_res.c
113
c->intr_mode == VENET_INTR_MODE_MSI ? "MSI" :
sys/dev/enic/enic_res.c
114
c->intr_mode == VENET_INTR_MODE_ANY ? "any" :
sys/dev/enic/enic_res.c
116
c->intr_timer_type == VENET_INTR_TYPE_MIN ? "min" :
sys/dev/enic/enic_res.c
117
c->intr_timer_type == VENET_INTR_TYPE_IDLE ? "idle" :
sys/dev/enic/enic_res.c
119
c->intr_timer_usec,
sys/dev/enic/enic_res.c
120
c->loop_tag);
sys/dev/enic/enic_res.c
26
struct vnic_enet_config *c = &enic->config;
sys/dev/enic/enic_res.c
39
sizeof(c->m), &c->m); \
sys/dev/enic/enic_res.c
61
if (c->max_pkt_size > ENIC_DEFAULT_RX_MAX_PKT_SIZE)
sys/dev/enic/enic_res.c
62
enic->max_mtu = c->max_pkt_size - (ETHER_HDR_LEN + 4);
sys/dev/enic/enic_res.c
66
if (c->mtu == 0)
sys/dev/enic/enic_res.c
67
c->mtu = 1500;
sys/dev/enic/enic_res.c
81
c->wq_desc_count =
sys/dev/enic/enic_res.c
84
c->wq_desc_count));
sys/dev/enic/enic_res.c
85
c->wq_desc_count &= 0xffffffe0; /* must be aligned to groups of 32 */
sys/dev/enic/enic_res.c
87
c->rq_desc_count =
sys/dev/enic/enic_res.c
90
c->rq_desc_count));
sys/dev/enic/enic_res.c
91
c->rq_desc_count &= 0xffffffe0; /* must be aligned to groups of 32 */
sys/dev/enic/enic_res.c
93
c->intr_timer_usec = min_t(u32, c->intr_timer_usec,
sys/dev/et/if_et.c
2414
#define ET_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/et/if_et.c
2415
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/et/if_et.c
2416
#define ET_SYSCTL_STAT_ADD64(c, h, n, p, d) \
sys/dev/et/if_et.c
2417
SYSCTL_ADD_UQUAD(c, h, OID_AUTO, n, CTLFLAG_RD, p, d)
sys/dev/etherswitch/rtl8366/rtl8366rb.c
86
#define RTL_LOCK_ASSERT(_sc, _what) mtx_assert(&(_s)c->sc_mtx, (_what))
sys/dev/exca/exca.c
659
uint8_t c;
sys/dev/exca/exca.c
669
c = exca_getb(exca, EXCA_IDENT);
sys/dev/exca/exca.c
670
DEVPRINTF(exca->dev, "Ident is %x\n", c);
sys/dev/exca/exca.c
671
if ((c & EXCA_IDENT_IFTYPE_MASK) != EXCA_IDENT_IFTYPE_MEM_AND_IO)
sys/dev/exca/exca.c
673
if ((c & EXCA_IDENT_ZERO) != 0)
sys/dev/exca/exca.c
675
switch (c & EXCA_IDENT_REV_MASK) {
sys/dev/exca/exca.c
694
c = exca_getb(exca, EXCA_IDENT);
sys/dev/exca/exca.c
695
if (c & 0x08) {
sys/dev/exca/exca.c
696
switch (c & 7) {
sys/dev/exca/exca.c
716
c = exca_getb(exca, EXCA_RICOH_ID);
sys/dev/exca/exca.c
717
if (c == EXCA_RID_396) {
sys/dev/exca/exca.c
720
} else if (c == EXCA_RID_296) {
sys/dev/exca/exca.c
728
c = exca_getb(exca, EXCA_CIRRUS_CHIP_INFO);
sys/dev/exca/exca.c
729
if ((c & EXCA_CIRRUS_CHIP_INFO_CHIP_ID) ==
sys/dev/exca/exca.c
731
c = exca_getb(exca, EXCA_CIRRUS_CHIP_INFO);
sys/dev/exca/exca.c
732
if ((c & EXCA_CIRRUS_CHIP_INFO_CHIP_ID) == 0) {
sys/dev/exca/exca.c
733
if (c & EXCA_CIRRUS_CHIP_INFO_SLOTS)
sys/dev/fb/fbreg.h
103
u_char *data, int c, int count);
sys/dev/fb/fbreg.h
105
u_char *data, int c, int count);
sys/dev/fb/fbreg.h
139
typedef int vi_putc_t(video_adapter_t *adp, vm_offset_t off, u_int8_t c,
sys/dev/fb/fbreg.h
192
#define vidd_save_font(adp, page, size, width, data, c, count) \
sys/dev/fb/fbreg.h
194
(width), (data), (c), (count))
sys/dev/fb/fbreg.h
195
#define vidd_load_font(adp, page, size, width, data, c, count) \
sys/dev/fb/fbreg.h
197
(width), (data), (c), (count))
sys/dev/fb/fbreg.h
244
#define vidd_putc(adp, offset, c, a) \
sys/dev/fb/fbreg.h
245
(*vidsw[(adp)->va_index]->putc)((adp), (offset), (c), (a))
sys/dev/fb/fbreg.h
46
#define bcopy_io(s, d, c) copyw((void*)(s), (void*)(d), (c))
sys/dev/fb/fbreg.h
47
#define bcopy_toio(s, d, c) copyw((void*)(s), (void*)(d), (c))
sys/dev/fb/fbreg.h
48
#define bcopy_fromio(s, d, c) copyw((void*)(s), (void*)(d), (c))
sys/dev/fb/fbreg.h
49
#define bzero_io(d, c) bzero((void *)(d), (c))
sys/dev/fb/fbreg.h
50
#define fill_io(p, d, c) fill((p), (void *)(d), (c))
sys/dev/fb/fbreg.h
51
#define fillw_io(p, d, c) fillw((p), (void *)(d), (c))
sys/dev/fb/fbreg.h
54
#define bcopy_io(s, d, c) ofwfb_bcopy((void *)(s), (void *)(d), (c))
sys/dev/fb/fbreg.h
55
#define bcopy_toio(s, d, c) ofwfb_bcopy((void *)(s), (void *)(d), (c))
sys/dev/fb/fbreg.h
56
#define bcopy_fromio(s, d, c) ofwfb_bcopy((void *)(s), (void *)(d), (c))
sys/dev/fb/fbreg.h
57
#define bzero_io(d, c) ofwfb_bzero((void *)(d), (c))
sys/dev/fb/fbreg.h
58
#define fillw(p, d, c) ofwfb_fillw((p), (void *)(d), (c))
sys/dev/fb/fbreg.h
59
#define fillw_io(p, d, c) ofwfb_fillw((p), (void *)(d), (c))
sys/dev/fb/fbreg.h
62
void ofwfb_bcopy(const void *s, void *d, size_t c);
sys/dev/fb/fbreg.h
63
void ofwfb_bzero(void *d, size_t c);
sys/dev/fb/fbreg.h
70
#define bcopy_io(s, d, c) memcpy((void *)(d), (void *)(s), (c))
sys/dev/fb/fbreg.h
71
#define bcopy_toio(s, d, c) memcpy((void *)(d), (void *)(s), (c))
sys/dev/fb/fbreg.h
72
#define bcopy_fromio(s, d, c) memcpy((void *)(d), (void *)(s), (c))
sys/dev/fb/fbreg.h
73
#define bzero_io(d, c) memset((void *)(d), 0, (c))
sys/dev/fb/fbreg.h
74
#define fill_io(p, d, c) memset((void *)(d), (p), (c))
sys/dev/fb/fbreg.h
81
#define fillw_io(p, d, c) fillw((p), (void *)(d), (c))
sys/dev/fb/fbreg.h
87
#define bcopy_io(s, d, c) memcpy_io((d), (s), (c))
sys/dev/fb/fbreg.h
88
#define bcopy_toio(s, d, c) memcpy_toio((d), (void *)(s), (c))
sys/dev/fb/fbreg.h
89
#define bcopy_fromio(s, d, c) memcpy_fromio((void *)(d), (s), (c))
sys/dev/fb/fbreg.h
90
#define bzero_io(d, c) memset_io((d), 0, (c))
sys/dev/fb/fbreg.h
91
#define fill_io(p, d, c) memset_io((d), (p), (c))
sys/dev/fb/fbreg.h
92
#define fillw(p, d, c) memsetw((d), (p), (c))
sys/dev/fb/fbreg.h
93
#define fillw_io(p, d, c) memsetw_io((d), (p), (c))
sys/dev/fb/splash_pcx.c
205
int c, i, j, pos, scan, x, y;
sys/dev/fb/splash_pcx.c
237
c = pcx_info.zdata[i++] & 0x3f;
sys/dev/fb/splash_pcx.c
241
c = 1;
sys/dev/fb/splash_pcx.c
243
if (j + c > pcx_info.bpsl)
sys/dev/fb/splash_pcx.c
245
while (c--)
sys/dev/fb/vga.c
1795
int c;
sys/dev/fb/vga.c
1837
for (c = ch; count > 0; ++c, --count) {
sys/dev/fb/vga.c
1838
bcopy_fromio((uintptr_t)segment + c*32, data, fontsize);
sys/dev/fb/vga.c
1875
int c;
sys/dev/fb/vga.c
1917
for (c = ch; count > 0; ++c, --count) {
sys/dev/fb/vga.c
1918
bcopy_toio(data, (uintptr_t)segment + c*32, fontsize);
sys/dev/firewire/firewire.h
133
#define COMMON_HDR(a,b,c,d) uint32_t a:16,b:8,c:4,d:4
sys/dev/firewire/firewire.h
134
#define COMMON_RES(a,b,c,d) uint32_t a:16,b:4,c:4,d:8
sys/dev/firewire/firewire.h
136
#define COMMON_HDR(a,b,c,d) uint32_t d:4,c:4,b:8,a:16
sys/dev/firewire/firewire.h
137
#define COMMON_RES(a,b,c,d) uint32_t d:8,c:4,b:4,a:16
sys/dev/firewire/fwcrom.c
160
struct crom_context c, *cc;
sys/dev/firewire/fwcrom.c
163
cc = &c;
sys/dev/firewire/fwphyreg.h
56
c:1,
sys/dev/firewire/fwphyreg.h
88
c:1,
sys/dev/firewire/if_fwe.c
552
u_char *c;
sys/dev/firewire/if_fwe.c
583
c = mtod(m, u_char *);
sys/dev/firewire/if_fwe.c
594
c[0], c[1], c[2], c[3], c[4], c[5],
sys/dev/firewire/if_fwe.c
595
c[6], c[7], c[8], c[9], c[10], c[11],
sys/dev/firewire/if_fwe.c
596
c[12], c[13], c[14], c[15],
sys/dev/firewire/if_fwe.c
597
c[16], c[17], c[18], c[19],
sys/dev/firewire/if_fwe.c
598
c[20], c[21], c[22], c[23],
sys/dev/firewire/if_fwe.c
599
c[20], c[21], c[22], c[23]
sys/dev/firewire/sbp.c
624
struct crom_context c, *cc = &c;
sys/dev/fxp/if_fxp.c
3111
#define FXP_SYSCTL_STAT_ADD(c, h, n, p, d) \
sys/dev/fxp/if_fxp.c
3112
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/fxp/if_fxpreg.h
128
#define __FXP_BITFIELD3(a, b, c) a, b, c
sys/dev/fxp/if_fxpreg.h
129
#define __FXP_BITFIELD4(a, b, c, d) a, b, c, d
sys/dev/fxp/if_fxpreg.h
130
#define __FXP_BITFIELD5(a, b, c, d, e) a, b, c, d, e
sys/dev/fxp/if_fxpreg.h
131
#define __FXP_BITFIELD6(a, b, c, d, e, f) a, b, c, d, e, f
sys/dev/fxp/if_fxpreg.h
132
#define __FXP_BITFIELD7(a, b, c, d, e, f, g) a, b, c, d, e, f, g
sys/dev/fxp/if_fxpreg.h
133
#define __FXP_BITFIELD8(a, b, c, d, e, f, g, h) a, b, c, d, e, f, g, h
sys/dev/fxp/if_fxpreg.h
136
#define __FXP_BITFIELD3(a, b, c) c, b, a
sys/dev/fxp/if_fxpreg.h
137
#define __FXP_BITFIELD4(a, b, c, d) d, c, b, a
sys/dev/fxp/if_fxpreg.h
138
#define __FXP_BITFIELD5(a, b, c, d, e) e, d, c, b, a
sys/dev/fxp/if_fxpreg.h
139
#define __FXP_BITFIELD6(a, b, c, d, e, f) f, e, d, c, b, a
sys/dev/fxp/if_fxpreg.h
140
#define __FXP_BITFIELD7(a, b, c, d, e, f, g) g, f, e, d, c, b, a
sys/dev/fxp/if_fxpreg.h
141
#define __FXP_BITFIELD8(a, b, c, d, e, f, g, h) h, g, f, e, d, c, b, a
sys/dev/gpio/gpiokeys.c
1000
c = gpiokeys_read_char(&sc->sc_kbd, 0);
sys/dev/gpio/gpiokeys.c
1001
} while (c != NOKEY);
sys/dev/gpio/gpiokeys.c
690
int32_t c;
sys/dev/gpio/gpiokeys.c
702
c = -1;
sys/dev/gpio/gpiokeys.c
704
c = sc->sc_input[sc->sc_inputhead];
sys/dev/gpio/gpiokeys.c
712
return (c);
sys/dev/gpio/gpiokeys.c
84
#define SCAN_CHAR(c) ((c) & 0x7f)
sys/dev/gpio/gpiokeys.c
987
int c;
sys/dev/hid/hid.c
101
hid_clear_local(struct hid_item *c)
sys/dev/hid/hid.c
104
c->loc.count = 0;
sys/dev/hid/hid.c
105
c->loc.size = 0;
sys/dev/hid/hid.c
106
c->nusages = 0;
sys/dev/hid/hid.c
107
memset(c->usages, 0, sizeof(c->usages));
sys/dev/hid/hid.c
108
c->usage_minimum = 0;
sys/dev/hid/hid.c
109
c->usage_maximum = 0;
sys/dev/hid/hid.c
110
c->designator_index = 0;
sys/dev/hid/hid.c
111
c->designator_minimum = 0;
sys/dev/hid/hid.c
112
c->designator_maximum = 0;
sys/dev/hid/hid.c
113
c->string_index = 0;
sys/dev/hid/hid.c
114
c->string_minimum = 0;
sys/dev/hid/hid.c
115
c->string_maximum = 0;
sys/dev/hid/hid.c
116
c->set_delimiter = 0;
sys/dev/hid/hid.c
120
hid_switch_rid(struct hid_data *s, struct hid_item *c, uint32_t next_rID)
sys/dev/hid/hid.c
126
if (c->report_ID == next_rID)
sys/dev/hid/hid.c
131
if (c->report_ID == 0) {
sys/dev/hid/hid.c
135
if (s->last_pos[i].rid == c->report_ID)
sys/dev/hid/hid.c
142
s->last_pos[i].rid = c->report_ID;
sys/dev/hid/hid.c
143
s->last_pos[i].pos = c->loc.pos;
sys/dev/hid/hid.c
148
c->report_ID = next_rID;
sys/dev/hid/hid.c
164
c->loc.pos = s->last_pos[i].pos;
sys/dev/hid/hid.c
167
c->loc.pos = 0;
sys/dev/hid/hid.c
240
struct hid_item *c;
sys/dev/hid/hid.c
250
c = &s->cur[s->pushlevel];
sys/dev/hid/hid.c
258
c->usage = uval;
sys/dev/hid/hid.c
270
c->nusages = 1;
sys/dev/hid/hid.c
272
while ((c->flags & HIO_VARIABLE) == 0 && s->ousage == 0 &&
sys/dev/hid/hid.c
273
s->iusage < s->nusage && c->nusages < HID_ITEM_MAXUSAGE)
sys/dev/hid/hid.c
274
c->usages[c->nusages++] = s->usages_min[s->iusage++];
sys/dev/hid/hid.c
275
if ((c->flags & HIO_VARIABLE) == 0 && s->ousage == 0 &&
sys/dev/hid/hid.c
285
if (s->kindset & (1 << c->kind)) {
sys/dev/hid/hid.c
286
*h = *c;
sys/dev/hid/hid.c
289
c->loc.pos += c->loc.size * c->loc.count;
sys/dev/hid/hid.c
301
hid_clear_local(c);
sys/dev/hid/hid.c
357
c->kind = hid_input;
sys/dev/hid/hid.c
359
c->flags = uval;
sys/dev/hid/hid.c
360
c->loc.count = s->loc_count;
sys/dev/hid/hid.c
361
c->loc.size = s->loc_size;
sys/dev/hid/hid.c
363
if (c->flags & HIO_VARIABLE) {
sys/dev/hid/hid.c
365
if (c->loc.count > MAXLOCCNT) {
sys/dev/hid/hid.c
368
(unsigned)(c->loc.count),
sys/dev/hid/hid.c
372
s->ncount = c->loc.count;
sys/dev/hid/hid.c
378
c->loc.count = 1;
sys/dev/hid/hid.c
385
c->kind = hid_output;
sys/dev/hid/hid.c
388
c->kind = hid_collection;
sys/dev/hid/hid.c
389
c->collection = uval;
sys/dev/hid/hid.c
390
c->collevel++;
sys/dev/hid/hid.c
391
c->usage = s->usage_last;
sys/dev/hid/hid.c
392
c->nusages = 1;
sys/dev/hid/hid.c
393
*h = *c;
sys/dev/hid/hid.c
396
c->kind = hid_feature;
sys/dev/hid/hid.c
399
c->kind = hid_endcollection;
sys/dev/hid/hid.c
400
if (c->collevel == 0) {
sys/dev/hid/hid.c
404
c->collevel--;
sys/dev/hid/hid.c
405
*h = *c;
sys/dev/hid/hid.c
415
c->_usage_page = uval << 16;
sys/dev/hid/hid.c
418
c->logical_minimum = dval;
sys/dev/hid/hid.c
421
c->logical_maximum = dval;
sys/dev/hid/hid.c
424
c->physical_minimum = dval;
sys/dev/hid/hid.c
427
c->physical_maximum = dval;
sys/dev/hid/hid.c
430
c->unit_exponent = uval;
sys/dev/hid/hid.c
433
c->unit = uval;
sys/dev/hid/hid.c
440
hid_switch_rid(s, c, uval & mask);
sys/dev/hid/hid.c
453
s->cur[s->pushlevel] = *c;
sys/dev/hid/hid.c
455
c->loc.size = s->loc_size;
sys/dev/hid/hid.c
456
c->loc.count = s->loc_count;
sys/dev/hid/hid.c
458
c = &s->cur[s->pushlevel];
sys/dev/hid/hid.c
468
oldpos = c->loc.pos;
sys/dev/hid/hid.c
469
c = &s->cur[s->pushlevel];
sys/dev/hid/hid.c
471
s->loc_size = c->loc.size;
sys/dev/hid/hid.c
472
s->loc_count = c->loc.count;
sys/dev/hid/hid.c
474
c->loc.pos = oldpos;
sys/dev/hid/hid.c
475
c->loc.size = 0;
sys/dev/hid/hid.c
476
c->loc.count = 0;
sys/dev/hid/hid.c
487
uval = (uval & mask) | c->_usage_page;
sys/dev/hid/hid.c
507
uval = (uval & mask) | c->_usage_page;
sys/dev/hid/hid.c
508
c->usage_minimum = uval;
sys/dev/hid/hid.c
515
uval = (uval & mask) | c->_usage_page;
sys/dev/hid/hid.c
516
c->usage_maximum = uval;
sys/dev/hid/hid.c
524
(c->usage_minimum <= c->usage_maximum)) {
sys/dev/hid/hid.c
527
c->usage_minimum;
sys/dev/hid/hid.c
529
c->usage_maximum;
sys/dev/hid/hid.c
537
c->designator_index = uval;
sys/dev/hid/hid.c
540
c->designator_minimum = uval;
sys/dev/hid/hid.c
543
c->designator_maximum = uval;
sys/dev/hid/hid.c
546
c->string_index = uval;
sys/dev/hid/hid.c
549
c->string_minimum = uval;
sys/dev/hid/hid.c
552
c->string_maximum = uval;
sys/dev/hid/hid.c
555
c->set_delimiter = uval;
sys/dev/hid/hkbd.c
217
#define KEY_INDEX(c) ((c) & 0xFF)
sys/dev/hid/hkbd.c
227
#define SCAN_CHAR(c) ((c) & 0x7f)
sys/dev/hid/hkbd.c
469
int32_t c;
sys/dev/hid/hkbd.c
481
c = -1;
sys/dev/hid/hkbd.c
483
c = sc->sc_input[head];
sys/dev/hid/hkbd.c
487
return (c);
sys/dev/hid/hkbd.c
569
int c;
sys/dev/hid/hkbd.c
587
c = hkbd_read_char(&sc->sc_kbd, 0);
sys/dev/hid/hkbd.c
588
} while (c != NOKEY);
sys/dev/hpt27xx/osm.h
204
static __inline void * memset(void *dst, int c, unsigned long size)
sys/dev/hpt27xx/osm.h
207
for (p=(char*)dst; size; size--,p++) *p = c;
sys/dev/hpt27xx/osm.h
212
#define farMemoryCopy(a,b,c) memcpy((char *)(a), (char *)(b), (HPT_U32)c)
sys/dev/hptmv/global.h
141
void HPTLIBAPI os_memset(void *s, char c, unsigned len);
sys/dev/hptmv/global.h
151
#define MemoryCopy(a,b,c) memcpy((char *)(a), (char *)(b), (UINT)(c))
sys/dev/hptmv/global.h
152
#define farMemoryCopy(a,b,c) memcpy((char *)(a), (char *)(b), (UINT)c)
sys/dev/hptmv/mv.c
97
os_memset(void *s, char c, unsigned len)
sys/dev/hptmv/mv.c
99
memset(s, c, len);
sys/dev/hptnr/osm.h
202
static __inline void * memset(void *dst, int c, unsigned long size)
sys/dev/hptnr/osm.h
205
for (p=(char*)dst; size; size--,p++) *p = c;
sys/dev/hptnr/osm.h
210
#define farMemoryCopy(a,b,c) memcpy((char *)(a), (char *)(b), (HPT_U32)c)
sys/dev/hptrr/osm.h
169
static __inline void * memset(void *dst, int c, unsigned long size)
sys/dev/hptrr/osm.h
172
for (p=(char*)dst; size; size--,p++) *p = c;
sys/dev/hptrr/osm.h
177
#define farMemoryCopy(a,b,c) memcpy((char *)(a), (char *)(b), (HPT_U32)c)
sys/dev/hwpmc/hwpmc_dmc620.c
142
int c;
sys/dev/hwpmc/hwpmc_dmc620.c
144
c = CLASS2TYPE(class);
sys/dev/hwpmc/hwpmc_dmc620.c
145
KASSERT((c & 0xfffffffe) == 0, ("[dmc620,%d] 'c' can only be 0 or 1. "
sys/dev/hwpmc/hwpmc_dmc620.c
146
"now %d", __LINE__, c));
sys/dev/hwpmc/hwpmc_dmc620.c
148
return (dmc620_pmcdesc[c][ri]);
sys/dev/hwpmc/hwpmc_dmc620.c
154
int c;
sys/dev/hwpmc/hwpmc_dmc620.c
156
c = CLASS2TYPE(class);
sys/dev/hwpmc/hwpmc_dmc620.c
157
KASSERT((c & 0xfffffffe) == 0, ("[dmc620,%d] 'c' can only be 0 or 1. "
sys/dev/hwpmc/hwpmc_dmc620.c
158
"now %d", __LINE__, c));
sys/dev/hwpmc/hwpmc_dmc620.c
160
if (c == DMC620_TYPE_CLKDIV2)
sys/dev/hwpmc/hwpmc_dmc620.c
47
#define CLASS2TYPE(c) ((c) - PMC_CLASS_DMC620_PMU_CD2)
sys/dev/hwpmc/hwpmc_mod.c
3767
struct pmc_syscall_args *c;
sys/dev/hwpmc/hwpmc_mod.c
3773
c = (struct pmc_syscall_args *)syscall_args;
sys/dev/hwpmc/hwpmc_mod.c
3774
op = c->pmop_code;
sys/dev/hwpmc/hwpmc_mod.c
3775
arg = c->pmop_data;
sys/dev/hwpmc/hwpmc_mod.c
4544
struct pmc_op_caps c;
sys/dev/hwpmc/hwpmc_mod.c
4552
if ((error = copyin(arg, &c, sizeof(c))) != 0)
sys/dev/hwpmc/hwpmc_mod.c
4555
pmcid = c.pm_pmcid;
sys/dev/hwpmc/hwpmc_mod.c
4572
c.pm_caps = pcd->pcd_caps;
sys/dev/hwpmc/hwpmc_mod.c
4574
error = (*pcd->pcd_get_caps)(adjri, &c.pm_caps);
sys/dev/hwpmc/hwpmc_mod.c
4579
if ((error = copyout(&c, arg, sizeof(c))) < 0)
sys/dev/hwpmc/hwpmc_mod.c
459
char c, *p, *q;
sys/dev/hwpmc/hwpmc_mod.c
466
for (p = newstr; p < fence && (c = *p); p++) {
sys/dev/hwpmc/hwpmc_mod.c
468
if (c == ' ' || c == '\t')
sys/dev/hwpmc/hwpmc_mod.c
472
for (q = p; p < fence && (c = *p) && c != '='; p++)
sys/dev/hwpmc/hwpmc_mod.c
474
if (c != '=') {
sys/dev/hwpmc/hwpmc_mod.c
508
for (q = p; p < fence && (c = *p); p++)
sys/dev/hwpmc/hwpmc_mod.c
509
if (c == ' ' || c == '\t' || c == ',')
sys/dev/hwpmc/hwpmc_mod.c
5525
int c, cpu, error, n, ri;
sys/dev/hwpmc/hwpmc_mod.c
5601
for (ri = c = 0; c < md->pmd_nclass; c++) {
sys/dev/hwpmc/hwpmc_mod.c
5602
pcd = &md->pmd_classdep[c];
sys/dev/hwpmc/hwpmc_mod.c
5617
for (ri = c = 0; c < md->pmd_nclass; c++) {
sys/dev/hwpmc/hwpmc_mod.c
5618
pcd = &md->pmd_classdep[c];
sys/dev/hwpmc/hwpmc_mod.c
567
if (c == 0 || c == ' ' || c == '\t') { /* end of flag group */
sys/dev/hwpmc/hwpmc_mod.c
5791
int cpu, c;
sys/dev/hwpmc/hwpmc_mod.c
5885
for (c = 0; c < md->pmd_nclass; c++) {
sys/dev/hwpmc/hwpmc_mod.c
5886
if (md->pmd_classdep[c].pcd_num > 0) {
sys/dev/hwpmc/hwpmc_mod.c
5887
md->pmd_classdep[c].pcd_pcpu_fini(md,
sys/dev/hwpmc/pmu_dmc620.c
71
#define MD4(sc, r, c, s) WR4((sc), (r), (RD4((sc), (r)) & ~(c)) | (s))
sys/dev/hwpmc/pmu_dmc620.c
73
#define CD2MD4(sc, u, r, c, s) MD4((sc), DMC620_CLKDIV2_REG((u), (r)), (c), (s))
sys/dev/hwpmc/pmu_dmc620.c
74
#define CMD4(sc, u, r, c, s) MD4((sc), DMC620_CLK_REG((u), (r)), (c), (s))
sys/dev/hwpmc/pmu_dmc620_reg.h
80
int dmc620_intr(struct trapframe *tf, int c, int unit, int ri);
sys/dev/hyperv/input/hv_kbd.c
743
uint32_t c;
sys/dev/hyperv/input/hv_kbd.c
755
c = hvkbd_read_char(&sc->sc_kbd, 0);
sys/dev/hyperv/input/hv_kbd.c
756
} while (c != NOKEY);
sys/dev/hyperv/pcib/vmbus_pcib.c
102
free_completion(struct completion *c)
sys/dev/hyperv/pcib/vmbus_pcib.c
104
mtx_destroy(&c->lock);
sys/dev/hyperv/pcib/vmbus_pcib.c
108
complete(struct completion *c)
sys/dev/hyperv/pcib/vmbus_pcib.c
110
mtx_lock(&c->lock);
sys/dev/hyperv/pcib/vmbus_pcib.c
111
c->done++;
sys/dev/hyperv/pcib/vmbus_pcib.c
112
mtx_unlock(&c->lock);
sys/dev/hyperv/pcib/vmbus_pcib.c
113
wakeup(c);
sys/dev/hyperv/pcib/vmbus_pcib.c
117
wait_for_completion(struct completion *c)
sys/dev/hyperv/pcib/vmbus_pcib.c
119
mtx_lock(&c->lock);
sys/dev/hyperv/pcib/vmbus_pcib.c
120
while (c->done == 0)
sys/dev/hyperv/pcib/vmbus_pcib.c
121
mtx_sleep(c, &c->lock, 0, "hvwfc", 0);
sys/dev/hyperv/pcib/vmbus_pcib.c
122
c->done--;
sys/dev/hyperv/pcib/vmbus_pcib.c
123
mtx_unlock(&c->lock);
sys/dev/hyperv/pcib/vmbus_pcib.c
130
wait_for_completion_timeout(struct completion *c, int timeout)
sys/dev/hyperv/pcib/vmbus_pcib.c
134
mtx_lock(&c->lock);
sys/dev/hyperv/pcib/vmbus_pcib.c
136
if (c->done == 0)
sys/dev/hyperv/pcib/vmbus_pcib.c
137
mtx_sleep(c, &c->lock, 0, "hvwfc", timeout);
sys/dev/hyperv/pcib/vmbus_pcib.c
139
if (c->done > 0) {
sys/dev/hyperv/pcib/vmbus_pcib.c
140
c->done--;
sys/dev/hyperv/pcib/vmbus_pcib.c
146
mtx_unlock(&c->lock);
sys/dev/hyperv/pcib/vmbus_pcib.c
551
wait_for_response(struct hv_pcibus *hbus, struct completion *c)
sys/dev/hyperv/pcib/vmbus_pcib.c
559
} while (wait_for_completion_timeout(c, hz /10) != 0);
sys/dev/hyperv/pcib/vmbus_pcib.c
90
init_completion(struct completion *c)
sys/dev/hyperv/pcib/vmbus_pcib.c
92
memset(c, 0, sizeof(*c));
sys/dev/hyperv/pcib/vmbus_pcib.c
93
mtx_init(&c->lock, "hvcmpl", NULL, MTX_DEF);
sys/dev/hyperv/pcib/vmbus_pcib.c
94
c->done = 0;
sys/dev/hyperv/pcib/vmbus_pcib.c
97
reinit_completion(struct completion *c)
sys/dev/hyperv/pcib/vmbus_pcib.c
99
c->done = 0;
sys/dev/hyperv/utilities/unicode.h
124
c = 0xdc00 | ((cc-0x10000) & 0x3ffff);
sys/dev/hyperv/utilities/unicode.h
128
dst[dpos] = c;
sys/dev/hyperv/utilities/unicode.h
165
uint32_t c;
sys/dev/hyperv/utilities/unicode.h
174
c = (((src[spos]&0x3ff) << 10) | (src[spos+1]&0x3ff)) + 0x10000;
sys/dev/hyperv/utilities/unicode.h
175
ADD_BYTE(0xf0 | (c>>18));
sys/dev/hyperv/utilities/unicode.h
176
ADD_BYTE(0x80 | ((c>>12) & 0x3f));
sys/dev/hyperv/utilities/unicode.h
177
ADD_BYTE(0x80 | ((c>>6) & 0x3f));
sys/dev/hyperv/utilities/unicode.h
178
ADD_BYTE(0x80 | (c & 0x3f));
sys/dev/hyperv/utilities/unicode.h
49
uint16_t c;
sys/dev/hyperv/utilities/unicode.h
51
#define IS_CONT(c) (((c)&0xc0) == 0x80)
sys/dev/hyperv/utilities/unicode.h
58
c = s[spos++];
sys/dev/hyperv/utilities/unicode.h
63
c = s[spos++];
sys/dev/hyperv/utilities/unicode.h
78
c = ((s[spos] & 0x3f) << 6) | (s[spos+1] & 0x3f);
sys/dev/hyperv/utilities/unicode.h
80
if (c < 0x80) {
sys/dev/hyperv/utilities/unicode.h
93
c = ((s[spos] & 0x0f) << 12) | ((s[spos+1] & 0x3f) << 6)
sys/dev/hyperv/utilities/unicode.h
96
if (c < 0x800 || (c & 0xdf00) == 0xd800 ) {
sys/dev/hyperv/vmbus/aarch64/hyperv_machdep.h
39
u32 c;
sys/dev/iavf/iavf_osdep.h
114
#define iavf_memset(a, b, c, d) memset((a), (b), (c))
sys/dev/iavf/iavf_osdep.h
115
#define iavf_memcpy(a, b, c, d) memcpy((a), (b), (c))
sys/dev/iavf/iavf_osdep.h
121
#define LE32_TO_CPU(c) le32toh(c)
sys/dev/ice/ice_osdep.h
162
#define ice_memset(addr, c, len, unused) memset((addr), (c), (len))
sys/dev/igc/igc_nvm.c
43
u16 IGC_UNUSEDARG *c)
sys/dev/igc/igc_nvm.c
68
u16 IGC_UNUSEDARG *c)
sys/dev/igc/igc_nvm.h
27
s32 igc_null_read_nvm(struct igc_hw *hw, u16 a, u16 b, u16 *c);
sys/dev/igc/igc_nvm.h
30
s32 igc_null_write_nvm(struct igc_hw *hw, u16 a, u16 b, u16 *c);
sys/dev/iicbus/adc/ads111x.c
386
struct ads111x_channel *c;
sys/dev/iicbus/adc/ads111x.c
391
c = &sc->channels[chan];
sys/dev/iicbus/adc/ads111x.c
392
c->gainidx = gainidx;
sys/dev/iicbus/adc/ads111x.c
393
c->rateidx = rateidx;
sys/dev/iicbus/adc/ads111x.c
401
if (c->configured)
sys/dev/iicbus/adc/ads111x.c
421
c->configured = true;
sys/dev/iicbus/rtc/ds3231.c
481
int c, error;
sys/dev/iicbus/rtc/ds3231.c
524
c = (data[DS3231_MONTH] & DS3231_C_MASK) ? 1 : 0;
sys/dev/iicbus/rtc/ds3231.c
526
sc->sc_last_c = c;
sys/dev/iicbus/rtc/ds3231.c
527
else if (c != sc->sc_last_c) {
sys/dev/iicbus/rtc/ds3231.c
529
sc->sc_last_c = c;
sys/dev/ipmi/ipmi_ssif.c
155
char c = 0;
sys/dev/ipmi/ipmi_ssif.c
158
dump_buffer(dev, "WRITE_CONT", &c, 1);
sys/dev/ipmi/ipmi_ssif.c
162
1, &c));
sys/dev/ipw/if_ipw.c
1117
struct ieee80211_channel *c;
sys/dev/ipw/if_ipw.c
1145
c = ieee80211_find_channel(ic,
sys/dev/ipw/if_ipw.c
1148
if (c == NULL)
sys/dev/ipw/if_ipw.c
1149
c = &ic->ic_channels[0];
sys/dev/ipw/if_ipw.c
1150
ipw_setcurchan(sc, c);
sys/dev/irdma/osdep.h
176
#define irdma_memcpy(a, b, c) memcpy((a), (b), (c))
sys/dev/irdma/osdep.h
177
#define irdma_memset(a, b, c) memset((a), (b), (c))
sys/dev/irdma/osdep.h
186
#define between(a, b, c) (bool)(c-a >= b-a)
sys/dev/isp/isp.c
3820
int chan, c;
sys/dev/isp/isp.c
3831
c = (chan == 0) ? 127 : (chan - 1);
sys/dev/isp/isp.c
3832
if (rid.ridacq_map[c / 16] & (1 << (c % 16)) ||
sys/dev/isp/isp_freebsd.c
2598
#define IS_CURRENT_SETTINGS(c) (c->type == CTS_TYPE_CURRENT_SETTINGS)
sys/dev/isp/isp_freebsd.c
372
ispioctl(struct cdev *dev, u_long c, caddr_t addr, int flags, struct thread *td)
sys/dev/isp/isp_freebsd.c
379
switch (c) {
sys/dev/isp/isp_freebsd.h
433
#define XS_GET_DMA64_SEG(a, b, c) \
sys/dev/isp/isp_freebsd.h
437
uint32_t f = c; \
sys/dev/isp/ispreg.h
215
#define ISP2400_NVRAM_PORT_ADDR(c) (0x100 * (c) + 0x80)
sys/dev/isp/ispreg.h
218
#define ISP2400_NVRAM_VERSION(c) ((c)[4] | ((c)[5] << 8))
sys/dev/isp/ispreg.h
219
#define ISP2400_NVRAM_MAXFRAMELENGTH(c) (((c)[12]) | ((c)[13] << 8))
sys/dev/isp/ispreg.h
220
#define ISP2400_NVRAM_HARDLOOPID(c) ((c)[18] | ((c)[19] << 8))
sys/dev/isp/ispreg.h
222
#define ISP2400_NVRAM_PORT_NAME(c) (\
sys/dev/isp/ispreg.h
223
(((uint64_t)(c)[20]) << 56) | \
sys/dev/isp/ispreg.h
224
(((uint64_t)(c)[21]) << 48) | \
sys/dev/isp/ispreg.h
225
(((uint64_t)(c)[22]) << 40) | \
sys/dev/isp/ispreg.h
226
(((uint64_t)(c)[23]) << 32) | \
sys/dev/isp/ispreg.h
227
(((uint64_t)(c)[24]) << 24) | \
sys/dev/isp/ispreg.h
228
(((uint64_t)(c)[25]) << 16) | \
sys/dev/isp/ispreg.h
229
(((uint64_t)(c)[26]) << 8) | \
sys/dev/isp/ispreg.h
230
(((uint64_t)(c)[27]) << 0))
sys/dev/isp/ispreg.h
232
#define ISP2400_NVRAM_NODE_NAME(c) (\
sys/dev/isp/ispreg.h
233
(((uint64_t)(c)[28]) << 56) | \
sys/dev/isp/ispreg.h
234
(((uint64_t)(c)[29]) << 48) | \
sys/dev/isp/ispreg.h
235
(((uint64_t)(c)[30]) << 40) | \
sys/dev/isp/ispreg.h
236
(((uint64_t)(c)[31]) << 32) | \
sys/dev/isp/ispreg.h
237
(((uint64_t)(c)[32]) << 24) | \
sys/dev/isp/ispreg.h
238
(((uint64_t)(c)[33]) << 16) | \
sys/dev/isp/ispreg.h
239
(((uint64_t)(c)[34]) << 8) | \
sys/dev/isp/ispreg.h
240
(((uint64_t)(c)[35]) << 0))
sys/dev/isp/ispreg.h
242
#define ISP2400_NVRAM_LOGIN_RETRY_CNT(c) ((c)[36] | ((c)[37] << 8))
sys/dev/isp/ispreg.h
243
#define ISP2400_NVRAM_LINK_DOWN_ON_NOS(c) ((c)[38] | ((c)[39] << 8))
sys/dev/isp/ispreg.h
244
#define ISP2400_NVRAM_INTERRUPT_DELAY(c) ((c)[40] | ((c)[41] << 8))
sys/dev/isp/ispreg.h
245
#define ISP2400_NVRAM_LOGIN_TIMEOUT(c) ((c)[42] | ((c)[43] << 8))
sys/dev/isp/ispreg.h
247
#define ISP2400_NVRAM_FIRMWARE_OPTIONS1(c) \
sys/dev/isp/ispreg.h
248
((c)[44] | ((c)[45] << 8) | ((c)[46] << 16) | ((c)[47] << 24))
sys/dev/isp/ispreg.h
249
#define ISP2400_NVRAM_FIRMWARE_OPTIONS2(c) \
sys/dev/isp/ispreg.h
250
((c)[48] | ((c)[49] << 8) | ((c)[50] << 16) | ((c)[51] << 24))
sys/dev/isp/ispreg.h
251
#define ISP2400_NVRAM_FIRMWARE_OPTIONS3(c) \
sys/dev/isp/ispreg.h
252
((c)[52] | ((c)[53] << 8) | ((c)[54] << 16) | ((c)[55] << 24))
sys/dev/isp/ispreg.h
274
#define ISP2XXX_FLT_VERSION(c) ((c)[0] | ((c)[1] << 8))
sys/dev/isp/ispreg.h
275
#define ISP2XXX_FLT_LENGTH(c) ((c)[2] | ((c)[3] << 8))
sys/dev/isp/ispreg.h
276
#define ISP2XXX_FLT_CSUM(c) ((c)[4] | ((c)[5] << 8))
sys/dev/isp/ispreg.h
277
#define ISP2XXX_FLT_REG_CODE(c, o) \
sys/dev/isp/ispreg.h
278
((c)[0 + FLT_REGION_SIZE * o] | ((c)[1 + FLT_REGION_SIZE * o] << 8))
sys/dev/isp/ispreg.h
279
#define ISP2XXX_FLT_REG_ATTR(c, o) ((c)[2 + FLT_REGION_SIZE * o])
sys/dev/isp/ispreg.h
280
#define ISP2XXX_FLT_REG_RES(c, o) ((c)[3 + FLT_REGION_SIZE * o])
sys/dev/isp/ispreg.h
281
#define ISP2XXX_FLT_REG_SIZE(c, o) (\
sys/dev/isp/ispreg.h
282
((uint32_t)(c)[4 + FLT_REGION_SIZE * o] << 0) | \
sys/dev/isp/ispreg.h
283
((uint32_t)(c)[5 + FLT_REGION_SIZE * o] << 8) | \
sys/dev/isp/ispreg.h
284
((uint32_t)(c)[6 + FLT_REGION_SIZE * o] << 16) | \
sys/dev/isp/ispreg.h
285
((uint32_t)(c)[7 + FLT_REGION_SIZE * o] << 24))
sys/dev/isp/ispreg.h
286
#define ISP2XXX_FLT_REG_START(c, o) (\
sys/dev/isp/ispreg.h
287
((uint32_t)(c)[8 + FLT_REGION_SIZE * o] << 0) | \
sys/dev/isp/ispreg.h
288
((uint32_t)(c)[9 + FLT_REGION_SIZE * o] << 8) | \
sys/dev/isp/ispreg.h
289
((uint32_t)(c)[10 + FLT_REGION_SIZE * o] << 16) | \
sys/dev/isp/ispreg.h
290
((uint32_t)(c)[11 + FLT_REGION_SIZE * o] << 24))
sys/dev/isp/ispreg.h
291
#define ISP2XXX_FLT_REG_END(c, o) (\
sys/dev/isp/ispreg.h
292
((uint32_t)(c)[12 + FLT_REGION_SIZE * o] << 0) | \
sys/dev/isp/ispreg.h
293
((uint32_t)(c)[13 + FLT_REGION_SIZE * o] << 8) | \
sys/dev/isp/ispreg.h
294
((uint32_t)(c)[14 + FLT_REGION_SIZE * o] << 16) | \
sys/dev/isp/ispreg.h
295
((uint32_t)(c)[15 + FLT_REGION_SIZE * o] << 24))
sys/dev/iwi/if_iwi.c
2677
scan_band(const struct ieee80211_channel *c)
sys/dev/iwi/if_iwi.c
2679
return IEEE80211_IS_CHAN_5GHZ(c) ? IWI_CHAN_5GHZ : IWI_CHAN_2GHZ;
sys/dev/iwm/if_iwm_scan.c
181
iwm_scan_rxon_flags(struct ieee80211_channel *c)
sys/dev/iwm/if_iwm_scan.c
183
if (IEEE80211_IS_CHAN_2GHZ(c))
sys/dev/iwm/if_iwm_scan.c
286
iwm_scan_skip_channel(struct ieee80211_channel *c)
sys/dev/iwm/if_iwm_scan.c
288
if (IEEE80211_IS_CHAN_2GHZ(c) && IEEE80211_IS_CHAN_B(c))
sys/dev/iwm/if_iwm_scan.c
290
else if (IEEE80211_IS_CHAN_5GHZ(c) && IEEE80211_IS_CHAN_A(c))
sys/dev/iwm/if_iwm_scan.c
302
struct ieee80211_channel *c;
sys/dev/iwm/if_iwm_scan.c
309
c = ss->ss_chans[j];
sys/dev/iwm/if_iwm_scan.c
314
if (!IEEE80211_IS_CHAN_2GHZ(c) && !IEEE80211_IS_CHAN_5GHZ(c)) {
sys/dev/iwm/if_iwm_scan.c
317
__func__, c->ic_freq, c->ic_ieee, c->ic_flags);
sys/dev/iwm/if_iwm_scan.c
323
nchan, c->ic_freq);
sys/dev/iwm/if_iwm_scan.c
324
chan->channel_num = htole16(ieee80211_mhz2ieee(c->ic_freq, 0));
sys/dev/iwm/if_iwm_scan.c
330
if (!IEEE80211_IS_CHAN_PASSIVE(c) &&
sys/dev/iwm/if_iwm_scan.c
346
struct ieee80211_channel *c;
sys/dev/iwm/if_iwm_scan.c
353
c = ss->ss_chans[j];
sys/dev/iwm/if_iwm_scan.c
358
if (!IEEE80211_IS_CHAN_2GHZ(c) && !IEEE80211_IS_CHAN_5GHZ(c)) {
sys/dev/iwm/if_iwm_scan.c
361
__func__, c->ic_freq, c->ic_ieee, c->ic_flags);
sys/dev/iwm/if_iwm_scan.c
367
nchan, c->ic_freq);
sys/dev/iwm/if_iwm_scan.c
368
chan->channel_num = ieee80211_mhz2ieee(c->ic_freq, 0);
sys/dev/iwm/if_iwm_scan.c
484
struct ieee80211_channel *c;
sys/dev/iwm/if_iwm_scan.c
527
c = &ic->ic_channels[j];
sys/dev/iwm/if_iwm_scan.c
534
if (iwm_scan_skip_channel(c))
sys/dev/iwm/if_iwm_scan.c
537
ieee80211_mhz2ieee(c->ic_freq, 0);
sys/dev/iwn/if_iwn.c
2314
int j, c;
sys/dev/iwn/if_iwn.c
2319
for (c = 0; c < 2; c++) {
sys/dev/iwn/if_iwn.c
2322
"power=%d pa_det=%d\n", c, j,
sys/dev/iwn/if_iwn.c
2323
chans[0].samples[c][j].temp,
sys/dev/iwn/if_iwn.c
2324
chans[0].samples[c][j].gain,
sys/dev/iwn/if_iwn.c
2325
chans[0].samples[c][j].power,
sys/dev/iwn/if_iwn.c
2326
chans[0].samples[c][j].pa_det);
sys/dev/iwn/if_iwn.c
2330
for (c = 0; c < 2; c++) {
sys/dev/iwn/if_iwn.c
2333
"power=%d pa_det=%d\n", c, j,
sys/dev/iwn/if_iwn.c
2334
chans[1].samples[c][j].temp,
sys/dev/iwn/if_iwn.c
2335
chans[1].samples[c][j].gain,
sys/dev/iwn/if_iwn.c
2336
chans[1].samples[c][j].power,
sys/dev/iwn/if_iwn.c
2337
chans[1].samples[c][j].pa_det);
sys/dev/iwn/if_iwn.c
2559
iwn_find_eeprom_channel(struct iwn_softc *sc, struct ieee80211_channel *c)
sys/dev/iwn/if_iwn.c
2563
if (IEEE80211_IS_CHAN_HT40(c)) {
sys/dev/iwn/if_iwn.c
2564
band = IEEE80211_IS_CHAN_5GHZ(c) ? 6 : 5;
sys/dev/iwn/if_iwn.c
2565
if (IEEE80211_IS_CHAN_HT40D(c))
sys/dev/iwn/if_iwn.c
2566
chan = c->ic_extieee;
sys/dev/iwn/if_iwn.c
2568
chan = c->ic_ieee;
sys/dev/iwn/if_iwn.c
2576
if (iwn_bands[j].chan[i] == c->ic_ieee &&
sys/dev/iwn/if_iwn.c
2577
((j == 0) ^ IEEE80211_IS_CHAN_A(c)) == 1)
sys/dev/iwn/if_iwn.c
2610
struct ieee80211_channel *c = &chans[i];
sys/dev/iwn/if_iwn.c
2613
channel = iwn_find_eeprom_channel(sc, c);
sys/dev/iwn/if_iwn.c
2616
__func__, c->ic_ieee, c->ic_freq, c->ic_flags);
sys/dev/iwn/if_iwn.c
2619
c->ic_flags |= iwn_eeprom_channel_flags(channel);
sys/dev/iwn/if_iwn.c
2630
struct ieee80211_channel *c;
sys/dev/iwn/if_iwn.c
2661
c = &ic->ic_channels[j];
sys/dev/iwn/if_iwn.c
2663
if (!IEEE80211_IS_CHAN_A(c))
sys/dev/iwn/if_iwn.c
2666
if (!IEEE80211_IS_CHAN_G(c))
sys/dev/iwn/if_iwn.c
2668
} else if (!IEEE80211_IS_CHAN_B(c))
sys/dev/iwn/if_iwn.c
2671
if (!IEEE80211_IS_CHAN_HT40(c))
sys/dev/iwn/if_iwn.c
2674
if (IEEE80211_IS_CHAN_HT40(c))
sys/dev/iwn/if_iwn.c
2678
enhinfo[i].chan != c->ic_ieee)
sys/dev/iwn/if_iwn.c
2682
"channel %d(%x), maxpwr %d\n", c->ic_ieee,
sys/dev/iwn/if_iwn.c
2683
c->ic_flags, maxpwr / 2);
sys/dev/iwn/if_iwn.c
2684
c->ic_maxregpower = maxpwr / 2;
sys/dev/iwn/if_iwn.c
2685
c->ic_maxpower = maxpwr;
sys/dev/iwn/if_iwn.c
5691
int i, is_chan_5ghz, c, grp, maxpwr;
sys/dev/iwn/if_iwn.c
5750
for (c = 0; c < 2; c++) {
sys/dev/iwn/if_iwn.c
5755
chans[0].num, chans[0].samples[c][1].power,
sys/dev/iwn/if_iwn.c
5756
chans[1].num, chans[1].samples[c][1].power, 1);
sys/dev/iwn/if_iwn.c
5758
chans[0].num, chans[0].samples[c][1].gain,
sys/dev/iwn/if_iwn.c
5759
chans[1].num, chans[1].samples[c][1].gain, 1);
sys/dev/iwn/if_iwn.c
5761
chans[0].num, chans[0].samples[c][1].temp,
sys/dev/iwn/if_iwn.c
5762
chans[1].num, chans[1].samples[c][1].temp, 1);
sys/dev/iwn/if_iwn.c
5765
__func__, c, power, gain, temp);
sys/dev/iwn/if_iwn.c
5797
idx += (int32_t)le32toh(uc->atten[grp][c]);
sys/dev/iwn/if_iwn.c
5812
__func__, c, ridx, idx);
sys/dev/iwn/if_iwn.c
5813
cmd.power[ridx].rf_gain[c] = rf_gain[idx];
sys/dev/iwn/if_iwn.c
5814
cmd.power[ridx].dsp_gain[c] = dsp_gain[idx];
sys/dev/iwn/if_iwn.c
6657
struct ieee80211_channel *c)
sys/dev/iwn/if_iwn.c
6661
if (! IEEE80211_IS_CHAN_HT(c))
sys/dev/iwn/if_iwn.c
6666
if (IEEE80211_IS_CHAN_HT40(c)) {
sys/dev/iwn/if_iwn.c
6676
if (IEEE80211_IS_CHAN_HT40D(c))
sys/dev/iwn/if_iwn.c
6945
struct ieee80211_channel *c, uint8_t n_probes)
sys/dev/iwn/if_iwn.c
6948
if (c == NULL || IEEE80211_IS_CHAN_2GHZ(c)) {
sys/dev/iwn/if_iwn.c
6996
iwn_get_passive_dwell_time(struct iwn_softc *sc, struct ieee80211_channel *c)
sys/dev/iwn/if_iwn.c
7000
if (c == NULL || IEEE80211_IS_CHAN_2GHZ(c)) {
sys/dev/iwn/if_iwn.c
7012
struct ieee80211_scan_state *ss, struct ieee80211_channel *c)
sys/dev/iwn/if_iwn.c
7043
c = ic->ic_curchan;
sys/dev/iwn/if_iwn.c
7085
if (IEEE80211_IS_CHAN_A(c) &&
sys/dev/iwn/if_iwn.c
7099
if (IEEE80211_IS_CHAN_5GHZ(c)) {
sys/dev/iwn/if_iwn.c
7208
chan->chan = htole16(ieee80211_chan2ieee(ic, c));
sys/dev/iwn/if_iwn.c
7218
if (c->ic_flags & IEEE80211_CHAN_PASSIVE)
sys/dev/iwn/if_iwn.c
7227
dwell_active = iwn_get_active_dwell_time(sc, c, ss->ss_nssid);
sys/dev/iwn/if_iwn.c
7228
dwell_passive = iwn_get_passive_dwell_time(sc, c);
sys/dev/iwn/if_iwn.c
7237
if (IEEE80211_IS_CHAN_5GHZ(c))
sys/dev/iwn/if_iwnreg.h
1130
#define IWN_CTOK(c) ((c) + 273)
sys/dev/iwn/if_iwnreg.h
1132
#define IWN_CTOMUK(c) (((c) * 1000000) + 273150000)
sys/dev/iwx/if_iwx.c
5481
struct ieee80211_channel *c = ni->ni_chan;
sys/dev/iwx/if_iwx.c
5486
if (c == IEEE80211_CHAN_ANYC) {
sys/dev/iwx/if_iwx.c
5503
min = IEEE80211_IS_CHAN_2GHZ(c) ? 2 : 12;
sys/dev/iwx/if_iwx.c
6362
struct ieee80211_channel *c;
sys/dev/iwx/if_iwx.c
6372
c = ss->ss_chans[j];
sys/dev/iwx/if_iwx.c
6373
channel_num = ieee80211_mhz2ieee(c->ic_freq, 0);
sys/dev/iwx/if_iwx.c
6377
if (IEEE80211_IS_CHAN_2GHZ(c))
sys/dev/ixl/i40e_osdep.h
103
#define LE32_TO_CPU(c) le32toh(c)
sys/dev/ixl/i40e_osdep.h
96
#define i40e_memset(a, b, c, d) memset((a), (b), (c))
sys/dev/ixl/i40e_osdep.h
97
#define i40e_memcpy(a, b, c, d) memcpy((a), (b), (c))
sys/dev/ixl/ixl_pf_main.c
4104
char c;
sys/dev/ixl/ixl_pf_main.c
4134
c = (char)buf[i * byte_stride + j];
sys/dev/ixl/ixl_pf_main.c
4135
if (c < 32 || c > 126)
sys/dev/ixl/ixl_pf_main.c
4138
sbuf_printf(sb, "%c", c);
sys/dev/jme/if_jme.c
957
#define JME_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/jme/if_jme.c
958
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/kbd/kbd.c
492
genkbd_putc(genkbd_softc_t *sc, char c)
sys/dev/kbd/kbd.c
500
sc->gkb_q[p] = c;
sys/dev/kbd/kbd.c
680
u_int c;
sys/dev/kbd/kbd.c
707
c = kbdd_read_char(kbd, FALSE);
sys/dev/kbd/kbd.c
708
if (c == NOKEY)
sys/dev/kbd/kbd.c
710
if (c == ERRKEY) /* XXX: ring bell? */
sys/dev/kbd/kbd.c
718
genkbd_putc(sc, KEYCHAR(c));
sys/dev/kbd/kbd.c
723
if (c & RELKEY) /* key release is ignored */
sys/dev/kbd/kbd.c
727
if (c & SPCLKEY) {
sys/dev/kbd/kbd.c
728
switch (KEYCHAR(c)) {
sys/dev/kbd/kbd.c
741
switch (KEYFLAGS(c)) {
sys/dev/kbd/kbd.c
743
genkbd_putc(sc, KEYCHAR(c));
sys/dev/kbd/kbd.c
747
genkbd_putc(sc, KEYCHAR(c));
sys/dev/kbd/kbd.c
750
cp = kbdd_get_fkeystr(kbd, KEYCHAR(c), &len);
sys/dev/kbdmux/kbdmux.c
178
kbdmux_kbd_putc(kbdmux_state_t *state, char c)
sys/dev/kbdmux/kbdmux.c
186
state->ks_inq[p] = c;
sys/dev/kbdmux/kbdmux.c
193
unsigned char c;
sys/dev/kbdmux/kbdmux.c
198
c = state->ks_inq[state->ks_inq_start];
sys/dev/kbdmux/kbdmux.c
202
return (c);
sys/dev/kbdmux/kbdmux.c
242
int c;
sys/dev/kbdmux/kbdmux.c
257
c = kbdd_read_char(kbd, 0);
sys/dev/kbdmux/kbdmux.c
258
if (c == NOKEY)
sys/dev/kbdmux/kbdmux.c
260
if (c == ERRKEY)
sys/dev/kbdmux/kbdmux.c
265
kbdmux_kbd_putc(state, c);
sys/dev/kbdmux/kbdmux.c
561
int c;
sys/dev/kbdmux/kbdmux.c
570
c = kbdmux_read_char(kbd, FALSE);
sys/dev/kbdmux/kbdmux.c
571
} while (c != NOKEY);
sys/dev/kbdmux/kbdmux.c
614
int c;
sys/dev/kbdmux/kbdmux.c
617
c = kbdmux_kbd_getc(state);
sys/dev/kbdmux/kbdmux.c
620
if (c != -1)
sys/dev/kbdmux/kbdmux.c
623
return (KBD_IS_ACTIVE(kbd)? c : -1);
sys/dev/lge/if_lge.c
658
lge_newbuf(struct lge_softc *sc, struct lge_rx_desc *c, struct mbuf *m)
sys/dev/lge/if_lge.c
698
c->lge_mbuf = m_new;
sys/dev/lge/if_lge.c
699
c->lge_fragptr_hi = 0;
sys/dev/lge/if_lge.c
700
c->lge_fragptr_lo = vtophys(mtod(m_new, caddr_t));
sys/dev/lge/if_lge.c
701
c->lge_fraglen = m_new->m_len;
sys/dev/lge/if_lge.c
702
c->lge_ctl = m_new->m_len | LGE_RXCTL_WANTINTR | LGE_FRAGCNT(1);
sys/dev/lge/if_lge.c
703
c->lge_sts = 0;
sys/dev/lge/if_lge.c
716
CSR_WRITE_4(sc, LGE_RXDESC_ADDR_LO, vtophys(c));
sys/dev/lge/if_lge.c
853
int c, i, total_len = 0;
sys/dev/lge/if_lge.c
859
c = cnt;
sys/dev/lge/if_lge.c
863
while(c) {
sys/dev/lge/if_lge.c
873
c--;
sys/dev/malo/if_malohal.c
683
malo_hal_settxpower(struct malo_hal *mh, const struct malo_hal_channel *c)
sys/dev/malo/if_malohal.c
687
uint8_t chan = c->channel;
sys/dev/mana/gdma_util.c
39
init_completion(struct completion *c)
sys/dev/mana/gdma_util.c
41
memset(c, 0, sizeof(*c));
sys/dev/mana/gdma_util.c
42
mtx_init(&c->lock, "gdma_completion", NULL, MTX_DEF);
sys/dev/mana/gdma_util.c
43
c->done = 0;
sys/dev/mana/gdma_util.c
47
free_completion(struct completion *c)
sys/dev/mana/gdma_util.c
49
mtx_destroy(&c->lock);
sys/dev/mana/gdma_util.c
53
complete(struct completion *c)
sys/dev/mana/gdma_util.c
55
mtx_lock(&c->lock);
sys/dev/mana/gdma_util.c
56
c->done++;
sys/dev/mana/gdma_util.c
57
mtx_unlock(&c->lock);
sys/dev/mana/gdma_util.c
58
wakeup(c);
sys/dev/mana/gdma_util.c
62
wait_for_completion(struct completion *c)
sys/dev/mana/gdma_util.c
64
mtx_lock(&c->lock);
sys/dev/mana/gdma_util.c
65
while (c->done == 0)
sys/dev/mana/gdma_util.c
66
mtx_sleep(c, &c->lock, 0, "gdma_wfc", 0);
sys/dev/mana/gdma_util.c
67
c->done--;
sys/dev/mana/gdma_util.c
68
mtx_unlock(&c->lock);
sys/dev/mana/gdma_util.c
75
wait_for_completion_timeout(struct completion *c, int timeout)
sys/dev/mana/gdma_util.c
79
mtx_lock(&c->lock);
sys/dev/mana/gdma_util.c
81
if (c->done == 0)
sys/dev/mana/gdma_util.c
82
mtx_sleep(c, &c->lock, 0, "gdma_wfc", timeout);
sys/dev/mana/gdma_util.c
84
if (c->done > 0) {
sys/dev/mana/gdma_util.c
85
c->done--;
sys/dev/mana/gdma_util.c
91
mtx_unlock(&c->lock);
sys/dev/mana/gdma_util.h
178
void init_completion(struct completion *c);
sys/dev/mana/gdma_util.h
179
void free_completion(struct completion *c);
sys/dev/mana/gdma_util.h
180
void complete(struct completion *c);
sys/dev/mana/gdma_util.h
181
void wait_for_completion(struct completion *c);
sys/dev/mana/gdma_util.h
182
int wait_for_completion_timeout(struct completion *c, int timeout);
sys/dev/mlx5/mlx5_core/mlx5_fs_counters.c
491
struct mlx5_fc_cache c;
sys/dev/mlx5/mlx5_core/mlx5_fs_counters.c
493
c = counter->cache;
sys/dev/mlx5/mlx5_core/mlx5_fs_counters.c
495
*bytes = c.bytes - counter->lastbytes;
sys/dev/mlx5/mlx5_core/mlx5_fs_counters.c
496
*packets = c.packets - counter->lastpackets;
sys/dev/mlx5/mlx5_core/mlx5_fs_counters.c
497
*lastuse = c.lastuse;
sys/dev/mlx5/mlx5_core/mlx5_fs_counters.c
499
counter->lastbytes = c.bytes;
sys/dev/mlx5/mlx5_core/mlx5_fs_counters.c
500
counter->lastpackets = c.packets;
sys/dev/mlx5/mlx5_core/mlx5_main.c
1381
#define MLX5_STATS_DESC(a, b, c, d, e, ...) d, e,
sys/dev/mlx5/mlx5_en/en.h
164
#define MLX5E_STATS_VAR(a, b, c, ...) b c;
sys/dev/mlx5/mlx5_en/en.h
165
#define MLX5E_STATS_COUNTER(a, b, c, ...) counter_##b##_t c;
sys/dev/mlx5/mlx5_en/en.h
166
#define MLX5E_STATS_DESC(a, b, c, d, e, ...) d, e,
sys/dev/mlx5/mlx5_en/en.h
386
#define MLX5E_PPORT_PER_PRIO_STATS_PREFIX(m,p,c,t,f,s,d) \
sys/dev/mlx5/mlx5_en/en.h
387
m(c, t, pri_##p##_##f, "prio" #p "_" s, "Priority " #p " - " d)
sys/dev/mlx5/mlx5_en/mlx5_en_dim.c
65
struct mlx5e_channel *c = container_of(rq, struct mlx5e_channel, rq);
sys/dev/mlx5/mlx5_en/mlx5_en_dim.c
85
if (c->priv->params.hw_lro_en &&
sys/dev/mlx5/mlx5_en/mlx5_en_dim.c
91
mlx5_core_modify_cq_moderation(c->priv->mdev, &rq->cq.mcq,
sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
1289
struct mlx5e_channel *c;
sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
1320
c = opened ? &priv->channel[i] : NULL;
sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
1321
rq = opened ? &c->rq : NULL;
sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
1328
sq = opened ? &c->sq[tc] : NULL;
sys/dev/mlx5/mlx5_en/mlx5_en_iq.c
175
mlx5e_iq_create(struct mlx5e_channel *c,
sys/dev/mlx5/mlx5_en/mlx5_en_iq.c
179
struct mlx5e_priv *priv = c->priv;
sys/dev/mlx5/mlx5_en/mlx5_en_iq.c
326
mlx5e_iq_open(struct mlx5e_channel *c,
sys/dev/mlx5/mlx5_en/mlx5_en_iq.c
333
err = mlx5e_open_cq(c->priv, cq_param, &iq->cq,
sys/dev/mlx5/mlx5_en/mlx5_en_iq.c
334
&mlx5e_iq_completion, c->ix);
sys/dev/mlx5/mlx5_en/mlx5_en_iq.c
338
err = mlx5e_iq_create(c, sq_param, iq);
sys/dev/mlx5/mlx5_en/mlx5_en_iq.c
342
err = mlx5e_iq_enable(iq, sq_param, &c->bfreg, c->priv->tisn[0]);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1193
mlx5e_create_rq(struct mlx5e_channel *c,
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1197
struct mlx5e_priv *priv = c->priv;
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1283
rq->channel = c;
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1284
rq->ix = c->ix;
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1286
snprintf(buffer, sizeof(buffer), "rxstat%d", c->ix);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1333
struct mlx5e_channel *c = rq->channel;
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1334
struct mlx5e_priv *priv = c->priv;
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1377
struct mlx5e_channel *c = rq->channel;
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1378
struct mlx5e_priv *priv = c->priv;
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1407
struct mlx5e_channel *c = rq->channel;
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1408
struct mlx5e_priv *priv = c->priv;
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1415
mlx5e_open_rq(struct mlx5e_channel *c,
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1421
err = mlx5e_create_rq(c, param, rq);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1426
MLX5_SET(rqc, param->rqc, cqn, c->rq.cq.mcq.cqn);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1436
c->rq.enabled = 1;
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1637
mlx5e_refresh_sq_inline_sub(struct mlx5e_priv *priv, struct mlx5e_channel *c)
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1642
mtx_lock(&c->sq[i].lock);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1643
mlx5e_update_sq_inline(&c->sq[i]);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1644
mtx_unlock(&c->sq[i].lock);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1662
mlx5e_create_sq(struct mlx5e_channel *c,
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1667
struct mlx5e_priv *priv = c->priv;
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1708
snprintf(buffer, sizeof(buffer), "txstat%dtc%d", c->ix, tc);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1818
mlx5e_open_sq(struct mlx5e_channel *c,
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1825
sq->cev_factor = c->priv->params_ethtool.tx_completion_fact;
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1831
err = mlx5e_create_sq(c, tc, param, sq);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1835
err = mlx5e_enable_sq(sq, param, &c->bfreg, c->priv->tisn[tc]);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2114
mlx5e_open_tx_cqs(struct mlx5e_channel *c,
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2120
for (tc = 0; tc < c->priv->num_tc; tc++) {
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2122
err = mlx5e_open_cq(c->priv, &cparam->tx_cq, &c->sq[tc].cq,
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2123
&mlx5e_tx_cq_comp, c->ix);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2131
mlx5e_close_cq(&c->sq[tc].cq);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2137
mlx5e_close_tx_cqs(struct mlx5e_channel *c)
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2141
for (tc = 0; tc < c->priv->num_tc; tc++)
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2142
mlx5e_close_cq(&c->sq[tc].cq);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2146
mlx5e_open_sqs(struct mlx5e_channel *c,
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2152
for (tc = 0; tc < c->priv->num_tc; tc++) {
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2153
err = mlx5e_open_sq(c, tc, &cparam->sq, &c->sq[tc]);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2162
mlx5e_close_sq_wait(&c->sq[tc]);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2168
mlx5e_close_sqs_wait(struct mlx5e_channel *c)
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2172
for (tc = 0; tc < c->priv->num_tc; tc++)
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2173
mlx5e_close_sq_wait(&c->sq[tc]);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2177
mlx5e_chan_static_init(struct mlx5e_priv *priv, struct mlx5e_channel *c, int ix)
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2182
c->priv = priv;
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2183
c->ix = ix;
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2186
m_snd_tag_init(&c->tag, c->priv->ifp, &mlx5e_ul_snd_tag_sw);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2188
init_completion(&c->completion);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2190
mtx_init(&c->rq.mtx, "mlx5rx", MTX_NETWORK_LOCK, MTX_DEF);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2192
callout_init_mtx(&c->rq.watchdog, &c->rq.mtx, 0);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2195
struct mlx5e_sq *sq = c->sq + tc;
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2205
mlx5e_iq_static_init(&c->iq);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2209
mlx5e_chan_wait_for_completion(struct mlx5e_channel *c)
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2212
m_snd_tag_rele(&c->tag);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2213
wait_for_completion(&c->completion);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2226
mlx5e_chan_static_destroy(struct mlx5e_channel *c)
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2230
callout_drain(&c->rq.watchdog);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2232
mtx_destroy(&c->rq.mtx);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2235
callout_drain(&c->sq[tc].cev_callout);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2236
mtx_destroy(&c->sq[tc].lock);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2237
mtx_destroy(&c->sq[tc].comp_lock);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2240
mlx5e_iq_static_destroy(&c->iq);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2246
struct mlx5e_channel *c)
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2252
MLX5E_ZERO(&c->rq, mlx5e_rq_zero_start);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2254
MLX5E_ZERO(&c->sq[i], mlx5e_sq_zero_start);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2255
MLX5E_ZERO(&c->iq, mlx5e_iq_zero_start);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2258
err = mlx5e_open_tx_cqs(c, cparam);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2263
err = mlx5e_open_cq(c->priv, &cparam->rx_cq, &c->rq.cq,
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2264
&mlx5e_rx_cq_comp, c->ix);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2268
err = mlx5e_open_sqs(c, cparam);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2272
err = mlx5e_iq_open(c, &cparam->sq, &cparam->tx_cq, &c->iq);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2276
err = mlx5e_open_rq(c, &cparam->rq, &c->rq);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2282
c->rq.cq.mcq.comp(&c->rq.cq.mcq, NULL);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2288
mlx5e_iq_close(&c->iq);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2291
mlx5e_close_sqs_wait(c);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2294
mlx5e_close_cq(&c->rq.cq);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2297
mlx5e_close_tx_cqs(c);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2304
mlx5e_close_channel(struct mlx5e_channel *c)
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2306
mlx5e_close_rq(&c->rq);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2310
mlx5e_close_channel_wait(struct mlx5e_channel *c)
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2312
mlx5e_close_rq_wait(&c->rq);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2313
mlx5e_iq_close(&c->iq);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2314
mlx5e_close_sqs_wait(c);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2315
mlx5e_close_tx_cqs(c);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2640
mlx5e_refresh_channel_params_sub(struct mlx5e_priv *priv, struct mlx5e_channel *c)
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2645
err = mlx5e_refresh_rq_params(priv, &c->rq);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2650
err = mlx5e_refresh_sq_params(priv, &c->sq[i]);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
620
#define MLX5E_PCIE_PERF_GET_64(a,b,c,d,e,f) \
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
621
s_debug->c = MLX5_GET64(mpcnt_reg, out, counter_set.f.c);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
623
#define MLX5E_PCIE_PERF_GET_32(a,b,c,d,e,f) \
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
624
s_debug->c = MLX5_GET(mpcnt_reg, out, counter_set.f.c);
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
329
struct mlx5e_channel *c;
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
437
c = container_of(rq, struct mlx5e_channel, rq);
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
438
if (c->priv->clbr_done >= 2) {
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
439
tstmp = mlx5e_mbuf_tstmp(c->priv, be64_to_cpu(cqe->timestamp));
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
665
struct mlx5e_channel *c = container_of(mcq, struct mlx5e_channel, rq.cq.mcq);
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
686
mtx_lock(&c->sq[j].lock);
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
687
c->sq[j].db_inhibit++;
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
688
mtx_unlock(&c->sq[j].lock);
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
691
mtx_lock(&c->iq.lock);
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
692
c->iq.db_inhibit++;
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
693
mtx_unlock(&c->iq.lock);
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
724
mtx_lock(&c->sq[j].lock);
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
725
c->sq[j].db_inhibit--;
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
727
mlx5e_tx_notify_hw(c->sq + j, true);
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
728
mtx_unlock(&c->sq[j].lock);
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
731
mtx_lock(&c->iq.lock);
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
732
c->iq.db_inhibit--;
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
733
mlx5e_iq_notify_hw(&c->iq);
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
734
mtx_unlock(&c->iq.lock);
sys/dev/mlx5/mlx5_ib/mlx5_ib.h
650
#define MLX5_IB_STATS_VAR(a,b,c,...) b c;
sys/dev/mlx5/mlx5_ib/mlx5_ib.h
651
#define MLX5_IB_STATS_DESC(a,b,c,d,e,...) d, e,
sys/dev/mlx5/mlx5_ib/mlx5_ib_cong.c
360
#define MLX5_IB_CONG_STATUS_READ(a,b,c,d,e,node,prio,field) do { \
sys/dev/mlx5/mlx5_ib/mlx5_ib_cong.c
364
dev->congestion.c = MLX5_GET(query_cong_status_out, out, field); \
sys/dev/mlx5/mlx5_ib/mlx5_ib_cong.c
399
#define MLX5_IB_CONG_STATUS_WRITE(a,b,c,d,e,node,prio,field) \
sys/dev/mlx5/mlx5_ib/mlx5_ib_cong.c
400
case MLX5_IB_INDEX(c): \
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1030
struct mlx5_ib_ucontext *c;
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1035
c = devx_ufile2uctx(attrs);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1036
if (IS_ERR(c))
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1037
return PTR_ERR(c);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1038
dev = to_mdev(c->ibucontext.device);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1044
dev_idx = bfregn_to_uar_index(dev, &c->bfregi, user_idx, true);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1058
struct mlx5_ib_ucontext *c;
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1068
c = devx_ufile2uctx(attrs);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1069
if (IS_ERR(c))
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1070
return PTR_ERR(c);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1071
dev = to_mdev(c->ibucontext.device);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1073
uid = devx_get_uid(c, cmd_in);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1400
struct mlx5_ib_ucontext *c = rdma_udata_to_drv_context(
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1402
struct mlx5_ib_dev *dev = to_mdev(c->ibucontext.device);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1414
uid = devx_get_uid(c, cmd_in);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1503
struct mlx5_ib_ucontext *c = rdma_udata_to_drv_context(
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1505
struct mlx5_ib_dev *mdev = to_mdev(c->ibucontext.device);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1513
uid = devx_get_uid(c, cmd_in);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1548
struct mlx5_ib_ucontext *c = rdma_udata_to_drv_context(
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1553
struct mlx5_ib_dev *mdev = to_mdev(c->ibucontext.device);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1558
uid = devx_get_uid(c, cmd_in);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1628
struct mlx5_ib_ucontext *c = rdma_udata_to_drv_context(
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1630
struct mlx5_ib_dev *dev = to_mdev(c->ibucontext.device);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1685
struct mlx5_ib_ucontext *c = rdma_udata_to_drv_context(
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1690
struct mlx5_ib_dev *mdev = to_mdev(c->ibucontext.device);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1697
uid = devx_get_uid(c, cmd_in);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1911
struct mlx5_ib_ucontext *c = rdma_udata_to_drv_context(
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1913
struct mlx5_ib_dev *dev = to_mdev(c->ibucontext.device);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1930
if (!c->devx_uid)
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2168
struct mlx5_ib_ucontext *c = rdma_udata_to_drv_context(
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2170
struct mlx5_ib_dev *dev = to_mdev(c->ibucontext.device);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2173
if (!c->devx_uid)
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2180
err = devx_umem_get(dev, &c->ibucontext, attrs, obj);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2190
MLX5_SET(create_umem_in, cmd.in, uid, c->devx_uid);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
928
static int devx_get_uid(struct mlx5_ib_ucontext *c, void *cmd_in)
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
931
if (c->devx_uid)
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
932
return c->devx_uid;
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
937
if (!c->devx_uid)
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
940
return c->devx_uid;
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
980
struct mlx5_ib_ucontext *c;
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
991
c = devx_ufile2uctx(attrs);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
992
if (IS_ERR(c))
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
993
return PTR_ERR(c);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
994
dev = to_mdev(c->ibucontext.device);
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
114
int c = order2idx(dev, mr->order);
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
115
struct mlx5_cache_ent *ent = &cache->ent[c];
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
153
static int add_keys(struct mlx5_ib_dev *dev, int c, int num)
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
156
struct mlx5_cache_ent *ent = &cache->ent[c];
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
214
static void remove_keys(struct mlx5_ib_dev *dev, int c, int num)
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
217
struct mlx5_cache_ent *ent = &cache->ent[c];
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
326
int c;
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
329
c = order2idx(dev, order);
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
330
if (c < 0 || c >= MAX_MR_CACHE_ENTRIES) {
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
331
mlx5_ib_warn(dev, "order %d, cache index %d\n", order, c);
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
335
for (i = c; i < MAX_MR_CACHE_ENTRIES; i++) {
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
357
cache->ent[c].miss++;
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
367
int c;
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
369
c = order2idx(dev, mr->order);
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
370
if (c < 0 || c >= MAX_MR_CACHE_ENTRIES) {
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
371
mlx5_ib_warn(dev, "order %d, cache index %d\n", mr->order, c);
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
374
ent = &cache->ent[c];
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
386
static void clean_keys(struct mlx5_ib_dev *dev, int c)
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
389
struct mlx5_cache_ent *ent = &cache->ent[c];
sys/dev/mmc/mmcspi.c
302
uint8_t crc, c;
sys/dev/mmc/mmcspi.c
306
c = (uint8_t)i;
sys/dev/mmc/mmcspi.c
307
crc = (c & 0x80) ? c ^ P_CRC7 : c;
sys/dev/mmc/mmcspi.c
326
uint16_t crc, c;
sys/dev/mmc/mmcspi.c
331
c = ((uint16_t) i) << 8;
sys/dev/mmc/mmcspi.c
335
if ((crc ^ c) & 0x8000) crc = ( crc << 1 ) ^ P_CCITT;
sys/dev/mmc/mmcspi.c
338
c = c << 1;
sys/dev/mpr/mpr_sas.c
1718
struct nvme_command *c;
sys/dev/mpr/mpr_sas.c
1803
c = (struct nvme_command *) req->NVMe_Command;
sys/dev/mpr/mpr_sas.c
1804
c->opc = NVME_OPC_DATASET_MANAGEMENT;
sys/dev/mpr/mpr_sas.c
1805
c->nsid = htole32(csio->ccb_h.target_lun + 1);
sys/dev/mpr/mpr_sas.c
1806
c->cdw10 = htole32(ndesc - 1);
sys/dev/mpr/mpr_sas.c
1807
c->cdw11 = htole32(NVME_DSM_ATTR_DEALLOCATE);
sys/dev/mpt/mpt.h
776
#define mpt_callout_init(mpt, c) \
sys/dev/mpt/mpt.h
777
callout_init_mtx(c, &(mpt)->mpt_lock, 0)
sys/dev/mpt/mpt.h
778
#define mpt_callout_drain(mpt, c) \
sys/dev/mpt/mpt.h
779
callout_drain(c)
sys/dev/mpt/mpt_cam.c
3294
#define IS_CURRENT_SETTINGS(c) ((c)->type == CTS_TYPE_CURRENT_SETTINGS)
sys/dev/mpt/mpt_cam.h
147
#define mpt_sim_alloc(a, b, c, mpt, e, f, g) \
sys/dev/mpt/mpt_cam.h
148
cam_sim_alloc(a, b, c, mpt, (mpt)->unit, &(mpt)->mpt_lock, e, f, g)
sys/dev/msk/if_msk.c
4443
#define MSK_SYSCTL_STAT32(sc, c, o, p, n, d) \
sys/dev/msk/if_msk.c
4444
SYSCTL_ADD_PROC(c, p, OID_AUTO, o, \
sys/dev/msk/if_msk.c
4448
#define MSK_SYSCTL_STAT64(sc, c, o, p, n, d) \
sys/dev/msk/if_msk.c
4449
SYSCTL_ADD_PROC(c, p, OID_AUTO, o, \
sys/dev/mthca/mthca_cq.c
894
int c;
sys/dev/mthca/mthca_cq.c
897
c = cq->refcount;
sys/dev/mthca/mthca_cq.c
900
return c;
sys/dev/mthca/mthca_qp.c
1418
int c;
sys/dev/mthca/mthca_qp.c
1421
c = qp->refcount;
sys/dev/mthca/mthca_qp.c
1424
return c;
sys/dev/mthca/mthca_reset.c
179
int c = 0;
sys/dev/mthca/mthca_reset.c
181
for (c = 0; c < 100; ++c) {
sys/dev/mthca/mthca_srq.c
323
int c;
sys/dev/mthca/mthca_srq.c
326
c = srq->refcount;
sys/dev/mthca/mthca_srq.c
329
return c;
sys/dev/mvs/mvs.c
1930
mvs_wait(device_t dev, u_int s, u_int c, int t)
sys/dev/mvs/mvs.c
1935
while (((st = mvs_getstatus(dev, 0)) & (s | c)) != s) {
sys/dev/mvs/mvs.c
75
static int mvs_wait(device_t dev, u_int s, u_int c, int t);
sys/dev/mwl/if_mwl.c
4333
struct ieee80211_channel *c = &chans[i];
sys/dev/mwl/if_mwl.c
4336
if (IEEE80211_IS_CHAN_2GHZ(c)) {
sys/dev/mwl/if_mwl.c
4338
IEEE80211_IS_CHAN_HT40(c) ?
sys/dev/mwl/if_mwl.c
4340
} else if (IEEE80211_IS_CHAN_5GHZ(c)) {
sys/dev/mwl/if_mwl.c
4342
IEEE80211_IS_CHAN_HT40(c) ?
sys/dev/mwl/if_mwl.c
4347
__func__, c->ic_ieee, c->ic_freq, c->ic_flags);
sys/dev/mwl/if_mwl.c
4353
hc = findhalchannel(ci, c->ic_ieee);
sys/dev/mwl/if_mwl.c
4355
if (c->ic_maxpower > 2*hc->maxTxPow)
sys/dev/mwl/if_mwl.c
4356
c->ic_maxpower = 2*hc->maxTxPow;
sys/dev/mwl/if_mwl.c
4359
if (IEEE80211_IS_CHAN_HT40(c)) {
sys/dev/mwl/if_mwl.c
4364
hc = findhalchannel(ci, c->ic_extieee);
sys/dev/mwl/if_mwl.c
4366
if (c->ic_maxpower > 2*hc->maxTxPow)
sys/dev/mwl/if_mwl.c
4367
c->ic_maxpower = 2*hc->maxTxPow;
sys/dev/mwl/if_mwl.c
4373
__func__, c->ic_ieee, c->ic_extieee,
sys/dev/mwl/if_mwl.c
4374
c->ic_freq, c->ic_flags);
sys/dev/mwl/mwlhal.c
1064
findchannel(const struct mwl_hal_priv *mh, const MWL_HAL_CHANNEL *c)
sys/dev/mwl/mwlhal.c
1068
int chan = c->channel, i;
sys/dev/mwl/mwlhal.c
1070
if (c->channelFlags.FreqBand == MWL_FREQ_BAND_2DOT4GHZ) {
sys/dev/mwl/mwlhal.c
1072
if (c->channelFlags.ChnlWidth == MWL_CH_40_MHz_WIDTH) {
sys/dev/mwl/mwlhal.c
1074
if (c->channelFlags.ExtChnlOffset == MWL_EXT_CH_BELOW_CTRL_CH)
sys/dev/mwl/mwlhal.c
1080
} else if (c->channelFlags.FreqBand == MWL_FREQ_BAND_5GHZ) {
sys/dev/mwl/mwlhal.c
1081
if (c->channelFlags.ChnlWidth == MWL_CH_40_MHz_WIDTH) {
sys/dev/mwl/mwlhal.c
1083
if (c->channelFlags.ExtChnlOffset == MWL_EXT_CH_BELOW_CTRL_CH)
sys/dev/mwl/mwlhal.c
1098
mwl_hal_settxpower(struct mwl_hal *mh0, const MWL_HAL_CHANNEL *c, uint8_t maxtxpow)
sys/dev/mwl/mwlhal.c
1105
hc = findchannel(mh, c);
sys/dev/mwl/mwlhal.c
1110
__func__, c->channel, c->channelFlags.FreqBand,
sys/dev/mwl/mwlhal.c
1111
c->channelFlags.ChnlWidth, c->channelFlags.ExtChnlOffset);
sys/dev/mwl/mwlhal.c
1121
if (c->channelFlags.FreqBand == MWL_FREQ_BAND_5GHZ)
sys/dev/mwl/mwlhal.h
494
int mwl_hal_setchannel(struct mwl_hal *mh, const MWL_HAL_CHANNEL *c);
sys/dev/mxge/if_mxge.c
2417
uint16_t c;
sys/dev/mxge/if_mxge.c
2442
c = in6_cksum_pseudo(ip6, m->m_pkthdr.len - cksum_offset, nxt,
sys/dev/mxge/if_mxge.c
2444
c ^= 0xffff;
sys/dev/mxge/if_mxge.c
2445
return (c);
sys/dev/mxge/if_mxge.c
2467
uint16_t c, etype;
sys/dev/mxge/if_mxge.c
2479
c = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,
sys/dev/mxge/if_mxge.c
2482
c ^= 0xffff;
sys/dev/mxge/if_mxge.c
2489
c = mxge_rx_csum6((eh + 1), m, csum);
sys/dev/mxge/if_mxge.c
2493
c = 1;
sys/dev/mxge/if_mxge.c
2495
return (c);
sys/dev/my/if_my.c
1060
my_newbuf(struct my_softc * sc, struct my_chain_onefrag * c)
sys/dev/my/if_my.c
1077
c->my_mbuf = m_new;
sys/dev/my/if_my.c
1078
c->my_ptr->my_data = vtophys(mtod(m_new, caddr_t));
sys/dev/my/if_my.c
1079
c->my_ptr->my_ctl = (MCLBYTES - 1) << MY_RBSShift;
sys/dev/my/if_my.c
1080
c->my_ptr->my_status = MY_OWNByNIC;
sys/dev/my/if_my.c
1312
my_encap(struct my_softc * sc, struct my_chain * c, struct mbuf * m_head)
sys/dev/my/if_my.c
1345
f = &c->my_ptr->my_frag[0];
sys/dev/my/if_my.c
1355
c->my_mbuf = m_head;
sys/dev/my/if_my.c
1356
c->my_lastdesc = 0;
sys/dev/my/if_my.c
1357
MY_TXNEXT(c) = vtophys(&c->my_nextdesc->my_ptr->my_frag[0]);
sys/dev/neta/if_mvnetavar.h
65
#define MVNETA_READ_REGION(sc, reg, val, c) \
sys/dev/neta/if_mvnetavar.h
66
bus_read_region_4((sc)->res[0], (reg), (val), (c))
sys/dev/neta/if_mvnetavar.h
67
#define MVNETA_WRITE_REGION(sc, reg, val, c) \
sys/dev/neta/if_mvnetavar.h
68
bus_write_region_4((sc)->res[0], (reg), (val), (c))
sys/dev/netmap/netmap_bdg.c
132
nm_is_id_char(const char c)
sys/dev/netmap/netmap_bdg.c
134
return (c >= 'a' && c <= 'z') ||
sys/dev/netmap/netmap_bdg.c
135
(c >= 'A' && c <= 'Z') ||
sys/dev/netmap/netmap_bdg.c
136
(c >= '0' && c <= '9') ||
sys/dev/netmap/netmap_bdg.c
137
(c == '_');
sys/dev/netmap/netmap_vale.c
567
#define mix(a, b, c) \
sys/dev/netmap/netmap_vale.c
569
a -= b; a -= c; a ^= (c >> 13); \
sys/dev/netmap/netmap_vale.c
570
b -= c; b -= a; b ^= (a << 8); \
sys/dev/netmap/netmap_vale.c
571
c -= a; c -= b; c ^= (b >> 13); \
sys/dev/netmap/netmap_vale.c
572
a -= b; a -= c; a ^= (c >> 12); \
sys/dev/netmap/netmap_vale.c
573
b -= c; b -= a; b ^= (a << 16); \
sys/dev/netmap/netmap_vale.c
574
c -= a; c -= b; c ^= (b >> 5); \
sys/dev/netmap/netmap_vale.c
575
a -= b; a -= c; a ^= (c >> 3); \
sys/dev/netmap/netmap_vale.c
576
b -= c; b -= a; b ^= (a << 10); \
sys/dev/netmap/netmap_vale.c
577
c -= a; c -= b; c ^= (b >> 15); \
sys/dev/netmap/netmap_vale.c
584
uint32_t a = 0x9e3779b9, b = 0x9e3779b9, c = 0; // hash key
sys/dev/netmap/netmap_vale.c
593
mix(a, b, c);
sys/dev/netmap/netmap_vale.c
595
return (c & BRIDGE_RTHASH_MASK);
sys/dev/nfe/if_nfe.c
3043
#define NFE_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/nfe/if_nfe.c
3044
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/nfe/if_nfe.c
3045
#define NFE_SYSCTL_STAT_ADD64(c, h, n, p, d) \
sys/dev/nfe/if_nfe.c
3046
SYSCTL_ADD_UQUAD(c, h, OID_AUTO, n, CTLFLAG_RD, p, d)
sys/dev/nge/if_nge.c
2609
#define NGE_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/nge/if_nge.c
2610
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/nmdm/nmdm.c
254
char c;
sys/dev/nmdm/nmdm.c
287
if (ttydisc_getc(tp, &c, 1) != 1)
sys/dev/nmdm/nmdm.c
290
ttydisc_rint(otp, c, 0);
sys/dev/ntb/ntb.c
67
char *n, *np, *c, *p, *name;
sys/dev/ntb/ntb.c
84
while ((c = strsep(&n, ",")) != NULL) {
sys/dev/ntb/ntb.c
85
np = c;
sys/dev/ntb/ntb_transport.c
351
char *n, *np, *c, *name;
sys/dev/ntb/ntb_transport.c
447
while ((c = strsep(&n, ",")) != NULL) {
sys/dev/ntb/ntb_transport.c
448
np = c;
sys/dev/nvme/nvme_ctrlr.c
147
#define QP(ctrlr, c) ((c) * (ctrlr)->num_io_queues / mp_ncpus)
sys/dev/nvme/nvme_ctrlr.c
155
int c, error, i, n;
sys/dev/nvme/nvme_ctrlr.c
199
for (i = c = n = 0; i < ctrlr->num_io_queues; i++, c += n) {
sys/dev/nvme/nvme_ctrlr.c
209
for (n = 1; QP(ctrlr, c + n) == i; n++)
sys/dev/nvme/nvme_ctrlr.c
212
qpair->cpu = c + (device_get_unit(ctrlr->dev)+n/2) % n;
sys/dev/oce/oce_if.h
1139
int c;
sys/dev/oce/oce_if.h
1142
c = 0;
sys/dev/oce/oce_if.h
1147
c++;
sys/dev/oce/oce_if.h
1152
if (c == 1)
sys/dev/oce/oce_if.h
307
#define OCE_DMAPTR(o, c) ((c *)(o)->ptr)
sys/dev/ocs_fc/ocs_cam.c
1644
uint32_t c = 0;
sys/dev/ocs_fc/ocs_cam.c
1653
for (i = 0, c = sglarg->sgl_count; i < nseg; i++, c++) {
sys/dev/ocs_fc/ocs_cam.c
1654
sglarg->sgl[c].addr = seg[i].ds_addr;
sys/dev/ocs_fc/ocs_cam.c
1655
sglarg->sgl[c].len = seg[i].ds_len;
sys/dev/ocs_fc/ocs_cam.c
1658
sglarg->sgl_count = c;
sys/dev/ocs_fc/ocs_hw.h
1468
#define HW_FWREV(a,b,c,d) (((uint64_t)(a) << 48) | ((uint64_t)(b) << 32) | ((uint64_t)(c) << 16) | ((uint64_t)(d)))
sys/dev/ocs_fc/ocs_hw.h
1471
#define OCS_FW_VER_STR2(a,b,c,d) #a "." #b "." #c "." #d
sys/dev/ocs_fc/ocs_hw_queues.c
1141
idstart(int c)
sys/dev/ocs_fc/ocs_hw_queues.c
1143
return isalpha(c) || (c == '_') || (c == '$');
sys/dev/ocs_fc/ocs_hw_queues.c
1154
idchar(int c)
sys/dev/ocs_fc/ocs_hw_queues.c
1156
return idstart(c) || ocs_isdigit(c);
sys/dev/ocs_fc/ocs_list.h
153
_ocs_list_insert_link(ocs_list_t *a, ocs_list_t *b, ocs_list_t *c)
sys/dev/ocs_fc/ocs_list.h
163
ocs_list_assert(c);
sys/dev/ocs_fc/ocs_list.h
164
ocs_list_assert((c->magic == OCS_LIST_LIST_MAGIC) || (c->magic == OCS_LIST_LINK_MAGIC));
sys/dev/ocs_fc/ocs_list.h
165
ocs_list_assert(!c->next);
sys/dev/ocs_fc/ocs_list.h
166
ocs_list_assert(!c->prev);
sys/dev/ocs_fc/ocs_list.h
169
ocs_list_assert(b->offset == c->offset);
sys/dev/ocs_fc/ocs_list.h
171
c->next = a->next;
sys/dev/ocs_fc/ocs_list.h
172
c->prev = b->prev;
sys/dev/ocs_fc/ocs_list.h
173
a->next = c;
sys/dev/ocs_fc/ocs_list.h
174
b->prev = c;
sys/dev/ocs_fc/ocs_os.h
331
#define ocs_strchr(s,c) strchr(s,c)
sys/dev/ocs_fc/ocs_os.h
338
#define ocs_isspace(c) isspace(c)
sys/dev/ocs_fc/ocs_os.h
339
#define ocs_isdigit(c) isdigit(c)
sys/dev/ocs_fc/ocs_os.h
340
#define ocs_isxdigit(c) isxdigit(c)
sys/dev/ocs_fc/ocs_os.h
358
#define ocs_memset(b, c, l) memset(b, c, l)
sys/dev/ocs_fc/ocs_sport.c
1567
and8(uint8_t *a, uint8_t *b, uint8_t *c, uint32_t n)
sys/dev/ocs_fc/ocs_sport.c
1572
*a = *b & *c;
sys/dev/ocs_fc/ocs_sport.c
1575
c++;
sys/dev/ocs_fc/ocs_utils.c
1869
ocs_textbuf_putc(ocs_textbuf_t *textbuf, uint8_t c)
sys/dev/ocs_fc/ocs_utils.c
1877
*(segment->buffer + segment->buffer_written++) = c;
sys/dev/ocs_fc/ocs_utils.c
2114
uint32_t c = (idx >> 0) & 0xff;
sys/dev/ocs_fc/ocs_utils.c
2143
return &p[c];
sys/dev/ocs_fc/ocs_utils.c
779
_isprint(int c) {
sys/dev/ocs_fc/ocs_utils.c
780
return ((c > 32) && (c < 127));
sys/dev/ocs_fc/ocs_utils.h
104
extern void ocs_textbuf_putc(ocs_textbuf_t *textbuf, uint8_t c);
sys/dev/ofw/ofw_console.c
149
int c;
sys/dev/ofw/ofw_console.c
154
while ((c = ofw_cngetc(NULL)) != -1)
sys/dev/ofw/ofw_console.c
155
ttydisc_rint(tp, c, 0);
sys/dev/ofw/ofw_console.c
223
ofw_cnputc(struct consdev *cp, int c)
sys/dev/ofw/ofw_console.c
227
if (c == '\n') {
sys/dev/ofw/ofw_console.c
232
cbuf = c;
sys/dev/ofw/ofw_pcib.c
169
phandle_t c;
sys/dev/ofw/ofw_pcib.c
173
for (c = OF_child(node); c != 0; c = OF_peer(c)) {
sys/dev/ofw/ofw_pcib.c
174
n = ofw_pcib_nranges(c, cell_info);
sys/dev/ofw/ofw_pcib.c
185
for (c = OF_child(node); c != 0; c = OF_peer(c)) {
sys/dev/ofw/ofw_pcib.c
186
n = ofw_pcib_fill_ranges(c, &sc->sc_range[i]);
sys/dev/ofw/ofw_subr.c
116
for (c = 0; c < naddr; c++)
sys/dev/ofw/ofw_subr.c
119
for (c = 0; c < nsize; c++)
sys/dev/ofw/ofw_subr.c
153
for (c = 0; c < naddr; c++)
sys/dev/ofw/ofw_subr.c
159
for (c = 0; c < nbridge; c++)
sys/dev/ofw/ofw_subr.c
162
for (c = 0; c < nsize; c++)
sys/dev/ofw/ofw_subr.c
86
uint32_t c, nbridge, naddr, nsize;
sys/dev/ofw/openfirm.c
263
OF_putchar(int c, void *arg __unused)
sys/dev/ofw/openfirm.c
267
if (c == '\n') {
sys/dev/ofw/openfirm.c
272
cbuf = c;
sys/dev/ofw/openfirm.c
78
static void OF_putchar(int c, void *arg);
sys/dev/otus/if_otus.c
2621
otus_set_board_values(struct otus_softc *sc, struct ieee80211_channel *c)
sys/dev/otus/if_otus.c
2626
if (IEEE80211_IS_CHAN_5GHZ(c))
sys/dev/otus/if_otus.c
2682
if (IEEE80211_IS_CHAN_5GHZ(c)) {
sys/dev/otus/if_otus.c
2712
otus_program_phy(struct otus_softc *sc, struct ieee80211_channel *c)
sys/dev/otus/if_otus.c
2718
if (IEEE80211_IS_CHAN_2GHZ(c)) {
sys/dev/otus/if_otus.c
2719
if (IEEE80211_IS_CHAN_HT40(c))
sys/dev/otus/if_otus.c
2724
if (IEEE80211_IS_CHAN_HT40(c))
sys/dev/otus/if_otus.c
2734
if ((error = otus_set_board_values(sc, c)) != 0)
sys/dev/otus/if_otus.c
2749
if (IEEE80211_IS_CHAN_2GHZ(c))
sys/dev/otus/if_otus.c
2767
otus_set_rf_bank4(struct otus_softc *sc, struct ieee80211_channel *c)
sys/dev/otus/if_otus.c
2776
if (IEEE80211_IS_CHAN_5GHZ(c)) {
sys/dev/otus/if_otus.c
2777
chansel = (c->ic_freq - 4800) / 5;
sys/dev/otus/if_otus.c
2784
if (c->ic_freq == 2484) { /* CH 14 */
sys/dev/otus/if_otus.c
2786
chansel = 10 + (c->ic_freq - 2274) / 5;
sys/dev/otus/if_otus.c
2788
chansel = 16 + (c->ic_freq - 2272) / 5;
sys/dev/otus/if_otus.c
2828
otus_set_chan(struct otus_softc *sc, struct ieee80211_channel *c, int assoc)
sys/dev/otus/if_otus.c
2839
chan = ieee80211_chan2ieee(ic, c);
sys/dev/otus/if_otus.c
2842
"setting channel %d (%dMHz)\n", chan, c->ic_freq);
sys/dev/otus/if_otus.c
2844
tmp = IEEE80211_IS_CHAN_2GHZ(c) ? 0x105 : 0x104;
sys/dev/otus/if_otus.c
2860
if (sc->bb_reset || c->ic_flags != sc->sc_curchan->ic_flags) {
sys/dev/otus/if_otus.c
2872
if ((error = otus_program_phy(sc, c)) != 0) {
sys/dev/otus/if_otus.c
2880
if (IEEE80211_IS_CHAN_5GHZ(c))
sys/dev/otus/if_otus.c
2897
if ((error = otus_set_rf_bank4(sc, c)) != 0)
sys/dev/otus/if_otus.c
2906
cmd.freq = htole32((uint32_t)c->ic_freq * 1000);
sys/dev/otus/if_otus.c
2910
coeff = (100 << 24) / c->ic_freq;
sys/dev/otus/if_otus.c
2954
sc->sc_curchan = c;
sys/dev/pms/RefTisa/discovery/dm/dmmisc.c
44
*dm_memset(void *s, int c, bit32 n)
sys/dev/pms/RefTisa/discovery/dm/dmmisc.c
51
dst[i] = (char) c;
sys/dev/pms/RefTisa/discovery/dm/dmproto.h
31
*dm_memset(void *s, int c, bit32 n);
sys/dev/pms/RefTisa/sallsdk/api/saosapi.h
820
#define ossaLogIomb(a, b,c,d,e )
sys/dev/pms/RefTisa/sallsdk/spc/saproto.h
244
GLOBAL FORCEINLINE void* si_memset(void *s, int c, bit32 n);
sys/dev/pms/RefTisa/sallsdk/spc/sautil.c
103
si_memset(void *s, int c, bit32 n)
sys/dev/pms/RefTisa/sallsdk/spc/sautil.c
114
return memset(s, c, n);
sys/dev/pms/RefTisa/sat/src/smmisc.c
44
sm_memset(void *s, int c, bit32 n)
sys/dev/pms/RefTisa/sat/src/smmisc.c
55
return memset(s, c, n);
sys/dev/pms/RefTisa/sat/src/smproto.h
30
sm_memset(void *s, int c, bit32 n);
sys/dev/pms/RefTisa/tisa/sassata/common/tdioctl.c
920
bit32 c= 0;
sys/dev/pms/RefTisa/tisa/sassata/common/tdioctl.c
945
for ( c=0; c < FetchBufferSIZE;c++)
sys/dev/pms/RefTisa/tisa/sassata/common/tdioctl.c
947
llist->Data[c] = *(BufferParms.pTrace+( c + llist->BufferOffsetBegin));
sys/dev/pms/freebsd/driver/common/lxcommon.h
488
#define MAP_TABLE_ENTRY(pC, c, d, l) (pC->encrypt_map + \
sys/dev/pms/freebsd/driver/common/lxcommon.h
489
(c * pC->devDiscover * AGTIAPI_MAX_LUN) + \
sys/dev/pms/freebsd/driver/common/osstring.h
64
#define osti_memset(s, c, n) memset((void *)s, (int)c, (size_t)n)
sys/dev/pms/freebsd/driver/common/osstring.h
77
#define osti_isxdigit(c) isxdigit(c)
sys/dev/pms/freebsd/driver/common/osstring.h
78
#define osti_isdigit(c) isdigit(c)
sys/dev/pms/freebsd/driver/common/osstring.h
79
#define osti_islower(c) islower(c)
sys/dev/pms/freebsd/driver/common/osstring.h
82
#define osMemSet(s, c, n) memset((void *)s, (int)c, (size_t)n)
sys/dev/ppbus/if_plip.c
493
u_char c, cl;
sys/dev/ppbus/if_plip.c
506
c = ppb_rstr(ppbus);
sys/dev/ppbus/if_plip.c
509
return (ctrecvl[cl] | ctrecvh[c]);
sys/dev/ppbus/if_plip.c
527
u_char c, cl;
sys/dev/ppbus/if_plip.c
598
c = ppb_rstr(ppbus);
sys/dev/ppbus/if_plip.c
601
*bp++= trecvh[cl] | trecvl[c];
sys/dev/ppbus/if_plip.c
605
if (cl != c &&
sys/dev/ppbus/if_plip.c
607
(c & 0xf8))
sys/dev/ppbus/ppb_base.c
236
ppb_init_callout(device_t bus, struct callout *c, int flags)
sys/dev/ppbus/ppb_base.c
240
callout_init_mtx(c, ppb->ppc_lock, flags);
sys/dev/ppbus/ppbconf.h
151
char *c;
sys/dev/psci/psci.c
154
register_t c __unused, register_t d __unused,
sys/dev/psci/psci.h
50
psci_call(register_t a, register_t b, register_t c, register_t d)
sys/dev/psci/psci.h
53
return (psci_callfn(a, b, c, d, 0, 0, 0, 0, NULL));
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
2972
uint64_t c; /**< cipher text representative, &lt; n (8 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
2986
uint64_t c; /**< cipher text representative, &lt; n (16 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
3000
uint64_t c; /**< cipher text representative, &lt; n (24 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
3014
uint64_t c; /**< cipher text representative, &lt; n (32 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
3028
uint64_t c; /**< cipher text representative, &lt; n (48 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
3042
uint64_t c; /**< cipher text representative, &lt; n (64 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
3056
uint64_t c; /**< cipher text representative, &lt; n (128 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
3070
uint64_t c; /**< cipher text representative, &lt; (p*q) (8 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
3084
uint64_t c; /**< cipher text representative, &lt; (p*q) (16 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
3098
uint64_t c; /**< cipher text representative, &lt; (p*q) (24 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
3112
uint64_t c; /**< cipher text representative, &lt; (p*q) (32 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
3126
uint64_t c; /**< cipher text representative, &lt; (p*q) (48 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
3140
uint64_t c; /**< cipher text representative, &lt; (p*q) (64 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
3154
uint64_t c; /**< cipher text representative, &lt; (p*q) (128 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
400
uint64_t c; /**< cipher text representative, &lt; n (8 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
4130
uint64_t c; /**< cipher text representative, &lt; n (8 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
415
uint64_t c; /**< cipher text representative, &lt; (p*q) (8 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
4200
uint64_t c; /**< cipher text representative, &lt; n (16 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
4270
uint64_t c; /**< cipher text representative, &lt; n (24 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
4340
uint64_t c; /**< cipher text representative, &lt; n (32 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
4410
uint64_t c; /**< cipher text representative, &lt; n (48 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
4480
uint64_t c; /**< cipher text representative, &lt; n (64 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
4518
uint64_t c; /**< cipher text representative, &lt; n (128 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
478
uint64_t c; /**< cipher text representative, &lt; n (16 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
493
uint64_t c; /**< cipher text representative, &lt; (p*q) (16 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5150
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (2 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5163
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (3 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5176
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (4 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5189
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (6 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5202
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (8 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5215
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (12 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5228
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (16 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5241
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (24 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5254
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (32 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5267
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (48 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5280
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (64 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5292
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (128
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5305
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (2 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5318
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (3 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5331
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (4 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5344
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (6 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5357
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (8 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5370
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (12 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5383
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (16 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5396
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (24 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5409
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (32 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5422
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (48 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5435
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (64 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
5447
uint64_t c; /**< modular multiplicative inverse of a, &gt; 0 and &lt; b (128
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
556
uint64_t c; /**< cipher text representative, &lt; n (24 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
571
uint64_t c; /**< cipher text representative, &lt; (p*q) (24 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
634
uint64_t c; /**< cipher text representative, &lt; n (32 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
649
uint64_t c; /**< cipher text representative, &lt; (p*q) (32 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
712
uint64_t c; /**< cipher text representative, &lt; n (48 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
727
uint64_t c; /**< cipher text representative, &lt; (p*q) (48 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
790
uint64_t c; /**< cipher text representative, &lt; n (64 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
805
uint64_t c; /**< cipher text representative, &lt; (p*q) (64 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
836
uint64_t c; /**< cipher text representative, &lt; n (128 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
850
uint64_t c; /**< cipher text representative, &lt; (p*q) (128 qwords)*/
sys/dev/qat/qat_common/adf_aer.c
29
linux_complete_common(struct completion *c, int all)
sys/dev/qat/qat_common/adf_aer.c
31
sleepq_lock(c);
sys/dev/qat/qat_common/adf_aer.c
32
c->done++;
sys/dev/qat/qat_common/adf_aer.c
34
sleepq_broadcast(c, SLEEPQ_SLEEP, 0, 0);
sys/dev/qat/qat_common/adf_aer.c
36
sleepq_signal(c, SLEEPQ_SLEEP, 0, 0);
sys/dev/qat/qat_common/adf_aer.c
37
sleepq_release(c);
sys/dev/qat_c2xxx/qat_ae.c
3346
u_int s, p, c;
sys/dev/qat_c2xxx/qat_ae.c
3399
for (c = 0; c < MAX_AE_CTX; c++) {
sys/dev/qat_c2xxx/qat_ae.c
3400
if (ctx_mask & (1 << c))
sys/dev/qat_c2xxx/qat_ae.c
3401
qas->qas_cur_pages[c] = qap;
sys/dev/qat_c2xxx/qat_ae.c
3403
qas->qas_cur_pages[c] = NULL;
sys/dev/qlnx/qlnxe/ecore_chain.h
116
} c;
sys/dev/qlnx/qlnxe/ecore_chain.h
442
p_prod_page_idx = &p_chain->pbl.c.pbl_u16.prod_page_idx;
sys/dev/qlnx/qlnxe/ecore_chain.h
452
p_prod_page_idx = &p_chain->pbl.c.pbl_u32.prod_page_idx;
sys/dev/qlnx/qlnxe/ecore_chain.h
518
p_cons_page_idx = &p_chain->pbl.c.pbl_u16.cons_page_idx;
sys/dev/qlnx/qlnxe/ecore_chain.h
528
p_cons_page_idx = &p_chain->pbl.c.pbl_u32.cons_page_idx;
sys/dev/qlnx/qlnxe/ecore_chain.h
572
p_chain->pbl.c.pbl_u16.prod_page_idx = (u16)reset_val;
sys/dev/qlnx/qlnxe/ecore_chain.h
573
p_chain->pbl.c.pbl_u16.cons_page_idx = (u16)reset_val;
sys/dev/qlnx/qlnxe/ecore_chain.h
575
p_chain->pbl.c.pbl_u32.prod_page_idx = reset_val;
sys/dev/qlnx/qlnxe/ecore_chain.h
576
p_chain->pbl.c.pbl_u32.cons_page_idx = reset_val;
sys/dev/qlnx/qlnxe/ecore_chain.h
773
p_chain->pbl.c.pbl_u16.prod_page_idx = (u16)page_idx;
sys/dev/qlnx/qlnxe/ecore_chain.h
775
p_chain->pbl.c.pbl_u32.prod_page_idx = page_idx;
sys/dev/qlnx/qlnxe/ecore_chain.h
804
p_chain->pbl.c.pbl_u16.cons_page_idx = (u16)page_idx;
sys/dev/qlnx/qlnxe/ecore_chain.h
806
p_chain->pbl.c.pbl_u32.cons_page_idx = page_idx;
sys/dev/ral/rt2560.c
2027
rt2560_set_chan(struct rt2560_softc *sc, struct ieee80211_channel *c)
sys/dev/ral/rt2560.c
2033
chan = ieee80211_chan2ieee(ic, c);
sys/dev/ral/rt2560.c
2036
if (IEEE80211_IS_CHAN_2GHZ(c))
sys/dev/ral/rt2661.c
1862
rt2661_select_band(struct rt2661_softc *sc, struct ieee80211_channel *c)
sys/dev/ral/rt2661.c
1870
if (IEEE80211_IS_CHAN_5GHZ(c)) {
sys/dev/ral/rt2661.c
1874
if ((IEEE80211_IS_CHAN_2GHZ(c) && sc->ext_2ghz_lna) ||
sys/dev/ral/rt2661.c
1875
(IEEE80211_IS_CHAN_5GHZ(c) && sc->ext_5ghz_lna)) {
sys/dev/ral/rt2661.c
1883
if ((IEEE80211_IS_CHAN_2GHZ(c) && sc->ext_2ghz_lna) ||
sys/dev/ral/rt2661.c
1884
(IEEE80211_IS_CHAN_5GHZ(c) && sc->ext_5ghz_lna)) {
sys/dev/ral/rt2661.c
1896
if (IEEE80211_IS_CHAN_2GHZ(c))
sys/dev/ral/rt2661.c
1904
rt2661_set_chan(struct rt2661_softc *sc, struct ieee80211_channel *c)
sys/dev/ral/rt2661.c
1912
chan = ieee80211_chan2ieee(ic, c);
sys/dev/ral/rt2661.c
1934
if (c->ic_flags != sc->sc_curchan->ic_flags) {
sys/dev/ral/rt2661.c
1935
rt2661_select_band(sc, c);
sys/dev/ral/rt2661.c
1938
sc->sc_curchan = c;
sys/dev/ral/rt2661.c
1972
if (IEEE80211_IS_CHAN_5GHZ(c))
sys/dev/ral/rt2860.c
3284
struct ieee80211_channel *c = ic->ic_curchan;
sys/dev/ral/rt2860.c
3287
if (IEEE80211_IS_CHAN_5GHZ(c)) {
sys/dev/ral/rt2860.c
3288
u_int chan = ieee80211_chan2ieee(ic, c);
sys/dev/ral/rt2860.c
4234
rt2860_switch_chan(struct rt2860_softc *sc, struct ieee80211_channel *c)
sys/dev/ral/rt2860.c
4239
chan = ieee80211_chan2ieee(ic, c);
sys/dev/random/armv8rng.c
76
random_rndr_read(void *buf, u_int c)
sys/dev/random/armv8rng.c
82
for (count = 0; count < c; count += sizeof(*b)) {
sys/dev/random/darn.c
104
return (c - count);
sys/dev/random/darn.c
92
random_darn_read(void *buf, u_int c)
sys/dev/random/darn.c
97
KASSERT(c % sizeof(*b) == 0, ("partial read %d", c));
sys/dev/random/darn.c
99
for (count = c; count > 0; count -= sizeof(*b)) {
sys/dev/random/ivy.c
102
KASSERT(c % sizeof(*b) == 0, ("partial read %d", c));
sys/dev/random/ivy.c
104
for (count = c; count > 0; count -= sizeof(*b)) {
sys/dev/random/ivy.c
109
return (c - count);
sys/dev/random/ivy.c
97
random_ivy_read(void *buf, u_int c)
sys/dev/random/nehemiah.c
75
random_nehemiah_read(void *buf, u_int c)
sys/dev/random/nehemiah.c
83
for (count = c; count > 0; count -= ret) {
sys/dev/random/nehemiah.c
90
return (c);
sys/dev/random/randomdev.c
329
int c, error = 0;
sys/dev/random/randomdev.c
335
c = MIN(uio->uio_resid, PAGE_SIZE);
sys/dev/random/randomdev.c
336
error = uiomove(random_buf, c, uio);
sys/dev/random/randomdev.c
339
randomdev_accumulate(random_buf, c);
sys/dev/random/rdseed.c
87
random_rdseed_read(void *buf, u_int c)
sys/dev/random/rdseed.c
92
KASSERT(c % sizeof(*b) == 0, ("partial read %d", c));
sys/dev/random/rdseed.c
94
for (count = c; count > 0; count -= sizeof(*b)) {
sys/dev/random/rdseed.c
99
return (c - count);
sys/dev/rndtest/rndtest.c
224
u_int8_t c;
sys/dev/rndtest/rndtest.c
230
c = rsp->rs_buf[i];
sys/dev/rndtest/rndtest.c
231
for (j = 0; j < 8; j++, c <<= 1) {
sys/dev/rndtest/rndtest.c
232
if (c & 0x80) {
sys/dev/rndtest/rndtest.c
295
u_int8_t c;
sys/dev/rndtest/rndtest.c
298
c = rsp->rs_buf[i];
sys/dev/rndtest/rndtest.c
299
for (j = 0; j < 8; j++, c <<= 1) {
sys/dev/rndtest/rndtest.c
300
if (c & 0x80) {
sys/dev/rtwn/if_rtwn.c
1697
struct ieee80211_channel *c = ic->ic_curchan;
sys/dev/rtwn/if_rtwn.c
1700
rtwn_set_chan(sc, c);
sys/dev/rtwn/if_rtwn.c
1708
struct ieee80211_channel *c = ic->ic_curchan;
sys/dev/rtwn/if_rtwn.c
1730
(IEEE80211_IS_CHAN_5GHZ(c) ?
sys/dev/rtwn/if_rtwn.c
1773
struct ieee80211_channel *c = sc->sc_ic.ic_curchan;
sys/dev/rtwn/if_rtwn.c
1780
(IEEE80211_IS_CHAN_5GHZ(c) ?
sys/dev/rtwn/if_rtwn.c
862
struct ieee80211_channel *c = ic->ic_curchan;
sys/dev/rtwn/if_rtwn.c
883
IEEE80211_IS_CHAN_5GHZ(c));
sys/dev/rtwn/if_rtwn_nop.h
48
rtwn_nop_softc_chan(struct rtwn_softc *sc, struct ieee80211_channel *c)
sys/dev/rtwn/if_rtwnreg.h
157
rtwn_chan2centieee(const struct ieee80211_channel *c)
sys/dev/rtwn/if_rtwnreg.h
161
if (IEEE80211_IS_CHAN_VHT(c))
sys/dev/rtwn/if_rtwnreg.h
162
return c->ic_vht_ch_freq1;
sys/dev/rtwn/if_rtwnreg.h
164
chan = c->ic_ieee;
sys/dev/rtwn/if_rtwnreg.h
165
if (c->ic_extieee != 0)
sys/dev/rtwn/if_rtwnreg.h
166
chan = (chan + c->ic_extieee) / 2;
sys/dev/rtwn/rtl8188e/r88e_chan.c
58
r88e_get_power_group(struct rtwn_softc *sc, struct ieee80211_channel *c)
sys/dev/rtwn/rtl8188e/r88e_chan.c
63
chan = rtwn_chan2centieee(c);
sys/dev/rtwn/rtl8188e/r88e_chan.c
64
if (IEEE80211_IS_CHAN_2GHZ(c)) {
sys/dev/rtwn/rtl8188e/r88e_chan.c
76
KASSERT(0, ("wrong channel band (flags %08X)\n", c->ic_flags));
sys/dev/rtwn/rtl8188e/r88e_chan.c
85
struct ieee80211_channel *c, uint8_t power[RTWN_RIDX_COUNT])
sys/dev/rtwn/rtl8188e/r88e_chan.c
94
group = r88e_get_power_group(sc, c);
sys/dev/rtwn/rtl8192c/r92c_chan.c
107
r92c_get_power_group(struct rtwn_softc *sc, struct ieee80211_channel *c)
sys/dev/rtwn/rtl8192c/r92c_chan.c
112
chan = rtwn_chan2centieee(c);
sys/dev/rtwn/rtl8192c/r92c_chan.c
113
if (IEEE80211_IS_CHAN_2GHZ(c)) {
sys/dev/rtwn/rtl8192c/r92c_chan.c
122
KASSERT(0, ("wrong channel band (flags %08X)\n", c->ic_flags));
sys/dev/rtwn/rtl8192c/r92c_chan.c
132
struct ieee80211_channel *c, uint8_t power[RTWN_RIDX_COUNT])
sys/dev/rtwn/rtl8192c/r92c_chan.c
142
group = r92c_get_power_group(sc, c);
sys/dev/rtwn/rtl8192c/r92c_chan.c
166
if (IEEE80211_IS_CHAN_HT40(c))
sys/dev/rtwn/rtl8192c/r92c_chan.c
173
if (!IEEE80211_IS_CHAN_HT40(c))
sys/dev/rtwn/rtl8192c/r92c_chan.c
197
if (!IEEE80211_IS_CHAN_HT40(c)) {
sys/dev/rtwn/rtl8192c/r92c_chan.c
278
r92c_set_txpower(struct rtwn_softc *sc, struct ieee80211_channel *c)
sys/dev/rtwn/rtl8192c/r92c_chan.c
286
rtwn_r92c_get_txpower(sc, i, c, power);
sys/dev/rtwn/rtl8192c/r92c_chan.c
361
r92c_set_chan(struct rtwn_softc *sc, struct ieee80211_channel *c)
sys/dev/rtwn/rtl8192c/r92c_chan.c
367
chan = rtwn_chan2centieee(c);
sys/dev/rtwn/rtl8192c/r92c_chan.c
370
r92c_set_txpower(sc, c);
sys/dev/rtwn/rtl8192c/r92c_chan.c
376
if (IEEE80211_IS_CHAN_HT40(c))
sys/dev/rtwn/rtl8192c/r92c_chan.c
377
r92c_set_bw40(sc, chan, IEEE80211_IS_CHAN_HT40U(c));
sys/dev/rtwn/rtl8192c/r92c_tx.c
56
r92c_tx_get_sco(struct rtwn_softc *sc, struct ieee80211_channel *c)
sys/dev/rtwn/rtl8192c/r92c_tx.c
58
if (IEEE80211_IS_CHAN_HT40U(c))
sys/dev/rtwn/rtl8192e/r92e_chan.c
134
if (IEEE80211_IS_CHAN_HT40(c))
sys/dev/rtwn/rtl8192e/r92e_chan.c
157
r92e_set_txpower(struct rtwn_softc *sc, struct ieee80211_channel *c)
sys/dev/rtwn/rtl8192e/r92e_chan.c
165
r92e_get_txpower(sc, i, c, power);
sys/dev/rtwn/rtl8192e/r92e_chan.c
235
r92e_set_chan(struct rtwn_softc *sc, struct ieee80211_channel *c)
sys/dev/rtwn/rtl8192e/r92e_chan.c
241
chan = rtwn_chan2centieee(c);
sys/dev/rtwn/rtl8192e/r92e_chan.c
248
if (IEEE80211_IS_CHAN_HT40(c))
sys/dev/rtwn/rtl8192e/r92e_chan.c
249
r92e_set_bw40(sc, chan, IEEE80211_IS_CHAN_HT40U(c));
sys/dev/rtwn/rtl8192e/r92e_chan.c
254
r92e_set_txpower(sc, c);
sys/dev/rtwn/rtl8192e/r92e_chan.c
65
r92e_get_power_group(struct rtwn_softc *sc, struct ieee80211_channel *c)
sys/dev/rtwn/rtl8192e/r92e_chan.c
70
chan = rtwn_chan2centieee(c);
sys/dev/rtwn/rtl8192e/r92e_chan.c
71
if (IEEE80211_IS_CHAN_2GHZ(c)) {
sys/dev/rtwn/rtl8192e/r92e_chan.c
82
KASSERT(0, ("wrong channel band (flags %08X)\n", c->ic_flags));
sys/dev/rtwn/rtl8192e/r92e_chan.c
90
r92e_get_txpower(struct rtwn_softc *sc, int chain, struct ieee80211_channel *c,
sys/dev/rtwn/rtl8192e/r92e_chan.c
98
group = r92e_get_power_group(sc, c);
sys/dev/rtwn/rtl8812a/r12a_calib.c
156
int c, i;
sys/dev/rtwn/rtl8812a/r12a_calib.c
161
for (c = 0; c < sc->nrxchains; c++)
sys/dev/rtwn/rtl8812a/r12a_calib.c
163
vals[c * size + i] = rtwn_rf_read(sc, c, regs[i]);
sys/dev/rtwn/rtl8812a/r12a_calib.c
170
int c, i;
sys/dev/rtwn/rtl8812a/r12a_calib.c
175
for (c = 0; c < sc->nrxchains; c++)
sys/dev/rtwn/rtl8812a/r12a_calib.c
177
rtwn_rf_write(sc, c, regs[i], vals[c * size + i]);
sys/dev/rtwn/rtl8812a/r12a_chan.c
152
struct ieee80211_channel *c, uint8_t power[RTWN_RIDX_COUNT])
sys/dev/rtwn/rtl8812a/r12a_chan.c
155
if (IEEE80211_IS_CHAN_2GHZ(c)) {
sys/dev/rtwn/rtl8812a/r12a_chan.c
167
struct ieee80211_channel *c, uint8_t power[RTWN_RIDX_COUNT])
sys/dev/rtwn/rtl8812a/r12a_chan.c
185
const struct ieee80211_channel *c, uint8_t power[RTWN_RIDX_COUNT])
sys/dev/rtwn/rtl8812a/r12a_chan.c
215
struct ieee80211_channel *c, uint8_t power[RTWN_RIDX_COUNT])
sys/dev/rtwn/rtl8812a/r12a_chan.c
218
r12a_write_txpower_cck(sc, chain, c, power);
sys/dev/rtwn/rtl8812a/r12a_chan.c
219
r12a_write_txpower_ofdm(sc, chain, c, power);
sys/dev/rtwn/rtl8812a/r12a_chan.c
220
r12a_write_txpower_ht(sc, chain, c, power);
sys/dev/rtwn/rtl8812a/r12a_chan.c
221
r12a_write_txpower_vht(sc, chain, c, power);
sys/dev/rtwn/rtl8812a/r12a_chan.c
223
r12a_tx_power_training(sc, chain, c, power);
sys/dev/rtwn/rtl8812a/r12a_chan.c
227
r12a_get_power_group(struct rtwn_softc *sc, struct ieee80211_channel *c)
sys/dev/rtwn/rtl8812a/r12a_chan.c
232
chan = rtwn_chan2centieee(c);
sys/dev/rtwn/rtl8812a/r12a_chan.c
233
if (IEEE80211_IS_CHAN_2GHZ(c)) {
sys/dev/rtwn/rtl8812a/r12a_chan.c
243
} else if (IEEE80211_IS_CHAN_5GHZ(c)) {
sys/dev/rtwn/rtl8812a/r12a_chan.c
266
KASSERT(0, ("wrong channel band (flags %08X)\n", c->ic_flags));
sys/dev/rtwn/rtl8812a/r12a_chan.c
275
struct ieee80211_channel *c, uint8_t power[RTWN_RIDX_COUNT])
sys/dev/rtwn/rtl8812a/r12a_chan.c
281
group = r12a_get_power_group(sc, c);
sys/dev/rtwn/rtl8812a/r12a_chan.c
293
if (IEEE80211_IS_CHAN_2GHZ(c)) {
sys/dev/rtwn/rtl8812a/r12a_chan.c
306
if (IEEE80211_IS_CHAN_VHT80(c)) {
sys/dev/rtwn/rtl8812a/r12a_chan.c
310
if (IEEE80211_IS_CHAN_HT40(c) || IEEE80211_IS_CHAN_VHT40(c))
sys/dev/rtwn/rtl8812a/r12a_chan.c
335
if (IEEE80211_IS_CHAN_VHT80(c)) {
sys/dev/rtwn/rtl8812a/r12a_chan.c
339
if (IEEE80211_IS_CHAN_HT40(c) || IEEE80211_IS_CHAN_VHT40(c))
sys/dev/rtwn/rtl8812a/r12a_chan.c
382
r12a_set_txpower(struct rtwn_softc *sc, struct ieee80211_channel *c)
sys/dev/rtwn/rtl8812a/r12a_chan.c
390
r12a_get_txpower(sc, i, c, power);
sys/dev/rtwn/rtl8812a/r12a_chan.c
392
r12a_write_txpower(sc, i, c, power);
sys/dev/rtwn/rtl8812a/r12a_chan.c
397
r12a_fix_spur(struct rtwn_softc *sc, struct ieee80211_channel *c)
sys/dev/rtwn/rtl8812a/r12a_chan.c
400
uint16_t chan = rtwn_chan2centieee(c);
sys/dev/rtwn/rtl8812a/r12a_chan.c
403
if (IEEE80211_IS_CHAN_HT40(c) && chan == 11) {
sys/dev/rtwn/rtl8812a/r12a_chan.c
409
if ((IEEE80211_IS_CHAN_B(c) ||
sys/dev/rtwn/rtl8812a/r12a_chan.c
410
IEEE80211_IS_CHAN_ANYG(c) ||
sys/dev/rtwn/rtl8812a/r12a_chan.c
411
IEEE80211_IS_CHAN_HT20(c)) && /* 2GHz, 20 MHz */
sys/dev/rtwn/rtl8812a/r12a_chan.c
416
} else if (IEEE80211_IS_CHAN_HT40(c) ||
sys/dev/rtwn/rtl8812a/r12a_chan.c
417
IEEE80211_IS_CHAN_VHT40(c)) {
sys/dev/rtwn/rtl8812a/r12a_chan.c
421
} else if (IEEE80211_IS_CHAN_VHT80(c)) {
sys/dev/rtwn/rtl8812a/r12a_chan.c
430
if ((IEEE80211_IS_CHAN_B(c) ||
sys/dev/rtwn/rtl8812a/r12a_chan.c
431
IEEE80211_IS_CHAN_ANYG(c) ||
sys/dev/rtwn/rtl8812a/r12a_chan.c
432
IEEE80211_IS_CHAN_HT20(c)) && /* 2GHz, 20 MHz */
sys/dev/rtwn/rtl8812a/r12a_chan.c
435
else if (IEEE80211_IS_CHAN_2GHZ(c))
sys/dev/rtwn/rtl8812a/r12a_chan.c
441
r12a_set_band(struct rtwn_softc *sc, struct ieee80211_channel *c)
sys/dev/rtwn/rtl8812a/r12a_chan.c
451
RTWN_STARTED && IEEE80211_IS_CHAN_5GHZ(c) ^
sys/dev/rtwn/rtl8812a/r12a_chan.c
456
rtwn_get_rates(sc, ieee80211_get_suprates(ic, c), NULL, &basicrates,
sys/dev/rtwn/rtl8812a/r12a_chan.c
458
if (IEEE80211_IS_CHAN_2GHZ(c)) {
sys/dev/rtwn/rtl8812a/r12a_chan.c
461
} else if (IEEE80211_IS_CHAN_5GHZ(c)) {
sys/dev/rtwn/rtl8812a/r12a_chan.c
465
KASSERT(0, ("wrong channel flags %08X\n", c->ic_flags));
sys/dev/rtwn/rtl8812a/r12a_chan.c
494
r12a_set_chan(struct rtwn_softc *sc, struct ieee80211_channel *c)
sys/dev/rtwn/rtl8812a/r12a_chan.c
500
r12a_set_band(sc, c);
sys/dev/rtwn/rtl8812a/r12a_chan.c
502
chan = rtwn_chan2centieee(c);
sys/dev/rtwn/rtl8812a/r12a_chan.c
529
rtwn_r12a_fix_spur(sc, c);
sys/dev/rtwn/rtl8812a/r12a_chan.c
535
if (IEEE80211_IS_CHAN_VHT80(c)) { /* 80 MHz */
sys/dev/rtwn/rtl8812a/r12a_chan.c
539
if (c->ic_ieee > c->ic_vht_ch_freq1) {
sys/dev/rtwn/rtl8812a/r12a_chan.c
540
if (c->ic_ieee - c->ic_vht_ch_freq1 == 2) {
sys/dev/rtwn/rtl8812a/r12a_chan.c
548
if (c->ic_vht_ch_freq1 - c->ic_ieee == 2) {
sys/dev/rtwn/rtl8812a/r12a_chan.c
594
} else if (IEEE80211_IS_CHAN_HT40(c) ||
sys/dev/rtwn/rtl8812a/r12a_chan.c
595
IEEE80211_IS_CHAN_VHT40(c)) { /* 40 MHz */
sys/dev/rtwn/rtl8812a/r12a_chan.c
598
if (IEEE80211_IS_CHAN_HT40U(c))
sys/dev/rtwn/rtl8812a/r12a_chan.c
627
if (IEEE80211_IS_CHAN_HT40U(c))
sys/dev/rtwn/rtl8812a/r12a_chan.c
64
struct ieee80211_channel *c, uint8_t power[RTWN_RIDX_COUNT])
sys/dev/rtwn/rtl8812a/r12a_chan.c
651
rtwn_r12a_fix_spur(sc, c);
sys/dev/rtwn/rtl8812a/r12a_chan.c
657
r12a_set_txpower(sc, c);
sys/dev/rtwn/rtl8812a/r12a_chan.c
96
struct ieee80211_channel *c, uint8_t power[RTWN_RIDX_COUNT])
sys/dev/rtwn/rtl8812a/r12a_fw.c
160
struct ieee80211_channel *c = sc->sc_ic.ic_curchan;
sys/dev/rtwn/rtl8812a/r12a_fw.c
168
cmd.chan = rtwn_chan2centieee(c);
sys/dev/rtwn/rtl8812a/r12a_fw.c
169
if (IEEE80211_IS_CHAN_5GHZ(c))
sys/dev/rtwn/rtl8812a/r12a_fw.c
175
if (IEEE80211_IS_CHAN_VHT80(c))
sys/dev/rtwn/rtl8812a/r12a_fw.c
177
else if (IEEE80211_IS_CHAN_HT40(c) || IEEE80211_IS_CHAN_VHT40(c))
sys/dev/rtwn/rtl8812a/r12a_tx.c
74
r12a_get_primary_channel(struct rtwn_softc *sc, struct ieee80211_channel *c)
sys/dev/rtwn/rtl8812a/r12a_tx.c
78
if (IEEE80211_IS_CHAN_HT40U(c))
sys/dev/sbni/if_sbnivar.h
151
#define CRC32(c,crc) (crc32tab[((size_t)(crc) ^ (c)) & 0xff] ^ (((crc) >> 8) & 0x00ffffff))
sys/dev/scc/scc_core.c
107
int c, error, mode, sysdev;
sys/dev/scc/scc_core.c
145
for (c = 0; c < cl->cl_channels; c++) {
sys/dev/scc/scc_core.c
146
ch = &sc->sc_chan[c];
sys/dev/scc/scc_core.c
154
ch->ch_irid = c * ipc;
sys/dev/scc/scc_core.c
169
for (c = 0; c < cl->cl_channels; c++) {
sys/dev/scc/scc_core.c
170
ch = &sc->sc_chan[c];
sys/dev/scc/scc_core.c
172
ch->ch_nr = c + 1;
sys/dev/scc/scc_core.c
187
resource_list_add(&ch->ch_rlist, SYS_RES_IRQ, 0, c, c, 1);
sys/dev/scc/scc_core.c
232
for (c = 0; c < cl->cl_channels; c++) {
sys/dev/scc/scc_core.c
233
ch = &sc->sc_chan[c];
sys/dev/scc/scc_core.c
254
for (c = 0; c < cl->cl_channels; c++) {
sys/dev/scc/scc_core.c
262
for (c = 0; c < cl->cl_channels; c++) {
sys/dev/scc/scc_core.c
263
ch = &sc->sc_chan[c];
sys/dev/scc/scc_core.c
292
for (c = 0; c < cl->cl_channels; c++) {
sys/dev/scc/scc_core.c
293
ch = &sc->sc_chan[c];
sys/dev/scc/scc_core.c
520
int c, i, isrc;
sys/dev/scc/scc_core.c
535
for (c = 0; c < sc->sc_class->cl_channels; c++) {
sys/dev/scc/scc_core.c
536
ch = &sc->sc_chan[c];
sys/dev/scc/scc_core.c
60
int c, i, ipend, isrc;
sys/dev/scc/scc_core.c
70
for (c = 0; c < cl->cl_channels; c++) {
sys/dev/scc/scc_core.c
71
ch = &sc->sc_chan[c];
sys/dev/scc/scc_core.c
81
for (c = 0; c < cl->cl_channels; c++) {
sys/dev/scc/scc_core.c
82
ch = &sc->sc_chan[c];
sys/dev/scc/scc_dev_quicc.c
127
int c, ipend;
sys/dev/scc/scc_dev_quicc.c
132
for (c = 0; c < 4; c++) {
sys/dev/scc/scc_dev_quicc.c
133
ch = &sc->sc_chan[c];
sys/dev/scc/scc_dev_quicc.c
138
scce = quicc_read2(bas, QUICC_REG_SCC_SCCE(c));
sys/dev/scc/scc_dev_quicc.c
139
quicc_write2(bas, QUICC_REG_SCC_SCCE(c), ~0);
sys/dev/scc/scc_dev_z8530.c
112
int c;
sys/dev/scc/scc_dev_z8530.c
115
c = (ch->ch_nr == 1) ? CHAN_A : CHAN_B;
sys/dev/scc/scc_dev_z8530.c
118
scc_setreg(bas, c + REG_CTRL, CR_RSTTXI);
sys/dev/scc/scc_dev_z8530.c
122
scc_getreg(bas, c + REG_DATA);
sys/dev/scc/scc_dev_z8530.c
126
scc_setreg(bas, c + REG_CTRL, CR_RSTERR);
sys/dev/scc/scc_dev_z8530.c
131
#define SIGCHG(c, i, s, d) \
sys/dev/scc/scc_dev_z8530.c
132
if (c) { \
sys/dev/sfxge/common/efx_hash.c
120
uint32_t c;
sys/dev/sfxge/common/efx_hash.c
123
a = b = c = EFX_HASH_INITIAL_VALUE +
sys/dev/sfxge/common/efx_hash.c
130
c += input[2];
sys/dev/sfxge/common/efx_hash.c
131
EFX_HASH_MIX(a, b, c);
sys/dev/sfxge/common/efx_hash.c
140
c += input[2];
sys/dev/sfxge/common/efx_hash.c
147
EFX_HASH_FINALISE(a, b, c);
sys/dev/sfxge/common/efx_hash.c
155
return (c);
sys/dev/sfxge/common/efx_hash.c
169
uint32_t c;
sys/dev/sfxge/common/efx_hash.c
172
a = b = c = EFX_HASH_INITIAL_VALUE + (uint32_t)length + init;
sys/dev/sfxge/common/efx_hash.c
184
c += ((uint32_t)input[8]) << 24;
sys/dev/sfxge/common/efx_hash.c
185
c += ((uint32_t)input[9]) << 16;
sys/dev/sfxge/common/efx_hash.c
186
c += ((uint32_t)input[10]) << 8;
sys/dev/sfxge/common/efx_hash.c
187
c += ((uint32_t)input[11]);
sys/dev/sfxge/common/efx_hash.c
188
EFX_HASH_MIX(a, b, c);
sys/dev/sfxge/common/efx_hash.c
196
c += ((uint32_t)input[11]);
sys/dev/sfxge/common/efx_hash.c
199
c += ((uint32_t)input[10]) << 8;
sys/dev/sfxge/common/efx_hash.c
202
c += ((uint32_t)input[9]) << 16;
sys/dev/sfxge/common/efx_hash.c
205
c += ((uint32_t)input[8]) << 24;
sys/dev/sfxge/common/efx_hash.c
230
EFX_HASH_FINALISE(a, b, c);
sys/dev/sfxge/common/efx_hash.c
238
return (c);
sys/dev/sfxge/common/efx_hash.c
252
uint32_t c;
sys/dev/sfxge/common/efx_hash.c
255
a = b = c = EFX_HASH_INITIAL_VALUE + (uint32_t)length + init;
sys/dev/sfxge/common/efx_hash.c
267
c += ((uint32_t)input[8]);
sys/dev/sfxge/common/efx_hash.c
268
c += ((uint32_t)input[9]) << 8;
sys/dev/sfxge/common/efx_hash.c
269
c += ((uint32_t)input[10]) << 16;
sys/dev/sfxge/common/efx_hash.c
270
c += ((uint32_t)input[11]) << 24;
sys/dev/sfxge/common/efx_hash.c
271
EFX_HASH_MIX(a, b, c);
sys/dev/sfxge/common/efx_hash.c
279
c += ((uint32_t)input[11]) << 24;
sys/dev/sfxge/common/efx_hash.c
282
c += ((uint32_t)input[10]) << 16;
sys/dev/sfxge/common/efx_hash.c
285
c += ((uint32_t)input[9]) << 8;
sys/dev/sfxge/common/efx_hash.c
288
c += ((uint32_t)input[8]);
sys/dev/sfxge/common/efx_hash.c
313
EFX_HASH_FINALISE(a, b, c);
sys/dev/sfxge/common/efx_hash.c
321
return (c);
sys/dev/sfxge/sfxge.h
405
extern uint64_t sfxge_get_counter(if_t ifp, ift_counter c);
sys/dev/sfxge/sfxge_port.c
102
sfxge_get_counter(if_t ifp, ift_counter c)
sys/dev/sfxge/sfxge_port.c
115
switch (c) {
sys/dev/sfxge/sfxge_port.c
155
return (if_get_counter_default(ifp, c));
sys/dev/sfxge/sfxge_rx.c
1190
struct sfxge_lro_conn *c;
sys/dev/sfxge/sfxge_rx.c
1201
c = TAILQ_LAST(&st->conns[i], sfxge_lro_tailq);
sys/dev/sfxge/sfxge_rx.c
1202
sfxge_lro_drop(rxq, c);
sys/dev/sfxge/sfxge_rx.c
1207
c = TAILQ_FIRST(&st->free_conns);
sys/dev/sfxge/sfxge_rx.c
1208
TAILQ_REMOVE(&st->free_conns, c, link);
sys/dev/sfxge/sfxge_rx.c
1209
KASSERT(!c->mbuf, ("found orphaned mbuf"));
sys/dev/sfxge/sfxge_rx.c
1210
free(c, M_SFXGE);
sys/dev/sfxge/sfxge_rx.c
131
#define SFXGE_LRO_CONN_IS_VLAN_ENCAP(c) ((c)->l2_id & SFXGE_LRO_L2_ID_VLAN)
sys/dev/sfxge/sfxge_rx.c
132
#define SFXGE_LRO_CONN_IS_TCPIPV4(c) (!((c)->l2_id & SFXGE_LRO_L2_ID_IPV6))
sys/dev/sfxge/sfxge_rx.c
360
sfxge_lro_deliver(struct sfxge_lro_state *st, struct sfxge_lro_conn *c)
sys/dev/sfxge/sfxge_rx.c
363
struct mbuf *m = c->mbuf;
sys/dev/sfxge/sfxge_rx.c
372
if (SFXGE_LRO_CONN_IS_TCPIPV4(c)) {
sys/dev/sfxge/sfxge_rx.c
373
struct ip *iph = c->nh;
sys/dev/sfxge/sfxge_rx.c
381
struct ip6_hdr *iph = c->nh;
sys/dev/sfxge/sfxge_rx.c
387
c_th->th_win = c->th_last->th_win;
sys/dev/sfxge/sfxge_rx.c
388
c_th->th_ack = c->th_last->th_ack;
sys/dev/sfxge/sfxge_rx.c
389
if (c_th->th_off == c->th_last->th_off) {
sys/dev/sfxge/sfxge_rx.c
392
memcpy(c_th + 1, c->th_last + 1, optlen);
sys/dev/sfxge/sfxge_rx.c
395
m->m_pkthdr.flowid = c->conn_hash;
sys/dev/sfxge/sfxge_rx.c
397
SFXGE_LRO_CONN_IS_TCPIPV4(c) ?
sys/dev/sfxge/sfxge_rx.c
403
c->mbuf = NULL;
sys/dev/sfxge/sfxge_rx.c
404
c->delivered = 1;
sys/dev/sfxge/sfxge_rx.c
408
static void sfxge_lro_drop(struct sfxge_rxq *rxq, struct sfxge_lro_conn *c)
sys/dev/sfxge/sfxge_rx.c
412
KASSERT(!c->mbuf, ("found orphaned mbuf"));
sys/dev/sfxge/sfxge_rx.c
414
if (c->next_buf.mbuf != NULL) {
sys/dev/sfxge/sfxge_rx.c
415
sfxge_rx_deliver(rxq, &c->next_buf);
sys/dev/sfxge/sfxge_rx.c
416
LIST_REMOVE(c, active_link);
sys/dev/sfxge/sfxge_rx.c
419
bucket = c->conn_hash & rxq->lro.conns_mask;
sys/dev/sfxge/sfxge_rx.c
422
TAILQ_REMOVE(&rxq->lro.conns[bucket], c, link);
sys/dev/sfxge/sfxge_rx.c
423
TAILQ_INSERT_HEAD(&rxq->lro.free_conns, c, link);
sys/dev/sfxge/sfxge_rx.c
431
struct sfxge_lro_conn *c;
sys/dev/sfxge/sfxge_rx.c
442
c = TAILQ_LAST(&rxq->lro.conns[i], sfxge_lro_tailq);
sys/dev/sfxge/sfxge_rx.c
443
if (now - c->last_pkt_ticks > lro_idle_ticks) {
sys/dev/sfxge/sfxge_rx.c
445
sfxge_lro_drop(rxq, c);
sys/dev/sfxge/sfxge_rx.c
451
sfxge_lro_merge(struct sfxge_lro_state *st, struct sfxge_lro_conn *c,
sys/dev/sfxge/sfxge_rx.c
458
c->mbuf_tail->m_next = mbuf;
sys/dev/sfxge/sfxge_rx.c
459
c->mbuf_tail = mbuf;
sys/dev/sfxge/sfxge_rx.c
462
c->mbuf->m_pkthdr.len += mbuf->m_len;
sys/dev/sfxge/sfxge_rx.c
465
if (SFXGE_LRO_CONN_IS_TCPIPV4(c)) {
sys/dev/sfxge/sfxge_rx.c
466
struct ip *iph = c->nh;
sys/dev/sfxge/sfxge_rx.c
470
struct ip6_hdr *iph = c->nh;
sys/dev/sfxge/sfxge_rx.c
475
c->th_last = th;
sys/dev/sfxge/sfxge_rx.c
481
if (c->mbuf->m_pkthdr.len > 65536 - 9200)
sys/dev/sfxge/sfxge_rx.c
482
sfxge_lro_deliver(st, c);
sys/dev/sfxge/sfxge_rx.c
486
sfxge_lro_start(struct sfxge_lro_state *st, struct sfxge_lro_conn *c,
sys/dev/sfxge/sfxge_rx.c
490
c->mbuf = mbuf;
sys/dev/sfxge/sfxge_rx.c
491
c->mbuf_tail = c->mbuf;
sys/dev/sfxge/sfxge_rx.c
492
c->nh = nh;
sys/dev/sfxge/sfxge_rx.c
493
c->th_last = th;
sys/dev/sfxge/sfxge_rx.c
498
if (SFXGE_LRO_CONN_IS_TCPIPV4(c)) {
sys/dev/sfxge/sfxge_rx.c
512
sfxge_lro_try_merge(struct sfxge_rxq *rxq, struct sfxge_lro_conn *c)
sys/dev/sfxge/sfxge_rx.c
514
struct sfxge_rx_sw_desc *rx_buf = &c->next_buf;
sys/dev/sfxge/sfxge_rx.c
515
char *eh = c->next_eh;
sys/dev/sfxge/sfxge_rx.c
521
if (SFXGE_LRO_CONN_IS_TCPIPV4(c)) {
sys/dev/sfxge/sfxge_rx.c
522
struct ip *iph = c->next_nh;
sys/dev/sfxge/sfxge_rx.c
526
struct ip6_hdr *iph = c->next_nh;
sys/dev/sfxge/sfxge_rx.c
552
if (__predict_false(th_seq != c->next_seq)) {
sys/dev/sfxge/sfxge_rx.c
554
if (c->mbuf != NULL)
sys/dev/sfxge/sfxge_rx.c
555
sfxge_lro_deliver(&rxq->lro, c);
sys/dev/sfxge/sfxge_rx.c
556
c->n_in_order_pkts -= lro_loss_packets;
sys/dev/sfxge/sfxge_rx.c
557
c->next_seq = th_seq + data_length;
sys/dev/sfxge/sfxge_rx.c
561
c->next_seq = th_seq + data_length;
sys/dev/sfxge/sfxge_rx.c
564
if (now - c->last_pkt_ticks > lro_idle_ticks) {
sys/dev/sfxge/sfxge_rx.c
566
if (c->mbuf != NULL)
sys/dev/sfxge/sfxge_rx.c
567
sfxge_lro_deliver(&rxq->lro, c);
sys/dev/sfxge/sfxge_rx.c
568
sfxge_lro_drop(rxq, c);
sys/dev/sfxge/sfxge_rx.c
571
c->last_pkt_ticks = ticks;
sys/dev/sfxge/sfxge_rx.c
573
if (c->n_in_order_pkts < lro_slow_start_packets) {
sys/dev/sfxge/sfxge_rx.c
576
++c->n_in_order_pkts;
sys/dev/sfxge/sfxge_rx.c
581
if (c->mbuf != NULL)
sys/dev/sfxge/sfxge_rx.c
582
sfxge_lro_deliver(&rxq->lro, c);
sys/dev/sfxge/sfxge_rx.c
585
sfxge_lro_drop(rxq, c);
sys/dev/sfxge/sfxge_rx.c
593
if (__predict_true(c->mbuf != NULL)) {
sys/dev/sfxge/sfxge_rx.c
598
sfxge_lro_merge(&rxq->lro, c, rx_buf->mbuf, th);
sys/dev/sfxge/sfxge_rx.c
603
sfxge_lro_start(&rxq->lro, c, rx_buf->mbuf, c->next_nh, th);
sys/dev/sfxge/sfxge_rx.c
618
struct sfxge_lro_conn *c;
sys/dev/sfxge/sfxge_rx.c
626
c = TAILQ_FIRST(&st->free_conns);
sys/dev/sfxge/sfxge_rx.c
627
TAILQ_REMOVE(&st->free_conns, c, link);
sys/dev/sfxge/sfxge_rx.c
629
c = malloc(sizeof(*c), M_SFXGE, M_NOWAIT);
sys/dev/sfxge/sfxge_rx.c
630
if (c == NULL)
sys/dev/sfxge/sfxge_rx.c
632
c->mbuf = NULL;
sys/dev/sfxge/sfxge_rx.c
633
c->next_buf.mbuf = NULL;
sys/dev/sfxge/sfxge_rx.c
638
TAILQ_INSERT_HEAD(&st->conns[bucket], c, link);
sys/dev/sfxge/sfxge_rx.c
639
c->l2_id = l2_id;
sys/dev/sfxge/sfxge_rx.c
640
c->conn_hash = conn_hash;
sys/dev/sfxge/sfxge_rx.c
641
c->source = th->th_sport;
sys/dev/sfxge/sfxge_rx.c
642
c->dest = th->th_dport;
sys/dev/sfxge/sfxge_rx.c
643
c->n_in_order_pkts = 0;
sys/dev/sfxge/sfxge_rx.c
644
c->last_pkt_ticks = *(volatile int *)&ticks;
sys/dev/sfxge/sfxge_rx.c
645
c->delivered = 0;
sys/dev/sfxge/sfxge_rx.c
662
struct sfxge_lro_conn *c;
sys/dev/sfxge/sfxge_rx.c
714
TAILQ_FOREACH(c, &rxq->lro.conns[bucket], link) {
sys/dev/sfxge/sfxge_rx.c
715
if ((c->l2_id - l2_id) | (c->conn_hash - conn_hash))
sys/dev/sfxge/sfxge_rx.c
717
if ((c->source - th->th_sport) | (c->dest - th->th_dport))
sys/dev/sfxge/sfxge_rx.c
719
if (c->mbuf != NULL) {
sys/dev/sfxge/sfxge_rx.c
720
if (SFXGE_LRO_CONN_IS_TCPIPV4(c)) {
sys/dev/sfxge/sfxge_rx.c
722
c_iph = c->nh;
sys/dev/sfxge/sfxge_rx.c
728
c_iph = c->nh;
sys/dev/sfxge/sfxge_rx.c
736
TAILQ_REMOVE(&rxq->lro.conns[bucket], c, link);
sys/dev/sfxge/sfxge_rx.c
737
TAILQ_INSERT_HEAD(&rxq->lro.conns[bucket], c, link);
sys/dev/sfxge/sfxge_rx.c
739
if (c->next_buf.mbuf != NULL) {
sys/dev/sfxge/sfxge_rx.c
740
if (!sfxge_lro_try_merge(rxq, c))
sys/dev/sfxge/sfxge_rx.c
743
LIST_INSERT_HEAD(&rxq->lro.active_conns, c,
sys/dev/sfxge/sfxge_rx.c
746
c->next_buf = *rx_buf;
sys/dev/sfxge/sfxge_rx.c
747
c->next_eh = eh;
sys/dev/sfxge/sfxge_rx.c
748
c->next_nh = nh;
sys/dev/sfxge/sfxge_rx.c
763
struct sfxge_lro_conn *c;
sys/dev/sfxge/sfxge_rx.c
767
c = LIST_FIRST(&st->active_conns);
sys/dev/sfxge/sfxge_rx.c
768
if (!c->delivered && c->mbuf != NULL)
sys/dev/sfxge/sfxge_rx.c
769
sfxge_lro_deliver(st, c);
sys/dev/sfxge/sfxge_rx.c
770
if (sfxge_lro_try_merge(rxq, c)) {
sys/dev/sfxge/sfxge_rx.c
771
if (c->mbuf != NULL)
sys/dev/sfxge/sfxge_rx.c
772
sfxge_lro_deliver(st, c);
sys/dev/sfxge/sfxge_rx.c
773
LIST_REMOVE(c, active_link);
sys/dev/sfxge/sfxge_rx.c
775
c->delivered = 0;
sys/dev/smartpqi/smartpqi_defines.h
955
#define PQISRC_VERSION(a, b, c, d) STR(a.b.c-d)
sys/dev/sound/dummy.c
142
struct pcm_channel *c, int dir)
sys/dev/sound/dummy.c
156
ch->chan = c;
sys/dev/sound/fdt/audio_soc.c
206
struct pcm_channel *c, int dir)
sys/dev/sound/fdt/audio_soc.c
221
ausoc_chan->pcm = c;
sys/dev/sound/macio/aoa.c
222
struct pcm_channel *c, int dir)
sys/dev/sound/macio/aoa.c
233
dma->pcm = c;
sys/dev/sound/midi/midiq.h
32
#define MIDIQ_MOVE(a,b,c) bcopy(b,a,c)
sys/dev/sound/pci/als4000.c
206
struct snd_dbuf *b, struct pcm_channel *c, int dir)
sys/dev/sound/pci/als4000.c
221
ch->channel = c;
sys/dev/sound/pci/atiixp.c
436
struct pcm_channel *c, int dir)
sys/dev/sound/pci/atiixp.c
464
ch->channel = c;
sys/dev/sound/pci/cmi.c
346
struct snd_dbuf *b, struct pcm_channel *c, int dir)
sys/dev/sound/pci/cmi.c
352
ch->channel = c;
sys/dev/sound/pci/cs4281.c
316
cs4281chan_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir)
sys/dev/sound/pci/cs4281.c
326
ch->channel = c;
sys/dev/sound/pci/csapcm.c
530
csachan_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir)
sys/dev/sound/pci/csapcm.c
536
ch->channel = c;
sys/dev/sound/pci/emu10k1.c
809
struct pcm_channel *c, int dir)
sys/dev/sound/pci/emu10k1.c
819
ch->channel = c;
sys/dev/sound/pci/emu10k1.c
944
struct pcm_channel *c, int dir)
sys/dev/sound/pci/emu10k1.c
953
ch->channel = c;
sys/dev/sound/pci/emu10kx-pcm.c
1039
emufxrchan_init(kobj_t obj __unused, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir __unused)
sys/dev/sound/pci/emu10kx-pcm.c
1058
ch->channel = c;
sys/dev/sound/pci/emu10kx-pcm.c
706
emupchan_init(kobj_t obj __unused, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir __unused)
sys/dev/sound/pci/emu10kx-pcm.c
720
ch->channel = c;
sys/dev/sound/pci/emu10kx-pcm.c
858
emurchan_init(kobj_t obj __unused, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir __unused)
sys/dev/sound/pci/emu10kx-pcm.c
867
ch->channel = c;
sys/dev/sound/pci/envy24.c
1561
envy24chan_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir)
sys/dev/sound/pci/envy24.c
1587
ch->channel = c;
sys/dev/sound/pci/envy24ht.c
1470
envy24htchan_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir)
sys/dev/sound/pci/envy24ht.c
1498
ch->channel = c;
sys/dev/sound/pci/es137x.c
443
struct pcm_channel *c, int dir)
sys/dev/sound/pci/es137x.c
496
ch->channel = c;
sys/dev/sound/pci/fm801.c
329
fm801ch_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir)
sys/dev/sound/pci/fm801.c
336
ch->channel = c;
sys/dev/sound/pci/hda/hdaa.c
1758
struct pcm_channel *c, int dir)
sys/dev/sound/pci/hda/hdaa.c
1772
ch->c = c;
sys/dev/sound/pci/hda/hdaa.c
1872
int i, j, k, chn, cchn, totalchn, totalextchn, c;
sys/dev/sound/pci/hda/hdaa.c
1923
c = (ch->sid << 4);
sys/dev/sound/pci/hda/hdaa.c
1930
c = 0;
sys/dev/sound/pci/hda/hdaa.c
1932
c = (ch->sid << 4) | chn;
sys/dev/sound/pci/hda/hdaa.c
1942
HDA_CMD_SET_CONV_STREAM_CHAN(0, ch->io[i], c));
sys/dev/sound/pci/hda/hdaa.c
1959
ch->io[i], fmt, dfmt, c, cchn, ch->stripectl);
sys/dev/sound/pci/hda/hdaa.c
2058
u_int c;
sys/dev/sound/pci/hda/hdaa.c
2061
c = a;
sys/dev/sound/pci/hda/hdaa.c
2063
b = (c % b);
sys/dev/sound/pci/hda/hdaa.c
6813
chn_intr(ch->c);
sys/dev/sound/pci/hda/hdaa.c
6878
int c;
sys/dev/sound/pci/hda/hdaa.c
6881
c = devinfo->chans[as->chans[0]].channels;
sys/dev/sound/pci/hda/hdaa.c
6882
if (c == 1)
sys/dev/sound/pci/hda/hdaa.c
6884
else if (c == 2) {
sys/dev/sound/pci/hda/hdaa.c
6898
snprintf(buf, buflen, "%dch", c);
sys/dev/sound/pci/hda/hdaa.h
223
struct pcm_channel *c;
sys/dev/sound/pci/hdsp-pcm.c
691
struct pcm_channel *c, int dir)
sys/dev/sound/pci/hdsp-pcm.c
739
ch->channel = c;
sys/dev/sound/pci/hdspe-pcm.c
682
struct pcm_channel *c, int dir)
sys/dev/sound/pci/hdspe-pcm.c
723
ch->channel = c;
sys/dev/sound/pci/ich.c
368
ichchan_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir)
sys/dev/sound/pci/ich.c
379
ch->channel = c;
sys/dev/sound/pci/maestro3.c
374
m3_pchan_init(kobj_t kobj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir)
sys/dev/sound/pci/maestro3.c
438
ch->channel = c;
sys/dev/sound/pci/maestro3.c
751
m3_rchan_init(kobj_t kobj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir)
sys/dev/sound/pci/maestro3.c
817
ch->channel = c;
sys/dev/sound/pci/neomagic.c
350
nmchan_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir)
sys/dev/sound/pci/neomagic.c
367
ch->channel = c;
sys/dev/sound/pci/solo.c
523
esschan_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir)
sys/dev/sound/pci/solo.c
530
ch->channel = c;
sys/dev/sound/pci/t4dwave.c
500
trpchan_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir)
sys/dev/sound/pci/t4dwave.c
510
ch->channel = c;
sys/dev/sound/pci/t4dwave.c
609
trrchan_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir)
sys/dev/sound/pci/t4dwave.c
618
ch->channel = c;
sys/dev/sound/pci/via8233.c
657
struct pcm_channel *c, int dir)
sys/dev/sound/pci/via8233.c
667
ch->channel = c;
sys/dev/sound/pci/via8233.c
688
struct pcm_channel *c, int dir)
sys/dev/sound/pci/via8233.c
698
ch->channel = c;
sys/dev/sound/pci/via8233.c
725
struct pcm_channel *c, int dir)
sys/dev/sound/pci/via8233.c
735
ch->channel = c;
sys/dev/sound/pci/via82c686.c
243
viachan_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir)
sys/dev/sound/pci/via82c686.c
268
ch->channel = c;
sys/dev/sound/pci/vibes.c
191
svchan_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir)
sys/dev/sound/pci/vibes.c
198
ch->channel = c;
sys/dev/sound/pcm/channel.c
1060
chn_reset(struct pcm_channel *c, uint32_t fmt, uint32_t spd)
sys/dev/sound/pcm/channel.c
1064
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
1065
c->feedcount = 0;
sys/dev/sound/pcm/channel.c
1066
c->flags &= CHN_F_RESET;
sys/dev/sound/pcm/channel.c
1067
c->interrupts = 0;
sys/dev/sound/pcm/channel.c
1068
c->timeout = 1;
sys/dev/sound/pcm/channel.c
1069
c->xruns = 0;
sys/dev/sound/pcm/channel.c
1071
c->flags |= (pcm_getflags(c->dev) & SD_F_BITPERFECT) ?
sys/dev/sound/pcm/channel.c
1074
if ((err = CHANNEL_RESET(c->methods, c->devinfo)))
sys/dev/sound/pcm/channel.c
1078
if ((err = chn_setparam(c, fmt, spd)))
sys/dev/sound/pcm/channel.c
1083
if (fmt != 0 && (err = chn_setformat(c, fmt)))
sys/dev/sound/pcm/channel.c
1085
if (spd != 0 && (err = chn_setspeed(c, spd)))
sys/dev/sound/pcm/channel.c
1088
if ((err = chn_setlatency(c, chn_latency)))
sys/dev/sound/pcm/channel.c
1091
chn_resetbuf(c);
sys/dev/sound/pcm/channel.c
1093
return (CHANNEL_RESETDONE(c->methods, c->devinfo));
sys/dev/sound/pcm/channel.c
1115
chn_mkname(char *buf, size_t len, struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
1122
switch (c->type) {
sys/dev/sound/pcm/channel.c
1140
device_get_unit(c->dev), str, c->unit);
sys/dev/sound/pcm/channel.c
1149
struct pcm_channel *c;
sys/dev/sound/pcm/channel.c
1189
c = malloc(sizeof(*c), M_DEVBUF, M_WAITOK | M_ZERO);
sys/dev/sound/pcm/channel.c
1190
c->methods = kobj_create(cls, M_DEVBUF, M_WAITOK | M_ZERO);
sys/dev/sound/pcm/channel.c
1191
chn_lockinit(c, dir);
sys/dev/sound/pcm/channel.c
1192
CHN_INIT(c, children);
sys/dev/sound/pcm/channel.c
1193
CHN_INIT(c, children.busy);
sys/dev/sound/pcm/channel.c
1194
c->direction = direction;
sys/dev/sound/pcm/channel.c
1195
c->type = dir;
sys/dev/sound/pcm/channel.c
1196
c->unit = alloc_unr(chn_getunr(d, c->type));
sys/dev/sound/pcm/channel.c
1197
c->format = SND_FORMAT(AFMT_S16_LE, 2, 0);
sys/dev/sound/pcm/channel.c
1198
c->speed = 48000;
sys/dev/sound/pcm/channel.c
1199
c->pid = -1;
sys/dev/sound/pcm/channel.c
1200
c->latency = -1;
sys/dev/sound/pcm/channel.c
1201
c->timeout = 1;
sys/dev/sound/pcm/channel.c
1202
strlcpy(c->comm, CHN_COMM_UNUSED, sizeof(c->comm));
sys/dev/sound/pcm/channel.c
1203
c->parentsnddev = d;
sys/dev/sound/pcm/channel.c
1204
c->parentchannel = parent;
sys/dev/sound/pcm/channel.c
1205
c->dev = d->dev;
sys/dev/sound/pcm/channel.c
1206
c->trigger = PCMTRIG_STOP;
sys/dev/sound/pcm/channel.c
1207
strlcpy(c->name, chn_mkname(buf, sizeof(buf), c), sizeof(c->name));
sys/dev/sound/pcm/channel.c
1209
c->matrix = *feeder_matrix_id_map(SND_CHN_MATRIX_1_0);
sys/dev/sound/pcm/channel.c
1210
c->matrix.id = SND_CHN_MATRIX_PCMCHANNEL;
sys/dev/sound/pcm/channel.c
1213
c->volume[SND_VOL_C_MASTER][i] = SND_VOL_0DB_MASTER;
sys/dev/sound/pcm/channel.c
1215
c->volume[SND_VOL_C_MASTER][SND_CHN_T_VOL_0DB] = SND_VOL_0DB_MASTER;
sys/dev/sound/pcm/channel.c
1216
c->volume[SND_VOL_C_PCM][SND_CHN_T_VOL_0DB] = chn_vol_0db_pcm;
sys/dev/sound/pcm/channel.c
1218
CHN_LOCK(c);
sys/dev/sound/pcm/channel.c
1219
chn_vpc_reset(c, SND_VOL_C_PCM, 1);
sys/dev/sound/pcm/channel.c
1220
CHN_UNLOCK(c);
sys/dev/sound/pcm/channel.c
1222
b = sndbuf_create(c, "primary");
sys/dev/sound/pcm/channel.c
1223
bs = sndbuf_create(c, "secondary");
sys/dev/sound/pcm/channel.c
1229
c->bufhard = b;
sys/dev/sound/pcm/channel.c
1230
c->bufsoft = bs;
sys/dev/sound/pcm/channel.c
1231
knlist_init_mtx(&bs->sel.si_note, &c->lock);
sys/dev/sound/pcm/channel.c
1233
c->devinfo = CHANNEL_INIT(c->methods, devinfo, b, c, direction);
sys/dev/sound/pcm/channel.c
1234
if (c->devinfo == NULL) {
sys/dev/sound/pcm/channel.c
1239
if (b->bufsize == 0 && ((c->flags & CHN_F_VIRTUAL) == 0)) {
sys/dev/sound/pcm/channel.c
1245
sndbuf_setfmt(b, c->format);
sys/dev/sound/pcm/channel.c
1246
sndbuf_setspd(b, c->speed);
sys/dev/sound/pcm/channel.c
1247
sndbuf_setfmt(bs, c->format);
sys/dev/sound/pcm/channel.c
1248
sndbuf_setspd(bs, c->speed);
sys/dev/sound/pcm/channel.c
1256
if (c->direction == PCMDIR_PLAY) {
sys/dev/sound/pcm/channel.c
1261
if ((c->flags & CHN_F_VIRTUAL) == 0) {
sys/dev/sound/pcm/channel.c
1262
CHN_LOCK(c);
sys/dev/sound/pcm/channel.c
1263
err = chn_reset(c, c->format, c->speed);
sys/dev/sound/pcm/channel.c
1264
CHN_UNLOCK(c);
sys/dev/sound/pcm/channel.c
1270
CHN_INSERT_SORT_ASCEND(d, c, channels.pcm);
sys/dev/sound/pcm/channel.c
1271
if ((c->flags & CHN_F_VIRTUAL) == 0) {
sys/dev/sound/pcm/channel.c
1272
CHN_INSERT_SORT_ASCEND(d, c, channels.pcm.primary);
sys/dev/sound/pcm/channel.c
1274
*vchanrate = c->bufsoft->spd;
sys/dev/sound/pcm/channel.c
1275
*vchanformat = c->bufsoft->fmt;
sys/dev/sound/pcm/channel.c
1278
return (c);
sys/dev/sound/pcm/channel.c
1281
chn_kill(c);
sys/dev/sound/pcm/channel.c
1288
chn_kill(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
1290
struct snddev_info *d = c->parentsnddev;
sys/dev/sound/pcm/channel.c
1291
struct snd_dbuf *b = c->bufhard;
sys/dev/sound/pcm/channel.c
1292
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
1294
PCM_BUSYASSERT(c->parentsnddev);
sys/dev/sound/pcm/channel.c
1297
CHN_REMOVE(d, c, channels.pcm);
sys/dev/sound/pcm/channel.c
1298
if ((c->flags & CHN_F_VIRTUAL) == 0)
sys/dev/sound/pcm/channel.c
1299
CHN_REMOVE(d, c, channels.pcm.primary);
sys/dev/sound/pcm/channel.c
1301
switch (c->type) {
sys/dev/sound/pcm/channel.c
1319
if (CHN_STARTED(c)) {
sys/dev/sound/pcm/channel.c
132
struct pcm_channel *c;
sys/dev/sound/pcm/channel.c
1320
CHN_LOCK(c);
sys/dev/sound/pcm/channel.c
1321
chn_trigger(c, PCMTRIG_ABORT);
sys/dev/sound/pcm/channel.c
1322
CHN_UNLOCK(c);
sys/dev/sound/pcm/channel.c
1324
free_unr(chn_getunr(d, c->type), c->unit);
sys/dev/sound/pcm/channel.c
1325
feeder_remove(c);
sys/dev/sound/pcm/channel.c
1326
if (c->devinfo)
sys/dev/sound/pcm/channel.c
1327
CHANNEL_FREE(c->methods, c->devinfo);
sys/dev/sound/pcm/channel.c
1335
CHN_LOCK(c);
sys/dev/sound/pcm/channel.c
1336
c->flags |= CHN_F_DEAD;
sys/dev/sound/pcm/channel.c
1337
chn_lockdestroy(c);
sys/dev/sound/pcm/channel.c
1338
kobj_delete(c->methods, M_DEVBUF);
sys/dev/sound/pcm/channel.c
1339
free(c, M_DEVBUF);
sys/dev/sound/pcm/channel.c
1343
chn_shutdown(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
1345
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
1347
chn_wakeup(c);
sys/dev/sound/pcm/channel.c
1348
c->flags |= CHN_F_DEAD;
sys/dev/sound/pcm/channel.c
1353
chn_release(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
1355
PCM_BUSYASSERT(c->parentsnddev);
sys/dev/sound/pcm/channel.c
1356
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
1358
c->flags &= ~CHN_F_BUSY;
sys/dev/sound/pcm/channel.c
1359
c->pid = -1;
sys/dev/sound/pcm/channel.c
1360
strlcpy(c->comm, CHN_COMM_UNUSED, sizeof(c->comm));
sys/dev/sound/pcm/channel.c
1361
CHN_UNLOCK(c);
sys/dev/sound/pcm/channel.c
1367
chn_setvolume_multi(struct pcm_channel *c, int vc, int left, int right,
sys/dev/sound/pcm/channel.c
1376
ret |= chn_setvolume_matrix(c, vc, i, left);
sys/dev/sound/pcm/channel.c
1378
ret |= chn_setvolume_matrix(c, vc, i, right) << 8;
sys/dev/sound/pcm/channel.c
1380
ret |= chn_setvolume_matrix(c, vc, i, center) << 16;
sys/dev/sound/pcm/channel.c
1387
chn_setvolume_matrix(struct pcm_channel *c, int vc, int vt, int val)
sys/dev/sound/pcm/channel.c
1391
KASSERT(c != NULL && vc >= SND_VOL_C_MASTER && vc < SND_VOL_C_MAX &&
sys/dev/sound/pcm/channel.c
1397
__func__, c, vc, vt, val));
sys/dev/sound/pcm/channel.c
1398
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
1405
c->volume[vc][vt] = val;
sys/dev/sound/pcm/channel.c
1414
c->volume[SND_VOL_C_VAL(vc)][vt] =
sys/dev/sound/pcm/channel.c
1415
SND_VOL_CALC_VAL(c->volume, vc, vt);
sys/dev/sound/pcm/channel.c
1420
c->volume[SND_VOL_C_VAL(vc)][i] =
sys/dev/sound/pcm/channel.c
1421
SND_VOL_CALC_VAL(c->volume, vc, i);
sys/dev/sound/pcm/channel.c
1424
c->volume[SND_VOL_C_VAL(vc)][vt] =
sys/dev/sound/pcm/channel.c
1425
SND_VOL_CALC_VAL(c->volume, vc, vt);
sys/dev/sound/pcm/channel.c
1432
chn_getvolume_matrix(struct pcm_channel *c, int vc, int vt)
sys/dev/sound/pcm/channel.c
1434
KASSERT(c != NULL && vc >= SND_VOL_C_MASTER && vc < SND_VOL_C_MAX &&
sys/dev/sound/pcm/channel.c
1438
__func__, c, vc, vt));
sys/dev/sound/pcm/channel.c
1439
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
144
CHN_FOREACH(c, d, channels.pcm) {
sys/dev/sound/pcm/channel.c
1441
return (c->volume[vc][vt]);
sys/dev/sound/pcm/channel.c
1445
chn_setmute_multi(struct pcm_channel *c, int vc, int mute)
sys/dev/sound/pcm/channel.c
145
CHN_LOCK(c);
sys/dev/sound/pcm/channel.c
1453
ret |= chn_setmute_matrix(c, vc, i, mute);
sys/dev/sound/pcm/channel.c
1455
ret |= chn_setmute_matrix(c, vc, i, mute) << 8;
sys/dev/sound/pcm/channel.c
1457
ret |= chn_setmute_matrix(c, vc, i, mute) << 16;
sys/dev/sound/pcm/channel.c
146
chn_setvolume_matrix(c, SND_VOL_C_PCM, SND_CHN_T_VOL_0DB, db);
sys/dev/sound/pcm/channel.c
1463
chn_setmute_matrix(struct pcm_channel *c, int vc, int vt, int mute)
sys/dev/sound/pcm/channel.c
1467
KASSERT(c != NULL && vc >= SND_VOL_C_MASTER && vc < SND_VOL_C_MAX &&
sys/dev/sound/pcm/channel.c
1471
__func__, c, vc, vt, mute));
sys/dev/sound/pcm/channel.c
1473
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
1477
c->muted[vc][vt] = mute;
sys/dev/sound/pcm/channel.c
148
chn_vpc_reset(c, SND_VOL_C_PCM, 1);
sys/dev/sound/pcm/channel.c
1486
c->muted[SND_VOL_C_VAL(vc)][vt] = mute;
sys/dev/sound/pcm/channel.c
149
CHN_UNLOCK(c);
sys/dev/sound/pcm/channel.c
1491
c->muted[SND_VOL_C_VAL(vc)][i] = mute;
sys/dev/sound/pcm/channel.c
1494
c->muted[SND_VOL_C_VAL(vc)][vt] = mute;
sys/dev/sound/pcm/channel.c
1501
chn_getmute_matrix(struct pcm_channel *c, int vc, int vt)
sys/dev/sound/pcm/channel.c
1503
KASSERT(c != NULL && vc >= SND_VOL_C_MASTER && vc < SND_VOL_C_MAX &&
sys/dev/sound/pcm/channel.c
1507
__func__, c, vc, vt));
sys/dev/sound/pcm/channel.c
1508
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
1510
return (c->muted[vc][vt]);
sys/dev/sound/pcm/channel.c
1514
chn_getmatrix(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
1517
KASSERT(c != NULL, ("%s(): NULL channel", __func__));
sys/dev/sound/pcm/channel.c
1518
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
1520
if (!(c->format & AFMT_CONVERTIBLE))
sys/dev/sound/pcm/channel.c
1523
return (&c->matrix);
sys/dev/sound/pcm/channel.c
1527
chn_setmatrix(struct pcm_channel *c, struct pcmchan_matrix *m)
sys/dev/sound/pcm/channel.c
1530
KASSERT(c != NULL && m != NULL,
sys/dev/sound/pcm/channel.c
1532
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
1534
if (!(c->format & AFMT_CONVERTIBLE))
sys/dev/sound/pcm/channel.c
1537
c->matrix = *m;
sys/dev/sound/pcm/channel.c
1538
c->matrix.id = SND_CHN_MATRIX_PCMCHANNEL;
sys/dev/sound/pcm/channel.c
1540
return (chn_setformat(c, SND_FORMAT(c->format, m->channels, m->ext)));
sys/dev/sound/pcm/channel.c
1547
chn_oss_getorder(struct pcm_channel *c, unsigned long long *map)
sys/dev/sound/pcm/channel.c
1550
KASSERT(c != NULL && map != NULL,
sys/dev/sound/pcm/channel.c
1552
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
1554
if (!(c->format & AFMT_CONVERTIBLE))
sys/dev/sound/pcm/channel.c
1557
return (feeder_matrix_oss_get_channel_order(&c->matrix, map));
sys/dev/sound/pcm/channel.c
1561
chn_oss_setorder(struct pcm_channel *c, unsigned long long *map)
sys/dev/sound/pcm/channel.c
1566
KASSERT(c != NULL && map != NULL,
sys/dev/sound/pcm/channel.c
1568
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
1570
if (!(c->format & AFMT_CONVERTIBLE))
sys/dev/sound/pcm/channel.c
1573
m = c->matrix;
sys/dev/sound/pcm/channel.c
1578
return (chn_setmatrix(c, &m));
sys/dev/sound/pcm/channel.c
1587
chn_oss_getmask(struct pcm_channel *c, uint32_t *retmask)
sys/dev/sound/pcm/channel.c
1593
KASSERT(c != NULL && retmask != NULL,
sys/dev/sound/pcm/channel.c
1595
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
1597
caps = chn_getcaps(c);
sys/dev/sound/pcm/channel.c
1607
m = CHANNEL_GETMATRIX(c->methods, c->devinfo, format);
sys/dev/sound/pcm/channel.c
1621
if (!CHN_BITPERFECT(c) && report_soft_matrix)
sys/dev/sound/pcm/channel.c
1629
chn_vpc_reset(struct pcm_channel *c, int vc, int force)
sys/dev/sound/pcm/channel.c
1633
KASSERT(c != NULL && vc >= SND_VOL_C_BEGIN && vc <= SND_VOL_C_END,
sys/dev/sound/pcm/channel.c
1634
("%s(): invalid reset c=%p vc=%d", __func__, c, vc));
sys/dev/sound/pcm/channel.c
1635
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
1641
chn_setvolume_matrix(c, vc, i, c->volume[vc][SND_CHN_T_VOL_0DB]);
sys/dev/sound/pcm/channel.c
1818
chn_resizebuf(struct pcm_channel *c, int latency,
sys/dev/sound/pcm/channel.c
1825
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
1827
if ((c->flags & (CHN_F_MMAP | CHN_F_TRIGGERED)) ||
sys/dev/sound/pcm/channel.c
1828
!(c->direction == PCMDIR_PLAY || c->direction == PCMDIR_REC))
sys/dev/sound/pcm/channel.c
1832
c->latency = -1;
sys/dev/sound/pcm/channel.c
1835
latency = c->latency;
sys/dev/sound/pcm/channel.c
1841
c->latency = latency;
sys/dev/sound/pcm/channel.c
1844
bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
1845
b = c->bufhard;
sys/dev/sound/pcm/channel.c
1852
chn_calclatency(c->direction, latency, bs->align,
sys/dev/sound/pcm/channel.c
1858
c->flags &= ~CHN_F_HAS_SIZE;
sys/dev/sound/pcm/channel.c
1859
if (c->flags & CHN_F_HAS_SIZE) {
sys/dev/sound/pcm/channel.c
1864
c->flags |= CHN_F_HAS_SIZE;
sys/dev/sound/pcm/channel.c
1866
if (c->flags & CHN_F_HAS_SIZE) {
sys/dev/sound/pcm/channel.c
1878
if (c->parentchannel != NULL) {
sys/dev/sound/pcm/channel.c
1879
pb = c->parentchannel->bufsoft;
sys/dev/sound/pcm/channel.c
1880
CHN_UNLOCK(c);
sys/dev/sound/pcm/channel.c
1881
CHN_LOCK(c->parentchannel);
sys/dev/sound/pcm/channel.c
1882
chn_notify(c->parentchannel, CHN_N_BLOCKSIZE);
sys/dev/sound/pcm/channel.c
1883
CHN_UNLOCK(c->parentchannel);
sys/dev/sound/pcm/channel.c
1884
CHN_LOCK(c);
sys/dev/sound/pcm/channel.c
1885
if (c->direction == PCMDIR_PLAY) {
sys/dev/sound/pcm/channel.c
1894
if (c->flags & CHN_F_HAS_SIZE) {
sys/dev/sound/pcm/channel.c
1899
chn_calclatency(c->direction, latency,
sys/dev/sound/pcm/channel.c
1915
CHN_UNLOCK(c);
sys/dev/sound/pcm/channel.c
1917
CHANNEL_SETFRAGMENTS(c->methods, c->devinfo,
sys/dev/sound/pcm/channel.c
1919
b->blksz = CHANNEL_SETBLOCKSIZE(c->methods,
sys/dev/sound/pcm/channel.c
1920
c->devinfo, hblksz);
sys/dev/sound/pcm/channel.c
1921
CHN_LOCK(c);
sys/dev/sound/pcm/channel.c
1923
if (!CHN_EMPTY(c, children)) {
sys/dev/sound/pcm/channel.c
1927
if (c->direction == PCMDIR_PLAY) {
sys/dev/sound/pcm/channel.c
1960
device_printf(c->dev, "%s(): Failed: %d %d\n",
sys/dev/sound/pcm/channel.c
1969
c->timeout = ((u_int64_t)hz * bs->bufsize) /
sys/dev/sound/pcm/channel.c
1971
if (c->parentchannel != NULL)
sys/dev/sound/pcm/channel.c
1972
c->timeout = min(c->timeout, c->parentchannel->timeout);
sys/dev/sound/pcm/channel.c
1973
if (c->timeout < 1)
sys/dev/sound/pcm/channel.c
1974
c->timeout = 1;
sys/dev/sound/pcm/channel.c
1980
c->lw = bs->blksz;
sys/dev/sound/pcm/channel.c
1981
chn_resetbuf(c);
sys/dev/sound/pcm/channel.c
1984
device_printf(c->dev, "%s(): %s (%s) timeout=%u "
sys/dev/sound/pcm/channel.c
1986
__func__, CHN_DIRSTR(c),
sys/dev/sound/pcm/channel.c
1987
(c->flags & CHN_F_VIRTUAL) ? "virtual" : "hardware",
sys/dev/sound/pcm/channel.c
1988
c->timeout,
sys/dev/sound/pcm/channel.c
1998
chn_setlatency(struct pcm_channel *c, int latency)
sys/dev/sound/pcm/channel.c
2000
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
2002
return chn_resizebuf(c, latency, -1, 0);
sys/dev/sound/pcm/channel.c
2006
chn_setblocksize(struct pcm_channel *c, int blkcnt, int blksz)
sys/dev/sound/pcm/channel.c
2008
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
2010
return chn_resizebuf(c, -1, blkcnt, blksz);
sys/dev/sound/pcm/channel.c
2014
chn_setparam(struct pcm_channel *c, uint32_t format, uint32_t speed)
sys/dev/sound/pcm/channel.c
2020
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
2022
if (speed < 1 || format == 0 || CHN_STARTED(c))
sys/dev/sound/pcm/channel.c
2025
c->format = format;
sys/dev/sound/pcm/channel.c
2026
c->speed = speed;
sys/dev/sound/pcm/channel.c
2028
caps = chn_getcaps(c);
sys/dev/sound/pcm/channel.c
2033
sndbuf_setspd(c->bufhard, CHANNEL_SETSPEED(c->methods, c->devinfo,
sys/dev/sound/pcm/channel.c
2035
hwspeed = c->bufhard->spd;
sys/dev/sound/pcm/channel.c
2040
c->speed = hwspeed;
sys/dev/sound/pcm/channel.c
2042
ret = feeder_chain(c);
sys/dev/sound/pcm/channel.c
2045
ret = CHANNEL_SETFORMAT(c->methods, c->devinfo, c->bufhard->fmt);
sys/dev/sound/pcm/channel.c
2048
ret = chn_resizebuf(c, -2, 0, 0);
sys/dev/sound/pcm/channel.c
2054
chn_setspeed(struct pcm_channel *c, uint32_t speed)
sys/dev/sound/pcm/channel.c
2059
oldformat = c->format;
sys/dev/sound/pcm/channel.c
2060
oldspeed = c->speed;
sys/dev/sound/pcm/channel.c
2062
if (c->speed == speed)
sys/dev/sound/pcm/channel.c
2065
ret = chn_setparam(c, c->format, speed);
sys/dev/sound/pcm/channel.c
2068
device_printf(c->dev,
sys/dev/sound/pcm/channel.c
2072
chn_setparam(c, oldformat, oldspeed);
sys/dev/sound/pcm/channel.c
2079
chn_setformat(struct pcm_channel *c, uint32_t format)
sys/dev/sound/pcm/channel.c
2092
device_printf(c->dev, "%s(): Unsupported format: "
sys/dev/sound/pcm/channel.c
2104
oldformat = c->format;
sys/dev/sound/pcm/channel.c
2105
oldspeed = c->speed;
sys/dev/sound/pcm/channel.c
2107
if (c->format == format)
sys/dev/sound/pcm/channel.c
2110
ret = chn_setparam(c, format, c->speed);
sys/dev/sound/pcm/channel.c
2113
device_printf(c->dev,
sys/dev/sound/pcm/channel.c
2117
chn_setparam(c, oldformat, oldspeed);
sys/dev/sound/pcm/channel.c
2124
chn_syncstate(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
2129
d = (c != NULL) ? c->parentsnddev : NULL;
sys/dev/sound/pcm/channel.c
2136
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
2138
if (c->feederflags & (1 << FEEDER_VOLUME)) {
sys/dev/sound/pcm/channel.c
2142
if (c->direction == PCMDIR_PLAY &&
sys/dev/sound/pcm/channel.c
2158
device_printf(c->dev,
sys/dev/sound/pcm/channel.c
2165
device_printf(c->dev,
sys/dev/sound/pcm/channel.c
2175
chn_setvolume_multi(c, SND_VOL_C_MASTER, left, right, center);
sys/dev/sound/pcm/channel.c
2178
if (c->feederflags & (1 << FEEDER_EQ)) {
sys/dev/sound/pcm/channel.c
2198
f = feeder_find(c, FEEDER_EQ);
sys/dev/sound/pcm/channel.c
2201
device_printf(c->dev,
sys/dev/sound/pcm/channel.c
2205
device_printf(c->dev,
sys/dev/sound/pcm/channel.c
2209
device_printf(c->dev,
sys/dev/sound/pcm/channel.c
2219
device_printf(c->dev,
sys/dev/sound/pcm/channel.c
2226
chn_trigger(struct pcm_channel *c, int go)
sys/dev/sound/pcm/channel.c
2228
struct snddev_info *d = c->parentsnddev;
sys/dev/sound/pcm/channel.c
2231
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
2233
return (CHANNEL_TRIGGER(c->methods, c->devinfo, go));
sys/dev/sound/pcm/channel.c
2235
if (go == c->trigger)
sys/dev/sound/pcm/channel.c
2239
device_printf(c->dev, "%s() %s: calling go=0x%08x , "
sys/dev/sound/pcm/channel.c
2240
"prev=0x%08x\n", __func__, c->name, go, c->trigger);
sys/dev/sound/pcm/channel.c
2243
c->trigger = go;
sys/dev/sound/pcm/channel.c
2244
ret = CHANNEL_TRIGGER(c->methods, c->devinfo, go);
sys/dev/sound/pcm/channel.c
2248
CHN_UNLOCK(c);
sys/dev/sound/pcm/channel.c
2250
CHN_LOCK(c);
sys/dev/sound/pcm/channel.c
2256
if (go != c->trigger) {
sys/dev/sound/pcm/channel.c
2267
CHN_INSERT_HEAD_SAFE(d, c, channels.pcm.busy);
sys/dev/sound/pcm/channel.c
2269
chn_syncstate(c);
sys/dev/sound/pcm/channel.c
227
chn_lockinit(struct pcm_channel *c, int dir)
sys/dev/sound/pcm/channel.c
2273
CHN_REMOVE(d, c, channels.pcm.busy);
sys/dev/sound/pcm/channel.c
2296
chn_getptr(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
2300
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
2301
hwptr = (CHN_STARTED(c)) ? CHANNEL_GETPTR(c->methods, c->devinfo) : 0;
sys/dev/sound/pcm/channel.c
2302
return (hwptr - (hwptr % c->bufhard->align));
sys/dev/sound/pcm/channel.c
2306
chn_getcaps(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
2308
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
2309
return CHANNEL_GETCAPS(c->methods, c->devinfo);
sys/dev/sound/pcm/channel.c
231
mtx_init(&c->lock, c->name, "pcm play channel", MTX_DEF);
sys/dev/sound/pcm/channel.c
2313
chn_getformats(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
2318
fmtlist = chn_getcaps(c)->fmtlist;
sys/dev/sound/pcm/channel.c
232
cv_init(&c->intr_cv, "pcmwr");
sys/dev/sound/pcm/channel.c
2324
if (!CHN_BITPERFECT(c) && report_soft_formats)
sys/dev/sound/pcm/channel.c
2331
chn_notify(struct pcm_channel *c, u_int32_t flags)
sys/dev/sound/pcm/channel.c
2339
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
2341
if (CHN_EMPTY(c, children))
sys/dev/sound/pcm/channel.c
235
mtx_init(&c->lock, c->name, "pcm virtual play channel",
sys/dev/sound/pcm/channel.c
2350
run = CHN_STARTED(c);
sys/dev/sound/pcm/channel.c
2358
chn_setlatency(c, chn_latency);
sys/dev/sound/pcm/channel.c
2362
if (!(c->flags & CHN_F_VCHAN_DYNAMIC)) {
sys/dev/sound/pcm/channel.c
2363
nrun = !CHN_EMPTY(c, children.busy);
sys/dev/sound/pcm/channel.c
2365
err = chn_start(c, 1);
sys/dev/sound/pcm/channel.c
2367
chn_abort(c);
sys/dev/sound/pcm/channel.c
237
cv_init(&c->intr_cv, "pcmwrv");
sys/dev/sound/pcm/channel.c
2372
if (c->direction == PCMDIR_PLAY) {
sys/dev/sound/pcm/channel.c
2373
vchanformat = &c->parentsnddev->pvchanformat;
sys/dev/sound/pcm/channel.c
2374
vchanrate = &c->parentsnddev->pvchanrate;
sys/dev/sound/pcm/channel.c
2376
vchanformat = &c->parentsnddev->rvchanformat;
sys/dev/sound/pcm/channel.c
2377
vchanrate = &c->parentsnddev->rvchanrate;
sys/dev/sound/pcm/channel.c
2380
if (!(c->flags & CHN_F_VCHAN_ADAPTIVE)) {
sys/dev/sound/pcm/channel.c
2390
caps = chn_getcaps(c);
sys/dev/sound/pcm/channel.c
2394
CHN_FOREACH(ch, c, children.busy) {
sys/dev/sound/pcm/channel.c
240
mtx_init(&c->lock, c->name, "pcm record channel", MTX_DEF);
sys/dev/sound/pcm/channel.c
2406
if (c->flags & CHN_F_VCHAN_ADAPTIVE) {
sys/dev/sound/pcm/channel.c
241
cv_init(&c->intr_cv, "pcmrd");
sys/dev/sound/pcm/channel.c
2419
if (!(c->flags & CHN_F_VCHAN_ADAPTIVE) ||
sys/dev/sound/pcm/channel.c
244
mtx_init(&c->lock, c->name, "pcm virtual record channel",
sys/dev/sound/pcm/channel.c
2445
bestformat = c->format;
sys/dev/sound/pcm/channel.c
2447
bestspeed = c->speed;
sys/dev/sound/pcm/channel.c
2449
if (bestformat != c->format || bestspeed != c->speed)
sys/dev/sound/pcm/channel.c
2452
c->flags &= ~(CHN_F_PASSTHROUGH | CHN_F_EXCLUSIVE);
sys/dev/sound/pcm/channel.c
2453
c->flags |= vpflags;
sys/dev/sound/pcm/channel.c
2457
bestspeed = CHANNEL_SETSPEED(c->methods,
sys/dev/sound/pcm/channel.c
2458
c->devinfo, bestspeed);
sys/dev/sound/pcm/channel.c
2459
err = chn_reset(c, bestformat, bestspeed);
sys/dev/sound/pcm/channel.c
246
cv_init(&c->intr_cv, "pcmrdv");
sys/dev/sound/pcm/channel.c
2463
CHN_FOREACH(ch, c, children.busy) {
sys/dev/sound/pcm/channel.c
2469
c->flags |= CHN_F_DIRTY;
sys/dev/sound/pcm/channel.c
2471
err = chn_start(c, 1);
sys/dev/sound/pcm/channel.c
2476
chn_abort(c);
sys/dev/sound/pcm/channel.c
2477
bestspeed = CHANNEL_SETSPEED(c->methods, c->devinfo,
sys/dev/sound/pcm/channel.c
2479
err = chn_reset(c, bestformat, bestspeed);
sys/dev/sound/pcm/channel.c
2481
CHN_FOREACH(ch, c, children.busy) {
sys/dev/sound/pcm/channel.c
2487
c->flags |= CHN_F_DIRTY;
sys/dev/sound/pcm/channel.c
2488
err = chn_start(c, 1);
sys/dev/sound/pcm/channel.c
2499
c->flags &= ~(CHN_F_PASSTHROUGH | CHN_F_EXCLUSIVE);
sys/dev/sound/pcm/channel.c
2502
chn_abort(c);
sys/dev/sound/pcm/channel.c
2503
if (c->format != bestformat || c->speed != bestspeed)
sys/dev/sound/pcm/channel.c
2504
chn_reset(c, bestformat, bestspeed);
sys/dev/sound/pcm/channel.c
2527
chn_getrates(struct pcm_channel *c, int **rates)
sys/dev/sound/pcm/channel.c
253
cv_init(&c->cv, "pcmchn");
sys/dev/sound/pcm/channel.c
2530
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
2531
return CHANNEL_GETRATES(c->methods, c->devinfo, rates);
sys/dev/sound/pcm/channel.c
2552
chn_syncdestroy(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
2562
if (c->sm != NULL) {
sys/dev/sound/pcm/channel.c
2563
sm = c->sm;
sys/dev/sound/pcm/channel.c
2565
c->sm = NULL;
sys/dev/sound/pcm/channel.c
257
chn_lockdestroy(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
2584
chn_getpeaks(struct pcm_channel *c, int *lpeak, int *rpeak)
sys/dev/sound/pcm/channel.c
2586
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
2587
return CHANNEL_GETPEAKS(c->methods, c->devinfo, lpeak, rpeak);
sys/dev/sound/pcm/channel.c
259
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
261
CHN_BROADCAST(&c->cv);
sys/dev/sound/pcm/channel.c
262
CHN_BROADCAST(&c->intr_cv);
sys/dev/sound/pcm/channel.c
264
cv_destroy(&c->cv);
sys/dev/sound/pcm/channel.c
265
cv_destroy(&c->intr_cv);
sys/dev/sound/pcm/channel.c
267
mtx_destroy(&c->lock);
sys/dev/sound/pcm/channel.c
277
chn_polltrigger(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
279
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
282
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
284
if (c->flags & CHN_F_MMAP) {
sys/dev/sound/pcm/channel.c
285
if (bs->prev_total < c->lw)
sys/dev/sound/pcm/channel.c
286
delta = c->lw;
sys/dev/sound/pcm/channel.c
290
if (c->direction == PCMDIR_PLAY)
sys/dev/sound/pcm/channel.c
296
return ((delta < c->lw) ? 0 : 1);
sys/dev/sound/pcm/channel.c
300
chn_pollreset(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
303
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
304
c->bufsoft->prev_total = c->bufsoft->total;
sys/dev/sound/pcm/channel.c
308
chn_wakeup(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
313
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
315
bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
317
if (CHN_EMPTY(c, children.busy)) {
sys/dev/sound/pcm/channel.c
319
if (SEL_WAITING(&bs->sel) && chn_polltrigger(c))
sys/dev/sound/pcm/channel.c
321
CHN_BROADCAST(&c->intr_cv);
sys/dev/sound/pcm/channel.c
323
CHN_FOREACH(ch, c, children.busy) {
sys/dev/sound/pcm/channel.c
332
chn_sleep(struct pcm_channel *c, int timeout)
sys/dev/sound/pcm/channel.c
336
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
338
if (c->flags & CHN_F_DEAD)
sys/dev/sound/pcm/channel.c
341
c->sleeping++;
sys/dev/sound/pcm/channel.c
342
ret = cv_timedwait_sig(&c->intr_cv, &c->lock, timeout);
sys/dev/sound/pcm/channel.c
343
c->sleeping--;
sys/dev/sound/pcm/channel.c
345
return ((c->flags & CHN_F_DEAD) ? EINVAL : ret);
sys/dev/sound/pcm/channel.c
354
chn_dmaupdate(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
356
struct snd_dbuf *b = c->bufhard;
sys/dev/sound/pcm/channel.c
360
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
363
hwptr = chn_getptr(c);
sys/dev/sound/pcm/channel.c
367
if (c->direction == PCMDIR_PLAY) {
sys/dev/sound/pcm/channel.c
378
if (snd_verbose > 3 && CHN_STARTED(c) && delta == 0) {
sys/dev/sound/pcm/channel.c
379
device_printf(c->dev, "WARNING: %s DMA completion "
sys/dev/sound/pcm/channel.c
382
CHN_DIRSTR(c), hwptr, old, delta, amt,
sys/dev/sound/pcm/channel.c
390
chn_wrfeed(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
392
struct snd_dbuf *b = c->bufhard;
sys/dev/sound/pcm/channel.c
393
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
396
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
398
if ((c->flags & CHN_F_MMAP) && !(c->flags & CHN_F_CLOSING))
sys/dev/sound/pcm/channel.c
406
sndbuf_feed(bs, b, c, c->feeder, amt);
sys/dev/sound/pcm/channel.c
412
c->xruns++;
sys/dev/sound/pcm/channel.c
415
chn_wakeup(c);
sys/dev/sound/pcm/channel.c
419
chn_wrintr(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
422
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
424
chn_dmaupdate(c);
sys/dev/sound/pcm/channel.c
426
chn_wrfeed(c);
sys/dev/sound/pcm/channel.c
428
chn_trigger(c, PCMTRIG_EMLDMAWR);
sys/dev/sound/pcm/channel.c
439
chn_write(struct pcm_channel *c, struct uio *buf)
sys/dev/sound/pcm/channel.c
441
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
445
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
457
CHN_UNLOCK(c);
sys/dev/sound/pcm/channel.c
459
CHN_LOCK(c);
sys/dev/sound/pcm/channel.c
462
if (CHN_STOPPED(c) && !(c->flags & CHN_F_NOTRIGGER)) {
sys/dev/sound/pcm/channel.c
463
ret = chn_start(c, 0);
sys/dev/sound/pcm/channel.c
465
c->flags |= CHN_F_DEAD;
sys/dev/sound/pcm/channel.c
467
} else if (c->flags & (CHN_F_NBIO | CHN_F_NOTRIGGER)) {
sys/dev/sound/pcm/channel.c
480
ret = chn_sleep(c, timeout);
sys/dev/sound/pcm/channel.c
482
c->flags |= CHN_F_ABORTING;
sys/dev/sound/pcm/channel.c
493
chn_rdfeed(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
495
struct snd_dbuf *b = c->bufhard;
sys/dev/sound/pcm/channel.c
496
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
499
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
501
if (c->flags & CHN_F_MMAP)
sys/dev/sound/pcm/channel.c
506
sndbuf_feed(b, bs, c, c->feeder, amt);
sys/dev/sound/pcm/channel.c
510
c->xruns++;
sys/dev/sound/pcm/channel.c
515
chn_wakeup(c);
sys/dev/sound/pcm/channel.c
520
chn_rdintr(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
523
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
525
chn_trigger(c, PCMTRIG_EMLDMARD);
sys/dev/sound/pcm/channel.c
527
chn_dmaupdate(c);
sys/dev/sound/pcm/channel.c
529
chn_rdfeed(c);
sys/dev/sound/pcm/channel.c
540
chn_read(struct pcm_channel *c, struct uio *buf)
sys/dev/sound/pcm/channel.c
542
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
546
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
548
if (CHN_STOPPED(c) && !(c->flags & CHN_F_NOTRIGGER)) {
sys/dev/sound/pcm/channel.c
549
ret = chn_start(c, 0);
sys/dev/sound/pcm/channel.c
551
c->flags |= CHN_F_DEAD;
sys/dev/sound/pcm/channel.c
566
CHN_UNLOCK(c);
sys/dev/sound/pcm/channel.c
568
CHN_LOCK(c);
sys/dev/sound/pcm/channel.c
571
} else if (c->flags & (CHN_F_NBIO | CHN_F_NOTRIGGER))
sys/dev/sound/pcm/channel.c
574
ret = chn_sleep(c, timeout);
sys/dev/sound/pcm/channel.c
576
c->flags |= CHN_F_ABORTING;
sys/dev/sound/pcm/channel.c
584
chn_intr(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
586
CHN_LOCK(c);
sys/dev/sound/pcm/channel.c
587
c->interrupts++;
sys/dev/sound/pcm/channel.c
588
if (c->direction == PCMDIR_PLAY)
sys/dev/sound/pcm/channel.c
589
chn_wrintr(c);
sys/dev/sound/pcm/channel.c
591
chn_rdintr(c);
sys/dev/sound/pcm/channel.c
592
CHN_UNLOCK(c);
sys/dev/sound/pcm/channel.c
596
chn_start(struct pcm_channel *c, int force)
sys/dev/sound/pcm/channel.c
599
struct snd_dbuf *b = c->bufhard;
sys/dev/sound/pcm/channel.c
600
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
603
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
605
if (CHN_STARTED(c) || ((c->flags & CHN_F_NOTRIGGER) && !force))
sys/dev/sound/pcm/channel.c
614
if (c->direction == PCMDIR_REC) {
sys/dev/sound/pcm/channel.c
624
pb = CHN_BUF_PARENT(c, b);
sys/dev/sound/pcm/channel.c
629
if (snd_verbose > 3 && CHN_EMPTY(c, children))
sys/dev/sound/pcm/channel.c
630
device_printf(c->dev, "%s(): %s (%s) threshold "
sys/dev/sound/pcm/channel.c
631
"i=%d j=%d\n", __func__, CHN_DIRSTR(c),
sys/dev/sound/pcm/channel.c
632
(c->flags & CHN_F_VIRTUAL) ? "virtual" :
sys/dev/sound/pcm/channel.c
637
c->flags |= CHN_F_TRIGGERED;
sys/dev/sound/pcm/channel.c
639
if (c->flags & CHN_F_CLOSING)
sys/dev/sound/pcm/channel.c
640
c->feedcount = 2;
sys/dev/sound/pcm/channel.c
642
c->feedcount = 0;
sys/dev/sound/pcm/channel.c
643
c->interrupts = 0;
sys/dev/sound/pcm/channel.c
644
c->xruns = 0;
sys/dev/sound/pcm/channel.c
646
if (c->parentchannel == NULL) {
sys/dev/sound/pcm/channel.c
647
if (c->direction == PCMDIR_PLAY)
sys/dev/sound/pcm/channel.c
651
device_printf(c->dev,
sys/dev/sound/pcm/channel.c
656
(c->flags & CHN_F_HAS_VCHAN) ?
sys/dev/sound/pcm/channel.c
657
"VCHAN PARENT" : "HW", CHN_DIRSTR(c),
sys/dev/sound/pcm/channel.c
658
(c->flags & CHN_F_CLOSING) ? "closing" :
sys/dev/sound/pcm/channel.c
661
force, i, j, c->timeout,
sys/dev/sound/pcm/channel.c
665
err = chn_trigger(c, PCMTRIG_START);
sys/dev/sound/pcm/channel.c
672
chn_resetbuf(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
674
struct snd_dbuf *b = c->bufhard;
sys/dev/sound/pcm/channel.c
675
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
677
c->blocks = 0;
sys/dev/sound/pcm/channel.c
688
chn_sync(struct pcm_channel *c, int threshold)
sys/dev/sound/pcm/channel.c
694
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
696
if (c->direction != PCMDIR_PLAY)
sys/dev/sound/pcm/channel.c
699
bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
701
if ((c->flags & (CHN_F_DEAD | CHN_F_ABORTING)) ||
sys/dev/sound/pcm/channel.c
706
if (CHN_STOPPED(c)) {
sys/dev/sound/pcm/channel.c
708
ret = chn_start(c, 1);
sys/dev/sound/pcm/channel.c
715
b = CHN_BUF_PARENT(c, c->bufhard);
sys/dev/sound/pcm/channel.c
746
device_printf(c->dev,
sys/dev/sound/pcm/channel.c
760
device_printf(c->dev, "%s(): [begin] timeout=%d count=%d "
sys/dev/sound/pcm/channel.c
761
"minflush=%d resid=%d\n", __func__, c->timeout, count,
sys/dev/sound/pcm/channel.c
764
cflag = c->flags & CHN_F_CLOSING;
sys/dev/sound/pcm/channel.c
765
c->flags |= CHN_F_CLOSING;
sys/dev/sound/pcm/channel.c
767
ret = chn_sleep(c, c->timeout);
sys/dev/sound/pcm/channel.c
769
c->flags |= CHN_F_ABORTING;
sys/dev/sound/pcm/channel.c
776
device_printf(c->dev,
sys/dev/sound/pcm/channel.c
780
__func__, c->timeout, count,
sys/dev/sound/pcm/channel.c
785
device_printf(c->dev,
sys/dev/sound/pcm/channel.c
789
__func__, c->timeout, count,
sys/dev/sound/pcm/channel.c
804
c->flags &= ~CHN_F_CLOSING;
sys/dev/sound/pcm/channel.c
805
c->flags |= cflag;
sys/dev/sound/pcm/channel.c
808
device_printf(c->dev,
sys/dev/sound/pcm/channel.c
811
__func__, c->timeout, count, hcount, resid, residp,
sys/dev/sound/pcm/channel.c
819
chn_poll(struct pcm_channel *c, int ev, struct thread *td)
sys/dev/sound/pcm/channel.c
821
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
824
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
826
if (!(c->flags & (CHN_F_MMAP | CHN_F_TRIGGERED))) {
sys/dev/sound/pcm/channel.c
827
ret = chn_start(c, 1);
sys/dev/sound/pcm/channel.c
833
if (chn_polltrigger(c)) {
sys/dev/sound/pcm/channel.c
834
chn_pollreset(c);
sys/dev/sound/pcm/channel.c
849
chn_abort(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
852
struct snd_dbuf *b = c->bufhard;
sys/dev/sound/pcm/channel.c
853
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
855
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
856
if (CHN_STOPPED(c))
sys/dev/sound/pcm/channel.c
858
c->flags |= CHN_F_ABORTING;
sys/dev/sound/pcm/channel.c
860
c->flags &= ~CHN_F_TRIGGERED;
sys/dev/sound/pcm/channel.c
862
chn_trigger(c, PCMTRIG_ABORT);
sys/dev/sound/pcm/channel.c
864
if (!(c->flags & CHN_F_VIRTUAL))
sys/dev/sound/pcm/channel.c
865
chn_dmaupdate(c);
sys/dev/sound/pcm/channel.c
868
c->flags &= ~CHN_F_ABORTING;
sys/dev/sound/pcm/channel.c
884
chn_flush(struct pcm_channel *c)
sys/dev/sound/pcm/channel.c
886
struct snd_dbuf *b = c->bufhard;
sys/dev/sound/pcm/channel.c
888
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/channel.c
889
KASSERT(c->direction == PCMDIR_PLAY, ("chn_flush on bad channel"));
sys/dev/sound/pcm/channel.c
890
DEB(printf("chn_flush: c->flags 0x%08x\n", c->flags));
sys/dev/sound/pcm/channel.c
892
c->flags |= CHN_F_CLOSING;
sys/dev/sound/pcm/channel.c
893
chn_sync(c, 0);
sys/dev/sound/pcm/channel.c
894
c->flags &= ~CHN_F_TRIGGERED;
sys/dev/sound/pcm/channel.c
896
chn_trigger(c, PCMTRIG_ABORT);
sys/dev/sound/pcm/channel.c
899
c->flags &= ~CHN_F_CLOSING;
sys/dev/sound/pcm/channel.h
258
int chn_write(struct pcm_channel *c, struct uio *buf);
sys/dev/sound/pcm/channel.h
259
int chn_read(struct pcm_channel *c, struct uio *buf);
sys/dev/sound/pcm/channel.h
260
u_int32_t chn_start(struct pcm_channel *c, int force);
sys/dev/sound/pcm/channel.h
261
int chn_sync(struct pcm_channel *c, int threshold);
sys/dev/sound/pcm/channel.h
262
int chn_flush(struct pcm_channel *c);
sys/dev/sound/pcm/channel.h
263
int chn_polltrigger(struct pcm_channel *c);
sys/dev/sound/pcm/channel.h
264
int chn_poll(struct pcm_channel *c, int ev, struct thread *td);
sys/dev/sound/pcm/channel.h
266
char *chn_mkname(char *buf, size_t len, struct pcm_channel *c);
sys/dev/sound/pcm/channel.h
269
void chn_kill(struct pcm_channel *c);
sys/dev/sound/pcm/channel.h
270
void chn_shutdown(struct pcm_channel *c);
sys/dev/sound/pcm/channel.h
271
int chn_release(struct pcm_channel *c);
sys/dev/sound/pcm/channel.h
272
int chn_reset(struct pcm_channel *c, u_int32_t fmt, u_int32_t spd);
sys/dev/sound/pcm/channel.h
273
int chn_setvolume_multi(struct pcm_channel *c, int vc, int left, int right,
sys/dev/sound/pcm/channel.h
275
int chn_setvolume_matrix(struct pcm_channel *c, int vc, int vt, int val);
sys/dev/sound/pcm/channel.h
276
int chn_getvolume_matrix(struct pcm_channel *c, int vc, int vt);
sys/dev/sound/pcm/channel.h
277
int chn_setmute_multi(struct pcm_channel *c, int vc, int mute);
sys/dev/sound/pcm/channel.h
278
int chn_setmute_matrix(struct pcm_channel *c, int vc, int vt, int mute);
sys/dev/sound/pcm/channel.h
279
int chn_getmute_matrix(struct pcm_channel *c, int vc, int vt);
sys/dev/sound/pcm/channel.h
280
void chn_vpc_reset(struct pcm_channel *c, int vc, int force);
sys/dev/sound/pcm/channel.h
281
int chn_setparam(struct pcm_channel *c, uint32_t format, uint32_t speed);
sys/dev/sound/pcm/channel.h
282
int chn_setspeed(struct pcm_channel *c, uint32_t speed);
sys/dev/sound/pcm/channel.h
283
int chn_setformat(struct pcm_channel *c, uint32_t format);
sys/dev/sound/pcm/channel.h
284
int chn_setblocksize(struct pcm_channel *c, int blkcnt, int blksz);
sys/dev/sound/pcm/channel.h
285
int chn_setlatency(struct pcm_channel *c, int latency);
sys/dev/sound/pcm/channel.h
286
void chn_syncstate(struct pcm_channel *c);
sys/dev/sound/pcm/channel.h
287
int chn_trigger(struct pcm_channel *c, int go);
sys/dev/sound/pcm/channel.h
288
int chn_getptr(struct pcm_channel *c);
sys/dev/sound/pcm/channel.h
289
struct pcmchan_caps *chn_getcaps(struct pcm_channel *c);
sys/dev/sound/pcm/channel.h
290
u_int32_t chn_getformats(struct pcm_channel *c);
sys/dev/sound/pcm/channel.h
299
void chn_resetbuf(struct pcm_channel *c);
sys/dev/sound/pcm/channel.h
300
void chn_intr(struct pcm_channel *c);
sys/dev/sound/pcm/channel.h
301
int chn_abort(struct pcm_channel *c);
sys/dev/sound/pcm/channel.h
303
int chn_notify(struct pcm_channel *c, u_int32_t flags);
sys/dev/sound/pcm/channel.h
305
int chn_getrates(struct pcm_channel *c, int **rates);
sys/dev/sound/pcm/channel.h
306
int chn_syncdestroy(struct pcm_channel *c);
sys/dev/sound/pcm/channel.h
309
int chn_getpeaks(struct pcm_channel *c, int *lpeak, int *rpeak);
sys/dev/sound/pcm/channel.h
312
#define CHN_LOCKOWNED(c) mtx_owned(&(c)->lock)
sys/dev/sound/pcm/channel.h
313
#define CHN_LOCK(c) mtx_lock(&(c)->lock)
sys/dev/sound/pcm/channel.h
314
#define CHN_UNLOCK(c) mtx_unlock(&(c)->lock)
sys/dev/sound/pcm/channel.h
315
#define CHN_TRYLOCK(c) mtx_trylock(&(c)->lock)
sys/dev/sound/pcm/channel.h
316
#define CHN_LOCKASSERT(c) mtx_assert(&(c)->lock, MA_OWNED)
sys/dev/sound/pcm/channel.h
317
#define CHN_UNLOCKASSERT(c) mtx_assert(&(c)->lock, MA_NOTOWNED)
sys/dev/sound/pcm/channel.h
422
#define CHN_STARTED(c) ((c)->flags & CHN_F_TRIGGERED)
sys/dev/sound/pcm/channel.h
423
#define CHN_STOPPED(c) (!CHN_STARTED(c))
sys/dev/sound/pcm/channel.h
424
#define CHN_DIRSTR(c) (((c)->direction == PCMDIR_PLAY) ? \
sys/dev/sound/pcm/channel.h
426
#define CHN_BITPERFECT(c) ((c)->flags & CHN_F_BITPERFECT)
sys/dev/sound/pcm/channel.h
427
#define CHN_PASSTHROUGH(c) ((c)->flags & CHN_F_PASSTHROUGH)
sys/dev/sound/pcm/dsp.c
171
struct pcm_channel *c;
sys/dev/sound/pcm/dsp.c
190
CHN_FOREACH(c, d, channels.pcm.primary) {
sys/dev/sound/pcm/dsp.c
191
CHN_LOCK(c);
sys/dev/sound/pcm/dsp.c
192
if (c->direction != direction) {
sys/dev/sound/pcm/dsp.c
1922
struct pcm_channel *wrch, *rdch, *c;
sys/dev/sound/pcm/dsp.c
193
CHN_UNLOCK(c);
sys/dev/sound/pcm/dsp.c
1962
c = ((nprot & PROT_WRITE) != 0) ? wrch : rdch;
sys/dev/sound/pcm/dsp.c
1963
if (c == NULL || (c->flags & CHN_F_MMAP_INVALID) ||
sys/dev/sound/pcm/dsp.c
1964
(*offset + size) > c->bufsoft->allocsize ||
sys/dev/sound/pcm/dsp.c
197
if ((c->flags & CHN_F_BUSY) == 0 ||
sys/dev/sound/pcm/dsp.c
1977
*offset = (uintptr_t)sndbuf_getbufofs(c->bufsoft, *offset);
sys/dev/sound/pcm/dsp.c
198
(vdir_enabled && (c->flags & CHN_F_HAS_VCHAN)))
sys/dev/sound/pcm/dsp.c
200
CHN_UNLOCK(c);
sys/dev/sound/pcm/dsp.c
202
if (c == NULL)
sys/dev/sound/pcm/dsp.c
210
if (vdir_enabled && ((c->flags & CHN_F_BUSY) == 0 ||
sys/dev/sound/pcm/dsp.c
211
c->flags & CHN_F_HAS_VCHAN)) {
sys/dev/sound/pcm/dsp.c
212
err = vchan_create(c, ch);
sys/dev/sound/pcm/dsp.c
213
CHN_UNLOCK(c);
sys/dev/sound/pcm/dsp.c
217
} else if ((c->flags & CHN_F_BUSY) == 0) {
sys/dev/sound/pcm/dsp.c
218
*ch = c;
sys/dev/sound/pcm/dsp.c
220
CHN_UNLOCK(c);
sys/dev/sound/pcm/dsp.c
2634
struct pcm_channel *c;
sys/dev/sound/pcm/dsp.c
2696
c = sm->ch;
sys/dev/sound/pcm/dsp.c
2697
c->sm = NULL;
sys/dev/sound/pcm/dsp.c
2698
chn_start(c, 1);
sys/dev/sound/pcm/dsp.c
2699
c->flags &= ~CHN_F_NOTRIGGER;
sys/dev/sound/pcm/dsp.c
2700
CHN_UNLOCK(c);
sys/dev/sound/pcm/feeder.c
105
feeder_add(struct pcm_channel *c, struct feeder_class *fc, struct pcm_feederdesc *desc)
sys/dev/sound/pcm/feeder.c
113
nf->source = c->feeder;
sys/dev/sound/pcm/feeder.c
115
if (c->feeder != NULL)
sys/dev/sound/pcm/feeder.c
116
c->feeder->parent = nf;
sys/dev/sound/pcm/feeder.c
117
c->feeder = nf;
sys/dev/sound/pcm/feeder.c
123
feeder_remove(struct pcm_channel *c)
sys/dev/sound/pcm/feeder.c
127
while (c->feeder != NULL) {
sys/dev/sound/pcm/feeder.c
128
f = c->feeder;
sys/dev/sound/pcm/feeder.c
129
c->feeder = c->feeder->source;
sys/dev/sound/pcm/feeder.c
135
feeder_find(struct pcm_channel *c, u_int32_t type)
sys/dev/sound/pcm/feeder.c
139
f = c->feeder;
sys/dev/sound/pcm/feeder.h
68
int feeder_add(struct pcm_channel *c, struct feeder_class *fc,
sys/dev/sound/pcm/feeder.h
70
void feeder_remove(struct pcm_channel *c);
sys/dev/sound/pcm/feeder.h
71
struct pcm_feeder *feeder_find(struct pcm_channel *c, u_int32_t type);
sys/dev/sound/pcm/feeder_chain.c
134
feeder_build_format(struct pcm_channel *c, struct feeder_chain_desc *cdesc)
sys/dev/sound/pcm/feeder_chain.c
146
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
154
ret = feeder_add(c, fc, desc);
sys/dev/sound/pcm/feeder_chain.c
156
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
161
c->feederflags |= 1 << FEEDER_FORMAT;
sys/dev/sound/pcm/feeder_chain.c
173
feeder_build_formatne(struct pcm_channel *c, struct feeder_chain_desc *cdesc)
sys/dev/sound/pcm/feeder_chain.c
187
ret = feeder_build_format(c, cdesc);
sys/dev/sound/pcm/feeder_chain.c
200
feeder_build_rate(struct pcm_channel *c, struct feeder_chain_desc *cdesc)
sys/dev/sound/pcm/feeder_chain.c
207
ret = feeder_build_formatne(c, cdesc);
sys/dev/sound/pcm/feeder_chain.c
217
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
225
ret = feeder_add(c, fc, desc);
sys/dev/sound/pcm/feeder_chain.c
227
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
232
f = c->feeder;
sys/dev/sound/pcm/feeder_chain.c
245
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
253
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
260
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
265
c->feederflags |= 1 << FEEDER_RATE;
sys/dev/sound/pcm/feeder_chain.c
276
feeder_build_matrix(struct pcm_channel *c, struct feeder_chain_desc *cdesc)
sys/dev/sound/pcm/feeder_chain.c
283
ret = feeder_build_formatne(c, cdesc);
sys/dev/sound/pcm/feeder_chain.c
293
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
302
ret = feeder_add(c, fc, desc);
sys/dev/sound/pcm/feeder_chain.c
304
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
309
f = c->feeder;
sys/dev/sound/pcm/feeder_chain.c
313
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
318
c->feederflags |= 1 << FEEDER_MATRIX;
sys/dev/sound/pcm/feeder_chain.c
331
feeder_build_volume(struct pcm_channel *c, struct feeder_chain_desc *cdesc)
sys/dev/sound/pcm/feeder_chain.c
338
ret = feeder_build_formatne(c, cdesc);
sys/dev/sound/pcm/feeder_chain.c
348
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
356
ret = feeder_add(c, fc, desc);
sys/dev/sound/pcm/feeder_chain.c
358
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
363
f = c->feeder;
sys/dev/sound/pcm/feeder_chain.c
373
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
381
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
386
c->feederflags |= 1 << FEEDER_VOLUME;
sys/dev/sound/pcm/feeder_chain.c
397
feeder_build_eq(struct pcm_channel *c, struct feeder_chain_desc *cdesc)
sys/dev/sound/pcm/feeder_chain.c
404
ret = feeder_build_formatne(c, cdesc);
sys/dev/sound/pcm/feeder_chain.c
414
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
422
ret = feeder_add(c, fc, desc);
sys/dev/sound/pcm/feeder_chain.c
424
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
429
f = c->feeder;
sys/dev/sound/pcm/feeder_chain.c
433
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
438
c->feederflags |= 1 << FEEDER_EQ;
sys/dev/sound/pcm/feeder_chain.c
449
feeder_build_root(struct pcm_channel *c, struct feeder_chain_desc *cdesc)
sys/dev/sound/pcm/feeder_chain.c
456
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
461
ret = feeder_add(c, fc, NULL);
sys/dev/sound/pcm/feeder_chain.c
463
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
468
c->feederflags |= 1 << FEEDER_ROOT;
sys/dev/sound/pcm/feeder_chain.c
470
c->feeder->desc.in = cdesc->current.afmt;
sys/dev/sound/pcm/feeder_chain.c
471
c->feeder->desc.out = cdesc->current.afmt;
sys/dev/sound/pcm/feeder_chain.c
480
feeder_build_mixer(struct pcm_channel *c, struct feeder_chain_desc *cdesc)
sys/dev/sound/pcm/feeder_chain.c
492
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
500
ret = feeder_add(c, fc, desc);
sys/dev/sound/pcm/feeder_chain.c
502
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
507
c->feederflags |= 1 << FEEDER_MIXER;
sys/dev/sound/pcm/feeder_chain.c
513
#define FEEDER_BW(c, t) ((c)->t.matrix->channels * (c)->t.rate)
sys/dev/sound/pcm/feeder_chain.c
515
#define FEEDRATE_UP(c) ((c)->target.rate > (c)->current.rate)
sys/dev/sound/pcm/feeder_chain.c
516
#define FEEDRATE_DOWN(c) ((c)->target.rate < (c)->current.rate)
sys/dev/sound/pcm/feeder_chain.c
517
#define FEEDRATE_REQUIRED(c) (FEEDRATE_UP(c) || FEEDRATE_DOWN(c))
sys/dev/sound/pcm/feeder_chain.c
519
#define FEEDMATRIX_UP(c) ((c)->target.matrix->channels > \
sys/dev/sound/pcm/feeder_chain.c
520
(c)->current.matrix->channels)
sys/dev/sound/pcm/feeder_chain.c
521
#define FEEDMATRIX_DOWN(c) ((c)->target.matrix->channels < \
sys/dev/sound/pcm/feeder_chain.c
522
(c)->current.matrix->channels)
sys/dev/sound/pcm/feeder_chain.c
523
#define FEEDMATRIX_REQUIRED(c) (FEEDMATRIX_UP(c) || \
sys/dev/sound/pcm/feeder_chain.c
524
FEEDMATRIX_DOWN(c) || (c)->use_matrix != 0)
sys/dev/sound/pcm/feeder_chain.c
526
#define FEEDFORMAT_REQUIRED(c) (AFMT_ENCODING((c)->current.afmt) != \
sys/dev/sound/pcm/feeder_chain.c
527
AFMT_ENCODING((c)->target.afmt))
sys/dev/sound/pcm/feeder_chain.c
529
#define FEEDVOLUME_REQUIRED(c) ((c)->use_volume != 0)
sys/dev/sound/pcm/feeder_chain.c
531
#define FEEDEQ_VALIDRATE(c, t) (feeder_eq_validrate((c)->t.rate) != 0)
sys/dev/sound/pcm/feeder_chain.c
532
#define FEEDEQ_ECONOMY(c) (FEEDER_BW(c, current) < FEEDER_BW(c, target))
sys/dev/sound/pcm/feeder_chain.c
533
#define FEEDEQ_REQUIRED(c) ((c)->use_eq != 0 && \
sys/dev/sound/pcm/feeder_chain.c
534
FEEDEQ_VALIDRATE(c, current))
sys/dev/sound/pcm/feeder_chain.c
536
#define FEEDFORMAT_NE_REQUIRED(c) \
sys/dev/sound/pcm/feeder_chain.c
537
((c)->afmt_ne != AFMT_S32_NE && \
sys/dev/sound/pcm/feeder_chain.c
538
(((c)->mode == FEEDER_CHAIN_16 && \
sys/dev/sound/pcm/feeder_chain.c
539
AFMT_ENCODING((c)->current.afmt) != AFMT_S16_NE) || \
sys/dev/sound/pcm/feeder_chain.c
540
((c)->mode == FEEDER_CHAIN_32 && \
sys/dev/sound/pcm/feeder_chain.c
541
AFMT_ENCODING((c)->current.afmt) != AFMT_S32_NE) || \
sys/dev/sound/pcm/feeder_chain.c
542
(c)->mode == FEEDER_CHAIN_FULLMULTI || \
sys/dev/sound/pcm/feeder_chain.c
543
((c)->mode == FEEDER_CHAIN_MULTI && \
sys/dev/sound/pcm/feeder_chain.c
544
((c)->current.afmt & AFMT_8BIT)) || \
sys/dev/sound/pcm/feeder_chain.c
545
((c)->mode == FEEDER_CHAIN_LEAN && \
sys/dev/sound/pcm/feeder_chain.c
546
!((c)->current.afmt & (AFMT_S16_NE | AFMT_S32_NE)))))
sys/dev/sound/pcm/feeder_chain.c
563
feeder_chain(struct pcm_channel *c)
sys/dev/sound/pcm/feeder_chain.c
572
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/feeder_chain.c
575
feeder_remove(c);
sys/dev/sound/pcm/feeder_chain.c
577
KASSERT(c->feeder == NULL, ("feeder chain not empty"));
sys/dev/sound/pcm/feeder_chain.c
597
#define VCHAN_PASSTHROUGH(c) (((c)->flags & (CHN_F_VIRTUAL | \
sys/dev/sound/pcm/feeder_chain.c
602
if (VCHAN_PASSTHROUGH(c))
sys/dev/sound/pcm/feeder_chain.c
603
hwfmt = c->parentchannel->format;
sys/dev/sound/pcm/feeder_chain.c
605
caps = chn_getcaps(c);
sys/dev/sound/pcm/feeder_chain.c
607
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
612
if ((c->format & AFMT_PASSTHROUGH) &&
sys/dev/sound/pcm/feeder_chain.c
613
!snd_fmtvalid(c->format, caps->fmtlist))
sys/dev/sound/pcm/feeder_chain.c
616
hwfmt = snd_fmtbest(c->format, caps->fmtlist);
sys/dev/sound/pcm/feeder_chain.c
618
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
625
printf("Req: 0x%08x\n", c->format);
sys/dev/sound/pcm/feeder_chain.c
635
hwmatrix = CHANNEL_GETMATRIX(c->methods, c->devinfo, hwfmt);
sys/dev/sound/pcm/feeder_chain.c
638
hwmatrix = &c->matrix_scratch;
sys/dev/sound/pcm/feeder_chain.c
646
softfmt = c->format;
sys/dev/sound/pcm/feeder_chain.c
647
softmatrix = &c->matrix;
sys/dev/sound/pcm/feeder_chain.c
653
softmatrix = &c->matrix;
sys/dev/sound/pcm/feeder_chain.c
657
c->matrix = *softmatrix;
sys/dev/sound/pcm/feeder_chain.c
658
c->matrix.id = SND_CHN_MATRIX_PCMCHANNEL;
sys/dev/sound/pcm/feeder_chain.c
662
if (softfmt != c->format)
sys/dev/sound/pcm/feeder_chain.c
663
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
665
__func__, CHN_DIRSTR(c), c->format, softfmt);
sys/dev/sound/pcm/feeder_chain.c
670
if (c->direction == PCMDIR_PLAY) {
sys/dev/sound/pcm/feeder_chain.c
673
cdesc.origin.rate = c->speed;
sys/dev/sound/pcm/feeder_chain.c
676
cdesc.target.rate = c->bufhard->spd;
sys/dev/sound/pcm/feeder_chain.c
680
cdesc.origin.rate = c->bufhard->spd;
sys/dev/sound/pcm/feeder_chain.c
683
cdesc.target.rate = c->speed;
sys/dev/sound/pcm/feeder_chain.c
686
d = c->parentsnddev;
sys/dev/sound/pcm/feeder_chain.c
693
if (CHN_BITPERFECT(c) || (c->format & AFMT_PASSTHROUGH)) {
sys/dev/sound/pcm/feeder_chain.c
694
if (c->direction == PCMDIR_PLAY)
sys/dev/sound/pcm/feeder_chain.c
698
c->format = cdesc.target.afmt;
sys/dev/sound/pcm/feeder_chain.c
699
c->speed = cdesc.target.rate;
sys/dev/sound/pcm/feeder_chain.c
706
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
717
(((d->flags & SD_F_VPC) && !(c->flags & CHN_F_HAS_VCHAN)) ||
sys/dev/sound/pcm/feeder_chain.c
719
!(c->flags & CHN_F_VIRTUAL))))
sys/dev/sound/pcm/feeder_chain.c
728
c->direction == PCMDIR_PLAY && (d->flags & SD_F_EQ) &&
sys/dev/sound/pcm/feeder_chain.c
730
!(c->flags & CHN_F_HAS_VCHAN)) ||
sys/dev/sound/pcm/feeder_chain.c
731
(!(d->flags & SD_F_EQ_PC) && !(c->flags & CHN_F_VIRTUAL))))
sys/dev/sound/pcm/feeder_chain.c
742
device_printf(c->dev,
sys/dev/sound/pcm/feeder_chain.c
757
c->feederflags = 0;
sys/dev/sound/pcm/feeder_chain.c
760
ret = feeder_build_##t(c, &cdesc); \
sys/dev/sound/pcm/feeder_chain.c
765
if (!(c->flags & CHN_F_HAS_VCHAN) || c->direction == PCMDIR_REC)
sys/dev/sound/pcm/feeder_chain.c
767
else if (c->direction == PCMDIR_PLAY && (c->flags & CHN_F_HAS_VCHAN))
sys/dev/sound/pcm/feeder_chain.c
836
if (c->direction == PCMDIR_REC && (c->flags & CHN_F_HAS_VCHAN))
sys/dev/sound/pcm/feeder_chain.c
839
sndbuf_setfmt(c->bufsoft, c->format);
sys/dev/sound/pcm/feeder_chain.c
840
sndbuf_setspd(c->bufsoft, c->speed);
sys/dev/sound/pcm/feeder_chain.c
842
sndbuf_setfmt(c->bufhard, hwfmt);
sys/dev/sound/pcm/feeder_chain.c
844
chn_syncstate(c);
sys/dev/sound/pcm/feeder_eq.c
364
feed_eq_feed(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b,
sys/dev/sound/pcm/feeder_eq.c
380
return (FEEDER_FEED(f->source, c, b, count, source));
sys/dev/sound/pcm/feeder_eq.c
389
j = SND_FXDIV(FEEDER_FEED(f->source, c, dst, count, source),
sys/dev/sound/pcm/feeder_eq.c
475
struct pcm_channel *c;
sys/dev/sound/pcm/feeder_eq.c
515
CHN_FOREACH(c, d, channels.pcm.busy) {
sys/dev/sound/pcm/feeder_eq.c
516
CHN_LOCK(c);
sys/dev/sound/pcm/feeder_eq.c
517
f = feeder_find(c, FEEDER_EQ);
sys/dev/sound/pcm/feeder_eq.c
520
CHN_UNLOCK(c);
sys/dev/sound/pcm/feeder_eq.c
535
struct pcm_channel *c;
sys/dev/sound/pcm/feeder_eq.c
574
CHN_FOREACH(c, d, channels.pcm.busy) {
sys/dev/sound/pcm/feeder_eq.c
575
CHN_LOCK(c);
sys/dev/sound/pcm/feeder_eq.c
576
f = feeder_find(c, FEEDER_EQ);
sys/dev/sound/pcm/feeder_eq.c
579
CHN_UNLOCK(c);
sys/dev/sound/pcm/feeder_format.c
123
feed_format_feed(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b,
sys/dev/sound/pcm/feeder_format.c
153
j = SND_FXDIV(FEEDER_FEED(f->source, c, src, j, source),
sys/dev/sound/pcm/feeder_matrix.c
328
feed_matrix_feed(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b,
sys/dev/sound/pcm/feeder_matrix.c
337
return (FEEDER_FEED(f->source, c, b, count, source));
sys/dev/sound/pcm/feeder_matrix.c
370
j = SND_FXDIV(FEEDER_FEED(f->source, c, src, j, source),
sys/dev/sound/pcm/feeder_mixer.c
128
feed_mixer_rec(struct pcm_channel *c)
sys/dev/sound/pcm/feeder_mixer.c
141
b = c->bufsoft;
sys/dev/sound/pcm/feeder_mixer.c
148
cnt = FEEDER_FEED(c->feeder->source, c, b->tmpbuf,
sys/dev/sound/pcm/feeder_mixer.c
149
min(cnt, maxfeed), c->bufhard);
sys/dev/sound/pcm/feeder_mixer.c
168
CHN_FOREACH(ch, c, children.busy) {
sys/dev/sound/pcm/feeder_mixer.c
211
c->flags &= ~CHN_F_DIRTY;
sys/dev/sound/pcm/feeder_mixer.c
222
feed_mixer_feed(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b,
sys/dev/sound/pcm/feeder_mixer.c
232
if (c->direction == PCMDIR_REC)
sys/dev/sound/pcm/feeder_mixer.c
233
return (feed_mixer_rec(c));
sys/dev/sound/pcm/feeder_mixer.c
256
CHN_FOREACH(ch, c, children.busy) {
sys/dev/sound/pcm/feeder_mixer.c
265
if (c->flags & CHN_F_PASSTHROUGH) {
sys/dev/sound/pcm/feeder_mixer.c
279
} else if (c->flags & CHN_F_EXCLUSIVE) {
sys/dev/sound/pcm/feeder_mixer.c
333
if (++c->feedcount == 0)
sys/dev/sound/pcm/feeder_mixer.c
334
c->feedcount = 2;
sys/dev/sound/pcm/feeder_mixer.c
336
c->flags &= ~CHN_F_DIRTY;
sys/dev/sound/pcm/feeder_rate.c
1023
c = 0;
sys/dev/sound/pcm/feeder_rate.c
1025
c += z >> Z_SHIFT;
sys/dev/sound/pcm/feeder_rate.c
1030
z_coeff_interpolate(z, info->z_coeff + c);
sys/dev/sound/pcm/feeder_rate.c
1034
c = 0;
sys/dev/sound/pcm/feeder_rate.c
1036
c += z >> Z_SHIFT;
sys/dev/sound/pcm/feeder_rate.c
1040
z_coeff_interpolate(z, info->z_coeff + c);
sys/dev/sound/pcm/feeder_rate.c
1507
z_resampler_feed_internal(struct pcm_feeder *f, struct pcm_channel *c,
sys/dev/sound/pcm/feeder_rate.c
1517
return (z_feed(f->source, c, b, count, source));
sys/dev/sound/pcm/feeder_rate.c
1583
fetched = SND_FXDIV(z_feed(f->source, c,
sys/dev/sound/pcm/feeder_rate.c
1636
z_resampler_feed(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b,
sys/dev/sound/pcm/feeder_rate.c
1648
feed = z_resampler_feed_internal(f, c, b,
sys/dev/sound/pcm/feeder_rate.c
226
struct pcm_channel *c;
sys/dev/sound/pcm/feeder_rate.c
255
CHN_FOREACH(c, d, channels.pcm) {
sys/dev/sound/pcm/feeder_rate.c
256
CHN_LOCK(c);
sys/dev/sound/pcm/feeder_rate.c
257
f = feeder_find(c, FEEDER_RATE);
sys/dev/sound/pcm/feeder_rate.c
258
if (f == NULL || f->data == NULL || CHN_STARTED(c)) {
sys/dev/sound/pcm/feeder_rate.c
259
CHN_UNLOCK(c);
sys/dev/sound/pcm/feeder_rate.c
263
CHN_UNLOCK(c);
sys/dev/sound/pcm/feeder_rate.c
499
c += z >> Z_SHIFT; \
sys/dev/sound/pcm/feeder_rate.c
501
coeff = Z_COEFF_INTERPOLATE(z, z_coeff[c], z_dcoeff[c]); \
sys/dev/sound/pcm/feeder_rate.c
531
uint32_t c, center, ch, i; \
sys/dev/sound/pcm/feeder_rate.c
544
c = 0; \
sys/dev/sound/pcm/feeder_rate.c
550
c = 0; \
sys/dev/sound/pcm/feeder_rate.c
707
int32_t c, z, len, lmax;
sys/dev/sound/pcm/feeder_rate.c
717
c = 0;
sys/dev/sound/pcm/feeder_rate.c
723
c += z >> Z_SHIFT;
sys/dev/sound/pcm/feeder_rate.c
726
} while (c < lmax && ++len > 0);
sys/dev/sound/pcm/feeder_rate.c
996
int32_t alpha, c, i, z, idx;
sys/dev/sound/pcm/feeder_volume.c
228
feed_volume_feed(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b,
sys/dev/sound/pcm/feeder_volume.c
248
return (FEEDER_FEED(f->source, c, b, count, source));
sys/dev/sound/pcm/feeder_volume.c
250
vol = c->volume[SND_VOL_C_VAL(info->volume_class)];
sys/dev/sound/pcm/feeder_volume.c
251
muted = c->muted[SND_VOL_C_VAL(info->volume_class)];
sys/dev/sound/pcm/feeder_volume.c
269
return (FEEDER_FEED(f->source, c, b, count, source));
sys/dev/sound/pcm/feeder_volume.c
272
d = (c != NULL) ? c->parentsnddev : NULL;
sys/dev/sound/pcm/feeder_volume.c
288
j = SND_FXDIV(FEEDER_FEED(f->source, c, dst, count, source),
sys/dev/sound/pcm/mixer.c
1054
struct pcm_channel *c, *rdch, *wrch;
sys/dev/sound/pcm/mixer.c
1079
c = NULL;
sys/dev/sound/pcm/mixer.c
1093
CHN_FOREACH(c, d, channels.pcm.opened) {
sys/dev/sound/pcm/mixer.c
1094
CHN_LOCK(c);
sys/dev/sound/pcm/mixer.c
1095
if (c->pid != pid ||
sys/dev/sound/pcm/mixer.c
1096
!(c->feederflags & (1 << FEEDER_VOLUME))) {
sys/dev/sound/pcm/mixer.c
1097
CHN_UNLOCK(c);
sys/dev/sound/pcm/mixer.c
1100
if (rdch == NULL && c->direction == PCMDIR_REC) {
sys/dev/sound/pcm/mixer.c
1101
rdch = c;
sys/dev/sound/pcm/mixer.c
1104
} else if (wrch == NULL && c->direction == PCMDIR_PLAY) {
sys/dev/sound/pcm/mixer.c
1105
wrch = c;
sys/dev/sound/pcm/mixer.c
1109
CHN_UNLOCK(c);
sys/dev/sound/pcm/mixer.c
1134
KASSERT(c != NULL, ("%s(): NULL channel", __func__));
sys/dev/sound/pcm/mixer.c
1135
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/mixer.c
1143
chn_setvolume_multi(c, SND_VOL_C_PCM, left, right, center);
sys/dev/sound/pcm/mixer.c
1145
*(int *)arg = chn_getvolume_matrix(c, SND_VOL_C_PCM, SND_CHN_T_FL);
sys/dev/sound/pcm/mixer.c
1147
chn_getvolume_matrix(c, SND_VOL_C_PCM, SND_CHN_T_FR) << 8;
sys/dev/sound/pcm/mixer.c
1150
CHN_UNLOCK(c);
sys/dev/sound/pcm/mixer.c
140
struct pcm_channel *c;
sys/dev/sound/pcm/mixer.c
166
CHN_FOREACH(c, d, channels.pcm.busy) {
sys/dev/sound/pcm/mixer.c
167
CHN_LOCK(c);
sys/dev/sound/pcm/mixer.c
168
if (c->direction == PCMDIR_PLAY &&
sys/dev/sound/pcm/mixer.c
169
(c->feederflags & (1 << FEEDER_VOLUME)))
sys/dev/sound/pcm/mixer.c
170
chn_setvolume_multi(c, SND_VOL_C_MASTER, left, right,
sys/dev/sound/pcm/mixer.c
172
CHN_UNLOCK(c);
sys/dev/sound/pcm/mixer.c
185
struct pcm_channel *c;
sys/dev/sound/pcm/mixer.c
219
CHN_FOREACH(c, d, channels.pcm.busy) {
sys/dev/sound/pcm/mixer.c
220
CHN_LOCK(c);
sys/dev/sound/pcm/mixer.c
221
f = feeder_find(c, FEEDER_EQ);
sys/dev/sound/pcm/mixer.c
224
CHN_UNLOCK(c);
sys/dev/sound/pcm/sound.c
521
struct pcm_channel *c;
sys/dev/sound/pcm/sound.c
554
CHN_FOREACH(c, d, channels.pcm) {
sys/dev/sound/pcm/sound.c
555
CHN_UNLOCKASSERT(c);
sys/dev/sound/pcm/sound.c
556
CHN_LOCK(c);
sys/dev/sound/pcm/sound.c
557
if (c->flags & CHN_F_BUSY)
sys/dev/sound/pcm/sound.c
560
CHN_UNLOCK(c);
sys/dev/sound/pcm/sound.h
372
#define SND_FORMAT(f, c, e) (AFMT_ENCODING(f) | \
sys/dev/sound/pcm/sound.h
373
(((c) << AFMT_CHANNEL_SHIFT) & \
sys/dev/sound/pcm/vchan.c
138
struct pcm_channel *c, *p;
sys/dev/sound/pcm/vchan.c
142
c = info->channel;
sys/dev/sound/pcm/vchan.c
143
p = c->parentchannel;
sys/dev/sound/pcm/vchan.c
145
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/vchan.c
149
CHN_UNLOCK(c);
sys/dev/sound/pcm/vchan.c
158
CHN_INSERT_HEAD(p, c, children.busy);
sys/dev/sound/pcm/vchan.c
163
CHN_REMOVE(p, c, children.busy);
sys/dev/sound/pcm/vchan.c
171
CHN_LOCK(c);
sys/dev/sound/pcm/vchan.c
173
if (ret == 0 && go == PCMTRIG_START && VCHAN_SYNC_REQUIRED(c))
sys/dev/sound/pcm/vchan.c
174
ret = vchan_sync(c);
sys/dev/sound/pcm/vchan.c
176
CHN_UNLOCK(c);
sys/dev/sound/pcm/vchan.c
178
CHN_LOCK(c);
sys/dev/sound/pcm/vchan.c
187
struct pcm_channel *c;
sys/dev/sound/pcm/vchan.c
191
c = info->channel;
sys/dev/sound/pcm/vchan.c
192
pformat = c->parentchannel->format;
sys/dev/sound/pcm/vchan.c
193
pspeed = c->parentchannel->speed;
sys/dev/sound/pcm/vchan.c
194
pflags = c->parentchannel->flags;
sys/dev/sound/pcm/vchan.c
196
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/vchan.c
208
if (c->format & AFMT_PASSTHROUGH)
sys/dev/sound/pcm/vchan.c
209
info->caps.minspeed = c->speed;
sys/dev/sound/pcm/vchan.c
218
device_printf(c->dev,
sys/dev/sound/pcm/vchan.c
312
struct pcm_channel *c;
sys/dev/sound/pcm/vchan.c
377
CHN_FOREACH(c, d, channels.pcm.primary) {
sys/dev/sound/pcm/vchan.c
378
CHN_LOCK(c);
sys/dev/sound/pcm/vchan.c
379
if (c->direction != direction ||
sys/dev/sound/pcm/vchan.c
380
dflags == (c->flags & CHN_F_VCHAN_DYNAMIC) ||
sys/dev/sound/pcm/vchan.c
381
(c->flags & CHN_F_PASSTHROUGH)) {
sys/dev/sound/pcm/vchan.c
382
CHN_UNLOCK(c);
sys/dev/sound/pcm/vchan.c
385
c->flags &= ~CHN_F_VCHAN_DYNAMIC;
sys/dev/sound/pcm/vchan.c
386
c->flags |= dflags;
sys/dev/sound/pcm/vchan.c
387
CHN_UNLOCK(c);
sys/dev/sound/pcm/vchan.c
400
#define VCHAN_ACCESSIBLE(c) (!((c)->flags & (CHN_F_PASSTHROUGH | \
sys/dev/sound/pcm/vchan.c
402
(((c)->flags & CHN_F_VCHAN_DYNAMIC) || \
sys/dev/sound/pcm/vchan.c
403
CHN_STOPPED(c)))
sys/dev/sound/pcm/vchan.c
408
struct pcm_channel *c, *ch;
sys/dev/sound/pcm/vchan.c
460
CHN_FOREACH(c, d, channels.pcm.primary) {
sys/dev/sound/pcm/vchan.c
461
CHN_LOCK(c);
sys/dev/sound/pcm/vchan.c
462
if (c->direction != direction) {
sys/dev/sound/pcm/vchan.c
463
CHN_UNLOCK(c);
sys/dev/sound/pcm/vchan.c
467
if (newspd != c->speed && VCHAN_ACCESSIBLE(c)) {
sys/dev/sound/pcm/vchan.c
468
if (CHN_STARTED(c)) {
sys/dev/sound/pcm/vchan.c
469
chn_abort(c);
sys/dev/sound/pcm/vchan.c
474
ret = chn_reset(c, c->format, newspd);
sys/dev/sound/pcm/vchan.c
477
CHN_FOREACH(ch, c, children.busy) {
sys/dev/sound/pcm/vchan.c
483
c->flags |= CHN_F_DIRTY;
sys/dev/sound/pcm/vchan.c
484
ret = chn_start(c, 1);
sys/dev/sound/pcm/vchan.c
488
*vchanrate = c->bufsoft->spd;
sys/dev/sound/pcm/vchan.c
490
CHN_UNLOCK(c);
sys/dev/sound/pcm/vchan.c
502
struct pcm_channel *c, *ch;
sys/dev/sound/pcm/vchan.c
560
CHN_FOREACH(c, d, channels.pcm.primary) {
sys/dev/sound/pcm/vchan.c
561
CHN_LOCK(c);
sys/dev/sound/pcm/vchan.c
562
if (c->direction != direction) {
sys/dev/sound/pcm/vchan.c
563
CHN_UNLOCK(c);
sys/dev/sound/pcm/vchan.c
566
if (newfmt != c->format && VCHAN_ACCESSIBLE(c)) {
sys/dev/sound/pcm/vchan.c
567
if (CHN_STARTED(c)) {
sys/dev/sound/pcm/vchan.c
568
chn_abort(c);
sys/dev/sound/pcm/vchan.c
573
ret = chn_reset(c, newfmt, c->speed);
sys/dev/sound/pcm/vchan.c
576
CHN_FOREACH(ch, c, children.busy) {
sys/dev/sound/pcm/vchan.c
582
c->flags |= CHN_F_DIRTY;
sys/dev/sound/pcm/vchan.c
583
ret = chn_start(c, 1);
sys/dev/sound/pcm/vchan.c
587
*vchanformat = c->bufsoft->fmt;
sys/dev/sound/pcm/vchan.c
589
CHN_UNLOCK(c);
sys/dev/sound/pcm/vchan.c
61
struct pcm_channel *c, int dir)
sys/dev/sound/pcm/vchan.c
684
vchan_destroy(struct pcm_channel *c)
sys/dev/sound/pcm/vchan.c
688
KASSERT(c != NULL && c->parentchannel != NULL &&
sys/dev/sound/pcm/vchan.c
689
c->parentsnddev != NULL, ("%s(): invalid channel=%p",
sys/dev/sound/pcm/vchan.c
69
KASSERT(c != NULL && c->parentchannel != NULL,
sys/dev/sound/pcm/vchan.c
690
__func__, c));
sys/dev/sound/pcm/vchan.c
692
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/vchan.c
694
parent = c->parentchannel;
sys/dev/sound/pcm/vchan.c
696
PCM_BUSYASSERT(c->parentsnddev);
sys/dev/sound/pcm/vchan.c
699
CHN_UNLOCK(c);
sys/dev/sound/pcm/vchan.c
702
CHN_REMOVE(parent, c, children);
sys/dev/sound/pcm/vchan.c
711
chn_kill(c);
sys/dev/sound/pcm/vchan.c
719
vchan_sync(struct pcm_channel *c)
sys/dev/sound/pcm/vchan.c
723
KASSERT(c != NULL && c->parentchannel != NULL &&
sys/dev/sound/pcm/vchan.c
724
(c->flags & CHN_F_VIRTUAL),
sys/dev/sound/pcm/vchan.c
726
CHN_LOCKASSERT(c);
sys/dev/sound/pcm/vchan.c
727
CHN_LOCKASSERT(c->parentchannel);
sys/dev/sound/pcm/vchan.c
729
sndbuf_setspd(c->bufhard, c->parentchannel->speed);
sys/dev/sound/pcm/vchan.c
73
info->channel = c;
sys/dev/sound/pcm/vchan.c
730
c->flags |= CHN_F_PASSTHROUGH;
sys/dev/sound/pcm/vchan.c
731
ret = feeder_chain(c);
sys/dev/sound/pcm/vchan.c
732
c->flags &= ~(CHN_F_DIRTY | CHN_F_PASSTHROUGH);
sys/dev/sound/pcm/vchan.c
734
c->flags |= CHN_F_DIRTY;
sys/dev/sound/pcm/vchan.c
75
p = c->parentchannel;
sys/dev/sound/pcm/vchan.c
93
c->flags |= CHN_F_VIRTUAL;
sys/dev/sound/pcm/vchan.h
44
#define VCHAN_SYNC_REQUIRED(c) \
sys/dev/sound/pcm/vchan.h
45
(((c)->flags & CHN_F_VIRTUAL) && (((c)->flags & CHN_F_DIRTY) || \
sys/dev/sound/pcm/vchan.h
46
(c)->bufhard->fmt != (c)->parentchannel->format || \
sys/dev/sound/pcm/vchan.h
47
(c)->bufhard->spd != (c)->parentchannel->speed))
sys/dev/sound/sndstat.c
1220
struct pcm_channel *c;
sys/dev/sound/sndstat.c
1252
CHN_FOREACH(c, d, channels.pcm) {
sys/dev/sound/sndstat.c
1253
KASSERT(c->bufhard != NULL && c->bufsoft != NULL,
sys/dev/sound/sndstat.c
1256
CHN_LOCK(c);
sys/dev/sound/sndstat.c
1261
(c->parentchannel != NULL) ?
sys/dev/sound/sndstat.c
1262
c->parentchannel->name : "", c->name);
sys/dev/sound/sndstat.c
1263
sbuf_printf(s, "spd %d", c->speed);
sys/dev/sound/sndstat.c
1264
if (c->speed != c->bufhard->spd)
sys/dev/sound/sndstat.c
1265
sbuf_printf(s, "/%d", c->bufhard->spd);
sys/dev/sound/sndstat.c
1266
sbuf_printf(s, ", fmt 0x%08x", c->format);
sys/dev/sound/sndstat.c
1267
if (c->format != c->bufhard->fmt) {
sys/dev/sound/sndstat.c
1268
sbuf_printf(s, "/0x%08x", c->bufhard->fmt);
sys/dev/sound/sndstat.c
1271
c->flags, c->feederflags);
sys/dev/sound/sndstat.c
1272
if (c->pid != -1) {
sys/dev/sound/sndstat.c
1274
c->pid, c->comm);
sys/dev/sound/sndstat.c
1278
sbuf_printf(s, "\tinterrupts %d, ", c->interrupts);
sys/dev/sound/sndstat.c
1280
if (c->direction == PCMDIR_REC) {
sys/dev/sound/sndstat.c
1284
c->xruns, c->feedcount,
sys/dev/sound/sndstat.c
1285
sndbuf_getfree(c->bufhard),
sys/dev/sound/sndstat.c
1286
sndbuf_getfree(c->bufsoft),
sys/dev/sound/sndstat.c
1287
c->bufhard->bufsize,
sys/dev/sound/sndstat.c
1288
c->bufhard->blksz,
sys/dev/sound/sndstat.c
1289
c->bufhard->blkcnt,
sys/dev/sound/sndstat.c
1290
c->bufsoft->bufsize,
sys/dev/sound/sndstat.c
1291
c->bufsoft->blksz,
sys/dev/sound/sndstat.c
1292
c->bufsoft->blkcnt);
sys/dev/sound/sndstat.c
1297
c->xruns, c->feedcount,
sys/dev/sound/sndstat.c
1298
sndbuf_getready(c->bufsoft),
sys/dev/sound/sndstat.c
1299
c->bufhard->bufsize,
sys/dev/sound/sndstat.c
1300
c->bufhard->blksz,
sys/dev/sound/sndstat.c
1301
c->bufhard->blkcnt,
sys/dev/sound/sndstat.c
1302
c->bufsoft->bufsize,
sys/dev/sound/sndstat.c
1303
c->bufsoft->blksz,
sys/dev/sound/sndstat.c
1304
c->bufsoft->blkcnt);
sys/dev/sound/sndstat.c
1308
sbuf_printf(s, "\tchannel flags=0x%b", c->flags, CHN_F_BITS);
sys/dev/sound/sndstat.c
1311
if (c->parentchannel != NULL) {
sys/dev/sound/sndstat.c
1312
sbuf_printf(s, "\t{%s}", (c->direction == PCMDIR_REC) ?
sys/dev/sound/sndstat.c
1313
c->parentchannel->name : "userland");
sys/dev/sound/sndstat.c
1315
sbuf_printf(s, "\t{%s}", (c->direction == PCMDIR_REC) ?
sys/dev/sound/sndstat.c
1320
f = c->feeder;
sys/dev/sound/sndstat.c
1350
if (c->parentchannel != NULL) {
sys/dev/sound/sndstat.c
1351
sbuf_printf(s, "{%s}", (c->direction == PCMDIR_REC) ?
sys/dev/sound/sndstat.c
1352
"userland" : c->parentchannel->name);
sys/dev/sound/sndstat.c
1354
sbuf_printf(s, "{%s}", (c->direction == PCMDIR_REC) ?
sys/dev/sound/sndstat.c
1359
CHN_UNLOCK(c);
sys/dev/sound/sndstat.c
324
struct pcm_channel *c;
sys/dev/sound/sndstat.c
334
CHN_FOREACH(c, d, channels.pcm) {
sys/dev/sound/sndstat.c
335
if (c->direction != dir)
sys/dev/sound/sndstat.c
337
CHN_LOCK(c);
sys/dev/sound/sndstat.c
338
caps = chn_getcaps(c);
sys/dev/sound/sndstat.c
344
if ((c->flags & CHN_F_EXCLUSIVE) ||
sys/dev/sound/sndstat.c
352
CHN_UNLOCK(c);
sys/dev/sound/sndstat.c
380
struct pcm_channel *c;
sys/dev/sound/sndstat.c
456
CHN_FOREACH(c, d, channels.pcm) {
sys/dev/sound/sndstat.c
466
CHN_LOCK(c);
sys/dev/sound/sndstat.c
469
((c->flags & CHN_F_VIRTUAL) ? PCM_CAP_VIRTUAL : 0) |
sys/dev/sound/sndstat.c
470
((c->direction == PCMDIR_PLAY) ? PCM_CAP_OUTPUT : PCM_CAP_INPUT);
sys/dev/sound/sndstat.c
472
nvlist_add_string(cdi, SNDST_DSPS_SOUND4_CHAN_NAME, c->name);
sys/dev/sound/sndstat.c
474
c->parentchannel != NULL ? c->parentchannel->name : "");
sys/dev/sound/sndstat.c
478
c->latency);
sys/dev/sound/sndstat.c
479
nvlist_add_number(cdi, SNDST_DSPS_SOUND4_CHAN_RATE, c->speed);
sys/dev/sound/sndstat.c
481
c->format);
sys/dev/sound/sndstat.c
482
nvlist_add_number(cdi, SNDST_DSPS_SOUND4_CHAN_PID, c->pid);
sys/dev/sound/sndstat.c
483
nvlist_add_string(cdi, SNDST_DSPS_SOUND4_CHAN_COMM, c->comm);
sys/dev/sound/sndstat.c
485
c->interrupts);
sys/dev/sound/sndstat.c
487
c->feedcount);
sys/dev/sound/sndstat.c
488
nvlist_add_number(cdi, SNDST_DSPS_SOUND4_CHAN_XRUNS, c->xruns);
sys/dev/sound/sndstat.c
490
chn_getvolume_matrix(c, SND_VOL_C_PCM, SND_CHN_T_FL));
sys/dev/sound/sndstat.c
492
chn_getvolume_matrix(c, SND_VOL_C_PCM, SND_CHN_T_FR));
sys/dev/sound/sndstat.c
494
c->bufhard->fmt);
sys/dev/sound/sndstat.c
496
c->bufhard->spd);
sys/dev/sound/sndstat.c
498
c->bufhard->bufsize);
sys/dev/sound/sndstat.c
500
c->bufhard->blksz);
sys/dev/sound/sndstat.c
502
c->bufhard->blkcnt);
sys/dev/sound/sndstat.c
504
sndbuf_getfree(c->bufhard));
sys/dev/sound/sndstat.c
506
sndbuf_getready(c->bufhard));
sys/dev/sound/sndstat.c
508
c->bufsoft->fmt);
sys/dev/sound/sndstat.c
510
c->bufsoft->spd);
sys/dev/sound/sndstat.c
512
c->bufsoft->bufsize);
sys/dev/sound/sndstat.c
514
c->bufsoft->blksz);
sys/dev/sound/sndstat.c
516
c->bufsoft->blkcnt);
sys/dev/sound/sndstat.c
518
sndbuf_getfree(c->bufsoft));
sys/dev/sound/sndstat.c
520
sndbuf_getready(c->bufsoft));
sys/dev/sound/sndstat.c
522
if (c->parentchannel != NULL) {
sys/dev/sound/sndstat.c
523
sbuf_printf(&sb, "[%s", (c->direction == PCMDIR_REC) ?
sys/dev/sound/sndstat.c
524
c->parentchannel->name : "userland");
sys/dev/sound/sndstat.c
526
sbuf_printf(&sb, "[%s", (c->direction == PCMDIR_REC) ?
sys/dev/sound/sndstat.c
531
f = c->feeder;
sys/dev/sound/sndstat.c
560
if (c->parentchannel != NULL) {
sys/dev/sound/sndstat.c
561
sbuf_printf(&sb, "%s]", (c->direction == PCMDIR_REC) ?
sys/dev/sound/sndstat.c
562
"userland" : c->parentchannel->name);
sys/dev/sound/sndstat.c
564
sbuf_printf(&sb, "%s]", (c->direction == PCMDIR_REC) ?
sys/dev/sound/sndstat.c
569
CHN_UNLOCK(c);
sys/dev/sound/usb/uaudio.c
2652
struct pcm_channel *c, int dir)
sys/dev/sound/usb/uaudio.c
2659
ch->pcm_ch = c;
sys/dev/sound/usb/uaudio.c
3332
uint32_t c;
sys/dev/sound/usb/uaudio.c
3368
for (c = 0; c < chs; c++) {
sys/dev/sound/usb/uaudio.c
3371
bno = ((p + c) * ochs) + o;
sys/dev/sound/usb/uaudio.c
3382
for (c = 0; c < chs; c++) {
sys/dev/sound/usb/uaudio.c
3384
bno = ((p + c) * ochs) + o;
sys/dev/sound/usb/uaudio.c
3386
MIX(sc).wValue[mc++] = MAKE_WORD(p + c + 1, o + 1);
sys/dev/sound/usb/uaudio.c
3409
uint32_t c;
sys/dev/sound/usb/uaudio.c
3445
for (c = 0; c < chs; c++) {
sys/dev/sound/usb/uaudio.c
3448
bno = ((p + c) * ochs) + o;
sys/dev/sound/usb/uaudio.c
3459
for (c = 0; c < chs; c++) {
sys/dev/sound/usb/uaudio.c
3461
bno = ((p + c) * ochs) + o;
sys/dev/sound/usb/uaudio.c
3463
MIX(sc).wValue[mc++] = MAKE_WORD(p + c + 1, o + 1);
sys/dev/sound/usb/uaudio.h
44
struct pcm_channel *c, int dir);
sys/dev/sound/usb/uaudio_pcm.c
41
ua_chan_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir)
sys/dev/sound/usb/uaudio_pcm.c
43
return (uaudio_chan_init(devinfo, b, c, dir));
sys/dev/speaker/spkr.c
124
#define dtoi(c) ((c) - '0')
sys/dev/speaker/spkr.c
231
char c = toupper(*cp);
sys/dev/speaker/spkr.c
234
(void) printf("playstring: %c (%x)\n", c, c);
sys/dev/speaker/spkr.c
237
switch (c) {
sys/dev/speaker/spkr.c
246
pitch = notetab[c - 'A'] + octave * OCTAVE_NOTES;
sys/dev/ste/if_ste.c
2008
#define STE_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/ste/if_ste.c
2009
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/ste/if_ste.c
2010
#define STE_SYSCTL_STAT_ADD64(c, h, n, p, d) \
sys/dev/ste/if_ste.c
2011
SYSCTL_ADD_UQUAD(c, h, OID_AUTO, n, CTLFLAG_RD, p, d)
sys/dev/sume/adapter.h
74
#define RIFFA_CHNL_REG(c, o) ((c << 4) + o)
sys/dev/syscons/scgfbrndr.c
121
gfb_clear(scr_stat *scp, int c, int attr)
sys/dev/syscons/scgfbrndr.c
135
int c;
sys/dev/syscons/scgfbrndr.c
183
c = sc_vtb_getc(&scp->vtb, from);
sys/dev/syscons/scgfbrndr.c
185
vidd_putc(adp, from, c,
sys/dev/syscons/scgfbrndr.c
217
int a, c;
sys/dev/syscons/scgfbrndr.c
241
c = sc_vtb_getc(&scp->vtb, at);
sys/dev/syscons/scgfbrndr.c
242
vidd_putc(scp->sc->adp, at, c,
sys/dev/syscons/scmouse.c
332
#define IS_SPACE_CHAR(c) (((c) & 0xff) == ' ')
sys/dev/syscons/scmouse.c
335
#define IS_BLANK_CHAR(c) (((c) & 0xff) == ' ' || ((c) & 0xff) == '\t')
sys/dev/syscons/scmouse.c
337
#define IS_BLANK_CHAR(c) IS_SPACE_CHAR(c)
sys/dev/syscons/scmouse.c
341
#define IS_SEP_CHAR(c) (index(SC_CUT_SEPCHARS, (c) & 0xff) != NULL)
sys/dev/syscons/scmouse.c
343
#define IS_SEP_CHAR(c) IS_SPACE_CHAR(c)
sys/dev/syscons/scmouse.c
350
int c;
sys/dev/syscons/scmouse.c
354
c = sc_vtb_getc(&scp->vtb, p);
sys/dev/syscons/scmouse.c
355
if (!IS_SPACE_CHAR(c))
sys/dev/syscons/scmouse.c
366
int c;
sys/dev/syscons/scmouse.c
370
c = sc_vtb_getc(&scp->vtb, p);
sys/dev/syscons/scmouse.c
371
if (!IS_SPACE_CHAR(c))
sys/dev/syscons/scmouse.c
446
int c;
sys/dev/syscons/scmouse.c
462
c = sc_vtb_getc(&scp->vtb, p);
sys/dev/syscons/scmouse.c
463
if (!IS_SPACE_CHAR(c))
sys/dev/syscons/scmouse.c
533
int c;
sys/dev/syscons/scmouse.c
546
c = sc_vtb_getc(&scp->vtb, scp->mouse_pos);
sys/dev/syscons/scmouse.c
547
if (IS_SEP_CHAR(c)) {
sys/dev/syscons/scmouse.c
550
c = sc_vtb_getc(&scp->vtb, j);
sys/dev/syscons/scmouse.c
551
if (!IS_SEP_CHAR(c))
sys/dev/syscons/scmouse.c
556
c = sc_vtb_getc(&scp->vtb, j);
sys/dev/syscons/scmouse.c
557
if (!IS_SEP_CHAR(c))
sys/dev/syscons/scmouse.c
564
c = sc_vtb_getc(&scp->vtb, j);
sys/dev/syscons/scmouse.c
565
if (IS_SEP_CHAR(c))
sys/dev/syscons/scmouse.c
570
c = sc_vtb_getc(&scp->vtb, j);
sys/dev/syscons/scmouse.c
571
if (IS_SEP_CHAR(c))
sys/dev/syscons/scterm-dumb.c
146
dumb_input(scr_stat *scp, int c, struct tty *tp)
sys/dev/syscons/scterm-dumb.c
152
dumb_fkeystr(scr_stat *scp, int c)
sys/dev/syscons/scterm-sc.c
115
u_char c);
sys/dev/syscons/scterm-sc.c
178
scterm_scan_esc(scr_stat *scp, term_stat *tcp, u_char c)
sys/dev/syscons/scterm-sc.c
206
switch (c) {
sys/dev/syscons/scterm-sc.c
251
if (c >= '0' && c <= '9') {
sys/dev/syscons/scterm-sc.c
259
tcp->param[tcp->num_param] += c - '0';
sys/dev/syscons/scterm-sc.c
264
switch (c) {
sys/dev/syscons/scterm-sc.c
537
if (c >= '0' && c <= '9') {
sys/dev/syscons/scterm-sc.c
545
tcp->param[tcp->num_param] += c - '0';
sys/dev/syscons/scterm-sc.c
550
switch (c) {
sys/dev/syscons/scterm-sc.c
658
switch (c) {
sys/dev/syscons/scterm-sc.c
775
scterm_input(scr_stat *scp, int c, struct tty *tp)
sys/dev/syscons/scterm-sc.c
781
scterm_fkeystr(scr_stat *scp, int c)
sys/dev/syscons/scterm-teken.c
231
scteken_input(scr_stat *scp, int c, struct tty *tp)
sys/dev/syscons/scterm-teken.c
238
scteken_fkeystr(scr_stat *scp, int c)
sys/dev/syscons/scterm-teken.c
243
switch (c) {
sys/dev/syscons/scterm-teken.c
248
k = TKEY_F1 + c - (FKEY | F(1));
sys/dev/syscons/scterm-teken.c
492
scteken_get_cp437(teken_char_t *c, int *attr)
sys/dev/syscons/scterm-teken.c
499
if (*c < cp437table[0].unicode_base ||
sys/dev/syscons/scterm-teken.c
500
*c > cp437table[max].unicode_base + cp437table[max].length)
sys/dev/syscons/scterm-teken.c
505
if (*c < cp437table[mid].unicode_base) {
sys/dev/syscons/scterm-teken.c
507
} else if (*c > cp437table[mid].unicode_base +
sys/dev/syscons/scterm-teken.c
511
*c -= cp437table[mid].unicode_base;
sys/dev/syscons/scterm-teken.c
512
*c += cp437table[mid].cp437_base;
sys/dev/syscons/scterm-teken.c
519
*c = '?';
sys/dev/syscons/scterm-teken.c
524
scteken_putchar(void *arg, const teken_pos_t *tp, teken_char_t c,
sys/dev/syscons/scterm-teken.c
540
c = ' ';
sys/dev/syscons/scterm-teken.c
542
scteken_get_cp437(&c, &attr);
sys/dev/syscons/scterm-teken.c
544
ch = c;
sys/dev/syscons/scterm-teken.c
561
scteken_fill(void *arg, const teken_rect_t *r, teken_char_t c,
sys/dev/syscons/scterm-teken.c
572
scteken_get_cp437(&c, &attr);
sys/dev/syscons/scterm-teken.c
574
ch = c;
sys/dev/syscons/scvgarndr.c
450
vga_txtclear(scr_stat *scp, int c, int attr)
sys/dev/syscons/scvgarndr.c
452
sc_vtb_clear(&scp->scr, c, attr);
sys/dev/syscons/scvgarndr.c
465
int c;
sys/dev/syscons/scvgarndr.c
473
c = sc_vtb_getc(&scp->vtb, from);
sys/dev/syscons/scvgarndr.c
476
p = sc_vtb_putchar(&scp->scr, p, c, a);
sys/dev/syscons/scvgarndr.c
495
draw_txtcharcursor(scr_stat *scp, int at, u_short c, u_short a, int flip)
sys/dev/syscons/scvgarndr.c
527
bcopy(font + c*h, font + sc->cursor_char*h, h);
sys/dev/syscons/scvgarndr.c
542
sc_vtb_putc(&scp->scr, at, c, a);
sys/dev/syscons/scvgarndr.c
606
u_char c;
sys/dev/syscons/scvgarndr.c
667
c = scp->sc->mouse_char;
sys/dev/syscons/scvgarndr.c
668
vidd_load_font(scp->sc->adp, 0, 32, 8, font_buf, c, 4);
sys/dev/syscons/scvgarndr.c
670
sc_vtb_putc(&scp->scr, pos, c, sc_vtb_geta(&scp->scr, pos));
sys/dev/syscons/scvgarndr.c
672
sc_vtb_putc(&scp->scr, pos + scp->xsize, c + 2,
sys/dev/syscons/scvgarndr.c
675
sc_vtb_putc(&scp->scr, pos + 1, c + 1,
sys/dev/syscons/scvgarndr.c
677
sc_vtb_putc(&scp->scr, pos + scp->xsize + 1, c + 3,
sys/dev/syscons/scvgarndr.c
745
vga_pxlclear_direct(scr_stat *scp, int c, int attr)
sys/dev/syscons/scvgarndr.c
767
vga_pxlclear_planar(scr_stat *scp, int c, int attr)
sys/dev/syscons/scvidctl.c
470
#define fb_ioctl(a, c, d) \
sys/dev/syscons/scvidctl.c
472
vidd_ioctl((a), (c), (caddr_t)(d)))
sys/dev/syscons/scvtb.c
136
sc_vtb_putc(sc_vtb_t *vtb, int at, int c, int a)
sys/dev/syscons/scvtb.c
139
writew(sc_vtb_pointer(vtb, at), a | c);
sys/dev/syscons/scvtb.c
141
*(u_int16_t *)sc_vtb_pointer(vtb, at) = a | c;
sys/dev/syscons/scvtb.c
145
sc_vtb_putchar(sc_vtb_t *vtb, vm_offset_t p, int c, int a)
sys/dev/syscons/scvtb.c
148
writew(p, a | c);
sys/dev/syscons/scvtb.c
150
*(u_int16_t *)p = a | c;
sys/dev/syscons/scvtb.c
167
sc_vtb_clear(sc_vtb_t *vtb, int c, int attr)
sys/dev/syscons/scvtb.c
170
fillw_io(attr | c, sc_vtb_pointer(vtb, 0), vtb->vtb_size);
sys/dev/syscons/scvtb.c
172
fillw(attr | c, (void *)sc_vtb_pointer(vtb, 0), vtb->vtb_size);
sys/dev/syscons/scvtb.c
224
sc_vtb_erase(sc_vtb_t *vtb, int at, int count, int c, int attr)
sys/dev/syscons/scvtb.c
229
fillw_io(attr | c, sc_vtb_pointer(vtb, at), count);
sys/dev/syscons/scvtb.c
231
fillw(attr | c, (void *)sc_vtb_pointer(vtb, at), count);
sys/dev/syscons/scvtb.c
252
sc_vtb_delete(sc_vtb_t *vtb, int at, int count, int c, int attr)
sys/dev/syscons/scvtb.c
270
fillw_io(attr | c, sc_vtb_pointer(vtb, at + len),
sys/dev/syscons/scvtb.c
273
fillw(attr | c, (void *)sc_vtb_pointer(vtb, at + len),
sys/dev/syscons/scvtb.c
278
sc_vtb_ins(sc_vtb_t *vtb, int at, int count, int c, int attr)
sys/dev/syscons/scvtb.c
293
fillw_io(attr | c, sc_vtb_pointer(vtb, at), count);
sys/dev/syscons/scvtb.c
295
fillw(attr | c, (void *)sc_vtb_pointer(vtb, at), count);
sys/dev/syscons/syscons.c
1978
sc_cnputc(struct consdev *cd, int c)
sys/dev/syscons/syscons.c
2004
sc_cnputc_log[head % sizeof(sc_cnputc_log)] = c;
sys/dev/syscons/syscons.c
2011
ec_putc(c);
sys/dev/syscons/syscons.c
2085
int c, s;
sys/dev/syscons/syscons.c
2095
c = sc_cngetc_locked(&st);
sys/dev/syscons/syscons.c
2098
return c;
sys/dev/syscons/syscons.c
2108
int c;
sys/dev/syscons/syscons.c
2123
c = scgetc(scp->sc, SCGETC_CN | SCGETC_NONBLOCK, sp);
sys/dev/syscons/syscons.c
2125
switch (KEYFLAGS(c)) {
sys/dev/syscons/syscons.c
2127
return KEYCHAR(c);
sys/dev/syscons/syscons.c
2129
p = (*scp->tsw->te_fkeystr)(scp, c);
sys/dev/syscons/syscons.c
2137
scp->sc->kbd, KEYCHAR(c), (size_t *)&fkeycp);
sys/dev/syscons/syscons.c
2144
return c; /* XXX */
sys/dev/syscons/syscons.c
278
ec_putc(int c)
sys/dev/syscons/syscons.c
285
if (c < 0 || c > 0xff || c == '\a')
sys/dev/syscons/syscons.c
316
width = (c == '\b' ?
sys/dev/syscons/syscons.c
318
c == '\t' ?
sys/dev/syscons/syscons.c
320
c == '\r' ? -column : c == '\n' ? xsize - column : 1);
sys/dev/syscons/syscons.c
324
if (c == '\b' || c == '\r')
sys/dev/syscons/syscons.c
326
if (c == '\n')
sys/dev/syscons/syscons.c
330
if (c == '\t' || c == '\n')
sys/dev/syscons/syscons.c
331
c = ' ';
sys/dev/syscons/syscons.c
333
scrptr[ind++ % mysize] = (attr << 8) | c;
sys/dev/syscons/syscons.c
3759
u_int c;
sys/dev/syscons/syscons.c
3778
c = kbdd_read_char(sc->kbd, !(flags & SCGETC_NONBLOCK));
sys/dev/syscons/syscons.c
3781
if (c == ERRKEY) {
sys/dev/syscons/syscons.c
3785
} else if (c == NOKEY)
sys/dev/syscons/syscons.c
3786
return c;
sys/dev/syscons/syscons.c
3792
if (!(c & RELKEY))
sys/dev/syscons/syscons.c
3796
random_harvest_queue(&c, sizeof(c), RANDOM_KEYBOARD);
sys/dev/syscons/syscons.c
3799
return KEYCHAR(c);
sys/dev/syscons/syscons.c
3811
switch (c) {
sys/dev/syscons/syscons.c
3870
if (c & RELKEY) {
sys/dev/syscons/syscons.c
3875
if (c & SPCLKEY) {
sys/dev/syscons/syscons.c
3876
c &= ~SPCLKEY;
sys/dev/syscons/syscons.c
3877
switch (KEYCHAR(c)) {
sys/dev/syscons/syscons.c
3936
return c;
sys/dev/syscons/syscons.c
4042
if (KEYCHAR(c) >= F_SCR &&
sys/dev/syscons/syscons.c
4043
KEYCHAR(c) <= L_SCR) {
sys/dev/syscons/syscons.c
4045
sc->first_vty + KEYCHAR(c) - F_SCR);
sys/dev/syscons/syscons.c
4050
return c;
sys/dev/syscons/syscons.c
4058
kdb_alt_break(c, &sc->sc_altbrk);
sys/dev/syscons/syscons.c
4061
return c;
sys/dev/syscons/syscons.c
819
int c, error = 0;
sys/dev/syscons/syscons.c
845
while ((c = scgetc(sc, SCGETC_NONBLOCK, NULL)) != NOKEY) {
sys/dev/syscons/syscons.c
850
if ((*sc->cur_scp->tsw->te_input)(sc->cur_scp, c, cur_tty))
sys/dev/syscons/syscons.c
853
switch (KEYFLAGS(c)) {
sys/dev/syscons/syscons.c
855
ttydisc_rint(cur_tty, KEYCHAR(c), 0);
sys/dev/syscons/syscons.c
858
cp = (*sc->cur_scp->tsw->te_fkeystr)(sc->cur_scp, c);
sys/dev/syscons/syscons.c
863
cp = kbdd_get_fkeystr(thiskbd, KEYCHAR(c), &len);
sys/dev/syscons/syscons.c
869
ttydisc_rint(cur_tty, KEYCHAR(c), 0);
sys/dev/syscons/syscons.h
386
typedef int sc_term_input_t(scr_stat *scp, int c, struct tty *tp);
sys/dev/syscons/syscons.h
387
typedef const char *sc_term_fkeystr_t(scr_stat *scp, int c);
sys/dev/syscons/syscons.h
438
typedef void vr_clear_t(scr_stat *scp, int c, int attr);
sys/dev/syscons/syscons.h
638
void sc_vtb_clear(sc_vtb_t *vtb, int c, int attr);
sys/dev/syscons/syscons.h
642
void sc_vtb_putc(sc_vtb_t *vtb, int at, int c, int a);
sys/dev/syscons/syscons.h
643
vm_offset_t sc_vtb_putchar(sc_vtb_t *vtb, vm_offset_t p, int c, int a);
sys/dev/syscons/syscons.h
656
void sc_vtb_erase(sc_vtb_t *vtb, int at, int count, int c, int attr);
sys/dev/syscons/syscons.h
658
void sc_vtb_delete(sc_vtb_t *vtb, int at, int count, int c, int attr);
sys/dev/syscons/syscons.h
659
void sc_vtb_ins(sc_vtb_t *vtb, int at, int count, int c, int attr);
sys/dev/tpm/tpm.c
541
tpm_waitfor_poll(struct tpm_softc *sc, u_int8_t mask, int tmo, void *c)
sys/dev/tpm/tpm.c
550
rv = tsleep(c, PRIBIO | PCATCH, "tpm_poll", 1);
sys/dev/tpm/tpm.c
564
tpm_waitfor_int(struct tpm_softc *sc, u_int8_t mask, int tmo, void *c,
sys/dev/tpm/tpm.c
598
printf("tpm_waitfor_int: sleeping for %d ticks on %p\n", to, c);
sys/dev/tpm/tpm.c
606
rv = tsleep(c, PRIBIO | PCATCH, "tpm_intr", to);
sys/dev/tpm/tpm.c
631
tpm_waitfor(struct tpm_softc *sc, u_int8_t b0, int tmo, void *c)
sys/dev/tpm/tpm.c
662
return tpm_waitfor_int(sc, b, tmo, c,
sys/dev/tpm/tpm.c
668
rv = tpm_waitfor_int(sc, b, tmo, c, TPM_STS_VALID_INT);
sys/dev/tpm/tpm.c
696
if ((rv = tpm_waitfor_poll(sc, b, to, c)) != 0)
sys/dev/tsec/if_tsec.c
1282
int c, rx_npkts;
sys/dev/tsec/if_tsec.c
1294
for (c = 0; ; c++) {
sys/dev/tsec/if_tsec.c
1302
if ((flags & TSEC_RXBD_E) || (c >= TSEC_RX_NUM_DESC)) {
sys/dev/uart/uart_cpu.h
144
uart_putc(struct uart_devinfo *di, int c)
sys/dev/uart/uart_cpu.h
147
di->ops->putc(&di->bas, c);
sys/dev/uart/uart_dbg.c
81
uart_dbg_putc(int c)
sys/dev/uart/uart_dbg.c
84
uart_putc(&uart_dbgport, c);
sys/dev/uart/uart_dev_imx.c
229
imx_uart_putc(struct uart_bas *bas, int c)
sys/dev/uart/uart_dev_imx.c
234
SETREG(bas, REG(UTXD), c);
sys/dev/uart/uart_dev_imx.c
247
int c;
sys/dev/uart/uart_dev_imx.c
253
c = GETREG(bas, REG(URXD));
sys/dev/uart/uart_dev_imx.c
256
if (c & FLD(URXD, BRK)) {
sys/dev/uart/uart_dev_imx.c
261
return (c & 0xff);
sys/dev/uart/uart_dev_imx.c
324
#define SIGCHG(c, i, s, d) \
sys/dev/uart/uart_dev_imx.c
325
if (c) { \
sys/dev/uart/uart_dev_lowrisc.c
104
lowrisc_uart_putc(struct uart_bas *bas, int c)
sys/dev/uart/uart_dev_lowrisc.c
110
SETREG(bas, UART_DR, c);
sys/dev/uart/uart_dev_msm.c
218
msm_putc(struct uart_bas *bas, int c)
sys/dev/uart/uart_dev_msm.c
247
SETREG(bas, UART_DM_TF(0), (c & 0xff));
sys/dev/uart/uart_dev_msm.c
262
int c;
sys/dev/uart/uart_dev_msm.c
276
c = uart_getreg(bas, UART_DM_RF(0));
sys/dev/uart/uart_dev_msm.c
280
return (c);
sys/dev/uart/uart_dev_msm.c
400
int c;
sys/dev/uart/uart_dev_msm.c
420
c = uart_getreg(bas, UART_DM_RF(0));
sys/dev/uart/uart_dev_msm.c
423
uart_rx_put(sc, c);
sys/dev/uart/uart_dev_mu.c
220
uart_mu_putc(struct uart_bas *bas, int c)
sys/dev/uart/uart_dev_mu.c
226
__uart_setreg(bas, AUX_MU_IO_REG, c & 0xff);
sys/dev/uart/uart_dev_mu.c
239
int c;
sys/dev/uart/uart_dev_mu.c
243
c = __uart_getreg(bas, AUX_MU_IO_REG) & 0xff;
sys/dev/uart/uart_dev_mu.c
244
return (c);
sys/dev/uart/uart_dev_mvebu.c
109
uart_mvebu_early_putc(int c)
sys/dev/uart/uart_dev_mvebu.c
120
*tsh = c & 0xff;
sys/dev/uart/uart_dev_mvebu.c
236
uart_mvebu_putc(struct uart_bas *bas, int c)
sys/dev/uart/uart_dev_mvebu.c
240
uart_setreg(bas, UART_TSH, c & 0xff);
sys/dev/uart/uart_dev_mvebu.c
254
int c;
sys/dev/uart/uart_dev_mvebu.c
260
c = uart_getreg(bas, UART_RBR) & 0xff;
sys/dev/uart/uart_dev_mvebu.c
263
return c;
sys/dev/uart/uart_dev_ns8250.c
102
outb(tx, c);
sys/dev/uart/uart_dev_ns8250.c
126
uart_ns8250_early_putc(int c)
sys/dev/uart/uart_dev_ns8250.c
136
*tx = c & 0xff;
sys/dev/uart/uart_dev_ns8250.c
458
ns8250_putc(struct uart_bas *bas, int c)
sys/dev/uart/uart_dev_ns8250.c
467
uart_setreg(bas, REG_DATA, c);
sys/dev/uart/uart_dev_ns8250.c
481
int c;
sys/dev/uart/uart_dev_ns8250.c
491
c = uart_getreg(bas, REG_DATA);
sys/dev/uart/uart_dev_ns8250.c
495
return (c);
sys/dev/uart/uart_dev_ns8250.c
94
uart_ns8250_early_putc(int c)
sys/dev/uart/uart_dev_pl011.c
293
uart_pl011_early_putc(int c)
sys/dev/uart/uart_dev_pl011.c
300
*dr = c & 0xff;
sys/dev/uart/uart_dev_pl011.c
306
uart_pl011_putc(struct uart_bas *bas, int c)
sys/dev/uart/uart_dev_pl011.c
312
__uart_setreg(bas, UART_DR, c & 0xff);
sys/dev/uart/uart_dev_pl011.c
325
int c;
sys/dev/uart/uart_dev_pl011.c
329
c = __uart_getreg(bas, UART_DR) & 0xff;
sys/dev/uart/uart_dev_pl011.c
331
return (c);
sys/dev/uart/uart_dev_quicc.c
181
quicc_putc(struct uart_bas *bas, int c)
sys/dev/uart/uart_dev_quicc.c
190
toseq = 0x2000 | (c & 0xff);
sys/dev/uart/uart_dev_quicc.c
207
int c;
sys/dev/uart/uart_dev_quicc.c
221
c = *buf;
sys/dev/uart/uart_dev_quicc.c
226
return (c);
sys/dev/uart/uart_dev_quicc.c
278
#define SIGCHG(c, i, s, d) \
sys/dev/uart/uart_dev_quicc.c
279
if (c) { \
sys/dev/uart/uart_dev_snps.c
68
uart_snps_early_putc(int c)
sys/dev/uart/uart_dev_snps.c
84
*tx = c;
sys/dev/uart/uart_dev_z8530.c
227
z8530_putc(struct uart_bas *bas, int c)
sys/dev/uart/uart_dev_z8530.c
232
uart_setreg(bas, REG_DATA, c);
sys/dev/uart/uart_dev_z8530.c
246
int c;
sys/dev/uart/uart_dev_z8530.c
256
c = uart_getreg(bas, REG_DATA);
sys/dev/uart/uart_dev_z8530.c
260
return (c);
sys/dev/uart/uart_dev_z8530.c
314
#define SIGCHG(c, i, s, d) \
sys/dev/uart/uart_dev_z8530.c
315
if (c) { \
sys/dev/uart/uart_tty.c
150
uart_cnputc(struct consdev *cp, int c)
sys/dev/uart/uart_tty.c
153
uart_putc(cp->cn_arg, c);
sys/dev/uart/uart_tty.c
323
int c, err = 0, pend, sig, xc;
sys/dev/uart/uart_tty.c
338
c = xc & 0xff;
sys/dev/uart/uart_tty.c
345
if (ttydisc_rint(tp, c, err) != 0) {
sys/dev/usb/controller/musb_otg_allwinner.c
306
uint8_t *d, bus_size_t c)
sys/dev/usb/controller/musb_otg_allwinner.c
310
bus_space_read_multi_1(bs_parent_space(bs), h, awusbdrd_reg(o), d, c);
sys/dev/usb/controller/musb_otg_allwinner.c
315
uint32_t *d, bus_size_t c)
sys/dev/usb/controller/musb_otg_allwinner.c
319
bus_space_read_multi_4(bs_parent_space(bs), h, awusbdrd_reg(o), d, c);
sys/dev/usb/controller/musb_otg_allwinner.c
324
const uint8_t *d, bus_size_t c)
sys/dev/usb/controller/musb_otg_allwinner.c
331
bus_space_write_multi_1(bs_parent_space(bs), h, awusbdrd_reg(o), d, c);
sys/dev/usb/controller/musb_otg_allwinner.c
336
const uint32_t *d, bus_size_t c)
sys/dev/usb/controller/musb_otg_allwinner.c
343
bus_space_write_multi_4(bs_parent_space(bs), h, awusbdrd_reg(o), d, c);
sys/dev/usb/input/ukbd.c
232
#define KEY_INDEX(c) ((c) & 0xFF)
sys/dev/usb/input/ukbd.c
242
#define SCAN_CHAR(c) ((c) & 0x7f)
sys/dev/usb/input/ukbd.c
521
int32_t c;
sys/dev/usb/input/ukbd.c
539
c = -1;
sys/dev/usb/input/ukbd.c
541
c = sc->sc_input[sc->sc_inputhead];
sys/dev/usb/input/ukbd.c
548
return (c);
sys/dev/usb/input/ukbd.c
635
int c;
sys/dev/usb/input/ukbd.c
653
c = ukbd_read_char(&sc->sc_kbd, 0);
sys/dev/usb/input/ukbd.c
654
} while (c != NOKEY);
sys/dev/usb/net/if_cdce.c
738
char c = eaddr_str[i];
sys/dev/usb/net/if_cdce.c
740
if ('0' <= c && c <= '9')
sys/dev/usb/net/if_cdce.c
741
c -= '0';
sys/dev/usb/net/if_cdce.c
742
else if (c != 0)
sys/dev/usb/net/if_cdce.c
743
c -= 'A' - 10;
sys/dev/usb/net/if_cdce.c
747
c &= 0xf;
sys/dev/usb/net/if_cdce.c
750
c <<= 4;
sys/dev/usb/net/if_cdce.c
751
sc->sc_ue.ue_eaddr[i / 2] |= c;
sys/dev/usb/net/if_ipheth.c
205
#define IPHETH_ID(v,p,c,sc,pt) \
sys/dev/usb/net/if_ipheth.c
207
USB_IFACE_CLASS(c), USB_IFACE_SUBCLASS(sc), \
sys/dev/usb/net/if_umb.c
156
#define umb_regstate(c) umb_val2descr(umb_regstates, (c))
sys/dev/usb/net/if_umb.c
157
#define umb_dataclass(c) umb_val2descr(umb_dataclasses, (c))
sys/dev/usb/net/if_umb.c
161
#define umb_cid2str(c) umb_val2descr(umb_cids, (c))
sys/dev/usb/net/if_umb.c
2298
struct mbim_h2f_cmd *c = data;
sys/dev/usb/net/if_umb.c
2299
if (le32toh(c->op) == MBIM_CMDOP_SET)
sys/dev/usb/net/if_umb.c
2303
str = umb_cid2str(le32toh(c->cid));
sys/dev/usb/net/if_umb.c
2484
struct mbim_cid_connect *c;
sys/dev/usb/net/if_umb.c
2489
c = malloc(sizeof (*c), M_MBIM_CID_CONNECT, M_WAITOK | M_ZERO);
sys/dev/usb/net/if_umb.c
2491
c->sessionid = htole32(umb_session_id);
sys/dev/usb/net/if_umb.c
2492
c->command = htole32(command);
sys/dev/usb/net/if_umb.c
2494
if (!umb_addstr(c, sizeof (*c), &off, sc->sc_info.apn,
sys/dev/usb/net/if_umb.c
2495
sc->sc_info.apnlen, &c->access_offs, &c->access_size))
sys/dev/usb/net/if_umb.c
2497
if (!umb_addstr(c, sizeof (*c), &off, sc->sc_info.username,
sys/dev/usb/net/if_umb.c
2498
sc->sc_info.usernamelen, &c->user_offs, &c->user_size))
sys/dev/usb/net/if_umb.c
2500
if (!umb_addstr(c, sizeof (*c), &off, sc->sc_info.password,
sys/dev/usb/net/if_umb.c
2501
sc->sc_info.passwordlen, &c->passwd_offs, &c->passwd_size))
sys/dev/usb/net/if_umb.c
2503
c->authprot = htole32(MBIM_AUTHPROT_NONE);
sys/dev/usb/net/if_umb.c
2504
c->compression = htole32(MBIM_COMPRESSION_NONE);
sys/dev/usb/net/if_umb.c
2505
c->iptype = htole32(MBIM_CONTEXT_IPTYPE_IPV4);
sys/dev/usb/net/if_umb.c
2506
memcpy(c->context, umb_uuid_context_internet, sizeof (c->context));
sys/dev/usb/net/if_umb.c
2507
umb_cmd(sc, MBIM_CID_CONNECT, MBIM_CMDOP_SET, c, off);
sys/dev/usb/net/if_umb.c
2509
free(c, M_MBIM_CID_CONNECT);
sys/dev/usb/net/if_umb.c
2909
uint8_t *c = buf;
sys/dev/usb/net/if_umb.c
2919
log(LOG_DEBUG, " %02x", *c);
sys/dev/usb/net/if_umb.c
2920
c++;
sys/dev/usb/serial/usb_serial.c
1685
int c;
sys/dev/usb/serial/usb_serial.c
1693
c = ucom_cons_rx_buf[ucom_cons_rx_low];
sys/dev/usb/serial/usb_serial.c
1697
c = -1;
sys/dev/usb/serial/usb_serial.c
1709
return (c);
sys/dev/usb/serial/usb_serial.c
1713
ucom_cnputc(struct consdev *cd, int c)
sys/dev/usb/serial/usb_serial.c
1731
ucom_cons_tx_buf[ucom_cons_tx_high] = c;
sys/dev/usb/serial/usb_serial.c
1835
ucom_gdbputc(int c)
sys/dev/usb/serial/usb_serial.c
1837
ucom_cnputc(NULL, c);
sys/dev/usb/serial/usb_serial.c
925
int c;
sys/dev/usb/serial/usb_serial.c
927
c = (char)sc->sc_jitterbuf[pos];
sys/dev/usb/serial/usb_serial.c
929
if (ttydisc_rint(tp, c, 0) == -1)
sys/dev/usb/storage/umass.c
2965
uint8_t *c = cbw->CBWCDB;
sys/dev/usb/storage/umass.c
2978
c[0], c[1], c[2], c[3], c[4], c[5], (clen > 6 ? "..." : ""),
sys/dev/usb/storage/umass.c
3003
uint8_t *c = cmd;
sys/dev/usb/storage/umass.c
3010
c[0], c[1], c[2], c[3], c[4], c[5], (cmdlen > 6 ? "..." : ""),
sys/dev/usb/usb_request.c
1116
uint16_t c;
sys/dev/usb/usb_request.c
1163
c = UGETW(temp + (2 * i));
sys/dev/usb/usb_request.c
1166
if (((c & 0xff00) == 0) && (swap & 1)) {
sys/dev/usb/usb_request.c
1168
*s = c;
sys/dev/usb/usb_request.c
1170
} else if (((c & 0x00ff) == 0) && (swap & 2)) {
sys/dev/usb/usb_request.c
1172
*s = c >> 8;
sys/dev/usb/usbdi.h
479
#define usb_callout_init_mtx(c,m,f) callout_init_mtx(&(c)->co,m,f)
sys/dev/usb/usbdi.h
480
#define usb_callout_reset(c,...) do { \
sys/dev/usb/usbdi.h
482
callout_reset(&(c)->co, __VA_ARGS__); \
sys/dev/usb/usbdi.h
484
#define usb_callout_reset_sbt(c,...) do { \
sys/dev/usb/usbdi.h
486
callout_reset_sbt(&(c)->co, __VA_ARGS__); \
sys/dev/usb/usbdi.h
488
#define usb_callout_stop(c) do { \
sys/dev/usb/usbdi.h
490
callout_stop(&(c)->co); \
sys/dev/usb/usbdi.h
497
(c)->co.c_func = &usbd_dummy_timeout; \
sys/dev/usb/usbdi.h
500
#define usb_callout_drain(c) callout_drain(&(c)->co)
sys/dev/usb/usbdi.h
501
#define usb_callout_pending(c) callout_pending(&(c)->co)
sys/dev/usb/wlan/if_mtw.c
132
#define MTW_CMDQ_GET(c) (atomic_fetchadd_32((c), 1) & MTW_CMDQ_MASQ)
sys/dev/usb/wlan/if_mtw.c
3716
mtw_set_chan(struct mtw_softc *sc, struct ieee80211_channel *c)
sys/dev/usb/wlan/if_mtw.c
3721
chan = ieee80211_chan2ieee(ic, c);
sys/dev/usb/wlan/if_mtw.c
4134
struct ieee80211_channel *c = ic->ic_curchan;
sys/dev/usb/wlan/if_mtw.c
4137
if (IEEE80211_IS_CHAN_5GHZ(c)) {
sys/dev/usb/wlan/if_mtw.c
4138
u_int chan = ieee80211_chan2ieee(ic, c);
sys/dev/usb/wlan/if_rum.c
2055
rum_select_band(struct rum_softc *sc, struct ieee80211_channel *c)
sys/dev/usb/wlan/if_rum.c
2062
if (IEEE80211_IS_CHAN_5GHZ(c)) {
sys/dev/usb/wlan/if_rum.c
2066
if ((IEEE80211_IS_CHAN_2GHZ(c) && sc->ext_2ghz_lna) ||
sys/dev/usb/wlan/if_rum.c
2067
(IEEE80211_IS_CHAN_5GHZ(c) && sc->ext_5ghz_lna)) {
sys/dev/usb/wlan/if_rum.c
2076
if ((IEEE80211_IS_CHAN_2GHZ(c) && sc->ext_2ghz_lna) ||
sys/dev/usb/wlan/if_rum.c
2077
(IEEE80211_IS_CHAN_5GHZ(c) && sc->ext_5ghz_lna)) {
sys/dev/usb/wlan/if_rum.c
2087
if (IEEE80211_IS_CHAN_2GHZ(c)) {
sys/dev/usb/wlan/if_rum.c
2097
rum_set_chan(struct rum_softc *sc, struct ieee80211_channel *c)
sys/dev/usb/wlan/if_rum.c
2105
chan = ieee80211_chan2ieee(ic, c);
sys/dev/usb/wlan/if_rum.c
2129
if (c->ic_flags != ic->ic_curchan->ic_flags) {
sys/dev/usb/wlan/if_rum.c
2130
rum_select_band(sc, c);
sys/dev/usb/wlan/if_rum.c
2133
ic->ic_curchan = c;
sys/dev/usb/wlan/if_run.c
126
#define RUN_CMDQ_GET(c) (atomic_fetchadd_32((c), 1) & RUN_CMDQ_MASQ)
sys/dev/usb/wlan/if_run.c
4890
run_set_chan(struct run_softc *sc, struct ieee80211_channel *c)
sys/dev/usb/wlan/if_run.c
4895
chan = ieee80211_chan2ieee(ic, c);
sys/dev/usb/wlan/if_run.c
5402
struct ieee80211_channel *c = ic->ic_curchan;
sys/dev/usb/wlan/if_run.c
5405
if (IEEE80211_IS_CHAN_5GHZ(c)) {
sys/dev/usb/wlan/if_run.c
5406
u_int chan = ieee80211_chan2ieee(ic, c);
sys/dev/usb/wlan/if_uath.c
1220
uath_switch_channel(struct uath_softc *sc, struct ieee80211_channel *c)
sys/dev/usb/wlan/if_uath.c
1227
error = uath_set_chan(sc, c);
sys/dev/usb/wlan/if_uath.c
1419
uath_set_chan(struct uath_softc *sc, struct ieee80211_channel *c)
sys/dev/usb/wlan/if_uath.c
1427
if (IEEE80211_IS_CHAN_2GHZ(c))
sys/dev/usb/wlan/if_uath.c
1429
if (IEEE80211_IS_CHAN_5GHZ(c))
sys/dev/usb/wlan/if_uath.c
1432
if (IEEE80211_IS_CHAN_OFDM(c))
sys/dev/usb/wlan/if_uath.c
1434
else if (IEEE80211_IS_CHAN_CCK(c))
sys/dev/usb/wlan/if_uath.c
1437
if (c->ic_flags & IEEE80211_CHAN_TURBO)
sys/dev/usb/wlan/if_uath.c
1439
reset.freq = htobe32(c->ic_freq);
sys/dev/usb/wlan/if_uath.c
1445
ieee80211_chan2ieee(ic, c),
sys/dev/usb/wlan/if_uath.c
2154
#define UATH_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/usb/wlan/if_uath.c
2155
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/usb/wlan/if_upgt.c
2025
#define UPGT_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/usb/wlan/if_upgt.c
2026
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/usb/wlan/if_upgt.c
882
upgt_set_chan(struct upgt_softc *sc, struct ieee80211_channel *c)
sys/dev/usb/wlan/if_upgt.c
892
channel = ieee80211_chan2ieee(ic, c);
sys/dev/usb/wlan/if_ural.c
1604
ural_set_chan(struct ural_softc *sc, struct ieee80211_channel *c)
sys/dev/usb/wlan/if_ural.c
1610
chan = ieee80211_chan2ieee(ic, c);
sys/dev/usb/wlan/if_ural.c
1614
if (IEEE80211_IS_CHAN_2GHZ(c))
sys/dev/usb/wlan/if_ural.c
1705
ural_set_basicrates(sc, c);
sys/dev/usb/wlan/if_ural.c
1813
ural_set_basicrates(struct ural_softc *sc, const struct ieee80211_channel *c)
sys/dev/usb/wlan/if_ural.c
1817
if (IEEE80211_IS_CHAN_5GHZ(c)) {
sys/dev/usb/wlan/if_ural.c
1820
} else if (IEEE80211_IS_CHAN_ANYG(c)) {
sys/dev/usb/wlan/if_urtw.c
4374
#define URTW_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/usb/wlan/if_urtw.c
4375
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/usb/wlan/if_zyd.c
1228
zyd_al2230_bandedge6(struct zyd_rf *rf, struct ieee80211_channel *c)
sys/dev/usb/wlan/if_zyd.c
1234
int chan = ieee80211_chan2ieee(ic, c);
sys/dev/usb/wlan/if_zyd.c
2053
zyd_set_chan(struct zyd_softc *sc, struct ieee80211_channel *c)
sys/dev/usb/wlan/if_zyd.c
2061
chan = ieee80211_chan2ieee(ic, c);
sys/dev/usb/wlan/if_zyd.c
2099
error = (*rf->bandedge6)(rf, c);
sys/dev/usb/wlan/if_zyd.c
2110
htole16(c->ic_freq);
sys/dev/usb/wlan/if_zyd.c
2112
htole16(c->ic_flags);
sys/dev/vge/if_vge.c
2474
#define VGE_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/vge/if_vge.c
2475
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/viapm/viapm.c
188
u_int8_t c;
sys/dev/viapm/viapm.c
213
c = pci_read_config(dev, VIAPM_586B_3040F_ACTIV, 1);
sys/dev/viapm/viapm.c
214
pci_write_config(dev, VIAPM_586B_3040F_ACTIV, c | 0x80, 1);
sys/dev/virtio/balloon/virtio_balloon.c
410
void *c;
sys/dev/virtio/balloon/virtio_balloon.c
428
while ((c = virtqueue_dequeue(vq, NULL)) == NULL)
sys/dev/virtio/balloon/virtio_balloon.c
432
KASSERT(c == vq, ("unexpected balloon operation response"));
sys/dev/virtio/scsi/virtio_scsi.c
126
static void vtscsi_complete_abort_task_cmd(struct vtscsi_softc *c,
sys/dev/vkbd/vkbd.c
520
int c;
sys/dev/vkbd/vkbd.c
529
c = q->q[q->head ++];
sys/dev/vkbd/vkbd.c
537
return (c);
sys/dev/vkbd/vkbd.c
724
int c;
sys/dev/vkbd/vkbd.c
733
c = vkbd_read_char(kbd, FALSE);
sys/dev/vkbd/vkbd.c
734
} while (c != NOKEY);
sys/dev/vkbd/vkbd.c
772
int c;
sys/dev/vkbd/vkbd.c
775
c = vkbd_data_read(state, wait);
sys/dev/vkbd/vkbd.c
778
if (c != -1)
sys/dev/vkbd/vkbd.c
781
return (KBD_IS_ACTIVE(kbd)? c : -1);
sys/dev/vmm/vmm_dev.c
208
int error, off, c, prot;
sys/dev/vmm/vmm_dev.c
228
c = min(uio->uio_resid, PAGE_SIZE - off);
sys/dev/vmm/vmm_dev.c
238
hpa = vm_gpa_hold_global(sc->vm, gpa, c, prot, &cookie);
sys/dev/vmm/vmm_dev.c
242
c, uio);
sys/dev/vmm/vmm_dev.c
246
error = uiomove(hpa, c, uio);
sys/dev/vmware/vmci/vmci_kernel_defs.h
23
#define CONST64U(c) UINT64_C(c)
sys/dev/vt/hw/fb/vt_fb.c
187
uint32_t c;
sys/dev/vt/hw/fb/vt_fb.c
191
c = info->fb_cmap[color];
sys/dev/vt/hw/fb/vt_fb.c
201
vt_fb_mem_wr1(info, o, c);
sys/dev/vt/hw/fb/vt_fb.c
204
vt_fb_mem_wr2(info, o, c);
sys/dev/vt/hw/fb/vt_fb.c
207
vt_fb_mem_wr3(info, o, c);
sys/dev/vt/hw/fb/vt_fb.c
210
vt_fb_mem_wr4(info, o, c);
sys/dev/vt/hw/fb/vt_fb.c
239
uint32_t c;
sys/dev/vt/hw/fb/vt_fb.c
243
c = info->fb_cmap[color];
sys/dev/vt/hw/fb/vt_fb.c
254
vt_fb_mem_wr1(info, h*info->fb_stride + o, c);
sys/dev/vt/hw/fb/vt_fb.c
259
vt_fb_mem_wr2(info, h*info->fb_stride + o, c);
sys/dev/vt/hw/fb/vt_fb.c
264
vt_fb_mem_wr3(info, h*info->fb_stride + o, c);
sys/dev/vt/hw/fb/vt_fb.c
270
vt_fb_mem_wr4(info, h*info->fb_stride + o, c);
sys/dev/vt/hw/fb/vt_fb.c
395
term_char_t c;
sys/dev/vt/hw/fb/vt_fb.c
410
c = VTBUF_GET_FIELD(&vw->vw_buf, row, col);
sys/dev/vt/hw/fb/vt_fb.c
411
pattern = vtfont_lookup(vf, c);
sys/dev/vt/hw/fb/vt_fb.c
412
vt_determine_colors(c,
sys/dev/vt/hw/fb/vt_fb.c
419
if (vd->vd_drawn && (vd->vd_drawn[z] == c) &&
sys/dev/vt/hw/fb/vt_fb.c
429
vd->vd_drawn[z] = c;
sys/dev/vt/hw/fb/vt_fb.c
522
term_color_t c;
sys/dev/vt/hw/fb/vt_fb.c
546
c = TC_BLACK;
sys/dev/vt/hw/fb/vt_fb.c
550
c = bg;
sys/dev/vt/hw/fb/vt_fb.c
553
vd->vd_driver->vd_blank(vd, c);
sys/dev/vt/hw/ofwfb/ofwfb.c
141
int c, l;
sys/dev/vt/hw/ofwfb/ofwfb.c
145
uint8_t c[4];
sys/dev/vt/hw/ofwfb/ofwfb.c
178
for (c = 0; c < width; c += 8) {
sys/dev/vt/hw/ofwfb/ofwfb.c
192
if (b & 0x80) ch1.c[0] = fg;
sys/dev/vt/hw/ofwfb/ofwfb.c
193
if (b & 0x40) ch1.c[1] = fg;
sys/dev/vt/hw/ofwfb/ofwfb.c
194
if (b & 0x20) ch1.c[2] = fg;
sys/dev/vt/hw/ofwfb/ofwfb.c
195
if (b & 0x10) ch1.c[3] = fg;
sys/dev/vt/hw/ofwfb/ofwfb.c
197
if (b & 0x08) ch2.c[0] = fg;
sys/dev/vt/hw/ofwfb/ofwfb.c
198
if (b & 0x04) ch2.c[1] = fg;
sys/dev/vt/hw/ofwfb/ofwfb.c
199
if (b & 0x02) ch2.c[2] = fg;
sys/dev/vt/hw/ofwfb/ofwfb.c
200
if (b & 0x01) ch2.c[3] = fg;
sys/dev/vt/hw/ofwfb/ofwfb.c
202
*(uint32_t *)(sc->fb_vbase + line + c) = ch1.l;
sys/dev/vt/hw/ofwfb/ofwfb.c
203
*(uint32_t *)(sc->fb_vbase + line + c + 4) =
sys/dev/vt/hw/ofwfb/ofwfb.c
212
for (c = 0;
sys/dev/vt/hw/ofwfb/ofwfb.c
213
c < width && x + c < vw->vw_draw_area.tr_end.tp_col;
sys/dev/vt/hw/ofwfb/ofwfb.c
214
c++) {
sys/dev/vt/hw/ofwfb/ofwfb.c
215
if (c % 8 == 0)
sys/dev/vt/hw/ofwfb/ofwfb.c
220
if (c % 8 == 0)
sys/dev/vt/hw/ofwfb/ofwfb.c
230
*(uint8_t *)(sc->fb_vbase + line + c) =
sys/dev/vt/hw/ofwfb/ofwfb.c
234
*(uint32_t *)(sc->fb_vbase + line + 4*c)
sys/dev/vt/hw/ofwfb/ofwfb.c
263
term_char_t c;
sys/dev/vt/hw/ofwfb/ofwfb.c
277
c = VTBUF_GET_FIELD(&vw->vw_buf, row, col);
sys/dev/vt/hw/ofwfb/ofwfb.c
278
pattern = vtfont_lookup(vf, c);
sys/dev/vt/hw/ofwfb/ofwfb.c
279
vt_determine_colors(c,
sys/dev/vt/hw/vga/vt_vga.c
299
vga_get_cp437(term_char_t c)
sys/dev/vt/hw/vga/vt_vga.c
306
if (c < cp437table[0].unicode_base ||
sys/dev/vt/hw/vga/vt_vga.c
307
c > cp437table[max].unicode_base + cp437table[max].length)
sys/dev/vt/hw/vga/vt_vga.c
312
if (c < cp437table[mid].unicode_base)
sys/dev/vt/hw/vga/vt_vga.c
314
else if (c > cp437table[mid].unicode_base +
sys/dev/vt/hw/vga/vt_vga.c
318
return (c - cp437table[mid].unicode_base +
sys/dev/vt/hw/vga/vt_vga.c
619
term_char_t c;
sys/dev/vt/hw/vga/vt_vga.c
662
c = VTBUF_GET_FIELD(vb, row, col);
sys/dev/vt/hw/vga/vt_vga.c
663
src = vtfont_lookup(vf, c);
sys/dev/vt/hw/vga/vt_vga.c
665
vt_determine_colors(c, VTBUF_ISCURSOR(vb, row, col), &fg, &bg);
sys/dev/vt/hw/vga/vt_vga.c
870
term_char_t c;
sys/dev/vt/hw/vga/vt_vga.c
886
c = VTBUF_GET_FIELD(vb, row, col);
sys/dev/vt/hw/vga/vt_vga.c
887
vt_determine_colors(c, VTBUF_ISCURSOR(vb, row, col),
sys/dev/vt/hw/vga/vt_vga.c
894
if (vd->vd_drawn && (vd->vd_drawn[z] == c) &&
sys/dev/vt/hw/vga/vt_vga.c
904
ch = vga_get_cp437(TCHAR_CHARACTER(c));
sys/dev/vt/hw/vga/vt_vga.c
915
vd->vd_drawn[z] = c;
sys/dev/vt/vt.h
268
#define VTBUF_GET_FIELD(vb, r, c) \
sys/dev/vt/vt.h
269
((vb)->vb_rows[((vb)->vb_roffset + (r)) % VTBUF_MAX_HEIGHT(vb)][(c)])
sys/dev/vt/vt.h
270
#define VTBUF_FIELD(vb, r, c) \
sys/dev/vt/vt.h
271
((vb)->vb_rows[((vb)->vb_curroffset + (r)) % VTBUF_MAX_HEIGHT(vb)][(c)])
sys/dev/vt/vt.h
272
#define VTBUF_ISCURSOR(vb, r, c) \
sys/dev/vt/vt.h
273
vtbuf_iscursor((vb), (r), (c))
sys/dev/vt/vt.h
435
const uint8_t *vtfont_lookup(const struct vt_font *vf, term_char_t c);
sys/dev/vt/vt.h
451
void vt_determine_colors(term_char_t c, int cursor,
sys/dev/vt/vt_buf.c
368
vtbuf_do_fill(struct vt_buf *vb, const term_rect_t *r, term_char_t c)
sys/dev/vt/vt_buf.c
377
row[pc] = c;
sys/dev/vt/vt_buf.c
383
vtbuf_fill(struct vt_buf *vb, const term_rect_t *r, term_char_t c)
sys/dev/vt/vt_buf.c
400
vtbuf_do_fill(vb, r, c);
sys/dev/vt/vt_buf.c
49
#define POS_INDEX(c, r) (((r) << 12) + (c))
sys/dev/vt/vt_buf.c
501
unsigned int w, h, c, r, old_history_size;
sys/dev/vt/vt_buf.c
574
for (c = MIN(p->tp_col, w); c < p->tp_col; c++) {
sys/dev/vt/vt_buf.c
575
row[c] = VTBUF_SPACE_CHAR(ch);
sys/dev/vt/vt_buf.c
582
for (c = MIN(p->tp_col, w); c < p->tp_col; c++) {
sys/dev/vt/vt_buf.c
583
row[c] = VTBUF_SPACE_CHAR(ch);
sys/dev/vt/vt_buf.c
631
for (c = MIN(p->tp_col, w); c < p->tp_col; c++) {
sys/dev/vt/vt_buf.c
632
row[c] = VTBUF_SPACE_CHAR(ch);
sys/dev/vt/vt_buf.c
664
vtbuf_putchar(struct vt_buf *vb, const term_pos_t *p, term_char_t c)
sys/dev/vt/vt_buf.c
677
if (row[p->tp_col] != c) {
sys/dev/vt/vt_buf.c
678
row[p->tp_col] = c;
sys/dev/vt/vt_buf.c
773
int i, j, r, c, cs, ce;
sys/dev/vt/vt_buf.c
795
for (c = cs; c < ce; c++)
sys/dev/vt/vt_buf.c
796
buf[i++] = vb->vb_rows[r][c];
sys/dev/vt/vt_core.c
1009
kdb_alt_break(c, &vd->vd_altbrk);
sys/dev/vt/vt_core.c
1011
terminal_input_char(vw->vw_terminal, KEYCHAR(c));
sys/dev/vt/vt_core.c
1013
terminal_input_raw(vw->vw_terminal, c);
sys/dev/vt/vt_core.c
1022
int c;
sys/dev/vt/vt_core.c
1037
while ((c = kbdd_read_char(kbd, 0)) != NOKEY)
sys/dev/vt/vt_core.c
1038
vt_processkey(kbd, vd, c);
sys/dev/vt/vt_core.c
1188
vtterm_putchar(struct terminal *tm, const term_pos_t *p, term_char_t c)
sys/dev/vt/vt_core.c
1192
vtbuf_putchar(&vw->vw_buf, p, c);
sys/dev/vt/vt_core.c
1196
vtterm_fill(struct terminal *tm, const term_rect_t *r, term_char_t c)
sys/dev/vt/vt_core.c
1200
vtbuf_fill(&vw->vw_buf, r, c);
sys/dev/vt/vt_core.c
1243
vt_determine_colors(term_char_t c, int cursor,
sys/dev/vt/vt_core.c
1251
*fg = TCHAR_FGCOLOR(c);
sys/dev/vt/vt_core.c
1252
if (TCHAR_FORMAT(c) & TF_BOLD)
sys/dev/vt/vt_core.c
1254
*bg = TCHAR_BGCOLOR(c);
sys/dev/vt/vt_core.c
1255
if (TCHAR_FORMAT(c) & TF_BLINK)
sys/dev/vt/vt_core.c
1258
if (TCHAR_FORMAT(c) & TF_REVERSE)
sys/dev/vt/vt_core.c
1337
term_color_t c)
sys/dev/vt/vt_core.c
1347
area->tr_begin.tp_row - 1, 1, c);
sys/dev/vt/vt_core.c
1352
area->tr_begin.tp_col - 1, area->tr_end.tp_row - 1, 1, c);
sys/dev/vt/vt_core.c
1357
vd->vd_width - 1, area->tr_end.tp_row - 1, 1, c);
sys/dev/vt/vt_core.c
1362
vd->vd_height - 1, 1, c);
sys/dev/vt/vt_core.c
1370
term_char_t c;
sys/dev/vt/vt_core.c
1382
c = VTBUF_GET_FIELD(&vw->vw_buf, row, col);
sys/dev/vt/vt_core.c
1383
vt_determine_colors(c,
sys/dev/vt/vt_core.c
1386
if (vd->vd_drawn && (vd->vd_drawn[z] == c) &&
sys/dev/vt/vt_core.c
1396
vd->vd_drawn[z] = c;
sys/dev/vt/vt_core.c
1411
term_char_t c;
sys/dev/vt/vt_core.c
1433
c = vd->vd_drawn[z];
sys/dev/vt/vt_core.c
1437
pattern = vtfont_lookup(vf, c);
sys/dev/vt/vt_core.c
1933
u_int c;
sys/dev/vt/vt_core.c
1957
c = kbdd_read_char(kbd, 0);
sys/dev/vt/vt_core.c
1959
if (c & RELKEY)
sys/dev/vt/vt_core.c
1963
vt_scrollmode_kbdevent(vw, c, 1/* Console mode */);
sys/dev/vt/vt_core.c
1969
if (c & SPCLKEY) {
sys/dev/vt/vt_core.c
1970
switch (c) {
sys/dev/vt/vt_core.c
2004
} else if (KEYFLAGS(c) == 0) {
sys/dev/vt/vt_core.c
2005
return (KEYCHAR(c));
sys/dev/vt/vt_core.c
758
vt_machine_kbdevent(struct vt_device *vd, int c)
sys/dev/vt/vt_core.c
761
switch (c) {
sys/dev/vt/vt_core.c
819
vt_scrollmode_kbdevent(struct vt_window *vw, int c, int console)
sys/dev/vt/vt_core.c
826
if ((c & SPCLKEY) == 0)
sys/dev/vt/vt_core.c
829
c &= ~SPCLKEY;
sys/dev/vt/vt_core.c
832
if (c >= F_SCR && c <= MIN(L_SCR, F_SCR + VT_MAXWINDOWS - 1)) {
sys/dev/vt/vt_core.c
833
vw = vd->vd_windows[c - F_SCR];
sys/dev/vt/vt_core.c
840
switch (c) {
sys/dev/vt/vt_core.c
875
vt_processkey(keyboard_t *kbd, struct vt_device *vd, int c)
sys/dev/vt/vt_core.c
880
random_harvest_queue(&c, sizeof(c), RANDOM_KEYBOARD);
sys/dev/vt/vt_core.c
883
if (c & RELKEY) {
sys/dev/vt/vt_core.c
884
switch (c & ~RELKEY) {
sys/dev/vt/vt_core.c
894
switch (c & ~RELKEY) {
sys/dev/vt/vt_core.c
903
if (c & RELKEY)
sys/dev/vt/vt_core.c
908
if (vt_machine_kbdevent(vd, c))
sys/dev/vt/vt_core.c
912
vt_scrollmode_kbdevent(vw, c, 0/* Not a console */);
sys/dev/vt/vt_core.c
917
if (c & SPCLKEY) {
sys/dev/vt/vt_core.c
918
c &= ~SPCLKEY;
sys/dev/vt/vt_core.c
920
if (c >= F_SCR && c <= MIN(L_SCR, F_SCR + VT_MAXWINDOWS - 1)) {
sys/dev/vt/vt_core.c
921
vw = vd->vd_windows[c - F_SCR];
sys/dev/vt/vt_core.c
926
switch (c) {
sys/dev/vt/vt_core.c
929
c = (vw->vw_number + 1) % VT_MAXWINDOWS;
sys/dev/vt/vt_core.c
930
vw = vd->vd_windows[c];
sys/dev/vt/vt_core.c
935
c = (vw->vw_number + VT_MAXWINDOWS - 1) % VT_MAXWINDOWS;
sys/dev/vt/vt_core.c
936
vw = vd->vd_windows[c];
sys/dev/vt/vt_core.c
964
TKEY_F1 + c - (FKEY | F(1)));
sys/dev/vt/vt_core.c
997
} else if (KEYFLAGS(c) == 0) {
sys/dev/vt/vt_font.c
100
if (TCHAR_FORMAT(c) & TF_BOLD) {
sys/dev/vt/vt_font.c
83
vtfont_lookup(const struct vt_font *vf, term_char_t c)
sys/dev/vt/vt_font.c
91
src = TCHAR_CHARACTER(c);
sys/dev/vt/vt_font.c
92
if (TCHAR_FORMAT(c) & TF_CJK_RIGHT) {
sys/dev/vte/if_vte.c
534
#define VTE_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/vte/if_vte.c
535
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/wg/wg_crypto.c
128
#define G(r, i, a, b, c, d) do { \
sys/dev/wg/wg_crypto.c
131
c += d; \
sys/dev/wg/wg_crypto.c
132
b = ror32(b ^ c, 12); \
sys/dev/wg/wg_crypto.c
135
c += d; \
sys/dev/wg/wg_crypto.c
136
b = ror32(b ^ c, 7); \
sys/dev/wg/wg_noise.c
1233
noise_kdf(uint8_t *a, uint8_t *b, uint8_t *c, const uint8_t *x,
sys/dev/wg/wg_noise.c
1259
if (c == NULL || c_len == 0)
sys/dev/wg/wg_noise.c
1265
memcpy(c, out, c_len);
sys/dev/wpi/if_wpi.c
1485
wpi_find_eeprom_channel(struct wpi_softc *sc, struct ieee80211_channel *c)
sys/dev/wpi/if_wpi.c
1491
if (wpi_bands[j].chan[i] == c->ic_ieee &&
sys/dev/wpi/if_wpi.c
1492
((j == 0) ^ IEEE80211_IS_CHAN_A(c)) == 1)
sys/dev/wpi/if_wpi.c
1521
struct ieee80211_channel *c = &chans[i];
sys/dev/wpi/if_wpi.c
1524
channel = wpi_find_eeprom_channel(sc, c);
sys/dev/wpi/if_wpi.c
1527
__func__, c->ic_ieee, c->ic_freq, c->ic_flags);
sys/dev/wpi/if_wpi.c
1530
c->ic_flags |= wpi_eeprom_channel_flags(channel);
sys/dev/wpi/if_wpi.c
3935
struct ieee80211_channel *c = ic->ic_curchan;
sys/dev/wpi/if_wpi.c
3959
sc->rxon.chan = ieee80211_chan2ieee(ic, c);
sys/dev/wpi/if_wpi.c
3961
if (IEEE80211_IS_CHAN_2GHZ(c))
sys/dev/wpi/if_wpi.c
4014
struct ieee80211_channel *c, uint8_t n_probes)
sys/dev/wpi/if_wpi.c
4017
if (c == NULL || IEEE80211_IS_CHAN_2GHZ(c)) {
sys/dev/wpi/if_wpi.c
4061
wpi_get_passive_dwell_time(struct wpi_softc *sc, struct ieee80211_channel *c)
sys/dev/wpi/if_wpi.c
4065
if (c == NULL || IEEE80211_IS_CHAN_2GHZ(c))
sys/dev/wpi/if_wpi.c
4090
wpi_scan(struct wpi_softc *sc, struct ieee80211_channel *c)
sys/dev/wpi/if_wpi.c
4160
if (IEEE80211_IS_CHAN_5GHZ(c)) {
sys/dev/wpi/if_wpi.c
4213
chan->chan = ieee80211_chan2ieee(ic, c);
sys/dev/wpi/if_wpi.c
4221
if (!IEEE80211_IS_CHAN_PASSIVE(c))
sys/dev/wpi/if_wpi.c
4227
dwell_active = wpi_get_active_dwell_time(sc, c, nssid);
sys/dev/wpi/if_wpi.c
4228
dwell_passive = wpi_get_passive_dwell_time(sc, c);
sys/dev/wpi/if_wpi.c
4239
if (IEEE80211_IS_CHAN_5GHZ(c))
sys/dev/wpi/if_wpi.c
4245
chan->chan, IEEE80211_IS_CHAN_PASSIVE(c));
sys/dev/wpi/if_wpi.c
4291
struct ieee80211_channel *c = ni->ni_chan;
sys/dev/wpi/if_wpi.c
4302
sc->rxon.chan = ieee80211_chan2ieee(ic, c);
sys/dev/wpi/if_wpi.c
4304
if (IEEE80211_IS_CHAN_2GHZ(c))
sys/dev/wpi/if_wpi.c
4310
if (IEEE80211_IS_CHAN_A(c)) {
sys/dev/wpi/if_wpi.c
4313
} else if (IEEE80211_IS_CHAN_B(c)) {
sys/dev/wpi/if_wpi.c
4493
struct ieee80211_channel *c = ni->ni_chan;
sys/dev/wpi/if_wpi.c
4505
if (c == IEEE80211_CHAN_ANYC) {
sys/dev/wpi/if_wpi.c
4521
sc->rxon.chan = ieee80211_chan2ieee(ic, c);
sys/dev/wpi/if_wpi.c
4523
if (IEEE80211_IS_CHAN_2GHZ(c))
sys/dev/wpi/if_wpi.c
4529
if (IEEE80211_IS_CHAN_A(c)) {
sys/dev/wpi/if_wpi.c
4532
} else if (IEEE80211_IS_CHAN_B(c)) {
sys/dev/wpi/if_wpi.c
5583
const struct ieee80211_channel *c = ic->ic_curchan;
sys/dev/wpi/if_wpi.c
5590
sc->sc_rxtap.wr_chan_freq = htole16(c->ic_freq);
sys/dev/wpi/if_wpi.c
5591
sc->sc_rxtap.wr_chan_flags = htole16(c->ic_flags);
sys/dev/wpi/if_wpi.c
5594
sc->sc_txtap.wt_chan_freq = htole16(c->ic_freq);
sys/dev/wpi/if_wpi.c
5595
sc->sc_txtap.wt_chan_flags = htole16(c->ic_flags);
sys/dev/wpi/if_wpi.c
5604
sc->rxon.chan = ieee80211_chan2ieee(ic, c);
sys/dev/wpi/if_wpi.c
5605
if (IEEE80211_IS_CHAN_2GHZ(c)) {
sys/dev/xdma/controller/pl330.c
160
int c;
sys/dev/xdma/controller/pl330.c
172
for (c = 0; c < PL330_NCHANNELS; c++) {
sys/dev/xdma/controller/pl330.c
173
if ((pending & (1 << c)) == 0) {
sys/dev/xdma/controller/pl330.c
176
chan = &sc->channels[c];
sys/dev/xdma/xdma_mbuf.c
112
uint32_t c;
sys/dev/xdma/xdma_mbuf.c
114
c = 0;
sys/dev/xdma/xdma_mbuf.c
117
c++;
sys/dev/xdma/xdma_mbuf.c
119
return (c);
sys/dev/xdma/xdma_mbuf.c
127
uint32_t c;
sys/dev/xdma/xdma_mbuf.c
131
c = xdma_mbuf_chain_count(xr->m);
sys/dev/xdma/xdma_mbuf.c
132
if (c == 1)
sys/dev/xdma/xdma_mbuf.c
133
return (c); /* Nothing to do. */
sys/dev/xdma/xdma_mbuf.c
139
return (c);
sys/dev/xdma/xdma_mbuf.c
143
c = 1;
sys/dev/xdma/xdma_mbuf.c
145
return (c);
sys/dev/xdma/xdma_sg.c
570
uint32_t c;
sys/dev/xdma/xdma_sg.c
579
c = 0;
sys/dev/xdma/xdma_sg.c
592
(c > xchan->maxnsegs))
sys/dev/xdma/xdma_sg.c
593
c = xdma_mbuf_defrag(xchan, xr);
sys/dev/xdma/xdma_sg.c
598
c = 1;
sys/dev/xdma/xdma_sg.c
601
if (capacity <= (c + n)) {
sys/dev/xdma/xdma_sg.c
609
if ((c + n + xchan->maxnsegs) >= XDMA_SGLIST_MAXLEN) {
sys/dev/xen/console/xen_console.c
148
putchar(int c, void *arg)
sys/dev/xen/console/xen_console.c
159
xen_emergency_print((char *)&c, 1);
sys/dev/xen/console/xen_console.c
161
pca->buf[pca->n_next++] = c;
sys/dev/xen/console/xen_console.c
162
if ((pca->size == pca->n_next) || (c = '\0')) {
sys/dev/xen/console/xen_console.c
478
xencons_putc(struct xencons_priv *cons, int c, bool force_flush)
sys/dev/xen/console/xen_console.c
483
cons->wbuf[WBUF_MASK(cons->wp++)] = c;
sys/dev/xen/console/xen_console.c
514
char c;
sys/dev/xen/console/xen_console.c
529
while (!cons_full && ttydisc_getc(tp, &c, 1) == 1)
sys/dev/xen/console/xen_console.c
530
cons_full = xencons_putc(cons, c, false);
sys/dev/xen/console/xen_console.c
631
xencons_cnputc(struct consdev *dev, int c)
sys/dev/xen/console/xen_console.c
637
xencons_putc(&main_cons, c, true);
sys/dev/xen/evtchn/evtchn_dev.c
239
unsigned int c, p, bytes1 = 0, bytes2 = 0;
sys/dev/xen/evtchn/evtchn_dev.c
263
c = u->ring_cons;
sys/dev/xen/evtchn/evtchn_dev.c
265
if (c != p)
sys/dev/xen/evtchn/evtchn_dev.c
279
if (((c ^ p) & EVTCHN_RING_SIZE) != 0) {
sys/dev/xen/evtchn/evtchn_dev.c
280
bytes1 = (EVTCHN_RING_SIZE - EVTCHN_RING_MASK(c)) *
sys/dev/xen/evtchn/evtchn_dev.c
284
bytes1 = (p - c) * sizeof(evtchn_port_t);
sys/dev/xen/evtchn/evtchn_dev.c
299
if (uiomove(&u->ring[EVTCHN_RING_MASK(c)], bytes1, uio) ||
sys/dev/xl/if_xl.c
1742
xl_newbuf(struct xl_softc *sc, struct xl_chain_onefrag *c)
sys/dev/xl/if_xl.c
1771
bus_dmamap_unload(sc->xl_mtag, c->xl_map);
sys/dev/xl/if_xl.c
1772
map = c->xl_map;
sys/dev/xl/if_xl.c
1773
c->xl_map = sc->xl_tmpmap;
sys/dev/xl/if_xl.c
1775
c->xl_mbuf = m_new;
sys/dev/xl/if_xl.c
1776
c->xl_ptr->xl_frag.xl_len = htole32(m_new->m_len | XL_LAST_FRAG);
sys/dev/xl/if_xl.c
1777
c->xl_ptr->xl_frag.xl_addr = htole32(segs->ds_addr);
sys/dev/xl/if_xl.c
1778
c->xl_ptr->xl_status = 0;
sys/dev/xl/if_xl.c
1779
bus_dmamap_sync(sc->xl_mtag, c->xl_map, BUS_DMASYNC_PREREAD);
sys/dev/xl/if_xl.c
2086
struct xl_chain *c;
sys/dev/xl/if_xl.c
2089
c = &sc->xl_cdata.xl_tx_chain[i];
sys/dev/xl/if_xl.c
2091
c->xl_phys);
sys/dev/xl/if_xl.c
2323
xl_encap(struct xl_softc *sc, struct xl_chain *c, struct mbuf **m_head)
sys/dev/xl/if_xl.c
2332
error = bus_dmamap_load_mbuf_sg(sc->xl_mtag, c->xl_map, *m_head,
sys/dev/xl/if_xl.c
2357
error = bus_dmamap_load_mbuf_sg(sc->xl_mtag, c->xl_map,
sys/dev/xl/if_xl.c
2374
bus_dmamap_sync(sc->xl_mtag, c->xl_map, BUS_DMASYNC_PREWRITE);
sys/dev/xl/if_xl.c
2380
c->xl_ptr->xl_frag[i].xl_addr =
sys/dev/xl/if_xl.c
2382
c->xl_ptr->xl_frag[i].xl_len =
sys/dev/xl/if_xl.c
2386
c->xl_ptr->xl_frag[nseg - 1].xl_len |= htole32(XL_LAST_FRAG);
sys/dev/xl/if_xl.c
2403
c->xl_ptr->xl_status = htole32(status);
sys/dev/xl/if_xl.c
2404
c->xl_ptr->xl_next = 0;
sys/dev/xl/if_xl.c
2406
c->xl_mbuf = *m_head;
sys/fs/cd9660/cd9660_rrip.c
469
u_short c;
sys/fs/cd9660/cd9660_rrip.c
479
isochar(isodir->name, pwhead, ana->imp->joliet_level, &c, NULL,
sys/fs/cd9660/cd9660_rrip.c
483
if (c != 0 || isonum_733(isodir->extent) != ana->imp->root_extent)
sys/fs/cd9660/cd9660_rrip.c
606
u_short c;
sys/fs/cd9660/cd9660_rrip.c
617
imp->joliet_level, &c, NULL, imp->im_flags, imp->im_d2l);
sys/fs/cd9660/cd9660_rrip.c
619
if (c == 0 || c == 1) {
sys/fs/cd9660/cd9660_util.c
105
u_short c, d;
sys/fs/cd9660/cd9660_util.c
113
isofn += isochar(isofn, isoend, joliet_level, &c, NULL, flags, handle);
sys/fs/cd9660/cd9660_util.c
114
if (c == ';') {
sys/fs/cd9660/cd9660_util.c
122
for (j = 0; isofn != isoend; j = j * 10 + c - '0')
sys/fs/cd9660/cd9660_util.c
124
joliet_level, &c,
sys/fs/cd9660/cd9660_util.c
128
if (c != d) {
sys/fs/cd9660/cd9660_util.c
129
if (c >= 'A' && c <= 'Z') {
sys/fs/cd9660/cd9660_util.c
130
if (c + ('a' - 'A') != d) {
sys/fs/cd9660/cd9660_util.c
132
return d - ('a' - 'A') - c;
sys/fs/cd9660/cd9660_util.c
134
return d - c;
sys/fs/cd9660/cd9660_util.c
137
return d - c;
sys/fs/cd9660/cd9660_util.c
141
isofn += isochar(isofn, isoend, joliet_level, &c, NULL, flags, handle);
sys/fs/cd9660/cd9660_util.c
142
switch (c) {
sys/fs/cd9660/cd9660_util.c
144
return -c;
sys/fs/cd9660/cd9660_util.c
147
isochar(isofn, isoend, joliet_level, &c,
sys/fs/cd9660/cd9660_util.c
149
if (c == ';')
sys/fs/cd9660/cd9660_util.c
167
u_short c, d = '\0';
sys/fs/cd9660/cd9660_util.c
175
infn += isochar(infn, infnend, joliet_level, &c, &clen, flags, handle);
sys/fs/cd9660/cd9660_util.c
177
if (!original && !joliet_level && c >= 'A' && c <= 'Z')
sys/fs/cd9660/cd9660_util.c
178
c += ('a' - 'A');
sys/fs/cd9660/cd9660_util.c
179
else if (!original && c == ';') {
sys/fs/cd9660/cd9660_util.c
183
d = c;
sys/fs/cd9660/cd9660_util.c
185
*outp++ = c >> (clen << 3);
sys/fs/cd9660/cd9660_util.c
199
u_short c = '\0';
sys/fs/cd9660/cd9660_util.c
215
while(len--) c |= (*(string - len - 1) & 0xff) << (len << 3);
sys/fs/cd9660/cd9660_util.c
216
return (c);
sys/fs/cd9660/cd9660_util.c
55
isochar(u_char *isofn, u_char *isoend, int joliet_level, u_short *c, int *clen,
sys/fs/cd9660/cd9660_util.c
61
*c = *isofn++;
sys/fs/cd9660/cd9660_util.c
78
*c = '\0';
sys/fs/cd9660/cd9660_util.c
80
*c |= (*(outp - len - 1) & 0xff) << (len << 3);
sys/fs/cd9660/cd9660_util.c
82
switch (*c) {
sys/fs/cd9660/cd9660_util.c
84
*c = '?';
sys/fs/cd9660/cd9660_util.c
87
*c = *isofn;
sys/fs/cuse/cuse.c
397
int c;
sys/fs/cuse/cuse.c
399
while (((c = *ptr) != 0)) {
sys/fs/cuse/cuse.c
400
if ((c >= 'a') && (c <= 'z')) {
sys/fs/cuse/cuse.c
404
if ((c >= 'A') && (c <= 'Z')) {
sys/fs/cuse/cuse.c
408
if ((c >= '0') && (c <= '9')) {
sys/fs/cuse/cuse.c
412
if ((c == '.') || (c == '_') || (c == '/')) {
sys/fs/cuse/cuse_defs.h
72
#define CUSE_MAKE_ID(a,b,c,u) ((((a) & 0x7F) << 24)| \
sys/fs/cuse/cuse_defs.h
73
(((b) & 0xFF) << 16)|(((c) & 0xFF) << 8)|((u) & 0xFF))
sys/fs/devfs/devfs_int.h
75
#define cdev2priv(c) __containerof(c, struct cdev_priv, cdp_c)
sys/fs/devfs/devfs_vnops.c
1782
int c, error;
sys/fs/devfs/devfs_vnops.c
1809
c = 0;
sys/fs/devfs/devfs_vnops.c
1827
c = 1;
sys/fs/devfs/devfs_vnops.c
1837
c = 1;
sys/fs/devfs/devfs_vnops.c
1856
c = 1;
sys/fs/devfs/devfs_vnops.c
1859
if (c) {
sys/fs/ext2fs/ext2_hash.c
100
(a) += H ((b), (c), (d)) + (x) + (uint32_t)0x6ED9EBA1; \
sys/fs/ext2fs/ext2_hash.c
118
uint32_t a = hash[0], b = hash[1], c = hash[2], d = hash[3];
sys/fs/ext2fs/ext2_hash.c
121
FF(a, b, c, d, data[0], 3);
sys/fs/ext2fs/ext2_hash.c
122
FF(d, a, b, c, data[1], 7);
sys/fs/ext2fs/ext2_hash.c
123
FF(c, d, a, b, data[2], 11);
sys/fs/ext2fs/ext2_hash.c
124
FF(b, c, d, a, data[3], 19);
sys/fs/ext2fs/ext2_hash.c
125
FF(a, b, c, d, data[4], 3);
sys/fs/ext2fs/ext2_hash.c
126
FF(d, a, b, c, data[5], 7);
sys/fs/ext2fs/ext2_hash.c
127
FF(c, d, a, b, data[6], 11);
sys/fs/ext2fs/ext2_hash.c
128
FF(b, c, d, a, data[7], 19);
sys/fs/ext2fs/ext2_hash.c
131
GG(a, b, c, d, data[1], 3);
sys/fs/ext2fs/ext2_hash.c
132
GG(d, a, b, c, data[3], 5);
sys/fs/ext2fs/ext2_hash.c
133
GG(c, d, a, b, data[5], 9);
sys/fs/ext2fs/ext2_hash.c
134
GG(b, c, d, a, data[7], 13);
sys/fs/ext2fs/ext2_hash.c
135
GG(a, b, c, d, data[0], 3);
sys/fs/ext2fs/ext2_hash.c
136
GG(d, a, b, c, data[2], 5);
sys/fs/ext2fs/ext2_hash.c
137
GG(c, d, a, b, data[4], 9);
sys/fs/ext2fs/ext2_hash.c
138
GG(b, c, d, a, data[6], 13);
sys/fs/ext2fs/ext2_hash.c
141
HH(a, b, c, d, data[3], 3);
sys/fs/ext2fs/ext2_hash.c
142
HH(d, a, b, c, data[7], 9);
sys/fs/ext2fs/ext2_hash.c
143
HH(c, d, a, b, data[2], 11);
sys/fs/ext2fs/ext2_hash.c
144
HH(b, c, d, a, data[6], 15);
sys/fs/ext2fs/ext2_hash.c
145
HH(a, b, c, d, data[1], 3);
sys/fs/ext2fs/ext2_hash.c
146
HH(d, a, b, c, data[5], 9);
sys/fs/ext2fs/ext2_hash.c
147
HH(c, d, a, b, data[0], 11);
sys/fs/ext2fs/ext2_hash.c
148
HH(b, c, d, a, data[4], 15);
sys/fs/ext2fs/ext2_hash.c
152
hash[2] += c;
sys/fs/ext2fs/ext2_hash.c
89
#define FF(a, b, c, d, x, s) { \
sys/fs/ext2fs/ext2_hash.c
90
(a) += F ((b), (c), (d)) + (x); \
sys/fs/ext2fs/ext2_hash.c
94
#define GG(a, b, c, d, x, s) { \
sys/fs/ext2fs/ext2_hash.c
95
(a) += G ((b), (c), (d)) + (x) + (uint32_t)0x5A827999; \
sys/fs/ext2fs/ext2_hash.c
99
#define HH(a, b, c, d, x, s) { \
sys/fs/msdosfs/msdosfs_conv.c
242
u_char *c, tmpbuf[5];
sys/fs/msdosfs/msdosfs_conv.c
257
c = dos2unixchr(tmpbuf, __DECONST(const u_char **, &dn), &i,
sys/fs/msdosfs/msdosfs_conv.c
259
while (*c != '\0') {
sys/fs/msdosfs/msdosfs_conv.c
260
*un++ = *c++;
sys/fs/msdosfs/msdosfs_conv.c
274
c = dos2unixchr(tmpbuf, __DECONST(const u_char **, &dn),
sys/fs/msdosfs/msdosfs_conv.c
276
while (*c != '\0') {
sys/fs/msdosfs/msdosfs_conv.c
277
*un++ = *c++;
sys/fs/msdosfs/msdosfs_conv.c
307
uint16_t c;
sys/fs/msdosfs/msdosfs_conv.c
384
c = unix2doschr(&cp, (size_t *)&i, pmp);
sys/fs/msdosfs/msdosfs_conv.c
385
if (c & 0xff00) {
sys/fs/msdosfs/msdosfs_conv.c
386
dn[j] = c >> 8;
sys/fs/msdosfs/msdosfs_conv.c
388
dn[j] = c;
sys/fs/msdosfs/msdosfs_conv.c
398
dn[j] = c;
sys/fs/msdosfs/msdosfs_conv.c
423
c = unix2doschr(&un, &i, pmp);
sys/fs/msdosfs/msdosfs_conv.c
424
if (c & 0xff00) {
sys/fs/msdosfs/msdosfs_conv.c
425
dn[j] = c >> 8;
sys/fs/msdosfs/msdosfs_conv.c
427
dn[j] = c;
sys/fs/msdosfs/msdosfs_conv.c
437
dn[j] = c;
sys/fs/msdosfs/msdosfs_conv.c
632
u_char *c, tmpbuf[5];
sys/fs/msdosfs/msdosfs_conv.c
669
c = win2unixchr(tmpbuf, code, pmp);
sys/fs/msdosfs/msdosfs_conv.c
670
while (*c != '\0')
sys/fs/msdosfs/msdosfs_conv.c
671
*np++ = *c++;
sys/fs/msdosfs/msdosfs_conv.c
689
c = win2unixchr(tmpbuf, code, pmp);
sys/fs/msdosfs/msdosfs_conv.c
690
while (*c != '\0')
sys/fs/msdosfs/msdosfs_conv.c
691
*np++ = *c++;
sys/fs/msdosfs/msdosfs_conv.c
709
c = win2unixchr(tmpbuf, code, pmp);
sys/fs/msdosfs/msdosfs_conv.c
710
while (*c != '\0')
sys/fs/msdosfs/msdosfs_conv.c
711
*np++ = *c++;
sys/fs/msdosfs/msdosfs_conv.c
800
u_char c, *outp, *outp1;
sys/fs/msdosfs/msdosfs_conv.c
830
c = *(*instr)++;
sys/fs/msdosfs/msdosfs_conv.c
831
c = dos2unix[c];
sys/fs/msdosfs/msdosfs_conv.c
833
c = u2l[c];
sys/fs/msdosfs/msdosfs_conv.c
834
if (c == '/')
sys/fs/msdosfs/msdosfs_conv.c
835
c = '?';
sys/fs/msdosfs/msdosfs_conv.c
836
*outp++ = c;
sys/fs/msdosfs/msdosfs_conv.c
851
u_char c;
sys/fs/msdosfs/msdosfs_conv.c
880
c = *(*instr -1);
sys/fs/msdosfs/msdosfs_conv.c
881
if (! (c & 0x80)) {
sys/fs/msdosfs/msdosfs_conv.c
882
c = unix2dos[c];
sys/fs/msdosfs/msdosfs_conv.c
883
if (c <= 2)
sys/fs/msdosfs/msdosfs_conv.c
884
return (c);
sys/fs/msdosfs/msdosfs_conv.c
916
c = *(*instr)++;
sys/fs/msdosfs/msdosfs_conv.c
917
c = l2u[c];
sys/fs/msdosfs/msdosfs_conv.c
918
c = unix2dos[c];
sys/fs/msdosfs/msdosfs_conv.c
919
return ((uint16_t)c);
sys/fs/nfs/nfs.h
140
#define NFSRV_V4DELEGLIMIT(c) (((c) * 5) > nfsrv_v4statelimit)
sys/fs/nfs/nfs.h
483
#define NFSCBGETATTR_ATTRBIT(b, c) do { \
sys/fs/nfs/nfs.h
484
(c)->bits[0] = ((b)->bits[0] & NFSATTRBIT_CBGETATTR0); \
sys/fs/nfs/nfs.h
485
(c)->bits[1] = ((b)->bits[1] & NFSATTRBIT_CBGETATTR1); \
sys/fs/nfs/nfs.h
486
(c)->bits[2] = ((b)->bits[2] & NFSATTRBIT_CBGETATTR2); \
sys/fs/nfs/nfscl.h
50
#define NFSCL_REQSTART(n, p, v, c) \
sys/fs/nfs/nfscl.h
53
NULL, 0, 0, (c))
sys/fs/nfs/nfsclstate.h
50
#define NFSCLDELEGHASH(c, f, l) \
sys/fs/nfs/nfsclstate.h
51
(&((c)->nfsc_deleghash[ncl_hash((f), (l)) % NFSCLDELEGHASHSIZE]))
sys/fs/nfs/nfsclstate.h
54
#define NFSCLOPENHASH(c, f, l) \
sys/fs/nfs/nfsclstate.h
55
(&((c)->nfsc_openhash[NFSCLOPENHASHFUNC((f), (l))]))
sys/fs/nfs/nfsclstate.h
57
#define NFSCLLAYOUTHASH(c, f, l) \
sys/fs/nfs/nfsclstate.h
58
(&((c)->nfsc_layouthash[ncl_hash((f), (l)) % NFSCLLAYOUTHASHSIZE]))
sys/fs/nfs/nfsdport.h
101
#define NFSNAMEICNDSET(n, c, o, f) do { \
sys/fs/nfs/nfsdport.h
102
(n)->cn_cred = (c); \
sys/fs/nfs/nfsm_subs.h
125
#define NFSM_DISSECT(a, c, s) \
sys/fs/nfs/nfsm_subs.h
127
(a) = (c)nfsm_dissect(nd, (s)); \
sys/fs/nfs/nfsm_subs.h
134
#define NFSM_DISSECT_NONBLOCK(a, c, s) \
sys/fs/nfs/nfsm_subs.h
136
(a) = (c)nfsm_dissect_nonblock(nd, (s)); \
sys/fs/nfs/nfsm_subs.h
91
#define NFSM_BUILD(a, c, s) ((a) = (c)nfsm_build(nd, (s)))
sys/fs/nfs/nfsport.h
791
#define NFSNEWCRED(c) (crdup(c))
sys/fs/nfs/nfsport.h
793
#define NFSFREECRED(c) (crfree(c))
sys/fs/nfs/nfsport.h
800
#define NFSCNHASHZERO(c)
sys/fs/nfs/nfsport.h
801
#define NFSCNHASH(c, v)
sys/fs/nfs/nfsport.h
896
#define NFSD_RDWR(r, v, b, l, o, s, i, c, a, p) \
sys/fs/nfs/nfsport.h
897
vn_rdwr((r), (v), (b), (l), (o), (s), (i), (c), NULL, (a), (p))
sys/fs/nfs/nfsport.h
993
#define STRCHR(s, c) strchr((s), (c))
sys/fs/nfsclient/nfs_clrpcops.c
9712
u_char c;
sys/fs/nfsclient/nfs_clrpcops.c
9745
c = len;
sys/fs/nfsclient/nfs_clrpcops.c
9746
error = uiomove(&c, sizeof(c), uiop);
sys/fs/nfsserver/nfs_nfsdsubs.c
1789
nfsrv_hexdigit(char c, int *err)
sys/fs/nfsserver/nfs_nfsdsubs.c
1793
if (c >= '0' && c <= '9')
sys/fs/nfsserver/nfs_nfsdsubs.c
1794
return (c - '0');
sys/fs/nfsserver/nfs_nfsdsubs.c
1795
if (c >= 'a' && c <= 'f')
sys/fs/nfsserver/nfs_nfsdsubs.c
1796
return (c - 'a' + ((char)10));
sys/fs/nfsserver/nfs_nfsdsubs.c
1797
if (c >= 'A' && c <= 'F')
sys/fs/nfsserver/nfs_nfsdsubs.c
1798
return (c - 'A' + ((char)10));
sys/fs/p9fs/p9_client.c
204
p9_client_check_return(struct p9_client *c, struct p9_req_t *req)
sys/fs/p9fs/p9_client.c
211
error = p9_parse_receive(req->rc, c);
sys/fs/p9fs/p9_client.c
227
error = p9_buf_readf(req->rc, c->proto_version, "s?d", &ename, &ecode);
sys/fs/p9fs/p9_client.c
229
error = p9_buf_readf(req->rc, c->proto_version, "d", &ecode);
sys/fs/p9fs/p9_client.c
278
p9_client_prepare_req(struct p9_client *c, int8_t type,
sys/fs/p9fs/p9_client.c
283
P9_DEBUG(TRANS, "%s: client %p op %d\n", __func__, c, type);
sys/fs/p9fs/p9_client.c
291
if (c->trans_status == P9FS_DISCONNECT) {
sys/fs/p9fs/p9_client.c
297
if ((c->trans_status == P9FS_BEGIN_DISCONNECT) &&
sys/fs/p9fs/p9_client.c
304
req = p9_get_request(c, error);
sys/fs/p9fs/p9_client.c
318
*error = p9_buf_vwritef(req->tc, c->proto_version, fmt, ap);
sys/fs/p9fs/p9_client.c
325
*error = p9_buf_finalize(c, req->tc);
sys/fs/p9fs/p9_client.c
334
p9_free_req(c, req);
sys/fs/p9fs/p9_client.c
344
p9_client_request(struct p9_client *c, int8_t type, int *error,
sys/fs/p9fs/p9_client.c
351
req = p9_client_prepare_req(c, type, c->msize, error, fmt, ap);
sys/fs/p9fs/p9_client.c
359
*error = c->ops->request(c->handle, req);
sys/fs/p9fs/p9_client.c
369
*error = p9_client_check_return(c, req);
sys/fs/p9fs/p9_client.c
375
p9_free_req(c, req);
sys/fs/p9fs/p9_client.c
444
p9_client_version(struct p9_client *c)
sys/fs/p9fs/p9_client.c
454
c->msize, c->proto_version);
sys/fs/p9fs/p9_client.c
456
switch (c->proto_version) {
sys/fs/p9fs/p9_client.c
458
req = p9_client_request(c, P9PROTO_TVERSION, &error, "ds",
sys/fs/p9fs/p9_client.c
459
c->msize, "9P2000.L");
sys/fs/p9fs/p9_client.c
462
req = p9_client_request(c, P9PROTO_TVERSION, &error, "ds",
sys/fs/p9fs/p9_client.c
463
c->msize, "9P2000.u");
sys/fs/p9fs/p9_client.c
466
req = p9_client_request(c, P9PROTO_TVERSION, &error, "ds",
sys/fs/p9fs/p9_client.c
467
c->msize, "9P2000");
sys/fs/p9fs/p9_client.c
477
error = p9_buf_readf(req->rc, c->proto_version, "ds", &msize, &version);
sys/fs/p9fs/p9_client.c
486
c->proto_version = p9_proto_2000L;
sys/fs/p9fs/p9_client.c
488
c->proto_version = p9_proto_2000u;
sys/fs/p9fs/p9_client.c
490
c->proto_version = p9_proto_legacy;
sys/fs/p9fs/p9_client.c
497
if (msize < c->msize)
sys/fs/p9fs/p9_client.c
498
c->msize = msize;
sys/fs/p9fs/p9_client.c
500
p9_free_req(c, req);
sys/fs/p9fs/p9_client.c
64
static struct p9_req_t *p9_get_request(struct p9_client *c, int *error);
sys/fs/p9fs/p9_client.c
66
struct p9_client *c, int8_t type, int *error, const char *fmt, ...);
sys/fs/p9fs/p9_client.h
150
void p9_client_cb(struct p9_client *c, struct p9_req_t *req);
sys/fs/tmpfs/tmpfs_subr.c
227
vm_size_t c;
sys/fs/tmpfs/tmpfs_subr.c
229
swap_pager_freespace(obj, start, size, &c);
sys/fs/tmpfs/tmpfs_subr.c
230
if ((obj->flags & OBJ_TMPFS) == 0 || c == 0)
sys/fs/tmpfs/tmpfs_subr.c
237
KASSERT(tm->tm_pages_used >= c,
sys/fs/tmpfs/tmpfs_subr.c
239
(uintmax_t)tm->tm_pages_used, (uintmax_t)c));
sys/fs/tmpfs/tmpfs_subr.c
240
atomic_add_long(&tm->tm_pages_used, -c);
sys/fs/tmpfs/tmpfs_subr.c
241
KASSERT(node->tn_reg.tn_pages >= c,
sys/fs/tmpfs/tmpfs_subr.c
243
(uintmax_t)node->tn_reg.tn_pages, (uintmax_t)c));
sys/fs/tmpfs/tmpfs_subr.c
244
node->tn_reg.tn_pages -= c;
sys/gdb/gdb_cons.c
108
gdb_tx_puthex(int c)
sys/gdb/gdb_cons.c
112
gdb_tx_char(hex[(c>>4)&0xf]);
sys/gdb/gdb_cons.c
113
gdb_tx_char(hex[(c>>0)&0xf]);
sys/gdb/gdb_cons.c
143
gdb_cnputc(struct consdev *cp, int c)
sys/gdb/gdb_cons.c
159
gc->buf[gc->npending++] = c;
sys/gdb/gdb_cons.c
166
if (c == '\n')
sys/gdb/gdb_cons.c
76
struct gdbcons *c = &state;
sys/gdb/gdb_cons.c
79
if (c->npending == -1) {
sys/gdb/gdb_cons.c
80
c->npending = 0;
sys/gdb/gdb_cons.c
81
callout_init(&c->flush, 1);
sys/gdb/gdb_cons.c
82
cp->cn_arg = c;
sys/gdb/gdb_int.h
70
int c;
sys/gdb/gdb_int.h
73
c = *gdb_rxp++;
sys/gdb/gdb_int.h
76
c = EOF;
sys/gdb/gdb_int.h
77
return (c);
sys/gdb/gdb_int.h
90
gdb_tx_char(char c)
sys/gdb/gdb_int.h
92
*gdb_txp++ = c;
sys/gdb/gdb_main.c
374
char c;
sys/gdb/gdb_main.c
377
c = *src;
sys/gdb/gdb_main.c
379
if (c < 32)
sys/gdb/gdb_main.c
380
c = '_';
sys/gdb/gdb_main.c
382
if (c == '<' || c == '&' || c == '"')
sys/gdb/gdb_main.c
383
c = '_';
sys/gdb/gdb_main.c
386
if (strchr(forbidden, c) != NULL) {
sys/gdb/gdb_main.c
396
c ^= 0x20;
sys/gdb/gdb_main.c
398
c = '_';
sys/gdb/gdb_main.c
400
*dst++ = c;
sys/gdb/gdb_packet.c
108
int c, cksum;
sys/gdb/gdb_packet.c
116
while ((c = gdb_getc()) != '$')
sys/gdb/gdb_packet.c
123
c = gdb_getc();
sys/gdb/gdb_packet.c
124
if (c == '#')
sys/gdb/gdb_packet.c
126
gdb_rxbuf[gdb_rxsz++] = c;
sys/gdb/gdb_packet.c
127
cksum += c;
sys/gdb/gdb_packet.c
133
if (c != '#') {
sys/gdb/gdb_packet.c
145
c = gdb_getc();
sys/gdb/gdb_packet.c
146
cksum -= (C2N(c) << 4) & 0xf0;
sys/gdb/gdb_packet.c
147
c = gdb_getc();
sys/gdb/gdb_packet.c
148
cksum -= C2N(c) & 0x0f;
sys/gdb/gdb_packet.c
184
unsigned char c;
sys/gdb/gdb_packet.c
196
c = (C2N(gdb_rxp[0]) << 4) & 0xf0;
sys/gdb/gdb_packet.c
197
c |= C2N(gdb_rxp[1]) & 0x0f;
sys/gdb/gdb_packet.c
198
*p++ = c;
sys/gdb/gdb_packet.c
213
int c, neg;
sys/gdb/gdb_packet.c
215
c = gdb_rx_char();
sys/gdb/gdb_packet.c
216
neg = (c == '-') ? 1 : 0;
sys/gdb/gdb_packet.c
218
c = gdb_rx_char();
sys/gdb/gdb_packet.c
219
if (!isxdigit(c)) {
sys/gdb/gdb_packet.c
220
gdb_rxp -= ((c == -1) ? 0 : 1) + neg;
sys/gdb/gdb_packet.c
221
gdb_rxsz += ((c == -1) ? 0 : 1) + neg;
sys/gdb/gdb_packet.c
227
v += C2N(c);
sys/gdb/gdb_packet.c
228
c = gdb_rx_char();
sys/gdb/gdb_packet.c
229
} while (isxdigit(c));
sys/gdb/gdb_packet.c
230
if (c != EOF) {
sys/gdb/gdb_packet.c
279
unsigned char c, cksum;
sys/gdb/gdb_packet.c
293
c = *p++;
sys/gdb/gdb_packet.c
294
gdb_cur->gdb_putc(c);
sys/gdb/gdb_packet.c
295
cksum += c;
sys/gdb/gdb_packet.c
298
while (p < gdb_txp && *p == c) {
sys/gdb/gdb_packet.c
310
gdb_cur->gdb_putc(c);
sys/gdb/gdb_packet.c
311
cksum += c;
sys/gdb/gdb_packet.c
319
gdb_cur->gdb_putc(c);
sys/gdb/gdb_packet.c
320
cksum += c;
sys/gdb/gdb_packet.c
332
c = cksum >> 4;
sys/gdb/gdb_packet.c
333
gdb_cur->gdb_putc(N2C(c));
sys/gdb/gdb_packet.c
334
c = cksum & 0x0f;
sys/gdb/gdb_packet.c
335
gdb_cur->gdb_putc(N2C(c));
sys/gdb/gdb_packet.c
346
c = gdb_getc();
sys/gdb/gdb_packet.c
347
} while (c != '+');
sys/gdb/gdb_packet.c
399
int c;
sys/gdb/gdb_packet.c
404
c = gdb_rx_char();
sys/gdb/gdb_packet.c
405
if (c == EOF)
sys/gdb/gdb_packet.c
408
if (c == '}') {
sys/gdb/gdb_packet.c
410
if ((c = gdb_rx_char()) == EOF)
sys/gdb/gdb_packet.c
412
c ^= 0x20;
sys/gdb/gdb_packet.c
414
*(data++) = c & 0xff;
sys/gdb/gdb_packet.c
68
#define C2N(c) (((c) < 'A') ? (c) - '0' : \
sys/gdb/gdb_packet.c
69
10 + (((c) < 'a') ? (c) - 'A' : (c) - 'a'))
sys/gdb/gdb_packet.c
79
int c;
sys/gdb/gdb_packet.c
82
c = gdb_cur->gdb_getc();
sys/gdb/gdb_packet.c
83
while (c == -1);
sys/gdb/gdb_packet.c
85
if (c == CTRL('C')) {
sys/gdb/gdb_packet.c
98
return (c);
sys/gdb/netgdb.c
163
int c;
sys/gdb/netgdb.c
168
c = netgdb_rxsb.s_buf[netgdb_rx_off];
sys/gdb/netgdb.c
179
c = netgdb_prev_dbgport->gdb_getc();
sys/gdb/netgdb.c
180
if (c == CTRL('C'))
sys/gdb/netgdb.c
187
if (c == CTRL('C')) {
sys/gdb/netgdb.c
191
return (c);
sys/gdb/netgdb.c
231
char c;
sys/gdb/netgdb.c
233
c = i;
sys/gdb/netgdb.c
234
netgdb_dbg_sendpacket(&c, 1);
sys/geom/concat/g_concat.c
77
u_int c;
sys/geom/concat/g_concat.c
80
c = a;
sys/geom/concat/g_concat.c
82
b = (c % b);
sys/geom/geom.h
285
#define g_getattr(a, c, v) g_getattr__((a), (c), (v), sizeof(*(v)))
sys/geom/geom_dump.c
159
const u_char *c;
sys/geom/geom_dump.c
161
for (c = buf; *c != '\0'; c++) {
sys/geom/geom_dump.c
162
if (*c == '&' || *c == '<' || *c == '>' ||
sys/geom/geom_dump.c
163
*c == '\'' || *c == '"' || *c > 0x7e)
sys/geom/geom_dump.c
164
sbuf_printf(sb, "&#x%X;", *c);
sys/geom/geom_dump.c
165
else if (*c == '\t' || *c == '\n' || *c == '\r' || *c > 0x1f)
sys/geom/geom_dump.c
166
sbuf_putc(sb, *c);
sys/geom/label/g_label.c
190
const u_char *c;
sys/geom/label/g_label.c
205
for (c = label; *c != '\0'; c++) {
sys/geom/label/g_label.c
207
if (isspace(*c) && sbuf_len(sb) == 0)
sys/geom/label/g_label.c
209
if (!isprint(*c) || isspace(*c) || *c =='"' || *c == '%')
sys/geom/label/g_label.c
210
sbuf_printf(sb, "%%%02X", *c);
sys/geom/label/g_label.c
212
sbuf_putc(sb, *c);
sys/geom/label/g_label_gpt.c
56
uint16_t c;
sys/geom/label/g_label_gpt.c
64
c = (bo == BIG_ENDIAN) ? be16toh(*str)
sys/geom/label/g_label_gpt.c
68
c = 0xfffd;
sys/geom/label/g_label_gpt.c
69
if ((ch & 0x400) == 0 && (c & 0xfc00) == 0xdc00) {
sys/geom/label/g_label_gpt.c
70
ch = ((ch & 0x3ff) << 10) + (c & 0x3ff);
sys/geom/linux_lvm/g_linux_lvm.c
129
LIST_FOREACH(c, &gp->consumer, consumer) {
sys/geom/linux_lvm/g_linux_lvm.c
130
KASSERT(c != NULL, ("%s: consumer is NULL", __func__));
sys/geom/linux_lvm/g_linux_lvm.c
131
error = g_access(c, dr, dw, de);
sys/geom/linux_lvm/g_linux_lvm.c
137
if (c2 == c) /* all eariler components fixed */
sys/geom/linux_lvm/g_linux_lvm.c
95
struct g_consumer *c;
sys/geom/part/g_part_gpt.c
1391
uint16_t c;
sys/geom/part/g_part_gpt.c
1399
c = (bo == BIG_ENDIAN) ? be16toh(*str)
sys/geom/part/g_part_gpt.c
1403
c = 0xfffd;
sys/geom/part/g_part_gpt.c
1404
if ((ch & 0x400) == 0 && (c & 0xfc00) == 0xdc00) {
sys/geom/part/g_part_gpt.c
1405
ch = ((ch & 0x3ff) << 10) + (c & 0x3ff);
sys/geom/part/g_part_gpt.c
1436
unsigned int c, utfbytes;
sys/geom/part/g_part_gpt.c
1443
c = s8[s8idx++];
sys/geom/part/g_part_gpt.c
1444
if ((c & 0xc0) != 0x80) {
sys/geom/part/g_part_gpt.c
1450
if ((c & 0xf8) == 0xf0) {
sys/geom/part/g_part_gpt.c
1451
utfchar = c & 0x07;
sys/geom/part/g_part_gpt.c
1453
} else if ((c & 0xf0) == 0xe0) {
sys/geom/part/g_part_gpt.c
1454
utfchar = c & 0x0f;
sys/geom/part/g_part_gpt.c
1456
} else if ((c & 0xe0) == 0xc0) {
sys/geom/part/g_part_gpt.c
1457
utfchar = c & 0x1f;
sys/geom/part/g_part_gpt.c
1460
utfchar = c & 0x7f;
sys/geom/part/g_part_gpt.c
1466
utfchar = (utfchar << 6) + (c & 0x3f);
sys/geom/part/g_part_gpt.c
852
char c;
sys/geom/part/g_part_gpt.c
855
c = (EQUUID(&entry->ent.ent_type, &gpt_uuid_freebsd)) ? 's' : 'p';
sys/geom/part/g_part_gpt.c
856
snprintf(buf, bufsz, "%c%d", c, baseentry->gpe_index);
sys/geom/raid/g_raid.c
2502
struct g_raid_md_class *class, *c, *nc;
sys/geom/raid/g_raid.c
2509
c = LIST_FIRST(&g_raid_md_classes);
sys/geom/raid/g_raid.c
2510
if (c == NULL || c->mdc_priority > class->mdc_priority)
sys/geom/raid/g_raid.c
2513
while ((nc = LIST_NEXT(c, mdc_list)) != NULL &&
sys/geom/raid/g_raid.c
2515
c = nc;
sys/geom/raid/g_raid.c
2516
LIST_INSERT_AFTER(c, class, mdc_list);
sys/geom/raid/g_raid.c
2535
struct g_raid_tr_class *class, *c, *nc;
sys/geom/raid/g_raid.c
2542
c = LIST_FIRST(&g_raid_tr_classes);
sys/geom/raid/g_raid.c
2543
if (c == NULL || c->trc_priority > class->trc_priority)
sys/geom/raid/g_raid.c
2546
while ((nc = LIST_NEXT(c, trc_list)) != NULL &&
sys/geom/raid/g_raid.c
2548
c = nc;
sys/geom/raid/g_raid.c
2549
LIST_INSERT_AFTER(c, class, trc_list);
sys/geom/shsec/g_shsec.c
90
u_int c;
sys/geom/shsec/g_shsec.c
93
c = a;
sys/geom/shsec/g_shsec.c
95
b = (c % b);
sys/geom/stripe/g_stripe.c
94
u_int c;
sys/geom/stripe/g_stripe.c
97
c = a;
sys/geom/stripe/g_stripe.c
99
b = (c % b);
sys/geom/virstor/g_virstor.c
1400
struct g_consumer *c, *c2, *tmp;
sys/geom/virstor/g_virstor.c
1421
LIST_FOREACH_SAFE(c, &gp->consumer, consumer, tmp) {
sys/geom/virstor/g_virstor.c
1422
error = g_access(c, dr, dw, de);
sys/geom/virstor/g_virstor.c
1425
if (c->acr == 0 && c->acw == 0 && c->ace == 0 &&
sys/geom/virstor/g_virstor.c
1426
c->flags & G_CF_ORPHAN) {
sys/geom/virstor/g_virstor.c
1427
g_detach(c);
sys/geom/virstor/g_virstor.c
1428
g_destroy_consumer(c);
sys/geom/virstor/g_virstor.c
1440
if (c2 == c)
sys/geom/virstor/g_virstor.c
488
struct g_virstor_component *c;
sys/geom/virstor/g_virstor.c
491
c = &sc->components[nc];
sys/geom/virstor/g_virstor.c
502
strncpy(md->provider, c->gcons->provider->name,
sys/geom/virstor/g_virstor.c
506
md->provsize = c->gcons->provider->mediasize;
sys/geom/virstor/g_virstor.c
507
md->chunk_count = c->chunk_count;
sys/geom/virstor/g_virstor.c
508
md->chunk_next = c->chunk_next;
sys/geom/virstor/g_virstor.c
509
md->chunk_reserved = c->chunk_reserved;
sys/geom/virstor/g_virstor.c
510
md->flags = c->flags;
sys/geom/virstor/g_virstor.c
865
struct g_consumer *c = arg;
sys/geom/virstor/g_virstor.c
866
KASSERT(c != NULL, ("%s: invalid consumer", __func__));
sys/geom/virstor/g_virstor.c
868
c->provider->name);
sys/geom/virstor/g_virstor.c
869
g_detach(c);
sys/geom/virstor/g_virstor.c
870
g_destroy_consumer(c);
sys/geom/virstor/g_virstor.c
882
struct g_consumer *c;
sys/geom/virstor/g_virstor.c
886
c = comp->gcons;
sys/geom/virstor/g_virstor.c
889
KASSERT(c->provider != NULL, ("%s: no provider", __func__));
sys/geom/virstor/g_virstor.c
890
LOG_MSG(LVL_DEBUG, "Component %s removed from %s", c->provider->name,
sys/geom/virstor/g_virstor.c
898
if (c->acr > 0 || c->acw > 0 || c->ace > 0)
sys/geom/virstor/g_virstor.c
902
g_post_event(delay_destroy_consumer, c, M_WAITOK, NULL);
sys/geom/virstor/g_virstor.c
904
g_detach(c);
sys/geom/virstor/g_virstor.c
905
g_destroy_consumer(c);
sys/i386/i386/bios.c
447
u_char c, *s, *se, *str, *bios_str;
sys/i386/i386/bios.c
499
c = bios_str[i+off];
sys/i386/i386/bios.c
500
if ( (c < 0x20) || (c > 0x7E) )
sys/i386/i386/bios.c
501
c = ' ';
sys/i386/i386/bios.c
503
if (c != ' ')
sys/i386/i386/bios.c
504
buffer[idx++] = c;
sys/i386/i386/bios.c
505
} else if ( (c != ' ') ||
sys/i386/i386/bios.c
506
((c == ' ') && (buffer[idx-1] != ' ')) )
sys/i386/i386/bios.c
507
buffer[idx++] = c;
sys/i386/i386/copyout.c
143
char c;
sys/i386/i386/copyout.c
148
c = *(char *)(kva + ca->alen);
sys/i386/i386/copyout.c
149
*(char *)ca->kc = c;
sys/i386/i386/copyout.c
152
if (c == '\0')
sys/i386/i386/geode.c
158
unsigned c;
sys/i386/i386/geode.c
162
c = inl(geode_counter);
sys/i386/i386/geode.c
163
if (c < last)
sys/i386/i386/geode.c
165
last = c;
sys/i386/i386/geode.c
166
return (offset | c);
sys/i386/i386/in_cksum_machdep.c
101
su.c[1] = *(u_char *)w;
sys/i386/i386/in_cksum_machdep.c
120
su.c[0] = *(char *)w;
sys/i386/i386/in_cksum_machdep.c
269
su.c[1] = *(char *)w;
sys/i386/i386/in_cksum_machdep.c
281
su.c[0] = *(char *)w;
sys/i386/i386/in_cksum_machdep.c
289
su.c[1] = 0;
sys/i386/i386/in_cksum_machdep.c
74
union { char c[2]; u_short s; } su;
sys/i386/i386/mem.c
142
c = PAGE_SIZE - o;
sys/i386/i386/mem.c
143
c = min(c, (u_int)iov->iov_len);
sys/i386/i386/mem.c
144
error = uiomove((caddr_t)&ptvmmap[o], (int)c, uio);
sys/i386/i386/mem.c
82
u_int c = 0;
sys/i386/i386/minidump_machdep_base.c
129
c = cncheckc();
sys/i386/i386/minidump_machdep_base.c
130
if (c == 0x03)
sys/i386/i386/minidump_machdep_base.c
132
if (c != -1)
sys/i386/i386/minidump_machdep_base.c
76
int error, i, c;
sys/i386/i386/pmap.c
652
#define SYSMAP(c, p, v, n) \
sys/i386/i386/pmap.c
653
v = (c)va; va += ((n)*PAGE_SIZE); p = pte; pte += (n);
sys/i386/include/counter.h
161
counter_u64_zero_inline(counter_u64_t c)
sys/i386/include/counter.h
168
*(uint64_t *)((char *)c + UMA_PCPU_ALLOC_SIZE * i) = 0;
sys/i386/include/counter.h
172
counter_u64_zero_one_cpu, smp_no_rendezvous_barrier, c);
sys/i386/include/counter.h
177
#define counter_u64_add_protected(c, inc) do { \
sys/i386/include/counter.h
180
*(uint64_t *)zpcpu_get(c) += (inc); \
sys/i386/include/counter.h
182
counter_64_inc_8b((c), (inc)); \
sys/i386/include/counter.h
186
counter_u64_add(counter_u64_t c, int64_t inc)
sys/i386/include/counter.h
191
*(uint64_t *)zpcpu_get(c) += inc;
sys/i386/include/counter.h
194
counter_64_inc_8b(c, inc);
sys/i386/include/in_cksum.h
91
in_pseudo(u_int sum, u_int b, u_int c)
sys/i386/include/in_cksum.h
99
"g" (c)
sys/isa/isa_dmareg.h
39
#define DMA1_CHN(c) (IO_DMA1 + 1*(2*(c))) /* addr reg for channel c */
sys/isa/isa_dmareg.h
49
#define DMA2_CHN(c) (IO_DMA2 + 2*(2*(c))) /* addr reg for channel c */
sys/isa/pnpvar.h
34
#define PNP_HEXTONUM(c) ((c) >= 'a' \
sys/isa/pnpvar.h
35
? (c) - 'a' + 10 \
sys/isa/pnpvar.h
36
: ((c) >= 'A' \
sys/isa/pnpvar.h
37
? (c) - 'A' + 10 \
sys/isa/pnpvar.h
38
: (c) - '0'))
sys/kern/kern_clock.c
129
int c;
sys/kern/kern_clock.c
144
for (error = 0, c = 0; error == 0 && c <= mp_maxid; c++) {
sys/kern/kern_clock.c
145
if (!CPU_ABSENT(c)) {
sys/kern/kern_clock.c
146
pcpu = pcpu_find(c);
sys/kern/kern_clocksource.c
273
int c;
sys/kern/kern_clocksource.c
275
c = -1;
sys/kern/kern_clocksource.c
285
c = cpu;
sys/kern/kern_clocksource.c
292
(int)(event >> 32), (u_int)(event & 0xffffffff), c);
sys/kern/kern_clocksource.c
955
int c;
sys/kern/kern_clocksource.c
957
CPU_FOREACH(c) {
sys/kern/kern_clocksource.c
958
st = DPCPU_ID_PTR(c, timerstate);
sys/kern/kern_clocksource.c
965
c, st->action, st->handle, st->ipi, st->idle,
sys/kern/kern_cons.c
443
int c;
sys/kern/kern_cons.c
447
while ((c = cncheckc()) == -1)
sys/kern/kern_cons.c
449
if (c == '\r')
sys/kern/kern_cons.c
450
c = '\n'; /* console input is always ICRNL */
sys/kern/kern_cons.c
451
return (c);
sys/kern/kern_cons.c
459
int c;
sys/kern/kern_cons.c
466
c = cn->cn_ops->cn_getc(cn);
sys/kern/kern_cons.c
467
if (c != -1)
sys/kern/kern_cons.c
468
return (c);
sys/kern/kern_cons.c
478
int c;
sys/kern/kern_cons.c
485
c = cngetc() & 0177;
sys/kern/kern_cons.c
486
switch (c) {
sys/kern/kern_cons.c
489
cnputc(c);
sys/kern/kern_cons.c
512
cnputc(c);
sys/kern/kern_cons.c
515
*lp++ = c;
sys/kern/kern_cons.c
522
cnputc(int c)
sys/kern/kern_cons.c
528
if (cn_mute || c == '\0')
sys/kern/kern_cons.c
533
if (c == '\n')
sys/kern/kern_cons.c
535
early_putc(c);
sys/kern/kern_cons.c
543
if (c == '\n')
sys/kern/kern_cons.c
545
cn->cn_ops->cn_putc(cn, c);
sys/kern/kern_cons.c
548
if (console_pausing && c == '\n' && !kdb_active) {
sys/kern/kern_cons.c
642
int c;
sys/kern/kern_cons.c
651
while ((c = msgbuf_getchar(&consmsgbuf)) != -1)
sys/kern/kern_cons.c
652
cnputc(c);
sys/kern/kern_cons.c
667
int c;
sys/kern/kern_cons.c
670
while ((c = msgbuf_getchar(&consmsgbuf)) != -1) {
sys/kern/kern_cons.c
671
if (tty_putchar(tp, c) < 0) {
sys/kern/kern_dump.c
180
int c, error;
sys/kern/kern_dump.c
218
c = cncheckc();
sys/kern/kern_dump.c
219
if (c == 0x03)
sys/kern/kern_dump.c
221
if (c != -1)
sys/kern/kern_event.c
1012
callout_drain(&kc->c);
sys/kern/kern_event.c
1023
pending = callout_pending(&kc->c);
sys/kern/kern_event.c
1047
callout_drain(&kc->c);
sys/kern/kern_event.c
793
struct callout c;
sys/kern/kern_event.c
808
callout_reset_sbt_on(&kc->c, kc->next, 0, filt_timerexpire, kc->kn,
sys/kern/kern_event.c
957
callout_init(&kc->c, 1);
sys/kern/kern_event.c
982
callout_init(&kc->c, 1);
sys/kern/kern_membarrier.c
102
swt[c] = sw;
sys/kern/kern_membarrier.c
103
else if (sw != swt[c])
sys/kern/kern_membarrier.c
104
CPU_SET(c, csp);
sys/kern/kern_membarrier.c
123
int c, error;
sys/kern/kern_membarrier.c
144
CPU_FOREACH(c)
sys/kern/kern_membarrier.c
145
check_cpu_switched(c, &cs, swt, first);
sys/kern/kern_membarrier.c
162
CPU_FOREACH(c) {
sys/kern/kern_membarrier.c
163
td1 = cpuid_to_pcpu[c]->pc_curthread;
sys/kern/kern_membarrier.c
167
CPU_SET(c, &cs);
sys/kern/kern_membarrier.c
79
check_cpu_switched(int c, cpuset_t *csp, uint64_t *swt, bool init)
sys/kern/kern_membarrier.c
84
if (CPU_ISSET(c, csp))
sys/kern/kern_membarrier.c
87
pc = cpuid_to_pcpu[c];
sys/kern/kern_membarrier.c
89
CPU_SET(c, csp);
sys/kern/kern_mib.c
619
uint8_t c = __build_id_start[i+BUILD_ID_HEADER_LEN];
sys/kern/kern_mib.c
620
snprintf(&buf[2*i], 3, "%02x", c);
sys/kern/kern_mutex.c
1032
__mtx_unlock_sleep(volatile uintptr_t *c, uintptr_t v, int opts,
sys/kern/kern_mutex.c
1036
__mtx_unlock_sleep(volatile uintptr_t *c, uintptr_t v)
sys/kern/kern_mutex.c
1047
m = mtxlock2mtx(c);
sys/kern/kern_mutex.c
1094
__mtx_assert(const volatile uintptr_t *c, int what, const char *file, int line)
sys/kern/kern_mutex.c
1101
m = mtxlock2mtx(c);
sys/kern/kern_mutex.c
1149
_mtx_init(volatile uintptr_t *c, const char *name, const char *type, int opts)
sys/kern/kern_mutex.c
1155
m = mtxlock2mtx(c);
sys/kern/kern_mutex.c
1196
_mtx_destroy(volatile uintptr_t *c)
sys/kern/kern_mutex.c
1200
m = mtxlock2mtx(c);
sys/kern/kern_mutex.c
278
__mtx_lock_flags(volatile uintptr_t *c, int opts, const char *file, int line)
sys/kern/kern_mutex.c
283
m = mtxlock2mtx(c);
sys/kern/kern_mutex.c
312
__mtx_unlock_flags(volatile uintptr_t *c, int opts, const char *file, int line)
sys/kern/kern_mutex.c
316
m = mtxlock2mtx(c);
sys/kern/kern_mutex.c
329
__mtx_unlock_sleep(c, (uintptr_t)curthread, opts, file, line);
sys/kern/kern_mutex.c
337
__mtx_lock_spin_flags(volatile uintptr_t *c, int opts, const char *file,
sys/kern/kern_mutex.c
345
m = mtxlock2mtx(c);
sys/kern/kern_mutex.c
378
__mtx_trylock_spin_flags(volatile uintptr_t *c, int opts, const char *file,
sys/kern/kern_mutex.c
386
m = mtxlock2mtx(c);
sys/kern/kern_mutex.c
407
__mtx_unlock_spin_flags(volatile uintptr_t *c, int opts, const char *file,
sys/kern/kern_mutex.c
412
m = mtxlock2mtx(c);
sys/kern/kern_mutex.c
495
_mtx_trylock_flags_(volatile uintptr_t *c, int opts, const char *file, int line)
sys/kern/kern_mutex.c
499
m = mtxlock2mtx(c);
sys/kern/kern_mutex.c
511
__mtx_lock_sleep(volatile uintptr_t *c, uintptr_t v, int opts, const char *file,
sys/kern/kern_mutex.c
515
__mtx_lock_sleep(volatile uintptr_t *c, uintptr_t v)
sys/kern/kern_mutex.c
541
m = mtxlock2mtx(c);
sys/kern/kern_mutex.c
720
_mtx_lock_spin_cookie(volatile uintptr_t *c, uintptr_t v, int opts,
sys/kern/kern_mutex.c
724
_mtx_lock_spin_cookie(volatile uintptr_t *c, uintptr_t v)
sys/kern/kern_mutex.c
742
m = mtxlock2mtx(c);
sys/kern/kern_mutex.c
88
#define mtxlock2mtx(c) (__containerof(c, struct mtx, mtx_lock))
sys/kern/kern_rctl.c
465
uint64_t c;
sys/kern/kern_rctl.c
467
c = a + b;
sys/kern/kern_rctl.c
472
if (c < a || c < b)
sys/kern/kern_rctl.c
475
return (c);
sys/kern/kern_resource.c
1002
mul64_by_fraction(uint64_t a, uint64_t b, uint64_t c)
sys/kern/kern_resource.c
1036
return (acc + (a * b) / c);
sys/kern/kern_resource.c
1037
if (a >= c) {
sys/kern/kern_resource.c
1045
acc += (a / c) * b;
sys/kern/kern_resource.c
1046
a %= c;
sys/kern/kern_resource.c
1050
return (acc + (a * b) / c);
sys/kern/kern_resource.c
1073
acc += (a * bl) / c;
sys/kern/kern_rmlock.c
73
#define _rm_assert(c, what, file, line)
sys/kern/kern_rwlock.c
1218
__rw_wunlock_hard(volatile uintptr_t *c, uintptr_t v LOCK_FILE_LINE_ARG_DEF)
sys/kern/kern_rwlock.c
1229
rw = rwlock2rw(c);
sys/kern/kern_rwlock.c
1368
__rw_try_upgrade(volatile uintptr_t *c, const char *file, int line)
sys/kern/kern_rwlock.c
1372
rw = rwlock2rw(c);
sys/kern/kern_rwlock.c
1444
__rw_downgrade(volatile uintptr_t *c, const char *file, int line)
sys/kern/kern_rwlock.c
1448
rw = rwlock2rw(c);
sys/kern/kern_rwlock.c
1463
__rw_assert(const volatile uintptr_t *c, int what, const char *file, int line)
sys/kern/kern_rwlock.c
1470
rw = rwlock2rw(c);
sys/kern/kern_rwlock.c
159
#define __rw_assert(c, what, file, line)
sys/kern/kern_rwlock.c
223
_rw_init_flags(volatile uintptr_t *c, const char *name, int opts)
sys/kern/kern_rwlock.c
228
rw = rwlock2rw(c);
sys/kern/kern_rwlock.c
256
_rw_destroy(volatile uintptr_t *c)
sys/kern/kern_rwlock.c
260
rw = rwlock2rw(c);
sys/kern/kern_rwlock.c
279
_rw_wowned(const volatile uintptr_t *c)
sys/kern/kern_rwlock.c
282
return (rw_wowner(rwlock2rw(c)) == curthread);
sys/kern/kern_rwlock.c
286
_rw_wlock_cookie(volatile uintptr_t *c, const char *file, int line)
sys/kern/kern_rwlock.c
291
rw = rwlock2rw(c);
sys/kern/kern_rwlock.c
363
__rw_try_wlock(volatile uintptr_t *c, const char *file, int line)
sys/kern/kern_rwlock.c
367
rw = rwlock2rw(c);
sys/kern/kern_rwlock.c
372
_rw_wunlock_cookie(volatile uintptr_t *c, const char *file, int line)
sys/kern/kern_rwlock.c
376
rw = rwlock2rw(c);
sys/kern/kern_rwlock.c
380
__rw_assert(c, RA_WLOCKED, file, line);
sys/kern/kern_rwlock.c
66
#define rwlock2rw(c) (__containerof(c, struct rwlock, rw_lock))
sys/kern/kern_rwlock.c
707
__rw_rlock(volatile uintptr_t *c, const char *file, int line)
sys/kern/kern_rwlock.c
711
rw = rwlock2rw(c);
sys/kern/kern_rwlock.c
751
__rw_try_rlock(volatile uintptr_t *c, const char *file, int line)
sys/kern/kern_rwlock.c
755
rw = rwlock2rw(c);
sys/kern/kern_rwlock.c
880
_rw_runlock_cookie(volatile uintptr_t *c, const char *file, int line)
sys/kern/kern_rwlock.c
884
rw = rwlock2rw(c);
sys/kern/kern_rwlock.c
911
__rw_wlock_hard(volatile uintptr_t *c, uintptr_t v LOCK_FILE_LINE_ARG_DEF)
sys/kern/kern_rwlock.c
943
rw = rwlock2rw(c);
sys/kern/kern_sysctl.c
600
sysctl_ctx_init(struct sysctl_ctx_list *c)
sys/kern/kern_sysctl.c
603
if (c == NULL) {
sys/kern/kern_sysctl.c
612
TAILQ_INIT(c);
sys/kern/kern_timeout.c
1008
if (c->c_iflags & CALLOUT_PENDING) {
sys/kern/kern_timeout.c
1009
if ((c->c_iflags & CALLOUT_PROCESSED) == 0) {
sys/kern/kern_timeout.c
1010
if (cc_exec_next(cc) == c)
sys/kern/kern_timeout.c
1011
cc_exec_next(cc) = LIST_NEXT(c, c_links.le);
sys/kern/kern_timeout.c
1012
LIST_REMOVE(c, c_links.le);
sys/kern/kern_timeout.c
1014
TAILQ_REMOVE(&cc->cc_expireq, c, c_links.tqe);
sys/kern/kern_timeout.c
1017
c->c_iflags &= ~ CALLOUT_PENDING;
sys/kern/kern_timeout.c
1018
c->c_flags &= ~ CALLOUT_ACTIVE;
sys/kern/kern_timeout.c
1027
if (c->c_cpu != cpu) {
sys/kern/kern_timeout.c
1028
if (cc_exec_curr(cc, direct) == c) {
sys/kern/kern_timeout.c
1050
c->c_iflags |= (CALLOUT_DFRMIGRATION | CALLOUT_PENDING);
sys/kern/kern_timeout.c
1051
c->c_flags |= CALLOUT_ACTIVE;
sys/kern/kern_timeout.c
1054
c, c->c_func, c->c_arg, (int)(to_sbt >> 32),
sys/kern/kern_timeout.c
1059
cc = callout_cpu_switch(c, cc, cpu);
sys/kern/kern_timeout.c
1063
callout_cc_add(c, cc, to_sbt, precision, ftn, arg, flags);
sys/kern/kern_timeout.c
1065
cancelled ? "re" : "", c, c->c_func, c->c_arg, (int)(to_sbt >> 32),
sys/kern/kern_timeout.c
1076
callout_schedule_on(struct callout *c, int to_ticks, int cpu)
sys/kern/kern_timeout.c
1078
return callout_reset_on(c, to_ticks, c->c_func, c->c_arg, cpu);
sys/kern/kern_timeout.c
1082
callout_schedule(struct callout *c, int to_ticks)
sys/kern/kern_timeout.c
1084
return callout_reset_on(c, to_ticks, c->c_func, c->c_arg, c->c_cpu);
sys/kern/kern_timeout.c
1088
_callout_stop_safe(struct callout *c, int flags)
sys/kern/kern_timeout.c
1096
WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, c->c_lock,
sys/kern/kern_timeout.c
1103
if ((flags & CS_DRAIN) == 0 && c->c_lock != NULL) {
sys/kern/kern_timeout.c
1104
if (c->c_lock == &Giant.lock_object)
sys/kern/kern_timeout.c
1108
class = LOCK_CLASS(c->c_lock);
sys/kern/kern_timeout.c
1109
class->lc_assert(c->c_lock, LA_XLOCKED);
sys/kern/kern_timeout.c
1113
if (c->c_iflags & CALLOUT_DIRECT) {
sys/kern/kern_timeout.c
1121
cc = callout_lock(c);
sys/kern/kern_timeout.c
1123
if ((c->c_iflags & (CALLOUT_DFRMIGRATION | CALLOUT_PENDING)) ==
sys/kern/kern_timeout.c
1125
((c->c_flags & CALLOUT_ACTIVE) == CALLOUT_ACTIVE)) {
sys/kern/kern_timeout.c
1138
c->c_iflags &= ~CALLOUT_PENDING;
sys/kern/kern_timeout.c
1139
c->c_flags &= ~CALLOUT_ACTIVE;
sys/kern/kern_timeout.c
1165
if (cc_exec_curr(cc, direct) == c) {
sys/kern/kern_timeout.c
1173
c->c_flags &= ~CALLOUT_ACTIVE;
sys/kern/kern_timeout.c
1182
if (cc_exec_curr(cc, direct) == c) {
sys/kern/kern_timeout.c
1232
c->c_flags &= ~CALLOUT_ACTIVE;
sys/kern/kern_timeout.c
1245
c, c->c_func, c->c_arg);
sys/kern/kern_timeout.c
1248
if (callout_migrating(c)) {
sys/kern/kern_timeout.c
1249
c->c_iflags &= ~CALLOUT_DFRMIGRATION;
sys/kern/kern_timeout.c
1261
} else if (callout_migrating(c)) {
sys/kern/kern_timeout.c
1270
c->c_iflags &= ~CALLOUT_DFRMIGRATION;
sys/kern/kern_timeout.c
1286
c, c->c_func, c->c_arg);
sys/kern/kern_timeout.c
1291
c, c->c_func, c->c_arg);
sys/kern/kern_timeout.c
1301
if ((c->c_iflags & CALLOUT_PENDING) == 0) {
sys/kern/kern_timeout.c
1303
c, c->c_func, c->c_arg);
sys/kern/kern_timeout.c
1308
if (cc_exec_curr(cc, direct) != c)
sys/kern/kern_timeout.c
1314
c->c_iflags &= ~CALLOUT_PENDING;
sys/kern/kern_timeout.c
1315
c->c_flags &= ~CALLOUT_ACTIVE;
sys/kern/kern_timeout.c
1318
c, c->c_func, c->c_arg);
sys/kern/kern_timeout.c
1320
if ((c->c_iflags & CALLOUT_PROCESSED) == 0) {
sys/kern/kern_timeout.c
1321
if (cc_exec_next(cc) == c)
sys/kern/kern_timeout.c
1322
cc_exec_next(cc) = LIST_NEXT(c, c_links.le);
sys/kern/kern_timeout.c
1323
LIST_REMOVE(c, c_links.le);
sys/kern/kern_timeout.c
1325
TAILQ_REMOVE(&cc->cc_expireq, c, c_links.tqe);
sys/kern/kern_timeout.c
1333
callout_init(struct callout *c, int mpsafe)
sys/kern/kern_timeout.c
1335
bzero(c, sizeof *c);
sys/kern/kern_timeout.c
1337
c->c_lock = NULL;
sys/kern/kern_timeout.c
1338
c->c_iflags = CALLOUT_RETURNUNLOCKED;
sys/kern/kern_timeout.c
1340
c->c_lock = &Giant.lock_object;
sys/kern/kern_timeout.c
1341
c->c_iflags = 0;
sys/kern/kern_timeout.c
1343
c->c_cpu = cc_default_cpu;
sys/kern/kern_timeout.c
1347
_callout_init_lock(struct callout *c, struct lock_object *lock, int flags)
sys/kern/kern_timeout.c
1354
("%s: callout %p has sleepable lock", __func__, c));
sys/kern/kern_timeout.c
1360
*c = (struct callout ){
sys/kern/kern_timeout.c
1390
int error, val, i, count, tcum, pcum, maxc, c, medc;
sys/kern/kern_timeout.c
1408
c = 0;
sys/kern/kern_timeout.c
1410
c++;
sys/kern/kern_timeout.c
1423
if (c > maxc)
sys/kern/kern_timeout.c
1424
maxc = c;
sys/kern/kern_timeout.c
1425
ccpbk[fls(c + c / 2)]++;
sys/kern/kern_timeout.c
1426
count += c;
sys/kern/kern_timeout.c
1437
for (i = 0, c = 0; i < 32 && c < count / 2; i++)
sys/kern/kern_timeout.c
1438
c += ccpbk[i];
sys/kern/kern_timeout.c
1479
_show_callout(struct callout *c)
sys/kern/kern_timeout.c
1482
db_printf("callout %p\n", c);
sys/kern/kern_timeout.c
1483
#define C_DB_PRINTF(f, e) db_printf(" %s = " f "\n", #e, c->e);
sys/kern/kern_timeout.c
1484
db_printf(" &c_links = %p\n", &(c->c_links));
sys/kern/kern_timeout.c
177
#define callout_migrating(c) ((c)->c_iflags & CALLOUT_DFRMIGRATION)
sys/kern/kern_timeout.c
208
static void softclock_call_cc(struct callout *c, struct callout_cpu *cc,
sys/kern/kern_timeout.c
341
callout_cpu_switch(struct callout *c, struct callout_cpu *cc, int new_cpu)
sys/kern/kern_timeout.c
345
MPASS(c != NULL && cc != NULL);
sys/kern/kern_timeout.c
353
c->c_cpu = CPUBLOCK;
sys/kern/kern_timeout.c
359
c->c_cpu = new_cpu;
sys/kern/kern_timeout.c
431
struct callout *c, *next;
sys/kern/kern_timeout.c
476
LIST_FOREACH_SAFE(c, sc, c_links.le, next) {
sys/kern/kern_timeout.c
478
if (c->c_time <= now) {
sys/kern/kern_timeout.c
483
if (c->c_iflags & CALLOUT_DIRECT) {
sys/kern/kern_timeout.c
489
LIST_REMOVE(c, c_links.le);
sys/kern/kern_timeout.c
490
softclock_call_cc(c, cc,
sys/kern/kern_timeout.c
498
LIST_REMOVE(c, c_links.le);
sys/kern/kern_timeout.c
500
c, c_links.tqe);
sys/kern/kern_timeout.c
501
c->c_iflags |= CALLOUT_PROCESSED;
sys/kern/kern_timeout.c
503
} else if (c->c_time >= max) {
sys/kern/kern_timeout.c
508
} else if (c->c_time > last) {
sys/kern/kern_timeout.c
519
if (c->c_time < first)
sys/kern/kern_timeout.c
520
first = c->c_time;
sys/kern/kern_timeout.c
521
tmp_max = c->c_time + c->c_precision;
sys/kern/kern_timeout.c
561
callout_lock(struct callout *c)
sys/kern/kern_timeout.c
567
cpu = c->c_cpu;
sys/kern/kern_timeout.c
570
while (c->c_cpu == CPUBLOCK)
sys/kern/kern_timeout.c
577
if (cpu == c->c_cpu)
sys/kern/kern_timeout.c
585
callout_cc_add(struct callout *c, struct callout_cpu *cc,
sys/kern/kern_timeout.c
594
c->c_arg = arg;
sys/kern/kern_timeout.c
595
c->c_iflags |= CALLOUT_PENDING;
sys/kern/kern_timeout.c
596
c->c_iflags &= ~CALLOUT_PROCESSED;
sys/kern/kern_timeout.c
597
c->c_flags |= CALLOUT_ACTIVE;
sys/kern/kern_timeout.c
599
c->c_iflags |= CALLOUT_DIRECT;
sys/kern/kern_timeout.c
600
c->c_func = func;
sys/kern/kern_timeout.c
601
c->c_time = sbt;
sys/kern/kern_timeout.c
602
c->c_precision = precision;
sys/kern/kern_timeout.c
603
bucket = callout_get_bucket(c->c_time);
sys/kern/kern_timeout.c
605
c, (int)(c->c_precision >> 32),
sys/kern/kern_timeout.c
606
(u_int)(c->c_precision & 0xffffffff));
sys/kern/kern_timeout.c
607
LIST_INSERT_HEAD(&cc->cc_callwheel[bucket], c, c_links.le);
sys/kern/kern_timeout.c
609
cc_exec_next(cc) = c;
sys/kern/kern_timeout.c
615
if (SBT_MAX - c->c_time < c->c_precision)
sys/kern/kern_timeout.c
616
c->c_precision = SBT_MAX - c->c_time;
sys/kern/kern_timeout.c
617
sbt = c->c_time + c->c_precision;
sys/kern/kern_timeout.c
620
cpu_new_callout(c->c_cpu, sbt, c->c_time);
sys/kern/kern_timeout.c
625
softclock_call_cc(struct callout *c, struct callout_cpu *cc,
sys/kern/kern_timeout.c
653
KASSERT((c->c_iflags & CALLOUT_PENDING) == CALLOUT_PENDING,
sys/kern/kern_timeout.c
654
("softclock_call_cc: pend %p %x", c, c->c_iflags));
sys/kern/kern_timeout.c
655
KASSERT((c->c_flags & CALLOUT_ACTIVE) == CALLOUT_ACTIVE,
sys/kern/kern_timeout.c
656
("softclock_call_cc: act %p %x", c, c->c_flags));
sys/kern/kern_timeout.c
657
class = (c->c_lock != NULL) ? LOCK_CLASS(c->c_lock) : NULL;
sys/kern/kern_timeout.c
659
if (c->c_iflags & CALLOUT_SHAREDLOCK) {
sys/kern/kern_timeout.c
665
c_lock = c->c_lock;
sys/kern/kern_timeout.c
666
c_func = c->c_func;
sys/kern/kern_timeout.c
667
c_arg = c->c_arg;
sys/kern/kern_timeout.c
668
c_iflags = c->c_iflags;
sys/kern/kern_timeout.c
669
c->c_iflags &= ~CALLOUT_PENDING;
sys/kern/kern_timeout.c
671
cc_exec_curr(cc, direct) = c;
sys/kern/kern_timeout.c
680
callout_cc_add(c, cc,
sys/kern/kern_timeout.c
681
cc->cc_lastscan + c->c_precision / 2,
sys/kern/kern_timeout.c
682
qmax(c->c_precision / 2, 1), c_func, c_arg,
sys/kern/kern_timeout.c
706
c, c_func, c_arg);
sys/kern/kern_timeout.c
712
c, c_func, c_arg);
sys/kern/kern_timeout.c
720
c, c_func, c_arg);
sys/kern/kern_timeout.c
728
SDT_PROBE1(callout_execute, , , callout__start, c);
sys/kern/kern_timeout.c
730
SDT_PROBE1(callout_execute, , , callout__end, c);
sys/kern/kern_timeout.c
747
CTR1(KTR_CALLOUT, "callout %p finished", c);
sys/kern/kern_timeout.c
752
KASSERT(cc_exec_curr(cc, direct) == c, ("mishandled cc_curr"));
sys/kern/kern_timeout.c
768
c->c_iflags &= ~CALLOUT_DFRMIGRATION;
sys/kern/kern_timeout.c
793
if (!callout_migrating(c)) {
sys/kern/kern_timeout.c
796
c, new_func, new_arg);
sys/kern/kern_timeout.c
799
c->c_iflags &= ~CALLOUT_DFRMIGRATION;
sys/kern/kern_timeout.c
801
new_cc = callout_cpu_switch(c, cc, new_cpu);
sys/kern/kern_timeout.c
803
callout_cc_add(c, new_cc, new_time, new_prec, new_func,
sys/kern/kern_timeout.c
834
struct callout *c;
sys/kern/kern_timeout.c
859
while ((c = TAILQ_FIRST(&cc->cc_expireq)) != NULL) {
sys/kern/kern_timeout.c
860
TAILQ_REMOVE(&cc->cc_expireq, c, c_links.tqe);
sys/kern/kern_timeout.c
861
softclock_call_cc(c, cc,
sys/kern/kern_timeout.c
939
callout_reset_sbt_on(struct callout *c, sbintime_t sbt, sbintime_t prec,
sys/kern/kern_timeout.c
959
KASSERT(!direct || c->c_lock == NULL ||
sys/kern/kern_timeout.c
960
(LOCK_CLASS(c->c_lock)->lc_flags & LC_SPINLOCK),
sys/kern/kern_timeout.c
961
("%s: direct callout %p has non-spin lock", __func__, c));
sys/kern/kern_timeout.c
963
cc = callout_lock(c);
sys/kern/kern_timeout.c
965
cpu = c->c_cpu;
sys/kern/kern_timeout.c
969
if (cc_exec_curr(cc, direct) == c) {
sys/kern/kern_timeout.c
975
if (c->c_lock != NULL && !cc_exec_cancel(cc, direct))
sys/kern/kern_timeout.c
984
c, c->c_func, c->c_arg);
sys/kern/kern_timeout.c
989
if (callout_migrating(c)) {
sys/kern/kern_uuid.c
385
u_int c[11];
sys/kern/kern_uuid.c
413
n = sscanf(str, "%8x-%4x-%4x-%2x%2x-%2x%2x%2x%2x%2x%2x", c + 0, c + 1,
sys/kern/kern_uuid.c
414
c + 2, c + 3, c + 4, c + 5, c + 6, c + 7, c + 8, c + 9, c + 10);
sys/kern/kern_uuid.c
421
uuid->time_low = c[0];
sys/kern/kern_uuid.c
422
uuid->time_mid = c[1];
sys/kern/kern_uuid.c
423
uuid->time_hi_and_version = c[2];
sys/kern/kern_uuid.c
424
uuid->clock_seq_hi_and_reserved = c[3];
sys/kern/kern_uuid.c
425
uuid->clock_seq_low = c[4];
sys/kern/kern_uuid.c
427
uuid->node[n] = c[n + 5];
sys/kern/kern_uuid.c
433
return (((c[3] & 0x80) != 0x00 && /* variant 0? */
sys/kern/kern_uuid.c
434
(c[3] & 0xc0) != 0x80 && /* variant 1? */
sys/kern/kern_uuid.c
435
(c[3] & 0xe0) != 0xc0) ? EINVAL : 0); /* variant 2? */
sys/kern/sched_ule.c
725
int c, bload, l, load, p, total;
sys/kern/sched_ule.c
733
for (c = cg->cg_children - 1; c >= 0; c--) {
sys/kern/sched_ule.c
734
load = cpu_search_lowest(&cg->cg_child[c], s, &lr);
sys/kern/sched_ule.c
743
(cg->cg_child[c].cg_flags & CG_FLAG_THREAD) &&
sys/kern/sched_ule.c
758
for (c = cg->cg_last; c >= cg->cg_first; c--) {
sys/kern/sched_ule.c
759
if (!CPU_ISSET(c, &cg->cg_mask))
sys/kern/sched_ule.c
761
tdq = TDQ_CPU(c);
sys/kern/sched_ule.c
763
if (c == s->cs_prefer) {
sys/kern/sched_ule.c
779
(!s->cs_running || c != s->cs_prefer)) ||
sys/kern/sched_ule.c
780
!CPU_ISSET(c, s->cs_mask))
sys/kern/sched_ule.c
794
r->csr_cpu = c;
sys/kern/sched_ule.c
807
int c, bload, l, load, total;
sys/kern/sched_ule.c
815
for (c = cg->cg_children - 1; c >= 0; c--) {
sys/kern/sched_ule.c
816
load = cpu_search_highest(&cg->cg_child[c], s, &lr);
sys/kern/sched_ule.c
829
for (c = cg->cg_last; c >= cg->cg_first; c--) {
sys/kern/sched_ule.c
830
if (!CPU_ISSET(c, &cg->cg_mask))
sys/kern/sched_ule.c
832
tdq = TDQ_CPU(c);
sys/kern/sched_ule.c
841
!CPU_ISSET(c, s->cs_mask))
sys/kern/sched_ule.c
847
r->csr_cpu = c;
sys/kern/subr_asan.c
463
kasan_memset(void *b, int c, size_t len)
sys/kern/subr_asan.c
466
return (__builtin_memset(b, c, len));
sys/kern/subr_blist.c
117
#define malloc(a,b,c) calloc(a, 1)
sys/kern/subr_bus.c
288
const char *c;
sys/kern/subr_bus.c
313
c = "";
sys/kern/subr_bus.c
316
c = " ";
sys/kern/subr_bus.c
329
sbuf_printf(&sb, "%srid=%#x", c, rid);
sys/kern/subr_counter.c
46
counter_u64_zero(counter_u64_t c)
sys/kern/subr_counter.c
49
counter_u64_zero_inline(c);
sys/kern/subr_counter.c
53
counter_u64_fetch(counter_u64_t c)
sys/kern/subr_counter.c
56
return (counter_u64_fetch_inline(c));
sys/kern/subr_counter.c
67
counter_u64_free(counter_u64_t c)
sys/kern/subr_counter.c
70
uma_zfree_pcpu(pcpu_zone_8, c);
sys/kern/subr_csan.c
287
kcsan_memset(void *b, int c, size_t len)
sys/kern/subr_csan.c
290
return __builtin_memset(b, c, len);
sys/kern/subr_early.c
41
memset_early(void *buf, int c, size_t len)
sys/kern/subr_early.c
44
return (MEMSET_EARLY_FUNC(buf, c, len));
sys/kern/subr_epoch.c
758
epoch_block_handler(struct ck_epoch *g __unused, ck_epoch_record_t *c __unused,
sys/kern/subr_msan.c
323
kmsan_shadow_fill(uintptr_t addr, uint8_t c, size_t size)
sys/kern/subr_msan.c
333
__builtin_memset(shad, c, size);
sys/kern/subr_msan.c
555
kmsan_mark(const void *addr, size_t size, uint8_t c)
sys/kern/subr_msan.c
557
kmsan_shadow_fill((uintptr_t)addr, c, size);
sys/kern/subr_msan.c
561
kmsan_mark_bio(const struct bio *bp, uint8_t c)
sys/kern/subr_msan.c
563
kmsan_mark(bp->bio_data, bp->bio_length, c);
sys/kern/subr_msan.c
567
kmsan_mark_mbuf(const struct mbuf *m, uint8_t c)
sys/kern/subr_msan.c
571
kmsan_mark(m->m_data, m->m_len, c);
sys/kern/subr_msan.c
790
kmsan_memset(void *dst, int c, size_t len)
sys/kern/subr_msan.c
795
return (__builtin_memset(dst, c, len));
sys/kern/subr_msgbuf.c
148
msgbuf_do_addchar(struct msgbuf * const mbp, const int c)
sys/kern/subr_msgbuf.c
154
mbp->msg_cksum += (u_int)(u_char)c -
sys/kern/subr_msgbuf.c
156
mbp->msg_ptr[pos] = c;
sys/kern/subr_msgbuf.c
164
msgbuf_addchar(struct msgbuf *mbp, int c)
sys/kern/subr_msgbuf.c
168
msgbuf_do_addchar(mbp, c);
sys/kern/subr_msgbuf.c
292
int c;
sys/kern/subr_msgbuf.c
304
c = (u_char)mbp->msg_ptr[MSGBUF_SEQ_TO_POS(mbp, mbp->msg_rseq)];
sys/kern/subr_msgbuf.c
309
return (c);
sys/kern/subr_msgbuf.c
413
int c;
sys/kern/subr_msgbuf.c
415
while ((c = msgbuf_getchar(src)) >= 0)
sys/kern/subr_msgbuf.c
416
msgbuf_addchar(dst, c);
sys/kern/subr_prf.c
1017
msglogchar(int c, int pri)
sys/kern/subr_prf.c
1026
if (c == '\0' || c == '\r')
sys/kern/subr_prf.c
1039
msgbuf_addchar(msgbufp, c);
sys/kern/subr_prf.c
1040
if (c == '\n') {
sys/kern/subr_prf.c
113
static void msglogchar(int c, int pri);
sys/kern/subr_prf.c
1290
unsigned c;
sys/kern/subr_prf.c
1293
c = *counter;
sys/kern/subr_prf.c
1294
if (c == 0)
sys/kern/subr_prf.c
1296
if (atomic_cmpset_int(counter, c, c - 1)) {
sys/kern/subr_prf.c
1300
c > 1 ? "" : " - not logging anymore");
sys/kern/subr_prf.c
330
int c, error, nl;
sys/kern/subr_prf.c
343
c = imin(uio->uio_resid, CONSCHUNK - 1);
sys/kern/subr_prf.c
344
error = uiomove(consbuffer, c, uio);
sys/kern/subr_prf.c
348
consbuffer[c] = '\0';
sys/kern/subr_prf.c
349
if (consbuffer[c - 1] == '\n')
sys/kern/subr_prf.c
417
prf_putchar(int c, int flags, int pri)
sys/kern/subr_prf.c
421
msglogchar(c, pri);
sys/kern/subr_prf.c
427
msgbuf_addchar(&consmsgbuf, c);
sys/kern/subr_prf.c
430
cnputc(c);
sys/kern/subr_prf.c
454
putbuf(int c, struct putchar_arg *ap)
sys/kern/subr_prf.c
458
prf_putchar(c, ap->flags, ap->pri);
sys/kern/subr_prf.c
461
*ap->p_next++ = c;
sys/kern/subr_prf.c
468
if (ap->remain == 2 || c == '\n') {
sys/kern/subr_prf.c
495
putchar(int c, void *arg)
sys/kern/subr_prf.c
503
if (c != '\0')
sys/kern/subr_prf.c
504
cnputc(c);
sys/kern/subr_prf.c
509
tty_putchar(tp, c);
sys/kern/subr_prf.c
516
if ((flags & (TOCONS | TOLOG)) && c != '\0')
sys/kern/subr_prf.c
517
putbuf(c, ap);
sys/kern/subr_prf.c
618
char *p, c;
sys/kern/subr_prf.c
623
c = hex2ascii(num % base);
sys/kern/subr_prf.c
624
*++p = upper ? toupper(c) : c;
sys/kern/subr_prf.c
632
isbitpos(char c)
sys/kern/subr_prf.c
634
return (c != '\0' && (c <= ' ' || (c & 0x80) != 0));
sys/kern/subr_prf.c
638
isprintnospace(char c)
sys/kern/subr_prf.c
640
return (isprint(c) && c != ' ');
sys/kern/subr_prf.c
679
#define PCHAR(c) {int cc=(c); if (func) (*func)(cc,arg); else *d++ = cc; retval++; }
sys/kern/subr_rman.c
822
rman_set_irq_cookie(struct resource *r, void *c)
sys/kern/subr_rman.c
825
r->__r_i->r_irq_cookie = c;
sys/kern/subr_sbuf.c
477
sbuf_put_byte(struct sbuf *s, char c)
sys/kern/subr_sbuf.c
497
s->s_buf[s->s_len++] = c;
sys/kern/subr_sbuf.c
639
sbuf_putc_func(int c, void *arg)
sys/kern/subr_sbuf.c
642
if (__predict_true(c != '\0'))
sys/kern/subr_sbuf.c
643
sbuf_put_byte(arg, c);
sys/kern/subr_sbuf.c
751
sbuf_putc(struct sbuf *s, int c)
sys/kern/subr_sbuf.c
754
sbuf_put_byte(s, c);
sys/kern/subr_sbuf.c
950
sbuf_end_section(struct sbuf *s, ssize_t old_len, size_t pad, int c)
sys/kern/subr_sbuf.c
962
sbuf_put_byte(s, c);
sys/kern/subr_scanf.c
102
int c; /* character from format, or conversion */
sys/kern/subr_scanf.c
128
c = *fmt++;
sys/kern/subr_scanf.c
129
if (c == 0)
sys/kern/subr_scanf.c
131
if (isspace(c)) {
sys/kern/subr_scanf.c
136
if (c != '%')
sys/kern/subr_scanf.c
144
again: c = *fmt++;
sys/kern/subr_scanf.c
145
switch (c) {
sys/kern/subr_scanf.c
150
if (*inp != c)
sys/kern/subr_scanf.c
190
width = width * 10 + c - '0';
sys/kern/subr_scanf.c
198
c = CT_INT;
sys/kern/subr_scanf.c
204
c = CT_INT;
sys/kern/subr_scanf.c
210
c = CT_INT;
sys/kern/subr_scanf.c
216
c = CT_INT;
sys/kern/subr_scanf.c
223
c = CT_INT;
sys/kern/subr_scanf.c
229
c = CT_STRING;
sys/kern/subr_scanf.c
235
c = CT_CCL;
sys/kern/subr_scanf.c
240
c = CT_CHAR;
sys/kern/subr_scanf.c
245
c = CT_INT;
sys/kern/subr_scanf.c
301
switch (c) {
sys/kern/subr_scanf.c
420
c = *inp;
sys/kern/subr_scanf.c
425
switch (c) {
sys/kern/subr_scanf.c
502
*p++ = c;
sys/kern/subr_scanf.c
521
c = ((u_char *)p)[-1];
sys/kern/subr_scanf.c
522
if (c == 'x' || c == 'X') {
sys/kern/subr_scanf.c
573
int c, n, v;
sys/kern/subr_scanf.c
576
c = *fmt++; /* first char hat => negated scanset */
sys/kern/subr_scanf.c
577
if (c == '^') {
sys/kern/subr_scanf.c
579
c = *fmt++; /* get new first char */
sys/kern/subr_scanf.c
587
if (c == 0)
sys/kern/subr_scanf.c
599
tab[c] = v; /* take character c */
sys/kern/subr_scanf.c
626
if (n == ']' || n < c) {
sys/kern/subr_scanf.c
627
c = '-';
sys/kern/subr_scanf.c
633
tab[++c] = v;
sys/kern/subr_scanf.c
634
} while (c < n);
sys/kern/subr_scanf.c
635
c = n;
sys/kern/subr_scanf.c
648
c = n;
sys/kern/subr_smp.c
684
int c;
sys/kern/subr_smp.c
686
for (c = 0; c < cg->cg_children; c++)
sys/kern/subr_smp.c
687
smp_topo_fill(&cg->cg_child[c]);
sys/kern/subr_smr.c
367
smr_poll_cpu(smr_t c, smr_seq_t s_rd_seq, smr_seq_t goal, bool wait)
sys/kern/subr_smr.c
373
c_seq = atomic_load_int(&c->c_seq);
sys/kern/subr_smr.c
586
smr_t smr, c;
sys/kern/subr_smr.c
599
c = zpcpu_get_cpu(smr, i);
sys/kern/subr_smr.c
600
c->c_seq = SMR_SEQ_INVALID;
sys/kern/subr_smr.c
601
c->c_shared = s;
sys/kern/subr_smr.c
602
c->c_deferred = 0;
sys/kern/subr_smr.c
603
c->c_limit = limit;
sys/kern/subr_smr.c
604
c->c_flags = flags;
sys/kern/subr_taskqueue.c
112
callout_init_mtx(&timeout_task->c, &queue->tq_mutex,
sys/kern/subr_taskqueue.c
368
callout_reset_sbt_curcpu(&timeout_task->c, sbt, pr,
sys/kern/subr_taskqueue.c
371
callout_reset_sbt(&timeout_task->c, sbt, pr,
sys/kern/subr_taskqueue.c
597
pending = !!(callout_stop(&timeout_task->c) > 0);
sys/kern/subr_taskqueue.c
650
callout_drain(&timeout_task->c);
sys/kern/subr_terminal.c
159
#define TCHAR_CREATE(c, a) ((c) | TFORMAT((a)->ta_format) | \
sys/kern/subr_terminal.c
302
terminal_input_char(struct terminal *tm, term_char_t c)
sys/kern/subr_terminal.c
315
if (TCHAR_FORMAT(c) & TF_CJK_RIGHT)
sys/kern/subr_terminal.c
317
c = TCHAR_CHARACTER(c);
sys/kern/subr_terminal.c
323
if (c < 0x80) {
sys/kern/subr_terminal.c
324
ttydisc_rint(tp, c, 0);
sys/kern/subr_terminal.c
325
} else if (c < 0x800) {
sys/kern/subr_terminal.c
327
0xc0 | (c >> 6),
sys/kern/subr_terminal.c
328
0x80 | (c & 0x3f)
sys/kern/subr_terminal.c
332
} else if (c < 0x10000) {
sys/kern/subr_terminal.c
334
0xe0 | (c >> 12),
sys/kern/subr_terminal.c
335
0x80 | ((c >> 6) & 0x3f),
sys/kern/subr_terminal.c
336
0x80 | (c & 0x3f)
sys/kern/subr_terminal.c
342
0xf0 | (c >> 18),
sys/kern/subr_terminal.c
343
0x80 | ((c >> 12) & 0x3f),
sys/kern/subr_terminal.c
344
0x80 | ((c >> 6) & 0x3f),
sys/kern/subr_terminal.c
345
0x80 | (c & 0x3f)
sys/kern/subr_terminal.c
355
terminal_input_raw(struct terminal *tm, char c)
sys/kern/subr_terminal.c
364
ttydisc_rint(tp, c, 0);
sys/kern/subr_terminal.c
599
termcn_cnputc(struct consdev *cp, int c)
sys/kern/subr_terminal.c
603
char cv = c;
sys/kern/subr_terminal.c
637
termteken_putchar(void *softc, const teken_pos_t *p, teken_char_t c,
sys/kern/subr_terminal.c
642
tm->tm_class->tc_putchar(tm, p, TCHAR_CREATE(c, a));
sys/kern/subr_terminal.c
646
termteken_fill(void *softc, const teken_rect_t *r, teken_char_t c,
sys/kern/subr_terminal.c
651
tm->tm_class->tc_fill(tm, r, TCHAR_CREATE(c, a));
sys/kern/subr_uio.c
347
ureadc(int c, struct uio *uio)
sys/kern/subr_uio.c
366
if (subyte(iov->iov_base, c) < 0)
sys/kern/subr_uio.c
372
*iov_base = c;
sys/kern/subr_unit.c
256
int c;
sys/kern/subr_unit.c
299
up->len, &c);
sys/kern/subr_unit.c
300
if (c != -1) {
sys/kern/subr_unit.c
301
iter->ipos = iter->upos_first_item + c;
sys/kern/subr_vmem.c
98
#define WITNESS_WARN(a, b, c)
sys/kern/tty.c
2108
ttyhook_defrint(struct tty *tp, char c, int flags)
sys/kern/tty.c
2111
if (ttyhook_rint_bypass(tp, &c, 1) != 1)
sys/kern/tty_inq.c
450
ttyinq_peekchar(struct ttyinq *ti, char *c, int *quote)
sys/kern/tty_inq.c
461
*c = tib->tib_data[boff];
sys/kern/tty_ttydisc.c
1002
if (ttyinq_peekchar(&tp->t_inq, &c, &quote) != 0)
sys/kern/tty_ttydisc.c
1004
if (CTL_WHITE(c))
sys/kern/tty_ttydisc.c
1006
if (CMP_FLAG(l, ALTWERASE) && CTL_ALNUM(c) != alnum)
sys/kern/tty_ttydisc.c
1012
ttydisc_rint(struct tty *tp, char c, int flags)
sys/kern/tty_ttydisc.c
1023
return ttyhook_rint(tp, c, flags);
sys/kern/tty_ttydisc.c
1062
c &= ~0x80;
sys/kern/tty_ttydisc.c
1074
if (CMP_CC(VLNEXT, c)) {
sys/kern/tty_ttydisc.c
1079
ttydisc_echo(tp, c, 0);
sys/kern/tty_ttydisc.c
1085
if (CMP_CC(VDISCARD, c)) {
sys/kern/tty_ttydisc.c
1090
ttydisc_echo(tp, c, 0);
sys/kern/tty_ttydisc.c
1103
if (CMP_CC(VSTATUS, c)) {
sys/kern/tty_ttydisc.c
1116
if (CMP_CC(VINTR, c)) {
sys/kern/tty_ttydisc.c
1118
} else if (CMP_CC(VQUIT, c)) {
sys/kern/tty_ttydisc.c
1120
} else if (CMP_CC(VSUSP, c)) {
sys/kern/tty_ttydisc.c
1131
ttydisc_echo(tp, c, 0);
sys/kern/tty_ttydisc.c
1141
if (CMP_CC(VSTOP, c)) {
sys/kern/tty_ttydisc.c
1152
if (!CMP_CC(VSTART, c))
sys/kern/tty_ttydisc.c
1155
if (CMP_CC(VSTART, c)) {
sys/kern/tty_ttydisc.c
1162
switch (c) {
sys/kern/tty_ttydisc.c
1167
c = CNL;
sys/kern/tty_ttydisc.c
1171
c = CCR;
sys/kern/tty_ttydisc.c
1177
if (CMP_CC(VERASE, c) || CMP_CC(VERASE2, c)) {
sys/kern/tty_ttydisc.c
1180
} else if (CMP_CC(VKILL, c)) {
sys/kern/tty_ttydisc.c
1184
if (CMP_CC(VWERASE, c)) {
sys/kern/tty_ttydisc.c
1187
} else if (CMP_CC(VREPRINT, c)) {
sys/kern/tty_ttydisc.c
1195
if (CMP_FLAG(i, PARMRK) && (unsigned char)c == 0xff) {
sys/kern/tty_ttydisc.c
1201
ob[0] = c;
sys/kern/tty_ttydisc.c
1210
ob[2] = c;
sys/kern/tty_ttydisc.c
1214
ob[0] = c;
sys/kern/tty_ttydisc.c
1245
(!quote && (c == CNL || CMP_CC(VEOL, c) || CMP_CC(VEOF, c)))) {
sys/kern/tty_ttydisc.c
1249
ttydisc_echo(tp, c, quote);
sys/kern/tty_ttydisc.c
127
#define BREAK_ADD(c) do { \
sys/kern/tty_ttydisc.c
129
if (tp->t_termios.c_cc[c] != _POSIX_VDISABLE) \
sys/kern/tty_ttydisc.c
130
breakc[n++] = tp->t_termios.c_cc[c]; \
sys/kern/tty_ttydisc.c
1333
size_t c;
sys/kern/tty_ttydisc.c
1335
c = ttyoutq_bytesleft(&tp->t_outq);
sys/kern/tty_ttydisc.c
1338
if (c < tp->t_outlow)
sys/kern/tty_ttydisc.c
1345
if (c == 0)
sys/kern/tty_ttydisc.c
1461
tty_putchar(struct tty *tp, char c)
sys/kern/tty_ttydisc.c
1463
return (tty_putstrn(tp, &c, 1));
sys/kern/tty_ttydisc.c
440
const char *c = obstart;
sys/kern/tty_ttydisc.c
443
if (CTL_VALID(*c))
sys/kern/tty_ttydisc.c
445
c++;
sys/kern/tty_ttydisc.c
448
return (c - obstart);
sys/kern/tty_ttydisc.c
452
ttydisc_write_oproc(struct tty *tp, char c)
sys/kern/tty_ttydisc.c
457
MPASS(CTL_VALID(c));
sys/kern/tty_ttydisc.c
459
#define PRINT_NORMAL() ttyoutq_write_nofrag(&tp->t_outq, &c, 1)
sys/kern/tty_ttydisc.c
460
switch (c) {
sys/kern/tty_ttydisc.c
511
c = CNL;
sys/kern/tty_ttydisc.c
61
#define CMP_CC(v,c) (tp->t_termios.c_cc[v] != _POSIX_VDISABLE && \
sys/kern/tty_ttydisc.c
62
tp->t_termios.c_cc[v] == (c))
sys/kern/tty_ttydisc.c
704
if (!tty_opened(tp) || CMP_FLAG(c, CLOCAL))
sys/kern/tty_ttydisc.c
71
#define CTL_VALID(c) ((c) == 0x7f || (unsigned char)(c) < 0x20)
sys/kern/tty_ttydisc.c
725
ttydisc_echo_force(struct tty *tp, char c, int quote)
sys/kern/tty_ttydisc.c
73
#define CTL_ECHO(c,q) (!(q) && ((c) == CERASE2 || (c) == CTAB || \
sys/kern/tty_ttydisc.c
731
if (CMP_FLAG(o, OPOST) && CTL_ECHO(c, quote)) {
sys/kern/tty_ttydisc.c
736
return ttydisc_write_oproc(tp, c);
sys/kern/tty_ttydisc.c
737
} else if (CMP_FLAG(l, ECHOCTL) && CTL_PRINT(c, quote)) {
sys/kern/tty_ttydisc.c
74
(c) == CNL || (c) == CCR))
sys/kern/tty_ttydisc.c
747
if (c != 0x7f)
sys/kern/tty_ttydisc.c
748
ob[1] = c + 'A' - 1;
sys/kern/tty_ttydisc.c
750
if (!quote && CMP_CC(VEOF, c)) {
sys/kern/tty_ttydisc.c
759
return ttyoutq_write_nofrag(&tp->t_outq, &c, 1);
sys/kern/tty_ttydisc.c
76
#define CTL_PRINT(c,q) ((c) == 0x7f || ((unsigned char)(c) < 0x20 && \
sys/kern/tty_ttydisc.c
764
ttydisc_echo(struct tty *tp, char c, int quote)
sys/kern/tty_ttydisc.c
77
((q) || ((c) != CTAB && (c) != CNL))))
sys/kern/tty_ttydisc.c
772
(!CMP_FLAG(l, ECHONL) || c != CNL || quote))
sys/kern/tty_ttydisc.c
775
return ttydisc_echo_force(tp, c, quote);
sys/kern/tty_ttydisc.c
779
ttydisc_reprint_char(void *d, char c, int quote)
sys/kern/tty_ttydisc.c
783
ttydisc_echo(tp, c, quote);
sys/kern/tty_ttydisc.c
789
cc_t c;
sys/kern/tty_ttydisc.c
79
#define CTL_WHITE(c) ((c) == ' ' || (c) == CTAB)
sys/kern/tty_ttydisc.c
792
c = tp->t_termios.c_cc[VREPRINT];
sys/kern/tty_ttydisc.c
793
if (c != _POSIX_VDISABLE)
sys/kern/tty_ttydisc.c
794
ttydisc_echo(tp, c, 0);
sys/kern/tty_ttydisc.c
807
ttydisc_recalc_charlength(void *d, char c, int quote)
sys/kern/tty_ttydisc.c
81
#define CTL_ALNUM(c) (((c) >= '0' && (c) <= '9') || \
sys/kern/tty_ttydisc.c
812
if (CTL_PRINT(c, quote)) {
sys/kern/tty_ttydisc.c
815
} else if (c == CTAB) {
sys/kern/tty_ttydisc.c
82
((c) >= 'a' && (c) <= 'z') || ((c) >= 'A' && (c) <= 'Z'))
sys/kern/tty_ttydisc.c
835
char c;
sys/kern/tty_ttydisc.c
839
if (ttyinq_peekchar(&tp->t_inq, &c, &quote) != 0)
sys/kern/tty_ttydisc.c
84
#define CTL_UTF8(c) (!!((c) & 0x80))
sys/kern/tty_ttydisc.c
853
if (CTL_PRINT(c, quote)) {
sys/kern/tty_ttydisc.c
86
#define CTL_UTF8_CONT(c) (((c) & 0xc0) == 0x80)
sys/kern/tty_ttydisc.c
860
} else if (c == ' ') {
sys/kern/tty_ttydisc.c
864
} else if (c == CTAB) {
sys/kern/tty_ttydisc.c
889
CTL_UTF8(c)) {
sys/kern/tty_ttydisc.c
896
bytes[curidx] = c;
sys/kern/tty_ttydisc.c
901
while (CTL_UTF8_CONT(c) && nb < UTF8_STACKBUF) {
sys/kern/tty_ttydisc.c
906
if (ttyinq_peekchar(&tp->t_inq, &c,
sys/kern/tty_ttydisc.c
910
bytes[curidx] = c;
sys/kern/tty_ttydisc.c
982
char c;
sys/kern/tty_ttydisc.c
987
if (ttyinq_peekchar(&tp->t_inq, &c, &quote) != 0)
sys/kern/tty_ttydisc.c
989
if (!CTL_WHITE(c))
sys/kern/tty_ttydisc.c
998
alnum = CTL_ALNUM(c);
sys/kern/uipc_mqueue.c
1245
int c, error;
sys/kern/uipc_mqueue.c
1266
error = c = 0;
sys/kern/uipc_mqueue.c
1295
c = 1;
sys/kern/uipc_mqueue.c
1303
c = 1;
sys/kern/uipc_mqueue.c
1318
c = 1;
sys/kern/uipc_mqueue.c
1320
if (c) {
sys/kern/uipc_shm.c
365
vm_size_t c;
sys/kern/uipc_shm.c
367
swap_pager_freespace(obj, start, size, &c);
sys/kern/uipc_shm.c
368
if (c == 0)
sys/kern/uipc_shm.c
374
KASSERT(shm->shm_pages >= c,
sys/kern/uipc_shm.c
376
(uintmax_t)shm->shm_pages, (uintmax_t)c));
sys/kern/uipc_shm.c
377
shm->shm_pages -= c;
sys/kern/uipc_usrreq.c
1104
struct uio *uio0, struct mbuf *m, struct mbuf *c, int flags,
sys/kern/uipc_usrreq.c
1117
MPASS(m == NULL || c == NULL);
sys/kern/uipc_usrreq.c
1132
if (c != NULL && (error = unp_internalize(c, &cmc, td)))
sys/kern/uipc_usrreq.c
1951
struct mbuf *m, struct mbuf *c, int flags, struct thread *td)
sys/kern/uipc_usrreq.c
1985
if (c != NULL && (error = unp_internalize(c, &cmc, td)))
sys/kern/vfs_cache.c
1546
u_int c;
sys/kern/vfs_cache.c
1548
c = atomic_fetchadd_int(&neg_cycle, 1) + 1;
sys/kern/vfs_cache.c
1549
nl = &neglists[c % numneglists];
sys/kern/vfs_cache.c
957
cache_get_hash_iter(char c, uint32_t hash)
sys/kern/vfs_cache.c
960
return (fnv_32_buf(&c, 1, hash));
sys/kern/vfs_mountroot.c
445
parse_poke(char **conf, int c)
sys/kern/vfs_mountroot.c
448
**conf = c;
sys/kern/vfs_mountroot.c
461
int c, match;
sys/kern/vfs_mountroot.c
464
c = parse_peek(conf);
sys/kern/vfs_mountroot.c
465
if (c == 0)
sys/kern/vfs_mountroot.c
469
match = (c == ' ' || c == '\t' || c == '\n') ? 1 : 0;
sys/kern/vfs_mountroot.c
472
if (c == '\n')
sys/kern/vfs_mountroot.c
474
match = (c != ' ' && c != '\t') ? 1 : 0;
sys/kern/vfs_mountroot.c
477
match = (c == mc) ? 1 : 0;
sys/kern/vfs_subr.c
941
int c;
sys/kern/vfs_subr.c
956
c = --mp->mnt_lockref;
sys/kern/vfs_subr.c
962
if (c < 0)
sys/kern/vfs_subr.c
964
if (c == 0 && (mp->mnt_kern_flag & MNTK_DRAINING) != 0) {
sys/kern/vfs_vnops.c
2250
int c;
sys/kern/vfs_vnops.c
2265
c = --mp->mnt_writeopcount;
sys/kern/vfs_vnops.c
2271
if (c < 0)
sys/kern/vfs_vnops.c
2273
if ((mp->mnt_kern_flag & MNTK_SUSPEND) != 0 && c == 0)
sys/libkern/fnmatch.c
134
if ((c = *pattern++) == EOS) {
sys/libkern/fnmatch.c
135
c = '\\';
sys/libkern/fnmatch.c
142
if (c == *string)
sys/libkern/fnmatch.c
145
(tolower((unsigned char)c) ==
sys/libkern/fnmatch.c
160
char c, c2;
sys/libkern/fnmatch.c
181
c = *pattern++;
sys/libkern/fnmatch.c
183
if (c == '\\' && !(flags & FNM_NOESCAPE))
sys/libkern/fnmatch.c
184
c = *pattern++;
sys/libkern/fnmatch.c
185
if (c == EOS)
sys/libkern/fnmatch.c
188
if (c == '/' && (flags & FNM_PATHNAME))
sys/libkern/fnmatch.c
192
c = tolower((unsigned char)c);
sys/libkern/fnmatch.c
205
if (c <= test && test <= c2)
sys/libkern/fnmatch.c
207
} else if (c == test)
sys/libkern/fnmatch.c
209
} while ((c = *pattern++) != ']');
sys/libkern/fnmatch.c
58
char c, test;
sys/libkern/fnmatch.c
61
switch (c = *pattern++) {
sys/libkern/fnmatch.c
78
c = *pattern;
sys/libkern/fnmatch.c
80
while (c == '*')
sys/libkern/fnmatch.c
81
c = *++pattern;
sys/libkern/fnmatch.c
89
if (c == EOS)
sys/libkern/fnmatch.c
96
else if (c == '/' && flags & FNM_PATHNAME) {
sys/libkern/iconv.c
308
towlower(int c, void *handle)
sys/libkern/iconv.c
310
return ICONV_CONVERTER_TOLOWER(handle, c);
sys/libkern/iconv.c
314
towupper(int c, void *handle)
sys/libkern/iconv.c
316
return ICONV_CONVERTER_TOUPPER(handle, c);
sys/libkern/iconv.c
472
iconv_converter_tolowerstub(int c, void *handle)
sys/libkern/iconv.c
474
return (c);
sys/libkern/iconv_xlat16.c
299
iconv_xlat16_tolower(void *d2p, int c)
sys/libkern/iconv_xlat16.c
304
if (c < 0x100) {
sys/libkern/iconv_xlat16.c
305
c1 = C2I1(c << 8);
sys/libkern/iconv_xlat16.c
306
c2 = C2I2(c << 8);
sys/libkern/iconv_xlat16.c
307
} else if (c < 0x10000) {
sys/libkern/iconv_xlat16.c
308
c1 = C2I1(c);
sys/libkern/iconv_xlat16.c
309
c2 = C2I2(c);
sys/libkern/iconv_xlat16.c
311
return (c);
sys/libkern/iconv_xlat16.c
320
return (c);
sys/libkern/iconv_xlat16.c
324
iconv_xlat16_toupper(void *d2p, int c)
sys/libkern/iconv_xlat16.c
329
if (c < 0x100) {
sys/libkern/iconv_xlat16.c
330
c1 = C2I1(c << 8);
sys/libkern/iconv_xlat16.c
331
c2 = C2I2(c << 8);
sys/libkern/iconv_xlat16.c
332
} else if (c < 0x10000) {
sys/libkern/iconv_xlat16.c
333
c1 = C2I1(c);
sys/libkern/iconv_xlat16.c
334
c2 = C2I2(c);
sys/libkern/iconv_xlat16.c
336
return (c);
sys/libkern/iconv_xlat16.c
344
return (c);
sys/libkern/iconv_xlat16.c
45
#define C2I1(c) ((c) & 0x8000 ? ((c) & 0xff) | 0x100 : (c) & 0xff)
sys/libkern/iconv_xlat16.c
46
#define C2I2(c) ((c) & 0x8000 ? ((c) >> 8) & 0x7f : ((c) >> 8) & 0xff)
sys/libkern/inet_aton.c
41
const char *c;
sys/libkern/inet_aton.c
45
c = (const char *)cp;
sys/libkern/inet_aton.c
56
l = strtoul(c, &endptr, 0);
sys/libkern/inet_aton.c
58
if (l == ULONG_MAX || (l == 0 && endptr == c))
sys/libkern/inet_aton.c
69
if (endptr == c)
sys/libkern/inet_aton.c
72
c = endptr;
sys/libkern/inet_aton.c
75
switch (*c) {
sys/libkern/inet_aton.c
82
c++;
sys/libkern/inet_aton.c
90
if (isspace((unsigned char)*c)) {
sys/libkern/jenkins_hash.c
125
#define final(a,b,c) \
sys/libkern/jenkins_hash.c
127
c ^= b; c -= rot(b,14); \
sys/libkern/jenkins_hash.c
128
a ^= c; a -= rot(c,11); \
sys/libkern/jenkins_hash.c
130
c ^= b; c -= rot(b,16); \
sys/libkern/jenkins_hash.c
131
a ^= c; a -= rot(c,4); \
sys/libkern/jenkins_hash.c
133
c ^= b; c -= rot(b,24); \
sys/libkern/jenkins_hash.c
154
uint32_t a,b,c;
sys/libkern/jenkins_hash.c
157
a = b = c = 0xdeadbeef + (((uint32_t)length)<<2) + initval;
sys/libkern/jenkins_hash.c
164
c += k[2];
sys/libkern/jenkins_hash.c
165
mix(a,b,c);
sys/libkern/jenkins_hash.c
173
case 3 : c+=k[2];
sys/libkern/jenkins_hash.c
176
final(a,b,c);
sys/libkern/jenkins_hash.c
181
return c;
sys/libkern/jenkins_hash.c
214
uint32_t a,b,c; /* internal state */
sys/libkern/jenkins_hash.c
218
a = b = c = 0xdeadbeef + ((uint32_t)length) + initval;
sys/libkern/jenkins_hash.c
229
c += k[2];
sys/libkern/jenkins_hash.c
230
mix(a,b,c);
sys/libkern/jenkins_hash.c
248
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
sys/libkern/jenkins_hash.c
249
case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break;
sys/libkern/jenkins_hash.c
250
case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break;
sys/libkern/jenkins_hash.c
251
case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break;
sys/libkern/jenkins_hash.c
260
case 0 : return c; /* zero length strings require no mixing */
sys/libkern/jenkins_hash.c
272
c += k[4] + (((uint32_t)k[5])<<16);
sys/libkern/jenkins_hash.c
273
mix(a,b,c);
sys/libkern/jenkins_hash.c
282
case 12: c+=k[4]+(((uint32_t)k[5])<<16);
sys/libkern/jenkins_hash.c
286
case 11: c+=((uint32_t)k8[10])<<16; /* fall through */
sys/libkern/jenkins_hash.c
287
case 10: c+=k[4];
sys/libkern/jenkins_hash.c
291
case 9 : c+=k8[8]; /* fall through */
sys/libkern/jenkins_hash.c
307
case 0 : return c; /* zero length requires no mixing */
sys/libkern/jenkins_hash.c
324
c += k[8];
sys/libkern/jenkins_hash.c
325
c += ((uint32_t)k[9])<<8;
sys/libkern/jenkins_hash.c
326
c += ((uint32_t)k[10])<<16;
sys/libkern/jenkins_hash.c
327
c += ((uint32_t)k[11])<<24;
sys/libkern/jenkins_hash.c
328
mix(a,b,c);
sys/libkern/jenkins_hash.c
336
case 12: c+=((uint32_t)k[11])<<24;
sys/libkern/jenkins_hash.c
337
case 11: c+=((uint32_t)k[10])<<16;
sys/libkern/jenkins_hash.c
338
case 10: c+=((uint32_t)k[9])<<8;
sys/libkern/jenkins_hash.c
339
case 9 : c+=k[8];
sys/libkern/jenkins_hash.c
349
case 0 : return c;
sys/libkern/jenkins_hash.c
353
final(a,b,c);
sys/libkern/jenkins_hash.c
354
return c;
sys/libkern/jenkins_hash.c
367
uint32_t a,b,c;
sys/libkern/jenkins_hash.c
371
a = b = c = 0xdeadbeef + ((uint32_t)length) + initval;
sys/libkern/jenkins_hash.c
382
c += k[2];
sys/libkern/jenkins_hash.c
383
mix(a,b,c);
sys/libkern/jenkins_hash.c
401
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
sys/libkern/jenkins_hash.c
402
case 11: c+=k[2]&0xffffff00; b+=k[1]; a+=k[0]; break;
sys/libkern/jenkins_hash.c
403
case 10: c+=k[2]&0xffff0000; b+=k[1]; a+=k[0]; break;
sys/libkern/jenkins_hash.c
404
case 9 : c+=k[2]&0xff000000; b+=k[1]; a+=k[0]; break;
sys/libkern/jenkins_hash.c
413
case 0 : return c; /* zero length strings require no mixing */
sys/libkern/jenkins_hash.c
430
c += ((uint32_t)k[8])<<24;
sys/libkern/jenkins_hash.c
431
c += ((uint32_t)k[9])<<16;
sys/libkern/jenkins_hash.c
432
c += ((uint32_t)k[10])<<8;
sys/libkern/jenkins_hash.c
433
c += ((uint32_t)k[11]);
sys/libkern/jenkins_hash.c
434
mix(a,b,c);
sys/libkern/jenkins_hash.c
442
case 12: c+=k[11];
sys/libkern/jenkins_hash.c
443
case 11: c+=((uint32_t)k[10])<<8;
sys/libkern/jenkins_hash.c
444
case 10: c+=((uint32_t)k[9])<<16;
sys/libkern/jenkins_hash.c
445
case 9 : c+=((uint32_t)k[8])<<24;
sys/libkern/jenkins_hash.c
455
case 0 : return c;
sys/libkern/jenkins_hash.c
459
final(a,b,c);
sys/libkern/jenkins_hash.c
460
return c;
sys/libkern/jenkins_hash.c
90
#define mix(a,b,c) \
sys/libkern/jenkins_hash.c
92
a -= c; a ^= rot(c, 4); c += b; \
sys/libkern/jenkins_hash.c
93
b -= a; b ^= rot(a, 6); a += c; \
sys/libkern/jenkins_hash.c
94
c -= b; c ^= rot(b, 8); b += a; \
sys/libkern/jenkins_hash.c
95
a -= c; a ^= rot(c,16); c += b; \
sys/libkern/jenkins_hash.c
96
b -= a; b ^= rot(a,19); a += c; \
sys/libkern/jenkins_hash.c
97
c -= b; c ^= rot(b, 4); b += a; \
sys/libkern/memcchr.c
52
if (*p != (unsigned char)c) \
sys/libkern/memcchr.c
58
memcchr(const void *begin, int c, size_t n)
sys/libkern/memcchr.c
65
word = (unsigned char)c;
sys/libkern/memchr.c
40
memchr(const void *s, int c, size_t n)
sys/libkern/memchr.c
46
if (*p++ == (unsigned char)c)
sys/libkern/memset.c
34
(memset)(void *b, int c, size_t len)
sys/libkern/memset.c
39
*bb++ = c;
sys/libkern/qsort.c
101
(CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a ))
sys/libkern/qsort.c
102
:(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c ));
sys/libkern/qsort.c
94
med3(char *a, char *b, char *c, cmp_t *cmp, void *thunk
sys/libkern/strcasestr.c
50
char c, sc;
sys/libkern/strcasestr.c
53
if ((c = *find++) != 0) {
sys/libkern/strcasestr.c
54
c = tolower((unsigned char)c);
sys/libkern/strcasestr.c
60
} while ((char)tolower((unsigned char)sc) != c);
sys/libkern/strcspn.c
34
#define IDX(c) ((u_char)(c) / LONG_BIT)
sys/libkern/strcspn.c
35
#define BIT(c) ((u_long)1 << ((u_char)(c) % LONG_BIT))
sys/libkern/strnstr.c
48
char c, sc;
sys/libkern/strnstr.c
51
if ((c = *find++) != '\0') {
sys/libkern/strnstr.c
57
} while (sc != c);
sys/libkern/strsep.c
51
int c, sc;
sys/libkern/strsep.c
57
c = *s++;
sys/libkern/strsep.c
60
if ((sc = *spanp++) == c) {
sys/libkern/strsep.c
61
if (c == '\0')
sys/libkern/strspn.c
34
#define IDX(c) ((u_char)(c) / LONG_BIT)
sys/libkern/strspn.c
35
#define BIT(c) ((u_long)1 << ((u_char)(c) % LONG_BIT))
sys/libkern/strstr.c
44
char c, sc;
sys/libkern/strstr.c
47
if ((c = *find++) != 0) {
sys/libkern/strstr.c
53
} while (sc != c);
sys/libkern/strtol.c
100
if (isdigit(c))
sys/libkern/strtol.c
101
c -= '0';
sys/libkern/strtol.c
102
else if (isalpha(c))
sys/libkern/strtol.c
103
c -= isupper(c) ? 'A' - 10 : 'a' - 10;
sys/libkern/strtol.c
106
if (c >= base)
sys/libkern/strtol.c
108
if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
sys/libkern/strtol.c
113
acc += c;
sys/libkern/strtol.c
51
unsigned char c;
sys/libkern/strtol.c
61
c = *s++;
sys/libkern/strtol.c
62
} while (isspace(c));
sys/libkern/strtol.c
63
if (c == '-') {
sys/libkern/strtol.c
65
c = *s++;
sys/libkern/strtol.c
66
} else if (c == '+')
sys/libkern/strtol.c
67
c = *s++;
sys/libkern/strtol.c
69
c == '0' && (*s == 'x' || *s == 'X')) {
sys/libkern/strtol.c
70
c = s[1];
sys/libkern/strtol.c
75
base = c == '0' ? 8 : 10;
sys/libkern/strtol.c
97
for (acc = 0, any = 0;; c = *s++) {
sys/libkern/strtol.c
98
if (!isascii(c))
sys/libkern/strtoq.c
103
for (acc = 0, any = 0;; c = *s++) {
sys/libkern/strtoq.c
104
if (!isascii(c))
sys/libkern/strtoq.c
106
if (isdigit(c))
sys/libkern/strtoq.c
107
c -= '0';
sys/libkern/strtoq.c
108
else if (isalpha(c))
sys/libkern/strtoq.c
109
c -= isupper(c) ? 'A' - 10 : 'a' - 10;
sys/libkern/strtoq.c
112
if (c >= base)
sys/libkern/strtoq.c
114
if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
sys/libkern/strtoq.c
119
acc += c;
sys/libkern/strtoq.c
51
unsigned char c;
sys/libkern/strtoq.c
62
c = *s++;
sys/libkern/strtoq.c
63
} while (isspace(c));
sys/libkern/strtoq.c
64
if (c == '-') {
sys/libkern/strtoq.c
66
c = *s++;
sys/libkern/strtoq.c
69
if (c == '+')
sys/libkern/strtoq.c
70
c = *s++;
sys/libkern/strtoq.c
73
c == '0' && (*s == 'x' || *s == 'X')) {
sys/libkern/strtoq.c
74
c = s[1];
sys/libkern/strtoq.c
79
base = c == '0' ? 8 : 10;
sys/libkern/strtoul.c
51
unsigned char c;
sys/libkern/strtoul.c
59
c = *s++;
sys/libkern/strtoul.c
60
} while (isspace(c));
sys/libkern/strtoul.c
61
if (c == '-') {
sys/libkern/strtoul.c
63
c = *s++;
sys/libkern/strtoul.c
64
} else if (c == '+')
sys/libkern/strtoul.c
65
c = *s++;
sys/libkern/strtoul.c
67
c == '0' && (*s == 'x' || *s == 'X')) {
sys/libkern/strtoul.c
68
c = s[1];
sys/libkern/strtoul.c
73
base = c == '0' ? 8 : 10;
sys/libkern/strtoul.c
76
for (acc = 0, any = 0;; c = *s++) {
sys/libkern/strtoul.c
77
if (!isascii(c))
sys/libkern/strtoul.c
79
if (isdigit(c))
sys/libkern/strtoul.c
80
c -= '0';
sys/libkern/strtoul.c
81
else if (isalpha(c))
sys/libkern/strtoul.c
82
c -= isupper(c) ? 'A' - 10 : 'a' - 10;
sys/libkern/strtoul.c
85
if (c >= base)
sys/libkern/strtoul.c
87
if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
sys/libkern/strtoul.c
92
acc += c;
sys/libkern/strtouq.c
51
unsigned char c;
sys/libkern/strtouq.c
59
c = *s++;
sys/libkern/strtouq.c
60
} while (isspace(c));
sys/libkern/strtouq.c
61
if (c == '-') {
sys/libkern/strtouq.c
63
c = *s++;
sys/libkern/strtouq.c
66
if (c == '+')
sys/libkern/strtouq.c
67
c = *s++;
sys/libkern/strtouq.c
70
c == '0' && (*s == 'x' || *s == 'X')) {
sys/libkern/strtouq.c
71
c = s[1];
sys/libkern/strtouq.c
76
base = c == '0' ? 8 : 10;
sys/libkern/strtouq.c
80
for (acc = 0, any = 0;; c = *s++) {
sys/libkern/strtouq.c
81
if (!isascii(c))
sys/libkern/strtouq.c
83
if (isdigit(c))
sys/libkern/strtouq.c
84
c -= '0';
sys/libkern/strtouq.c
85
else if (isalpha(c))
sys/libkern/strtouq.c
86
c -= isupper(c) ? 'A' - 10 : 'a' - 10;
sys/libkern/strtouq.c
89
if (c >= base)
sys/libkern/strtouq.c
91
if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
sys/libkern/strtouq.c
96
acc += c;
sys/net/altq/altq_codel.c
261
struct codel *c;
sys/net/altq/altq_codel.c
263
c = malloc(sizeof(*c), M_DEVBUF, M_NOWAIT | M_ZERO);
sys/net/altq/altq_codel.c
264
if (c != NULL) {
sys/net/altq/altq_codel.c
265
c->params.target = machclk_freq * target / 1000;
sys/net/altq/altq_codel.c
266
c->params.interval = machclk_freq * interval / 1000;
sys/net/altq/altq_codel.c
267
c->params.ecn = ecn;
sys/net/altq/altq_codel.c
268
c->stats.maxpacket = 256;
sys/net/altq/altq_codel.c
271
return (c);
sys/net/altq/altq_codel.c
275
codel_destroy(struct codel *c)
sys/net/altq/altq_codel.c
278
free(c, M_DEVBUF);
sys/net/altq/altq_codel.c
283
codel_addq(struct codel *c, class_queue_t *q, struct mbuf *m)
sys/net/altq/altq_codel.c
305
c->drop_overlimit++;
sys/net/altq/altq_codel.c
312
codel_should_drop(struct codel *c, class_queue_t *q, struct mbuf *m,
sys/net/altq/altq_codel.c
319
c->vars.first_above_time = 0;
sys/net/altq/altq_codel.c
326
if (ppsratecheck(&c->last_log, &c->last_pps, 1))
sys/net/altq/altq_codel.c
329
c->vars.first_above_time = 0;
sys/net/altq/altq_codel.c
333
c->vars.ldelay = now - *enqueue_time;
sys/net/altq/altq_codel.c
334
c->stats.maxpacket = MAX(c->stats.maxpacket, m_pktlen(m));
sys/net/altq/altq_codel.c
336
if (codel_time_before(c->vars.ldelay, c->params.target) ||
sys/net/altq/altq_codel.c
337
qsize(q) <= c->stats.maxpacket) {
sys/net/altq/altq_codel.c
339
c->vars.first_above_time = 0;
sys/net/altq/altq_codel.c
342
if (c->vars.first_above_time == 0) {
sys/net/altq/altq_codel.c
346
c->vars.first_above_time = now + c->params.interval;
sys/net/altq/altq_codel.c
349
if (codel_time_after(now, c->vars.first_above_time))
sys/net/altq/altq_codel.c
390
codel_getq(struct codel *c, class_queue_t *q)
sys/net/altq/altq_codel.c
397
c->vars.dropping = 0;
sys/net/altq/altq_codel.c
402
drop = codel_should_drop(c, q, m, now);
sys/net/altq/altq_codel.c
403
if (c->vars.dropping) {
sys/net/altq/altq_codel.c
406
c->vars.dropping = 0;
sys/net/altq/altq_codel.c
407
} else if (codel_time_after_eq(now, c->vars.drop_next)) {
sys/net/altq/altq_codel.c
416
while (c->vars.dropping &&
sys/net/altq/altq_codel.c
417
codel_time_after_eq(now, c->vars.drop_next)) {
sys/net/altq/altq_codel.c
418
c->vars.count++; /* don't care of possible wrap
sys/net/altq/altq_codel.c
421
codel_Newton_step(&c->vars);
sys/net/altq/altq_codel.c
423
PKTCNTR_ADD(&c->stats.drop_cnt, m_pktlen(m));
sys/net/altq/altq_codel.c
426
if (!codel_should_drop(c, q, m, now))
sys/net/altq/altq_codel.c
428
c->vars.dropping = 0;
sys/net/altq/altq_codel.c
431
c->vars.drop_next =
sys/net/altq/altq_codel.c
432
codel_control_law(c->vars.drop_next,
sys/net/altq/altq_codel.c
433
c->params.interval,
sys/net/altq/altq_codel.c
434
c->vars.rec_inv_sqrt);
sys/net/altq/altq_codel.c
439
PKTCNTR_ADD(&c->stats.drop_cnt, m_pktlen(m));
sys/net/altq/altq_codel.c
443
drop = codel_should_drop(c, q, m, now);
sys/net/altq/altq_codel.c
445
c->vars.dropping = 1;
sys/net/altq/altq_codel.c
450
if (codel_time_before(now - c->vars.drop_next,
sys/net/altq/altq_codel.c
451
16 * c->params.interval)) {
sys/net/altq/altq_codel.c
452
c->vars.count = (c->vars.count - c->vars.lastcount) | 1;
sys/net/altq/altq_codel.c
457
codel_Newton_step(&c->vars);
sys/net/altq/altq_codel.c
459
c->vars.count = 1;
sys/net/altq/altq_codel.c
460
c->vars.rec_inv_sqrt = ~0U >> REC_INV_SQRT_SHIFT;
sys/net/altq/altq_codel.c
462
c->vars.lastcount = c->vars.count;
sys/net/altq/altq_codel.c
463
c->vars.drop_next = codel_control_law(now, c->params.interval,
sys/net/altq/altq_codel.c
464
c->vars.rec_inv_sqrt);
sys/net/altq/altq_codel.c
471
codel_getstats(struct codel *c, struct codel_stats *s)
sys/net/altq/altq_codel.c
473
*s = c->stats;
sys/net/altq/altq_rmclass_debug.h
102
#define CBQTRACE(a, b, c)
sys/net/altq/altq_var.h
156
#define CALLOUT_INIT(c) callout_init((c), 1)
sys/net/altq/altq_var.h
157
#define CALLOUT_RESET(c,t,f,a) callout_reset((c),(t),(f),(a))
sys/net/altq/altq_var.h
158
#define CALLOUT_STOP(c) callout_stop((c))
sys/net/bpf_filter.c
535
#define BPF_VALIDATE_CODE(c) \
sys/net/bpf_filter.c
536
((c) <= 0xff && (bpf_code_map[(c) >> 4] & (1 << ((c) & 0xf))) != 0)
sys/net/if_bridge.c
3715
#define mix(a, b, c) \
sys/net/if_bridge.c
3717
a -= b; a -= c; a ^= (c >> 13); \
sys/net/if_bridge.c
3718
b -= c; b -= a; b ^= (a << 8); \
sys/net/if_bridge.c
3719
c -= a; c -= b; c ^= (b >> 13); \
sys/net/if_bridge.c
3720
a -= b; a -= c; a ^= (c >> 12); \
sys/net/if_bridge.c
3721
b -= c; b -= a; b ^= (a << 16); \
sys/net/if_bridge.c
3722
c -= a; c -= b; c ^= (b >> 5); \
sys/net/if_bridge.c
3723
a -= b; a -= c; a ^= (c >> 3); \
sys/net/if_bridge.c
3724
b -= c; b -= a; b ^= (a << 10); \
sys/net/if_bridge.c
3725
c -= a; c -= b; c ^= (b >> 15); \
sys/net/if_bridge.c
3731
uint32_t a = 0x9e3779b9, b = 0x9e3779b9, c = sc->sc_rthash_key;
sys/net/if_bridge.c
3740
mix(a, b, c);
sys/net/if_bridge.c
3742
return (c & BRIDGE_RTHASH_MASK);
sys/net/if_pflog.h
72
#define PFLOG_PACKET(b,t,c,d,e,f,g,h) do { \
sys/net/if_pflog.h
74
pflog_packet_ptr(b,t,c,d,e,f,g,h); \
sys/net/if_vxlan.c
3304
uint32_t a = 0x9e3779b9, b = 0x9e3779b9, c = sc->vxl_ftable_hash_key;
sys/net/if_vxlan.c
3317
#define mix(a, b, c) \
sys/net/if_vxlan.c
3319
a -= b; a -= c; a ^= (c >> 13); \
sys/net/if_vxlan.c
3320
b -= c; b -= a; b ^= (a << 8); \
sys/net/if_vxlan.c
3321
c -= a; c -= b; c ^= (b >> 13); \
sys/net/if_vxlan.c
3322
a -= b; a -= c; a ^= (c >> 12); \
sys/net/if_vxlan.c
3323
b -= c; b -= a; b ^= (a << 16); \
sys/net/if_vxlan.c
3324
c -= a; c -= b; c ^= (b >> 5); \
sys/net/if_vxlan.c
3325
a -= b; a -= c; a ^= (c >> 3); \
sys/net/if_vxlan.c
3326
b -= c; b -= a; b ^= (a << 10); \
sys/net/if_vxlan.c
3327
c -= a; c -= b; c ^= (b >> 15); \
sys/net/if_vxlan.c
3330
mix(a, b, c);
sys/net/if_vxlan.c
3334
return (c);
sys/net/netmap_user.h
1043
u_int c, n = d->last_tx_ring - d->first_tx_ring + 1,
sys/net/netmap_user.h
1046
for (c = 0; c < n ; c++, ri++) {
sys/net/netmap_user.h
1091
int c, got = 0, ri = d->cur_rx_ring;
sys/net/netmap_user.h
1102
for (c=0; c < n && cnt != got; c++, ri++) {
sys/net/pfvar.h
1804
u_int64_t c;
sys/net/pfvar.h
1806
c = counter_u64_fetch(pfrc->pkc_pcpu);
sys/net/pfvar.h
1807
c -= pfrc->pkc_zero;
sys/net/pfvar.h
1808
return (c);
sys/net/pfvar.h
1814
u_int64_t c;
sys/net/pfvar.h
1816
c = counter_u64_fetch(pfrc->pkc_pcpu);
sys/net/pfvar.h
1817
pfrc->pkc_zero = c;
sys/net/pfvar.h
514
#define PF_AEQ(a, b, c) \
sys/net/pfvar.h
515
((c == AF_INET && (a)->addr32[0] == (b)->addr32[0]) || \
sys/net/pfvar.h
516
(c == AF_INET6 && (a)->addr32[3] == (b)->addr32[3] && \
sys/net/pfvar.h
521
#define PF_ANEQ(a, b, c) \
sys/net/pfvar.h
522
((c == AF_INET && (a)->addr32[0] != (b)->addr32[0]) || \
sys/net/pfvar.h
523
(c == AF_INET6 && ((a)->addr32[0] != (b)->addr32[0] || \
sys/net/pfvar.h
528
#define PF_AZERO(a, c) \
sys/net/pfvar.h
529
((c == AF_INET && !(a)->addr32[0]) || \
sys/net/pfvar.h
530
(c == AF_INET6 && !(a)->addr32[0] && !(a)->addr32[1] && \
sys/net/pfvar.h
539
#define PF_AEQ(a, b, c) \
sys/net/pfvar.h
545
#define PF_ANEQ(a, b, c) \
sys/net/pfvar.h
551
#define PF_AZERO(a, c) \
sys/net/pfvar.h
562
#define PF_AEQ(a, b, c) \
sys/net/pfvar.h
565
#define PF_ANEQ(a, b, c) \
sys/net/pfvar.h
568
#define PF_AZERO(a, c) \
sys/net/ppp_defs.h
137
struct compstat c; /* packet compression statistics */
sys/net/ppp_defs.h
81
#define PPP_FCS(fcs, c) (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff])
sys/net/radix.c
501
const unsigned char *c, *clim;
sys/net/radix.c
555
for (c = netmask + skip; (c < clim) && *(const u_char *)c == 0xff;)
sys/net/radix.c
556
c++;
sys/net/radix.c
557
if (c != clim) {
sys/net/radix.c
558
for (j = 0x80; (j & *c) != 0; j >>= 1)
sys/net/radix.c
560
if (!CONTIG(*c) || c != (clim - 1))
sys/net/radix.c
563
b += (c - netmask) << 3;
sys/net80211/ieee80211.c
1099
ieee80211_chan2ieee(struct ieee80211com *ic, const struct ieee80211_channel *c)
sys/net80211/ieee80211.c
1101
if (c == NULL) {
sys/net80211/ieee80211.c
1105
return (c == IEEE80211_CHAN_ANYC ? IEEE80211_CHAN_ANY : c->ic_ieee);
sys/net80211/ieee80211.c
1142
set_extchan(struct ieee80211_channel *c)
sys/net80211/ieee80211.c
1149
if (c->ic_flags & IEEE80211_CHAN_HT40U)
sys/net80211/ieee80211.c
1150
c->ic_extieee = c->ic_ieee + 4;
sys/net80211/ieee80211.c
1151
else if (c->ic_flags & IEEE80211_CHAN_HT40D)
sys/net80211/ieee80211.c
1152
c->ic_extieee = c->ic_ieee - 4;
sys/net80211/ieee80211.c
1154
c->ic_extieee = 0;
sys/net80211/ieee80211.c
1198
set_vht_extchan(struct ieee80211_channel *c)
sys/net80211/ieee80211.c
1202
if (! IEEE80211_IS_CHAN_VHT(c))
sys/net80211/ieee80211.c
1205
if (IEEE80211_IS_CHAN_VHT80P80(c)) {
sys/net80211/ieee80211.c
1207
__func__, c->ic_ieee, c->ic_flags);
sys/net80211/ieee80211.c
1210
if (IEEE80211_IS_CHAN_VHT160(c)) {
sys/net80211/ieee80211.c
1212
if (c->ic_freq >= vht160_chan_ranges[i].freq_start &&
sys/net80211/ieee80211.c
1213
c->ic_freq < vht160_chan_ranges[i].freq_end) {
sys/net80211/ieee80211.c
1217
c->ic_vht_ch_freq1 =
sys/net80211/ieee80211.c
1218
ieee80211_mhz2ieee(midpoint, c->ic_flags);
sys/net80211/ieee80211.c
1219
c->ic_vht_ch_freq2 = 0;
sys/net80211/ieee80211.c
1222
__func__, c->ic_ieee, c->ic_freq, midpoint,
sys/net80211/ieee80211.c
1223
c->ic_vht_ch_freq1, c->ic_vht_ch_freq2);
sys/net80211/ieee80211.c
123
static int set_vht_extchan(struct ieee80211_channel *c);
sys/net80211/ieee80211.c
1231
if (IEEE80211_IS_CHAN_VHT80(c)) {
sys/net80211/ieee80211.c
1233
if (c->ic_freq >= vht80_chan_ranges[i].freq_start &&
sys/net80211/ieee80211.c
1234
c->ic_freq < vht80_chan_ranges[i].freq_end) {
sys/net80211/ieee80211.c
1238
c->ic_vht_ch_freq1 =
sys/net80211/ieee80211.c
1239
ieee80211_mhz2ieee(midpoint, c->ic_flags);
sys/net80211/ieee80211.c
1240
c->ic_vht_ch_freq2 = 0;
sys/net80211/ieee80211.c
1243
__func__, c->ic_ieee, c->ic_freq, midpoint,
sys/net80211/ieee80211.c
1244
c->ic_vht_ch_freq1, c->ic_vht_ch_freq2);
sys/net80211/ieee80211.c
1252
if (IEEE80211_IS_CHAN_VHT40(c)) {
sys/net80211/ieee80211.c
1253
if (IEEE80211_IS_CHAN_HT40U(c))
sys/net80211/ieee80211.c
1254
c->ic_vht_ch_freq1 = c->ic_ieee + 2;
sys/net80211/ieee80211.c
1255
else if (IEEE80211_IS_CHAN_HT40D(c))
sys/net80211/ieee80211.c
1256
c->ic_vht_ch_freq1 = c->ic_ieee - 2;
sys/net80211/ieee80211.c
1262
if (IEEE80211_IS_CHAN_VHT20(c)) {
sys/net80211/ieee80211.c
1263
c->ic_vht_ch_freq1 = c->ic_ieee;
sys/net80211/ieee80211.c
1268
__func__, c->ic_ieee, c->ic_flags);
sys/net80211/ieee80211.c
1309
struct ieee80211_channel *c;
sys/net80211/ieee80211.c
1319
c = &chans[(*nchans)++];
sys/net80211/ieee80211.c
1320
c->ic_ieee = ieee;
sys/net80211/ieee80211.c
1321
c->ic_freq = freq != 0 ? freq : ieee80211_ieee2mhz(ieee, flags);
sys/net80211/ieee80211.c
1322
c->ic_maxregpower = maxregpower;
sys/net80211/ieee80211.c
1323
c->ic_maxpower = 2 * maxregpower;
sys/net80211/ieee80211.c
1324
c->ic_flags = flags;
sys/net80211/ieee80211.c
1325
c->ic_vht_ch_freq1 = 0;
sys/net80211/ieee80211.c
1326
c->ic_vht_ch_freq2 = 0;
sys/net80211/ieee80211.c
1327
set_extchan(c);
sys/net80211/ieee80211.c
1328
set_vht_extchan(c);
sys/net80211/ieee80211.c
1337
struct ieee80211_channel *c;
sys/net80211/ieee80211.c
1349
c = &chans[(*nchans)++];
sys/net80211/ieee80211.c
1350
c[0] = c[-1];
sys/net80211/ieee80211.c
1351
c->ic_flags = flags;
sys/net80211/ieee80211.c
1352
c->ic_vht_ch_freq1 = 0;
sys/net80211/ieee80211.c
1353
c->ic_vht_ch_freq2 = 0;
sys/net80211/ieee80211.c
1354
set_extchan(c);
sys/net80211/ieee80211.c
1355
set_vht_extchan(c);
sys/net80211/ieee80211.c
137
struct ieee80211_channel *c;
sys/net80211/ieee80211.c
146
c = &ic->ic_channels[i];
sys/net80211/ieee80211.c
147
KASSERT(c->ic_flags != 0, ("channel with no flags"));
sys/net80211/ieee80211.c
1510
struct ieee80211_channel *c;
sys/net80211/ieee80211.c
1516
c = &chans[i];
sys/net80211/ieee80211.c
1517
if (c->ic_freq == freq &&
sys/net80211/ieee80211.c
1518
(c->ic_flags & IEEE80211_CHAN_ALLTURBO) == flags)
sys/net80211/ieee80211.c
1519
return c;
sys/net80211/ieee80211.c
154
if (c->ic_ieee == 0)
sys/net80211/ieee80211.c
155
c->ic_ieee = ieee80211_mhz2ieee(c->ic_freq,c->ic_flags);
sys/net80211/ieee80211.c
1567
ieee80211_get_channel_center_freq(const struct ieee80211_channel *c)
sys/net80211/ieee80211.c
1570
return (c->ic_freq);
sys/net80211/ieee80211.c
1586
ieee80211_get_channel_center_freq1(const struct ieee80211_channel *c)
sys/net80211/ieee80211.c
1593
if (IEEE80211_IS_CHAN_VHT(c))
sys/net80211/ieee80211.c
1594
return (ieee80211_ieee2mhz(c->ic_vht_ch_freq1, c->ic_flags));
sys/net80211/ieee80211.c
1596
if (IEEE80211_IS_CHAN_HT40U(c)) {
sys/net80211/ieee80211.c
1597
return (c->ic_freq + 10);
sys/net80211/ieee80211.c
1599
if (IEEE80211_IS_CHAN_HT40D(c)) {
sys/net80211/ieee80211.c
1600
return (c->ic_freq - 10);
sys/net80211/ieee80211.c
1603
return (c->ic_freq);
sys/net80211/ieee80211.c
161
if (IEEE80211_IS_CHAN_HT40(c) && c->ic_extieee == 0)
sys/net80211/ieee80211.c
1610
ieee80211_get_channel_center_freq2(const struct ieee80211_channel *c)
sys/net80211/ieee80211.c
1613
if (IEEE80211_IS_CHAN_VHT(c) && (c->ic_vht_ch_freq2 != 0))
sys/net80211/ieee80211.c
1614
return (ieee80211_ieee2mhz(c->ic_vht_ch_freq2, c->ic_flags));
sys/net80211/ieee80211.c
162
c->ic_extieee = ieee80211_mhz2ieee(c->ic_freq +
sys/net80211/ieee80211.c
163
(IEEE80211_IS_CHAN_HT40U(c) ? 20 : -20),
sys/net80211/ieee80211.c
164
c->ic_flags);
sys/net80211/ieee80211.c
171
set_vht_extchan(c);
sys/net80211/ieee80211.c
174
if (c->ic_maxpower == 0)
sys/net80211/ieee80211.c
175
c->ic_maxpower = 2*c->ic_maxregpower;
sys/net80211/ieee80211.c
176
setbit(ic->ic_chan_avail, c->ic_ieee);
sys/net80211/ieee80211.c
1771
struct ieee80211_channel *c;
sys/net80211/ieee80211.c
1774
c = ic->ic_prevchan;
sys/net80211/ieee80211.c
1775
if (c != NULL && c->ic_freq == freq &&
sys/net80211/ieee80211.c
1776
(c->ic_flags & IEEE80211_CHAN_ALLTURBO) == flags)
sys/net80211/ieee80211.c
1777
return c;
sys/net80211/ieee80211.c
1790
struct ieee80211_channel *c;
sys/net80211/ieee80211.c
1794
c = ic->ic_prevchan;
sys/net80211/ieee80211.c
1795
if (c != NULL && c->ic_ieee == ieee &&
sys/net80211/ieee80211.c
1796
(c->ic_flags & IEEE80211_CHAN_ALLTURBO) == flags)
sys/net80211/ieee80211.c
1797
return c;
sys/net80211/ieee80211.c
180
if (IEEE80211_IS_CHAN_A(c))
sys/net80211/ieee80211.c
1800
c = &ic->ic_channels[i];
sys/net80211/ieee80211.c
1801
if (c->ic_ieee == ieee &&
sys/net80211/ieee80211.c
1802
(c->ic_flags & IEEE80211_CHAN_ALLTURBO) == flags)
sys/net80211/ieee80211.c
1803
return c;
sys/net80211/ieee80211.c
182
if (IEEE80211_IS_CHAN_B(c))
sys/net80211/ieee80211.c
1832
struct ieee80211_channel *c;
sys/net80211/ieee80211.c
184
if (IEEE80211_IS_CHAN_ANYG(c))
sys/net80211/ieee80211.c
186
if (IEEE80211_IS_CHAN_FHSS(c))
sys/net80211/ieee80211.c
1875
c = ieee80211_find_channel(ic, rxs->c_freq, flags);
sys/net80211/ieee80211.c
1879
__func__, (int) rxs->c_freq, (int) rxs->c_ieee, flags, c);
sys/net80211/ieee80211.c
188
if (IEEE80211_IS_CHAN_108A(c))
sys/net80211/ieee80211.c
1881
return (c);
sys/net80211/ieee80211.c
190
if (IEEE80211_IS_CHAN_108G(c))
sys/net80211/ieee80211.c
192
if (IEEE80211_IS_CHAN_ST(c))
sys/net80211/ieee80211.c
194
if (IEEE80211_IS_CHAN_HALF(c))
sys/net80211/ieee80211.c
196
if (IEEE80211_IS_CHAN_QUARTER(c))
sys/net80211/ieee80211.c
198
if (IEEE80211_IS_CHAN_HTA(c))
sys/net80211/ieee80211.c
200
if (IEEE80211_IS_CHAN_HTG(c))
sys/net80211/ieee80211.c
202
if (IEEE80211_IS_CHAN_VHTA(c))
sys/net80211/ieee80211.c
204
if (IEEE80211_IS_CHAN_VHTG(c))
sys/net80211/ieee80211.c
2043
ieee80211_get_suprates(struct ieee80211com *ic, const struct ieee80211_channel *c)
sys/net80211/ieee80211.c
2046
return &ic->ic_sup_rates[ieee80211_chan2mode(c)];
sys/net80211/ieee80211.c
2052
const struct ieee80211_channel *c)
sys/net80211/ieee80211.c
2089
const struct ieee80211_channel *c;
sys/net80211/ieee80211.c
2095
c = &ic->ic_channels[i];
sys/net80211/ieee80211.c
2096
if (IEEE80211_IS_CHAN_ST(c))
sys/net80211/ieee80211.c
2098
else if (IEEE80211_IS_CHAN_108A(c))
sys/net80211/ieee80211.c
2100
else if (IEEE80211_IS_CHAN_108G(c))
sys/net80211/ieee80211.c
2102
else if (IEEE80211_IS_CHAN_HT(c))
sys/net80211/ieee80211.c
2104
else if (IEEE80211_IS_CHAN_A(c))
sys/net80211/ieee80211.c
2106
else if (IEEE80211_IS_CHAN_ANYG(c))
sys/net80211/ieee80211.c
2108
else if (IEEE80211_IS_CHAN_B(c))
sys/net80211/ieee80211.c
2112
if (IEEE80211_IS_CHAN_HT40(c) || IEEE80211_IS_CHAN_TURBO(c))
sys/net80211/ieee80211.c
2114
else if (IEEE80211_IS_CHAN_HALF(c))
sys/net80211/ieee80211.c
2116
else if (IEEE80211_IS_CHAN_QUARTER(c))
sys/net80211/ieee80211.c
2121
, c->ic_ieee, c->ic_freq, type
sys/net80211/ieee80211.c
2123
, IEEE80211_IS_CHAN_HT40U(c) ? '+' :
sys/net80211/ieee80211.c
2124
IEEE80211_IS_CHAN_HT40D(c) ? '-' : ' '
sys/net80211/ieee80211.c
2125
, c->ic_maxregpower
sys/net80211/ieee80211.c
2126
, c->ic_minpower / 2, c->ic_minpower & 1 ? 5 : 0
sys/net80211/ieee80211.c
2127
, c->ic_maxpower / 2, c->ic_maxpower & 1 ? 5 : 0
sys/net80211/ieee80211.c
2638
#define mix(a, b, c) \
sys/net80211/ieee80211.c
2640
a -= b; a -= c; a ^= (c >> 13); \
sys/net80211/ieee80211.c
2641
b -= c; b -= a; b ^= (a << 8); \
sys/net80211/ieee80211.c
2642
c -= a; c -= b; c ^= (b >> 13); \
sys/net80211/ieee80211.c
2643
a -= b; a -= c; a ^= (c >> 12); \
sys/net80211/ieee80211.c
2644
b -= c; b -= a; b ^= (a << 16); \
sys/net80211/ieee80211.c
2645
c -= a; c -= b; c ^= (b >> 5); \
sys/net80211/ieee80211.c
2646
a -= b; a -= c; a ^= (c >> 3); \
sys/net80211/ieee80211.c
2647
b -= c; b -= a; b ^= (a << 10); \
sys/net80211/ieee80211.c
2648
c -= a; c -= b; c ^= (b >> 15); \
sys/net80211/ieee80211.c
2655
uint32_t a = 0x9e3779b9, b = 0x9e3779b9, c = ic->ic_hash_key;
sys/net80211/ieee80211.c
2664
mix(a, b, c);
sys/net80211/ieee80211.c
2666
return c;
sys/net80211/ieee80211.c
2671
ieee80211_channel_type_char(const struct ieee80211_channel *c)
sys/net80211/ieee80211.c
2673
if (IEEE80211_IS_CHAN_ST(c))
sys/net80211/ieee80211.c
2675
if (IEEE80211_IS_CHAN_108A(c))
sys/net80211/ieee80211.c
2677
if (IEEE80211_IS_CHAN_108G(c))
sys/net80211/ieee80211.c
2679
if (IEEE80211_IS_CHAN_VHT(c))
sys/net80211/ieee80211.c
2681
if (IEEE80211_IS_CHAN_HT(c))
sys/net80211/ieee80211.c
2683
if (IEEE80211_IS_CHAN_A(c))
sys/net80211/ieee80211.c
2685
if (IEEE80211_IS_CHAN_ANYG(c))
sys/net80211/ieee80211.c
2687
if (IEEE80211_IS_CHAN_B(c))
sys/net80211/ieee80211_adhoc.c
733
struct ieee80211_channel *c;
sys/net80211/ieee80211_adhoc.c
739
c = ieee80211_lookup_channel_rxstatus(vap, rxs);
sys/net80211/ieee80211_adhoc.c
740
if (c != NULL)
sys/net80211/ieee80211_adhoc.c
741
rxchan = c;
sys/net80211/ieee80211_ddb.c
860
_db_show_channel(const char *tag, const struct ieee80211_channel *c)
sys/net80211/ieee80211_ddb.c
863
if (c == NULL)
sys/net80211/ieee80211_ddb.c
865
else if (c == IEEE80211_CHAN_ANYC)
sys/net80211/ieee80211_ddb.c
869
c->ic_freq, c->ic_ieee,
sys/net80211/ieee80211_ddb.c
870
c->ic_flags, IEEE80211_CHAN_BITS,
sys/net80211/ieee80211_ddb.c
871
c->ic_maxregpower, c->ic_maxpower, c->ic_minpower,
sys/net80211/ieee80211_ddb.c
872
c->ic_state, c->ic_extieee);
sys/net80211/ieee80211_dfs.c
166
struct ieee80211_channel *c = &ic->ic_channels[i];
sys/net80211/ieee80211_dfs.c
167
if (c->ic_freq == ic->ic_curchan->ic_freq)
sys/net80211/ieee80211_dfs.c
168
c->ic_state |= IEEE80211_CHANSTATE_CACDONE;
sys/net80211/ieee80211_dfs.c
226
struct ieee80211_channel *c = &ic->ic_channels[i];
sys/net80211/ieee80211_dfs.c
227
if (c->ic_freq == chan->ic_freq)
sys/net80211/ieee80211_dfs.c
228
c->ic_state &= ~IEEE80211_CHANSTATE_CACDONE;
sys/net80211/ieee80211_dfs.c
237
struct ieee80211_channel *c;
sys/net80211/ieee80211_dfs.c
244
c = &ic->ic_channels[i];
sys/net80211/ieee80211_dfs.c
245
if (IEEE80211_IS_CHAN_RADAR(c)) {
sys/net80211/ieee80211_dfs.c
247
c->ic_state &= ~IEEE80211_CHANSTATE_RADAR;
sys/net80211/ieee80211_dfs.c
248
if (c->ic_state & IEEE80211_CHANSTATE_NORADAR) {
sys/net80211/ieee80211_dfs.c
256
c->ic_ieee, c->ic_freq);
sys/net80211/ieee80211_dfs.c
258
c->ic_state &=
sys/net80211/ieee80211_dfs.c
260
ieee80211_notify_radar(ic, c);
sys/net80211/ieee80211_dfs.c
328
struct ieee80211_channel *c = &ic->ic_channels[i];
sys/net80211/ieee80211_dfs.c
329
if (c->ic_freq == chan->ic_freq) {
sys/net80211/ieee80211_dfs.c
330
c->ic_state &= ~IEEE80211_CHANSTATE_CACDONE;
sys/net80211/ieee80211_dfs.c
331
c->ic_state |= IEEE80211_CHANSTATE_RADAR;
sys/net80211/ieee80211_dfs.c
401
struct ieee80211_channel *c;
sys/net80211/ieee80211_dfs.c
413
c = ieee80211_scan_pickchannel(ic, flags);
sys/net80211/ieee80211_dfs.c
414
if (c != NULL)
sys/net80211/ieee80211_dfs.c
415
return c;
sys/net80211/ieee80211_dfs.c
424
c = &ic->ic_channels[i];
sys/net80211/ieee80211_dfs.c
425
if (!IEEE80211_IS_CHAN_RADAR(c) &&
sys/net80211/ieee80211_dfs.c
426
(c->ic_flags & flags) == flags)
sys/net80211/ieee80211_dfs.c
427
return c;
sys/net80211/ieee80211_dfs.c
430
c = &ic->ic_channels[i];
sys/net80211/ieee80211_dfs.c
431
if (!IEEE80211_IS_CHAN_RADAR(c) &&
sys/net80211/ieee80211_dfs.c
432
(c->ic_flags & flags) == flags)
sys/net80211/ieee80211_dfs.c
433
return c;
sys/net80211/ieee80211_freebsd.c
1000
iev.iev_flags = c->ic_flags;
sys/net80211/ieee80211_freebsd.c
1001
iev.iev_freq = c->ic_freq;
sys/net80211/ieee80211_freebsd.c
1002
iev.iev_ieee = c->ic_ieee;
sys/net80211/ieee80211_freebsd.c
951
const struct ieee80211_channel *c, int mode, int count)
sys/net80211/ieee80211_freebsd.c
958
iev.iev_flags = c->ic_flags;
sys/net80211/ieee80211_freebsd.c
959
iev.iev_freq = c->ic_freq;
sys/net80211/ieee80211_freebsd.c
960
iev.iev_ieee = c->ic_ieee;
sys/net80211/ieee80211_freebsd.c
973
const struct ieee80211_channel *c)
sys/net80211/ieee80211_freebsd.c
980
iev.iev_flags = c->ic_flags;
sys/net80211/ieee80211_freebsd.c
981
iev.iev_freq = c->ic_freq;
sys/net80211/ieee80211_freebsd.c
982
iev.iev_ieee = c->ic_ieee;
sys/net80211/ieee80211_freebsd.c
993
const struct ieee80211_channel *c, enum ieee80211_notify_cac_event type)
sys/net80211/ieee80211_ht.c
1410
findhtchan(struct ieee80211com *ic, struct ieee80211_channel *c, int htflags)
sys/net80211/ieee80211_ht.c
1412
return ieee80211_find_channel(ic, c->ic_freq,
sys/net80211/ieee80211_ht.c
1413
(c->ic_flags &~ IEEE80211_CHAN_HT) | htflags);
sys/net80211/ieee80211_ht.c
1423
struct ieee80211_channel *c;
sys/net80211/ieee80211_ht.c
1430
c = findhtchan(ic, chan, IEEE80211_CHAN_HT40U);
sys/net80211/ieee80211_ht.c
1431
if (c == NULL)
sys/net80211/ieee80211_ht.c
1432
c = findhtchan(ic, chan,
sys/net80211/ieee80211_ht.c
1434
if (c == NULL)
sys/net80211/ieee80211_ht.c
1435
c = findhtchan(ic, chan,
sys/net80211/ieee80211_ht.c
1437
if (c != NULL)
sys/net80211/ieee80211_ht.c
1438
chan = c;
sys/net80211/ieee80211_ht.c
1441
c = findhtchan(ic, chan, IEEE80211_CHAN_HT20);
sys/net80211/ieee80211_ht.c
1442
if (c != NULL)
sys/net80211/ieee80211_ht.c
1443
chan = c;
sys/net80211/ieee80211_ht.c
1447
c = ieee80211_find_channel(ic, chan->ic_freq,
sys/net80211/ieee80211_ht.c
1449
if (c != NULL)
sys/net80211/ieee80211_ht.c
1450
chan = c;
sys/net80211/ieee80211_ht.c
1736
struct ieee80211_channel *c;
sys/net80211/ieee80211_ht.c
1757
c = NULL;
sys/net80211/ieee80211_ht.c
1761
c = ieee80211_find_channel(ic, ni->ni_chan->ic_freq, chanflags);
sys/net80211/ieee80211_ht.c
1762
if (c == NULL && (htflags & IEEE80211_CHAN_HT40)) {
sys/net80211/ieee80211_ht.c
1767
c = findhtchan(ic, ni->ni_chan, IEEE80211_CHAN_HT20);
sys/net80211/ieee80211_ht.c
1778
if (c == NULL)
sys/net80211/ieee80211_ht.c
1779
c = ni->ni_chan;
sys/net80211/ieee80211_ht.c
1784
if (! IEEE80211_IS_CHAN_HT(c)) {
sys/net80211/ieee80211_ht.c
1788
c->ic_freq, c->ic_flags);
sys/net80211/ieee80211_ht.c
1799
chanflags = (c->ic_flags
sys/net80211/ieee80211_ht.c
1812
__func__, c->ic_freq, chanflags);
sys/net80211/ieee80211_ht.c
1813
c = ieee80211_find_channel(ic, c->ic_freq, chanflags);
sys/net80211/ieee80211_ht.c
1817
if (c != NULL && c != ni->ni_chan) {
sys/net80211/ieee80211_ht.c
1821
IEEE80211_IS_CHAN_VHT(c) ? "VHT" : "HT",
sys/net80211/ieee80211_ht.c
1822
IEEE80211_IS_CHAN_VHT80(c) ? 80 :
sys/net80211/ieee80211_ht.c
1823
(IEEE80211_IS_CHAN_HT40(c) ? 40 : 20),
sys/net80211/ieee80211_ht.c
1824
c->ic_freq, c->ic_flags);
sys/net80211/ieee80211_ht.c
1825
ni->ni_chan = c;
sys/net80211/ieee80211_ht.c
3469
struct ieee80211_channel *c)
sys/net80211/ieee80211_ht.c
3490
if (IEEE80211_IS_CHAN_HT40(c))
sys/net80211/ieee80211_ht.c
3546
struct ieee80211_channel *c)
sys/net80211/ieee80211_ht.c
3550
return ieee80211_add_htcap_body_ch(frm + 2, vap, c);
sys/net80211/ieee80211_ioctl.c
1747
const struct ieee80211_channel *c = &ic->ic_channels[i];
sys/net80211/ieee80211_ioctl.c
1753
if (c->ic_ieee < maxchan && isset(list, c->ic_ieee)) {
sys/net80211/ieee80211_ioctl.c
1754
setbit(chanlist, c->ic_ieee);
sys/net80211/ieee80211_ioctl.c
1878
const struct ieee80211_channel *c;
sys/net80211/ieee80211_ioctl.c
1882
c = &ic->ic_channels[i];
sys/net80211/ieee80211_ioctl.c
1883
if (c->ic_freq == freq && IEEE80211_IS_CHAN_ANYG(c))
sys/net80211/ieee80211_ioctl.c
1888
c = &ic->ic_channels[i];
sys/net80211/ieee80211_ioctl.c
1889
if (c->ic_freq == freq && IEEE80211_IS_CHAN_ANYG(c))
sys/net80211/ieee80211_ioctl.c
1920
struct ieee80211_channel *c = &ic->ic_channels[i];
sys/net80211/ieee80211_ioctl.c
1922
if (c->ic_ieee != ieee)
sys/net80211/ieee80211_ioctl.c
1926
if (IEEE80211_IS_CHAN_TURBO(c))
sys/net80211/ieee80211_ioctl.c
1934
if (!IEEE80211_IS_CHAN_B(c) ||
sys/net80211/ieee80211_ioctl.c
1935
!find11gchannel(ic, i, c->ic_freq))
sys/net80211/ieee80211_ioctl.c
1936
return c;
sys/net80211/ieee80211_ioctl.c
1941
!IEEE80211_IS_CHAN_VHT(c))
sys/net80211/ieee80211_ioctl.c
1950
!IEEE80211_IS_CHAN_HT(c))
sys/net80211/ieee80211_ioctl.c
1955
IEEE80211_IS_CHAN_VHT(c))
sys/net80211/ieee80211_ioctl.c
1959
if ((c->ic_flags & modeflags) == modeflags)
sys/net80211/ieee80211_ioctl.c
1960
return c;
sys/net80211/ieee80211_ioctl.c
1972
check_mode_consistency(const struct ieee80211_channel *c, int mode)
sys/net80211/ieee80211_ioctl.c
1974
KASSERT(c != IEEE80211_CHAN_ANYC, ("oops, no channel"));
sys/net80211/ieee80211_ioctl.c
1978
return (IEEE80211_IS_CHAN_B(c));
sys/net80211/ieee80211_ioctl.c
1980
return (IEEE80211_IS_CHAN_ANYG(c) && !IEEE80211_IS_CHAN_HT(c));
sys/net80211/ieee80211_ioctl.c
1982
return (IEEE80211_IS_CHAN_A(c) && !IEEE80211_IS_CHAN_HT(c));
sys/net80211/ieee80211_ioctl.c
1984
return (IEEE80211_IS_CHAN_STURBO(c));
sys/net80211/ieee80211_ioctl.c
1986
return (IEEE80211_IS_CHAN_HTA(c));
sys/net80211/ieee80211_ioctl.c
1988
return (IEEE80211_IS_CHAN_HTG(c));
sys/net80211/ieee80211_ioctl.c
2000
setcurchan(struct ieee80211vap *vap, struct ieee80211_channel *c)
sys/net80211/ieee80211_ioctl.c
2005
if (c != IEEE80211_CHAN_ANYC) {
sys/net80211/ieee80211_ioctl.c
2006
if (IEEE80211_IS_CHAN_RADAR(c))
sys/net80211/ieee80211_ioctl.c
2009
if (IEEE80211_IS_CHAN_NOHOSTAP(c))
sys/net80211/ieee80211_ioctl.c
2011
if (!check_mode_consistency(c, vap->iv_des_mode))
sys/net80211/ieee80211_ioctl.c
2014
if (IEEE80211_IS_CHAN_NOADHOC(c))
sys/net80211/ieee80211_ioctl.c
2018
vap->iv_bss->ni_chan == c)
sys/net80211/ieee80211_ioctl.c
2021
vap->iv_des_chan = c;
sys/net80211/ieee80211_ioctl.c
2067
struct ieee80211_channel *c;
sys/net80211/ieee80211_ioctl.c
2072
c = IEEE80211_CHAN_ANYC;
sys/net80211/ieee80211_ioctl.c
2076
c = findchannel(ic, ireq->i_val, vap->iv_des_mode);
sys/net80211/ieee80211_ioctl.c
2077
if (c == NULL) {
sys/net80211/ieee80211_ioctl.c
2078
c = findchannel(ic, ireq->i_val,
sys/net80211/ieee80211_ioctl.c
2080
if (c == NULL)
sys/net80211/ieee80211_ioctl.c
2101
if (IEEE80211_IS_CHAN_ANYG(c)) {
sys/net80211/ieee80211_ioctl.c
2106
c = c2;
sys/net80211/ieee80211_ioctl.c
2110
if (IEEE80211_IS_CHAN_A(c)) {
sys/net80211/ieee80211_ioctl.c
2114
c = c2;
sys/net80211/ieee80211_ioctl.c
2118
if (IEEE80211_IS_CHAN_A(c)) {
sys/net80211/ieee80211_ioctl.c
2122
c = c2;
sys/net80211/ieee80211_ioctl.c
2126
if (IEEE80211_IS_CHAN_ANYG(c)) {
sys/net80211/ieee80211_ioctl.c
2130
c = c2;
sys/net80211/ieee80211_ioctl.c
2137
if (IEEE80211_IS_CHAN_A(c)) {
sys/net80211/ieee80211_ioctl.c
2141
c = c2;
sys/net80211/ieee80211_ioctl.c
2148
return setcurchan(vap, c);
sys/net80211/ieee80211_ioctl.c
2161
struct ieee80211_channel chan, *c;
sys/net80211/ieee80211_ioctl.c
2172
c = IEEE80211_CHAN_ANYC;
sys/net80211/ieee80211_ioctl.c
2174
c = ieee80211_find_channel(ic, chan.ic_freq, chan.ic_flags);
sys/net80211/ieee80211_ioctl.c
2175
if (c == NULL)
sys/net80211/ieee80211_ioctl.c
2178
return setcurchan(vap, c);
sys/net80211/ieee80211_ioctl.c
2540
struct ieee80211_channel *c;
sys/net80211/ieee80211_ioctl.c
2552
c = ieee80211_find_channel(ic,
sys/net80211/ieee80211_ioctl.c
2554
if (c == NULL)
sys/net80211/ieee80211_ioctl.c
2558
ieee80211_csa_startswitch(ic, c, csr.csa_mode, csr.csa_count);
sys/net80211/ieee80211_ioctl.c
600
struct ieee80211_channel *c;
sys/net80211/ieee80211_ioctl.c
610
c = vap->iv_bss->ni_chan;
sys/net80211/ieee80211_ioctl.c
612
c = ic->ic_curchan;
sys/net80211/ieee80211_ioctl.c
613
return copyout(c, ireq->i_data, sizeof(*c));
sys/net80211/ieee80211_mesh.c
1848
struct ieee80211_channel *c;
sys/net80211/ieee80211_mesh.c
1854
c = ieee80211_lookup_channel_rxstatus(vap, rxs);
sys/net80211/ieee80211_mesh.c
1855
if (c != NULL)
sys/net80211/ieee80211_mesh.c
1856
rxchan = c;
sys/net80211/ieee80211_node.c
1614
struct ieee80211_channel *c = ni->ni_chan;
sys/net80211/ieee80211_node.c
1618
c = ieee80211_find_channel(ic,
sys/net80211/ieee80211_node.c
1619
c->ic_freq, c->ic_flags &~ IEEE80211_CHAN_HT);
sys/net80211/ieee80211_node.c
1620
KASSERT(c != NULL, ("no legacy channel, %u/%x",
sys/net80211/ieee80211_node.c
1622
ni->ni_chan = c;
sys/net80211/ieee80211_node.c
785
struct ieee80211_channel *c;
sys/net80211/ieee80211_node.c
787
c = ieee80211_ht_adjust_channel(ic, ic->ic_curchan, gethtadjustflags(ic));
sys/net80211/ieee80211_node.c
788
c = ieee80211_vht_adjust_channel(ic, c, getvhtadjustflags(ic));
sys/net80211/ieee80211_node.c
790
if (c != ic->ic_curchan) {
sys/net80211/ieee80211_node.c
791
ic->ic_curchan = c;
sys/net80211/ieee80211_node.c
806
ieee80211_setupcurchan(struct ieee80211com *ic, struct ieee80211_channel *c)
sys/net80211/ieee80211_node.c
817
if (flags > ieee80211_htchanflags(c))
sys/net80211/ieee80211_node.c
818
c = ieee80211_ht_adjust_channel(ic, c, flags);
sys/net80211/ieee80211_node.c
828
if (flags > ieee80211_vhtchanflags(c))
sys/net80211/ieee80211_node.c
829
c = ieee80211_vht_adjust_channel(ic, c, flags);
sys/net80211/ieee80211_node.c
832
ic->ic_bsschan = ic->ic_curchan = c;
sys/net80211/ieee80211_node.c
842
ieee80211_setcurchan(struct ieee80211com *ic, struct ieee80211_channel *c)
sys/net80211/ieee80211_node.c
844
ieee80211_setupcurchan(ic, c);
sys/net80211/ieee80211_output.c
2281
const struct ieee80211_channel *c = vap->iv_bss->ni_chan;
sys/net80211/ieee80211_output.c
2287
frm[2] = c->ic_maxregpower > limit ? c->ic_maxregpower - limit : 0;
sys/net80211/ieee80211_output.c
2295
ieee80211_add_powercapability(uint8_t *frm, const struct ieee80211_channel *c)
sys/net80211/ieee80211_output.c
2299
frm[2] = c->ic_minpower;
sys/net80211/ieee80211_output.c
2300
frm[3] = c->ic_maxpower;
sys/net80211/ieee80211_output.c
2514
struct ieee80211_channel *c;
sys/net80211/ieee80211_output.c
2520
c = ieee80211_ht_adjust_channel(ic, ic->ic_curchan,
sys/net80211/ieee80211_output.c
2522
frm = ieee80211_add_htcap_ch(frm, vap, c);
sys/net80211/ieee80211_output.c
2531
struct ieee80211_channel *c;
sys/net80211/ieee80211_output.c
2533
c = ieee80211_ht_adjust_channel(ic, ic->ic_curchan,
sys/net80211/ieee80211_output.c
2535
c = ieee80211_vht_adjust_channel(ic, c, vap->iv_vht_flags);
sys/net80211/ieee80211_output.c
2536
frm = ieee80211_add_vhtcap_ch(frm, vap, c);
sys/net80211/ieee80211_phy.c
373
ieee80211_get_ratetable(struct ieee80211_channel *c)
sys/net80211/ieee80211_phy.c
378
if (IEEE80211_IS_CHAN_HALF(c))
sys/net80211/ieee80211_phy.c
380
else if (IEEE80211_IS_CHAN_QUARTER(c))
sys/net80211/ieee80211_phy.c
382
else if (IEEE80211_IS_CHAN_HTA(c))
sys/net80211/ieee80211_phy.c
384
else if (IEEE80211_IS_CHAN_HTG(c))
sys/net80211/ieee80211_phy.c
386
else if (IEEE80211_IS_CHAN_108G(c))
sys/net80211/ieee80211_phy.c
388
else if (IEEE80211_IS_CHAN_ST(c))
sys/net80211/ieee80211_phy.c
390
else if (IEEE80211_IS_CHAN_TURBO(c))
sys/net80211/ieee80211_phy.c
392
else if (IEEE80211_IS_CHAN_A(c))
sys/net80211/ieee80211_phy.c
394
else if (IEEE80211_IS_CHAN_ANYG(c))
sys/net80211/ieee80211_phy.c
396
else if (IEEE80211_IS_CHAN_B(c))
sys/net80211/ieee80211_phy.c
401
__func__, c->ic_freq, c->ic_flags);
sys/net80211/ieee80211_proto.c
2302
struct ieee80211_channel *c, int mode, int count)
sys/net80211/ieee80211_proto.c
2308
ic->ic_csa_newchan = c;
sys/net80211/ieee80211_proto.c
2321
ieee80211_notify_csa(ic, c, mode, count);
sys/net80211/ieee80211_radiotap.c
114
set_channel(void *p, const struct ieee80211_channel *c)
sys/net80211/ieee80211_radiotap.c
121
rc->freq = htole16(c->ic_freq);
sys/net80211/ieee80211_radiotap.c
122
rc->flags = htole16(c->ic_flags);
sys/net80211/ieee80211_radiotap.c
126
set_xchannel(void *p, const struct ieee80211_channel *c)
sys/net80211/ieee80211_radiotap.c
135
rc->flags = htole32(c->ic_flags);
sys/net80211/ieee80211_radiotap.c
136
rc->freq = htole16(c->ic_freq);
sys/net80211/ieee80211_radiotap.c
137
rc->ieee = c->ic_ieee;
sys/net80211/ieee80211_radiotap.c
138
rc->maxpow = c->ic_maxregpower;
sys/net80211/ieee80211_regdomain.c
304
const struct ieee80211_channel *c = &ic->ic_channels[i];
sys/net80211/ieee80211_regdomain.c
306
if (isset(chans, c->ic_ieee)) /* suppress dup's */
sys/net80211/ieee80211_regdomain.c
308
if (c->ic_flags & skip) /* skip band, etc. */
sys/net80211/ieee80211_regdomain.c
310
setbit(chans, c->ic_ieee);
sys/net80211/ieee80211_regdomain.c
311
if (c->ic_ieee != nextchan ||
sys/net80211/ieee80211_regdomain.c
312
c->ic_maxregpower != frm[-1]) { /* new run */
sys/net80211/ieee80211_regdomain.c
320
frm[0] = c->ic_ieee; /* starting channel # */
sys/net80211/ieee80211_regdomain.c
322
frm[2] = c->ic_maxregpower; /* tx power cap */
sys/net80211/ieee80211_regdomain.c
324
nextchan = c->ic_ieee + 1; /* overflow? */
sys/net80211/ieee80211_regdomain.c
359
struct ieee80211_channel *c;
sys/net80211/ieee80211_regdomain.c
387
c = &reg->chaninfo.ic_chans[i];
sys/net80211/ieee80211_regdomain.c
388
if (c->ic_freq == 0 || c->ic_flags == 0) {
sys/net80211/ieee80211_regdomain.c
393
if (c->ic_maxregpower == 0) {
sys/net80211/ieee80211_regdomain.c
397
c->ic_freq, c->ic_flags);
sys/net80211/ieee80211_regdomain.c
400
if (c->ic_ieee == 0)
sys/net80211/ieee80211_regdomain.c
401
c->ic_ieee = ieee80211_mhz2ieee(c->ic_freq,c->ic_flags);
sys/net80211/ieee80211_regdomain.c
402
if (IEEE80211_IS_CHAN_HT40(c) && c->ic_extieee == 0)
sys/net80211/ieee80211_regdomain.c
403
c->ic_extieee = ieee80211_mhz2ieee(c->ic_freq +
sys/net80211/ieee80211_regdomain.c
404
(IEEE80211_IS_CHAN_HT40U(c) ? 20 : -20),
sys/net80211/ieee80211_regdomain.c
405
c->ic_flags);
sys/net80211/ieee80211_regdomain.c
406
if (c->ic_maxpower == 0)
sys/net80211/ieee80211_regdomain.c
407
c->ic_maxpower = 2*c->ic_maxregpower;
sys/net80211/ieee80211_regdomain.c
463
c = ieee80211_find_channel(ic, desfreq, desflags);
sys/net80211/ieee80211_regdomain.c
465
vap->iv_des_chan = (c != NULL) ? c : IEEE80211_CHAN_ANYC;
sys/net80211/ieee80211_regdomain.c
50
int *n, struct ieee80211_channel *c)
sys/net80211/ieee80211_regdomain.c
55
memcpy(c, ic->ic_channels, maxchan*sizeof(struct ieee80211_channel));
sys/net80211/ieee80211_scan.c
288
const struct ieee80211_channel *c = ss->ss_chans[i];
sys/net80211/ieee80211_scan.c
290
net80211_printf("%s%u%c", sep, ieee80211_chan2ieee(ic, c),
sys/net80211/ieee80211_scan.c
291
ieee80211_channel_type_char(c));
sys/net80211/ieee80211_scan_sta.c
1581
struct ieee80211_channel *c, *bestchan;
sys/net80211/ieee80211_scan_sta.c
1589
c = ss->ss_chans[i];
sys/net80211/ieee80211_scan_sta.c
1591
if (IEEE80211_IS_CHAN_RADAR(c))
sys/net80211/ieee80211_scan_sta.c
1594
if (IEEE80211_IS_CHAN_NOADHOC(c))
sys/net80211/ieee80211_scan_sta.c
1597
if (flags != 0 && (c->ic_flags & flags) != flags)
sys/net80211/ieee80211_scan_sta.c
1601
if (se->base.se_chan != c)
sys/net80211/ieee80211_scan_sta.c
1607
bestchan = c;
sys/net80211/ieee80211_scan_sta.c
250
struct ieee80211_channel *c;
sys/net80211/ieee80211_scan_sta.c
319
c = ieee80211_find_channel_byieee(ic, sp->chan,
sys/net80211/ieee80211_scan_sta.c
321
if (c != NULL) {
sys/net80211/ieee80211_scan_sta.c
322
ise->se_chan = c;
sys/net80211/ieee80211_scan_sta.c
336
c = ieee80211_find_channel(ic, ise->se_chan->ic_freq,
sys/net80211/ieee80211_scan_sta.c
338
KASSERT(c != NULL,
sys/net80211/ieee80211_scan_sta.c
340
ise->se_chan = c;
sys/net80211/ieee80211_scan_sta.c
349
c = ieee80211_find_channel(ic, ise->se_chan->ic_freq,
sys/net80211/ieee80211_scan_sta.c
351
KASSERT(c != NULL,
sys/net80211/ieee80211_scan_sta.c
353
ise->se_chan = c;
sys/net80211/ieee80211_scan_sta.c
427
isexcluded(struct ieee80211vap *vap, const struct ieee80211_channel *c)
sys/net80211/ieee80211_scan_sta.c
429
return (isclr(vap->iv_ic->ic_chan_active, c->ic_ieee) ||
sys/net80211/ieee80211_scan_sta.c
431
c->ic_freq != vap->iv_des_chan->ic_freq));
sys/net80211/ieee80211_scan_sta.c
437
struct ieee80211_channel *c;
sys/net80211/ieee80211_scan_sta.c
446
c = &ic->ic_channels[j];
sys/net80211/ieee80211_scan_sta.c
447
if (c->ic_freq == freq && IEEE80211_IS_CHAN_G(c))
sys/net80211/ieee80211_scan_sta.c
448
return c;
sys/net80211/ieee80211_scan_sta.c
451
c = &ic->ic_channels[j];
sys/net80211/ieee80211_scan_sta.c
452
if (c->ic_freq == freq && IEEE80211_IS_CHAN_G(c))
sys/net80211/ieee80211_scan_sta.c
453
return c;
sys/net80211/ieee80211_scan_sta.c
483
struct ieee80211_channel *c, *cg;
sys/net80211/ieee80211_scan_sta.c
493
c = ieee80211_find_channel(ic, freq[i], modeflags);
sys/net80211/ieee80211_scan_sta.c
494
if (c == NULL || isexcluded(vap, c))
sys/net80211/ieee80211_scan_sta.c
497
KASSERT(IEEE80211_IS_CHAN_B(c),
sys/net80211/ieee80211_scan_sta.c
499
__func__, c->ic_freq, c->ic_flags));
sys/net80211/ieee80211_scan_sta.c
505
if ((cg = find11gchannel(ic, i, c->ic_freq)) != NULL)
sys/net80211/ieee80211_scan_sta.c
506
c = cg;
sys/net80211/ieee80211_scan_sta.c
508
ss->ss_chans[ss->ss_last++] = c;
sys/net80211/ieee80211_scan_sta.c
519
checktable(const struct scanlist *scan, const struct ieee80211_channel *c)
sys/net80211/ieee80211_scan_sta.c
525
if (scan->list[i] == c->ic_freq)
sys/net80211/ieee80211_scan_sta.c
533
const struct ieee80211_channel *c)
sys/net80211/ieee80211_scan_sta.c
538
if (ss->ss_chans[i] == c)
sys/net80211/ieee80211_scan_sta.c
548
struct ieee80211_channel *c;
sys/net80211/ieee80211_scan_sta.c
555
c = &ic->ic_channels[i];
sys/net80211/ieee80211_scan_sta.c
562
if (IEEE80211_IS_CHAN_DTURBO(c) || IEEE80211_IS_CHAN_HT(c) ||
sys/net80211/ieee80211_scan_sta.c
563
IEEE80211_IS_CHAN_VHT(c))
sys/net80211/ieee80211_scan_sta.c
571
vap->iv_des_mode != ieee80211_chan2mode(c))
sys/net80211/ieee80211_scan_sta.c
577
if (isexcluded(vap, c))
sys/net80211/ieee80211_scan_sta.c
586
if (checktable(table, c))
sys/net80211/ieee80211_scan_sta.c
590
ss->ss_chans[ss->ss_last++] = c;
sys/net80211/ieee80211_scan_sta.c
600
c = vap->iv_des_chan;
sys/net80211/ieee80211_scan_sta.c
601
if (c != IEEE80211_CHAN_ANYC &&
sys/net80211/ieee80211_scan_sta.c
602
!onscanlist(ss, c) &&
sys/net80211/ieee80211_scan_sta.c
604
vap->iv_des_mode == ieee80211_chan2mode(c)) &&
sys/net80211/ieee80211_scan_sta.c
606
ss->ss_chans[ss->ss_last++] = c;
sys/net80211/ieee80211_scan_sta.c
793
struct ieee80211_channel *c;
sys/net80211/ieee80211_scan_sta.c
797
c = ieee80211_find_channel(vap->iv_ic, chan->ic_freq,
sys/net80211/ieee80211_scan_sta.c
800
if (c != NULL)
sys/net80211/ieee80211_scan_sta.c
801
chan = c;
sys/net80211/ieee80211_sta.c
1252
struct ieee80211_channel *c =
sys/net80211/ieee80211_sta.c
1255
if (c == NULL) {
sys/net80211/ieee80211_sta.c
1256
c = ieee80211_find_channel_byieee(ic,
sys/net80211/ieee80211_sta.c
1259
if (c == NULL) {
sys/net80211/ieee80211_sta.c
1287
ieee80211_csa_startswitch(ic, c, csa->csa_mode, csa->csa_count);
sys/net80211/ieee80211_sta.c
1415
struct ieee80211_channel *c;
sys/net80211/ieee80211_sta.c
1430
c = ieee80211_lookup_channel_rxstatus(vap, rxs);
sys/net80211/ieee80211_sta.c
1431
if (c != NULL)
sys/net80211/ieee80211_sta.c
1432
rxchan = c;
sys/net80211/ieee80211_var.h
840
char ieee80211_channel_type_char(const struct ieee80211_channel *c);
sys/net80211/ieee80211_var.h
962
ieee80211_htchanflags(const struct ieee80211_channel *c)
sys/net80211/ieee80211_var.h
964
return IEEE80211_IS_CHAN_HT40(c) ?
sys/net80211/ieee80211_var.h
966
IEEE80211_IS_CHAN_HT(c) ? IEEE80211_FHT_HT : 0;
sys/net80211/ieee80211_var.h
974
ieee80211_vhtchanflags(const struct ieee80211_channel *c)
sys/net80211/ieee80211_var.h
977
if (IEEE80211_IS_CHAN_VHT160(c))
sys/net80211/ieee80211_var.h
979
if (IEEE80211_IS_CHAN_VHT80P80(c))
sys/net80211/ieee80211_var.h
981
if (IEEE80211_IS_CHAN_VHT80(c))
sys/net80211/ieee80211_var.h
983
if (IEEE80211_IS_CHAN_VHT40(c))
sys/net80211/ieee80211_var.h
985
if (IEEE80211_IS_CHAN_VHT(c))
sys/net80211/ieee80211_vht.c
756
struct ieee80211_channel *c)
sys/net80211/ieee80211_vht.c
779
const struct ieee80211_channel *c)
sys/net80211/ieee80211_vht.c
787
if (IEEE80211_IS_CHAN_VHT80P80(c))
sys/net80211/ieee80211_vht.c
789
if (IEEE80211_IS_CHAN_VHT160(c))
sys/net80211/ieee80211_vht.c
791
if (IEEE80211_IS_CHAN_VHT80(c))
sys/net80211/ieee80211_vht.c
793
if (IEEE80211_IS_CHAN_VHT40(c))
sys/net80211/ieee80211_vht.c
795
if (IEEE80211_IS_CHAN_VHT20(c))
sys/net80211/ieee80211_vht.c
801
__func__, (int) c->ic_freq, c->ic_flags);
sys/net80211/ieee80211_vht.c
848
findvhtchan(struct ieee80211com *ic, struct ieee80211_channel *c, int vhtflags)
sys/net80211/ieee80211_vht.c
851
return (ieee80211_find_channel(ic, c->ic_freq,
sys/net80211/ieee80211_vht.c
852
(c->ic_flags & ~IEEE80211_CHAN_VHT) | vhtflags));
sys/net80211/ieee80211_vht.c
862
struct ieee80211_channel *c;
sys/net80211/ieee80211_vht.c
871
c = ieee80211_find_channel(ic, chan->ic_freq,
sys/net80211/ieee80211_vht.c
873
if (c == NULL)
sys/net80211/ieee80211_vht.c
874
c = chan;
sys/net80211/ieee80211_vht.c
877
c->ic_ieee, c->ic_flags);
sys/net80211/ieee80211_vht.c
879
return (c);
sys/net80211/ieee80211_vht.c
888
c = NULL;
sys/net80211/ieee80211_vht.c
889
if ((c == NULL) && (flags & IEEE80211_FVHT_USEVHT160))
sys/net80211/ieee80211_vht.c
890
c = findvhtchan(ic, chan, IEEE80211_CHAN_VHT160);
sys/net80211/ieee80211_vht.c
892
if ((c == NULL) && (flags & IEEE80211_FVHT_USEVHT80P80))
sys/net80211/ieee80211_vht.c
893
c = findvhtchan(ic, chan, IEEE80211_CHAN_VHT80P80);
sys/net80211/ieee80211_vht.c
895
if ((c == NULL) && (flags & IEEE80211_FVHT_USEVHT80))
sys/net80211/ieee80211_vht.c
896
c = findvhtchan(ic, chan, IEEE80211_CHAN_VHT80);
sys/net80211/ieee80211_vht.c
898
if ((c == NULL) && (flags & IEEE80211_FVHT_USEVHT40))
sys/net80211/ieee80211_vht.c
899
c = findvhtchan(ic, chan, IEEE80211_CHAN_VHT40U);
sys/net80211/ieee80211_vht.c
900
if ((c == NULL) && (flags & IEEE80211_FVHT_USEVHT40))
sys/net80211/ieee80211_vht.c
901
c = findvhtchan(ic, chan, IEEE80211_CHAN_VHT40D);
sys/net80211/ieee80211_vht.c
906
if (c == NULL)
sys/net80211/ieee80211_vht.c
907
c = findvhtchan(ic, chan, IEEE80211_CHAN_VHT20);
sys/net80211/ieee80211_vht.c
909
if (c != NULL)
sys/net80211/ieee80211_vht.c
910
chan = c;
sys/net80211/ieee80211_vht.c
914
c->ic_ieee, c->ic_flags);
sys/netgraph/bluetooth/hci/ng_hci_main.c
517
ng_hci_unit_con_p c = NULL;
sys/netgraph/bluetooth/hci/ng_hci_main.c
523
LIST_FOREACH(c, &unit->con_list, next)
sys/netgraph/bluetooth/hci/ng_hci_main.c
541
LIST_FOREACH(c, &unit->con_list, next) {
sys/netgraph/bluetooth/hci/ng_hci_main.c
542
e2->link_type = c->link_type;
sys/netgraph/bluetooth/hci/ng_hci_main.c
543
e2->encryption_mode= c->encryption_mode;
sys/netgraph/bluetooth/hci/ng_hci_main.c
544
e2->mode = c->mode;
sys/netgraph/bluetooth/hci/ng_hci_main.c
545
e2->role = c->role;
sys/netgraph/bluetooth/hci/ng_hci_main.c
547
e2->state = c->state;
sys/netgraph/bluetooth/hci/ng_hci_main.c
549
e2->pending = c->pending;
sys/netgraph/bluetooth/hci/ng_hci_main.c
550
e2->queue_len = NG_BT_ITEMQ_LEN(&c->conq);
sys/netgraph/bluetooth/hci/ng_hci_main.c
552
e2->con_handle = c->con_handle;
sys/netgraph/bluetooth/hci/ng_hci_main.c
553
bcopy(&c->bdaddr, &e2->bdaddr,
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
100
c = mtod((_m), struct _con_req *); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
101
c->hdr.code = NG_L2CAP_CON_REQ; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
102
c->hdr.ident = (_ident); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
103
c->hdr.length = htole16(sizeof(c->param)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
105
c->param.psm = htole16((_psm)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
106
c->param.scid = htole16((_scid)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
115
} __attribute__ ((packed)) *c = NULL; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
121
(_m)->m_pkthdr.len = (_m)->m_len = sizeof(*c); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
123
c = mtod((_m), struct _con_rsp *); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
124
c->hdr.code = NG_L2CAP_CON_RSP; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
125
c->hdr.ident = (_ident); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
126
c->hdr.length = htole16(sizeof(c->param)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
128
c->param.dcid = htole16((_dcid)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
129
c->param.scid = htole16((_scid)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
130
c->param.result = htole16((_result)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
131
c->param.status = htole16((_status)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
140
} __attribute__ ((packed)) *c = NULL; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
148
(_m)->m_pkthdr.len = (_m)->m_len = sizeof(*c); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
150
c = mtod((_m), struct _cfg_req *); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
151
c->hdr.code = NG_L2CAP_CFG_REQ; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
152
c->hdr.ident = (_ident); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
153
c->hdr.length = sizeof(c->param); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
155
c->param.dcid = htole16((_dcid)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
156
c->param.flags = htole16((_flags)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
161
c->hdr.length += l; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
165
c->hdr.length = htole16(c->hdr.length); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
174
} __attribute__ ((packed)) *c = NULL; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
182
(_m)->m_pkthdr.len = (_m)->m_len = sizeof(*c); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
184
c = mtod((_m), struct _cfg_rsp *); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
185
c->hdr.code = NG_L2CAP_CFG_RSP; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
186
c->hdr.ident = (_ident); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
187
c->hdr.length = sizeof(c->param); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
189
c->param.scid = htole16((_scid)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
190
c->param.flags = htole16((_flags)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
191
c->param.result = htole16((_result)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
196
c->hdr.length += l; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
200
c->hdr.length = htole16(c->hdr.length); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
208
} __attribute__ ((packed)) *c = NULL; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
212
(_m)->m_pkthdr.len = (_m)->m_len = sizeof(*c); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
214
c = mtod((_m), struct _cmd_urs *); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
215
c->hdr.code = NG_L2CAP_CMD_PARAM_UPDATE_RESPONSE; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
216
c->hdr.ident = (_ident); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
217
c->hdr.length = sizeof(c->result); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
219
c->result = htole16((_result)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
302
} __attribute__ ((packed)) *c = NULL; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
308
(_m)->m_pkthdr.len = (_m)->m_len = sizeof(*c); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
310
c = mtod((_m), struct _discon_req *); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
311
c->hdr.code = NG_L2CAP_DISCON_REQ; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
312
c->hdr.ident = (_ident); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
313
c->hdr.length = htole16(sizeof(c->param)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
315
c->param.dcid = htole16((_dcid)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
316
c->param.scid = htole16((_scid)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
325
} __attribute__ ((packed)) *c = NULL; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
331
(_m)->m_pkthdr.len = (_m)->m_len = sizeof(*c); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
333
c = mtod((_m), struct _discon_rsp *); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
334
c->hdr.code = NG_L2CAP_DISCON_RSP; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
335
c->hdr.ident = (_ident); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
336
c->hdr.length = htole16(sizeof(c->param)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
338
c->param.dcid = htole16((_dcid)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
339
c->param.scid = htole16((_scid)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
345
ng_l2cap_cmd_hdr_t *c = NULL; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
351
(_m)->m_pkthdr.len = (_m)->m_len = sizeof(*c); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
353
c = mtod((_m), ng_l2cap_cmd_hdr_t *); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
354
c->code = NG_L2CAP_ECHO_REQ; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
355
c->ident = (_ident); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
356
c->length = 0; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
359
m_copyback((_m), sizeof(*c), (_size), (_data)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
360
c->length += (_size); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
363
c->length = htole16(c->length); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
372
} __attribute__ ((packed)) *c = NULL; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
378
(_m)->m_pkthdr.len = (_m)->m_len = sizeof(*c); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
380
c = mtod((_m), struct _info_req *); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
381
c->hdr.code = NG_L2CAP_INFO_REQ; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
382
c->hdr.ident = (_ident); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
383
c->hdr.length = htole16(sizeof(c->param)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
385
c->param.type = htole16((_type)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
395
} __attribute__ ((packed)) *c = NULL; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
401
c = mtod((_m), struct _info_rsp *); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
402
c->hdr.code = NG_L2CAP_INFO_RSP; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
403
c->hdr.ident = (_ident); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
404
c->hdr.length = sizeof(c->param); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
406
c->param.type = htole16((_type)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
407
c->param.result = htole16((_result)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
412
c->data.mtu.mtu = htole16((_mtu)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
413
c->hdr.length += sizeof((c->data.mtu.mtu)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
418
(_m)->m_pkthdr.len = (_m)->m_len = sizeof(c->hdr) + \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
419
c->hdr.length; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
421
c->hdr.length = htole16(c->hdr.length); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
58
} __attribute__ ((packed)) *c = NULL; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
64
c = mtod((_m), struct _cmd_rej *); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
65
c->hdr.code = NG_L2CAP_CMD_REJ; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
66
c->hdr.ident = (_ident); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
67
c->hdr.length = sizeof(c->param); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
69
c->param.reason = htole16((_reason)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
72
c->data.mtu.mtu = htole16((_mtu)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
73
c->hdr.length += sizeof(c->data.mtu); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
75
c->data.cid.scid = htole16((_scid)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
76
c->data.cid.dcid = htole16((_dcid)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
77
c->hdr.length += sizeof(c->data.cid); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
80
(_m)->m_pkthdr.len = (_m)->m_len = sizeof(c->hdr) + \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
81
c->hdr.length; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
83
c->hdr.length = htole16(c->hdr.length); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
92
} __attribute__ ((packed)) *c = NULL; \
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.h
98
(_m)->m_pkthdr.len = (_m)->m_len = sizeof(*c); \
sys/netgraph/netgraph.h
1165
int ng_uncallout(struct callout *c, node_p node);
sys/netgraph/netgraph.h
1166
int ng_uncallout_drain(struct callout *c, node_p node);
sys/netgraph/netgraph.h
1167
int ng_callout(struct callout *c, node_p node, hook_p hook, int ticks,
sys/netgraph/netgraph.h
1169
#define ng_callout_init(c) callout_init(c, 1)
sys/netgraph/ng_base.c
2779
const struct ng_cmdlist *c;
sys/netgraph/ng_base.c
2804
for (c = here->nd_type->cmdlist; c != NULL && c->name != NULL;
sys/netgraph/ng_base.c
2805
c++) {
sys/netgraph/ng_base.c
2806
if (binary->header.typecookie == c->cookie &&
sys/netgraph/ng_base.c
2807
binary->header.cmd == c->cmd)
sys/netgraph/ng_base.c
2810
if (c == NULL || c->name == NULL) {
sys/netgraph/ng_base.c
2811
for (c = ng_generic_cmds; c->name != NULL; c++) {
sys/netgraph/ng_base.c
2812
if (binary->header.typecookie == c->cookie &&
sys/netgraph/ng_base.c
2813
binary->header.cmd == c->cmd)
sys/netgraph/ng_base.c
2816
if (c->name == NULL) {
sys/netgraph/ng_base.c
2825
"%s", c->name);
sys/netgraph/ng_base.c
2829
c->respType : c->mesgType;
sys/netgraph/ng_base.c
2855
const struct ng_cmdlist *c;
sys/netgraph/ng_base.c
2884
for (c = here->nd_type->cmdlist;
sys/netgraph/ng_base.c
2885
c != NULL && c->name != NULL; c++) {
sys/netgraph/ng_base.c
2886
if (strcmp(ascii->header.cmdstr, c->name) == 0)
sys/netgraph/ng_base.c
2889
if (c == NULL || c->name == NULL) {
sys/netgraph/ng_base.c
2890
for (c = ng_generic_cmds; c->name != NULL; c++) {
sys/netgraph/ng_base.c
2891
if (strcmp(ascii->header.cmdstr, c->name) == 0)
sys/netgraph/ng_base.c
2894
if (c->name == NULL) {
sys/netgraph/ng_base.c
2902
binary->header.cmd = c->cmd;
sys/netgraph/ng_base.c
2903
binary->header.typecookie = c->cookie;
sys/netgraph/ng_base.c
2907
c->respType : c->mesgType;
sys/netgraph/ng_base.c
3806
ng_callout(struct callout *c, node_p node, hook_p hook, int ticks,
sys/netgraph/ng_base.c
3824
oitem = c->c_arg;
sys/netgraph/ng_base.c
3825
if (callout_reset(c, ticks, &ng_callout_trampoline, item) == 1 &&
sys/netgraph/ng_base.c
3837
ng_uncallout_internal(struct callout *c, node_p node)
sys/netgraph/ng_base.c
3841
item = c->c_arg;
sys/netgraph/ng_base.c
3842
if ((c->c_func == &ng_callout_trampoline) &&
sys/netgraph/ng_base.c
3851
c->c_arg = NULL;
sys/netgraph/ng_base.c
3857
ng_uncallout(struct callout *c, node_p node)
sys/netgraph/ng_base.c
3861
rval = callout_stop(c);
sys/netgraph/ng_base.c
3870
ng_uncallout_internal(c, node);
sys/netgraph/ng_base.c
3877
ng_uncallout_drain(struct callout *c, node_p node)
sys/netgraph/ng_base.c
3881
rval = callout_drain(c);
sys/netgraph/ng_base.c
3883
ng_uncallout_internal(c, node);
sys/netgraph/ng_mppc.c
875
SHA1_CTX c;
sys/netgraph/ng_mppc.c
877
SHA1Init(&c);
sys/netgraph/ng_mppc.c
878
SHA1Update(&c, h, len);
sys/netgraph/ng_mppc.c
879
SHA1Update(&c, pad1, sizeof(pad1));
sys/netgraph/ng_mppc.c
880
SHA1Update(&c, h2, len);
sys/netgraph/ng_mppc.c
881
SHA1Update(&c, pad2, sizeof(pad2));
sys/netgraph/ng_mppc.c
882
SHA1Final(hash, &c);
sys/netgraph/ng_nat.c
765
char *c;
sys/netgraph/ng_nat.c
816
c = (char *)mtodo(m, ipofs);
sys/netgraph/ng_nat.c
834
rval = LibAliasIn(priv->lib, c, m->m_len - ipofs +
sys/netgraph/ng_nat.c
845
rval = LibAliasOut(priv->lib, c, m->m_len - ipofs +
sys/netgraph/ng_tty.c
453
ngt_rint(struct tty *tp, char c, int flags)
sys/netgraph/ng_tty.c
488
*(u_char *)mtodo(m, m->m_len++) = c;
sys/netgraph/ng_tty.c
492
if (sc->hotchar == -1 || (u_char)c == sc->hotchar ||
sys/netgraph/ng_vjc.c
303
struct ngm_vjc_config *const c =
sys/netgraph/ng_vjc.c
306
if (msg->header.arglen != sizeof(*c))
sys/netgraph/ng_vjc.c
309
&& (c->enableComp || c->enableDecomp))
sys/netgraph/ng_vjc.c
311
if (c->enableComp) {
sys/netgraph/ng_vjc.c
312
if (c->maxChannel > NG_VJC_MAX_CHANNELS - 1
sys/netgraph/ng_vjc.c
313
|| c->maxChannel < NG_VJC_MIN_CHANNELS - 1)
sys/netgraph/ng_vjc.c
316
c->maxChannel = NG_VJC_MAX_CHANNELS - 1;
sys/netgraph/ng_vjc.c
317
if (c->enableComp != 0 || c->enableDecomp != 0) {
sys/netgraph/ng_vjc.c
319
sl_compress_init(&priv->slc, c->maxChannel);
sys/netgraph/ng_vjc.c
321
priv->conf = *c;
sys/netinet/accf_http.c
278
char a, b, c;
sys/netinet/accf_http.c
297
a = b = c = '\0';
sys/netinet/accf_http.c
318
c = *src++;
sys/netinet/accf_http.c
325
if (c == '\n' && (b == '\n' || (b == '\r' && a == '\n'))) {
sys/netinet/in_cksum.c
192
in_pseudo(u_int32_t a, u_int32_t b, u_int32_t c)
sys/netinet/in_cksum.c
198
sum = (u_int64_t) a + b + c;
sys/netinet/libalias/alias.c
162
uint8_t *c = p;
sys/netinet/libalias/alias.c
165
uint16_t s1 = ((uint16_t)c[1] << 8) + (uint16_t)c[0];
sys/netinet/libalias/alias.c
166
uint16_t s2 = ((uint16_t)c[3] << 8) + (uint16_t)c[2];
sys/netinet/libalias/alias.c
168
uint16_t s1 = ((uint16_t)c[0] << 8) + (uint16_t)c[1];
sys/netinet/libalias/alias.c
169
uint16_t s2 = ((uint16_t)c[2] << 8) + (uint16_t)c[3];
sys/netinet/libalias/alias_nbt.c
253
u_char c;
sys/netinet/libalias/alias_nbt.c
287
c = (u_char) (((((*s & 0x0f) << 4) | (*(s + 1) & 0x0f)) - 0x11));
sys/netinet/libalias/alias_nbt.c
288
if (isprint(c))
sys/netinet/libalias/alias_nbt.c
289
printf("%c", c);
sys/netinet/libalias/alias_nbt.c
291
printf("<0x%02x>", c);
sys/netinet/sctp_os_bsd.h
171
#define SCTP_LTRACE_CHK(a, b, c, d) if(SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_LTRACE_CHUNK_ENABLE) SCTP_CTR6(KTR_SUBSYS, "SCTP:%d[%d]:%x-%x-%x-%x", SCTP_LOG_CHUNK_PROC, 0, a, b, c, d)
sys/netinet/sctp_os_bsd.h
173
#define SCTP_LTRACE_CHK(a, b, c, d)
sys/netinet/sctputil.c
486
sctp_misc_ints(uint8_t from, uint32_t a, uint32_t b, uint32_t c, uint32_t d)
sys/netinet/sctputil.c
492
a, b, c, d);
sys/netinet/sctputil.c
7104
sctp_log_trace(uint32_t subsys, const char *str SCTP_UNUSED, uint32_t a, uint32_t b, uint32_t c, uint32_t d, uint32_t e, uint32_t f)
sys/netinet/sctputil.c
7123
SCTP_BASE_SYSCTL(sctp_log).entry[saveindex].params[2] = c;
sys/netinet/sctputil.h
274
sctp_misc_ints(uint8_t from, uint32_t a, uint32_t b, uint32_t c, uint32_t d);
sys/netinet/sctputil.h
57
sctp_log_trace(uint32_t fr, const char *str SCTP_UNUSED, uint32_t a, uint32_t b, uint32_t c, uint32_t d, uint32_t e, uint32_t f);
sys/netinet/tcp_fastopen.c
240
struct callout c;
sys/netinet/tcp_fastopen.c
389
callout_init_rm(&V_tcp_fastopen_autokey_ctx.c,
sys/netinet/tcp_fastopen.c
461
callout_drain(&V_tcp_fastopen_autokey_ctx.c);
sys/netinet/tcp_fastopen.c
527
callout_reset(&ctx->c, V_tcp_fastopen_autokey * hz,
sys/netinet/tcp_fastopen.c
674
callout_stop(&V_tcp_fastopen_autokey_ctx.c);
sys/netinet/tcp_fastopen.c
676
callout_reset(&V_tcp_fastopen_autokey_ctx.c,
sys/netinet/tcp_fastopen.c
729
callout_stop(&V_tcp_fastopen_autokey_ctx.c);
sys/netinet/tcp_fastopen.c
741
callout_reset(&V_tcp_fastopen_autokey_ctx.c,
sys/netinet/tcp_hpts_internal.h
90
void (*callout_init)(struct callout *c, int mpsafe);
sys/netinet/tcp_hpts_internal.h
91
int (*callout_reset_sbt_on)(struct callout *c, sbintime_t sbt,
sys/netinet/tcp_hpts_internal.h
94
int (*_callout_stop_safe)(struct callout *c, int flags);
sys/netinet/tcp_hpts_test.c
266
test_callout_init(struct callout *c, int mpsafe)
sys/netinet/tcp_hpts_test.c
269
memset(c, 0, sizeof(*c));
sys/netinet/tcp_hpts_test.c
273
test_callout_reset_sbt_on(struct callout *c, sbintime_t sbt, sbintime_t precision,
sys/netinet/tcp_hpts_test.c
282
test_callout_stop_safe(struct callout *c, int flags)
sys/netinet/tcp_lro.c
546
uint32_t c;
sys/netinet/tcp_lro.c
549
c = tcp_csum;
sys/netinet/tcp_lro.c
572
c += cs;
sys/netinet/tcp_lro.c
576
c += cs;
sys/netinet/tcp_lro.c
579
while (c > 0xffff)
sys/netinet/tcp_lro.c
580
c = (c >> 16) + (c & 0xffff);
sys/netinet/tcp_lro.c
582
return (c);
sys/netinet/tcp_stacks/sack_filter.c
701
double a, b, c;
sys/netinet/tcp_stacks/sack_filter.c
917
c = a/b;
sys/netinet/tcp_stacks/sack_filter.c
919
c = 0.0;
sys/netinet/tcp_stacks/sack_filter.c
925
saved, tot_sack_blks, c, cnt_skipped_oldsack, cnt_used_oldsack, highest_used, over_written, empty_avail);
sys/netinet6/in6_cksum.c
174
s_util.c[0] = *residp;
sys/netinet6/in6_cksum.c
175
s_util.c[1] = *(uint8_t *)w;
sys/netinet6/in6_cksum.c
188
s_util.c[0] = *(uint8_t *)w;
sys/netinet6/in6_cksum.c
220
s_util.c[1] = *(uint8_t *)w;
sys/netinet6/in6_cksum.c
223
*residp = s_util.c[0];
sys/netinet6/in6_cksum.c
324
s_util.c[0] = arg.resid;
sys/netinet6/in6_cksum.c
325
s_util.c[1] = 0;
sys/netinet6/in6_cksum.c
86
uint8_t c[2];
sys/netinet6/raw_ip6.c
158
struct rip6_inp_match_ctx *c = v;
sys/netinet6/raw_ip6.c
159
struct ip6_hdr *ip6 = c->ip6;
sys/netinet6/raw_ip6.c
160
int proto = c->proto;
sys/netipsec/ipsec_offload.h
181
#define ipsec_accel_sa_lifetime_op(a, b, c, d, e)
sys/netipsec/ipsec_offload.h
185
#define ipsec_accel_fill_xh(a, b, c) (false)
sys/netipsec/ipsec_offload.h
200
#define ipsec_accel_input(a, b, c) (ENXIO)
sys/netipsec/ipsec_offload.h
201
#define ipsec_accel_output(a, b, c, d, e, f, g, h) ({ \
sys/netpfil/ipfilter/netinet/ip_compat.h
104
# define COPYIN(a,b,c) copyin((caddr_t)(a), (caddr_t)(b), (c))
sys/netpfil/ipfilter/netinet/ip_compat.h
105
# define COPYOUT(a,b,c) copyout((caddr_t)(a), (caddr_t)(b), (c))
sys/netpfil/ipfilter/netinet/ip_compat.h
34
# define bcopy(a,b,c) memmove(b,a,c)
sys/netpfil/ipfilter/netinet/ip_compat.h
341
# define KMALLOCS(a,b,c) (a) = (b)malloc(c)
sys/netpfil/ipfilter/netinet/ip_compat.h
347
# define COPYIN(a,b,c) bcopywrap((a), (b), (c))
sys/netpfil/ipfilter/netinet/ip_compat.h
348
# define COPYOUT(a,b,c) bcopywrap((a), (b), (c))
sys/netpfil/ipfilter/netinet/ip_compat.h
354
# define UIOMOVE(a,b,c,d) ipfuiomove((caddr_t)a,b,c,d)
sys/netpfil/ipfilter/netinet/ip_compat.h
479
# define KMALLOCS(a, b, c) (a) = (b)malloc((c), _M_IPF, M_NOWAIT)
sys/netpfil/ipfilter/netinet/ip_compat.h
487
# define UIOMOVE(a,b,c,d) uiomove((caddr_t)a,b,d)
sys/netpfil/ipfilter/netinet/ip_compat.h
554
# define COPYIN(a,b,c) (bcopy((caddr_t)(a), (caddr_t)(b), (c)), 0)
sys/netpfil/ipfilter/netinet/ip_compat.h
555
# define COPYOUT(a,b,c) (bcopy((caddr_t)(a), (caddr_t)(b), (c)), 0)
sys/netpfil/ipfilter/netinet/ip_compat.h
561
# define KMALLOCS(a,b,c) (a) = (b)new_kmem_alloc((c), KMEM_NOSLEEP)
sys/netpfil/ipfilter/netinet/ip_compat.h
589
# define BCOPYIN(a,b,c) (bcopy((caddr_t)(a), (caddr_t)(b), (c)), 0)
sys/netpfil/ipfilter/netinet/ip_compat.h
590
# define BCOPYOUT(a,b,c) (bcopy((caddr_t)(a), (caddr_t)(b), (c)), 0)
sys/netpfil/ipfilter/netinet/ip_fil.h
202
#define IP6_MERGE(a,b,c) \
sys/netpfil/ipfilter/netinet/ip_fil.h
206
_s2 = (i6addr_t *)(c); \
sys/netpfil/ipfilter/netinet/ip_fil.h
212
#define IP6_MASK(a,b,c) \
sys/netpfil/ipfilter/netinet/ip_fil.h
216
_s2 = (i6addr_t *)(c); \
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1030
register char *s, c, pc;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1047
c = *s++;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1049
if (ISALPHA(c)) {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1050
cmd[0] = TOUPPER(c);
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1051
c = *s++;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1053
if (ISALPHA(c)) {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1054
cmd[1] = TOUPPER(c);
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1055
c = *s++;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1057
if (ISALPHA(c)) {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1058
cmd[2] = TOUPPER(c);
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1059
c = *s++;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1061
if (ISALPHA(c)) {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1062
cmd[3] = TOUPPER(c);
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1063
c = *s++;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1065
if ((c != ' ') && (c != '\r'))
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1067
} else if ((c != ' ') && (c != '\r'))
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1075
DT4(client_junk, int, len, int, i, int, c, char *, buf);
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1079
ftps->ftps_junk, (int)len, (int)i, c,
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1085
pc = c;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1086
c = *s++;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1087
if ((pc == '\r') && (c == '\n')) {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1111
register char *s, c, pc;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1128
c = *s++;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1130
if (c == ' ') {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1135
if (ISDIGIT(c)) {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1136
cmd = (c - '0') * 100;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1137
c = *s++;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1139
if (ISDIGIT(c)) {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1140
cmd += (c - '0') * 10;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1141
c = *s++;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1143
if (ISDIGIT(c)) {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1144
cmd += (c - '0');
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1145
c = *s++;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1147
if ((c != '-') && (c != ' '))
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1149
if (c == '-')
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1157
DT4(server_junk, int len, buf, int, i, int, c, char *, buf);
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1162
c, (int)len, (int)len, buf);
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1169
pc = c;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1170
c = *s++;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1171
if ((pc == '\r') && (c == '\n')) {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1593
register char *s = *ptr, c;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1596
while (((c = *s++) != '\0') && ISDIGIT(c)) {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1598
i += c - '0';
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1600
if (c != ',') {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1604
while (((c = *s++) != '\0') && ISDIGIT(c)) {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1606
j += c - '0';
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1658
char *s, c, delim;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1675
while (((c = *s++) != '\0') && ISDIGIT(c)) {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1677
i += c - '0';
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1681
if (c != '.')
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1686
while (((c = *s++) != '\0') && ISDIGIT(c)) {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1688
i += c - '0';
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1692
if (c != '.')
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1697
while (((c = *s++) != '\0') && ISDIGIT(c)) {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1699
i += c - '0';
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1703
if (c != '.')
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1708
while (((c = *s++) != '\0') && ISDIGIT(c)) {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1710
i += c - '0';
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1714
if (c != delim)
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1724
while (((c = *s++) != '\0') && ISDIGIT(c)) {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1726
i += c - '0';
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1730
if (c != delim)
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1873
char *s, c;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1908
for (part = 0; (c = *s) != '\0'; ) {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1909
if (c == delim) {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1913
if (c == ':') {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1926
if ((c = *s) != delim)
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1935
if (c >= '0' && c <= '9') {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1936
c -= '0';
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1937
} else if (c >= 'a' && c <= 'f') {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1938
c -= 'a' + 10;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1939
} else if (c >= 'A' && c <= 'F') {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1940
c -= 'A' + 10;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1944
whole |= c;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1947
whole |= ((u_32_t)c) << 24;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1955
if (c != ':' && c != delim)
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1966
while (((c = *s++) != '\0') && ISDIGIT(c)) {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1968
i += c - '0';
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
1972
if (c != delim)
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
590
char *rptr, *wptr, cmd[6], c;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
600
c = rptr[i];
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
601
if (ISALPHA(c)) {
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
602
cmd[i] = TOUPPER(c);
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
604
cmd[i] = c;
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
101
if (c != 'P')
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
113
c = *s;
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
119
if (!ISALPHA(c))
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
121
for (; !ISSPACE(c) && (i > 0); i--)
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
122
c = *s++;
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
131
c = *s;
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
132
if (c == ':') {
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
134
c = *s;
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
164
c = *s;
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
165
if (ISSPACE(c))
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
168
for (; (c != ' ') && (c != '\001') && (i > 0); i--)
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
169
c = *s++;
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
171
if (c == '\001') /* In reality a ^A can quote another ^A...*/
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
179
c = *s;
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
180
if (!ISDIGIT(c))
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
186
for (l = 0; ISDIGIT(c) && (i > 0); i--) {
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
188
l += c - '0';
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
189
c = *s++;
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
195
if (c != ' ')
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
201
c = *s;
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
202
if (!ISDIGIT(c))
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
207
for (l = 0; ISDIGIT(c) && (i > 0); i--) {
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
209
l += c - '0';
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
210
c = *s++;
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
70
register char *s, c;
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
81
c = *s++;
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
84
if ((c != ':') && (c != 'P'))
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
87
if (c == ':') {
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
92
c = *s;
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
94
if (!ISALPHA(c))
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
97
for (c = *s; !ISSPACE(c) && (i > 0); i--)
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
98
c = *s++;
sys/netpfil/ipfilter/netinet/ip_pool.c
234
ip_pool_node_t *c;
sys/netpfil/ipfilter/netinet/ip_pool.c
236
for (c = ipo->ipo_list; c != NULL; c = c->ipn_next)
sys/netpfil/ipfilter/netinet/ip_pool.c
238
c, c->ipn_name, c->ipn_addr.adf_addr.in4.s_addr,
sys/netpfil/ipfilter/netinet/ip_pool.c
239
c->ipn_mask.adf_addr.in4.s_addr,
sys/netpfil/ipfilter/netinet/ip_pool.c
240
c->ipn_info, c->ipn_hits);
sys/netpfil/ipfilter/netinet/ip_rcmd_pxy.c
117
register char *s = ptr, c;
sys/netpfil/ipfilter/netinet/ip_rcmd_pxy.c
120
while (((c = *s++) != '\0') && ISDIGIT(c)) {
sys/netpfil/ipfilter/netinet/ip_rcmd_pxy.c
122
i += c - '0';
sys/netpfil/ipfilter/netinet/ip_rpcb_pxy.c
632
char *c, *i, *b, *pp;
sys/netpfil/ipfilter/netinet/ip_rpcb_pxy.c
665
for (c = &uastr[1], d = 0, dd = 0; c < &uastr[l-1]; c++) {
sys/netpfil/ipfilter/netinet/ip_rpcb_pxy.c
666
if (ISDIGIT(*c)) {
sys/netpfil/ipfilter/netinet/ip_rpcb_pxy.c
670
if (*c == '.') {
sys/netpfil/ipfilter/netinet/ip_rpcb_pxy.c
675
*c = '\0';
sys/netpfil/ipfilter/netinet/ip_rpcb_pxy.c
681
b = c + 1;
sys/netpfil/ipfilter/netinet/ip_rpcb_pxy.c
716
register char *s = ptr, c;
sys/netpfil/ipfilter/netinet/ip_rpcb_pxy.c
719
while (((c = *s++) != '\0') && ISDIGIT(c)) {
sys/netpfil/ipfilter/netinet/ip_rpcb_pxy.c
721
i += c - '0';
sys/netpfil/ipfilter/netinet/mlfk_ipl.c
250
char *c, *str;
sys/netpfil/ipfilter/netinet/mlfk_ipl.c
263
c = NULL;
sys/netpfil/ipfilter/netinet/mlfk_ipl.c
266
c = str + j + 1;
sys/netpfil/ipfilter/netinet/mlfk_ipl.c
269
if (!c)
sys/netpfil/ipfilter/netinet/mlfk_ipl.c
270
c = str;
sys/netpfil/ipfilter/netinet/mlfk_ipl.c
271
ipf_devs[i] = make_dev(&ipf_cdevsw, i, 0, 0, 0600, "%s", c);
sys/netpfil/ipfw/dn_heap.c
53
#define MALLOC_DEFINE(a, b, c) volatile int __dummy__ ## a __attribute__((__unused__))
sys/netpfil/ipfw/ip_fw_nat.c
299
char *c;
sys/netpfil/ipfw/ip_fw_nat.c
347
c = mtod(mcl, char *);
sys/netpfil/ipfw/ip_fw_nat.c
364
retval = LibAliasOutTry(t->lib, c,
sys/netpfil/ipfw/ip_fw_nat.c
379
retval = LibAliasIn(t->lib, c,
sys/netpfil/ipfw/ip_fw_nat.c
382
retval = LibAliasOut(t->lib, c,
sys/netpfil/ipfw/ip_fw_private.h
613
#define IPFW_ADD_OBJ_REWRITER(f, c) do { \
sys/netpfil/ipfw/ip_fw_private.h
615
ipfw_add_obj_rewriter(c, \
sys/netpfil/ipfw/ip_fw_private.h
616
sizeof(c) / sizeof(c[0])); \
sys/netpfil/ipfw/ip_fw_private.h
618
#define IPFW_DEL_OBJ_REWRITER(l, c) do { \
sys/netpfil/ipfw/ip_fw_private.h
620
ipfw_del_obj_rewriter(c, \
sys/netpfil/ipfw/ip_fw_private.h
621
sizeof(c) / sizeof(c[0])); \
sys/netpfil/ipfw/ip_fw_private.h
690
#define IPFW_ADD_SOPT_HANDLER(f, c) do { \
sys/netpfil/ipfw/ip_fw_private.h
693
sizeof(c) / sizeof(c[0])); \
sys/netpfil/ipfw/ip_fw_private.h
695
#define IPFW_DEL_SOPT_HANDLER(l, c) do { \
sys/netpfil/ipfw/ip_fw_private.h
698
sizeof(c) / sizeof(c[0])); \
sys/netpfil/ipfw/ip_fw_sockopt.c
1264
#define CHECK_TARG(a, c) \
sys/netpfil/ipfw/ip_fw_sockopt.c
1265
((a) == IP_FW_TARG && ((c)->flags & IPFW_RCIFLAG_HAS_STATE))
sys/netpfil/ipfw/ip_fw_sockopt.c
821
int cmdlen, i, l, c;
sys/netpfil/ipfw/ip_fw_sockopt.c
826
for (c = 0, i = 0; i < ch->n_rules - 1; i++) {
sys/netpfil/ipfw/ip_fw_sockopt.c
847
c++;
sys/netpfil/ipfw/ip_fw_sockopt.c
850
if (c == 0) /* No objects found */
sys/netpfil/ipfw/ip_fw_sockopt.c
853
for (c = 0, i = 0; (i < ch->n_rules - 1) && c == 0; i++) {
sys/netpfil/ipfw/ip_fw_sockopt.c
861
l > 0 && c == 0; l -= cmdlen, cmd += cmdlen) {
sys/netpfil/ipfw/ip_fw_sockopt.c
867
c = rw->manage_sets(ch, kidx,
sys/netpfil/ipfw/ip_fw_sockopt.c
888
if (c != 0)
sys/netpfil/ipfw/ip_fw_sockopt.c
895
return (c);
sys/netpfil/ipfw/nat64/nat64lsn.c
1436
int c, i;
sys/netpfil/ipfw/nat64/nat64lsn.c
1440
for (c = 0; c < pg->chunks_count; c++) {
sys/netpfil/ipfw/nat64/nat64lsn.c
1444
usedmask = ~(*FREEMASK_CHUNK(pg, c));
sys/netpfil/ipfw/nat64/nat64lsn.c
1450
state = &STATES_CHUNK(pg, c)->state[i];
sys/netpfil/ipfw/nat64/nat64lsn.c
1458
FREEMASK_BTS(pg, c, i);
sys/netpfil/ipfw/nat64/nat64lsn.c
194
#define HOST_HVAL(c, a) HVAL((a),\
sys/netpfil/ipfw/nat64/nat64lsn.c
195
sizeof(struct in6_addr) / sizeof(uint32_t), (c)->hash_seed)
sys/netpfil/ipfw/nat64/nat64lsn.c
196
#define HOSTS(c, v) ((c)->hosts_hash[(v) & ((c)->hosts_hashsize - 1)])
sys/netpfil/ipfw/nat64/nat64lsn.c
198
#define ALIASLINK_HVAL(c, f) HVAL(&(f)->dst_ip6,\
sys/netpfil/ipfw/nat64/nat64lsn.c
199
sizeof(struct in6_addr) * 2 / sizeof(uint32_t), (c)->hash_seed)
sys/netpfil/ipfw/nat64/nat64lsn.c
200
#define ALIAS_BYHASH(c, v) \
sys/netpfil/ipfw/nat64/nat64lsn.c
201
((c)->aliases[(v) & ((1 << (32 - (c)->plen4)) - 1)])
sys/netpfil/ipfw/nat64/nat64lsn.c
230
#define STATE_HVAL(c, d) HVAL((d), 2, (c)->hash_seed)
sys/netpfil/ipfw/nat64/nat64lsn.c
75
#define NAT64LSN_EPOCH_CALL(c, f) NET_EPOCH_CALL((f), (c))
sys/netpfil/ipfw/nat64/nat64lsn.c
777
int c, i, update_age;
sys/netpfil/ipfw/nat64/nat64lsn.c
780
for (c = 0; c < pg->chunks_count; c++) {
sys/netpfil/ipfw/nat64/nat64lsn.c
781
FREEMASK_COPY(pg, c, freemask);
sys/netpfil/ipfw/nat64/nat64lsn.c
785
state = &STATES_CHUNK(pg, c)->state[i];
sys/netpfil/ipfw/nat64/nat64lsn.c
802
FREEMASK_BTS(pg, c, i);
sys/netpfil/ipfw/nat64/nat64lsn.c
943
int i, c;
sys/netpfil/ipfw/nat64/nat64lsn.c
950
for (c = 1; c < 32; c++) {
sys/netpfil/ipfw/nat64/nat64lsn.c
951
if ((alias->tcp_chunkmask & (1 << c)) == 0)
sys/netpfil/ipfw/nat64/nat64lsn.c
953
chunk = ck_pr_load_ptr(&alias->tcp[c]);
sys/netpfil/ipfw/nat64/nat64lsn.c
954
if (ck_pr_load_32(&alias->tcp_pgmask[c]) != 0)
sys/netpfil/ipfw/nat64/nat64lsn.c
956
ck_pr_btr_32(&alias->tcp_chunkmask, c);
sys/netpfil/ipfw/nat64/nat64lsn.c
958
if (ck_pr_load_32(&alias->tcp_pgmask[c]) != 0)
sys/netpfil/ipfw/nptv6/nptv6.h
35
#define NPTV6STAT_ADD(c, f, v) \
sys/netpfil/ipfw/nptv6/nptv6.h
36
counter_u64_add((c)->stats[ \
sys/netpfil/ipfw/nptv6/nptv6.h
38
#define NPTV6STAT_INC(c, f) NPTV6STAT_ADD(c, f, 1)
sys/netpfil/ipfw/nptv6/nptv6.h
39
#define NPTV6STAT_FETCH(c, f) \
sys/netpfil/ipfw/nptv6/nptv6.h
40
counter_u64_fetch((c)->stats[ \
sys/netpfil/ipfw/test/dn_test.h
155
#define DECLARE_MODULE(name, b, c, d) \
sys/netpfil/ipfw/test/dn_test.h
157
#define MODULE_DEPEND(a, b, c, d, e)
sys/netpfil/ipfw/test/main.c
105
static void controller(struct cfg_s *c);
sys/netpfil/ipfw/test/main.c
112
drop(struct cfg_s *c, struct mbuf *m)
sys/netpfil/ipfw/test/main.c
117
c->drop++;
sys/netpfil/ipfw/test/main.c
118
q = FI2Q(c, m->flow_id);
sys/netpfil/ipfw/test/main.c
124
c->llmask &= ~(1<<(i+1));
sys/netpfil/ipfw/test/main.c
125
c->llmask |= (1<<(i));
sys/netpfil/ipfw/test/main.c
127
list_add_tail(h, &c->ll[i]);
sys/netpfil/ipfw/test/main.c
129
m->m_nextpkt = c->freelist;
sys/netpfil/ipfw/test/main.c
130
c->freelist = m;
sys/netpfil/ipfw/test/main.c
168
gnet_stats_enq(struct cfg_s *c, struct mbuf *mb)
sys/netpfil/ipfw/test/main.c
170
struct dn_sch_inst *si = c->si;
sys/netpfil/ipfw/test/main.c
171
struct dn_queue *_q = FI2Q(c, mb->flow_id);
sys/netpfil/ipfw/test/main.c
180
gnet_stats_deq(struct cfg_s *c, struct mbuf *mb)
sys/netpfil/ipfw/test/main.c
182
struct dn_sch_inst *si = c->si;
sys/netpfil/ipfw/test/main.c
183
struct dn_queue *_q = FI2Q(c, mb->flow_id);
sys/netpfil/ipfw/test/main.c
192
double weight = (double)_q->fs->fs.par[0] / c->wsum;
sys/netpfil/ipfw/test/main.c
195
if (c->q_wfi[mb->flow_id] < wfi)
sys/netpfil/ipfw/test/main.c
196
c->q_wfi[mb->flow_id] = wfi;
sys/netpfil/ipfw/test/main.c
201
mainloop(struct cfg_s *c)
sys/netpfil/ipfw/test/main.c
206
for (i=0; i < c->loops; i++) {
sys/netpfil/ipfw/test/main.c
208
controller(c);
sys/netpfil/ipfw/test/main.c
210
i, c->_enqueue, c->tosend, c->can_dequeue);
sys/netpfil/ipfw/test/main.c
211
if ( (m = c->tosend) ) {
sys/netpfil/ipfw/test/main.c
213
struct dn_queue *q = FI2Q(c, m->flow_id);
sys/netpfil/ipfw/test/main.c
214
c->_enqueue++;
sys/netpfil/ipfw/test/main.c
215
ret = c->enq(c->si, q, m);
sys/netpfil/ipfw/test/main.c
217
drop(c, m);
sys/netpfil/ipfw/test/main.c
225
c->pending++;
sys/netpfil/ipfw/test/main.c
226
gnet_stats_enq(c, m);
sys/netpfil/ipfw/test/main.c
228
} else if (c->can_dequeue) {
sys/netpfil/ipfw/test/main.c
230
c->dequeue++;
sys/netpfil/ipfw/test/main.c
231
m = c->deq(c->si);
sys/netpfil/ipfw/test/main.c
233
c->pending--;
sys/netpfil/ipfw/test/main.c
234
drop(c, m);
sys/netpfil/ipfw/test/main.c
235
c->drop--; /* compensate */
sys/netpfil/ipfw/test/main.c
236
gnet_stats_deq(c, m);
sys/netpfil/ipfw/test/main.c
238
D("--- ouch, cannot operate on iteration %d, pending %d", i, c->pending);
sys/netpfil/ipfw/test/main.c
248
dump(struct cfg_s *c)
sys/netpfil/ipfw/test/main.c
252
for (i=0; i < c->flows; i++) {
sys/netpfil/ipfw/test/main.c
257
DX(1, "done %d loops\n", c->loops);
sys/netpfil/ipfw/test/main.c
317
parse_flowsets(struct cfg_s *c, const char *fs)
sys/netpfil/ipfw/test/main.c
325
DX(3, "--- pass %d flows %d flowsets %d", pass, c->flows, c->flowsets);
sys/netpfil/ipfw/test/main.c
327
if (c->fs_config)
sys/netpfil/ipfw/test/main.c
329
c->fs_config, fs);
sys/netpfil/ipfw/test/main.c
330
c->fs_config = fs;
sys/netpfil/ipfw/test/main.c
332
s = c->fs_config ? strdup(c->fs_config) : NULL;
sys/netpfil/ipfw/test/main.c
368
struct dn_fs *fs = &c->fs[n_fs].fs; // tentative
sys/netpfil/ipfw/test/main.c
377
if (c->fs == NULL || c->flowsets <= n_fs) {
sys/netpfil/ipfw/test/main.c
395
c->flows = n_flows;
sys/netpfil/ipfw/test/main.c
396
c->flowsets = n_fs;
sys/netpfil/ipfw/test/main.c
397
c->wsum = wsum;
sys/netpfil/ipfw/test/main.c
402
DX(1,"%d flows on %d flowsets", c->flows, c->flowsets);
sys/netpfil/ipfw/test/main.c
404
c->max_y = prev ? prev->base_y + prev->y : 0;
sys/netpfil/ipfw/test/main.c
405
DX(1,"%d flows on %d flowsets max_y %d", c->flows, c->flowsets, c->max_y);
sys/netpfil/ipfw/test/main.c
407
for (i=0; i < c->flowsets; i++) {
sys/netpfil/ipfw/test/main.c
408
struct dn_fs *fs = &c->fs[i].fs;
sys/netpfil/ipfw/test/main.c
414
struct dn_queue *q = FI2Q(c, j);
sys/netpfil/ipfw/test/main.c
415
q->fs = &c->fs[i];
sys/netpfil/ipfw/test/main.c
433
init(struct cfg_s *c)
sys/netpfil/ipfw/test/main.c
436
int ac = c->ac;
sys/netpfil/ipfw/test/main.c
437
char * const *av = c->av;
sys/netpfil/ipfw/test/main.c
439
c->si_len = sizeof(struct dn_sch_inst);
sys/netpfil/ipfw/test/main.c
440
c->q_len = sizeof(struct dn_queue);
sys/netpfil/ipfw/test/main.c
444
c->th_min = -1; /* 1 packet per flow */
sys/netpfil/ipfw/test/main.c
445
c->th_max = -20;/* 20 packets per flow */
sys/netpfil/ipfw/test/main.c
446
c->lmin = c->lmax = 1280; /* packet len */
sys/netpfil/ipfw/test/main.c
447
c->flows = 1;
sys/netpfil/ipfw/test/main.c
448
c->flowsets = 1;
sys/netpfil/ipfw/test/main.c
449
c->name = "null";
sys/netpfil/ipfw/test/main.c
453
c->loops = getnum(av[1], NULL, av[0]);
sys/netpfil/ipfw/test/main.c
476
c->name = mod ? mod->name : "NULL";
sys/netpfil/ipfw/test/main.c
477
DX(3, "using scheduler %s", c->name);
sys/netpfil/ipfw/test/main.c
479
c->lmin = getnum(av[1], NULL, av[0]);
sys/netpfil/ipfw/test/main.c
480
c->lmax = c->lmin;
sys/netpfil/ipfw/test/main.c
481
DX(3, "setting max to %d", c->th_max);
sys/netpfil/ipfw/test/main.c
484
c->maxburst = getnum(av[1], NULL, av[0]);
sys/netpfil/ipfw/test/main.c
485
DX(3, "setting max to %d", c->th_max);
sys/netpfil/ipfw/test/main.c
488
c->th_max = getnum(av[1], NULL, av[0]);
sys/netpfil/ipfw/test/main.c
489
DX(3, "setting max to %d", c->th_max);
sys/netpfil/ipfw/test/main.c
491
c->th_min = getnum(av[1], NULL, av[0]);
sys/netpfil/ipfw/test/main.c
492
DX(3, "setting min to %d", c->th_min);
sys/netpfil/ipfw/test/main.c
494
c->flows = getnum(av[1], NULL, av[0]);
sys/netpfil/ipfw/test/main.c
495
DX(3, "setting flows to %d", c->flows);
sys/netpfil/ipfw/test/main.c
497
parse_flowsets(c, av[1]); /* first pass */
sys/netpfil/ipfw/test/main.c
498
DX(3, "setting flowsets to %d", c->flowsets);
sys/netpfil/ipfw/test/main.c
505
if (c->maxburst <= 0)
sys/netpfil/ipfw/test/main.c
506
c->maxburst = 1;
sys/netpfil/ipfw/test/main.c
508
if (c->loops <= 0)
sys/netpfil/ipfw/test/main.c
509
c->loops = 1;
sys/netpfil/ipfw/test/main.c
510
if (c->flows <= 0)
sys/netpfil/ipfw/test/main.c
511
c->flows = 1;
sys/netpfil/ipfw/test/main.c
512
if (c->flowsets <= 0)
sys/netpfil/ipfw/test/main.c
513
c->flowsets = 1;
sys/netpfil/ipfw/test/main.c
514
if (c->lmin <= 0)
sys/netpfil/ipfw/test/main.c
515
c->lmin = 1;
sys/netpfil/ipfw/test/main.c
516
if (c->lmax <= 0)
sys/netpfil/ipfw/test/main.c
517
c->lmax = 1;
sys/netpfil/ipfw/test/main.c
519
if (c->th_min < 0)
sys/netpfil/ipfw/test/main.c
520
c->th_min = c->flows * -c->th_min;
sys/netpfil/ipfw/test/main.c
521
if (c->th_max < 0)
sys/netpfil/ipfw/test/main.c
522
c->th_max = c->flows * -c->th_max;
sys/netpfil/ipfw/test/main.c
523
if (c->th_max <= c->th_min)
sys/netpfil/ipfw/test/main.c
524
c->th_max = c->th_min + 1;
sys/netpfil/ipfw/test/main.c
532
c->enq = p->enqueue;
sys/netpfil/ipfw/test/main.c
533
c->deq = p->dequeue;
sys/netpfil/ipfw/test/main.c
534
c->si_len += p->si_datalen;
sys/netpfil/ipfw/test/main.c
535
c->q_len += p->q_datalen;
sys/netpfil/ipfw/test/main.c
536
c->schk_len += p->schk_datalen;
sys/netpfil/ipfw/test/main.c
539
c->enq = default_enqueue;
sys/netpfil/ipfw/test/main.c
540
c->deq = default_dequeue;
sys/netpfil/ipfw/test/main.c
544
D("using %d flows, %d flowsets", c->flows, c->flowsets);
sys/netpfil/ipfw/test/main.c
546
c->q_len, (int)sizeof(struct dn_fsk),
sys/netpfil/ipfw/test/main.c
547
c->si_len, c->schk_len);
sys/netpfil/ipfw/test/main.c
548
c->sched = calloc(1, c->schk_len); /* one parent scheduler */
sys/netpfil/ipfw/test/main.c
549
c->si = calloc(1, c->si_len); /* one scheduler instance */
sys/netpfil/ipfw/test/main.c
550
c->fs = calloc(c->flowsets, sizeof(struct dn_fsk));
sys/netpfil/ipfw/test/main.c
551
c->q = calloc(c->flows, c->q_len); /* one queue per flow */
sys/netpfil/ipfw/test/main.c
552
c->q_wfi = calloc(c->flows, sizeof(double)); /* stats, one per flow */
sys/netpfil/ipfw/test/main.c
553
if (!c->sched || !c->si || !c->fs || !c->q || !c->q_wfi) {
sys/netpfil/ipfw/test/main.c
557
c->si->sched = c->sched; /* link scheduler instance to template */
sys/netpfil/ipfw/test/main.c
561
p->config(c->si->sched);
sys/netpfil/ipfw/test/main.c
563
p->new_sched(c->si);
sys/netpfil/ipfw/test/main.c
566
parse_flowsets(c, NULL); /* second pass */
sys/netpfil/ipfw/test/main.c
568
for (i = 0; i < c->flowsets; i++) {
sys/netpfil/ipfw/test/main.c
569
struct dn_fsk *fsk = &c->fs[i];
sys/netpfil/ipfw/test/main.c
572
fsk->sched = c->si->sched;
sys/netpfil/ipfw/test/main.c
583
INIT_LIST_HEAD(&c->ll[i]);
sys/netpfil/ipfw/test/main.c
585
for (i = 0; i < c->flows; i++) {
sys/netpfil/ipfw/test/main.c
586
struct dn_queue *q = FI2Q(c, i);
sys/netpfil/ipfw/test/main.c
588
q->fs = &c->fs[0]; /* XXX */
sys/netpfil/ipfw/test/main.c
589
q->_si = c->si;
sys/netpfil/ipfw/test/main.c
593
list_add_tail(&q->ni.h, &c->ll[0]);
sys/netpfil/ipfw/test/main.c
595
c->llmask = 1; /* all flows are in the first list */
sys/netpfil/ipfw/test/main.c
602
struct cfg_s c;
sys/netpfil/ipfw/test/main.c
607
bzero(&c, sizeof(c));
sys/netpfil/ipfw/test/main.c
608
c.ac = ac;
sys/netpfil/ipfw/test/main.c
609
c.av = av;
sys/netpfil/ipfw/test/main.c
610
init(&c);
sys/netpfil/ipfw/test/main.c
611
gettimeofday(&c.time, NULL);
sys/netpfil/ipfw/test/main.c
612
D("th_min %d th_max %d", c.th_min, c.th_max);
sys/netpfil/ipfw/test/main.c
614
mainloop(&c);
sys/netpfil/ipfw/test/main.c
618
timersub(&end, &c.time, &c.time);
sys/netpfil/ipfw/test/main.c
620
ll = c.time.tv_sec*1000000 + c.time.tv_usec;
sys/netpfil/ipfw/test/main.c
622
ll /= c._enqueue;
sys/netpfil/ipfw/test/main.c
623
sprintf(msg, "1::%d", c.flows);
sys/netpfil/ipfw/test/main.c
624
for (i = 0; i < c.flows; i++) {
sys/netpfil/ipfw/test/main.c
625
if (c.wfi < c.q_wfi[i])
sys/netpfil/ipfw/test/main.c
626
c.wfi = c.q_wfi[i];
sys/netpfil/ipfw/test/main.c
630
c.name, (int)c.time.tv_sec, (int)c.time.tv_usec / 1000, ll,
sys/netpfil/ipfw/test/main.c
631
(unsigned long)c._enqueue, (unsigned long)c.dequeue, c.wfi,
sys/netpfil/ipfw/test/main.c
632
c.fs_config ? c.fs_config : msg);
sys/netpfil/ipfw/test/main.c
633
dump(&c);
sys/netpfil/ipfw/test/main.c
645
controller(struct cfg_s *c)
sys/netpfil/ipfw/test/main.c
652
if (c->state == 0 && c->pending >= (uint32_t)c->th_max)
sys/netpfil/ipfw/test/main.c
653
c->state = 1;
sys/netpfil/ipfw/test/main.c
654
else if (c->state == 1 && c->pending <= (uint32_t)c->th_min)
sys/netpfil/ipfw/test/main.c
655
c->state = 0;
sys/netpfil/ipfw/test/main.c
656
ND(1, "state %d pending %2d", c->state, c->pending);
sys/netpfil/ipfw/test/main.c
657
c->can_dequeue = c->state;
sys/netpfil/ipfw/test/main.c
658
c->tosend = NULL;
sys/netpfil/ipfw/test/main.c
659
if (c->can_dequeue)
sys/netpfil/ipfw/test/main.c
672
i = ffs(c->llmask) - 1;
sys/netpfil/ipfw/test/main.c
675
c->can_dequeue = 1;
sys/netpfil/ipfw/test/main.c
678
h = &c->ll[i];
sys/netpfil/ipfw/test/main.c
682
flow_id = Q2FI(c, q);
sys/netpfil/ipfw/test/main.c
686
c->llmask &= ~(1<<i);
sys/netpfil/ipfw/test/main.c
693
c->llmask |= 1<<(1+i);
sys/netpfil/ipfw/test/main.c
698
c->cur_fs = q->fs - c->fs;
sys/netpfil/ipfw/test/main.c
703
if (c->cur_y >= c->max_y) { /* handle wraparound */
sys/netpfil/ipfw/test/main.c
704
c->cur_y = 0;
sys/netpfil/ipfw/test/main.c
705
c->cur_fs = 0;
sys/netpfil/ipfw/test/main.c
707
fs = &c->fs[c->cur_fs].fs;
sys/netpfil/ipfw/test/main.c
711
c->cur_y++;
sys/netpfil/ipfw/test/main.c
712
if (c->cur_y >= fs->next_y)
sys/netpfil/ipfw/test/main.c
713
c->cur_fs++;
sys/netpfil/ipfw/test/main.c
718
if (c->freelist) {
sys/netpfil/ipfw/test/main.c
719
m = c->tosend = c->freelist;
sys/netpfil/ipfw/test/main.c
720
c->freelist = c->freelist->m_nextpkt;
sys/netpfil/ipfw/test/main.c
722
m = c->tosend = calloc(1, sizeof(struct mbuf));
sys/netpfil/ipfw/test/main.c
733
c->cur_y, m->flow_id, c->cur_fs,
sys/netpfil/ipfw/test/main.c
98
#define FI2Q(c, i) ((struct dn_queue *)((c)->q + (c)->q_len * (i)))
sys/netpfil/ipfw/test/main.c
99
#define Q2FI(c, q) (((char *)(q) - (c)->q)/(c)->q_len)
sys/netpfil/pf/if_pfsync.c
1759
int c;
sys/netpfil/pf/if_pfsync.c
1780
for (c = 0; c < pfsync_buckets; c++) {
sys/netpfil/pf/if_pfsync.c
1781
PFSYNC_BUCKET_LOCK(&sc->sc_buckets[c]);
sys/netpfil/pf/if_pfsync.c
1782
if (sc->sc_buckets[c].b_len > PFSYNC_MINPKT)
sys/netpfil/pf/if_pfsync.c
1783
pfsync_sendout(1, c);
sys/netpfil/pf/if_pfsync.c
1784
PFSYNC_BUCKET_UNLOCK(&sc->sc_buckets[c]);
sys/netpfil/pf/if_pfsync.c
1963
int c;
sys/netpfil/pf/if_pfsync.c
1965
for (c = 0; c < pfsync_buckets; c++) {
sys/netpfil/pf/if_pfsync.c
1966
b = &sc->sc_buckets[c];
sys/netpfil/pf/if_pfsync.c
1969
pfsync_drop(sc, c);
sys/netpfil/pf/if_pfsync.c
1975
pfsync_drop(struct pfsync_softc *sc, int c)
sys/netpfil/pf/if_pfsync.c
1982
b = &sc->sc_buckets[c];
sys/netpfil/pf/if_pfsync.c
2011
pfsync_sendout(int schedswi, int c)
sys/netpfil/pf/if_pfsync.c
2020
struct pfsync_bucket *b = &sc->sc_buckets[c];
sys/netpfil/pf/if_pfsync.c
2031
pfsync_drop(sc, c);
sys/netpfil/pf/if_pfsync.c
2079
pfsync_drop(sc, c);
sys/netpfil/pf/if_pfsync.c
2369
int c = PF_IDHASH(st) % pfsync_buckets;
sys/netpfil/pf/if_pfsync.c
2370
return &sc->sc_buckets[c];
sys/netpfil/pf/if_pfsync.c
2865
int c;
sys/netpfil/pf/if_pfsync.c
2868
for (c = 0; c < pfsync_buckets; c++) {
sys/netpfil/pf/if_pfsync.c
2869
b = &sc->sc_buckets[c];
sys/netpfil/pf/if_pfsync.c
2932
int c;
sys/netpfil/pf/if_pfsync.c
2937
for (c = 0; c < pfsync_buckets; c++) {
sys/netpfil/pf/if_pfsync.c
2938
b = &sc->sc_buckets[c];
sys/netpfil/pf/if_pfsync.c
3100
int c;
sys/netpfil/pf/if_pfsync.c
3217
for (c = 0; c < pfsync_buckets; c++) {
sys/netpfil/pf/if_pfsync.c
3218
PFSYNC_BUCKET_LOCK(&sc->sc_buckets[c]);
sys/netpfil/pf/if_pfsync.c
3219
if (sc->sc_buckets[c].b_len > PFSYNC_MINPKT &&
sys/netpfil/pf/if_pfsync.c
3224
pfsync_sendout(1, c);
sys/netpfil/pf/if_pfsync.c
3225
PFSYNC_BUCKET_UNLOCK(&sc->sc_buckets[c]);
sys/netpfil/pf/if_pfsync.c
394
int c;
sys/netpfil/pf/if_pfsync.c
409
for (c = 0; c < pfsync_buckets; c++) {
sys/netpfil/pf/if_pfsync.c
410
b = &sc->sc_buckets[c];
sys/netpfil/pf/if_pfsync.c
413
b->b_id = c;
sys/netpfil/pf/if_pfsync.c
454
int c, ret;
sys/netpfil/pf/if_pfsync.c
456
for (c = 0; c < pfsync_buckets; c++) {
sys/netpfil/pf/if_pfsync.c
457
b = &sc->sc_buckets[c];
sys/netpfil/pf/if_pfsync.c
503
for (c = 0; c < pfsync_buckets; c++) {
sys/netpfil/pf/if_pfsync.c
504
b = &sc->sc_buckets[c];
sys/netpfil/pf/pf.c
3819
pf_change_a(void *a, u_int16_t *c, u_int32_t an, u_int8_t u)
sys/netpfil/pf/pf.c
3825
*c = pf_cksum_fixup(pf_cksum_fixup(*c, ao / 65536, an / 65536, u),
sys/netpfil/pf/pf.c
3830
pf_change_proto_a(struct mbuf *m, void *a, u_int16_t *c, u_int32_t an, u_int8_t udp)
sys/netpfil/pf/pf.c
3837
*c = pf_proto_cksum_fixup(m,
sys/netpfil/pf/pf.c
3838
pf_proto_cksum_fixup(m, *c, ao / 65536, an / 65536, udp),
sys/netpfil/pf/pf.c
3844
pf_change_a6(struct pf_addr *a, u_int16_t *c, struct pf_addr *an, u_int8_t u)
sys/netpfil/pf/pf.c
3851
*c = pf_cksum_fixup(pf_cksum_fixup(pf_cksum_fixup(
sys/netpfil/pf/pf.c
3853
pf_cksum_fixup(pf_cksum_fixup(*c,
sys/netpfil/pf/pf_ruleset.c
87
int c = strcmp(a->path, b->path);
sys/netpfil/pf/pf_ruleset.c
89
return (c ? (c < 0 ? -1 : 1) : 0);
sys/netpfil/pf/pf_ruleset.c
95
int c = strcmp(a->path, b->path);
sys/netpfil/pf/pf_ruleset.c
97
return (c ? (c < 0 ? -1 : 1) : 0);
sys/netpfil/pf/pf_table.c
790
counter_u64_t c;
sys/netpfil/pf/pf_table.c
811
c = uma_zalloc_pcpu(V_pfr_kentry_counter_z, M_NOWAIT | M_ZERO);
sys/netpfil/pf/pf_table.c
812
if (c == NULL) {
sys/netpfil/pf/pf_table.c
816
ke->pfrke_counters.pfrkc_counters = c;
sys/netpfil/pf/pf_table.c
835
counter_u64_t c;
sys/netpfil/pf/pf_table.c
837
if ((c = ke->pfrke_counters.pfrkc_counters) != NULL)
sys/netpfil/pf/pf_table.c
838
uma_zfree_pcpu(V_pfr_kentry_counter_z, c);
sys/netpfil/pf/pflow.c
1300
counter_u64_fetch(V_pflowstats.c[pflow_flows]);
sys/netpfil/pf/pflow.c
1302
counter_u64_fetch(V_pflowstats.c[pflow_packets]);
sys/netpfil/pf/pflow.c
1304
counter_u64_fetch(V_pflowstats.c[pflow_onomem]);
sys/netpfil/pf/pflow.c
1306
counter_u64_fetch(V_pflowstats.c[pflow_oerrors]);
sys/netpfil/pf/pflow.c
132
counter_u64_t c[pflow_ncounters];
sys/netpfil/pf/pflow.c
169
pflowstat_inc(enum pflowstat_counters c)
sys/netpfil/pf/pflow.c
171
counter_u64_add(V_pflowstats.c[c], 1);
sys/netpfil/pf/pflow.c
183
V_pflowstats.c[i] = counter_u64_alloc(M_WAITOK);
sys/netpfil/pf/pflow.c
215
counter_u64_free(V_pflowstats.c[i]);
sys/netsmb/smb_subr.c
363
u_char c;
sys/netsmb/smb_subr.c
367
iconv_convmem(dp, &c, src++, 1);
sys/netsmb/smb_subr.c
368
error = mb_put_uint16le(mbp, c);
sys/nfsclient/nfs.h
187
#define HEXTOC(c) \
sys/nfsclient/nfs.h
188
((c) >= 'a' ? ((c) - ('a' - 10)) : \
sys/nfsclient/nfs.h
189
((c) >= 'A' ? ((c) - ('A' - 10)) : ((c) - '0')))
sys/nfsserver/nfs.h
217
#define HEXTOC(c) \
sys/nfsserver/nfs.h
218
((c) >= 'a' ? ((c) - ('a' - 10)) : \
sys/nfsserver/nfs.h
219
((c) >= 'A' ? ((c) - ('A' - 10)) : ((c) - '0')))
sys/ofed/drivers/infiniband/ulp/sdp/sdp.h
606
int c;
sys/ofed/drivers/infiniband/ulp/sdp/sdp.h
608
c = remote_credits(ssk);
sys/ofed/drivers/infiniband/ulp/sdp/sdp.h
609
if (likely(c > SDP_MIN_TX_CREDITS))
sys/ofed/drivers/infiniband/ulp/sdp/sdp.h
610
c += c/2;
sys/ofed/drivers/infiniband/ulp/sdp/sdp.h
611
return unlikely(c < rx_ring_posted(ssk)) &&
sys/opencrypto/gfmult.c
112
r.v[1] = ((uint64_t)tbl->c[bits] << 32) | tbl->d[bits];
sys/opencrypto/gfmult.c
233
gf128_mul4(struct gf128 a, struct gf128 b, struct gf128 c, struct gf128 d,
sys/opencrypto/gfmult.c
240
tmp = gfmultword4(a.v[1], b.v[1], c.v[1], d.v[1], tmp, tbl);
sys/opencrypto/gfmult.c
241
tmp = gfmultword4(a.v[0], b.v[0], c.v[0], d.v[0], tmp, tbl);
sys/opencrypto/gfmult.c
258
struct gf128 a, b, c, d;
sys/opencrypto/gfmult.c
265
c = gf128_read(&v[2*16]);
sys/opencrypto/gfmult.c
268
tmp = gfmultword4(a.v[1], b.v[1], c.v[1], d.v[1], tmp, tbl);
sys/opencrypto/gfmult.c
269
tmp = gfmultword4(a.v[0], b.v[0], c.v[0], d.v[0], tmp, tbl);
sys/opencrypto/gfmult.c
75
t->c[nib_rev[i]] = tbl[i].v[1] >> 32;
sys/opencrypto/gfmult.h
120
struct gf128 gf128_mul4(struct gf128 a, struct gf128 b, struct gf128 c,
sys/opencrypto/gfmult.h
56
uint32_t c[16] __aligned(REQ_ALIGN); /* bits 95 - 64 */
sys/opencrypto/rmd160.c
161
uint32_t a, b, c, d, e, aa, bb, cc, dd, ee, t, x[16];
sys/opencrypto/rmd160.c
174
c = state[2];
sys/opencrypto/rmd160.c
179
R(a, b, c, d, e, F0, K0, 11, 0);
sys/opencrypto/rmd160.c
180
R(e, a, b, c, d, F0, K0, 14, 1);
sys/opencrypto/rmd160.c
181
R(d, e, a, b, c, F0, K0, 15, 2);
sys/opencrypto/rmd160.c
182
R(c, d, e, a, b, F0, K0, 12, 3);
sys/opencrypto/rmd160.c
183
R(b, c, d, e, a, F0, K0, 5, 4);
sys/opencrypto/rmd160.c
184
R(a, b, c, d, e, F0, K0, 8, 5);
sys/opencrypto/rmd160.c
185
R(e, a, b, c, d, F0, K0, 7, 6);
sys/opencrypto/rmd160.c
186
R(d, e, a, b, c, F0, K0, 9, 7);
sys/opencrypto/rmd160.c
187
R(c, d, e, a, b, F0, K0, 11, 8);
sys/opencrypto/rmd160.c
188
R(b, c, d, e, a, F0, K0, 13, 9);
sys/opencrypto/rmd160.c
189
R(a, b, c, d, e, F0, K0, 14, 10);
sys/opencrypto/rmd160.c
190
R(e, a, b, c, d, F0, K0, 15, 11);
sys/opencrypto/rmd160.c
191
R(d, e, a, b, c, F0, K0, 6, 12);
sys/opencrypto/rmd160.c
192
R(c, d, e, a, b, F0, K0, 7, 13);
sys/opencrypto/rmd160.c
193
R(b, c, d, e, a, F0, K0, 9, 14);
sys/opencrypto/rmd160.c
194
R(a, b, c, d, e, F0, K0, 8, 15); /* #15 */
sys/opencrypto/rmd160.c
196
R(e, a, b, c, d, F1, K1, 7, 7);
sys/opencrypto/rmd160.c
197
R(d, e, a, b, c, F1, K1, 6, 4);
sys/opencrypto/rmd160.c
198
R(c, d, e, a, b, F1, K1, 8, 13);
sys/opencrypto/rmd160.c
199
R(b, c, d, e, a, F1, K1, 13, 1);
sys/opencrypto/rmd160.c
200
R(a, b, c, d, e, F1, K1, 11, 10);
sys/opencrypto/rmd160.c
201
R(e, a, b, c, d, F1, K1, 9, 6);
sys/opencrypto/rmd160.c
202
R(d, e, a, b, c, F1, K1, 7, 15);
sys/opencrypto/rmd160.c
203
R(c, d, e, a, b, F1, K1, 15, 3);
sys/opencrypto/rmd160.c
204
R(b, c, d, e, a, F1, K1, 7, 12);
sys/opencrypto/rmd160.c
205
R(a, b, c, d, e, F1, K1, 12, 0);
sys/opencrypto/rmd160.c
206
R(e, a, b, c, d, F1, K1, 15, 9);
sys/opencrypto/rmd160.c
207
R(d, e, a, b, c, F1, K1, 9, 5);
sys/opencrypto/rmd160.c
208
R(c, d, e, a, b, F1, K1, 11, 2);
sys/opencrypto/rmd160.c
209
R(b, c, d, e, a, F1, K1, 7, 14);
sys/opencrypto/rmd160.c
210
R(a, b, c, d, e, F1, K1, 13, 11);
sys/opencrypto/rmd160.c
211
R(e, a, b, c, d, F1, K1, 12, 8); /* #31 */
sys/opencrypto/rmd160.c
213
R(d, e, a, b, c, F2, K2, 11, 3);
sys/opencrypto/rmd160.c
214
R(c, d, e, a, b, F2, K2, 13, 10);
sys/opencrypto/rmd160.c
215
R(b, c, d, e, a, F2, K2, 6, 14);
sys/opencrypto/rmd160.c
216
R(a, b, c, d, e, F2, K2, 7, 4);
sys/opencrypto/rmd160.c
217
R(e, a, b, c, d, F2, K2, 14, 9);
sys/opencrypto/rmd160.c
218
R(d, e, a, b, c, F2, K2, 9, 15);
sys/opencrypto/rmd160.c
219
R(c, d, e, a, b, F2, K2, 13, 8);
sys/opencrypto/rmd160.c
220
R(b, c, d, e, a, F2, K2, 15, 1);
sys/opencrypto/rmd160.c
221
R(a, b, c, d, e, F2, K2, 14, 2);
sys/opencrypto/rmd160.c
222
R(e, a, b, c, d, F2, K2, 8, 7);
sys/opencrypto/rmd160.c
223
R(d, e, a, b, c, F2, K2, 13, 0);
sys/opencrypto/rmd160.c
224
R(c, d, e, a, b, F2, K2, 6, 6);
sys/opencrypto/rmd160.c
225
R(b, c, d, e, a, F2, K2, 5, 13);
sys/opencrypto/rmd160.c
226
R(a, b, c, d, e, F2, K2, 12, 11);
sys/opencrypto/rmd160.c
227
R(e, a, b, c, d, F2, K2, 7, 5);
sys/opencrypto/rmd160.c
228
R(d, e, a, b, c, F2, K2, 5, 12); /* #47 */
sys/opencrypto/rmd160.c
230
R(c, d, e, a, b, F3, K3, 11, 1);
sys/opencrypto/rmd160.c
231
R(b, c, d, e, a, F3, K3, 12, 9);
sys/opencrypto/rmd160.c
232
R(a, b, c, d, e, F3, K3, 14, 11);
sys/opencrypto/rmd160.c
233
R(e, a, b, c, d, F3, K3, 15, 10);
sys/opencrypto/rmd160.c
234
R(d, e, a, b, c, F3, K3, 14, 0);
sys/opencrypto/rmd160.c
235
R(c, d, e, a, b, F3, K3, 15, 8);
sys/opencrypto/rmd160.c
236
R(b, c, d, e, a, F3, K3, 9, 12);
sys/opencrypto/rmd160.c
237
R(a, b, c, d, e, F3, K3, 8, 4);
sys/opencrypto/rmd160.c
238
R(e, a, b, c, d, F3, K3, 9, 13);
sys/opencrypto/rmd160.c
239
R(d, e, a, b, c, F3, K3, 14, 3);
sys/opencrypto/rmd160.c
240
R(c, d, e, a, b, F3, K3, 5, 7);
sys/opencrypto/rmd160.c
241
R(b, c, d, e, a, F3, K3, 6, 15);
sys/opencrypto/rmd160.c
242
R(a, b, c, d, e, F3, K3, 8, 14);
sys/opencrypto/rmd160.c
243
R(e, a, b, c, d, F3, K3, 6, 5);
sys/opencrypto/rmd160.c
244
R(d, e, a, b, c, F3, K3, 5, 6);
sys/opencrypto/rmd160.c
245
R(c, d, e, a, b, F3, K3, 12, 2); /* #63 */
sys/opencrypto/rmd160.c
247
R(b, c, d, e, a, F4, K4, 9, 4);
sys/opencrypto/rmd160.c
248
R(a, b, c, d, e, F4, K4, 15, 0);
sys/opencrypto/rmd160.c
249
R(e, a, b, c, d, F4, K4, 5, 5);
sys/opencrypto/rmd160.c
250
R(d, e, a, b, c, F4, K4, 11, 9);
sys/opencrypto/rmd160.c
251
R(c, d, e, a, b, F4, K4, 6, 7);
sys/opencrypto/rmd160.c
252
R(b, c, d, e, a, F4, K4, 8, 12);
sys/opencrypto/rmd160.c
253
R(a, b, c, d, e, F4, K4, 13, 2);
sys/opencrypto/rmd160.c
254
R(e, a, b, c, d, F4, K4, 12, 10);
sys/opencrypto/rmd160.c
255
R(d, e, a, b, c, F4, K4, 5, 14);
sys/opencrypto/rmd160.c
256
R(c, d, e, a, b, F4, K4, 12, 1);
sys/opencrypto/rmd160.c
257
R(b, c, d, e, a, F4, K4, 13, 3);
sys/opencrypto/rmd160.c
258
R(a, b, c, d, e, F4, K4, 14, 8);
sys/opencrypto/rmd160.c
259
R(e, a, b, c, d, F4, K4, 11, 11);
sys/opencrypto/rmd160.c
260
R(d, e, a, b, c, F4, K4, 8, 6);
sys/opencrypto/rmd160.c
261
R(c, d, e, a, b, F4, K4, 5, 15);
sys/opencrypto/rmd160.c
262
R(b, c, d, e, a, F4, K4, 6, 13); /* #79 */
sys/opencrypto/rmd160.c
264
aa = a ; bb = b; cc = c; dd = d; ee = e;
sys/opencrypto/rmd160.c
268
c = state[2];
sys/opencrypto/rmd160.c
273
R(a, b, c, d, e, F4, KK0, 8, 5);
sys/opencrypto/rmd160.c
274
R(e, a, b, c, d, F4, KK0, 9, 14);
sys/opencrypto/rmd160.c
275
R(d, e, a, b, c, F4, KK0, 9, 7);
sys/opencrypto/rmd160.c
276
R(c, d, e, a, b, F4, KK0, 11, 0);
sys/opencrypto/rmd160.c
277
R(b, c, d, e, a, F4, KK0, 13, 9);
sys/opencrypto/rmd160.c
278
R(a, b, c, d, e, F4, KK0, 15, 2);
sys/opencrypto/rmd160.c
279
R(e, a, b, c, d, F4, KK0, 15, 11);
sys/opencrypto/rmd160.c
280
R(d, e, a, b, c, F4, KK0, 5, 4);
sys/opencrypto/rmd160.c
281
R(c, d, e, a, b, F4, KK0, 7, 13);
sys/opencrypto/rmd160.c
282
R(b, c, d, e, a, F4, KK0, 7, 6);
sys/opencrypto/rmd160.c
283
R(a, b, c, d, e, F4, KK0, 8, 15);
sys/opencrypto/rmd160.c
284
R(e, a, b, c, d, F4, KK0, 11, 8);
sys/opencrypto/rmd160.c
285
R(d, e, a, b, c, F4, KK0, 14, 1);
sys/opencrypto/rmd160.c
286
R(c, d, e, a, b, F4, KK0, 14, 10);
sys/opencrypto/rmd160.c
287
R(b, c, d, e, a, F4, KK0, 12, 3);
sys/opencrypto/rmd160.c
288
R(a, b, c, d, e, F4, KK0, 6, 12); /* #15 */
sys/opencrypto/rmd160.c
290
R(e, a, b, c, d, F3, KK1, 9, 6);
sys/opencrypto/rmd160.c
291
R(d, e, a, b, c, F3, KK1, 13, 11);
sys/opencrypto/rmd160.c
292
R(c, d, e, a, b, F3, KK1, 15, 3);
sys/opencrypto/rmd160.c
293
R(b, c, d, e, a, F3, KK1, 7, 7);
sys/opencrypto/rmd160.c
294
R(a, b, c, d, e, F3, KK1, 12, 0);
sys/opencrypto/rmd160.c
295
R(e, a, b, c, d, F3, KK1, 8, 13);
sys/opencrypto/rmd160.c
296
R(d, e, a, b, c, F3, KK1, 9, 5);
sys/opencrypto/rmd160.c
297
R(c, d, e, a, b, F3, KK1, 11, 10);
sys/opencrypto/rmd160.c
298
R(b, c, d, e, a, F3, KK1, 7, 14);
sys/opencrypto/rmd160.c
299
R(a, b, c, d, e, F3, KK1, 7, 15);
sys/opencrypto/rmd160.c
300
R(e, a, b, c, d, F3, KK1, 12, 8);
sys/opencrypto/rmd160.c
301
R(d, e, a, b, c, F3, KK1, 7, 12);
sys/opencrypto/rmd160.c
302
R(c, d, e, a, b, F3, KK1, 6, 4);
sys/opencrypto/rmd160.c
303
R(b, c, d, e, a, F3, KK1, 15, 9);
sys/opencrypto/rmd160.c
304
R(a, b, c, d, e, F3, KK1, 13, 1);
sys/opencrypto/rmd160.c
305
R(e, a, b, c, d, F3, KK1, 11, 2); /* #31 */
sys/opencrypto/rmd160.c
307
R(d, e, a, b, c, F2, KK2, 9, 15);
sys/opencrypto/rmd160.c
308
R(c, d, e, a, b, F2, KK2, 7, 5);
sys/opencrypto/rmd160.c
309
R(b, c, d, e, a, F2, KK2, 15, 1);
sys/opencrypto/rmd160.c
310
R(a, b, c, d, e, F2, KK2, 11, 3);
sys/opencrypto/rmd160.c
311
R(e, a, b, c, d, F2, KK2, 8, 7);
sys/opencrypto/rmd160.c
312
R(d, e, a, b, c, F2, KK2, 6, 14);
sys/opencrypto/rmd160.c
313
R(c, d, e, a, b, F2, KK2, 6, 6);
sys/opencrypto/rmd160.c
314
R(b, c, d, e, a, F2, KK2, 14, 9);
sys/opencrypto/rmd160.c
315
R(a, b, c, d, e, F2, KK2, 12, 11);
sys/opencrypto/rmd160.c
316
R(e, a, b, c, d, F2, KK2, 13, 8);
sys/opencrypto/rmd160.c
317
R(d, e, a, b, c, F2, KK2, 5, 12);
sys/opencrypto/rmd160.c
318
R(c, d, e, a, b, F2, KK2, 14, 2);
sys/opencrypto/rmd160.c
319
R(b, c, d, e, a, F2, KK2, 13, 10);
sys/opencrypto/rmd160.c
320
R(a, b, c, d, e, F2, KK2, 13, 0);
sys/opencrypto/rmd160.c
321
R(e, a, b, c, d, F2, KK2, 7, 4);
sys/opencrypto/rmd160.c
322
R(d, e, a, b, c, F2, KK2, 5, 13); /* #47 */
sys/opencrypto/rmd160.c
324
R(c, d, e, a, b, F1, KK3, 15, 8);
sys/opencrypto/rmd160.c
325
R(b, c, d, e, a, F1, KK3, 5, 6);
sys/opencrypto/rmd160.c
326
R(a, b, c, d, e, F1, KK3, 8, 4);
sys/opencrypto/rmd160.c
327
R(e, a, b, c, d, F1, KK3, 11, 1);
sys/opencrypto/rmd160.c
328
R(d, e, a, b, c, F1, KK3, 14, 3);
sys/opencrypto/rmd160.c
329
R(c, d, e, a, b, F1, KK3, 14, 11);
sys/opencrypto/rmd160.c
330
R(b, c, d, e, a, F1, KK3, 6, 15);
sys/opencrypto/rmd160.c
331
R(a, b, c, d, e, F1, KK3, 14, 0);
sys/opencrypto/rmd160.c
332
R(e, a, b, c, d, F1, KK3, 6, 5);
sys/opencrypto/rmd160.c
333
R(d, e, a, b, c, F1, KK3, 9, 12);
sys/opencrypto/rmd160.c
334
R(c, d, e, a, b, F1, KK3, 12, 2);
sys/opencrypto/rmd160.c
335
R(b, c, d, e, a, F1, KK3, 9, 13);
sys/opencrypto/rmd160.c
336
R(a, b, c, d, e, F1, KK3, 12, 9);
sys/opencrypto/rmd160.c
337
R(e, a, b, c, d, F1, KK3, 5, 7);
sys/opencrypto/rmd160.c
338
R(d, e, a, b, c, F1, KK3, 15, 10);
sys/opencrypto/rmd160.c
339
R(c, d, e, a, b, F1, KK3, 8, 14); /* #63 */
sys/opencrypto/rmd160.c
341
R(b, c, d, e, a, F0, KK4, 8, 12);
sys/opencrypto/rmd160.c
342
R(a, b, c, d, e, F0, KK4, 5, 15);
sys/opencrypto/rmd160.c
343
R(e, a, b, c, d, F0, KK4, 12, 10);
sys/opencrypto/rmd160.c
344
R(d, e, a, b, c, F0, KK4, 9, 4);
sys/opencrypto/rmd160.c
345
R(c, d, e, a, b, F0, KK4, 12, 1);
sys/opencrypto/rmd160.c
346
R(b, c, d, e, a, F0, KK4, 5, 5);
sys/opencrypto/rmd160.c
347
R(a, b, c, d, e, F0, KK4, 14, 8);
sys/opencrypto/rmd160.c
348
R(e, a, b, c, d, F0, KK4, 6, 7);
sys/opencrypto/rmd160.c
349
R(d, e, a, b, c, F0, KK4, 8, 6);
sys/opencrypto/rmd160.c
350
R(c, d, e, a, b, F0, KK4, 13, 2);
sys/opencrypto/rmd160.c
351
R(b, c, d, e, a, F0, KK4, 6, 13);
sys/opencrypto/rmd160.c
352
R(a, b, c, d, e, F0, KK4, 5, 14);
sys/opencrypto/rmd160.c
353
R(e, a, b, c, d, F0, KK4, 15, 0);
sys/opencrypto/rmd160.c
354
R(d, e, a, b, c, F0, KK4, 13, 3);
sys/opencrypto/rmd160.c
355
R(c, d, e, a, b, F0, KK4, 11, 9);
sys/opencrypto/rmd160.c
356
R(b, c, d, e, a, F0, KK4, 11, 11); /* #79 */
sys/opencrypto/rmd160.c
362
state[4] = state[0] + bb + c;
sys/opencrypto/rmd160.c
80
#define R(a, b, c, d, e, Fj, Kj, sj, rj) \
sys/opencrypto/rmd160.c
82
a = ROL(sj, a + Fj(b,c,d) + X(rj) + Kj) + e; \
sys/opencrypto/rmd160.c
83
c = ROL(10, c); \
sys/powerpc/include/_stdint.h
45
#define INT8_C(c) (c)
sys/powerpc/include/_stdint.h
46
#define INT16_C(c) (c)
sys/powerpc/include/_stdint.h
47
#define INT32_C(c) (c)
sys/powerpc/include/_stdint.h
49
#define UINT8_C(c) (c)
sys/powerpc/include/_stdint.h
50
#define UINT16_C(c) (c)
sys/powerpc/include/_stdint.h
51
#define UINT32_C(c) (c ## U)
sys/powerpc/include/_stdint.h
54
#define INT64_C(c) (c ## L)
sys/powerpc/include/_stdint.h
55
#define UINT64_C(c) (c ## UL)
sys/powerpc/include/_stdint.h
57
#define INT64_C(c) (c ## LL)
sys/powerpc/include/_stdint.h
58
#define UINT64_C(c) (c ## ULL)
sys/powerpc/include/_stdint.h
61
#define INTMAX_C(c) INT64_C(c)
sys/powerpc/include/_stdint.h
62
#define UINTMAX_C(c) UINT64_C(c)
sys/powerpc/include/_stdint.h
70
#define __INT64_C(c) (c ## L)
sys/powerpc/include/_stdint.h
71
#define __UINT64_C(c) (c ## UL)
sys/powerpc/include/_stdint.h
73
#define __INT64_C(c) (c ## LL)
sys/powerpc/include/_stdint.h
74
#define __UINT64_C(c) (c ## ULL)
sys/powerpc/include/bus.h
268
#define __bs_nonsingle(type, sz, t, h, o, a, c) \
sys/powerpc/include/bus.h
269
(*(t)->__bs_opname(type,sz))(h, o, a, c)
sys/powerpc/include/bus.h
270
#define __bs_set(type, sz, t, h, o, v, c) \
sys/powerpc/include/bus.h
271
(*(t)->__bs_opname(type,sz))(h, o, v, c)
sys/powerpc/include/bus.h
273
(*(t)->__bs_opname(c,sz))(h1, o1, h2, o2, cnt)
sys/powerpc/include/bus.h
278
#define bus_space_map(t, a, s, c, hp) (*(t)->bs_map)(a, s, c, hp)
sys/powerpc/include/bus.h
285
#define bus_space_alloc(t, rs, re, s, a, b, c, ap, hp) \
sys/powerpc/include/bus.h
286
(*(t)->bs_alloc)(rs, re, s, a, b, c, ap, hp)
sys/powerpc/include/bus.h
311
#define bus_space_read_multi_1(t, h, o, a, c) \
sys/powerpc/include/bus.h
312
__bs_nonsingle(rm,1,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
313
#define bus_space_read_multi_2(t, h, o, a, c) \
sys/powerpc/include/bus.h
314
__bs_nonsingle(rm,2,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
315
#define bus_space_read_multi_4(t, h, o, a, c) \
sys/powerpc/include/bus.h
316
__bs_nonsingle(rm,4,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
317
#define bus_space_read_multi_8(t, h, o, a, c) \
sys/powerpc/include/bus.h
318
__bs_nonsingle(rm,8,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
321
#define bus_space_read_multi_stream_2(t, h, o, a, c) \
sys/powerpc/include/bus.h
322
__bs_nonsingle(rm,s_2,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
323
#define bus_space_read_multi_stream_4(t, h, o, a, c) \
sys/powerpc/include/bus.h
324
__bs_nonsingle(rm,s_4,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
325
#define bus_space_read_multi_stream_8(t, h, o, a, c) \
sys/powerpc/include/bus.h
326
__bs_nonsingle(rm,s_8,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
331
#define bus_space_read_region_1(t, h, o, a, c) \
sys/powerpc/include/bus.h
332
__bs_nonsingle(rr,1,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
333
#define bus_space_read_region_2(t, h, o, a, c) \
sys/powerpc/include/bus.h
334
__bs_nonsingle(rr,2,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
335
#define bus_space_read_region_4(t, h, o, a, c) \
sys/powerpc/include/bus.h
336
__bs_nonsingle(rr,4,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
337
#define bus_space_read_region_8(t, h, o, a, c) \
sys/powerpc/include/bus.h
338
__bs_nonsingle(rr,8,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
341
#define bus_space_read_region_stream_2(t, h, o, a, c) \
sys/powerpc/include/bus.h
342
__bs_nonsingle(rr,s_2,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
343
#define bus_space_read_region_stream_4(t, h, o, a, c) \
sys/powerpc/include/bus.h
344
__bs_nonsingle(rr,s_4,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
345
#define bus_space_read_region_stream_8(t, h, o, a, c) \
sys/powerpc/include/bus.h
346
__bs_nonsingle(rr,s_8,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
364
#define bus_space_write_multi_1(t, h, o, a, c) \
sys/powerpc/include/bus.h
365
__bs_nonsingle(wm,1,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
366
#define bus_space_write_multi_2(t, h, o, a, c) \
sys/powerpc/include/bus.h
367
__bs_nonsingle(wm,2,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
368
#define bus_space_write_multi_4(t, h, o, a, c) \
sys/powerpc/include/bus.h
369
__bs_nonsingle(wm,4,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
370
#define bus_space_write_multi_8(t, h, o, a, c) \
sys/powerpc/include/bus.h
371
__bs_nonsingle(wm,8,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
374
#define bus_space_write_multi_stream_2(t, h, o, a, c) \
sys/powerpc/include/bus.h
375
__bs_nonsingle(wm,s_2,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
376
#define bus_space_write_multi_stream_4(t, h, o, a, c) \
sys/powerpc/include/bus.h
377
__bs_nonsingle(wm,s_4,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
378
#define bus_space_write_multi_stream_8(t, h, o, a, c) \
sys/powerpc/include/bus.h
379
__bs_nonsingle(wm,s_8,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
384
#define bus_space_write_region_1(t, h, o, a, c) \
sys/powerpc/include/bus.h
385
__bs_nonsingle(wr,1,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
386
#define bus_space_write_region_2(t, h, o, a, c) \
sys/powerpc/include/bus.h
387
__bs_nonsingle(wr,2,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
388
#define bus_space_write_region_4(t, h, o, a, c) \
sys/powerpc/include/bus.h
389
__bs_nonsingle(wr,4,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
390
#define bus_space_write_region_8(t, h, o, a, c) \
sys/powerpc/include/bus.h
391
__bs_nonsingle(wr,8,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
394
#define bus_space_write_region_stream_2(t, h, o, a, c) \
sys/powerpc/include/bus.h
395
__bs_nonsingle(wr,s_2,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
396
#define bus_space_write_region_stream_4(t, h, o, a, c) \
sys/powerpc/include/bus.h
397
__bs_nonsingle(wr,s_4,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
398
#define bus_space_write_region_stream_8(t, h, o, a, c) \
sys/powerpc/include/bus.h
399
__bs_nonsingle(wr,s_8,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
404
#define bus_space_set_multi_1(t, h, o, v, c) \
sys/powerpc/include/bus.h
405
__bs_set(sm,1,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
406
#define bus_space_set_multi_2(t, h, o, v, c) \
sys/powerpc/include/bus.h
407
__bs_set(sm,2,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
408
#define bus_space_set_multi_4(t, h, o, v, c) \
sys/powerpc/include/bus.h
409
__bs_set(sm,4,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
410
#define bus_space_set_multi_8(t, h, o, v, c) \
sys/powerpc/include/bus.h
411
__bs_set(sm,8,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
414
#define bus_space_set_multi_stream_2(t, h, o, v, c) \
sys/powerpc/include/bus.h
415
__bs_set(sm,s_2,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
416
#define bus_space_set_multi_stream_4(t, h, o, v, c) \
sys/powerpc/include/bus.h
417
__bs_set(sm,s_4,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
418
#define bus_space_set_multi_stream_8(t, h, o, v, c) \
sys/powerpc/include/bus.h
419
__bs_set(sm,s_8,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
424
#define bus_space_set_region_1(t, h, o, v, c) \
sys/powerpc/include/bus.h
425
__bs_set(sr,1,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
426
#define bus_space_set_region_2(t, h, o, v, c) \
sys/powerpc/include/bus.h
427
__bs_set(sr,2,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
428
#define bus_space_set_region_4(t, h, o, v, c) \
sys/powerpc/include/bus.h
429
__bs_set(sr,4,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
430
#define bus_space_set_region_8(t, h, o, v, c) \
sys/powerpc/include/bus.h
431
__bs_set(sr,8,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
434
#define bus_space_set_region_stream_2(t, h, o, v, c) \
sys/powerpc/include/bus.h
435
__bs_set(sr,s_2,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
436
#define bus_space_set_region_stream_4(t, h, o, v, c) \
sys/powerpc/include/bus.h
437
__bs_set(sr,s_4,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
438
#define bus_space_set_region_stream_8(t, h, o, v, c) \
sys/powerpc/include/bus.h
439
__bs_set(sr,s_8,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
445
#define bus_space_copy_region_1(t, h1, o1, h2, o2, c) \
sys/powerpc/include/bus.h
446
__bs_copy(1, t, h1, o1, h2, o2, c)
sys/powerpc/include/bus.h
447
#define bus_space_copy_region_2(t, h1, o1, h2, o2, c) \
sys/powerpc/include/bus.h
448
__bs_copy(2, t, h1, o1, h2, o2, c)
sys/powerpc/include/bus.h
449
#define bus_space_copy_region_4(t, h1, o1, h2, o2, c) \
sys/powerpc/include/bus.h
450
__bs_copy(4, t, h1, o1, h2, o2, c)
sys/powerpc/include/bus.h
451
#define bus_space_copy_region_8(t, h1, o1, h2, o2, c) \
sys/powerpc/include/bus.h
452
__bs_copy(8, t, h1, o1, h2, o2, c)
sys/powerpc/include/bus.h
455
#define bus_space_copy_region_stream_2(t, h1, o1, h2, o2, c) \
sys/powerpc/include/bus.h
456
__bs_copy(s_2, t, h1, o1, h2, o2, c)
sys/powerpc/include/bus.h
457
#define bus_space_copy_region_stream_4(t, h1, o1, h2, o2, c) \
sys/powerpc/include/bus.h
458
__bs_copy(s_4, t, h1, o1, h2, o2, c)
sys/powerpc/include/bus.h
459
#define bus_space_copy_region_stream_8(t, h1, o1, h2, o2, c) \
sys/powerpc/include/bus.h
460
__bs_copy(s_8, t, h1, o1, h2, o2, c)
sys/powerpc/include/counter.h
140
counter_u64_zero_inline(counter_u64_t c)
sys/powerpc/include/counter.h
144
smp_no_rendezvous_barrier, c);
sys/powerpc/include/counter.h
148
#define counter_u64_add_protected(c, inc) do { \
sys/powerpc/include/counter.h
150
*(uint64_t *)zpcpu_get(c) += (inc); \
sys/powerpc/include/counter.h
154
counter_u64_add(counter_u64_t c, int64_t inc)
sys/powerpc/include/counter.h
158
counter_u64_add_protected(c, inc);
sys/powerpc/include/counter.h
74
counter_u64_zero_inline(counter_u64_t c)
sys/powerpc/include/counter.h
78
smp_no_rendezvous_barrier, c);
sys/powerpc/include/counter.h
82
#define counter_u64_add_protected(c, i) counter_u64_add(c, i)
sys/powerpc/include/counter.h
85
counter_u64_add(counter_u64_t c, int64_t inc)
sys/powerpc/include/counter.h
97
: "r" ((char *)c - (char *)&__pcpu[0]), "r" (inc)
sys/powerpc/include/in_cksum.h
45
u_short in_pseudo(u_int sum, u_int b, u_int c);
sys/powerpc/include/pio.h
181
__outsb(volatile u_int8_t *a, const u_int8_t *s, size_t c)
sys/powerpc/include/pio.h
183
while (c--)
sys/powerpc/include/pio.h
189
__outsw(volatile u_int16_t *a, const u_int16_t *s, size_t c)
sys/powerpc/include/pio.h
191
while (c--)
sys/powerpc/include/pio.h
197
__outsl(volatile u_int32_t *a, const u_int32_t *s, size_t c)
sys/powerpc/include/pio.h
199
while (c--)
sys/powerpc/include/pio.h
205
__outsll(volatile u_int64_t *a, const u_int64_t *s, size_t c)
sys/powerpc/include/pio.h
207
while (c--)
sys/powerpc/include/pio.h
213
__outswrb(volatile u_int16_t *a, const u_int16_t *s, size_t c)
sys/powerpc/include/pio.h
215
while (c--)
sys/powerpc/include/pio.h
221
__outslrb(volatile u_int32_t *a, const u_int32_t *s, size_t c)
sys/powerpc/include/pio.h
223
while (c--)
sys/powerpc/include/pio.h
229
__insb(volatile u_int8_t *a, u_int8_t *d, size_t c)
sys/powerpc/include/pio.h
231
while (c--)
sys/powerpc/include/pio.h
237
__insw(volatile u_int16_t *a, u_int16_t *d, size_t c)
sys/powerpc/include/pio.h
239
while (c--)
sys/powerpc/include/pio.h
245
__insl(volatile u_int32_t *a, u_int32_t *d, size_t c)
sys/powerpc/include/pio.h
247
while (c--)
sys/powerpc/include/pio.h
253
__insll(volatile u_int64_t *a, u_int64_t *d, size_t c)
sys/powerpc/include/pio.h
255
while (c--)
sys/powerpc/include/pio.h
261
__inswrb(volatile u_int16_t *a, u_int16_t *d, size_t c)
sys/powerpc/include/pio.h
263
while (c--)
sys/powerpc/include/pio.h
269
__inslrb(volatile u_int32_t *a, u_int32_t *d, size_t c)
sys/powerpc/include/pio.h
271
while (c--)
sys/powerpc/include/pio.h
276
#define outsb(a,s,c) (__outsb((volatile u_int8_t *)(a), s, c))
sys/powerpc/include/pio.h
277
#define outs8(a,s,c) outsb(a,s,c)
sys/powerpc/include/pio.h
278
#define outsw(a,s,c) (__outsw((volatile u_int16_t *)(a), s, c))
sys/powerpc/include/pio.h
279
#define outs16(a,s,c) outsw(a,s,c)
sys/powerpc/include/pio.h
280
#define outsl(a,s,c) (__outsl((volatile u_int32_t *)(a), s, c))
sys/powerpc/include/pio.h
281
#define outs32(a,s,c) outsl(a,s,c)
sys/powerpc/include/pio.h
282
#define outsll(a,s,c) (__outsll((volatile u_int64_t *)(a), s, c))
sys/powerpc/include/pio.h
283
#define outs64(a,s,c) outsll(a,s,c)
sys/powerpc/include/pio.h
284
#define insb(a,d,c) (__insb((volatile u_int8_t *)(a), d, c))
sys/powerpc/include/pio.h
285
#define ins8(a,d,c) insb(a,d,c)
sys/powerpc/include/pio.h
286
#define insw(a,d,c) (__insw((volatile u_int16_t *)(a), d, c))
sys/powerpc/include/pio.h
287
#define ins16(a,d,c) insw(a,d,c)
sys/powerpc/include/pio.h
288
#define insl(a,d,c) (__insl((volatile u_int32_t *)(a), d, c))
sys/powerpc/include/pio.h
289
#define ins32(a,d,c) insl(a,d,c)
sys/powerpc/include/pio.h
290
#define insll(a,d,c) (__insll((volatile u_int64_t *)(a), d, c))
sys/powerpc/include/pio.h
291
#define ins64(a,d,c) insll(a,d,c)
sys/powerpc/include/pio.h
293
#define outs8rb(a,s,c) outsb(a,s,c)
sys/powerpc/include/pio.h
294
#define outswrb(a,s,c) (__outswrb((volatile u_int16_t *)(a), s, c))
sys/powerpc/include/pio.h
295
#define outs16rb(a,s,c) outswrb(a,s,c)
sys/powerpc/include/pio.h
296
#define outslrb(a,s,c) (__outslrb((volatile u_int32_t *)(a), s, c))
sys/powerpc/include/pio.h
297
#define outs32rb(a,s,c) outslrb(a,s,c)
sys/powerpc/include/pio.h
298
#define ins8rb(a,d,c) insb(a,d,c)
sys/powerpc/include/pio.h
299
#define inswrb(a,d,c) (__inswrb((volatile u_int16_t *)(a), d, c))
sys/powerpc/include/pio.h
300
#define ins16rb(a,d,c) inswrb(a,d,c)
sys/powerpc/include/pio.h
301
#define inslrb(a,d,c) (__inslrb((volatile u_int32_t *)(a), d, c))
sys/powerpc/include/pio.h
302
#define ins32rb(a,d,c) inslrb(a,d,c)
sys/powerpc/mambo/mambo_console.c
115
int c;
sys/powerpc/mambo/mambo_console.c
118
while ((c = mambo_cngetc(NULL)) != -1)
sys/powerpc/mambo/mambo_console.c
119
ttydisc_rint(tp, c, 0);
sys/powerpc/mambo/mambo_console.c
178
mambo_cnputc(struct consdev *cp, int c)
sys/powerpc/mambo/mambo_console.c
182
cbuf = c;
sys/powerpc/ofw/ofw_syscons.c
1050
ofwfb_bcopy(const void *s, void *d, size_t c)
sys/powerpc/ofw/ofw_syscons.c
1052
bcopy(s, d, c);
sys/powerpc/ofw/ofw_syscons.c
1056
ofwfb_bzero(void *d, size_t c)
sys/powerpc/ofw/ofw_syscons.c
1058
bzero(d, c);
sys/powerpc/ofw/ofw_syscons.c
485
u_char *data, int c, int count)
sys/powerpc/ofw/ofw_syscons.c
493
u_char *data, int c, int count)
sys/powerpc/ofw/ofw_syscons.c
804
ofwfb_putc8(video_adapter_t *adp, vm_offset_t off, uint8_t c, uint8_t a)
sys/powerpc/ofw/ofw_syscons.c
814
uint8_t c[4];
sys/powerpc/ofw/ofw_syscons.c
820
p = sc->sc_font + c*sc->sc_font_height;
sys/powerpc/ofw/ofw_syscons.c
841
if (fline & 0x80) ch1.c[0] = fg;
sys/powerpc/ofw/ofw_syscons.c
842
if (fline & 0x40) ch1.c[1] = fg;
sys/powerpc/ofw/ofw_syscons.c
843
if (fline & 0x20) ch1.c[2] = fg;
sys/powerpc/ofw/ofw_syscons.c
844
if (fline & 0x10) ch1.c[3] = fg;
sys/powerpc/ofw/ofw_syscons.c
846
if (fline & 0x08) ch2.c[0] = fg;
sys/powerpc/ofw/ofw_syscons.c
847
if (fline & 0x04) ch2.c[1] = fg;
sys/powerpc/ofw/ofw_syscons.c
848
if (fline & 0x02) ch2.c[2] = fg;
sys/powerpc/ofw/ofw_syscons.c
849
if (fline & 0x01) ch2.c[3] = fg;
sys/powerpc/ofw/ofw_syscons.c
860
ofwfb_putc32(video_adapter_t *adp, vm_offset_t off, uint8_t c, uint8_t a)
sys/powerpc/ofw/ofw_syscons.c
872
p = sc->sc_font + c*sc->sc_font_height;
sys/powerpc/ofw/ofw_syscons.c
894
ofwfb_putc(video_adapter_t *adp, vm_offset_t off, uint8_t c, uint8_t a)
sys/powerpc/ofw/ofw_syscons.c
900
return ((*sc->sc_putc)(adp, off, c, a));
sys/powerpc/powernv/opal_console.c
456
unsigned char c;
sys/powerpc/powernv/opal_console.c
459
retval = uart_opal_get(sc, &c, 1);
sys/powerpc/powernv/opal_console.c
463
kdb_alt_break(c, &sc->alt_break_state);
sys/powerpc/powernv/opal_console.c
466
return (c);
sys/powerpc/powernv/opal_console.c
470
uart_opal_cnputc(struct consdev *cp, int c)
sys/powerpc/powernv/opal_console.c
472
unsigned char ch = c;
sys/powerpc/powernv/opal_console.c
529
int c;
sys/powerpc/powernv/opal_console.c
532
while ((c = uart_opal_getc(sc)) > 0)
sys/powerpc/powernv/opal_console.c
533
ttydisc_rint(tp, c, 0);
sys/powerpc/powernv/opal_dbg.c
106
bufp = vtophys(&c);
sys/powerpc/powernv/opal_dbg.c
109
bufp = (uint64_t)&c;
sys/powerpc/powernv/opal_dbg.c
118
return (c);
sys/powerpc/powernv/opal_dbg.c
122
uart_opal_dbg_putc(int c)
sys/powerpc/powernv/opal_dbg.c
129
ch = (unsigned char)c;
sys/powerpc/powernv/opal_dbg.c
98
char c;
sys/powerpc/powerpc/db_trace.c
141
register char c;
sys/powerpc/powerpc/db_trace.c
143
while ((c = *cp++) != 0) {
sys/powerpc/powerpc/db_trace.c
144
if (c == 't')
sys/powerpc/powerpc/db_trace.c
146
if (c == 'u')
sys/powerpc/powerpc/db_trace.c
148
if (c == 'f')
sys/powerpc/powerpc/minidump_machdep.c
101
int error, i, c;
sys/powerpc/powerpc/minidump_machdep.c
158
c = cncheckc();
sys/powerpc/powerpc/minidump_machdep.c
159
if (c == 0x03)
sys/powerpc/powerpc/minidump_machdep.c
161
if (c != -1)
sys/powerpc/pseries/phyp_console.c
399
unsigned char c;
sys/powerpc/pseries/phyp_console.c
402
retval = uart_phyp_get(console_sc, &c, 1);
sys/powerpc/pseries/phyp_console.c
406
kdb_alt_break(c, &alt_break_state);
sys/powerpc/pseries/phyp_console.c
409
return (c);
sys/powerpc/pseries/phyp_console.c
413
uart_phyp_cnputc(struct consdev *cp, int c)
sys/powerpc/pseries/phyp_console.c
415
unsigned char ch = c;
sys/powerpc/pseries/phyp_console.c
447
unsigned char c;
sys/powerpc/pseries/phyp_console.c
451
while ((len = uart_phyp_get(sc, &c, 1)) > 0)
sys/powerpc/pseries/phyp_console.c
452
ttydisc_rint(tp, c, 0);
sys/powerpc/pseries/phyp_dbg.c
106
int c, err, next;
sys/powerpc/pseries/phyp_dbg.c
119
c = dbgport.inbuf.str[0];
sys/powerpc/pseries/phyp_dbg.c
123
return (c);
sys/powerpc/pseries/phyp_dbg.c
131
if (c == '\r' && dbgport.inbuf.str[next] == '\0') {
sys/powerpc/pseries/phyp_dbg.c
140
return (c);
sys/powerpc/pseries/phyp_dbg.c
144
uart_phyp_dbg_putc(int c)
sys/powerpc/pseries/phyp_dbg.c
153
cbuf.bytes[0] = (unsigned char)c;
sys/riscv/include/_stdint.h
36
#define INT8_C(c) (c)
sys/riscv/include/_stdint.h
37
#define INT16_C(c) (c)
sys/riscv/include/_stdint.h
38
#define INT32_C(c) (c)
sys/riscv/include/_stdint.h
39
#define INT64_C(c) (c ## L)
sys/riscv/include/_stdint.h
41
#define UINT8_C(c) (c)
sys/riscv/include/_stdint.h
42
#define UINT16_C(c) (c)
sys/riscv/include/_stdint.h
43
#define UINT32_C(c) (c ## U)
sys/riscv/include/_stdint.h
44
#define UINT64_C(c) (c ## UL)
sys/riscv/include/_stdint.h
46
#define INTMAX_C(c) INT64_C(c)
sys/riscv/include/_stdint.h
47
#define UINTMAX_C(c) UINT64_C(c)
sys/riscv/include/bus.h
266
#define __bs_nonsingle(type, sz, t, h, o, a, c) \
sys/riscv/include/bus.h
267
(*(t)->__bs_opname(type,sz))((t)->bs_cookie, h, o, a, c)
sys/riscv/include/bus.h
268
#define __bs_set(type, sz, t, h, o, v, c) \
sys/riscv/include/bus.h
269
(*(t)->__bs_opname(type,sz))((t)->bs_cookie, h, o, v, c)
sys/riscv/include/bus.h
271
(*(t)->__bs_opname(c,sz))((t)->bs_cookie, h1, o1, h2, o2, cnt)
sys/riscv/include/bus.h
278
#define __bs_nonsingle_s(type, sz, t, h, o, a, c) \
sys/riscv/include/bus.h
279
(*(t)->__bs_opname_s(type,sz))((t)->bs_cookie, h, o, a, c)
sys/riscv/include/bus.h
284
#define bus_space_map(t, a, s, c, hp) \
sys/riscv/include/bus.h
285
(*(t)->bs_map)((t)->bs_cookie, (a), (s), (c), (hp))
sys/riscv/include/bus.h
294
#define bus_space_alloc(t, rs, re, s, a, b, c, ap, hp) \
sys/riscv/include/bus.h
296
(c), (ap), (hp))
sys/riscv/include/bus.h
322
#define bus_space_read_multi_1(t, h, o, a, c) \
sys/riscv/include/bus.h
323
__bs_nonsingle(rm,1,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
324
#define bus_space_read_multi_2(t, h, o, a, c) \
sys/riscv/include/bus.h
325
__bs_nonsingle(rm,2,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
326
#define bus_space_read_multi_4(t, h, o, a, c) \
sys/riscv/include/bus.h
327
__bs_nonsingle(rm,4,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
328
#define bus_space_read_multi_8(t, h, o, a, c) \
sys/riscv/include/bus.h
329
__bs_nonsingle(rm,8,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
331
#define bus_space_read_multi_stream_1(t, h, o, a, c) \
sys/riscv/include/bus.h
332
__bs_nonsingle_s(rm,1,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
333
#define bus_space_read_multi_stream_2(t, h, o, a, c) \
sys/riscv/include/bus.h
334
__bs_nonsingle_s(rm,2,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
335
#define bus_space_read_multi_stream_4(t, h, o, a, c) \
sys/riscv/include/bus.h
336
__bs_nonsingle_s(rm,4,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
337
#define bus_space_read_multi_stream_8(t, h, o, a, c) \
sys/riscv/include/bus.h
338
__bs_nonsingle_s(rm,8,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
343
#define bus_space_read_region_1(t, h, o, a, c) \
sys/riscv/include/bus.h
344
__bs_nonsingle(rr,1,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
345
#define bus_space_read_region_2(t, h, o, a, c) \
sys/riscv/include/bus.h
346
__bs_nonsingle(rr,2,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
347
#define bus_space_read_region_4(t, h, o, a, c) \
sys/riscv/include/bus.h
348
__bs_nonsingle(rr,4,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
349
#define bus_space_read_region_8(t, h, o, a, c) \
sys/riscv/include/bus.h
350
__bs_nonsingle(rr,8,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
352
#define bus_space_read_region_stream_1(t, h, o, a, c) \
sys/riscv/include/bus.h
353
__bs_nonsingle_s(rr,1,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
354
#define bus_space_read_region_stream_2(t, h, o, a, c) \
sys/riscv/include/bus.h
355
__bs_nonsingle_s(rr,2,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
356
#define bus_space_read_region_stream_4(t, h, o, a, c) \
sys/riscv/include/bus.h
357
__bs_nonsingle_s(rr,4,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
358
#define bus_space_read_region_stream_8(t, h, o, a, c) \
sys/riscv/include/bus.h
359
__bs_nonsingle_s(rr,8,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
377
#define bus_space_write_multi_1(t, h, o, a, c) \
sys/riscv/include/bus.h
378
__bs_nonsingle(wm,1,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
379
#define bus_space_write_multi_2(t, h, o, a, c) \
sys/riscv/include/bus.h
380
__bs_nonsingle(wm,2,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
381
#define bus_space_write_multi_4(t, h, o, a, c) \
sys/riscv/include/bus.h
382
__bs_nonsingle(wm,4,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
383
#define bus_space_write_multi_8(t, h, o, a, c) \
sys/riscv/include/bus.h
384
__bs_nonsingle(wm,8,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
386
#define bus_space_write_multi_stream_1(t, h, o, a, c) \
sys/riscv/include/bus.h
387
__bs_nonsingle_s(wm,1,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
388
#define bus_space_write_multi_stream_2(t, h, o, a, c) \
sys/riscv/include/bus.h
389
__bs_nonsingle_s(wm,2,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
390
#define bus_space_write_multi_stream_4(t, h, o, a, c) \
sys/riscv/include/bus.h
391
__bs_nonsingle_s(wm,4,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
392
#define bus_space_write_multi_stream_8(t, h, o, a, c) \
sys/riscv/include/bus.h
393
__bs_nonsingle_s(wm,8,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
398
#define bus_space_write_region_1(t, h, o, a, c) \
sys/riscv/include/bus.h
399
__bs_nonsingle(wr,1,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
400
#define bus_space_write_region_2(t, h, o, a, c) \
sys/riscv/include/bus.h
401
__bs_nonsingle(wr,2,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
402
#define bus_space_write_region_4(t, h, o, a, c) \
sys/riscv/include/bus.h
403
__bs_nonsingle(wr,4,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
404
#define bus_space_write_region_8(t, h, o, a, c) \
sys/riscv/include/bus.h
405
__bs_nonsingle(wr,8,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
407
#define bus_space_write_region_stream_1(t, h, o, a, c) \
sys/riscv/include/bus.h
408
__bs_nonsingle_s(wr,1,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
409
#define bus_space_write_region_stream_2(t, h, o, a, c) \
sys/riscv/include/bus.h
410
__bs_nonsingle_s(wr,2,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
411
#define bus_space_write_region_stream_4(t, h, o, a, c) \
sys/riscv/include/bus.h
412
__bs_nonsingle_s(wr,4,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
413
#define bus_space_write_region_stream_8(t, h, o, a, c) \
sys/riscv/include/bus.h
414
__bs_nonsingle_s(wr,8,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
419
#define bus_space_set_multi_1(t, h, o, v, c) \
sys/riscv/include/bus.h
420
__bs_set(sm,1,(t),(h),(o),(v),(c))
sys/riscv/include/bus.h
421
#define bus_space_set_multi_2(t, h, o, v, c) \
sys/riscv/include/bus.h
422
__bs_set(sm,2,(t),(h),(o),(v),(c))
sys/riscv/include/bus.h
423
#define bus_space_set_multi_4(t, h, o, v, c) \
sys/riscv/include/bus.h
424
__bs_set(sm,4,(t),(h),(o),(v),(c))
sys/riscv/include/bus.h
425
#define bus_space_set_multi_8(t, h, o, v, c) \
sys/riscv/include/bus.h
426
__bs_set(sm,8,(t),(h),(o),(v),(c))
sys/riscv/include/bus.h
431
#define bus_space_set_region_1(t, h, o, v, c) \
sys/riscv/include/bus.h
432
__bs_set(sr,1,(t),(h),(o),(v),(c))
sys/riscv/include/bus.h
433
#define bus_space_set_region_2(t, h, o, v, c) \
sys/riscv/include/bus.h
434
__bs_set(sr,2,(t),(h),(o),(v),(c))
sys/riscv/include/bus.h
435
#define bus_space_set_region_4(t, h, o, v, c) \
sys/riscv/include/bus.h
436
__bs_set(sr,4,(t),(h),(o),(v),(c))
sys/riscv/include/bus.h
437
#define bus_space_set_region_8(t, h, o, v, c) \
sys/riscv/include/bus.h
438
__bs_set(sr,8,(t),(h),(o),(v),(c))
sys/riscv/include/bus.h
443
#define bus_space_copy_region_1(t, h1, o1, h2, o2, c) \
sys/riscv/include/bus.h
444
__bs_copy(1, t, h1, o1, h2, o2, c)
sys/riscv/include/bus.h
445
#define bus_space_copy_region_2(t, h1, o1, h2, o2, c) \
sys/riscv/include/bus.h
446
__bs_copy(2, t, h1, o1, h2, o2, c)
sys/riscv/include/bus.h
447
#define bus_space_copy_region_4(t, h1, o1, h2, o2, c) \
sys/riscv/include/bus.h
448
__bs_copy(4, t, h1, o1, h2, o2, c)
sys/riscv/include/bus.h
449
#define bus_space_copy_region_8(t, h1, o1, h2, o2, c) \
sys/riscv/include/bus.h
450
__bs_copy(8, t, h1, o1, h2, o2, c)
sys/riscv/include/counter.h
67
counter_u64_zero_inline(counter_u64_t c)
sys/riscv/include/counter.h
71
smp_no_rendezvous_barrier, c);
sys/riscv/include/counter.h
75
#define counter_u64_add_protected(c, inc) counter_u64_add(c, inc)
sys/riscv/include/counter.h
78
counter_u64_add(counter_u64_t c, int64_t inc)
sys/riscv/include/counter.h
81
atomic_add_64((uint64_t *)zpcpu_get(c), inc);
sys/riscv/include/elf.h
76
#define HWCAP_ISA_BIT(c) (1 << ((c) - 'a'))
sys/riscv/include/in_cksum.h
45
u_short in_pseudo(u_int sum, u_int b, u_int c);
sys/riscv/riscv/minidump_machdep.c
143
c = cncheckc();
sys/riscv/riscv/minidump_machdep.c
144
if (c == 0x03)
sys/riscv/riscv/minidump_machdep.c
146
if (c != -1)
sys/riscv/riscv/minidump_machdep.c
90
int error, c;
sys/riscv/riscv/riscv_console.c
107
riscv_putc(int c)
sys/riscv/riscv/riscv_console.c
110
sbi_console_putchar(c);
sys/riscv/riscv/riscv_console.c
158
int c;
sys/riscv/riscv/riscv_console.c
161
while ((c = riscv_cngetc(NULL)) != -1)
sys/riscv/riscv/riscv_console.c
162
ttydisc_rint(tp, c, 0);
sys/riscv/riscv/riscv_console.c
218
riscv_cnputc(struct consdev *cp, int c)
sys/riscv/riscv/riscv_console.c
221
riscv_putc(c);
sys/riscv/sifive/sifive_uart.c
124
sfuart_putc(struct uart_bas *bas, int c)
sys/riscv/sifive/sifive_uart.c
131
uart_setreg(bas, SFUART_TXDATA, c);
sys/riscv/sifive/sifive_uart.c
151
int c;
sys/riscv/sifive/sifive_uart.c
155
while (((c = uart_getreg(bas, SFUART_RXDATA)) &
sys/riscv/sifive/sifive_uart.c
164
return (c & 0xff);
sys/riscv/sifive/sifive_uart.c
280
#define SIGCHG(c, i, s, d) \
sys/riscv/sifive/sifive_uart.c
282
if (c) \
sys/rpc/auth.h
156
char c[8];
sys/rpc/auth.h
267
#define authsys_create(c,i1,i2,i3,ip) authunix_create((c),(i1),(i2),(i3),(ip))
sys/rpc/rpcm_subs.h
103
(a) = (c)cp2; \
sys/rpc/rpcm_subs.h
80
#define rpcm_build(a,c,s) \
sys/rpc/rpcm_subs.h
90
(a) = (c)(bpos); \
sys/rpc/rpcm_subs.h
94
#define rpcm_dissect(a, c, s) \
sys/rpc/rpcm_subs.h
97
(a) = (c)(dpos); \
sys/security/audit/audit_bsm.c
1872
char c = *(char *)rec;
sys/security/audit/audit_bsm.c
1881
if ((c != AUT_HEADER32) && (c != AUT_HEADER32_EX) &&
sys/security/audit/audit_bsm.c
1882
(c != AUT_HEADER64) && (c != AUT_HEADER64_EX))
sys/security/mac_veriexec_parser/mac_veriexec_parser.c
78
static unsigned char hexchar_to_byte(unsigned char c);
sys/security/mac_veriexec_parser/mac_veriexec_parser.c
93
hexchar_to_byte(unsigned char c)
sys/security/mac_veriexec_parser/mac_veriexec_parser.c
96
if (isdigit(c))
sys/security/mac_veriexec_parser/mac_veriexec_parser.c
97
return (c - '0');
sys/security/mac_veriexec_parser/mac_veriexec_parser.c
99
return (isupper(c) ? c - 'A' + 10 : c - 'a' + 10);
sys/sys/_blockcount.h
41
#define _BLOCKCOUNT_COUNT(c) ((c) & ~_BLOCKCOUNT_WAITERS_FLAG)
sys/sys/_blockcount.h
42
#define _BLOCKCOUNT_WAITERS(c) (((c) & _BLOCKCOUNT_WAITERS_FLAG) != 0)
sys/sys/_task.h
67
struct callout c;
sys/sys/asan.h
66
#define kasan_mark(p, s, l, c)
sys/sys/bitset.h
101
(c)->__bits[__i]) \
sys/sys/bitset.h
107
#define __BIT_OVERLAP(_s, p, c) __extension__ ({ \
sys/sys/bitset.h
110
if (((c)->__bits[__i] & \
sys/sys/bitset.h
117
#define __BIT_CMP(_s, p, c) __extension__ ({ \
sys/sys/bitset.h
120
if (((c)->__bits[__i] != \
sys/sys/bitset.h
329
#define BIT_CMP(_s, p, c) __BIT_CMP(_s, p, c)
sys/sys/bitset.h
348
#define BIT_OVERLAP(_s, p, c) __BIT_OVERLAP(_s, p, c)
sys/sys/bitset.h
353
#define BIT_SUBSET(_s, p, c) __BIT_SUBSET(_s, p, c)
sys/sys/bitset.h
96
#define __BIT_SUBSET(_s, p, c) __extension__ ({ \
sys/sys/bitset.h
99
if (((c)->__bits[__i] & \
sys/sys/bus.h
1030
#define bus_read_multi_1(r, o, d, c) \
sys/sys/bus.h
1031
bus_space_read_multi_1((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1032
#define bus_read_region_1(r, o, d, c) \
sys/sys/bus.h
1033
bus_space_read_region_1((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1034
#define bus_set_multi_1(r, o, v, c) \
sys/sys/bus.h
1035
bus_space_set_multi_1((r)->r_bustag, (r)->r_bushandle, (o), (v), (c))
sys/sys/bus.h
1036
#define bus_set_region_1(r, o, v, c) \
sys/sys/bus.h
1037
bus_space_set_region_1((r)->r_bustag, (r)->r_bushandle, (o), (v), (c))
sys/sys/bus.h
1040
#define bus_write_multi_1(r, o, d, c) \
sys/sys/bus.h
1041
bus_space_write_multi_1((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1042
#define bus_write_region_1(r, o, d, c) \
sys/sys/bus.h
1043
bus_space_write_region_1((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1046
#define bus_read_multi_stream_1(r, o, d, c) \
sys/sys/bus.h
1047
bus_space_read_multi_stream_1((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1048
#define bus_read_region_stream_1(r, o, d, c) \
sys/sys/bus.h
1049
bus_space_read_region_stream_1((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1050
#define bus_set_multi_stream_1(r, o, v, c) \
sys/sys/bus.h
1051
bus_space_set_multi_stream_1((r)->r_bustag, (r)->r_bushandle, (o), (v), (c))
sys/sys/bus.h
1052
#define bus_set_region_stream_1(r, o, v, c) \
sys/sys/bus.h
1053
bus_space_set_region_stream_1((r)->r_bustag, (r)->r_bushandle, (o), (v), (c))
sys/sys/bus.h
1056
#define bus_write_multi_stream_1(r, o, d, c) \
sys/sys/bus.h
1057
bus_space_write_multi_stream_1((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1058
#define bus_write_region_stream_1(r, o, d, c) \
sys/sys/bus.h
1059
bus_space_write_region_stream_1((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1066
#define bus_read_multi_2(r, o, d, c) \
sys/sys/bus.h
1067
bus_space_read_multi_2((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1068
#define bus_read_region_2(r, o, d, c) \
sys/sys/bus.h
1069
bus_space_read_region_2((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1070
#define bus_set_multi_2(r, o, v, c) \
sys/sys/bus.h
1071
bus_space_set_multi_2((r)->r_bustag, (r)->r_bushandle, (o), (v), (c))
sys/sys/bus.h
1072
#define bus_set_region_2(r, o, v, c) \
sys/sys/bus.h
1073
bus_space_set_region_2((r)->r_bustag, (r)->r_bushandle, (o), (v), (c))
sys/sys/bus.h
1076
#define bus_write_multi_2(r, o, d, c) \
sys/sys/bus.h
1077
bus_space_write_multi_2((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1078
#define bus_write_region_2(r, o, d, c) \
sys/sys/bus.h
1079
bus_space_write_region_2((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1082
#define bus_read_multi_stream_2(r, o, d, c) \
sys/sys/bus.h
1083
bus_space_read_multi_stream_2((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1084
#define bus_read_region_stream_2(r, o, d, c) \
sys/sys/bus.h
1085
bus_space_read_region_stream_2((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1086
#define bus_set_multi_stream_2(r, o, v, c) \
sys/sys/bus.h
1087
bus_space_set_multi_stream_2((r)->r_bustag, (r)->r_bushandle, (o), (v), (c))
sys/sys/bus.h
1088
#define bus_set_region_stream_2(r, o, v, c) \
sys/sys/bus.h
1089
bus_space_set_region_stream_2((r)->r_bustag, (r)->r_bushandle, (o), (v), (c))
sys/sys/bus.h
1092
#define bus_write_multi_stream_2(r, o, d, c) \
sys/sys/bus.h
1093
bus_space_write_multi_stream_2((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1094
#define bus_write_region_stream_2(r, o, d, c) \
sys/sys/bus.h
1095
bus_space_write_region_stream_2((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1102
#define bus_read_multi_4(r, o, d, c) \
sys/sys/bus.h
1103
bus_space_read_multi_4((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1104
#define bus_read_region_4(r, o, d, c) \
sys/sys/bus.h
1105
bus_space_read_region_4((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1106
#define bus_set_multi_4(r, o, v, c) \
sys/sys/bus.h
1107
bus_space_set_multi_4((r)->r_bustag, (r)->r_bushandle, (o), (v), (c))
sys/sys/bus.h
1108
#define bus_set_region_4(r, o, v, c) \
sys/sys/bus.h
1109
bus_space_set_region_4((r)->r_bustag, (r)->r_bushandle, (o), (v), (c))
sys/sys/bus.h
1112
#define bus_write_multi_4(r, o, d, c) \
sys/sys/bus.h
1113
bus_space_write_multi_4((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1114
#define bus_write_region_4(r, o, d, c) \
sys/sys/bus.h
1115
bus_space_write_region_4((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1118
#define bus_read_multi_stream_4(r, o, d, c) \
sys/sys/bus.h
1119
bus_space_read_multi_stream_4((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1120
#define bus_read_region_stream_4(r, o, d, c) \
sys/sys/bus.h
1121
bus_space_read_region_stream_4((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1122
#define bus_set_multi_stream_4(r, o, v, c) \
sys/sys/bus.h
1123
bus_space_set_multi_stream_4((r)->r_bustag, (r)->r_bushandle, (o), (v), (c))
sys/sys/bus.h
1124
#define bus_set_region_stream_4(r, o, v, c) \
sys/sys/bus.h
1125
bus_space_set_region_stream_4((r)->r_bustag, (r)->r_bushandle, (o), (v), (c))
sys/sys/bus.h
1128
#define bus_write_multi_stream_4(r, o, d, c) \
sys/sys/bus.h
1129
bus_space_write_multi_stream_4((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1130
#define bus_write_region_stream_4(r, o, d, c) \
sys/sys/bus.h
1131
bus_space_write_region_stream_4((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1138
#define bus_read_multi_8(r, o, d, c) \
sys/sys/bus.h
1139
bus_space_read_multi_8((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1140
#define bus_read_region_8(r, o, d, c) \
sys/sys/bus.h
1141
bus_space_read_region_8((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1142
#define bus_set_multi_8(r, o, v, c) \
sys/sys/bus.h
1143
bus_space_set_multi_8((r)->r_bustag, (r)->r_bushandle, (o), (v), (c))
sys/sys/bus.h
1144
#define bus_set_region_8(r, o, v, c) \
sys/sys/bus.h
1145
bus_space_set_region_8((r)->r_bustag, (r)->r_bushandle, (o), (v), (c))
sys/sys/bus.h
1148
#define bus_write_multi_8(r, o, d, c) \
sys/sys/bus.h
1149
bus_space_write_multi_8((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1150
#define bus_write_region_8(r, o, d, c) \
sys/sys/bus.h
1151
bus_space_write_region_8((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1154
#define bus_read_multi_stream_8(r, o, d, c) \
sys/sys/bus.h
1155
bus_space_read_multi_stream_8((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1156
#define bus_read_region_stream_8(r, o, d, c) \
sys/sys/bus.h
1157
bus_space_read_region_stream_8((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1158
#define bus_set_multi_stream_8(r, o, v, c) \
sys/sys/bus.h
1159
bus_space_set_multi_stream_8((r)->r_bustag, (r)->r_bushandle, (o), (v), (c))
sys/sys/bus.h
1160
#define bus_set_region_stream_8(r, o, v, c) \
sys/sys/bus.h
1161
bus_space_set_region_stream_8((r)->r_bustag, (r)->r_bushandle, (o), (v), (c))
sys/sys/bus.h
1164
#define bus_write_multi_stream_8(r, o, d, c) \
sys/sys/bus.h
1165
bus_space_write_multi_stream_8((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
1166
#define bus_write_region_stream_8(r, o, d, c) \
sys/sys/bus.h
1167
bus_space_write_region_stream_8((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/callout.h
101
#define callout_reset_on(c, to_ticks, fn, arg, cpu) \
sys/sys/callout.h
102
callout_reset_sbt_on((c), tick_sbt * (to_ticks), 0, (fn), (arg), \
sys/sys/callout.h
104
#define callout_reset(c, on_tick, fn, arg) \
sys/sys/callout.h
105
callout_reset_on((c), (on_tick), (fn), (arg), -1)
sys/sys/callout.h
106
#define callout_reset_curcpu(c, on_tick, fn, arg) \
sys/sys/callout.h
107
callout_reset_on((c), (on_tick), (fn), (arg), PCPU_GET(cpuid))
sys/sys/callout.h
108
#define callout_schedule_sbt_on(c, sbt, pr, cpu, flags) \
sys/sys/callout.h
109
callout_reset_sbt_on((c), (sbt), (pr), (c)->c_func, (c)->c_arg, \
sys/sys/callout.h
111
#define callout_schedule_sbt(c, sbt, pr, flags) \
sys/sys/callout.h
112
callout_schedule_sbt_on((c), (sbt), (pr), -1, (flags))
sys/sys/callout.h
113
#define callout_schedule_sbt_curcpu(c, sbt, pr, flags) \
sys/sys/callout.h
114
callout_schedule_sbt_on((c), (sbt), (pr), PCPU_GET(cpuid), (flags))
sys/sys/callout.h
117
#define callout_schedule_curcpu(c, on_tick) \
sys/sys/callout.h
118
callout_schedule_on((c), (on_tick), PCPU_GET(cpuid))
sys/sys/callout.h
119
#define callout_stop(c) _callout_stop_safe(c, 0)
sys/sys/callout.h
82
#define callout_active(c) ((c)->c_flags & CALLOUT_ACTIVE)
sys/sys/callout.h
83
#define callout_deactivate(c) ((c)->c_flags &= ~CALLOUT_ACTIVE)
sys/sys/callout.h
84
#define callout_drain(c) _callout_stop_safe(c, CS_DRAIN)
sys/sys/callout.h
87
#define callout_init_mtx(c, mtx, flags) \
sys/sys/callout.h
88
_callout_init_lock((c), &(mtx)->lock_object, (flags))
sys/sys/callout.h
89
#define callout_init_rm(c, rm, flags) \
sys/sys/callout.h
90
_callout_init_lock((c), &(rm)->lock_object, (flags))
sys/sys/callout.h
91
#define callout_init_rw(c, rw, flags) \
sys/sys/callout.h
92
_callout_init_lock((c), &(rw)->lock_object, (flags))
sys/sys/callout.h
93
#define callout_pending(c) ((c)->c_iflags & CALLOUT_PENDING)
sys/sys/callout.h
96
#define callout_reset_sbt(c, sbt, pr, fn, arg, flags) \
sys/sys/callout.h
97
callout_reset_sbt_on((c), (sbt), (pr), (fn), (arg), -1, (flags))
sys/sys/callout.h
98
#define callout_reset_sbt_curcpu(c, sbt, pr, fn, arg, flags) \
sys/sys/callout.h
99
callout_reset_sbt_on((c), (sbt), (pr), (fn), (arg), PCPU_GET(cpuid),\
sys/sys/counter.h
70
#define COUNTER_U64_SYSINIT(c) \
sys/sys/counter.h
71
SYSINIT(c##_counter_sysinit, SI_SUB_COUNTER, \
sys/sys/counter.h
72
SI_ORDER_ANY, counter_u64_sysinit, &c); \
sys/sys/counter.h
73
SYSUNINIT(c##_counter_sysuninit, SI_SUB_COUNTER, \
sys/sys/counter.h
74
SI_ORDER_ANY, counter_u64_sysuninit, &c)
sys/sys/counter.h
76
#define COUNTER_U64_DEFINE_EARLY(c) \
sys/sys/counter.h
77
counter_u64_t __read_mostly c = EARLY_COUNTER; \
sys/sys/counter.h
78
COUNTER_U64_SYSINIT(c)
sys/sys/cpuset.h
52
#define CPU_EQUAL(p, c) (__BIT_CMP(CPU_SETSIZE, p, c) == 0)
sys/sys/cpuset.h
55
#define CPU_SUBSET(p, c) __BIT_SUBSET(CPU_SETSIZE, p, c)
sys/sys/cpuset.h
56
#define CPU_OVERLAP(p, c) __BIT_OVERLAP(CPU_SETSIZE, p, c)
sys/sys/cpuset.h
57
#define CPU_CMP(p, c) __BIT_CMP(CPU_SETSIZE, p, c)
sys/sys/cpuset.h
93
#define CPU_EQUAL_S(_s, p, c) (__BIT_CMP((_s) * 8, p, c) == 0)
sys/sys/ctype.h
43
isspace(int c)
sys/sys/ctype.h
45
return (c == ' ' || (c >= '\t' && c <= '\r'));
sys/sys/ctype.h
49
isascii(int c)
sys/sys/ctype.h
51
return ((c & ~0x7f) == 0);
sys/sys/ctype.h
55
isupper(int c)
sys/sys/ctype.h
57
return (c >= 'A' && c <= 'Z');
sys/sys/ctype.h
61
islower(int c)
sys/sys/ctype.h
63
return (c >= 'a' && c <= 'z');
sys/sys/ctype.h
67
isalpha(int c)
sys/sys/ctype.h
69
return (isupper(c) || islower(c));
sys/sys/ctype.h
73
isdigit(int c)
sys/sys/ctype.h
75
return (c >= '0' && c <= '9');
sys/sys/ctype.h
79
isxdigit(int c)
sys/sys/ctype.h
81
return (isdigit(c) || (c >= 'A' && c <= 'F') || (c >= 'a' && c <= 'f'));
sys/sys/ctype.h
85
isprint(int c)
sys/sys/ctype.h
87
return (c >= ' ' && c <= '~');
sys/sys/ctype.h
91
toupper(int c)
sys/sys/ctype.h
93
return (c - 0x20 * ((c >= 'a') && (c <= 'z')));
sys/sys/ctype.h
97
tolower(int c)
sys/sys/ctype.h
99
return (c + 0x20 * ((c >= 'A') && (c <= 'Z')));
sys/sys/disk/mbr.h
83
#define DPCYL(c, s) ((c) + (((s) & 0xc0)<<2)) /* and those that are cylinder */
sys/sys/domainset.h
53
#define DOMAINSET_SUBSET(p, c) __BIT_SUBSET(DOMAINSET_SETSIZE, p, c)
sys/sys/domainset.h
54
#define DOMAINSET_OVERLAP(p, c) __BIT_OVERLAP(DOMAINSET_SETSIZE, p, c)
sys/sys/domainset.h
55
#define DOMAINSET_CMP(p, c) __BIT_CMP(DOMAINSET_SETSIZE, p, c)
sys/sys/epoch.h
109
#define NET_EPOCH_CALL(f, c) epoch_call(net_epoch_preempt, (f), (c))
sys/sys/epoch.h
112
#define NET_TASK_INIT(t, p, f, c) TASK_INIT_FLAGS(t, p, f, c, TASK_NETWORK)
sys/sys/event.h
53
#define EV_SET(kevp_, a, b, c, d, e, f) do { \
sys/sys/event.h
57
.flags = (c), \
sys/sys/event.h
69
#define EV_SET(kevp_, a, b, c, d, e, f) do { \
sys/sys/event.h
73
(kevp)->flags = (c); \
sys/sys/fnv_hash.h
36
Fnv32_t c;
sys/sys/fnv_hash.h
38
while ((c = *s++) != 0) {
sys/sys/fnv_hash.h
40
hval ^= c;
sys/sys/fnv_hash.h
61
u_register_t c; /* 32 bit on i386, 64 bit on alpha */
sys/sys/fnv_hash.h
63
while ((c = *s++) != 0) {
sys/sys/fnv_hash.h
65
hval ^= c;
sys/sys/hash.h
37
#define HASHSTEP(x,c) (((x << 5) + x) + (c))
sys/sys/iconv.h
170
int towlower(int c, void *handle);
sys/sys/iconv.h
171
int towupper(int c, void *handle);
sys/sys/iconv.h
239
int iconv_converter_tolowerstub(int c, void *handle);
sys/sys/kbio.h
290
#define KEYCHAR(c) ((c) & 0x00ffffff)
sys/sys/kbio.h
291
#define KEYFLAGS(c) ((c) & ~0x00ffffff)
sys/sys/libkern.h
241
void *memchr(const void *s, int c, size_t n);
sys/sys/libkern.h
242
void *memcchr(const void *s, int c, size_t n);
sys/sys/lockstat.h
102
#define LOCKSTAT_PROFILE_OBTAIN_SPIN_LOCK_SUCCESS(probe, lp, c, wt, f, l) do { \
sys/sys/lockstat.h
103
lock_profile_obtain_lock_success(&(lp)->lock_object, true, c, wt, f, l); \
sys/sys/lockstat.h
107
#define LOCKSTAT_PROFILE_OBTAIN_RWLOCK_SUCCESS(probe, lp, c, wt, f, l, a) do { \
sys/sys/lockstat.h
108
lock_profile_obtain_lock_success(&(lp)->lock_object, false, c, wt, f, l); \
sys/sys/lockstat.h
140
#define LOCKSTAT_PROFILE_OBTAIN_LOCK_SUCCESS(probe, lp, c, wt, f, l) \
sys/sys/lockstat.h
141
lock_profile_obtain_lock_success(&(lp)->lock_object, false, c, wt, f, l)
sys/sys/lockstat.h
143
#define LOCKSTAT_PROFILE_OBTAIN_SPIN_LOCK_SUCCESS(probe, lp, c, wt, f, l) \
sys/sys/lockstat.h
144
lock_profile_obtain_lock_success(&(lp)->lock_object, true, c, wt, f, l)
sys/sys/lockstat.h
146
#define LOCKSTAT_PROFILE_OBTAIN_RWLOCK_SUCCESS(probe, lp, c, wt, f, l, a) \
sys/sys/lockstat.h
147
LOCKSTAT_PROFILE_OBTAIN_LOCK_SUCCESS(probe, lp, c, wt, f, l)
sys/sys/lockstat.h
97
#define LOCKSTAT_PROFILE_OBTAIN_LOCK_SUCCESS(probe, lp, c, wt, f, l) do { \
sys/sys/lockstat.h
98
lock_profile_obtain_lock_success(&(lp)->lock_object, false, c, wt, f, l); \
sys/sys/msan.h
82
#define kmsan_orig(p, l, c, a)
sys/sys/msan.h
83
#define kmsan_mark(p, l, c)
sys/sys/msan.h
84
#define kmsan_mark_bio(b, c)
sys/sys/msan.h
85
#define kmsan_mark_mbuf(m, c)
sys/sys/msan.h
88
#define kmsan_check_ccb(c, d)
sys/sys/msgbuf.h
70
void msgbuf_addchar(struct msgbuf *mbp, int c);
sys/sys/mutex.h
100
void __mtx_lock_sleep(volatile uintptr_t *c, uintptr_t v, int opts,
sys/sys/mutex.h
102
void __mtx_unlock_sleep(volatile uintptr_t *c, uintptr_t v, int opts,
sys/sys/mutex.h
105
void __mtx_lock_sleep(volatile uintptr_t *c, uintptr_t v);
sys/sys/mutex.h
106
void __mtx_unlock_sleep(volatile uintptr_t *c, uintptr_t v);
sys/sys/mutex.h
112
void _mtx_lock_spin_cookie(volatile uintptr_t *c, uintptr_t v, int opts,
sys/sys/mutex.h
115
void _mtx_lock_spin_cookie(volatile uintptr_t *c, uintptr_t v);
sys/sys/mutex.h
118
void __mtx_lock_flags(volatile uintptr_t *c, int opts, const char *file,
sys/sys/mutex.h
120
void __mtx_unlock_flags(volatile uintptr_t *c, int opts, const char *file,
sys/sys/mutex.h
122
void __mtx_lock_spin_flags(volatile uintptr_t *c, int opts, const char *file,
sys/sys/mutex.h
124
int __mtx_trylock_spin_flags(volatile uintptr_t *c, int opts,
sys/sys/mutex.h
126
void __mtx_unlock_spin_flags(volatile uintptr_t *c, int opts,
sys/sys/mutex.h
131
void __mtx_assert(const volatile uintptr_t *c, int what, const char *file,
sys/sys/mutex.h
91
void _mtx_init(volatile uintptr_t *c, const char *name, const char *type,
sys/sys/mutex.h
93
void _mtx_destroy(volatile uintptr_t *c);
sys/sys/mutex.h
96
int _mtx_trylock_flags_(volatile uintptr_t *c, int opts, const char *file,
sys/sys/random.h
145
#define random_harvest_fast_uma(a, b, c) random_harvest_fast(a, b, c)
sys/sys/random.h
147
#define random_harvest_fast_uma(a, b, c) do {} while (0)
sys/sys/rwlock.h
129
void _rw_init_flags(volatile uintptr_t *c, const char *name, int opts);
sys/sys/rwlock.h
130
void _rw_destroy(volatile uintptr_t *c);
sys/sys/rwlock.h
132
int _rw_wowned(const volatile uintptr_t *c);
sys/sys/rwlock.h
133
void _rw_wlock_cookie(volatile uintptr_t *c, const char *file, int line);
sys/sys/rwlock.h
135
int __rw_try_wlock(volatile uintptr_t *c, const char *file, int line);
sys/sys/rwlock.h
136
void _rw_wunlock_cookie(volatile uintptr_t *c, const char *file, int line);
sys/sys/rwlock.h
138
void __rw_rlock(volatile uintptr_t *c, const char *file, int line);
sys/sys/rwlock.h
140
int __rw_try_rlock(volatile uintptr_t *c, const char *file, int line);
sys/sys/rwlock.h
142
void _rw_runlock_cookie(volatile uintptr_t *c, const char *file, int line);
sys/sys/rwlock.h
143
void __rw_wlock_hard(volatile uintptr_t *c, uintptr_t v
sys/sys/rwlock.h
145
void __rw_wunlock_hard(volatile uintptr_t *c, uintptr_t v
sys/sys/rwlock.h
148
int __rw_try_upgrade(volatile uintptr_t *c, const char *file, int line);
sys/sys/rwlock.h
150
void __rw_downgrade(volatile uintptr_t *c, const char *file, int line);
sys/sys/rwlock.h
152
void __rw_assert(const volatile uintptr_t *c, int what, const char *file,
sys/sys/systm.h
255
void *memset(void * _Nonnull buf, int c, size_t len);
sys/sys/systm.h
271
#define memset(buf, c, len) SAN_INTERCEPTOR(memset)((buf), (c), (len))
sys/sys/systm.h
280
#define memset(buf, c, len) __builtin_memset((buf), (c), (len))
sys/sys/systm.h
286
void *memset_early(void * _Nonnull buf, int c, size_t len);
sys/sys/taskqueue.h
127
#define TASK_INIT(t, p, f, c) TASK_INIT_FLAGS(t, p, f, c, 0)
sys/sys/terminal.h
146
term_char_t c);
sys/sys/terminal.h
148
term_char_t c);
sys/sys/terminal.h
218
void terminal_input_char(struct terminal *tm, term_char_t c);
sys/sys/terminal.h
219
void terminal_input_raw(struct terminal *tm, char c);
sys/sys/terminal.h
73
#define TCHAR_CHARACTER(c) ((c) & 0x1fffff)
sys/sys/terminal.h
74
#define TCHAR_FORMAT(c) (((c) >> 21) & 0x1f)
sys/sys/terminal.h
75
#define TCHAR_FGCOLOR(c) (((c) >> 26) & 0x7)
sys/sys/terminal.h
76
#define TCHAR_BGCOLOR(c) (((c) >> 29) & 0x7)
sys/sys/terminal.h
81
#define TCOLOR_FG(c) (((c) & 0x7) << 26)
sys/sys/terminal.h
82
#define TCOLOR_BG(c) (((c) & 0x7) << 29)
sys/sys/terminal.h
83
#define TCOLOR_LIGHT(c) ((c) | 0x8)
sys/sys/terminal.h
84
#define TCOLOR_DARK(c) ((c) & ~0x8)
sys/sys/terminal.h
86
#define TFORMAT(c) (((c) & 0x1f) << 21)
sys/sys/time.h
600
#define ppsratecheck(t, c, m) eventratecheck(t, c, m)
sys/sys/tslog.h
59
#define TSRAW(a, b, c, d) tslog(a, b, c, d)
sys/sys/tslog.h
61
#define TSRAW_USER(a, b, c, d) tslog_user(a, b, c, d)
sys/sys/tslog.h
64
#define TSRAW(a, b, c, d) /* Timestamp logging disabled */
sys/sys/tslog.h
65
#define TSRAW_USER(a, b, c, d) /* Timestamp logging disabled */
sys/sys/tty.h
200
int tty_putchar(struct tty *tp, char c);
sys/sys/ttydisc.h
56
int ttydisc_rint(struct tty *tp, char c, int flags);
sys/sys/ttyhook.h
43
typedef int th_rint_t(struct tty *tp, char c, int flags);
sys/sys/ttyhook.h
77
ttyhook_rint(struct tty *tp, char c, int flags)
sys/sys/ttyhook.h
82
return tp->t_hook->th_rint(tp, c, flags);
sys/sys/ttyqueue.h
132
typedef void ttyinq_line_iterator_t(void *data, char c, int flags);
sys/sys/ttyqueue.h
85
int ttyinq_peekchar(struct ttyinq *ti, char *c, int *quote);
sys/sys/umtx.h
66
#define URWLOCK_READER_COUNT(c) ((c) & URWLOCK_MAX_READERS)
sys/sys/umtx.h
74
#define USEM_COUNT(c) ((c) & USEM_MAX_COUNT)
sys/teken/demo/teken_demo.c
100
} else if (px->c < 0x10000) {
sys/teken/demo/teken_demo.c
101
str[0] = 0xe0 | (px->c >> 12);
sys/teken/demo/teken_demo.c
102
str[1] = 0x80 | ((px->c >> 6) & 0x3f);
sys/teken/demo/teken_demo.c
103
str[2] = 0x80 | (px->c & 0x3f);
sys/teken/demo/teken_demo.c
105
str[0] = 0xf0 | (px->c >> 18);
sys/teken/demo/teken_demo.c
106
str[1] = 0x80 | ((px->c >> 12) & 0x3f);
sys/teken/demo/teken_demo.c
107
str[2] = 0x80 | ((px->c >> 6) & 0x3f);
sys/teken/demo/teken_demo.c
108
str[3] = 0x80 | (px->c & 0x3f);
sys/teken/demo/teken_demo.c
142
test_putchar(void *s __unused, const teken_pos_t *p, teken_char_t c,
sys/teken/demo/teken_demo.c
146
buffer[p->tp_col][p->tp_row].c = c;
sys/teken/demo/teken_demo.c
152
test_fill(void *s, const teken_rect_t *r, teken_char_t c,
sys/teken/demo/teken_demo.c
160
test_putchar(s, &p, c, a);
sys/teken/demo/teken_demo.c
69
teken_char_t c;
sys/teken/demo/teken_demo.c
95
if (px->c < 0x80) {
sys/teken/demo/teken_demo.c
96
str[0] = px->c;
sys/teken/demo/teken_demo.c
97
} else if (px->c < 0x800) {
sys/teken/demo/teken_demo.c
98
str[0] = 0xc0 | (px->c >> 6);
sys/teken/demo/teken_demo.c
99
str[1] = 0x80 | (px->c & 0x3f);
sys/teken/stress/teken_stress.c
69
teken_char_t c __unused, const teken_attr_t *a __unused)
sys/teken/stress/teken_stress.c
75
teken_char_t c __unused, const teken_attr_t *a __unused)
sys/teken/teken.c
107
t->t_funcs->tf_putchar(t->t_softc, p, c, a);
sys/teken/teken.c
112
const teken_char_t c, const teken_attr_t *a)
sys/teken/teken.c
121
t->t_funcs->tf_fill(t->t_softc, r, c, a);
sys/teken/teken.c
199
teken_input_char(teken_t *t, teken_char_t c)
sys/teken/teken.c
208
switch (c) {
sys/teken/teken.c
220
switch (c) {
sys/teken/teken.c
238
t->t_nextstate(t, c);
sys/teken/teken.c
244
t->t_nextstate(t, c);
sys/teken/teken.c
255
t->t_nextstate(t, c);
sys/teken/teken.c
276
teken_input_byte(teken_t *t, unsigned char c)
sys/teken/teken.c
282
if ((c & 0x80) == 0x00 || t->t_stateflags & TS_8BIT) {
sys/teken/teken.c
285
teken_input_char(t, c);
sys/teken/teken.c
286
} else if ((c & 0xe0) == 0xc0) {
sys/teken/teken.c
289
t->t_utf8_partial = c & 0x1f;
sys/teken/teken.c
290
} else if ((c & 0xf0) == 0xe0) {
sys/teken/teken.c
293
t->t_utf8_partial = c & 0x0f;
sys/teken/teken.c
294
} else if ((c & 0xf8) == 0xf0) {
sys/teken/teken.c
297
t->t_utf8_partial = c & 0x07;
sys/teken/teken.c
298
} else if ((c & 0xc0) == 0x80) {
sys/teken/teken.c
302
t->t_utf8_partial = (t->t_utf8_partial << 6) | (c & 0x3f);
sys/teken/teken.c
313
const char *c = buf;
sys/teken/teken.c
317
teken_input_byte(t, *c++);
sys/teken/teken.c
442
teken_state_numbers(teken_t *t, teken_char_t c)
sys/teken/teken.c
447
if (c >= '0' && c <= '9') {
sys/teken/teken.c
451
t->t_nums[t->t_curnum] = c - '0';
sys/teken/teken.c
464
t->t_nums[t->t_curnum] * 10 + c - '0';
sys/teken/teken.c
467
} else if (c == ';') {
sys/teken/teken.c
533
k, r, g, y, b, m, c, w,
sys/teken/teken.c
536
k, r, g, y, b, m, c, w,
sys/teken/teken.c
540
g, c, c, b, b, b,
sys/teken/teken.c
541
g, c, c, c, b, b,
sys/teken/teken.c
542
g, g, c, c, c, b,
sys/teken/teken.c
543
g, g, g, c, c, c,
sys/teken/teken.c
544
g, g, g, g, c, c,
sys/teken/teken.c
549
y, g, c, c, b, b,
sys/teken/teken.c
550
g, g, c, c, c, b,
sys/teken/teken.c
551
g, g, g, c, c, c,
sys/teken/teken.c
552
g, g, g, g, c, c,
sys/teken/teken.c
558
y, y, g, c, c, b,
sys/teken/teken.c
559
g, g, g, c, c, c,
sys/teken/teken.c
560
g, g, g, g, c, c,
sys/teken/teken.c
567
y, y, y, g, c, c,
sys/teken/teken.c
568
g, g, g, g, c, c,
sys/teken/teken.c
576
y, y, y, y, g, c,
sys/teken/teken.c
601
k, r, g, y, b, m, c, w,
sys/teken/teken.c
608
g, c, c, b, b, b,
sys/teken/teken.c
609
g, c, c, c, b, b,
sys/teken/teken.c
610
g, g, c, c, c, b,
sys/teken/teken.c
611
g, g, g, c, c, c,
sys/teken/teken.c
612
g, g, g, g, c, c,
sys/teken/teken.c
617
y, g, c, c, B, B,
sys/teken/teken.c
618
g, g, c, c, C, B,
sys/teken/teken.c
679
teken_256to8(teken_color_t c)
sys/teken/teken.c
682
return (teken_256to8tab[c % 256]);
sys/teken/teken.c
686
teken_256to16(teken_color_t c)
sys/teken/teken.c
689
return (teken_256to16tab[c % 256]);
sys/teken/teken.c
99
teken_funcs_putchar(const teken_t *t, const teken_pos_t *p, teken_char_t c,
sys/teken/teken_scs.h
30
teken_scs_process(const teken_t *t, teken_char_t c)
sys/teken/teken_scs.h
33
return (t->t_scs[t->t_curscs](t, c));
sys/teken/teken_scs.h
53
teken_scs_special_graphics(const teken_t *t, teken_char_t c)
sys/teken/teken_scs.h
57
if (c >= '`' && c <= '~')
sys/teken/teken_scs.h
59
teken_boxdrawing_8bit[c - '`'] :
sys/teken/teken_scs.h
60
teken_boxdrawing_unicode[c - '`']);
sys/teken/teken_scs.h
61
return (c);
sys/teken/teken_scs.h
65
teken_scs_uk_national(const teken_t *t, teken_char_t c)
sys/teken/teken_scs.h
69
if (c == '#')
sys/teken/teken_scs.h
71
return (c);
sys/teken/teken_scs.h
75
teken_scs_us_ascii(const teken_t *t, teken_char_t c)
sys/teken/teken_scs.h
80
return (c);
sys/teken/teken_subr.h
797
teken_subr_do_putchar(teken_t *t, const teken_pos_t *tp, teken_char_t c,
sys/teken/teken_subr.h
801
t->t_last = c;
sys/teken/teken_subr.h
816
teken_funcs_putchar(t, tp, c, &t->t_curattr);
sys/teken/teken_subr.h
827
teken_funcs_putchar(t, &tp2, c, &attr);
sys/teken/teken_subr.h
832
teken_subr_regular_character(teken_t *t, teken_char_t c)
sys/teken/teken_subr.h
837
if (!(t->t_stateflags & TS_CONS25) && (c <= 0x1b || c == 0x7f))
sys/teken/teken_subr.h
839
c = teken_scs_process(t, c);
sys/teken/teken_subr.h
842
c = teken_scs_process(t, c);
sys/teken/teken_subr.h
843
width = teken_wcwidth(c);
sys/teken/teken_subr.h
850
teken_subr_do_putchar(t, &t->t_cursor, c, width);
sys/teken/teken_subr.h
891
c, width);
sys/teken/teken_subr.h
897
teken_subr_do_putchar(t, &tp, c, width);
sys/teken/teken_subr.h
904
teken_subr_do_putchar(t, &t->t_cursor, c, width);
sys/teken/teken_subr_compat.h
30
teken_subr_cons25_set_border(const teken_t *t, unsigned int c)
sys/teken/teken_subr_compat.h
33
teken_funcs_param(t, TP_SETBORDER, c);
sys/teken/teken_subr_compat.h
69
teken_subr_cons25_set_default_background(teken_t *t, unsigned int c)
sys/teken/teken_subr_compat.h
72
t->t_defattr.ta_bgcolor = cons25_colors[c % 8] | (c & 8);
sys/teken/teken_subr_compat.h
73
t->t_curattr.ta_bgcolor = cons25_colors[c % 8] | (c & 8);
sys/teken/teken_subr_compat.h
77
teken_subr_cons25_set_default_foreground(teken_t *t, unsigned int c)
sys/teken/teken_subr_compat.h
80
t->t_defattr.ta_fgcolor = cons25_colors[c % 8] | (c & 8);
sys/teken/teken_subr_compat.h
81
t->t_curattr.ta_fgcolor = cons25_colors[c % 8] | (c & 8);
sys/ufs/ffs/fs.h
653
#define cgbase(fs, c) (((ufs2_daddr_t)(fs)->fs_fpg) * (c))
sys/ufs/ffs/fs.h
654
#define cgdata(fs, c) (cgdmin(fs, c) + (fs)->fs_metaspace) /* data zone */
sys/ufs/ffs/fs.h
655
#define cgmeta(fs, c) (cgdmin(fs, c)) /* meta data */
sys/ufs/ffs/fs.h
656
#define cgdmin(fs, c) (cgstart(fs, c) + (fs)->fs_dblkno) /* 1st data */
sys/ufs/ffs/fs.h
657
#define cgimin(fs, c) (cgstart(fs, c) + (fs)->fs_iblkno) /* inode blk */
sys/ufs/ffs/fs.h
658
#define cgsblock(fs, c) (cgstart(fs, c) + (fs)->fs_sblkno) /* super blk */
sys/ufs/ffs/fs.h
659
#define cgtod(fs, c) (cgstart(fs, c) + (fs)->fs_cblkno) /* cg block */
sys/ufs/ffs/fs.h
660
#define cgstart(fs, c) \
sys/ufs/ffs/fs.h
661
((fs)->fs_magic == FS_UFS2_MAGIC ? cgbase(fs, c) : \
sys/ufs/ffs/fs.h
662
(cgbase(fs, c) + (fs)->fs_old_cgoffset * ((c) & ~((fs)->fs_old_cgmask))))
sys/vm/uma_core.c
2628
char *c;
sys/vm/uma_core.c
2645
for (c = zone->uz_ctlname; *c != '\0'; c++)
sys/vm/uma_core.c
2646
if (strchr("./\\ -", *c) != NULL)
sys/vm/uma_core.c
2647
*c = '_';
sys/vm/vm_kern.c
980
int c;
sys/vm/vm_kern.c
983
CPU_FOREACH(c) {
sys/vm/vm_kern.c
984
td = cpuid_to_pcpu[c]->pc_curthread;
sys/vm/vm_kern.c
992
CPU_SET(c, res);
sys/vm/vm_page.h
268
#define VPRC_WIRE_COUNT(c) ((c) & ~(VPRC_BLOCKED | VPRC_OBJREF))
sys/x86/include/_stdint.h
45
#define INT8_C(c) (c)
sys/x86/include/_stdint.h
46
#define INT16_C(c) (c)
sys/x86/include/_stdint.h
47
#define INT32_C(c) (c)
sys/x86/include/_stdint.h
49
#define UINT8_C(c) (c)
sys/x86/include/_stdint.h
50
#define UINT16_C(c) (c)
sys/x86/include/_stdint.h
51
#define UINT32_C(c) (c ## U)
sys/x86/include/_stdint.h
54
#define INT64_C(c) (c ## L)
sys/x86/include/_stdint.h
55
#define UINT64_C(c) (c ## UL)
sys/x86/include/_stdint.h
57
#define INT64_C(c) (c ## LL)
sys/x86/include/_stdint.h
58
#define UINT64_C(c) (c ## ULL)
sys/x86/include/_stdint.h
61
#define INTMAX_C(c) INT64_C(c)
sys/x86/include/_stdint.h
62
#define UINTMAX_C(c) UINT64_C(c)
sys/x86/include/bus.h
1006
#define bus_space_write_multi_stream_1(t, h, o, a, c) \
sys/x86/include/bus.h
1007
bus_space_write_multi_1((t), (h), (o), (a), (c))
sys/x86/include/bus.h
1008
#define bus_space_write_multi_stream_2(t, h, o, a, c) \
sys/x86/include/bus.h
1009
bus_space_write_multi_2((t), (h), (o), (a), (c))
sys/x86/include/bus.h
1010
#define bus_space_write_multi_stream_4(t, h, o, a, c) \
sys/x86/include/bus.h
1011
bus_space_write_multi_4((t), (h), (o), (a), (c))
sys/x86/include/bus.h
1013
#define bus_space_set_multi_stream_1(t, h, o, v, c) \
sys/x86/include/bus.h
1014
bus_space_set_multi_1((t), (h), (o), (v), (c))
sys/x86/include/bus.h
1015
#define bus_space_set_multi_stream_2(t, h, o, v, c) \
sys/x86/include/bus.h
1016
bus_space_set_multi_2((t), (h), (o), (v), (c))
sys/x86/include/bus.h
1017
#define bus_space_set_multi_stream_4(t, h, o, v, c) \
sys/x86/include/bus.h
1018
bus_space_set_multi_4((t), (h), (o), (v), (c))
sys/x86/include/bus.h
1020
#define bus_space_read_region_stream_1(t, h, o, a, c) \
sys/x86/include/bus.h
1021
bus_space_read_region_1((t), (h), (o), (a), (c))
sys/x86/include/bus.h
1022
#define bus_space_read_region_stream_2(t, h, o, a, c) \
sys/x86/include/bus.h
1023
bus_space_read_region_2((t), (h), (o), (a), (c))
sys/x86/include/bus.h
1024
#define bus_space_read_region_stream_4(t, h, o, a, c) \
sys/x86/include/bus.h
1025
bus_space_read_region_4((t), (h), (o), (a), (c))
sys/x86/include/bus.h
1027
#define bus_space_write_region_stream_1(t, h, o, a, c) \
sys/x86/include/bus.h
1028
bus_space_write_region_1((t), (h), (o), (a), (c))
sys/x86/include/bus.h
1029
#define bus_space_write_region_stream_2(t, h, o, a, c) \
sys/x86/include/bus.h
1030
bus_space_write_region_2((t), (h), (o), (a), (c))
sys/x86/include/bus.h
1031
#define bus_space_write_region_stream_4(t, h, o, a, c) \
sys/x86/include/bus.h
1032
bus_space_write_region_4((t), (h), (o), (a), (c))
sys/x86/include/bus.h
1034
#define bus_space_set_region_stream_1(t, h, o, v, c) \
sys/x86/include/bus.h
1035
bus_space_set_region_1((t), (h), (o), (v), (c))
sys/x86/include/bus.h
1036
#define bus_space_set_region_stream_2(t, h, o, v, c) \
sys/x86/include/bus.h
1037
bus_space_set_region_2((t), (h), (o), (v), (c))
sys/x86/include/bus.h
1038
#define bus_space_set_region_stream_4(t, h, o, v, c) \
sys/x86/include/bus.h
1039
bus_space_set_region_4((t), (h), (o), (v), (c))
sys/x86/include/bus.h
1041
#define bus_space_copy_region_stream_1(t, h1, o1, h2, o2, c) \
sys/x86/include/bus.h
1042
bus_space_copy_region_1((t), (h1), (o1), (h2), (o2), (c))
sys/x86/include/bus.h
1043
#define bus_space_copy_region_stream_2(t, h1, o1, h2, o2, c) \
sys/x86/include/bus.h
1044
bus_space_copy_region_2((t), (h1), (o1), (h2), (o2), (c))
sys/x86/include/bus.h
1045
#define bus_space_copy_region_stream_4(t, h1, o1, h2, o2, c) \
sys/x86/include/bus.h
1046
bus_space_copy_region_4((t), (h1), (o1), (h2), (o2), (c))
sys/x86/include/bus.h
580
#define bus_space_write_multi_8(t, h, o, a, c) \
sys/x86/include/bus.h
992
#define bus_space_read_multi_stream_1(t, h, o, a, c) \
sys/x86/include/bus.h
993
bus_space_read_multi_1((t), (h), (o), (a), (c))
sys/x86/include/bus.h
994
#define bus_space_read_multi_stream_2(t, h, o, a, c) \
sys/x86/include/bus.h
995
bus_space_read_multi_2((t), (h), (o), (a), (c))
sys/x86/include/bus.h
996
#define bus_space_read_multi_stream_4(t, h, o, a, c) \
sys/x86/include/bus.h
997
bus_space_read_multi_4((t), (h), (o), (a), (c))
sys/x86/iommu/amd_cmd.c
174
struct amdiommu_cmd_completion_wait c;
sys/x86/iommu/amd_cmd.c
179
bzero(&c, sizeof(c));
sys/x86/iommu/amd_cmd.c
180
c.op = AMDIOMMU_CMD_COMPLETION_WAIT;
sys/x86/iommu/amd_cmd.c
184
c.s = 1;
sys/x86/iommu/amd_cmd.c
187
c.address0 = x;
sys/x86/iommu/amd_cmd.c
189
c.address1 = x;
sys/x86/iommu/amd_cmd.c
190
c.data0 = seq;
sys/x86/iommu/amd_cmd.c
193
c.f = 1;
sys/x86/iommu/amd_cmd.c
195
c.i = 1;
sys/x86/iommu/amd_cmd.c
196
amdiommu_cmd_emit(unit, (struct amdiommu_cmd_generic *)&c);
sys/x86/iommu/amd_cmd.c
205
struct amdiommu_cmd_invalidate_iommu_pages c;
sys/x86/iommu/amd_cmd.c
211
bzero(&c, sizeof(c));
sys/x86/iommu/amd_cmd.c
212
c.op = AMDIOMMU_CMD_INVALIDATE_IOMMU_PAGES;
sys/x86/iommu/amd_cmd.c
213
c.domainid = domain->domain;
sys/x86/iommu/amd_cmd.c
218
c.s = 0;
sys/x86/iommu/amd_cmd.c
219
c.pde = 1;
sys/x86/iommu/amd_cmd.c
220
c.address = base >> IOMMU_PAGE_SHIFT;
sys/x86/iommu/amd_cmd.c
221
amdiommu_cmd_emit(unit, (struct amdiommu_cmd_generic *)&c);
sys/x86/iommu/amd_cmd.c
230
struct amdiommu_cmd_invalidate_iommu_pages c;
sys/x86/iommu/amd_cmd.c
234
bzero(&c, sizeof(c));
sys/x86/iommu/amd_cmd.c
235
c.op = AMDIOMMU_CMD_INVALIDATE_IOMMU_PAGES;
sys/x86/iommu/amd_cmd.c
236
c.domainid = domain->domain;
sys/x86/iommu/amd_cmd.c
242
c.s = 1;
sys/x86/iommu/amd_cmd.c
243
c.pde = 1;
sys/x86/iommu/amd_cmd.c
244
c.address = 0x7ffffffffffff;
sys/x86/iommu/amd_cmd.c
247
amdiommu_cmd_emit(unit, (struct amdiommu_cmd_generic *)&c);
sys/x86/iommu/amd_cmd.c
265
struct amdiommu_cmd_invalidate_devtab_entry c;
sys/x86/iommu/amd_cmd.c
268
bzero(&c, sizeof(c));
sys/x86/iommu/amd_cmd.c
269
c.op = AMDIOMMU_CMD_INVALIDATE_DEVTAB_ENTRY;
sys/x86/iommu/amd_cmd.c
270
c.devid = ctx->context.rid;
sys/x86/iommu/amd_cmd.c
271
amdiommu_cmd_emit(CTX2AMD(ctx), (struct amdiommu_cmd_generic *)&c);
sys/x86/iommu/amd_cmd.c
286
struct amdiommu_cmd_invalidate_interrupt_table c;
sys/x86/iommu/amd_cmd.c
291
bzero(&c, sizeof(c));
sys/x86/iommu/amd_cmd.c
292
c.op = AMDIOMMU_CMD_INVALIDATE_INTERRUPT_TABLE;
sys/x86/iommu/amd_cmd.c
293
c.devid = devid;
sys/x86/iommu/amd_cmd.c
294
amdiommu_cmd_emit(unit, (struct amdiommu_cmd_generic *)&c);
sys/x86/iommu/intel_idpgtbl.c
403
vm_pindex_t pi, c, idx, run_sz;
sys/x86/iommu/intel_idpgtbl.c
415
for (lvl = 0, c = 0, superpage = false;; lvl++) {
sys/x86/iommu/intel_idpgtbl.c
434
if (c == 0) {
sys/x86/iommu/intel_idpgtbl.c
435
for (c = 1; c < run_sz; c++) {
sys/x86/iommu/intel_idpgtbl.c
436
if (VM_PAGE_TO_PHYS(ma[pi + c]) !=
sys/x86/iommu/intel_idpgtbl.c
437
VM_PAGE_TO_PHYS(ma[pi + c - 1]) +
sys/x86/iommu/intel_idpgtbl.c
442
if (c >= run_sz) {
sys/x86/iommu/intel_qi.c
248
u_int c, l;
sys/x86/iommu/intel_qi.c
254
for (; cnt > 0; cnt -= c, start += c) {
sys/x86/iommu/intel_qi.c
256
c = 1 << l;
sys/x86/x86/dbreg.c
119
int cpu, c;
sys/x86/x86/dbreg.c
122
CPU_FOREACH(c) {
sys/x86/x86/dbreg.c
123
if (c == cpu)
sys/x86/x86/dbreg.c
125
pc = pcpu_find(c);
sys/x86/x86/mp_x86.c
1433
int cpu, c;
sys/x86/x86/mp_x86.c
1452
CPU_FOREACH(c) {
sys/x86/x86/mp_x86.c
1453
if (c != cpu)
sys/x86/x86/mp_x86.c
1454
ipi_bitmap_set(c, ipi);
sys/x86/x86/tsc.c
234
#define C2D(c) ((c) - '0')
sys/x86/xen/hvm.c
259
#define FBMASK(c) \
sys/x86/xen/hvm.c
260
((~0u << console->u.vesa_lfb.c ## _pos) & \
sys/x86/xen/hvm.c
261
(~0u >> (32 - console->u.vesa_lfb.c ## _pos - \
sys/x86/xen/hvm.c
262
console->u.vesa_lfb.c ## _size)))
sys/xdr/xdr_array.c
109
for (i = 0; (i < c) && stat; i++) {
sys/xdr/xdr_array.c
67
u_int c; /* the actual element count */
sys/xdr/xdr_array.c
75
c = *sizep;
sys/xdr/xdr_array.c
76
if ((c > maxsize || UINT_MAX/elsize < c) &&
sys/xdr/xdr_array.c
80
nodesize = c * elsize;
sys/xdr/xdr_array.c
89
if (c == 0)
tests/sys/aio/aio_test.c
1122
char c;
tests/sys/aio/aio_test.c
1141
c = 0xc3;
tests/sys/aio/aio_test.c
1142
ATF_REQUIRE(write(s[1], &c, sizeof(c)) == 1);
tests/sys/aio/aio_test.c
1151
ATF_REQUIRE(ioreq[i].buffer[0] == c);
tests/sys/cddl/zfs/bin/file_trunc.c
100
int c;
tests/sys/cddl/zfs/bin/file_trunc.c
107
while ((c = getopt(argc, argv, "b:c:f:o:rs:v")) != -1) {
tests/sys/cddl/zfs/bin/file_trunc.c
108
switch (c) {
tests/sys/cddl/zfs/bin/file_write.c
46
int c;
tests/sys/cddl/zfs/bin/file_write.c
71
while ((c = getopt(argc, argv, "b:c:d:s:f:o:vwr")) != -1) {
tests/sys/cddl/zfs/bin/file_write.c
72
switch (c) {
tests/sys/cddl/zfs/bin/mktree.c
57
int c, ret;
tests/sys/cddl/zfs/bin/mktree.c
59
while ((c = getopt(argc, argv, "b:l:d:f:")) != -1) {
tests/sys/cddl/zfs/bin/mktree.c
60
switch (c) {
tests/sys/fifo/fifo_kqueue.c
114
ATF_REQUIRE(read(p[0], &c, 1) == 1);
tests/sys/fifo/fifo_kqueue.c
179
char c = 0;
tests/sys/fifo/fifo_kqueue.c
181
while ((r = write(p[1], &c, 1)) == 1) {
tests/sys/fifo/fifo_kqueue.c
187
ATF_REQUIRE(read(p[0], &c, 1) == 1);
tests/sys/fifo/fifo_kqueue.c
226
char c;
tests/sys/fifo/fifo_kqueue.c
236
c = 0;
tests/sys/fifo/fifo_kqueue.c
237
while ((n = write(p[1], &c, 1)) == 1)
tests/sys/fifo/fifo_kqueue.c
244
ATF_REQUIRE(read(p[0], &c, 1) == 1);
tests/sys/fifo/fifo_kqueue.c
264
ATF_REQUIRE(read(p[0], &c, 1) == 1);
tests/sys/fifo/fifo_kqueue.c
265
n = read(p[0], &c, 1);
tests/sys/fifo/fifo_kqueue.c
320
char c;
tests/sys/fifo/fifo_kqueue.c
321
ATF_REQUIRE(read(p[0], &c, 1) == 0);
tests/sys/fifo/fifo_kqueue.c
404
char c = 0;
tests/sys/fifo/fifo_kqueue.c
405
ATF_REQUIRE(write(p[1], &c, 1) == 1);
tests/sys/fifo/fifo_kqueue.c
77
char c = 0;
tests/sys/fifo/fifo_kqueue.c
79
while ((r = write(p[1], &c, 1)) == 1) {
tests/sys/fifo/fifo_kqueue.c
90
ATF_REQUIRE(read(p[0], &c, 1) == 1);
tests/sys/fifo/fifo_kqueue.c
98
ATF_REQUIRE(read(p[0], &c, 1) == 1);
tests/sys/file/path_test.c
871
char c;
tests/sys/file/path_test.c
890
c = 0;
tests/sys/file/path_test.c
891
iov.iov_base = &c;
tests/sys/file/path_test.c
900
ATF_REQUIRE_MSG(sendmsg(sd[0], &msg, 0) == sizeof(c),
tests/sys/file/path_test.c
921
read(pathfd_copy, &c, 1) == -1);
tests/sys/file/path_test.c
923
write(pathfd_copy, &c, 1) == -1);
tests/sys/kern/acct/acct_test.c
114
v.c = encode_timeval(tv);
tests/sys/kern/acct/acct_test.c
131
v.c = encode_timeval(tv);
tests/sys/kern/acct/acct_test.c
148
v.c = encode_timeval(tv);
tests/sys/kern/acct/acct_test.c
167
v.c = encode_timeval(tv);
tests/sys/kern/acct/acct_test.c
187
v.c = encode_timeval(tv);
tests/sys/kern/acct/acct_test.c
214
v.c = encode_timeval(tv);
tests/sys/kern/acct/acct_test.c
51
comp_t c;
tests/sys/kern/acct/acct_test.c
64
printf("Got 0x%08x %12g\n", v.c, v.f);
tests/sys/kern/acct/acct_test.c
66
printf("Expected 0x%08x %12g (%.15lg)\n", v.c, v.f, expected);
tests/sys/kern/acct/acct_test.c
83
v.c = encode_timeval(tv);
tests/sys/kern/acct/acct_test.c
98
v.c = encode_long(l);
tests/sys/kern/pipe/pipe_kqueue_test.c
110
ATF_REQUIRE(read(p[0], &c, 1) == 1);
tests/sys/kern/pipe/pipe_kqueue_test.c
246
char c;
tests/sys/kern/pipe/pipe_kqueue_test.c
253
c = 0;
tests/sys/kern/pipe/pipe_kqueue_test.c
254
while ((n = write(p[1], &c, 1)) == 1)
tests/sys/kern/pipe/pipe_kqueue_test.c
299
char c;
tests/sys/kern/pipe/pipe_kqueue_test.c
325
c = 0;
tests/sys/kern/pipe/pipe_kqueue_test.c
326
while ((n = write(p[1], &c, 1)) == 1)
tests/sys/kern/pipe/pipe_kqueue_test.c
73
char c = 0;
tests/sys/kern/pipe/pipe_kqueue_test.c
75
while ((r = write(p[1], &c, 1)) == 1) {
tests/sys/kern/pipe/pipe_kqueue_test.c
86
ATF_REQUIRE(read(p[0], &c, 1) == 1);
tests/sys/kern/pipe/pipe_kqueue_test.c
94
ATF_REQUIRE(read(p[0], &c, 1) == 1);
tests/sys/kern/ptrace_test.c
1018
char c;
tests/sys/kern/ptrace_test.c
1028
CHILD_REQUIRE_EQ(read(cpipe[1], &c, sizeof(c)),
tests/sys/kern/ptrace_test.c
1029
(ssize_t)sizeof(c));
tests/sys/kern/ptrace_test.c
1057
CHILD_REQUIRE_EQ(write(dpipe[1], &c, sizeof(c)),
tests/sys/kern/ptrace_test.c
1058
(ssize_t)sizeof(c));
tests/sys/kern/ptrace_test.c
1073
REQUIRE_EQ(read(dpipe[0], &c, sizeof(c)), (ssize_t)sizeof(c));
tests/sys/kern/ptrace_test.c
1076
REQUIRE_EQ(write(cpipe[0], &c, sizeof(c)), (ssize_t)sizeof(c));
tests/sys/kern/ptrace_test.c
228
char c;
tests/sys/kern/ptrace_test.c
237
CHILD_REQUIRE_EQ(0, read(cpipe[1], &c, sizeof(c)));
tests/sys/kern/ptrace_test.c
275
char c;
tests/sys/kern/ptrace_test.c
285
CHILD_REQUIRE_EQ(read(cpipe[1], &c, sizeof(c)),
tests/sys/kern/ptrace_test.c
286
(ssize_t)sizeof(c));
tests/sys/kern/ptrace_test.c
309
CHILD_REQUIRE_EQ(write(dpipe[1], &c, sizeof(c)),
tests/sys/kern/ptrace_test.c
310
(ssize_t)sizeof(c));
tests/sys/kern/ptrace_test.c
313
CHILD_REQUIRE_EQ(read(dpipe[1], &c, sizeof(c)), 0);
tests/sys/kern/ptrace_test.c
327
REQUIRE_EQ(read(dpipe[0], &c, sizeof(c)), (ssize_t)sizeof(c));
tests/sys/kern/ptrace_test.c
330
REQUIRE_EQ(write(cpipe[0], &c, sizeof(c)), (ssize_t)sizeof(c));
tests/sys/kern/ptrace_test.c
331
REQUIRE_EQ(read(cpipe[0], &c, sizeof(c)), 0);
tests/sys/kern/ptrace_test.c
371
char c;
tests/sys/kern/ptrace_test.c
381
CHILD_REQUIRE_EQ(read(cpipe[1], &c, sizeof(c)),
tests/sys/kern/ptrace_test.c
382
(ssize_t)sizeof(c));
tests/sys/kern/ptrace_test.c
415
CHILD_REQUIRE_EQ(write(dpipe[1], &c, sizeof(c)),
tests/sys/kern/ptrace_test.c
416
(ssize_t)sizeof(c));
tests/sys/kern/ptrace_test.c
419
CHILD_REQUIRE_EQ(read(dpipe[1], &c, sizeof(c)),
tests/sys/kern/ptrace_test.c
420
(ssize_t)sizeof(c));
tests/sys/kern/ptrace_test.c
444
REQUIRE_EQ(read(dpipe[0], &c, sizeof(c)), (ssize_t)sizeof(c));
tests/sys/kern/ptrace_test.c
447
REQUIRE_EQ(write(cpipe[0], &c, sizeof(c)), (ssize_t)sizeof(c));
tests/sys/kern/ptrace_test.c
448
REQUIRE_EQ(read(cpipe[0], &c, sizeof(c)), 0);
tests/sys/kern/ptrace_test.c
462
REQUIRE_EQ(write(dpipe[0], &c, sizeof(c)), (ssize_t)sizeof(c));
tests/sys/kern/ptrace_test.c
465
REQUIRE_EQ(read(dpipe[0], &c, sizeof(c)), 0);
tests/sys/kern/socket_accf.c
144
#define LEN(c) (sizeof(c) - 1)
tests/sys/kern/socket_splice.c
267
char c;
tests/sys/kern/socket_splice.c
275
c = 'M';
tests/sys/kern/socket_splice.c
276
n = write(sc.left[0], &c, 1);
tests/sys/kern/socket_splice.c
278
n = read(sc.right[1], &c, 1);
tests/sys/kern/socket_splice.c
280
ATF_REQUIRE_MSG(c == 'M', "unexpected character: %c", c);
tests/sys/kern/socket_splice.c
285
c = 'J';
tests/sys/kern/socket_splice.c
286
n = write(sc.right[1], &c, 1);
tests/sys/kern/socket_splice.c
288
n = read(sc.left[0], &c, 1);
tests/sys/kern/socket_splice.c
290
ATF_REQUIRE_MSG(c == 'J', "unexpected character: %c", c);
tests/sys/kern/socket_splice.c
677
char c;
tests/sys/kern/socket_splice.c
691
c = 42;
tests/sys/kern/socket_splice.c
692
n = write(sd[0], &c, 1);
tests/sys/kern/socket_splice.c
695
c = 24;
tests/sys/kern/socket_splice.c
696
n = write(sd[1], &c, 1);
tests/sys/kern/socket_splice.c
762
char c;
tests/sys/kern/socket_splice.c
767
c = 'M';
tests/sys/kern/socket_splice.c
768
n = write(sc.left[0], &c, 1);
tests/sys/kern/socket_splice.c
770
n = read(sc.right[1], &c, 1);
tests/sys/kern/socket_splice.c
772
ATF_REQUIRE_MSG(c == 'M', "unexpected character: %c", c);
tests/sys/kern/socket_splice.c
777
c = 'J';
tests/sys/kern/socket_splice.c
778
n = write(sc.right[1], &c, 1);
tests/sys/kern/socket_splice.c
780
n = read(sc.left[0], &c, 1);
tests/sys/kern/socket_splice.c
782
ATF_REQUIRE_MSG(c == 'J', "unexpected character: %c", c);
tests/sys/kern/socket_splice.c
798
c = 'M';
tests/sys/kern/socket_splice.c
799
n = write(sc.left[0], &c, 1);
tests/sys/kern/socket_splice.c
801
n = read(sc.right[1], &c, 1);
tests/sys/kern/socket_splice.c
803
ATF_REQUIRE_MSG(c == 'M', "unexpected character: %c", c);
tests/sys/kern/socket_splice.c
808
c = 'J';
tests/sys/kern/socket_splice.c
809
n = write(sc.right[1], &c, 1);
tests/sys/kern/socket_splice.c
811
n = read(sc.left[0], &c, 1);
tests/sys/kern/socket_splice.c
813
ATF_REQUIRE_MSG(c == 'J', "unexpected character: %c", c);
tests/sys/kern/ssl_sendfile.c
102
ATF_REQUIRE(c->pkey = EVP_RSA_gen(2048));
tests/sys/kern/ssl_sendfile.c
103
ATF_REQUIRE(c->cert = X509_new());
tests/sys/kern/ssl_sendfile.c
104
ASN1_INTEGER_set(X509_get_serialNumber(c->cert), 1);
tests/sys/kern/ssl_sendfile.c
105
X509_set_version(c->cert, 2);
tests/sys/kern/ssl_sendfile.c
106
X509_gmtime_adj(X509_get_notBefore(c->cert), 0);
tests/sys/kern/ssl_sendfile.c
107
X509_gmtime_adj(X509_get_notAfter(c->cert), 60L*60*24*365);
tests/sys/kern/ssl_sendfile.c
108
X509_set_pubkey(c->cert, c->pkey);
tests/sys/kern/ssl_sendfile.c
109
name = X509_get_subject_name(c->cert);
tests/sys/kern/ssl_sendfile.c
112
X509_set_issuer_name(c->cert, name);
tests/sys/kern/ssl_sendfile.c
115
X509_add_ext(c->cert, ext, -1);
tests/sys/kern/ssl_sendfile.c
117
ATF_REQUIRE(X509_sign(c->cert, c->pkey, EVP_sha256()) > 0);
tests/sys/kern/ssl_sendfile.c
122
ATF_REQUIRE((c->fd = mkstemp(tempname)) > 0);
tests/sys/kern/ssl_sendfile.c
124
ATF_REQUIRE(ftruncate(c->fd, FSIZE) == 0);
tests/sys/kern/ssl_sendfile.c
125
ATF_REQUIRE((c->mfd = mmap(NULL, FSIZE, PROT_READ | PROT_WRITE,
tests/sys/kern/ssl_sendfile.c
126
MAP_SHARED, c->fd, 0)) != MAP_FAILED);
tests/sys/kern/ssl_sendfile.c
127
arc4random_buf(c->mfd, FSIZE);
tests/sys/kern/ssl_sendfile.c
129
ATF_REQUIRE(pthread_mutex_init(&c->mtx, NULL) == 0);
tests/sys/kern/ssl_sendfile.c
130
ATF_REQUIRE(pthread_cond_init(&c->cv, NULL) == 0);
tests/sys/kern/ssl_sendfile.c
135
ATF_REQUIRE(pthread_mutex_lock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
136
ATF_REQUIRE(pthread_create(&c->thr, NULL, server_thread, c) == 0);
tests/sys/kern/ssl_sendfile.c
137
if (c->state != READY)
tests/sys/kern/ssl_sendfile.c
138
ATF_REQUIRE(pthread_cond_wait(&c->cv, &c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
139
ATF_REQUIRE(c->state == READY);
tests/sys/kern/ssl_sendfile.c
140
ATF_REQUIRE(pthread_mutex_unlock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
145
ATF_REQUIRE(c->ctx = SSL_CTX_new(TLS_client_method()));
tests/sys/kern/ssl_sendfile.c
146
ATF_REQUIRE(X509_STORE_add_cert(SSL_CTX_get_cert_store(c->ctx),
tests/sys/kern/ssl_sendfile.c
147
c->cert));
tests/sys/kern/ssl_sendfile.c
148
ATF_REQUIRE(ssl = c->cln = SSL_new(c->ctx));
tests/sys/kern/ssl_sendfile.c
149
ATF_REQUIRE((c->cs = socket(AF_INET, SOCK_STREAM, 0)) > 0);
tests/sys/kern/ssl_sendfile.c
150
ATF_REQUIRE(connect(c->cs, (struct sockaddr *)&(struct sockaddr_in)
tests/sys/kern/ssl_sendfile.c
152
.sin_addr.s_addr = htonl(INADDR_LOOPBACK), .sin_port = c->port },
tests/sys/kern/ssl_sendfile.c
154
ATF_REQUIRE(SSL_set_fd(ssl, c->cs) == 1);
tests/sys/kern/ssl_sendfile.c
156
ntohs(c->port)) >= (int)sizeof("localhost:0"));
tests/sys/kern/ssl_sendfile.c
161
ATF_REQUIRE(fcntl(c->cs, F_SETFL, O_NONBLOCK) != -1);
tests/sys/kern/ssl_sendfile.c
165
common_cleanup(struct ctx *c)
tests/sys/kern/ssl_sendfile.c
168
ATF_REQUIRE(pthread_mutex_lock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
169
c->state = EXITING;
tests/sys/kern/ssl_sendfile.c
170
ATF_REQUIRE(pthread_cond_signal(&c->cv) == 0);
tests/sys/kern/ssl_sendfile.c
171
ATF_REQUIRE(pthread_mutex_unlock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
172
ATF_REQUIRE(pthread_join(c->thr, NULL) == 0);
tests/sys/kern/ssl_sendfile.c
174
ATF_REQUIRE(pthread_mutex_destroy(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
175
ATF_REQUIRE(pthread_cond_destroy(&c->cv) == 0);
tests/sys/kern/ssl_sendfile.c
177
SSL_free(c->cln);
tests/sys/kern/ssl_sendfile.c
178
SSL_CTX_free(c->ctx);
tests/sys/kern/ssl_sendfile.c
179
X509_free(c->cert);
tests/sys/kern/ssl_sendfile.c
180
EVP_PKEY_free(c->pkey);
tests/sys/kern/ssl_sendfile.c
185
struct ctx *c = arg;
tests/sys/kern/ssl_sendfile.c
198
SSL_CTX_use_PrivateKey(srv, c->pkey);
tests/sys/kern/ssl_sendfile.c
199
SSL_CTX_use_certificate(srv, c->cert);
tests/sys/kern/ssl_sendfile.c
208
ATF_REQUIRE(pthread_mutex_lock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
209
c->port = sin.sin_port;
tests/sys/kern/ssl_sendfile.c
210
c->state = READY;
tests/sys/kern/ssl_sendfile.c
211
ATF_REQUIRE(pthread_cond_signal(&c->cv) == 0);
tests/sys/kern/ssl_sendfile.c
212
ATF_REQUIRE(pthread_mutex_unlock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
214
ATF_REQUIRE((c->ss = accept(s, NULL, NULL)) > 0);
tests/sys/kern/ssl_sendfile.c
215
ssl = c->srv = SSL_new(srv);
tests/sys/kern/ssl_sendfile.c
216
SSL_set_fd(ssl, c->ss);
tests/sys/kern/ssl_sendfile.c
220
ATF_REQUIRE(pthread_mutex_lock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
221
while (c->state != EXITING) {
tests/sys/kern/ssl_sendfile.c
222
if (c->state == RUNNING) {
tests/sys/kern/ssl_sendfile.c
223
ATF_REQUIRE(fcntl(c->ss, F_SETFL,
tests/sys/kern/ssl_sendfile.c
224
c->nb ? O_NONBLOCK : 0) != -1);
tests/sys/kern/ssl_sendfile.c
225
c->sbytes = SSL_sendfile(ssl, c->fd, c->offset,
tests/sys/kern/ssl_sendfile.c
226
c->size, 0);
tests/sys/kern/ssl_sendfile.c
227
c->state = READY;
tests/sys/kern/ssl_sendfile.c
229
ATF_REQUIRE(c->state == READY);
tests/sys/kern/ssl_sendfile.c
230
ATF_REQUIRE(pthread_cond_signal(&c->cv) == 0);
tests/sys/kern/ssl_sendfile.c
231
ATF_REQUIRE(pthread_cond_wait(&c->cv, &c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
233
ATF_REQUIRE(pthread_mutex_unlock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
237
close(c->ss);
tests/sys/kern/ssl_sendfile.c
245
sendme_locked(struct ctx *c, off_t offset, size_t size, bool nb)
tests/sys/kern/ssl_sendfile.c
247
ATF_REQUIRE(c->state == READY);
tests/sys/kern/ssl_sendfile.c
248
c->state = RUNNING;
tests/sys/kern/ssl_sendfile.c
249
c->offset = offset;
tests/sys/kern/ssl_sendfile.c
250
c->size = size;
tests/sys/kern/ssl_sendfile.c
251
c->nb = nb;
tests/sys/kern/ssl_sendfile.c
252
ATF_REQUIRE(pthread_cond_signal(&c->cv) == 0);
tests/sys/kern/ssl_sendfile.c
256
sendme_locked_wait(struct ctx *c, off_t offset, size_t size, bool nb)
tests/sys/kern/ssl_sendfile.c
258
sendme_locked(c, offset, size, nb);
tests/sys/kern/ssl_sendfile.c
259
while (c->state != READY)
tests/sys/kern/ssl_sendfile.c
260
ATF_REQUIRE(pthread_cond_wait(&c->cv, &c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
264
sendme(struct ctx *c, off_t offset, size_t size, bool nb)
tests/sys/kern/ssl_sendfile.c
266
ATF_REQUIRE(pthread_mutex_lock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
267
sendme_locked(c, offset, size, nb);
tests/sys/kern/ssl_sendfile.c
268
ATF_REQUIRE(pthread_mutex_unlock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
289
require_sbytes(struct ctx *c, ssize_t expect)
tests/sys/kern/ssl_sendfile.c
291
ATF_REQUIRE(pthread_mutex_lock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
292
ATF_REQUIRE(c->sbytes == expect);
tests/sys/kern/ssl_sendfile.c
293
ATF_REQUIRE(pthread_mutex_unlock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
299
struct ctx c;
tests/sys/kern/ssl_sendfile.c
304
common_init(&c);
tests/sys/kern/ssl_sendfile.c
306
sendme(&c, 0, 0, false);
tests/sys/kern/ssl_sendfile.c
308
while (nread < FSIZE && (n = SSL_read_b(c.cln, buf, sizeof(buf))) > 0) {
tests/sys/kern/ssl_sendfile.c
309
ATF_REQUIRE(memcmp((char *)c.mfd + nread, buf, n) == 0);
tests/sys/kern/ssl_sendfile.c
313
require_sbytes(&c, FSIZE);
tests/sys/kern/ssl_sendfile.c
315
common_cleanup(&c);
tests/sys/kern/ssl_sendfile.c
321
struct ctx c;
tests/sys/kern/ssl_sendfile.c
324
common_init(&c);
tests/sys/kern/ssl_sendfile.c
333
sendme(&c, offset, size, false);
tests/sys/kern/ssl_sendfile.c
337
(n = SSL_read_b(c.cln, buf, sizeof(buf))) > 0) {
tests/sys/kern/ssl_sendfile.c
338
ATF_REQUIRE(memcmp((char *)c.mfd + offset + nread, buf,
tests/sys/kern/ssl_sendfile.c
343
require_sbytes(&c, (ssize_t)expect);
tests/sys/kern/ssl_sendfile.c
346
common_cleanup(&c);
tests/sys/kern/ssl_sendfile.c
353
struct ctx c;
tests/sys/kern/ssl_sendfile.c
359
common_init(&c);
tests/sys/kern/ssl_sendfile.c
361
ATF_REQUIRE(setsockopt(c.ss, SOL_SOCKET, SO_SNDBUF, &(int){FSIZE / 16},
tests/sys/kern/ssl_sendfile.c
363
ATF_REQUIRE(setsockopt(c.cs, SOL_SOCKET, SO_RCVBUF, &(int){FSIZE / 16},
tests/sys/kern/ssl_sendfile.c
366
sendme(&c, 0, 0, false);
tests/sys/kern/ssl_sendfile.c
368
while (poll(&(struct pollfd){ .fd = c.ss, .events = POLLOUT }, 1, 1)
tests/sys/kern/ssl_sendfile.c
371
ATF_REQUIRE(ftruncate(c.fd, TRUNC) == 0);
tests/sys/kern/ssl_sendfile.c
373
while (nread < TRUNC && (n = SSL_read_b(c.cln, buf, sizeof(buf))) > 0) {
tests/sys/kern/ssl_sendfile.c
374
ATF_REQUIRE(memcmp((char *)c.mfd + nread, buf, n) == 0);
tests/sys/kern/ssl_sendfile.c
378
require_sbytes(&c, TRUNC);
tests/sys/kern/ssl_sendfile.c
380
common_cleanup(&c);
tests/sys/kern/ssl_sendfile.c
387
struct ctx c;
tests/sys/kern/ssl_sendfile.c
394
common_init(&c);
tests/sys/kern/ssl_sendfile.c
396
ATF_REQUIRE(setsockopt(c.ss, SOL_SOCKET, SO_SNDBUF, &(int){FSIZE / 16},
tests/sys/kern/ssl_sendfile.c
398
ATF_REQUIRE(setsockopt(c.cs, SOL_SOCKET, SO_RCVBUF, &(int){FSIZE / 16},
tests/sys/kern/ssl_sendfile.c
401
sendme(&c, 0, 0, false);
tests/sys/kern/ssl_sendfile.c
403
while (poll(&(struct pollfd){ .fd = c.ss, .events = POLLOUT }, 1, 1)
tests/sys/kern/ssl_sendfile.c
407
ATF_REQUIRE(ftruncate(c.fd, FSIZE + GROW) == 0);
tests/sys/kern/ssl_sendfile.c
409
MAP_SHARED, c.fd, FSIZE)) != MAP_FAILED);
tests/sys/kern/ssl_sendfile.c
414
while (nread < FSIZE && (n = SSL_read_b(c.cln, buf,
tests/sys/kern/ssl_sendfile.c
416
ATF_REQUIRE(memcmp((char *)c.mfd + nread, buf, n) == 0);
tests/sys/kern/ssl_sendfile.c
422
while (nread < GROW && (n = SSL_read_b(c.cln, buf, sizeof(buf))) > 0) {
tests/sys/kern/ssl_sendfile.c
427
require_sbytes(&c, FSIZE + GROW);
tests/sys/kern/ssl_sendfile.c
429
common_cleanup(&c);
tests/sys/kern/ssl_sendfile.c
435
struct ctx c;
tests/sys/kern/ssl_sendfile.c
437
common_init(&c);
tests/sys/kern/ssl_sendfile.c
439
c.sbytes = -1;
tests/sys/kern/ssl_sendfile.c
440
sendme(&c, FSIZE + 1, 0, false);
tests/sys/kern/ssl_sendfile.c
441
ATF_REQUIRE(pthread_mutex_lock(&c.mtx) == 0);
tests/sys/kern/ssl_sendfile.c
442
while (c.state != READY)
tests/sys/kern/ssl_sendfile.c
443
ATF_REQUIRE(pthread_cond_wait(&c.cv, &c.mtx) == 0);
tests/sys/kern/ssl_sendfile.c
444
ATF_REQUIRE(c.sbytes == 0);
tests/sys/kern/ssl_sendfile.c
445
ATF_REQUIRE(pthread_mutex_unlock(&c.mtx) == 0);
tests/sys/kern/ssl_sendfile.c
447
common_cleanup(&c);
tests/sys/kern/ssl_sendfile.c
457
struct ctx c;
tests/sys/kern/ssl_sendfile.c
462
common_init(&c);
tests/sys/kern/ssl_sendfile.c
468
ATF_REQUIRE(pthread_mutex_lock(&c.mtx) == 0);
tests/sys/kern/ssl_sendfile.c
469
sendme_locked_wait(&c, 0, FSIZE, true);
tests/sys/kern/ssl_sendfile.c
470
ATF_REQUIRE(c.sbytes > 0);
tests/sys/kern/ssl_sendfile.c
471
ATF_REQUIRE(SSL_get_error(c.srv, c.sbytes) == 0);
tests/sys/kern/ssl_sendfile.c
473
ATF_REQUIRE(BIO_should_retry(SSL_get_wbio(c.srv)));
tests/sys/kern/ssl_sendfile.c
479
sendme_locked_wait(&c, 0, FSIZE, true);
tests/sys/kern/ssl_sendfile.c
480
ATF_REQUIRE(c.sbytes == -1);
tests/sys/kern/ssl_sendfile.c
481
ATF_REQUIRE(SSL_get_error(c.srv, c.sbytes) == SSL_ERROR_WANT_WRITE);
tests/sys/kern/ssl_sendfile.c
482
ATF_REQUIRE(BIO_should_retry(SSL_get_wbio(c.srv)));
tests/sys/kern/ssl_sendfile.c
486
while (nread < c.sbytes &&
tests/sys/kern/ssl_sendfile.c
487
(n = SSL_read_b(c.cln, buf, sizeof(buf))) > 0) {
tests/sys/kern/ssl_sendfile.c
488
ATF_REQUIRE(memcmp((char *)c.mfd + nread, buf, n) == 0);
tests/sys/kern/ssl_sendfile.c
500
sendme_locked_wait(&c, FSIZE, 0, true);
tests/sys/kern/ssl_sendfile.c
501
ATF_REQUIRE(c.sbytes == 0);
tests/sys/kern/ssl_sendfile.c
502
ATF_REQUIRE(SSL_get_error(c.srv, c.sbytes) == SSL_ERROR_SYSCALL);
tests/sys/kern/ssl_sendfile.c
504
ATF_REQUIRE(!BIO_should_retry(SSL_get_wbio(c.srv)));
tests/sys/kern/ssl_sendfile.c
510
sendme_locked_wait(&c, FSIZE - 100, 0, true);
tests/sys/kern/ssl_sendfile.c
511
ATF_REQUIRE(c.sbytes == 100);
tests/sys/kern/ssl_sendfile.c
512
ATF_REQUIRE(SSL_get_error(c.srv, c.sbytes) == 0);
tests/sys/kern/ssl_sendfile.c
514
ATF_REQUIRE(!BIO_should_retry(SSL_get_wbio(c.srv)));
tests/sys/kern/ssl_sendfile.c
517
ATF_REQUIRE(pthread_mutex_unlock(&c.mtx) == 0);
tests/sys/kern/ssl_sendfile.c
519
common_cleanup(&c);
tests/sys/kern/ssl_sendfile.c
76
common_init(struct ctx *c)
tests/sys/kern/ssl_sendfile.c
94
c->state = INIT;
tests/sys/kern/sys_getrandom.c
45
size_t i, j, c;
tests/sys/kern/sys_getrandom.c
68
c = ZSTD_compress(compressed, sizeof(compressed), randomb,
tests/sys/kern/sys_getrandom.c
70
ATF_REQUIRE_MSG(!ZSTD_isError(c), "zstd compress: %s",
tests/sys/kern/sys_getrandom.c
71
ZSTD_getErrorName(c));
tests/sys/kern/sys_getrandom.c
76
ATF_REQUIRE_MSG(c > (sizeof(randomb) * 4 / 5),
tests/sys/kern/sys_getrandom.c
78
c, sizeof(randomb), (double)c / (double)sizeof(randomb));
tests/sys/kern/unix_stream.c
401
char c;
tests/sys/kern/unix_stream.c
419
readsz = read(ctx.sv[0], &c, sizeof(c));
tests/sys/net/routing/rtsock_config.h
108
c->plen6 = mask;
tests/sys/net/routing/rtsock_config.h
110
inet_pton(AF_INET6, buf, &c->net6.sin6_addr);
tests/sys/net/routing/rtsock_config.h
112
c->net6.sin6_len = sizeof(struct sockaddr_in6);
tests/sys/net/routing/rtsock_config.h
113
c->net6.sin6_family = AF_INET6;
tests/sys/net/routing/rtsock_config.h
114
c->addr6.sin6_len = sizeof(struct sockaddr_in6);
tests/sys/net/routing/rtsock_config.h
115
c->addr6.sin6_family = AF_INET6;
tests/sys/net/routing/rtsock_config.h
117
sa_fill_mask6(&c->mask6, c->plen6);
tests/sys/net/routing/rtsock_config.h
120
memcpy(&c->addr6.sin6_addr, &c->net6.sin6_addr, sizeof(struct in6_addr));
tests/sys/net/routing/rtsock_config.h
122
c->addr6.sin6_addr._s6_addr32[3] = htonl(ntohl(c->net6.sin6_addr._s6_addr32[3]) + 1);
tests/sys/net/routing/rtsock_config.h
124
inet_ntop(AF_INET6, &c->net6.sin6_addr, c->net6_str, INET6_ADDRSTRLEN);
tests/sys/net/routing/rtsock_config.h
125
inet_ntop(AF_INET6, &c->addr6.sin6_addr, c->addr6_str, INET6_ADDRSTRLEN);
tests/sys/net/routing/rtsock_config.h
136
c->ifnames = calloc(co->num_interfaces, sizeof(char *));
tests/sys/net/routing/rtsock_config.h
138
c->ifnames[i] = iface_create("epair");
tests/sys/net/routing/rtsock_config.h
140
c->ifname = c->ifnames[0];
tests/sys/net/routing/rtsock_config.h
141
c->ifindex = if_nametoindex(c->ifname);
tests/sys/net/routing/rtsock_config.h
142
ATF_REQUIRE_MSG(c->ifindex != 0, "interface %s not found",
tests/sys/net/routing/rtsock_config.h
143
c->ifname);
tests/sys/net/routing/rtsock_config.h
145
c->num_interfaces = co->num_interfaces;
tests/sys/net/routing/rtsock_config.h
147
c->remote_lladdr = strdup(atf_tc_get_config_var_wd(tc,
tests/sys/net/routing/rtsock_config.h
150
return (c);
tests/sys/net/routing/rtsock_config.h
63
struct rtsock_test_config *c;
tests/sys/net/routing/rtsock_config.h
74
c = calloc(1, sizeof(struct rtsock_test_config));
tests/sys/net/routing/rtsock_config.h
75
c->rtsock_fd = -1;
tests/sys/net/routing/rtsock_config.h
85
c->plen4 = mask;
tests/sys/net/routing/rtsock_config.h
86
inet_pton(AF_INET, buf, &c->net4.sin_addr);
tests/sys/net/routing/rtsock_config.h
88
c->net4.sin_len = sizeof(struct sockaddr_in);
tests/sys/net/routing/rtsock_config.h
89
c->net4.sin_family = AF_INET;
tests/sys/net/routing/rtsock_config.h
90
c->addr4.sin_len = sizeof(struct sockaddr_in);
tests/sys/net/routing/rtsock_config.h
91
c->addr4.sin_family = AF_INET;
tests/sys/net/routing/rtsock_config.h
93
sa_fill_mask4(&c->mask4, c->plen4);
tests/sys/net/routing/rtsock_config.h
96
c->addr4.sin_addr.s_addr = htonl(ntohl(c->net4.sin_addr.s_addr) + 1);
tests/sys/net/routing/rtsock_config.h
97
inet_ntop(AF_INET, &c->net4.sin_addr, c->net4_str, INET_ADDRSTRLEN);
tests/sys/net/routing/rtsock_config.h
98
inet_ntop(AF_INET, &c->addr4.sin_addr, c->addr4_str, INET_ADDRSTRLEN);
tests/sys/net/routing/test_rtsock_l3.c
1000
rtm = rtsock_read_rtm(c->rtsock_fd, buffer, sizeof(buffer));
tests/sys/net/routing/test_rtsock_l3.c
1005
verify_route_message_extra(rtm, c->ifindex,
tests/sys/net/routing/test_rtsock_l3.c
101
return (c);
tests/sys/net/routing/test_rtsock_l3.c
1024
c = presetup_ipv6(tc);
tests/sys/net/routing/test_rtsock_l3.c
1030
prepare_v6_network(c, &net6, &mask6, &gw6);
tests/sys/net/routing/test_rtsock_l3.c
1041
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
1042
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
1047
rtm = rtsock_read_rtm(c->rtsock_fd, buffer, sizeof(buffer));
tests/sys/net/routing/test_rtsock_l3.c
1052
verify_route_message_extra(rtm, c->ifindex,
tests/sys/net/routing/test_rtsock_l3.c
107
struct rtsock_test_config *c;
tests/sys/net/routing/test_rtsock_l3.c
1070
c = presetup_ipv6_iface(tc);
tests/sys/net/routing/test_rtsock_l3.c
1072
c->rtsock_fd = rtsock_setup_socket();
tests/sys/net/routing/test_rtsock_l3.c
1074
ret = iface_setup_addr(c->ifname, c->addr6_str, c->plen6);
tests/sys/net/routing/test_rtsock_l3.c
1082
rtm = rtsock_read_rtm(c->rtsock_fd, buffer, sizeof(buffer));
tests/sys/net/routing/test_rtsock_l3.c
1088
verify_route_message(rtm, RTM_ADD, (struct sockaddr *)&c->addr6, NULL, NULL);
tests/sys/net/routing/test_rtsock_l3.c
1094
verify_link_gateway(rtm, c->ifindex);
tests/sys/net/routing/test_rtsock_l3.c
110
c = presetup_ipv4_iface(tc);
tests/sys/net/routing/test_rtsock_l3.c
1107
c = presetup_ipv6_iface(tc);
tests/sys/net/routing/test_rtsock_l3.c
1109
c->rtsock_fd = rtsock_setup_socket();
tests/sys/net/routing/test_rtsock_l3.c
1111
ret = iface_setup_addr(c->ifname, c->addr6_str, c->plen6);
tests/sys/net/routing/test_rtsock_l3.c
1121
rtm = rtsock_read_rtm(c->rtsock_fd, buffer, sizeof(buffer));
tests/sys/net/routing/test_rtsock_l3.c
1128
verify_route_message(rtm, RTM_ADD, (struct sockaddr *)&c->net6,
tests/sys/net/routing/test_rtsock_l3.c
1129
(struct sockaddr *)&c->mask6, NULL);
tests/sys/net/routing/test_rtsock_l3.c
113
ret = iface_setup_addr(c->ifname, c->addr4_str, c->plen4);
tests/sys/net/routing/test_rtsock_l3.c
1132
verify_link_gateway(rtm, c->ifindex);
tests/sys/net/routing/test_rtsock_l3.c
1135
verify_route_message_extra(rtm, c->ifindex, expected_rt_flags);
tests/sys/net/routing/test_rtsock_l3.c
1145
c = presetup_ipv6_iface(tc);
tests/sys/net/routing/test_rtsock_l3.c
1147
c->rtsock_fd = rtsock_setup_socket();
tests/sys/net/routing/test_rtsock_l3.c
1149
ret = iface_setup_addr(c->ifname, c->addr6_str, c->plen6);
tests/sys/net/routing/test_rtsock_l3.c
116
c->rtsock_fd = rtsock_setup_socket();
tests/sys/net/routing/test_rtsock_l3.c
1165
rtm = rtsock_read_rtm(c->rtsock_fd, buffer, sizeof(buffer));
tests/sys/net/routing/test_rtsock_l3.c
119
return (c);
tests/sys/net/routing/test_rtsock_l3.c
1203
c = presetup_ipv6_iface(tc);
tests/sys/net/routing/test_rtsock_l3.c
1205
ret = iface_setup_addr(c->ifname, c->addr6_str, c->plen6);
tests/sys/net/routing/test_rtsock_l3.c
1207
c->rtsock_fd = rtsock_setup_socket();
tests/sys/net/routing/test_rtsock_l3.c
1209
ret = iface_delete_addr(c->ifname, c->addr6_str);
tests/sys/net/routing/test_rtsock_l3.c
1212
rtm = rtsock_read_rtm(c->rtsock_fd, buffer, sizeof(buffer));
tests/sys/net/routing/test_rtsock_l3.c
1220
verify_route_message(rtm, RTM_DELETE, (struct sockaddr *)&c->addr6, NULL, NULL);
tests/sys/net/routing/test_rtsock_l3.c
1226
verify_link_gateway(rtm, c->ifindex);
tests/sys/net/routing/test_rtsock_l3.c
124
prepare_v4_network(struct rtsock_test_config *c, struct sockaddr_in *dst,
tests/sys/net/routing/test_rtsock_l3.c
1241
c = presetup_ipv6_iface(tc);
tests/sys/net/routing/test_rtsock_l3.c
1243
ret = iface_setup_addr(c->ifname, c->addr6_str, c->plen6);
tests/sys/net/routing/test_rtsock_l3.c
1245
c->rtsock_fd = rtsock_setup_socket();
tests/sys/net/routing/test_rtsock_l3.c
1247
ret = iface_delete_addr(c->ifname, c->addr6_str);
tests/sys/net/routing/test_rtsock_l3.c
1250
rtm = rtsock_read_rtm(c->rtsock_fd, buffer, sizeof(buffer));
tests/sys/net/routing/test_rtsock_l3.c
1257
verify_route_message(rtm, RTM_DELETE, (struct sockaddr *)&c->net6,
tests/sys/net/routing/test_rtsock_l3.c
1258
(struct sockaddr *)&c->mask6, NULL);
tests/sys/net/routing/test_rtsock_l3.c
1261
verify_link_gateway(rtm, c->ifindex);
tests/sys/net/routing/test_rtsock_l3.c
1264
verify_route_message_extra(rtm, c->ifindex, expected_rt_flags);
tests/sys/net/routing/test_rtsock_l3.c
1274
c = presetup_ipv4_iface(tc);
tests/sys/net/routing/test_rtsock_l3.c
1276
c->rtsock_fd = rtsock_setup_socket();
tests/sys/net/routing/test_rtsock_l3.c
1278
ret = iface_setup_addr(c->ifname, c->addr6_str, c->plen6);
tests/sys/net/routing/test_rtsock_l3.c
128
sa_fill_mask4(mask, c->plen4 + 1);
tests/sys/net/routing/test_rtsock_l3.c
1287
rtm = rtsock_read_rtm(c->rtsock_fd, buffer, sizeof(buffer));
tests/sys/net/routing/test_rtsock_l3.c
129
*dst = c->net4;
tests/sys/net/routing/test_rtsock_l3.c
1294
verify_route_message(rtm, RTM_ADD, (struct sockaddr *)&c->net4,
tests/sys/net/routing/test_rtsock_l3.c
1295
(struct sockaddr *)&c->mask4, NULL);
tests/sys/net/routing/test_rtsock_l3.c
1298
verify_link_gateway(rtm, c->ifindex);
tests/sys/net/routing/test_rtsock_l3.c
1301
verify_route_message_extra(rtm, c->ifindex, expected_rt_flags);
tests/sys/net/routing/test_rtsock_l3.c
131
*gw = c->net4;
tests/sys/net/routing/test_rtsock_l3.c
1311
c = presetup_ipv4_iface(tc);
tests/sys/net/routing/test_rtsock_l3.c
1313
c->rtsock_fd = rtsock_setup_socket();
tests/sys/net/routing/test_rtsock_l3.c
1315
ret = iface_setup_addr(c->ifname, c->addr4_str, c->plen4);
tests/sys/net/routing/test_rtsock_l3.c
132
gw->sin_addr.s_addr = htonl((ntohl(c->net4.sin_addr.s_addr) | ~ntohl(c->mask4.sin_addr.s_addr)) - 1);
tests/sys/net/routing/test_rtsock_l3.c
1330
rtm = rtsock_read_rtm(c->rtsock_fd, buffer, sizeof(buffer));
tests/sys/net/routing/test_rtsock_l3.c
1362
c = presetup_ipv4_iface(tc);
tests/sys/net/routing/test_rtsock_l3.c
1365
ret = iface_setup_addr(c->ifname, c->addr4_str, c->plen4);
tests/sys/net/routing/test_rtsock_l3.c
1367
c->rtsock_fd = rtsock_setup_socket();
tests/sys/net/routing/test_rtsock_l3.c
1369
ret = iface_delete_addr(c->ifname, c->addr4_str);
tests/sys/net/routing/test_rtsock_l3.c
1372
rtm = rtsock_read_rtm(c->rtsock_fd, buffer, sizeof(buffer));
tests/sys/net/routing/test_rtsock_l3.c
1379
verify_route_message(rtm, RTM_DELETE, (struct sockaddr *)&c->net4,
tests/sys/net/routing/test_rtsock_l3.c
1380
(struct sockaddr *)&c->mask4, NULL);
tests/sys/net/routing/test_rtsock_l3.c
1383
verify_link_gateway(rtm, c->ifindex);
tests/sys/net/routing/test_rtsock_l3.c
1386
verify_route_message_extra(rtm, c->ifindex, expected_rt_flags);
tests/sys/net/routing/test_rtsock_l3.c
139
prepare_v6_network(struct rtsock_test_config *c, struct sockaddr_in6 *dst,
tests/sys/net/routing/test_rtsock_l3.c
143
sa_fill_mask6(mask, c->plen6 + 1);
tests/sys/net/routing/test_rtsock_l3.c
144
*dst = c->net6;
tests/sys/net/routing/test_rtsock_l3.c
146
*gw = c->net6;
tests/sys/net/routing/test_rtsock_l3.c
148
gw->sin6_addr._s6_addr32[0] = htonl((ntohl(gw->sin6_addr._s6_addr32[0]) | ~ntohl(c->mask6.sin6_addr._s6_addr32[0])));
tests/sys/net/routing/test_rtsock_l3.c
149
gw->sin6_addr._s6_addr32[1] = htonl((ntohl(gw->sin6_addr._s6_addr32[1]) | ~ntohl(c->mask6.sin6_addr._s6_addr32[1])));
tests/sys/net/routing/test_rtsock_l3.c
150
gw->sin6_addr._s6_addr32[2] = htonl((ntohl(gw->sin6_addr._s6_addr32[2]) | ~ntohl(c->mask6.sin6_addr._s6_addr32[2])));
tests/sys/net/routing/test_rtsock_l3.c
151
gw->sin6_addr._s6_addr32[3] = htonl((ntohl(gw->sin6_addr._s6_addr32[3]) | ~ntohl(c->mask6.sin6_addr._s6_addr32[3])) - 1);
tests/sys/net/routing/test_rtsock_l3.c
246
struct rtsock_test_config *c; \
tests/sys/net/routing/test_rtsock_l3.c
276
c = presetup_ipv4(tc);
tests/sys/net/routing/test_rtsock_l3.c
278
prepare_route_message(rtm, RTM_GET, (struct sockaddr *)&c->net4,
tests/sys/net/routing/test_rtsock_l3.c
279
(struct sockaddr *)&c->mask4, NULL);
tests/sys/net/routing/test_rtsock_l3.c
281
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
283
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
293
verify_route_message(rtm, RTM_GET, (struct sockaddr *)&c->net4,
tests/sys/net/routing/test_rtsock_l3.c
294
(struct sockaddr *)&c->mask4, NULL);
tests/sys/net/routing/test_rtsock_l3.c
296
verify_route_message_extra(rtm, c->ifindex, RTF_UP | RTF_DONE | RTF_PINNED);
tests/sys/net/routing/test_rtsock_l3.c
299
verify_link_gateway(rtm, c->ifindex);
tests/sys/net/routing/test_rtsock_l3.c
304
RTSOCK_ATF_REQUIRE_MSG(rtm, sdl->sdl_index == c->ifindex, "GW ifindex is %d", sdl->sdl_index);
tests/sys/net/routing/test_rtsock_l3.c
322
c = presetup_ipv4(tc);
tests/sys/net/routing/test_rtsock_l3.c
324
prepare_route_message(rtm, RTM_GET, (struct sockaddr *)&c->net4, NULL, NULL);
tests/sys/net/routing/test_rtsock_l3.c
326
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
328
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
337
verify_route_message(rtm, RTM_GET, (struct sockaddr *)&c->net4,
tests/sys/net/routing/test_rtsock_l3.c
338
(struct sockaddr *)&c->mask4, NULL);
tests/sys/net/routing/test_rtsock_l3.c
340
verify_route_message_extra(rtm, c->ifindex, RTF_UP | RTF_DONE | RTF_PINNED);
tests/sys/net/routing/test_rtsock_l3.c
364
c = config_setup(tc,&co);
tests/sys/net/routing/test_rtsock_l3.c
365
c->rtsock_fd = rtsock_setup_socket();
tests/sys/net/routing/test_rtsock_l3.c
368
(struct sockaddr *)&c->mask4, NULL);
tests/sys/net/routing/test_rtsock_l3.c
37
jump_vnet(struct rtsock_test_config *c, const atf_tc_t *tc)
tests/sys/net/routing/test_rtsock_l3.c
371
ATF_CHECK_ERRNO(EINVAL, write(c->rtsock_fd, rtm, rtm->rtm_msglen) == -1);
tests/sys/net/routing/test_rtsock_l3.c
389
c = presetup_ipv4(tc);
tests/sys/net/routing/test_rtsock_l3.c
392
rtsock_prepare_route_message(rtm, RTM_GET, (struct sockaddr *)&c->addr4,
tests/sys/net/routing/test_rtsock_l3.c
393
(struct sockaddr *)&c->mask4, NULL);
tests/sys/net/routing/test_rtsock_l3.c
397
ATF_CHECK_ERRNO(0, write(c->rtsock_fd, rtm, rtm->rtm_msglen) > 0);
tests/sys/net/routing/test_rtsock_l3.c
415
c = presetup_ipv4(tc);
tests/sys/net/routing/test_rtsock_l3.c
421
prepare_v4_network(c, &net4, &mask4, &gw4);
tests/sys/net/routing/test_rtsock_l3.c
426
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
427
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
438
verify_route_message_extra(rtm, c->ifindex,
tests/sys/net/routing/test_rtsock_l3.c
44
vnet_switch(vnet_name, c->ifnames, c->num_interfaces);
tests/sys/net/routing/test_rtsock_l3.c
454
c = presetup_ipv4(tc);
tests/sys/net/routing/test_rtsock_l3.c
460
prepare_v4_network(c, &net4, &mask4, &gw4);
tests/sys/net/routing/test_rtsock_l3.c
468
ATF_CHECK_ERRNO(0, write(c->rtsock_fd, rtm, rtm->rtm_msglen) > 0);
tests/sys/net/routing/test_rtsock_l3.c
47
c->ifindex = if_nametoindex(c->ifname);
tests/sys/net/routing/test_rtsock_l3.c
481
c = presetup_ipv4(tc);
tests/sys/net/routing/test_rtsock_l3.c
487
prepare_v4_network(c, &net4, &mask4, &gw4);
tests/sys/net/routing/test_rtsock_l3.c
492
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
498
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
500
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
512
verify_route_message_extra(rtm, c->ifindex, RTF_DONE | RTF_GATEWAY | RTF_STATIC);
tests/sys/net/routing/test_rtsock_l3.c
53
struct rtsock_test_config *c;
tests/sys/net/routing/test_rtsock_l3.c
531
c = config_setup(tc, &co);
tests/sys/net/routing/test_rtsock_l3.c
532
jump_vnet(c, tc);
tests/sys/net/routing/test_rtsock_l3.c
534
ret = iface_turn_up(c->ifnames[0]);
tests/sys/net/routing/test_rtsock_l3.c
535
ATF_REQUIRE_MSG(ret == 0, "Unable to turn up %s", c->ifnames[0]);
tests/sys/net/routing/test_rtsock_l3.c
536
ret = iface_turn_up(c->ifnames[1]);
tests/sys/net/routing/test_rtsock_l3.c
537
ATF_REQUIRE_MSG(ret == 0, "Unable to turn up %s", c->ifnames[1]);
tests/sys/net/routing/test_rtsock_l3.c
539
ret = iface_setup_addr(c->ifnames[0], c->addr4_str, c->plen4);
tests/sys/net/routing/test_rtsock_l3.c
543
ret = iface_setup_addr(c->ifnames[1], "198.51.100.1", 24);
tests/sys/net/routing/test_rtsock_l3.c
546
c->rtsock_fd = rtsock_setup_socket();
tests/sys/net/routing/test_rtsock_l3.c
552
prepare_v4_network(c, &net4, &mask4, &gw4);
tests/sys/net/routing/test_rtsock_l3.c
557
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
558
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
56
c = config_setup(tc, NULL);
tests/sys/net/routing/test_rtsock_l3.c
567
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
569
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
574
verify_route_message_extra(rtm, if_nametoindex(c->ifnames[1]),
tests/sys/net/routing/test_rtsock_l3.c
58
jump_vnet(c, tc);
tests/sys/net/routing/test_rtsock_l3.c
581
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
591
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
592
verify_route_message_extra(rtm, if_nametoindex(c->ifnames[1]),
tests/sys/net/routing/test_rtsock_l3.c
60
ret = iface_turn_up(c->ifname);
tests/sys/net/routing/test_rtsock_l3.c
606
c = presetup_ipv4(tc);
tests/sys/net/routing/test_rtsock_l3.c
61
ATF_REQUIRE_MSG(ret == 0, "Unable to turn up %s", c->ifname);
tests/sys/net/routing/test_rtsock_l3.c
612
prepare_v4_network(c, &net4, &mask4, &gw4);
tests/sys/net/routing/test_rtsock_l3.c
617
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
618
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
626
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
627
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
63
ret = iface_enable_ipv6(c->ifname);
tests/sys/net/routing/test_rtsock_l3.c
639
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
64
ATF_REQUIRE_MSG(ret == 0, "Unable to enable IPv6 on %s", c->ifname);
tests/sys/net/routing/test_rtsock_l3.c
640
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
656
c = presetup_ipv4(tc);
tests/sys/net/routing/test_rtsock_l3.c
662
prepare_v4_network(c, &net4, &mask4, &gw4);
tests/sys/net/routing/test_rtsock_l3.c
67
return (c);
tests/sys/net/routing/test_rtsock_l3.c
670
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
671
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
679
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
680
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
683
verify_route_message_extra(rtm, c->ifindex, desired_flags | RTF_DONE);
tests/sys/net/routing/test_rtsock_l3.c
689
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
690
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
692
verify_route_message_extra(rtm, c->ifindex, desired_flags | RTF_DONE);
tests/sys/net/routing/test_rtsock_l3.c
706
c = presetup_ipv6(tc);
tests/sys/net/routing/test_rtsock_l3.c
712
prepare_v6_network(c, &net6, &mask6, &gw6);
tests/sys/net/routing/test_rtsock_l3.c
717
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
718
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
73
struct rtsock_test_config *c;
tests/sys/net/routing/test_rtsock_l3.c
730
verify_route_message_extra(rtm, c->ifindex,
tests/sys/net/routing/test_rtsock_l3.c
750
c = presetup_ipv6(tc);
tests/sys/net/routing/test_rtsock_l3.c
756
prepare_v6_network(c, &net6, &mask6, &gw6);
tests/sys/net/routing/test_rtsock_l3.c
76
c = presetup_ipv6_iface(tc);
tests/sys/net/routing/test_rtsock_l3.c
761
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
767
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
768
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
78
ret = iface_setup_addr(c->ifname, c->addr6_str, c->plen6);
tests/sys/net/routing/test_rtsock_l3.c
780
verify_route_message_extra(rtm, c->ifindex, RTF_DONE | RTF_GATEWAY | RTF_STATIC);
tests/sys/net/routing/test_rtsock_l3.c
799
c = config_setup(tc, &co);
tests/sys/net/routing/test_rtsock_l3.c
80
c->rtsock_fd = rtsock_setup_socket();
tests/sys/net/routing/test_rtsock_l3.c
800
jump_vnet(c, tc);
tests/sys/net/routing/test_rtsock_l3.c
802
ret = iface_turn_up(c->ifnames[0]);
tests/sys/net/routing/test_rtsock_l3.c
803
ATF_REQUIRE_MSG(ret == 0, "Unable to turn up %s", c->ifnames[0]);
tests/sys/net/routing/test_rtsock_l3.c
804
ret = iface_turn_up(c->ifnames[1]);
tests/sys/net/routing/test_rtsock_l3.c
805
ATF_REQUIRE_MSG(ret == 0, "Unable to turn up %s", c->ifnames[1]);
tests/sys/net/routing/test_rtsock_l3.c
807
ret = iface_enable_ipv6(c->ifnames[0]);
tests/sys/net/routing/test_rtsock_l3.c
808
ATF_REQUIRE_MSG(ret == 0, "Unable to enable IPv6 on %s", c->ifnames[0]);
tests/sys/net/routing/test_rtsock_l3.c
809
ret = iface_enable_ipv6(c->ifnames[1]);
tests/sys/net/routing/test_rtsock_l3.c
810
ATF_REQUIRE_MSG(ret == 0, "Unable to enable IPv6 on %s", c->ifnames[1]);
tests/sys/net/routing/test_rtsock_l3.c
812
ret = iface_setup_addr(c->ifnames[0], c->addr6_str, c->plen6);
tests/sys/net/routing/test_rtsock_l3.c
815
ret = iface_setup_addr(c->ifnames[1], "2001:DB8:4242::1", 64);
tests/sys/net/routing/test_rtsock_l3.c
818
c->rtsock_fd = rtsock_setup_socket();
tests/sys/net/routing/test_rtsock_l3.c
824
prepare_v6_network(c, &net6, &mask6, &gw6);
tests/sys/net/routing/test_rtsock_l3.c
829
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
83
return (c);
tests/sys/net/routing/test_rtsock_l3.c
830
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
839
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
841
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
846
verify_route_message_extra(rtm, if_nametoindex(c->ifnames[1]),
tests/sys/net/routing/test_rtsock_l3.c
853
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
863
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
864
verify_route_message_extra(rtm, if_nametoindex(c->ifnames[1]),
tests/sys/net/routing/test_rtsock_l3.c
877
c = presetup_ipv6(tc);
tests/sys/net/routing/test_rtsock_l3.c
883
prepare_v6_network(c, &net6, &mask6, &gw6);
tests/sys/net/routing/test_rtsock_l3.c
889
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
89
struct rtsock_test_config *c;
tests/sys/net/routing/test_rtsock_l3.c
890
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
898
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
899
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
911
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
912
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
92
c = config_setup(tc, NULL);
tests/sys/net/routing/test_rtsock_l3.c
928
c = presetup_ipv6(tc);
tests/sys/net/routing/test_rtsock_l3.c
93
ATF_REQUIRE(c != NULL);
tests/sys/net/routing/test_rtsock_l3.c
934
prepare_v6_network(c, &net6, &mask6, &gw6);
tests/sys/net/routing/test_rtsock_l3.c
942
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
943
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
95
jump_vnet(c, tc);
tests/sys/net/routing/test_rtsock_l3.c
951
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
952
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
955
verify_route_message_extra(rtm, c->ifindex, desired_flags | RTF_DONE);
tests/sys/net/routing/test_rtsock_l3.c
961
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
962
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_l3.c
964
verify_route_message_extra(rtm, c->ifindex, desired_flags | RTF_DONE);
tests/sys/net/routing/test_rtsock_l3.c
97
ret = iface_turn_up(c->ifname);
tests/sys/net/routing/test_rtsock_l3.c
977
c = presetup_ipv4(tc);
tests/sys/net/routing/test_rtsock_l3.c
98
ATF_REQUIRE_MSG(ret == 0, "Unable to turn up %s", c->ifname);
tests/sys/net/routing/test_rtsock_l3.c
983
prepare_v4_network(c, &net4, &mask4, &gw4);
tests/sys/net/routing/test_rtsock_l3.c
994
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_l3.c
995
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_lladdr.c
105
struct rtsock_test_config *c = config_setup(tc); \
tests/sys/net/routing/test_rtsock_lladdr.c
127
c = presetup_ipv6(tc);
tests/sys/net/routing/test_rtsock_lladdr.c
133
snprintf(str_buf, sizeof(str_buf), "%s%%%s", v6addr, c->ifname);
tests/sys/net/routing/test_rtsock_lladdr.c
137
snprintf(str_buf, sizeof(str_buf), "%s%%%s", c->remote_lladdr, c->ifname);
tests/sys/net/routing/test_rtsock_lladdr.c
141
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_lladdr.c
151
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_lladdr.c
175
c = presetup_ipv6(tc);
tests/sys/net/routing/test_rtsock_lladdr.c
180
sin6 = c->net6;
tests/sys/net/routing/test_rtsock_lladdr.c
186
snprintf(str_buf, sizeof(str_buf), "%s%%%s", c->remote_lladdr, c->ifname);
tests/sys/net/routing/test_rtsock_lladdr.c
191
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_lladdr.c
203
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_lladdr.c
227
c = presetup_ipv4(tc);
tests/sys/net/routing/test_rtsock_lladdr.c
232
sin = c->addr4;
tests/sys/net/routing/test_rtsock_lladdr.c
237
snprintf(str_buf, sizeof(str_buf), "%s%%%s", c->remote_lladdr, c->ifname);
tests/sys/net/routing/test_rtsock_lladdr.c
242
len = rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_lladdr.c
251
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_lladdr.c
272
c = presetup_ipv6(tc);
tests/sys/net/routing/test_rtsock_lladdr.c
279
snprintf(str_buf, sizeof(str_buf), "%s%%%s", v6addr, c->ifname);
tests/sys/net/routing/test_rtsock_lladdr.c
283
snprintf(str_buf, sizeof(str_buf), "%s%%%s", c->remote_lladdr, c->ifname);
tests/sys/net/routing/test_rtsock_lladdr.c
288
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_lladdr.c
293
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_lladdr.c
295
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_lladdr.c
318
c = presetup_ipv6(tc);
tests/sys/net/routing/test_rtsock_lladdr.c
32
jump_vnet(struct rtsock_test_config *c, const atf_tc_t *tc)
tests/sys/net/routing/test_rtsock_lladdr.c
323
sin6 = c->net6;
tests/sys/net/routing/test_rtsock_lladdr.c
329
snprintf(str_buf, sizeof(str_buf), "%s%%%s", c->remote_lladdr, c->ifname);
tests/sys/net/routing/test_rtsock_lladdr.c
334
len = rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_lladdr.c
339
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_lladdr.c
341
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_lladdr.c
364
c = presetup_ipv4(tc);
tests/sys/net/routing/test_rtsock_lladdr.c
369
sin = c->addr4;
tests/sys/net/routing/test_rtsock_lladdr.c
374
snprintf(str_buf, sizeof(str_buf), "%s%%%s", c->remote_lladdr, c->ifname);
tests/sys/net/routing/test_rtsock_lladdr.c
379
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_lladdr.c
384
rtsock_send_rtm(c->rtsock_fd, rtm);
tests/sys/net/routing/test_rtsock_lladdr.c
386
rtm = rtsock_read_rtm_reply(c->rtsock_fd, buffer, sizeof(buffer), rtm->rtm_seq);
tests/sys/net/routing/test_rtsock_lladdr.c
39
vnet_switch_one(vnet_name, c->ifname);
tests/sys/net/routing/test_rtsock_lladdr.c
42
c->ifindex = if_nametoindex(c->ifname);
tests/sys/net/routing/test_rtsock_lladdr.c
48
struct rtsock_test_config *c;
tests/sys/net/routing/test_rtsock_lladdr.c
51
c = config_setup(tc, NULL);
tests/sys/net/routing/test_rtsock_lladdr.c
53
jump_vnet(c, tc);
tests/sys/net/routing/test_rtsock_lladdr.c
55
ret = iface_turn_up(c->ifname);
tests/sys/net/routing/test_rtsock_lladdr.c
56
ATF_REQUIRE_MSG(ret == 0, "Unable to turn up %s", c->ifname);
tests/sys/net/routing/test_rtsock_lladdr.c
57
ret = iface_enable_ipv6(c->ifname);
tests/sys/net/routing/test_rtsock_lladdr.c
58
ATF_REQUIRE_MSG(ret == 0, "Unable to enable IPv6 on %s", c->ifname);
tests/sys/net/routing/test_rtsock_lladdr.c
60
c->rtsock_fd = rtsock_setup_socket();
tests/sys/net/routing/test_rtsock_lladdr.c
62
return (c);
tests/sys/net/routing/test_rtsock_lladdr.c
68
struct rtsock_test_config *c;
tests/sys/net/routing/test_rtsock_lladdr.c
71
c = config_setup(tc, NULL);
tests/sys/net/routing/test_rtsock_lladdr.c
73
jump_vnet(c, tc);
tests/sys/net/routing/test_rtsock_lladdr.c
76
ret = iface_setup_addr(c->ifname, c->addr4_str, c->plen4);
tests/sys/net/routing/test_rtsock_lladdr.c
79
c->rtsock_fd = rtsock_setup_socket();
tests/sys/net/routing/test_rtsock_lladdr.c
81
return (c);
tests/sys/net/routing/test_rtsock_lladdr.c
99
struct rtsock_test_config *c; \
tests/sys/netgraph/util.c
74
struct ngm_connect c;
tests/sys/netgraph/util.c
76
strncpy(c.ourhook, hook1, sizeof(c.ourhook));
tests/sys/netgraph/util.c
77
strncpy(c.peerhook, hook2, sizeof(c.peerhook));
tests/sys/netgraph/util.c
78
strncpy(c.path, path2, sizeof(c.path));
tests/sys/netgraph/util.c
82
&c, sizeof(c)));
tests/sys/netinet/libalias/util.c
77
unsigned char *c = p;
tests/sys/netinet/libalias/util.c
80
printf(" %02x", c[i]);
tests/sys/netinet/multicast-receive.c
44
atop(const char *c)
tests/sys/netinet/multicast-receive.c
49
if ((ul = strtol(c, NULL, 10)) < 1 || ul > IPPORT_MAX || errno != 0)
tests/sys/netinet/multicast-receive.c
50
err(1, "can't parse %s", c);
tests/sys/netinet/multicast-send.c
41
atop(const char *c)
tests/sys/netinet/multicast-send.c
46
if ((ul = strtol(c, NULL, 10)) < 1 || ul > IPPORT_MAX || errno != 0)
tests/sys/netinet/multicast-send.c
47
err(1, "can't parse %s", c);
tests/sys/netinet/tcp_socket.c
100
ATF_REQUIRE(getsockname(c, (struct sockaddr *)&sin, &len) == 0);
tests/sys/netinet/tcp_socket.c
103
close(c);
tests/sys/netinet/tcp_socket.c
46
int s, c, a;
tests/sys/netinet/tcp_socket.c
49
ATF_REQUIRE(c = socket(PF_INET, SOCK_STREAM, 0));
tests/sys/netinet/tcp_socket.c
60
ATF_REQUIRE(connect(c, (struct sockaddr *)&sin, sizeof(sin)) == 0);
tests/sys/netinet/tcp_socket.c
61
ATF_REQUIRE(send(c, &buf, sizeof(buf), 0) == sizeof(buf));
tests/sys/netinet/tcp_socket.c
66
ATF_REQUIRE(sendto(c, &buf, sizeof(buf), 0, (struct sockaddr *)&sin,
tests/sys/netinet/tcp_socket.c
87
int s, c, a;
tests/sys/netinet/tcp_socket.c
90
ATF_REQUIRE(c = socket(PF_INET, SOCK_STREAM, 0));
tests/sys/netinet/tcp_socket.c
97
ATF_REQUIRE(connect(c, (struct sockaddr *)&sin, sizeof(sin)) == 0);
tests/sys/netinet/udp_io.c
49
int b, c;
tests/sys/netinet/udp_io.c
52
ATF_REQUIRE((c = socket(PF_INET, SOCK_DGRAM, 0)) > 0);
tests/sys/netinet/udp_io.c
56
ATF_REQUIRE(connect(c, (struct sockaddr *)&sin, sizeof(sin)) == 0);
tests/sys/netinet/udp_io.c
59
s[1] = c;
tests/sys/netpfil/common/divapp.c
102
n = sendto(c->fd, c->pkt, c->pkt_n, 0,
tests/sys/netpfil/common/divapp.c
103
(struct sockaddr *) &c->sin, c->sin_len);
tests/sys/netpfil/common/divapp.c
106
if (n != c->pkt_n)
tests/sys/netpfil/common/divapp.c
108
n, c->pkt_n);
tests/sys/netpfil/common/divapp.c
114
struct context c;
tests/sys/netpfil/common/divapp.c
121
memset(&c, 0, sizeof(struct context));
tests/sys/netpfil/common/divapp.c
123
c.divert_port = (unsigned short) strtol(argv[1], NULL, 10);
tests/sys/netpfil/common/divapp.c
124
if (c.divert_port == 0)
tests/sys/netpfil/common/divapp.c
128
c.divert_back = true;
tests/sys/netpfil/common/divapp.c
131
init(&c);
tests/sys/netpfil/common/divapp.c
134
while (recv_pkt(&c) > 0) {
tests/sys/netpfil/common/divapp.c
135
if (c.divert_back)
tests/sys/netpfil/common/divapp.c
136
send_pkt(&c);
tests/sys/netpfil/common/divapp.c
143
errx(EXIT_FAILURE, "%d: npkt=%d.", c.divert_port, npkt);
tests/sys/netpfil/common/divapp.c
55
init(struct context *c)
tests/sys/netpfil/common/divapp.c
57
c->fd = socket(PF_DIVERT, SOCK_RAW, 0);
tests/sys/netpfil/common/divapp.c
58
if (c->fd == -1)
tests/sys/netpfil/common/divapp.c
61
memset(&c->sin, 0, sizeof(c->sin));
tests/sys/netpfil/common/divapp.c
62
c->sin.sin_family = AF_INET;
tests/sys/netpfil/common/divapp.c
63
c->sin.sin_port = htons(c->divert_port);
tests/sys/netpfil/common/divapp.c
64
c->sin.sin_addr.s_addr = INADDR_ANY;
tests/sys/netpfil/common/divapp.c
65
c->sin_len = sizeof(struct sockaddr_in);
tests/sys/netpfil/common/divapp.c
67
if (bind(c->fd, (struct sockaddr *) &c->sin, c->sin_len) != 0)
tests/sys/netpfil/common/divapp.c
72
recv_pkt(struct context *c)
tests/sys/netpfil/common/divapp.c
79
FD_SET(c->fd, &readfds);
tests/sys/netpfil/common/divapp.c
83
s = select(c->fd + 1, &readfds, 0, 0, &timeout);
tests/sys/netpfil/common/divapp.c
89
c->pkt_n = recvfrom(c->fd, c->pkt, sizeof(c->pkt), 0,
tests/sys/netpfil/common/divapp.c
90
(struct sockaddr *) &c->sin, &c->sin_len);
tests/sys/netpfil/common/divapp.c
91
if (c->pkt_n == -1)
tests/sys/netpfil/common/divapp.c
94
return (c->pkt_n);
tests/sys/netpfil/common/divapp.c
98
send_pkt(struct context *c)
tests/sys/posixshm/posixshm_test.c
821
char c;
tests/sys/posixshm/posixshm_test.c
833
c = page[pagesize];
tests/sys/posixshm/posixshm_test.c
834
fprintf(stderr, "child: page 1: '%c'\n", c);
tests/sys/posixshm/posixshm_test.c
881
char *cp, c;
tests/sys/posixshm/posixshm_test.c
959
error = read(desc, &c, 1);
tests/sys/posixshm/posixshm_test.c
960
if (c != '\151')
tools/build/bootstrap-m4/inittokenizer.c
113
#define YY_SC_TO_UI(c) ((YY_CHAR) (c))
tools/build/bootstrap-m4/inittokenizer.c
1199
int c;
tools/build/bootstrap-m4/inittokenizer.c
1257
c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
tools/build/bootstrap-m4/inittokenizer.c
1261
return c;
tools/build/bootstrap-m4/inittokenizer.c
183
#define unput(c) yyunput( c, (yytext_ptr) )
tools/build/bootstrap-m4/inittokenizer.c
608
int c = '*'; \
tools/build/bootstrap-m4/inittokenizer.c
611
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
tools/build/bootstrap-m4/inittokenizer.c
612
buf[n] = (char) c; \
tools/build/bootstrap-m4/inittokenizer.c
613
if ( c == '\n' ) \
tools/build/bootstrap-m4/inittokenizer.c
614
buf[n++] = (char) c; \
tools/build/bootstrap-m4/inittokenizer.c
615
if ( c == EOF && ferror( yyin ) ) \
tools/build/cross-build/include/linux/ctype.h
42
digittoint(char c)
tools/build/cross-build/include/linux/ctype.h
44
if (!isxdigit(c))
tools/build/cross-build/include/linux/ctype.h
46
char buffer[] = { c, '\0' };
tools/build/cross-build/include/linux/wctype.h
40
#define iswascii(c) isascii(c)
tools/build/cross-build/include/mac/string.h
52
char c;
tools/build/cross-build/include/mac/string.h
54
c = ch;
tools/build/cross-build/include/mac/string.h
56
if (*p == c || *p == '\0')
tools/build/libc-bootstrap/libc_private.h
38
#define __libc_sigprocmask(a, b, c) sigprocmask(a, b, c)
tools/build/libc-bootstrap/namespace.h
41
#define _read(a, b, c) read(a, b, c)
tools/build/libc-bootstrap/namespace.h
42
#define _write(a, b, c) write(a, b, c)
tools/build/libc-bootstrap/namespace.h
43
#define _writev(a, b, c) writev(a, b, c)
tools/regression/bpf/bpf_filter/bpf_test.c
115
#define BPF_VALIDATE_CODE(c) \
tools/regression/bpf/bpf_filter/bpf_test.c
116
((c) <= 0xff && (bpf_code_map[(c) >> 4] & (1 << ((c) & 0xf))) != 0)
tools/regression/fsx/fsx.c
356
unsigned char c, t;
tools/regression/fsx/fsx.c
367
c = good_buf[offset];
tools/regression/fsx/fsx.c
369
if (c != t) {
tools/regression/geom_gpt/gctl_test_helper.c
113
int c, len, parse_retval;
tools/regression/geom_gpt/gctl_test_helper.c
118
while ((c = getopt(argc, argv, "v")) != -1) {
tools/regression/geom_gpt/gctl_test_helper.c
119
switch (c) {
tools/regression/include/tgmath/tgmath.c
44
TGMACRO_COMPLEX(c ## FNC)
tools/regression/sockets/unix_sendtorace/unix_sendtorace.c
133
char c;
tools/regression/sockets/unix_sendtorace/unix_sendtorace.c
136
len = recv(serverfd, &c, sizeof(c), 0);
tools/regression/sockets/unix_sendtorace/unix_sendtorace.c
147
char c = 0;
tools/regression/sockets/unix_sendtorace/unix_sendtorace.c
160
len = sendto(fd, &c, sizeof(c), 0, (struct sockaddr *)&sun,
tools/regression/sockets/unix_sendtorace/unix_sendtorace.c
71
char c = 0;
tools/regression/sockets/unix_sendtorace/unix_sendtorace.c
84
len = sendto(fd, &c, sizeof(c), 0, (struct sockaddr *)&sun,
tools/test/iconv/tablegen/tablegen.c
201
int c;
tools/test/iconv/tablegen/tablegen.c
203
while (((c = getopt_long(argc, argv, optstr, long_options, NULL)) != -1)) {
tools/test/iconv/tablegen/tablegen.c
204
switch (c) {
tools/test/ptrace/scescx.c
107
c[0] = '\0';
tools/test/ptrace/scescx.c
115
strlcat(c, ",", sizeof(c));
tools/test/ptrace/scescx.c
116
strlcat(c, decode[i].desc, sizeof(c));
tools/test/ptrace/scescx.c
125
strlcat(c, ",", sizeof(c));
tools/test/ptrace/scescx.c
127
strlcat(c, de, sizeof(c));
tools/test/ptrace/scescx.c
130
return (c);
tools/test/ptrace/scescx.c
357
int c, status, use_vfork;
tools/test/ptrace/scescx.c
363
while ((c = getopt(argc, argv, "crsv")) != -1) {
tools/test/ptrace/scescx.c
364
switch (c) {
tools/test/ptrace/scescx.c
44
static char c[128];
tools/test/ptrace/scescx.c
48
c[0] = '\0';
tools/test/ptrace/scescx.c
52
strlcat(c, "CONT", sizeof(c));
tools/test/ptrace/scescx.c
58
strlcat(c, ",", sizeof(c));
tools/test/ptrace/scescx.c
60
strlcat(c, b, sizeof(c));
tools/test/ptrace/scescx.c
66
strlcat(c, ",", sizeof(c));
tools/test/ptrace/scescx.c
68
strlcat(c, b, sizeof(c));
tools/test/ptrace/scescx.c
70
strlcat(c, ",CORE", sizeof(c));
tools/test/ptrace/scescx.c
76
strlcat(c, ",", sizeof(c));
tools/test/ptrace/scescx.c
78
strlcat(c, b, sizeof(c));
tools/test/ptrace/scescx.c
80
return (c);
tools/test/ptrace/scescx.c
86
static char c[128];
tools/test/stress2/testcases/swap/swap.c
136
char *c;
tools/test/stress2/testcases/swap/swap.c
141
c = malloc(size);
tools/test/stress2/testcases/swap/swap.c
142
while (c == NULL && done_testing == 0) {
tools/test/stress2/testcases/swap/swap.c
144
c = malloc(size);
tools/test/stress2/testcases/swap/swap.c
155
c[i] = 0;
tools/test/stress2/testcases/swap/swap.c
161
free((void *)c);
tools/test/stress2/tools/flip.c
74
trash(char *c)
tools/test/stress2/tools/flip.c
77
*c = 0;
tools/test/stress2/tools/flip.c
79
arc4random_buf(c, sizeof(c));
tools/test/stress2/tools/flip.c
88
int c, fd, i, times;
tools/test/stress2/tools/flip.c
92
while ((c = getopt(argc, argv, "n:s:")) != -1) {
tools/test/stress2/tools/flip.c
93
switch (c) {
tools/test/stress2/tools/fstool.c
162
int c, i, levels, leave, times;
tools/test/stress2/tools/fstool.c
173
while ((c = getopt(argc, argv, "ad:e:ln:r:f:s:t:")) != -1)
tools/test/stress2/tools/fstool.c
174
switch (c) {
tools/test/stress2/tools/swap.c
138
volatile char *c;
tools/test/stress2/tools/swap.c
143
c = malloc(size);
tools/test/stress2/tools/swap.c
144
while (c == NULL) {
tools/test/stress2/tools/swap.c
146
c = malloc(size);
tools/test/stress2/tools/swap.c
156
c[i] = 1;
tools/test/stress2/tools/swap.c
163
free((void *)c);
tools/tools/ath/ath_prom_read/ath_prom_read.c
86
int c;
tools/tools/ath/ath_prom_read/ath_prom_read.c
97
while ((c = getopt(argc, argv, "d:i:t:")) != -1)
tools/tools/ath/ath_prom_read/ath_prom_read.c
98
switch (c) {
tools/tools/ath/athaggrstats/main.c
86
int c, banner = 1;
tools/tools/ath/athaggrstats/main.c
92
while ((c = getopt(argc, argv, "bi:lo:z")) != -1) {
tools/tools/ath/athaggrstats/main.c
93
switch (c) {
tools/tools/ath/athani/main.c
180
int what, c;
tools/tools/ath/athani/main.c
189
while ((c = getopt(argc, argv, "i:l")) != -1)
tools/tools/ath/athani/main.c
190
switch (c) {
tools/tools/ath/athkey/athkey.c
133
int s, c;
tools/tools/ath/athkey/athkey.c
146
while ((c = getopt(argc, argv, "di:x")) != -1)
tools/tools/ath/athkey/athkey.c
147
switch (c) {
tools/tools/ath/athkey/athkey.c
44
toint(int c)
tools/tools/ath/athkey/athkey.c
46
return isdigit(c) ? c - '0' : isupper(c) ? c - 'A' + 10 : c - 'a' + 10;
tools/tools/ath/athpoke/athpoke.c
68
int c, s;
tools/tools/ath/athpoke/athpoke.c
77
while ((c = getopt(argc, argv, "i:")) != -1)
tools/tools/ath/athpoke/athpoke.c
78
switch (c) {
tools/tools/ath/athpow/athpow.c
74
int s, i, verbose = 0, c;
tools/tools/ath/athpow/athpow.c
88
while ((c = getopt(argc, argv, "i:v")) != -1)
tools/tools/ath/athpow/athpow.c
89
switch (c) {
tools/tools/ath/athprom/athprom.c
108
while ((c = getopt(argc, argv, "i:t:")) != -1)
tools/tools/ath/athprom/athprom.c
109
switch (c) {
tools/tools/ath/athprom/athprom.c
228
int c, i;
tools/tools/ath/athprom/athprom.c
232
c = getc(fd);
tools/tools/ath/athprom/athprom.c
233
if (c == EOF)
tools/tools/ath/athprom/athprom.c
235
if (!isalnum(c) && c != '_') {
tools/tools/ath/athprom/athprom.c
236
ungetc(c, fd);
tools/tools/ath/athprom/athprom.c
243
id[i++] = c;
tools/tools/ath/athprom/athprom.c
255
int c;
tools/tools/ath/athprom/athprom.c
258
c = getc(fd);
tools/tools/ath/athprom/athprom.c
259
if (c == EOF)
tools/tools/ath/athprom/athprom.c
261
if (c == '.' && bol) { /* .directive */
tools/tools/ath/athprom/athprom.c
268
if (c == '\\') { /* escape next character */
tools/tools/ath/athprom/athprom.c
269
c = getc(fd);
tools/tools/ath/athprom/athprom.c
270
if (c == EOF)
tools/tools/ath/athprom/athprom.c
273
bol = (c == '\n');
tools/tools/ath/athprom/athprom.c
286
int c, i;
tools/tools/ath/athprom/athprom.c
289
while ((c = getc(fd)) != EOF && isblank(c))
tools/tools/ath/athprom/athprom.c
291
if (c != EOF)
tools/tools/ath/athprom/athprom.c
292
ungetc(c, fd);
tools/tools/ath/athprom/athprom.c
870
int c, i;
tools/tools/ath/athprom/athprom.c
876
while ((c = getc(ftemplate)) != EOF) {
tools/tools/ath/athprom/athprom.c
877
if (c == '#') { /* comment */
tools/tools/ath/athprom/athprom.c
879
while ((c = getc(ftemplate)) != EOF && c != '\n')
tools/tools/ath/athprom/athprom.c
881
if (c == EOF)
tools/tools/ath/athprom/athprom.c
887
if (c == '.' && bol) { /* .directive */
tools/tools/ath/athprom/athprom.c
961
if (c == '$') { /* $variable reference */
tools/tools/ath/athprom/athprom.c
968
if (c == '\\') { /* escape next character */
tools/tools/ath/athprom/athprom.c
969
c = getc(ftemplate);
tools/tools/ath/athprom/athprom.c
970
if (c == EOF)
tools/tools/ath/athprom/athprom.c
973
fputc(c, fd);
tools/tools/ath/athprom/athprom.c
974
bol = (c == '\n');
tools/tools/ath/athprom/athprom.c
98
int c;
tools/tools/ath/athratestats/main.c
152
int c = 0;
tools/tools/ath/athratestats/main.c
191
c++;
tools/tools/ath/athratestats/main.c
192
if (c == 2) {
tools/tools/ath/athratestats/main.c
194
c = 0;
tools/tools/ath/athratestats/main.c
197
if (c != 0)
tools/tools/ath/athratestats/main.c
307
int c;
tools/tools/ath/athratestats/main.c
320
while ((c = getopt(argc, argv, "ahi:m:s:")) != -1) {
tools/tools/ath/athratestats/main.c
321
switch (c) {
tools/tools/ath/athrd/athrd.c
878
const struct ieee80211_channel *c = &chans[i];
tools/tools/ath/athrd/athrd.c
883
ath_hal_mhz2ieee(ah, c->ic_freq, c->ic_flags));
tools/tools/ath/athrd/athrd.c
885
printf("%s%u", sep, c->ic_freq);
tools/tools/ath/athrd/athrd.c
886
if (IEEE80211_IS_CHAN_HALF(c))
tools/tools/ath/athrd/athrd.c
888
else if (IEEE80211_IS_CHAN_QUARTER(c))
tools/tools/ath/athrd/athrd.c
890
else if (IEEE80211_IS_CHAN_TURBO(c))
tools/tools/ath/athrd/athrd.c
892
else if (IEEE80211_IS_CHAN_HT(c))
tools/tools/ath/athrd/athrd.c
894
else if (IEEE80211_IS_CHAN_A(c))
tools/tools/ath/athrd/athrd.c
896
else if (IEEE80211_IS_CHAN_108G(c))
tools/tools/ath/athrd/athrd.c
898
else if (IEEE80211_IS_CHAN_G(c))
tools/tools/ath/athrd/athrd.c
902
if (dopassive && IEEE80211_IS_CHAN_PASSIVE(c))
tools/tools/ath/athrd/athrd.c
906
IEEE80211_IS_CHAN_DFS(c) ? '*' : ' ',
tools/tools/ath/athrd/athrd.c
907
IEEE80211_IS_CHAN_4MS(c) ? '4' : ' ',
tools/tools/ath/athrd/athrd.c
911
IEEE80211_IS_CHAN_DFS(c) ? '*' : ' ',
tools/tools/ath/athrd/athrd.c
915
IEEE80211_IS_CHAN_4MS(c) ? '4' : ' ',
tools/tools/ath/athregs/dumpregs.c
108
while ((c = getopt(argc, argv, "i:aAbdkmNqxz")) != -1)
tools/tools/ath/athregs/dumpregs.c
109
switch (c) {
tools/tools/ath/athregs/dumpregs.c
96
int what, c, i;
tools/tools/ath/athstats/main.c
100
while ((c = getopt(argc, argv, "bi:lo:z")) != -1) {
tools/tools/ath/athstats/main.c
101
switch (c) {
tools/tools/ath/athstats/main.c
94
int c, banner = 1;
tools/tools/ath/athsurvey/athsurvey.c
167
int c, s;
tools/tools/ath/athsurvey/athsurvey.c
178
while ((c = getopt(argc, argv, "i:")) != -1)
tools/tools/ath/athsurvey/athsurvey.c
179
switch (c) {
tools/tools/drm/radeon/mkregtable/mkregtable.c
591
unsigned nlloop, i, j, n, c, id;
tools/tools/drm/radeon/mkregtable/mkregtable.c
594
c = t->nentry;
tools/tools/drm/radeon/mkregtable/mkregtable.c
599
if (n > c)
tools/tools/drm/radeon/mkregtable/mkregtable.c
600
n = c;
tools/tools/drm/radeon/mkregtable/mkregtable.c
601
c -= n;
tools/tools/find-sb/find-sb.c
36
char c;
tools/tools/find-sb/find-sb.c
40
while ((c = getopt(argc, argv, "o:")) != -1) {
tools/tools/find-sb/find-sb.c
41
switch (c) {
tools/tools/fixwhite/fixwhite.c
135
int c;
tools/tools/fixwhite/fixwhite.c
137
c = getchar();
tools/tools/fixwhite/fixwhite.c
138
if (c == EOF && ferror(stdin)) {
tools/tools/fixwhite/fixwhite.c
142
return (c);
tools/tools/fixwhite/fixwhite.c
146
writechar(char c)
tools/tools/fixwhite/fixwhite.c
149
if (putchar(c) == EOF) {
tools/tools/fixwhite/fixwhite.c
160
int c;
tools/tools/fixwhite/fixwhite.c
163
while ((c = readchar()) != EOF) {
tools/tools/fixwhite/fixwhite.c
164
if (isspace(c))
tools/tools/fixwhite/fixwhite.c
166
savewhite(c, leading);
tools/tools/fixwhite/fixwhite.c
170
writechar(c);
tools/tools/fixwhite/fixwhite.c
38
savebyte(char c)
tools/tools/fixwhite/fixwhite.c
49
queue[queuelen++] = c;
tools/tools/fixwhite/fixwhite.c
51
switch (c) {
tools/tools/fixwhite/fixwhite.c
65
peekbyte(size_t back, char c)
tools/tools/fixwhite/fixwhite.c
68
return (queuelen >= back && queue[queuelen - back] == c);
tools/tools/fixwhite/fixwhite.c
72
savewhite(char c, bool leading)
tools/tools/fixwhite/fixwhite.c
76
switch (c) {
tools/tools/ifinfo/ifinfo.c
157
isbitpos(char c)
tools/tools/ifinfo/ifinfo.c
159
return (c != '\0' && (c <= ' ' || (c & 0x80) != 0));
tools/tools/ifinfo/ifinfo.c
163
isprintnospace(char c)
tools/tools/ifinfo/ifinfo.c
165
return (isprint(c) && c != ' ');
tools/tools/ifinfo/ifinfo.c
172
const char *c;
tools/tools/ifinfo/ifinfo.c
175
c = ++bitstring;
tools/tools/ifinfo/ifinfo.c
177
while (isbitpos(*c)) {
tools/tools/ifinfo/ifinfo.c
178
if ((*c & 0x80) != 0)
tools/tools/ifinfo/ifinfo.c
179
shift = *c++ & 0x7f;
tools/tools/ifinfo/ifinfo.c
181
shift = *c++ - 1;
tools/tools/ifinfo/ifinfo.c
184
for (; isprintnospace(*c); ++c)
tools/tools/ifinfo/ifinfo.c
185
putchar(*c);
tools/tools/ifinfo/ifinfo.c
187
for (; isprintnospace(*c); ++c)
tools/tools/ifinfo/ifinfo.c
70
int c;
tools/tools/ifinfo/ifinfo.c
77
while ((c = getopt(argc, argv, "l")) != -1) {
tools/tools/ifinfo/ifinfo.c
78
switch(c) {
tools/tools/indent_wrapper/indent_wrapper.c
388
int c;
tools/tools/indent_wrapper/indent_wrapper.c
395
while ((c = getopt(argc, argv, "dDvg:s:c:ht:")) != -1) {
tools/tools/indent_wrapper/indent_wrapper.c
396
switch (c) {
tools/tools/intel-ucode-split/intel-ucode-split.c
124
int c, ifd, ofd;
tools/tools/intel-ucode-split/intel-ucode-split.c
128
while ((c = getopt(argc, argv, "nv")) != -1) {
tools/tools/intel-ucode-split/intel-ucode-split.c
129
switch (c) {
tools/tools/kttcp/kttcp.c
104
int c, error, s, verbose, s2, kfd;
tools/tools/kttcp/kttcp.c
128
while ((c = getopt(argc, argv, "46b:n:p:qrtvw:")) != -1) {
tools/tools/kttcp/kttcp.c
129
switch (c) {
tools/tools/mwl/mwldebug/mwldebug.c
136
int c, op, i;
tools/tools/mwl/mwldebug/mwldebug.c
181
c = *cp;
tools/tools/mwl/mwldebug/mwldebug.c
182
if (isdigit(c))
tools/tools/mwl/mwlstats/main.c
65
int c;
tools/tools/mwl/mwlstats/main.c
68
while ((c = getopt(argc, argv, "i:lo:")) != -1) {
tools/tools/mwl/mwlstats/main.c
69
switch (c) {
tools/tools/net80211/stumbler/stumbler.c
259
void set_chan(int c) {
tools/tools/net80211/stumbler/stumbler.c
260
chaninfo.ireq.i_val = c;
tools/tools/net80211/stumbler/stumbler.c
265
chaninfo.chan = c;
tools/tools/net80211/stumbler/stumbler.c
342
int c;
tools/tools/net80211/stumbler/stumbler.c
344
c = getch();
tools/tools/net80211/stumbler/stumbler.c
346
switch (c) {
tools/tools/net80211/stumbler/stumbler.c
373
chan[pos++] = c;
tools/tools/net80211/stumbler/stumbler.c
892
int c;
tools/tools/net80211/stumbler/stumbler.c
894
c = chaninfo.chan + 1;
tools/tools/net80211/stumbler/stumbler.c
896
if (c > 11)
tools/tools/net80211/stumbler/stumbler.c
897
c = 1;
tools/tools/net80211/stumbler/stumbler.c
899
set_chan(c);
tools/tools/net80211/w00t/ap/ap.c
566
struct client* c = p->clients;
tools/tools/net80211/w00t/ap/ap.c
568
while (c) {
tools/tools/net80211/w00t/ap/ap.c
569
if (memcmp(c->mac, mac, 6) == 0)
tools/tools/net80211/w00t/ap/ap.c
570
return c;
tools/tools/net80211/w00t/ap/ap.c
572
c = c->next;
tools/tools/net80211/w00t/ap/ap.c
578
void client_insert(struct params *p, struct client *c)
tools/tools/net80211/w00t/ap/ap.c
584
mac2str(mac, c->mac);
tools/tools/net80211/w00t/ap/ap.c
589
c->next = p->clients;
tools/tools/net80211/w00t/ap/ap.c
590
p->clients = c;
tools/tools/net80211/w00t/ap/ap.c
595
struct client *c;
tools/tools/net80211/w00t/ap/ap.c
604
c = client_find(p, wh->i_addr2);
tools/tools/net80211/w00t/ap/ap.c
605
if (!c) {
tools/tools/net80211/w00t/ap/ap.c
606
c = malloc(sizeof(*c));
tools/tools/net80211/w00t/ap/ap.c
607
if (!c)
tools/tools/net80211/w00t/ap/ap.c
610
memset(c, 0, sizeof(*c));
tools/tools/net80211/w00t/ap/ap.c
611
memcpy(c->mac, wh->i_addr2, 6);
tools/tools/net80211/w00t/ap/ap.c
613
c->seq = s-1;
tools/tools/net80211/w00t/ap/ap.c
614
client_insert(p, c);
tools/tools/net80211/w00t/ap/ap.c
618
if ( (s <= c->seq) && ((c->seq - s ) < 5)) {
tools/tools/net80211/w00t/ap/ap.c
621
s, c->seq);
tools/tools/net80211/w00t/ap/ap.c
631
mac2str(mac, c->mac);
tools/tools/net80211/w00t/ap/ap.c
632
printf("%s seq %d prev %d\n", mac, s, c->seq);
tools/tools/net80211/w00t/ap/ap.c
636
c->seq = s;
tools/tools/net80211/wesside/wesside/wesside.c
325
void set_chan(int c) {
tools/tools/net80211/wesside/wesside/wesside.c
326
if (c == chaninfo.chan)
tools/tools/net80211/wesside/wesside/wesside.c
329
chaninfo.ireq.i_val = c;
tools/tools/net80211/wesside/wesside/wesside.c
335
chaninfo.chan = c;
tools/tools/net80211/wlantxtime/wlantxtime.c
68
#define KASSERT(c, msg) do { \
tools/tools/net80211/wlantxtime/wlantxtime.c
69
if (!(c)) { \
tools/tools/net80211/wlanwds/wlanwds.c
112
int s, c, logmask, bg = 1;
tools/tools/net80211/wlanwds/wlanwds.c
118
while ((c = getopt(argc, argv, "efjP:s:tv")) != -1)
tools/tools/net80211/wlanwds/wlanwds.c
119
switch (c) {
tools/tools/netmap/lb.c
1060
struct my_ctrs *c = &counters_buf.ctrs[i];
tools/tools/netmap/lb.c
1061
*c = ports[i].ctr;
tools/tools/netmap/lb.c
1067
c->oq_n = ports[i].oq->n;
tools/tools/netmap/lb.c
254
struct my_ctrs *c = &counters_buf.ctrs[j];
tools/tools/netmap/lb.c
255
cur.pkts += c->pkts;
tools/tools/netmap/lb.c
256
cur.drop += c->drop;
tools/tools/netmap/lb.c
257
cur.drop_bytes += c->drop_bytes;
tools/tools/netmap/lb.c
258
cur.bytes += c->bytes;
tools/tools/netmap/lb.c
261
x.pkts = c->pkts - pipe_prev[j].pkts;
tools/tools/netmap/lb.c
262
x.drop = c->drop - pipe_prev[j].drop;
tools/tools/netmap/lb.c
263
x.bytes = c->bytes - pipe_prev[j].bytes;
tools/tools/netmap/lb.c
264
x.drop_bytes = c->drop_bytes - pipe_prev[j].drop_bytes;
tools/tools/netmap/lb.c
270
pipe_prev[j] = *c;
tools/tools/netmap/lb.c
288
c->pkts,
tools/tools/netmap/lb.c
289
c->drop,
tools/tools/netmap/lb.c
294
c->oq_n);
tools/tools/netmap/nmreplay.c
458
#define pthread_setaffinity_np(a, b, c) ((void)a, 0)
tools/tools/netmap/nmreplay.c
459
#define sched_setscheduler(a, b, c) (1) /* error */
tools/tools/netmap/pkt-gen.c
175
#define pthread_setaffinity_np(a, b, c) ((void)a, 0)
tools/tools/netmap/pkt-gen.c
90
#define pthread_setaffinity_np(a, b, c) !SetThreadAffinityMask(a, *c) //((void)a, 0)
tools/tools/npe/npestats/main.c
73
int c, banner = 1;
tools/tools/npe/npestats/main.c
79
while ((c = getopt(argc, argv, "bi:lo:z")) != -1) {
tools/tools/npe/npestats/main.c
80
switch (c) {
tools/tools/nvmf/nvmfd/controller.c
100
handle_property_set(struct controller *c, const struct nvmf_capsule *nc,
tools/tools/nvmf/nvmfd/controller.c
107
if (!update_cc(c, le32toh(pset->value.u32.low)))
tools/tools/nvmf/nvmfd/controller.c
121
handle_fabrics_command(struct controller *c,
tools/tools/nvmf/nvmfd/controller.c
126
handle_property_get(c, nc,
tools/tools/nvmf/nvmfd/controller.c
130
handle_property_set(c, nc,
tools/tools/nvmf/nvmfd/controller.c
150
handle_identify_command(const struct controller *c,
tools/tools/nvmf/nvmfd/controller.c
164
nvmf_send_controller_data(nc, &c->cdata, sizeof(c->cdata));
tools/tools/nvmf/nvmfd/controller.c
171
controller_handle_admin_commands(struct controller *c, handle_command *cb,
tools/tools/nvmf/nvmfd/controller.c
174
struct nvmf_qpair *qp = c->qp;
tools/tools/nvmf/nvmfd/controller.c
193
if (NVMEV(NVME_CC_REG_EN, c->cc) == 0 &&
tools/tools/nvmf/nvmfd/controller.c
210
handle_fabrics_command(c, nc,
tools/tools/nvmf/nvmfd/controller.c
214
handle_identify_command(c, nc, cmd);
tools/tools/nvmf/nvmfd/controller.c
229
struct controller *c;
tools/tools/nvmf/nvmfd/controller.c
231
c = calloc(1, sizeof(*c));
tools/tools/nvmf/nvmfd/controller.c
232
c->qp = qp;
tools/tools/nvmf/nvmfd/controller.c
233
c->cap = nvmf_controller_cap(c->qp);
tools/tools/nvmf/nvmfd/controller.c
234
c->vs = cdata->ver;
tools/tools/nvmf/nvmfd/controller.c
235
c->cdata = *cdata;
tools/tools/nvmf/nvmfd/controller.c
237
return (c);
tools/tools/nvmf/nvmfd/controller.c
241
free_controller(struct controller *c)
tools/tools/nvmf/nvmfd/controller.c
243
free(c);
tools/tools/nvmf/nvmfd/controller.c
29
update_cc(struct controller *c, uint32_t new_cc)
tools/tools/nvmf/nvmfd/controller.c
33
if (c->shutdown)
tools/tools/nvmf/nvmfd/controller.c
35
if (!nvmf_validate_cc(c->qp, c->cap, c->cc, new_cc))
tools/tools/nvmf/nvmfd/controller.c
38
changes = c->cc ^ new_cc;
tools/tools/nvmf/nvmfd/controller.c
39
c->cc = new_cc;
tools/tools/nvmf/nvmfd/controller.c
44
c->csts &= ~NVMEM(NVME_CSTS_REG_SHST);
tools/tools/nvmf/nvmfd/controller.c
45
c->csts |= NVMEF(NVME_CSTS_REG_SHST, NVME_SHST_COMPLETE);
tools/tools/nvmf/nvmfd/controller.c
46
c->shutdown = true;
tools/tools/nvmf/nvmfd/controller.c
52
c->csts = 0;
tools/tools/nvmf/nvmfd/controller.c
53
c->shutdown = true;
tools/tools/nvmf/nvmfd/controller.c
55
c->csts |= NVMEF(NVME_CSTS_REG_RDY, 1);
tools/tools/nvmf/nvmfd/controller.c
61
handle_property_get(const struct controller *c, const struct nvmf_capsule *nc,
tools/tools/nvmf/nvmfd/controller.c
72
rsp.value.u64 = htole64(c->cap);
tools/tools/nvmf/nvmfd/controller.c
77
rsp.value.u32.low = htole32(c->vs);
tools/tools/nvmf/nvmfd/controller.c
82
rsp.value.u32.low = htole32(c->cc);
tools/tools/nvmf/nvmfd/controller.c
87
rsp.value.u32.low = htole32(c->csts);
tools/tools/nvmf/nvmfd/discovery.c
268
controller_handle_admin_commands(dta->c, discovery_command, &dc);
tools/tools/nvmf/nvmfd/discovery.c
271
free_controller(dta->c);
tools/tools/nvmf/nvmfd/discovery.c
323
dta->c = init_controller(qp, &cdata);
tools/tools/nvmf/nvmfd/discovery.c
328
free_controller(dta->c);
tools/tools/nvmf/nvmfd/discovery.c
34
struct controller *c;
tools/tools/nvmf/nvmfd/internal.h
30
void controller_handle_admin_commands(struct controller *c,
tools/tools/nvmf/nvmfd/internal.h
34
void free_controller(struct controller *c);
tools/tools/nvmf/nvmfd/io.c
21
struct controller *c;
tools/tools/nvmf/nvmfd/io.c
284
controller_handle_admin_commands(ioc->c, admin_command, ioc);
tools/tools/nvmf/nvmfd/io.c
301
free_controller(ioc->c);
tools/tools/nvmf/nvmfd/io.c
511
ioc->c = init_controller(qp, &cdata);
usr.bin/at/at.c
733
int c;
usr.bin/at/at.c
776
while ((c=getopt(argc, argv, options)) != -1)
usr.bin/at/at.c
777
switch (c) {
usr.bin/beep/beep.c
166
int c;
usr.bin/beep/beep.c
169
while ((c = getopt(argc, argv, "BF:D:r:g:d:h")) != -1) {
usr.bin/beep/beep.c
170
switch (c) {
usr.bin/beep/beep.c
214
c = 1; /* mono */
usr.bin/beep/beep.c
215
if (ioctl(f, SOUND_PCM_WRITE_CHANNELS, &c) != 0)
usr.bin/beep/beep.c
218
c = AFMT_FLOAT;
usr.bin/beep/beep.c
219
if (ioctl(f, SNDCTL_DSP_SETFMT, &c) != 0)
usr.bin/beep/beep.c
225
c = (2 << 16);
usr.bin/beep/beep.c
226
while ((1ULL << (c & 63)) < (size_t)(4 * sample_rate / 50))
usr.bin/beep/beep.c
227
c++;
usr.bin/beep/beep.c
228
if (ioctl(f, SNDCTL_DSP_SETFRAGMENT, &c))
usr.bin/beep/beep.c
229
errx(1, "ioctl SNDCTL_DSP_SETFRAGMENT(0x%x) failed", c);
usr.bin/beep/beep.c
231
if (ioctl(f, SNDCTL_DSP_GETODELAY, &c) != 0)
usr.bin/beep/beep.c
271
while (ioctl(f, SNDCTL_DSP_GETODELAY, &c) == 0) {
usr.bin/beep/beep.c
272
if (c == 0)
usr.bin/bintrans/qp.c
38
hexval(int c)
usr.bin/bintrans/qp.c
40
if ('0' <= c && c <= '9')
usr.bin/bintrans/qp.c
41
return c - '0';
usr.bin/bintrans/qp.c
42
return (10 + c - 'A');
usr.bin/bintrans/uudecode.c
368
#define DEC(c) (((c) - ' ') & 077) /* single character decode */
usr.bin/bintrans/uudecode.c
369
#define IS_DEC(c) ( (((c) - ' ') >= 0) && (((c) - ' ') <= 077 + 1) )
usr.bin/bintrans/uuencode.c
153
#define ENC(c) ((c) ? ((c) & 077) + ' ': '`')
usr.bin/bsdiff/bsdiff/divsufsort64.h
173
saint_t c, saidx64_t *left);
usr.bin/calendar/io.c
213
char *walk, *sep, a, c;
usr.bin/calendar/io.c
324
c = walk[strlen(walk) - 1];
usr.bin/calendar/io.c
326
if (a != c) {
usr.bin/calendar/io.c
440
char *c, *cc;
usr.bin/calendar/io.c
454
c = strstr(buf, "*/");
usr.bin/calendar/io.c
455
if (c) {
usr.bin/calendar/io.c
456
c += 2;
usr.bin/calendar/io.c
457
linelen -= c - buf;
usr.bin/calendar/io.c
458
buf = c;
usr.bin/calendar/io.c
467
c = strstr(bufp, "//");
usr.bin/calendar/io.c
469
if (c != NULL && (cc == NULL || c - cc < 0)) {
usr.bin/calendar/io.c
470
bufp = c + 2;
usr.bin/calendar/io.c
472
if (c == buf || isspace(c[-1])) {
usr.bin/calendar/io.c
474
*c = '\0';
usr.bin/calendar/io.c
475
linelen = c - buf;
usr.bin/calendar/io.c
479
c = strstr(cc + 2, "*/");
usr.bin/calendar/io.c
480
if (c != NULL) { // 'a /* b */ c' -- cc=2, c=7+2
usr.bin/calendar/io.c
482
c += 2;
usr.bin/calendar/io.c
483
memmove(cc, c, buf + linelen + 1 - c);
usr.bin/calendar/io.c
484
linelen -= c - cc;
usr.bin/calendar/io.c
494
} while (c != NULL || cc != NULL);
usr.bin/calendar/paskha.c
54
int a, b, c, d, e;
usr.bin/calendar/paskha.c
61
c = R % 7;
usr.bin/calendar/paskha.c
63
e = (2 * b + 4 * c + 6 * d + y) % 7;
usr.bin/calendar/sunpos.c
56
comp(char *s, double v, double c)
usr.bin/calendar/sunpos.c
59
printf("%-*s %*g %*g %*g\n", 15, s, 15, v, 15, c, 15, v - c);
usr.bin/cap_mkdb/cap_mkdb.c
70
int byteorder, c;
usr.bin/cap_mkdb/cap_mkdb.c
74
while ((c = getopt(argc, argv, "bf:lv")) != -1) {
usr.bin/cap_mkdb/cap_mkdb.c
75
switch(c) {
usr.bin/cap_mkdb/cap_mkdb.c
80
byteorder = c == 'b' ? 4321 : 1234;
usr.bin/chat/chat.c
1023
char c;
usr.bin/chat/chat.c
1025
status = read(STDIN_FILENO, &c, 1);
usr.bin/chat/chat.c
1029
return ((int)c & 0x7F);
usr.bin/chat/chat.c
1045
int put_char(int c)
usr.bin/chat/chat.c
1048
char ch = c;
usr.bin/chat/chat.c
1073
write_char(int c)
usr.bin/chat/chat.c
1075
if (alarmed || put_char(c) < 0) {
usr.bin/chat/chat.c
1102
char c = *s++;
usr.bin/chat/chat.c
1104
if (c != '\\') {
usr.bin/chat/chat.c
1105
if (!write_char (c))
usr.bin/chat/chat.c
1110
c = *s++;
usr.bin/chat/chat.c
1111
switch (c) {
usr.bin/chat/chat.c
1125
if (!write_char (c))
usr.bin/chat/chat.c
1173
int c;
usr.bin/chat/chat.c
1202
while ( ! alarmed && (c = get_char()) >= 0) {
usr.bin/chat/chat.c
1206
echo_stderr(c);
usr.bin/chat/chat.c
1207
if (verbose && c == '\n') {
usr.bin/chat/chat.c
1215
*s++ = c;
usr.bin/chat/chat.c
1223
if (c == '\n')
usr.bin/chat/chat.c
1225
else if (c != '\r')
usr.bin/chat/chat.c
1226
fprintf( stderr, "%s", character(c) );
usr.bin/chat/chat.c
1247
if (!iscntrl (c)) {
usr.bin/chat/chat.c
1249
report_buffer[rep_len] = c;
usr.bin/chat/chat.c
1259
c == string[len - 1] &&
usr.bin/chat/chat.c
1335
#define OUTCHAR(c) (buflen > 0? (--buflen, *buf++ = (c)): 0)
usr.bin/chat/chat.c
1340
int c, i, n;
usr.bin/chat/chat.c
1366
c = *++fmt;
usr.bin/chat/chat.c
1369
if (c == '0') {
usr.bin/chat/chat.c
1371
c = *++fmt;
usr.bin/chat/chat.c
1373
if (c == '*') {
usr.bin/chat/chat.c
1375
c = *++fmt;
usr.bin/chat/chat.c
1377
while (isdigit(c)) {
usr.bin/chat/chat.c
1378
width = width * 10 + c - '0';
usr.bin/chat/chat.c
1379
c = *++fmt;
usr.bin/chat/chat.c
1382
if (c == '.') {
usr.bin/chat/chat.c
1383
c = *++fmt;
usr.bin/chat/chat.c
1384
if (c == '*') {
usr.bin/chat/chat.c
1386
c = *++fmt;
usr.bin/chat/chat.c
1388
while (isdigit(c)) {
usr.bin/chat/chat.c
1389
prec = prec * 10 + c - '0';
usr.bin/chat/chat.c
1390
c = *++fmt;
usr.bin/chat/chat.c
1398
switch (c) {
usr.bin/chat/chat.c
143
void *dup_mem(void *b, size_t c);
usr.bin/chat/chat.c
1434
quoted = c == 'q';
usr.bin/chat/chat.c
1444
c = *p++;
usr.bin/chat/chat.c
1446
if (!quoted && c >= 0x80) {
usr.bin/chat/chat.c
1449
c -= 0x80;
usr.bin/chat/chat.c
1451
if (quoted && (c == '"' || c == '\\'))
usr.bin/chat/chat.c
1453
if (c < 0x20 || (0x7f <= c && c < 0xa0)) {
usr.bin/chat/chat.c
1456
switch (c) {
usr.bin/chat/chat.c
1463
OUTCHAR(hexchars[c >> 4]);
usr.bin/chat/chat.c
1464
OUTCHAR(hexchars[c & 0xf]);
usr.bin/chat/chat.c
1467
if (c == '\t')
usr.bin/chat/chat.c
1468
OUTCHAR(c);
usr.bin/chat/chat.c
1471
OUTCHAR(c ^ 0x40);
usr.bin/chat/chat.c
1475
OUTCHAR(c);
usr.bin/chat/chat.c
1480
if (c != '%')
usr.bin/chat/chat.c
160
int write_char(int c);
usr.bin/chat/chat.c
161
int put_char(int c);
usr.bin/chat/chat.c
164
char *character(int c);
usr.bin/chat/chat.c
172
dup_mem(void *b, size_t c)
usr.bin/chat/chat.c
174
void *ans = malloc (c);
usr.bin/chat/chat.c
178
memcpy (ans, b, c);
usr.bin/chat/chat.c
517
int c;
usr.bin/chat/chat.c
523
c = get_char();
usr.bin/chat/chat.c
525
if (c < 0 || iscntrl(c))
usr.bin/chat/chat.c
527
report_buffer[rep_len] = c;
usr.bin/chat/chat.c
848
character(int c)
usr.bin/chat/chat.c
853
meta = (c & 0x80) ? "M-" : "";
usr.bin/chat/chat.c
854
c &= 0x7F;
usr.bin/chat/chat.c
856
if (c < 32)
usr.bin/chat/chat.c
857
sprintf(string, "%s^%c", meta, (int)c + '@');
usr.bin/chat/chat.c
858
else if (c == 127)
usr.bin/chat/chat.c
861
sprintf(string, "%s%c", meta, c);
usr.bin/col/col.c
115
CHAR *c;
usr.bin/col/col.c
310
c = &l->l_line[l->l_line_len++];
usr.bin/col/col.c
311
c->c_char = ch;
usr.bin/col/col.c
312
c->c_set = cur_set;
usr.bin/col/col.c
313
c->c_column = cur_col;
usr.bin/col/col.c
314
c->c_width = wcwidth(ch);
usr.bin/col/col.c
323
if (c->c_width > 0)
usr.bin/col/col.c
324
cur_col += c->c_width;
usr.bin/col/col.c
422
CHAR *c, *endc;
usr.bin/col/col.c
449
for (i = nchars, c = l->l_line; --i >= 0; c++)
usr.bin/col/col.c
450
count[c->c_column]++;
usr.bin/col/col.c
462
for (i = nchars, c = l->l_line; --i >= 0; c++)
usr.bin/col/col.c
463
sorted[count[c->c_column]++] = *c;
usr.bin/col/col.c
464
c = sorted;
usr.bin/col/col.c
466
c = l->l_line;
usr.bin/col/col.c
468
this_col = c->c_column;
usr.bin/col/col.c
469
endc = c;
usr.bin/col/col.c
476
c = endc - 1;
usr.bin/col/col.c
478
this_col + c->c_width > endc->c_column)
usr.bin/col/col.c
507
if (c->c_set != last_set) {
usr.bin/col/col.c
508
switch (c->c_set) {
usr.bin/col/col.c
515
last_set = c->c_set;
usr.bin/col/col.c
517
PUTC(c->c_char);
usr.bin/col/col.c
518
if ((c + 1) < endc)
usr.bin/col/col.c
519
for (j = 0; j < c->c_width; j++)
usr.bin/col/col.c
521
if (++c >= endc)
usr.bin/col/col.c
524
last_col += (c - 1)->c_width;
usr.bin/compress/zopen.c
235
int c, disp;
usr.bin/compress/zopen.c
281
c = *bp++;
usr.bin/compress/zopen.c
283
fcode = (long)(((long)c << maxbits) + ent);
usr.bin/compress/zopen.c
284
i = ((c << hshift) ^ ent); /* Xor hashing. */
usr.bin/compress/zopen.c
306
ent = c;
usr.bin/ctags/C.c
108
skip_string(c);
usr.bin/ctags/C.c
117
if (GETC(==, '*') || c == '/') {
usr.bin/ctags/C.c
118
skip_comment(c);
usr.bin/ctags/C.c
121
(void)ungetc(c, inf);
usr.bin/ctags/C.c
122
c = '/';
usr.bin/ctags/C.c
193
if (c == ' ' || c == '\t') {
usr.bin/ctags/C.c
194
int save = c;
usr.bin/ctags/C.c
195
while (GETC(!=, EOF) && (c == ' ' || c == '\t'))
usr.bin/ctags/C.c
197
if (c == EOF)
usr.bin/ctags/C.c
199
(void)ungetc(c, inf);
usr.bin/ctags/C.c
200
c = save;
usr.bin/ctags/C.c
202
storec: if (!intoken(c)) {
usr.bin/ctags/C.c
224
if (str_entry(c))
usr.bin/ctags/C.c
232
else if (sp != tok || begtoken(c)) {
usr.bin/ctags/C.c
237
*sp++ = c;
usr.bin/ctags/C.c
255
int c; /* current character */
usr.bin/ctags/C.c
267
switch (c) {
usr.bin/ctags/C.c
271
skip_string(c);
usr.bin/ctags/C.c
275
if (GETC(==, '*') || c == '/')
usr.bin/ctags/C.c
276
skip_comment(c);
usr.bin/ctags/C.c
298
while (GETC(!=, EOF) && iswhite(c))
usr.bin/ctags/C.c
299
if (c == '\n')
usr.bin/ctags/C.c
301
if (c == EOF)
usr.bin/ctags/C.c
308
if (intoken(c)) {
usr.bin/ctags/C.c
309
*anext++ = c;
usr.bin/ctags/C.c
313
if (intoken(c)) {
usr.bin/ctags/C.c
316
*anext++ = c;
usr.bin/ctags/C.c
322
(void)ungetc(c, inf);
usr.bin/ctags/C.c
328
if (intoken(c) || c == '{')
usr.bin/ctags/C.c
330
if (c == '/' && (GETC(==, '*') || c == '/'))
usr.bin/ctags/C.c
331
skip_comment(c);
usr.bin/ctags/C.c
333
(void)ungetc(c, inf);
usr.bin/ctags/C.c
337
if (c != '{')
usr.bin/ctags/C.c
349
int c; /* character read */
usr.bin/ctags/C.c
355
while (GETC(!=, EOF) && (c == ' ' || c == '\t'))
usr.bin/ctags/C.c
357
(void)ungetc(c, inf);
usr.bin/ctags/C.c
363
if (iswhite(c))
usr.bin/ctags/C.c
369
*sp++ = c;
usr.bin/ctags/C.c
377
if (!iswhite(c))
usr.bin/ctags/C.c
385
*sp++ = c;
usr.bin/ctags/C.c
392
if (!intoken(c))
usr.bin/ctags/C.c
396
if (dflag || c == '(') { /* only want macros */
usr.bin/ctags/C.c
400
skip: if (c == '\n') { /* get rid of rest of define */
usr.bin/ctags/C.c
413
str_entry(int c) /* c is current character */
usr.bin/ctags/C.c
420
while (iswhite(c))
usr.bin/ctags/C.c
423
if (c == '{') /* it was "struct {" */
usr.bin/ctags/C.c
430
*sp++ = c;
usr.bin/ctags/C.c
433
if (!intoken(c))
usr.bin/ctags/C.c
436
switch (c) {
usr.bin/ctags/C.c
445
if (!iswhite(c))
usr.bin/ctags/C.c
447
if (c != '{') {
usr.bin/ctags/C.c
448
(void)ungetc(c, inf);
usr.bin/ctags/C.c
464
int c; /* character read */
usr.bin/ctags/C.c
468
switch(c) {
usr.bin/ctags/C.c
495
int c,
usr.bin/ctags/C.c
499
switch (c) {
usr.bin/ctags/C.c
507
if (c == key && !skip)
usr.bin/ctags/C.c
52
int c; /* current character */
usr.bin/ctags/C.c
520
int c;
usr.bin/ctags/C.c
525
switch(c) {
usr.bin/ctags/C.c
536
skip_string(c);
usr.bin/ctags/C.c
540
if (GETC(==, '*') || c == '/') {
usr.bin/ctags/C.c
541
skip_comment(c);
usr.bin/ctags/C.c
544
(void)ungetc(c, inf);
usr.bin/ctags/C.c
545
c = '/';
usr.bin/ctags/C.c
552
if (c == key && !skip)
usr.bin/ctags/C.c
63
switch (c) {
usr.bin/ctags/ctags.c
287
int c;
usr.bin/ctags/ctags.c
292
if (!iswhite(c)) {
usr.bin/ctags/ctags.c
298
/* lisp */ if (strchr(LISPCHR, c)) {
usr.bin/ctags/ctags.h
42
#define GETC(op,exp) ((c = getc(inf)) op (int)exp)
usr.bin/ctags/print.c
48
int c;
usr.bin/ctags/print.c
55
for (cp = lbuf; GETC(!=, EOF) && c != '\n'; *cp++ = c)
usr.bin/ctags/print.c
63
if (c == '\\') { /* backslashes */
usr.bin/ctags/print.c
69
else if (c == (int)searchar) { /* search character */
usr.bin/ctags/print.c
72
*cp++ = '\\'; *cp++ = c;
usr.bin/ctags/print.c
75
else if (c == '\n') { /* end of keep */
usr.bin/ctags/print.c
80
*cp++ = c;
usr.bin/ctags/yacc.c
102
if (c == ':') {
usr.bin/ctags/yacc.c
107
(void)ungetc(c, inf);
usr.bin/ctags/yacc.c
118
int c; /* read character */
usr.bin/ctags/yacc.c
129
switch (c) {
usr.bin/ctags/yacc.c
46
int c;
usr.bin/ctags/yacc.c
54
switch (c) {
usr.bin/ctags/yacc.c
69
if (skip_key(c))
usr.bin/ctags/yacc.c
75
(void)ungetc(c, inf);
usr.bin/ctags/yacc.c
78
if (GETC(==, '*') || c == '/')
usr.bin/ctags/yacc.c
79
skip_comment(c);
usr.bin/ctags/yacc.c
81
(void)ungetc(c, inf);
usr.bin/ctags/yacc.c
88
if (in_rule || (!isalpha(c) && c != '.' && c != '_'))
usr.bin/ctags/yacc.c
91
*sp++ = c;
usr.bin/ctags/yacc.c
92
while (GETC(!=, EOF) && (intoken(c) || c == '.'))
usr.bin/ctags/yacc.c
93
*sp++ = c;
usr.bin/ctags/yacc.c
96
while (iswhite(c)) {
usr.bin/ctags/yacc.c
97
if (c == '\n')
usr.bin/ctlstat/ctlstat.c
810
int c;
usr.bin/ctlstat/ctlstat.c
815
c = ctx->prev_alloc;
usr.bin/ctlstat/ctlstat.c
817
ctx->cur_alloc = c;
usr.bin/ctlstat/ctlstat.c
818
c = ctx->prev_items;
usr.bin/ctlstat/ctlstat.c
820
ctx->cur_items = c;
usr.bin/ctlstat/ctlstat.c
848
int c;
usr.bin/ctlstat/ctlstat.c
875
while ((c = getopt(argc, argv, ctlstat_opts)) != -1) {
usr.bin/ctlstat/ctlstat.c
876
switch (c) {
usr.bin/diff/diffreg.c
1067
change(char *file1, FILE *f1, char *file2, FILE *f2, int a, int b, int c, int d,
usr.bin/diff/diffreg.c
1079
a > b && c > d)
usr.bin/diff/diffreg.c
1097
if (a > b || c <= d) { /* Changes and inserts. */
usr.bin/diff/diffreg.c
1098
for (i = c; i <= d; i++) {
usr.bin/diff/diffreg.c
1138
c - context_vec_ptr->d - 1 > dist) {
usr.bin/diff/diffreg.c
1151
context_vec_ptr->c = c;
usr.bin/diff/diffreg.c
1163
printf("%c", a > b ? 'a' : c > d ? 'd' : 'c');
usr.bin/diff/diffreg.c
1165
range(c, d, ",");
usr.bin/diff/diffreg.c
1169
printf("%c", a > b ? 'a' : c > d ? 'd' : 'c');
usr.bin/diff/diffreg.c
1175
printf("a%d %d\n", b, d - c + 1);
usr.bin/diff/diffreg.c
1178
if (!(c > d))
usr.bin/diff/diffreg.c
1180
printf("a%d %d\n", b, d - c + 1);
usr.bin/diff/diffreg.c
1198
fetch(ixnew, c, d, f2, '>', 0, *pflags);
usr.bin/diff/diffreg.c
1212
else if (color && c > d)
usr.bin/diff/diffreg.c
1222
else if (color && c > d)
usr.bin/diff/diffreg.c
1224
printf("%c", (a > b) ? '>' : ((c > d) ? '<' : '|'));
usr.bin/diff/diffreg.c
1225
if (color && c > d)
usr.bin/diff/diffreg.c
1228
fetch(ixnew, c, d, f2, '\0', 0, *pflags);
usr.bin/diff/diffreg.c
1233
if (a <= b && c <= d && diff_format == D_NORMAL)
usr.bin/diff/diffreg.c
1237
fetch(ixnew, c, d, f2, diff_format == D_NORMAL ? '>' : '\0', 0, *pflags);
usr.bin/diff/diffreg.c
1250
c += edoffset;
usr.bin/diff/diffreg.c
1253
if ((diff_format == D_EDIT || diff_format == D_REVERSE) && c <= d)
usr.bin/diff/diffreg.c
1264
int i, j, c, lastc, col, nc, newcol;
usr.bin/diff/diffreg.c
1316
c = getc(lb);
usr.bin/diff/diffreg.c
1317
if (flags & D_STRIPCR && c == '\r') {
usr.bin/diff/diffreg.c
1318
if ((c = getc(lb)) == '\n')
usr.bin/diff/diffreg.c
1321
ungetc(c, lb);
usr.bin/diff/diffreg.c
1322
c = '\r';
usr.bin/diff/diffreg.c
1325
if (c == EOF) {
usr.bin/diff/diffreg.c
1338
if (c == '\t') {
usr.bin/diff/diffreg.c
1357
if (diff_format == D_EDIT && j == 1 && c == '\n' &&
usr.bin/diff/diffreg.c
1370
if (diff_format != D_SIDEBYSIDE || c != '\n') {
usr.bin/diff/diffreg.c
1371
if (color && c == '\n')
usr.bin/diff/diffreg.c
1372
printf("\033[m%c", c);
usr.bin/diff/diffreg.c
1374
printf("%c", c);
usr.bin/diff/diffreg.c
1380
lastc = c;
usr.bin/diff/diffreg.c
1516
int a, b, c, d;
usr.bin/diff/diffreg.c
1527
if (ckd_sub(&lowc, cvp->c, diff_context) || lowc < 1)
usr.bin/diff/diffreg.c
1558
c = cvp->c;
usr.bin/diff/diffreg.c
1561
if (a <= b && c <= d)
usr.bin/diff/diffreg.c
1585
if (cvp->c <= cvp->d) {
usr.bin/diff/diffreg.c
1594
c = cvp->c;
usr.bin/diff/diffreg.c
1597
if (a <= b && c <= d)
usr.bin/diff/diffreg.c
1605
fetch(ixnew, lowc, c - 1, f2, ' ', 0, flags);
usr.bin/diff/diffreg.c
1606
fetch(ixnew, c, d, f2,
usr.bin/diff/diffreg.c
1623
int a, b, c, d;
usr.bin/diff/diffreg.c
1634
if (ckd_sub(&lowc, cvp->c, diff_context) || lowc < 1)
usr.bin/diff/diffreg.c
165
int c; /* start line in new file */
usr.bin/diff/diffreg.c
1658
c = cvp->c;
usr.bin/diff/diffreg.c
1666
if (a <= b && c <= d)
usr.bin/diff/diffreg.c
1675
fetch(ixnew, c, d, f2, '+', 0, flags);
usr.bin/diff/diffreg.c
1682
fetch(ixnew, lowc, c - 1, f2, ' ', 0, flags);
usr.bin/diff/diffreg.c
1683
fetch(ixnew, c, d, f2, '+', 0, flags);
usr.bin/diff/diffreg.c
255
clow2low(int c)
usr.bin/diff/diffreg.c
258
return (c);
usr.bin/diff/diffreg.c
262
cup2low(int c)
usr.bin/diff/diffreg.c
265
return (tolower(c));
usr.bin/diff/diffreg.c
610
equiv(struct line *a, int n, struct line *b, int m, int *c)
usr.bin/diff/diffreg.c
628
c[j] = -b[j].serial;
usr.bin/diff/diffreg.c
631
c[j] = b[j].serial;
usr.bin/diff/diffreg.c
634
c[j] = -1;
usr.bin/diff/diffreg.c
638
stone(int *a, int n, int *b, int *c, int flags)
usr.bin/diff/diffreg.c
652
c[0] = newcand(0, 0, 0);
usr.bin/diff/diffreg.c
659
oldc = c[0];
usr.bin/diff/diffreg.c
664
l = search(c, k, y);
usr.bin/diff/diffreg.c
666
oldc = c[l - 1];
usr.bin/diff/diffreg.c
668
if (clist[c[l]].y <= y)
usr.bin/diff/diffreg.c
670
tc = c[l];
usr.bin/diff/diffreg.c
671
c[l] = newcand(i, y, oldc);
usr.bin/diff/diffreg.c
676
c[l] = newcand(i, y, oldc);
usr.bin/diff/diffreg.c
702
search(int *c, int k, int y)
usr.bin/diff/diffreg.c
706
if (clist[c[k]].y < y) /* quick look for typical case */
usr.bin/diff/diffreg.c
714
t = clist[c[l]].y;
usr.bin/diff/diffreg.c
747
int i, j, /* jackpot, */ c, d;
usr.bin/diff/diffreg.c
767
c = getc(f1);
usr.bin/diff/diffreg.c
774
if (c == EOF && isspace(d)) {
usr.bin/diff/diffreg.c
777
} else if (isspace(c) && d == EOF) {
usr.bin/diff/diffreg.c
784
if (flags & D_STRIPCR && (c == '\r' || d == '\r')) {
usr.bin/diff/diffreg.c
785
if (c == '\r') {
usr.bin/diff/diffreg.c
786
if ((c = getc(f1)) == '\n') {
usr.bin/diff/diffreg.c
789
ungetc(c, f1);
usr.bin/diff/diffreg.c
801
if ((flags & D_FOLDBLANKS) && isspace(c) &&
usr.bin/diff/diffreg.c
804
if (c == '\n')
usr.bin/diff/diffreg.c
807
} while (isspace(c = getc(f1)));
usr.bin/diff/diffreg.c
814
while (isspace(c) && c != '\n') {
usr.bin/diff/diffreg.c
815
c = getc(f1);
usr.bin/diff/diffreg.c
823
if (chrtran(c) != chrtran(d)) {
usr.bin/diff/diffreg.c
826
if (c != '\n' && c != EOF)
usr.bin/diff/diffreg.c
828
if (d != '\n' && c != EOF)
usr.bin/diff/diffreg.c
832
if (c == '\n' || c == EOF)
usr.bin/diff/diffreg.c
839
if ((c = getc(f1)) != (d = getc(f2))) {
usr.bin/diff/diffreg.c
842
if (c != '\n' && c != EOF)
usr.bin/diff/diffreg.c
844
if (d != '\n' && c != EOF)
usr.bin/diff/diffreg.c
848
if (c == '\n' || c == EOF)
usr.bin/diff/diffreg.c
914
int i, c;
usr.bin/diff/diffreg.c
916
for (i = 1; (c = getc(f)) != '\n' && c != EOF; i++)
usr.bin/diff/diffreg.c
991
if ((c = getc(f1)) == EOF)
usr.bin/diff/diffreg.c
993
printf("%c", c);
usr.bin/diff3/diff3.c
255
int a, b, c, d;
usr.bin/diff3/diff3.c
271
c = d = strtoi(p, &p);
usr.bin/diff3/diff3.c
281
c++;
usr.bin/diff3/diff3.c
286
if (b < a || d < c)
usr.bin/diff3/diff3.c
290
(*dd)[i].new.from = c;
usr.bin/diff3/diff3.c
591
int c, d;
usr.bin/diff3/diff3.c
602
c = getc(fp[0]);
usr.bin/diff3/diff3.c
604
if (c == -1 && d == -1)
usr.bin/diff3/diff3.c
606
if (c == -1 || d == -1)
usr.bin/diff3/diff3.c
609
if (c != d) {
usr.bin/diff3/diff3.c
613
} while (c != '\n');
usr.bin/dtc/dtb.cc
126
asm_writer::write_line(const char *c)
usr.bin/dtc/dtb.cc
133
write_string(c);
usr.bin/dtc/dtb.cc
185
asm_writer::write_string(const char *c)
usr.bin/dtc/dtb.cc
187
while (*c)
usr.bin/dtc/dtb.cc
189
buffer.push_back((uint8_t)*(c++));
usr.bin/dtc/dtb.hh
235
void write_string(const char *c);
usr.bin/dtc/dtb.hh
239
void write_string(const std::string &c) override;
usr.bin/dtc/dtb.hh
243
void write_line(const char *c);
usr.bin/dtc/fdt.cc
1032
for (auto &c : child_nodes())
usr.bin/dtc/fdt.cc
1034
c->sort();
usr.bin/dtc/fdt.cc
1155
for (auto &c : other->children)
usr.bin/dtc/fdt.cc
1160
if (i->name == c->name && i->unit_address == c->unit_address)
usr.bin/dtc/fdt.cc
1162
i->merge_node(c);
usr.bin/dtc/fdt.cc
1169
children.push_back(std::move(c));
usr.bin/dtc/fdt.cc
1192
for (auto &c : child_nodes())
usr.bin/dtc/fdt.cc
1194
c->write(writer, strings);
usr.bin/dtc/fdt.cc
1226
for (auto &c : child_nodes())
usr.bin/dtc/fdt.cc
1228
c->write_dts(file, indent+1);
usr.bin/dtc/fdt.cc
1268
for (auto &c : n->child_nodes())
usr.bin/dtc/fdt.cc
1270
collect_names_recursive(n, c, path);
usr.bin/dtc/fdt.cc
1370
for (auto &c : n->child_nodes())
usr.bin/dtc/fdt.cc
1372
assign_phandles(c, next);
usr.bin/dtc/fdt.cc
1447
for (auto &c : target->child_nodes())
usr.bin/dtc/fdt.cc
1449
if (c->name == node_name)
usr.bin/dtc/fdt.cc
1451
if (c->unit_address == node_address)
usr.bin/dtc/fdt.cc
1453
next = c;
usr.bin/dtc/fdt.cc
1458
possible = path + c->name;
usr.bin/dtc/fdt.cc
1459
if (c->unit_address != string())
usr.bin/dtc/fdt.cc
1462
possible += c->unit_address;
usr.bin/dtc/fdt.cc
1992
for (auto &c : node->child_nodes())
usr.bin/dtc/fdt.cc
1994
if (c->name == std::string("fragment"))
usr.bin/dtc/fdt.cc
1996
int current_address = std::stoi(c->unit_address, nullptr, 16);
usr.bin/dtc/fdt.cc
2003
c->unit_address = new_address.str();
usr.bin/dtc/fdt.cc
2215
for (auto &c : n->child_nodes())
usr.bin/dtc/fdt.cc
2217
if (c->name == p.first)
usr.bin/dtc/fdt.cc
2219
if (c->unit_address == p.second)
usr.bin/dtc/fdt.cc
2221
n = c;
usr.bin/dtc/fdt.cc
265
while (char c = *input)
usr.bin/dtc/fdt.cc
267
if (c == '"' && !isEscaped)
usr.bin/dtc/fdt.cc
272
isEscaped = (c == '\\');
usr.bin/dtc/fdt.cc
273
bytes.push_back(c);
usr.bin/dtc/fdt.cc
761
for (auto &&c : children)
usr.bin/dtc/fdt.cc
763
behavior = c->visit(fn, this);
usr.bin/dtc/input_buffer.cc
1142
char c = (b.buffer[i+line_start] == '\t') ? '\t' : ' ';
usr.bin/dtc/input_buffer.cc
1143
putc(c, stderr);
usr.bin/dtc/input_buffer.cc
1167
static inline bool check(const char c)
usr.bin/dtc/input_buffer.cc
1169
return ((c >= 'a') && (c <= 'z')) || ((c >= 'A') &&
usr.bin/dtc/input_buffer.cc
1170
(c <= 'Z'));
usr.bin/dtc/input_buffer.cc
1179
static inline bool check(const char c)
usr.bin/dtc/input_buffer.cc
1181
switch(c)
usr.bin/dtc/input_buffer.cc
1198
static inline bool check(const char c)
usr.bin/dtc/input_buffer.cc
1200
switch(c)
usr.bin/dtc/input_buffer.cc
1216
for (char c=*s ; T::check(c) ; c=*(++s))
usr.bin/dtc/input_buffer.cc
1218
bytes.push_back(c);
usr.bin/dtc/input_buffer.cc
1245
for (char c=*(*this) ; is_node_name_character::check(c) ; c=*(++(*this)))
usr.bin/dtc/input_buffer.cc
1247
bytes.push_back(c);
usr.bin/dtc/input_buffer.cc
1249
for (char c=*(*this) ; is_property_name_character::check(c) ; c=*(++(*this)))
usr.bin/dtc/input_buffer.cc
1251
bytes.push_back(c);
usr.bin/dtc/input_buffer.cc
1261
for (char c=*(*this) ; c != stop ; c=*(++(*this)))
usr.bin/dtc/input_buffer.cc
1263
bytes.push_back(c);
usr.bin/dtc/input_buffer.cc
1272
for (char c=*(*this) ; c != stop ; c=*(++(*this)))
usr.bin/dtc/input_buffer.cc
1278
bytes.push_back(c);
usr.bin/dtc/input_buffer.cc
133
int c;
usr.bin/dtc/input_buffer.cc
134
while ((c = fgetc(stdin)) != EOF)
usr.bin/dtc/input_buffer.cc
136
b.push_back(c);
usr.bin/dtc/input_buffer.cc
149
input_buffer::skip_to(char c)
usr.bin/dtc/input_buffer.cc
151
while ((cursor < size) && (buffer[cursor] != c))
usr.bin/dtc/input_buffer.cc
158
text_input_buffer::skip_to(char c)
usr.bin/dtc/input_buffer.cc
160
while (!finished() && (*(*this) != c))
usr.bin/dtc/input_buffer.cc
170
char c = *(*this);
usr.bin/dtc/input_buffer.cc
172
while ((c == ' ') || (c == '\t') || (c == '\n') || (c == '\f')
usr.bin/dtc/input_buffer.cc
173
|| (c == '\v') || (c == '\r'))
usr.bin/dtc/input_buffer.cc
175
last_nl = ((c == '\n') || (c == '\r'));
usr.bin/dtc/input_buffer.cc
179
c = '\0';
usr.bin/dtc/input_buffer.cc
183
c = *(*this);
usr.bin/dtc/input_buffer.cc
187
if ((c == '#') && ((cursor == 0) || last_nl))
usr.bin/dtc/input_buffer.cc
670
result c = (*cond)();
usr.bin/dtc/input_buffer.cc
673
if (!(l.second && r.second && c.second))
usr.bin/dtc/input_buffer.cc
677
return c.first ? l : r;
usr.bin/dtc/input_buffer.cc
698
expression_ptr c,
usr.bin/dtc/input_buffer.cc
701
expression(sl), cond(std::move(c)), lhs(std::move(l)),
usr.bin/dtc/input_buffer.hh
180
inline bool consume(char c)
usr.bin/dtc/input_buffer.hh
182
if (*(*this) == c)
usr.bin/dtc/input_buffer.hh
397
inline bool consume(char c)
usr.bin/dtc/input_buffer.hh
399
if (*(*this) == c)
usr.bin/dtc/input_buffer.hh
84
input_buffer(const char* b, int s, int c) : buffer(b), size(s),
usr.bin/dtc/input_buffer.hh
85
cursor(c) {}
usr.bin/dtc/string.cc
101
c = (uint8_t)v;
usr.bin/dtc/string.cc
117
c = (uint8_t)v;
usr.bin/dtc/string.cc
122
buffer.push_back(c);
usr.bin/dtc/string.cc
54
uint8_t c = s[i];
usr.bin/dtc/string.cc
55
if (escapes && c == '\\' && i+1 < length)
usr.bin/dtc/string.cc
57
c = s[++i];
usr.bin/dtc/string.cc
58
switch (c)
usr.bin/dtc/string.cc
67
c = '\a';
usr.bin/dtc/string.cc
70
c = '\b';
usr.bin/dtc/string.cc
73
c = '\t';
usr.bin/dtc/string.cc
76
c = '\n';
usr.bin/dtc/string.cc
79
c = '\v';
usr.bin/dtc/string.cc
82
c = '\f';
usr.bin/dtc/string.cc
85
c = '\r';
usr.bin/dtc/string.cc
89
int v = digittoint(c);
usr.bin/dtc/util.hh
112
inline bool isdigit(char c)
usr.bin/dtc/util.hh
114
return (c >= '0') && (c <= '9');
usr.bin/dtc/util.hh
121
inline bool ishexdigit(char c)
usr.bin/dtc/util.hh
123
return ((c >= '0') && (c <= '9')) || ((c >= 'a') && (c <= 'f')) ||
usr.bin/dtc/util.hh
124
((c >= 'A') && (c <= 'F'));
usr.bin/dtc/util.hh
131
inline bool isalpha(char c)
usr.bin/dtc/util.hh
133
return ((c >= 'a') && (c <= 'z')) || ((c >= 'A') && (c <= 'Z'));
usr.bin/dtc/util.hh
54
inline int digittoint(int c)
usr.bin/dtc/util.hh
56
switch (c)
usr.bin/expand/expand.c
55
int c, column;
usr.bin/expand/expand.c
69
while ((c = getopt (argc, argv, "t:")) != -1) {
usr.bin/expand/expand.c
70
switch (c) {
usr.bin/factor/factor.c
365
char c, *p;
usr.bin/factor/factor.c
371
c = tolower(*p);
usr.bin/factor/factor.c
372
if (c >= 'a' && c <= 'f') {
usr.bin/fetch/fetch.c
915
int c, e, is_http, r;
usr.bin/fetch/fetch.c
918
while ((c = getopt_long(argc, argv,
usr.bin/fetch/fetch.c
921
switch (c) {
usr.bin/file2c/file2c.c
28
int c, count, linepos, maxcount, pretty, radix;
usr.bin/file2c/file2c.c
33
while ((c = getopt(argc, argv, "n:sx")) != -1) {
usr.bin/file2c/file2c.c
34
switch (c) {
usr.bin/file2c/file2c.c
55
while((c = getchar()) != EOF) {
usr.bin/file2c/file2c.c
76
linepos += printf("%d", c);
usr.bin/file2c/file2c.c
79
linepos += printf("0x%02x", c);
usr.bin/find/getdate.y
763
char c;
usr.bin/find/getdate.y
773
if (isdigit(c = *yyInput) || c == '-' || c == '+') {
usr.bin/find/getdate.y
774
if (c == '-' || c == '+') {
usr.bin/find/getdate.y
775
sign = c == '-' ? -1 : 1;
usr.bin/find/getdate.y
782
for (yylval.Number = 0; isdigit(c = *yyInput++); )
usr.bin/find/getdate.y
783
yylval.Number = 10 * yylval.Number + c - '0';
usr.bin/find/getdate.y
789
if (isalpha(c)) {
usr.bin/find/getdate.y
790
for (p = buff; isalpha(c = *yyInput++) || c == '.'; )
usr.bin/find/getdate.y
792
*p++ = c;
usr.bin/find/getdate.y
797
if (c != '(')
usr.bin/find/getdate.y
801
c = *yyInput++;
usr.bin/find/getdate.y
802
if (c == '\0')
usr.bin/find/getdate.y
803
return c;
usr.bin/find/getdate.y
804
if (c == '(')
usr.bin/find/getdate.y
806
else if (c == ')')
usr.bin/find/printf.c
108
warn("Unknown character %c after \\.", c);
usr.bin/find/printf.c
111
putc(c, fp);
usr.bin/find/printf.c
167
int c;
usr.bin/find/printf.c
174
for (c = *fmt++; c; c = *fmt++) {
usr.bin/find/printf.c
176
if (c != '%') {
usr.bin/find/printf.c
177
putc(c, fout);
usr.bin/find/printf.c
180
c = *fmt++;
usr.bin/find/printf.c
182
switch (c) {
usr.bin/find/printf.c
184
putc(c, fout);
usr.bin/find/printf.c
205
errx(1, "%%%c is unimplemented", c);
usr.bin/find/printf.c
207
errx(1, "%%%c is unimplemented", c);
usr.bin/find/printf.c
247
errx(1, "%%%c is unimplemented", c);
usr.bin/find/printf.c
27
isoct(char c)
usr.bin/find/printf.c
29
return (c >= '0' && c <= '7');
usr.bin/find/printf.c
33
isesc(char c)
usr.bin/find/printf.c
339
errx(1, "Format modifier %c not yet supported: '%s'", c, all);
usr.bin/find/printf.c
342
errx(1, "Unknown format %c '%s'", c, all);
usr.bin/find/printf.c
35
return (c >= 'a' && c <= 'v' && esc[c - 'a'] != c);
usr.bin/find/printf.c
41
char c;
usr.bin/find/printf.c
54
for (c = *str++; c; c = *str++) {
usr.bin/find/printf.c
55
if (c != '\\') {
usr.bin/find/printf.c
56
putc(c, fp);
usr.bin/find/printf.c
59
c = *str++;
usr.bin/find/printf.c
64
if (c == '\0') {
usr.bin/find/printf.c
73
if (c == 'c') {
usr.bin/find/printf.c
81
if (isoct(c)) {
usr.bin/find/printf.c
83
for (int i = 3; i-- > 0 && isoct(c);
usr.bin/find/printf.c
84
c = *str++) {
usr.bin/find/printf.c
86
value += c - '0';
usr.bin/find/printf.c
97
if (isesc(c)) {
usr.bin/find/printf.c
98
putc(esc[c - 'a'], fp);
usr.bin/finger/net.c
105
wint_t c, lastc;
usr.bin/finger/net.c
165
while ((c = getwc(fp)) != EOF) {
usr.bin/finger/net.c
171
if (c == 0x0d) {
usr.bin/finger/net.c
174
c = '\n';
usr.bin/finger/net.c
177
if (!iswprint(c) && !iswspace(c)) {
usr.bin/finger/net.c
178
c &= 0x7f;
usr.bin/finger/net.c
179
c |= 0x40;
usr.bin/finger/net.c
181
if (lastc != '\r' || c != '\n')
usr.bin/finger/net.c
182
lastc = c;
usr.bin/finger/net.c
188
putwchar(c);
usr.bin/finger/net.c
189
if (c != '\n' && ++line_len > _POSIX2_LINE_MAX) {
usr.bin/gencat/gencat.c
137
int c;
usr.bin/gencat/gencat.c
142
while ((c = getopt(argc, argv, "new")) != -1) {
usr.bin/gencat/gencat.c
144
while ((c = getopt(argc, argv, "")) != -1) {
usr.bin/gencat/gencat.c
146
switch (c) {
usr.bin/getconf/getconf.c
62
int c, key, valid;
usr.bin/getconf/getconf.c
69
while ((c = getopt(argc, argv, "av:")) != -1) {
usr.bin/getconf/getconf.c
70
switch (c) {
usr.bin/getopt/getopt.c
17
int c;
usr.bin/getopt/getopt.c
24
while ((c = getopt(argc, argv, argv[1])) != -1)
usr.bin/getopt/getopt.c
25
switch (c) {
usr.bin/getopt/getopt.c
31
printf(" -%c %s", c, optarg);
usr.bin/getopt/getopt.c
33
printf(" -%c", c);
usr.bin/grep/grep.c
305
char *c;
usr.bin/grep/grep.c
307
c = getenv("GREP_COLOR");
usr.bin/grep/grep.c
308
return (c != NULL && c[0] != '\0' ? c : d);
usr.bin/grep/grep.c
319
int c, lastc, needpattern, newarg, prevoptind;
usr.bin/grep/grep.c
384
while (((c = getopt_long(aargc, aargv, optstr, long_options, NULL)) !=
usr.bin/grep/grep.c
386
switch (c) {
usr.bin/grep/grep.c
396
Aflag = Bflag = (Aflag * 10) + (c - '0');
usr.bin/grep/grep.c
419
if (c == 'A')
usr.bin/grep/grep.c
421
else if (c == 'B')
usr.bin/grep/grep.c
624
lastc = c;
usr.bin/grep/grep.c
686
c = regcomp(&r_pattern[i], pattern[i].pat, cflags);
usr.bin/grep/grep.c
687
if (c != 0) {
usr.bin/grep/grep.c
688
regerror(c, &r_pattern[i], re_error,
usr.bin/gzip/unlz.c
137
unsigned c = i;
usr.bin/gzip/unlz.c
139
if (c & 1)
usr.bin/gzip/unlz.c
140
c = 0xEDB88320U ^ (c >> 1);
usr.bin/gzip/unlz.c
142
c >>= 1;
usr.bin/gzip/unlz.c
144
lz_crc[i] = c;
usr.bin/gzip/unlz.c
602
lz_get_dict_size(unsigned char c)
usr.bin/gzip/unlz.c
604
unsigned dict_size = 1 << (c & 0x1f);
usr.bin/gzip/unlz.c
605
dict_size -= (dict_size >> 2) * ( (c >> 5) & 0x7);
usr.bin/hesinfo/hesinfo.c
34
int lflag = 0, errflg = 0, bflag = 0, c;
usr.bin/hesinfo/hesinfo.c
37
while ((c = getopt(argc, argv, "lb")) != -1) {
usr.bin/hesinfo/hesinfo.c
38
switch (c) {
usr.bin/hexdump/display.c
320
int c;
usr.bin/hexdump/display.c
325
while (nread < nbytes && (c = getchar()) != EOF) {
usr.bin/hexdump/display.c
326
*buf++ = c;
usr.bin/hexdump/display.c
331
c = *--buf;
usr.bin/hexdump/display.c
332
ungetc(c, stdin);
usr.bin/ident/ident.c
105
fputc(c, buffp);
usr.bin/ident/ident.c
107
if (isalpha_l(c, l)) {
usr.bin/ident/ident.c
112
} else if (c == ':') {
usr.bin/ident/ident.c
119
} else if (c == '$') {
usr.bin/ident/ident.c
135
fputc(c, buffp);
usr.bin/ident/ident.c
137
switch (c) {
usr.bin/ident/ident.c
169
fputc(c, buffp);
usr.bin/ident/ident.c
171
if (iscntrl_l(c, l)) {
usr.bin/ident/ident.c
174
} else if (c == '$') {
usr.bin/ident/ident.c
185
c = buf[strlen(buf) -2 ];
usr.bin/ident/ident.c
186
if (c == ' ' || (subversion && c == '#')) {
usr.bin/ident/ident.c
55
int c;
usr.bin/ident/ident.c
74
while ((c = fgetc(fp)) != EOF) {
usr.bin/ident/ident.c
77
if (c == '$') {
usr.bin/ident/ident.c
86
if (isalpha_l(c, l)) {
usr.bin/ident/ident.c
92
fputc(c, buffp);
usr.bin/ident/ident.c
96
} else if (c == '$') {
usr.bin/ipcrm/ipcrm.c
203
int c, result, target_id;
usr.bin/ipcrm/ipcrm.c
206
while ((c = getopt(argc, argv, "q:m:s:Q:M:S:vWy")) != -1) {
usr.bin/ipcrm/ipcrm.c
209
switch (c) {
usr.bin/ipcrm/ipcrm.c
222
while ((c = getopt(argc, argv, "q:m:s:Q:M:S:vWy")) != -1) {
usr.bin/ipcrm/ipcrm.c
225
switch (c) {
usr.bin/ipcrm/ipcrm.c
230
if (c == 'q')
usr.bin/ipcrm/ipcrm.c
232
else if (c == 'm')
usr.bin/ipcrm/ipcrm.c
240
IPC_TO_STR(toupper(c)), target_id);
usr.bin/ipcrm/ipcrm.c
245
IPC_TO_STRING(toupper(c)));
usr.bin/ipcrm/ipcrm.c
254
IPC_TO_STRING(c));
usr.bin/ipcrm/ipcrm.c
257
if (c == 'Q')
usr.bin/ipcrm/ipcrm.c
259
else if (c == 'M')
usr.bin/ipcrm/ipcrm.c
267
IPC_TO_STR(c), target_key);
usr.bin/ipcrm/ipcrm.c
271
IPC_TO_STRING(c));
usr.bin/join/join.c
357
wchar_t c, sc;
usr.bin/join/join.c
363
n = mbrtowc(&c, s, MB_LEN_MAX, NULL);
usr.bin/join/join.c
369
if ((sc = *spanp++) == c) {
usr.bin/join/join.c
370
if (c == 0)
usr.bin/kdump/kdump.c
1007
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1008
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1016
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1017
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1018
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1028
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1036
print_decimal_number(ip, narg, c);
usr.bin/kdump/kdump.c
1055
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1056
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1064
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1065
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1077
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1078
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1089
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1090
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1097
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1098
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1107
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1117
c = ',';
usr.bin/kdump/kdump.c
1122
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1159
c = ',';
usr.bin/kdump/kdump.c
1166
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1182
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1184
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1185
print_number64(first, ip, narg, c);
usr.bin/kdump/kdump.c
1193
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1194
print_number64(first, ip, narg, c);
usr.bin/kdump/kdump.c
1201
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1211
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1218
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1233
c = ',';
usr.bin/kdump/kdump.c
1241
c = ',';
usr.bin/kdump/kdump.c
1248
c = ',';
usr.bin/kdump/kdump.c
1251
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1262
c = ',';
usr.bin/kdump/kdump.c
1269
c = ',';
usr.bin/kdump/kdump.c
1278
c = ',';
usr.bin/kdump/kdump.c
1281
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1282
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1289
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1290
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1297
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1304
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1305
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1312
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1324
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1339
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1351
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1352
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1364
c = ',';
usr.bin/kdump/kdump.c
1372
c = ',';
usr.bin/kdump/kdump.c
1381
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1397
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1398
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1399
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1400
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1401
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1402
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1409
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1421
c = ',';
usr.bin/kdump/kdump.c
1435
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1446
c = ',';
usr.bin/kdump/kdump.c
1449
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1457
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1458
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1465
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1466
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1473
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1480
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1490
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1495
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1498
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1506
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1507
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1508
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1517
c = ',';
usr.bin/kdump/kdump.c
1520
print_number64(first, ip, narg, c);
usr.bin/kdump/kdump.c
1529
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1558
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1559
print_number64(first, ip, narg, c);
usr.bin/kdump/kdump.c
1562
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1563
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1564
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1568
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1569
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1572
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
1579
c = ',';
usr.bin/kdump/kdump.c
1587
c = ',';
usr.bin/kdump/kdump.c
1605
*resc = c;
usr.bin/kdump/kdump.c
2087
int i, maxi, c = 0;
usr.bin/kdump/kdump.c
2096
if (c == 0)
usr.bin/kdump/kdump.c
2100
c++;
usr.bin/kdump/kdump.c
2102
if (c == 0)
usr.bin/kdump/kdump.c
824
char c = '(';
usr.bin/kdump/kdump.c
828
ktrsyscall_freebsd(ktr, &ip, &narg, &c,
usr.bin/kdump/kdump.c
836
&narg, &c);
usr.bin/kdump/kdump.c
839
ktrsyscall_linux(ktr, &ip, &narg, &c);
usr.bin/kdump/kdump.c
845
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
861
char c = *resc;
usr.bin/kdump/kdump.c
891
c = ',';
usr.bin/kdump/kdump.c
898
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
899
putchar(c);
usr.bin/kdump/kdump.c
901
c = ',';
usr.bin/kdump/kdump.c
909
c = ',';
usr.bin/kdump/kdump.c
916
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
923
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
924
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
933
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
945
print_decimal_number(ip, narg, c);
usr.bin/kdump/kdump.c
946
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
955
c = ',';
usr.bin/kdump/kdump.c
958
print_decimal_number64(first, ip, narg, c);
usr.bin/kdump/kdump.c
959
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
969
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
976
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
983
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
984
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
991
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
992
print_number(ip, narg, c);
usr.bin/kdump/kdump.c
999
print_number(ip, narg, c);
usr.bin/kdump/kdump.h
37
#define _print_number64(first,i,n,c,d) do { \
usr.bin/kdump/kdump.h
50
printf("%c%jd", (c), (intmax_t)__v); \
usr.bin/kdump/kdump.h
52
printf("%c%#jx", (c), (uintmax_t)__v); \
usr.bin/kdump/kdump.h
55
(c) = ','; \
usr.bin/kdump/kdump.h
58
#define _print_number(i,n,c,d) do { \
usr.bin/kdump/kdump.h
60
printf("%c%jd", c, (intmax_t)*i); \
usr.bin/kdump/kdump.h
62
printf("%c%#jx", c, (uintmax_t)(u_register_t)*i); \
usr.bin/kdump/kdump.h
65
c = ','; \
usr.bin/kdump/kdump.h
68
#define print_number(i,n,c) _print_number(i,n,c,decimal)
usr.bin/kdump/kdump.h
69
#define print_decimal_number(i,n,c) _print_number(i,n,c,true)
usr.bin/kdump/kdump.h
70
#define print_number64(first,i,n,c) _print_number64(first,i,n,c,decimal)
usr.bin/kdump/kdump.h
71
#define print_decimal_number64(first,i,n,c) _print_number64(first,i,n,c,true)
usr.bin/kdump/linux.c
100
c = ',';
usr.bin/kdump/linux.c
110
print_number(ip, narg, c);
usr.bin/kdump/linux.c
120
print_number(ip, narg, c);
usr.bin/kdump/linux.c
127
print_number(ip, narg, c);
usr.bin/kdump/linux.c
137
print_number(ip, narg, c);
usr.bin/kdump/linux.c
146
print_number(ip, narg, c);
usr.bin/kdump/linux.c
151
print_number(ip, narg, c);
usr.bin/kdump/linux.c
154
print_number(ip, narg, c);
usr.bin/kdump/linux.c
155
print_number(ip, narg, c);
usr.bin/kdump/linux.c
156
print_number(ip, narg, c);
usr.bin/kdump/linux.c
165
print_number(ip, narg, c);
usr.bin/kdump/linux.c
166
print_number(ip, narg, c);
usr.bin/kdump/linux.c
169
print_number(ip, narg, c);
usr.bin/kdump/linux.c
177
c = ',';
usr.bin/kdump/linux.c
188
c = ',';
usr.bin/kdump/linux.c
197
c = ',';
usr.bin/kdump/linux.c
202
print_decimal_number(ip, narg, c);
usr.bin/kdump/linux.c
210
print_decimal_number(ip, narg, c);
usr.bin/kdump/linux.c
211
print_decimal_number(ip, narg, c);
usr.bin/kdump/linux.c
221
print_number(ip, narg, c);
usr.bin/kdump/linux.c
236
c = ',';
usr.bin/kdump/linux.c
240
print_number(ip, narg, c);
usr.bin/kdump/linux.c
241
print_number64(first, ip, narg, c);
usr.bin/kdump/linux.c
249
c = ',';
usr.bin/kdump/linux.c
259
c = ',';
usr.bin/kdump/linux.c
281
*resc = c;
usr.bin/kdump/linux.c
294
char c;
usr.bin/kdump/linux.c
297
c = *resc;
usr.bin/kdump/linux.c
316
c = ',';
usr.bin/kdump/linux.c
324
print_number(ip, narg, c);
usr.bin/kdump/linux.c
333
print_number(ip, narg, c);
usr.bin/kdump/linux.c
340
print_number(ip, narg, c);
usr.bin/kdump/linux.c
348
print_number(ip, narg, c);
usr.bin/kdump/linux.c
357
print_number(ip, narg, c);
usr.bin/kdump/linux.c
362
print_number(ip, narg, c);
usr.bin/kdump/linux.c
365
print_number(ip, narg, c);
usr.bin/kdump/linux.c
366
print_number(ip, narg, c);
usr.bin/kdump/linux.c
367
print_number(ip, narg, c);
usr.bin/kdump/linux.c
371
print_number(ip, narg, c);
usr.bin/kdump/linux.c
372
print_number(ip, narg, c);
usr.bin/kdump/linux.c
375
print_number(ip, narg, c);
usr.bin/kdump/linux.c
386
c = ',';
usr.bin/kdump/linux.c
397
c = ',';
usr.bin/kdump/linux.c
406
c = ',';
usr.bin/kdump/linux.c
411
print_decimal_number(ip, narg, c);
usr.bin/kdump/linux.c
419
print_decimal_number(ip, narg, c);
usr.bin/kdump/linux.c
420
print_decimal_number(ip, narg, c);
usr.bin/kdump/linux.c
428
print_number(ip, narg, c);
usr.bin/kdump/linux.c
445
c = ',';
usr.bin/kdump/linux.c
449
print_number(ip, narg, c);
usr.bin/kdump/linux.c
450
print_number64(first, ip, narg, c);
usr.bin/kdump/linux.c
458
c = ',';
usr.bin/kdump/linux.c
466
c = ',';
usr.bin/kdump/linux.c
483
*resc = c;
usr.bin/kdump/linux.c
492
unsigned long i, c;
usr.bin/kdump/linux.c
495
c = 0;
usr.bin/kdump/linux.c
499
if (c != 0)
usr.bin/kdump/linux.c
502
c++;
usr.bin/kdump/linux.c
504
if (c == 0)
usr.bin/kdump/linux.c
71
char c;
usr.bin/kdump/linux.c
74
c = *resc;
usr.bin/ktrdump/ktrdump.c
105
int c;
usr.bin/ktrdump/ktrdump.c
112
while ((c = getopt(ac, av, "cflqrtHe:i:m:M:N:o:")) != -1)
usr.bin/ktrdump/ktrdump.c
113
switch (c) {
usr.bin/ktrdump/ktrdump.c
293
for (p = desc; (c = *p++) != '\0';) {
usr.bin/ktrdump/ktrdump.c
294
if (c != '%')
usr.bin/ktrdump/ktrdump.c
296
next: if ((c = *p++) == '\0')
usr.bin/ktrdump/ktrdump.c
298
if (c == '%')
usr.bin/ktrdump/ktrdump.c
302
switch (c) {
usr.bin/lam/lam.c
109
char *p, *c;
usr.bin/lam/lam.c
138
c = ++p;
usr.bin/lam/lam.c
139
switch (tolower((unsigned char)*c)) {
usr.bin/lam/lam.c
145
S = (*c == 'S' ? 1 : 0);
usr.bin/lam/lam.c
152
T = (*c == 'T' ? 1 : 0);
usr.bin/lam/lam.c
157
P = (*c == 'P' ? 1 : 0);
usr.bin/lam/lam.c
160
F = (*c == 'F' ? 1 : 0);
usr.bin/lam/lam.c
203
int c;
usr.bin/lam/lam.c
210
for (p = s; (c = fgetc(ip->fp)) != EOF && p < end; p++)
usr.bin/lam/lam.c
211
if ((*p = c) == ip->eol)
usr.bin/lam/lam.c
214
if (c == EOF) {
usr.bin/lastcomm/readrec.c
228
int c;
usr.bin/lastcomm/readrec.c
237
(c = getc(f)) == EOF)
usr.bin/lastcomm/readrec.c
239
if (c & ANVER) {
usr.bin/ldd/ldd.c
136
int aflag, c, fd, rval, status, is_shlib, rv, type;
usr.bin/ldd/ldd.c
141
while ((c = getopt(argc, argv, "af:")) != -1) {
usr.bin/ldd/ldd.c
142
switch (c) {
usr.bin/leave/leave.c
57
char c, *cp = NULL;
usr.bin/leave/leave.c
88
for (hours = 0; (c = *cp) && c != '\n'; ++cp) {
usr.bin/leave/leave.c
89
if (!isdigit(c))
usr.bin/leave/leave.c
91
hours = hours * 10 + (c - '0');
usr.bin/lex/initparse.c
74
int c; \
usr.bin/lex/initparse.c
75
for ( c = 0; c < csize; ++c ) \
usr.bin/lex/initparse.c
76
if ( isascii(c) && func(c) ) \
usr.bin/lex/initparse.c
77
ccladd( currccl, c ); \
usr.bin/lex/initparse.c
83
int c; \
usr.bin/lex/initparse.c
84
for ( c = 0; c < csize; ++c ) \
usr.bin/lex/initparse.c
85
if ( !func(c) ) \
usr.bin/lex/initparse.c
86
ccladd( currccl, c ); \
usr.bin/lex/initparse.c
90
#define IS_BLANK(c) ((c) == ' ' || (c) == '\t')
usr.bin/lex/initscan.c
112
#define YY_SC_TO_UI(c) ((YY_CHAR) (c))
usr.bin/lex/initscan.c
182
#define unput(c) yyunput( c, (yytext_ptr) )
usr.bin/lex/initscan.c
2057
static void yyunput ( int c, char *buf_ptr );
usr.bin/lex/initscan.c
2111
int c = '*'; \
usr.bin/lex/initscan.c
2114
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
usr.bin/lex/initscan.c
2115
buf[n] = (char) c; \
usr.bin/lex/initscan.c
2116
if ( c == '\n' ) \
usr.bin/lex/initscan.c
2117
buf[n++] = (char) c; \
usr.bin/lex/initscan.c
2118
if ( c == EOF && ferror( yyin ) ) \
usr.bin/lex/initscan.c
4487
static void yyunput (int c, char * yy_bp )
usr.bin/lex/initscan.c
4517
*--yy_cp = (char) c;
usr.bin/lex/initscan.c
4534
int c;
usr.bin/lex/initscan.c
4596
c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
usr.bin/lex/initscan.c
4600
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
usr.bin/lex/initscan.c
4602
return c;
usr.bin/localedef/charmap.c
291
add_charmap(const char *sym, int c)
usr.bin/localedef/charmap.c
293
add_charmap_impl(sym, c, 1);
usr.bin/localedef/collate.c
904
collundef_t *c;
usr.bin/localedef/collate.c
905
if ((c = get_collundef(sym)) == NULL) {
usr.bin/localedef/collate.c
909
add_order_pri(c->ref[curr_weight]);
usr.bin/localedef/localedef.c
263
int c;
usr.bin/localedef/localedef.c
283
while ((c = getopt(argc, argv, "blw:i:cf:u:vUDV:")) != -1) {
usr.bin/localedef/localedef.c
284
switch (c) {
usr.bin/localedef/localedef.c
292
byteorder = c == 'b' ? 4321 : 1234;
usr.bin/localedef/scanner.c
250
int c;
usr.bin/localedef/scanner.c
253
c = getc(stdin);
usr.bin/localedef/scanner.c
255
c = getc(input);
usr.bin/localedef/scanner.c
257
if (c == '\n') {
usr.bin/localedef/scanner.c
260
return (c);
usr.bin/localedef/scanner.c
264
unscanc(int c)
usr.bin/localedef/scanner.c
266
if (c == '\n') {
usr.bin/localedef/scanner.c
269
if (ungetc(c, is_stdin ? stdin : input) < 0) {
usr.bin/localedef/scanner.c
355
add_tok(int c)
usr.bin/localedef/scanner.c
367
token[tokidx++] = (char)c;
usr.bin/localedef/scanner.c
371
add_wcs(wchar_t c)
usr.bin/localedef/scanner.c
384
widestr[wideidx++] = c;
usr.bin/localedef/scanner.c
406
int c;
usr.bin/localedef/scanner.c
408
if ((c = scanc()) != esc_char) {
usr.bin/localedef/scanner.c
409
unscanc(c);
usr.bin/localedef/scanner.c
412
c = scanc();
usr.bin/localedef/scanner.c
414
switch (c) {
usr.bin/localedef/scanner.c
430
unscanc(c);
usr.bin/localedef/scanner.c
433
unscanc(c);
usr.bin/localedef/scanner.c
440
get_escaped(int c)
usr.bin/localedef/scanner.c
442
switch (c) {
usr.bin/localedef/scanner.c
458
return (c);
usr.bin/localedef/scanner.c
467
int c;
usr.bin/localedef/scanner.c
476
if ((mbi == mb_cur_max) || ((c = get_byte()) == EOF)) {
usr.bin/localedef/scanner.c
485
mbs[mbi++] = c;
usr.bin/localedef/scanner.c
509
int c;
usr.bin/localedef/scanner.c
511
while ((c = scanc()) != EOF) {
usr.bin/localedef/scanner.c
514
if (c == '\n')
usr.bin/localedef/scanner.c
516
add_tok(get_escaped(c));
usr.bin/localedef/scanner.c
519
if (c == esc_char) {
usr.bin/localedef/scanner.c
523
if (c == '\n') { /* well that's strange! */
usr.bin/localedef/scanner.c
527
if (c == '>') { /* end of symbol */
usr.bin/localedef/scanner.c
578
add_tok(c);
usr.bin/localedef/scanner.c
662
int c;
usr.bin/localedef/scanner.c
663
while ((c = scanc()) != '\n') {
usr.bin/localedef/scanner.c
664
if (c == EOF) {
usr.bin/localedef/scanner.c
670
assert(c == '\n');
usr.bin/localedef/scanner.c
676
int c;
usr.bin/localedef/scanner.c
678
while ((c = scanc()) != EOF) {
usr.bin/localedef/scanner.c
686
if (c == '\n')
usr.bin/localedef/scanner.c
689
if (strchr("xXd01234567", c)) {
usr.bin/localedef/scanner.c
690
unscanc(c);
usr.bin/localedef/scanner.c
694
yylval.wc = get_escaped(c);
usr.bin/localedef/scanner.c
697
if (c == esc_char) {
usr.bin/localedef/scanner.c
701
switch (c) {
usr.bin/localedef/scanner.c
711
yylval.wc = c;
usr.bin/localedef/scanner.c
719
if (c == '\n') {
usr.bin/localedef/scanner.c
730
if (strchr("xXd01234567", c)) {
usr.bin/localedef/scanner.c
731
unscanc(c);
usr.bin/localedef/scanner.c
736
add_tok(get_escaped(c));
usr.bin/localedef/scanner.c
741
if (c == esc_char) {
usr.bin/localedef/scanner.c
747
if (c == com_char) {
usr.bin/localedef/scanner.c
748
while (c != '\n') {
usr.bin/localedef/scanner.c
749
if ((c = scanc()) == EOF) {
usr.bin/localedef/scanner.c
754
assert(c == '\n');
usr.bin/localedef/scanner.c
766
if (strchr(" \t\n;()<>,\"", c) && (tokidx != 0)) {
usr.bin/localedef/scanner.c
772
unscanc(c);
usr.bin/localedef/scanner.c
776
switch (c) {
usr.bin/localedef/scanner.c
817
add_tok(c);
usr.bin/localedef/wide.c
181
towide_none(wchar_t *c, const char *mb, unsigned n __unused)
usr.bin/localedef/wide.c
187
*c = (uint8_t)*mb;
usr.bin/localedef/wide.c
209
wchar_t c;
usr.bin/localedef/wide.c
215
c = *s;
usr.bin/localedef/wide.c
217
if ((c & 0x80) == 0) {
usr.bin/localedef/wide.c
219
*wc = c;
usr.bin/localedef/wide.c
221
} else if ((c & 0xe0) == 0xc0) {
usr.bin/localedef/wide.c
225
c &= ~0xe0;
usr.bin/localedef/wide.c
226
} else if ((c & 0xf0) == 0xe0) {
usr.bin/localedef/wide.c
230
c &= ~0xf0;
usr.bin/localedef/wide.c
231
} else if ((c & 0xf8) == 0xf0) {
usr.bin/localedef/wide.c
235
c &= ~0xf8;
usr.bin/localedef/wide.c
251
c <<= 6;
usr.bin/localedef/wide.c
252
c |= (s[i] & 0x3f);
usr.bin/localedef/wide.c
255
if (c < lv) {
usr.bin/localedef/wide.c
259
*wc = c;
usr.bin/localedef/wide.c
314
wchar_t c;
usr.bin/localedef/wide.c
316
c = *(const uint8_t *)mb;
usr.bin/localedef/wide.c
318
if ((c & 0x80) == 0) {
usr.bin/localedef/wide.c
320
*wc = c;
usr.bin/localedef/wide.c
329
c <<= 8;
usr.bin/localedef/wide.c
330
c |= (uint8_t)(mb[1]);
usr.bin/localedef/wide.c
331
*wc = c;
usr.bin/localedef/wide.c
344
int n = 0, c;
usr.bin/localedef/wide.c
355
c = n;
usr.bin/localedef/wide.c
362
s[c] = 0;
usr.bin/localedef/wide.c
363
return (c);
usr.bin/localedef/wide.c
404
wchar_t c;
usr.bin/localedef/wide.c
406
c = *(const uint8_t *)mb;
usr.bin/localedef/wide.c
408
if ((c & 0x80) == 0) {
usr.bin/localedef/wide.c
410
*wc = c;
usr.bin/localedef/wide.c
419
c <<= 8;
usr.bin/localedef/wide.c
420
c |= (uint8_t)(mb[1]);
usr.bin/localedef/wide.c
422
if (((c & 0xff) >= 0x30) && ((c & 0xff) <= 0x39)) {
usr.bin/localedef/wide.c
428
c <<= 8;
usr.bin/localedef/wide.c
429
c |= (uint8_t)(mb[2]);
usr.bin/localedef/wide.c
430
c <<= 8;
usr.bin/localedef/wide.c
431
c |= (uint8_t)(mb[3]);
usr.bin/localedef/wide.c
432
*wc = c;
usr.bin/localedef/wide.c
436
*wc = c;
usr.bin/localedef/wide.c
447
wchar_t c;
usr.bin/localedef/wide.c
449
c = *(const uint8_t *)mb;
usr.bin/localedef/wide.c
451
if ((c < 0x80) || ((c > 0xa0) && (c < 0xe0))) {
usr.bin/localedef/wide.c
453
*wc = c;
usr.bin/localedef/wide.c
463
c <<= 8;
usr.bin/localedef/wide.c
464
c |= (uint8_t)(mb[1]);
usr.bin/localedef/wide.c
465
*wc = c;
usr.bin/localedef/wide.c
483
wchar_t c;
usr.bin/localedef/wide.c
485
c = *(const uint8_t *)mb;
usr.bin/localedef/wide.c
491
if ((c & 0x80) == 0) {
usr.bin/localedef/wide.c
493
*wc = c;
usr.bin/localedef/wide.c
503
if (c >= 0xa1) {
usr.bin/localedef/wide.c
505
} else if (c == cs2) {
usr.bin/localedef/wide.c
507
} else if (c == cs3) {
usr.bin/localedef/wide.c
518
c <<= 8;
usr.bin/localedef/wide.c
519
c |= (uint8_t)(mb[i]);
usr.bin/localedef/wide.c
522
*wc = c;
usr.bin/locate/locate/fastfind.c
146
int c, cc;
usr.bin/locate/locate/fastfind.c
160
for (c = 0, p = bigram1, s = bigram2; c < NBG; c++, len-= 2) {
usr.bin/locate/locate/fastfind.c
161
p[c] = check_bigram_char(*paddr++);
usr.bin/locate/locate/fastfind.c
162
s[c] = check_bigram_char(*paddr++);
usr.bin/locate/locate/fastfind.c
165
for (c = 0, p = bigram1, s = bigram2; c < NBG; c++) {
usr.bin/locate/locate/fastfind.c
166
p[c] = check_bigram_char(getc(fp));
usr.bin/locate/locate/fastfind.c
167
s[c] = check_bigram_char(getc(fp));
usr.bin/locate/locate/fastfind.c
187
for (c = 0; c < UCHAR_MAX + 1; c++)
usr.bin/locate/locate/fastfind.c
188
table[c] = 0;
usr.bin/locate/locate/fastfind.c
200
c = (u_char)*paddr++;
usr.bin/locate/locate/fastfind.c
205
c = getc(fp);
usr.bin/locate/locate/fastfind.c
206
for (; c != EOF; ) {
usr.bin/locate/locate/fastfind.c
210
if (c == SWITCH) { /* big step, an integer */
usr.bin/locate/locate/fastfind.c
222
count += c - OFFSET;
usr.bin/locate/locate/fastfind.c
234
c = (u_char)*paddr++;
usr.bin/locate/locate/fastfind.c
238
c = getc(fp);
usr.bin/locate/locate/fastfind.c
248
if (c < PARITY) {
usr.bin/locate/locate/fastfind.c
249
if (c <= UMLAUT) {
usr.bin/locate/locate/fastfind.c
250
if (c == UMLAUT) {
usr.bin/locate/locate/fastfind.c
252
c = (u_char)*paddr++;
usr.bin/locate/locate/fastfind.c
255
c = getc(fp);
usr.bin/locate/locate/fastfind.c
262
if (table[c])
usr.bin/locate/locate/fastfind.c
264
if (c == cc)
usr.bin/locate/locate/fastfind.c
267
*p++ = c;
usr.bin/locate/locate/fastfind.c
271
TO7BIT(c);
usr.bin/locate/locate/fastfind.c
274
if (bigram1[c] == cc ||
usr.bin/locate/locate/fastfind.c
275
bigram2[c] == cc)
usr.bin/locate/locate/fastfind.c
278
if (table[bigram1[c]] ||
usr.bin/locate/locate/fastfind.c
279
table[bigram2[c]])
usr.bin/locate/locate/fastfind.c
283
*p++ = bigram1[c];
usr.bin/locate/locate/fastfind.c
284
*p++ = bigram2[c];
usr.bin/locate/locate/fastfind.c
45
int c;
usr.bin/locate/locate/fastfind.c
50
for (c = 0, p = bigram1, s = bigram2; c < NBG; c++) {
usr.bin/locate/locate/fastfind.c
51
p[c] = check_bigram_char(getc(fp));
usr.bin/locate/locate/fastfind.c
52
s[c] = check_bigram_char(getc(fp));
usr.bin/locate/locate/fastfind.c
58
for (c = getc(fp), count = 0; c != EOF; size++) {
usr.bin/locate/locate/fastfind.c
59
if (c == SWITCH) {
usr.bin/locate/locate/fastfind.c
64
count += c - OFFSET;
usr.bin/locate/locate/fastfind.c
73
for (p = path + count; (c = getc(fp)) > SWITCH; size++)
usr.bin/locate/locate/fastfind.c
74
if (c < PARITY) {
usr.bin/locate/locate/fastfind.c
75
if (c == UMLAUT) {
usr.bin/locate/locate/fastfind.c
76
c = getc(fp);
usr.bin/locate/locate/util.c
102
for (ch = c = path; ; ch++) {
usr.bin/locate/locate/util.c
106
if (ch == c)
usr.bin/locate/locate/util.c
110
slen = ch - c;
usr.bin/locate/locate/util.c
114
bcopy(c, p, slen);
usr.bin/locate/locate/util.c
123
c = ch + 1;
usr.bin/locate/locate/util.c
84
char *c, *ch, *p;
usr.bin/logger/logger.c
420
const CODE *c;
usr.bin/logger/logger.c
425
for (c = codetab; c->c_name; c++)
usr.bin/logger/logger.c
426
if (!strcasecmp(name, c->c_name))
usr.bin/logger/logger.c
427
return (c->c_val);
usr.bin/m4/eval.c
125
int c, n;
usr.bin/m4/eval.c
458
while ((c = gpbc()) != '\n' && c != EOF)
usr.bin/m4/eval.c
740
int c;
usr.bin/m4/eval.c
745
while ((c = getc(pf)) != EOF)
usr.bin/m4/eval.c
746
putc(c, active);
usr.bin/m4/extern.h
123
#define PUSHBACK(c) \
usr.bin/m4/extern.h
127
*bp++ = (c); \
usr.bin/m4/extern.h
130
#define CHRSAVE(c) \
usr.bin/m4/extern.h
134
*ep++ = (c); \
usr.bin/m4/gnum4.c
208
addchars(const char *c, size_t n)
usr.bin/m4/gnum4.c
222
memcpy(buffer+current, c, n);
usr.bin/m4/gnum4.c
227
addchar(int c)
usr.bin/m4/gnum4.c
236
buffer[current++] = c;
usr.bin/m4/gnum4.c
685
int c;
usr.bin/m4/gnum4.c
691
while ((c = getc(f))!= EOF)
usr.bin/m4/gnum4.c
692
putc(c, active);
usr.bin/m4/main.c
189
int c;
usr.bin/m4/main.c
207
while ((c = getopt_long(argc, argv, shortopts, longopts, NULL)) != -1)
usr.bin/m4/main.c
208
switch(c) {
usr.bin/m4/main.c
554
reallyputchar(int c)
usr.bin/m4/main.c
556
putc(c, active);
usr.bin/m4/main.c
557
if (synch_lines && c == '\n') {
usr.bin/m4/main.c
569
inspect(int c, char *tp)
usr.bin/m4/main.c
575
*tp++ = c;
usr.bin/m4/main.c
577
while ((isalnum(c = gpbc()) || c == '_') && tp < etp)
usr.bin/m4/main.c
578
*tp++ = c;
usr.bin/m4/main.c
579
if (c != EOF)
usr.bin/m4/main.c
580
PUSHBACK(c);
usr.bin/m4/main.c
586
while (isalnum(c = gpbc()) || c == '_') {
usr.bin/m4/main.c
588
reallyputchar(c);
usr.bin/m4/main.c
590
CHRSAVE(c);
usr.bin/m4/mdef.h
159
int c;
usr.bin/m4/misc.c
215
chrsave(int c)
usr.bin/m4/misc.c
219
*ep++ = c;
usr.bin/m4/misc.c
228
int c;
usr.bin/m4/misc.c
233
while ((c = getc(outfile[n])) != EOF)
usr.bin/m4/misc.c
234
putc(c, active);
usr.bin/m4/misc.c
392
if (f->c == EOF)
usr.bin/m4/misc.c
395
f->c = fgetc(f->file);
usr.bin/m4/misc.c
396
if (f->c == '\n')
usr.bin/m4/misc.c
399
return f->c;
usr.bin/m4/misc.c
407
f->c = 0;
usr.bin/m4/misc.c
427
f->c = EOF;
usr.bin/m4/misc.c
85
pushback(int c)
usr.bin/m4/misc.c
87
if (c == EOF)
usr.bin/m4/misc.c
91
*bp++ = c;
usr.bin/m4/stdd.h
45
#define iswhite(c) ((c) == ' ' || (c) == '\t')
usr.bin/m4/trace.c
69
letter_to_flag(int c)
usr.bin/m4/trace.c
71
switch(c) {
usr.bin/mail/cmd1.c
363
int c, topl, lines, lineb;
usr.bin/mail/cmd1.c
382
c = mp->m_lines;
usr.bin/mail/cmd1.c
385
for (lines = 0; lines < c && lines <= topl; lines++) {
usr.bin/mail/cmd3.c
143
int c;
usr.bin/mail/cmd3.c
150
while ((c = getc(f)) != EOF)
usr.bin/mail/cmd3.c
151
putchar(c);
usr.bin/mail/cmd3.c
700
int c;
usr.bin/mail/cmd3.c
703
c = argcount(namelist) + 1;
usr.bin/mail/cmd3.c
704
if (c == 1) {
usr.bin/mail/cmd3.c
714
if ((altnames = calloc((unsigned)c, sizeof(char *))) == NULL)
usr.bin/mail/collect.c
155
c = readline(stdin, linebuf, sizeof(linebuf));
usr.bin/mail/collect.c
157
if (c < 0) {
usr.bin/mail/collect.c
166
longline = c == sizeof(linebuf) - 1;
usr.bin/mail/collect.c
179
c = linebuf[1];
usr.bin/mail/collect.c
180
switch (c) {
usr.bin/mail/collect.c
186
if (c == escape) {
usr.bin/mail/collect.c
280
switch(c) {
usr.bin/mail/collect.c
427
if (forward(linebuf + 2, collf, tempname, c) < 0)
usr.bin/mail/collect.c
466
mesedit(collf, c);
usr.bin/mail/collect.c
499
int c, lc;
usr.bin/mail/collect.c
519
while ((c = getc(fp)) != EOF) {
usr.bin/mail/collect.c
521
if (c == '\n')
usr.bin/mail/collect.c
523
(void)putc(c, of);
usr.bin/mail/collect.c
541
mesedit(FILE *fp, int c)
usr.bin/mail/collect.c
544
FILE *nf = run_editor(fp, (off_t)-1, c, 0);
usr.bin/mail/collect.c
70
int lc, cc, escape, eofcount, fd, c, t;
usr.bin/mail/collect.c
718
int c;
usr.bin/mail/collect.c
724
c = umask(077);
usr.bin/mail/collect.c
726
(void)umask(c);
usr.bin/mail/collect.c
729
while ((c = getc(fp)) != EOF)
usr.bin/mail/collect.c
730
(void)putc(c, dbuf);
usr.bin/mail/edit.c
108
while ((c = getc(fp)) != EOF) {
usr.bin/mail/edit.c
109
if (c == '\n')
usr.bin/mail/edit.c
111
if (putc(c, otf) == EOF)
usr.bin/mail/edit.c
70
int c, i;
usr.bin/mail/fio.c
128
if ((c = *cp2++) == '\0') {
usr.bin/mail/fio.c
133
while ((c = *cp++) != '\0')
usr.bin/mail/fio.c
134
if (c == 'R')
usr.bin/mail/fio.c
136
else if (c == 'O')
usr.bin/mail/fio.c
141
if (*cp != c && *cp != toupper((unsigned char)c))
usr.bin/mail/fio.c
160
int c;
usr.bin/mail/fio.c
162
c = strlen(linebuf);
usr.bin/mail/fio.c
163
(void)fwrite(linebuf, sizeof(*linebuf), c, obuf);
usr.bin/mail/fio.c
166
c++;
usr.bin/mail/fio.c
170
return (c);
usr.bin/mail/fio.c
55
int c, count;
usr.bin/mail/fio.c
65
if ((c = mkstemp(pathbuf)) == -1 || (mestmp = Fdopen(c, "r+")) == NULL)
usr.bin/mail/head.c
246
int c;
usr.bin/mail/head.c
252
while ((c = *wp++) != '\0' && c != ' ' && c != '\t') {
usr.bin/mail/head.c
253
*wbuf++ = c;
usr.bin/mail/head.c
254
if (c == '"') {
usr.bin/mail/head.c
255
while ((c = *wp++) != '\0' && c != '"')
usr.bin/mail/head.c
256
*wbuf++ = c;
usr.bin/mail/head.c
257
if (c == '"')
usr.bin/mail/head.c
258
*wbuf++ = c;
usr.bin/mail/head.c
264
for (; c == ' ' || c == '\t'; c = *wp++)
usr.bin/mail/head.c
266
if (c == '\0')
usr.bin/mail/lex.c
276
int c, muvec[2];
usr.bin/mail/lex.c
364
if ((c = getmsglist(cp, msgvec, com->c_msgflag)) < 0)
usr.bin/mail/lex.c
366
if (c == 0) {
usr.bin/mail/lex.c
405
if ((c = getrawlist(cp, arglist,
usr.bin/mail/lex.c
408
if (c < com->c_minargs) {
usr.bin/mail/lex.c
413
if (c > com->c_maxargs) {
usr.bin/mail/list.c
377
char c, *cp, *cp2, quotec;
usr.bin/mail/list.c
399
while ((c = *cp) != '\0') {
usr.bin/mail/list.c
409
if (c == quotec)
usr.bin/mail/list.c
411
else if (c == '\\')
usr.bin/mail/list.c
412
switch (c = *cp++) {
usr.bin/mail/list.c
419
c -= '0';
usr.bin/mail/list.c
421
c = c * 8 + *cp++ - '0';
usr.bin/mail/list.c
423
c = c * 8 + *cp++ - '0';
usr.bin/mail/list.c
424
*cp2++ = c;
usr.bin/mail/list.c
445
*cp2++ = c;
usr.bin/mail/list.c
447
else if (c == '^') {
usr.bin/mail/list.c
448
c = *cp++;
usr.bin/mail/list.c
449
if (c == '?')
usr.bin/mail/list.c
452
else if ((c >= 'A' && c <= '_') ||
usr.bin/mail/list.c
453
(c >= 'a' && c <= 'z'))
usr.bin/mail/list.c
454
*cp2++ = c & 037;
usr.bin/mail/list.c
460
*cp2++ = c;
usr.bin/mail/list.c
461
} else if (c == '"' || c == '\'')
usr.bin/mail/list.c
462
quotec = c;
usr.bin/mail/list.c
463
else if (c == ' ' || c == '\t')
usr.bin/mail/list.c
466
*cp2++ = c;
usr.bin/mail/list.c
502
int c;
usr.bin/mail/list.c
513
c = *cp++;
usr.bin/mail/list.c
519
while (c == ' ' || c == '\t')
usr.bin/mail/list.c
520
c = *cp++;
usr.bin/mail/list.c
527
if (c == '\0') {
usr.bin/mail/list.c
538
if (isdigit((unsigned char)c)) {
usr.bin/mail/list.c
540
while (isdigit((unsigned char)c)) {
usr.bin/mail/list.c
541
lexnumber = lexnumber*10 + c - '0';
usr.bin/mail/list.c
542
*cp2++ = c;
usr.bin/mail/list.c
543
c = *cp++;
usr.bin/mail/list.c
556
if (c == lp->l_char) {
usr.bin/mail/list.c
557
lexstring[0] = c;
usr.bin/mail/list.c
572
if (c == '\'' || c == '"') {
usr.bin/mail/list.c
573
quotec = c;
usr.bin/mail/list.c
574
c = *cp++;
usr.bin/mail/list.c
576
while (c != '\0') {
usr.bin/mail/list.c
577
if (c == quotec) {
usr.bin/mail/list.c
581
if (quotec == 0 && (c == ' ' || c == '\t'))
usr.bin/mail/list.c
584
*cp2++ = c;
usr.bin/mail/list.c
585
c = *cp++;
usr.bin/mail/list.c
587
if (quotec && c == '\0') {
usr.bin/mail/list.c
770
int c, m;
usr.bin/mail/list.c
773
c = meta;
usr.bin/mail/list.c
774
switch (c) {
usr.bin/mail/list.c
807
printf("Unknown metachar (%c)\n", c);
usr.bin/mail/names.c
277
int c, ispipe;
usr.bin/mail/names.c
327
while ((c = getc(fo)) != EOF)
usr.bin/mail/names.c
328
(void)putc(c, fout);
usr.bin/mail/names.c
391
while ((c = getc(fin)) != EOF)
usr.bin/mail/names.c
392
(void)putc(c, fout);
usr.bin/mail/names.c
703
int c;
usr.bin/mail/names.c
705
for (c = 0; np != NULL; np = np->n_flink)
usr.bin/mail/names.c
707
c++;
usr.bin/mail/names.c
708
return (c);
usr.bin/mail/quit.c
111
while ((c = getc(fbuf)) != EOF)
usr.bin/mail/quit.c
112
(void)putc(c, rbuf);
usr.bin/mail/quit.c
116
c = getc(fbuf);
usr.bin/mail/quit.c
117
if (c == EOF)
usr.bin/mail/quit.c
119
(void)putc(c, rbuf);
usr.bin/mail/quit.c
155
for (c = 0, p = 0, mp = &message[0]; mp < &message[msgCount]; mp++) {
usr.bin/mail/quit.c
157
c++;
usr.bin/mail/quit.c
177
if (c == 0) {
usr.bin/mail/quit.c
194
mcount = c;
usr.bin/mail/quit.c
213
while ((c = getc(abuf)) != EOF)
usr.bin/mail/quit.c
214
(void)putc(c, obuf);
usr.bin/mail/quit.c
260
c = getc(ibuf);
usr.bin/mail/quit.c
261
while (c != EOF) {
usr.bin/mail/quit.c
262
(void)putc(c, obuf);
usr.bin/mail/quit.c
265
c = getc(ibuf);
usr.bin/mail/quit.c
304
while ((c = getc(rbuf)) != EOF)
usr.bin/mail/quit.c
305
(void)putc(c, abuf);
usr.bin/mail/quit.c
333
int p, c;
usr.bin/mail/quit.c
343
while ((c = getc(res)) != EOF)
usr.bin/mail/quit.c
344
(void)putc(c, obuf);
usr.bin/mail/quit.c
357
while ((c = getc(res)) != EOF)
usr.bin/mail/quit.c
358
(void)putc(c, obuf);
usr.bin/mail/quit.c
385
int gotcha, c;
usr.bin/mail/quit.c
436
while ((c = getc(ibuf)) != EOF)
usr.bin/mail/quit.c
437
(void)putc(c, obuf);
usr.bin/mail/quit.c
456
c = 0;
usr.bin/mail/quit.c
460
c++;
usr.bin/mail/quit.c
467
gotcha = (c == 0 && ibuf == NULL);
usr.bin/mail/quit.c
469
while ((c = getc(ibuf)) != EOF)
usr.bin/mail/quit.c
470
(void)putc(c, obuf);
usr.bin/mail/quit.c
68
int c, fd;
usr.bin/mail/send.c
112
for (cp = line; (c = *cp++) != '\0' && c != ':' &&
usr.bin/mail/send.c
113
!isspace((unsigned char)c);)
usr.bin/mail/send.c
154
*cp2 = c; /* restore */
usr.bin/mail/send.c
184
c = 0;
usr.bin/mail/send.c
187
count -= c = strlen(line);
usr.bin/mail/send.c
192
if (c > 1)
usr.bin/mail/send.c
197
(void)fwrite(line, sizeof(*line), c, obuf);
usr.bin/mail/send.c
203
c = count < LINESIZE ? count : LINESIZE;
usr.bin/mail/send.c
204
if ((c = fread(line, sizeof(*line), c, ibuf)) <= 0)
usr.bin/mail/send.c
206
count -= c;
usr.bin/mail/send.c
207
if (fwrite(line, sizeof(*line), c, obuf) != c)
usr.bin/mail/send.c
210
if (doign == ignoreall && c > 0 && line[c - 1] != '\n')
usr.bin/mail/send.c
212
if ((c = getc(ibuf)) != EOF && putc(c, obuf) == EOF)
usr.bin/mail/send.c
453
int c, fd;
usr.bin/mail/send.c
472
c = getc(fi);
usr.bin/mail/send.c
473
while (c != EOF) {
usr.bin/mail/send.c
474
(void)putc(c, nfo);
usr.bin/mail/send.c
475
c = getc(fi);
usr.bin/mail/send.c
56
int c = 0, length, prefixlen;
usr.bin/mail/tty.c
173
int c;
usr.bin/mail/tty.c
191
while ((c = *cp++) != '\0') {
usr.bin/mail/tty.c
192
if ((c_erase != _POSIX_VDISABLE && c == c_erase) ||
usr.bin/mail/tty.c
193
(c_kill != _POSIX_VDISABLE && c == c_kill)) {
usr.bin/mail/tty.c
197
ch = c;
usr.bin/mail/tty.c
214
c = getc(stdin);
usr.bin/mail/tty.c
215
if (c == EOF || c == '\n')
usr.bin/mail/tty.c
217
*cp2++ = c;
usr.bin/mail/tty.c
223
if (c == EOF && ferror(stdin)) {
usr.bin/mail/tty.c
236
c = *cp++;
usr.bin/mail/tty.c
237
if (c_erase != _POSIX_VDISABLE && c == c_erase) {
usr.bin/mail/tty.c
241
cp2[-1] = c;
usr.bin/mail/tty.c
247
if (c_kill != _POSIX_VDISABLE && c == c_kill) {
usr.bin/mail/tty.c
251
cp2[-1] = c;
usr.bin/mail/tty.c
257
*cp2++ = c;
usr.bin/mail/util.c
160
int c;
usr.bin/mail/util.c
165
if ((c = readline(f, linebuf, LINESIZE)) <= 0)
usr.bin/mail/util.c
177
cp = linebuf + c;
usr.bin/mail/util.c
184
ungetc(c = getc(f), f);
usr.bin/mail/util.c
185
if (c != ' ' && c != '\t')
usr.bin/mail/util.c
187
if ((c = readline(f, line2, sizeof(line2))) < 0)
usr.bin/mail/util.c
192
c -= cp2 - line2;
usr.bin/mail/util.c
193
if (cp + c >= linebuf + LINESIZE - 2)
usr.bin/mail/util.c
196
bcopy(cp2, cp, c);
usr.bin/mail/util.c
197
cp += c;
usr.bin/mail/util.c
384
int c, gotlt, lastsp;
usr.bin/mail/util.c
398
for (cp = name, cp2 = bufend; (c = *cp++) != '\0'; ) {
usr.bin/mail/util.c
399
switch (c) {
usr.bin/mail/util.c
410
while ((c = *cp) != '\0') {
usr.bin/mail/util.c
412
if (c == '"')
usr.bin/mail/util.c
414
if (c != '\\')
usr.bin/mail/util.c
415
*cp2++ = c;
usr.bin/mail/util.c
416
else if ((c = *cp) != '\0') {
usr.bin/mail/util.c
417
*cp2++ = c;
usr.bin/mail/util.c
443
while ((c = *cp) != '\0' && c != ',') {
usr.bin/mail/util.c
445
if (c == '(')
usr.bin/mail/util.c
447
else if (c == '"')
usr.bin/mail/util.c
448
while ((c = *cp) != '\0') {
usr.bin/mail/util.c
450
if (c == '"')
usr.bin/mail/util.c
452
if (c == '\\' && *cp != '\0')
usr.bin/mail/util.c
466
*cp2++ = c;
usr.bin/mail/util.c
467
if (c == ',' && !gotlt &&
usr.bin/mail/util.c
551
charcount(char *str, int c)
usr.bin/mail/util.c
557
if (*cp == c)
usr.bin/ministat/ministat.c
561
int c, i, ci;
usr.bin/ministat/ministat.c
580
while ((c = getopt(argc, argv, "AC:c:d:snqw:")) != -1)
usr.bin/ministat/ministat.c
581
switch (c) {
usr.bin/mkimg/gpt.c
193
int c, idx;
usr.bin/mkimg/gpt.c
208
while ((c = part->label[idx]) != '\0') {
usr.bin/mkimg/gpt.c
209
le16enc(ent->ent_name + idx, c);
usr.bin/mkimg/mkimg.c
570
int c, error;
usr.bin/mkimg/mkimg.c
574
while ((c = getopt_long(argc, argv, "a:b:c:C:f:ho:p:s:t:vyH:P:S:T:",
usr.bin/mkimg/mkimg.c
576
switch (c) {
usr.bin/mkimg/vhdx.c
128
#define CRC32C(c, d) (c = (c>>8) ^ crc_c[(c^(d))&0xFF])
usr.bin/mkstr/mkstr.c
130
int c;
usr.bin/mkstr/mkstr.c
133
c = getchar();
usr.bin/mkstr/mkstr.c
134
if (c == EOF)
usr.bin/mkstr/mkstr.c
136
if (c != 'e') {
usr.bin/mkstr/mkstr.c
137
putchar(c);
usr.bin/mkstr/mkstr.c
142
c = getchar();
usr.bin/mkstr/mkstr.c
143
if (c != '"')
usr.bin/mkstr/mkstr.c
144
putchar(c);
usr.bin/mkstr/mkstr.c
155
int c;
usr.bin/mkstr/mkstr.c
158
c = getchar();
usr.bin/mkstr/mkstr.c
159
if (c != *cp) {
usr.bin/mkstr/mkstr.c
162
ungetchar(c);
usr.bin/mkstr/mkstr.c
172
int c, ch;
usr.bin/mkstr/mkstr.c
179
c = getchar();
usr.bin/mkstr/mkstr.c
180
if (c == EOF)
usr.bin/mkstr/mkstr.c
182
switch (c) {
usr.bin/mkstr/mkstr.c
188
c = getchar();
usr.bin/mkstr/mkstr.c
189
switch (c) {
usr.bin/mkstr/mkstr.c
192
c = '\b';
usr.bin/mkstr/mkstr.c
195
c = '\t';
usr.bin/mkstr/mkstr.c
198
c = '\r';
usr.bin/mkstr/mkstr.c
201
c = '\n';
usr.bin/mkstr/mkstr.c
206
c = '\f';
usr.bin/mkstr/mkstr.c
209
c = 0;
usr.bin/mkstr/mkstr.c
214
if (!octdigit(c))
usr.bin/mkstr/mkstr.c
216
c -= '0';
usr.bin/mkstr/mkstr.c
220
c <<= 7, c += ch - '0';
usr.bin/mkstr/mkstr.c
224
c <<= 3, c+= ch - '0', ch = -1;
usr.bin/mkstr/mkstr.c
228
*cp++ = c;
usr.bin/mkstr/mkstr.c
236
octdigit(char c)
usr.bin/mkstr/mkstr.c
239
return (c >= '0' && c <= '7');
usr.bin/mkstr/mkstr.c
312
int c;
usr.bin/mkstr/mkstr.c
315
while (--rmdr > 0 && (c = getc(file)) != 0 && c != EOF)
usr.bin/mkstr/mkstr.c
316
*buf++ = c;
usr.bin/mkstr/mkstr.c
38
#define ungetchar(c) ungetc(c, stdin)
usr.bin/mktemp/mktemp.c
61
int c, fd, ret;
usr.bin/mktemp/mktemp.c
73
while ((c = getopt_long(argc, argv, "dp:qt:u", long_opts, NULL)) != -1)
usr.bin/mktemp/mktemp.c
74
switch (c) {
usr.bin/morse/morse.c
461
morse(char c)
usr.bin/morse/morse.c
465
if (isalpha((unsigned char)c))
usr.bin/morse/morse.c
466
c = tolower((unsigned char)c);
usr.bin/morse/morse.c
467
if ((c == '\r') || (c == '\n'))
usr.bin/morse/morse.c
468
c = ' ';
usr.bin/morse/morse.c
469
if (c == ' ') {
usr.bin/morse/morse.c
480
for (m = ((unsigned char)c < 0x80? mtab: hightab);
usr.bin/morse/morse.c
483
if (m->inchar == c) {
usr.bin/morse/morse.c
513
const char *c;
usr.bin/morse/morse.c
515
for (c = s; *c != '\0'; c++) {
usr.bin/morse/morse.c
516
switch (*c) {
usr.bin/morse/morse.c
552
const char *c;
usr.bin/morse/morse.c
555
for (c = s; *c != '\0'; c++) {
usr.bin/morse/morse.c
556
switch (*c) {
usr.bin/morse/morse.c
631
char c;
usr.bin/morse/morse.c
634
c = ' ';
usr.bin/morse/morse.c
637
c = m->inchar;
usr.bin/morse/morse.c
642
if (c == ' ')
usr.bin/morse/morse.c
645
c = m->inchar;
usr.bin/morse/morse.c
650
putchar(c);
usr.bin/mt/mt.c
1154
int c;
usr.bin/mt/mt.c
1156
while ((c = getopt(argc, argv, "b:delL:m:r:vw:")) != -1) {
usr.bin/mt/mt.c
1157
switch (c) {
usr.bin/mt/mt.c
1322
int c;
usr.bin/mt/mt.c
1324
while ((c = getopt(argc, argv, "lp:qs:x")) != -1) {
usr.bin/mt/mt.c
1325
switch (c) {
usr.bin/mt/mt.c
1545
int c;
usr.bin/mt/mt.c
1547
while ((c = getopt(argc, argv, "vx")) != -1) {
usr.bin/mt/mt.c
1548
switch (c) {
usr.bin/mt/mt.c
465
char c;
usr.bin/mt/mt.c
481
for (; (c = *bits) > 32; bits++)
usr.bin/mt/mt.c
482
putchar(c);
usr.bin/mt/mt.c
656
int c, retval;
usr.bin/mt/mt.c
661
while ((c = getopt(argc, argv, "b:eEf:ip:s:")) != -1) {
usr.bin/mt/mt.c
662
switch (c) {
usr.bin/mt/mt.c
830
int c;
usr.bin/mt/mt.c
832
while ((c = getopt(argc, argv, "xv")) != -1) {
usr.bin/mt/mt.c
833
switch (c) {
usr.bin/netstat/ipsec.c
263
#define hist(f, n, t, c) \
usr.bin/netstat/ipsec.c
264
ipsec_hist_new((f), sizeof(f)/sizeof(f[0]), (n), (t), (c))
usr.bin/netstat/ipsec.c
322
#define hist(f, n, t, c) \
usr.bin/netstat/ipsec.c
323
ipsec_hist_new((f), sizeof(f)/sizeof(f[0]), (n), (t), (c));
usr.bin/netstat/ipsec.c
383
#define hist(f, n, t, c) \
usr.bin/netstat/ipsec.c
384
ipsec_hist_new((f), sizeof(f)/sizeof(f[0]), (n), (t), (c));
usr.bin/netstat/main.c
825
uint64_t *c;
usr.bin/netstat/main.c
845
c = buf;
usr.bin/netstat/main.c
847
c[i] = kvm_counter_u64_fetch(kvmd, counters[i]);
usr.bin/nl/nl.c
128
int c;
usr.bin/nl/nl.c
138
while ((c = getopt(argc, argv, "pb:d:f:h:i:l:n:s:v:w:")) != -1) {
usr.bin/nl/nl.c
139
switch (c) {
usr.bin/patch/backupfile.c
28
#define ISDIGIT(c) (isascii ((unsigned char)c) && isdigit ((unsigned char)c))
usr.bin/patch/pch.c
1640
char c;
usr.bin/patch/pch.c
1650
c = *p;
usr.bin/patch/pch.c
1658
*p = c;
usr.bin/patch/pch.c
516
int c;
usr.bin/patch/pch.c
518
c = fgetc(pfp);
usr.bin/patch/pch.c
519
if (c == '\\') {
usr.bin/patch/pch.c
521
c = fgetc(pfp);
usr.bin/patch/pch.c
522
} while (c != EOF && c != '\n');
usr.bin/patch/pch.c
526
if (c != EOF)
usr.bin/posixshmcontrol/posixshmcontrol.c
226
int c, error, fd, jid, mib[3], ret;
usr.bin/posixshmcontrol/posixshmcontrol.c
234
while ((c = getopt(argc, argv, "hj:n")) != -1) {
usr.bin/posixshmcontrol/posixshmcontrol.c
235
switch (c) {
usr.bin/posixshmcontrol/posixshmcontrol.c
461
int c, i, ret, ret1;
usr.bin/posixshmcontrol/posixshmcontrol.c
467
while ((c = getopt(argc, argv, "hn")) != -1) {
usr.bin/posixshmcontrol/posixshmcontrol.c
468
switch (c) {
usr.bin/posixshmcontrol/posixshmcontrol.c
521
int c, i, ret, ret1;
usr.bin/posixshmcontrol/posixshmcontrol.c
524
while ((c = getopt(argc, argv, "s:")) != -1) {
usr.bin/posixshmcontrol/posixshmcontrol.c
525
switch (c) {
usr.bin/posixshmcontrol/posixshmcontrol.c
91
int c, i, idx, pn, ret, ret1;
usr.bin/posixshmcontrol/posixshmcontrol.c
96
while ((c = getopt(argc, argv, "l:m:")) != -1) {
usr.bin/posixshmcontrol/posixshmcontrol.c
97
switch (c) {
usr.bin/pr/pr.c
1257
int c;
usr.bin/pr/pr.c
1262
while ((c = getc(inf)) != EOF) {
usr.bin/pr/pr.c
1263
if ((c == '\n') && (--cnt == 0))
usr.bin/pr/pr.c
1266
if (c == EOF) {
usr.bin/pr/pr.c
1591
int c;
usr.bin/pr/pr.c
1610
while ((c = egetopt(argc, argv, "#adFfmrte?h:i?L:l:n?o:ps?w:")) != -1) {
usr.bin/pr/pr.c
1611
switch (c) {
usr.bin/printf/printf.c
462
char *save, *store, c;
usr.bin/printf/printf.c
465
for (save = store = fmt; ((c = *fmt) != 0); ++fmt, ++store) {
usr.bin/printf/printf.c
466
if (c != '\\') {
usr.bin/printf/printf.c
467
*store = c;
usr.bin/printf/printf.c
512
c = (!percent && *fmt == '0') ? 4 : 3;
usr.bin/printf/printf.c
514
c-- && *fmt >= '0' && *fmt <= '7'; ++fmt) {
usr.bin/quota/quota.c
682
int c;
usr.bin/quota/quota.c
684
c = *s++;
usr.bin/quota/quota.c
686
if (!isdigit(c))
usr.bin/quota/quota.c
688
} while ((c = *s++));
usr.bin/rpcgen/rpc_main.c
1086
char c, ch;
usr.bin/rpcgen/rpc_main.c
1116
c = argv[i][j];
usr.bin/rpcgen/rpc_main.c
1117
switch (c) {
usr.bin/rpcgen/rpc_main.c
1126
if (flag[(int)c]) {
usr.bin/rpcgen/rpc_main.c
1129
flag[(int)c] = 1;
usr.bin/rpcgen/rpc_main.c
1206
flag[(int)c] = 1;
usr.bin/rpcgen/rpc_main.c
1210
if (c == 'o') {
usr.bin/rpcgen/rpc_util.c
216
char c;
usr.bin/rpcgen/rpc_util.c
220
while ( (c = *str++) ) {
usr.bin/rpcgen/rpc_util.c
221
*p++ = (c >= 'A' && c <= 'Z') ? (c - 'A' + 'a') : c;
usr.bin/rpcgen/rpc_util.c
373
char c;
usr.bin/rpcgen/rpc_util.c
379
for (i = 0; (c = curline[i]); i++) {
usr.bin/rpcgen/rpc_util.c
380
if (c == '\t') {
usr.bin/rpcgen/rpc_util.c
382
c = ' ';
usr.bin/rpcgen/rpc_util.c
387
(void) fputc(c, stderr);
usr.bin/rpcgen/rpc_util.c
396
char c;
usr.bin/rpcgen/rpc_util.c
401
c = curline[i];
usr.bin/rpcgen/rpc_util.c
402
if (c == '\t') {
usr.bin/rpcinfo/rpcinfo.c
155
register int c;
usr.bin/rpcinfo/rpcinfo.c
168
while ((c = getopt(argc, argv, "a:bdlmn:pstT:u")) != -1) {
usr.bin/rpcinfo/rpcinfo.c
170
while ((c = getopt(argc, argv, "a:bdlmn:sT:")) != -1) {
usr.bin/rpcinfo/rpcinfo.c
172
switch (c) {
usr.bin/rs/rs.cc
107
int c;
usr.bin/rs/rs.cc
113
c = get_line();
usr.bin/rs/rs.cc
116
if (c == EOF)
usr.bin/rs/rs.cc
300
int c, i;
usr.bin/rs/rs.cc
321
for (p = curline, i = 0;; *p++ = c, i++) {
usr.bin/rs/rs.cc
322
if ((c = getchar()) == EOF)
usr.bin/rs/rs.cc
326
if (c == '\n')
usr.bin/rs/rs.cc
331
return(c);
usr.bin/sdiff/sdiff.c
718
char c, cmd;
usr.bin/sdiff/sdiff.c
728
c = *p;
usr.bin/sdiff/sdiff.c
735
if (c == ',') {
usr.bin/sdiff/sdiff.c
740
c = *p;
usr.bin/sdiff/sdiff.c
750
cmd = c;
usr.bin/sdiff/sdiff.c
759
c = *p;
usr.bin/sdiff/sdiff.c
769
if (c != ',' && c != '\0')
usr.bin/sdiff/sdiff.c
770
errx(2, "invalid line range in file2: %c: %s", c, line);
usr.bin/sdiff/sdiff.c
772
if (c == ',') {
usr.bin/sed/compile.c
1000
fixuplabel(cp->u.c, cp->next);
usr.bin/sed/compile.c
1013
u_int h, c;
usr.bin/sed/compile.c
1015
for (h = 0, p = (u_char *)cp->t; (c = *p) != 0; p++)
usr.bin/sed/compile.c
1016
h = (h << 5) + h + c;
usr.bin/sed/compile.c
1039
u_int h, c;
usr.bin/sed/compile.c
1041
for (h = 0, p = (u_char *)name; (c = *p) != 0; p++)
usr.bin/sed/compile.c
1042
h = (h << 5) + h + c;
usr.bin/sed/compile.c
187
#define addrchar(c) (strchr("0123456789/\\$", (c)))
usr.bin/sed/compile.c
232
link = &cmd->u.c;
usr.bin/sed/compile.c
383
hexdigit(char c)
usr.bin/sed/compile.c
387
lc = tolower(c);
usr.bin/sed/compile.c
422
char c;
usr.bin/sed/compile.c
424
c = *p++;
usr.bin/sed/compile.c
425
if (c == '\0')
usr.bin/sed/compile.c
427
else if (c == '\\')
usr.bin/sed/compile.c
430
else if (c == '\n')
usr.bin/sed/compile.c
434
if (*p == '[' && *p != c) {
usr.bin/sed/compile.c
448
} else if (*p == '\\' && p[1] == c) {
usr.bin/sed/compile.c
476
} else if (*p == c) {
usr.bin/sed/compile.c
490
int c, d, hexlen;
usr.bin/sed/compile.c
501
for (c = *s; (*t = *s) != ']' || c != d; s++, t++)
usr.bin/sed/compile.c
502
if ((c = *s) == '\0')
usr.bin/sed/compile.c
564
char c, *text, *op, *sp;
usr.bin/sed/compile.c
567
c = *p++; /* Terminator character */
usr.bin/sed/compile.c
568
if (c == '\0')
usr.bin/sed/compile.c
643
} else if (*p == c) {
usr.bin/sed/compile.c
991
cp->u.c = NULL;
usr.bin/sed/compile.c
994
if ((cp->u.c = findlabel(cp->t)) == NULL)
usr.bin/sed/defs.h
97
struct s_command *c; /* Command(s) for b t { */
usr.bin/sed/main.c
116
int c, fflag, fflagstdin;
usr.bin/sed/main.c
125
while ((c = getopt(argc, argv, "EI:ae:f:i:lnru")) != -1)
usr.bin/sed/main.c
126
switch (c) {
usr.bin/sed/main.c
322
int c;
usr.bin/sed/main.c
339
if (infile != NULL && (c = getc(infile)) != EOF && !quit) {
usr.bin/sed/main.c
340
(void)ungetc(c, infile);
usr.bin/sed/process.c
116
cp = cp->u.c;
usr.bin/sed/process.c
130
cp = cp->u.c;
usr.bin/sed/process.c
233
cp = cp->u.c;
usr.bin/sed/process.c
364
for (cp = prog; cp; cp = cp->code == '{' ? cp->u.c : cp->next)
usr.bin/sed/process.c
494
char c, *p;
usr.bin/sed/process.c
514
if ((c = y->bytetab[(u_char)*p]) != '\0') {
usr.bin/sed/process.c
515
cspace(&YS, &c, 1, APPEND);
usr.bin/sed/process.c
584
int c, col, width;
usr.bin/sed/process.c
631
} else if (wc != L'\0' && (c = wctob(wc)) != EOF &&
usr.bin/sed/process.c
632
(p = strchr(escapes, c)) != NULL) {
usr.bin/sed/process.c
696
char c, *dst;
usr.bin/sed/process.c
709
while ((c = *src++) != '\0') {
usr.bin/sed/process.c
710
if (c == '&')
usr.bin/sed/process.c
712
else if (c == '\\' && isdigit((unsigned char)*src))
usr.bin/sed/process.c
717
if (c == '\\' && (*src == '\\' || *src == '&'))
usr.bin/sed/process.c
718
c = *src++;
usr.bin/sed/process.c
720
*dst++ = c;
usr.bin/sed/process.c
781
cfclose(cp->u.c, cp->next);
usr.bin/seq/seq.c
110
(c = getopt_long(argc, argv, "+f:hs:t:w", long_opts, NULL)) != -1) {
usr.bin/seq/seq.c
112
switch (c) {
usr.bin/seq/seq.c
329
char c, *cp, *new = orig;
usr.bin/seq/seq.c
378
for (i = 0, c = 0;
usr.bin/seq/seq.c
381
c <<= 3;
usr.bin/seq/seq.c
382
c |= (*cp - '0');
usr.bin/seq/seq.c
384
*orig = c;
usr.bin/seq/seq.c
389
for (i = 0, c = 0;
usr.bin/seq/seq.c
392
c <<= 4;
usr.bin/seq/seq.c
394
c |= (*cp - '0');
usr.bin/seq/seq.c
396
c |= ((toupper((unsigned char)*cp) -
usr.bin/seq/seq.c
399
*orig = c;
usr.bin/seq/seq.c
49
#define ISSIGN(c) ((int)(c) == '-' || (int)(c) == '+')
usr.bin/seq/seq.c
50
#define ISEXP(c) ((int)(c) == 'e' || (int)(c) == 'E')
usr.bin/seq/seq.c
51
#define ISODIGIT(c) ((int)(c) >= '0' && (int)(c) <= '7')
usr.bin/seq/seq.c
90
int c, errflg, equalize;
usr.bin/seq/seq.c
96
c = errflg = equalize = 0;
usr.bin/sort/bwstring.c
913
char c;
usr.bin/sort/bwstring.c
920
c = *src;
usr.bin/sort/bwstring.c
921
if (isprint(c)) {
usr.bin/sort/bwstring.c
922
*dst = c;
usr.bin/sort/bwstring.c
932
wchar_t c;
usr.bin/sort/bwstring.c
939
c = *src;
usr.bin/sort/bwstring.c
940
if (iswprint(c)) {
usr.bin/sort/bwstring.c
941
*dst = c;
usr.bin/sort/bwstring.c
966
char c;
usr.bin/sort/bwstring.c
973
c = *src;
usr.bin/sort/bwstring.c
974
if (isalnum(c) || isblank(c)) {
usr.bin/sort/bwstring.c
975
*dst = c;
usr.bin/sort/bwstring.c
985
wchar_t c;
usr.bin/sort/bwstring.c
992
c = *src;
usr.bin/sort/bwstring.c
993
if (iswalnum(c) || iswblank(c)) {
usr.bin/sort/bwstring.c
994
*dst = c;
usr.bin/sort/coll.c
674
static void setsuffix(wchar_t c, unsigned char *si)
usr.bin/sort/coll.c
676
switch (c){
usr.bin/sort/radixsort.c
287
int c;
usr.bin/sort/radixsort.c
290
c = get_wc_index(sli, sl->level);
usr.bin/sort/radixsort.c
292
if (c == -1)
usr.bin/sort/radixsort.c
295
add_to_sublevel(sl, sli, c);
usr.bin/sort/sort.c
1008
while (((c = getopt_long(argc, argv, OPTIONS, long_options, NULL))
usr.bin/sort/sort.c
1011
check_mutually_exclusive_flags(c, mef_flags);
usr.bin/sort/sort.c
1013
if (!set_sort_modifier(sm, c)) {
usr.bin/sort/sort.c
1015
switch (c) {
usr.bin/sort/sort.c
296
conv_mbtowc(wchar_t *wc, const char *c, const wchar_t def)
usr.bin/sort/sort.c
299
if (wc && c) {
usr.bin/sort/sort.c
302
res = mbtowc(wc, c, mb_cur_max);
usr.bin/sort/sort.c
512
check_mutually_exclusive_flags(char c, bool *mef_flags)
usr.bin/sort/sort.c
523
if (mec != c) {
usr.bin/sort/sort.c
526
errx(1, "%c:%c: %s", c, mec, getstr(1));
usr.bin/sort/sort.c
532
errx(1, "%c:%c: %s", c, mutually_exclusive_flags[fo_index], getstr(1));
usr.bin/sort/sort.c
557
set_sort_modifier(struct sort_mods *sm, int c)
usr.bin/sort/sort.c
563
switch (c){
usr.bin/sort/sort.c
623
char *c, *f;
usr.bin/sort/sort.c
630
c = f = NULL;
usr.bin/sort/sort.c
672
c = sort_malloc((len + 1) * sizeof(char));
usr.bin/sort/sort.c
674
strncpy(c, s + pmatch[2].rm_so + 1, len);
usr.bin/sort/sort.c
675
c[len] = '\0';
usr.bin/sort/sort.c
679
ks->c2 = (size_t) strtoul(c, NULL, 10);
usr.bin/sort/sort.c
684
ks->c1 = (size_t) strtoul(c, NULL, 10);
usr.bin/sort/sort.c
718
if (c)
usr.bin/sort/sort.c
719
sort_free(c);
usr.bin/sort/sort.c
778
char *c, *f;
usr.bin/sort/sort.c
785
c = f = NULL;
usr.bin/sort/sort.c
813
c = sort_malloc((len + 1) * sizeof(char));
usr.bin/sort/sort.c
815
strncpy(c, s + pmatch[2].rm_so + 1, len);
usr.bin/sort/sort.c
816
c[len] = '\0';
usr.bin/sort/sort.c
819
*nc = (size_t) strtoul(c, NULL, 10);
usr.bin/sort/sort.c
835
if (c)
usr.bin/sort/sort.c
836
sort_free(c);
usr.bin/sort/sort.c
987
int c, result;
usr.bin/sort/vsort.c
40
isdigit_clocale(wchar_t c)
usr.bin/sort/vsort.c
43
return (c >= L'0' && c <= L'9');
usr.bin/sort/vsort.c
47
isalpha_clocale(wchar_t c)
usr.bin/sort/vsort.c
50
return ((c >= L'a' && c <= L'z') || (c >= L'A' && c <= L'Z'));
usr.bin/sort/vsort.c
54
isalnum_clocale(wchar_t c)
usr.bin/sort/vsort.c
57
return ((c >= L'a' && c <= L'z') || (c >= L'A' && c <= L'Z') ||
usr.bin/sort/vsort.c
58
(c >= L'0' && c <= L'9'));
usr.bin/sort/vsort.c
68
wchar_t c;
usr.bin/sort/vsort.c
77
while ((si < se) && (c = bws_get_iter_value(si))) {
usr.bin/sort/vsort.c
80
if (!isalpha_clocale(c) && (c != L'~'))
usr.bin/sort/vsort.c
82
} else if (c == L'.') {
usr.bin/sort/vsort.c
88
} else if (!isalnum_clocale(c) && (c != L'~'))
usr.bin/stat/stat.c
1113
#define hex2nibble(c) (c <= '9' ? c - '0' : toupper(c) - 'A' + 10)
usr.bin/stat/stat.c
1115
hex2byte(const char c[2]) {
usr.bin/stat/stat.c
1116
if (!(ishexnumber(c[0]) && ishexnumber(c[1])))
usr.bin/stat/stat.c
1118
return (hex2nibble(c[0]) << 4) + hex2nibble(c[1]);
usr.bin/stat/stat.c
203
#define addchar(s, c, nl) \
usr.bin/stat/stat.c
205
(void)fputc((c), (s)); \
usr.bin/stat/stat.c
206
(*nl) = ((c) == '\n'); \
usr.bin/systat/extern.h
41
extern char c, *namp, hostname[];
usr.bin/systat/ifstat.c
120
#define DOPUTRATE(c, r, d) do { \
usr.bin/systat/ifstat.c
121
CLEAR_COLUMN(r, c); \
usr.bin/systat/ifstat.c
123
mvprintw(r, (c), "%10.3f %cp%s ", \
usr.bin/systat/ifstat.c
124
convert(d##_##c, curscale), \
usr.bin/systat/ifstat.c
125
*get_string(d##_##c, curscale), \
usr.bin/systat/ifstat.c
129
mvprintw(r, (c), "%10.3f %s%s ", \
usr.bin/systat/ifstat.c
130
convert(d##_##c, curscale), \
usr.bin/systat/ifstat.c
131
get_string(d##_##c, curscale), \
usr.bin/systat/ifstat.c
136
#define DOPUTTOTAL(c, r, d) do { \
usr.bin/systat/ifstat.c
137
CLEAR_COLUMN((r), (c)); \
usr.bin/systat/ifstat.c
139
mvprintw((r), (c), "%12.3f %cp ", \
usr.bin/systat/ifstat.c
140
convert(d##_##c, SC_AUTO), \
usr.bin/systat/ifstat.c
141
*get_string(d##_##c, SC_AUTO)); \
usr.bin/systat/ifstat.c
144
mvprintw((r), (c), "%12.3f %s ", \
usr.bin/systat/ifstat.c
145
convert(d##_##c, SC_AUTO), \
usr.bin/systat/ifstat.c
146
get_string(d##_##c, SC_AUTO)); \
usr.bin/systat/ifstat.c
150
#define PUTRATE(c, r) do { \
usr.bin/systat/ifstat.c
151
DOPUTRATE(c, (r), IN); \
usr.bin/systat/ifstat.c
152
DOPUTRATE(c, (r)+1, OUT); \
usr.bin/systat/ifstat.c
155
#define PUTTOTAL(c, r) do { \
usr.bin/systat/ifstat.c
156
DOPUTTOTAL(c, (r), IN); \
usr.bin/systat/ifstat.c
157
DOPUTTOTAL(c, (r)+1, OUT); \
usr.bin/systat/main.c
286
c = '<';
usr.bin/systat/main.c
288
c = '>';
usr.bin/systat/main.c
292
c = '|';
usr.bin/systat/main.c
296
waddch(wload, c);
usr.bin/systat/main.c
62
char c;
usr.bin/systat/vmstat.c
365
#define PUTRATE(fld, l, c, w) \
usr.bin/systat/vmstat.c
368
sysputwuint64(wnd, l, c, w, (s.fld/etime + 0.5), 0); \
usr.bin/talk/display.c
139
int endcol, xcol, c;
usr.bin/talk/display.c
144
c = readwin(win->x_win, win->x_line, xcol);
usr.bin/talk/display.c
145
if (c != ' ')
usr.bin/talk/display.c
150
c = readwin(win->x_win, win->x_line, xcol);
usr.bin/talk/display.c
151
if (c == ' ')
usr.bin/talk/display.c
199
int c;
usr.bin/talk/display.c
203
c = winch(win);
usr.bin/talk/display.c
205
return (c);
usr.bin/tftp/main.c
735
const struct cmd *c;
usr.bin/tftp/main.c
766
c = getcmd(margv[0]);
usr.bin/tftp/main.c
767
if (c == (struct cmd *)-1) {
usr.bin/tftp/main.c
771
if (c == NULL) {
usr.bin/tftp/main.c
775
(*c->handler)(margc, margv);
usr.bin/tftp/main.c
783
const struct cmd *c, *found;
usr.bin/tftp/main.c
790
for (c = cmdtab; (p = c->name) != NULL; c++) {
usr.bin/tftp/main.c
793
return (c);
usr.bin/tftp/main.c
798
found = c;
usr.bin/tftp/main.c
849
const struct cmd *c;
usr.bin/tftp/main.c
853
for (c = cmdtab; c->name; c++)
usr.bin/tftp/main.c
854
printf("%-*s\t%s\n", (int)HELPINDENT, c->name, c->help);
usr.bin/tftp/main.c
864
c = getcmd(arg);
usr.bin/tftp/main.c
865
if (c == (struct cmd *)-1)
usr.bin/tftp/main.c
867
else if (c == (struct cmd *)0)
usr.bin/tftp/main.c
870
printf("%s\n", c->help);
usr.bin/tip/libacu/biz22.c
140
char c;
usr.bin/tip/libacu/biz22.c
150
read(FD, &c, 1);
usr.bin/tip/libacu/biz22.c
153
c &= 0177;
usr.bin/tip/libacu/biz22.c
154
return (c != '\r');
usr.bin/tip/libacu/biz22.c
161
char c;
usr.bin/tip/libacu/biz22.c
171
read(FD, &c, 1);
usr.bin/tip/libacu/biz22.c
173
c &= 0177;
usr.bin/tip/libacu/biz22.c
174
if (c != *s++)
usr.bin/tip/libacu/biz31.c
134
char c;
usr.bin/tip/libacu/biz31.c
136
while (c = *s++) switch (c) {
usr.bin/tip/libacu/biz31.c
139
read(FD, &c, 1);
usr.bin/tip/libacu/biz31.c
144
c = *s++;
usr.bin/tip/libacu/biz31.c
145
write(FD, &c, 1);
usr.bin/tip/libacu/biz31.c
149
write(FD, &c, 1);
usr.bin/tip/libacu/biz31.c
150
read(FD, &c, 1);
usr.bin/tip/libacu/biz31.c
166
char c;
usr.bin/tip/libacu/biz31.c
177
read(FD, &c, 1);
usr.bin/tip/libacu/biz31.c
179
if (c != *s++)
usr.bin/tip/libacu/biz31.c
190
char c;
usr.bin/tip/libacu/biz31.c
197
read(FD, &c, 1);
usr.bin/tip/libacu/courier.c
146
char c;
usr.bin/tip/libacu/courier.c
160
read(FD, &c, 1);
usr.bin/tip/libacu/courier.c
162
c &= 0177;
usr.bin/tip/libacu/courier.c
165
putchar(c);
usr.bin/tip/libacu/courier.c
167
} while (c == *match++);
usr.bin/tip/libacu/courier.c
191
char c;
usr.bin/tip/libacu/courier.c
208
n = read(FD, &c, 1);
usr.bin/tip/libacu/courier.c
212
c &= 0x7f;
usr.bin/tip/libacu/courier.c
213
if (c == '\r') {
usr.bin/tip/libacu/courier.c
246
dialer_buf[nc] = c;
usr.bin/tip/libacu/courier.c
249
putchar(c);
usr.bin/tip/libacu/df.c
107
return (c == 'A');
usr.bin/tip/libacu/df.c
64
char c = '\0';
usr.bin/tip/libacu/df.c
99
read(f, &c, 1);
usr.bin/tip/libacu/hayes.c
170
char c;
usr.bin/tip/libacu/hayes.c
186
read(FD, &c, 1);
usr.bin/tip/libacu/hayes.c
188
c &= 0177;
usr.bin/tip/libacu/hayes.c
190
printf("%c 0x%x ", c, c);
usr.bin/tip/libacu/hayes.c
193
if (c == match[i])
usr.bin/tip/libacu/hayes.c
194
status = c;
usr.bin/tip/libacu/hayes.c
204
error_rep(char c)
usr.bin/tip/libacu/hayes.c
207
switch (c) {
usr.bin/tip/libacu/hayes.c
234
printf("Unknown Modem error: %c (0x%x)", c, c);
usr.bin/tip/libacu/hayes.c
247
char c;
usr.bin/tip/libacu/hayes.c
257
c = gobble("03");
usr.bin/tip/libacu/hayes.c
258
if (c != '0' && c != '3') {
usr.bin/tip/libacu/t3000.c
147
char c;
usr.bin/tip/libacu/t3000.c
161
read(FD, &c, 1);
usr.bin/tip/libacu/t3000.c
163
c &= 0177;
usr.bin/tip/libacu/t3000.c
166
putchar(c);
usr.bin/tip/libacu/t3000.c
168
} while (c == *match++);
usr.bin/tip/libacu/t3000.c
206
char c;
usr.bin/tip/libacu/t3000.c
223
n = read(FD, &c, 1);
usr.bin/tip/libacu/t3000.c
227
c &= 0x7f;
usr.bin/tip/libacu/t3000.c
228
if (c == '\r') {
usr.bin/tip/libacu/t3000.c
261
dialer_buf[nc] = c;
usr.bin/tip/libacu/t3000.c
264
putchar(c);
usr.bin/tip/libacu/v3451.c
198
char c;
usr.bin/tip/libacu/v3451.c
200
while ((c = *s1++) == *s2++)
usr.bin/tip/libacu/v3451.c
201
if (c == '\0')
usr.bin/tip/libacu/v3451.c
203
return (c == '\0');
usr.bin/tip/libacu/v831.c
174
#define pc(x) (c = x, write(AC,&c,1))
usr.bin/tip/libacu/v831.c
185
char c;
usr.bin/tip/libacu/v831.c
216
i = read(AC, &c, 1);
usr.bin/tip/libacu/v831.c
218
printf("read %d chars, char=%c, errno %d\n", i, c, errno);
usr.bin/tip/libacu/v831.c
221
c = 'M';
usr.bin/tip/libacu/v831.c
222
if (c == 'B' || c == 'G') {
usr.bin/tip/libacu/v831.c
223
char cc, oc = c;
usr.bin/tip/libacu/v831.c
230
c = oc;
usr.bin/tip/libacu/v831.c
235
printf("dialit: returns %c\n", c);
usr.bin/tip/libacu/v831.c
237
return (c);
usr.bin/tip/libacu/ventel.c
146
char c;
usr.bin/tip/libacu/ventel.c
148
while ((c = *s++) != '\0')
usr.bin/tip/libacu/ventel.c
149
switch (c) {
usr.bin/tip/libacu/ventel.c
151
read(FD, &c, 1);
usr.bin/tip/libacu/ventel.c
156
c = *s++;
usr.bin/tip/libacu/ventel.c
157
write(FD, &c, 1);
usr.bin/tip/libacu/ventel.c
161
write(FD, &c, 1);
usr.bin/tip/libacu/ventel.c
162
read(FD, &c, 1);
usr.bin/tip/libacu/ventel.c
180
char c;
usr.bin/tip/libacu/ventel.c
193
c = (*cp++ &= 0177);
usr.bin/tip/libacu/ventel.c
196
putchar(c);
usr.bin/tip/libacu/ventel.c
198
} while (c != '\n' && c != match);
usr.bin/tip/libacu/ventel.c
201
return (c == match);
usr.bin/tip/tip/cmds.c
100
cu_take(int c)
usr.bin/tip/tip/cmds.c
133
char c, buffer[BUFSIZ];
usr.bin/tip/tip/cmds.c
157
read(FD, &c, 1);
usr.bin/tip/tip/cmds.c
158
while ((c&STRIP_PAR) != '\n');
usr.bin/tip/tip/cmds.c
165
eof = read(FD, &c, 1) <= 0;
usr.bin/tip/tip/cmds.c
166
c &= STRIP_PAR;
usr.bin/tip/tip/cmds.c
169
if (eof || any(c, eofchars))
usr.bin/tip/tip/cmds.c
171
if (c == 0)
usr.bin/tip/tip/cmds.c
173
if (c == '\r')
usr.bin/tip/tip/cmds.c
175
*p++ = c;
usr.bin/tip/tip/cmds.c
177
if (c == '\n' && boolean(value(VERBOSE)))
usr.bin/tip/tip/cmds.c
205
pipefile(int c)
usr.bin/tip/tip/cmds.c
265
sendfile(int c)
usr.bin/tip/tip/cmds.c
270
putchar(c);
usr.bin/tip/tip/cmds.c
298
int c, ccount, lcount;
usr.bin/tip/tip/cmds.c
311
read(FD, (char *)&c, 1); /* trailing \n */
usr.bin/tip/tip/cmds.c
323
c = getc(fp);
usr.bin/tip/tip/cmds.c
326
if (c == EOF)
usr.bin/tip/tip/cmds.c
328
if (c == 0177 && !boolean(value(RAWFTP)))
usr.bin/tip/tip/cmds.c
330
lastc = c;
usr.bin/tip/tip/cmds.c
331
if (c < 040) {
usr.bin/tip/tip/cmds.c
332
if (c == '\n') {
usr.bin/tip/tip/cmds.c
334
c = '\r';
usr.bin/tip/tip/cmds.c
335
} else if (c == '\t') {
usr.bin/tip/tip/cmds.c
348
send(c);
usr.bin/tip/tip/cmds.c
349
} while (c != '\r' && !boolean(value(RAWFTP)));
usr.bin/tip/tip/cmds.c
356
read(FD, (char *)&c, 1);
usr.bin/tip/tip/cmds.c
363
} while ((c&STRIP_PAR) != character(value(PROMPT)));
usr.bin/tip/tip/cmds.c
392
cu_put(int c)
usr.bin/tip/tip/cmds.c
426
send(int c)
usr.bin/tip/tip/cmds.c
431
cc = c;
usr.bin/tip/tip/cmds.c
433
if (number(value(CDELAY)) > 0 && c != '\r')
usr.bin/tip/tip/cmds.c
436
if (number(value(LDELAY)) > 0 && c == '\r')
usr.bin/tip/tip/cmds.c
446
printf("\r\ntimeout error (%s)\r\n", ctrl(c));
usr.bin/tip/tip/cmds.c
467
pipeout(int c)
usr.bin/tip/tip/cmds.c
474
putchar(c);
usr.bin/tip/tip/cmds.c
520
consh(int c)
usr.bin/tip/tip/cmds.c
527
putchar(c);
usr.bin/tip/tip/cmds.c
572
shell(int c)
usr.bin/tip/tip/cmds.c
610
char c;
usr.bin/tip/tip/cmds.c
622
read(repdes[0], &c, 1);
usr.bin/tip/tip/cmds.c
623
if (c == 'n')
usr.bin/tip/tip/cmds.c
633
chdirectory(int c)
usr.bin/tip/tip/cmds.c
667
finish(int c)
usr.bin/tip/tip/cmds.c
70
getfl(int c)
usr.bin/tip/tip/cmds.c
74
putchar(c);
usr.bin/tip/tip/cmds.c
744
variable(int c)
usr.bin/tip/tip/cmds.c
800
listvariables(int c)
usr.bin/tip/tip/cmds.c
891
genbrk(int c)
usr.bin/tip/tip/cmds.c
902
suspend(int c)
usr.bin/tip/tip/cmds.c
905
kill(c == CTRL('y') ? getpid() : 0, SIGTSTP);
usr.bin/tip/tip/cmds.c
985
int c;
usr.bin/tip/tip/cmds.c
987
while ((c = *s1++))
usr.bin/tip/tip/cmds.c
988
if (any(c, s2))
usr.bin/tip/tip/tip.c
333
int c;
usr.bin/tip/tip/tip.c
343
while ((c = getchar()) != EOF && (*p = c) != '\n' && --sz > 0)
usr.bin/tip/tip/tip.c
438
char c = character(value(ESCAPE));
usr.bin/tip/tip/tip.c
448
printf("%s", ctrl(c));
usr.bin/tip/tip/tip.c
453
if (c != gch)
usr.bin/tip/tip/tip.c
454
parwrite(FD, &c, 1);
usr.bin/tip/tip/tip.c
461
char c = cc;
usr.bin/tip/tip/tip.c
463
if (*p++ == c)
usr.bin/tip/tip/tip.c
482
char *p = buf, c, *q;
usr.bin/tip/tip/tip.c
484
while ((c = *s++)) {
usr.bin/tip/tip/tip.c
486
if (*q++ == c) {
usr.bin/tip/tip/tip.c
490
if (c < 040) {
usr.bin/tip/tip/tip.c
491
*p++ = '^'; *p++ = c + 'A'-1;
usr.bin/tip/tip/tip.c
492
} else if (c == 0177) {
usr.bin/tip/tip/tip.c
495
*p++ = c;
usr.bin/tip/tip/tip.c
504
ctrl(char c)
usr.bin/tip/tip/tip.c
508
if (c < 040 || c == 0177) {
usr.bin/tip/tip/tip.c
510
s[1] = c == 0177 ? '?' : c+'A'-1;
usr.bin/tip/tip/tip.c
513
s[0] = c;
usr.bin/tip/tip/tip.c
523
help(int c)
usr.bin/tip/tip/tip.c
527
printf("%c\r\n", c);
usr.bin/tip/tip/tip.h
187
#define logent(a, b, c, d)
usr.bin/tip/tip/tipout.c
72
char c, line[256];
usr.bin/tip/tip/tipout.c
76
read(fildes[0], &c, 1);
usr.bin/tip/tip/tipout.c
77
while (c != '\n' && (size_t)(pline - line) < sizeof(line)) {
usr.bin/tip/tip/tipout.c
78
*pline++ = c;
usr.bin/tip/tip/tipout.c
79
read(fildes[0], &c, 1);
usr.bin/tip/tip/value.c
287
char *p = s, c;
usr.bin/tip/tip/value.c
290
while ((c = *s++) && c != stop) {
usr.bin/tip/tip/value.c
291
switch (c) {
usr.bin/tip/tip/value.c
297
*p++ = c;
usr.bin/tip/tip/value.c
302
c = *s++;
usr.bin/tip/tip/value.c
303
if (c >= '0' && c <= '7')
usr.bin/tip/tip/value.c
304
num = (num<<3)+(c-'0');
usr.bin/tip/tip/value.c
309
if (c == *q++) {
usr.bin/tip/tip/value.c
313
*p++ = c;
usr.bin/tip/tip/value.c
317
if ((c = *s++) >= '0' && c <= '7') {
usr.bin/tip/tip/value.c
318
num = (num<<3)+(c-'0');
usr.bin/tip/tip/value.c
319
if ((c = *s++) >= '0' && c <= '7')
usr.bin/tip/tip/value.c
320
num = (num<<3)+(c-'0');
usr.bin/tip/tip/value.c
329
*p++ = c;
usr.bin/tip/tip/value.c
333
return (c == stop ? s-1 : NULL);
usr.bin/top/commands.c
106
if (nextcmd->desc == NULL && nextcmd->c != '\0') {
usr.bin/top/commands.c
107
sprintf(keys, "%c or %c", curcmd->c, nextcmd->c);
usr.bin/top/commands.c
108
} else if (curcmd->c == ' '){
usr.bin/top/commands.c
113
sprintf(keys, "%c", curcmd->c);
usr.bin/top/commands.c
95
while (curcmd->c != 0) {
usr.bin/top/commands.h
51
char c;
usr.bin/top/top.c
793
while (cptr->c != '\0') {
usr.bin/top/top.c
794
if (cptr->c == ch) {
usr.bin/top/top.c
799
if (cptr->c == '\0') {
usr.bin/truss/main.c
74
int c;
usr.bin/truss/main.c
88
while ((c = getopt(ac, av, "p:o:facedDs:SH")) != -1) {
usr.bin/truss/main.c
89
switch (c) {
usr.bin/tsort/tsort.c
105
int c, n;
usr.bin/tsort/tsort.c
145
for (n = 0, c = getc(fp);;) {
usr.bin/tsort/tsort.c
146
while (c != EOF && isspace(c))
usr.bin/tsort/tsort.c
147
c = getc(fp);
usr.bin/tsort/tsort.c
148
if (c == EOF)
usr.bin/tsort/tsort.c
155
b->b_buf[nused++] = c;
usr.bin/tsort/tsort.c
158
c = getc(fp);
usr.bin/tsort/tsort.c
159
} while (c != EOF && !isspace(c));
usr.bin/ul/ul.c
106
while ((c = getopt(argc, argv, "it:T:")) != -1)
usr.bin/ul/ul.c
107
switch (c) {
usr.bin/ul/ul.c
160
wint_t c;
usr.bin/ul/ul.c
166
while ((c = getwc(f)) != WEOF) {
usr.bin/ul/ul.c
183
switch(c) {
usr.bin/ul/ul.c
208
switch (c = getwc(f)) {
usr.bin/ul/ul.c
241
errx(1, "unknown escape sequence in input: %o, %o", IESC, c);
usr.bin/ul/ul.c
275
if ((w = wcwidth(c)) <= 0) /* non printing */
usr.bin/ul/ul.c
278
obuf[col].c_char = c;
usr.bin/ul/ul.c
285
obuf[col].c_char = c;
usr.bin/ul/ul.c
291
} else if ((wint_t)obuf[col].c_char == c) {
usr.bin/ul/ul.c
503
outchar(int c)
usr.bin/ul/ul.c
505
return (putwchar(c) != WEOF ? c : EOF);
usr.bin/ul/ul.c
511
outc(wint_t c, int width)
usr.bin/ul/ul.c
515
putwchar(c);
usr.bin/ul/ul.c
96
int c;
usr.bin/usbhidaction/usbhidaction.c
267
int c;
usr.bin/usbhidaction/usbhidaction.c
269
c = getc(f);
usr.bin/usbhidaction/usbhidaction.c
270
if (c != EOF)
usr.bin/usbhidaction/usbhidaction.c
271
ungetc(c, f);
usr.bin/usbhidaction/usbhidaction.c
272
return c;
usr.bin/vgrind/regexp.c
163
register char c; /* character being processed */
usr.bin/vgrind/regexp.c
171
switch (c = *ure++) {
usr.bin/vgrind/regexp.c
174
switch (c = *ure++) {
usr.bin/vgrind/regexp.c
185
*ccre++ = c;
usr.bin/vgrind/regexp.c
203
MSYM(cs) = c;
usr.bin/vgrind/regexp.c
222
MSYM(cs) = c;
usr.bin/vgrind/regexp.c
262
MSYM(cs) = c;
usr.bin/vgrind/regexp.c
291
*ccre++ = c;
usr.bin/vgrind/regexp.c
46
#define makelower(c) (isupper((c)) ? tolower((c)) : (c))
usr.bin/vgrind/vfontedpr.c
335
#define isidchr(c) (isalnum(c) || (c) == '_')
usr.bin/vgrind/vfontedpr.c
610
putcp(register int c)
usr.bin/vgrind/vfontedpr.c
613
switch(c) {
usr.bin/vgrind/vfontedpr.c
665
if (c < 040)
usr.bin/vgrind/vfontedpr.c
666
putchar('^'), c |= '@';
usr.bin/vgrind/vfontedpr.c
669
putchar(c);
usr.bin/vmstat/vmstat.c
203
int bufsize, c, reps, todo;
usr.bin/vmstat/vmstat.c
218
while ((c = getopt(argc, argv, "ac:fhHiM:mN:n:oPp:sw:z")) != -1) {
usr.bin/vmstat/vmstat.c
219
switch (c) {
usr.bin/vmstat/vmstat.c
298
if (kd != NULL && (c = kvm_nlist(kd, namelist)) != 0) {
usr.bin/vmstat/vmstat.c
299
if (c > 0) {
usr.bin/vmstat/vmstat.c
317
if (namelist[X_NINTRCNT].n_type == 0 && c == 1)
usr.bin/vmstat/vmstat.c
320
for (c = 0; c < (int)(nitems(namelist)); c++)
usr.bin/vmstat/vmstat.c
321
if (namelist[c].n_type == 0)
usr.bin/vmstat/vmstat.c
322
bufsize += strlen(namelist[c].n_name)
usr.bin/vmstat/vmstat.c
327
for (c = 0; c < (int)(nitems(namelist)); c++)
usr.bin/vmstat/vmstat.c
328
if (namelist[c].n_type == 0) {
usr.bin/vmstat/vmstat.c
330
namelist[c].n_name);
usr.bin/vmstat/vmstat.c
331
len = strlen(namelist[c].n_name);
usr.bin/vmstat/vmstat.c
333
memcpy(bp, namelist[c].n_name, len);
usr.bin/vtfontcvt/vtfontcvt.c
104
{ .c = 0, .len = 0 }, /* deault char */
usr.bin/vtfontcvt/vtfontcvt.c
105
{ .c = 0x20, .len = 0x5f },
usr.bin/vtfontcvt/vtfontcvt.c
106
{ .c = 0x2500, .len = 0 }, /* single frame */
usr.bin/vtfontcvt/vtfontcvt.c
107
{ .c = 0x2502, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
108
{ .c = 0x250c, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
109
{ .c = 0x2510, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
110
{ .c = 0x2514, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
111
{ .c = 0x2518, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
112
{ .c = 0x2550, .len = 1 }, /* double frame */
usr.bin/vtfontcvt/vtfontcvt.c
113
{ .c = 0x2554, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
114
{ .c = 0x2557, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
115
{ .c = 0x255a, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
116
{ .c = 0x255d, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
124
{ .c = 0, .len = 0 }, /* deault char */
usr.bin/vtfontcvt/vtfontcvt.c
125
{ .c = 0x20, .len = 0x5f }, /* ascii set */
usr.bin/vtfontcvt/vtfontcvt.c
126
{ .c = 0xA0, .len = 0x5f }, /* latin 1 */
usr.bin/vtfontcvt/vtfontcvt.c
127
{ .c = 0x0192, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
128
{ .c = 0x0332, .len = 0 }, /* composing lower line */
usr.bin/vtfontcvt/vtfontcvt.c
129
{ .c = 0x0393, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
130
{ .c = 0x0398, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
131
{ .c = 0x03A3, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
132
{ .c = 0x03A6, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
133
{ .c = 0x03A9, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
134
{ .c = 0x03B1, .len = 1 },
usr.bin/vtfontcvt/vtfontcvt.c
135
{ .c = 0x03B4, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
136
{ .c = 0x03C0, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
137
{ .c = 0x03C3, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
138
{ .c = 0x03C4, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
139
{ .c = 0x207F, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
140
{ .c = 0x20A7, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
141
{ .c = 0x2205, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
142
{ .c = 0x220A, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
143
{ .c = 0x2219, .len = 1 },
usr.bin/vtfontcvt/vtfontcvt.c
144
{ .c = 0x221E, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
145
{ .c = 0x2229, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
146
{ .c = 0x2248, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
147
{ .c = 0x2261, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
148
{ .c = 0x2264, .len = 1 },
usr.bin/vtfontcvt/vtfontcvt.c
149
{ .c = 0x2310, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
150
{ .c = 0x2320, .len = 1 },
usr.bin/vtfontcvt/vtfontcvt.c
151
{ .c = 0x2500, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
152
{ .c = 0x2502, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
153
{ .c = 0x250C, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
154
{ .c = 0x2510, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
155
{ .c = 0x2514, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
156
{ .c = 0x2518, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
157
{ .c = 0x251C, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
158
{ .c = 0x2524, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
159
{ .c = 0x252C, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
160
{ .c = 0x2534, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
161
{ .c = 0x253C, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
162
{ .c = 0x2550, .len = 0x1c },
usr.bin/vtfontcvt/vtfontcvt.c
163
{ .c = 0x2580, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
164
{ .c = 0x2584, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
165
{ .c = 0x2588, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
166
{ .c = 0x258C, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
167
{ .c = 0x2590, .len = 3 },
usr.bin/vtfontcvt/vtfontcvt.c
168
{ .c = 0x25A0, .len = 0 },
usr.bin/vtfontcvt/vtfontcvt.c
198
add_mapping(struct glyph *gl, unsigned int c, unsigned int map_idx)
usr.bin/vtfontcvt/vtfontcvt.c
206
mp->m_char = c;
usr.bin/vtfontcvt/vtfontcvt.c
212
TAILQ_LAST(ml, mapping_list)->m_char < c) {
usr.bin/vtfontcvt/vtfontcvt.c
218
if (mp_temp->m_char >= c) {
usr.bin/vtfontcvt/vtfontcvt.c
291
check_whitelist(unsigned c)
usr.bin/vtfontcvt/vtfontcvt.c
310
if (c >= w[i].c && c <= w[i].c + w[i].len)
usr.bin/vtfontcvt/vtfontcvt.c
95
uint32_t c;
usr.bin/what/what.c
101
int c;
usr.bin/what/what.c
105
while ((c = getc(in)) != EOF) {
usr.bin/what/what.c
106
loop: if (c != '@')
usr.bin/what/what.c
108
if ((c = getc(in)) != '(')
usr.bin/what/what.c
110
if ((c = getc(in)) != '#')
usr.bin/what/what.c
112
if ((c = getc(in)) != ')')
usr.bin/what/what.c
116
while ((c = getc(in)) != EOF && c && c != '"' &&
usr.bin/what/what.c
117
c != '>' && c != '\\' && c != '\n')
usr.bin/what/what.c
118
putchar(c);
usr.bin/what/what.c
47
int c;
usr.bin/what/what.c
51
while ((c = getopt(argc, argv, "qs")) != -1) {
usr.bin/what/what.c
52
switch (c) {
usr.bin/whereis/whereis.c
104
int c, i;
usr.bin/whereis/whereis.c
107
while ((c = getopt(argc, argv, "BMSabfmqsux")) != -1)
usr.bin/whereis/whereis.c
108
switch (c) {
usr.bin/write/write.c
330
#define PUTC(c) if (putwchar(c) == WEOF) err(1, NULL);
usr.bin/xinstall/xinstall.c
439
digest_init(DIGEST_CTX *c)
usr.bin/xinstall/xinstall.c
447
MD5Init(&(c->MD5));
usr.bin/xinstall/xinstall.c
452
RIPEMD160_Init(&(c->RIPEMD160));
usr.bin/xinstall/xinstall.c
456
SHA1_Init(&(c->SHA1));
usr.bin/xinstall/xinstall.c
459
SHA256_Init(&(c->SHA256));
usr.bin/xinstall/xinstall.c
462
SHA512_Init(&(c->SHA512));
usr.bin/xinstall/xinstall.c
468
digest_update(DIGEST_CTX *c, const char *data, size_t len)
usr.bin/xinstall/xinstall.c
476
MD5Update(&(c->MD5), data, len);
usr.bin/xinstall/xinstall.c
481
RIPEMD160_Update(&(c->RIPEMD160), data, len);
usr.bin/xinstall/xinstall.c
485
SHA1_Update(&(c->SHA1), data, len);
usr.bin/xinstall/xinstall.c
488
SHA256_Update(&(c->SHA256), data, len);
usr.bin/xinstall/xinstall.c
491
SHA512_Update(&(c->SHA512), data, len);
usr.bin/xinstall/xinstall.c
497
digest_end(DIGEST_CTX *c, char *buf)
usr.bin/xinstall/xinstall.c
503
return (MD5End(&(c->MD5), buf));
usr.bin/xinstall/xinstall.c
507
return (RIPEMD160_End(&(c->RIPEMD160), buf));
usr.bin/xinstall/xinstall.c
510
return (SHA1_End(&(c->SHA1), buf));
usr.bin/xinstall/xinstall.c
512
return (SHA256_End(&(c->SHA256), buf));
usr.bin/xinstall/xinstall.c
514
return (SHA512_End(&(c->SHA512), buf));
usr.bin/xstr/xstr.c
153
int c;
usr.bin/xstr/xstr.c
171
for (cp = linebuf; (c = *cp++);) switch (c) {
usr.bin/xstr/xstr.c
184
putchar(c);
usr.bin/xstr/xstr.c
208
putchar(c);
usr.bin/xstr/xstr.c
221
int c, ch;
usr.bin/xstr/xstr.c
227
while ((c = *cp++)) {
usr.bin/xstr/xstr.c
230
switch (c) {
usr.bin/xstr/xstr.c
237
c = *cp++;
usr.bin/xstr/xstr.c
238
if (c == 0)
usr.bin/xstr/xstr.c
240
if (c == '\n') {
usr.bin/xstr/xstr.c
251
if (c == ch) {
usr.bin/xstr/xstr.c
252
c = *tp;
usr.bin/xstr/xstr.c
255
if (!octdigit(c)) {
usr.bin/xstr/xstr.c
259
c -= '0';
usr.bin/xstr/xstr.c
262
c <<= 3, c += *cp++ - '0';
usr.bin/xstr/xstr.c
265
c <<= 3, c += *cp++ - '0';
usr.bin/xstr/xstr.c
269
*dp++ = c;
usr.bin/xstr/xstr.c
278
octdigit(char c)
usr.bin/xstr/xstr.c
280
return (isdigit(c) && c != '8' && c != '9');
usr.bin/xstr/xstr.c
303
int c;
usr.bin/xstr/xstr.c
306
while (--rmdr > 0 && (c = xgetc(file)) != 0 && c != EOF)
usr.bin/xstr/xstr.c
307
*buf++ = c;
usr.bin/xstr/xstr.c
403
int c;
usr.bin/xstr/xstr.c
405
while ((c = (*cp++ & 0377)))
usr.bin/xstr/xstr.c
406
if (c < ' ')
usr.bin/xstr/xstr.c
407
fprintf(stderr, "^%c", c + '`');
usr.bin/xstr/xstr.c
408
else if (c == 0177)
usr.bin/xstr/xstr.c
410
else if (c > 0200)
usr.bin/xstr/xstr.c
411
fprintf(stderr, "\\%03o", c);
usr.bin/xstr/xstr.c
413
fprintf(stderr, "%c", c);
usr.bin/xstr/xstr.c
429
int i, c;
usr.bin/xstr/xstr.c
432
c = getc(strf);
usr.bin/xstr/xstr.c
441
fprintf(xdotcf, "0x%02x,", c);
usr.bin/xstr/xstr.c
87
int c;
usr.bin/xstr/xstr.c
90
while ((c = getopt(argc, argv, "-cv")) != -1)
usr.bin/xstr/xstr.c
91
switch (c) {
usr.bin/ypcat/ypcat.c
91
int c, notrans, r;
usr.bin/ypcat/ypcat.c
95
while ((c = getopt(argc, argv, "xd:kt")) != -1)
usr.bin/ypcat/ypcat.c
96
switch (c) {
usr.bin/ypmatch/ypmatch.c
78
int c, r;
usr.bin/ypmatch/ypmatch.c
83
while ((c = getopt(argc, argv, "xd:kt")) != -1)
usr.bin/ypmatch/ypmatch.c
84
switch (c) {
usr.bin/ypwhich/ypwhich.c
140
int notrans = 0, mode = 0, c, r, i;
usr.bin/ypwhich/ypwhich.c
150
while ((c = getopt(argc, argv, "xd:h:mt")) != -1)
usr.bin/ypwhich/ypwhich.c
151
switch (c) {
usr.sbin/ac/ac.c
174
int c;
usr.sbin/ac/ac.c
178
c = strcmp(up->user, user);
usr.sbin/ac/ac.c
179
if (c == 0) {
usr.sbin/ac/ac.c
183
} else if (c > 0)
usr.sbin/ac/ac.c
208
int c;
usr.sbin/ac/ac.c
212
while ((c = getopt(argc, argv, "c:dpt:w:")) != -1) {
usr.sbin/ac/ac.c
213
switch (c) {
usr.sbin/acpi/acpiconf/acpiconf.c
235
int c, sleep_type, battery, ack;
usr.sbin/acpi/acpiconf/acpiconf.c
245
while ((c = getopt(argc, argv, "hi:k:s:")) != -1) {
usr.sbin/acpi/acpiconf/acpiconf.c
246
switch (c) {
usr.sbin/acpi/acpidump/acpi.c
179
int c;
usr.sbin/acpi/acpidump/acpi.c
186
c = *s++;
usr.sbin/acpi/acpidump/acpi.c
187
putchar(c);
usr.sbin/acpi/acpidump/acpidump.c
58
int c;
usr.sbin/acpi/acpidump/acpidump.c
69
while ((c = getopt(argc, argv, "df:ho:tT:vs")) != -1) {
usr.sbin/acpi/acpidump/acpidump.c
70
switch (c) {
usr.sbin/apm/apm.c
381
int c, fd;
usr.sbin/apm/apm.c
392
while ((c = getopt(argc, argv, "abe:h:lRr:stzd:Z")) != -1) {
usr.sbin/apm/apm.c
393
switch (c) {
usr.sbin/autofs/common.c
338
char c, *expanded;
usr.sbin/autofs/common.c
347
c = string[i];
usr.sbin/autofs/common.c
348
if (c == '\\' && backslashed == false) {
usr.sbin/autofs/common.c
357
if (c != '&')
usr.sbin/autofs/common.c
74
char *c;
usr.sbin/autofs/common.c
78
c = strdup(s);
usr.sbin/autofs/common.c
79
if (c == NULL)
usr.sbin/autofs/common.c
81
return (c);
usr.sbin/autofs/defined.c
100
if (c != '$')
usr.sbin/autofs/defined.c
142
c = string[i];
usr.sbin/autofs/defined.c
147
if (isalnum(c) || c == '_')
usr.sbin/autofs/defined.c
154
if (c != '}')
usr.sbin/autofs/defined.c
83
char c, *expanded, *name;
usr.sbin/autofs/defined.c
90
c = string[i];
usr.sbin/autofs/defined.c
91
if (c == '\\' && backslashed == false) {
usr.sbin/bhyve/aarch64/bhyverun_machdep.c
127
int c;
usr.sbin/bhyve/aarch64/bhyverun_machdep.c
130
while ((c = getopt(argc, argv, optstr)) != -1) {
usr.sbin/bhyve/aarch64/bhyverun_machdep.c
131
switch (c) {
usr.sbin/bhyve/amd64/bhyverun_machdep.c
119
int c;
usr.sbin/bhyve/amd64/bhyverun_machdep.c
126
while ((c = getopt(argc, argv, optstr)) != -1) {
usr.sbin/bhyve/amd64/bhyverun_machdep.c
127
switch (c) {
usr.sbin/bhyve/amd64/fwctl.c
88
uint8_t c[4];
usr.sbin/bhyve/amd64/fwctl.c
95
u.c[i] = *data++;
usr.sbin/bhyve/block_if.c
921
blockif_chs(struct blockif_ctxt *bc, uint16_t *c, uint8_t *h, uint8_t *s)
usr.sbin/bhyve/block_if.c
960
*c = hcyl / heads;
usr.sbin/bhyve/block_if.h
74
void blockif_chs(struct blockif_ctxt *bc, uint16_t *c, uint8_t *h,
usr.sbin/bhyve/mevent.c
122
char c = '\0';
usr.sbin/bhyve/mevent.c
129
write(mevent_pipefd[1], &c, 1);
usr.sbin/bhyve/pci_nvme.c
113
#define NVME_COMPLETION_VALID(c) ((c).status != NVME_NO_STATUS)
usr.sbin/bhyve/riscv/bhyverun_machdep.c
121
int c;
usr.sbin/bhyve/riscv/bhyverun_machdep.c
124
while ((c = getopt(argc, argv, optstr)) != -1) {
usr.sbin/bhyve/riscv/bhyverun_machdep.c
125
switch (c) {
usr.sbin/bhyve/uart_backend.c
142
int c, error, wasfull;
usr.sbin/bhyve/uart_backend.c
149
c = fifo->buf[fifo->rindex];
usr.sbin/bhyve/uart_backend.c
158
return (c);
usr.sbin/bhyveload/bhyveload.c
128
char c = ch;
usr.sbin/bhyveload/bhyveload.c
130
(void) write(consout_fd, &c, 1);
usr.sbin/bhyveload/bhyveload.c
136
char c;
usr.sbin/bhyveload/bhyveload.c
138
if (read(consin_fd, &c, 1) == 1)
usr.sbin/bhyveload/bhyveload.c
139
return (c);
usr.sbin/binmiscctl/binmiscctl.c
248
int c;
usr.sbin/binmiscctl/binmiscctl.c
251
while((c = *s++) != '\0') {
usr.sbin/binmiscctl/binmiscctl.c
252
if (c == '\\') {
usr.sbin/binmiscctl/binmiscctl.c
261
c = toupper(*s++);
usr.sbin/binmiscctl/binmiscctl.c
262
*d = (c - (isdigit(c) ? '0' : ('A' - 10))) << 4;
usr.sbin/binmiscctl/binmiscctl.c
263
c = toupper(*s++);
usr.sbin/binmiscctl/binmiscctl.c
264
*d++ |= c - (isdigit(c) ? '0' : ('A' - 10));
usr.sbin/binmiscctl/binmiscctl.c
271
*d++ = c;
usr.sbin/bluetooth/bthidcontrol/bthidcontrol.c
115
struct bthid_command *c = NULL;
usr.sbin/bluetooth/bthidcontrol/bthidcontrol.c
137
c = find_bthid_command(cmd, sdp_commands);
usr.sbin/bluetooth/bthidcontrol/bthidcontrol.c
138
if (c == NULL)
usr.sbin/bluetooth/bthidcontrol/bthidcontrol.c
139
c = find_bthid_command(cmd, hid_commands);
usr.sbin/bluetooth/bthidcontrol/bthidcontrol.c
141
if (c == NULL) {
usr.sbin/bluetooth/bthidcontrol/bthidcontrol.c
147
e = (c->handler)(bdaddr, -- argc, ++ argv);
usr.sbin/bluetooth/bthidcontrol/bthidcontrol.c
162
fprintf(stdout, "Usage: %s\n%s\n", c->command, c->description);
usr.sbin/bluetooth/bthidcontrol/bthidcontrol.c
175
struct bthid_command *c = NULL;
usr.sbin/bluetooth/bthidcontrol/bthidcontrol.c
177
for (c = category; c->command != NULL; c++) {
usr.sbin/bluetooth/bthidcontrol/bthidcontrol.c
178
char *c_end = strchr(c->command, ' ');
usr.sbin/bluetooth/bthidcontrol/bthidcontrol.c
181
int len = c_end - c->command;
usr.sbin/bluetooth/bthidcontrol/bthidcontrol.c
183
if (strncasecmp(command, c->command, len) == 0)
usr.sbin/bluetooth/bthidcontrol/bthidcontrol.c
184
return (c);
usr.sbin/bluetooth/bthidcontrol/bthidcontrol.c
185
} else if (strcasecmp(command, c->command) == 0)
usr.sbin/bluetooth/bthidcontrol/bthidcontrol.c
186
return (c);
usr.sbin/bluetooth/bthidcontrol/bthidcontrol.c
196
struct bthid_command *c = NULL;
usr.sbin/bluetooth/bthidcontrol/bthidcontrol.c
198
for (c = category; c->command != NULL; c++)
usr.sbin/bluetooth/bthidcontrol/bthidcontrol.c
199
fprintf(stdout, "\t%s\n", c->command);
usr.sbin/bluetooth/bthidd/hid.c
436
struct apple_state *c = (struct apple_state *)s->ctx;
usr.sbin/bluetooth/bthidd/hid.c
475
z = (y - c->y[id]) / AMM_WHEEL_SPEED;
usr.sbin/bluetooth/bthidd/hid.c
479
c->y[id] = y;
usr.sbin/bluetooth/bthidd/hid.c
484
c->y[id] += z * AMM_WHEEL_SPEED;
usr.sbin/bluetooth/bthidd/hid.c
500
if (mouse_butt && !c->button_state && firm && middle == firm)
usr.sbin/bluetooth/bthidd/hid.c
508
if (mouse_butt && c->button_state == 0x2)
usr.sbin/bluetooth/bthidd/hid.c
511
if (mouse_butt != c->button_state)
usr.sbin/bluetooth/bthidd/hid.c
512
c->button_state = mouse_butt, mevents++;
usr.sbin/bluetooth/bthidd/kbd.c
470
#define PUT(c, n, b, eob) \
usr.sbin/bluetooth/bthidd/kbd.c
474
*(b) = (c); \
usr.sbin/bluetooth/bthidd/kbd.c
482
int32_t c, n;
usr.sbin/bluetooth/bthidd/kbd.c
516
if ((c = x[code]) == -1)
usr.sbin/bluetooth/bthidd/kbd.c
520
if (c & E0PREFIX)
usr.sbin/bluetooth/bthidd/kbd.c
523
PUT((c & CODEMASK), n, b, eob);
usr.sbin/bluetooth/bthidd/kbd.c
524
} else if (!(c & NOBREAK)) {
usr.sbin/bluetooth/bthidd/kbd.c
525
if (c & E0PREFIX)
usr.sbin/bluetooth/bthidd/kbd.c
528
PUT((0x80|(c & CODEMASK)), n, b, eob);
usr.sbin/bluetooth/hccontrol/hccontrol.c
175
struct hci_command *c = NULL;
usr.sbin/bluetooth/hccontrol/hccontrol.c
202
c = find_hci_command(cmd, link_control_commands);
usr.sbin/bluetooth/hccontrol/hccontrol.c
203
if (c != NULL)
usr.sbin/bluetooth/hccontrol/hccontrol.c
206
c = find_hci_command(cmd, link_policy_commands);
usr.sbin/bluetooth/hccontrol/hccontrol.c
207
if (c != NULL)
usr.sbin/bluetooth/hccontrol/hccontrol.c
210
c = find_hci_command(cmd, host_controller_baseband_commands);
usr.sbin/bluetooth/hccontrol/hccontrol.c
211
if (c != NULL)
usr.sbin/bluetooth/hccontrol/hccontrol.c
214
c = find_hci_command(cmd, info_commands);
usr.sbin/bluetooth/hccontrol/hccontrol.c
215
if (c != NULL)
usr.sbin/bluetooth/hccontrol/hccontrol.c
218
c = find_hci_command(cmd, status_commands);
usr.sbin/bluetooth/hccontrol/hccontrol.c
219
if (c != NULL)
usr.sbin/bluetooth/hccontrol/hccontrol.c
222
c = find_hci_command(cmd, le_commands);
usr.sbin/bluetooth/hccontrol/hccontrol.c
223
if (c != NULL)
usr.sbin/bluetooth/hccontrol/hccontrol.c
227
c = find_hci_command(cmd, node_commands);
usr.sbin/bluetooth/hccontrol/hccontrol.c
228
if (c == NULL) {
usr.sbin/bluetooth/hccontrol/hccontrol.c
235
e = (c->handler)(s, -- argc, ++ argv);
usr.sbin/bluetooth/hccontrol/hccontrol.c
251
fprintf(stdout, "Usage: %s\n%s\n", c->command, c->description);
usr.sbin/bluetooth/hccontrol/hccontrol.c
265
struct hci_command *c = NULL;
usr.sbin/bluetooth/hccontrol/hccontrol.c
267
for (c = category; c->command != NULL; c++) {
usr.sbin/bluetooth/hccontrol/hccontrol.c
268
char *c_end = strchr(c->command, ' ');
usr.sbin/bluetooth/hccontrol/hccontrol.c
271
int len = c_end - c->command;
usr.sbin/bluetooth/hccontrol/hccontrol.c
273
if (strncasecmp(command, c->command, len) == 0)
usr.sbin/bluetooth/hccontrol/hccontrol.c
274
return (c);
usr.sbin/bluetooth/hccontrol/hccontrol.c
275
} else if (strcasecmp(command, c->command) == 0)
usr.sbin/bluetooth/hccontrol/hccontrol.c
276
return (c);
usr.sbin/bluetooth/hccontrol/hccontrol.c
321
struct hci_command *c = NULL;
usr.sbin/bluetooth/hccontrol/hccontrol.c
323
for (c = category; c->command != NULL; c++)
usr.sbin/bluetooth/hccontrol/hccontrol.c
324
fprintf(stdout, "\t%s\n", c->command);
usr.sbin/bluetooth/hccontrol/send_recv.c
50
ng_hci_cmd_pkt_t *c = (ng_hci_cmd_pkt_t *) buffer;
usr.sbin/bluetooth/hccontrol/send_recv.c
57
c->type = NG_HCI_CMD_PKT;
usr.sbin/bluetooth/hccontrol/send_recv.c
58
c->opcode = (uint16_t) opcode;
usr.sbin/bluetooth/hccontrol/send_recv.c
59
c->opcode = htole16(c->opcode);
usr.sbin/bluetooth/hccontrol/send_recv.c
64
c->length = (uint8_t) cp_size;
usr.sbin/bluetooth/hccontrol/send_recv.c
65
memcpy(buffer + sizeof(*c), cp, cp_size);
usr.sbin/bluetooth/hccontrol/send_recv.c
67
c->length = 0;
usr.sbin/bluetooth/hccontrol/send_recv.c
69
if (hci_send(s, buffer, sizeof(*c) + cp_size) == ERROR)
usr.sbin/bluetooth/l2control/l2control.c
102
struct l2cap_command *c = NULL;
usr.sbin/bluetooth/l2control/l2control.c
124
c = find_l2cap_command(cmd, l2cap_commands);
usr.sbin/bluetooth/l2control/l2control.c
125
if (c == NULL) {
usr.sbin/bluetooth/l2control/l2control.c
151
e = (c->handler)(s, -- argc, ++ argv);
usr.sbin/bluetooth/l2control/l2control.c
168
fprintf(stdout, "Usage: %s\n%s\n", c->command, c->description);
usr.sbin/bluetooth/l2control/l2control.c
181
struct l2cap_command *c = NULL;
usr.sbin/bluetooth/l2control/l2control.c
183
for (c = category; c->command != NULL; c++) {
usr.sbin/bluetooth/l2control/l2control.c
184
char *c_end = strchr(c->command, ' ');
usr.sbin/bluetooth/l2control/l2control.c
187
int len = c_end - c->command;
usr.sbin/bluetooth/l2control/l2control.c
189
if (strncasecmp(command, c->command, len) == 0)
usr.sbin/bluetooth/l2control/l2control.c
190
return (c);
usr.sbin/bluetooth/l2control/l2control.c
191
} else if (strcasecmp(command, c->command) == 0)
usr.sbin/bluetooth/l2control/l2control.c
192
return (c);
usr.sbin/bluetooth/l2control/l2control.c
202
struct l2cap_command *c = NULL;
usr.sbin/bluetooth/l2control/l2control.c
204
for (c = category; c->command != NULL; c++)
usr.sbin/bluetooth/l2control/l2control.c
205
fprintf(stdout, "\t%s\n", c->command);
usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
108
struct sdp_command *c = NULL;
usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
130
c = find_sdp_command(cmd, sdp_commands);
usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
131
if (c == NULL) {
usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
148
e = (c->handler)(xs, -- argc, ++ argv);
usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
165
fprintf(stdout, "Usage: %s\n%s\n", c->command, c->description);
usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
180
struct sdp_command *c = NULL;
usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
182
for (c = category; c->command != NULL; c++) {
usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
183
char *c_end = strchr(c->command, ' ');
usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
186
int len = c_end - c->command;
usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
188
if (strncasecmp(command, c->command, len) == 0)
usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
189
return (c);
usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
190
} else if (strcasecmp(command, c->command) == 0)
usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
191
return (c);
usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
201
struct sdp_command *c = NULL;
usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
203
for (c = category; c->command != NULL; c++)
usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
204
fprintf(stdout, "\t%s\n", c->command);
usr.sbin/boot0cfg/boot0cfg.c
125
int up, c;
usr.sbin/boot0cfg/boot0cfg.c
133
while ((c = getopt(argc, argv, "Bvb:d:e:f:i:m:o:s:t:")) != -1)
usr.sbin/boot0cfg/boot0cfg.c
134
switch (c) {
usr.sbin/boot0cfg/boot0cfg.c
280
int ofs, i, c;
usr.sbin/boot0cfg/boot0cfg.c
286
c = mbr[ofs+1];
usr.sbin/boot0cfg/boot0cfg.c
288
mbr[ofs+1] = c = new_bell;
usr.sbin/boot0cfg/boot0cfg.c
291
(c >= ' ' && c < 0x7f) ? c : ' ', c);
usr.sbin/boot0cfg/boot0cfg.c
292
return c;
usr.sbin/bootparamd/bootparamd/main.c
48
int c;
usr.sbin/bootparamd/bootparamd/main.c
50
while ((c = getopt(argc, argv,"dsr:f:")) != -1)
usr.sbin/bootparamd/bootparamd/main.c
51
switch (c) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_addrs.c
398
op_dot1d_tp_fdb(struct snmp_context *c __unused, struct snmp_value *val,
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_addrs.c
546
op_begemot_tp_fdb(struct snmp_context *c __unused, struct snmp_value *val,
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_if.c
173
int c;
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_if.c
189
if ((c = strcmp(b1, b2)) < 0)
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_if.c
191
else if (c > 0)
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_port.c
1461
op_begemot_tp_port(struct snmp_context *c __unused, struct snmp_value *val,
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_port.c
344
op_dot1d_base_port(struct snmp_context *c __unused, struct snmp_value *val,
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_port.c
715
op_dot1d_tp_port(struct snmp_context *c __unused, struct snmp_value *val,
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
3420
wlan_get_channel_type(struct ieee80211_channel *c)
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
3422
if (IEEE80211_IS_CHAN_FHSS(c))
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
3424
if (IEEE80211_IS_CHAN_A(c))
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
3426
if (IEEE80211_IS_CHAN_B(c))
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
3428
if (IEEE80211_IS_CHAN_ANYG(c))
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
3430
if (IEEE80211_IS_CHAN_HALF(c))
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
3432
if (IEEE80211_IS_CHAN_QUARTER(c))
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
3434
if (IEEE80211_IS_CHAN_TURBO(c))
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
3436
if (IEEE80211_IS_CHAN_HT(c))
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
592
const struct ieee80211_channel *c;
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
610
c = &chaninfo->ic_chans[i];
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
611
if (!isset(active.ic_channels, c->ic_ieee))
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
616
nchans * sizeof(*c));
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
621
c = &chaninfo->ic_chans[i];
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
622
if (!isset(active.ic_channels, c->ic_ieee))
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
624
memcpy(wif->chanlist + nchans, c, sizeof (*c));
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
229
int c;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
232
c = pbchar;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
234
return (c);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
241
if ((c = getc(input->fp)) != EOF)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
242
return (c);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
249
tungetc(int c)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
255
pbchar = c;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
335
int c;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
339
c = saved_token;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
341
return (c);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
348
while ((c = tgetc()) != EOF) {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
349
if (c == '\n')
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
351
if (!isspace(c))
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
354
if (c == EOF)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
357
if (!isascii(c)) {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
358
warnx("unexpected character %#2x", (u_int) c);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
365
if (c == '#') {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
366
while ((c = tgetc()) != EOF) {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
367
if (c == '\n') {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
379
if (strchr("():|", c) != NULL)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
380
return (c);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
382
if (c == '"' || c == '<') {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
383
int32_t end = c;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
387
if (c == '<') {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
392
while ((c = tgetc()) != EOF) {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
393
if (c == end)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
400
nexttok[n++] = c;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
409
if (isdigit(c)) {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
411
nexttok[n++] = c;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
412
while ((c = tgetc()) != EOF) {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
413
if (!isdigit(c)) {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
414
if (tungetc(c) < 0)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
423
nexttok[n++] = c;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
433
if (isalpha(c) || c == '_' || c == '-') {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
435
nexttok[n++] = c;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
436
while ((c = tgetc()) != EOF) {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
437
if (!isalnum(c) && c != '_' && c != '-') {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
438
if (tungetc (c) < 0)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
447
nexttok[n++] = c;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
454
for (c = 0; keywords[c].str != NULL; c++)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
455
if (strcmp(keywords[c].str, nexttok) == 0) {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
456
val = keywords[c].val;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
457
return (keywords[c].tok);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
468
if (isprint(c))
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
469
warnx("%u: unexpected character '%c'", input->lno, c);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
471
warnx("%u: unexpected character 0x%02x", input->lno, (u_int) c);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
288
isvalid_fchar(char c, int pos)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
290
if (isalpha(c)|| c == '/'|| c == '_' || c == '.' || c == '~' ||
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
291
(pos != 0 && isdigit(c))){
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
292
return (c);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
295
if (c == '\0')
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
298
if (!isascii(c) || !isprint(c))
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
299
warnx("Unexpected character %#2x", (u_int) c);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
301
warnx("Illegal character '%c'", c);
usr.sbin/btxld/btxld.c
133
int c;
usr.sbin/btxld/btxld.c
135
while ((c = getopt(argc, argv, "qvb:E:e:f:l:o:P:W:")) != -1)
usr.sbin/btxld/btxld.c
136
switch (c) {
usr.sbin/camdd/camdd.c
3539
int c;
usr.sbin/camdd/camdd.c
3558
while ((c = getopt(argc, argv, "C:Ehi:m:o:t:v")) != -1){
usr.sbin/camdd/camdd.c
3559
switch (c) {
usr.sbin/camdd/camdd.c
3571
if (((c == 'i')
usr.sbin/camdd/camdd.c
3573
|| ((c == 'o')
usr.sbin/camdd/camdd.c
3578
error = camdd_parse_io_opts(optarg, (c == 'o') ? 1 : 0,
usr.sbin/camdd/camdd.c
3579
(c == 'o') ? &opt_list[1] : &opt_list[0]);
usr.sbin/cdcontrol/cdcontrol.c
1211
struct cmdtab *c;
usr.sbin/cdcontrol/cdcontrol.c
1246
for (c=cmdtab; c->name; ++c) {
usr.sbin/cdcontrol/cdcontrol.c
1248
if (! strcasecmp (buf, c->name)) {
usr.sbin/cdcontrol/cdcontrol.c
1249
*cmd = c->command;
usr.sbin/cdcontrol/cdcontrol.c
1254
if (len >= c->min && ! strncasecmp (buf, c->name, len)) {
usr.sbin/cdcontrol/cdcontrol.c
1255
if (*cmd != -1 && *cmd != c->command) {
usr.sbin/cdcontrol/cdcontrol.c
1259
*cmd = c->command;
usr.sbin/cdcontrol/cdcontrol.c
155
struct cmdtab *c;
usr.sbin/cdcontrol/cdcontrol.c
160
for (c=cmdtab; c->name; ++c) {
usr.sbin/cdcontrol/cdcontrol.c
161
if (! c->args)
usr.sbin/cdcontrol/cdcontrol.c
164
for (i = c->min, s = c->name; *s; s++, i--) {
usr.sbin/cdcontrol/cdcontrol.c
171
if (*c->args)
usr.sbin/cdcontrol/cdcontrol.c
172
printf (" %s", c->args);
usr.sbin/certctl/certctl.c
280
unsigned int c;
usr.sbin/certctl/certctl.c
290
return (a->c - b->c);
usr.sbin/certctl/certctl.c
437
for (file->c = 0; file->c < INT_MAX; file->c++)
usr.sbin/certctl/certctl.c
440
if (file->c == INT_MAX)
usr.sbin/certctl/certctl.c
443
cert->path = xasprintf("%08lx.%d", cert->hash, file->c);
usr.sbin/ckdist/ckdist.c
184
int rval, c;
usr.sbin/ckdist/ckdist.c
195
if ((c = fgetc(fp)) != EOF) {
usr.sbin/ckdist/ckdist.c
196
type = c == 'M' ? DISTMD5 : c == 'P' ? DISTINF : 0;
usr.sbin/ckdist/ckdist.c
197
(void)ungetc(c, fp);
usr.sbin/ckdist/ckdist.c
225
int rval, error, c, fd;
usr.sbin/ckdist/ckdist.c
232
if (((c = sscanf(buf, "MD5 (%256s = %32s%c", name, sum,
usr.sbin/ckdist/ckdist.c
233
&ch)) != 3 && (!feof(fp) || c != 2)) ||
usr.sbin/ckdist/ckdist.c
234
(c == 3 && ch != '\n') ||
usr.sbin/ckdist/ckdist.c
273
int rval, error, c, pieces, cnt, fd;
usr.sbin/ckdist/ckdist.c
282
if ((c = sscanf(buf, "Pieces = %d%c", &pieces, &ch)) != 2 ||
usr.sbin/ckdist/ckdist.c
285
} else if (((c = sscanf(buf, "cksum.%2s = %lu %jd%c", ext, &sum,
usr.sbin/ckdist/ckdist.c
287
(!feof(fp) || c != 3)) || (c == 4 && ch != '\n') ||
usr.sbin/ckdist/ckdist.c
93
int rval, c, type;
usr.sbin/ckdist/ckdist.c
95
while ((c = getopt(argc, argv, "ad:in:rst:x")) != -1)
usr.sbin/ckdist/ckdist.c
96
switch (c) {
usr.sbin/config/mkmakefile.cc
188
char c, *dst;
usr.sbin/config/mkmakefile.cc
201
c = *src++;
usr.sbin/config/mkmakefile.cc
202
if (leading && (isspace(c) || c == '"'))
usr.sbin/config/mkmakefile.cc
204
*dst++ = c;
usr.sbin/config/mkmakefile.cc
221
while ((c = *src++) != '\0') {
usr.sbin/config/mkmakefile.cc
222
if (leading && (isspace(c) || c == '"'))
usr.sbin/config/mkmakefile.cc
224
*dst++ = c;
usr.sbin/cpucontrol/cpucontrol.c
516
int c, flags;
usr.sbin/cpucontrol/cpucontrol.c
525
while ((c = getopt(argc, argv, "d:ehi:m:nuv")) != -1) {
usr.sbin/cpucontrol/cpucontrol.c
526
switch (c) {
usr.sbin/cpucontrol/cpucontrol.c
566
c = flags & (FLAG_E | FLAG_I | FLAG_M | FLAG_U);
usr.sbin/cpucontrol/cpucontrol.c
567
switch (c) {
usr.sbin/cron/cron/cron.c
40
parse_args(int c, char *v[]);
usr.sbin/cron/cron/macros.h
73
#define Skip_Blanks(c, f) \
usr.sbin/cron/cron/macros.h
74
while (c == '\t' || c == ' ') \
usr.sbin/cron/cron/macros.h
75
c = get_char(f);
usr.sbin/cron/cron/macros.h
77
#define Skip_Nonblanks(c, f) \
usr.sbin/cron/cron/macros.h
78
while (c!='\t' && c!=' ' && c!='\n' && c != EOF) \
usr.sbin/cron/cron/macros.h
79
c = get_char(f);
usr.sbin/cron/cron/macros.h
81
#define Skip_Line(c, f) \
usr.sbin/cron/cron/macros.h
82
do {c = get_char(f);} while (c != '\n' && c != EOF);
usr.sbin/cron/crontab/crontab.c
59
parse_args(int c, char *v[]);
usr.sbin/cron/lib/env.c
141
char quotechar, *c, *str;
usr.sbin/cron/lib/env.c
167
c = envstr;
usr.sbin/cron/lib/env.c
168
while (state != ERROR && *c) {
usr.sbin/cron/lib/env.c
172
if (*c == '\'' || *c == '"')
usr.sbin/cron/lib/env.c
173
quotechar = *c++;
usr.sbin/cron/lib/env.c
179
if (*c == quotechar) {
usr.sbin/cron/lib/env.c
181
c++;
usr.sbin/cron/lib/env.c
184
if (state == NAME && *c == '=') {
usr.sbin/cron/lib/env.c
190
if (isspace (*c)) {
usr.sbin/cron/lib/env.c
191
c++;
usr.sbin/cron/lib/env.c
195
if (*c == '=') {
usr.sbin/cron/lib/env.c
201
*str++ = *c++;
usr.sbin/cron/lib/env.c
205
if (*c == '=') {
usr.sbin/cron/lib/env.c
210
if (!isspace (*c))
usr.sbin/cron/lib/env.c
213
c++;
usr.sbin/cron/lib/env.c
217
if (isspace (*c))
usr.sbin/cron/lib/env.c
218
c++;
usr.sbin/cron/lib/env.c
232
c = val + strlen (val);
usr.sbin/cron/lib/env.c
233
while (c > val && isspace (*(c - 1)))
usr.sbin/cron/lib/env.c
234
*(--c) = '\0';
usr.sbin/crunch/crunchgen/crunchgen.c
285
void (*f)(int c, char **v);
usr.sbin/ctladm/ctladm.c
1156
int c;
usr.sbin/ctladm/ctladm.c
1166
while ((c = getopt(argc, argv, combinedopt)) != -1) {
usr.sbin/ctladm/ctladm.c
1167
switch (c) {
usr.sbin/ctladm/ctladm.c
1237
int retval, c;
usr.sbin/ctladm/ctladm.c
1247
while ((c = getopt(argc, argv, combinedopt)) != -1) {
usr.sbin/ctladm/ctladm.c
1248
switch (c) {
usr.sbin/ctladm/ctladm.c
1303
int c;
usr.sbin/ctladm/ctladm.c
1315
while ((c = getopt(argc, argv, combinedopt)) != -1) {
usr.sbin/ctladm/ctladm.c
1316
switch (c) {
usr.sbin/ctladm/ctladm.c
1517
int c;
usr.sbin/ctladm/ctladm.c
1529
while ((c = getopt(argc, argv, combinedopt)) != -1) {
usr.sbin/ctladm/ctladm.c
1530
switch (c) {
usr.sbin/ctladm/ctladm.c
1645
int c;
usr.sbin/ctladm/ctladm.c
1658
while ((c = getopt(argc, argv, combinedopt)) != -1) {
usr.sbin/ctladm/ctladm.c
1659
switch (c) {
usr.sbin/ctladm/ctladm.c
2225
int c;
usr.sbin/ctladm/ctladm.c
2236
while ((c = getopt(argc, argv, combinedopt)) != -1) {
usr.sbin/ctladm/ctladm.c
2237
switch (c) {
usr.sbin/ctladm/ctladm.c
2327
int c;
usr.sbin/ctladm/ctladm.c
2338
while ((c = getopt(argc, argv, combinedopt)) != -1) {
usr.sbin/ctladm/ctladm.c
2339
switch (c) {
usr.sbin/ctladm/ctladm.c
2426
int retval = 0, c;
usr.sbin/ctladm/ctladm.c
2432
while ((c = getopt(argc, argv, combinedopt)) != -1) {
usr.sbin/ctladm/ctladm.c
2433
switch (c) {
usr.sbin/ctladm/ctladm.c
2590
int retval = 0, c;
usr.sbin/ctladm/ctladm.c
2596
while ((c = getopt(argc, argv, combinedopt)) != -1) {
usr.sbin/ctladm/ctladm.c
2597
switch (c) {
usr.sbin/ctladm/ctladm.c
2693
int retval = 0, c;
usr.sbin/ctladm/ctladm.c
2699
while ((c = getopt(argc, argv, combinedopt)) != -1) {
usr.sbin/ctladm/ctladm.c
2700
switch (c) {
usr.sbin/ctladm/ctladm.c
2979
int c, retval, verbose = 0;
usr.sbin/ctladm/ctladm.c
2987
while ((c = getopt(argc, argv, combinedopt)) != -1) {
usr.sbin/ctladm/ctladm.c
2988
switch (c) {
usr.sbin/ctladm/ctladm.c
3088
int retval = 0, c;
usr.sbin/ctladm/ctladm.c
3092
while ((c = getopt(argc, argv, combinedopt)) != -1) {
usr.sbin/ctladm/ctladm.c
3093
switch (c) {
usr.sbin/ctladm/ctladm.c
3161
int retval = 0, c;
usr.sbin/ctladm/ctladm.c
3165
while ((c = getopt(argc, argv, combinedopt)) != -1) {
usr.sbin/ctladm/ctladm.c
3166
switch (c) {
usr.sbin/ctladm/ctladm.c
3392
int retval, c;
usr.sbin/ctladm/ctladm.c
3402
while ((c = getopt(argc, argv, combinedopt)) != -1) {
usr.sbin/ctladm/ctladm.c
3403
switch (c) {
usr.sbin/ctladm/ctladm.c
3683
int retval, c;
usr.sbin/ctladm/ctladm.c
3694
while ((c = getopt(argc, argv, combinedopt)) != -1) {
usr.sbin/ctladm/ctladm.c
3695
switch (c) {
usr.sbin/ctladm/ctladm.c
3820
int retval = 0, c;
usr.sbin/ctladm/ctladm.c
3827
while ((c = getopt(argc, argv, combinedopt)) != -1) {
usr.sbin/ctladm/ctladm.c
3828
switch (c) {
usr.sbin/ctladm/ctladm.c
3999
int c, retval, verbose = 0;
usr.sbin/ctladm/ctladm.c
4007
while ((c = getopt(argc, argv, combinedopt)) != -1) {
usr.sbin/ctladm/ctladm.c
4008
switch (c) {
usr.sbin/ctladm/ctladm.c
405
int c;
usr.sbin/ctladm/ctladm.c
4099
int retval = 0, c;
usr.sbin/ctladm/ctladm.c
4103
while ((c = getopt(argc, argv, combinedopt)) != -1) {
usr.sbin/ctladm/ctladm.c
4104
switch (c) {
usr.sbin/ctladm/ctladm.c
425
while ((c = getopt(argc, argv, combinedopt)) != -1) {
usr.sbin/ctladm/ctladm.c
426
switch (c) {
usr.sbin/ctladm/ctladm.c
4308
int c;
usr.sbin/ctladm/ctladm.c
4430
while ((c = getopt(argc, argv, combinedopt))!= -1){
usr.sbin/ctladm/ctladm.c
4431
switch (c) {
usr.sbin/ctladm/ctladm.c
735
int c;
usr.sbin/ctladm/ctladm.c
741
while ((c = getopt(argc, argv, combinedopt)) != -1) {
usr.sbin/ctladm/ctladm.c
742
switch (c) {
usr.sbin/ctladm/ctladm.c
865
int c;
usr.sbin/ctladm/ctladm.c
870
while ((c = getopt(argc, argv, combinedopt)) != -1) {
usr.sbin/ctladm/ctladm.c
871
switch (c) {
usr.sbin/ctladm/ctladm.c
885
if (c == 'i') {
usr.sbin/ctld/ctld.cc
1223
for (char &c : t_name)
usr.sbin/ctld/ctld.cc
1224
c = tolower(c);
usr.sbin/ctld/ctld.cc
1261
for (char &c : t_name)
usr.sbin/ctld/ctld.cc
1262
c = tolower(c);
usr.sbin/daemon/daemon.c
651
get_log_mapping(const char *str, const CODE *c)
usr.sbin/daemon/daemon.c
654
for (cp = c; cp->c_name; cp++)
usr.sbin/devinfo/devinfo.c
376
int c, rv;
usr.sbin/devinfo/devinfo.c
381
while ((c = getopt(argc, argv, "p:ruv")) != -1) {
usr.sbin/devinfo/devinfo.c
382
switch(c) {
usr.sbin/dumpcis/printcis.c
322
u_char c;
usr.sbin/dumpcis/printcis.c
350
c = *p++;
usr.sbin/dumpcis/printcis.c
352
j = CIS_IO_ADSZ(c) + CIS_IO_BLKSZ(c);
usr.sbin/dumpcis/printcis.c
353
if (CIS_IO_ADSZ(c) == 3)
usr.sbin/dumpcis/printcis.c
355
if (CIS_IO_BLKSZ(c) == 3)
usr.sbin/dumpcis/printcis.c
358
for (i = 0; i <= CIS_IO_BLKS(c); i++) {
usr.sbin/dumpcis/printcis.c
363
p += print_num(CIS_IO_ADSZ(c),
usr.sbin/dumpcis/printcis.c
366
p += print_num(CIS_IO_BLKSZ(c),
usr.sbin/dumpcis/printcis.c
386
u_char c;
usr.sbin/dumpcis/printcis.c
391
c = ' ';
usr.sbin/dumpcis/printcis.c
394
c = ',';
usr.sbin/dumpcis/printcis.c
397
printf("%c Pulse", c);
usr.sbin/dumpcis/printcis.c
398
c = ',';
usr.sbin/dumpcis/printcis.c
401
printf("%c Shared", c);
usr.sbin/dumpcis/printcis.c
442
u_char c;
usr.sbin/dumpcis/printcis.c
464
c = *p++;
usr.sbin/dumpcis/printcis.c
466
j = CIS_MEM_LENSZ(c) + CIS_MEM_ADDRSZ(c);
usr.sbin/dumpcis/printcis.c
467
if (c & CIS_MEM_HOST)
usr.sbin/dumpcis/printcis.c
468
j += CIS_MEM_ADDRSZ(c);
usr.sbin/dumpcis/printcis.c
470
for (i = 0; i < CIS_MEM_WINS(c); i++) {
usr.sbin/dumpcis/printcis.c
475
p += print_num(CIS_MEM_LENSZ(c) | 0x10,
usr.sbin/dumpcis/printcis.c
478
p += print_num(CIS_MEM_ADDRSZ(c) | 0x10,
usr.sbin/dumpcis/printcis.c
480
if (c & CIS_MEM_HOST) /* Host address value exist */
usr.sbin/dumpcis/printcis.c
481
p += print_num(CIS_MEM_ADDRSZ(c) | 0x10,
usr.sbin/dumpcis/printcis.c
503
char c;
usr.sbin/dumpcis/printcis.c
532
c = ' ';
usr.sbin/dumpcis/printcis.c
535
c = ',';
usr.sbin/dumpcis/printcis.c
538
printf("%c card WP active", c); /* Write protect */
usr.sbin/dumpcis/printcis.c
539
c = ',';
usr.sbin/dumpcis/printcis.c
542
printf("%c +RDY/-BSY active", c);
usr.sbin/dumpcis/printcis.c
543
c = ',';
usr.sbin/dumpcis/printcis.c
546
printf("%c wait signal supported", c);
usr.sbin/edquota/edquota.c
938
int c;
usr.sbin/edquota/edquota.c
940
c = *s++;
usr.sbin/edquota/edquota.c
942
if (!isdigit(c))
usr.sbin/edquota/edquota.c
944
} while ((c = *s++));
usr.sbin/efibootmgr/efibootmgr.c
157
char *c;
usr.sbin/efibootmgr/efibootmgr.c
159
for (c = loader; *c; c++)
usr.sbin/efibootmgr/efibootmgr.c
160
if (*c == '/')
usr.sbin/efibootmgr/efibootmgr.c
161
*c = '\\';
usr.sbin/efibootmgr/efibootmgr.c
547
uint16_t c;
usr.sbin/efibootmgr/efibootmgr.c
550
memcpy(&c, a, sizeof(uint16_t));
usr.sbin/efibootmgr/efibootmgr.c
553
if (c < d)
usr.sbin/efibootmgr/efibootmgr.c
555
if (c == d)
usr.sbin/fdformat/fdformat.c
147
int fd, c, i, track, error, tracks_per_dot, bytes_per_track, errs;
usr.sbin/fdformat/fdformat.c
157
while((c = getopt(argc, argv, "F:f:nqs:vy")) != -1)
usr.sbin/fdformat/fdformat.c
158
switch(c) {
usr.sbin/fdread/fdread.c
67
int c, errs = 0;
usr.sbin/fdread/fdread.c
75
while ((c = getopt(argc, argv, "d:f:I:o:qrt:")) != -1)
usr.sbin/fdread/fdread.c
76
switch (c) {
usr.sbin/fdwrite/fdwrite.c
66
int inputfd = -1, c, fdn = 0, i,j,fd;
usr.sbin/fdwrite/fdwrite.c
75
while((c = getopt(argc, argv, "d:f:vy")) != -1)
usr.sbin/fdwrite/fdwrite.c
76
switch(c) {
usr.sbin/fifolog/fifolog_writer/fifolog_writer.c
58
int i, c;
usr.sbin/fifolog/fifolog_writer/fifolog_writer.c
63
while ((c = getopt(argc, argv, "w:s:z:")) != -1) {
usr.sbin/fifolog/fifolog_writer/fifolog_writer.c
64
switch(c) {
usr.sbin/fifolog/lib/getdate.y
766
char c;
usr.sbin/fifolog/lib/getdate.y
776
if (isdigit(c = *yyInput) || c == '-' || c == '+') {
usr.sbin/fifolog/lib/getdate.y
777
if (c == '-' || c == '+') {
usr.sbin/fifolog/lib/getdate.y
778
sign = c == '-' ? -1 : 1;
usr.sbin/fifolog/lib/getdate.y
785
for (yylval.Number = 0; isdigit(c = *yyInput++); )
usr.sbin/fifolog/lib/getdate.y
786
yylval.Number = 10 * yylval.Number + c - '0';
usr.sbin/fifolog/lib/getdate.y
792
if (isalpha(c)) {
usr.sbin/fifolog/lib/getdate.y
793
for (p = buff; isalpha(c = *yyInput++) || c == '.'; )
usr.sbin/fifolog/lib/getdate.y
795
*p++ = c;
usr.sbin/fifolog/lib/getdate.y
800
if (c != '(')
usr.sbin/fifolog/lib/getdate.y
804
c = *yyInput++;
usr.sbin/fifolog/lib/getdate.y
805
if (c == '\0')
usr.sbin/fifolog/lib/getdate.y
806
return c;
usr.sbin/fifolog/lib/getdate.y
807
if (c == '(')
usr.sbin/fifolog/lib/getdate.y
809
else if (c == ')')
usr.sbin/flowctl/flowctl.c
114
int c;
usr.sbin/flowctl/flowctl.c
119
while ((c = getopt(argc, argv, "d:")) != -1) {
usr.sbin/flowctl/flowctl.c
120
switch (c) {
usr.sbin/fstyp/fstyp.c
146
char *c;
usr.sbin/fstyp/fstyp.c
148
c = strdup(s);
usr.sbin/fstyp/fstyp.c
149
if (c == NULL)
usr.sbin/fstyp/fstyp.c
151
return (c);
usr.sbin/fwcontrol/fwcontrol.c
610
b.lctrl, b.c, b.jitter, b.pwr_class,
usr.sbin/ifmcstat/ifmcstat.c
135
int c, error;
usr.sbin/ifmcstat/ifmcstat.c
137
while ((c = getopt(argc, argv, options)) != -1) {
usr.sbin/ifmcstat/ifmcstat.c
138
switch (c) {
usr.sbin/ifmcstat/printb.c
43
char c;
usr.sbin/ifmcstat/printb.c
58
for (; (c = *bits) > 32; bits++)
usr.sbin/ifmcstat/printb.c
59
putchar(c);
usr.sbin/inetd/builtins.c
362
int c, fflag = 0, nflag = 0, rflag = 0, argc = 0;
usr.sbin/inetd/builtins.c
385
while ((c = getopt(argc, sep->se_argv, "d:fFgino:rt:")) != -1)
usr.sbin/inetd/builtins.c
386
switch (c) {
usr.sbin/inetd/inetd.c
1022
#define SWAP(t,a, b) { t c = a; a = b; b = c; }
usr.sbin/inetd/inetd.c
1701
char *c = arg + MUX_LEN;
usr.sbin/inetd/inetd.c
1702
if (*c == '+') {
usr.sbin/inetd/inetd.c
1704
c++;
usr.sbin/inetd/inetd.c
1707
sep->se_service = newstr(c);
usr.sbin/inetd/inetd.c
2033
int c;
usr.sbin/inetd/inetd.c
2035
c = getc(fconfig);
usr.sbin/inetd/inetd.c
2036
(void) ungetc(c, fconfig);
usr.sbin/inetd/inetd.c
2037
if (c == ' ' || c == '\t')
usr.sbin/iostat/iostat.c
180
int c, i;
usr.sbin/iostat/iostat.c
201
while ((c = getopt(argc, argv, "Cc:dhIKM:N:n:oTt:w:xz")) != -1) {
usr.sbin/iostat/iostat.c
202
switch (c) {
usr.sbin/jail/jail.c
1038
int c, qc;
usr.sbin/jail/jail.c
1048
while ((c = *p++)) {
usr.sbin/jail/jail.c
1049
if (c == '\\' || c == qc)
usr.sbin/jail/jail.c
1051
putc(c, fp);
usr.sbin/jls/jls.c
107
while ((c = getopt(argc, argv, "acdj:hNnqsv")) >= 0)
usr.sbin/jls/jls.c
108
switch (c) {
usr.sbin/jls/jls.c
98
int c, i, jflags, jid, lastjid, pflags, spc;
usr.sbin/kbdcontrol/kbdcontrol.c
287
int c;
usr.sbin/kbdcontrol/kbdcontrol.c
295
c = get_key_definition_line(keymap);
usr.sbin/kbdcontrol/kbdcontrol.c
296
if (c < 0)
usr.sbin/kbdcontrol/kbdcontrol.c
298
if (c > keymap->n_keys)
usr.sbin/kbdcontrol/kbdcontrol.c
299
keymap->n_keys = c;
usr.sbin/kbdcontrol/kbdcontrol.c
302
c = get_accent_definition_line(accentmap);
usr.sbin/kbdcontrol/kbdcontrol.c
303
if (c < 0)
usr.sbin/kbdcontrol/kbdcontrol.c
305
if (c > accentmap->n_accs)
usr.sbin/kbdcontrol/kbdcontrol.c
306
accentmap->n_accs = c;
usr.sbin/kbdcontrol/kbdcontrol.c
314
return c;
usr.sbin/kbdcontrol/kbdcontrol.c
569
int c;
usr.sbin/kbdcontrol/kbdcontrol.c
585
c = key->map[i][0];
usr.sbin/kbdcontrol/kbdcontrol.c
586
if (c == 0)
usr.sbin/kbdcontrol/kbdcontrol.c
590
if (isascii(c) && isprint(c))
usr.sbin/kbdcontrol/kbdcontrol.c
591
fprintf(fp, "( '%c' ", c);
usr.sbin/kbdcontrol/kbdcontrol.c
593
fprintf(fp, "(0x%02x ", c);
usr.sbin/kbdcontrol/kbdcontrol.c
595
fprintf(fp, "( %03d ", c);
usr.sbin/kbdcontrol/kbdcontrol.c
596
c = key->map[i][1];
usr.sbin/kbdcontrol/kbdcontrol.c
597
if (isascii(c) && isprint(c))
usr.sbin/kbdcontrol/kbdcontrol.c
598
fprintf(fp, "'%c' ) ", c);
usr.sbin/kbdcontrol/kbdcontrol.c
600
fprintf(fp, "0x%02x) ", c);
usr.sbin/kbdcontrol/kbdcontrol.c
602
fprintf(fp, "%03d ) ", c);
usr.sbin/kbdcontrol/kbdcontrol.c
758
int c;
usr.sbin/kbdcontrol/kbdcontrol.c
769
c = accentmap->acc[i].accchar;
usr.sbin/kbdcontrol/kbdcontrol.c
770
if (c == '\'')
usr.sbin/kbdcontrol/kbdcontrol.c
772
else if (c == '\\')
usr.sbin/kbdcontrol/kbdcontrol.c
774
else if (isascii(c) && isprint(c))
usr.sbin/kbdcontrol/kbdcontrol.c
775
printf(" '%c', {", c);
usr.sbin/kbdcontrol/kbdcontrol.c
776
else if (c == 0) {
usr.sbin/kbdcontrol/kbdcontrol.c
780
printf(" 0x%02x, {", c);
usr.sbin/kbdcontrol/kbdcontrol.c
782
c = accentmap->acc[i].map[j][0];
usr.sbin/kbdcontrol/kbdcontrol.c
783
if (c == 0)
usr.sbin/kbdcontrol/kbdcontrol.c
787
if (isascii(c) && isprint(c))
usr.sbin/kbdcontrol/kbdcontrol.c
788
printf(" { '%c',", c);
usr.sbin/kbdcontrol/kbdcontrol.c
790
printf(" { 0x%02x,", c);
usr.sbin/lpr/chkprintcap/chkprintcap.c
70
int c, error, makedirs, more, queuecnt, verbosity;
usr.sbin/lpr/chkprintcap/chkprintcap.c
79
while ((c = getopt(argc, argv, "df:v")) != -1) {
usr.sbin/lpr/chkprintcap/chkprintcap.c
80
switch (c) {
usr.sbin/lpr/common_source/common.c
86
register int c;
usr.sbin/lpr/common_source/common.c
88
while ((c = getc(cfp)) != '\n' && (size_t)(linel+1) < sizeof(line)) {
usr.sbin/lpr/common_source/common.c
89
if (c == EOF)
usr.sbin/lpr/common_source/common.c
91
if (c == '\t') {
usr.sbin/lpr/common_source/common.c
99
*lp++ = c;
usr.sbin/lpr/common_source/startdaemon.c
56
char c;
usr.sbin/lpr/common_source/startdaemon.c
88
if (read(s, &c, 1) == 1) {
usr.sbin/lpr/common_source/startdaemon.c
89
if (c == '\0') { /* everything is OK */
usr.sbin/lpr/common_source/startdaemon.c
93
putchar(c);
usr.sbin/lpr/common_source/startdaemon.c
95
while ((n = read(s, &c, 1)) > 0)
usr.sbin/lpr/common_source/startdaemon.c
96
putchar(c);
usr.sbin/lpr/filters.ru/koi2855/koi2855.c
65
int c, i;
usr.sbin/lpr/filters.ru/koi2855/koi2855.c
79
while ((c = getchar()) != EOF) {
usr.sbin/lpr/filters.ru/koi2855/koi2855.c
80
if (c == '\031') {
usr.sbin/lpr/filters.ru/koi2855/koi2855.c
81
if ((c = getchar()) == '\1') {
usr.sbin/lpr/filters.ru/koi2855/koi2855.c
87
ungetc(c, stdin);
usr.sbin/lpr/filters.ru/koi2855/koi2855.c
88
c = '\031';
usr.sbin/lpr/filters.ru/koi2855/koi2855.c
90
} else if (c & 0x80) {
usr.sbin/lpr/filters.ru/koi2855/koi2855.c
91
putchar(koi2855[c & 0x7F]);
usr.sbin/lpr/filters.ru/koi2855/koi2855.c
93
} else if (c == '\n')
usr.sbin/lpr/filters.ru/koi2855/koi2855.c
95
else if (c == '\f')
usr.sbin/lpr/filters.ru/koi2855/koi2855.c
97
putchar(c);
usr.sbin/lpr/filters.ru/koi2alt/koi2alt.c
66
int c, i;
usr.sbin/lpr/filters.ru/koi2alt/koi2alt.c
80
while ((c = getchar()) != EOF) {
usr.sbin/lpr/filters.ru/koi2alt/koi2alt.c
81
if (c == '\031') {
usr.sbin/lpr/filters.ru/koi2alt/koi2alt.c
82
if ((c = getchar()) == '\1') {
usr.sbin/lpr/filters.ru/koi2alt/koi2alt.c
88
ungetc(c, stdin);
usr.sbin/lpr/filters.ru/koi2alt/koi2alt.c
89
c = '\031';
usr.sbin/lpr/filters.ru/koi2alt/koi2alt.c
91
} else if (c & 0x80) {
usr.sbin/lpr/filters.ru/koi2alt/koi2alt.c
92
fputs(koi2alt[c & 0x7F], stdout);
usr.sbin/lpr/filters.ru/koi2alt/koi2alt.c
94
} else if (c == '\n')
usr.sbin/lpr/filters.ru/koi2alt/koi2alt.c
96
else if (c == '\f')
usr.sbin/lpr/filters.ru/koi2alt/koi2alt.c
98
putchar(c);
usr.sbin/lpr/lpc/cmds.c
453
int c = d->d_name[0];
usr.sbin/lpr/lpc/cmds.c
455
if ((c == 'c' || c == 'd' || c == 'r' || c == 't') &&
usr.sbin/lpr/lpc/cmds.c
458
if (c == 'c') {
usr.sbin/lpr/lpc/cmds.c
462
if (c == 'e') {
usr.sbin/lpr/lpc/lpc.c
103
if (c->c_generic != NULL)
usr.sbin/lpr/lpc/lpc.c
104
generic(c->c_generic, c->c_opts, c->c_handler,
usr.sbin/lpr/lpc/lpc.c
107
(*c->c_handler)(argc, argv);
usr.sbin/lpr/lpc/lpc.c
137
register struct cmd *c;
usr.sbin/lpr/lpc/lpc.c
191
c = getcmd(margv[0]);
usr.sbin/lpr/lpc/lpc.c
192
if (c == (struct cmd *)-1) {
usr.sbin/lpr/lpc/lpc.c
196
if (c == NULL) {
usr.sbin/lpr/lpc/lpc.c
200
if ((c->c_opts & LPC_PRIVCMD) && getuid() &&
usr.sbin/lpr/lpc/lpc.c
213
if (c->c_generic != NULL)
usr.sbin/lpr/lpc/lpc.c
214
generic(c->c_generic, c->c_opts, c->c_handler,
usr.sbin/lpr/lpc/lpc.c
217
(*c->c_handler)(margc, margv);
usr.sbin/lpr/lpc/lpc.c
225
register struct cmd *c, *found;
usr.sbin/lpr/lpc/lpc.c
231
for (c = cmdtab; (p = c->c_name); c++) {
usr.sbin/lpr/lpc/lpc.c
234
return(c);
usr.sbin/lpr/lpc/lpc.c
239
found = c;
usr.sbin/lpr/lpc/lpc.c
285
register struct cmd *c;
usr.sbin/lpr/lpc/lpc.c
292
for (c = cmdtab; c->c_name; c++) {
usr.sbin/lpr/lpc/lpc.c
293
int len = strlen(c->c_name);
usr.sbin/lpr/lpc/lpc.c
305
c = cmdtab + j * lines + i;
usr.sbin/lpr/lpc/lpc.c
306
if (c->c_name)
usr.sbin/lpr/lpc/lpc.c
307
printf("%s", c->c_name);
usr.sbin/lpr/lpc/lpc.c
308
if (c + lines >= &cmdtab[NCMDS]) {
usr.sbin/lpr/lpc/lpc.c
312
w = strlen(c->c_name);
usr.sbin/lpr/lpc/lpc.c
324
c = getcmd(arg);
usr.sbin/lpr/lpc/lpc.c
325
if (c == (struct cmd *)-1)
usr.sbin/lpr/lpc/lpc.c
327
else if (c == (struct cmd *)0)
usr.sbin/lpr/lpc/lpc.c
331
c->c_name, c->c_help);
usr.sbin/lpr/lpc/lpc.c
80
register struct cmd *c;
usr.sbin/lpr/lpc/lpc.c
89
c = getcmd(*++argv);
usr.sbin/lpr/lpc/lpc.c
90
if (c == (struct cmd *)-1) {
usr.sbin/lpr/lpc/lpc.c
94
if (c == NULL) {
usr.sbin/lpr/lpc/lpc.c
98
if ((c->c_opts & LPC_PRIVCMD) && getuid() &&
usr.sbin/lpr/lpd/printjob.c
1477
scnline(int key, char *p, int c)
usr.sbin/lpr/lpd/printjob.c
1483
*p++ = key & 0200 ? c : BACKGND;
usr.sbin/lpr/lpd/printjob.c
1495
char outbuf[LINELEN+1], *sp, c, cc;
usr.sbin/lpr/lpd/printjob.c
1502
d = dropit(c = TRC(cc = *sp++));
usr.sbin/lpr/lpd/printjob.c
1507
strp = scnline(scnkey[(int)c][scnhgt-1-d], strp, cc);
usr.sbin/lpr/lpd/printjob.c
1523
dropit(int c)
usr.sbin/lpr/lpd/printjob.c
1525
switch(c) {
usr.sbin/lpr/lpr/lpr.c
126
int c, i, f, errs;
usr.sbin/lpr/lpr/lpr.c
150
while ((c = getopt(argc, argv,
usr.sbin/lpr/lpr/lpr.c
153
switch (c) {
usr.sbin/lpr/lpr/lpr.c
604
card(int c, const char *p2)
usr.sbin/lpr/lpr/lpr.c
610
*p1++ = c;
usr.sbin/lpr/lpr/lpr.c
611
while ((c = *p2++) != '\0' && len < sizeof(buf)) {
usr.sbin/lpr/lpr/lpr.c
612
*p1++ = (c == '\n') ? ' ' : c;
usr.sbin/lpr/pac/pac.c
246
size_t c;
usr.sbin/lpr/pac/pac.c
252
for (ap = base, c = hcount; c--; ap++) {
usr.sbin/lpr/pac/pac.c
262
for (ap = base, c = hcount; c--; ap++) {
usr.sbin/lpr/pac/pac.c
377
register int c = ch;
usr.sbin/lpr/pac/pac.c
381
if (*cp++ == c)
usr.sbin/makefs/cd9660/cd9660_strings.c
107
const char *c=str;
usr.sbin/makefs/cd9660/cd9660_strings.c
110
while ((*c) != '\0') {
usr.sbin/makefs/cd9660/cd9660_strings.c
111
if (!(cd9660_is_d_char(*c))) {
usr.sbin/makefs/cd9660/cd9660_strings.c
112
if (islower((unsigned char)*c) )
usr.sbin/makefs/cd9660/cd9660_strings.c
117
c++;
usr.sbin/makefs/cd9660/cd9660_strings.c
58
cd9660_is_d_char(char c)
usr.sbin/makefs/cd9660/cd9660_strings.c
60
return (isupper((unsigned char)c)
usr.sbin/makefs/cd9660/cd9660_strings.c
61
|| c == '_'
usr.sbin/makefs/cd9660/cd9660_strings.c
62
|| (c >= '0' && c <= '9'));
usr.sbin/makefs/cd9660/cd9660_strings.c
66
cd9660_is_a_char(char c)
usr.sbin/makefs/cd9660/cd9660_strings.c
68
return (isupper((unsigned char)c)
usr.sbin/makefs/cd9660/cd9660_strings.c
69
|| c == '_'
usr.sbin/makefs/cd9660/cd9660_strings.c
70
|| (c >= '%' && c <= '?')
usr.sbin/makefs/cd9660/cd9660_strings.c
71
|| (c >= ' ' && c <= '\"'));
usr.sbin/makefs/cd9660/cd9660_strings.c
83
const char *c = str;
usr.sbin/makefs/cd9660/cd9660_strings.c
86
while ((*c) != '\0') {
usr.sbin/makefs/cd9660/cd9660_strings.c
87
if (!(cd9660_is_a_char(*c))) {
usr.sbin/makefs/cd9660/cd9660_strings.c
88
if (islower((unsigned char)*c) )
usr.sbin/makefs/cd9660/cd9660_strings.c
93
c++;
usr.sbin/makefs/mtree.c
1037
int c, error;
usr.sbin/makefs/mtree.c
1085
c = getc(fp);
usr.sbin/makefs/mtree.c
1086
if (c == EOF) {
usr.sbin/makefs/mtree.c
1091
switch (c) {
usr.sbin/makefs/mtree.c
1104
ungetc(c, fp);
usr.sbin/makefs/mtree.c
194
int c, error, quoted, subst;
usr.sbin/makefs/mtree.c
202
c = (len > 1) ? (spec[0] == spec[len - 1]) ? spec[0] : 0 : 0;
usr.sbin/makefs/mtree.c
203
*istemp = (c == '`') ? 1 : 0;
usr.sbin/makefs/mtree.c
204
subst = (c == '`' || c == '"') ? 1 : 0;
usr.sbin/makefs/mtree.c
205
quoted = (subst || c == '\'') ? 1 : 0;
usr.sbin/makefs/mtree.c
302
int c;
usr.sbin/makefs/mtree.c
304
c = getc(fp);
usr.sbin/makefs/mtree.c
305
while (c != EOF && strchr(cs, c) != NULL)
usr.sbin/makefs/mtree.c
306
c = getc(fp);
usr.sbin/makefs/mtree.c
307
if (c != EOF) {
usr.sbin/makefs/mtree.c
308
ungetc(c, fp);
usr.sbin/makefs/mtree.c
317
int c;
usr.sbin/makefs/mtree.c
319
c = getc(fp);
usr.sbin/makefs/mtree.c
320
while (c != EOF && strchr(cs, c) == NULL)
usr.sbin/makefs/mtree.c
321
c = getc(fp);
usr.sbin/makefs/mtree.c
322
if (c != EOF) {
usr.sbin/makefs/mtree.c
323
ungetc(c, fp);
usr.sbin/makefs/mtree.c
334
int c, done, error, esc, qlvl;
usr.sbin/makefs/mtree.c
345
c = getc(fp);
usr.sbin/makefs/mtree.c
346
switch (c) {
usr.sbin/makefs/mtree.c
371
} else if (c == buf[qidx]) {
usr.sbin/makefs/mtree.c
390
ungetc(c, fp);
usr.sbin/makefs/mtree.c
391
c = '\0';
usr.sbin/makefs/mtree.c
395
if (c == '\n') {
usr.sbin/makefs/mtree.c
411
buf[idx++] = c;
usr.sbin/makefs/zfs.c
649
struct dnode_cursor *c;
usr.sbin/makefs/zfs.c
680
c = ecalloc(1, sizeof(*c));
usr.sbin/makefs/zfs.c
682
c->indspace = nindblks * MAXBLOCKSIZE;
usr.sbin/makefs/zfs.c
683
c->indloc = objset_space_alloc(zfs, os, &c->indspace);
usr.sbin/makefs/zfs.c
685
c->dnode = dnode;
usr.sbin/makefs/zfs.c
686
c->dataoff = 0;
usr.sbin/makefs/zfs.c
687
c->datablksz = blksz;
usr.sbin/makefs/zfs.c
689
return (c);
usr.sbin/makefs/zfs.c
693
_dnode_cursor_flush(zfs_opt_t *zfs, struct dnode_cursor *c, unsigned int levels)
usr.sbin/makefs/zfs.c
701
assert(levels <= c->dnode->dn_nlevels - 1U);
usr.sbin/makefs/zfs.c
704
blkid = (c->dataoff / c->datablksz) / BLKPTR_PER_INDIR;
usr.sbin/makefs/zfs.c
706
buf = c->inddir[level - 1];
usr.sbin/makefs/zfs.c
708
if (level == c->dnode->dn_nlevels - 1U) {
usr.sbin/makefs/zfs.c
709
pbp = &c->dnode->dn_blkptr[0];
usr.sbin/makefs/zfs.c
715
&c->inddir[level][iblkid * sizeof(blkptr_t)];
usr.sbin/makefs/zfs.c
722
loc = c->indloc;
usr.sbin/makefs/zfs.c
723
c->indloc += blksz;
usr.sbin/makefs/zfs.c
724
assert(c->indspace >= blksz);
usr.sbin/makefs/zfs.c
725
c->indspace -= blksz;
usr.sbin/makefs/zfs.c
732
vdev_pwrite_dnode_indir(zfs, c->dnode, level, fill, buf, blksz,
usr.sbin/makefs/zfs.c
741
dnode_cursor_next(zfs_opt_t *zfs, struct dnode_cursor *c, off_t off)
usr.sbin/makefs/zfs.c
746
if (c->dnode->dn_nlevels == 1) {
usr.sbin/makefs/zfs.c
748
return (&c->dnode->dn_blkptr[0]);
usr.sbin/makefs/zfs.c
751
assert(off % c->datablksz == 0);
usr.sbin/makefs/zfs.c
755
blkid = off / c->datablksz;
usr.sbin/makefs/zfs.c
756
for (levels = 0; levels < c->dnode->dn_nlevels - 1U; levels++) {
usr.sbin/makefs/zfs.c
762
_dnode_cursor_flush(zfs, c, levels);
usr.sbin/makefs/zfs.c
765
c->dataoff = off;
usr.sbin/makefs/zfs.c
766
l1id = (off / c->datablksz) & (BLKPTR_PER_INDIR - 1);
usr.sbin/makefs/zfs.c
767
return ((blkptr_t *)&c->inddir[0][l1id * sizeof(blkptr_t)]);
usr.sbin/makefs/zfs.c
771
dnode_cursor_finish(zfs_opt_t *zfs, struct dnode_cursor *c)
usr.sbin/makefs/zfs.c
775
assert(c->dnode->dn_nlevels > 0);
usr.sbin/makefs/zfs.c
776
levels = c->dnode->dn_nlevels - 1;
usr.sbin/makefs/zfs.c
778
_dnode_cursor_flush(zfs, c, levels);
usr.sbin/makefs/zfs.c
779
assert(c->indspace == 0);
usr.sbin/makefs/zfs.c
780
free(c);
usr.sbin/makefs/zfs/fs.c
394
for (fsnode *c =
usr.sbin/makefs/zfs/fs.c
396
c != NULL; c = c->next) {
usr.sbin/makefs/zfs/fs.c
397
switch (c->type) {
usr.sbin/makefs/zfs/fs.c
539
struct dnode_cursor *c;
usr.sbin/makefs/zfs/fs.c
576
c = dnode_cursor_init(zfs, arg->fs->os, dnode, size, 0);
usr.sbin/makefs/zfs/fs.c
601
dnode_cursor_next(zfs, c, foff));
usr.sbin/makefs/zfs/fs.c
604
dnode_cursor_finish(zfs, c);
usr.sbin/makefs/zfs/objset.c
111
_objset_write(zfs_opt_t *zfs, zfs_objset_t *os, struct dnode_cursor *c,
usr.sbin/makefs/zfs/objset.c
137
bp = dnode_cursor_next(zfs, c,
usr.sbin/makefs/zfs/objset.c
147
dnode_cursor_finish(zfs, c);
usr.sbin/makefs/zfs/objset.c
161
struct dnode_cursor *c;
usr.sbin/makefs/zfs/objset.c
177
c = dnode_cursor_init(zfs, os, &os->phys->os_meta_dnode, dnodesz,
usr.sbin/makefs/zfs/objset.c
191
_objset_write(zfs, os, c, dnodeloc);
usr.sbin/makefs/zfs/zap.c
100
for (cp = (const uint8_t *)name, crc = salt; (c = *cp) != '\0'; cp++)
usr.sbin/makefs/zfs/zap.c
101
crc = (crc >> 8) ^ crc64_table[(crc ^ c) & 0xFF];
usr.sbin/makefs/zfs/zap.c
358
struct dnode_cursor *c;
usr.sbin/makefs/zfs/zap.c
528
c = dnode_cursor_init(zfs, zap->os, zap->dnode,
usr.sbin/makefs/zfs/zap.c
533
dnode_cursor_next(zfs, c, 0));
usr.sbin/makefs/zfs/zap.c
538
blksz, loc, dnode_cursor_next(zfs, c, (i + 1) * blksz));
usr.sbin/makefs/zfs/zap.c
541
dnode_cursor_finish(zfs, c);
usr.sbin/makefs/zfs/zap.c
85
uint8_t c;
usr.sbin/mlx5tool/mlx5tool.c
313
int c, ctldev, res;
usr.sbin/mlx5tool/mlx5tool.c
320
while ((c = getopt(argc, argv, "d:Eef:ho:rwz")) != -1) {
usr.sbin/mlx5tool/mlx5tool.c
321
switch (c) {
usr.sbin/mountd/mountd.c
428
int c, k, s;
usr.sbin/mountd/mountd.c
465
while ((c = getopt(argc, argv, "2Aadeh:lNnp:RrSs")) != -1)
usr.sbin/mountd/mountd.c
466
switch (c) {
usr.sbin/moused/moused/moused.c
1017
if (c > 0 && ke[0].filter == EVFILT_READ) {
usr.sbin/moused/moused/moused.c
1070
if (c > 0)
usr.sbin/moused/moused/moused.c
531
int c;
usr.sbin/moused/moused/moused.c
537
while ((c = getopt(argc, argv, "3A:C:E:F:HI:L:T:VU:a:dfghi:l:m:p:r:t:q:w:z:")) != -1) {
usr.sbin/moused/moused/moused.c
538
switch(c) {
usr.sbin/moused/moused/moused.c
942
int c;
usr.sbin/moused/moused/moused.c
975
c = kevent(kfd, ke, nchanges, ke, 1, NULL);
usr.sbin/moused/moused/moused.c
976
if (c <= 0) { /* error */
usr.sbin/moused/moused/moused.c
981
c = 0;
usr.sbin/moused/moused/moused.c
983
if (c > 0 && ke[0].udata == NULL) {
usr.sbin/moused/moused/moused.c
996
if (c > 0)
usr.sbin/moused/moused/moused.c
999
if (c > 0 && ke[0].filter == EVFILT_TIMER &&
usr.sbin/moused/moused/util.h
303
char c = str[i];
usr.sbin/moused/moused/util.h
305
if (isdigit(c))
usr.sbin/moused/moused/util.h
307
switch(c) {
usr.sbin/moused/msconvd/msconvd.c
1081
char c;
usr.sbin/moused/msconvd/msconvd.c
1184
if (rodent.resolution == MOUSE_RES_LOW) c = 'g';
usr.sbin/moused/msconvd/msconvd.c
1185
else if (rodent.resolution == MOUSE_RES_MEDIUMLOW) c = 'e';
usr.sbin/moused/msconvd/msconvd.c
1186
else if (rodent.resolution == MOUSE_RES_MEDIUMHIGH) c = 'h';
usr.sbin/moused/msconvd/msconvd.c
1187
else if (rodent.resolution == MOUSE_RES_HIGH) c = 'd';
usr.sbin/moused/msconvd/msconvd.c
1188
else if (rodent.resolution <= 40) c = 'g';
usr.sbin/moused/msconvd/msconvd.c
1189
else if (rodent.resolution <= 100) c = 'd';
usr.sbin/moused/msconvd/msconvd.c
1190
else if (rodent.resolution <= 200) c = 'e';
usr.sbin/moused/msconvd/msconvd.c
1191
else if (rodent.resolution <= 500) c = 'h';
usr.sbin/moused/msconvd/msconvd.c
1192
else if (rodent.resolution <= 1000) c = 'j';
usr.sbin/moused/msconvd/msconvd.c
1193
else c = 'd';
usr.sbin/moused/msconvd/msconvd.c
1194
write(rodent.mfd, &c, 1);
usr.sbin/moused/msconvd/msconvd.c
1213
read(rodent.mfd, &c, 1);
usr.sbin/moused/msconvd/msconvd.c
1214
debug("%c", c);
usr.sbin/moused/msconvd/msconvd.c
1215
if (c != *s)
usr.sbin/moused/msconvd/msconvd.c
1262
read(rodent.mfd, &c, 1);
usr.sbin/moused/msconvd/msconvd.c
1263
buf[i] = c;
usr.sbin/moused/msconvd/msconvd.c
1275
read(rodent.mfd, &c, 1);
usr.sbin/moused/msconvd/msconvd.c
1276
debug("%c", c);
usr.sbin/moused/msconvd/msconvd.c
1277
if (c != buf[i])
usr.sbin/moused/msconvd/msconvd.c
1855
const char *c;
usr.sbin/moused/msconvd/msconvd.c
1899
c = "*q";
usr.sbin/moused/msconvd/msconvd.c
1904
c = "*p";
usr.sbin/moused/msconvd/msconvd.c
1909
c = "*o";
usr.sbin/moused/msconvd/msconvd.c
1915
c = "*n";
usr.sbin/moused/msconvd/msconvd.c
1923
if (write(rodent.mfd, c, 2) != 2)
usr.sbin/moused/msconvd/msconvd.c
2085
char c;
usr.sbin/moused/msconvd/msconvd.c
2103
while (read(rodent.mfd, &c, 1) == 1) {
usr.sbin/moused/msconvd/msconvd.c
2105
buf[i++] = c;
usr.sbin/moused/msconvd/msconvd.c
2106
if ((c == 0x08) || (c == 0x28)) { /* Begin ID */
usr.sbin/moused/msconvd/msconvd.c
2107
debug("begin-id %02x", c);
usr.sbin/moused/msconvd/msconvd.c
2111
debug("%c %02x", c, c);
usr.sbin/moused/msconvd/msconvd.c
2120
++c; /* make it `End ID' */
usr.sbin/moused/msconvd/msconvd.c
2130
if (buf[i++] == c) /* End ID */
usr.sbin/moused/msconvd/msconvd.c
2142
if (buf[i - 1] == c)
usr.sbin/moused/msconvd/msconvd.c
427
int c;
usr.sbin/moused/msconvd/msconvd.c
430
while ((c = getopt(argc, argv, "DF:I:PRS:cdfhi:l:p:r:st:")) != -1)
usr.sbin/moused/msconvd/msconvd.c
431
switch(c) {
usr.sbin/moused/msconvd/msconvd.c
650
int c;
usr.sbin/moused/msconvd/msconvd.c
686
c = select(FD_SETSIZE, &fds, NULL, NULL, NULL);
usr.sbin/moused/msconvd/msconvd.c
687
if (c < 0) { /* error */
usr.sbin/mpsutil/mpsutil.c
220
#define PCHAR(c) { if (retval < tmpsz) { *outbuf++ = (c); retval++; } }
usr.sbin/mptable/mptable.c
138
static void pnstr( char* s, int c );
usr.sbin/mptable/mptable.c
530
int c;
usr.sbin/mptable/mptable.c
591
for (c = cth->entry_count; c; c--) {
usr.sbin/mptable/mptable.c
781
char c;
usr.sbin/mptable/mptable.c
790
if ( (c = entry->bus_type[ x ]) == ' ' )
usr.sbin/mptable/mptable.c
792
name[ x ] = c;
usr.sbin/mptable/mptable.c
921
pnstr( char* s, int c )
usr.sbin/mptable/mptable.c
925
if ( c > MAXPNSTR )
usr.sbin/mptable/mptable.c
926
c = MAXPNSTR;
usr.sbin/mptable/mptable.c
927
strncpy( string, s, c );
usr.sbin/mptable/mptable.c
928
string[ c ] = '\0';
usr.sbin/newsyslog/newsyslog.c
1594
int c;
usr.sbin/newsyslog/newsyslog.c
1642
for (c = 0; c < COMPRESS_TYPES; c++)
usr.sbin/newsyslog/newsyslog.c
1643
if (strcmp(s, compress_type[c].suffix) == 0)
usr.sbin/newsyslog/newsyslog.c
1786
int c;
usr.sbin/newsyslog/newsyslog.c
1791
for (c = 0; c < COMPRESS_TYPES; c++) {
usr.sbin/newsyslog/newsyslog.c
1793
compress_type[c].suffix);
usr.sbin/newsyslog/newsyslog.c
1840
int c;
usr.sbin/newsyslog/newsyslog.c
1842
for (c = 0; c < COMPRESS_TYPES; c++) {
usr.sbin/newsyslog/newsyslog.c
1844
(void) strlcat(zfile, compress_type[c].suffix, MAXPATHLEN);
usr.sbin/newsyslog/newsyslog.c
1846
return (compress_type[c].suffix);
usr.sbin/newsyslog/newsyslog.c
2144
int c, errsav, fcount, zstatus;
usr.sbin/newsyslog/newsyslog.c
2182
for (c = 0; c < ct->nflags; c++)
usr.sbin/newsyslog/newsyslog.c
2183
args[c + 1] = ct->flags[c];
usr.sbin/newsyslog/newsyslog.c
2184
args[c + 1] = zwork->zw_fname;
usr.sbin/newsyslog/newsyslog.c
2190
for (c = 1; args[c] != NULL; c++) {
usr.sbin/newsyslog/newsyslog.c
2192
sbuf_cat(command, args[c]);
usr.sbin/newsyslog/newsyslog.c
2565
int c;
usr.sbin/newsyslog/newsyslog.c
2568
for (c = 0; c < COMPRESS_TYPES; c++)
usr.sbin/newsyslog/newsyslog.c
2570
strlen(compress_type[c].suffix));
usr.sbin/newsyslog/newsyslog.c
2673
int c, res;
usr.sbin/newsyslog/newsyslog.c
2684
while ((c = getc(src)) != EOF) {
usr.sbin/newsyslog/newsyslog.c
2685
if ((putc(c, dst)) == EOF)
usr.sbin/nscd/parser.c
68
char *c = str;
usr.sbin/nscd/parser.c
75
strsep(i < fields_size ? &c : NULL, "\n\t ")) != NULL);
usr.sbin/ofwdump/ofwdump.c
216
phandle_t c;
usr.sbin/ofwdump/ofwdump.c
234
for (c = ofw_child(fd, n); c != 0; c = ofw_peer(fd, c)) {
usr.sbin/ofwdump/ofwdump.c
235
ofw_dump_node(fd, c, level + 1, rec, prop, pmatch,
usr.sbin/pciconf/pciconf.c
115
int c, width;
usr.sbin/pciconf/pciconf.c
123
while ((c = getopt(argc, argv, "aBbcDehlrtwVvx")) != -1) {
usr.sbin/pciconf/pciconf.c
124
switch(c) {
usr.sbin/pkg/config.c
185
if (c[PACKAGESITE].value != NULL)
usr.sbin/pkg/config.c
186
oldval = c[PACKAGESITE].value;
usr.sbin/pkg/config.c
188
oldval = c[PACKAGESITE].val;
usr.sbin/pkg/config.c
199
free(c[PACKAGESITE].value);
usr.sbin/pkg/config.c
200
c[PACKAGESITE].value = newval;
usr.sbin/pkg/config.c
247
if (strcmp(buf, c[i].key) == 0)
usr.sbin/pkg/config.c
256
if (c[i].envset)
usr.sbin/pkg/config.c
260
switch (c[i].type) {
usr.sbin/pkg/config.c
264
"value for %s.\n", c[i].key);
usr.sbin/pkg/config.c
286
if (strcmp(c[i].key, "PKG_ENV") == 0) {
usr.sbin/pkg/config.c
305
if (c[i].envset)
usr.sbin/pkg/config.c
308
if (c[i].main_only == true)
usr.sbin/pkg/config.c
310
switch (c[i].type) {
usr.sbin/pkg/config.c
312
c[i].list = temp_config[i].list;
usr.sbin/pkg/config.c
315
c[i].value = temp_config[i].value;
usr.sbin/pkg/config.c
579
val = getenv(c[i].key);
usr.sbin/pkg/config.c
581
c[i].envset = true;
usr.sbin/pkg/config.c
582
switch (c[i].type) {
usr.sbin/pkg/config.c
585
c[i].list = malloc(sizeof(*c[i].list));
usr.sbin/pkg/config.c
586
STAILQ_INIT(c[i].list);
usr.sbin/pkg/config.c
594
STAILQ_INSERT_TAIL(c[i].list, cv,
usr.sbin/pkg/config.c
599
c[i].val = val;
usr.sbin/pkg/config.c
614
if (c[REPOS_DIR].list == NULL) {
usr.sbin/pkg/config.c
615
c[REPOS_DIR].list = malloc(sizeof(*c[REPOS_DIR].list));
usr.sbin/pkg/config.c
616
STAILQ_INIT(c[REPOS_DIR].list);
usr.sbin/pkg/config.c
619
STAILQ_INSERT_TAIL(c[REPOS_DIR].list, cv, next);
usr.sbin/pkg/config.c
623
STAILQ_INSERT_TAIL(c[REPOS_DIR].list, cv, next);
usr.sbin/pkg/config.c
626
STAILQ_FOREACH(cv, c[REPOS_DIR].list, next)
usr.sbin/pkg/config.c
63
static struct config_entry c[] = {
usr.sbin/pkg/config.c
630
if (c[ABI].val == NULL && c[ABI].value == NULL) {
usr.sbin/pkg/config.c
635
c[ABI].val = abi;
usr.sbin/pkg/config.c
644
if (c[k].type != PKG_CONFIG_STRING)
usr.sbin/pkg/config.c
647
if (c[k].value != NULL)
usr.sbin/pkg/config.c
648
*val = c[k].value;
usr.sbin/pkg/config.c
650
*val = c[k].val;
usr.sbin/pkg/config.c
660
if (c[k].type != PKG_CONFIG_BOOL)
usr.sbin/pkg/config.c
665
if (c[k].value != NULL)
usr.sbin/pkg/config.c
666
value = c[k].value;
usr.sbin/pkg/config.c
668
value = c[k].val;
usr.sbin/pkg/config.c
687
subst_packagesite(c[ABI].value != NULL ? c[ABI].value : c[ABI].val);
usr.sbin/pkg/config.c
688
r->url = c[PACKAGESITE].value;
usr.sbin/pkg/config.c
689
if (c[SIGNATURE_TYPE].value != NULL)
usr.sbin/pkg/config.c
690
if (!parse_signature_type(r, c[SIGNATURE_TYPE].value))
usr.sbin/pkg/config.c
692
if (c[MIRROR_TYPE].value != NULL)
usr.sbin/pkg/config.c
693
parse_mirror_type(r, c[MIRROR_TYPE].value);
usr.sbin/pkg/config.c
694
if (c[PUBKEY].value != NULL)
usr.sbin/pkg/config.c
695
r->pubkey = c[PUBKEY].value;
usr.sbin/pkg/config.c
696
if (c[FINGERPRINTS].value != NULL)
usr.sbin/pkg/config.c
697
r->fingerprints = c[FINGERPRINTS].value;
usr.sbin/pkg/config.c
708
free(c[i].value);
usr.sbin/pkg/ecc.c
63
#define ECC_CCTX(c) (__containerof(c, const struct ecc_sign_ctx, sctx))
usr.sbin/pkg/ecc.c
64
#define ECC_CTX(c) (__containerof(c, struct ecc_sign_ctx, sctx))
usr.sbin/pkg/pkg.c
954
int ret, c;
usr.sbin/pkg/pkg.c
957
c = getchar();
usr.sbin/pkg/pkg.c
959
if (c == 'y' || c == 'Y')
usr.sbin/pkg/pkg.c
964
while (c != '\n' && c != EOF)
usr.sbin/pkg/pkg.c
965
c = getchar();
usr.sbin/pmc/cmd_pmc_stat.c
165
int i, c, start, newcnt;
usr.sbin/pmc/cmd_pmc_stat.c
216
c = strcspn(strdup(stat_mode_cntrs[i]), ", \t");
usr.sbin/pmc/cmd_pmc_stat.c
217
ev->ev_name = malloc(c + 1);
usr.sbin/pmc/cmd_pmc_stat.c
220
(void)strncpy(ev->ev_name, stat_mode_cntrs[i], c);
usr.sbin/pmc/cmd_pmc_stat.c
221
*(ev->ev_name + c) = '\0';
usr.sbin/pmc/cmd_pmc_stat.c
323
int c, option, runstate;
usr.sbin/pmc/cmd_pmc_stat.c
414
if ((c = kevent(pmc_kq, NULL, 0, &kev, 1, NULL)) <= 0) {
usr.sbin/pmc/cmd_pmc_stat.c
445
(void)wait(&c);
usr.sbin/pmccontrol/pmccontrol.c
127
int c, error, i, j, ncpu, npmc, t;
usr.sbin/pmccontrol/pmccontrol.c
138
for (c = 0; c < ncpu; c++) {
usr.sbin/pmccontrol/pmccontrol.c
139
if ((t = pmc_npmc(c)) < 0)
usr.sbin/pmccontrol/pmccontrol.c
142
c);
usr.sbin/pmccontrol/pmccontrol.c
216
int c, cpu, n, npmc, ncpu;
usr.sbin/pmccontrol/pmccontrol.c
240
for (c = cpu = 0; cpu < ncpu; cpu++) {
usr.sbin/pmccontrol/pmccontrol.c
248
printf("#CPU %d:\n", c++);
usr.sbin/pmccontrol/pmccontrol.c
280
enum pmc_class c;
usr.sbin/pmccontrol/pmccontrol.c
298
c = ci->pm_classes[i].pm_class;
usr.sbin/pmccontrol/pmccontrol.c
300
printf("%s\n", pmc_name_of_class(c));
usr.sbin/pmccontrol/pmccontrol.c
301
if (pmc_event_names_of_class(c, &eventnamelist, &nevents) < 0)
usr.sbin/pmccontrol/pmccontrol.c
304
pmc_name_of_class(c));
usr.sbin/pmcstat/pmcpl_callgraph.c
659
pmcpl_cg_topkeypress(int c, void *arg)
usr.sbin/pmcstat/pmcpl_callgraph.c
665
(void) c; (void) w;
usr.sbin/pmcstat/pmcpl_callgraph.h
63
int pmcpl_cg_topkeypress(int c, void *w);
usr.sbin/pmcstat/pmcpl_calltree.c
586
pmcpl_ct_topkeypress(int c, void *arg)
usr.sbin/pmcstat/pmcpl_calltree.c
592
switch (c) {
usr.sbin/pmcstat/pmcpl_calltree.h
38
int pmcpl_ct_topkeypress(int c, void *w);
usr.sbin/pmcstat/pmcstat.c
1339
if ((c = kevent(pmcstat_kq, NULL, 0, &kev, 1, NULL)) <= 0) {
usr.sbin/pmcstat/pmcstat.c
1374
(void) wait(&c);
usr.sbin/pmcstat/pmcstat.c
272
int c, w;
usr.sbin/pmcstat/pmcstat.c
280
c = PMC_IS_SYSTEM_MODE(ev->ev_mode) ? 's' : 'p';
usr.sbin/pmcstat/pmcstat.c
287
if (c == 's')
usr.sbin/pmcstat/pmcstat.c
445
int c, check_driver_stats;
usr.sbin/pmcstat/pmcstat.c
704
c = strcspn(optarg, ", \t");
usr.sbin/pmcstat/pmcstat.c
705
ev->ev_name = malloc(c + 1);
usr.sbin/pmcstat/pmcstat.c
708
(void) strncpy(ev->ev_name, optarg, c);
usr.sbin/pmcstat/pmcstat.c
709
*(ev->ev_name + c) = '\0';
usr.sbin/pmcstat/pmcstat_log.c
720
int c, ret = 0;
usr.sbin/pmcstat/pmcstat_log.c
724
c = wgetch(w);
usr.sbin/pmcstat/pmcstat_log.c
725
wprintw(w, "Key: %c => ", c);
usr.sbin/pmcstat/pmcstat_log.c
726
switch (c) {
usr.sbin/pmcstat/pmcstat_log.c
735
c = wgetch(w);
usr.sbin/pmcstat/pmcstat_log.c
736
if (c == 'd') {
usr.sbin/pmcstat/pmcstat_log.c
804
if (plugins[args.pa_plugin].pl_topkeypress(c, (void *)w))
usr.sbin/pmcstudy/pmcstudy.c
2315
#define cpuid(in,a,b,c,d)\
usr.sbin/pmcstudy/pmcstudy.c
2316
asm("cpuid": "=a" (a), "=b" (b), "=c" (c), "=d" (d) : "a" (in));
usr.sbin/pmcstudy/pmcstudy.c
2327
#define cpuid(in, a, b, c, d)
usr.sbin/ppp/async.c
146
async_Decode(struct async *async, u_char c)
usr.sbin/ppp/async.c
150
if ((async->mode & MODE_HUNT) && c != HDLC_SYN)
usr.sbin/ppp/async.c
153
switch (c) {
usr.sbin/ppp/async.c
179
c ^= HDLC_XOR;
usr.sbin/ppp/async.c
182
async->hbuff[async->length++] = c;
usr.sbin/ppp/async.c
83
async_Encode(struct async *async, u_char **cp, u_char c, int proto)
usr.sbin/ppp/async.c
88
if ((c < 0x20 && (proto == PROTO_LCP || (async->his_accmap & (1 << c))))
usr.sbin/ppp/async.c
89
|| (c == HDLC_ESC) || (c == HDLC_SYN)) {
usr.sbin/ppp/async.c
91
c ^= HDLC_XOR;
usr.sbin/ppp/async.c
93
if (async->cfg.EscMap[32] && async->cfg.EscMap[c >> 3] & (1 << (c & 7))) {
usr.sbin/ppp/async.c
95
c ^= HDLC_XOR;
usr.sbin/ppp/async.c
97
*wp++ = c;
usr.sbin/ppp/bundle.c
174
bundle_Notify(struct bundle *bundle, char c)
usr.sbin/ppp/bundle.c
179
ret = write(bundle->notify.fd, &c, 1);
usr.sbin/ppp/bundle.c
180
if (c != EX_REDIAL && c != EX_RECONNECT) {
usr.sbin/ppp/bundle.c
183
c == EX_NORMAL ? "success" : "failure");
usr.sbin/ppp/bundle.c
189
log_Printf(LogCHAT, "Parent notified of %s\n", ex_desc(c));
usr.sbin/ppp/bundle.c
191
log_Printf(LogERROR, "Failed to notify parent of %s\n", ex_desc(c));
usr.sbin/ppp/chat.c
100
c->pause.name = "chat pause";
usr.sbin/ppp/chat.c
101
c->pause.arg = c;
usr.sbin/ppp/chat.c
102
timer_Start(&c->pause);
usr.sbin/ppp/chat.c
108
struct chat *c = (struct chat *)v;
usr.sbin/ppp/chat.c
109
timer_Stop(&c->timeout);
usr.sbin/ppp/chat.c
110
c->TimedOut = 1;
usr.sbin/ppp/chat.c
114
chat_SetTimeout(struct chat *c)
usr.sbin/ppp/chat.c
116
timer_Stop(&c->timeout);
usr.sbin/ppp/chat.c
117
if (c->TimeoutSec > 0) {
usr.sbin/ppp/chat.c
118
c->timeout.load = SECTICKS * c->TimeoutSec;
usr.sbin/ppp/chat.c
119
c->timeout.func = chat_TimeoutTimer;
usr.sbin/ppp/chat.c
120
c->timeout.name = "chat timeout";
usr.sbin/ppp/chat.c
121
c->timeout.arg = c;
usr.sbin/ppp/chat.c
122
timer_Start(&c->timeout);
usr.sbin/ppp/chat.c
142
struct chat *c = descriptor2chat(d);
usr.sbin/ppp/chat.c
144
int TimedOut = c->TimedOut;
usr.sbin/ppp/chat.c
147
if (c->pause.state == TIMER_RUNNING)
usr.sbin/ppp/chat.c
152
if (c->nargptr == NULL)
usr.sbin/ppp/chat.c
153
c->state = CHAT_FAILED;
usr.sbin/ppp/chat.c
156
c->argptr = &arg_term;
usr.sbin/ppp/chat.c
161
c->bufstart = c->bufend;
usr.sbin/ppp/chat.c
163
c->TimedOut = 0;
usr.sbin/ppp/chat.c
166
if (c->state != CHAT_EXPECT && c->state != CHAT_SEND)
usr.sbin/ppp/chat.c
171
if (c->arg < c->argc && (c->arg < 0 || *c->argptr == '\0')) {
usr.sbin/ppp/chat.c
173
if (c->arg < 0 || c->state == CHAT_SEND)
usr.sbin/ppp/chat.c
174
c->state = CHAT_EXPECT;
usr.sbin/ppp/chat.c
176
c->state = CHAT_SEND;
usr.sbin/ppp/chat.c
179
while (special && (c->nargptr || c->arg < c->argc - 1)) {
usr.sbin/ppp/chat.c
180
if (c->arg < 0 || (!TimedOut && c->state == CHAT_SEND))
usr.sbin/ppp/chat.c
181
c->nargptr = NULL;
usr.sbin/ppp/chat.c
183
if (c->nargptr != NULL) {
usr.sbin/ppp/chat.c
185
c->argptr = c->nargptr;
usr.sbin/ppp/chat.c
187
c->nargptr[-1] = '-';
usr.sbin/ppp/chat.c
188
c->nargptr = chat_NextChar(c->nargptr, '-');
usr.sbin/ppp/chat.c
189
if (c->nargptr != NULL)
usr.sbin/ppp/chat.c
190
*c->nargptr++ = '\0';
usr.sbin/ppp/chat.c
194
if ((c->argptr = c->argv[++c->arg]) == NULL) {
usr.sbin/ppp/chat.c
196
c->state = CHAT_DONE;
usr.sbin/ppp/chat.c
200
if (c->state == CHAT_EXPECT) {
usr.sbin/ppp/chat.c
202
c->nargptr = c->argptr;
usr.sbin/ppp/chat.c
204
while ((c->nargptr = chat_NextChar(c->nargptr, '-'))) {
usr.sbin/ppp/chat.c
205
c->nargptr++;
usr.sbin/ppp/chat.c
211
" '-' chars, all ignored\n", c->argptr);
usr.sbin/ppp/chat.c
213
c->nargptr = chat_NextChar(c->argptr, '-');
usr.sbin/ppp/chat.c
214
*c->nargptr++ = '\0';
usr.sbin/ppp/chat.c
225
needcr = c->state == CHAT_SEND &&
usr.sbin/ppp/chat.c
226
(*c->argptr != '!' || c->argptr[1] == '!');
usr.sbin/ppp/chat.c
229
ExpandString(c, c->argptr, c->exp + 2, sizeof c->exp - 2, needcr);
usr.sbin/ppp/chat.c
236
if (c->abort.num < MAXABORTS) {
usr.sbin/ppp/chat.c
239
len = strlen(c->exp+2);
usr.sbin/ppp/chat.c
240
for (i = 0; i < c->abort.num; i++)
usr.sbin/ppp/chat.c
241
if (len > c->abort.string[i].len) {
usr.sbin/ppp/chat.c
244
for (last = c->abort.num; last > i; last--) {
usr.sbin/ppp/chat.c
245
c->abort.string[last].data = c->abort.string[last-1].data;
usr.sbin/ppp/chat.c
246
c->abort.string[last].len = c->abort.string[last-1].len;
usr.sbin/ppp/chat.c
250
c->abort.string[i].len = len;
usr.sbin/ppp/chat.c
251
if ((c->abort.string[i].data = (char *)malloc(len+1)) != NULL) {
usr.sbin/ppp/chat.c
252
memcpy(c->abort.string[i].data, c->exp+2, len+1);
usr.sbin/ppp/chat.c
253
c->abort.num++;
usr.sbin/ppp/chat.c
259
c->TimeoutSec = atoi(c->exp + 2);
usr.sbin/ppp/chat.c
260
if (c->TimeoutSec <= 0)
usr.sbin/ppp/chat.c
261
c->TimeoutSec = 30;
usr.sbin/ppp/chat.c
263
} else if (c->nargptr == NULL && !strcmp(c->exp+2, "ABORT"))
usr.sbin/ppp/chat.c
265
else if (c->nargptr == NULL && !strcmp(c->exp+2, "TIMEOUT"))
usr.sbin/ppp/chat.c
268
if (c->exp[2] == '!' && c->exp[3] != '!')
usr.sbin/ppp/chat.c
269
ExecStr(c->physical, c->exp + 3, c->exp + 3, sizeof c->exp - 3);
usr.sbin/ppp/chat.c
271
if (c->exp[2] == '\0') {
usr.sbin/ppp/chat.c
273
c->argptr = &arg_term;
usr.sbin/ppp/chat.c
288
c->state = CHAT_DONE;
usr.sbin/ppp/chat.c
293
c->argptr = c->exp + (c->exp[2] == '!' ? 3 : 2);
usr.sbin/ppp/chat.c
294
c->arglen = strlen(c->argptr);
usr.sbin/ppp/chat.c
296
if (c->state == CHAT_EXPECT) {
usr.sbin/ppp/chat.c
300
end = c->bufend - c->arglen + 1;
usr.sbin/ppp/chat.c
301
if (end < c->bufstart)
usr.sbin/ppp/chat.c
302
end = c->bufstart;
usr.sbin/ppp/chat.c
303
for (begin = c->bufstart; begin < end; begin++)
usr.sbin/ppp/chat.c
304
if (!strncmp(begin, c->argptr, c->arglen)) {
usr.sbin/ppp/chat.c
305
c->bufstart = begin + c->arglen;
usr.sbin/ppp/chat.c
306
c->argptr += c->arglen;
usr.sbin/ppp/chat.c
307
c->arglen = 0;
usr.sbin/ppp/chat.c
312
log_Printf(LogCHAT, "Expect(%d): %s\n", c->TimeoutSec, c->argptr);
usr.sbin/ppp/chat.c
313
chat_SetTimeout(c);
usr.sbin/ppp/chat.c
323
if (c->state == CHAT_EXPECT)
usr.sbin/ppp/chat.c
324
return physical_doUpdateSet(&c->physical->desc, r, NULL, e, n, 1);
usr.sbin/ppp/chat.c
326
return physical_doUpdateSet(&c->physical->desc, NULL, w, e, n, 1);
usr.sbin/ppp/chat.c
332
struct chat *c = descriptor2chat(d);
usr.sbin/ppp/chat.c
333
return c->argptr && physical_IsSet(&c->physical->desc, fdset);
usr.sbin/ppp/chat.c
337
chat_UpdateLog(struct chat *c, int in)
usr.sbin/ppp/chat.c
350
end = ptr = c->bufend;
usr.sbin/ppp/chat.c
352
ptr = c->bufend - in;
usr.sbin/ppp/chat.c
353
for (end = c->bufend - 1; end >= ptr; end--)
usr.sbin/ppp/chat.c
359
for (ptr = c->bufend - (in == -1 ? 1 : in + 1); ptr >= c->bufstart; ptr--)
usr.sbin/ppp/chat.c
382
struct chat *c = descriptor2chat(d);
usr.sbin/ppp/chat.c
384
if (c->state == CHAT_EXPECT) {
usr.sbin/ppp/chat.c
393
in = BUFLEFT(c);
usr.sbin/ppp/chat.c
394
if (in > (ssize_t)sizeof c->buf / 2)
usr.sbin/ppp/chat.c
395
in = sizeof c->buf / 2;
usr.sbin/ppp/chat.c
397
in = physical_Read(c->physical, c->bufend, in);
usr.sbin/ppp/chat.c
402
ebegin = c->bufend - c->arglen + 1;
usr.sbin/ppp/chat.c
404
if (ebegin < c->bufstart)
usr.sbin/ppp/chat.c
405
ebegin = c->bufstart;
usr.sbin/ppp/chat.c
407
if (c->abort.num) {
usr.sbin/ppp/chat.c
408
abegin = c->bufend - c->abort.string[0].len + 1;
usr.sbin/ppp/chat.c
409
aend = c->bufend - c->abort.string[c->abort.num-1].len + in + 1;
usr.sbin/ppp/chat.c
410
if (abegin < c->bufstart)
usr.sbin/ppp/chat.c
411
abegin = c->bufstart;
usr.sbin/ppp/chat.c
419
c->bufend += in;
usr.sbin/ppp/chat.c
421
chat_UpdateLog(c, in);
usr.sbin/ppp/chat.c
423
if (c->bufend > c->buf + sizeof c->buf / 2) {
usr.sbin/ppp/chat.c
427
for (chop = begin - c->buf; chop; chop--)
usr.sbin/ppp/chat.c
428
if (c->buf[chop] == '\n')
usr.sbin/ppp/chat.c
433
chop = begin - c->buf;
usr.sbin/ppp/chat.c
438
to = c->buf;
usr.sbin/ppp/chat.c
440
while (from < c->bufend)
usr.sbin/ppp/chat.c
442
c->bufstart -= chop;
usr.sbin/ppp/chat.c
443
c->bufend -= chop;
usr.sbin/ppp/chat.c
455
!strncmp(begin, c->argptr, c->arglen)) {
usr.sbin/ppp/chat.c
457
timer_Stop(&c->timeout);
usr.sbin/ppp/chat.c
458
if (memchr(begin + c->arglen - 1, '\n',
usr.sbin/ppp/chat.c
459
c->bufend - begin - c->arglen + 1) == NULL) {
usr.sbin/ppp/chat.c
461
end = c->bufend;
usr.sbin/ppp/chat.c
462
c->bufend = begin + c->arglen;
usr.sbin/ppp/chat.c
463
chat_UpdateLog(c, -1);
usr.sbin/ppp/chat.c
464
c->bufend = end;
usr.sbin/ppp/chat.c
466
c->bufstart = begin + c->arglen;
usr.sbin/ppp/chat.c
467
c->argptr += c->arglen;
usr.sbin/ppp/chat.c
468
c->arglen = 0;
usr.sbin/ppp/chat.c
471
for (n = c->abort.num - 1; n >= 0; n--) {
usr.sbin/ppp/chat.c
472
if (begin + c->abort.string[n].len > c->bufend)
usr.sbin/ppp/chat.c
474
if (!strncmp(begin, c->abort.string[n].data,
usr.sbin/ppp/chat.c
475
c->abort.string[n].len)) {
usr.sbin/ppp/chat.c
476
if (memchr(begin + c->abort.string[n].len - 1, '\n',
usr.sbin/ppp/chat.c
477
c->bufend - begin - c->abort.string[n].len + 1) == NULL) {
usr.sbin/ppp/chat.c
479
end = c->bufend;
usr.sbin/ppp/chat.c
480
c->bufend = begin + c->abort.string[n].len;
usr.sbin/ppp/chat.c
481
chat_UpdateLog(c, -1);
usr.sbin/ppp/chat.c
482
c->bufend = end;
usr.sbin/ppp/chat.c
484
c->bufstart = begin + c->abort.string[n].len;
usr.sbin/ppp/chat.c
485
c->state = CHAT_FAILED;
usr.sbin/ppp/chat.c
497
struct chat *c = descriptor2chat(d);
usr.sbin/ppp/chat.c
500
if (c->state == CHAT_SEND) {
usr.sbin/ppp/chat.c
503
if (strstr(c->argv[c->arg], "\\P")) /* Don't log the password */
usr.sbin/ppp/chat.c
504
log_Printf(LogCHAT, "Send: %s\n", c->argv[c->arg]);
usr.sbin/ppp/chat.c
508
sz = c->arglen - 1;
usr.sbin/ppp/chat.c
509
while (sz >= 0 && c->argptr[sz] == '\n')
usr.sbin/ppp/chat.c
511
log_Printf(LogCHAT, "Send: %.*s\n", sz + 1, c->argptr);
usr.sbin/ppp/chat.c
514
if (physical_IsSync(c->physical)) {
usr.sbin/ppp/chat.c
520
c->argptr -= 2;
usr.sbin/ppp/chat.c
521
c->arglen += 2;
usr.sbin/ppp/chat.c
522
memcpy(c->argptr, "\377\003", 2); /* Prepend HDLC header */
usr.sbin/ppp/chat.c
525
wrote = physical_Write(c->physical, c->argptr, c->arglen);
usr.sbin/ppp/chat.c
532
if (physical_IsSync(c->physical)) {
usr.sbin/ppp/chat.c
533
c->argptr += 2;
usr.sbin/ppp/chat.c
534
c->arglen -= 2;
usr.sbin/ppp/chat.c
536
} else if (wrote < 2 && physical_IsSync(c->physical)) {
usr.sbin/ppp/chat.c
538
c->argptr += 2;
usr.sbin/ppp/chat.c
539
c->arglen -= 2;
usr.sbin/ppp/chat.c
541
c->argptr += wrote;
usr.sbin/ppp/chat.c
542
c->arglen -= wrote;
usr.sbin/ppp/chat.c
550
chat_Init(struct chat *c, struct physical *p)
usr.sbin/ppp/chat.c
552
c->desc.type = CHAT_DESCRIPTOR;
usr.sbin/ppp/chat.c
553
c->desc.UpdateSet = chat_UpdateSet;
usr.sbin/ppp/chat.c
554
c->desc.IsSet = chat_IsSet;
usr.sbin/ppp/chat.c
555
c->desc.Read = chat_Read;
usr.sbin/ppp/chat.c
556
c->desc.Write = chat_Write;
usr.sbin/ppp/chat.c
557
c->physical = p;
usr.sbin/ppp/chat.c
558
*c->script = '\0';
usr.sbin/ppp/chat.c
559
c->argc = 0;
usr.sbin/ppp/chat.c
560
c->arg = -1;
usr.sbin/ppp/chat.c
561
c->argptr = NULL;
usr.sbin/ppp/chat.c
562
c->nargptr = NULL;
usr.sbin/ppp/chat.c
563
c->bufstart = c->bufend = c->buf;
usr.sbin/ppp/chat.c
565
memset(&c->pause, '\0', sizeof c->pause);
usr.sbin/ppp/chat.c
566
memset(&c->timeout, '\0', sizeof c->timeout);
usr.sbin/ppp/chat.c
570
chat_Setup(struct chat *c, const char *data, const char *phone)
usr.sbin/ppp/chat.c
572
c->state = CHAT_EXPECT;
usr.sbin/ppp/chat.c
575
*c->script = '\0';
usr.sbin/ppp/chat.c
576
c->argc = 0;
usr.sbin/ppp/chat.c
578
strncpy(c->script, data, sizeof c->script - 1);
usr.sbin/ppp/chat.c
579
c->script[sizeof c->script - 1] = '\0';
usr.sbin/ppp/chat.c
580
c->argc = MakeArgs(c->script, c->argv, VECSIZE(c->argv), PARSE_NOHASH);
usr.sbin/ppp/chat.c
583
c->arg = -1;
usr.sbin/ppp/chat.c
584
c->argptr = NULL;
usr.sbin/ppp/chat.c
585
c->nargptr = NULL;
usr.sbin/ppp/chat.c
587
c->TimeoutSec = 30;
usr.sbin/ppp/chat.c
588
c->TimedOut = 0;
usr.sbin/ppp/chat.c
589
c->phone = phone;
usr.sbin/ppp/chat.c
590
c->abort.num = 0;
usr.sbin/ppp/chat.c
592
timer_Stop(&c->pause);
usr.sbin/ppp/chat.c
593
timer_Stop(&c->timeout);
usr.sbin/ppp/chat.c
595
return c->argc >= 0;
usr.sbin/ppp/chat.c
599
chat_Finish(struct chat *c)
usr.sbin/ppp/chat.c
601
timer_Stop(&c->pause);
usr.sbin/ppp/chat.c
602
timer_Stop(&c->timeout);
usr.sbin/ppp/chat.c
603
while (c->abort.num)
usr.sbin/ppp/chat.c
604
free(c->abort.string[--c->abort.num].data);
usr.sbin/ppp/chat.c
605
c->abort.num = 0;
usr.sbin/ppp/chat.c
609
chat_Destroy(struct chat *c)
usr.sbin/ppp/chat.c
611
chat_Finish(c);
usr.sbin/ppp/chat.c
627
ExpandString(struct chat *c, const char *str, char *result, int reslen, int cr)
usr.sbin/ppp/chat.c
641
chat_Pause(c, 2 * SECTICKS);
usr.sbin/ppp/chat.c
644
chat_Pause(c, SECTICKS / 4);
usr.sbin/ppp/chat.c
663
strncpy(result, c->physical->dl->bundle->cfg.auth.key, reslen);
usr.sbin/ppp/chat.c
669
if (c->phone) {
usr.sbin/ppp/chat.c
670
strncpy(result, c->phone, reslen);
usr.sbin/ppp/chat.c
677
strncpy(result, c->physical->dl->bundle->cfg.auth.name, reslen);
usr.sbin/ppp/chat.c
81
#define BUFLEFT(c) (sizeof (c)->buf - ((c)->bufend - (c)->buf))
usr.sbin/ppp/chat.c
89
struct chat *c = (struct chat *)v;
usr.sbin/ppp/chat.c
90
timer_Stop(&c->pause);
usr.sbin/ppp/chat.c
91
c->pause.load = 0;
usr.sbin/ppp/chat.c
95
chat_Pause(struct chat *c, u_long load)
usr.sbin/ppp/chat.c
97
timer_Stop(&c->pause);
usr.sbin/ppp/chat.c
98
c->pause.load += load;
usr.sbin/ppp/chat.c
99
c->pause.func = chat_PauseTimer;
usr.sbin/ppp/defs.c
57
#define issep(c) ((c) == '\t' || (c) == ' ')
usr.sbin/ppp/log.c
367
char *b, *c;
usr.sbin/ppp/log.c
375
c = b + 50;
usr.sbin/ppp/log.c
381
*c++ = isprint(*ptr) ? *ptr : '.';
usr.sbin/ppp/log.c
386
*c = '\0';
usr.sbin/ppp/log.c
389
c = b + 50;
usr.sbin/ppp/log.c
396
*c = '\0';
usr.sbin/ppp/log.c
407
char *b, *c;
usr.sbin/ppp/log.c
413
c = b + 50;
usr.sbin/ppp/log.c
416
*c++ = isprint(*ptr) ? *ptr : '.';
usr.sbin/ppp/log.c
419
*c = '\0';
usr.sbin/ppp/main.c
452
char c = EX_NORMAL;
usr.sbin/ppp/main.c
465
while ((ret = read(bgpipe[0], &c, 1)) == 1) {
usr.sbin/ppp/main.c
466
switch (c) {
usr.sbin/ppp/main.c
483
ex_desc((int)c));
usr.sbin/ppp/main.c
485
ex_desc((int) c));
usr.sbin/ppp/main.c
495
return c;
usr.sbin/ppp/mp.c
899
mp_Enddisc(u_char c, const char *address, size_t len)
usr.sbin/ppp/mp.c
904
switch (c) {
usr.sbin/ppp/mp.c
945
sprintf(result, "%d: ", (int)c);
usr.sbin/ppp/nat_cmd.c
100
*a = c;
usr.sbin/ppp/nat_cmd.c
96
u_short c;
usr.sbin/ppp/nat_cmd.c
98
c = *b;
usr.sbin/ppp/ncpaddr.c
121
u_char *c = result.s6_addr;
usr.sbin/ppp/ncpaddr.c
128
c++;
usr.sbin/ppp/ncpaddr.c
130
*c |= bit;
usr.sbin/ppp/ncpaddr.c
142
const u_char *c, *p, *end;
usr.sbin/ppp/ncpaddr.c
150
for (c = masks, m = 0; c < masks + sizeof masks; c++, m++)
usr.sbin/ppp/ncpaddr.c
151
if (*c == *p) {
usr.sbin/prometheus_sysctl_exporter/prometheus_sysctl_exporter.c
340
char *c, *label;
usr.sbin/prometheus_sysctl_exporter/prometheus_sysctl_exporter.c
350
for (c = strchr(on->names, '.'); c != NULL; c = strchr(c + 1, '.'))
usr.sbin/prometheus_sysctl_exporter/prometheus_sysctl_exporter.c
351
*c = '\0';
usr.sbin/rip6query/rip6query.c
73
int c;
usr.sbin/rip6query/rip6query.c
80
while ((c = getopt(argc, argv, "I:")) != -1) {
usr.sbin/rip6query/rip6query.c
81
switch (c) {
usr.sbin/rmt/rmt.c
185
DEBUG1("rmtd: garbage command %c\n", c);
usr.sbin/rmt/rmt.c
69
char c;
usr.sbin/rmt/rmt.c
84
if (read(STDIN_FILENO, &c, 1) != 1)
usr.sbin/rmt/rmt.c
86
switch (c) {
usr.sbin/route6d/route6d.c
355
#define FLAG(c, flag, n) case c: do { flag = n; break; } while(0)
usr.sbin/rpcbind/rpcbind.c
819
char c = '\0';
usr.sbin/rpcbind/rpcbind.c
823
wr = write(terminate_wfd, &c, 1);
usr.sbin/rpcbind/rpcbind.c
848
int c;
usr.sbin/rpcbind/rpcbind.c
860
while ((c = getopt(argc, argv, "6adh:IiLlNP:s" WRAPOP WSOP)) != -1) {
usr.sbin/rpcbind/rpcbind.c
861
switch (c) {
usr.sbin/rtadvctl/rtadvctl.c
480
int c;
usr.sbin/rtadvctl/rtadvctl.c
495
c = 0;
usr.sbin/rtadvctl/rtadvctl.c
497
c += printf("NONEXISTENT");
usr.sbin/rtadvctl/rtadvctl.c
499
c += printf("%s", (ifi_s->ifi_flags & IFF_UP) ?
usr.sbin/rtadvctl/rtadvctl.c
503
c += printf("%s%s", (c) ? "," : "", "CONFIGURED");
usr.sbin/rtadvctl/rtadvctl.c
506
c += printf("%s%s", (c) ? "," : "", "TRANSITIVE");
usr.sbin/rtadvctl/rtadvctl.c
510
c += printf("%s%s", (c) ? "," : "", "PERSIST");
usr.sbin/rtadvctl/rtadvctl.c
529
c = 0;
usr.sbin/rtadvctl/rtadvctl.c
532
printf("%s%s", (c) ? "," : "", "INACTIVE");
usr.sbin/rtadvctl/rtadvctl.c
534
printf("%s%s", (c) ? "," : "", "RA_RECV");
usr.sbin/rtadvctl/rtadvctl.c
536
printf("%s%s", (c) ? "," : "", "RA_SEND");
usr.sbin/rtadvd/advcap.c
111
int c;
usr.sbin/rtadvd/advcap.c
145
c = ibuf[i++];
usr.sbin/rtadvd/advcap.c
146
if (c == '\n') {
usr.sbin/rtadvd/advcap.c
158
*cp++ = c;
usr.sbin/rtadvd/advcap.c
389
int c;
usr.sbin/rtadvd/advcap.c
401
while ((c = *str++) && c != term) {
usr.sbin/rtadvd/advcap.c
402
switch (c) {
usr.sbin/rtadvd/advcap.c
405
c = *str++ & 037;
usr.sbin/rtadvd/advcap.c
410
c = *str++;
usr.sbin/rtadvd/advcap.c
412
if (*dp++ == c) {
usr.sbin/rtadvd/advcap.c
413
c = *dp++;
usr.sbin/rtadvd/advcap.c
419
if (isdigit(c)) {
usr.sbin/rtadvd/advcap.c
420
c -= '0', i = 2;
usr.sbin/rtadvd/advcap.c
422
c <<= 3, c |= *str++ - '0';
usr.sbin/rtadvd/advcap.c
427
*cp++ = c;
usr.sbin/rtadvd/advcap.c
429
if (c == term && term != ':') {
usr.sbin/rtadvd/config.c
821
int c;
usr.sbin/rtadvd/config.c
831
for (ap = addr; ap - addr < (ssize_t)strlen(addr); ap += c+1) {
usr.sbin/rtadvd/config.c
832
c = strcspn(ap, ",");
usr.sbin/rtadvd/config.c
833
strncpy(abuf, ap, c);
usr.sbin/rtadvd/config.c
834
abuf[c] = '\0';
usr.sbin/rtadvd/config.c
872
int c;
usr.sbin/rtadvd/config.c
883
for (ap = addr; ap - addr < (ssize_t)strlen(addr); ap += c+1) {
usr.sbin/rtadvd/config.c
884
c = strcspn(ap, ",");
usr.sbin/rtadvd/config.c
885
strncpy(abuf, ap, c);
usr.sbin/rtadvd/config.c
886
abuf[c] = '\0';
usr.sbin/rtsold/rtsol.c
780
#define hyphenchar(c) ((c) == 0x2d)
usr.sbin/rtsold/rtsol.c
781
#define periodchar(c) ((c) == PERIOD)
usr.sbin/rtsold/rtsol.c
782
#define alphachar(c) (((c) >= 0x41 && (c) <= 0x5a) || \
usr.sbin/rtsold/rtsol.c
783
((c) >= 0x61 && (c) <= 0x7a))
usr.sbin/rtsold/rtsol.c
784
#define digitchar(c) ((c) >= 0x30 && (c) <= 0x39)
usr.sbin/rtsold/rtsol.c
786
#define borderchar(c) (alphachar(c) || digitchar(c))
usr.sbin/rtsold/rtsol.c
787
#define middlechar(c) (borderchar(c) || hyphenchar(c))
usr.sbin/sa/main.c
337
char c = ac.ac_comm[i];
usr.sbin/sa/main.c
339
if (!isascii(c) || iscntrl(c)) {
usr.sbin/sa/main.c
343
ci.ci_comm[i] = c;
usr.sbin/sa/pdb.c
282
double t, c;
usr.sbin/sa/pdb.c
285
c = cip->ci_calls ? cip->ci_calls : 1;
usr.sbin/sa/pdb.c
303
printf("%11.3fre ", cip->ci_etime / (1000000 * c));
usr.sbin/sa/pdb.c
330
printf("%11.3fu ", cip->ci_utime / (1000000 * c));
usr.sbin/sa/pdb.c
341
printf("%11.3fs ", cip->ci_stime / (1000000 * c));
usr.sbin/sa/pdb.c
365
printf("%8.0favio ", cip->ci_io / c);
usr.sbin/smbmsg/smbmsg.c
108
struct smbcmd c;
usr.sbin/smbmsg/smbmsg.c
113
c.slave = addr;
usr.sbin/smbmsg/smbmsg.c
115
if (ioctl(fd, SMB_RECVB, &c) != -1)
usr.sbin/smbmsg/smbmsg.c
117
if (ioctl(fd, SMB_QUICK_WRITE, &c) != -1)
usr.sbin/smbmsg/smbmsg.c
133
struct smbcmd c;
usr.sbin/smbmsg/smbmsg.c
136
c.slave = slave;
usr.sbin/smbmsg/smbmsg.c
137
c.cmd = cflag;
usr.sbin/smbmsg/smbmsg.c
138
c.rcount = 0;
usr.sbin/smbmsg/smbmsg.c
139
c.wcount = 0;
usr.sbin/smbmsg/smbmsg.c
148
return (ioctl(fd, SMB_QUICK_WRITE, &c));
usr.sbin/smbmsg/smbmsg.c
151
return (ioctl(fd, SMB_QUICK_READ, &c));
usr.sbin/smbmsg/smbmsg.c
154
if (ioctl(fd, SMB_RECVB, &c) == -1)
usr.sbin/smbmsg/smbmsg.c
156
printf(fmt, (unsigned char)c.cmd);
usr.sbin/smbmsg/smbmsg.c
161
c.cmd = obuf[0];
usr.sbin/smbmsg/smbmsg.c
162
return (ioctl(fd, SMB_SENDB, &c));
usr.sbin/smbmsg/smbmsg.c
168
if (ioctl(fd, SMB_READB, &c) == -1)
usr.sbin/smbmsg/smbmsg.c
170
printf(fmt, (unsigned char)c.rdata.byte);
usr.sbin/smbmsg/smbmsg.c
175
c.wdata.byte = obuf[0];
usr.sbin/smbmsg/smbmsg.c
176
return (ioctl(fd, SMB_WRITEB, &c));
usr.sbin/smbmsg/smbmsg.c
179
if (ioctl(fd, SMB_READW, &c) == -1)
usr.sbin/smbmsg/smbmsg.c
181
printf(fmt, (unsigned short)c.rdata.word);
usr.sbin/smbmsg/smbmsg.c
186
c.wdata.word = oword;
usr.sbin/smbmsg/smbmsg.c
187
return (ioctl(fd, SMB_WRITEW, &c));
usr.sbin/smbmsg/smbmsg.c
193
c.wdata.word = oword;
usr.sbin/smbmsg/smbmsg.c
194
if (ioctl(fd, SMB_PCALL, &c) == -1)
usr.sbin/smbmsg/smbmsg.c
196
printf(fmt, (unsigned short)c.rdata.word);
usr.sbin/smbmsg/smbmsg.c
201
c.rbuf = ibuf;
usr.sbin/smbmsg/smbmsg.c
202
c.rcount = iflag;
usr.sbin/smbmsg/smbmsg.c
203
if (ioctl(fd, SMB_BREAD, &c) == -1)
usr.sbin/smbmsg/smbmsg.c
205
for (i = 0; i < c.rcount; i++) {
usr.sbin/smbmsg/smbmsg.c
214
c.wbuf = obuf;
usr.sbin/smbmsg/smbmsg.c
215
c.wcount = oflag;
usr.sbin/smbmsg/smbmsg.c
216
return (ioctl(fd, SMB_BWRITE, &c));
usr.sbin/sndctl/sndctl.c
953
int c;
usr.sbin/sndctl/sndctl.c
959
while ((c = getopt(argc, argv, "f:hov")) != -1) {
usr.sbin/sndctl/sndctl.c
960
switch (c) {
usr.sbin/spi/spi.c
530
hexval(char c)
usr.sbin/spi/spi.c
532
if (c >= '0' && c <= '9') {
usr.sbin/spi/spi.c
533
return c - '0';
usr.sbin/spi/spi.c
534
} else if (c >= 'A' && c <= 'F') {
usr.sbin/spi/spi.c
535
return c - 'A' + 10;
usr.sbin/spi/spi.c
536
} else if (c >= 'a' && c <= 'f') {
usr.sbin/spi/spi.c
537
return c - 'a' + 10;
usr.sbin/spi/spi.c
78
static int hexval(char c);
usr.sbin/spray/spray.c
62
int c;
usr.sbin/spray/spray.c
69
while ((c = getopt(argc, argv, "c:d:l:")) != -1) {
usr.sbin/spray/spray.c
70
switch (c) {
usr.sbin/syslogd/syslogd.c
1986
const CODE *c;
usr.sbin/syslogd/syslogd.c
2037
for (c = facilitynames; c->c_name; c++) {
usr.sbin/syslogd/syslogd.c
2038
if (c->c_val == facility) {
usr.sbin/syslogd/syslogd.c
2039
iovlist_append(&il, c->c_name);
usr.sbin/syslogd/syslogd.c
2057
for (c = prioritynames; c->c_name; c++) {
usr.sbin/syslogd/syslogd.c
2058
if (c->c_val == priority) {
usr.sbin/syslogd/syslogd.c
2059
iovlist_append(&il, c->c_name);
usr.sbin/syslogd/syslogd.c
3298
const CODE *c;
usr.sbin/syslogd/syslogd.c
3311
for (c = codetab; c->c_name; c++)
usr.sbin/syslogd/syslogd.c
3312
if (!strcmp(buf, c->c_name))
usr.sbin/syslogd/syslogd.c
3313
return (c->c_val);
usr.sbin/syslogd/syslogd.c
914
int c;
usr.sbin/syslogd/syslogd.c
917
while ((c = (unsigned char)*in++) != '\0' && q < out + outlen - 4) {
usr.sbin/syslogd/syslogd.c
918
if (mask_C1 && (c & 0x80) && c < 0xA0) {
usr.sbin/syslogd/syslogd.c
919
c &= 0x7F;
usr.sbin/syslogd/syslogd.c
923
if (isascii(c) && iscntrl(c)) {
usr.sbin/syslogd/syslogd.c
924
if (c == '\n') {
usr.sbin/syslogd/syslogd.c
926
} else if (c == '\t') {
usr.sbin/syslogd/syslogd.c
930
*q++ = c ^ 0100;
usr.sbin/syslogd/syslogd.c
933
*q++ = c;
usr.sbin/traceroute/traceroute.c
1752
#define CRC32C(c, d) (c = (c >> 8) ^ crc_c[(c ^ (d)) & 0xFF])
usr.sbin/traceroute6/traceroute6.c
1667
#define CRC32C(c, d) (c = (c >> 8) ^ crc_c[(c ^ (d)) & 0xFF])
usr.sbin/tzsetup/tzsetup.c
829
int c, rv, skiputc;
usr.sbin/tzsetup/tzsetup.c
846
while ((c = getopt(argc, argv, "C:d:nrs")) != -1) {
usr.sbin/tzsetup/tzsetup.c
847
switch (c) {
usr.sbin/uathload/uathload.c
129
int msg, data, fw, timeout, b, c;
usr.sbin/uathload/uathload.c
134
while ((c = getopt(argc, argv, "d:v")) != -1) {
usr.sbin/uathload/uathload.c
135
switch (c) {
usr.sbin/uefisign/uefisign.c
62
char *c;
usr.sbin/uefisign/uefisign.c
64
c = strdup(s);
usr.sbin/uefisign/uefisign.c
65
if (c == NULL)
usr.sbin/uefisign/uefisign.c
67
return (c);
usr.sbin/usbconfig/usbconfig.c
436
char c;
usr.sbin/usbconfig/usbconfig.c
438
c = ((uint8_t *)opt->buffer)[t];
usr.sbin/usbconfig/usbconfig.c
439
if ((c != '<') &&
usr.sbin/usbconfig/usbconfig.c
440
(c != '>') && isprint(c)) {
usr.sbin/usbconfig/usbconfig.c
441
putchar(c);
usr.sbin/usbdump/usbdump.c
408
int c;
usr.sbin/usbdump/usbdump.c
442
c = *(const u_int8_t *)(line + x);
usr.sbin/usbdump/usbdump.c
444
if ((c < ' ') || (c > '~'))
usr.sbin/usbdump/usbdump.c
445
c = '.';
usr.sbin/usbdump/usbdump.c
446
linebuf[i] = c;
usr.sbin/vidcontrol/decode.c
42
#define DEC(c) (((c) - ' ') & 0x3f)
usr.sbin/vidcontrol/vidcontrol.c
1126
int c;
usr.sbin/vidcontrol/vidcontrol.c
1149
c = 'G';
usr.sbin/vidcontrol/vidcontrol.c
1181
c = 'T';
usr.sbin/vidcontrol/vidcontrol.c
1187
printf(" %c %-15s", c, buf);
usr.sbin/vidcontrol/vidcontrol.c
239
openguess(const char *a[], const char *b[], const char *c[], const char *d[], char **name)
usr.sbin/vidcontrol/vidcontrol.c
246
for (k = 0; c[k] != NULL; k++) {
usr.sbin/vidcontrol/vidcontrol.c
249
a[i], b[j], c[k], d[l]);
usr.sbin/vidcontrol/vidcontrol.c
278
const char *c[] = {"", ".scm", NULL};
usr.sbin/vidcontrol/vidcontrol.c
281
fd = openguess(a, b, c, d, &name);
usr.sbin/vidcontrol/vidcontrol.c
475
const char *c[] = {"", size_sufx, NULL};
usr.sbin/vidcontrol/vidcontrol.c
499
fd = openguess((vt4_mode == 0) ? a : vt4a, b, c, d, &name);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
152
close_connection(struct bt_audio_connection *c)
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
154
avdtpACPFree_f(&c->cfg);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
155
if (c->cfg.fd != -1)
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
156
close(c->cfg.fd);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
157
if (c->cfg.hc != -1)
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
158
close(c->cfg.hc);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
159
if (c->oss_fd != -1)
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
160
close(c->oss_fd);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
161
free(c);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
167
struct bt_audio_connection *c =
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
171
memset(c, 0, sizeof(*c));
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
173
c->r = r;
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
174
c->cfg.fd = -1;
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
175
c->oss_fd = -1;
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
177
addrlen = sizeof(c->peer_addr);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
178
c->cfg.hc = accept(r->fd_listen, (struct sockaddr *)&c->peer_addr, &addrlen);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
180
message("Accepted control connection, %d\n", c->cfg.hc);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
181
if (c->cfg.hc < 0) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
182
close_connection(c);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
185
c->cfg.sep = 0; /* to be set later */
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
186
c->cfg.media_Type = mediaTypeAudio;
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
187
c->cfg.chmode = MODE_DUAL;
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
188
c->cfg.aacMode1 = 0; /* TODO: support AAC */
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
189
c->cfg.aacMode2 = 0;
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
190
c->cfg.acceptor_state = acpInitial;
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
192
return (c);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
196
setup_oss(struct bt_audio_connection *c)
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
198
c->oss_fd = open(c->r->devname, O_WRONLY);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
200
if (c->oss_fd < 0)
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
205
switch (c->cfg.chmode) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
219
if (ioctl(c->oss_fd, SNDCTL_DSP_CHANNELS, &v) < 0) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
224
if (ioctl(c->oss_fd, SNDCTL_DSP_SETFMT, &v) < 0) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
228
switch (c->cfg.freq) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
246
if (ioctl(c->oss_fd, SNDCTL_DSP_SPEED, &v) < 0) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
251
if (ioctl(c->oss_fd, SNDCTL_DSP_SETFRAGMENT, &v) < 0) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
258
c->oss_fd = -1;
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
259
message("Cannot open oss device %s\n", c->r->devname);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
263
process_connection(struct bt_audio_connection *c)
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
268
while (c->cfg.acceptor_state != acpStreamClosed) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
271
pfd[0].fd = c->r->fd_listen;
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
275
pfd[1].fd = c->cfg.hc;
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
279
pfd[2].fd = c->cfg.fd;
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
283
if (c->cfg.fd != -1)
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
295
c->cfg.acceptor_state);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
296
retval = avdtpACPHandlePacket_f(&c->cfg);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
302
socklen_t addrlen = sizeof(c->peer_addr);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
303
int fd = accept4(c->r->fd_listen,
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
304
(struct sockaddr *)&c->peer_addr, &addrlen,
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
310
if (c->cfg.fd < 0) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
311
if (c->cfg.acceptor_state == acpStreamOpened) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
313
c->cfg.fd = fd;
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
315
if (getsockopt(c->cfg.fd, SOL_L2CAP, SO_L2CAP_IMTU, &c->cfg.mtu, &mtusize) == -1) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
320
int temp = c->cfg.mtu * 32;
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
322
if (setsockopt(c->cfg.fd, SOL_SOCKET, SO_RCVBUF, &temp, sizeof(temp)) == -1) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
328
if (setsockopt(c->cfg.fd, SOL_SOCKET, SO_RCVLOWAT, &temp, sizeof(temp)) == -1) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
332
message("Accepted data connection, %d\n", c->cfg.fd);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
342
if ((len = bt_receive_f(&c->cfg, data, sizeof(data), 0)) < 0) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
345
if (c->cfg.acceptor_state != acpStreamSuspended &&
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
346
c->oss_fd < 0 &&
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
349
setup_oss(c);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
352
if (c->oss_fd > -1) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
358
switch (c->cfg.freq) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
373
if (c->cfg.chmode == MODE_MONO) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
375
ioctl(c->oss_fd, SNDCTL_DSP_GETODELAY, &delay) == 0 &&
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
384
write(c->oss_fd, jitter, sizeof(jitter));
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
388
ioctl(c->oss_fd, SNDCTL_DSP_GETODELAY, &delay) == 0 &&
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
397
write(c->oss_fd, jitter, sizeof(jitter));
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
401
int written = write(c->oss_fd, ptr, end - ptr);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
412
close(c->oss_fd);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
413
c->oss_fd = -1;
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
419
if (c->cfg.acceptor_state == acpStreamSuspended &&
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
420
c->oss_fd > -1) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
421
close(c->oss_fd);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
422
c->oss_fd = -1;
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
515
struct bt_audio_connection *c = wait_for_connection(&r);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
517
if (c == NULL) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
523
process_connection(c);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
527
close_connection(c);
usr.sbin/virtual_oss/virtual_oss/httpd.c
686
int c;
usr.sbin/virtual_oss/virtual_oss/httpd.c
689
for (c = 0; c != ns; c++) {
usr.sbin/virtual_oss/virtual_oss/httpd.c
690
fds[c].events = (POLLIN | POLLRDNORM | POLLRDBAND | POLLPRI |
usr.sbin/virtual_oss/virtual_oss/httpd.c
692
fds[c].revents = 0;
usr.sbin/virtual_oss/virtual_oss/httpd.c
697
for (c = 0; c != ns; c++) {
usr.sbin/virtual_oss/virtual_oss/httpd.c
700
if (fds[c].revents == 0)
usr.sbin/virtual_oss/virtual_oss/httpd.c
702
f = accept(fds[c].fd, &sa, &socklen);
usr.sbin/virtual_oss/virtual_oss/main.c
2023
int a, b, c;
usr.sbin/virtual_oss/virtual_oss/main.c
2046
while ((c = getopt(narg, pparg, optstr)) != -1) {
usr.sbin/virtual_oss/virtual_oss/main.c
2047
switch (c) {
usr.sbin/virtual_oss/virtual_oss/main.c
2100
c = *ptr++;
usr.sbin/virtual_oss/virtual_oss/main.c
2101
if (c == ',' || c == 0) {
usr.sbin/virtual_oss/virtual_oss/main.c
2103
if (c == 0)
usr.sbin/virtual_oss/virtual_oss/main.c
2107
if (idx < 2 && c >= '0' && c <= '1') {
usr.sbin/virtual_oss/virtual_oss/main.c
2108
opt_mute[idx] = c - '0';
usr.sbin/virtual_oss/virtual_oss/main.c
2162
if (sscanf(optarg, "%d,%d,%d", &a, &b, &c) != 3 ||
usr.sbin/virtual_oss/virtual_oss/main.c
2167
c < VIRTUAL_OSS_DECAY_MIN ||
usr.sbin/virtual_oss/virtual_oss/main.c
2168
c > VIRTUAL_OSS_DECAY_MAX)
usr.sbin/virtual_oss/virtual_oss/main.c
2173
profile.rx_compressor_param.decay = c;
usr.sbin/virtual_oss/virtual_oss/main.c
2178
if (sscanf(optarg, "%d,%d,%d", &a, &b, &c) != 3 ||
usr.sbin/virtual_oss/virtual_oss/main.c
2183
c < VIRTUAL_OSS_DECAY_MIN ||
usr.sbin/virtual_oss/virtual_oss/main.c
2184
c > VIRTUAL_OSS_DECAY_MAX)
usr.sbin/virtual_oss/virtual_oss/main.c
2189
voss_output_compressor_param.decay = c;
usr.sbin/virtual_oss/virtual_oss/main.c
2207
if (c == 'f' || c == 'R') {
usr.sbin/virtual_oss/virtual_oss/main.c
2214
if (c == 'f' || c == 'P' || c == 'O') {
usr.sbin/virtual_oss/virtual_oss/main.c
2221
if (c == 'O' && voss_has_synchronization == 0)
usr.sbin/virtual_oss/virtual_oss/main.c
2247
opt_mute[0], opt_mute[1], c == 'L', c == 'd');
usr.sbin/virtual_oss/virtual_oss/main.c
2255
c = atoi(optarg);
usr.sbin/virtual_oss/virtual_oss/main.c
2256
switch (c) {
usr.sbin/virtual_oss/virtual_oss/main.c
2299
c = *ptr++;
usr.sbin/virtual_oss/virtual_oss/main.c
2300
if (c == ',' || c == 0) {
usr.sbin/virtual_oss/virtual_oss/main.c
2307
if (c == 0)
usr.sbin/virtual_oss/virtual_oss/main.c
2313
if (c >= '0' && c <= '9') {
usr.sbin/virtual_oss/virtual_oss/main.c
2315
val += c - '0';
usr.sbin/virtual_oss/virtual_oss/main.c
2346
c = *ptr++;
usr.sbin/virtual_oss/virtual_oss/main.c
2347
if (c == '-') {
usr.sbin/virtual_oss/virtual_oss/main.c
2351
if (c == ',' || c == 0) {
usr.sbin/virtual_oss/virtual_oss/main.c
2376
if (c == 0)
usr.sbin/virtual_oss/virtual_oss/main.c
2383
if (c >= '0' && c <= '9') {
usr.sbin/virtual_oss/virtual_oss/main.c
2385
val += c - '0';
usr.sbin/virtual_oss/virtual_oss/mul.c
106
double a, b, c, d;
usr.sbin/virtual_oss/virtual_oss/mul.c
110
c = ptr_high[x];
usr.sbin/virtual_oss/virtual_oss/mul.c
114
ptr_high[x] = a + b + c + d;
usr.sbin/virtual_oss/virtual_oss/mul.c
129
double a, b, c, d;
usr.sbin/virtual_oss/virtual_oss/mul.c
133
c = ptr_high[x];
usr.sbin/virtual_oss/virtual_oss/mul.c
137
ptr_high[x] = c - b - d;
usr.sbin/virtual_oss/virtual_oss/mul.c
66
double a, b, c, d;
usr.sbin/virtual_oss/virtual_oss/mul.c
70
c = ptr_high[x];
usr.sbin/virtual_oss/virtual_oss/mul.c
74
ptr_high[x] = a + b + c + d;
usr.sbin/virtual_oss/virtual_oss/mul.c
86
double a, b, c, d;
usr.sbin/virtual_oss/virtual_oss/mul.c
90
c = ptr_high[x];
usr.sbin/virtual_oss/virtual_oss/mul.c
94
ptr_high[x] = c + b - d;
usr.sbin/watchdogd/watchdogd.c
641
int c;
usr.sbin/watchdogd/watchdogd.c
651
c = strlen(argv[0]);
usr.sbin/watchdogd/watchdogd.c
652
if (argv[0][c - 1] == 'd')
usr.sbin/watchdogd/watchdogd.c
660
while ((c = getopt_long(argc, argv, getopt_shortopts, longopts,
usr.sbin/watchdogd/watchdogd.c
662
switch (c) {
usr.sbin/watchdogd/watchdogd.c
681
nap = fetchtimeout(c, NULL, optarg, 0);
usr.sbin/watchdogd/watchdogd.c
688
timeout = parse_timeout_to_sbt(c, NULL, optarg);
usr.sbin/watchdogd/watchdogd.c
695
fetchtimeout(c, "NULL", optarg, 0);
usr.sbin/watchdogd/watchdogd.c
701
exit_timeout = parse_timeout_to_sbt(c, NULL, optarg);
usr.sbin/wlandebug/wlandebug.c
240
int c = *cp;
usr.sbin/wlandebug/wlandebug.c
241
if (isdigit(c))
usr.sbin/wlanstat/main.c
174
int c, mode;
usr.sbin/wlanstat/main.c
181
while ((c = getopt(argc, argv, "ahi:lm:o:")) != -1) {
usr.sbin/wlanstat/main.c
183
while ((c = getopt(argc, argv, "hi:lm:o:")) != -1) {
usr.sbin/wlanstat/main.c
185
switch (c) {
usr.sbin/ypldap/aldap.c
1200
isu8cont(unsigned char c)
usr.sbin/ypldap/aldap.c
1202
return (c & (0x80 | 0x40)) == 0x80;
usr.sbin/ypldap/aldap.c
155
struct ber_element *root = NULL, *ber, *c;
usr.sbin/ypldap/aldap.c
168
c = ber;
usr.sbin/ypldap/aldap.c
190
aldap_create_page_control(c, 100, page);
usr.sbin/ypldap/aldap.c
216
struct ber c;
usr.sbin/ypldap/aldap.c
219
c.br_wbuf = NULL;
usr.sbin/ypldap/aldap.c
220
c.fd = -1;
usr.sbin/ypldap/aldap.c
233
if ((len = ber_write_elements(&c, ber)) < 1)
usr.sbin/ypldap/aldap.c
236
c.br_wbuf, (size_t)len) == NULL)
usr.sbin/ypldap/aldap.c
240
ber_free(&c);
usr.sbin/ypldap/aldap.c
245
ber_free(&c);
usr.sbin/ypldap/aldap.c
445
struct ber_element *b, *c;
usr.sbin/ypldap/aldap.c
453
&key, &b, &c) != 0)
usr.sbin/ypldap/ber.c
1073
u_char c;
usr.sbin/ypldap/ber.c
1125
if (ber_getc(ber, &c) != 1)
usr.sbin/ypldap/ber.c
1128
val |= c;
usr.sbin/ypldap/ber.c
1233
ber_getc(struct ber *b, u_char *c)
usr.sbin/ypldap/ber.c
1242
r = ber_readbuf(b, c, 1);
usr.sbin/ypldap/ber.c
1244
r = read(b->fd, c, 1);
usr.sbin/ypldap/ber.c
45
static void ber_putc(struct ber *ber, u_char c);
usr.sbin/ypldap/ber.c
52
static ssize_t ber_getc(struct ber *b, u_char *c);
usr.sbin/ypldap/ber.c
967
ber_putc(struct ber *ber, u_char c)
usr.sbin/ypldap/ber.c
970
*ber->br_wptr = c;
usr.sbin/ypldap/parse.y
424
int c, next;
usr.sbin/ypldap/parse.y
429
c = parsebuf[parseindex++];
usr.sbin/ypldap/parse.y
430
if (c != '\0')
usr.sbin/ypldap/parse.y
431
return (c);
usr.sbin/ypldap/parse.y
441
if ((c = getc(file->stream)) == EOF) {
usr.sbin/ypldap/parse.y
448
return (c);
usr.sbin/ypldap/parse.y
451
while ((c = getc(file->stream)) == '\\') {
usr.sbin/ypldap/parse.y
454
c = next;
usr.sbin/ypldap/parse.y
461
while (c == EOF) {
usr.sbin/ypldap/parse.y
464
c = getc(file->stream);
usr.sbin/ypldap/parse.y
466
return (c);
usr.sbin/ypldap/parse.y
470
lungetc(int c)
usr.sbin/ypldap/parse.y
472
if (c == EOF)
usr.sbin/ypldap/parse.y
477
return (c);
usr.sbin/ypldap/parse.y
480
return (pushback_buffer[pushback_index++] = c);
usr.sbin/ypldap/parse.y
488
int c;
usr.sbin/ypldap/parse.y
495
c = pushback_buffer[--pushback_index];
usr.sbin/ypldap/parse.y
497
c = lgetc(0);
usr.sbin/ypldap/parse.y
498
if (c == '\n') {
usr.sbin/ypldap/parse.y
502
if (c == EOF)
usr.sbin/ypldap/parse.y
513
int quotec, next, c;
usr.sbin/ypldap/parse.y
518
while ((c = lgetc(0)) == ' ' || c == '\t')
usr.sbin/ypldap/parse.y
522
if (c == '#')
usr.sbin/ypldap/parse.y
523
while ((c = lgetc(0)) != '\n' && c != EOF)
usr.sbin/ypldap/parse.y
525
if (c == '$' && parsebuf == NULL) {
usr.sbin/ypldap/parse.y
527
if ((c = lgetc(0)) == EOF)
usr.sbin/ypldap/parse.y
534
if (isalnum(c) || c == '_') {
usr.sbin/ypldap/parse.y
535
*p++ = c;
usr.sbin/ypldap/parse.y
539
lungetc(c);
usr.sbin/ypldap/parse.y
552
switch (c) {
usr.sbin/ypldap/parse.y
555
quotec = c;
usr.sbin/ypldap/parse.y
557
if ((c = lgetc(quotec)) == EOF)
usr.sbin/ypldap/parse.y
559
if (c == '\n') {
usr.sbin/ypldap/parse.y
562
} else if (c == '\\') {
usr.sbin/ypldap/parse.y
565
if (next == quotec || c == ' ' || c == '\t')
usr.sbin/ypldap/parse.y
566
c = next;
usr.sbin/ypldap/parse.y
572
} else if (c == quotec) {
usr.sbin/ypldap/parse.y
575
} else if (c == '\0') {
usr.sbin/ypldap/parse.y
583
*p++ = c;
usr.sbin/ypldap/parse.y
594
if (c == '-' || isdigit(c)) {
usr.sbin/ypldap/parse.y
596
*p++ = c;
usr.sbin/ypldap/parse.y
601
} while ((c = lgetc(0)) != EOF && isdigit(c));
usr.sbin/ypldap/parse.y
602
lungetc(c);
usr.sbin/ypldap/parse.y
605
if (c == EOF || allowed_to_end_number(c)) {
usr.sbin/ypldap/parse.y
621
c = *--p;
usr.sbin/ypldap/parse.y
622
if (c == '-')
usr.sbin/ypldap/parse.y
623
return (c);
usr.sbin/ypldap/parse.y
633
if (isalnum(c) || c == ':' || c == '_') {
usr.sbin/ypldap/parse.y
635
*p++ = c;
usr.sbin/ypldap/parse.y
640
} while ((c = lgetc(0)) != EOF && (allowed_in_string(c)));
usr.sbin/ypldap/parse.y
641
lungetc(c);
usr.sbin/ypldap/parse.y
648
if (c == '\n') {
usr.sbin/ypldap/parse.y
652
if (c == EOF)
usr.sbin/ypldap/parse.y
654
return (c);
usr.sbin/ypldap/ypldap.c
500
int c;
usr.sbin/ypldap/ypldap.c
516
while ((c = getopt(argc, argv, "dD:nf:v")) != -1) {
usr.sbin/ypldap/ypldap.c
517
switch (c) {
usr.sbin/yppoll/yppoll.c
131
int order, c, r;
usr.sbin/yppoll/yppoll.c
136
while ((c = getopt(argc, argv, "h:d:")) != -1)
usr.sbin/yppoll/yppoll.c
137
switch (c) {
usr.sbin/ypset/ypset.c
116
int c;
usr.sbin/ypset/ypset.c
124
while ((c = getopt(argc, argv, "h:d:")) != -1)
usr.sbin/ypset/ypset.c
125
switch (c) {
usr.sbin/zonectl/zonectl.c
378
int c;
usr.sbin/zonectl/zonectl.c
394
while ((c = getopt(argc, argv, "ac:d:hl:o:P:?")) != -1) {
usr.sbin/zonectl/zonectl.c
395
switch (c) {