Symbol: b
bin/cat/cat.c
48
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
bin/csh/csh.h
221
#define SEEKEQ(a, b) ((a)->type == (b)->type && \
bin/csh/csh.h
222
(a)->f_seek == (b)->f_seek && \
bin/csh/csh.h
223
(a)->a_seek == (b)->a_seek)
bin/csh/csh.h
79
#define eq(a, b) (Strcmp(a, b) == 0)
bin/csh/exec.c
83
#define hash(a, b) (((a) * HSHMUL + (b)) & HSHMASK)
bin/csh/exec.c
84
#define bit(h, b) ((h)[(b) >> 3] & 1 << ((b) & 7)) /* bit test */
bin/csh/exec.c
85
#define bis(h, b) ((h)[(b) >> 3] |= 1 << ((b) & 7)) /* bit set */
bin/csh/glob.c
100
*b = EOS;
bin/csh/glob.c
108
b = &gstart[Strlen(gstart)];
bin/csh/glob.c
110
*b++ = *s++;
bin/csh/glob.c
111
*b = EOS;
bin/csh/glob.c
220
Char *b;
bin/csh/glob.c
226
if ((b = Strchr(s, '{')) != NULL) {
bin/csh/glob.c
230
if ((len = globbrace(s, b, &bl)) < 0) {
bin/csh/glob.c
874
sortscmp(const void *a, const void *b)
bin/csh/glob.c
879
return (b ? 1 : 0);
bin/csh/glob.c
880
if (!b)
bin/csh/glob.c
884
return (*(Char **)b ? 1 : 0);
bin/csh/glob.c
885
if (!*(Char **)b)
bin/csh/glob.c
889
return ((int) strcoll(buf, short2str(*(Char **)b)));
bin/csh/glob.c
91
Char gbuf[PATH_MAX], *gstart, *b, *u, *e;
bin/csh/glob.c
96
for (b = gstart, e = &gbuf[PATH_MAX - 1];
bin/csh/glob.c
97
*s && *s != '/' && *s != ':' && b < e;
bin/csh/glob.c
98
*b++ = *s++)
bin/csh/time.c
114
struct timespec *b)
bin/csh/time.c
126
(e->tv_sec - b->tv_sec) * 100 + (e->tv_nsec - b->tv_nsec) / 10000000;
bin/dd/args.c
176
c_arg(const void *a, const void *b)
bin/dd/args.c
179
return (strcmp(((struct arg *)a)->name, ((struct arg *)b)->name));
bin/dd/conv.c
46
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
bin/dd/dd.c
60
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
bin/ed/ed.h
108
#define REALLOC(b,n,i,err) \
bin/ed/ed.h
113
if ((ts = realloc((b), ti += max((i), MINBUFSZ))) == NULL) { \
bin/ed/ed.h
120
(b) = ts; \
bin/ed/ed.h
75
# define max(a,b) ((a) > (b) ? (a) : (b))
bin/ed/ed.h
78
# define min(a,b) ((a) < (b) ? (a) : (b))
bin/ksh/edit.c
487
const struct path_order_info *b = (const struct path_order_info *) bb;
bin/ksh/edit.c
490
t = strcmp(a->word + a->base, b->word + b->base);
bin/ksh/edit.c
491
return t ? t : a->path_order - b->path_order;
bin/ksh/misc.c
1130
char *b;
bin/ksh/misc.c
1138
b = alloc(bsize, ATEMP);
bin/ksh/misc.c
1140
b = buf;
bin/ksh/misc.c
1142
ret = getcwd(b, bsize);
bin/ksh/misc.c
1146
ret = aresize(b, strlen(b) + 1, ATEMP);
bin/ksh/misc.c
1148
afree(b, ATEMP);
bin/ksh/vi.c
1323
yank_range(int a, int b)
bin/ksh/vi.c
1325
yanklen = b - a;
bin/ksh/vi.c
1493
del_range(int a, int b)
bin/ksh/vi.c
1495
if (es->linelen != b)
bin/ksh/vi.c
1496
memmove(&es->cbuf[a], &es->cbuf[b], es->linelen - b);
bin/ksh/vi.c
1497
es->linelen -= b - a;
bin/ls/cmp.c
103
revacccmp(const FTSENT *a, const FTSENT *b)
bin/ls/cmp.c
105
if (b->fts_statp->st_atime > a->fts_statp->st_atime)
bin/ls/cmp.c
107
else if (b->fts_statp->st_atime < a->fts_statp->st_atime)
bin/ls/cmp.c
109
else if (b->fts_statp->st_atim.tv_nsec > a->fts_statp->st_atim.tv_nsec)
bin/ls/cmp.c
111
else if (b->fts_statp->st_atim.tv_nsec < a->fts_statp->st_atim.tv_nsec)
bin/ls/cmp.c
114
return (revnamecmp(a, b));
bin/ls/cmp.c
118
statcmp(const FTSENT *a, const FTSENT *b)
bin/ls/cmp.c
120
if (b->fts_statp->st_ctime > a->fts_statp->st_ctime)
bin/ls/cmp.c
122
else if (b->fts_statp->st_ctime < a->fts_statp->st_ctime)
bin/ls/cmp.c
124
else if (b->fts_statp->st_ctim.tv_nsec > a->fts_statp->st_ctim.tv_nsec)
bin/ls/cmp.c
126
else if (b->fts_statp->st_ctim.tv_nsec < a->fts_statp->st_ctim.tv_nsec)
bin/ls/cmp.c
129
return (namecmp(a, b));
bin/ls/cmp.c
133
revstatcmp(const FTSENT *a, const FTSENT *b)
bin/ls/cmp.c
135
if (b->fts_statp->st_ctime > a->fts_statp->st_ctime)
bin/ls/cmp.c
137
else if (b->fts_statp->st_ctime < a->fts_statp->st_ctime)
bin/ls/cmp.c
139
else if (b->fts_statp->st_ctim.tv_nsec > a->fts_statp->st_ctim.tv_nsec)
bin/ls/cmp.c
141
else if (b->fts_statp->st_ctim.tv_nsec < a->fts_statp->st_ctim.tv_nsec)
bin/ls/cmp.c
144
return (revnamecmp(a, b));
bin/ls/cmp.c
148
sizecmp(const FTSENT *a, const FTSENT *b)
bin/ls/cmp.c
150
if (b->fts_statp->st_size > a->fts_statp->st_size)
bin/ls/cmp.c
152
if (b->fts_statp->st_size < a->fts_statp->st_size)
bin/ls/cmp.c
155
return (namecmp(a, b));
bin/ls/cmp.c
159
revsizecmp(const FTSENT *a, const FTSENT *b)
bin/ls/cmp.c
161
if (b->fts_statp->st_size > a->fts_statp->st_size)
bin/ls/cmp.c
163
if (b->fts_statp->st_size < a->fts_statp->st_size)
bin/ls/cmp.c
166
return (revnamecmp(a, b));
bin/ls/cmp.c
46
namecmp(const FTSENT *a, const FTSENT *b)
bin/ls/cmp.c
48
return (strcmp(a->fts_name, b->fts_name));
bin/ls/cmp.c
52
revnamecmp(const FTSENT *a, const FTSENT *b)
bin/ls/cmp.c
54
return (strcmp(b->fts_name, a->fts_name));
bin/ls/cmp.c
58
modcmp(const FTSENT *a, const FTSENT *b)
bin/ls/cmp.c
60
if (b->fts_statp->st_mtime > a->fts_statp->st_mtime)
bin/ls/cmp.c
62
else if (b->fts_statp->st_mtime < a->fts_statp->st_mtime)
bin/ls/cmp.c
64
else if (b->fts_statp->st_mtim.tv_nsec > a->fts_statp->st_mtim.tv_nsec)
bin/ls/cmp.c
66
else if (b->fts_statp->st_mtim.tv_nsec < a->fts_statp->st_mtim.tv_nsec)
bin/ls/cmp.c
69
return (namecmp(a, b));
bin/ls/cmp.c
73
revmodcmp(const FTSENT *a, const FTSENT *b)
bin/ls/cmp.c
75
if (b->fts_statp->st_mtime > a->fts_statp->st_mtime)
bin/ls/cmp.c
77
else if (b->fts_statp->st_mtime < a->fts_statp->st_mtime)
bin/ls/cmp.c
79
else if (b->fts_statp->st_mtim.tv_nsec > a->fts_statp->st_mtim.tv_nsec)
bin/ls/cmp.c
81
else if (b->fts_statp->st_mtim.tv_nsec < a->fts_statp->st_mtim.tv_nsec)
bin/ls/cmp.c
84
return (revnamecmp(a, b));
bin/ls/cmp.c
88
acccmp(const FTSENT *a, const FTSENT *b)
bin/ls/cmp.c
90
if (b->fts_statp->st_atime > a->fts_statp->st_atime)
bin/ls/cmp.c
92
else if (b->fts_statp->st_atime < a->fts_statp->st_atime)
bin/ls/cmp.c
94
else if (b->fts_statp->st_atim.tv_nsec > a->fts_statp->st_atim.tv_nsec)
bin/ls/cmp.c
96
else if (b->fts_statp->st_atim.tv_nsec < a->fts_statp->st_atim.tv_nsec)
bin/ls/cmp.c
99
return (namecmp(a, b));
bin/ls/ls.c
600
mastercmp(const FTSENT **a, const FTSENT **b)
bin/ls/ls.c
607
b_info = (*b)->fts_info;
bin/ls/ls.c
617
return (namecmp(*a, *b));
bin/ls/ls.c
627
return (sortfcn(*a, *b));
bin/md5/md5.c
53
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
bin/md5/md5.c
54
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
bin/pax/pax.h
245
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
bin/ps/keyword.c
288
vcmp(const void *a, const void *b)
bin/ps/keyword.c
290
return (strcmp(((VAR *)a)->name, ((VAR *)b)->name));
bin/ps/print.c
65
#define MINIMUM(a,b) ((a) < (b) ? (a) : (b))
bin/rm/rm.c
49
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
bin/stty/cchar.c
83
c_cchar(const void *a, const void *b)
bin/stty/cchar.c
85
return (strcmp(((struct cchar *)a)->name, ((struct cchar *)b)->name));
bin/stty/key.c
102
c_key(const void *a, const void *b)
bin/stty/key.c
105
return (strcmp(((struct key *)a)->name, ((struct key *)b)->name));
distrib/special/more/curses.h
294
#define min(a,b) (a < b ? a : b)
distrib/special/more/curses.h
295
#define max(a,b) (a > b ? a : b)
games/adventure/hdr.h
166
#define DECR(a,b,c,d,e) decr(*#a-'+',*#b-'-',*#c-'#',*#d-'&',*#e-'%')
games/adventure/init.c
117
bird = vocab(DECR(b,i,r,d,\0),1, 0);
games/adventure/init.c
122
tablet= vocab(DECR(t,a,b,l,e), 1, 0);
games/adventure/init.c
129
bottle= vocab(DECR(b,o,t,t,l), 1, 0);
games/adventure/init.c
140
bear = vocab(DECR(b,e,a,r,\0),1, 0);
games/adventure/init.c
143
batter= vocab(DECR(b,a,t,t,e), 1, 0);
games/adventure/init.c
157
back = vocab(DECR(b,a,c,k,\0),0, 0);
games/adventure/init.c
65
decr(char a, char b, char c, char d, char e)
games/adventure/init.c
70
buf[1] = b + '-';
games/atc/log.c
64
const SCORE *a, *b;
games/atc/log.c
67
b = (const SCORE *)vb;
games/atc/log.c
68
if (b->planes == a->planes)
games/atc/log.c
69
return (b->time - a->time);
games/atc/log.c
71
return (b->planes - a->planes);
games/backgammon/backgammon/extra.c
174
freemen(int b)
games/backgammon/backgammon/extra.c
179
if (board[b] == 0)
games/backgammon/backgammon/extra.c
181
inc = (b == 0 ? 1 : -1);
games/backgammon/backgammon/extra.c
182
lim = (b == 0 ? 7 : 18);
games/backgammon/backgammon/extra.c
183
for (i = b + inc; i != lim; i += inc)
games/backgammon/backgammon/extra.c
185
odds(abs(b - i), 0, abs(board[b]));
games/backgammon/backgammon/extra.c
186
if (abs(board[b]) == 1)
games/backgammon/backgammon/move.c
252
bcomp(struct BOARD *a, struct BOARD *b)
games/backgammon/backgammon/move.c
255
int *bloc = b->b_board; /* pointer to board b */
games/backgammon/common_source/fancy.c
121
bsect(int b, int rpos, int cpos, int cnext)
games/backgammon/common_source/fancy.c
129
n = abs(b); /* initialize n and pc */
games/backgammon/common_source/fancy.c
130
pc = (b > 0 ? 'r' : 'w');
games/backgammon/common_source/odds.c
101
if (j == b && menstuck > 1)
games/backgammon/common_source/odds.c
73
int j, k, b;
games/backgammon/common_source/odds.c
80
b = 25;
games/backgammon/common_source/odds.c
83
b = 0;
games/backgammon/common_source/odds.c
85
place = abs(25 - b - i);
games/backgammon/common_source/odds.c
86
menstuck = abs(board[b]);
games/backgammon/common_source/odds.c
87
for (j = b; j != i; j += a) {
games/backgammon/common_source/odds.c
90
addon = place + ((board[j] * a > 2 || j == b) ? 5 : 0);
games/backgammon/common_source/odds.c
91
if ((j == b && menstuck == 1) ||
games/backgammon/common_source/odds.c
92
(j != b && menstuck == 0))
games/backgammon/common_source/odds.c
98
if ((j == b || menstuck < 2) && diff < 7)
games/backgammon/teachgammon/ttext2.c
121
char b;
games/backgammon/teachgammon/ttext2.c
137
if ((b = readc()) == '?') {
games/backgammon/teachgammon/ttext2.c
144
if (b == '\n')
games/backgammon/teachgammon/ttext2.c
147
if (b == opts[i])
games/backgammon/teachgammon/ttext2.c
157
b = readc();
games/battlestar/extern.h
41
#define max(a,b) ((a) < (b) ? (b) : (a))
games/boggle/boggle/bog.c
585
newgame(char *b)
games/boggle/boggle/bog.c
606
if (b == NULL) {
games/boggle/boggle/bog.c
630
board[i] = b[i];
games/boggle/boggle/mach.c
587
showboard(char *b)
games/boggle/boggle/mach.c
589
tty_showboard(b);
games/boggle/boggle/mach.c
681
tty_showboard(char *b)
games/boggle/boggle/mach.c
693
ch = SEVENBIT(b[i]);
games/boggle/boggle/mach.c
694
if (HISET(b[i]))
games/boggle/boggle/mach.c
700
if (HISET(b[i]))
games/boggle/boggle/prtable.c
68
int a, b, cols, loc, maxlen, nrows, z;
games/boggle/boggle/prtable.c
82
b = c = z = loc = 0;
games/boggle/boggle/prtable.c
85
if (c >= a + b)
games/boggle/boggle/prtable.c
92
b += nrows;
games/boggle/boggle/prtable.c
95
if (c >= a + b)
games/bs/bs.c
340
placeship(int b, ship_t *ss, int vis)
games/bs/bs.c
349
board[b][newx][newy] = ss->symbol;
games/bs/bs.c
367
randomplace(int b, ship_t *ss)
games/bs/bs.c
374
(!checkplace(b, ss, FALSE));
games/bs/bs.c
675
collidecheck(int b, int y, int x)
games/bs/bs.c
680
if ((collide = IS_SHIP(board[b][x][y])) != 0)
games/bs/bs.c
695
collide += IS_SHIP(board[b][xend][yend]);
games/bs/bs.c
702
checkplace(int b, ship_t *ss, int vis)
games/bs/bs.c
729
if(collidecheck(b, ss->y+l*yincr[ss->dir], ss->x+l*xincr[ss->dir]))
games/canfield/canfield/canfield.c
547
removecard(int a, int b)
games/canfield/canfield/canfield.c
549
move(b, a);
games/canfield/canfield/canfield.c
557
printrank(int a, int b, const struct cardtype *cp, bool inverse)
games/canfield/canfield/canfield.c
559
move(b, a);
games/canfield/canfield/canfield.c
589
printcard(int a, int b, const struct cardtype *cp)
games/canfield/canfield/canfield.c
592
removecard(a, b);
games/canfield/canfield/canfield.c
594
move(b, a);
games/canfield/canfield/canfield.c
599
printrank(a, b, cp, inverse);
games/cribbage/cards.c
75
eq(CARD a, CARD b)
games/cribbage/cards.c
77
return ((a.rank == b.rank) && (a.suit == b.suit));
games/cribbage/cards.c
84
isone(CARD a, CARD b[], int n)
games/cribbage/cards.c
89
if (eq(a, b[i]))
games/gomoku/bdinit.c
187
s = 5 + sp1->s_fval[BLACK][r].c.b;
games/gomoku/gomoku.h
150
u_char b; /* # moves to win */
games/gomoku/gomoku.h
153
u_char b; /* # moves to win */
games/gomoku/makemove.c
104
val = weight[5 - cp->c.a - cp->c.b];
games/gomoku/makemove.c
109
val += weight[5 - cp->c.a - cp->c.b];
games/gomoku/makemove.c
144
cp->c.b = 1;
games/gomoku/makemove.c
147
cp->c.b = 0;
games/gomoku/makemove.c
185
if (cp->c.b) {
games/gomoku/makemove.c
187
cp->c.b = 0;
games/gomoku/makemove.c
190
if (cp->c.b) {
games/gomoku/makemove.c
192
cp->c.b = 0;
games/gomoku/makemove.c
213
int a, b, bmask, bmask1;
games/gomoku/makemove.c
246
for (b = i - f; b < 5; b++, sp += d) {
games/gomoku/makemove.c
252
b = sp2->s_frame[r] - frames;
games/gomoku/makemove.c
255
str[b] &= 0xA;
games/gomoku/makemove.c
256
overlap[b * FAREA + a] &= 0xC;
games/gomoku/makemove.c
257
intersect[a * FAREA + b] = n = sp - board;
games/gomoku/makemove.c
258
intersect[b * FAREA + a] = n;
games/gomoku/makemove.c
260
str[b] = 0;
games/gomoku/makemove.c
261
overlap[b * FAREA + a] = 0;
games/gomoku/makemove.c
265
str[b] &= 0xAF;
games/gomoku/makemove.c
266
overlap[b * FAREA + a] &= 0xCF;
games/gomoku/makemove.c
268
str[b] &= 0xF;
games/gomoku/makemove.c
269
overlap[b * FAREA + a] &= 0xF;
games/gomoku/makemove.c
271
intersect[a * FAREA + b] = n = esp - board;
games/gomoku/makemove.c
272
intersect[b * FAREA + a] = n;
games/gomoku/makemove.c
287
b = sp->s_frame[r1] - frames;
games/gomoku/makemove.c
288
str[b] = 0;
games/gomoku/makemove.c
289
overlap[b * FAREA + a] = 0;
games/gomoku/pickmove.c
1077
i = cb.c.b ? 2 : 0;
games/gomoku/pickmove.c
1116
if (cb.c.b &&
games/gomoku/pickmove.c
1166
if (cb.c.b &&
games/gomoku/pickmove.c
1432
s = ep->e_fval.c.b ? 6 : 5;
games/gomoku/pickmove.c
152
Tcp->c.a + Tcp->c.b < Ocp->c.a + Ocp->c.b))
games/gomoku/pickmove.c
236
for (i = 5 + cb.c.b; --i >= 0; sp += d) {
games/gomoku/pickmove.c
256
if (cp->c.b) {
games/gomoku/pickmove.c
262
cb.c.b = 0;
games/gomoku/pickmove.c
413
baseB = ocb.c.a + ocb.c.b - 1;
games/gomoku/pickmove.c
415
emask = fcnt ? ((ocb.c.b ? 0x1E : 0x1F) & ~(1 << off)) : 0;
games/gomoku/pickmove.c
44
#define BIT_SET(a, b) ((a)[(b)/BITS_PER_INT] |= (1 << ((b) % BITS_PER_INT)))
games/gomoku/pickmove.c
445
if (f == 0 && (fcb.c.b || fcb.s == 0x101)) {
games/gomoku/pickmove.c
447
fcb.c.b = 0;
games/gomoku/pickmove.c
45
#define BIT_CLR(a, b) ((a)[(b)/BITS_PER_INT] &= ~(1 << ((b) % BITS_PER_INT)))
games/gomoku/pickmove.c
454
n = fcb.c.a + fcb.c.b - 1;
games/gomoku/pickmove.c
46
#define BIT_TEST(a, b) ((a)[(b)/BITS_PER_INT] & (1 << ((b) % BITS_PER_INT)))
games/gomoku/pickmove.c
472
ncbp->c_combo.c.b = n;
games/gomoku/pickmove.c
483
ncbp->c_flg = (ocb.c.b) ? C_OPEN_0 : 0;
games/gomoku/pickmove.c
484
if (fcb.c.b)
games/gomoku/pickmove.c
490
((fcb.c.b ? 0x1E : 0x1F) & ~(1 << f)) : 0;
games/gomoku/pickmove.c
585
if (fcb.c.b) {
games/gomoku/pickmove.c
587
cb.c.b = 0;
games/gomoku/pickmove.c
645
baseB = ocb.c.a + ocb.c.b - 1;
games/gomoku/pickmove.c
647
emask = fcnt ? ((ocb.c.b ? 0x1E : 0x1F) & ~(1 << off)) : 0;
games/gomoku/pickmove.c
691
n = ep->e_fval.c.a + ep->e_fval.c.b - 1;
games/gomoku/pickmove.c
708
ncbp->c_combo.c.b = n;
games/gomoku/pickmove.c
715
ncbp->c_flg = ocb.c.b ? C_OPEN_1 : 0;
games/gomoku/pickmove.c
956
cb.c.b = cbp->c_combo.c.b;
games/hack/hack.mklev.c
514
int a,b;
games/hack/hack.mklev.c
523
for(b = 0; b < nroom; b++)
games/hack/hack.mklev.c
524
if(smeq[a] != smeq[b])
games/hack/hack.mklev.c
525
join(a, b);
games/hack/hack.mklev.c
529
b = rn2(nroom-2);
games/hack/hack.mklev.c
530
if(b >= a) b += 2;
games/hack/hack.mklev.c
531
join(a, b);
games/hack/hack.mklev.c
536
join(int a, int b)
games/hack/hack.mklev.c
545
troom = &rooms[b];
games/hack/hack.mklev.c
670
if(smeq[a] < smeq[b])
games/hack/hack.mklev.c
671
smeq[b] = smeq[a];
games/hack/hack.mklev.c
673
smeq[a] = smeq[b];
games/hack/hack.shk.c
506
#define min(a,b) ((a<b)?a:b)
games/monop/execute.c
287
char *st, *a, *b;
games/monop/execute.c
381
if ((tl = strtol(a, &b, 10)) < 0 || tl >= 0x7FFFFFFF ||
games/monop/execute.c
382
b == a)
games/monop/execute.c
385
b = a;
games/sail/extern.h
62
#define min(a,b) ((a) < (b) ? (a) : (b))
games/sail/extern.h
68
#define grappled2(a, b) ((a)->file->grap[(b)->file->index].sn_count)
games/sail/extern.h
69
#define fouled2(a, b) ((a)->file->foul[(b)->file->index].sn_count)
games/sail/extern.h
70
#define snagged2(a, b) (grappled2(a, b) + fouled2(a, b))
games/sail/extern.h
72
#define Xgrappled2(a, b) ((a)->file->grap[(b)->file->index].sn_turn < turn-1 ? grappled2(a, b) : 0)
games/sail/extern.h
73
#define Xfouled2(a, b) ((a)->file->foul[(b)->file->index].sn_turn < turn-1 ? fouled2(a, b) : 0)
games/sail/extern.h
74
#define Xsnagged2(a, b) (Xgrappled2(a, b) + Xfouled2(a, b))
games/sail/extern.h
76
#define cleangrapple(a, b, c) Cleansnag(a, b, c, 1)
games/sail/extern.h
77
#define cleanfoul(a, b, c) Cleansnag(a, b, c, 2)
games/sail/extern.h
78
#define cleansnag(a, b, c) Cleansnag(a, b, c, 3)
games/sail/sync.c
173
Write(int type, struct ship *ship, long a, long b, long c, long d)
games/sail/sync.c
177
type, ship->file->index, a, b, c, d);
games/sail/sync.c
183
(void) sync_update(type, ship, NULL, a, b, c, d);
games/sail/sync.c
207
long a, b, c, d;
games/sail/sync.c
268
a = b = c = d = 0;
games/sail/sync.c
270
if (fscanf(sync_fp, "%ld%ld%ld%ld", &a, &b, &c, &d) != 4)
games/sail/sync.c
274
if (sync_update(type, SHIP(shipnum), astr, a, b, c, d) < 0)
games/sail/sync.c
301
sync_update(int type, struct ship *ship, const char *astr, long a, long b,
games/sail/sync.c
307
p->turnsent = b;
games/sail/sync.c
314
p->turnsent = b;
games/sail/sync.c
340
if (b) {
games/sail/sync.c
353
if (b) {
games/sail/sync.c
374
s->crew2 = b;
games/sail/sync.c
404
s->carL = b;
games/sail/sync.c
410
s->carR = b;
games/sail/sync.c
432
s->rig2 = b;
games/sail/sync.c
476
windspeed = b;
games/tetris/scores.c
229
const struct highscore *a, *b;
games/tetris/scores.c
233
b = y;
games/tetris/scores.c
234
l = (long)b->hs_level * b->hs_score - (long)a->hs_level * a->hs_score;
games/tetris/scores.c
239
if (a->hs_time < b->hs_time)
games/tetris/scores.c
241
if (a->hs_time > b->hs_time)
games/trek/kill.c
114
for (b = Now.base; ; b++)
games/trek/kill.c
115
if (qx == b->x && qy == b->y)
games/trek/kill.c
117
*b = Now.base[Now.bases];
games/trek/kill.c
97
struct xy *b;
games/trek/phaser.c
168
b = &bank[i];
games/trek/phaser.c
183
b->units = hit;
games/trek/phaser.c
187
b->angle = hit * 0.0174532925;
games/trek/phaser.c
188
b->spread = getfltpar("spread");
games/trek/phaser.c
189
if (b->spread < 0 || b->spread > 1)
games/trek/phaser.c
227
b = &bank[i];
games/trek/phaser.c
236
b->angle = atan2(dy, dx);
games/trek/phaser.c
237
b->spread = 0.0;
games/trek/phaser.c
238
b->units = ((n - i) / tot) * extra;
games/trek/phaser.c
243
i, hitreqd[i], b->units,
games/trek/phaser.c
247
extra -= b->units;
games/trek/phaser.c
248
hit = b->units - hitreqd[i];
games/trek/phaser.c
252
b->units -= hit;
games/trek/phaser.c
261
b = &bank[i];
games/trek/phaser.c
262
hit = hitreqd[i] - b->units;
games/trek/phaser.c
267
b->units += extra;
games/trek/phaser.c
271
b->units = hitreqd[i];
games/trek/phaser.c
285
b = &bank[i];
games/trek/phaser.c
286
printf("b%d u%d", i, b->units);
games/trek/phaser.c
287
if (b->units > 0)
games/trek/phaser.c
288
printf(" a%.2f s%.2f\n", b->angle, b->spread);
games/trek/phaser.c
299
b = &bank[i];
games/trek/phaser.c
300
if (b->units <= 0)
games/trek/phaser.c
309
if (b->units <= 0)
games/trek/phaser.c
341
distfactor *= ALPHA + b->spread;
games/trek/phaser.c
345
distfactor *= b->units;
games/trek/phaser.c
348
anglefactor = atan2(dy, dx) - b->angle;
games/trek/phaser.c
349
anglefactor = cos((anglefactor * b->spread) + GAMMA);
games/trek/phaser.c
361
b->units -= hit;
games/trek/phaser.c
92
struct banks *b;
games/wump/wump.c
555
gcd(int a, int b)
games/wump/wump.c
559
if (!(r = (a % b)))
games/wump/wump.c
560
return(b);
games/wump/wump.c
561
return(gcd(b, r));
games/wump/wump.c
857
int_compare(const void *a, const void *b)
games/wump/wump.c
859
return(*(const int *)a < *(const int *)b ? -1 : 1);
lib/libc/arch/sparc64/fpu/fpu_compare.c
101
b = &fe->fe_f2;
lib/libc/arch/sparc64/fpu/fpu_compare.c
103
if (ISNAN(a) || ISNAN(b)) {
lib/libc/arch/sparc64/fpu/fpu_compare.c
119
if (ISZERO(a) && ISZERO(b)) {
lib/libc/arch/sparc64/fpu/fpu_compare.c
124
if (!b->fp_sign) { /* b >= 0 (or if a = -0, b > 0) */
lib/libc/arch/sparc64/fpu/fpu_compare.c
129
if (b->fp_sign) { /* b <= -0 (or if a = +0, b < 0) */
lib/libc/arch/sparc64/fpu/fpu_compare.c
152
if (a->fp_class < b->fp_class) { /* |a| < |b| */
lib/libc/arch/sparc64/fpu/fpu_compare.c
156
if (a->fp_class > b->fp_class) { /* |a| > |b| */
lib/libc/arch/sparc64/fpu/fpu_compare.c
96
struct fpn *a, *b;
lib/libc/arch/sparc64/fpu/fpu_q.c
159
_Q_feq(long double a, long double b)
lib/libc/arch/sparc64/fpu/fpu_q.c
161
return (_Qp_feq(&a, &b));
lib/libc/arch/sparc64/fpu/fpu_q.c
165
_Q_fne(long double a, long double b)
lib/libc/arch/sparc64/fpu/fpu_q.c
167
return (_Qp_fne(&a, &b));
lib/libc/arch/sparc64/fpu/fpu_q.c
171
_Q_fge(long double a, long double b)
lib/libc/arch/sparc64/fpu/fpu_q.c
173
return (_Qp_fge(&a, &b));
lib/libc/arch/sparc64/fpu/fpu_q.c
177
_Q_fgt(long double a, long double b)
lib/libc/arch/sparc64/fpu/fpu_q.c
179
return (_Qp_fgt(&a, &b));
lib/libc/arch/sparc64/fpu/fpu_q.c
183
_Q_flt(long double a, long double b)
lib/libc/arch/sparc64/fpu/fpu_q.c
185
return (_Qp_flt(&a, &b));
lib/libc/arch/sparc64/fpu/fpu_q.c
189
_Q_fle(long double a, long double b)
lib/libc/arch/sparc64/fpu/fpu_q.c
191
return (_Qp_fle(&a, &b));
lib/libc/arch/sparc64/fpu/fpu_q.c
33
_Q_mul(long double a, long double b)
lib/libc/arch/sparc64/fpu/fpu_q.c
37
_Qp_mul(&c, &a, &b);
lib/libc/arch/sparc64/fpu/fpu_q.c
42
_Q_div(long double a, long double b)
lib/libc/arch/sparc64/fpu/fpu_q.c
46
_Qp_div(&c, &a, &b);
lib/libc/arch/sparc64/fpu/fpu_q.c
51
_Q_sub(long double a, long double b)
lib/libc/arch/sparc64/fpu/fpu_q.c
55
_Qp_sub(&c, &a, &b);
lib/libc/arch/sparc64/fpu/fpu_q.c
60
_Q_add(long double a, long double b)
lib/libc/arch/sparc64/fpu/fpu_q.c
64
_Qp_add(&c, &a, &b);
lib/libc/arch/sparc64/fpu/fpu_qp.c
141
int _Qp_ ## name(u_int *a, u_int *b) ; \
lib/libc/arch/sparc64/fpu/fpu_qp.c
144
_Qp_ ## name(u_int *a, u_int *b) \
lib/libc/arch/sparc64/fpu/fpu_qp.c
151
fe.fe_f2.fp_sign = b[0] >> 31; \
lib/libc/arch/sparc64/fpu/fpu_qp.c
153
fe.fe_f2.fp_class = __fpu_qtof(&fe.fe_f2, b[0], b[1], b[2], b[3]); \
lib/libc/arch/sparc64/fpu/fpu_qp.c
36
__dso_hidden void _Qp_ ## op(u_int *c, u_int *a, u_int *b); \
lib/libc/arch/sparc64/fpu/fpu_qp.c
39
_Qp_ ## op(u_int *c, u_int *a, u_int *b) \
lib/libc/arch/sparc64/fpu/fpu_qp.c
47
fe.fe_f2.fp_sign = b[0] >> 31; \
lib/libc/arch/sparc64/fpu/fpu_qp.c
49
fe.fe_f2.fp_class = __fpu_qtof(&fe.fe_f2, b[0], b[1], b[2], b[3]); \
lib/libc/asr/asr_debug.c
136
char b[256];
lib/libc/asr/asr_debug.c
139
print_dname(q->q_dname, b, sizeof b),
lib/libc/asr/getaddrinfo_async.c
62
#define MATCH_FAMILY(a, b) ((a) == matches[(b)].family || (a) == PF_UNSPEC)
lib/libc/asr/getaddrinfo_async.c
63
#define MATCH_PROTO(a, b) ((a) == matches[(b)].protocol || (a) == 0 || matches[(b)].protocol == 0)
lib/libc/asr/getaddrinfo_async.c
65
#define MATCH_SOCKTYPE(a, b) ((a) == matches[(b)].socktype || ((a) == 0 && \
lib/libc/asr/getaddrinfo_async.c
66
matches[(b)].socktype != SOCK_RAW))
lib/libc/crypt/arc4random.c
39
#define minimum(a, b) ((a) < (b) ? (a) : (b))
lib/libc/crypt/chacha_private.h
45
#define QUARTERROUND(a,b,c,d) \
lib/libc/crypt/chacha_private.h
46
a = PLUS(a,b); d = ROTATE(XOR(d,a),16); \
lib/libc/crypt/chacha_private.h
47
c = PLUS(c,d); b = ROTATE(XOR(b,c),12); \
lib/libc/crypt/chacha_private.h
48
a = PLUS(a,b); d = ROTATE(XOR(d,a), 8); \
lib/libc/crypt/chacha_private.h
49
c = PLUS(c,d); b = ROTATE(XOR(b,c), 7);
lib/libc/db/btree/bt_open.c
106
b = *openinfo;
lib/libc/db/btree/bt_open.c
109
if (b.flags & ~(R_DUP))
lib/libc/db/btree/bt_open.c
117
if (b.psize &&
lib/libc/db/btree/bt_open.c
118
(b.psize < MINPSIZE || b.psize > MAX_PAGE_OFFSET + 1 ||
lib/libc/db/btree/bt_open.c
119
b.psize & (sizeof(indx_t) - 1)))
lib/libc/db/btree/bt_open.c
123
if (b.minkeypage) {
lib/libc/db/btree/bt_open.c
124
if (b.minkeypage < 2)
lib/libc/db/btree/bt_open.c
127
b.minkeypage = DEFMINKEYPAGE;
lib/libc/db/btree/bt_open.c
130
if (b.compare == NULL) {
lib/libc/db/btree/bt_open.c
131
b.compare = __bt_defcmp;
lib/libc/db/btree/bt_open.c
132
if (b.prefix == NULL)
lib/libc/db/btree/bt_open.c
133
b.prefix = __bt_defpfx;
lib/libc/db/btree/bt_open.c
136
if (b.lorder == 0)
lib/libc/db/btree/bt_open.c
137
b.lorder = machine_lorder;
lib/libc/db/btree/bt_open.c
139
b.compare = __bt_defcmp;
lib/libc/db/btree/bt_open.c
140
b.cachesize = 0;
lib/libc/db/btree/bt_open.c
141
b.flags = 0;
lib/libc/db/btree/bt_open.c
142
b.lorder = machine_lorder;
lib/libc/db/btree/bt_open.c
143
b.minkeypage = DEFMINKEYPAGE;
lib/libc/db/btree/bt_open.c
144
b.prefix = __bt_defpfx;
lib/libc/db/btree/bt_open.c
145
b.psize = 0;
lib/libc/db/btree/bt_open.c
149
if (b.lorder != BIG_ENDIAN && b.lorder != LITTLE_ENDIAN)
lib/libc/db/btree/bt_open.c
156
t->bt_lorder = b.lorder;
lib/libc/db/btree/bt_open.c
158
t->bt_cmp = b.compare;
lib/libc/db/btree/bt_open.c
159
t->bt_pfx = b.prefix;
lib/libc/db/btree/bt_open.c
250
b.psize = m.psize;
lib/libc/db/btree/bt_open.c
259
if (b.psize == 0) {
lib/libc/db/btree/bt_open.c
260
b.psize = sb.st_blksize;
lib/libc/db/btree/bt_open.c
261
if (b.psize < MINPSIZE)
lib/libc/db/btree/bt_open.c
262
b.psize = MINPSIZE;
lib/libc/db/btree/bt_open.c
263
if (b.psize > MAX_PAGE_OFFSET + 1)
lib/libc/db/btree/bt_open.c
264
b.psize = MAX_PAGE_OFFSET + 1;
lib/libc/db/btree/bt_open.c
268
if (!(b.flags & R_DUP))
lib/libc/db/btree/bt_open.c
276
t->bt_psize = b.psize;
lib/libc/db/btree/bt_open.c
279
if (b.cachesize && b.cachesize & (b.psize - 1))
lib/libc/db/btree/bt_open.c
280
b.cachesize += (~b.cachesize & (b.psize - 1)) + 1;
lib/libc/db/btree/bt_open.c
281
if (b.cachesize < b.psize * MINCACHE)
lib/libc/db/btree/bt_open.c
282
b.cachesize = b.psize * MINCACHE;
lib/libc/db/btree/bt_open.c
285
ncache = (b.cachesize + t->bt_psize - 1) / t->bt_psize;
lib/libc/db/btree/bt_open.c
298
t->bt_ovflsize = (t->bt_psize - BTDATAOFF) / b.minkeypage -
lib/libc/db/btree/bt_open.c
89
BTREEINFO b;
lib/libc/db/btree/bt_overflow.c
42
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
lib/libc/db/btree/bt_split.c
181
b.size = bl->ksize;
lib/libc/db/btree/bt_split.c
182
b.data = bl->bytes;
lib/libc/db/btree/bt_split.c
183
nksize = t->bt_pfx(&a, &b);
lib/libc/db/btree/bt_split.c
78
DBT a, b;
lib/libc/db/btree/bt_utils.c
200
__bt_defcmp(const DBT *a, const DBT *b)
lib/libc/db/btree/bt_utils.c
211
len = MINIMUM(a->size, b->size);
lib/libc/db/btree/bt_utils.c
212
for (p1 = a->data, p2 = b->data; len--; ++p1, ++p2)
lib/libc/db/btree/bt_utils.c
215
return ((int)a->size - (int)b->size);
lib/libc/db/btree/bt_utils.c
229
__bt_defpfx(const DBT *a, const DBT *b)
lib/libc/db/btree/bt_utils.c
235
len = MINIMUM(a->size, b->size);
lib/libc/db/btree/bt_utils.c
236
for (p1 = a->data, p2 = b->data; len--; ++p1, ++p2, ++cnt)
lib/libc/db/btree/bt_utils.c
241
return (a->size < b->size ? a->size + 1 : a->size);
lib/libc/db/btree/bt_utils.c
42
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
lib/libc/db/hash/hash.c
52
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
lib/libc/db/hash/hash_bigkey.c
67
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
lib/libc/db/hash/hash_buf.c
66
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
lib/libc/dlfcn/init.c
38
#define MAX(a,b) (((a)>(b))?(a):(b))
lib/libc/gdtoa/dmisc.c
100
b->maxwds = 1 << (b->k = *(int*)b);
lib/libc/gdtoa/dmisc.c
101
Bfree(b);
lib/libc/gdtoa/dmisc.c
112
(b, S) Bigint *b, *S;
lib/libc/gdtoa/dmisc.c
114
(Bigint *b, Bigint *S)
lib/libc/gdtoa/dmisc.c
130
/*debug*/ if (b->wds > n)
lib/libc/gdtoa/dmisc.c
133
if (b->wds < n)
lib/libc/gdtoa/dmisc.c
137
bx = b->x;
lib/libc/gdtoa/dmisc.c
176
bx = b->x;
lib/libc/gdtoa/dmisc.c
179
b->wds = n;
lib/libc/gdtoa/dmisc.c
182
if (cmp(b, S) >= 0) {
lib/libc/gdtoa/dmisc.c
186
bx = b->x;
lib/libc/gdtoa/dmisc.c
216
bx = b->x;
lib/libc/gdtoa/dmisc.c
221
b->wds = n;
lib/libc/gdtoa/dmisc.c
99
Bigint *b = (Bigint *)((int *)s - 1);
lib/libc/gdtoa/dtoa.c
126
Bigint *b, *b1, *delta, *mlo, *mhi, *S;
lib/libc/gdtoa/dtoa.c
200
b = d2b(dval(&d), &be, &bbits);
lib/libc/gdtoa/dtoa.c
201
if (b == NULL)
lib/libc/gdtoa/dtoa.c
529
b1 = mult(mhi, b);
lib/libc/gdtoa/dtoa.c
532
Bfree(b);
lib/libc/gdtoa/dtoa.c
533
b = b1;
lib/libc/gdtoa/dtoa.c
536
b = pow5mult(b, j);
lib/libc/gdtoa/dtoa.c
537
if (b == NULL)
lib/libc/gdtoa/dtoa.c
542
b = pow5mult(b, b5);
lib/libc/gdtoa/dtoa.c
543
if (b == NULL)
lib/libc/gdtoa/dtoa.c
603
b = lshift(b, b2);
lib/libc/gdtoa/dtoa.c
604
if (b == NULL)
lib/libc/gdtoa/dtoa.c
613
if (cmp(b,S) < 0) {
lib/libc/gdtoa/dtoa.c
615
b = multadd(b, 10, 0); /* we botched the k estimate */
lib/libc/gdtoa/dtoa.c
616
if (b == NULL)
lib/libc/gdtoa/dtoa.c
630
if (ilim < 0 || cmp(b,S) <= 0) {
lib/libc/gdtoa/dtoa.c
664
dig = quorem(b,S) + '0';
lib/libc/gdtoa/dtoa.c
668
j = cmp(b, mlo);
lib/libc/gdtoa/dtoa.c
672
j1 = delta->sign ? 1 : cmp(b, delta);
lib/libc/gdtoa/dtoa.c
685
else if (!b->x[0] && b->wds <= 1)
lib/libc/gdtoa/dtoa.c
697
if (!b->x[0] && b->wds <= 1) {
lib/libc/gdtoa/dtoa.c
711
b = lshift(b, 1);
lib/libc/gdtoa/dtoa.c
712
if (b == NULL)
lib/libc/gdtoa/dtoa.c
714
j1 = cmp(b, S);
lib/libc/gdtoa/dtoa.c
746
b = multadd(b, 10, 0);
lib/libc/gdtoa/dtoa.c
747
if (b == NULL)
lib/libc/gdtoa/dtoa.c
766
*s++ = dig = quorem(b,S) + '0';
lib/libc/gdtoa/dtoa.c
767
if (!b->x[0] && b->wds <= 1) {
lib/libc/gdtoa/dtoa.c
775
b = multadd(b, 10, 0);
lib/libc/gdtoa/dtoa.c
776
if (b == NULL)
lib/libc/gdtoa/dtoa.c
788
b = lshift(b, 1);
lib/libc/gdtoa/dtoa.c
789
if (b == NULL)
lib/libc/gdtoa/dtoa.c
791
j = cmp(b, S);
lib/libc/gdtoa/dtoa.c
833
Bfree(b);
lib/libc/gdtoa/gdtoa.c
162
Bigint *b, *b1, *delta, *mlo, *mhi, *mhi1, *S;
lib/libc/gdtoa/gdtoa.c
190
b = bitstob(bits, nbits = fpi->nbits, &bbits);
lib/libc/gdtoa/gdtoa.c
191
if (b == NULL)
lib/libc/gdtoa/gdtoa.c
194
if ( (i = trailz(b)) !=0) {
lib/libc/gdtoa/gdtoa.c
195
rshift(b, i);
lib/libc/gdtoa/gdtoa.c
199
if (!b->wds) {
lib/libc/gdtoa/gdtoa.c
200
Bfree(b);
lib/libc/gdtoa/gdtoa.c
206
dval(&d) = b2d(b, &i);
lib/libc/gdtoa/gdtoa.c
42
Bigint *b;
lib/libc/gdtoa/gdtoa.c
55
b = Balloc(k);
lib/libc/gdtoa/gdtoa.c
552
b1 = mult(mhi, b);
lib/libc/gdtoa/gdtoa.c
555
Bfree(b);
lib/libc/gdtoa/gdtoa.c
556
b = b1;
lib/libc/gdtoa/gdtoa.c
559
b = pow5mult(b, j);
lib/libc/gdtoa/gdtoa.c
56
if (b == NULL)
lib/libc/gdtoa/gdtoa.c
560
if (b == NULL)
lib/libc/gdtoa/gdtoa.c
565
b = pow5mult(b, b5);
lib/libc/gdtoa/gdtoa.c
566
if (b == NULL)
lib/libc/gdtoa/gdtoa.c
59
x = x0 = b->x;
lib/libc/gdtoa/gdtoa.c
601
b = lshift(b, b2);
lib/libc/gdtoa/gdtoa.c
602
if (b == NULL)
lib/libc/gdtoa/gdtoa.c
611
if (cmp(b,S) < 0) {
lib/libc/gdtoa/gdtoa.c
613
b = multadd(b, 10, 0); /* we botched the k estimate */
lib/libc/gdtoa/gdtoa.c
614
if (b == NULL)
lib/libc/gdtoa/gdtoa.c
628
if (ilim < 0 || cmp(b,S) <= 0) {
lib/libc/gdtoa/gdtoa.c
664
dig = quorem(b,S) + '0';
lib/libc/gdtoa/gdtoa.c
668
j = cmp(b, mlo);
lib/libc/gdtoa/gdtoa.c
672
j1 = delta->sign ? 1 : cmp(b, delta);
lib/libc/gdtoa/gdtoa.c
679
if (b->wds > 1 || b->x[0])
lib/libc/gdtoa/gdtoa.c
69
b->wds = 0;
lib/libc/gdtoa/gdtoa.c
695
if (rdir && (b->wds > 1 || b->x[0])) {
lib/libc/gdtoa/gdtoa.c
708
b = multadd(b, 10, 0);
lib/libc/gdtoa/gdtoa.c
709
if (b == NULL)
lib/libc/gdtoa/gdtoa.c
711
dig = quorem(b,S) + '0';
lib/libc/gdtoa/gdtoa.c
719
b = lshift(b, 1);
lib/libc/gdtoa/gdtoa.c
720
if (b == NULL)
lib/libc/gdtoa/gdtoa.c
722
j1 = cmp(b, S);
lib/libc/gdtoa/gdtoa.c
73
b->wds = i + 1;
lib/libc/gdtoa/gdtoa.c
732
if (b->wds > 1 || b->x[0])
lib/libc/gdtoa/gdtoa.c
74
*bbits = i*ULbits + 32 - hi0bits(b->x[i]);
lib/libc/gdtoa/gdtoa.c
752
b = multadd(b, 10, 0);
lib/libc/gdtoa/gdtoa.c
753
if (b == NULL)
lib/libc/gdtoa/gdtoa.c
76
return b;
lib/libc/gdtoa/gdtoa.c
772
*s++ = dig = quorem(b,S) + '0';
lib/libc/gdtoa/gdtoa.c
775
b = multadd(b, 10, 0);
lib/libc/gdtoa/gdtoa.c
776
if (b == NULL)
lib/libc/gdtoa/gdtoa.c
783
if (rdir == 2 || (b->wds <= 1 && !b->x[0]))
lib/libc/gdtoa/gdtoa.c
787
b = lshift(b, 1);
lib/libc/gdtoa/gdtoa.c
788
if (b == NULL)
lib/libc/gdtoa/gdtoa.c
790
j = cmp(b, S);
lib/libc/gdtoa/gdtoa.c
809
if (b->wds > 1 || b->x[0])
lib/libc/gdtoa/gdtoa.c
822
Bfree(b);
lib/libc/gdtoa/gdtoaimp.h
293
#define Storeinc(a,b,c) (((unsigned short *)a)[1] = (unsigned short)b, \
lib/libc/gdtoa/gdtoaimp.h
296
#define Storeinc(a,b,c) (((unsigned short *)a)[0] = (unsigned short)b, \
lib/libc/gdtoa/gdtoaimp.h
409
#define rounded_product(a,b) a = rnd_prod(a, b)
lib/libc/gdtoa/gdtoaimp.h
410
#define rounded_quotient(a,b) a = rnd_quot(a, b)
lib/libc/gdtoa/gdtoaimp.h
417
#define rounded_product(a,b) a *= b
lib/libc/gdtoa/gdtoaimp.h
418
#define rounded_quotient(a,b) a /= b
lib/libc/gdtoa/gethex.c
166
b = Balloc(0);
lib/libc/gdtoa/gethex.c
167
if (b == NULL)
lib/libc/gdtoa/gethex.c
169
b->wds = 1;
lib/libc/gdtoa/gethex.c
170
b->x[0] = 1;
lib/libc/gdtoa/gethex.c
191
*bp = b = Balloc(k);
lib/libc/gdtoa/gethex.c
194
b->wds = n;
lib/libc/gdtoa/gethex.c
196
b->x[j] = ALL_ON;
lib/libc/gdtoa/gethex.c
198
b->x[j] = ULbits >> (ULbits - (nbits & kmask));
lib/libc/gdtoa/gethex.c
205
b = Balloc(k);
lib/libc/gdtoa/gethex.c
206
if (b == NULL)
lib/libc/gdtoa/gethex.c
208
x = b->x;
lib/libc/gdtoa/gethex.c
233
b->wds = n = x - b->x;
lib/libc/gdtoa/gethex.c
237
x = b->x;
lib/libc/gdtoa/gethex.c
240
if (any_on(b,n)) {
lib/libc/gdtoa/gethex.c
245
if (k > 0 && any_on(b,k))
lib/libc/gdtoa/gethex.c
249
rshift(b, n);
lib/libc/gdtoa/gethex.c
254
b = lshift(b, n);
lib/libc/gdtoa/gethex.c
255
if (b == NULL)
lib/libc/gdtoa/gethex.c
258
x = b->x;
lib/libc/gdtoa/gethex.c
262
Bfree(b);
lib/libc/gdtoa/gethex.c
276
if (n == nbits && (n < 2 || any_on(b,n-1)))
lib/libc/gdtoa/gethex.c
286
x[0] = b->wds = 1;
lib/libc/gdtoa/gethex.c
288
*bp = b;
lib/libc/gdtoa/gethex.c
297
Bfree(b);
lib/libc/gdtoa/gethex.c
308
lostbits = any_on(b,k);
lib/libc/gdtoa/gethex.c
312
rshift(b,n);
lib/libc/gdtoa/gethex.c
332
k = b->wds;
lib/libc/gdtoa/gethex.c
333
b = increment(b);
lib/libc/gdtoa/gethex.c
334
if (b == NULL)
lib/libc/gdtoa/gethex.c
336
x = b->x;
lib/libc/gdtoa/gethex.c
342
else if (b->wds > k
lib/libc/gdtoa/gethex.c
345
rshift(b,1);
lib/libc/gdtoa/gethex.c
354
*bp = b;
lib/libc/gdtoa/gethex.c
46
Bigint *b;
lib/libc/gdtoa/gmisc.c
36
rshift(b, k) Bigint *b; int k;
lib/libc/gdtoa/gmisc.c
38
rshift(Bigint *b, int k)
lib/libc/gdtoa/gmisc.c
44
x = x1 = b->x;
lib/libc/gdtoa/gmisc.c
46
if (n < b->wds) {
lib/libc/gdtoa/gmisc.c
47
xe = x + b->wds;
lib/libc/gdtoa/gmisc.c
63
if ((b->wds = x1 - b->x) == 0)
lib/libc/gdtoa/gmisc.c
64
b->x[0] = 0;
lib/libc/gdtoa/gmisc.c
69
trailz(b) Bigint *b;
lib/libc/gdtoa/gmisc.c
71
trailz(Bigint *b)
lib/libc/gdtoa/gmisc.c
77
x = b->x;
lib/libc/gdtoa/gmisc.c
78
xe = x + b->wds;
lib/libc/gdtoa/misc.c
169
(b, m, a) Bigint *b; int m, a;
lib/libc/gdtoa/misc.c
171
(Bigint *b, int m, int a) /* multiply by m and add a */
lib/libc/gdtoa/misc.c
186
wds = b->wds;
lib/libc/gdtoa/misc.c
187
x = b->x;
lib/libc/gdtoa/misc.c
211
if (wds >= b->maxwds) {
lib/libc/gdtoa/misc.c
212
b1 = Balloc(b->k+1);
lib/libc/gdtoa/misc.c
215
Bcopy(b1, b);
lib/libc/gdtoa/misc.c
216
Bfree(b);
lib/libc/gdtoa/misc.c
217
b = b1;
lib/libc/gdtoa/misc.c
219
b->x[wds++] = carry;
lib/libc/gdtoa/misc.c
220
b->wds = wds;
lib/libc/gdtoa/misc.c
222
return b;
lib/libc/gdtoa/misc.c
267
Bigint *b;
lib/libc/gdtoa/misc.c
269
b = Balloc(1);
lib/libc/gdtoa/misc.c
270
if (b == NULL)
lib/libc/gdtoa/misc.c
272
b->x[0] = i;
lib/libc/gdtoa/misc.c
273
b->wds = 1;
lib/libc/gdtoa/misc.c
274
return b;
lib/libc/gdtoa/misc.c
280
(a, b) Bigint *a, *b;
lib/libc/gdtoa/misc.c
282
(Bigint *a, Bigint *b)
lib/libc/gdtoa/misc.c
298
if (a->wds < b->wds) {
lib/libc/gdtoa/misc.c
300
a = b;
lib/libc/gdtoa/misc.c
301
b = c;
lib/libc/gdtoa/misc.c
305
wb = b->wds;
lib/libc/gdtoa/misc.c
316
xb = b->x;
lib/libc/gdtoa/misc.c
394
(b, k) Bigint *b; int k;
lib/libc/gdtoa/misc.c
396
(Bigint *b, int k)
lib/libc/gdtoa/misc.c
404
b = multadd(b, p05[i-1], 0);
lib/libc/gdtoa/misc.c
405
if (b == NULL)
lib/libc/gdtoa/misc.c
410
return b;
lib/libc/gdtoa/misc.c
431
b1 = mult(b, p5);
lib/libc/gdtoa/misc.c
434
Bfree(b);
lib/libc/gdtoa/misc.c
435
b = b1;
lib/libc/gdtoa/misc.c
458
return b;
lib/libc/gdtoa/misc.c
464
(b, k) Bigint *b; int k;
lib/libc/gdtoa/misc.c
466
(Bigint *b, int k)
lib/libc/gdtoa/misc.c
474
k1 = b->k;
lib/libc/gdtoa/misc.c
475
n1 = n + b->wds + 1;
lib/libc/gdtoa/misc.c
476
for(i = b->maxwds; n1 > i; i <<= 1)
lib/libc/gdtoa/misc.c
484
x = b->x;
lib/libc/gdtoa/misc.c
485
xe = x + b->wds;
lib/libc/gdtoa/misc.c
513
Bfree(b);
lib/libc/gdtoa/misc.c
520
(a, b) Bigint *a, *b;
lib/libc/gdtoa/misc.c
522
(Bigint *a, Bigint *b)
lib/libc/gdtoa/misc.c
529
j = b->wds;
lib/libc/gdtoa/misc.c
533
if (j > 1 && !b->x[j-1])
lib/libc/gdtoa/misc.c
540
xb0 = b->x;
lib/libc/gdtoa/misc.c
554
(a, b) Bigint *a, *b;
lib/libc/gdtoa/misc.c
556
(Bigint *a, Bigint *b)
lib/libc/gdtoa/misc.c
571
i = cmp(a,b);
lib/libc/gdtoa/misc.c
582
a = b;
lib/libc/gdtoa/misc.c
583
b = c;
lib/libc/gdtoa/misc.c
595
wb = b->wds;
lib/libc/gdtoa/misc.c
596
xb = b->x;
lib/libc/gdtoa/misc.c
726
Bigint *b;
lib/libc/gdtoa/misc.c
746
b = Balloc(1);
lib/libc/gdtoa/misc.c
748
b = Balloc(2);
lib/libc/gdtoa/misc.c
750
if (b == NULL)
lib/libc/gdtoa/misc.c
752
x = b->x;
lib/libc/gdtoa/misc.c
776
b->wds = (x[1] = z) !=0 ? 2 : 1;
lib/libc/gdtoa/misc.c
784
b->wds = 1;
lib/libc/gdtoa/misc.c
830
b->wds = i + 1;
lib/libc/gdtoa/misc.c
853
return b;
lib/libc/gdtoa/misc.c
887
strcp_D2A(a, b) char *a; char *b;
lib/libc/gdtoa/misc.c
889
strcp_D2A(char *a, CONST char *b)
lib/libc/gdtoa/misc.c
892
while((*a = *b++))
lib/libc/gdtoa/misc.c
899
memcpy_D2A(a, b, len) Char *a; Char *b; size_t len;
lib/libc/gdtoa/misc.c
905
char *b = (char*)b1, *a0 = a;
lib/libc/gdtoa/misc.c
907
*a++ = *b++;
lib/libc/gdtoa/smisc.c
145
copybits(c, n, b) ULong *c; int n; Bigint *b;
lib/libc/gdtoa/smisc.c
147
copybits(ULong *c, int n, Bigint *b)
lib/libc/gdtoa/smisc.c
156
x = b->x;
lib/libc/gdtoa/smisc.c
158
xe = x + b->wds;
lib/libc/gdtoa/smisc.c
162
nw = b->wds;
lib/libc/gdtoa/smisc.c
175
any_on(b, k) Bigint *b; int k;
lib/libc/gdtoa/smisc.c
177
any_on(Bigint *b, int k)
lib/libc/gdtoa/smisc.c
183
x = b->x;
lib/libc/gdtoa/smisc.c
184
nwds = b->wds;
lib/libc/gdtoa/smisc.c
42
Bigint *b;
lib/libc/gdtoa/smisc.c
49
b = Balloc(k);
lib/libc/gdtoa/smisc.c
50
if (b == NULL)
lib/libc/gdtoa/smisc.c
52
b->x[0] = y9;
lib/libc/gdtoa/smisc.c
53
b->wds = 1;
lib/libc/gdtoa/smisc.c
55
b = Balloc(k+1);
lib/libc/gdtoa/smisc.c
56
if (b == NULL)
lib/libc/gdtoa/smisc.c
58
b->x[0] = y9 & 0xffff;
lib/libc/gdtoa/smisc.c
59
b->wds = (b->x[1] = y9 >> 16) ? 2 : 1;
lib/libc/gdtoa/smisc.c
66
b = multadd(b, 10, *s++ - '0');
lib/libc/gdtoa/smisc.c
67
if (b == NULL)
lib/libc/gdtoa/smisc.c
75
b = multadd(b, 10, *s++ - '0');
lib/libc/gdtoa/smisc.c
76
if (b == NULL)
lib/libc/gdtoa/smisc.c
79
return b;
lib/libc/gdtoa/smisc.c
85
(a, b) Bigint *a, *b;
lib/libc/gdtoa/smisc.c
87
(Bigint *a, Bigint *b)
lib/libc/gdtoa/smisc.c
94
dval(&db) = b2d(b, &kb);
lib/libc/gdtoa/smisc.c
95
k = ka - kb + ULbits*(a->wds - b->wds);
lib/libc/gdtoa/strtodg.c
106
x = b->x;
lib/libc/gdtoa/strtodg.c
107
xe = x + b->wds;
lib/libc/gdtoa/strtodg.c
1106
b = bits;
lib/libc/gdtoa/strtodg.c
1107
be = b + ((fpi->nbits + 31) >> 5);
lib/libc/gdtoa/strtodg.c
1108
while(b < be)
lib/libc/gdtoa/strtodg.c
1109
*b++ = -1;
lib/libc/gdtoa/strtodg.c
128
all_on(b, n) Bigint *b; int n;
lib/libc/gdtoa/strtodg.c
130
all_on(Bigint *b, int n)
lib/libc/gdtoa/strtodg.c
135
x = b->x;
lib/libc/gdtoa/strtodg.c
147
set_ones(b, n) Bigint *b; int n;
lib/libc/gdtoa/strtodg.c
149
set_ones(Bigint *b, int n)
lib/libc/gdtoa/strtodg.c
156
if (b->k < k) {
lib/libc/gdtoa/strtodg.c
157
Bfree(b);
lib/libc/gdtoa/strtodg.c
158
b = Balloc(k);
lib/libc/gdtoa/strtodg.c
159
if (b == NULL)
lib/libc/gdtoa/strtodg.c
165
b->wds = k;
lib/libc/gdtoa/strtodg.c
166
x = b->x;
lib/libc/gdtoa/strtodg.c
172
return b;
lib/libc/gdtoa/strtodg.c
184
Bigint *b;
lib/libc/gdtoa/strtodg.c
189
b = d2b(dval(d), &e, &bdif);
lib/libc/gdtoa/strtodg.c
190
if (b == NULL) {
lib/libc/gdtoa/strtodg.c
227
if (b->x[0] & 2)
lib/libc/gdtoa/strtodg.c
231
if (b->x[k>>kshift] & ((ULong)1 << (k & kmask)))
lib/libc/gdtoa/strtodg.c
240
if ( (lostbits = any_on(b, bdif)) !=0)
lib/libc/gdtoa/strtodg.c
242
rshift(b, bdif);
lib/libc/gdtoa/strtodg.c
245
b = increment(b);
lib/libc/gdtoa/strtodg.c
246
if (b == NULL) {
lib/libc/gdtoa/strtodg.c
252
if (hi0bits(b->x[b->wds - 1]) != j) {
lib/libc/gdtoa/strtodg.c
254
lostbits = b->x[0] & 1;
lib/libc/gdtoa/strtodg.c
255
rshift(b, 1);
lib/libc/gdtoa/strtodg.c
261
b = lshift(b, -bdif);
lib/libc/gdtoa/strtodg.c
262
if (b == NULL) {
lib/libc/gdtoa/strtodg.c
271
b->wds = inex = 0;
lib/libc/gdtoa/strtodg.c
277
lostbits = any_on(b, k1);
lib/libc/gdtoa/strtodg.c
281
carry = b->x[k1>>kshift] & (1 << (k1 & kmask));
lib/libc/gdtoa/strtodg.c
282
rshift(b, k);
lib/libc/gdtoa/strtodg.c
285
b = increment(b);
lib/libc/gdtoa/strtodg.c
286
if (b == NULL) {
lib/libc/gdtoa/strtodg.c
302
b->wds = inex = 0;
lib/libc/gdtoa/strtodg.c
305
copybits(bits, nb, b);
lib/libc/gdtoa/strtodg.c
309
Bfree(b);
lib/libc/gdtoa/strtodg.c
354
ULong *b, *be, y, z;
lib/libc/gdtoa/strtodg.c
49
increment(b) Bigint *b;
lib/libc/gdtoa/strtodg.c
51
increment(Bigint *b)
lib/libc/gdtoa/strtodg.c
60
x = b->x;
lib/libc/gdtoa/strtodg.c
61
xe = x + b->wds;
lib/libc/gdtoa/strtodg.c
66
return b;
lib/libc/gdtoa/strtodg.c
76
return b;
lib/libc/gdtoa/strtodg.c
81
if (b->wds >= b->maxwds) {
lib/libc/gdtoa/strtodg.c
82
b1 = Balloc(b->k+1);
lib/libc/gdtoa/strtodg.c
85
Bcopy(b1,b);
lib/libc/gdtoa/strtodg.c
86
Bfree(b);
lib/libc/gdtoa/strtodg.c
87
b = b1;
lib/libc/gdtoa/strtodg.c
89
b->x[b->wds++] = 1;
lib/libc/gdtoa/strtodg.c
91
return b;
lib/libc/gdtoa/strtodg.c
96
decrement(b) Bigint *b;
lib/libc/gdtoa/strtodg.c
98
decrement(Bigint *b)
lib/libc/gdtoa/sum.c
36
sum(a, b) Bigint *a; Bigint *b;
lib/libc/gdtoa/sum.c
38
sum(Bigint *a, Bigint *b)
lib/libc/gdtoa/sum.c
47
if (a->wds < b->wds) {
lib/libc/gdtoa/sum.c
48
c = b; b = a; a = c;
lib/libc/gdtoa/sum.c
56
xb = b->x;
lib/libc/gdtoa/sum.c
58
xe = xc + b->wds;
lib/libc/gdtoa/sum.c
68
xe += a->wds - b->wds;
lib/libc/gdtoa/sum.c
83
xe += a->wds - b->wds;
lib/libc/gdtoa/sum.c
92
b = Balloc(c->k + 1);
lib/libc/gdtoa/sum.c
93
if (b == NULL)
lib/libc/gdtoa/sum.c
95
Bcopy(b, c);
lib/libc/gdtoa/sum.c
97
c = b;
lib/libc/gen/auth_subr.c
1042
char *b, *s;
lib/libc/gen/auth_subr.c
1051
b = as->spool + as->index;
lib/libc/gen/auth_subr.c
1060
if (*b++ == '\n') {
lib/libc/gen/auth_subr.c
1061
b[-1] = '\0';
lib/libc/gen/auth_subr.c
1064
s = b;
lib/libc/gen/fts.c
44
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
lib/libc/gen/getloadavg.c
37
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
lib/libc/gen/getpwent.c
56
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
lib/libc/gen/glob.c
356
Char *b, *eb;
lib/libc/gen/glob.c
400
for (b = patbuf; b < eb && *h; *b++ = *h++)
lib/libc/gen/glob.c
404
while (b < eb && (*b++ = *p++) != EOS)
lib/libc/gen/glob.c
406
*b = EOS;
lib/libc/gen/login_cap.c
1075
#define tilde_valid(s, b, u, l, ip) \
lib/libc/gen/login_cap.c
1076
((!(ip) || (s) == (b) || (s)[-1] == ':') && \
lib/libc/gen/nlist.c
45
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
lib/libc/gen/scandir.c
49
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
lib/libc/gen/setmode.c
144
#define ADDCMD(a, b, c, d) \
lib/libc/gen/setmode.c
157
set = addcmd(set, (a), (b), (c), (d))
lib/libc/hash/helper.c
36
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
lib/libc/hash/md5.c
163
u_int32_t a, b, c, d, in[MD5_BLOCK_LENGTH / 4];
lib/libc/hash/md5.c
178
b = state[1];
lib/libc/hash/md5.c
182
MD5STEP(F1, a, b, c, d, in[ 0] + 0xd76aa478, 7);
lib/libc/hash/md5.c
183
MD5STEP(F1, d, a, b, c, in[ 1] + 0xe8c7b756, 12);
lib/libc/hash/md5.c
184
MD5STEP(F1, c, d, a, b, in[ 2] + 0x242070db, 17);
lib/libc/hash/md5.c
185
MD5STEP(F1, b, c, d, a, in[ 3] + 0xc1bdceee, 22);
lib/libc/hash/md5.c
186
MD5STEP(F1, a, b, c, d, in[ 4] + 0xf57c0faf, 7);
lib/libc/hash/md5.c
187
MD5STEP(F1, d, a, b, c, in[ 5] + 0x4787c62a, 12);
lib/libc/hash/md5.c
188
MD5STEP(F1, c, d, a, b, in[ 6] + 0xa8304613, 17);
lib/libc/hash/md5.c
189
MD5STEP(F1, b, c, d, a, in[ 7] + 0xfd469501, 22);
lib/libc/hash/md5.c
190
MD5STEP(F1, a, b, c, d, in[ 8] + 0x698098d8, 7);
lib/libc/hash/md5.c
191
MD5STEP(F1, d, a, b, c, in[ 9] + 0x8b44f7af, 12);
lib/libc/hash/md5.c
192
MD5STEP(F1, c, d, a, b, in[10] + 0xffff5bb1, 17);
lib/libc/hash/md5.c
193
MD5STEP(F1, b, c, d, a, in[11] + 0x895cd7be, 22);
lib/libc/hash/md5.c
194
MD5STEP(F1, a, b, c, d, in[12] + 0x6b901122, 7);
lib/libc/hash/md5.c
195
MD5STEP(F1, d, a, b, c, in[13] + 0xfd987193, 12);
lib/libc/hash/md5.c
196
MD5STEP(F1, c, d, a, b, in[14] + 0xa679438e, 17);
lib/libc/hash/md5.c
197
MD5STEP(F1, b, c, d, a, in[15] + 0x49b40821, 22);
lib/libc/hash/md5.c
199
MD5STEP(F2, a, b, c, d, in[ 1] + 0xf61e2562, 5);
lib/libc/hash/md5.c
200
MD5STEP(F2, d, a, b, c, in[ 6] + 0xc040b340, 9);
lib/libc/hash/md5.c
201
MD5STEP(F2, c, d, a, b, in[11] + 0x265e5a51, 14);
lib/libc/hash/md5.c
202
MD5STEP(F2, b, c, d, a, in[ 0] + 0xe9b6c7aa, 20);
lib/libc/hash/md5.c
203
MD5STEP(F2, a, b, c, d, in[ 5] + 0xd62f105d, 5);
lib/libc/hash/md5.c
204
MD5STEP(F2, d, a, b, c, in[10] + 0x02441453, 9);
lib/libc/hash/md5.c
205
MD5STEP(F2, c, d, a, b, in[15] + 0xd8a1e681, 14);
lib/libc/hash/md5.c
206
MD5STEP(F2, b, c, d, a, in[ 4] + 0xe7d3fbc8, 20);
lib/libc/hash/md5.c
207
MD5STEP(F2, a, b, c, d, in[ 9] + 0x21e1cde6, 5);
lib/libc/hash/md5.c
208
MD5STEP(F2, d, a, b, c, in[14] + 0xc33707d6, 9);
lib/libc/hash/md5.c
209
MD5STEP(F2, c, d, a, b, in[ 3] + 0xf4d50d87, 14);
lib/libc/hash/md5.c
210
MD5STEP(F2, b, c, d, a, in[ 8] + 0x455a14ed, 20);
lib/libc/hash/md5.c
211
MD5STEP(F2, a, b, c, d, in[13] + 0xa9e3e905, 5);
lib/libc/hash/md5.c
212
MD5STEP(F2, d, a, b, c, in[ 2] + 0xfcefa3f8, 9);
lib/libc/hash/md5.c
213
MD5STEP(F2, c, d, a, b, in[ 7] + 0x676f02d9, 14);
lib/libc/hash/md5.c
214
MD5STEP(F2, b, c, d, a, in[12] + 0x8d2a4c8a, 20);
lib/libc/hash/md5.c
216
MD5STEP(F3, a, b, c, d, in[ 5] + 0xfffa3942, 4);
lib/libc/hash/md5.c
217
MD5STEP(F3, d, a, b, c, in[ 8] + 0x8771f681, 11);
lib/libc/hash/md5.c
218
MD5STEP(F3, c, d, a, b, in[11] + 0x6d9d6122, 16);
lib/libc/hash/md5.c
219
MD5STEP(F3, b, c, d, a, in[14] + 0xfde5380c, 23);
lib/libc/hash/md5.c
220
MD5STEP(F3, a, b, c, d, in[ 1] + 0xa4beea44, 4);
lib/libc/hash/md5.c
221
MD5STEP(F3, d, a, b, c, in[ 4] + 0x4bdecfa9, 11);
lib/libc/hash/md5.c
222
MD5STEP(F3, c, d, a, b, in[ 7] + 0xf6bb4b60, 16);
lib/libc/hash/md5.c
223
MD5STEP(F3, b, c, d, a, in[10] + 0xbebfbc70, 23);
lib/libc/hash/md5.c
224
MD5STEP(F3, a, b, c, d, in[13] + 0x289b7ec6, 4);
lib/libc/hash/md5.c
225
MD5STEP(F3, d, a, b, c, in[ 0] + 0xeaa127fa, 11);
lib/libc/hash/md5.c
226
MD5STEP(F3, c, d, a, b, in[ 3] + 0xd4ef3085, 16);
lib/libc/hash/md5.c
227
MD5STEP(F3, b, c, d, a, in[ 6] + 0x04881d05, 23);
lib/libc/hash/md5.c
228
MD5STEP(F3, a, b, c, d, in[ 9] + 0xd9d4d039, 4);
lib/libc/hash/md5.c
229
MD5STEP(F3, d, a, b, c, in[12] + 0xe6db99e5, 11);
lib/libc/hash/md5.c
230
MD5STEP(F3, c, d, a, b, in[15] + 0x1fa27cf8, 16);
lib/libc/hash/md5.c
231
MD5STEP(F3, b, c, d, a, in[2 ] + 0xc4ac5665, 23);
lib/libc/hash/md5.c
233
MD5STEP(F4, a, b, c, d, in[ 0] + 0xf4292244, 6);
lib/libc/hash/md5.c
234
MD5STEP(F4, d, a, b, c, in[7 ] + 0x432aff97, 10);
lib/libc/hash/md5.c
235
MD5STEP(F4, c, d, a, b, in[14] + 0xab9423a7, 15);
lib/libc/hash/md5.c
236
MD5STEP(F4, b, c, d, a, in[5 ] + 0xfc93a039, 21);
lib/libc/hash/md5.c
237
MD5STEP(F4, a, b, c, d, in[12] + 0x655b59c3, 6);
lib/libc/hash/md5.c
238
MD5STEP(F4, d, a, b, c, in[3 ] + 0x8f0ccc92, 10);
lib/libc/hash/md5.c
239
MD5STEP(F4, c, d, a, b, in[10] + 0xffeff47d, 15);
lib/libc/hash/md5.c
240
MD5STEP(F4, b, c, d, a, in[1 ] + 0x85845dd1, 21);
lib/libc/hash/md5.c
241
MD5STEP(F4, a, b, c, d, in[8 ] + 0x6fa87e4f, 6);
lib/libc/hash/md5.c
242
MD5STEP(F4, d, a, b, c, in[15] + 0xfe2ce6e0, 10);
lib/libc/hash/md5.c
243
MD5STEP(F4, c, d, a, b, in[6 ] + 0xa3014314, 15);
lib/libc/hash/md5.c
244
MD5STEP(F4, b, c, d, a, in[13] + 0x4e0811a1, 21);
lib/libc/hash/md5.c
245
MD5STEP(F4, a, b, c, d, in[4 ] + 0xf7537e82, 6);
lib/libc/hash/md5.c
246
MD5STEP(F4, d, a, b, c, in[11] + 0xbd3af235, 10);
lib/libc/hash/md5.c
247
MD5STEP(F4, c, d, a, b, in[2 ] + 0x2ad7d2bb, 15);
lib/libc/hash/md5.c
248
MD5STEP(F4, b, c, d, a, in[9 ] + 0xeb86d391, 21);
lib/libc/hash/md5.c
251
state[1] += b;
lib/libc/hash/rmd160.c
170
u_int32_t a, b, c, d, e, aa, bb, cc, dd, ee, t, x[16];
lib/libc/hash/rmd160.c
186
b = state[1];
lib/libc/hash/rmd160.c
192
R(a, b, c, d, e, F0, K0, 11, 0);
lib/libc/hash/rmd160.c
193
R(e, a, b, c, d, F0, K0, 14, 1);
lib/libc/hash/rmd160.c
194
R(d, e, a, b, c, F0, K0, 15, 2);
lib/libc/hash/rmd160.c
195
R(c, d, e, a, b, F0, K0, 12, 3);
lib/libc/hash/rmd160.c
196
R(b, c, d, e, a, F0, K0, 5, 4);
lib/libc/hash/rmd160.c
197
R(a, b, c, d, e, F0, K0, 8, 5);
lib/libc/hash/rmd160.c
198
R(e, a, b, c, d, F0, K0, 7, 6);
lib/libc/hash/rmd160.c
199
R(d, e, a, b, c, F0, K0, 9, 7);
lib/libc/hash/rmd160.c
200
R(c, d, e, a, b, F0, K0, 11, 8);
lib/libc/hash/rmd160.c
201
R(b, c, d, e, a, F0, K0, 13, 9);
lib/libc/hash/rmd160.c
202
R(a, b, c, d, e, F0, K0, 14, 10);
lib/libc/hash/rmd160.c
203
R(e, a, b, c, d, F0, K0, 15, 11);
lib/libc/hash/rmd160.c
204
R(d, e, a, b, c, F0, K0, 6, 12);
lib/libc/hash/rmd160.c
205
R(c, d, e, a, b, F0, K0, 7, 13);
lib/libc/hash/rmd160.c
206
R(b, c, d, e, a, F0, K0, 9, 14);
lib/libc/hash/rmd160.c
207
R(a, b, c, d, e, F0, K0, 8, 15); /* #15 */
lib/libc/hash/rmd160.c
209
R(e, a, b, c, d, F1, K1, 7, 7);
lib/libc/hash/rmd160.c
210
R(d, e, a, b, c, F1, K1, 6, 4);
lib/libc/hash/rmd160.c
211
R(c, d, e, a, b, F1, K1, 8, 13);
lib/libc/hash/rmd160.c
212
R(b, c, d, e, a, F1, K1, 13, 1);
lib/libc/hash/rmd160.c
213
R(a, b, c, d, e, F1, K1, 11, 10);
lib/libc/hash/rmd160.c
214
R(e, a, b, c, d, F1, K1, 9, 6);
lib/libc/hash/rmd160.c
215
R(d, e, a, b, c, F1, K1, 7, 15);
lib/libc/hash/rmd160.c
216
R(c, d, e, a, b, F1, K1, 15, 3);
lib/libc/hash/rmd160.c
217
R(b, c, d, e, a, F1, K1, 7, 12);
lib/libc/hash/rmd160.c
218
R(a, b, c, d, e, F1, K1, 12, 0);
lib/libc/hash/rmd160.c
219
R(e, a, b, c, d, F1, K1, 15, 9);
lib/libc/hash/rmd160.c
220
R(d, e, a, b, c, F1, K1, 9, 5);
lib/libc/hash/rmd160.c
221
R(c, d, e, a, b, F1, K1, 11, 2);
lib/libc/hash/rmd160.c
222
R(b, c, d, e, a, F1, K1, 7, 14);
lib/libc/hash/rmd160.c
223
R(a, b, c, d, e, F1, K1, 13, 11);
lib/libc/hash/rmd160.c
224
R(e, a, b, c, d, F1, K1, 12, 8); /* #31 */
lib/libc/hash/rmd160.c
226
R(d, e, a, b, c, F2, K2, 11, 3);
lib/libc/hash/rmd160.c
227
R(c, d, e, a, b, F2, K2, 13, 10);
lib/libc/hash/rmd160.c
228
R(b, c, d, e, a, F2, K2, 6, 14);
lib/libc/hash/rmd160.c
229
R(a, b, c, d, e, F2, K2, 7, 4);
lib/libc/hash/rmd160.c
230
R(e, a, b, c, d, F2, K2, 14, 9);
lib/libc/hash/rmd160.c
231
R(d, e, a, b, c, F2, K2, 9, 15);
lib/libc/hash/rmd160.c
232
R(c, d, e, a, b, F2, K2, 13, 8);
lib/libc/hash/rmd160.c
233
R(b, c, d, e, a, F2, K2, 15, 1);
lib/libc/hash/rmd160.c
234
R(a, b, c, d, e, F2, K2, 14, 2);
lib/libc/hash/rmd160.c
235
R(e, a, b, c, d, F2, K2, 8, 7);
lib/libc/hash/rmd160.c
236
R(d, e, a, b, c, F2, K2, 13, 0);
lib/libc/hash/rmd160.c
237
R(c, d, e, a, b, F2, K2, 6, 6);
lib/libc/hash/rmd160.c
238
R(b, c, d, e, a, F2, K2, 5, 13);
lib/libc/hash/rmd160.c
239
R(a, b, c, d, e, F2, K2, 12, 11);
lib/libc/hash/rmd160.c
240
R(e, a, b, c, d, F2, K2, 7, 5);
lib/libc/hash/rmd160.c
241
R(d, e, a, b, c, F2, K2, 5, 12); /* #47 */
lib/libc/hash/rmd160.c
243
R(c, d, e, a, b, F3, K3, 11, 1);
lib/libc/hash/rmd160.c
244
R(b, c, d, e, a, F3, K3, 12, 9);
lib/libc/hash/rmd160.c
245
R(a, b, c, d, e, F3, K3, 14, 11);
lib/libc/hash/rmd160.c
246
R(e, a, b, c, d, F3, K3, 15, 10);
lib/libc/hash/rmd160.c
247
R(d, e, a, b, c, F3, K3, 14, 0);
lib/libc/hash/rmd160.c
248
R(c, d, e, a, b, F3, K3, 15, 8);
lib/libc/hash/rmd160.c
249
R(b, c, d, e, a, F3, K3, 9, 12);
lib/libc/hash/rmd160.c
250
R(a, b, c, d, e, F3, K3, 8, 4);
lib/libc/hash/rmd160.c
251
R(e, a, b, c, d, F3, K3, 9, 13);
lib/libc/hash/rmd160.c
252
R(d, e, a, b, c, F3, K3, 14, 3);
lib/libc/hash/rmd160.c
253
R(c, d, e, a, b, F3, K3, 5, 7);
lib/libc/hash/rmd160.c
254
R(b, c, d, e, a, F3, K3, 6, 15);
lib/libc/hash/rmd160.c
255
R(a, b, c, d, e, F3, K3, 8, 14);
lib/libc/hash/rmd160.c
256
R(e, a, b, c, d, F3, K3, 6, 5);
lib/libc/hash/rmd160.c
257
R(d, e, a, b, c, F3, K3, 5, 6);
lib/libc/hash/rmd160.c
258
R(c, d, e, a, b, F3, K3, 12, 2); /* #63 */
lib/libc/hash/rmd160.c
260
R(b, c, d, e, a, F4, K4, 9, 4);
lib/libc/hash/rmd160.c
261
R(a, b, c, d, e, F4, K4, 15, 0);
lib/libc/hash/rmd160.c
262
R(e, a, b, c, d, F4, K4, 5, 5);
lib/libc/hash/rmd160.c
263
R(d, e, a, b, c, F4, K4, 11, 9);
lib/libc/hash/rmd160.c
264
R(c, d, e, a, b, F4, K4, 6, 7);
lib/libc/hash/rmd160.c
265
R(b, c, d, e, a, F4, K4, 8, 12);
lib/libc/hash/rmd160.c
266
R(a, b, c, d, e, F4, K4, 13, 2);
lib/libc/hash/rmd160.c
267
R(e, a, b, c, d, F4, K4, 12, 10);
lib/libc/hash/rmd160.c
268
R(d, e, a, b, c, F4, K4, 5, 14);
lib/libc/hash/rmd160.c
269
R(c, d, e, a, b, F4, K4, 12, 1);
lib/libc/hash/rmd160.c
270
R(b, c, d, e, a, F4, K4, 13, 3);
lib/libc/hash/rmd160.c
271
R(a, b, c, d, e, F4, K4, 14, 8);
lib/libc/hash/rmd160.c
272
R(e, a, b, c, d, F4, K4, 11, 11);
lib/libc/hash/rmd160.c
273
R(d, e, a, b, c, F4, K4, 8, 6);
lib/libc/hash/rmd160.c
274
R(c, d, e, a, b, F4, K4, 5, 15);
lib/libc/hash/rmd160.c
275
R(b, c, d, e, a, F4, K4, 6, 13); /* #79 */
lib/libc/hash/rmd160.c
277
aa = a ; bb = b; cc = c; dd = d; ee = e;
lib/libc/hash/rmd160.c
280
b = state[1];
lib/libc/hash/rmd160.c
286
R(a, b, c, d, e, F4, KK0, 8, 5);
lib/libc/hash/rmd160.c
287
R(e, a, b, c, d, F4, KK0, 9, 14);
lib/libc/hash/rmd160.c
288
R(d, e, a, b, c, F4, KK0, 9, 7);
lib/libc/hash/rmd160.c
289
R(c, d, e, a, b, F4, KK0, 11, 0);
lib/libc/hash/rmd160.c
290
R(b, c, d, e, a, F4, KK0, 13, 9);
lib/libc/hash/rmd160.c
291
R(a, b, c, d, e, F4, KK0, 15, 2);
lib/libc/hash/rmd160.c
292
R(e, a, b, c, d, F4, KK0, 15, 11);
lib/libc/hash/rmd160.c
293
R(d, e, a, b, c, F4, KK0, 5, 4);
lib/libc/hash/rmd160.c
294
R(c, d, e, a, b, F4, KK0, 7, 13);
lib/libc/hash/rmd160.c
295
R(b, c, d, e, a, F4, KK0, 7, 6);
lib/libc/hash/rmd160.c
296
R(a, b, c, d, e, F4, KK0, 8, 15);
lib/libc/hash/rmd160.c
297
R(e, a, b, c, d, F4, KK0, 11, 8);
lib/libc/hash/rmd160.c
298
R(d, e, a, b, c, F4, KK0, 14, 1);
lib/libc/hash/rmd160.c
299
R(c, d, e, a, b, F4, KK0, 14, 10);
lib/libc/hash/rmd160.c
300
R(b, c, d, e, a, F4, KK0, 12, 3);
lib/libc/hash/rmd160.c
301
R(a, b, c, d, e, F4, KK0, 6, 12); /* #15 */
lib/libc/hash/rmd160.c
303
R(e, a, b, c, d, F3, KK1, 9, 6);
lib/libc/hash/rmd160.c
304
R(d, e, a, b, c, F3, KK1, 13, 11);
lib/libc/hash/rmd160.c
305
R(c, d, e, a, b, F3, KK1, 15, 3);
lib/libc/hash/rmd160.c
306
R(b, c, d, e, a, F3, KK1, 7, 7);
lib/libc/hash/rmd160.c
307
R(a, b, c, d, e, F3, KK1, 12, 0);
lib/libc/hash/rmd160.c
308
R(e, a, b, c, d, F3, KK1, 8, 13);
lib/libc/hash/rmd160.c
309
R(d, e, a, b, c, F3, KK1, 9, 5);
lib/libc/hash/rmd160.c
310
R(c, d, e, a, b, F3, KK1, 11, 10);
lib/libc/hash/rmd160.c
311
R(b, c, d, e, a, F3, KK1, 7, 14);
lib/libc/hash/rmd160.c
312
R(a, b, c, d, e, F3, KK1, 7, 15);
lib/libc/hash/rmd160.c
313
R(e, a, b, c, d, F3, KK1, 12, 8);
lib/libc/hash/rmd160.c
314
R(d, e, a, b, c, F3, KK1, 7, 12);
lib/libc/hash/rmd160.c
315
R(c, d, e, a, b, F3, KK1, 6, 4);
lib/libc/hash/rmd160.c
316
R(b, c, d, e, a, F3, KK1, 15, 9);
lib/libc/hash/rmd160.c
317
R(a, b, c, d, e, F3, KK1, 13, 1);
lib/libc/hash/rmd160.c
318
R(e, a, b, c, d, F3, KK1, 11, 2); /* #31 */
lib/libc/hash/rmd160.c
320
R(d, e, a, b, c, F2, KK2, 9, 15);
lib/libc/hash/rmd160.c
321
R(c, d, e, a, b, F2, KK2, 7, 5);
lib/libc/hash/rmd160.c
322
R(b, c, d, e, a, F2, KK2, 15, 1);
lib/libc/hash/rmd160.c
323
R(a, b, c, d, e, F2, KK2, 11, 3);
lib/libc/hash/rmd160.c
324
R(e, a, b, c, d, F2, KK2, 8, 7);
lib/libc/hash/rmd160.c
325
R(d, e, a, b, c, F2, KK2, 6, 14);
lib/libc/hash/rmd160.c
326
R(c, d, e, a, b, F2, KK2, 6, 6);
lib/libc/hash/rmd160.c
327
R(b, c, d, e, a, F2, KK2, 14, 9);
lib/libc/hash/rmd160.c
328
R(a, b, c, d, e, F2, KK2, 12, 11);
lib/libc/hash/rmd160.c
329
R(e, a, b, c, d, F2, KK2, 13, 8);
lib/libc/hash/rmd160.c
330
R(d, e, a, b, c, F2, KK2, 5, 12);
lib/libc/hash/rmd160.c
331
R(c, d, e, a, b, F2, KK2, 14, 2);
lib/libc/hash/rmd160.c
332
R(b, c, d, e, a, F2, KK2, 13, 10);
lib/libc/hash/rmd160.c
333
R(a, b, c, d, e, F2, KK2, 13, 0);
lib/libc/hash/rmd160.c
334
R(e, a, b, c, d, F2, KK2, 7, 4);
lib/libc/hash/rmd160.c
335
R(d, e, a, b, c, F2, KK2, 5, 13); /* #47 */
lib/libc/hash/rmd160.c
337
R(c, d, e, a, b, F1, KK3, 15, 8);
lib/libc/hash/rmd160.c
338
R(b, c, d, e, a, F1, KK3, 5, 6);
lib/libc/hash/rmd160.c
339
R(a, b, c, d, e, F1, KK3, 8, 4);
lib/libc/hash/rmd160.c
340
R(e, a, b, c, d, F1, KK3, 11, 1);
lib/libc/hash/rmd160.c
341
R(d, e, a, b, c, F1, KK3, 14, 3);
lib/libc/hash/rmd160.c
342
R(c, d, e, a, b, F1, KK3, 14, 11);
lib/libc/hash/rmd160.c
343
R(b, c, d, e, a, F1, KK3, 6, 15);
lib/libc/hash/rmd160.c
344
R(a, b, c, d, e, F1, KK3, 14, 0);
lib/libc/hash/rmd160.c
345
R(e, a, b, c, d, F1, KK3, 6, 5);
lib/libc/hash/rmd160.c
346
R(d, e, a, b, c, F1, KK3, 9, 12);
lib/libc/hash/rmd160.c
347
R(c, d, e, a, b, F1, KK3, 12, 2);
lib/libc/hash/rmd160.c
348
R(b, c, d, e, a, F1, KK3, 9, 13);
lib/libc/hash/rmd160.c
349
R(a, b, c, d, e, F1, KK3, 12, 9);
lib/libc/hash/rmd160.c
350
R(e, a, b, c, d, F1, KK3, 5, 7);
lib/libc/hash/rmd160.c
351
R(d, e, a, b, c, F1, KK3, 15, 10);
lib/libc/hash/rmd160.c
352
R(c, d, e, a, b, F1, KK3, 8, 14); /* #63 */
lib/libc/hash/rmd160.c
354
R(b, c, d, e, a, F0, KK4, 8, 12);
lib/libc/hash/rmd160.c
355
R(a, b, c, d, e, F0, KK4, 5, 15);
lib/libc/hash/rmd160.c
356
R(e, a, b, c, d, F0, KK4, 12, 10);
lib/libc/hash/rmd160.c
357
R(d, e, a, b, c, F0, KK4, 9, 4);
lib/libc/hash/rmd160.c
358
R(c, d, e, a, b, F0, KK4, 12, 1);
lib/libc/hash/rmd160.c
359
R(b, c, d, e, a, F0, KK4, 5, 5);
lib/libc/hash/rmd160.c
360
R(a, b, c, d, e, F0, KK4, 14, 8);
lib/libc/hash/rmd160.c
361
R(e, a, b, c, d, F0, KK4, 6, 7);
lib/libc/hash/rmd160.c
362
R(d, e, a, b, c, F0, KK4, 8, 6);
lib/libc/hash/rmd160.c
363
R(c, d, e, a, b, F0, KK4, 13, 2);
lib/libc/hash/rmd160.c
364
R(b, c, d, e, a, F0, KK4, 6, 13);
lib/libc/hash/rmd160.c
365
R(a, b, c, d, e, F0, KK4, 5, 14);
lib/libc/hash/rmd160.c
366
R(e, a, b, c, d, F0, KK4, 15, 0);
lib/libc/hash/rmd160.c
367
R(d, e, a, b, c, F0, KK4, 13, 3);
lib/libc/hash/rmd160.c
368
R(c, d, e, a, b, F0, KK4, 11, 9);
lib/libc/hash/rmd160.c
369
R(b, c, d, e, a, F0, KK4, 11, 11); /* #79 */
lib/libc/hash/rmd160.c
374
state[3] = state[4] + aa + b;
lib/libc/hash/rmd160.c
77
#define R(a, b, c, d, e, Fj, Kj, sj, rj) \
lib/libc/hash/rmd160.c
79
a = ROL(sj, a + Fj(b,c,d) + X(rj) + Kj) + e; \
lib/libc/hash/sha1.c
56
u_int32_t a, b, c, d, e;
lib/libc/hash/sha1.c
64
b = state[1];
lib/libc/hash/sha1.c
70
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);
lib/libc/hash/sha1.c
71
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);
lib/libc/hash/sha1.c
72
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);
lib/libc/hash/sha1.c
73
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);
lib/libc/hash/sha1.c
74
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);
lib/libc/hash/sha1.c
75
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);
lib/libc/hash/sha1.c
76
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);
lib/libc/hash/sha1.c
77
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);
lib/libc/hash/sha1.c
78
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);
lib/libc/hash/sha1.c
79
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);
lib/libc/hash/sha1.c
80
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);
lib/libc/hash/sha1.c
81
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);
lib/libc/hash/sha1.c
82
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);
lib/libc/hash/sha1.c
83
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);
lib/libc/hash/sha1.c
84
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);
lib/libc/hash/sha1.c
85
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);
lib/libc/hash/sha1.c
86
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);
lib/libc/hash/sha1.c
87
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);
lib/libc/hash/sha1.c
88
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);
lib/libc/hash/sha1.c
89
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);
lib/libc/hash/sha1.c
93
state[1] += b;
lib/libc/hash/sha1.c
99
a = b = c = d = e = 0;
lib/libc/hash/sha2.c
154
#define R(b,x) ((x) >> (b))
lib/libc/hash/sha2.c
156
#define S32(b,x) (((x) >> (b)) | ((x) << (32 - (b))))
lib/libc/hash/sha2.c
158
#define S64(b,x) (((x) >> (b)) | ((x) << (64 - (b))))
lib/libc/hash/sha2.c
355
#define ROUND256_0_TO_15(a,b,c,d,e,f,g,h) do { \
lib/libc/hash/sha2.c
360
(h) = T1 + Sigma0_256((a)) + Maj((a), (b), (c)); \
lib/libc/hash/sha2.c
364
#define ROUND256(a,b,c,d,e,f,g,h) do { \
lib/libc/hash/sha2.c
372
(h) = T1 + Sigma0_256((a)) + Maj((a), (b), (c)); \
lib/libc/hash/sha2.c
379
u_int32_t a, b, c, d, e, f, g, h, s0, s1;
lib/libc/hash/sha2.c
385
b = state[1];
lib/libc/hash/sha2.c
396
ROUND256_0_TO_15(a,b,c,d,e,f,g,h);
lib/libc/hash/sha2.c
397
ROUND256_0_TO_15(h,a,b,c,d,e,f,g);
lib/libc/hash/sha2.c
398
ROUND256_0_TO_15(g,h,a,b,c,d,e,f);
lib/libc/hash/sha2.c
399
ROUND256_0_TO_15(f,g,h,a,b,c,d,e);
lib/libc/hash/sha2.c
400
ROUND256_0_TO_15(e,f,g,h,a,b,c,d);
lib/libc/hash/sha2.c
401
ROUND256_0_TO_15(d,e,f,g,h,a,b,c);
lib/libc/hash/sha2.c
402
ROUND256_0_TO_15(c,d,e,f,g,h,a,b);
lib/libc/hash/sha2.c
403
ROUND256_0_TO_15(b,c,d,e,f,g,h,a);
lib/libc/hash/sha2.c
408
ROUND256(a,b,c,d,e,f,g,h);
lib/libc/hash/sha2.c
409
ROUND256(h,a,b,c,d,e,f,g);
lib/libc/hash/sha2.c
410
ROUND256(g,h,a,b,c,d,e,f);
lib/libc/hash/sha2.c
411
ROUND256(f,g,h,a,b,c,d,e);
lib/libc/hash/sha2.c
412
ROUND256(e,f,g,h,a,b,c,d);
lib/libc/hash/sha2.c
413
ROUND256(d,e,f,g,h,a,b,c);
lib/libc/hash/sha2.c
414
ROUND256(c,d,e,f,g,h,a,b);
lib/libc/hash/sha2.c
415
ROUND256(b,c,d,e,f,g,h,a);
lib/libc/hash/sha2.c
420
state[1] += b;
lib/libc/hash/sha2.c
429
a = b = c = d = e = f = g = h = T1 = 0;
lib/libc/hash/sha2.c
437
u_int32_t a, b, c, d, e, f, g, h, s0, s1;
lib/libc/hash/sha2.c
443
b = state[1];
lib/libc/hash/sha2.c
457
T2 = Sigma0_256(a) + Maj(a, b, c);
lib/libc/hash/sha2.c
463
c = b;
lib/libc/hash/sha2.c
464
b = a;
lib/libc/hash/sha2.c
480
T2 = Sigma0_256(a) + Maj(a, b, c);
lib/libc/hash/sha2.c
486
c = b;
lib/libc/hash/sha2.c
487
b = a;
lib/libc/hash/sha2.c
495
state[1] += b;
lib/libc/hash/sha2.c
504
a = b = c = d = e = f = g = h = T1 = T2 = 0;
lib/libc/hash/sha2.c
635
#define ROUND512_0_TO_15(a,b,c,d,e,f,g,h) do { \
lib/libc/hash/sha2.c
640
(h) = T1 + Sigma0_512((a)) + Maj((a), (b), (c)); \
lib/libc/hash/sha2.c
645
#define ROUND512(a,b,c,d,e,f,g,h) do { \
lib/libc/hash/sha2.c
653
(h) = T1 + Sigma0_512((a)) + Maj((a), (b), (c)); \
lib/libc/hash/sha2.c
660
u_int64_t a, b, c, d, e, f, g, h, s0, s1;
lib/libc/hash/sha2.c
666
b = state[1];
lib/libc/hash/sha2.c
677
ROUND512_0_TO_15(a,b,c,d,e,f,g,h);
lib/libc/hash/sha2.c
678
ROUND512_0_TO_15(h,a,b,c,d,e,f,g);
lib/libc/hash/sha2.c
679
ROUND512_0_TO_15(g,h,a,b,c,d,e,f);
lib/libc/hash/sha2.c
680
ROUND512_0_TO_15(f,g,h,a,b,c,d,e);
lib/libc/hash/sha2.c
681
ROUND512_0_TO_15(e,f,g,h,a,b,c,d);
lib/libc/hash/sha2.c
682
ROUND512_0_TO_15(d,e,f,g,h,a,b,c);
lib/libc/hash/sha2.c
683
ROUND512_0_TO_15(c,d,e,f,g,h,a,b);
lib/libc/hash/sha2.c
684
ROUND512_0_TO_15(b,c,d,e,f,g,h,a);
lib/libc/hash/sha2.c
689
ROUND512(a,b,c,d,e,f,g,h);
lib/libc/hash/sha2.c
690
ROUND512(h,a,b,c,d,e,f,g);
lib/libc/hash/sha2.c
691
ROUND512(g,h,a,b,c,d,e,f);
lib/libc/hash/sha2.c
692
ROUND512(f,g,h,a,b,c,d,e);
lib/libc/hash/sha2.c
693
ROUND512(e,f,g,h,a,b,c,d);
lib/libc/hash/sha2.c
694
ROUND512(d,e,f,g,h,a,b,c);
lib/libc/hash/sha2.c
695
ROUND512(c,d,e,f,g,h,a,b);
lib/libc/hash/sha2.c
696
ROUND512(b,c,d,e,f,g,h,a);
lib/libc/hash/sha2.c
701
state[1] += b;
lib/libc/hash/sha2.c
710
a = b = c = d = e = f = g = h = T1 = 0;
lib/libc/hash/sha2.c
718
u_int64_t a, b, c, d, e, f, g, h, s0, s1;
lib/libc/hash/sha2.c
724
b = state[1];
lib/libc/hash/sha2.c
738
T2 = Sigma0_512(a) + Maj(a, b, c);
lib/libc/hash/sha2.c
744
c = b;
lib/libc/hash/sha2.c
745
b = a;
lib/libc/hash/sha2.c
761
T2 = Sigma0_512(a) + Maj(a, b, c);
lib/libc/hash/sha2.c
767
c = b;
lib/libc/hash/sha2.c
768
b = a;
lib/libc/hash/sha2.c
776
state[1] += b;
lib/libc/hash/sha2.c
785
a = b = c = d = e = f = g = h = T1 = T2 = 0;
lib/libc/hash/siphash.c
152
#define SIP_ROTL(x, b) ((x) << (b)) | ( (x) >> (64 - (b)))
lib/libc/hidden/db.h
43
#define P_32_COPY(a, b) { \
lib/libc/hidden/db.h
44
((char *)&(b))[0] = ((char *)&(a))[3]; \
lib/libc/hidden/db.h
45
((char *)&(b))[1] = ((char *)&(a))[2]; \
lib/libc/hidden/db.h
46
((char *)&(b))[2] = ((char *)&(a))[1]; \
lib/libc/hidden/db.h
47
((char *)&(b))[3] = ((char *)&(a))[0]; \
lib/libc/hidden/db.h
66
#define P_16_COPY(a, b) { \
lib/libc/hidden/db.h
67
((char *)&(b))[0] = ((char *)&(a))[1]; \
lib/libc/hidden/db.h
68
((char *)&(b))[1] = ((char *)&(a))[0]; \
lib/libc/net/inet_net_ntop.c
103
if (b > 1) {
lib/libc/net/inet_net_ntop.c
112
b = bits % 8;
lib/libc/net/inet_net_ntop.c
113
if (b > 0) {
lib/libc/net/inet_net_ntop.c
118
m = ((1 << b) - 1) << (8 - b);
lib/libc/net/inet_net_ntop.c
76
int b;
lib/libc/net/inet_net_ntop.c
96
for (b = bits / 8; b > 0; b--) {
lib/libc/net/inet_neta.c
57
u_char b = (src & 0xff000000) >> 24;
lib/libc/net/inet_neta.c
60
if (b || src) {
lib/libc/net/inet_neta.c
63
advance = snprintf(dst, ep - dst, "%u", b);
lib/libc/net/inet_ntoa.c
43
static char b[18];
lib/libc/net/inet_ntoa.c
47
#define UC(b) (((int)b)&0xff)
lib/libc/net/inet_ntoa.c
48
(void)snprintf(b, sizeof(b),
lib/libc/net/inet_ntoa.c
50
return (b);
lib/libc/nls/catopen.c
44
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
lib/libc/quad/adddi3.c
43
__adddi3(quad_t a, quad_t b)
lib/libc/quad/adddi3.c
48
bb.q = b;
lib/libc/quad/anddi3.c
41
__anddi3(quad_t a, quad_t b)
lib/libc/quad/anddi3.c
46
bb.q = b;
lib/libc/quad/cmpdi2.c
43
__cmpdi2(quad_t a, quad_t b)
lib/libc/quad/cmpdi2.c
48
bb.q = b;
lib/libc/quad/divdi3.c
42
__divdi3(quad_t a, quad_t b)
lib/libc/quad/divdi3.c
48
ub = b;
lib/libc/quad/divdi3.c
52
if (b < 0)
lib/libc/quad/iordi3.c
41
__iordi3(quad_t a, quad_t b)
lib/libc/quad/iordi3.c
46
bb.q = b;
lib/libc/quad/moddi3.c
43
__moddi3(quad_t a, quad_t b)
lib/libc/quad/moddi3.c
49
ub = b;
lib/libc/quad/moddi3.c
53
if (b < 0)
lib/libc/quad/muldi3.c
117
if (b >= 0)
lib/libc/quad/muldi3.c
118
v.q = b;
lib/libc/quad/muldi3.c
120
v.q = -b, negall ^= 1;
lib/libc/quad/muldi3.c
97
__muldi3(a, b)
lib/libc/quad/muldi3.c
98
quad_t a, b;
lib/libc/quad/qdivrem.c
45
#define COMBINE(a, b) (((u_int)(a) << HALF_BITS) | (b))
lib/libc/quad/subdi3.c
42
__subdi3(quad_t a, quad_t b)
lib/libc/quad/subdi3.c
47
bb.q = b;
lib/libc/quad/ucmpdi2.c
42
__ucmpdi2(u_quad_t a, u_quad_t b)
lib/libc/quad/ucmpdi2.c
47
bb.uq = b;
lib/libc/quad/udivdi3.c
41
__udivdi3(u_quad_t a, u_quad_t b)
lib/libc/quad/udivdi3.c
44
return (__qdivrem(a, b, (u_quad_t *)0));
lib/libc/quad/umoddi3.c
41
__umoddi3(u_quad_t a, u_quad_t b)
lib/libc/quad/umoddi3.c
45
(void)__qdivrem(a, b, &r);
lib/libc/quad/xordi3.c
41
__xordi3(quad_t a, quad_t b)
lib/libc/quad/xordi3.c
46
bb.q = b;
lib/libc/regex/regcomp.c
113
#define SEETWO(a, b) (MORE2() && PEEK() == (a) && PEEK2() == (b))
lib/libc/regex/regcomp.c
115
#define EATTWO(a, b) ((SEETWO(a, b)) ? (NEXT2(), 1) : 0)
lib/libc/regex/regexec.c
110
#define EQ(a, b) (memcmp(a, b, m->g->nstates) == 0)
lib/libc/regex/regexec.c
63
#define EQ(a, b) ((a) == (b))
lib/libc/rpc/svc.c
54
#define max(a, b) (a > b ? a : b)
lib/libc/rpc/svc_udp.c
51
#define MAX(a, b) ((a > b) ? a : b)
lib/libc/softfloat/eqdf2.c
15
__eqdf2(float64 a, float64 b)
lib/libc/softfloat/eqdf2.c
19
return !float64_eq(a, b);
lib/libc/softfloat/eqsf2.c
15
__eqsf2(float32 a, float32 b)
lib/libc/softfloat/eqsf2.c
19
return !float32_eq(a, b);
lib/libc/softfloat/gedf2.c
15
__gedf2(float64 a, float64 b)
lib/libc/softfloat/gedf2.c
19
return float64_le(b, a) - 1;
lib/libc/softfloat/gesf2.c
15
__gesf2(float32 a, float32 b)
lib/libc/softfloat/gesf2.c
19
return float32_le(b, a) - 1;
lib/libc/softfloat/gtdf2.c
15
__gtdf2(float64 a, float64 b)
lib/libc/softfloat/gtdf2.c
19
return float64_lt(b, a);
lib/libc/softfloat/gtsf2.c
15
__gtsf2(float32 a, float32 b)
lib/libc/softfloat/gtsf2.c
19
return float32_lt(b, a);
lib/libc/softfloat/ledf2.c
15
__ledf2(float64 a, float64 b)
lib/libc/softfloat/ledf2.c
19
return 1 - float64_le(a, b);
lib/libc/softfloat/lesf2.c
15
__lesf2(float32 a, float32 b)
lib/libc/softfloat/lesf2.c
19
return 1 - float32_le(a, b);
lib/libc/softfloat/ltdf2.c
15
__ltdf2(float64 a, float64 b)
lib/libc/softfloat/ltdf2.c
19
return -float64_lt(a, b);
lib/libc/softfloat/ltsf2.c
15
__ltsf2(float32 a, float32 b)
lib/libc/softfloat/ltsf2.c
19
return -float32_lt(a, b);
lib/libc/softfloat/nedf2.c
15
__nedf2(float64 a, float64 b)
lib/libc/softfloat/nedf2.c
19
return !float64_eq(a, b);
lib/libc/softfloat/nesf2.c
15
__nesf2(float32 a, float32 b)
lib/libc/softfloat/nesf2.c
19
return !float32_eq(a, b);
lib/libc/softfloat/softfloat-macros.h
388
mul32To64( bits32 a, bits32 b, bits32 *z0Ptr, bits32 *z1Ptr )
lib/libc/softfloat/softfloat-macros.h
395
bLow = b;
lib/libc/softfloat/softfloat-macros.h
396
bHigh = b>>16;
lib/libc/softfloat/softfloat-macros.h
423
bits32 b,
lib/libc/softfloat/softfloat-macros.h
431
mul32To64( a1, b, &z1, &z2 );
lib/libc/softfloat/softfloat-macros.h
432
mul32To64( a0, b, &z0, &more1 );
lib/libc/softfloat/softfloat-macros.h
488
static bits32 estimateDiv64To32( bits32 a0, bits32 a1, bits32 b )
lib/libc/softfloat/softfloat-macros.h
494
if ( b <= a0 ) return 0xFFFFFFFF;
lib/libc/softfloat/softfloat-macros.h
495
b0 = b>>16;
lib/libc/softfloat/softfloat-macros.h
497
mul32To64( b, z, &term0, &term1 );
lib/libc/softfloat/softfloat-macros.h
501
b1 = b<<16;
lib/libc/softfloat/softfloat-specialize.h
157
static float32 propagateFloat32NaN( float32 a, float32 b )
lib/libc/softfloat/softfloat-specialize.h
163
bIsNaN = float32_is_nan( b );
lib/libc/softfloat/softfloat-specialize.h
164
bIsSignalingNaN = float32_is_signaling_nan( b );
lib/libc/softfloat/softfloat-specialize.h
166
b |= 0x00400000;
lib/libc/softfloat/softfloat-specialize.h
169
return ( aIsSignalingNaN & bIsNaN ) ? b : a;
lib/libc/softfloat/softfloat-specialize.h
172
return b;
lib/libc/softfloat/softfloat-specialize.h
261
static float64 propagateFloat64NaN( float64 a, float64 b )
lib/libc/softfloat/softfloat-specialize.h
267
bIsNaN = float64_is_nan( b );
lib/libc/softfloat/softfloat-specialize.h
268
bIsSignalingNaN = float64_is_signaling_nan( b );
lib/libc/softfloat/softfloat-specialize.h
270
b |= FLOAT64_MANGLE(LIT64( 0x0008000000000000 ));
lib/libc/softfloat/softfloat-specialize.h
273
return ( aIsSignalingNaN & bIsNaN ) ? b : a;
lib/libc/softfloat/softfloat-specialize.h
276
return b;
lib/libc/softfloat/softfloat-specialize.h
366
static floatx80 propagateFloatx80NaN( floatx80 a, floatx80 b )
lib/libc/softfloat/softfloat-specialize.h
372
bIsNaN = floatx80_is_nan( b );
lib/libc/softfloat/softfloat-specialize.h
373
bIsSignalingNaN = floatx80_is_signaling_nan( b );
lib/libc/softfloat/softfloat-specialize.h
375
b.low |= LIT64( 0xC000000000000000 );
lib/libc/softfloat/softfloat-specialize.h
378
return ( aIsSignalingNaN & bIsNaN ) ? b : a;
lib/libc/softfloat/softfloat-specialize.h
381
return b;
lib/libc/softfloat/softfloat-specialize.h
470
static float128 propagateFloat128NaN( float128 a, float128 b )
lib/libc/softfloat/softfloat-specialize.h
476
bIsNaN = float128_is_nan( b );
lib/libc/softfloat/softfloat-specialize.h
477
bIsSignalingNaN = float128_is_signaling_nan( b );
lib/libc/softfloat/softfloat-specialize.h
479
b.high |= LIT64( 0x0000800000000000 );
lib/libc/softfloat/softfloat-specialize.h
482
return ( aIsSignalingNaN & bIsNaN ) ? b : a;
lib/libc/softfloat/softfloat-specialize.h
485
return b;
lib/libc/softfloat/softfloat.c
1000
if ( bSig ) return propagateFloat32NaN( a, b );
lib/libc/softfloat/softfloat.c
1035
float32 float32_div( float32 a, float32 b )
lib/libc/softfloat/softfloat.c
1044
bSig = extractFloat32Frac( b );
lib/libc/softfloat/softfloat.c
1045
bExp = extractFloat32Exp( b );
lib/libc/softfloat/softfloat.c
1046
bSign = extractFloat32Sign( b );
lib/libc/softfloat/softfloat.c
1049
if ( aSig ) return propagateFloat32NaN( a, b );
lib/libc/softfloat/softfloat.c
1051
if ( bSig ) return propagateFloat32NaN( a, b );
lib/libc/softfloat/softfloat.c
1058
if ( bSig ) return propagateFloat32NaN( a, b );
lib/libc/softfloat/softfloat.c
1105
float32 float32_rem( float32 a, float32 b )
lib/libc/softfloat/softfloat.c
1115
bSig = extractFloat32Frac( b );
lib/libc/softfloat/softfloat.c
1116
bExp = extractFloat32Exp( b );
lib/libc/softfloat/softfloat.c
1117
bSign = extractFloat32Sign( b );
lib/libc/softfloat/softfloat.c
1120
return propagateFloat32NaN( a, b );
lib/libc/softfloat/softfloat.c
1126
if ( bSig ) return propagateFloat32NaN( a, b );
lib/libc/softfloat/softfloat.c
1251
flag float32_eq( float32 a, float32 b )
lib/libc/softfloat/softfloat.c
1255
|| ( ( extractFloat32Exp( b ) == 0xFF ) && extractFloat32Frac( b ) )
lib/libc/softfloat/softfloat.c
1257
if ( float32_is_signaling_nan( a ) || float32_is_signaling_nan( b ) ) {
lib/libc/softfloat/softfloat.c
1262
return ( a == b ) || ( (bits32) ( ( a | b )<<1 ) == 0 );
lib/libc/softfloat/softfloat.c
1274
flag float32_le( float32 a, float32 b )
lib/libc/softfloat/softfloat.c
1279
|| ( ( extractFloat32Exp( b ) == 0xFF ) && extractFloat32Frac( b ) )
lib/libc/softfloat/softfloat.c
1285
bSign = extractFloat32Sign( b );
lib/libc/softfloat/softfloat.c
1286
if ( aSign != bSign ) return aSign || ( (bits32) ( ( a | b )<<1 ) == 0 );
lib/libc/softfloat/softfloat.c
1287
return ( a == b ) || ( aSign ^ ( a < b ) );
lib/libc/softfloat/softfloat.c
1298
flag float32_lt( float32 a, float32 b )
lib/libc/softfloat/softfloat.c
1303
|| ( ( extractFloat32Exp( b ) == 0xFF ) && extractFloat32Frac( b ) )
lib/libc/softfloat/softfloat.c
1309
bSign = extractFloat32Sign( b );
lib/libc/softfloat/softfloat.c
1310
if ( aSign != bSign ) return aSign && ( (bits32) ( ( a | b )<<1 ) != 0 );
lib/libc/softfloat/softfloat.c
1311
return ( a != b ) && ( aSign ^ ( a < b ) );
lib/libc/softfloat/softfloat.c
1324
flag float32_eq_signaling( float32 a, float32 b )
lib/libc/softfloat/softfloat.c
1328
|| ( ( extractFloat32Exp( b ) == 0xFF ) && extractFloat32Frac( b ) )
lib/libc/softfloat/softfloat.c
1333
return ( a == b ) || ( (bits32) ( ( a | b )<<1 ) == 0 );
lib/libc/softfloat/softfloat.c
1345
flag float32_le_quiet( float32 a, float32 b )
lib/libc/softfloat/softfloat.c
1351
|| ( ( extractFloat32Exp( b ) == 0xFF ) && extractFloat32Frac( b ) )
lib/libc/softfloat/softfloat.c
1353
if ( float32_is_signaling_nan( a ) || float32_is_signaling_nan( b ) ) {
lib/libc/softfloat/softfloat.c
1359
bSign = extractFloat32Sign( b );
lib/libc/softfloat/softfloat.c
1360
if ( aSign != bSign ) return aSign || ( (bits32) ( ( a | b )<<1 ) == 0 );
lib/libc/softfloat/softfloat.c
1361
return ( a == b ) || ( aSign ^ ( a < b ) );
lib/libc/softfloat/softfloat.c
1373
flag float32_lt_quiet( float32 a, float32 b )
lib/libc/softfloat/softfloat.c
1378
|| ( ( extractFloat32Exp( b ) == 0xFF ) && extractFloat32Frac( b ) )
lib/libc/softfloat/softfloat.c
1380
if ( float32_is_signaling_nan( a ) || float32_is_signaling_nan( b ) ) {
lib/libc/softfloat/softfloat.c
1386
bSign = extractFloat32Sign( b );
lib/libc/softfloat/softfloat.c
1387
if ( aSign != bSign ) return aSign && ( (bits32) ( ( a | b )<<1 ) != 0 );
lib/libc/softfloat/softfloat.c
1388
return ( a != b ) && ( aSign ^ ( a < b ) );
lib/libc/softfloat/softfloat.c
1665
static float64 addFloat64Sigs( float64 a, float64 b, flag zSign )
lib/libc/softfloat/softfloat.c
1674
bSig1 = extractFloat64Frac1( b );
lib/libc/softfloat/softfloat.c
1675
bSig0 = extractFloat64Frac0( b );
lib/libc/softfloat/softfloat.c
1676
bExp = extractFloat64Exp( b );
lib/libc/softfloat/softfloat.c
1680
if ( aSig0 | aSig1 ) return propagateFloat64NaN( a, b );
lib/libc/softfloat/softfloat.c
1695
if ( bSig0 | bSig1 ) return propagateFloat64NaN( a, b );
lib/libc/softfloat/softfloat.c
1711
return propagateFloat64NaN( a, b );
lib/libc/softfloat/softfloat.c
1743
static float64 subFloat64Sigs( float64 a, float64 b, flag zSign )
lib/libc/softfloat/softfloat.c
1752
bSig1 = extractFloat64Frac1( b );
lib/libc/softfloat/softfloat.c
1753
bSig0 = extractFloat64Frac0( b );
lib/libc/softfloat/softfloat.c
1754
bExp = extractFloat64Exp( b );
lib/libc/softfloat/softfloat.c
1762
return propagateFloat64NaN( a, b );
lib/libc/softfloat/softfloat.c
1778
if ( bSig0 | bSig1 ) return propagateFloat64NaN( a, b );
lib/libc/softfloat/softfloat.c
1796
if ( aSig0 | aSig1 ) return propagateFloat64NaN( a, b );
lib/libc/softfloat/softfloat.c
1823
float64 float64_add( float64 a, float64 b )
lib/libc/softfloat/softfloat.c
1828
bSign = extractFloat64Sign( b );
lib/libc/softfloat/softfloat.c
1830
return addFloat64Sigs( a, b, aSign );
lib/libc/softfloat/softfloat.c
1833
return subFloat64Sigs( a, b, aSign );
lib/libc/softfloat/softfloat.c
1845
float64 float64_sub( float64 a, float64 b )
lib/libc/softfloat/softfloat.c
1850
bSign = extractFloat64Sign( b );
lib/libc/softfloat/softfloat.c
1852
return subFloat64Sigs( a, b, aSign );
lib/libc/softfloat/softfloat.c
1855
return addFloat64Sigs( a, b, aSign );
lib/libc/softfloat/softfloat.c
1867
float64 float64_mul( float64 a, float64 b )
lib/libc/softfloat/softfloat.c
1877
bSig1 = extractFloat64Frac1( b );
lib/libc/softfloat/softfloat.c
1878
bSig0 = extractFloat64Frac0( b );
lib/libc/softfloat/softfloat.c
1879
bExp = extractFloat64Exp( b );
lib/libc/softfloat/softfloat.c
1880
bSign = extractFloat64Sign( b );
lib/libc/softfloat/softfloat.c
1885
return propagateFloat64NaN( a, b );
lib/libc/softfloat/softfloat.c
1891
if ( bSig0 | bSig1 ) return propagateFloat64NaN( a, b );
lib/libc/softfloat/softfloat.c
1929
float64 float64_div( float64 a, float64 b )
lib/libc/softfloat/softfloat.c
1940
bSig1 = extractFloat64Frac1( b );
lib/libc/softfloat/softfloat.c
1941
bSig0 = extractFloat64Frac0( b );
lib/libc/softfloat/softfloat.c
1942
bExp = extractFloat64Exp( b );
lib/libc/softfloat/softfloat.c
1943
bSign = extractFloat64Sign( b );
lib/libc/softfloat/softfloat.c
1946
if ( aSig0 | aSig1 ) return propagateFloat64NaN( a, b );
lib/libc/softfloat/softfloat.c
1948
if ( bSig0 | bSig1 ) return propagateFloat64NaN( a, b );
lib/libc/softfloat/softfloat.c
1954
if ( bSig0 | bSig1 ) return propagateFloat64NaN( a, b );
lib/libc/softfloat/softfloat.c
2010
float64 float64_rem( float64 a, float64 b )
lib/libc/softfloat/softfloat.c
2023
bSig1 = extractFloat64Frac1( b );
lib/libc/softfloat/softfloat.c
2024
bSig0 = extractFloat64Frac0( b );
lib/libc/softfloat/softfloat.c
2025
bExp = extractFloat64Exp( b );
lib/libc/softfloat/softfloat.c
2026
bSign = extractFloat64Sign( b );
lib/libc/softfloat/softfloat.c
2030
return propagateFloat64NaN( a, b );
lib/libc/softfloat/softfloat.c
2035
if ( bSig0 | bSig1 ) return propagateFloat64NaN( a, b );
lib/libc/softfloat/softfloat.c
2185
flag float64_eq( float64 a, float64 b )
lib/libc/softfloat/softfloat.c
2190
|| ( ( extractFloat64Exp( b ) == 0x7FF )
lib/libc/softfloat/softfloat.c
2191
&& ( extractFloat64Frac0( b ) | extractFloat64Frac1( b ) ) )
lib/libc/softfloat/softfloat.c
2193
if ( float64_is_signaling_nan( a ) || float64_is_signaling_nan( b ) ) {
lib/libc/softfloat/softfloat.c
2198
return ( a == b ) ||
lib/libc/softfloat/softfloat.c
2199
( (bits64) ( ( FLOAT64_DEMANGLE(a) | FLOAT64_DEMANGLE(b) )<<1 ) == 0 );
lib/libc/softfloat/softfloat.c
2211
flag float64_le( float64 a, float64 b )
lib/libc/softfloat/softfloat.c
2217
|| ( ( extractFloat64Exp( b ) == 0x7FF )
lib/libc/softfloat/softfloat.c
2218
&& ( extractFloat64Frac0( b ) | extractFloat64Frac1( b ) ) )
lib/libc/softfloat/softfloat.c
2224
bSign = extractFloat64Sign( b );
lib/libc/softfloat/softfloat.c
2227
( (bits64) ( ( FLOAT64_DEMANGLE(a) | FLOAT64_DEMANGLE(b) )<<1 ) ==
lib/libc/softfloat/softfloat.c
2229
return ( a == b ) ||
lib/libc/softfloat/softfloat.c
2230
( aSign ^ ( FLOAT64_DEMANGLE(a) < FLOAT64_DEMANGLE(b) ) );
lib/libc/softfloat/softfloat.c
2240
flag float64_lt( float64 a, float64 b )
lib/libc/softfloat/softfloat.c
2246
|| ( ( extractFloat64Exp( b ) == 0x7FF )
lib/libc/softfloat/softfloat.c
2247
&& ( extractFloat64Frac0( b ) | extractFloat64Frac1( b ) ) )
lib/libc/softfloat/softfloat.c
2253
bSign = extractFloat64Sign( b );
lib/libc/softfloat/softfloat.c
2256
( (bits64) ( ( FLOAT64_DEMANGLE(a) | FLOAT64_DEMANGLE(b) )<<1 ) !=
lib/libc/softfloat/softfloat.c
2258
return ( a != b ) &&
lib/libc/softfloat/softfloat.c
2259
( aSign ^ ( FLOAT64_DEMANGLE(a) < FLOAT64_DEMANGLE(b) ) );
lib/libc/softfloat/softfloat.c
2272
flag float64_eq_signaling( float64 a, float64 b )
lib/libc/softfloat/softfloat.c
2277
|| ( ( extractFloat64Exp( b ) == 0x7FF )
lib/libc/softfloat/softfloat.c
2278
&& ( extractFloat64Frac0( b ) | extractFloat64Frac1( b ) ) )
lib/libc/softfloat/softfloat.c
2283
return ( a == b ) || ( (bits64) ( ( a | b )<<1 ) == 0 );
lib/libc/softfloat/softfloat.c
2295
flag float64_le_quiet( float64 a, float64 b )
lib/libc/softfloat/softfloat.c
2301
|| ( ( extractFloat64Exp( b ) == 0x7FF )
lib/libc/softfloat/softfloat.c
2302
&& ( extractFloat64Frac0( b ) | extractFloat64Frac1( b ) ) )
lib/libc/softfloat/softfloat.c
2304
if ( float64_is_signaling_nan( a ) || float64_is_signaling_nan( b ) ) {
lib/libc/softfloat/softfloat.c
2310
bSign = extractFloat64Sign( b );
lib/libc/softfloat/softfloat.c
2311
if ( aSign != bSign ) return aSign || ( (bits64) ( ( a | b )<<1 ) == 0 );
lib/libc/softfloat/softfloat.c
2312
return ( a == b ) || ( aSign ^ ( a < b ) );
lib/libc/softfloat/softfloat.c
2324
flag float64_lt_quiet( float64 a, float64 b )
lib/libc/softfloat/softfloat.c
2330
|| ( ( extractFloat64Exp( b ) == 0x7FF )
lib/libc/softfloat/softfloat.c
2331
&& ( extractFloat64Frac0( b ) | extractFloat64Frac1( b ) ) )
lib/libc/softfloat/softfloat.c
2333
if ( float64_is_signaling_nan( a ) || float64_is_signaling_nan( b ) ) {
lib/libc/softfloat/softfloat.c
2339
bSign = extractFloat64Sign( b );
lib/libc/softfloat/softfloat.c
2340
if ( aSign != bSign ) return aSign && ( (bits64) ( ( a | b )<<1 ) != 0 );
lib/libc/softfloat/softfloat.c
2341
return ( a != b ) && ( aSign ^ ( a < b ) );
lib/libc/softfloat/softfloat.c
786
static float32 addFloat32Sigs( float32 a, float32 b, flag zSign )
lib/libc/softfloat/softfloat.c
794
bSig = extractFloat32Frac( b );
lib/libc/softfloat/softfloat.c
795
bExp = extractFloat32Exp( b );
lib/libc/softfloat/softfloat.c
801
if ( aSig ) return propagateFloat32NaN( a, b );
lib/libc/softfloat/softfloat.c
815
if ( bSig ) return propagateFloat32NaN( a, b );
lib/libc/softfloat/softfloat.c
829
if ( aSig | bSig ) return propagateFloat32NaN( a, b );
lib/libc/softfloat/softfloat.c
858
static float32 subFloat32Sigs( float32 a, float32 b, flag zSign )
lib/libc/softfloat/softfloat.c
866
bSig = extractFloat32Frac( b );
lib/libc/softfloat/softfloat.c
867
bExp = extractFloat32Exp( b );
lib/libc/softfloat/softfloat.c
874
if ( aSig | bSig ) return propagateFloat32NaN( a, b );
lib/libc/softfloat/softfloat.c
887
if ( bSig ) return propagateFloat32NaN( a, b );
lib/libc/softfloat/softfloat.c
905
if ( aSig ) return propagateFloat32NaN( a, b );
lib/libc/softfloat/softfloat.c
932
float32 float32_add( float32 a, float32 b )
lib/libc/softfloat/softfloat.c
937
bSign = extractFloat32Sign( b );
lib/libc/softfloat/softfloat.c
939
return addFloat32Sigs( a, b, aSign );
lib/libc/softfloat/softfloat.c
942
return subFloat32Sigs( a, b, aSign );
lib/libc/softfloat/softfloat.c
954
float32 float32_sub( float32 a, float32 b )
lib/libc/softfloat/softfloat.c
959
bSign = extractFloat32Sign( b );
lib/libc/softfloat/softfloat.c
961
return subFloat32Sigs( a, b, aSign );
lib/libc/softfloat/softfloat.c
964
return addFloat32Sigs( a, b, aSign );
lib/libc/softfloat/softfloat.c
976
float32 float32_mul( float32 a, float32 b )
lib/libc/softfloat/softfloat.c
985
bSig = extractFloat32Frac( b );
lib/libc/softfloat/softfloat.c
986
bExp = extractFloat32Exp( b );
lib/libc/softfloat/softfloat.c
987
bSign = extractFloat32Sign( b );
lib/libc/softfloat/softfloat.c
991
return propagateFloat32NaN( a, b );
lib/libc/softfloat/timesoftfloat.c
1252
floatx80 a, b;
lib/libc/softfloat/timesoftfloat.c
1262
b.low = inputs_floatx80[ inputNumB ].low;
lib/libc/softfloat/timesoftfloat.c
1263
b.high = inputs_floatx80[ inputNumB ].high;
lib/libc/softfloat/timesoftfloat.c
1264
function( a, b );
lib/libc/softfloat/timesoftfloat.c
1277
b.low = inputs_floatx80[ inputNumB ].low;
lib/libc/softfloat/timesoftfloat.c
1278
b.high = inputs_floatx80[ inputNumB ].high;
lib/libc/softfloat/timesoftfloat.c
1279
function( a, b );
lib/libc/softfloat/timesoftfloat.c
1294
floatx80 a, b;
lib/libc/softfloat/timesoftfloat.c
1304
b.low = inputs_floatx80[ inputNumB ].low;
lib/libc/softfloat/timesoftfloat.c
1305
b.high = inputs_floatx80[ inputNumB ].high;
lib/libc/softfloat/timesoftfloat.c
1306
function( a, b );
lib/libc/softfloat/timesoftfloat.c
1319
b.low = inputs_floatx80[ inputNumB ].low;
lib/libc/softfloat/timesoftfloat.c
1320
b.high = inputs_floatx80[ inputNumB ].high;
lib/libc/softfloat/timesoftfloat.c
1321
function( a, b );
lib/libc/softfloat/timesoftfloat.c
1647
float128 a, b;
lib/libc/softfloat/timesoftfloat.c
1657
b.low = inputs_float128[ inputNumB ].low;
lib/libc/softfloat/timesoftfloat.c
1658
b.high = inputs_float128[ inputNumB ].high;
lib/libc/softfloat/timesoftfloat.c
1659
function( a, b );
lib/libc/softfloat/timesoftfloat.c
1672
b.low = inputs_float128[ inputNumB ].low;
lib/libc/softfloat/timesoftfloat.c
1673
b.high = inputs_float128[ inputNumB ].high;
lib/libc/softfloat/timesoftfloat.c
1674
function( a, b );
lib/libc/softfloat/timesoftfloat.c
1689
float128 a, b;
lib/libc/softfloat/timesoftfloat.c
1699
b.low = inputs_float128[ inputNumB ].low;
lib/libc/softfloat/timesoftfloat.c
1700
b.high = inputs_float128[ inputNumB ].high;
lib/libc/softfloat/timesoftfloat.c
1701
function( a, b );
lib/libc/softfloat/timesoftfloat.c
1714
b.low = inputs_float128[ inputNumB ].low;
lib/libc/softfloat/timesoftfloat.c
1715
b.high = inputs_float128[ inputNumB ].high;
lib/libc/softfloat/timesoftfloat.c
1716
function( a, b );
lib/libc/softfloat/unorddf2.c
15
__unorddf2(float64 a, float64 b)
lib/libc/softfloat/unorddf2.c
23
return 1 ^ (float64_eq(a, a) & float64_eq(b, b));
lib/libc/softfloat/unordsf2.c
15
__unordsf2(float32 a, float32 b)
lib/libc/softfloat/unordsf2.c
23
return 1 ^ (float32_eq(a, a) & float32_eq(b, b));
lib/libc/stdio/fmemopen.c
37
fmemopen_read(void *v, char *b, int l)
lib/libc/stdio/fmemopen.c
43
b[i] = st->string[st->pos + i];
lib/libc/stdio/fmemopen.c
50
fmemopen_write(void *v, const char *b, int l)
lib/libc/stdio/fmemopen.c
59
st->string[st->pos + i] = b[i];
lib/libc/stdio/fvwrite.c
64
#define MIN(a, b) ((a) < (b) ? (a) : (b))
lib/libc/stdio/open_memstream.c
27
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
lib/libc/stdio/open_memstream.c
39
memstream_write(void *v, const char *b, int l)
lib/libc/stdio/open_memstream.c
61
st->string[st->pos + i] = b[i];
lib/libc/stdio/open_wmemstream.c
28
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
lib/libc/stdio/open_wmemstream.c
41
wmemstream_write(void *v, const char *b, int l)
lib/libc/stdio/open_wmemstream.c
63
len = mbsnrtowcs(st->string + st->pos, &b, nmc, l, &st->mbs);
lib/libc/stdlib/getopt_long.c
109
gcd(int a, int b)
lib/libc/stdlib/getopt_long.c
113
c = a % b;
lib/libc/stdlib/getopt_long.c
115
a = b;
lib/libc/stdlib/getopt_long.c
116
b = c;
lib/libc/stdlib/getopt_long.c
117
c = a % b;
lib/libc/stdlib/getopt_long.c
120
return (b);
lib/libc/stdlib/heapsort.c
45
#define SWAP(a, b, count, size, tmp) { \
lib/libc/stdlib/heapsort.c
49
*a++ = *b; \
lib/libc/stdlib/heapsort.c
50
*b++ = tmp; \
lib/libc/stdlib/heapsort.c
55
#define COPY(a, b, count, size, tmp1, tmp2) { \
lib/libc/stdlib/heapsort.c
58
tmp2 = b; \
lib/libc/stdlib/malloc.c
505
char *q, b[16];
lib/libc/stdlib/malloc.c
520
sb = sizeof(b);
lib/libc/stdlib/malloc.c
521
j = sysctl(mib, 2, b, &sb, NULL, 0);
lib/libc/stdlib/malloc.c
524
p = b;
lib/libc/stdlib/malloc.c
72
#define B2SIZE(b) ((b) * MALLOC_MINSIZE)
lib/libc/stdlib/malloc.c
73
#define B2ALLOC(b) ((b) == 0 ? MALLOC_MINSIZE : \
lib/libc/stdlib/malloc.c
74
(b) * MALLOC_MINSIZE)
lib/libc/stdlib/merge.c
135
b = f1, t = l1;
lib/libc/stdlib/merge.c
139
b = f2, t = l2;
lib/libc/stdlib/merge.c
143
while ((b += size) < t && cmp(q, b) >sense)
lib/libc/stdlib/merge.c
150
if ((p = (b + i)) >= t) {
lib/libc/stdlib/merge.c
151
if ((p = t - size) > b &&
lib/libc/stdlib/merge.c
155
b = p;
lib/libc/stdlib/merge.c
163
b = p;
lib/libc/stdlib/merge.c
164
while (t > b+size) {
lib/libc/stdlib/merge.c
165
i = (((t - b) / size) >> 1) * size;
lib/libc/stdlib/merge.c
166
if ((*cmp)(q, p = b + i) <= sense)
lib/libc/stdlib/merge.c
169
b = p;
lib/libc/stdlib/merge.c
174
p = b + (i >>= 1)) <= sense)
lib/libc/stdlib/merge.c
177
b = p;
lib/libc/stdlib/merge.c
178
COPY: b = t;
lib/libc/stdlib/merge.c
183
ICOPY_LIST(f2, tp2, b);
lib/libc/stdlib/merge.c
186
CCOPY_LIST(f2, tp2, b);
lib/libc/stdlib/merge.c
191
ICOPY_LIST(f1, tp2, b);
lib/libc/stdlib/merge.c
194
CCOPY_LIST(f1, tp2, b);
lib/libc/stdlib/merge.c
225
#define swap(a, b) { \
lib/libc/stdlib/merge.c
226
s = b; \
lib/libc/stdlib/merge.c
96
u_char *f1, *f2, *t, *b, *tp2, *q, *l1, *l2;
lib/libc/stdlib/qsort.c
100
*(int *)(b) = t; \
lib/libc/stdlib/qsort.c
105
*(long *)(a) = *(long *)(b); \
lib/libc/stdlib/qsort.c
106
*(long *)(b) = t; \
lib/libc/stdlib/qsort.c
110
swapfunc(a, b, es, swaptype); \
lib/libc/stdlib/qsort.c
114
#define vecswap(a, b, n) if ((n) > 0) swapfunc(a, b, n, swaptype)
lib/libc/stdlib/qsort.c
117
med3(char *a, char *b, char *c, int (*cmp)(const void *, const void *))
lib/libc/stdlib/qsort.c
119
return cmp(a, b) < 0 ?
lib/libc/stdlib/qsort.c
120
(cmp(b, c) < 0 ? b : (cmp(a, c) < 0 ? c : a ))
lib/libc/stdlib/qsort.c
121
:(cmp(b, c) > 0 ? b : (cmp(a, c) < 0 ? a : c ));
lib/libc/stdlib/qsort.c
37
#define min(a, b) (a) < (b) ? a : b
lib/libc/stdlib/qsort.c
78
swapfunc(char *a, char *b, size_t n, int swaptype)
lib/libc/stdlib/qsort.c
83
swapcode(int, a, b, n);
lib/libc/stdlib/qsort.c
87
swapcode(long, a, b, n);
lib/libc/stdlib/qsort.c
90
swapcode(char, a, b, n);
lib/libc/stdlib/qsort.c
95
#define swap(a, b) do { \
lib/libc/stdlib/qsort.c
99
*(int *)(a) = *(int *)(b); \
lib/libc/stdlib/radixsort.c
118
#define swap(a, b, t) t = a, a = b, b = t
lib/libc/stdlib/radixsort.c
278
simplesort(const u_char **a, int n, int b, const u_char *tr, u_int endch)
lib/libc/stdlib/radixsort.c
286
for (s = ai[0] + b, t = ai[-1] + b;
lib/libc/string/bzero.c
38
bzero(void *b, size_t length)
lib/libc/string/bzero.c
42
for (p = b; length--;)
lib/libc/string/memmem.c
58
#define MAX(a,b) ((a)>(b)?(a):(b))
lib/libc/string/memmem.c
59
#define MIN(a,b) ((a)<(b)?(a):(b))
lib/libc/string/memmem.c
61
#define BITOP(a,b,op) \
lib/libc/string/memmem.c
62
((a)[(size_t)(b)/(8*sizeof *(a))] op (size_t)1<<((size_t)(b)%(8*sizeof *(a))))
lib/libc/string/strstr.c
55
#define MAX(a,b) ((a)>(b)?(a):(b))
lib/libc/string/strstr.c
56
#define MIN(a,b) ((a)<(b)?(a):(b))
lib/libc/string/strstr.c
58
#define BITOP(a,b,op) \
lib/libc/string/strstr.c
59
((a)[(size_t)(b)/(8*sizeof *(a))] op (size_t)1<<((size_t)(b)%(8*sizeof *(a))))
lib/libc/time/localtime.c
173
static int typesequiv(const struct state * sp, int a, int b);
lib/libc/time/localtime.c
579
typesequiv(const struct state *sp, int a, int b)
lib/libc/time/localtime.c
585
b < 0 || b >= sp->typecnt)
lib/libc/time/localtime.c
589
const struct ttinfo * bp = &sp->ttis[b];
lib/libc/time/localtime.c
92
#define BIGGEST(a, b) (((a) > (b)) ? (a) : (b))
lib/libc/time/strftime.c
523
_yconv(int a, int b, int convert_top, int convert_yy, char *pt, const char *ptlim)
lib/libc/time/strftime.c
529
trail = a % DIVISOR + b % DIVISOR;
lib/libc/time/strftime.c
530
lead = a / DIVISOR + b / DIVISOR + trail / DIVISOR;
lib/libc/time/tzfile.h
177
#define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
lib/libc/time/wcsftime.c
524
_yconv(int a, int b, int convert_top, int convert_yy, wchar_t *pt,
lib/libc/time/wcsftime.c
531
trail = a % DIVISOR + b % DIVISOR;
lib/libc/time/wcsftime.c
532
lead = a / DIVISOR + b / DIVISOR + trail / DIVISOR;
lib/libc/uuid/uuid_compare.c
37
#define DIFF_RETURN(a, b, field) do { \
lib/libc/uuid/uuid_compare.c
38
if ((a)->field != (b)->field) \
lib/libc/uuid/uuid_compare.c
39
return (((a)->field < (b)->field) ? -1 : 1); \
lib/libc/uuid/uuid_compare.c
51
uuid_compare(const uuid_t *a, const uuid_t *b, uint32_t *status)
lib/libc/uuid/uuid_compare.c
59
if (a == b)
lib/libc/uuid/uuid_compare.c
62
return ((uuid_is_nil(b, NULL)) ? 0 : -1);
lib/libc/uuid/uuid_compare.c
63
if (b == NULL)
lib/libc/uuid/uuid_compare.c
67
DIFF_RETURN(a, b, time_low);
lib/libc/uuid/uuid_compare.c
68
DIFF_RETURN(a, b, time_mid);
lib/libc/uuid/uuid_compare.c
69
DIFF_RETURN(a, b, time_hi_and_version);
lib/libc/uuid/uuid_compare.c
70
DIFF_RETURN(a, b, clock_seq_hi_and_reserved);
lib/libc/uuid/uuid_compare.c
71
DIFF_RETURN(a, b, clock_seq_low);
lib/libc/uuid/uuid_compare.c
73
res = memcmp(a->node, b->node, sizeof(a->node));
lib/libc/uuid/uuid_equal.c
42
uuid_equal(const uuid_t *a, const uuid_t *b, uint32_t *status)
lib/libc/uuid/uuid_equal.c
48
if (a == b)
lib/libc/uuid/uuid_equal.c
51
return (uuid_is_nil(b, NULL));
lib/libc/uuid/uuid_equal.c
52
if (b == NULL)
lib/libc/uuid/uuid_equal.c
56
return ((memcmp(a, b, sizeof(uuid_t))) ? 0 : 1);
lib/libcbor/src/cbor.c
297
static int _pow(int b, int ex) {
lib/libcbor/src/cbor.c
299
int res = b;
lib/libcbor/src/cbor.c
300
while (--ex > 0) res *= b;
lib/libcbor/src/cbor/internal/memory_utils.c
25
bool _cbor_safe_to_multiply(size_t a, size_t b) {
lib/libcbor/src/cbor/internal/memory_utils.c
26
if (a <= 1 || b <= 1) return true;
lib/libcbor/src/cbor/internal/memory_utils.c
27
return _cbor_highest_bit(a) + _cbor_highest_bit(b) <= sizeof(size_t) * 8;
lib/libcbor/src/cbor/internal/memory_utils.c
30
bool _cbor_safe_to_add(size_t a, size_t b) {
lib/libcbor/src/cbor/internal/memory_utils.c
32
size_t sum = a + b;
lib/libcbor/src/cbor/internal/memory_utils.c
33
return sum >= a && sum >= b;
lib/libcbor/src/cbor/internal/memory_utils.c
36
size_t _cbor_safe_signaling_add(size_t a, size_t b) {
lib/libcbor/src/cbor/internal/memory_utils.c
37
if (a == 0 || b == 0) return 0;
lib/libcbor/src/cbor/internal/memory_utils.c
38
if (_cbor_safe_to_add(a, b)) return a + b;
lib/libcbor/src/cbor/internal/memory_utils.h
18
bool _cbor_safe_to_multiply(size_t a, size_t b);
lib/libcbor/src/cbor/internal/memory_utils.h
22
bool _cbor_safe_to_add(size_t a, size_t b);
lib/libcbor/src/cbor/internal/memory_utils.h
26
size_t _cbor_safe_signaling_add(size_t a, size_t b);
lib/libcrypto/arc4random/getentropy_aix.c
47
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
lib/libcrypto/arc4random/getentropy_aix.c
49
#define HX(a, b) \
lib/libcrypto/arc4random/getentropy_aix.c
54
HD(b); \
lib/libcrypto/arc4random/getentropy_hpux.c
51
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
lib/libcrypto/arc4random/getentropy_hpux.c
53
#define HX(a, b) \
lib/libcrypto/arc4random/getentropy_hpux.c
58
HD(b); \
lib/libcrypto/arc4random/getentropy_linux.c
60
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
lib/libcrypto/arc4random/getentropy_linux.c
62
#define HX(a, b) \
lib/libcrypto/arc4random/getentropy_linux.c
67
HD(b); \
lib/libcrypto/arc4random/getentropy_osx.c
62
#define SHA512_Update(a, b, c) (CC_SHA512_Update((a), (b), (c)))
lib/libcrypto/arc4random/getentropy_osx.c
69
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
lib/libcrypto/arc4random/getentropy_osx.c
71
#define HX(a, b) \
lib/libcrypto/arc4random/getentropy_osx.c
76
HD(b); \
lib/libcrypto/arc4random/getentropy_solaris.c
55
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
lib/libcrypto/arc4random/getentropy_solaris.c
57
#define HX(a, b) \
lib/libcrypto/arc4random/getentropy_solaris.c
62
HD(b); \
lib/libcrypto/asn1/a_int.c
119
ASN1_INTEGER_cmp(const ASN1_INTEGER *a, const ASN1_INTEGER *b)
lib/libcrypto/asn1/a_int.c
124
if ((a->type & V_ASN1_NEG) == (b->type & V_ASN1_NEG))
lib/libcrypto/asn1/a_int.c
125
ret = ASN1_STRING_cmp(a, b);
lib/libcrypto/asn1/a_octet.c
94
ASN1_OCTET_STRING_cmp(const ASN1_OCTET_STRING *a, const ASN1_OCTET_STRING *b)
lib/libcrypto/asn1/a_octet.c
96
return ASN1_STRING_cmp(a, b);
lib/libcrypto/asn1/a_string.c
114
ASN1_STRING_cmp(const ASN1_STRING *a, const ASN1_STRING *b)
lib/libcrypto/asn1/a_string.c
118
if (a == NULL || b == NULL)
lib/libcrypto/asn1/a_string.c
120
if ((cmp = (a->length - b->length)) != 0)
lib/libcrypto/asn1/a_string.c
123
if ((cmp = memcmp(a->data, b->data, a->length)) != 0)
lib/libcrypto/asn1/a_string.c
127
return a->type - b->type;
lib/libcrypto/asn1/a_type.c
162
ASN1_TYPE_cmp(const ASN1_TYPE *a, const ASN1_TYPE *b)
lib/libcrypto/asn1/a_type.c
166
if (!a || !b || a->type != b->type)
lib/libcrypto/asn1/a_type.c
171
result = OBJ_cmp(a->value.object, b->value.object);
lib/libcrypto/asn1/a_type.c
174
result = a->value.boolean - b->value.boolean;
lib/libcrypto/asn1/a_type.c
202
(ASN1_STRING *)b->value.ptr);
lib/libcrypto/asn1/asn1.h
514
int ASN1_TYPE_cmp(const ASN1_TYPE *a, const ASN1_TYPE *b);
lib/libcrypto/asn1/asn1.h
531
int ASN1_STRING_cmp(const ASN1_STRING *a, const ASN1_STRING *b);
lib/libcrypto/asn1/asn1.h
589
const ASN1_OCTET_STRING *b);
lib/libcrypto/asn1/asn1_item.c
153
unsigned char *b = NULL;
lib/libcrypto/asn1/asn1_item.c
161
i = ASN1_item_i2d(x, &b, it);
lib/libcrypto/asn1/asn1_item.c
162
if (b == NULL) {
lib/libcrypto/asn1/asn1_item.c
166
p = b;
lib/libcrypto/asn1/asn1_item.c
168
free(b);
lib/libcrypto/asn1/asn1_item.c
475
BUF_MEM *b;
lib/libcrypto/asn1/asn1_item.c
485
b = BUF_MEM_new();
lib/libcrypto/asn1/asn1_item.c
486
if (b == NULL) {
lib/libcrypto/asn1/asn1_item.c
497
!BUF_MEM_grow_clean(b, len + want)) {
lib/libcrypto/asn1/asn1_item.c
501
i = BIO_read(in, &(b->data[len]), want);
lib/libcrypto/asn1/asn1_item.c
516
p = (unsigned char *) & (b->data[off]);
lib/libcrypto/asn1/asn1_item.c
567
if (!BUF_MEM_grow_clean(b, len + chunk)) {
lib/libcrypto/asn1/asn1_item.c
573
i = BIO_read(in, &(b->data[len]), chunk);
lib/libcrypto/asn1/asn1_item.c
606
*pb = b;
lib/libcrypto/asn1/asn1_item.c
610
if (b != NULL)
lib/libcrypto/asn1/asn1_item.c
611
BUF_MEM_free(b);
lib/libcrypto/asn1/asn1_item.c
618
BUF_MEM *b = NULL;
lib/libcrypto/asn1/asn1_item.c
623
len = asn1_d2i_read_bio(in, &b);
lib/libcrypto/asn1/asn1_item.c
627
p = (const unsigned char *)b->data;
lib/libcrypto/asn1/asn1_item.c
631
if (b != NULL)
lib/libcrypto/asn1/asn1_item.c
632
BUF_MEM_free(b);
lib/libcrypto/asn1/asn1_item.c
640
BIO *b;
lib/libcrypto/asn1/asn1_item.c
643
if ((b = BIO_new(BIO_s_file())) == NULL) {
lib/libcrypto/asn1/asn1_item.c
647
BIO_set_fp(b, in, BIO_NOCLOSE);
lib/libcrypto/asn1/asn1_item.c
648
ret = ASN1_item_d2i_bio(it, b, x);
lib/libcrypto/asn1/asn1_item.c
649
BIO_free(b);
lib/libcrypto/asn1/asn1_item.c
657
unsigned char *b = NULL;
lib/libcrypto/asn1/asn1_item.c
660
n = ASN1_item_i2d(x, &b, it);
lib/libcrypto/asn1/asn1_item.c
661
if (b == NULL) {
lib/libcrypto/asn1/asn1_item.c
667
i = BIO_write(out, &(b[j]), n);
lib/libcrypto/asn1/asn1_item.c
677
free(b);
lib/libcrypto/asn1/asn1_item.c
685
BIO *b;
lib/libcrypto/asn1/asn1_item.c
688
if ((b = BIO_new(BIO_s_file())) == NULL) {
lib/libcrypto/asn1/asn1_item.c
692
BIO_set_fp(b, out, BIO_NOCLOSE);
lib/libcrypto/asn1/asn1_item.c
693
ret = ASN1_item_i2d_bio(it, b, x);
lib/libcrypto/asn1/asn1_item.c
694
BIO_free(b);
lib/libcrypto/asn1/asn1_old.c
102
if ((b = BIO_new(BIO_s_file())) == NULL) {
lib/libcrypto/asn1/asn1_old.c
106
BIO_set_fp(b, in, BIO_NOCLOSE);
lib/libcrypto/asn1/asn1_old.c
107
ret = ASN1_d2i_bio(xnew, d2i, b, x);
lib/libcrypto/asn1/asn1_old.c
108
BIO_free(b);
lib/libcrypto/asn1/asn1_old.c
116
BUF_MEM *b = NULL;
lib/libcrypto/asn1/asn1_old.c
121
len = asn1_d2i_read_bio(in, &b);
lib/libcrypto/asn1/asn1_old.c
125
p = (unsigned char *)b->data;
lib/libcrypto/asn1/asn1_old.c
129
if (b != NULL)
lib/libcrypto/asn1/asn1_old.c
130
BUF_MEM_free(b);
lib/libcrypto/asn1/asn1_old.c
138
BIO *b;
lib/libcrypto/asn1/asn1_old.c
141
if ((b = BIO_new(BIO_s_file())) == NULL) {
lib/libcrypto/asn1/asn1_old.c
145
BIO_set_fp(b, out, BIO_NOCLOSE);
lib/libcrypto/asn1/asn1_old.c
146
ret = ASN1_i2d_bio(i2d, b, x);
lib/libcrypto/asn1/asn1_old.c
147
BIO_free(b);
lib/libcrypto/asn1/asn1_old.c
155
char *b;
lib/libcrypto/asn1/asn1_old.c
160
b = malloc(n);
lib/libcrypto/asn1/asn1_old.c
161
if (b == NULL) {
lib/libcrypto/asn1/asn1_old.c
166
p = (unsigned char *)b;
lib/libcrypto/asn1/asn1_old.c
170
i = BIO_write(out, &(b[j]), n);
lib/libcrypto/asn1/asn1_old.c
180
free(b);
lib/libcrypto/asn1/asn1_old.c
73
unsigned char *b, *p;
lib/libcrypto/asn1/asn1_old.c
82
b = malloc(i + 10);
lib/libcrypto/asn1/asn1_old.c
83
if (b == NULL) {
lib/libcrypto/asn1/asn1_old.c
87
p = b;
lib/libcrypto/asn1/asn1_old.c
89
p2 = b;
lib/libcrypto/asn1/asn1_old.c
91
free(b);
lib/libcrypto/asn1/asn1_old.c
99
BIO *b;
lib/libcrypto/asn1/asn_mime.c
101
const MIME_HEADER * const *b);
lib/libcrypto/asn1/asn_mime.c
103
const MIME_PARAM * const *b);
lib/libcrypto/asn1/asn_mime.c
912
mime_hdr_cmp(const MIME_HEADER * const *a, const MIME_HEADER * const *b)
lib/libcrypto/asn1/asn_mime.c
914
if (!(*a)->name || !(*b)->name)
lib/libcrypto/asn1/asn_mime.c
915
return !!(*a)->name - !!(*b)->name;
lib/libcrypto/asn1/asn_mime.c
916
return (strcmp((*a)->name, (*b)->name));
lib/libcrypto/asn1/asn_mime.c
920
mime_param_cmp(const MIME_PARAM * const *a, const MIME_PARAM * const *b)
lib/libcrypto/asn1/asn_mime.c
922
if (!(*a)->param_name || !(*b)->param_name)
lib/libcrypto/asn1/asn_mime.c
923
return !!(*a)->param_name - !!(*b)->param_name;
lib/libcrypto/asn1/asn_mime.c
924
return (strcmp((*a)->param_name, (*b)->param_name));
lib/libcrypto/asn1/bio_asn1.c
126
static int asn1_bio_flush_ex(BIO *b, BIO_ASN1_BUF_CTX *ctx,
lib/libcrypto/asn1/bio_asn1.c
128
static int asn1_bio_setup_ex(BIO *b, BIO_ASN1_BUF_CTX *ctx,
lib/libcrypto/asn1/bio_asn1.c
152
asn1_bio_new(BIO *b)
lib/libcrypto/asn1/bio_asn1.c
168
b->init = 1;
lib/libcrypto/asn1/bio_asn1.c
169
b->ptr = ctx;
lib/libcrypto/asn1/bio_asn1.c
170
b->flags = 0;
lib/libcrypto/asn1/bio_asn1.c
176
asn1_bio_free(BIO *b)
lib/libcrypto/asn1/bio_asn1.c
178
BIO_ASN1_BUF_CTX *ctx = b->ptr;
lib/libcrypto/asn1/bio_asn1.c
184
ctx->prefix_free(b, &ctx->ex_buf, &ctx->ex_len, &ctx->ex_arg);
lib/libcrypto/asn1/bio_asn1.c
186
ctx->suffix_free(b, &ctx->ex_buf, &ctx->ex_len, &ctx->ex_arg);
lib/libcrypto/asn1/bio_asn1.c
190
b->init = 0;
lib/libcrypto/asn1/bio_asn1.c
191
b->ptr = NULL;
lib/libcrypto/asn1/bio_asn1.c
192
b->flags = 0;
lib/libcrypto/asn1/bio_asn1.c
197
asn1_bio_write(BIO *b, const char *in , int inl)
lib/libcrypto/asn1/bio_asn1.c
203
if (!in || (inl < 0) || (b->next_bio == NULL))
lib/libcrypto/asn1/bio_asn1.c
206
if ((ctx = b->ptr) == NULL)
lib/libcrypto/asn1/bio_asn1.c
217
if (!asn1_bio_setup_ex(b, ctx, ctx->prefix,
lib/libcrypto/asn1/bio_asn1.c
224
ret = asn1_bio_flush_ex(b, ctx, ctx->prefix_free,
lib/libcrypto/asn1/bio_asn1.c
243
ret = BIO_write(b->next_bio,
lib/libcrypto/asn1/bio_asn1.c
263
ret = BIO_write(b->next_bio, in, wrmax);
lib/libcrypto/asn1/bio_asn1.c
278
BIO_clear_retry_flags(b);
lib/libcrypto/asn1/bio_asn1.c
285
BIO_clear_retry_flags(b);
lib/libcrypto/asn1/bio_asn1.c
286
BIO_copy_next_retry(b);
lib/libcrypto/asn1/bio_asn1.c
292
asn1_bio_flush_ex(BIO *b, BIO_ASN1_BUF_CTX *ctx, asn1_ps_func *cleanup,
lib/libcrypto/asn1/bio_asn1.c
300
ret = BIO_write(b->next_bio, ctx->ex_buf + ctx->ex_pos,
lib/libcrypto/asn1/bio_asn1.c
309
cleanup(b, &ctx->ex_buf, &ctx->ex_len,
lib/libcrypto/asn1/bio_asn1.c
320
asn1_bio_setup_ex(BIO *b, BIO_ASN1_BUF_CTX *ctx, asn1_ps_func *setup,
lib/libcrypto/asn1/bio_asn1.c
323
if (setup && !setup(b, &ctx->ex_buf, &ctx->ex_len, &ctx->ex_arg)) {
lib/libcrypto/asn1/bio_asn1.c
324
BIO_clear_retry_flags(b);
lib/libcrypto/asn1/bio_asn1.c
335
asn1_bio_read(BIO *b, char *in , int inl)
lib/libcrypto/asn1/bio_asn1.c
337
if (!b->next_bio)
lib/libcrypto/asn1/bio_asn1.c
339
return BIO_read(b->next_bio, in , inl);
lib/libcrypto/asn1/bio_asn1.c
343
asn1_bio_puts(BIO *b, const char *str)
lib/libcrypto/asn1/bio_asn1.c
345
return asn1_bio_write(b, str, strlen(str));
lib/libcrypto/asn1/bio_asn1.c
349
asn1_bio_gets(BIO *b, char *str, int size)
lib/libcrypto/asn1/bio_asn1.c
351
if (!b->next_bio)
lib/libcrypto/asn1/bio_asn1.c
353
return BIO_gets(b->next_bio, str , size);
lib/libcrypto/asn1/bio_asn1.c
357
asn1_bio_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp)
lib/libcrypto/asn1/bio_asn1.c
359
if (b->next_bio == NULL)
lib/libcrypto/asn1/bio_asn1.c
361
return BIO_callback_ctrl(b->next_bio, cmd, fp);
lib/libcrypto/asn1/bio_asn1.c
365
asn1_bio_ctrl(BIO *b, int cmd, long arg1, void *arg2)
lib/libcrypto/asn1/bio_asn1.c
371
if ((ctx = b->ptr) == NULL)
lib/libcrypto/asn1/bio_asn1.c
396
if (!b->next_bio)
lib/libcrypto/asn1/bio_asn1.c
401
if (!asn1_bio_setup_ex(b, ctx, ctx->suffix,
lib/libcrypto/asn1/bio_asn1.c
407
ret = asn1_bio_flush_ex(b, ctx, ctx->suffix_free,
lib/libcrypto/asn1/bio_asn1.c
414
return BIO_ctrl(b->next_bio, cmd, arg1, arg2);
lib/libcrypto/asn1/bio_asn1.c
416
BIO_clear_retry_flags(b);
lib/libcrypto/asn1/bio_asn1.c
423
if (!b->next_bio)
lib/libcrypto/asn1/bio_asn1.c
425
return BIO_ctrl(b->next_bio, cmd, arg1, arg2);
lib/libcrypto/asn1/bio_asn1.c
433
asn1_bio_set_ex(BIO *b, int cmd, asn1_ps_func *ex_func, asn1_ps_func
lib/libcrypto/asn1/bio_asn1.c
440
return BIO_ctrl(b, cmd, 0, &extmp);
lib/libcrypto/asn1/bio_asn1.c
444
BIO_asn1_set_prefix(BIO *b, asn1_ps_func *prefix, asn1_ps_func *prefix_free)
lib/libcrypto/asn1/bio_asn1.c
446
return asn1_bio_set_ex(b, BIO_C_SET_PREFIX, prefix, prefix_free);
lib/libcrypto/asn1/bio_asn1.c
450
BIO_asn1_set_suffix(BIO *b, asn1_ps_func *suffix, asn1_ps_func *suffix_free)
lib/libcrypto/asn1/bio_asn1.c
452
return asn1_bio_set_ex(b, BIO_C_SET_SUFFIX, suffix, suffix_free);
lib/libcrypto/asn1/bio_ndef.c
100
static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg);
lib/libcrypto/asn1/bio_ndef.c
101
static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, void *parg);
lib/libcrypto/asn1/bio_ndef.c
102
static int ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg);
lib/libcrypto/asn1/bio_ndef.c
103
static int ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen, void *parg);
lib/libcrypto/asn1/bio_ndef.c
174
ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg)
lib/libcrypto/asn1/bio_ndef.c
200
ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, void *parg)
lib/libcrypto/asn1/bio_ndef.c
217
ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen, void *parg)
lib/libcrypto/asn1/bio_ndef.c
224
if (!ndef_prefix_free(b, pbuf, plen, parg))
lib/libcrypto/asn1/bio_ndef.c
234
ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg)
lib/libcrypto/asn1/bio_ndef.c
64
int BIO_asn1_set_prefix(BIO *b, asn1_ps_func *prefix, asn1_ps_func *prefix_free);
lib/libcrypto/asn1/bio_ndef.c
65
int BIO_asn1_set_suffix(BIO *b, asn1_ps_func *suffix, asn1_ps_func *suffix_free);
lib/libcrypto/asn1/t_crl.c
74
BIO *b;
lib/libcrypto/asn1/t_crl.c
77
if ((b = BIO_new(BIO_s_file())) == NULL) {
lib/libcrypto/asn1/t_crl.c
81
BIO_set_fp(b, fp, BIO_NOCLOSE);
lib/libcrypto/asn1/t_crl.c
82
ret = X509_CRL_print(b, x);
lib/libcrypto/asn1/t_crl.c
83
BIO_free(b);
lib/libcrypto/asn1/t_req.c
82
BIO *b;
lib/libcrypto/asn1/t_req.c
85
if ((b = BIO_new(BIO_s_file())) == NULL) {
lib/libcrypto/asn1/t_req.c
89
BIO_set_fp(b, fp, BIO_NOCLOSE);
lib/libcrypto/asn1/t_req.c
90
ret = X509_REQ_print(b, x);
lib/libcrypto/asn1/t_req.c
91
BIO_free(b);
lib/libcrypto/asn1/t_x509.c
88
BIO *b;
lib/libcrypto/asn1/t_x509.c
91
if ((b = BIO_new(BIO_s_file())) == NULL) {
lib/libcrypto/asn1/t_x509.c
95
BIO_set_fp(b, fp, BIO_NOCLOSE);
lib/libcrypto/asn1/t_x509.c
96
ret = X509_print_ex(b, x, nmflag, cflag);
lib/libcrypto/asn1/t_x509.c
97
BIO_free(b);
lib/libcrypto/asn1/tasn_enc.c
419
der_cmp(const void *a, const void *b)
lib/libcrypto/asn1/tasn_enc.c
421
const DER_ENC *d1 = a, *d2 = b;
lib/libcrypto/asn1/x_algor.c
283
X509_ALGOR_cmp(const X509_ALGOR *a, const X509_ALGOR *b)
lib/libcrypto/asn1/x_algor.c
287
if ((cmp = OBJ_cmp(a->algorithm, b->algorithm)) != 0)
lib/libcrypto/asn1/x_algor.c
290
if (a->parameter == NULL && b->parameter == NULL)
lib/libcrypto/asn1/x_algor.c
293
return ASN1_TYPE_cmp(a->parameter, b->parameter);
lib/libcrypto/asn1/x_crl.c
103
X509_REVOKED_cmp(const X509_REVOKED * const *a, const X509_REVOKED * const *b)
lib/libcrypto/asn1/x_crl.c
105
return ASN1_INTEGER_cmp((*a)->serialNumber, (*b)->serialNumber);
lib/libcrypto/bio/bf_buff.c
133
BIO_F_BUFFER_CTX *b;
lib/libcrypto/bio/bf_buff.c
137
b = (BIO_F_BUFFER_CTX *)a->ptr;
lib/libcrypto/bio/bf_buff.c
138
free(b->ibuf);
lib/libcrypto/bio/bf_buff.c
139
free(b->obuf);
lib/libcrypto/bio/bf_buff.c
148
buffer_read(BIO *b, char *out, int outl)
lib/libcrypto/bio/bf_buff.c
155
ctx = (BIO_F_BUFFER_CTX *)b->ptr;
lib/libcrypto/bio/bf_buff.c
157
if ((ctx == NULL) || (b->next_bio == NULL))
lib/libcrypto/bio/bf_buff.c
160
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bf_buff.c
185
i = BIO_read(b->next_bio, out, outl);
lib/libcrypto/bio/bf_buff.c
187
BIO_copy_next_retry(b);
lib/libcrypto/bio/bf_buff.c
203
i = BIO_read(b->next_bio, ctx->ibuf, ctx->ibuf_size);
lib/libcrypto/bio/bf_buff.c
205
BIO_copy_next_retry(b);
lib/libcrypto/bio/bf_buff.c
219
buffer_write(BIO *b, const char *in, int inl)
lib/libcrypto/bio/bf_buff.c
226
ctx = (BIO_F_BUFFER_CTX *)b->ptr;
lib/libcrypto/bio/bf_buff.c
227
if ((ctx == NULL) || (b->next_bio == NULL))
lib/libcrypto/bio/bf_buff.c
230
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bf_buff.c
252
i = BIO_write(b->next_bio, &(ctx->obuf[ctx->obuf_off]),
lib/libcrypto/bio/bf_buff.c
255
BIO_copy_next_retry(b);
lib/libcrypto/bio/bf_buff.c
274
i = BIO_write(b->next_bio, in, inl);
lib/libcrypto/bio/bf_buff.c
276
BIO_copy_next_retry(b);
lib/libcrypto/bio/bf_buff.c
295
buffer_ctrl(BIO *b, int cmd, long num, void *ptr)
lib/libcrypto/bio/bf_buff.c
304
ctx = (BIO_F_BUFFER_CTX *)b->ptr;
lib/libcrypto/bio/bf_buff.c
312
if (b->next_bio == NULL)
lib/libcrypto/bio/bf_buff.c
314
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libcrypto/bio/bf_buff.c
330
if (b->next_bio == NULL)
lib/libcrypto/bio/bf_buff.c
332
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libcrypto/bio/bf_buff.c
338
if (b->next_bio == NULL)
lib/libcrypto/bio/bf_buff.c
340
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libcrypto/bio/bf_buff.c
403
if (b->next_bio == NULL)
lib/libcrypto/bio/bf_buff.c
405
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bf_buff.c
406
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libcrypto/bio/bf_buff.c
407
BIO_copy_next_retry(b);
lib/libcrypto/bio/bf_buff.c
411
if (b->next_bio == NULL)
lib/libcrypto/bio/bf_buff.c
414
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libcrypto/bio/bf_buff.c
419
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bf_buff.c
421
r = BIO_write(b->next_bio,
lib/libcrypto/bio/bf_buff.c
424
BIO_copy_next_retry(b);
lib/libcrypto/bio/bf_buff.c
435
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libcrypto/bio/bf_buff.c
444
if (b->next_bio == NULL)
lib/libcrypto/bio/bf_buff.c
446
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libcrypto/bio/bf_buff.c
456
buffer_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp)
lib/libcrypto/bio/bf_buff.c
460
if (b->next_bio == NULL)
lib/libcrypto/bio/bf_buff.c
464
ret = BIO_callback_ctrl(b->next_bio, cmd, fp);
lib/libcrypto/bio/bf_buff.c
471
buffer_gets(BIO *b, char *buf, int size)
lib/libcrypto/bio/bf_buff.c
477
ctx = (BIO_F_BUFFER_CTX *)b->ptr;
lib/libcrypto/bio/bf_buff.c
479
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bf_buff.c
504
i = BIO_read(b->next_bio, ctx->ibuf, ctx->ibuf_size);
lib/libcrypto/bio/bf_buff.c
506
BIO_copy_next_retry(b);
lib/libcrypto/bio/bf_buff.c
520
buffer_puts(BIO *b, const char *str)
lib/libcrypto/bio/bf_buff.c
522
return (buffer_write(b, str, strlen(str)));
lib/libcrypto/bio/bf_nbio.c
133
nbiof_read(BIO *b, char *out, int outl)
lib/libcrypto/bio/bf_nbio.c
141
if (b->next_bio == NULL)
lib/libcrypto/bio/bf_nbio.c
144
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bf_nbio.c
154
BIO_set_retry_read(b);
lib/libcrypto/bio/bf_nbio.c
156
ret = BIO_read(b->next_bio, out, outl);
lib/libcrypto/bio/bf_nbio.c
158
BIO_copy_next_retry(b);
lib/libcrypto/bio/bf_nbio.c
164
nbiof_write(BIO *b, const char *in, int inl)
lib/libcrypto/bio/bf_nbio.c
173
if (b->next_bio == NULL)
lib/libcrypto/bio/bf_nbio.c
175
nt = (NBIO_TEST *)b->ptr;
lib/libcrypto/bio/bf_nbio.c
177
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bf_nbio.c
192
BIO_set_retry_write(b);
lib/libcrypto/bio/bf_nbio.c
194
ret = BIO_write(b->next_bio, in, inl);
lib/libcrypto/bio/bf_nbio.c
196
BIO_copy_next_retry(b);
lib/libcrypto/bio/bf_nbio.c
204
nbiof_ctrl(BIO *b, int cmd, long num, void *ptr)
lib/libcrypto/bio/bf_nbio.c
208
if (b->next_bio == NULL)
lib/libcrypto/bio/bf_nbio.c
212
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bf_nbio.c
213
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libcrypto/bio/bf_nbio.c
214
BIO_copy_next_retry(b);
lib/libcrypto/bio/bf_nbio.c
220
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libcrypto/bio/bf_nbio.c
227
nbiof_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp)
lib/libcrypto/bio/bf_nbio.c
231
if (b->next_bio == NULL)
lib/libcrypto/bio/bf_nbio.c
235
ret = BIO_callback_ctrl(b->next_bio, cmd, fp);
lib/libcrypto/bio/bf_null.c
119
nullf_read(BIO *b, char *out, int outl)
lib/libcrypto/bio/bf_null.c
125
if (b->next_bio == NULL)
lib/libcrypto/bio/bf_null.c
127
ret = BIO_read(b->next_bio, out, outl);
lib/libcrypto/bio/bf_null.c
128
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bf_null.c
129
BIO_copy_next_retry(b);
lib/libcrypto/bio/bf_null.c
134
nullf_write(BIO *b, const char *in, int inl)
lib/libcrypto/bio/bf_null.c
140
if (b->next_bio == NULL)
lib/libcrypto/bio/bf_null.c
142
ret = BIO_write(b->next_bio, in, inl);
lib/libcrypto/bio/bf_null.c
143
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bf_null.c
144
BIO_copy_next_retry(b);
lib/libcrypto/bio/bf_null.c
149
nullf_ctrl(BIO *b, int cmd, long num, void *ptr)
lib/libcrypto/bio/bf_null.c
153
if (b->next_bio == NULL)
lib/libcrypto/bio/bf_null.c
157
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bf_null.c
158
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libcrypto/bio/bf_null.c
159
BIO_copy_next_retry(b);
lib/libcrypto/bio/bf_null.c
165
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libcrypto/bio/bf_null.c
171
nullf_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp)
lib/libcrypto/bio/bf_null.c
175
if (b->next_bio == NULL)
lib/libcrypto/bio/bf_null.c
179
ret = BIO_callback_ctrl(b->next_bio, cmd, fp);
lib/libcrypto/bio/bio.h
208
void BIO_set_flags(BIO *b, int flags);
lib/libcrypto/bio/bio.h
209
int BIO_test_flags(const BIO *b, int flags);
lib/libcrypto/bio/bio.h
210
void BIO_clear_flags(BIO *b, int flags);
lib/libcrypto/bio/bio.h
212
#define BIO_get_flags(b) BIO_test_flags(b, ~(0x0))
lib/libcrypto/bio/bio.h
213
#define BIO_set_retry_special(b) \
lib/libcrypto/bio/bio.h
214
BIO_set_flags(b, (BIO_FLAGS_IO_SPECIAL|BIO_FLAGS_SHOULD_RETRY))
lib/libcrypto/bio/bio.h
215
#define BIO_set_retry_read(b) \
lib/libcrypto/bio/bio.h
216
BIO_set_flags(b, (BIO_FLAGS_READ|BIO_FLAGS_SHOULD_RETRY))
lib/libcrypto/bio/bio.h
217
#define BIO_set_retry_write(b) \
lib/libcrypto/bio/bio.h
218
BIO_set_flags(b, (BIO_FLAGS_WRITE|BIO_FLAGS_SHOULD_RETRY))
lib/libcrypto/bio/bio.h
221
#define BIO_clear_retry_flags(b) \
lib/libcrypto/bio/bio.h
222
BIO_clear_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY))
lib/libcrypto/bio/bio.h
223
#define BIO_get_retry_flags(b) \
lib/libcrypto/bio/bio.h
224
BIO_test_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY))
lib/libcrypto/bio/bio.h
262
typedef long (*BIO_callback_fn)(BIO *b, int oper, const char *argp, int argi,
lib/libcrypto/bio/bio.h
264
typedef long (*BIO_callback_fn_ex)(BIO *b, int oper, const char *argp,
lib/libcrypto/bio/bio.h
267
BIO_callback_fn BIO_get_callback(const BIO *b);
lib/libcrypto/bio/bio.h
268
void BIO_set_callback(BIO *b, BIO_callback_fn callback);
lib/libcrypto/bio/bio.h
270
BIO_callback_fn_ex BIO_get_callback_ex(const BIO *b);
lib/libcrypto/bio/bio.h
271
void BIO_set_callback_ex(BIO *b, BIO_callback_fn_ex callback);
lib/libcrypto/bio/bio.h
273
char *BIO_get_callback_arg(const BIO *b);
lib/libcrypto/bio/bio.h
274
void BIO_set_callback_arg(BIO *b, char *arg);
lib/libcrypto/bio/bio.h
276
const char *BIO_method_name(const BIO *b);
lib/libcrypto/bio/bio.h
277
int BIO_method_type(const BIO *b);
lib/libcrypto/bio/bio.h
288
typedef int asn1_ps_func(BIO *b, unsigned char **pbuf, int *plen, void *parg);
lib/libcrypto/bio/bio.h
377
#define BIO_set_conn_hostname(b,name) BIO_ctrl(b,BIO_C_SET_CONNECT,0,(char *)name)
lib/libcrypto/bio/bio.h
378
#define BIO_set_conn_port(b,port) BIO_ctrl(b,BIO_C_SET_CONNECT,1,(char *)port)
lib/libcrypto/bio/bio.h
379
#define BIO_set_conn_ip(b,ip) BIO_ctrl(b,BIO_C_SET_CONNECT,2,(char *)ip)
lib/libcrypto/bio/bio.h
380
#define BIO_set_conn_int_port(b,port) BIO_ctrl(b,BIO_C_SET_CONNECT,3,(char *)port)
lib/libcrypto/bio/bio.h
381
#define BIO_get_conn_hostname(b) BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,0)
lib/libcrypto/bio/bio.h
382
#define BIO_get_conn_port(b) BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,1)
lib/libcrypto/bio/bio.h
383
#define BIO_get_conn_ip(b) BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,2)
lib/libcrypto/bio/bio.h
384
#define BIO_get_conn_int_port(b) BIO_int_ctrl(b,BIO_C_GET_CONNECT,3,0)
lib/libcrypto/bio/bio.h
387
#define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL)
lib/libcrypto/bio/bio.h
390
#define BIO_set_accept_port(b,name) BIO_ctrl(b,BIO_C_SET_ACCEPT,0,(char *)name)
lib/libcrypto/bio/bio.h
391
#define BIO_get_accept_port(b) BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,0)
lib/libcrypto/bio/bio.h
393
#define BIO_set_nbio_accept(b,n) BIO_ctrl(b,BIO_C_SET_ACCEPT,1,(n)?(void *)"a":NULL)
lib/libcrypto/bio/bio.h
394
#define BIO_set_accept_bios(b,bio) BIO_ctrl(b,BIO_C_SET_ACCEPT,2,(char *)bio)
lib/libcrypto/bio/bio.h
399
#define BIO_set_bind_mode(b,mode) BIO_ctrl(b,BIO_C_SET_BIND_MODE,mode,NULL)
lib/libcrypto/bio/bio.h
400
#define BIO_get_bind_mode(b,mode) BIO_ctrl(b,BIO_C_GET_BIND_MODE,0,NULL)
lib/libcrypto/bio/bio.h
402
#define BIO_do_connect(b) BIO_do_handshake(b)
lib/libcrypto/bio/bio.h
403
#define BIO_do_accept(b) BIO_do_handshake(b)
lib/libcrypto/bio/bio.h
404
#define BIO_do_handshake(b) BIO_ctrl(b,BIO_C_DO_STATE_MACHINE,0,NULL)
lib/libcrypto/bio/bio.h
407
#define BIO_set_url(b,url) BIO_ctrl(b,BIO_C_SET_PROXY_PARAM,0,(char *)(url))
lib/libcrypto/bio/bio.h
408
#define BIO_set_proxies(b,p) BIO_ctrl(b,BIO_C_SET_PROXY_PARAM,1,(char *)(p))
lib/libcrypto/bio/bio.h
410
#define BIO_set_filter_bio(b,s) BIO_ctrl(b,BIO_C_SET_PROXY_PARAM,2,(char *)(s))
lib/libcrypto/bio/bio.h
412
#define BIO_set_proxy_cb(b,cb) BIO_callback_ctrl(b,BIO_C_SET_PROXY_PARAM,3,(void *(*cb)()))
lib/libcrypto/bio/bio.h
413
#define BIO_set_proxy_header(b,sk) BIO_ctrl(b,BIO_C_SET_PROXY_PARAM,4,(char *)sk)
lib/libcrypto/bio/bio.h
414
#define BIO_set_no_connect_return(b,bool) BIO_int_ctrl(b,BIO_C_SET_PROXY_PARAM,5,bool)
lib/libcrypto/bio/bio.h
416
#define BIO_get_proxy_header(b,skp) BIO_ctrl(b,BIO_C_GET_PROXY_PARAM,0,(char *)skp)
lib/libcrypto/bio/bio.h
417
#define BIO_get_proxies(b,pxy_p) BIO_ctrl(b,BIO_C_GET_PROXY_PARAM,1,(char *)(pxy_p))
lib/libcrypto/bio/bio.h
418
#define BIO_get_url(b,url) BIO_ctrl(b,BIO_C_GET_PROXY_PARAM,2,(char *)(url))
lib/libcrypto/bio/bio.h
419
#define BIO_get_no_connect_return(b) BIO_ctrl(b,BIO_C_GET_PROXY_PARAM,5,NULL)
lib/libcrypto/bio/bio.h
421
#define BIO_set_fd(b,fd,c) BIO_int_ctrl(b,BIO_C_SET_FD,c,fd)
lib/libcrypto/bio/bio.h
422
#define BIO_get_fd(b,c) BIO_ctrl(b,BIO_C_GET_FD,0,(char *)c)
lib/libcrypto/bio/bio.h
424
#define BIO_set_fp(b,fp,c) BIO_ctrl(b,BIO_C_SET_FILE_PTR,c,(char *)fp)
lib/libcrypto/bio/bio.h
425
#define BIO_get_fp(b,fpp) BIO_ctrl(b,BIO_C_GET_FILE_PTR,0,(char *)fpp)
lib/libcrypto/bio/bio.h
427
#define BIO_seek(b,ofs) (int)BIO_ctrl(b,BIO_C_FILE_SEEK,ofs,NULL)
lib/libcrypto/bio/bio.h
428
#define BIO_tell(b) (int)BIO_ctrl(b,BIO_C_FILE_TELL,0,NULL)
lib/libcrypto/bio/bio.h
432
#define BIO_read_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \
lib/libcrypto/bio/bio.h
434
#define BIO_write_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \
lib/libcrypto/bio/bio.h
436
#define BIO_append_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \
lib/libcrypto/bio/bio.h
438
#define BIO_rw_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \
lib/libcrypto/bio/bio.h
445
#define BIO_set_ssl(b,ssl,c) BIO_ctrl(b,BIO_C_SET_SSL,c,(char *)ssl)
lib/libcrypto/bio/bio.h
446
#define BIO_get_ssl(b,sslp) BIO_ctrl(b,BIO_C_GET_SSL,0,(char *)sslp)
lib/libcrypto/bio/bio.h
447
#define BIO_set_ssl_mode(b,client) BIO_ctrl(b,BIO_C_SSL_MODE,client,NULL)
lib/libcrypto/bio/bio.h
448
#define BIO_set_ssl_renegotiate_bytes(b,num) \
lib/libcrypto/bio/bio.h
449
BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_BYTES,num,NULL)
lib/libcrypto/bio/bio.h
450
#define BIO_get_num_renegotiates(b) \
lib/libcrypto/bio/bio.h
451
BIO_ctrl(b,BIO_C_GET_SSL_NUM_RENEGOTIATES,0,NULL)
lib/libcrypto/bio/bio.h
452
#define BIO_set_ssl_renegotiate_timeout(b,seconds) \
lib/libcrypto/bio/bio.h
453
BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT,seconds,NULL)
lib/libcrypto/bio/bio.h
458
#define BIO_get_mem_data(b,pp) BIO_ctrl(b,BIO_CTRL_INFO,0,(char *)pp)
lib/libcrypto/bio/bio.h
459
#define BIO_set_mem_buf(b,bm,c) BIO_ctrl(b,BIO_C_SET_BUF_MEM,c,(char *)bm)
lib/libcrypto/bio/bio.h
460
#define BIO_get_mem_ptr(b,pp) BIO_ctrl(b,BIO_C_GET_BUF_MEM_PTR,0,(char *)pp)
lib/libcrypto/bio/bio.h
461
#define BIO_set_mem_eof_return(b,v) \
lib/libcrypto/bio/bio.h
462
BIO_ctrl(b,BIO_C_SET_BUF_MEM_EOF_RETURN,v,NULL)
lib/libcrypto/bio/bio.h
465
#define BIO_get_buffer_num_lines(b) BIO_ctrl(b,BIO_C_GET_BUFF_NUM_LINES,0,NULL)
lib/libcrypto/bio/bio.h
466
#define BIO_set_buffer_size(b,size) BIO_ctrl(b,BIO_C_SET_BUFF_SIZE,size,NULL)
lib/libcrypto/bio/bio.h
467
#define BIO_set_read_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,0)
lib/libcrypto/bio/bio.h
468
#define BIO_set_write_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,1)
lib/libcrypto/bio/bio.h
469
#define BIO_set_buffer_read_data(b,buf,num) BIO_ctrl(b,BIO_C_SET_BUFF_READ_DATA,num,buf)
lib/libcrypto/bio/bio.h
472
#define BIO_dup_state(b,ret) BIO_ctrl(b,BIO_CTRL_DUP,0,(char *)(ret))
lib/libcrypto/bio/bio.h
474
#define BIO_reset(b) (int)BIO_ctrl(b,BIO_CTRL_RESET,0,NULL)
lib/libcrypto/bio/bio.h
475
#define BIO_eof(b) (int)BIO_ctrl(b,BIO_CTRL_EOF,0,NULL)
lib/libcrypto/bio/bio.h
476
#define BIO_set_close(b,c) (int)BIO_ctrl(b,BIO_CTRL_SET_CLOSE,(c),NULL)
lib/libcrypto/bio/bio.h
477
#define BIO_get_close(b) (int)BIO_ctrl(b,BIO_CTRL_GET_CLOSE,0,NULL)
lib/libcrypto/bio/bio.h
478
#define BIO_pending(b) (int)BIO_ctrl(b,BIO_CTRL_PENDING,0,NULL)
lib/libcrypto/bio/bio.h
479
#define BIO_wpending(b) (int)BIO_ctrl(b,BIO_CTRL_WPENDING,0,NULL)
lib/libcrypto/bio/bio.h
481
size_t BIO_ctrl_pending(BIO *b);
lib/libcrypto/bio/bio.h
482
size_t BIO_ctrl_wpending(BIO *b);
lib/libcrypto/bio/bio.h
483
#define BIO_flush(b) (int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL)
lib/libcrypto/bio/bio.h
484
#define BIO_get_info_callback(b,cbp) (int)BIO_ctrl(b,BIO_CTRL_GET_CALLBACK,0, \
lib/libcrypto/bio/bio.h
486
#define BIO_set_info_callback(b,cb) (int)BIO_callback_ctrl(b,BIO_CTRL_SET_CALLBACK,cb)
lib/libcrypto/bio/bio.h
489
#define BIO_buffer_get_num_lines(b) BIO_ctrl(b,BIO_CTRL_GET,0,NULL)
lib/libcrypto/bio/bio.h
492
#define BIO_set_write_buf_size(b,size) (int)BIO_ctrl(b,BIO_C_SET_WRITE_BUF_SIZE,size,NULL)
lib/libcrypto/bio/bio.h
493
#define BIO_get_write_buf_size(b,size) (size_t)BIO_ctrl(b,BIO_C_GET_WRITE_BUF_SIZE,size,NULL)
lib/libcrypto/bio/bio.h
495
#define BIO_destroy_bio_pair(b) (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL)
lib/libcrypto/bio/bio.h
496
#define BIO_shutdown_wr(b) (int)BIO_ctrl(b, BIO_C_SHUTDOWN_WR, 0, NULL)
lib/libcrypto/bio/bio.h
498
#define BIO_get_write_guarantee(b) (int)BIO_ctrl(b,BIO_C_GET_WRITE_GUARANTEE,0,NULL)
lib/libcrypto/bio/bio.h
499
#define BIO_get_read_request(b) (int)BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,NULL)
lib/libcrypto/bio/bio.h
500
size_t BIO_ctrl_get_write_guarantee(BIO *b);
lib/libcrypto/bio/bio.h
501
size_t BIO_ctrl_get_read_request(BIO *b);
lib/libcrypto/bio/bio.h
502
int BIO_ctrl_reset_read_request(BIO *b);
lib/libcrypto/bio/bio.h
505
#define BIO_ctrl_dgram_connect(b,peer) \
lib/libcrypto/bio/bio.h
506
(int)BIO_ctrl(b,BIO_CTRL_DGRAM_CONNECT,0, (char *)peer)
lib/libcrypto/bio/bio.h
507
#define BIO_ctrl_set_connected(b, state, peer) \
lib/libcrypto/bio/bio.h
508
(int)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_CONNECTED, state, (char *)peer)
lib/libcrypto/bio/bio.h
509
#define BIO_dgram_recv_timedout(b) \
lib/libcrypto/bio/bio.h
510
(int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP, 0, NULL)
lib/libcrypto/bio/bio.h
511
#define BIO_dgram_send_timedout(b) \
lib/libcrypto/bio/bio.h
512
(int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP, 0, NULL)
lib/libcrypto/bio/bio.h
513
#define BIO_dgram_get_peer(b,peer) \
lib/libcrypto/bio/bio.h
514
(int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_PEER, 0, (char *)peer)
lib/libcrypto/bio/bio.h
515
#define BIO_dgram_set_peer(b,peer) \
lib/libcrypto/bio/bio.h
516
(int)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_PEER, 0, (char *)peer)
lib/libcrypto/bio/bio.h
542
int BIO_read(BIO *b, void *data, int len)
lib/libcrypto/bio/bio.h
546
int BIO_write(BIO *b, const void *data, int len)
lib/libcrypto/bio/bio.h
549
int BIO_indent(BIO *b, int indent, int max);
lib/libcrypto/bio/bio.h
551
long BIO_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp);
lib/libcrypto/bio/bio.h
554
BIO * BIO_push(BIO *b, BIO *append);
lib/libcrypto/bio/bio.h
555
BIO * BIO_pop(BIO *b);
lib/libcrypto/bio/bio.h
557
BIO * BIO_find_type(BIO *b, int bio_type);
lib/libcrypto/bio/bio.h
558
BIO * BIO_next(BIO *b);
lib/libcrypto/bio/bio.h
559
void BIO_set_next(BIO *b, BIO *next);
lib/libcrypto/bio/bio.h
592
int BIO_dump(BIO *b, const char *bytes, int len);
lib/libcrypto/bio/bio.h
593
int BIO_dump_indent(BIO *b, const char *bytes, int len, int indent);
lib/libcrypto/bio/bio.h
628
void BIO_copy_next_retry(BIO *b);
lib/libcrypto/bio/bio_cb.c
148
b = (BIO *)bio->cb_arg;
lib/libcrypto/bio/bio_cb.c
149
if (b != NULL)
lib/libcrypto/bio/bio_cb.c
150
BIO_write(b, buf, strlen(buf));
lib/libcrypto/bio/bio_cb.c
71
BIO *b;
lib/libcrypto/bio/bio_lib.c
109
ret = b->callback(b, oper, argp, argi, argl, inret);
lib/libcrypto/bio/bio_lib.c
325
BIO_read(BIO *b, void *out, int outl)
lib/libcrypto/bio/bio_lib.c
330
if (b == NULL) {
lib/libcrypto/bio/bio_lib.c
343
if (b->method == NULL || b->method->bread == NULL) {
lib/libcrypto/bio/bio_lib.c
348
if (b->callback != NULL || b->callback_ex != NULL) {
lib/libcrypto/bio/bio_lib.c
349
if ((ret = (int)bio_call_callback(b, BIO_CB_READ, out, outl, 0,
lib/libcrypto/bio/bio_lib.c
354
if (!b->init) {
lib/libcrypto/bio/bio_lib.c
359
if ((ret = b->method->bread(b, out, outl)) > 0)
lib/libcrypto/bio/bio_lib.c
362
b->num_read += readbytes;
lib/libcrypto/bio/bio_lib.c
364
if (b->callback != NULL || b->callback_ex != NULL) {
lib/libcrypto/bio/bio_lib.c
365
ret = (int)bio_call_callback(b, BIO_CB_READ | BIO_CB_RETURN,
lib/libcrypto/bio/bio_lib.c
383
BIO_write(BIO *b, const void *in, int inl)
lib/libcrypto/bio/bio_lib.c
389
if (b == NULL)
lib/libcrypto/bio/bio_lib.c
400
if (b->method == NULL || b->method->bwrite == NULL) {
lib/libcrypto/bio/bio_lib.c
405
if (b->callback != NULL || b->callback_ex != NULL) {
lib/libcrypto/bio/bio_lib.c
406
if ((ret = (int)bio_call_callback(b, BIO_CB_WRITE, in, inl, 0,
lib/libcrypto/bio/bio_lib.c
411
if (!b->init) {
lib/libcrypto/bio/bio_lib.c
416
if ((ret = b->method->bwrite(b, in, inl)) > 0)
lib/libcrypto/bio/bio_lib.c
419
b->num_write += writebytes;
lib/libcrypto/bio/bio_lib.c
421
if (b->callback != NULL || b->callback_ex != NULL) {
lib/libcrypto/bio/bio_lib.c
422
ret = (int)bio_call_callback(b, BIO_CB_WRITE | BIO_CB_RETURN,
lib/libcrypto/bio/bio_lib.c
440
BIO_puts(BIO *b, const char *in)
lib/libcrypto/bio/bio_lib.c
445
if (b == NULL || b->method == NULL || b->method->bputs == NULL) {
lib/libcrypto/bio/bio_lib.c
450
if (b->callback != NULL || b->callback_ex != NULL) {
lib/libcrypto/bio/bio_lib.c
451
if ((ret = (int)bio_call_callback(b, BIO_CB_PUTS, in, 0, 0, 0L,
lib/libcrypto/bio/bio_lib.c
456
if (!b->init) {
lib/libcrypto/bio/bio_lib.c
461
if ((ret = b->method->bputs(b, in)) > 0)
lib/libcrypto/bio/bio_lib.c
464
b->num_write += writebytes;
lib/libcrypto/bio/bio_lib.c
466
if (b->callback != NULL || b->callback_ex != NULL) {
lib/libcrypto/bio/bio_lib.c
467
ret = (int)bio_call_callback(b, BIO_CB_PUTS | BIO_CB_RETURN,
lib/libcrypto/bio/bio_lib.c
485
BIO_gets(BIO *b, char *in, int inl)
lib/libcrypto/bio/bio_lib.c
490
if (b == NULL || b->method == NULL || b->method->bgets == NULL) {
lib/libcrypto/bio/bio_lib.c
495
if (b->callback != NULL || b->callback_ex != NULL) {
lib/libcrypto/bio/bio_lib.c
496
if ((ret = (int)bio_call_callback(b, BIO_CB_GETS, in, inl, 0, 0L,
lib/libcrypto/bio/bio_lib.c
501
if (!b->init) {
lib/libcrypto/bio/bio_lib.c
506
if ((ret = b->method->bgets(b, in, inl)) > 0)
lib/libcrypto/bio/bio_lib.c
509
if (b->callback != NULL || b->callback_ex != NULL) {
lib/libcrypto/bio/bio_lib.c
510
ret = (int)bio_call_callback(b, BIO_CB_GETS | BIO_CB_RETURN, in,
lib/libcrypto/bio/bio_lib.c
563
BIO_ctrl(BIO *b, int cmd, long larg, void *parg)
lib/libcrypto/bio/bio_lib.c
567
if (b == NULL)
lib/libcrypto/bio/bio_lib.c
570
if (b->method == NULL || b->method->ctrl == NULL) {
lib/libcrypto/bio/bio_lib.c
575
if (b->callback != NULL || b->callback_ex != NULL) {
lib/libcrypto/bio/bio_lib.c
576
if ((ret = bio_call_callback(b, BIO_CB_CTRL, parg, 0, cmd, larg,
lib/libcrypto/bio/bio_lib.c
581
ret = b->method->ctrl(b, cmd, larg, parg);
lib/libcrypto/bio/bio_lib.c
583
if (b->callback != NULL || b->callback_ex != NULL) {
lib/libcrypto/bio/bio_lib.c
584
ret = bio_call_callback(b, BIO_CB_CTRL | BIO_CB_RETURN, parg, 0,
lib/libcrypto/bio/bio_lib.c
593
BIO_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp)
lib/libcrypto/bio/bio_lib.c
597
if (b == NULL)
lib/libcrypto/bio/bio_lib.c
600
if (b->method == NULL || b->method->callback_ctrl == NULL ||
lib/libcrypto/bio/bio_lib.c
606
if (b->callback != NULL || b->callback_ex != NULL) {
lib/libcrypto/bio/bio_lib.c
607
if ((ret = bio_call_callback(b, BIO_CB_CTRL, (void *)&fp, 0,
lib/libcrypto/bio/bio_lib.c
612
ret = b->method->callback_ctrl(b, cmd, fp);
lib/libcrypto/bio/bio_lib.c
614
if (b->callback != NULL || b->callback_ex != NULL) {
lib/libcrypto/bio/bio_lib.c
615
ret = bio_call_callback(b, BIO_CB_CTRL | BIO_CB_RETURN,
lib/libcrypto/bio/bio_lib.c
647
BIO_push(BIO *b, BIO *bio)
lib/libcrypto/bio/bio_lib.c
651
if (b == NULL)
lib/libcrypto/bio/bio_lib.c
653
lb = b;
lib/libcrypto/bio/bio_lib.c
663
BIO_ctrl(b, BIO_CTRL_PUSH, 0, lb);
lib/libcrypto/bio/bio_lib.c
664
return (b);
lib/libcrypto/bio/bio_lib.c
670
BIO_pop(BIO *b)
lib/libcrypto/bio/bio_lib.c
674
if (b == NULL)
lib/libcrypto/bio/bio_lib.c
676
ret = b->next_bio;
lib/libcrypto/bio/bio_lib.c
678
BIO_ctrl(b, BIO_CTRL_POP, 0, b);
lib/libcrypto/bio/bio_lib.c
680
if (b->prev_bio != NULL)
lib/libcrypto/bio/bio_lib.c
681
b->prev_bio->next_bio = b->next_bio;
lib/libcrypto/bio/bio_lib.c
682
if (b->next_bio != NULL)
lib/libcrypto/bio/bio_lib.c
683
b->next_bio->prev_bio = b->prev_bio;
lib/libcrypto/bio/bio_lib.c
685
b->next_bio = NULL;
lib/libcrypto/bio/bio_lib.c
686
b->prev_bio = NULL;
lib/libcrypto/bio/bio_lib.c
694
BIO *b, *last;
lib/libcrypto/bio/bio_lib.c
696
b = last = bio;
lib/libcrypto/bio/bio_lib.c
698
if (!BIO_should_retry(b))
lib/libcrypto/bio/bio_lib.c
700
last = b;
lib/libcrypto/bio/bio_lib.c
701
b = b->next_bio;
lib/libcrypto/bio/bio_lib.c
702
if (b == NULL)
lib/libcrypto/bio/bio_lib.c
749
BIO_next(BIO *b)
lib/libcrypto/bio/bio_lib.c
751
if (!b)
lib/libcrypto/bio/bio_lib.c
753
return b->next_bio;
lib/libcrypto/bio/bio_lib.c
78
bio_call_callback(BIO *b, int oper, const char *argp, size_t len, int argi,
lib/libcrypto/bio/bio_lib.c
782
BIO *b;
lib/libcrypto/bio/bio_lib.c
786
b = bio;
lib/libcrypto/bio/bio_lib.c
787
ref = b->references;
lib/libcrypto/bio/bio_lib.c
789
BIO_free(b);
lib/libcrypto/bio/bio_lib.c
84
if (b->callback_ex != NULL)
lib/libcrypto/bio/bio_lib.c
840
BIO_copy_next_retry(BIO *b)
lib/libcrypto/bio/bio_lib.c
842
BIO_set_flags(b, BIO_get_retry_flags(b->next_bio));
lib/libcrypto/bio/bio_lib.c
843
b->retry_reason = b->next_bio->retry_reason;
lib/libcrypto/bio/bio_lib.c
85
return b->callback_ex(b, oper, argp, len, argi, argl, inret,
lib/libcrypto/bio/bss_acpt.c
197
acpt_state(BIO *b, BIO_ACCEPT *c)
lib/libcrypto/bio/bss_acpt.c
222
b->num = s;
lib/libcrypto/bio/bss_acpt.c
227
if (b->next_bio != NULL) {
lib/libcrypto/bio/bss_acpt.c
231
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bss_acpt.c
232
b->retry_reason = 0;
lib/libcrypto/bio/bss_acpt.c
237
BIO_set_retry_special(b);
lib/libcrypto/bio/bss_acpt.c
238
b->retry_reason = BIO_RR_ACCEPT;
lib/libcrypto/bio/bss_acpt.c
249
BIO_set_callback(bio, BIO_get_callback(b));
lib/libcrypto/bio/bss_acpt.c
250
BIO_set_callback_arg(bio, BIO_get_callback_arg(b));
lib/libcrypto/bio/bss_acpt.c
268
if (BIO_push(b, bio) == NULL)
lib/libcrypto/bio/bss_acpt.c
280
if (b->next_bio == NULL) {
lib/libcrypto/bio/bss_acpt.c
293
acpt_read(BIO *b, char *out, int outl)
lib/libcrypto/bio/bss_acpt.c
298
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bss_acpt.c
299
data = (BIO_ACCEPT *)b->ptr;
lib/libcrypto/bio/bss_acpt.c
301
while (b->next_bio == NULL) {
lib/libcrypto/bio/bss_acpt.c
302
ret = acpt_state(b, data);
lib/libcrypto/bio/bss_acpt.c
307
ret = BIO_read(b->next_bio, out, outl);
lib/libcrypto/bio/bss_acpt.c
308
BIO_copy_next_retry(b);
lib/libcrypto/bio/bss_acpt.c
313
acpt_write(BIO *b, const char *in, int inl)
lib/libcrypto/bio/bss_acpt.c
318
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bss_acpt.c
319
data = (BIO_ACCEPT *)b->ptr;
lib/libcrypto/bio/bss_acpt.c
321
while (b->next_bio == NULL) {
lib/libcrypto/bio/bss_acpt.c
322
ret = acpt_state(b, data);
lib/libcrypto/bio/bss_acpt.c
327
ret = BIO_write(b->next_bio, in, inl);
lib/libcrypto/bio/bss_acpt.c
328
BIO_copy_next_retry(b);
lib/libcrypto/bio/bss_acpt.c
333
acpt_ctrl(BIO *b, int cmd, long num, void *ptr)
lib/libcrypto/bio/bss_acpt.c
340
data = (BIO_ACCEPT *)b->ptr;
lib/libcrypto/bio/bss_acpt.c
346
acpt_close_socket(b);
lib/libcrypto/bio/bss_acpt.c
347
b->flags = 0;
lib/libcrypto/bio/bss_acpt.c
351
ret = (long)acpt_state(b, data);
lib/libcrypto/bio/bss_acpt.c
356
b->init = 1;
lib/libcrypto/bio/bss_acpt.c
371
b->init = 1;
lib/libcrypto/bio/bss_acpt.c
372
b->num= *((int *)ptr);
lib/libcrypto/bio/bss_acpt.c
373
data->accept_sock = b->num;
lib/libcrypto/bio/bss_acpt.c
375
b->shutdown = (int)num;
lib/libcrypto/bio/bss_acpt.c
376
b->init = 1;
lib/libcrypto/bio/bss_acpt.c
379
if (b->init) {
lib/libcrypto/bio/bss_acpt.c
388
if (b->init) {
lib/libcrypto/bio/bss_acpt.c
398
ret = b->shutdown;
lib/libcrypto/bio/bss_acpt.c
401
b->shutdown = (int)num;
lib/libcrypto/bio/bss_acpt.c
96
static int acpt_state(BIO *b, BIO_ACCEPT *c);
lib/libcrypto/bio/bss_bio.c
139
struct bio_bio_st *b;
lib/libcrypto/bio/bss_bio.c
141
b = malloc(sizeof *b);
lib/libcrypto/bio/bss_bio.c
142
if (b == NULL)
lib/libcrypto/bio/bss_bio.c
145
b->peer = NULL;
lib/libcrypto/bio/bss_bio.c
146
b->size = 17 * 1024; /* enough for one TLS record (just a default) */
lib/libcrypto/bio/bss_bio.c
147
b->buf = NULL;
lib/libcrypto/bio/bss_bio.c
149
bio->ptr = b;
lib/libcrypto/bio/bss_bio.c
156
struct bio_bio_st *b;
lib/libcrypto/bio/bss_bio.c
160
b = bio->ptr;
lib/libcrypto/bio/bss_bio.c
162
assert(b != NULL);
lib/libcrypto/bio/bss_bio.c
164
if (b->peer)
lib/libcrypto/bio/bss_bio.c
167
free(b->buf);
lib/libcrypto/bio/bss_bio.c
168
free(b);
lib/libcrypto/bio/bss_bio.c
179
struct bio_bio_st *b, *peer_b;
lib/libcrypto/bio/bss_bio.c
186
b = bio->ptr;
lib/libcrypto/bio/bss_bio.c
187
assert(b != NULL);
lib/libcrypto/bio/bss_bio.c
188
assert(b->peer != NULL);
lib/libcrypto/bio/bss_bio.c
189
peer_b = b->peer->ptr;
lib/libcrypto/bio/bss_bio.c
259
struct bio_bio_st *b;
lib/libcrypto/bio/bss_bio.c
266
b = bio->ptr;
lib/libcrypto/bio/bss_bio.c
268
assert(b != NULL);
lib/libcrypto/bio/bss_bio.c
269
assert(b->peer != NULL);
lib/libcrypto/bio/bss_bio.c
270
assert(b->buf != NULL);
lib/libcrypto/bio/bss_bio.c
272
b->request = 0;
lib/libcrypto/bio/bss_bio.c
273
if (b->closed) {
lib/libcrypto/bio/bss_bio.c
279
assert(b->len <= b->size);
lib/libcrypto/bio/bss_bio.c
281
if (b->len == b->size) {
lib/libcrypto/bio/bss_bio.c
287
if (num > b->size - b->len)
lib/libcrypto/bio/bss_bio.c
288
num = b->size - b->len;
lib/libcrypto/bio/bss_bio.c
300
assert(b->len + rest <= b->size);
lib/libcrypto/bio/bss_bio.c
302
write_offset = b->offset + b->len;
lib/libcrypto/bio/bss_bio.c
303
if (write_offset >= b->size)
lib/libcrypto/bio/bss_bio.c
304
write_offset -= b->size;
lib/libcrypto/bio/bss_bio.c
307
if (write_offset + rest <= b->size)
lib/libcrypto/bio/bss_bio.c
311
chunk = b->size - write_offset;
lib/libcrypto/bio/bss_bio.c
313
memcpy(b->buf + write_offset, buf, chunk);
lib/libcrypto/bio/bss_bio.c
315
b->len += chunk;
lib/libcrypto/bio/bss_bio.c
317
assert(b->len <= b->size);
lib/libcrypto/bio/bss_bio.c
330
struct bio_bio_st *b = bio->ptr;
lib/libcrypto/bio/bss_bio.c
332
assert(b != NULL);
lib/libcrypto/bio/bss_bio.c
338
if (b->peer) {
lib/libcrypto/bio/bss_bio.c
347
if (b->size != new_size) {
lib/libcrypto/bio/bss_bio.c
348
free(b->buf);
lib/libcrypto/bio/bss_bio.c
349
b->buf = NULL;
lib/libcrypto/bio/bss_bio.c
350
b->size = new_size;
lib/libcrypto/bio/bss_bio.c
357
ret = (long) b->size;
lib/libcrypto/bio/bss_bio.c
381
if (b->peer == NULL || b->closed)
lib/libcrypto/bio/bss_bio.c
384
ret = (long) b->size - b->len;
lib/libcrypto/bio/bss_bio.c
391
ret = (long) b->request;
lib/libcrypto/bio/bss_bio.c
399
b->request = 0;
lib/libcrypto/bio/bss_bio.c
405
b->closed = 1;
lib/libcrypto/bio/bss_bio.c
412
if (b->buf != NULL) {
lib/libcrypto/bio/bss_bio.c
413
b->len = 0;
lib/libcrypto/bio/bss_bio.c
414
b->offset = 0;
lib/libcrypto/bio/bss_bio.c
430
if (b->peer != NULL) {
lib/libcrypto/bio/bss_bio.c
431
struct bio_bio_st *peer_b = b->peer->ptr;
lib/libcrypto/bio/bss_bio.c
439
if (b->buf != NULL)
lib/libcrypto/bio/bss_bio.c
440
ret = (long) b->len;
lib/libcrypto/bio/bss_bio.c
457
other_b->size = b->size;
lib/libcrypto/bio/bss_bio.c
546
struct bio_bio_st *b = bio->ptr;
lib/libcrypto/bio/bss_bio.c
548
if (b != NULL) {
lib/libcrypto/bio/bss_bio.c
549
BIO *peer_bio = b->peer;
lib/libcrypto/bio/bss_bio.c
563
b->peer = NULL;
lib/libcrypto/bio/bss_bio.c
565
assert(b->buf != NULL);
lib/libcrypto/bio/bss_bio.c
566
b->len = 0;
lib/libcrypto/bio/bss_bio.c
567
b->offset = 0;
lib/libcrypto/bio/bss_conn.c
106
static int conn_state(BIO *b, BIO_CONNECT *c);
lib/libcrypto/bio/bss_conn.c
124
conn_state(BIO *b, BIO_CONNECT *c)
lib/libcrypto/bio/bss_conn.c
206
b->num = ret;
lib/libcrypto/bio/bss_conn.c
212
if (!BIO_socket_nbio(b->num, 1)) {
lib/libcrypto/bio/bss_conn.c
223
i = setsockopt(b->num, SOL_SOCKET, SO_KEEPALIVE, &i, sizeof(i));
lib/libcrypto/bio/bss_conn.c
235
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bss_conn.c
236
ret = connect(b->num,
lib/libcrypto/bio/bss_conn.c
239
b->retry_reason = 0;
lib/libcrypto/bio/bss_conn.c
242
BIO_set_retry_special(b);
lib/libcrypto/bio/bss_conn.c
244
b->retry_reason = BIO_RR_CONNECT;
lib/libcrypto/bio/bss_conn.c
257
i = BIO_sock_error(b->num);
lib/libcrypto/bio/bss_conn.c
259
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bss_conn.c
279
if (!(ret = cb((BIO *)b, c->state, ret)))
lib/libcrypto/bio/bss_conn.c
287
ret = cb((BIO *)b, c->state, ret);
lib/libcrypto/bio/bss_conn.c
378
conn_read(BIO *b, char *out, int outl)
lib/libcrypto/bio/bss_conn.c
383
data = (BIO_CONNECT *)b->ptr;
lib/libcrypto/bio/bss_conn.c
385
ret = conn_state(b, data);
lib/libcrypto/bio/bss_conn.c
392
ret = read(b->num, out, outl);
lib/libcrypto/bio/bss_conn.c
393
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bss_conn.c
396
BIO_set_retry_read(b);
lib/libcrypto/bio/bss_conn.c
403
conn_write(BIO *b, const char *in, int inl)
lib/libcrypto/bio/bss_conn.c
408
data = (BIO_CONNECT *)b->ptr;
lib/libcrypto/bio/bss_conn.c
410
ret = conn_state(b, data);
lib/libcrypto/bio/bss_conn.c
416
ret = write(b->num, in, inl);
lib/libcrypto/bio/bss_conn.c
417
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bss_conn.c
420
BIO_set_retry_write(b);
lib/libcrypto/bio/bss_conn.c
426
conn_ctrl(BIO *b, int cmd, long num, void *ptr)
lib/libcrypto/bio/bss_conn.c
434
data = (BIO_CONNECT *)b->ptr;
lib/libcrypto/bio/bss_conn.c
440
conn_close_socket(b);
lib/libcrypto/bio/bss_conn.c
441
b->flags = 0;
lib/libcrypto/bio/bss_conn.c
446
ret = (long)conn_state(b, data);
lib/libcrypto/bio/bss_conn.c
463
if ((!b->init) || (ptr == NULL))
lib/libcrypto/bio/bss_conn.c
470
b->init = 1;
lib/libcrypto/bio/bss_conn.c
498
if (b->init) {
lib/libcrypto/bio/bss_conn.c
501
*ip = b->num;
lib/libcrypto/bio/bss_conn.c
502
ret = b->num;
lib/libcrypto/bio/bss_conn.c
507
ret = b->shutdown;
lib/libcrypto/bio/bss_conn.c
510
b->shutdown = (int)num;
lib/libcrypto/bio/bss_conn.c
555
conn_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp)
lib/libcrypto/bio/bss_conn.c
560
data = (BIO_CONNECT *)b->ptr;
lib/libcrypto/bio/bss_dgram.c
186
dgram_adjust_rcv_timeout(BIO *b)
lib/libcrypto/bio/bss_dgram.c
189
bio_dgram_data *data = (bio_dgram_data *)b->ptr;
lib/libcrypto/bio/bss_dgram.c
197
if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO,
lib/libcrypto/bio/bss_dgram.c
227
if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO,
lib/libcrypto/bio/bss_dgram.c
237
dgram_reset_rcv_timeout(BIO *b)
lib/libcrypto/bio/bss_dgram.c
240
bio_dgram_data *data = (bio_dgram_data *)b->ptr;
lib/libcrypto/bio/bss_dgram.c
244
if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO,
lib/libcrypto/bio/bss_dgram.c
253
dgram_read(BIO *b, char *out, int outl)
lib/libcrypto/bio/bss_dgram.c
256
bio_dgram_data *data = (bio_dgram_data *)b->ptr;
lib/libcrypto/bio/bss_dgram.c
272
dgram_adjust_rcv_timeout(b);
lib/libcrypto/bio/bss_dgram.c
273
ret = recvfrom(b->num, out, outl, 0, &sa.peer.sa, &sa.len);
lib/libcrypto/bio/bss_dgram.c
276
BIO_ctrl(b, BIO_CTRL_DGRAM_SET_PEER, 0, &sa.peer);
lib/libcrypto/bio/bss_dgram.c
278
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bss_dgram.c
281
BIO_set_retry_read(b);
lib/libcrypto/bio/bss_dgram.c
286
dgram_reset_rcv_timeout(b);
lib/libcrypto/bio/bss_dgram.c
292
dgram_write(BIO *b, const char *in, int inl)
lib/libcrypto/bio/bss_dgram.c
295
bio_dgram_data *data = (bio_dgram_data *)b->ptr;
lib/libcrypto/bio/bss_dgram.c
299
ret = write(b->num, in, inl);
lib/libcrypto/bio/bss_dgram.c
307
ret = sendto(b->num, in, inl, 0, &data->peer.sa, peerlen);
lib/libcrypto/bio/bss_dgram.c
310
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bss_dgram.c
313
BIO_set_retry_write(b);
lib/libcrypto/bio/bss_dgram.c
326
dgram_ctrl(BIO *b, int cmd, long num, void *ptr)
lib/libcrypto/bio/bss_dgram.c
344
data = (bio_dgram_data *)b->ptr;
lib/libcrypto/bio/bss_dgram.c
357
dgram_clear(b);
lib/libcrypto/bio/bss_dgram.c
358
b->num= *((int *)ptr);
lib/libcrypto/bio/bss_dgram.c
359
b->shutdown = (int)num;
lib/libcrypto/bio/bss_dgram.c
360
b->init = 1;
lib/libcrypto/bio/bss_dgram.c
363
if (b->init) {
lib/libcrypto/bio/bss_dgram.c
366
*ip = b->num;
lib/libcrypto/bio/bss_dgram.c
367
ret = b->num;
lib/libcrypto/bio/bss_dgram.c
372
ret = b->shutdown;
lib/libcrypto/bio/bss_dgram.c
375
b->shutdown = (int)num;
lib/libcrypto/bio/bss_dgram.c
404
if (getsockname(b->num, &addr.sa, &addr_len) < 0) {
lib/libcrypto/bio/bss_dgram.c
411
ret = setsockopt(b->num, IPPROTO_IP, IP_MTU_DISCOVER,
lib/libcrypto/bio/bss_dgram.c
419
ret = setsockopt(b->num, IPPROTO_IPV6,
lib/libcrypto/bio/bss_dgram.c
438
if (getsockname(b->num, &addr.sa, &addr_len) < 0) {
lib/libcrypto/bio/bss_dgram.c
445
ret = getsockopt(b->num, IPPROTO_IP, IP_MTU,
lib/libcrypto/bio/bss_dgram.c
459
ret = getsockopt(b->num, IPPROTO_IPV6, IPV6_MTU,
lib/libcrypto/bio/bss_dgram.c
561
if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, ptr,
lib/libcrypto/bio/bss_dgram.c
570
if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO,
lib/libcrypto/bio/bss_dgram.c
581
if (setsockopt(b->num, SOL_SOCKET, SO_SNDTIMEO, ptr,
lib/libcrypto/bio/bss_dgram.c
590
if (getsockopt(b->num, SOL_SOCKET, SO_SNDTIMEO,
lib/libcrypto/bio/bss_fd.c
136
fd_read(BIO *b, char *out, int outl)
lib/libcrypto/bio/bss_fd.c
142
ret = read(b->num, out, outl);
lib/libcrypto/bio/bss_fd.c
143
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bss_fd.c
146
BIO_set_retry_read(b);
lib/libcrypto/bio/bss_fd.c
153
fd_write(BIO *b, const char *in, int inl)
lib/libcrypto/bio/bss_fd.c
157
ret = write(b->num, in, inl);
lib/libcrypto/bio/bss_fd.c
158
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bss_fd.c
161
BIO_set_retry_write(b);
lib/libcrypto/bio/bss_fd.c
167
fd_ctrl(BIO *b, int cmd, long num, void *ptr)
lib/libcrypto/bio/bss_fd.c
176
ret = (long)lseek(b->num, num, 0);
lib/libcrypto/bio/bss_fd.c
180
ret = (long)lseek(b->num, 0, 1);
lib/libcrypto/bio/bss_fd.c
183
fd_free(b);
lib/libcrypto/bio/bss_fd.c
184
b->num= *((int *)ptr);
lib/libcrypto/bio/bss_fd.c
185
b->shutdown = (int)num;
lib/libcrypto/bio/bss_fd.c
186
b->init = 1;
lib/libcrypto/bio/bss_fd.c
189
if (b->init) {
lib/libcrypto/bio/bss_fd.c
192
*ip = b->num;
lib/libcrypto/bio/bss_fd.c
193
ret = b->num;
lib/libcrypto/bio/bss_fd.c
198
ret = b->shutdown;
lib/libcrypto/bio/bss_fd.c
201
b->shutdown = (int)num;
lib/libcrypto/bio/bss_file.c
189
file_read(BIO *b, char *out, int outl)
lib/libcrypto/bio/bss_file.c
193
if (b->init && out != NULL) {
lib/libcrypto/bio/bss_file.c
194
ret = fread(out, 1, outl, (FILE *)b->ptr);
lib/libcrypto/bio/bss_file.c
195
if (ret == 0 && ferror((FILE *)b->ptr)) {
lib/libcrypto/bio/bss_file.c
205
file_write(BIO *b, const char *in, int inl)
lib/libcrypto/bio/bss_file.c
209
if (b->init && in != NULL)
lib/libcrypto/bio/bss_file.c
210
ret = fwrite(in, 1, inl, (FILE *)b->ptr);
lib/libcrypto/bio/bss_file.c
215
file_ctrl(BIO *b, int cmd, long num, void *ptr)
lib/libcrypto/bio/bss_file.c
218
FILE *fp = (FILE *)b->ptr;
lib/libcrypto/bio/bss_file.c
235
file_free(b);
lib/libcrypto/bio/bss_file.c
236
b->shutdown = (int)num&BIO_CLOSE;
lib/libcrypto/bio/bss_file.c
237
b->ptr = ptr;
lib/libcrypto/bio/bss_file.c
238
b->init = 1;
lib/libcrypto/bio/bss_file.c
241
file_free(b);
lib/libcrypto/bio/bss_file.c
242
b->shutdown = (int)num&BIO_CLOSE;
lib/libcrypto/bio/bss_file.c
266
b->ptr = fp;
lib/libcrypto/bio/bss_file.c
267
b->init = 1;
lib/libcrypto/bio/bss_file.c
273
*fpp = (FILE *)b->ptr;
lib/libcrypto/bio/bss_file.c
277
ret = (long)b->shutdown;
lib/libcrypto/bio/bss_file.c
280
b->shutdown = (int)num;
lib/libcrypto/bio/bss_file.c
283
fflush((FILE *)b->ptr);
lib/libcrypto/bio/bss_null.c
112
null_read(BIO *b, char *out, int outl)
lib/libcrypto/bio/bss_null.c
118
null_write(BIO *b, const char *in, int inl)
lib/libcrypto/bio/bss_null.c
124
null_ctrl(BIO *b, int cmd, long num, void *ptr)
lib/libcrypto/bio/bss_sock.c
136
sock_read(BIO *b, char *out, int outl)
lib/libcrypto/bio/bss_sock.c
142
ret = read(b->num, out, outl);
lib/libcrypto/bio/bss_sock.c
143
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bss_sock.c
146
BIO_set_retry_read(b);
lib/libcrypto/bio/bss_sock.c
153
sock_write(BIO *b, const char *in, int inl)
lib/libcrypto/bio/bss_sock.c
158
ret = write(b->num, in, inl);
lib/libcrypto/bio/bss_sock.c
159
BIO_clear_retry_flags(b);
lib/libcrypto/bio/bss_sock.c
162
BIO_set_retry_write(b);
lib/libcrypto/bio/bss_sock.c
168
sock_ctrl(BIO *b, int cmd, long num, void *ptr)
lib/libcrypto/bio/bss_sock.c
175
sock_free(b);
lib/libcrypto/bio/bss_sock.c
176
b->num = *((int *)ptr);
lib/libcrypto/bio/bss_sock.c
177
b->shutdown = (int)num;
lib/libcrypto/bio/bss_sock.c
178
b->init = 1;
lib/libcrypto/bio/bss_sock.c
181
if (b->init) {
lib/libcrypto/bio/bss_sock.c
184
*ip = b->num;
lib/libcrypto/bio/bss_sock.c
185
ret = b->num;
lib/libcrypto/bio/bss_sock.c
190
ret = b->shutdown;
lib/libcrypto/bio/bss_sock.c
193
b->shutdown = (int)num;
lib/libcrypto/bn/arch/aarch64/bn_arch.h
112
bn_mulw(BN_ULONG a, BN_ULONG b, BN_ULONG *out_r1, BN_ULONG *out_r0)
lib/libcrypto/bn/arch/aarch64/bn_arch.h
121
: [a]"r"(a), [b]"r"(b));
lib/libcrypto/bn/arch/aarch64/bn_arch.h
130
bn_mulw_addw(BN_ULONG a, BN_ULONG b, BN_ULONG c, BN_ULONG *out_r1,
lib/libcrypto/bn/arch/aarch64/bn_arch.h
141
: [a]"r"(a), [b]"r"(b), [c]"r"(c)
lib/libcrypto/bn/arch/aarch64/bn_arch.h
151
bn_mulw_addw_addw(BN_ULONG a, BN_ULONG b, BN_ULONG c, BN_ULONG d,
lib/libcrypto/bn/arch/aarch64/bn_arch.h
164
: [a]"r"(a), [b]"r"(b), [c]"r"(c), [d]"r"(d)
lib/libcrypto/bn/arch/aarch64/bn_arch.h
174
bn_mulw_addtw(BN_ULONG a, BN_ULONG b, BN_ULONG c2, BN_ULONG c1, BN_ULONG c0,
lib/libcrypto/bn/arch/aarch64/bn_arch.h
186
: [a]"r"(a), [b]"r"(b), [c2]"r"(c2), [c1]"r"(c1), [c0]"r"(c0)
lib/libcrypto/bn/arch/aarch64/bn_arch.h
197
bn_mul2_mulw_addtw(BN_ULONG a, BN_ULONG b, BN_ULONG c2, BN_ULONG c1, BN_ULONG c0,
lib/libcrypto/bn/arch/aarch64/bn_arch.h
213
: [a]"r"(a), [b]"r"(b), [c2]"r"(c2), [c1]"r"(c1), [c0]"r"(c0)
lib/libcrypto/bn/arch/aarch64/bn_arch.h
224
bn_qwmulw_addw(BN_ULONG a3, BN_ULONG a2, BN_ULONG a1, BN_ULONG a0, BN_ULONG b,
lib/libcrypto/bn/arch/aarch64/bn_arch.h
246
: [a3]"r"(a3), [a2]"r"(a2), [a1]"r"(a1), [a0]"r"(a0), [b]"r"(b)
lib/libcrypto/bn/arch/aarch64/bn_arch.h
260
BN_ULONG b, BN_ULONG c3, BN_ULONG c2, BN_ULONG c1, BN_ULONG c0, BN_ULONG d,
lib/libcrypto/bn/arch/aarch64/bn_arch.h
287
: [a3]"r"(a3), [a2]"r"(a2), [a1]"r"(a1), [a0]"r"(a0), [b]"r"(b),
lib/libcrypto/bn/arch/aarch64/bn_arch.h
301
bn_subw(BN_ULONG a, BN_ULONG b, BN_ULONG *out_borrow, BN_ULONG *out_r0)
lib/libcrypto/bn/arch/aarch64/bn_arch.h
309
: [a]"r"(a), [b]"r"(b)
lib/libcrypto/bn/arch/aarch64/bn_arch.h
319
bn_subw_subw(BN_ULONG a, BN_ULONG b, BN_ULONG c, BN_ULONG *out_borrow,
lib/libcrypto/bn/arch/aarch64/bn_arch.h
330
: [a]"r"(a), [b]"r"(b), [c]"r"(c)
lib/libcrypto/bn/arch/aarch64/bn_arch.h
44
bn_addw(BN_ULONG a, BN_ULONG b, BN_ULONG *out_r1, BN_ULONG *out_r0)
lib/libcrypto/bn/arch/aarch64/bn_arch.h
52
: [a]"r"(a), [b]"r"(b)
lib/libcrypto/bn/arch/aarch64/bn_arch.h
62
bn_addw_addw(BN_ULONG a, BN_ULONG b, BN_ULONG c, BN_ULONG *out_r1,
lib/libcrypto/bn/arch/aarch64/bn_arch.h
73
: [a]"r"(a), [b]"r"(b), [c]"r"(c)
lib/libcrypto/bn/arch/alpha/bn_arch.h
28
bn_mulw(BN_ULONG a, BN_ULONG b, BN_ULONG *out_r1, BN_ULONG *out_r0)
lib/libcrypto/bn/arch/alpha/bn_arch.h
35
: "r"(a), "r"(b));
lib/libcrypto/bn/arch/amd64/bn_arch.c
131
bn_mul_words(BN_ULONG *r, const BN_ULONG *a, int a_len, const BN_ULONG *b,
lib/libcrypto/bn/arch/amd64/bn_arch.c
135
b_len, (const uint64_t *)b);
lib/libcrypto/bn/arch/amd64/bn_arch.c
27
bn_add(BN_ULONG *r, int r_len, const BN_ULONG *a, int a_len, const BN_ULONG *b,
lib/libcrypto/bn/arch/amd64/bn_arch.c
31
b_len, (const uint64_t *)b);
lib/libcrypto/bn/arch/amd64/bn_arch.c
47
bn_sub(BN_ULONG *r, int r_len, const BN_ULONG *a, int a_len, const BN_ULONG *b,
lib/libcrypto/bn/arch/amd64/bn_arch.c
51
b_len, (const uint64_t *)b);
lib/libcrypto/bn/arch/amd64/bn_arch.c
66
bn_mod_add_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
lib/libcrypto/bn/arch/amd64/bn_arch.c
70
(const uint64_t *)b, (const uint64_t *)m);
lib/libcrypto/bn/arch/amd64/bn_arch.c
76
bn_mod_sub_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
lib/libcrypto/bn/arch/amd64/bn_arch.c
80
(const uint64_t *)b, (const uint64_t *)m);
lib/libcrypto/bn/arch/amd64/bn_arch.h
105
: "1"(a), "rm"(b)
lib/libcrypto/bn/arch/amd64/bn_arch.h
76
bn_mulw(BN_ULONG a, BN_ULONG b, BN_ULONG *out_r1, BN_ULONG *out_r0)
lib/libcrypto/bn/arch/amd64/bn_arch.h
86
: "a"(a), "rm"(b)
lib/libcrypto/bn/arch/amd64/bn_arch.h
96
bn_subw(BN_ULONG a, BN_ULONG b, BN_ULONG *out_borrow, BN_ULONG *out_r0)
lib/libcrypto/bn/arch/arm/bn_arch.h
30
bn_subw(BN_ULONG a, BN_ULONG b, BN_ULONG *out_borrow, BN_ULONG *out_r0)
lib/libcrypto/bn/arch/arm/bn_arch.h
40
: [a]"r"(a), [b]"r"(b)
lib/libcrypto/bn/arch/arm/bn_arch.h
50
bn_subw_subw(BN_ULONG a, BN_ULONG b, BN_ULONG c, BN_ULONG *out_borrow,
lib/libcrypto/bn/arch/arm/bn_arch.h
63
: [a]"r"(a), [b]"r"(b), [c]"r"(c)
lib/libcrypto/bn/arch/i386/bn_arch.h
66
bn_mulw(BN_ULONG a, BN_ULONG b, BN_ULONG *out_r1, BN_ULONG *out_r0)
lib/libcrypto/bn/arch/i386/bn_arch.h
76
: "a"(a), "rm"(b)
lib/libcrypto/bn/arch/powerpc64/bn_arch.h
28
bn_mulw(BN_ULONG a, BN_ULONG b, BN_ULONG *out_r1, BN_ULONG *out_r0)
lib/libcrypto/bn/arch/powerpc64/bn_arch.h
35
: "r"(a), "r"(b));
lib/libcrypto/bn/arch/riscv64/bn_arch.h
30
bn_addw(BN_ULONG a, BN_ULONG b, BN_ULONG *out_r1, BN_ULONG *out_r0)
lib/libcrypto/bn/arch/riscv64/bn_arch.h
38
: [a]"r"(a), [b]"r"(b));
lib/libcrypto/bn/arch/riscv64/bn_arch.h
47
bn_mulw(BN_ULONG a, BN_ULONG b, BN_ULONG *out_r1, BN_ULONG *out_r0)
lib/libcrypto/bn/arch/riscv64/bn_arch.h
60
: [a]"r"(a), [b]"r"(b));
lib/libcrypto/bn/arch/riscv64/bn_arch.h
69
bn_subw(BN_ULONG a, BN_ULONG b, BN_ULONG *out_borrow, BN_ULONG *out_r0)
lib/libcrypto/bn/arch/riscv64/bn_arch.h
77
: [a]"r"(a), [b]"r"(b));
lib/libcrypto/bn/bn.h
164
void BN_set_flags(BIGNUM *b, int n);
lib/libcrypto/bn/bn.h
165
int BN_get_flags(const BIGNUM *b, int n);
lib/libcrypto/bn/bn.h
181
int BN_GENCB_call(BN_GENCB *cb, int a, int b);
lib/libcrypto/bn/bn.h
260
#define BN_prime_checks_for_size(b) ((b) >= 3747 ? 3 : \
lib/libcrypto/bn/bn.h
261
(b) >= 1345 ? 4 : \
lib/libcrypto/bn/bn.h
262
(b) >= 476 ? 5 : \
lib/libcrypto/bn/bn.h
263
(b) >= 400 ? 6 : \
lib/libcrypto/bn/bn.h
264
(b) >= 347 ? 7 : \
lib/libcrypto/bn/bn.h
265
(b) >= 308 ? 8 : \
lib/libcrypto/bn/bn.h
266
(b) >= 55 ? 27 : \
lib/libcrypto/bn/bn.h
294
BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b);
lib/libcrypto/bn/bn.h
295
void BN_swap(BIGNUM *a, BIGNUM *b);
lib/libcrypto/bn/bn.h
303
int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
lib/libcrypto/bn/bn.h
304
int BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
lib/libcrypto/bn/bn.h
305
int BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
lib/libcrypto/bn/bn.h
306
int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
lib/libcrypto/bn/bn.h
307
int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
lib/libcrypto/bn/bn.h
309
void BN_set_negative(BIGNUM *b, int n);
lib/libcrypto/bn/bn.h
311
int BN_is_negative(const BIGNUM *b);
lib/libcrypto/bn/bn.h
318
int BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx);
lib/libcrypto/bn/bn.h
319
int BN_mod_add_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m);
lib/libcrypto/bn/bn.h
320
int BN_mod_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx);
lib/libcrypto/bn/bn.h
321
int BN_mod_sub_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m);
lib/libcrypto/bn/bn.h
322
int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
lib/libcrypto/bn/bn.h
338
int BN_cmp(const BIGNUM *a, const BIGNUM *b);
lib/libcrypto/bn/bn.h
359
int BN_ucmp(const BIGNUM *a, const BIGNUM *b);
lib/libcrypto/bn/bn.h
367
int BN_gcd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
lib/libcrypto/bn/bn.h
368
int BN_kronecker(const BIGNUM *a,const BIGNUM *b,BN_CTX *ctx); /* returns -2 for error */
lib/libcrypto/bn/bn.h
374
void BN_consttime_swap(BN_ULONG swap, BIGNUM *a, BIGNUM *b, int nwords);
lib/libcrypto/bn/bn.h
385
int BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
lib/libcrypto/bn/bn_add.c
123
bn_sub(BN_ULONG *r, int r_len, const BN_ULONG *a, int a_len, const BN_ULONG *b,
lib/libcrypto/bn/bn_add.c
134
borrow = bn_sub_words(r, a, b, min_len);
lib/libcrypto/bn/bn_add.c
137
b += min_len;
lib/libcrypto/bn/bn_add.c
143
bn_subw_subw(0, b[0], borrow, &borrow, &r[0]);
lib/libcrypto/bn/bn_add.c
145
b++;
lib/libcrypto/bn/bn_add.c
163
BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
lib/libcrypto/bn/bn_add.c
168
if ((rn = a->top) < b->top)
lib/libcrypto/bn/bn_add.c
169
rn = b->top;
lib/libcrypto/bn/bn_add.c
175
carry = bn_add(r->d, rn, a->d, a->top, b->d, b->top);
lib/libcrypto/bn/bn_add.c
186
BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
lib/libcrypto/bn/bn_add.c
191
if (a->top < b->top) {
lib/libcrypto/bn/bn_add.c
200
borrow = bn_sub(r->d, rn, a->d, a->top, b->d, b->top);
lib/libcrypto/bn/bn_add.c
216
BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
lib/libcrypto/bn/bn_add.c
220
if (a->neg == b->neg) {
lib/libcrypto/bn/bn_add.c
222
ret = BN_uadd(r, a, b);
lib/libcrypto/bn/bn_add.c
224
int cmp = BN_ucmp(a, b);
lib/libcrypto/bn/bn_add.c
228
ret = BN_usub(r, a, b);
lib/libcrypto/bn/bn_add.c
230
r_neg = b->neg;
lib/libcrypto/bn/bn_add.c
231
ret = BN_usub(r, b, a);
lib/libcrypto/bn/bn_add.c
246
BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
lib/libcrypto/bn/bn_add.c
250
if (a->neg != b->neg) {
lib/libcrypto/bn/bn_add.c
252
ret = BN_uadd(r, a, b);
lib/libcrypto/bn/bn_add.c
254
int cmp = BN_ucmp(a, b);
lib/libcrypto/bn/bn_add.c
258
ret = BN_usub(r, a, b);
lib/libcrypto/bn/bn_add.c
260
r_neg = !b->neg;
lib/libcrypto/bn/bn_add.c
261
ret = BN_usub(r, b, a);
lib/libcrypto/bn/bn_add.c
76
bn_add(BN_ULONG *r, int r_len, const BN_ULONG *a, int a_len, const BN_ULONG *b,
lib/libcrypto/bn/bn_add.c
87
carry = bn_add_words(r, a, b, min_len);
lib/libcrypto/bn/bn_add.c
90
b += min_len;
lib/libcrypto/bn/bn_add.c
96
bn_addw(b[0], carry, &carry, &r[0]);
lib/libcrypto/bn/bn_add.c
98
b++;
lib/libcrypto/bn/bn_add_sub.c
101
bn_subw_subw(a[0], b[0], borrow, &borrow, &r);
lib/libcrypto/bn/bn_add_sub.c
103
b++;
lib/libcrypto/bn/bn_add_sub.c
117
bn_add_words_masked(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
lib/libcrypto/bn/bn_add_sub.c
125
bn_qwaddqw(a[3], a[2], a[1], a[0], b[3] & mask, b[2] & mask,
lib/libcrypto/bn/bn_add_sub.c
126
b[1] & mask, b[0] & mask, carry, &carry, &r[3], &r[2],
lib/libcrypto/bn/bn_add_sub.c
129
b += 4;
lib/libcrypto/bn/bn_add_sub.c
134
bn_addw_addw(a[0], b[0] & mask, carry, &carry, &r[0]);
lib/libcrypto/bn/bn_add_sub.c
136
b++;
lib/libcrypto/bn/bn_add_sub.c
151
bn_sub_words_masked(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
lib/libcrypto/bn/bn_add_sub.c
160
bn_qwsubqw(a[3], a[2], a[1], a[0], b[3] & mask, b[2] & mask,
lib/libcrypto/bn/bn_add_sub.c
161
b[1] & mask, b[0] & mask, borrow, &borrow, &r[3], &r[2],
lib/libcrypto/bn/bn_add_sub.c
164
b += 4;
lib/libcrypto/bn/bn_add_sub.c
169
bn_subw_subw(a[0], b[0] & mask, borrow, &borrow, &r[0]);
lib/libcrypto/bn/bn_add_sub.c
171
b++;
lib/libcrypto/bn/bn_add_sub.c
28
bn_add_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b, int n)
lib/libcrypto/bn/bn_add_sub.c
33
bn_qwaddqw(a[3], a[2], a[1], a[0], b[3], b[2], b[1], b[0],
lib/libcrypto/bn/bn_add_sub.c
36
b += 4;
lib/libcrypto/bn/bn_add_sub.c
41
bn_addw_addw(a[0], b[0], carry, &carry, &r[0]);
lib/libcrypto/bn/bn_add_sub.c
43
b++;
lib/libcrypto/bn/bn_add_sub.c
59
bn_sub_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b, int n)
lib/libcrypto/bn/bn_add_sub.c
64
bn_qwsubqw(a[3], a[2], a[1], a[0], b[3], b[2], b[1], b[0],
lib/libcrypto/bn/bn_add_sub.c
67
b += 4;
lib/libcrypto/bn/bn_add_sub.c
72
bn_subw_subw(a[0], b[0], borrow, &borrow, &r[0]);
lib/libcrypto/bn/bn_add_sub.c
74
b++;
lib/libcrypto/bn/bn_add_sub.c
88
bn_sub_words_borrow(const BN_ULONG *a, const BN_ULONG *b, size_t n)
lib/libcrypto/bn/bn_add_sub.c
94
bn_qwsubqw(a[3], a[2], a[1], a[0], b[3], b[2], b[1], b[0],
lib/libcrypto/bn/bn_add_sub.c
97
b += 4;
lib/libcrypto/bn/bn_convert.c
109
b = BN_BITS2;
lib/libcrypto/bn/bn_convert.c
113
if (b == BN_BITS2) {
lib/libcrypto/bn/bn_convert.c
116
b = 0;
lib/libcrypto/bn/bn_convert.c
118
out[i] = (w >> b) & mask;
lib/libcrypto/bn/bn_convert.c
119
b += 8;
lib/libcrypto/bn/bn_convert.c
156
int b, i;
lib/libcrypto/bn/bn_convert.c
165
b = 0;
lib/libcrypto/bn/bn_convert.c
178
w |= (BN_ULONG)v << b;
lib/libcrypto/bn/bn_convert.c
179
b += 8;
lib/libcrypto/bn/bn_convert.c
181
if (b == BN_BITS2 || CBS_len(cbs) == 0) {
lib/libcrypto/bn/bn_convert.c
182
b = 0;
lib/libcrypto/bn/bn_convert.c
582
int b, i, neg, num;
lib/libcrypto/bn/bn_convert.c
622
b = 0;
lib/libcrypto/bn/bn_convert.c
640
w |= (BN_ULONG)v << b;
lib/libcrypto/bn/bn_convert.c
641
b += 4;
lib/libcrypto/bn/bn_convert.c
643
if (b == BN_BITS2 || digits == 0) {
lib/libcrypto/bn/bn_convert.c
644
b = 0;
lib/libcrypto/bn/bn_convert.c
94
int b, n;
lib/libcrypto/bn/bn_exp.c
1160
int i, j, bits, b, bits1, bits2, ret = 0, wpos1, wpos2, window1, window2, wvalue1, wvalue2;
lib/libcrypto/bn/bn_exp.c
1264
for (b = bits - 1; b >= 0; b--) {
lib/libcrypto/bn/bn_exp.c
1271
if (BN_is_bit_set(p1, b)) {
lib/libcrypto/bn/bn_exp.c
1273
i = b - window1 + 1;
lib/libcrypto/bn/bn_exp.c
1278
for (i = b - 1; i >= wpos1; i--) {
lib/libcrypto/bn/bn_exp.c
1286
if (BN_is_bit_set(p2, b)) {
lib/libcrypto/bn/bn_exp.c
1288
i = b - window2 + 1;
lib/libcrypto/bn/bn_exp.c
1293
for (i = b - 1; i >= wpos2; i--) {
lib/libcrypto/bn/bn_exp.c
1300
if (wvalue1 && b == wpos1) {
lib/libcrypto/bn/bn_exp.c
1309
if (wvalue2 && b == wpos2) {
lib/libcrypto/bn/bn_exp.c
313
MOD_EXP_CTIME_COPY_TO_PREBUF(const BIGNUM *b, int top, unsigned char *buf,
lib/libcrypto/bn/bn_exp.c
320
if (top > b->top)
lib/libcrypto/bn/bn_exp.c
321
top = b->top; /* this works because 'buf' is explicitly zeroed */
lib/libcrypto/bn/bn_exp.c
324
table[j] = b->d[i];
lib/libcrypto/bn/bn_exp.c
331
MOD_EXP_CTIME_COPY_FROM_PREBUF(BIGNUM *b, int top, unsigned char *buf, int idx,
lib/libcrypto/bn/bn_exp.c
338
if (!bn_wexpand(b, top))
lib/libcrypto/bn/bn_exp.c
350
b->d[i] = acc;
lib/libcrypto/bn/bn_exp.c
375
b->d[i] = acc;
lib/libcrypto/bn/bn_exp.c
378
b->top = top;
lib/libcrypto/bn/bn_exp.c
379
bn_correct_top(b);
lib/libcrypto/bn/bn_exp.c
811
int b, bits, ret = 0;
lib/libcrypto/bn/bn_exp.c
881
for (b = bits - 2; b >= 0; b--) {
lib/libcrypto/bn/bn_exp.c
903
if (BN_is_bit_set(p, b)) {
lib/libcrypto/bn/bn_gcd.c
116
euclid(BIGNUM *a, BIGNUM *b)
lib/libcrypto/bn/bn_gcd.c
122
while (!BN_is_zero(b)) {
lib/libcrypto/bn/bn_gcd.c
123
if (BN_is_odd(a) && BN_is_odd(b)) {
lib/libcrypto/bn/bn_gcd.c
124
if (!BN_sub(a, a, b))
lib/libcrypto/bn/bn_gcd.c
128
} else if (BN_is_odd(a) && !BN_is_odd(b)) {
lib/libcrypto/bn/bn_gcd.c
129
if (!BN_rshift1(b, b))
lib/libcrypto/bn/bn_gcd.c
131
} else if (!BN_is_odd(a) && BN_is_odd(b)) {
lib/libcrypto/bn/bn_gcd.c
137
if (!BN_rshift1(b, b))
lib/libcrypto/bn/bn_gcd.c
143
if (BN_cmp(a, b) < 0) {
lib/libcrypto/bn/bn_gcd.c
145
a = b;
lib/libcrypto/bn/bn_gcd.c
146
b = t;
lib/libcrypto/bn/bn_gcd.c
164
BIGNUM *a, *b, *t;
lib/libcrypto/bn/bn_gcd.c
170
if ((b = BN_CTX_get(ctx)) == NULL)
lib/libcrypto/bn/bn_gcd.c
175
if (!bn_copy(b, in_b))
lib/libcrypto/bn/bn_gcd.c
178
b->neg = 0;
lib/libcrypto/bn/bn_gcd.c
180
if (BN_cmp(a, b) < 0) {
lib/libcrypto/bn/bn_gcd.c
182
a = b;
lib/libcrypto/bn/bn_gcd.c
183
b = t;
lib/libcrypto/bn/bn_gcd.c
185
t = euclid(a, b);
lib/libcrypto/bn/bn_internal.h
121
bn_addw(BN_ULONG a, BN_ULONG b, BN_ULONG *out_r1, BN_ULONG *out_r0)
lib/libcrypto/bn/bn_internal.h
125
r = (BN_ULLONG)a + (BN_ULLONG)b;
lib/libcrypto/bn/bn_internal.h
135
bn_addw_addw(BN_ULONG a, BN_ULONG b, BN_ULONG c, BN_ULONG *out_r1,
lib/libcrypto/bn/bn_internal.h
140
r = (BN_ULLONG)a + (BN_ULLONG)b + (BN_ULLONG)c;
lib/libcrypto/bn/bn_internal.h
150
bn_mulw(BN_ULONG a, BN_ULONG b, BN_ULONG *out_r1, BN_ULONG *out_r0)
lib/libcrypto/bn/bn_internal.h
154
r = (BN_ULLONG)a * (BN_ULLONG)b;
lib/libcrypto/bn/bn_internal.h
164
bn_mulw_addw(BN_ULONG a, BN_ULONG b, BN_ULONG c, BN_ULONG *out_r1,
lib/libcrypto/bn/bn_internal.h
169
r = (BN_ULLONG)a * (BN_ULLONG)b + (BN_ULLONG)c;
lib/libcrypto/bn/bn_internal.h
179
bn_mulw_addw_addw(BN_ULONG a, BN_ULONG b, BN_ULONG c, BN_ULONG d,
lib/libcrypto/bn/bn_internal.h
184
r = (BN_ULLONG)a * (BN_ULLONG)b + (BN_ULLONG)c + (BN_ULLONG)d;
lib/libcrypto/bn/bn_internal.h
200
bn_addw(BN_ULONG a, BN_ULONG b, BN_ULONG *out_r1, BN_ULONG *out_r0)
lib/libcrypto/bn/bn_internal.h
204
c1 = a | b;
lib/libcrypto/bn/bn_internal.h
205
c2 = a & b;
lib/libcrypto/bn/bn_internal.h
206
r0 = a + b;
lib/libcrypto/bn/bn_internal.h
220
bn_addw_addw(BN_ULONG a, BN_ULONG b, BN_ULONG c, BN_ULONG *out_r1,
lib/libcrypto/bn/bn_internal.h
225
bn_addw(a, b, &r1, &r0);
lib/libcrypto/bn/bn_internal.h
267
bn_subw(BN_ULONG a, BN_ULONG b, BN_ULONG *out_borrow, BN_ULONG *out_r0)
lib/libcrypto/bn/bn_internal.h
271
r0 = a - b;
lib/libcrypto/bn/bn_internal.h
272
borrow = ((r0 | (b & ~a)) & (b | ~a)) >> (BN_BITS2 - 1);
lib/libcrypto/bn/bn_internal.h
285
bn_subw_subw(BN_ULONG a, BN_ULONG b, BN_ULONG c, BN_ULONG *out_borrow,
lib/libcrypto/bn/bn_internal.h
290
bn_subw(a, b, &b1, &r0);
lib/libcrypto/bn/bn_internal.h
30
BN_ULONG bn_add_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
lib/libcrypto/bn/bn_internal.h
32
BN_ULONG bn_sub_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
lib/libcrypto/bn/bn_internal.h
34
BN_ULONG bn_sub_words_borrow(const BN_ULONG *a, const BN_ULONG *b, size_t n);
lib/libcrypto/bn/bn_internal.h
35
BN_ULONG bn_add_words_masked(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
lib/libcrypto/bn/bn_internal.h
350
bn_mulw(BN_ULONG a, BN_ULONG b, BN_ULONG *out_r1, BN_ULONG *out_r0)
lib/libcrypto/bn/bn_internal.h
357
b1 = b >> BN_BITS4;
lib/libcrypto/bn/bn_internal.h
358
b0 = b & BN_MASK2l;
lib/libcrypto/bn/bn_internal.h
37
BN_ULONG bn_sub_words_masked(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
lib/libcrypto/bn/bn_internal.h
388
bn_mulw(BN_ULONG a, BN_ULONG b, BN_ULONG *out_r1, BN_ULONG *out_r0)
lib/libcrypto/bn/bn_internal.h
39
void bn_mod_add_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
lib/libcrypto/bn/bn_internal.h
394
b1 = b >> BN_BITS4;
lib/libcrypto/bn/bn_internal.h
396
b0 = b & BN_MASK2l;
lib/libcrypto/bn/bn_internal.h
41
void bn_mod_sub_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
lib/libcrypto/bn/bn_internal.h
43
void bn_mod_mul_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
lib/libcrypto/bn/bn_internal.h
430
bn_mulw_lo(BN_ULONG a, BN_ULONG b)
lib/libcrypto/bn/bn_internal.h
432
return a * b;
lib/libcrypto/bn/bn_internal.h
438
bn_mulw_hi(BN_ULONG a, BN_ULONG b)
lib/libcrypto/bn/bn_internal.h
442
bn_mulw(a, b, &h, &l);
lib/libcrypto/bn/bn_internal.h
454
bn_mulw_addw(BN_ULONG a, BN_ULONG b, BN_ULONG c, BN_ULONG *out_r1,
lib/libcrypto/bn/bn_internal.h
459
bn_mulw(a, b, &r1, &r0);
lib/libcrypto/bn/bn_internal.h
474
bn_mulw_addw_addw(BN_ULONG a, BN_ULONG b, BN_ULONG c, BN_ULONG d,
lib/libcrypto/bn/bn_internal.h
479
bn_mulw_addw(a, b, c, &r1, &r0);
lib/libcrypto/bn/bn_internal.h
496
bn_mulw_addtw(BN_ULONG a, BN_ULONG b, BN_ULONG c2, BN_ULONG c1, BN_ULONG c0,
lib/libcrypto/bn/bn_internal.h
501
bn_mulw_addw(a, b, c0, &x1, &r0);
lib/libcrypto/bn/bn_internal.h
519
bn_mul2_mulw_addtw(BN_ULONG a, BN_ULONG b, BN_ULONG c2, BN_ULONG c1, BN_ULONG c0,
lib/libcrypto/bn/bn_internal.h
525
bn_mulw(a, b, &x1, &x0);
lib/libcrypto/bn/bn_internal.h
546
bn_qwmulw_addw(BN_ULONG a3, BN_ULONG a2, BN_ULONG a1, BN_ULONG a0, BN_ULONG b,
lib/libcrypto/bn/bn_internal.h
552
bn_mulw_addw(a0, b, c, &c, &r0);
lib/libcrypto/bn/bn_internal.h
553
bn_mulw_addw(a1, b, c, &c, &r1);
lib/libcrypto/bn/bn_internal.h
554
bn_mulw_addw(a2, b, c, &c, &r2);
lib/libcrypto/bn/bn_internal.h
555
bn_mulw_addw(a3, b, c, &c, &r3);
lib/libcrypto/bn/bn_internal.h
574
BN_ULONG b, BN_ULONG c3, BN_ULONG c2, BN_ULONG c1, BN_ULONG c0, BN_ULONG d,
lib/libcrypto/bn/bn_internal.h
580
bn_mulw_addw_addw(a0, b, c0, d, &d, &r0);
lib/libcrypto/bn/bn_internal.h
581
bn_mulw_addw_addw(a1, b, c1, d, &d, &r1);
lib/libcrypto/bn/bn_internal.h
582
bn_mulw_addw_addw(a2, b, c2, d, &d, &r2);
lib/libcrypto/bn/bn_internal.h
583
bn_mulw_addw_addw(a3, b, c3, d, &d, &r3);
lib/libcrypto/bn/bn_isqrt.c
107
if (!BN_rshift(b, n, 2 * c - d - e + 1))
lib/libcrypto/bn/bn_isqrt.c
110
if (!BN_div_ct(b, NULL, b, a, ctx))
lib/libcrypto/bn/bn_isqrt.c
116
if (!BN_add(a, a, b))
lib/libcrypto/bn/bn_isqrt.c
126
if (!BN_sqr(b, a, ctx))
lib/libcrypto/bn/bn_isqrt.c
130
if ((cmp = BN_cmp(b, n)) > 0) {
lib/libcrypto/bn/bn_isqrt.c
46
BIGNUM *a, *b;
lib/libcrypto/bn/bn_isqrt.c
70
if ((b = BN_CTX_get(ctx)) == NULL)
lib/libcrypto/bn/bn_isqrt.c
86
if (!BN_set_word(b, c))
lib/libcrypto/bn/bn_isqrt.c
88
s = BN_num_bits(b) - 1;
lib/libcrypto/bn/bn_kron.c
101
if (!BN_is_odd(a) && !BN_is_odd(b)) {
lib/libcrypto/bn/bn_kron.c
108
while (!BN_is_bit_set(b, v))
lib/libcrypto/bn/bn_kron.c
110
if (!BN_rshift(b, b, v))
lib/libcrypto/bn/bn_kron.c
122
if (BN_is_negative(b)) {
lib/libcrypto/bn/bn_kron.c
123
BN_set_negative(b, 0);
lib/libcrypto/bn/bn_kron.c
143
ret = BN_is_one(b) ? k : 0;
lib/libcrypto/bn/bn_kron.c
156
k *= tab[BN_lsw(b) & 7];
lib/libcrypto/bn/bn_kron.c
170
if ((BN_is_negative(a) ? ~BN_lsw(a) : BN_lsw(a)) & BN_lsw(b) & 2)
lib/libcrypto/bn/bn_kron.c
180
if (!BN_nnmod(b, b, a, ctx))
lib/libcrypto/bn/bn_kron.c
184
a = b;
lib/libcrypto/bn/bn_kron.c
185
b = tmp;
lib/libcrypto/bn/bn_kron.c
187
BN_set_negative(b, 0);
lib/libcrypto/bn/bn_kron.c
70
BIGNUM *a, *b, *tmp;
lib/libcrypto/bn/bn_kron.c
78
if ((b = BN_CTX_get(ctx)) == NULL)
lib/libcrypto/bn/bn_kron.c
83
if (!bn_copy(b, B))
lib/libcrypto/bn/bn_kron.c
91
if (BN_is_zero(b)) {
lib/libcrypto/bn/bn_lib.c
127
BN_set_flags(BIGNUM *b, int n)
lib/libcrypto/bn/bn_lib.c
129
b->flags |= n;
lib/libcrypto/bn/bn_lib.c
134
BN_get_flags(const BIGNUM *b, int n)
lib/libcrypto/bn/bn_lib.c
136
return b->flags & n;
lib/libcrypto/bn/bn_lib.c
141
BN_with_flags(BIGNUM *dest, const BIGNUM *b, int flags)
lib/libcrypto/bn/bn_lib.c
146
(b->flags & ~BN_FLG_MALLOCED) | BN_FLG_STATIC_DATA | flags;
lib/libcrypto/bn/bn_lib.c
148
*dest = *b;
lib/libcrypto/bn/bn_lib.c
289
BN_copy(BIGNUM *a, const BIGNUM *b)
lib/libcrypto/bn/bn_lib.c
291
if (a == b)
lib/libcrypto/bn/bn_lib.c
294
if (!bn_wexpand(a, b->top))
lib/libcrypto/bn/bn_lib.c
297
bn_copy_words(a->d, b->d, b->top);
lib/libcrypto/bn/bn_lib.c
300
a->flags |= b->flags & BN_FLG_CONSTTIME;
lib/libcrypto/bn/bn_lib.c
302
a->top = b->top;
lib/libcrypto/bn/bn_lib.c
303
a->neg = b->neg;
lib/libcrypto/bn/bn_lib.c
316
BN_swap(BIGNUM *a, BIGNUM *b)
lib/libcrypto/bn/bn_lib.c
324
flags_old_b = b->flags;
lib/libcrypto/bn/bn_lib.c
331
a->d = b->d;
lib/libcrypto/bn/bn_lib.c
332
a->top = b->top;
lib/libcrypto/bn/bn_lib.c
333
a->dmax = b->dmax;
lib/libcrypto/bn/bn_lib.c
334
a->neg = b->neg;
lib/libcrypto/bn/bn_lib.c
336
b->d = tmp_d;
lib/libcrypto/bn/bn_lib.c
337
b->top = tmp_top;
lib/libcrypto/bn/bn_lib.c
338
b->dmax = tmp_dmax;
lib/libcrypto/bn/bn_lib.c
339
b->neg = tmp_neg;
lib/libcrypto/bn/bn_lib.c
343
b->flags = (flags_old_b & BN_FLG_MALLOCED) |
lib/libcrypto/bn/bn_lib.c
373
BN_ucmp(const BIGNUM *a, const BIGNUM *b)
lib/libcrypto/bn/bn_lib.c
377
if (a->top < b->top)
lib/libcrypto/bn/bn_lib.c
379
if (a->top > b->top)
lib/libcrypto/bn/bn_lib.c
383
if (a->d[i] != b->d[i])
lib/libcrypto/bn/bn_lib.c
384
return (a->d[i] > b->d[i] ? 1 : -1);
lib/libcrypto/bn/bn_lib.c
392
BN_cmp(const BIGNUM *a, const BIGNUM *b)
lib/libcrypto/bn/bn_lib.c
394
if (a == NULL || b == NULL) {
lib/libcrypto/bn/bn_lib.c
397
if (b != NULL)
lib/libcrypto/bn/bn_lib.c
402
if (a->neg != b->neg)
lib/libcrypto/bn/bn_lib.c
403
return b->neg - a->neg;
lib/libcrypto/bn/bn_lib.c
406
return BN_ucmp(b, a);
lib/libcrypto/bn/bn_lib.c
408
return BN_ucmp(a, b);
lib/libcrypto/bn/bn_lib.c
475
int b, w;
lib/libcrypto/bn/bn_lib.c
481
b = n % BN_BITS2;
lib/libcrypto/bn/bn_lib.c
484
if (b == 0)
lib/libcrypto/bn/bn_lib.c
488
a->d[w] &= ~(BN_MASK2 << b);
lib/libcrypto/bn/bn_lib.c
515
BN_consttime_swap(BN_ULONG condition, BIGNUM *a, BIGNUM *b, int nwords)
lib/libcrypto/bn/bn_lib.c
520
assert(a != b);
lib/libcrypto/bn/bn_lib.c
526
t = (a->top^b->top) & condition;
lib/libcrypto/bn/bn_lib.c
528
b->top ^= t;
lib/libcrypto/bn/bn_lib.c
532
t = (a->d[ind] ^ b->d[ind]) & condition; \
lib/libcrypto/bn/bn_lib.c
534
b->d[ind] ^= t; \
lib/libcrypto/bn/bn_lib.c
565
BN_swap_ct(BN_ULONG condition, BIGNUM *a, BIGNUM *b, size_t nwords)
lib/libcrypto/bn/bn_lib.c
570
if (a == b)
lib/libcrypto/bn/bn_lib.c
575
if (!bn_wexpand(a, words) || !bn_wexpand(b, words))
lib/libcrypto/bn/bn_lib.c
577
if (a->top > words || b->top > words) {
lib/libcrypto/bn/bn_lib.c
586
t = (a->top ^ b->top) & condition;
lib/libcrypto/bn/bn_lib.c
588
b->top ^= t;
lib/libcrypto/bn/bn_lib.c
591
t = (a->neg ^ b->neg) & condition;
lib/libcrypto/bn/bn_lib.c
593
b->neg ^= t;
lib/libcrypto/bn/bn_lib.c
596
t = ((a->flags ^ b->flags) & BN_FLG_CONSTTIME) & condition;
lib/libcrypto/bn/bn_lib.c
598
b->flags ^= t;
lib/libcrypto/bn/bn_lib.c
602
t = (a->d[i] ^ b->d[i]) & condition;
lib/libcrypto/bn/bn_lib.c
604
b->d[i] ^= t;
lib/libcrypto/bn/bn_local.h
194
#define BN_window_bits_for_exponent_size(b) \
lib/libcrypto/bn/bn_local.h
195
((b) > 671 ? 6 : \
lib/libcrypto/bn/bn_local.h
196
(b) > 239 ? 5 : \
lib/libcrypto/bn/bn_local.h
197
(b) > 79 ? 4 : \
lib/libcrypto/bn/bn_local.h
198
(b) > 23 ? 3 : 1)
lib/libcrypto/bn/bn_local.h
222
# define BN_window_bits_for_ctime_exponent_size(b) \
lib/libcrypto/bn/bn_local.h
223
((b) > 937 ? 6 : \
lib/libcrypto/bn/bn_local.h
224
(b) > 306 ? 5 : \
lib/libcrypto/bn/bn_local.h
225
(b) > 89 ? 4 : \
lib/libcrypto/bn/bn_local.h
226
(b) > 22 ? 3 : 1)
lib/libcrypto/bn/bn_local.h
231
# define BN_window_bits_for_ctime_exponent_size(b) \
lib/libcrypto/bn/bn_local.h
232
((b) > 306 ? 5 : \
lib/libcrypto/bn/bn_local.h
233
(b) > 89 ? 4 : \
lib/libcrypto/bn/bn_local.h
234
(b) > 22 ? 3 : 1)
lib/libcrypto/bn/bn_local.h
252
const BN_ULONG *b, int b_len);
lib/libcrypto/bn/bn_local.h
254
const BN_ULONG *b, int b_len);
lib/libcrypto/bn/bn_local.h
256
void bn_mul_comba4(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b);
lib/libcrypto/bn/bn_local.h
257
void bn_mul_comba6(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b);
lib/libcrypto/bn/bn_local.h
258
void bn_mul_comba8(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b);
lib/libcrypto/bn/bn_local.h
259
void bn_mul_words(BN_ULONG *r, const BN_ULONG *a, int a_len, const BN_ULONG *b,
lib/libcrypto/bn/bn_local.h
329
int BN_gcd_ct(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
lib/libcrypto/bn/bn_local.h
331
int BN_swap_ct(BN_ULONG swap, BIGNUM *a, BIGNUM *b, size_t nwords);
lib/libcrypto/bn/bn_mod.c
151
BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
lib/libcrypto/bn/bn_mod.c
158
if (!BN_add(r, a, b))
lib/libcrypto/bn/bn_mod.c
169
BN_mod_add_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m)
lib/libcrypto/bn/bn_mod.c
175
if (!BN_uadd(r, a, b))
lib/libcrypto/bn/bn_mod.c
184
BN_mod_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
lib/libcrypto/bn/bn_mod.c
191
if (!BN_sub(r, a, b))
lib/libcrypto/bn/bn_mod.c
202
BN_mod_sub_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m)
lib/libcrypto/bn/bn_mod.c
208
if (BN_ucmp(a, b) >= 0)
lib/libcrypto/bn/bn_mod.c
209
return BN_usub(r, a, b);
lib/libcrypto/bn/bn_mod.c
210
if (!BN_usub(r, b, a))
lib/libcrypto/bn/bn_mod.c
217
BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
lib/libcrypto/bn/bn_mod.c
231
if (rr == a || rr == b)
lib/libcrypto/bn/bn_mod.c
236
if (a == b) {
lib/libcrypto/bn/bn_mod.c
240
if (!BN_mul(rr, a, b, ctx))
lib/libcrypto/bn/bn_mod_sqrt.c
149
BIGNUM *b, *i, *n, *tmp;
lib/libcrypto/bn/bn_mod_sqrt.c
154
if ((b = BN_CTX_get(ctx)) == NULL)
lib/libcrypto/bn/bn_mod_sqrt.c
173
if (!BN_mod_exp_ct(b, tmp, n, p, ctx))
lib/libcrypto/bn/bn_mod_sqrt.c
177
if (!BN_mod_sqr(i, b, p, ctx))
lib/libcrypto/bn/bn_mod_sqrt.c
185
if (!BN_mod_mul(out_sqrt, a, b, p, ctx))
lib/libcrypto/bn/bn_mod_sqrt.c
311
bn_mod_sqrt_tonelli_shanks_initialize(BIGNUM *b, BIGNUM *x, const BIGNUM *a,
lib/libcrypto/bn/bn_mod_sqrt.c
331
if (!BN_mod_sqr(b, x, p, ctx))
lib/libcrypto/bn/bn_mod_sqrt.c
333
if (!BN_mod_mul(b, a, b, p, ctx))
lib/libcrypto/bn/bn_mod_sqrt.c
354
bn_mod_sqrt_tonelli_shanks_find_exponent(int *out_exponent, const BIGNUM *b,
lib/libcrypto/bn/bn_mod_sqrt.c
380
if (BN_is_zero(b) || BN_is_one(b)) {
lib/libcrypto/bn/bn_mod_sqrt.c
385
if (!bn_copy(x, b))
lib/libcrypto/bn/bn_mod_sqrt.c
419
bn_mod_sqrt_tonelli_shanks_update(BIGNUM *b, BIGNUM *x, BIGNUM *y,
lib/libcrypto/bn/bn_mod_sqrt.c
445
if (!BN_mod_mul(b, b, y, p, ctx))
lib/libcrypto/bn/bn_mod_sqrt.c
460
BIGNUM *b, *q, *x, *y;
lib/libcrypto/bn/bn_mod_sqrt.c
466
if ((b = BN_CTX_get(ctx)) == NULL)
lib/libcrypto/bn/bn_mod_sqrt.c
491
if (!bn_mod_sqrt_tonelli_shanks_initialize(b, x, a, p, q, ctx))
lib/libcrypto/bn/bn_mod_sqrt.c
523
if (BN_is_one(b))
lib/libcrypto/bn/bn_mod_sqrt.c
527
if (!bn_mod_sqrt_tonelli_shanks_find_exponent(&m, b, p, r, ctx))
lib/libcrypto/bn/bn_mod_sqrt.c
533
if (!bn_mod_sqrt_tonelli_shanks_update(b, x, y, p, m, r, ctx))
lib/libcrypto/bn/bn_mod_words.c
27
bn_mod_add_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
lib/libcrypto/bn/bn_mod_words.c
38
carry = bn_add_words(r, a, b, n);
lib/libcrypto/bn/bn_mod_words.c
50
bn_mod_sub_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
lib/libcrypto/bn/bn_mod_words.c
60
borrow = bn_sub_words(r, a, b, n);
lib/libcrypto/bn/bn_mod_words.c
73
bn_mod_mul_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
lib/libcrypto/bn/bn_mod_words.c
77
bn_mul_comba4(t, a, b);
lib/libcrypto/bn/bn_mod_words.c
79
bn_mul_comba6(t, a, b);
lib/libcrypto/bn/bn_mod_words.c
81
bn_mul_comba8(t, a, b);
lib/libcrypto/bn/bn_mod_words.c
83
bn_mul_words(t, a, n, b, n);
lib/libcrypto/bn/bn_mont.c
404
bn_mod_mul_montgomery_simple(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
lib/libcrypto/bn/bn_mont.c
415
if (a == b) {
lib/libcrypto/bn/bn_mont.c
419
if (!BN_mul(tmp, a, b, ctx))
lib/libcrypto/bn/bn_mont.c
435
bn_montgomery_multiply_word(const BN_ULONG *ap, BN_ULONG b, const BN_ULONG *np,
lib/libcrypto/bn/bn_mont.c
443
bn_qwmulw_addqw_addw(ap[3], ap[2], ap[1], ap[0], b,
lib/libcrypto/bn/bn_mont.c
455
bn_mulw_addw_addw(ap[0], b, tp[0], *carry_a, carry_a, &x0);
lib/libcrypto/bn/bn_mont.c
473
BN_ULONG a0, b, carry_a, carry_n, carry, mask, w;
lib/libcrypto/bn/bn_mont.c
484
b = bp[i];
lib/libcrypto/bn/bn_mont.c
487
w = (a0 * b + tp[0]) * n0;
lib/libcrypto/bn/bn_mont.c
489
bn_montgomery_multiply_word(ap, b, np, tp, w, &carry_a,
lib/libcrypto/bn/bn_mont.c
518
bn_montgomery_multiply(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
lib/libcrypto/bn/bn_mont.c
526
if (mctx->N.top <= 1 || a->top != mctx->N.top || b->top != mctx->N.top)
lib/libcrypto/bn/bn_mont.c
536
bn_montgomery_multiply_words(r->d, a->d, b->d, mctx->N.d, t->d,
lib/libcrypto/bn/bn_mont.c
542
BN_set_negative(r, a->neg ^ b->neg);
lib/libcrypto/bn/bn_mont.c
553
bn_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
lib/libcrypto/bn/bn_mont.c
556
if (mctx->N.top <= 1 || a->top != mctx->N.top || b->top != mctx->N.top)
lib/libcrypto/bn/bn_mont.c
557
return bn_mod_mul_montgomery_simple(r, a, b, mctx, ctx);
lib/libcrypto/bn/bn_mont.c
559
return bn_montgomery_multiply(r, a, b, mctx, ctx);
lib/libcrypto/bn/bn_mont.c
564
bn_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
lib/libcrypto/bn/bn_mont.c
567
if (mctx->N.top <= 1 || a->top != mctx->N.top || b->top != mctx->N.top)
lib/libcrypto/bn/bn_mont.c
568
return bn_mod_mul_montgomery_simple(r, a, b, mctx, ctx);
lib/libcrypto/bn/bn_mont.c
576
return bn_montgomery_multiply(r, a, b, mctx, ctx);
lib/libcrypto/bn/bn_mont.c
585
if (!bn_mul_mont(r->d, a->d, b->d, mctx->N.d, mctx->n0, mctx->N.top))
lib/libcrypto/bn/bn_mont.c
586
return bn_montgomery_multiply(r, a, b, mctx, ctx);
lib/libcrypto/bn/bn_mont.c
591
BN_set_negative(r, a->neg ^ b->neg);
lib/libcrypto/bn/bn_mont.c
598
BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
lib/libcrypto/bn/bn_mont.c
602
return bn_mod_mul_montgomery(r, a, b, mctx, ctx);
lib/libcrypto/bn/bn_mul.c
100
bn_mulw_addtw(a[3], b[2], c2, c1, c0, &c2, &c1, &r[5]);
lib/libcrypto/bn/bn_mul.c
102
bn_mulw_addtw(a[3], b[3], 0, c2, c1, &c2, &r[7], &r[6]);
lib/libcrypto/bn/bn_mul.c
113
bn_mul_comba6(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b)
lib/libcrypto/bn/bn_mul.c
117
bn_mulw_addtw(a[0], b[0], 0, 0, 0, &c2, &c1, &r[0]);
lib/libcrypto/bn/bn_mul.c
119
bn_mulw_addtw(a[0], b[1], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
120
bn_mulw_addtw(a[1], b[0], c2, c1, c0, &c2, &c1, &r[1]);
lib/libcrypto/bn/bn_mul.c
122
bn_mulw_addtw(a[2], b[0], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
123
bn_mulw_addtw(a[1], b[1], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
124
bn_mulw_addtw(a[0], b[2], c2, c1, c0, &c2, &c1, &r[2]);
lib/libcrypto/bn/bn_mul.c
126
bn_mulw_addtw(a[0], b[3], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
127
bn_mulw_addtw(a[1], b[2], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
128
bn_mulw_addtw(a[2], b[1], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
129
bn_mulw_addtw(a[3], b[0], c2, c1, c0, &c2, &c1, &r[3]);
lib/libcrypto/bn/bn_mul.c
131
bn_mulw_addtw(a[4], b[0], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
132
bn_mulw_addtw(a[3], b[1], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
133
bn_mulw_addtw(a[2], b[2], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
134
bn_mulw_addtw(a[1], b[3], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
135
bn_mulw_addtw(a[0], b[4], c2, c1, c0, &c2, &c1, &r[4]);
lib/libcrypto/bn/bn_mul.c
137
bn_mulw_addtw(a[0], b[5], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
138
bn_mulw_addtw(a[1], b[4], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
139
bn_mulw_addtw(a[2], b[3], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
140
bn_mulw_addtw(a[3], b[2], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
141
bn_mulw_addtw(a[4], b[1], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
142
bn_mulw_addtw(a[5], b[0], c2, c1, c0, &c2, &c1, &r[5]);
lib/libcrypto/bn/bn_mul.c
144
bn_mulw_addtw(a[5], b[1], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
145
bn_mulw_addtw(a[4], b[2], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
146
bn_mulw_addtw(a[3], b[3], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
147
bn_mulw_addtw(a[2], b[4], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
148
bn_mulw_addtw(a[1], b[5], c2, c1, c0, &c2, &c1, &r[6]);
lib/libcrypto/bn/bn_mul.c
150
bn_mulw_addtw(a[2], b[5], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
151
bn_mulw_addtw(a[3], b[4], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
152
bn_mulw_addtw(a[4], b[3], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
153
bn_mulw_addtw(a[5], b[2], c2, c1, c0, &c2, &c1, &r[7]);
lib/libcrypto/bn/bn_mul.c
155
bn_mulw_addtw(a[5], b[3], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
156
bn_mulw_addtw(a[4], b[4], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
157
bn_mulw_addtw(a[3], b[5], c2, c1, c0, &c2, &c1, &r[8]);
lib/libcrypto/bn/bn_mul.c
159
bn_mulw_addtw(a[4], b[5], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
160
bn_mulw_addtw(a[5], b[4], c2, c1, c0, &c2, &c1, &r[9]);
lib/libcrypto/bn/bn_mul.c
162
bn_mulw_addtw(a[5], b[5], 0, c2, c1, &c2, &r[11], &r[10]);
lib/libcrypto/bn/bn_mul.c
173
bn_mul_comba8(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b)
lib/libcrypto/bn/bn_mul.c
177
bn_mulw_addtw(a[0], b[0], 0, 0, 0, &c2, &c1, &r[0]);
lib/libcrypto/bn/bn_mul.c
179
bn_mulw_addtw(a[0], b[1], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
180
bn_mulw_addtw(a[1], b[0], c2, c1, c0, &c2, &c1, &r[1]);
lib/libcrypto/bn/bn_mul.c
182
bn_mulw_addtw(a[2], b[0], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
183
bn_mulw_addtw(a[1], b[1], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
184
bn_mulw_addtw(a[0], b[2], c2, c1, c0, &c2, &c1, &r[2]);
lib/libcrypto/bn/bn_mul.c
186
bn_mulw_addtw(a[0], b[3], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
187
bn_mulw_addtw(a[1], b[2], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
188
bn_mulw_addtw(a[2], b[1], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
189
bn_mulw_addtw(a[3], b[0], c2, c1, c0, &c2, &c1, &r[3]);
lib/libcrypto/bn/bn_mul.c
191
bn_mulw_addtw(a[4], b[0], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
192
bn_mulw_addtw(a[3], b[1], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
193
bn_mulw_addtw(a[2], b[2], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
194
bn_mulw_addtw(a[1], b[3], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
195
bn_mulw_addtw(a[0], b[4], c2, c1, c0, &c2, &c1, &r[4]);
lib/libcrypto/bn/bn_mul.c
197
bn_mulw_addtw(a[0], b[5], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
198
bn_mulw_addtw(a[1], b[4], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
199
bn_mulw_addtw(a[2], b[3], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
200
bn_mulw_addtw(a[3], b[2], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
201
bn_mulw_addtw(a[4], b[1], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
202
bn_mulw_addtw(a[5], b[0], c2, c1, c0, &c2, &c1, &r[5]);
lib/libcrypto/bn/bn_mul.c
204
bn_mulw_addtw(a[6], b[0], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
205
bn_mulw_addtw(a[5], b[1], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
206
bn_mulw_addtw(a[4], b[2], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
207
bn_mulw_addtw(a[3], b[3], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
208
bn_mulw_addtw(a[2], b[4], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
209
bn_mulw_addtw(a[1], b[5], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
210
bn_mulw_addtw(a[0], b[6], c2, c1, c0, &c2, &c1, &r[6]);
lib/libcrypto/bn/bn_mul.c
212
bn_mulw_addtw(a[0], b[7], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
213
bn_mulw_addtw(a[1], b[6], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
214
bn_mulw_addtw(a[2], b[5], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
215
bn_mulw_addtw(a[3], b[4], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
216
bn_mulw_addtw(a[4], b[3], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
217
bn_mulw_addtw(a[5], b[2], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
218
bn_mulw_addtw(a[6], b[1], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
219
bn_mulw_addtw(a[7], b[0], c2, c1, c0, &c2, &c1, &r[7]);
lib/libcrypto/bn/bn_mul.c
221
bn_mulw_addtw(a[7], b[1], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
222
bn_mulw_addtw(a[6], b[2], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
223
bn_mulw_addtw(a[5], b[3], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
224
bn_mulw_addtw(a[4], b[4], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
225
bn_mulw_addtw(a[3], b[5], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
226
bn_mulw_addtw(a[2], b[6], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
227
bn_mulw_addtw(a[1], b[7], c2, c1, c0, &c2, &c1, &r[8]);
lib/libcrypto/bn/bn_mul.c
229
bn_mulw_addtw(a[2], b[7], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
230
bn_mulw_addtw(a[3], b[6], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
231
bn_mulw_addtw(a[4], b[5], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
232
bn_mulw_addtw(a[5], b[4], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
233
bn_mulw_addtw(a[6], b[3], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
234
bn_mulw_addtw(a[7], b[2], c2, c1, c0, &c2, &c1, &r[9]);
lib/libcrypto/bn/bn_mul.c
236
bn_mulw_addtw(a[7], b[3], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
237
bn_mulw_addtw(a[6], b[4], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
238
bn_mulw_addtw(a[5], b[5], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
239
bn_mulw_addtw(a[4], b[6], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
240
bn_mulw_addtw(a[3], b[7], c2, c1, c0, &c2, &c1, &r[10]);
lib/libcrypto/bn/bn_mul.c
242
bn_mulw_addtw(a[4], b[7], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
243
bn_mulw_addtw(a[5], b[6], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
244
bn_mulw_addtw(a[6], b[5], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
245
bn_mulw_addtw(a[7], b[4], c2, c1, c0, &c2, &c1, &r[11]);
lib/libcrypto/bn/bn_mul.c
247
bn_mulw_addtw(a[7], b[5], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
248
bn_mulw_addtw(a[6], b[6], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
249
bn_mulw_addtw(a[5], b[7], c2, c1, c0, &c2, &c1, &r[12]);
lib/libcrypto/bn/bn_mul.c
251
bn_mulw_addtw(a[6], b[7], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
252
bn_mulw_addtw(a[7], b[6], c2, c1, c0, &c2, &c1, &r[13]);
lib/libcrypto/bn/bn_mul.c
254
bn_mulw_addtw(a[7], b[7], 0, c2, c1, &c2, &r[15], &r[14]);
lib/libcrypto/bn/bn_mul.c
326
bn_mul_words(BN_ULONG *r, const BN_ULONG *a, int a_len, const BN_ULONG *b,
lib/libcrypto/bn/bn_mul.c
339
a = b;
lib/libcrypto/bn/bn_mul.c
340
b = ltmp;
lib/libcrypto/bn/bn_mul.c
348
rr[0] = bn_mulw_words(r, a, a_len, b[0]);
lib/libcrypto/bn/bn_mul.c
353
rr[1] = bn_mulw_add_words(&(r[1]), a, a_len, b[1]);
lib/libcrypto/bn/bn_mul.c
356
rr[2] = bn_mulw_add_words(&(r[2]), a, a_len, b[2]);
lib/libcrypto/bn/bn_mul.c
359
rr[3] = bn_mulw_add_words(&(r[3]), a, a_len, b[3]);
lib/libcrypto/bn/bn_mul.c
362
rr[4] = bn_mulw_add_words(&(r[4]), a, a_len, b[4]);
lib/libcrypto/bn/bn_mul.c
365
b += 4;
lib/libcrypto/bn/bn_mul.c
371
bn_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, int rn, BN_CTX *ctx)
lib/libcrypto/bn/bn_mul.c
373
bn_mul_words(r->d, a->d, a->top, b->d, b->top);
lib/libcrypto/bn/bn_mul.c
379
BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
lib/libcrypto/bn/bn_mul.c
387
if (BN_is_zero(a) || BN_is_zero(b)) {
lib/libcrypto/bn/bn_mul.c
393
if (rr == a || rr == b)
lib/libcrypto/bn/bn_mul.c
398
if (a->top > INT_MAX - b->top)
lib/libcrypto/bn/bn_mul.c
400
rn = a->top + b->top;
lib/libcrypto/bn/bn_mul.c
404
if (a->top == 4 && b->top == 4) {
lib/libcrypto/bn/bn_mul.c
405
bn_mul_comba4(rr->d, a->d, b->d);
lib/libcrypto/bn/bn_mul.c
406
} else if (a->top == 6 && b->top == 6) {
lib/libcrypto/bn/bn_mul.c
407
bn_mul_comba6(rr->d, a->d, b->d);
lib/libcrypto/bn/bn_mul.c
408
} else if (a->top == 8 && b->top == 8) {
lib/libcrypto/bn/bn_mul.c
409
bn_mul_comba8(rr->d, a->d, b->d);
lib/libcrypto/bn/bn_mul.c
411
if (!bn_mul(rr, a, b, rn, ctx))
lib/libcrypto/bn/bn_mul.c
418
BN_set_negative(rr, a->neg ^ b->neg);
lib/libcrypto/bn/bn_mul.c
77
bn_mul_comba4(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b)
lib/libcrypto/bn/bn_mul.c
81
bn_mulw_addtw(a[0], b[0], 0, 0, 0, &c2, &c1, &r[0]);
lib/libcrypto/bn/bn_mul.c
83
bn_mulw_addtw(a[0], b[1], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
84
bn_mulw_addtw(a[1], b[0], c2, c1, c0, &c2, &c1, &r[1]);
lib/libcrypto/bn/bn_mul.c
86
bn_mulw_addtw(a[2], b[0], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
87
bn_mulw_addtw(a[1], b[1], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
88
bn_mulw_addtw(a[0], b[2], c2, c1, c0, &c2, &c1, &r[2]);
lib/libcrypto/bn/bn_mul.c
90
bn_mulw_addtw(a[0], b[3], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
91
bn_mulw_addtw(a[1], b[2], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
92
bn_mulw_addtw(a[2], b[1], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
93
bn_mulw_addtw(a[3], b[0], c2, c1, c0, &c2, &c1, &r[3]);
lib/libcrypto/bn/bn_mul.c
95
bn_mulw_addtw(a[3], b[1], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
96
bn_mulw_addtw(a[2], b[2], c2, c1, c0, &c2, &c1, &c0);
lib/libcrypto/bn/bn_mul.c
97
bn_mulw_addtw(a[1], b[3], c2, c1, c0, &c2, &c1, &r[4]);
lib/libcrypto/bn/bn_mul.c
99
bn_mulw_addtw(a[2], b[3], 0, c2, c1, &c2, &c1, &c0);
lib/libcrypto/bn/bn_prime.c
132
BN_GENCB_call(BN_GENCB *cb, int a, int b)
lib/libcrypto/bn/bn_prime.c
142
cb->cb.cb_1(a, b, cb->arg);
lib/libcrypto/bn/bn_prime.c
146
return cb->cb.cb_2(a, b, cb);
lib/libcrypto/bn/bn_recp.c
111
BIGNUM *a, *b, *d, *r;
lib/libcrypto/bn/bn_recp.c
124
if ((b = BN_CTX_get(ctx)) == NULL)
lib/libcrypto/bn/bn_recp.c
166
if (!BN_mul(b, a, recp->Nr, ctx))
lib/libcrypto/bn/bn_recp.c
168
if (!BN_rshift(d, b, i - recp->num_bits))
lib/libcrypto/bn/bn_recp.c
172
if (!BN_mul(b, recp->N, d, ctx))
lib/libcrypto/bn/bn_recp.c
174
if (!BN_usub(r, m, b))
lib/libcrypto/bn/s2n_bignum.h
1000
extern void mlkem_basemul_k3(int16_t r[S2N_BIGNUM_STATIC 256],const int16_t a[S2N_BIGNUM_STATIC 768],const int16_t b[S2N_BIGNUM_STATIC 768],const int16_t bt[S2N_BIGNUM_STATIC 384]);
lib/libcrypto/bn/s2n_bignum.h
1004
extern void mlkem_basemul_k4(int16_t r[S2N_BIGNUM_STATIC 256],const int16_t a[S2N_BIGNUM_STATIC 1024],const int16_t b[S2N_BIGNUM_STATIC 1024],const int16_t bt[S2N_BIGNUM_STATIC 512]);
lib/libcrypto/bn/s2n_bignum.h
1173
extern uint64_t word_max (uint64_t a, uint64_t b);
lib/libcrypto/bn/s2n_bignum.h
1177
extern uint64_t word_min (uint64_t a, uint64_t b);
lib/libcrypto/bn/s2n_bignum.h
544
extern void bignum_modinv (uint64_t k, uint64_t *z, const uint64_t *a, const uint64_t *b, uint64_t *t);
lib/libcrypto/bn/s2n_bignum.h
927
extern void curve25519_ladderstep(uint64_t rr[16],const uint64_t point[8],const uint64_t pp[16],uint64_t b);
lib/libcrypto/bn/s2n_bignum.h
928
extern void curve25519_ladderstep_alt(uint64_t rr[16],const uint64_t point[8],const uint64_t pp[16],uint64_t b);
lib/libcrypto/bn/s2n_bignum.h
996
extern void mlkem_basemul_k2(int16_t r[S2N_BIGNUM_STATIC 256],const int16_t a[S2N_BIGNUM_STATIC 512],const int16_t b[S2N_BIGNUM_STATIC 512],const int16_t bt[S2N_BIGNUM_STATIC 256]);
lib/libcrypto/bytestring/bs_cbb.c
429
uint32_t a, b;
lib/libcrypto/bytestring/bs_cbb.c
432
b = value & 0xffffffff;
lib/libcrypto/bytestring/bs_cbb.c
436
return CBB_add_u32(cbb, b);
lib/libcrypto/bytestring/bs_cbs.c
207
uint32_t a, b;
lib/libcrypto/bytestring/bs_cbs.c
214
if (!CBS_get_u32(cbs, &b))
lib/libcrypto/bytestring/bs_cbs.c
217
*out = (uint64_t)a << 32 | b;
lib/libcrypto/cast/cast_local.h
201
CAST_LONG a,b,c,d; \
lib/libcrypto/cast/cast_local.h
205
b=CAST_S_table1[(t )&0xff]; \
lib/libcrypto/cast/cast_local.h
208
L^=(((((a OP2 b)&0xffffffffL) OP3 c)&0xffffffffL) OP1 d)&0xffffffffL; \
lib/libcrypto/chacha/chacha-merged.c
66
#define QUARTERROUND(a,b,c,d) \
lib/libcrypto/chacha/chacha-merged.c
67
a = PLUS(a,b); d = ROTATE(XOR(d,a),16); \
lib/libcrypto/chacha/chacha-merged.c
68
c = PLUS(c,d); b = ROTATE(XOR(b,c),12); \
lib/libcrypto/chacha/chacha-merged.c
69
a = PLUS(a,b); d = ROTATE(XOR(d,a), 8); \
lib/libcrypto/chacha/chacha-merged.c
70
c = PLUS(c,d); b = ROTATE(XOR(b,c), 7);
lib/libcrypto/cms/cms_enc.c
205
return b;
lib/libcrypto/cms/cms_enc.c
206
BIO_free(b);
lib/libcrypto/cms/cms_enc.c
76
BIO *b;
lib/libcrypto/cms/cms_enc.c
90
b = BIO_new(BIO_f_cipher());
lib/libcrypto/cms/cms_enc.c
91
if (b == NULL) {
lib/libcrypto/cms/cms_enc.c
96
BIO_get_cipher_ctx(b, &ctx);
lib/libcrypto/conf/conf_api.c
145
conf_value_cmp(const CONF_VALUE *a, const CONF_VALUE *b)
lib/libcrypto/conf/conf_api.c
149
if (a->section != b->section) {
lib/libcrypto/conf/conf_api.c
150
i = strcmp(a->section, b->section);
lib/libcrypto/conf/conf_api.c
154
if ((a->name != NULL) && (b->name != NULL)) {
lib/libcrypto/conf/conf_api.c
155
i = strcmp(a->name, b->name);
lib/libcrypto/conf/conf_api.c
157
} else if (a->name == b->name)
lib/libcrypto/constant_time.h
103
static inline unsigned int constant_time_eq(unsigned int a, unsigned int b);
lib/libcrypto/constant_time.h
106
unsigned int b);
lib/libcrypto/constant_time.h
108
static inline unsigned int constant_time_eq_int(int a, int b);
lib/libcrypto/constant_time.h
110
static inline unsigned char constant_time_eq_int_8(int a, int b);
lib/libcrypto/constant_time.h
121
unsigned int b);
lib/libcrypto/constant_time.h
125
unsigned char b);
lib/libcrypto/constant_time.h
127
static inline int constant_time_select_int(unsigned int mask, int a, int b);
lib/libcrypto/constant_time.h
134
static inline unsigned int constant_time_lt(unsigned int a, unsigned int b)
lib/libcrypto/constant_time.h
136
return constant_time_msb(a ^ ((a ^ b) | ((a - b) ^ b)));
lib/libcrypto/constant_time.h
139
static inline unsigned char constant_time_lt_8(unsigned int a, unsigned int b)
lib/libcrypto/constant_time.h
141
return (unsigned char)(constant_time_lt(a, b));
lib/libcrypto/constant_time.h
144
static inline unsigned int constant_time_ge(unsigned int a, unsigned int b)
lib/libcrypto/constant_time.h
146
return ~constant_time_lt(a, b);
lib/libcrypto/constant_time.h
149
static inline unsigned char constant_time_ge_8(unsigned int a, unsigned int b)
lib/libcrypto/constant_time.h
151
return (unsigned char)(constant_time_ge(a, b));
lib/libcrypto/constant_time.h
164
static inline unsigned int constant_time_eq(unsigned int a, unsigned int b)
lib/libcrypto/constant_time.h
166
return constant_time_is_zero(a ^ b);
lib/libcrypto/constant_time.h
169
static inline unsigned char constant_time_eq_8(unsigned int a, unsigned int b)
lib/libcrypto/constant_time.h
171
return (unsigned char)(constant_time_eq(a, b));
lib/libcrypto/constant_time.h
174
static inline unsigned int constant_time_eq_int(int a, int b)
lib/libcrypto/constant_time.h
176
return constant_time_eq((unsigned)(a), (unsigned)(b));
lib/libcrypto/constant_time.h
179
static inline unsigned char constant_time_eq_int_8(int a, int b)
lib/libcrypto/constant_time.h
181
return constant_time_eq_8((unsigned)(a), (unsigned)(b));
lib/libcrypto/constant_time.h
186
unsigned int b)
lib/libcrypto/constant_time.h
188
return (mask & a) | (~mask & b);
lib/libcrypto/constant_time.h
193
unsigned char b)
lib/libcrypto/constant_time.h
195
return (unsigned char)(constant_time_select(mask, a, b));
lib/libcrypto/constant_time.h
198
static inline int constant_time_select_int(unsigned int mask, int a, int b)
lib/libcrypto/constant_time.h
200
return (int)(constant_time_select(mask, (unsigned)(a), (unsigned)(b)));
lib/libcrypto/constant_time.h
80
static inline unsigned int constant_time_lt(unsigned int a, unsigned int b);
lib/libcrypto/constant_time.h
83
unsigned int b);
lib/libcrypto/constant_time.h
88
static inline unsigned int constant_time_ge(unsigned int a, unsigned int b);
lib/libcrypto/constant_time.h
91
unsigned int b);
lib/libcrypto/crypto.h
384
int CRYPTO_memcmp(const void *a, const void *b, size_t len);
lib/libcrypto/crypto_internal.h
136
crypto_ct_ne_u8(uint8_t a, uint8_t b)
lib/libcrypto/crypto_internal.h
138
return crypto_ct_ne_zero_u8(a - b);
lib/libcrypto/crypto_internal.h
144
crypto_ct_ne_mask_u8(uint8_t a, uint8_t b)
lib/libcrypto/crypto_internal.h
146
return 0 - crypto_ct_ne_u8(a, b);
lib/libcrypto/crypto_internal.h
152
crypto_ct_eq_u8(uint8_t a, uint8_t b)
lib/libcrypto/crypto_internal.h
154
return crypto_ct_eq_zero_u8(a - b);
lib/libcrypto/crypto_internal.h
160
crypto_ct_eq_mask_u8(uint8_t a, uint8_t b)
lib/libcrypto/crypto_internal.h
162
return 0 - crypto_ct_eq_u8(a, b);
lib/libcrypto/crypto_internal.h
68
crypto_ct_lt(size_t a, size_t b)
lib/libcrypto/crypto_internal.h
70
return (((a - b) | (b & ~a)) & (b | ~a)) >>
lib/libcrypto/crypto_internal.h
77
crypto_ct_lt_mask(size_t a, size_t b)
lib/libcrypto/crypto_internal.h
79
return 0 - crypto_ct_lt(a, b);
lib/libcrypto/crypto_internal.h
85
crypto_ct_gt(size_t a, size_t b)
lib/libcrypto/crypto_internal.h
87
return crypto_ct_lt(b, a);
lib/libcrypto/crypto_internal.h
93
crypto_ct_gt_mask(size_t a, size_t b)
lib/libcrypto/crypto_internal.h
95
return 0 - crypto_ct_gt(a, b);
lib/libcrypto/crypto_legacy.c
349
const unsigned char *b = in_b;
lib/libcrypto/crypto_legacy.c
353
x |= a[i] ^ b[i];
lib/libcrypto/curve25519/curve25519.c
1183
static uint8_t equal(signed char b, signed char c) {
lib/libcrypto/curve25519/curve25519.c
1184
uint8_t ub = b;
lib/libcrypto/curve25519/curve25519.c
1193
static void cmov(ge_precomp *t, const ge_precomp *u, uint8_t b) {
lib/libcrypto/curve25519/curve25519.c
1194
fe_cmov(t->yplusx, u->yplusx, b);
lib/libcrypto/curve25519/curve25519.c
1195
fe_cmov(t->yminusx, u->yminusx, b);
lib/libcrypto/curve25519/curve25519.c
1196
fe_cmov(t->xy2d, u->xy2d, b);
lib/libcrypto/curve25519/curve25519.c
3466
static uint8_t negative(signed char b) {
lib/libcrypto/curve25519/curve25519.c
3467
uint32_t x = b;
lib/libcrypto/curve25519/curve25519.c
3472
static void table_select(ge_precomp *t, int pos, signed char b) {
lib/libcrypto/curve25519/curve25519.c
3474
uint8_t bnegative = negative(b);
lib/libcrypto/curve25519/curve25519.c
3475
uint8_t babs = b - ((uint8_t)((-bnegative) & b) << 1);
lib/libcrypto/curve25519/curve25519.c
3548
static void cmov_cached(ge_cached *t, ge_cached *u, uint8_t b) {
lib/libcrypto/curve25519/curve25519.c
3549
fe_cmov(t->YplusX, u->YplusX, b);
lib/libcrypto/curve25519/curve25519.c
3550
fe_cmov(t->YminusX, u->YminusX, b);
lib/libcrypto/curve25519/curve25519.c
3551
fe_cmov(t->Z, u->Z, b);
lib/libcrypto/curve25519/curve25519.c
3552
fe_cmov(t->T2d, u->T2d, b);
lib/libcrypto/curve25519/curve25519.c
3611
int b;
lib/libcrypto/curve25519/curve25519.c
3620
for (b = 1; b <= 6 && i + b < 256; ++b) {
lib/libcrypto/curve25519/curve25519.c
3621
if (r[i + b]) {
lib/libcrypto/curve25519/curve25519.c
3622
if (r[i] + (r[i + b] << b) <= 15) {
lib/libcrypto/curve25519/curve25519.c
3623
r[i] += r[i + b] << b;
lib/libcrypto/curve25519/curve25519.c
3624
r[i + b] = 0;
lib/libcrypto/curve25519/curve25519.c
3625
} else if (r[i] - (r[i + b] << b) >= -15) {
lib/libcrypto/curve25519/curve25519.c
3626
r[i] -= r[i + b] << b;
lib/libcrypto/curve25519/curve25519.c
3627
for (k = i + b; k < 256; ++k) {
lib/libcrypto/curve25519/curve25519.c
3716
const ge_p3 *A, const uint8_t *b) {
lib/libcrypto/curve25519/curve25519.c
3726
slide(bslide, b);
lib/libcrypto/curve25519/curve25519.c
4148
sc_muladd(uint8_t *s, const uint8_t *a, const uint8_t *b,
lib/libcrypto/curve25519/curve25519.c
4163
int64_t b0 = 2097151 & load_3(b);
lib/libcrypto/curve25519/curve25519.c
4164
int64_t b1 = 2097151 & (load_4(b + 2) >> 5);
lib/libcrypto/curve25519/curve25519.c
4165
int64_t b2 = 2097151 & (load_3(b + 5) >> 2);
lib/libcrypto/curve25519/curve25519.c
4166
int64_t b3 = 2097151 & (load_4(b + 7) >> 7);
lib/libcrypto/curve25519/curve25519.c
4167
int64_t b4 = 2097151 & (load_4(b + 10) >> 4);
lib/libcrypto/curve25519/curve25519.c
4168
int64_t b5 = 2097151 & (load_3(b + 13) >> 1);
lib/libcrypto/curve25519/curve25519.c
4169
int64_t b6 = 2097151 & (load_4(b + 15) >> 6);
lib/libcrypto/curve25519/curve25519.c
4170
int64_t b7 = 2097151 & (load_3(b + 18) >> 3);
lib/libcrypto/curve25519/curve25519.c
4171
int64_t b8 = 2097151 & load_3(b + 21);
lib/libcrypto/curve25519/curve25519.c
4172
int64_t b9 = 2097151 & (load_4(b + 23) >> 5);
lib/libcrypto/curve25519/curve25519.c
4173
int64_t b10 = 2097151 & (load_3(b + 26) >> 2);
lib/libcrypto/curve25519/curve25519.c
4174
int64_t b11 = (load_4(b + 28) >> 7);
lib/libcrypto/curve25519/curve25519.c
4757
static void fe_cswap(fe f, fe g, unsigned int b) {
lib/libcrypto/curve25519/curve25519.c
4758
b = 0-b;
lib/libcrypto/curve25519/curve25519.c
4762
x &= b;
lib/libcrypto/curve25519/curve25519.c
4851
unsigned b = 1 & (e[pos / 8] >> (pos & 7));
lib/libcrypto/curve25519/curve25519.c
4852
swap ^= b;
lib/libcrypto/curve25519/curve25519.c
4855
swap = b;
lib/libcrypto/curve25519/curve25519.c
713
static void fe_cmov(fe f, const fe g, unsigned b) {
lib/libcrypto/curve25519/curve25519.c
714
b = 0-b;
lib/libcrypto/curve25519/curve25519.c
718
x &= b;
lib/libcrypto/des/des_fcrypt.c
179
unsigned char *b = bb;
lib/libcrypto/des/des_fcrypt.c
211
l2c(ll, b);
lib/libcrypto/des/des_fcrypt.c
213
l2c(ll, b);
lib/libcrypto/des/des_fcrypt.c
79
#define PERM_OP(a,b,t,n,m) ((t)=((((a)>>(n))^(b))&(m)), \
lib/libcrypto/des/des_fcrypt.c
80
(b)^=(t), \
lib/libcrypto/des/des_local.h
138
#define LOAD_DATA_tmp(a,b,c,d,e,f) LOAD_DATA(a,b,c,d,e,f,g)
lib/libcrypto/des/des_local.h
194
#define PERM_OP(a,b,t,n,m) ((t)=((((a)>>(n))^(b))&(m)), \
lib/libcrypto/des/des_local.h
195
(b)^=(t), \
lib/libcrypto/dh/dh_ameth.c
409
dh_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b)
lib/libcrypto/dh/dh_ameth.c
411
if (BN_cmp(a->pkey.dh->p, b->pkey.dh->p) ||
lib/libcrypto/dh/dh_ameth.c
412
BN_cmp(a->pkey.dh->g, b->pkey.dh->g))
lib/libcrypto/dh/dh_ameth.c
445
dh_pub_cmp(const EVP_PKEY *a, const EVP_PKEY *b)
lib/libcrypto/dh/dh_ameth.c
447
if (dh_cmp_parameters(a, b) == 0)
lib/libcrypto/dh/dh_ameth.c
449
if (BN_cmp(b->pkey.dh->pub_key, a->pkey.dh->pub_key) != 0)
lib/libcrypto/dh/dh_ameth.c
483
BIO *b;
lib/libcrypto/dh/dh_ameth.c
486
if ((b = BIO_new(BIO_s_file())) == NULL) {
lib/libcrypto/dh/dh_ameth.c
491
BIO_set_fp(b, fp, BIO_NOCLOSE);
lib/libcrypto/dh/dh_ameth.c
492
ret = DHparams_print(b, x);
lib/libcrypto/dh/dh_ameth.c
493
BIO_free(b);
lib/libcrypto/dsa/dsa_ameth.c
388
dsa_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b)
lib/libcrypto/dsa/dsa_ameth.c
390
if (BN_cmp(a->pkey.dsa->p, b->pkey.dsa->p) ||
lib/libcrypto/dsa/dsa_ameth.c
391
BN_cmp(a->pkey.dsa->q, b->pkey.dsa->q) ||
lib/libcrypto/dsa/dsa_ameth.c
392
BN_cmp(a->pkey.dsa->g, b->pkey.dsa->g))
lib/libcrypto/dsa/dsa_ameth.c
399
dsa_pub_cmp(const EVP_PKEY *a, const EVP_PKEY *b)
lib/libcrypto/dsa/dsa_ameth.c
401
if (BN_cmp(b->pkey.dsa->pub_key, a->pkey.dsa->pub_key) != 0)
lib/libcrypto/dsa/dsa_ossl.c
106
if ((b = BN_CTX_get(ctx)) == NULL)
lib/libcrypto/dsa/dsa_ossl.c
151
if (!bn_rand_interval(b, 1, dsa->q))
lib/libcrypto/dsa/dsa_ossl.c
153
if (BN_mod_inverse_ct(binv, b, dsa->q, ctx) == NULL)
lib/libcrypto/dsa/dsa_ossl.c
156
if (!BN_mod_mul(bxr, b, dsa->priv_key, dsa->q, ctx)) /* bx */
lib/libcrypto/dsa/dsa_ossl.c
160
if (!BN_mod_mul(bm, b, m, dsa->q, ctx)) /* bm */
lib/libcrypto/dsa/dsa_ossl.c
85
BIGNUM *b = NULL, *bm = NULL, *bxr = NULL, *binv = NULL, *m = NULL;
lib/libcrypto/dsa/dsa_prn.c
69
BIO *b;
lib/libcrypto/dsa/dsa_prn.c
72
if ((b = BIO_new(BIO_s_file())) == NULL) {
lib/libcrypto/dsa/dsa_prn.c
76
BIO_set_fp(b, fp, BIO_NOCLOSE);
lib/libcrypto/dsa/dsa_prn.c
77
ret = DSA_print(b, x, off);
lib/libcrypto/dsa/dsa_prn.c
78
BIO_free(b);
lib/libcrypto/dsa/dsa_prn.c
86
BIO *b;
lib/libcrypto/dsa/dsa_prn.c
89
if ((b = BIO_new(BIO_s_file())) == NULL) {
lib/libcrypto/dsa/dsa_prn.c
93
BIO_set_fp(b, fp, BIO_NOCLOSE);
lib/libcrypto/dsa/dsa_prn.c
94
ret = DSAparams_print(b, x);
lib/libcrypto/dsa/dsa_prn.c
95
BIO_free(b);
lib/libcrypto/ec/ec.h
125
const BIGNUM *b, BN_CTX *ctx);
lib/libcrypto/ec/ec.h
126
int EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b,
lib/libcrypto/ec/ec.h
130
const BIGNUM *b, BN_CTX *ctx);
lib/libcrypto/ec/ec.h
132
BIGNUM *b, BN_CTX *ctx);
lib/libcrypto/ec/ec.h
140
int EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b, BN_CTX *ctx);
lib/libcrypto/ec/ec.h
143
const BIGNUM *b, BN_CTX *ctx);
lib/libcrypto/ec/ec.h
192
const EC_POINT *b, BN_CTX *ctx);
lib/libcrypto/ec/ec.h
199
int EC_POINT_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b,
lib/libcrypto/ec/ec_ameth.c
298
eckey_pub_cmp(const EVP_PKEY *a, const EVP_PKEY *b)
lib/libcrypto/ec/ec_ameth.c
300
const EC_GROUP *group = EC_KEY_get0_group(b->pkey.ec);
lib/libcrypto/ec/ec_ameth.c
302
const EC_POINT *pb = EC_KEY_get0_public_key(b->pkey.ec);
lib/libcrypto/ec/ec_ameth.c
478
ec_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b)
lib/libcrypto/ec/ec_ameth.c
481
const EC_GROUP *group_b = EC_KEY_get0_group(b->pkey.ec);
lib/libcrypto/ec/ec_asn1.c
120
ASN1_OCTET_STRING *b;
lib/libcrypto/ec/ec_asn1.c
350
.offset = offsetof(X9_62_CURVE, b),
lib/libcrypto/ec/ec_asn1.c
719
BIGNUM *a = NULL, *b = NULL;
lib/libcrypto/ec/ec_asn1.c
724
if (curve == NULL || curve->a == NULL || curve->b == NULL)
lib/libcrypto/ec/ec_asn1.c
727
if ((a = BN_new()) == NULL || (b = BN_new()) == NULL) {
lib/libcrypto/ec/ec_asn1.c
732
if (!EC_GROUP_get_curve(group, NULL, a, b, NULL)) {
lib/libcrypto/ec/ec_asn1.c
741
if (!ec_asn1_encode_field_element(group, b, curve->b)) {
lib/libcrypto/ec/ec_asn1.c
769
BN_free(b);
lib/libcrypto/ec/ec_asn1.c
916
BIGNUM *p = NULL, *a = NULL, *b = NULL;
lib/libcrypto/ec/ec_asn1.c
926
if ((b = BN_bin2bn(curve->b->data, curve->b->length, NULL)) == NULL)
lib/libcrypto/ec/ec_asn1.c
942
if ((group = EC_GROUP_new_curve_GFp(p, a, b, NULL)) == NULL)
lib/libcrypto/ec/ec_asn1.c
953
BN_free(b);
lib/libcrypto/ec/ec_curve.c
1009
.b = _EC_NIST_PRIME_384.b,
lib/libcrypto/ec/ec_curve.c
1023
.b = _EC_NIST_PRIME_521.b,
lib/libcrypto/ec/ec_curve.c
1036
.b = _EC_brainpoolP224r1.b,
lib/libcrypto/ec/ec_curve.c
1048
.b = _EC_brainpoolP224t1.b,
lib/libcrypto/ec/ec_curve.c
106
.b = {
lib/libcrypto/ec/ec_curve.c
1060
.b = _EC_brainpoolP256r1.b,
lib/libcrypto/ec/ec_curve.c
1072
.b = _EC_brainpoolP256t1.b,
lib/libcrypto/ec/ec_curve.c
1084
.b = _EC_brainpoolP320r1.b,
lib/libcrypto/ec/ec_curve.c
1096
.b = _EC_brainpoolP320t1.b,
lib/libcrypto/ec/ec_curve.c
1108
.b = _EC_brainpoolP384r1.b,
lib/libcrypto/ec/ec_curve.c
1120
.b = _EC_brainpoolP384t1.b,
lib/libcrypto/ec/ec_curve.c
1132
.b = _EC_brainpoolP512r1.b,
lib/libcrypto/ec/ec_curve.c
1144
.b = _EC_brainpoolP512t1.b,
lib/libcrypto/ec/ec_curve.c
1157
.b = _EC_FRP256v1.b,
lib/libcrypto/ec/ec_curve.c
1173
BIGNUM *p, *a, *b, *x, *y, *order, *cofactor;
lib/libcrypto/ec/ec_curve.c
1189
if ((b = BN_CTX_get(ctx)) == NULL) {
lib/libcrypto/ec/ec_curve.c
1218
if (BN_bin2bn(curve->b, curve->param_len, b) == NULL) {
lib/libcrypto/ec/ec_curve.c
1222
if ((group = EC_GROUP_new_curve_GFp(p, a, b, ctx)) == NULL) {
lib/libcrypto/ec/ec_curve.c
1304
free((uint8_t *)curve->b);
lib/libcrypto/ec/ec_curve.c
132
uint8_t b[32];
lib/libcrypto/ec/ec_curve.c
1343
BIGNUM *p, *a, *b, *x, *y;
lib/libcrypto/ec/ec_curve.c
1356
if ((b = BN_CTX_get(ctx)) == NULL)
lib/libcrypto/ec/ec_curve.c
1363
if (!EC_GROUP_get_curve(group, p, a, b, ctx))
lib/libcrypto/ec/ec_curve.c
1383
if (!ec_curve_encode_parameter(b, curve->param_len, &curve->b))
lib/libcrypto/ec/ec_curve.c
1431
ec_curve_cmp(const struct ec_curve *a, const struct ec_curve *b)
lib/libcrypto/ec/ec_curve.c
1436
if (a->nid != NID_undef && b->nid != NID_undef) {
lib/libcrypto/ec/ec_curve.c
1437
if (a->nid < b->nid)
lib/libcrypto/ec/ec_curve.c
1439
if (a->nid > b->nid)
lib/libcrypto/ec/ec_curve.c
1443
if (a->cofactor < b->cofactor)
lib/libcrypto/ec/ec_curve.c
1445
if (a->cofactor > b->cofactor)
lib/libcrypto/ec/ec_curve.c
1447
if (a->param_len < b->param_len)
lib/libcrypto/ec/ec_curve.c
1449
if (a->param_len > b->param_len)
lib/libcrypto/ec/ec_curve.c
1452
if ((cmp = memcmp(a->p, b->p, a->param_len)) != 0)
lib/libcrypto/ec/ec_curve.c
1454
if ((cmp = memcmp(a->a, b->a, a->param_len)) != 0)
lib/libcrypto/ec/ec_curve.c
1456
if ((cmp = memcmp(a->b, b->b, a->param_len)) != 0)
lib/libcrypto/ec/ec_curve.c
1458
if ((cmp = memcmp(a->x, b->x, a->param_len)) != 0)
lib/libcrypto/ec/ec_curve.c
1460
if ((cmp = memcmp(a->y, b->y, a->param_len)) != 0)
lib/libcrypto/ec/ec_curve.c
1462
if ((cmp = memcmp(a->order, b->order, a->param_len)) != 0)
lib/libcrypto/ec/ec_curve.c
1466
if (a->seed_len != 0 && b->seed_len != 0) {
lib/libcrypto/ec/ec_curve.c
1467
if (a->seed_len < b->seed_len)
lib/libcrypto/ec/ec_curve.c
1469
if (a->seed_len > b->seed_len)
lib/libcrypto/ec/ec_curve.c
1471
if (a->seed != NULL && b->seed != NULL) {
lib/libcrypto/ec/ec_curve.c
1472
if ((cmp = memcmp(a->seed, b->seed, a->seed_len)) != 0)
lib/libcrypto/ec/ec_curve.c
153
.b = {
lib/libcrypto/ec/ec_curve.c
183
uint8_t b[48];
lib/libcrypto/ec/ec_curve.c
206
.b = {
lib/libcrypto/ec/ec_curve.c
240
uint8_t b[66];
lib/libcrypto/ec/ec_curve.c
267
.b = {
lib/libcrypto/ec/ec_curve.c
308
uint8_t b[29];
lib/libcrypto/ec/ec_curve.c
323
.b = {
lib/libcrypto/ec/ec_curve.c
348
uint8_t b[32];
lib/libcrypto/ec/ec_curve.c
365
.b = {
lib/libcrypto/ec/ec_curve.c
394
uint8_t b[28];
lib/libcrypto/ec/ec_curve.c
409
.b = {
lib/libcrypto/ec/ec_curve.c
434
uint8_t b[28];
lib/libcrypto/ec/ec_curve.c
449
.b = {
lib/libcrypto/ec/ec_curve.c
474
uint8_t b[32];
lib/libcrypto/ec/ec_curve.c
491
.b = {
lib/libcrypto/ec/ec_curve.c
520
uint8_t b[32];
lib/libcrypto/ec/ec_curve.c
537
.b = {
lib/libcrypto/ec/ec_curve.c
566
uint8_t b[40];
lib/libcrypto/ec/ec_curve.c
583
.b = {
lib/libcrypto/ec/ec_curve.c
612
uint8_t b[40];
lib/libcrypto/ec/ec_curve.c
629
.b = {
lib/libcrypto/ec/ec_curve.c
658
uint8_t b[48];
lib/libcrypto/ec/ec_curve.c
677
.b = {
lib/libcrypto/ec/ec_curve.c
710
uint8_t b[48];
lib/libcrypto/ec/ec_curve.c
729
.b = {
lib/libcrypto/ec/ec_curve.c
762
uint8_t b[64];
lib/libcrypto/ec/ec_curve.c
785
.b = {
lib/libcrypto/ec/ec_curve.c
826
uint8_t b[64];
lib/libcrypto/ec/ec_curve.c
849
.b = {
lib/libcrypto/ec/ec_curve.c
87
uint8_t b[28];
lib/libcrypto/ec/ec_curve.c
890
uint8_t b[32];
lib/libcrypto/ec/ec_curve.c
907
.b = {
lib/libcrypto/ec/ec_curve.c
942
const uint8_t *b;
lib/libcrypto/ec/ec_curve.c
954
.b = _EC_SECG_PRIME_224K1.b,
lib/libcrypto/ec/ec_curve.c
968
.b = _EC_NIST_PRIME_224.b,
lib/libcrypto/ec/ec_curve.c
980
.b = _EC_SECG_PRIME_256K1.b,
lib/libcrypto/ec/ec_curve.c
995
.b = _EC_NIST_PRIME_256.b,
lib/libcrypto/ec/ec_field.c
136
const EC_FIELD_ELEMENT *a, const EC_FIELD_ELEMENT *b, int conditional)
lib/libcrypto/ec/ec_field.c
144
r->w[i] = (a->w[i] & mask) | (b->w[i] & ~mask);
lib/libcrypto/ec/ec_field.c
149
const EC_FIELD_ELEMENT *b)
lib/libcrypto/ec/ec_field.c
155
v |= a->w[i] ^ b->w[i];
lib/libcrypto/ec/ec_field.c
174
const EC_FIELD_ELEMENT *a, const EC_FIELD_ELEMENT *b)
lib/libcrypto/ec/ec_field.c
176
bn_mod_add_words(r->w, a->w, b->w, m->m.w, m->n);
lib/libcrypto/ec/ec_field.c
181
const EC_FIELD_ELEMENT *a, const EC_FIELD_ELEMENT *b)
lib/libcrypto/ec/ec_field.c
183
bn_mod_sub_words(r->w, a->w, b->w, m->m.w, m->n);
lib/libcrypto/ec/ec_field.c
188
const EC_FIELD_ELEMENT *a, const EC_FIELD_ELEMENT *b)
lib/libcrypto/ec/ec_field.c
192
bn_mod_mul_words(r->w, a->w, b->w, m->m.w, t, m->minv0, m->n);
lib/libcrypto/ec/ec_internal.h
50
const EC_FIELD_ELEMENT *a, const EC_FIELD_ELEMENT *b, int conditional);
lib/libcrypto/ec/ec_internal.h
53
const EC_FIELD_ELEMENT *b);
lib/libcrypto/ec/ec_internal.h
57
const EC_FIELD_ELEMENT *a, const EC_FIELD_ELEMENT *b);
lib/libcrypto/ec/ec_internal.h
59
const EC_FIELD_ELEMENT *a, const EC_FIELD_ELEMENT *b);
lib/libcrypto/ec/ec_internal.h
61
const EC_FIELD_ELEMENT *a, const EC_FIELD_ELEMENT *b);
lib/libcrypto/ec/ec_lib.c
101
if ((group->b = BN_new()) == NULL)
lib/libcrypto/ec/ec_lib.c
1015
BIGNUM *p, *a, *b, *w, *x, *y;
lib/libcrypto/ec/ec_lib.c
1032
if ((b = BN_CTX_get(ctx)) == NULL)
lib/libcrypto/ec/ec_lib.c
1046
if (!EC_GROUP_get_curve(group, p, a, b, ctx))
lib/libcrypto/ec/ec_lib.c
1075
if (!BN_mod_add_quick(y, y, b, p))
lib/libcrypto/ec/ec_lib.c
1125
const EC_POINT *b, BN_CTX *ctx_in)
lib/libcrypto/ec/ec_lib.c
1141
!ec_group_and_point_compatible(group, b)) {
lib/libcrypto/ec/ec_lib.c
1145
ret = group->meth->add(group, r, a, b, ctx);
lib/libcrypto/ec/ec_lib.c
1257
EC_POINT_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b,
lib/libcrypto/ec/ec_lib.c
1273
!ec_group_and_point_compatible(group, b)) {
lib/libcrypto/ec/ec_lib.c
1277
ret = group->meth->point_cmp(group, a, b, ctx);
lib/libcrypto/ec/ec_lib.c
129
BN_free(group->b);
lib/libcrypto/ec/ec_lib.c
163
if (!bn_copy(dst->b, src->b))
lib/libcrypto/ec/ec_lib.c
484
const BIGNUM *b, BN_CTX *ctx_in)
lib/libcrypto/ec/ec_lib.c
498
ret = group->meth->group_set_curve(group, p, a, b, ctx);
lib/libcrypto/ec/ec_lib.c
509
EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b,
lib/libcrypto/ec/ec_lib.c
524
ret = group->meth->group_get_curve(group, p, a, b, ctx);
lib/libcrypto/ec/ec_lib.c
536
const BIGNUM *b, BN_CTX *ctx)
lib/libcrypto/ec/ec_lib.c
538
return EC_GROUP_set_curve(group, p, a, b, ctx);
lib/libcrypto/ec/ec_lib.c
543
EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b,
lib/libcrypto/ec/ec_lib.c
546
return EC_GROUP_get_curve(group, p, a, b, ctx);
lib/libcrypto/ec/ec_lib.c
551
EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a, const BIGNUM *b,
lib/libcrypto/ec/ec_lib.c
559
if (!EC_GROUP_set_curve(group, p, a, b, ctx))
lib/libcrypto/ec/ec_lib.c
582
BIGNUM *p, *a, *b, *discriminant;
lib/libcrypto/ec/ec_lib.c
596
if ((b = BN_CTX_get(ctx)) == NULL)
lib/libcrypto/ec/ec_lib.c
601
if (!EC_GROUP_get_curve(group, p, a, b, ctx))
lib/libcrypto/ec/ec_lib.c
609
if (BN_is_zero(a) && BN_is_zero(b))
lib/libcrypto/ec/ec_lib.c
611
if (BN_is_zero(a) || BN_is_zero(b))
lib/libcrypto/ec/ec_lib.c
622
if (!BN_mod_sqr(b, b, p, ctx))
lib/libcrypto/ec/ec_lib.c
624
if (!BN_mul_word(b, 27))
lib/libcrypto/ec/ec_lib.c
627
if (!BN_mod_add(discriminant, discriminant, b, p, ctx))
lib/libcrypto/ec/ec_local.h
109
const EC_POINT *b, BN_CTX *);
lib/libcrypto/ec/ec_local.h
125
const BIGNUM *b, BN_CTX *);
lib/libcrypto/ec/ec_local.h
158
BIGNUM *b;
lib/libcrypto/ec/ec_local.h
88
const BIGNUM *b, BN_CTX *);
lib/libcrypto/ec/ec_local.h
90
BIGNUM *b, BN_CTX *);
lib/libcrypto/ec/ec_local.h
96
int (*point_cmp)(const EC_GROUP *, const EC_POINT *a, const EC_POINT *b,
lib/libcrypto/ec/eck_prn.c
204
BIGNUM *p, *a, *b, *cofactor;
lib/libcrypto/ec/eck_prn.c
224
if ((b = BN_CTX_get(ctx)) == NULL)
lib/libcrypto/ec/eck_prn.c
231
if (!EC_GROUP_get_curve(group, p, a, b, ctx)) {
lib/libcrypto/ec/eck_prn.c
265
if (!bn_printf(bio, b, off, "B: "))
lib/libcrypto/ec/ecp_hp_methods.c
198
const EC_POINT *b, BN_CTX *ctx)
lib/libcrypto/ec/ecp_hp_methods.c
217
ec_field_element_copy(&X2, &b->fe_x);
lib/libcrypto/ec/ecp_hp_methods.c
218
ec_field_element_copy(&Y2, &b->fe_y);
lib/libcrypto/ec/ecp_hp_methods.c
219
ec_field_element_copy(&Z2, &b->fe_z);
lib/libcrypto/ec/ecp_hp_methods.c
302
const EC_POINT *b, BN_CTX *ctx)
lib/libcrypto/ec/ecp_hp_methods.c
32
const BIGNUM *b, BN_CTX *ctx)
lib/libcrypto/ec/ecp_hp_methods.c
320
ec_field_element_copy(&X2, &b->fe_x);
lib/libcrypto/ec/ecp_hp_methods.c
321
ec_field_element_copy(&Y2, &b->fe_y);
lib/libcrypto/ec/ecp_hp_methods.c
322
ec_field_element_copy(&Z2, &b->fe_z);
lib/libcrypto/ec/ecp_hp_methods.c
406
const EC_POINT *b, BN_CTX *ctx)
lib/libcrypto/ec/ecp_hp_methods.c
409
return ec_point_add_a2(group, r, a, b, ctx);
lib/libcrypto/ec/ecp_hp_methods.c
411
return ec_point_add_a1(group, r, a, b, ctx);
lib/libcrypto/ec/ecp_hp_methods.c
45
if (!bn_copy(group->b, b))
lib/libcrypto/ec/ecp_hp_methods.c
54
if (!BN_nnmod(group->b, group->b, group->p, ctx))
lib/libcrypto/ec/ecp_hp_methods.c
650
ec_point_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx)
lib/libcrypto/ec/ecp_hp_methods.c
667
ec_field_element_mul(&group->fm, &ax, &a->fe_x, &b->fe_z);
lib/libcrypto/ec/ecp_hp_methods.c
668
ec_field_element_mul(&group->fm, &ay, &a->fe_y, &b->fe_z);
lib/libcrypto/ec/ecp_hp_methods.c
669
ec_field_element_mul(&group->fm, &bx, &b->fe_x, &a->fe_z);
lib/libcrypto/ec/ecp_hp_methods.c
670
ec_field_element_mul(&group->fm, &by, &b->fe_y, &a->fe_z);
lib/libcrypto/ec/ecp_hp_methods.c
70
if (!ec_field_element_from_bn(&group->fm, group, &group->fe_b, group->b, ctx))
lib/libcrypto/ec/ecp_hp_methods.c
782
const EC_POINT *b, int conditional)
lib/libcrypto/ec/ecp_hp_methods.c
784
ec_field_element_select(&group->fm, &r->fe_x, &a->fe_x, &b->fe_x, conditional);
lib/libcrypto/ec/ecp_hp_methods.c
785
ec_field_element_select(&group->fm, &r->fe_y, &a->fe_y, &b->fe_y, conditional);
lib/libcrypto/ec/ecp_hp_methods.c
786
ec_field_element_select(&group->fm, &r->fe_z, &a->fe_z, &b->fe_z, conditional);
lib/libcrypto/ec/ecp_hp_methods.c
83
BIGNUM *b, BN_CTX *ctx)
lib/libcrypto/ec/ecp_hp_methods.c
93
if (b != NULL) {
lib/libcrypto/ec/ecp_hp_methods.c
94
if (!bn_copy(b, group->b))
lib/libcrypto/ec/ecp_methods.c
1033
#define EC_POINT_CSWAP(c, a, b, w, t) do { \
lib/libcrypto/ec/ecp_methods.c
1034
if (!BN_swap_ct(c, (a)->X, (b)->X, w) || \
lib/libcrypto/ec/ecp_methods.c
1035
!BN_swap_ct(c, (a)->Y, (b)->Y, w) || \
lib/libcrypto/ec/ecp_methods.c
1036
!BN_swap_ct(c, (a)->Z, (b)->Z, w)) \
lib/libcrypto/ec/ecp_methods.c
1038
t = ((a)->Z_is_one ^ (b)->Z_is_one) & (c); \
lib/libcrypto/ec/ecp_methods.c
1040
(b)->Z_is_one ^= (t); \
lib/libcrypto/ec/ecp_methods.c
126
const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
lib/libcrypto/ec/ecp_methods.c
1260
const BIGNUM *b, BN_CTX *ctx)
lib/libcrypto/ec/ecp_methods.c
1262
return BN_mod_mul(r, a, b, group->p, ctx);
lib/libcrypto/ec/ecp_methods.c
1273
const BIGNUM *b, BN_CTX *ctx)
lib/libcrypto/ec/ecp_methods.c
1279
if (!ec_group_set_curve(group, p, a, b, ctx))
lib/libcrypto/ec/ecp_methods.c
1293
const BIGNUM *b, BN_CTX *ctx)
lib/libcrypto/ec/ecp_methods.c
1299
return BN_mod_mul_montgomery(r, a, b, group->mont_ctx, ctx);
lib/libcrypto/ec/ecp_methods.c
148
if (!ec_encode_scalar(group, group->b, b, ctx))
lib/libcrypto/ec/ecp_methods.c
167
ec_group_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b,
lib/libcrypto/ec/ecp_methods.c
176
if (!ec_decode_scalar(group, b, group->b, ctx))
lib/libcrypto/ec/ecp_methods.c
256
if (!ec_field_mul(group, tmp, group->b, Z6, ctx))
lib/libcrypto/ec/ecp_methods.c
269
if (!BN_mod_add_quick(rh, rh, group->b, group->p))
lib/libcrypto/ec/ecp_methods.c
293
const EC_POINT *b, BN_CTX *ctx)
lib/libcrypto/ec/ecp_methods.c
301
if (a->Z_is_one == b->Z_is_one)
lib/libcrypto/ec/ecp_methods.c
307
a = b;
lib/libcrypto/ec/ecp_methods.c
308
b = tmp;
lib/libcrypto/ec/ecp_methods.c
321
if (!ec_field_mul(group, bxaz2, b->X, az, ctx))
lib/libcrypto/ec/ecp_methods.c
327
if (!ec_field_mul(group, byaz3, b->Y, az, ctx))
lib/libcrypto/ec/ecp_methods.c
340
const EC_POINT *b, BN_CTX *ctx)
lib/libcrypto/ec/ecp_methods.c
348
if (a->Z_is_one || b->Z_is_one)
lib/libcrypto/ec/ecp_methods.c
365
if (!ec_field_sqr(group, bz, b->Z, ctx))
lib/libcrypto/ec/ecp_methods.c
371
if (!ec_field_mul(group, bxaz2, b->X, az, ctx))
lib/libcrypto/ec/ecp_methods.c
375
if (!ec_field_mul(group, bz, bz, b->Z, ctx))
lib/libcrypto/ec/ecp_methods.c
381
if (!ec_field_mul(group, byaz3, b->Y, az, ctx))
lib/libcrypto/ec/ecp_methods.c
397
ec_point_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b,
lib/libcrypto/ec/ecp_methods.c
400
if (EC_POINT_is_at_infinity(group, a) && EC_POINT_is_at_infinity(group, b))
lib/libcrypto/ec/ecp_methods.c
402
if (EC_POINT_is_at_infinity(group, a) || EC_POINT_is_at_infinity(group, b))
lib/libcrypto/ec/ecp_methods.c
405
if (a->Z_is_one && b->Z_is_one)
lib/libcrypto/ec/ecp_methods.c
406
return BN_cmp(a->X, b->X) != 0 || BN_cmp(a->Y, b->Y) != 0;
lib/libcrypto/ec/ecp_methods.c
407
if (a->Z_is_one || b->Z_is_one)
lib/libcrypto/ec/ecp_methods.c
408
return ec_point_cmp_one_affine(group, a, b, ctx);
lib/libcrypto/ec/ecp_methods.c
410
return ec_point_cmp_none_affine(group, a, b, ctx);
lib/libcrypto/ec/ecp_methods.c
657
ec_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, const EC_POINT *b,
lib/libcrypto/ec/ecp_methods.c
663
if (a == b)
lib/libcrypto/ec/ecp_methods.c
666
return EC_POINT_copy(r, b);
lib/libcrypto/ec/ecp_methods.c
667
if (EC_POINT_is_at_infinity(group, b))
lib/libcrypto/ec/ecp_methods.c
694
if (b->Z_is_one) {
lib/libcrypto/ec/ecp_methods.c
702
if (!ec_field_sqr(group, n0, b->Z, ctx))
lib/libcrypto/ec/ecp_methods.c
708
if (!ec_field_mul(group, n0, n0, b->Z, ctx))
lib/libcrypto/ec/ecp_methods.c
717
if (!bn_copy(n3, b->X))
lib/libcrypto/ec/ecp_methods.c
719
if (!bn_copy(n4, b->Y))
lib/libcrypto/ec/ecp_methods.c
726
if (!ec_field_mul(group, n3, b->X, n0, ctx))
lib/libcrypto/ec/ecp_methods.c
732
if (!ec_field_mul(group, n4, b->Y, n0, ctx))
lib/libcrypto/ec/ecp_methods.c
769
if (a->Z_is_one && b->Z_is_one) {
lib/libcrypto/ec/ecp_methods.c
774
if (!bn_copy(n0, b->Z))
lib/libcrypto/ec/ecp_methods.c
776
} else if (b->Z_is_one) {
lib/libcrypto/ec/ecp_methods.c
780
if (!ec_field_mul(group, n0, a->Z, b->Z, ctx))
lib/libcrypto/ec/ecp_methods.c
88
ec_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
lib/libcrypto/ec/ecp_methods.c
91
return group->meth->field_mul(group, r, a, b, ctx);
lib/libcrypto/ecdsa/ecdsa.c
416
BIGNUM *b, *binv, *be, *bxr;
lib/libcrypto/ecdsa/ecdsa.c
437
if ((b = BN_CTX_get(ctx)) == NULL)
lib/libcrypto/ecdsa/ecdsa.c
459
if (!bn_rand_interval(b, 1, order)) {
lib/libcrypto/ecdsa/ecdsa.c
464
if (BN_mod_inverse_ct(binv, b, order, ctx) == NULL) {
lib/libcrypto/ecdsa/ecdsa.c
469
if (!BN_mod_mul(bxr, b, priv_key, order, ctx)) {
lib/libcrypto/ecdsa/ecdsa.c
477
if (!BN_mod_mul(be, b, e, order, ctx)) {
lib/libcrypto/err/err.c
265
err_string_data_cmp(const ERR_STRING_DATA *a, const ERR_STRING_DATA *b)
lib/libcrypto/err/err.c
267
return (int)(a->error - b->error);
lib/libcrypto/err/err.c
356
err_state_cmp(const ERR_STATE *a, const ERR_STATE *b)
lib/libcrypto/err/err.c
358
return pthread_equal(a->tid, b->tid) == 0;
lib/libcrypto/err/err.h
133
#define ERR_PUT_error(a,b,c,d,e) ERR_put_error(a,b,c,d,e)
lib/libcrypto/err/err.h
135
#define ERR_PUT_error(a,b,c,d,e) ERR_put_error(a,b,c,NULL,0)
lib/libcrypto/evp/bio_b64.c
153
b64_read(BIO *b, char *out, int outl)
lib/libcrypto/evp/bio_b64.c
161
ctx = (BIO_B64_CTX *)b->ptr;
lib/libcrypto/evp/bio_b64.c
163
if ((ctx == NULL) || (b->next_bio == NULL))
lib/libcrypto/evp/bio_b64.c
166
BIO_clear_retry_flags(b);
lib/libcrypto/evp/bio_b64.c
202
i = BIO_read(b->next_bio, &(ctx->tmp[ctx->tmp_len]),
lib/libcrypto/evp/bio_b64.c
209
if (!BIO_should_retry(b->next_bio)) {
lib/libcrypto/evp/bio_b64.c
227
if (ctx->start && (BIO_get_flags(b) & BIO_FLAGS_BASE64_NO_NL)) {
lib/libcrypto/evp/bio_b64.c
297
if (BIO_get_flags(b) & BIO_FLAGS_BASE64_NO_NL) {
lib/libcrypto/evp/bio_b64.c
350
BIO_copy_next_retry(b);
lib/libcrypto/evp/bio_b64.c
355
b64_write(BIO *b, const char *in, int inl)
lib/libcrypto/evp/bio_b64.c
362
ctx = (BIO_B64_CTX *)b->ptr;
lib/libcrypto/evp/bio_b64.c
363
BIO_clear_retry_flags(b);
lib/libcrypto/evp/bio_b64.c
378
i = BIO_write(b->next_bio, &(ctx->buf[ctx->buf_off]), n);
lib/libcrypto/evp/bio_b64.c
380
BIO_copy_next_retry(b);
lib/libcrypto/evp/bio_b64.c
399
if (BIO_get_flags(b) & BIO_FLAGS_BASE64_NO_NL) {
lib/libcrypto/evp/bio_b64.c
451
i = BIO_write(b->next_bio, &(ctx->buf[ctx->buf_off]), n);
lib/libcrypto/evp/bio_b64.c
453
BIO_copy_next_retry(b);
lib/libcrypto/evp/bio_b64.c
469
b64_ctrl(BIO *b, int cmd, long num, void *ptr)
lib/libcrypto/evp/bio_b64.c
475
ctx = (BIO_B64_CTX *)b->ptr;
lib/libcrypto/evp/bio_b64.c
482
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libcrypto/evp/bio_b64.c
488
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libcrypto/evp/bio_b64.c
497
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libcrypto/evp/bio_b64.c
503
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libcrypto/evp/bio_b64.c
509
i = b64_write(b, NULL, 0);
lib/libcrypto/evp/bio_b64.c
513
if (BIO_get_flags(b) & BIO_FLAGS_BASE64_NO_NL) {
lib/libcrypto/evp/bio_b64.c
532
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libcrypto/evp/bio_b64.c
536
BIO_clear_retry_flags(b);
lib/libcrypto/evp/bio_b64.c
537
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libcrypto/evp/bio_b64.c
538
BIO_copy_next_retry(b);
lib/libcrypto/evp/bio_b64.c
547
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libcrypto/evp/bio_b64.c
554
b64_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp)
lib/libcrypto/evp/bio_b64.c
558
if (b->next_bio == NULL)
lib/libcrypto/evp/bio_b64.c
562
ret = BIO_callback_ctrl(b->next_bio, cmd, fp);
lib/libcrypto/evp/bio_b64.c
569
b64_puts(BIO *b, const char *str)
lib/libcrypto/evp/bio_b64.c
571
return b64_write(b, str, strlen(str));
lib/libcrypto/evp/bio_md.c
127
md_read(BIO *b, char *out, int outl)
lib/libcrypto/evp/bio_md.c
134
ctx = b->ptr;
lib/libcrypto/evp/bio_md.c
136
if ((ctx == NULL) || (b->next_bio == NULL))
lib/libcrypto/evp/bio_md.c
139
ret = BIO_read(b->next_bio, out, outl);
lib/libcrypto/evp/bio_md.c
140
if (b->init) {
lib/libcrypto/evp/bio_md.c
147
BIO_clear_retry_flags(b);
lib/libcrypto/evp/bio_md.c
148
BIO_copy_next_retry(b);
lib/libcrypto/evp/bio_md.c
153
md_write(BIO *b, const char *in, int inl)
lib/libcrypto/evp/bio_md.c
160
ctx = b->ptr;
lib/libcrypto/evp/bio_md.c
162
if ((ctx != NULL) && (b->next_bio != NULL))
lib/libcrypto/evp/bio_md.c
163
ret = BIO_write(b->next_bio, in, inl);
lib/libcrypto/evp/bio_md.c
164
if (b->init) {
lib/libcrypto/evp/bio_md.c
168
BIO_clear_retry_flags(b);
lib/libcrypto/evp/bio_md.c
173
if (b->next_bio != NULL) {
lib/libcrypto/evp/bio_md.c
174
BIO_clear_retry_flags(b);
lib/libcrypto/evp/bio_md.c
175
BIO_copy_next_retry(b);
lib/libcrypto/evp/bio_md.c
181
md_ctrl(BIO *b, int cmd, long num, void *ptr)
lib/libcrypto/evp/bio_md.c
189
ctx = b->ptr;
lib/libcrypto/evp/bio_md.c
193
if (b->init)
lib/libcrypto/evp/bio_md.c
198
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libcrypto/evp/bio_md.c
201
if (b->init) {
lib/libcrypto/evp/bio_md.c
210
b->init = 1;
lib/libcrypto/evp/bio_md.c
213
if (b->init)
lib/libcrypto/evp/bio_md.c
214
b->ptr = ptr;
lib/libcrypto/evp/bio_md.c
219
BIO_clear_retry_flags(b);
lib/libcrypto/evp/bio_md.c
220
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libcrypto/evp/bio_md.c
221
BIO_copy_next_retry(b);
lib/libcrypto/evp/bio_md.c
228
b->init = 1;
lib/libcrypto/evp/bio_md.c
235
b->init = 1;
lib/libcrypto/evp/bio_md.c
238
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libcrypto/evp/bio_md.c
245
md_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp)
lib/libcrypto/evp/bio_md.c
249
if (b->next_bio == NULL)
lib/libcrypto/evp/bio_md.c
253
ret = BIO_callback_ctrl(b->next_bio, cmd, fp);
lib/libcrypto/evp/evp.h
418
#define EVP_SignInit_ex(a,b,c) EVP_DigestInit_ex(a,b,c)
lib/libcrypto/evp/evp.h
419
#define EVP_SignInit(a,b) EVP_DigestInit(a,b)
lib/libcrypto/evp/evp.h
420
#define EVP_SignUpdate(a,b,c) EVP_DigestUpdate(a,b,c)
lib/libcrypto/evp/evp.h
421
#define EVP_VerifyInit_ex(a,b,c) EVP_DigestInit_ex(a,b,c)
lib/libcrypto/evp/evp.h
422
#define EVP_VerifyInit(a,b) EVP_DigestInit(a,b)
lib/libcrypto/evp/evp.h
423
#define EVP_VerifyUpdate(a,b,c) EVP_DigestUpdate(a,b,c)
lib/libcrypto/evp/evp.h
424
#define EVP_OpenUpdate(a,b,c,d,e) EVP_DecryptUpdate(a,b,c,d,e)
lib/libcrypto/evp/evp.h
425
#define EVP_SealUpdate(a,b,c,d,e) EVP_EncryptUpdate(a,b,c,d,e)
lib/libcrypto/evp/evp.h
426
#define EVP_DigestSignUpdate(a,b,c) EVP_DigestUpdate(a,b,c)
lib/libcrypto/evp/evp.h
427
#define EVP_DigestVerifyUpdate(a,b,c) EVP_DigestUpdate(a,b,c)
lib/libcrypto/evp/evp.h
429
#define BIO_set_md(b,md) BIO_ctrl(b,BIO_C_SET_MD,0,(char *)md)
lib/libcrypto/evp/evp.h
430
#define BIO_get_md(b,mdp) BIO_ctrl(b,BIO_C_GET_MD,0,(char *)mdp)
lib/libcrypto/evp/evp.h
431
#define BIO_get_md_ctx(b,mdcp) BIO_ctrl(b,BIO_C_GET_MD_CTX,0,(char *)mdcp)
lib/libcrypto/evp/evp.h
432
#define BIO_set_md_ctx(b,mdcp) BIO_ctrl(b,BIO_C_SET_MD_CTX,0,(char *)mdcp)
lib/libcrypto/evp/evp.h
433
#define BIO_get_cipher_status(b) BIO_ctrl(b,BIO_C_GET_CIPHER_STATUS,0,NULL)
lib/libcrypto/evp/evp.h
434
#define BIO_get_cipher_ctx(b,c_pp) BIO_ctrl(b,BIO_C_GET_CIPHER_CTX,0,(char *)c_pp)
lib/libcrypto/evp/evp.h
561
int BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k,
lib/libcrypto/evp/evp.h
818
int EVP_PKEY_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b);
lib/libcrypto/evp/evp.h
820
int EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b);
lib/libcrypto/evp/evp_encode.c
370
int i, ret = 0, a, b, c, d;
lib/libcrypto/evp/evp_encode.c
389
b = conv_ascii2bin(*(f++));
lib/libcrypto/evp/evp_encode.c
392
if ((a & 0x80) || (b & 0x80) ||
lib/libcrypto/evp/evp_encode.c
396
(((unsigned long)b) << 12L) |
lib/libcrypto/evp/evp_local.h
102
int (*pub_cmp)(const EVP_PKEY *a, const EVP_PKEY *b);
lib/libcrypto/evp/evp_local.h
123
int (*param_cmp)(const EVP_PKEY *a, const EVP_PKEY *b);
lib/libcrypto/evp/evp_names.c
1631
cipher_cmp(const void *a, const void *b)
lib/libcrypto/evp/evp_names.c
1633
return strcmp(a, ((const struct cipher_name *)b)->name);
lib/libcrypto/evp/evp_names.c
1656
digest_cmp(const void *a, const void *b)
lib/libcrypto/evp/evp_names.c
1658
return strcmp(a, ((const struct digest_name *)b)->name);
lib/libcrypto/evp/p_lib.c
347
EVP_PKEY_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b)
lib/libcrypto/evp/p_lib.c
349
if (a->type != b->type)
lib/libcrypto/evp/p_lib.c
352
return a->ameth->param_cmp(a, b);
lib/libcrypto/evp/p_lib.c
358
EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b)
lib/libcrypto/evp/p_lib.c
360
if (a->type != b->type)
lib/libcrypto/evp/p_lib.c
367
ret = a->ameth->param_cmp(a, b);
lib/libcrypto/evp/p_lib.c
373
return a->ameth->pub_cmp(a, b);
lib/libcrypto/evp/pmeth_gn.c
181
trans_cb(int a, int b, BN_GENCB *gcb)
lib/libcrypto/evp/pmeth_gn.c
185
ctx->keygen_info[1] = b;
lib/libcrypto/hmac/hm_ameth.c
72
hmac_pkey_public_cmp(const EVP_PKEY *a, const EVP_PKEY *b)
lib/libcrypto/hmac/hm_ameth.c
75
return ASN1_OCTET_STRING_cmp(a->pkey.ptr, b->pkey.ptr) == 0;
lib/libcrypto/idea/idea_local.h
65
#define idea_mul(r,a,b,ul) \
lib/libcrypto/idea/idea_local.h
66
ul=(unsigned long)a*b; \
lib/libcrypto/idea/idea_local.h
73
r=(-(int)a-b+1); /* assuming a or b is 0 and in range */
lib/libcrypto/lhash/lhash.c
105
n1 = &(lh->b[p]);
lib/libcrypto/lhash/lhash.c
106
n2 = &(lh->b[p + (int)lh->pmax]);
lib/libcrypto/lhash/lhash.c
127
n = reallocarray(lh->b, j, sizeof(LHASH_NODE *));
lib/libcrypto/lhash/lhash.c
140
lh->b = n;
lib/libcrypto/lhash/lhash.c
149
np = lh->b[lh->p + lh->pmax - 1];
lib/libcrypto/lhash/lhash.c
150
lh->b[lh->p+lh->pmax - 1] = NULL; /* 24/07-92 - eay - weird but :-( */
lib/libcrypto/lhash/lhash.c
152
n = reallocarray(lh->b, lh->pmax, sizeof(LHASH_NODE *));
lib/libcrypto/lhash/lhash.c
161
lh->b = n;
lib/libcrypto/lhash/lhash.c
167
n1 = lh->b[(int)lh->p];
lib/libcrypto/lhash/lhash.c
169
lh->b[(int)lh->p] = np;
lib/libcrypto/lhash/lhash.c
192
ret = &(lh->b[(int)nn]);
lib/libcrypto/lhash/lhash.c
214
if ((ret->b = calloc(MIN_NODES, sizeof(LHASH_NODE *))) == NULL) {
lib/libcrypto/lhash/lhash.c
240
n = lh->b[i];
lib/libcrypto/lhash/lhash.c
247
free(lh->b);
lib/libcrypto/lhash/lhash.c
364
a = lh->b[i];
lib/libcrypto/lhash/lhash.c
82
LHASH_NODE **b;
lib/libcrypto/lhash/lhash.h
105
const o_type *b = arg2; \
lib/libcrypto/lhash/lhash.h
106
return name##_cmp(a,b); }
lib/libcrypto/lhash/lhash.h
124
a_type *b = arg2; \
lib/libcrypto/lhash/lhash.h
125
name##_doall_arg(a, b); }
lib/libcrypto/md4/md4.c
102
*a = crypto_rol_u32(*a + md4_g(b, c, d) + x + 0x5a827999UL, s);
lib/libcrypto/md4/md4.c
106
md4_round3(uint32_t *a, uint32_t b, uint32_t c, uint32_t d, uint32_t x,
lib/libcrypto/md4/md4.c
109
*a = crypto_rol_u32(*a + md4_h(b, c, d) + x + 0x6ed9eba1UL, s);
lib/libcrypto/md4/md4.c
92
md4_round1(uint32_t *a, uint32_t b, uint32_t c, uint32_t d, uint32_t x,
lib/libcrypto/md4/md4.c
95
*a = crypto_rol_u32(*a + md4_f(b, c, d) + x, s);
lib/libcrypto/md4/md4.c
99
md4_round2(uint32_t *a, uint32_t b, uint32_t c, uint32_t d, uint32_t x,
lib/libcrypto/md4/md4.h
100
void MD4_Transform(MD4_CTX *c, const unsigned char *b);
lib/libcrypto/md5/md5.c
103
md5_round1(uint32_t *a, uint32_t b, uint32_t c, uint32_t d, uint32_t x,
lib/libcrypto/md5/md5.c
106
*a = b + crypto_rol_u32(*a + md5_F(b, c, d) + x + t, s);
lib/libcrypto/md5/md5.c
110
md5_round2(uint32_t *a, uint32_t b, uint32_t c, uint32_t d, uint32_t x,
lib/libcrypto/md5/md5.c
113
*a = b + crypto_rol_u32(*a + md5_G(b, c, d) + x + t, s);
lib/libcrypto/md5/md5.c
117
md5_round3(uint32_t *a, uint32_t b, uint32_t c, uint32_t d, uint32_t x,
lib/libcrypto/md5/md5.c
120
*a = b + crypto_rol_u32(*a + md5_H(b, c, d) + x + t, s);
lib/libcrypto/md5/md5.c
124
md5_round4(uint32_t *a, uint32_t b, uint32_t c, uint32_t d, uint32_t x,
lib/libcrypto/md5/md5.c
127
*a = b + crypto_rol_u32(*a + md5_I(b, c, d) + x + t, s);
lib/libcrypto/md5/md5.h
94
void MD5_Transform(MD5_CTX *c, const unsigned char *b);
lib/libcrypto/objects/obj_dat.c
129
const ASN1_OBJECT *a, *b;
lib/libcrypto/objects/obj_dat.c
136
b = cb->obj;
lib/libcrypto/objects/obj_dat.c
139
return OBJ_cmp(a, b);
lib/libcrypto/objects/obj_dat.c
143
if (b->sn == NULL)
lib/libcrypto/objects/obj_dat.c
145
return strcmp(a->sn, b->sn);
lib/libcrypto/objects/obj_dat.c
149
if (b->ln == NULL)
lib/libcrypto/objects/obj_dat.c
151
return strcmp(a->ln, b->ln);
lib/libcrypto/objects/obj_dat.c
153
return a->nid - b->nid;
lib/libcrypto/objects/obj_dat.c
320
obj_objs_cmp(const void *aobj, const void *b)
lib/libcrypto/objects/obj_dat.c
322
const unsigned int *nid = b;
lib/libcrypto/objects/obj_dat.c
362
sn_objs_cmp(const void *sn, const void *b)
lib/libcrypto/objects/obj_dat.c
364
const unsigned int *nid = b;
lib/libcrypto/objects/obj_dat.c
401
ln_objs_cmp(const void *ln, const void *b)
lib/libcrypto/objects/obj_dat.c
403
const unsigned int *nid = b;
lib/libcrypto/objects/obj_lib.c
125
OBJ_cmp(const ASN1_OBJECT *a, const ASN1_OBJECT *b)
lib/libcrypto/objects/obj_lib.c
129
if ((cmp = a->length - b->length) != 0)
lib/libcrypto/objects/obj_lib.c
133
return memcmp(a->data, b->data, a->length);
lib/libcrypto/objects/objects.h
104
int OBJ_cmp(const ASN1_OBJECT *a, const ASN1_OBJECT *b);
lib/libcrypto/ocsp/ocsp.h
192
OCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, const char *path, OCSP_REQUEST *req);
lib/libcrypto/ocsp/ocsp.h
252
int OCSP_id_issuer_cmp(OCSP_CERTID *a, OCSP_CERTID *b);
lib/libcrypto/ocsp/ocsp.h
253
int OCSP_id_cmp(OCSP_CERTID *a, OCSP_CERTID *b);
lib/libcrypto/ocsp/ocsp_ht.c
450
OCSP_sendreq_bio(BIO *b, const char *path, OCSP_REQUEST *req)
lib/libcrypto/ocsp/ocsp_ht.c
456
ctx = OCSP_sendreq_new(b, path, req, -1);
lib/libcrypto/ocsp/ocsp_ht.c
462
} while ((rv == -1) && BIO_should_retry(b));
lib/libcrypto/ocsp/ocsp_lib.c
156
OCSP_id_issuer_cmp(OCSP_CERTID *a, OCSP_CERTID *b)
lib/libcrypto/ocsp/ocsp_lib.c
165
ret = OBJ_cmp(a->hashAlgorithm->algorithm, b->hashAlgorithm->algorithm);
lib/libcrypto/ocsp/ocsp_lib.c
168
ret = ASN1_OCTET_STRING_cmp(a->issuerNameHash, b->issuerNameHash);
lib/libcrypto/ocsp/ocsp_lib.c
171
return ASN1_OCTET_STRING_cmp(a->issuerKeyHash, b->issuerKeyHash);
lib/libcrypto/ocsp/ocsp_lib.c
176
OCSP_id_cmp(OCSP_CERTID *a, OCSP_CERTID *b)
lib/libcrypto/ocsp/ocsp_lib.c
180
ret = OCSP_id_issuer_cmp(a, b);
lib/libcrypto/ocsp/ocsp_lib.c
183
return ASN1_INTEGER_cmp(a->serialNumber, b->serialNumber);
lib/libcrypto/pem/pem_lib.c
175
BIO *b;
lib/libcrypto/pem/pem_lib.c
178
if ((b = BIO_new(BIO_s_file())) == NULL) {
lib/libcrypto/pem/pem_lib.c
182
BIO_set_fp(b, fp, BIO_NOCLOSE);
lib/libcrypto/pem/pem_lib.c
183
ret = PEM_ASN1_read_bio(d2i, name, b, x, cb, u);
lib/libcrypto/pem/pem_lib.c
184
BIO_free(b);
lib/libcrypto/pem/pem_lib.c
329
BIO *b;
lib/libcrypto/pem/pem_lib.c
332
if ((b = BIO_new(BIO_s_file())) == NULL) {
lib/libcrypto/pem/pem_lib.c
336
BIO_set_fp(b, fp, BIO_NOCLOSE);
lib/libcrypto/pem/pem_lib.c
337
ret = PEM_ASN1_write_bio(i2d, name, b, x, enc, kstr, klen, callback, u);
lib/libcrypto/pem/pem_lib.c
338
BIO_free(b);
lib/libcrypto/pem/pem_lib.c
583
BIO *b;
lib/libcrypto/pem/pem_lib.c
586
if ((b = BIO_new(BIO_s_file())) == NULL) {
lib/libcrypto/pem/pem_lib.c
590
BIO_set_fp(b, fp, BIO_NOCLOSE);
lib/libcrypto/pem/pem_lib.c
591
ret = PEM_write_bio(b, name, header, data, len);
lib/libcrypto/pem/pem_lib.c
592
BIO_free(b);
lib/libcrypto/pem/pem_lib.c
658
BIO *b;
lib/libcrypto/pem/pem_lib.c
661
if ((b = BIO_new(BIO_s_file())) == NULL) {
lib/libcrypto/pem/pem_lib.c
665
BIO_set_fp(b, fp, BIO_NOCLOSE);
lib/libcrypto/pem/pem_lib.c
666
ret = PEM_read_bio(b, name, header, data, len);
lib/libcrypto/pem/pem_lib.c
667
BIO_free(b);
lib/libcrypto/pem/pem_pkey.c
234
BIO *b;
lib/libcrypto/pem/pem_pkey.c
237
if ((b = BIO_new(BIO_s_file())) == NULL) {
lib/libcrypto/pem/pem_pkey.c
241
BIO_set_fp(b, fp, BIO_NOCLOSE);
lib/libcrypto/pem/pem_pkey.c
242
ret = PEM_read_bio_PrivateKey(b, x, cb, u);
lib/libcrypto/pem/pem_pkey.c
243
BIO_free(b);
lib/libcrypto/pem/pem_pkey.c
252
BIO *b;
lib/libcrypto/pem/pem_pkey.c
255
if ((b = BIO_new_fp(fp, BIO_NOCLOSE)) == NULL) {
lib/libcrypto/pem/pem_pkey.c
259
ret = PEM_write_bio_PrivateKey(b, x, enc, kstr, klen, cb, u);
lib/libcrypto/pem/pem_pkey.c
260
BIO_free(b);
lib/libcrypto/pkcs12/p12_key.c
71
#define min(a,b) ((a) < (b) ? (a) : (b))
lib/libcrypto/ripemd/ripemd.c
102
#define RIP1(a,b,c,d,e,w,s) { \
lib/libcrypto/ripemd/ripemd.c
103
a+=F1(b,c,d)+w; \
lib/libcrypto/ripemd/ripemd.c
107
#define RIP2(a,b,c,d,e,w,s,K) { \
lib/libcrypto/ripemd/ripemd.c
108
a+=F2(b,c,d)+w+K; \
lib/libcrypto/ripemd/ripemd.c
112
#define RIP3(a,b,c,d,e,w,s,K) { \
lib/libcrypto/ripemd/ripemd.c
113
a+=F3(b,c,d)+w+K; \
lib/libcrypto/ripemd/ripemd.c
117
#define RIP4(a,b,c,d,e,w,s,K) { \
lib/libcrypto/ripemd/ripemd.c
118
a+=F4(b,c,d)+w+K; \
lib/libcrypto/ripemd/ripemd.c
122
#define RIP5(a,b,c,d,e,w,s,K) { \
lib/libcrypto/ripemd/ripemd.c
123
a+=F5(b,c,d)+w+K; \
lib/libcrypto/ripemd/ripemd.c
133
unsigned int a, b, c, d, e;
lib/libcrypto/ripemd/ripemd.c
270
b = B;
lib/libcrypto/ripemd/ripemd.c
370
ctx->E = ctx->A + b + C;
lib/libcrypto/ripemd/ripemd.h
102
void RIPEMD160_Transform(RIPEMD160_CTX *c, const unsigned char *b);
lib/libcrypto/rsa/rsa_ameth.c
201
rsa_pub_cmp(const EVP_PKEY *a, const EVP_PKEY *b)
lib/libcrypto/rsa/rsa_ameth.c
203
if (BN_cmp(b->pkey.rsa->n, a->pkey.rsa->n) != 0 ||
lib/libcrypto/rsa/rsa_ameth.c
204
BN_cmp(b->pkey.rsa->e, a->pkey.rsa->e) != 0)
lib/libcrypto/rsa/rsa_blinding.c
190
BN_BLINDING_setup(BN_BLINDING *b, BN_CTX *ctx)
lib/libcrypto/rsa/rsa_blinding.c
192
if (!bn_rand_interval(b->A, 1, b->mod))
lib/libcrypto/rsa/rsa_blinding.c
194
if (BN_mod_inverse_ct(b->Ai, b->A, b->mod, ctx) == NULL)
lib/libcrypto/rsa/rsa_blinding.c
197
if (b->bn_mod_exp != NULL && b->m_ctx != NULL) {
lib/libcrypto/rsa/rsa_blinding.c
198
if (!b->bn_mod_exp(b->A, b->A, b->e, b->mod, ctx, b->m_ctx))
lib/libcrypto/rsa/rsa_blinding.c
201
if (!BN_mod_exp_ct(b->A, b->A, b->e, b->mod, ctx))
lib/libcrypto/rsa/rsa_blinding.c
209
BN_BLINDING_update(BN_BLINDING *b, BN_CTX *ctx)
lib/libcrypto/rsa/rsa_blinding.c
213
if (++b->counter >= BN_BLINDING_COUNTER) {
lib/libcrypto/rsa/rsa_blinding.c
214
if (!BN_BLINDING_setup(b, ctx))
lib/libcrypto/rsa/rsa_blinding.c
216
b->counter = 0;
lib/libcrypto/rsa/rsa_blinding.c
218
if (!BN_mod_sqr(b->A, b->A, b->mod, ctx))
lib/libcrypto/rsa/rsa_blinding.c
220
if (!BN_mod_sqr(b->Ai, b->Ai, b->mod, ctx))
lib/libcrypto/rsa/rsa_blinding.c
231
BN_BLINDING_convert(BIGNUM *n, BIGNUM *inv, BN_BLINDING *b, BN_CTX *ctx)
lib/libcrypto/rsa/rsa_blinding.c
235
if (!BN_BLINDING_update(b, ctx))
lib/libcrypto/rsa/rsa_blinding.c
239
if (!bn_copy(inv, b->Ai))
lib/libcrypto/rsa/rsa_blinding.c
243
ret = BN_mod_mul(n, n, b->A, b->mod, ctx);
lib/libcrypto/rsa/rsa_blinding.c
250
BN_BLINDING_invert(BIGNUM *n, const BIGNUM *inv, BN_BLINDING *b, BN_CTX *ctx)
lib/libcrypto/rsa/rsa_blinding.c
253
inv = b->Ai;
lib/libcrypto/rsa/rsa_blinding.c
255
return BN_mod_mul(n, n, inv, b->mod, ctx);
lib/libcrypto/rsa/rsa_blinding.c
259
BN_BLINDING_is_local(BN_BLINDING *b)
lib/libcrypto/rsa/rsa_blinding.c
261
return pthread_equal(pthread_self(), b->tid) != 0;
lib/libcrypto/rsa/rsa_eay.c
268
rsa_blinding_convert(BN_BLINDING *b, BIGNUM *f, BIGNUM *unblind, BN_CTX *ctx)
lib/libcrypto/rsa/rsa_eay.c
275
return BN_BLINDING_convert(f, NULL, b, ctx);
lib/libcrypto/rsa/rsa_eay.c
283
ret = BN_BLINDING_convert(f, unblind, b, ctx);
lib/libcrypto/rsa/rsa_eay.c
290
rsa_blinding_invert(BN_BLINDING *b, BIGNUM *f, BIGNUM *unblind, BN_CTX *ctx)
lib/libcrypto/rsa/rsa_eay.c
300
return BN_BLINDING_invert(f, unblind, b, ctx);
lib/libcrypto/rsa/rsa_local.h
151
void BN_BLINDING_free(BN_BLINDING *b);
lib/libcrypto/rsa/rsa_local.h
152
int BN_BLINDING_convert(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *);
lib/libcrypto/rsa/rsa_local.h
153
int BN_BLINDING_invert(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b, BN_CTX *);
lib/libcrypto/rsa/rsa_local.h
154
int BN_BLINDING_is_local(BN_BLINDING *b);
lib/libcrypto/rsa/rsa_prn.c
69
BIO *b;
lib/libcrypto/rsa/rsa_prn.c
72
if ((b = BIO_new(BIO_s_file())) == NULL) {
lib/libcrypto/rsa/rsa_prn.c
76
BIO_set_fp(b, fp, BIO_NOCLOSE);
lib/libcrypto/rsa/rsa_prn.c
77
ret = RSA_print(b, x, off);
lib/libcrypto/rsa/rsa_prn.c
78
BIO_free(b);
lib/libcrypto/sha/sha1.c
103
sha1_round1(SHA_LONG *a, SHA_LONG *b, SHA_LONG *c, SHA_LONG *d, SHA_LONG *e,
lib/libcrypto/sha/sha1.c
109
T = crypto_rol_u32(*a, 5) + Ch(*b, *c, *d) + *e + Kt + Wt;
lib/libcrypto/sha/sha1.c
113
*c = crypto_rol_u32(*b, 30);
lib/libcrypto/sha/sha1.c
114
*b = *a;
lib/libcrypto/sha/sha1.c
119
sha1_round2(SHA_LONG *a, SHA_LONG *b, SHA_LONG *c, SHA_LONG *d, SHA_LONG *e,
lib/libcrypto/sha/sha1.c
125
T = crypto_rol_u32(*a, 5) + Parity(*b, *c, *d) + *e + Kt + Wt;
lib/libcrypto/sha/sha1.c
129
*c = crypto_rol_u32(*b, 30);
lib/libcrypto/sha/sha1.c
130
*b = *a;
lib/libcrypto/sha/sha1.c
135
sha1_round3(SHA_LONG *a, SHA_LONG *b, SHA_LONG *c, SHA_LONG *d, SHA_LONG *e,
lib/libcrypto/sha/sha1.c
141
T = crypto_rol_u32(*a, 5) + Maj(*b, *c, *d) + *e + Kt + Wt;
lib/libcrypto/sha/sha1.c
145
*c = crypto_rol_u32(*b, 30);
lib/libcrypto/sha/sha1.c
146
*b = *a;
lib/libcrypto/sha/sha1.c
151
sha1_round4(SHA_LONG *a, SHA_LONG *b, SHA_LONG *c, SHA_LONG *d, SHA_LONG *e,
lib/libcrypto/sha/sha1.c
157
T = crypto_rol_u32(*a, 5) + Parity(*b, *c, *d) + *e + Kt + Wt;
lib/libcrypto/sha/sha1.c
161
*c = crypto_rol_u32(*b, 30);
lib/libcrypto/sha/sha1.c
162
*b = *a;
lib/libcrypto/sha/sha1.c
171
unsigned int a, b, c, d, e;
lib/libcrypto/sha/sha1.c
177
b = ctx->h1;
lib/libcrypto/sha/sha1.c
222
sha1_round1(&a, &b, &c, &d, &e, X0);
lib/libcrypto/sha/sha1.c
223
sha1_round1(&a, &b, &c, &d, &e, X1);
lib/libcrypto/sha/sha1.c
224
sha1_round1(&a, &b, &c, &d, &e, X2);
lib/libcrypto/sha/sha1.c
225
sha1_round1(&a, &b, &c, &d, &e, X3);
lib/libcrypto/sha/sha1.c
226
sha1_round1(&a, &b, &c, &d, &e, X4);
lib/libcrypto/sha/sha1.c
227
sha1_round1(&a, &b, &c, &d, &e, X5);
lib/libcrypto/sha/sha1.c
228
sha1_round1(&a, &b, &c, &d, &e, X6);
lib/libcrypto/sha/sha1.c
229
sha1_round1(&a, &b, &c, &d, &e, X7);
lib/libcrypto/sha/sha1.c
230
sha1_round1(&a, &b, &c, &d, &e, X8);
lib/libcrypto/sha/sha1.c
231
sha1_round1(&a, &b, &c, &d, &e, X9);
lib/libcrypto/sha/sha1.c
232
sha1_round1(&a, &b, &c, &d, &e, X10);
lib/libcrypto/sha/sha1.c
233
sha1_round1(&a, &b, &c, &d, &e, X11);
lib/libcrypto/sha/sha1.c
234
sha1_round1(&a, &b, &c, &d, &e, X12);
lib/libcrypto/sha/sha1.c
235
sha1_round1(&a, &b, &c, &d, &e, X13);
lib/libcrypto/sha/sha1.c
236
sha1_round1(&a, &b, &c, &d, &e, X14);
lib/libcrypto/sha/sha1.c
237
sha1_round1(&a, &b, &c, &d, &e, X15);
lib/libcrypto/sha/sha1.c
256
sha1_round1(&a, &b, &c, &d, &e, X0);
lib/libcrypto/sha/sha1.c
257
sha1_round1(&a, &b, &c, &d, &e, X1);
lib/libcrypto/sha/sha1.c
258
sha1_round1(&a, &b, &c, &d, &e, X2);
lib/libcrypto/sha/sha1.c
259
sha1_round1(&a, &b, &c, &d, &e, X3);
lib/libcrypto/sha/sha1.c
260
sha1_round2(&a, &b, &c, &d, &e, X4);
lib/libcrypto/sha/sha1.c
261
sha1_round2(&a, &b, &c, &d, &e, X5);
lib/libcrypto/sha/sha1.c
262
sha1_round2(&a, &b, &c, &d, &e, X6);
lib/libcrypto/sha/sha1.c
263
sha1_round2(&a, &b, &c, &d, &e, X7);
lib/libcrypto/sha/sha1.c
264
sha1_round2(&a, &b, &c, &d, &e, X8);
lib/libcrypto/sha/sha1.c
265
sha1_round2(&a, &b, &c, &d, &e, X9);
lib/libcrypto/sha/sha1.c
266
sha1_round2(&a, &b, &c, &d, &e, X10);
lib/libcrypto/sha/sha1.c
267
sha1_round2(&a, &b, &c, &d, &e, X11);
lib/libcrypto/sha/sha1.c
268
sha1_round2(&a, &b, &c, &d, &e, X12);
lib/libcrypto/sha/sha1.c
269
sha1_round2(&a, &b, &c, &d, &e, X13);
lib/libcrypto/sha/sha1.c
270
sha1_round2(&a, &b, &c, &d, &e, X14);
lib/libcrypto/sha/sha1.c
271
sha1_round2(&a, &b, &c, &d, &e, X15);
lib/libcrypto/sha/sha1.c
290
sha1_round2(&a, &b, &c, &d, &e, X0);
lib/libcrypto/sha/sha1.c
291
sha1_round2(&a, &b, &c, &d, &e, X1);
lib/libcrypto/sha/sha1.c
292
sha1_round2(&a, &b, &c, &d, &e, X2);
lib/libcrypto/sha/sha1.c
293
sha1_round2(&a, &b, &c, &d, &e, X3);
lib/libcrypto/sha/sha1.c
294
sha1_round2(&a, &b, &c, &d, &e, X4);
lib/libcrypto/sha/sha1.c
295
sha1_round2(&a, &b, &c, &d, &e, X5);
lib/libcrypto/sha/sha1.c
296
sha1_round2(&a, &b, &c, &d, &e, X6);
lib/libcrypto/sha/sha1.c
297
sha1_round2(&a, &b, &c, &d, &e, X7);
lib/libcrypto/sha/sha1.c
298
sha1_round3(&a, &b, &c, &d, &e, X8);
lib/libcrypto/sha/sha1.c
299
sha1_round3(&a, &b, &c, &d, &e, X9);
lib/libcrypto/sha/sha1.c
300
sha1_round3(&a, &b, &c, &d, &e, X10);
lib/libcrypto/sha/sha1.c
301
sha1_round3(&a, &b, &c, &d, &e, X11);
lib/libcrypto/sha/sha1.c
302
sha1_round3(&a, &b, &c, &d, &e, X12);
lib/libcrypto/sha/sha1.c
303
sha1_round3(&a, &b, &c, &d, &e, X13);
lib/libcrypto/sha/sha1.c
304
sha1_round3(&a, &b, &c, &d, &e, X14);
lib/libcrypto/sha/sha1.c
305
sha1_round3(&a, &b, &c, &d, &e, X15);
lib/libcrypto/sha/sha1.c
324
sha1_round3(&a, &b, &c, &d, &e, X0);
lib/libcrypto/sha/sha1.c
325
sha1_round3(&a, &b, &c, &d, &e, X1);
lib/libcrypto/sha/sha1.c
326
sha1_round3(&a, &b, &c, &d, &e, X2);
lib/libcrypto/sha/sha1.c
327
sha1_round3(&a, &b, &c, &d, &e, X3);
lib/libcrypto/sha/sha1.c
328
sha1_round3(&a, &b, &c, &d, &e, X4);
lib/libcrypto/sha/sha1.c
329
sha1_round3(&a, &b, &c, &d, &e, X5);
lib/libcrypto/sha/sha1.c
330
sha1_round3(&a, &b, &c, &d, &e, X6);
lib/libcrypto/sha/sha1.c
331
sha1_round3(&a, &b, &c, &d, &e, X7);
lib/libcrypto/sha/sha1.c
332
sha1_round3(&a, &b, &c, &d, &e, X8);
lib/libcrypto/sha/sha1.c
333
sha1_round3(&a, &b, &c, &d, &e, X9);
lib/libcrypto/sha/sha1.c
334
sha1_round3(&a, &b, &c, &d, &e, X10);
lib/libcrypto/sha/sha1.c
335
sha1_round3(&a, &b, &c, &d, &e, X11);
lib/libcrypto/sha/sha1.c
336
sha1_round4(&a, &b, &c, &d, &e, X12);
lib/libcrypto/sha/sha1.c
337
sha1_round4(&a, &b, &c, &d, &e, X13);
lib/libcrypto/sha/sha1.c
338
sha1_round4(&a, &b, &c, &d, &e, X14);
lib/libcrypto/sha/sha1.c
339
sha1_round4(&a, &b, &c, &d, &e, X15);
lib/libcrypto/sha/sha1.c
358
sha1_round4(&a, &b, &c, &d, &e, X0);
lib/libcrypto/sha/sha1.c
359
sha1_round4(&a, &b, &c, &d, &e, X1);
lib/libcrypto/sha/sha1.c
360
sha1_round4(&a, &b, &c, &d, &e, X2);
lib/libcrypto/sha/sha1.c
361
sha1_round4(&a, &b, &c, &d, &e, X3);
lib/libcrypto/sha/sha1.c
362
sha1_round4(&a, &b, &c, &d, &e, X4);
lib/libcrypto/sha/sha1.c
363
sha1_round4(&a, &b, &c, &d, &e, X5);
lib/libcrypto/sha/sha1.c
364
sha1_round4(&a, &b, &c, &d, &e, X6);
lib/libcrypto/sha/sha1.c
365
sha1_round4(&a, &b, &c, &d, &e, X7);
lib/libcrypto/sha/sha1.c
366
sha1_round4(&a, &b, &c, &d, &e, X8);
lib/libcrypto/sha/sha1.c
367
sha1_round4(&a, &b, &c, &d, &e, X9);
lib/libcrypto/sha/sha1.c
368
sha1_round4(&a, &b, &c, &d, &e, X10);
lib/libcrypto/sha/sha1.c
369
sha1_round4(&a, &b, &c, &d, &e, X11);
lib/libcrypto/sha/sha1.c
370
sha1_round4(&a, &b, &c, &d, &e, X12);
lib/libcrypto/sha/sha1.c
371
sha1_round4(&a, &b, &c, &d, &e, X13);
lib/libcrypto/sha/sha1.c
372
sha1_round4(&a, &b, &c, &d, &e, X14);
lib/libcrypto/sha/sha1.c
373
sha1_round4(&a, &b, &c, &d, &e, X15);
lib/libcrypto/sha/sha1.c
376
ctx->h1 += b;
lib/libcrypto/sha/sha256.c
139
sha256_round(SHA_LONG *a, SHA_LONG *b, SHA_LONG *c, SHA_LONG *d, SHA_LONG *e,
lib/libcrypto/sha/sha256.c
145
T2 = Sigma0(*a) + Maj(*a, *b, *c);
lib/libcrypto/sha/sha256.c
152
*c = *b;
lib/libcrypto/sha/sha256.c
153
*b = *a;
lib/libcrypto/sha/sha256.c
162
SHA_LONG a, b, c, d, e, f, g, h;
lib/libcrypto/sha/sha256.c
168
b = ctx->h[1];
lib/libcrypto/sha/sha256.c
216
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[0], X[0]);
lib/libcrypto/sha/sha256.c
217
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[1], X[1]);
lib/libcrypto/sha/sha256.c
218
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[2], X[2]);
lib/libcrypto/sha/sha256.c
219
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[3], X[3]);
lib/libcrypto/sha/sha256.c
220
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[4], X[4]);
lib/libcrypto/sha/sha256.c
221
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[5], X[5]);
lib/libcrypto/sha/sha256.c
222
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[6], X[6]);
lib/libcrypto/sha/sha256.c
223
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[7], X[7]);
lib/libcrypto/sha/sha256.c
224
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[8], X[8]);
lib/libcrypto/sha/sha256.c
225
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[9], X[9]);
lib/libcrypto/sha/sha256.c
226
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[10], X[10]);
lib/libcrypto/sha/sha256.c
227
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[11], X[11]);
lib/libcrypto/sha/sha256.c
228
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[12], X[12]);
lib/libcrypto/sha/sha256.c
229
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[13], X[13]);
lib/libcrypto/sha/sha256.c
230
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[14], X[14]);
lib/libcrypto/sha/sha256.c
231
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[15], X[15]);
lib/libcrypto/sha/sha256.c
251
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 0], X[0]);
lib/libcrypto/sha/sha256.c
252
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 1], X[1]);
lib/libcrypto/sha/sha256.c
253
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 2], X[2]);
lib/libcrypto/sha/sha256.c
254
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 3], X[3]);
lib/libcrypto/sha/sha256.c
255
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 4], X[4]);
lib/libcrypto/sha/sha256.c
256
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 5], X[5]);
lib/libcrypto/sha/sha256.c
257
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 6], X[6]);
lib/libcrypto/sha/sha256.c
258
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 7], X[7]);
lib/libcrypto/sha/sha256.c
259
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 8], X[8]);
lib/libcrypto/sha/sha256.c
260
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 9], X[9]);
lib/libcrypto/sha/sha256.c
261
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 10], X[10]);
lib/libcrypto/sha/sha256.c
262
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 11], X[11]);
lib/libcrypto/sha/sha256.c
263
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 12], X[12]);
lib/libcrypto/sha/sha256.c
264
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 13], X[13]);
lib/libcrypto/sha/sha256.c
265
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 14], X[14]);
lib/libcrypto/sha/sha256.c
266
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 15], X[15]);
lib/libcrypto/sha/sha256.c
270
ctx->h[1] += b;
lib/libcrypto/sha/sha3.c
121
ctx->state.b[j++] ^= data[i];
lib/libcrypto/sha/sha3.c
138
ctx->state.b[ctx->pt] ^= 0x06;
lib/libcrypto/sha/sha3.c
139
ctx->state.b[ctx->rsize - 1] ^= 0x80;
lib/libcrypto/sha/sha3.c
143
md[i] = ctx->state.b[i];
lib/libcrypto/sha/sha3.c
152
ctx->state.b[ctx->pt] ^= 0x1f;
lib/libcrypto/sha/sha3.c
153
ctx->state.b[ctx->rsize - 1] ^= 0x80;
lib/libcrypto/sha/sha3.c
170
out[i] = ctx->state.b[j++];
lib/libcrypto/sha/sha3_internal.h
61
uint8_t b[200]; /* State as 8 bit bytes. */
lib/libcrypto/sha/sha512.c
165
sha512_round(SHA_LONG64 *a, SHA_LONG64 *b, SHA_LONG64 *c, SHA_LONG64 *d,
lib/libcrypto/sha/sha512.c
172
T2 = Sigma0(*a) + Maj(*a, *b, *c);
lib/libcrypto/sha/sha512.c
179
*c = *b;
lib/libcrypto/sha/sha512.c
180
*b = *a;
lib/libcrypto/sha/sha512.c
189
SHA_LONG64 a, b, c, d, e, f, g, h;
lib/libcrypto/sha/sha512.c
195
b = ctx->h[1];
lib/libcrypto/sha/sha512.c
243
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[0], X[0]);
lib/libcrypto/sha/sha512.c
244
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[1], X[1]);
lib/libcrypto/sha/sha512.c
245
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[2], X[2]);
lib/libcrypto/sha/sha512.c
246
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[3], X[3]);
lib/libcrypto/sha/sha512.c
247
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[4], X[4]);
lib/libcrypto/sha/sha512.c
248
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[5], X[5]);
lib/libcrypto/sha/sha512.c
249
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[6], X[6]);
lib/libcrypto/sha/sha512.c
250
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[7], X[7]);
lib/libcrypto/sha/sha512.c
251
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[8], X[8]);
lib/libcrypto/sha/sha512.c
252
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[9], X[9]);
lib/libcrypto/sha/sha512.c
253
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[10], X[10]);
lib/libcrypto/sha/sha512.c
254
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[11], X[11]);
lib/libcrypto/sha/sha512.c
255
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[12], X[12]);
lib/libcrypto/sha/sha512.c
256
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[13], X[13]);
lib/libcrypto/sha/sha512.c
257
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[14], X[14]);
lib/libcrypto/sha/sha512.c
258
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[15], X[15]);
lib/libcrypto/sha/sha512.c
278
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 0], X[0]);
lib/libcrypto/sha/sha512.c
279
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 1], X[1]);
lib/libcrypto/sha/sha512.c
280
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 2], X[2]);
lib/libcrypto/sha/sha512.c
281
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 3], X[3]);
lib/libcrypto/sha/sha512.c
282
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 4], X[4]);
lib/libcrypto/sha/sha512.c
283
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 5], X[5]);
lib/libcrypto/sha/sha512.c
284
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 6], X[6]);
lib/libcrypto/sha/sha512.c
285
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 7], X[7]);
lib/libcrypto/sha/sha512.c
286
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 8], X[8]);
lib/libcrypto/sha/sha512.c
287
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 9], X[9]);
lib/libcrypto/sha/sha512.c
288
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 10], X[10]);
lib/libcrypto/sha/sha512.c
289
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 11], X[11]);
lib/libcrypto/sha/sha512.c
290
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 12], X[12]);
lib/libcrypto/sha/sha512.c
291
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 13], X[13]);
lib/libcrypto/sha/sha512.c
292
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 14], X[14]);
lib/libcrypto/sha/sha512.c
293
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 15], X[15]);
lib/libcrypto/sha/sha512.c
297
ctx->h[1] += b;
lib/libcrypto/sm2/sm2_za.c
102
if ((bytes = BN_num_bytes(b)) > p_bytes)
lib/libcrypto/sm2/sm2_za.c
105
BN_bn2bin(b, buf + p_bytes - bytes);
lib/libcrypto/sm2/sm2_za.c
32
BIGNUM *p, *a, *b, *xG, *yG, *xA, *yA;
lib/libcrypto/sm2/sm2_za.c
52
if ((b = BN_CTX_get(ctx)) == NULL)
lib/libcrypto/sm2/sm2_za.c
88
if (!EC_GROUP_get_curve(group, p, a, b, ctx))
lib/libcrypto/ts/ts_rsp_verify.c
756
TS_MSG_IMPRINT *b = TS_TST_INFO_get_msg_imprint(tst_info);
lib/libcrypto/ts/ts_rsp_verify.c
757
X509_ALGOR *algor_b = TS_MSG_IMPRINT_get_algo(b);
lib/libcrypto/ts/ts_rsp_verify.c
775
ret = len_a == (unsigned) ASN1_STRING_length(b->hashed_msg) &&
lib/libcrypto/ts/ts_rsp_verify.c
776
memcmp(imprint_a, ASN1_STRING_get0_data(b->hashed_msg), len_a) == 0;
lib/libcrypto/ts/ts_rsp_verify.c
787
const ASN1_INTEGER *b = TS_TST_INFO_get_nonce(tst_info);
lib/libcrypto/ts/ts_rsp_verify.c
790
if (!b) {
lib/libcrypto/ts/ts_rsp_verify.c
796
if (ASN1_INTEGER_cmp(a, b) != 0) {
lib/libcrypto/x509/by_dir.c
163
const BY_DIR_HASH * const *b)
lib/libcrypto/x509/by_dir.c
165
if ((*a)->hash > (*b)->hash)
lib/libcrypto/x509/by_dir.c
167
if ((*a)->hash < (*b)->hash)
lib/libcrypto/x509/by_dir.c
270
BUF_MEM *b = NULL;
lib/libcrypto/x509/by_dir.c
293
if ((b = BUF_MEM_new()) == NULL) {
lib/libcrypto/x509/by_dir.c
308
if (!BUF_MEM_grow(b, j)) {
lib/libcrypto/x509/by_dir.c
329
(void) snprintf(b->data, b->max, "%s/%08lx.%s%d",
lib/libcrypto/x509/by_dir.c
339
if ((X509_load_cert_file(xl, b->data,
lib/libcrypto/x509/by_dir.c
345
if ((X509_load_crl_file(xl, b->data,
lib/libcrypto/x509/by_dir.c
405
BUF_MEM_free(b);
lib/libcrypto/x509/x509.h
301
#define X509_name_cmp(a, b) X509_NAME_cmp((a), (b))
lib/libcrypto/x509/x509.h
453
int X509_ALGOR_cmp(const X509_ALGOR *a, const X509_ALGOR *b);
lib/libcrypto/x509/x509.h
745
int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b);
lib/libcrypto/x509/x509.h
748
int X509_issuer_name_cmp(const X509 *a, const X509 *b);
lib/libcrypto/x509/x509.h
751
int X509_subject_name_cmp(const X509 *a, const X509 *b);
lib/libcrypto/x509/x509.h
759
int X509_cmp(const X509 *a, const X509 *b);
lib/libcrypto/x509/x509.h
760
int X509_NAME_cmp(const X509_NAME *a, const X509_NAME *b);
lib/libcrypto/x509/x509.h
764
int X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b);
lib/libcrypto/x509/x509.h
765
int X509_CRL_match(const X509_CRL *a, const X509_CRL *b);
lib/libcrypto/x509/x509_addr.c
1309
const IPAddressFamily *b = sk_IPAddressFamily_value(addr, i + 1);
lib/libcrypto/x509/x509_addr.c
1314
if (!IPAddressFamily_afi_is_valid(b))
lib/libcrypto/x509/x509_addr.c
1317
if (IPAddressFamily_cmp(&a, &b) >= 0)
lib/libcrypto/x509/x509_addr.c
1410
IPAddressOrRange *a, *b, *merged;
lib/libcrypto/x509/x509_addr.c
1428
b = sk_IPAddressOrRange_value(aors, i + 1);
lib/libcrypto/x509/x509_addr.c
1431
!extract_min_max(b, b_min, b_max, length))
lib/libcrypto/x509/x509_addr.c
1462
IPAddressOrRange_free(b);
lib/libcrypto/x509/x509_addr.c
487
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
lib/libcrypto/x509/x509_addr.c
504
const ASN1_OCTET_STRING *b = (*b_)->addressFamily;
lib/libcrypto/x509/x509_addr.c
507
len = MINIMUM(a->length, b->length);
lib/libcrypto/x509/x509_addr.c
509
if ((cmp = memcmp(a->data, b->data, len)) != 0)
lib/libcrypto/x509/x509_addr.c
512
return a->length - b->length;
lib/libcrypto/x509/x509_addr.c
768
IPAddressOrRange_cmp(const IPAddressOrRange *a, const IPAddressOrRange *b,
lib/libcrypto/x509/x509_addr.c
788
switch (b->type) {
lib/libcrypto/x509/x509_addr.c
790
if (!addr_expand(addr_b, b->u.addressPrefix, length, 0x00))
lib/libcrypto/x509/x509_addr.c
792
prefix_len_b = addr_prefix_len(b->u.addressPrefix);
lib/libcrypto/x509/x509_addr.c
795
if (!addr_expand(addr_b, b->u.addressRange->min, length, 0x00))
lib/libcrypto/x509/x509_addr.c
813
const IPAddressOrRange *const *b)
lib/libcrypto/x509/x509_addr.c
815
return IPAddressOrRange_cmp(*a, *b, 4);
lib/libcrypto/x509/x509_addr.c
824
const IPAddressOrRange *const *b)
lib/libcrypto/x509/x509_addr.c
826
return IPAddressOrRange_cmp(*a, *b, 16);
lib/libcrypto/x509/x509_asid.c
380
const ASIdOrRange *a = *a_, *b = *b_;
lib/libcrypto/x509/x509_asid.c
387
OPENSSL_assert((b->type == ASIdOrRange_id && b->u.id != NULL) ||
lib/libcrypto/x509/x509_asid.c
388
(b->type == ASIdOrRange_range && b->u.range != NULL &&
lib/libcrypto/x509/x509_asid.c
389
b->u.range->min != NULL && b->u.range->max != NULL));
lib/libcrypto/x509/x509_asid.c
391
if (a->type == ASIdOrRange_id && b->type == ASIdOrRange_id)
lib/libcrypto/x509/x509_asid.c
392
return ASN1_INTEGER_cmp(a->u.id, b->u.id);
lib/libcrypto/x509/x509_asid.c
394
if (a->type == ASIdOrRange_range && b->type == ASIdOrRange_range) {
lib/libcrypto/x509/x509_asid.c
395
int r = ASN1_INTEGER_cmp(a->u.range->min, b->u.range->min);
lib/libcrypto/x509/x509_asid.c
397
b->u.range->max);
lib/libcrypto/x509/x509_asid.c
401
return ASN1_INTEGER_cmp(a->u.id, b->u.range->min);
lib/libcrypto/x509/x509_asid.c
403
return ASN1_INTEGER_cmp(a->u.range->min, b->u.id);
lib/libcrypto/x509/x509_asid.c
577
ASIdOrRange *a, *b;
lib/libcrypto/x509/x509_asid.c
602
b = sk_ASIdOrRange_value(choice->u.asIdsOrRanges, i + 1);
lib/libcrypto/x509/x509_asid.c
605
!extract_min_max(b, &b_min, &b_max))
lib/libcrypto/x509/x509_asid.c
677
ASIdOrRange *a, *b;
lib/libcrypto/x509/x509_asid.c
710
b = sk_ASIdOrRange_value(choice->u.asIdsOrRanges, i + 1);
lib/libcrypto/x509/x509_asid.c
713
!extract_min_max(b, &b_min, &b_max))
lib/libcrypto/x509/x509_asid.c
775
switch (b->type) {
lib/libcrypto/x509/x509_asid.c
777
b->u.id = NULL;
lib/libcrypto/x509/x509_asid.c
780
b->u.range->max = NULL;
lib/libcrypto/x509/x509_asid.c
783
ASIdOrRange_free(b);
lib/libcrypto/x509/x509_cmp.c
128
X509_issuer_name_cmp(const X509 *a, const X509 *b)
lib/libcrypto/x509/x509_cmp.c
130
return (X509_NAME_cmp(a->cert_info->issuer, b->cert_info->issuer));
lib/libcrypto/x509/x509_cmp.c
135
X509_subject_name_cmp(const X509 *a, const X509 *b)
lib/libcrypto/x509/x509_cmp.c
137
return (X509_NAME_cmp(a->cert_info->subject, b->cert_info->subject));
lib/libcrypto/x509/x509_cmp.c
142
X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b)
lib/libcrypto/x509/x509_cmp.c
144
return (X509_NAME_cmp(a->crl->issuer, b->crl->issuer));
lib/libcrypto/x509/x509_cmp.c
150
X509_CRL_match(const X509_CRL *a, const X509_CRL *b)
lib/libcrypto/x509/x509_cmp.c
152
return memcmp(a->hash, b->hash, X509_CRL_HASH_LEN);
lib/libcrypto/x509/x509_cmp.c
228
X509_cmp(const X509 *a, const X509 *b)
lib/libcrypto/x509/x509_cmp.c
232
X509_check_purpose((X509 *)b, -1, 0);
lib/libcrypto/x509/x509_cmp.c
234
return memcmp(a->hash, b->hash, X509_CERT_HASH_LEN);
lib/libcrypto/x509/x509_cmp.c
240
X509_NAME_cmp(const X509_NAME *a, const X509_NAME *b)
lib/libcrypto/x509/x509_cmp.c
250
if (!b->canon_enc || b->modified) {
lib/libcrypto/x509/x509_cmp.c
251
ret = i2d_X509_NAME((X509_NAME *)b, NULL);
lib/libcrypto/x509/x509_cmp.c
255
ret = a->canon_enclen - b->canon_enclen;
lib/libcrypto/x509/x509_cmp.c
258
return memcmp(a->canon_enc, b->canon_enc, a->canon_enclen);
lib/libcrypto/x509/x509_cmp.c
75
X509_issuer_and_serial_cmp(const X509 *a, const X509 *b)
lib/libcrypto/x509/x509_cmp.c
81
bi = b->cert_info;
lib/libcrypto/x509/x509_genn.c
352
EDIPARTYNAME_cmp(const EDIPARTYNAME *a, const EDIPARTYNAME *b)
lib/libcrypto/x509/x509_genn.c
360
if (a == NULL || b == NULL)
lib/libcrypto/x509/x509_genn.c
362
if (a->nameAssigner == NULL && b->nameAssigner != NULL)
lib/libcrypto/x509/x509_genn.c
364
if (a->nameAssigner != NULL && b->nameAssigner == NULL)
lib/libcrypto/x509/x509_genn.c
368
res = ASN1_STRING_cmp(a->nameAssigner, b->nameAssigner);
lib/libcrypto/x509/x509_genn.c
376
if (a->partyName == NULL || b->partyName == NULL)
lib/libcrypto/x509/x509_genn.c
379
return ASN1_STRING_cmp(a->partyName, b->partyName);
lib/libcrypto/x509/x509_genn.c
384
GENERAL_NAME_cmp(GENERAL_NAME *a, GENERAL_NAME *b)
lib/libcrypto/x509/x509_genn.c
388
if (!a || !b || a->type != b->type)
lib/libcrypto/x509/x509_genn.c
392
result = ASN1_STRING_cmp(a->d.x400Address, b->d.x400Address);
lib/libcrypto/x509/x509_genn.c
396
result = EDIPARTYNAME_cmp(a->d.ediPartyName, b->d.ediPartyName);
lib/libcrypto/x509/x509_genn.c
400
result = OTHERNAME_cmp(a->d.otherName, b->d.otherName);
lib/libcrypto/x509/x509_genn.c
406
result = ASN1_STRING_cmp(a->d.ia5, b->d.ia5);
lib/libcrypto/x509/x509_genn.c
410
result = X509_NAME_cmp(a->d.dirn, b->d.dirn);
lib/libcrypto/x509/x509_genn.c
414
result = ASN1_OCTET_STRING_cmp(a->d.ip, b->d.ip);
lib/libcrypto/x509/x509_genn.c
418
result = OBJ_cmp(a->d.rid, b->d.rid);
lib/libcrypto/x509/x509_genn.c
427
OTHERNAME_cmp(OTHERNAME *a, OTHERNAME *b)
lib/libcrypto/x509/x509_genn.c
431
if (!a || !b)
lib/libcrypto/x509/x509_genn.c
434
if ((result = OBJ_cmp(a->type_id, b->type_id)) != 0)
lib/libcrypto/x509/x509_genn.c
437
result = ASN1_TYPE_cmp(a->value, b->value);
lib/libcrypto/x509/x509_lu.c
124
x509_object_cmp(const X509_OBJECT * const *a, const X509_OBJECT * const *b)
lib/libcrypto/x509/x509_lu.c
128
if ((ret = (*a)->type - (*b)->type) != 0)
lib/libcrypto/x509/x509_lu.c
133
return X509_subject_name_cmp((*a)->data.x509, (*b)->data.x509);
lib/libcrypto/x509/x509_lu.c
135
return X509_CRL_cmp((*a)->data.crl, (*b)->data.crl);
lib/libcrypto/x509/x509_policy.c
218
const X509_POLICY_NODE *const *b)
lib/libcrypto/x509/x509_policy.c
220
return OBJ_cmp((*a)->policy, (*b)->policy);
lib/libcrypto/x509/x509_policy.c
319
const POLICYINFO *const *b)
lib/libcrypto/x509/x509_policy.c
321
return OBJ_cmp((*a)->policyid, (*b)->policyid);
lib/libcrypto/x509/x509_policy.c
459
const POLICY_MAPPING *const *b)
lib/libcrypto/x509/x509_policy.c
461
return OBJ_cmp((*a)->issuerDomainPolicy, (*b)->issuerDomainPolicy);
lib/libcrypto/x509/x509_policy.c
466
const POLICY_MAPPING *const *b)
lib/libcrypto/x509/x509_policy.c
468
return OBJ_cmp((*a)->subjectDomainPolicy, (*b)->subjectDomainPolicy);
lib/libcrypto/x509/x509_policy.c
863
asn1_object_cmp(const ASN1_OBJECT *const *a, const ASN1_OBJECT *const *b)
lib/libcrypto/x509/x509_policy.c
865
return OBJ_cmp(*a, *b);
lib/libcrypto/x509/x509_purp.c
347
const X509_EXTENSION *const *b)
lib/libcrypto/x509/x509_purp.c
349
return OBJ_cmp((*a)->object, (*b)->object);
lib/libcrypto/x509/x509_utl.c
1031
unsigned int flags, const char *b, size_t blen, char **peername)
lib/libcrypto/x509/x509_utl.c
1041
rv = equal(a->data, a->length, (unsigned char *)b,
lib/libcrypto/x509/x509_utl.c
1043
else if (a->length == (int)blen && !memcmp(a->data, b, blen))
lib/libcrypto/x509/x509_utl.c
1054
rv = equal(astr, astrlen, (unsigned char *)b, blen, flags);
lib/libcrypto/x509/x509_utl.c
632
sk_strcmp(const char * const *a, const char * const *b)
lib/libcrypto/x509/x509_utl.c
634
return strcmp(*a, *b);
lib/libcrypto/x509/x509_utl.c
81
static int sk_strcmp(const char * const *a, const char * const *b);
lib/libcrypto/x509/x509_utl.c
839
equal_email(const unsigned char *a, size_t a_len, const unsigned char *b,
lib/libcrypto/x509/x509_utl.c
852
if (a[pos] == '@' || b[pos] == '@') {
lib/libcrypto/x509/x509_utl.c
853
if (!equal_nocase(a + pos, a_len - pos, b + pos,
lib/libcrypto/x509/x509_utl.c
861
return equal_case(a, pos, b, pos, 0);
lib/libcrypto/x509/x509_vfy.c
1111
crl_extension_match(X509_CRL *a, X509_CRL *b, int nid)
lib/libcrypto/x509/x509_vfy.c
1125
i = X509_CRL_get_ext_by_NID(b, nid, -1);
lib/libcrypto/x509/x509_vfy.c
1128
if (X509_CRL_get_ext_by_NID(b, nid, i) != -1)
lib/libcrypto/x509/x509_vfy.c
1130
extb = X509_EXTENSION_get_data(X509_CRL_get_ext(b, i));
lib/libcrypto/x509/x509_vfy.c
1399
idp_check_dp(DIST_POINT_NAME *a, DIST_POINT_NAME *b)
lib/libcrypto/x509/x509_vfy.c
1406
if (!a || !b)
lib/libcrypto/x509/x509_vfy.c
1412
if (b->type == 1) {
lib/libcrypto/x509/x509_vfy.c
1413
if (!b->dpname)
lib/libcrypto/x509/x509_vfy.c
1415
if (!X509_NAME_cmp(a->dpname, b->dpname))
lib/libcrypto/x509/x509_vfy.c
1422
gens = b->name.fullname;
lib/libcrypto/x509/x509_vfy.c
1423
} else if (b->type == 1) {
lib/libcrypto/x509/x509_vfy.c
1424
if (!b->dpname)
lib/libcrypto/x509/x509_vfy.c
1428
nm = b->dpname;
lib/libcrypto/x509/x509_vfy.c
1447
for (j = 0; j < sk_GENERAL_NAME_num(b->name.fullname); j++) {
lib/libcrypto/x509/x509_vfy.c
1448
genb = sk_GENERAL_NAME_value(b->name.fullname, j);
lib/libcrypto/x509/x509_vpm.c
663
const X509_VERIFY_PARAM * const *b)
lib/libcrypto/x509/x509_vpm.c
665
return strcmp((*a)->name, (*b)->name);
lib/libcrypto/x509/x509v3.h
461
int GENERAL_NAME_cmp(GENERAL_NAME *a, GENERAL_NAME *b);
lib/libcrypto/x509/x509v3.h
495
int OTHERNAME_cmp(OTHERNAME *a, OTHERNAME *b);
lib/libcrypto/x509/x509v3.h
880
int X509v3_asid_subset(ASIdentifiers *a, ASIdentifiers *b);
lib/libcrypto/x509/x509v3.h
881
int X509v3_addr_subset(IPAddrBlocks *a, IPAddrBlocks *b);
lib/libcurses/base/lib_color.c
1088
NCURSES_SP_NAME(init_extended_pair) (NCURSES_SP_DCLx int pair, int f, int b)
lib/libcurses/base/lib_color.c
1090
return _nc_init_pair(SP_PARM, pair, f, b);
lib/libcurses/base/lib_color.c
1096
int r, int g, int b)
lib/libcurses/base/lib_color.c
1098
return _nc_init_color(SP_PARM, color, r, g, b);
lib/libcurses/base/lib_color.c
1104
int *r, int *g, int *b)
lib/libcurses/base/lib_color.c
1106
return _nc_color_content(SP_PARM, color, r, g, b);
lib/libcurses/base/lib_color.c
1112
int *f, int *b)
lib/libcurses/base/lib_color.c
1114
return _nc_pair_content(SP_PARM, pair, f, b);
lib/libcurses/base/lib_color.c
1135
init_extended_pair(int pair, int f, int b)
lib/libcurses/base/lib_color.c
1137
return NCURSES_SP_NAME(init_extended_pair) (CURRENT_SCREEN, pair, f, b);
lib/libcurses/base/lib_color.c
1141
init_extended_color(int color, int r, int g, int b)
lib/libcurses/base/lib_color.c
1145
r, g, b);
lib/libcurses/base/lib_color.c
1149
extended_color_content(int color, int *r, int *g, int *b)
lib/libcurses/base/lib_color.c
1153
r, g, b);
lib/libcurses/base/lib_color.c
1157
extended_pair_content(int pair, int *f, int *b)
lib/libcurses/base/lib_color.c
1159
return NCURSES_SP_NAME(extended_pair_content) (CURRENT_SCREEN, pair, f, b);
lib/libcurses/base/lib_color.c
451
rgb2hls(int r, int g, int b, int *h, int *l, int *s)
lib/libcurses/base/lib_color.c
456
if ((min = g < r ? g : r) > b)
lib/libcurses/base/lib_color.c
457
min = b;
lib/libcurses/base/lib_color.c
458
if ((max = g > r ? g : r) < b)
lib/libcurses/base/lib_color.c
459
max = b;
lib/libcurses/base/lib_color.c
478
t = (120 + ((g - b) * 60) / (max - min));
lib/libcurses/base/lib_color.c
480
t = (240 + ((b - r) * 60) / (max - min));
lib/libcurses/base/lib_color.c
561
_nc_init_pair(SCREEN *sp, int pair, int f, int b)
lib/libcurses/base/lib_color.c
568
T((T_CALLED("init_pair(%p,%d,%d,%d)"), (void *) sp, pair, f, b));
lib/libcurses/base/lib_color.c
595
if (isDefaultColor(b)) {
lib/libcurses/base/lib_color.c
596
b = COLOR_DEFAULT;
lib/libcurses/base/lib_color.c
598
} else if (!OkColorHi(b)) {
lib/libcurses/base/lib_color.c
636
|| (b < 0) || !OkColorHi(b)
lib/libcurses/base/lib_color.c
647
MakeColorPair(result, f, b);
lib/libcurses/base/lib_color.c
662
CallDriver_3(sp, td_initpair, pair, f, b);
lib/libcurses/base/lib_color.c
664
if (initialize_pair && InPalette(f) && InPalette(b)) {
lib/libcurses/base/lib_color.c
671
(int) tp[b].red, (int) tp[b].green, (int) tp[b].blue));
lib/libcurses/base/lib_color.c
679
(int) tp[b].red,
lib/libcurses/base/lib_color.c
680
(int) tp[b].green,
lib/libcurses/base/lib_color.c
681
(int) tp[b].blue));
lib/libcurses/base/lib_color.c
692
NCURSES_COLOR_T b)
lib/libcurses/base/lib_color.c
694
return _nc_init_pair(SP_PARM, pair, f, b);
lib/libcurses/base/lib_color.c
699
init_pair(NCURSES_COLOR_T pair, NCURSES_COLOR_T f, NCURSES_COLOR_T b)
lib/libcurses/base/lib_color.c
701
return NCURSES_SP_NAME(init_pair) (CURRENT_SCREEN, pair, f, b);
lib/libcurses/base/lib_color.c
708
_nc_init_color(SCREEN *sp, int color, int r, int g, int b)
lib/libcurses/base/lib_color.c
716
r, g, b));
lib/libcurses/base/lib_color.c
726
&& (okRGB(r) && okRGB(g) && okRGB(b))) {
lib/libcurses/base/lib_color.c
731
sp->_color_table[color].b = b;
lib/libcurses/base/lib_color.c
734
rgb2hls(r, g, b,
lib/libcurses/base/lib_color.c
741
sp->_color_table[color].blue = b;
lib/libcurses/base/lib_color.c
745
CallDriver_4(sp, td_initcolor, color, r, g, b);
lib/libcurses/base/lib_color.c
748
TIPARM_4(initialize_color, color, r, g, b));
lib/libcurses/base/lib_color.c
762
NCURSES_COLOR_T b)
lib/libcurses/base/lib_color.c
764
return _nc_init_color(SP_PARM, color, r, g, b);
lib/libcurses/base/lib_color.c
772
NCURSES_COLOR_T b)
lib/libcurses/base/lib_color.c
774
return NCURSES_SP_NAME(init_color) (CURRENT_SCREEN, color, r, g, b);
lib/libcurses/base/lib_color.c
831
_nc_color_content(SCREEN *sp, int color, int *r, int *g, int *b)
lib/libcurses/base/lib_color.c
840
(void *) b));
lib/libcurses/base/lib_color.c
878
if (b)
lib/libcurses/base/lib_color.c
879
*b = c_b;
lib/libcurses/base/lib_color.c
891
if (b)
lib/libcurses/base/lib_color.c
892
*b = 0;
lib/libcurses/base/lib_color.c
902
NCURSES_COLOR_T *b)
lib/libcurses/base/lib_color.c
909
*b = limit_COLOR(my_b);
lib/libcurses/base/lib_color.c
919
NCURSES_COLOR_T *b)
lib/libcurses/base/lib_color.c
921
return NCURSES_SP_NAME(color_content) (CURRENT_SCREEN, color, r, g, b);
lib/libcurses/base/lib_color.c
926
_nc_pair_content(SCREEN *sp, int pair, int *f, int *b)
lib/libcurses/base/lib_color.c
934
(void *) b));
lib/libcurses/base/lib_color.c
954
if (b)
lib/libcurses/base/lib_color.c
955
*b = bg;
lib/libcurses/base/lib_color.c
97
#define DATA(r,g,b) {r,g,b, 0,0,0, 0}
lib/libcurses/base/lib_color.c
970
NCURSES_COLOR_T *b)
lib/libcurses/base/lib_color.c
976
*b = limit_COLOR(my_b);
lib/libcurses/base/lib_color.c
983
pair_content(NCURSES_COLOR_T pair, NCURSES_COLOR_T *f, NCURSES_COLOR_T *b)
lib/libcurses/base/lib_color.c
985
return NCURSES_SP_NAME(pair_content) (CURRENT_SCREEN, pair, f, b);
lib/libcurses/base/lib_mouse.c
1040
int b;
lib/libcurses/base/lib_mouse.c
1043
for (b = 1; b <= MAX_BUTTONS; ++b) {
lib/libcurses/base/lib_mouse.c
1044
if (!(sp->_mouse_bstate & MASK_PRESS(b)))
lib/libcurses/base/lib_mouse.c
1045
eventp->bstate &= ~MASK_RELEASE(b);
lib/libcurses/base/lib_mouse.c
1312
int b = data.params[0];
lib/libcurses/base/lib_mouse.c
1313
int b3 = 1 + (b & 3);
lib/libcurses/base/lib_mouse.c
1314
int wheel = ((b & 64) == 64);
lib/libcurses/base/lib_mouse.c
1316
if (b >= 132) {
lib/libcurses/base/lib_mouse.c
1318
} else if (b >= 128) {
lib/libcurses/base/lib_mouse.c
1319
b3 = (b - 120); /* buttons 8-11 */
lib/libcurses/base/lib_mouse.c
1320
} else if (b >= 64) {
lib/libcurses/base/lib_mouse.c
1321
b3 = (b - 60); /* buttons 6-7 */
lib/libcurses/base/lib_mouse.c
1326
(void) handle_wheel(sp, eventp, b, wheel);
lib/libcurses/base/lib_mouse.c
1339
if (b & 4) {
lib/libcurses/base/lib_mouse.c
1342
if (b & 8) {
lib/libcurses/base/lib_mouse.c
1345
if (b & 16) {
lib/libcurses/base/lib_mouse.c
1393
int b;
lib/libcurses/base/lib_mouse.c
1395
for (b = 4; b <= MAX_BUTTONS; ++b) {
lib/libcurses/base/lib_mouse.c
1396
if ((eventp->bstate & MASK_PRESS(b))) {
lib/libcurses/base/lib_mouse.c
1511
int b;
lib/libcurses/base/lib_mouse.c
1581
for (b = 1; b <= MAX_BUTTONS; ++b) {
lib/libcurses/base/lib_mouse.c
1582
if (!MASK_CHANGED(b)) {
lib/libcurses/base/lib_mouse.c
1590
for (b = 1; b <= MAX_BUTTONS; ++b) {
lib/libcurses/base/lib_mouse.c
1591
if ((sp->_mouse_mask2 & MASK_CLICK(b))
lib/libcurses/base/lib_mouse.c
1592
&& (ep->bstate & MASK_PRESS(b))) {
lib/libcurses/base/lib_mouse.c
1593
next->bstate &= ~MASK_RELEASE(b);
lib/libcurses/base/lib_mouse.c
1594
next->bstate |= MASK_CLICK(b);
lib/libcurses/base/lib_mouse.c
1671
for (b = 1; b <= MAX_BUTTONS; ++b) {
lib/libcurses/base/lib_mouse.c
1672
if ((sp->_mouse_mask2 & MASK_DOUBLE_CLICK(b))
lib/libcurses/base/lib_mouse.c
1673
&& (ep->bstate & MASK_CLICK(b))
lib/libcurses/base/lib_mouse.c
1674
&& (next->bstate & MASK_CLICK(b))) {
lib/libcurses/base/lib_mouse.c
1675
next->bstate &= ~MASK_CLICK(b);
lib/libcurses/base/lib_mouse.c
1676
next->bstate |= MASK_DOUBLE_CLICK(b);
lib/libcurses/base/lib_mouse.c
1689
for (b = 1; b <= MAX_BUTTONS; ++b) {
lib/libcurses/base/lib_mouse.c
1690
if ((sp->_mouse_mask2 & MASK_TRIPLE_CLICK(b))
lib/libcurses/base/lib_mouse.c
1691
&& (ep->bstate & MASK_DOUBLE_CLICK(b))
lib/libcurses/base/lib_mouse.c
1692
&& (next->bstate & MASK_CLICK(b))) {
lib/libcurses/base/lib_mouse.c
1693
next->bstate &= ~MASK_CLICK(b);
lib/libcurses/base/lib_mouse.c
1694
next->bstate |= MASK_TRIPLE_CLICK(b);
lib/libcurses/base/lib_mouse.c
1939
int b;
lib/libcurses/base/lib_mouse.c
1962
for (b = 1; b <= MAX_BUTTONS; ++b) {
lib/libcurses/base/lib_mouse.c
1963
if (SP_PARM->_mouse_mask2 & MASK_TRIPLE_CLICK(b))
lib/libcurses/base/lib_mouse.c
1964
SP_PARM->_mouse_mask2 |= MASK_DOUBLE_CLICK(b);
lib/libcurses/base/lib_mouse.c
1965
if (SP_PARM->_mouse_mask2 & MASK_DOUBLE_CLICK(b))
lib/libcurses/base/lib_mouse.c
1966
SP_PARM->_mouse_mask2 |= MASK_CLICK(b);
lib/libcurses/base/lib_mouse.c
1967
if (SP_PARM->_mouse_mask2 & MASK_CLICK(b))
lib/libcurses/base/lib_mouse.c
1968
SP_PARM->_mouse_mask2 |= (MASK_PRESS(b) |
lib/libcurses/base/lib_mouse.c
1969
MASK_RELEASE(b));
lib/libcurses/base/new_pair.c
134
compare_data(const void *a, const void *b)
lib/libcurses/base/new_pair.c
137
const colorpair_t *q = (const colorpair_t *) b;
lib/libcurses/base/new_pair.c
357
alloc_pair(int f, int b)
lib/libcurses/base/new_pair.c
359
return NCURSES_SP_NAME(alloc_pair) (CURRENT_SCREEN, f, b);
lib/libcurses/base/new_pair.c
363
find_pair(int f, int b)
lib/libcurses/base/new_pair.c
365
return NCURSES_SP_NAME(find_pair) (CURRENT_SCREEN, f, b);
lib/libcurses/curses.h
1306
#define setscrreg(t,b) wsetscrreg(stdscr,(t),(b))
lib/libcurses/curses.h
1425
#define vsscanf(a,b,c) _nc_vsscanf(a,b,c)
lib/libcurses/curses.h
1448
#define wgetscrreg(win,t,b) (NCURSES_OK_ADDR(win) ? (*(t) = (win)->_regtop, *(b) = (win)->_regbottom, OK) : ERR)
lib/libcurses/curses.h
1862
#define border_set(l,r,t,b,tl,tr,bl,br) wborder_set(stdscr,(l),(r),(t),(b),tl,tr,bl,br)
lib/libcurses/curses.h
1945
#define NCURSES_MOUSE_MASK(b,m) ((m) << (((b) - 1) * 5))
lib/libcurses/curses.h
1947
#define NCURSES_MOUSE_MASK(b,m) ((m) << (((b) - 1) * 6))
lib/libcurses/curses.priv.h
1298
#define min(a,b) ((a) > (b) ? (b) : (a))
lib/libcurses/curses.priv.h
1302
#define max(a,b) ((a) < (b) ? (b) : (a))
lib/libcurses/curses.priv.h
1394
#define CharEq(a,b) (((a).attr == (b).attr) \
lib/libcurses/curses.priv.h
1395
&& (a).chars[0] == (b).chars[0] \
lib/libcurses/curses.priv.h
1396
&& (a).chars[1] == (b).chars[1] \
lib/libcurses/curses.priv.h
1397
&& (a).chars[2] == (b).chars[2] \
lib/libcurses/curses.priv.h
1398
&& (a).chars[3] == (b).chars[3] \
lib/libcurses/curses.priv.h
1399
&& (a).chars[4] == (b).chars[4] \
lib/libcurses/curses.priv.h
1400
if_EXT_COLORS(&& (a).ext_color == (b).ext_color))
lib/libcurses/curses.priv.h
1404
#define CharEq(a,b) (!memcmp(&(a), &(b), sizeof(a)))
lib/libcurses/curses.priv.h
1484
#define CharEq(a,b) ((a) == (b))
lib/libcurses/curses.priv.h
392
int r, g, b; /* params to init_color() */
lib/libcurses/curses.priv.h
533
#define SameAttrOf(a,b) (AttrOf(a) == AttrOf(b) && GetPair(a) == GetPair(b))
lib/libcurses/curses.priv.h
553
#define SameAttrOf(a,b) (AttrOf(a) == AttrOf(b))
lib/libcurses/curses.priv.h
675
# define sigprocmask(a, b, c) _nc_sigprocmask(a, b, c)
lib/libcurses/curses.priv.h
698
# define sigprocmask(a, b, c) _nc_sigprocmask(a, b, c)
lib/libcurses/nc_tparm.h
58
#define TPARM_9(a,b,c,d,e,f,g,h,i,j) tparm(a,TPARM_N(b),TPARM_N(c),TPARM_N(d),TPARM_N(e),TPARM_N(f),TPARM_N(g),TPARM_N(h),TPARM_N(i),TPARM_N(j))
lib/libcurses/nc_tparm.h
61
#define TPARM_8(a,b,c,d,e,f,g,h,i) tparm(a,TPARM_N(b),TPARM_N(c),TPARM_N(d),TPARM_N(e),TPARM_N(f),TPARM_N(g),TPARM_N(h),TPARM_N(i))
lib/libcurses/nc_tparm.h
62
#define TPARM_7(a,b,c,d,e,f,g,h) tparm(a,TPARM_N(b),TPARM_N(c),TPARM_N(d),TPARM_N(e),TPARM_N(f),TPARM_N(g),TPARM_N(h))
lib/libcurses/nc_tparm.h
63
#define TPARM_6(a,b,c,d,e,f,g) tparm(a,TPARM_N(b),TPARM_N(c),TPARM_N(d),TPARM_N(e),TPARM_N(f),TPARM_N(g))
lib/libcurses/nc_tparm.h
64
#define TPARM_5(a,b,c,d,e,f) tparm(a,TPARM_N(b),TPARM_N(c),TPARM_N(d),TPARM_N(e),TPARM_N(f))
lib/libcurses/nc_tparm.h
65
#define TPARM_4(a,b,c,d,e) tparm(a,TPARM_N(b),TPARM_N(c),TPARM_N(d),TPARM_N(e))
lib/libcurses/nc_tparm.h
66
#define TPARM_3(a,b,c,d) tparm(a,TPARM_N(b),TPARM_N(c),TPARM_N(d))
lib/libcurses/nc_tparm.h
67
#define TPARM_2(a,b,c) tparm(a,TPARM_N(b),TPARM_N(c))
lib/libcurses/nc_tparm.h
68
#define TPARM_1(a,b) tparm(a,TPARM_N(b))
lib/libcurses/nc_tparm.h
71
#define TPARM_8(a,b,c,d,e,f,g,h,i) TPARM_9(a,b,c,d,e,f,g,h,i,0)
lib/libcurses/nc_tparm.h
72
#define TPARM_7(a,b,c,d,e,f,g,h) TPARM_8(a,b,c,d,e,f,g,h,0)
lib/libcurses/nc_tparm.h
73
#define TPARM_6(a,b,c,d,e,f,g) TPARM_7(a,b,c,d,e,f,g,0)
lib/libcurses/nc_tparm.h
74
#define TPARM_5(a,b,c,d,e,f) TPARM_6(a,b,c,d,e,f,0)
lib/libcurses/nc_tparm.h
75
#define TPARM_4(a,b,c,d,e) TPARM_5(a,b,c,d,e,0)
lib/libcurses/nc_tparm.h
76
#define TPARM_3(a,b,c,d) TPARM_4(a,b,c,d,0)
lib/libcurses/nc_tparm.h
77
#define TPARM_2(a,b,c) TPARM_3(a,b,c,0)
lib/libcurses/nc_tparm.h
78
#define TPARM_1(a,b) TPARM_2(a,b,0)
lib/libcurses/nc_tparm.h
85
#define TIPARM_2(s,a,b) _nc_tiparm(2,s,a,b)
lib/libcurses/nc_tparm.h
86
#define TIPARM_3(s,a,b,c) _nc_tiparm(3,s,a,b,c)
lib/libcurses/nc_tparm.h
87
#define TIPARM_4(s,a,b,c,d) _nc_tiparm(4,s,a,b,c,d)
lib/libcurses/nc_tparm.h
88
#define TIPARM_5(s,a,b,c,d,e) _nc_tiparm(5,s,a,b,c,d,e)
lib/libcurses/nc_tparm.h
89
#define TIPARM_6(s,a,b,c,d,e,f) _nc_tiparm(6,s,a,b,c,d,e,f)
lib/libcurses/nc_tparm.h
90
#define TIPARM_7(s,a,b,c,d,e,f,g) _nc_tiparm(7,s,a,b,c,d,e,f,g)
lib/libcurses/nc_tparm.h
91
#define TIPARM_8(s,a,b,c,d,e,f,g,h) _nc_tiparm(8,s,a,b,c,d,e,f,g,h)
lib/libcurses/nc_tparm.h
92
#define TIPARM_9(s,a,b,c,d,e,f,g,h,i) _nc_tiparm(9,s,a,b,c,d,e,f,g,h,i)
lib/libcurses/new_pair.h
104
#define MakeColorPair(target,f,b) target.fg = f, target.bg = b
lib/libcurses/new_pair.h
105
#define isSamePair(a,b) ((a).fg == (b).fg && (a).bg == (b).bg)
lib/libcurses/tinfo/add_tries.c
49
#define CMP_TRY(a,b) ((a)? (a == b) : (b == 128))
lib/libcurses/tinfo/alloc_ttype.c
56
merge_names(char **dst, char **a, int na, char **b, int nb)
lib/libcurses/tinfo/alloc_ttype.c
60
int cmp = strcmp(*a, *b);
lib/libcurses/tinfo/alloc_ttype.c
65
dst[n++] = *b++;
lib/libcurses/tinfo/alloc_ttype.c
69
a++, b++;
lib/libcurses/tinfo/alloc_ttype.c
77
dst[n++] = *b++;
lib/libcurses/tinfo/lib_acs.c
188
#define PCH_KLUDGE(a,b) (a != 0 && b != 0 && !strcmp(a,b))
lib/libcurses/tinfo/lib_termcap.c
219
same_tcname(const char *a, const char *b)
lib/libcurses/tinfo/lib_termcap.c
221
bool code = SameCap(a, b);
lib/libcurses/tinfo/lib_termcap.c
222
fprintf(stderr, "compare(%s,%s) %s\n", a, b, code ? "same" : "diff");
lib/libcurses/tinfo/lib_termcap.c
227
#define same_tcname(a,b) SameCap(a,b)
lib/libcurses/tinfo/lib_termcap.c
75
#define SameCap(a,b) (((a)[0] == (b)[0]) && ((a)[1] == (b)[1]))
lib/libcurses/tinfo/lib_ti.c
46
same_name(const char *a, const char *b)
lib/libcurses/tinfo/lib_ti.c
48
fprintf(stderr, "compare(%s,%s)\n", a, b);
lib/libcurses/tinfo/lib_ti.c
49
return !strcmp(a, b);
lib/libcurses/tinfo/lib_ti.c
52
#define same_name(a,b) !strcmp(a,b)
lib/libcurses/tinfo/lib_tparm.c
158
const char *b = *(char *const *) q;
lib/libcurses/tinfo/lib_tparm.c
159
return strcmp(a, b);
lib/libcurses/tinfo/lib_win32con.c
1029
BOOL b;
lib/libcurses/tinfo/lib_win32con.c
1040
while ((b = ReadConsoleInput(hdl, &inp_rec, 1, &nRead))) {
lib/libcurses/tinfo/lib_win32con.c
1041
if (b && nRead > 0) {
lib/libcurses/tinfo/lib_win32con.c
1135
BOOL b;
lib/libcurses/tinfo/lib_win32con.c
1194
b = AllocConsole();
lib/libcurses/tinfo/lib_win32con.c
1196
if (!b)
lib/libcurses/tinfo/lib_win32con.c
1197
b = AttachConsole(ATTACH_PARENT_PROCESS);
lib/libcurses/tinfo/lib_win32con.c
839
BOOL b;
lib/libcurses/tinfo/lib_win32con.c
879
b = GetNumberOfConsoleInputEvents(hdl, &nRead);
lib/libcurses/tinfo/lib_win32con.c
880
if (!b) {
lib/libcurses/tinfo/lib_win32con.c
883
if (isNoDelay && b) {
lib/libcurses/tinfo/lib_win32con.c
921
if (b && nRead > 0) {
lib/libcurses/tinfo/lib_win32con.c
922
b = PeekConsoleInput(hdl, &inp_rec, 1, &nRead);
lib/libcurses/tinfo/lib_win32con.c
923
if (!b) {
lib/libcurses/tinfo/lib_win32con.c
926
if (b && nRead > 0) {
lib/libcurses/tinfo/tinfo_driver.c
1094
#define PCH_KLUDGE(a,b) (a != 0 && b != 0 && !strcmp(a,b))
lib/libcurses/tinfo/tinfo_driver.c
766
drv_initpair(TERMINAL_CONTROL_BLOCK * TCB, int pair, int f, int b)
lib/libcurses/tinfo/tinfo_driver.c
773
if ((initialize_pair != NULL) && InPalette(f) && InPalette(b)) {
lib/libcurses/tinfo/tinfo_driver.c
780
tp[b].red, tp[b].green, tp[b].blue));
lib/libcurses/tinfo/tinfo_driver.c
786
tp[b].red, tp[b].green, tp[b].blue));
lib/libcurses/tinfo/tinfo_driver.c
812
int color, int r, int g, int b)
lib/libcurses/tinfo/tinfo_driver.c
819
TIPARM_4(initialize_color, color, r, g, b));
lib/libcurses/tinfo/trim_sgr0.c
131
similar_sgr(char *a, char *b)
lib/libcurses/tinfo/trim_sgr0.c
134
if (a != 0 && b != 0) {
lib/libcurses/tinfo/trim_sgr0.c
136
int csi_b = is_csi(b);
lib/libcurses/tinfo/trim_sgr0.c
142
_nc_visbuf2(2, b)));
lib/libcurses/tinfo/trim_sgr0.c
145
b += csi_b;
lib/libcurses/tinfo/trim_sgr0.c
146
if (*a != *b) {
lib/libcurses/tinfo/trim_sgr0.c
148
b = skip_zero(b);
lib/libcurses/tinfo/trim_sgr0.c
152
len_b = strlen(b);
lib/libcurses/tinfo/trim_sgr0.c
155
result = (strncmp(a, b, len_b) == 0);
lib/libcurses/tinfo/trim_sgr0.c
157
result = (strncmp(a, b, len_a) == 0);
lib/libcurses/tinfo/trim_sgr0.c
161
_nc_visbuf2(2, b)));
lib/libcurses/tty/tty_update.c
1276
#define check_xmc_transition(sp, a, b) \
lib/libcurses/tty/tty_update.c
1277
((((a)->attr ^ (b)->attr) & ~((a)->attr) & (sp)->_xmc_triggers) != 0)
lib/libcurses/tty/tty_update.c
1278
#define xmc_turn_on(sp,a,b) check_xmc_transition(sp,&(a), &(b))
lib/libcurses/tty/tty_update.c
1280
#define xmc_turn_on(sp,a,b) ((((a)^(b)) & ~(a) & (sp)->_xmc_triggers) != 0)
lib/libcurses/tty/tty_update.c
1284
#define xmc_turn_off(sp,a,b) xmc_turn_on(sp,b,a)
lib/libcurses/tty/tty_update.c
2174
SP_PARM->_color_table[n].b);
lib/libedit/TEST/tc1.c
64
static char b[] = "Edit> ";
lib/libedit/TEST/tc1.c
66
return (continuation ? b : a);
lib/libedit/history.c
70
#define ct_decode_string(s, b) (s)
lib/libedit/history.c
71
#define ct_encode_string(s, b) (s)
lib/libedit/keymacro.c
619
if (b < eb) \
lib/libedit/keymacro.c
620
*b++ = c; \
lib/libedit/keymacro.c
622
b++
lib/libedit/keymacro.c
630
char *b = buf, *eb = b + len;
lib/libedit/keymacro.c
633
b = buf;
lib/libedit/keymacro.c
647
ssize_t n = ct_encode_char(b, (size_t)(eb - b), *p2++);
lib/libedit/keymacro.c
651
b += n;
lib/libedit/keymacro.c
659
if ((size_t)(b - buf) >= len)
lib/libedit/keymacro.c
661
return (size_t)(b - buf);
lib/libedit/parse.c
276
el_bindings_t *b;
lib/libedit/parse.c
279
for (b = el->el_map.help, i = 0; i < el->el_map.nfunc; i++)
lib/libedit/parse.c
280
if (wcscmp(b[i].name, cmd) == 0)
lib/libedit/parse.c
281
return b[i].func;
lib/libedit/readline.c
2148
char **list, *match, *a, *b;
lib/libedit/readline.c
2176
for (i = 1, a = list[i]; i < len - 1; i++, a = b) {
lib/libedit/readline.c
2177
b = list[i + 1];
lib/libedit/readline.c
2178
for (j = 0; a[j] && a[j] == b[j]; j++)
lib/libedit/refresh.c
358
wchar_t *a, *b;
lib/libedit/refresh.c
373
b = d + dlen - 1;
lib/libedit/refresh.c
374
a = b - num;
lib/libedit/refresh.c
376
*b-- = *a--;
lib/libedit/refresh.c
408
wchar_t *a, *b;
lib/libedit/refresh.c
422
b = d + dat;
lib/libedit/refresh.c
423
a = b + num;
lib/libedit/refresh.c
425
*b++ = *a++;
lib/libedit/refresh.c
438
re__strncopy(wchar_t *a, wchar_t *b, size_t n)
lib/libedit/refresh.c
441
while (n-- && *b)
lib/libedit/refresh.c
442
*a++ = *b++;
lib/libedit/refresh.c
60
#define ELRE_ASSERT(a, b, c) do \
lib/libedit/refresh.c
62
(void) fprintf b; \
lib/libedit/refresh.c
66
#define ELRE_DEBUG(a, b) ELRE_ASSERT(a,b,;)
lib/libedit/refresh.c
81
#define ELRE_ASSERT(a, b, c)
lib/libedit/refresh.c
82
#define ELRE_DEBUG(a, b)
lib/libedit/terminal.c
413
wchar_t **b;
lib/libedit/terminal.c
416
b = calloc(c->v + 1, sizeof(*b));
lib/libedit/terminal.c
417
if (b == NULL)
lib/libedit/terminal.c
420
b[i] = calloc(c->h + 1, sizeof(**b));
lib/libedit/terminal.c
421
if (b[i] == NULL) {
lib/libedit/terminal.c
423
free(b[i]);
lib/libedit/terminal.c
424
free(b);
lib/libedit/terminal.c
428
b[c->v] = NULL;
lib/libedit/terminal.c
429
el->el_display = b;
lib/libedit/terminal.c
431
b = calloc(c->v + 1, sizeof(*b));
lib/libedit/terminal.c
432
if (b == NULL)
lib/libedit/terminal.c
435
b[i] = calloc(c->h + 1, sizeof(**b));
lib/libedit/terminal.c
436
if (b[i] == NULL) {
lib/libedit/terminal.c
438
free(b[i]);
lib/libedit/terminal.c
439
free(b);
lib/libedit/terminal.c
443
b[c->v] = NULL;
lib/libedit/terminal.c
444
el->el_vdisplay = b;
lib/libedit/terminal.c
458
wchar_t **b;
lib/libedit/terminal.c
461
b = el->el_display;
lib/libedit/terminal.c
463
if (b != NULL) {
lib/libedit/terminal.c
464
for (bufp = b; *bufp != NULL; bufp++)
lib/libedit/terminal.c
466
free(b);
lib/libedit/terminal.c
468
b = el->el_vdisplay;
lib/libedit/terminal.c
470
if (b != NULL) {
lib/libedit/terminal.c
471
for (bufp = b; *bufp != NULL; bufp++)
lib/libedit/terminal.c
473
free(b);
lib/libevent/log.h
33
#define EV_CHECK_FMT(a,b) __attribute__((format(printf, a, b)))
lib/libevent/log.h
35
#define EV_CHECK_FMT(a,b)
lib/libevent/min_heap.h
42
static inline int min_heap_elem_greater(struct event * a, struct event * b);
lib/libevent/min_heap.h
54
min_heap_elem_greater(struct event * a, struct event * b)
lib/libevent/min_heap.h
56
return timercmp(&a->ev_timeout, &b->ev_timeout, >);
lib/libexpat/lib/siphash.h
111
#define SIP_ROTL(x, b) (uint64_t)(((x) << (b)) | ((x) >> (64 - (b))))
lib/libexpat/lib/siphash.h
232
uint64_t b = (H->c + left) << 56;
lib/libexpat/lib/siphash.h
236
b |= (uint64_t)H->buf[6] << 48;
lib/libexpat/lib/siphash.h
239
b |= (uint64_t)H->buf[5] << 40;
lib/libexpat/lib/siphash.h
242
b |= (uint64_t)H->buf[4] << 32;
lib/libexpat/lib/siphash.h
245
b |= (uint64_t)H->buf[3] << 24;
lib/libexpat/lib/siphash.h
248
b |= (uint64_t)H->buf[2] << 16;
lib/libexpat/lib/siphash.h
251
b |= (uint64_t)H->buf[1] << 8;
lib/libexpat/lib/siphash.h
254
b |= (uint64_t)H->buf[0] << 0;
lib/libexpat/lib/siphash.h
260
H->v3 ^= b;
lib/libexpat/lib/siphash.h
262
H->v0 ^= b;
lib/libexpat/lib/xmlparse.c
1634
BINDING *b = bindings;
lib/libexpat/lib/xmlparse.c
1636
b->nextTagBinding = parser->m_freeBindingList;
lib/libexpat/lib/xmlparse.c
1637
parser->m_freeBindingList = b;
lib/libexpat/lib/xmlparse.c
1917
BINDING *b = bindings;
lib/libexpat/lib/xmlparse.c
1918
if (! b)
lib/libexpat/lib/xmlparse.c
1920
bindings = b->nextTagBinding;
lib/libexpat/lib/xmlparse.c
1921
FREE(parser, b->uri);
lib/libexpat/lib/xmlparse.c
1922
FREE(parser, b);
lib/libexpat/lib/xmlparse.c
217
#define EXPAT_MIN(a, b) (((a) < (b)) ? (a) : (b))
lib/libexpat/lib/xmlparse.c
2991
#define V1(a, b, c) XML_L(#a) XML_L(".") XML_L(#b) XML_L(".") XML_L(#c)
lib/libexpat/lib/xmlparse.c
2992
#define V2(a, b, c) XML_L("expat_") V1(a, b, c)
lib/libexpat/lib/xmlparse.c
3629
BINDING *b = tag->bindings;
lib/libexpat/lib/xmlparse.c
3632
b->prefix->name);
lib/libexpat/lib/xmlparse.c
3634
b->nextTagBinding = parser->m_freeBindingList;
lib/libexpat/lib/xmlparse.c
3635
parser->m_freeBindingList = b;
lib/libexpat/lib/xmlparse.c
3636
b->prefix->binding = b->prevPrefixBinding;
lib/libexpat/lib/xmlparse.c
3803
BINDING *b = bindings;
lib/libexpat/lib/xmlparse.c
3809
parser->m_endNamespaceDeclHandler(parser->m_handlerArg, b->prefix->name);
lib/libexpat/lib/xmlparse.c
3812
b->nextTagBinding = parser->m_freeBindingList;
lib/libexpat/lib/xmlparse.c
3813
parser->m_freeBindingList = b;
lib/libexpat/lib/xmlparse.c
3814
b->prefix->binding = b->prevPrefixBinding;
lib/libexpat/lib/xmlparse.c
4113
const BINDING *b;
lib/libexpat/lib/xmlparse.c
4140
b = id->prefix->binding;
lib/libexpat/lib/xmlparse.c
4141
if (! b)
lib/libexpat/lib/xmlparse.c
4144
for (j = 0; j < (unsigned int)b->uriLen; j++) {
lib/libexpat/lib/xmlparse.c
4145
const XML_Char c = b->uri[j];
lib/libexpat/lib/xmlparse.c
4150
sip24_update(&sip_state, b->uri, b->uriLen * sizeof(XML_Char));
lib/libexpat/lib/xmlparse.c
4189
s = b->prefix->name;
lib/libexpat/lib/xmlparse.c
4438
BINDING *b;
lib/libexpat/lib/xmlparse.c
4501
b = parser->m_freeBindingList;
lib/libexpat/lib/xmlparse.c
4502
if (len > b->uriAlloc) {
lib/libexpat/lib/xmlparse.c
4519
= REALLOC(parser, b->uri, sizeof(XML_Char) * (len + EXPAND_SPARE));
lib/libexpat/lib/xmlparse.c
4522
b->uri = temp;
lib/libexpat/lib/xmlparse.c
4523
b->uriAlloc = len + EXPAND_SPARE;
lib/libexpat/lib/xmlparse.c
4525
parser->m_freeBindingList = b->nextTagBinding;
lib/libexpat/lib/xmlparse.c
4527
b = MALLOC(parser, sizeof(BINDING));
lib/libexpat/lib/xmlparse.c
4528
if (! b)
lib/libexpat/lib/xmlparse.c
4545
b->uri = MALLOC(parser, sizeof(XML_Char) * (len + EXPAND_SPARE));
lib/libexpat/lib/xmlparse.c
4546
if (! b->uri) {
lib/libexpat/lib/xmlparse.c
4547
FREE(parser, b);
lib/libexpat/lib/xmlparse.c
4550
b->uriAlloc = len + EXPAND_SPARE;
lib/libexpat/lib/xmlparse.c
4552
b->uriLen = len;
lib/libexpat/lib/xmlparse.c
4553
memcpy(b->uri, uri, len * sizeof(XML_Char));
lib/libexpat/lib/xmlparse.c
4555
b->uri[len - 1] = parser->m_namespaceSeparator;
lib/libexpat/lib/xmlparse.c
4556
b->prefix = prefix;
lib/libexpat/lib/xmlparse.c
4557
b->attId = attId;
lib/libexpat/lib/xmlparse.c
4558
b->prevPrefixBinding = prefix->binding;
lib/libexpat/lib/xmlparse.c
4563
prefix->binding = b;
lib/libexpat/lib/xmlparse.c
4564
b->nextTagBinding = *bindingsPtr;
lib/libexpat/lib/xmlparse.c
4565
*bindingsPtr = b;
lib/libfido2/src/blob.c
100
fido_blob_encode(const fido_blob_t *b)
lib/libfido2/src/blob.c
102
if (b == NULL || b->ptr == NULL)
lib/libfido2/src/blob.c
105
return cbor_build_bytestring(b->ptr, b->len);
lib/libfido2/src/blob.c
109
fido_blob_decode(const cbor_item_t *item, fido_blob_t *b)
lib/libfido2/src/blob.c
111
return cbor_bytestring_copy(item, &b->ptr, &b->len);
lib/libfido2/src/blob.c
115
fido_blob_is_empty(const fido_blob_t *b)
lib/libfido2/src/blob.c
117
return b->ptr == NULL || b->len == 0;
lib/libfido2/src/blob.c
121
fido_blob_serialise(fido_blob_t *b, const cbor_item_t *item)
lib/libfido2/src/blob.c
125
if (!fido_blob_is_empty(b))
lib/libfido2/src/blob.c
127
if ((b->len = cbor_serialize_alloc(item, &b->ptr, &alloc)) == 0) {
lib/libfido2/src/blob.c
128
b->ptr = NULL;
lib/libfido2/src/blob.c
16
fido_blob_reset(fido_blob_t *b)
lib/libfido2/src/blob.c
18
freezero(b->ptr, b->len);
lib/libfido2/src/blob.c
19
explicit_bzero(b, sizeof(*b));
lib/libfido2/src/blob.c
23
fido_blob_set(fido_blob_t *b, const u_char *ptr, size_t len)
lib/libfido2/src/blob.c
25
fido_blob_reset(b);
lib/libfido2/src/blob.c
33
if ((b->ptr = malloc(len)) == NULL) {
lib/libfido2/src/blob.c
38
memcpy(b->ptr, ptr, len);
lib/libfido2/src/blob.c
39
b->len = len;
lib/libfido2/src/blob.c
45
fido_blob_append(fido_blob_t *b, const u_char *ptr, size_t len)
lib/libfido2/src/blob.c
54
if (SIZE_MAX - b->len < len) {
lib/libfido2/src/blob.c
58
if ((tmp = realloc(b->ptr, b->len + len)) == NULL) {
lib/libfido2/src/blob.c
62
b->ptr = tmp;
lib/libfido2/src/blob.c
63
memcpy(&b->ptr[b->len], ptr, len);
lib/libfido2/src/blob.c
64
b->len += len;
lib/libfido2/src/blob.c
72
fido_blob_t *b;
lib/libfido2/src/blob.c
74
if (bp == NULL || (b = *bp) == NULL)
lib/libfido2/src/blob.c
77
fido_blob_reset(b);
lib/libfido2/src/blob.c
78
free(b);
lib/libfido2/src/blob.c
89
fido_blob_t *b = &array->ptr[i];
lib/libfido2/src/blob.c
90
freezero(b->ptr, b->len);
lib/libfido2/src/blob.c
91
b->ptr = NULL;
lib/libform/frm_driver.c
208
#define Minimum(a,b) (((a)<=(b)) ? (a) : (b))
lib/libform/frm_driver.c
209
#define Maximum(a,b) (((a)>=(b)) ? (a) : (b))
lib/libfuse/dict.c
101
dictentry_cmp(struct dictentry *a, struct dictentry *b)
lib/libfuse/dict.c
103
return strcmp(a->key, b->key);
lib/libfuse/tree.c
94
treeentry_cmp(struct treeentry *a, struct treeentry *b)
lib/libfuse/tree.c
96
if (a->id < b->id)
lib/libfuse/tree.c
98
if (a->id > b->id)
lib/libkvm/kvm_getloadavg.c
56
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
lib/libkvm/kvm_proc.c
102
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
lib/libkvm/kvm_proc.c
103
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
lib/libm/src/b_log__D.c
395
r.b = (u1 - r.a) + u2;
lib/libm/src/b_tgamma.c
132
return(__exp__D(u.a, u.b));
lib/libm/src/b_tgamma.c
180
v.b = x - v.a;
lib/libm/src/b_tgamma.c
182
t.b = v.b*u.a + x*u.b;
lib/libm/src/b_tgamma.c
184
t.b += lns2pi_lo; t.b += p;
lib/libm/src/b_tgamma.c
185
u.a = lns2pi_hi + t.b; u.a += t.a;
lib/libm/src/b_tgamma.c
186
u.b = t.a - u.a;
lib/libm/src/b_tgamma.c
187
u.b += lns2pi_hi; u.b += t.b;
lib/libm/src/b_tgamma.c
205
return (yy.a + yy.b);
lib/libm/src/b_tgamma.c
211
yy.b = r.b = y - yy.a;
lib/libm/src/b_tgamma.c
215
r.b = r.a*yy.b + y*r.b;
lib/libm/src/b_tgamma.c
218
r.b += (t - r.a);
lib/libm/src/b_tgamma.c
222
y = r.b*(yy.a + yy.b) + r.a*yy.b;
lib/libm/src/b_tgamma.c
243
xx.b = x - xx.a; xx.b += t; xx.b += d;
lib/libm/src/b_tgamma.c
246
x = xx.a + xx.b;
lib/libm/src/b_tgamma.c
250
xx.b = x - xx.a;
lib/libm/src/b_tgamma.c
257
r.a -= d*xx.a; r.a -= d*xx.b; r.a += r.b;
lib/libm/src/b_tgamma.c
278
t.b = (z - t.a) + c;
lib/libm/src/b_tgamma.c
279
t.b *= (t.a + z);
lib/libm/src/b_tgamma.c
282
t.b += (q - t.a);
lib/libm/src/b_tgamma.c
285
r.b = p - r.a;
lib/libm/src/b_tgamma.c
286
t.b = t.b*p + t.a*r.b + a0_lo;
lib/libm/src/b_tgamma.c
290
r.b = ((a0_hi-r.a) + t.a) + t.b;
lib/libm/src/b_tgamma.c
322
lg.b -= lsine.b;
lib/libm/src/b_tgamma.c
323
y = -(lg.a + lg.b);
lib/libm/src/b_tgamma.c
324
z = (y + lg.a) + lg.b;
lib/libm/src/e_hypot.c
100
if (w>b) {
lib/libm/src/e_hypot.c
104
w = sqrt(t1*t1-(b*(-b)-t2*(a+t1)));
lib/libm/src/e_hypot.c
109
y2 = b - yy1;
lib/libm/src/e_hypot.c
113
w = sqrt(t1*yy1-(w*(-w)-(t1*y2+t2*b)));
lib/libm/src/e_hypot.c
53
double a=x,b=y,t1,t2,yy1,y2,w;
lib/libm/src/e_hypot.c
60
if(hb > ha) {a=y;b=x;j=ha; ha=hb;hb=j;} else {a=x;b=y;}
lib/libm/src/e_hypot.c
62
SET_HIGH_WORD(b,hb); /* b <- |b| */
lib/libm/src/e_hypot.c
63
if((ha-hb)>0x3c00000) {return a+b;} /* x/y > 2**60 */
lib/libm/src/e_hypot.c
68
w = a+b; /* for sNaN */
lib/libm/src/e_hypot.c
71
GET_LOW_WORD(low,b);
lib/libm/src/e_hypot.c
72
if(((hb^0x7ff00000)|low)==0) w = b;
lib/libm/src/e_hypot.c
78
SET_HIGH_WORD(b,hb);
lib/libm/src/e_hypot.c
83
GET_LOW_WORD(low,b);
lib/libm/src/e_hypot.c
87
b *= t1;
lib/libm/src/e_hypot.c
95
SET_HIGH_WORD(b,hb);
lib/libm/src/e_hypot.c
99
w = a-b;
lib/libm/src/e_hypotf.c
22
float a=x,b=y,t1,t2,yy1,y2,w;
lib/libm/src/e_hypotf.c
29
if(hb > ha) {a=y;b=x;j=ha; ha=hb;hb=j;} else {a=x;b=y;}
lib/libm/src/e_hypotf.c
31
SET_FLOAT_WORD(b,hb); /* b <- |b| */
lib/libm/src/e_hypotf.c
32
if((ha-hb)>0xf000000) {return a+b;} /* x/y > 2**30 */
lib/libm/src/e_hypotf.c
36
w = a+b; /* for sNaN */
lib/libm/src/e_hypotf.c
38
if(hb == 0x7f800000) w = b;
lib/libm/src/e_hypotf.c
44
SET_FLOAT_WORD(b,hb);
lib/libm/src/e_hypotf.c
50
b *= t1;
lib/libm/src/e_hypotf.c
58
SET_FLOAT_WORD(b,hb);
lib/libm/src/e_hypotf.c
62
w = a-b;
lib/libm/src/e_hypotf.c
63
if (w>b) {
lib/libm/src/e_hypotf.c
66
w = sqrtf(t1*t1-(b*(-b)-t2*(a+t1)));
lib/libm/src/e_hypotf.c
70
y2 = b - yy1;
lib/libm/src/e_hypotf.c
73
w = sqrtf(t1*yy1-(w*(-w)-(t1*y2+t2*b)));
lib/libm/src/e_jn.c
101
temp = b;
lib/libm/src/e_jn.c
102
b = b*((double)(i+i)/x) - a; /* avoid underflow */
lib/libm/src/e_jn.c
112
b = zero;
lib/libm/src/e_jn.c
114
temp = x*0.5; b = temp;
lib/libm/src/e_jn.c
117
b *= temp; /* b = (x/2)^n */
lib/libm/src/e_jn.c
119
b = b/a;
lib/libm/src/e_jn.c
164
b = one;
lib/libm/src/e_jn.c
178
temp = b;
lib/libm/src/e_jn.c
179
b *= di;
lib/libm/src/e_jn.c
180
b = b/x - a;
lib/libm/src/e_jn.c
186
temp = b;
lib/libm/src/e_jn.c
187
b *= di;
lib/libm/src/e_jn.c
188
b = b/x - a;
lib/libm/src/e_jn.c
192
if(b>1e100) {
lib/libm/src/e_jn.c
193
a /= b;
lib/libm/src/e_jn.c
194
t /= b;
lib/libm/src/e_jn.c
195
b = one;
lib/libm/src/e_jn.c
199
b = (t*j0(x)/b);
lib/libm/src/e_jn.c
202
if(sgn==1) return -b; else return b;
lib/libm/src/e_jn.c
210
double a, b, temp;
lib/libm/src/e_jn.c
246
b = invsqrtpi*temp/sqrt(x);
lib/libm/src/e_jn.c
250
b = y1(x);
lib/libm/src/e_jn.c
252
GET_HIGH_WORD(high,b);
lib/libm/src/e_jn.c
254
temp = b;
lib/libm/src/e_jn.c
255
b = ((double)(i+i)/x)*b - a;
lib/libm/src/e_jn.c
256
GET_HIGH_WORD(high,b);
lib/libm/src/e_jn.c
260
if(sign>0) return b; else return -b;
lib/libm/src/e_jn.c
53
double a, b, temp, di;
lib/libm/src/e_jn.c
73
b = zero;
lib/libm/src/e_jn.c
96
b = invsqrtpi*temp/sqrt(x);
lib/libm/src/e_jn.c
99
b = j1(x);
lib/libm/src/e_jnf.c
117
b = one;
lib/libm/src/e_jnf.c
131
temp = b;
lib/libm/src/e_jnf.c
132
b *= di;
lib/libm/src/e_jnf.c
133
b = b/x - a;
lib/libm/src/e_jnf.c
139
temp = b;
lib/libm/src/e_jnf.c
140
b *= di;
lib/libm/src/e_jnf.c
141
b = b/x - a;
lib/libm/src/e_jnf.c
145
if(b>(float)1e10) {
lib/libm/src/e_jnf.c
146
a /= b;
lib/libm/src/e_jnf.c
147
t /= b;
lib/libm/src/e_jnf.c
148
b = one;
lib/libm/src/e_jnf.c
152
b = (t*j0f(x)/b);
lib/libm/src/e_jnf.c
155
if(sgn==1) return -b; else return b;
lib/libm/src/e_jnf.c
163
float a, b, temp;
lib/libm/src/e_jnf.c
181
b = y1f(x);
lib/libm/src/e_jnf.c
183
GET_FLOAT_WORD(ib,b);
lib/libm/src/e_jnf.c
185
temp = b;
lib/libm/src/e_jnf.c
186
b = ((float)(i+i)/x)*b - a;
lib/libm/src/e_jnf.c
187
GET_FLOAT_WORD(ib,b);
lib/libm/src/e_jnf.c
190
if(sign>0) return b; else return -b;
lib/libm/src/e_jnf.c
29
float a, b, temp, di;
lib/libm/src/e_jnf.c
49
b = zero;
lib/libm/src/e_jnf.c
53
b = j1f(x);
lib/libm/src/e_jnf.c
55
temp = b;
lib/libm/src/e_jnf.c
56
b = b*((float)(i+i)/x) - a; /* avoid underflow */
lib/libm/src/e_jnf.c
65
b = zero;
lib/libm/src/e_jnf.c
67
temp = x*(float)0.5; b = temp;
lib/libm/src/e_jnf.c
70
b *= temp; /* b = (x/2)^n */
lib/libm/src/e_jnf.c
72
b = b/a;
lib/libm/src/ld128/e_hypotl.c
100
if (w>b) {
lib/libm/src/ld128/e_hypotl.c
104
w = sqrtl(t1*t1-(b*(-b)-t2*(a+t1)));
lib/libm/src/ld128/e_hypotl.c
109
y2 = b - yy1;
lib/libm/src/ld128/e_hypotl.c
113
w = sqrtl(t1*yy1-(w*(-w)-(t1*y2+t2*b)));
lib/libm/src/ld128/e_hypotl.c
52
long double a,b,t1,t2,yy1,y2,w;
lib/libm/src/ld128/e_hypotl.c
59
if(hb > ha) {a=y;b=x;j=ha; ha=hb;hb=j;} else {a=x;b=y;}
lib/libm/src/ld128/e_hypotl.c
61
SET_LDOUBLE_MSW64(b,hb); /* b <- |b| */
lib/libm/src/ld128/e_hypotl.c
62
if((ha-hb)>0x78000000000000LL) {return a+b;} /* x/y > 2**120 */
lib/libm/src/ld128/e_hypotl.c
67
w = a+b; /* for sNaN */
lib/libm/src/ld128/e_hypotl.c
70
GET_LDOUBLE_LSW64(low,b);
lib/libm/src/ld128/e_hypotl.c
71
if(((hb^0x7fff000000000000LL)|low)==0) w = b;
lib/libm/src/ld128/e_hypotl.c
78
SET_LDOUBLE_MSW64(b,hb);
lib/libm/src/ld128/e_hypotl.c
83
GET_LDOUBLE_LSW64(low,b);
lib/libm/src/ld128/e_hypotl.c
87
b *= t1;
lib/libm/src/ld128/e_hypotl.c
95
SET_LDOUBLE_MSW64(b,hb);
lib/libm/src/ld128/e_hypotl.c
99
w = a-b;
lib/libm/src/ld80/e_hypotl.c
103
w = sqrtl(t1*t1-(b*(-b)-t2*(a+t1)));
lib/libm/src/ld80/e_hypotl.c
106
GET_LDOUBLE_MSW(high,b);
lib/libm/src/ld80/e_hypotl.c
109
y2 = b - yy1;
lib/libm/src/ld80/e_hypotl.c
113
w = sqrtl(t1*yy1-(w*(-w)-(t1*y2+t2*b)));
lib/libm/src/ld80/e_hypotl.c
52
long double a,b,t1,t2,yy1,y2,w;
lib/libm/src/ld80/e_hypotl.c
59
if(eb > ea) {a=y;b=x;j=ea; ea=eb;eb=j;} else {a=x;b=y;}
lib/libm/src/ld80/e_hypotl.c
61
SET_LDOUBLE_EXP(b,eb); /* b <- |b| */
lib/libm/src/ld80/e_hypotl.c
62
if((ea-eb)>0x46) {return a+b;} /* x/y > 2**70 */
lib/libm/src/ld80/e_hypotl.c
67
w = a+b; /* for sNaN */
lib/libm/src/ld80/e_hypotl.c
70
GET_LDOUBLE_WORDS(es,high,low,b);
lib/libm/src/ld80/e_hypotl.c
71
if(((eb^0x7fff)|(high&0x7fffffff)|low)==0) w = b;
lib/libm/src/ld80/e_hypotl.c
77
SET_LDOUBLE_EXP(b,eb);
lib/libm/src/ld80/e_hypotl.c
82
GET_LDOUBLE_WORDS(es,high,low,b);
lib/libm/src/ld80/e_hypotl.c
85
b *= t1;
lib/libm/src/ld80/e_hypotl.c
93
SET_LDOUBLE_EXP(b,eb);
lib/libm/src/ld80/e_hypotl.c
97
w = a-b;
lib/libm/src/ld80/e_hypotl.c
98
if (w>b) {
lib/libm/src/math_private.h
408
double b;
lib/libm/src/s_casinl.c
106
b = cn/n;
lib/libm/src/s_casinl.c
108
ct *= b;
lib/libm/src/s_casinl.c
110
b = cabsl(ct);
lib/libm/src/s_casinl.c
113
while (b > MACHEPL);
lib/libm/src/s_casinl.c
68
long double x, y, b;
lib/libm/src/s_casinl.c
88
b = cabsl(z);
lib/libm/src/s_casinl.c
89
if (b < 0.125L) {
lib/libm/src/s_logbl.c
28
int b;
lib/libm/src/s_logbl.c
50
for (b = EXT_FRACHBITS; !(u.bits.ext_fracl & m); m >>= 1)
lib/libm/src/s_logbl.c
51
b++;
lib/libm/src/s_logbl.c
54
for (b += EXT_FRACHMBITS; !(u.bits.ext_fraclm & m);
lib/libm/src/s_logbl.c
56
b++;
lib/libm/src/s_logbl.c
60
for (b = 0; !(u.bits.ext_frach & m); m >>= 1)
lib/libm/src/s_logbl.c
61
b++;
lib/libm/src/s_logbl.c
65
b++;
lib/libm/src/s_logbl.c
69
b++;
lib/libm/src/s_logbl.c
71
return ((long double)(LDBL_MIN_EXP - b - 1));
lib/libmenu/m_format.c
45
#define minimum(a,b) ((a)<(b) ? (a): (b))
lib/libpcap/gencode.c
1558
struct block *b;
lib/libpcap/gencode.c
1570
b = new_block(JMP(BPF_JSET));
lib/libpcap/gencode.c
1571
b->s.k = 0x1fff;
lib/libpcap/gencode.c
1572
b->stmts = s;
lib/libpcap/gencode.c
1573
gen_not(b);
lib/libpcap/gencode.c
1575
return b;
lib/libpcap/gencode.c
1634
struct block *b;
lib/libpcap/gencode.c
1642
b = new_block(JMP(BPF_JEQ));
lib/libpcap/gencode.c
1643
b->stmts = s;
lib/libpcap/gencode.c
1644
b->s.k = v;
lib/libpcap/gencode.c
1646
return b;
lib/libpcap/gencode.c
1825
struct block *b0, *b;
lib/libpcap/gencode.c
1847
b = gen_protochain(v, Q_IPV6, dir);
lib/libpcap/gencode.c
1848
gen_or(b0, b);
lib/libpcap/gencode.c
1849
return b;
lib/libpcap/gencode.c
2105
b = new_block(JMP(BPF_JEQ));
lib/libpcap/gencode.c
2106
b->stmts = s[1]; /*remember, s[0] is dummy*/
lib/libpcap/gencode.c
2107
b->s.k = v;
lib/libpcap/gencode.c
2112
gen_and(b0, b);
lib/libpcap/gencode.c
2113
return b;
lib/libpcap/gencode.c
2252
struct block *b, *tmp;
lib/libpcap/gencode.c
2317
b = gen_host(**alist++, 0xffffffff, tproto, dir);
lib/libpcap/gencode.c
2321
gen_or(b, tmp);
lib/libpcap/gencode.c
2322
b = tmp;
lib/libpcap/gencode.c
2324
return b;
lib/libpcap/gencode.c
2330
b = tmp = NULL;
lib/libpcap/gencode.c
2357
if (b)
lib/libpcap/gencode.c
2358
gen_or(b, tmp);
lib/libpcap/gencode.c
2359
b = tmp;
lib/libpcap/gencode.c
2362
if (b == NULL) {
lib/libpcap/gencode.c
2368
return b;
lib/libpcap/gencode.c
2395
struct block *b;
lib/libpcap/gencode.c
2396
b = gen_port(port, real_proto, dir);
lib/libpcap/gencode.c
2397
gen_or(gen_port6(port, real_proto, dir), b);
lib/libpcap/gencode.c
2398
return b;
lib/libpcap/gencode.c
2531
struct block *b;
lib/libpcap/gencode.c
2532
b = gen_port((int)v, proto, dir);
lib/libpcap/gencode.c
2533
gen_or(gen_port6((int)v, proto, dir), b);
lib/libpcap/gencode.c
2534
return b;
lib/libpcap/gencode.c
2566
struct block *b;
lib/libpcap/gencode.c
257
struct block *b = new_block(BPF_RET|BPF_K);
lib/libpcap/gencode.c
259
b->s.k = v;
lib/libpcap/gencode.c
260
return b;
lib/libpcap/gencode.c
2604
b = gen_host6(addr, &mask, q.proto, q.dir);
lib/libpcap/gencode.c
2606
return b;
lib/libpcap/gencode.c
2667
struct block *b;
lib/libpcap/gencode.c
2725
b = gen_proto_abbrev(proto);
lib/libpcap/gencode.c
2726
if (index->b)
lib/libpcap/gencode.c
2727
gen_and(index->b, b);
lib/libpcap/gencode.c
2728
index->b = b;
lib/libpcap/gencode.c
2745
gen_and(gen_proto_abbrev(proto), b = gen_ipfrag());
lib/libpcap/gencode.c
2746
if (index->b)
lib/libpcap/gencode.c
2747
gen_and(index->b, b);
lib/libpcap/gencode.c
2749
gen_and(gen_proto_abbrev(Q_IP), b);
lib/libpcap/gencode.c
2751
index->b = b;
lib/libpcap/gencode.c
2771
struct block *b, *tmp;
lib/libpcap/gencode.c
2776
b = new_block(JMP(code));
lib/libpcap/gencode.c
2779
b->s.k = 0x80000000;
lib/libpcap/gencode.c
2782
gen_not(b);
lib/libpcap/gencode.c
2789
b->stmts = a0->s;
lib/libpcap/gencode.c
2795
if (a0->b) {
lib/libpcap/gencode.c
2796
if (a1->b) {
lib/libpcap/gencode.c
2797
gen_and(a0->b, tmp = a1->b);
lib/libpcap/gencode.c
2800
tmp = a0->b;
lib/libpcap/gencode.c
2802
tmp = a1->b;
lib/libpcap/gencode.c
2805
gen_and(tmp, b);
lib/libpcap/gencode.c
2807
return b;
lib/libpcap/gencode.c
2944
struct block *b;
lib/libpcap/gencode.c
2947
b = new_block(JMP(jmp));
lib/libpcap/gencode.c
2948
b->stmts = s;
lib/libpcap/gencode.c
2949
b->s.k = n;
lib/libpcap/gencode.c
2951
return b;
lib/libpcap/gencode.c
2963
struct block *b;
lib/libpcap/gencode.c
2965
b = gen_len(BPF_JGT, n);
lib/libpcap/gencode.c
2966
gen_not(b);
lib/libpcap/gencode.c
2968
return b;
lib/libpcap/gencode.c
2974
struct block *b;
lib/libpcap/gencode.c
2985
b = gen_cmp((u_int)idx, BPF_B, (bpf_int32)val);
lib/libpcap/gencode.c
2986
b->s.code = JMP(BPF_JGE);
lib/libpcap/gencode.c
2987
gen_not(b);
lib/libpcap/gencode.c
2988
return b;
lib/libpcap/gencode.c
2991
b = gen_cmp((u_int)idx, BPF_B, (bpf_int32)val);
lib/libpcap/gencode.c
2992
b->s.code = JMP(BPF_JGT);
lib/libpcap/gencode.c
2993
return b;
lib/libpcap/gencode.c
3004
b = new_block(JMP(BPF_JEQ));
lib/libpcap/gencode.c
3005
b->stmts = s;
lib/libpcap/gencode.c
3006
gen_not(b);
lib/libpcap/gencode.c
3008
return b;
lib/libpcap/gencode.c
464
gen_not(struct block *b)
lib/libpcap/gencode.c
466
b->sense = !b->sense;
lib/libpcap/gencode.c
473
struct block *b;
lib/libpcap/gencode.c
478
b = new_block(JMP(BPF_JEQ));
lib/libpcap/gencode.c
479
b->stmts = s;
lib/libpcap/gencode.c
480
b->s.k = v;
lib/libpcap/gencode.c
482
return b;
lib/libpcap/gencode.c
489
struct block *b;
lib/libpcap/gencode.c
494
b = new_block(JMP(BPF_JGT));
lib/libpcap/gencode.c
495
b->stmts = s;
lib/libpcap/gencode.c
496
b->s.k = v;
lib/libpcap/gencode.c
498
return b;
lib/libpcap/gencode.c
504
struct block *b = gen_cmp(offset, size, v);
lib/libpcap/gencode.c
510
sappend(b->stmts, s);
lib/libpcap/gencode.c
512
return b;
lib/libpcap/gencode.c
519
struct block *b = gen_cmp_nl(offset, size, v);
lib/libpcap/gencode.c
525
sappend(b->stmts, s);
lib/libpcap/gencode.c
527
return b;
lib/libpcap/gencode.c
533
struct block *b, *tmp;
lib/libpcap/gencode.c
535
b = NULL;
lib/libpcap/gencode.c
542
if (b != NULL)
lib/libpcap/gencode.c
543
gen_and(b, tmp);
lib/libpcap/gencode.c
544
b = tmp;
lib/libpcap/gencode.c
552
if (b != NULL)
lib/libpcap/gencode.c
553
gen_and(b, tmp);
lib/libpcap/gencode.c
554
b = tmp;
lib/libpcap/gencode.c
559
if (b != NULL)
lib/libpcap/gencode.c
560
gen_and(b, tmp);
lib/libpcap/gencode.c
561
b = tmp;
lib/libpcap/gencode.c
563
return b;
lib/libpcap/gencode.c
628
struct block *b;
lib/libpcap/gencode.c
639
b = new_block(JMP(BPF_JEQ));
lib/libpcap/gencode.c
640
b->stmts = s;
lib/libpcap/gencode.c
641
b->s.k = v;
lib/libpcap/gencode.c
643
return b;
lib/libpcap/gencode.c
787
struct block *b;
lib/libpcap/gencode.c
792
b = new_block(JMP(BPF_JEQ));
lib/libpcap/gencode.c
793
b->stmts = s;
lib/libpcap/gencode.c
795
return b;
lib/libpcap/gencode.h
143
struct block *b; /* protocol checks */
lib/libpcap/gencode.h
209
#define JT(b) ((b)->et.succ)
lib/libpcap/gencode.h
210
#define JF(b) ((b)->ef.succ)
lib/libpcap/grammar.y
150
| pnum { $$.b = gen_ncode(NULL, (bpf_u_int32)$1,
lib/libpcap/grammar.y
154
nid: ID { $$.b = gen_scode($1, $$.q = $<blk>0.q); }
lib/libpcap/grammar.y
155
| HID '/' NUM { $$.b = gen_mcode($1, NULL, $3,
lib/libpcap/grammar.y
157
| HID MASK HID { $$.b = gen_mcode($1, $3, 0,
lib/libpcap/grammar.y
164
$$.b = gen_ncode($1, 0, $$.q);
lib/libpcap/grammar.y
167
$$.b = gen_ncode($1, 0, $$.q);
lib/libpcap/grammar.y
173
$$.b = gen_mcode6($1, NULL, $3,
lib/libpcap/grammar.y
182
$$.b = gen_mcode6($1, 0, 128,
lib/libpcap/grammar.y
189
| EID { $$.b = gen_ecode($1, $$.q = $<blk>0.q); }
lib/libpcap/grammar.y
200
qid: pnum { $$.b = gen_ncode(NULL, (bpf_u_int32)$1,
lib/libpcap/grammar.y
215
| paren expr ')' { $$.b = $2.b; $$.q = $1.q; }
lib/libpcap/grammar.y
216
| pname { $$.b = gen_proto_abbrev($1); $$.q = qerr; }
lib/libpcap/grammar.y
217
| arth relop arth { $$.b = gen_relation($2, $1, $3, 0);
lib/libpcap/grammar.y
219
| arth irelop arth { $$.b = gen_relation($2, $1, $3, 1);
lib/libpcap/grammar.y
221
| other { $$.b = $1; $$.q = qerr; }
lib/libpcap/grammar.y
88
struct block *b;
lib/libpcap/optimize.c
1051
opt_deadstores(struct block *b)
lib/libpcap/optimize.c
1059
for (s = b->stmts; s != 0; s = s->next)
lib/libpcap/optimize.c
1061
deadstmt(&b->s, last);
lib/libpcap/optimize.c
1064
if (last[atom] && !ATOMELEM(b->out_use, atom)) {
lib/libpcap/optimize.c
1071
opt_blk(struct block *b, int do_stmts)
lib/libpcap/optimize.c
1079
for (s = b->stmts; s && s->next; s = s->next)
lib/libpcap/optimize.c
1093
p = b->in_edges;
lib/libpcap/optimize.c
1095
memset((char *)b->val, 0, sizeof(b->val));
lib/libpcap/optimize.c
1097
memcpy((char *)b->val, (char *)p->pred->val, sizeof(b->val));
lib/libpcap/optimize.c
1100
if (b->val[i] != p->pred->val[i])
lib/libpcap/optimize.c
1101
b->val[i] = 0;
lib/libpcap/optimize.c
1104
aval = b->val[A_ATOM];
lib/libpcap/optimize.c
1105
for (s = b->stmts; s; s = s->next)
lib/libpcap/optimize.c
1106
opt_stmt(&s->s, b->val, do_stmts);
lib/libpcap/optimize.c
1115
((b->out_use == 0 && aval != 0 &&b->val[A_ATOM] == aval) ||
lib/libpcap/optimize.c
1116
BPF_CLASS(b->s.code) == BPF_RET)) {
lib/libpcap/optimize.c
1117
if (b->stmts != 0) {
lib/libpcap/optimize.c
1118
b->stmts = 0;
lib/libpcap/optimize.c
1122
opt_peep(b);
lib/libpcap/optimize.c
1123
opt_deadstores(b);
lib/libpcap/optimize.c
1128
if (BPF_SRC(b->s.code) == BPF_K)
lib/libpcap/optimize.c
1129
b->oval = K(b->s.k);
lib/libpcap/optimize.c
1131
b->oval = b->val[X_ATOM];
lib/libpcap/optimize.c
1132
b->et.code = b->s.code;
lib/libpcap/optimize.c
1133
b->ef.code = -b->s.code;
lib/libpcap/optimize.c
1142
use_conflict(struct block *b, struct block *succ)
lib/libpcap/optimize.c
1152
if (b->val[atom] != succ->val[atom])
lib/libpcap/optimize.c
1257
or_pullup(struct block *b)
lib/libpcap/optimize.c
1264
ep = b->in_edges;
lib/libpcap/optimize.c
1277
if (JT(b->in_edges->pred) == b)
lib/libpcap/optimize.c
1278
diffp = &JT(b->in_edges->pred);
lib/libpcap/optimize.c
1280
diffp = &JF(b->in_edges->pred);
lib/libpcap/optimize.c
1287
if (JT(*diffp) != JT(b))
lib/libpcap/optimize.c
1290
if (!SET_MEMBER((*diffp)->dom, b->id))
lib/libpcap/optimize.c
1304
if (JT(*samep) != JT(b))
lib/libpcap/optimize.c
1307
if (!SET_MEMBER((*samep)->dom, b->id))
lib/libpcap/optimize.c
1335
for (ep = b->in_edges; ep != 0; ep = ep->next) {
lib/libpcap/optimize.c
1336
if (JT(ep->pred) == b)
lib/libpcap/optimize.c
1349
and_pullup(struct block *b)
lib/libpcap/optimize.c
1356
ep = b->in_edges;
lib/libpcap/optimize.c
1368
if (JT(b->in_edges->pred) == b)
lib/libpcap/optimize.c
1369
diffp = &JT(b->in_edges->pred);
lib/libpcap/optimize.c
1371
diffp = &JF(b->in_edges->pred);
lib/libpcap/optimize.c
1378
if (JF(*diffp) != JF(b))
lib/libpcap/optimize.c
1381
if (!SET_MEMBER((*diffp)->dom, b->id))
lib/libpcap/optimize.c
1395
if (JF(*samep) != JF(b))
lib/libpcap/optimize.c
1398
if (!SET_MEMBER((*samep)->dom, b->id))
lib/libpcap/optimize.c
1426
for (ep = b->in_edges; ep != 0; ep = ep->next) {
lib/libpcap/optimize.c
1427
if (JT(ep->pred) == b)
lib/libpcap/optimize.c
1483
struct block *b;
lib/libpcap/optimize.c
1493
for (b = levels[i]; b != 0; b = b->link) {
lib/libpcap/optimize.c
1494
link_inedge(&b->et, JT(b));
lib/libpcap/optimize.c
1495
link_inedge(&b->ef, JF(b));
lib/libpcap/optimize.c
1501
opt_root(struct block **b)
lib/libpcap/optimize.c
1505
s = (*b)->stmts;
lib/libpcap/optimize.c
1506
(*b)->stmts = 0;
lib/libpcap/optimize.c
1507
while (BPF_CLASS((*b)->s.code) == BPF_JMP && JT(*b) == JF(*b))
lib/libpcap/optimize.c
1508
*b = JT(*b);
lib/libpcap/optimize.c
1510
tmp = (*b)->stmts;
lib/libpcap/optimize.c
1513
(*b)->stmts = s;
lib/libpcap/optimize.c
1520
if (BPF_CLASS((*b)->s.code) == BPF_RET)
lib/libpcap/optimize.c
1521
(*b)->stmts = 0;
lib/libpcap/optimize.c
166
#define SET_INTERSECT(a, b, n)\
lib/libpcap/optimize.c
168
bpf_u_int32 *_x = a, *_y = b;\
lib/libpcap/optimize.c
176
#define SET_SUBTRACT(a, b, n)\
lib/libpcap/optimize.c
178
bpf_u_int32 *_x = a, *_y = b;\
lib/libpcap/optimize.c
1829
struct block *b = blocks[i];
lib/libpcap/optimize.c
1831
b->et.edom = p;
lib/libpcap/optimize.c
1833
b->ef.edom = p;
lib/libpcap/optimize.c
1835
b->et.id = i;
lib/libpcap/optimize.c
1836
edges[i] = &b->et;
lib/libpcap/optimize.c
1837
b->ef.id = n_blocks + i;
lib/libpcap/optimize.c
1838
edges[n_blocks + i] = &b->ef;
lib/libpcap/optimize.c
1839
b->et.pred = b;
lib/libpcap/optimize.c
1840
b->ef.pred = b;
lib/libpcap/optimize.c
186
#define SET_UNION(a, b, n)\
lib/libpcap/optimize.c
188
bpf_u_int32 *_x = a, *_y = b;\
lib/libpcap/optimize.c
198
#define MAX(a,b) ((a)>(b)?(a):(b))
lib/libpcap/optimize.c
202
find_levels_r(struct block *b)
lib/libpcap/optimize.c
206
if (isMarked(b))
lib/libpcap/optimize.c
209
Mark(b);
lib/libpcap/optimize.c
210
b->link = 0;
lib/libpcap/optimize.c
212
if (JT(b)) {
lib/libpcap/optimize.c
213
find_levels_r(JT(b));
lib/libpcap/optimize.c
214
find_levels_r(JF(b));
lib/libpcap/optimize.c
215
level = MAX(JT(b)->level, JF(b)->level) + 1;
lib/libpcap/optimize.c
218
b->level = level;
lib/libpcap/optimize.c
219
b->link = levels[level];
lib/libpcap/optimize.c
220
levels[level] = b;
lib/libpcap/optimize.c
245
struct block *b;
lib/libpcap/optimize.c
261
for (b = levels[i]; b; b = b->link) {
lib/libpcap/optimize.c
262
SET_INSERT(b->dom, b->id);
lib/libpcap/optimize.c
263
if (JT(b) == 0)
lib/libpcap/optimize.c
265
SET_INTERSECT(JT(b)->dom, b->dom, nodewords);
lib/libpcap/optimize.c
266
SET_INTERSECT(JF(b)->dom, b->dom, nodewords);
lib/libpcap/optimize.c
290
struct block *b;
lib/libpcap/optimize.c
300
for (b = levels[i]; b != 0; b = b->link) {
lib/libpcap/optimize.c
301
propedom(&b->et);
lib/libpcap/optimize.c
302
propedom(&b->ef);
lib/libpcap/optimize.c
318
struct block *b;
lib/libpcap/optimize.c
328
for (b = levels[i]; b; b = b->link) {
lib/libpcap/optimize.c
329
SET_INSERT(b->closure, b->id);
lib/libpcap/optimize.c
330
if (JT(b) == 0)
lib/libpcap/optimize.c
332
SET_UNION(JT(b)->closure, b->closure, nodewords);
lib/libpcap/optimize.c
333
SET_UNION(JF(b)->closure, b->closure, nodewords);
lib/libpcap/optimize.c
415
compute_local_ud(struct block *b)
lib/libpcap/optimize.c
421
for (s = b->stmts; s; s = s->next) {
lib/libpcap/optimize.c
446
if (!ATOMELEM(def, A_ATOM) && BPF_CLASS(b->s.code) == BPF_JMP)
lib/libpcap/optimize.c
449
b->def = def;
lib/libpcap/optimize.c
450
b->kill = kill;
lib/libpcap/optimize.c
451
b->in_use = use;
lib/libpcap/optimize.c
565
bpf_int32 a, b;
lib/libpcap/optimize.c
568
b = vmap[v1].const_val;
lib/libpcap/optimize.c
572
a += b;
lib/libpcap/optimize.c
576
a -= b;
lib/libpcap/optimize.c
580
a *= b;
lib/libpcap/optimize.c
584
if (b == 0)
lib/libpcap/optimize.c
586
a /= b;
lib/libpcap/optimize.c
590
a &= b;
lib/libpcap/optimize.c
594
a |= b;
lib/libpcap/optimize.c
598
a <<= b;
lib/libpcap/optimize.c
602
a >>= b;
lib/libpcap/optimize.c
626
opt_not(struct block *b)
lib/libpcap/optimize.c
628
struct block *tmp = JT(b);
lib/libpcap/optimize.c
630
JT(b) = JF(b);
lib/libpcap/optimize.c
631
JF(b) = tmp;
lib/libpcap/optimize.c
635
opt_peep(struct block *b)
lib/libpcap/optimize.c
641
s = b->stmts;
lib/libpcap/optimize.c
688
if (ATOMELEM(b->out_use, X_ATOM))
lib/libpcap/optimize.c
743
!ATOMELEM(b->out_use, A_ATOM)) {
lib/libpcap/optimize.c
744
val = b->val[X_ATOM];
lib/libpcap/optimize.c
748
b->s.k += vmap[val].const_val;
lib/libpcap/optimize.c
749
op = BPF_OP(b->s.code);
lib/libpcap/optimize.c
751
struct block *t = JT(b);
lib/libpcap/optimize.c
752
JT(b) = JF(b);
lib/libpcap/optimize.c
753
JF(b) = t;
lib/libpcap/optimize.c
754
b->s.k += 0x80000000;
lib/libpcap/optimize.c
758
} else if (b->s.k == 0) {
lib/libpcap/optimize.c
764
b->s.code = BPF_CLASS(b->s.code) | BPF_OP(b->s.code) |
lib/libpcap/optimize.c
773
!ATOMELEM(b->out_use, A_ATOM)) {
lib/libpcap/optimize.c
776
b->s.k += last->s.k;
lib/libpcap/optimize.c
778
op = BPF_OP(b->s.code);
lib/libpcap/optimize.c
780
struct block *t = JT(b);
lib/libpcap/optimize.c
781
JT(b) = JF(b);
lib/libpcap/optimize.c
782
JF(b) = t;
lib/libpcap/optimize.c
783
b->s.k += 0x80000000;
lib/libpcap/optimize.c
792
!ATOMELEM(b->out_use, A_ATOM) && b->s.k == 0) {
lib/libpcap/optimize.c
793
b->s.k = last->s.k;
lib/libpcap/optimize.c
794
b->s.code = BPF_JMP|BPF_K|BPF_JSET;
lib/libpcap/optimize.c
797
opt_not(b);
lib/libpcap/optimize.c
803
val = b->val[A_ATOM];
lib/libpcap/optimize.c
804
if (vmap[val].is_const && BPF_SRC(b->s.code) == BPF_K) {
lib/libpcap/optimize.c
806
switch (BPF_OP(b->s.code)) {
lib/libpcap/optimize.c
809
v = v == b->s.k;
lib/libpcap/optimize.c
813
v = (unsigned)v > b->s.k;
lib/libpcap/optimize.c
817
v = (unsigned)v >= b->s.k;
lib/libpcap/optimize.c
821
v &= b->s.k;
lib/libpcap/optimize.c
827
if (JF(b) != JT(b))
lib/libpcap/optimize.c
830
JF(b) = JT(b);
lib/libpcap/optimize.c
832
JT(b) = JF(b);
lib/libpcap/pcap-int.h
136
#define min(a, b) ((a) > (b) ? (b) : (a))
lib/libradius/radius_local.h
80
#define ROUNDUP(a, b) ((((a) + (b) - 1) / (b)) * (b))
lib/libradius/radius_local.h
81
#define MINIMUM(a, b) (((a) < (b))? (a) : (b))
lib/libradius/radius_mppe.c
112
MD5_Final(b, &ctx);
lib/libradius/radius_mppe.c
114
p[i] = c[i] ^ b[i];
lib/libradius/radius_mppe.c
49
uint8_t b[16], plain0[256], *p, *c;
lib/libradius/radius_mppe.c
77
MD5_Final(b, &ctx);
lib/libradius/radius_mppe.c
79
c[i] = p[i] ^ b[i];
lib/libradius/radius_mppe.c
90
uint8_t b[16], plain0[256], *p, *c;
lib/libradius/radius_userpass.c
44
char b[16], p[16], *c;
lib/libradius/radius_userpass.c
62
MD5_Final(b, &ctx);
lib/libradius/radius_userpass.c
64
c[i] = p[i] ^ b[i];
lib/libradius/radius_userpass.c
76
char b[16];
lib/libradius/radius_userpass.c
96
MD5_Final(b, &ctx);
lib/libradius/radius_userpass.c
98
p[i] = c[i] ^ b[i];
lib/librthread/rthread_barrier.c
102
pthread_barrier_t b;
lib/librthread/rthread_barrier.c
112
b = *barrier;
lib/librthread/rthread_barrier.c
113
if ((rc = pthread_mutex_lock(&b->mutex)))
lib/librthread/rthread_barrier.c
116
_rthread_debug(6, "in: %d, threshold: %d\n", b->in, b->threshold);
lib/librthread/rthread_barrier.c
117
if (++b->in == b->threshold) {
lib/librthread/rthread_barrier.c
118
b->out = b->in - 1;
lib/librthread/rthread_barrier.c
119
b->in = 0;
lib/librthread/rthread_barrier.c
120
b->generation++;
lib/librthread/rthread_barrier.c
121
if ((rc = pthread_cond_signal(&b->cond)))
lib/librthread/rthread_barrier.c
126
gen = b->generation;
lib/librthread/rthread_barrier.c
129
if ((rc = pthread_cond_wait(&b->cond, &b->mutex)))
lib/librthread/rthread_barrier.c
131
} while (gen == b->generation);
lib/librthread/rthread_barrier.c
132
b->out--; /* mark thread exit */
lib/librthread/rthread_barrier.c
133
if ((rc = pthread_cond_signal(&b->cond)))
lib/librthread/rthread_barrier.c
138
if ((rc = pthread_mutex_unlock(&b->mutex)))
lib/librthread/rthread_barrier.c
29
pthread_barrier_t b = NULL;
lib/librthread/rthread_barrier.c
45
b = calloc(1, sizeof *b);
lib/librthread/rthread_barrier.c
46
if (b == NULL)
lib/librthread/rthread_barrier.c
49
if ((rc = pthread_mutex_init(&b->mutex, NULL)))
lib/librthread/rthread_barrier.c
51
if ((rc = pthread_cond_init(&b->cond, NULL)))
lib/librthread/rthread_barrier.c
54
b->threshold = count;
lib/librthread/rthread_barrier.c
56
*barrier = b;
lib/librthread/rthread_barrier.c
61
if (b) {
lib/librthread/rthread_barrier.c
62
if (b->mutex)
lib/librthread/rthread_barrier.c
63
pthread_mutex_destroy(&b->mutex);
lib/librthread/rthread_barrier.c
64
if (b->cond)
lib/librthread/rthread_barrier.c
65
pthread_cond_destroy(&b->cond);
lib/librthread/rthread_barrier.c
66
free(b);
lib/librthread/rthread_barrier.c
76
pthread_barrier_t b;
lib/librthread/rthread_barrier.c
84
b = *barrier;
lib/librthread/rthread_barrier.c
86
if (b->out > 0 || b->in > 0) {
lib/librthread/rthread_barrier.c
87
pthread_mutex_unlock(&b->mutex);
lib/librthread/rthread_barrier.c
92
pthread_mutex_unlock(&b->mutex);
lib/librthread/rthread_barrier.c
93
pthread_mutex_destroy(&b->mutex);
lib/librthread/rthread_barrier.c
94
pthread_cond_destroy(&b->cond);
lib/librthread/rthread_barrier.c
95
free(b);
lib/libskey/put.c
371
char b[SKEY_BINKEY_SIZE+1];
lib/libskey/put.c
379
(void)memset(b, 0, sizeof(b));
lib/libskey/put.c
400
insert(b, v, p, 11);
lib/libskey/put.c
405
p += extract(b, i, 2);
lib/libskey/put.c
407
if ((p & 3) != extract(b, 64, 2))
lib/libskey/put.c
410
(void)memcpy(out, b, SKEY_BINKEY_SIZE);
lib/libssl/bio_ssl.c
146
ssl_read(BIO *b, char *out, int outl)
lib/libssl/bio_ssl.c
156
sb = (BIO_SSL *)b->ptr;
lib/libssl/bio_ssl.c
159
BIO_clear_retry_flags(b);
lib/libssl/bio_ssl.c
189
BIO_set_retry_read(b);
lib/libssl/bio_ssl.c
192
BIO_set_retry_write(b);
lib/libssl/bio_ssl.c
195
BIO_set_retry_special(b);
lib/libssl/bio_ssl.c
199
BIO_set_retry_special(b);
lib/libssl/bio_ssl.c
203
BIO_set_retry_special(b);
lib/libssl/bio_ssl.c
213
b->retry_reason = retry_reason;
lib/libssl/bio_ssl.c
218
ssl_write(BIO *b, const char *out, int outl)
lib/libssl/bio_ssl.c
227
bs = (BIO_SSL *)b->ptr;
lib/libssl/bio_ssl.c
230
BIO_clear_retry_flags(b);
lib/libssl/bio_ssl.c
259
BIO_set_retry_write(b);
lib/libssl/bio_ssl.c
262
BIO_set_retry_read(b);
lib/libssl/bio_ssl.c
265
BIO_set_retry_special(b);
lib/libssl/bio_ssl.c
269
BIO_set_retry_special(b);
lib/libssl/bio_ssl.c
277
b->retry_reason = retry_reason;
lib/libssl/bio_ssl.c
282
ssl_ctrl(BIO *b, int cmd, long num, void *ptr)
lib/libssl/bio_ssl.c
289
bs = (BIO_SSL *)b->ptr;
lib/libssl/bio_ssl.c
304
if (b->next_bio != NULL)
lib/libssl/bio_ssl.c
305
ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
lib/libssl/bio_ssl.c
337
ssl_free(b);
lib/libssl/bio_ssl.c
338
if (!ssl_new(b))
lib/libssl/bio_ssl.c
341
b->shutdown = (int)num;
lib/libssl/bio_ssl.c
343
((BIO_SSL *)b->ptr)->ssl = ssl;
lib/libssl/bio_ssl.c
346
if (b->next_bio != NULL)
lib/libssl/bio_ssl.c
347
BIO_push(bio, b->next_bio);
lib/libssl/bio_ssl.c
348
b->next_bio = bio;
lib/libssl/bio_ssl.c
351
b->init = 1;
lib/libssl/bio_ssl.c
361
ret = b->shutdown;
lib/libssl/bio_ssl.c
364
b->shutdown = (int)num;
lib/libssl/bio_ssl.c
375
BIO_clear_retry_flags(b);
lib/libssl/bio_ssl.c
377
BIO_copy_next_retry(b);
lib/libssl/bio_ssl.c
380
if ((b->next_bio != NULL) && (b->next_bio != ssl->rbio)) {
lib/libssl/bio_ssl.c
381
SSL_set_bio(ssl, b->next_bio, b->next_bio);
lib/libssl/bio_ssl.c
382
CRYPTO_add(&b->next_bio->references, 1,
lib/libssl/bio_ssl.c
388
if (b == ptr) {
lib/libssl/bio_ssl.c
394
if (b->next_bio != NULL)
lib/libssl/bio_ssl.c
395
CRYPTO_add(&b->next_bio->references, -1, CRYPTO_LOCK_BIO);
lib/libssl/bio_ssl.c
401
BIO_clear_retry_flags(b);
lib/libssl/bio_ssl.c
403
b->retry_reason = 0;
lib/libssl/bio_ssl.c
408
BIO_set_flags(b,
lib/libssl/bio_ssl.c
412
BIO_set_flags(b,
lib/libssl/bio_ssl.c
416
BIO_set_flags(b,
lib/libssl/bio_ssl.c
418
b->retry_reason = b->next_bio->retry_reason;
lib/libssl/bio_ssl.c
430
((BIO_SSL *)b->ptr)->renegotiate_count;
lib/libssl/bio_ssl.c
432
((BIO_SSL *)b->ptr)->byte_count;
lib/libssl/bio_ssl.c
434
((BIO_SSL *)b->ptr)->renegotiate_timeout;
lib/libssl/bio_ssl.c
436
((BIO_SSL *)b->ptr)->last_time;
lib/libssl/bio_ssl.c
464
ssl_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp)
lib/libssl/bio_ssl.c
470
bs = (BIO_SSL *)b->ptr;
lib/libssl/bio_ssl.c
581
BIO_ssl_shutdown(BIO *b)
lib/libssl/bio_ssl.c
585
while (b != NULL) {
lib/libssl/bio_ssl.c
586
if (b->method->type == BIO_TYPE_SSL) {
lib/libssl/bio_ssl.c
587
s = ((BIO_SSL *)b->ptr)->ssl;
lib/libssl/bio_ssl.c
591
b = b->next_bio;
lib/libssl/bs_cbb.c
429
uint32_t a, b;
lib/libssl/bs_cbb.c
432
b = value & 0xffffffff;
lib/libssl/bs_cbb.c
436
return CBB_add_u32(cbb, b);
lib/libssl/bs_cbs.c
207
uint32_t a, b;
lib/libssl/bs_cbs.c
214
if (!CBS_get_u32(cbs, &b))
lib/libssl/bs_cbs.c
217
*out = (uint64_t)a << 32 | b;
lib/libssl/s3_cbc.c
152
unsigned char b = rec->data[rec->length - 1 - i];
lib/libssl/s3_cbc.c
155
good &= ~(mask&(padding_length ^ b));
lib/libssl/s3_cbc.c
240
unsigned char b = rec->data[i];
lib/libssl/s3_cbc.c
241
rotated_mac[j++] |= b & mac_started & ~mac_ended;
lib/libssl/s3_cbc.c
569
unsigned char b = 0, is_past_c, is_past_cp1;
lib/libssl/s3_cbc.c
571
b = header[k];
lib/libssl/s3_cbc.c
573
b = data[k - header_length];
lib/libssl/s3_cbc.c
581
b = (b&~is_past_c) | (0x80&is_past_c);
lib/libssl/s3_cbc.c
585
b = b&~is_past_cp1;
lib/libssl/s3_cbc.c
590
b &= ~is_block_b | is_block_a;
lib/libssl/s3_cbc.c
596
b = (b&~is_block_b) | (is_block_b&length_bytes[j - (md_block_size - md_length_size)]);
lib/libssl/s3_cbc.c
598
block[j] = b;
lib/libssl/s3_cbc.c
81
constant_time_lt(unsigned int a, unsigned int b)
lib/libssl/s3_cbc.c
83
a -= b;
lib/libssl/s3_cbc.c
89
constant_time_ge(unsigned int a, unsigned int b)
lib/libssl/s3_cbc.c
91
a -= b;
lib/libssl/s3_cbc.c
97
constant_time_eq_8(unsigned int a, unsigned int b)
lib/libssl/s3_cbc.c
99
unsigned int c = a ^ b;
lib/libssl/s3_lib.c
1142
uint16_t b = ((const SSL_CIPHER *)cipher)->value;
lib/libssl/s3_lib.c
1144
return a < b ? -1 : a > b;
lib/libssl/ssl.h
740
#define SSL_set_time(a,b) SSL_SESSION_set_time((a),(b))
lib/libssl/ssl.h
742
#define SSL_set_timeout(a,b) SSL_SESSION_set_timeout((a),(b))
lib/libssl/ssl_both.c
552
ssl3_release_buffer(SSL3_BUFFER_INTERNAL *b)
lib/libssl/ssl_both.c
554
freezero(b->buf, b->len);
lib/libssl/ssl_both.c
555
b->buf = NULL;
lib/libssl/ssl_both.c
556
b->len = 0;
lib/libssl/ssl_cert.c
563
xname_cmp(const X509_NAME * const *a, const X509_NAME * const *b)
lib/libssl/ssl_cert.c
565
return (X509_NAME_cmp(*a, *b));
lib/libssl/ssl_cert.c
654
int (*oldcmp)(const X509_NAME * const *a, const X509_NAME * const *b);
lib/libssl/ssl_clnt.c
1587
ca_dn_cmp(const X509_NAME * const *a, const X509_NAME * const *b)
lib/libssl/ssl_clnt.c
1589
return (X509_NAME_cmp(*a, *b));
lib/libssl/ssl_clnt.c
170
static int ca_dn_cmp(const X509_NAME * const *a, const X509_NAME * const *b);
lib/libssl/ssl_lib.c
2037
ssl_session_cmp(const SSL_SESSION *a, const SSL_SESSION *b)
lib/libssl/ssl_lib.c
2039
if (a->ssl_version != b->ssl_version)
lib/libssl/ssl_lib.c
2041
if (a->session_id_length != b->session_id_length)
lib/libssl/ssl_lib.c
2043
if (timingsafe_memcmp(a->session_id, b->session_id, a->session_id_length) != 0)
lib/libssl/ssl_lib.c
2066
const SSL_SESSION *b = arg2;
lib/libssl/ssl_lib.c
2068
return ssl_session_cmp(a, b);
lib/libssl/ssl_lib.c
663
BIO *b, *r;
lib/libssl/ssl_lib.c
665
b = SSL_get_rbio(s);
lib/libssl/ssl_lib.c
666
r = BIO_find_type(b, BIO_TYPE_DESCRIPTOR);
lib/libssl/ssl_lib.c
677
BIO *b, *r;
lib/libssl/ssl_lib.c
679
b = SSL_get_wbio(s);
lib/libssl/ssl_lib.c
680
r = BIO_find_type(b, BIO_TYPE_DESCRIPTOR);
lib/libssl/ssl_local.h
1301
void ssl3_release_buffer(SSL3_BUFFER_INTERNAL *b);
lib/libssl/ssl_sess.c
1145
TIMEOUT_PARAM *b = arg2;
lib/libssl/ssl_sess.c
1147
timeout_doall_arg(a, b);
lib/libssl/ssl_txt.c
101
BIO_set_fp(b, fp, BIO_NOCLOSE);
lib/libssl/ssl_txt.c
102
ret = SSL_SESSION_print(b, x);
lib/libssl/ssl_txt.c
103
BIO_free(b);
lib/libssl/ssl_txt.c
94
BIO *b;
lib/libssl/ssl_txt.c
97
if ((b = BIO_new(BIO_s_file())) == NULL) {
lib/libusbhid/usage.c
209
static char b[10];
lib/libusbhid/usage.c
218
snprintf(b, sizeof b, "0x%04x", i);
lib/libusbhid/usage.c
219
return b;
lib/libusbhid/usage.c
227
static char b[100];
lib/libusbhid/usage.c
237
snprintf(b, sizeof b,
lib/libusbhid/usage.c
239
return b;
lib/libusbhid/usage.c
245
snprintf(b, sizeof b, "0x%04x", i);
lib/libusbhid/usage.c
246
return b;
lib/libutil/bcrypt_pbkdf.c
27
#define MINIMUM(a,b) (((a) < (b)) ? (a) : (b))
lib/libutil/ber.c
1040
ober_set_application(struct ber *b, unsigned int (*cb)(struct ber_element *))
lib/libutil/ber.c
1042
b->br_application = cb;
lib/libutil/ber.c
1054
ober_free(struct ber *b)
lib/libutil/ber.c
1056
free(b->br_wbuf);
lib/libutil/ber.c
1172
get_id(struct ber *b, unsigned int *tag, int *class, int *cstruct)
lib/libutil/ber.c
1178
if (ober_getc(b, &u) == -1)
lib/libutil/ber.c
1190
if (ober_getc(b, &u) == -1)
lib/libutil/ber.c
1215
get_len(struct ber *b, ssize_t *len)
lib/libutil/ber.c
1220
if (ober_getc(b, &u) == -1)
lib/libutil/ber.c
1251
if (ober_getc(b, &u) == -1)
lib/libutil/ber.c
1434
ober_getc(struct ber *b, u_char *c)
lib/libutil/ber.c
1436
return ober_read(b, c, 1);
lib/libutil/ber.c
249
ober_get_boolean(struct ber_element *elm, int *b)
lib/libutil/ber.c
254
if (b != NULL)
lib/libutil/ber.c
255
*b = !(elm->be_numeric == 0);
lib/libutil/ber.c
45
static ssize_t get_id(struct ber *b, unsigned int *tag, int *class,
lib/libutil/ber.c
47
static ssize_t get_len(struct ber *b, ssize_t *len);
lib/libutil/ber.c
474
ober_oid_cmp(struct ber_oid *a, struct ber_oid *b)
lib/libutil/ber.c
478
min = a->bo_n < b->bo_n ? a->bo_n : b->bo_n;
lib/libutil/ber.c
480
if (a->bo_id[i] < b->bo_id[i])
lib/libutil/ber.c
482
if (a->bo_id[i] > b->bo_id[i])
lib/libutil/ber.c
486
if (a->bo_n < b->bo_n)
lib/libutil/ber.c
489
if (a->bo_n > b->bo_n)
lib/libutil/ber.c
49
static ssize_t ober_getc(struct ber *b, u_char *c);
lib/libutil/ber.c
845
ober_get_writebuf(struct ber *b, void **buf)
lib/libutil/ber.c
847
if (b->br_wbuf == NULL)
lib/libutil/ber.c
849
*buf = b->br_wbuf;
lib/libutil/ber.c
850
return (b->br_wend - b->br_wbuf);
lib/libutil/ber.c
893
ober_set_readbuf(struct ber *b, void *buf, size_t len)
lib/libutil/ber.c
895
b->br_rbuf = b->br_rptr = buf;
lib/libutil/ber.c
896
b->br_rend = (u_int8_t *)buf + len;
lib/libutil/imsg-buffer.c
103
void *b;
lib/libutil/imsg-buffer.c
131
b = buf->buf + buf->wpos;
lib/libutil/imsg-buffer.c
133
return (b);
lib/libutil/imsg-buffer.c
139
void *b;
lib/libutil/imsg-buffer.c
144
if ((b = ibuf_reserve(buf, len)) == NULL)
lib/libutil/imsg-buffer.c
147
memcpy(b, data, len);
lib/libutil/imsg-buffer.c
238
void *b;
lib/libutil/imsg-buffer.c
243
if ((b = ibuf_reserve(buf, len)) == NULL)
lib/libutil/imsg-buffer.c
245
memset(b, 0, len);
lib/libutil/imsg-buffer.c
252
char *b;
lib/libutil/imsg-buffer.c
255
if ((b = ibuf_reserve(buf, len)) == NULL)
lib/libutil/imsg-buffer.c
258
n = strlcpy(b, str, len);
lib/libutil/imsg-buffer.c
264
memset(b + n, 0, len - n);
lib/libutil/imsg-buffer.c
284
void *b;
lib/libutil/imsg-buffer.c
286
if ((b = ibuf_seek(buf, pos, len)) == NULL)
lib/libutil/imsg-buffer.c
291
memcpy(b, data, len);
lib/libutil/imsg.c
436
struct ibuf *b;
lib/libutil/imsg.c
448
if ((b = ibuf_open(len)) == NULL)
lib/libutil/imsg.c
451
ibuf_fd_set(b, *fd);
lib/libutil/imsg.c
455
return b;
lib/libutil/pkcs5_pbkdf2.c
28
#define MINIMUM(a,b) (((a) < (b)) ? (a) : (b))
lib/libz/crc32.c
161
local uLong multmodp(uLong a, uLong b) {
lib/libz/crc32.c
168
p ^= b;
lib/libz/crc32.c
173
b = b & 1 ? (b >> 1) ^ POLY : b >> 1;
lib/libz/deflate.c
1647
#define MIN(a, b) ((a) > (b) ? (b) : (a))
lib/libz/deflate.c
935
local void putShortMSB(deflate_state *s, uInt b) {
lib/libz/deflate.c
936
put_byte(s, (Byte)(b >> 8));
lib/libz/deflate.c
937
put_byte(s, (Byte)(b & 0xff));
lib/libz/zutil.c
170
void ZLIB_INTERNAL zmemzero(void FAR *b, z_size_t len) {
lib/libz/zutil.c
171
uchf *p = b;
libexec/ld.so/boot.c
46
# define RELOCATE_RELATIVE(w, r, b) *(w) = (r)->r_addend + (b)
libexec/ld.so/boot.c
49
# define RELOCATE_RELATIVE(w, r, b) *(w) += (b)
libexec/ld.so/chacha_private.h
45
#define QUARTERROUND(a,b,c,d) \
libexec/ld.so/chacha_private.h
46
a = PLUS(a,b); d = ROTATE(XOR(d,a),16); \
libexec/ld.so/chacha_private.h
47
c = PLUS(c,d); b = ROTATE(XOR(b,c),12); \
libexec/ld.so/chacha_private.h
48
a = PLUS(a,b); d = ROTATE(XOR(d,a), 8); \
libexec/ld.so/chacha_private.h
49
c = PLUS(c,d); b = ROTATE(XOR(b,c), 7);
libexec/ld.so/dl_printf.c
77
char b = c;
libexec/ld.so/dl_printf.c
84
*outptr++ = b;
libexec/ld.so/dl_printf.c
86
if ((len >= OUTBUFSIZE) || (b == '\n') || (b == '\r')) {
libexec/ld.so/hppa/rtld_machine.c
62
_dl_md_plcmp(hppa_plabel_t *a, hppa_plabel_t *b)
libexec/ld.so/hppa/rtld_machine.c
64
if (a->sl < b->sl)
libexec/ld.so/hppa/rtld_machine.c
66
else if (a->sl > b->sl)
libexec/ld.so/hppa/rtld_machine.c
68
else if (a->pc < b->pc)
libexec/ld.so/hppa/rtld_machine.c
70
else if (a->pc > b->pc)
libexec/ld.so/util.h
39
#define MAXIMUM(a,b) (((a)>(b))?(a):(b))
libexec/login_ldap/aldap.c
458
struct ber b;
libexec/login_ldap/aldap.c
462
b.br_wbuf = NULL;
libexec/login_ldap/aldap.c
464
ober_set_readbuf(&b, encoded, control->be_next->be_len);
libexec/login_ldap/aldap.c
465
elm = ober_read_elements(&b, NULL);
libexec/login_ldap/aldap.c
470
ober_free(&b);
libexec/login_ldap/aldap.c
480
ober_free(&b);
libexec/login_ldap/aldap.c
487
ober_free(&b);
libexec/login_ldap/aldap.c
583
struct ber_element *b;
libexec/login_ldap/aldap.c
591
&key, &b) != 0)
libexec/login_ldap/aldap.c
596
if ((ret = aldap_get_stringset(b)) == NULL)
libexec/login_ldap/aldap.c
648
struct ber_element *a, *b;
libexec/login_ldap/aldap.c
662
if (ober_scanf_elements(a, "{s(e", &descr, &b) != 0)
libexec/login_ldap/aldap.c
670
if ((ret = aldap_get_stringset(b)) == NULL)
libexec/login_yubikey/yubikey.c
119
xtime(uint8_t b)
libexec/login_yubikey/yubikey.c
121
return (b & 0x80) ? ((b << 1) ^ 0x1b) : (b << 1);
libexec/login_yubikey/yubikey.c
257
char b;
libexec/login_yubikey/yubikey.c
264
b = 0;
libexec/login_yubikey/yubikey.c
266
b = (char)(p1 - hex_trans);
libexec/login_yubikey/yubikey.c
268
*dst = b;
libexec/login_yubikey/yubikey.c
270
*dst = (*dst << 4) | b;
libexec/login_yubikey/yubikey.c
284
char b;
libexec/login_yubikey/yubikey.c
291
b = 0;
libexec/login_yubikey/yubikey.c
293
b = (char)(p1 - modhex_trans);
libexec/login_yubikey/yubikey.c
296
*dst = b;
libexec/login_yubikey/yubikey.c
298
*dst = (*dst << 4) | b;
libexec/snmpd/snmpd_metrics/kroute.c
378
kroute_compare(struct kroute_node *a, struct kroute_node *b)
libexec/snmpd/snmpd_metrics/kroute.c
380
if (ntohl(a->r.prefix.s_addr) < ntohl(b->r.prefix.s_addr))
libexec/snmpd/snmpd_metrics/kroute.c
382
if (ntohl(a->r.prefix.s_addr) > ntohl(b->r.prefix.s_addr))
libexec/snmpd/snmpd_metrics/kroute.c
384
if (a->r.prefixlen < b->r.prefixlen)
libexec/snmpd/snmpd_metrics/kroute.c
386
if (a->r.prefixlen > b->r.prefixlen)
libexec/snmpd/snmpd_metrics/kroute.c
390
if (a->r.priority == RTP_ANY || b->r.priority == RTP_ANY)
libexec/snmpd/snmpd_metrics/kroute.c
392
if (a->r.priority < b->r.priority)
libexec/snmpd/snmpd_metrics/kroute.c
394
if (a->r.priority > b->r.priority)
libexec/snmpd/snmpd_metrics/kroute.c
400
kroute6_compare(struct kroute6_node *a, struct kroute6_node *b)
libexec/snmpd/snmpd_metrics/kroute.c
405
if (a->r.prefix.s6_addr[i] < b->r.prefix.s6_addr[i])
libexec/snmpd/snmpd_metrics/kroute.c
407
if (a->r.prefix.s6_addr[i] > b->r.prefix.s6_addr[i])
libexec/snmpd/snmpd_metrics/kroute.c
411
if (a->r.prefixlen < b->r.prefixlen)
libexec/snmpd/snmpd_metrics/kroute.c
413
if (a->r.prefixlen > b->r.prefixlen)
libexec/snmpd/snmpd_metrics/kroute.c
417
if (a->r.priority == RTP_ANY || b->r.priority == RTP_ANY)
libexec/snmpd/snmpd_metrics/kroute.c
419
if (a->r.priority < b->r.priority)
libexec/snmpd/snmpd_metrics/kroute.c
421
if (a->r.priority > b->r.priority)
libexec/snmpd/snmpd_metrics/kroute.c
427
kif_compare(struct kif_node *a, struct kif_node *b)
libexec/snmpd/snmpd_metrics/kroute.c
429
return (a->k.if_index - b->k.if_index);
libexec/snmpd/snmpd_metrics/kroute.c
433
ka_compare(struct kif_addr *a, struct kif_addr *b)
libexec/snmpd/snmpd_metrics/kroute.c
435
if (a->addr.sa.sa_family < b->addr.sa.sa_family)
libexec/snmpd/snmpd_metrics/kroute.c
437
if (a->addr.sa.sa_family > b->addr.sa.sa_family)
libexec/snmpd/snmpd_metrics/kroute.c
439
return (memcmp(&a->addr.sa, &b->addr.sa, a->addr.sa.sa_len));
libexec/snmpd/snmpd_metrics/kroute.c
674
karp_compare(struct kif_arp *a, struct kif_arp *b)
libexec/snmpd/snmpd_metrics/kroute.c
678
ntohl(b->addr.sin.sin_addr.s_addr))
libexec/snmpd/snmpd_metrics/kroute.c
681
ntohl(b->addr.sin.sin_addr.s_addr))
libexec/snmpd/snmpd_metrics/mib.c
746
kinfo_proc_comp(const void *a, const void *b)
libexec/snmpd/snmpd_metrics/mib.c
749
struct kinfo_proc * const *k2 = b;
libexec/snmpd/snmpd_metrics/pf.c
130
pfr_buf_grow(struct pfr_buffer *b, int minsize)
libexec/snmpd/snmpd_metrics/pf.c
135
if (minsize != 0 && minsize <= b->pfrb_msize)
libexec/snmpd/snmpd_metrics/pf.c
137
bs = buf_esize[b->pfrb_type];
libexec/snmpd/snmpd_metrics/pf.c
138
if (!b->pfrb_msize) {
libexec/snmpd/snmpd_metrics/pf.c
141
b->pfrb_caddr = calloc(bs, minsize);
libexec/snmpd/snmpd_metrics/pf.c
142
if (b->pfrb_caddr == NULL)
libexec/snmpd/snmpd_metrics/pf.c
144
b->pfrb_msize = minsize;
libexec/snmpd/snmpd_metrics/pf.c
147
minsize = b->pfrb_msize * 2;
libexec/snmpd/snmpd_metrics/pf.c
152
p = reallocarray(b->pfrb_caddr, minsize, bs);
libexec/snmpd/snmpd_metrics/pf.c
155
bzero(p + b->pfrb_msize * bs, (minsize - b->pfrb_msize) * bs);
libexec/snmpd/snmpd_metrics/pf.c
156
b->pfrb_caddr = p;
libexec/snmpd/snmpd_metrics/pf.c
157
b->pfrb_msize = minsize;
libexec/snmpd/snmpd_metrics/pf.c
163
pfr_buf_next(struct pfr_buffer *b, const void *prev)
libexec/snmpd/snmpd_metrics/pf.c
167
if (b == NULL)
libexec/snmpd/snmpd_metrics/pf.c
169
if (b->pfrb_size == 0)
libexec/snmpd/snmpd_metrics/pf.c
172
return (b->pfrb_caddr);
libexec/snmpd/snmpd_metrics/pf.c
173
bs = buf_esize[b->pfrb_type];
libexec/snmpd/snmpd_metrics/pf.c
174
if ((((const char *)prev)-((char *)b->pfrb_caddr)) / bs >=
libexec/snmpd/snmpd_metrics/pf.c
175
(size_t)b->pfrb_size-1)
libexec/snmpd/snmpd_metrics/pf.c
208
pfi_get(struct pfr_buffer *b, const char *filter)
libexec/snmpd/snmpd_metrics/pf.c
210
bzero(b, sizeof(struct pfr_buffer));
libexec/snmpd/snmpd_metrics/pf.c
211
b->pfrb_type = PFRB_IFACES;
libexec/snmpd/snmpd_metrics/pf.c
213
pfr_buf_grow(b, 0);
libexec/snmpd/snmpd_metrics/pf.c
214
b->pfrb_size = b->pfrb_msize;
libexec/snmpd/snmpd_metrics/pf.c
215
if (pfi_get_ifaces(filter, b->pfrb_caddr, &(b->pfrb_size)))
libexec/snmpd/snmpd_metrics/pf.c
217
if (b->pfrb_size < b->pfrb_msize)
libexec/snmpd/snmpd_metrics/pf.c
227
struct pfr_buffer b;
libexec/snmpd/snmpd_metrics/pf.c
231
if (pfi_get(&b, NULL)) {
libexec/snmpd/snmpd_metrics/pf.c
232
free(b.pfrb_caddr);
libexec/snmpd/snmpd_metrics/pf.c
236
PFRB_FOREACH(p, &b)
libexec/snmpd/snmpd_metrics/pf.c
239
free(b.pfrb_caddr);
libexec/snmpd/snmpd_metrics/pf.c
246
struct pfr_buffer b;
libexec/snmpd/snmpd_metrics/pf.c
250
if (pfi_get(&b, NULL)) {
libexec/snmpd/snmpd_metrics/pf.c
251
free(b.pfrb_caddr);
libexec/snmpd/snmpd_metrics/pf.c
255
PFRB_FOREACH(p, &b) {
libexec/snmpd/snmpd_metrics/pf.c
262
free(b.pfrb_caddr);
libexec/snmpd/snmpd_metrics/pf.c
267
free(b.pfrb_caddr);
libexec/snmpd/snmpd_metrics/pf.c
273
pft_get(struct pfr_buffer *b, struct pfr_table *filter)
libexec/snmpd/snmpd_metrics/pf.c
275
bzero(b, sizeof(struct pfr_buffer));
libexec/snmpd/snmpd_metrics/pf.c
276
b->pfrb_type = PFRB_TSTATS;
libexec/snmpd/snmpd_metrics/pf.c
279
pfr_buf_grow(b, b->pfrb_size);
libexec/snmpd/snmpd_metrics/pf.c
280
b->pfrb_size = b->pfrb_msize;
libexec/snmpd/snmpd_metrics/pf.c
281
if (pfr_get_tstats(filter, b->pfrb_caddr, &(b->pfrb_size), 0))
libexec/snmpd/snmpd_metrics/pf.c
283
if (b->pfrb_size <= b->pfrb_msize)
libexec/snmpd/snmpd_metrics/pf.c
293
struct pfr_buffer b;
libexec/snmpd/snmpd_metrics/pf.c
297
if (pft_get(&b, NULL)) {
libexec/snmpd/snmpd_metrics/pf.c
298
free(b.pfrb_caddr);
libexec/snmpd/snmpd_metrics/pf.c
302
PFRB_FOREACH(ts, &b) {
libexec/snmpd/snmpd_metrics/pf.c
311
free(b.pfrb_caddr);
libexec/snmpd/snmpd_metrics/pf.c
316
free(b.pfrb_caddr);
libexec/snmpd/snmpd_metrics/pf.c
324
struct pfr_buffer b;
libexec/snmpd/snmpd_metrics/pf.c
328
if (pft_get(&b, NULL)) {
libexec/snmpd/snmpd_metrics/pf.c
329
free(b.pfrb_caddr);
libexec/snmpd/snmpd_metrics/pf.c
333
PFRB_FOREACH(ts, &b) {
libexec/snmpd/snmpd_metrics/pf.c
339
free(b.pfrb_caddr);
libexec/snmpd/snmpd_metrics/pf.c
344
pfta_get(struct pfr_buffer *b, struct pfr_table *filter)
libexec/snmpd/snmpd_metrics/pf.c
346
bzero(b, sizeof(struct pfr_buffer));
libexec/snmpd/snmpd_metrics/pf.c
347
b->pfrb_type = PFRB_ASTATS;
libexec/snmpd/snmpd_metrics/pf.c
350
pfr_buf_grow(b, b->pfrb_size);
libexec/snmpd/snmpd_metrics/pf.c
351
b->pfrb_size = b->pfrb_msize;
libexec/snmpd/snmpd_metrics/pf.c
352
if (pfr_get_astats(filter, b->pfrb_caddr, &(b->pfrb_size), 0)) {
libexec/snmpd/snmpd_metrics/pf.c
355
if (b->pfrb_size <= b->pfrb_msize)
libexec/spamd-setup/spamd-setup.c
101
if (b == 0)
libexec/spamd-setup/spamd-setup.c
103
return (0xffffffffU << (32 - b));
libexec/spamd-setup/spamd-setup.c
122
maxdiff(u_int32_t a, u_int32_t b)
libexec/spamd-setup/spamd-setup.c
127
b++;
libexec/spamd-setup/spamd-setup.c
131
if ((a & m) != (b & m))
libexec/spamd-setup/spamd-setup.c
236
start->b = 0;
libexec/spamd-setup/spamd-setup.c
238
end->b = 0;
libexec/spamd-setup/spamd-setup.c
241
start->b = 1;
libexec/spamd-setup/spamd-setup.c
243
end->b = -1;
libexec/spamd-setup/spamd-setup.c
540
cmpbl(const void *a, const void *b)
libexec/spamd-setup/spamd-setup.c
542
if (((struct bl *)a)->addr > ((struct bl *) b)->addr)
libexec/spamd-setup/spamd-setup.c
544
if (((struct bl *)a)->addr < ((struct bl *) b)->addr)
libexec/spamd-setup/spamd-setup.c
55
int8_t b;
libexec/spamd-setup/spamd-setup.c
583
bs += bl[i].b;
libexec/spamd-setup/spamd-setup.c
96
#define MAXIMUM(a,b) (((a)>(b))?(a):(b))
libexec/spamd-setup/spamd-setup.c
99
imask(u_int8_t b)
libexec/spamd/sdl.c
52
const struct sdentry_v4 *b = vb;
libexec/spamd/sdl.c
58
bb.s_addr = ntohl(b->sda.s_addr);
libexec/spamd/sdl.c
71
const struct sdentry_v6 *b = vb;
libexec/spamd/sdl.c
81
bb.addr32[0] = ntohl(b->sda.addr32[0]);
libexec/spamd/sdl.c
82
bb.addr32[1] = ntohl(b->sda.addr32[1]);
libexec/spamd/sdl.c
83
bb.addr32[2] = ntohl(b->sda.addr32[2]);
libexec/spamd/sdl.c
84
bb.addr32[3] = ntohl(b->sda.addr32[3]);
libexec/spamd/spamd.c
170
#define MAXIMUM(a,b) (((a)>(b))?(a):(b))
libexec/talkd/announce.c
76
#define max(a,b) ( (a) > (b) ? (a) : (b) )
libexec/talkd/process.c
204
#define SCMPN(a, b) strncmp(a, b, sizeof(a))
libexec/tradcpp/place.c
238
place_samefile(const struct place *a, const struct place *b)
libexec/tradcpp/place.c
240
if (a->type != b->type) {
libexec/tradcpp/place.c
243
if (a->file != b->file) {
libexec/tradcpp/place.c
250
place_eq(const struct place *a, const struct place *b)
libexec/tradcpp/place.c
252
if (!place_samefile(a, b)) {
libexec/tradcpp/place.c
255
if (a->line != b->line || a->column != b->column) {
libexec/tradcpp/utils.h
36
#define PF(a, b) __attribute__((__format__(__printf__, a, b)))
libexec/tradcpp/utils.h
40
#define PF(a, b)
regress/include/bitstring/bitstring_test.c
31
clearbits(bitstr_t *b, int n)
regress/include/bitstring/bitstring_test.c
36
*(b + i) = 0;
regress/include/bitstring/bitstring_test.c
40
printbits(bitstr_t *b, int n)
regress/include/bitstring/bitstring_test.c
45
bit_ffc(b, n, &jc);
regress/include/bitstring/bitstring_test.c
46
bit_ffs(b, n, &js);
regress/include/bitstring/bitstring_test.c
49
(void) putchar((bit_test(b, i) ? '1' : '0'));
regress/lib/libc/arc4random-fork/arc4random-fork.c
29
#define CHECK_EQ(a, b) assert((a) == (b))
regress/lib/libc/arc4random-fork/arc4random-fork.c
30
#define CHECK_NE(a, b) assert((a) != (b))
regress/lib/libc/arc4random-fork/arc4random-fork.c
31
#define CHECK_GE(a, b) assert((a) >= (b))
regress/lib/libc/arc4random-fork/arc4random-fork.c
32
#define CHECK_LE(a, b) assert((a) <= (b))
regress/lib/libc/arch/alpha/divremtest/divremtest.c
142
#define TRY_IT(a, b, c) \
regress/lib/libc/arch/alpha/divremtest/divremtest.c
143
divres.a = op1.b / op2.c; \
regress/lib/libc/arch/alpha/divremtest/divremtest.c
144
modres.a = op1.b % op2.c; \
regress/lib/libc/asr/bin/res_mkquery.c
268
char b[256];
regress/lib/libc/asr/bin/res_mkquery.c
271
print_dname(q->q_dname, b, sizeof b),
regress/lib/libc/asr/bin/res_query.c
304
char b[256];
regress/lib/libc/asr/bin/res_query.c
307
print_dname(q->q_dname, b, sizeof b),
regress/lib/libc/cephes/elog.c
106
ltoe( &ex, b );
regress/lib/libc/cephes/elog.c
107
emul( elog2, b, b );
regress/lib/libc/cephes/elog.c
108
eadd( b, y, y );
regress/lib/libc/cephes/elog.c
31
unsigned short xx[NE], z[NE], a[NE], b[NE], t[NE], qj[NE];
regress/lib/libc/cephes/elog.c
79
eadd( eone, xx, b );
regress/lib/libc/cephes/elog.c
80
ediv( b, a, y ); /* store (x-1)/(x+1) in y */
regress/lib/libc/cephes/elog.c
85
emov( eone, b );
regress/lib/libc/cephes/elog.c
92
eadd( t, b, b );
regress/lib/libc/cephes/elog.c
94
while( ((b[NE-1] & 0x7fff) - (t[NE-1] & 0x7fff)) < NBITS );
regress/lib/libc/cephes/elog.c
97
emul( b, y, y );
regress/lib/libc/cephes/ieee.c
1046
int emulm( a, b )
regress/lib/libc/cephes/ieee.c
1047
unsigned short a[], b[];
regress/lib/libc/cephes/ieee.c
1054
equot[0] = b[0];
regress/lib/libc/cephes/ieee.c
1055
equot[1] = b[1];
regress/lib/libc/cephes/ieee.c
1070
m16m( *p--, b, pprod );
regress/lib/libc/cephes/ieee.c
1078
b[i] = equot[i];
regress/lib/libc/cephes/ieee.c
1340
void esub( a, b, c )
regress/lib/libc/cephes/ieee.c
1341
unsigned short *a, *b, *c;
regress/lib/libc/cephes/ieee.c
1350
if( eisnan(b) )
regress/lib/libc/cephes/ieee.c
1352
emov(b,c);
regress/lib/libc/cephes/ieee.c
1358
if( eisinf(a) && eisinf(b) && ((eisneg (a) ^ eisneg (b)) == 0))
regress/lib/libc/cephes/ieee.c
1366
eadd1( a, b, c );
regress/lib/libc/cephes/ieee.c
1376
void eadd( a, b, c )
regress/lib/libc/cephes/ieee.c
1377
unsigned short *a, *b, *c;
regress/lib/libc/cephes/ieee.c
1387
if( eisnan(b) )
regress/lib/libc/cephes/ieee.c
1389
emov(b,c);
regress/lib/libc/cephes/ieee.c
1395
if( eisinf(a) && eisinf(b)
regress/lib/libc/cephes/ieee.c
1396
&& ((eisneg(a) ^ eisneg(b)) != 0) )
regress/lib/libc/cephes/ieee.c
1404
eadd1( a, b, c );
regress/lib/libc/cephes/ieee.c
1407
void eadd1( a, b, c )
regress/lib/libc/cephes/ieee.c
1408
unsigned short *a, *b, *c;
regress/lib/libc/cephes/ieee.c
1422
if( eisinf(b) )
regress/lib/libc/cephes/ieee.c
1424
emov(b,c);
regress/lib/libc/cephes/ieee.c
1429
emovi( b, bi );
regress/lib/libc/cephes/ieee.c
1523
void ediv( a, b, c )
regress/lib/libc/cephes/ieee.c
1524
unsigned short *a, *b, *c;
regress/lib/libc/cephes/ieee.c
1532
sign = eisneg(a) ^ eisneg(b);
regress/lib/libc/cephes/ieee.c
1541
if( eisnan(b) )
regress/lib/libc/cephes/ieee.c
1543
emov(b,c);
regress/lib/libc/cephes/ieee.c
1547
if( ((ecmp(a,ezero) == 0) && (ecmp(b,ezero) == 0))
regress/lib/libc/cephes/ieee.c
1548
|| (eisinf (a) && eisinf (b)) )
regress/lib/libc/cephes/ieee.c
1557
if( eisinf(b) )
regress/lib/libc/cephes/ieee.c
1569
emovi( b, bi );
regress/lib/libc/cephes/ieee.c
1625
void emul( a, b, c )
regress/lib/libc/cephes/ieee.c
1626
unsigned short *a, *b, *c;
regress/lib/libc/cephes/ieee.c
1634
sign = eisneg(a) ^ eisneg(b);
regress/lib/libc/cephes/ieee.c
1643
if( eisnan(b) )
regress/lib/libc/cephes/ieee.c
1645
emov(b,c);
regress/lib/libc/cephes/ieee.c
1649
if( (eisinf(a) && (ecmp(b,ezero) == 0))
regress/lib/libc/cephes/ieee.c
1650
|| (eisinf(b) && (ecmp(a,ezero) == 0)) )
regress/lib/libc/cephes/ieee.c
1659
if( eisinf(a) || eisinf(b) )
regress/lib/libc/cephes/ieee.c
1666
emovi( b, bi );
regress/lib/libc/cephes/ieee.c
2087
static void toe113(a,b)
regress/lib/libc/cephes/ieee.c
2088
unsigned short *a, *b;
regress/lib/libc/cephes/ieee.c
2096
enan( b, 113 );
regress/lib/libc/cephes/ieee.c
2102
q = b;
regress/lib/libc/cephes/ieee.c
2104
q = b + 7; /* point to output exponent */
regress/lib/libc/cephes/ieee.c
2168
static void toe64( a, b )
regress/lib/libc/cephes/ieee.c
2169
unsigned short *a, *b;
regress/lib/libc/cephes/ieee.c
217
void emov( a, b )
regress/lib/libc/cephes/ieee.c
2177
enan( b, 64 );
regress/lib/libc/cephes/ieee.c
218
register unsigned short *a, *b;
regress/lib/libc/cephes/ieee.c
2188
q = b;
regress/lib/libc/cephes/ieee.c
2190
q = b + 4; /* point to output exponent */
regress/lib/libc/cephes/ieee.c
223
*b++ = *a++;
regress/lib/libc/cephes/ieee.c
2493
int ecmp( a, b )
regress/lib/libc/cephes/ieee.c
2494
unsigned short *a, *b;
regress/lib/libc/cephes/ieee.c
2502
if (eisnan (a) || eisnan (b))
regress/lib/libc/cephes/ieee.c
2507
emovi( b, bi );
regress/lib/libc/cephes/ieee.c
374
void emovi( a, b )
regress/lib/libc/cephes/ieee.c
375
unsigned short *a, *b;
regress/lib/libc/cephes/ieee.c
380
q = b;
regress/lib/libc/cephes/ieee.c
3910
void eremain( a, b, c )
regress/lib/libc/cephes/ieee.c
3911
unsigned short a[], b[], c[];
regress/lib/libc/cephes/ieee.c
3916
if( eisinf(b) || (ecmp(a,ezero) == 0) || eisnan(a) || eisnan(b))
regress/lib/libc/cephes/ieee.c
3929
emovi( b, num );
regress/lib/libc/cephes/ieee.c
3932
if( a[0] == b[0] )
regress/lib/libc/cephes/ieee.c
420
void emovo( a, b )
regress/lib/libc/cephes/ieee.c
421
unsigned short *a, *b;
regress/lib/libc/cephes/ieee.c
427
q = b + (NE-1); /* point to output exponent */
regress/lib/libc/cephes/ieee.c
440
enan( b, NBITS );
regress/lib/libc/cephes/ieee.c
444
einfin(b);
regress/lib/libc/cephes/ieee.c
487
void emovz( a, b )
regress/lib/libc/cephes/ieee.c
488
register unsigned short *a, *b;
regress/lib/libc/cephes/ieee.c
493
*b++ = *a++;
regress/lib/libc/cephes/ieee.c
495
*b = 0;
regress/lib/libc/cephes/ieee.c
547
int ecmpm( a, b )
regress/lib/libc/cephes/ieee.c
548
register unsigned short *a, *b;
regress/lib/libc/cephes/ieee.c
553
b += M;
regress/lib/libc/cephes/ieee.c
556
if( *a++ != *b++ )
regress/lib/libc/cephes/ieee.c
562
if( *(--a) > *(--b) )
regress/lib/libc/cephes/ieee.c
863
int emulm( a, b )
regress/lib/libc/cephes/ieee.c
864
unsigned short a[], b[];
regress/lib/libc/cephes/ieee.c
869
equot[0] = b[0];
regress/lib/libc/cephes/ieee.c
870
equot[1] = b[1];
regress/lib/libc/cephes/ieee.c
892
eaddm(b, equot);
regress/lib/libc/cephes/ieee.c
901
b[i] = equot[i];
regress/lib/libc/cephes/ieee.c
912
void m16m( a, b, c )
regress/lib/libc/cephes/ieee.c
914
unsigned short b[], c[];
regress/lib/libc/cephes/ieee.c
927
ps = &b[NI-1];
regress/lib/libc/db/dbtest.c
47
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
regress/lib/libc/elf_aux_info/elf_aux_info.c
11
unsigned long b;
regress/lib/libc/elf_aux_info/elf_aux_info.c
29
switch (elf_aux_info(AT_HWCAP, &b, sizeof(b))) {
regress/lib/libc/elf_aux_info/elf_aux_info.c
31
fprintf(stderr, "AT_HWCAP %lx\n", b);
regress/lib/libc/elf_aux_info/elf_aux_info.c
40
switch (elf_aux_info(AT_HWCAP2, &b, sizeof(b))) {
regress/lib/libc/elf_aux_info/elf_aux_info.c
42
fprintf(stderr, "AT_HWCAP2 %lx\n", b);
regress/lib/libc/explicit_bzero/explicit_bzero.c
25
#define ASSERT_EQ(a, b) assert((a) == (b))
regress/lib/libc/explicit_bzero/explicit_bzero.c
26
#define ASSERT_NE(a, b) assert((a) != (b))
regress/lib/libc/explicit_bzero/explicit_bzero.c
27
#define ASSERT_GE(a, b) assert((a) >= (b))
regress/lib/libc/qsort/qsort_test.c
100
return a > b ? 1 : a < b ? -1 : 0;
regress/lib/libc/qsort/qsort_test.c
107
const double b = *(const double *)v2;
regress/lib/libc/qsort/qsort_test.c
109
return a > b ? 1 : a < b ? -1 : 0;
regress/lib/libc/qsort/qsort_test.c
116
const double b = *(const double *)v2;
regress/lib/libc/qsort/qsort_test.c
121
return a > b ? 1 : a < b ? -1 : 0;
regress/lib/libc/qsort/qsort_test.c
50
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
regress/lib/libc/qsort/qsort_test.c
51
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
regress/lib/libc/qsort/qsort_test.c
65
const int b = *(const int *)v2;
regress/lib/libc/qsort/qsort_test.c
67
return a > b ? 1 : a < b ? -1 : 0;
regress/lib/libc/qsort/qsort_test.c
74
const int b = *(const int *)v2;
regress/lib/libc/qsort/qsort_test.c
79
return a > b ? 1 : a < b ? -1 : 0;
regress/lib/libc/qsort/qsort_test.c
86
const long long b = *(const long long *)v2;
regress/lib/libc/qsort/qsort_test.c
88
return a > b ? 1 : a < b ? -1 : 0;
regress/lib/libc/qsort/qsort_test.c
95
const long long b = *(const long long *)v2;
regress/lib/libc/setjmp/jmptest.c
50
#define SET(b, m) setjmp(b)
regress/lib/libc/setjmp/jmptest.c
51
#define JMP(b, v) longjmp(b, v)
regress/lib/libc/setjmp/jmptest.c
56
#define SET(b, m) _setjmp(b)
regress/lib/libc/setjmp/jmptest.c
57
#define JMP(b, v) _longjmp(b, v)
regress/lib/libc/setjmp/jmptest.c
62
#define SET(b, m) sigsetjmp(b, m)
regress/lib/libc/setjmp/jmptest.c
63
#define JMP(b, v) siglongjmp(b, v)
regress/lib/libc/sys/atf-c.h
101
#define atf_tc_get_config_var(a, b) "."
regress/lib/libc/sys/atf-c.h
88
#define ATF_REQUIRE_EQ(a, b) atf_req((a) == (b), -1, NULL)
regress/lib/libc/sys/atf-c.h
89
#define ATF_REQUIRE_EQ_MSG(a, b, fmt, ...) \
regress/lib/libc/sys/atf-c.h
90
atf_req((a) == (b), -1, fmt, ##__VA_ARGS__)
regress/lib/libc/sys/macros.h
66
#define pollts(a, b, c, e) 0
regress/lib/libc/sys/t_recvmmsg.c
59
#define min(a, b) ((a) < (b) ? (a) : (b))
regress/lib/libc/sys/t_sendmmsg.c
52
#define min(a, b) ((a) < (b) ? (a) : (b))
regress/lib/libc/timekeep/test_clock_gettime.c
21
#define ASSERT_EQ(a, b) assert((a) == (b))
regress/lib/libc/timekeep/test_gettimeofday.c
21
#define ASSERT_EQ(a, b) assert((a) == (b))
regress/lib/libc/timekeep/test_time_skew.c
25
#define ASSERT_EQ(a, b) assert((a) == (b))
regress/lib/libc/timekeep/test_time_skew.c
26
#define ASSERT_NE(a, b) assert((a) != (b))
regress/lib/libc/timingsafe/timingsafe.c
22
#define ASSERT_EQ(a, b) assert((a) == (b))
regress/lib/libc/uuid/uuidtest.c
24
#define ASSERT_EQ(a, b) assert((a) == (b))
regress/lib/libcrypto/asn1/asn1basic.c
1116
ASN1_INTEGER *a = NULL, *b = NULL;
regress/lib/libcrypto/asn1/asn1basic.c
1121
if ((b = ASN1_INTEGER_new()) == NULL)
regress/lib/libcrypto/asn1/asn1basic.c
1124
if (ASN1_INTEGER_cmp(a, b) != 0) {
regress/lib/libcrypto/asn1/asn1basic.c
1129
if (!ASN1_INTEGER_set(b, 1)) {
regress/lib/libcrypto/asn1/asn1basic.c
1133
if (ASN1_INTEGER_cmp(a, b) >= 0) {
regress/lib/libcrypto/asn1/asn1basic.c
1137
if (ASN1_INTEGER_cmp(b, a) <= 0) {
regress/lib/libcrypto/asn1/asn1basic.c
1142
if (!ASN1_INTEGER_set(b, -1)) {
regress/lib/libcrypto/asn1/asn1basic.c
1146
if (ASN1_INTEGER_cmp(a, b) <= 0) {
regress/lib/libcrypto/asn1/asn1basic.c
1150
if (ASN1_INTEGER_cmp(b, a) >= 0) {
regress/lib/libcrypto/asn1/asn1basic.c
1159
if (ASN1_INTEGER_cmp(a, b) <= 0) {
regress/lib/libcrypto/asn1/asn1basic.c
1163
if (ASN1_INTEGER_cmp(b, a) >= 0) {
regress/lib/libcrypto/asn1/asn1basic.c
1168
if (!ASN1_INTEGER_set(b, 1)) {
regress/lib/libcrypto/asn1/asn1basic.c
1172
if (ASN1_INTEGER_cmp(a, b) != 0) {
regress/lib/libcrypto/asn1/asn1basic.c
1181
ASN1_INTEGER_free(b);
regress/lib/libcrypto/asn1/asn1basic.c
1467
ASN1_STRING *a = NULL, *b = NULL;
regress/lib/libcrypto/asn1/asn1basic.c
1480
if ((b = ASN1_STRING_type_new(V_ASN1_UTF8STRING)) == NULL) {
regress/lib/libcrypto/asn1/asn1basic.c
1494
if (ASN1_STRING_cmp(a, b) >= 0) {
regress/lib/libcrypto/asn1/asn1basic.c
1499
if ((got = ASN1_STRING_cmp(b, a)) != want) {
regress/lib/libcrypto/asn1/asn1basic.c
1506
ASN1_STRING_set0(b, comparison_str, strlen(comparison_str));
regress/lib/libcrypto/asn1/asn1basic.c
1510
b->flags |= ASN1_STRING_FLAG_NDEF;
regress/lib/libcrypto/asn1/asn1basic.c
1512
if ((got = ASN1_STRING_cmp(b, a)) != want) {
regress/lib/libcrypto/asn1/asn1basic.c
1518
b->type = V_ASN1_OCTET_STRING;
regress/lib/libcrypto/asn1/asn1basic.c
1520
if ((got = ASN1_STRING_cmp(a, b)) != 0) {
regress/lib/libcrypto/asn1/asn1basic.c
1525
if (!ASN1_STRING_set(b, "myString", -1)) {
regress/lib/libcrypto/asn1/asn1basic.c
1530
if ((got = ASN1_STRING_cmp(a, b)) <= 0) {
regress/lib/libcrypto/asn1/asn1basic.c
1535
if ((got = ASN1_STRING_cmp(b, a)) >= 0) {
regress/lib/libcrypto/asn1/asn1basic.c
1540
ASN1_STRING_length_set(b, 2);
regress/lib/libcrypto/asn1/asn1basic.c
1544
if ((got = ASN1_STRING_cmp(a, b)) != want) {
regress/lib/libcrypto/asn1/asn1basic.c
1552
if ((got = ASN1_STRING_cmp(b, a)) != want) {
regress/lib/libcrypto/asn1/asn1basic.c
1560
if ((got = ASN1_STRING_cmp(a, b)) != 0) {
regress/lib/libcrypto/asn1/asn1basic.c
1567
ASN1_STRING_set0(b, NULL, 0);
regress/lib/libcrypto/asn1/asn1basic.c
1570
if ((got = ASN1_STRING_cmp(a, b)) != want) {
regress/lib/libcrypto/asn1/asn1basic.c
1576
ASN1_STRING_set0(b, "", 0);
regress/lib/libcrypto/asn1/asn1basic.c
1577
b->flags |= ASN1_STRING_FLAG_NDEF;
regress/lib/libcrypto/asn1/asn1basic.c
1579
if ((got = ASN1_STRING_cmp(a, b)) != want) {
regress/lib/libcrypto/asn1/asn1basic.c
1586
if ((got = ASN1_STRING_cmp(a, b)) != 0) {
regress/lib/libcrypto/asn1/asn1basic.c
1591
if ((got = ASN1_STRING_cmp(b, a)) != 0) {
regress/lib/libcrypto/asn1/asn1basic.c
1601
ASN1_STRING_free(b);
regress/lib/libcrypto/asn1/asn1time.c
331
int64_t a = t, b = att->time;
regress/lib/libcrypto/asn1/asn1time.c
335
test_no, (long long)b, (long long)a);
regress/lib/libcrypto/bn/bn_add_sub.c
170
print_failure_case(BIGNUM *a, BIGNUM *b, BIGNUM *e, BIGNUM *r, int i,
regress/lib/libcrypto/bn/bn_add_sub.c
177
BN_print_fp(stderr, b);
regress/lib/libcrypto/bn/bn_add_sub.c
189
BIGNUM *a = NULL, *b = NULL, *e = NULL, *r = NULL;
regress/lib/libcrypto/bn/bn_add_sub.c
194
((b = BN_new()) == NULL) ||
regress/lib/libcrypto/bn/bn_add_sub.c
206
!BN_hex2bn(&b, tests[i].b_hex) ||
regress/lib/libcrypto/bn/bn_add_sub.c
212
if (tests[i].ret != bn_op(r, a, b))
regress/lib/libcrypto/bn/bn_add_sub.c
218
print_failure_case(a, b, e, r, i, testname);
regress/lib/libcrypto/bn/bn_add_sub.c
224
BN_free(b);
regress/lib/libcrypto/bn/bn_cmp.c
111
BIGNUM *a = NULL, *b = NULL;
regress/lib/libcrypto/bn/bn_cmp.c
120
if ((b = BN_new()) == NULL) {
regress/lib/libcrypto/bn/bn_cmp.c
132
if (!BN_hex2bn(&b, bct->b)) {
regress/lib/libcrypto/bn/bn_cmp.c
137
if ((ret = BN_cmp(a, b)) != bct->cmp) {
regress/lib/libcrypto/bn/bn_cmp.c
139
bct->a, bct->b, ret, bct->cmp);
regress/lib/libcrypto/bn/bn_cmp.c
142
if ((ret = BN_ucmp(a, b)) != bct->ucmp) {
regress/lib/libcrypto/bn/bn_cmp.c
144
bct->a, bct->b, ret, bct->ucmp);
regress/lib/libcrypto/bn/bn_cmp.c
153
BN_free(b);
regress/lib/libcrypto/bn/bn_cmp.c
220
int b;
regress/lib/libcrypto/bn/bn_cmp.c
228
.b = -1,
regress/lib/libcrypto/bn/bn_cmp.c
234
.b = 0,
regress/lib/libcrypto/bn/bn_cmp.c
24
const char *b;
regress/lib/libcrypto/bn/bn_cmp.c
240
.b = 1,
regress/lib/libcrypto/bn/bn_cmp.c
246
.b = 1,
regress/lib/libcrypto/bn/bn_cmp.c
252
.b = 0,
regress/lib/libcrypto/bn/bn_cmp.c
258
.b = 0,
regress/lib/libcrypto/bn/bn_cmp.c
264
.b = -1,
regress/lib/libcrypto/bn/bn_cmp.c
270
.b = 1,
regress/lib/libcrypto/bn/bn_cmp.c
276
.b = -1,
regress/lib/libcrypto/bn/bn_cmp.c
289
BIGNUM *a = NULL, *b = NULL;
regress/lib/libcrypto/bn/bn_cmp.c
299
if ((b = BN_new()) == NULL) {
regress/lib/libcrypto/bn/bn_cmp.c
318
if (bcwt->b >= 0) {
regress/lib/libcrypto/bn/bn_cmp.c
319
v = bcwt->b;
regress/lib/libcrypto/bn/bn_cmp.c
32
.b = "0",
regress/lib/libcrypto/bn/bn_cmp.c
321
v = 0 - bcwt->b;
regress/lib/libcrypto/bn/bn_cmp.c
323
if (!BN_set_word(b, v)) {
regress/lib/libcrypto/bn/bn_cmp.c
327
BN_set_negative(b, (bcwt->b < 0));
regress/lib/libcrypto/bn/bn_cmp.c
329
if ((ret = BN_cmp(a, b)) != bcwt->cmp) {
regress/lib/libcrypto/bn/bn_cmp.c
331
bcwt->a, bcwt->b, ret, bcwt->cmp);
regress/lib/libcrypto/bn/bn_cmp.c
334
if ((ret = BN_ucmp(a, b)) != bcwt->ucmp) {
regress/lib/libcrypto/bn/bn_cmp.c
336
bcwt->a, bcwt->b, ret, bcwt->ucmp);
regress/lib/libcrypto/bn/bn_cmp.c
345
BN_free(b);
regress/lib/libcrypto/bn/bn_cmp.c
38
.b = "0",
regress/lib/libcrypto/bn/bn_cmp.c
44
.b = "1ffffffffffffffff",
regress/lib/libcrypto/bn/bn_cmp.c
50
.b = "1ffffffffffffffff",
regress/lib/libcrypto/bn/bn_cmp.c
56
.b = "1fffffffffffffffe",
regress/lib/libcrypto/bn/bn_cmp.c
62
.b = "1ffffffffffffffff",
regress/lib/libcrypto/bn/bn_cmp.c
68
.b = "0",
regress/lib/libcrypto/bn/bn_cmp.c
74
.b = "0",
regress/lib/libcrypto/bn/bn_cmp.c
80
.b = "00000000000000001ffffffffffffffff",
regress/lib/libcrypto/bn/bn_cmp.c
86
.b = "-00000000000000001ffffffffffffffff",
regress/lib/libcrypto/bn/bn_cmp.c
92
.b = "-00000000000000001ffffffffffffffff",
regress/lib/libcrypto/bn/bn_cmp.c
98
.b = "00000000000000001ffffffffffffffff",
regress/lib/libcrypto/bn/bn_gcd.c
1000
.b = "56d9d823ecb6a7612e0a8cee927d88080b29dc95435ed411"
regress/lib/libcrypto/bn/bn_gcd.c
1008
.b = "5d4d9d53bbfd5a82c49c7e7c33dc0bad53dde899642bfe83"
regress/lib/libcrypto/bn/bn_gcd.c
1016
.b = "4ef20f6226388decfc59dcaa0662c74554f170027b344c10"
regress/lib/libcrypto/bn/bn_gcd.c
1024
.b = "5ad7495b98a54265ceb0e36c7bd1b1fbafed5d0d32790166"
regress/lib/libcrypto/bn/bn_gcd.c
1032
.b = "334c4a3485923bd40e7f476260a668bd2743c79c819f2328"
regress/lib/libcrypto/bn/bn_gcd.c
104
.b = "41f",
regress/lib/libcrypto/bn/bn_gcd.c
1040
.b = "ff4b7acaffca1ecdb159befd40177452837d1596ca45f2ad"
regress/lib/libcrypto/bn/bn_gcd.c
1048
.b = "3ce8f8d96e0dc345e2ed0268bbd0b9149eaf79be4bcdc2de"
regress/lib/libcrypto/bn/bn_gcd.c
1056
.b = "3a36d5da926d5c775e4588939d740d7ffd01a37fa1157fae"
regress/lib/libcrypto/bn/bn_gcd.c
1064
.b = "5547ee69224b4569a774ddff29c386e050d79f68105ce717"
regress/lib/libcrypto/bn/bn_gcd.c
1072
.b = "505f3e85baf27ffc59822432dc6be370282d2a50345d7e93"
regress/lib/libcrypto/bn/bn_gcd.c
1080
.b = "c5502a7884c7dc04608aa4b3a990050517fea2c56775a128"
regress/lib/libcrypto/bn/bn_gcd.c
1088
.b = "51257f27b935687b014f8140c4b59542e8fefc1bf201d11b"
regress/lib/libcrypto/bn/bn_gcd.c
109
.b = "5bff1",
regress/lib/libcrypto/bn/bn_gcd.c
1096
.b = "6a47460921edc3de377569b670ea0a919c375314a366c652"
regress/lib/libcrypto/bn/bn_gcd.c
1104
.b = "66889dcc9881c53db1c02f741e462203dc40edb1931ca92e"
regress/lib/libcrypto/bn/bn_gcd.c
1112
.b = "4f2a601d7f0f802ead4383cb18fc55ddad88347cc569e73c"
regress/lib/libcrypto/bn/bn_gcd.c
1120
.b = "764c31550c2fbbc8df2ff51a11116286af8613aa215fff71"
regress/lib/libcrypto/bn/bn_gcd.c
1128
.b = "722162ef71899f03ea9c3a79f42f113c042ef1a98dd832e9"
regress/lib/libcrypto/bn/bn_gcd.c
1136
.b = "705df82ca14906c33ca0274f8e1b1f298aa423c611baa0e3"
regress/lib/libcrypto/bn/bn_gcd.c
114
.b = "29be3",
regress/lib/libcrypto/bn/bn_gcd.c
1144
.b = "4db0ffa81b690182e0f3e06ef9e69026b5ce6406a896dc83"
regress/lib/libcrypto/bn/bn_gcd.c
1152
.b = "1bfd911d099dab2ada4a8802cb0458c6b0595a165007f8f1"
regress/lib/libcrypto/bn/bn_gcd.c
1160
.b = "4d9f3309128c553d5f57ec02bbba290e57c26267cdd1a5cc"
regress/lib/libcrypto/bn/bn_gcd.c
1168
.b = "1fc2b218e131cad304876c1d09bf163f9612bf5afdd2bab9"
regress/lib/libcrypto/bn/bn_gcd.c
1176
.b = "39366d8a79b046202bd9ae5472ed7e49dbfc090063844b5b"
regress/lib/libcrypto/bn/bn_gcd.c
1184
.b = "3ff5db132200d8c379e548a6e3c934bae79fd509fc36efc9"
regress/lib/libcrypto/bn/bn_gcd.c
119
.b = "5770e",
regress/lib/libcrypto/bn/bn_gcd.c
1192
.b = "749e450b884827115eb77c622300f5b002c48f2257baffd5"
regress/lib/libcrypto/bn/bn_gcd.c
1200
.b = "25d3d1bd9b2d0149e5d1811b4de4814577f0dcbdbfbffbff"
regress/lib/libcrypto/bn/bn_gcd.c
1208
.b = "4557e77035caf8429267990f443b9a7302c44e4c942721c1"
regress/lib/libcrypto/bn/bn_gcd.c
1216
.b = "5ab5021b9909a11b4e9febefbb3edfe69d4a2e0fbb4fea85"
regress/lib/libcrypto/bn/bn_gcd.c
1224
.b = "12cf1ce2298ba5f7c4e11873a42485a6db8a876ea27b5c3e"
regress/lib/libcrypto/bn/bn_gcd.c
1232
.b = "1c97ce542d64bb2b0c0666783b50ad7b0ec83dd585326a2e"
regress/lib/libcrypto/bn/bn_gcd.c
124
.b = "fb",
regress/lib/libcrypto/bn/bn_gcd.c
1240
.b = "3ffa55470d667fa61719bb07cab29e9e78748401bb248825"
regress/lib/libcrypto/bn/bn_gcd.c
1248
.b = "222adfc3c1ba3ab465a187e4861a963813657e04bdc8fcb1"
regress/lib/libcrypto/bn/bn_gcd.c
1256
.b = "6998951fc97fa4ce0d4e038f51031bb412560291e5391204"
regress/lib/libcrypto/bn/bn_gcd.c
1264
.b = "42d9ad894a69a138d23ad400e70876d3189f993c06c3b722"
regress/lib/libcrypto/bn/bn_gcd.c
1272
.b = "112f78a73b732aa0e65be6a8075f531fc176986eaf4f4aaa"
regress/lib/libcrypto/bn/bn_gcd.c
1280
.b = "45268786ce924277c48ccf87bcbcccaf6a9abbac4055e612"
regress/lib/libcrypto/bn/bn_gcd.c
1288
.b = "1e00b351da3fc2d7a92a3863d606d963873e0b42e9323f53"
regress/lib/libcrypto/bn/bn_gcd.c
129
.b = "206b0",
regress/lib/libcrypto/bn/bn_gcd.c
1297
.b = "5e3bf15c8c82e6e92d77c169868e8b89ecf812291c25ce7c"
regress/lib/libcrypto/bn/bn_gcd.c
1307
.b = "34723bb44b3b993ceab03d15e6c1c1fe2be151ac95d66459"
regress/lib/libcrypto/bn/bn_gcd.c
1315
.b = "307560f1adcf4265d9b3e924ac729fbe695e27162e965d8e"
regress/lib/libcrypto/bn/bn_gcd.c
1324
.b = "3d1e0b1f767fbcbd39110747bfe209deed805708b2225dd1"
regress/lib/libcrypto/bn/bn_gcd.c
1333
.b = "27418e94127081dbebcbb9e8a374b1421f0b9440a8977344"
regress/lib/libcrypto/bn/bn_gcd.c
134
.b = "64927d6",
regress/lib/libcrypto/bn/bn_gcd.c
1342
.b = "45993bc7165341ad65abf6600542ed3a592798b31e0631ba"
regress/lib/libcrypto/bn/bn_gcd.c
1351
.b = "3b6d97698c50aa9a1293065aaa2ede7a25cdf961a79117ce"
regress/lib/libcrypto/bn/bn_gcd.c
1361
.b = "309535207f6f72e75fef6cc5701d9279aa2f23a9d9146dbe"
regress/lib/libcrypto/bn/bn_gcd.c
1369
.b = "3b84d43deacfdf9a69a139b549a72dd330ab25b640637d89"
regress/lib/libcrypto/bn/bn_gcd.c
1379
.b = "324369fc279d52cf53b932597f686ce898d05e486757d6cd"
regress/lib/libcrypto/bn/bn_gcd.c
1388
.b = "363be447b5dcd69f18a23cddb887413c538e2ca983b47dad"
regress/lib/libcrypto/bn/bn_gcd.c
139
.b = "48757a4",
regress/lib/libcrypto/bn/bn_gcd.c
1397
.b = "74f3a69b820d910ed7c0e47d0fdfb74b27990df6502e27eb"
regress/lib/libcrypto/bn/bn_gcd.c
1405
.b = "1600d7a5562574c7b3992703e469b4d2c57f3b49dbddea56"
regress/lib/libcrypto/bn/bn_gcd.c
1414
.b = "11e2602fff3cd4b12e1df2edd9c13aacec71fa1c1258b58b"
regress/lib/libcrypto/bn/bn_gcd.c
1423
.b = "1bea4aa3c29b7c7266d543da0337040df47b0e97555cd08b"
regress/lib/libcrypto/bn/bn_gcd.c
1432
.b = "46951e3e9c58c1a91b9b75d56c33bb511da5e4872c995ef9"
regress/lib/libcrypto/bn/bn_gcd.c
144
.b = "7161c",
regress/lib/libcrypto/bn/bn_gcd.c
1442
.b = "aca73bf07977f19b5ab808cdab73702ade57811031783532"
regress/lib/libcrypto/bn/bn_gcd.c
1451
.b = "5d72f984a9382edf6aec318ce694dfb517cf9fb3594fedc9"
regress/lib/libcrypto/bn/bn_gcd.c
1459
.b = "61a0bf4ac88d4cb5f1171a705d4d7998d128e203c9c6debe"
regress/lib/libcrypto/bn/bn_gcd.c
1468
.b = "5308f555030dfe2a2d3acc43b8a0f76fcc3adf883f41e73c"
regress/lib/libcrypto/bn/bn_gcd.c
1478
.b = "1154aaa622140d190c33b5d6c543a78e532665581bb3a3d2"
regress/lib/libcrypto/bn/bn_gcd.c
1487
.b = "a7c23207484b51c7fd1f29115dbac4e645d5fa19dbf57d70"
regress/lib/libcrypto/bn/bn_gcd.c
149
.b = "53d9b",
regress/lib/libcrypto/bn/bn_gcd.c
1496
.b = "3ba8383dfa55b8f94a8a1672dfedb3d353b4f4d589b1134e"
regress/lib/libcrypto/bn/bn_gcd.c
1505
.b = "657f9bc80e5d7a8749637a9ffae10b1378b7531779fb245c"
regress/lib/libcrypto/bn/bn_gcd.c
1514
.b = "973640b2656ab402878f1d7d910d1c65a4bbf0243deb0a22"
regress/lib/libcrypto/bn/bn_gcd.c
1522
.b = "4f4e3b6003407e08520742559cafb7589e94fa8f2e5d22ad"
regress/lib/libcrypto/bn/bn_gcd.c
1531
.b = "1606d544d1376ac311019aa10888a8c67bb518f0008e4fea"
regress/lib/libcrypto/bn/bn_gcd.c
154
.b = "37b1e",
regress/lib/libcrypto/bn/bn_gcd.c
1541
.b = "7282278d0877ee30b1f0a0bb2654f57cd0e699fdd9cb3ff5"
regress/lib/libcrypto/bn/bn_gcd.c
1549
.b = "fb75c11e8dee621c2ae2452251bf8d517c05d54d36e87f1f"
regress/lib/libcrypto/bn/bn_gcd.c
1559
.b = "5017c43fe300730ec66d150aae46ac1ed96136a79fdc493b"
regress/lib/libcrypto/bn/bn_gcd.c
1568
.b = "222d8a56ba7bf5a83b835705d81ed5583f7066a36155b3d7"
regress/lib/libcrypto/bn/bn_gcd.c
1577
.b = "6626c83bcea1940abf7aece1d543b9172da120438bd315b3"
regress/lib/libcrypto/bn/bn_gcd.c
1587
.b = "663d6b9033445b119e8a40f2589ae93c5642726461cab0a7"
regress/lib/libcrypto/bn/bn_gcd.c
159
.b = "65f90",
regress/lib/libcrypto/bn/bn_gcd.c
1597
.b = "69d9a1bbfb7804f4ecc322b26e77e14466e3d474c09022b8"
regress/lib/libcrypto/bn/bn_gcd.c
1607
.b = "3787da5390f2c638eb5b4ac61d2885d79d087d377fb6b249"
regress/lib/libcrypto/bn/bn_gcd.c
1617
.b = "227295b37eaca84adb6fe12af22af018c5a70887707fa808"
regress/lib/libcrypto/bn/bn_gcd.c
1627
.b = "2879837a5b56ba4e56812fd7b586cb43b28f279fefc3a0dd"
regress/lib/libcrypto/bn/bn_gcd.c
1637
.b = "6cf468976da9cf19b0ed4b90fc5648f676c62b1c29ac2095"
regress/lib/libcrypto/bn/bn_gcd.c
164
.b = "163605b",
regress/lib/libcrypto/bn/bn_gcd.c
1647
.b = "667303ba154d16bd6d221e5f2af88584c8ec971cc5d3cfe4"
regress/lib/libcrypto/bn/bn_gcd.c
1657
.b = "e82f0af1d64112f342bbf28a9fa9a7a8746e98d01d777b88"
regress/lib/libcrypto/bn/bn_gcd.c
1667
.b = "2562b63f3618a28f06036e276a3a0b51f740c6c4ccc62358"
regress/lib/libcrypto/bn/bn_gcd.c
1677
.b = "46b308f71f4e280ea802ee3235cefab5abdd7c4539943290"
regress/lib/libcrypto/bn/bn_gcd.c
1687
.b = "30d19a2230add9ef8636858843cac35ad81346e14c737468"
regress/lib/libcrypto/bn/bn_gcd.c
169
.b = "5a08833",
regress/lib/libcrypto/bn/bn_gcd.c
1697
.b = "669360d5bdd658d566543fe18895b0d7f454c8a02c394b03"
regress/lib/libcrypto/bn/bn_gcd.c
1707
.b = "38cb5516f2b444d95a339f89acb2cf464868279b43e8bbee"
regress/lib/libcrypto/bn/bn_gcd.c
1717
.b = "538d2e8074c2edf23f519974b2864cafb3eee403d6836f2c"
regress/lib/libcrypto/bn/bn_gcd.c
1727
.b = "10941ef14a7e6a5a46ed981831c20dee4d585eacf824aaab"
regress/lib/libcrypto/bn/bn_gcd.c
1737
.b = "240ea2a02538bb8d07c1c7dda2b441666ff44de744a61795"
regress/lib/libcrypto/bn/bn_gcd.c
174
.b = "65849195f",
regress/lib/libcrypto/bn/bn_gcd.c
1747
.b = "834da9c3dcd0642656ae7661b7c56de481e5b7ba1e78c276"
regress/lib/libcrypto/bn/bn_gcd.c
1757
.b = "b044e928a4fbf8635c92585f0b97d2dc37b2958d1802a94e"
regress/lib/libcrypto/bn/bn_gcd.c
1767
.b = "288531d5b6595048d0e7b770ea6cf9c26786a3aeb7a1b5f0"
regress/lib/libcrypto/bn/bn_gcd.c
1777
.b = "487ff683437e448efae77e8a5bc621807e0a832b854bd7a6"
regress/lib/libcrypto/bn/bn_gcd.c
1787
.b = "58be4ef81a47d47f6642037ee4e405f01d7c9ae87a05c493"
regress/lib/libcrypto/bn/bn_gcd.c
179
.b = "402dcce6f",
regress/lib/libcrypto/bn/bn_gcd.c
1797
.b = "18d51b9dccc09ed1a938915e0662b23c78ba1f9dbe4f2585"
regress/lib/libcrypto/bn/bn_gcd.c
1807
.b = "46b880b9775b5eac3b4af101d290d229a9495ef51f08d47d"
regress/lib/libcrypto/bn/bn_gcd.c
1817
.b = "4545034b956ee4aae5f482a37749aca3c85f81c4069f8e16"
regress/lib/libcrypto/bn/bn_gcd.c
1827
.b = "3004245c6132c6a83102b859144076b36d99dc67fd58175e"
regress/lib/libcrypto/bn/bn_gcd.c
1837
.b = "1ae5fd16b2b322ca4b7f7b1f9a4796fb8970aad3d0fa91e0"
regress/lib/libcrypto/bn/bn_gcd.c
184
.b = "6644a8e72",
regress/lib/libcrypto/bn/bn_gcd.c
1847
.b = "4a264e3d87007b75657b6280a5255bb3a516faa770d62884"
regress/lib/libcrypto/bn/bn_gcd.c
1857
.b = "4aa64863f4890c3f9a5c1f7e2c7064e80ffdef93f1f11b04"
regress/lib/libcrypto/bn/bn_gcd.c
1867
.b = "23b197ea7236d30bbdab39f6f90758cd4b69663e9e0b5444"
regress/lib/libcrypto/bn/bn_gcd.c
1877
.b = "3c25ab9e8afbf26dd1fa537b1a647c571c3f0d261b4539c9"
regress/lib/libcrypto/bn/bn_gcd.c
1887
.b = "259a8f8c0e0785b581046d1b87c4ef8c4869f16aa5598c9e"
regress/lib/libcrypto/bn/bn_gcd.c
189
.b = "1ea5c64",
regress/lib/libcrypto/bn/bn_gcd.c
1897
.b = "494be98359239745ee26f3d7aaa521e2cb276a37d47c166e"
regress/lib/libcrypto/bn/bn_gcd.c
1908
.b = "21488f27cf5d5c2f8e68984c29367add5d261a07ea636743"
regress/lib/libcrypto/bn/bn_gcd.c
1919
.b = "5b07e7dafbfdd8ad725a7c4095fdc4a52df69702253f374f"
regress/lib/libcrypto/bn/bn_gcd.c
1930
.b = "10620c79f1b5119d772b87c9585dd059a198281b8563dabb"
regress/lib/libcrypto/bn/bn_gcd.c
194
.b = "6acfd5d8c",
regress/lib/libcrypto/bn/bn_gcd.c
1941
.b = "9134ead1a618378f80138ccdccc39d364151c221a8d3c6b2"
regress/lib/libcrypto/bn/bn_gcd.c
1951
.b = "437bf0cb65aabfab5125a12841d24b03191b3f5d2954af40"
regress/lib/libcrypto/bn/bn_gcd.c
1962
.b = "4e966d28e5a384975950696b18aa0718b53f1a0a641fa8a2"
regress/lib/libcrypto/bn/bn_gcd.c
1973
.b = "641c99db7076110f5f409a5e8a5cd5d95343fa00fec709b3"
regress/lib/libcrypto/bn/bn_gcd.c
1984
.b = "5f966b3742e94b0026201eba0ad5c5df694ddc5ecca6c3ae"
regress/lib/libcrypto/bn/bn_gcd.c
199
.b = "33894f6",
regress/lib/libcrypto/bn/bn_gcd.c
1995
.b = "212cf854e16a4cb27c31647c40475f2eb107a6088a3421c1"
regress/lib/libcrypto/bn/bn_gcd.c
2006
.b = "3fe2ef96281cc785d5f4b5e9682c08a7abc223fe9cf74dbf"
regress/lib/libcrypto/bn/bn_gcd.c
2017
.b = "f99de4bea4fa9b029bb50dd02b77fb53d2d61403b1bf80f4"
regress/lib/libcrypto/bn/bn_gcd.c
2028
.b = "14d3d9149b52047e1ab18766533415bb6a4bc5f2f5e80285"
regress/lib/libcrypto/bn/bn_gcd.c
2039
.b = "1c44c0622846ffdedea025144cc4e84aaaea8ce1dc5d1205"
regress/lib/libcrypto/bn/bn_gcd.c
204
.b = "3c036c",
regress/lib/libcrypto/bn/bn_gcd.c
2050
.b = "5250417c833f88eeb2891b033f077fd58a3d3d56afe8749f"
regress/lib/libcrypto/bn/bn_gcd.c
2061
.b = "58352c71242e461377106b457b8d778004c825641a53ccf7"
regress/lib/libcrypto/bn/bn_gcd.c
2072
.b = "3411cd025265dd2da51495775758bff7813259693b9ae734"
regress/lib/libcrypto/bn/bn_gcd.c
2083
.b = "2d337d460643e294732a70f1970c4bab4ea720422a238027"
regress/lib/libcrypto/bn/bn_gcd.c
209
.b = "15f969b26a7",
regress/lib/libcrypto/bn/bn_gcd.c
2094
.b = "15f221fbd53d4eb74ddc06ad6d768ee04e40dcf58bc1c084"
regress/lib/libcrypto/bn/bn_gcd.c
2105
.b = "4251261d1cfcbd60e29b0159cdbde3ef593f14855e260e1d"
regress/lib/libcrypto/bn/bn_gcd.c
2116
.b = "ac5f34ac9bf20f064fa36b457d77769035a4bfe6702e6b42"
regress/lib/libcrypto/bn/bn_gcd.c
2127
.b = "319d4ac19ff7a710f7e30b17f732dd5908ea93167aaf1734"
regress/lib/libcrypto/bn/bn_gcd.c
2138
.b = "1b4f37bd77e0a7b314f592443f59ea10de1dbf0445bc6bed"
regress/lib/libcrypto/bn/bn_gcd.c
214
.b = "13bbb7f3bb6",
regress/lib/libcrypto/bn/bn_gcd.c
2149
.b = "74939f572534c6a8436abfddbf00ae0c33a465675989946a"
regress/lib/libcrypto/bn/bn_gcd.c
2160
.b = "3f8ba54304ec5f724fe2f8161a4a15eeb203ef9b96c9c3dc"
regress/lib/libcrypto/bn/bn_gcd.c
2171
.b = "48068b5e29280df0aa9946c85ac651eb99129e56460fcb80"
regress/lib/libcrypto/bn/bn_gcd.c
2182
.b = "4fec301df38963b0df53ae7456fc3241d338fb0ebc719c4c"
regress/lib/libcrypto/bn/bn_gcd.c
219
.b = "18765759b3e",
regress/lib/libcrypto/bn/bn_gcd.c
2193
.b = "2c46b323b913734721878e9a9898953631956bb6c9a2b4ef"
regress/lib/libcrypto/bn/bn_gcd.c
2204
.b = "1d41ded2310a8082543d3a458ab9d3a3b7673562b365d209"
regress/lib/libcrypto/bn/bn_gcd.c
2215
.b = "1c808fde57e0c48e8ce127b7f2f1fbf45c48f1e750d05780"
regress/lib/libcrypto/bn/bn_gcd.c
2226
.b = "44f44bcf15967aa6840213cae893971a501acda24258d714"
regress/lib/libcrypto/bn/bn_gcd.c
2237
.b = "4486f157d285fc7fc4b3baf3d13557a20652a98199c15282"
regress/lib/libcrypto/bn/bn_gcd.c
224
.b = "667b4b1bc85",
regress/lib/libcrypto/bn/bn_gcd.c
2248
.b = "9cfb2f846b2252a87acdb0cb8f1edbc4c7f411d20dde77f0"
regress/lib/libcrypto/bn/bn_gcd.c
2260
.b = "25e6acf6f10c62342188f297d83778472942056aa75d7e9f"
regress/lib/libcrypto/bn/bn_gcd.c
2272
.b = "79a4c305491a52aa8f683102d1453741ccddcfad823e04ad"
regress/lib/libcrypto/bn/bn_gcd.c
2285
.b = "6fd3d8cdbb3230478da0959b4b373d71087dbe5424f610df"
regress/lib/libcrypto/bn/bn_gcd.c
229
.b = "44d269073",
regress/lib/libcrypto/bn/bn_gcd.c
2296
.b = "ea1adae8f7712d0808c291c3d001201135640d4b182caf77"
regress/lib/libcrypto/bn/bn_gcd.c
2309
.b = "4612daa4e7a3d3775dda8c03495ef240de334b3854747e51"
regress/lib/libcrypto/bn/bn_gcd.c
2321
.b = "6f1193e160ac77e6201a927a6ab19f46ebe565a1d972eeeb"
regress/lib/libcrypto/bn/bn_gcd.c
2333
.b = "596ab00e4d9697fa70ec94c7e21ba6afde01e261e891ef58"
regress/lib/libcrypto/bn/bn_gcd.c
234
.b = "1f5755eca",
regress/lib/libcrypto/bn/bn_gcd.c
2344
.b = "b4698b65c0b51cb00948d5d894fb2113333888a964d930f6"
regress/lib/libcrypto/bn/bn_gcd.c
2357
.b = "36c361594992c8b0ad0b8ed3cbecf7aa5dba9f55b2064398"
regress/lib/libcrypto/bn/bn_gcd.c
2368
.b = "5ed086dce77d1e41ab41f8c7236e1146a102aa2b9cf543d7"
regress/lib/libcrypto/bn/bn_gcd.c
2380
.b = "421306ddb3844b33b1316dc79bb75fd6e1fa0413fa3e97ae"
regress/lib/libcrypto/bn/bn_gcd.c
239
.b = "6a7cdb539bd",
regress/lib/libcrypto/bn/bn_gcd.c
2393
.b = "1b2b4e114eee4170d7ced5e894d921ac2550c00e62bda9eb"
regress/lib/libcrypto/bn/bn_gcd.c
2405
.b = "2f8677752eac018756090ab75170b4e5246c28cd6efcea6e"
regress/lib/libcrypto/bn/bn_gcd.c
2416
.b = "284b2b26790a09071efac26cfa788d9f3549ecf642064a6a"
regress/lib/libcrypto/bn/bn_gcd.c
2429
.b = "4c50a7e6879619d3cdc8283524d9677ae8b15654ed9b5d9e"
regress/lib/libcrypto/bn/bn_gcd.c
244
.b = "153338971",
regress/lib/libcrypto/bn/bn_gcd.c
2440
.b = "15f198b7de0ef20eb58877b470ce8b1595b082be9a8554cc"
regress/lib/libcrypto/bn/bn_gcd.c
2452
.b = "3f7167c05f5a6a976060da8bc4d8ea655cceae378978cf50"
regress/lib/libcrypto/bn/bn_gcd.c
2464
.b = "52c3fd899ea97862a0427c3b0030faeba715f30babd0c1e1"
regress/lib/libcrypto/bn/bn_gcd.c
2476
.b = "5cf62e9235bc95309dcbe49ba173500e7187bfc9be14044c"
regress/lib/libcrypto/bn/bn_gcd.c
2489
.b = "266088bdb989801f5b345876164751f85a8a564061dc2827"
regress/lib/libcrypto/bn/bn_gcd.c
249
.b = "2edb8fdd14ab1b645",
regress/lib/libcrypto/bn/bn_gcd.c
2501
.b = "622f62ec0a012dec5507e76c7707206f4fb26f5020a0a2b6"
regress/lib/libcrypto/bn/bn_gcd.c
2512
.b = "353fc536676f933bcc683cd1749f43c301f70c78c14061e1"
regress/lib/libcrypto/bn/bn_gcd.c
2524
.b = "4344b250abb87d531d7c6ec2665fefeb44623de4394fb82f"
regress/lib/libcrypto/bn/bn_gcd.c
2537
.b = "3508180db77ae987b951ad99f94eee1371709f6a9e5e1f54"
regress/lib/libcrypto/bn/bn_gcd.c
254
.b = "3e843370070058d8d",
regress/lib/libcrypto/bn/bn_gcd.c
2549
.b = "595bbda1f517ee904529a9300cf6bb6baf27445355b55349"
regress/lib/libcrypto/bn/bn_gcd.c
2560
.b = "5032c0da861e24e1004fff70b44b084acb03854d88f4e70e"
regress/lib/libcrypto/bn/bn_gcd.c
2572
.b = "3d179ade5d386f2d58590c71984454bd7669fc25b059fdaa"
regress/lib/libcrypto/bn/bn_gcd.c
2585
.b = "1468791ae811bf12455592f932b46f69a98e89ca3b333fcb"
regress/lib/libcrypto/bn/bn_gcd.c
259
.b = "5538bdda74849754e4949",
regress/lib/libcrypto/bn/bn_gcd.c
2597
.b = "4b441c2350d6c803ed1585f765774356132b84acc4d6e063"
regress/lib/libcrypto/bn/bn_gcd.c
26
int BN_gcd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
regress/lib/libcrypto/bn/bn_gcd.c
2609
.b = "71c2d447d125d367b7c91f4cf019b6a0d7f9ae9637d4d75b"
regress/lib/libcrypto/bn/bn_gcd.c
2621
.b = "602242d9a346d1ad7b3474efea6151eb28d899c695b05acf"
regress/lib/libcrypto/bn/bn_gcd.c
2632
.b = "aa6a210674f66079f971d693322fb89c87df9c3746cc5b52"
regress/lib/libcrypto/bn/bn_gcd.c
264
.b = "45223dbbeaaba9e92",
regress/lib/libcrypto/bn/bn_gcd.c
2644
.b = "5998b0bb3a3c937764cba78a0df0e9edb2b15f4233e2f594"
regress/lib/libcrypto/bn/bn_gcd.c
2656
.b = "609a77e881ed16209a21be8c97ee2fb56a169827b53cbc86"
regress/lib/libcrypto/bn/bn_gcd.c
2669
.b = "236d98a863512a94fa2596fcd9f8208b3443fb57c21bdfe2"
regress/lib/libcrypto/bn/bn_gcd.c
2681
.b = "b69a7319b587f4ddfbae74df4f9150d294378dcf72daad7a"
regress/lib/libcrypto/bn/bn_gcd.c
269
.b = "2cc525ce8e2d2bc67aa6d",
regress/lib/libcrypto/bn/bn_gcd.c
2693
.b = "4f616036bea3ee473e1d48729f0d8d0a1f6eff21ad44737a"
regress/lib/libcrypto/bn/bn_gcd.c
27
int BN_gcd_ct(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
regress/lib/libcrypto/bn/bn_gcd.c
2704
.b = "7c154bd23d9802aaacb972cec50ee01e0cd238d99d52acdf"
regress/lib/libcrypto/bn/bn_gcd.c
2716
.b = "2d0d2615faa6a3270be7838e2113f003257db1301c1733b1"
regress/lib/libcrypto/bn/bn_gcd.c
2729
.b = "5240f1b49d6adb2bd9e56f356ff3be942989b83a35fa88cb"
regress/lib/libcrypto/bn/bn_gcd.c
274
.b = "497c44b84fb6f8774f787",
regress/lib/libcrypto/bn/bn_gcd.c
2742
.b = "53b13941fcaa37b2c6488181b60a22f77ff393613bd75ebf"
regress/lib/libcrypto/bn/bn_gcd.c
2755
.b = "28ab95367724b0d6b25899eddf97bff39af736f56ec36b58"
regress/lib/libcrypto/bn/bn_gcd.c
2768
.b = "25fa6fb38d020d435dab152bc5f17d9ce691fe72d6c02047"
regress/lib/libcrypto/bn/bn_gcd.c
2781
.b = "2224220d00b674d4c20d71b7c3f3eb4c0477cb760add9e1d"
regress/lib/libcrypto/bn/bn_gcd.c
279
.b = "4aebe8c99000a8bd30652",
regress/lib/libcrypto/bn/bn_gcd.c
2794
.b = "53dbd859b1980b52a856a182bcad446ba31e9e38c8f38239"
regress/lib/libcrypto/bn/bn_gcd.c
2807
.b = "566140ad10242b4c8661e010188b30f6bb119f13d91ba8d7"
regress/lib/libcrypto/bn/bn_gcd.c
2820
.b = "384b1ee7d2f374c44125d327983f5616a1d3a980b0451f1b"
regress/lib/libcrypto/bn/bn_gcd.c
2833
.b = "3a9055f97eb776d220bda9012bb25b2fb333d692b4a64df8"
regress/lib/libcrypto/bn/bn_gcd.c
284
.b = "53b004a9fa740fcbb",
regress/lib/libcrypto/bn/bn_gcd.c
2846
.b = "3349ab6445ba4fbf835b4acb058afcef4c4cec07fea01935"
regress/lib/libcrypto/bn/bn_gcd.c
2859
.b = "6451bf96dfda1c3624bc3face722a88fe80cdd859c9fa6bf"
regress/lib/libcrypto/bn/bn_gcd.c
2872
.b = "2725f9ce0e76a58de38b514540a785b5f81b6b477cadc764"
regress/lib/libcrypto/bn/bn_gcd.c
2885
.b = "6d1caee6688280ba580c2be1f6a05e46e8adbcde74f0eb20"
regress/lib/libcrypto/bn/bn_gcd.c
289
.b = "670a0a35553c35d52fb18f5",
regress/lib/libcrypto/bn/bn_gcd.c
2898
.b = "3167566cc4a6b4394bbfa428b59bfbd481c89f0297510a00"
regress/lib/libcrypto/bn/bn_gcd.c
2911
.b = "2e28a7ae1bb29b3c58a9958f4861eaff3ed846ac0fa1a97e"
regress/lib/libcrypto/bn/bn_gcd.c
2924
.b = "2023c2547a2c3c4344046ef7fca206ddaf19f348747d41ff"
regress/lib/libcrypto/bn/bn_gcd.c
2937
.b = "293f63a8d23b4a57972134d1fd5808e7cae2e69756ad8fcc"
regress/lib/libcrypto/bn/bn_gcd.c
294
.b = "507c3e327a45f92c78eeb84",
regress/lib/libcrypto/bn/bn_gcd.c
2950
.b = "6d006a52efe8d29184eae98fb77a073be1410cbd17149372"
regress/lib/libcrypto/bn/bn_gcd.c
2963
.b = "6de2dc6f6d0ee1e9e51bc8f32191af47b123bc6b91fdaa82"
regress/lib/libcrypto/bn/bn_gcd.c
2976
.b = "36a85b25a3519226e79420fa52ce09ab7bc251334b47a1b2"
regress/lib/libcrypto/bn/bn_gcd.c
2989
.b = "40dcfedd9e92687615ca5ebae237e2c6518e81c2bcfe5a16"
regress/lib/libcrypto/bn/bn_gcd.c
299
.b = "56a012dd8379b7a0e16",
regress/lib/libcrypto/bn/bn_gcd.c
3002
.b = "68d82bcea9af58edf598014eb89d362ab60796fb6cebcdb7"
regress/lib/libcrypto/bn/bn_gcd.c
3015
.b = "5e06838a5e561438cecc8b5050e7b76f2c0a709ad75bbef4"
regress/lib/libcrypto/bn/bn_gcd.c
3028
.b = "2203162a0ac7281aa4801c56bd345ee940a3c56e75786cc6"
regress/lib/libcrypto/bn/bn_gcd.c
304
.b = "615a76fb66b1094efbcba2c",
regress/lib/libcrypto/bn/bn_gcd.c
3041
.b = "2f2dc2784c526989ce90674a073b56e1c698b72f34e86014"
regress/lib/libcrypto/bn/bn_gcd.c
3054
.b = "4927608f0f371e47def5bc8602aeee09b98d8ffcc22332cc"
regress/lib/libcrypto/bn/bn_gcd.c
3067
.b = "45e49fd63db64eff1699c8c4cb518a4ddb640a4687589635"
regress/lib/libcrypto/bn/bn_gcd.c
3080
.b = "40e078cf89ac3fb2c4810cae1b443b669f7c5166f7537fb2"
regress/lib/libcrypto/bn/bn_gcd.c
309
.b = "234099d522bcad7e248",
regress/lib/libcrypto/bn/bn_gcd.c
3093
.b = "653a2d3e6cd9fe2a6682652fe58df01102ea6afd799ef20b"
regress/lib/libcrypto/bn/bn_gcd.c
3106
.b = "26990c66e29b1fc2fa5a27bf7027255c2a9269dc8564dc31"
regress/lib/libcrypto/bn/bn_gcd.c
3119
.b = "59ee8b7e46d672cba41db23f9a553be294b9576ae9eed5f7"
regress/lib/libcrypto/bn/bn_gcd.c
3132
.b = "3261ecbf9169630196e0b0edcc37c13503bbd96689be7a8c"
regress/lib/libcrypto/bn/bn_gcd.c
314
.b = "58b8dde9e5f8ecfde43cd74",
regress/lib/libcrypto/bn/bn_gcd.c
3145
.b = "2a07dae423f1f9dd41d69fc5aff306e5bd3553f08d2d088d"
regress/lib/libcrypto/bn/bn_gcd.c
3158
.b = "5d00668b79b842c749fc97f756bfd23c4d93e32b1e45f33c"
regress/lib/libcrypto/bn/bn_gcd.c
3171
.b = "209b21fda82c9e7b5a9fce721e69e740a6aaed5ab49b6404"
regress/lib/libcrypto/bn/bn_gcd.c
3184
.b = "3db942a5261eb2554d8c07f49c9b4f63d7836374c70e1728"
regress/lib/libcrypto/bn/bn_gcd.c
319
.b = "3b5b01106809f6bb2e2e016",
regress/lib/libcrypto/bn/bn_gcd.c
3197
.b = "428146e53ba9e513544ec840520e6a3bcea1a34f598b5890"
regress/lib/libcrypto/bn/bn_gcd.c
3210
.b = "1902db596f7070d5dc3df09f805f3008fb680fd8eb572775"
regress/lib/libcrypto/bn/bn_gcd.c
3223
.b = "19488565e24ac7c11eeaf77144b3d95508203e931eb9b7e8"
regress/lib/libcrypto/bn/bn_gcd.c
3236
.b = "5e9a81924c38ae2f348d6b8d72fe1efdd831a0244801108b"
regress/lib/libcrypto/bn/bn_gcd.c
324
.b = "4874dbcc44f53775a6a1d7",
regress/lib/libcrypto/bn/bn_gcd.c
3249
.b = "6215d41d790981f440660c4097750c75c0b6ef765b2fc08f"
regress/lib/libcrypto/bn/bn_gcd.c
3262
.b = "3353e8614d8b3c5c86c76006ab8fb3f1f0973a57ebe08d81"
regress/lib/libcrypto/bn/bn_gcd.c
3275
.b = "551ff6ad295ae1bce11f72540ef81f4233d1fb688708c3f8"
regress/lib/libcrypto/bn/bn_gcd.c
3288
.b = "32e7ae042092a898c8de2d016f3c9d9d88d534a11fb0ff37"
regress/lib/libcrypto/bn/bn_gcd.c
329
.b = "2e1c73c5131cbbf50628",
regress/lib/libcrypto/bn/bn_gcd.c
3301
.b = "208f4ba8619b531371a3359236423c217565ad6261992978"
regress/lib/libcrypto/bn/bn_gcd.c
3314
.b = "424ee13ea5c95ff7e99889e3912b217b97975227c303f1d1"
regress/lib/libcrypto/bn/bn_gcd.c
3327
.b = "7de0f00b2f156e38ab5549ff5ba31e16a6cb843823a97044"
regress/lib/libcrypto/bn/bn_gcd.c
334
.b = "62bc190742c20aa29644c84eb",
regress/lib/libcrypto/bn/bn_gcd.c
3340
.b = "4940242edd9807e4ec93d363187f29ec73623961e851a5f1"
regress/lib/libcrypto/bn/bn_gcd.c
3353
.b = "522d15c2681543b7bb50d64526e6032bebf8cd452cb06f5f"
regress/lib/libcrypto/bn/bn_gcd.c
3366
.b = "abf36a5b8c6d09a3db1ed4cc037cb32072fb0812652bebb4"
regress/lib/libcrypto/bn/bn_gcd.c
3379
.b = "5e164dba2f2ef870b086ee79a8b37b80aaf4d26c1ab53c1f"
regress/lib/libcrypto/bn/bn_gcd.c
339
.b = "6380a7b03658ba56b34a3",
regress/lib/libcrypto/bn/bn_gcd.c
3392
.b = "52bca44f91ee3f41b18fd6286b91463c00a50f7ac5131d76"
regress/lib/libcrypto/bn/bn_gcd.c
3405
.b = "5a1e35a1fa9ca5d66244af81b6a239d1d7b94841e38413ad"
regress/lib/libcrypto/bn/bn_gcd.c
3418
.b = "4866326c48b8226bec5aae93bc3b3b3fdac0a60319730efa"
regress/lib/libcrypto/bn/bn_gcd.c
3431
.b = "594a63062ee8b0b61f0143ed9237906010c17e6d03cfb2fe"
regress/lib/libcrypto/bn/bn_gcd.c
344
.b = "4ca3361909906b0cf7618",
regress/lib/libcrypto/bn/bn_gcd.c
3444
.b = "e8cceb9061392e35fd652346312aff143d88fb156695e0a7"
regress/lib/libcrypto/bn/bn_gcd.c
3460
BIGNUM *a, *b, *want, *got;
regress/lib/libcrypto/bn/bn_gcd.c
3472
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_gcd.c
3481
if (!BN_hex2bn(&b, testcase->b))
regress/lib/libcrypto/bn/bn_gcd.c
3482
errx(1, "b = hex2bn(%s)", testcase->b);
regress/lib/libcrypto/bn/bn_gcd.c
349
.b = "22c452983db5a6ce9736f",
regress/lib/libcrypto/bn/bn_gcd.c
3491
if (test->fails_on_zero && BN_is_zero(b))
regress/lib/libcrypto/bn/bn_gcd.c
3495
BN_set_negative(b, (signs >> 1) & 1);
regress/lib/libcrypto/bn/bn_gcd.c
3497
if (!test->fn(got, a, b, ctx)) {
regress/lib/libcrypto/bn/bn_gcd.c
3499
test->name, testcase->a, testcase->b);
regress/lib/libcrypto/bn/bn_gcd.c
3505
fprintf(stderr, "b: %s\n", testcase->b);
regress/lib/libcrypto/bn/bn_gcd.c
354
.b = "b02f19eec1f1f2d44c59",
regress/lib/libcrypto/bn/bn_gcd.c
3541
BIGNUM *b, BN_CTX *ctx)
regress/lib/libcrypto/bn/bn_gcd.c
3555
if (test->fails_on_zero && BN_is_zero(b))
regress/lib/libcrypto/bn/bn_gcd.c
3559
BN_set_negative(b, (signs >> 1) & 1);
regress/lib/libcrypto/bn/bn_gcd.c
3561
if (!test->fn(gcd, a, b, ctx)) {
regress/lib/libcrypto/bn/bn_gcd.c
3573
if (BN_ucmp(gcd, b) != 0) {
regress/lib/libcrypto/bn/bn_gcd.c
3579
BN_print_fp(stderr, b);
regress/lib/libcrypto/bn/bn_gcd.c
3587
if (!BN_lshift1(b, b))
regress/lib/libcrypto/bn/bn_gcd.c
359
.b = "60045b573dccb74a9e2e379d5",
regress/lib/libcrypto/bn/bn_gcd.c
3600
BIGNUM *a, *b;
regress/lib/libcrypto/bn/bn_gcd.c
3612
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_gcd.c
3620
BN_zero(b);
regress/lib/libcrypto/bn/bn_gcd.c
3629
if (!BN_set_bit(b, k))
regress/lib/libcrypto/bn/bn_gcd.c
3631
if (!BN_sub_word(b, 1))
regress/lib/libcrypto/bn/bn_gcd.c
3634
failed |= bn_binomial_gcd_test(test, k, a, b, ctx);
regress/lib/libcrypto/bn/bn_gcd.c
3637
BN_zero(b);
regress/lib/libcrypto/bn/bn_gcd.c
364
.b = "409e977e693f5bd1b17b0433a",
regress/lib/libcrypto/bn/bn_gcd.c
3646
if (!BN_set_bit(b, k))
regress/lib/libcrypto/bn/bn_gcd.c
3648
if (!BN_add_word(b, 1))
regress/lib/libcrypto/bn/bn_gcd.c
3651
failed |= bn_binomial_gcd_test(test, k, a, b, ctx);
regress/lib/libcrypto/bn/bn_gcd.c
369
.b = "345aa9ded17c65a6c85dd7e6d61",
regress/lib/libcrypto/bn/bn_gcd.c
374
.b = "69459ea484d6480a376e91",
regress/lib/libcrypto/bn/bn_gcd.c
379
.b = "4f5ee69f4afbb46507ccc8b",
regress/lib/libcrypto/bn/bn_gcd.c
384
.b = "4e8a14632ccec82f41941b1fd7e",
regress/lib/libcrypto/bn/bn_gcd.c
389
.b = "6d90bcb3174b93f44a2854f601",
regress/lib/libcrypto/bn/bn_gcd.c
394
.b = "2ef35b22f59380207cd3a09",
regress/lib/libcrypto/bn/bn_gcd.c
399
.b = "183bf7b0342fe483457340ab000",
regress/lib/libcrypto/bn/bn_gcd.c
404
.b = "65b89e487f7a272f6187b",
regress/lib/libcrypto/bn/bn_gcd.c
409
.b = "131c43cca73843a27b9feac46cd03d5de7a2f",
regress/lib/libcrypto/bn/bn_gcd.c
414
.b = "64d277bfb253b9a22f3c0187445253a",
regress/lib/libcrypto/bn/bn_gcd.c
419
.b = "1fe085864e8e75ea073efebfe6fbab133e4e8",
regress/lib/libcrypto/bn/bn_gcd.c
424
.b = "5d5308342f5a0c2277762ba37273f07",
regress/lib/libcrypto/bn/bn_gcd.c
429
.b = "2134ea8527e2ad47f460d70b918ba69fd4c6b",
regress/lib/libcrypto/bn/bn_gcd.c
434
.b = "611184b794056ec03b0aeb7c1646be9",
regress/lib/libcrypto/bn/bn_gcd.c
439
.b = "356731db8ae0f405b01423d24a00df4",
regress/lib/libcrypto/bn/bn_gcd.c
444
.b = "3d52dfc550d9288335bc4ca727d0008e225d8",
regress/lib/libcrypto/bn/bn_gcd.c
449
.b = "30cbcdb08d24818e2845286f4b70760116f96e8",
regress/lib/libcrypto/bn/bn_gcd.c
454
.b = "4c0fc242dbe2f4ba5592ffc621eca68499e807c",
regress/lib/libcrypto/bn/bn_gcd.c
459
.b = "4e2451f07d9559f3c36746cef62cb2ce95525de",
regress/lib/libcrypto/bn/bn_gcd.c
464
.b = "20eb4fa3aabacd28aa5126fa29425be14",
regress/lib/libcrypto/bn/bn_gcd.c
469
.b = "d988a3b4b5b168ed7ebe15381da5818",
regress/lib/libcrypto/bn/bn_gcd.c
474
.b = "5e4e6ea5e8217e17f69c63ea07d8e93bc",
regress/lib/libcrypto/bn/bn_gcd.c
479
.b = "1da078788fa13e18814edbf15907ef930",
regress/lib/libcrypto/bn/bn_gcd.c
484
.b = "3d4c9928047325884f90888dee2d64f64dca29c",
regress/lib/libcrypto/bn/bn_gcd.c
489
.b = "3dfed750b07e2be9e32d2627c31a0a1e3c8",
regress/lib/libcrypto/bn/bn_gcd.c
49
const char *b;
regress/lib/libcrypto/bn/bn_gcd.c
494
.b = "48a13d2d2df5788977b9e8ecd434cba45fe3ee1b",
regress/lib/libcrypto/bn/bn_gcd.c
499
.b = "22be84a3090cce29b0b666a7cb049f9ba808cb494",
regress/lib/libcrypto/bn/bn_gcd.c
504
.b = "4c8375dd9a13a1c7d31f2c3fc87dd070075",
regress/lib/libcrypto/bn/bn_gcd.c
509
.b = "26002cab182d2500064e1c19184707b9e8ba673e0",
regress/lib/libcrypto/bn/bn_gcd.c
514
.b = "207e14815ccc0a2f5cf3903d7e2bf754356c65676",
regress/lib/libcrypto/bn/bn_gcd.c
519
.b = "27a0ce62b6c85cd1566cdc532b5b1e322e52996cc",
regress/lib/libcrypto/bn/bn_gcd.c
524
.b = "45255a9ae2fd394ed8b760ce3133fb71f94362a86",
regress/lib/libcrypto/bn/bn_gcd.c
529
.b = "53c6266c3e6520cc40abc70370ad94e8a629d",
regress/lib/libcrypto/bn/bn_gcd.c
534
.b = "575a78c8e8bb4f02e57efb0010d86b4a408f150fe7e",
regress/lib/libcrypto/bn/bn_gcd.c
539
.b = "11542c315141d0c46bae8863c1a945963b91b644603",
regress/lib/libcrypto/bn/bn_gcd.c
54
.b = "0",
regress/lib/libcrypto/bn/bn_gcd.c
544
.b = "67eef9400e79570ce246df916892707014bbb",
regress/lib/libcrypto/bn/bn_gcd.c
549
.b = "1dae559a89e7e21212345a8148689c33da8d28f3fc9",
regress/lib/libcrypto/bn/bn_gcd.c
554
.b = "2ff4be223d91f31e03e07fee0c18e082f970191a41a",
regress/lib/libcrypto/bn/bn_gcd.c
559
.b = "2ddf9f7e0f870347401ce5d93ff70a5a3a9cb",
regress/lib/libcrypto/bn/bn_gcd.c
564
.b = "489167e7ed18db6d541c8a94cf6a58f10836d",
regress/lib/libcrypto/bn/bn_gcd.c
569
.b = "8035daf441d2a728b3dbded074c57e103e58ad65efaf5fe3"
regress/lib/libcrypto/bn/bn_gcd.c
576
.b = "4cce4f3aff6019192f7e32c372c9e32385b2352d32518",
regress/lib/libcrypto/bn/bn_gcd.c
581
.b = "328d23516a0bacc130bcbb9b95965ffdd99827c49f306a6c"
regress/lib/libcrypto/bn/bn_gcd.c
587
.b = "5495c974f06f6f2cf98d285af77a76be3ef32eab77ca815b"
regress/lib/libcrypto/bn/bn_gcd.c
59
.b = "1",
regress/lib/libcrypto/bn/bn_gcd.c
593
.b = "3cf4ddd41867fea4681efd043e079ba7788bcf66dd2694ba"
regress/lib/libcrypto/bn/bn_gcd.c
600
.b = "27f5a44e5e13c9b5261f50a2f19f00e6a5023c0c755e5",
regress/lib/libcrypto/bn/bn_gcd.c
606
.b = "5b4be0a485cd99ee2d1126e62f657581da85e941e725c",
regress/lib/libcrypto/bn/bn_gcd.c
611
.b = "28b7dd0cdd3dbf3d6f92099865fdda7b659264979e55a77a"
regress/lib/libcrypto/bn/bn_gcd.c
618
.b = "4f6d3f6085a1937280761490ea12e7bfa776274e9b22dda",
regress/lib/libcrypto/bn/bn_gcd.c
624
.b = "5340542372ef34ac534d473cb2e0a5ffde3dae86c609c68",
regress/lib/libcrypto/bn/bn_gcd.c
629
.b = "4fc6275ab900f3b867af5ac9107a6605e4b7092613ae76ca"
regress/lib/libcrypto/bn/bn_gcd.c
635
.b = "7a6d99dcad253fafd6b85854588a608eb8983a6ef7f1f2cd"
regress/lib/libcrypto/bn/bn_gcd.c
64
.b = "0",
regress/lib/libcrypto/bn/bn_gcd.c
642
.b = "426bbbff4bdbff38522f35096168f0edd6eb8827bdfcd92",
regress/lib/libcrypto/bn/bn_gcd.c
647
.b = "39acb184673736b04fdc295ec18d4873c9e87be5291a7de0"
regress/lib/libcrypto/bn/bn_gcd.c
653
.b = "45346b4482d0967d50c829d9cd3c004ae308b257ba3e424f"
regress/lib/libcrypto/bn/bn_gcd.c
659
.b = "672af3971a2220742816400394cf5e51d30c7e84f12c5f99"
regress/lib/libcrypto/bn/bn_gcd.c
666
.b = "523fa7f470e6662d511de7c89b98332246311c00411602c9"
regress/lib/libcrypto/bn/bn_gcd.c
673
.b = "540da3c401662ab7a46a45112216372f40b265bf5f29a41b"
regress/lib/libcrypto/bn/bn_gcd.c
680
.b = "66a32e807cd5ba8aaa27a26a6557b612410405c533e30db0"
regress/lib/libcrypto/bn/bn_gcd.c
687
.b = "399a8dbd7959ceb3c21d040c70edc1b0b6a78979649cc87e"
regress/lib/libcrypto/bn/bn_gcd.c
69
.b = "1",
regress/lib/libcrypto/bn/bn_gcd.c
693
.b = "9b400dddd76cd1e856dc42e0250fa7abd9e1ca6d40406de9"
regress/lib/libcrypto/bn/bn_gcd.c
700
.b = "3e6fe477af388c8ac70124319f42bd92ce5544bca3ae90b2"
regress/lib/libcrypto/bn/bn_gcd.c
707
.b = "186dfdc633d6b265fa84e201e361465007ddc0b5ce2cdf6d"
regress/lib/libcrypto/bn/bn_gcd.c
714
.b = "35ae94985e20a405161cdc4901436dd36397c38fdd4a7e33"
regress/lib/libcrypto/bn/bn_gcd.c
721
.b = "6c002b00fbc036c3fc8e61ed14bf9dc00557be4fcd953c30"
regress/lib/libcrypto/bn/bn_gcd.c
728
.b = "5b77539fe191d0829ebd7db19748881f4ed579662f8b3788"
regress/lib/libcrypto/bn/bn_gcd.c
735
.b = "7536275bc0c3267b7fdc41743e6419955861fc5fa9bfd466"
regress/lib/libcrypto/bn/bn_gcd.c
74
.b = "0",
regress/lib/libcrypto/bn/bn_gcd.c
742
.b = "24e2003c3aa30c231bea1c97822dd073c29c4c530aeb2d5e"
regress/lib/libcrypto/bn/bn_gcd.c
749
.b = "2c155346f370ea6bedf6914edfd6f661c6e715fda6407b56"
regress/lib/libcrypto/bn/bn_gcd.c
756
.b = "530a8a0bf423b328dbffa4d4576e7450ed609c096421f2a9"
regress/lib/libcrypto/bn/bn_gcd.c
763
.b = "624a78cea710d55ed9002ee5ea2b04bf0c20e07cf07af576"
regress/lib/libcrypto/bn/bn_gcd.c
770
.b = "21613395d1b095dbc2692e515625af73e204ca223ac29153"
regress/lib/libcrypto/bn/bn_gcd.c
777
.b = "378ab3607cfa0980ee987cabdc98b365a2cafedd48860d16"
regress/lib/libcrypto/bn/bn_gcd.c
785
.b = "1d17ba28d355234b36eb29bd3eb53caddd4e12f6144ca07e"
regress/lib/libcrypto/bn/bn_gcd.c
79
.b = "57",
regress/lib/libcrypto/bn/bn_gcd.c
793
.b = "2249d97ddb467f6f63a6f76ae328cd8d34c2f3115ec4dd7c"
regress/lib/libcrypto/bn/bn_gcd.c
801
.b = "6b0f201145e607d237aecf363c5758cd75261ddb034c3167"
regress/lib/libcrypto/bn/bn_gcd.c
809
.b = "69d2bc47efe097dad533f6b6700e078de4bb56bee98f3535"
regress/lib/libcrypto/bn/bn_gcd.c
817
.b = "35f6780af8e1935b2f26094ab97c4231cb103a7f0c1d91b5"
regress/lib/libcrypto/bn/bn_gcd.c
825
.b = "e1af2e7b007853438ec70464709355c401b6a153d3588c88"
regress/lib/libcrypto/bn/bn_gcd.c
833
.b = "b866a8b952e2560bab904405b5460e7746d86f656994db40"
regress/lib/libcrypto/bn/bn_gcd.c
840
.b = "160b4e86db9e83d0b52a5419fa1507a5691ea7f53b752778"
regress/lib/libcrypto/bn/bn_gcd.c
848
.b = "5afe95c191b714b28933c2c4209d87c8322114863bc7633c"
regress/lib/libcrypto/bn/bn_gcd.c
856
.b = "29351beb4d4d1427e1864b0c0f50a83b7ce96a99e1354fb7"
regress/lib/libcrypto/bn/bn_gcd.c
864
.b = "511f8aa67af7b2fbc64ba4411ce6d5cb9b5d6fc079139d29"
regress/lib/libcrypto/bn/bn_gcd.c
872
.b = "478f9166ae59494b600cb56998a6085b28c851229aeb88c3"
regress/lib/libcrypto/bn/bn_gcd.c
880
.b = "3c1c9e1ab85fe9e59760317a49dd166d5bdabf5b7a17789c"
regress/lib/libcrypto/bn/bn_gcd.c
888
.b = "1391e654616857ab4bbf5e9bc59e6e95e1bb0466b128cfe4"
regress/lib/libcrypto/bn/bn_gcd.c
89
.b = "278d3",
regress/lib/libcrypto/bn/bn_gcd.c
896
.b = "63e0213b6a9ec52cc3b17dd7bed6e0c5c65d6e309871d223"
regress/lib/libcrypto/bn/bn_gcd.c
904
.b = "e8a967992d66b599802b25c4173b71c092b9b297e4fe6f5e"
regress/lib/libcrypto/bn/bn_gcd.c
912
.b = "8a64e46ac9bff23d58e79f10772853bb7aadb2258642282b"
regress/lib/libcrypto/bn/bn_gcd.c
920
.b = "70a9d0d8930a216d33cdd447a8f386e76b67133b657389e4"
regress/lib/libcrypto/bn/bn_gcd.c
928
.b = "3c659ed6efa9270b17532a4da41e80e33629597b82666b9c"
regress/lib/libcrypto/bn/bn_gcd.c
936
.b = "2301db7a7731c7ac7fe37451ff70e3ae589d7fd1b8e4e6ff"
regress/lib/libcrypto/bn/bn_gcd.c
94
.b = "619",
regress/lib/libcrypto/bn/bn_gcd.c
944
.b = "3abaf52e682307727bcd803f699f5a74df082b8ed85cdf27"
regress/lib/libcrypto/bn/bn_gcd.c
952
.b = "4c9ec9a853b470c8c0dd6ea8eef17135530e5e3b8802efb0"
regress/lib/libcrypto/bn/bn_gcd.c
960
.b = "698bb6088d35165e3606663ad8bbfbc96095874aac7f1a45"
regress/lib/libcrypto/bn/bn_gcd.c
968
.b = "4e88b372e168f3b35abec63e3c34c6ac51c22878c6747aea"
regress/lib/libcrypto/bn/bn_gcd.c
976
.b = "19e0bbc5cb73a10da7ec1249f1d1cecbfc0a003e55c09334"
regress/lib/libcrypto/bn/bn_gcd.c
984
.b = "6ba00655a3417cccc7d0b64daad96efc0a5b5ea1910d280a"
regress/lib/libcrypto/bn/bn_gcd.c
99
.b = "e695",
regress/lib/libcrypto/bn/bn_gcd.c
992
.b = "7076c5b843c90cceae07e2e5e8f08167c0f27c6226d88ede"
regress/lib/libcrypto/bn/bn_mod_exp.c
241
generate_test_quintuple(int reduce, BIGNUM *a, BIGNUM *p, BIGNUM *b, BIGNUM *q,
regress/lib/libcrypto/bn/bn_mod_exp.c
255
if (!generate_bn(b, avg, deviate, 0))
regress/lib/libcrypto/bn/bn_mod_exp.c
268
if (b == NULL)
regress/lib/libcrypto/bn/bn_mod_exp.c
271
return BN_mod(b, b, m, ctx);
regress/lib/libcrypto/bn/bn_mod_exp.c
294
if (b == NULL)
regress/lib/libcrypto/bn/bn_mod_exp.c
297
if (!BN_add(b, b, mmodified))
regress/lib/libcrypto/bn/bn_mod_exp.c
316
dump_results(const BIGNUM *a, const BIGNUM *p, const BIGNUM *b, const BIGNUM *q,
regress/lib/libcrypto/bn/bn_mod_exp.c
327
if (b != NULL) {
regress/lib/libcrypto/bn/bn_mod_exp.c
328
bn_print("b", b);
regress/lib/libcrypto/bn/bn_mod_exp.c
439
const BIGNUM *b, const BIGNUM *q, const BIGNUM *m, BN_CTX *ctx)
regress/lib/libcrypto/bn/bn_mod_exp.c
453
if (!BN_mod_exp_simple(fact2, b, q, m, ctx))
regress/lib/libcrypto/bn/bn_mod_exp.c
467
BIGNUM *b, BIGNUM *q, BIGNUM *m, BN_CTX *ctx)
regress/lib/libcrypto/bn/bn_mod_exp.c
472
if (!generate_test_quintuple(reduce, a, p, b, q, m, ctx))
regress/lib/libcrypto/bn/bn_mod_exp.c
478
BN_set_negative(b, (i >> 2) & 1);
regress/lib/libcrypto/bn/bn_mod_exp.c
482
if (!bn_mod_exp2_simple(want, a, p, b, q, m, ctx))
regress/lib/libcrypto/bn/bn_mod_exp.c
485
if (!BN_mod_exp2_mont(got, a, p, b, q, m, ctx, NULL))
regress/lib/libcrypto/bn/bn_mod_exp.c
489
dump_results(a, p, b, q, m, want, got, "BN_mod_exp2_mont");
regress/lib/libcrypto/bn/bn_mod_exp.c
500
BIGNUM *a, *p, *b, *q, *m, *want, *got;
regress/lib/libcrypto/bn/bn_mod_exp.c
515
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_mod_exp.c
528
failed |= bn_mod_exp2_test(reduce, want, got, a, p, b, q, m, ctx);
regress/lib/libcrypto/bn/bn_mod_exp.c
532
failed |= bn_mod_exp2_test(reduce, want, got, a, p, b, q, m, ctx);
regress/lib/libcrypto/bn/bn_mul_div.c
31
benchmark_bn_div_setup(BIGNUM *a, size_t a_bits, BIGNUM *b, size_t b_bits,
regress/lib/libcrypto/bn/bn_mul_div.c
356
BIGNUM *a, *b, *r, *q;
regress/lib/libcrypto/bn/bn_mul_div.c
36
if (!BN_rand(b, b_bits - 1, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY))
regress/lib/libcrypto/bn/bn_mul_div.c
369
if ((b = BN_CTX_get(bn_ctx)) == NULL)
regress/lib/libcrypto/bn/bn_mul_div.c
377
BN_set_flags(b, BN_FLG_CONSTTIME);
regress/lib/libcrypto/bn/bn_mul_div.c
379
if (!bm->setup(a, bm->a_bits, b, bm->b_bits, r, q))
regress/lib/libcrypto/bn/bn_mul_div.c
392
bm->run_once(r, q, a, b, bn_ctx);
regress/lib/libcrypto/bn/bn_mul_div.c
47
benchmark_bn_div_run_once(BIGNUM *r, BIGNUM *q, BIGNUM *a, BIGNUM *b, BN_CTX *bn_ctx)
regress/lib/libcrypto/bn/bn_mul_div.c
49
if (!BN_div(r, q, a, b, bn_ctx))
regress/lib/libcrypto/bn/bn_mul_div.c
54
benchmark_bn_mul_setup(BIGNUM *a, size_t a_bits, BIGNUM *b, size_t b_bits,
regress/lib/libcrypto/bn/bn_mul_div.c
59
if (!BN_rand(b, b_bits, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY))
regress/lib/libcrypto/bn/bn_mul_div.c
68
benchmark_bn_mul_run_once(BIGNUM *r, BIGNUM *q, BIGNUM *a, BIGNUM *b, BN_CTX *bn_ctx)
regress/lib/libcrypto/bn/bn_mul_div.c
70
if (!BN_mul(r, a, b, bn_ctx))
regress/lib/libcrypto/bn/bn_mul_div.c
75
benchmark_bn_sqr_setup(BIGNUM *a, size_t a_bits, BIGNUM *b, size_t b_bits,
regress/lib/libcrypto/bn/bn_mul_div.c
87
benchmark_bn_sqr_run_once(BIGNUM *r, BIGNUM *q, BIGNUM *a, BIGNUM *b, BN_CTX *bn_ctx)
regress/lib/libcrypto/bn/bn_test.c
1004
BIGNUM *a, *b, *c, *d, *e;
regress/lib/libcrypto/bn/bn_test.c
1012
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
1022
CHECK_GOTO(BN_one(b));
regress/lib/libcrypto/bn/bn_test.c
1024
if (BN_mod_exp(d, a, b, c, ctx)) {
regress/lib/libcrypto/bn/bn_test.c
1029
if (BN_mod_exp_ct(d, a, b, c, ctx)) {
regress/lib/libcrypto/bn/bn_test.c
1034
if (BN_mod_exp_nonct(d, a, b, c, ctx)) {
regress/lib/libcrypto/bn/bn_test.c
1043
CHECK_GOTO(BN_bntest_rand(b, 2 + i, 0, 0));
regress/lib/libcrypto/bn/bn_test.c
1045
if (!BN_mod_exp(d, a, b, c, ctx))
regress/lib/libcrypto/bn/bn_test.c
1052
CHECK_GOTO(BN_print(bp, b));
regress/lib/libcrypto/bn/bn_test.c
1060
CHECK_GOTO(BN_exp(e, a, b, ctx));
regress/lib/libcrypto/bn/bn_test.c
1062
CHECK_GOTO(BN_div(a, b, e, c, ctx));
regress/lib/libcrypto/bn/bn_test.c
1063
if (!BN_is_zero(b)) {
regress/lib/libcrypto/bn/bn_test.c
1072
CHECK_GOTO(BN_bntest_rand(b, 2 + i, 0, 0));
regress/lib/libcrypto/bn/bn_test.c
1074
if (!BN_mod_exp_ct(d, a, b, c, ctx))
regress/lib/libcrypto/bn/bn_test.c
1081
CHECK_GOTO(BN_print(bp, b));
regress/lib/libcrypto/bn/bn_test.c
1089
CHECK_GOTO(BN_exp(e, a, b, ctx));
regress/lib/libcrypto/bn/bn_test.c
1091
CHECK_GOTO(BN_div(a, b, e, c, ctx));
regress/lib/libcrypto/bn/bn_test.c
1092
if (!BN_is_zero(b)) {
regress/lib/libcrypto/bn/bn_test.c
1101
CHECK_GOTO(BN_bntest_rand(b, 2 + i, 0, 0));
regress/lib/libcrypto/bn/bn_test.c
1103
if (!BN_mod_exp_nonct(d, a, b, c, ctx))
regress/lib/libcrypto/bn/bn_test.c
1110
CHECK_GOTO(BN_print(bp, b));
regress/lib/libcrypto/bn/bn_test.c
1118
CHECK_GOTO(BN_exp(e, a, b, ctx));
regress/lib/libcrypto/bn/bn_test.c
1120
CHECK_GOTO(BN_div(a, b, e, c, ctx));
regress/lib/libcrypto/bn/bn_test.c
1121
if (!BN_is_zero(b)) {
regress/lib/libcrypto/bn/bn_test.c
1137
BIGNUM *a, *b, *c, *d, *e;
regress/lib/libcrypto/bn/bn_test.c
1145
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
1155
CHECK_GOTO(BN_one(b));
regress/lib/libcrypto/bn/bn_test.c
1157
if (BN_mod_exp_mont_consttime(d, a, b, c, ctx, NULL)) {
regress/lib/libcrypto/bn/bn_test.c
1165
if (BN_mod_exp_mont_consttime(d, a, b, c, ctx, NULL)) {
regress/lib/libcrypto/bn/bn_test.c
1175
CHECK_GOTO(BN_bntest_rand(b, 2 + i, 0, 0));
regress/lib/libcrypto/bn/bn_test.c
1177
if (!BN_mod_exp_mont_consttime(d, a, b, c, ctx, NULL))
regress/lib/libcrypto/bn/bn_test.c
1184
CHECK_GOTO(BN_print(bp, b));
regress/lib/libcrypto/bn/bn_test.c
1192
CHECK_GOTO(BN_exp(e, a, b, ctx));
regress/lib/libcrypto/bn/bn_test.c
1194
CHECK_GOTO(BN_div(a, b, e, c, ctx));
regress/lib/libcrypto/bn/bn_test.c
1195
if (!BN_is_zero(b)) {
regress/lib/libcrypto/bn/bn_test.c
1216
BIGNUM *b, *n, *c;
regress/lib/libcrypto/bn/bn_test.c
1233
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
1259
len = BN_hex2bn(&b,
regress/lib/libcrypto/bn/bn_test.c
1272
CHECK_GOTO(BN_mod_mul_montgomery(c, a, b, mont, ctx));
regress/lib/libcrypto/bn/bn_test.c
1273
CHECK_GOTO(BN_mod_mul_montgomery(d, b, a, mont, ctx));
regress/lib/libcrypto/bn/bn_test.c
1316
CHECK_GOTO(bn_copy(b, a));
regress/lib/libcrypto/bn/bn_test.c
1319
CHECK_GOTO(BN_mod_mul_montgomery(d, a, b, mont, ctx));
regress/lib/libcrypto/bn/bn_test.c
1373
BIGNUM *a, *b, *d, *e;
regress/lib/libcrypto/bn/bn_test.c
1381
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
1390
CHECK_GOTO(BN_bntest_rand(b, 2 + i, 0, 0));
regress/lib/libcrypto/bn/bn_test.c
1392
if (BN_exp(d, a, b, ctx) <= 0)
regress/lib/libcrypto/bn/bn_test.c
1399
CHECK_GOTO(BN_print(bp, b));
regress/lib/libcrypto/bn/bn_test.c
1406
for (; !BN_is_zero(b); BN_sub_word(b, 1))
regress/lib/libcrypto/bn/bn_test.c
1442
BIGNUM *a, *b, *r, *t;
regress/lib/libcrypto/bn/bn_test.c
1452
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
1474
if (!BN_generate_prime_ex(b, 512, 0, NULL, NULL, cb))
regress/lib/libcrypto/bn/bn_test.c
1476
BN_set_negative(b, rand_neg());
regress/lib/libcrypto/bn/bn_test.c
1485
if (!bn_copy(t, b))
regress/lib/libcrypto/bn/bn_test.c
1493
BN_set_negative(b, 0);
regress/lib/libcrypto/bn/bn_test.c
1495
if (!BN_mod_exp_reciprocal(r, a, t, b, ctx))
regress/lib/libcrypto/bn/bn_test.c
1497
BN_set_negative(b, 1);
regress/lib/libcrypto/bn/bn_test.c
1506
if (0 != BN_ucmp(r, b)) {
regress/lib/libcrypto/bn/bn_test.c
1513
kronecker = BN_kronecker(a, b, ctx);
regress/lib/libcrypto/bn/bn_test.c
1517
if (BN_is_negative(a) && BN_is_negative(b))
regress/lib/libcrypto/bn/bn_test.c
1524
CHECK_GOTO(BN_print_fp(stderr, b));
regress/lib/libcrypto/bn/bn_test.c
1641
BIGNUM *a, *b, *c, *d;
regress/lib/libcrypto/bn/bn_test.c
1649
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
1666
CHECK_GOTO(BN_lshift(b, a, i + 1));
regress/lib/libcrypto/bn/bn_test.c
1675
CHECK_GOTO(BN_print(bp, b));
regress/lib/libcrypto/bn/bn_test.c
1679
CHECK_GOTO(BN_sub(d, d, b));
regress/lib/libcrypto/bn/bn_test.c
1685
CHECK_GOTO(BN_print_fp(stderr, b));
regress/lib/libcrypto/bn/bn_test.c
1705
BIGNUM *a, *b, *c;
regress/lib/libcrypto/bn/bn_test.c
1713
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
1721
CHECK_GOTO(BN_lshift1(b, a));
regress/lib/libcrypto/bn/bn_test.c
1728
CHECK_GOTO(BN_print(bp, b));
regress/lib/libcrypto/bn/bn_test.c
1732
CHECK_GOTO(BN_sub(a, b, c));
regress/lib/libcrypto/bn/bn_test.c
1738
CHECK_GOTO(bn_copy(a, b));
regress/lib/libcrypto/bn/bn_test.c
1751
BIGNUM *a, *b, *c, *d, *e;
regress/lib/libcrypto/bn/bn_test.c
1759
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
1772
CHECK_GOTO(BN_rshift(b, a, i + 1));
regress/lib/libcrypto/bn/bn_test.c
1781
CHECK_GOTO(BN_print(bp, b));
regress/lib/libcrypto/bn/bn_test.c
1785
CHECK_GOTO(BN_sub(d, d, b));
regress/lib/libcrypto/bn/bn_test.c
1802
BIGNUM *a, *b, *c;
regress/lib/libcrypto/bn/bn_test.c
1810
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
1818
CHECK_GOTO(BN_rshift1(b, a));
regress/lib/libcrypto/bn/bn_test.c
1825
CHECK_GOTO(BN_print(bp, b));
regress/lib/libcrypto/bn/bn_test.c
1828
CHECK_GOTO(BN_sub(c, a, b));
regress/lib/libcrypto/bn/bn_test.c
1829
CHECK_GOTO(BN_sub(c, c, b));
regress/lib/libcrypto/bn/bn_test.c
1834
CHECK_GOTO(bn_copy(a, b));
regress/lib/libcrypto/bn/bn_test.c
301
BIGNUM *a, *b, *c;
regress/lib/libcrypto/bn/bn_test.c
309
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
316
CHECK_GOTO(BN_bntest_rand(b, 450 + i, 0, 0));
regress/lib/libcrypto/bn/bn_test.c
318
BN_set_negative(b, rand_neg());
regress/lib/libcrypto/bn/bn_test.c
319
CHECK_GOTO(BN_add(c, a, b));
regress/lib/libcrypto/bn/bn_test.c
324
CHECK_GOTO(BN_print(bp, b));
regress/lib/libcrypto/bn/bn_test.c
331
BN_set_negative(b, !BN_is_negative(b));
regress/lib/libcrypto/bn/bn_test.c
332
CHECK_GOTO(BN_add(c, c, b));
regress/lib/libcrypto/bn/bn_test.c
350
BIGNUM *a, *b, *c;
regress/lib/libcrypto/bn/bn_test.c
358
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
366
CHECK_GOTO(bn_copy(b, a));
regress/lib/libcrypto/bn/bn_test.c
369
CHECK_GOTO(BN_add_word(b, i));
regress/lib/libcrypto/bn/bn_test.c
371
CHECK_GOTO(BN_bntest_rand(b, 400 + i - num1, 0, 0));
regress/lib/libcrypto/bn/bn_test.c
373
BN_set_negative(b, rand_neg());
regress/lib/libcrypto/bn/bn_test.c
375
CHECK_GOTO(BN_sub(c, a, b));
regress/lib/libcrypto/bn/bn_test.c
380
CHECK_GOTO(BN_print(bp, b));
regress/lib/libcrypto/bn/bn_test.c
386
CHECK_GOTO(BN_add(c, c, b));
regress/lib/libcrypto/bn/bn_test.c
404
BIGNUM *a, *b, *c, *d, *e;
regress/lib/libcrypto/bn/bn_test.c
412
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
422
BN_zero(b);
regress/lib/libcrypto/bn/bn_test.c
424
if (BN_div(d, c, a, b, ctx)) {
regress/lib/libcrypto/bn/bn_test.c
433
CHECK_GOTO(bn_copy(b, a));
regress/lib/libcrypto/bn/bn_test.c
437
CHECK_GOTO(BN_bntest_rand(b, 50 + 3 * (i - num1), 0, 0));
regress/lib/libcrypto/bn/bn_test.c
439
BN_set_negative(b, rand_neg());
regress/lib/libcrypto/bn/bn_test.c
440
CHECK_GOTO(BN_div(d, c, a, b, ctx));
regress/lib/libcrypto/bn/bn_test.c
445
CHECK_GOTO(BN_print(bp, b));
regress/lib/libcrypto/bn/bn_test.c
454
CHECK_GOTO(BN_print(bp, b));
regress/lib/libcrypto/bn/bn_test.c
460
CHECK_GOTO(BN_mul(e, d, b, ctx));
regress/lib/libcrypto/bn/bn_test.c
485
BIGNUM *a, *b;
regress/lib/libcrypto/bn/bn_test.c
494
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
500
!BN_bntest_rand(b, BN_BITS2, -1, 0))
regress/lib/libcrypto/bn/bn_test.c
502
s = BN_get_word(b);
regress/lib/libcrypto/bn/bn_test.c
505
if (!bn_copy(b, a))
regress/lib/libcrypto/bn/bn_test.c
508
rmod = BN_mod_word(b, s);
regress/lib/libcrypto/bn/bn_test.c
509
r = BN_div_word(b, s);
regress/lib/libcrypto/bn/bn_test.c
526
CHECK_GOTO(BN_print(bp, b));
regress/lib/libcrypto/bn/bn_test.c
538
CHECK_GOTO(BN_mul_word(b, s));
regress/lib/libcrypto/bn/bn_test.c
539
CHECK_GOTO(BN_add_word(b, r));
regress/lib/libcrypto/bn/bn_test.c
540
CHECK_GOTO(BN_sub(b, a, b));
regress/lib/libcrypto/bn/bn_test.c
541
if (!BN_is_zero(b)) {
regress/lib/libcrypto/bn/bn_test.c
558
BIGNUM *a, *b, *c, *d, *e;
regress/lib/libcrypto/bn/bn_test.c
566
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
578
CHECK_GOTO(bn_copy(b, a));
regress/lib/libcrypto/bn/bn_test.c
582
CHECK_GOTO(BN_bntest_rand(b, 50 + 3 * (i - num1), 0, 0));
regress/lib/libcrypto/bn/bn_test.c
584
CHECK_GOTO(recp = BN_RECP_CTX_create(b));
regress/lib/libcrypto/bn/bn_test.c
590
CHECK_GOTO(BN_print(bp, b));
regress/lib/libcrypto/bn/bn_test.c
599
CHECK_GOTO(BN_print(bp, b));
regress/lib/libcrypto/bn/bn_test.c
605
CHECK_GOTO(BN_mul(e, d, b, ctx));
regress/lib/libcrypto/bn/bn_test.c
613
CHECK_GOTO(BN_print_fp(stderr, b));
regress/lib/libcrypto/bn/bn_test.c
630
BIGNUM *a, *b, *c, *d, *e;
regress/lib/libcrypto/bn/bn_test.c
638
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
650
CHECK_GOTO(BN_bntest_rand(b, 100, 0, 0));
regress/lib/libcrypto/bn/bn_test.c
652
CHECK_GOTO(BN_bntest_rand(b, i - num1, 0, 0));
regress/lib/libcrypto/bn/bn_test.c
654
BN_set_negative(b, rand_neg());
regress/lib/libcrypto/bn/bn_test.c
655
CHECK_GOTO(BN_mul(c, a, b, ctx));
regress/lib/libcrypto/bn/bn_test.c
660
CHECK_GOTO(BN_print(bp, b));
regress/lib/libcrypto/bn/bn_test.c
667
CHECK_GOTO(BN_sub(d, d, b));
regress/lib/libcrypto/bn/bn_test.c
781
BIGNUM *a, *b, *c, *d, *A, *B, *n;
regress/lib/libcrypto/bn/bn_test.c
789
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
820
CHECK_GOTO(BN_bntest_rand(b, 100, 0, 0));
regress/lib/libcrypto/bn/bn_test.c
830
CHECK_GOTO(BN_nnmod(b, b, n, ctx));
regress/lib/libcrypto/bn/bn_test.c
833
CHECK_GOTO(BN_to_montgomery(B, b, mont, ctx));
regress/lib/libcrypto/bn/bn_test.c
841
CHECK_GOTO(BN_print(bp, b));
regress/lib/libcrypto/bn/bn_test.c
850
CHECK_GOTO(BN_mod_mul(d, a, b, n, ctx));
regress/lib/libcrypto/bn/bn_test.c
869
BIGNUM *a, *b, *c, *d, *e;
regress/lib/libcrypto/bn/bn_test.c
877
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
888
CHECK_GOTO(BN_bntest_rand(b, 450 + i * 10, 0, 0));
regress/lib/libcrypto/bn/bn_test.c
890
BN_set_negative(b, rand_neg());
regress/lib/libcrypto/bn/bn_test.c
891
CHECK_GOTO(BN_mod(c, a, b, ctx));
regress/lib/libcrypto/bn/bn_test.c
896
CHECK_GOTO(BN_print(bp, b));
regress/lib/libcrypto/bn/bn_test.c
902
CHECK_GOTO(BN_div(d, e, a, b, ctx));
regress/lib/libcrypto/bn/bn_test.c
920
BIGNUM *a, *b, *c, *d, *e;
regress/lib/libcrypto/bn/bn_test.c
928
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
938
CHECK_GOTO(BN_one(b));
regress/lib/libcrypto/bn/bn_test.c
940
if (BN_mod_mul(e, a, b, c, ctx)) {
regress/lib/libcrypto/bn/bn_test.c
950
CHECK_GOTO(BN_bntest_rand(b, 425 + i * 11, 0, 0));
regress/lib/libcrypto/bn/bn_test.c
952
BN_set_negative(b, rand_neg());
regress/lib/libcrypto/bn/bn_test.c
953
if (!BN_mod_mul(e, a, b, c, ctx)) {
regress/lib/libcrypto/bn/bn_test.c
965
CHECK_GOTO(BN_print(bp, b));
regress/lib/libcrypto/bn/bn_test.c
968
if ((BN_is_negative(a) ^ BN_is_negative(b)) &&
regress/lib/libcrypto/bn/bn_test.c
983
CHECK_GOTO(BN_mul(d, a, b, ctx));
regress/lib/libcrypto/bn/bn_test.c
985
CHECK_GOTO(BN_div(a, b, d, c, ctx));
regress/lib/libcrypto/bn/bn_test.c
986
if (!BN_is_zero(b)) {
regress/lib/libcrypto/crypto/crypto_test.c
102
(unsigned long long)b,
regress/lib/libcrypto/crypto/crypto_test.c
103
(unsigned long long)crypto_ct_gt_mask(a, b),
regress/lib/libcrypto/crypto/crypto_test.c
119
uint8_t a, b, mask;
regress/lib/libcrypto/crypto/crypto_test.c
148
b = 0;
regress/lib/libcrypto/crypto/crypto_test.c
151
if ((a != b) != crypto_ct_ne_u8(a, b)) {
regress/lib/libcrypto/crypto/crypto_test.c
153
"want %d\n", a, b, crypto_ct_ne_u8(a, b), a != b);
regress/lib/libcrypto/crypto/crypto_test.c
156
mask = (a != b) ? -1 : 0;
regress/lib/libcrypto/crypto/crypto_test.c
157
if (mask != crypto_ct_ne_mask_u8(a, b)) {
regress/lib/libcrypto/crypto/crypto_test.c
159
"want %x\n", a, b, crypto_ct_ne_mask_u8(a, b), mask);
regress/lib/libcrypto/crypto/crypto_test.c
162
if ((a == b) != crypto_ct_eq_u8(a, b)) {
regress/lib/libcrypto/crypto/crypto_test.c
164
"want %d\n", a, b, crypto_ct_eq_u8(a, b), a != b);
regress/lib/libcrypto/crypto/crypto_test.c
167
mask = (a == b) ? -1 : 0;
regress/lib/libcrypto/crypto/crypto_test.c
168
if (mask != crypto_ct_eq_mask_u8(a, b)) {
regress/lib/libcrypto/crypto/crypto_test.c
170
"want %x\n", a, b, crypto_ct_eq_mask_u8(a, b), mask);
regress/lib/libcrypto/crypto/crypto_test.c
173
} while (++b != 0);
regress/lib/libcrypto/crypto/crypto_test.c
27
size_t a, b, mask;
regress/lib/libcrypto/crypto/crypto_test.c
69
memcpy(&b, buf, sizeof(b));
regress/lib/libcrypto/crypto/crypto_test.c
71
if ((a < b) != crypto_ct_lt(a, b)) {
regress/lib/libcrypto/crypto/crypto_test.c
75
(unsigned long long)b,
regress/lib/libcrypto/crypto/crypto_test.c
76
crypto_ct_lt(a, b), a < b);
regress/lib/libcrypto/crypto/crypto_test.c
79
mask = (a < b) ? -1 : 0;
regress/lib/libcrypto/crypto/crypto_test.c
80
if (mask != crypto_ct_lt_mask(a, b)) {
regress/lib/libcrypto/crypto/crypto_test.c
84
(unsigned long long)b,
regress/lib/libcrypto/crypto/crypto_test.c
85
(unsigned long long)crypto_ct_lt_mask(a, b),
regress/lib/libcrypto/crypto/crypto_test.c
89
if ((a > b) != crypto_ct_gt(a, b)) {
regress/lib/libcrypto/crypto/crypto_test.c
93
(unsigned long long)b,
regress/lib/libcrypto/crypto/crypto_test.c
94
crypto_ct_gt(a, b), a > b);
regress/lib/libcrypto/crypto/crypto_test.c
97
mask = (a > b) ? -1 : 0;
regress/lib/libcrypto/crypto/crypto_test.c
98
if (mask != crypto_ct_gt_mask(a, b)) {
regress/lib/libcrypto/ec/ec_arithmetic.c
125
EC_POINT *a = NULL, *b = NULL, *result = NULL;
regress/lib/libcrypto/ec/ec_arithmetic.c
153
if ((b = EC_POINT_new(group)) == NULL)
regress/lib/libcrypto/ec/ec_arithmetic.c
158
if (!EC_POINT_mul(group, b, scalar, NULL, NULL, ctx))
regress/lib/libcrypto/ec/ec_arithmetic.c
169
bm->func(group, result, scalar, a, b, ctx);
regress/lib/libcrypto/ec/ec_arithmetic.c
180
EC_POINT_free(b);
regress/lib/libcrypto/ec/ec_arithmetic.c
33
const BIGNUM *scalar, const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx)
regress/lib/libcrypto/ec/ec_arithmetic.c
35
if (!EC_POINT_add(group, result, a, b, ctx))
regress/lib/libcrypto/ec/ec_arithmetic.c
41
const BIGNUM *scalar, const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx)
regress/lib/libcrypto/ec/ec_arithmetic.c
49
const BIGNUM *scalar, const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx)
regress/lib/libcrypto/ec/ec_asn1_test.c
2518
BIGNUM *p, *a, *b, *pow2, *r, *seed_bn, *w;
regress/lib/libcrypto/ec/ec_asn1_test.c
2533
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/ec/ec_asn1_test.c
2573
if (!EC_GROUP_get_curve(group, p, a, b, ctx))
regress/lib/libcrypto/ec/ec_asn1_test.c
258
BIGNUM *p, *a, *b, *x, *y, *order, *cofactor;
regress/lib/libcrypto/ec/ec_asn1_test.c
2622
if (!BN_mod_sqr(b, b, p, ctx))
regress/lib/libcrypto/ec/ec_asn1_test.c
2624
if (!BN_mod_mul(r, r, b, p, ctx))
regress/lib/libcrypto/ec/ec_asn1_test.c
2628
if (!BN_mod_sqr(b, a, p, ctx))
regress/lib/libcrypto/ec/ec_asn1_test.c
2630
if (!BN_mod_mul(a, a, b, p, ctx))
regress/lib/libcrypto/ec/ec_asn1_test.c
268
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/ec/ec_asn1_test.c
281
if (!EC_GROUP_get_curve(group, p, a, b, ctx))
regress/lib/libcrypto/ec/ec_asn1_test.c
294
if (!EC_GROUP_set_curve(simple_group, p, a, b, ctx))
regress/lib/libcrypto/ec/ec_asn1_test.c
462
const char *b;
regress/lib/libcrypto/ec/ec_asn1_test.c
522
.b = "7b425ed0" "97b425ed" "097b425e" "d097b425"
regress/lib/libcrypto/ec/ec_asn1_test.c
580
.b = "1ac1da05" "b55bc146" "33bd39e4" "7f94302e"
regress/lib/libcrypto/ec/ec_asn1_test.c
635
.b = "41a3b6bf" "c668778e" "be2954a4" "b1df36d1"
regress/lib/libcrypto/ec/ec_asn1_test.c
659
.b = "41a3b6bf" "c668778e" "be2954a4" "b1df36d1"
regress/lib/libcrypto/ec/ec_asn1_test.c
723
.b = "06eb",
regress/lib/libcrypto/ec/ec_asn1_test.c
798
.b = "1",
regress/lib/libcrypto/ec/ec_asn1_test.c
820
BIGNUM *p, *a, *b;
regress/lib/libcrypto/ec/ec_asn1_test.c
829
if ((b = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/ec/ec_asn1_test.c
843
if (BN_hex2bn(&b, curve->b) == 0)
regress/lib/libcrypto/ec/ec_asn1_test.c
849
if (!EC_GROUP_set_curve(group, p, a, b, ctx))
regress/lib/libcrypto/ec/ectest.c
156
BIGNUM *p, *a, *b;
regress/lib/libcrypto/ec/ectest.c
171
b = BN_new();
regress/lib/libcrypto/ec/ectest.c
172
if (!p || !a || !b)
regress/lib/libcrypto/ec/ectest.c
179
if (!BN_hex2bn(&b, "1"))
regress/lib/libcrypto/ec/ectest.c
182
if ((group = EC_GROUP_new_curve_GFp(p, a, b, ctx)) == NULL)
regress/lib/libcrypto/ec/ectest.c
194
if (!EC_GROUP_get_curve(group, p, a, b, ctx))
regress/lib/libcrypto/ec/ectest.c
202
BN_print_fp(stdout, b);
regress/lib/libcrypto/ec/ectest.c
336
if (!BN_hex2bn(&b, "1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45"))
regress/lib/libcrypto/ec/ectest.c
338
if (!EC_GROUP_set_curve(group, p, a, b, ctx))
regress/lib/libcrypto/ec/ectest.c
385
if (!BN_hex2bn(&b, "64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1"))
regress/lib/libcrypto/ec/ectest.c
387
if (!EC_GROUP_set_curve(group, p, a, b, ctx))
regress/lib/libcrypto/ec/ectest.c
432
if (!BN_hex2bn(&b, "B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4"))
regress/lib/libcrypto/ec/ectest.c
434
if (!EC_GROUP_set_curve(group, p, a, b, ctx))
regress/lib/libcrypto/ec/ectest.c
479
if (!BN_hex2bn(&b, "5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B"))
regress/lib/libcrypto/ec/ectest.c
481
if (!EC_GROUP_set_curve(group, p, a, b, ctx))
regress/lib/libcrypto/ec/ectest.c
526
if (!BN_hex2bn(&b, "B3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141"
regress/lib/libcrypto/ec/ectest.c
528
if (!EC_GROUP_set_curve(group, p, a, b, ctx))
regress/lib/libcrypto/ec/ectest.c
575
if (!BN_hex2bn(&b, "051953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B"
regress/lib/libcrypto/ec/ectest.c
578
if (!EC_GROUP_set_curve(group, p, a, b, ctx))
regress/lib/libcrypto/ec/ectest.c
647
BN_free(b);
regress/lib/libcrypto/lhash/lhash_test.c
122
if (lh_insert(lh, (void *)b2) != b || lh_error(lh) != 0) {
regress/lib/libcrypto/lhash/lhash_test.c
41
const char *a = "a", *b = "b", *c = "c", *d = "d";
regress/lib/libcrypto/lhash/lhash_test.c
72
if (lh_insert(lh, (void *)b) != NULL || lh_error(lh) != 0) {
regress/lib/libcrypto/lhash/lhash_test.c
76
if (lh_retrieve(lh, "b") != b) {
regress/lib/libcrypto/sm2/sm2crypttest.c
46
BIGNUM *b = NULL;
regress/lib/libcrypto/sm2/sm2crypttest.c
56
BN_hex2bn(&b, b_hex);
regress/lib/libcrypto/sm2/sm2crypttest.c
58
group = EC_GROUP_new_curve_GFp(p, a, b, NULL);
regress/lib/libcrypto/sm2/sm2crypttest.c
61
BN_free(b);
regress/lib/libcrypto/sm2/sm2sigtest.c
47
BIGNUM *b = NULL;
regress/lib/libcrypto/sm2/sm2sigtest.c
57
BN_hex2bn(&b, b_hex);
regress/lib/libcrypto/sm2/sm2sigtest.c
59
group = EC_GROUP_new_curve_GFp(p, a, b, NULL);
regress/lib/libcrypto/sm2/sm2sigtest.c
62
BN_free(b);
regress/lib/libm/msun/atf-c.h
106
#define atf_tc_get_config_var(a, b) "."
regress/lib/libm/msun/atf-c.h
33
#define atf_tc_get_config_var_as_bool_wd(a, b ,c) c
regress/lib/libm/msun/atf-c.h
93
#define ATF_REQUIRE_EQ(a, b) atf_req((a) == (b), -1, NULL)
regress/lib/libm/msun/atf-c.h
94
#define ATF_REQUIRE_EQ_MSG(a, b, fmt, ...) \
regress/lib/libm/msun/atf-c.h
95
atf_req((a) == (b), -1, fmt, ##__VA_ARGS__)
regress/lib/libm/msun/cexp_test.c
255
double a, b;
regress/lib/libm/msun/cexp_test.c
261
b = tests[i + 1];
regress/lib/libm/msun/cexp_test.c
264
test_tol(cexp, CMPLXL(a, b), CMPLXL(x, y), 3 * DBL_ULP());
regress/lib/libm/msun/cexp_test.c
269
test_tol(cexpf, CMPLXL(a, b), CMPLXL(x, y), 1 * FLT_ULP());
regress/lib/libm/msun/csqrt_test.c
116
double a, b;
regress/lib/libm/msun/csqrt_test.c
123
b = tests[i + 1] * mults[j] * mults[j];
regress/lib/libm/msun/csqrt_test.c
126
ATF_CHECK(t_csqrt(CMPLXL(a, b)) == CMPLXL(x, y));
regress/lib/libm/msun/csqrt_test.c
213
long double a, b;
regress/lib/libm/msun/csqrt_test.c
224
b = ldexpl(252 * 0x1p-8, exp);
regress/lib/libm/msun/csqrt_test.c
225
result = t_csqrt(CMPLXL(a, b));
regress/lib/libm/msun/csqrt_test.c
231
b = ldexpl(60 * 0x1p-6, exp);
regress/lib/libm/msun/csqrt_test.c
232
result = t_csqrt(CMPLXL(a, b));
regress/lib/libm/msun/csqrt_test.c
238
b = 0;
regress/lib/libm/msun/csqrt_test.c
239
result = t_csqrt(CMPLXL(a, b));
regress/lib/libm/msun/csqrt_test.c
254
long double b, x;
regress/lib/libm/msun/csqrt_test.c
286
b = ldexpl((long double)sq_mantbits,
regress/lib/libm/msun/csqrt_test.c
289
CHECK_FPEQUAL(b, x * x * 2);
regress/lib/libm/msun/csqrt_test.c
290
result = t_csqrt(CMPLXL(0, b));
regress/lib/libm/msun/ctrig_test.c
386
long double a, b;
regress/lib/libm/msun/ctrig_test.c
420
z = CMPLXL(tests[i].a, tests[i].b);
regress/lib/libm/msun/macros.h
5
#define fpequal(a, b) fpequal_cs(a, b, 1)
regress/lib/libpthread/barrier/barrier.c
15
pthread_barrier_t b = (pthread_barrier_t)arg;
regress/lib/libpthread/barrier/barrier.c
16
rc = pthread_barrier_wait(&b);
regress/lib/libpthread/barrier/barrier.c
26
pthread_barrier_t b;
regress/lib/libpthread/barrier/barrier.c
35
CHECKr(pthread_barrier_init(&b, &attr, 10));
regress/lib/libpthread/barrier/barrier.c
38
CHECKr(pthread_create(&thr[i], NULL, foo, (void *)b));
regress/lib/libpthread/barrier/barrier.c
44
CHECKr(pthread_barrier_destroy(&b));
regress/lib/libradius/main.c
12
int test_entry_cmp(const void *a, const void *b)
regress/lib/libradius/main.c
16
((struct test_entry *)b)->name);
regress/lib/libutil/ber/ber_test.c
323
int pos, b;
regress/lib/libutil/ber/ber_test.c
374
if (ober_get_boolean(elm, &b) == -1) {
regress/lib/libutil/ber/ber_test.c
378
if (ober_scanf_elements(elm, "b", &b) == -1) {
regress/lib/libutil/ber/ber_test_int_i.c
521
int pos, b;
regress/lib/libutil/ber/ber_test_int_i.c
616
int pos, b;
regress/lib/libz/utils_unittest.cc
39
#define TEST(a, b) void b(void)
regress/lib/libz/utils_unittest.cc
41
#define ASSERT_EQ(a, b) assert((a) == (b))
regress/lib/libz/utils_unittest.cc
42
#define ASSERT_GT(a, b) assert((a) > (b))
regress/lib/libz/utils_unittest.cc
45
#define EXPECT_EQ(a, b) do { \
regress/lib/libz/utils_unittest.cc
46
if ((a) != (b)) \
regress/lib/libz/utils_unittest.cc
47
errx(1, "%s != %s", #a, #b); \
regress/lib/libz/utils_unittest.cc
477
uint8_t b = src[i];
regress/lib/libz/utils_unittest.cc
478
stream.next_in = &b;
regress/libexec/ld.so/initfirst/test2/libab/ab.C
26
AB b;
regress/misc/exceptions/threads/exceptions.cc
32
b();
regress/sbin/ifconfig/ifaddr.c
118
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
regress/sbin/ifconfig/ifaddr.c
119
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
regress/sbin/iked/parser/common.c
100
sa_stateok(const struct iked_sa *a, int b)
regress/sbin/iked/parser/common.c
106
sa_state(struct iked * a, struct iked_sa *b, int c)
regress/sbin/iked/parser/common.c
111
ikev2_disable_rekeying(struct iked *a, struct iked_sa *b)
regress/sbin/iked/parser/common.c
116
ikev2_init_ike_sa(struct iked *a, void *b)
regress/sbin/iked/parser/common.c
87
childsa_lookup(struct iked_sa *a, uint64_t b, uint8_t c)
regress/sbin/iked/parser/common.c
93
ikev2_childsa_delete(struct iked *a, struct iked_sa *b, uint8_t c,
regress/sbin/iked/test_helper/test_helper.h
29
#define MINIMUM(a,b) (((a)<(b))?(a):(b))
regress/sys/altivec_ast/vecast.c
37
#define AD(a, b, c, d) (struct double4){a, b, c, d}
regress/sys/altivec_ast/vecast.c
38
#define VF(a, b, c, d) (vector float)(a, b, c, d)
regress/sys/altivec_ast/vecast.c
39
#define VI(a, b, c, d) (vector int)(a, b, c, d)
regress/sys/altivec_ast/vecast.c
40
#define VU(a, b, c, d) (vector unsigned)(a, b, c, d)
regress/sys/altivec_ast/vecast.c
49
union vu a, b;
regress/sys/altivec_ast/vecast.c
52
b.vf = answer;
regress/sys/altivec_ast/vecast.c
55
b.f[0], b.f[1], b.f[2], b.f[3]);
regress/sys/altivec_ast/vecast.c
64
union vu a, b;
regress/sys/altivec_ast/vecast.c
67
b.vi = answer;
regress/sys/altivec_ast/vecast.c
70
b.i[0], b.i[1], b.i[2], b.i[3]);
regress/sys/altivec_ast/vecast.c
79
union vu a, b;
regress/sys/altivec_ast/vecast.c
82
b.vi = answer;
regress/sys/altivec_ast/vecast.c
85
b.u[0], b.u[1], b.u[2], b.u[3]);
regress/sys/crypto/aes/aestest.c
61
match(unsigned char *a, unsigned char *b, size_t len)
regress/sys/crypto/aes/aestest.c
65
if (memcmp(a, b, len) == 0)
regress/sys/crypto/aes/aestest.c
74
printf("%2.2x", b[i]);
regress/sys/crypto/aesctr/aesctr.c
142
explicit_bzero(void *b, size_t len)
regress/sys/crypto/aesctr/aesctr.c
144
bzero(b, len);
regress/sys/crypto/aesctr/aesctr.c
187
match(unsigned char *a, unsigned char *b, size_t len)
regress/sys/crypto/aesctr/aesctr.c
191
if (memcmp(a, b, len) == 0)
regress/sys/crypto/aesctr/aesctr.c
200
printf("%2.2x", b[i]);
regress/sys/crypto/aesxts/aes_xts.c
1723
explicit_bzero(void *b, size_t len)
regress/sys/crypto/aesxts/aes_xts.c
1725
bzero(b, len);
regress/sys/crypto/aesxts/aes_xts.c
1729
match(unsigned char *a, unsigned char *b, size_t len)
regress/sys/crypto/aesxts/aes_xts.c
1733
if (memcmp(a, b, len) == 0)
regress/sys/crypto/aesxts/aes_xts.c
1742
printf("%2.2x", b[i]);
regress/sys/crypto/chachapoly/chachapoly_test.c
28
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
regress/sys/crypto/chachapoly/chachapoly_test.c
353
match(unsigned char *a, unsigned char *b, size_t len)
regress/sys/crypto/chachapoly/chachapoly_test.c
357
if (memcmp(a, b, len) == 0)
regress/sys/crypto/chachapoly/chachapoly_test.c
366
printf("%2.2x", b[i]);
regress/sys/crypto/cmac/cmac_test.c
132
explicit_bzero(void *b, size_t len)
regress/sys/crypto/cmac/cmac_test.c
134
bzero(b, len);
regress/sys/crypto/enc/des3.c
105
printf("%2.2x", b[i]);
regress/sys/crypto/enc/des3.c
48
explicit_bzero(void *b, size_t len)
regress/sys/crypto/enc/des3.c
50
bzero(b, len);
regress/sys/crypto/enc/des3.c
92
match(unsigned char *a, unsigned char *b, size_t len)
regress/sys/crypto/enc/des3.c
96
if (memcmp(a, b, len) == 0)
regress/sys/crypto/gmac/gmac_test.c
29
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
regress/sys/crypto/gmac/gmac_test.c
675
match(unsigned char *a, unsigned char *b, size_t len)
regress/sys/crypto/gmac/gmac_test.c
679
if (memcmp(a, b, len) == 0)
regress/sys/crypto/gmac/gmac_test.c
688
printf("%2.2x", b[i]);
regress/sys/crypto/gmac/gmac_test.c
754
explicit_bzero(void *b, size_t len)
regress/sys/crypto/gmac/gmac_test.c
756
bzero(b, len);
regress/sys/crypto/hmac/hmac_test.c
95
explicit_bzero(void *b, size_t len)
regress/sys/crypto/hmac/hmac_test.c
97
bzero(b, len);
regress/sys/crypto/key_wrap/key_wrap_test.c
76
explicit_bzero(void *b, size_t len)
regress/sys/crypto/key_wrap/key_wrap_test.c
78
bzero(b, len);
regress/sys/kern/kqueue/kqueue-random.c
17
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
regress/sys/kern/poll/poll_close.c
43
char b;
regress/sys/kern/poll/poll_close.c
53
read(sock[1], &b, 1);
regress/sys/kern/poll/poll_close.c
57
read(barrier[1], &b, 1);
regress/sys/kern/poll/poll_close.c
74
char b;
regress/sys/kern/poll/poll_close.c
98
read(barrier[0], &b, 1);
regress/sys/kern/poll/poll_iocond.c
301
char b = 0;
regress/sys/kern/poll/poll_iocond.c
303
ret = write(fd, &b, 1);
regress/sys/kern/poll/poll_iocond.c
305
ret = read(fd, &b, 1);
regress/sys/kern/poll/poll_iocond.c
316
char b = 0;
regress/sys/kern/poll/poll_iocond.c
331
ret = write(fd, &b, 1);
regress/sys/kern/poll/poll_iocond.c
380
ret = write(fd, &b, 1);
regress/sys/kern/poll/poll_iocond.c
386
ret = write(fd, &b, 1);
regress/sys/kern/poll/poll_iocond.c
399
ret = send(fd, &b, 1, 0);
regress/sys/kern/poll/poll_iocond.c
402
ret = send(fd, &b, 1, MSG_OOB);
regress/sys/kern/poll/poll_iocond.c
405
ret = send(fd, &b, 1, 0);
regress/sys/kern/poll/poll_iocond.c
423
ret = write(fd, &b, 1);
regress/sys/kern/poll/poll_iocond.c
496
char b = 0;
regress/sys/kern/poll/poll_iocond.c
51
#define MIN(a, b) ((a) <= (b) ? (a) : (b))
regress/sys/kern/poll/poll_iocond.c
551
ret = read(fd, &b, 1);
regress/sys/kern/poll/poll_iocond.c
687
ret = recv(fd, &b, 1, 0);
regress/sys/kern/poll/poll_iocond.c
735
ret = read(fd, &b, 1);
regress/sys/kern/poll/poll_iocond.c
742
ret = read(fd, &b, 1);
regress/sys/kern/ptrace/xstate/xstate.c
16
uint32_t a, b, c, d;
regress/sys/kern/ptrace/xstate/xstate.c
51
: "=a" (out->a), "=b" (out->b), "=c" (out->c), "=d" (out->d)
regress/sys/kern/ptrace/xstate/xstate.c
93
xstate->components[XSTATE_COMPONENT_AVX].offset = leaf.b;
regress/sys/kern/ptrace2/atf-c.h
83
#define ATF_REQUIRE_EQ(a, b) atf_req((a) == (b), -1, NULL)
regress/sys/kern/ptrace2/atf-c.h
84
#define ATF_REQUIRE_EQ_MSG(a, b, fmt, ...) \
regress/sys/kern/ptrace2/atf-c.h
85
atf_req((a) == (b), -1, fmt, ##__VA_ARGS__)
regress/sys/kern/ptrace2/atf-c.h
94
#define atf_tc_get_config_var(a, b) "."
regress/sys/kern/ptrace2/atf-c.h
98
#define atf_tc_get_config_var_as_bool_wd(tc, str, b) 0
regress/sys/kern/ptrace2/macros.h
57
#define pollts(a, b, c, e) 0
regress/sys/kern/select/select_close.c
44
char b;
regress/sys/kern/select/select_close.c
53
read(sock[1], &b, 1);
regress/sys/kern/select/select_close.c
57
read(barrier[1], &b, 1);
regress/sys/kern/select/select_close.c
73
char b;
regress/sys/kern/select/select_close.c
97
read(barrier[0], &b, 1);
regress/sys/kern/select/select_iocond.c
302
char b = 0;
regress/sys/kern/select/select_iocond.c
304
ret = write(fd, &b, 1);
regress/sys/kern/select/select_iocond.c
306
ret = read(fd, &b, 1);
regress/sys/kern/select/select_iocond.c
330
char b = 0;
regress/sys/kern/select/select_iocond.c
343
ret = write(fd, &b, 1);
regress/sys/kern/select/select_iocond.c
395
ret = write(fd, &b, 1);
regress/sys/kern/select/select_iocond.c
401
ret = write(fd, &b, 1);
regress/sys/kern/select/select_iocond.c
414
ret = send(fd, &b, 1, 0);
regress/sys/kern/select/select_iocond.c
417
ret = send(fd, &b, 1, MSG_OOB);
regress/sys/kern/select/select_iocond.c
420
ret = send(fd, &b, 1, 0);
regress/sys/kern/select/select_iocond.c
438
ret = write(fd, &b, 1);
regress/sys/kern/select/select_iocond.c
491
char b = 0;
regress/sys/kern/select/select_iocond.c
52
#define MIN(a, b) ((a) <= (b) ? (a) : (b))
regress/sys/kern/select/select_iocond.c
553
ret = read(fd, &b, 1);
regress/sys/kern/select/select_iocond.c
687
ret = recv(fd, &b, 1, 0);
regress/sys/kern/select/select_iocond.c
737
ret = read(fd, &b, 1);
regress/sys/kern/select/select_iocond.c
745
ret = read(fd, &b, 1);
regress/sys/kern/signal/fpsig/fpsig.c
26
double a, b, c = 0.0;
regress/sys/kern/signal/fpsig/fpsig.c
29
for (b = 0.0; b < LIMIT; b += 1.1)
regress/sys/kern/signal/fpsig/fpsig.c
30
c += a * a + b * b;
regress/sys/kern/signal/fpsig/fpsig.c
57
double a, b, h1 = g1, h2 = g2;
regress/sys/kern/signal/fpsig/fpsig.c
60
for (b = 0.0; b < LIMIT; b += 1.1)
regress/sys/kern/signal/fpsig/fpsig.c
61
h1 += a * a + b * b;
regress/sys/kern/signal/fpsig/fpsig.c
63
for (b = 0.0; b < LIMIT; b += 1.1)
regress/sys/kern/signal/fpsig/fpsig.c
64
h2 += a * a + b * b;
regress/sys/kern/signal/siginfo-fault/siginfo-fault.c
41
#define CHECK_EQ(a, b) assert((a) == (b))
regress/sys/kern/signal/siginfo-fault/siginfo-fault.c
42
#define CHECK_NE(a, b) assert((a) != (b))
regress/sys/kern/signal/siginfo-fault/siginfo-fault.c
43
#define CHECK_LE(a, b) assert((a) <= (b))
regress/sys/kern/signal/sigio/util.c
100
assert(read(sfd, &b, 1) == 1);
regress/sys/kern/signal/sigio/util.c
97
char b = 0;
regress/sys/kern/signal/sigio/util.c
99
assert(write(sfd, &b, 1) == 1);
regress/sys/kern/stackpivot/pagefault/stackpivot.c
31
size_t b = 0;
regress/sys/kern/stackpivot/pagefault/stackpivot.c
34
b += *scan++;
regress/sys/kern/stackpivot/pagefault/stackpivot.c
38
return b;
regress/sys/kern/unixsockets/unixsock_test.c
38
test_connect(struct sockaddr_un *sun, socklen_t slen, struct sockaddr_un *b)
regress/sys/kern/unixsockets/unixsock_test.c
49
if (bind(s2, (struct sockaddr *)b, sizeof(*b)) == -1)
regress/sys/kern/unixsockets/unixsock_test.c
58
unlink(b->sun_path);
regress/sys/net/rtable/kern_compat.h
58
#define pool_init(a, b, c, d, e, f, g) do { (a)->pr_size = (b); } while (0)
regress/sys/net/rtable/kern_compat.h
65
#define min(a, b) (a < b ? a : b)
regress/sys/net/rtable/kern_compat.h
66
#define max(a, b) (a < b ? b : a)
regress/sys/net/rtable/util.c
511
#define mix(a, b, c) do { \
regress/sys/net/rtable/util.c
512
a -= b; a -= c; a ^= (c >> 13); \
regress/sys/net/rtable/util.c
513
b -= c; b -= a; b ^= (a << 8); \
regress/sys/net/rtable/util.c
514
c -= a; c -= b; c ^= (b >> 13); \
regress/sys/net/rtable/util.c
515
a -= b; a -= c; a ^= (c >> 12); \
regress/sys/net/rtable/util.c
516
b -= c; b -= a; b ^= (a << 16); \
regress/sys/net/rtable/util.c
517
c -= a; c -= b; c ^= (b >> 5); \
regress/sys/net/rtable/util.c
518
a -= b; a -= c; a ^= (c >> 3); \
regress/sys/net/rtable/util.c
519
b -= c; b -= a; b ^= (a << 10); \
regress/sys/net/rtable/util.c
520
c -= a; c -= b; c ^= (b >> 15); \
regress/sys/net/rtable/util.c
526
uint32_t a, b, c;
regress/sys/net/rtable/util.c
534
a = b = 0x9e3779b9;
regress/sys/net/rtable/util.c
544
b += (src != NULL) ? src[0] : 0;
regress/sys/net/rtable/util.c
545
mix(a, b, c);
regress/sys/net/rtable/util.c
555
b += sin6->sin6_addr.s6_addr32[2];
regress/sys/net/rtable/util.c
557
mix(a, b, c);
regress/sys/net/rtable/util.c
559
b += sin6->sin6_addr.s6_addr32[3];
regress/sys/net/rtable/util.c
561
mix(a, b, c);
regress/sys/net/rtable/util.c
563
b += sin6->sin6_addr.s6_addr32[1];
regress/sys/net/rtable/util.c
565
mix(a, b, c);
regress/sys/net/rtable/util.c
567
b += sin6->sin6_addr.s6_addr32[0];
regress/sys/net/rtable/util.c
569
mix(a, b, c);
regress/sys/netinet/bindconnect/bindconnect.c
35
#define MAXIMUM(a, b) ((a) > (b) ? (a) : (b))
regress/sys/sys/tree/rb-linux/rb-linux.c
152
panic_cmp(struct rb_node *a, struct rb_node *b)
regress/sys/sys/tree/rb/rb-test.c
87
#define MAX(a, b) ((a) > (b) ? (a) : (b))
regress/sys/sys/tree/rb/rb-test.c
873
compare(const struct node *a, const struct node *b)
regress/sys/sys/tree/rb/rb-test.c
875
return a->key - b->key;
regress/sys/sys/tree/rb/rbt-test.c
86
#define MAX(a, b) ((a) > (b) ? (a) : (b))
regress/sys/sys/tree/rb/rbt-test.c
872
compare(const struct node *a, const struct node *b)
regress/sys/sys/tree/rb/rbt-test.c
874
return a->key - b->key;
regress/sys/sys/tree/splay/splay-test.c
43
compare(struct node *a, struct node *b)
regress/sys/sys/tree/splay/splay-test.c
45
if (a->key < b->key) return (-1);
regress/sys/sys/tree/splay/splay-test.c
46
else if (a->key > b->key) return (1);
regress/sys/uvm/minherit_zero/minherit_zero.c
27
#define CHECK_EQ(a, b) assert((a) == (b))
regress/sys/uvm/minherit_zero/minherit_zero.c
28
#define CHECK_NE(a, b) assert((a) != (b))
regress/sys/uvm/minherit_zero/minherit_zero.c
29
#define CHECK_GE(a, b) assert((a) >= (b))
regress/sys/uvm/mmap_noreplace/mmap_noreplace.c
24
#define CHECK_EQ(a, b) assert((a) == (b))
regress/sys/uvm/mmap_noreplace/mmap_noreplace.c
25
#define CHECK_NE(a, b) assert((a) != (b))
regress/sys/uvm/mmap_noreplace/mmap_noreplace.c
26
#define CHECK_GE(a, b) assert((a) >= (b))
regress/sys/uvm/mmap_noreplace/mmap_noreplace.c
29
ismemset(void *b, int c, size_t n)
regress/sys/uvm/mmap_noreplace/mmap_noreplace.c
31
unsigned char *p = b;
regress/usr.bin/ssh/misc/ssh-verify-attestation/ssh-verify-attestation.c
100
(r = sshbuf_froms(b, &authdata)) != 0 ||
regress/usr.bin/ssh/misc/ssh-verify-attestation/ssh-verify-attestation.c
101
(r = sshbuf_get_u32(b, NULL)) != 0 || /* reserved flags */
regress/usr.bin/ssh/misc/ssh-verify-attestation/ssh-verify-attestation.c
102
(r = sshbuf_get_string_direct(b, NULL, NULL)) != 0) { /* reserved */
regress/usr.bin/ssh/misc/ssh-verify-attestation/ssh-verify-attestation.c
201
struct sshbuf *b = NULL;
regress/usr.bin/ssh/misc/ssh-verify-attestation/ssh-verify-attestation.c
215
(b = sshbuf_new()) == NULL) {
regress/usr.bin/ssh/misc/ssh-verify-attestation/ssh-verify-attestation.c
225
if ((r = sshbuf_put_string(b, pubkey, pubkey_len)) != 0) {
regress/usr.bin/ssh/misc/ssh-verify-attestation/ssh-verify-attestation.c
229
if ((r = sshbuf_get_eckey(b, ec)) != 0) {
regress/usr.bin/ssh/misc/ssh-verify-attestation/ssh-verify-attestation.c
257
sshbuf_free(b);
regress/usr.bin/ssh/misc/ssh-verify-attestation/ssh-verify-attestation.c
78
const char *rp_id, struct sshbuf *b, const struct sshbuf *challenge,
regress/usr.bin/ssh/misc/ssh-verify-attestation/ssh-verify-attestation.c
88
if ((r = sshbuf_get_cstring(b, &magic, NULL)) != 0) {
regress/usr.bin/ssh/misc/ssh-verify-attestation/ssh-verify-attestation.c
98
if ((r = sshbuf_froms(b, &attestation_cert)) != 0 ||
regress/usr.bin/ssh/misc/ssh-verify-attestation/ssh-verify-attestation.c
99
(r = sshbuf_froms(b, &sig)) != 0 ||
regress/usr.bin/ssh/unittests/bitmap/tests.c
102
bitmap_test_bit(b, n));
regress/usr.bin/ssh/unittests/bitmap/tests.c
109
ASSERT_INT_EQ(bitmap_set_bit(b, n), 0);
regress/usr.bin/ssh/unittests/bitmap/tests.c
113
bitmap_clear_bit(b, i);
regress/usr.bin/ssh/unittests/bitmap/tests.c
117
bitmap_clear_bit(b, j);
regress/usr.bin/ssh/unittests/bitmap/tests.c
121
bitmap_clear_bit(b, k);
regress/usr.bin/ssh/unittests/bitmap/tests.c
126
bitmap_test_bit(b, n));
regress/usr.bin/ssh/unittests/bitmap/tests.c
131
bitmap_free(b);
regress/usr.bin/ssh/unittests/bitmap/tests.c
25
struct bitmap *b;
regress/usr.bin/ssh/unittests/bitmap/tests.c
38
b = bitmap_new();
regress/usr.bin/ssh/unittests/bitmap/tests.c
39
ASSERT_PTR_NE(b, NULL);
regress/usr.bin/ssh/unittests/bitmap/tests.c
48
bitmap_zero(b);
regress/usr.bin/ssh/unittests/bitmap/tests.c
54
ASSERT_INT_EQ(bitmap_set_bit(b, i), 0);
regress/usr.bin/ssh/unittests/bitmap/tests.c
58
ASSERT_INT_EQ(bitmap_set_bit(b, j), 0);
regress/usr.bin/ssh/unittests/bitmap/tests.c
62
ASSERT_INT_EQ(bitmap_set_bit(b, k), 0);
regress/usr.bin/ssh/unittests/bitmap/tests.c
70
bitmap_test_bit(b, n));
regress/usr.bin/ssh/unittests/bitmap/tests.c
76
(int)bitmap_nbits(b));
regress/usr.bin/ssh/unittests/bitmap/tests.c
78
(int)bitmap_nbytes(b));
regress/usr.bin/ssh/unittests/bitmap/tests.c
83
len = bitmap_nbytes(b);
regress/usr.bin/ssh/unittests/bitmap/tests.c
85
ASSERT_INT_EQ(bitmap_to_string(b, bbuf,
regress/usr.bin/ssh/unittests/bitmap/tests.c
97
bitmap_zero(b);
regress/usr.bin/ssh/unittests/bitmap/tests.c
98
ASSERT_INT_EQ(bitmap_from_string(b, bnbuf,
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_getput_crypto.c
63
#define MKBN(b, bnn) \
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_getput_crypto.c
66
ASSERT_INT_GT(BN_hex2bn(&bnn, b), 0); \
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
332
struct sshbuf *b, *b64;
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
340
b = sshbuf_new();
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
342
ASSERT_PTR_NE(b, NULL);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
344
ASSERT_INT_EQ(sshbuf_dtourlb64(b, b64, 0), 0);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
346
sshbuf_free(b);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
351
b = sshbuf_new();
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
353
ASSERT_PTR_NE(b, NULL);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
355
ASSERT_INT_EQ(sshbuf_put(b, "hello", 5), 0);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
356
ASSERT_INT_EQ(sshbuf_dtourlb64(b, b64, 0), 0);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
361
sshbuf_free(b);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
366
b = sshbuf_new();
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
368
ASSERT_PTR_NE(b, NULL);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
370
ASSERT_INT_EQ(sshbuf_put(b, test_vec1, sizeof(test_vec1)), 0);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
371
ASSERT_INT_EQ(sshbuf_dtourlb64(b, b64, 0), 0);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
376
sshbuf_free(b);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
381
b = sshbuf_new();
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
383
ASSERT_PTR_NE(b, NULL);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
385
ASSERT_INT_EQ(sshbuf_put(b, test_vec2, sizeof(test_vec2)), 0);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
386
ASSERT_INT_EQ(sshbuf_dtourlb64(b, b64, 0), 0);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
391
sshbuf_free(b);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
396
b = sshbuf_new();
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
398
ASSERT_PTR_NE(b, NULL);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
400
ASSERT_INT_EQ(sshbuf_put(b, test_vec3, sizeof(test_vec3)), 0);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
401
ASSERT_INT_EQ(sshbuf_dtourlb64(b, b64, 0), 0);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_misc.c
406
sshbuf_free(b);
regress/usr.bin/ssh/unittests/sshkey/test_file.c
167
b = load_bignum("ecdsa_1.param.pub");
regress/usr.bin/ssh/unittests/sshkey/test_file.c
174
ASSERT_BIGNUM_EQ(b, c);
regress/usr.bin/ssh/unittests/sshkey/test_file.c
176
BN_free(b);
regress/usr.bin/ssh/unittests/sshkey/test_file.c
39
BIGNUM *a, *b, *c;
regress/usr.bin/ssh/unittests/sshkey/test_file.c
53
b = load_bignum("rsa_1.param.p");
regress/usr.bin/ssh/unittests/sshkey/test_file.c
56
ASSERT_BIGNUM_EQ(rsa_p(k1), b);
regress/usr.bin/ssh/unittests/sshkey/test_file.c
59
BN_free(b);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
223
struct sshbuf *b;
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
226
b = load_file(n);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
227
ASSERT_INT_EQ(sshkey_parse_private_fileblob(b, "", &ret, NULL), 0);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
228
sshbuf_free(b);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
237
struct sshbuf *b = NULL;
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
33
put_opt(struct sshbuf *b, const char *name, const char *value)
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
39
ASSERT_INT_EQ(sshbuf_put_cstring(b, name), 0);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
42
ASSERT_INT_EQ(sshbuf_put_stringb(b, sect), 0);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
445
b = sshbuf_new();
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
446
ASSERT_PTR_NE(b, NULL);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
447
ASSERT_INT_EQ(sshkey_putb(k1, b), 0);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
448
ASSERT_INT_EQ(sshkey_from_blob(sshbuf_ptr(b), sshbuf_len(b), &k3), 0);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
454
sshbuf_reset(b);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
47
build_cert(struct sshbuf *b, struct sshkey *k, const char *type,
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
513
build_cert(b, k2, "ssh-rsa-cert-v01@openssh.com", k3, k1, NULL);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
514
ASSERT_INT_EQ(sshkey_from_blob(sshbuf_ptr(b), sshbuf_len(b), &k4),
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
521
sshbuf_free(b);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
82
ASSERT_INT_EQ(sshbuf_put_cstring(b, type), 0);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
83
ASSERT_INT_EQ(sshbuf_put_cstring(b, "noncenoncenonce!"), 0); /* nonce */
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
84
ASSERT_INT_EQ(sshbuf_putb(b, pk), 0); /* public key serialisation */
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
85
ASSERT_INT_EQ(sshbuf_put_u64(b, 1234), 0); /* serial */
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
86
ASSERT_INT_EQ(sshbuf_put_u32(b, SSH2_CERT_TYPE_USER), 0); /* type */
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
87
ASSERT_INT_EQ(sshbuf_put_cstring(b, "gregor"), 0); /* key ID */
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
88
ASSERT_INT_EQ(sshbuf_put_stringb(b, principals), 0); /* principals */
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
89
ASSERT_INT_EQ(sshbuf_put_u64(b, 0), 0); /* start */
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
90
ASSERT_INT_EQ(sshbuf_put_u64(b, 0xffffffffffffffffULL), 0); /* end */
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
91
ASSERT_INT_EQ(sshbuf_put_stringb(b, critopts), 0); /* options */
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
92
ASSERT_INT_EQ(sshbuf_put_stringb(b, exts), 0); /* extensions */
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
93
ASSERT_INT_EQ(sshbuf_put_string(b, NULL, 0), 0); /* reserved */
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
94
ASSERT_INT_EQ(sshbuf_put_stringb(b, ca_buf), 0); /* signature key */
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
96
sshbuf_ptr(b), sshbuf_len(b), sig_alg, NULL, NULL, 0), 0);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
97
ASSERT_INT_EQ(sshbuf_put_string(b, sigblob, siglen), 0); /* signature */
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
50
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
694
const struct timespec *b = (const struct timespec *)bb;
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
696
if (timespeccmp(a, b, ==))
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
698
return timespeccmp(a, b, <) ? -1 : 1;
regress/usr.sbin/bgpd/unittests/rde_aspa_test.c
605
char b[16];
regress/usr.sbin/bgpd/unittests/rde_aspa_test.c
610
snprintf(b, sizeof(b), "%d", asns[i]);
regress/usr.sbin/bgpd/unittests/rde_aspa_test.c
613
strlcat(buf, b, sizeof(buf));
regress/usr.sbin/bgpd/unittests/rde_aspa_test.c
636
print_state(struct aspa_state *a, struct aspa_state *b)
regress/usr.sbin/bgpd/unittests/rde_aspa_test.c
638
if (a->nhops != b->nhops)
regress/usr.sbin/bgpd/unittests/rde_aspa_test.c
639
printf(" nhops %d != %d", a->nhops, b->nhops);
regress/usr.sbin/bgpd/unittests/rde_aspa_test.c
640
if (a->nup_p != b->nup_p)
regress/usr.sbin/bgpd/unittests/rde_aspa_test.c
641
printf(" nup_p %d != %d", a->nup_p, b->nup_p);
regress/usr.sbin/bgpd/unittests/rde_aspa_test.c
642
if (a->nup_u != b->nup_u)
regress/usr.sbin/bgpd/unittests/rde_aspa_test.c
643
printf(" nup_u %d != %d", a->nup_u, b->nup_u);
regress/usr.sbin/bgpd/unittests/rde_aspa_test.c
644
if (a->nup_np != b->nup_np)
regress/usr.sbin/bgpd/unittests/rde_aspa_test.c
645
printf(" nup_np %d != %d", a->nup_np, b->nup_np);
regress/usr.sbin/bgpd/unittests/rde_aspa_test.c
646
if (a->ndown_p != b->ndown_p)
regress/usr.sbin/bgpd/unittests/rde_aspa_test.c
647
printf(" ndown_p %d != %d", a->ndown_p, b->ndown_p);
regress/usr.sbin/bgpd/unittests/rde_aspa_test.c
648
if (a->ndown_u != b->ndown_u)
regress/usr.sbin/bgpd/unittests/rde_aspa_test.c
649
printf(" ndown_u %d != %d", a->ndown_u, b->ndown_u);
regress/usr.sbin/bgpd/unittests/rde_aspa_test.c
650
if (a->ndown_np != b->ndown_np)
regress/usr.sbin/bgpd/unittests/rde_aspa_test.c
651
printf(" ndown_np %d != %d", a->ndown_np, b->ndown_np);
regress/usr.sbin/bgpd/unittests/rde_community_test.c
32
dump(uint8_t *b, size_t len)
regress/usr.sbin/bgpd/unittests/rde_community_test.c
38
printf("\\x%02x", b[l]);
regress/usr.sbin/bgpd/unittests/rde_decide_test.c
195
test(struct prefix *a, struct prefix *b, int v)
regress/usr.sbin/bgpd/unittests/rde_decide_test.c
198
if (prefix_cmp(a, b, &dummy) < 0) {
regress/usr.sbin/bgpd/unittests/rde_decide_test.c
201
} else if (prefix_cmp(b, a, &dummy) > 0) {
regress/usr.sbin/bgpd/unittests/rde_flowspec_test.c
120
do_cmp(const uint8_t *a, int alen, const uint8_t *b, int blen, int is_v6)
regress/usr.sbin/bgpd/unittests/rde_flowspec_test.c
122
if (flowspec_cmp(a, alen, b, blen, is_v6) != -1 ||
regress/usr.sbin/bgpd/unittests/rde_flowspec_test.c
123
flowspec_cmp(b, blen, a, alen, is_v6) != 1)
regress/usr.sbin/bgpd/unittests/rde_sets_test.c
54
struct as_set *a, *aa, *b, *c, *empty;
regress/usr.sbin/bgpd/unittests/rde_sets_test.c
62
b = build_set("b", vb, sizeof(vb) / sizeof(vb[0]), 1);
regress/usr.sbin/bgpd/unittests/rde_sets_test.c
70
if (set_equal(a->set, b->set))
regress/usr.sbin/rpki-client/test-http.c
104
if ((b = io_buf_get(httpq)) != NULL)
regress/usr.sbin/rpki-client/test-http.c
108
io_read_buf(b, &id, sizeof(id));
regress/usr.sbin/rpki-client/test-http.c
109
io_read_buf(b, &res, sizeof(res));
regress/usr.sbin/rpki-client/test-http.c
110
io_read_opt_str(b, &lastmod);
regress/usr.sbin/rpki-client/test-http.c
111
ibuf_free(b);
regress/usr.sbin/rpki-client/test-http.c
63
struct ibuf *b;
regress/usr.sbin/rpki-client/test-http.c
65
b = io_new_buffer();
regress/usr.sbin/rpki-client/test-http.c
66
io_simple_buffer(b, &id, sizeof(id));
regress/usr.sbin/rpki-client/test-http.c
67
io_str_buffer(b, uri);
regress/usr.sbin/rpki-client/test-http.c
68
io_opt_str_buffer(b, last_mod);
regress/usr.sbin/rpki-client/test-http.c
70
b->fd = fd;
regress/usr.sbin/rpki-client/test-http.c
71
io_close_buffer(httpq, b);
regress/usr.sbin/rpki-client/test-http.c
92
struct ibuf *b;
regress/usr.sbin/snmpd/snmpd_regress.c
290
oid_cmp(struct oid *a, struct oid *b)
regress/usr.sbin/snmpd/snmpd_regress.c
294
min = a->n_subid < b->n_subid ? a->n_subid : b->n_subid;
regress/usr.sbin/snmpd/snmpd_regress.c
296
if (a->subid[i] < b->subid[i])
regress/usr.sbin/snmpd/snmpd_regress.c
298
if (a->subid[i] > b->subid[i])
regress/usr.sbin/snmpd/snmpd_regress.c
302
if (a->n_subid < b->n_subid)
regress/usr.sbin/snmpd/snmpd_regress.c
305
if (a->n_subid > b->n_subid)
sbin/atactl/atactl.c
1677
u_int8_t b;
sbin/atactl/atactl.c
1678
b = attr[i].raw[6 - k];
sbin/atactl/atactl.c
1679
raw[k + k] = hex[b >> 4];
sbin/atactl/atactl.c
1680
raw[k + k + 1] = hex[b & 0x0f];
sbin/dhcp6leased/engine.c
1477
prefixcmp(struct prefix *a, struct prefix *b, int count)
sbin/dhcp6leased/engine.c
1482
if (a[i].prefix_len != b[i].prefix_len)
sbin/dhcp6leased/engine.c
1484
if (memcmp(&a[i].prefix, &b[i].prefix,
sbin/dhcp6leased/engine.c
59
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
sbin/dhcp6leased/frontend.c
1069
iface_conf_cmp(struct iface_conf *a, struct iface_conf *b)
sbin/dhcpleased/engine.c
62
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
sbin/dhcpleased/frontend.c
1276
iface_conf_cmp(struct iface_conf *a, struct iface_conf *b)
sbin/dhcpleased/frontend.c
1278
if (a->vc_id_len != b->vc_id_len)
sbin/dhcpleased/frontend.c
1280
if (memcmp(a->vc_id, b->vc_id, a->vc_id_len) != 0)
sbin/dhcpleased/frontend.c
1282
if (a->c_id_len != b->c_id_len)
sbin/dhcpleased/frontend.c
1284
if (memcmp(a->c_id, b->c_id, a->c_id_len) != 0)
sbin/dhcpleased/frontend.c
1286
if (a->h_name == NULL || b->h_name == NULL)
sbin/dhcpleased/frontend.c
1288
if (strcmp(a->h_name, b->h_name) != 0)
sbin/dhcpleased/frontend.c
1290
if (a->ignore != b->ignore)
sbin/dhcpleased/frontend.c
1292
if (a->ignore_servers_len != b->ignore_servers_len)
sbin/dhcpleased/frontend.c
1294
if (memcmp(a->ignore_servers, b->ignore_servers,
sbin/dump/tape.c
56
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
sbin/dumpfs/dumpfs.c
57
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
sbin/fsck_ffs/inode.c
51
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
sbin/fsck_ffs/inode.c
52
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
sbin/fsck_ffs/pass5.c
49
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
sbin/fsck_ffs/setup.c
58
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
sbin/growfs/growfs.c
67
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
sbin/growfs/growfs.c
68
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
sbin/ifconfig/ifconfig.c
123
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
sbin/ifconfig/ifconfig.c
124
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
sbin/iked/chap_ms.c
363
uint8_t b[MD5_DIGEST_LENGTH], p[32];
sbin/iked/chap_ms.c
373
EVP_DigestFinal(ctx, b, &mdlen);
sbin/iked/chap_ms.c
376
p[i] = b[i] ^ crypted[i+2];
sbin/iked/chap_ms.c
382
EVP_DigestFinal(ctx, b, &mdlen);
sbin/iked/chap_ms.c
386
p[i+16] = b[i] ^ crypted[i+18];
sbin/iked/dh.c
75
const unsigned char b[CURVE25519_SIZE],
sbin/iked/iked.h
33
#define MAXIMUM(a,b) (((a)>(b))?(a):(b))
sbin/iked/iked.h
34
#define MINIMUM(a,b) (((a)<(b))?(a):(b))
sbin/iked/ikev2.c
4427
ikev2_nonce_cmp(struct ibuf *a, struct ibuf *b)
sbin/iked/ikev2.c
4433
blen = ibuf_size(b);
sbin/iked/ikev2.c
4435
ret = memcmp(ibuf_data(a), ibuf_data(b), len);
sbin/iked/parse.y
2596
set_ipmask(struct ipsec_addr_wrap *address, int b)
sbin/iked/parse.y
2598
if (b == -1)
sbin/iked/parse.y
2601
address->mask = b;
sbin/iked/parse.y
2678
struct iked_transform *a, *b;
sbin/iked/parse.y
2688
b = *dst + (*ndst)++;
sbin/iked/parse.y
2690
b->xform_type = type;
sbin/iked/parse.y
2691
b->xform_id = xf->id;
sbin/iked/parse.y
2692
b->xform_keylength = xf->length * 8;
sbin/iked/parse.y
2693
b->xform_length = xf->keylength * 8;
sbin/iked/parse.y
2706
b = *dst + (*ndst)++;
sbin/iked/parse.y
2707
memcpy(b, a, sizeof(*b));
sbin/iked/policy.c
1199
childsa_cmp(struct iked_childsa *a, struct iked_childsa *b)
sbin/iked/policy.c
1201
if (a->csa_spi.spi > b->csa_spi.spi)
sbin/iked/policy.c
1203
if (a->csa_spi.spi < b->csa_spi.spi)
sbin/iked/policy.c
1209
addr_cmp(struct iked_addr *a, struct iked_addr *b, int useports)
sbin/iked/policy.c
1214
(struct sockaddr *)&b->addr, 128);
sbin/iked/policy.c
1216
diff = (int)a->addr_mask - (int)b->addr_mask;
sbin/iked/policy.c
1218
diff = a->addr_port - b->addr_port;
sbin/iked/policy.c
1224
flow_cmp(struct iked_flow *a, struct iked_flow *b)
sbin/iked/policy.c
1229
diff = a->flow_rdomain - b->flow_rdomain;
sbin/iked/policy.c
1231
diff = (int)a->flow_ipproto - (int)b->flow_ipproto;
sbin/iked/policy.c
1233
diff = (int)a->flow_saproto - (int)b->flow_saproto;
sbin/iked/policy.c
1235
diff = (int)a->flow_dir - (int)b->flow_dir;
sbin/iked/policy.c
1237
diff = addr_cmp(&a->flow_dst, &b->flow_dst, 1);
sbin/iked/policy.c
1239
diff = addr_cmp(&a->flow_src, &b->flow_src, 1);
sbin/iked/policy.c
1241
diff = addr_cmp(&a->flow_prenat, &b->flow_prenat, 0);
sbin/iked/policy.c
1247
flow_equal(struct iked_flow *a, struct iked_flow *b)
sbin/iked/policy.c
1249
return (flow_cmp(a, b) == 0);
sbin/iked/policy.c
388
const char *b;
sbin/iked/policy.c
392
b = print_map(state, ikev2_state_map);
sbin/iked/policy.c
398
SPI_SA(sa, __func__), a, b);
sbin/iked/policy.c
405
SPI_SA(sa, __func__), a, b,
sbin/iked/policy.c
413
SPI_SA(sa, __func__), a, b);
sbin/iked/policy.c
844
sa_cmp(struct iked_sa *a, struct iked_sa *b)
sbin/iked/policy.c
846
if (a->sa_hdr.sh_initiator > b->sa_hdr.sh_initiator)
sbin/iked/policy.c
848
if (a->sa_hdr.sh_initiator < b->sa_hdr.sh_initiator)
sbin/iked/policy.c
851
if (a->sa_hdr.sh_ispi > b->sa_hdr.sh_ispi)
sbin/iked/policy.c
853
if (a->sa_hdr.sh_ispi < b->sa_hdr.sh_ispi)
sbin/iked/policy.c
922
sa_dstid_cmp(struct iked_sa *a, struct iked_sa *b)
sbin/iked/policy.c
929
bid = sa_dstid_checked(b);
sbin/iked/policy.c
956
sa_addrpool_cmp(struct iked_sa *a, struct iked_sa *b)
sbin/iked/policy.c
959
(struct sockaddr *)&b->sa_addrpool->addr, -1));
sbin/iked/policy.c
963
sa_addrpool6_cmp(struct iked_sa *a, struct iked_sa *b)
sbin/iked/policy.c
966
(struct sockaddr *)&b->sa_addrpool6->addr, -1));
sbin/iked/policy.c
982
user_cmp(struct iked_user *a, struct iked_user *b)
sbin/iked/policy.c
984
return (strcmp(a->usr_name, b->usr_name));
sbin/iked/smult_curve25519_ref.c
11
static void add(unsigned int out[32],const unsigned int a[32],const unsigned int b[32])
sbin/iked/smult_curve25519_ref.c
110
static void select(unsigned int p[64],unsigned int q[64],const unsigned int r[64],const unsigned int s[64],unsigned int b)
sbin/iked/smult_curve25519_ref.c
116
bminus1 = b - 1;
sbin/iked/smult_curve25519_ref.c
142
unsigned int b;
sbin/iked/smult_curve25519_ref.c
153
b = e[pos / 8] >> (pos & 7);
sbin/iked/smult_curve25519_ref.c
154
b &= 1;
sbin/iked/smult_curve25519_ref.c
155
select(xzmb,xzm1b,xzm,xzm1,b);
sbin/iked/smult_curve25519_ref.c
16
for (j = 0;j < 31;++j) { u += a[j] + b[j]; out[j] = u & 255; u >>= 8; }
sbin/iked/smult_curve25519_ref.c
17
u += a[31] + b[31]; out[31] = u;
sbin/iked/smult_curve25519_ref.c
174
select(xzm,xzm1,xznb,xzn1b,b);
sbin/iked/smult_curve25519_ref.c
20
static void sub(unsigned int out[32],const unsigned int a[32],const unsigned int b[32])
sbin/iked/smult_curve25519_ref.c
26
u += a[j] + 65280 - b[j];
sbin/iked/smult_curve25519_ref.c
30
u += a[31] - b[31];
sbin/iked/smult_curve25519_ref.c
62
static void mult(unsigned int out[32],const unsigned int a[32],const unsigned int b[32])
sbin/iked/smult_curve25519_ref.c
70
for (j = 0;j <= i;++j) u += a[j] * b[i - j];
sbin/iked/smult_curve25519_ref.c
71
for (j = i + 1;j < 32;++j) u += 38 * a[j] * b[i + 32 - j];
sbin/iked/sntrup761.c
1168
static void HashSession(unsigned char *k,int b,const unsigned char *y,const unsigned char *z)
sbin/iked/sntrup761.c
1183
Hash_prefix(k,b,x,sizeof x);
sbin/iked/sntrup761.c
24
#define int32_MINMAX(a,b) \
sbin/iked/sntrup761.c
26
int64_t ab = (int64_t)b ^ (int64_t)a; \
sbin/iked/sntrup761.c
27
int64_t c = (int64_t)b - (int64_t)a; \
sbin/iked/sntrup761.c
28
c ^= ab & (c ^ b); \
sbin/iked/sntrup761.c
32
b ^= c; \
sbin/iked/sntrup761.c
682
static void Hash_prefix(unsigned char *out,int b,const unsigned char *in,int inlen)
sbin/iked/sntrup761.c
688
x[0] = b;
sbin/iked/sntrup761.c
794
static void Encrypt(Fq *B,int8 *T,const int8 *r,const Fq *G,const Fq *A,const small *b)
sbin/iked/sntrup761.c
800
Rq_mult_small(bG,G,b);
sbin/iked/sntrup761.c
802
Rq_mult_small(bA,A,b);
sbin/iked/sntrup761.c
916
small b[p];
sbin/iked/sntrup761.c
919
HashShort(b,r);
sbin/iked/sntrup761.c
920
Encrypt(B,T,r,G,A,b);
sbin/iked/util.c
223
sockaddr_cmp(struct sockaddr *a, struct sockaddr *b, int prefixlen)
sbin/iked/util.c
229
if (a->sa_family == AF_UNSPEC || b->sa_family == AF_UNSPEC)
sbin/iked/util.c
231
else if (a->sa_family > b->sa_family)
sbin/iked/util.c
233
else if (a->sa_family < b->sa_family)
sbin/iked/util.c
242
b4 = (struct sockaddr_in *)b;
sbin/iked/util.c
256
b6 = (struct sockaddr_in6 *)b;
sbin/ipsecctl/ipsecctl.c
928
int i = 31, j = 0, b = 0;
sbin/ipsecctl/ipsecctl.c
932
b += 32;
sbin/ipsecctl/ipsecctl.c
938
b++;
sbin/ipsecctl/ipsecctl.c
94
const struct sad *a = va, *b = vb;
sbin/ipsecctl/ipsecctl.c
940
return (b);
sbin/ipsecctl/ipsecctl.c
96
if (a->sad_spi < b->sad_spi)
sbin/ipsecctl/ipsecctl.c
98
if (a->sad_spi > b->sad_spi)
sbin/ipsecctl/parse.y
2066
set_ipmask(struct ipsec_addr_wrap *address, u_int8_t b)
sbin/ipsecctl/parse.y
2074
while (b >= 32) {
sbin/ipsecctl/parse.y
2076
b -= 32;
sbin/ipsecctl/parse.y
2078
for (i = 31; i > 31 - b; --i)
sbin/ipsecctl/parse.y
2080
if (b)
sbin/isakmpd/ipsec.c
2336
addr_cmp(const void *a, const void *b)
sbin/isakmpd/ipsec.c
2338
const struct contact *x = a, *y = b;
sbin/isakmpd/ipsec.c
79
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
sbin/isakmpd/ipsec.c
80
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
sbin/isakmpd/util.c
205
int fd = 0, seq, len, b;
sbin/isakmpd/util.c
255
if ((b = write(fd, buf, rtm->rtm_msglen)) == -1) {
sbin/kbd/kbd_wscons.c
234
char buf[LINE_MAX], *c, *b, device[sizeof "/dev/wskbd00"];
sbin/kbd/kbd_wscons.c
239
b = buf;
sbin/kbd/kbd_wscons.c
240
while (*c != '.' && *c != '\0' && b < buf + sizeof(buf) - 1)
sbin/kbd/kbd_wscons.c
241
*b++ = *c++;
sbin/kbd/kbd_wscons.c
242
*b = '\0';
sbin/kbd/kbd_wscons.c
252
b = buf;
sbin/kbd/kbd_wscons.c
254
while (*c != '.' && *c != '\0' && b < buf + sizeof(buf) - 1)
sbin/kbd/kbd_wscons.c
255
*b++ = *c++;
sbin/kbd/kbd_wscons.c
256
*b = '\0';
sbin/newfs/mkfs.c
67
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
sbin/newfs/mkfs.c
68
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
sbin/newfs/newfs.c
75
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
sbin/newfs/newfs.c
76
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
sbin/newfs_ext2fs/newfs_ext2fs.c
60
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
sbin/newfs_msdos/newfs_msdos.c
49
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
sbin/newfs_msdos/newfs_msdos.c
50
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
sbin/pfctl/parse.y
203
int b;
sbin/pfctl/parse.y
3154
struct node_host *b, *e;
sbin/pfctl/parse.y
3156
if ((b = host($1, pf->opts)) == NULL ||
sbin/pfctl/parse.y
3163
if (b->af != e->af ||
sbin/pfctl/parse.y
3164
b->addr.type != PF_ADDR_ADDRMASK ||
sbin/pfctl/parse.y
3166
unmask(&b->addr.v.a.mask) !=
sbin/pfctl/parse.y
3167
(b->af == AF_INET ? 32 : 128) ||
sbin/pfctl/parse.y
3170
b->next != NULL || b->not ||
sbin/pfctl/parse.y
3172
free(b);
sbin/pfctl/parse.y
3179
memcpy(&b->addr.v.a.mask, &e->addr.v.a.addr,
sbin/pfctl/parse.y
3180
sizeof(b->addr.v.a.mask));
sbin/pfctl/parse.y
3181
b->addr.type = PF_ADDR_RANGE;
sbin/pfctl/parse.y
3182
$$ = b;
sbin/pfctl/parse.y
4077
$$->rport.a = $$->rport.b = $$->rport.t = 0;
sbin/pfctl/parse.y
4305
u_int16_t b = ntohs(p2);
sbin/pfctl/parse.y
4307
if ((op == PF_OP_RRG && a > b) || /* 34:12, i.e. none */
sbin/pfctl/parse.y
4308
(op == PF_OP_IRG && a >= b) || /* 34><12, i.e. none */
sbin/pfctl/parse.y
4309
(op == PF_OP_XRG && a > b)) /* 34<>22, i.e. all */
sbin/pfctl/parse.y
469
} b;
sbin/pfctl/parse.y
5056
if (!rs->rdr->rport.b && rs->rdr->rport.t) {
sbin/pfctl/parse.y
5061
rs->rdr->rport.b)) {
sbin/pfctl/parse.y
5067
rpool->proxy_port[1] = ntohs(rs->rdr->rport.b);
sbin/pfctl/parse.y
5070
rpool->proxy_port[1] = ntohs(rs->rdr->rport.b);
sbin/pfctl/parse.y
558
%type <v.b> action
sbin/pfctl/parse.y
559
%type <v.b> flags flag blockspec prio
sbin/pfctl/parse.y
6298
r->b = 0;
sbin/pfctl/parse.y
6306
r->b = 0;
sbin/pfctl/parse.y
6313
(r->b = getservice(p)) == -1)
sbin/pfctl/parse.y
6315
if (r->a == r->b) {
sbin/pfctl/parse.y
6316
r->b = 0;
sbin/pfctl/pf_print_state.c
365
int i = 31, j = 0, b = 0;
sbin/pfctl/pf_print_state.c
369
b += 32;
sbin/pfctl/pf_print_state.c
375
b++;
sbin/pfctl/pf_print_state.c
377
return (b);
sbin/pfctl/pfctl.c
3547
const struct pfctl_statelim *b)
sbin/pfctl/pfctl.c
3550
uint32_t idb = b->ioc.id;
sbin/pfctl/pfctl.c
3565
const struct pfctl_statelim *b)
sbin/pfctl/pfctl.c
3567
return (strcmp(a->ioc.name, b->ioc.name));
sbin/pfctl/pfctl.c
3615
const struct pfctl_sourcelim *b)
sbin/pfctl/pfctl.c
3618
uint32_t idb = b->ioc.id;
sbin/pfctl/pfctl.c
3633
const struct pfctl_sourcelim *b)
sbin/pfctl/pfctl.c
3635
return (strcmp(a->ioc.name, b->ioc.name));
sbin/pfctl/pfctl_optimize.c
1009
skip_cmp_af(struct pf_rule *a, struct pf_rule *b)
sbin/pfctl/pfctl_optimize.c
1011
if (a->af != b->af || a->af == 0)
sbin/pfctl/pfctl_optimize.c
1018
skip_cmp_dir(struct pf_rule *a, struct pf_rule *b)
sbin/pfctl/pfctl_optimize.c
1020
if (a->direction == 0 || a->direction != b->direction)
sbin/pfctl/pfctl_optimize.c
1027
skip_cmp_rdom(struct pf_rule *a, struct pf_rule *b)
sbin/pfctl/pfctl_optimize.c
1029
if (a->onrdomain == -1 || a->onrdomain != b->onrdomain)
sbin/pfctl/pfctl_optimize.c
1031
return (a->ifnot != b->ifnot);
sbin/pfctl/pfctl_optimize.c
1036
skip_cmp_dst_addr(struct pf_rule *a, struct pf_rule *b)
sbin/pfctl/pfctl_optimize.c
1038
if (a->dst.neg != b->dst.neg ||
sbin/pfctl/pfctl_optimize.c
1039
a->dst.addr.type != b->dst.addr.type)
sbin/pfctl/pfctl_optimize.c
1048
if (memcmp(&a->dst.addr.v.a.addr, &b->dst.addr.v.a.addr,
sbin/pfctl/pfctl_optimize.c
1050
memcmp(&a->dst.addr.v.a.mask, &b->dst.addr.v.a.mask,
sbin/pfctl/pfctl_optimize.c
1059
if (strcmp(a->dst.addr.v.ifname, b->dst.addr.v.ifname) != 0 ||
sbin/pfctl/pfctl_optimize.c
1060
a->dst.addr.iflags != b->dst.addr.iflags ||
sbin/pfctl/pfctl_optimize.c
1061
memcmp(&a->dst.addr.v.a.mask, &b->dst.addr.v.a.mask,
sbin/pfctl/pfctl_optimize.c
1069
return (strcmp(a->dst.addr.v.tblname, b->dst.addr.v.tblname));
sbin/pfctl/pfctl_optimize.c
1076
skip_cmp_dst_port(struct pf_rule *a, struct pf_rule *b)
sbin/pfctl/pfctl_optimize.c
1083
if (a->dst.port_op == PF_OP_NONE || a->dst.port_op != b->dst.port_op ||
sbin/pfctl/pfctl_optimize.c
1084
a->dst.port[0] != b->dst.port[0] ||
sbin/pfctl/pfctl_optimize.c
1085
a->dst.port[1] != b->dst.port[1])
sbin/pfctl/pfctl_optimize.c
1092
skip_cmp_ifp(struct pf_rule *a, struct pf_rule *b)
sbin/pfctl/pfctl_optimize.c
1094
if (strcmp(a->ifname, b->ifname) || a->ifname[0] == '\0')
sbin/pfctl/pfctl_optimize.c
1096
return (a->ifnot != b->ifnot);
sbin/pfctl/pfctl_optimize.c
1101
skip_cmp_proto(struct pf_rule *a, struct pf_rule *b)
sbin/pfctl/pfctl_optimize.c
1103
return (a->proto != b->proto || a->proto == 0);
sbin/pfctl/pfctl_optimize.c
1108
skip_cmp_src_addr(struct pf_rule *a, struct pf_rule *b)
sbin/pfctl/pfctl_optimize.c
1110
if (a->src.neg != b->src.neg ||
sbin/pfctl/pfctl_optimize.c
1111
a->src.addr.type != b->src.addr.type)
sbin/pfctl/pfctl_optimize.c
1120
if (memcmp(&a->src.addr.v.a.addr, &b->src.addr.v.a.addr,
sbin/pfctl/pfctl_optimize.c
1122
memcmp(&a->src.addr.v.a.mask, &b->src.addr.v.a.mask,
sbin/pfctl/pfctl_optimize.c
1131
if (strcmp(a->src.addr.v.ifname, b->src.addr.v.ifname) != 0 ||
sbin/pfctl/pfctl_optimize.c
1132
a->src.addr.iflags != b->src.addr.iflags ||
sbin/pfctl/pfctl_optimize.c
1133
memcmp(&a->src.addr.v.a.mask, &b->src.addr.v.a.mask,
sbin/pfctl/pfctl_optimize.c
1141
return (strcmp(a->src.addr.v.tblname, b->src.addr.v.tblname));
sbin/pfctl/pfctl_optimize.c
1148
skip_cmp_src_port(struct pf_rule *a, struct pf_rule *b)
sbin/pfctl/pfctl_optimize.c
1150
if (a->src.port_op == PF_OP_NONE || a->src.port_op != b->src.port_op ||
sbin/pfctl/pfctl_optimize.c
1151
a->src.port[0] != b->src.port[0] ||
sbin/pfctl/pfctl_optimize.c
1152
a->src.port[1] != b->src.port[1])
sbin/pfctl/pfctl_optimize.c
1335
addrs_equal(struct pf_rule_addr *a, struct pf_rule_addr *b)
sbin/pfctl/pfctl_optimize.c
1337
if (a->neg != b->neg)
sbin/pfctl/pfctl_optimize.c
1339
return (memcmp(&a->addr, &b->addr, sizeof(a->addr)) == 0);
sbin/pfctl/pfctl_optimize.c
1347
addrs_combineable(struct pf_rule_addr *a, struct pf_rule_addr *b)
sbin/pfctl/pfctl_optimize.c
1350
b->addr.type != PF_ADDR_ADDRMASK)
sbin/pfctl/pfctl_optimize.c
1352
if (a->neg != b->neg || a->port_op != b->port_op ||
sbin/pfctl/pfctl_optimize.c
1353
a->port[0] != b->port[0] || a->port[1] != b->port[1])
sbin/pfctl/pfctl_optimize.c
1365
struct pf_rule a, b;
sbin/pfctl/pfctl_optimize.c
1368
comparable_rule(&b, p2, COMBINED);
sbin/pfctl/pfctl_optimize.c
1369
return (memcmp(&a, &b, sizeof(a)) == 0);
sbin/pfctl/pfctl_optimize.c
1379
struct pf_rule a, b;
sbin/pfctl/pfctl_optimize.c
1418
comparable_rule(&b, &por->por_rule, NOMERGE);
sbin/pfctl/pfctl_optimize.c
1419
if (memcmp(&a, &b, sizeof(a)) == 0)
sbin/pfctl/pfctl_optimize.c
1425
if (((u_int8_t *)&a)[i] != ((u_int8_t *)&b)[i]) {
sbin/pfctl/pfctl_optimize.c
435
struct pf_rule a, a2, b, b2;
sbin/pfctl/pfctl_optimize.c
442
comparable_rule(&b, &por2->por_rule, DC);
sbin/pfctl/pfctl_optimize.c
444
memcpy(&b2, &b, sizeof(b2));
sbin/pfctl/pfctl_optimize.c
446
exclude_supersets(&a, &b);
sbin/pfctl/pfctl_optimize.c
448
if (memcmp(&a, &b, sizeof(a)) == 0) {
sbin/pfctl/pfctl_optimize.c
792
struct pf_rule a, b;
sbin/pfctl/pfctl_optimize.c
804
comparable_rule(&b, &por2->por_rule, DC);
sbin/pfctl/pfctl_optimize.c
805
if (memcmp(&a, &b, sizeof(a)) == 0) {
sbin/pfctl/pfctl_optimize.c
853
struct pf_rule a, b;
sbin/pfctl/pfctl_optimize.c
899
comparable_rule(&b, &TAILQ_FIRST(&blockcur->sb_rules)->por_rule,
sbin/pfctl/pfctl_optimize.c
901
if (memcmp(&a, &b, sizeof(a)) == 0) {
sbin/pfctl/pfctl_optimize.c
933
struct pf_rule *a, *b;
sbin/pfctl/pfctl_optimize.c
937
b = &TAILQ_FIRST(&skiplist->ps_rules)->por_rule;
sbin/pfctl/pfctl_optimize.c
939
return ((skip_comparitors[skipnum])(a, b));
sbin/pfctl/pfctl_osfp.c
39
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
sbin/pfctl/pfctl_parser.c
1350
u_int8_t b;
sbin/pfctl/pfctl_parser.c
1356
b = h->af == AF_INET ? 32 : 128;
sbin/pfctl/pfctl_parser.c
1358
b = bb;
sbin/pfctl/pfctl_parser.c
1360
while (b >= 32) {
sbin/pfctl/pfctl_parser.c
1362
b -= 32;
sbin/pfctl/pfctl_parser.c
1364
for (i = 31; i > 31-b; --i)
sbin/pfctl/pfctl_parser.c
1366
if (b)
sbin/pfctl/pfctl_parser.c
1887
append_addr(struct pfr_buffer *b, char *s, int test, int opts)
sbin/pfctl/pfctl_parser.c
1913
PFRB_FOREACH(a, b) {
sbin/pfctl/pfctl_parser.c
1930
rv = append_addr_host(b, n, test, not);
sbin/pfctl/pfctl_parser.c
1931
previous = b->pfrb_size;
sbin/pfctl/pfctl_parser.c
1947
append_addr_host(struct pfr_buffer *b, struct node_host *n, int test, int not)
sbin/pfctl/pfctl_parser.c
1986
if (pfr_buf_add(b, &addr))
sbin/pfctl/pfctl_radix.c
449
pfr_buf_add(struct pfr_buffer *b, const void *e)
sbin/pfctl/pfctl_radix.c
453
if (b == NULL || b->pfrb_type <= 0 || b->pfrb_type >= PFRB_MAX ||
sbin/pfctl/pfctl_radix.c
458
bs = buf_esize[b->pfrb_type];
sbin/pfctl/pfctl_radix.c
459
if (b->pfrb_size == b->pfrb_msize)
sbin/pfctl/pfctl_radix.c
460
if (pfr_buf_grow(b, 0))
sbin/pfctl/pfctl_radix.c
462
memcpy(((caddr_t)b->pfrb_caddr) + bs * b->pfrb_size, e, bs);
sbin/pfctl/pfctl_radix.c
463
b->pfrb_size++;
sbin/pfctl/pfctl_radix.c
472
pfr_buf_next(struct pfr_buffer *b, const void *prev)
sbin/pfctl/pfctl_radix.c
476
if (b == NULL || b->pfrb_type <= 0 || b->pfrb_type >= PFRB_MAX)
sbin/pfctl/pfctl_radix.c
478
if (b->pfrb_size == 0)
sbin/pfctl/pfctl_radix.c
481
return (b->pfrb_caddr);
sbin/pfctl/pfctl_radix.c
482
bs = buf_esize[b->pfrb_type];
sbin/pfctl/pfctl_radix.c
483
if ((((caddr_t)prev)-((caddr_t)b->pfrb_caddr)) / bs >= b->pfrb_size-1)
sbin/pfctl/pfctl_radix.c
494
pfr_buf_grow(struct pfr_buffer *b, int minsize)
sbin/pfctl/pfctl_radix.c
499
if (b == NULL || b->pfrb_type <= 0 || b->pfrb_type >= PFRB_MAX) {
sbin/pfctl/pfctl_radix.c
503
if (minsize != 0 && minsize <= b->pfrb_msize)
sbin/pfctl/pfctl_radix.c
505
bs = buf_esize[b->pfrb_type];
sbin/pfctl/pfctl_radix.c
506
if (!b->pfrb_msize) {
sbin/pfctl/pfctl_radix.c
511
minsize = b->pfrb_msize * 2;
sbin/pfctl/pfctl_radix.c
512
p = reallocarray(b->pfrb_caddr, minsize, bs);
sbin/pfctl/pfctl_radix.c
515
bzero(p + b->pfrb_msize * bs, (minsize - b->pfrb_msize) * bs);
sbin/pfctl/pfctl_radix.c
516
b->pfrb_caddr = p;
sbin/pfctl/pfctl_radix.c
517
b->pfrb_msize = minsize;
sbin/pfctl/pfctl_radix.c
525
pfr_buf_clear(struct pfr_buffer *b)
sbin/pfctl/pfctl_radix.c
527
if (b == NULL)
sbin/pfctl/pfctl_radix.c
529
free(b->pfrb_caddr);
sbin/pfctl/pfctl_radix.c
530
b->pfrb_caddr = NULL;
sbin/pfctl/pfctl_radix.c
531
b->pfrb_size = b->pfrb_msize = 0;
sbin/pfctl/pfctl_radix.c
535
pfr_buf_load(struct pfr_buffer *b, char *file, int nonetwork, int opts)
sbin/pfctl/pfctl_radix.c
552
if ((ev = append_addr(b, buf, nonetwork, opts)) == -1) {
sbin/pfctl/pfctl_table.c
129
struct pfr_buffer b, b2;
sbin/pfctl/pfctl_table.c
140
bzero(&b, sizeof(b));
sbin/pfctl/pfctl_table.c
160
b.pfrb_type = (opts & PF_OPT_VERBOSE2) ?
sbin/pfctl/pfctl_table.c
165
pfr_buf_grow(&b, b.pfrb_size);
sbin/pfctl/pfctl_table.c
166
b.pfrb_size = b.pfrb_msize;
sbin/pfctl/pfctl_table.c
169
b.pfrb_caddr, &b.pfrb_size, flags));
sbin/pfctl/pfctl_table.c
172
b.pfrb_caddr, &b.pfrb_size, flags));
sbin/pfctl/pfctl_table.c
173
if (b.pfrb_size <= b.pfrb_msize)
sbin/pfctl/pfctl_table.c
177
if ((opts & PF_OPT_SHOWALL) && b.pfrb_size > 0)
sbin/pfctl/pfctl_table.c
180
PFRB_FOREACH(p, &b)
sbin/pfctl/pfctl_table.c
197
b.pfrb_type = PFRB_ADDRS;
sbin/pfctl/pfctl_table.c
198
if (load_addr(&b, argc, argv, file, 0, opts))
sbin/pfctl/pfctl_table.c
203
RVTEST(pfr_add_addrs(&table, b.pfrb_caddr, b.pfrb_size,
sbin/pfctl/pfctl_table.c
205
xprintf(opts, "%d/%d addresses added", nadd, b.pfrb_size);
sbin/pfctl/pfctl_table.c
207
PFRB_FOREACH(a, &b)
sbin/pfctl/pfctl_table.c
213
b.pfrb_type = PFRB_ADDRS;
sbin/pfctl/pfctl_table.c
214
if (load_addr(&b, argc, argv, file, 0, opts))
sbin/pfctl/pfctl_table.c
218
RVTEST(pfr_del_addrs(&table, b.pfrb_caddr, b.pfrb_size,
sbin/pfctl/pfctl_table.c
220
xprintf(opts, "%d/%d addresses deleted", ndel, b.pfrb_size);
sbin/pfctl/pfctl_table.c
222
PFRB_FOREACH(a, &b)
sbin/pfctl/pfctl_table.c
228
b.pfrb_type = PFRB_ADDRS;
sbin/pfctl/pfctl_table.c
229
if (load_addr(&b, argc, argv, file, 0, opts))
sbin/pfctl/pfctl_table.c
235
int sz2 = b.pfrb_msize;
sbin/pfctl/pfctl_table.c
237
RVTEST(pfr_set_addrs(&table, b.pfrb_caddr, b.pfrb_size,
sbin/pfctl/pfctl_table.c
239
if (sz2 <= b.pfrb_msize) {
sbin/pfctl/pfctl_table.c
240
b.pfrb_size = sz2;
sbin/pfctl/pfctl_table.c
243
pfr_buf_grow(&b, sz2);
sbin/pfctl/pfctl_table.c
254
PFRB_FOREACH(a, &b)
sbin/pfctl/pfctl_table.c
263
b.pfrb_type = PFRB_ASTATS;
sbin/pfctl/pfctl_table.c
271
pfr_buf_grow(&b, b.pfrb_size);
sbin/pfctl/pfctl_table.c
272
b.pfrb_size = b.pfrb_msize;
sbin/pfctl/pfctl_table.c
273
RVTEST(pfr_get_astats(&table, b.pfrb_caddr,
sbin/pfctl/pfctl_table.c
274
&b.pfrb_size, flags));
sbin/pfctl/pfctl_table.c
275
if (b.pfrb_size <= b.pfrb_msize)
sbin/pfctl/pfctl_table.c
278
PFRB_FOREACH(p, &b) {
sbin/pfctl/pfctl_table.c
299
b.pfrb_type = (opts & PF_OPT_VERBOSE) ?
sbin/pfctl/pfctl_table.c
304
pfr_buf_grow(&b, b.pfrb_size);
sbin/pfctl/pfctl_table.c
305
b.pfrb_size = b.pfrb_msize;
sbin/pfctl/pfctl_table.c
307
RVTEST(pfr_get_astats(&table, b.pfrb_caddr,
sbin/pfctl/pfctl_table.c
308
&b.pfrb_size, flags));
sbin/pfctl/pfctl_table.c
310
RVTEST(pfr_get_addrs(&table, b.pfrb_caddr,
sbin/pfctl/pfctl_table.c
311
&b.pfrb_size, flags));
sbin/pfctl/pfctl_table.c
312
if (b.pfrb_size <= b.pfrb_msize)
sbin/pfctl/pfctl_table.c
315
PFRB_FOREACH(p, &b)
sbin/pfctl/pfctl_table.c
321
b.pfrb_type = PFRB_ADDRS;
sbin/pfctl/pfctl_table.c
324
if (load_addr(&b, argc, argv, file, 1, opts))
sbin/pfctl/pfctl_table.c
328
PFRB_FOREACH(a, &b)
sbin/pfctl/pfctl_table.c
332
RVTEST(pfr_tst_addrs(&table, b.pfrb_caddr, b.pfrb_size,
sbin/pfctl/pfctl_table.c
334
xprintf(opts, "%d/%d addresses match", nmatch, b.pfrb_size);
sbin/pfctl/pfctl_table.c
336
PFRB_FOREACH(a, &b)
sbin/pfctl/pfctl_table.c
342
PFRB_FOREACH(a, &b) {
sbin/pfctl/pfctl_table.c
347
if (nmatch < b.pfrb_size)
sbin/pfctl/pfctl_table.c
350
b.pfrb_type = PFRB_ADDRS;
sbin/pfctl/pfctl_table.c
351
if (load_addr(&b, argc, argv, file, 0, opts))
sbin/pfctl/pfctl_table.c
355
RVTEST(pfr_clr_astats(&table, b.pfrb_caddr, b.pfrb_size,
sbin/pfctl/pfctl_table.c
357
xprintf(opts, "%d/%d addresses cleared", nzero, b.pfrb_size);
sbin/pfctl/pfctl_table.c
359
PFRB_FOREACH(a, &b)
sbin/pfctl/pfctl_table.c
375
pfr_buf_clear(&b);
sbin/pfctl/pfctl_table.c
433
load_addr(struct pfr_buffer *b, int argc, char *argv[], char *file,
sbin/pfctl/pfctl_table.c
438
if ((ev = append_addr(b, *argv++, nonetwork, opts)) == -1) {
sbin/pfctl/pfctl_table.c
447
if (pfr_buf_load(b, file, nonetwork, opts)) {
sbin/pfctl/pfctl_table.c
584
struct pfr_buffer b;
sbin/pfctl/pfctl_table.c
587
bzero(&b, sizeof(b));
sbin/pfctl/pfctl_table.c
588
b.pfrb_type = PFRB_TABLES;
sbin/pfctl/pfctl_table.c
590
pfr_buf_grow(&b, b.pfrb_size);
sbin/pfctl/pfctl_table.c
591
b.pfrb_size = b.pfrb_msize;
sbin/pfctl/pfctl_table.c
592
if (pfr_get_tables(NULL, b.pfrb_caddr,
sbin/pfctl/pfctl_table.c
593
&b.pfrb_size, PFR_FLAG_ALLRSETS))
sbin/pfctl/pfctl_table.c
595
if (b.pfrb_size <= b.pfrb_msize)
sbin/pfctl/pfctl_table.c
598
PFRB_FOREACH(t, &b) {
sbin/pfctl/pfctl_table.c
608
pfr_buf_clear(&b);
sbin/pfctl/pfctl_table.c
637
struct pfr_buffer b;
sbin/pfctl/pfctl_table.c
640
bzero(&b, sizeof(b));
sbin/pfctl/pfctl_table.c
641
b.pfrb_type = PFRB_IFACES;
sbin/pfctl/pfctl_table.c
643
pfr_buf_grow(&b, 0);
sbin/pfctl/pfctl_table.c
644
b.pfrb_size = b.pfrb_msize;
sbin/pfctl/pfctl_table.c
645
if (pfi_get_ifaces(filter, b.pfrb_caddr, &b.pfrb_size))
sbin/pfctl/pfctl_table.c
647
if (b.pfrb_size < b.pfrb_msize)
sbin/pfctl/pfctl_table.c
652
PFRB_FOREACH(p, &b)
sbin/resolvd/resolvd.c
709
cmp(const void *a, const void *b)
sbin/resolvd/resolvd.c
711
const struct rdns_proposal *rpa = a, *rpb = b;
sbin/restore/interactive.c
53
#define round(a, b) (((a) + (b) - 1) / (b) * (b))
sbin/route/route.c
2009
bprintf(FILE *fp, int b, char *s)
sbin/route/route.c
2014
if (b == 0)
sbin/route/route.c
2017
if ((b & (1 << (i-1)))) {
sbin/savecore/savecore.c
53
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
sbin/savecore/zopen.c
73
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
sbin/slaacd/engine.c
83
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
sbin/swapctl/swaplist.c
43
#define dbtoqb(b) dbtob((int64_t)(b))
sbin/unwind/frontend.c
66
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
sbin/unwind/libunbound/dns64/dns64.c
150
#define swap(t,a,b) do {t x = a; a = b; b = x;} while(0)
sbin/unwind/libunbound/libunbound/context.c
121
int context_query_cmp(const void* a, const void* b)
sbin/unwind/libunbound/libunbound/context.c
123
if( *(int*)a < *(int*)b )
sbin/unwind/libunbound/libunbound/context.c
125
if( *(int*)a > *(int*)b )
sbin/unwind/libunbound/libunbound/context.h
212
int context_query_cmp(const void* a, const void* b);
sbin/unwind/libunbound/libunbound/libworker.c
1018
codeline_cmp(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
sbin/unwind/libunbound/libunbound/libworker.c
1024
int replay_var_compare(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
sbin/unwind/libunbound/services/authzone.c
317
struct auth_zone* b = (struct auth_zone*)z2;
sbin/unwind/libunbound/services/authzone.c
319
if(a->dclass != b->dclass) {
sbin/unwind/libunbound/services/authzone.c
320
if(a->dclass < b->dclass)
sbin/unwind/libunbound/services/authzone.c
326
return dname_lab_cmp(a->name, a->namelabs, b->name, b->namelabs, &m);
sbin/unwind/libunbound/services/authzone.c
332
struct auth_data* b = (struct auth_data*)z2;
sbin/unwind/libunbound/services/authzone.c
335
return dname_canon_lab_cmp(a->name, a->namelabs, b->name,
sbin/unwind/libunbound/services/authzone.c
336
b->namelabs, &m);
sbin/unwind/libunbound/services/authzone.c
344
struct auth_xfer* b = (struct auth_xfer*)z2;
sbin/unwind/libunbound/services/authzone.c
346
if(a->dclass != b->dclass) {
sbin/unwind/libunbound/services/authzone.c
347
if(a->dclass < b->dclass)
sbin/unwind/libunbound/services/authzone.c
353
return dname_lab_cmp(a->name, a->namelabs, b->name, b->namelabs, &m);
sbin/unwind/libunbound/services/authzone.c
7214
str_find_first_of_chars(char* s, char a, char b)
sbin/unwind/libunbound/services/authzone.c
7217
char* rb = strchr(s, b);
sbin/unwind/libunbound/services/authzone.c
7339
compare_serial(uint32_t a, uint32_t b)
sbin/unwind/libunbound/services/authzone.c
7343
if (a == b) {
sbin/unwind/libunbound/services/authzone.c
7345
} else if ((a < b && b - a < cutoff) || (a > b && a - b > cutoff)) {
sbin/unwind/libunbound/services/authzone.h
710
int compare_serial(uint32_t a, uint32_t b);
sbin/unwind/libunbound/services/localzone.c
148
struct local_zone* b = (struct local_zone*)z2;
sbin/unwind/libunbound/services/localzone.c
150
if(a->dclass != b->dclass) {
sbin/unwind/libunbound/services/localzone.c
151
if(a->dclass < b->dclass)
sbin/unwind/libunbound/services/localzone.c
155
return dname_lab_cmp(a->name, a->namelabs, b->name, b->namelabs, &m);
sbin/unwind/libunbound/services/localzone.c
162
struct local_data* b = (struct local_data*)d2;
sbin/unwind/libunbound/services/localzone.c
164
return dname_canon_lab_cmp(a->name, a->namelabs, b->name,
sbin/unwind/libunbound/services/localzone.c
165
b->namelabs, &m);
sbin/unwind/libunbound/services/mesh.c
164
struct mesh_state* b = (struct mesh_state*)bp;
sbin/unwind/libunbound/services/mesh.c
167
if(a->unique < b->unique)
sbin/unwind/libunbound/services/mesh.c
169
if(a->unique > b->unique)
sbin/unwind/libunbound/services/mesh.c
172
if(a->s.is_priming && !b->s.is_priming)
sbin/unwind/libunbound/services/mesh.c
174
if(!a->s.is_priming && b->s.is_priming)
sbin/unwind/libunbound/services/mesh.c
177
if(a->s.is_valrec && !b->s.is_valrec)
sbin/unwind/libunbound/services/mesh.c
179
if(!a->s.is_valrec && b->s.is_valrec)
sbin/unwind/libunbound/services/mesh.c
182
if((a->s.query_flags&BIT_RD) && !(b->s.query_flags&BIT_RD))
sbin/unwind/libunbound/services/mesh.c
184
if(!(a->s.query_flags&BIT_RD) && (b->s.query_flags&BIT_RD))
sbin/unwind/libunbound/services/mesh.c
187
if((a->s.query_flags&BIT_CD) && !(b->s.query_flags&BIT_CD))
sbin/unwind/libunbound/services/mesh.c
189
if(!(a->s.query_flags&BIT_CD) && (b->s.query_flags&BIT_CD))
sbin/unwind/libunbound/services/mesh.c
192
cmp = query_info_compare(&a->s.qinfo, &b->s.qinfo);
sbin/unwind/libunbound/services/mesh.c
195
return client_info_compare(a->s.client_info, b->s.client_info);
sbin/unwind/libunbound/services/mesh.c
202
struct mesh_state_ref* b = (struct mesh_state_ref*)bp;
sbin/unwind/libunbound/services/mesh.c
203
return mesh_state_compare(a->s, b->s);
sbin/unwind/libunbound/services/view.c
52
struct view* b = (struct view*)v2;
sbin/unwind/libunbound/services/view.c
54
return strcmp(a->name, b->name);
sbin/unwind/libunbound/sldns/parse.c
280
sldns_bget_token(sldns_buffer *b, char *token, const char *delim, size_t limit)
sbin/unwind/libunbound/sldns/parse.c
282
return sldns_bget_token_par(b, token, delim, limit, NULL, NULL);
sbin/unwind/libunbound/sldns/parse.c
286
sldns_bget_token_par(sldns_buffer *b, char *token, const char *delim,
sbin/unwind/libunbound/sldns/parse.c
315
while ((c = sldns_bgetc(b)) != EOF) {
sbin/unwind/libunbound/sldns/parse.c
426
sldns_bskipcs(b, del+1);
sbin/unwind/libunbound/sldns/parse.c
427
else sldns_bskipcs(b, del);
sbin/unwind/libunbound/sldns/parse.c
492
sldns_bget_keyword_data(sldns_buffer *b, const char *keyword, const char *k_del, char
sbin/unwind/libunbound/sldns/parse.c
505
i = sldns_bget_token(b, fkeyword, k_del, data_limit);
sbin/unwind/libunbound/sldns/parse.c
516
i = sldns_bget_token(b, data, d_del, 0);
sbin/unwind/libunbound/sldns/parse.h
140
ssize_t sldns_bget_keyword_data(struct sldns_buffer *b, const char *keyword, const char *k_del, char *data, const char *d_del, size_t data_limit);
sbin/unwind/libunbound/sldns/parse.h
87
ssize_t sldns_bget_token_par(struct sldns_buffer *b, char *token, const char *delim, size_t limit, int* par, const char* skipw);
sbin/unwind/libunbound/sldns/parse.h
99
ssize_t sldns_bget_token(struct sldns_buffer *b, char *token, const char *delim, size_t limit);
sbin/unwind/libunbound/sldns/str2wire.c
1311
sldns_network_uint16_cmp(const void *a, const void *b)
sbin/unwind/libunbound/sldns/str2wire.c
1313
return ((int)sldns_read_uint16(a)) - ((int)sldns_read_uint16(b));
sbin/unwind/libunbound/sldns/str2wire.c
2718
unsigned int a, b, c, d;
sbin/unwind/libunbound/sldns/str2wire.c
2724
if (sscanf(str, "%4x:%4x:%4x:%4x%n", &a, &b, &c, &d, &l) != 4 ||
sbin/unwind/libunbound/sldns/str2wire.c
2730
shorts[1] = htons(b);
sbin/unwind/libunbound/sldns/str2wire.c
2740
unsigned int a, b, c, d, e, f;
sbin/unwind/libunbound/sldns/str2wire.c
2746
&a, &b, &c, &d, &e, &f, &l) != 6 ||
sbin/unwind/libunbound/sldns/str2wire.c
2750
rd[1] = b;
sbin/unwind/libunbound/sldns/str2wire.c
2761
unsigned int a, b, c, d, e, f, g, h;
sbin/unwind/libunbound/sldns/str2wire.c
2767
&a, &b, &c, &d, &e, &f, &g, &h, &l) != 8 ||
sbin/unwind/libunbound/sldns/str2wire.c
2771
rd[1] = b;
sbin/unwind/libunbound/sldns/str2wire.c
630
static int sldns_str2wire_svcparam_key_cmp(const void *a, const void *b)
sbin/unwind/libunbound/sldns/str2wire.c
633
- sldns_read_uint16(*(uint8_t**) b);
sbin/unwind/libunbound/util/config_file.c
1044
size_t f=cfg->var/(size_t)1000000, b=cfg->var%(size_t)1000000; \
sbin/unwind/libunbound/util/config_file.c
1045
snprintf(buf, len, "%u%6.6u", (unsigned)f, (unsigned)b); \
sbin/unwind/libunbound/util/config_file.c
2753
uint8_t b = ad[i];
sbin/unwind/libunbound/util/config_file.c
2754
*p++ = hex[ (b&0x0f) ];
sbin/unwind/libunbound/util/config_file.c
2756
*p++ = hex[ (b&0xf0) >> 4 ];
sbin/unwind/libunbound/util/configlexer.c
297
void yy_delete_buffer (YY_BUFFER_STATE b );
sbin/unwind/libunbound/util/configlexer.c
298
void yy_flush_buffer (YY_BUFFER_STATE b );
sbin/unwind/libunbound/util/configlexer.c
304
static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
sbin/unwind/libunbound/util/configlexer.c
6472
YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
sbin/unwind/libunbound/util/configlexer.c
6475
(int) ((yy_c_buf_p) - b->yy_ch_buf);
sbin/unwind/libunbound/util/configlexer.c
6477
if ( b->yy_is_our_buffer )
sbin/unwind/libunbound/util/configlexer.c
6479
yy_size_t new_size = b->yy_buf_size * 2;
sbin/unwind/libunbound/util/configlexer.c
6482
b->yy_buf_size += b->yy_buf_size / 8;
sbin/unwind/libunbound/util/configlexer.c
6484
b->yy_buf_size *= 2;
sbin/unwind/libunbound/util/configlexer.c
6486
b->yy_ch_buf = (char *)
sbin/unwind/libunbound/util/configlexer.c
6488
yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
sbin/unwind/libunbound/util/configlexer.c
6492
b->yy_ch_buf = 0;
sbin/unwind/libunbound/util/configlexer.c
6494
if ( ! b->yy_ch_buf )
sbin/unwind/libunbound/util/configlexer.c
6498
(yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
sbin/unwind/libunbound/util/configlexer.c
6753
YY_BUFFER_STATE b;
sbin/unwind/libunbound/util/configlexer.c
6755
b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
sbin/unwind/libunbound/util/configlexer.c
6756
if ( ! b )
sbin/unwind/libunbound/util/configlexer.c
6759
b->yy_buf_size = size;
sbin/unwind/libunbound/util/configlexer.c
6764
b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
sbin/unwind/libunbound/util/configlexer.c
6765
if ( ! b->yy_ch_buf )
sbin/unwind/libunbound/util/configlexer.c
6768
b->yy_is_our_buffer = 1;
sbin/unwind/libunbound/util/configlexer.c
6770
yy_init_buffer(b,file );
sbin/unwind/libunbound/util/configlexer.c
6772
return b;
sbin/unwind/libunbound/util/configlexer.c
6779
void yy_delete_buffer (YY_BUFFER_STATE b )
sbin/unwind/libunbound/util/configlexer.c
6782
if ( ! b )
sbin/unwind/libunbound/util/configlexer.c
6785
if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
sbin/unwind/libunbound/util/configlexer.c
6788
if ( b->yy_is_our_buffer )
sbin/unwind/libunbound/util/configlexer.c
6789
yyfree((void *) b->yy_ch_buf );
sbin/unwind/libunbound/util/configlexer.c
6791
yyfree((void *) b );
sbin/unwind/libunbound/util/configlexer.c
6798
static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
sbin/unwind/libunbound/util/configlexer.c
6803
yy_flush_buffer(b );
sbin/unwind/libunbound/util/configlexer.c
6805
b->yy_input_file = file;
sbin/unwind/libunbound/util/configlexer.c
6806
b->yy_fill_buffer = 1;
sbin/unwind/libunbound/util/configlexer.c
6812
if (b != YY_CURRENT_BUFFER){
sbin/unwind/libunbound/util/configlexer.c
6813
b->yy_bs_lineno = 1;
sbin/unwind/libunbound/util/configlexer.c
6814
b->yy_bs_column = 0;
sbin/unwind/libunbound/util/configlexer.c
6817
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
sbin/unwind/libunbound/util/configlexer.c
6826
void yy_flush_buffer (YY_BUFFER_STATE b )
sbin/unwind/libunbound/util/configlexer.c
6828
if ( ! b )
sbin/unwind/libunbound/util/configlexer.c
6831
b->yy_n_chars = 0;
sbin/unwind/libunbound/util/configlexer.c
6837
b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
sbin/unwind/libunbound/util/configlexer.c
6838
b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
sbin/unwind/libunbound/util/configlexer.c
6840
b->yy_buf_pos = &b->yy_ch_buf[0];
sbin/unwind/libunbound/util/configlexer.c
6842
b->yy_at_bol = 1;
sbin/unwind/libunbound/util/configlexer.c
6843
b->yy_buffer_status = YY_BUFFER_NEW;
sbin/unwind/libunbound/util/configlexer.c
6845
if ( b == YY_CURRENT_BUFFER )
sbin/unwind/libunbound/util/configlexer.c
6955
YY_BUFFER_STATE b;
sbin/unwind/libunbound/util/configlexer.c
6963
b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
sbin/unwind/libunbound/util/configlexer.c
6964
if ( ! b )
sbin/unwind/libunbound/util/configlexer.c
6967
b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
sbin/unwind/libunbound/util/configlexer.c
6968
b->yy_buf_pos = b->yy_ch_buf = base;
sbin/unwind/libunbound/util/configlexer.c
6969
b->yy_is_our_buffer = 0;
sbin/unwind/libunbound/util/configlexer.c
6970
b->yy_input_file = 0;
sbin/unwind/libunbound/util/configlexer.c
6971
b->yy_n_chars = b->yy_buf_size;
sbin/unwind/libunbound/util/configlexer.c
6972
b->yy_is_interactive = 0;
sbin/unwind/libunbound/util/configlexer.c
6973
b->yy_at_bol = 1;
sbin/unwind/libunbound/util/configlexer.c
6974
b->yy_fill_buffer = 0;
sbin/unwind/libunbound/util/configlexer.c
6975
b->yy_buffer_status = YY_BUFFER_NEW;
sbin/unwind/libunbound/util/configlexer.c
6977
yy_switch_to_buffer(b );
sbin/unwind/libunbound/util/configlexer.c
6979
return b;
sbin/unwind/libunbound/util/configlexer.c
7005
YY_BUFFER_STATE b;
sbin/unwind/libunbound/util/configlexer.c
7021
b = yy_scan_buffer(buf,n );
sbin/unwind/libunbound/util/configlexer.c
7022
if ( ! b )
sbin/unwind/libunbound/util/configlexer.c
7028
b->yy_is_our_buffer = 1;
sbin/unwind/libunbound/util/configlexer.c
7030
return b;
sbin/unwind/libunbound/util/data/msgreply.c
581
reply_info_sortref_cmp(const void* a, const void* b)
sbin/unwind/libunbound/util/data/msgreply.c
584
struct rrset_ref* y = (struct rrset_ref*)b;
sbin/unwind/libunbound/util/fptr_wlist.h
420
int codeline_cmp(const void* a, const void* b);
sbin/unwind/libunbound/util/fptr_wlist.h
423
int replay_var_compare(const void* a, const void* b);
sbin/unwind/libunbound/util/mini_event.c
395
int mini_ev_cmp(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
sbin/unwind/libunbound/util/mini_event.c
55
int mini_ev_cmp(const void* a, const void* b)
sbin/unwind/libunbound/util/mini_event.c
58
const struct event *f = (const struct event*)b;
sbin/unwind/libunbound/util/mini_event.h
196
int mini_ev_cmp(const void* a, const void* b);
sbin/unwind/libunbound/util/module.c
234
char b[1024];
sbin/unwind/libunbound/util/module.c
239
snprintf(b, sizeof(b), "%s %s", str, buf);
sbin/unwind/libunbound/util/module.c
240
errinf(qstate, b);
sbin/unwind/libunbound/util/netevent.c
206
struct comm_base* b = (struct comm_base*)calloc(1,
sbin/unwind/libunbound/util/netevent.c
210
if(!b)
sbin/unwind/libunbound/util/netevent.c
212
b->eb = (struct internal_base*)calloc(1, sizeof(struct internal_base));
sbin/unwind/libunbound/util/netevent.c
213
if(!b->eb) {
sbin/unwind/libunbound/util/netevent.c
214
free(b);
sbin/unwind/libunbound/util/netevent.c
217
b->eb->base = ub_default_event_base(sigs, &b->eb->secs, &b->eb->now);
sbin/unwind/libunbound/util/netevent.c
218
if(!b->eb->base) {
sbin/unwind/libunbound/util/netevent.c
219
free(b->eb);
sbin/unwind/libunbound/util/netevent.c
220
free(b);
sbin/unwind/libunbound/util/netevent.c
223
ub_comm_base_now(b);
sbin/unwind/libunbound/util/netevent.c
224
ub_get_event_sys(b->eb->base, &evnm, &evsys, &evmethod);
sbin/unwind/libunbound/util/netevent.c
226
return b;
sbin/unwind/libunbound/util/netevent.c
232
struct comm_base* b = (struct comm_base*)calloc(1,
sbin/unwind/libunbound/util/netevent.c
234
if(!b)
sbin/unwind/libunbound/util/netevent.c
236
b->eb = (struct internal_base*)calloc(1, sizeof(struct internal_base));
sbin/unwind/libunbound/util/netevent.c
237
if(!b->eb) {
sbin/unwind/libunbound/util/netevent.c
238
free(b);
sbin/unwind/libunbound/util/netevent.c
241
b->eb->base = base;
sbin/unwind/libunbound/util/netevent.c
242
ub_comm_base_now(b);
sbin/unwind/libunbound/util/netevent.c
243
return b;
sbin/unwind/libunbound/util/netevent.c
247
comm_base_delete(struct comm_base* b)
sbin/unwind/libunbound/util/netevent.c
249
if(!b)
sbin/unwind/libunbound/util/netevent.c
251
if(b->eb->slow_accept_enabled) {
sbin/unwind/libunbound/util/netevent.c
252
if(ub_event_del(b->eb->slow_accept) != 0) {
sbin/unwind/libunbound/util/netevent.c
255
ub_event_free(b->eb->slow_accept);
sbin/unwind/libunbound/util/netevent.c
257
ub_event_base_free(b->eb->base);
sbin/unwind/libunbound/util/netevent.c
258
b->eb->base = NULL;
sbin/unwind/libunbound/util/netevent.c
259
free(b->eb);
sbin/unwind/libunbound/util/netevent.c
260
free(b);
sbin/unwind/libunbound/util/netevent.c
264
comm_base_delete_no_base(struct comm_base* b)
sbin/unwind/libunbound/util/netevent.c
266
if(!b)
sbin/unwind/libunbound/util/netevent.c
268
if(b->eb->slow_accept_enabled) {
sbin/unwind/libunbound/util/netevent.c
269
if(ub_event_del(b->eb->slow_accept) != 0) {
sbin/unwind/libunbound/util/netevent.c
272
ub_event_free(b->eb->slow_accept);
sbin/unwind/libunbound/util/netevent.c
274
b->eb->base = NULL;
sbin/unwind/libunbound/util/netevent.c
275
free(b->eb);
sbin/unwind/libunbound/util/netevent.c
276
free(b);
sbin/unwind/libunbound/util/netevent.c
280
comm_base_timept(struct comm_base* b, time_t** tt, struct timeval** tv)
sbin/unwind/libunbound/util/netevent.c
282
*tt = &b->eb->secs;
sbin/unwind/libunbound/util/netevent.c
283
*tv = &b->eb->now;
sbin/unwind/libunbound/util/netevent.c
287
comm_base_dispatch(struct comm_base* b)
sbin/unwind/libunbound/util/netevent.c
290
retval = ub_event_base_dispatch(b->eb->base);
sbin/unwind/libunbound/util/netevent.c
2966
struct comm_base* b = (struct comm_base*)arg;
sbin/unwind/libunbound/util/netevent.c
2968
if(b->start_accept) {
sbin/unwind/libunbound/util/netevent.c
297
void comm_base_exit(struct comm_base* b)
sbin/unwind/libunbound/util/netevent.c
2970
fptr_ok(fptr_whitelist_start_accept(b->start_accept));
sbin/unwind/libunbound/util/netevent.c
2971
(*b->start_accept)(b->cb_arg);
sbin/unwind/libunbound/util/netevent.c
2972
b->eb->slow_accept_enabled = 0;
sbin/unwind/libunbound/util/netevent.c
299
if(ub_event_base_loopexit(b->eb->base) != 0) {
sbin/unwind/libunbound/util/netevent.c
3007
struct comm_base* b = c->ev->base;
sbin/unwind/libunbound/util/netevent.c
3011
ub_comm_base_now(b);
sbin/unwind/libunbound/util/netevent.c
3012
if(b->eb->last_slow_log+SLOW_LOG_TIME <=
sbin/unwind/libunbound/util/netevent.c
3013
b->eb->secs) {
sbin/unwind/libunbound/util/netevent.c
3014
b->eb->last_slow_log = b->eb->secs;
sbin/unwind/libunbound/util/netevent.c
3021
b->eb->slow_accept_enabled = 1;
sbin/unwind/libunbound/util/netevent.c
3023
b->stop_accept));
sbin/unwind/libunbound/util/netevent.c
3024
(*b->stop_accept)(b->cb_arg);
sbin/unwind/libunbound/util/netevent.c
3028
b->eb->slow_accept = ub_event_new(b->eb->base,
sbin/unwind/libunbound/util/netevent.c
3030
comm_base_handle_slow_accept, b);
sbin/unwind/libunbound/util/netevent.c
3031
if(b->eb->slow_accept == NULL) {
sbin/unwind/libunbound/util/netevent.c
3036
else if(ub_event_add(b->eb->slow_accept, &tv)
sbin/unwind/libunbound/util/netevent.c
304
void comm_base_set_slow_accept_handlers(struct comm_base* b,
sbin/unwind/libunbound/util/netevent.c
307
b->stop_accept = stop_acc;
sbin/unwind/libunbound/util/netevent.c
3078
static long win_bio_cb(BIO *b, int oper, const char* ATTR_UNUSED(argp),
sbin/unwind/libunbound/util/netevent.c
308
b->start_accept = start_acc;
sbin/unwind/libunbound/util/netevent.c
309
b->cb_arg = arg;
sbin/unwind/libunbound/util/netevent.c
3100
BIO_get_callback_arg(b), UB_EV_READ);
sbin/unwind/libunbound/util/netevent.c
3106
BIO_get_callback_arg(b), UB_EV_WRITE);
sbin/unwind/libunbound/util/netevent.c
312
struct ub_event_base* comm_base_internal(struct comm_base* b)
sbin/unwind/libunbound/util/netevent.c
314
return b->eb->base;
sbin/unwind/libunbound/util/netevent.c
472
struct comm_base* b = c->ev->base;
sbin/unwind/libunbound/util/netevent.c
473
if(b->eb->last_writewait_log+SLOW_LOG_TIME <=
sbin/unwind/libunbound/util/netevent.c
474
b->eb->secs) {
sbin/unwind/libunbound/util/netevent.c
475
b->eb->last_writewait_log = b->eb->secs;
sbin/unwind/libunbound/util/netevent.c
787
struct comm_base* b = c->ev->base;
sbin/unwind/libunbound/util/netevent.c
788
if(b->eb->last_writewait_log+SLOW_LOG_TIME <=
sbin/unwind/libunbound/util/netevent.c
789
b->eb->secs) {
sbin/unwind/libunbound/util/netevent.c
790
b->eb->last_writewait_log = b->eb->secs;
sbin/unwind/libunbound/util/netevent.h
504
void comm_base_delete_no_base(struct comm_base* b);
sbin/unwind/libunbound/util/netevent.h
511
void comm_base_delete(struct comm_base* b);
sbin/unwind/libunbound/util/netevent.h
520
void comm_base_timept(struct comm_base* b, time_t** tt, struct timeval** tv);
sbin/unwind/libunbound/util/netevent.h
526
void comm_base_dispatch(struct comm_base* b);
sbin/unwind/libunbound/util/netevent.h
532
void comm_base_exit(struct comm_base* b);
sbin/unwind/libunbound/util/netevent.h
542
void comm_base_set_slow_accept_handlers(struct comm_base* b,
sbin/unwind/libunbound/util/netevent.h
550
struct ub_event_base* comm_base_internal(struct comm_base* b);
sbin/unwind/libunbound/util/rfc_1982.c
45
compare_1982(uint32_t a, uint32_t b)
sbin/unwind/libunbound/util/rfc_1982.c
50
if (a == b) {
sbin/unwind/libunbound/util/rfc_1982.c
52
} else if ((a < b && b - a < cutoff) || (a > b && a - b > cutoff)) {
sbin/unwind/libunbound/util/rfc_1982.c
60
subtract_1982(uint32_t a, uint32_t b)
sbin/unwind/libunbound/util/rfc_1982.c
65
if(a == b)
sbin/unwind/libunbound/util/rfc_1982.c
67
if(a < b && b - a < cutoff) {
sbin/unwind/libunbound/util/rfc_1982.c
68
return b-a;
sbin/unwind/libunbound/util/rfc_1982.c
70
if(a > b && a - b > cutoff) {
sbin/unwind/libunbound/util/rfc_1982.c
71
return ((uint32_t)0xffffffff) - (a-b-1);
sbin/unwind/libunbound/util/rfc_1982.h
51
int compare_1982(uint32_t a, uint32_t b);
sbin/unwind/libunbound/util/rfc_1982.h
61
uint32_t subtract_1982(uint32_t a, uint32_t b);
sbin/unwind/libunbound/util/siphash.c
103
uint64_t b = ((uint64_t)inlen) << 56;
sbin/unwind/libunbound/util/siphash.c
129
b |= ((uint64_t)in[6]) << 48;
sbin/unwind/libunbound/util/siphash.c
134
b |= ((uint64_t)in[5]) << 40;
sbin/unwind/libunbound/util/siphash.c
139
b |= ((uint64_t)in[4]) << 32;
sbin/unwind/libunbound/util/siphash.c
144
b |= ((uint64_t)in[3]) << 24;
sbin/unwind/libunbound/util/siphash.c
149
b |= ((uint64_t)in[2]) << 16;
sbin/unwind/libunbound/util/siphash.c
154
b |= ((uint64_t)in[1]) << 8;
sbin/unwind/libunbound/util/siphash.c
159
b |= ((uint64_t)in[0]);
sbin/unwind/libunbound/util/siphash.c
165
v3 ^= b;
sbin/unwind/libunbound/util/siphash.c
171
v0 ^= b;
sbin/unwind/libunbound/util/siphash.c
182
b = v0 ^ v1 ^ v2 ^ v3;
sbin/unwind/libunbound/util/siphash.c
183
U64TO8_LE(out, b);
sbin/unwind/libunbound/util/siphash.c
194
b = v0 ^ v1 ^ v2 ^ v3;
sbin/unwind/libunbound/util/siphash.c
195
U64TO8_LE(out + 8, b);
sbin/unwind/libunbound/util/siphash.c
38
#define ROTL(x, b) (uint64_t)(((x) << (b)) | ((x) >> (64 - (b))))
sbin/unwind/libunbound/util/storage/lookup3.c
1012
uint8_t qa[MAXLEN+1], qb[MAXLEN+2], *a = &qa[0], *b = &qb[1];
sbin/unwind/libunbound/util/storage/lookup3.c
1036
for (l=0; l<hlen+1; ++l) {a[l] = b[l] = (uint8_t)0;}
sbin/unwind/libunbound/util/storage/lookup3.c
1041
b[i] ^= ((k+1)<<j);
sbin/unwind/libunbound/util/storage/lookup3.c
1042
b[i] ^= ((k+1)>>(8-j));
sbin/unwind/libunbound/util/storage/lookup3.c
1043
d[0] = hashlittle(b, hlen, m);
sbin/unwind/libunbound/util/storage/lookup3.c
1082
uint8_t buf[MAXLEN+20], *b;
sbin/unwind/libunbound/util/storage/lookup3.c
1148
for (h=0, b=buf+1; h<8; ++h, ++b)
sbin/unwind/libunbound/util/storage/lookup3.c
1153
for (j=0; j<i; ++j) *(b+j)=0;
sbin/unwind/libunbound/util/storage/lookup3.c
1156
ref = hashlittle(b, len, (uint32_t)1);
sbin/unwind/libunbound/util/storage/lookup3.c
1157
*(b+i)=(uint8_t)~0;
sbin/unwind/libunbound/util/storage/lookup3.c
1158
*(b-1)=(uint8_t)~0;
sbin/unwind/libunbound/util/storage/lookup3.c
1159
x = hashlittle(b, len, (uint32_t)1);
sbin/unwind/libunbound/util/storage/lookup3.c
1160
y = hashlittle(b, len, (uint32_t)1);
sbin/unwind/libunbound/util/storage/lookup3.c
173
#define mix(a,b,c) \
sbin/unwind/libunbound/util/storage/lookup3.c
175
a -= c; a ^= rot(c, 4); c += b; \
sbin/unwind/libunbound/util/storage/lookup3.c
176
b -= a; b ^= rot(a, 6); a += c; \
sbin/unwind/libunbound/util/storage/lookup3.c
177
c -= b; c ^= rot(b, 8); b += a; \
sbin/unwind/libunbound/util/storage/lookup3.c
178
a -= c; a ^= rot(c,16); c += b; \
sbin/unwind/libunbound/util/storage/lookup3.c
179
b -= a; b ^= rot(a,19); a += c; \
sbin/unwind/libunbound/util/storage/lookup3.c
180
c -= b; c ^= rot(b, 4); b += a; \
sbin/unwind/libunbound/util/storage/lookup3.c
208
#define final(a,b,c) \
sbin/unwind/libunbound/util/storage/lookup3.c
210
c ^= b; c -= rot(b,14); \
sbin/unwind/libunbound/util/storage/lookup3.c
212
b ^= a; b -= rot(a,25); \
sbin/unwind/libunbound/util/storage/lookup3.c
213
c ^= b; c -= rot(b,16); \
sbin/unwind/libunbound/util/storage/lookup3.c
215
b ^= a; b -= rot(a,14); \
sbin/unwind/libunbound/util/storage/lookup3.c
216
c ^= b; c -= rot(b,24); \
sbin/unwind/libunbound/util/storage/lookup3.c
237
uint32_t a,b,c;
sbin/unwind/libunbound/util/storage/lookup3.c
240
a = b = c = raninit + (((uint32_t)length)<<2) + initval;
sbin/unwind/libunbound/util/storage/lookup3.c
246
b += k[1];
sbin/unwind/libunbound/util/storage/lookup3.c
248
mix(a,b,c);
sbin/unwind/libunbound/util/storage/lookup3.c
259
case 2 : b+=k[1];
sbin/unwind/libunbound/util/storage/lookup3.c
263
final(a,b,c);
sbin/unwind/libunbound/util/storage/lookup3.c
290
uint32_t a,b,c;
sbin/unwind/libunbound/util/storage/lookup3.c
293
a = b = c = raninit + ((uint32_t)(length<<2)) + *pc;
sbin/unwind/libunbound/util/storage/lookup3.c
300
b += k[1];
sbin/unwind/libunbound/util/storage/lookup3.c
302
mix(a,b,c);
sbin/unwind/libunbound/util/storage/lookup3.c
313
case 2 : b+=k[1];
sbin/unwind/libunbound/util/storage/lookup3.c
317
final(a,b,c);
sbin/unwind/libunbound/util/storage/lookup3.c
324
*pc=c; *pb=b;
sbin/unwind/libunbound/util/storage/lookup3.c
358
uint32_t a,b,c; /* internal state */
sbin/unwind/libunbound/util/storage/lookup3.c
362
a = b = c = raninit + ((uint32_t)length) + initval;
sbin/unwind/libunbound/util/storage/lookup3.c
375
b += k[1];
sbin/unwind/libunbound/util/storage/lookup3.c
377
mix(a,b,c);
sbin/unwind/libunbound/util/storage/lookup3.c
396
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
397
case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
398
case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
399
case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
400
case 8 : b+=k[1]; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
401
case 7 : b+=k[1]&0xffffff; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
402
case 6 : b+=k[1]&0xffff; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
403
case 5 : b+=k[1]&0xff; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
416
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
426
case 8 : b+=k[1]; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
427
case 7 : b+=((uint32_t)k8[6])<<16;
sbin/unwind/libunbound/util/storage/lookup3.c
430
case 6 : b+=((uint32_t)k8[5])<<8;
sbin/unwind/libunbound/util/storage/lookup3.c
433
case 5 : b+=k8[4];
sbin/unwind/libunbound/util/storage/lookup3.c
457
b += k[2] + (((uint32_t)k[3])<<16);
sbin/unwind/libunbound/util/storage/lookup3.c
459
mix(a,b,c);
sbin/unwind/libunbound/util/storage/lookup3.c
469
b+=k[2]+(((uint32_t)k[3])<<16);
sbin/unwind/libunbound/util/storage/lookup3.c
476
b+=k[2]+(((uint32_t)k[3])<<16);
sbin/unwind/libunbound/util/storage/lookup3.c
482
case 8 : b+=k[2]+(((uint32_t)k[3])<<16);
sbin/unwind/libunbound/util/storage/lookup3.c
485
case 7 : b+=((uint32_t)k8[6])<<16;
sbin/unwind/libunbound/util/storage/lookup3.c
488
case 6 : b+=k[2];
sbin/unwind/libunbound/util/storage/lookup3.c
491
case 5 : b+=k8[4];
sbin/unwind/libunbound/util/storage/lookup3.c
516
b += k[4];
sbin/unwind/libunbound/util/storage/lookup3.c
517
b += ((uint32_t)k[5])<<8;
sbin/unwind/libunbound/util/storage/lookup3.c
518
b += ((uint32_t)k[6])<<16;
sbin/unwind/libunbound/util/storage/lookup3.c
519
b += ((uint32_t)k[7])<<24;
sbin/unwind/libunbound/util/storage/lookup3.c
524
mix(a,b,c);
sbin/unwind/libunbound/util/storage/lookup3.c
544
case 8 : b+=((uint32_t)k[7])<<24;
sbin/unwind/libunbound/util/storage/lookup3.c
547
case 7 : b+=((uint32_t)k[6])<<16;
sbin/unwind/libunbound/util/storage/lookup3.c
550
case 6 : b+=((uint32_t)k[5])<<8;
sbin/unwind/libunbound/util/storage/lookup3.c
553
case 5 : b+=k[4];
sbin/unwind/libunbound/util/storage/lookup3.c
571
final(a,b,c);
sbin/unwind/libunbound/util/storage/lookup3.c
593
uint32_t a,b,c; /* internal state */
sbin/unwind/libunbound/util/storage/lookup3.c
597
a = b = c = raninit + ((uint32_t)length) + *pc;
sbin/unwind/libunbound/util/storage/lookup3.c
611
b += k[1];
sbin/unwind/libunbound/util/storage/lookup3.c
613
mix(a,b,c);
sbin/unwind/libunbound/util/storage/lookup3.c
632
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
633
case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
634
case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
635
case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
636
case 8 : b+=k[1]; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
637
case 7 : b+=k[1]&0xffffff; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
638
case 6 : b+=k[1]&0xffff; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
639
case 5 : b+=k[1]&0xff; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
644
case 0 : *pc=c; *pb=b; return; /* zero length strings require no mixing */
sbin/unwind/libunbound/util/storage/lookup3.c
652
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
662
case 8 : b+=k[1]; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
663
case 7 : b+=((uint32_t)k8[6])<<16;
sbin/unwind/libunbound/util/storage/lookup3.c
666
case 6 : b+=((uint32_t)k8[5])<<8;
sbin/unwind/libunbound/util/storage/lookup3.c
669
case 5 : b+=k8[4];
sbin/unwind/libunbound/util/storage/lookup3.c
680
case 0 : *pc=c; *pb=b; return; /* zero length strings require no mixing */
sbin/unwind/libunbound/util/storage/lookup3.c
693
b += k[2] + (((uint32_t)k[3])<<16);
sbin/unwind/libunbound/util/storage/lookup3.c
695
mix(a,b,c);
sbin/unwind/libunbound/util/storage/lookup3.c
705
b+=k[2]+(((uint32_t)k[3])<<16);
sbin/unwind/libunbound/util/storage/lookup3.c
712
b+=k[2]+(((uint32_t)k[3])<<16);
sbin/unwind/libunbound/util/storage/lookup3.c
718
case 8 : b+=k[2]+(((uint32_t)k[3])<<16);
sbin/unwind/libunbound/util/storage/lookup3.c
721
case 7 : b+=((uint32_t)k8[6])<<16;
sbin/unwind/libunbound/util/storage/lookup3.c
724
case 6 : b+=k[2];
sbin/unwind/libunbound/util/storage/lookup3.c
727
case 5 : b+=k8[4];
sbin/unwind/libunbound/util/storage/lookup3.c
739
case 0 : *pc=c; *pb=b; return; /* zero length strings require no mixing */
sbin/unwind/libunbound/util/storage/lookup3.c
752
b += k[4];
sbin/unwind/libunbound/util/storage/lookup3.c
753
b += ((uint32_t)k[5])<<8;
sbin/unwind/libunbound/util/storage/lookup3.c
754
b += ((uint32_t)k[6])<<16;
sbin/unwind/libunbound/util/storage/lookup3.c
755
b += ((uint32_t)k[7])<<24;
sbin/unwind/libunbound/util/storage/lookup3.c
760
mix(a,b,c);
sbin/unwind/libunbound/util/storage/lookup3.c
780
case 8 : b+=((uint32_t)k[7])<<24;
sbin/unwind/libunbound/util/storage/lookup3.c
783
case 7 : b+=((uint32_t)k[6])<<16;
sbin/unwind/libunbound/util/storage/lookup3.c
786
case 6 : b+=((uint32_t)k[5])<<8;
sbin/unwind/libunbound/util/storage/lookup3.c
789
case 5 : b+=k[4];
sbin/unwind/libunbound/util/storage/lookup3.c
803
case 0 : *pc=c; *pb=b; return; /* zero length strings require no mixing */
sbin/unwind/libunbound/util/storage/lookup3.c
807
final(a,b,c);
sbin/unwind/libunbound/util/storage/lookup3.c
808
*pc=c; *pb=b;
sbin/unwind/libunbound/util/storage/lookup3.c
823
uint32_t a,b,c;
sbin/unwind/libunbound/util/storage/lookup3.c
827
a = b = c = raninit + ((uint32_t)length) + initval;
sbin/unwind/libunbound/util/storage/lookup3.c
840
b += k[1];
sbin/unwind/libunbound/util/storage/lookup3.c
842
mix(a,b,c);
sbin/unwind/libunbound/util/storage/lookup3.c
861
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
862
case 11: c+=k[2]&0xffffff00; b+=k[1]; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
863
case 10: c+=k[2]&0xffff0000; b+=k[1]; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
864
case 9 : c+=k[2]&0xff000000; b+=k[1]; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
865
case 8 : b+=k[1]; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
866
case 7 : b+=k[1]&0xffffff00; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
867
case 6 : b+=k[1]&0xffff0000; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
868
case 5 : b+=k[1]&0xff000000; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
881
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
891
case 8 : b+=k[1]; a+=k[0]; break;
sbin/unwind/libunbound/util/storage/lookup3.c
892
case 7 : b+=((uint32_t)k8[6])<<8;
sbin/unwind/libunbound/util/storage/lookup3.c
895
case 6 : b+=((uint32_t)k8[5])<<16;
sbin/unwind/libunbound/util/storage/lookup3.c
898
case 5 : b+=((uint32_t)k8[4])<<24;
sbin/unwind/libunbound/util/storage/lookup3.c
924
b += ((uint32_t)k[4])<<24;
sbin/unwind/libunbound/util/storage/lookup3.c
925
b += ((uint32_t)k[5])<<16;
sbin/unwind/libunbound/util/storage/lookup3.c
926
b += ((uint32_t)k[6])<<8;
sbin/unwind/libunbound/util/storage/lookup3.c
927
b += ((uint32_t)k[7]);
sbin/unwind/libunbound/util/storage/lookup3.c
932
mix(a,b,c);
sbin/unwind/libunbound/util/storage/lookup3.c
952
case 8 : b+=k[7];
sbin/unwind/libunbound/util/storage/lookup3.c
955
case 7 : b+=((uint32_t)k[6])<<8;
sbin/unwind/libunbound/util/storage/lookup3.c
958
case 6 : b+=((uint32_t)k[5])<<16;
sbin/unwind/libunbound/util/storage/lookup3.c
961
case 5 : b+=((uint32_t)k[4])<<24;
sbin/unwind/libunbound/util/storage/lookup3.c
979
final(a,b,c);
sbin/unwind/libunbound/util/ub_event_pluggable.c
129
# define NATIVE_BITS(b) (b)
sbin/unwind/libunbound/util/ub_event_pluggable.c
422
static const char* ub_ev_backend2str_pluggable(int b)
sbin/unwind/libunbound/util/ub_event_pluggable.c
424
switch(b) {
sbin/unwind/libunbound/util/ub_event_pluggable.c
451
struct event_base* b = ub_libevent_get_event_base(ub_base);
sbin/unwind/libunbound/util/ub_event_pluggable.c
456
assert(b != NULL);
sbin/unwind/libunbound/util/ub_event_pluggable.c
462
*m = ub_ev_backend2str_pluggable(ev_backend((struct ev_loop*)b));
sbin/unwind/libunbound/util/ub_event_pluggable.c
468
*m = event_base_get_method(b);
sbin/unwind/libunbound/util/ub_event_pluggable.c
75
# define NATIVE_BITS(b) ( \
sbin/unwind/libunbound/util/ub_event_pluggable.c
76
(((b) & UB_EV_TIMEOUT) ? EV_TIMEOUT : 0) \
sbin/unwind/libunbound/util/ub_event_pluggable.c
77
| (((b) & UB_EV_READ ) ? EV_READ : 0) \
sbin/unwind/libunbound/util/ub_event_pluggable.c
78
| (((b) & UB_EV_WRITE ) ? EV_WRITE : 0) \
sbin/unwind/libunbound/util/ub_event_pluggable.c
79
| (((b) & UB_EV_SIGNAL ) ? EV_SIGNAL : 0) \
sbin/unwind/libunbound/util/ub_event_pluggable.c
80
| (((b) & UB_EV_PERSIST) ? EV_PERSIST : 0))
sbin/unwind/libunbound/util/ub_event_pluggable.c
82
# define UB_EV_BITS(b) ( \
sbin/unwind/libunbound/util/ub_event_pluggable.c
83
(((b) & EV_TIMEOUT) ? UB_EV_TIMEOUT : 0) \
sbin/unwind/libunbound/util/ub_event_pluggable.c
84
| (((b) & EV_READ ) ? UB_EV_READ : 0) \
sbin/unwind/libunbound/util/ub_event_pluggable.c
85
| (((b) & EV_WRITE ) ? UB_EV_WRITE : 0) \
sbin/unwind/libunbound/util/ub_event_pluggable.c
86
| (((b) & EV_SIGNAL ) ? UB_EV_SIGNAL : 0) \
sbin/unwind/libunbound/util/ub_event_pluggable.c
87
| (((b) & EV_PERSIST) ? UB_EV_PERSIST : 0))
sbin/unwind/libunbound/util/winsock_event.c
507
BOOL b=0;
sbin/unwind/libunbound/util/winsock_event.c
51
int mini_ev_cmp(const void* a, const void* b)
sbin/unwind/libunbound/util/winsock_event.c
531
l = sizeof(b);
sbin/unwind/libunbound/util/winsock_event.c
533
(void*)&b, &l) != 0)
sbin/unwind/libunbound/util/winsock_event.c
536
if(b) /* TCP accept socket */
sbin/unwind/libunbound/util/winsock_event.c
54
const struct event *f = (const struct event*)b;
sbin/unwind/libunbound/util/winsock_event.h
247
int mini_ev_cmp(const void* a, const void* b);
sbin/unwind/libunbound/validator/autotrust.c
1366
dnskey_compare_skip_revbit(uint8_t* a, size_t a_len, uint8_t* b, size_t b_len)
sbin/unwind/libunbound/validator/autotrust.c
1376
rdf2 = b[i];
sbin/unwind/libunbound/validator/autotrust.c
1391
ta_compare(struct autr_ta* a, uint16_t t, uint8_t* b, size_t b_len)
sbin/unwind/libunbound/validator/autotrust.c
1394
else if(!b) return -1;
sbin/unwind/libunbound/validator/autotrust.c
1402
a->dname_len), b, b_len);
sbin/unwind/libunbound/validator/autotrust.c
1409
a->rr_len, a->dname_len), b, b_len);
sbin/unwind/libunbound/validator/autotrust.c
95
struct trust_anchor* b = (struct trust_anchor*)y;
sbin/unwind/libunbound/validator/autotrust.c
96
log_assert(a->autr && b->autr);
sbin/unwind/libunbound/validator/autotrust.c
97
if(a->autr->next_probe_time < b->autr->next_probe_time)
sbin/unwind/libunbound/validator/autotrust.c
99
if(a->autr->next_probe_time > b->autr->next_probe_time)
sbin/unwind/libunbound/validator/val_anchor.c
1024
char b[LDNS_MAX_DOMAINLEN];
sbin/unwind/libunbound/validator/val_anchor.c
1025
dname_str(ta->name, b);
sbin/unwind/libunbound/validator/val_anchor.c
1034
")", b);
sbin/unwind/libunbound/validator/val_neg.c
65
int val_neg_data_compare(const void* a, const void* b)
sbin/unwind/libunbound/validator/val_neg.c
68
struct val_neg_data* y = (struct val_neg_data*)b;
sbin/unwind/libunbound/validator/val_neg.c
73
int val_neg_zone_compare(const void* a, const void* b)
sbin/unwind/libunbound/validator/val_neg.c
76
struct val_neg_zone* y = (struct val_neg_zone*)b;
sbin/unwind/libunbound/validator/val_neg.h
196
int val_neg_data_compare(const void* a, const void* b);
sbin/unwind/libunbound/validator/val_neg.h
201
int val_neg_zone_compare(const void* a, const void* b);
sbin/unwind/libunbound/validator/val_sigcrypt.c
299
sldns_buffer* b = env->scratch_buffer;
sbin/unwind/libunbound/validator/val_sigcrypt.c
307
sldns_buffer_clear(b);
sbin/unwind/libunbound/validator/val_sigcrypt.c
308
sldns_buffer_write(b, dnskey_rrset->rk.dname,
sbin/unwind/libunbound/validator/val_sigcrypt.c
310
query_dname_tolower(sldns_buffer_begin(b));
sbin/unwind/libunbound/validator/val_sigcrypt.c
311
sldns_buffer_write(b, dnskey_rdata+2, dnskey_len-2); /* skip rdatalen*/
sbin/unwind/libunbound/validator/val_sigcrypt.c
312
sldns_buffer_flip(b);
sbin/unwind/libunbound/validator/val_sigcrypt.c
315
(unsigned char*)sldns_buffer_begin(b), sldns_buffer_limit(b),
sbin/unwind/libunbound/validator/validator.c
251
char b[LDNS_MAX_DOMAINLEN];
sbin/unwind/libunbound/validator/validator.c
252
dname_str(anchor->name, b);
sbin/unwind/libunbound/validator/validator.c
253
log_warn("validator: disable-edns-do is enabled, but there is a trust anchor for '%s'. Since DNSSEC could not work, the disable-edns-do setting is turned off. Continuing without it.", b);
sbin/unwind/resolver.c
1714
struct uw_forwarder *a, *b;
sbin/unwind/resolver.c
1717
b = TAILQ_FIRST(list_b);
sbin/unwind/resolver.c
1719
while(a != NULL && b != NULL) {
sbin/unwind/resolver.c
1720
if (strcmp(a->ip, b->ip) != 0)
sbin/unwind/resolver.c
1722
if (a->port != b->port)
sbin/unwind/resolver.c
1724
if (strcmp(a->auth_name, b->auth_name) != 0)
sbin/unwind/resolver.c
1727
b = TAILQ_NEXT(b, entry);
sbin/unwind/resolver.c
1730
if (a != NULL || b != NULL)
sbin/unwind/resolver.c
1784
const enum uw_resolver_type b = *(const enum uw_resolver_type *)_b;
sbin/unwind/resolver.c
1787
if (resolvers[a] == NULL && resolvers[b] == NULL)
sbin/unwind/resolver.c
1790
if (resolvers[b] == NULL)
sbin/unwind/resolver.c
1796
if (resolvers[a]->state < resolvers[b]->state)
sbin/unwind/resolver.c
1798
else if (resolvers[a]->state > resolvers[b]->state)
sbin/unwind/resolver.c
1802
b_median = resolvers[b]->median;
sbin/unwind/resolver.c
1805
else if (resolvers[b]->type == resolver_conf->res_pref.types[0])
sbin/unwind/resolver.c
2146
force_tree_cmp(struct force_tree_entry *a, struct force_tree_entry *b)
sbin/unwind/resolver.c
2148
return strcasecmp(a->domain, b->domain);
sbin/wsconsctl/keysym.c
100
i=((struct ksym *) a)->enc - ((struct ksym *) b)->enc;
sbin/wsconsctl/keysym.c
88
cmp_name(const void *a, const void *b)
sbin/wsconsctl/keysym.c
90
return(strcmp(((struct ksym *) a)->name, ((struct ksym *) b)->name));
sbin/wsconsctl/keysym.c
94
cmp_ksym(const void *a, const void *b)
sbin/wsconsctl/keysym.c
98
i=((struct ksym *) b)->value - ((struct ksym *) a)->value;
sys/arch/alpha/alpha/api_up1000.c
163
struct bootdev_data *b = bootdev_data;
sys/arch/alpha/alpha/api_up1000.c
172
scsiboot = (strcmp(b->protocol, "SCSI") == 0);
sys/arch/alpha/alpha/api_up1000.c
173
netboot = (strcmp(b->protocol, "BOOTP") == 0) ||
sys/arch/alpha/alpha/api_up1000.c
174
(strcmp(b->protocol, "MOP") == 0);
sys/arch/alpha/alpha/api_up1000.c
180
ideboot = (strcmp(b->protocol, "IDE") == 0);
sys/arch/alpha/alpha/api_up1000.c
192
if ((b->slot / 1000) != pba->pba_bus)
sys/arch/alpha/alpha/api_up1000.c
207
if (b->slot % 1000 / 100 != pa->pa_function)
sys/arch/alpha/alpha/api_up1000.c
209
if (b->slot % 100 != pa->pa_device)
sys/arch/alpha/alpha/api_up1000.c
227
if (b->unit / 100 != sa->sa_sc_link->target)
sys/arch/alpha/alpha/api_up1000.c
232
switch (b->boot_dev_type) {
sys/arch/alpha/alpha/api_up1000.c
266
b->unit, b->channel));
sys/arch/alpha/alpha/api_up1000.c
267
if (b->unit != aa_link->aa_drv_data->drive ||
sys/arch/alpha/alpha/api_up1000.c
268
b->channel != aa_link->aa_channel)
sys/arch/alpha/alpha/api_up1000.c
283
if ((b->slot % 1000) != pa->pa_device)
sys/arch/alpha/alpha/dec_1000a.c
234
struct bootdev_data *b = bootdev_data;
sys/arch/alpha/alpha/dec_1000a.c
243
diskboot = (strncasecmp(b->protocol, "SCSI", 4) == 0);
sys/arch/alpha/alpha/dec_1000a.c
244
netboot = (strncasecmp(b->protocol, "BOOTP", 5) == 0) ||
sys/arch/alpha/alpha/dec_1000a.c
245
(strncasecmp(b->protocol, "MOP", 3) == 0);
sys/arch/alpha/alpha/dec_1000a.c
258
if ((b->slot / 1000) != pba->pba_bus)
sys/arch/alpha/alpha/dec_1000a.c
278
if (b->slot != slot)
sys/arch/alpha/alpha/dec_1000a.c
310
if (b->unit != unit)
sys/arch/alpha/alpha/dec_2100_a50.c
183
struct bootdev_data *b = bootdev_data;
sys/arch/alpha/alpha/dec_2100_a50.c
192
diskboot = (strncasecmp(b->protocol, "SCSI", 4) == 0);
sys/arch/alpha/alpha/dec_2100_a50.c
193
netboot = (strncasecmp(b->protocol, "BOOTP", 5) == 0) ||
sys/arch/alpha/alpha/dec_2100_a50.c
194
(strncasecmp(b->protocol, "MOP", 3) == 0);
sys/arch/alpha/alpha/dec_2100_a50.c
207
if ((b->slot / 1000) != pba->pba_bus)
sys/arch/alpha/alpha/dec_2100_a50.c
227
if (b->slot != slot)
sys/arch/alpha/alpha/dec_2100_a50.c
259
if (b->unit != unit)
sys/arch/alpha/alpha/dec_3000_300.c
156
struct bootdev_data *b = bootdev_data;
sys/arch/alpha/alpha/dec_3000_300.c
165
scsiboot = (strcmp(b->protocol, "SCSI") == 0);
sys/arch/alpha/alpha/dec_3000_300.c
166
netboot = (strcmp(b->protocol, "BOOTP") == 0) ||
sys/arch/alpha/alpha/dec_3000_300.c
167
(strcmp(b->protocol, "MOP") == 0);
sys/arch/alpha/alpha/dec_3000_300.c
183
if (b->slot != tcargs->ta_slot)
sys/arch/alpha/alpha/dec_3000_300.c
198
if (ta->tcdsda_chip != b->channel)
sys/arch/alpha/alpha/dec_3000_300.c
216
if (b->unit / 100 != sa->sa_sc_link->target)
sys/arch/alpha/alpha/dec_3000_300.c
221
switch (b->boot_dev_type) {
sys/arch/alpha/alpha/dec_3000_300.c
244
if (b->slot == 5 && strcmp(cd->cd_name, "le") == 0 &&
sys/arch/alpha/alpha/dec_3000_500.c
174
struct bootdev_data *b = bootdev_data;
sys/arch/alpha/alpha/dec_3000_500.c
183
scsiboot = (strcmp(b->protocol, "SCSI") == 0);
sys/arch/alpha/alpha/dec_3000_500.c
184
netboot = (strcmp(b->protocol, "BOOTP") == 0) ||
sys/arch/alpha/alpha/dec_3000_500.c
185
(strcmp(b->protocol, "MOP") == 0);
sys/arch/alpha/alpha/dec_3000_500.c
201
if (b->slot != tcargs->ta_slot)
sys/arch/alpha/alpha/dec_3000_500.c
216
if (ta->tcdsda_chip != b->channel)
sys/arch/alpha/alpha/dec_3000_500.c
234
if (b->unit / 100 != sa->sa_sc_link->target)
sys/arch/alpha/alpha/dec_3000_500.c
239
switch (b->boot_dev_type) {
sys/arch/alpha/alpha/dec_3000_500.c
262
if (b->slot == 7 && strcmp(cd->cd_name, "le") == 0 &&
sys/arch/alpha/alpha/dec_550.c
164
struct bootdev_data *b = bootdev_data;
sys/arch/alpha/alpha/dec_550.c
173
diskboot = (strncasecmp(b->protocol, "SCSI", 4) == 0) ||
sys/arch/alpha/alpha/dec_550.c
174
(strncasecmp(b->protocol, "IDE", 3) == 0);
sys/arch/alpha/alpha/dec_550.c
175
netboot = (strncasecmp(b->protocol, "BOOTP", 5) == 0) ||
sys/arch/alpha/alpha/dec_550.c
176
(strncasecmp(b->protocol, "MOP", 3) == 0);
sys/arch/alpha/alpha/dec_550.c
188
if ((b->slot / 1000) != pba->pba_bus)
sys/arch/alpha/alpha/dec_550.c
206
if (b->slot != slot)
sys/arch/alpha/alpha/dec_550.c
236
if (b->unit != unit)
sys/arch/alpha/alpha/dec_550.c
259
b->unit, b->channel));
sys/arch/alpha/alpha/dec_550.c
260
if (b->unit != aa_link->aa_drv_data->drive ||
sys/arch/alpha/alpha/dec_550.c
261
b->channel != aa_link->aa_channel)
sys/arch/alpha/alpha/dec_6600.c
191
struct bootdev_data *b = bootdev_data;
sys/arch/alpha/alpha/dec_6600.c
200
diskboot = (strncasecmp(b->protocol, "SCSI", 4) == 0) ||
sys/arch/alpha/alpha/dec_6600.c
201
(strncasecmp(b->protocol, "IDE", 3) == 0);
sys/arch/alpha/alpha/dec_6600.c
202
netboot = (strncasecmp(b->protocol, "BOOTP", 5) == 0) ||
sys/arch/alpha/alpha/dec_6600.c
203
(strncasecmp(b->protocol, "MOP", 3) == 0);
sys/arch/alpha/alpha/dec_6600.c
215
if (b->bus != tsp->tsp_slot)
sys/arch/alpha/alpha/dec_6600.c
241
if ((b->slot / 1000) != pba->pba_bus)
sys/arch/alpha/alpha/dec_6600.c
259
if (b->slot != slot)
sys/arch/alpha/alpha/dec_6600.c
289
if (b->unit != unit)
sys/arch/alpha/alpha/dec_6600.c
312
b->unit, b->channel));
sys/arch/alpha/alpha/dec_6600.c
313
if (b->unit != aa_link->aa_drv_data->drive ||
sys/arch/alpha/alpha/dec_6600.c
314
b->channel != aa_link->aa_channel)
sys/arch/alpha/alpha/dec_alphabook1.c
161
struct bootdev_data *b = bootdev_data;
sys/arch/alpha/alpha/dec_alphabook1.c
170
diskboot = (strncasecmp(b->protocol, "SCSI", 4) == 0);
sys/arch/alpha/alpha/dec_alphabook1.c
171
netboot = (strncasecmp(b->protocol, "BOOTP", 5) == 0) ||
sys/arch/alpha/alpha/dec_alphabook1.c
172
(strncasecmp(b->protocol, "MOP", 3) == 0);
sys/arch/alpha/alpha/dec_alphabook1.c
185
if ((b->slot / 1000) != pba->pba_bus)
sys/arch/alpha/alpha/dec_alphabook1.c
205
if (b->slot != slot)
sys/arch/alpha/alpha/dec_alphabook1.c
237
if (b->unit != unit)
sys/arch/alpha/alpha/dec_axppci_33.c
206
struct bootdev_data *b = bootdev_data;
sys/arch/alpha/alpha/dec_axppci_33.c
215
diskboot = (strncasecmp(b->protocol, "SCSI", 4) == 0);
sys/arch/alpha/alpha/dec_axppci_33.c
216
netboot = (strncasecmp(b->protocol, "BOOTP", 5) == 0) ||
sys/arch/alpha/alpha/dec_axppci_33.c
217
(strncasecmp(b->protocol, "MOP", 3) == 0);
sys/arch/alpha/alpha/dec_axppci_33.c
230
if ((b->slot / 1000) != pba->pba_bus)
sys/arch/alpha/alpha/dec_axppci_33.c
250
if (b->slot != slot)
sys/arch/alpha/alpha/dec_axppci_33.c
282
if (b->unit != unit)
sys/arch/alpha/alpha/dec_eb164.c
166
struct bootdev_data *b = bootdev_data;
sys/arch/alpha/alpha/dec_eb164.c
175
diskboot = (strncasecmp(b->protocol, "SCSI", 4) == 0) ||
sys/arch/alpha/alpha/dec_eb164.c
176
(strncasecmp(b->protocol, "IDE", 3) == 0);
sys/arch/alpha/alpha/dec_eb164.c
177
netboot = (strncasecmp(b->protocol, "BOOTP", 5) == 0) ||
sys/arch/alpha/alpha/dec_eb164.c
178
(strncasecmp(b->protocol, "MOP", 3) == 0);
sys/arch/alpha/alpha/dec_eb164.c
190
if ((b->slot / 1000) != pba->pba_bus)
sys/arch/alpha/alpha/dec_eb164.c
208
if (b->slot != slot)
sys/arch/alpha/alpha/dec_eb164.c
238
if (b->unit != unit)
sys/arch/alpha/alpha/dec_eb164.c
262
b->unit, b->channel));
sys/arch/alpha/alpha/dec_eb164.c
263
if (b->unit != aa_link->aa_drv_data->drive)
sys/arch/alpha/alpha/dec_eb164.c
276
b->slot == 0 * 1000 + 2 * 100 + 8) {
sys/arch/alpha/alpha/dec_eb164.c
279
if (b->channel != aa_link->aa_channel)
sys/arch/alpha/alpha/dec_eb64plus.c
163
struct bootdev_data *b = bootdev_data;
sys/arch/alpha/alpha/dec_eb64plus.c
172
diskboot = (strncasecmp(b->protocol, "SCSI", 4) == 0);
sys/arch/alpha/alpha/dec_eb64plus.c
173
netboot = (strncasecmp(b->protocol, "BOOTP", 5) == 0) ||
sys/arch/alpha/alpha/dec_eb64plus.c
174
(strncasecmp(b->protocol, "MOP", 3) == 0);
sys/arch/alpha/alpha/dec_eb64plus.c
187
if ((b->slot / 1000) != pba->pba_bus)
sys/arch/alpha/alpha/dec_eb64plus.c
207
if (b->slot != slot)
sys/arch/alpha/alpha/dec_eb64plus.c
239
if (b->unit != unit)
sys/arch/alpha/alpha/dec_kn20aa.c
163
struct bootdev_data *b = bootdev_data;
sys/arch/alpha/alpha/dec_kn20aa.c
172
diskboot = (strncasecmp(b->protocol, "SCSI", 4) == 0);
sys/arch/alpha/alpha/dec_kn20aa.c
173
netboot = (strncasecmp(b->protocol, "BOOTP", 5) == 0) ||
sys/arch/alpha/alpha/dec_kn20aa.c
174
(strncasecmp(b->protocol, "MOP", 3) == 0);
sys/arch/alpha/alpha/dec_kn20aa.c
187
if ((b->slot / 1000) != pba->pba_bus)
sys/arch/alpha/alpha/dec_kn20aa.c
207
if (b->slot != slot)
sys/arch/alpha/alpha/dec_kn20aa.c
239
if (b->unit != unit)
sys/arch/alpha/alpha/dec_kn300.c
203
struct bootdev_data *b = bootdev_data;
sys/arch/alpha/alpha/dec_kn300.c
212
diskboot = (strncasecmp(b->protocol, "SCSI", 4) == 0);
sys/arch/alpha/alpha/dec_kn300.c
213
netboot = (strncasecmp(b->protocol, "BOOTP", 5) == 0) ||
sys/arch/alpha/alpha/dec_kn300.c
214
(strncasecmp(b->protocol, "MOP", 3) == 0);
sys/arch/alpha/alpha/dec_kn300.c
216
DPRINTF(("proto:%s bus:%d slot:%d chan:%d", b->protocol,
sys/arch/alpha/alpha/dec_kn300.c
217
b->bus, b->slot, b->channel));
sys/arch/alpha/alpha/dec_kn300.c
218
if (b->remote_address)
sys/arch/alpha/alpha/dec_kn300.c
219
DPRINTF((" remote_addr:%s", b->remote_address));
sys/arch/alpha/alpha/dec_kn300.c
220
DPRINTF((" un:%d bdt:%d", b->unit, b->boot_dev_type));
sys/arch/alpha/alpha/dec_kn300.c
221
if (b->ctrl_dev_type)
sys/arch/alpha/alpha/dec_kn300.c
222
DPRINTF((" cdt:%s\n", b->ctrl_dev_type));
sys/arch/alpha/alpha/dec_kn300.c
235
if (b->bus != ma->ma_mid - 4)
sys/arch/alpha/alpha/dec_kn300.c
253
if ((b->slot / 1000) != pba->pba_bus)
sys/arch/alpha/alpha/dec_kn300.c
271
if (b->slot != slot)
sys/arch/alpha/alpha/dec_kn300.c
300
if (b->unit != unit)
sys/arch/alpha/alpha/fp_complete.c
194
compare_lt(float64 a, float64 b)
sys/arch/alpha/alpha/fp_complete.c
196
return CMP_RESULT(float64_lt(a, b));
sys/arch/alpha/alpha/fp_complete.c
200
compare_le(float64 a, float64 b)
sys/arch/alpha/alpha/fp_complete.c
202
return CMP_RESULT(float64_le(a, b));
sys/arch/alpha/alpha/fp_complete.c
206
compare_un(float64 a, float64 b)
sys/arch/alpha/alpha/fp_complete.c
208
if (float64_is_nan(a) | float64_is_nan(b)) {
sys/arch/alpha/alpha/fp_complete.c
209
if (float64_is_signaling_nan(a) | float64_is_signaling_nan(b))
sys/arch/alpha/alpha/fp_complete.c
217
compare_eq(float64 a, float64 b)
sys/arch/alpha/alpha/fp_complete.c
219
return CMP_RESULT(float64_eq(a, b));
sys/arch/alpha/alpha/fp_complete.c
422
float64_unk(float64 a, float64 b)
sys/arch/alpha/alpha/trap.c
741
u_int8_t b;
sys/arch/alpha/alpha/trap.c
744
if (copyin((caddr_t)memaddr, &b, sizeof (b)) != 0)
sys/arch/alpha/alpha/trap.c
747
*regptr = b;
sys/arch/alpha/alpha/trap.c
764
u_int8_t b;
sys/arch/alpha/alpha/trap.c
767
b = (regptr != NULL) ? *regptr : 0;
sys/arch/alpha/alpha/trap.c
768
if (copyout(&b, (caddr_t)memaddr, sizeof (b)) != 0)
sys/arch/alpha/alpha/trap.c
776
int8_t b;
sys/arch/alpha/alpha/trap.c
779
b = inst.operate_lit_format.literal;
sys/arch/alpha/alpha/trap.c
784
b = (regptr != NULL) ? *regptr : 0;
sys/arch/alpha/alpha/trap.c
789
*regptr = b;
sys/arch/alpha/include/asm.h
140
#define __CONCAT(a,b) a ## b
sys/arch/alpha/include/asm.h
142
#define __CONCAT(a,b) a/**/b
sys/arch/alpha/include/asm.h
144
#define ___CONCAT(a,b) __CONCAT(a,b)
sys/arch/alpha/include/bus.h
187
#define __abs_c(a,b) __CONCAT(a,b)
sys/arch/alpha/include/bus.h
233
#define bus_space_alloc(t, rs, re, s, a, b, c, ap, hp) \
sys/arch/alpha/include/bus.h
234
(*(t)->abs_alloc)((t)->abs_cookie, (rs), (re), (s), (a), (b), \
sys/arch/alpha/include/bus.h
602
#define alphabus_dma_get_tag(t, b) \
sys/arch/alpha/include/bus.h
603
(*(t)->_get_tag)(t, b)
sys/arch/alpha/include/bus.h
605
#define bus_dmamap_create(t, s, n, m, b, f, p) \
sys/arch/alpha/include/bus.h
606
(*(t)->_dmamap_create)((t), (s), (n), (m), (b), (f), (p))
sys/arch/alpha/include/bus.h
609
#define bus_dmamap_load(t, m, b, s, p, f) \
sys/arch/alpha/include/bus.h
610
(*(t)->_dmamap_load)((t), (m), (b), (s), (p), (f))
sys/arch/alpha/include/bus.h
611
#define bus_dmamap_load_mbuf(t, m, b, f) \
sys/arch/alpha/include/bus.h
612
(*(t)->_dmamap_load_mbuf)((t), (m), (b), (f))
sys/arch/alpha/include/bus.h
623
#define bus_dmamem_alloc(t, s, a, b, sg, n, r, f) \
sys/arch/alpha/include/bus.h
624
(*(t)->_dmamem_alloc)((t), (s), (a), (b), (sg), (n), (r), (f))
sys/arch/alpha/include/loadfile_machdep.h
40
#define READ(f, b, c) read((f), (void *)LOADADDR(b), (c))
sys/arch/alpha/include/loadfile_machdep.h
48
#define FREE(a, b) free(a, b)
sys/arch/alpha/pci/apecs_pci.c
83
apecs_make_tag(void *cpv, int b, int d, int f)
sys/arch/alpha/pci/apecs_pci.c
86
return (b << 16) | (d << 11) | (f << 8);
sys/arch/alpha/pci/cia_pci.c
81
cia_make_tag(void *cpv, int b, int d, int f)
sys/arch/alpha/pci/cia_pci.c
84
return (b << 16) | (d << 11) | (f << 8);
sys/arch/alpha/pci/irongate_pci.c
100
return (b << 16) | (d << 11) | (f << 8);
sys/arch/alpha/pci/irongate_pci.c
97
irongate_make_tag(void *ipv, int b, int d, int f)
sys/arch/alpha/pci/lca_pci.c
86
lca_make_tag(void *cpv, int b, int d, int f)
sys/arch/alpha/pci/lca_pci.c
89
return (b << 16) | (d << 11) | (f << 8);
sys/arch/alpha/pci/mcpcia_pci.c
83
mcpcia_make_tag(void *cpv, int b, int d, int f)
sys/arch/alpha/pci/mcpcia_pci.c
86
tag = (b << 21) | (d << 16) | (f << 13);
sys/arch/alpha/pci/pci_machdep.h
137
#define pci_dev_postattach(a, b)
sys/arch/alpha/pci/pci_machdep.h
94
#define pci_bus_maxdevs(c, b) \
sys/arch/alpha/pci/pci_machdep.h
95
(*(c)->pc_bus_maxdevs)((c)->pc_conf_v, (b))
sys/arch/alpha/pci/pci_machdep.h
96
#define pci_make_tag(c, b, d, f) \
sys/arch/alpha/pci/pci_machdep.h
97
(*(c)->pc_make_tag)((c)->pc_conf_v, (b), (d), (f))
sys/arch/alpha/pci/tsp_dma.c
87
#define EDIFF(a, b) (((a) | WSBA_ENA | WSBA_SG) != ((b) | WSBA_ENA | WSBA_SG))
sys/arch/alpha/pci/tsp_pci.c
89
tsp_make_tag(void *cpv, int b, int d, int f)
sys/arch/alpha/pci/tsp_pci.c
91
return b << 16 | d << 11 | f << 8;
sys/arch/amd64/amd64/pmap.c
218
#define pmap_pte_clearbits(p, b) x86_atomic_clearbits_u64(p, b)
sys/arch/amd64/amd64/pmap.c
219
#define pmap_pte_setbits(p, b) x86_atomic_setbits_u64(p, b)
sys/arch/amd64/amd64/process_machdep.c
254
uint32_t a, b, c, d;
sys/arch/amd64/amd64/process_machdep.c
272
CPUID_LEAF(0xd, 2, a, b, c, d);
sys/arch/amd64/amd64/process_machdep.c
273
if (offset_extended_region == b &&
sys/arch/amd64/amd64/ucode.c
124
uint32_t b;
sys/arch/amd64/include/biosvar.h
79
#define BIOS32_MAKESIG(a, b, c, d) \
sys/arch/amd64/include/biosvar.h
80
((a) | ((b) << 8) | ((c) << 16) | ((d) << 24))
sys/arch/amd64/include/bus.h
613
#define bus_dmamap_create(t, s, n, m, b, f, p) \
sys/arch/amd64/include/bus.h
614
(*(t)->_dmamap_create)((t), (s), (n), (m), (b), (f), (p))
sys/arch/amd64/include/bus.h
617
#define bus_dmamap_load(t, m, b, s, p, f) \
sys/arch/amd64/include/bus.h
618
(*(t)->_dmamap_load)((t), (m), (b), (s), (p), (f))
sys/arch/amd64/include/bus.h
619
#define bus_dmamap_load_mbuf(t, m, b, f) \
sys/arch/amd64/include/bus.h
620
(*(t)->_dmamap_load_mbuf)((t), (m), (b), (f))
sys/arch/amd64/include/bus.h
630
#define bus_dmamem_alloc(t, s, a, b, sg, n, r, f) \
sys/arch/amd64/include/bus.h
631
(*(t)->_dmamem_alloc)((t), (s), (a), (b), (sg), (n), (r), (f))
sys/arch/amd64/include/bus.h
632
#define bus_dmamem_alloc_range(t, s, a, b, sg, n, r, f, l, h) \
sys/arch/amd64/include/bus.h
633
(*(t)->_dmamem_alloc_range)((t), (s), (a), (b), (sg), \
sys/arch/amd64/include/codepatch.h
49
.quad startnum##b ;\
sys/arch/amd64/include/codepatch.h
50
.short (999b - startnum##b) ;\
sys/arch/amd64/include/loadfile_machdep.h
51
#define READ(f, b, c) read((f), (void *)LOADADDR(b), (c))
sys/arch/amd64/include/loadfile_machdep.h
59
#define FREE(a, b) free(a, b)
sys/arch/amd64/stand/libsa/time.c
100
biosdate(u_int8_t *b)
sys/arch/amd64/stand/libsa/time.c
102
return bios_time_date(4 << 8, b);
sys/arch/amd64/stand/libsa/time.c
106
biostime(u_int8_t *b)
sys/arch/amd64/stand/libsa/time.c
108
return bios_time_date(2 << 8, b);
sys/arch/amd64/stand/libsa/time.c
77
bios_time_date(int f, u_int8_t *b)
sys/arch/amd64/stand/libsa/time.c
86
: "0" (f), "r" (b) : "%ecx", "%edx", "cc");
sys/arch/amd64/stand/libsa/time.c
91
b[0] = bcdtoint(b[0]);
sys/arch/amd64/stand/libsa/time.c
92
b[1] = bcdtoint(b[1]);
sys/arch/amd64/stand/libsa/time.c
93
b[2] = bcdtoint(b[2]);
sys/arch/amd64/stand/libsa/time.c
94
b[3] = bcdtoint(b[3]);
sys/arch/arm/include/bus.h
215
#define __bs_c(a,b) __CONCAT(a,b)
sys/arch/arm/include/bus.h
243
#define bus_space_alloc(t, rs, re, s, a, b, c, ap, hp) \
sys/arch/arm/include/bus.h
244
(*(t)->bs_alloc)((t)->bs_cookie, (rs), (re), (s), (a), (b), \
sys/arch/arm/include/bus.h
715
#define bus_dmamap_create(t, s, n, m, b, f, p) \
sys/arch/arm/include/bus.h
716
(*(t)->_dmamap_create)((t), (s), (n), (m), (b), (f), (p))
sys/arch/arm/include/bus.h
719
#define bus_dmamap_load(t, m, b, s, p, f) \
sys/arch/arm/include/bus.h
720
(*(t)->_dmamap_load)((t), (m), (b), (s), (p), (f))
sys/arch/arm/include/bus.h
721
#define bus_dmamap_load_mbuf(t, m, b, f) \
sys/arch/arm/include/bus.h
722
(*(t)->_dmamap_load_mbuf)((t), (m), (b), (f))
sys/arch/arm/include/bus.h
733
#define bus_dmamem_alloc(t, s, a, b, sg, n, r, f) \
sys/arch/arm/include/bus.h
734
(*(t)->_dmamem_alloc)((t), (s), (a), (b), (sg), (n), (r), (f))
sys/arch/arm/include/bus.h
735
#define bus_dmamem_alloc_range(t, s, a, b, sg, n, r, f, l, h) \
sys/arch/arm/include/bus.h
736
(*(t)->_dmamem_alloc_range)((t), (s), (a), (b), (sg), \
sys/arch/arm/include/frame.h
196
b ast /* ast(frame) */ ;\
sys/arch/arm/include/pci_machdep.h
109
#define pci_dev_postattach(a, b)
sys/arch/arm/include/pci_machdep.h
75
#define pci_bus_maxdevs(c, b) \
sys/arch/arm/include/pci_machdep.h
76
(*(c)->pc_bus_maxdevs)((c)->pc_conf_v, (b))
sys/arch/arm/include/pci_machdep.h
77
#define pci_make_tag(c, b, d, f) \
sys/arch/arm/include/pci_machdep.h
78
(*(c)->pc_make_tag)((c)->pc_conf_v, (b), (d), (f))
sys/arch/arm64/arm64/disasm.c
101
OPFUNC_DECL(func, a, b, c, d, e, f, g, \
sys/arch/arm64/arm64/disasm.c
103
#define OP8FUNC(func, a, b, c, d, e, f, g, h) \
sys/arch/arm64/arm64/disasm.c
105
OPFUNC_DECL(func, a, b, c, d, e, f, g, h)
sys/arch/arm64/arm64/disasm.c
53
#define OPFUNC_DECL(func, a, b, c, d, e, f, g, h) \
sys/arch/arm64/arm64/disasm.c
55
uint64_t a, uint64_t b, uint64_t c, uint64_t d, \
sys/arch/arm64/arm64/disasm.c
77
#define OP2FUNC(func, a, b) \
sys/arch/arm64/arm64/disasm.c
79
OPFUNC_DECL(func, a, b, \
sys/arch/arm64/arm64/disasm.c
82
#define OP3FUNC(func, a, b, c) \
sys/arch/arm64/arm64/disasm.c
84
OPFUNC_DECL(func, a, b, c, \
sys/arch/arm64/arm64/disasm.c
87
#define OP4FUNC(func, a, b, c, d) \
sys/arch/arm64/arm64/disasm.c
89
OPFUNC_DECL(func, a, b, c, d, \
sys/arch/arm64/arm64/disasm.c
91
#define OP5FUNC(func, a, b, c, d, e) \
sys/arch/arm64/arm64/disasm.c
93
OPFUNC_DECL( func, a, b, c, d, e, \
sys/arch/arm64/arm64/disasm.c
95
#define OP6FUNC(func, a, b, c, d, e, f) \
sys/arch/arm64/arm64/disasm.c
97
OPFUNC_DECL(func, a, b, c, d, e, f, \
sys/arch/arm64/arm64/disasm.c
99
#define OP7FUNC(func, a, b, c, d, e, f, g) \
sys/arch/arm64/include/bus.h
113
#define bus_space_read_raw_multi_2(t, h, a, b, l) \
sys/arch/arm64/include/bus.h
114
(*(t)->_space_read_raw_2)((t), (h), (a), (b), (l))
sys/arch/arm64/include/bus.h
115
#define bus_space_read_raw_multi_4(t, h, a, b, l) \
sys/arch/arm64/include/bus.h
116
(*(t)->_space_read_raw_4)((t), (h), (a), (b), (l))
sys/arch/arm64/include/bus.h
117
#define bus_space_read_raw_multi_8(t, h, a, b, l) \
sys/arch/arm64/include/bus.h
118
(*(t)->_space_read_raw_8)((t), (h), (a), (b), (l))
sys/arch/arm64/include/bus.h
120
#define bus_space_write_raw_multi_2(t, h, a, b, l) \
sys/arch/arm64/include/bus.h
121
(*(t)->_space_write_raw_2)((t), (h), (a), (b), (l))
sys/arch/arm64/include/bus.h
122
#define bus_space_write_raw_multi_4(t, h, a, b, l) \
sys/arch/arm64/include/bus.h
123
(*(t)->_space_write_raw_4)((t), (h), (a), (b), (l))
sys/arch/arm64/include/bus.h
124
#define bus_space_write_raw_multi_8(t, h, a, b, l) \
sys/arch/arm64/include/bus.h
125
(*(t)->_space_write_raw_8)((t), (h), (a), (b), (l))
sys/arch/arm64/include/bus.h
30
#define CAT(a,b) a##b
sys/arch/arm64/include/bus.h
31
#define CAT3(a,b,c) a##b##c
sys/arch/arm64/include/bus.h
33
#define CAT(a,b) a/**/b
sys/arch/arm64/include/bus.h
34
#define CAT3(a,b,c) a/**/b/**/c
sys/arch/arm64/include/bus.h
422
#define bus_dmamap_create(t, s, n, m, b, f, p) \
sys/arch/arm64/include/bus.h
423
(*(t)->_dmamap_create)((t), (s), (n), (m), (b), (f), (p))
sys/arch/arm64/include/bus.h
426
#define bus_dmamap_load(t, m, b, s, p, f) \
sys/arch/arm64/include/bus.h
427
(*(t)->_dmamap_load)((t), (m), (b), (s), (p), (f))
sys/arch/arm64/include/bus.h
428
#define bus_dmamap_load_mbuf(t, m, b, f) \
sys/arch/arm64/include/bus.h
429
(*(t)->_dmamap_load_mbuf)((t), (m), (b), (f))
sys/arch/arm64/include/bus.h
440
#define bus_dmamem_alloc(t, s, a, b, sg, n, r, f) \
sys/arch/arm64/include/bus.h
441
(*(t)->_dmamem_alloc)((t), (s), (a), (b), (sg), (n), (r), (f))
sys/arch/arm64/include/bus.h
442
#define bus_dmamem_alloc_range(t, s, a, b, sg, n, r, f, l, h) \
sys/arch/arm64/include/bus.h
443
(*(t)->_dmamem_alloc_range)((t), (s), (a), (b), (sg), \
sys/arch/arm64/include/loadfile_machdep.h
43
#define READ(f, b, c) read((f), (void *)LOADADDR(b), (c))
sys/arch/arm64/include/loadfile_machdep.h
51
#define FREE(a, b) free(a, b)
sys/arch/arm64/include/pci_machdep.h
125
#define pci_dev_postattach(a, b)
sys/arch/arm64/include/pci_machdep.h
89
#define pci_bus_maxdevs(c, b) \
sys/arch/arm64/include/pci_machdep.h
90
(*(c)->pc_bus_maxdevs)((c)->pc_conf_v, (b))
sys/arch/arm64/include/pci_machdep.h
91
#define pci_make_tag(c, b, d, f) \
sys/arch/arm64/include/pci_machdep.h
92
(*(c)->pc_make_tag)((c)->pc_conf_v, (b), (d), (f))
sys/arch/armv7/exynos/crosecvar.h
34
#define min(a,b) (((a)<(b))?(a):(b))
sys/arch/armv7/exynos/ec_commands.h
622
uint8_t r, g, b;
sys/arch/armv7/include/loadfile_machdep.h
43
#define READ(f, b, c) read((f), (void *)LOADADDR(b), (c))
sys/arch/armv7/include/loadfile_machdep.h
51
#define FREE(a, b) free(a, b)
sys/arch/armv7/marvell/mvpcie.c
56
#define PCIE_CONF_BUS(b) (((b) & 0xff) << 16)
sys/arch/hppa/dev/astro.c
576
iomap_compare(struct iommu_page_entry *a, struct iommu_page_entry *b)
sys/arch/hppa/dev/astro.c
578
return ((a->ipe_pa > b->ipe_pa) ? 1 :
sys/arch/hppa/dev/astro.c
579
(a->ipe_pa < b->ipe_pa) ? -1 : 0);
sys/arch/hppa/include/asm.h
223
#define __CONCAT(a,b) a ## b
sys/arch/hppa/include/asm.h
225
#define __CONCAT(a,b) a/**/b
sys/arch/hppa/include/bus.h
176
#define bus_space_alloc(t,b,e,c,al,bn,ca,ap,hp) \
sys/arch/hppa/include/bus.h
177
(((t)->hbt_alloc)((t)->hbt_cookie,(b),(e),(c),(al),(bn),(ca),(ap),(hp)))
sys/arch/hppa/include/bus.h
373
#define bus_dmamap_create(t, s, n, m, b, f, p) \
sys/arch/hppa/include/bus.h
374
(*(t)->_dmamap_create)((t)->_cookie, (s), (n), (m), (b), (f), (p))
sys/arch/hppa/include/bus.h
377
#define bus_dmamap_load(t, m, b, s, p, f) \
sys/arch/hppa/include/bus.h
378
(*(t)->_dmamap_load)((t)->_cookie, (m), (b), (s), (p), (f))
sys/arch/hppa/include/bus.h
379
#define bus_dmamap_load_mbuf(t, m, b, f) \
sys/arch/hppa/include/bus.h
380
(*(t)->_dmamap_load_mbuf)((t)->_cookie, (m), (b), (f))
sys/arch/hppa/include/bus.h
391
#define bus_dmamem_alloc(t, s, a, b, sg, n, r, f) \
sys/arch/hppa/include/bus.h
392
(*(t)->_dmamem_alloc)((t)->_cookie, (s), (a), (b), (sg), (n), (r), (f))
sys/arch/hppa/include/cpufunc.h
191
register int b;
sys/arch/hppa/include/cpufunc.h
192
for (b = 0x80; b; b >>= 1) {
sys/arch/hppa/include/cpufunc.h
193
*machine_ledaddr = (r & b)? PALED_DATA : 0;
sys/arch/hppa/include/cpufunc.h
195
*machine_ledaddr = ((r & b)? PALED_DATA : 0) |
sys/arch/hppa/include/cpufunc.h
63
#define tlbbtop(b) ((b) >> (PAGE_SHIFT - 5))
sys/arch/hppa/include/cpufunc.h
66
#define hptbtop(b) ((b) >> 17)
sys/arch/hppa/include/db_machdep.h
78
next_instr_address(vaddr_t addr, int b) {
sys/arch/hppa/include/disklabel.h
125
#define btolifs(b) (((b) + (LIF_SECTSIZE - 1)) / LIF_SECTSIZE)
sys/arch/hppa/include/loadfile_machdep.h
49
#define READ(f, b, c) pread((f), (void *)LOADADDR(b), (c))
sys/arch/hppa/include/loadfile_machdep.h
57
#define FREE(a, b) free(a, b)
sys/arch/hppa/include/loadfile_machdep.h
67
#define READ(f, b, c) read((f), (void *)LOADADDR(b), (c))
sys/arch/hppa/include/loadfile_machdep.h
73
#define FREE(a, b) free(a)
sys/arch/hppa/include/pci_machdep.h
100
#define pci_dev_postattach(a, b)
sys/arch/hppa/include/pci_machdep.h
69
#define pci_bus_maxdevs(c, b) \
sys/arch/hppa/include/pci_machdep.h
70
(*(c)->pc_bus_maxdevs)((c)->_cookie, (b))
sys/arch/hppa/include/pci_machdep.h
71
#define pci_make_tag(c, b, d, f) \
sys/arch/hppa/include/pci_machdep.h
72
(*(c)->pc_make_tag)((c)->_cookie, (b), (d), (f))
sys/arch/hppa/include/pci_machdep.h
97
#define pciide_machdep_compat_intr_establish(a, b, c, d, e) (NULL)
sys/arch/hppa/include/pci_machdep.h
98
#define pciide_machdep_compat_intr_disestablish(a, b) ((void)(a), (void)(b))
sys/arch/i386/i386/ucode.c
147
uint32_t b;
sys/arch/i386/include/biosvar.h
107
#define BIOS32_MAKESIG(a, b, c, d) \
sys/arch/i386/include/biosvar.h
108
((a) | ((b) << 8) | ((c) << 16) | ((d) << 24))
sys/arch/i386/include/bus.h
613
#define bus_dmamap_create(t, s, n, m, b, f, p) \
sys/arch/i386/include/bus.h
614
(*(t)->_dmamap_create)((t), (s), (n), (m), (b), (f), (p))
sys/arch/i386/include/bus.h
617
#define bus_dmamap_load(t, m, b, s, p, f) \
sys/arch/i386/include/bus.h
618
(*(t)->_dmamap_load)((t), (m), (b), (s), (p), (f))
sys/arch/i386/include/bus.h
619
#define bus_dmamap_load_mbuf(t, m, b, f) \
sys/arch/i386/include/bus.h
620
(*(t)->_dmamap_load_mbuf)((t), (m), (b), (f))
sys/arch/i386/include/bus.h
630
#define bus_dmamem_alloc(t, s, a, b, sg, n, r, f) \
sys/arch/i386/include/bus.h
631
(*(t)->_dmamem_alloc)((t), (s), (a), (b), (sg), (n), (r), (f))
sys/arch/i386/include/bus.h
632
#define bus_dmamem_alloc_range(t, s, a, b, sg, n, r, f, l, h) \
sys/arch/i386/include/bus.h
633
(*(t)->_dmamem_alloc_range)((t), (s), (a), (b), (sg), \
sys/arch/i386/include/loadfile_machdep.h
45
#define READ(f, b, c) read((f), (void *)LOADADDR(b), (size_t)(c))
sys/arch/i386/include/loadfile_machdep.h
53
#define FREE(a, b) free(a, b)
sys/arch/i386/isa/clock.c
260
#define _swap_val(a, b) do { \
sys/arch/i386/isa/clock.c
262
a = b; \
sys/arch/i386/isa/clock.c
263
b = c; \
sys/arch/i386/pci/amd756.c
226
int a, b;
sys/arch/i386/pci/amd756.c
231
b = AMD756_GET_PIIRQSEL(ph);
sys/arch/i386/pci/amd756.c
233
printf ("TRIGGER: %02x, ROUTING: %04x\n", a, b);
sys/arch/i386/pci/pci_machdep.c
151
#define _m1tag(b, d, f) \
sys/arch/i386/pci/pci_machdep.c
152
(PCI_MODE1_ENABLE | ((b) << 16) | ((d) << 11) | ((f) << 8))
sys/arch/i386/pci/via8231.c
300
int a, b;
sys/arch/i386/pci/via8231.c
303
b = VIA8231_GET_ROUTING(ph);
sys/arch/i386/pci/via8231.c
305
printf("%s STATE: trigger(%02x), routing(%08x)\n", m, a, b);
sys/arch/i386/stand/libsa/time.c
100
biosdate(u_int8_t *b)
sys/arch/i386/stand/libsa/time.c
102
return bios_time_date(4 << 8, b);
sys/arch/i386/stand/libsa/time.c
106
biostime(u_int8_t *b)
sys/arch/i386/stand/libsa/time.c
108
return bios_time_date(2 << 8, b);
sys/arch/i386/stand/libsa/time.c
77
bios_time_date(int f, u_int8_t *b)
sys/arch/i386/stand/libsa/time.c
86
: "0" (f), "r" (b) : "%ecx", "%edx", "cc");
sys/arch/i386/stand/libsa/time.c
91
b[0] = bcdtoint(b[0]);
sys/arch/i386/stand/libsa/time.c
92
b[1] = bcdtoint(b[1]);
sys/arch/i386/stand/libsa/time.c
93
b[2] = bcdtoint(b[2]);
sys/arch/i386/stand/libsa/time.c
94
b[3] = bcdtoint(b[3]);
sys/arch/landisk/include/bus.h
223
#define __bs_c(a,b) __CONCAT(a,b)
sys/arch/landisk/include/bus.h
262
#define bus_space_alloc(t, rs, re, s, a, b, f, ap, hp) \
sys/arch/landisk/include/bus.h
263
(*(t)->bs_alloc)((t)->bs_cookie, (rs), (re), (s), (a), (b), \
sys/arch/landisk/include/bus.h
515
#define bus_dmamap_create(t, s, n, m, b, f, p) \
sys/arch/landisk/include/bus.h
516
(*(t)->_dmamap_create)((t), (s), (n), (m), (b), (f), (p))
sys/arch/landisk/include/bus.h
519
#define bus_dmamap_load(t, m, b, s, p, f) \
sys/arch/landisk/include/bus.h
520
(*(t)->_dmamap_load)((t), (m), (b), (s), (p), (f))
sys/arch/landisk/include/bus.h
521
#define bus_dmamap_load_mbuf(t, m, b, f) \
sys/arch/landisk/include/bus.h
522
(*(t)->_dmamap_load_mbuf)((t), (m), (b), (f))
sys/arch/landisk/include/bus.h
533
#define bus_dmamem_alloc(t, s, a, b, sg, n, r, f) \
sys/arch/landisk/include/bus.h
534
(*(t)->_dmamem_alloc)((t), (s), (a), (b), (sg), (n), (r), (f))
sys/arch/landisk/include/loadfile_machdep.h
41
#define READ(f, b, c) read((f), (void *)LOADADDR(b), (c))
sys/arch/landisk/include/loadfile_machdep.h
49
#define FREE(a, b) free(a, b)
sys/arch/landisk/include/pci_machdep.h
91
#define pci_dev_postattach(a, b)
sys/arch/loongson/dev/bonito.c
1220
bonito_make_tag_early(int b, int d, int f)
sys/arch/loongson/dev/bonito.c
1222
return bonito_make_tag(NULL, b, d, f);
sys/arch/loongson/dev/bonito.c
763
bonito_make_tag(void *unused, int b, int d, int f)
sys/arch/loongson/dev/bonito.c
765
return (b << 16) | (d << 11) | (f << 8);
sys/arch/loongson/dev/bonito.c
783
int b, d, f;
sys/arch/loongson/dev/bonito.c
785
bonito_decompose_tag(NULL, tag, &b, &d, &f);
sys/arch/loongson/dev/bonito.c
787
if (b == 0) {
sys/arch/loongson/dev/htb.c
246
htb_make_tag(void *unused, int b, int d, int f)
sys/arch/loongson/dev/htb.c
248
return (b << 16) | (d << 11) | (f << 8);
sys/arch/loongson/dev/htb.c
434
htb_make_tag_early(int b, int d, int f)
sys/arch/loongson/dev/htb.c
436
return htb_make_tag(NULL, b, d, f);
sys/arch/loongson/include/bus.h
100
(*(t)->_space_read_raw_2)((t), (h), (a), (b), (l))
sys/arch/loongson/include/bus.h
101
#define bus_space_read_raw_multi_4(t, h, a, b, l) \
sys/arch/loongson/include/bus.h
102
(*(t)->_space_read_raw_4)((t), (h), (a), (b), (l))
sys/arch/loongson/include/bus.h
103
#define bus_space_read_raw_multi_8(t, h, a, b, l) \
sys/arch/loongson/include/bus.h
104
(*(t)->_space_read_raw_8)((t), (h), (a), (b), (l))
sys/arch/loongson/include/bus.h
106
#define bus_space_write_raw_multi_2(t, h, a, b, l) \
sys/arch/loongson/include/bus.h
107
(*(t)->_space_write_raw_2)((t), (h), (a), (b), (l))
sys/arch/loongson/include/bus.h
108
#define bus_space_write_raw_multi_4(t, h, a, b, l) \
sys/arch/loongson/include/bus.h
109
(*(t)->_space_write_raw_4)((t), (h), (a), (b), (l))
sys/arch/loongson/include/bus.h
110
#define bus_space_write_raw_multi_8(t, h, a, b, l) \
sys/arch/loongson/include/bus.h
111
(*(t)->_space_write_raw_8)((t), (h), (a), (b), (l))
sys/arch/loongson/include/bus.h
31
#define CAT(a,b) a##b
sys/arch/loongson/include/bus.h
32
#define CAT3(a,b,c) a##b##c
sys/arch/loongson/include/bus.h
34
#define CAT(a,b) a/**/b
sys/arch/loongson/include/bus.h
35
#define CAT3(a,b,c) a/**/b/**/c
sys/arch/loongson/include/bus.h
434
#define bus_dmamap_create(t, s, n, m, b, f, p) \
sys/arch/loongson/include/bus.h
435
(*(t)->_dmamap_create)((t), (s), (n), (m), (b), (f), (p))
sys/arch/loongson/include/bus.h
438
#define bus_dmamap_load(t, m, b, s, p, f) \
sys/arch/loongson/include/bus.h
439
(*(t)->_dmamap_load)((t), (m), (b), (s), (p), (f))
sys/arch/loongson/include/bus.h
440
#define bus_dmamap_load_mbuf(t, m, b, f) \
sys/arch/loongson/include/bus.h
441
(*(t)->_dmamap_load_mbuf)((t), (m), (b), (f))
sys/arch/loongson/include/bus.h
452
#define bus_dmamem_alloc(t, s, a, b, sg, n, r, f) \
sys/arch/loongson/include/bus.h
453
(*(t)->_dmamem_alloc)((t), (s), (a), (b), (sg), (n), (r), (f))
sys/arch/loongson/include/bus.h
99
#define bus_space_read_raw_multi_2(t, h, a, b, l) \
sys/arch/loongson/include/loadfile_machdep.h
41
#define READ(f, b, c) read((f), (void *)LOADADDR(b), (c))
sys/arch/loongson/include/loadfile_machdep.h
49
#define FREE(a, b) free(a, b)
sys/arch/loongson/include/pci_machdep.h
101
#define pci_dev_postattach(a, b)
sys/arch/loongson/include/pci_machdep.h
64
#define pci_bus_maxdevs(c, b) \
sys/arch/loongson/include/pci_machdep.h
65
(*(c)->pc_bus_maxdevs)((c)->pc_conf_v, (b))
sys/arch/loongson/include/pci_machdep.h
66
#define pci_make_tag(c, b, d, f) \
sys/arch/loongson/include/pci_machdep.h
67
(*(c)->pc_make_tag)((c)->pc_conf_v, (b), (d), (f))
sys/arch/loongson/loongson/machdep.c
1142
atoi(const char *s, uint b)
sys/arch/loongson/loongson/machdep.c
1145
uint base = b, d;
sys/arch/luna88k/dev/lunafb.c
337
error = copyout(&sc->sc_dc->dc_cmap.b[index], p->blue, count);
sys/arch/luna88k/dev/lunafb.c
367
error = copyin(p->blue, &cmap.b[index], count);
sys/arch/luna88k/dev/lunafb.c
373
memcpy(&sc->sc_dc->dc_cmap.b[index], &cmap.b[index], count);
sys/arch/luna88k/dev/lunafb.c
381
odac->bt_cmap = sc->sc_dc->dc_cmap.b[i];
sys/arch/luna88k/dev/lunafb.c
390
ndac->bt_cmap = sc->sc_dc->dc_cmap.b[i];
sys/arch/luna88k/dev/lunafb.c
623
odac->bt_cmap = dc->dc_cmap.b[i] = 0;
sys/arch/luna88k/dev/lunafb.c
631
odac->bt_cmap = dc->dc_cmap.b[15] = 0;
sys/arch/luna88k/dev/lunafb.c
643
odac->bt_cmap = dc->dc_cmap.b[i] = val;
sys/arch/luna88k/dev/lunafb.c
652
odac->bt_cmap = dc->dc_cmap.b[i]
sys/arch/luna88k/dev/lunafb.c
681
ndac->bt_cmap = dc->dc_cmap.b[i] = val;
sys/arch/luna88k/dev/lunafb.c
694
ndac->bt_cmap = dc->dc_cmap.b[i]
sys/arch/luna88k/dev/lunafb.c
84
u_int8_t b[CMAP_SIZE];
sys/arch/luna88k/dev/lunaws.c
198
struct wsmousedev_attach_args b;
sys/arch/luna88k/dev/lunaws.c
199
b.accessops = &omms_accessops;
sys/arch/luna88k/dev/lunaws.c
200
b.accesscookie = (void *)sc;
sys/arch/luna88k/dev/lunaws.c
201
sc->sc_wsmousedev = config_found_sm(self, &b, wsmousedevprint,
sys/arch/luna88k/dev/mb89352.c
2018
u_char *b = (u_char *)&acb->scsi_cmd;
sys/arch/luna88k/dev/mb89352.c
2027
printf("%x", b[i]);
sys/arch/luna88k/dev/mb89352var.h
189
#define SPC_PRINT(b, s) do {if ((spc_debug & (b)) != 0) printf s;} while (0)
sys/arch/luna88k/dev/mb89352var.h
193
#define SPC_PRINT(b, s)
sys/arch/luna88k/include/loadfile_machdep.h
39
#define READ(f, b, c) read((f), (void *)LOADADDR(b), (c))
sys/arch/luna88k/include/loadfile_machdep.h
47
#define FREE(a, b) free(a, b)
sys/arch/macppc/include/bus.h
40
#define CAT(a,b) a##b
sys/arch/macppc/include/bus.h
41
#define CAT3(a,b,c) a##b##c
sys/arch/macppc/include/bus.h
43
#define CAT(a,b) a/**/b
sys/arch/macppc/include/bus.h
44
#define CAT3(a,b,c) a/**/b/**/c
sys/arch/macppc/include/bus.h
562
#define bus_dmamap_create(t, s, n, m, b, f, p) \
sys/arch/macppc/include/bus.h
563
(*(t)->_dmamap_create)((t), (s), (n), (m), (b), (f), (p))
sys/arch/macppc/include/bus.h
566
#define bus_dmamap_load(t, m, b, s, p, f) \
sys/arch/macppc/include/bus.h
567
(*(t)->_dmamap_load)((t), (m), (b), (s), (p), (f))
sys/arch/macppc/include/bus.h
568
#define bus_dmamap_load_mbuf(t, m, b, f) \
sys/arch/macppc/include/bus.h
569
(*(t)->_dmamap_load_mbuf)((t), (m), (b), (f))
sys/arch/macppc/include/bus.h
580
#define bus_dmamem_alloc(t, s, a, b, sg, n, r, f) \
sys/arch/macppc/include/bus.h
581
(*(t)->_dmamem_alloc)((t)->_cookie, (s), (a), (b), (sg), (n), (r), (f))
sys/arch/macppc/include/bus.h
582
#define bus_dmamem_alloc_range(t, s, a, b, sg, n, r, f, l, h) \
sys/arch/macppc/include/bus.h
583
(*(t)->_dmamem_alloc_range)((t), (s), (a), (b), (sg), \
sys/arch/macppc/include/loadfile_machdep.h
41
#define READ(f, b, c) read((f), (void *)LOADADDR(b), (c))
sys/arch/macppc/include/loadfile_machdep.h
49
#define FREE(a, b) free(a, b)
sys/arch/macppc/include/pci_machdep.h
62
#define PCITAG_CREATE(n,b,d,f) (((uint64_t)(n)<<32)|((b)<<16)|((d)<<11)|((f)<<8))
sys/arch/macppc/include/pci_machdep.h
99
#define pci_dev_postattach(a, b)
sys/arch/macppc/pci/pci_machdep.c
106
if (b != OFW_PCI_PHYS_HI_BUS(reg.phys_hi))
sys/arch/macppc/pci/pci_machdep.c
113
tag = PCITAG_CREATE(node, b, d, f);
sys/arch/macppc/pci/pci_machdep.c
118
return (PCITAG_CREATE(-1, b, d, f));
sys/arch/macppc/pci/pci_machdep.c
122
pci_decompose_tag(pci_chipset_tag_t pc, pcitag_t tag, int *b, int *d, int *f)
sys/arch/macppc/pci/pci_machdep.c
124
if (b != NULL)
sys/arch/macppc/pci/pci_machdep.c
125
*b = PCITAG_BUS(tag);
sys/arch/macppc/pci/pci_machdep.c
249
int len, node, b, d, f, ret;
sys/arch/macppc/pci/pci_machdep.c
285
b = OFW_PCI_PHYS_HI_BUS(reg.phys_hi);
sys/arch/macppc/pci/pci_machdep.c
289
tag = PCITAG_CREATE(snode, b, d, f);
sys/arch/macppc/pci/pci_machdep.c
313
b = OFW_PCI_PHYS_HI_BUS(reg.phys_hi);
sys/arch/macppc/pci/pci_machdep.c
317
tag = PCITAG_CREATE(node, b, d, f);
sys/arch/macppc/pci/pci_machdep.c
73
pci_make_tag(pci_chipset_tag_t pc, int b, int d, int f)
sys/arch/macppc/pci/pci_machdep.c
79
if (pc->busnode[b])
sys/arch/macppc/pci/pci_machdep.c
80
return PCITAG_CREATE(0, b, d, f);
sys/arch/macppc/pci/pci_machdep.c
99
(b >= busrange[0] && b <= busrange[1])) {
sys/arch/mips64/mips64/mips64_machdep.c
105
if (b != 0)
sys/arch/mips64/mips64/mips64_machdep.c
106
*dst++ = *src++ | b;
sys/arch/mips64/mips64/mips64_machdep.c
81
uint32_t a, b, c, d;
sys/arch/mips64/mips64/mips64_machdep.c
95
b = dest & 0xffff;
sys/arch/mips64/mips64/mips64_machdep.c
97
if (b & 0x8000)
sys/arch/octeon/dev/octcrypto.c
205
const struct octcrypto_session *b)
sys/arch/octeon/dev/octcrypto.c
207
if (a->ses_sid < b->ses_sid)
sys/arch/octeon/dev/octcrypto.c
209
if (a->ses_sid > b->ses_sid)
sys/arch/octeon/dev/octeon_pcibus.c
299
octeon_pcibus_make_tag(void *unused, int b, int d, int f)
sys/arch/octeon/dev/octeon_pcibus.c
301
return (b << 16) | (d << 11) | (f << 8);
sys/arch/octeon/dev/octpcie.c
724
octpcie_make_tag(void *unused, int b, int d, int f)
sys/arch/octeon/dev/octpcie.c
726
return (b << 16) | (d << 11) | (f << 8);
sys/arch/octeon/include/bus.h
100
#define bus_space_read_raw_multi_4(t, h, a, b, l) \
sys/arch/octeon/include/bus.h
101
(*(t)->_space_read_raw_4)((t), (h), (a), (b), (l))
sys/arch/octeon/include/bus.h
102
#define bus_space_read_raw_multi_8(t, h, a, b, l) \
sys/arch/octeon/include/bus.h
103
(*(t)->_space_read_raw_8)((t), (h), (a), (b), (l))
sys/arch/octeon/include/bus.h
105
#define bus_space_write_raw_multi_2(t, h, a, b, l) \
sys/arch/octeon/include/bus.h
106
(*(t)->_space_write_raw_2)((t), (h), (a), (b), (l))
sys/arch/octeon/include/bus.h
107
#define bus_space_write_raw_multi_4(t, h, a, b, l) \
sys/arch/octeon/include/bus.h
108
(*(t)->_space_write_raw_4)((t), (h), (a), (b), (l))
sys/arch/octeon/include/bus.h
109
#define bus_space_write_raw_multi_8(t, h, a, b, l) \
sys/arch/octeon/include/bus.h
110
(*(t)->_space_write_raw_8)((t), (h), (a), (b), (l))
sys/arch/octeon/include/bus.h
31
#define CAT(a,b) a##b
sys/arch/octeon/include/bus.h
32
#define CAT3(a,b,c) a##b##c
sys/arch/octeon/include/bus.h
34
#define CAT(a,b) a/**/b
sys/arch/octeon/include/bus.h
35
#define CAT3(a,b,c) a/**/b/**/c
sys/arch/octeon/include/bus.h
400
#define bus_dmamap_create(t, s, n, m, b, f, p) \
sys/arch/octeon/include/bus.h
401
(*(t)->_dmamap_create)((t), (s), (n), (m), (b), (f), (p))
sys/arch/octeon/include/bus.h
404
#define bus_dmamap_load(t, m, b, s, p, f) \
sys/arch/octeon/include/bus.h
405
(*(t)->_dmamap_load)((t), (m), (b), (s), (p), (f))
sys/arch/octeon/include/bus.h
406
#define bus_dmamap_load_mbuf(t, m, b, f) \
sys/arch/octeon/include/bus.h
407
(*(t)->_dmamap_load_mbuf)((t), (m), (b), (f))
sys/arch/octeon/include/bus.h
418
#define bus_dmamem_alloc(t, s, a, b, sg, n, r, f) \
sys/arch/octeon/include/bus.h
419
(*(t)->_dmamem_alloc)((t), (s), (a), (b), (sg), (n), (r), (f))
sys/arch/octeon/include/bus.h
98
#define bus_space_read_raw_multi_2(t, h, a, b, l) \
sys/arch/octeon/include/bus.h
99
(*(t)->_space_read_raw_2)((t), (h), (a), (b), (l))
sys/arch/octeon/include/loadfile_machdep.h
41
#define READ(f, b, c) read((f), (void *)LOADADDR(b), (c))
sys/arch/octeon/include/loadfile_machdep.h
49
#define FREE(a, b) free(a, b)
sys/arch/octeon/include/pci_machdep.h
133
#define pci_dev_postattach(a, b)
sys/arch/octeon/include/pci_machdep.h
72
#define pci_bus_maxdevs(c, b) \
sys/arch/octeon/include/pci_machdep.h
73
(*(c)->pc_bus_maxdevs)((c)->pc_conf_v, (b))
sys/arch/octeon/include/pci_machdep.h
74
#define pci_make_tag(c, b, d, f) \
sys/arch/octeon/include/pci_machdep.h
75
(*(c)->pc_make_tag)((c)->pc_conf_v, (b), (d), (f))
sys/arch/powerpc64/include/bus.h
108
#define bus_space_read_raw_multi_2(t, h, a, b, l) \
sys/arch/powerpc64/include/bus.h
109
(*(t)->_space_read_raw_2)((t), (h), (a), (b), (l))
sys/arch/powerpc64/include/bus.h
110
#define bus_space_read_raw_multi_4(t, h, a, b, l) \
sys/arch/powerpc64/include/bus.h
111
(*(t)->_space_read_raw_4)((t), (h), (a), (b), (l))
sys/arch/powerpc64/include/bus.h
112
#define bus_space_read_raw_multi_8(t, h, a, b, l) \
sys/arch/powerpc64/include/bus.h
113
(*(t)->_space_read_raw_8)((t), (h), (a), (b), (l))
sys/arch/powerpc64/include/bus.h
115
#define bus_space_write_raw_multi_2(t, h, a, b, l) \
sys/arch/powerpc64/include/bus.h
116
(*(t)->_space_write_raw_2)((t), (h), (a), (b), (l))
sys/arch/powerpc64/include/bus.h
117
#define bus_space_write_raw_multi_4(t, h, a, b, l) \
sys/arch/powerpc64/include/bus.h
118
(*(t)->_space_write_raw_4)((t), (h), (a), (b), (l))
sys/arch/powerpc64/include/bus.h
119
#define bus_space_write_raw_multi_8(t, h, a, b, l) \
sys/arch/powerpc64/include/bus.h
120
(*(t)->_space_write_raw_8)((t), (h), (a), (b), (l))
sys/arch/powerpc64/include/bus.h
29
#define CAT(a,b) a##b
sys/arch/powerpc64/include/bus.h
30
#define CAT3(a,b,c) a##b##c
sys/arch/powerpc64/include/bus.h
411
#define bus_dmamap_create(t, s, n, m, b, f, p) \
sys/arch/powerpc64/include/bus.h
412
(*(t)->_dmamap_create)((t), (s), (n), (m), (b), (f), (p))
sys/arch/powerpc64/include/bus.h
415
#define bus_dmamap_load(t, m, b, s, p, f) \
sys/arch/powerpc64/include/bus.h
416
(*(t)->_dmamap_load)((t), (m), (b), (s), (p), (f))
sys/arch/powerpc64/include/bus.h
417
#define bus_dmamap_load_mbuf(t, m, b, f) \
sys/arch/powerpc64/include/bus.h
418
(*(t)->_dmamap_load_mbuf)((t), (m), (b), (f))
sys/arch/powerpc64/include/bus.h
429
#define bus_dmamem_alloc(t, s, a, b, sg, n, r, f) \
sys/arch/powerpc64/include/bus.h
430
(*(t)->_dmamem_alloc)((t), (s), (a), (b), (sg), (n), (r), (f))
sys/arch/powerpc64/include/pci_machdep.h
119
#define pci_dev_postattach(a, b)
sys/arch/powerpc64/include/pci_machdep.h
86
#define pci_bus_maxdevs(c, b) \
sys/arch/powerpc64/include/pci_machdep.h
87
(*(c)->pc_bus_maxdevs)((c)->pc_conf_v, (b))
sys/arch/powerpc64/include/pci_machdep.h
88
#define pci_make_tag(c, b, d, f) \
sys/arch/powerpc64/include/pci_machdep.h
89
(*(c)->pc_make_tag)((c)->pc_conf_v, (b), (d), (f))
sys/arch/powerpc64/powerpc64/db_interface.c
103
b = bemtoh64((uint64_t *)prop_end);
sys/arch/powerpc64/powerpc64/db_interface.c
105
initrd_reg.size = round_page(b) - initrd_reg.addr;
sys/arch/powerpc64/powerpc64/db_interface.c
106
db_elf_sym_init(b - a, (char *)a, (char *)b, "initrd");
sys/arch/powerpc64/powerpc64/db_interface.c
84
uint64_t a, b;
sys/arch/riscv64/include/bus.h
114
#define bus_space_read_raw_multi_2(t, h, a, b, l) \
sys/arch/riscv64/include/bus.h
115
(*(t)->_space_read_raw_2)((t), (h), (a), (b), (l))
sys/arch/riscv64/include/bus.h
116
#define bus_space_read_raw_multi_4(t, h, a, b, l) \
sys/arch/riscv64/include/bus.h
117
(*(t)->_space_read_raw_4)((t), (h), (a), (b), (l))
sys/arch/riscv64/include/bus.h
118
#define bus_space_read_raw_multi_8(t, h, a, b, l) \
sys/arch/riscv64/include/bus.h
119
(*(t)->_space_read_raw_8)((t), (h), (a), (b), (l))
sys/arch/riscv64/include/bus.h
121
#define bus_space_write_raw_multi_2(t, h, a, b, l) \
sys/arch/riscv64/include/bus.h
122
(*(t)->_space_write_raw_2)((t), (h), (a), (b), (l))
sys/arch/riscv64/include/bus.h
123
#define bus_space_write_raw_multi_4(t, h, a, b, l) \
sys/arch/riscv64/include/bus.h
124
(*(t)->_space_write_raw_4)((t), (h), (a), (b), (l))
sys/arch/riscv64/include/bus.h
125
#define bus_space_write_raw_multi_8(t, h, a, b, l) \
sys/arch/riscv64/include/bus.h
126
(*(t)->_space_write_raw_8)((t), (h), (a), (b), (l))
sys/arch/riscv64/include/bus.h
31
#define CAT(a,b) a##b
sys/arch/riscv64/include/bus.h
32
#define CAT3(a,b,c) a##b##c
sys/arch/riscv64/include/bus.h
34
#define CAT(a,b) a/**/b
sys/arch/riscv64/include/bus.h
35
#define CAT3(a,b,c) a/**/b/**/c
sys/arch/riscv64/include/bus.h
430
#define bus_dmamap_create(t, s, n, m, b, f, p) \
sys/arch/riscv64/include/bus.h
431
(*(t)->_dmamap_create)((t), (s), (n), (m), (b), (f), (p))
sys/arch/riscv64/include/bus.h
434
#define bus_dmamap_load(t, m, b, s, p, f) \
sys/arch/riscv64/include/bus.h
435
(*(t)->_dmamap_load)((t), (m), (b), (s), (p), (f))
sys/arch/riscv64/include/bus.h
436
#define bus_dmamap_load_mbuf(t, m, b, f) \
sys/arch/riscv64/include/bus.h
437
(*(t)->_dmamap_load_mbuf)((t), (m), (b), (f))
sys/arch/riscv64/include/bus.h
448
#define bus_dmamem_alloc(t, s, a, b, sg, n, r, f) \
sys/arch/riscv64/include/bus.h
449
(*(t)->_dmamem_alloc)((t), (s), (a), (b), (sg), (n), (r), (f))
sys/arch/riscv64/include/bus.h
450
#define bus_dmamem_alloc_range(t, s, a, b, sg, n, r, f, l, h) \
sys/arch/riscv64/include/bus.h
451
(*(t)->_dmamem_alloc_range)((t), (s), (a), (b), (sg), \
sys/arch/riscv64/include/loadfile_machdep.h
43
#define READ(f, b, c) read((f), (void *)LOADADDR(b), (c))
sys/arch/riscv64/include/loadfile_machdep.h
51
#define FREE(a, b) free(a, b)
sys/arch/riscv64/include/pci_machdep.h
123
#define pci_dev_postattach(a, b)
sys/arch/riscv64/include/pci_machdep.h
89
#define pci_bus_maxdevs(c, b) \
sys/arch/riscv64/include/pci_machdep.h
90
(*(c)->pc_bus_maxdevs)((c)->pc_conf_v, (b))
sys/arch/riscv64/include/pci_machdep.h
91
#define pci_make_tag(c, b, d, f) \
sys/arch/riscv64/include/pci_machdep.h
92
(*(c)->pc_make_tag)((c)->pc_conf_v, (b), (d), (f))
sys/arch/sh/include/locore.h
115
swap.b r0, r0 ;\
sys/arch/sh/include/locore.h
162
swap.b Rn, Rn ;\
sys/arch/sh/include/locore.h
170
swap.b Rn, Rn ;\
sys/arch/sh/include/locore.h
59
swap.b r3, r3 ;\
sys/arch/sparc64/dev/creator.c
225
u_char r[2], g[2], b[2];
sys/arch/sparc64/dev/creator.c
280
b[0] = sc->sc_curs_fg >> 16;
sys/arch/sparc64/dev/creator.c
283
b[1] = sc->sc_curs_bg >> 16;
sys/arch/sparc64/dev/creator.c
290
error = copyout(b, curs->cmap.blue, sizeof(b));
sys/arch/sparc64/dev/creator.c
343
u_int8_t r[2], g[2], b[2], image[128], mask[128];
sys/arch/sparc64/dev/creator.c
360
error = copyin(curs->cmap.blue, b, sizeof(b));
sys/arch/sparc64/dev/creator.c
393
sc->sc_curs_fg = ((r[0] << 0) | (g[0] << 8) | (b[0] << 16));
sys/arch/sparc64/dev/creator.c
394
sc->sc_curs_bg = ((r[1] << 0) | (g[1] << 8) | (b[1] << 16));
sys/arch/sparc64/dev/gfxp.c
400
u_char *r, *g, *b;
sys/arch/sparc64/dev/gfxp.c
414
b = &sc->sc_cmap_blue[index];
sys/arch/sparc64/dev/gfxp.c
426
PM2_PALETTE_DATA, *b);
sys/arch/sparc64/dev/gfxp.c
427
r++, g++, b++;
sys/arch/sparc64/dev/gfxp.c
433
gfxp_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/arch/sparc64/dev/gfxp.c
439
sc->sc_cmap_blue[index] = b;
sys/arch/sparc64/dev/gfxp.c
446
bus_space_write_4(sc->sc_mmiot, sc->sc_mmioh, PM2_PALETTE_DATA, b);
sys/arch/sparc64/dev/ifb.c
601
ifb_dac_value(u_int r, u_int g, u_int b)
sys/arch/sparc64/dev/ifb.c
610
b = (b << 2) | (b >> 6);
sys/arch/sparc64/dev/ifb.c
612
return (b << 20) | (g << 10) | r;
sys/arch/sparc64/dev/ifb.c
644
u_char *r, *g, *b;
sys/arch/sparc64/dev/ifb.c
658
b = &sc->sc_cmap_blue[index];
sys/arch/sparc64/dev/ifb.c
664
ifb_dac_value(*r, *g, *b));
sys/arch/sparc64/dev/ifb.c
665
r++, g++, b++, index++;
sys/arch/sparc64/dev/ifb.c
671
ifb_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/arch/sparc64/dev/ifb.c
677
sc->sc_cmap_blue[index] = b;
sys/arch/sparc64/dev/ifb.c
682
ifb_dac_value(r, g, b));
sys/arch/sparc64/dev/iommu.c
1720
iomap_compare(struct iommu_page_entry *a, struct iommu_page_entry *b)
sys/arch/sparc64/dev/iommu.c
1722
return ((a->ipe_pa > b->ipe_pa) ? 1 :
sys/arch/sparc64/dev/iommu.c
1723
(a->ipe_pa < b->ipe_pa) ? -1 : 0);
sys/arch/sparc64/dev/machfb.c
464
u_char *r, *g, *b;
sys/arch/sparc64/dev/machfb.c
478
b = &sc->sc_cmap_blue[index];
sys/arch/sparc64/dev/machfb.c
488
M64_DAC_DATA, *b);
sys/arch/sparc64/dev/machfb.c
489
r++, g++, b++;
sys/arch/sparc64/dev/machfb.c
495
machfb_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/arch/sparc64/dev/machfb.c
501
sc->sc_cmap_blue[index] = b;
sys/arch/sparc64/dev/machfb.c
507
bus_space_write_1(sc->sc_regt, sc->sc_regh, M64_DAC_DATA, b);
sys/arch/sparc64/dev/pci_machdep.c
133
pci_make_tag(pci_chipset_tag_t pc, int b, int d, int f)
sys/arch/sparc64/dev/pci_machdep.c
144
if (pc->busnode[b])
sys/arch/sparc64/dev/pci_machdep.c
145
return PCITAG_CREATE(0, b, d, f);
sys/arch/sparc64/dev/pci_machdep.c
157
tag = PCITAG_CREATE(-1, b, d, f);
sys/arch/sparc64/dev/pci_machdep.c
178
(b >= busrange[0] && b <= busrange[1])) {
sys/arch/sparc64/dev/pci_machdep.c
203
if (b != OFW_PCI_PHYS_HI_BUS(reg.phys_hi))
sys/arch/sparc64/dev/pci_machdep.c
211
tag = PCITAG_CREATE(node, b, d, f);
sys/arch/sparc64/dev/pci_machdep.c
260
int node, b, d, f, ret;
sys/arch/sparc64/dev/pci_machdep.c
291
b = OFW_PCI_PHYS_HI_BUS(reg.phys_hi);
sys/arch/sparc64/dev/pci_machdep.c
295
if (sc->sc_bus != b) {
sys/arch/sparc64/dev/pci_machdep.c
297
"(%d/%d/%d)\n", sc->sc_dev.dv_xname, name, b, d, f);
sys/arch/sparc64/dev/pci_machdep.c
301
tag = PCITAG_CREATE(node, b, d, f);
sys/arch/sparc64/dev/radeonfb.c
408
u_char *r, *g, *b;
sys/arch/sparc64/dev/radeonfb.c
422
b = &sc->sc_cmap_blue[index];
sys/arch/sparc64/dev/radeonfb.c
428
RADEON_PALETTE_DATA, (*r << 16) | (*g << 8) | *b);
sys/arch/sparc64/dev/radeonfb.c
429
r++, g++, b++;
sys/arch/sparc64/dev/radeonfb.c
435
radeonfb_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/arch/sparc64/dev/radeonfb.c
441
sc->sc_cmap_blue[index] = b;
sys/arch/sparc64/dev/radeonfb.c
446
RADEON_PALETTE_DATA, (r << 16) | (g << 8) | b);
sys/arch/sparc64/dev/raptor.c
374
u_char *r, *g, *b;
sys/arch/sparc64/dev/raptor.c
388
b = &sc->sc_cmap_blue[index];
sys/arch/sparc64/dev/raptor.c
399
I128_PAL_DAT, *b);
sys/arch/sparc64/dev/raptor.c
400
r++, g++, b++, index++;
sys/arch/sparc64/dev/raptor.c
406
raptor_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/arch/sparc64/dev/raptor.c
412
sc->sc_cmap_blue[index] = b;
sys/arch/sparc64/dev/raptor.c
418
bus_space_write_4(sc->sc_mmiot, sc->sc_mmioh, I128_PAL_DAT, b);
sys/arch/sparc64/dev/vgafb.c
289
u_char *r, *g, *b;
sys/arch/sparc64/dev/vgafb.c
303
b = &sc->sc_cmap_blue[index];
sys/arch/sparc64/dev/vgafb.c
306
OF_call_method("color!", sc->sc_ofhandle, 4, 0, *r, *g, *b,
sys/arch/sparc64/dev/vgafb.c
308
r++, g++, b++, index++;
sys/arch/sparc64/dev/vgafb.c
314
vgafb_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/arch/sparc64/dev/vgafb.c
320
sc->sc_cmap_blue[index] = b;
sys/arch/sparc64/dev/vgafb.c
321
OF_call_method("color!", sc->sc_ofhandle, 4, 0, r, g, b, index);
sys/arch/sparc64/fpu/fpu_compare.c
100
if (ISZERO(a) && ISZERO(b)) {
sys/arch/sparc64/fpu/fpu_compare.c
105
if (!b->fp_sign) { /* b >= 0 (or if a = -0, b > 0) */
sys/arch/sparc64/fpu/fpu_compare.c
110
if (b->fp_sign) { /* b <= -0 (or if a = +0, b < 0) */
sys/arch/sparc64/fpu/fpu_compare.c
133
if (a->fp_class < b->fp_class) { /* |a| < |b| */
sys/arch/sparc64/fpu/fpu_compare.c
137
if (a->fp_class > b->fp_class) { /* |a| > |b| */
sys/arch/sparc64/fpu/fpu_compare.c
77
struct fpn *a, *b;
sys/arch/sparc64/fpu/fpu_compare.c
82
b = &fe->fe_f2;
sys/arch/sparc64/fpu/fpu_compare.c
84
if (ISNAN(a) || ISNAN(b)) {
sys/arch/sparc64/include/bus.h
485
bus_size_t b, int f, bus_dmamap_t *p)
sys/arch/sparc64/include/bus.h
490
r = _BD_CALL(t, _dmamap_create)(t, t0, s, n, m, b, f, p);
sys/arch/sparc64/include/bus.h
503
bus_dmamap_load(bus_dma_tag_t t, bus_dmamap_t m, void *b, bus_size_t s,
sys/arch/sparc64/include/bus.h
509
r = _BD_CALL(t, _dmamap_load)(t, t0, m, b, s, p, f);
sys/arch/sparc64/include/bus.h
514
bus_dmamap_load_mbuf(bus_dma_tag_t t, bus_dmamap_t m, struct mbuf *b,
sys/arch/sparc64/include/bus.h
520
r = _BD_CALL(t, _dmamap_load_mbuf)(t, t0, m, b, f);
sys/arch/sparc64/include/bus.h
563
bus_dmamem_alloc(bus_dma_tag_t t, bus_size_t s, bus_size_t a, bus_size_t b,
sys/arch/sparc64/include/bus.h
569
ret = _BD_CALL(t, _dmamem_alloc)(t, t0, s, a, b, sg, n, r, f);
sys/arch/sparc64/include/instr.h
335
#define _I_ANY(op, b) ((op) << 30 | (b))
sys/arch/sparc64/include/loadfile_machdep.h
46
#define READ(f, b, c) read((f), (void *)LOADADDR(b), (c))
sys/arch/sparc64/include/loadfile_machdep.h
54
#define FREE(a, b) free(a, b)
sys/arch/sparc64/include/loadfile_machdep.h
58
#define READ(f, b, c) read((f), (void *)LOADADDR(b), (c))
sys/arch/sparc64/include/loadfile_machdep.h
64
#define FREE(a, b) free(a)
sys/arch/sparc64/include/pci_machdep.h
132
#define pciide_machdep_compat_intr_establish(a, b, c, d, e) (NULL)
sys/arch/sparc64/include/pci_machdep.h
133
#define pciide_machdep_compat_intr_disestablish(a, b) do { } while (0)
sys/arch/sparc64/include/pci_machdep.h
135
#define pci_dev_postattach(a, b)
sys/arch/sparc64/include/pci_machdep.h
73
#define PCITAG_CREATE(n,b,d,f) (((u_int64_t)(n)<<32)|((b)<<16)|((d)<<11)|((f)<<8))
sys/arch/sparc64/sparc64/db_disasm.c
105
#define FORMAT2(a,b) (OP(a) | OP2(b))
sys/arch/sparc64/sparc64/db_disasm.c
106
#define FORMAT3(a,b,c) (OP(a) | OP3(b) | F3I(c))
sys/arch/sparc64/sparc64/db_disasm.c
107
#define FORMAT3F(a,b,c) (OP(a) | OP3(b) | OPF(c))
sys/arch/sparc64/sparc64/machdep.c
1703
bus_addr_t re, bus_size_t s, bus_size_t a, bus_size_t b, int f,
sys/arch/sparc64/sparc64/machdep.c
1750
bus_size_t a, bus_size_t b, int f, bus_addr_t *ap, bus_space_handle_t *hp)
sys/arch/sparc64/sparc64/machdep.c
1756
ret = _BS_CALL(t, sparc_bus_alloc)(t, t0, rs, re, s, a, b, f, ap, hp);
sys/crypto/aes.c
282
uint32_t a, b; \
sys/crypto/aes.c
284
b = (y); \
sys/crypto/aes.c
285
(x) = (a & (uint32_t)cl) | ((b & (uint32_t)cl) << (s)); \
sys/crypto/aes.c
286
(y) = ((a & (uint32_t)ch) >> (s)) | (b & (uint32_t)ch); \
sys/crypto/blake2s.c
121
#define G(r, i, a, b, c, d) do { \
sys/crypto/blake2s.c
122
a += b + m[blake2s_sigma[r][2 * i + 0]]; \
sys/crypto/blake2s.c
125
b = ror32(b ^ c, 12); \
sys/crypto/blake2s.c
126
a += b + m[blake2s_sigma[r][2 * i + 1]]; \
sys/crypto/blake2s.c
129
b = ror32(b ^ c, 7); \
sys/crypto/chacha_private.h
46
#define QUARTERROUND(a,b,c,d) \
sys/crypto/chacha_private.h
47
a = PLUS(a,b); d = ROTATE(XOR(d,a),16); \
sys/crypto/chacha_private.h
48
c = PLUS(c,d); b = ROTATE(XOR(b,c),12); \
sys/crypto/chacha_private.h
49
a = PLUS(a,b); d = ROTATE(XOR(d,a), 8); \
sys/crypto/chacha_private.h
50
c = PLUS(c,d); b = ROTATE(XOR(b,c), 7);
sys/crypto/chachapoly.c
133
} b = { { 0 } };
sys/crypto/chachapoly.c
138
chacha_encrypt_bytes(&chacha_ctx, b.b0, b.b0, sizeof(b.b0));
sys/crypto/chachapoly.c
139
poly1305_init(&poly1305_ctx, b.b0);
sys/crypto/chachapoly.c
149
b.lens[0] = htole64(ad_len);
sys/crypto/chachapoly.c
150
b.lens[1] = htole64(src_len);
sys/crypto/chachapoly.c
151
poly1305_update(&poly1305_ctx, (uint8_t *)b.lens, sizeof(b.lens));
sys/crypto/chachapoly.c
156
explicit_bzero(&b, sizeof(b));
sys/crypto/chachapoly.c
177
} b = { { 0 } };
sys/crypto/chachapoly.c
185
chacha_encrypt_bytes(&chacha_ctx, b.b0, b.b0, sizeof(b.b0));
sys/crypto/chachapoly.c
186
poly1305_init(&poly1305_ctx, b.b0);
sys/crypto/chachapoly.c
195
b.lens[0] = htole64(ad_len);
sys/crypto/chachapoly.c
196
b.lens[1] = htole64(dst_len);
sys/crypto/chachapoly.c
197
poly1305_update(&poly1305_ctx, (uint8_t *)b.lens, sizeof(b.lens));
sys/crypto/chachapoly.c
199
poly1305_finish(&poly1305_ctx, b.mac);
sys/crypto/chachapoly.c
201
ret = timingsafe_bcmp(b.mac, src + dst_len, CHACHA20POLY1305_AUTHTAG_SIZE);
sys/crypto/chachapoly.c
206
explicit_bzero(&b, sizeof(b));
sys/crypto/cryptosoft.c
80
#define COPYBACK(x, a, b, c, d) \
sys/crypto/cryptosoft.c
83
m_copyback((struct mbuf *)a,b,c,d,M_NOWAIT); \
sys/crypto/cryptosoft.c
85
cuio_copyback((struct uio *)a,b,c,d); \
sys/crypto/cryptosoft.c
87
#define COPYDATA(x, a, b, c, d) \
sys/crypto/cryptosoft.c
90
m_copydata((struct mbuf *)a,b,c,d); \
sys/crypto/cryptosoft.c
92
cuio_copydata((struct uio *)a,b,c,d); \
sys/crypto/curve25519.c
102
addcarryx_u26(uint8_t /*bool*/ c, uint32_t a, uint32_t b, uint32_t *low)
sys/crypto/curve25519.c
107
uint32_t x = a + b + c;
sys/crypto/curve25519.c
113
subborrow_u25(uint8_t /*bool*/ c, uint32_t a, uint32_t b, uint32_t *low)
sys/crypto/curve25519.c
118
uint32_t x = a - b - c;
sys/crypto/curve25519.c
124
subborrow_u26(uint8_t /*bool*/ c, uint32_t a, uint32_t b, uint32_t *low)
sys/crypto/curve25519.c
129
uint32_t x = a - b - c;
sys/crypto/curve25519.c
649
static __always_inline void fe_cswap(fe *f, fe *g, unsigned int b)
sys/crypto/curve25519.c
652
b = 0 - b;
sys/crypto/curve25519.c
655
x &= b;
sys/crypto/curve25519.c
840
unsigned b = 1 & (e[pos / 8] >> (pos & 7));
sys/crypto/curve25519.c
841
swap ^= b;
sys/crypto/curve25519.c
844
swap = b;
sys/crypto/curve25519.c
91
addcarryx_u25(uint8_t /*bool*/ c, uint32_t a, uint32_t b, uint32_t *low)
sys/crypto/curve25519.c
96
uint32_t x = a + b + c;
sys/crypto/des_locl.h
138
#define PERM_OP(a,b,t,n,m) ((t)=((((a)>>(n))^(b))&(m)),\
sys/crypto/des_locl.h
139
(b)^=(t),\
sys/crypto/md5.c
147
u_int32_t a, b, c, d, in[MD5_BLOCK_LENGTH / 4];
sys/crypto/md5.c
162
b = state[1];
sys/crypto/md5.c
166
MD5STEP(F1, a, b, c, d, in[ 0] + 0xd76aa478, 7);
sys/crypto/md5.c
167
MD5STEP(F1, d, a, b, c, in[ 1] + 0xe8c7b756, 12);
sys/crypto/md5.c
168
MD5STEP(F1, c, d, a, b, in[ 2] + 0x242070db, 17);
sys/crypto/md5.c
169
MD5STEP(F1, b, c, d, a, in[ 3] + 0xc1bdceee, 22);
sys/crypto/md5.c
170
MD5STEP(F1, a, b, c, d, in[ 4] + 0xf57c0faf, 7);
sys/crypto/md5.c
171
MD5STEP(F1, d, a, b, c, in[ 5] + 0x4787c62a, 12);
sys/crypto/md5.c
172
MD5STEP(F1, c, d, a, b, in[ 6] + 0xa8304613, 17);
sys/crypto/md5.c
173
MD5STEP(F1, b, c, d, a, in[ 7] + 0xfd469501, 22);
sys/crypto/md5.c
174
MD5STEP(F1, a, b, c, d, in[ 8] + 0x698098d8, 7);
sys/crypto/md5.c
175
MD5STEP(F1, d, a, b, c, in[ 9] + 0x8b44f7af, 12);
sys/crypto/md5.c
176
MD5STEP(F1, c, d, a, b, in[10] + 0xffff5bb1, 17);
sys/crypto/md5.c
177
MD5STEP(F1, b, c, d, a, in[11] + 0x895cd7be, 22);
sys/crypto/md5.c
178
MD5STEP(F1, a, b, c, d, in[12] + 0x6b901122, 7);
sys/crypto/md5.c
179
MD5STEP(F1, d, a, b, c, in[13] + 0xfd987193, 12);
sys/crypto/md5.c
180
MD5STEP(F1, c, d, a, b, in[14] + 0xa679438e, 17);
sys/crypto/md5.c
181
MD5STEP(F1, b, c, d, a, in[15] + 0x49b40821, 22);
sys/crypto/md5.c
183
MD5STEP(F2, a, b, c, d, in[ 1] + 0xf61e2562, 5);
sys/crypto/md5.c
184
MD5STEP(F2, d, a, b, c, in[ 6] + 0xc040b340, 9);
sys/crypto/md5.c
185
MD5STEP(F2, c, d, a, b, in[11] + 0x265e5a51, 14);
sys/crypto/md5.c
186
MD5STEP(F2, b, c, d, a, in[ 0] + 0xe9b6c7aa, 20);
sys/crypto/md5.c
187
MD5STEP(F2, a, b, c, d, in[ 5] + 0xd62f105d, 5);
sys/crypto/md5.c
188
MD5STEP(F2, d, a, b, c, in[10] + 0x02441453, 9);
sys/crypto/md5.c
189
MD5STEP(F2, c, d, a, b, in[15] + 0xd8a1e681, 14);
sys/crypto/md5.c
190
MD5STEP(F2, b, c, d, a, in[ 4] + 0xe7d3fbc8, 20);
sys/crypto/md5.c
191
MD5STEP(F2, a, b, c, d, in[ 9] + 0x21e1cde6, 5);
sys/crypto/md5.c
192
MD5STEP(F2, d, a, b, c, in[14] + 0xc33707d6, 9);
sys/crypto/md5.c
193
MD5STEP(F2, c, d, a, b, in[ 3] + 0xf4d50d87, 14);
sys/crypto/md5.c
194
MD5STEP(F2, b, c, d, a, in[ 8] + 0x455a14ed, 20);
sys/crypto/md5.c
195
MD5STEP(F2, a, b, c, d, in[13] + 0xa9e3e905, 5);
sys/crypto/md5.c
196
MD5STEP(F2, d, a, b, c, in[ 2] + 0xfcefa3f8, 9);
sys/crypto/md5.c
197
MD5STEP(F2, c, d, a, b, in[ 7] + 0x676f02d9, 14);
sys/crypto/md5.c
198
MD5STEP(F2, b, c, d, a, in[12] + 0x8d2a4c8a, 20);
sys/crypto/md5.c
200
MD5STEP(F3, a, b, c, d, in[ 5] + 0xfffa3942, 4);
sys/crypto/md5.c
201
MD5STEP(F3, d, a, b, c, in[ 8] + 0x8771f681, 11);
sys/crypto/md5.c
202
MD5STEP(F3, c, d, a, b, in[11] + 0x6d9d6122, 16);
sys/crypto/md5.c
203
MD5STEP(F3, b, c, d, a, in[14] + 0xfde5380c, 23);
sys/crypto/md5.c
204
MD5STEP(F3, a, b, c, d, in[ 1] + 0xa4beea44, 4);
sys/crypto/md5.c
205
MD5STEP(F3, d, a, b, c, in[ 4] + 0x4bdecfa9, 11);
sys/crypto/md5.c
206
MD5STEP(F3, c, d, a, b, in[ 7] + 0xf6bb4b60, 16);
sys/crypto/md5.c
207
MD5STEP(F3, b, c, d, a, in[10] + 0xbebfbc70, 23);
sys/crypto/md5.c
208
MD5STEP(F3, a, b, c, d, in[13] + 0x289b7ec6, 4);
sys/crypto/md5.c
209
MD5STEP(F3, d, a, b, c, in[ 0] + 0xeaa127fa, 11);
sys/crypto/md5.c
210
MD5STEP(F3, c, d, a, b, in[ 3] + 0xd4ef3085, 16);
sys/crypto/md5.c
211
MD5STEP(F3, b, c, d, a, in[ 6] + 0x04881d05, 23);
sys/crypto/md5.c
212
MD5STEP(F3, a, b, c, d, in[ 9] + 0xd9d4d039, 4);
sys/crypto/md5.c
213
MD5STEP(F3, d, a, b, c, in[12] + 0xe6db99e5, 11);
sys/crypto/md5.c
214
MD5STEP(F3, c, d, a, b, in[15] + 0x1fa27cf8, 16);
sys/crypto/md5.c
215
MD5STEP(F3, b, c, d, a, in[2 ] + 0xc4ac5665, 23);
sys/crypto/md5.c
217
MD5STEP(F4, a, b, c, d, in[ 0] + 0xf4292244, 6);
sys/crypto/md5.c
218
MD5STEP(F4, d, a, b, c, in[7 ] + 0x432aff97, 10);
sys/crypto/md5.c
219
MD5STEP(F4, c, d, a, b, in[14] + 0xab9423a7, 15);
sys/crypto/md5.c
220
MD5STEP(F4, b, c, d, a, in[5 ] + 0xfc93a039, 21);
sys/crypto/md5.c
221
MD5STEP(F4, a, b, c, d, in[12] + 0x655b59c3, 6);
sys/crypto/md5.c
222
MD5STEP(F4, d, a, b, c, in[3 ] + 0x8f0ccc92, 10);
sys/crypto/md5.c
223
MD5STEP(F4, c, d, a, b, in[10] + 0xffeff47d, 15);
sys/crypto/md5.c
224
MD5STEP(F4, b, c, d, a, in[1 ] + 0x85845dd1, 21);
sys/crypto/md5.c
225
MD5STEP(F4, a, b, c, d, in[8 ] + 0x6fa87e4f, 6);
sys/crypto/md5.c
226
MD5STEP(F4, d, a, b, c, in[15] + 0xfe2ce6e0, 10);
sys/crypto/md5.c
227
MD5STEP(F4, c, d, a, b, in[6 ] + 0xa3014314, 15);
sys/crypto/md5.c
228
MD5STEP(F4, b, c, d, a, in[13] + 0x4e0811a1, 21);
sys/crypto/md5.c
229
MD5STEP(F4, a, b, c, d, in[4 ] + 0xf7537e82, 6);
sys/crypto/md5.c
230
MD5STEP(F4, d, a, b, c, in[11] + 0xbd3af235, 10);
sys/crypto/md5.c
231
MD5STEP(F4, c, d, a, b, in[2 ] + 0x2ad7d2bb, 15);
sys/crypto/md5.c
232
MD5STEP(F4, b, c, d, a, in[9 ] + 0xeb86d391, 21);
sys/crypto/md5.c
235
state[1] += b;
sys/crypto/rmd160.c
159
u_int32_t a, b, c, d, e, aa, bb, cc, dd, ee, t, x[16];
sys/crypto/rmd160.c
175
b = state[1];
sys/crypto/rmd160.c
181
R(a, b, c, d, e, F0, K0, 11, 0);
sys/crypto/rmd160.c
182
R(e, a, b, c, d, F0, K0, 14, 1);
sys/crypto/rmd160.c
183
R(d, e, a, b, c, F0, K0, 15, 2);
sys/crypto/rmd160.c
184
R(c, d, e, a, b, F0, K0, 12, 3);
sys/crypto/rmd160.c
185
R(b, c, d, e, a, F0, K0, 5, 4);
sys/crypto/rmd160.c
186
R(a, b, c, d, e, F0, K0, 8, 5);
sys/crypto/rmd160.c
187
R(e, a, b, c, d, F0, K0, 7, 6);
sys/crypto/rmd160.c
188
R(d, e, a, b, c, F0, K0, 9, 7);
sys/crypto/rmd160.c
189
R(c, d, e, a, b, F0, K0, 11, 8);
sys/crypto/rmd160.c
190
R(b, c, d, e, a, F0, K0, 13, 9);
sys/crypto/rmd160.c
191
R(a, b, c, d, e, F0, K0, 14, 10);
sys/crypto/rmd160.c
192
R(e, a, b, c, d, F0, K0, 15, 11);
sys/crypto/rmd160.c
193
R(d, e, a, b, c, F0, K0, 6, 12);
sys/crypto/rmd160.c
194
R(c, d, e, a, b, F0, K0, 7, 13);
sys/crypto/rmd160.c
195
R(b, c, d, e, a, F0, K0, 9, 14);
sys/crypto/rmd160.c
196
R(a, b, c, d, e, F0, K0, 8, 15); /* #15 */
sys/crypto/rmd160.c
198
R(e, a, b, c, d, F1, K1, 7, 7);
sys/crypto/rmd160.c
199
R(d, e, a, b, c, F1, K1, 6, 4);
sys/crypto/rmd160.c
200
R(c, d, e, a, b, F1, K1, 8, 13);
sys/crypto/rmd160.c
201
R(b, c, d, e, a, F1, K1, 13, 1);
sys/crypto/rmd160.c
202
R(a, b, c, d, e, F1, K1, 11, 10);
sys/crypto/rmd160.c
203
R(e, a, b, c, d, F1, K1, 9, 6);
sys/crypto/rmd160.c
204
R(d, e, a, b, c, F1, K1, 7, 15);
sys/crypto/rmd160.c
205
R(c, d, e, a, b, F1, K1, 15, 3);
sys/crypto/rmd160.c
206
R(b, c, d, e, a, F1, K1, 7, 12);
sys/crypto/rmd160.c
207
R(a, b, c, d, e, F1, K1, 12, 0);
sys/crypto/rmd160.c
208
R(e, a, b, c, d, F1, K1, 15, 9);
sys/crypto/rmd160.c
209
R(d, e, a, b, c, F1, K1, 9, 5);
sys/crypto/rmd160.c
210
R(c, d, e, a, b, F1, K1, 11, 2);
sys/crypto/rmd160.c
211
R(b, c, d, e, a, F1, K1, 7, 14);
sys/crypto/rmd160.c
212
R(a, b, c, d, e, F1, K1, 13, 11);
sys/crypto/rmd160.c
213
R(e, a, b, c, d, F1, K1, 12, 8); /* #31 */
sys/crypto/rmd160.c
215
R(d, e, a, b, c, F2, K2, 11, 3);
sys/crypto/rmd160.c
216
R(c, d, e, a, b, F2, K2, 13, 10);
sys/crypto/rmd160.c
217
R(b, c, d, e, a, F2, K2, 6, 14);
sys/crypto/rmd160.c
218
R(a, b, c, d, e, F2, K2, 7, 4);
sys/crypto/rmd160.c
219
R(e, a, b, c, d, F2, K2, 14, 9);
sys/crypto/rmd160.c
220
R(d, e, a, b, c, F2, K2, 9, 15);
sys/crypto/rmd160.c
221
R(c, d, e, a, b, F2, K2, 13, 8);
sys/crypto/rmd160.c
222
R(b, c, d, e, a, F2, K2, 15, 1);
sys/crypto/rmd160.c
223
R(a, b, c, d, e, F2, K2, 14, 2);
sys/crypto/rmd160.c
224
R(e, a, b, c, d, F2, K2, 8, 7);
sys/crypto/rmd160.c
225
R(d, e, a, b, c, F2, K2, 13, 0);
sys/crypto/rmd160.c
226
R(c, d, e, a, b, F2, K2, 6, 6);
sys/crypto/rmd160.c
227
R(b, c, d, e, a, F2, K2, 5, 13);
sys/crypto/rmd160.c
228
R(a, b, c, d, e, F2, K2, 12, 11);
sys/crypto/rmd160.c
229
R(e, a, b, c, d, F2, K2, 7, 5);
sys/crypto/rmd160.c
230
R(d, e, a, b, c, F2, K2, 5, 12); /* #47 */
sys/crypto/rmd160.c
232
R(c, d, e, a, b, F3, K3, 11, 1);
sys/crypto/rmd160.c
233
R(b, c, d, e, a, F3, K3, 12, 9);
sys/crypto/rmd160.c
234
R(a, b, c, d, e, F3, K3, 14, 11);
sys/crypto/rmd160.c
235
R(e, a, b, c, d, F3, K3, 15, 10);
sys/crypto/rmd160.c
236
R(d, e, a, b, c, F3, K3, 14, 0);
sys/crypto/rmd160.c
237
R(c, d, e, a, b, F3, K3, 15, 8);
sys/crypto/rmd160.c
238
R(b, c, d, e, a, F3, K3, 9, 12);
sys/crypto/rmd160.c
239
R(a, b, c, d, e, F3, K3, 8, 4);
sys/crypto/rmd160.c
240
R(e, a, b, c, d, F3, K3, 9, 13);
sys/crypto/rmd160.c
241
R(d, e, a, b, c, F3, K3, 14, 3);
sys/crypto/rmd160.c
242
R(c, d, e, a, b, F3, K3, 5, 7);
sys/crypto/rmd160.c
243
R(b, c, d, e, a, F3, K3, 6, 15);
sys/crypto/rmd160.c
244
R(a, b, c, d, e, F3, K3, 8, 14);
sys/crypto/rmd160.c
245
R(e, a, b, c, d, F3, K3, 6, 5);
sys/crypto/rmd160.c
246
R(d, e, a, b, c, F3, K3, 5, 6);
sys/crypto/rmd160.c
247
R(c, d, e, a, b, F3, K3, 12, 2); /* #63 */
sys/crypto/rmd160.c
249
R(b, c, d, e, a, F4, K4, 9, 4);
sys/crypto/rmd160.c
250
R(a, b, c, d, e, F4, K4, 15, 0);
sys/crypto/rmd160.c
251
R(e, a, b, c, d, F4, K4, 5, 5);
sys/crypto/rmd160.c
252
R(d, e, a, b, c, F4, K4, 11, 9);
sys/crypto/rmd160.c
253
R(c, d, e, a, b, F4, K4, 6, 7);
sys/crypto/rmd160.c
254
R(b, c, d, e, a, F4, K4, 8, 12);
sys/crypto/rmd160.c
255
R(a, b, c, d, e, F4, K4, 13, 2);
sys/crypto/rmd160.c
256
R(e, a, b, c, d, F4, K4, 12, 10);
sys/crypto/rmd160.c
257
R(d, e, a, b, c, F4, K4, 5, 14);
sys/crypto/rmd160.c
258
R(c, d, e, a, b, F4, K4, 12, 1);
sys/crypto/rmd160.c
259
R(b, c, d, e, a, F4, K4, 13, 3);
sys/crypto/rmd160.c
260
R(a, b, c, d, e, F4, K4, 14, 8);
sys/crypto/rmd160.c
261
R(e, a, b, c, d, F4, K4, 11, 11);
sys/crypto/rmd160.c
262
R(d, e, a, b, c, F4, K4, 8, 6);
sys/crypto/rmd160.c
263
R(c, d, e, a, b, F4, K4, 5, 15);
sys/crypto/rmd160.c
264
R(b, c, d, e, a, F4, K4, 6, 13); /* #79 */
sys/crypto/rmd160.c
266
aa = a ; bb = b; cc = c; dd = d; ee = e;
sys/crypto/rmd160.c
269
b = state[1];
sys/crypto/rmd160.c
275
R(a, b, c, d, e, F4, KK0, 8, 5);
sys/crypto/rmd160.c
276
R(e, a, b, c, d, F4, KK0, 9, 14);
sys/crypto/rmd160.c
277
R(d, e, a, b, c, F4, KK0, 9, 7);
sys/crypto/rmd160.c
278
R(c, d, e, a, b, F4, KK0, 11, 0);
sys/crypto/rmd160.c
279
R(b, c, d, e, a, F4, KK0, 13, 9);
sys/crypto/rmd160.c
280
R(a, b, c, d, e, F4, KK0, 15, 2);
sys/crypto/rmd160.c
281
R(e, a, b, c, d, F4, KK0, 15, 11);
sys/crypto/rmd160.c
282
R(d, e, a, b, c, F4, KK0, 5, 4);
sys/crypto/rmd160.c
283
R(c, d, e, a, b, F4, KK0, 7, 13);
sys/crypto/rmd160.c
284
R(b, c, d, e, a, F4, KK0, 7, 6);
sys/crypto/rmd160.c
285
R(a, b, c, d, e, F4, KK0, 8, 15);
sys/crypto/rmd160.c
286
R(e, a, b, c, d, F4, KK0, 11, 8);
sys/crypto/rmd160.c
287
R(d, e, a, b, c, F4, KK0, 14, 1);
sys/crypto/rmd160.c
288
R(c, d, e, a, b, F4, KK0, 14, 10);
sys/crypto/rmd160.c
289
R(b, c, d, e, a, F4, KK0, 12, 3);
sys/crypto/rmd160.c
290
R(a, b, c, d, e, F4, KK0, 6, 12); /* #15 */
sys/crypto/rmd160.c
292
R(e, a, b, c, d, F3, KK1, 9, 6);
sys/crypto/rmd160.c
293
R(d, e, a, b, c, F3, KK1, 13, 11);
sys/crypto/rmd160.c
294
R(c, d, e, a, b, F3, KK1, 15, 3);
sys/crypto/rmd160.c
295
R(b, c, d, e, a, F3, KK1, 7, 7);
sys/crypto/rmd160.c
296
R(a, b, c, d, e, F3, KK1, 12, 0);
sys/crypto/rmd160.c
297
R(e, a, b, c, d, F3, KK1, 8, 13);
sys/crypto/rmd160.c
298
R(d, e, a, b, c, F3, KK1, 9, 5);
sys/crypto/rmd160.c
299
R(c, d, e, a, b, F3, KK1, 11, 10);
sys/crypto/rmd160.c
300
R(b, c, d, e, a, F3, KK1, 7, 14);
sys/crypto/rmd160.c
301
R(a, b, c, d, e, F3, KK1, 7, 15);
sys/crypto/rmd160.c
302
R(e, a, b, c, d, F3, KK1, 12, 8);
sys/crypto/rmd160.c
303
R(d, e, a, b, c, F3, KK1, 7, 12);
sys/crypto/rmd160.c
304
R(c, d, e, a, b, F3, KK1, 6, 4);
sys/crypto/rmd160.c
305
R(b, c, d, e, a, F3, KK1, 15, 9);
sys/crypto/rmd160.c
306
R(a, b, c, d, e, F3, KK1, 13, 1);
sys/crypto/rmd160.c
307
R(e, a, b, c, d, F3, KK1, 11, 2); /* #31 */
sys/crypto/rmd160.c
309
R(d, e, a, b, c, F2, KK2, 9, 15);
sys/crypto/rmd160.c
310
R(c, d, e, a, b, F2, KK2, 7, 5);
sys/crypto/rmd160.c
311
R(b, c, d, e, a, F2, KK2, 15, 1);
sys/crypto/rmd160.c
312
R(a, b, c, d, e, F2, KK2, 11, 3);
sys/crypto/rmd160.c
313
R(e, a, b, c, d, F2, KK2, 8, 7);
sys/crypto/rmd160.c
314
R(d, e, a, b, c, F2, KK2, 6, 14);
sys/crypto/rmd160.c
315
R(c, d, e, a, b, F2, KK2, 6, 6);
sys/crypto/rmd160.c
316
R(b, c, d, e, a, F2, KK2, 14, 9);
sys/crypto/rmd160.c
317
R(a, b, c, d, e, F2, KK2, 12, 11);
sys/crypto/rmd160.c
318
R(e, a, b, c, d, F2, KK2, 13, 8);
sys/crypto/rmd160.c
319
R(d, e, a, b, c, F2, KK2, 5, 12);
sys/crypto/rmd160.c
320
R(c, d, e, a, b, F2, KK2, 14, 2);
sys/crypto/rmd160.c
321
R(b, c, d, e, a, F2, KK2, 13, 10);
sys/crypto/rmd160.c
322
R(a, b, c, d, e, F2, KK2, 13, 0);
sys/crypto/rmd160.c
323
R(e, a, b, c, d, F2, KK2, 7, 4);
sys/crypto/rmd160.c
324
R(d, e, a, b, c, F2, KK2, 5, 13); /* #47 */
sys/crypto/rmd160.c
326
R(c, d, e, a, b, F1, KK3, 15, 8);
sys/crypto/rmd160.c
327
R(b, c, d, e, a, F1, KK3, 5, 6);
sys/crypto/rmd160.c
328
R(a, b, c, d, e, F1, KK3, 8, 4);
sys/crypto/rmd160.c
329
R(e, a, b, c, d, F1, KK3, 11, 1);
sys/crypto/rmd160.c
330
R(d, e, a, b, c, F1, KK3, 14, 3);
sys/crypto/rmd160.c
331
R(c, d, e, a, b, F1, KK3, 14, 11);
sys/crypto/rmd160.c
332
R(b, c, d, e, a, F1, KK3, 6, 15);
sys/crypto/rmd160.c
333
R(a, b, c, d, e, F1, KK3, 14, 0);
sys/crypto/rmd160.c
334
R(e, a, b, c, d, F1, KK3, 6, 5);
sys/crypto/rmd160.c
335
R(d, e, a, b, c, F1, KK3, 9, 12);
sys/crypto/rmd160.c
336
R(c, d, e, a, b, F1, KK3, 12, 2);
sys/crypto/rmd160.c
337
R(b, c, d, e, a, F1, KK3, 9, 13);
sys/crypto/rmd160.c
338
R(a, b, c, d, e, F1, KK3, 12, 9);
sys/crypto/rmd160.c
339
R(e, a, b, c, d, F1, KK3, 5, 7);
sys/crypto/rmd160.c
340
R(d, e, a, b, c, F1, KK3, 15, 10);
sys/crypto/rmd160.c
341
R(c, d, e, a, b, F1, KK3, 8, 14); /* #63 */
sys/crypto/rmd160.c
343
R(b, c, d, e, a, F0, KK4, 8, 12);
sys/crypto/rmd160.c
344
R(a, b, c, d, e, F0, KK4, 5, 15);
sys/crypto/rmd160.c
345
R(e, a, b, c, d, F0, KK4, 12, 10);
sys/crypto/rmd160.c
346
R(d, e, a, b, c, F0, KK4, 9, 4);
sys/crypto/rmd160.c
347
R(c, d, e, a, b, F0, KK4, 12, 1);
sys/crypto/rmd160.c
348
R(b, c, d, e, a, F0, KK4, 5, 5);
sys/crypto/rmd160.c
349
R(a, b, c, d, e, F0, KK4, 14, 8);
sys/crypto/rmd160.c
350
R(e, a, b, c, d, F0, KK4, 6, 7);
sys/crypto/rmd160.c
351
R(d, e, a, b, c, F0, KK4, 8, 6);
sys/crypto/rmd160.c
352
R(c, d, e, a, b, F0, KK4, 13, 2);
sys/crypto/rmd160.c
353
R(b, c, d, e, a, F0, KK4, 6, 13);
sys/crypto/rmd160.c
354
R(a, b, c, d, e, F0, KK4, 5, 14);
sys/crypto/rmd160.c
355
R(e, a, b, c, d, F0, KK4, 15, 0);
sys/crypto/rmd160.c
356
R(d, e, a, b, c, F0, KK4, 13, 3);
sys/crypto/rmd160.c
357
R(c, d, e, a, b, F0, KK4, 11, 9);
sys/crypto/rmd160.c
358
R(b, c, d, e, a, F0, KK4, 11, 11); /* #79 */
sys/crypto/rmd160.c
363
state[3] = state[4] + aa + b;
sys/crypto/rmd160.c
78
#define R(a, b, c, d, e, Fj, Kj, sj, rj) \
sys/crypto/rmd160.c
80
a = ROL(sj, a + Fj(b,c,d) + X(rj) + Kj) + e; \
sys/crypto/sha1.c
102
a = b = c = d = e = 0;
sys/crypto/sha1.c
52
u_int32_t a, b, c, d, e;
sys/crypto/sha1.c
68
b = state[1];
sys/crypto/sha1.c
74
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);
sys/crypto/sha1.c
75
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);
sys/crypto/sha1.c
76
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);
sys/crypto/sha1.c
77
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);
sys/crypto/sha1.c
78
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);
sys/crypto/sha1.c
79
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);
sys/crypto/sha1.c
80
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);
sys/crypto/sha1.c
81
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);
sys/crypto/sha1.c
82
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);
sys/crypto/sha1.c
83
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);
sys/crypto/sha1.c
84
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);
sys/crypto/sha1.c
85
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);
sys/crypto/sha1.c
86
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);
sys/crypto/sha1.c
87
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);
sys/crypto/sha1.c
88
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);
sys/crypto/sha1.c
89
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);
sys/crypto/sha1.c
90
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);
sys/crypto/sha1.c
91
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);
sys/crypto/sha1.c
92
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);
sys/crypto/sha1.c
93
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);
sys/crypto/sha1.c
97
state[1] += b;
sys/crypto/sha2.c
121
#define R(b,x) ((x) >> (b))
sys/crypto/sha2.c
123
#define S32(b,x) (((x) >> (b)) | ((x) << (32 - (b))))
sys/crypto/sha2.c
125
#define S64(b,x) (((x) >> (b)) | ((x) << (64 - (b))))
sys/crypto/sha2.c
269
#define ROUND256_0_TO_15(a,b,c,d,e,f,g,h) do { \
sys/crypto/sha2.c
275
(h) = T1 + Sigma0_256((a)) + Maj((a), (b), (c)); \
sys/crypto/sha2.c
279
#define ROUND256(a,b,c,d,e,f,g,h) do { \
sys/crypto/sha2.c
287
(h) = T1 + Sigma0_256((a)) + Maj((a), (b), (c)); \
sys/crypto/sha2.c
294
u_int32_t a, b, c, d, e, f, g, h, s0, s1;
sys/crypto/sha2.c
300
b = state[1];
sys/crypto/sha2.c
311
ROUND256_0_TO_15(a,b,c,d,e,f,g,h);
sys/crypto/sha2.c
312
ROUND256_0_TO_15(h,a,b,c,d,e,f,g);
sys/crypto/sha2.c
313
ROUND256_0_TO_15(g,h,a,b,c,d,e,f);
sys/crypto/sha2.c
314
ROUND256_0_TO_15(f,g,h,a,b,c,d,e);
sys/crypto/sha2.c
315
ROUND256_0_TO_15(e,f,g,h,a,b,c,d);
sys/crypto/sha2.c
316
ROUND256_0_TO_15(d,e,f,g,h,a,b,c);
sys/crypto/sha2.c
317
ROUND256_0_TO_15(c,d,e,f,g,h,a,b);
sys/crypto/sha2.c
318
ROUND256_0_TO_15(b,c,d,e,f,g,h,a);
sys/crypto/sha2.c
323
ROUND256(a,b,c,d,e,f,g,h);
sys/crypto/sha2.c
324
ROUND256(h,a,b,c,d,e,f,g);
sys/crypto/sha2.c
325
ROUND256(g,h,a,b,c,d,e,f);
sys/crypto/sha2.c
326
ROUND256(f,g,h,a,b,c,d,e);
sys/crypto/sha2.c
327
ROUND256(e,f,g,h,a,b,c,d);
sys/crypto/sha2.c
328
ROUND256(d,e,f,g,h,a,b,c);
sys/crypto/sha2.c
329
ROUND256(c,d,e,f,g,h,a,b);
sys/crypto/sha2.c
330
ROUND256(b,c,d,e,f,g,h,a);
sys/crypto/sha2.c
335
state[1] += b;
sys/crypto/sha2.c
344
a = b = c = d = e = f = g = h = T1 = 0;
sys/crypto/sha2.c
352
u_int32_t a, b, c, d, e, f, g, h, s0, s1;
sys/crypto/sha2.c
358
b = state[1];
sys/crypto/sha2.c
373
T2 = Sigma0_256(a) + Maj(a, b, c);
sys/crypto/sha2.c
379
c = b;
sys/crypto/sha2.c
380
b = a;
sys/crypto/sha2.c
396
T2 = Sigma0_256(a) + Maj(a, b, c);
sys/crypto/sha2.c
402
c = b;
sys/crypto/sha2.c
403
b = a;
sys/crypto/sha2.c
411
state[1] += b;
sys/crypto/sha2.c
420
a = b = c = d = e = f = g = h = T1 = T2 = 0;
sys/crypto/sha2.c
545
#define ROUND512_0_TO_15(a,b,c,d,e,f,g,h) do { \
sys/crypto/sha2.c
553
(h) = T1 + Sigma0_512((a)) + Maj((a), (b), (c)); \
sys/crypto/sha2.c
558
#define ROUND512(a,b,c,d,e,f,g,h) do { \
sys/crypto/sha2.c
566
(h) = T1 + Sigma0_512((a)) + Maj((a), (b), (c)); \
sys/crypto/sha2.c
573
u_int64_t a, b, c, d, e, f, g, h, s0, s1;
sys/crypto/sha2.c
579
b = state[1];
sys/crypto/sha2.c
589
ROUND512_0_TO_15(a,b,c,d,e,f,g,h);
sys/crypto/sha2.c
590
ROUND512_0_TO_15(h,a,b,c,d,e,f,g);
sys/crypto/sha2.c
591
ROUND512_0_TO_15(g,h,a,b,c,d,e,f);
sys/crypto/sha2.c
592
ROUND512_0_TO_15(f,g,h,a,b,c,d,e);
sys/crypto/sha2.c
593
ROUND512_0_TO_15(e,f,g,h,a,b,c,d);
sys/crypto/sha2.c
594
ROUND512_0_TO_15(d,e,f,g,h,a,b,c);
sys/crypto/sha2.c
595
ROUND512_0_TO_15(c,d,e,f,g,h,a,b);
sys/crypto/sha2.c
596
ROUND512_0_TO_15(b,c,d,e,f,g,h,a);
sys/crypto/sha2.c
601
ROUND512(a,b,c,d,e,f,g,h);
sys/crypto/sha2.c
602
ROUND512(h,a,b,c,d,e,f,g);
sys/crypto/sha2.c
603
ROUND512(g,h,a,b,c,d,e,f);
sys/crypto/sha2.c
604
ROUND512(f,g,h,a,b,c,d,e);
sys/crypto/sha2.c
605
ROUND512(e,f,g,h,a,b,c,d);
sys/crypto/sha2.c
606
ROUND512(d,e,f,g,h,a,b,c);
sys/crypto/sha2.c
607
ROUND512(c,d,e,f,g,h,a,b);
sys/crypto/sha2.c
608
ROUND512(b,c,d,e,f,g,h,a);
sys/crypto/sha2.c
613
state[1] += b;
sys/crypto/sha2.c
622
a = b = c = d = e = f = g = h = T1 = 0;
sys/crypto/sha2.c
630
u_int64_t a, b, c, d, e, f, g, h, s0, s1;
sys/crypto/sha2.c
636
b = state[1];
sys/crypto/sha2.c
653
T2 = Sigma0_512(a) + Maj(a, b, c);
sys/crypto/sha2.c
659
c = b;
sys/crypto/sha2.c
660
b = a;
sys/crypto/sha2.c
676
T2 = Sigma0_512(a) + Maj(a, b, c);
sys/crypto/sha2.c
682
c = b;
sys/crypto/sha2.c
683
b = a;
sys/crypto/sha2.c
691
state[1] += b;
sys/crypto/sha2.c
700
a = b = c = d = e = f = g = h = T1 = T2 = 0;
sys/crypto/siphash.c
147
#define SIP_ROTL(x, b) ((x) << (b)) | ( (x) >> (64 - (b)))
sys/dev/acpi/acpi.c
1971
int b,d,f;
sys/dev/acpi/acpi.c
1986
pci_decompose_tag(NULL, wsc->sc_tag, &b, &d, &f);
sys/dev/acpi/acpi.c
1987
if (b != ACPI_PCI_BUS(ide->addr) ||
sys/dev/acpi/acpi.c
1992
dev->dv_xname, b,d,f, ide->chnl);
sys/dev/acpi/acpidmar.c
92
mksid(int b, int d, int f)
sys/dev/acpi/acpidmar.c
94
return (b << 8) + (d << 3) + f;
sys/dev/acpi/acpithinkpad.c
641
int b;
sys/dev/acpi/acpithinkpad.c
644
b = sc->sc_brightness & 0xff;
sys/dev/acpi/acpithinkpad.c
645
if (b < ((sc->sc_brightness >> 8) & 0xff)) {
sys/dev/acpi/acpithinkpad.c
646
sc->sc_brightness = b + 1;
sys/dev/acpi/acpithinkpad.c
658
int b;
sys/dev/acpi/acpithinkpad.c
661
b = sc->sc_brightness & 0xff;
sys/dev/acpi/acpithinkpad.c
662
if (b > 0) {
sys/dev/acpi/acpithinkpad.c
663
sc->sc_brightness = b - 1;
sys/dev/acpi/acpivar.h
46
#define ACPI_UUID(a, b, c, d, e) \
sys/dev/acpi/acpivar.h
48
(b), (b) >> 8, (c), (c) >> 8, (d) >> 8, (d), \
sys/dev/acpi/dsdt.c
1960
aml_matchtest(int64_t a, int64_t b, int op)
sys/dev/acpi/dsdt.c
1966
return (a == b);
sys/dev/acpi/dsdt.c
1968
return (a < b);
sys/dev/acpi/dsdt.c
1970
return (a <= b);
sys/dev/acpi/dsdt.c
1972
return (a >= b);
sys/dev/acpi/dsdt.c
1974
return (a > b);
sys/dev/audio.c
249
audio_gcd(unsigned int a, unsigned int b)
sys/dev/audio.c
253
while (b > 0) {
sys/dev/audio.c
254
r = a % b;
sys/dev/audio.c
255
a = b;
sys/dev/audio.c
256
b = r;
sys/dev/bio.c
49
bio_cookie_cmp(const struct bio_mapping *a, const struct bio_mapping *b)
sys/dev/bio.c
51
if (a->bm_cookie < b->bm_cookie)
sys/dev/bio.c
53
if (a->bm_cookie > b->bm_cookie)
sys/dev/fdt/if_mvnetareg.h
504
#define MVNETA_PRXSNP_SNOOPNOOFBYTES(b) (((b) & 0x3fff) << 0)
sys/dev/fdt/if_mvnetareg.h
505
#define MVNETA_PRXSNP_L2DEPOSITNOOFBYTES(b) (((b) & 0x3fff) << 16)
sys/dev/fdt/if_mvnetareg.h
549
#define MVNETA_TXNB_NOOFNEWBYTES(b) (((b) & 0xffff) << 0)
sys/dev/i2c/asc7611.c
206
uint16_t b = m << 8 | l;
sys/dev/i2c/asc7611.c
208
if (b >= 0xfffc || b == 0) {
sys/dev/i2c/asc7611.c
212
s[i].value = (90000 * 60) / b;
sys/dev/i2c/tsl2560.c
206
u_int32_t b, m;
sys/dev/i2c/tsl2560.c
214
b = 0, m = 0;
sys/dev/i2c/tsl2560.c
216
b = TSL2560_B1T, m = TSL2560_M1T;
sys/dev/i2c/tsl2560.c
218
b = TSL2560_B2T, m = TSL2560_M2T;
sys/dev/i2c/tsl2560.c
220
b = TSL2560_B3T, m = TSL2560_M3T;
sys/dev/i2c/tsl2560.c
222
b = TSL2560_B4T, m = TSL2560_M4T;
sys/dev/i2c/tsl2560.c
224
b = TSL2560_B5T, m = TSL2560_M5T;
sys/dev/i2c/tsl2560.c
226
b = TSL2560_B6T, m = TSL2560_M6T;
sys/dev/i2c/tsl2560.c
228
b = TSL2560_B7T, m = TSL2560_M7T;
sys/dev/i2c/tsl2560.c
230
lux = b * chan0 - m * chan1;
sys/dev/i2c/w83793g.c
267
uint16_t b = h << 8 | l;
sys/dev/i2c/w83793g.c
269
if (b >= 0x0fff || b == 0x0f00 || b == 0x0000) {
sys/dev/i2c/w83793g.c
274
s[i].value = 1350000 / b;
sys/dev/ic/aacreg.h
1081
#define AAC_BTL_TO_HANDLE(b, t, l) \
sys/dev/ic/aacreg.h
1082
(((b & 0x3f) << 7) | ((l & 0x7) << 4) | (t & 0xf))
sys/dev/ic/ac97.c
637
ac97_str_equal(const char *a, const char *b)
sys/dev/ic/ac97.c
639
return ((a == b) || (a && b && (!strcmp(a, b))));
sys/dev/ic/acxvar.h
93
#define CSR_SETB_2(sc, reg, b) \
sys/dev/ic/acxvar.h
94
CSR_WRITE_2((sc), (reg), CSR_READ_2((sc), (reg)) | (b))
sys/dev/ic/acxvar.h
95
#define CSR_CLRB_2(sc, reg, b) \
sys/dev/ic/acxvar.h
96
CSR_WRITE_2((sc), (reg), CSR_READ_2((sc), (reg)) & (~(b)))
sys/dev/ic/aic6360.c
2005
u_char *b = (u_char *)&acb->scsi_cmd;
sys/dev/ic/aic6360.c
2014
printf("%x", b[i]);
sys/dev/ic/aic6360var.h
193
#define AIC_PRINT(b, s) do {if ((aic_debug & (b)) != 0) printf s;} while (0)
sys/dev/ic/aic6360var.h
205
#define AIC_PRINT(b, s)
sys/dev/ic/aic79xx.h
86
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
sys/dev/ic/aic79xx.h
90
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
sys/dev/ic/aic79xx_openbsd.h
204
#define scsi_4btoul(b) (_4btol(b))
sys/dev/ic/aic7xxxvar.h
61
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
sys/dev/ic/aic7xxxvar.h
65
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
sys/dev/ic/ar5211.c
2402
u_int a, b, g;
sys/dev/ic/ar5211.c
2408
b = AR5K_EEPROM_HDR_11B(ee_header);
sys/dev/ic/ar5211.c
2415
if (!a && !b && !g)
sys/dev/ic/ar5211.c
2416
b = 1;
sys/dev/ic/ar5211.c
2441
if (b || g) {
sys/dev/ic/ar5211.c
2445
if (b)
sys/dev/ic/ar5212.c
2828
u_int a, b, g;
sys/dev/ic/ar5212.c
2834
b = AR5K_EEPROM_HDR_11B(ee_header);
sys/dev/ic/ar5212.c
2841
if (!a && !b && !g)
sys/dev/ic/ar5212.c
2842
b = 1;
sys/dev/ic/ar5212.c
2868
if (b || g) {
sys/dev/ic/ar5212.c
2872
if (b)
sys/dev/ic/athn.c
1939
#define divround(a, b) (((a) + (b) - 1) / (b))
sys/dev/ic/dc21040reg.h
38
#define TULIP_BITFIELD2(a, b) b, a
sys/dev/ic/dc21040reg.h
39
#define TULIP_BITFIELD3(a, b, c) c, b, a
sys/dev/ic/dc21040reg.h
40
#define TULIP_BITFIELD4(a, b, c, d) d, c, b, a
sys/dev/ic/dc21040reg.h
42
#define TULIP_BITFIELD2(a, b) a, b
sys/dev/ic/dc21040reg.h
43
#define TULIP_BITFIELD3(a, b, c) a, b, c
sys/dev/ic/dc21040reg.h
44
#define TULIP_BITFIELD4(a, b, c, d) a, b, c, d
sys/dev/ic/dc21040reg.h
608
#define TULIP_SROM_2114X_BITPOS(b) (1 << (((b) & 0x0E) >> 1))
sys/dev/ic/dwiic.c
100
DPRINTF(("%s: read at 0x%x = 0x%x\n", sc->sc_dev.dv_xname, offset, b));
sys/dev/ic/dwiic.c
102
return b;
sys/dev/ic/dwiic.c
225
uint8_t *b;
sys/dev/ic/dwiic.c
293
b = (void *)cmdbuf;
sys/dev/ic/dwiic.c
298
DPRINTF((" %02x", b[x]));
sys/dev/ic/dwiic.c
312
cmd = b[x];
sys/dev/ic/dwiic.c
323
b = (void *)buf;
sys/dev/ic/dwiic.c
332
cmd = b[x];
sys/dev/ic/dwiic.c
408
b[readpos] = resp;
sys/dev/ic/dwiic.c
418
if (I2C_OP_BLKMODE_P(op) && readpos > 0 && len > b[0])
sys/dev/ic/dwiic.c
419
len = b[0] + 1;
sys/dev/ic/dwiic.c
98
u_int32_t b = bus_space_read_4(sc->sc_iot, sc->sc_ioh, offset);
sys/dev/ic/fxp.c
96
volatile u_int16_t *b = (u_int16_t *)dst;
sys/dev/ic/fxp.c
98
b[0] = a[0];
sys/dev/ic/fxp.c
99
b[1] = a[1];
sys/dev/ic/hmereg.h
270
#define HME_XD_GETFLAGS(p, b, i) \
sys/dev/ic/hmereg.h
271
(p) ? letoh32(*((u_int32_t *)HME_XD_FLAGS(b,i))) : \
sys/dev/ic/hmereg.h
272
(*((u_int32_t *)HME_XD_FLAGS(b,i)))
sys/dev/ic/hmereg.h
273
#define HME_XD_SETFLAGS(p, b, i, f) do { \
sys/dev/ic/hmereg.h
274
*((u_int32_t *)HME_XD_FLAGS(b,i)) = ((p) ? htole32(f) : (f)); \
sys/dev/ic/hmereg.h
276
#define HME_XD_SETADDR(p, b, i, a) do { \
sys/dev/ic/hmereg.h
277
*((u_int32_t *)HME_XD_ADDR(b,i)) = ((p) ? htole32(a) : (a)); \
sys/dev/ic/i82596reg.h
215
#define IE_RFRAME_STATUS(b,i) (IE_RFRAME_ADDR(b,i) + 0)
sys/dev/ic/i82596reg.h
216
#define IE_RFRAME_LAST(b,i) (IE_RFRAME_ADDR(b,i) + 2)
sys/dev/ic/i82596reg.h
217
#define IE_RFRAME_NEXT(b,i) (IE_RFRAME_ADDR(b,i) + 4)
sys/dev/ic/i82596reg.h
218
#define IE_RFRAME_BUFDESC(b,i) (IE_RFRAME_ADDR(b,i) + 6)
sys/dev/ic/i82596reg.h
219
#define IE_RFRAME_EDST(b,i) (IE_RFRAME_ADDR(b,i) + 8)
sys/dev/ic/i82596reg.h
220
#define IE_RFRAME_ESRC(b,i) (IE_RFRAME_ADDR(b,i) + 14)
sys/dev/ic/i82596reg.h
221
#define IE_RFRAME_ELEN(b,i) (IE_RFRAME_ADDR(b,i) + 20)
sys/dev/ic/i82596reg.h
255
#define IE_RBD_STATUS(b,i) (IE_RBD_ADDR(b,i) + 0)
sys/dev/ic/i82596reg.h
256
#define IE_RBD_NEXT(b,i) (IE_RBD_ADDR(b,i) + 2)
sys/dev/ic/i82596reg.h
257
#define IE_RBD_BUFADDR(b,i) (IE_RBD_ADDR(b,i) + 4)
sys/dev/ic/i82596reg.h
258
#define IE_RBD_BUFLEN(b,i) (IE_RBD_ADDR(b,i) + 8)
sys/dev/ic/i82596reg.h
307
#define IE_CMD_NOP_STATUS(b,i) (IE_CMD_NOP_ADDR(b,i) + 0)
sys/dev/ic/i82596reg.h
308
#define IE_CMD_NOP_CMD(b,i) (IE_CMD_NOP_ADDR(b,i) + 2)
sys/dev/ic/i82596reg.h
309
#define IE_CMD_NOP_LINK(b,i) (IE_CMD_NOP_ADDR(b,i) + 4)
sys/dev/ic/i82596reg.h
326
#define IE_CMD_XMIT_STATUS(b,i) (IE_CMD_XMIT_ADDR(b,i) + 0)
sys/dev/ic/i82596reg.h
327
#define IE_CMD_XMIT_CMD(b,i) (IE_CMD_XMIT_ADDR(b,i) + 2)
sys/dev/ic/i82596reg.h
328
#define IE_CMD_XMIT_LINK(b,i) (IE_CMD_XMIT_ADDR(b,i) + 4)
sys/dev/ic/i82596reg.h
329
#define IE_CMD_XMIT_DESC(b,i) \
sys/dev/ic/i82596reg.h
330
(IE_CMD_XMIT_ADDR(b,i) + IE_CMD_COMMON_SZ + 0)
sys/dev/ic/i82596reg.h
331
#define IE_CMD_XMIT_EADDR(b,i) \
sys/dev/ic/i82596reg.h
332
(IE_CMD_XMIT_ADDR(b,i) + IE_CMD_COMMON_SZ + 2)
sys/dev/ic/i82596reg.h
333
#define IE_CMD_XMIT_LEN(b,i) \
sys/dev/ic/i82596reg.h
334
(IE_CMD_XMIT_ADDR(b,i) + IE_CMD_COMMON_SZ + 8)
sys/dev/ic/i82596reg.h
359
#define IE_XBD_FLAGS(b,i) (IE_XBD_ADDR(b,i) + 0)
sys/dev/ic/i82596reg.h
360
#define IE_XBD_NEXT(b,i) (IE_XBD_ADDR(b,i) + 2)
sys/dev/ic/i82596reg.h
361
#define IE_XBD_BUF(b,i) (IE_XBD_ADDR(b,i) + 4)
sys/dev/ic/if_wi_hostap.c
320
addr_cmp(u_int8_t a[], u_int8_t b[])
sys/dev/ic/if_wi_hostap.c
322
return (*(u_int16_t *)(a + 4) == *(u_int16_t *)(b + 4) &&
sys/dev/ic/if_wi_hostap.c
323
*(u_int16_t *)(a + 2) == *(u_int16_t *)(b + 2) &&
sys/dev/ic/if_wi_hostap.c
324
*(u_int16_t *)(a ) == *(u_int16_t *)(b));
sys/dev/ic/iha.c
2599
u_int8_t b;
sys/dev/ic/iha.c
2602
b = NVRCS | NVRDO; /* Write the start bit (== 1) */
sys/dev/ic/iha.c
2604
bus_space_write_1(iot, ioh, TUL_NVRAM, b);
sys/dev/ic/iha.c
2606
bus_space_write_1(iot, ioh, TUL_NVRAM, b | NVRCK);
sys/dev/ic/iha.c
2611
b = NVRCS | NVRDO; /* Write a 1 bit */
sys/dev/ic/iha.c
2613
b = NVRCS; /* Write a 0 bit */
sys/dev/ic/iha.c
2615
bus_space_write_1(iot, ioh, TUL_NVRAM, b);
sys/dev/ic/iha.c
2617
bus_space_write_1(iot, ioh, TUL_NVRAM, b | NVRCK);
sys/dev/ic/lance.c
134
uint16_t *b = (uint16_t *)two;
sys/dev/ic/lance.c
143
diff = *a++ - *b++;
sys/dev/ic/lance.c
144
diff |= *a++ - *b++;
sys/dev/ic/lance.c
145
diff |= *a++ - *b++;
sys/dev/ic/lance.c
152
diff = (a[0] - b[0]) | (a[1] - b[1]) | (a[2] - b[2]);
sys/dev/ic/malo.c
1918
u_char b[16];
sys/dev/ic/malo.c
1923
l = min(sizeof(b), len - i);
sys/dev/ic/malo.c
1924
bcopy(buf + i, b, l);
sys/dev/ic/malo.c
1926
for (j = 0; j < sizeof(b); j++) {
sys/dev/ic/malo.c
1932
printf("%02x", (int)b[j]);
sys/dev/ic/malo.c
1938
if (b[j] >= 0x20 && b[j] <= 0x7e)
sys/dev/ic/malo.c
1939
printf("%c", b[j]);
sys/dev/ic/mfi.c
1210
mbox.b[0] = MR_FLUSH_CTRL_CACHE | MR_FLUSH_DISK_CACHE;
sys/dev/ic/mfi.c
1446
mbox.b[0] = link->target;
sys/dev/ic/mfi.c
1473
mbox.b[0] = ldp.mlp_ld.mld_target;
sys/dev/ic/mfi.c
1474
mbox.b[1] = ldp.mlp_ld.mld_res;
sys/dev/ic/mfi.c
1629
mbox.b[0] = sc->sc_ld_list.mll_list[i].mll_ld.mld_target;
sys/dev/ic/mfi.c
2039
mbox.b[4] = MFI_PD_ONLINE;
sys/dev/ic/mfi.c
2043
mbox.b[4] = MFI_PD_OFFLINE;
sys/dev/ic/mfi.c
2047
mbox.b[4] = MFI_PD_HOTSPARE;
sys/dev/ic/mfi.c
2051
mbox.b[4] = MFI_PD_REBUILD;
sys/dev/ic/mfireg.h
177
uint8_t b[MFI_MBOX_SIZE];
sys/dev/ic/mfireg.h
634
uint8_t b[96];
sys/dev/ic/ncr53c9xvar.h
123
#define ECB_TRACE(ecb, msg, a, b) do { \
sys/dev/ic/ncr53c9xvar.h
127
snprintf((ecb)->trace + n, sizeof((ecb)->trace) - n, f, a, b); \
sys/dev/ic/ncr53c9xvar.h
130
#define ECB_TRACE(ecb, msg, a, b)
sys/dev/ic/osiop.c
128
#define OSIOP_TRACE(a,b,c,d) do { \
sys/dev/ic/osiop.c
130
osiop_trbuf[osiop_trix + 1] = (b); \
sys/dev/ic/osiop.c
140
#define OSIOP_TRACE(a,b,c,d)
sys/dev/ic/osiop.c
1943
u_int8_t *b;
sys/dev/ic/osiop.c
1952
b = (u_int8_t *)&acb->ds->scsi_cmd;
sys/dev/ic/osiop.c
1959
printf(" %02x", *b++);
sys/dev/ic/qla.c
1309
u_int16_t a, b, i;
sys/dev/ic/qla.c
1313
b = qla_read(sc, queue);
sys/dev/ic/qla.c
1315
if (a == b)
sys/dev/ic/qla.c
2136
int b;
sys/dev/ic/qla.c
2143
for (b = 0; b < 16; b++) {
sys/dev/ic/qla.c
2144
printf(" %2.2x", iocb[(l*16)+b]);
sys/dev/ic/qla.c
2156
int s, b;
sys/dev/ic/qla.c
2162
for (b = 0; b < sizeof(struct qla_iocb_seg); b++) {
sys/dev/ic/qla.c
2164
+ b]);
sys/dev/ic/qlw.c
1237
int b;
sys/dev/ic/qlw.c
1244
for (b = 0; b < 16; b++) {
sys/dev/ic/qlw.c
1245
printf(" %2.2x", iocb[(l*16)+b]);
sys/dev/ic/qlw.c
1255
int s, b;
sys/dev/ic/qlw.c
1261
for (b = 0; b < sizeof(struct qlw_iocb_seg); b++) {
sys/dev/ic/qlw.c
1263
+ b]);
sys/dev/ic/sti.c
1099
sti_setcment(struct sti_screen *scr, u_int i, u_char r, u_char g, u_char b)
sys/dev/ic/sti.c
1112
a.in.value = (r << 16) | (g << 8) | b;
sys/dev/ic/sti.c
1118
i, r, g, b, a.out.errno);
sys/dev/ic/sti.c
1647
uint8_t *r, *g, *b;
sys/dev/ic/sti.c
1657
b = scr->scr_bcmap + idx;
sys/dev/ic/sti.c
1668
(*r << 16) | (*g << 8) | *b);
sys/dev/ic/sti.c
1671
r++, g++, b++;
sys/dev/ic/ti.c
389
u_int32_t *b;
sys/dev/ic/ti.c
411
b = (u_int32_t *)buf;
sys/dev/ic/ti.c
414
b[i] = letoh32(b[i]);
sys/dev/ic/wdcvar.h
137
#define CHP_WRITE_REG(chp, a, b) ((chp)->_vtbl->write_reg)(chp, a, b)
sys/dev/ic/wdcvar.h
138
#define CHP_LBA48_WRITE_REG(chp, a, b) \
sys/dev/ic/wdcvar.h
139
((chp)->_vtbl->lba48_write_reg)(chp, a, b)
sys/dev/ic/wdcvar.h
141
#define CHP_READ_RAW_MULTI_2(chp, a, b) \
sys/dev/ic/wdcvar.h
142
((chp)->_vtbl->read_raw_multi_2)(chp, a, b)
sys/dev/ic/wdcvar.h
143
#define CHP_WRITE_RAW_MULTI_2(chp, a, b) \
sys/dev/ic/wdcvar.h
144
((chp)->_vtbl->write_raw_multi_2)(chp, a, b)
sys/dev/ic/wdcvar.h
145
#define CHP_READ_RAW_MULTI_4(chp, a, b) \
sys/dev/ic/wdcvar.h
146
((chp)->_vtbl->read_raw_multi_4)(chp, a, b)
sys/dev/ic/wdcvar.h
147
#define CHP_WRITE_RAW_MULTI_4(chp, a, b) \
sys/dev/ic/wdcvar.h
148
((chp)->_vtbl->write_raw_multi_4)(chp, a, b)
sys/dev/ipmi.c
102
#define TB(b,m) (data[2+byteof(b)] & bitof(b))
sys/dev/ipmi.c
1195
B = signextend((((short)(s1->b_accuracy & 0xC0)) << 2) + s1->b, 10);
sys/dev/ipmi.c
519
#define ErrStat(a,b) if (a) printf(b);
sys/dev/ipmivar.h
255
u_int8_t b;
sys/dev/isa/if_ef_isapnp.c
762
ef_mii_writeb(struct ef_softc *sc, int b)
sys/dev/isa/if_ef_isapnp.c
766
if (b)
sys/dev/isa/if_eg.c
140
egoutPCB(struct eg_softc *sc, u_char b)
sys/dev/isa/if_eg.c
148
bus_space_write_1(bst, bsh, EG_COMMAND, b);
sys/dev/isa/if_eg.c
231
u_char b;
sys/dev/isa/if_eg.c
263
if ((b = bus_space_read_1(bst, bsh, EG_COMMAND)) != sc->eg_pcb[1] + 2) {
sys/dev/isa/if_eg.c
264
DPRINTF(("%d != %d\n", b, sc->eg_pcb[1] + 2));
sys/dev/isa/isapnp.c
141
int i, b;
sys/dev/isa/isapnp.c
160
for (w = 0, b = 0; b < 8; b++) {
sys/dev/isa/isapnp.c
171
for (csum = 0, b = 0; b < 8; b++) {
sys/dev/isa/isapnp.c
254
int b;
sys/dev/isa/isapnp.c
261
for (b = 0; b < 16; b++)
sys/dev/isa/isapnp.c
262
if ((i->bits & (1 << b)) && isa_drq_isfree(isa, b)) {
sys/dev/isa/isapnp.c
263
i->num = b;
sys/dev/isa/isapnp.c
378
#define SAMEDEV(a, b) (strcmp((a)->ipa_devlogic, (b)->ipa_devlogic) == 0)
sys/dev/isa/isapnpres.c
229
#define COPY(a, b) strncpy((a), (b), sizeof(a)), (a)[sizeof(a) - 1] = '\0'
sys/dev/kstat.c
35
kstat_id_cmp(const struct kstat *a, const struct kstat *b)
sys/dev/kstat.c
37
if (a->ks_id > b->ks_id)
sys/dev/kstat.c
39
if (a->ks_id < b->ks_id)
sys/dev/kstat.c
50
kstat_pv_cmp(const struct kstat *a, const struct kstat *b)
sys/dev/kstat.c
54
rv = strcmp(a->ks_provider, b->ks_provider);
sys/dev/kstat.c
58
if (a->ks_instance > b->ks_instance)
sys/dev/kstat.c
60
if (a->ks_instance < b->ks_instance)
sys/dev/kstat.c
63
rv = strcmp(a->ks_name, b->ks_name);
sys/dev/kstat.c
67
if (a->ks_unit > b->ks_unit)
sys/dev/kstat.c
69
if (a->ks_unit < b->ks_unit)
sys/dev/kstat.c
80
kstat_nm_cmp(const struct kstat *a, const struct kstat *b)
sys/dev/kstat.c
84
rv = strcmp(a->ks_name, b->ks_name);
sys/dev/kstat.c
88
if (a->ks_unit > b->ks_unit)
sys/dev/kstat.c
90
if (a->ks_unit < b->ks_unit)
sys/dev/kstat.c
93
rv = strcmp(a->ks_provider, b->ks_provider);
sys/dev/kstat.c
97
if (a->ks_instance > b->ks_instance)
sys/dev/kstat.c
99
if (a->ks_instance < b->ks_instance)
sys/dev/microcode/tigon/build.c
45
u_int32_t *b;
sys/dev/microcode/tigon/build.c
81
b = (u_int32_t *)tf;
sys/dev/microcode/tigon/build.c
84
b[i] = htole32(b[i]);
sys/dev/pci/alipm.c
260
u_int8_t *b;
sys/dev/pci/alipm.c
305
b = (void *)cmdbuf;
sys/dev/pci/alipm.c
309
ALIPM_SMB_HCMD, b[0]);
sys/dev/pci/alipm.c
313
b = buf;
sys/dev/pci/alipm.c
316
ALIPM_SMB_HD0, b[0]);
sys/dev/pci/alipm.c
319
ALIPM_SMB_HD1, b[1]);
sys/dev/pci/alipm.c
387
b = buf;
sys/dev/pci/alipm.c
389
b[0] = bus_space_read_1(sc->sc_iot, sc->sc_ioh,
sys/dev/pci/alipm.c
395
b[1] = bus_space_read_1(sc->sc_iot, sc->sc_ioh,
sys/dev/pci/amdiic.c
272
u_int8_t *b;
sys/dev/pci/amdiic.c
298
b = (void *)cmdbuf;
sys/dev/pci/amdiic.c
301
if (amdiic_write(sc, AMD8111_SMB_CMD, b[0]) == -1)
sys/dev/pci/amdiic.c
306
b = buf;
sys/dev/pci/amdiic.c
308
if (amdiic_write(sc, AMD8111_SMB_DATA(0), b[0]) == -1)
sys/dev/pci/amdiic.c
311
if (amdiic_write(sc, AMD8111_SMB_DATA(1), b[1]) == -1)
sys/dev/pci/amdiic.c
366
u_int8_t *b;
sys/dev/pci/amdiic.c
389
b = sc->sc_i2c_xfer.buf;
sys/dev/pci/amdiic.c
392
b[0] = amdiic_read(sc, AMD8111_SMB_DATA(0));
sys/dev/pci/amdiic.c
394
b[1] = amdiic_read(sc, AMD8111_SMB_DATA(1));
sys/dev/pci/amdpm.c
399
u_int8_t *b;
sys/dev/pci/amdpm.c
437
b = (void *)cmdbuf;
sys/dev/pci/amdpm.c
440
bus_space_write_1(sc->sc_iot, sc->sc_i2c_ioh, AMDPM_SMBCMD, b[0]);
sys/dev/pci/amdpm.c
445
b = buf;
sys/dev/pci/amdpm.c
447
data = b[0];
sys/dev/pci/amdpm.c
449
data |= ((u_int16_t)b[1] << 8);
sys/dev/pci/amdpm.c
521
u_int8_t *b;
sys/dev/pci/amdpm.c
551
b = sc->sc_i2c_xfer.buf;
sys/dev/pci/amdpm.c
556
b[0] = data & 0xff;
sys/dev/pci/amdpm.c
559
b[1] = (data >> 8) & 0xff;
sys/dev/pci/bktr/bktr_core.c
2857
int b;
sys/dev/pci/bktr/bktr_core.c
2890
b = cols;
sys/dev/pci/bktr/bktr_core.c
2896
*dma_prog++ = htole32(target_buffer + b);
sys/dev/pci/bktr/bktr_core.c
2940
*dma_prog++ = htole32(target_buffer + b);
sys/dev/pci/drm/amd/amdgpu/amdgpu.h
1570
#define amdgpu_asic_read_bios_from_rom(adev, b, l) (adev)->asic_funcs->read_bios_from_rom((adev), (b), (l))
sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.c
62
const struct amdgpu_bo_list_entry *a = _a, *b = _b;
sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.c
64
if (a->priority > b->priority)
sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.c
66
if (a->priority < b->priority)
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
27
#define umin(a, b) (((a)<(b))?(a):(b))
sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c
1499
fixed20_12 a, b;
sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c
1502
b.full = dfixed_const(dst_v);
sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c
1503
amdgpu_crtc->vsc.full = dfixed_div(a, b);
sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c
1505
b.full = dfixed_const(dst_h);
sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c
1506
amdgpu_crtc->hsc.full = dfixed_div(a, b);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
5213
static int ras_err_info_cmp(void *priv, const struct list_head *a, const struct list_head *b)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
5216
struct ras_err_node *nodeb = container_of(b, struct ras_err_node, node);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
637
u32 a, b, i;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
687
b = a + num - 1;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
688
if (b < control->ras_max_record_count) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
694
g1 = b % control->ras_max_record_count + 1;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
707
b %= control->ras_max_record_count;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
709
if (a <= b) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
714
if (b >= control->ras_fri)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
715
control->ras_fri = (b + 1) % control->ras_max_record_count;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
724
g1 = b + 1;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
736
control->ras_num_recs = 1 + (control->ras_max_record_count + b
sys/dev/pci/drm/amd/amdgpu/amdgpu_ring.h
444
#define amdgpu_ring_emit_frame_cntl(r, b, s) (r)->funcs->emit_frame_cntl((r), (b), (s))
sys/dev/pci/drm/amd/amdgpu/amdgpu_sdma.h
178
#define amdgpu_emit_copy_buffer(adev, ib, s, d, b, t) (adev)->mman.buffer_funcs->emit_copy_buffer((ib), (s), (d), (b), (t))
sys/dev/pci/drm/amd/amdgpu/amdgpu_sdma.h
179
#define amdgpu_emit_fill_buffer(adev, ib, s, d, b) (adev)->mman.buffer_funcs->emit_fill_buffer((ib), (s), (d), (b))
sys/dev/pci/drm/amd/amdgpu/dce_v10_0.c
2107
u16 *r, *g, *b;
sys/dev/pci/drm/amd/amdgpu/dce_v10_0.c
2147
b = g + crtc->gamma_size;
sys/dev/pci/drm/amd/amdgpu/dce_v10_0.c
2152
(*b++ >> 6));
sys/dev/pci/drm/amd/amdgpu/dce_v10_0.c
812
fixed20_12 a, b;
sys/dev/pci/drm/amd/amdgpu/dce_v10_0.c
818
b.full = dfixed_mul(a, disp_clk);
sys/dev/pci/drm/amd/amdgpu/dce_v10_0.c
824
bandwidth.full = dfixed_mul(b, disp_clk_request_efficiency);
sys/dev/pci/drm/amd/amdgpu/dce_v10_0.c
903
fixed20_12 a, b, c;
sys/dev/pci/drm/amd/amdgpu/dce_v10_0.c
909
b.full = dfixed_const(1);
sys/dev/pci/drm/amd/amdgpu/dce_v10_0.c
911
((wm->vsc.full > b.full) && (wm->vtaps >= 3)) ||
sys/dev/pci/drm/amd/amdgpu/dce_v10_0.c
919
b.full = dfixed_const(wm->num_heads);
sys/dev/pci/drm/amd/amdgpu/dce_v10_0.c
920
a.full = dfixed_div(a, b);
sys/dev/pci/drm/amd/amdgpu/dce_v10_0.c
927
b.full = dfixed_const(1000);
sys/dev/pci/drm/amd/amdgpu/dce_v10_0.c
929
b.full = dfixed_div(c, b);
sys/dev/pci/drm/amd/amdgpu/dce_v10_0.c
930
a.full = dfixed_div(a, b);
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
1000
c.full = dfixed_mul(c, b);
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
2121
u16 *r, *g, *b;
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
2153
b = g + crtc->gamma_size;
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
2158
(*b++ >> 6));
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
665
fixed20_12 a, b;
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
671
b.full = dfixed_mul(a, disp_clk);
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
677
bandwidth.full = dfixed_mul(b, disp_clk_request_efficiency);
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
756
fixed20_12 a, b, c;
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
762
b.full = dfixed_const(1);
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
764
((wm->vsc.full > b.full) && (wm->vtaps >= 3)) ||
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
772
b.full = dfixed_const(wm->num_heads);
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
773
a.full = dfixed_div(a, b);
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
780
b.full = dfixed_const(1000);
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
782
b.full = dfixed_div(c, b);
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
783
a.full = dfixed_div(a, b);
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
893
fixed20_12 a, b, c;
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
985
b.full = dfixed_const(mode->clock);
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
986
b.full = dfixed_div(b, a);
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
988
c.full = dfixed_mul(c, b);
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
997
b.full = dfixed_const(mode->clock);
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
998
b.full = dfixed_div(b, a);
sys/dev/pci/drm/amd/amdgpu/dce_v8_0.c
2032
u16 *r, *g, *b;
sys/dev/pci/drm/amd/amdgpu/dce_v8_0.c
2064
b = g + crtc->gamma_size;
sys/dev/pci/drm/amd/amdgpu/dce_v8_0.c
2069
(*b++ >> 6));
sys/dev/pci/drm/amd/amdgpu/dce_v8_0.c
765
fixed20_12 a, b;
sys/dev/pci/drm/amd/amdgpu/dce_v8_0.c
771
b.full = dfixed_mul(a, disp_clk);
sys/dev/pci/drm/amd/amdgpu/dce_v8_0.c
777
bandwidth.full = dfixed_mul(b, disp_clk_request_efficiency);
sys/dev/pci/drm/amd/amdgpu/dce_v8_0.c
856
fixed20_12 a, b, c;
sys/dev/pci/drm/amd/amdgpu/dce_v8_0.c
862
b.full = dfixed_const(1);
sys/dev/pci/drm/amd/amdgpu/dce_v8_0.c
864
((wm->vsc.full > b.full) && (wm->vtaps >= 3)) ||
sys/dev/pci/drm/amd/amdgpu/dce_v8_0.c
872
b.full = dfixed_const(wm->num_heads);
sys/dev/pci/drm/amd/amdgpu/dce_v8_0.c
873
a.full = dfixed_div(a, b);
sys/dev/pci/drm/amd/amdgpu/dce_v8_0.c
880
b.full = dfixed_const(1000);
sys/dev/pci/drm/amd/amdgpu/dce_v8_0.c
882
b.full = dfixed_div(c, b);
sys/dev/pci/drm/amd/amdgpu/dce_v8_0.c
883
a.full = dfixed_div(a, b);
sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c
518
#define AMDGPU_RAS_SUB_BLOCK(subblock, a, b, c, d, e, f, g, h) \
sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c
522
((a) | ((b) << 1) | ((c) << 2) | ((d) << 3)), \
sys/dev/pci/drm/amd/amdgpu/sid.h
557
#define DMA_PACKET(cmd, b, t, s, n) ((((cmd) & 0xF) << 28) | \
sys/dev/pci/drm/amd/amdgpu/sid.h
558
(((b) & 0x1) << 26) | \
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
382
static int dm_plane_layer_index_cmp(const void *a, const void *b)
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
385
const struct dc_surface_update *sb = (struct dc_surface_update *)b;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
389
uint32_t r, g, b;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
396
b = drm_color_lut_extract(lut[i].blue, 16);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
400
gamma->entries.blue[i] = dc_fixpt_from_int(b);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
409
b = drm_color_lut_extract(lut[i].blue, 16);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
413
gamma->entries.blue[i] = dc_fixpt_from_fraction(b, MAX_DRM_LUT_VALUE);
sys/dev/pci/drm/amd/display/dc/basics/conversion.c
138
static uint32_t find_gcd(uint32_t a, uint32_t b)
sys/dev/pci/drm/amd/display/dc/basics/conversion.c
142
while (b != 0) {
sys/dev/pci/drm/amd/display/dc/basics/conversion.c
143
remainder = a % b;
sys/dev/pci/drm/amd/display/dc/basics/conversion.c
144
a = b;
sys/dev/pci/drm/amd/display/dc/basics/conversion.c
145
b = remainder;
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c
470
struct dc_clocks *b)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c
472
if (a->dispclk_khz != b->dispclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c
474
else if (a->dppclk_khz != b->dppclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c
476
else if (a->disp_dpp_voltage_level_khz != b->disp_dpp_voltage_level_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c
478
else if (a->dcfclk_khz != b->dcfclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c
480
else if (a->socclk_khz != b->socclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c
482
else if (a->dcfclk_deep_sleep_khz != b->dcfclk_deep_sleep_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c
484
else if (a->dramclk_khz != b->dramclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c
486
else if (a->p_state_change_support != b->p_state_change_support)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c
529
struct dc_clocks *b)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c
531
if (a->dispclk_khz != b->dispclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c
533
else if (a->dppclk_khz != b->dppclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c
535
else if (a->dcfclk_khz != b->dcfclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c
537
else if (a->dcfclk_deep_sleep_khz != b->dcfclk_deep_sleep_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c
437
struct dc_clocks *b)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c
439
if (a->dispclk_khz != b->dispclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c
441
else if (a->dppclk_khz != b->dppclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c
443
else if (a->dcfclk_khz != b->dcfclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c
445
else if (a->dcfclk_deep_sleep_khz != b->dcfclk_deep_sleep_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c
447
else if (a->dramclk_khz != b->dramclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c
449
else if (a->p_state_change_support != b->p_state_change_support)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn301/vg_clk_mgr.c
466
struct dc_clocks *b)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn301/vg_clk_mgr.c
468
if (a->dispclk_khz != b->dispclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn301/vg_clk_mgr.c
470
else if (a->dppclk_khz != b->dppclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn301/vg_clk_mgr.c
472
else if (a->dcfclk_khz != b->dcfclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn301/vg_clk_mgr.c
474
else if (a->dcfclk_deep_sleep_khz != b->dcfclk_deep_sleep_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c
311
struct dc_clocks *b)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c
313
if (a->dispclk_khz != b->dispclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c
315
else if (a->dppclk_khz != b->dppclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c
317
else if (a->dcfclk_khz != b->dcfclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c
319
else if (a->dcfclk_deep_sleep_khz != b->dcfclk_deep_sleep_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c
321
else if (a->zstate_support != b->zstate_support)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c
323
else if (a->dtbclk_en != b->dtbclk_en)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.h
43
struct dc_clocks *b);
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c
447
struct dc_clocks *b)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c
449
if (a->dispclk_khz != b->dispclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c
451
else if (a->dppclk_khz != b->dppclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c
453
else if (a->dcfclk_khz != b->dcfclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c
455
else if (a->dcfclk_deep_sleep_khz != b->dcfclk_deep_sleep_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c
457
else if (a->zstate_support != b->zstate_support)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c
459
else if (a->dtbclk_en != b->dtbclk_en)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.h
51
struct dc_clocks *b);
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c
1070
struct dc_clocks *b)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c
1072
if (a->dispclk_khz != b->dispclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c
1074
else if (a->dppclk_khz != b->dppclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c
1076
else if (a->dcfclk_khz != b->dcfclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c
1078
else if (a->dcfclk_deep_sleep_khz != b->dcfclk_deep_sleep_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c
1080
else if (a->dramclk_khz != b->dramclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c
1082
else if (a->p_state_change_support != b->p_state_change_support)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c
1084
else if (a->fclk_p_state_change_support != b->fclk_p_state_change_support)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
574
struct dc_clocks *b)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
576
if (a->dispclk_khz != b->dispclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
578
else if (a->dppclk_khz != b->dppclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
580
else if (a->dcfclk_khz != b->dcfclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
582
else if (a->dcfclk_deep_sleep_khz != b->dcfclk_deep_sleep_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
584
else if (a->zstate_support != b->zstate_support)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
586
else if (a->dtbclk_en != b->dtbclk_en)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.h
50
struct dc_clocks *b);
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
1429
struct dc_clocks *b)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
1431
if (a->dispclk_khz != b->dispclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
1433
else if (a->dppclk_khz != b->dppclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
1435
else if (a->dcfclk_khz != b->dcfclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
1437
else if (a->dcfclk_deep_sleep_khz != b->dcfclk_deep_sleep_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
1439
else if (a->dramclk_khz != b->dramclk_khz)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
1441
else if (a->p_state_change_support != b->p_state_change_support)
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
1443
else if (a->fclk_p_state_change_support != b->fclk_p_state_change_support)
sys/dev/pci/drm/amd/display/dc/dc.h
1332
uint16_t b;
sys/dev/pci/drm/amd/display/dc/dml/calcs/dcn_calc_math.c
130
float dcn_bw_log(float a, float b)
sys/dev/pci/drm/amd/display/dc/dml/calcs/dcn_calc_math.c
141
if (b > 2.00001 || b < 1.99999)
sys/dev/pci/drm/amd/display/dc/dml/calcs/dcn_calc_math.c
142
return (a + log_2) / dcn_bw_log(b, 2);
sys/dev/pci/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1153
context->bw_ctx.bw.dcn.watermarks.b = context->bw_ctx.bw.dcn.watermarks.a;
sys/dev/pci/drm/amd/display/dc/dml/calcs/dcn_calcs.c
566
context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.cstate_exit_ns =
sys/dev/pci/drm/amd/display/dc/dml/calcs/dcn_calcs.c
568
context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns =
sys/dev/pci/drm/amd/display/dc/dml/calcs/dcn_calcs.c
570
context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.pstate_change_ns =
sys/dev/pci/drm/amd/display/dc/dml/calcs/dcn_calcs.c
572
context->bw_ctx.bw.dcn.watermarks.b.pte_meta_urgent_ns = v->ptemeta_urgent_watermark * 1000;
sys/dev/pci/drm/amd/display/dc/dml/calcs/dcn_calcs.c
573
context->bw_ctx.bw.dcn.watermarks.b.urgent_ns = v->urgent_watermark * 1000;
sys/dev/pci/drm/amd/display/dc/dml/calcs/dcn_calcs.c
630
context->bw_ctx.bw.dcn.watermarks.b = context->bw_ctx.bw.dcn.watermarks.a;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1800
context->bw_ctx.bw.dcn.watermarks.b.urgent_ns = get_wm_urgent(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1801
context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns = get_wm_stutter_enter_exit(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1802
context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.cstate_exit_ns = get_wm_stutter_exit(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1803
context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.pstate_change_ns = get_wm_dram_clock_change(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1804
context->bw_ctx.bw.dcn.watermarks.b.pte_meta_urgent_ns = get_wm_memory_trip(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1805
context->bw_ctx.bw.dcn.watermarks.b.frac_urg_bw_nom = get_fraction_of_urgent_bandwidth(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1806
context->bw_ctx.bw.dcn.watermarks.b.frac_urg_bw_flip = get_fraction_of_urgent_bandwidth_imm_flip(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1807
context->bw_ctx.bw.dcn.watermarks.b.urgent_latency_ns = get_urgent_latency(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
2309
calculate_wm_set_for_vlevel(vlevel, table_entry, &context->bw_ctx.bw.dcn.watermarks.b,
sys/dev/pci/drm/amd/display/dc/dml/dcn30/dcn30_fpu.c
370
context->bw_ctx.bw.dcn.watermarks.b.urgent_ns = get_wm_urgent(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn30/dcn30_fpu.c
371
context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns = get_wm_stutter_enter_exit(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn30/dcn30_fpu.c
372
context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.cstate_exit_ns = get_wm_stutter_exit(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn30/dcn30_fpu.c
373
context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.pstate_change_ns = get_wm_dram_clock_change(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn30/dcn30_fpu.c
374
context->bw_ctx.bw.dcn.watermarks.b.pte_meta_urgent_ns = get_wm_memory_trip(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn30/dcn30_fpu.c
375
context->bw_ctx.bw.dcn.watermarks.b.frac_urg_bw_nom = get_fraction_of_urgent_bandwidth(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn30/dcn30_fpu.c
376
context->bw_ctx.bw.dcn.watermarks.b.frac_urg_bw_flip = get_fraction_of_urgent_bandwidth_imm_flip(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn30/dcn30_fpu.c
377
context->bw_ctx.bw.dcn.watermarks.b.urgent_latency_ns = get_urgent_latency(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn301/dcn301_fpu.c
458
calculate_wm_set_for_vlevel(vlevel, table_entry, &context->bw_ctx.bw.dcn.watermarks.b,
sys/dev/pci/drm/amd/display/dc/dml/dcn31/dcn31_fpu.c
533
context->bw_ctx.bw.dcn.watermarks.b = context->bw_ctx.bw.dcn.watermarks.a;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
2445
context->bw_ctx.bw.dcn.watermarks.b.urgent_ns = get_wm_urgent(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
2446
context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns = get_wm_stutter_enter_exit(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
2447
context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.cstate_exit_ns = get_wm_stutter_exit(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
2448
context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.pstate_change_ns = get_wm_dram_clock_change(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
2449
context->bw_ctx.bw.dcn.watermarks.b.pte_meta_urgent_ns = get_wm_memory_trip(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
2450
context->bw_ctx.bw.dcn.watermarks.b.frac_urg_bw_nom = get_fraction_of_urgent_bandwidth(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
2451
context->bw_ctx.bw.dcn.watermarks.b.frac_urg_bw_flip = get_fraction_of_urgent_bandwidth_imm_flip(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
2452
context->bw_ctx.bw.dcn.watermarks.b.urgent_latency_ns = get_urgent_latency(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
2453
context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.fclk_pstate_change_ns = get_fclk_watermark(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
2454
context->bw_ctx.bw.dcn.watermarks.b.usr_retraining_ns = get_usr_retraining_watermark(&context->bw_ctx.dml, pipes, pipe_cnt) * 1000;
sys/dev/pci/drm/amd/display/dc/dml/dml_inline_defs.h
32
static inline double dml_min(double a, double b)
sys/dev/pci/drm/amd/display/dc/dml/dml_inline_defs.h
34
return (double) dcn_bw_min2(a, b);
sys/dev/pci/drm/amd/display/dc/dml/dml_inline_defs.h
37
static inline double dml_min3(double a, double b, double c)
sys/dev/pci/drm/amd/display/dc/dml/dml_inline_defs.h
39
return dml_min(dml_min(a, b), c);
sys/dev/pci/drm/amd/display/dc/dml/dml_inline_defs.h
42
static inline double dml_min4(double a, double b, double c, double d)
sys/dev/pci/drm/amd/display/dc/dml/dml_inline_defs.h
44
return dml_min(dml_min(a, b), dml_min(c, d));
sys/dev/pci/drm/amd/display/dc/dml/dml_inline_defs.h
47
static inline double dml_max(double a, double b)
sys/dev/pci/drm/amd/display/dc/dml/dml_inline_defs.h
49
return (double) dcn_bw_max2(a, b);
sys/dev/pci/drm/amd/display/dc/dml/dml_inline_defs.h
52
static inline double dml_max3(double a, double b, double c)
sys/dev/pci/drm/amd/display/dc/dml/dml_inline_defs.h
54
return dml_max(dml_max(a, b), c);
sys/dev/pci/drm/amd/display/dc/dml/dml_inline_defs.h
57
static inline double dml_max4(double a, double b, double c, double d)
sys/dev/pci/drm/amd/display/dc/dml/dml_inline_defs.h
59
return dml_max(dml_max(a, b), dml_max(c, d));
sys/dev/pci/drm/amd/display/dc/dml/dml_inline_defs.h
62
static inline double dml_max5(double a, double b, double c, double d, double e)
sys/dev/pci/drm/amd/display/dc/dml/dml_inline_defs.h
64
return dml_max(dml_max4(a, b, c, d), e);
sys/dev/pci/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
42
static int median3(int a, int b, int c)
sys/dev/pci/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
44
if (a > b)
sys/dev/pci/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
45
swap(a, b);
sys/dev/pci/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
46
if (b > c)
sys/dev/pci/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
47
swap(b, c);
sys/dev/pci/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
48
if (a > b)
sys/dev/pci/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
49
swap(b, c);
sys/dev/pci/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
51
return b;
sys/dev/pci/drm/amd/display/dc/dml2/cmntypes.h
59
uint8 b;
sys/dev/pci/drm/amd/display/dc/dml2/display_mode_util.c
161
dml_float_t dml_max4(dml_float_t a, dml_float_t b, dml_float_t c, dml_float_t d)
sys/dev/pci/drm/amd/display/dc/dml2/display_mode_util.c
163
return dml_max(dml_max(a, b), dml_max(c, d));
sys/dev/pci/drm/amd/display/dc/dml2/display_mode_util.c
165
dml_float_t dml_max5(dml_float_t a, dml_float_t b, dml_float_t c, dml_float_t d, dml_float_t e)
sys/dev/pci/drm/amd/display/dc/dml2/display_mode_util.c
167
return dml_max(dml_max4(a, b, c, d), e);
sys/dev/pci/drm/amd/display/dc/dml2/display_mode_util.h
45
__DML_DLL_EXPORT__ dml_float_t dml_max4(dml_float_t a, dml_float_t b, dml_float_t c, dml_float_t d);
sys/dev/pci/drm/amd/display/dc/dml2/display_mode_util.h
46
__DML_DLL_EXPORT__ dml_float_t dml_max5(dml_float_t a, dml_float_t b, dml_float_t c, dml_float_t d, dml_float_t e);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/dml21_translation_helper.c
834
wm_regs = &watermarks->dcn4x.b;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_standalone_libraries/lib_float_math.c
108
float math_log(float a, float b)
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_standalone_libraries/lib_float_math.c
119
if (b > 2.00001 || b < 1.99999)
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_standalone_libraries/lib_float_math.c
120
return (a + log_2) / math_log(b, 2);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_standalone_libraries/lib_float_math.h
20
float math_log(float a, float b);
sys/dev/pci/drm/amd/display/dc/dml2/dml2_wrapper.c
486
dml2_extract_watermark_set(&context->bw_ctx.bw.dcn.watermarks.b, &dml2->v20.dml_core_ctx);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
280
if (safe_to_lower || watermarks->b.urgent_ns > hubbub1->watermarks.b.urgent_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
281
hubbub1->watermarks.b.urgent_ns = watermarks->b.urgent_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
282
prog_wm_value = convert_and_clamp(watermarks->b.urgent_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
289
watermarks->b.urgent_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
290
} else if (watermarks->b.urgent_ns < hubbub1->watermarks.b.urgent_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
293
if (safe_to_lower || watermarks->b.pte_meta_urgent_ns > hubbub1->watermarks.b.pte_meta_urgent_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
294
hubbub1->watermarks.b.pte_meta_urgent_ns = watermarks->b.pte_meta_urgent_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
295
prog_wm_value = convert_and_clamp(watermarks->b.pte_meta_urgent_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
300
watermarks->b.pte_meta_urgent_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
301
} else if (watermarks->b.pte_meta_urgent_ns < hubbub1->watermarks.b.pte_meta_urgent_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
401
if (safe_to_lower || watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
402
> hubbub1->watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
403
hubbub1->watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
404
watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
406
watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
412
watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
413
} else if (watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
414
< hubbub1->watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
417
if (safe_to_lower || watermarks->b.cstate_pstate.cstate_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
418
> hubbub1->watermarks.b.cstate_pstate.cstate_exit_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
419
hubbub1->watermarks.b.cstate_pstate.cstate_exit_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
420
watermarks->b.cstate_pstate.cstate_exit_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
422
watermarks->b.cstate_pstate.cstate_exit_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
428
watermarks->b.cstate_pstate.cstate_exit_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
429
} else if (watermarks->b.cstate_pstate.cstate_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
430
< hubbub1->watermarks.b.cstate_pstate.cstate_exit_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
530
if (safe_to_lower || watermarks->b.cstate_pstate.pstate_change_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
531
> hubbub1->watermarks.b.cstate_pstate.pstate_change_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
532
hubbub1->watermarks.b.cstate_pstate.pstate_change_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
533
watermarks->b.cstate_pstate.pstate_change_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
535
watermarks->b.cstate_pstate.pstate_change_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
541
watermarks->b.cstate_pstate.pstate_change_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
542
} else if (watermarks->b.cstate_pstate.pstate_change_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
543
< hubbub1->watermarks.b.cstate_pstate.pstate_change_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
198
if (safe_to_lower || watermarks->b.urgent_ns > hubbub1->watermarks.b.urgent_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
199
hubbub1->watermarks.b.urgent_ns = watermarks->b.urgent_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
200
prog_wm_value = convert_and_clamp(watermarks->b.urgent_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
208
watermarks->b.urgent_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
209
} else if (watermarks->b.urgent_ns < hubbub1->watermarks.b.urgent_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
233
if (safe_to_lower || watermarks->b.urgent_latency_ns > hubbub1->watermarks.b.urgent_latency_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
234
hubbub1->watermarks.b.urgent_latency_ns = watermarks->b.urgent_latency_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
235
prog_wm_value = convert_and_clamp(watermarks->b.urgent_latency_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
239
} else if (watermarks->b.urgent_latency_ns < hubbub1->watermarks.b.urgent_latency_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
381
if (safe_to_lower || watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
382
> hubbub1->watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
383
hubbub1->watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
384
watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
386
watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
393
watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
394
} else if (watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
395
< hubbub1->watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
398
if (safe_to_lower || watermarks->b.cstate_pstate.cstate_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
399
> hubbub1->watermarks.b.cstate_pstate.cstate_exit_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
400
hubbub1->watermarks.b.cstate_pstate.cstate_exit_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
401
watermarks->b.cstate_pstate.cstate_exit_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
403
watermarks->b.cstate_pstate.cstate_exit_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
410
watermarks->b.cstate_pstate.cstate_exit_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
411
} else if (watermarks->b.cstate_pstate.cstate_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
412
< hubbub1->watermarks.b.cstate_pstate.cstate_exit_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
518
if (safe_to_lower || watermarks->b.cstate_pstate.pstate_change_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
519
> hubbub1->watermarks.b.cstate_pstate.pstate_change_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
520
hubbub1->watermarks.b.cstate_pstate.pstate_change_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
521
watermarks->b.cstate_pstate.pstate_change_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
523
watermarks->b.cstate_pstate.pstate_change_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
530
watermarks->b.cstate_pstate.pstate_change_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
531
} else if (watermarks->b.cstate_pstate.pstate_change_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
532
< hubbub1->watermarks.b.cstate_pstate.pstate_change_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
229
if (safe_to_lower || watermarks->b.urgent_ns > hubbub2->watermarks.b.urgent_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
230
hubbub2->watermarks.b.urgent_ns = watermarks->b.urgent_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
231
prog_wm_value = convert_and_clamp(watermarks->b.urgent_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
238
watermarks->b.urgent_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
239
} else if (watermarks->b.urgent_ns < hubbub2->watermarks.b.urgent_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
243
if (safe_to_lower || watermarks->b.frac_urg_bw_flip
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
244
> hubbub2->watermarks.b.frac_urg_bw_flip) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
245
hubbub2->watermarks.b.frac_urg_bw_flip = watermarks->b.frac_urg_bw_flip;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
248
DCHUBBUB_ARB_FRAC_URG_BW_FLIP_B, watermarks->b.frac_urg_bw_flip);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
249
} else if (watermarks->b.frac_urg_bw_flip
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
250
< hubbub2->watermarks.b.frac_urg_bw_flip)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
253
if (safe_to_lower || watermarks->b.frac_urg_bw_nom
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
254
> hubbub2->watermarks.b.frac_urg_bw_nom) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
255
hubbub2->watermarks.b.frac_urg_bw_nom = watermarks->b.frac_urg_bw_nom;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
258
DCHUBBUB_ARB_FRAC_URG_BW_NOM_B, watermarks->b.frac_urg_bw_nom);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
259
} else if (watermarks->b.frac_urg_bw_nom
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
260
< hubbub2->watermarks.b.frac_urg_bw_nom)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
263
if (safe_to_lower || watermarks->b.urgent_latency_ns > hubbub2->watermarks.b.urgent_latency_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
264
hubbub2->watermarks.b.urgent_latency_ns = watermarks->b.urgent_latency_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
265
prog_wm_value = convert_and_clamp(watermarks->b.urgent_latency_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
269
} else if (watermarks->b.urgent_latency_ns < hubbub2->watermarks.b.urgent_latency_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
439
if (safe_to_lower || watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
440
> hubbub2->watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
441
hubbub2->watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
442
watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
444
watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
450
watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
451
} else if (watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
452
< hubbub2->watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
455
if (safe_to_lower || watermarks->b.cstate_pstate.cstate_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
456
> hubbub2->watermarks.b.cstate_pstate.cstate_exit_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
457
hubbub2->watermarks.b.cstate_pstate.cstate_exit_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
458
watermarks->b.cstate_pstate.cstate_exit_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
460
watermarks->b.cstate_pstate.cstate_exit_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
466
watermarks->b.cstate_pstate.cstate_exit_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
467
} else if (watermarks->b.cstate_pstate.cstate_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
468
< hubbub2->watermarks.b.cstate_pstate.cstate_exit_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
471
if (safe_to_lower || watermarks->b.cstate_pstate.cstate_enter_plus_exit_z8_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
472
> hubbub2->watermarks.b.cstate_pstate.cstate_enter_plus_exit_z8_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
473
hubbub2->watermarks.b.cstate_pstate.cstate_enter_plus_exit_z8_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
474
watermarks->b.cstate_pstate.cstate_enter_plus_exit_z8_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
476
watermarks->b.cstate_pstate.cstate_enter_plus_exit_z8_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
482
watermarks->b.cstate_pstate.cstate_enter_plus_exit_z8_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
483
} else if (watermarks->b.cstate_pstate.cstate_enter_plus_exit_z8_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
484
< hubbub2->watermarks.b.cstate_pstate.cstate_enter_plus_exit_z8_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
487
if (safe_to_lower || watermarks->b.cstate_pstate.cstate_exit_z8_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
488
> hubbub2->watermarks.b.cstate_pstate.cstate_exit_z8_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
489
hubbub2->watermarks.b.cstate_pstate.cstate_exit_z8_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
490
watermarks->b.cstate_pstate.cstate_exit_z8_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
492
watermarks->b.cstate_pstate.cstate_exit_z8_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
498
watermarks->b.cstate_pstate.cstate_exit_z8_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
499
} else if (watermarks->b.cstate_pstate.cstate_exit_z8_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
500
< hubbub2->watermarks.b.cstate_pstate.cstate_exit_z8_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
665
if (safe_to_lower || watermarks->b.cstate_pstate.pstate_change_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
666
> hubbub2->watermarks.b.cstate_pstate.pstate_change_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
667
hubbub2->watermarks.b.cstate_pstate.pstate_change_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
668
watermarks->b.cstate_pstate.pstate_change_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
670
watermarks->b.cstate_pstate.pstate_change_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
676
watermarks->b.cstate_pstate.pstate_change_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
677
} else if (watermarks->b.cstate_pstate.pstate_change_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
678
< hubbub2->watermarks.b.cstate_pstate.pstate_change_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
233
if (safe_to_lower || watermarks->b.urgent_ns > hubbub2->watermarks.b.urgent_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
234
hubbub2->watermarks.b.urgent_ns = watermarks->b.urgent_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
235
prog_wm_value = convert_and_clamp(watermarks->b.urgent_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
242
watermarks->b.urgent_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
243
} else if (watermarks->b.urgent_ns < hubbub2->watermarks.b.urgent_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
247
if (safe_to_lower || watermarks->b.frac_urg_bw_flip
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
248
> hubbub2->watermarks.b.frac_urg_bw_flip) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
249
hubbub2->watermarks.b.frac_urg_bw_flip = watermarks->b.frac_urg_bw_flip;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
252
DCHUBBUB_ARB_FRAC_URG_BW_FLIP_B, watermarks->b.frac_urg_bw_flip);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
253
} else if (watermarks->b.frac_urg_bw_flip
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
254
< hubbub2->watermarks.b.frac_urg_bw_flip)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
257
if (safe_to_lower || watermarks->b.frac_urg_bw_nom
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
258
> hubbub2->watermarks.b.frac_urg_bw_nom) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
259
hubbub2->watermarks.b.frac_urg_bw_nom = watermarks->b.frac_urg_bw_nom;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
262
DCHUBBUB_ARB_FRAC_URG_BW_NOM_B, watermarks->b.frac_urg_bw_nom);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
263
} else if (watermarks->b.frac_urg_bw_nom
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
264
< hubbub2->watermarks.b.frac_urg_bw_nom)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
267
if (safe_to_lower || watermarks->b.urgent_latency_ns > hubbub2->watermarks.b.urgent_latency_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
268
hubbub2->watermarks.b.urgent_latency_ns = watermarks->b.urgent_latency_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
269
prog_wm_value = convert_and_clamp(watermarks->b.urgent_latency_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
273
} else if (watermarks->b.urgent_latency_ns < hubbub2->watermarks.b.urgent_latency_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
411
if (safe_to_lower || watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
412
> hubbub2->watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
413
hubbub2->watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
414
watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
416
watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
422
watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
423
} else if (watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
424
< hubbub2->watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
427
if (safe_to_lower || watermarks->b.cstate_pstate.cstate_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
428
> hubbub2->watermarks.b.cstate_pstate.cstate_exit_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
429
hubbub2->watermarks.b.cstate_pstate.cstate_exit_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
430
watermarks->b.cstate_pstate.cstate_exit_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
432
watermarks->b.cstate_pstate.cstate_exit_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
438
watermarks->b.cstate_pstate.cstate_exit_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
439
} else if (watermarks->b.cstate_pstate.cstate_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
440
< hubbub2->watermarks.b.cstate_pstate.cstate_exit_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
543
if (safe_to_lower || watermarks->b.cstate_pstate.pstate_change_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
544
> hubbub2->watermarks.b.cstate_pstate.pstate_change_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
545
hubbub2->watermarks.b.cstate_pstate.pstate_change_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
546
watermarks->b.cstate_pstate.pstate_change_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
548
watermarks->b.cstate_pstate.pstate_change_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
554
watermarks->b.cstate_pstate.pstate_change_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
555
} else if (watermarks->b.cstate_pstate.pstate_change_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
556
< hubbub2->watermarks.b.cstate_pstate.pstate_change_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
612
if (safe_to_lower || watermarks->b.cstate_pstate.fclk_pstate_change_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
613
> hubbub2->watermarks.b.cstate_pstate.fclk_pstate_change_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
614
hubbub2->watermarks.b.cstate_pstate.fclk_pstate_change_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
615
watermarks->b.cstate_pstate.fclk_pstate_change_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
617
watermarks->b.cstate_pstate.fclk_pstate_change_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
623
watermarks->b.cstate_pstate.fclk_pstate_change_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
624
} else if (watermarks->b.cstate_pstate.fclk_pstate_change_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
625
< hubbub2->watermarks.b.cstate_pstate.fclk_pstate_change_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
694
if (safe_to_lower || watermarks->b.usr_retraining_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
695
> hubbub2->watermarks.b.usr_retraining_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
696
hubbub2->watermarks.b.usr_retraining_ns = watermarks->b.usr_retraining_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
698
watermarks->b.usr_retraining_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
704
watermarks->b.usr_retraining_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
705
} else if (watermarks->b.usr_retraining_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
706
< hubbub2->watermarks.b.usr_retraining_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
157
if (safe_to_lower || watermarks->b.cstate_pstate.cstate_enter_plus_exit_z8_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
158
> hubbub2->watermarks.b.cstate_pstate.cstate_enter_plus_exit_z8_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
159
hubbub2->watermarks.b.cstate_pstate.cstate_enter_plus_exit_z8_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
160
watermarks->b.cstate_pstate.cstate_enter_plus_exit_z8_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
162
watermarks->b.cstate_pstate.cstate_enter_plus_exit_z8_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
168
watermarks->b.cstate_pstate.cstate_enter_plus_exit_z8_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
169
} else if (watermarks->b.cstate_pstate.cstate_enter_plus_exit_z8_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
170
< hubbub2->watermarks.b.cstate_pstate.cstate_enter_plus_exit_z8_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
173
if (safe_to_lower || watermarks->b.cstate_pstate.cstate_exit_z8_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
174
> hubbub2->watermarks.b.cstate_pstate.cstate_exit_z8_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
175
hubbub2->watermarks.b.cstate_pstate.cstate_exit_z8_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
176
watermarks->b.cstate_pstate.cstate_exit_z8_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
178
watermarks->b.cstate_pstate.cstate_exit_z8_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
184
watermarks->b.cstate_pstate.cstate_exit_z8_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
185
} else if (watermarks->b.cstate_pstate.cstate_exit_z8_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
186
< hubbub2->watermarks.b.cstate_pstate.cstate_exit_z8_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
131
if (safe_to_lower || watermarks->dcn4x.b.urgent > hubbub2->watermarks.dcn4x.b.urgent) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
132
hubbub2->watermarks.dcn4x.b.urgent = watermarks->dcn4x.b.urgent;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
134
DCHUBBUB_ARB_DATA_URGENCY_WATERMARK_B, watermarks->dcn4x.b.urgent);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
137
watermarks->dcn4x.b.urgent, watermarks->dcn4x.b.urgent);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
138
} else if (watermarks->dcn4x.b.urgent < hubbub2->watermarks.dcn4x.b.urgent)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
142
if (safe_to_lower || watermarks->dcn4x.b.frac_urg_bw_flip
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
143
> hubbub2->watermarks.dcn4x.b.frac_urg_bw_flip) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
144
hubbub2->watermarks.dcn4x.b.frac_urg_bw_flip = watermarks->dcn4x.b.frac_urg_bw_flip;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
146
DCHUBBUB_ARB_FRAC_URG_BW_FLIP_B, watermarks->dcn4x.b.frac_urg_bw_flip);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
147
} else if (watermarks->dcn4x.b.frac_urg_bw_flip
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
148
< hubbub2->watermarks.dcn4x.b.frac_urg_bw_flip)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
151
if (safe_to_lower || watermarks->dcn4x.b.frac_urg_bw_nom
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
152
> hubbub2->watermarks.dcn4x.b.frac_urg_bw_nom) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
153
hubbub2->watermarks.dcn4x.b.frac_urg_bw_nom = watermarks->dcn4x.b.frac_urg_bw_nom;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
155
DCHUBBUB_ARB_FRAC_URG_BW_NOM_B, watermarks->dcn4x.b.frac_urg_bw_nom);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
156
} else if (watermarks->dcn4x.b.frac_urg_bw_nom
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
157
< hubbub2->watermarks.dcn4x.b.frac_urg_bw_nom)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
160
if (safe_to_lower || watermarks->dcn4x.b.frac_urg_bw_mall
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
161
> hubbub2->watermarks.dcn4x.b.frac_urg_bw_mall) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
162
hubbub2->watermarks.dcn4x.b.frac_urg_bw_mall = watermarks->dcn4x.b.frac_urg_bw_mall;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
164
DCHUBBUB_ARB_FRAC_URG_BW_MALL_B, watermarks->dcn4x.b.frac_urg_bw_mall);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
165
} else if (watermarks->dcn4x.b.frac_urg_bw_mall < hubbub2->watermarks.dcn4x.b.frac_urg_bw_mall)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
168
if (safe_to_lower || watermarks->dcn4x.b.refcyc_per_trip_to_mem > hubbub2->watermarks.dcn4x.b.refcyc_per_trip_to_mem) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
169
hubbub2->watermarks.dcn4x.b.refcyc_per_trip_to_mem = watermarks->dcn4x.b.refcyc_per_trip_to_mem;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
171
DCHUBBUB_ARB_REFCYC_PER_TRIP_TO_MEMORY_B, watermarks->dcn4x.b.refcyc_per_trip_to_mem);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
172
} else if (watermarks->dcn4x.b.refcyc_per_trip_to_mem < hubbub2->watermarks.dcn4x.b.refcyc_per_trip_to_mem)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
175
if (safe_to_lower || watermarks->dcn4x.b.refcyc_per_meta_trip_to_mem > hubbub2->watermarks.dcn4x.b.refcyc_per_meta_trip_to_mem) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
176
hubbub2->watermarks.dcn4x.b.refcyc_per_meta_trip_to_mem = watermarks->dcn4x.b.refcyc_per_meta_trip_to_mem;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
178
DCHUBBUB_ARB_REFCYC_PER_META_TRIP_B, watermarks->dcn4x.b.refcyc_per_meta_trip_to_mem);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
179
} else if (watermarks->dcn4x.b.refcyc_per_meta_trip_to_mem < hubbub2->watermarks.dcn4x.b.refcyc_per_meta_trip_to_mem)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
238
if (safe_to_lower || watermarks->dcn4x.b.sr_enter
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
239
> hubbub2->watermarks.dcn4x.b.sr_enter) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
240
hubbub2->watermarks.dcn4x.b.sr_enter =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
241
watermarks->dcn4x.b.sr_enter;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
243
DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_B, watermarks->dcn4x.b.sr_enter);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
246
watermarks->dcn4x.b.sr_enter, watermarks->dcn4x.b.sr_enter);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
249
DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK1_B, watermarks->dcn4x.b.sr_enter);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
251
DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK2_B, watermarks->dcn4x.b.sr_enter);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
253
DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK3_B, watermarks->dcn4x.b.sr_enter);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
255
} else if (watermarks->dcn4x.b.sr_enter
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
256
< hubbub2->watermarks.dcn4x.b.sr_enter)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
259
if (safe_to_lower || watermarks->dcn4x.b.sr_exit
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
260
> hubbub2->watermarks.dcn4x.b.sr_exit) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
261
hubbub2->watermarks.dcn4x.b.sr_exit =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
262
watermarks->dcn4x.b.sr_exit;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
264
DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_B, watermarks->dcn4x.b.sr_exit);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
267
watermarks->dcn4x.b.sr_exit, watermarks->dcn4x.b.sr_exit);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
270
DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK1_B, watermarks->dcn4x.b.sr_exit);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
272
DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK2_B, watermarks->dcn4x.b.sr_exit);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
274
DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK3_B, watermarks->dcn4x.b.sr_exit);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
276
} else if (watermarks->dcn4x.b.sr_exit
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
277
< hubbub2->watermarks.dcn4x.b.sr_exit)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
309
if (safe_to_lower || watermarks->dcn4x.b.uclk_pstate
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
310
> hubbub2->watermarks.dcn4x.b.uclk_pstate) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
311
hubbub2->watermarks.dcn4x.b.uclk_pstate =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
312
watermarks->dcn4x.b.uclk_pstate;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
314
DCHUBBUB_ARB_UCLK_PSTATE_CHANGE_WATERMARK_B, watermarks->dcn4x.b.uclk_pstate);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
317
watermarks->dcn4x.b.uclk_pstate, watermarks->dcn4x.b.uclk_pstate);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
318
} else if (watermarks->dcn4x.b.uclk_pstate
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
319
< hubbub2->watermarks.dcn4x.b.uclk_pstate)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
337
if (safe_to_lower || watermarks->dcn4x.b.temp_read_or_ppt
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
338
> hubbub2->watermarks.dcn4x.b.temp_read_or_ppt) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
339
hubbub2->watermarks.dcn4x.b.temp_read_or_ppt =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
340
watermarks->dcn4x.b.temp_read_or_ppt;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
342
DCHUBBUB_ARB_UCLK_PSTATE_CHANGE_WATERMARK1_B, watermarks->dcn4x.b.temp_read_or_ppt);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
345
watermarks->dcn4x.b.temp_read_or_ppt, watermarks->dcn4x.b.temp_read_or_ppt);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
346
} else if (watermarks->dcn4x.b.temp_read_or_ppt
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
347
< hubbub2->watermarks.dcn4x.b.temp_read_or_ppt)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
366
if (safe_to_lower || watermarks->dcn4x.b.fclk_pstate
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
367
> hubbub2->watermarks.dcn4x.b.fclk_pstate) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
368
hubbub2->watermarks.dcn4x.b.fclk_pstate =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
369
watermarks->dcn4x.b.fclk_pstate;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
371
DCHUBBUB_ARB_FCLK_PSTATE_CHANGE_WATERMARK_B, watermarks->dcn4x.b.fclk_pstate);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
374
watermarks->dcn4x.b.fclk_pstate, watermarks->dcn4x.b.fclk_pstate);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
375
} else if (watermarks->dcn4x.b.fclk_pstate
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
376
< hubbub2->watermarks.dcn4x.b.fclk_pstate)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
394
if (safe_to_lower || watermarks->dcn4x.b.temp_read_or_ppt
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
395
> hubbub2->watermarks.dcn4x.b.temp_read_or_ppt) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
396
hubbub2->watermarks.dcn4x.b.temp_read_or_ppt =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
397
watermarks->dcn4x.b.temp_read_or_ppt;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
399
DCHUBBUB_ARB_FCLK_PSTATE_CHANGE_WATERMARK1_B, watermarks->dcn4x.b.temp_read_or_ppt);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
402
watermarks->dcn4x.b.temp_read_or_ppt, watermarks->dcn4x.b.temp_read_or_ppt);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
403
} else if (watermarks->dcn4x.b.temp_read_or_ppt
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
404
< hubbub2->watermarks.dcn4x.b.temp_read_or_ppt)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
434
if (safe_to_lower || watermarks->dcn4x.b.usr
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
435
> hubbub2->watermarks.dcn4x.b.usr) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
436
hubbub2->watermarks.dcn4x.b.usr = watermarks->dcn4x.b.usr;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
438
DCHUBBUB_ARB_USR_RETRAINING_WATERMARK_B, watermarks->dcn4x.b.usr);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
441
watermarks->dcn4x.b.usr, watermarks->dcn4x.b.usr);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
442
} else if (watermarks->dcn4x.b.usr
sys/dev/pci/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
443
< hubbub2->watermarks.dcn4x.b.usr)
sys/dev/pci/drm/amd/display/dc/inc/dcn_calc_math.h
40
float dcn_bw_log(float a, float b);
sys/dev/pci/drm/amd/display/dc/inc/hw/clk_mgr.h
308
struct dc_clocks *b);
sys/dev/pci/drm/amd/display/dc/inc/hw/mem_input.h
57
struct dcn_watermarks b;
sys/dev/pci/drm/amd/display/dc/inc/hw/mem_input.h
63
struct dml2_dchub_watermark_regs b;
sys/dev/pci/drm/amd/display/dc/inc/hw/opp.h
136
struct fixed31_32 b;
sys/dev/pci/drm/amd/display/dc/inc/hw/opp.h
170
struct fixed31_32 b;
sys/dev/pci/drm/amd/display/dc/inc/hw/opp.h
195
struct gamma_point b;
sys/dev/pci/drm/amd/display/dc/inc/hw/opp.h
226
struct fixed31_32 b;
sys/dev/pci/drm/amd/display/dc/link/protocols/link_ddc.c
84
#define DDC_MIN(a, b) (((a) < (b)) ? (a) : (b))
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_capability.c
239
union dp_cable_id *a, union dp_cable_id *b)
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_capability.c
244
b->bits.UHBR10_20_CAPABILITY);
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_capability.c
246
b->bits.UHBR13_5_CAPABILITY);
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_capability.c
247
out.bits.CABLE_TYPE = MAX(a->bits.CABLE_TYPE, b->bits.CABLE_TYPE);
sys/dev/pci/drm/amd/display/dc/sspl/dc_spl.h
16
#define SPL_EXPAND2(a, b) a##b
sys/dev/pci/drm/amd/display/dc/sspl/dc_spl.h
17
#define SPL_EXPAND(a, b) SPL_EXPAND2(a, b)
sys/dev/pci/drm/amd/display/dc/sspl/spl_os_types.h
49
#define spl_swap(a, b) \
sys/dev/pci/drm/amd/display/dc/sspl/spl_os_types.h
50
do { typeof(a) __tmp = (a); (a) = (b); (b) = __tmp; } while (0)
sys/dev/pci/drm/amd/display/dc/sspl/spl_os_types.h
53
#define spl_min(a, b) (((a) < (b)) ? (a):(b))
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1118
rgb->b = output;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1160
rgb->b = output;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1168
rgb->b = clip;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1203
curve[i].b = dc_fixpt_zero;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1211
curve[i].b = curve[i].r;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1217
curve[i].b = dc_fixpt_one;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1244
rgb->b = rgb->r;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1268
rgb->b = rgb->r;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1305
rgb->b = dc_fixpt_div(
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1316
rgb->b = dc_fixpt_mul(rgb_last->b,
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1325
rgb->b = dc_fixpt_mul(rgb_last->b,
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1334
rgb->b = dc_fixpt_mul(rgb_last->b,
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1381
pwl_rgb[i].b = dc_fixpt_div(
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1391
pwl_rgb[i].b = dc_fixpt_sub(dc_fixpt_mul_int(
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1392
pwl_rgb[i-1].b, 2), pwl_rgb[i-2].b);
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1398
pwl_rgb[i].b = dc_fixpt_sub(dc_fixpt_mul_int(
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1399
pwl_rgb[i-1].b, 2), pwl_rgb[i-2].b);
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1516
p->b = value;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1524
p->b = dc_fixpt_div(p_last->b, dividers.divider1);
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1530
p->b = dc_fixpt_div(p_last->b, dividers.divider2);
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1536
p->b = dc_fixpt_div(p_last->b, dividers.divider3);
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1551
coords->regamma_y_blue = rgb_regamma->b;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1653
tf_pts->blue[i] = regamma->b;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1776
curve[i].b = curve[i].r;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1795
tf_pts->blue[i] = curvePt->b;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1848
rgb_regamma[i].b = coordinates_x[i].x;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
278
struct fixed31_32 b;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
286
b = dc_fixpt_from_fraction(28466892, 100000000);
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
297
x = dc_fixpt_add(x, b);
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
309
struct fixed31_32 b;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
317
b = dc_fixpt_from_fraction(28466892, 100000000);
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
328
x = dc_fixpt_sub(x, b);
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
643
left = axis_x[i].b;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
646
right = axis_x[i + 1].b;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
648
right = axis_x[max_number - 1].b;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
749
point = &coeff[i].b;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
751
left_pos = axis_x[index_left].b;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
752
right_pos = axis_x[index_right].b;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
797
point = &coeff->b;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
831
rgb[point->right_index].b,
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
832
rgb[point->left_index].b)),
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
833
rgb[point->left_index].b);
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
888
rgb->b = output;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
919
de_pq[i].b = output;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
952
rgb->b = rgb->r;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
985
struct fixed31_32 b = dc_fixpt_from_fraction(5, 10);
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
997
a = dc_fixpt_div(dc_fixpt_add(dc_fixpt_one, b), max_content_pq); // (1+b)/maxContent
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
998
ks = dc_fixpt_sub(dc_fixpt_mul(a, max_lum_pq), b); // a * max_lum_pq - b
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_ddc.c
29
#define MIN(a, b) ((a) < (b) ? (a) : (b))
sys/dev/pci/drm/amd/display/modules/power/power_helpers.c
32
#define DIV_ROUNDUP(a, b) (((a)+((b)/2))/(b))
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
861
static u32 kv_get_clock_difference(u32 a, u32 b)
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
863
return (a >= b) ? a - b : b - a;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
2225
pp_table->AvfsGbCksOn.b =
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
2237
pp_table->AvfsGbCksOff.b =
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
2255
pp_table->DisplayClock2Gfxclk[DSPCLK_DISPCLK].b =
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
2262
pp_table->DisplayClock2Gfxclk[DSPCLK_DISPCLK].b =
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
2278
pp_table->DisplayClock2Gfxclk[DSPCLK_DCEFCLK].b =
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
2285
pp_table->DisplayClock2Gfxclk[DSPCLK_DCEFCLK].b =
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
2301
pp_table->DisplayClock2Gfxclk[DSPCLK_PIXCLK].b =
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
2308
pp_table->DisplayClock2Gfxclk[DSPCLK_PIXCLK].b =
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
2323
pp_table->DisplayClock2Gfxclk[DSPCLK_PHYCLK].b =
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
2330
pp_table->DisplayClock2Gfxclk[DSPCLK_PHYCLK].b =
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
2347
pp_table->AcgAvfsGb.b = avfs_params.ulAcgGbFuseTableB;
sys/dev/pci/drm/amd/pm/powerplay/inc/smu11_driver_if.h
301
uint32_t b;
sys/dev/pci/drm/amd/pm/powerplay/inc/smu11_driver_if.h
307
uint32_t b;
sys/dev/pci/drm/amd/pm/powerplay/inc/smu11_driver_if.h
312
uint32_t b;
sys/dev/pci/drm/amd/pm/powerplay/inc/smu72.h
51
int32_t b;
sys/dev/pci/drm/amd/pm/powerplay/inc/smu73.h
42
int32_t b;
sys/dev/pci/drm/amd/pm/powerplay/inc/smu73_discrete.h
567
uint32_t b;
sys/dev/pci/drm/amd/pm/powerplay/inc/smu74.h
76
int32_t b;
sys/dev/pci/drm/amd/pm/powerplay/inc/smu74_discrete.h
228
uint32_t b;
sys/dev/pci/drm/amd/pm/powerplay/inc/smu75.h
706
int32_t b;
sys/dev/pci/drm/amd/pm/powerplay/inc/smu9_driver_if.h
102
int32_t b;
sys/dev/pci/drm/amd/pm/powerplay/inc/vega12/smu9_driver_if.h
203
uint32_t b;
sys/dev/pci/drm/amd/pm/powerplay/inc/vega12/smu9_driver_if.h
209
uint32_t b;
sys/dev/pci/drm/amd/pm/powerplay/inc/vega12/smu9_driver_if.h
214
uint32_t b;
sys/dev/pci/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c
1846
table->AVFSGB_VDROOP_TABLE[0].b = PP_HOST_TO_SMC_UL(avfs_params.ulAVFSGB_FUSE_TABLE_CKSON_b);
sys/dev/pci/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c
1851
table->AVFSGB_VDROOP_TABLE[1].b = PP_HOST_TO_SMC_UL(avfs_params.ulAVFSGB_FUSE_TABLE_CKSOFF_b);
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c
1600
table->AVFSGB_FUSE_TABLE[0].b =
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c
1608
table->AVFSGB_FUSE_TABLE[1].b =
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu11_driver_if_arcturus.h
343
uint32_t b; // store in IEEE float format in this variable
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu11_driver_if_arcturus.h
349
uint32_t b; // store in IEEE float format in this variable
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu11_driver_if_arcturus.h
354
uint32_t b; // store in IEEE float format in this variable
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu11_driver_if_navi10.h
347
uint32_t b; // store in IEEE float format in this variable
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu11_driver_if_navi10.h
353
uint32_t b; // store in IEEE float format in this variable
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu11_driver_if_navi10.h
358
uint32_t b; // store in IEEE float format in this variable
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu11_driver_if_sienna_cichlid.h
431
uint32_t b; // store in IEEE float format in this variable
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu11_driver_if_sienna_cichlid.h
437
uint32_t b; // store in fixed point, [31:20] signed integer, [19:0] fractional bits
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu11_driver_if_sienna_cichlid.h
443
uint32_t b; // store in IEEE float format in this variable
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu11_driver_if_sienna_cichlid.h
448
uint32_t b; // store in IEEE float format in this variable
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_aldebaran.h
227
uint32_t b; // store in IEEE float format in this variable
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_aldebaran.h
233
uint32_t b; // store in IEEE float format in this variable
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_0.h
417
uint32_t b; // store in IEEE float format in this variable
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_0.h
423
uint32_t b; // store in IEEE float format in this variable
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_0.h
428
uint32_t b; // store in IEEE float format in this variable
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_7.h
418
uint32_t b; // store in IEEE float format in this variable
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_7.h
424
uint32_t b; // store in IEEE float format in this variable
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_7.h
429
uint32_t b; // store in IEEE float format in this variable
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu14_driver_if_v14_0.h
433
uint32_t b; // store in IEEE float format in this variable
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu14_driver_if_v14_0.h
439
uint32_t b; // store in IEEE float format in this variable
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu14_driver_if_v14_0.h
444
uint32_t b; // store in IEEE float format in this variable
sys/dev/pci/drm/apple/iomfb.h
410
u64 b[3];
sys/dev/pci/drm/apple/iomfb_template.c
1414
mat.b[0] = ctm->matrix[6];
sys/dev/pci/drm/apple/iomfb_template.c
1415
mat.b[1] = ctm->matrix[7];
sys/dev/pci/drm/apple/iomfb_template.c
1416
mat.b[2] = ctm->matrix[8];
sys/dev/pci/drm/apple/parser.c
193
static int parse_bool(struct dcp_parse_ctx *handle, bool *b)
sys/dev/pci/drm/apple/parser.c
200
*b = !!tag->size;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
1587
topology_ref_history_cmp(const void *a, const void *b)
sys/dev/pci/drm/display/drm_dp_mst_topology.c
1589
const struct drm_dp_mst_topology_ref_entry *entry_a = a, *entry_b = b;
sys/dev/pci/drm/drm_blend.c
437
static int drm_atomic_state_zpos_cmp(const void *a, const void *b)
sys/dev/pci/drm/drm_blend.c
440
const struct drm_plane_state *sb = *(struct drm_plane_state **)b;
sys/dev/pci/drm/drm_color_mgmt.c
675
u16 r, g, b;
sys/dev/pci/drm/drm_color_mgmt.c
680
b = lut[i * 8 + i / 4].blue;
sys/dev/pci/drm/drm_color_mgmt.c
681
set_gamma(crtc, i, r, g, b);
sys/dev/pci/drm/drm_color_mgmt.c
705
u16 r, g, b;
sys/dev/pci/drm/drm_color_mgmt.c
710
b = lut[i * 8 + i / 4].blue;
sys/dev/pci/drm/drm_color_mgmt.c
711
set_gamma(crtc, i, r, g, b);
sys/dev/pci/drm/drm_color_mgmt.c
716
static void fill_gamma_888(struct drm_crtc *crtc, unsigned int i, u16 r, u16 g, u16 b,
sys/dev/pci/drm/drm_color_mgmt.c
721
b = (b << 8) | b;
sys/dev/pci/drm/drm_color_mgmt.c
723
set_gamma(crtc, i, r, g, b);
sys/dev/pci/drm/drm_color_mgmt.c
742
static void fill_gamma_565(struct drm_crtc *crtc, unsigned int i, u16 r, u16 g, u16 b,
sys/dev/pci/drm/drm_color_mgmt.c
747
b = (b << 11) | (b << 6) | (b << 1) | (b >> 4);
sys/dev/pci/drm/drm_color_mgmt.c
749
set_gamma(crtc, i, r, g, b);
sys/dev/pci/drm/drm_color_mgmt.c
771
static void fill_gamma_555(struct drm_crtc *crtc, unsigned int i, u16 r, u16 g, u16 b,
sys/dev/pci/drm/drm_color_mgmt.c
776
b = (b << 11) | (b << 6) | (b << 1) | (r >> 4);
sys/dev/pci/drm/drm_color_mgmt.c
778
set_gamma(crtc, i, r, g, b);
sys/dev/pci/drm/drm_color_mgmt.c
820
static void fill_palette_332(struct drm_crtc *crtc, u16 r, u16 g, u16 b,
sys/dev/pci/drm/drm_color_mgmt.c
823
unsigned int i = (r << 5) | (g << 2) | b; /* 8-bit palette index */
sys/dev/pci/drm/drm_color_mgmt.c
828
b = (b << 14) | (b << 12) | (b << 10) | (b << 8) | (b << 6) | (b << 4) | (b << 2) | b;
sys/dev/pci/drm/drm_color_mgmt.c
830
set_palette(crtc, i, r, g, b);
sys/dev/pci/drm/drm_color_mgmt.c
842
unsigned int r, g, b;
sys/dev/pci/drm/drm_color_mgmt.c
847
for (b = 0; b < 4; ++b)
sys/dev/pci/drm/drm_color_mgmt.c
848
fill_palette_332(crtc, r, g, b, set_palette);
sys/dev/pci/drm/drm_edid.c
3340
bad_std_timing(u8 a, u8 b)
sys/dev/pci/drm/drm_edid.c
3342
return (a == 0x00 && b == 0x00) ||
sys/dev/pci/drm/drm_edid.c
3343
(a == 0x01 && b == 0x01) ||
sys/dev/pci/drm/drm_edid.c
3344
(a == 0x20 && b == 0x20);
sys/dev/pci/drm/drm_fb_helper.c
1012
b = g + crtc->gamma_size;
sys/dev/pci/drm/drm_fb_helper.c
1016
memcpy(b + cmap->start, cmap->blue, cmap->len * sizeof(*b));
sys/dev/pci/drm/drm_fb_helper.c
871
u16 *r, *g, *b;
sys/dev/pci/drm/drm_fb_helper.c
889
b = g + crtc->gamma_size;
sys/dev/pci/drm/drm_fb_helper.c
893
memcpy(b + cmap->start, cmap->blue, cmap->len * sizeof(*b));
sys/dev/pci/drm/drm_fb_helper.c
895
ret = crtc->funcs->gamma_set(crtc, r, g, b,
sys/dev/pci/drm/drm_fb_helper.c
926
u16 *b = g + crtc->gamma_size;
sys/dev/pci/drm/drm_fb_helper.c
931
lut[i].blue = b[i];
sys/dev/pci/drm/drm_fb_helper.c
936
lut[i].blue = b[i];
sys/dev/pci/drm/drm_fb_helper.c
959
u16 *r, *g, *b;
sys/dev/pci/drm/drm_format_internal.h
43
u32 b = pix & 0x000000ff;
sys/dev/pci/drm/drm_format_internal.h
46
return (77 * r + 150 * g + 29 * b) / 256;
sys/dev/pci/drm/drm_linux.c
1038
xarray_cmp(struct xarray_entry *a, struct xarray_entry *b)
sys/dev/pci/drm/drm_linux.c
1040
return (a->id < b->id ? -1 : a->id > b->id);
sys/dev/pci/drm/drm_linux.c
786
panic_cmp(struct rb_node *a, struct rb_node *b)
sys/dev/pci/drm/drm_linux.c
983
idr_cmp(struct idr_entry *a, struct idr_entry *b)
sys/dev/pci/drm/drm_linux.c
985
return (a->id < b->id ? -1 : a->id > b->id);
sys/dev/pci/drm/drm_modes.c
1845
struct drm_display_mode *b = list_entry(lh_b, struct drm_display_mode, head);
sys/dev/pci/drm/drm_modes.c
1848
diff = ((b->type & DRM_MODE_TYPE_PREFERRED) != 0) -
sys/dev/pci/drm/drm_modes.c
1852
diff = b->hdisplay * b->vdisplay - a->hdisplay * a->vdisplay;
sys/dev/pci/drm/drm_modes.c
1856
diff = drm_mode_vrefresh(b) - drm_mode_vrefresh(a);
sys/dev/pci/drm/drm_modes.c
1860
diff = b->clock - a->clock;
sys/dev/pci/drm/drm_trace.h
5
#define trace_drm_vblank_event(a, b, c, d)
sys/dev/pci/drm/drm_trace.h
6
#define trace_drm_vblank_event_queued(a, b, c)
sys/dev/pci/drm/drm_trace.h
7
#define trace_drm_vblank_event_delivered(a, b, c)
sys/dev/pci/drm/i915/display/intel_cdclk.c
2374
const struct intel_cdclk_config *b)
sys/dev/pci/drm/i915/display/intel_cdclk.c
2381
if (a->vco == 0 || b->vco == 0)
sys/dev/pci/drm/i915/display/intel_cdclk.c
2388
new_waveform = cdclk_squash_waveform(display, b->cdclk);
sys/dev/pci/drm/i915/display/intel_cdclk.c
2390
return a->vco != b->vco &&
sys/dev/pci/drm/i915/display/intel_cdclk.c
2396
const struct intel_cdclk_config *b)
sys/dev/pci/drm/i915/display/intel_cdclk.c
2408
b_div = DIV_ROUND_CLOSEST(b->vco, b->cdclk);
sys/dev/pci/drm/i915/display/intel_cdclk.c
2410
return a->vco != 0 && b->vco != 0 &&
sys/dev/pci/drm/i915/display/intel_cdclk.c
2411
a->vco != b->vco &&
sys/dev/pci/drm/i915/display/intel_cdclk.c
2413
a->ref == b->ref;
sys/dev/pci/drm/i915/display/intel_cdclk.c
2418
const struct intel_cdclk_config *b)
sys/dev/pci/drm/i915/display/intel_cdclk.c
2429
return a->cdclk != b->cdclk &&
sys/dev/pci/drm/i915/display/intel_cdclk.c
2431
a->vco == b->vco &&
sys/dev/pci/drm/i915/display/intel_cdclk.c
2432
a->ref == b->ref;
sys/dev/pci/drm/i915/display/intel_cdclk.c
2445
const struct intel_cdclk_config *b)
sys/dev/pci/drm/i915/display/intel_cdclk.c
2447
return a->cdclk != b->cdclk ||
sys/dev/pci/drm/i915/display/intel_cdclk.c
2448
a->vco != b->vco ||
sys/dev/pci/drm/i915/display/intel_cdclk.c
2449
a->ref != b->ref;
sys/dev/pci/drm/i915/display/intel_cdclk.c
2465
const struct intel_cdclk_config *b)
sys/dev/pci/drm/i915/display/intel_cdclk.c
2480
return a->cdclk != b->cdclk &&
sys/dev/pci/drm/i915/display/intel_cdclk.c
2482
a->vco == b->vco &&
sys/dev/pci/drm/i915/display/intel_cdclk.c
2483
a->ref == b->ref;
sys/dev/pci/drm/i915/display/intel_cdclk.c
2495
const struct intel_cdclk_config *b)
sys/dev/pci/drm/i915/display/intel_cdclk.c
2497
return intel_cdclk_clock_changed(a, b) ||
sys/dev/pci/drm/i915/display/intel_cdclk.c
2498
a->voltage_level != b->voltage_level;
sys/dev/pci/drm/i915/display/intel_cdclk.h
32
const struct intel_cdclk_config *b);
sys/dev/pci/drm/i915/display/intel_color.c
2294
static int i9xx_lut_10_diff(u16 a, u16 b)
sys/dev/pci/drm/i915/display/intel_color.c
2297
drm_color_lut_extract(b, 10);
sys/dev/pci/drm/i915/display/intel_color.c
2307
const struct drm_color_lut *b = &lut[lut_size - 1];
sys/dev/pci/drm/i915/display/intel_color.c
2309
if (i9xx_lut_10_diff(b->red, a->red) > 0x7f ||
sys/dev/pci/drm/i915/display/intel_color.c
2310
i9xx_lut_10_diff(b->green, a->green) > 0x7f ||
sys/dev/pci/drm/i915/display/intel_color.c
2311
i9xx_lut_10_diff(b->blue, a->blue) > 0x7f) {
sys/dev/pci/drm/i915/display/intel_color.c
847
static u32 _i9xx_lut_10_udw(u16 a, u16 b)
sys/dev/pci/drm/i915/display/intel_color.c
852
b = drm_color_lut_extract(b, 10);
sys/dev/pci/drm/i915/display/intel_color.c
855
mantissa = clamp(b - a, 0, 0x7f);
sys/dev/pci/drm/i915/display/intel_cx0_phy.c
3473
const struct intel_c10pll_state *b)
sys/dev/pci/drm/i915/display/intel_cx0_phy.c
3475
if (a->tx != b->tx)
sys/dev/pci/drm/i915/display/intel_cx0_phy.c
3478
if (a->cmn != b->cmn)
sys/dev/pci/drm/i915/display/intel_cx0_phy.c
3481
if (memcmp(&a->pll, &b->pll, sizeof(a->pll)) != 0)
sys/dev/pci/drm/i915/display/intel_cx0_phy.c
3488
const struct intel_c20pll_state *b)
sys/dev/pci/drm/i915/display/intel_cx0_phy.c
3490
if (memcmp(&a->tx, &b->tx, sizeof(a->tx)) != 0)
sys/dev/pci/drm/i915/display/intel_cx0_phy.c
3493
if (memcmp(&a->cmn, &b->cmn, sizeof(a->cmn)) != 0)
sys/dev/pci/drm/i915/display/intel_cx0_phy.c
3497
if (memcmp(&a->mpllb, &b->mpllb, sizeof(a->mpllb)) != 0)
sys/dev/pci/drm/i915/display/intel_cx0_phy.c
3500
if (memcmp(&a->mplla, &b->mplla, sizeof(a->mplla)) != 0)
sys/dev/pci/drm/i915/display/intel_cx0_phy.c
3508
const struct intel_cx0pll_state *b)
sys/dev/pci/drm/i915/display/intel_cx0_phy.c
3510
if (a->tbt_mode || b->tbt_mode)
sys/dev/pci/drm/i915/display/intel_cx0_phy.c
3513
if (a->use_c10 != b->use_c10)
sys/dev/pci/drm/i915/display/intel_cx0_phy.c
3518
&b->c10);
sys/dev/pci/drm/i915/display/intel_cx0_phy.c
3521
&b->c20);
sys/dev/pci/drm/i915/display/intel_cx0_phy.h
41
const struct intel_cx0pll_state *b);
sys/dev/pci/drm/i915/display/intel_display.c
4121
const struct intel_encoder *b)
sys/dev/pci/drm/i915/display/intel_display.c
4124
return a == b || (a->cloneable & BIT(b->type) &&
sys/dev/pci/drm/i915/display/intel_display.c
4125
b->cloneable & BIT(a->type));
sys/dev/pci/drm/i915/display/intel_display.c
4819
const union hdmi_infoframe *b)
sys/dev/pci/drm/i915/display/intel_display.c
4821
return memcmp(a, b, sizeof(*a)) == 0;
sys/dev/pci/drm/i915/display/intel_display.c
4826
const struct drm_dp_vsc_sdp *b)
sys/dev/pci/drm/i915/display/intel_display.c
4828
return a->pixelformat == b->pixelformat &&
sys/dev/pci/drm/i915/display/intel_display.c
4829
a->colorimetry == b->colorimetry &&
sys/dev/pci/drm/i915/display/intel_display.c
4830
a->bpc == b->bpc &&
sys/dev/pci/drm/i915/display/intel_display.c
4831
a->dynamic_range == b->dynamic_range &&
sys/dev/pci/drm/i915/display/intel_display.c
4832
a->content_type == b->content_type;
sys/dev/pci/drm/i915/display/intel_display.c
4837
const struct drm_dp_as_sdp *b)
sys/dev/pci/drm/i915/display/intel_display.c
4839
return a->vtotal == b->vtotal &&
sys/dev/pci/drm/i915/display/intel_display.c
4840
a->target_rr == b->target_rr &&
sys/dev/pci/drm/i915/display/intel_display.c
4841
a->duration_incr_ms == b->duration_incr_ms &&
sys/dev/pci/drm/i915/display/intel_display.c
4842
a->duration_decr_ms == b->duration_decr_ms &&
sys/dev/pci/drm/i915/display/intel_display.c
4843
a->mode == b->mode;
sys/dev/pci/drm/i915/display/intel_display.c
4847
intel_compare_buffer(const u8 *a, const u8 *b, size_t len)
sys/dev/pci/drm/i915/display/intel_display.c
4849
return memcmp(a, b, len) == 0;
sys/dev/pci/drm/i915/display/intel_display.c
4879
const union hdmi_infoframe *b)
sys/dev/pci/drm/i915/display/intel_display.c
4898
hdmi_infoframe_log(loglevel, display->drm->dev, b);
sys/dev/pci/drm/i915/display/intel_display.c
4906
const struct drm_dp_vsc_sdp *b)
sys/dev/pci/drm/i915/display/intel_display.c
4913
drm_dp_vsc_sdp_log(p, b);
sys/dev/pci/drm/i915/display/intel_display.c
4921
const struct drm_dp_as_sdp *b)
sys/dev/pci/drm/i915/display/intel_display.c
4928
drm_dp_as_sdp_log(p, b);
sys/dev/pci/drm/i915/display/intel_display.c
4933
memcmp_diff_len(const u8 *a, const u8 *b, size_t len)
sys/dev/pci/drm/i915/display/intel_display.c
4938
if (a[i] != b[i])
sys/dev/pci/drm/i915/display/intel_display.c
4949
const u8 *a, const u8 *b, size_t len)
sys/dev/pci/drm/i915/display/intel_display.c
4954
len = memcmp_diff_len(a, b, len);
sys/dev/pci/drm/i915/display/intel_display.c
4957
drm_print_hex_dump(p, "found: ", b, len);
sys/dev/pci/drm/i915/display/intel_display.c
4965
const struct intel_dpll_hw_state *b)
sys/dev/pci/drm/i915/display/intel_display.c
4974
intel_dpll_dump_hw_state(display, p, b);
sys/dev/pci/drm/i915/display/intel_display.c
4982
const struct intel_cx0pll_state *b)
sys/dev/pci/drm/i915/display/intel_display.c
4992
intel_cx0pll_dump_hw_state(display, b);
sys/dev/pci/drm/i915/display/intel_display_debugfs_params.c
41
bool b;
sys/dev/pci/drm/i915/display/intel_display_debugfs_params.c
43
ret = kstrtobool_from_user(ubuf, len, &b);
sys/dev/pci/drm/i915/display/intel_display_debugfs_params.c
45
*value = b;
sys/dev/pci/drm/i915/display/intel_display_debugfs_params.c
94
bool b;
sys/dev/pci/drm/i915/display/intel_display_debugfs_params.c
96
ret = kstrtobool_from_user(ubuf, len, &b);
sys/dev/pci/drm/i915/display/intel_display_debugfs_params.c
98
*value = b;
sys/dev/pci/drm/i915/display/intel_display_reg_defs.h
18
#define _PIPE(pipe, a, b) _PICK_EVEN(pipe, a, b)
sys/dev/pci/drm/i915/display/intel_display_reg_defs.h
19
#define _PLANE(plane, a, b) _PICK_EVEN(plane, a, b)
sys/dev/pci/drm/i915/display/intel_display_reg_defs.h
20
#define _TRANS(tran, a, b) _PICK_EVEN(tran, a, b)
sys/dev/pci/drm/i915/display/intel_display_reg_defs.h
21
#define _PORT(port, a, b) _PICK_EVEN(port, a, b)
sys/dev/pci/drm/i915/display/intel_display_reg_defs.h
22
#define _PLL(pll, a, b) _PICK_EVEN(pll, a, b)
sys/dev/pci/drm/i915/display/intel_display_reg_defs.h
23
#define _PHY(phy, a, b) _PICK_EVEN(phy, a, b)
sys/dev/pci/drm/i915/display/intel_display_reg_defs.h
25
#define _MMIO_PIPE(pipe, a, b) _MMIO(_PIPE(pipe, a, b))
sys/dev/pci/drm/i915/display/intel_display_reg_defs.h
26
#define _MMIO_PLANE(plane, a, b) _MMIO(_PLANE(plane, a, b))
sys/dev/pci/drm/i915/display/intel_display_reg_defs.h
27
#define _MMIO_TRANS(tran, a, b) _MMIO(_TRANS(tran, a, b))
sys/dev/pci/drm/i915/display/intel_display_reg_defs.h
28
#define _MMIO_PORT(port, a, b) _MMIO(_PORT(port, a, b))
sys/dev/pci/drm/i915/display/intel_display_reg_defs.h
29
#define _MMIO_PLL(pll, a, b) _MMIO(_PLL(pll, a, b))
sys/dev/pci/drm/i915/display/intel_display_reg_defs.h
30
#define _MMIO_PHY(phy, a, b) _MMIO(_PHY(phy, a, b))
sys/dev/pci/drm/i915/display/intel_display_reg_defs.h
32
#define _MMIO_BASE_PIPE3(base, pipe, a, b, c) _MMIO((base) + _PICK_EVEN_2RANGES(pipe, 1, a, a, b, c))
sys/dev/pci/drm/i915/display/intel_display_reg_defs.h
33
#define _MMIO_BASE_PORT3(base, pipe, a, b, c) _MMIO((base) + _PICK_EVEN_2RANGES(pipe, 1, a, a, b, c))
sys/dev/pci/drm/i915/display/intel_display_regs.h
1043
#define _ID(id, a, b) _PICK_EVEN(id, a, b)
sys/dev/pci/drm/i915/display/intel_display_trace.h
10
#define trace_g4x_wm(a, b)
sys/dev/pci/drm/i915/display/intel_display_trace.h
11
#define trace_intel_cpu_fifo_underrun(a, b)
sys/dev/pci/drm/i915/display/intel_display_trace.h
18
#define trace_intel_frontbuffer_flush(a, b, c)
sys/dev/pci/drm/i915/display/intel_display_trace.h
19
#define trace_intel_frontbuffer_invalidate(a, b, c)
sys/dev/pci/drm/i915/display/intel_display_trace.h
20
#define trace_intel_memory_cxsr(a, b, c)
sys/dev/pci/drm/i915/display/intel_display_trace.h
21
#define trace_intel_pch_fifo_underrun(a, b)
sys/dev/pci/drm/i915/display/intel_display_trace.h
22
#define trace_intel_pipe_crc(a, b)
sys/dev/pci/drm/i915/display/intel_display_trace.h
25
#define trace_intel_pipe_scaler_update_arm(a, b, c, d, e, f)
sys/dev/pci/drm/i915/display/intel_display_trace.h
26
#define trace_intel_pipe_update_end(a, b, c)
sys/dev/pci/drm/i915/display/intel_display_trace.h
29
#define trace_intel_plane_async_flip(a, b, c)
sys/dev/pci/drm/i915/display/intel_display_trace.h
30
#define trace_intel_plane_disable_arm(a, b)
sys/dev/pci/drm/i915/display/intel_display_trace.h
31
#define trace_intel_plane_scaler_update_arm(a, b, c, d, e, f)
sys/dev/pci/drm/i915/display/intel_display_trace.h
32
#define trace_intel_plane_update_arm(a, b)
sys/dev/pci/drm/i915/display/intel_display_trace.h
33
#define trace_intel_plane_update_noarm(a, b)
sys/dev/pci/drm/i915/display/intel_display_trace.h
34
#define trace_intel_scaler_disable_arm(a, b)
sys/dev/pci/drm/i915/display/intel_display_trace.h
35
#define trace_vlv_fifo_size(a, b, c, d)
sys/dev/pci/drm/i915/display/intel_display_trace.h
36
#define trace_vlv_wm(a, b)
sys/dev/pci/drm/i915/display/intel_dp.c
693
static int link_config_cmp_by_bw(const void *a, const void *b, const void *p)
sys/dev/pci/drm/i915/display/intel_dp.c
697
const struct intel_dp_link_config *lc_b = b;
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
120
const struct intel_dpll_hw_state *b);
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
1267
const struct hsw_dpll_hw_state *b = &_b->hsw;
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
1269
return a->wrpll == b->wrpll &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
1270
a->spll == b->spll;
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
2000
const struct skl_dpll_hw_state *b = &_b->skl;
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
2002
return a->ctrl1 == b->ctrl1 &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
2003
a->cfgcr1 == b->cfgcr1 &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
2004
a->cfgcr2 == b->cfgcr2;
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
2483
const struct bxt_dpll_hw_state *b = &_b->bxt;
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
2485
return a->ebb0 == b->ebb0 &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
2486
a->ebb4 == b->ebb4 &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
2487
a->pll0 == b->pll0 &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
2488
a->pll1 == b->pll1 &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
2489
a->pll2 == b->pll2 &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
2490
a->pll3 == b->pll3 &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
2491
a->pll6 == b->pll6 &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
2492
a->pll8 == b->pll8 &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
2493
a->pll10 == b->pll10 &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
2494
a->pcsdw12 == b->pcsdw12;
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
4121
const struct icl_dpll_hw_state *b = &_b->icl;
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
4124
return a->cfgcr0 == b->cfgcr0 &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
4125
a->cfgcr1 == b->cfgcr1 &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
4126
a->div0 == b->div0 &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
4127
a->mg_refclkin_ctl == b->mg_refclkin_ctl &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
4128
a->mg_clktop2_coreclkctl1 == b->mg_clktop2_coreclkctl1 &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
4129
a->mg_clktop2_hsclkctl == b->mg_clktop2_hsclkctl &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
4130
a->mg_pll_div0 == b->mg_pll_div0 &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
4131
a->mg_pll_div1 == b->mg_pll_div1 &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
4132
a->mg_pll_lf == b->mg_pll_lf &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
4133
a->mg_pll_frac_lock == b->mg_pll_frac_lock &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
4134
a->mg_pll_ssc == b->mg_pll_ssc &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
4135
a->mg_pll_bias == b->mg_pll_bias &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
4136
a->mg_pll_tdc_coldst_bias == b->mg_pll_tdc_coldst_bias;
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
4619
const struct intel_dpll_hw_state *b)
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
4622
return display->dpll.mgr->compare_hw_state(a, b);
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
4627
return ibx_compare_hw_state(a, b);
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
665
const struct i9xx_dpll_hw_state *b = &_b->i9xx;
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
667
return a->dpll == b->dpll &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
668
a->dpll_md == b->dpll_md &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
669
a->fp0 == b->fp0 &&
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
670
a->fp1 == b->fp1;
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
878
u64 a, b, c, d, diff, diff_best;
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
903
b = freq2k * budget * best->p * best->r2;
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
910
if (a < c && b < d) {
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
917
} else if (a >= c && b < d) {
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
922
} else if (a >= c && b >= d) {
sys/dev/pci/drm/i915/display/intel_dpll_mgr.h
38
#define abs_diff(a, b) ({ \
sys/dev/pci/drm/i915/display/intel_dpll_mgr.h
40
typeof(b) __b = (b); \
sys/dev/pci/drm/i915/display/intel_dpll_mgr.h
441
const struct intel_dpll_hw_state *b);
sys/dev/pci/drm/i915/display/skl_watermark.c
2424
const struct skl_ddb_entry *b)
sys/dev/pci/drm/i915/display/skl_watermark.c
2426
return a->start < b->end && b->start < a->end;
sys/dev/pci/drm/i915/display/skl_watermark.c
2430
const struct skl_ddb_entry *b)
sys/dev/pci/drm/i915/display/skl_watermark.c
2432
if (a->end && b->end) {
sys/dev/pci/drm/i915/display/skl_watermark.c
2433
a->start = min(a->start, b->start);
sys/dev/pci/drm/i915/display/skl_watermark.c
2434
a->end = max(a->end, b->end);
sys/dev/pci/drm/i915/display/skl_watermark.c
2435
} else if (b->end) {
sys/dev/pci/drm/i915/display/skl_watermark.c
2436
a->start = b->start;
sys/dev/pci/drm/i915/display/skl_watermark.c
2437
a->end = b->end;
sys/dev/pci/drm/i915/gt/gen7_renderclear.c
166
#define SHADER_CHANNELS(r, g, b, a) \
sys/dev/pci/drm/i915/gt/gen7_renderclear.c
167
(((r) << 25) | ((g) << 22) | ((b) << 19) | ((a) << 16))
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
105
spin_lock(&b->signalers_lock);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
107
spin_unlock(&b->signalers_lock);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
159
static void add_retire(struct intel_breadcrumbs *b, struct intel_timeline *tl)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
161
if (b->irq_engine)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
162
intel_engine_add_retire(b->irq_engine, tl);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
174
struct intel_breadcrumbs *b = container_of(work, typeof(*b), irq_work);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
180
if (unlikely(!llist_empty(&b->signaled_requests)))
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
181
signal = llist_del_all(&b->signaled_requests);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
208
if (!signal && READ_ONCE(b->irq_armed) && list_empty(&b->signalers))
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
209
intel_breadcrumbs_disarm_irq(b);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
21
static bool irq_enable(struct intel_breadcrumbs *b)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
212
atomic_inc(&b->signaler_active);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
213
list_for_each_entry_rcu(ce, &b->signalers, signal_link) {
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
23
return intel_engine_irq_enable(b->irq_engine);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
233
release = remove_signaling_context(b, ce);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
237
add_retire(b, ce->timeline);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
248
atomic_dec(&b->signaler_active);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
26
static void irq_disable(struct intel_breadcrumbs *b)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
269
if (!READ_ONCE(b->irq_armed) && !list_empty(&b->signalers))
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
270
intel_breadcrumbs_arm_irq(b);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
273
if (READ_ONCE(b->irq_armed) && !atomic_read(&b->active))
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
274
intel_breadcrumbs_disarm_irq(b);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
28
intel_engine_irq_disable(b->irq_engine);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
280
struct intel_breadcrumbs *b;
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
282
b = kzalloc(sizeof(*b), GFP_KERNEL);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
283
if (!b)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
286
kref_init(&b->ref);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
288
mtx_init(&b->signalers_lock, IPL_TTY);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
289
INIT_LIST_HEAD(&b->signalers);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
290
init_llist_head(&b->signaled_requests);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
292
mtx_init(&b->irq_lock, IPL_TTY);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
293
init_irq_work(&b->irq_work, signal_irq_work);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
295
b->irq_engine = irq_engine;
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
296
b->irq_enable = irq_enable;
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
297
b->irq_disable = irq_disable;
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
299
return b;
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
302
void intel_breadcrumbs_reset(struct intel_breadcrumbs *b)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
306
if (!b->irq_engine)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
309
spin_lock_irqsave(&b->irq_lock, flags);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
31
static void __intel_breadcrumbs_arm_irq(struct intel_breadcrumbs *b)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
311
if (b->irq_enabled)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
312
b->irq_enable(b);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
314
b->irq_disable(b);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
316
spin_unlock_irqrestore(&b->irq_lock, flags);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
319
void __intel_breadcrumbs_park(struct intel_breadcrumbs *b)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
321
if (!READ_ONCE(b->irq_armed))
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
325
irq_work_queue(&b->irq_work);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
330
struct intel_breadcrumbs *b = container_of(kref, typeof(*b), ref);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
332
irq_work_sync(&b->irq_work);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
333
GEM_BUG_ON(!list_empty(&b->signalers));
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
334
GEM_BUG_ON(b->irq_armed);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
336
kfree(b);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
340
struct intel_breadcrumbs *b)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
346
if (llist_add(&rq->signal_node, &b->signaled_requests))
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
347
irq_work_queue(&b->irq_work);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
352
struct intel_breadcrumbs *b = READ_ONCE(rq->engine)->breadcrumbs;
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
365
irq_signal_request(rq, b);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
371
add_signaling_context(b, ce);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
39
wakeref = intel_gt_pm_get_if_awake(b->irq_engine->gt);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
408
if (!READ_ONCE(b->irq_armed) || __i915_request_is_complete(rq))
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
409
irq_work_queue(&b->irq_work);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
439
struct intel_breadcrumbs *b = READ_ONCE(rq->engine)->breadcrumbs;
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
450
release = remove_signaling_context(b, ce);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
456
irq_signal_request(rq, b);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
462
struct intel_breadcrumbs *b)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
480
irq_signal_request(rq, b);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
483
release = remove_signaling_context(b, ce);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
49
WRITE_ONCE(b->irq_armed, wakeref);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
490
while (atomic_read(&b->signaler_active))
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
494
static void print_signals(struct intel_breadcrumbs *b, struct drm_printer *p)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
502
list_for_each_entry_rcu(ce, &b->signalers, signal_link) {
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
517
struct intel_breadcrumbs *b;
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
519
b = engine->breadcrumbs;
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
52
if (!b->irq_enabled++ && b->irq_enable(b))
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
520
if (!b)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
523
drm_printf(p, "IRQ: %s\n", str_enabled_disabled(b->irq_armed));
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
524
if (!list_empty(&b->signalers))
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
525
print_signals(b, p);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
53
irq_work_queue(&b->irq_work);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
56
static void intel_breadcrumbs_arm_irq(struct intel_breadcrumbs *b)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
58
if (!b->irq_engine)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
61
spin_lock(&b->irq_lock);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
62
if (!b->irq_armed)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
63
__intel_breadcrumbs_arm_irq(b);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
64
spin_unlock(&b->irq_lock);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
67
static void __intel_breadcrumbs_disarm_irq(struct intel_breadcrumbs *b)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
69
intel_wakeref_t wakeref = b->irq_armed;
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
71
GEM_BUG_ON(!b->irq_enabled);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
72
if (!--b->irq_enabled)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
73
b->irq_disable(b);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
75
WRITE_ONCE(b->irq_armed, NULL);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
76
intel_gt_pm_put_async(b->irq_engine->gt, wakeref);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
79
static void intel_breadcrumbs_disarm_irq(struct intel_breadcrumbs *b)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
81
spin_lock(&b->irq_lock);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
82
if (b->irq_armed)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
83
__intel_breadcrumbs_disarm_irq(b);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
84
spin_unlock(&b->irq_lock);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
87
static void add_signaling_context(struct intel_breadcrumbs *b,
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
92
spin_lock(&b->signalers_lock);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
93
list_add_rcu(&ce->signal_link, &b->signalers);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
94
spin_unlock(&b->signalers_lock);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.c
97
static bool remove_signaling_context(struct intel_breadcrumbs *b,
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.h
22
void intel_breadcrumbs_reset(struct intel_breadcrumbs *b);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.h
23
void __intel_breadcrumbs_park(struct intel_breadcrumbs *b);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.h
25
static inline void intel_breadcrumbs_unpark(struct intel_breadcrumbs *b)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.h
27
atomic_inc(&b->active);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.h
30
static inline void intel_breadcrumbs_park(struct intel_breadcrumbs *b)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.h
32
if (atomic_dec_and_test(&b->active))
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.h
33
__intel_breadcrumbs_park(b);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.h
49
struct intel_breadcrumbs *b);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.h
52
intel_breadcrumbs_get(struct intel_breadcrumbs *b)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.h
54
kref_get(&b->ref);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.h
55
return b;
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.h
58
static inline void intel_breadcrumbs_put(struct intel_breadcrumbs *b)
sys/dev/pci/drm/i915/gt/intel_breadcrumbs.h
60
kref_put(&b->ref, intel_breadcrumbs_free);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs_types.h
52
bool (*irq_enable)(struct intel_breadcrumbs *b);
sys/dev/pci/drm/i915/gt/intel_breadcrumbs_types.h
53
void (*irq_disable)(struct intel_breadcrumbs *b);
sys/dev/pci/drm/i915/gt/intel_engine_user.c
60
const struct intel_engine_cs *b =
sys/dev/pci/drm/i915/gt/intel_engine_user.c
61
container_of(B, typeof(*b), uabi_list);
sys/dev/pci/drm/i915/gt/intel_engine_user.c
63
if (uabi_classes[a->class] < uabi_classes[b->class])
sys/dev/pci/drm/i915/gt/intel_engine_user.c
65
if (uabi_classes[a->class] > uabi_classes[b->class])
sys/dev/pci/drm/i915/gt/intel_engine_user.c
68
if (a->instance < b->instance)
sys/dev/pci/drm/i915/gt/intel_engine_user.c
70
if (a->instance > b->instance)
sys/dev/pci/drm/i915/gt/intel_rps.c
363
unsigned int m, x, b;
sys/dev/pci/drm/i915/gt/intel_rps.c
369
b = tsfs & TSFS_INTR_MASK;
sys/dev/pci/drm/i915/gt/intel_rps.c
372
return m * x / 127 - b;
sys/dev/pci/drm/i915/gt/intel_sseu.h
42
#define SSEU_MAX(a, b) ((a) > (b) ? (a) : (b))
sys/dev/pci/drm/i915/gt/selftest_execlists.c
1957
struct preempt_client a, b;
sys/dev/pci/drm/i915/gt/selftest_execlists.c
1968
if (preempt_client_init(gt, &b))
sys/dev/pci/drm/i915/gt/selftest_execlists.c
1970
b.ctx->sched.priority = I915_PRIORITY_MAX;
sys/dev/pci/drm/i915/gt/selftest_execlists.c
1997
rq_b = spinner_create_request(&b.spin,
sys/dev/pci/drm/i915/gt/selftest_execlists.c
1998
b.ctx, engine,
sys/dev/pci/drm/i915/gt/selftest_execlists.c
2011
if (igt_wait_for_spinner(&b.spin, rq_b)) {
sys/dev/pci/drm/i915/gt/selftest_execlists.c
2018
if (!igt_wait_for_spinner(&b.spin, rq_b)) {
sys/dev/pci/drm/i915/gt/selftest_execlists.c
2023
igt_spinner_end(&b.spin);
sys/dev/pci/drm/i915/gt/selftest_execlists.c
2038
preempt_client_fini(&b);
sys/dev/pci/drm/i915/gt/selftest_execlists.c
2044
igt_spinner_end(&b.spin);
sys/dev/pci/drm/i915/gt/selftest_execlists.c
2053
struct preempt_client a, b;
sys/dev/pci/drm/i915/gt/selftest_execlists.c
2126
rq[1] = spinner_create_request(&arg->b.spin,
sys/dev/pci/drm/i915/gt/selftest_execlists.c
2127
arg->b.ctx, arg->engine,
sys/dev/pci/drm/i915/gt/selftest_execlists.c
2197
rq[1] = igt_request_alloc(arg->b.ctx, arg->engine);
sys/dev/pci/drm/i915/gt/selftest_execlists.c
2210
rq[2] = spinner_create_request(&arg->b.spin,
sys/dev/pci/drm/i915/gt/selftest_execlists.c
2396
if (preempt_client_init(gt, &data.b))
sys/dev/pci/drm/i915/gt/selftest_execlists.c
2426
preempt_client_fini(&data.b);
sys/dev/pci/drm/i915/gt/selftest_execlists.c
2433
igt_spinner_end(&data.b.spin);
sys/dev/pci/drm/i915/gt/selftest_execlists.c
2444
struct preempt_client a, b;
sys/dev/pci/drm/i915/gt/selftest_execlists.c
2463
if (preempt_client_init(gt, &b))
sys/dev/pci/drm/i915/gt/selftest_execlists.c
2498
rq_b = spinner_create_request(&b.spin,
sys/dev/pci/drm/i915/gt/selftest_execlists.c
2499
b.ctx, engine,
sys/dev/pci/drm/i915/gt/selftest_execlists.c
2512
if (!igt_wait_for_spinner(&b.spin, rq_b)) {
sys/dev/pci/drm/i915/gt/selftest_execlists.c
2518
swap(a, b);
sys/dev/pci/drm/i915/gt/selftest_execlists.c
2540
preempt_client_fini(&b);
sys/dev/pci/drm/i915/gt/selftest_execlists.c
2546
igt_spinner_end(&b.spin);
sys/dev/pci/drm/i915/gt/selftest_gt_pm.c
17
const u64 *a = A, *b = B;
sys/dev/pci/drm/i915/gt/selftest_gt_pm.c
19
if (a < b)
sys/dev/pci/drm/i915/gt/selftest_gt_pm.c
21
else if (a > b)
sys/dev/pci/drm/i915/gt/selftest_gt_pm.c
29
const u32 *a = A, *b = B;
sys/dev/pci/drm/i915/gt/selftest_gt_pm.c
31
if (a < b)
sys/dev/pci/drm/i915/gt/selftest_gt_pm.c
33
else if (a > b)
sys/dev/pci/drm/i915/gt/selftest_lrc.c
1265
static bool is_moving(u32 a, u32 b)
sys/dev/pci/drm/i915/gt/selftest_lrc.c
1267
return a != b;
sys/dev/pci/drm/i915/gt/selftest_lrc.c
1664
struct intel_context *a, *b;
sys/dev/pci/drm/i915/gt/selftest_lrc.c
1674
b = intel_context_create(engine);
sys/dev/pci/drm/i915/gt/selftest_lrc.c
1675
if (IS_ERR(b)) {
sys/dev/pci/drm/i915/gt/selftest_lrc.c
1676
err = PTR_ERR(b);
sys/dev/pci/drm/i915/gt/selftest_lrc.c
1679
err = intel_context_pin(b);
sys/dev/pci/drm/i915/gt/selftest_lrc.c
1685
GEM_BUG_ON(b->wa_bb_page);
sys/dev/pci/drm/i915/gt/selftest_lrc.c
1698
wabb_ctx_setup(b, per_ctx);
sys/dev/pci/drm/i915/gt/selftest_lrc.c
1704
err = wabb_ctx_check(b, per_ctx);
sys/dev/pci/drm/i915/gt/selftest_lrc.c
1707
intel_context_unpin(b);
sys/dev/pci/drm/i915/gt/selftest_lrc.c
1709
intel_context_put(b);
sys/dev/pci/drm/i915/gt/selftest_migrate.c
838
const ktime_t *a = A, *b = B;
sys/dev/pci/drm/i915/gt/selftest_migrate.c
840
return ktime_compare(*a, *b);
sys/dev/pci/drm/i915/gt/selftest_rps.c
34
const u64 *a = A, *b = B;
sys/dev/pci/drm/i915/gt/selftest_rps.c
36
if (*a < *b)
sys/dev/pci/drm/i915/gt/selftest_rps.c
38
else if (*a > *b)
sys/dev/pci/drm/i915/gt/selftest_rps.c
46
const u32 *a = A, *b = B;
sys/dev/pci/drm/i915/gt/selftest_rps.c
48
if (*a < *b)
sys/dev/pci/drm/i915/gt/selftest_rps.c
50
else if (*a > *b)
sys/dev/pci/drm/i915/gt/selftest_timeline.c
818
static bool cmp_lt(u32 a, u32 b)
sys/dev/pci/drm/i915/gt/selftest_timeline.c
820
return a < b;
sys/dev/pci/drm/i915/gt/selftest_timeline.c
823
static bool cmp_gte(u32 a, u32 b)
sys/dev/pci/drm/i915/gt/selftest_timeline.c
825
return a >= b;
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1007
u32 a, u32 b, i915_reg_t reg)
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1009
if (a == b && !writeonly_reg(engine->i915, reg)) {
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1023
u32 a, u32 b,
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1026
u32 *a, *b;
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1033
b = i915_gem_object_pin_map_unlocked(B->obj, I915_MAP_WB);
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1034
if (IS_ERR(b)) {
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1035
err = PTR_ERR(b);
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1047
if (!fn(engine, a[i], b[i], wa->reg))
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
985
u32 a, u32 b, i915_reg_t reg)
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
987
if (a != b && !pardon_reg(engine->i915, reg)) {
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
989
i915_mmio_reg_offset(reg), a, b);
sys/dev/pci/drm/i915/gt/uc/intel_guc_ads.c
265
static int guc_mmio_reg_cmp(const void *a, const void *b)
sys/dev/pci/drm/i915/gt/uc/intel_guc_ads.c
268
const struct guc_mmio_reg *rb = b;
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
805
guc_capture_data_extracted(struct __guc_capture_bufstate *b,
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
808
if (guc_capture_buf_cnt_to_end(b) >= size) {
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
809
memcpy(dest, (b->data + b->rd), size);
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
810
b->rd += size;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
4278
guc_irq_enable_breadcrumbs(struct intel_breadcrumbs *b)
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
4281
intel_engine_mask_t tmp, mask = b->engine_mask;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
4284
for_each_engine_masked(sibling, b->irq_engine->gt, mask, tmp)
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
4291
guc_irq_disable_breadcrumbs(struct intel_breadcrumbs *b)
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
4294
intel_engine_mask_t tmp, mask = b->engine_mask;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
4296
for_each_engine_masked(sibling, b->irq_engine->gt, mask, tmp)
sys/dev/pci/drm/i915/gvt/debugfs.c
44
const struct list_head *a, const struct list_head *b)
sys/dev/pci/drm/i915/gvt/debugfs.c
50
mb = container_of(b, struct diff_mmio, node);
sys/dev/pci/drm/i915/gvt/execlist.c
45
#define same_context(a, b) (((a)->context_id == (b)->context_id) && \
sys/dev/pci/drm/i915/gvt/execlist.c
46
((a)->lrca == (b)->lrca))
sys/dev/pci/drm/i915/gvt/firmware.c
146
#define VERIFY(s, a, b) do { \
sys/dev/pci/drm/i915/gvt/firmware.c
147
item = (s); file = (u64)(a); request = (u64)(b); \
sys/dev/pci/drm/i915/gvt/firmware.c
148
if ((a) != (b)) \
sys/dev/pci/drm/i915/gvt/gvt.h
394
#define BYTES_TO_MB(b) ((b) >> 20ULL)
sys/dev/pci/drm/i915/gvt/interrupt.c
555
#define SET_BIT_INFO(s, b, e, i) \
sys/dev/pci/drm/i915/gvt/interrupt.c
557
s->events[e].bit = b; \
sys/dev/pci/drm/i915/gvt/interrupt.c
559
s->info[i]->bit_to_event[b] = e;\
sys/dev/pci/drm/i915/gvt/scheduler.c
1611
#define same_context(a, b) (((a)->context_id == (b)->context_id) && \
sys/dev/pci/drm/i915/gvt/scheduler.c
1612
((a)->lrca == (b)->lrca))
sys/dev/pci/drm/i915/i915_debugfs_params.c
119
bool b;
sys/dev/pci/drm/i915/i915_debugfs_params.c
121
ret = kstrtobool_from_user(ubuf, len, &b);
sys/dev/pci/drm/i915/i915_debugfs_params.c
123
*value = b;
sys/dev/pci/drm/i915/i915_debugfs_params.c
64
bool b;
sys/dev/pci/drm/i915/i915_debugfs_params.c
66
ret = kstrtobool_from_user(ubuf, len, &b);
sys/dev/pci/drm/i915/i915_debugfs_params.c
68
*value = b;
sys/dev/pci/drm/i915/i915_ptr_util.h
43
static __always_inline ptrdiff_t ptrdiff(const void *a, const void *b)
sys/dev/pci/drm/i915/i915_ptr_util.h
45
return a - b;
sys/dev/pci/drm/i915/i915_reg_defs.h
198
#define i915_mmio_reg_equal(a, b) (i915_mmio_reg_offset(a) == i915_mmio_reg_offset(b))
sys/dev/pci/drm/i915/i915_syncmap.c
132
static inline bool seqno_later(u32 a, u32 b)
sys/dev/pci/drm/i915/i915_syncmap.c
134
return (s32)(a - b) >= 0;
sys/dev/pci/drm/i915/i915_trace.h
10
#define trace_i915_gem_evict(a, b, c, d)
sys/dev/pci/drm/i915/i915_trace.h
11
#define trace_i915_gem_evict_node(a, b, c)
sys/dev/pci/drm/i915/i915_trace.h
16
#define trace_i915_gem_object_fault(a, b, c, d)
sys/dev/pci/drm/i915/i915_trace.h
17
#define trace_i915_gem_object_pread(a, b, c)
sys/dev/pci/drm/i915/i915_trace.h
18
#define trace_i915_gem_object_pwrite(a, b, c)
sys/dev/pci/drm/i915/i915_trace.h
19
#define trace_i915_gem_shrink(a, b, c)
sys/dev/pci/drm/i915/i915_trace.h
22
#define trace_i915_reg_rw(a, b, c, d, e)
sys/dev/pci/drm/i915/i915_trace.h
26
#define trace_i915_request_in(a, b)
sys/dev/pci/drm/i915/i915_trace.h
28
#define trace_i915_request_queue(a, b)
sys/dev/pci/drm/i915/i915_trace.h
31
#define trace_i915_request_wait_begin(a, b)
sys/dev/pci/drm/i915/i915_trace.h
33
#define trace_i915_vma_bind(a, b)
sys/dev/pci/drm/i915/intel_uncore.h
345
__raw_read(8, b)
sys/dev/pci/drm/i915/intel_uncore.h
350
__raw_write(8, b)
sys/dev/pci/drm/i915/intel_uncore.h
372
__uncore_read(read8, 8, b, true)
sys/dev/pci/drm/i915/intel_uncore.h
378
__uncore_write(write8, 8, b, true)
sys/dev/pci/drm/i915/intel_uncore_trace.h
8
#define trace_i915_reg_rw(a, b, c, d, e)
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1271
struct drm_mm_node *b = list_entry(B, typeof(*b), hole_stack);
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1273
if (a->start < b->start)
sys/dev/pci/drm/i915/selftests/i915_request.c
1931
const u32 *a = A, *b = B;
sys/dev/pci/drm/i915/selftests/i915_request.c
1933
return *a - *b;
sys/dev/pci/drm/i915/selftests/i915_vma.c
538
const struct intel_remapped_plane_info *b)
sys/dev/pci/drm/i915/selftests/i915_vma.c
542
return a->dst_stride * a->width + b->dst_stride * b->width;
sys/dev/pci/drm/i915/selftests/i915_vma.c
544
return a->dst_stride * a->height + b->dst_stride * b->height;
sys/dev/pci/drm/i915/selftests/i915_vma.c
574
}, *a, *b;
sys/dev/pci/drm/i915/selftests/i915_vma.c
594
for (b = planes + ARRAY_SIZE(planes); b-- != planes; ) {
sys/dev/pci/drm/i915/selftests/i915_vma.c
598
.remapped.plane[1] = *b,
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
1181
const ktime_t *a = A, *b = B;
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
1183
return ktime_compare(*a, *b);
sys/dev/pci/drm/include/drm/drm_crtc.h
493
int (*gamma_set)(struct drm_crtc *crtc, u16 *r, u16 *g, u16 *b,
sys/dev/pci/drm/include/drm/drm_fixed.h
115
static inline s64 drm_fixp_mul(s64 a, s64 b)
sys/dev/pci/drm/include/drm/drm_fixed.h
117
unsigned shift = drm_fixp_msbset(a) + drm_fixp_msbset(b);
sys/dev/pci/drm/include/drm/drm_fixed.h
123
b >>= shift >> 1;
sys/dev/pci/drm/include/drm/drm_fixed.h
127
result = a * b;
sys/dev/pci/drm/include/drm/drm_fixed.h
138
static inline s64 drm_fixp_div(s64 a, s64 b)
sys/dev/pci/drm/include/drm/drm_fixed.h
146
b >>= (DRM_FIXED_POINT - shift);
sys/dev/pci/drm/include/drm/drm_fixed.h
148
result = div64_s64(a, b);
sys/dev/pci/drm/include/drm/drm_fixed.h
156
static inline s64 drm_fixp_from_fraction(s64 a, s64 b)
sys/dev/pci/drm/include/drm/drm_fixed.h
160
bool b_neg = b < 0;
sys/dev/pci/drm/include/drm/drm_fixed.h
162
u64 b_abs = b_neg ? -b : b;
sys/dev/pci/drm/include/drm/drm_rect.h
250
const struct drm_rect *b)
sys/dev/pci/drm/include/drm/drm_rect.h
252
return (a->x2 > b->x1 && b->x2 > a->x1 &&
sys/dev/pci/drm/include/drm/drm_rect.h
253
a->y2 > b->y1 && b->y2 > a->y1);
sys/dev/pci/drm/include/linux/apple-gmux.h
7
apple_gmux_detect(void *a, void *b)
sys/dev/pci/drm/include/linux/atomic.h
249
test_and_set_bit(u_int b, volatile void *p)
sys/dev/pci/drm/include/linux/atomic.h
251
unsigned int m = 1 << (b & 0x1f);
sys/dev/pci/drm/include/linux/atomic.h
252
unsigned int prev = __sync_fetch_and_or((volatile u_int *)p + (b >> 5), m);
sys/dev/pci/drm/include/linux/atomic.h
257
clear_bit(u_int b, volatile void *p)
sys/dev/pci/drm/include/linux/atomic.h
259
atomic_clearbits_int(((volatile u_int *)p) + (b >> 5), 1 << (b & 0x1f));
sys/dev/pci/drm/include/linux/atomic.h
263
clear_bit_unlock(u_int b, volatile void *p)
sys/dev/pci/drm/include/linux/atomic.h
266
clear_bit(b, p);
sys/dev/pci/drm/include/linux/atomic.h
270
set_bit(u_int b, volatile void *p)
sys/dev/pci/drm/include/linux/atomic.h
272
atomic_setbits_int(((volatile u_int *)p) + (b >> 5), 1 << (b & 0x1f));
sys/dev/pci/drm/include/linux/atomic.h
276
__clear_bit(u_int b, volatile void *p)
sys/dev/pci/drm/include/linux/atomic.h
279
ptr[b >> 5] &= ~(1 << (b & 0x1f));
sys/dev/pci/drm/include/linux/atomic.h
283
__set_bit(u_int b, volatile void *p)
sys/dev/pci/drm/include/linux/atomic.h
286
ptr[b >> 5] |= (1 << (b & 0x1f));
sys/dev/pci/drm/include/linux/atomic.h
290
test_bit(u_int b, const volatile void *p)
sys/dev/pci/drm/include/linux/atomic.h
292
return !!(((volatile u_int *)p)[b >> 5] & (1 << (b & 0x1f)));
sys/dev/pci/drm/include/linux/atomic.h
296
__test_and_set_bit(u_int b, volatile void *p)
sys/dev/pci/drm/include/linux/atomic.h
298
unsigned int m = 1 << (b & 0x1f);
sys/dev/pci/drm/include/linux/atomic.h
300
unsigned int prev = ptr[b >> 5];
sys/dev/pci/drm/include/linux/atomic.h
301
ptr[b >> 5] |= m;
sys/dev/pci/drm/include/linux/atomic.h
307
test_and_clear_bit(u_int b, volatile void *p)
sys/dev/pci/drm/include/linux/atomic.h
309
unsigned int m = 1 << (b & 0x1f);
sys/dev/pci/drm/include/linux/atomic.h
310
unsigned int prev = __sync_fetch_and_and((volatile u_int *)p + (b >> 5), ~m);
sys/dev/pci/drm/include/linux/atomic.h
315
__test_and_clear_bit(u_int b, volatile void *p)
sys/dev/pci/drm/include/linux/atomic.h
318
int rv = !!(ptr[b >> 5] & (1 << (b & 0x1f)));
sys/dev/pci/drm/include/linux/atomic.h
319
ptr[b >> 5] &= ~(1 << (b & 0x1f));
sys/dev/pci/drm/include/linux/atomic.h
326
int b;
sys/dev/pci/drm/include/linux/atomic.h
329
for (b = 0; b < max; b += 32) {
sys/dev/pci/drm/include/linux/atomic.h
330
if (ptr[b >> 5] != ~0) {
sys/dev/pci/drm/include/linux/atomic.h
332
if ((ptr[b >> 5] & (1 << (b & 0x1f))) == 0)
sys/dev/pci/drm/include/linux/atomic.h
333
return b;
sys/dev/pci/drm/include/linux/atomic.h
334
b++;
sys/dev/pci/drm/include/linux/atomic.h
342
find_next_zero_bit(volatile void *p, int max, int b)
sys/dev/pci/drm/include/linux/atomic.h
346
for (; b < max; b += 32) {
sys/dev/pci/drm/include/linux/atomic.h
347
if (ptr[b >> 5] != ~0) {
sys/dev/pci/drm/include/linux/atomic.h
349
if ((ptr[b >> 5] & (1 << (b & 0x1f))) == 0)
sys/dev/pci/drm/include/linux/atomic.h
350
return b;
sys/dev/pci/drm/include/linux/atomic.h
351
b++;
sys/dev/pci/drm/include/linux/atomic.h
361
int b;
sys/dev/pci/drm/include/linux/atomic.h
364
for (b = 0; b < max; b += 32) {
sys/dev/pci/drm/include/linux/atomic.h
365
if (ptr[b >> 5] != 0) {
sys/dev/pci/drm/include/linux/atomic.h
367
if (ptr[b >> 5] & (1 << (b & 0x1f)))
sys/dev/pci/drm/include/linux/atomic.h
368
return b;
sys/dev/pci/drm/include/linux/atomic.h
369
b++;
sys/dev/pci/drm/include/linux/atomic.h
377
find_next_bit(const volatile void *p, int max, int b)
sys/dev/pci/drm/include/linux/atomic.h
381
for (; b < max; b+= 32) {
sys/dev/pci/drm/include/linux/atomic.h
382
if (ptr[b >> 5] != 0) {
sys/dev/pci/drm/include/linux/atomic.h
384
if (ptr[b >> 5] & (1 << (b & 0x1f)))
sys/dev/pci/drm/include/linux/atomic.h
385
return b;
sys/dev/pci/drm/include/linux/atomic.h
386
b++;
sys/dev/pci/drm/include/linux/atomic.h
393
#define for_each_set_bit(b, p, max) \
sys/dev/pci/drm/include/linux/atomic.h
394
for ((b) = find_first_bit((p), (max)); \
sys/dev/pci/drm/include/linux/atomic.h
395
(b) < (max); \
sys/dev/pci/drm/include/linux/atomic.h
396
(b) = find_next_bit((p), (max), (b) + 1))
sys/dev/pci/drm/include/linux/atomic.h
398
#define for_each_clear_bit(b, p, max) \
sys/dev/pci/drm/include/linux/atomic.h
399
for ((b) = find_first_zero_bit((p), (max)); \
sys/dev/pci/drm/include/linux/atomic.h
400
(b) < (max); \
sys/dev/pci/drm/include/linux/atomic.h
401
(b) = find_next_zero_bit((p), (max), (b) + 1))
sys/dev/pci/drm/include/linux/bitmap.h
105
u_int b;
sys/dev/pci/drm/include/linux/bitmap.h
107
for (b = 0; b < n; b += 32)
sys/dev/pci/drm/include/linux/bitmap.h
108
if (b1[b >> 5] & b2[b >> 5])
sys/dev/pci/drm/include/linux/bitmap.h
111
if ((b1[n >> 5] & b2[b >> 5]) & (0xffffffff >> (32 - (n % 32))))
sys/dev/pci/drm/include/linux/bitmap.h
122
u_int b;
sys/dev/pci/drm/include/linux/bitmap.h
124
for (b = 0; b < n; b += 32)
sys/dev/pci/drm/include/linux/bitmap.h
125
dst[b >> 5] = src[b >> 5];
sys/dev/pci/drm/include/linux/bitmap.h
133
u_int b;
sys/dev/pci/drm/include/linux/bitmap.h
135
for (b = 0; b < n; b += 32) {
sys/dev/pci/drm/include/linux/bitmap.h
136
dst[b >> 5] = src[b >> 6] & 0xffffffff;
sys/dev/pci/drm/include/linux/bitmap.h
137
b += 32;
sys/dev/pci/drm/include/linux/bitmap.h
138
if (b < n)
sys/dev/pci/drm/include/linux/bitmap.h
139
dst[b >> 5] = src[b >> 6] >> 32;
sys/dev/pci/drm/include/linux/bitmap.h
153
u_int b;
sys/dev/pci/drm/include/linux/bitmap.h
155
for (b = 0; b < n; b += 32) {
sys/dev/pci/drm/include/linux/bitmap.h
156
dst[b >> 6] = src[b >> 5];
sys/dev/pci/drm/include/linux/bitmap.h
157
b += 32;
sys/dev/pci/drm/include/linux/bitmap.h
158
if (b < n)
sys/dev/pci/drm/include/linux/bitmap.h
159
dst[b >> 6] |= ((unsigned long)src[b >> 5]) << 32;
sys/dev/pci/drm/include/linux/bitmap.h
174
u_int b;
sys/dev/pci/drm/include/linux/bitmap.h
177
for (b = 0; b < n; b += 32)
sys/dev/pci/drm/include/linux/bitmap.h
178
sum += hweight32(ptr[b >> 5]);
sys/dev/pci/drm/include/linux/bitmap.h
185
int b;
sys/dev/pci/drm/include/linux/bitmap.h
188
b = find_first_zero_bit(p, n);
sys/dev/pci/drm/include/linux/bitmap.h
189
if (b == n)
sys/dev/pci/drm/include/linux/bitmap.h
191
__set_bit(b, p);
sys/dev/pci/drm/include/linux/bitmap.h
192
return b;
sys/dev/pci/drm/include/linux/bitmap.h
196
bitmap_release_region(void *p, u_int b, int o)
sys/dev/pci/drm/include/linux/bitmap.h
199
__clear_bit(b, p);
sys/dev/pci/drm/include/linux/bitmap.h
28
bitmap_set(void *p, int b, u_int n)
sys/dev/pci/drm/include/linux/bitmap.h
30
u_int end = b + n;
sys/dev/pci/drm/include/linux/bitmap.h
32
for (; b < end; b++)
sys/dev/pci/drm/include/linux/bitmap.h
33
__set_bit(b, p);
sys/dev/pci/drm/include/linux/bitmap.h
37
bitmap_clear(void *p, int b, u_int n)
sys/dev/pci/drm/include/linux/bitmap.h
39
u_int end = b + n;
sys/dev/pci/drm/include/linux/bitmap.h
41
for (; b < end; b++)
sys/dev/pci/drm/include/linux/bitmap.h
42
__clear_bit(b, p);
sys/dev/pci/drm/include/linux/bitmap.h
49
u_int b;
sys/dev/pci/drm/include/linux/bitmap.h
51
for (b = 0; b < n; b += 32)
sys/dev/pci/drm/include/linux/bitmap.h
52
ptr[b >> 5] = 0;
sys/dev/pci/drm/include/linux/bitmap.h
59
u_int b;
sys/dev/pci/drm/include/linux/bitmap.h
61
for (b = 0; b < n; b += 32)
sys/dev/pci/drm/include/linux/bitmap.h
62
ptr[b >> 5] = 0xffffffff;
sys/dev/pci/drm/include/linux/bitmap.h
71
u_int b;
sys/dev/pci/drm/include/linux/bitmap.h
73
for (b = 0; b < n; b += 32)
sys/dev/pci/drm/include/linux/bitmap.h
74
dst[b >> 5] = src1[b >> 5] | src2[b >> 5];
sys/dev/pci/drm/include/linux/bitmap.h
83
u_int b;
sys/dev/pci/drm/include/linux/bitmap.h
85
for (b = 0; b < n; b += 32)
sys/dev/pci/drm/include/linux/bitmap.h
86
dst[b >> 5] = src1[b >> 5] & ~src2[b >> 5];
sys/dev/pci/drm/include/linux/bitmap.h
94
u_int b;
sys/dev/pci/drm/include/linux/bitmap.h
96
for (b = 0; b < n; b += 32)
sys/dev/pci/drm/include/linux/bitmap.h
97
dst[b >> 5] = ~src[b >> 5];
sys/dev/pci/drm/include/linux/bitops.h
128
__assign_bit(u_int b, volatile void *p, bool set)
sys/dev/pci/drm/include/linux/bitops.h
131
__set_bit(b, p);
sys/dev/pci/drm/include/linux/bitops.h
133
__clear_bit(b, p);
sys/dev/pci/drm/include/linux/cgroup_dmem.h
21
struct dmem_cgroup_pool_state *t, bool a, bool *b)
sys/dev/pci/drm/include/linux/clk.h
12
#define devm_clk_put(a, b)
sys/dev/pci/drm/include/linux/component.h
23
#define component_del(a, b)
sys/dev/pci/drm/include/linux/component.h
26
#define component_unbind_all(a, b)
sys/dev/pci/drm/include/linux/debugfs.h
11
#define debugfs_create_atomic_t(a, b, c, d)
sys/dev/pci/drm/include/linux/debugfs.h
13
#define debugfs_create_dir(a, b) ERR_PTR(-ENOSYS)
sys/dev/pci/drm/include/linux/debugfs.h
14
#define debugfs_create_file(a, b, c, d, e) ERR_PTR(-ENOSYS)
sys/dev/pci/drm/include/linux/debugfs.h
15
#define debugfs_create_file_unsafe(a, b, c, d, e) ERR_PTR(-ENOSYS)
sys/dev/pci/drm/include/linux/debugfs.h
16
#define debugfs_create_bool(a, b, c, d)
sys/dev/pci/drm/include/linux/debugfs.h
18
#define DEFINE_DEBUGFS_ATTRIBUTE(a, b, c, d)
sys/dev/pci/drm/include/linux/device.h
37
#define device_create_file(a, b) 0
sys/dev/pci/drm/include/linux/device.h
38
#define device_remove_file(a, b)
sys/dev/pci/drm/include/linux/dma-fence.h
103
__dma_fence_is_later(struct dma_fence *f, uint64_t a, uint64_t b)
sys/dev/pci/drm/include/linux/dma-fence.h
108
return a > b;
sys/dev/pci/drm/include/linux/dma-fence.h
111
bl = b & 0xffffffff;
sys/dev/pci/drm/include/linux/dma-fence.h
117
dma_fence_is_later(struct dma_fence *a, struct dma_fence *b)
sys/dev/pci/drm/include/linux/dma-fence.h
119
if (a->context != b->context)
sys/dev/pci/drm/include/linux/dma-fence.h
121
return __dma_fence_is_later(a, a->seqno, b->seqno);
sys/dev/pci/drm/include/linux/dma-fence.h
125
dma_fence_is_later_or_same(struct dma_fence *a, struct dma_fence *b)
sys/dev/pci/drm/include/linux/dma-fence.h
127
if (a == b)
sys/dev/pci/drm/include/linux/dma-fence.h
129
return dma_fence_is_later(a, b);
sys/dev/pci/drm/include/linux/dynamic_debug.h
6
#define DECLARE_DYNDBG_CLASSMAP(a, b, c, ...)
sys/dev/pci/drm/include/linux/fb.h
73
#define FB_GEN_DEFAULT_DEFERRED_IOMEM_OPS(a, b, c)
sys/dev/pci/drm/include/linux/fb.h
74
#define FB_GEN_DEFAULT_DEFERRED_DMAMEM_OPS(a, b, c)
sys/dev/pci/drm/include/linux/fb.h
75
#define FB_GEN_DEFAULT_DEFERRED_SYSMEM_OPS(a, b, c)
sys/dev/pci/drm/include/linux/firmware.h
53
#define request_firmware_nowait(a, b, c, d, e, f, g) -EINVAL
sys/dev/pci/drm/include/linux/fs.h
30
#define DEFINE_SIMPLE_ATTRIBUTE(a, b, c, d)
sys/dev/pci/drm/include/linux/gcd.h
38
gcd(unsigned long a, unsigned long b)
sys/dev/pci/drm/include/linux/gcd.h
42
c = a % b;
sys/dev/pci/drm/include/linux/gcd.h
44
a = b;
sys/dev/pci/drm/include/linux/gcd.h
45
b = c;
sys/dev/pci/drm/include/linux/gcd.h
46
c = a % b;
sys/dev/pci/drm/include/linux/gcd.h
49
return (b);
sys/dev/pci/drm/include/linux/io.h
17
#define memset_io(d, b, n) memset(d, b, n)
sys/dev/pci/drm/include/linux/iommu.h
27
#define iommu_detach_device(a, b)
sys/dev/pci/drm/include/linux/jiffies.h
51
time_after(const unsigned long a, const unsigned long b)
sys/dev/pci/drm/include/linux/jiffies.h
53
return((long)(b - a) < 0);
sys/dev/pci/drm/include/linux/jiffies.h
55
#define time_before(a,b) time_after(b,a)
sys/dev/pci/drm/include/linux/jiffies.h
58
time_after_eq(const unsigned long a, const unsigned long b)
sys/dev/pci/drm/include/linux/jiffies.h
60
return((long)(b - a) <= 0);
sys/dev/pci/drm/include/linux/jiffies.h
64
time_after_eq64(const unsigned long long a, const unsigned long long b)
sys/dev/pci/drm/include/linux/jiffies.h
66
return((long long)(b - a) <= 0);
sys/dev/pci/drm/include/linux/jiffies.h
69
#define time_after32(a,b) ((int32_t)((uint32_t)(b) - (uint32_t)(a)) < 0)
sys/dev/pci/drm/include/linux/kconfig.h
14
#define __is_defined4(a, b, ...) b
sys/dev/pci/drm/include/linux/kernel.h
26
#define swap(a, b) \
sys/dev/pci/drm/include/linux/kernel.h
27
do { __typeof(a) __tmp = (a); (a) = (b); (b) = __tmp; } while(0)
sys/dev/pci/drm/include/linux/kernel.h
33
#define min_t(t, a, b) ({ \
sys/dev/pci/drm/include/linux/kernel.h
35
t __min_b = (b); \
sys/dev/pci/drm/include/linux/kernel.h
38
#define max_t(t, a, b) ({ \
sys/dev/pci/drm/include/linux/kernel.h
40
t __max_b = (b); \
sys/dev/pci/drm/include/linux/kernel.h
43
#define MIN_T(t, a, b) min_t(t, a, b)
sys/dev/pci/drm/include/linux/kernel.h
44
#define MAX_T(t, a, b) max_t(t, a, b)
sys/dev/pci/drm/include/linux/kernel.h
46
#define clamp_t(t, x, a, b) min_t(t, max_t(t, x, a), b)
sys/dev/pci/drm/include/linux/kernel.h
47
#define clamp(x, a, b) clamp_t(__typeof(x), x, a, b)
sys/dev/pci/drm/include/linux/kernel.h
48
#define clamp_val(x, a, b) clamp_t(__typeof(x), x, a, b)
sys/dev/pci/drm/include/linux/kernel.h
50
#define min(a, b) MIN(a, b)
sys/dev/pci/drm/include/linux/kernel.h
51
#define max(a, b) MAX(a, b)
sys/dev/pci/drm/include/linux/kernel.h
55
#define min_not_zero(a, b) (a == 0) ? b : ((b == 0) ? a : min(a, b))
sys/dev/pci/drm/include/linux/ktime.h
124
ktime_us_delta(ktime_t a, ktime_t b)
sys/dev/pci/drm/include/linux/ktime.h
126
return ktime_to_us(ktime_sub(a, b));
sys/dev/pci/drm/include/linux/ktime.h
130
ktime_ms_delta(ktime_t a, ktime_t b)
sys/dev/pci/drm/include/linux/ktime.h
132
return ktime_to_ms(ktime_sub(a, b));
sys/dev/pci/drm/include/linux/ktime.h
136
ktime_before(ktime_t a, ktime_t b)
sys/dev/pci/drm/include/linux/ktime.h
138
return a < b;
sys/dev/pci/drm/include/linux/ktime.h
142
ktime_after(ktime_t a, ktime_t b)
sys/dev/pci/drm/include/linux/ktime.h
144
return a > b;
sys/dev/pci/drm/include/linux/ktime.h
88
ktime_sub(ktime_t a, ktime_t b)
sys/dev/pci/drm/include/linux/ktime.h
90
return a - b;
sys/dev/pci/drm/include/linux/ktime.h
94
ktime_add(ktime_t a, ktime_t b)
sys/dev/pci/drm/include/linux/ktime.h
96
return a + b;
sys/dev/pci/drm/include/linux/lockdep.h
22
#define lock_acquire(lock, a, b, c, d, e, f)
sys/dev/pci/drm/include/linux/lockdep.h
24
#define lock_acquire_shared_recursive(lock, a, b, c, d)
sys/dev/pci/drm/include/linux/lockdep.h
25
#define lockdep_set_subclass(a, b)
sys/dev/pci/drm/include/linux/lockdep.h
26
#define lockdep_unpin_lock(a, b)
sys/dev/pci/drm/include/linux/lockdep.h
27
#define lockdep_set_class(a, b)
sys/dev/pci/drm/include/linux/lockdep.h
28
#define lockdep_init_map(a, b, c, d)
sys/dev/pci/drm/include/linux/lockdep.h
29
#define lockdep_set_class_and_name(a, b, c)
sys/dev/pci/drm/include/linux/lockdep.h
32
#define mutex_acquire(a, b, c, d)
sys/dev/pci/drm/include/linux/lockdep.h
33
#define mutex_release(a, b)
sys/dev/pci/drm/include/linux/mod_devicetable.h
41
#define DMI_MATCH(a, b) {(a), (b)}
sys/dev/pci/drm/include/linux/mod_devicetable.h
42
#define DMI_EXACT_MATCH(a, b) {(a), (b)}
sys/dev/pci/drm/include/linux/nospec.h
6
#define array_index_nospec(a, b) (a)
sys/dev/pci/drm/include/linux/of.h
54
#define of_property_match_string(n, a, b) \
sys/dev/pci/drm/include/linux/of.h
55
__of_property_match_string(__of_node(n), (a), (b))
sys/dev/pci/drm/include/linux/of.h
59
#define of_parse_phandle(n, a, b) \
sys/dev/pci/drm/include/linux/of.h
60
__of_parse_phandle(__of_node(n), (a), (b))
sys/dev/pci/drm/include/linux/of.h
70
#define of_parse_phandle_with_args(n, a, b, c, d) \
sys/dev/pci/drm/include/linux/of.h
71
__of_parse_phandle_with_args(__of_node(n), (a), (b), (c), (d))
sys/dev/pci/drm/include/linux/of.h
82
#define for_each_matching_node(a, b) \
sys/dev/pci/drm/include/linux/of.h
83
for (a = __matching_node(NULL, b); a; a = __matching_node(a, b))
sys/dev/pci/drm/include/linux/of_platform.h
10
#define of_platform_device_destroy(a, b)
sys/dev/pci/drm/include/linux/rculist.h
10
#define list_add_tail_rcu(a, b) list_add_tail(a, b)
sys/dev/pci/drm/include/linux/rculist.h
13
#define list_for_each_entry_lockless(a, b, c) list_for_each_entry(a, b, c)
sys/dev/pci/drm/include/linux/rculist.h
9
#define list_add_rcu(a, b) list_add(a, b)
sys/dev/pci/drm/include/linux/string.h
18
mem_is_zero(const void *b, size_t len)
sys/dev/pci/drm/include/linux/string.h
20
return (memchr_inv(b, 0, len) == NULL);
sys/dev/pci/drm/include/linux/string.h
24
memset32(uint32_t *b, uint32_t c, size_t len)
sys/dev/pci/drm/include/linux/string.h
26
uint32_t *dst = b;
sys/dev/pci/drm/include/linux/string.h
29
return b;
sys/dev/pci/drm/include/linux/string.h
33
memset64(uint64_t *b, uint64_t c, size_t len)
sys/dev/pci/drm/include/linux/string.h
35
uint64_t *dst = b;
sys/dev/pci/drm/include/linux/string.h
38
return b;
sys/dev/pci/drm/include/linux/uuid.h
34
guid_equal(const guid_t *a, const guid_t *b)
sys/dev/pci/drm/include/linux/uuid.h
36
return memcmp(&a->guid, &b->guid, sizeof(a->guid)) == 0;
sys/dev/pci/drm/include/uapi/drm/drm_fourcc.h
105
#define fourcc_code(a, b, c, d) ((__u32)(a) | ((__u32)(b) << 8) | \
sys/dev/pci/drm/linux_list_sort.c
120
list_sort_merge(struct list_head *a, struct list_head *b,
sys/dev/pci/drm/linux_list_sort.c
129
while ((a != NULL) && (b != NULL)) {
sys/dev/pci/drm/linux_list_sort.c
130
struct list_head **const first = ((*compare)(arg, a, b) <= 0?
sys/dev/pci/drm/linux_list_sort.c
131
&a : &b);
sys/dev/pci/drm/linux_list_sort.c
140
tail->next = (a != NULL? a : b);
sys/dev/pci/drm/linux_list_sort.c
151
struct list_head *a, struct list_head *b,
sys/dev/pci/drm/linux_list_sort.c
160
while ((a != NULL) && (b != NULL)) {
sys/dev/pci/drm/linux_list_sort.c
162
(*compare)(arg, a, b) <= 0 ? &a : &b);
sys/dev/pci/drm/linux_list_sort.c
173
struct list_head *tail = (a == NULL? b : a);
sys/dev/pci/drm/linux_sort.c
37
#define min(a, b) (a) < (b) ? a : b
sys/dev/pci/drm/linux_sort.c
57
swapfunc(char *a, char *b, size_t n, int swaptype)
sys/dev/pci/drm/linux_sort.c
60
swapcode(long, a, b, n)
sys/dev/pci/drm/linux_sort.c
62
swapcode(char, a, b, n)
sys/dev/pci/drm/linux_sort.c
65
#define swap(a, b) \
sys/dev/pci/drm/linux_sort.c
68
*(long *)(a) = *(long *)(b); \
sys/dev/pci/drm/linux_sort.c
69
*(long *)(b) = t; \
sys/dev/pci/drm/linux_sort.c
71
swapfunc(a, b, es, swaptype)
sys/dev/pci/drm/linux_sort.c
73
#define vecswap(a, b, n) if ((n) > 0) swapfunc(a, b, n, swaptype)
sys/dev/pci/drm/linux_sort.c
76
med3(char *a, char *b, char *c, int (*cmp)(const void *, const void *))
sys/dev/pci/drm/linux_sort.c
78
return cmp(a, b) < 0 ?
sys/dev/pci/drm/linux_sort.c
79
(cmp(b, c) < 0 ? b : (cmp(a, c) < 0 ? c : a ))
sys/dev/pci/drm/linux_sort.c
80
:(cmp(b, c) > 0 ? b : (cmp(a, c) < 0 ? a : c ));
sys/dev/pci/drm/linux_sort_r.c
38
#define min(a, b) (a) < (b) ? a : b
sys/dev/pci/drm/linux_sort_r.c
58
swapfunc(char *a, char *b, size_t n, int swaptype)
sys/dev/pci/drm/linux_sort_r.c
61
swapcode(long, a, b, n)
sys/dev/pci/drm/linux_sort_r.c
63
swapcode(char, a, b, n)
sys/dev/pci/drm/linux_sort_r.c
66
#define swap(a, b) \
sys/dev/pci/drm/linux_sort_r.c
69
*(long *)(a) = *(long *)(b); \
sys/dev/pci/drm/linux_sort_r.c
70
*(long *)(b) = t; \
sys/dev/pci/drm/linux_sort_r.c
72
swapfunc(a, b, es, swaptype)
sys/dev/pci/drm/linux_sort_r.c
74
#define vecswap(a, b, n) if ((n) > 0) swapfunc(a, b, n, swaptype)
sys/dev/pci/drm/linux_sort_r.c
77
med3(char *a, char *b, char *c,
sys/dev/pci/drm/linux_sort_r.c
81
return cmp(a, b, p) < 0 ?
sys/dev/pci/drm/linux_sort_r.c
82
(cmp(b, c, p) < 0 ? b : (cmp(a, c, p) < 0 ? c : a ))
sys/dev/pci/drm/linux_sort_r.c
83
:(cmp(b, c, p) > 0 ? b : (cmp(a, c, p) < 0 ? a : c ));
sys/dev/pci/drm/radeon/cik.c
9035
fixed20_12 a, b;
sys/dev/pci/drm/radeon/cik.c
9041
b.full = dfixed_mul(a, disp_clk);
sys/dev/pci/drm/radeon/cik.c
9047
bandwidth.full = dfixed_mul(b, disp_clk_request_efficiency);
sys/dev/pci/drm/radeon/cik.c
9126
fixed20_12 a, b, c;
sys/dev/pci/drm/radeon/cik.c
9132
b.full = dfixed_const(1);
sys/dev/pci/drm/radeon/cik.c
9134
((wm->vsc.full > b.full) && (wm->vtaps >= 3)) ||
sys/dev/pci/drm/radeon/cik.c
9142
b.full = dfixed_const(wm->num_heads);
sys/dev/pci/drm/radeon/cik.c
9143
a.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/cik.c
9150
b.full = dfixed_const(1000);
sys/dev/pci/drm/radeon/cik.c
9152
b.full = dfixed_div(c, b);
sys/dev/pci/drm/radeon/cik.c
9153
a.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/evergreen.c
2076
fixed20_12 a, b, c;
sys/dev/pci/drm/radeon/evergreen.c
2082
b.full = dfixed_const(1);
sys/dev/pci/drm/radeon/evergreen.c
2084
((wm->vsc.full > b.full) && (wm->vtaps >= 3)) ||
sys/dev/pci/drm/radeon/evergreen.c
2092
b.full = dfixed_const(wm->num_heads);
sys/dev/pci/drm/radeon/evergreen.c
2093
a.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/evergreen.c
2098
b.full = dfixed_const(1000);
sys/dev/pci/drm/radeon/evergreen.c
2100
b.full = dfixed_div(c, b);
sys/dev/pci/drm/radeon/evergreen.c
2101
a.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/evergreen.c
2170
fixed20_12 a, b, c;
sys/dev/pci/drm/radeon/evergreen.c
2259
b.full = dfixed_const(mode->clock);
sys/dev/pci/drm/radeon/evergreen.c
2260
b.full = dfixed_div(b, a);
sys/dev/pci/drm/radeon/evergreen.c
2262
c.full = dfixed_mul(c, b);
sys/dev/pci/drm/radeon/evergreen.c
2271
b.full = dfixed_const(mode->clock);
sys/dev/pci/drm/radeon/evergreen.c
2272
b.full = dfixed_div(b, a);
sys/dev/pci/drm/radeon/evergreen.c
2274
c.full = dfixed_mul(c, b);
sys/dev/pci/drm/radeon/evergreen_cs.c
37
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
sys/dev/pci/drm/radeon/evergreen_cs.c
38
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
sys/dev/pci/drm/radeon/kv_dpm.c
629
static u32 kv_get_clock_difference(u32 a, u32 b)
sys/dev/pci/drm/radeon/kv_dpm.c
631
return (a >= b) ? a - b : b - a;
sys/dev/pci/drm/radeon/radeon.h
2768
#define radeon_hdmi_enable(rdev, e, b) (rdev)->asic->display.hdmi_enable((e), (b))
sys/dev/pci/drm/radeon/radeon.h
414
struct radeon_fence *b)
sys/dev/pci/drm/radeon/radeon.h
417
return b;
sys/dev/pci/drm/radeon/radeon.h
420
if (!b) {
sys/dev/pci/drm/radeon/radeon.h
424
BUG_ON(a->ring != b->ring);
sys/dev/pci/drm/radeon/radeon.h
426
if (a->seq > b->seq) {
sys/dev/pci/drm/radeon/radeon.h
429
return b;
sys/dev/pci/drm/radeon/radeon.h
434
struct radeon_fence *b)
sys/dev/pci/drm/radeon/radeon.h
440
if (!b) {
sys/dev/pci/drm/radeon/radeon.h
444
BUG_ON(a->ring != b->ring);
sys/dev/pci/drm/radeon/radeon.h
446
return a->seq < b->seq;
sys/dev/pci/drm/radeon/radeon_cs.c
399
const struct list_head *b)
sys/dev/pci/drm/radeon/radeon_cs.c
402
struct radeon_bo_list *lb = list_entry(b, struct radeon_bo_list, list);
sys/dev/pci/drm/radeon/radeon_cs.c
51
static void radeon_cs_buckets_init(struct radeon_cs_buckets *b)
sys/dev/pci/drm/radeon/radeon_cs.c
56
INIT_LIST_HEAD(&b->bucket[i]);
sys/dev/pci/drm/radeon/radeon_cs.c
59
static void radeon_cs_buckets_add(struct radeon_cs_buckets *b,
sys/dev/pci/drm/radeon/radeon_cs.c
67
list_add_tail(item, &b->bucket[min(priority, RADEON_CS_MAX_PRIORITY)]);
sys/dev/pci/drm/radeon/radeon_cs.c
70
static void radeon_cs_buckets_get_list(struct radeon_cs_buckets *b,
sys/dev/pci/drm/radeon/radeon_cs.c
77
list_splice(&b->bucket[i], out_list);
sys/dev/pci/drm/radeon/radeon_display.c
112
b = g + crtc->gamma_size;
sys/dev/pci/drm/radeon/radeon_display.c
117
(*b++ >> 6));
sys/dev/pci/drm/radeon/radeon_display.c
126
u16 *r, *g, *b;
sys/dev/pci/drm/radeon/radeon_display.c
160
b = g + crtc->gamma_size;
sys/dev/pci/drm/radeon/radeon_display.c
165
(*b++ >> 6));
sys/dev/pci/drm/radeon/radeon_display.c
1758
fixed20_12 a, b;
sys/dev/pci/drm/radeon/radeon_display.c
1760
b.full = dfixed_const(dst_v);
sys/dev/pci/drm/radeon/radeon_display.c
1761
radeon_crtc->vsc.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/radeon_display.c
1763
b.full = dfixed_const(dst_h);
sys/dev/pci/drm/radeon/radeon_display.c
1764
radeon_crtc->hsc.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/radeon_display.c
198
u16 *r, *g, *b;
sys/dev/pci/drm/radeon/radeon_display.c
212
b = g + crtc->gamma_size;
sys/dev/pci/drm/radeon/radeon_display.c
217
(*b++ >> 6));
sys/dev/pci/drm/radeon/radeon_display.c
54
u16 *r, *g, *b;
sys/dev/pci/drm/radeon/radeon_display.c
75
b = g + crtc->gamma_size;
sys/dev/pci/drm/radeon/radeon_display.c
80
(*b++ >> 6));
sys/dev/pci/drm/radeon/radeon_display.c
92
u16 *r, *g, *b;
sys/dev/pci/drm/radeon/radeon_drv.c
893
radeondrm_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/dev/pci/drm/radeon/radeon_drv.c
902
(r << 22) | (g << 12) | (b << 2));
sys/dev/pci/drm/radeon/rs690.c
278
fixed20_12 a, b, c;
sys/dev/pci/drm/radeon/rs690.c
310
b.full = dfixed_const(mode->crtc_hdisplay);
sys/dev/pci/drm/radeon/rs690.c
312
a.full = dfixed_div(b, c);
sys/dev/pci/drm/radeon/rs690.c
328
b.full = dfixed_const(1000);
sys/dev/pci/drm/radeon/rs690.c
329
a.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/rs690.c
330
pclk.full = dfixed_div(b, a);
sys/dev/pci/drm/radeon/rs690.c
332
b.full = dfixed_const(2);
sys/dev/pci/drm/radeon/rs690.c
333
if (crtc->vsc.full > b.full)
sys/dev/pci/drm/radeon/rs690.c
334
b.full = crtc->vsc.full;
sys/dev/pci/drm/radeon/rs690.c
335
b.full = dfixed_mul(b, crtc->hsc);
sys/dev/pci/drm/radeon/rs690.c
337
b.full = dfixed_div(b, c);
sys/dev/pci/drm/radeon/rs690.c
338
consumption_time.full = dfixed_div(pclk, b);
sys/dev/pci/drm/radeon/rs690.c
360
b.full = dfixed_const(crtc->base.mode.crtc_hdisplay);
sys/dev/pci/drm/radeon/rs690.c
361
wm->active_time.full = dfixed_mul(line_time, b);
sys/dev/pci/drm/radeon/rs690.c
372
b.full = dfixed_div(rdev->pm.igp_sideport_mclk, a);
sys/dev/pci/drm/radeon/rs690.c
373
read_delay_latency.full = dfixed_div(read_delay_latency, b);
sys/dev/pci/drm/radeon/rs690.c
469
fixed20_12 a, b;
sys/dev/pci/drm/radeon/rs690.c
480
b.full = dfixed_mul(wm1->dbpp, wm1->num_line_pair);
sys/dev/pci/drm/radeon/rs690.c
482
b.full = wm1->num_line_pair.full;
sys/dev/pci/drm/radeon/rs690.c
483
a.full += b.full;
sys/dev/pci/drm/radeon/rs690.c
486
b.full = wm0->consumption_rate.full - fill_rate.full;
sys/dev/pci/drm/radeon/rs690.c
487
b.full = dfixed_mul(b, wm0->active_time);
sys/dev/pci/drm/radeon/rs690.c
490
a.full = a.full + b.full;
sys/dev/pci/drm/radeon/rs690.c
491
b.full = dfixed_const(16 * 1000);
sys/dev/pci/drm/radeon/rs690.c
492
priority_mark02.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/rs690.c
496
b.full = dfixed_const(16 * 1000);
sys/dev/pci/drm/radeon/rs690.c
497
priority_mark02.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/rs690.c
500
b.full = wm1->consumption_rate.full - fill_rate.full;
sys/dev/pci/drm/radeon/rs690.c
501
b.full = dfixed_mul(b, wm1->active_time);
sys/dev/pci/drm/radeon/rs690.c
504
a.full = a.full + b.full;
sys/dev/pci/drm/radeon/rs690.c
505
b.full = dfixed_const(16 * 1000);
sys/dev/pci/drm/radeon/rs690.c
506
priority_mark12.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/rs690.c
510
b.full = dfixed_const(16 * 1000);
sys/dev/pci/drm/radeon/rs690.c
511
priority_mark12.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/rs690.c
534
b.full = wm0->consumption_rate.full - fill_rate.full;
sys/dev/pci/drm/radeon/rs690.c
535
b.full = dfixed_mul(b, wm0->active_time);
sys/dev/pci/drm/radeon/rs690.c
538
a.full = a.full + b.full;
sys/dev/pci/drm/radeon/rs690.c
539
b.full = dfixed_const(16 * 1000);
sys/dev/pci/drm/radeon/rs690.c
540
priority_mark02.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/rs690.c
544
b.full = dfixed_const(16 * 1000);
sys/dev/pci/drm/radeon/rs690.c
545
priority_mark02.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/rs690.c
561
b.full = wm1->consumption_rate.full - fill_rate.full;
sys/dev/pci/drm/radeon/rs690.c
562
b.full = dfixed_mul(b, wm1->active_time);
sys/dev/pci/drm/radeon/rs690.c
565
a.full = a.full + b.full;
sys/dev/pci/drm/radeon/rs690.c
566
b.full = dfixed_const(16 * 1000);
sys/dev/pci/drm/radeon/rs690.c
567
priority_mark12.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/rs690.c
571
b.full = dfixed_const(16 * 1000);
sys/dev/pci/drm/radeon/rs690.c
572
priority_mark12.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/rv515.c
1008
b.full = dfixed_const(crtc->base.mode.crtc_hdisplay);
sys/dev/pci/drm/radeon/rv515.c
1009
wm->active_time.full = dfixed_mul(line_time, b);
sys/dev/pci/drm/radeon/rv515.c
1088
fixed20_12 a, b;
sys/dev/pci/drm/radeon/rv515.c
1099
b.full = dfixed_div(wm1->dbpp, wm1->num_line_pair);
sys/dev/pci/drm/radeon/rv515.c
1101
b.full = wm1->num_line_pair.full;
sys/dev/pci/drm/radeon/rv515.c
1102
a.full += b.full;
sys/dev/pci/drm/radeon/rv515.c
1105
b.full = wm0->consumption_rate.full - fill_rate.full;
sys/dev/pci/drm/radeon/rv515.c
1106
b.full = dfixed_mul(b, wm0->active_time);
sys/dev/pci/drm/radeon/rv515.c
1108
b.full = dfixed_div(b, a);
sys/dev/pci/drm/radeon/rv515.c
1111
priority_mark02.full = a.full + b.full;
sys/dev/pci/drm/radeon/rv515.c
1115
b.full = dfixed_const(16 * 1000);
sys/dev/pci/drm/radeon/rv515.c
1116
priority_mark02.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/rv515.c
1119
b.full = wm1->consumption_rate.full - fill_rate.full;
sys/dev/pci/drm/radeon/rv515.c
1120
b.full = dfixed_mul(b, wm1->active_time);
sys/dev/pci/drm/radeon/rv515.c
1122
b.full = dfixed_div(b, a);
sys/dev/pci/drm/radeon/rv515.c
1125
priority_mark12.full = a.full + b.full;
sys/dev/pci/drm/radeon/rv515.c
1129
b.full = dfixed_const(16 * 1000);
sys/dev/pci/drm/radeon/rv515.c
1130
priority_mark12.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/rv515.c
1153
b.full = wm0->consumption_rate.full - fill_rate.full;
sys/dev/pci/drm/radeon/rv515.c
1154
b.full = dfixed_mul(b, wm0->active_time);
sys/dev/pci/drm/radeon/rv515.c
1156
b.full = dfixed_div(b, a);
sys/dev/pci/drm/radeon/rv515.c
1159
priority_mark02.full = a.full + b.full;
sys/dev/pci/drm/radeon/rv515.c
1163
b.full = dfixed_const(16);
sys/dev/pci/drm/radeon/rv515.c
1164
priority_mark02.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/rv515.c
1180
b.full = wm1->consumption_rate.full - fill_rate.full;
sys/dev/pci/drm/radeon/rv515.c
1181
b.full = dfixed_mul(b, wm1->active_time);
sys/dev/pci/drm/radeon/rv515.c
1183
b.full = dfixed_div(b, a);
sys/dev/pci/drm/radeon/rv515.c
1186
priority_mark12.full = a.full + b.full;
sys/dev/pci/drm/radeon/rv515.c
1190
b.full = dfixed_const(16 * 1000);
sys/dev/pci/drm/radeon/rv515.c
1191
priority_mark12.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/rv515.c
929
fixed20_12 a, b, c;
sys/dev/pci/drm/radeon/rv515.c
958
b.full = dfixed_const(mode->crtc_hdisplay);
sys/dev/pci/drm/radeon/rv515.c
960
a.full = dfixed_div(b, c);
sys/dev/pci/drm/radeon/rv515.c
976
b.full = dfixed_const(1000);
sys/dev/pci/drm/radeon/rv515.c
977
a.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/rv515.c
978
pclk.full = dfixed_div(b, a);
sys/dev/pci/drm/radeon/rv515.c
980
b.full = dfixed_const(2);
sys/dev/pci/drm/radeon/rv515.c
981
if (crtc->vsc.full > b.full)
sys/dev/pci/drm/radeon/rv515.c
982
b.full = crtc->vsc.full;
sys/dev/pci/drm/radeon/rv515.c
983
b.full = dfixed_mul(b, crtc->hsc);
sys/dev/pci/drm/radeon/rv515.c
985
b.full = dfixed_div(b, c);
sys/dev/pci/drm/radeon/rv515.c
986
consumption_time.full = dfixed_div(pclk, b);
sys/dev/pci/drm/radeon/si.c
2193
fixed20_12 a, b, c;
sys/dev/pci/drm/radeon/si.c
2199
b.full = dfixed_const(1);
sys/dev/pci/drm/radeon/si.c
2201
((wm->vsc.full > b.full) && (wm->vtaps >= 3)) ||
sys/dev/pci/drm/radeon/si.c
2209
b.full = dfixed_const(wm->num_heads);
sys/dev/pci/drm/radeon/si.c
2210
a.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/si.c
2217
b.full = dfixed_const(1000);
sys/dev/pci/drm/radeon/si.c
2219
b.full = dfixed_div(c, b);
sys/dev/pci/drm/radeon/si.c
2220
a.full = dfixed_div(a, b);
sys/dev/pci/drm/radeon/si.c
2288
fixed20_12 a, b, c;
sys/dev/pci/drm/radeon/si.c
2383
b.full = dfixed_const(mode->clock);
sys/dev/pci/drm/radeon/si.c
2384
b.full = dfixed_div(b, a);
sys/dev/pci/drm/radeon/si.c
2386
c.full = dfixed_mul(c, b);
sys/dev/pci/drm/radeon/si.c
2395
b.full = dfixed_const(mode->clock);
sys/dev/pci/drm/radeon/si.c
2396
b.full = dfixed_div(b, a);
sys/dev/pci/drm/radeon/si.c
2398
c.full = dfixed_mul(c, b);
sys/dev/pci/drm/radeon/sid.h
1853
#define DMA_PACKET(cmd, b, t, s, n) ((((cmd) & 0xF) << 28) | \
sys/dev/pci/drm/radeon/sid.h
1854
(((b) & 0x1) << 26) | \
sys/dev/pci/drm/scheduler/sched_main.c
139
const struct rb_node *b)
sys/dev/pci/drm/scheduler/sched_main.c
142
struct drm_sched_entity *ent_b = rb_entry((b), struct drm_sched_entity, rb_tree_node);
sys/dev/pci/drm/ttm/tests/ttm_bo_test.c
22
#define ww_mutex_base_lock(b) rt_mutex_lock(b)
sys/dev/pci/drm/ttm/tests/ttm_bo_test.c
24
#define ww_mutex_base_lock(b) mutex_lock(b)
sys/dev/pci/emuxki.c
1071
chan->fxsend.a.level = chan->fxsend.b.level =
sys/dev/pci/emuxki.c
1080
chan->fxsend.b.dest = 0x1;
sys/dev/pci/emuxki.c
1162
chan->fxsend.b.level = fxsend->b.level;
sys/dev/pci/emuxki.c
1166
chan->fxsend.b.dest = fxsend->b.dest;
sys/dev/pci/emuxki.c
1212
(chan->fxsend.b.dest << 8) |
sys/dev/pci/emuxki.c
1228
(chan->fxsend.b.dest << 20) |
sys/dev/pci/emuxki.c
1233
(chan->fxsend.a.level << 8) | chan->fxsend.b.level);
sys/dev/pci/emuxki.c
1545
fxsend.b.dest = 0x1;
sys/dev/pci/emuxki.c
1555
fxsend.b.level = fxsend.d.level = 0x00;
sys/dev/pci/emuxki.c
1561
fxsend.b.level = fxsend.d.level = 0xc0;
sys/dev/pci/emuxkivar.h
91
} a, b, c, d, e, f, g, h;
sys/dev/pci/ichiic.c
246
u_int8_t *b;
sys/dev/pci/ichiic.c
284
b = (void *)cmdbuf;
sys/dev/pci/ichiic.c
287
bus_space_write_1(sc->sc_iot, sc->sc_ioh, ICH_SMB_HCMD, b[0]);
sys/dev/pci/ichiic.c
291
b = buf;
sys/dev/pci/ichiic.c
294
ICH_SMB_HD0, b[0]);
sys/dev/pci/ichiic.c
297
ICH_SMB_HD1, b[1]);
sys/dev/pci/ichiic.c
362
u_int8_t *b;
sys/dev/pci/ichiic.c
392
b = sc->sc_i2c_xfer.buf;
sys/dev/pci/ichiic.c
395
b[0] = bus_space_read_1(sc->sc_iot, sc->sc_ioh,
sys/dev/pci/ichiic.c
398
b[1] = bus_space_read_1(sc->sc_iot, sc->sc_ioh,
sys/dev/pci/if_devar.h
178
#define TULIP_BIT(b) (1L << ((int)(b)))
sys/dev/pci/if_ice.c
19938
struct ice_buf_build *b;
sys/dev/pci/if_ice.c
19975
b = ice_pkg_buf_alloc(hw);
sys/dev/pci/if_ice.c
19976
if (!b)
sys/dev/pci/if_ice.c
19979
status = ice_pkg_buf_reserve_section(b, sects);
sys/dev/pci/if_ice.c
19985
status = ice_prof_bld_es(hw, blk, b, chgs);
sys/dev/pci/if_ice.c
19991
status = ice_prof_bld_tcam(hw, blk, b, chgs);
sys/dev/pci/if_ice.c
19997
status = ice_prof_bld_xlt1(blk, b, chgs);
sys/dev/pci/if_ice.c
20003
status = ice_prof_bld_xlt2(blk, b, chgs);
sys/dev/pci/if_ice.c
20012
pkg_sects = ice_pkg_buf_get_active_sections(b);
sys/dev/pci/if_ice.c
20019
status = ice_update_pkg(hw, ice_pkg_buf(b), 1);
sys/dev/pci/if_ice.c
20024
ice_free(hw, b);
sys/dev/pci/if_ice.c
9934
static inline uint64_t round_up_64bit(uint64_t a, uint32_t b)
sys/dev/pci/if_ice.c
9936
return DIV_U64(((a) + (b) / 2), (b));
sys/dev/pci/if_iwn.c
4112
#define fdivround(a, b, n) \
sys/dev/pci/if_iwn.c
4113
((((1 << n) * (a)) / (b) + (1 << n) / 2) / (1 << n))
sys/dev/pci/if_mcx.c
3497
void *b, size_t len)
sys/dev/pci/if_mcx.c
3499
caddr_t buf = b;
sys/dev/pci/if_mcx.c
3542
mcx_cmdq_mboxes_copyout(struct mcx_dmamem *mxm, int nmb, void *b, size_t len)
sys/dev/pci/if_mcx.c
3544
caddr_t buf = b;
sys/dev/pci/if_mcx.c
606
#define MCX_BITFIELD_BIT(bf, b) (bf[(sizeof bf - 1) - (b / 8)] & (b % 8))
sys/dev/pci/if_wpi.c
2281
#define fdivround(a, b, n) \
sys/dev/pci/if_wpi.c
2282
((((1 << n) * (a)) / (b) + (1 << n) / 2) / (1 << n))
sys/dev/pci/igc_nvm.c
42
uint16_t IGC_UNUSEDARG b, uint16_t IGC_UNUSEDARG *c)
sys/dev/pci/igc_nvm.c
89
uint16_t IGC_UNUSEDARG b, uint16_t IGC_UNUSEDARG *c)
sys/dev/pci/ips.c
52
#define DPRINTF(a, b) do { if (ips_debug & (a)) printf b; } while (0)
sys/dev/pci/ips.c
55
#define DPRINTF(a, b)
sys/dev/pci/mfii.c
2286
mbox.b[0] = link->target;
sys/dev/pci/mfii.c
2314
mbox.b[0] = ldp.mlp_ld.mld_target;
sys/dev/pci/mfii.c
2315
mbox.b[1] = ldp.mlp_ld.mld_res;
sys/dev/pci/mfii.c
2965
mbox.b[0] = sc->sc_ld_list.mll_list[i].mll_ld.mld_target;
sys/dev/pci/mfii.c
3395
mbox.b[4] = MFI_PD_UNCONFIG_GOOD;
sys/dev/pci/mfii.c
3514
mbox.b[4] = MFI_PD_ONLINE;
sys/dev/pci/mfii.c
3518
mbox.b[4] = MFI_PD_OFFLINE;
sys/dev/pci/mfii.c
3522
mbox.b[4] = MFI_PD_HOTSPARE;
sys/dev/pci/mfii.c
3551
mbox.b[4] = MFI_PD_REBUILD;
sys/dev/pci/mfii.c
987
.b[0] = MR_FLUSH_CTRL_CACHE | MR_FLUSH_DISK_CACHE,
sys/dev/pci/nviic.c
225
u_int8_t *b;
sys/dev/pci/nviic.c
243
b = (u_int8_t *)cmdbuf;
sys/dev/pci/nviic.c
244
nviic_write(nc, NVI_SMB_CMD, b[0]);
sys/dev/pci/nviic.c
247
b = (u_int8_t *)buf;
sys/dev/pci/nviic.c
252
nviic_write(nc, NVI_SMB_DATA(i), b[i]);
sys/dev/pci/nviic.c
291
b[i] = nviic_read(nc, NVI_SMB_DATA(i));
sys/dev/pci/piixpm.c
342
u_int8_t *b;
sys/dev/pci/piixpm.c
380
b = (void *)cmdbuf;
sys/dev/pci/piixpm.c
383
bus_space_write_1(sc->sc_iot, sc->sc_ioh, PIIX_SMB_HCMD, b[0]);
sys/dev/pci/piixpm.c
387
b = buf;
sys/dev/pci/piixpm.c
390
PIIX_SMB_HD0, b[0]);
sys/dev/pci/piixpm.c
393
PIIX_SMB_HD1, b[1]);
sys/dev/pci/piixpm.c
462
u_int8_t *b;
sys/dev/pci/piixpm.c
491
b = sc->sc_i2c_xfer.buf;
sys/dev/pci/piixpm.c
494
b[0] = bus_space_read_1(sc->sc_iot, sc->sc_ioh,
sys/dev/pci/piixpm.c
497
b[1] = bus_space_read_1(sc->sc_iot, sc->sc_ioh,
sys/dev/pci/qle.c
2499
int b;
sys/dev/pci/qle.c
2506
for (b = 0; b < 16; b++) {
sys/dev/pci/qle.c
2507
printf(" %2.2x", iocb[(l*16)+b]);
sys/dev/pci/qle.c
2519
int s, b;
sys/dev/pci/qle.c
2526
for (b = 0; b < sizeof(struct qle_iocb_seg); b++) {
sys/dev/pci/qle.c
2528
+ b]);
sys/dev/pci/viapm.c
526
u_int8_t *b;
sys/dev/pci/viapm.c
556
b = (void *)cmdbuf;
sys/dev/pci/viapm.c
560
VIAPM_SMB_HCMD, b[0]);
sys/dev/pci/viapm.c
564
b = buf;
sys/dev/pci/viapm.c
567
VIAPM_SMB_HD0, b[0]);
sys/dev/pci/viapm.c
570
VIAPM_SMB_HD1, b[1]);
sys/dev/pci/viapm.c
637
u_int8_t *b;
sys/dev/pci/viapm.c
665
b = sc->sc_i2c_xfer.buf;
sys/dev/pci/viapm.c
668
b[0] = bus_space_read_1(sc->sc_iot, sc->sc_smbus_ioh,
sys/dev/pci/viapm.c
671
b[1] = bus_space_read_1(sc->sc_iot, sc->sc_smbus_ioh,
sys/dev/pckbc/pms.c
2396
elantech_packet_type(struct elantech_softc *elantech, u_char b)
sys/dev/pckbc/pms.c
2402
if ((elantech->flags & ELANTECH_F_TRACKPOINT) && ((b & 0x0f) == 0x06))
sys/dev/pckbc/pms.c
2405
return (b & 0x03);
sys/dev/pv/hypervvar.h
166
clear_bit(u_int b, volatile void *p)
sys/dev/pv/hypervvar.h
168
atomic_clearbits_int(((volatile u_int *)p) + (b >> 5), 1 << (b & 0x1f));
sys/dev/pv/hypervvar.h
172
set_bit(u_int b, volatile void *p)
sys/dev/pv/hypervvar.h
174
atomic_setbits_int(((volatile u_int *)p) + (b >> 5), 1 << (b & 0x1f));
sys/dev/pv/hypervvar.h
178
test_bit(u_int b, volatile void *p)
sys/dev/pv/hypervvar.h
180
return !!(((volatile u_int *)p)[b >> 5] & (1 << (b & 0x1f)));
sys/dev/pv/viomb.c
281
struct balloon_req *b;
sys/dev/pv/viomb.c
290
b = &sc->sc_req;
sys/dev/pv/viomb.c
294
0, 0, &b->bl_pglist, nvpages,
sys/dev/pv/viomb.c
301
b->bl_nentries = nvpages;
sys/dev/pv/viomb.c
302
TAILQ_FOREACH(p, &b->bl_pglist, pageq)
sys/dev/pv/viomb.c
303
b->bl_pages[i++] = p->phys_addr / VIRTIO_PAGE_SIZE;
sys/dev/pv/viomb.c
317
bus_dmamap_sync(vsc->sc_dmat, b->bl_dmamap, 0,
sys/dev/pv/viomb.c
319
virtio_enqueue_p(vq, slot, b->bl_dmamap, 0,
sys/dev/pv/viomb.c
324
uvm_pglistfree(&b->bl_pglist);
sys/dev/pv/viomb.c
332
struct balloon_req *b;
sys/dev/pv/viomb.c
341
b = &sc->sc_req;
sys/dev/pv/viomb.c
342
b->bl_nentries = nvpages;
sys/dev/pv/viomb.c
344
TAILQ_INIT(&b->bl_pglist);
sys/dev/pv/viomb.c
348
b->bl_nentries = i - 1;
sys/dev/pv/viomb.c
352
TAILQ_INSERT_TAIL(&b->bl_pglist, p, pageq);
sys/dev/pv/viomb.c
353
b->bl_pages[i] = p->phys_addr / VIRTIO_PAGE_SIZE;
sys/dev/pv/viomb.c
366
bus_dmamap_sync(vsc->sc_dmat, b->bl_dmamap, 0,
sys/dev/pv/viomb.c
369
virtio_enqueue_p(vq, slot, b->bl_dmamap, 0,
sys/dev/pv/viomb.c
373
uvm_pglistfree(&b->bl_pglist);
sys/dev/pv/viomb.c
377
TAILQ_CONCAT(&sc->sc_balloon_pages, &b->bl_pglist, pageq);
sys/dev/pv/viomb.c
420
struct balloon_req *b;
sys/dev/pv/viomb.c
426
b = &sc->sc_req;
sys/dev/pv/viomb.c
427
nvpages = b->bl_nentries;
sys/dev/pv/viomb.c
428
bus_dmamap_sync(vsc->sc_dmat, b->bl_dmamap, 0,
sys/dev/pv/viomb.c
431
TAILQ_CONCAT(&sc->sc_balloon_pages, &b->bl_pglist, pageq);
sys/dev/pv/viomb.c
450
struct balloon_req *b;
sys/dev/pv/viomb.c
456
b = &sc->sc_req;
sys/dev/pv/viomb.c
457
nvpages = b->bl_nentries;
sys/dev/pv/viomb.c
458
bus_dmamap_sync(vsc->sc_dmat, b->bl_dmamap, 0,
sys/dev/pv/viomb.c
463
uvm_pglistfree(&b->bl_pglist);
sys/dev/pv/xenvar.h
23
clear_bit(u_int b, volatile void *p)
sys/dev/pv/xenvar.h
25
atomic_clearbits_int(((volatile u_int *)p) + (b >> 5), 1 << (b & 0x1f));
sys/dev/pv/xenvar.h
29
set_bit(u_int b, volatile void *p)
sys/dev/pv/xenvar.h
31
atomic_setbits_int(((volatile u_int *)p) + (b >> 5), 1 << (b & 0x1f));
sys/dev/pv/xenvar.h
35
test_bit(u_int b, volatile void *p)
sys/dev/pv/xenvar.h
37
return !!(((volatile u_int *)p)[b >> 5] & (1 << (b & 0x1f)));
sys/dev/rasops/rasops32.c
105
((int *)rp)[cnt] = b;
sys/dev/rasops/rasops32.c
198
clr[0] = b;
sys/dev/rasops/rasops32.c
67
int width, height, step, cnt, fs, b, f;
sys/dev/rasops/rasops32.c
94
b = ri->ri_devcmap[(attr >> 16) & 0xf];
sys/dev/rasops/rasops32.c
96
u.d[0][0] = b; u.d[0][1] = b;
sys/dev/rasops/rasops32.c
97
u.d[1][0] = b; u.d[1][1] = f;
sys/dev/rasops/rasops32.c
98
u.d[2][0] = f; u.d[2][1] = b;
sys/dev/sbus/agten.c
303
agten_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/dev/sbus/agten.c
309
sc->sc_cmap.cm_blue[index] = b;
sys/dev/sbus/cgsix.c
250
u_char r[2], g[2], b[2];
sys/dev/sbus/cgsix.c
317
b[0] = sc->sc_curs_fg >> 0;
sys/dev/sbus/cgsix.c
320
b[1] = sc->sc_curs_bg >> 0;
sys/dev/sbus/cgsix.c
327
error = copyout(b, curs->cmap.blue, sizeof(b));
sys/dev/sbus/cgsix.c
375
u_int8_t r[2], g[2], b[2], image[128], mask[128];
sys/dev/sbus/cgsix.c
392
error = copyin(curs->cmap.blue, b, sizeof(b));
sys/dev/sbus/cgsix.c
426
sc->sc_curs_fg = ((r[0] << 16) | (g[0] << 8) | (b[0] << 0));
sys/dev/sbus/cgsix.c
427
sc->sc_curs_bg = ((r[1] << 16) | (g[1] << 8) | (b[1] << 0));
sys/dev/sbus/cgsix.c
635
cgsix_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/dev/sbus/cgsix.c
642
bcm->cm_map[index][2] = b;
sys/dev/sbus/cgthree.c
366
cgthree_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/dev/sbus/cgthree.c
373
bcm->cm_map[index][2] = b;
sys/dev/sbus/mgx.c
449
mgx_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/dev/sbus/mgx.c
456
sc->sc_cmap[i] = b;
sys/dev/sbus/rfx.c
393
rfx_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/dev/sbus/rfx.c
399
sc->sc_cmap.blue[index] = b;
sys/dev/sbus/rfx.c
450
u_int8_t *r, *g, *b;
sys/dev/sbus/rfx.c
454
b = sc->sc_cmap.blue + start;
sys/dev/sbus/rfx.c
463
sc->sc_ramdac[BT463_REG_CMAP_DATA] = *b++;
sys/dev/sbus/tvtwo.c
434
tvtwo_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/dev/sbus/tvtwo.c
442
dac[3] = b;
sys/dev/sbus/vigra.c
396
vigra_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/dev/sbus/vigra.c
403
sc->sc_cmap.cm_map[index][1] = b;
sys/dev/sbus/vigra.c
405
sc->sc_cmap.cm_map[index][3] = b;
sys/dev/sbus/zx.c
383
zx_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/dev/sbus/zx.c
389
sc->sc_cmap.cm_blue[index] = b;
sys/dev/sbus/zx.c
399
u_int8_t *r, *g, *b;
sys/dev/sbus/zx.c
445
b = sc->sc_cmap.cm_blue;
sys/dev/sbus/zx.c
450
*b++ = *color++;
sys/dev/sbus/zx.c
523
u_int8_t *r, *g, *b;
sys/dev/sbus/zx.c
535
b = sc->sc_cmap.cm_blue;
sys/dev/sbus/zx.c
537
SETREG(zx->zx_value, *r++ | (*g++ << 8) | (*b++ << 16));
sys/dev/softraid.c
404
struct buf b;
sys/dev/softraid.c
429
bzero(&b, sizeof(b));
sys/dev/softraid.c
430
b.b_flags = flags | B_PHYS;
sys/dev/softraid.c
431
b.b_proc = curproc;
sys/dev/softraid.c
432
b.b_dev = dev;
sys/dev/softraid.c
433
b.b_iodone = NULL;
sys/dev/softraid.c
434
b.b_error = 0;
sys/dev/softraid.c
435
b.b_blkno = blkno;
sys/dev/softraid.c
436
b.b_data = dma_buf;
sys/dev/softraid.c
437
b.b_bcount = bufsize;
sys/dev/softraid.c
438
b.b_bufsize = bufsize;
sys/dev/softraid.c
439
b.b_resid = bufsize;
sys/dev/softraid.c
440
b.b_vp = vp;
sys/dev/softraid.c
442
if ((b.b_flags & B_READ) == 0) {
sys/dev/softraid.c
448
VOP_STRATEGY(vp, &b);
sys/dev/softraid.c
449
biowait(&b);
sys/dev/softraid.c
451
if (b.b_flags & B_ERROR) {
sys/dev/softraid.c
4526
sr_validate_stripsize(u_int32_t b)
sys/dev/softraid.c
453
DEVNAME(sc), b.b_error, dev, b.b_blkno);
sys/dev/softraid.c
4530
if (b % DEV_BSIZE)
sys/dev/softraid.c
4533
while ((b & 1) == 0) {
sys/dev/softraid.c
4534
b >>= 1;
sys/dev/softraid.c
4539
b >>= 1;
sys/dev/softraid.c
4540
if (b)
sys/dev/softraid.c
5027
uint8_t *b = blk;
sys/dev/softraid.c
5032
printf("%.2x ", b[i + j]);
sys/dev/softraid.c
5035
c = b[i + j];
sys/dev/softraid_raid5.c
757
sr_raid5_xor(void *a, void *b, int len)
sys/dev/softraid_raid5.c
759
uint32_t *xa = a, *xb = b;
sys/dev/softraid_raid6.c
812
gf_mul(uint8_t a, uint8_t b)
sys/dev/softraid_raid6.c
814
return gf_pow[gf_log[a] + gf_log[b]];
sys/dev/tc/tcdsreg.h
85
#define TCDS_CIR_CLR(c, b) c = ((c | TCDS_CIR_ALLINTR) & ~b)
sys/dev/tc/tcdsreg.h
86
#define TCDS_CIR_SET(c, b) c = ((c | TCDS_CIR_ALLINTR) | b)
sys/dev/usb/dwc2/bitmap.h
101
bitmap_clear(void *p, int b, u_int n)
sys/dev/usb/dwc2/bitmap.h
103
u_int end = b + n;
sys/dev/usb/dwc2/bitmap.h
105
for (; b < end; b++)
sys/dev/usb/dwc2/bitmap.h
106
__clear_bit(b, p);
sys/dev/usb/dwc2/bitmap.h
28
__clear_bit(u_int b, volatile void *p)
sys/dev/usb/dwc2/bitmap.h
31
ptr[b >> 5] &= ~(1 << (b & 0x1f));
sys/dev/usb/dwc2/bitmap.h
35
__set_bit(u_int b, volatile void *p)
sys/dev/usb/dwc2/bitmap.h
38
ptr[b >> 5] |= (1 << (b & 0x1f));
sys/dev/usb/dwc2/bitmap.h
42
find_next_zero_bit(volatile void *p, int max, int b)
sys/dev/usb/dwc2/bitmap.h
46
for (; b < max; b += 32) {
sys/dev/usb/dwc2/bitmap.h
47
if (ptr[b >> 5] != ~0) {
sys/dev/usb/dwc2/bitmap.h
49
if ((ptr[b >> 5] & (1 << (b & 0x1f))) == 0)
sys/dev/usb/dwc2/bitmap.h
50
return b;
sys/dev/usb/dwc2/bitmap.h
51
b++;
sys/dev/usb/dwc2/bitmap.h
59
find_next_bit(volatile void *p, int max, int b)
sys/dev/usb/dwc2/bitmap.h
63
for (; b < max; b+= 32) {
sys/dev/usb/dwc2/bitmap.h
64
if (ptr[b >> 5] != 0) {
sys/dev/usb/dwc2/bitmap.h
66
if (ptr[b >> 5] & (1 << (b & 0x1f)))
sys/dev/usb/dwc2/bitmap.h
67
return b;
sys/dev/usb/dwc2/bitmap.h
68
b++;
sys/dev/usb/dwc2/bitmap.h
92
bitmap_set(void *p, int b, u_int n)
sys/dev/usb/dwc2/bitmap.h
94
u_int end = b + n;
sys/dev/usb/dwc2/bitmap.h
96
for (; b < end; b++)
sys/dev/usb/dwc2/bitmap.h
97
__set_bit(b, p);
sys/dev/usb/dwc2/dwc2.c
56
#define DWC2_EVCNT_ADD(a,b) ((void)((a).ev_count += (b)))
sys/dev/usb/dwc2/dwc2.c
58
#define DWC2_EVCNT_ADD(a,b) do { } while (/*CONSTCOND*/0)
sys/dev/usb/dwc2/dwc2_core.h
1182
} b;
sys/dev/usb/dwc2/dwc2_hcd.c
1798
hsotg->flags.b.port_connect_status_change = 1;
sys/dev/usb/dwc2/dwc2_hcd.c
1799
hsotg->flags.b.port_connect_status = 1;
sys/dev/usb/dwc2/dwc2_hcd.c
1816
hsotg->flags.b.port_connect_status_change = 1;
sys/dev/usb/dwc2/dwc2_hcd.c
1817
hsotg->flags.b.port_connect_status = 0;
sys/dev/usb/dwc2/dwc2_hcd.c
1882
hsotg->flags.b.port_suspend_change = 1;
sys/dev/usb/dwc2/dwc2_hcd.c
1887
hsotg->flags.b.port_l1_change = 1;
sys/dev/usb/dwc2/dwc2_hcd.c
1926
if (!hsotg->flags.b.port_connect_status) {
sys/dev/usb/dwc2/dwc2_hcd.c
2002
if (hsotg->flags.b.port_connect_status)
sys/dev/usb/dwc2/dwc2_hcd.c
3533
hsotg->flags.b.port_connect_status_change = 0;
sys/dev/usb/dwc2/dwc2_hcd.c
3540
hsotg->flags.b.port_reset_change = 0;
sys/dev/usb/dwc2/dwc2_hcd.c
3550
hsotg->flags.b.port_enable_change = 0;
sys/dev/usb/dwc2/dwc2_hcd.c
3561
hsotg->flags.b.port_suspend_change = 0;
sys/dev/usb/dwc2/dwc2_hcd.c
3567
hsotg->flags.b.port_l1_change = 0;
sys/dev/usb/dwc2/dwc2_hcd.c
3573
hsotg->flags.b.port_over_current_change = 0;
sys/dev/usb/dwc2/dwc2_hcd.c
3611
if (hsotg->flags.b.port_connect_status_change)
sys/dev/usb/dwc2/dwc2_hcd.c
3613
if (hsotg->flags.b.port_enable_change)
sys/dev/usb/dwc2/dwc2_hcd.c
3615
if (hsotg->flags.b.port_suspend_change)
sys/dev/usb/dwc2/dwc2_hcd.c
3617
if (hsotg->flags.b.port_l1_change)
sys/dev/usb/dwc2/dwc2_hcd.c
3619
if (hsotg->flags.b.port_reset_change)
sys/dev/usb/dwc2/dwc2_hcd.c
3621
if (hsotg->flags.b.port_over_current_change) {
sys/dev/usb/dwc2/dwc2_hcd.c
3628
if (!hsotg->flags.b.port_connect_status) {
sys/dev/usb/dwc2/dwc2_hcd.c
3705
if (!hsotg->flags.b.port_connect_status) {
sys/dev/usb/dwc2/dwc2_hcd.c
3838
retval = (hsotg->flags.b.port_connect_status_change ||
sys/dev/usb/dwc2/dwc2_hcd.c
3839
hsotg->flags.b.port_reset_change ||
sys/dev/usb/dwc2/dwc2_hcd.c
3840
hsotg->flags.b.port_enable_change ||
sys/dev/usb/dwc2/dwc2_hcd.c
3841
hsotg->flags.b.port_suspend_change ||
sys/dev/usb/dwc2/dwc2_hcd.c
3842
hsotg->flags.b.port_over_current_change);
sys/dev/usb/dwc2/dwc2_hcd.c
3848
hsotg->flags.b.port_connect_status_change);
sys/dev/usb/dwc2/dwc2_hcd.c
3850
hsotg->flags.b.port_reset_change);
sys/dev/usb/dwc2/dwc2_hcd.c
3852
hsotg->flags.b.port_enable_change);
sys/dev/usb/dwc2/dwc2_hcd.c
3854
hsotg->flags.b.port_suspend_change);
sys/dev/usb/dwc2/dwc2_hcd.c
3856
hsotg->flags.b.port_over_current_change);
sys/dev/usb/dwc2/dwc2_hcd.c
4355
hsotg->flags.b.port_reset_change = 1;
sys/dev/usb/dwc2/dwc2_hcd.c
4509
if (hsotg->flags.b.port_connect_status == 0)
sys/dev/usb/dwc2/dwc2_hcd.c
4647
hsotg->flags.b.port_suspend_change = 1;
sys/dev/usb/dwc2/dwc2_hcd.c
5090
if (hsotg->flags.b.port_connect_status)
sys/dev/usb/dwc2/dwc2_hcd.c
5732
hsotg->flags.b.port_connect_status_change = 1;
sys/dev/usb/dwc2/dwc2_hcdintr.c
295
hsotg->flags.b.port_reset_change = 1;
sys/dev/usb/dwc2/dwc2_hcdintr.c
357
hsotg->flags.b.port_reset_change = 1;
sys/dev/usb/dwc2/dwc2_hcdintr.c
415
hsotg->flags.b.port_enable_change = 1;
sys/dev/usb/dwc2/dwc2_hcdintr.c
435
hsotg->flags.b.port_over_current_change = 1;
sys/dev/usb/dwc2/dwc2_hcdintr.c
439
if (hsotg->flags.b.port_connect_status_change ||
sys/dev/usb/dwc2/dwc2_hcdintr.c
440
hsotg->flags.b.port_enable_change ||
sys/dev/usb/dwc2/dwc2_hcdintr.c
441
hsotg->flags.b.port_over_current_change)
sys/dev/usb/dwc2/dwc2var.h
150
#define min_t(t, a, b) ({ \
sys/dev/usb/dwc2/dwc2var.h
152
t __min_b = (b); \
sys/dev/usb/dwc2/dwc2var.h
154
#define max_t(t, a, b) ({ \
sys/dev/usb/dwc2/dwc2var.h
156
t __max_b = (b); \
sys/dev/usb/dwc2/gcd.h
38
gcd(unsigned long a, unsigned long b)
sys/dev/usb/dwc2/gcd.h
42
c = a % b;
sys/dev/usb/dwc2/gcd.h
44
a = b;
sys/dev/usb/dwc2/gcd.h
45
b = c;
sys/dev/usb/dwc2/gcd.h
46
c = a % b;
sys/dev/usb/dwc2/gcd.h
49
return (b);
sys/dev/usb/ehci.c
1317
ehci_isoc_bufr_ptr_t b, b2, b3;
sys/dev/usb/ehci.c
1333
b = letoh32(itd->itd.itd_bufr[0]);
sys/dev/usb/ehci.c
1337
EHCI_ITD_GET_EP(b), EHCI_ITD_GET_DADDR(b), EHCI_ITD_GET_DIR(b2),
sys/dev/usb/ehci.c
87
#define bitmask_snprintf(q,f,b,l) snprintf((b), (l), "%b", (q), (f))
sys/dev/usb/if_umb.c
72
#define DDUMPN(n, b, l) \
sys/dev/usb/if_umb.c
75
umb_dump((b), (l)); \
sys/dev/usb/if_umb.c
85
#define DDUMPN(n, b, l) do { } while (0)
sys/dev/usb/ohci.c
62
#define bitmask_snprintf(q,f,b,l) snprintf((b), (l), "%b", (q), (f))
sys/dev/usb/uhci.c
67
#define bitmask_snprintf(q,f,b,l) snprintf((b), (l), "%b", (q), (f))
sys/dev/usb/umct.h
62
#define UMCT_BAUD_RATE(b) (115200/b)
sys/dev/usb/usb_mem.c
190
struct usb_dma_block *b;
sys/dev/usb/usb_mem.c
216
err = usb_block_allocmem(tag, USB_MEM_BLOCK, USB_MEM_SMALL, &b,
sys/dev/usb/usb_mem.c
222
b->frags = mallocarray(USB_MEM_CHUNKS, sizeof(*f), M_USB,
sys/dev/usb/usb_mem.c
224
if (b->frags == NULL) {
sys/dev/usb/usb_mem.c
226
usb_block_freemem(b);
sys/dev/usb/usb_mem.c
230
f = &b->frags[i];
sys/dev/usb/usb_mem.c
231
f->block = b;
sys/dev/wscons/wsemul_vt100_subr.c
240
#define A3(a, b, c) (((a) << 16) | ((b) << 8) | (c))
sys/dev/wscons/wsemul_vt100_subr.c
302
#define A2(a, b) (((a) << 8) | (b))
sys/dev/wsfont/wsfont.c
297
int b, n, r;
sys/dev/wsfont/wsfont.c
304
for (b = 0; b < font->fontwidth; b++) {
sys/dev/wsfont/wsfont.c
307
rb = ch + (font->stride * r) + (b / 8);
sys/dev/wsfont/wsfont.c
308
if (*rb & (0x80 >> (b % 8))) {
sys/dev/wsfont/wsfont.c
313
+ (newstride * b);
sys/dev/wsfont/wsfont.c
324
int b, n, r;
sys/dev/wsfont/wsfont.c
331
for (b = 0; b < font->fontwidth; b++) {
sys/dev/wsfont/wsfont.c
332
int bb = font->fontwidth - 1 - b;
sys/dev/wsfont/wsfont.c
335
rb = ch + (font->stride * r) + (b / 8);
sys/dev/wsfont/wsfont.c
336
if (*rb & (0x80 >> (b % 8))) {
sys/dev/x86emu/x86emu.c
5217
#define xorl(a,b) ((a) && !(b)) || (!(a) && (b))
sys/dev/x86emu/x86emu.c
5257
hw_cpuid(uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d)
sys/dev/x86emu/x86emu.c
5260
: "=a" (*a), "=b" (*b),
sys/kern/dma_alloc.c
51
int b;
sys/kern/dma_alloc.c
53
for (b = 0; b < nitems(dmapools); b++)
sys/kern/dma_alloc.c
54
if (sz <= (1 << (b + DMA_BUCKET_OFFSET)))
sys/kern/dma_alloc.c
55
return (b);
sys/kern/exec_elf.c
106
#define ELF_ROUND(a, b) (((a) + (b) - 1) & ~((b) - 1))
sys/kern/exec_elf.c
107
#define ELF_TRUNC(a, b) ((a) & ~((b) - 1))
sys/kern/kern_malloc.c
65
long b, d;
sys/kern/kern_malloc.c
68
b = 7 + MINBUCKET; d = 4;
sys/kern/kern_malloc.c
70
if (sz <= (1 << b))
sys/kern/kern_malloc.c
71
b -= d;
sys/kern/kern_malloc.c
73
b += d;
sys/kern/kern_malloc.c
76
if (sz <= (1 << b))
sys/kern/kern_malloc.c
77
b += 0;
sys/kern/kern_malloc.c
79
b += 1;
sys/kern/kern_malloc.c
80
return b;
sys/kern/kern_sched.c
802
cpuset_intersection(struct cpuset *to, struct cpuset *a, struct cpuset *b)
sys/kern/kern_sched.c
807
to->cs_set[i] = a->cs_set[i] & b->cs_set[i];
sys/kern/kern_sched.c
811
cpuset_complement(struct cpuset *to, struct cpuset *a, struct cpuset *b)
sys/kern/kern_sched.c
816
to->cs_set[i] = b->cs_set[i] & ~a->cs_set[i];
sys/kern/kern_timeout.c
1030
int b, i;
sys/kern/kern_timeout.c
1048
for (b = 0; b < nitems(timeout_wheel); b++)
sys/kern/kern_timeout.c
1049
db_show_callout_bucket(&timeout_wheel[b]);
sys/kern/kern_timeout.c
1050
for (b = 0; b < nitems(timeout_wheel_kc); b++)
sys/kern/kern_timeout.c
1051
db_show_callout_bucket(&timeout_wheel_kc[b]);
sys/kern/kern_timeout.c
256
int b, level;
sys/kern/kern_timeout.c
264
for (b = 0; b < nitems(timeout_wheel); b++)
sys/kern/kern_timeout.c
265
CIRCQ_INIT(&timeout_wheel[b]);
sys/kern/kern_timeout.c
266
for (b = 0; b < nitems(timeout_wheel_kc); b++)
sys/kern/kern_timeout.c
267
CIRCQ_INIT(&timeout_wheel_kc[b]);
sys/kern/kern_timeout.c
605
int b, done, first, i, last, level, need_softclock = 1, off;
sys/kern/kern_timeout.c
644
for (b = first;; b = (b + 1) % WHEELSIZE) {
sys/kern/kern_timeout.c
645
CIRCQ_CONCAT(&timeout_todo, &timeout_wheel_kc[off + b]);
sys/kern/kern_timeout.c
646
if (b == last)
sys/kern/kern_timeout.c
887
int new_ticks, b;
sys/kern/kern_timeout.c
895
for (b = 0; b < nitems(timeout_wheel); b++) {
sys/kern/kern_timeout.c
896
p = CIRCQ_FIRST(&timeout_wheel[b]);
sys/kern/kern_timeout.c
897
while (p != &timeout_wheel[b]) {
sys/kern/subr_blist.c
1274
swblk_t b, e;
sys/kern/subr_blist.c
1275
blist_gapfind(bl, &b, &e);
sys/kern/subr_blist.c
1277
b, e, e-b);
sys/kern/subr_blist.c
381
swblk_t b, e;
sys/kern/subr_blist.c
385
b = e = 0;
sys/kern/subr_blist.c
389
GAPFIND_FIRSTFREE, maxbp, maxep, &b, &e);
sys/kern/subr_blist.c
393
if (*maxep - *maxbp < e - b) {
sys/kern/subr_blist.c
394
*maxbp = b;
sys/kern/subr_extent.c
68
#define pool_init(a, b, c, d, e, f, g) do { (a)->pr_size = (b); } while (0)
sys/kern/subr_pool.c
281
const struct pool_page_header *b)
sys/kern/subr_pool.c
284
vaddr_t vb = (vaddr_t)b->ph_page;
sys/kern/subr_prf.c
741
char *b, *z;
sys/kern/subr_prf.c
744
b = va_arg(ap, char *);
sys/kern/subr_prf.c
745
if (*b == 8)
sys/kern/subr_prf.c
747
else if (*b == 10)
sys/kern/subr_prf.c
749
else if (*b == 16)
sys/kern/subr_prf.c
753
b++;
sys/kern/subr_prf.c
762
while ((n = *b++) != 0) {
sys/kern/subr_prf.c
769
while (*b > ' ' &&
sys/kern/subr_prf.c
770
(*b & 0x80) == 0) {
sys/kern/subr_prf.c
771
KPRINTF_PUTCHAR(*b);
sys/kern/subr_prf.c
772
b++;
sys/kern/subr_prf.c
776
while (*b > ' ' &&
sys/kern/subr_prf.c
777
(*b & 0x80) == 0)
sys/kern/subr_prf.c
778
b++;
sys/kern/subr_witness.c
320
const struct witness_lock_order_key *b)
sys/kern/subr_witness.c
323
return (a->from == b->from && a->to == b->to);
sys/kern/sys_futex.c
84
futex_is_eq(const struct futex *a, const struct futex *b)
sys/kern/sys_futex.c
86
return (a->ft_off == b->ft_off &&
sys/kern/sys_futex.c
87
a->ft_ps == b->ft_ps &&
sys/kern/sys_futex.c
88
a->ft_obj == b->ft_obj &&
sys/kern/sys_futex.c
89
a->ft_amap == b->ft_amap);
sys/kern/vfs_bio.c
1008
b.b_lblkno = blkno;
sys/kern/vfs_bio.c
1009
bp = RBT_FIND(buf_rb_bufs, &vp->v_bufs_tree, &b);
sys/kern/vfs_bio.c
955
struct buf b;
sys/kern/vfs_bio.c
960
b.b_lblkno = blkno;
sys/kern/vfs_bio.c
961
bp = RBT_FIND(buf_rb_bufs, &vp->v_bufs_tree, &b);
sys/kern/vfs_bio.c
993
struct buf b;
sys/kern/vfs_subr.c
2205
vfs_buf_print(void *b, int full,
sys/kern/vfs_subr.c
2208
struct buf *bp = b;
sys/lib/libkern/adddi3.c
42
__adddi3(quad_t a, quad_t b)
sys/lib/libkern/adddi3.c
47
bb.q = b;
sys/lib/libkern/anddi3.c
40
__anddi3(quad_t a, quad_t b)
sys/lib/libkern/anddi3.c
45
bb.q = b;
sys/lib/libkern/bzero.c
40
bzero(void *b, size_t length)
sys/lib/libkern/bzero.c
44
for (p = b; length--;)
sys/lib/libkern/cmpdi2.c
42
__cmpdi2(quad_t a, quad_t b)
sys/lib/libkern/cmpdi2.c
47
bb.q = b;
sys/lib/libkern/crc16.h
72
crc16_byte(uint16_t ccrc, const uint8_t b)
sys/lib/libkern/crc16.h
74
return crc16_lookup[((ccrc) ^ (b)) & 0xffu] ^ ((ccrc) >> 8);
sys/lib/libkern/crc32c.h
104
crc32c_byte(uint32_t ccrc, const uint8_t b)
sys/lib/libkern/crc32c.h
106
return crc32c_lookup[((ccrc) ^ (b)) & 0xffu] ^ ((ccrc) >> 8);
sys/lib/libkern/divdi3.c
41
__divdi3(quad_t a, quad_t b)
sys/lib/libkern/divdi3.c
47
ub = b;
sys/lib/libkern/divdi3.c
51
if (b < 0)
sys/lib/libkern/imax.c
39
imax(int a, int b)
sys/lib/libkern/imax.c
41
return (a > b ? a : b);
sys/lib/libkern/imin.c
39
imin(int a, int b)
sys/lib/libkern/imin.c
41
return (a < b ? a : b);
sys/lib/libkern/iordi3.c
40
__iordi3(quad_t a, quad_t b)
sys/lib/libkern/iordi3.c
45
bb.q = b;
sys/lib/libkern/libkern.h
58
imax(int a, int b)
sys/lib/libkern/libkern.h
60
return (a > b ? a : b);
sys/lib/libkern/libkern.h
63
imin(int a, int b)
sys/lib/libkern/libkern.h
65
return (a < b ? a : b);
sys/lib/libkern/libkern.h
68
lmax(long a, long b)
sys/lib/libkern/libkern.h
70
return (a > b ? a : b);
sys/lib/libkern/libkern.h
73
lmin(long a, long b)
sys/lib/libkern/libkern.h
75
return (a < b ? a : b);
sys/lib/libkern/libkern.h
78
max(u_int a, u_int b)
sys/lib/libkern/libkern.h
80
return (a > b ? a : b);
sys/lib/libkern/libkern.h
83
min(u_int a, u_int b)
sys/lib/libkern/libkern.h
85
return (a < b ? a : b);
sys/lib/libkern/libkern.h
88
ulmax(u_long a, u_long b)
sys/lib/libkern/libkern.h
90
return (a > b ? a : b);
sys/lib/libkern/libkern.h
93
ulmin(u_long a, u_long b)
sys/lib/libkern/libkern.h
95
return (a < b ? a : b);
sys/lib/libkern/lmax.c
39
lmax(long a, long b)
sys/lib/libkern/lmax.c
41
return (a > b ? a : b);
sys/lib/libkern/lmin.c
39
lmin(long a, long b)
sys/lib/libkern/lmin.c
41
return (a < b ? a : b);
sys/lib/libkern/lshrti3.c
22
__lshrti3(ti_int a, si_int b)
sys/lib/libkern/lshrti3.c
28
if (b & bits_in_dword) /* bits_in_dword <= b < bits_in_tword */
sys/lib/libkern/lshrti3.c
31
result.s.low = input.s.high >> (b - bits_in_dword);
sys/lib/libkern/lshrti3.c
35
if (b == 0)
sys/lib/libkern/lshrti3.c
37
result.s.high = input.s.high >> b;
sys/lib/libkern/lshrti3.c
38
result.s.low = (input.s.high << (bits_in_dword - b)) | (input.s.low >> b);
sys/lib/libkern/max.c
39
max(unsigned int a, unsigned int b)
sys/lib/libkern/max.c
41
return (a > b ? a : b);
sys/lib/libkern/min.c
39
min(unsigned int a, unsigned int b)
sys/lib/libkern/min.c
41
return (a < b ? a : b);
sys/lib/libkern/moddi3.c
42
__moddi3(quad_t a, quad_t b)
sys/lib/libkern/moddi3.c
48
ub = b;
sys/lib/libkern/moddi3.c
52
if (b < 0)
sys/lib/libkern/muldi3.c
115
if (b >= 0)
sys/lib/libkern/muldi3.c
116
v.q = b;
sys/lib/libkern/muldi3.c
118
v.q = -b, negall ^= 1;
sys/lib/libkern/muldi3.c
96
__muldi3(quad_t a, quad_t b)
sys/lib/libkern/multi3.c
21
__mulddi3(du_int a, du_int b)
sys/lib/libkern/multi3.c
26
r.s.low = (a & lower_mask) * (b & lower_mask);
sys/lib/libkern/multi3.c
29
t += (a >> bits_in_dword_2) * (b & lower_mask);
sys/lib/libkern/multi3.c
34
t += (b >> bits_in_dword_2) * (a & lower_mask);
sys/lib/libkern/multi3.c
37
r.s.high += (a >> bits_in_dword_2) * (b >> bits_in_dword_2);
sys/lib/libkern/multi3.c
44
__multi3(ti_int a, ti_int b)
sys/lib/libkern/multi3.c
49
y.all = b;
sys/lib/libkern/qdivrem.c
44
#define COMBINE(a, b) (((u_int)(a) << HALF_BITS) | (b))
sys/lib/libkern/softfloat-macros.h
483
INLINE void mul64To128( bits64 a, bits64 b, bits64 *z0Ptr, bits64 *z1Ptr )
sys/lib/libkern/softfloat-macros.h
490
bLow = b;
sys/lib/libkern/softfloat-macros.h
491
bHigh = b>>32;
sys/lib/libkern/softfloat-macros.h
520
bits64 b,
sys/lib/libkern/softfloat-macros.h
528
mul64To128( a1, b, &z1, &z2 );
sys/lib/libkern/softfloat-macros.h
529
mul64To128( a0, b, &z0, &more1 );
sys/lib/libkern/softfloat-macros.h
587
static bits64 estimateDiv128To64( bits64 a0, bits64 a1, bits64 b )
sys/lib/libkern/softfloat-macros.h
593
if ( b <= a0 ) return LIT64( 0xFFFFFFFFFFFFFFFF );
sys/lib/libkern/softfloat-macros.h
594
b0 = b>>32;
sys/lib/libkern/softfloat-macros.h
596
mul64To128( b, z, &term0, &term1 );
sys/lib/libkern/softfloat-macros.h
600
b1 = b<<32;
sys/lib/libkern/softfloat-specialize.h
160
static float32 propagateFloat32NaN( float32 a, float32 b )
sys/lib/libkern/softfloat-specialize.h
166
bIsNaN = float32_is_nan( b );
sys/lib/libkern/softfloat-specialize.h
167
bIsSignalingNaN = float32_is_signaling_nan( b );
sys/lib/libkern/softfloat-specialize.h
169
b |= 0x00400000;
sys/lib/libkern/softfloat-specialize.h
173
return bIsNaN ? b : a;
sys/lib/libkern/softfloat-specialize.h
178
if ( (bits32) ( a<<1 ) < (bits32) ( b<<1 ) ) return b;
sys/lib/libkern/softfloat-specialize.h
179
if ( (bits32) ( b<<1 ) < (bits32) ( a<<1 ) ) return a;
sys/lib/libkern/softfloat-specialize.h
180
return ( a < b ) ? a : b;
sys/lib/libkern/softfloat-specialize.h
183
return b;
sys/lib/libkern/softfloat-specialize.h
231
static float64 propagateFloat64NaN( float64 a, float64 b )
sys/lib/libkern/softfloat-specialize.h
237
bIsNaN = float64_is_nan( b );
sys/lib/libkern/softfloat-specialize.h
238
bIsSignalingNaN = float64_is_signaling_nan( b );
sys/lib/libkern/softfloat-specialize.h
240
b |= LIT64( 0x0008000000000000 );
sys/lib/libkern/softfloat-specialize.h
244
return bIsNaN ? b : a;
sys/lib/libkern/softfloat-specialize.h
249
if ( (bits64) ( a<<1 ) < (bits64) ( b<<1 ) ) return b;
sys/lib/libkern/softfloat-specialize.h
250
if ( (bits64) ( b<<1 ) < (bits64) ( a<<1 ) ) return a;
sys/lib/libkern/softfloat-specialize.h
251
return ( a < b ) ? a : b;
sys/lib/libkern/softfloat-specialize.h
254
return b;
sys/lib/libkern/softfloat-specialize.h
344
static floatx80 propagateFloatx80NaN( floatx80 a, floatx80 b )
sys/lib/libkern/softfloat-specialize.h
350
bIsNaN = floatx80_is_nan( b );
sys/lib/libkern/softfloat-specialize.h
351
bIsSignalingNaN = floatx80_is_signaling_nan( b );
sys/lib/libkern/softfloat-specialize.h
353
b.low |= LIT64( 0xC000000000000000 );
sys/lib/libkern/softfloat-specialize.h
357
return bIsNaN ? b : a;
sys/lib/libkern/softfloat-specialize.h
362
if ( a.low < b.low ) return b;
sys/lib/libkern/softfloat-specialize.h
363
if ( b.low < a.low ) return a;
sys/lib/libkern/softfloat-specialize.h
364
return ( a.high < b.high ) ? a : b;
sys/lib/libkern/softfloat-specialize.h
367
return b;
sys/lib/libkern/softfloat-specialize.h
456
static float128 propagateFloat128NaN( float128 a, float128 b )
sys/lib/libkern/softfloat-specialize.h
462
bIsNaN = float128_is_nan( b );
sys/lib/libkern/softfloat-specialize.h
463
bIsSignalingNaN = float128_is_signaling_nan( b );
sys/lib/libkern/softfloat-specialize.h
465
b.high |= LIT64( 0x0000800000000000 );
sys/lib/libkern/softfloat-specialize.h
469
return bIsNaN ? b : a;
sys/lib/libkern/softfloat-specialize.h
474
if ( lt128( a.high<<1, a.low, b.high<<1, b.low ) ) return b;
sys/lib/libkern/softfloat-specialize.h
475
if ( lt128( b.high<<1, b.low, a.high<<1, a.low ) ) return a;
sys/lib/libkern/softfloat-specialize.h
476
return ( a.high < b.high ) ? a : b;
sys/lib/libkern/softfloat-specialize.h
479
return b;
sys/lib/libkern/softfloat.c
1713
static float32 addFloat32Sigs( float32 a, float32 b, flag zSign )
sys/lib/libkern/softfloat.c
1721
bSig = extractFloat32Frac( b );
sys/lib/libkern/softfloat.c
1722
bExp = extractFloat32Exp( b );
sys/lib/libkern/softfloat.c
1728
if ( aSig ) return propagateFloat32NaN( a, b );
sys/lib/libkern/softfloat.c
1742
if ( bSig ) return propagateFloat32NaN( a, b );
sys/lib/libkern/softfloat.c
1756
if ( aSig | bSig ) return propagateFloat32NaN( a, b );
sys/lib/libkern/softfloat.c
1785
static float32 subFloat32Sigs( float32 a, float32 b, flag zSign )
sys/lib/libkern/softfloat.c
1793
bSig = extractFloat32Frac( b );
sys/lib/libkern/softfloat.c
1794
bExp = extractFloat32Exp( b );
sys/lib/libkern/softfloat.c
1801
if ( aSig | bSig ) return propagateFloat32NaN( a, b );
sys/lib/libkern/softfloat.c
1814
if ( bSig ) return propagateFloat32NaN( a, b );
sys/lib/libkern/softfloat.c
1832
if ( aSig ) return propagateFloat32NaN( a, b );
sys/lib/libkern/softfloat.c
1859
float32 float32_add( float32 a, float32 b )
sys/lib/libkern/softfloat.c
1864
bSign = extractFloat32Sign( b );
sys/lib/libkern/softfloat.c
1866
return addFloat32Sigs( a, b, aSign );
sys/lib/libkern/softfloat.c
1869
return subFloat32Sigs( a, b, aSign );
sys/lib/libkern/softfloat.c
1881
float32 float32_sub( float32 a, float32 b )
sys/lib/libkern/softfloat.c
1886
bSign = extractFloat32Sign( b );
sys/lib/libkern/softfloat.c
1888
return subFloat32Sigs( a, b, aSign );
sys/lib/libkern/softfloat.c
1891
return addFloat32Sigs( a, b, aSign );
sys/lib/libkern/softfloat.c
1903
float32 float32_mul( float32 a, float32 b )
sys/lib/libkern/softfloat.c
1914
bSig = extractFloat32Frac( b );
sys/lib/libkern/softfloat.c
1915
bExp = extractFloat32Exp( b );
sys/lib/libkern/softfloat.c
1916
bSign = extractFloat32Sign( b );
sys/lib/libkern/softfloat.c
1920
return propagateFloat32NaN( a, b );
sys/lib/libkern/softfloat.c
1929
if ( bSig ) return propagateFloat32NaN( a, b );
sys/lib/libkern/softfloat.c
1964
float32 float32_div( float32 a, float32 b )
sys/lib/libkern/softfloat.c
1973
bSig = extractFloat32Frac( b );
sys/lib/libkern/softfloat.c
1974
bExp = extractFloat32Exp( b );
sys/lib/libkern/softfloat.c
1975
bSign = extractFloat32Sign( b );
sys/lib/libkern/softfloat.c
1978
if ( aSig ) return propagateFloat32NaN( a, b );
sys/lib/libkern/softfloat.c
1980
if ( bSig ) return propagateFloat32NaN( a, b );
sys/lib/libkern/softfloat.c
1987
if ( bSig ) return propagateFloat32NaN( a, b );
sys/lib/libkern/softfloat.c
2028
float32 float32_rem( float32 a, float32 b )
sys/lib/libkern/softfloat.c
2041
bSig = extractFloat32Frac( b );
sys/lib/libkern/softfloat.c
2042
bExp = extractFloat32Exp( b );
sys/lib/libkern/softfloat.c
2043
bSign = extractFloat32Sign( b );
sys/lib/libkern/softfloat.c
2046
return propagateFloat32NaN( a, b );
sys/lib/libkern/softfloat.c
2052
if ( bSig ) return propagateFloat32NaN( a, b );
sys/lib/libkern/softfloat.c
2187
flag float32_eq( float32 a, float32 b )
sys/lib/libkern/softfloat.c
2191
|| ( ( extractFloat32Exp( b ) == 0xFF ) && extractFloat32Frac( b ) )
sys/lib/libkern/softfloat.c
2193
if ( float32_is_signaling_nan( a ) || float32_is_signaling_nan( b ) ) {
sys/lib/libkern/softfloat.c
2198
return ( a == b ) || ( (bits32) ( ( a | b )<<1 ) == 0 );
sys/lib/libkern/softfloat.c
2210
flag float32_le( float32 a, float32 b )
sys/lib/libkern/softfloat.c
2215
|| ( ( extractFloat32Exp( b ) == 0xFF ) && extractFloat32Frac( b ) )
sys/lib/libkern/softfloat.c
2221
bSign = extractFloat32Sign( b );
sys/lib/libkern/softfloat.c
2222
if ( aSign != bSign ) return aSign || ( (bits32) ( ( a | b )<<1 ) == 0 );
sys/lib/libkern/softfloat.c
2223
return ( a == b ) || ( aSign ^ ( a < b ) );
sys/lib/libkern/softfloat.c
2234
flag float32_lt( float32 a, float32 b )
sys/lib/libkern/softfloat.c
2239
|| ( ( extractFloat32Exp( b ) == 0xFF ) && extractFloat32Frac( b ) )
sys/lib/libkern/softfloat.c
2245
bSign = extractFloat32Sign( b );
sys/lib/libkern/softfloat.c
2246
if ( aSign != bSign ) return aSign && ( (bits32) ( ( a | b )<<1 ) != 0 );
sys/lib/libkern/softfloat.c
2247
return ( a != b ) && ( aSign ^ ( a < b ) );
sys/lib/libkern/softfloat.c
2260
flag float32_eq_signaling( float32 a, float32 b )
sys/lib/libkern/softfloat.c
2264
|| ( ( extractFloat32Exp( b ) == 0xFF ) && extractFloat32Frac( b ) )
sys/lib/libkern/softfloat.c
2269
return ( a == b ) || ( (bits32) ( ( a | b )<<1 ) == 0 );
sys/lib/libkern/softfloat.c
2281
flag float32_le_quiet( float32 a, float32 b )
sys/lib/libkern/softfloat.c
2286
|| ( ( extractFloat32Exp( b ) == 0xFF ) && extractFloat32Frac( b ) )
sys/lib/libkern/softfloat.c
2288
if ( float32_is_signaling_nan( a ) || float32_is_signaling_nan( b ) ) {
sys/lib/libkern/softfloat.c
2294
bSign = extractFloat32Sign( b );
sys/lib/libkern/softfloat.c
2295
if ( aSign != bSign ) return aSign || ( (bits32) ( ( a | b )<<1 ) == 0 );
sys/lib/libkern/softfloat.c
2296
return ( a == b ) || ( aSign ^ ( a < b ) );
sys/lib/libkern/softfloat.c
2308
flag float32_lt_quiet( float32 a, float32 b )
sys/lib/libkern/softfloat.c
2313
|| ( ( extractFloat32Exp( b ) == 0xFF ) && extractFloat32Frac( b ) )
sys/lib/libkern/softfloat.c
2315
if ( float32_is_signaling_nan( a ) || float32_is_signaling_nan( b ) ) {
sys/lib/libkern/softfloat.c
2321
bSign = extractFloat32Sign( b );
sys/lib/libkern/softfloat.c
2322
if ( aSign != bSign ) return aSign && ( (bits32) ( ( a | b )<<1 ) != 0 );
sys/lib/libkern/softfloat.c
2323
return ( a != b ) && ( aSign ^ ( a < b ) );
sys/lib/libkern/softfloat.c
2715
static float64 addFloat64Sigs( float64 a, float64 b, flag zSign )
sys/lib/libkern/softfloat.c
2723
bSig = extractFloat64Frac( b );
sys/lib/libkern/softfloat.c
2724
bExp = extractFloat64Exp( b );
sys/lib/libkern/softfloat.c
2730
if ( aSig ) return propagateFloat64NaN( a, b );
sys/lib/libkern/softfloat.c
2744
if ( bSig ) return propagateFloat64NaN( a, b );
sys/lib/libkern/softfloat.c
2758
if ( aSig | bSig ) return propagateFloat64NaN( a, b );
sys/lib/libkern/softfloat.c
2787
static float64 subFloat64Sigs( float64 a, float64 b, flag zSign )
sys/lib/libkern/softfloat.c
2795
bSig = extractFloat64Frac( b );
sys/lib/libkern/softfloat.c
2796
bExp = extractFloat64Exp( b );
sys/lib/libkern/softfloat.c
2803
if ( aSig | bSig ) return propagateFloat64NaN( a, b );
sys/lib/libkern/softfloat.c
2816
if ( bSig ) return propagateFloat64NaN( a, b );
sys/lib/libkern/softfloat.c
2834
if ( aSig ) return propagateFloat64NaN( a, b );
sys/lib/libkern/softfloat.c
2861
float64 float64_add( float64 a, float64 b )
sys/lib/libkern/softfloat.c
2866
bSign = extractFloat64Sign( b );
sys/lib/libkern/softfloat.c
2868
return addFloat64Sigs( a, b, aSign );
sys/lib/libkern/softfloat.c
2871
return subFloat64Sigs( a, b, aSign );
sys/lib/libkern/softfloat.c
2883
float64 float64_sub( float64 a, float64 b )
sys/lib/libkern/softfloat.c
2888
bSign = extractFloat64Sign( b );
sys/lib/libkern/softfloat.c
2890
return subFloat64Sigs( a, b, aSign );
sys/lib/libkern/softfloat.c
2893
return addFloat64Sigs( a, b, aSign );
sys/lib/libkern/softfloat.c
2905
float64 float64_mul( float64 a, float64 b )
sys/lib/libkern/softfloat.c
2914
bSig = extractFloat64Frac( b );
sys/lib/libkern/softfloat.c
2915
bExp = extractFloat64Exp( b );
sys/lib/libkern/softfloat.c
2916
bSign = extractFloat64Sign( b );
sys/lib/libkern/softfloat.c
2920
return propagateFloat64NaN( a, b );
sys/lib/libkern/softfloat.c
2929
if ( bSig ) return propagateFloat64NaN( a, b );
sys/lib/libkern/softfloat.c
2964
float64 float64_div( float64 a, float64 b )
sys/lib/libkern/softfloat.c
2975
bSig = extractFloat64Frac( b );
sys/lib/libkern/softfloat.c
2976
bExp = extractFloat64Exp( b );
sys/lib/libkern/softfloat.c
2977
bSign = extractFloat64Sign( b );
sys/lib/libkern/softfloat.c
2980
if ( aSig ) return propagateFloat64NaN( a, b );
sys/lib/libkern/softfloat.c
2982
if ( bSig ) return propagateFloat64NaN( a, b );
sys/lib/libkern/softfloat.c
2989
if ( bSig ) return propagateFloat64NaN( a, b );
sys/lib/libkern/softfloat.c
3036
float64 float64_rem( float64 a, float64 b )
sys/lib/libkern/softfloat.c
3047
bSig = extractFloat64Frac( b );
sys/lib/libkern/softfloat.c
3048
bExp = extractFloat64Exp( b );
sys/lib/libkern/softfloat.c
3049
bSign = extractFloat64Sign( b );
sys/lib/libkern/softfloat.c
3052
return propagateFloat64NaN( a, b );
sys/lib/libkern/softfloat.c
3058
if ( bSig ) return propagateFloat64NaN( a, b );
sys/lib/libkern/softfloat.c
3175
flag float64_eq( float64 a, float64 b )
sys/lib/libkern/softfloat.c
3179
|| ( ( extractFloat64Exp( b ) == 0x7FF ) && extractFloat64Frac( b ) )
sys/lib/libkern/softfloat.c
3181
if ( float64_is_signaling_nan( a ) || float64_is_signaling_nan( b ) ) {
sys/lib/libkern/softfloat.c
3186
return ( a == b ) ||
sys/lib/libkern/softfloat.c
3187
( (bits64) ( ( FLOAT64_DEMANGLE(a) | FLOAT64_DEMANGLE(b) )<<1 ) == 0 );
sys/lib/libkern/softfloat.c
3199
flag float64_le( float64 a, float64 b )
sys/lib/libkern/softfloat.c
3204
|| ( ( extractFloat64Exp( b ) == 0x7FF ) && extractFloat64Frac( b ) )
sys/lib/libkern/softfloat.c
3210
bSign = extractFloat64Sign( b );
sys/lib/libkern/softfloat.c
3213
( (bits64) ( ( FLOAT64_DEMANGLE(a) | FLOAT64_DEMANGLE(b) )<<1 ) ==
sys/lib/libkern/softfloat.c
3215
return ( a == b ) ||
sys/lib/libkern/softfloat.c
3216
( aSign ^ ( FLOAT64_DEMANGLE(a) < FLOAT64_DEMANGLE(b) ) );
sys/lib/libkern/softfloat.c
3227
flag float64_lt( float64 a, float64 b )
sys/lib/libkern/softfloat.c
3232
|| ( ( extractFloat64Exp( b ) == 0x7FF ) && extractFloat64Frac( b ) )
sys/lib/libkern/softfloat.c
3238
bSign = extractFloat64Sign( b );
sys/lib/libkern/softfloat.c
3241
( (bits64) ( ( FLOAT64_DEMANGLE(a) | FLOAT64_DEMANGLE(b) )<<1 ) !=
sys/lib/libkern/softfloat.c
3243
return ( a != b ) &&
sys/lib/libkern/softfloat.c
3244
( aSign ^ ( FLOAT64_DEMANGLE(a) < FLOAT64_DEMANGLE(b) ) );
sys/lib/libkern/softfloat.c
3257
flag float64_eq_signaling( float64 a, float64 b )
sys/lib/libkern/softfloat.c
3261
|| ( ( extractFloat64Exp( b ) == 0x7FF ) && extractFloat64Frac( b ) )
sys/lib/libkern/softfloat.c
3266
return ( a == b ) || ( (bits64) ( ( a | b )<<1 ) == 0 );
sys/lib/libkern/softfloat.c
3278
flag float64_le_quiet( float64 a, float64 b )
sys/lib/libkern/softfloat.c
3283
|| ( ( extractFloat64Exp( b ) == 0x7FF ) && extractFloat64Frac( b ) )
sys/lib/libkern/softfloat.c
3285
if ( float64_is_signaling_nan( a ) || float64_is_signaling_nan( b ) ) {
sys/lib/libkern/softfloat.c
3291
bSign = extractFloat64Sign( b );
sys/lib/libkern/softfloat.c
3292
if ( aSign != bSign ) return aSign || ( (bits64) ( ( a | b )<<1 ) == 0 );
sys/lib/libkern/softfloat.c
3293
return ( a == b ) || ( aSign ^ ( a < b ) );
sys/lib/libkern/softfloat.c
3305
flag float64_lt_quiet( float64 a, float64 b )
sys/lib/libkern/softfloat.c
3310
|| ( ( extractFloat64Exp( b ) == 0x7FF ) && extractFloat64Frac( b ) )
sys/lib/libkern/softfloat.c
3312
if ( float64_is_signaling_nan( a ) || float64_is_signaling_nan( b ) ) {
sys/lib/libkern/softfloat.c
3318
bSign = extractFloat64Sign( b );
sys/lib/libkern/softfloat.c
3319
if ( aSign != bSign ) return aSign && ( (bits64) ( ( a | b )<<1 ) != 0 );
sys/lib/libkern/softfloat.c
3320
return ( a != b ) && ( aSign ^ ( a < b ) );
sys/lib/libkern/softfloat.c
3657
static floatx80 addFloatx80Sigs( floatx80 a, floatx80 b, flag zSign )
sys/lib/libkern/softfloat.c
3665
bSig = extractFloatx80Frac( b );
sys/lib/libkern/softfloat.c
3666
bExp = extractFloatx80Exp( b );
sys/lib/libkern/softfloat.c
3670
if ( (bits64) ( aSig<<1 ) ) return propagateFloatx80NaN( a, b );
sys/lib/libkern/softfloat.c
3679
if ( (bits64) ( bSig<<1 ) ) return propagateFloatx80NaN( a, b );
sys/lib/libkern/softfloat.c
3689
return propagateFloatx80NaN( a, b );
sys/lib/libkern/softfloat.c
3724
static floatx80 subFloatx80Sigs( floatx80 a, floatx80 b, flag zSign )
sys/lib/libkern/softfloat.c
3733
bSig = extractFloatx80Frac( b );
sys/lib/libkern/softfloat.c
3734
bExp = extractFloatx80Exp( b );
sys/lib/libkern/softfloat.c
3740
return propagateFloatx80NaN( a, b );
sys/lib/libkern/softfloat.c
3757
if ( (bits64) ( bSig<<1 ) ) return propagateFloatx80NaN( a, b );
sys/lib/libkern/softfloat.c
3769
if ( (bits64) ( aSig<<1 ) ) return propagateFloatx80NaN( a, b );
sys/lib/libkern/softfloat.c
3791
floatx80 floatx80_add( floatx80 a, floatx80 b )
sys/lib/libkern/softfloat.c
3796
bSign = extractFloatx80Sign( b );
sys/lib/libkern/softfloat.c
3798
return addFloatx80Sigs( a, b, aSign );
sys/lib/libkern/softfloat.c
3801
return subFloatx80Sigs( a, b, aSign );
sys/lib/libkern/softfloat.c
3813
floatx80 floatx80_sub( floatx80 a, floatx80 b )
sys/lib/libkern/softfloat.c
3818
bSign = extractFloatx80Sign( b );
sys/lib/libkern/softfloat.c
3820
return subFloatx80Sigs( a, b, aSign );
sys/lib/libkern/softfloat.c
3823
return addFloatx80Sigs( a, b, aSign );
sys/lib/libkern/softfloat.c
3835
floatx80 floatx80_mul( floatx80 a, floatx80 b )
sys/lib/libkern/softfloat.c
3845
bSig = extractFloatx80Frac( b );
sys/lib/libkern/softfloat.c
3846
bExp = extractFloatx80Exp( b );
sys/lib/libkern/softfloat.c
3847
bSign = extractFloatx80Sign( b );
sys/lib/libkern/softfloat.c
3852
return propagateFloatx80NaN( a, b );
sys/lib/libkern/softfloat.c
3858
if ( (bits64) ( bSig<<1 ) ) return propagateFloatx80NaN( a, b );
sys/lib/libkern/softfloat.c
3895
floatx80 floatx80_div( floatx80 a, floatx80 b )
sys/lib/libkern/softfloat.c
3906
bSig = extractFloatx80Frac( b );
sys/lib/libkern/softfloat.c
3907
bExp = extractFloatx80Exp( b );
sys/lib/libkern/softfloat.c
3908
bSign = extractFloatx80Sign( b );
sys/lib/libkern/softfloat.c
3911
if ( (bits64) ( aSig<<1 ) ) return propagateFloatx80NaN( a, b );
sys/lib/libkern/softfloat.c
3913
if ( (bits64) ( bSig<<1 ) ) return propagateFloatx80NaN( a, b );
sys/lib/libkern/softfloat.c
3919
if ( (bits64) ( bSig<<1 ) ) return propagateFloatx80NaN( a, b );
sys/lib/libkern/softfloat.c
3976
floatx80 floatx80_rem( floatx80 a, floatx80 b )
sys/lib/libkern/softfloat.c
3987
bSig = extractFloatx80Frac( b );
sys/lib/libkern/softfloat.c
3988
bExp = extractFloatx80Exp( b );
sys/lib/libkern/softfloat.c
3989
bSign = extractFloatx80Sign( b );
sys/lib/libkern/softfloat.c
3993
return propagateFloatx80NaN( a, b );
sys/lib/libkern/softfloat.c
3998
if ( (bits64) ( bSig<<1 ) ) return propagateFloatx80NaN( a, b );
sys/lib/libkern/softfloat.c
4146
flag floatx80_eq( floatx80 a, floatx80 b )
sys/lib/libkern/softfloat.c
4151
|| ( ( extractFloatx80Exp( b ) == 0x7FFF )
sys/lib/libkern/softfloat.c
4152
&& (bits64) ( extractFloatx80Frac( b )<<1 ) )
sys/lib/libkern/softfloat.c
4155
|| floatx80_is_signaling_nan( b ) ) {
sys/lib/libkern/softfloat.c
4161
( a.low == b.low )
sys/lib/libkern/softfloat.c
4162
&& ( ( a.high == b.high )
sys/lib/libkern/softfloat.c
4164
&& ( (bits16) ( ( a.high | b.high )<<1 ) == 0 ) )
sys/lib/libkern/softfloat.c
4177
flag floatx80_le( floatx80 a, floatx80 b )
sys/lib/libkern/softfloat.c
4183
|| ( ( extractFloatx80Exp( b ) == 0x7FFF )
sys/lib/libkern/softfloat.c
4184
&& (bits64) ( extractFloatx80Frac( b )<<1 ) )
sys/lib/libkern/softfloat.c
4190
bSign = extractFloatx80Sign( b );
sys/lib/libkern/softfloat.c
4194
|| ( ( ( (bits16) ( ( a.high | b.high )<<1 ) ) | a.low | b.low )
sys/lib/libkern/softfloat.c
4198
aSign ? le128( b.high, b.low, a.high, a.low )
sys/lib/libkern/softfloat.c
4199
: le128( a.high, a.low, b.high, b.low );
sys/lib/libkern/softfloat.c
4211
flag floatx80_lt( floatx80 a, floatx80 b )
sys/lib/libkern/softfloat.c
4217
|| ( ( extractFloatx80Exp( b ) == 0x7FFF )
sys/lib/libkern/softfloat.c
4218
&& (bits64) ( extractFloatx80Frac( b )<<1 ) )
sys/lib/libkern/softfloat.c
4224
bSign = extractFloatx80Sign( b );
sys/lib/libkern/softfloat.c
4228
&& ( ( ( (bits16) ( ( a.high | b.high )<<1 ) ) | a.low | b.low )
sys/lib/libkern/softfloat.c
4232
aSign ? lt128( b.high, b.low, a.high, a.low )
sys/lib/libkern/softfloat.c
4233
: lt128( a.high, a.low, b.high, b.low );
sys/lib/libkern/softfloat.c
4245
flag floatx80_eq_signaling( floatx80 a, floatx80 b )
sys/lib/libkern/softfloat.c
4250
|| ( ( extractFloatx80Exp( b ) == 0x7FFF )
sys/lib/libkern/softfloat.c
4251
&& (bits64) ( extractFloatx80Frac( b )<<1 ) )
sys/lib/libkern/softfloat.c
4257
( a.low == b.low )
sys/lib/libkern/softfloat.c
4258
&& ( ( a.high == b.high )
sys/lib/libkern/softfloat.c
4260
&& ( (bits16) ( ( a.high | b.high )<<1 ) == 0 ) )
sys/lib/libkern/softfloat.c
4273
flag floatx80_le_quiet( floatx80 a, floatx80 b )
sys/lib/libkern/softfloat.c
4279
|| ( ( extractFloatx80Exp( b ) == 0x7FFF )
sys/lib/libkern/softfloat.c
4280
&& (bits64) ( extractFloatx80Frac( b )<<1 ) )
sys/lib/libkern/softfloat.c
4283
|| floatx80_is_signaling_nan( b ) ) {
sys/lib/libkern/softfloat.c
4289
bSign = extractFloatx80Sign( b );
sys/lib/libkern/softfloat.c
4293
|| ( ( ( (bits16) ( ( a.high | b.high )<<1 ) ) | a.low | b.low )
sys/lib/libkern/softfloat.c
4297
aSign ? le128( b.high, b.low, a.high, a.low )
sys/lib/libkern/softfloat.c
4298
: le128( a.high, a.low, b.high, b.low );
sys/lib/libkern/softfloat.c
4310
flag floatx80_lt_quiet( floatx80 a, floatx80 b )
sys/lib/libkern/softfloat.c
4316
|| ( ( extractFloatx80Exp( b ) == 0x7FFF )
sys/lib/libkern/softfloat.c
4317
&& (bits64) ( extractFloatx80Frac( b )<<1 ) )
sys/lib/libkern/softfloat.c
4320
|| floatx80_is_signaling_nan( b ) ) {
sys/lib/libkern/softfloat.c
4326
bSign = extractFloatx80Sign( b );
sys/lib/libkern/softfloat.c
4330
&& ( ( ( (bits16) ( ( a.high | b.high )<<1 ) ) | a.low | b.low )
sys/lib/libkern/softfloat.c
4334
aSign ? lt128( b.high, b.low, a.high, a.low )
sys/lib/libkern/softfloat.c
4335
: lt128( a.high, a.low, b.high, b.low );
sys/lib/libkern/softfloat.c
4751
static float128 addFloat128Sigs( float128 a, float128 b, flag zSign )
sys/lib/libkern/softfloat.c
4760
bSig1 = extractFloat128Frac1( b );
sys/lib/libkern/softfloat.c
4761
bSig0 = extractFloat128Frac0( b );
sys/lib/libkern/softfloat.c
4762
bExp = extractFloat128Exp( b );
sys/lib/libkern/softfloat.c
4766
if ( aSig0 | aSig1 ) return propagateFloat128NaN( a, b );
sys/lib/libkern/softfloat.c
4781
if ( bSig0 | bSig1 ) return propagateFloat128NaN( a, b );
sys/lib/libkern/softfloat.c
4797
return propagateFloat128NaN( a, b );
sys/lib/libkern/softfloat.c
4830
static float128 subFloat128Sigs( float128 a, float128 b, flag zSign )
sys/lib/libkern/softfloat.c
4840
bSig1 = extractFloat128Frac1( b );
sys/lib/libkern/softfloat.c
4841
bSig0 = extractFloat128Frac0( b );
sys/lib/libkern/softfloat.c
4842
bExp = extractFloat128Exp( b );
sys/lib/libkern/softfloat.c
4850
return propagateFloat128NaN( a, b );
sys/lib/libkern/softfloat.c
4868
if ( bSig0 | bSig1 ) return propagateFloat128NaN( a, b );
sys/lib/libkern/softfloat.c
4886
if ( aSig0 | aSig1 ) return propagateFloat128NaN( a, b );
sys/lib/libkern/softfloat.c
4913
float128 float128_add( float128 a, float128 b )
sys/lib/libkern/softfloat.c
4918
bSign = extractFloat128Sign( b );
sys/lib/libkern/softfloat.c
4920
return addFloat128Sigs( a, b, aSign );
sys/lib/libkern/softfloat.c
4923
return subFloat128Sigs( a, b, aSign );
sys/lib/libkern/softfloat.c
4935
float128 float128_sub( float128 a, float128 b )
sys/lib/libkern/softfloat.c
4940
bSign = extractFloat128Sign( b );
sys/lib/libkern/softfloat.c
4942
return subFloat128Sigs( a, b, aSign );
sys/lib/libkern/softfloat.c
4945
return addFloat128Sigs( a, b, aSign );
sys/lib/libkern/softfloat.c
4957
float128 float128_mul( float128 a, float128 b )
sys/lib/libkern/softfloat.c
4968
bSig1 = extractFloat128Frac1( b );
sys/lib/libkern/softfloat.c
4969
bSig0 = extractFloat128Frac0( b );
sys/lib/libkern/softfloat.c
4970
bExp = extractFloat128Exp( b );
sys/lib/libkern/softfloat.c
4971
bSign = extractFloat128Sign( b );
sys/lib/libkern/softfloat.c
4976
return propagateFloat128NaN( a, b );
sys/lib/libkern/softfloat.c
4982
if ( bSig0 | bSig1 ) return propagateFloat128NaN( a, b );
sys/lib/libkern/softfloat.c
5022
float128 float128_div( float128 a, float128 b )
sys/lib/libkern/softfloat.c
5034
bSig1 = extractFloat128Frac1( b );
sys/lib/libkern/softfloat.c
5035
bSig0 = extractFloat128Frac0( b );
sys/lib/libkern/softfloat.c
5036
bExp = extractFloat128Exp( b );
sys/lib/libkern/softfloat.c
5037
bSign = extractFloat128Sign( b );
sys/lib/libkern/softfloat.c
5040
if ( aSig0 | aSig1 ) return propagateFloat128NaN( a, b );
sys/lib/libkern/softfloat.c
5042
if ( bSig0 | bSig1 ) return propagateFloat128NaN( a, b );
sys/lib/libkern/softfloat.c
5048
if ( bSig0 | bSig1 ) return propagateFloat128NaN( a, b );
sys/lib/libkern/softfloat.c
5107
float128 float128_rem( float128 a, float128 b )
sys/lib/libkern/softfloat.c
5120
bSig1 = extractFloat128Frac1( b );
sys/lib/libkern/softfloat.c
5121
bSig0 = extractFloat128Frac0( b );
sys/lib/libkern/softfloat.c
5122
bExp = extractFloat128Exp( b );
sys/lib/libkern/softfloat.c
5123
bSign = extractFloat128Sign( b );
sys/lib/libkern/softfloat.c
5127
return propagateFloat128NaN( a, b );
sys/lib/libkern/softfloat.c
5132
if ( bSig0 | bSig1 ) return propagateFloat128NaN( a, b );
sys/lib/libkern/softfloat.c
5288
flag float128_eq( float128 a, float128 b )
sys/lib/libkern/softfloat.c
5293
|| ( ( extractFloat128Exp( b ) == 0x7FFF )
sys/lib/libkern/softfloat.c
5294
&& ( extractFloat128Frac0( b ) | extractFloat128Frac1( b ) ) )
sys/lib/libkern/softfloat.c
5297
|| float128_is_signaling_nan( b ) ) {
sys/lib/libkern/softfloat.c
5303
( a.low == b.low )
sys/lib/libkern/softfloat.c
5304
&& ( ( a.high == b.high )
sys/lib/libkern/softfloat.c
5306
&& ( (bits64) ( ( a.high | b.high )<<1 ) == 0 ) )
sys/lib/libkern/softfloat.c
5319
flag float128_le( float128 a, float128 b )
sys/lib/libkern/softfloat.c
5325
|| ( ( extractFloat128Exp( b ) == 0x7FFF )
sys/lib/libkern/softfloat.c
5326
&& ( extractFloat128Frac0( b ) | extractFloat128Frac1( b ) ) )
sys/lib/libkern/softfloat.c
5332
bSign = extractFloat128Sign( b );
sys/lib/libkern/softfloat.c
5336
|| ( ( ( (bits64) ( ( a.high | b.high )<<1 ) ) | a.low | b.low )
sys/lib/libkern/softfloat.c
5340
aSign ? le128( b.high, b.low, a.high, a.low )
sys/lib/libkern/softfloat.c
5341
: le128( a.high, a.low, b.high, b.low );
sys/lib/libkern/softfloat.c
5352
flag float128_lt( float128 a, float128 b )
sys/lib/libkern/softfloat.c
5358
|| ( ( extractFloat128Exp( b ) == 0x7FFF )
sys/lib/libkern/softfloat.c
5359
&& ( extractFloat128Frac0( b ) | extractFloat128Frac1( b ) ) )
sys/lib/libkern/softfloat.c
5365
bSign = extractFloat128Sign( b );
sys/lib/libkern/softfloat.c
5369
&& ( ( ( (bits64) ( ( a.high | b.high )<<1 ) ) | a.low | b.low )
sys/lib/libkern/softfloat.c
5373
aSign ? lt128( b.high, b.low, a.high, a.low )
sys/lib/libkern/softfloat.c
5374
: lt128( a.high, a.low, b.high, b.low );
sys/lib/libkern/softfloat.c
5386
flag float128_eq_signaling( float128 a, float128 b )
sys/lib/libkern/softfloat.c
5391
|| ( ( extractFloat128Exp( b ) == 0x7FFF )
sys/lib/libkern/softfloat.c
5392
&& ( extractFloat128Frac0( b ) | extractFloat128Frac1( b ) ) )
sys/lib/libkern/softfloat.c
5398
( a.low == b.low )
sys/lib/libkern/softfloat.c
5399
&& ( ( a.high == b.high )
sys/lib/libkern/softfloat.c
5401
&& ( (bits64) ( ( a.high | b.high )<<1 ) == 0 ) )
sys/lib/libkern/softfloat.c
5414
flag float128_le_quiet( float128 a, float128 b )
sys/lib/libkern/softfloat.c
5420
|| ( ( extractFloat128Exp( b ) == 0x7FFF )
sys/lib/libkern/softfloat.c
5421
&& ( extractFloat128Frac0( b ) | extractFloat128Frac1( b ) ) )
sys/lib/libkern/softfloat.c
5424
|| float128_is_signaling_nan( b ) ) {
sys/lib/libkern/softfloat.c
5430
bSign = extractFloat128Sign( b );
sys/lib/libkern/softfloat.c
5434
|| ( ( ( (bits64) ( ( a.high | b.high )<<1 ) ) | a.low | b.low )
sys/lib/libkern/softfloat.c
5438
aSign ? le128( b.high, b.low, a.high, a.low )
sys/lib/libkern/softfloat.c
5439
: le128( a.high, a.low, b.high, b.low );
sys/lib/libkern/softfloat.c
5451
flag float128_lt_quiet( float128 a, float128 b )
sys/lib/libkern/softfloat.c
5457
|| ( ( extractFloat128Exp( b ) == 0x7FFF )
sys/lib/libkern/softfloat.c
5458
&& ( extractFloat128Frac0( b ) | extractFloat128Frac1( b ) ) )
sys/lib/libkern/softfloat.c
5461
|| float128_is_signaling_nan( b ) ) {
sys/lib/libkern/softfloat.c
5467
bSign = extractFloat128Sign( b );
sys/lib/libkern/softfloat.c
5471
&& ( ( ( (bits64) ( ( a.high | b.high )<<1 ) ) | a.low | b.low )
sys/lib/libkern/softfloat.c
5475
aSign ? lt128( b.high, b.low, a.high, a.low )
sys/lib/libkern/softfloat.c
5476
: lt128( a.high, a.low, b.high, b.low );
sys/lib/libkern/subdi3.c
41
__subdi3(quad_t a, quad_t b)
sys/lib/libkern/subdi3.c
46
bb.q = b;
sys/lib/libkern/ucmpdi2.c
41
__ucmpdi2(u_quad_t a, u_quad_t b)
sys/lib/libkern/ucmpdi2.c
46
bb.uq = b;
sys/lib/libkern/udivdi3.c
40
__udivdi3(u_quad_t a, u_quad_t b)
sys/lib/libkern/udivdi3.c
43
return (__qdivrem(a, b, (u_quad_t *)0));
sys/lib/libkern/ulmax.c
39
ulmax(unsigned long a, unsigned long b)
sys/lib/libkern/ulmax.c
41
return (a > b ? a : b);
sys/lib/libkern/ulmin.c
39
ulmin(unsigned long a, unsigned long b)
sys/lib/libkern/ulmin.c
41
return (a < b ? a : b);
sys/lib/libkern/umoddi3.c
40
__umoddi3(u_quad_t a, u_quad_t b)
sys/lib/libkern/umoddi3.c
44
(void)__qdivrem(a, b, &r);
sys/lib/libkern/xordi3.c
40
__xordi3(quad_t a, quad_t b)
sys/lib/libkern/xordi3.c
45
bb.q = b;
sys/lib/libsa/bcrypt_pbkdf.c
25
#define MINIMUM(a,b) (((a) < (b)) ? (a) : (b))
sys/lib/libsa/sha1.c
101
a = b = c = d = e = 0;
sys/lib/libsa/sha1.c
51
u_int32_t a, b, c, d, e;
sys/lib/libsa/sha1.c
67
b = state[1];
sys/lib/libsa/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);
sys/lib/libsa/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);
sys/lib/libsa/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);
sys/lib/libsa/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);
sys/lib/libsa/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);
sys/lib/libsa/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);
sys/lib/libsa/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);
sys/lib/libsa/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);
sys/lib/libsa/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);
sys/lib/libsa/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);
sys/lib/libsa/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);
sys/lib/libsa/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);
sys/lib/libsa/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);
sys/lib/libsa/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);
sys/lib/libsa/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);
sys/lib/libsa/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);
sys/lib/libsa/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);
sys/lib/libsa/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);
sys/lib/libsa/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);
sys/lib/libsa/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);
sys/lib/libsa/sha1.c
96
state[1] += b;
sys/lib/libsa/sha2.c
155
#define R(b,x) ((x) >> (b))
sys/lib/libsa/sha2.c
157
#define S32(b,x) (((x) >> (b)) | ((x) << (32 - (b))))
sys/lib/libsa/sha2.c
159
#define S64(b,x) (((x) >> (b)) | ((x) << (64 - (b))))
sys/lib/libsa/sha2.c
350
#define ROUND256_0_TO_15(a,b,c,d,e,f,g,h) do { \
sys/lib/libsa/sha2.c
355
(h) = T1 + Sigma0_256((a)) + Maj((a), (b), (c)); \
sys/lib/libsa/sha2.c
359
#define ROUND256(a,b,c,d,e,f,g,h) do { \
sys/lib/libsa/sha2.c
367
(h) = T1 + Sigma0_256((a)) + Maj((a), (b), (c)); \
sys/lib/libsa/sha2.c
374
u_int32_t a, b, c, d, e, f, g, h, s0, s1;
sys/lib/libsa/sha2.c
380
b = state[1];
sys/lib/libsa/sha2.c
391
ROUND256_0_TO_15(a,b,c,d,e,f,g,h);
sys/lib/libsa/sha2.c
392
ROUND256_0_TO_15(h,a,b,c,d,e,f,g);
sys/lib/libsa/sha2.c
393
ROUND256_0_TO_15(g,h,a,b,c,d,e,f);
sys/lib/libsa/sha2.c
394
ROUND256_0_TO_15(f,g,h,a,b,c,d,e);
sys/lib/libsa/sha2.c
395
ROUND256_0_TO_15(e,f,g,h,a,b,c,d);
sys/lib/libsa/sha2.c
396
ROUND256_0_TO_15(d,e,f,g,h,a,b,c);
sys/lib/libsa/sha2.c
397
ROUND256_0_TO_15(c,d,e,f,g,h,a,b);
sys/lib/libsa/sha2.c
398
ROUND256_0_TO_15(b,c,d,e,f,g,h,a);
sys/lib/libsa/sha2.c
403
ROUND256(a,b,c,d,e,f,g,h);
sys/lib/libsa/sha2.c
404
ROUND256(h,a,b,c,d,e,f,g);
sys/lib/libsa/sha2.c
405
ROUND256(g,h,a,b,c,d,e,f);
sys/lib/libsa/sha2.c
406
ROUND256(f,g,h,a,b,c,d,e);
sys/lib/libsa/sha2.c
407
ROUND256(e,f,g,h,a,b,c,d);
sys/lib/libsa/sha2.c
408
ROUND256(d,e,f,g,h,a,b,c);
sys/lib/libsa/sha2.c
409
ROUND256(c,d,e,f,g,h,a,b);
sys/lib/libsa/sha2.c
410
ROUND256(b,c,d,e,f,g,h,a);
sys/lib/libsa/sha2.c
415
state[1] += b;
sys/lib/libsa/sha2.c
424
a = b = c = d = e = f = g = h = T1 = 0;
sys/lib/libsa/sha2.c
432
u_int32_t a, b, c, d, e, f, g, h, s0, s1;
sys/lib/libsa/sha2.c
438
b = state[1];
sys/lib/libsa/sha2.c
452
T2 = Sigma0_256(a) + Maj(a, b, c);
sys/lib/libsa/sha2.c
458
c = b;
sys/lib/libsa/sha2.c
459
b = a;
sys/lib/libsa/sha2.c
475
T2 = Sigma0_256(a) + Maj(a, b, c);
sys/lib/libsa/sha2.c
481
c = b;
sys/lib/libsa/sha2.c
482
b = a;
sys/lib/libsa/sha2.c
490
state[1] += b;
sys/lib/libsa/sha2.c
499
a = b = c = d = e = f = g = h = T1 = T2 = 0;
sys/lib/libsa/sha2.c
625
#define ROUND512_0_TO_15(a,b,c,d,e,f,g,h) do { \
sys/lib/libsa/sha2.c
630
(h) = T1 + Sigma0_512((a)) + Maj((a), (b), (c)); \
sys/lib/libsa/sha2.c
635
#define ROUND512(a,b,c,d,e,f,g,h) do { \
sys/lib/libsa/sha2.c
643
(h) = T1 + Sigma0_512((a)) + Maj((a), (b), (c)); \
sys/lib/libsa/sha2.c
650
u_int64_t a, b, c, d, e, f, g, h, s0, s1;
sys/lib/libsa/sha2.c
656
b = state[1];
sys/lib/libsa/sha2.c
667
ROUND512_0_TO_15(a,b,c,d,e,f,g,h);
sys/lib/libsa/sha2.c
668
ROUND512_0_TO_15(h,a,b,c,d,e,f,g);
sys/lib/libsa/sha2.c
669
ROUND512_0_TO_15(g,h,a,b,c,d,e,f);
sys/lib/libsa/sha2.c
670
ROUND512_0_TO_15(f,g,h,a,b,c,d,e);
sys/lib/libsa/sha2.c
671
ROUND512_0_TO_15(e,f,g,h,a,b,c,d);
sys/lib/libsa/sha2.c
672
ROUND512_0_TO_15(d,e,f,g,h,a,b,c);
sys/lib/libsa/sha2.c
673
ROUND512_0_TO_15(c,d,e,f,g,h,a,b);
sys/lib/libsa/sha2.c
674
ROUND512_0_TO_15(b,c,d,e,f,g,h,a);
sys/lib/libsa/sha2.c
679
ROUND512(a,b,c,d,e,f,g,h);
sys/lib/libsa/sha2.c
680
ROUND512(h,a,b,c,d,e,f,g);
sys/lib/libsa/sha2.c
681
ROUND512(g,h,a,b,c,d,e,f);
sys/lib/libsa/sha2.c
682
ROUND512(f,g,h,a,b,c,d,e);
sys/lib/libsa/sha2.c
683
ROUND512(e,f,g,h,a,b,c,d);
sys/lib/libsa/sha2.c
684
ROUND512(d,e,f,g,h,a,b,c);
sys/lib/libsa/sha2.c
685
ROUND512(c,d,e,f,g,h,a,b);
sys/lib/libsa/sha2.c
686
ROUND512(b,c,d,e,f,g,h,a);
sys/lib/libsa/sha2.c
691
state[1] += b;
sys/lib/libsa/sha2.c
700
a = b = c = d = e = f = g = h = T1 = 0;
sys/lib/libsa/sha2.c
708
u_int64_t a, b, c, d, e, f, g, h, s0, s1;
sys/lib/libsa/sha2.c
714
b = state[1];
sys/lib/libsa/sha2.c
728
T2 = Sigma0_512(a) + Maj(a, b, c);
sys/lib/libsa/sha2.c
734
c = b;
sys/lib/libsa/sha2.c
735
b = a;
sys/lib/libsa/sha2.c
751
T2 = Sigma0_512(a) + Maj(a, b, c);
sys/lib/libsa/sha2.c
757
c = b;
sys/lib/libsa/sha2.c
758
b = a;
sys/lib/libsa/sha2.c
766
state[1] += b;
sys/lib/libsa/sha2.c
775
a = b = c = d = e = f = g = h = T1 = T2 = 0;
sys/lib/libsa/stand.h
124
#define btochs(b,c,h,s,nh,ns) \
sys/lib/libsa/stand.h
125
c = (b) / ((nh) * (ns)); \
sys/lib/libsa/stand.h
126
h = ((b) % ((nh) * (ns))) / (ns); \
sys/lib/libsa/stand.h
127
s = ((b) % ((nh) * (ns))) % (ns);
sys/lib/libsa/stand.h
52
#define max(a,b) (((a)>(b))? (a) : (b))
sys/lib/libsa/stand.h
53
#define min(a,b) (((a)>(b))? (b) : (a))
sys/lib/libz/crc32.c
161
local uLong multmodp(uLong a, uLong b) {
sys/lib/libz/crc32.c
168
p ^= b;
sys/lib/libz/crc32.c
173
b = b & 1 ? (b >> 1) ^ POLY : b >> 1;
sys/lib/libz/deflate.c
1648
#define MIN(a, b) ((a) > (b) ? (b) : (a))
sys/lib/libz/deflate.c
935
local void putShortMSB(deflate_state *s, uInt b) {
sys/lib/libz/deflate.c
936
put_byte(s, (Byte)(b >> 8));
sys/lib/libz/deflate.c
937
put_byte(s, (Byte)(b & 0xff));
sys/lib/libz/zutil.c
173
void ZLIB_INTERNAL zmemzero(void FAR *b, z_size_t len) {
sys/lib/libz/zutil.c
174
uchf *p = b;
sys/net/bridgestp.c
1831
bstp_addr_cmp(const u_int8_t *a, const u_int8_t *b)
sys/net/bridgestp.c
1836
d = ((int)a[i]) - ((int)b[i]);
sys/net/bsd-comp.c
168
#define MAXCODE(b) ((1 << (b)) - 1)
sys/net/if.c
3020
if_detached_ioctl(struct ifnet *ifp, u_long a, caddr_t b)
sys/net/if_bpe.c
870
bpe_cmp(const struct bpe_key *a, const struct bpe_key *b)
sys/net/if_bpe.c
872
if (a->k_if > b->k_if)
sys/net/if_bpe.c
874
if (a->k_if < b->k_if)
sys/net/if_bpe.c
876
if (a->k_isid > b->k_isid)
sys/net/if_bpe.c
878
if (a->k_isid < b->k_isid)
sys/net/if_bpe.c
885
bpe_eb_port_eq(void *arg, void *a, void *b)
sys/net/if_bpe.c
887
struct ether_addr *ea = a, *eb = b;
sys/net/if_etherbridge.c
48
eb_port_eq(struct etherbridge *eb, void *a, void *b)
sys/net/if_etherbridge.c
50
return ((*eb->eb_ops->eb_op_port_eq)(eb->eb_cookie, a, b));
sys/net/if_etherip.c
825
etherip_ip_cmp(int af, const union etherip_addr *a, const union etherip_addr *b)
sys/net/if_etherip.c
830
return (memcmp(&a->in6, &b->in6, sizeof(a->in6)));
sys/net/if_etherip.c
834
return (memcmp(&a->in4, &b->in4, sizeof(a->in4)));
sys/net/if_etherip.c
844
etherip_cmp(const struct etherip_tunnel *a, const struct etherip_tunnel *b)
sys/net/if_etherip.c
848
if (a->t_rtableid > b->t_rtableid)
sys/net/if_etherip.c
850
if (a->t_rtableid < b->t_rtableid)
sys/net/if_etherip.c
854
if (a->t_af > b->t_af)
sys/net/if_etherip.c
856
if (a->t_af < b->t_af)
sys/net/if_etherip.c
859
rv = etherip_ip_cmp(a->t_af, &a->_t_dst, &b->_t_dst);
sys/net/if_etherip.c
863
rv = etherip_ip_cmp(a->t_af, &a->_t_src, &b->_t_src);
sys/net/if_gif.c
899
gif_ip_cmp(int af, const union gif_addr *a, const union gif_addr *b)
sys/net/if_gif.c
904
return (memcmp(&a->in6, &b->in6, sizeof(a->in6)));
sys/net/if_gif.c
907
return (memcmp(&a->in4, &b->in4, sizeof(a->in4)));
sys/net/if_gif.c
917
gif_cmp(const struct gif_tunnel *a, const struct gif_tunnel *b)
sys/net/if_gif.c
922
if (a->t_rtableid > b->t_rtableid)
sys/net/if_gif.c
924
if (a->t_rtableid < b->t_rtableid)
sys/net/if_gif.c
928
if (a->t_af > b->t_af)
sys/net/if_gif.c
930
if (a->t_af < b->t_af)
sys/net/if_gif.c
933
rv = gif_ip_cmp(a->t_af, &a->t_dst, &b->t_dst);
sys/net/if_gif.c
937
rv = gif_ip_cmp(a->t_af, &a->t_src, &b->t_src);
sys/net/if_gre.c
4146
gre_ip_cmp(int af, const union gre_addr *a, const union gre_addr *b)
sys/net/if_gre.c
4151
return (memcmp(&a->in6, &b->in6, sizeof(a->in6)));
sys/net/if_gre.c
4154
return (memcmp(&a->in4, &b->in4, sizeof(a->in4)));
sys/net/if_gre.c
4163
gre_cmp_src(const struct gre_tunnel *a, const struct gre_tunnel *b)
sys/net/if_gre.c
4171
kb = b->t_key_mask & GRE_KEY_ENTROPY;
sys/net/if_gre.c
4182
mask = a->t_key_mask & b->t_key_mask;
sys/net/if_gre.c
4185
kb = b->t_key & mask;
sys/net/if_gre.c
4195
if (a->t_rtableid > b->t_rtableid)
sys/net/if_gre.c
4197
if (a->t_rtableid < b->t_rtableid)
sys/net/if_gre.c
4201
if (a->t_af > b->t_af)
sys/net/if_gre.c
4203
if (a->t_af < b->t_af)
sys/net/if_gre.c
4206
rv = gre_ip_cmp(a->t_af, &a->t_src, &b->t_src);
sys/net/if_gre.c
4214
gre_cmp(const struct gre_tunnel *a, const struct gre_tunnel *b)
sys/net/if_gre.c
4218
rv = gre_cmp_src(a, b);
sys/net/if_gre.c
4222
return (gre_ip_cmp(a->t_af, &a->t_dst, &b->t_dst));
sys/net/if_gre.c
4226
mgre_cmp(const struct mgre_softc *a, const struct mgre_softc *b)
sys/net/if_gre.c
4228
return (gre_cmp_src(&a->sc_tunnel, &b->sc_tunnel));
sys/net/if_gre.c
4234
egre_cmp(const struct egre_softc *a, const struct egre_softc *b)
sys/net/if_gre.c
4236
return (gre_cmp(&a->sc_tunnel, &b->sc_tunnel));
sys/net/if_gre.c
4242
nvgre_cmp_tunnel(const struct gre_tunnel *a, const struct gre_tunnel *b)
sys/net/if_gre.c
4247
kb = b->t_key & GRE_KEY_ENTROPY;
sys/net/if_gre.c
4256
if (a->t_rtableid > b->t_rtableid)
sys/net/if_gre.c
4258
if (a->t_rtableid < b->t_rtableid)
sys/net/if_gre.c
4262
if (a->t_af > b->t_af)
sys/net/if_gre.c
4264
if (a->t_af < b->t_af)
sys/net/if_gre.c
4274
const struct gre_tunnel *b = &nb->sc_tunnel;
sys/net/if_gre.c
4277
rv = nvgre_cmp_tunnel(a, b);
sys/net/if_gre.c
4281
rv = gre_ip_cmp(a->t_af, &a->t_src, &b->t_src);
sys/net/if_gre.c
4290
unsigned int if0idxa, const struct gre_tunnel *b,
sys/net/if_gre.c
4295
rv = nvgre_cmp_tunnel(a, b);
sys/net/if_gre.c
4315
const struct gre_tunnel *b = &nb->sc_tunnel;
sys/net/if_gre.c
4318
b, &b->t_dst, nb->sc_ifp0));
sys/net/if_gre.c
4325
gre_tunnel_key_cmp(const struct gre_tunnel *a, const struct gre_tunnel *b)
sys/net/if_gre.c
4329
if (a->t_key > b->t_key)
sys/net/if_gre.c
4331
if (a->t_key < b->t_key)
sys/net/if_gre.c
4335
if (a->t_rtableid > b->t_rtableid)
sys/net/if_gre.c
4337
if (a->t_rtableid < b->t_rtableid)
sys/net/if_gre.c
4341
if (a->t_af > b->t_af)
sys/net/if_gre.c
4343
if (a->t_af < b->t_af)
sys/net/if_gre.c
4346
rv = gre_ip_cmp(a->t_af, &a->t_src, &b->t_src);
sys/net/if_gre.c
4350
rv = gre_ip_cmp(a->t_af, &a->t_dst, &b->t_dst);
sys/net/if_gre.c
4367
nvgre_eb_port_eq(void *arg, void *a, void *b)
sys/net/if_gre.c
4371
return (gre_ip_cmp(sc->sc_tunnel.t_af, a, b) == 0);
sys/net/if_pppx.c
157
pppx_if_cmp(const struct pppx_if *a, const struct pppx_if *b)
sys/net/if_pppx.c
159
return memcmp(&a->pxi_key, &b->pxi_key, sizeof(a->pxi_key));
sys/net/if_veb.c
2023
size_t b;
sys/net/if_veb.c
2025
for (b = 0; b < sizeof(e); b++)
sys/net/if_veb.c
2026
ifbrvm->ifbrvm_map[t + b] = e >> (b * 8);
sys/net/if_veb.c
2078
size_t b;
sys/net/if_veb.c
2080
for (b = 0; b < sizeof(e); b++)
sys/net/if_veb.c
2081
e |= (uint32_t)ifbrvm->ifbrvm_map[t + b] << (b * 8);
sys/net/if_veb.c
3316
veb_eb_port_cmp(void *arg, void *a, void *b)
sys/net/if_veb.c
3318
struct veb_port *pa = a, *pb = b;
sys/net/if_veb.c
354
veb_pvlan_vp_cmp(const struct veb_pvlan *a, const struct veb_pvlan *b)
sys/net/if_veb.c
356
if (a->v_primary < b->v_primary)
sys/net/if_veb.c
358
if (a->v_primary > b->v_primary)
sys/net/if_veb.c
366
veb_pvlan_vs_cmp(const struct veb_pvlan *a, const struct veb_pvlan *b)
sys/net/if_veb.c
370
rv = veb_pvlan_vp_cmp(a, b);
sys/net/if_veb.c
374
if (a->v_type < b->v_type)
sys/net/if_veb.c
376
if (a->v_type > b->v_type)
sys/net/if_veb.c
379
if (a->v_secondary < b->v_secondary)
sys/net/if_veb.c
381
if (a->v_secondary > b->v_secondary)
sys/net/if_vxlan.c
1748
vxlan_eb_port_eq(void *arg, void *a, void *b)
sys/net/if_vxlan.c
1750
const union vxlan_addr *va = a, *vb = b;
sys/net/pf.c
1001
if (a->creatorid < b->creatorid)
sys/net/pf.c
1370
pf_compare_state_keys(struct pf_state_key *a, struct pf_state_key *b,
sys/net/pf.c
1374
if (a->af == b->af && a->proto == b->proto &&
sys/net/pf.c
1375
PF_AEQ(&a->addr[0], &b->addr[1], a->af) &&
sys/net/pf.c
1376
PF_AEQ(&a->addr[1], &b->addr[0], a->af) &&
sys/net/pf.c
1377
a->port[0] == b->port[1] &&
sys/net/pf.c
1378
a->port[1] == b->port[0] && a->rdomain == b->rdomain)
sys/net/pf.c
1392
addlog(", found af=%u, a0: ", b->af);
sys/net/pf.c
1393
pf_print_host(&b->addr[0], b->port[0], b->af);
sys/net/pf.c
1395
pf_print_host(&b->addr[1], b->port[1], b->af);
sys/net/pf.c
1396
addlog(", proto=%u", b->proto);
sys/net/pf.c
2399
u_int16_t b;
sys/net/pf.c
2428
b = ntohs(addr->addr16[i]);
sys/net/pf.c
2429
addlog("%x", b);
sys/net/pf.c
309
pf_statelim_id_cmp(const struct pf_statelim *a, const struct pf_statelim *b)
sys/net/pf.c
311
if (a->pfstlim_id > b->pfstlim_id)
sys/net/pf.c
313
if (a->pfstlim_id < b->pfstlim_id)
sys/net/pf.c
323
pf_statelim_nm_cmp(const struct pf_statelim *a, const struct pf_statelim *b)
sys/net/pf.c
325
return (strncmp(a->pfstlim_nm, b->pfstlim_nm, sizeof(a->pfstlim_nm)));
sys/net/pf.c
344
pf_sourcelim_id_cmp(const struct pf_sourcelim *a, const struct pf_sourcelim *b)
sys/net/pf.c
346
if (a->pfsrlim_id > b->pfsrlim_id)
sys/net/pf.c
348
if (a->pfsrlim_id < b->pfsrlim_id)
sys/net/pf.c
358
pf_sourcelim_nm_cmp(const struct pf_sourcelim *a, const struct pf_sourcelim *b)
sys/net/pf.c
360
return (strncmp(a->pfsrlim_nm, b->pfsrlim_nm, sizeof(a->pfsrlim_nm)));
sys/net/pf.c
367
pf_source_cmp(const struct pf_source *a, const struct pf_source *b)
sys/net/pf.c
369
if (a->pfsr_af > b->pfsr_af)
sys/net/pf.c
371
if (a->pfsr_af < b->pfsr_af)
sys/net/pf.c
373
if (a->pfsr_rdomain > b->pfsr_rdomain)
sys/net/pf.c
375
if (a->pfsr_rdomain < b->pfsr_rdomain)
sys/net/pf.c
378
return (pf_addr_compare(&a->pfsr_addr, &b->pfsr_addr, a->pfsr_af));
sys/net/pf.c
3816
struct pf_addr *b, sa_family_t af)
sys/net/pf.c
3821
(b->addr32[0] & m->addr32[0]))
sys/net/pf.c
3827
(b->addr32[0] & m->addr32[0])) &&
sys/net/pf.c
3829
(b->addr32[1] & m->addr32[1])) &&
sys/net/pf.c
3831
(b->addr32[2] & m->addr32[2])) &&
sys/net/pf.c
3833
(b->addr32[3] & m->addr32[3])))
sys/net/pf.c
384
pf_source_ioc_cmp(const struct pf_source *a, const struct pf_source *b)
sys/net/pf.c
3846
pf_match_addr_range(struct pf_addr *b, struct pf_addr *e,
sys/net/pf.c
3851
if ((ntohl(a->addr32[0]) < ntohl(b->addr32[0])) ||
sys/net/pf.c
3861
if (ntohl(a->addr32[i]) > ntohl(b->addr32[i]))
sys/net/pf.c
3863
else if (ntohl(a->addr32[i]) < ntohl(b->addr32[i]))
sys/net/pf.c
388
if (a->pfsr_af > b->pfsr_af)
sys/net/pf.c
390
if (a->pfsr_af < b->pfsr_af)
sys/net/pf.c
392
if (a->pfsr_rdomain > b->pfsr_rdomain)
sys/net/pf.c
394
if (a->pfsr_rdomain < b->pfsr_rdomain)
sys/net/pf.c
399
uint32_t wb = ntohl(b->pfsr_addr.addr32[i]);
sys/net/pf.c
592
pf_addr_compare(const struct pf_addr *a, const struct pf_addr *b,
sys/net/pf.c
597
if (a->addr32[0] > b->addr32[0])
sys/net/pf.c
599
if (a->addr32[0] < b->addr32[0])
sys/net/pf.c
604
if (a->addr32[3] > b->addr32[3])
sys/net/pf.c
606
if (a->addr32[3] < b->addr32[3])
sys/net/pf.c
608
if (a->addr32[2] > b->addr32[2])
sys/net/pf.c
610
if (a->addr32[2] < b->addr32[2])
sys/net/pf.c
612
if (a->addr32[1] > b->addr32[1])
sys/net/pf.c
614
if (a->addr32[1] < b->addr32[1])
sys/net/pf.c
616
if (a->addr32[0] > b->addr32[0])
sys/net/pf.c
618
if (a->addr32[0] < b->addr32[0])
sys/net/pf.c
627
pf_src_compare(struct pf_src_node *a, struct pf_src_node *b)
sys/net/pf.c
631
if (a->rule.ptr > b->rule.ptr)
sys/net/pf.c
633
if (a->rule.ptr < b->rule.ptr)
sys/net/pf.c
635
if ((diff = a->type - b->type) != 0)
sys/net/pf.c
637
if ((diff = a->af - b->af) != 0)
sys/net/pf.c
639
if ((diff = pf_addr_compare(&a->addr, &b->addr, a->af)) != 0)
sys/net/pf.c
969
const struct pf_state_key *b)
sys/net/pf.c
973
if ((diff = a->hash - b->hash) != 0)
sys/net/pf.c
975
if ((diff = a->proto - b->proto) != 0)
sys/net/pf.c
977
if ((diff = a->af - b->af) != 0)
sys/net/pf.c
979
if ((diff = pf_addr_compare(&a->addr[0], &b->addr[0], a->af)) != 0)
sys/net/pf.c
981
if ((diff = pf_addr_compare(&a->addr[1], &b->addr[1], a->af)) != 0)
sys/net/pf.c
983
if ((diff = a->port[0] - b->port[0]) != 0)
sys/net/pf.c
985
if ((diff = a->port[1] - b->port[1]) != 0)
sys/net/pf.c
987
if ((diff = a->rdomain - b->rdomain) != 0)
sys/net/pf.c
993
pf_state_compare_id(const struct pf_state *a, const struct pf_state *b)
sys/net/pf.c
995
if (a->id > b->id)
sys/net/pf.c
997
if (a->id < b->id)
sys/net/pf.c
999
if (a->creatorid > b->creatorid)
sys/net/pf_if.c
939
int i = 31, j = 0, b = 0;
sys/net/pf_if.c
943
b += 32;
sys/net/pf_if.c
949
b++;
sys/net/pf_if.c
951
return (b);
sys/net/pf_ioctl.c
4022
u_int16_t b = (order == PF_ORDER_NET) ? ntohs(port[1]) : port[1];
sys/net/pf_ioctl.c
4024
if ((op == PF_OP_RRG && a > b) || /* 34:12, i.e. none */
sys/net/pf_ioctl.c
4025
(op == PF_OP_IRG && a >= b) || /* 34><12, i.e. none */
sys/net/pf_ioctl.c
4026
(op == PF_OP_XRG && a > b)) /* 34<>22, i.e. all */
sys/net/pf_norm.c
171
pf_frnode_compare(struct pf_frnode *a, struct pf_frnode *b)
sys/net/pf_norm.c
175
if ((diff = a->fn_proto - b->fn_proto) != 0)
sys/net/pf_norm.c
177
if ((diff = a->fn_af - b->fn_af) != 0)
sys/net/pf_norm.c
179
if ((diff = pf_addr_compare(&a->fn_src, &b->fn_src, a->fn_af)) != 0)
sys/net/pf_norm.c
181
if ((diff = pf_addr_compare(&a->fn_dst, &b->fn_dst, a->fn_af)) != 0)
sys/net/pf_norm.c
188
pf_frag_compare(struct pf_fragment *a, struct pf_fragment *b)
sys/net/pf_norm.c
192
if ((diff = a->fr_id - b->fr_id) != 0)
sys/net/pf_ruleset.c
86
pf_anchor_compare(struct pf_anchor *a, struct pf_anchor *b)
sys/net/pf_ruleset.c
88
int c = strcmp(a->path, b->path);
sys/net/pfvar.h
259
#define PF_AEQ(a, b, c) \
sys/net/pfvar.h
260
((c == AF_INET && (a)->addr32[0] == (b)->addr32[0]) || \
sys/net/pfvar.h
262
(a)->addr32[3] == (b)->addr32[3] && \
sys/net/pfvar.h
263
(a)->addr32[2] == (b)->addr32[2] && \
sys/net/pfvar.h
264
(a)->addr32[1] == (b)->addr32[1] && \
sys/net/pfvar.h
265
(a)->addr32[0] == (b)->addr32[0])) \
sys/net/pfvar.h
267
#define PF_ANEQ(a, b, c) \
sys/net/pfvar.h
268
((c == AF_INET && (a)->addr32[0] != (b)->addr32[0]) || \
sys/net/pfvar.h
270
((a)->addr32[3] != (b)->addr32[3] || \
sys/net/pfvar.h
271
(a)->addr32[2] != (b)->addr32[2] || \
sys/net/pfvar.h
272
(a)->addr32[1] != (b)->addr32[1] || \
sys/net/pfvar.h
273
(a)->addr32[0] != (b)->addr32[0]))) \
sys/net/pfvar.h
374
#define PF_OSFP_ENTRY_EQ(a, b) \
sys/net/pfvar.h
375
((a)->fp_os == (b)->fp_os && \
sys/net/pfvar.h
376
memcmp((a)->fp_class_nm, (b)->fp_class_nm, PF_OSFP_LEN) == 0 && \
sys/net/pfvar.h
377
memcmp((a)->fp_version_nm, (b)->fp_version_nm, PF_OSFP_LEN) == 0 && \
sys/net/pfvar.h
378
memcmp((a)->fp_subtype_nm, (b)->fp_subtype_nm, PF_OSFP_LEN) == 0)
sys/net/pipex.c
3056
pipex_sockaddr_compar_addr(struct sockaddr *a, struct sockaddr *b)
sys/net/pipex.c
3060
cmp = b->sa_family - a->sa_family;
sys/net/pipex.c
3065
return (satosin(b)->sin_addr.s_addr -
sys/net/pipex.c
3068
cmp = (satosin6(b)->sin6_scope_id - satosin6(a)->sin6_scope_id);
sys/net/pipex.c
3072
&satosin6(b)->sin6_addr,
sys/net/pipex_local.h
376
#define SEQ32_LT(a,b) ((int32_t)((a) - (b)) < 0)
sys/net/pipex_local.h
377
#define SEQ32_LE(a,b) ((int32_t)((a) - (b)) <= 0)
sys/net/pipex_local.h
378
#define SEQ32_GT(a,b) ((int32_t)((a) - (b)) > 0)
sys/net/pipex_local.h
379
#define SEQ32_GE(a,b) ((int32_t)((a) - (b)) >= 0)
sys/net/pipex_local.h
380
#define SEQ32_SUB(a,b) ((int32_t)((a) - (b)))
sys/net/pipex_local.h
382
#define SEQ16_LT(a,b) ((int16_t)((a) - (b)) < 0)
sys/net/pipex_local.h
383
#define SEQ16_LE(a,b) ((int16_t)((a) - (b)) <= 0)
sys/net/pipex_local.h
384
#define SEQ16_GT(a,b) ((int16_t)((a) - (b)) > 0)
sys/net/pipex_local.h
385
#define SEQ16_GE(a,b) ((int16_t)((a) - (b)) >= 0)
sys/net/pipex_local.h
386
#define SEQ16_SUB(a,b) ((int16_t)((a) - (b)))
sys/net/ppp_tty.c
1044
pppdumpb(u_char *b, int l)
sys/net/ppp_tty.c
1055
*bp++ = digits[*b >> 4]; /* convert byte to ascii hex */
sys/net/ppp_tty.c
1056
*bp++ = digits[*b++ & 0xf];
sys/net/ppp_tty.c
131
void pppdumpb(u_char *b, int l);
sys/net/radix.c
242
int test, b, rn_b;
sys/net/radix.c
277
for (b = 7; (test >>= 1) > 0;)
sys/net/radix.c
278
b--;
sys/net/radix.c
280
b += matched_off << 3;
sys/net/radix.c
281
rn_b = -1 - b;
sys/net/radix.c
340
rn_newpair(void *v, int b, struct radix_node nodes[2])
sys/net/radix.c
343
t->rn_b = b;
sys/net/radix.c
344
t->rn_bmask = 0x80 >> (b & 7);
sys/net/radix.c
346
t->rn_off = b >> 3;
sys/net/radix.c
362
int b;
sys/net/radix.c
385
for (b = (cp - v) << 3; cmp_res; b--)
sys/net/radix.c
397
} while (b > (unsigned int) x->rn_b); /* x->rn_b < b && x->rn_b >= 0 */
sys/net/radix.c
398
t = rn_newpair(v_arg, b, nodes);
sys/net/radix.c
422
int b = 0, mlen, j;
sys/net/radix.c
475
b++;
sys/net/radix.c
476
if (*cp != normal_chars[b] || cp != (cplim - 1))
sys/net/radix.c
479
b += (cp - netmask) << 3;
sys/net/radix.c
480
tm->rn_b = -1 - b;
sys/net/radix.c
537
int b = -1 - t->rn_b;
sys/net/radix.c
544
if (b > t->rn_b)
sys/net/radix.c
550
} while (b <= t->rn_b && x != t);
sys/net/route.c
398
#define mix(a, b, c) do { \
sys/net/route.c
399
a -= b; a -= c; a ^= (c >> 13); \
sys/net/route.c
400
b -= c; b -= a; b ^= (a << 8); \
sys/net/route.c
401
c -= a; c -= b; c ^= (b >> 13); \
sys/net/route.c
402
a -= b; a -= c; a ^= (c >> 12); \
sys/net/route.c
403
b -= c; b -= a; b ^= (a << 16); \
sys/net/route.c
404
c -= a; c -= b; c ^= (b >> 5); \
sys/net/route.c
405
a -= b; a -= c; a ^= (c >> 3); \
sys/net/route.c
406
b -= c; b -= a; b ^= (a << 10); \
sys/net/route.c
407
c -= a; c -= b; c ^= (b >> 15); \
sys/net/route.c
413
uint32_t a, b, c;
sys/net/route.c
418
a = b = 0x9e3779b9;
sys/net/route.c
431
b += src[0];
sys/net/route.c
432
mix(a, b, c);
sys/net/route.c
445
b += sin6->sin6_addr.s6_addr32[2];
sys/net/route.c
447
mix(a, b, c);
sys/net/route.c
449
b += sin6->sin6_addr.s6_addr32[3];
sys/net/route.c
451
mix(a, b, c);
sys/net/route.c
453
b += sin6->sin6_addr.s6_addr32[1];
sys/net/route.c
455
mix(a, b, c);
sys/net/route.c
457
b += sin6->sin6_addr.s6_addr32[0];
sys/net/route.c
459
mix(a, b, c);
sys/net/route.c
819
rtequal(struct rtentry *a, struct rtentry *b)
sys/net/route.c
821
if (a == b)
sys/net/route.c
824
if (memcmp(rt_key(a), rt_key(b), rt_key(a)->sa_len) == 0 &&
sys/net/route.c
825
rt_plen(a) == rt_plen(b))
sys/net/toeplitz.c
122
unsigned int b, shift, val;
sys/net/toeplitz.c
127
for (b = 0; b < NBBY; ++b)
sys/net/toeplitz.c
128
column[b] = skey << b | skey >> (NBSK - b);
sys/net/toeplitz.c
134
for (b = 0; b < NBBY; ++b) {
sys/net/toeplitz.c
135
shift = NBBY - b - 1;
sys/net/toeplitz.c
137
res ^= column[b];
sys/net/trunklacp.c
1144
const struct lacp_peerinfo *b)
sys/net/trunklacp.c
1146
if (memcmp(&a->lip_systemid, &b->lip_systemid,
sys/net/trunklacp.c
1150
if (memcmp(&a->lip_key, &b->lip_key, sizeof(a->lip_key)))
sys/net/trunklacp.c
1810
const struct lacp_peerinfo *b, char *buf, size_t buflen)
sys/net/trunklacp.c
1820
if (lacp_compare_peerinfo(a, b) > 0) {
sys/net/trunklacp.c
1824
a = b;
sys/net/trunklacp.c
1825
b = t;
sys/net/trunklacp.c
1831
lacp_format_partner(b, bstr, sizeof(bstr)));
sys/net/trunklacp.c
844
const struct lacp_peerinfo *b)
sys/net/trunklacp.c
846
return (memcmp(a, b, offsetof(struct lacp_peerinfo, lip_state)));
sys/net/trunklacp.c
851
const struct lacp_systemid *b)
sys/net/trunklacp.c
853
return (memcmp(a, b, sizeof(*a)));
sys/net/trunklacp.c
859
const struct lacp_portid *b)
sys/net/trunklacp.c
861
return (memcmp(a, b, sizeof(*a)));
sys/net/wg_noise.c
783
noise_kdf(uint8_t *a, uint8_t *b, uint8_t *c, const uint8_t *x,
sys/net/wg_noise.c
792
KASSERT(!(b || b_len || c || c_len) || (a && a_len));
sys/net/wg_noise.c
793
KASSERT(!(c || c_len) || (b && b_len));
sys/net/wg_noise.c
806
if (b == NULL || b_len == 0)
sys/net/wg_noise.c
813
memcpy(b, out, b_len);
sys/net80211/ieee80211.h
1057
#define IEEE80211_AID(b) ((b) &~ 0xc000)
sys/net80211/ieee80211_crypto_ccmp.c
145
b[ 0] = 89; /* Flags = 64*Adata + 8*((M-2)/2) + (L-1) */
sys/net80211/ieee80211_crypto_ccmp.c
146
memcpy(&b[1], nonce, 13);
sys/net80211/ieee80211_crypto_ccmp.c
147
b[14] = lm >> 8;
sys/net80211/ieee80211_crypto_ccmp.c
148
b[15] = lm & 0xff;
sys/net80211/ieee80211_crypto_ccmp.c
149
AES_Encrypt(ctx, b, b);
sys/net80211/ieee80211_crypto_ccmp.c
152
b[i] ^= auth[i];
sys/net80211/ieee80211_crypto_ccmp.c
153
AES_Encrypt(ctx, b, b);
sys/net80211/ieee80211_crypto_ccmp.c
155
b[i] ^= auth[16 + i];
sys/net80211/ieee80211_crypto_ccmp.c
156
AES_Encrypt(ctx, b, b);
sys/net80211/ieee80211_crypto_ccmp.c
173
u_int8_t a[16], b[16], s0[16], s[16];
sys/net80211/ieee80211_crypto_ccmp.c
214
m0->m_pkthdr.len - hdrlen, b, a, s0);
sys/net80211/ieee80211_crypto_ccmp.c
257
b[j] ^= src[i];
sys/net80211/ieee80211_crypto_ccmp.c
263
AES_Encrypt(&ctx->aesctx, b, b);
sys/net80211/ieee80211_crypto_ccmp.c
277
AES_Encrypt(&ctx->aesctx, b, b);
sys/net80211/ieee80211_crypto_ccmp.c
290
mic[i] = b[i] ^ s0[i];
sys/net80211/ieee80211_crypto_ccmp.c
352
u_int8_t a[16], b[16], s0[16], s[16];
sys/net80211/ieee80211_crypto_ccmp.c
398
n0->m_pkthdr.len - hdrlen, b, a, s0);
sys/net80211/ieee80211_crypto_ccmp.c
448
b[j] ^= dst[i];
sys/net80211/ieee80211_crypto_ccmp.c
452
AES_Encrypt(&ctx->aesctx, b, b);
sys/net80211/ieee80211_crypto_ccmp.c
466
AES_Encrypt(&ctx->aesctx, b, b);
sys/net80211/ieee80211_crypto_ccmp.c
470
b[i] ^= s0[i];
sys/net80211/ieee80211_crypto_ccmp.c
474
if (timingsafe_bcmp(mic0, b, IEEE80211_CCMP_MICLEN) != 0) {
sys/net80211/ieee80211_crypto_ccmp.c
82
u_int64_t pn, int lm, u_int8_t b[16], u_int8_t a[16], u_int8_t s0[16])
sys/net80211/ieee80211_priv.h
34
#define SEQ_LT(a,b) \
sys/net80211/ieee80211_priv.h
35
((((u_int16_t)(a) - (u_int16_t)(b)) & 0xfff) > 2048)
sys/net80211/ieee80211_priv.h
37
#define IEEE80211_AID_SET(b, w) \
sys/net80211/ieee80211_priv.h
38
((w)[IEEE80211_AID(b) / 32] |= (1 << (IEEE80211_AID(b) % 32)))
sys/net80211/ieee80211_priv.h
39
#define IEEE80211_AID_CLR(b, w) \
sys/net80211/ieee80211_priv.h
40
((w)[IEEE80211_AID(b) / 32] &= ~(1 << (IEEE80211_AID(b) % 32)))
sys/net80211/ieee80211_priv.h
41
#define IEEE80211_AID_ISSET(b, w) \
sys/net80211/ieee80211_priv.h
42
((w)[IEEE80211_AID(b) / 32] & (1 << (IEEE80211_AID(b) % 32)))
sys/net80211/ieee80211_ra.c
66
#define RA_FP_MUL(a, b) \
sys/net80211/ieee80211_ra.c
67
(((a) * (b)) >> RA_FP_SHIFT)
sys/net80211/ieee80211_ra.c
70
#define RA_FP_DIV(a, b) \
sys/net80211/ieee80211_ra.c
71
(b == 0 ? (uint64_t)-1 : (((a) << RA_FP_SHIFT) / (b)))
sys/net80211/ieee80211_ra_vht.c
65
#define RA_FP_MUL(a, b) \
sys/net80211/ieee80211_ra_vht.c
66
(((a) * (b)) >> RA_FP_SHIFT)
sys/net80211/ieee80211_ra_vht.c
69
#define RA_FP_DIV(a, b) \
sys/net80211/ieee80211_ra_vht.c
70
(b == 0 ? (uint64_t)-1 : (((a) << RA_FP_SHIFT) / (b)))
sys/net80211/ieee80211_regdomain.c
82
ieee80211_regdomain_compare_cn(const void *a, const void *b)
sys/net80211/ieee80211_regdomain.c
85
((const struct ieee80211_countryname*)b)->cn_name));
sys/net80211/ieee80211_regdomain.c
89
ieee80211_regdomain_compare_rn(const void *a, const void *b)
sys/net80211/ieee80211_regdomain.c
92
((const struct ieee80211_regdomainname*)b)->rn_name));
sys/netinet/in.h
233
#define IN_CLASSFULBROADCAST(i, b) \
sys/netinet/in.h
234
((IN_CLASSC(b) && (b | IN_CLASSC_HOST) == i) || \
sys/netinet/in.h
235
(IN_CLASSB(b) && (b | IN_CLASSB_HOST) == i) || \
sys/netinet/in.h
236
(IN_CLASSA(b) && (b | IN_CLASSA_HOST) == i))
sys/netinet/ip_ipip.h
108
ipipstat_pkt(enum ipipstat_counters p, enum ipipstat_counters b, uint64_t v)
sys/netinet/ip_ipip.h
110
counters_pkt(ipipcounters, p, b, v);
sys/netinet/ip_ipsp.c
1229
ipsp_ids_match(struct ipsec_ids *a, struct ipsec_ids *b)
sys/netinet/ip_ipsp.c
1231
return a == b;
sys/netinet/ip_ipsp.c
1363
ipsp_id_cmp(struct ipsec_id *a, struct ipsec_id *b)
sys/netinet/ip_ipsp.c
1365
if (a->type > b->type)
sys/netinet/ip_ipsp.c
1367
if (a->type < b->type)
sys/netinet/ip_ipsp.c
1369
if (a->len > b->len)
sys/netinet/ip_ipsp.c
1371
if (a->len < b->len)
sys/netinet/ip_ipsp.c
1373
return memcmp(a + 1, b + 1, a->len);
sys/netinet/ip_ipsp.c
1377
ipsp_ids_cmp(const struct ipsec_ids *a, const struct ipsec_ids *b)
sys/netinet/ip_ipsp.c
1381
ret = ipsp_id_cmp(a->id_remote, b->id_remote);
sys/netinet/ip_ipsp.c
1384
return ipsp_id_cmp(a->id_local, b->id_local);
sys/netinet/ip_ipsp.c
1388
ipsp_ids_flow_cmp(const struct ipsec_ids *a, const struct ipsec_ids *b)
sys/netinet/ip_ipsp.c
1390
if (a->id_flow > b->id_flow)
sys/netinet/ip_ipsp.c
1392
if (a->id_flow < b->id_flow)
sys/netinet/ip_ipsp.h
206
ipsecstat_pkt(enum ipsec_counters p, enum ipsec_counters b, uint64_t v)
sys/netinet/ip_ipsp.h
208
counters_pkt(ipseccounters, p, b, v);
sys/netinet/ip_ipsp.h
621
#define gettdb(a,b,c,d) gettdb_dir((a),(b),(c),(d),0)
sys/netinet/ip_ipsp.h
622
#define gettdb_rev(a,b,c,d) gettdb_dir((a),(b),(c),(d),1)
sys/netinet/ip_ipsp.h
631
#define gettdbbysrcdst(a,b,c,d,e) gettdbbysrcdst_dir((a),(b),(c),(d),(e),0)
sys/netinet/ip_ipsp.h
632
#define gettdbbysrcdst_rev(a,b,c,d,e) gettdbbysrcdst_dir((a),(b),(c),(d),(e),1)
sys/netinet/tcp_input.c
121
#define TSTMP_LT(a,b) ((int32_t)((a)-(b)) < 0)
sys/netinet/tcp_input.c
122
#define TSTMP_GEQ(a,b) ((int32_t)((a)-(b)) >= 0)
sys/netinet/tcp_input.c
125
#define SEQ_MIN(a,b) (SEQ_LT(a,b) ? (a) : (b))
sys/netinet/tcp_input.c
126
#define SEQ_MAX(a,b) (SEQ_GT(a,b) ? (a) : (b))
sys/netinet/tcp_input.c
2311
tcp_seq_subtract(u_long a, u_long b)
sys/netinet/tcp_input.c
2313
return ((long)(a - b));
sys/netinet/tcp_seq.h
43
#define SEQ_LT(a,b) ((int)((a)-(b)) < 0)
sys/netinet/tcp_seq.h
44
#define SEQ_LEQ(a,b) ((int)((a)-(b)) <= 0)
sys/netinet/tcp_seq.h
45
#define SEQ_GT(a,b) ((int)((a)-(b)) > 0)
sys/netinet/tcp_seq.h
46
#define SEQ_GEQ(a,b) ((int)((a)-(b)) >= 0)
sys/netinet/tcp_subr.c
323
#define xchg(a,b,type) do { type t; t=a; a=b; b=t; } while (0)
sys/netinet6/in6.h
169
#define IN6_ARE_ADDR_EQUAL(a, b) \
sys/netinet6/in6.h
170
(memcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0)
sys/netinet6/in6_var.h
308
#define IN6_ARE_SCOPE_CMP(a,b) ((a)-(b))
sys/netinet6/in6_var.h
309
#define IN6_ARE_SCOPE_EQUAL(a,b) ((a)==(b))
sys/nfs/nfs_node.c
63
nfsnode_cmp(const struct nfsnode *a, const struct nfsnode *b)
sys/nfs/nfs_node.c
65
if (a->n_fhsize != b->n_fhsize)
sys/nfs/nfs_node.c
66
return (a->n_fhsize - b->n_fhsize);
sys/nfs/nfs_node.c
67
return (memcmp(a->n_fhp, b->n_fhp, a->n_fhsize));
sys/scsi/scsi_base.c
2781
u_char *b = (u_char *)&xs->cmd;
sys/scsi/scsi_base.c
2806
printf("%x", b[i++]);
sys/stand/efi/include/eficon.h
101
#define EFI_TEXT_ATTR(f,b) ((f) | ((b) << 4))
sys/sys/ctf.h
145
#define CTF_INT_DATA(e, o, b) _CTF_DATA(e, o, b)
sys/sys/ctf.h
162
#define CTF_FP_DATA(e, o, b) _CTF_DATA(e, o, b)
sys/sys/event.h
47
#define EV_SET(kevp, a, b, c, d, e, f) do { \
sys/sys/event.h
50
(__kevp)->filter = (b); \
sys/sys/exec_elf.h
350
#define ELF32_ST_INFO(b,t) (((b) << 4) + ((t) & 0xf))
sys/sys/exec_elf.h
354
#define ELF64_ST_INFO(b,t) (((b) << 4) + ((t) & 0xf))
sys/sys/param.h
192
#define MIN(a,b) (((a)<(b))?(a):(b))
sys/sys/param.h
193
#define MAX(a,b) (((a)>(b))?(a):(b))
sys/sys/percpu.h
177
counters_pkt(struct cpumem *cm, unsigned int c, unsigned int b, uint64_t v)
sys/sys/percpu.h
184
counters[b] += v;
sys/sys/sysctl.h
591
#define _FILL_KPROC_MIN(a,b) (((a)<(b))?(a):(b))
sys/sys/systm.h
405
#define bzero(b, n) __builtin_bzero((b), (n))
sys/sys/systm.h
408
#define memset(b, c, n) __builtin_memset((b), (c), (n))
sys/sys/videoio.h
3716
#define v4l2_fourcc(a, b, c, d)\
sys/sys/videoio.h
3717
((u_int32_t)(a) | ((u_int32_t)(b) << 8) | ((u_int32_t)(c) << 16) | ((u_int32_t)(d) << 24))
sys/sys/videoio.h
3718
#define v4l2_fourcc_be(a, b, c, d) (v4l2_fourcc(a, b, c, d) | (1U << 31))
sys/sys/vnode.h
246
#define VN_KNOTE(vp, b) \
sys/sys/vnode.h
247
knote_locked(&vp->v_klist, (b))
sys/ufs/ext2fs/ext2fs.h
401
#define fsbtodb(fs, b) ((b) << (fs)->e2fs_fsbtodb)
sys/ufs/ext2fs/ext2fs.h
402
#define dbtofsb(fs, b) ((b) >> (fs)->e2fs_fsbtodb)
sys/ufs/ext2fs/ext2fs_vfsops.c
341
off_t b = fs->e2fs_bsize / 4;
sys/ufs/ext2fs/ext2fs_vfsops.c
345
logically = (12ULL + b + b*b + b*b*b) * fs->e2fs_bsize;
sys/ufs/ffs/fs.h
461
#define fsbtodb(fs, b) ((b) << (fs)->fs_fsbtodb)
sys/ufs/ffs/fs.h
462
#define dbtofsb(fs, b) ((b) >> (fs)->fs_fsbtodb)
sys/ufs/ufs/ufsmount.h
93
#define blkptrtodb(ump, b) ((b) << (ump)->um_bptrtodb)
sys/ufs/ufs/ufsmount.h
94
#define is_sequential(ump, a, b) ((b) == (a) + ump->um_seqinc)
sys/uvm/uvm_page.c
85
uvm_pagecmp(const struct vm_page *a, const struct vm_page *b)
sys/uvm/uvm_page.c
87
return a->offset < b->offset ? -1 : a->offset > b->offset;
usr.bin/aucat/dsp.c
487
uint_gcd(unsigned int a, unsigned int b)
usr.bin/aucat/dsp.c
491
while (b > 0) {
usr.bin/aucat/dsp.c
492
r = a % b;
usr.bin/aucat/dsp.c
493
a = b;
usr.bin/aucat/dsp.c
494
b = r;
usr.bin/awk/b.c
532
int b, lp;
usr.bin/awk/b.c
564
b = first(right(p));
usr.bin/awk/b.c
565
if (first(left(p)) == 0 || b == 0) return(0);
usr.bin/awk/parse.c
103
x->narg[0] = b;
usr.bin/awk/parse.c
111
Node *stat1(int a, Node *b)
usr.bin/awk/parse.c
115
x = node1(a,b);
usr.bin/awk/parse.c
120
Node *stat2(int a, Node *b, Node *c)
usr.bin/awk/parse.c
124
x = node2(a,b,c);
usr.bin/awk/parse.c
129
Node *stat3(int a, Node *b, Node *c, Node *d)
usr.bin/awk/parse.c
133
x = node3(a,b,c,d);
usr.bin/awk/parse.c
138
Node *stat4(int a, Node *b, Node *c, Node *d, Node *e)
usr.bin/awk/parse.c
142
x = node4(a,b,c,d,e);
usr.bin/awk/parse.c
147
Node *op1(int a, Node *b)
usr.bin/awk/parse.c
151
x = node1(a,b);
usr.bin/awk/parse.c
156
Node *op2(int a, Node *b, Node *c)
usr.bin/awk/parse.c
160
x = node2(a,b,c);
usr.bin/awk/parse.c
165
Node *op3(int a, Node *b, Node *c, Node *d)
usr.bin/awk/parse.c
169
x = node3(a,b,c,d);
usr.bin/awk/parse.c
174
Node *op4(int a, Node *b, Node *c, Node *d, Node *e)
usr.bin/awk/parse.c
178
x = node4(a,b,c,d,e);
usr.bin/awk/parse.c
183
Node *op5(int a, Node *b, Node *c, Node *d, Node *e, Node *f)
usr.bin/awk/parse.c
187
x = node5(a,b,c,d,e,f);
usr.bin/awk/parse.c
192
Node *celltonode(Cell *a, int b)
usr.bin/awk/parse.c
197
a->csub = b;
usr.bin/awk/parse.c
230
Node *pa2stat(Node *a, Node *b, Node *c) /* pat, pat {...} */
usr.bin/awk/parse.c
234
x = node4(PASTAT2, a, b, c, itonp(paircnt));
usr.bin/awk/parse.c
241
Node *linkum(Node *a, Node *b)
usr.bin/awk/parse.c
248
return(b);
usr.bin/awk/parse.c
249
else if (b == NULL)
usr.bin/awk/parse.c
253
c->nnext = b;
usr.bin/awk/parse.c
51
Node *node1(int a, Node *b)
usr.bin/awk/parse.c
57
x->narg[0]=b;
usr.bin/awk/parse.c
61
Node *node2(int a, Node *b, Node *c)
usr.bin/awk/parse.c
67
x->narg[0] = b;
usr.bin/awk/parse.c
72
Node *node3(int a, Node *b, Node *c, Node *d)
usr.bin/awk/parse.c
78
x->narg[0] = b;
usr.bin/awk/parse.c
84
Node *node4(int a, Node *b, Node *c, Node *d, Node *e)
usr.bin/awk/parse.c
90
x->narg[0] = b;
usr.bin/awk/parse.c
97
Node *node5(int a, Node *b, Node *c, Node *d, Node *e, Node *f)
usr.bin/awk/run.c
2324
FILE *redirect(int a, Node *b) /* set up all i/o redirections */
usr.bin/awk/run.c
2330
x = execute(b);
usr.bin/awk/run.c
712
int i, len, b;
usr.bin/awk/run.c
716
b = strlen(s);
usr.bin/awk/run.c
717
if (bytenum > b) {
usr.bin/awk/tran.c
548
Cell *catstr(Cell *a, Cell *b) /* concatenate a and b */
usr.bin/awk/tran.c
553
char *sb = getsval(b);
usr.bin/cal/cal.c
273
int a, b, c, s, e, f, g, d, n;
usr.bin/cal/cal.c
276
b = a/4 - a/100 + a/400;
usr.bin/cal/cal.c
278
s = b - c;
usr.bin/cal/cal.c
286
g = (a + b) % 7;
usr.bin/calendar/paskha.c
39
int a, b, c, d, e;
usr.bin/calendar/paskha.c
45
b = R % 4;
usr.bin/calendar/paskha.c
48
e = (2*b + 4*c + 6*d + y) % 7;
usr.bin/calendar/pesach.c
33
int a, b, y, cumdays;
usr.bin/calendar/pesach.c
39
b = y % 4;
usr.bin/calendar/pesach.c
40
d = (T - 10 * K + L + 14) + K * a + b / 4. - L * y;
usr.bin/calendar/pesach.c
44
switch ((int)(cumdays + 3 * y + 5 * b + 5) % 7) {
usr.bin/cap_mkdb/cap_mkdb.c
46
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/cap_mkdb/cap_mkdb.c
47
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.bin/chpass/getpwent.c
47
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/cmp/regular.c
44
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/compress/main.c
51
#define min(a,b) ((a) < (b)? (a) : (b))
usr.bin/compress/zipopen.c
28
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/compress/zopen.c
73
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/ctfconv/parse.c
324
it_cmp(struct itype *a, struct itype *b)
usr.bin/ctfconv/parse.c
326
if (a->it_type > b->it_type)
usr.bin/ctfconv/parse.c
328
if (a->it_type < b->it_type)
usr.bin/ctfconv/parse.c
333
if (a->it_enc > b->it_enc)
usr.bin/ctfconv/parse.c
335
if (a->it_enc < b->it_enc)
usr.bin/ctfconv/parse.c
337
if (a->it_size > b->it_size)
usr.bin/ctfconv/parse.c
339
if (a->it_size < b->it_size)
usr.bin/ctfconv/parse.c
345
if (a->it_nelems > b->it_nelems)
usr.bin/ctfconv/parse.c
347
if (a->it_nelems < b->it_nelems)
usr.bin/ctfconv/parse.c
352
if (!(a->it_flags & ITF_ANON) && !(b->it_flags & ITF_ANON))
usr.bin/ctfconv/parse.c
353
return strcmp(it_name(a), it_name(b));
usr.bin/ctfconv/parse.c
356
if ((a->it_flags & ITF_ANON) != (b->it_flags & ITF_ANON))
usr.bin/ctfconv/parse.c
360
if ((a->it_refp != NULL) && (b->it_refp != NULL))
usr.bin/ctfconv/parse.c
361
return it_cmp(a->it_refp, b->it_refp);
usr.bin/ctfconv/parse.c
364
if (b->it_refp == NULL)
usr.bin/ctfconv/parse.c
371
it_name_cmp(struct itype *a, struct itype *b)
usr.bin/ctfconv/parse.c
375
if ((diff = strcmp(it_name(a), it_name(b))) != 0)
usr.bin/ctfconv/parse.c
378
return ((a->it_flags|ITF_MASK) - (b->it_flags|ITF_MASK));
usr.bin/ctfconv/parse.c
382
it_off_cmp(struct itype *a, struct itype *b)
usr.bin/ctfconv/parse.c
384
return a->it_off - b->it_off;
usr.bin/ctfconv/pool.c
32
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.bin/ctfconv/pool.h
63
#define pmalloc(a, b) malloc(b)
usr.bin/ctfconv/pool.h
64
#define pzalloc(a, b) calloc(1, b)
usr.bin/ctfconv/pool.h
65
#define pfree(a, b) free(b)
usr.bin/cvs/admin.c
351
char b[CVS_REV_BUFSZ];
usr.bin/cvs/admin.c
362
rcsnum_tostr(rdp->rd_num, b, sizeof(b));
usr.bin/cvs/admin.c
364
cvs_printf("deleting revision %s\n", b);
usr.bin/cvs/buf.c
120
buf_free(BUF *b)
usr.bin/cvs/buf.c
122
if (b == NULL)
usr.bin/cvs/buf.c
124
free(b->cb_buf);
usr.bin/cvs/buf.c
125
free(b);
usr.bin/cvs/buf.c
133
buf_release(BUF *b)
usr.bin/cvs/buf.c
137
tmp = b->cb_buf;
usr.bin/cvs/buf.c
138
free(b);
usr.bin/cvs/buf.c
146
buf_putc(BUF *b, int c)
usr.bin/cvs/buf.c
150
if (SIZE_LEFT(b) == 0)
usr.bin/cvs/buf.c
151
buf_grow(b, BUF_INCR);
usr.bin/cvs/buf.c
152
bp = b->cb_buf + b->cb_len;
usr.bin/cvs/buf.c
154
b->cb_len++;
usr.bin/cvs/buf.c
161
buf_puts(BUF *b, const char *str)
usr.bin/cvs/buf.c
163
buf_append(b, str, strlen(str));
usr.bin/cvs/buf.c
172
buf_append(BUF *b, const void *data, size_t len)
usr.bin/cvs/buf.c
177
left = SIZE_LEFT(b);
usr.bin/cvs/buf.c
180
buf_grow(b, len - left);
usr.bin/cvs/buf.c
182
bp = b->cb_buf + b->cb_len;
usr.bin/cvs/buf.c
184
b->cb_len += len;
usr.bin/cvs/buf.c
191
buf_len(BUF *b)
usr.bin/cvs/buf.c
193
return (b->cb_len);
usr.bin/cvs/buf.c
200
buf_write_fd(BUF *b, int fd)
usr.bin/cvs/buf.c
202
if (atomicio(vwrite, fd, b->cb_buf, b->cb_len) != b->cb_len)
usr.bin/cvs/buf.c
212
buf_write(BUF *b, const char *path, mode_t mode)
usr.bin/cvs/buf.c
223
if (buf_write_fd(b, fd) == -1) {
usr.bin/cvs/buf.c
243
buf_write_stmp(BUF *b, char *template, struct timeval *tv)
usr.bin/cvs/buf.c
250
if (buf_write_fd(b, fd) == -1) {
usr.bin/cvs/buf.c
288
buf_grow(BUF *b, size_t len)
usr.bin/cvs/buf.c
290
b->cb_buf = xreallocarray(b->cb_buf, 1, b->cb_size + len);
usr.bin/cvs/buf.c
291
b->cb_size += len;
usr.bin/cvs/buf.c
50
#define SIZE_LEFT(b) (b->cb_size - b->cb_len)
usr.bin/cvs/buf.c
62
BUF *b;
usr.bin/cvs/buf.c
64
b = xmalloc(sizeof(*b));
usr.bin/cvs/buf.c
67
b->cb_buf = xcalloc(1, len);
usr.bin/cvs/buf.c
69
b->cb_buf = NULL;
usr.bin/cvs/buf.c
71
b->cb_size = len;
usr.bin/cvs/buf.c
72
b->cb_len = 0;
usr.bin/cvs/buf.c
74
return (b);
usr.bin/cvs/commit.c
402
BUF *b, *d;
usr.bin/cvs/commit.c
568
b = rcs_rev_getbuf(cf->file_rcs, crev, 0);
usr.bin/cvs/commit.c
570
b = commit_diff(cf, crev, 1);
usr.bin/cvs/commit.c
572
b = buf_load_fd(cf->fd);
usr.bin/cvs/commit.c
586
if (rcs_deltatext_set(cf->file_rcs, nrev, b) == -1)
usr.bin/cvs/commit.c
691
BUF *b;
usr.bin/cvs/commit.c
697
b = buf_load_fd(cf->fd);
usr.bin/cvs/commit.c
698
fd1 = buf_write_stmp(b, p1, NULL);
usr.bin/cvs/commit.c
699
buf_free(b);
usr.bin/cvs/commit.c
707
b = buf_alloc(128);
usr.bin/cvs/commit.c
712
d = diffreg(p2, p1, fd2, fd1, b, D_FORCEASCII);
usr.bin/cvs/commit.c
714
d = diffreg(p1, p2, fd1, fd2, b, D_FORCEASCII);
usr.bin/cvs/commit.c
724
return (b);
usr.bin/cvs/date.y
785
difftm(struct tm *a, struct tm *b)
usr.bin/cvs/date.y
788
int by = b->tm_year + (YEAR_TMORIGIN - 1);
usr.bin/cvs/date.y
791
a->tm_yday - b->tm_yday
usr.bin/cvs/date.y
798
return (60 * (60 * (24 * days + (a->tm_hour - b->tm_hour))
usr.bin/cvs/date.y
799
+ (a->tm_min - b->tm_min)) + (a->tm_sec - b->tm_sec));
usr.bin/cvs/diff3.c
440
int a, b, c, d;
usr.bin/cvs/diff3.c
451
a = b = number(&p);
usr.bin/cvs/diff3.c
454
b = number(&p);
usr.bin/cvs/diff3.c
466
b++;
usr.bin/cvs/diff3.c
469
(*dd)[i].old.to = b;
usr.bin/cvs/diff3.c
497
getchange(FILE *b)
usr.bin/cvs/diff3.c
501
while ((line = get_line(b, NULL))) {
usr.bin/cvs/diff3.c
510
get_line(FILE *b, size_t *n)
usr.bin/cvs/diff3.c
517
if ((cp = fgetln(b, &len)) == NULL)
usr.bin/cvs/diff_internals.c
1022
} else if (a > context_vec_ptr->b + (2 * diff_context) + 1 &&
usr.bin/cvs/diff_internals.c
1035
context_vec_ptr->b = b;
usr.bin/cvs/diff_internals.c
1046
range(a, b, ",");
usr.bin/cvs/diff_internals.c
1047
diff_output("%c", a > b ? 'a' : c > d ? 'd' : 'c');
usr.bin/cvs/diff_internals.c
1053
if (a > b)
usr.bin/cvs/diff_internals.c
1054
diff_output("a%d %d\n", b, d - c + 1);
usr.bin/cvs/diff_internals.c
1056
diff_output("d%d %d\n", a, b - a + 1);
usr.bin/cvs/diff_internals.c
1059
diff_output("a%d %d\n", b, d - c + 1);
usr.bin/cvs/diff_internals.c
1064
fetch(ixold, a, b, f1, '<', 1, flags);
usr.bin/cvs/diff_internals.c
1065
if (a <= b && c <= d && diff_format == D_NORMAL)
usr.bin/cvs/diff_internals.c
1076
fetch(long *f, int a, int b, FILE *lb, int ch, int oldfile, int flags)
usr.bin/cvs/diff_internals.c
1088
nc = f[a > b ? b : a - 1] - curpos;
usr.bin/cvs/diff_internals.c
1092
if (a > b)
usr.bin/cvs/diff_internals.c
1106
for (i = a; i <= b; i++) {
usr.bin/cvs/diff_internals.c
1274
int a, b, c, d;
usr.bin/cvs/diff_internals.c
1280
b = d = 0; /* gcc */
usr.bin/cvs/diff_internals.c
1282
upb = MINIMUM(len[0], context_vec_ptr->b + diff_context);
usr.bin/cvs/diff_internals.c
1303
if (cvp->a <= cvp->b) {
usr.bin/cvs/diff_internals.c
1311
b = cvp->b;
usr.bin/cvs/diff_internals.c
1315
if (a <= b && c <= d)
usr.bin/cvs/diff_internals.c
1318
ch = (a <= b) ? 'd' : 'a';
usr.bin/cvs/diff_internals.c
1321
fetch(ixold, lowa, b, f1, ' ', 0, flags);
usr.bin/cvs/diff_internals.c
1324
fetch(ixold, a, b, f1,
usr.bin/cvs/diff_internals.c
1327
lowa = b + 1;
usr.bin/cvs/diff_internals.c
1330
fetch(ixold, b + 1, upb, f1, ' ', 0, flags);
usr.bin/cvs/diff_internals.c
1347
b = cvp->b;
usr.bin/cvs/diff_internals.c
1351
if (a <= b && c <= d)
usr.bin/cvs/diff_internals.c
1354
ch = (a <= b) ? 'd' : 'a';
usr.bin/cvs/diff_internals.c
1377
int a, b, c, d;
usr.bin/cvs/diff_internals.c
1383
b = d = 0; /* gcc */
usr.bin/cvs/diff_internals.c
1385
upb = MINIMUM(len[0], context_vec_ptr->b + diff_context);
usr.bin/cvs/diff_internals.c
1407
b = cvp->b;
usr.bin/cvs/diff_internals.c
1416
if (a <= b && c <= d)
usr.bin/cvs/diff_internals.c
1419
ch = (a <= b) ? 'd' : 'a';
usr.bin/cvs/diff_internals.c
1424
fetch(ixold, a, b, f1, '-', 0, flags);
usr.bin/cvs/diff_internals.c
1429
fetch(ixold, a, b, f1, '-', 0, flags);
usr.bin/cvs/diff_internals.c
1436
lowa = b + 1;
usr.bin/cvs/diff_internals.c
172
int b; /* end line in old file */
usr.bin/cvs/diff_internals.c
496
equiv(struct line *a, int n, struct line *b, int m, int *c)
usr.bin/cvs/diff_internals.c
502
if (a[i].value < b[j].value)
usr.bin/cvs/diff_internals.c
504
else if (a[i].value == b[j].value)
usr.bin/cvs/diff_internals.c
511
b[m + 1].value = 0;
usr.bin/cvs/diff_internals.c
514
c[j] = -b[j].serial;
usr.bin/cvs/diff_internals.c
515
while (b[j + 1].value == b[j].value) {
usr.bin/cvs/diff_internals.c
517
c[j] = b[j].serial;
usr.bin/cvs/diff_internals.c
543
stone(int *a, int n, int *b, int *c, int flags)
usr.bin/cvs/diff_internals.c
562
y = -b[j];
usr.bin/cvs/diff_internals.c
585
} while ((y = b[++j]) > 0 && numtries < bound);
usr.bin/cvs/diff_internals.c
782
unsort(struct line *f, int l, int *b)
usr.bin/cvs/diff_internals.c
790
b[i] = a[i];
usr.bin/cvs/diff_internals.c
84
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/cvs/diff_internals.c
845
range(int a, int b, char *separator)
usr.bin/cvs/diff_internals.c
847
diff_output("%d", a > b ? b : a);
usr.bin/cvs/diff_internals.c
848
if (a < b)
usr.bin/cvs/diff_internals.c
849
diff_output("%s%d", separator, b);
usr.bin/cvs/diff_internals.c
85
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.bin/cvs/diff_internals.c
853
uni_range(int a, int b)
usr.bin/cvs/diff_internals.c
855
if (a < b)
usr.bin/cvs/diff_internals.c
856
diff_output("%d,%d", a, b - a + 1);
usr.bin/cvs/diff_internals.c
857
else if (a == b)
usr.bin/cvs/diff_internals.c
858
diff_output("%d", b);
usr.bin/cvs/diff_internals.c
860
diff_output("%d,0", b);
usr.bin/cvs/diff_internals.c
967
change(FILE *f1, FILE *f2, int a, int b, int c, int d, int flags)
usr.bin/cvs/diff_internals.c
972
if (diff_format != D_IFDEF && a > b && c > d)
usr.bin/cvs/diff_internals.c
981
if (a <= b) { /* Changes and deletes. */
usr.bin/cvs/diff_internals.c
982
for (i = a; i <= b; i++) {
usr.bin/cvs/diff_internals.c
989
if (a > b || c <= d) { /* Changes and inserts. */
usr.bin/cvs/init.c
144
BUF *b;
usr.bin/cvs/init.c
180
b = buf_load(path);
usr.bin/cvs/init.c
186
if (rcs_deltatext_set(file, file->rf_head, b) == -1)
usr.bin/cvs/rcs.c
43
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/cvs/rcsnum.c
33
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/cvs/remote.c
31
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/dc/bcode.c
1003
b = pop_number();
usr.bin/dc/bcode.c
1004
if (b == NULL) {
usr.bin/dc/bcode.c
1009
if (b->scale > a->scale)
usr.bin/dc/bcode.c
1010
normalize(a, b->scale);
usr.bin/dc/bcode.c
1011
else if (a->scale > b->scale)
usr.bin/dc/bcode.c
1012
normalize(b, a->scale);
usr.bin/dc/bcode.c
1013
bn_check(BN_sub(b->number, b->number, a->number));
usr.bin/dc/bcode.c
1015
push_number(b);
usr.bin/dc/bcode.c
1019
bmul_number(struct number *r, struct number *a, struct number *b, u_int scale)
usr.bin/dc/bcode.c
1023
u_int bscale = b->scale;
usr.bin/dc/bcode.c
1026
bn_check(BN_mul(r->number, a->number, b->number, bmachine.ctx));
usr.bin/dc/bcode.c
1036
struct number *a, *b;
usr.bin/dc/bcode.c
1041
b = pop_number();
usr.bin/dc/bcode.c
1042
if (b == NULL) {
usr.bin/dc/bcode.c
1047
bmul_number(b, a, b, bmachine.scale);
usr.bin/dc/bcode.c
1049
push_number(b);
usr.bin/dc/bcode.c
1055
struct number *a, *b;
usr.bin/dc/bcode.c
1062
b = pop_number();
usr.bin/dc/bcode.c
1063
if (b == NULL) {
usr.bin/dc/bcode.c
1070
scale = max(a->scale, b->scale);
usr.bin/dc/bcode.c
1076
normalize(b, scale + r->scale);
usr.bin/dc/bcode.c
1078
bn_check(BN_div(r->number, NULL, b->number, a->number, bmachine.ctx));
usr.bin/dc/bcode.c
1082
free_number(b);
usr.bin/dc/bcode.c
1088
struct number *a, *b;
usr.bin/dc/bcode.c
1095
b = pop_number();
usr.bin/dc/bcode.c
1096
if (b == NULL) {
usr.bin/dc/bcode.c
1102
scale = max(a->scale, b->scale);
usr.bin/dc/bcode.c
1103
r->scale = max(b->scale, a->scale + bmachine.scale);
usr.bin/dc/bcode.c
1109
normalize(b, scale + bmachine.scale);
usr.bin/dc/bcode.c
1111
bn_check(BN_mod(r->number, b->number, a->number, bmachine.ctx));
usr.bin/dc/bcode.c
1115
free_number(b);
usr.bin/dc/bcode.c
1121
struct number *a, *b;
usr.bin/dc/bcode.c
1128
b = pop_number();
usr.bin/dc/bcode.c
1129
if (b == NULL) {
usr.bin/dc/bcode.c
1137
rmod->scale = max(b->scale, a->scale + bmachine.scale);
usr.bin/dc/bcode.c
1138
scale = max(a->scale, b->scale);
usr.bin/dc/bcode.c
1144
normalize(b, scale + bmachine.scale);
usr.bin/dc/bcode.c
1147
b->number, a->number, bmachine.ctx));
usr.bin/dc/bcode.c
1152
free_number(b);
usr.bin/dc/bcode.c
1193
u_long b;
usr.bin/dc/bcode.c
1196
b = BN_get_word(p->number);
usr.bin/dc/bcode.c
1198
rscale = a->scale * (u_int)b;
usr.bin/dc/bcode.c
1199
if (rscale > m || (a->scale > 0 && (b == (BN_ULONG)-1 ||
usr.bin/dc/bcode.c
1200
b > UINT_MAX)))
usr.bin/dc/bcode.c
1322
struct number *a, *b, *r;
usr.bin/dc/bcode.c
1327
b = pop_number();
usr.bin/dc/bcode.c
1328
if (b == NULL) {
usr.bin/dc/bcode.c
1334
compare_numbers(BCODE_EQUAL, a, b) ? 1 : 0));
usr.bin/dc/bcode.c
1341
struct number *a, *b, *r;
usr.bin/dc/bcode.c
1346
b = pop_number();
usr.bin/dc/bcode.c
1347
if (b == NULL) {
usr.bin/dc/bcode.c
1353
compare_numbers(BCODE_LESS, a, b) ? 1 : 0));
usr.bin/dc/bcode.c
1360
struct number *a, *b, *r;
usr.bin/dc/bcode.c
1365
b = pop_number();
usr.bin/dc/bcode.c
1366
if (b == NULL) {
usr.bin/dc/bcode.c
1372
compare_numbers(BCODE_NOT_GREATER, a, b) ? 1 : 0));
usr.bin/dc/bcode.c
1409
compare_numbers(enum bcode_compare type, struct number *a, struct number *b)
usr.bin/dc/bcode.c
1414
scale = max(a->scale, b->scale);
usr.bin/dc/bcode.c
1418
else if (scale > b->scale)
usr.bin/dc/bcode.c
1419
normalize(b, scale);
usr.bin/dc/bcode.c
1421
cmp = BN_cmp(a->number, b->number);
usr.bin/dc/bcode.c
1424
free_number(b);
usr.bin/dc/bcode.c
1447
struct number *a, *b;
usr.bin/dc/bcode.c
1461
b = pop_number();
usr.bin/dc/bcode.c
1462
if (b == NULL) {
usr.bin/dc/bcode.c
1467
ok = compare_numbers(type, a, b);
usr.bin/dc/bcode.c
341
max(u_int a, u_int b)
usr.bin/dc/bcode.c
343
return a > b ? a : b;
usr.bin/dc/bcode.c
975
struct number *a, *b;
usr.bin/dc/bcode.c
980
b = pop_number();
usr.bin/dc/bcode.c
981
if (b == NULL) {
usr.bin/dc/bcode.c
986
if (b->scale > a->scale)
usr.bin/dc/bcode.c
987
normalize(a, b->scale);
usr.bin/dc/bcode.c
988
else if (a->scale > b->scale)
usr.bin/dc/bcode.c
989
normalize(b, a->scale);
usr.bin/dc/bcode.c
990
bn_check(BN_add(b->number, a->number, b->number));
usr.bin/dc/bcode.c
992
push_number(b);
usr.bin/dc/bcode.c
998
struct number *a, *b;
usr.bin/dc/inout.c
281
printnumber(FILE *f, const struct number *b, u_int base)
usr.bin/dc/inout.c
292
if (BN_is_zero(b->number))
usr.bin/dc/inout.c
297
fract_part->scale = b->scale;
usr.bin/dc/inout.c
304
split_number(b, int_part->number, fract_part->number);
usr.bin/dc/inout.c
337
if (BN_is_negative(b->number))
usr.bin/dc/inout.c
349
if (b->scale > 0) {
usr.bin/dc/inout.c
362
scale_number(stop, b->scale);
usr.bin/dc/stack.c
139
stack_pushnumber(struct stack *stack, struct number *b)
usr.bin/dc/stack.c
143
stack->stack[stack->sp].u.num = b;
usr.bin/diff/diffreg.c
1020
} else if (a > context_vec_ptr->b + (2 * diff_context) + 1 &&
usr.bin/diff/diffreg.c
1033
context_vec_ptr->b = b;
usr.bin/diff/diffreg.c
1045
range(a, b, ",");
usr.bin/diff/diffreg.c
1046
diff_output("%c", a > b ? 'a' : c > d ? 'd' : 'c');
usr.bin/diff/diffreg.c
1052
diff_output("%c", a > b ? 'a' : c > d ? 'd' : 'c');
usr.bin/diff/diffreg.c
1053
range(a, b, " ");
usr.bin/diff/diffreg.c
1057
if (a > b)
usr.bin/diff/diffreg.c
1058
diff_output("a%d %d\n", b, d - c + 1);
usr.bin/diff/diffreg.c
1060
diff_output("d%d %d\n", a, b - a + 1);
usr.bin/diff/diffreg.c
1063
diff_output("a%d %d\n", b, d - c + 1);
usr.bin/diff/diffreg.c
1068
fetch(ixold, a, b, f1, '<', 1, *pflags);
usr.bin/diff/diffreg.c
1069
if (a <= b && c <= d && diff_format == D_NORMAL)
usr.bin/diff/diffreg.c
1083
b = a + i - 1;
usr.bin/diff/diffreg.c
1084
a = b + 1;
usr.bin/diff/diffreg.c
1097
fetch(long *f, int a, int b, FILE *lb, int ch, int oldfile, int flags)
usr.bin/diff/diffreg.c
1108
nc = f[a > b ? b : a - 1] - curpos;
usr.bin/diff/diffreg.c
1112
if (a > b)
usr.bin/diff/diffreg.c
1126
for (i = a; i <= b; i++) {
usr.bin/diff/diffreg.c
1303
int a, b, c, d;
usr.bin/diff/diffreg.c
1309
b = d = 0; /* gcc */
usr.bin/diff/diffreg.c
1311
upb = MINIMUM(len[0], context_vec_ptr->b + diff_context);
usr.bin/diff/diffreg.c
1332
if (cvp->a <= cvp->b) {
usr.bin/diff/diffreg.c
1340
b = cvp->b;
usr.bin/diff/diffreg.c
1344
if (a <= b && c <= d)
usr.bin/diff/diffreg.c
1347
ch = (a <= b) ? 'd' : 'a';
usr.bin/diff/diffreg.c
1350
fetch(ixold, lowa, b, f1, ' ', 0, flags);
usr.bin/diff/diffreg.c
1353
fetch(ixold, a, b, f1,
usr.bin/diff/diffreg.c
1356
lowa = b + 1;
usr.bin/diff/diffreg.c
1359
fetch(ixold, b + 1, upb, f1, ' ', 0, flags);
usr.bin/diff/diffreg.c
1376
b = cvp->b;
usr.bin/diff/diffreg.c
1380
if (a <= b && c <= d)
usr.bin/diff/diffreg.c
1383
ch = (a <= b) ? 'd' : 'a';
usr.bin/diff/diffreg.c
1406
int a, b, c, d;
usr.bin/diff/diffreg.c
1412
b = d = 0; /* gcc */
usr.bin/diff/diffreg.c
1414
upb = MINIMUM(len[0], context_vec_ptr->b + diff_context);
usr.bin/diff/diffreg.c
1436
b = cvp->b;
usr.bin/diff/diffreg.c
1445
if (a <= b && c <= d)
usr.bin/diff/diffreg.c
1448
ch = (a <= b) ? 'd' : 'a';
usr.bin/diff/diffreg.c
1453
fetch(ixold, a, b, f1, '-', 0, flags);
usr.bin/diff/diffreg.c
1458
fetch(ixold, a, b, f1, '-', 0, flags);
usr.bin/diff/diffreg.c
1465
lowa = b + 1;
usr.bin/diff/diffreg.c
174
int b; /* end line in old file */
usr.bin/diff/diffreg.c
545
equiv(struct line *a, int n, struct line *b, int m, int *c)
usr.bin/diff/diffreg.c
551
if (a[i].value < b[j].value)
usr.bin/diff/diffreg.c
553
else if (a[i].value == b[j].value)
usr.bin/diff/diffreg.c
560
b[m + 1].value = 0;
usr.bin/diff/diffreg.c
563
c[j] = -b[j].serial;
usr.bin/diff/diffreg.c
564
while (b[j + 1].value == b[j].value) {
usr.bin/diff/diffreg.c
566
c[j] = b[j].serial;
usr.bin/diff/diffreg.c
592
stone(int *a, int n, int *b, int *c, int flags)
usr.bin/diff/diffreg.c
611
y = -b[j];
usr.bin/diff/diffreg.c
634
} while ((y = b[++j]) > 0 && numtries < bound);
usr.bin/diff/diffreg.c
835
unsort(struct line *f, int l, int *b)
usr.bin/diff/diffreg.c
843
b[i] = a[i];
usr.bin/diff/diffreg.c
86
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/diff/diffreg.c
87
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.bin/diff/diffreg.c
912
range(int a, int b, char *separator)
usr.bin/diff/diffreg.c
914
diff_output("%d", a > b ? b : a);
usr.bin/diff/diffreg.c
915
if (a < b)
usr.bin/diff/diffreg.c
916
diff_output("%s%d", separator, b);
usr.bin/diff/diffreg.c
920
uni_range(int a, int b)
usr.bin/diff/diffreg.c
922
if (a < b)
usr.bin/diff/diffreg.c
923
diff_output("%d,%d", a, b - a + 1);
usr.bin/diff/diffreg.c
924
else if (a == b)
usr.bin/diff/diffreg.c
925
diff_output("%d", b);
usr.bin/diff/diffreg.c
927
diff_output("%d,0", b);
usr.bin/diff/diffreg.c
963
change(char *file1, FILE *f1, char *file2, FILE *f2, int a, int b, int c, int d,
usr.bin/diff/diffreg.c
970
if (diff_format != D_IFDEF && a > b && c > d)
usr.bin/diff/diffreg.c
979
if (a <= b) { /* Changes and deletes. */
usr.bin/diff/diffreg.c
980
for (i = a; i <= b; i++) {
usr.bin/diff/diffreg.c
987
if (a > b || c <= d) { /* Changes and inserts. */
usr.bin/diff3/diff3prog.c
206
int a, b, c, d, i;
usr.bin/diff3/diff3prog.c
215
a = b = number(&p);
usr.bin/diff3/diff3prog.c
218
b = number(&p);
usr.bin/diff3/diff3prog.c
230
b++;
usr.bin/diff3/diff3prog.c
233
(*dd)[i].old.to = b;
usr.bin/diff3/diff3prog.c
256
getchange(FILE *b)
usr.bin/diff3/diff3prog.c
260
while ((line = get_line(b, NULL))) {
usr.bin/diff3/diff3prog.c
268
get_line(FILE *b, size_t *n)
usr.bin/diff3/diff3prog.c
275
if ((cp = fgetln(b, &len)) == NULL)
usr.bin/dig/dig.c
48
#define ADD_STRING(b, s) { \
usr.bin/dig/dig.c
49
if (strlen(s) >= isc_buffer_availablelength(b)) \
usr.bin/dig/dig.c
52
isc_buffer_putstr(b, s); \
usr.bin/dig/dighost.c
1287
isc_buffer_t b;
usr.bin/dig/dighost.c
1325
isc_buffer_init(&b, buf, (unsigned int) strlen(value)/2 + 1);
usr.bin/dig/dighost.c
1326
result = isc_hex_decodestring(value, &b);
usr.bin/dig/dighost.c
1329
isc_buffer_base(&b);
usr.bin/dig/dighost.c
1331
isc_buffer_usedlength(&b);
usr.bin/dig/dighost.c
1906
isc_buffer_t b;
usr.bin/dig/dighost.c
1972
isc_buffer_init(&b, lookup->origin->origin, len);
usr.bin/dig/dighost.c
1973
isc_buffer_add(&b, len);
usr.bin/dig/dighost.c
1974
result = dns_name_fromtext(lookup->oname, &b, dns_rootname,
usr.bin/dig/dighost.c
1994
isc_buffer_init(&b, lookup->textname, len);
usr.bin/dig/dighost.c
1995
isc_buffer_add(&b, len);
usr.bin/dig/dighost.c
1996
result = dns_name_fromtext(name, &b, NULL, 0, NULL);
usr.bin/dig/dighost.c
2026
isc_buffer_init(&b, lookup->textname, len);
usr.bin/dig/dighost.c
2027
isc_buffer_add(&b, len);
usr.bin/dig/dighost.c
2028
result = dns_name_fromtext(lookup->name, &b,
usr.bin/dig/dighost.c
2209
isc_buffer_init(&b, ecsbuf, sizeof(ecsbuf));
usr.bin/dig/dighost.c
2211
isc_buffer_putuint16(&b, family);
usr.bin/dig/dighost.c
2213
isc_buffer_putuint8(&b, plen);
usr.bin/dig/dighost.c
2215
isc_buffer_putuint8(&b, 0);
usr.bin/dig/dighost.c
2223
isc_buffer_putmem(&b, addr,
usr.bin/dig/dighost.c
2235
isc_buffer_init(&b, sitbuf, sizeof(sitbuf));
usr.bin/dig/dighost.c
2237
&b);
usr.bin/dig/dighost.c
2239
opts[i].value = isc_buffer_base(&b);
usr.bin/dig/dighost.c
2240
opts[i].length = isc_buffer_usedlength(&b);
usr.bin/dig/dighost.c
2354
isc_buffer_t *b = NULL;
usr.bin/dig/dighost.c
2367
for (b = ISC_LIST_HEAD(sevent->bufferlist);
usr.bin/dig/dighost.c
2368
b != NULL;
usr.bin/dig/dighost.c
2369
b = ISC_LIST_HEAD(sevent->bufferlist)) {
usr.bin/dig/dighost.c
2370
ISC_LIST_DEQUEUE(sevent->bufferlist, b, link);
usr.bin/dig/dighost.c
2371
free(b);
usr.bin/dig/dighost.c
239
hex_dump(isc_buffer_t *b) {
usr.bin/dig/dighost.c
243
isc_buffer_usedregion(b, &r);
usr.bin/dig/dighost.c
2732
isc_buffer_t *b = NULL;
usr.bin/dig/dighost.c
2751
b = ISC_LIST_HEAD(sevent->bufferlist);
usr.bin/dig/dighost.c
2752
INSIST(b == &query->lengthbuf);
usr.bin/dig/dighost.c
2753
ISC_LIST_DEQUEUE(sevent->bufferlist, b, link);
usr.bin/dig/dighost.c
2785
length = isc_buffer_getuint16(b);
usr.bin/dig/dighost.c
3211
isc_buffer_t *b = NULL;
usr.bin/dig/dighost.c
3240
b = ISC_LIST_HEAD(sevent->bufferlist);
usr.bin/dig/dighost.c
3241
INSIST(b == &query->recvbuf);
usr.bin/dig/dighost.c
3316
result = dns_message_peekheader(b, &id, &msgflags);
usr.bin/dig/dighost.c
3384
result = dns_message_parse(msg, b, parseflags);
usr.bin/dig/dighost.c
3392
hex_dump(b);
usr.bin/dig/dighost.c
3535
extrabytes = isc_buffer_remaininglength(b);
usr.bin/dig/dighost.c
3582
dighost_received(b->used, &sevent->address, query);
usr.bin/dig/dighost.c
3647
dighost_received(b->used, &sevent->address, query);
usr.bin/dig/host.c
172
isc_buffer_t *b = NULL;
usr.bin/dig/host.c
180
result = isc_buffer_allocate(&b, bufsize);
usr.bin/dig/host.c
182
result = dns_rdata_totext(rdata, NULL, b);
usr.bin/dig/host.c
184
isc_buffer_free(&b);
usr.bin/dig/host.c
189
isc_buffer_usedregion(b, &r);
usr.bin/dig/host.c
200
isc_buffer_free(&b);
usr.bin/dig/lib/dns/gen.c
115
char *b = buf;
usr.bin/dig/lib/dns/gen.c
120
*b++ = (c == '-') ? '_' : c;
usr.bin/dig/lib/dns/gen.c
122
*b = '\0';
usr.bin/dig/lib/dns/message.c
55
#define ADD_STRING(b, s) {if (strlen(s) >= \
usr.bin/dig/lib/dns/message.c
56
isc_buffer_availablelength(b)) \
usr.bin/dig/lib/dns/message.c
58
isc_buffer_putstr(b, s);}
usr.bin/dig/lib/dns/rcode.c
153
isc_buffer_t b;
usr.bin/dig/lib/dns/rcode.c
158
isc_buffer_init(&b, cp, size - 1);
usr.bin/dig/lib/dns/rcode.c
159
result = dns_secalg_totext(alg, &b);
usr.bin/dig/lib/dns/rcode.c
160
isc_buffer_usedregion(&b, &r);
usr.bin/dig/lib/dns/tsig.c
290
isc_buffer_t b;
usr.bin/dig/lib/dns/tsig.c
292
isc_buffer_init(&b, secret, length);
usr.bin/dig/lib/dns/tsig.c
293
isc_buffer_add(&b, length);
usr.bin/dig/lib/dns/tsig.c
297
&b, &dstkey);
usr.bin/dig/lib/dns/tsig.c
303
isc_buffer_t b;
usr.bin/dig/lib/dns/tsig.c
305
isc_buffer_init(&b, secret, length);
usr.bin/dig/lib/dns/tsig.c
306
isc_buffer_add(&b, length);
usr.bin/dig/lib/dns/tsig.c
310
&b, &dstkey);
usr.bin/dig/lib/dns/tsig.c
316
isc_buffer_t b;
usr.bin/dig/lib/dns/tsig.c
318
isc_buffer_init(&b, secret, length);
usr.bin/dig/lib/dns/tsig.c
319
isc_buffer_add(&b, length);
usr.bin/dig/lib/dns/tsig.c
323
&b, &dstkey);
usr.bin/dig/lib/dns/tsig.c
329
isc_buffer_t b;
usr.bin/dig/lib/dns/tsig.c
331
isc_buffer_init(&b, secret, length);
usr.bin/dig/lib/dns/tsig.c
332
isc_buffer_add(&b, length);
usr.bin/dig/lib/dns/tsig.c
336
&b, &dstkey);
usr.bin/dig/lib/dns/tsig.c
342
isc_buffer_t b;
usr.bin/dig/lib/dns/tsig.c
344
isc_buffer_init(&b, secret, length);
usr.bin/dig/lib/dns/tsig.c
345
isc_buffer_add(&b, length);
usr.bin/dig/lib/dns/tsig.c
349
&b, &dstkey);
usr.bin/dig/lib/isc/buffer.c
101
ISC__BUFFER_CLEAR(b);
usr.bin/dig/lib/isc/buffer.c
105
isc__buffer_remainingregion(isc_buffer_t *b, isc_region_t *r) {
usr.bin/dig/lib/isc/buffer.c
112
ISC__BUFFER_REMAININGREGION(b, r);
usr.bin/dig/lib/isc/buffer.c
116
isc__buffer_activeregion(isc_buffer_t *b, isc_region_t *r) {
usr.bin/dig/lib/isc/buffer.c
123
ISC__BUFFER_ACTIVEREGION(b, r);
usr.bin/dig/lib/isc/buffer.c
127
isc__buffer_setactive(isc_buffer_t *b, unsigned int n) {
usr.bin/dig/lib/isc/buffer.c
132
REQUIRE(b->current + n <= b->used);
usr.bin/dig/lib/isc/buffer.c
134
ISC__BUFFER_SETACTIVE(b, n);
usr.bin/dig/lib/isc/buffer.c
138
isc__buffer_first(isc_buffer_t *b) {
usr.bin/dig/lib/isc/buffer.c
143
ISC__BUFFER_FIRST(b);
usr.bin/dig/lib/isc/buffer.c
147
isc__buffer_forward(isc_buffer_t *b, unsigned int n) {
usr.bin/dig/lib/isc/buffer.c
152
REQUIRE(b->current + n <= b->used);
usr.bin/dig/lib/isc/buffer.c
154
ISC__BUFFER_FORWARD(b, n);
usr.bin/dig/lib/isc/buffer.c
158
isc_buffer_compact(isc_buffer_t *b) {
usr.bin/dig/lib/isc/buffer.c
168
src = isc_buffer_current(b);
usr.bin/dig/lib/isc/buffer.c
169
length = isc_buffer_remaininglength(b);
usr.bin/dig/lib/isc/buffer.c
170
(void)memmove(b->base, src, (size_t)length);
usr.bin/dig/lib/isc/buffer.c
172
if (b->active > b->current)
usr.bin/dig/lib/isc/buffer.c
173
b->active -= b->current;
usr.bin/dig/lib/isc/buffer.c
175
b->active = 0;
usr.bin/dig/lib/isc/buffer.c
176
b->current = 0;
usr.bin/dig/lib/isc/buffer.c
177
b->used = length;
usr.bin/dig/lib/isc/buffer.c
181
isc_buffer_getuint8(isc_buffer_t *b) {
usr.bin/dig/lib/isc/buffer.c
189
REQUIRE(b->used - b->current >= 1);
usr.bin/dig/lib/isc/buffer.c
191
cp = isc_buffer_current(b);
usr.bin/dig/lib/isc/buffer.c
192
b->current += 1;
usr.bin/dig/lib/isc/buffer.c
199
isc__buffer_putuint8(isc_buffer_t *b, uint8_t val) {
usr.bin/dig/lib/isc/buffer.c
200
REQUIRE(b->used + 1 <= b->length);
usr.bin/dig/lib/isc/buffer.c
202
ISC__BUFFER_PUTUINT8(b, val);
usr.bin/dig/lib/isc/buffer.c
206
isc_buffer_getuint16(isc_buffer_t *b) {
usr.bin/dig/lib/isc/buffer.c
215
REQUIRE(b->used - b->current >= 2);
usr.bin/dig/lib/isc/buffer.c
217
cp = isc_buffer_current(b);
usr.bin/dig/lib/isc/buffer.c
218
b->current += 2;
usr.bin/dig/lib/isc/buffer.c
226
isc__buffer_putuint16(isc_buffer_t *b, uint16_t val) {
usr.bin/dig/lib/isc/buffer.c
227
REQUIRE(b->used + 2 <= b->length);
usr.bin/dig/lib/isc/buffer.c
229
ISC__BUFFER_PUTUINT16(b, val);
usr.bin/dig/lib/isc/buffer.c
233
isc_buffer_getuint32(isc_buffer_t *b) {
usr.bin/dig/lib/isc/buffer.c
242
REQUIRE(b->used - b->current >= 4);
usr.bin/dig/lib/isc/buffer.c
244
cp = isc_buffer_current(b);
usr.bin/dig/lib/isc/buffer.c
245
b->current += 4;
usr.bin/dig/lib/isc/buffer.c
255
isc__buffer_putuint32(isc_buffer_t *b, uint32_t val) {
usr.bin/dig/lib/isc/buffer.c
256
REQUIRE(b->used + 4 <= b->length);
usr.bin/dig/lib/isc/buffer.c
258
ISC__BUFFER_PUTUINT32(b, val);
usr.bin/dig/lib/isc/buffer.c
262
isc__buffer_putuint48(isc_buffer_t *b, uint64_t val) {
usr.bin/dig/lib/isc/buffer.c
266
REQUIRE(b->used + 6 <= b->length);
usr.bin/dig/lib/isc/buffer.c
270
ISC__BUFFER_PUTUINT16(b, valhi);
usr.bin/dig/lib/isc/buffer.c
271
ISC__BUFFER_PUTUINT32(b, vallo);
usr.bin/dig/lib/isc/buffer.c
275
isc__buffer_putmem(isc_buffer_t *b, const unsigned char *base,
usr.bin/dig/lib/isc/buffer.c
278
REQUIRE(b->used + length <= b->length);
usr.bin/dig/lib/isc/buffer.c
280
ISC__BUFFER_PUTMEM(b, base, length);
usr.bin/dig/lib/isc/buffer.c
284
isc__buffer_putstr(isc_buffer_t *b, const char *source) {
usr.bin/dig/lib/isc/buffer.c
29
isc__buffer_init(isc_buffer_t *b, void *base, unsigned int length) {
usr.bin/dig/lib/isc/buffer.c
295
REQUIRE(l <= isc_buffer_availablelength(b));
usr.bin/dig/lib/isc/buffer.c
297
cp = isc_buffer_used(b);
usr.bin/dig/lib/isc/buffer.c
299
b->used += l;
usr.bin/dig/lib/isc/buffer.c
303
isc_buffer_copyregion(isc_buffer_t *b, const isc_region_t *r) {
usr.bin/dig/lib/isc/buffer.c
312
base = isc_buffer_used(b);
usr.bin/dig/lib/isc/buffer.c
313
available = isc_buffer_availablelength(b);
usr.bin/dig/lib/isc/buffer.c
317
b->used += r->length;
usr.bin/dig/lib/isc/buffer.c
35
REQUIRE(b != NULL);
usr.bin/dig/lib/isc/buffer.c
37
ISC__BUFFER_INIT(b, base, length);
usr.bin/dig/lib/isc/buffer.c
41
isc__buffer_invalidate(isc_buffer_t *b) {
usr.bin/dig/lib/isc/buffer.c
46
REQUIRE(!ISC_LINK_LINKED(b, link));
usr.bin/dig/lib/isc/buffer.c
48
ISC__BUFFER_INVALIDATE(b);
usr.bin/dig/lib/isc/buffer.c
52
isc__buffer_usedregion(isc_buffer_t *b, isc_region_t *r) {
usr.bin/dig/lib/isc/buffer.c
59
ISC__BUFFER_USEDREGION(b, r);
usr.bin/dig/lib/isc/buffer.c
63
isc__buffer_availableregion(isc_buffer_t *b, isc_region_t *r) {
usr.bin/dig/lib/isc/buffer.c
70
ISC__BUFFER_AVAILABLEREGION(b, r);
usr.bin/dig/lib/isc/buffer.c
74
isc__buffer_add(isc_buffer_t *b, unsigned int n) {
usr.bin/dig/lib/isc/buffer.c
79
REQUIRE(b->used + n <= b->length);
usr.bin/dig/lib/isc/buffer.c
81
ISC__BUFFER_ADD(b, n);
usr.bin/dig/lib/isc/buffer.c
85
isc__buffer_subtract(isc_buffer_t *b, unsigned int n) {
usr.bin/dig/lib/isc/buffer.c
90
REQUIRE(b->used >= n);
usr.bin/dig/lib/isc/buffer.c
92
ISC__BUFFER_SUBTRACT(b, n);
usr.bin/dig/lib/isc/buffer.c
96
isc__buffer_clear(isc_buffer_t *b) {
usr.bin/dig/lib/isc/include/isc/buffer.h
124
#define isc_buffer_base(b) ((void *)(b)->base) /*a*/
usr.bin/dig/lib/isc/include/isc/buffer.h
125
#define isc_buffer_current(b) \
usr.bin/dig/lib/isc/include/isc/buffer.h
126
((void *)((unsigned char *)(b)->base + (b)->current)) /*b*/
usr.bin/dig/lib/isc/include/isc/buffer.h
127
#define isc_buffer_active(b) \
usr.bin/dig/lib/isc/include/isc/buffer.h
128
((void *)((unsigned char *)(b)->base + (b)->active)) /*c*/
usr.bin/dig/lib/isc/include/isc/buffer.h
129
#define isc_buffer_used(b) \
usr.bin/dig/lib/isc/include/isc/buffer.h
130
((void *)((unsigned char *)(b)->base + (b)->used)) /*d*/
usr.bin/dig/lib/isc/include/isc/buffer.h
131
#define isc_buffer_length(b) ((b)->length) /*e*/
usr.bin/dig/lib/isc/include/isc/buffer.h
138
#define isc_buffer_usedlength(b) ((b)->used) /* d-a */
usr.bin/dig/lib/isc/include/isc/buffer.h
139
#define isc_buffer_consumedlength(b) ((b)->current) /* b-a */
usr.bin/dig/lib/isc/include/isc/buffer.h
140
#define isc_buffer_remaininglength(b) ((b)->used - (b)->current) /* d-b */
usr.bin/dig/lib/isc/include/isc/buffer.h
141
#define isc_buffer_activelength(b) ((b)->active - (b)->current) /* c-b */
usr.bin/dig/lib/isc/include/isc/buffer.h
142
#define isc_buffer_availablelength(b) ((b)->length - (b)->used) /* e-d */
usr.bin/dig/lib/isc/include/isc/buffer.h
206
isc__buffer_init(isc_buffer_t *b, void *base, unsigned int length);
usr.bin/dig/lib/isc/include/isc/buffer.h
219
isc__buffer_invalidate(isc_buffer_t *b);
usr.bin/dig/lib/isc/include/isc/buffer.h
232
isc__buffer_usedregion(isc_buffer_t *b, isc_region_t *r);
usr.bin/dig/lib/isc/include/isc/buffer.h
244
isc__buffer_availableregion(isc_buffer_t *b, isc_region_t *r);
usr.bin/dig/lib/isc/include/isc/buffer.h
256
isc__buffer_add(isc_buffer_t *b, unsigned int n);
usr.bin/dig/lib/isc/include/isc/buffer.h
269
isc__buffer_subtract(isc_buffer_t *b, unsigned int n);
usr.bin/dig/lib/isc/include/isc/buffer.h
282
isc__buffer_clear(isc_buffer_t *b);
usr.bin/dig/lib/isc/include/isc/buffer.h
297
isc__buffer_remainingregion(isc_buffer_t *b, isc_region_t *r);
usr.bin/dig/lib/isc/include/isc/buffer.h
309
isc__buffer_activeregion(isc_buffer_t *b, isc_region_t *r);
usr.bin/dig/lib/isc/include/isc/buffer.h
321
isc__buffer_setactive(isc_buffer_t *b, unsigned int n);
usr.bin/dig/lib/isc/include/isc/buffer.h
333
isc__buffer_first(isc_buffer_t *b);
usr.bin/dig/lib/isc/include/isc/buffer.h
348
isc__buffer_forward(isc_buffer_t *b, unsigned int n);
usr.bin/dig/lib/isc/include/isc/buffer.h
361
isc_buffer_compact(isc_buffer_t *b);
usr.bin/dig/lib/isc/include/isc/buffer.h
381
isc_buffer_getuint8(isc_buffer_t *b);
usr.bin/dig/lib/isc/include/isc/buffer.h
401
isc__buffer_putuint8(isc_buffer_t *b, uint8_t val);
usr.bin/dig/lib/isc/include/isc/buffer.h
415
isc_buffer_getuint16(isc_buffer_t *b);
usr.bin/dig/lib/isc/include/isc/buffer.h
436
isc__buffer_putuint16(isc_buffer_t *b, uint16_t val);
usr.bin/dig/lib/isc/include/isc/buffer.h
451
isc_buffer_getuint32(isc_buffer_t *b);
usr.bin/dig/lib/isc/include/isc/buffer.h
472
isc__buffer_putuint32(isc_buffer_t *b, uint32_t val);
usr.bin/dig/lib/isc/include/isc/buffer.h
487
isc__buffer_putuint48(isc_buffer_t *b, uint64_t val);
usr.bin/dig/lib/isc/include/isc/buffer.h
502
isc__buffer_putmem(isc_buffer_t *b, const unsigned char *base,
usr.bin/dig/lib/isc/include/isc/buffer.h
515
isc__buffer_putstr(isc_buffer_t *b, const char *source);
usr.bin/dig/lib/isc/include/isc/buffer.h
528
isc_buffer_copyregion(isc_buffer_t *b, const isc_region_t *r);
usr.bin/dig/lib/isc/include/isc/serial.h
34
isc_serial_gt(uint32_t a, uint32_t b);
usr.bin/dig/lib/isc/include/isc/serial.h
40
isc_serial_ge(uint32_t a, uint32_t b);
usr.bin/dig/lib/isc/include/isc/sockaddr.h
41
isc_sockaddr_compare(const struct sockaddr_storage *a, const struct sockaddr_storage *b,
usr.bin/dig/lib/isc/include/isc/sockaddr.h
51
isc_sockaddr_equal(const struct sockaddr_storage *a, const struct sockaddr_storage *b);
usr.bin/dig/lib/isc/include/isc/sockaddr.h
57
isc_sockaddr_eqaddr(const struct sockaddr_storage *a, const struct sockaddr_storage *b);
usr.bin/dig/lib/isc/include/isc/util.h
108
#define INSERTBEFORE(li, b, e, ln) ISC_LIST_INSERTBEFORE(li, b, e, ln)
usr.bin/dig/lib/isc/include/isc/util.h
55
#define ISC_MAX(a, b) ((a) > (b) ? (a) : (b))
usr.bin/dig/lib/isc/include/isc/util.h
56
#define ISC_MIN(a, b) ((a) < (b) ? (a) : (b))
usr.bin/dig/lib/isc/serial.c
24
isc_serial_gt(uint32_t a, uint32_t b) {
usr.bin/dig/lib/isc/serial.c
25
return (((int32_t)(a - b) > 0) ? 1 : 0);
usr.bin/dig/lib/isc/serial.c
29
isc_serial_ge(uint32_t a, uint32_t b) {
usr.bin/dig/lib/isc/serial.c
30
return ((a == b) ? 1 : isc_serial_gt(a, b));
usr.bin/dig/lib/isc/sockaddr.c
33
isc_sockaddr_equal(const struct sockaddr_storage *a, const struct sockaddr_storage *b) {
usr.bin/dig/lib/isc/sockaddr.c
34
return (isc_sockaddr_compare(a, b, ISC_SOCKADDR_CMPADDR|
usr.bin/dig/lib/isc/sockaddr.c
40
isc_sockaddr_eqaddr(const struct sockaddr_storage *a, const struct sockaddr_storage *b) {
usr.bin/dig/lib/isc/sockaddr.c
41
return (isc_sockaddr_compare(a, b, ISC_SOCKADDR_CMPADDR|
usr.bin/dig/lib/isc/sockaddr.c
46
isc_sockaddr_compare(const struct sockaddr_storage *a, const struct sockaddr_storage *b,
usr.bin/dig/lib/isc/sockaddr.c
52
REQUIRE(a != NULL && b != NULL);
usr.bin/dig/lib/isc/sockaddr.c
54
if (a->ss_len != b->ss_len)
usr.bin/dig/lib/isc/sockaddr.c
62
if (a->ss_family != b->ss_family)
usr.bin/dig/lib/isc/sockaddr.c
67
sin_b = (struct sockaddr_in *) b;
usr.bin/dig/lib/isc/sockaddr.c
78
sin6_b = (struct sockaddr_in6 *) b;
usr.bin/dig/lib/isc/sockaddr.c
99
if (memcmp(a, b, a->ss_len) != 0)
usr.bin/dig/lib/isc/symtab.c
132
#define FIND(s, k, t, b, e) \
usr.bin/dig/lib/isc/symtab.c
133
b = hash((k), (s)->case_sensitive) % (s)->size; \
usr.bin/dig/lib/isc/symtab.c
135
for (e = HEAD((s)->table[b]); e != NULL; e = NEXT(e, link)) { \
usr.bin/dig/lib/isc/symtab.c
141
for (e = HEAD((s)->table[b]); e != NULL; e = NEXT(e, link)) { \
usr.bin/dig/lib/isc/unix/socket.c
2268
#define ERROR_MATCH(a, b) case a: dev->result = b; goto err_exit;
usr.bin/dig/lib/isc/unix/socket.c
2402
#define ERROR_MATCH(a, b) case a: dev->result = b; break;
usr.bin/dig/nslookup.c
185
isc_buffer_t b;
usr.bin/dig/nslookup.c
187
isc_buffer_init(&b, text, sizeof(text));
usr.bin/dig/nslookup.c
188
result = dns_rdata_totext(rdata, NULL, &b);
usr.bin/dig/nslookup.c
190
printf("Address: %.*s\n", (int)isc_buffer_usedlength(&b),
usr.bin/dig/nslookup.c
191
(char *)isc_buffer_base(&b));
usr.bin/dig/nslookup.c
196
isc_buffer_t *b = NULL;
usr.bin/dig/nslookup.c
206
result = isc_buffer_allocate(&b, size);
usr.bin/dig/nslookup.c
209
result = dns_rdata_totext(rdata, NULL, b);
usr.bin/dig/nslookup.c
211
printf("%.*s\n", (int)isc_buffer_usedlength(b),
usr.bin/dig/nslookup.c
212
(char *)isc_buffer_base(b));
usr.bin/dig/nslookup.c
216
isc_buffer_free(&b);
usr.bin/doas/env.c
47
envcmp(struct envnode *a, struct envnode *b)
usr.bin/doas/env.c
49
return strcmp(a->key, b->key);
usr.bin/file/magic-test.c
124
magic_one_eq(char a, char b, int cflag)
usr.bin/file/magic-test.c
126
if (a == b)
usr.bin/file/magic-test.c
1272
uint8_t b;
usr.bin/file/magic-test.c
128
if (cflag && islower((u_char)b) && tolower((u_char)a) == (u_char)b)
usr.bin/file/magic-test.c
1292
if (magic_copy_from(ms, next, &b, sizeof b) != 0)
usr.bin/file/magic-test.c
1294
wanted = b;
usr.bin/find/function.c
57
#define COMPARE(a, b) { \
usr.bin/find/function.c
60
return (a == b); \
usr.bin/find/function.c
62
return (a < b); \
usr.bin/find/function.c
64
return (a > b); \
usr.bin/find/option.c
154
typecompare(const void *a, const void *b)
usr.bin/find/option.c
156
return (strcmp(((OPTION *)a)->name, ((OPTION *)b)->name));
usr.bin/fstat/fstat.c
88
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.bin/ftp/complete.c
56
comparstr(const void *a, const void *b)
usr.bin/ftp/complete.c
58
return (strcmp(*(char **)a, *(char **)b));
usr.bin/ftp/ftp.c
1581
#define UC(b) (((int)b)&0xff)
usr.bin/ftp/util.c
92
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/ftp/util.c
93
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.bin/gprof/gprof.c
528
min(unsigned long a, unsigned long b)
usr.bin/gprof/gprof.c
530
if (a<b)
usr.bin/gprof/gprof.c
532
return(b);
usr.bin/gprof/gprof.c
536
max(unsigned long a, unsigned long b)
usr.bin/gprof/gprof.c
538
if (a>b)
usr.bin/gprof/gprof.c
540
return(b);
usr.bin/hexdump/display.c
45
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/hexdump/hexdump.c
40
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/kstat/kstat.c
107
const struct kstat_req *b = &eb->kstat;
usr.bin/kstat/kstat.c
110
rv = strncmp(a->ks_provider, b->ks_provider, sizeof(a->ks_provider));
usr.bin/kstat/kstat.c
113
if (a->ks_instance > b->ks_instance)
usr.bin/kstat/kstat.c
115
if (a->ks_instance < b->ks_instance)
usr.bin/kstat/kstat.c
118
rv = strncmp(a->ks_name, b->ks_name, sizeof(a->ks_name));
usr.bin/kstat/kstat.c
121
if (a->ks_unit > b->ks_unit)
usr.bin/kstat/kstat.c
123
if (a->ks_unit < b->ks_unit)
usr.bin/ldap/aldap.c
458
struct ber b;
usr.bin/ldap/aldap.c
462
b.br_wbuf = NULL;
usr.bin/ldap/aldap.c
464
ober_set_readbuf(&b, encoded, control->be_next->be_len);
usr.bin/ldap/aldap.c
465
elm = ober_read_elements(&b, NULL);
usr.bin/ldap/aldap.c
470
ober_free(&b);
usr.bin/ldap/aldap.c
480
ober_free(&b);
usr.bin/ldap/aldap.c
487
ober_free(&b);
usr.bin/ldap/aldap.c
583
struct ber_element *b;
usr.bin/ldap/aldap.c
591
&key, &b) != 0)
usr.bin/ldap/aldap.c
596
if ((ret = aldap_get_stringset(b)) == NULL)
usr.bin/ldap/aldap.c
648
struct ber_element *a, *b;
usr.bin/ldap/aldap.c
662
if (ober_scanf_elements(a, "{s(e", &descr, &b) != 0)
usr.bin/ldap/aldap.c
670
if ((ret = aldap_get_stringset(b)) == NULL)
usr.bin/ldap/ldapclient.c
59
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/less/search.c
21
#define MINPOS(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/less/search.c
22
#define MAXPOS(a, b) (((a) > (b)) ? (a) : (b))
usr.bin/lex/FlexLexer.h
126
void yy_delete_buffer( struct yy_buffer_state* b );
usr.bin/lex/FlexLexer.h
145
void yy_init_buffer( struct yy_buffer_state* b, FLEX_STD istream* s );
usr.bin/lex/FlexLexer.h
146
void yy_flush_buffer( struct yy_buffer_state* b );
usr.bin/lex/FlexLexer.h
76
virtual void yy_delete_buffer( struct yy_buffer_state* b ) = 0;
usr.bin/lex/ccl.c
126
ccl_set_diff(int a, int b)
usr.bin/lex/ccl.c
139
if (ccl_contains(a, ch) && !ccl_contains(b, ch))
usr.bin/lex/ccl.c
148
dump_cclp(stderr, b);
usr.bin/lex/ccl.c
158
ccl_set_union(int a, int b)
usr.bin/lex/ccl.c
170
for (i = 0; i < ccllen[b]; ++i)
usr.bin/lex/ccl.c
171
ccladd(d, ccltbl[cclmap[b] + i]);
usr.bin/lex/ccl.c
175
fprintf(stderr, "ccl_set_union (%d + %d = %d", a, b, d);
usr.bin/lex/ccl.c
179
dump_cclp(stderr, b);
usr.bin/lex/flexdef.h
703
extern int ccl_set_diff (int a, int b); /* set difference of two ccls. */
usr.bin/lex/flexdef.h
704
extern int ccl_set_union (int a, int b); /* set union of two ccls. */
usr.bin/lex/main.c
1711
char *b, *e = 0;
usr.bin/lex/main.c
1713
b = path;
usr.bin/lex/main.c
1714
for (b = path; *path; path++)
usr.bin/lex/main.c
1716
b = path + 1;
usr.bin/lex/main.c
1720
if (strip_ext && e && e > b)
usr.bin/lex/main.c
1722
return b;
usr.bin/lex/misc.c
198
intcmp(const void *a, const void *b)
usr.bin/lex/misc.c
200
return *(const int *) a - *(const int *) b;
usr.bin/lex/misc.c
283
cclcmp(const void *a, const void *b)
usr.bin/lex/misc.c
287
else if (!*(const u_char *) b)
usr.bin/lex/misc.c
290
return *(const u_char *) a - *(const u_char *) b;
usr.bin/lex/scanopt.c
43
#define STRCASECMP(a,b) strcasecmp(a,b)
usr.bin/lex/scanopt.c
47
static int STRCASECMP (const char *a, const char *b)
usr.bin/lex/scanopt.c
49
while (tolower ((u_char)*a++) == tolower ((u_char)*b++)) ;
usr.bin/lex/scanopt.c
50
return b - a;
usr.bin/m4/stdd.h
42
#define max(a,b) ((a) > (b)? (a): (b))
usr.bin/m4/stdd.h
43
#define min(a,b) ((a) < (b)? (a): (b))
usr.bin/m4/stdd.h
51
#define STREQ(a, b) ((a)[0] == (b)[0] && strcmp(a, b) == 0)
usr.bin/m4/stdd.h
52
#define STREQN(a, b, n) ((a)[0] == (b)[0] && strncmp(a, b, n) == 0)
usr.bin/mail/cmd3.c
524
diction(const void *a, const void *b)
usr.bin/mail/cmd3.c
527
return(strcmp(*(char **)a, *(char **)b));
usr.bin/mail/def.h
70
#define equal(a, b) (strcmp(a,b)==0)/* A nice function to string compare */
usr.bin/make/buf.c
89
#define DO_STAT_BUF(a, b)
usr.bin/make/buf.h
129
#define Buf_AddSpace(b) Buf_AddChar((b), ' ')
usr.bin/make/buf.h
132
#define Buf_AddString(b, s) Buf_AddChars((b), strlen(s), (s))
usr.bin/make/buf.h
135
#define Buf_Addi(b, s, e) Buf_AddChars((b), (e) - (s), (s))
usr.bin/make/buf.h
138
#define Buf_puts(b, s) Buf_AddChars((b), strlen(s), (s))
usr.bin/make/defines.h
95
#define CONCAT(a,b) a##b
usr.bin/make/dump.c
49
compare_names(const void *a, const void *b)
usr.bin/make/dump.c
52
const char **pb = (const char **)b;
usr.bin/make/suff.c
1509
compare_order(const void *a, const void *b)
usr.bin/make/suff.c
1512
const Suff **pb = (const Suff **)b;
usr.bin/make/suff.c
967
find_suffix_as_suffix(Lst l, const char *b, const char *e)
usr.bin/make/suff.c
974
if (suffix_is_suffix(s, b, e))
usr.bin/make/targequiv.c
285
names_match_with_dir(const char *a, const char *b, char *ra,
usr.bin/make/targequiv.c
299
rb = relative_reduce(dir, b);
usr.bin/make/targequiv.c
317
names_match_with_dirs(const char *a, const char *b, char *ra,
usr.bin/make/targequiv.c
331
rb = relative_reduce2(dir1, dir2, b);
usr.bin/make/targequiv.c
349
names_match(GNode *a, GNode *b)
usr.bin/make/targequiv.c
356
if (b->name[0] == '/')
usr.bin/make/targequiv.c
357
rb = absolute_reduce(b->name);
usr.bin/make/targequiv.c
364
r = names_match_with_dir(a->name, b->name, ra, rb, objdir);
usr.bin/make/targequiv.c
366
r = names_match_with_dir(a->name, b->name, ra, rb,
usr.bin/make/targequiv.c
377
b->name, ra, rb, p);
usr.bin/make/targequiv.c
382
b->name, ra, rb, p, objdir);
usr.bin/make/targequiv.c
386
b->name, ra, rb, p, curdir);
usr.bin/make/varmodifiers.c
859
check_empty(const char **p, SymTable *ctxt UNUSED, bool b UNUSED, int endc)
usr.bin/make/varmodifiers.c
870
check_quote(const char **p, SymTable *ctxt UNUSED, bool b UNUSED, int endc)
usr.bin/make/varmodifiers.c
888
check_shcmd(const char **p, SymTable *ctxt UNUSED, bool b UNUSED, int endc)
usr.bin/make/varmodifiers.c
911
get_stringarg(const char **p, SymTable *ctxt UNUSED, bool b UNUSED, int endc)
usr.bin/mandoc/eqn.c
545
struct eqn_box *b, *newb;
usr.bin/mandoc/eqn.c
548
b = parent->last;
usr.bin/mandoc/eqn.c
552
parent->last = b->prev;
usr.bin/mandoc/eqn.c
553
b->prev = NULL;
usr.bin/mandoc/eqn.c
558
newb->first = newb->last = b;
usr.bin/mandoc/eqn.c
560
b->parent = newb;
usr.bin/mandoc/mandocdb.c
526
fts_compare(const FTSENT **a, const FTSENT **b)
usr.bin/mandoc/mandocdb.c
528
return -strcmp((*a)->fts_name, (*b)->fts_name);
usr.bin/mandoc/mdoc_html.c
43
#define MIN(a,b) ((/*CONSTCOND*/(a)<(b))?(a):(b))
usr.bin/mandoc/preconv.c
110
preconv_cue(const struct buf *b, size_t offset)
usr.bin/mandoc/preconv.c
115
ln = b->buf + offset;
usr.bin/mandoc/preconv.c
116
sz = b->sz - offset;
usr.bin/netstat/inet.c
104
kf_comp(const void *a, const void *b)
usr.bin/netstat/inet.c
106
const struct kinfo_file *ka = a, *kb = b;
usr.bin/nm/nm.c
846
struct xnlist * const *a = a0, * const *b = b0;
usr.bin/nm/nm.c
848
return(strcmp((*a)->nl.n_un.n_name, (*b)->nl.n_un.n_name));
usr.bin/nm/nm.c
854
struct xnlist * const *a = a0, * const *b = b0;
usr.bin/nm/nm.c
856
return(strcmp((*b)->nl.n_un.n_name, (*a)->nl.n_un.n_name));
usr.bin/nm/nm.c
862
struct xnlist * const *a = a0, * const *b = b0;
usr.bin/nm/nm.c
865
if (SYMBOL_TYPE((*b)->nl.n_type) == N_UNDF)
usr.bin/nm/nm.c
869
else if (SYMBOL_TYPE((*b)->nl.n_type) == N_UNDF)
usr.bin/nm/nm.c
872
if ((*a)->nl.n_value == (*b)->nl.n_value)
usr.bin/nm/nm.c
874
return((*b)->nl.n_value > (*a)->nl.n_value ? 1 : -1);
usr.bin/nm/nm.c
876
if ((*a)->nl.n_value == (*b)->nl.n_value)
usr.bin/nm/nm.c
878
return((*a)->nl.n_value > (*b)->nl.n_value ? 1 : -1);
usr.bin/openssl/apps.c
1089
index_serial_cmp(const OPENSSL_CSTRING *a, const OPENSSL_CSTRING *b)
usr.bin/openssl/apps.c
1095
for (bb = b[DB_serial]; *bb == '0'; bb++)
usr.bin/openssl/apps.c
1113
index_name_cmp(const OPENSSL_CSTRING *a, const OPENSSL_CSTRING *b)
usr.bin/openssl/apps.c
1115
return (strcmp(a[DB_name], b[DB_name]));
usr.bin/openssl/apps.c
1263
rand_serial(BIGNUM *b, ASN1_INTEGER *ai)
usr.bin/openssl/apps.c
1268
if (b)
usr.bin/openssl/apps.c
1269
btmp = b;
usr.bin/openssl/apps.c
1284
if (b != btmp)
usr.bin/openssl/apps.h
221
int rand_serial(BIGNUM *b, ASN1_INTEGER *ai);
usr.bin/openssl/apps.h
228
#define index_name_cmp_noconst(a, b) \
usr.bin/openssl/apps.h
230
(const OPENSSL_CSTRING *)CHECKED_PTR_OF(OPENSSL_STRING, b))
usr.bin/openssl/apps.h
231
int index_name_cmp(const OPENSSL_CSTRING *a, const OPENSSL_CSTRING *b);
usr.bin/openssl/certhash.c
118
hashinfo_compare(const void *a, const void *b)
usr.bin/openssl/certhash.c
121
struct hashinfo *hib = *(struct hashinfo **)b;
usr.bin/openssl/genpkey.c
404
BIO *b = EVP_PKEY_CTX_get_app_data(ctx);
usr.bin/openssl/genpkey.c
415
BIO_write(b, &c, 1);
usr.bin/openssl/genpkey.c
416
(void) BIO_flush(b);
usr.bin/openssl/openssl.c
692
function_cmp(const FUNCTION * a, const FUNCTION * b)
usr.bin/openssl/openssl.c
694
return strncmp(a->name, b->name, 8);
usr.bin/openssl/req.c
126
static int ext_name_cmp(const OPENSSL_STRING *a, const OPENSSL_STRING *b);
usr.bin/openssl/req.c
1719
BIO *b = EVP_PKEY_CTX_get_app_data(ctx);
usr.bin/openssl/req.c
1730
BIO_write(b, &c, 1);
usr.bin/openssl/req.c
1731
(void) BIO_flush(b);
usr.bin/openssl/req.c
1829
ext_name_cmp(const OPENSSL_STRING *a, const OPENSSL_STRING *b)
usr.bin/openssl/req.c
1831
return strcmp((const char *)a, (const char *)b);
usr.bin/patch/patch.c
1120
similar(const char *a, const char *b, ssize_t len)
usr.bin/patch/patch.c
1123
if (isspace((unsigned char)*b)) { /* whitespace (or \n) to match? */
usr.bin/patch/patch.c
1126
while (len && isspace((unsigned char)*b) && *b != '\n')
usr.bin/patch/patch.c
1127
b++, len--; /* skip pattern whitespace */
usr.bin/patch/patch.c
1130
if (*a == '\n' || *b == '\n')
usr.bin/patch/patch.c
1131
return (*a == *b); /* should end in sync */
usr.bin/patch/patch.c
1132
} else if (*a++ != *b++) /* match non-whitespace chars */
usr.bin/pkgconf/cli/getopt_long.c
133
gcd(int a, int b)
usr.bin/pkgconf/cli/getopt_long.c
137
c = a % b;
usr.bin/pkgconf/cli/getopt_long.c
139
a = b;
usr.bin/pkgconf/cli/getopt_long.c
140
b = c;
usr.bin/pkgconf/cli/getopt_long.c
141
c = a % b;
usr.bin/pkgconf/cli/getopt_long.c
144
return (b);
usr.bin/pkgconf/libpkgconf/cache.c
35
cache_member_cmp(const void *a, const void *b)
usr.bin/pkgconf/libpkgconf/cache.c
38
const pkgconf_pkg_t *pkg = *(void **) b;
usr.bin/pkgconf/libpkgconf/cache.c
44
cache_member_sort_cmp(const void *a, const void *b)
usr.bin/pkgconf/libpkgconf/cache.c
47
const pkgconf_pkg_t *pkgB = *(void **) b;
usr.bin/pkgconf/libpkgconf/libpkgconf.h
350
PKGCONF_API int pkgconf_compare_version(const char *a, const char *b);
usr.bin/pkgconf/libpkgconf/pkg.c
1138
typedef bool (*pkgconf_vercmp_res_func_t)(const char *a, const char *b);
usr.bin/pkgconf/libpkgconf/pkg.c
1161
static bool pkgconf_pkg_comparator_lt(const char *a, const char *b)
usr.bin/pkgconf/libpkgconf/pkg.c
1163
return (pkgconf_compare_version(a, b) < 0);
usr.bin/pkgconf/libpkgconf/pkg.c
1166
static bool pkgconf_pkg_comparator_gt(const char *a, const char *b)
usr.bin/pkgconf/libpkgconf/pkg.c
1168
return (pkgconf_compare_version(a, b) > 0);
usr.bin/pkgconf/libpkgconf/pkg.c
1171
static bool pkgconf_pkg_comparator_lte(const char *a, const char *b)
usr.bin/pkgconf/libpkgconf/pkg.c
1173
return (pkgconf_compare_version(a, b) <= 0);
usr.bin/pkgconf/libpkgconf/pkg.c
1176
static bool pkgconf_pkg_comparator_gte(const char *a, const char *b)
usr.bin/pkgconf/libpkgconf/pkg.c
1178
return (pkgconf_compare_version(a, b) >= 0);
usr.bin/pkgconf/libpkgconf/pkg.c
1181
static bool pkgconf_pkg_comparator_eq(const char *a, const char *b)
usr.bin/pkgconf/libpkgconf/pkg.c
1183
return (pkgconf_compare_version(a, b) == 0);
usr.bin/pkgconf/libpkgconf/pkg.c
1186
static bool pkgconf_pkg_comparator_ne(const char *a, const char *b)
usr.bin/pkgconf/libpkgconf/pkg.c
1188
return (pkgconf_compare_version(a, b) != 0);
usr.bin/pkgconf/libpkgconf/pkg.c
1191
static bool pkgconf_pkg_comparator_any(const char *a, const char *b)
usr.bin/pkgconf/libpkgconf/pkg.c
1194
(void) b;
usr.bin/pkgconf/libpkgconf/pkg.c
1199
static bool pkgconf_pkg_comparator_none(const char *a, const char *b)
usr.bin/pkgconf/libpkgconf/pkg.c
1202
(void) b;
usr.bin/pkgconf/libpkgconf/pkg.c
917
pkgconf_compare_version(const char *a, const char *b)
usr.bin/pkgconf/libpkgconf/pkg.c
930
if (b == NULL)
usr.bin/pkgconf/libpkgconf/pkg.c
933
if (!strcasecmp(a, b))
usr.bin/pkgconf/libpkgconf/pkg.c
937
pkgconf_strlcpy(buf2, b, sizeof buf2);
usr.bin/rcs/buf.c
139
buf_free(BUF *b)
usr.bin/rcs/buf.c
141
if (b == NULL)
usr.bin/rcs/buf.c
143
free(b->cb_buf);
usr.bin/rcs/buf.c
144
free(b);
usr.bin/rcs/buf.c
153
buf_release(BUF *b)
usr.bin/rcs/buf.c
157
tmp = b->cb_buf;
usr.bin/rcs/buf.c
158
free(b);
usr.bin/rcs/buf.c
163
buf_get(BUF *b)
usr.bin/rcs/buf.c
165
return (b->cb_buf);
usr.bin/rcs/buf.c
172
buf_empty(BUF *b)
usr.bin/rcs/buf.c
174
memset(b->cb_buf, 0, b->cb_size);
usr.bin/rcs/buf.c
175
b->cb_len = 0;
usr.bin/rcs/buf.c
182
buf_putc(BUF *b, int c)
usr.bin/rcs/buf.c
186
if (SIZE_LEFT(b) == 0)
usr.bin/rcs/buf.c
187
buf_grow(b, BUF_INCR);
usr.bin/rcs/buf.c
188
bp = b->cb_buf + b->cb_len;
usr.bin/rcs/buf.c
190
b->cb_len++;
usr.bin/rcs/buf.c
197
buf_puts(BUF *b, const char *str)
usr.bin/rcs/buf.c
199
buf_append(b, str, strlen(str));
usr.bin/rcs/buf.c
206
buf_getc(BUF *b, size_t pos)
usr.bin/rcs/buf.c
208
return (b->cb_buf[pos]);
usr.bin/rcs/buf.c
218
buf_append(BUF *b, const void *data, size_t len)
usr.bin/rcs/buf.c
223
left = SIZE_LEFT(b);
usr.bin/rcs/buf.c
227
buf_grow(b, len - left);
usr.bin/rcs/buf.c
228
bp = b->cb_buf + b->cb_len;
usr.bin/rcs/buf.c
230
b->cb_len += rlen;
usr.bin/rcs/buf.c
239
buf_len(BUF *b)
usr.bin/rcs/buf.c
241
return (b->cb_len);
usr.bin/rcs/buf.c
248
buf_write_fd(BUF *b, int fd)
usr.bin/rcs/buf.c
254
len = b->cb_len;
usr.bin/rcs/buf.c
255
bp = b->cb_buf;
usr.bin/rcs/buf.c
277
buf_write(BUF *b, const char *path, mode_t mode)
usr.bin/rcs/buf.c
288
if (buf_write_fd(b, fd) == -1) {
usr.bin/rcs/buf.c
307
buf_write_stmp(BUF *b, char *template)
usr.bin/rcs/buf.c
316
if (buf_write_fd(b, fd) == -1) {
usr.bin/rcs/buf.c
329
buf_grow(BUF *b, size_t len)
usr.bin/rcs/buf.c
331
b->cb_buf = xreallocarray(b->cb_buf, 1, b->cb_size + len);
usr.bin/rcs/buf.c
332
b->cb_size += len;
usr.bin/rcs/buf.c
52
#define SIZE_LEFT(b) (b->cb_size - b->cb_len)
usr.bin/rcs/buf.c
64
BUF *b;
usr.bin/rcs/buf.c
66
b = xmalloc(sizeof(*b));
usr.bin/rcs/buf.c
69
b->cb_buf = xcalloc(1, len);
usr.bin/rcs/buf.c
71
b->cb_buf = NULL;
usr.bin/rcs/buf.c
73
b->cb_size = len;
usr.bin/rcs/buf.c
74
b->cb_len = 0;
usr.bin/rcs/buf.c
76
return (b);
usr.bin/rcs/buf.h
53
void buf_puts(BUF *b, const char *str);
usr.bin/rcs/buf.h
58
u_char *buf_get(BUF *b);
usr.bin/rcs/date.y
790
difftm(struct tm *a, struct tm *b)
usr.bin/rcs/date.y
793
int by = b->tm_year + (YEAR_TMORIGIN - 1);
usr.bin/rcs/date.y
796
a->tm_yday - b->tm_yday
usr.bin/rcs/date.y
803
return (60 * (60 * (24 * days + (a->tm_hour - b->tm_hour))
usr.bin/rcs/date.y
804
+ (a->tm_min - b->tm_min)) + (a->tm_sec - b->tm_sec));
usr.bin/rcs/diff.c
1000
if (a <= b && c <= d && diff_format == D_NORMAL)
usr.bin/rcs/diff.c
1011
fetch(long *f, int a, int b, FILE *lb, int ch, int oldfile, int flags)
usr.bin/rcs/diff.c
1023
nc = f[a > b ? b : a - 1] - curpos;
usr.bin/rcs/diff.c
1027
if (a > b)
usr.bin/rcs/diff.c
1041
for (i = a; i <= b; i++) {
usr.bin/rcs/diff.c
1201
int a, b, c, d;
usr.bin/rcs/diff.c
1207
b = d = 0; /* gcc */
usr.bin/rcs/diff.c
1209
upb = MINIMUM(len[0], context_vec_ptr->b + diff_context);
usr.bin/rcs/diff.c
1230
if (cvp->a <= cvp->b) {
usr.bin/rcs/diff.c
1238
b = cvp->b;
usr.bin/rcs/diff.c
1242
if (a <= b && c <= d)
usr.bin/rcs/diff.c
1245
ch = (a <= b) ? 'd' : 'a';
usr.bin/rcs/diff.c
1248
fetch(ixold, lowa, b, f1, ' ', 0, flags);
usr.bin/rcs/diff.c
1251
fetch(ixold, a, b, f1,
usr.bin/rcs/diff.c
1254
lowa = b + 1;
usr.bin/rcs/diff.c
1257
fetch(ixold, b + 1, upb, f1, ' ', 0, flags);
usr.bin/rcs/diff.c
1274
b = cvp->b;
usr.bin/rcs/diff.c
1278
if (a <= b && c <= d)
usr.bin/rcs/diff.c
1281
ch = (a <= b) ? 'd' : 'a';
usr.bin/rcs/diff.c
1304
int a, b, c, d;
usr.bin/rcs/diff.c
1312
upb = MINIMUM(len[0], context_vec_ptr->b + diff_context);
usr.bin/rcs/diff.c
1334
b = cvp->b;
usr.bin/rcs/diff.c
1343
if (a <= b && c <= d)
usr.bin/rcs/diff.c
1346
ch = (a <= b) ? 'd' : 'a';
usr.bin/rcs/diff.c
1351
fetch(ixold, a, b, f1, '-', 0, flags);
usr.bin/rcs/diff.c
1356
fetch(ixold, a, b, f1, '-', 0, flags);
usr.bin/rcs/diff.c
1363
lowa = b + 1;
usr.bin/rcs/diff.c
172
int b; /* end line in old file */
usr.bin/rcs/diff.c
478
equiv(struct line *a, int n, struct line *b, int m, int *c)
usr.bin/rcs/diff.c
484
if (a[i].value < b[j].value)
usr.bin/rcs/diff.c
486
else if (a[i].value == b[j].value)
usr.bin/rcs/diff.c
493
b[m + 1].value = 0;
usr.bin/rcs/diff.c
496
c[j] = -b[j].serial;
usr.bin/rcs/diff.c
497
while (b[j + 1].value == b[j].value) {
usr.bin/rcs/diff.c
499
c[j] = b[j].serial;
usr.bin/rcs/diff.c
525
stone(int *a, int n, int *b, int *c, int flags)
usr.bin/rcs/diff.c
544
y = -b[j];
usr.bin/rcs/diff.c
567
} while ((y = b[++j]) > 0 && numtries < bound);
usr.bin/rcs/diff.c
764
unsort(struct line *f, int l, int *b)
usr.bin/rcs/diff.c
772
b[i] = a[i];
usr.bin/rcs/diff.c
827
range(int a, int b, char *separator)
usr.bin/rcs/diff.c
829
diff_output("%d", a > b ? b : a);
usr.bin/rcs/diff.c
830
if (a < b)
usr.bin/rcs/diff.c
831
diff_output("%s%d", separator, b);
usr.bin/rcs/diff.c
835
uni_range(int a, int b)
usr.bin/rcs/diff.c
837
if (a < b)
usr.bin/rcs/diff.c
838
diff_output("%d,%d", a, b - a + 1);
usr.bin/rcs/diff.c
839
else if (a == b)
usr.bin/rcs/diff.c
84
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/rcs/diff.c
840
diff_output("%d", b);
usr.bin/rcs/diff.c
842
diff_output("%d,0", b);
usr.bin/rcs/diff.c
85
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.bin/rcs/diff.c
876
change(FILE *f1, FILE *f2, int a, int b, int c, int d, int flags)
usr.bin/rcs/diff.c
883
if (diff_format != D_IFDEF && a > b && c > d)
usr.bin/rcs/diff.c
892
if (a <= b) { /* Changes and deletes. */
usr.bin/rcs/diff.c
893
for (i = a; i <= b; i++) {
usr.bin/rcs/diff.c
900
if (a > b || c <= d) { /* Changes and inserts. */
usr.bin/rcs/diff.c
957
} else if (a > context_vec_ptr->b + (2 * diff_context) + 1 &&
usr.bin/rcs/diff.c
970
context_vec_ptr->b = b;
usr.bin/rcs/diff.c
981
range(a, b, ",");
usr.bin/rcs/diff.c
982
diff_output("%c", a > b ? 'a' : c > d ? 'd' : 'c');
usr.bin/rcs/diff.c
988
if (a > b)
usr.bin/rcs/diff.c
989
diff_output("a%d %d\n", b, d - c + 1);
usr.bin/rcs/diff.c
991
diff_output("d%d %d\n", a, b - a + 1);
usr.bin/rcs/diff.c
994
diff_output("a%d %d\n", b, d - c + 1);
usr.bin/rcs/diff.c
999
fetch(ixold, a, b, f1, '<', 1, flags);
usr.bin/rcs/diff3.c
536
int a, b, c, d;
usr.bin/rcs/diff3.c
546
a = b = number(&p);
usr.bin/rcs/diff3.c
549
b = number(&p);
usr.bin/rcs/diff3.c
561
b++;
usr.bin/rcs/diff3.c
564
(*dd)[i].old.to = b;
usr.bin/rcs/diff3.c
592
getchange(FILE *b)
usr.bin/rcs/diff3.c
596
while ((line = get_line(b, NULL))) {
usr.bin/rcs/diff3.c
605
get_line(FILE *b, size_t *n)
usr.bin/rcs/diff3.c
612
if ((cp = fgetln(b, &len)) == NULL)
usr.bin/rcs/rcs.c
49
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/rcs/rcsnum.c
37
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/rcs/rcsprog.c
509
char b[RCS_REV_BUFSZ];
usr.bin/rcs/rcsprog.c
520
rcsnum_tostr(rdp->rd_num, b, sizeof(b));
usr.bin/rcs/rcsprog.c
525
fpath, b);
usr.bin/rcs/rcsprog.c
531
" revision %s\n", b);
usr.bin/rdist/defs.h
219
#define DECODE(a, b) strunvis(a, b)
usr.bin/rdist/defs.h
220
#define ENCODE(a, b) strvis(a, b, VIS_WHITE)
usr.bin/rdist/defs.h
70
#define IS_ON(b,f) (b & f)
usr.bin/rdist/defs.h
71
#define IS_OFF(b,f) !(IS_ON(b,f))
usr.bin/rdist/defs.h
72
#define FLAG_ON(b,f) b |= f
usr.bin/rdist/defs.h
73
#define FLAG_OFF(b,f) b &= ~(f)
usr.bin/rpcgen/rpc_util.c
82
streq(a, b)
usr.bin/rpcgen/rpc_util.c
84
char *b;
usr.bin/rpcgen/rpc_util.c
86
return (strcmp(a, b) == 0);
usr.bin/rsync/blocks.c
360
struct blk *b;
usr.bin/rsync/blocks.c
410
b = &s->blks[j];
usr.bin/rsync/blocks.c
415
b->chksum_short = i;
usr.bin/rsync/blocks.c
417
assert(s->csum <= sizeof(b->chksum_long));
usr.bin/rsync/blocks.c
419
fd, b->chksum_long, s->csum)) {
usr.bin/rsync/blocks.c
429
b->offs = offs;
usr.bin/rsync/blocks.c
430
b->idx = j;
usr.bin/rsync/blocks.c
431
b->len = (j == (s->blksz - 1) && s->rem) ?
usr.bin/rsync/blocks.c
433
offs += b->len;
usr.bin/rsync/blocks.c
436
path, b->idx, b->len);
usr.bin/rsync/copy.c
33
iszero(const void *b, size_t len)
usr.bin/rsync/copy.c
35
const unsigned char *c = b;
usr.bin/rsync/extern.h
276
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/rsync/hash.c
38
b = 0; /* b(k, l) */
usr.bin/rsync/hash.c
43
b += 4 * (a + dat[i]) +
usr.bin/rsync/hash.c
55
b += a;
usr.bin/rsync/hash.c
60
return (a & 0xffff) + (b << 16);
usr.bin/rsync/rules.c
270
char *b = buf;
usr.bin/rsync/rules.c
275
*b++ = '-';
usr.bin/rsync/rules.c
278
*b++ = '+';
usr.bin/rsync/rules.c
281
*b++ = '!';
usr.bin/rsync/rules.c
285
*b++ = '.';
usr.bin/rsync/rules.c
288
*b++ = ':';
usr.bin/rsync/rules.c
291
*b++ = 'S';
usr.bin/rsync/rules.c
294
*b++ = 'H';
usr.bin/rsync/rules.c
297
*b++ = 'P';
usr.bin/rsync/rules.c
300
*b++ = 'R';
usr.bin/rsync/rules.c
310
*b++ = modifiers[i].sopt;
usr.bin/rsync/rules.c
311
if (b >= ep - 3)
usr.bin/rsync/rules.c
315
if (b >= ep - 3)
usr.bin/rsync/rules.c
317
*b++ = ' ';
usr.bin/rsync/rules.c
321
*b++ = '/';
usr.bin/rsync/rules.c
322
*b++ = '\0';
usr.bin/rsync/uploader.c
175
char *b, *temp = NULL;
usr.bin/rsync/uploader.c
218
b = symlinkat_read(p->rootfd, f->path);
usr.bin/rsync/uploader.c
219
if (b == NULL) {
usr.bin/rsync/uploader.c
223
if (strcmp(f->link, b)) {
usr.bin/rsync/uploader.c
224
free(b);
usr.bin/rsync/uploader.c
225
b = NULL;
usr.bin/rsync/uploader.c
229
free(b);
usr.bin/rsync/uploader.c
230
b = NULL;
usr.bin/rusers/rusers.c
71
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/rusers/rusers.c
72
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.bin/rusers/rusers.c
725
const struct host_info *b = (struct host_info *)bb;
usr.bin/rusers/rusers.c
728
if ((rval = strcasecmp(a->host, b->host)) != 0)
usr.bin/rusers/rusers.c
731
if (a->idle < b->idle)
usr.bin/rusers/rusers.c
733
else if (a->idle > b->idle)
usr.bin/rusers/rusers.c
736
if (a->count > b->count)
usr.bin/rusers/rusers.c
738
else if (a->count < b->count)
usr.bin/rusers/rusers.c
748
const struct host_info *b = (struct host_info *)bb;
usr.bin/rusers/rusers.c
750
if (a->idle < b->idle)
usr.bin/rusers/rusers.c
752
else if (a->idle > b->idle)
usr.bin/rusers/rusers.c
755
if (a->count > b->count)
usr.bin/rusers/rusers.c
757
else if (a->count < b->count)
usr.bin/rusers/rusers.c
760
return(strcasecmp(a->host, b->host));
usr.bin/rusers/rusers.c
767
const struct host_info *b = (struct host_info *)bb;
usr.bin/rusers/rusers.c
769
if (a->count > b->count)
usr.bin/rusers/rusers.c
771
else if (a->count < b->count)
usr.bin/rusers/rusers.c
774
if (a->idle < b->idle)
usr.bin/rusers/rusers.c
776
else if (a->idle > b->idle)
usr.bin/rusers/rusers.c
779
return(strcasecmp(a->host, b->host));
usr.bin/seq/seq.c
47
#define MAXIMUM(a, b) (((a) < (b))? (b) : (a))
usr.bin/signify/fe25519.c
139
void fe25519_cmov(fe25519 *r, const fe25519 *x, unsigned char b)
usr.bin/signify/fe25519.c
14
static crypto_uint32 equal(crypto_uint32 a,crypto_uint32 b) /* 16-bit inputs */
usr.bin/signify/fe25519.c
142
crypto_uint32 mask = b;
usr.bin/signify/fe25519.c
16
crypto_uint32 x = a ^ b; /* 0: yes; 1..65535: no */
usr.bin/signify/fe25519.c
22
static crypto_uint32 ge(crypto_uint32 a,crypto_uint32 b) /* 16-bit inputs */
usr.bin/signify/fe25519.c
25
x -= (unsigned int) b; /* 0..65535: yes; 4294901761..4294967295: no */
usr.bin/signify/fe25519.h
48
void fe25519_cmov(fe25519 *r, const fe25519 *x, unsigned char b);
usr.bin/signify/mod_ge25519.c
110
fe25519 a, b, c, d, t;
usr.bin/signify/mod_ge25519.c
115
fe25519_add(&b, &p->x, &p->y); /* B = (Y1+X1)*(Y2+X2) */
usr.bin/signify/mod_ge25519.c
117
fe25519_mul(&b, &b, &t);
usr.bin/signify/mod_ge25519.c
122
fe25519_sub(&r->x, &b, &a); /* E = B-A */
usr.bin/signify/mod_ge25519.c
125
fe25519_add(&r->y, &b, &a); /* H = B+A */
usr.bin/signify/mod_ge25519.c
131
fe25519 a,b,c,d;
usr.bin/signify/mod_ge25519.c
133
fe25519_square(&b, &p->y);
usr.bin/signify/mod_ge25519.c
141
fe25519_sub(&r->x, &r->x, &b);
usr.bin/signify/mod_ge25519.c
142
fe25519_add(&r->z, &d, &b);
usr.bin/signify/mod_ge25519.c
144
fe25519_sub(&r->y, &d, &b);
usr.bin/signify/mod_ge25519.c
149
static void cmov_aff(ge25519_aff *r, const ge25519_aff *p, unsigned char b)
usr.bin/signify/mod_ge25519.c
151
fe25519_cmov(&r->x, &p->x, b);
usr.bin/signify/mod_ge25519.c
152
fe25519_cmov(&r->y, &p->y, b);
usr.bin/signify/mod_ge25519.c
155
static unsigned char equal(signed char b,signed char c)
usr.bin/signify/mod_ge25519.c
157
unsigned char ub = b;
usr.bin/signify/mod_ge25519.c
166
static unsigned char negative(signed char b)
usr.bin/signify/mod_ge25519.c
168
unsigned long long x = b; /* 18446744073709551361..18446744073709551615: yes; 0..255: no */
usr.bin/signify/mod_ge25519.c
173
static void choose_t(ge25519_aff *t, unsigned long long pos, signed char b)
usr.bin/signify/mod_ge25519.c
178
cmov_aff(t, &ge25519_base_multiples_affine[5*pos+1],equal(b,1) | equal(b,-1));
usr.bin/signify/mod_ge25519.c
179
cmov_aff(t, &ge25519_base_multiples_affine[5*pos+2],equal(b,2) | equal(b,-2));
usr.bin/signify/mod_ge25519.c
180
cmov_aff(t, &ge25519_base_multiples_affine[5*pos+3],equal(b,3) | equal(b,-3));
usr.bin/signify/mod_ge25519.c
181
cmov_aff(t, &ge25519_base_multiples_affine[5*pos+4],equal(b,-4));
usr.bin/signify/mod_ge25519.c
183
fe25519_cmov(&t->x, &v, negative(b));
usr.bin/signify/mod_ge25519.c
270
unsigned char b[127];
usr.bin/signify/mod_ge25519.c
291
sc25519_2interleave2(b,s1,s2);
usr.bin/signify/mod_ge25519.c
294
*r = pre[b[126]];
usr.bin/signify/mod_ge25519.c
300
if(b[i]!=0)
usr.bin/signify/mod_ge25519.c
303
add_p1p1(&tp1p1, r, &pre[b[i]]);
usr.bin/signify/mod_ge25519.c
313
signed char b[85];
usr.bin/signify/mod_ge25519.c
316
sc25519_window3(b,s);
usr.bin/signify/mod_ge25519.c
318
choose_t((ge25519_aff *)r, 0, b[0]);
usr.bin/signify/mod_ge25519.c
323
choose_t(&t, (unsigned long long) i, b[i]);
usr.bin/signify/mod_ge25519.c
86
fe25519 a,b,t1,t2,c,d,e,f,g,h,qt;
usr.bin/signify/mod_ge25519.c
89
fe25519_add(&b, &r->y, &r->x); /* B = (Y1+X1)*(Y2+X2) */
usr.bin/signify/mod_ge25519.c
93
fe25519_mul(&b, &b, &t2);
usr.bin/signify/mod_ge25519.c
94
fe25519_sub(&e, &b, &a); /* E = B-A */
usr.bin/signify/mod_ge25519.c
95
fe25519_add(&h, &b, &a); /* H = B+A */
usr.bin/signify/sc25519.c
180
crypto_uint32 b = 0;
usr.bin/signify/sc25519.c
185
t = x->v[i] - y->v[i] - b;
usr.bin/signify/sc25519.c
187
b = (t >> 8) & 1;
usr.bin/signify/sc25519.c
19
static crypto_uint32 lt(crypto_uint32 a,crypto_uint32 b) /* 16-bit inputs */
usr.bin/signify/sc25519.c
22
x -= (unsigned int) b; /* 0..65535: no; 4294901761..4294967295: yes */
usr.bin/signify/sc25519.c
31
crypto_uint32 b;
usr.bin/signify/sc25519.c
39
b = lt(r->v[i],pb);
usr.bin/signify/sc25519.c
40
t[i] = r->v[i]-pb+(b<<8);
usr.bin/signify/sc25519.c
41
pb = b;
usr.bin/signify/sc25519.c
43
mask = b - 1;
usr.bin/signify/sc25519.c
59
crypto_uint32 b;
usr.bin/signify/sc25519.c
87
b = lt(r1[i],pb);
usr.bin/signify/sc25519.c
88
r->v[i] = r1[i]-pb+(b<<8);
usr.bin/signify/sc25519.c
89
pb = b;
usr.bin/sndiod/dsp.c
418
uint_gcd(unsigned int a, unsigned int b)
usr.bin/sndiod/dsp.c
422
while (b > 0) {
usr.bin/sndiod/dsp.c
423
r = a % b;
usr.bin/sndiod/dsp.c
424
a = b;
usr.bin/sndiod/dsp.c
425
b = r;
usr.bin/snmp/smi.c
39
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/snmp/smi.c
723
smi_oid_cmp(struct oid *a, struct oid *b)
usr.bin/snmp/smi.c
727
for (i = 0; i < MINIMUM(a->o_oidlen, b->o_oidlen); i++) {
usr.bin/snmp/smi.c
728
if (a->o_oid[i] != b->o_oid[i])
usr.bin/snmp/smi.c
729
return (a->o_oid[i] - b->o_oid[i]);
usr.bin/snmp/smi.c
732
return (a->o_oidlen - b->o_oidlen);
usr.bin/snmp/smi.c
736
smi_key_cmp(struct oid *a, struct oid *b)
usr.bin/snmp/smi.c
738
if (a->o_name == NULL || b->o_name == NULL)
usr.bin/snmp/smi.c
740
return (strcasecmp(a->o_name, b->o_name));
usr.bin/snmp/smi.c
744
smi_textconv_cmp(struct textconv *a, struct textconv *b)
usr.bin/snmp/smi.c
746
return strcmp(a->tc_name, b->tc_name);
usr.bin/ssh/addr.c
205
addr_and(struct xaddr *dst, const struct xaddr *a, const struct xaddr *b)
usr.bin/ssh/addr.c
209
if (dst == NULL || a == NULL || b == NULL || a->af != b->af)
usr.bin/ssh/addr.c
215
dst->v4.s_addr &= b->v4.s_addr;
usr.bin/ssh/addr.c
220
dst->addr32[i] &= b->addr32[i];
usr.bin/ssh/addr.c
228
addr_or(struct xaddr *dst, const struct xaddr *a, const struct xaddr *b)
usr.bin/ssh/addr.c
232
if (dst == NULL || a == NULL || b == NULL || a->af != b->af)
usr.bin/ssh/addr.c
238
dst->v4.s_addr |= b->v4.s_addr;
usr.bin/ssh/addr.c
242
dst->addr32[i] |= b->addr32[i];
usr.bin/ssh/addr.c
250
addr_cmp(const struct xaddr *a, const struct xaddr *b)
usr.bin/ssh/addr.c
254
if (a->af != b->af)
usr.bin/ssh/addr.c
263
if (a->v4.s_addr == b->v4.s_addr)
usr.bin/ssh/addr.c
265
return (ntohl(a->v4.s_addr) > ntohl(b->v4.s_addr) ? 1 : -1);
usr.bin/ssh/addr.c
272
if (a->addr8[i] - b->addr8[i] != 0)
usr.bin/ssh/addr.c
273
return (a->addr8[i] - b->addr8[i]);
usr.bin/ssh/addr.c
274
if (a->scope_id == b->scope_id)
usr.bin/ssh/addr.c
276
return (a->scope_id > b->scope_id ? 1 : -1);
usr.bin/ssh/addr.h
47
int addr_and(struct xaddr *dst, const struct xaddr *a, const struct xaddr *b);
usr.bin/ssh/addr.h
48
int addr_cmp(const struct xaddr *a, const struct xaddr *b);
usr.bin/ssh/auth-options.c
704
struct sshbuf *b;
usr.bin/ssh/auth-options.c
711
if ((b = sshbuf_new()) == NULL) {
usr.bin/ssh/auth-options.c
715
if ((r = sshbuf_put_cstring(b, a[i])) != 0)
usr.bin/ssh/auth-options.c
719
(r = sshbuf_put_stringb(m, b)) != 0)
usr.bin/ssh/auth-options.c
724
sshbuf_free(b);
usr.bin/ssh/auth-options.c
733
struct sshbuf *b = NULL;
usr.bin/ssh/auth-options.c
738
(r = sshbuf_froms(m, &b)) != 0)
usr.bin/ssh/auth-options.c
750
if ((r = sshbuf_get_cstring(b, &a[i], NULL)) != 0)
usr.bin/ssh/auth-options.c
765
sshbuf_free(b);
usr.bin/ssh/auth2-chall.c
70
struct sshbuf *b;
usr.bin/ssh/auth2-chall.c
75
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/auth2-chall.c
78
if ((r = sshbuf_putf(b, "%s%s",
usr.bin/ssh/auth2-chall.c
79
sshbuf_len(b) ? "," : "", devices[i]->name)) != 0)
usr.bin/ssh/auth2-chall.c
82
if ((kbdintctxt->devices = sshbuf_dup_string(b)) == NULL)
usr.bin/ssh/auth2-chall.c
84
sshbuf_free(b);
usr.bin/ssh/auth2-gss.c
285
struct sshbuf *b;
usr.bin/ssh/auth2-gss.c
297
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/auth2-gss.c
301
ssh_gssapi_buildmic(b, authctxt->user, authctxt->service,
usr.bin/ssh/auth2-gss.c
304
if ((gssbuf.value = sshbuf_mutable_ptr(b)) == NULL)
usr.bin/ssh/auth2-gss.c
306
gssbuf.length = sshbuf_len(b);
usr.bin/ssh/auth2-gss.c
313
sshbuf_free(b);
usr.bin/ssh/auth2-hostbased.c
127
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/auth2-hostbased.c
130
if ((r = sshbuf_put_stringb(b, ssh->kex->session_id)) != 0 ||
usr.bin/ssh/auth2-hostbased.c
131
(r = sshbuf_put_u8(b, SSH2_MSG_USERAUTH_REQUEST)) != 0 ||
usr.bin/ssh/auth2-hostbased.c
132
(r = sshbuf_put_cstring(b, authctxt->user)) != 0 ||
usr.bin/ssh/auth2-hostbased.c
133
(r = sshbuf_put_cstring(b, authctxt->service)) != 0 ||
usr.bin/ssh/auth2-hostbased.c
134
(r = sshbuf_put_cstring(b, method)) != 0 ||
usr.bin/ssh/auth2-hostbased.c
135
(r = sshbuf_put_string(b, pkalg, alen)) != 0 ||
usr.bin/ssh/auth2-hostbased.c
136
(r = sshbuf_put_string(b, pkblob, blen)) != 0 ||
usr.bin/ssh/auth2-hostbased.c
137
(r = sshbuf_put_cstring(b, chost)) != 0 ||
usr.bin/ssh/auth2-hostbased.c
138
(r = sshbuf_put_cstring(b, cuser)) != 0)
usr.bin/ssh/auth2-hostbased.c
141
sshbuf_dump(b, stderr);
usr.bin/ssh/auth2-hostbased.c
152
sshbuf_ptr(b), sshbuf_len(b), pkalg, ssh->compat, NULL) == 0)
usr.bin/ssh/auth2-hostbased.c
156
sshbuf_free(b);
usr.bin/ssh/auth2-hostbased.c
62
struct sshbuf *b;
usr.bin/ssh/auth2-pubkey.c
110
if ((r = sshpkt_getb_froms(ssh, &b)) != 0 ||
usr.bin/ssh/auth2-pubkey.c
111
(r = sshkey_fromb(b, &hostkey)) != 0)
usr.bin/ssh/auth2-pubkey.c
117
sshbuf_free(b);
usr.bin/ssh/auth2-pubkey.c
118
b = NULL;
usr.bin/ssh/auth2-pubkey.c
188
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/auth2-pubkey.c
191
if ((r = sshbuf_putb(b, ssh->kex->session_id)) != 0)
usr.bin/ssh/auth2-pubkey.c
194
if ((r = sshbuf_put_stringb(b,
usr.bin/ssh/auth2-pubkey.c
206
if ((r = sshbuf_put_u8(b, SSH2_MSG_USERAUTH_REQUEST)) != 0 ||
usr.bin/ssh/auth2-pubkey.c
207
(r = sshbuf_put_cstring(b, userstyle)) != 0 ||
usr.bin/ssh/auth2-pubkey.c
208
(r = sshbuf_put_cstring(b, authctxt->service)) != 0 ||
usr.bin/ssh/auth2-pubkey.c
209
(r = sshbuf_put_cstring(b, method)) != 0 ||
usr.bin/ssh/auth2-pubkey.c
210
(r = sshbuf_put_u8(b, have_sig)) != 0 ||
usr.bin/ssh/auth2-pubkey.c
211
(r = sshbuf_put_cstring(b, pkalg)) != 0 ||
usr.bin/ssh/auth2-pubkey.c
212
(r = sshbuf_put_string(b, pkblob, blen)) != 0)
usr.bin/ssh/auth2-pubkey.c
215
(r = sshkey_puts(ssh->kex->initial_hostkey, b)) != 0)
usr.bin/ssh/auth2-pubkey.c
218
sshbuf_dump(b, stderr);
usr.bin/ssh/auth2-pubkey.c
224
sshbuf_ptr(b), sshbuf_len(b),
usr.bin/ssh/auth2-pubkey.c
302
sshbuf_free(b);
usr.bin/ssh/auth2-pubkey.c
91
struct sshbuf *b = NULL;
usr.bin/ssh/auth2.c
219
char b[512];
usr.bin/ssh/auth2.c
224
(void)snprintf(b, sizeof b, "%llu%s",
usr.bin/ssh/auth2.c
226
if (ssh_digest_memory(SSH_DIGEST_SHA512, b, strlen(b), hash, len) != 0)
usr.bin/ssh/auth2.c
447
struct sshbuf *b;
usr.bin/ssh/auth2.c
451
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/auth2.c
462
if ((r = sshbuf_putf(b, "%s%s", sshbuf_len(b) ? "," : "",
usr.bin/ssh/auth2.c
466
if ((list = sshbuf_dup_string(b)) == NULL)
usr.bin/ssh/auth2.c
468
sshbuf_free(b);
usr.bin/ssh/authfd.c
466
struct sshbuf *b;
usr.bin/ssh/authfd.c
470
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/authfd.c
472
if ((r = sshbuf_put_cstring(b, dch->user)) != 0 ||
usr.bin/ssh/authfd.c
473
(r = sshbuf_put_cstring(b, dch->hostname)) != 0 ||
usr.bin/ssh/authfd.c
474
(r = sshbuf_put_string(b, NULL, 0)) != 0) /* reserved */
usr.bin/ssh/authfd.c
477
if ((r = sshkey_puts(dch->keys[i], b)) != 0 ||
usr.bin/ssh/authfd.c
478
(r = sshbuf_put_u8(b, dch->key_is_ca[i] != 0)) != 0)
usr.bin/ssh/authfd.c
481
if ((r = sshbuf_put_stringb(m, b)) != 0)
usr.bin/ssh/authfd.c
486
sshbuf_free(b);
usr.bin/ssh/authfd.c
493
struct sshbuf *b;
usr.bin/ssh/authfd.c
496
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/authfd.c
498
if ((r = encode_dest_constraint_hop(b, &dc->from)) != 0 ||
usr.bin/ssh/authfd.c
499
(r = encode_dest_constraint_hop(b, &dc->to)) != 0 ||
usr.bin/ssh/authfd.c
500
(r = sshbuf_put_string(b, NULL, 0)) != 0) /* reserved */
usr.bin/ssh/authfd.c
502
if ((r = sshbuf_put_stringb(m, b)) != 0)
usr.bin/ssh/authfd.c
507
sshbuf_free(b);
usr.bin/ssh/authfd.c
518
struct sshbuf *b = NULL;
usr.bin/ssh/authfd.c
539
if ((b = sshbuf_new()) == NULL) {
usr.bin/ssh/authfd.c
544
if ((r = encode_dest_constraint(b,
usr.bin/ssh/authfd.c
552
(r = sshbuf_put_stringb(m, b)) != 0)
usr.bin/ssh/authfd.c
554
sshbuf_free(b);
usr.bin/ssh/authfd.c
555
b = NULL;
usr.bin/ssh/authfd.c
558
if ((b = sshbuf_new()) == NULL) {
usr.bin/ssh/authfd.c
563
if ((r = sshkey_puts(certs[i], b)) != 0)
usr.bin/ssh/authfd.c
571
(r = sshbuf_put_stringb(m, b)) != 0)
usr.bin/ssh/authfd.c
573
sshbuf_free(b);
usr.bin/ssh/authfd.c
574
b = NULL;
usr.bin/ssh/authfd.c
578
sshbuf_free(b);
usr.bin/ssh/bitmap.c
104
if ((r = reserve(b, n)) != 0)
usr.bin/ssh/bitmap.c
107
if (offset > b->top)
usr.bin/ssh/bitmap.c
108
b->top = offset;
usr.bin/ssh/bitmap.c
109
b->d[offset] |= (BITMAP_WTYPE)1 << (n & BITMAP_WMASK);
usr.bin/ssh/bitmap.c
115
retop(struct bitmap *b)
usr.bin/ssh/bitmap.c
117
if (b->top >= b->len)
usr.bin/ssh/bitmap.c
119
while (b->top > 0 && b->d[b->top] == 0)
usr.bin/ssh/bitmap.c
120
b->top--;
usr.bin/ssh/bitmap.c
124
bitmap_clear_bit(struct bitmap *b, u_int n)
usr.bin/ssh/bitmap.c
128
if (b->top >= b->len || n > BITMAP_MAX)
usr.bin/ssh/bitmap.c
131
if (offset > b->top)
usr.bin/ssh/bitmap.c
133
b->d[offset] &= ~((BITMAP_WTYPE)1 << (n & BITMAP_WMASK));
usr.bin/ssh/bitmap.c
135
retop(b);
usr.bin/ssh/bitmap.c
139
bitmap_nbits(struct bitmap *b)
usr.bin/ssh/bitmap.c
144
retop(b);
usr.bin/ssh/bitmap.c
145
if (b->top >= b->len)
usr.bin/ssh/bitmap.c
147
if (b->len == 0 || (b->top == 0 && b->d[0] == 0))
usr.bin/ssh/bitmap.c
150
w = b->d[b->top];
usr.bin/ssh/bitmap.c
151
bits = (b->top + 1) * BITMAP_BITS;
usr.bin/ssh/bitmap.c
160
bitmap_nbytes(struct bitmap *b)
usr.bin/ssh/bitmap.c
162
return (bitmap_nbits(b) + 7) / 8;
usr.bin/ssh/bitmap.c
166
bitmap_to_string(struct bitmap *b, void *p, size_t l)
usr.bin/ssh/bitmap.c
169
size_t i, j, k, need = bitmap_nbytes(b);
usr.bin/ssh/bitmap.c
171
if (l < need || b->top >= b->len)
usr.bin/ssh/bitmap.c
176
for (i = k = 0; i < b->top + 1; i++) {
usr.bin/ssh/bitmap.c
180
s[need - 1 - k++] = (b->d[i] >> (j * 8)) & 0xff;
usr.bin/ssh/bitmap.c
187
bitmap_from_string(struct bitmap *b, const void *p, size_t l)
usr.bin/ssh/bitmap.c
195
if ((r = reserve(b, l * 8)) != 0)
usr.bin/ssh/bitmap.c
197
bitmap_zero(b);
usr.bin/ssh/bitmap.c
200
b->top = offset = ((l + (BITMAP_BYTES - 1)) / BITMAP_BYTES) - 1;
usr.bin/ssh/bitmap.c
203
b->d[offset] |= (BITMAP_WTYPE)s[i] << shift;
usr.bin/ssh/bitmap.c
210
retop(b);
usr.bin/ssh/bitmap.c
52
bitmap_free(struct bitmap *b)
usr.bin/ssh/bitmap.c
54
if (b != NULL && b->d != NULL) {
usr.bin/ssh/bitmap.c
55
bitmap_zero(b);
usr.bin/ssh/bitmap.c
56
free(b->d);
usr.bin/ssh/bitmap.c
57
b->d = NULL;
usr.bin/ssh/bitmap.c
59
free(b);
usr.bin/ssh/bitmap.c
63
bitmap_zero(struct bitmap *b)
usr.bin/ssh/bitmap.c
65
memset(b->d, 0, b->len * BITMAP_BYTES);
usr.bin/ssh/bitmap.c
66
b->top = 0;
usr.bin/ssh/bitmap.c
70
bitmap_test_bit(struct bitmap *b, u_int n)
usr.bin/ssh/bitmap.c
72
if (b->top >= b->len)
usr.bin/ssh/bitmap.c
74
if (b->len == 0 || (n / BITMAP_BITS) > b->top)
usr.bin/ssh/bitmap.c
76
return (b->d[n / BITMAP_BITS] >> (n & BITMAP_WMASK)) & 1;
usr.bin/ssh/bitmap.c
80
reserve(struct bitmap *b, u_int n)
usr.bin/ssh/bitmap.c
85
if (b->top >= b->len || n > BITMAP_MAX)
usr.bin/ssh/bitmap.c
88
if (b->len < nlen) {
usr.bin/ssh/bitmap.c
89
if ((tmp = recallocarray(b->d, b->len,
usr.bin/ssh/bitmap.c
92
b->d = tmp;
usr.bin/ssh/bitmap.c
93
b->len = nlen;
usr.bin/ssh/bitmap.c
99
bitmap_set_bit(struct bitmap *b, u_int n)
usr.bin/ssh/bitmap.h
31
void bitmap_free(struct bitmap *b);
usr.bin/ssh/bitmap.h
34
void bitmap_zero(struct bitmap *b);
usr.bin/ssh/bitmap.h
37
int bitmap_test_bit(struct bitmap *b, u_int n);
usr.bin/ssh/bitmap.h
40
int bitmap_set_bit(struct bitmap *b, u_int n);
usr.bin/ssh/bitmap.h
43
void bitmap_clear_bit(struct bitmap *b, u_int n);
usr.bin/ssh/bitmap.h
46
size_t bitmap_nbits(struct bitmap *b);
usr.bin/ssh/bitmap.h
49
size_t bitmap_nbytes(struct bitmap *b);
usr.bin/ssh/bitmap.h
52
int bitmap_to_string(struct bitmap *b, void *p, size_t l);
usr.bin/ssh/bitmap.h
55
int bitmap_from_string(struct bitmap *b, const void *p, size_t l);
usr.bin/ssh/chacha.c
43
#define QUARTERROUND(a,b,c,d) \
usr.bin/ssh/chacha.c
44
a = PLUS(a,b); d = ROTATE(XOR(d,a),16); \
usr.bin/ssh/chacha.c
45
c = PLUS(c,d); b = ROTATE(XOR(b,c),12); \
usr.bin/ssh/chacha.c
46
a = PLUS(a,b); d = ROTATE(XOR(d,a), 8); \
usr.bin/ssh/chacha.c
47
c = PLUS(c,d); b = ROTATE(XOR(b,c), 7);
usr.bin/ssh/channels.c
1367
x11_open_helper(struct ssh *ssh, struct sshbuf *b)
usr.bin/ssh/channels.c
1382
if (sshbuf_len(b) < 12)
usr.bin/ssh/channels.c
1386
ucp = sshbuf_mutable_ptr(b);
usr.bin/ssh/channels.c
1400
if (sshbuf_len(b) <
usr.bin/ssh/channels.c
1522
struct sshbuf *b = NULL;
usr.bin/ssh/channels.c
1528
if ((b = sshbuf_fromb(input)) == NULL)
usr.bin/ssh/channels.c
1532
if ((r = sshbuf_get_u8(b, &socks_ver)) != 0 ||
usr.bin/ssh/channels.c
1533
(r = sshbuf_get_u8(b, &socks_cmd)) != 0 ||
usr.bin/ssh/channels.c
1534
(r = sshbuf_get_u16(b, &dest_port)) != 0 ||
usr.bin/ssh/channels.c
1535
(r = sshbuf_get(b, &dest_addr, sizeof(dest_addr))) != 0 ||
usr.bin/ssh/channels.c
1536
(r = sshbuf_get_nulterminated_string(b, 1024, &user, NULL)) != 0) {
usr.bin/ssh/channels.c
1545
if ((r = sshbuf_get_nulterminated_string(b, 1024,
usr.bin/ssh/channels.c
1558
if ((r = sshbuf_consume_upto_child(input, b)) != 0)
usr.bin/ssh/channels.c
1585
sshbuf_free(b);
usr.bin/ssh/channels.c
1606
channel_socks5_check_auth(Channel *c, struct sshbuf *b, struct sshbuf *input,
usr.bin/ssh/channels.c
1615
if ((r = sshbuf_get_u8(b, &socks_ver)) != 0)
usr.bin/ssh/channels.c
1619
if ((r = sshbuf_get_u8(b, &nmethods)) != 0)
usr.bin/ssh/channels.c
1622
if ((r = sshbuf_get_u8(b, &method)) != 0)
usr.bin/ssh/channels.c
1632
if ((r = sshbuf_consume_upto_child(input, b)) != 0)
usr.bin/ssh/channels.c
1652
struct sshbuf *b = NULL;
usr.bin/ssh/channels.c
1658
if ((b = sshbuf_fromb(input)) == NULL)
usr.bin/ssh/channels.c
1662
if ((r = channel_socks5_check_auth(c, b, input, output)) != 1) {
usr.bin/ssh/channels.c
1671
if ((r = sshbuf_get_u8(b, &socks_ver)) != 0) {
usr.bin/ssh/channels.c
1680
if ((r = sshbuf_get_u8(b, &socks_cmd)) != 0 ||
usr.bin/ssh/channels.c
1681
(r = sshbuf_get_u8(b, &socks_reserved)) != 0 ||
usr.bin/ssh/channels.c
1682
(r = sshbuf_get_u8(b, &socks_atyp)) != 0) {
usr.bin/ssh/channels.c
1700
if ((r = sshbuf_get_u8(b, &addrlen)) != 0) {
usr.bin/ssh/channels.c
1714
if ((r = sshbuf_get(b, &dest_addr, addrlen)) != 0 ||
usr.bin/ssh/channels.c
1715
(r = sshbuf_get_u16(b, &dest_port)) != 0) {
usr.bin/ssh/channels.c
1722
if ((r = sshbuf_consume_upto_child(input, b)) != 0)
usr.bin/ssh/channels.c
1751
sshbuf_free(b);
usr.bin/ssh/channels.c
3332
struct sshbuf *b = NULL;
usr.bin/ssh/channels.c
3364
if ((b = sshbuf_new()) == NULL) {
usr.bin/ssh/channels.c
3375
if ((r = sshbuf_put_u8(b, 0)) != 0 || /* padlen */
usr.bin/ssh/channels.c
3376
(r = sshbuf_put_u8(b, type)) != 0 ||
usr.bin/ssh/channels.c
3377
(r = sshbuf_put_u32(b, c->mux_downstream_id)) != 0 ||
usr.bin/ssh/channels.c
3378
(r = sshbuf_put(b, cp, len)) != 0 ||
usr.bin/ssh/channels.c
3379
(r = sshbuf_put_stringb(downstream->output, b)) != 0) {
usr.bin/ssh/channels.c
3403
sshbuf_free(b);
usr.bin/ssh/clientloop.c
1130
print_escape_help(struct sshbuf *b, int escape_char, int mux_client,
usr.bin/ssh/clientloop.c
1136
if ((r = sshbuf_putf(b,
usr.bin/ssh/clientloop.c
1149
if ((r = sshbuf_putf(b, " %c%-3s - %s\r\n",
usr.bin/ssh/clientloop.c
1154
if ((r = sshbuf_putf(b,
usr.bin/ssh/clientloop.c
1207
char b[16];
usr.bin/ssh/clientloop.c
1210
snprintf(b, sizeof b, "^Z");
usr.bin/ssh/clientloop.c
1212
snprintf(b, sizeof b, "%c", ch);
usr.bin/ssh/clientloop.c
1216
efc->escape_char, b)) != 0)
usr.bin/ssh/clientloop.c
1710
struct sshbuf *b = NULL;
usr.bin/ssh/clientloop.c
1737
if ((b = sshbuf_new()) == NULL) {
usr.bin/ssh/clientloop.c
1742
if ((r = sshbuf_put_u8(b, 0)) != 0 || /* padlen */
usr.bin/ssh/clientloop.c
1743
(r = sshbuf_put_u8(b, SSH2_MSG_CHANNEL_OPEN)) != 0 ||
usr.bin/ssh/clientloop.c
1744
(r = sshbuf_put_cstring(b, request_type)) != 0 ||
usr.bin/ssh/clientloop.c
1745
(r = sshbuf_put_u32(b, rchan)) != 0 ||
usr.bin/ssh/clientloop.c
1746
(r = sshbuf_put_u32(b, rwindow)) != 0 ||
usr.bin/ssh/clientloop.c
1747
(r = sshbuf_put_u32(b, rmaxpack)) != 0 ||
usr.bin/ssh/clientloop.c
1748
(r = sshbuf_put_cstring(b, listen_address)) != 0 ||
usr.bin/ssh/clientloop.c
1749
(r = sshbuf_put_u32(b, listen_port)) != 0 ||
usr.bin/ssh/clientloop.c
1750
(r = sshbuf_put_cstring(b, originator_address)) != 0 ||
usr.bin/ssh/clientloop.c
1751
(r = sshbuf_put_u32(b, originator_port)) != 0 ||
usr.bin/ssh/clientloop.c
1752
(r = sshbuf_put_stringb(c->output, b)) != 0) {
usr.bin/ssh/clientloop.c
1759
sshbuf_free(b);
usr.bin/ssh/digest-libc.c
192
ssh_digest_update_buffer(struct ssh_digest_ctx *ctx, const struct sshbuf *b)
usr.bin/ssh/digest-libc.c
194
return ssh_digest_update(ctx, sshbuf_ptr(b), sshbuf_len(b));
usr.bin/ssh/digest-libc.c
243
ssh_digest_buffer(int alg, const struct sshbuf *b, u_char *d, size_t dlen)
usr.bin/ssh/digest-libc.c
245
return ssh_digest_memory(alg, sshbuf_ptr(b), sshbuf_len(b), d, dlen);
usr.bin/ssh/digest-openssl.c
135
ssh_digest_update_buffer(struct ssh_digest_ctx *ctx, const struct sshbuf *b)
usr.bin/ssh/digest-openssl.c
137
return ssh_digest_update(ctx, sshbuf_ptr(b), sshbuf_len(b));
usr.bin/ssh/digest-openssl.c
185
ssh_digest_buffer(int alg, const struct sshbuf *b, u_char *d, size_t dlen)
usr.bin/ssh/digest-openssl.c
187
return ssh_digest_memory(alg, sshbuf_ptr(b), sshbuf_len(b), d, dlen);
usr.bin/ssh/digest.h
56
int ssh_digest_buffer(int alg, const struct sshbuf *b, u_char *d, size_t dlen)
usr.bin/ssh/digest.h
64
const struct sshbuf *b);
usr.bin/ssh/ed25519.c
104
static void fe25519_cmov(fe25519 *r, const fe25519 *x, unsigned char b);
usr.bin/ssh/ed25519.c
132
static crypto_uint32 fe25519_equal(crypto_uint32 a,crypto_uint32 b) /* 16-bit inputs */
usr.bin/ssh/ed25519.c
134
crypto_uint32 x = a ^ b; /* 0: yes; 1..65535: no */
usr.bin/ssh/ed25519.c
140
static crypto_uint32 ge(crypto_uint32 a,crypto_uint32 b) /* 16-bit inputs */
usr.bin/ssh/ed25519.c
143
x -= (unsigned int) b; /* 0..65535: yes; 4294901761..4294967295: no */
usr.bin/ssh/ed25519.c
1672
fe25519 a,b,t1,t2,c,d,e,f,g,h,qt;
usr.bin/ssh/ed25519.c
1675
fe25519_add(&b, &r->y, &r->x); /* B = (Y1+X1)*(Y2+X2) */
usr.bin/ssh/ed25519.c
1679
fe25519_mul(&b, &b, &t2);
usr.bin/ssh/ed25519.c
1680
fe25519_sub(&e, &b, &a); /* E = B-A */
usr.bin/ssh/ed25519.c
1681
fe25519_add(&h, &b, &a); /* H = B+A */
usr.bin/ssh/ed25519.c
1695
fe25519 a, b, c, d, t;
usr.bin/ssh/ed25519.c
1700
fe25519_add(&b, &p->x, &p->y); /* B = (Y1+X1)*(Y2+X2) */
usr.bin/ssh/ed25519.c
1702
fe25519_mul(&b, &b, &t);
usr.bin/ssh/ed25519.c
1707
fe25519_sub(&r->x, &b, &a); /* E = B-A */
usr.bin/ssh/ed25519.c
1710
fe25519_add(&r->y, &b, &a); /* H = B+A */
usr.bin/ssh/ed25519.c
1716
fe25519 a,b,c,d;
usr.bin/ssh/ed25519.c
1718
fe25519_square(&b, &p->y);
usr.bin/ssh/ed25519.c
1726
fe25519_sub(&r->x, &r->x, &b);
usr.bin/ssh/ed25519.c
1727
fe25519_add(&r->z, &d, &b);
usr.bin/ssh/ed25519.c
1729
fe25519_sub(&r->y, &d, &b);
usr.bin/ssh/ed25519.c
1733
static void cmov_aff(ge25519_aff *r, const ge25519_aff *p, unsigned char b)
usr.bin/ssh/ed25519.c
1735
fe25519_cmov(&r->x, &p->x, b);
usr.bin/ssh/ed25519.c
1736
fe25519_cmov(&r->y, &p->y, b);
usr.bin/ssh/ed25519.c
1739
static unsigned char equal(signed char b,signed char c)
usr.bin/ssh/ed25519.c
1741
unsigned char ub = b;
usr.bin/ssh/ed25519.c
1750
static unsigned char negative(signed char b)
usr.bin/ssh/ed25519.c
1752
unsigned long long x = b; /* 18446744073709551361..18446744073709551615: yes; 0..255: no */
usr.bin/ssh/ed25519.c
1757
static void choose_t(ge25519_aff *t, unsigned long long pos, signed char b)
usr.bin/ssh/ed25519.c
1762
cmov_aff(t, &ge25519_base_multiples_affine[5*pos+1],equal(b,1) | equal(b,-1));
usr.bin/ssh/ed25519.c
1763
cmov_aff(t, &ge25519_base_multiples_affine[5*pos+2],equal(b,2) | equal(b,-2));
usr.bin/ssh/ed25519.c
1764
cmov_aff(t, &ge25519_base_multiples_affine[5*pos+3],equal(b,3) | equal(b,-3));
usr.bin/ssh/ed25519.c
1765
cmov_aff(t, &ge25519_base_multiples_affine[5*pos+4],equal(b,-4));
usr.bin/ssh/ed25519.c
1767
fe25519_cmov(&t->x, &v, negative(b));
usr.bin/ssh/ed25519.c
1853
unsigned char b[127];
usr.bin/ssh/ed25519.c
1874
sc25519_2interleave2(b,s1,s2);
usr.bin/ssh/ed25519.c
1877
*r = pre[b[126]];
usr.bin/ssh/ed25519.c
1883
if(b[i]!=0)
usr.bin/ssh/ed25519.c
1886
add_p1p1(&tp1p1, r, &pre[b[i]]);
usr.bin/ssh/ed25519.c
1895
signed char b[85];
usr.bin/ssh/ed25519.c
1898
sc25519_window3(b,s);
usr.bin/ssh/ed25519.c
1900
choose_t((ge25519_aff *)r, 0, b[0]);
usr.bin/ssh/ed25519.c
1905
choose_t(&t, (unsigned long long) i, b[i]);
usr.bin/ssh/ed25519.c
257
static void fe25519_cmov(fe25519 *r, const fe25519 *x, unsigned char b)
usr.bin/ssh/ed25519.c
260
crypto_uint32 mask = b;
usr.bin/ssh/ed25519.c
520
static crypto_uint32 lt(crypto_uint32 a,crypto_uint32 b) /* 16-bit inputs */
usr.bin/ssh/ed25519.c
523
x -= (unsigned int) b; /* 0..65535: no; 4294901761..4294967295: yes */
usr.bin/ssh/ed25519.c
532
crypto_uint32 b;
usr.bin/ssh/ed25519.c
540
b = lt(r->v[i],pb);
usr.bin/ssh/ed25519.c
541
t[i] = r->v[i]-pb+(b<<8);
usr.bin/ssh/ed25519.c
542
pb = b;
usr.bin/ssh/ed25519.c
544
mask = b - 1;
usr.bin/ssh/ed25519.c
560
crypto_uint32 b;
usr.bin/ssh/ed25519.c
588
b = lt(r1[i],pb);
usr.bin/ssh/ed25519.c
589
r->v[i] = r1[i]-pb+(b<<8);
usr.bin/ssh/ed25519.c
590
pb = b;
usr.bin/ssh/gss-genr.c
109
struct sshbuf *b;
usr.bin/ssh/gss-genr.c
113
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/gss-genr.c
127
if ((r = sshbuf_put(b, msg.value, msg.length)) != 0 ||
usr.bin/ssh/gss-genr.c
128
(r = sshbuf_put_u8(b, '\n')) != 0)
usr.bin/ssh/gss-genr.c
139
if ((r = sshbuf_put(b, msg.value, msg.length)) != 0 ||
usr.bin/ssh/gss-genr.c
140
(r = sshbuf_put_u8(b, '\n')) != 0)
usr.bin/ssh/gss-genr.c
146
if ((r = sshbuf_put_u8(b, '\n')) != 0)
usr.bin/ssh/gss-genr.c
148
ret = xstrdup((const char *)sshbuf_ptr(b));
usr.bin/ssh/gss-genr.c
149
sshbuf_free(b);
usr.bin/ssh/gss-genr.c
257
ssh_gssapi_buildmic(struct sshbuf *b, const char *user, const char *service,
usr.bin/ssh/gss-genr.c
262
sshbuf_reset(b);
usr.bin/ssh/gss-genr.c
263
if ((r = sshbuf_put_stringb(b, session_id)) != 0 ||
usr.bin/ssh/gss-genr.c
264
(r = sshbuf_put_u8(b, SSH2_MSG_USERAUTH_REQUEST)) != 0 ||
usr.bin/ssh/gss-genr.c
265
(r = sshbuf_put_cstring(b, user)) != 0 ||
usr.bin/ssh/gss-genr.c
266
(r = sshbuf_put_cstring(b, service)) != 0 ||
usr.bin/ssh/gss-genr.c
267
(r = sshbuf_put_cstring(b, context)) != 0)
usr.bin/ssh/gss-genr.c
48
ssh_gssapi_get_buffer_desc(struct sshbuf *b, gss_buffer_desc *g)
usr.bin/ssh/gss-genr.c
54
if ((r = sshbuf_get_string(b, &p, &len)) != 0)
usr.bin/ssh/hmac.c
100
return ssh_digest_update_buffer(ctx->digest, b);
usr.bin/ssh/hmac.c
98
ssh_hmac_update_buffer(struct ssh_hmac_ctx *ctx, const struct sshbuf *b)
usr.bin/ssh/hmac.h
33
int ssh_hmac_update_buffer(struct ssh_hmac_ctx *ctx, const struct sshbuf *b);
usr.bin/ssh/kex-names.c
192
kex_names_cat(const char *a, const char *b)
usr.bin/ssh/kex-names.c
198
return strdup(b);
usr.bin/ssh/kex-names.c
199
if (b == NULL || *b == '\0')
usr.bin/ssh/kex-names.c
201
if (strlen(b) > 1024*1024)
usr.bin/ssh/kex-names.c
203
len = strlen(a) + strlen(b) + 2;
usr.bin/ssh/kex-names.c
204
if ((tmp = cp = strdup(b)) == NULL ||
usr.bin/ssh/kex.c
145
kex_prop2buf(struct sshbuf *b, char *proposal[PROPOSAL_MAX])
usr.bin/ssh/kex.c
150
sshbuf_reset(b);
usr.bin/ssh/kex.c
157
if ((r = sshbuf_put_u8(b, 0)) != 0)
usr.bin/ssh/kex.c
161
if ((r = sshbuf_put_cstring(b, proposal[i])) != 0)
usr.bin/ssh/kex.c
164
if ((r = sshbuf_put_u8(b, 0)) != 0 || /* first_kex_packet_follows */
usr.bin/ssh/kex.c
165
(r = sshbuf_put_u32(b, 0)) != 0) /* uint32 reserved */
usr.bin/ssh/kex.c
174
struct sshbuf *b = NULL;
usr.bin/ssh/kex.c
183
if ((b = sshbuf_fromb(raw)) == NULL) {
usr.bin/ssh/kex.c
187
if ((r = sshbuf_consume(b, KEX_COOKIE_LEN)) != 0) { /* skip cookie */
usr.bin/ssh/kex.c
193
if ((r = sshbuf_get_cstring(b, &(proposal[i]), NULL)) != 0) {
usr.bin/ssh/kex.c
200
if ((r = sshbuf_get_u8(b, &v)) != 0 || /* first_kex_follows */
usr.bin/ssh/kex.c
201
(r = sshbuf_get_u32(b, &i)) != 0) { /* reserved */
usr.bin/ssh/kex.c
214
sshbuf_free(b);
usr.bin/ssh/kexc25519.c
42
const u_char b[CURVE25519_SIZE], const u_char c[CURVE25519_SIZE])
usr.bin/ssh/kexgen.c
58
struct sshbuf *b;
usr.bin/ssh/kexgen.c
63
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/kexgen.c
65
if ((r = sshbuf_put_stringb(b, client_version)) != 0 ||
usr.bin/ssh/kexgen.c
66
(r = sshbuf_put_stringb(b, server_version)) != 0 ||
usr.bin/ssh/kexgen.c
68
(r = sshbuf_put_u32(b, sshbuf_len(client_kexinit) + 1)) != 0 ||
usr.bin/ssh/kexgen.c
69
(r = sshbuf_put_u8(b, SSH2_MSG_KEXINIT)) != 0 ||
usr.bin/ssh/kexgen.c
70
(r = sshbuf_putb(b, client_kexinit)) != 0 ||
usr.bin/ssh/kexgen.c
71
(r = sshbuf_put_u32(b, sshbuf_len(server_kexinit) + 1)) != 0 ||
usr.bin/ssh/kexgen.c
72
(r = sshbuf_put_u8(b, SSH2_MSG_KEXINIT)) != 0 ||
usr.bin/ssh/kexgen.c
73
(r = sshbuf_putb(b, server_kexinit)) != 0 ||
usr.bin/ssh/kexgen.c
74
(r = sshbuf_put_stringb(b, server_host_key_blob)) != 0 ||
usr.bin/ssh/kexgen.c
75
(r = sshbuf_put_stringb(b, client_pub)) != 0 ||
usr.bin/ssh/kexgen.c
76
(r = sshbuf_put_stringb(b, server_pub)) != 0 ||
usr.bin/ssh/kexgen.c
77
(r = sshbuf_putb(b, shared_secret)) != 0) {
usr.bin/ssh/kexgen.c
78
sshbuf_free(b);
usr.bin/ssh/kexgen.c
82
sshbuf_dump(b, stderr);
usr.bin/ssh/kexgen.c
84
if (ssh_digest_buffer(hash_alg, b, hash, *hashlen) != 0) {
usr.bin/ssh/kexgen.c
85
sshbuf_free(b);
usr.bin/ssh/kexgen.c
88
sshbuf_free(b);
usr.bin/ssh/kexgex.c
54
struct sshbuf *b;
usr.bin/ssh/kexgex.c
59
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/kexgex.c
61
if ((r = sshbuf_put_stringb(b, client_version)) < 0 ||
usr.bin/ssh/kexgex.c
62
(r = sshbuf_put_stringb(b, server_version)) < 0 ||
usr.bin/ssh/kexgex.c
64
(r = sshbuf_put_u32(b, sshbuf_len(client_kexinit) + 1)) != 0 ||
usr.bin/ssh/kexgex.c
65
(r = sshbuf_put_u8(b, SSH2_MSG_KEXINIT)) != 0 ||
usr.bin/ssh/kexgex.c
66
(r = sshbuf_putb(b, client_kexinit)) != 0 ||
usr.bin/ssh/kexgex.c
67
(r = sshbuf_put_u32(b, sshbuf_len(server_kexinit) + 1)) != 0 ||
usr.bin/ssh/kexgex.c
68
(r = sshbuf_put_u8(b, SSH2_MSG_KEXINIT)) != 0 ||
usr.bin/ssh/kexgex.c
69
(r = sshbuf_putb(b, server_kexinit)) != 0 ||
usr.bin/ssh/kexgex.c
70
(r = sshbuf_put_stringb(b, server_host_key_blob)) != 0 ||
usr.bin/ssh/kexgex.c
71
(min != -1 && (r = sshbuf_put_u32(b, min)) != 0) ||
usr.bin/ssh/kexgex.c
72
(r = sshbuf_put_u32(b, wantbits)) != 0 ||
usr.bin/ssh/kexgex.c
73
(max != -1 && (r = sshbuf_put_u32(b, max)) != 0) ||
usr.bin/ssh/kexgex.c
74
(r = sshbuf_put_bignum2(b, prime)) != 0 ||
usr.bin/ssh/kexgex.c
75
(r = sshbuf_put_bignum2(b, gen)) != 0 ||
usr.bin/ssh/kexgex.c
76
(r = sshbuf_put_bignum2(b, client_dh_pub)) != 0 ||
usr.bin/ssh/kexgex.c
77
(r = sshbuf_put_bignum2(b, server_dh_pub)) != 0 ||
usr.bin/ssh/kexgex.c
78
(r = sshbuf_put(b, shared_secret, secretlen)) != 0) {
usr.bin/ssh/kexgex.c
79
sshbuf_free(b);
usr.bin/ssh/kexgex.c
83
sshbuf_dump(b, stderr);
usr.bin/ssh/kexgex.c
85
if (ssh_digest_buffer(hash_alg, b, hash, *hashlen) != 0) {
usr.bin/ssh/kexgex.c
86
sshbuf_free(b);
usr.bin/ssh/kexgex.c
89
sshbuf_free(b);
usr.bin/ssh/krl.c
101
serial_cmp(struct revoked_serial *a, struct revoked_serial *b)
usr.bin/ssh/krl.c
103
if (a->hi >= b->lo && a->lo <= b->hi)
usr.bin/ssh/krl.c
105
return a->lo < b->lo ? -1 : 1;
usr.bin/ssh/krl.c
109
key_id_cmp(struct revoked_key_id *a, struct revoked_key_id *b)
usr.bin/ssh/krl.c
111
return strcmp(a->key_id, b->key_id);
usr.bin/ssh/krl.c
115
blob_cmp(struct revoked_blob *a, struct revoked_blob *b)
usr.bin/ssh/krl.c
119
if (a->len != b->len) {
usr.bin/ssh/krl.c
120
if ((r = memcmp(a->blob, b->blob, MINIMUM(a->len, b->len))) != 0)
usr.bin/ssh/krl.c
122
return a->len > b->len ? 1 : -1;
usr.bin/ssh/krl.c
124
return memcmp(a->blob, b->blob, a->len);
usr.bin/ssh/krl.c
56
static int serial_cmp(struct revoked_serial *a, struct revoked_serial *b);
usr.bin/ssh/krl.c
65
static int key_id_cmp(struct revoked_key_id *a, struct revoked_key_id *b);
usr.bin/ssh/krl.c
75
static int blob_cmp(struct revoked_blob *a, struct revoked_blob *b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
1631
uint64_t a, uint64_t b, uint64_t c, uint64_t d, uint64_t e) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
1632
return (((a ^ b) ^ c) ^ d) ^ e;
usr.bin/ssh/libcrux_mlkem768_sha3.h
1639
uint64_t a, uint64_t b, uint64_t c, uint64_t d, uint64_t e) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
1640
return libcrux_sha3_simd_portable__veor5q_u64(a, b, c, d, e);
usr.bin/ssh/libcrux_mlkem768_sha3.h
1655
libcrux_sha3_simd_portable__vrax1q_u64(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
1657
return uu____0 ^ libcrux_sha3_simd_portable_rotate_left_76(b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
1664
libcrux_sha3_simd_portable_rotate_left1_and_xor_d2(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
1665
return libcrux_sha3_simd_portable__vrax1q_u64(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
1669
libcrux_sha3_simd_portable__vbcaxq_u64(uint64_t a, uint64_t b, uint64_t c) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
1670
return a ^ (b & ~c);
usr.bin/ssh/libcrux_mlkem768_sha3.h
1677
libcrux_sha3_simd_portable_and_not_xor_d2(uint64_t a, uint64_t b, uint64_t c) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
1678
return libcrux_sha3_simd_portable__vbcaxq_u64(a, b, c);
usr.bin/ssh/libcrux_mlkem768_sha3.h
1698
uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
1699
return a ^ b;
usr.bin/ssh/libcrux_mlkem768_sha3.h
2000
libcrux_sha3_simd_portable__vxarq_u64_02(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2001
return libcrux_sha3_simd_portable_rotate_left_02(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2014
libcrux_sha3_simd_portable_xor_and_rotate_d2_02(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2015
return libcrux_sha3_simd_portable__vxarq_u64_02(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2036
libcrux_sha3_simd_portable__vxarq_u64_ac(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2037
return libcrux_sha3_simd_portable_rotate_left_ac(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2050
libcrux_sha3_simd_portable_xor_and_rotate_d2_ac(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2051
return libcrux_sha3_simd_portable__vxarq_u64_ac(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2072
libcrux_sha3_simd_portable__vxarq_u64_020(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2073
return libcrux_sha3_simd_portable_rotate_left_020(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2086
libcrux_sha3_simd_portable_xor_and_rotate_d2_020(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2087
return libcrux_sha3_simd_portable__vxarq_u64_020(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2108
libcrux_sha3_simd_portable__vxarq_u64_a9(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2109
return libcrux_sha3_simd_portable_rotate_left_a9(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2122
libcrux_sha3_simd_portable_xor_and_rotate_d2_a9(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2123
return libcrux_sha3_simd_portable__vxarq_u64_a9(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2133
libcrux_sha3_simd_portable__vxarq_u64_76(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2134
return libcrux_sha3_simd_portable_rotate_left_76(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2147
libcrux_sha3_simd_portable_xor_and_rotate_d2_76(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2148
return libcrux_sha3_simd_portable__vxarq_u64_76(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2169
libcrux_sha3_simd_portable__vxarq_u64_58(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2170
return libcrux_sha3_simd_portable_rotate_left_58(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2183
libcrux_sha3_simd_portable_xor_and_rotate_d2_58(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2184
return libcrux_sha3_simd_portable__vxarq_u64_58(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2205
libcrux_sha3_simd_portable__vxarq_u64_e0(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2206
return libcrux_sha3_simd_portable_rotate_left_e0(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2219
libcrux_sha3_simd_portable_xor_and_rotate_d2_e0(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2220
return libcrux_sha3_simd_portable__vxarq_u64_e0(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2241
libcrux_sha3_simd_portable__vxarq_u64_63(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2242
return libcrux_sha3_simd_portable_rotate_left_63(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2255
libcrux_sha3_simd_portable_xor_and_rotate_d2_63(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2256
return libcrux_sha3_simd_portable__vxarq_u64_63(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2277
libcrux_sha3_simd_portable__vxarq_u64_6a(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2278
return libcrux_sha3_simd_portable_rotate_left_6a(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2291
libcrux_sha3_simd_portable_xor_and_rotate_d2_6a(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2292
return libcrux_sha3_simd_portable__vxarq_u64_6a(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2313
libcrux_sha3_simd_portable__vxarq_u64_ab(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2314
return libcrux_sha3_simd_portable_rotate_left_ab(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2327
libcrux_sha3_simd_portable_xor_and_rotate_d2_ab(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2328
return libcrux_sha3_simd_portable__vxarq_u64_ab(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2349
libcrux_sha3_simd_portable__vxarq_u64_5b(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2350
return libcrux_sha3_simd_portable_rotate_left_5b(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2363
libcrux_sha3_simd_portable_xor_and_rotate_d2_5b(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2364
return libcrux_sha3_simd_portable__vxarq_u64_5b(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2385
libcrux_sha3_simd_portable__vxarq_u64_6f(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2386
return libcrux_sha3_simd_portable_rotate_left_6f(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2399
libcrux_sha3_simd_portable_xor_and_rotate_d2_6f(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2400
return libcrux_sha3_simd_portable__vxarq_u64_6f(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2421
libcrux_sha3_simd_portable__vxarq_u64_62(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2422
return libcrux_sha3_simd_portable_rotate_left_62(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2435
libcrux_sha3_simd_portable_xor_and_rotate_d2_62(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2436
return libcrux_sha3_simd_portable__vxarq_u64_62(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2457
libcrux_sha3_simd_portable__vxarq_u64_23(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2458
return libcrux_sha3_simd_portable_rotate_left_23(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2471
libcrux_sha3_simd_portable_xor_and_rotate_d2_23(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2472
return libcrux_sha3_simd_portable__vxarq_u64_23(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2493
libcrux_sha3_simd_portable__vxarq_u64_37(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2494
return libcrux_sha3_simd_portable_rotate_left_37(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2507
libcrux_sha3_simd_portable_xor_and_rotate_d2_37(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2508
return libcrux_sha3_simd_portable__vxarq_u64_37(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2529
libcrux_sha3_simd_portable__vxarq_u64_bb(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2530
return libcrux_sha3_simd_portable_rotate_left_bb(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2543
libcrux_sha3_simd_portable_xor_and_rotate_d2_bb(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2544
return libcrux_sha3_simd_portable__vxarq_u64_bb(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2565
libcrux_sha3_simd_portable__vxarq_u64_b9(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2566
return libcrux_sha3_simd_portable_rotate_left_b9(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2579
libcrux_sha3_simd_portable_xor_and_rotate_d2_b9(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2580
return libcrux_sha3_simd_portable__vxarq_u64_b9(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2601
libcrux_sha3_simd_portable__vxarq_u64_54(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2602
return libcrux_sha3_simd_portable_rotate_left_54(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2615
libcrux_sha3_simd_portable_xor_and_rotate_d2_54(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2616
return libcrux_sha3_simd_portable__vxarq_u64_54(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2637
libcrux_sha3_simd_portable__vxarq_u64_4c(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2638
return libcrux_sha3_simd_portable_rotate_left_4c(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2651
libcrux_sha3_simd_portable_xor_and_rotate_d2_4c(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2652
return libcrux_sha3_simd_portable__vxarq_u64_4c(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2673
libcrux_sha3_simd_portable__vxarq_u64_ce(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2674
return libcrux_sha3_simd_portable_rotate_left_ce(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2687
libcrux_sha3_simd_portable_xor_and_rotate_d2_ce(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2688
return libcrux_sha3_simd_portable__vxarq_u64_ce(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2709
libcrux_sha3_simd_portable__vxarq_u64_77(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2710
return libcrux_sha3_simd_portable_rotate_left_77(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2723
libcrux_sha3_simd_portable_xor_and_rotate_d2_77(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2724
return libcrux_sha3_simd_portable__vxarq_u64_77(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2745
libcrux_sha3_simd_portable__vxarq_u64_25(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2746
return libcrux_sha3_simd_portable_rotate_left_25(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2759
libcrux_sha3_simd_portable_xor_and_rotate_d2_25(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2760
return libcrux_sha3_simd_portable__vxarq_u64_25(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2781
libcrux_sha3_simd_portable__vxarq_u64_af(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2782
return libcrux_sha3_simd_portable_rotate_left_af(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2795
libcrux_sha3_simd_portable_xor_and_rotate_d2_af(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2796
return libcrux_sha3_simd_portable__vxarq_u64_af(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2817
libcrux_sha3_simd_portable__vxarq_u64_fd(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2818
return libcrux_sha3_simd_portable_rotate_left_fd(a ^ b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
2831
libcrux_sha3_simd_portable_xor_and_rotate_d2_fd(uint64_t a, uint64_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
2832
return libcrux_sha3_simd_portable__vxarq_u64_fd(a, b);
usr.bin/ssh/libcrux_mlkem768_sha3.h
403
size_t b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
404
if (a <= b)
usr.bin/ssh/libcrux_mlkem768_sha3.h
407
return b;
usr.bin/ssh/libcrux_mlkem768_sha3.h
6243
libcrux_ml_kem_vector_portable_vector_type_PortableVector *b, int16_t zeta,
usr.bin/ssh/libcrux_mlkem768_sha3.h
6246
int16_t bi = b->elements[(size_t)2U * i];
usr.bin/ssh/libcrux_mlkem768_sha3.h
6248
int16_t bj = b->elements[(size_t)2U * i + (size_t)1U];
usr.bin/ssh/libcrux_mlkem768_sha3.h
7271
libcrux_ml_kem_vector_portable_vector_type_PortableVector b,
usr.bin/ssh/libcrux_mlkem768_sha3.h
7274
libcrux_ml_kem_vector_portable_montgomery_multiply_by_constant_b8(b,
usr.bin/ssh/libcrux_mlkem768_sha3.h
7276
b = libcrux_ml_kem_vector_portable_sub_b8(a, &t);
usr.bin/ssh/libcrux_mlkem768_sha3.h
7280
.snd = b});
usr.bin/ssh/libcrux_mlkem768_sha3.h
7772
libcrux_ml_kem_vector_portable_vector_type_PortableVector b,
usr.bin/ssh/libcrux_mlkem768_sha3.h
7775
libcrux_ml_kem_vector_portable_sub_b8(b, &a);
usr.bin/ssh/libcrux_mlkem768_sha3.h
7777
libcrux_ml_kem_vector_portable_add_b8(a, &b));
usr.bin/ssh/libcrux_mlkem768_sha3.h
7778
b = libcrux_ml_kem_vector_portable_montgomery_multiply_by_constant_b8(
usr.bin/ssh/libcrux_mlkem768_sha3.h
7782
.snd = b});
usr.bin/ssh/libcrux_mlkem768_sha3.h
7851
libcrux_ml_kem_polynomial_PolynomialRingElement_1d b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
7858
b.coefficients[i0], (int16_t)1441);
usr.bin/ssh/libcrux_mlkem768_sha3.h
7864
b.coefficients[i0] = red;
usr.bin/ssh/libcrux_mlkem768_sha3.h
7866
return b;
usr.bin/ssh/libcrux_mlkem768_sha3.h
7883
libcrux_ml_kem_polynomial_PolynomialRingElement_1d b) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
7884
return libcrux_ml_kem_polynomial_subtract_reduce_ea(self, b);
usr.bin/ssh/mac.c
159
u_char b[4];
usr.bin/ssh/mac.c
167
put_u32(b, seqno);
usr.bin/ssh/mac.c
170
ssh_hmac_update(mac->hmac_ctx, b, sizeof(b)) < 0 ||
usr.bin/ssh/misc.c
1571
char b[3], *r;
usr.bin/ssh/misc.c
1580
snprintf(b, sizeof(b), "%02x", p[i]);
usr.bin/ssh/misc.c
1581
strlcat(r, b, hl);
usr.bin/ssh/misc.c
1975
strcmp_maybe_null(const char *a, const char *b)
usr.bin/ssh/misc.c
1977
if ((a == NULL && b != NULL) || (a != NULL && b == NULL))
usr.bin/ssh/misc.c
1979
if (a != NULL && strcmp(a, b) != 0)
usr.bin/ssh/misc.c
1989
forward_equals(const struct Forward *a, const struct Forward *b)
usr.bin/ssh/misc.c
1991
if (strcmp_maybe_null(a->listen_host, b->listen_host) == 0)
usr.bin/ssh/misc.c
1993
if (a->listen_port != b->listen_port)
usr.bin/ssh/misc.c
1995
if (strcmp_maybe_null(a->listen_path, b->listen_path) == 0)
usr.bin/ssh/misc.c
1997
if (strcmp_maybe_null(a->connect_host, b->connect_host) == 0)
usr.bin/ssh/misc.c
1999
if (a->connect_port != b->connect_port)
usr.bin/ssh/misc.c
2001
if (strcmp_maybe_null(a->connect_path, b->connect_path) == 0)
usr.bin/ssh/misc.h
260
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/ssh/misc.h
261
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.bin/ssh/monitor.c
1150
struct sshbuf *b;
usr.bin/ssh/monitor.c
1158
if ((b = sshbuf_from(data, datalen)) == NULL)
usr.bin/ssh/monitor.c
1162
p = sshbuf_ptr(b);
usr.bin/ssh/monitor.c
1163
len = sshbuf_len(b);
usr.bin/ssh/monitor.c
1168
if ((r = sshbuf_consume(b, session_id2_len)) != 0)
usr.bin/ssh/monitor.c
1171
if ((r = sshbuf_get_string_direct(b, &p, &len)) != 0)
usr.bin/ssh/monitor.c
1178
if ((r = sshbuf_get_u8(b, &type)) != 0)
usr.bin/ssh/monitor.c
1182
if ((r = sshbuf_get_cstring(b, &cp, NULL)) != 0)
usr.bin/ssh/monitor.c
1194
if ((r = sshbuf_skip_string(b)) != 0 || /* service */
usr.bin/ssh/monitor.c
1195
(r = sshbuf_get_cstring(b, &cp, NULL)) != 0)
usr.bin/ssh/monitor.c
1204
if ((r = sshbuf_get_u8(b, &type)) != 0)
usr.bin/ssh/monitor.c
1208
if ((r = sshbuf_skip_string(b)) != 0 || /* pkalg */
usr.bin/ssh/monitor.c
1209
(r = sshbuf_skip_string(b)) != 0 || /* pkblob */
usr.bin/ssh/monitor.c
1210
(hostbound && (r = sshkey_froms(b, &hostkey)) != 0))
usr.bin/ssh/monitor.c
1212
if (sshbuf_len(b) != 0)
usr.bin/ssh/monitor.c
1214
sshbuf_free(b);
usr.bin/ssh/monitor.c
1232
struct sshbuf *b;
usr.bin/ssh/monitor.c
1239
if ((b = sshbuf_from(data, datalen)) == NULL)
usr.bin/ssh/monitor.c
1241
if ((r = sshbuf_get_string_direct(b, &p, &len)) != 0)
usr.bin/ssh/monitor.c
1249
if ((r = sshbuf_get_u8(b, &type)) != 0)
usr.bin/ssh/monitor.c
1253
if ((r = sshbuf_get_cstring(b, &cp, NULL)) != 0)
usr.bin/ssh/monitor.c
1265
if ((r = sshbuf_skip_string(b)) != 0 || /* service */
usr.bin/ssh/monitor.c
1266
(r = sshbuf_get_cstring(b, &cp, NULL)) != 0)
usr.bin/ssh/monitor.c
1271
if ((r = sshbuf_skip_string(b)) != 0 || /* pkalg */
usr.bin/ssh/monitor.c
1272
(r = sshbuf_skip_string(b)) != 0) /* pkblob */
usr.bin/ssh/monitor.c
1276
if ((r = sshbuf_get_cstring(b, &cp, NULL)) != 0)
usr.bin/ssh/monitor.c
1285
if ((r = sshbuf_get_cstring(b, &cp, NULL)) != 0)
usr.bin/ssh/monitor.c
1291
if (sshbuf_len(b) != 0)
usr.bin/ssh/monitor.c
1293
sshbuf_free(b);
usr.bin/ssh/monitor.c
769
#define PUTPW(b, id) \
usr.bin/ssh/monitor.c
771
if ((r = sshbuf_put_string(b, \
usr.bin/ssh/monitor_wrap.c
353
#define GETPW(b, id) \
usr.bin/ssh/monitor_wrap.c
355
if ((r = sshbuf_get_string_direct(b, &p, &len)) != 0) \
usr.bin/ssh/mux.c
1504
mux_client_read(int fd, struct sshbuf *b, size_t need, int timeout_ms)
usr.bin/ssh/mux.c
1511
if ((r = sshbuf_reserve(b, need, &p)) != 0)
usr.bin/ssh/mux.c
598
compare_host(const char *a, const char *b)
usr.bin/ssh/mux.c
600
if (a == NULL && b == NULL)
usr.bin/ssh/mux.c
602
if (a == NULL || b == NULL)
usr.bin/ssh/mux.c
604
return strcmp(a, b) == 0;
usr.bin/ssh/mux.c
608
compare_forward(struct Forward *a, struct Forward *b)
usr.bin/ssh/mux.c
610
if (!compare_host(a->listen_host, b->listen_host))
usr.bin/ssh/mux.c
612
if (!compare_host(a->listen_path, b->listen_path))
usr.bin/ssh/mux.c
614
if (a->listen_port != b->listen_port)
usr.bin/ssh/mux.c
616
if (!compare_host(a->connect_host, b->connect_host))
usr.bin/ssh/mux.c
618
if (!compare_host(a->connect_path, b->connect_path))
usr.bin/ssh/mux.c
620
if (a->connect_port != b->connect_port)
usr.bin/ssh/packet.c
2409
struct sshbuf *b;
usr.bin/ssh/packet.c
2426
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/packet.c
2428
if ((r = sshbuf_put_cstring(b, enc->name)) != 0 ||
usr.bin/ssh/packet.c
2429
(r = sshbuf_put_u32(b, enc->enabled)) != 0 ||
usr.bin/ssh/packet.c
2430
(r = sshbuf_put_u32(b, enc->block_size)) != 0 ||
usr.bin/ssh/packet.c
2431
(r = sshbuf_put_string(b, enc->key, enc->key_len)) != 0 ||
usr.bin/ssh/packet.c
2432
(r = sshbuf_put_string(b, enc->iv, enc->iv_len)) != 0)
usr.bin/ssh/packet.c
2435
if ((r = sshbuf_put_cstring(b, mac->name)) != 0 ||
usr.bin/ssh/packet.c
2436
(r = sshbuf_put_u32(b, mac->enabled)) != 0 ||
usr.bin/ssh/packet.c
2437
(r = sshbuf_put_string(b, mac->key, mac->key_len)) != 0)
usr.bin/ssh/packet.c
2440
if ((r = sshbuf_put_u32(b, comp->type)) != 0 ||
usr.bin/ssh/packet.c
2441
(r = sshbuf_put_cstring(b, comp->name)) != 0)
usr.bin/ssh/packet.c
2443
r = sshbuf_put_stringb(m, b);
usr.bin/ssh/packet.c
2445
sshbuf_free(b);
usr.bin/ssh/packet.c
2484
struct sshbuf *b = NULL;
usr.bin/ssh/packet.c
2496
if ((r = sshbuf_froms(m, &b)) != 0)
usr.bin/ssh/packet.c
2499
sshbuf_dump(b, stderr);
usr.bin/ssh/packet.c
2505
if ((r = sshbuf_get_cstring(b, &enc->name, NULL)) != 0 ||
usr.bin/ssh/packet.c
2506
(r = sshbuf_get_u32(b, (u_int *)&enc->enabled)) != 0 ||
usr.bin/ssh/packet.c
2507
(r = sshbuf_get_u32(b, &enc->block_size)) != 0 ||
usr.bin/ssh/packet.c
2508
(r = sshbuf_get_string(b, &enc->key, &keylen)) != 0 ||
usr.bin/ssh/packet.c
2509
(r = sshbuf_get_string(b, &enc->iv, &ivlen)) != 0)
usr.bin/ssh/packet.c
2516
if ((r = sshbuf_get_cstring(b, &mac->name, NULL)) != 0)
usr.bin/ssh/packet.c
2520
if ((r = sshbuf_get_u32(b, (u_int *)&mac->enabled)) != 0 ||
usr.bin/ssh/packet.c
2521
(r = sshbuf_get_string(b, &mac->key, &maclen)) != 0)
usr.bin/ssh/packet.c
2529
if ((r = sshbuf_get_u32(b, &comp->type)) != 0 ||
usr.bin/ssh/packet.c
2530
(r = sshbuf_get_cstring(b, &comp->name, NULL)) != 0)
usr.bin/ssh/packet.c
2532
if (sshbuf_len(b) != 0) {
usr.bin/ssh/packet.c
2543
sshbuf_free(b);
usr.bin/ssh/packet.c
2659
sshpkt_putb(struct ssh *ssh, const struct sshbuf *b)
usr.bin/ssh/packet.c
2661
return sshbuf_putb(ssh->state->outgoing_packet, b);
usr.bin/ssh/packet.h
183
int sshpkt_putb(struct ssh *ssh, const struct sshbuf *b);
usr.bin/ssh/poly1305.c
12
#define mul32x32_64(a,b) ((uint64_t)(a) * (b))
usr.bin/ssh/poly1305.c
124
b = h0 >> 26; h0 = h0 & 0x3ffffff;
usr.bin/ssh/poly1305.c
125
h1 += b; b = h1 >> 26; h1 = h1 & 0x3ffffff;
usr.bin/ssh/poly1305.c
126
h2 += b; b = h2 >> 26; h2 = h2 & 0x3ffffff;
usr.bin/ssh/poly1305.c
127
h3 += b; b = h3 >> 26; h3 = h3 & 0x3ffffff;
usr.bin/ssh/poly1305.c
128
h4 += b; b = h4 >> 26; h4 = h4 & 0x3ffffff;
usr.bin/ssh/poly1305.c
129
h0 += b * 5; b = h0 >> 26; h0 = h0 & 0x3ffffff;
usr.bin/ssh/poly1305.c
130
h1 += b;
usr.bin/ssh/poly1305.c
132
g0 = h0 + 5; b = g0 >> 26; g0 &= 0x3ffffff;
usr.bin/ssh/poly1305.c
133
g1 = h1 + b; b = g1 >> 26; g1 &= 0x3ffffff;
usr.bin/ssh/poly1305.c
134
g2 = h2 + b; b = g2 >> 26; g2 &= 0x3ffffff;
usr.bin/ssh/poly1305.c
135
g3 = h3 + b; b = g3 >> 26; g3 &= 0x3ffffff;
usr.bin/ssh/poly1305.c
136
g4 = h4 + b - (1 << 26);
usr.bin/ssh/poly1305.c
138
b = (g4 >> 31) - 1;
usr.bin/ssh/poly1305.c
139
nb = ~b;
usr.bin/ssh/poly1305.c
140
h0 = (h0 & nb) | (g0 & b);
usr.bin/ssh/poly1305.c
141
h1 = (h1 & nb) | (g1 & b);
usr.bin/ssh/poly1305.c
142
h2 = (h2 & nb) | (g2 & b);
usr.bin/ssh/poly1305.c
143
h3 = (h3 & nb) | (g3 & b);
usr.bin/ssh/poly1305.c
144
h4 = (h4 & nb) | (g4 & b);
usr.bin/ssh/poly1305.c
34
uint32_t b, nb;
usr.bin/ssh/poly1305.c
93
t[1] += c; h1 = (uint32_t)t[1] & 0x3ffffff; b = (uint32_t)(t[1] >> 26);
usr.bin/ssh/poly1305.c
94
t[2] += b; h2 = (uint32_t)t[2] & 0x3ffffff; b = (uint32_t)(t[2] >> 26);
usr.bin/ssh/poly1305.c
95
t[3] += b; h3 = (uint32_t)t[3] & 0x3ffffff; b = (uint32_t)(t[3] >> 26);
usr.bin/ssh/poly1305.c
96
t[4] += b; h4 = (uint32_t)t[4] & 0x3ffffff; b = (uint32_t)(t[4] >> 26);
usr.bin/ssh/poly1305.c
97
h0 += b * 5;
usr.bin/ssh/sftp-common.c
102
decode_attrib(struct sshbuf *b, Attrib *a)
usr.bin/ssh/sftp-common.c
107
if ((r = sshbuf_get_u32(b, &a->flags)) != 0)
usr.bin/ssh/sftp-common.c
110
if ((r = sshbuf_get_u64(b, &a->size)) != 0)
usr.bin/ssh/sftp-common.c
114
if ((r = sshbuf_get_u32(b, &a->uid)) != 0 ||
usr.bin/ssh/sftp-common.c
115
(r = sshbuf_get_u32(b, &a->gid)) != 0)
usr.bin/ssh/sftp-common.c
119
if ((r = sshbuf_get_u32(b, &a->perm)) != 0)
usr.bin/ssh/sftp-common.c
123
if ((r = sshbuf_get_u32(b, &a->atime)) != 0 ||
usr.bin/ssh/sftp-common.c
124
(r = sshbuf_get_u32(b, &a->mtime)) != 0)
usr.bin/ssh/sftp-common.c
134
if ((r = sshbuf_get_u32(b, &count)) != 0)
usr.bin/ssh/sftp-common.c
139
if ((r = sshbuf_get_cstring(b, &type, NULL)) != 0 ||
usr.bin/ssh/sftp-common.c
140
(r = sshbuf_get_string(b, &data, &dlen)) != 0)
usr.bin/ssh/sftp-common.c
153
encode_attrib(struct sshbuf *b, const Attrib *a)
usr.bin/ssh/sftp-common.c
157
if ((r = sshbuf_put_u32(b, a->flags)) != 0)
usr.bin/ssh/sftp-common.c
160
if ((r = sshbuf_put_u64(b, a->size)) != 0)
usr.bin/ssh/sftp-common.c
164
if ((r = sshbuf_put_u32(b, a->uid)) != 0 ||
usr.bin/ssh/sftp-common.c
165
(r = sshbuf_put_u32(b, a->gid)) != 0)
usr.bin/ssh/sftp-common.c
169
if ((r = sshbuf_put_u32(b, a->perm)) != 0)
usr.bin/ssh/sftp-common.c
173
if ((r = sshbuf_put_u32(b, a->atime)) != 0 ||
usr.bin/ssh/sftp-common.c
174
(r = sshbuf_put_u32(b, a->mtime)) != 0)
usr.bin/ssh/sftp-usergroup.c
42
idname_cmp(struct idname *a, struct idname *b)
usr.bin/ssh/sftp-usergroup.c
44
if (a->id == b->id)
usr.bin/ssh/sftp-usergroup.c
46
return a->id > b->id ? 1 : -1;
usr.bin/ssh/sftp.c
819
SFTP_DIRENT *b = *(SFTP_DIRENT **)bb;
usr.bin/ssh/sftp.c
822
#define NCMP(a,b) (a == b ? 0 : (a < b ? 1 : -1))
usr.bin/ssh/sftp.c
824
return (rmul * strcmp(a->filename, b->filename));
usr.bin/ssh/sftp.c
826
return (rmul * NCMP(a->a.mtime, b->a.mtime));
usr.bin/ssh/sftp.c
828
return (rmul * NCMP(a->a.size, b->a.size));
usr.bin/ssh/sftp.c
927
u_int b = *(const u_int *)bb;
usr.bin/ssh/sftp.c
929
const char *bp = sort_glob->gl_pathv[b];
usr.bin/ssh/sftp.c
931
const struct stat *bs = sort_glob->gl_statv[b];
usr.bin/ssh/sftp.c
934
#define NCMP(a,b) (a == b ? 0 : (a < b ? 1 : -1))
usr.bin/ssh/smult_curve25519_ref.c
11
static void add(unsigned int out[32],const unsigned int a[32],const unsigned int b[32])
usr.bin/ssh/smult_curve25519_ref.c
110
static void select(unsigned int p[64],unsigned int q[64],const unsigned int r[64],const unsigned int s[64],unsigned int b)
usr.bin/ssh/smult_curve25519_ref.c
116
bminus1 = b - 1;
usr.bin/ssh/smult_curve25519_ref.c
142
unsigned int b;
usr.bin/ssh/smult_curve25519_ref.c
153
b = e[pos / 8] >> (pos & 7);
usr.bin/ssh/smult_curve25519_ref.c
154
b &= 1;
usr.bin/ssh/smult_curve25519_ref.c
155
select(xzmb,xzm1b,xzm,xzm1,b);
usr.bin/ssh/smult_curve25519_ref.c
16
for (j = 0;j < 31;++j) { u += a[j] + b[j]; out[j] = u & 255; u >>= 8; }
usr.bin/ssh/smult_curve25519_ref.c
17
u += a[31] + b[31]; out[31] = u;
usr.bin/ssh/smult_curve25519_ref.c
174
select(xzm,xzm1,xznb,xzn1b,b);
usr.bin/ssh/smult_curve25519_ref.c
20
static void sub(unsigned int out[32],const unsigned int a[32],const unsigned int b[32])
usr.bin/ssh/smult_curve25519_ref.c
26
u += a[j] + 65280 - b[j];
usr.bin/ssh/smult_curve25519_ref.c
30
u += a[31] - b[31];
usr.bin/ssh/smult_curve25519_ref.c
62
static void mult(unsigned int out[32],const unsigned int a[32],const unsigned int b[32])
usr.bin/ssh/smult_curve25519_ref.c
70
for (j = 0;j <= i;++j) u += a[j] * b[i - j];
usr.bin/ssh/smult_curve25519_ref.c
71
for (j = i + 1;j < 32;++j) u += 38 * a[j] * b[i + 32 - j];
usr.bin/ssh/sntrup761.c
1613
#define int32_MINMAX(a,b) crypto_int32_minmax(&a,&b)
usr.bin/ssh/sntrup761.c
1950
static void Hash_prefix(unsigned char *out, int b, const unsigned char *in, int inlen) {
usr.bin/ssh/sntrup761.c
1953
x[0] = b;
usr.bin/ssh/sntrup761.c
2091
static void HashSession(unsigned char *k, int b, const unsigned char *y, const unsigned char *z) {
usr.bin/ssh/sntrup761.c
2096
Hash_prefix(k, b, x, sizeof x);
usr.bin/ssh/srclimit.c
197
penalty_addr_cmp(struct penalty *a, struct penalty *b)
usr.bin/ssh/srclimit.c
199
return addr_cmp(&a->addr, &b->addr);
usr.bin/ssh/srclimit.c
204
penalty_expiry_cmp(struct penalty *a, struct penalty *b)
usr.bin/ssh/srclimit.c
206
if (a->expiry != b->expiry)
usr.bin/ssh/srclimit.c
207
return a->expiry < b->expiry ? -1 : 1;
usr.bin/ssh/srclimit.c
209
return addr_cmp(&a->addr, &b->addr);
usr.bin/ssh/srclimit.c
60
static int penalty_addr_cmp(struct penalty *a, struct penalty *b);
usr.bin/ssh/srclimit.c
61
static int penalty_expiry_cmp(struct penalty *a, struct penalty *b);
usr.bin/ssh/ssh-agent.c
1074
parse_dest_constraint_hop(struct sshbuf *b, struct dest_constraint_hop *dch)
usr.bin/ssh/ssh-agent.c
1083
if ((r = sshbuf_get_cstring(b, &dch->user, NULL)) != 0 ||
usr.bin/ssh/ssh-agent.c
1084
(r = sshbuf_get_cstring(b, &dch->hostname, NULL)) != 0 ||
usr.bin/ssh/ssh-agent.c
1085
(r = sshbuf_get_string_direct(b, NULL, &elen)) != 0) {
usr.bin/ssh/ssh-agent.c
1102
while (sshbuf_len(b) != 0) {
usr.bin/ssh/ssh-agent.c
1107
if ((r = sshkey_froms(b, &k)) != 0 ||
usr.bin/ssh/ssh-agent.c
1108
(r = sshbuf_get_u8(b, &key_is_ca)) != 0)
usr.bin/ssh/ssh-agent.c
1133
struct sshbuf *b = NULL, *frombuf = NULL, *tobuf = NULL;
usr.bin/ssh/ssh-agent.c
1140
if ((r = sshbuf_froms(m, &b)) != 0 ||
usr.bin/ssh/ssh-agent.c
1141
(r = sshbuf_froms(b, &frombuf)) != 0 ||
usr.bin/ssh/ssh-agent.c
1142
(r = sshbuf_froms(b, &tobuf)) != 0 ||
usr.bin/ssh/ssh-agent.c
1143
(r = sshbuf_get_string_direct(b, NULL, &elen)) != 0) {
usr.bin/ssh/ssh-agent.c
1174
sshbuf_free(b);
usr.bin/ssh/ssh-agent.c
1187
struct sshbuf *b = NULL;
usr.bin/ssh/ssh-agent.c
1218
if ((r = sshbuf_froms(m, &b)) != 0) {
usr.bin/ssh/ssh-agent.c
1222
while (sshbuf_len(b) != 0) {
usr.bin/ssh/ssh-agent.c
1230
if ((r = parse_dest_constraint(b,
usr.bin/ssh/ssh-agent.c
1247
(r = sshbuf_froms(m, &b)) != 0) {
usr.bin/ssh/ssh-agent.c
1252
while (sshbuf_len(b) != 0) {
usr.bin/ssh/ssh-agent.c
1260
if ((r = sshkey_froms(b, &k)) != 0) {
usr.bin/ssh/ssh-agent.c
1275
sshbuf_free(b);
usr.bin/ssh/ssh-agent.c
688
struct sshbuf *b = NULL, *sess_id = NULL;
usr.bin/ssh/ssh-agent.c
700
if ((b = sshbuf_fromb(msg)) == NULL)
usr.bin/ssh/ssh-agent.c
704
if ((r = sshbuf_froms(b, &sess_id)) != 0)
usr.bin/ssh/ssh-agent.c
710
if ((r = sshbuf_get_u8(b, &t)) != 0 || /* SSH2_MSG_USERAUTH_REQUEST */
usr.bin/ssh/ssh-agent.c
711
(r = sshbuf_get_cstring(b, &user, NULL)) != 0 || /* server user */
usr.bin/ssh/ssh-agent.c
712
(r = sshbuf_get_cstring(b, &service, NULL)) != 0 || /* service */
usr.bin/ssh/ssh-agent.c
713
(r = sshbuf_get_cstring(b, &method, NULL)) != 0 || /* method */
usr.bin/ssh/ssh-agent.c
714
(r = sshbuf_get_u8(b, &sig_follows)) != 0 || /* sig-follows */
usr.bin/ssh/ssh-agent.c
715
(r = sshbuf_get_cstring(b, &pkalg, NULL)) != 0 || /* alg */
usr.bin/ssh/ssh-agent.c
716
(r = sshkey_froms(b, &mkey)) != 0) /* key */
usr.bin/ssh/ssh-agent.c
727
if ((r = sshkey_froms(b, &hostkey)) != 0)
usr.bin/ssh/ssh-agent.c
733
if (sshbuf_len(b) != 0) {
usr.bin/ssh/ssh-agent.c
753
sshbuf_free(b);
usr.bin/ssh/ssh-agent.c
772
struct sshbuf *b;
usr.bin/ssh/ssh-agent.c
774
if ((b = sshbuf_fromb(msg)) == NULL)
usr.bin/ssh/ssh-agent.c
777
if ((r = sshbuf_cmp(b, 0, "SSHSIG", 6)) != 0 ||
usr.bin/ssh/ssh-agent.c
778
(r = sshbuf_consume(b, 6)) != 0 ||
usr.bin/ssh/ssh-agent.c
779
(r = sshbuf_get_cstring(b, NULL, NULL)) != 0 || /* namespace */
usr.bin/ssh/ssh-agent.c
780
(r = sshbuf_get_string_direct(b, NULL, NULL)) != 0 || /* reserved */
usr.bin/ssh/ssh-agent.c
781
(r = sshbuf_get_cstring(b, NULL, NULL)) != 0 || /* hashalg */
usr.bin/ssh/ssh-agent.c
782
(r = sshbuf_get_string_direct(b, NULL, NULL)) != 0) /* H(msg) */
usr.bin/ssh/ssh-agent.c
784
if (sshbuf_len(b) != 0) {
usr.bin/ssh/ssh-agent.c
791
sshbuf_free(b);
usr.bin/ssh/ssh-agent.c
821
buf_equal(const struct sshbuf *a, const struct sshbuf *b)
usr.bin/ssh/ssh-agent.c
823
if (sshbuf_ptr(a) == NULL || sshbuf_ptr(b) == NULL)
usr.bin/ssh/ssh-agent.c
825
if (sshbuf_len(a) != sshbuf_len(b))
usr.bin/ssh/ssh-agent.c
827
if (timingsafe_bcmp(sshbuf_ptr(a), sshbuf_ptr(b), sshbuf_len(a)) != 0)
usr.bin/ssh/ssh-ecdsa-sk.c
110
ssh_ecdsa_sk_deserialize_public(const char *ktype, struct sshbuf *b,
usr.bin/ssh/ssh-ecdsa-sk.c
115
if ((r = sshkey_ecdsa_funcs.deserialize_public(ktype, b, key)) != 0)
usr.bin/ssh/ssh-ecdsa-sk.c
117
if ((r = sshkey_deserialize_sk(b, key)) != 0)
usr.bin/ssh/ssh-ecdsa-sk.c
123
ssh_ecdsa_sk_deserialize_private(const char *ktype, struct sshbuf *b,
usr.bin/ssh/ssh-ecdsa-sk.c
130
b, key)) != 0)
usr.bin/ssh/ssh-ecdsa-sk.c
133
if ((r = sshkey_private_deserialize_sk(b, key)) != 0)
usr.bin/ssh/ssh-ecdsa-sk.c
229
struct sshbuf *b = NULL, *sigbuf = NULL, *original_signed = NULL;
usr.bin/ssh/ssh-ecdsa-sk.c
248
if ((b = sshbuf_from(sig, siglen)) == NULL)
usr.bin/ssh/ssh-ecdsa-sk.c
254
if (sshbuf_get_cstring(b, &ktype, NULL) != 0) {
usr.bin/ssh/ssh-ecdsa-sk.c
266
if (sshbuf_froms(b, &sigbuf) != 0 ||
usr.bin/ssh/ssh-ecdsa-sk.c
267
sshbuf_get_u8(b, &sig_flags) != 0 ||
usr.bin/ssh/ssh-ecdsa-sk.c
268
sshbuf_get_u32(b, &sig_counter) != 0) {
usr.bin/ssh/ssh-ecdsa-sk.c
273
if (sshbuf_get_cstring(b, &webauthn_origin, NULL) != 0 ||
usr.bin/ssh/ssh-ecdsa-sk.c
274
sshbuf_froms(b, &webauthn_wrapper) != 0 ||
usr.bin/ssh/ssh-ecdsa-sk.c
275
sshbuf_froms(b, &webauthn_exts) != 0) {
usr.bin/ssh/ssh-ecdsa-sk.c
280
if (sshbuf_len(b) != 0) {
usr.bin/ssh/ssh-ecdsa-sk.c
415
sshbuf_free(b);
usr.bin/ssh/ssh-ecdsa-sk.c
57
ssh_ecdsa_sk_equal(const struct sshkey *a, const struct sshkey *b)
usr.bin/ssh/ssh-ecdsa-sk.c
59
if (!sshkey_sk_fields_equal(a, b))
usr.bin/ssh/ssh-ecdsa-sk.c
61
if (!sshkey_ecdsa_funcs.equal(a, b))
usr.bin/ssh/ssh-ecdsa-sk.c
67
ssh_ecdsa_sk_serialize_public(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/ssh-ecdsa-sk.c
72
if ((r = sshkey_ecdsa_funcs.serialize_public(key, b, opts)) != 0)
usr.bin/ssh/ssh-ecdsa-sk.c
74
if ((r = sshkey_serialize_sk(key, b)) != 0)
usr.bin/ssh/ssh-ecdsa-sk.c
81
ssh_ecdsa_sk_serialize_private(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/ssh-ecdsa-sk.c
88
b, opts)) != 0)
usr.bin/ssh/ssh-ecdsa-sk.c
91
if ((r = sshkey_serialize_private_sk(key, b)) != 0)
usr.bin/ssh/ssh-ecdsa.c
117
ssh_ecdsa_equal(const struct sshkey *a, const struct sshkey *b)
usr.bin/ssh/ssh-ecdsa.c
119
if (a->pkey == NULL || b->pkey == NULL)
usr.bin/ssh/ssh-ecdsa.c
121
return EVP_PKEY_cmp(a->pkey, b->pkey) == 1;
usr.bin/ssh/ssh-ecdsa.c
125
ssh_ecdsa_serialize_public(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/ssh-ecdsa.c
132
if ((r = sshbuf_put_cstring(b,
usr.bin/ssh/ssh-ecdsa.c
134
(r = sshbuf_put_ec_pkey(b, key->pkey)) != 0)
usr.bin/ssh/ssh-ecdsa.c
141
ssh_ecdsa_serialize_private(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/ssh-ecdsa.c
147
if ((r = ssh_ecdsa_serialize_public(key, b, opts)) != 0)
usr.bin/ssh/ssh-ecdsa.c
150
if ((r = sshbuf_put_bignum2(b,
usr.bin/ssh/ssh-ecdsa.c
220
ssh_ecdsa_deserialize_public(const char *ktype, struct sshbuf *b,
usr.bin/ssh/ssh-ecdsa.c
230
if ((r = sshbuf_get_cstring(b, &curve, NULL)) != 0)
usr.bin/ssh/ssh-ecdsa.c
240
if ((r = sshbuf_get_eckey(b, ec)) != 0)
usr.bin/ssh/ssh-ecdsa.c
273
ssh_ecdsa_deserialize_private(const char *ktype, struct sshbuf *b,
usr.bin/ssh/ssh-ecdsa.c
281
if ((r = ssh_ecdsa_deserialize_public(ktype, b, key)) != 0)
usr.bin/ssh/ssh-ecdsa.c
284
if ((r = sshbuf_get_bignum2(b, &exponent)) != 0)
usr.bin/ssh/ssh-ecdsa.c
361
struct sshbuf *b = NULL, *bb = NULL;
usr.bin/ssh/ssh-ecdsa.c
370
if ((bb = sshbuf_new()) == NULL || (b = sshbuf_new()) == NULL) {
usr.bin/ssh/ssh-ecdsa.c
377
if ((ret = sshbuf_put_cstring(b, sshkey_ssh_name_plain(key))) != 0 ||
usr.bin/ssh/ssh-ecdsa.c
378
(ret = sshbuf_put_stringb(b, bb)) != 0)
usr.bin/ssh/ssh-ecdsa.c
380
len = sshbuf_len(b);
usr.bin/ssh/ssh-ecdsa.c
386
memcpy(*sigp, sshbuf_ptr(b), len);
usr.bin/ssh/ssh-ecdsa.c
392
sshbuf_free(b);
usr.bin/ssh/ssh-ecdsa.c
407
struct sshbuf *b = NULL, *sigbuf = NULL;
usr.bin/ssh/ssh-ecdsa.c
420
if ((b = sshbuf_from(sig, siglen)) == NULL)
usr.bin/ssh/ssh-ecdsa.c
422
if (sshbuf_get_cstring(b, &ktype, NULL) != 0 ||
usr.bin/ssh/ssh-ecdsa.c
423
sshbuf_froms(b, &sigbuf) != 0) {
usr.bin/ssh/ssh-ecdsa.c
431
if (sshbuf_len(b) != 0) {
usr.bin/ssh/ssh-ecdsa.c
478
sshbuf_free(b);
usr.bin/ssh/ssh-ed25519-sk.c
100
if ((r = sshkey_ed25519_funcs.deserialize_public(ktype, b, key)) != 0)
usr.bin/ssh/ssh-ed25519-sk.c
102
if ((r = sshkey_deserialize_sk(b, key)) != 0)
usr.bin/ssh/ssh-ed25519-sk.c
108
ssh_ed25519_sk_deserialize_private(const char *ktype, struct sshbuf *b,
usr.bin/ssh/ssh-ed25519-sk.c
113
if ((r = sshkey_ed25519_funcs.deserialize_public(ktype, b, key)) != 0)
usr.bin/ssh/ssh-ed25519-sk.c
115
if ((r = sshkey_private_deserialize_sk(b, key)) != 0)
usr.bin/ssh/ssh-ed25519-sk.c
126
struct sshbuf *b = NULL;
usr.bin/ssh/ssh-ed25519-sk.c
151
if ((b = sshbuf_from(sig, siglen)) == NULL)
usr.bin/ssh/ssh-ed25519-sk.c
153
if (sshbuf_get_cstring(b, &ktype, NULL) != 0 ||
usr.bin/ssh/ssh-ed25519-sk.c
154
sshbuf_get_string_direct(b, &sigblob, &len) != 0 ||
usr.bin/ssh/ssh-ed25519-sk.c
155
sshbuf_get_u8(b, &sig_flags) != 0 ||
usr.bin/ssh/ssh-ed25519-sk.c
156
sshbuf_get_u32(b, &sig_counter) != 0) {
usr.bin/ssh/ssh-ed25519-sk.c
172
if (sshbuf_len(b) != 0) {
usr.bin/ssh/ssh-ed25519-sk.c
241
sshbuf_free(b);
usr.bin/ssh/ssh-ed25519-sk.c
45
ssh_ed25519_sk_equal(const struct sshkey *a, const struct sshkey *b)
usr.bin/ssh/ssh-ed25519-sk.c
47
if (!sshkey_sk_fields_equal(a, b))
usr.bin/ssh/ssh-ed25519-sk.c
49
if (!sshkey_ed25519_funcs.equal(a, b))
usr.bin/ssh/ssh-ed25519-sk.c
55
ssh_ed25519_sk_serialize_public(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/ssh-ed25519-sk.c
60
if ((r = sshkey_ed25519_funcs.serialize_public(key, b, opts)) != 0)
usr.bin/ssh/ssh-ed25519-sk.c
62
if ((r = sshkey_serialize_sk(key, b)) != 0)
usr.bin/ssh/ssh-ed25519-sk.c
69
ssh_ed25519_sk_serialize_private(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/ssh-ed25519-sk.c
74
if ((r = sshkey_ed25519_funcs.serialize_public(key, b, opts)) != 0)
usr.bin/ssh/ssh-ed25519-sk.c
76
if ((r = sshkey_serialize_private_sk(key, b)) != 0)
usr.bin/ssh/ssh-ed25519-sk.c
95
ssh_ed25519_sk_deserialize_public(const char *ktype, struct sshbuf *b,
usr.bin/ssh/ssh-ed25519.c
100
ssh_ed25519_deserialize_public(const char *ktype, struct sshbuf *b,
usr.bin/ssh/ssh-ed25519.c
107
if ((r = sshbuf_get_string(b, &pk, &len)) != 0)
usr.bin/ssh/ssh-ed25519.c
118
ssh_ed25519_deserialize_private(const char *ktype, struct sshbuf *b,
usr.bin/ssh/ssh-ed25519.c
125
if ((r = ssh_ed25519_deserialize_public(NULL, b, key)) != 0)
usr.bin/ssh/ssh-ed25519.c
127
if ((r = sshbuf_get_string(b, &ed25519_sk, &sklen)) != 0)
usr.bin/ssh/ssh-ed25519.c
187
struct sshbuf *b = NULL;
usr.bin/ssh/ssh-ed25519.c
200
if ((b = sshbuf_new()) == NULL) {
usr.bin/ssh/ssh-ed25519.c
204
if ((r = sshbuf_put_cstring(b, "ssh-ed25519")) != 0 ||
usr.bin/ssh/ssh-ed25519.c
205
(r = sshbuf_put_string(b, sig, slen)) != 0)
usr.bin/ssh/ssh-ed25519.c
207
len = sshbuf_len(b);
usr.bin/ssh/ssh-ed25519.c
213
memcpy(*sigp, sshbuf_ptr(b), len);
usr.bin/ssh/ssh-ed25519.c
220
sshbuf_free(b);
usr.bin/ssh/ssh-ed25519.c
230
struct sshbuf *b = NULL;
usr.bin/ssh/ssh-ed25519.c
245
if ((b = sshbuf_from(sig, siglen)) == NULL)
usr.bin/ssh/ssh-ed25519.c
247
if ((r = sshbuf_get_cstring(b, &ktype, NULL)) != 0 ||
usr.bin/ssh/ssh-ed25519.c
248
(r = sshbuf_get_string_direct(b, &sigblob, &len)) != 0)
usr.bin/ssh/ssh-ed25519.c
254
if (sshbuf_len(b) != 0) {
usr.bin/ssh/ssh-ed25519.c
290
sshbuf_free(b);
usr.bin/ssh/ssh-ed25519.c
42
ssh_ed25519_equal(const struct sshkey *a, const struct sshkey *b)
usr.bin/ssh/ssh-ed25519.c
44
if (a->ed25519_pk == NULL || b->ed25519_pk == NULL)
usr.bin/ssh/ssh-ed25519.c
46
if (memcmp(a->ed25519_pk, b->ed25519_pk, ED25519_PK_SZ) != 0)
usr.bin/ssh/ssh-ed25519.c
52
ssh_ed25519_serialize_public(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/ssh-ed25519.c
59
if ((r = sshbuf_put_string(b, key->ed25519_pk, ED25519_PK_SZ)) != 0)
usr.bin/ssh/ssh-ed25519.c
66
ssh_ed25519_serialize_private(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/ssh-ed25519.c
71
if ((r = sshbuf_put_string(b, key->ed25519_pk, ED25519_PK_SZ)) != 0 ||
usr.bin/ssh/ssh-ed25519.c
72
(r = sshbuf_put_string(b, key->ed25519_sk, ED25519_SK_SZ)) != 0)
usr.bin/ssh/ssh-keygen.c
1569
const struct cert_ext *b = (const struct cert_ext *)_b;
usr.bin/ssh/ssh-keygen.c
1572
if (a->crit != b->crit)
usr.bin/ssh/ssh-keygen.c
1573
return (a->crit < b->crit) ? -1 : 1;
usr.bin/ssh/ssh-keygen.c
1574
if ((r = strcmp(a->key, b->key)) != 0)
usr.bin/ssh/ssh-keygen.c
1576
if ((a->val == NULL) != (b->val == NULL))
usr.bin/ssh/ssh-keygen.c
1578
if (a->val != NULL && (r = strcmp(a->val, b->val)) != 0)
usr.bin/ssh/ssh-keygen.c
1588
struct sshbuf *b;
usr.bin/ssh/ssh-keygen.c
1593
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/ssh-keygen.c
1610
sshbuf_reset(b);
usr.bin/ssh/ssh-keygen.c
1612
(r = sshbuf_put_cstring(b, ext->val)) != 0 ||
usr.bin/ssh/ssh-keygen.c
1613
(r = sshbuf_put_stringb(c, b)) != 0)
usr.bin/ssh/ssh-keygen.c
1617
sshbuf_free(b);
usr.bin/ssh/ssh-keygen.c
2177
struct sshbuf *b;
usr.bin/ssh/ssh-keygen.c
2195
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/ssh-keygen.c
2197
if ((r = sshbuf_b64tod(b, tmp)) != 0)
usr.bin/ssh/ssh-keygen.c
2200
*lenp = sshbuf_len(b);
usr.bin/ssh/ssh-keygen.c
2202
memcpy(*blobp, sshbuf_ptr(b), *lenp);
usr.bin/ssh/ssh-keygen.c
2203
sshbuf_free(b);
usr.bin/ssh/ssh-keygen.c
318
struct sshbuf *b;
usr.bin/ssh/ssh-keygen.c
322
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/ssh-keygen.c
324
if ((r = sshkey_putb(k, b)) != 0)
usr.bin/ssh/ssh-keygen.c
326
if ((b64 = sshbuf_dtob64_string(b, 1)) == NULL)
usr.bin/ssh/ssh-keygen.c
336
sshbuf_free(b);
usr.bin/ssh/ssh-keygen.c
415
buffer_get_bignum_bits(struct sshbuf *b, BIGNUM *value)
usr.bin/ssh/ssh-keygen.c
420
if ((r = sshbuf_get_u32(b, &bignum_bits)) != 0)
usr.bin/ssh/ssh-keygen.c
423
if (sshbuf_len(b) < bytes)
usr.bin/ssh/ssh-keygen.c
425
bytes, sshbuf_len(b));
usr.bin/ssh/ssh-keygen.c
426
if (BN_bin2bn(sshbuf_ptr(b), bytes, value) == NULL)
usr.bin/ssh/ssh-keygen.c
428
if ((r = sshbuf_consume(b, bytes)) != 0)
usr.bin/ssh/ssh-keygen.c
433
do_convert_private_ssh2(struct sshbuf *b)
usr.bin/ssh/ssh-keygen.c
448
if ((r = sshbuf_get_u32(b, &magic)) != 0)
usr.bin/ssh/ssh-keygen.c
456
if ((r = sshbuf_get_u32(b, &i1)) != 0 ||
usr.bin/ssh/ssh-keygen.c
457
(r = sshbuf_get_cstring(b, &type, NULL)) != 0 ||
usr.bin/ssh/ssh-keygen.c
458
(r = sshbuf_get_cstring(b, &cipher, NULL)) != 0 ||
usr.bin/ssh/ssh-keygen.c
459
(r = sshbuf_get_u32(b, &i2)) != 0 ||
usr.bin/ssh/ssh-keygen.c
460
(r = sshbuf_get_u32(b, &i3)) != 0 ||
usr.bin/ssh/ssh-keygen.c
461
(r = sshbuf_get_u32(b, &i4)) != 0)
usr.bin/ssh/ssh-keygen.c
484
if ((r = sshbuf_get_u8(b, &e1)) != 0 ||
usr.bin/ssh/ssh-keygen.c
485
(e1 < 30 && (r = sshbuf_get_u8(b, &e2)) != 0) ||
usr.bin/ssh/ssh-keygen.c
486
(e1 < 30 && (r = sshbuf_get_u8(b, &e3)) != 0))
usr.bin/ssh/ssh-keygen.c
511
buffer_get_bignum_bits(b, rsa_d);
usr.bin/ssh/ssh-keygen.c
512
buffer_get_bignum_bits(b, rsa_n);
usr.bin/ssh/ssh-keygen.c
513
buffer_get_bignum_bits(b, rsa_iqmp);
usr.bin/ssh/ssh-keygen.c
514
buffer_get_bignum_bits(b, rsa_q);
usr.bin/ssh/ssh-keygen.c
515
buffer_get_bignum_bits(b, rsa_p);
usr.bin/ssh/ssh-keygen.c
539
rlen = sshbuf_len(b);
usr.bin/ssh/ssh-keysign.c
106
if ((r = sshbuf_get_cstring(b, &p, NULL)) != 0)
usr.bin/ssh/ssh-keysign.c
113
if ((r = sshbuf_get_cstring(b, &pkalg, NULL)) != 0 ||
usr.bin/ssh/ssh-keysign.c
114
(r = sshbuf_get_string(b, &pkblob, &blen)) != 0)
usr.bin/ssh/ssh-keysign.c
127
if ((r = sshbuf_get_cstring(b, &p, &len)) != 0)
usr.bin/ssh/ssh-keysign.c
141
if ((r = sshbuf_get_cstring(b, &luser, NULL)) != 0)
usr.bin/ssh/ssh-keysign.c
149
if (sshbuf_len(b) != 0)
usr.bin/ssh/ssh-keysign.c
151
sshbuf_free(b);
usr.bin/ssh/ssh-keysign.c
175
struct sshbuf *b;
usr.bin/ssh/ssh-keysign.c
251
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/ssh-keysign.c
253
if (ssh_msg_recv(STDIN_FILENO, b) < 0)
usr.bin/ssh/ssh-keysign.c
255
if ((r = sshbuf_get_u8(b, &rver)) != 0)
usr.bin/ssh/ssh-keysign.c
260
if ((r = sshbuf_get_u32(b, (u_int *)&fd)) != 0)
usr.bin/ssh/ssh-keysign.c
267
if ((r = sshbuf_get_string(b, &data, &dlen)) != 0)
usr.bin/ssh/ssh-keysign.c
295
sshbuf_reset(b);
usr.bin/ssh/ssh-keysign.c
296
if ((r = sshbuf_put_string(b, signature, slen)) != 0)
usr.bin/ssh/ssh-keysign.c
298
if (ssh_msg_send(STDOUT_FILENO, version, b) == -1)
usr.bin/ssh/ssh-keysign.c
63
struct sshbuf *b;
usr.bin/ssh/ssh-keysign.c
77
if ((b = sshbuf_from(data, datalen)) == NULL)
usr.bin/ssh/ssh-keysign.c
81
if ((r = sshbuf_get_string(b, NULL, &len)) != 0)
usr.bin/ssh/ssh-keysign.c
89
if ((r = sshbuf_get_u8(b, &type)) != 0)
usr.bin/ssh/ssh-keysign.c
95
if ((r = sshbuf_skip_string(b)) != 0)
usr.bin/ssh/ssh-keysign.c
99
if ((r = sshbuf_get_cstring(b, &p, NULL)) != 0)
usr.bin/ssh/ssh-rsa.c
100
if ((r = sshbuf_put_bignum2(b, rsa_n)) != 0 ||
usr.bin/ssh/ssh-rsa.c
101
(r = sshbuf_put_bignum2(b, rsa_e)) != 0)
usr.bin/ssh/ssh-rsa.c
104
if ((r = sshbuf_put_bignum2(b, rsa_d)) != 0 ||
usr.bin/ssh/ssh-rsa.c
105
(r = sshbuf_put_bignum2(b, rsa_iqmp)) != 0 ||
usr.bin/ssh/ssh-rsa.c
106
(r = sshbuf_put_bignum2(b, rsa_p)) != 0 ||
usr.bin/ssh/ssh-rsa.c
107
(r = sshbuf_put_bignum2(b, rsa_q)) != 0)
usr.bin/ssh/ssh-rsa.c
188
ssh_rsa_deserialize_public(const char *ktype, struct sshbuf *b,
usr.bin/ssh/ssh-rsa.c
198
if (sshbuf_get_bignum2(b, &rsa_e) != 0 ||
usr.bin/ssh/ssh-rsa.c
199
sshbuf_get_bignum2(b, &rsa_n) != 0) {
usr.bin/ssh/ssh-rsa.c
227
ssh_rsa_deserialize_private(const char *ktype, struct sshbuf *b,
usr.bin/ssh/ssh-rsa.c
248
if ((r = sshbuf_get_bignum2(b, &rsa_n)) != 0 ||
usr.bin/ssh/ssh-rsa.c
249
(r = sshbuf_get_bignum2(b, &rsa_e)) != 0)
usr.bin/ssh/ssh-rsa.c
257
if ((r = sshbuf_get_bignum2(b, &rsa_d)) != 0 ||
usr.bin/ssh/ssh-rsa.c
258
(r = sshbuf_get_bignum2(b, &rsa_iqmp)) != 0 ||
usr.bin/ssh/ssh-rsa.c
259
(r = sshbuf_get_bignum2(b, &rsa_p)) != 0 ||
usr.bin/ssh/ssh-rsa.c
260
(r = sshbuf_get_bignum2(b, &rsa_q)) != 0)
usr.bin/ssh/ssh-rsa.c
452
struct sshbuf *b = NULL;
usr.bin/ssh/ssh-rsa.c
462
if ((b = sshbuf_new()) == NULL) {
usr.bin/ssh/ssh-rsa.c
466
if ((ret = sshbuf_put_cstring(b,
usr.bin/ssh/ssh-rsa.c
468
(ret = sshbuf_put_string(b, sig, slen)) != 0)
usr.bin/ssh/ssh-rsa.c
470
len = sshbuf_len(b);
usr.bin/ssh/ssh-rsa.c
478
memcpy(*sigp, sshbuf_ptr(b), len);
usr.bin/ssh/ssh-rsa.c
484
sshbuf_free(b);
usr.bin/ssh/ssh-rsa.c
497
struct sshbuf *b = NULL;
usr.bin/ssh/ssh-rsa.c
507
if ((b = sshbuf_from(sig, siglen)) == NULL)
usr.bin/ssh/ssh-rsa.c
509
if (sshbuf_get_cstring(b, &sigtype, NULL) != 0) {
usr.bin/ssh/ssh-rsa.c
531
if (sshbuf_get_string(b, &sigblob, &len) != 0) {
usr.bin/ssh/ssh-rsa.c
535
if (sshbuf_len(b) != 0) {
usr.bin/ssh/ssh-rsa.c
56
ssh_rsa_equal(const struct sshkey *a, const struct sshkey *b)
usr.bin/ssh/ssh-rsa.c
569
sshbuf_free(b);
usr.bin/ssh/ssh-rsa.c
58
if (a->pkey == NULL || b->pkey == NULL)
usr.bin/ssh/ssh-rsa.c
60
return EVP_PKEY_cmp(a->pkey, b->pkey) == 1;
usr.bin/ssh/ssh-rsa.c
64
ssh_rsa_serialize_public(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/ssh-rsa.c
77
if ((r = sshbuf_put_bignum2(b, rsa_e)) != 0 ||
usr.bin/ssh/ssh-rsa.c
78
(r = sshbuf_put_bignum2(b, rsa_n)) != 0)
usr.bin/ssh/ssh-rsa.c
85
ssh_rsa_serialize_private(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/ssh-sk.c
191
struct sshbuf *b = NULL;
usr.bin/ssh/ssh-sk.c
207
(b = sshbuf_new()) == NULL) {
usr.bin/ssh/ssh-sk.c
212
if ((r = sshbuf_put_string(b,
usr.bin/ssh/ssh-sk.c
217
if ((r = sshbuf_get_ec(b, q, g)) != 0) {
usr.bin/ssh/ssh-sk.c
249
sshbuf_free(b);
usr.bin/ssh/sshbuf-misc.c
208
struct sshbuf *b = NULL;
usr.bin/ssh/sshbuf-misc.c
214
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/sshbuf-misc.c
217
if ((r = sshbuf_dtob64(d, b, wrap)) != 0)
usr.bin/ssh/sshbuf-misc.c
221
l = sshbuf_len(b);
usr.bin/ssh/sshbuf-misc.c
222
if (l <= 1 || sshbuf_ptr(b) == NULL) {
usr.bin/ssh/sshbuf-misc.c
226
if (sshbuf_ptr(b)[l - 1] != '=')
usr.bin/ssh/sshbuf-misc.c
228
if ((r = sshbuf_consume_end(b, 1)) != 0)
usr.bin/ssh/sshbuf-misc.c
232
l = sshbuf_len(b);
usr.bin/ssh/sshbuf-misc.c
233
if ((p = sshbuf_mutable_ptr(b)) == NULL) {
usr.bin/ssh/sshbuf-misc.c
243
r = sshbuf_putb(b64, b);
usr.bin/ssh/sshbuf-misc.c
245
sshbuf_free(b);
usr.bin/ssh/sshbuf-misc.c
273
sshbuf_cmp(const struct sshbuf *b, size_t offset,
usr.bin/ssh/sshbuf-misc.c
276
if (sshbuf_ptr(b) == NULL)
usr.bin/ssh/sshbuf-misc.c
280
if (offset + len > sshbuf_len(b))
usr.bin/ssh/sshbuf-misc.c
282
if (timingsafe_bcmp(sshbuf_ptr(b) + offset, s, len) != 0)
usr.bin/ssh/sshbuf-misc.c
288
sshbuf_equals(const struct sshbuf *a, const struct sshbuf *b)
usr.bin/ssh/sshbuf-misc.c
290
if (sshbuf_ptr(a) == NULL || sshbuf_ptr(b) == NULL)
usr.bin/ssh/sshbuf-misc.c
292
if (sshbuf_len(a) != sshbuf_len(b))
usr.bin/ssh/sshbuf-misc.c
296
if (memcmp(sshbuf_ptr(a), sshbuf_ptr(b), sshbuf_len(a)) != 0)
usr.bin/ssh/sshbuf-misc.c
302
sshbuf_find(const struct sshbuf *b, size_t start_offset,
usr.bin/ssh/sshbuf-misc.c
309
if (sshbuf_ptr(b) == NULL)
usr.bin/ssh/sshbuf-misc.c
313
if (start_offset > sshbuf_len(b) || start_offset + len > sshbuf_len(b))
usr.bin/ssh/sshbuf-misc.c
315
if ((p = memmem(sshbuf_ptr(b) + start_offset,
usr.bin/ssh/sshbuf-misc.c
316
sshbuf_len(b) - start_offset, s, len)) == NULL)
usr.bin/ssh/sshbuf-misc.c
319
*offsetp = (const u_char *)p - sshbuf_ptr(b);
usr.bin/ssh/sshbuf.h
289
int sshbuf_cmp(const struct sshbuf *b, size_t offset,
usr.bin/ssh/sshbuf.h
299
int sshbuf_equals(const struct sshbuf *a, const struct sshbuf *b);
usr.bin/ssh/sshbuf.h
310
sshbuf_find(const struct sshbuf *b, size_t start_offset,
usr.bin/ssh/sshconnect2.c
1311
struct sshbuf *b = NULL;
usr.bin/ssh/sshconnect2.c
1396
sshbuf_free(b);
usr.bin/ssh/sshconnect2.c
1397
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/sshconnect2.c
1400
if ((r = sshbuf_putb(b, ssh->kex->session_id)) != 0)
usr.bin/ssh/sshconnect2.c
1403
if ((r = sshbuf_put_stringb(b,
usr.bin/ssh/sshconnect2.c
1407
skip = sshbuf_len(b);
usr.bin/ssh/sshconnect2.c
1408
if ((r = sshbuf_put_u8(b, SSH2_MSG_USERAUTH_REQUEST)) != 0 ||
usr.bin/ssh/sshconnect2.c
1409
(r = sshbuf_put_cstring(b, authctxt->server_user)) != 0 ||
usr.bin/ssh/sshconnect2.c
1410
(r = sshbuf_put_cstring(b, authctxt->service)) != 0 ||
usr.bin/ssh/sshconnect2.c
1411
(r = sshbuf_put_cstring(b, method)) != 0 ||
usr.bin/ssh/sshconnect2.c
1412
(r = sshbuf_put_u8(b, 1)) != 0 ||
usr.bin/ssh/sshconnect2.c
1413
(r = sshbuf_put_cstring(b, alg)) != 0 ||
usr.bin/ssh/sshconnect2.c
1414
(r = sshkey_puts(id->key, b)) != 0) {
usr.bin/ssh/sshconnect2.c
1422
if ((r = sshkey_puts(ssh->kex->initial_hostkey, b)) != 0)
usr.bin/ssh/sshconnect2.c
1427
sshbuf_ptr(b), sshbuf_len(b), ssh->compat, alg);
usr.bin/ssh/sshconnect2.c
1451
if ((r = sshbuf_put_string(b, signature, slen)) != 0)
usr.bin/ssh/sshconnect2.c
1455
sshbuf_dump(b, stderr);
usr.bin/ssh/sshconnect2.c
1458
if ((r = sshbuf_consume(b, skip + 1)) != 0)
usr.bin/ssh/sshconnect2.c
1463
(r = sshpkt_putb(ssh, b)) != 0 ||
usr.bin/ssh/sshconnect2.c
1473
sshbuf_free(b);
usr.bin/ssh/sshconnect2.c
2020
struct sshbuf *b;
usr.bin/ssh/sshconnect2.c
2079
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/sshconnect2.c
2082
if ((r = sshbuf_put_u32(b, sock)) != 0 ||
usr.bin/ssh/sshconnect2.c
2083
(r = sshbuf_put_string(b, data, datalen)) != 0)
usr.bin/ssh/sshconnect2.c
2085
if (ssh_msg_send(to[1], version, b) == -1)
usr.bin/ssh/sshconnect2.c
2087
sshbuf_reset(b);
usr.bin/ssh/sshconnect2.c
2088
r = ssh_msg_recv(from[0], b);
usr.bin/ssh/sshconnect2.c
2111
if ((r = sshbuf_get_u8(b, &rversion)) != 0) {
usr.bin/ssh/sshconnect2.c
2119
if ((r = sshbuf_get_string(b, sigp, lenp)) != 0) {
usr.bin/ssh/sshconnect2.c
2123
sshbuf_free(b);
usr.bin/ssh/sshconnect2.c
2127
sshbuf_free(b);
usr.bin/ssh/sshconnect2.c
2137
struct sshbuf *b = NULL;
usr.bin/ssh/sshconnect2.c
2209
if ((b = sshbuf_new()) == NULL) {
usr.bin/ssh/sshconnect2.c
2217
if ((r = sshbuf_put_stringb(b, ssh->kex->session_id)) != 0 ||
usr.bin/ssh/sshconnect2.c
2218
(r = sshbuf_put_u8(b, SSH2_MSG_USERAUTH_REQUEST)) != 0 ||
usr.bin/ssh/sshconnect2.c
2219
(r = sshbuf_put_cstring(b, authctxt->server_user)) != 0 ||
usr.bin/ssh/sshconnect2.c
2220
(r = sshbuf_put_cstring(b, authctxt->service)) != 0 ||
usr.bin/ssh/sshconnect2.c
2221
(r = sshbuf_put_cstring(b, authctxt->method->name)) != 0 ||
usr.bin/ssh/sshconnect2.c
2222
(r = sshbuf_put_cstring(b, authctxt->active_ktype)) != 0 ||
usr.bin/ssh/sshconnect2.c
2223
(r = sshbuf_put_string(b, keyblob, keylen)) != 0 ||
usr.bin/ssh/sshconnect2.c
2224
(r = sshbuf_put_cstring(b, chost)) != 0 ||
usr.bin/ssh/sshconnect2.c
2225
(r = sshbuf_put_cstring(b, authctxt->local_user)) != 0) {
usr.bin/ssh/sshconnect2.c
2231
sshbuf_dump(b, stderr);
usr.bin/ssh/sshconnect2.c
2234
sshbuf_ptr(b), sshbuf_len(b))) != 0) {
usr.bin/ssh/sshconnect2.c
2262
sshbuf_free(b);
usr.bin/ssh/sshconnect2.c
2353
struct sshbuf *b;
usr.bin/ssh/sshconnect2.c
2357
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/sshconnect2.c
2361
if ((r = sshbuf_putf(b, "%s%s",
usr.bin/ssh/sshconnect2.c
2362
sshbuf_len(b) ? "," : "", method->name)) != 0)
usr.bin/ssh/sshconnect2.c
2366
if ((list = sshbuf_dup_string(b)) == NULL)
usr.bin/ssh/sshconnect2.c
2368
sshbuf_free(b);
usr.bin/ssh/sshconnect2.c
849
struct sshbuf *b;
usr.bin/ssh/sshconnect2.c
851
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/sshconnect2.c
853
ssh_gssapi_buildmic(b, authctxt->server_user,
usr.bin/ssh/sshconnect2.c
857
if ((gssbuf.value = sshbuf_mutable_ptr(b)) == NULL)
usr.bin/ssh/sshconnect2.c
859
gssbuf.length = sshbuf_len(b);
usr.bin/ssh/sshconnect2.c
872
sshbuf_free(b);
usr.bin/ssh/sshd-auth.c
205
append_hostkey_type(struct sshbuf *b, const char *s)
usr.bin/ssh/sshd-auth.c
213
if ((r = sshbuf_putf(b, "%s%s", sshbuf_len(b) > 0 ? "," : "", s)) != 0)
usr.bin/ssh/sshd-auth.c
220
struct sshbuf *b;
usr.bin/ssh/sshd-auth.c
225
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/sshd-auth.c
234
append_hostkey_type(b, "rsa-sha2-512");
usr.bin/ssh/sshd-auth.c
235
append_hostkey_type(b, "rsa-sha2-256");
usr.bin/ssh/sshd-auth.c
241
append_hostkey_type(b, sshkey_ssh_name(key));
usr.bin/ssh/sshd-auth.c
251
append_hostkey_type(b,
usr.bin/ssh/sshd-auth.c
253
append_hostkey_type(b,
usr.bin/ssh/sshd-auth.c
260
append_hostkey_type(b, sshkey_ssh_name(key));
usr.bin/ssh/sshd-auth.c
264
if ((ret = sshbuf_dup_string(b)) == NULL)
usr.bin/ssh/sshd-auth.c
266
sshbuf_free(b);
usr.bin/ssh/sshkey.c
1107
u_int b;
usr.bin/ssh/sshkey.c
1124
for (b = 0; b < 4; b++) {
usr.bin/ssh/sshkey.c
1334
struct sshbuf *b = NULL;
usr.bin/ssh/sshkey.c
1339
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/sshkey.c
1341
if ((r = sshkey_putb(key, b)) != 0)
usr.bin/ssh/sshkey.c
1343
if ((uu = sshbuf_dtob64_string(b, 0)) == NULL) {
usr.bin/ssh/sshkey.c
1354
sshbuf_free(b);
usr.bin/ssh/sshkey.c
1360
sshkey_format_text(const struct sshkey *key, struct sshbuf *b)
usr.bin/ssh/sshkey.c
1367
if ((r = sshbuf_putf(b, "%s %s",
usr.bin/ssh/sshkey.c
1379
struct sshbuf *b = NULL;
usr.bin/ssh/sshkey.c
1382
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/sshkey.c
1384
if ((r = sshkey_format_text(key, b)) != 0)
usr.bin/ssh/sshkey.c
1386
if (fwrite(sshbuf_ptr(b), sshbuf_len(b), 1, f) != 1) {
usr.bin/ssh/sshkey.c
1395
sshbuf_free(b);
usr.bin/ssh/sshkey.c
1812
cert_parse(struct sshbuf *b, struct sshkey *key, struct sshbuf *certbuf)
usr.bin/ssh/sshkey.c
1825
if ((ret = sshbuf_get_u64(b, &key->cert->serial)) != 0 ||
usr.bin/ssh/sshkey.c
1826
(ret = sshbuf_get_u32(b, &key->cert->type)) != 0 ||
usr.bin/ssh/sshkey.c
1827
(ret = sshbuf_get_cstring(b, &key->cert->key_id, &kidlen)) != 0 ||
usr.bin/ssh/sshkey.c
1828
(ret = sshbuf_froms(b, &principals)) != 0 ||
usr.bin/ssh/sshkey.c
1829
(ret = sshbuf_get_u64(b, &key->cert->valid_after)) != 0 ||
usr.bin/ssh/sshkey.c
1830
(ret = sshbuf_get_u64(b, &key->cert->valid_before)) != 0 ||
usr.bin/ssh/sshkey.c
1831
(ret = sshbuf_froms(b, &crit)) != 0 ||
usr.bin/ssh/sshkey.c
1832
(ret = sshbuf_froms(b, &exts)) != 0 ||
usr.bin/ssh/sshkey.c
1833
(ret = sshbuf_get_string_direct(b, NULL, NULL)) != 0 ||
usr.bin/ssh/sshkey.c
1834
(ret = sshbuf_froms(b, &ca)) != 0) {
usr.bin/ssh/sshkey.c
1841
signed_len = sshbuf_len(key->cert->certblob) - sshbuf_len(b);
usr.bin/ssh/sshkey.c
1843
if ((ret = sshbuf_get_string(b, &sig, &slen)) != 0) {
usr.bin/ssh/sshkey.c
1938
sshkey_deserialize_sk(struct sshbuf *b, struct sshkey *key)
usr.bin/ssh/sshkey.c
1941
if (sshbuf_get_cstring(b, &key->sk_application, NULL) != 0)
usr.bin/ssh/sshkey.c
1947
sshkey_from_blob_internal(struct sshbuf *b, struct sshkey **keyp,
usr.bin/ssh/sshkey.c
1957
sshbuf_dump(b, stderr);
usr.bin/ssh/sshkey.c
1961
if ((copy = sshbuf_fromb(b)) == NULL) {
usr.bin/ssh/sshkey.c
1965
if (sshbuf_get_cstring(b, &ktype, NULL) != 0) {
usr.bin/ssh/sshkey.c
1985
if (sshbuf_get_string_direct(b, NULL, NULL) != 0) {
usr.bin/ssh/sshkey.c
1990
if ((ret = impl->funcs->deserialize_public(ktype, b, key)) != 0)
usr.bin/ssh/sshkey.c
1994
if (sshkey_is_cert(key) && (ret = cert_parse(b, key, copy)) != 0)
usr.bin/ssh/sshkey.c
1997
if (key != NULL && sshbuf_len(b) != 0) {
usr.bin/ssh/sshkey.c
2016
struct sshbuf *b;
usr.bin/ssh/sshkey.c
2019
if ((b = sshbuf_from(blob, blen)) == NULL)
usr.bin/ssh/sshkey.c
2021
r = sshkey_from_blob_internal(b, keyp, 1);
usr.bin/ssh/sshkey.c
2022
sshbuf_free(b);
usr.bin/ssh/sshkey.c
2027
sshkey_fromb(struct sshbuf *b, struct sshkey **keyp)
usr.bin/ssh/sshkey.c
2029
return sshkey_from_blob_internal(b, keyp, 1);
usr.bin/ssh/sshkey.c
2035
struct sshbuf *b;
usr.bin/ssh/sshkey.c
2038
if ((r = sshbuf_froms(buf, &b)) != 0)
usr.bin/ssh/sshkey.c
2040
r = sshkey_from_blob_internal(b, keyp, 1);
usr.bin/ssh/sshkey.c
2041
sshbuf_free(b);
usr.bin/ssh/sshkey.c
2049
struct sshbuf *b = NULL;
usr.bin/ssh/sshkey.c
2054
if ((b = sshbuf_from(sig, siglen)) == NULL)
usr.bin/ssh/sshkey.c
2056
if ((r = sshbuf_get_cstring(b, &sigtype, NULL)) != 0)
usr.bin/ssh/sshkey.c
2066
sshbuf_free(b);
usr.bin/ssh/sshkey.c
2478
sshkey_serialize_private_sk(const struct sshkey *key, struct sshbuf *b)
usr.bin/ssh/sshkey.c
2482
if ((r = sshbuf_put_cstring(b, key->sk_application)) != 0 ||
usr.bin/ssh/sshkey.c
2483
(r = sshbuf_put_u8(b, key->sk_flags)) != 0 ||
usr.bin/ssh/sshkey.c
2484
(r = sshbuf_put_stringb(b, key->sk_key_handle)) != 0 ||
usr.bin/ssh/sshkey.c
2485
(r = sshbuf_put_stringb(b, key->sk_reserved)) != 0)
usr.bin/ssh/sshkey.c
2497
struct sshbuf *b = NULL;
usr.bin/ssh/sshkey.c
2504
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/sshkey.c
2506
if ((r = sshbuf_put_cstring(b, sshkey_ssh_name(key))) != 0)
usr.bin/ssh/sshkey.c
2514
if ((r = sshbuf_put_stringb(b, key->cert->certblob)) != 0)
usr.bin/ssh/sshkey.c
2517
if ((r = impl->funcs->serialize_private(key, b, opts)) != 0)
usr.bin/ssh/sshkey.c
2529
r = sshbuf_putb(buf, b);
usr.bin/ssh/sshkey.c
2530
sshbuf_free(b);
usr.bin/ssh/sshkey.c
2536
sshkey_private_serialize(struct sshkey *key, struct sshbuf *b)
usr.bin/ssh/sshkey.c
2538
return sshkey_private_serialize_opt(key, b,
usr.bin/ssh/sshkey.c
750
cert_compare(struct sshkey_cert *a, struct sshkey_cert *b)
usr.bin/ssh/sshkey.c
752
if (a == NULL && b == NULL)
usr.bin/ssh/sshkey.c
754
if (a == NULL || b == NULL)
usr.bin/ssh/sshkey.c
756
if (sshbuf_len(a->certblob) != sshbuf_len(b->certblob))
usr.bin/ssh/sshkey.c
758
if (timingsafe_bcmp(sshbuf_ptr(a->certblob), sshbuf_ptr(b->certblob),
usr.bin/ssh/sshkey.c
766
sshkey_sk_fields_equal(const struct sshkey *a, const struct sshkey *b)
usr.bin/ssh/sshkey.c
768
if (a->sk_application == NULL || b->sk_application == NULL)
usr.bin/ssh/sshkey.c
770
if (strcmp(a->sk_application, b->sk_application) != 0)
usr.bin/ssh/sshkey.c
780
sshkey_equal_public(const struct sshkey *a, const struct sshkey *b)
usr.bin/ssh/sshkey.c
784
if (a == NULL || b == NULL ||
usr.bin/ssh/sshkey.c
785
sshkey_type_plain(a->type) != sshkey_type_plain(b->type))
usr.bin/ssh/sshkey.c
789
return impl->funcs->equal(a, b);
usr.bin/ssh/sshkey.c
793
sshkey_equal(const struct sshkey *a, const struct sshkey *b)
usr.bin/ssh/sshkey.c
795
if (a == NULL || b == NULL || a->type != b->type)
usr.bin/ssh/sshkey.c
798
if (!cert_compare(a->cert, b->cert))
usr.bin/ssh/sshkey.c
801
return sshkey_equal_public(a, b);
usr.bin/ssh/sshkey.c
807
sshkey_serialize_sk(const struct sshkey *key, struct sshbuf *b)
usr.bin/ssh/sshkey.c
811
if ((r = sshbuf_put_cstring(b, key->sk_application)) != 0)
usr.bin/ssh/sshkey.c
818
to_blob_buf(const struct sshkey *key, struct sshbuf *b, int force_plain,
usr.bin/ssh/sshkey.c
836
if ((ret = sshbuf_putb(b, key->cert->certblob)) != 0)
usr.bin/ssh/sshkey.c
844
if ((ret = sshbuf_put_cstring(b, typename)) != 0)
usr.bin/ssh/sshkey.c
846
return impl->funcs->serialize_public(key, b, opts);
usr.bin/ssh/sshkey.c
850
sshkey_putb(const struct sshkey *key, struct sshbuf *b)
usr.bin/ssh/sshkey.c
852
return to_blob_buf(key, b, 0, SSHKEY_SERIALIZE_DEFAULT);
usr.bin/ssh/sshkey.c
856
sshkey_puts_opts_internal(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/sshkey.c
866
r = sshbuf_put_stringb(b, tmp);
usr.bin/ssh/sshkey.c
872
sshkey_puts(const struct sshkey *key, struct sshbuf *b)
usr.bin/ssh/sshkey.c
874
return sshkey_puts_opts_internal(key, b, SSHKEY_SERIALIZE_DEFAULT, 0);
usr.bin/ssh/sshkey.c
878
sshkey_putb_plain(const struct sshkey *key, struct sshbuf *b)
usr.bin/ssh/sshkey.c
880
return to_blob_buf(key, b, 1, SSHKEY_SERIALIZE_DEFAULT);
usr.bin/ssh/sshkey.c
884
sshkey_puts_plain(const struct sshkey *key, struct sshbuf *b)
usr.bin/ssh/sshkey.c
886
return sshkey_puts_opts_internal(key, b, SSHKEY_SERIALIZE_DEFAULT, 1);
usr.bin/ssh/sshkey.c
895
struct sshbuf *b = NULL;
usr.bin/ssh/sshkey.c
901
if ((b = sshbuf_new()) == NULL)
usr.bin/ssh/sshkey.c
903
if ((ret = to_blob_buf(key, b, force_plain, opts)) != 0)
usr.bin/ssh/sshkey.c
905
len = sshbuf_len(b);
usr.bin/ssh/sshkey.c
913
memcpy(*blobp, sshbuf_ptr(b), len);
usr.bin/ssh/sshkey.c
917
sshbuf_free(b);
usr.bin/ssh/sshkey.h
305
int sshkey_sk_fields_equal(const struct sshkey *a, const struct sshkey *b);
usr.bin/ssh/sshkey.h
307
int sshkey_serialize_sk(const struct sshkey *key, struct sshbuf *b);
usr.bin/ssh/sshkey.h
309
int sshkey_deserialize_sk(struct sshbuf *b, struct sshkey *key);
usr.bin/ssh/sshsig.c
408
struct sshbuf *b = NULL;
usr.bin/ssh/sshsig.c
427
if ((b = sshbuf_new()) == NULL) {
usr.bin/ssh/sshsig.c
431
if ((r = sshbuf_put(b, hash, ssh_digest_bytes(alg))) != 0) {
usr.bin/ssh/sshsig.c
435
*bp = b;
usr.bin/ssh/sshsig.c
436
b = NULL; /* transferred */
usr.bin/ssh/sshsig.c
440
sshbuf_free(b);
usr.bin/ssh/sshsig.c
451
struct sshbuf *b = NULL;
usr.bin/ssh/sshsig.c
458
if ((r = hash_buffer(message, hashalg, &b)) != 0) {
usr.bin/ssh/sshsig.c
462
if ((r = sshsig_wrap_sign(key, hashalg, sk_provider, sk_pin, b,
usr.bin/ssh/sshsig.c
468
sshbuf_free(b);
usr.bin/ssh/sshsig.c
477
struct sshbuf *b = NULL;
usr.bin/ssh/sshsig.c
488
if ((r = hash_buffer(message, hashalg, &b)) != 0) {
usr.bin/ssh/sshsig.c
492
if ((r = sshsig_wrap_verify(signature, hashalg, b, expect_namespace,
usr.bin/ssh/sshsig.c
498
sshbuf_free(b);
usr.bin/ssh/sshsig.c
510
struct sshbuf *b = NULL;
usr.bin/ssh/sshsig.c
552
if ((b = sshbuf_new()) == NULL) {
usr.bin/ssh/sshsig.c
556
if ((r = sshbuf_put(b, hash, ssh_digest_bytes(alg))) != 0) {
usr.bin/ssh/sshsig.c
560
*bp = b;
usr.bin/ssh/sshsig.c
561
b = NULL; /* transferred */
usr.bin/ssh/sshsig.c
566
sshbuf_free(b);
usr.bin/ssh/sshsig.c
579
struct sshbuf *b = NULL;
usr.bin/ssh/sshsig.c
586
if ((r = hash_file(fd, hashalg, &b)) != 0) {
usr.bin/ssh/sshsig.c
590
if ((r = sshsig_wrap_sign(key, hashalg, sk_provider, sk_pin, b,
usr.bin/ssh/sshsig.c
596
sshbuf_free(b);
usr.bin/ssh/sshsig.c
605
struct sshbuf *b = NULL;
usr.bin/ssh/sshsig.c
616
if ((r = hash_file(fd, hashalg, &b)) != 0) {
usr.bin/ssh/sshsig.c
620
if ((r = sshsig_wrap_verify(signature, hashalg, b, expect_namespace,
usr.bin/ssh/sshsig.c
626
sshbuf_free(b);
usr.bin/ssh/umac.c
125
#define MUL64(a,b) ((UINT64)((UINT64)(UINT32)(a) * (UINT64)(UINT32)(b)))
usr.bin/systat/cache.c
191
sc_cmp(struct sc_ent *a, struct sc_ent *b)
usr.bin/systat/cache.c
193
if (a->id > b->id)
usr.bin/systat/cache.c
195
if (a->id < b->id)
usr.bin/systat/cache.c
197
if (a->creatorid > b->creatorid)
usr.bin/systat/cache.c
199
if (a->creatorid < b->creatorid)
usr.bin/systat/engine.c
44
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/systat/netstat.c
101
#define streq(a,b) (strcmp(a,b)==0)
usr.bin/systat/netstat.c
262
kf_comp(const void *a, const void *b)
usr.bin/systat/netstat.c
264
const struct kinfo_file *ka = a, *kb = b;
usr.bin/systat/pftop.c
400
compare_addr(int af, const struct pf_addr *a, const struct pf_addr *b)
usr.bin/systat/pftop.c
404
if (ntohl(a->addr32[0]) > ntohl(b->addr32[0]))
usr.bin/systat/pftop.c
406
if (a->addr32[0] != b->addr32[0])
usr.bin/systat/pftop.c
410
if (ntohl(a->addr32[0]) > ntohl(b->addr32[0]))
usr.bin/systat/pftop.c
412
if (a->addr32[0] != b->addr32[0])
usr.bin/systat/pftop.c
414
if (ntohl(a->addr32[1]) > ntohl(b->addr32[1]))
usr.bin/systat/pftop.c
416
if (a->addr32[1] != b->addr32[1])
usr.bin/systat/pftop.c
418
if (ntohl(a->addr32[2]) > ntohl(b->addr32[2]))
usr.bin/systat/pftop.c
420
if (a->addr32[2] != b->addr32[2])
usr.bin/systat/pftop.c
422
if (ntohl(a->addr32[3]) > ntohl(b->addr32[3]))
usr.bin/systat/pftop.c
424
if (a->addr32[3] != b->addr32[3])
usr.bin/systat/pftop.c
699
int i = 31, j = 0, b = 0;
usr.bin/systat/pftop.c
703
b += 32;
usr.bin/systat/pftop.c
709
b++;
usr.bin/systat/pftop.c
711
return (b);
usr.bin/systat/pigs.c
288
compar(const void *a, const void *b)
usr.bin/systat/pigs.c
291
int i2 = *((int *)b);
usr.bin/systat/vmstat.c
510
char b[128];
usr.bin/systat/vmstat.c
518
snprintf(b, sizeof b, "%*d", w, n);
usr.bin/systat/vmstat.c
519
if (strlen(b) > w) {
usr.bin/systat/vmstat.c
524
addstr(b);
usr.bin/systat/vmstat.c
530
char b[128];
usr.bin/systat/vmstat.c
539
snprintf(b, sizeof b, "%*dG", w - 1, n / 1024 / 1024);
usr.bin/systat/vmstat.c
541
snprintf(b, sizeof b, "%*dM", w - 1, n / 1024);
usr.bin/systat/vmstat.c
543
snprintf(b, sizeof b, "%*dK", w - 1, n);
usr.bin/systat/vmstat.c
544
if (strlen(b) > w) {
usr.bin/systat/vmstat.c
549
addstr(b);
usr.bin/systat/vmstat.c
555
char b[128];
usr.bin/systat/vmstat.c
563
snprintf(b, sizeof b, "%*llu", w, n);
usr.bin/systat/vmstat.c
564
if (strlen(b) > w) {
usr.bin/systat/vmstat.c
569
addstr(b);
usr.bin/systat/vmstat.c
575
char b[128];
usr.bin/systat/vmstat.c
583
snprintf(b, sizeof b, "%*.*f", w, d, f);
usr.bin/systat/vmstat.c
584
if (strlen(b) > w) {
usr.bin/systat/vmstat.c
589
addstr(b);
usr.bin/systat/vmstat.c
59
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.bin/systat/vmstat.c
60
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/talk/display.c
54
max(int a, int b)
usr.bin/talk/display.c
57
return (a > b ? a : b);
usr.bin/tcpbench/tcpbench.c
409
#define P(b, v, f) \
usr.bin/tcpbench/tcpbench.c
411
printf("%s"f, j > 0 ? "," : "", b->tcpi_##v); \
usr.bin/telnet/commands.c
129
char b;
usr.bin/telnet/commands.c
133
b = *++s;
usr.bin/telnet/commands.c
134
if (b == '?') {
usr.bin/telnet/commands.c
135
c = b | 0x40; /* DEL */
usr.bin/telnet/commands.c
137
c = b & 0x1f;
usr.bin/telnet/ring.c
48
#define ring_subtract(d,a,b) (((a)-(b) >= 0)? \
usr.bin/telnet/ring.c
49
(a)-(b): (((a)-(b))+(d)->size))
usr.bin/tftp/tftp.c
428
char a[NI_MAXSERV], b[NI_MAXSERV];
usr.bin/tftp/tftp.c
431
if (getnameinfo(sb, sb->sa_len, NULL, 0, b, sizeof(b), NI_NUMERICSERV))
usr.bin/tftp/tftp.c
433
if (strcmp(a, b) != 0)
usr.bin/tftp/tftpsubs.c
111
struct bf *b;
usr.bin/tftp/tftpsubs.c
116
b = &bfs[current]; /* look at new buffer */
usr.bin/tftp/tftpsubs.c
117
if (b->counter == BF_FREE) /* if it's empty */
usr.bin/tftp/tftpsubs.c
120
*dpp = (struct tftphdr *)b->buf; /* set caller's ptr */
usr.bin/tftp/tftpsubs.c
122
return (b->counter);
usr.bin/tftp/tftpsubs.c
135
struct bf *b;
usr.bin/tftp/tftpsubs.c
138
b = &bfs[nextone]; /* look at "next" buffer */
usr.bin/tftp/tftpsubs.c
139
if (b->counter != BF_FREE) /* nop if not free */
usr.bin/tftp/tftpsubs.c
143
dp = (struct tftphdr *)b->buf;
usr.bin/tftp/tftpsubs.c
146
b->counter = read(fileno(file), dp->th_data, segment_size);
usr.bin/tftp/tftpsubs.c
170
b->counter = (int)(p - dp->th_data);
usr.bin/tftp/tftpsubs.c
206
struct bf *b;
usr.bin/tftp/tftpsubs.c
209
b = &bfs[nextone];
usr.bin/tftp/tftpsubs.c
210
if (b->counter < -1) /* anything to flush? */
usr.bin/tftp/tftpsubs.c
213
count = b->counter; /* remember byte count */
usr.bin/tftp/tftpsubs.c
214
b->counter = BF_FREE; /* reset flag */
usr.bin/tftp/tftpsubs.c
215
dp = (struct tftphdr *)b->buf;
usr.bin/tic/tic.c
1293
int r, g, b;
usr.bin/tic/tic.c
1295
int code = sscanf(value, "%d/%d/%d%c", &r, &g, &b, &bad);
usr.bin/tic/tic.c
1296
if (code != 3 || r <= 0 || g <= 0 || b <= 0) {
usr.bin/tic/tic.c
2578
similar_sgr(int num, char *a, char *b)
usr.bin/tic/tic.c
2581
char *base_b = b;
usr.bin/tic/tic.c
2584
while (*b != 0) {
usr.bin/tic/tic.c
2585
while (*a != *b) {
usr.bin/tic/tic.c
2589
} else if (b[0] == '$'
usr.bin/tic/tic.c
2590
&& b[1] == '<') {
usr.bin/tic/tic.c
2591
_nc_warning("did not find delay %s", _nc_visbuf(b));
usr.bin/tic/tic.c
2596
_nc_visbuf2(3, b));
usr.bin/tic/tic.c
2601
b = skip_delay(b);
usr.bin/tic/tic.c
2602
} else if ((*b == '0' || (*b == ';')) && *a == 'm') {
usr.bin/tic/tic.c
2603
b++;
usr.bin/tic/tic.c
2622
b++;
usr.bin/tic/tic.c
2772
const char *b = given[k].value;
usr.bin/tic/tic.c
2774
if (!VALID_STRING(b))
usr.bin/tic/tic.c
2779
if (!_nc_capcmp(a, b)) {
usr.bin/tic/transform.c
71
same_program(const char *a, const char *b)
usr.bin/tic/transform.c
74
size_t len_b = strlen(b);
usr.bin/tic/transform.c
77
trim_suffix(b, &len_b);
usr.bin/tic/transform.c
79
return (len_a == len_b) && (strncmp(a, b, len_a) == 0);
usr.bin/tmux/colour.c
101
colour_split_rgb(int c, u_char *r, u_char *g, u_char *b)
usr.bin/tmux/colour.c
1013
u_int r, g, b;
usr.bin/tmux/colour.c
1018
if ((len == 12 && sscanf(p, "rgb:%02x/%02x/%02x", &r, &g, &b) == 3) ||
usr.bin/tmux/colour.c
1019
(len == 7 && sscanf(p, "#%02x%02x%02x", &r, &g, &b) == 3) ||
usr.bin/tmux/colour.c
1020
sscanf(p, "%d,%d,%d", &r, &g, &b) == 3)
usr.bin/tmux/colour.c
1021
colour = colour_join_rgb(r, g, b);
usr.bin/tmux/colour.c
1023
sscanf(p, "rgb:%04x/%04x/%04x", &r, &g, &b) == 3) ||
usr.bin/tmux/colour.c
1024
(len == 13 && sscanf(p, "#%04x%04x%04x", &r, &g, &b) == 3))
usr.bin/tmux/colour.c
1025
colour = colour_join_rgb(r >> 8, g >> 8, b >> 8);
usr.bin/tmux/colour.c
105
*b = c & 0xff;
usr.bin/tmux/colour.c
128
u_char r, g, b;
usr.bin/tmux/colour.c
134
colour_split_rgb(c, &r, &g, &b);
usr.bin/tmux/colour.c
135
xsnprintf(s, sizeof s, "#%02x%02x%02x", r, g, b);
usr.bin/tmux/colour.c
189
int r, g, b, brightness;
usr.bin/tmux/colour.c
197
b = (c >> 0) & 0xff;
usr.bin/tmux/colour.c
199
brightness = r + g + b;
usr.bin/tmux/colour.c
232
u_char r, g, b;
usr.bin/tmux/colour.c
239
n = sscanf(s + 1, "%2hhx%2hhx%2hhx", &r, &g, &b);
usr.bin/tmux/colour.c
242
return (colour_join_rgb(r, g, b));
usr.bin/tmux/colour.c
30
colour_dist_sq(int R, int G, int B, int r, int g, int b)
usr.bin/tmux/colour.c
32
return ((R - r) * (R - r) + (G - g) * (G - g) + (B - b) * (B - b));
usr.bin/tmux/colour.c
58
colour_find_rgb(u_char r, u_char g, u_char b)
usr.bin/tmux/colour.c
67
qb = colour_to_6cube(b); cb = q2c[qb];
usr.bin/tmux/colour.c
70
if (cr == r && cg == g && cb == b)
usr.bin/tmux/colour.c
74
grey_avg = (r + g + b) / 3;
usr.bin/tmux/colour.c
82
d = colour_dist_sq(cr, cg, cb, r, g, b);
usr.bin/tmux/colour.c
83
if (colour_dist_sq(grey, grey, grey, r, g, b) < d)
usr.bin/tmux/colour.c
92
colour_join_rgb(u_char r, u_char g, u_char b)
usr.bin/tmux/colour.c
96
(((int)((b) & 0xff))) | COLOUR_FLAG_RGB);
usr.bin/tmux/grid.c
789
u_char r, g, b;
usr.bin/tmux/grid.c
799
colour_split_rgb(gc->fg, &r, &g, &b);
usr.bin/tmux/grid.c
802
values[n++] = b;
usr.bin/tmux/grid.c
838
u_char r, g, b;
usr.bin/tmux/grid.c
848
colour_split_rgb(gc->bg, &r, &g, &b);
usr.bin/tmux/grid.c
851
values[n++] = b;
usr.bin/tmux/grid.c
887
u_char r, g, b;
usr.bin/tmux/grid.c
897
colour_split_rgb(gc->us, &r, &g, &b);
usr.bin/tmux/grid.c
900
values[n++] = b;
usr.bin/tmux/input-keys.c
724
if (MOUSE_DRAG(m->b) && (s->mode & MOTION_MOUSE_MODES) == 0)
usr.bin/tmux/input-keys.c
741
if (MOUSE_DRAG(m->b) &&
usr.bin/tmux/input-keys.c
742
MOUSE_RELEASE(m->b) &&
usr.bin/tmux/input-keys.c
761
if (m->b > MOUSE_PARAM_UTF8_MAX - MOUSE_PARAM_BTN_OFF ||
usr.bin/tmux/input-keys.c
766
len += input_key_split2(m->b + MOUSE_PARAM_BTN_OFF, &buf[len]);
usr.bin/tmux/input-keys.c
770
if (m->b + MOUSE_PARAM_BTN_OFF > MOUSE_PARAM_MAX)
usr.bin/tmux/input-keys.c
774
buf[len++] = m->b + MOUSE_PARAM_BTN_OFF;
usr.bin/tmux/input.c
2168
int b)
usr.bin/tmux/input.c
2176
if (b == -1 || b > 255)
usr.bin/tmux/input.c
2180
gc->fg = colour_join_rgb(r, g, b);
usr.bin/tmux/input.c
2182
gc->bg = colour_join_rgb(r, g, b);
usr.bin/tmux/input.c
2184
gc->us = colour_join_rgb(r, g, b);
usr.bin/tmux/input.c
2192
int r, g, b;
usr.bin/tmux/input.c
2196
b = input_get(ictx, (*i) + 3, 0, -1);
usr.bin/tmux/input.c
2197
if (input_csi_dispatch_sgr_rgb_do(ictx, fgbg, r, g, b))
usr.bin/tmux/input.c
2796
u_char r, g, b;
usr.bin/tmux/input.c
2803
colour_split_rgb(c, &r, &g, &b);
usr.bin/tmux/input.c
2813
n, idx, r, r, g, g, b, b, end);
usr.bin/tmux/input.c
2817
n, r, r, g, g, b, b, end);
usr.bin/tmux/menu.c
327
if (MOUSE_BUTTONS(m->b) != MOUSE_BUTTON_1)
usr.bin/tmux/menu.c
336
if (MOUSE_RELEASE(m->b))
usr.bin/tmux/menu.c
339
if (!MOUSE_RELEASE(m->b) &&
usr.bin/tmux/menu.c
340
!MOUSE_WHEEL(m->b) &&
usr.bin/tmux/menu.c
341
!MOUSE_DRAG(m->b))
usr.bin/tmux/menu.c
351
if (MOUSE_RELEASE(m->b))
usr.bin/tmux/menu.c
354
if (!MOUSE_WHEEL(m->b) && !MOUSE_DRAG(m->b))
usr.bin/tmux/paste.c
48
paste_cmp_names(const struct paste_buffer *a, const struct paste_buffer *b)
usr.bin/tmux/paste.c
50
return (strcmp(a->name, b->name));
usr.bin/tmux/paste.c
54
paste_cmp_times(const struct paste_buffer *a, const struct paste_buffer *b)
usr.bin/tmux/paste.c
56
if (a->order > b->order)
usr.bin/tmux/paste.c
58
if (a->order < b->order)
usr.bin/tmux/popup.c
502
if (!MOUSE_DRAG(m->b))
usr.bin/tmux/popup.c
585
if (MOUSE_BUTTONS(m->b) == MOUSE_BUTTON_3)
usr.bin/tmux/popup.c
599
if ((m->b & MOUSE_MASK_MODIFIERS) == 0 &&
usr.bin/tmux/popup.c
600
MOUSE_BUTTONS(m->b) == MOUSE_BUTTON_3 &&
usr.bin/tmux/popup.c
603
if (((m->b & MOUSE_MASK_MODIFIERS) == MOUSE_MASK_META) ||
usr.bin/tmux/popup.c
605
if (!MOUSE_DRAG(m->b))
usr.bin/tmux/popup.c
660
pd->lb = m->b;
usr.bin/tmux/server-client.c
1001
else if (MOUSE_BUTTONS(b) == MOUSE_BUTTON_3)
usr.bin/tmux/server-client.c
1003
else if (MOUSE_BUTTONS(b) == MOUSE_BUTTON_6)
usr.bin/tmux/server-client.c
1005
else if (MOUSE_BUTTONS(b) == MOUSE_BUTTON_7)
usr.bin/tmux/server-client.c
1007
else if (MOUSE_BUTTONS(b) == MOUSE_BUTTON_8)
usr.bin/tmux/server-client.c
1009
else if (MOUSE_BUTTONS(b) == MOUSE_BUTTON_9)
usr.bin/tmux/server-client.c
1011
else if (MOUSE_BUTTONS(b) == MOUSE_BUTTON_10)
usr.bin/tmux/server-client.c
1013
else if (MOUSE_BUTTONS(b) == MOUSE_BUTTON_11)
usr.bin/tmux/server-client.c
1021
if (b & MOUSE_MASK_META)
usr.bin/tmux/server-client.c
1023
if (b & MOUSE_MASK_CTRL)
usr.bin/tmux/server-client.c
1025
if (b & MOUSE_MASK_SHIFT)
usr.bin/tmux/server-client.c
707
u_int b, bn;
usr.bin/tmux/server-client.c
715
log_debug("%s mouse %02x at %u,%u (last %u,%u) (%d)", c->name, m->b,
usr.bin/tmux/server-client.c
721
x = m->x, y = m->y, b = m->b;
usr.bin/tmux/server-client.c
728
MOUSE_DRAG(m->b) &&
usr.bin/tmux/server-client.c
729
MOUSE_RELEASE(m->b) &&
usr.bin/tmux/server-client.c
732
x = m->x, y = m->y, b = 0;
usr.bin/tmux/server-client.c
734
} else if (MOUSE_DRAG(m->b)) {
usr.bin/tmux/server-client.c
737
x = m->x, y = m->y, b = m->b;
usr.bin/tmux/server-client.c
742
x = m->lx, y = m->ly, b = m->lb;
usr.bin/tmux/server-client.c
745
} else if (MOUSE_WHEEL(m->b)) {
usr.bin/tmux/server-client.c
746
if ((m->b & MOUSE_MASK_BUTTONS) == MOUSE_WHEEL_UP)
usr.bin/tmux/server-client.c
750
x = m->x, y = m->y, b = m->b;
usr.bin/tmux/server-client.c
752
} else if (MOUSE_RELEASE(m->b)) {
usr.bin/tmux/server-client.c
754
x = m->x, y = m->y, b = m->lb;
usr.bin/tmux/server-client.c
756
b = m->sgr_b;
usr.bin/tmux/server-client.c
763
x = m->x, y = m->y, b = m->b;
usr.bin/tmux/server-client.c
770
x = m->x, y = m->y, b = m->b;
usr.bin/tmux/server-client.c
778
x = m->x, y = m->y, b = m->b;
usr.bin/tmux/server-client.c
914
(m->b != c->click_button ||
usr.bin/tmux/server-client.c
925
c->click_button = m->b;
usr.bin/tmux/server-client.c
983
c->tty.mouse_drag_flag = MOUSE_BUTTONS(b) + 1;
usr.bin/tmux/server-client.c
997
if (MOUSE_BUTTONS(b) == MOUSE_BUTTON_1)
usr.bin/tmux/server-client.c
999
else if (MOUSE_BUTTONS(b) == MOUSE_BUTTON_2)
usr.bin/tmux/sort.c
140
const struct session *const *b = b0;
usr.bin/tmux/sort.c
142
const struct session *sb = *b;
usr.bin/tmux/sort.c
192
struct window_pane *b = *(struct window_pane **)b0;
usr.bin/tmux/sort.c
198
result = a->active_point - b->active_point;
usr.bin/tmux/sort.c
201
result = a->id - b->id;
usr.bin/tmux/sort.c
204
result = a->sx * a->sy - b->sx * b->sy;
usr.bin/tmux/sort.c
208
window_pane_index(b, &bi);
usr.bin/tmux/sort.c
212
result = strcmp(a->screen->title, b->screen->title);
usr.bin/tmux/sort.c
221
result = strcmp(a->screen->title, b->screen->title);
usr.bin/tmux/sort.c
233
const struct winlink *const *b = b0;
usr.bin/tmux/sort.c
235
const struct winlink *wlb = *b;
usr.bin/tmux/sort.c
289
const struct key_binding *b = *(struct key_binding **)b0;
usr.bin/tmux/sort.c
294
result = a->key - b->key;
usr.bin/tmux/sort.c
298
(b->key & KEYC_MASK_MODIFIERS);
usr.bin/tmux/sort.c
301
result = strcasecmp(a->tablename, b->tablename) == 0;
usr.bin/tmux/sort.c
312
result = strcasecmp(a->tablename, b->tablename) == 0;
usr.bin/tmux/sort.c
58
const struct paste_buffer *const *b = b0;
usr.bin/tmux/sort.c
60
const struct paste_buffer *pb = *b;
usr.bin/tmux/sort.c
94
const struct client *const *b = b0;
usr.bin/tmux/sort.c
96
const struct client *cb = *b;
usr.bin/tmux/status.c
2059
status_prompt_complete_sort(const void *a, const void *b)
usr.bin/tmux/status.c
2061
const char **aa = (const char **)a, **bb = (const char **)b;
usr.bin/tmux/style.c
281
char b[21];
usr.bin/tmux/style.c
304
snprintf(b, sizeof b, "pane|%%%u", sy->range_argument);
usr.bin/tmux/style.c
305
tmp = b;
usr.bin/tmux/style.c
307
snprintf(b, sizeof b, "window|%u", sy->range_argument);
usr.bin/tmux/style.c
308
tmp = b;
usr.bin/tmux/style.c
310
snprintf(b, sizeof b, "session|$%u",
usr.bin/tmux/style.c
312
tmp = b;
usr.bin/tmux/style.c
314
snprintf(b, sizeof b, "user|%s", sy->range_string);
usr.bin/tmux/style.c
315
tmp = b;
usr.bin/tmux/tmux.h
105
#define printflike(a, b) __attribute__ ((format (printf, a, b)))
usr.bin/tmux/tmux.h
1511
#define MOUSE_BUTTONS(b) ((b) & MOUSE_MASK_BUTTONS)
usr.bin/tmux/tmux.h
1512
#define MOUSE_WHEEL(b) \
usr.bin/tmux/tmux.h
1513
(((b) & MOUSE_MASK_BUTTONS) == MOUSE_WHEEL_UP || \
usr.bin/tmux/tmux.h
1514
((b) & MOUSE_MASK_BUTTONS) == MOUSE_WHEEL_DOWN)
usr.bin/tmux/tmux.h
1515
#define MOUSE_DRAG(b) ((b) & MOUSE_MASK_DRAG)
usr.bin/tmux/tmux.h
1516
#define MOUSE_RELEASE(b) (((b) & MOUSE_MASK_BUTTONS) == 3)
usr.bin/tmux/tmux.h
1530
u_int b;
usr.bin/tmux/tmux.h
250
#define KEYC_MAKE_MOUSE_KEY(t, b, l) \
usr.bin/tmux/tmux.h
252
((unsigned long long)(b) << KEYC_MOUSE_BUTTON_SHIFT) | \
usr.bin/tmux/tty-keys.c
1169
u_int i, x, y, b, sgr_b;
usr.bin/tmux/tty-keys.c
1186
x = y = b = sgr_b = 0;
usr.bin/tmux/tty-keys.c
1211
b = ch;
usr.bin/tmux/tty-keys.c
1220
if (b < MOUSE_PARAM_BTN_OFF ||
usr.bin/tmux/tty-keys.c
1224
b -= MOUSE_PARAM_BTN_OFF;
usr.bin/tmux/tty-keys.c
1268
b = sgr_b;
usr.bin/tmux/tty-keys.c
1273
b = 3;
usr.bin/tmux/tty-keys.c
1292
m->b = b;
usr.bin/tmux/tty-keys.c
1299
tty->mouse_last_b = b;
usr.bin/tmux/tty-term.c
791
tty_term_string_ii(struct tty_term *term, enum tty_code_code code, int a, int b)
usr.bin/tmux/tty-term.c
795
s = tiparm_s(2, 0, x, a, b);
usr.bin/tmux/tty-term.c
805
int b, int c)
usr.bin/tmux/tty-term.c
809
s = tiparm_s(3, 0, x, a, b, c);
usr.bin/tmux/tty-term.c
832
const char *a, const char *b)
usr.bin/tmux/tty-term.c
836
s = tiparm_s(2, 3, x, a, b);
usr.bin/tmux/tty.c
2576
u_char r, g, b;
usr.bin/tmux/tty.c
2600
colour_split_rgb(gc->fg, &r, &g, &b);
usr.bin/tmux/tty.c
2601
gc->fg = colour_find_rgb(r, g, b);
usr.bin/tmux/tty.c
2645
u_char r, g, b;
usr.bin/tmux/tty.c
2660
colour_split_rgb(gc->bg, &r, &g, &b);
usr.bin/tmux/tty.c
2661
gc->bg = colour_find_rgb(r, g, b);
usr.bin/tmux/tty.c
2792
u_char r, g, b;
usr.bin/tmux/tty.c
2816
colour_split_rgb(gc->us, &r, &g, &b);
usr.bin/tmux/tty.c
2817
c = (65536 * r) + (256 * g) + b;
usr.bin/tmux/tty.c
2837
u_char r, g, b;
usr.bin/tmux/tty.c
2848
colour_split_rgb(colour & 0xffffff, &r, &g, &b);
usr.bin/tmux/tty.c
2850
tty_putcode_iii(tty, TTYC_SETRGBF, r, g, b);
usr.bin/tmux/tty.c
2852
tty_putcode_iii(tty, TTYC_SETRGBB, r, g, b);
usr.bin/tmux/tty.c
585
tty_putcode_ii(struct tty *tty, enum tty_code_code code, int a, int b)
usr.bin/tmux/tty.c
587
if (a < 0 || b < 0)
usr.bin/tmux/tty.c
589
tty_puts(tty, tty_term_string_ii(tty->term, code, a, b));
usr.bin/tmux/tty.c
593
tty_putcode_iii(struct tty *tty, enum tty_code_code code, int a, int b, int c)
usr.bin/tmux/tty.c
595
if (a < 0 || b < 0 || c < 0)
usr.bin/tmux/tty.c
597
tty_puts(tty, tty_term_string_iii(tty->term, code, a, b, c));
usr.bin/tmux/tty.c
609
const char *b)
usr.bin/tmux/tty.c
611
if (a != NULL && b != NULL)
usr.bin/tmux/tty.c
612
tty_puts(tty, tty_term_string_ss(tty->term, code, a, b));
usr.bin/tmux/tty.c
742
u_char r, g, b;
usr.bin/tmux/tty.c
752
colour_split_rgb(c, &r, &g, &b);
usr.bin/tmux/tty.c
753
xsnprintf(s, sizeof s, "rgb:%02hhx/%02hhx/%02hhx", r, g, b);
usr.bin/tmux/window-copy.c
3343
if (m != NULL && m->valid && !MOUSE_WHEEL(m->b))
usr.bin/tmux/window-copy.c
4270
window_copy_clip_width(u_int width, u_int b, u_int sx, u_int sy)
usr.bin/tmux/window-copy.c
4272
return ((b + width > sx * sy) ? (sx * sy) - b : width);
usr.bin/tmux/window-copy.c
4281
u_int i, b, w = width, sx = gd->sx, sy = gd->sy;
usr.bin/tmux/window-copy.c
4283
if (window_copy_search_mark_at(data, px, py, &b) == 0) {
usr.bin/tmux/window-copy.c
4284
width = window_copy_clip_width(width, b, sx, sy);
usr.bin/tmux/window-copy.c
4286
for (i = b; i < b + w; i++) {
usr.bin/tmux/window-copy.c
4288
grid_get_cell(gd, px + (i - b), py, &gc);
usr.bin/tmux/window-copy.c
4291
w = window_copy_clip_width(w, b, sx, sy);
usr.bin/tr/str.c
204
c_class(const void *a, const void *b)
usr.bin/tr/str.c
206
return (strcmp(((CLASS *)a)->name, ((CLASS *)b)->name));
usr.bin/tset/tset.c
116
CaselessCmp(const char *a, const char *b)
usr.bin/tset/tset.c
118
while (*a && *b) {
usr.bin/tset/tset.c
119
int cmp = LOWERCASE(*a) - LOWERCASE(*b);
usr.bin/tset/tset.c
122
a++, b++;
usr.bin/tset/tset.c
124
return LOWERCASE(*a) - LOWERCASE(*b);
usr.bin/tsort/tsort.c
285
insert_arc(struct node *a, struct node *b)
usr.bin/tsort/tsort.c
291
if (l->node == b)
usr.bin/tsort/tsort.c
294
b->refs++;
usr.bin/tsort/tsort.c
296
l->node = b;
usr.bin/tsort/tsort.c
333
struct node *b;
usr.bin/tsort/tsort.c
335
b = node_lookup(h, str, e);
usr.bin/tsort/tsort.c
337
if (b != a) {
usr.bin/tsort/tsort.c
339
insert_arc(b, a);
usr.bin/tsort/tsort.c
341
insert_arc(a, b);
usr.bin/tsort/tsort.c
808
struct node *b, *n;
usr.bin/tsort/tsort.c
814
while ((b = find_cycle_from(n, c)) == NULL)
usr.bin/tsort/tsort.c
816
return b;
usr.bin/unifdef/unifdef.c
882
static Linetype op_lt(long *p, Linetype at, long a, Linetype bt, long b) {
usr.bin/unifdef/unifdef.c
883
return op_strict(p, a < b, at, bt);
usr.bin/unifdef/unifdef.c
885
static Linetype op_gt(long *p, Linetype at, long a, Linetype bt, long b) {
usr.bin/unifdef/unifdef.c
886
return op_strict(p, a > b, at, bt);
usr.bin/unifdef/unifdef.c
888
static Linetype op_le(long *p, Linetype at, long a, Linetype bt, long b) {
usr.bin/unifdef/unifdef.c
889
return op_strict(p, a <= b, at, bt);
usr.bin/unifdef/unifdef.c
891
static Linetype op_ge(long *p, Linetype at, long a, Linetype bt, long b) {
usr.bin/unifdef/unifdef.c
892
return op_strict(p, a >= b, at, bt);
usr.bin/unifdef/unifdef.c
894
static Linetype op_eq(long *p, Linetype at, long a, Linetype bt, long b) {
usr.bin/unifdef/unifdef.c
895
return op_strict(p, a == b, at, bt);
usr.bin/unifdef/unifdef.c
897
static Linetype op_ne(long *p, Linetype at, long a, Linetype bt, long b) {
usr.bin/unifdef/unifdef.c
898
return op_strict(p, a != b, at, bt);
usr.bin/unifdef/unifdef.c
900
static Linetype op_or(long *p, Linetype at, long a, Linetype bt, long b) {
usr.bin/unifdef/unifdef.c
903
return op_strict(p, a || b, at, bt);
usr.bin/unifdef/unifdef.c
905
static Linetype op_and(long *p, Linetype at, long a, Linetype bt, long b) {
usr.bin/unifdef/unifdef.c
908
return op_strict(p, a && b, at, bt);
usr.bin/vi/cl/cl_read.c
279
ARGS *argv[2], a, b;
usr.bin/vi/cl/cl_read.c
283
b.bp = NULL;
usr.bin/vi/cl/cl_read.c
284
a.len = b.len = 0;
usr.bin/vi/cl/cl_read.c
286
argv[1] = &b;
usr.bin/vi/common/key.c
30
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.bin/vi/common/main.c
272
ARGS *av[2], a, b;
usr.bin/vi/common/main.c
276
b.bp = NULL;
usr.bin/vi/common/main.c
277
b.len = 0;
usr.bin/vi/common/main.c
279
av[1] = &b;
usr.bin/vi/common/options.c
1026
opts_abbcmp(const void *a, const void *b)
usr.bin/vi/common/options.c
1028
return(strcmp(((OABBREV *)a)->name, ((OABBREV *)b)->name));
usr.bin/vi/common/options.c
1032
opts_cmp(const void *a, const void *b)
usr.bin/vi/common/options.c
1034
return(strcmp(((OPTLIST *)a)->name, ((OPTLIST *)b)->name));
usr.bin/vi/common/options.c
252
ARGS *argv[2], a, b;
usr.bin/vi/common/options.c
259
b.bp = NULL;
usr.bin/vi/common/options.c
260
a.len = b.len = 0;
usr.bin/vi/common/options.c
262
argv[1] = &b;
usr.bin/vi/common/seq.c
26
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/vi/common/util.c
27
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.bin/vi/ex/ex_argv.c
563
argv_comp(const void *a, const void *b)
usr.bin/vi/ex/ex_argv.c
565
return (strcmp((char *)(*(ARGS **)a)->bp, (char *)(*(ARGS **)b)->bp));
usr.bin/vi/ex/ex_init.c
342
char *a, *b, buf[PATH_MAX];
usr.bin/vi/ex/ex_init.c
379
b = msg_print(sp, buf, &nf2);
usr.bin/vi/ex/ex_init.c
384
b, a);
usr.bin/vi/ex/ex_init.c
388
"%s/%s: not sourced: not owned by you", b, a);
usr.bin/vi/ex/ex_init.c
392
"%s/%s: not sourced: writable by a user other than the owner", b, a);
usr.bin/vi/ex/ex_init.c
396
FREE_SPACE(sp, b, 0);
usr.bin/vi/ex/ex_shell.c
29
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/vi/ex/ex_subst.c
29
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.bin/vi/vi/v_scroll.c
25
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/vi/vi/v_txt.c
30
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/w/proc_compare.c
61
#define TESTAB(a, b) ((a)<<1 | (b))
usr.bin/watch/watch.c
109
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.bin/watch/watch.c
110
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.bin/x99token/x99token.c
101
char *b = buf;
usr.bin/x99token/x99token.c
104
if (!*b)
usr.bin/x99token/x99token.c
106
while (isdigit((unsigned char)*b))
usr.bin/x99token/x99token.c
107
key[i] = key[i] << 3 | (*b++ - '0');
usr.bin/x99token/x99token.c
108
while (*b && !isdigit((unsigned char)*b))
usr.bin/x99token/x99token.c
109
++b;
usr.bin/xinstall/xinstall.c
56
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/amd/amd/host_ops.c
149
const exports *a = arg1, *b = arg2;
usr.sbin/amd/amd/host_ops.c
150
return strcmp((*a)->ex_dir, (*b)->ex_dir);
usr.sbin/amd/amd/opts.c
316
free_op(opt_apply *p, int b)
usr.sbin/amd/amd/opts.c
674
apply_opts(void (*op)(), opt_apply ppp[], int b)
usr.sbin/amd/amd/opts.c
678
(*op)(pp, b);
usr.sbin/bgpctl/bgpctl.c
1155
char *b, *buf = line;
usr.sbin/bgpctl/bgpctl.c
1156
while ((b = strsep(&buf, " \t\n")) != NULL) {
usr.sbin/bgpctl/bgpctl.c
1157
if (*b == '\0') /* skip empty tokens */
usr.sbin/bgpctl/bgpctl.c
1160
if (*b == '#')
usr.sbin/bgpctl/bgpctl.c
1163
if (parse_prefix(b, strlen(b), &h, &len) != 1)
usr.sbin/bgpctl/bgpctl.c
1164
errx(1, "bad prefix: %s", b);
usr.sbin/bgpctl/bgpctl.c
1402
print_afi(struct ibuf *b)
usr.sbin/bgpctl/bgpctl.c
1407
if (ibuf_get_n16(b, &afi) == -1 || /* afi, 2 byte */
usr.sbin/bgpctl/bgpctl.c
1408
ibuf_skip(b, 1) == -1 || /* reserved, 1 byte */
usr.sbin/bgpctl/bgpctl.c
1409
ibuf_get_n8(b, &safi) == -1 || /* safi, 1 byte */
usr.sbin/bgpctl/bgpctl.c
1410
ibuf_size(b) != 0) {
usr.sbin/bgpctl/bgpctl.c
1422
print_capability(uint8_t capa_code, struct ibuf *b)
usr.sbin/bgpctl/bgpctl.c
1429
print_afi(b);
usr.sbin/bgpctl/bgpctl.c
1440
if (ibuf_get_n32(b, &as) == -1 ||
usr.sbin/bgpctl/bgpctl.c
1441
ibuf_size(b) != 0)
usr.sbin/bgpctl/bgpctl.c
1458
capa_code, ibuf_size(b));
usr.sbin/bgpctl/bgpctl.c
1521
show_mrt_capabilities(struct ibuf *b)
usr.sbin/bgpctl/bgpctl.c
1526
while (ibuf_size(b) > 0) {
usr.sbin/bgpctl/bgpctl.c
1527
if (ibuf_get_n8(b, &capa_code) == -1 ||
usr.sbin/bgpctl/bgpctl.c
1528
ibuf_get_n8(b, &capa_len) == -1 ||
usr.sbin/bgpctl/bgpctl.c
1529
ibuf_get_ibuf(b, capa_len, &cbuf) == -1) {
usr.sbin/bgpctl/bgpctl.c
1540
show_mrt_open(struct ibuf *b)
usr.sbin/bgpctl/bgpctl.c
1548
if (ibuf_get_n8(b, &version) == -1 ||
usr.sbin/bgpctl/bgpctl.c
1549
ibuf_get_n16(b, &short_as) == -1 ||
usr.sbin/bgpctl/bgpctl.c
1550
ibuf_get_n16(b, &holdtime) == -1 ||
usr.sbin/bgpctl/bgpctl.c
1551
ibuf_get_n32(b, &bgpid) == -1 ||
usr.sbin/bgpctl/bgpctl.c
1552
ibuf_get_n8(b, &optparamlen) == -1) {
usr.sbin/bgpctl/bgpctl.c
1562
if (optparamlen != ibuf_size(b)) {
usr.sbin/bgpctl/bgpctl.c
1567
while (ibuf_size(b) > 0) {
usr.sbin/bgpctl/bgpctl.c
1570
if (ibuf_get_n8(b, &op_type) == -1 ||
usr.sbin/bgpctl/bgpctl.c
1571
ibuf_get_n8(b, &op_len) == -1)
usr.sbin/bgpctl/bgpctl.c
1578
if (show_mrt_capabilities(b) == -1)
usr.sbin/bgpctl/bgpctl.c
1591
show_mrt_notification(struct ibuf *b)
usr.sbin/bgpctl/bgpctl.c
1597
if (ibuf_get_n8(b, &errcode) == -1 ||
usr.sbin/bgpctl/bgpctl.c
1598
ibuf_get_n8(b, &subcode) == -1) {
usr.sbin/bgpctl/bgpctl.c
1609
if (ibuf_size(b) > 1) {
usr.sbin/bgpctl/bgpctl.c
1610
if (ibuf_get_n8(b, &reason_len) == -1)
usr.sbin/bgpctl/bgpctl.c
1612
if (ibuf_get(b, reason, reason_len) == -1)
usr.sbin/bgpctl/bgpctl.c
1620
if (show_mrt_capabilities(b) == -1)
usr.sbin/bgpctl/bgpctl.c
1624
if (ibuf_size(b) > 0) {
usr.sbin/bgpctl/bgpctl.c
1625
len = ibuf_size(b);
usr.sbin/bgpctl/bgpctl.c
1632
if (ibuf_get_n8(b, &c) == -1)
usr.sbin/bgpctl/bgpctl.c
1641
show_mrt_update(struct ibuf *b, int reqflags, int addpath)
usr.sbin/bgpctl/bgpctl.c
1649
if (ibuf_get_n16(b, &wlen) == -1 ||
usr.sbin/bgpctl/bgpctl.c
1650
ibuf_get_ibuf(b, wlen, &wbuf) == -1)
usr.sbin/bgpctl/bgpctl.c
1668
if (ibuf_get_n16(b, &alen) == -1 ||
usr.sbin/bgpctl/bgpctl.c
1669
ibuf_get_ibuf(b, alen, &abuf) == -1)
usr.sbin/bgpctl/bgpctl.c
1703
if (ibuf_size(b) > 0) {
usr.sbin/bgpctl/bgpctl.c
1705
while (ibuf_size(b) > 0) {
usr.sbin/bgpctl/bgpctl.c
1707
if (ibuf_get_n32(b, &pathid) == -1)
usr.sbin/bgpctl/bgpctl.c
1709
if (nlri_get_prefix(b, &prefix, &prefixlen) == -1)
usr.sbin/bgpctl/bgpctl.c
1730
struct ibuf *b;
usr.sbin/bgpctl/bgpctl.c
1739
b = &mm->msg;
usr.sbin/bgpctl/bgpctl.c
1741
if (ibuf_get(b, m, sizeof(m)) == -1) {
usr.sbin/bgpctl/bgpctl.c
1752
if (ibuf_get_n16(b, &len) == -1 ||
usr.sbin/bgpctl/bgpctl.c
1753
ibuf_get_n8(b, &type) == -1) {
usr.sbin/bgpctl/bgpctl.c
1770
show_mrt_open(b);
usr.sbin/bgpctl/bgpctl.c
1778
show_mrt_notification(b);
usr.sbin/bgpctl/bgpctl.c
1786
show_mrt_update(b, req->flags, mm->add_path);
usr.sbin/bgpctl/bgpctl.c
1802
print_afi(b);
usr.sbin/bgpctl/mrtparser.c
56
char *b = buf;
usr.sbin/bgpctl/mrtparser.c
60
if ((n = read(fd, b, len)) == -1) {
usr.sbin/bgpctl/mrtparser.c
67
b += n;
usr.sbin/bgpctl/mrtparser.c
71
return (b - (char *)buf);
usr.sbin/bgpctl/output.c
781
uint8_t flags, type, safi, aid, prefixlen, origin, b;
usr.sbin/bgpctl/output.c
976
if (ibuf_get_n8(buf, &b) == -1)
usr.sbin/bgpctl/output.c
978
printf(" %02x", b);
usr.sbin/bgpd/chash.c
481
struct ch_group *b = &buddy[0];
usr.sbin/bgpd/chash.c
486
for (n = 0; n < CH_H2_SIZE; n++, g++, b++) {
usr.sbin/bgpd/chash.c
489
if (ch_sub_merge_one(type, to, tometa, b) == -1)
usr.sbin/bgpd/chash.c
931
uint64_t a, b;
usr.sbin/bgpd/chash.c
935
b = (v ^ a) * mul;
usr.sbin/bgpd/chash.c
936
b ^= (b >> 47);
usr.sbin/bgpd/chash.c
937
return b * mul;
usr.sbin/bgpd/chash.c
945
uint64_t b = hash;
usr.sbin/bgpd/chash.c
948
c = ch_rotate(b, 37) * mul + a;
usr.sbin/bgpd/chash.c
949
d = (ch_rotate(a, 25) + b) * mul;
usr.sbin/bgpd/config.c
673
prefixset_cmp(struct prefixset_item *a, struct prefixset_item *b)
usr.sbin/bgpd/config.c
677
if (a->p.addr.aid < b->p.addr.aid)
usr.sbin/bgpd/config.c
679
if (a->p.addr.aid > b->p.addr.aid)
usr.sbin/bgpd/config.c
684
i = memcmp(&a->p.addr.v4, &b->p.addr.v4,
usr.sbin/bgpd/config.c
688
i = memcmp(&a->p.addr.v6, &b->p.addr.v6,
usr.sbin/bgpd/config.c
698
if (a->p.len < b->p.len)
usr.sbin/bgpd/config.c
700
if (a->p.len > b->p.len)
usr.sbin/bgpd/config.c
702
if (a->p.len_min < b->p.len_min)
usr.sbin/bgpd/config.c
704
if (a->p.len_min > b->p.len_min)
usr.sbin/bgpd/config.c
706
if (a->p.len_max < b->p.len_max)
usr.sbin/bgpd/config.c
708
if (a->p.len_max > b->p.len_max)
usr.sbin/bgpd/config.c
716
roa_cmp(struct roa *a, struct roa *b)
usr.sbin/bgpd/config.c
720
if (a->aid < b->aid)
usr.sbin/bgpd/config.c
722
if (a->aid > b->aid)
usr.sbin/bgpd/config.c
727
i = memcmp(&a->prefix.inet, &b->prefix.inet,
usr.sbin/bgpd/config.c
731
i = memcmp(&a->prefix.inet6, &b->prefix.inet6,
usr.sbin/bgpd/config.c
741
if (a->prefixlen < b->prefixlen)
usr.sbin/bgpd/config.c
743
if (a->prefixlen > b->prefixlen)
usr.sbin/bgpd/config.c
746
if (a->asnum < b->asnum)
usr.sbin/bgpd/config.c
748
if (a->asnum > b->asnum)
usr.sbin/bgpd/config.c
751
if (a->maxlen < b->maxlen)
usr.sbin/bgpd/config.c
753
if (a->maxlen > b->maxlen)
usr.sbin/bgpd/config.c
762
aspa_cmp(struct aspa_set *a, struct aspa_set *b)
usr.sbin/bgpd/config.c
764
if (a->as < b->as)
usr.sbin/bgpd/config.c
766
if (a->as > b->as)
usr.sbin/bgpd/config.c
774
flowspec_config_cmp(struct flowspec_config *a, struct flowspec_config *b)
usr.sbin/bgpd/config.c
776
if (a->flow->aid < b->flow->aid)
usr.sbin/bgpd/config.c
778
if (a->flow->aid > b->flow->aid)
usr.sbin/bgpd/config.c
782
b->flow->data, b->flow->len, a->flow->aid == AID_FLOWSPECv6);
usr.sbin/bgpd/flowspec.c
100
uint8_t a[4] = { 0 }, b[4] = { 0 };
usr.sbin/bgpd/flowspec.c
109
extract_prefix(bbuf + 2, bblen - 2, &b, clen, sizeof(b));
usr.sbin/bgpd/flowspec.c
112
cmp = memcmp(a, b, sizeof(a));
usr.sbin/bgpd/flowspec.c
135
uint8_t a[16] = { 0 }, b[16] = { 0 };
usr.sbin/bgpd/flowspec.c
151
extract_prefix(bbuf + 3, bblen - 3, &b, clen, sizeof(b));
usr.sbin/bgpd/flowspec.c
154
cmp = memcmp(a, b, sizeof(a));
usr.sbin/bgpd/flowspec.c
202
flowspec_cmp(const uint8_t *a, int alen, const uint8_t *b, int blen, int is_v6)
usr.sbin/bgpd/flowspec.c
210
bcomplen = flowspec_next_component(b, blen, is_v6, &btype);
usr.sbin/bgpd/flowspec.c
228
b, bcomplen);
usr.sbin/bgpd/flowspec.c
231
b, bcomplen);
usr.sbin/bgpd/flowspec.c
237
cmp = memcmp(a, b, MINIMUM(acomplen, bcomplen));
usr.sbin/bgpd/flowspec.c
261
b += bcomplen;
usr.sbin/bgpd/flowspec.c
90
#define MINIMUM(a, b) ((a) < (b) ? (a) : (b))
usr.sbin/bgpd/kroute.c
1454
kroute_compare(struct kroute *a, struct kroute *b)
usr.sbin/bgpd/kroute.c
1456
if (ntohl(a->prefix.s_addr) < ntohl(b->prefix.s_addr))
usr.sbin/bgpd/kroute.c
1458
if (ntohl(a->prefix.s_addr) > ntohl(b->prefix.s_addr))
usr.sbin/bgpd/kroute.c
1460
if (a->prefixlen < b->prefixlen)
usr.sbin/bgpd/kroute.c
1462
if (a->prefixlen > b->prefixlen)
usr.sbin/bgpd/kroute.c
1466
if (a->priority == RTP_ANY || b->priority == RTP_ANY)
usr.sbin/bgpd/kroute.c
1468
if (a->priority < b->priority)
usr.sbin/bgpd/kroute.c
1470
if (a->priority > b->priority)
usr.sbin/bgpd/kroute.c
1476
kroute6_compare(struct kroute6 *a, struct kroute6 *b)
usr.sbin/bgpd/kroute.c
1481
if (a->prefix.s6_addr[i] < b->prefix.s6_addr[i])
usr.sbin/bgpd/kroute.c
1483
if (a->prefix.s6_addr[i] > b->prefix.s6_addr[i])
usr.sbin/bgpd/kroute.c
1486
if (a->prefix_scope_id < b->prefix_scope_id)
usr.sbin/bgpd/kroute.c
1488
if (a->prefix_scope_id > b->prefix_scope_id)
usr.sbin/bgpd/kroute.c
1491
if (a->prefixlen < b->prefixlen)
usr.sbin/bgpd/kroute.c
1493
if (a->prefixlen > b->prefixlen)
usr.sbin/bgpd/kroute.c
1497
if (a->priority == RTP_ANY || b->priority == RTP_ANY)
usr.sbin/bgpd/kroute.c
1499
if (a->priority < b->priority)
usr.sbin/bgpd/kroute.c
1501
if (a->priority > b->priority)
usr.sbin/bgpd/kroute.c
1507
knexthop_compare(struct knexthop *a, struct knexthop *b)
usr.sbin/bgpd/kroute.c
1511
if (a->nexthop.aid != b->nexthop.aid)
usr.sbin/bgpd/kroute.c
1512
return (b->nexthop.aid - a->nexthop.aid);
usr.sbin/bgpd/kroute.c
1516
if (ntohl(a->nexthop.v4.s_addr) < ntohl(b->nexthop.v4.s_addr))
usr.sbin/bgpd/kroute.c
1518
if (ntohl(a->nexthop.v4.s_addr) > ntohl(b->nexthop.v4.s_addr))
usr.sbin/bgpd/kroute.c
1523
if (a->nexthop.v6.s6_addr[i] < b->nexthop.v6.s6_addr[i])
usr.sbin/bgpd/kroute.c
1525
if (a->nexthop.v6.s6_addr[i] > b->nexthop.v6.s6_addr[i])
usr.sbin/bgpd/kroute.c
1537
kredist_compare(struct kredist_node *a, struct kredist_node *b)
usr.sbin/bgpd/kroute.c
1541
if (a->prefix.aid != b->prefix.aid)
usr.sbin/bgpd/kroute.c
1542
return (b->prefix.aid - a->prefix.aid);
usr.sbin/bgpd/kroute.c
1544
if (a->prefixlen < b->prefixlen)
usr.sbin/bgpd/kroute.c
1546
if (a->prefixlen > b->prefixlen)
usr.sbin/bgpd/kroute.c
1551
if (ntohl(a->prefix.v4.s_addr) < ntohl(b->prefix.v4.s_addr))
usr.sbin/bgpd/kroute.c
1553
if (ntohl(a->prefix.v4.s_addr) > ntohl(b->prefix.v4.s_addr))
usr.sbin/bgpd/kroute.c
1558
if (a->prefix.v6.s6_addr[i] < b->prefix.v6.s6_addr[i])
usr.sbin/bgpd/kroute.c
1560
if (a->prefix.v6.s6_addr[i] > b->prefix.v6.s6_addr[i])
usr.sbin/bgpd/kroute.c
1568
if (a->rd < b->rd)
usr.sbin/bgpd/kroute.c
1570
if (a->rd > b->rd)
usr.sbin/bgpd/kroute.c
1577
kif_compare(struct kif *a, struct kif *b)
usr.sbin/bgpd/kroute.c
1579
return (b->ifindex - a->ifindex);
usr.sbin/bgpd/monotime.h
49
monotime_cmp(monotime_t a, monotime_t b)
usr.sbin/bgpd/monotime.h
51
if (a.monotime > b.monotime)
usr.sbin/bgpd/monotime.h
53
if (a.monotime < b.monotime)
usr.sbin/bgpd/parse.y
4316
cmpcommunity(struct community *a, struct community *b)
usr.sbin/bgpd/parse.y
4318
if (a->flags > b->flags)
usr.sbin/bgpd/parse.y
4320
if (a->flags < b->flags)
usr.sbin/bgpd/parse.y
4322
if (a->data1 > b->data1)
usr.sbin/bgpd/parse.y
4324
if (a->data1 < b->data1)
usr.sbin/bgpd/parse.y
4326
if (a->data2 > b->data2)
usr.sbin/bgpd/parse.y
4328
if (a->data2 < b->data2)
usr.sbin/bgpd/parse.y
4330
if (a->data3 > b->data3)
usr.sbin/bgpd/parse.y
4332
if (a->data3 < b->data3)
usr.sbin/bgpd/printconf.c
1266
const struct peer * const *b;
usr.sbin/bgpd/printconf.c
1269
b = bb;
usr.sbin/bgpd/printconf.c
1271
return ((*a)->conf.groupid - (*b)->conf.groupid);
usr.sbin/bgpd/rde.c
3729
rde_pftable_cmp(struct rde_pftable_node *a, struct rde_pftable_node *b)
usr.sbin/bgpd/rde.c
3731
if (a->prefix > b->prefix)
usr.sbin/bgpd/rde.c
3733
if (a->prefix < b->prefix)
usr.sbin/bgpd/rde.c
3735
return (a->id - b->id);
usr.sbin/bgpd/rde_adjout.c
120
pend_attr_eq(const struct pend_attr *a, const struct pend_attr *b)
usr.sbin/bgpd/rde_adjout.c
122
if (a->attrs != b->attrs)
usr.sbin/bgpd/rde_adjout.c
124
if (a->aid != b->aid)
usr.sbin/bgpd/rde_adjout.c
252
pend_prefix_eq(const struct pend_prefix *a, const struct pend_prefix *b)
usr.sbin/bgpd/rde_adjout.c
254
if (a->pt != b->pt)
usr.sbin/bgpd/rde_adjout.c
256
if (a->path_id_tx != b->path_id_tx)
usr.sbin/bgpd/rde_adjout.c
289
adjout_attr_eq(const struct adjout_attr *a, const struct adjout_attr *b)
usr.sbin/bgpd/rde_adjout.c
291
if (a->aspath == b->aspath &&
usr.sbin/bgpd/rde_adjout.c
292
a->communities == b->communities &&
usr.sbin/bgpd/rde_adjout.c
293
a->nexthop == b->nexthop)
usr.sbin/bgpd/rde_attr.c
207
attr_equal(const struct rde_aspath *a, const struct rde_aspath *b)
usr.sbin/bgpd/rde_attr.c
211
if (a->others_len != b->others_len)
usr.sbin/bgpd/rde_attr.c
214
if (a->others[l] != b->others[l])
usr.sbin/bgpd/rde_community.c
179
const struct community *b = vb;
usr.sbin/bgpd/rde_community.c
181
if ((uint8_t)a->flags != (uint8_t)b->flags)
usr.sbin/bgpd/rde_community.c
182
return (uint8_t)a->flags > (uint8_t)b->flags ? 1 : -1;
usr.sbin/bgpd/rde_community.c
184
if (a->data1 != b->data1)
usr.sbin/bgpd/rde_community.c
185
return a->data1 > b->data1 ? 1 : -1;
usr.sbin/bgpd/rde_community.c
186
if (a->data2 != b->data2)
usr.sbin/bgpd/rde_community.c
187
return a->data2 > b->data2 ? 1 : -1;
usr.sbin/bgpd/rde_community.c
188
if (a->data3 != b->data3)
usr.sbin/bgpd/rde_community.c
189
return a->data3 > b->data3 ? 1 : -1;
usr.sbin/bgpd/rde_community.c
194
mask_match(struct community *a, struct community *b, struct community *m)
usr.sbin/bgpd/rde_community.c
196
if ((uint8_t)a->flags != (uint8_t)b->flags)
usr.sbin/bgpd/rde_community.c
197
return (uint8_t)a->flags > (uint8_t)b->flags ? 1 : -1;
usr.sbin/bgpd/rde_community.c
199
if ((a->data1 & m->data1) != (b->data1 & m->data1)) {
usr.sbin/bgpd/rde_community.c
200
if ((a->data1 & m->data1) > (b->data1 & m->data1))
usr.sbin/bgpd/rde_community.c
204
if ((a->data2 & m->data2) != (b->data2 & m->data2)) {
usr.sbin/bgpd/rde_community.c
205
if ((a->data2 & m->data2) > (b->data2 & m->data2))
usr.sbin/bgpd/rde_community.c
209
if ((a->data3 & m->data3) != (b->data3 & m->data3)) {
usr.sbin/bgpd/rde_community.c
210
if ((a->data3 & m->data3) > (b->data3 & m->data3))
usr.sbin/bgpd/rde_community.c
727
communities_equal(const struct rde_community *a, const struct rde_community *b)
usr.sbin/bgpd/rde_community.c
729
if (a->nentries != b->nentries)
usr.sbin/bgpd/rde_community.c
731
if (a->flags != b->flags)
usr.sbin/bgpd/rde_community.c
734
return (memcmp(a->communities, b->communities,
usr.sbin/bgpd/rde_filter.c
395
rde_filter_equal(struct filter_head *a, struct filter_head *b)
usr.sbin/bgpd/rde_filter.c
403
fb = b ? TAILQ_FIRST(b) : NULL;
usr.sbin/bgpd/rde_filter.c
727
filterset_cmp(struct filter_set *a, struct filter_set *b)
usr.sbin/bgpd/rde_filter.c
729
if (strcmp(filterset_name(a->type), filterset_name(b->type)))
usr.sbin/bgpd/rde_filter.c
730
return (a->type - b->type);
usr.sbin/bgpd/rde_filter.c
734
return (memcmp(&a->action.community, &b->action.community,
usr.sbin/bgpd/rde_filter.c
738
if (a->type == ACTION_SET_NEXTHOP && b->type == ACTION_SET_NEXTHOP) {
usr.sbin/bgpd/rde_filter.c
745
return (a->action.nexthop.aid - b->action.nexthop.aid);
usr.sbin/bgpd/rde_filter.c
790
const struct rde_filter_set_elm *a, *b;
usr.sbin/bgpd/rde_filter.c
797
b = bfs->set;
usr.sbin/bgpd/rde_filter.c
798
for (i = 0; i < afs->len; i++, a++, b++) {
usr.sbin/bgpd/rde_filter.c
799
if (a->type != b->type)
usr.sbin/bgpd/rde_filter.c
805
if (a->action.prepend == b->action.prepend)
usr.sbin/bgpd/rde_filter.c
813
if (a->action.metric == b->action.metric)
usr.sbin/bgpd/rde_filter.c
819
if (a->action.relative == b->action.relative)
usr.sbin/bgpd/rde_filter.c
823
if (a->action.nh_ref == b->action.nh_ref)
usr.sbin/bgpd/rde_filter.c
833
if (memcmp(&a->action.community, &b->action.community,
usr.sbin/bgpd/rde_filter.c
839
if (a->action.id == b->action.id)
usr.sbin/bgpd/rde_filter.c
843
if (a->action.origin == b->action.origin)
usr.sbin/bgpd/rde_peer.c
240
peer_cmp(struct rde_peer *a, struct rde_peer *b)
usr.sbin/bgpd/rde_peer.c
242
if (a->conf.id > b->conf.id)
usr.sbin/bgpd/rde_peer.c
244
if (a->conf.id < b->conf.id)
usr.sbin/bgpd/rde_prefix.c
471
pt_prefix_cmp(const struct pt_entry *a, const struct pt_entry *b)
usr.sbin/bgpd/rde_prefix.c
481
if (a->aid > b->aid)
usr.sbin/bgpd/rde_prefix.c
483
if (a->aid < b->aid)
usr.sbin/bgpd/rde_prefix.c
489
b4 = (const struct pt_entry4 *)b;
usr.sbin/bgpd/rde_prefix.c
501
b6 = (const struct pt_entry6 *)b;
usr.sbin/bgpd/rde_prefix.c
515
vb4 = (const struct pt_entry_vpn4 *)b;
usr.sbin/bgpd/rde_prefix.c
531
vb6 = (const struct pt_entry_vpn6 *)b;
usr.sbin/bgpd/rde_prefix.c
550
eb = (const struct pt_entry_evpn *)b;
usr.sbin/bgpd/rde_prefix.c
591
bf = (const struct pt_entry_flow *)b;
usr.sbin/bgpd/rde_rib.c
1454
struct bgpd_addr *a, *b;
usr.sbin/bgpd/rde_rib.c
1464
b = &nb->exit_nexthop;
usr.sbin/bgpd/rde_rib.c
1466
if (a->aid != b->aid)
usr.sbin/bgpd/rde_rib.c
1467
return (a->aid - b->aid);
usr.sbin/bgpd/rde_rib.c
1471
if (ntohl(a->v4.s_addr) > ntohl(b->v4.s_addr))
usr.sbin/bgpd/rde_rib.c
1473
if (ntohl(a->v4.s_addr) < ntohl(b->v4.s_addr))
usr.sbin/bgpd/rde_rib.c
1477
return (memcmp(&a->v6, &b->v6, sizeof(struct in6_addr)));
usr.sbin/bgpd/rde_rib.c
622
path_equal(const struct rde_aspath *a, const struct rde_aspath *b)
usr.sbin/bgpd/rde_rib.c
624
if (a == NULL && b == NULL)
usr.sbin/bgpd/rde_rib.c
626
else if (b == NULL)
usr.sbin/bgpd/rde_rib.c
631
if ((a->flags & ~F_ATTR_LINKED) != (b->flags & ~F_ATTR_LINKED))
usr.sbin/bgpd/rde_rib.c
633
if (a->origin != b->origin)
usr.sbin/bgpd/rde_rib.c
635
if (a->med != b->med)
usr.sbin/bgpd/rde_rib.c
637
if (a->lpref != b->lpref)
usr.sbin/bgpd/rde_rib.c
639
if (a->weight != b->weight)
usr.sbin/bgpd/rde_rib.c
641
if (a->rtlabelid != b->rtlabelid)
usr.sbin/bgpd/rde_rib.c
643
if (a->pftableid != b->pftableid)
usr.sbin/bgpd/rde_rib.c
648
if (aspath_compare(a->aspath, b->aspath) != 0)
usr.sbin/bgpd/rde_rib.c
650
return (attr_equal(a, b));
usr.sbin/bgpd/rde_rib.c
94
rib_compare(const struct rib_entry *a, const struct rib_entry *b)
usr.sbin/bgpd/rde_rib.c
96
return (pt_prefix_cmp(a->prefix, b->prefix));
usr.sbin/bgpd/rde_sets.c
193
const uint32_t *b = bp;
usr.sbin/bgpd/rde_sets.c
195
if (*a > *b)
usr.sbin/bgpd/rde_sets.c
197
else if (*a < *b)
usr.sbin/bgpd/rde_sets.c
219
set_equal(const struct set_table *a, const struct set_table *b)
usr.sbin/bgpd/rde_sets.c
222
if (a == NULL && b == NULL)
usr.sbin/bgpd/rde_sets.c
224
if (a == NULL || b == NULL)
usr.sbin/bgpd/rde_sets.c
227
if (a->nmemb != b->nmemb)
usr.sbin/bgpd/rde_sets.c
229
if (memcmp(a->set, b->set, a->nmemb * a->size) != 0)
usr.sbin/bgpd/rde_trie.c
102
inet6findmsb(struct in6_addr *a, struct in6_addr *b)
usr.sbin/bgpd/rde_trie.c
107
for (i = 0; i < sizeof(*a) && a->s6_addr[i] == b->s6_addr[i]; i++)
usr.sbin/bgpd/rde_trie.c
110
x = a->s6_addr[i] ^ b->s6_addr[i];
usr.sbin/bgpd/rde_trie.c
148
struct tentry_v4 *n, *new, *b, **prev;
usr.sbin/bgpd/rde_trie.c
167
if ((b = calloc(1, sizeof(*b))) == NULL)
usr.sbin/bgpd/rde_trie.c
170
rdemem.pset_size += sizeof(*b);
usr.sbin/bgpd/rde_trie.c
171
b->plen = inet4findmsb(&n->addr, &mp);
usr.sbin/bgpd/rde_trie.c
172
inet4applymask(&b->addr, &n->addr, b->plen);
usr.sbin/bgpd/rde_trie.c
174
*prev = b;
usr.sbin/bgpd/rde_trie.c
175
if (inet4isset(&n->addr, b->plen)) {
usr.sbin/bgpd/rde_trie.c
176
b->trie[1] = n;
usr.sbin/bgpd/rde_trie.c
177
prev = &b->trie[0];
usr.sbin/bgpd/rde_trie.c
179
b->trie[0] = n;
usr.sbin/bgpd/rde_trie.c
180
prev = &b->trie[1];
usr.sbin/bgpd/rde_trie.c
231
struct tentry_v6 *n, *new, *b, **prev;
usr.sbin/bgpd/rde_trie.c
250
if ((b = calloc(1, sizeof(*b))) == NULL)
usr.sbin/bgpd/rde_trie.c
253
rdemem.pset_size += sizeof(*b);
usr.sbin/bgpd/rde_trie.c
254
b->plen = inet6findmsb(&n->addr, &mp);
usr.sbin/bgpd/rde_trie.c
255
inet6applymask(&b->addr, &n->addr, b->plen);
usr.sbin/bgpd/rde_trie.c
257
*prev = b;
usr.sbin/bgpd/rde_trie.c
258
if (inet6isset(&n->addr, b->plen)) {
usr.sbin/bgpd/rde_trie.c
259
b->trie[1] = n;
usr.sbin/bgpd/rde_trie.c
260
prev = &b->trie[0];
usr.sbin/bgpd/rde_trie.c
262
b->trie[0] = n;
usr.sbin/bgpd/rde_trie.c
263
prev = &b->trie[1];
usr.sbin/bgpd/rde_trie.c
691
trie_equal_v4(struct tentry_v4 *a, struct tentry_v4 *b)
usr.sbin/bgpd/rde_trie.c
693
if (a == NULL && b == NULL)
usr.sbin/bgpd/rde_trie.c
695
if (a == NULL || b == NULL)
usr.sbin/bgpd/rde_trie.c
698
if (a->addr.s_addr != b->addr.s_addr ||
usr.sbin/bgpd/rde_trie.c
699
a->plen != b->plen ||
usr.sbin/bgpd/rde_trie.c
700
a->node != b->node ||
usr.sbin/bgpd/rde_trie.c
701
a->plenmask.s_addr != b->plenmask.s_addr)
usr.sbin/bgpd/rde_trie.c
704
if (set_equal(a->set, b->set) == 0)
usr.sbin/bgpd/rde_trie.c
707
if (trie_equal_v4(a->trie[0], b->trie[0]) == 0 ||
usr.sbin/bgpd/rde_trie.c
708
trie_equal_v4(a->trie[1], b->trie[1]) == 0)
usr.sbin/bgpd/rde_trie.c
715
trie_equal_v6(struct tentry_v6 *a, struct tentry_v6 *b)
usr.sbin/bgpd/rde_trie.c
717
if (a == NULL && b == NULL)
usr.sbin/bgpd/rde_trie.c
719
if (a == NULL || b == NULL)
usr.sbin/bgpd/rde_trie.c
722
if (memcmp(&a->addr, &b->addr, sizeof(a->addr)) != 0 ||
usr.sbin/bgpd/rde_trie.c
723
a->plen != b->plen ||
usr.sbin/bgpd/rde_trie.c
724
a->node != b->node ||
usr.sbin/bgpd/rde_trie.c
725
memcmp(&a->plenmask, &b->plenmask, sizeof(a->plenmask)) != 0)
usr.sbin/bgpd/rde_trie.c
728
if (set_equal(a->set, b->set) == 0)
usr.sbin/bgpd/rde_trie.c
731
if (trie_equal_v6(a->trie[0], b->trie[0]) == 0 ||
usr.sbin/bgpd/rde_trie.c
732
trie_equal_v6(a->trie[1], b->trie[1]) == 0)
usr.sbin/bgpd/rde_trie.c
740
trie_equal(struct trie_head *a, struct trie_head *b)
usr.sbin/bgpd/rde_trie.c
742
if (a->match_default_v4 != b->match_default_v4 ||
usr.sbin/bgpd/rde_trie.c
743
a->match_default_v6 != b->match_default_v6)
usr.sbin/bgpd/rde_trie.c
745
if (trie_equal_v4(a->root_v4, b->root_v4) == 0)
usr.sbin/bgpd/rde_trie.c
747
if (trie_equal_v6(a->root_v6, b->root_v6) == 0)
usr.sbin/bgpd/rde_trie.c
82
inet4findmsb(struct in_addr *a, struct in_addr *b)
usr.sbin/bgpd/rde_trie.c
87
v = ntohl(a->s_addr ^ b->s_addr);
usr.sbin/bgpd/rtr_proto.c
1265
struct ibuf *b;
usr.sbin/bgpd/rtr_proto.c
1301
while ((b = msgbuf_get(rs->w)) != NULL) {
usr.sbin/bgpd/rtr_proto.c
1302
rtr_process_msg(rs, b);
usr.sbin/bgpd/rtr_proto.c
1303
ibuf_free(b);
usr.sbin/bgpd/rtr_proto.c
433
struct ibuf *b;
usr.sbin/bgpd/rtr_proto.c
448
if ((b = ibuf_open(len)) == NULL)
usr.sbin/bgpd/rtr_proto.c
450
return b;
usr.sbin/bgpd/session.c
1146
la_cmp(struct listen_addr *a, struct listen_addr *b)
usr.sbin/bgpd/session.c
1151
if (a->sa.ss_family != b->sa.ss_family)
usr.sbin/bgpd/session.c
1157
in_b = (struct sockaddr_in *)&b->sa;
usr.sbin/bgpd/session.c
1165
in6_b = (struct sockaddr_in6 *)&b->sa;
usr.sbin/bgpd/session.c
89
peer_compare(const struct peer *a, const struct peer *b)
usr.sbin/bgpd/session.c
91
return a->conf.id - b->conf.id;
usr.sbin/bgpd/session.c
944
sa_equal(struct bgpd_addr *ba, struct sockaddr *b)
usr.sbin/bgpd/session.c
948
sa2addr(b, &bb, NULL);
usr.sbin/bgpd/session_bgp.c
143
session_capa_add_afi(struct ibuf *b, uint8_t aid, uint8_t flags)
usr.sbin/bgpd/session_bgp.c
154
errs += ibuf_add_n16(b, afi);
usr.sbin/bgpd/session_bgp.c
155
errs += ibuf_add_n8(b, safi);
usr.sbin/bgpd/session_bgp.c
156
errs += ibuf_add_n8(b, flags);
usr.sbin/bgpd/session_bgp.c
162
session_capa_add_ext_nh(struct ibuf *b, uint8_t aid)
usr.sbin/bgpd/session_bgp.c
173
errs += ibuf_add_n16(b, afi);
usr.sbin/bgpd/session_bgp.c
174
errs += ibuf_add_n16(b, safi);
usr.sbin/bgpd/session_bgp.c
175
errs += ibuf_add_n16(b, AFI_IPv6);
usr.sbin/bgpd/session_bgp.c
587
struct ibuf *b;
usr.sbin/bgpd/session_bgp.c
660
if ((b = ibuf_open(len)) == NULL)
usr.sbin/bgpd/session_bgp.c
662
return (b);
usr.sbin/bgpd/util.c
1000
prefix_compare(const struct bgpd_addr *a, const struct bgpd_addr *b,
usr.sbin/bgpd/util.c
1007
if (a->aid != b->aid)
usr.sbin/bgpd/util.c
1008
return (a->aid - b->aid);
usr.sbin/bgpd/util.c
1012
if (be64toh(a->rd) > be64toh(b->rd))
usr.sbin/bgpd/util.c
1014
if (be64toh(a->rd) < be64toh(b->rd))
usr.sbin/bgpd/util.c
1024
ba = ntohl(b->v4.s_addr & mask);
usr.sbin/bgpd/util.c
1031
if (be64toh(a->rd) > be64toh(b->rd))
usr.sbin/bgpd/util.c
1033
if (be64toh(a->rd) < be64toh(b->rd))
usr.sbin/bgpd/util.c
1042
if (a->v6.s6_addr[i] != b->v6.s6_addr[i])
usr.sbin/bgpd/util.c
1043
return (a->v6.s6_addr[i] - b->v6.s6_addr[i]);
usr.sbin/bgpd/util.c
1048
(b->v6.s6_addr[prefixlen / 8] & m))
usr.sbin/bgpd/util.c
1050
(b->v6.s6_addr[prefixlen / 8] & m));
usr.sbin/bgpd/util.c
1058
if (a->labellen > b->labellen)
usr.sbin/bgpd/util.c
1060
if (a->labellen < b->labellen)
usr.sbin/bgpd/util.c
1062
return (memcmp(a->labelstack, b->labelstack, a->labellen));
usr.sbin/bgplgd/slowcgi.c
1235
dump_fcgi_begin_request_body(const char *p, struct fcgi_begin_request_body *b)
usr.sbin/bgplgd/slowcgi.c
1237
ldebug("%srole %d", p, ntohs(b->role));
usr.sbin/bgplgd/slowcgi.c
1238
ldebug("%sflags %d", p, b->flags);
usr.sbin/bgplgd/slowcgi.c
1242
dump_fcgi_end_request_body(const char *p, struct fcgi_end_request_body *b)
usr.sbin/bgplgd/slowcgi.c
1244
ldebug("%sappStatus: %d", p, ntohl(b->app_status));
usr.sbin/bgplgd/slowcgi.c
1245
ldebug("%sprotocolStatus: %d", p, b->protocol_status);
usr.sbin/btrace/btrace.c
1969
bacmp(struct bt_arg *a, struct bt_arg *b)
usr.sbin/btrace/btrace.c
1974
if (a->ba_type != b->ba_type)
usr.sbin/btrace/btrace.c
1975
return a->ba_type - b->ba_type;
usr.sbin/btrace/btrace.c
1979
return ba2long(a, NULL) - ba2long(b, NULL);
usr.sbin/btrace/btrace.c
1982
return strcmp(astr, ba2str(b, NULL));
usr.sbin/btrace/btrace.c
1986
b = b->ba_value;
usr.sbin/btrace/btrace.c
1988
val = bacmp(a, b);
usr.sbin/btrace/btrace.c
1993
b = SLIST_NEXT(b, ba_next);
usr.sbin/btrace/btrace.c
1994
if (a == NULL && b != NULL)
usr.sbin/btrace/btrace.c
1996
else if (a != NULL && b == NULL)
usr.sbin/btrace/btrace.c
1998
} while (a != NULL && b != NULL);
usr.sbin/btrace/btrace.c
47
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/btrace/btrace.c
48
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.sbin/btrace/ksyms.c
343
const struct sym *a = ap, *b = bp;
usr.sbin/btrace/ksyms.c
345
if (a->sym_value < b->sym_value)
usr.sbin/btrace/ksyms.c
347
return a->sym_value > b->sym_value;
usr.sbin/btrace/map.c
136
map_cmp(const void *a, const void *b)
usr.sbin/btrace/map.c
139
const struct mentry *mb = *(const struct mentry **)b;
usr.sbin/config/mkioconf.c
104
n2 = (*(struct devi **)b)->i_cfindex;
usr.sbin/config/mkioconf.c
99
cforder(const void *a, const void *b)
usr.sbin/config/pack.c
423
loclencmp(const void *a, const void *b)
usr.sbin/config/pack.c
428
l2 = (*(struct devi **)b)->i_atattr->a_loclen;
usr.sbin/config/pack.c
481
pvlencmp(const void *a, const void *b)
usr.sbin/config/pack.c
486
l2 = (*(struct devi **)b)->i_pvlen;
usr.sbin/cron/database.c
42
#define HASH(a,b) ((a)+(b))
usr.sbin/cron/macros.h
32
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/dhcpd/dhcpd.c
352
#define MINIMUM(a,b) (((a)<(b))?(a):(b))
usr.sbin/dhcpd/memory.c
445
hwaddrcmp(struct hardware *a, struct hardware *b)
usr.sbin/dhcpd/memory.c
447
return ((a->htype != b->htype) || (a->hlen != b->hlen) ||
usr.sbin/dhcpd/memory.c
448
memcmp(a->haddr, b->haddr, b->hlen));
usr.sbin/dhcpd/memory.c
452
uidcmp(struct lease *a, struct lease *b)
usr.sbin/dhcpd/memory.c
454
return (a->uid_len != b->uid_len || memcmp(a->uid, b->uid,
usr.sbin/dhcpd/memory.c
455
b->uid_len));
usr.sbin/dhcpd/memory.c
459
uid_or_hwaddr_cmp(struct lease *a, struct lease *b)
usr.sbin/dhcpd/memory.c
461
if (a->uid && b->uid)
usr.sbin/dhcpd/memory.c
462
return uidcmp(a, b);
usr.sbin/dhcpd/memory.c
463
return hwaddrcmp(&a->hardware_addr, &b->hardware_addr);
usr.sbin/dvmrpd/kroute.c
129
kif_compare(struct kif_node *a, struct kif_node *b)
usr.sbin/dvmrpd/kroute.c
131
return (b->k.ifindex - a->k.ifindex);
usr.sbin/dvmrpd/rde_mfc.c
144
mfc_compare(struct mfc_node *a, struct mfc_node *b)
usr.sbin/dvmrpd/rde_mfc.c
146
if (ntohl(a->origin.s_addr) < ntohl(b->origin.s_addr))
usr.sbin/dvmrpd/rde_mfc.c
148
if (ntohl(a->origin.s_addr) > ntohl(b->origin.s_addr))
usr.sbin/dvmrpd/rde_mfc.c
150
if (ntohl(a->group.s_addr) < ntohl(b->group.s_addr))
usr.sbin/dvmrpd/rde_mfc.c
152
if (ntohl(a->group.s_addr) > ntohl(b->group.s_addr))
usr.sbin/dvmrpd/rde_srt.c
136
rt_compare(struct rt_node *a, struct rt_node *b)
usr.sbin/dvmrpd/rde_srt.c
142
if (a->prefixlen < b->prefixlen)
usr.sbin/dvmrpd/rde_srt.c
144
if (a->prefixlen > b->prefixlen)
usr.sbin/dvmrpd/rde_srt.c
146
if (ntohl(a->prefix.s_addr) < ntohl(b->prefix.s_addr))
usr.sbin/dvmrpd/rde_srt.c
148
if (ntohl(a->prefix.s_addr) > ntohl(b->prefix.s_addr))
usr.sbin/eigrpd/interface.c
55
iface_id_compare(struct eigrp_iface *a, struct eigrp_iface *b)
usr.sbin/eigrpd/interface.c
57
return (a->ifaceid - b->ifaceid);
usr.sbin/eigrpd/kroute.c
456
kroute_compare(struct kroute_prefix *a, struct kroute_prefix *b)
usr.sbin/eigrpd/kroute.c
460
if (a->af < b->af)
usr.sbin/eigrpd/kroute.c
462
if (a->af > b->af)
usr.sbin/eigrpd/kroute.c
465
addrcmp = eigrp_addrcmp(a->af, &a->prefix, &b->prefix);
usr.sbin/eigrpd/kroute.c
469
if (a->prefixlen < b->prefixlen)
usr.sbin/eigrpd/kroute.c
471
if (a->prefixlen > b->prefixlen)
usr.sbin/eigrpd/kroute.c
648
kif_compare(struct kif_node *a, struct kif_node *b)
usr.sbin/eigrpd/kroute.c
650
return (b->k.ifindex - a->k.ifindex);
usr.sbin/eigrpd/neighbor.c
41
nbr_compare(struct nbr *a, struct nbr *b)
usr.sbin/eigrpd/neighbor.c
43
if (a->ei->iface->ifindex < b->ei->iface->ifindex)
usr.sbin/eigrpd/neighbor.c
45
if (a->ei->iface->ifindex > b->ei->iface->ifindex)
usr.sbin/eigrpd/neighbor.c
48
return (eigrp_addrcmp(a->ei->eigrp->af, &a->addr, &b->addr));
usr.sbin/eigrpd/neighbor.c
52
nbr_pid_compare(struct nbr *a, struct nbr *b)
usr.sbin/eigrpd/neighbor.c
54
return (a->peerid - b->peerid);
usr.sbin/eigrpd/rde_dual.c
1265
rde_nbr_compare(struct rde_nbr *a, struct rde_nbr *b)
usr.sbin/eigrpd/rde_dual.c
1267
return (a->peerid - b->peerid);
usr.sbin/eigrpd/rde_dual.c
173
rt_compare(struct rt_node *a, struct rt_node *b)
usr.sbin/eigrpd/rde_dual.c
177
addrcmp = eigrp_addrcmp(a->eigrp->af, &a->prefix, &b->prefix);
usr.sbin/eigrpd/rde_dual.c
181
if (a->prefixlen < b->prefixlen)
usr.sbin/eigrpd/rde_dual.c
183
if (a->prefixlen > b->prefixlen)
usr.sbin/eigrpd/rde_dual.c
306
safe_sum_uint32(uint32_t a, uint32_t b)
usr.sbin/eigrpd/rde_dual.c
310
total = (uint64_t) a + (uint64_t) b;
usr.sbin/eigrpd/rde_dual.c
319
safe_mul_uint32(uint32_t a, uint32_t b)
usr.sbin/eigrpd/rde_dual.c
323
total = (uint64_t) a * (uint64_t) b;
usr.sbin/eigrpd/util.c
144
eigrp_addrcmp(int af, const union eigrpd_addr *a, const union eigrpd_addr *b)
usr.sbin/eigrpd/util.c
148
if (a->v4.s_addr == b->v4.s_addr)
usr.sbin/eigrpd/util.c
150
return ((ntohl(a->v4.s_addr) > ntohl(b->v4.s_addr)) ? 1 : -1);
usr.sbin/eigrpd/util.c
152
return (!!memcmp(&a->v6, &b->v6, sizeof(struct in6_addr)));
usr.sbin/eigrpd/util.c
180
eigrp_prefixcmp(int af, const union eigrpd_addr *a, const union eigrpd_addr *b,
usr.sbin/eigrpd/util.c
195
ba = htonl(b->v4.s_addr) & mask;
usr.sbin/eigrpd/util.c
203
if (a->v6.s6_addr[i] != b->v6.s6_addr[i])
usr.sbin/eigrpd/util.c
204
return (a->v6.s6_addr[i] - b->v6.s6_addr[i]);
usr.sbin/eigrpd/util.c
209
(b->v6.s6_addr[prefixlen / 8] & m))
usr.sbin/eigrpd/util.c
211
(b->v6.s6_addr[prefixlen / 8] & m));
usr.sbin/hostapd/hostapd.c
619
hostapd_entry_cmp(struct hostapd_entry *a, struct hostapd_entry *b)
usr.sbin/hostapd/hostapd.c
621
return (memcmp(a->e_lladdr, b->e_lladdr, IEEE80211_ADDR_LEN));
usr.sbin/hostapd/parse.y
1243
kw_cmp(const void *a, const void *b)
usr.sbin/hostapd/parse.y
1245
return strcmp(a, ((const struct keywords *)b)->k_name);
usr.sbin/httpd/httpd.c
1071
kv_cmp(struct kv *a, struct kv *b)
usr.sbin/httpd/httpd.c
1073
return (strcasecmp(a->kv_key, b->kv_key));
usr.sbin/httpd/httpd.c
1162
media_cmp(struct media_type *a, struct media_type *b)
usr.sbin/httpd/httpd.c
1164
return (strcasecmp(a->media_name, b->media_name));
usr.sbin/httpd/httpd.c
47
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.sbin/httpd/httpd.c
819
sockaddr_cmp(struct sockaddr *a, struct sockaddr *b, int prefixlen)
usr.sbin/httpd/httpd.c
825
if (a->sa_family == AF_UNSPEC || b->sa_family == AF_UNSPEC)
usr.sbin/httpd/httpd.c
827
else if (a->sa_family > b->sa_family)
usr.sbin/httpd/httpd.c
829
else if (a->sa_family < b->sa_family)
usr.sbin/httpd/httpd.c
838
b4 = (struct sockaddr_in *)b;
usr.sbin/httpd/httpd.c
852
b6 = (struct sockaddr_in6 *)b;
usr.sbin/httpd/parse.y
331
struct server_config *a, *b;
usr.sbin/httpd/parse.y
433
TAILQ_FOREACH(b, &srv->srv_hosts, entry) {
usr.sbin/httpd/parse.y
435
if (*b->name == '\0' ||
usr.sbin/httpd/parse.y
436
(b == &srv->srv_conf && b == a))
usr.sbin/httpd/parse.y
440
b, a)) == NULL) {
usr.sbin/httpd/parse.y
455
TAILQ_FOREACH_SAFE(a, &srv->srv_hosts, entry, b) {
usr.sbin/httpd/patterns.c
222
int b = *p;
usr.sbin/httpd/patterns.c
229
} else if (*s == b)
usr.sbin/httpd/server.c
1476
server_client_cmp(struct client *a, struct client *b)
usr.sbin/httpd/server.c
1478
return ((int)a->clt_id - b->clt_id);
usr.sbin/httpd/server.c
48
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/httpd/server_file.c
40
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/httpd/server_file.c
41
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.sbin/httpd/server_http.c
1751
server_httpmethod_cmp(const void *a, const void *b)
usr.sbin/httpd/server_http.c
1754
const struct http_method *mb = b;
usr.sbin/httpd/server_http.c
1780
server_httperror_cmp(const void *a, const void *b)
usr.sbin/httpd/server_http.c
1783
const struct http_error *eb = b;
usr.sbin/inetd/inetd.c
156
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/inetd/inetd.c
563
#define SWAP(type, a, b) {type c=(type)a; a=(type)b; b=(type)c;}
usr.sbin/installboot/i386_nlist.c
46
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/installboot/util.c
103
char *r = NULL, *d, *b, *s;
usr.sbin/installboot/util.c
123
if ((b = basename(s)) == NULL) {
usr.sbin/installboot/util.c
127
n = snprintf(s, PATH_MAX, "%s/%s", r, b);
usr.sbin/installboot/util.c
33
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/iscsid/iscsid.c
328
#define MERGE_MIN(r, a, b, v) \
usr.sbin/iscsid/iscsid.c
329
r->v = (a->v < b->v ? a->v : b->v)
usr.sbin/iscsid/iscsid.c
330
#define MERGE_MAX(r, a, b, v) \
usr.sbin/iscsid/iscsid.c
331
r->v = (a->v > b->v ? a->v : b->v)
usr.sbin/iscsid/iscsid.c
332
#define MERGE_OR(r, a, b, v) \
usr.sbin/iscsid/iscsid.c
333
r->v = (a->v || b->v)
usr.sbin/iscsid/iscsid.c
334
#define MERGE_AND(r, a, b, v) \
usr.sbin/iscsid/iscsid.c
335
r->v = (a->v && b->v)
usr.sbin/iscsid/iscsid.h
78
#define SEQ_LT(a,b) ((int)((a)-(b)) < 0)
usr.sbin/iscsid/iscsid.h
79
#define SEQ_LEQ(a,b) ((int)((a)-(b)) <= 0)
usr.sbin/iscsid/iscsid.h
80
#define SEQ_GT(a,b) ((int)((a)-(b)) > 0)
usr.sbin/iscsid/iscsid.h
81
#define SEQ_GEQ(a,b) ((int)((a)-(b)) >= 0)
usr.sbin/iscsid/logmsg.c
39
u_char b[16];
usr.sbin/iscsid/logmsg.c
47
l = sizeof(b) < len - i ? sizeof(b) : len - i;
usr.sbin/iscsid/logmsg.c
48
memcpy(b, (char *)buf + i, l);
usr.sbin/iscsid/logmsg.c
50
for (j = 0; j < sizeof(b); j++) {
usr.sbin/iscsid/logmsg.c
56
fprintf(stderr, "%02x", (int)b[j]);
usr.sbin/iscsid/logmsg.c
62
if (b[j] >= 0x20 && b[j] <= 0x7e)
usr.sbin/iscsid/logmsg.c
63
fprintf(stderr, "%c", b[j]);
usr.sbin/iscsid/logmsg.c
75
void *b;
usr.sbin/iscsid/logmsg.c
97
if (all && (b = pdu_getbuf(p, &s, PDU_DATA)))
usr.sbin/iscsid/logmsg.c
98
log_hexdump(b, s);
usr.sbin/iscsid/pdu.c
292
struct pdu *b, *nb;
usr.sbin/iscsid/pdu.c
297
TAILQ_FOREACH(b, &c->pdu_w, entry) {
usr.sbin/iscsid/pdu.c
300
off = b->resid;
usr.sbin/iscsid/pdu.c
302
if (!b->iov[j].iov_len)
usr.sbin/iscsid/pdu.c
304
if (off >= b->iov[j].iov_len) {
usr.sbin/iscsid/pdu.c
305
off -= b->iov[j].iov_len;
usr.sbin/iscsid/pdu.c
308
iov[niov].iov_base = (char *)b->iov[j].iov_base + off;
usr.sbin/iscsid/pdu.c
309
iov[niov++].iov_len = b->iov[j].iov_len - off;
usr.sbin/iscsid/pdu.c
327
for (b = TAILQ_FIRST(&c->pdu_w); b != NULL && size > 0; b = nb) {
usr.sbin/iscsid/pdu.c
328
nb = TAILQ_NEXT(b, entry);
usr.sbin/iscsid/pdu.c
329
resid = b->resid;
usr.sbin/iscsid/pdu.c
331
if (resid >= b->iov[j].iov_len)
usr.sbin/iscsid/pdu.c
332
resid -= b->iov[j].iov_len;
usr.sbin/iscsid/pdu.c
333
else if (size >= b->iov[j].iov_len - resid) {
usr.sbin/iscsid/pdu.c
334
size -= b->iov[j].iov_len - resid;
usr.sbin/iscsid/pdu.c
335
b->resid += b->iov[j].iov_len - resid;
usr.sbin/iscsid/pdu.c
338
b->resid += size;
usr.sbin/iscsid/pdu.c
345
TAILQ_REMOVE(&c->pdu_w, b, entry);
usr.sbin/iscsid/pdu.c
346
pdu_free(b);
usr.sbin/ldapd/btree.c
141
static int mpage_cmp(struct mpage *a, struct mpage *b);
usr.sbin/ldapd/btree.c
356
btree_cmp(struct btree *bt, const struct btval *a, const struct btval *b)
usr.sbin/ldapd/btree.c
358
return bt->cmp(a, b);
usr.sbin/ldapd/btree.c
458
mpage_cmp(struct mpage *a, struct mpage *b)
usr.sbin/ldapd/btree.c
460
if (a->pgno > b->pgno)
usr.sbin/ldapd/btree.c
462
if (a->pgno < b->pgno)
usr.sbin/ldapd/btree.c
58
#define MINIMUM(a,b) ((a) < (b) ? (a) : (b))
usr.sbin/ldapd/btree.c
74
#define lower b.fb.fb_lower
usr.sbin/ldapd/btree.c
75
#define upper b.fb.fb_upper
usr.sbin/ldapd/btree.c
76
#define p_next_pgno b.pb_next_pgno
usr.sbin/ldapd/btree.c
83
} b;
usr.sbin/ldapd/btree.h
120
const struct btval *b);
usr.sbin/ldapd/btree.h
36
const struct btval *b);
usr.sbin/ldapd/btree.h
38
const struct btval *b,
usr.sbin/ldapd/schema.c
33
attr_oid_cmp(struct attr_type *a, struct attr_type *b)
usr.sbin/ldapd/schema.c
35
return strcasecmp(a->oid, b->oid);
usr.sbin/ldapd/schema.c
39
obj_oid_cmp(struct object *a, struct object *b)
usr.sbin/ldapd/schema.c
41
return strcasecmp(a->oid, b->oid);
usr.sbin/ldapd/schema.c
45
oidname_cmp(struct oidname *a, struct oidname *b)
usr.sbin/ldapd/schema.c
47
return strcasecmp(a->on_name, b->on_name);
usr.sbin/ldapd/schema.c
51
symoid_cmp(struct symoid *a, struct symoid *b)
usr.sbin/ldapd/schema.c
53
return strcasecmp(a->name, b->name);
usr.sbin/ldapd/search.c
41
uniqdn_cmp(struct uniqdn *a, struct uniqdn *b)
usr.sbin/ldapd/search.c
43
if (a->key.size < b->key.size)
usr.sbin/ldapd/search.c
45
if (a->key.size > b->key.size)
usr.sbin/ldapd/search.c
47
return memcmp(a->key.data, b->key.data, a->key.size);
usr.sbin/ldomctl/ldom_util.h
30
#define min(a, b) ((a) < (b) ? (a) : (b))
usr.sbin/ldomctl/ldom_util.h
31
#define max(a, b) ((a) > (b) ? (a) : (b))
usr.sbin/ldomctl/mdesc.c
70
md_find_data(struct md *md, const uint8_t *b, size_t len)
usr.sbin/ldomctl/mdesc.c
76
memcmp(data->data, b, len) == 0)
usr.sbin/ldomctl/mdesc.c
83
md_add_data(struct md *md, const uint8_t *b, size_t len)
usr.sbin/ldomctl/mdesc.c
87
data = md_find_data(md, b, len);
usr.sbin/ldomctl/mdesc.c
91
memcpy(data->data, b, len);
usr.sbin/ldpd/kroute.c
591
kroute_compare(struct kroute_prefix *a, struct kroute_prefix *b)
usr.sbin/ldpd/kroute.c
595
if (a->af < b->af)
usr.sbin/ldpd/kroute.c
597
if (a->af > b->af)
usr.sbin/ldpd/kroute.c
600
addrcmp = ldp_addrcmp(a->af, &a->prefix, &b->prefix);
usr.sbin/ldpd/kroute.c
604
if (a->prefixlen < b->prefixlen)
usr.sbin/ldpd/kroute.c
606
if (a->prefixlen > b->prefixlen)
usr.sbin/ldpd/kroute.c
785
kif_compare(struct kif_node *a, struct kif_node *b)
usr.sbin/ldpd/kroute.c
787
return (b->k.ifindex - a->k.ifindex);
usr.sbin/ldpd/lde.c
1050
lde_nbr_compare(struct lde_nbr *a, struct lde_nbr *b)
usr.sbin/ldpd/lde.c
1052
return (a->peerid - b->peerid);
usr.sbin/ldpd/lde_lib.c
54
fec_compare(struct fec *a, struct fec *b)
usr.sbin/ldpd/lde_lib.c
56
if (a->type < b->type)
usr.sbin/ldpd/lde_lib.c
58
if (a->type > b->type)
usr.sbin/ldpd/lde_lib.c
64
ntohl(b->u.ipv4.prefix.s_addr))
usr.sbin/ldpd/lde_lib.c
67
ntohl(b->u.ipv4.prefix.s_addr))
usr.sbin/ldpd/lde_lib.c
69
if (a->u.ipv4.prefixlen < b->u.ipv4.prefixlen)
usr.sbin/ldpd/lde_lib.c
71
if (a->u.ipv4.prefixlen > b->u.ipv4.prefixlen)
usr.sbin/ldpd/lde_lib.c
75
if (memcmp(&a->u.ipv6.prefix, &b->u.ipv6.prefix,
usr.sbin/ldpd/lde_lib.c
78
if (memcmp(&a->u.ipv6.prefix, &b->u.ipv6.prefix,
usr.sbin/ldpd/lde_lib.c
81
if (a->u.ipv6.prefixlen < b->u.ipv6.prefixlen)
usr.sbin/ldpd/lde_lib.c
83
if (a->u.ipv6.prefixlen > b->u.ipv6.prefixlen)
usr.sbin/ldpd/lde_lib.c
87
if (a->u.pwid.type < b->u.pwid.type)
usr.sbin/ldpd/lde_lib.c
89
if (a->u.pwid.type > b->u.pwid.type)
usr.sbin/ldpd/lde_lib.c
91
if (a->u.pwid.pwid < b->u.pwid.pwid)
usr.sbin/ldpd/lde_lib.c
93
if (a->u.pwid.pwid > b->u.pwid.pwid)
usr.sbin/ldpd/lde_lib.c
96
ntohl(b->u.pwid.lsr_id.s_addr))
usr.sbin/ldpd/lde_lib.c
99
ntohl(b->u.pwid.lsr_id.s_addr))
usr.sbin/ldpd/neighbor.c
108
nbr_id_compare(struct nbr *a, struct nbr *b)
usr.sbin/ldpd/neighbor.c
110
return (ntohl(a->id.s_addr) - ntohl(b->id.s_addr));
usr.sbin/ldpd/neighbor.c
114
nbr_addr_compare(struct nbr *a, struct nbr *b)
usr.sbin/ldpd/neighbor.c
116
if (a->af < b->af)
usr.sbin/ldpd/neighbor.c
118
if (a->af > b->af)
usr.sbin/ldpd/neighbor.c
121
return (ldp_addrcmp(a->af, &a->raddr, &b->raddr));
usr.sbin/ldpd/neighbor.c
125
nbr_pid_compare(struct nbr *a, struct nbr *b)
usr.sbin/ldpd/neighbor.c
127
return (a->peerid - b->peerid);
usr.sbin/ldpd/packet.c
654
session_get_pdu(struct buf_read *r, char **b)
usr.sbin/ldpd/packet.c
668
if ((*b = malloc(dlen)) == NULL)
usr.sbin/ldpd/packet.c
671
memcpy(*b, r->buf, dlen);
usr.sbin/ldpd/util.c
143
ldp_addrcmp(int af, const union ldpd_addr *a, const union ldpd_addr *b)
usr.sbin/ldpd/util.c
147
if (a->v4.s_addr == b->v4.s_addr)
usr.sbin/ldpd/util.c
149
return ((ntohl(a->v4.s_addr) > ntohl(b->v4.s_addr)) ? 1 : -1);
usr.sbin/ldpd/util.c
151
return (memcmp(&a->v6, &b->v6, sizeof(struct in6_addr)));
usr.sbin/ldpd/util.c
179
ldp_prefixcmp(int af, const union ldpd_addr *a, const union ldpd_addr *b,
usr.sbin/ldpd/util.c
194
ba = htonl(b->v4.s_addr) & mask;
usr.sbin/ldpd/util.c
202
if (a->v6.s6_addr[i] != b->v6.s6_addr[i])
usr.sbin/ldpd/util.c
203
return (a->v6.s6_addr[i] - b->v6.s6_addr[i]);
usr.sbin/ldpd/util.c
208
(b->v6.s6_addr[prefixlen / 8] & m))
usr.sbin/ldpd/util.c
210
(b->v6.s6_addr[prefixlen / 8] & m));
usr.sbin/lldpd/lldpd.c
136
iface_cmp(const struct iface *a, const struct iface *b)
usr.sbin/lldpd/lldpd.c
139
const struct iface_key *kb = &b->if_key;
usr.sbin/lpd/engine_lpr.c
337
cmpsockaddr(const struct sockaddr *a, const struct sockaddr *b)
usr.sbin/lpd/engine_lpr.c
342
if (a->sa_family != b->sa_family)
usr.sbin/lpd/engine_lpr.c
343
return (a->sa_family < b->sa_family) ? -1 : 1;
usr.sbin/lpd/engine_lpr.c
351
ab = &(((const struct sockaddr_in*)b)->sin_addr);
usr.sbin/lpd/engine_lpr.c
357
ab = &(((const struct sockaddr_in6*)b)->sin6_addr);
usr.sbin/lpd/frontend.c
57
conn_cmp(struct conn *a, struct conn *b)
usr.sbin/lpd/frontend.c
59
if (a->id < b->id)
usr.sbin/lpd/frontend.c
61
if (a->id > b->id)
usr.sbin/lpd/frontend_lpr.c
793
lpr_conn_cmp(struct lpr_conn *a, struct lpr_conn *b)
usr.sbin/lpd/frontend_lpr.c
795
if (a->id < b->id)
usr.sbin/lpd/frontend_lpr.c
797
if (a->id > b->id)
usr.sbin/lpd/lp.c
262
const struct qentry *a = aa, *b = bb;
usr.sbin/lpd/lp.c
264
if (a->mtime < b->mtime)
usr.sbin/lpd/lp.c
266
if (a->mtime > b->mtime)
usr.sbin/lpd/lp.c
269
return strcmp(a->name, b->name);
usr.sbin/lpd/lp_stty.c
119
c_key(const void *a, const void *b)
usr.sbin/lpd/lp_stty.c
123
((const struct key *)b)->name));
usr.sbin/lpd/resolver.c
352
request_cmp(struct request *a, struct request *b)
usr.sbin/lpd/resolver.c
354
if (a->id < b->id)
usr.sbin/lpd/resolver.c
356
if (a->id > b->id)
usr.sbin/lpr/lpd/key.c
89
c_key(const void *a, const void *b)
usr.sbin/lpr/lpd/key.c
92
return (strcmp(((struct key *)a)->name, ((struct key *)b)->name));
usr.sbin/lpr/lpr/lpr.c
617
static char b[10] = "########";
usr.sbin/lpr/lpr/lpr.c
620
p = &b[8];
usr.sbin/makefs/makefs.c
314
get_tstamp(const char *b)
usr.sbin/makefs/makefs.c
320
when = strtoll(b, &eb, 0);
usr.sbin/makefs/makefs.c
321
if (b == eb || *eb || errno) {
usr.sbin/makefs/makefs.h
187
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/makefs/makefs.h
188
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.sbin/makefs/msdos/mkfs_msdos.c
163
#define INIT(a, b, c, d, e, f, g, h, i, j) \
usr.sbin/makefs/msdos/mkfs_msdos.c
164
{ .bps = a, .spc = b, .res = c, .nft = d, .rde = e, \
usr.sbin/mtrace/mtrace.c
1006
b = base->resps + rno;
usr.sbin/mtrace/mtrace.c
1009
while (--rno >= 0) (--b)->tr_pktcnt = (--p)->tr_pktcnt;
usr.sbin/mtrace/mtrace.c
1022
struct tr_resp *b = base->resps + rno;
usr.sbin/mtrace/mtrace.c
1031
VAL_TO_MASK(smask, b->tr_smask);
usr.sbin/mtrace/mtrace.c
1035
((b->tr_inaddr & smask) == (qsrc & smask)) ? s1 : " * * * ",
usr.sbin/mtrace/mtrace.c
1051
printf("\t\t\t\tv_in: %u ", ntohl(b->tr_vifin));
usr.sbin/mtrace/mtrace.c
1052
printf("v_out: %u ", ntohl(b->tr_vifout));
usr.sbin/mtrace/mtrace.c
1053
printf("pkts: %u\n", ntohl(b->tr_pktcnt));
usr.sbin/mtrace/mtrace.c
1054
printf("\t\t\t\tv_in: %u ", ntohl(n->tr_vifin) - ntohl(b->tr_vifin));
usr.sbin/mtrace/mtrace.c
1055
printf("v_out: %u ", ntohl(n->tr_vifout) - ntohl(b->tr_vifout));
usr.sbin/mtrace/mtrace.c
1056
printf("pkts: %u\n", ntohl(n->tr_pktcnt) - ntohl(b->tr_pktcnt));
usr.sbin/mtrace/mtrace.c
1061
if ((n->tr_inaddr != b->tr_inaddr) || (p->tr_inaddr != b->tr_inaddr))
usr.sbin/mtrace/mtrace.c
1079
stat_line(b, n, TRUE, r);
usr.sbin/mtrace/mtrace.c
1082
--b, --p, --n, --r;
usr.sbin/mtrace/mtrace.c
1093
stat_line(b, n, FALSE, r);
usr.sbin/mtrace/mtrace.c
140
int t_diff(u_long a, u_long b);
usr.sbin/mtrace/mtrace.c
313
struct tr_resp *b;
usr.sbin/mtrace/mtrace.c
317
b = buf->resps + rno - 1;
usr.sbin/mtrace/mtrace.c
318
ttl = b->tr_fttl;
usr.sbin/mtrace/mtrace.c
321
--b;
usr.sbin/mtrace/mtrace.c
322
if (ttl < b->tr_fttl) ttl = b->tr_fttl;
usr.sbin/mtrace/mtrace.c
337
t_diff(u_long a, u_long b)
usr.sbin/mtrace/mtrace.c
339
int d = a - b;
usr.sbin/mtrace/mtrace.c
940
struct tr_resp *b = base->resps + rno;
usr.sbin/mtrace/mtrace.c
949
--n; --p; --b; --s;
usr.sbin/mtrace/mtrace.c
954
b->tr_qarr = byteswap(b->tr_qarr);
usr.sbin/mtrace/mtrace.c
955
b->tr_vifin = byteswap(b->tr_vifin);
usr.sbin/mtrace/mtrace.c
956
b->tr_vifout = byteswap(b->tr_vifout);
usr.sbin/mtrace/mtrace.c
957
b->tr_pktcnt = byteswap(b->tr_pktcnt);
usr.sbin/mtrace/mtrace.c
968
b = base->resps + rno;
usr.sbin/mtrace/mtrace.c
973
--n; --p; --b; --r;
usr.sbin/mtrace/mtrace.c
974
res = ((ntohl(n->tr_pktcnt) < ntohl(b->tr_pktcnt)) ||
usr.sbin/mtrace/mtrace.c
987
p->tr_pktcnt = b->tr_pktcnt = n->tr_pktcnt;
usr.sbin/mtree/create.c
358
dsort(const FTSENT **a, const FTSENT **b)
usr.sbin/mtree/create.c
361
if (!S_ISDIR((*b)->fts_statp->st_mode))
usr.sbin/mtree/create.c
363
} else if (S_ISDIR((*b)->fts_statp->st_mode))
usr.sbin/mtree/create.c
365
return (strcmp((*a)->fts_name, (*b)->fts_name));
usr.sbin/mtree/misc.c
93
keycompare(const void *a, const void *b)
usr.sbin/mtree/misc.c
95
return (strcmp(((KEY *)a)->name, ((KEY *)b)->name));
usr.sbin/npppctl/npppctl.c
42
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/npppd/common/addr_range.c
125
struct in_addr_range **cur, *a, *b;
usr.sbin/npppd/common/addr_range.c
132
b = (*cur)->next;
usr.sbin/npppd/common/addr_range.c
134
if (a->mask == b->mask && (
usr.sbin/npppd/common/addr_range.c
135
a->addr - b->addr == m0 + 1 ||
usr.sbin/npppd/common/addr_range.c
136
b->addr - a->addr == m0 + 1)) {
usr.sbin/npppd/common/addr_range.c
139
if ((a->addr & m0) != (b->addr & m0))
usr.sbin/npppd/common/addr_range.c
141
if (a->addr > b->addr) {
usr.sbin/npppd/common/addr_range.c
146
, INT4_CHARS(b->addr), bitmask2masklen(b->mask)
usr.sbin/npppd/common/addr_range.c
147
, INT4_CHARS(b->addr), bitmask2masklen(m0)
usr.sbin/npppd/common/addr_range.c
150
b->mask = m0;
usr.sbin/npppd/common/addr_range.c
151
*cur = b;
usr.sbin/npppd/common/addr_range.c
158
, INT4_CHARS(b->addr), bitmask2masklen(b->mask)
usr.sbin/npppd/common/addr_range.c
163
(*cur)->next = b->next;
usr.sbin/npppd/common/addr_range.c
164
in_addr_range_destroy(b);
usr.sbin/npppd/common/debugutil.c
101
if (b)
usr.sbin/npppd/common/debugutil.c
38
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/npppd/common/debugutil.c
39
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.sbin/npppd/common/debugutil.c
99
debug_use_syslog(int b)
usr.sbin/npppd/common/hash.c
152
hash_link *b, *w;
usr.sbin/npppd/common/hash.c
159
for (w = htbl->bucket[i], b = NULL; w != NULL; w = w->next) {
usr.sbin/npppd/common/hash.c
161
if (b != NULL)
usr.sbin/npppd/common/hash.c
162
b->next = w->next;
usr.sbin/npppd/common/hash.c
175
b = w;
usr.sbin/npppd/common/radish.h
68
#define Bcmp(a, b, n) memcmp(((char *)(a)), ((char *)(b)), (size_t)(n))
usr.sbin/npppd/common/slist_test.c
571
test_12_compar(const void *a, const void *b)
usr.sbin/npppd/common/slist_test.c
573
return (int)a - (int)b;
usr.sbin/npppd/l2tp/l2tp_ctrl.c
100
#define SEQ_GT(a,b) ((int16_t)((a) - (b)) > 0)
usr.sbin/npppd/l2tp/l2tp_ctrl.c
66
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/npppd/l2tp/l2tp_ctrl.c
99
#define SEQ_LT(a,b) ((int16_t)((a) - (b)) < 0)
usr.sbin/npppd/npppd/chap_ms.c
350
u_int8_t b[MD5_DIGEST_LENGTH], p[32];
usr.sbin/npppd/npppd/chap_ms.c
358
EVP_DigestFinal_ex(ctx, b, &mdlen);
usr.sbin/npppd/npppd/chap_ms.c
361
p[i] = b[i] ^ encrypted[i+2];
usr.sbin/npppd/npppd/chap_ms.c
367
EVP_DigestFinal_ex(ctx, b, &mdlen);
usr.sbin/npppd/npppd/chap_ms.c
371
p[i+16] = b[i] ^ encrypted[i+18];
usr.sbin/npppd/npppd/ipcp.c
68
#define u32maskcmp(mask, a, b) (((a) & (mask)) == ((b) & (mask)))
usr.sbin/npppd/npppd/mppe.c
75
#define COHER_EQ(a, b) ((((a) - (b)) & 0xfff) == 0)
usr.sbin/npppd/npppd/mppe.c
76
#define COHER_LT(a, b) (((int16_t)(((a) - (b)) << 4)) < 0)
usr.sbin/npppd/npppd/mppe.c
77
#define COHER_GT(a, b) COHER_LT((b), (a))
usr.sbin/npppd/npppd/mppe.c
78
#define COHER_NE(a, b) (!COHER_EQ((a), (b)))
usr.sbin/npppd/npppd/mppe.c
79
#define COHER_LE(a, b) (!COHER_GE((b), (a)))
usr.sbin/npppd/npppd/mppe.c
80
#define COHER_GE(a, b) (!COHER_LT((a), (b)))
usr.sbin/npppd/npppd/npppd.c
2321
struct sockaddr_npppd *a, *b;
usr.sbin/npppd/npppd/npppd.c
2324
b = b0;
usr.sbin/npppd/npppd/npppd.c
2326
return (a->snp_addr.s_addr == b->snp_addr.s_addr)? 1 : 0;
usr.sbin/npppd/npppd/npppd.h
48
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/npppd/npppd/npppd.h
49
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.sbin/npppd/npppd/npppd_subr.c
60
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/npppd/pppoe/pppoed.c
1098
session_id_cmp(void *a, void *b)
usr.sbin/npppd/pppoe/pppoed.c
1103
ib = (intptr_t)b;
usr.sbin/npppd/pppoe/pppoed.c
72
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/npppd/pptp/pptp_call.c
92
#define SEQ_LT(a,b) ((int)((a) - (b)) < 0)
usr.sbin/npppd/pptp/pptp_call.c
93
#define SEQ_LE(a,b) ((int)((a) - (b)) <= 0)
usr.sbin/npppd/pptp/pptp_call.c
94
#define SEQ_GT(a,b) ((int)((a) - (b)) > 0)
usr.sbin/npppd/pptp/pptp_call.c
95
#define SEQ_GE(a,b) ((int)((a) - (b)) >= 0)
usr.sbin/npppd/pptp/pptp_call.c
96
#define SEQ_SUB(a,b) ((int32_t)((a) - (b)))
usr.sbin/npppd/pptp/pptp_ctrl.c
60
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/npppd/pptp/pptp_ctrl.c
61
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.sbin/npppd/pptp/pptpd.c
71
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/nsd/dname.c
309
dname_compare(const void *a, const void *b)
usr.sbin/nsd/dname.c
317
right = b;
usr.sbin/nsd/dname.c
569
int dname_equal_nocase(uint8_t* a, uint8_t* b, uint16_t len)
usr.sbin/nsd/dname.c
574
if(*a != *b)
usr.sbin/nsd/dname.c
577
b++;
usr.sbin/nsd/dname.c
581
return (memcmp(a, b, len) == 0);
usr.sbin/nsd/dname.c
584
if(DNAME_NORMALIZE((unsigned char)*a++) != DNAME_NORMALIZE((unsigned char)*b++))
usr.sbin/nsd/dname.h
397
int dname_equal_nocase(uint8_t* a, uint8_t* b, uint16_t len);
usr.sbin/nsd/edns.c
211
compare_1982(uint32_t a, uint32_t b)
usr.sbin/nsd/edns.c
216
if (a == b) {
usr.sbin/nsd/edns.c
218
} else if ((a < b && b - a < cutoff) || (a > b && a - b > cutoff)) {
usr.sbin/nsd/edns.c
228
subtract_1982(uint32_t a, uint32_t b)
usr.sbin/nsd/edns.c
233
if(a == b)
usr.sbin/nsd/edns.c
235
if(a < b && b - a < cutoff) {
usr.sbin/nsd/edns.c
236
return b-a;
usr.sbin/nsd/edns.c
238
if(a > b && a - b > cutoff) {
usr.sbin/nsd/edns.c
239
return ((uint32_t)0xffffffff) - (a-b-1);
usr.sbin/nsd/ixfr.c
70
static int compression_cmp(const void* a, const void* b)
usr.sbin/nsd/ixfr.c
73
struct rrcompress_entry* rrb = (struct rrcompress_entry*)b;
usr.sbin/nsd/lookup3.c
1002
for (j=0; j<i; ++j) *(b+j)=0;
usr.sbin/nsd/lookup3.c
1005
ref = hashlittle(b, len, (uint32_t)1);
usr.sbin/nsd/lookup3.c
1006
*(b+i)=(uint8_t)~0;
usr.sbin/nsd/lookup3.c
1007
*(b-1)=(uint8_t)~0;
usr.sbin/nsd/lookup3.c
1008
x = hashlittle(b, len, (uint32_t)1);
usr.sbin/nsd/lookup3.c
1009
y = hashlittle(b, len, (uint32_t)1);
usr.sbin/nsd/lookup3.c
155
#define mix(a,b,c) \
usr.sbin/nsd/lookup3.c
157
a -= c; a ^= rot(c, 4); c += b; \
usr.sbin/nsd/lookup3.c
158
b -= a; b ^= rot(a, 6); a += c; \
usr.sbin/nsd/lookup3.c
159
c -= b; c ^= rot(b, 8); b += a; \
usr.sbin/nsd/lookup3.c
160
a -= c; a ^= rot(c,16); c += b; \
usr.sbin/nsd/lookup3.c
161
b -= a; b ^= rot(a,19); a += c; \
usr.sbin/nsd/lookup3.c
162
c -= b; c ^= rot(b, 4); b += a; \
usr.sbin/nsd/lookup3.c
190
#define final(a,b,c) \
usr.sbin/nsd/lookup3.c
192
c ^= b; c -= rot(b,14); \
usr.sbin/nsd/lookup3.c
194
b ^= a; b -= rot(a,25); \
usr.sbin/nsd/lookup3.c
195
c ^= b; c -= rot(b,16); \
usr.sbin/nsd/lookup3.c
197
b ^= a; b -= rot(a,14); \
usr.sbin/nsd/lookup3.c
198
c ^= b; c -= rot(b,24); \
usr.sbin/nsd/lookup3.c
219
uint32_t a,b,c;
usr.sbin/nsd/lookup3.c
222
a = b = c = raninit + (((uint32_t)length)<<2) + initval;
usr.sbin/nsd/lookup3.c
228
b += k[1];
usr.sbin/nsd/lookup3.c
230
mix(a,b,c);
usr.sbin/nsd/lookup3.c
240
case 2 : b+=k[1];
usr.sbin/nsd/lookup3.c
243
final(a,b,c);
usr.sbin/nsd/lookup3.c
268
uint32_t a,b,c;
usr.sbin/nsd/lookup3.c
271
a = b = c = raninit + ((uint32_t)(length<<2)) + *pc;
usr.sbin/nsd/lookup3.c
278
b += k[1];
usr.sbin/nsd/lookup3.c
280
mix(a,b,c);
usr.sbin/nsd/lookup3.c
289
case 2 : b+=k[1];
usr.sbin/nsd/lookup3.c
291
final(a,b,c);
usr.sbin/nsd/lookup3.c
296
*pc=c; *pb=b;
usr.sbin/nsd/lookup3.c
330
uint32_t a,b,c; /* internal state */
usr.sbin/nsd/lookup3.c
334
a = b = c = raninit + ((uint32_t)length) + initval;
usr.sbin/nsd/lookup3.c
347
b += k[1];
usr.sbin/nsd/lookup3.c
349
mix(a,b,c);
usr.sbin/nsd/lookup3.c
368
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
369
case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
370
case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
371
case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
372
case 8 : b+=k[1]; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
373
case 7 : b+=k[1]&0xffffff; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
374
case 6 : b+=k[1]&0xffff; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
375
case 5 : b+=k[1]&0xff; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
388
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
392
case 8 : b+=k[1]; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
393
case 7 : b+=((uint32_t)k8[6])<<16; /* fall through */
usr.sbin/nsd/lookup3.c
394
case 6 : b+=((uint32_t)k8[5])<<8; /* fall through */
usr.sbin/nsd/lookup3.c
395
case 5 : b+=k8[4]; /* fall through */
usr.sbin/nsd/lookup3.c
413
b += k[2] + (((uint32_t)k[3])<<16);
usr.sbin/nsd/lookup3.c
415
mix(a,b,c);
usr.sbin/nsd/lookup3.c
425
b+=k[2]+(((uint32_t)k[3])<<16);
usr.sbin/nsd/lookup3.c
430
b+=k[2]+(((uint32_t)k[3])<<16);
usr.sbin/nsd/lookup3.c
434
case 8 : b+=k[2]+(((uint32_t)k[3])<<16);
usr.sbin/nsd/lookup3.c
437
case 7 : b+=((uint32_t)k8[6])<<16; /* fall through */
usr.sbin/nsd/lookup3.c
438
case 6 : b+=k[2];
usr.sbin/nsd/lookup3.c
441
case 5 : b+=k8[4]; /* fall through */
usr.sbin/nsd/lookup3.c
462
b += k[4];
usr.sbin/nsd/lookup3.c
463
b += ((uint32_t)k[5])<<8;
usr.sbin/nsd/lookup3.c
464
b += ((uint32_t)k[6])<<16;
usr.sbin/nsd/lookup3.c
465
b += ((uint32_t)k[7])<<24;
usr.sbin/nsd/lookup3.c
470
mix(a,b,c);
usr.sbin/nsd/lookup3.c
486
case 8 : b+=((uint32_t)k[7])<<24;
usr.sbin/nsd/lookup3.c
488
case 7 : b+=((uint32_t)k[6])<<16;
usr.sbin/nsd/lookup3.c
490
case 6 : b+=((uint32_t)k[5])<<8;
usr.sbin/nsd/lookup3.c
492
case 5 : b+=k[4];
usr.sbin/nsd/lookup3.c
506
final(a,b,c);
usr.sbin/nsd/lookup3.c
528
uint32_t a,b,c; /* internal state */
usr.sbin/nsd/lookup3.c
532
a = b = c = raninit + ((uint32_t)length) + *pc;
usr.sbin/nsd/lookup3.c
546
b += k[1];
usr.sbin/nsd/lookup3.c
548
mix(a,b,c);
usr.sbin/nsd/lookup3.c
567
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
568
case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
569
case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
570
case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
571
case 8 : b+=k[1]; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
572
case 7 : b+=k[1]&0xffffff; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
573
case 6 : b+=k[1]&0xffff; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
574
case 5 : b+=k[1]&0xff; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
579
case 0 : *pc=c; *pb=b; return; /* zero length strings require no mixing */
usr.sbin/nsd/lookup3.c
587
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
591
case 8 : b+=k[1]; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
592
case 7 : b+=((uint32_t)k8[6])<<16; /* fall through */
usr.sbin/nsd/lookup3.c
593
case 6 : b+=((uint32_t)k8[5])<<8; /* fall through */
usr.sbin/nsd/lookup3.c
594
case 5 : b+=k8[4]; /* fall through */
usr.sbin/nsd/lookup3.c
599
case 0 : *pc=c; *pb=b; return; /* zero length strings require no mixing */
usr.sbin/nsd/lookup3.c
612
b += k[2] + (((uint32_t)k[3])<<16);
usr.sbin/nsd/lookup3.c
614
mix(a,b,c);
usr.sbin/nsd/lookup3.c
624
b+=k[2]+(((uint32_t)k[3])<<16);
usr.sbin/nsd/lookup3.c
629
b+=k[2]+(((uint32_t)k[3])<<16);
usr.sbin/nsd/lookup3.c
633
case 8 : b+=k[2]+(((uint32_t)k[3])<<16);
usr.sbin/nsd/lookup3.c
636
case 7 : b+=((uint32_t)k8[6])<<16; /* fall through */
usr.sbin/nsd/lookup3.c
637
case 6 : b+=k[2];
usr.sbin/nsd/lookup3.c
640
case 5 : b+=k8[4]; /* fall through */
usr.sbin/nsd/lookup3.c
648
case 0 : *pc=c; *pb=b; return; /* zero length strings require no mixing */
usr.sbin/nsd/lookup3.c
661
b += k[4];
usr.sbin/nsd/lookup3.c
662
b += ((uint32_t)k[5])<<8;
usr.sbin/nsd/lookup3.c
663
b += ((uint32_t)k[6])<<16;
usr.sbin/nsd/lookup3.c
664
b += ((uint32_t)k[7])<<24;
usr.sbin/nsd/lookup3.c
669
mix(a,b,c);
usr.sbin/nsd/lookup3.c
681
case 8 : b+=((uint32_t)k[7])<<24;
usr.sbin/nsd/lookup3.c
682
case 7 : b+=((uint32_t)k[6])<<16;
usr.sbin/nsd/lookup3.c
683
case 6 : b+=((uint32_t)k[5])<<8;
usr.sbin/nsd/lookup3.c
684
case 5 : b+=k[4];
usr.sbin/nsd/lookup3.c
690
case 0 : *pc=c; *pb=b; return; /* zero length strings require no mixing */
usr.sbin/nsd/lookup3.c
694
final(a,b,c);
usr.sbin/nsd/lookup3.c
695
*pc=c; *pb=b;
usr.sbin/nsd/lookup3.c
710
uint32_t a,b,c;
usr.sbin/nsd/lookup3.c
714
a = b = c = raninit + ((uint32_t)length) + initval;
usr.sbin/nsd/lookup3.c
727
b += k[1];
usr.sbin/nsd/lookup3.c
729
mix(a,b,c);
usr.sbin/nsd/lookup3.c
748
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
749
case 11: c+=k[2]&0xffffff00; b+=k[1]; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
750
case 10: c+=k[2]&0xffff0000; b+=k[1]; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
751
case 9 : c+=k[2]&0xff000000; b+=k[1]; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
752
case 8 : b+=k[1]; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
753
case 7 : b+=k[1]&0xffffff00; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
754
case 6 : b+=k[1]&0xffff0000; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
755
case 5 : b+=k[1]&0xff000000; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
768
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
772
case 8 : b+=k[1]; a+=k[0]; break;
usr.sbin/nsd/lookup3.c
773
case 7 : b+=((uint32_t)k8[6])<<8; /* fall through */
usr.sbin/nsd/lookup3.c
774
case 6 : b+=((uint32_t)k8[5])<<16; /* fall through */
usr.sbin/nsd/lookup3.c
775
case 5 : b+=((uint32_t)k8[4])<<24; /* fall through */
usr.sbin/nsd/lookup3.c
795
b += ((uint32_t)k[4])<<24;
usr.sbin/nsd/lookup3.c
796
b += ((uint32_t)k[5])<<16;
usr.sbin/nsd/lookup3.c
797
b += ((uint32_t)k[6])<<8;
usr.sbin/nsd/lookup3.c
798
b += ((uint32_t)k[7]);
usr.sbin/nsd/lookup3.c
803
mix(a,b,c);
usr.sbin/nsd/lookup3.c
815
case 8 : b+=k[7];
usr.sbin/nsd/lookup3.c
816
case 7 : b+=((uint32_t)k[6])<<8;
usr.sbin/nsd/lookup3.c
817
case 6 : b+=((uint32_t)k[5])<<16;
usr.sbin/nsd/lookup3.c
818
case 5 : b+=((uint32_t)k[4])<<24;
usr.sbin/nsd/lookup3.c
828
final(a,b,c);
usr.sbin/nsd/lookup3.c
861
uint8_t qa[MAXLEN+1], qb[MAXLEN+2], *a = &qa[0], *b = &qb[1];
usr.sbin/nsd/lookup3.c
885
for (l=0; l<hlen+1; ++l) {a[l] = b[l] = (uint8_t)0;}
usr.sbin/nsd/lookup3.c
890
b[i] ^= ((k+1)<<j);
usr.sbin/nsd/lookup3.c
891
b[i] ^= ((k+1)>>(8-j));
usr.sbin/nsd/lookup3.c
892
d[0] = hashlittle(b, hlen, m);
usr.sbin/nsd/lookup3.c
931
uint8_t buf[MAXLEN+20], *b;
usr.sbin/nsd/lookup3.c
997
for (h=0, b=buf+1; h<8; ++h, ++b)
usr.sbin/nsd/mini_event.c
445
mini_ev_cmp(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
usr.sbin/nsd/mini_event.c
64
mini_ev_cmp(const void* a, const void* b)
usr.sbin/nsd/mini_event.c
67
const struct event* f = (const struct event*)b;
usr.sbin/nsd/mini_event.h
188
int mini_ev_cmp(const void* a, const void* b);
usr.sbin/nsd/nsec3.c
28
const domain_type* b = (const domain_type*)y;
usr.sbin/nsd/nsec3.c
29
if(!a->nsec3) return (b->nsec3?-1:0);
usr.sbin/nsd/nsec3.c
30
if(!b->nsec3) return 1;
usr.sbin/nsd/nsec3.c
31
if(!a->nsec3->hash_wc) return (b->nsec3->hash_wc?-1:0);
usr.sbin/nsd/nsec3.c
32
if(!b->nsec3->hash_wc) return 1;
usr.sbin/nsd/nsec3.c
34
b->nsec3->hash_wc->hash.hash, NSEC3_HASH_LEN);
usr.sbin/nsd/nsec3.c
42
const domain_type* b = (const domain_type*)y;
usr.sbin/nsd/nsec3.c
43
if(!a->nsec3) return (b->nsec3?-1:0);
usr.sbin/nsd/nsec3.c
44
if(!b->nsec3) return 1;
usr.sbin/nsd/nsec3.c
45
if(!a->nsec3->hash_wc) return (b->nsec3->hash_wc?-1:0);
usr.sbin/nsd/nsec3.c
46
if(!b->nsec3->hash_wc) return 1;
usr.sbin/nsd/nsec3.c
48
b->nsec3->hash_wc->wc.hash, NSEC3_HASH_LEN);
usr.sbin/nsd/nsec3.c
56
const domain_type* b = (const domain_type*)y;
usr.sbin/nsd/nsec3.c
57
if(!a->nsec3) return (b->nsec3?-1:0);
usr.sbin/nsd/nsec3.c
58
if(!b->nsec3) return 1;
usr.sbin/nsd/nsec3.c
59
if(!a->nsec3->ds_parent_hash) return (b->nsec3->ds_parent_hash?-1:0);
usr.sbin/nsd/nsec3.c
60
if(!b->nsec3->ds_parent_hash) return 1;
usr.sbin/nsd/nsec3.c
62
b->nsec3->ds_parent_hash->hash, NSEC3_HASH_LEN);
usr.sbin/nsd/nsec3.c
71
const domain_type* b = (const domain_type*)y;
usr.sbin/nsd/nsec3.c
74
assert(dname_name(domain_dname_const(b))[0] == 32);
usr.sbin/nsd/nsec3.c
75
return memcmp(dname_name(domain_dname_const(a)), dname_name(domain_dname_const(b)), 33);
usr.sbin/nsd/options.c
1220
struct acl_options* b;
usr.sbin/nsd/options.c
1222
b = (struct acl_options*)region_alloc(region, sizeof(*b));
usr.sbin/nsd/options.c
1224
*b = *a;
usr.sbin/nsd/options.c
1227
b->ip_address_spec = region_strdup(region, a->ip_address_spec);
usr.sbin/nsd/options.c
1229
b->key_name = region_strdup(region, a->key_name);
usr.sbin/nsd/options.c
1231
b->tls_auth_name = region_strdup(region, a->tls_auth_name);
usr.sbin/nsd/options.c
1232
b->next = NULL;
usr.sbin/nsd/options.c
1233
b->key_options = NULL;
usr.sbin/nsd/options.c
1234
b->tls_auth_options = NULL;
usr.sbin/nsd/options.c
1235
return b;
usr.sbin/nsd/options.c
1241
struct acl_options* b, *blast = NULL, *blist = NULL;
usr.sbin/nsd/options.c
1243
b = copy_acl(opt->region, a);
usr.sbin/nsd/options.c
1245
if(b->key_name)
usr.sbin/nsd/options.c
1246
b->key_options = key_options_find(opt, b->key_name);
usr.sbin/nsd/options.c
1247
else b->key_options = NULL;
usr.sbin/nsd/options.c
1249
if(b->tls_auth_name)
usr.sbin/nsd/options.c
1250
b->tls_auth_options = tls_auth_options_find(opt, b->tls_auth_name);
usr.sbin/nsd/options.c
1251
else b->tls_auth_options = NULL;
usr.sbin/nsd/options.c
1254
b->next = NULL;
usr.sbin/nsd/options.c
1255
if(!blist) blist = b;
usr.sbin/nsd/options.c
1256
else blast->next = b;
usr.sbin/nsd/options.c
1257
blast = b;
usr.sbin/nsd/options.c
1510
marshal_u8(struct buffer* b, uint8_t v)
usr.sbin/nsd/options.c
1512
buffer_reserve(b, 1);
usr.sbin/nsd/options.c
1513
buffer_write_u8(b, v);
usr.sbin/nsd/options.c
1517
unmarshal_u8(struct buffer* b)
usr.sbin/nsd/options.c
1519
return buffer_read_u8(b);
usr.sbin/nsd/options.c
1523
marshal_u64(struct buffer* b, uint64_t v)
usr.sbin/nsd/options.c
1525
buffer_reserve(b, 8);
usr.sbin/nsd/options.c
1526
buffer_write_u64(b, v);
usr.sbin/nsd/options.c
1530
unmarshal_u64(struct buffer* b)
usr.sbin/nsd/options.c
1532
return buffer_read_u64(b);
usr.sbin/nsd/options.c
1537
marshal_u16(struct buffer* b, uint16_t v)
usr.sbin/nsd/options.c
1539
buffer_reserve(b, 2);
usr.sbin/nsd/options.c
1540
buffer_write_u16(b, v);
usr.sbin/nsd/options.c
1546
unmarshal_u16(struct buffer* b)
usr.sbin/nsd/options.c
1548
return buffer_read_u16(b);
usr.sbin/nsd/options.c
1553
marshal_u32(struct buffer* b, uint32_t v)
usr.sbin/nsd/options.c
1555
buffer_reserve(b, 4);
usr.sbin/nsd/options.c
1556
buffer_write_u32(b, v);
usr.sbin/nsd/options.c
1560
unmarshal_u32(struct buffer* b)
usr.sbin/nsd/options.c
1562
return buffer_read_u32(b);
usr.sbin/nsd/options.c
1566
marshal_str(struct buffer* b, const char* s)
usr.sbin/nsd/options.c
1568
if(!s) marshal_u8(b, 0);
usr.sbin/nsd/options.c
1571
marshal_u8(b, 1);
usr.sbin/nsd/options.c
1572
buffer_reserve(b, len+1);
usr.sbin/nsd/options.c
1573
buffer_write(b, s, len+1);
usr.sbin/nsd/options.c
1578
unmarshal_str(region_type* r, struct buffer* b)
usr.sbin/nsd/options.c
1580
uint8_t nonnull = unmarshal_u8(b);
usr.sbin/nsd/options.c
1582
char* result = region_strdup(r, (char*)buffer_current(b));
usr.sbin/nsd/options.c
1583
size_t len = strlen((char*)buffer_current(b));
usr.sbin/nsd/options.c
1584
buffer_skip(b, len+1);
usr.sbin/nsd/options.c
1590
marshal_acl(struct buffer* b, struct acl_options* acl)
usr.sbin/nsd/options.c
1592
buffer_reserve(b, sizeof(*acl));
usr.sbin/nsd/options.c
1593
buffer_write(b, acl, sizeof(*acl));
usr.sbin/nsd/options.c
1594
marshal_str(b, acl->ip_address_spec);
usr.sbin/nsd/options.c
1595
marshal_str(b, acl->key_name);
usr.sbin/nsd/options.c
1596
marshal_str(b, acl->tls_auth_name);
usr.sbin/nsd/options.c
1600
unmarshal_acl(region_type* r, struct buffer* b)
usr.sbin/nsd/options.c
1604
buffer_read(b, acl, sizeof(*acl));
usr.sbin/nsd/options.c
1608
acl->ip_address_spec = unmarshal_str(r, b);
usr.sbin/nsd/options.c
1609
acl->key_name = unmarshal_str(r, b);
usr.sbin/nsd/options.c
1610
acl->tls_auth_name = unmarshal_str(r, b);
usr.sbin/nsd/options.c
1615
marshal_acl_list(struct buffer* b, struct acl_options* list)
usr.sbin/nsd/options.c
1618
marshal_u8(b, 1); /* is there a next one marker */
usr.sbin/nsd/options.c
1619
marshal_acl(b, list);
usr.sbin/nsd/options.c
1622
marshal_u8(b, 0); /* end of list marker */
usr.sbin/nsd/options.c
1626
unmarshal_acl_list(region_type* r, struct buffer* b)
usr.sbin/nsd/options.c
1629
while(unmarshal_u8(b)) {
usr.sbin/nsd/options.c
1630
a = unmarshal_acl(r, b);
usr.sbin/nsd/options.c
1641
marshal_strv(struct buffer* b, char **strv)
usr.sbin/nsd/options.c
1645
assert(b != NULL);
usr.sbin/nsd/options.c
1648
marshal_u32(b, 0);
usr.sbin/nsd/options.c
1654
marshal_u32(b, n);
usr.sbin/nsd/options.c
1656
marshal_str(b, strv[i]);
usr.sbin/nsd/options.c
1658
marshal_u8(b, 0);
usr.sbin/nsd/options.c
1662
unmarshal_strv(region_type* r, struct buffer* b)
usr.sbin/nsd/options.c
1668
assert(b != NULL);
usr.sbin/nsd/options.c
1670
if ((n = unmarshal_u32(b)) == 0) {
usr.sbin/nsd/options.c
1675
strv[i] = unmarshal_str(r, b);
usr.sbin/nsd/options.c
1684
pattern_options_marshal(struct buffer* b, struct pattern_options* p)
usr.sbin/nsd/options.c
1686
marshal_str(b, p->pname);
usr.sbin/nsd/options.c
1687
marshal_str(b, p->zonefile);
usr.sbin/nsd/options.c
1688
marshal_str(b, p->zonestats);
usr.sbin/nsd/options.c
1690
marshal_u16(b, p->rrl_whitelist);
usr.sbin/nsd/options.c
1692
marshal_u8(b, p->allow_axfr_fallback);
usr.sbin/nsd/options.c
1693
marshal_u8(b, p->allow_axfr_fallback_is_default);
usr.sbin/nsd/options.c
1694
marshal_u8(b, p->notify_retry);
usr.sbin/nsd/options.c
1695
marshal_u8(b, p->notify_retry_is_default);
usr.sbin/nsd/options.c
1696
marshal_u8(b, p->implicit);
usr.sbin/nsd/options.c
1697
marshal_u64(b, p->size_limit_xfr);
usr.sbin/nsd/options.c
1698
marshal_acl_list(b, p->allow_notify);
usr.sbin/nsd/options.c
1699
marshal_acl_list(b, p->request_xfr);
usr.sbin/nsd/options.c
1700
marshal_acl_list(b, p->notify);
usr.sbin/nsd/options.c
1701
marshal_acl_list(b, p->provide_xfr);
usr.sbin/nsd/options.c
1702
marshal_acl_list(b, p->allow_query);
usr.sbin/nsd/options.c
1703
marshal_acl_list(b, p->outgoing_interface);
usr.sbin/nsd/options.c
1704
marshal_u32(b, p->max_refresh_time);
usr.sbin/nsd/options.c
1705
marshal_u8(b, p->max_refresh_time_is_default);
usr.sbin/nsd/options.c
1706
marshal_u32(b, p->min_refresh_time);
usr.sbin/nsd/options.c
1707
marshal_u8(b, p->min_refresh_time_is_default);
usr.sbin/nsd/options.c
1708
marshal_u32(b, p->max_retry_time);
usr.sbin/nsd/options.c
1709
marshal_u8(b, p->max_retry_time_is_default);
usr.sbin/nsd/options.c
1710
marshal_u32(b, p->min_retry_time);
usr.sbin/nsd/options.c
1711
marshal_u8(b, p->min_retry_time_is_default);
usr.sbin/nsd/options.c
1712
marshal_u32(b, p->min_expire_time);
usr.sbin/nsd/options.c
1713
marshal_u8(b, p->min_expire_time_expr);
usr.sbin/nsd/options.c
1714
marshal_u8(b, p->multi_primary_check);
usr.sbin/nsd/options.c
1715
marshal_u8(b, p->store_ixfr);
usr.sbin/nsd/options.c
1716
marshal_u8(b, p->store_ixfr_is_default);
usr.sbin/nsd/options.c
1717
marshal_u64(b, p->ixfr_size);
usr.sbin/nsd/options.c
1718
marshal_u8(b, p->ixfr_size_is_default);
usr.sbin/nsd/options.c
1719
marshal_u32(b, p->ixfr_number);
usr.sbin/nsd/options.c
1720
marshal_u8(b, p->ixfr_number_is_default);
usr.sbin/nsd/options.c
1721
marshal_u8(b, p->create_ixfr);
usr.sbin/nsd/options.c
1722
marshal_u8(b, p->create_ixfr_is_default);
usr.sbin/nsd/options.c
1723
marshal_u8(b, p->verify_zone);
usr.sbin/nsd/options.c
1724
marshal_u8(b, p->verify_zone_is_default);
usr.sbin/nsd/options.c
1725
marshal_strv(b, p->verifier);
usr.sbin/nsd/options.c
1726
marshal_u8(b, p->verifier_feed_zone);
usr.sbin/nsd/options.c
1727
marshal_u8(b, p->verifier_feed_zone_is_default);
usr.sbin/nsd/options.c
1728
marshal_u32(b, p->verifier_timeout);
usr.sbin/nsd/options.c
1729
marshal_u8(b, p->verifier_timeout_is_default);
usr.sbin/nsd/options.c
1730
marshal_u8(b, p->catalog_role);
usr.sbin/nsd/options.c
1731
marshal_u8(b, p->catalog_role_is_default);
usr.sbin/nsd/options.c
1732
marshal_str(b, p->catalog_member_pattern);
usr.sbin/nsd/options.c
1733
marshal_str(b, p->catalog_producer_zone);
usr.sbin/nsd/options.c
1737
pattern_options_unmarshal(region_type* r, struct buffer* b)
usr.sbin/nsd/options.c
1740
p->pname = unmarshal_str(r, b);
usr.sbin/nsd/options.c
1741
p->zonefile = unmarshal_str(r, b);
usr.sbin/nsd/options.c
1742
p->zonestats = unmarshal_str(r, b);
usr.sbin/nsd/options.c
1744
p->rrl_whitelist = unmarshal_u16(b);
usr.sbin/nsd/options.c
1746
p->allow_axfr_fallback = unmarshal_u8(b);
usr.sbin/nsd/options.c
1747
p->allow_axfr_fallback_is_default = unmarshal_u8(b);
usr.sbin/nsd/options.c
1748
p->notify_retry = unmarshal_u8(b);
usr.sbin/nsd/options.c
1749
p->notify_retry_is_default = unmarshal_u8(b);
usr.sbin/nsd/options.c
1750
p->implicit = unmarshal_u8(b);
usr.sbin/nsd/options.c
1751
p->size_limit_xfr = unmarshal_u64(b);
usr.sbin/nsd/options.c
1752
p->allow_notify = unmarshal_acl_list(r, b);
usr.sbin/nsd/options.c
1753
p->request_xfr = unmarshal_acl_list(r, b);
usr.sbin/nsd/options.c
1754
p->notify = unmarshal_acl_list(r, b);
usr.sbin/nsd/options.c
1755
p->provide_xfr = unmarshal_acl_list(r, b);
usr.sbin/nsd/options.c
1756
p->allow_query = unmarshal_acl_list(r, b);
usr.sbin/nsd/options.c
1757
p->outgoing_interface = unmarshal_acl_list(r, b);
usr.sbin/nsd/options.c
1758
p->max_refresh_time = unmarshal_u32(b);
usr.sbin/nsd/options.c
1759
p->max_refresh_time_is_default = unmarshal_u8(b);
usr.sbin/nsd/options.c
1760
p->min_refresh_time = unmarshal_u32(b);
usr.sbin/nsd/options.c
1761
p->min_refresh_time_is_default = unmarshal_u8(b);
usr.sbin/nsd/options.c
1762
p->max_retry_time = unmarshal_u32(b);
usr.sbin/nsd/options.c
1763
p->max_retry_time_is_default = unmarshal_u8(b);
usr.sbin/nsd/options.c
1764
p->min_retry_time = unmarshal_u32(b);
usr.sbin/nsd/options.c
1765
p->min_retry_time_is_default = unmarshal_u8(b);
usr.sbin/nsd/options.c
1766
p->min_expire_time = unmarshal_u32(b);
usr.sbin/nsd/options.c
1767
p->min_expire_time_expr = unmarshal_u8(b);
usr.sbin/nsd/options.c
1768
p->multi_primary_check = unmarshal_u8(b);
usr.sbin/nsd/options.c
1769
p->store_ixfr = unmarshal_u8(b);
usr.sbin/nsd/options.c
1770
p->store_ixfr_is_default = unmarshal_u8(b);
usr.sbin/nsd/options.c
1771
p->ixfr_size = unmarshal_u64(b);
usr.sbin/nsd/options.c
1772
p->ixfr_size_is_default = unmarshal_u8(b);
usr.sbin/nsd/options.c
1773
p->ixfr_number = unmarshal_u32(b);
usr.sbin/nsd/options.c
1774
p->ixfr_number_is_default = unmarshal_u8(b);
usr.sbin/nsd/options.c
1775
p->create_ixfr = unmarshal_u8(b);
usr.sbin/nsd/options.c
1776
p->create_ixfr_is_default = unmarshal_u8(b);
usr.sbin/nsd/options.c
1777
p->verify_zone = unmarshal_u8(b);
usr.sbin/nsd/options.c
1778
p->verify_zone_is_default = unmarshal_u8(b);
usr.sbin/nsd/options.c
1779
p->verifier = unmarshal_strv(r, b);
usr.sbin/nsd/options.c
1780
p->verifier_feed_zone = unmarshal_u8(b);
usr.sbin/nsd/options.c
1781
p->verifier_feed_zone_is_default = unmarshal_u8(b);
usr.sbin/nsd/options.c
1782
p->verifier_timeout = unmarshal_u32(b);
usr.sbin/nsd/options.c
1783
p->verifier_timeout_is_default = unmarshal_u8(b);
usr.sbin/nsd/options.c
1784
p->catalog_role = unmarshal_u8(b);
usr.sbin/nsd/options.c
1785
p->catalog_role_is_default = unmarshal_u8(b);
usr.sbin/nsd/options.c
1786
p->catalog_member_pattern = unmarshal_str(r, b);
usr.sbin/nsd/options.c
1787
p->catalog_producer_zone = unmarshal_str(r, b);
usr.sbin/nsd/options.c
2170
acl_addr_match_mask(uint32_t* a, uint32_t* b, uint32_t* mask, size_t sz)
usr.sbin/nsd/options.c
2179
if(((*a++)&*mask) != ((*b++)&*mask))
usr.sbin/nsd/options.c
2435
acl_same_host(struct acl_options* a, struct acl_options* b)
usr.sbin/nsd/options.c
2437
if(a->is_ipv6 && !b->is_ipv6)
usr.sbin/nsd/options.c
2439
if(!a->is_ipv6 && b->is_ipv6)
usr.sbin/nsd/options.c
2441
if(a->port != b->port)
usr.sbin/nsd/options.c
2443
if(a->rangetype != b->rangetype)
usr.sbin/nsd/options.c
2446
if(memcmp(&a->addr.addr, &b->addr.addr,
usr.sbin/nsd/options.c
2450
memcmp(&a->range_mask.addr, &b->range_mask.addr,
usr.sbin/nsd/options.c
2455
if(memcmp(&a->addr.addr6, &b->addr.addr6,
usr.sbin/nsd/options.c
2459
memcmp(&a->range_mask.addr6, &b->range_mask.addr6,
usr.sbin/nsd/options.c
434
comp_zonebucket(const void* a, const void* b)
usr.sbin/nsd/options.c
438
return *(const int*)b - *(const int*)a;
usr.sbin/nsd/options.c
446
struct zonelist_bucket* b = (struct zonelist_bucket*)rbtree_search(
usr.sbin/nsd/options.c
448
if(!b) {
usr.sbin/nsd/options.c
449
b = region_alloc_zero(opt->region, sizeof(*b));
usr.sbin/nsd/options.c
450
b->linesize = linesize;
usr.sbin/nsd/options.c
451
b->node = *RBTREE_NULL;
usr.sbin/nsd/options.c
452
b->node.key = &b->linesize;
usr.sbin/nsd/options.c
453
rbtree_insert(opt->zonefree, &b->node);
usr.sbin/nsd/options.c
456
e->next = b->list;
usr.sbin/nsd/options.c
457
b->list = e;
usr.sbin/nsd/options.c
682
struct zonelist_bucket* b;
usr.sbin/nsd/options.c
749
b = (struct zonelist_bucket*)rbtree_search(opt->zonefree,
usr.sbin/nsd/options.c
751
if(!b || b->list == NULL) {
usr.sbin/nsd/options.c
778
e = b->list;
usr.sbin/nsd/options.c
802
b->list = e->next;
usr.sbin/nsd/options.c
804
if(b->list == NULL) {
usr.sbin/nsd/options.c
805
rbtree_delete(opt->zonefree, &b->linesize);
usr.sbin/nsd/options.c
806
region_recycle(opt->region, b, sizeof(*b));
usr.sbin/nsd/options.c
843
delbucket(region_type* region, struct zonelist_bucket* b)
usr.sbin/nsd/options.c
846
if(!b || (rbnode_type*)b==RBTREE_NULL)
usr.sbin/nsd/options.c
848
delbucket(region, (struct zonelist_bucket*)b->node.left);
usr.sbin/nsd/options.c
849
delbucket(region, (struct zonelist_bucket*)b->node.right);
usr.sbin/nsd/options.c
850
e = b->list;
usr.sbin/nsd/options.c
856
region_recycle(region, b, sizeof(*b));
usr.sbin/nsd/options.h
544
struct buffer* b);
usr.sbin/nsd/options.h
602
int acl_addr_match_mask(uint32_t* a, uint32_t* b, uint32_t* mask, size_t sz);
usr.sbin/nsd/options.h
611
int acl_same_host(struct acl_options* a, struct acl_options* b);
usr.sbin/nsd/radtree.c
1202
uint8_t b;
usr.sbin/nsd/radtree.c
1257
b = char_d2r(labstart[lab][++lpos]);
usr.sbin/nsd/radtree.c
1266
b = 0;
usr.sbin/nsd/radtree.c
1268
if(n->array[byte].str[i] != b)
usr.sbin/nsd/radtree.c
1287
uint8_t b;
usr.sbin/nsd/radtree.c
1386
b = char_d2r(labstart[lab][++lpos]);
usr.sbin/nsd/radtree.c
1400
b = 0;
usr.sbin/nsd/radtree.c
1402
if(b < n->array[byte].str[i]) {
usr.sbin/nsd/radtree.c
1406
} else if(b > n->array[byte].str[i]) {
usr.sbin/nsd/rrl.c
338
static void rrl_attenuate_bucket(struct rrl_bucket* b, int32_t elapsed)
usr.sbin/nsd/rrl.c
341
b->rate = 0;
usr.sbin/nsd/rrl.c
346
b->rate >>= elapsed;
usr.sbin/nsd/rrl.c
348
b->rate += (b->counter>>(elapsed-1));
usr.sbin/nsd/rrl.c
385
struct rrl_bucket* b = &rrl_array[hash % rrl_array_size];
usr.sbin/nsd/rrl.c
388
(long long unsigned)source, hash, b->rate, b->counter, b->stamp));
usr.sbin/nsd/rrl.c
391
if(b->source != source || b->flags != flags || b->hash != hash) {
usr.sbin/nsd/rrl.c
395
used_to_block(b->rate, b->counter, rrl_ratelimit)) {
usr.sbin/nsd/rrl.c
399
rrltype2str(b->flags),
usr.sbin/nsd/rrl.c
400
rrlsource2str(b->source, b->flags),
usr.sbin/nsd/rrl.c
402
(b->hash!=hash?"bucket":"hash"));
usr.sbin/nsd/rrl.c
404
b->hash = hash;
usr.sbin/nsd/rrl.c
405
b->source = source;
usr.sbin/nsd/rrl.c
406
b->flags = flags;
usr.sbin/nsd/rrl.c
407
b->counter = 1;
usr.sbin/nsd/rrl.c
408
b->rate = 0;
usr.sbin/nsd/rrl.c
409
b->stamp = now;
usr.sbin/nsd/rrl.c
416
if(now - b->stamp == 1) {
usr.sbin/nsd/rrl.c
418
int oldblock = used_to_block(b->rate, b->counter, lm);
usr.sbin/nsd/rrl.c
419
b->rate = b->rate/2 + b->counter;
usr.sbin/nsd/rrl.c
420
if(oldblock && b->rate < lm)
usr.sbin/nsd/rrl.c
422
b->counter = 1;
usr.sbin/nsd/rrl.c
423
b->stamp = now;
usr.sbin/nsd/rrl.c
424
} else if(now - b->stamp > 0) {
usr.sbin/nsd/rrl.c
426
int olderblock = used_to_block(b->rate, b->counter, lm);
usr.sbin/nsd/rrl.c
427
rrl_attenuate_bucket(b, now - b->stamp);
usr.sbin/nsd/rrl.c
428
if(olderblock && b->rate < lm)
usr.sbin/nsd/rrl.c
430
b->counter = 1;
usr.sbin/nsd/rrl.c
431
b->stamp = now;
usr.sbin/nsd/rrl.c
432
} else if(now != b->stamp) {
usr.sbin/nsd/rrl.c
434
if(used_to_block(b->rate, b->counter, lm))
usr.sbin/nsd/rrl.c
436
b->rate = 0;
usr.sbin/nsd/rrl.c
437
b->counter = 1;
usr.sbin/nsd/rrl.c
438
b->stamp = now;
usr.sbin/nsd/rrl.c
441
b->counter ++;
usr.sbin/nsd/rrl.c
444
if(b->counter + b->rate/2 == lm && b->rate < lm)
usr.sbin/nsd/rrl.c
451
if(b->counter > b->rate/2)
usr.sbin/nsd/rrl.c
452
return b->counter + b->rate/2;
usr.sbin/nsd/rrl.c
453
return b->rate;
usr.sbin/nsd/server.c
3267
static const char* ub_ev_backend2str(int b)
usr.sbin/nsd/server.c
3269
switch(b) {
usr.sbin/nsd/server.c
3287
struct event_base* b = nsd_child_event_base();
usr.sbin/nsd/server.c
3290
m = ub_ev_backend2str(ev_backend((struct ev_loop*)b));
usr.sbin/nsd/server.c
3292
m = event_base_get_method(b);
usr.sbin/nsd/server.c
3297
event_base_free(b);
usr.sbin/nsd/simdzone/src/isadetection.h
144
uint32_t a = *eax, b, c = *ecx, d;
usr.sbin/nsd/simdzone/src/isadetection.h
145
asm volatile("cpuid\n\t" : "+a"(a), "=b"(b), "+c"(c), "=d"(d));
usr.sbin/nsd/simdzone/src/isadetection.h
147
*ebx = b;
usr.sbin/nsd/siphash.c
113
b |= ((uint64_t)in[6]) << 48;
usr.sbin/nsd/siphash.c
116
b |= ((uint64_t)in[5]) << 40;
usr.sbin/nsd/siphash.c
119
b |= ((uint64_t)in[4]) << 32;
usr.sbin/nsd/siphash.c
122
b |= ((uint64_t)in[3]) << 24;
usr.sbin/nsd/siphash.c
125
b |= ((uint64_t)in[2]) << 16;
usr.sbin/nsd/siphash.c
128
b |= ((uint64_t)in[1]) << 8;
usr.sbin/nsd/siphash.c
131
b |= ((uint64_t)in[0]);
usr.sbin/nsd/siphash.c
137
v3 ^= b;
usr.sbin/nsd/siphash.c
143
v0 ^= b;
usr.sbin/nsd/siphash.c
154
b = v0 ^ v1 ^ v2 ^ v3;
usr.sbin/nsd/siphash.c
155
U64TO8_LE(out, b);
usr.sbin/nsd/siphash.c
166
b = v0 ^ v1 ^ v2 ^ v3;
usr.sbin/nsd/siphash.c
167
U64TO8_LE(out + 8, b);
usr.sbin/nsd/siphash.c
26
#define ROTL(x, b) (uint64_t)(((x) << (b)) | ((x) >> (64 - (b))))
usr.sbin/nsd/siphash.c
90
uint64_t b = ((uint64_t)inlen) << 56;
usr.sbin/nsd/tsig.c
144
tree_dname_compare(const void* a, const void* b)
usr.sbin/nsd/tsig.c
146
return dname_compare((const dname_type*)a, (const dname_type*)b);
usr.sbin/nsd/util.c
669
size_t b;
usr.sbin/nsd/util.c
687
b=7-p%8;
usr.sbin/nsd/util.c
690
if(b >= 4)
usr.sbin/nsd/util.c
691
target[n]|=d << (b-4);
usr.sbin/nsd/util.c
693
target[n]|=d >> (4-b);
usr.sbin/nsd/util.c
694
target[n+1]|=d << (b+4);
usr.sbin/nsd/util.c
827
compare_serial(uint32_t a, uint32_t b)
usr.sbin/nsd/util.c
831
if (a == b) {
usr.sbin/nsd/util.c
833
} else if ((a < b && b - a < cutoff) || (a > b && a - b > cutoff)) {
usr.sbin/nsd/util.h
367
int compare_serial(uint32_t a, uint32_t b);
usr.sbin/nsd/xfrd-tcp.c
236
xfrd_pipe_cmp(const void* a, const void* b)
usr.sbin/nsd/xfrd-tcp.c
239
const struct xfrd_tcp_pipeline* y = (struct xfrd_tcp_pipeline*)b;
usr.sbin/nsd/xfrd-tcp.c
296
struct xfrd_tcp_pipeline_id* b = (struct xfrd_tcp_pipeline_id*)y;
usr.sbin/nsd/xfrd-tcp.c
297
if(a->id < b->id)
usr.sbin/nsd/xfrd-tcp.c
299
if(a->id > b->id)
usr.sbin/ntpd/client.c
227
auto_cmp(const void *a, const void *b)
usr.sbin/ntpd/client.c
230
double bt = *(const double *)b;
usr.sbin/ntpd/constraint.c
820
constraint_cmp(const void *a, const void *b)
usr.sbin/ntpd/constraint.c
823
time_t bt = *(const time_t *)b;
usr.sbin/ntpd/ntp.c
190
b = 1000000000 / tp.tv_nsec; /* convert to Hz */
usr.sbin/ntpd/ntp.c
191
for (a = 0; b > 1; a--, b >>= 1)
usr.sbin/ntpd/ntp.c
74
int a, b, nfds, i, j, idx_peers, timeout;
usr.sbin/ntpd/ntp.c
840
const struct ntp_offset * const *b;
usr.sbin/ntpd/ntp.c
843
b = bb;
usr.sbin/ntpd/ntp.c
845
if ((*a)->offset < (*b)->offset)
usr.sbin/ntpd/ntp.c
847
else if ((*a)->offset > (*b)->offset)
usr.sbin/ntpd/ntpd.h
37
#define MAXIMUM(a, b) ((a) > (b) ? (a) : (b))
usr.sbin/ntpd/util.c
152
static char b[11];
usr.sbin/ntpd/util.c
154
b[0] = 0;
usr.sbin/ntpd/util.c
156
snprintf(b, sizeof(b), "rtable %d", r);
usr.sbin/ntpd/util.c
158
return (b);
usr.sbin/ospf6d/interface.c
437
if_elect(struct nbr *a, struct nbr *b)
usr.sbin/ospf6d/interface.c
439
if (a->priority > b->priority)
usr.sbin/ospf6d/interface.c
441
if (a->priority < b->priority)
usr.sbin/ospf6d/interface.c
442
return (b);
usr.sbin/ospf6d/interface.c
443
if (ntohl(a->id.s_addr) > ntohl(b->id.s_addr))
usr.sbin/ospf6d/interface.c
445
return (b);
usr.sbin/ospf6d/kroute.c
671
kroute_compare(struct kroute_node *a, struct kroute_node *b)
usr.sbin/ospf6d/kroute.c
676
i = memcmp(&a->r.prefix, &b->r.prefix, sizeof(a->r.prefix));
usr.sbin/ospf6d/kroute.c
679
if (a->r.prefixlen < b->r.prefixlen)
usr.sbin/ospf6d/kroute.c
681
if (a->r.prefixlen > b->r.prefixlen)
usr.sbin/ospf6d/kroute.c
685
if (a->r.priority == RTP_ANY || b->r.priority == RTP_ANY)
usr.sbin/ospf6d/kroute.c
687
if (a->r.priority < b->r.priority)
usr.sbin/ospf6d/kroute.c
689
if (a->r.priority > b->r.priority)
usr.sbin/ospf6d/rde.c
1332
prefix_compare(struct prefix_node *a, struct prefix_node *b)
usr.sbin/ospf6d/rde.c
1340
q = b->prefix;
usr.sbin/ospf6d/rde.c
1631
comp_asext(struct lsa *a, struct lsa *b)
usr.sbin/ospf6d/rde.c
1634
if (a->data.asext.prefix.prefixlen != b->data.asext.prefix.prefixlen)
usr.sbin/ospf6d/rde.c
1638
(char *)b + sizeof(struct lsa_hdr) + sizeof(struct lsa_asext),
usr.sbin/ospf6d/rde.c
42
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/ospf6d/rde_lsdb.c
137
lsa_newer(struct lsa_hdr *a, struct lsa_hdr *b)
usr.sbin/ospf6d/rde_lsdb.c
145
if (b == NULL)
usr.sbin/ospf6d/rde_lsdb.c
153
b32 = (int32_t)ntohl(b->seq_num);
usr.sbin/ospf6d/rde_lsdb.c
161
b16 = ntohs(b->ls_chksum);
usr.sbin/ospf6d/rde_lsdb.c
169
b16 = ntohs(b->age);
usr.sbin/ospf6d/rde_lsdb.c
49
lsa_compare(struct vertex *a, struct vertex *b)
usr.sbin/ospf6d/rde_lsdb.c
51
if (a->type < b->type)
usr.sbin/ospf6d/rde_lsdb.c
53
if (a->type > b->type)
usr.sbin/ospf6d/rde_lsdb.c
55
if (a->adv_rtr < b->adv_rtr)
usr.sbin/ospf6d/rde_lsdb.c
57
if (a->adv_rtr > b->adv_rtr)
usr.sbin/ospf6d/rde_lsdb.c
59
if (a->ls_id < b->ls_id)
usr.sbin/ospf6d/rde_lsdb.c
61
if (a->ls_id > b->ls_id)
usr.sbin/ospf6d/rde_lsdb.c
957
lsa_equal(struct lsa *a, struct lsa *b)
usr.sbin/ospf6d/rde_lsdb.c
963
if (a == NULL || b == NULL)
usr.sbin/ospf6d/rde_lsdb.c
965
if (a->hdr.len != b->hdr.len)
usr.sbin/ospf6d/rde_lsdb.c
968
if (a->hdr.age == htons(MAX_AGE) || b->hdr.age == htons(MAX_AGE))
usr.sbin/ospf6d/rde_lsdb.c
970
if (memcmp(&a->data, &b->data, ntohs(a->hdr.len) -
usr.sbin/ospf6d/rde_spf.c
760
rt_compare(struct rt_node *a, struct rt_node *b)
usr.sbin/ospf6d/rde_spf.c
765
i = memcmp(&a->prefix, &b->prefix, sizeof(a->prefix));
usr.sbin/ospf6d/rde_spf.c
768
if (a->prefixlen < b->prefixlen)
usr.sbin/ospf6d/rde_spf.c
770
if (a->prefixlen > b->prefixlen)
usr.sbin/ospf6d/rde_spf.c
772
if (a->d_type > b->d_type)
usr.sbin/ospf6d/rde_spf.c
774
if (a->d_type < b->d_type)
usr.sbin/ospfd/interface.c
389
if_elect(struct nbr *a, struct nbr *b)
usr.sbin/ospfd/interface.c
391
if (a->priority > b->priority)
usr.sbin/ospfd/interface.c
393
if (a->priority < b->priority)
usr.sbin/ospfd/interface.c
394
return (b);
usr.sbin/ospfd/interface.c
395
if (ntohl(a->id.s_addr) > ntohl(b->id.s_addr))
usr.sbin/ospfd/interface.c
397
return (b);
usr.sbin/ospfd/kroute.c
681
kroute_compare(struct kroute_node *a, struct kroute_node *b)
usr.sbin/ospfd/kroute.c
683
if (ntohl(a->r.prefix.s_addr) < ntohl(b->r.prefix.s_addr))
usr.sbin/ospfd/kroute.c
685
if (ntohl(a->r.prefix.s_addr) > ntohl(b->r.prefix.s_addr))
usr.sbin/ospfd/kroute.c
687
if (a->r.prefixlen < b->r.prefixlen)
usr.sbin/ospfd/kroute.c
689
if (a->r.prefixlen > b->r.prefixlen)
usr.sbin/ospfd/kroute.c
693
if (a->r.priority == RTP_ANY || b->r.priority == RTP_ANY)
usr.sbin/ospfd/kroute.c
695
if (a->r.priority < b->r.priority)
usr.sbin/ospfd/kroute.c
697
if (a->r.priority > b->r.priority)
usr.sbin/ospfd/kroute.c
703
kif_compare(struct kif_node *a, struct kif_node *b)
usr.sbin/ospfd/kroute.c
705
return (b->k.ifindex - a->k.ifindex);
usr.sbin/ospfd/rde.c
1152
asext_compare(struct asext_node *a, struct asext_node *b)
usr.sbin/ospfd/rde.c
1154
if (ntohl(a->r.prefix.s_addr) < ntohl(b->r.prefix.s_addr))
usr.sbin/ospfd/rde.c
1156
if (ntohl(a->r.prefix.s_addr) > ntohl(b->r.prefix.s_addr))
usr.sbin/ospfd/rde.c
1158
if (a->r.prefixlen < b->r.prefixlen)
usr.sbin/ospfd/rde.c
1160
if (a->r.prefixlen > b->r.prefixlen)
usr.sbin/ospfd/rde_lsdb.c
133
lsa_newer(struct lsa_hdr *a, struct lsa_hdr *b)
usr.sbin/ospfd/rde_lsdb.c
141
if (b == NULL)
usr.sbin/ospfd/rde_lsdb.c
149
b32 = (int32_t)ntohl(b->seq_num);
usr.sbin/ospfd/rde_lsdb.c
157
b16 = ntohs(b->ls_chksum);
usr.sbin/ospfd/rde_lsdb.c
165
b16 = ntohs(b->age);
usr.sbin/ospfd/rde_lsdb.c
48
lsa_compare(struct vertex *a, struct vertex *b)
usr.sbin/ospfd/rde_lsdb.c
50
if (a->type < b->type)
usr.sbin/ospfd/rde_lsdb.c
52
if (a->type > b->type)
usr.sbin/ospfd/rde_lsdb.c
54
if (a->adv_rtr < b->adv_rtr)
usr.sbin/ospfd/rde_lsdb.c
56
if (a->adv_rtr > b->adv_rtr)
usr.sbin/ospfd/rde_lsdb.c
58
if (a->ls_id < b->ls_id)
usr.sbin/ospfd/rde_lsdb.c
60
if (a->ls_id > b->ls_id)
usr.sbin/ospfd/rde_lsdb.c
852
lsa_equal(struct lsa *a, struct lsa *b)
usr.sbin/ospfd/rde_lsdb.c
858
if (a == NULL || b == NULL)
usr.sbin/ospfd/rde_lsdb.c
860
if (a->hdr.len != b->hdr.len)
usr.sbin/ospfd/rde_lsdb.c
862
if (a->hdr.opts != b->hdr.opts)
usr.sbin/ospfd/rde_lsdb.c
865
if (a->hdr.age == htons(MAX_AGE) || b->hdr.age == htons(MAX_AGE))
usr.sbin/ospfd/rde_lsdb.c
867
if (memcmp(&a->data, &b->data, ntohs(a->hdr.len) -
usr.sbin/ospfd/rde_spf.c
644
rt_compare(struct rt_node *a, struct rt_node *b)
usr.sbin/ospfd/rde_spf.c
646
if (ntohl(a->prefix.s_addr) < ntohl(b->prefix.s_addr))
usr.sbin/ospfd/rde_spf.c
648
if (ntohl(a->prefix.s_addr) > ntohl(b->prefix.s_addr))
usr.sbin/ospfd/rde_spf.c
650
if (a->prefixlen < b->prefixlen)
usr.sbin/ospfd/rde_spf.c
652
if (a->prefixlen > b->prefixlen)
usr.sbin/ospfd/rde_spf.c
654
if (a->d_type > b->d_type)
usr.sbin/ospfd/rde_spf.c
656
if (a->d_type < b->d_type)
usr.sbin/pcidump/pcidump.c
289
char b[80], *d, *f;
usr.sbin/pcidump/pcidump.c
291
strlcpy(b, string, sizeof(b));
usr.sbin/pcidump/pcidump.c
293
d = strchr(b, ':');
usr.sbin/pcidump/pcidump.c
303
*bus = strtonum(b, 0, 255, &errstr);
usr.sbin/pppd/ipcp.c
164
static char b[64];
usr.sbin/pppd/ipcp.c
168
snprintf(b, sizeof b, "%d.%d.%d.%d",
usr.sbin/pppd/ipcp.c
173
return b;
usr.sbin/pppd/pppd.h
491
#define MIN(a, b) ((a) < (b)? (a): (b))
usr.sbin/pppd/pppd.h
494
#define MAX(a, b) ((a) > (b)? (a): (b))
usr.sbin/pwd_mkdb/pwd_mkdb.c
52
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/pwd_mkdb/pwd_mkdb.c
53
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.sbin/quot/quot.c
464
#define max(a,b) MAX((a),(b))
usr.sbin/radiusctl/chap_ms.c
350
u_int8_t b[MD5_DIGEST_LENGTH], p[32];
usr.sbin/radiusctl/chap_ms.c
358
EVP_DigestFinal_ex(ctx, b, &mdlen);
usr.sbin/radiusctl/chap_ms.c
361
p[i] = b[i] ^ crypted[i+2];
usr.sbin/radiusctl/chap_ms.c
367
EVP_DigestFinal_ex(ctx, b, &mdlen);
usr.sbin/radiusctl/chap_ms.c
371
p[i+16] = b[i] ^ crypted[i+18];
usr.sbin/radiusd/chap_ms.c
350
u_int8_t b[MD5_DIGEST_LENGTH], p[32];
usr.sbin/radiusd/chap_ms.c
358
EVP_DigestFinal_ex(ctx, b, &mdlen);
usr.sbin/radiusd/chap_ms.c
361
p[i] = b[i] ^ encrypted[i+2];
usr.sbin/radiusd/chap_ms.c
367
EVP_DigestFinal_ex(ctx, b, &mdlen);
usr.sbin/radiusd/chap_ms.c
371
p[i+16] = b[i] ^ encrypted[i+18];
usr.sbin/radiusd/radius_subr.c
31
u_char b[16];
usr.sbin/radiusd/radius_subr.c
44
MD5Final(b, &md5ctx);
usr.sbin/radiusd/radius_subr.c
47
plain[i] ^= b[j];
usr.sbin/radiusd/radius_subr.c
56
u_char b[16];
usr.sbin/radiusd/radius_subr.c
69
MD5Final(b, &md5ctx);
usr.sbin/radiusd/radius_subr.c
72
crypt0[i + j] ^= b[j];
usr.sbin/radiusd/radiusd_eap2mschap.c
278
access_request_compar(struct access_req *a, struct access_req *b)
usr.sbin/radiusd/radiusd_eap2mschap.c
280
return (memcmp(a->state, b->state, sizeof(a->state)));
usr.sbin/radiusd/radiusd_ipcp.c
1392
assigned_ipv4_compar(struct assigned_ipv4 *a, struct assigned_ipv4 *b)
usr.sbin/radiusd/radiusd_ipcp.c
1394
if (a->ipv4.s_addr > b->ipv4.s_addr)
usr.sbin/radiusd/radiusd_ipcp.c
1396
else if (a->ipv4.s_addr < b->ipv4.s_addr)
usr.sbin/radiusd/radiusd_ipcp.c
1425
user_compar(struct user *a, struct user *b)
usr.sbin/radiusd/radiusd_ipcp.c
1427
return (strcmp(a->name, b->name));
usr.sbin/rdate/ntp.c
198
double a, b, x, y;
usr.sbin/rdate/ntp.c
247
b = *error + y;
usr.sbin/rdate/ntp.c
257
if (a > b) {
usr.sbin/rdate/rdate.c
52
#define logwtmp(a,b,c)
usr.sbin/relayctl/relayctl.c
451
char a[128], b[128];
usr.sbin/relayctl/relayctl.c
459
(void)print_host(&con->se_out.ss, b, sizeof(b));
usr.sbin/relayctl/relayctl.c
462
a, ntohs(con->se_in.port), b, ntohs(con->se_out.port),
usr.sbin/relayctl/relayctl.c
467
print_time(&tv_now, &con->se_tv_last, b, sizeof(b));
usr.sbin/relayctl/relayctl.c
469
a, b, con->se_relayid, con->se_pid);
usr.sbin/relayd/check_tcp.c
303
u_char *b;
usr.sbin/relayd/check_tcp.c
327
b = strndup(ibuf_data(cte->buf), ibuf_size(cte->buf));
usr.sbin/relayd/check_tcp.c
328
if (b == NULL)
usr.sbin/relayd/check_tcp.c
330
if (fnmatch(cte->table->conf.exbuf, b, 0) == 0) {
usr.sbin/relayd/check_tcp.c
333
free(b);
usr.sbin/relayd/check_tcp.c
336
free(b);
usr.sbin/relayd/parse.y
320
char *a, *b;
usr.sbin/relayd/parse.y
326
b = strchr($2, ':');
usr.sbin/relayd/parse.y
327
if (b == NULL)
usr.sbin/relayd/parse.y
330
*b++ = '\0';
usr.sbin/relayd/parse.y
331
if ((p[1] = getservice(b)) == -1) {
usr.sbin/relayd/pfe_filter.c
38
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/relayd/pfe_route.c
115
memset(b + off, 0xff, q);
usr.sbin/relayd/pfe_route.c
117
b[off + q] = (0xff00 >> r) & 0xff;
usr.sbin/relayd/pfe_route.c
95
uint8_t *b = (uint8_t *)ss;
usr.sbin/relayd/relay.c
2680
relay_cmp_af(struct sockaddr_storage *a, struct sockaddr_storage *b)
usr.sbin/relayd/relay.c
2689
bcopy(b, &ib, sizeof(struct sockaddr_in));
usr.sbin/relayd/relay.c
2699
bcopy(b, &ib6, sizeof(struct sockaddr_in6));
usr.sbin/relayd/relay.c
2715
relay_session_cmp(struct rsession *a, struct rsession *b)
usr.sbin/relayd/relay.c
2717
struct relay *rlay = b->se_relay;
usr.sbin/relayd/relay.c
2721
return ((*proto->cmp)(a, b));
usr.sbin/relayd/relay.c
2723
return ((int)a->se_id - b->se_id);
usr.sbin/relayd/relay.c
47
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/relayd/relay_http.c
1371
relay_httpmethod_cmp(const void *a, const void *b)
usr.sbin/relayd/relay_http.c
1374
const struct http_method *mb = b;
usr.sbin/relayd/relay_http.c
1400
relay_httperror_cmp(const void *a, const void *b)
usr.sbin/relayd/relay_http.c
1403
const struct http_error *eb = b;
usr.sbin/relayd/relay_udp.c
542
relay_dns_cmp(struct rsession *a, struct rsession *b)
usr.sbin/relayd/relay_udp.c
545
struct relay_dns_priv *bp = b->se_priv;
usr.sbin/relayd/relayd.c
1178
struct table_config a, b;
usr.sbin/relayd/relayd.c
1185
bcopy(&table->conf, &b, sizeof(b));
usr.sbin/relayd/relayd.c
1186
b.id = b.rdrid = 0;
usr.sbin/relayd/relayd.c
1187
b.flags &= ~(F_USED|F_BACKUP);
usr.sbin/relayd/relayd.c
1193
if (bcmp(&a, &b, sizeof(b)) == 0 &&
usr.sbin/relayd/relayd.c
1774
sockaddr_cmp(struct sockaddr *a, struct sockaddr *b, int prefixlen)
usr.sbin/relayd/relayd.c
1780
if (a->sa_family == AF_UNSPEC || b->sa_family == AF_UNSPEC)
usr.sbin/relayd/relayd.c
1782
else if (a->sa_family > b->sa_family)
usr.sbin/relayd/relayd.c
1784
else if (a->sa_family < b->sa_family)
usr.sbin/relayd/relayd.c
1793
b4 = (struct sockaddr_in *)b;
usr.sbin/relayd/relayd.c
1807
b6 = (struct sockaddr_in6 *)b;
usr.sbin/relayd/relayd.c
53
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.sbin/relayd/relayd.c
889
kv_cmp(struct kv *a, struct kv *b)
usr.sbin/relayd/relayd.c
891
return (strcasecmp(a->kv_key, b->kv_key));
usr.sbin/relayd/util.c
229
print_time(struct timeval *a, struct timeval *b, char *buf, size_t len)
usr.sbin/relayd/util.c
235
timersub(a, b, &tv);
usr.sbin/ripd/auth.c
168
MD5Update(&hash, b, ntohs(a->auth_offset) + RIP_HDR_LEN);
usr.sbin/ripd/auth.c
84
u_int8_t *b = *buf;
usr.sbin/ripd/kroute.c
384
kroute_compare(struct kroute_node *a, struct kroute_node *b)
usr.sbin/ripd/kroute.c
386
if (ntohl(a->r.prefix.s_addr) < ntohl(b->r.prefix.s_addr))
usr.sbin/ripd/kroute.c
388
if (ntohl(a->r.prefix.s_addr) > ntohl(b->r.prefix.s_addr))
usr.sbin/ripd/kroute.c
390
if (ntohl(a->r.netmask.s_addr) < ntohl(b->r.netmask.s_addr))
usr.sbin/ripd/kroute.c
392
if (ntohl(a->r.netmask.s_addr) > ntohl(b->r.netmask.s_addr))
usr.sbin/ripd/kroute.c
396
if (a->r.priority == RTP_ANY || b->r.priority == RTP_ANY)
usr.sbin/ripd/kroute.c
398
if (a->r.priority < b->r.priority)
usr.sbin/ripd/kroute.c
400
if (a->r.priority > b->r.priority)
usr.sbin/ripd/kroute.c
407
kif_compare(struct kif_node *a, struct kif_node *b)
usr.sbin/ripd/kroute.c
409
return (b->k.ifindex - a->k.ifindex);
usr.sbin/ripd/rde.c
41
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/ripd/rde_rib.c
121
rt_compare(struct rt_node *a, struct rt_node *b)
usr.sbin/ripd/rde_rib.c
123
if (ntohl(a->prefix.s_addr) < ntohl(b->prefix.s_addr))
usr.sbin/ripd/rde_rib.c
125
if (ntohl(a->prefix.s_addr) > ntohl(b->prefix.s_addr))
usr.sbin/ripd/rde_rib.c
127
if (ntohl(a->netmask.s_addr) < ntohl(b->netmask.s_addr))
usr.sbin/ripd/rde_rib.c
129
if (ntohl(a->netmask.s_addr) > ntohl(b->netmask.s_addr))
usr.sbin/rpki-client/aspa.c
229
aspa_buffer(struct ibuf *b, const struct aspa *p)
usr.sbin/rpki-client/aspa.c
231
io_simple_buffer(b, &p->valid, sizeof(p->valid));
usr.sbin/rpki-client/aspa.c
232
io_simple_buffer(b, &p->custasid, sizeof(p->custasid));
usr.sbin/rpki-client/aspa.c
233
io_simple_buffer(b, &p->talid, sizeof(p->talid));
usr.sbin/rpki-client/aspa.c
234
io_simple_buffer(b, &p->expires, sizeof(p->expires));
usr.sbin/rpki-client/aspa.c
236
io_simple_buffer(b, &p->num_providers, sizeof(size_t));
usr.sbin/rpki-client/aspa.c
237
io_simple_buffer(b, p->providers,
usr.sbin/rpki-client/aspa.c
247
aspa_read(struct ibuf *b)
usr.sbin/rpki-client/aspa.c
254
io_read_buf(b, &p->valid, sizeof(p->valid));
usr.sbin/rpki-client/aspa.c
255
io_read_buf(b, &p->custasid, sizeof(p->custasid));
usr.sbin/rpki-client/aspa.c
256
io_read_buf(b, &p->talid, sizeof(p->talid));
usr.sbin/rpki-client/aspa.c
257
io_read_buf(b, &p->expires, sizeof(p->expires));
usr.sbin/rpki-client/aspa.c
259
io_read_buf(b, &p->num_providers, sizeof(size_t));
usr.sbin/rpki-client/aspa.c
265
io_read_buf(b, p->providers,
usr.sbin/rpki-client/aspa.c
364
vapcmp(struct vap *a, struct vap *b)
usr.sbin/rpki-client/aspa.c
366
if (a->custasid > b->custasid)
usr.sbin/rpki-client/aspa.c
368
if (a->custasid < b->custasid)
usr.sbin/rpki-client/ccr.c
296
ski_cmp(const SubjectKeyIdentifier *const *a, const SubjectKeyIdentifier *const *b)
usr.sbin/rpki-client/ccr.c
298
return ASN1_OCTET_STRING_cmp(*a, *b);
usr.sbin/rpki-client/ccr.c
689
ccr_tas_ski_cmp(const struct ccr_tas_ski *a, const struct ccr_tas_ski *b)
usr.sbin/rpki-client/ccr.c
691
return memcmp(a->keyid, b->keyid, SHA_DIGEST_LENGTH);
usr.sbin/rpki-client/ccr.c
736
ccr_mft_cmp(const struct ccr_mft *a, const struct ccr_mft *b)
usr.sbin/rpki-client/ccr.c
738
return memcmp(a->hash, b->hash, SHA256_DIGEST_LENGTH);
usr.sbin/rpki-client/ccr.c
805
ccr_vrp_cmp(const struct vrp *a, const struct vrp *b)
usr.sbin/rpki-client/ccr.c
809
if (a->asid > b->asid)
usr.sbin/rpki-client/ccr.c
811
if (a->asid < b->asid)
usr.sbin/rpki-client/ccr.c
814
if (a->afi > b->afi)
usr.sbin/rpki-client/ccr.c
816
if (a->afi < b->afi)
usr.sbin/rpki-client/ccr.c
821
rv = memcmp(&a->addr.addr, &b->addr.addr, 4);
usr.sbin/rpki-client/ccr.c
826
rv = memcmp(&a->addr.addr, &b->addr.addr, 16);
usr.sbin/rpki-client/ccr.c
835
if (a->addr.prefixlen < b->addr.prefixlen)
usr.sbin/rpki-client/ccr.c
837
if (a->addr.prefixlen > b->addr.prefixlen)
usr.sbin/rpki-client/ccr.c
840
if (a->maxlength < b->maxlength)
usr.sbin/rpki-client/ccr.c
842
if (a->maxlength > b->maxlength)
usr.sbin/rpki-client/cert.c
2140
cert_buffer(struct ibuf *b, const struct cert *cert)
usr.sbin/rpki-client/cert.c
2142
io_simple_buffer(b, &cert->notafter, sizeof(cert->notafter));
usr.sbin/rpki-client/cert.c
2143
io_simple_buffer(b, &cert->purpose, sizeof(cert->purpose));
usr.sbin/rpki-client/cert.c
2144
io_simple_buffer(b, &cert->talid, sizeof(cert->talid));
usr.sbin/rpki-client/cert.c
2145
io_simple_buffer(b, &cert->certid, sizeof(cert->certid));
usr.sbin/rpki-client/cert.c
2146
io_simple_buffer(b, &cert->repoid, sizeof(cert->repoid));
usr.sbin/rpki-client/cert.c
2147
io_simple_buffer(b, &cert->num_ips, sizeof(cert->num_ips));
usr.sbin/rpki-client/cert.c
2148
io_simple_buffer(b, &cert->num_ases, sizeof(cert->num_ases));
usr.sbin/rpki-client/cert.c
2150
io_simple_buffer(b, cert->ips, cert->num_ips * sizeof(cert->ips[0]));
usr.sbin/rpki-client/cert.c
2151
io_simple_buffer(b, cert->ases, cert->num_ases * sizeof(cert->ases[0]));
usr.sbin/rpki-client/cert.c
2153
io_str_buffer(b, cert->path);
usr.sbin/rpki-client/cert.c
2156
io_str_buffer(b, cert->mft);
usr.sbin/rpki-client/cert.c
2157
io_opt_str_buffer(b, cert->notify);
usr.sbin/rpki-client/cert.c
2158
io_str_buffer(b, cert->repo);
usr.sbin/rpki-client/cert.c
2160
io_opt_str_buffer(b, cert->aki);
usr.sbin/rpki-client/cert.c
2161
io_str_buffer(b, cert->ski);
usr.sbin/rpki-client/cert.c
2163
io_str_buffer(b, cert->mft);
usr.sbin/rpki-client/cert.c
2164
io_opt_str_buffer(b, cert->notify);
usr.sbin/rpki-client/cert.c
2165
io_str_buffer(b, cert->repo);
usr.sbin/rpki-client/cert.c
2166
io_str_buffer(b, cert->crl);
usr.sbin/rpki-client/cert.c
2167
io_str_buffer(b, cert->aia);
usr.sbin/rpki-client/cert.c
2168
io_str_buffer(b, cert->aki);
usr.sbin/rpki-client/cert.c
2169
io_str_buffer(b, cert->ski);
usr.sbin/rpki-client/cert.c
2170
io_simple_buffer(b, &cert->mfthash, sizeof(cert->mfthash));
usr.sbin/rpki-client/cert.c
2173
io_str_buffer(b, cert->crl);
usr.sbin/rpki-client/cert.c
2174
io_str_buffer(b, cert->aia);
usr.sbin/rpki-client/cert.c
2175
io_str_buffer(b, cert->aki);
usr.sbin/rpki-client/cert.c
2176
io_str_buffer(b, cert->ski);
usr.sbin/rpki-client/cert.c
2177
io_str_buffer(b, cert->pubkey);
usr.sbin/rpki-client/cert.c
2190
cert_read(struct ibuf *b)
usr.sbin/rpki-client/cert.c
2197
io_read_buf(b, &cert->notafter, sizeof(cert->notafter));
usr.sbin/rpki-client/cert.c
2198
io_read_buf(b, &cert->purpose, sizeof(cert->purpose));
usr.sbin/rpki-client/cert.c
2199
io_read_buf(b, &cert->talid, sizeof(cert->talid));
usr.sbin/rpki-client/cert.c
2200
io_read_buf(b, &cert->certid, sizeof(cert->certid));
usr.sbin/rpki-client/cert.c
2201
io_read_buf(b, &cert->repoid, sizeof(cert->repoid));
usr.sbin/rpki-client/cert.c
2202
io_read_buf(b, &cert->num_ips, sizeof(cert->num_ips));
usr.sbin/rpki-client/cert.c
2203
io_read_buf(b, &cert->num_ases, sizeof(cert->num_ases));
usr.sbin/rpki-client/cert.c
2209
io_read_buf(b, cert->ips,
usr.sbin/rpki-client/cert.c
2217
io_read_buf(b, cert->ases,
usr.sbin/rpki-client/cert.c
2221
io_read_str(b, &cert->path);
usr.sbin/rpki-client/cert.c
2224
io_read_str(b, &cert->mft);
usr.sbin/rpki-client/cert.c
2225
io_read_opt_str(b, &cert->notify);
usr.sbin/rpki-client/cert.c
2226
io_read_str(b, &cert->repo);
usr.sbin/rpki-client/cert.c
2228
io_read_opt_str(b, &cert->aki);
usr.sbin/rpki-client/cert.c
2229
io_read_str(b, &cert->ski);
usr.sbin/rpki-client/cert.c
2231
io_read_str(b, &cert->mft);
usr.sbin/rpki-client/cert.c
2232
io_read_opt_str(b, &cert->notify);
usr.sbin/rpki-client/cert.c
2233
io_read_str(b, &cert->repo);
usr.sbin/rpki-client/cert.c
2234
io_read_str(b, &cert->crl);
usr.sbin/rpki-client/cert.c
2235
io_read_str(b, &cert->aia);
usr.sbin/rpki-client/cert.c
2236
io_read_str(b, &cert->aki);
usr.sbin/rpki-client/cert.c
2237
io_read_str(b, &cert->ski);
usr.sbin/rpki-client/cert.c
2238
io_read_buf(b, &cert->mfthash, sizeof(cert->mfthash));
usr.sbin/rpki-client/cert.c
2241
io_read_str(b, &cert->crl);
usr.sbin/rpki-client/cert.c
2242
io_read_str(b, &cert->aia);
usr.sbin/rpki-client/cert.c
2243
io_read_str(b, &cert->aki);
usr.sbin/rpki-client/cert.c
2244
io_read_str(b, &cert->ski);
usr.sbin/rpki-client/cert.c
2245
io_read_str(b, &cert->pubkey);
usr.sbin/rpki-client/cert.c
2255
authcmp(struct auth *a, struct auth *b)
usr.sbin/rpki-client/cert.c
2257
if (a->cert->certid > b->cert->certid)
usr.sbin/rpki-client/cert.c
2259
if (a->cert->certid < b->cert->certid)
usr.sbin/rpki-client/cert.c
2355
struct brk *b, *found;
usr.sbin/rpki-client/cert.c
2357
if ((b = calloc(1, sizeof(*b))) == NULL)
usr.sbin/rpki-client/cert.c
2360
b->asid = asid;
usr.sbin/rpki-client/cert.c
2361
b->expires = cert->notafter;
usr.sbin/rpki-client/cert.c
2362
b->talid = cert->talid;
usr.sbin/rpki-client/cert.c
2363
if ((b->ski = strdup(cert->ski)) == NULL)
usr.sbin/rpki-client/cert.c
2365
if ((b->pubkey = strdup(cert->pubkey)) == NULL)
usr.sbin/rpki-client/cert.c
2372
if ((found = RB_INSERT(brk_tree, tree, b)) != NULL) {
usr.sbin/rpki-client/cert.c
2373
if (found->expires < b->expires) {
usr.sbin/rpki-client/cert.c
2374
found->expires = b->expires;
usr.sbin/rpki-client/cert.c
2375
found->talid = b->talid;
usr.sbin/rpki-client/cert.c
2377
free(b->ski);
usr.sbin/rpki-client/cert.c
2378
free(b->pubkey);
usr.sbin/rpki-client/cert.c
2379
free(b);
usr.sbin/rpki-client/cert.c
2409
brkcmp(struct brk *a, struct brk *b)
usr.sbin/rpki-client/cert.c
2413
if (a->asid > b->asid)
usr.sbin/rpki-client/cert.c
2415
if (a->asid < b->asid)
usr.sbin/rpki-client/cert.c
2418
rv = strcmp(a->ski, b->ski);
usr.sbin/rpki-client/cert.c
2424
return strcmp(a->pubkey, b->pubkey);
usr.sbin/rpki-client/cert.c
2472
ncacmp(const struct nonfunc_ca *a, const struct nonfunc_ca *b)
usr.sbin/rpki-client/cert.c
2474
if (a->certid < b->certid)
usr.sbin/rpki-client/cert.c
2476
if (a->certid > b->certid)
usr.sbin/rpki-client/crl.c
290
crlcmp(struct crl *a, struct crl *b)
usr.sbin/rpki-client/crl.c
294
cmp = strcmp(a->aki, b->aki);
usr.sbin/rpki-client/crl.c
304
if (a->mftpath == NULL || b->mftpath == NULL)
usr.sbin/rpki-client/crl.c
307
cmp = strcmp(a->mftpath, b->mftpath);
usr.sbin/rpki-client/filemode.c
60
uripathcmp(const struct uripath *a, const struct uripath *b)
usr.sbin/rpki-client/filemode.c
62
return strcmp(a->uri, b->uri);
usr.sbin/rpki-client/filemode.c
743
struct ibuf *b;
usr.sbin/rpki-client/filemode.c
767
b = io_new_buffer();
usr.sbin/rpki-client/filemode.c
768
io_simple_buffer(b, &entp->type, sizeof(entp->type));
usr.sbin/rpki-client/filemode.c
769
io_simple_buffer(b, &entp->repoid, sizeof(entp->repoid));
usr.sbin/rpki-client/filemode.c
770
io_simple_buffer(b, &entp->talid, sizeof(entp->talid));
usr.sbin/rpki-client/filemode.c
771
io_str_buffer(b, entp->file);
usr.sbin/rpki-client/filemode.c
772
io_simple_buffer(b, &dummy, sizeof(dummy));
usr.sbin/rpki-client/filemode.c
773
io_close_buffer(msgq, b);
usr.sbin/rpki-client/filemode.c
792
struct ibuf *b, *inbuf = NULL;
usr.sbin/rpki-client/filemode.c
837
while ((b = io_buf_get(msgq)) != NULL) {
usr.sbin/rpki-client/filemode.c
841
entity_read_req(b, entp);
usr.sbin/rpki-client/filemode.c
843
ibuf_free(b);
usr.sbin/rpki-client/http.c
2077
struct ibuf *b;
usr.sbin/rpki-client/http.c
2186
while ((b = io_buf_get(msgq)) != NULL) {
usr.sbin/rpki-client/http.c
2191
if (!ibuf_fd_avail(b))
usr.sbin/rpki-client/http.c
2194
io_read_buf(b, &id, sizeof(id));
usr.sbin/rpki-client/http.c
2195
io_read_str(b, &uri);
usr.sbin/rpki-client/http.c
2196
io_read_opt_str(b, &mod);
usr.sbin/rpki-client/http.c
2199
http_req_new(id, uri, mod, 0, ibuf_fd_get(b));
usr.sbin/rpki-client/http.c
2200
ibuf_free(b);
usr.sbin/rpki-client/http.c
623
struct ibuf *b;
usr.sbin/rpki-client/http.c
625
b = io_new_buffer();
usr.sbin/rpki-client/http.c
626
io_simple_buffer(b, &id, sizeof(id));
usr.sbin/rpki-client/http.c
627
io_simple_buffer(b, &res, sizeof(res));
usr.sbin/rpki-client/http.c
628
io_opt_str_buffer(b, last_modified);
usr.sbin/rpki-client/http.c
629
io_close_buffer(msgq, b);
usr.sbin/rpki-client/http.c
638
struct ibuf *b;
usr.sbin/rpki-client/http.c
641
b = io_new_buffer();
usr.sbin/rpki-client/http.c
642
io_simple_buffer(b, &id, sizeof(id));
usr.sbin/rpki-client/http.c
643
io_simple_buffer(b, &res, sizeof(res));
usr.sbin/rpki-client/http.c
644
io_opt_str_buffer(b, NULL);
usr.sbin/rpki-client/http.c
645
io_close_buffer(msgq, b);
usr.sbin/rpki-client/io.c
101
len = ibuf_size(b);
usr.sbin/rpki-client/io.c
102
if (ibuf_fd_avail(b))
usr.sbin/rpki-client/io.c
104
ibuf_set(b, 0, &len, sizeof(len));
usr.sbin/rpki-client/io.c
105
ibuf_close(msgbuf, b);
usr.sbin/rpki-client/io.c
112
io_close_queue(struct ibufqueue *bufq, struct ibuf *b)
usr.sbin/rpki-client/io.c
116
len = ibuf_size(b);
usr.sbin/rpki-client/io.c
117
if (ibuf_fd_avail(b))
usr.sbin/rpki-client/io.c
119
ibuf_set(b, 0, &len, sizeof(len));
usr.sbin/rpki-client/io.c
120
ibufq_push(bufq, b);
usr.sbin/rpki-client/io.c
129
io_read_buf(struct ibuf *b, void *res, size_t sz)
usr.sbin/rpki-client/io.c
133
if (ibuf_get(b, res, sz) == -1)
usr.sbin/rpki-client/io.c
141
io_read_str(struct ibuf *b, char **res)
usr.sbin/rpki-client/io.c
145
io_read_buf(b, &sz, sizeof(sz));
usr.sbin/rpki-client/io.c
150
io_read_buf(b, *res, sz);
usr.sbin/rpki-client/io.c
159
io_read_opt_str(struct ibuf *b, char **res)
usr.sbin/rpki-client/io.c
163
io_read_buf(b, &sz, sizeof(sz));
usr.sbin/rpki-client/io.c
170
io_read_buf(b, *res, sz);
usr.sbin/rpki-client/io.c
180
io_read_buf_alloc(struct ibuf *b, void **res, size_t *sz)
usr.sbin/rpki-client/io.c
183
io_read_buf(b, sz, sizeof(*sz));
usr.sbin/rpki-client/io.c
188
io_read_buf(b, *res, *sz);
usr.sbin/rpki-client/io.c
194
struct ibuf *b;
usr.sbin/rpki-client/io.c
209
if ((b = ibuf_open(len)) == NULL)
usr.sbin/rpki-client/io.c
212
ibuf_fd_set(b, *fd);
usr.sbin/rpki-client/io.c
215
return b;
usr.sbin/rpki-client/io.c
221
struct ibuf *b;
usr.sbin/rpki-client/io.c
223
if ((b = msgbuf_get(msgq)) == NULL)
usr.sbin/rpki-client/io.c
226
ibuf_skip(b, sizeof(size_t));
usr.sbin/rpki-client/io.c
227
return b;
usr.sbin/rpki-client/io.c
42
struct ibuf *b;
usr.sbin/rpki-client/io.c
44
if ((b = ibuf_dynamic(64, MAX_MSG_SIZE)) == NULL)
usr.sbin/rpki-client/io.c
46
ibuf_add_zero(b, sizeof(size_t)); /* can not fail */
usr.sbin/rpki-client/io.c
47
return b;
usr.sbin/rpki-client/io.c
54
io_simple_buffer(struct ibuf *b, const void *res, size_t sz)
usr.sbin/rpki-client/io.c
56
if (ibuf_add(b, res, sz) == -1)
usr.sbin/rpki-client/io.c
64
io_buf_buffer(struct ibuf *b, const void *p, size_t sz)
usr.sbin/rpki-client/io.c
66
if (ibuf_add(b, &sz, sizeof(size_t)) == -1)
usr.sbin/rpki-client/io.c
69
if (ibuf_add(b, p, sz) == -1)
usr.sbin/rpki-client/io.c
77
io_str_buffer(struct ibuf *b, const char *p)
usr.sbin/rpki-client/io.c
79
io_buf_buffer(b, p, strlen(p));
usr.sbin/rpki-client/io.c
86
io_opt_str_buffer(struct ibuf *b, const char *p)
usr.sbin/rpki-client/io.c
90
io_buf_buffer(b, p, sz);
usr.sbin/rpki-client/io.c
97
io_close_buffer(struct msgbuf *msgbuf, struct ibuf *b)
usr.sbin/rpki-client/main.c
1021
struct ibuf *b;
usr.sbin/rpki-client/main.c
1405
while ((b = io_buf_get(queues[1])) != NULL) {
usr.sbin/rpki-client/main.c
1409
io_read_buf(b, &id, sizeof(id));
usr.sbin/rpki-client/main.c
1410
io_read_buf(b, &ok, sizeof(ok));
usr.sbin/rpki-client/main.c
1412
ibuf_free(b);
usr.sbin/rpki-client/main.c
1423
while ((b = io_buf_get(queues[2])) != NULL) {
usr.sbin/rpki-client/main.c
1428
io_read_buf(b, &id, sizeof(id));
usr.sbin/rpki-client/main.c
1429
io_read_buf(b, &res, sizeof(res));
usr.sbin/rpki-client/main.c
1430
io_read_opt_str(b, &last_mod);
usr.sbin/rpki-client/main.c
1433
ibuf_free(b);
usr.sbin/rpki-client/main.c
1448
while ((b = io_buf_get(queues[3])) != NULL) {
usr.sbin/rpki-client/main.c
1449
rrdp_process(b);
usr.sbin/rpki-client/main.c
1450
ibuf_free(b);
usr.sbin/rpki-client/main.c
1466
while ((b = io_buf_get(queues[0])) != NULL) {
usr.sbin/rpki-client/main.c
1467
entity_process(b, &vd, &stats);
usr.sbin/rpki-client/main.c
1468
ibuf_free(b);
usr.sbin/rpki-client/main.c
154
entity_read_req(struct ibuf *b, struct entity *ent)
usr.sbin/rpki-client/main.c
156
io_read_buf(b, &ent->type, sizeof(ent->type));
usr.sbin/rpki-client/main.c
157
io_read_buf(b, &ent->location, sizeof(ent->location));
usr.sbin/rpki-client/main.c
158
io_read_buf(b, &ent->repoid, sizeof(ent->repoid));
usr.sbin/rpki-client/main.c
161
io_read_opt_str(b, &ent->path);
usr.sbin/rpki-client/main.c
162
io_read_str(b, &ent->file);
usr.sbin/rpki-client/main.c
164
io_read_buf(b, &ent->talid, sizeof(ent->talid));
usr.sbin/rpki-client/main.c
165
io_read_buf(b, &ent->certid, sizeof(ent->certid));
usr.sbin/rpki-client/main.c
166
io_read_opt_str(b, &ent->path);
usr.sbin/rpki-client/main.c
167
io_read_str(b, &ent->file);
usr.sbin/rpki-client/main.c
168
io_read_opt_str(b, &ent->mftaki);
usr.sbin/rpki-client/main.c
169
io_read_buf_alloc(b, (void **)&ent->data, &ent->datasz);
usr.sbin/rpki-client/main.c
180
struct ibuf *b;
usr.sbin/rpki-client/main.c
182
b = io_new_buffer();
usr.sbin/rpki-client/main.c
183
io_simple_buffer(b, &ent->type, sizeof(ent->type));
usr.sbin/rpki-client/main.c
184
io_simple_buffer(b, &ent->location, sizeof(ent->location));
usr.sbin/rpki-client/main.c
185
io_simple_buffer(b, &ent->repoid, sizeof(ent->repoid));
usr.sbin/rpki-client/main.c
186
io_simple_buffer(b, &ent->talid, sizeof(ent->talid));
usr.sbin/rpki-client/main.c
187
io_simple_buffer(b, &ent->certid, sizeof(ent->certid));
usr.sbin/rpki-client/main.c
188
io_opt_str_buffer(b, ent->path);
usr.sbin/rpki-client/main.c
189
io_str_buffer(b, ent->file);
usr.sbin/rpki-client/main.c
190
io_opt_str_buffer(b, ent->mftaki);
usr.sbin/rpki-client/main.c
191
io_buf_buffer(b, ent->data, ent->datasz);
usr.sbin/rpki-client/main.c
192
io_close_buffer(procq, b);
usr.sbin/rpki-client/main.c
202
struct ibuf *b;
usr.sbin/rpki-client/main.c
212
b = io_new_buffer();
usr.sbin/rpki-client/main.c
213
io_simple_buffer(b, &type, sizeof(type));
usr.sbin/rpki-client/main.c
214
io_simple_buffer(b, &loc, sizeof(loc));
usr.sbin/rpki-client/main.c
215
io_simple_buffer(b, &repoid, sizeof(repoid));
usr.sbin/rpki-client/main.c
216
io_opt_str_buffer(b, path);
usr.sbin/rpki-client/main.c
217
io_str_buffer(b, altpath);
usr.sbin/rpki-client/main.c
218
io_close_buffer(procq, b);
usr.sbin/rpki-client/main.c
283
struct ibuf *b;
usr.sbin/rpki-client/main.c
285
b = io_new_buffer();
usr.sbin/rpki-client/main.c
286
io_simple_buffer(b, &type, sizeof(type));
usr.sbin/rpki-client/main.c
287
io_simple_buffer(b, &id, sizeof(id));
usr.sbin/rpki-client/main.c
288
io_simple_buffer(b, &ok, sizeof(ok));
usr.sbin/rpki-client/main.c
289
io_close_buffer(rrdpq, b);
usr.sbin/rpki-client/main.c
297
struct ibuf *b;
usr.sbin/rpki-client/main.c
300
b = io_new_buffer();
usr.sbin/rpki-client/main.c
301
io_simple_buffer(b, &type, sizeof(type));
usr.sbin/rpki-client/main.c
302
io_simple_buffer(b, &id, sizeof(id));
usr.sbin/rpki-client/main.c
303
io_str_buffer(b, local);
usr.sbin/rpki-client/main.c
304
io_str_buffer(b, uri);
usr.sbin/rpki-client/main.c
306
io_simple_buffer(b, &c, sizeof(c));
usr.sbin/rpki-client/main.c
309
rrdp_session_buffer(b, s);
usr.sbin/rpki-client/main.c
310
io_close_buffer(rrdpq, b);
usr.sbin/rpki-client/main.c
317
struct ibuf *b;
usr.sbin/rpki-client/main.c
319
b = io_new_buffer();
usr.sbin/rpki-client/main.c
320
io_simple_buffer(b, &type, sizeof(type));
usr.sbin/rpki-client/main.c
321
io_simple_buffer(b, &id, sizeof(id));
usr.sbin/rpki-client/main.c
322
io_close_buffer(rrdpq, b);
usr.sbin/rpki-client/main.c
332
struct ibuf *b;
usr.sbin/rpki-client/main.c
334
b = io_new_buffer();
usr.sbin/rpki-client/main.c
335
io_simple_buffer(b, &id, sizeof(id));
usr.sbin/rpki-client/main.c
336
io_str_buffer(b, local);
usr.sbin/rpki-client/main.c
337
io_opt_str_buffer(b, base);
usr.sbin/rpki-client/main.c
338
io_str_buffer(b, uri);
usr.sbin/rpki-client/main.c
339
io_close_buffer(rsyncq, b);
usr.sbin/rpki-client/main.c
345
struct ibuf *b;
usr.sbin/rpki-client/main.c
347
b = io_new_buffer();
usr.sbin/rpki-client/main.c
348
io_simple_buffer(b, &id, sizeof(id));
usr.sbin/rpki-client/main.c
349
io_opt_str_buffer(b, NULL);
usr.sbin/rpki-client/main.c
350
io_opt_str_buffer(b, NULL);
usr.sbin/rpki-client/main.c
351
io_opt_str_buffer(b, NULL);
usr.sbin/rpki-client/main.c
352
io_close_buffer(rsyncq, b);
usr.sbin/rpki-client/main.c
361
struct ibuf *b;
usr.sbin/rpki-client/main.c
363
b = io_new_buffer();
usr.sbin/rpki-client/main.c
364
io_simple_buffer(b, &id, sizeof(id));
usr.sbin/rpki-client/main.c
365
io_str_buffer(b, uri);
usr.sbin/rpki-client/main.c
366
io_opt_str_buffer(b, last_mod);
usr.sbin/rpki-client/main.c
368
ibuf_fd_set(b, fd);
usr.sbin/rpki-client/main.c
369
io_close_buffer(httpq, b);
usr.sbin/rpki-client/main.c
380
struct ibuf *b;
usr.sbin/rpki-client/main.c
386
b = io_new_buffer();
usr.sbin/rpki-client/main.c
387
io_simple_buffer(b, &type, sizeof(type));
usr.sbin/rpki-client/main.c
388
io_simple_buffer(b, &id, sizeof(id));
usr.sbin/rpki-client/main.c
389
ibuf_fd_set(b, pi[0]);
usr.sbin/rpki-client/main.c
390
io_close_buffer(rrdpq, b);
usr.sbin/rpki-client/main.c
399
struct ibuf *b;
usr.sbin/rpki-client/main.c
402
b = io_new_buffer();
usr.sbin/rpki-client/main.c
403
io_simple_buffer(b, &type, sizeof(type));
usr.sbin/rpki-client/main.c
404
io_simple_buffer(b, &id, sizeof(id));
usr.sbin/rpki-client/main.c
405
io_simple_buffer(b, &res, sizeof(res));
usr.sbin/rpki-client/main.c
406
io_opt_str_buffer(b, last_mod);
usr.sbin/rpki-client/main.c
407
io_close_buffer(rrdpq, b);
usr.sbin/rpki-client/main.c
587
entity_process(struct ibuf *b, struct validation_data *vd, struct stats *st)
usr.sbin/rpki-client/main.c
609
io_read_buf(b, &type, sizeof(type));
usr.sbin/rpki-client/main.c
610
io_read_buf(b, &id, sizeof(id));
usr.sbin/rpki-client/main.c
611
io_read_buf(b, &talid, sizeof(talid));
usr.sbin/rpki-client/main.c
612
io_read_str(b, &file);
usr.sbin/rpki-client/main.c
613
io_read_buf(b, &mtime, sizeof(mtime));
usr.sbin/rpki-client/main.c
635
tal = tal_read(b);
usr.sbin/rpki-client/main.c
640
io_read_buf(b, &ok, sizeof(ok));
usr.sbin/rpki-client/main.c
645
cert = cert_read(b);
usr.sbin/rpki-client/main.c
666
io_read_buf(b, &ok, sizeof(ok));
usr.sbin/rpki-client/main.c
671
mft = mft_read(b);
usr.sbin/rpki-client/main.c
684
io_read_buf(b, &ok, sizeof(ok));
usr.sbin/rpki-client/main.c
689
roa = roa_read(b);
usr.sbin/rpki-client/main.c
698
io_read_buf(b, &ok, sizeof(ok));
usr.sbin/rpki-client/main.c
703
aspa = aspa_read(b);
usr.sbin/rpki-client/main.c
711
io_read_buf(b, &ok, sizeof(ok));
usr.sbin/rpki-client/main.c
717
spl = spl_read(b);
usr.sbin/rpki-client/main.c
742
rrdp_process(struct ibuf *b)
usr.sbin/rpki-client/main.c
753
io_read_buf(b, &type, sizeof(type));
usr.sbin/rpki-client/main.c
754
io_read_buf(b, &id, sizeof(id));
usr.sbin/rpki-client/main.c
758
io_read_buf(b, &ok, sizeof(ok));
usr.sbin/rpki-client/main.c
762
io_read_str(b, &uri);
usr.sbin/rpki-client/main.c
763
io_read_opt_str(b, &last_mod);
usr.sbin/rpki-client/main.c
769
s = rrdp_session_read(b);
usr.sbin/rpki-client/main.c
774
io_read_buf(b, &pt, sizeof(pt));
usr.sbin/rpki-client/main.c
776
io_read_buf(b, &hash, sizeof(hash));
usr.sbin/rpki-client/main.c
777
io_read_str(b, &uri);
usr.sbin/rpki-client/main.c
778
io_read_buf_alloc(b, (void **)&data, &dsz);
usr.sbin/rpki-client/mft.c
217
mft_fh_cmp_name(const FileAndHash *const *a, const FileAndHash *const *b)
usr.sbin/rpki-client/mft.c
219
return ASN1_STRING_cmp((*a)->file, (*b)->file);
usr.sbin/rpki-client/mft.c
223
mft_fh_cmp_hash(const FileAndHash *const *a, const FileAndHash *const *b)
usr.sbin/rpki-client/mft.c
225
return ASN1_STRING_cmp((*a)->hash, (*b)->hash);
usr.sbin/rpki-client/mft.c
476
mft_buffer(struct ibuf *b, const struct mft *p)
usr.sbin/rpki-client/mft.c
480
io_simple_buffer(b, &p->repoid, sizeof(p->repoid));
usr.sbin/rpki-client/mft.c
481
io_simple_buffer(b, &p->talid, sizeof(p->talid));
usr.sbin/rpki-client/mft.c
482
io_simple_buffer(b, &p->certid, sizeof(p->certid));
usr.sbin/rpki-client/mft.c
483
io_simple_buffer(b, &p->seqnum_gap, sizeof(p->seqnum_gap));
usr.sbin/rpki-client/mft.c
484
io_opt_str_buffer(b, p->path);
usr.sbin/rpki-client/mft.c
486
io_str_buffer(b, p->aki);
usr.sbin/rpki-client/mft.c
487
io_str_buffer(b, p->seqnum);
usr.sbin/rpki-client/mft.c
488
io_str_buffer(b, p->sia);
usr.sbin/rpki-client/mft.c
489
io_simple_buffer(b, &p->thisupdate, sizeof(p->thisupdate));
usr.sbin/rpki-client/mft.c
490
io_simple_buffer(b, p->mfthash, sizeof(p->mfthash));
usr.sbin/rpki-client/mft.c
491
io_simple_buffer(b, &p->mftsize, sizeof(p->mftsize));
usr.sbin/rpki-client/mft.c
493
io_simple_buffer(b, &p->filesz, sizeof(size_t));
usr.sbin/rpki-client/mft.c
495
io_str_buffer(b, p->files[i].file);
usr.sbin/rpki-client/mft.c
496
io_simple_buffer(b, &p->files[i].type,
usr.sbin/rpki-client/mft.c
498
io_simple_buffer(b, &p->files[i].location,
usr.sbin/rpki-client/mft.c
500
io_simple_buffer(b, p->files[i].hash, SHA256_DIGEST_LENGTH);
usr.sbin/rpki-client/mft.c
509
mft_read(struct ibuf *b)
usr.sbin/rpki-client/mft.c
517
io_read_buf(b, &p->repoid, sizeof(p->repoid));
usr.sbin/rpki-client/mft.c
518
io_read_buf(b, &p->talid, sizeof(p->talid));
usr.sbin/rpki-client/mft.c
519
io_read_buf(b, &p->certid, sizeof(p->certid));
usr.sbin/rpki-client/mft.c
520
io_read_buf(b, &p->seqnum_gap, sizeof(p->seqnum_gap));
usr.sbin/rpki-client/mft.c
521
io_read_opt_str(b, &p->path);
usr.sbin/rpki-client/mft.c
523
io_read_str(b, &p->aki);
usr.sbin/rpki-client/mft.c
524
io_read_str(b, &p->seqnum);
usr.sbin/rpki-client/mft.c
525
io_read_str(b, &p->sia);
usr.sbin/rpki-client/mft.c
526
io_read_buf(b, &p->thisupdate, sizeof(p->thisupdate));
usr.sbin/rpki-client/mft.c
527
io_read_buf(b, &p->mfthash, sizeof(p->mfthash));
usr.sbin/rpki-client/mft.c
528
io_read_buf(b, &p->mftsize, sizeof(p->mftsize));
usr.sbin/rpki-client/mft.c
530
io_read_buf(b, &p->filesz, sizeof(size_t));
usr.sbin/rpki-client/mft.c
537
io_read_str(b, &p->files[i].file);
usr.sbin/rpki-client/mft.c
538
io_read_buf(b, &p->files[i].type, sizeof(p->files[i].type));
usr.sbin/rpki-client/mft.c
539
io_read_buf(b, &p->files[i].location,
usr.sbin/rpki-client/mft.c
541
io_read_buf(b, p->files[i].hash, SHA256_DIGEST_LENGTH);
usr.sbin/rpki-client/mft.c
551
mft_compare_issued(const struct mft *a, const struct mft *b)
usr.sbin/rpki-client/mft.c
553
if (a->thisupdate > b->thisupdate)
usr.sbin/rpki-client/mft.c
555
if (a->thisupdate < b->thisupdate)
usr.sbin/rpki-client/mft.c
564
mft_compare_seqnum(const struct mft *a, const struct mft *b)
usr.sbin/rpki-client/mft.c
568
r = strlen(a->seqnum) - strlen(b->seqnum);
usr.sbin/rpki-client/mft.c
574
r = strcmp(a->seqnum, b->seqnum);
usr.sbin/rpki-client/mft.c
588
mft_seqnum_gap_present(const struct mft *a, const struct mft *b, BN_CTX *bn_ctx)
usr.sbin/rpki-client/mft.c
602
if (!BN_hex2bn(&seqnum_b, b->seqnum))
usr.sbin/rpki-client/output-json.c
156
struct brk *b;
usr.sbin/rpki-client/output-json.c
177
RB_FOREACH(b, brk_tree, &vd->brks) {
usr.sbin/rpki-client/output-json.c
179
json_do_int("asn", b->asid);
usr.sbin/rpki-client/output-json.c
180
json_do_string("ski", b->ski);
usr.sbin/rpki-client/output-json.c
181
json_do_string("pubkey", b->pubkey);
usr.sbin/rpki-client/output-json.c
182
json_do_string("ta", taldescs[b->talid]);
usr.sbin/rpki-client/output-json.c
183
json_do_int("expires", b->expires);
usr.sbin/rpki-client/parser.c
1001
io_simple_buffer(b, &c, sizeof(int));
usr.sbin/rpki-client/parser.c
1003
spl_buffer(b, spl);
usr.sbin/rpki-client/parser.c
1010
io_str_buffer(b, file);
usr.sbin/rpki-client/parser.c
1011
io_simple_buffer(b, &mtime, sizeof(mtime));
usr.sbin/rpki-client/parser.c
1018
io_close_queue(msgq, b);
usr.sbin/rpki-client/parser.c
1188
struct ibuf *b;
usr.sbin/rpki-client/parser.c
1241
while ((b = io_buf_get(inbufq)) != NULL) {
usr.sbin/rpki-client/parser.c
1245
entity_read_req(b, entp);
usr.sbin/rpki-client/parser.c
1246
ibuf_free(b);
usr.sbin/rpki-client/parser.c
67
repocmp(struct parse_repo *a, struct parse_repo *b)
usr.sbin/rpki-client/parser.c
69
return a->id - b->id;
usr.sbin/rpki-client/parser.c
856
struct ibuf *b;
usr.sbin/rpki-client/parser.c
867
b = io_new_buffer();
usr.sbin/rpki-client/parser.c
868
io_simple_buffer(b, &entp->type, sizeof(entp->type));
usr.sbin/rpki-client/parser.c
869
io_simple_buffer(b, &entp->repoid, sizeof(entp->repoid));
usr.sbin/rpki-client/parser.c
870
io_simple_buffer(b, &entp->talid, sizeof(entp->talid));
usr.sbin/rpki-client/parser.c
879
io_str_buffer(b, entp->file);
usr.sbin/rpki-client/parser.c
880
io_simple_buffer(b, &mtime, sizeof(mtime));
usr.sbin/rpki-client/parser.c
886
tal_buffer(b, tal);
usr.sbin/rpki-client/parser.c
903
io_str_buffer(b, file);
usr.sbin/rpki-client/parser.c
906
io_simple_buffer(b, &mtime, sizeof(mtime));
usr.sbin/rpki-client/parser.c
908
io_simple_buffer(b, &c, sizeof(int));
usr.sbin/rpki-client/parser.c
911
cert_buffer(b, cert);
usr.sbin/rpki-client/parser.c
922
io_str_buffer(b, file);
usr.sbin/rpki-client/parser.c
925
io_simple_buffer(b, &mtime, sizeof(mtime));
usr.sbin/rpki-client/parser.c
927
io_simple_buffer(b, &c, sizeof(int));
usr.sbin/rpki-client/parser.c
929
mft_buffer(b, mft);
usr.sbin/rpki-client/parser.c
954
io_str_buffer(b, file);
usr.sbin/rpki-client/parser.c
958
io_simple_buffer(b, &mtime, sizeof(mtime));
usr.sbin/rpki-client/parser.c
960
io_simple_buffer(b, &c, sizeof(int));
usr.sbin/rpki-client/parser.c
962
roa_buffer(b, roa);
usr.sbin/rpki-client/parser.c
967
io_str_buffer(b, file);
usr.sbin/rpki-client/parser.c
971
io_simple_buffer(b, &mtime, sizeof(mtime));
usr.sbin/rpki-client/parser.c
973
io_simple_buffer(b, &c, sizeof(int));
usr.sbin/rpki-client/parser.c
975
aspa_buffer(b, aspa);
usr.sbin/rpki-client/parser.c
980
io_str_buffer(b, file);
usr.sbin/rpki-client/parser.c
984
io_simple_buffer(b, &mtime, sizeof(mtime));
usr.sbin/rpki-client/parser.c
989
io_str_buffer(b, file);
usr.sbin/rpki-client/parser.c
999
io_simple_buffer(b, &mtime, sizeof(mtime));
usr.sbin/rpki-client/repo.c
127
filepathcmp(const struct filepath *a, const struct filepath *b)
usr.sbin/rpki-client/repo.c
129
return strcmp(a->file, b->file);
usr.sbin/rpki-client/repo.c
862
rrdp_session_buffer(struct ibuf *b, const struct rrdp_session *s)
usr.sbin/rpki-client/repo.c
866
io_str_buffer(b, s->session_id);
usr.sbin/rpki-client/repo.c
867
io_simple_buffer(b, &s->serial, sizeof(s->serial));
usr.sbin/rpki-client/repo.c
868
io_opt_str_buffer(b, s->last_mod);
usr.sbin/rpki-client/repo.c
870
io_opt_str_buffer(b, s->deltas[i]);
usr.sbin/rpki-client/repo.c
874
rrdp_session_read(struct ibuf *b)
usr.sbin/rpki-client/repo.c
882
io_read_str(b, &s->session_id);
usr.sbin/rpki-client/repo.c
883
io_read_buf(b, &s->serial, sizeof(s->serial));
usr.sbin/rpki-client/repo.c
884
io_read_opt_str(b, &s->last_mod);
usr.sbin/rpki-client/repo.c
886
io_read_opt_str(b, &s->deltas[i]);
usr.sbin/rpki-client/roa.c
290
roa_buffer(struct ibuf *b, const struct roa *p)
usr.sbin/rpki-client/roa.c
292
io_simple_buffer(b, &p->valid, sizeof(p->valid));
usr.sbin/rpki-client/roa.c
293
io_simple_buffer(b, &p->asid, sizeof(p->asid));
usr.sbin/rpki-client/roa.c
294
io_simple_buffer(b, &p->talid, sizeof(p->talid));
usr.sbin/rpki-client/roa.c
295
io_simple_buffer(b, &p->num_ips, sizeof(p->num_ips));
usr.sbin/rpki-client/roa.c
296
io_simple_buffer(b, &p->expires, sizeof(p->expires));
usr.sbin/rpki-client/roa.c
298
io_simple_buffer(b, p->ips, p->num_ips * sizeof(p->ips[0]));
usr.sbin/rpki-client/roa.c
307
roa_read(struct ibuf *b)
usr.sbin/rpki-client/roa.c
314
io_read_buf(b, &p->valid, sizeof(p->valid));
usr.sbin/rpki-client/roa.c
315
io_read_buf(b, &p->asid, sizeof(p->asid));
usr.sbin/rpki-client/roa.c
316
io_read_buf(b, &p->talid, sizeof(p->talid));
usr.sbin/rpki-client/roa.c
317
io_read_buf(b, &p->num_ips, sizeof(p->num_ips));
usr.sbin/rpki-client/roa.c
318
io_read_buf(b, &p->expires, sizeof(p->expires));
usr.sbin/rpki-client/roa.c
323
io_read_buf(b, p->ips, p->num_ips * sizeof(p->ips[0]));
usr.sbin/rpki-client/roa.c
378
vrpcmp(struct vrp *a, struct vrp *b)
usr.sbin/rpki-client/roa.c
382
if (a->afi > b->afi)
usr.sbin/rpki-client/roa.c
384
if (a->afi < b->afi)
usr.sbin/rpki-client/roa.c
388
rv = memcmp(&a->addr.addr, &b->addr.addr, 4);
usr.sbin/rpki-client/roa.c
393
rv = memcmp(&a->addr.addr, &b->addr.addr, 16);
usr.sbin/rpki-client/roa.c
401
if (a->addr.prefixlen < b->addr.prefixlen)
usr.sbin/rpki-client/roa.c
403
if (a->addr.prefixlen > b->addr.prefixlen)
usr.sbin/rpki-client/roa.c
405
if (a->maxlength < b->maxlength)
usr.sbin/rpki-client/roa.c
407
if (a->maxlength > b->maxlength)
usr.sbin/rpki-client/roa.c
410
if (a->asid > b->asid)
usr.sbin/rpki-client/roa.c
412
if (a->asid < b->asid)
usr.sbin/rpki-client/rrdp.c
100
io_simple_buffer(b, &ok, sizeof(ok));
usr.sbin/rpki-client/rrdp.c
101
io_close_buffer(msgq, b);
usr.sbin/rpki-client/rrdp.c
116
struct ibuf *b;
usr.sbin/rpki-client/rrdp.c
118
b = io_new_buffer();
usr.sbin/rpki-client/rrdp.c
119
io_simple_buffer(b, &type, sizeof(type));
usr.sbin/rpki-client/rrdp.c
120
io_simple_buffer(b, &id, sizeof(id));
usr.sbin/rpki-client/rrdp.c
121
io_str_buffer(b, uri);
usr.sbin/rpki-client/rrdp.c
122
io_opt_str_buffer(b, last_mod);
usr.sbin/rpki-client/rrdp.c
123
io_close_buffer(msgq, b);
usr.sbin/rpki-client/rrdp.c
133
struct ibuf *b;
usr.sbin/rpki-client/rrdp.c
135
b = io_new_buffer();
usr.sbin/rpki-client/rrdp.c
136
io_simple_buffer(b, &type, sizeof(type));
usr.sbin/rpki-client/rrdp.c
137
io_simple_buffer(b, &s->id, sizeof(s->id));
usr.sbin/rpki-client/rrdp.c
138
rrdp_session_buffer(b, s->current);
usr.sbin/rpki-client/rrdp.c
139
io_close_buffer(msgq, b);
usr.sbin/rpki-client/rrdp.c
149
struct ibuf *b;
usr.sbin/rpki-client/rrdp.c
151
b = io_new_buffer();
usr.sbin/rpki-client/rrdp.c
152
io_simple_buffer(b, &type, sizeof(type));
usr.sbin/rpki-client/rrdp.c
153
io_simple_buffer(b, &s->id, sizeof(s->id));
usr.sbin/rpki-client/rrdp.c
154
io_close_buffer(msgq, b);
usr.sbin/rpki-client/rrdp.c
165
struct ibuf *b;
usr.sbin/rpki-client/rrdp.c
169
b = io_new_buffer();
usr.sbin/rpki-client/rrdp.c
170
io_simple_buffer(b, &type, sizeof(type));
usr.sbin/rpki-client/rrdp.c
171
io_simple_buffer(b, &s->id, sizeof(s->id));
usr.sbin/rpki-client/rrdp.c
172
io_simple_buffer(b, &pxml->type, sizeof(pxml->type));
usr.sbin/rpki-client/rrdp.c
174
io_simple_buffer(b, &pxml->hash, sizeof(pxml->hash));
usr.sbin/rpki-client/rrdp.c
175
io_str_buffer(b, pxml->uri);
usr.sbin/rpki-client/rrdp.c
176
io_buf_buffer(b, data, datasz);
usr.sbin/rpki-client/rrdp.c
177
io_close_buffer(msgq, b);
usr.sbin/rpki-client/rrdp.c
403
rrdp_input_handler(struct ibuf *b)
usr.sbin/rpki-client/rrdp.c
413
io_read_buf(b, &type, sizeof(type));
usr.sbin/rpki-client/rrdp.c
414
io_read_buf(b, &id, sizeof(id));
usr.sbin/rpki-client/rrdp.c
418
if (ibuf_fd_avail(b))
usr.sbin/rpki-client/rrdp.c
420
io_read_str(b, &local);
usr.sbin/rpki-client/rrdp.c
421
io_read_str(b, &notify);
usr.sbin/rpki-client/rrdp.c
422
io_read_buf(b, &ok, sizeof(ok));
usr.sbin/rpki-client/rrdp.c
424
state = rrdp_session_read(b);
usr.sbin/rpki-client/rrdp.c
437
s->infd = ibuf_fd_get(b);
usr.sbin/rpki-client/rrdp.c
447
io_read_buf(b, &res, sizeof(res));
usr.sbin/rpki-client/rrdp.c
448
io_read_opt_str(b, &last_mod);
usr.sbin/rpki-client/rrdp.c
449
if (ibuf_fd_avail(b))
usr.sbin/rpki-client/rrdp.c
467
if (ibuf_fd_avail(b))
usr.sbin/rpki-client/rrdp.c
469
io_read_buf(b, &ok, sizeof(ok));
usr.sbin/rpki-client/rrdp.c
477
if (ibuf_fd_avail(b))
usr.sbin/rpki-client/rrdp.c
540
struct ibuf *b;
usr.sbin/rpki-client/rrdp.c
615
while ((b = io_buf_get(msgq)) != NULL) {
usr.sbin/rpki-client/rrdp.c
616
rrdp_input_handler(b);
usr.sbin/rpki-client/rrdp.c
617
ibuf_free(b);
usr.sbin/rpki-client/rrdp.c
95
struct ibuf *b;
usr.sbin/rpki-client/rrdp.c
97
b = io_new_buffer();
usr.sbin/rpki-client/rrdp.c
98
io_simple_buffer(b, &type, sizeof(type));
usr.sbin/rpki-client/rrdp.c
99
io_simple_buffer(b, &id, sizeof(id));
usr.sbin/rpki-client/rsync.c
248
struct ibuf *b;
usr.sbin/rpki-client/rsync.c
354
b = io_new_buffer();
usr.sbin/rpki-client/rsync.c
355
io_simple_buffer(b, &s->id, sizeof(s->id));
usr.sbin/rpki-client/rsync.c
356
io_simple_buffer(b, &ok, sizeof(ok));
usr.sbin/rpki-client/rsync.c
357
io_close_buffer(msgq, b);
usr.sbin/rpki-client/rsync.c
391
while ((b = io_buf_get(msgq)) != NULL) {
usr.sbin/rpki-client/rsync.c
393
io_read_buf(b, &id, sizeof(id));
usr.sbin/rpki-client/rsync.c
394
io_read_opt_str(b, &dst);
usr.sbin/rpki-client/rsync.c
395
io_read_opt_str(b, &compdst);
usr.sbin/rpki-client/rsync.c
396
io_read_opt_str(b, &uri);
usr.sbin/rpki-client/rsync.c
398
ibuf_free(b);
usr.sbin/rpki-client/spl.c
291
spl_buffer(struct ibuf *b, const struct spl *s)
usr.sbin/rpki-client/spl.c
293
io_simple_buffer(b, &s->valid, sizeof(s->valid));
usr.sbin/rpki-client/spl.c
294
io_simple_buffer(b, &s->asid, sizeof(s->asid));
usr.sbin/rpki-client/spl.c
295
io_simple_buffer(b, &s->talid, sizeof(s->talid));
usr.sbin/rpki-client/spl.c
296
io_simple_buffer(b, &s->num_prefixes, sizeof(s->num_prefixes));
usr.sbin/rpki-client/spl.c
297
io_simple_buffer(b, &s->expires, sizeof(s->expires));
usr.sbin/rpki-client/spl.c
299
io_simple_buffer(b, s->prefixes,
usr.sbin/rpki-client/spl.c
309
spl_read(struct ibuf *b)
usr.sbin/rpki-client/spl.c
316
io_read_buf(b, &s->valid, sizeof(s->valid));
usr.sbin/rpki-client/spl.c
317
io_read_buf(b, &s->asid, sizeof(s->asid));
usr.sbin/rpki-client/spl.c
318
io_read_buf(b, &s->talid, sizeof(s->talid));
usr.sbin/rpki-client/spl.c
319
io_read_buf(b, &s->num_prefixes, sizeof(s->num_prefixes));
usr.sbin/rpki-client/spl.c
320
io_read_buf(b, &s->expires, sizeof(s->expires));
usr.sbin/rpki-client/spl.c
326
io_read_buf(b, s->prefixes,
usr.sbin/rpki-client/spl.c
334
spl_pfx_cmp(const struct spl_pfx *a, const struct spl_pfx *b)
usr.sbin/rpki-client/spl.c
336
if (a->afi > b->afi)
usr.sbin/rpki-client/spl.c
338
if (a->afi < b->afi)
usr.sbin/rpki-client/spl.c
341
return prefix_cmp(a->afi, &a->prefix, &b->prefix);
usr.sbin/rpki-client/spl.c
422
vspcmp(const struct vsp *a, const struct vsp *b)
usr.sbin/rpki-client/spl.c
424
if (a->asid > b->asid)
usr.sbin/rpki-client/spl.c
426
if (a->asid < b->asid)
usr.sbin/rpki-client/spl.c
64
prefix_cmp(enum afi afi, const struct ip_addr *a, const struct ip_addr *b)
usr.sbin/rpki-client/spl.c
70
cmp = memcmp(&a->addr, &b->addr, 4);
usr.sbin/rpki-client/spl.c
77
cmp = memcmp(&a->addr, &b->addr, 16);
usr.sbin/rpki-client/spl.c
87
if (a->prefixlen < b->prefixlen)
usr.sbin/rpki-client/spl.c
89
if (a->prefixlen > b->prefixlen)
usr.sbin/rpki-client/tal.c
217
tal_buffer(struct ibuf *b, const struct tal *p)
usr.sbin/rpki-client/tal.c
221
io_simple_buffer(b, &p->id, sizeof(p->id));
usr.sbin/rpki-client/tal.c
222
io_buf_buffer(b, p->spki, p->spkisz);
usr.sbin/rpki-client/tal.c
223
io_str_buffer(b, p->descr);
usr.sbin/rpki-client/tal.c
224
io_simple_buffer(b, &p->num_uris, sizeof(p->num_uris));
usr.sbin/rpki-client/tal.c
227
io_str_buffer(b, p->uri[i]);
usr.sbin/rpki-client/tal.c
236
tal_read(struct ibuf *b)
usr.sbin/rpki-client/tal.c
244
io_read_buf(b, &p->id, sizeof(p->id));
usr.sbin/rpki-client/tal.c
245
io_read_buf_alloc(b, (void **)&p->spki, &p->spkisz);
usr.sbin/rpki-client/tal.c
246
io_read_str(b, &p->descr);
usr.sbin/rpki-client/tal.c
247
io_read_buf(b, &p->num_uris, sizeof(p->num_uris));
usr.sbin/rpki-client/tal.c
255
io_read_str(b, &p->uri[i]);
usr.sbin/rpki-client/tal.c
28
tal_cmp(const void *a, const void *b)
usr.sbin/rpki-client/tal.c
31
char * const *sb = b;
usr.sbin/sasyncd/conf.y
249
match_cmp(const void *a, const void *b)
usr.sbin/sasyncd/conf.y
251
return strcmp(a, ((const struct keyword *)b)->name);
usr.sbin/sasyncd/net.c
79
dump_buf(int lvl, u_int8_t *b, u_int32_t len, char *title)
usr.sbin/sasyncd/net.c
95
snprintf(buf + off, blen - off, "%02x", b[i]);
usr.sbin/slowcgi/slowcgi.c
1195
dump_fcgi_begin_request_body(const char *p, struct fcgi_begin_request_body *b)
usr.sbin/slowcgi/slowcgi.c
1197
ldebug("%srole %d", p, ntohs(b->role));
usr.sbin/slowcgi/slowcgi.c
1198
ldebug("%sflags %d", p, b->flags);
usr.sbin/slowcgi/slowcgi.c
1202
dump_fcgi_end_request_body(const char *p, struct fcgi_end_request_body *b)
usr.sbin/slowcgi/slowcgi.c
1204
ldebug("%sappStatus: %d", p, ntohl(b->app_status));
usr.sbin/slowcgi/slowcgi.c
1205
ldebug("%sprotocolStatus: %d", p, b->protocol_status);
usr.sbin/smtpd/bounce.c
774
const struct bounce_message *b)
usr.sbin/smtpd/bounce.c
778
if (a->msgid < b->msgid)
usr.sbin/smtpd/bounce.c
780
if (a->msgid > b->msgid)
usr.sbin/smtpd/bounce.c
782
if ((r = strcmp(a->smtpname, b->smtpname)))
usr.sbin/smtpd/bounce.c
785
return memcmp(&a->bounce, &b->bounce, sizeof (a->bounce));
usr.sbin/smtpd/bounce.c
789
action_str(const struct delivery_bounce *b)
usr.sbin/smtpd/bounce.c
791
switch (b->type) {
usr.sbin/smtpd/bounce.c
797
if (b->mta_without_dsn)
usr.sbin/smtpd/dict.c
260
dictentry_cmp(struct dictentry *a, struct dictentry *b)
usr.sbin/smtpd/dict.c
262
return strcmp(a->key, b->key);
usr.sbin/smtpd/mta.c
2092
mta_relay_cmp(const struct mta_relay *a, const struct mta_relay *b)
usr.sbin/smtpd/mta.c
2096
if (a->domain < b->domain)
usr.sbin/smtpd/mta.c
2098
if (a->domain > b->domain)
usr.sbin/smtpd/mta.c
2101
if (a->tls < b->tls)
usr.sbin/smtpd/mta.c
2103
if (a->tls > b->tls)
usr.sbin/smtpd/mta.c
2106
if (a->flags < b->flags)
usr.sbin/smtpd/mta.c
2108
if (a->flags > b->flags)
usr.sbin/smtpd/mta.c
2111
if (a->port < b->port)
usr.sbin/smtpd/mta.c
2113
if (a->port > b->port)
usr.sbin/smtpd/mta.c
2116
if (a->authtable == NULL && b->authtable)
usr.sbin/smtpd/mta.c
2118
if (a->authtable && b->authtable == NULL)
usr.sbin/smtpd/mta.c
2120
if (a->authtable && ((r = strcmp(a->authtable, b->authtable))))
usr.sbin/smtpd/mta.c
2122
if (a->authlabel == NULL && b->authlabel)
usr.sbin/smtpd/mta.c
2124
if (a->authlabel && b->authlabel == NULL)
usr.sbin/smtpd/mta.c
2126
if (a->authlabel && ((r = strcmp(a->authlabel, b->authlabel))))
usr.sbin/smtpd/mta.c
2128
if (a->sourcetable == NULL && b->sourcetable)
usr.sbin/smtpd/mta.c
2130
if (a->sourcetable && b->sourcetable == NULL)
usr.sbin/smtpd/mta.c
2132
if (a->sourcetable && ((r = strcmp(a->sourcetable, b->sourcetable))))
usr.sbin/smtpd/mta.c
2134
if (a->helotable == NULL && b->helotable)
usr.sbin/smtpd/mta.c
2136
if (a->helotable && b->helotable == NULL)
usr.sbin/smtpd/mta.c
2138
if (a->helotable && ((r = strcmp(a->helotable, b->helotable))))
usr.sbin/smtpd/mta.c
2140
if (a->heloname == NULL && b->heloname)
usr.sbin/smtpd/mta.c
2142
if (a->heloname && b->heloname == NULL)
usr.sbin/smtpd/mta.c
2144
if (a->heloname && ((r = strcmp(a->heloname, b->heloname))))
usr.sbin/smtpd/mta.c
2147
if (a->pki_name == NULL && b->pki_name)
usr.sbin/smtpd/mta.c
2149
if (a->pki_name && b->pki_name == NULL)
usr.sbin/smtpd/mta.c
2151
if (a->pki_name && ((r = strcmp(a->pki_name, b->pki_name))))
usr.sbin/smtpd/mta.c
2154
if (a->ca_name == NULL && b->ca_name)
usr.sbin/smtpd/mta.c
2156
if (a->ca_name && b->ca_name == NULL)
usr.sbin/smtpd/mta.c
2158
if (a->ca_name && ((r = strcmp(a->ca_name, b->ca_name))))
usr.sbin/smtpd/mta.c
2161
if (a->backupname == NULL && b->backupname)
usr.sbin/smtpd/mta.c
2163
if (a->backupname && b->backupname == NULL)
usr.sbin/smtpd/mta.c
2165
if (a->backupname && ((r = strcmp(a->backupname, b->backupname))))
usr.sbin/smtpd/mta.c
2168
if (a->srs < b->srs)
usr.sbin/smtpd/mta.c
2170
if (a->srs > b->srs)
usr.sbin/smtpd/mta.c
2233
mta_host_cmp(const struct mta_host *a, const struct mta_host *b)
usr.sbin/smtpd/mta.c
2235
if (a->sa->sa_len < b->sa->sa_len)
usr.sbin/smtpd/mta.c
2237
if (a->sa->sa_len > b->sa->sa_len)
usr.sbin/smtpd/mta.c
2239
return (memcmp(a->sa, b->sa, a->sa->sa_len));
usr.sbin/smtpd/mta.c
2296
mta_domain_cmp(const struct mta_domain *a, const struct mta_domain *b)
usr.sbin/smtpd/mta.c
2298
if (a->as_host < b->as_host)
usr.sbin/smtpd/mta.c
2300
if (a->as_host > b->as_host)
usr.sbin/smtpd/mta.c
2302
return (strcasecmp(a->name, b->name));
usr.sbin/smtpd/mta.c
2362
mta_source_cmp(const struct mta_source *a, const struct mta_source *b)
usr.sbin/smtpd/mta.c
2365
return ((b->sa == NULL) ? 0 : -1);
usr.sbin/smtpd/mta.c
2366
if (b->sa == NULL)
usr.sbin/smtpd/mta.c
2368
if (a->sa->sa_len < b->sa->sa_len)
usr.sbin/smtpd/mta.c
2370
if (a->sa->sa_len > b->sa->sa_len)
usr.sbin/smtpd/mta.c
2372
return (memcmp(a->sa, b->sa, a->sa->sa_len));
usr.sbin/smtpd/mta.c
2534
mta_route_cmp(const struct mta_route *a, const struct mta_route *b)
usr.sbin/smtpd/mta.c
2536
if (a->src < b->src)
usr.sbin/smtpd/mta.c
2538
if (a->src > b->src)
usr.sbin/smtpd/mta.c
2541
if (a->dst < b->dst)
usr.sbin/smtpd/mta.c
2543
if (a->dst > b->dst)
usr.sbin/smtpd/mta.c
2554
struct mta_block key, *b;
usr.sbin/smtpd/mta.c
2559
b = SPLAY_FIND(mta_block_tree, &blocks, &key);
usr.sbin/smtpd/mta.c
2560
if (b != NULL)
usr.sbin/smtpd/mta.c
2563
b = xcalloc(1, sizeof(*b));
usr.sbin/smtpd/mta.c
2565
b->domain = xstrdup(dom);
usr.sbin/smtpd/mta.c
2566
b->source = src;
usr.sbin/smtpd/mta.c
2568
SPLAY_INSERT(mta_block_tree, &blocks, b);
usr.sbin/smtpd/mta.c
2574
struct mta_block key, *b;
usr.sbin/smtpd/mta.c
2579
b = SPLAY_FIND(mta_block_tree, &blocks, &key);
usr.sbin/smtpd/mta.c
2580
if (b == NULL)
usr.sbin/smtpd/mta.c
2583
SPLAY_REMOVE(mta_block_tree, &blocks, b);
usr.sbin/smtpd/mta.c
2585
mta_source_unref(b->source);
usr.sbin/smtpd/mta.c
2586
free(b->domain);
usr.sbin/smtpd/mta.c
2587
free(b);
usr.sbin/smtpd/mta.c
2606
mta_block_cmp(const struct mta_block *a, const struct mta_block *b)
usr.sbin/smtpd/mta.c
2608
if (a->source < b->source)
usr.sbin/smtpd/mta.c
2610
if (a->source > b->source)
usr.sbin/smtpd/mta.c
2612
if (!a->domain && b->domain)
usr.sbin/smtpd/mta.c
2614
if (a->domain && !b->domain)
usr.sbin/smtpd/mta.c
2616
if (a->domain == b->domain)
usr.sbin/smtpd/mta.c
2618
return (strcasecmp(a->domain, b->domain));
usr.sbin/smtpd/queue.c
560
struct envelope b;
usr.sbin/smtpd/queue.c
562
b = *e;
usr.sbin/smtpd/queue.c
563
b.type = D_BOUNCE;
usr.sbin/smtpd/queue.c
564
b.agent.bounce = *d;
usr.sbin/smtpd/queue.c
565
b.retry = 0;
usr.sbin/smtpd/queue.c
566
b.lasttry = 0;
usr.sbin/smtpd/queue.c
567
b.creation = time(NULL);
usr.sbin/smtpd/queue.c
568
b.ttl = 3600 * 24 * 7;
usr.sbin/smtpd/queue.c
573
if (b.id == 0)
usr.sbin/smtpd/queue.c
575
if (evpid_to_msgid(b.id) == 0)
usr.sbin/smtpd/queue.c
577
b.id);
usr.sbin/smtpd/queue.c
582
} else if (!queue_envelope_create(&b)) {
usr.sbin/smtpd/queue.c
586
" as evp:%016" PRIx64, e->id, b.id);
usr.sbin/smtpd/queue.c
589
m_add_envelope(p_scheduler, &b);
usr.sbin/smtpd/queue.c
593
m_add_msgid(p_scheduler, evpid_to_msgid(b.id));
usr.sbin/smtpd/queue_proc.c
180
struct ibuf *b;
usr.sbin/smtpd/queue_proc.c
184
b = imsg_create(&ibuf, PROC_QUEUE_ENVELOPE_CREATE, 0, 0,
usr.sbin/smtpd/queue_proc.c
186
if (imsg_add(b, &msgid, sizeof(msgid)) == -1 ||
usr.sbin/smtpd/queue_proc.c
187
imsg_add(b, buf, len) == -1)
usr.sbin/smtpd/queue_proc.c
189
imsg_close(&ibuf, b);
usr.sbin/smtpd/queue_proc.c
218
struct ibuf *b;
usr.sbin/smtpd/queue_proc.c
221
b = imsg_create(&ibuf, PROC_QUEUE_ENVELOPE_UPDATE, 0, 0,
usr.sbin/smtpd/queue_proc.c
223
if (imsg_add(b, &evpid, sizeof(evpid)) == -1 ||
usr.sbin/smtpd/queue_proc.c
224
imsg_add(b, buf, len) == -1)
usr.sbin/smtpd/queue_proc.c
226
imsg_close(&ibuf, b);
usr.sbin/smtpd/resolver.c
447
request_cmp(struct request *a, struct request *b)
usr.sbin/smtpd/resolver.c
449
if (a->id < b->id)
usr.sbin/smtpd/resolver.c
451
if (a->id > b->id)
usr.sbin/smtpd/rfc5322.c
216
buf_alloc(struct buf *b, size_t need)
usr.sbin/smtpd/rfc5322.c
221
if (b->buf && b->bufsz >= need)
usr.sbin/smtpd/rfc5322.c
224
if (need >= b->bufmax) {
usr.sbin/smtpd/rfc5322.c
232
buf = reallocarray(b->buf, alloc, 1);
usr.sbin/smtpd/rfc5322.c
236
b->buf = buf;
usr.sbin/smtpd/rfc5322.c
237
b->bufsz = alloc;
usr.sbin/smtpd/rfc5322.c
243
buf_grow(struct buf *b, size_t sz)
usr.sbin/smtpd/rfc5322.c
245
if (SIZE_T_MAX - b->buflen <= sz) {
usr.sbin/smtpd/rfc5322.c
250
return buf_alloc(b, b->buflen + sz);
usr.sbin/smtpd/rfc5322.c
254
buf_cat(struct buf *b, const char *s)
usr.sbin/smtpd/rfc5322.c
258
if (buf_grow(b, len + 1) == -1)
usr.sbin/smtpd/rfc5322.c
261
(void)memmove(b->buf + b->buflen, s, len + 1);
usr.sbin/smtpd/rfc5322.c
262
b->buflen += len;
usr.sbin/smtpd/smtpd.c
858
setup_peers(struct mproc *a, struct mproc *b)
usr.sbin/smtpd/smtpd.c
868
if (imsg_compose(&a->imsgbuf, IMSG_SETUP_PEER, b->proc, b->pid, sp[0],
usr.sbin/smtpd/smtpd.c
874
if (imsg_compose(&b->imsgbuf, IMSG_SETUP_PEER, a->proc, a->pid, sp[1],
usr.sbin/smtpd/smtpd.c
877
if (imsgbuf_flush(&b->imsgbuf) == -1)
usr.sbin/smtpd/tree.c
246
treeentry_cmp(struct treeentry *a, struct treeentry *b)
usr.sbin/smtpd/tree.c
248
if (a->id < b->id)
usr.sbin/smtpd/tree.c
250
if (a->id > b->id)
usr.sbin/smtpd/waitq.c
43
waitq_cmp(struct waitq *a, struct waitq *b)
usr.sbin/smtpd/waitq.c
45
if (a->tag < b->tag)
usr.sbin/smtpd/waitq.c
47
if (a->tag > b->tag)
usr.sbin/snmpd/smi.c
592
smi_oid_cmp(struct oid *a, struct oid *b)
usr.sbin/snmpd/smi.c
594
return ober_oid_cmp(&a->o_id, &b->o_id);
usr.sbin/snmpd/smi.c
600
smi_key_cmp(struct oid *a, struct oid *b)
usr.sbin/snmpd/smi.c
602
if (a->o_name == NULL || b->o_name == NULL)
usr.sbin/snmpd/smi.c
604
return (strcasecmp(a->o_name, b->o_name));
usr.sbin/syslogd/ringbuf.c
29
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/syslogd/syslogd.c
113
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.sbin/syslogd/syslogd.c
114
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/tcpdump/interface.h
72
#define min(a,b) ((a)>(b)?(b):(a))
usr.sbin/tcpdump/interface.h
75
#define max(a,b) ((b)>(a)?(b):(a))
usr.sbin/tcpdump/nfsfh.h
53
#define dev_eq(a,b) ((a.Minor == b.Minor) && (a.Major == b.Major))
usr.sbin/tcpdump/nfsfh.h
64
#define fsid_eq(a,b) ((a.fsid_code == b.fsid_code) &&\
usr.sbin/tcpdump/nfsfh.h
65
dev_eq(a.Fsid_dev, b.Fsid_dev))
usr.sbin/tcpdump/parsenfsfh.c
78
#define make_uint32(msb,b,c,lsb)\
usr.sbin/tcpdump/parsenfsfh.c
79
((lsb) + ((c)<<8) + ((b)<<16) + ((msb)<<24))
usr.sbin/tcpdump/parsenfsfh.c
81
#define make_uint24(msb,b, lsb)\
usr.sbin/tcpdump/parsenfsfh.c
82
((lsb) + ((b)<<8) + ((msb)<<16))
usr.sbin/tcpdump/parsenfsfh.c
89
#define make_uint48(msb,b,c,d,e,lsb)\
usr.sbin/tcpdump/parsenfsfh.c
90
((lsb) + ((e)<<8) + ((d)<<16) + ((c)<<24) + ((b)<<32) + ((msb)<<40))
usr.sbin/tcpdump/parsenfsfh.c
93
#define make_uint48(msb,b,c,d,e,lsb)\
usr.sbin/tcpdump/pf_print_state.c
323
int i = 31, j = 0, b = 0;
usr.sbin/tcpdump/pf_print_state.c
327
b += 32;
usr.sbin/tcpdump/pf_print_state.c
333
b++;
usr.sbin/tcpdump/pf_print_state.c
335
return (b);
usr.sbin/tcpdump/pfctl_osfp.c
39
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
usr.sbin/tcpdump/print-domain.c
101
int bitlen, slen, b;
usr.sbin/tcpdump/print-domain.c
114
for (bitp = cp + 1, b = bitlen; bitp < lim && b > 7; b -= 8, bitp++) {
usr.sbin/tcpdump/print-domain.c
118
if (b > 4) {
usr.sbin/tcpdump/print-domain.c
121
printf("%02x", tc & (0xff << (8 - b)));
usr.sbin/tcpdump/print-domain.c
122
} else if (b > 0) {
usr.sbin/tcpdump/print-domain.c
125
printf("%1x", ((tc >> 4) & 0x0f) & (0x0f << (4 - b)));
usr.sbin/tcpdump/print-dvmrp.c
313
u_char b[4];
usr.sbin/tcpdump/print-dvmrp.c
323
GET_ADDR(prune_timer.b);
usr.sbin/tcpdump/print-nsh.c
281
nsh_print_bytes(const void *b, u_int l)
usr.sbin/tcpdump/print-nsh.c
283
const uint8_t *p = b;
usr.sbin/tcpdump/print-ofp.c
625
uint8_t *b;
usr.sbin/tcpdump/print-ofp.c
627
if (length < sizeof(*b)) {
usr.sbin/tcpdump/print-ofp.c
632
b = (uint8_t *)bp;
usr.sbin/tcpdump/print-ofp.c
634
printf("%#02x", ntohs(*b));
usr.sbin/tcpdump/print-ofp.c
636
printf("%u", ntohs(*b));
usr.sbin/tcpdump/print-ofp.c
639
bp += sizeof(*b);
usr.sbin/tcpdump/print-ofp.c
640
length -= sizeof(*b);
usr.sbin/tcpdump/print-pfsync.c
286
const struct pfsync_bus *b = bp;
usr.sbin/tcpdump/print-pfsync.c
291
endtime = ntohl(b->endtime);
usr.sbin/tcpdump/print-pfsync.c
297
switch (b->status) {
usr.sbin/tcpdump/print-pfsync.c
310
htonl(b->creatorid), endtime, min, sec, status);
usr.sbin/tcpdump/smb.h
40
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/unbound/daemon/cachedump.c
1023
dname_str(nm, b);
usr.sbin/unbound/daemon/cachedump.c
1024
if(!ssl_printf(ssl, "going up, lookup %s\n", b))
usr.sbin/unbound/daemon/cachedump.c
968
char b[LDNS_MAX_DOMAINLEN];
usr.sbin/unbound/daemon/cachedump.c
979
dname_str(nm, b);
usr.sbin/unbound/daemon/cachedump.c
981
"of %s\n", b))
usr.sbin/unbound/daemon/unbound.c
165
int replay_var_compare(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
usr.sbin/unbound/daemon/worker.c
2563
int context_query_cmp(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
usr.sbin/unbound/daemon/worker.c
2575
int codeline_cmp(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
usr.sbin/unbound/dns64/dns64.c
150
#define swap(t,a,b) do {t x = a; a = b; b = x;} while(0)
usr.sbin/unbound/dnstap/dnstap.c
340
dt_fill_buffer(sldns_buffer *b, ProtobufCBinaryData *p, protobuf_c_boolean *has)
usr.sbin/unbound/dnstap/dnstap.c
342
log_assert(b != NULL);
usr.sbin/unbound/dnstap/dnstap.c
343
p->len = sldns_buffer_limit(b);
usr.sbin/unbound/dnstap/dnstap.c
344
p->data = sldns_buffer_begin(b);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1728
int context_query_cmp(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1774
codeline_cmp(const void* a, const void* b)
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1776
return strcmp(a, b);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1779
int replay_var_compare(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
usr.sbin/unbound/edns-subnet/subnetmod.c
536
common_prefix(uint8_t *a, uint8_t *b, uint8_t net)
usr.sbin/unbound/edns-subnet/subnetmod.c
539
return !memcmp(a, b, n) && ((net % 8) == 0 || a[n] == b[n]);
usr.sbin/unbound/libunbound/context.c
121
int context_query_cmp(const void* a, const void* b)
usr.sbin/unbound/libunbound/context.c
123
if( *(int*)a < *(int*)b )
usr.sbin/unbound/libunbound/context.c
125
if( *(int*)a > *(int*)b )
usr.sbin/unbound/libunbound/context.h
212
int context_query_cmp(const void* a, const void* b);
usr.sbin/unbound/libunbound/libworker.c
1018
codeline_cmp(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
usr.sbin/unbound/libunbound/libworker.c
1024
int replay_var_compare(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
usr.sbin/unbound/services/authzone.c
317
struct auth_zone* b = (struct auth_zone*)z2;
usr.sbin/unbound/services/authzone.c
319
if(a->dclass != b->dclass) {
usr.sbin/unbound/services/authzone.c
320
if(a->dclass < b->dclass)
usr.sbin/unbound/services/authzone.c
326
return dname_lab_cmp(a->name, a->namelabs, b->name, b->namelabs, &m);
usr.sbin/unbound/services/authzone.c
332
struct auth_data* b = (struct auth_data*)z2;
usr.sbin/unbound/services/authzone.c
335
return dname_canon_lab_cmp(a->name, a->namelabs, b->name,
usr.sbin/unbound/services/authzone.c
336
b->namelabs, &m);
usr.sbin/unbound/services/authzone.c
344
struct auth_xfer* b = (struct auth_xfer*)z2;
usr.sbin/unbound/services/authzone.c
346
if(a->dclass != b->dclass) {
usr.sbin/unbound/services/authzone.c
347
if(a->dclass < b->dclass)
usr.sbin/unbound/services/authzone.c
353
return dname_lab_cmp(a->name, a->namelabs, b->name, b->namelabs, &m);
usr.sbin/unbound/services/authzone.c
7214
str_find_first_of_chars(char* s, char a, char b)
usr.sbin/unbound/services/authzone.c
7217
char* rb = strchr(s, b);
usr.sbin/unbound/services/authzone.c
7339
compare_serial(uint32_t a, uint32_t b)
usr.sbin/unbound/services/authzone.c
7343
if (a == b) {
usr.sbin/unbound/services/authzone.c
7345
} else if ((a < b && b - a < cutoff) || (a > b && a - b > cutoff)) {
usr.sbin/unbound/services/authzone.h
710
int compare_serial(uint32_t a, uint32_t b);
usr.sbin/unbound/services/localzone.c
148
struct local_zone* b = (struct local_zone*)z2;
usr.sbin/unbound/services/localzone.c
150
if(a->dclass != b->dclass) {
usr.sbin/unbound/services/localzone.c
151
if(a->dclass < b->dclass)
usr.sbin/unbound/services/localzone.c
155
return dname_lab_cmp(a->name, a->namelabs, b->name, b->namelabs, &m);
usr.sbin/unbound/services/localzone.c
162
struct local_data* b = (struct local_data*)d2;
usr.sbin/unbound/services/localzone.c
164
return dname_canon_lab_cmp(a->name, a->namelabs, b->name,
usr.sbin/unbound/services/localzone.c
165
b->namelabs, &m);
usr.sbin/unbound/services/mesh.c
164
struct mesh_state* b = (struct mesh_state*)bp;
usr.sbin/unbound/services/mesh.c
167
if(a->unique < b->unique)
usr.sbin/unbound/services/mesh.c
169
if(a->unique > b->unique)
usr.sbin/unbound/services/mesh.c
172
if(a->s.is_priming && !b->s.is_priming)
usr.sbin/unbound/services/mesh.c
174
if(!a->s.is_priming && b->s.is_priming)
usr.sbin/unbound/services/mesh.c
177
if(a->s.is_valrec && !b->s.is_valrec)
usr.sbin/unbound/services/mesh.c
179
if(!a->s.is_valrec && b->s.is_valrec)
usr.sbin/unbound/services/mesh.c
182
if((a->s.query_flags&BIT_RD) && !(b->s.query_flags&BIT_RD))
usr.sbin/unbound/services/mesh.c
184
if(!(a->s.query_flags&BIT_RD) && (b->s.query_flags&BIT_RD))
usr.sbin/unbound/services/mesh.c
187
if((a->s.query_flags&BIT_CD) && !(b->s.query_flags&BIT_CD))
usr.sbin/unbound/services/mesh.c
189
if(!(a->s.query_flags&BIT_CD) && (b->s.query_flags&BIT_CD))
usr.sbin/unbound/services/mesh.c
192
cmp = query_info_compare(&a->s.qinfo, &b->s.qinfo);
usr.sbin/unbound/services/mesh.c
195
return client_info_compare(a->s.client_info, b->s.client_info);
usr.sbin/unbound/services/mesh.c
202
struct mesh_state_ref* b = (struct mesh_state_ref*)bp;
usr.sbin/unbound/services/mesh.c
203
return mesh_state_compare(a->s, b->s);
usr.sbin/unbound/services/view.c
52
struct view* b = (struct view*)v2;
usr.sbin/unbound/services/view.c
54
return strcmp(a->name, b->name);
usr.sbin/unbound/sldns/parse.c
280
sldns_bget_token(sldns_buffer *b, char *token, const char *delim, size_t limit)
usr.sbin/unbound/sldns/parse.c
282
return sldns_bget_token_par(b, token, delim, limit, NULL, NULL);
usr.sbin/unbound/sldns/parse.c
286
sldns_bget_token_par(sldns_buffer *b, char *token, const char *delim,
usr.sbin/unbound/sldns/parse.c
315
while ((c = sldns_bgetc(b)) != EOF) {
usr.sbin/unbound/sldns/parse.c
426
sldns_bskipcs(b, del+1);
usr.sbin/unbound/sldns/parse.c
427
else sldns_bskipcs(b, del);
usr.sbin/unbound/sldns/parse.c
492
sldns_bget_keyword_data(sldns_buffer *b, const char *keyword, const char *k_del, char
usr.sbin/unbound/sldns/parse.c
505
i = sldns_bget_token(b, fkeyword, k_del, data_limit);
usr.sbin/unbound/sldns/parse.c
516
i = sldns_bget_token(b, data, d_del, 0);
usr.sbin/unbound/sldns/parse.h
140
ssize_t sldns_bget_keyword_data(struct sldns_buffer *b, const char *keyword, const char *k_del, char *data, const char *d_del, size_t data_limit);
usr.sbin/unbound/sldns/parse.h
87
ssize_t sldns_bget_token_par(struct sldns_buffer *b, char *token, const char *delim, size_t limit, int* par, const char* skipw);
usr.sbin/unbound/sldns/parse.h
99
ssize_t sldns_bget_token(struct sldns_buffer *b, char *token, const char *delim, size_t limit);
usr.sbin/unbound/sldns/str2wire.c
1311
sldns_network_uint16_cmp(const void *a, const void *b)
usr.sbin/unbound/sldns/str2wire.c
1313
return ((int)sldns_read_uint16(a)) - ((int)sldns_read_uint16(b));
usr.sbin/unbound/sldns/str2wire.c
2718
unsigned int a, b, c, d;
usr.sbin/unbound/sldns/str2wire.c
2724
if (sscanf(str, "%4x:%4x:%4x:%4x%n", &a, &b, &c, &d, &l) != 4 ||
usr.sbin/unbound/sldns/str2wire.c
2730
shorts[1] = htons(b);
usr.sbin/unbound/sldns/str2wire.c
2740
unsigned int a, b, c, d, e, f;
usr.sbin/unbound/sldns/str2wire.c
2746
&a, &b, &c, &d, &e, &f, &l) != 6 ||
usr.sbin/unbound/sldns/str2wire.c
2750
rd[1] = b;
usr.sbin/unbound/sldns/str2wire.c
2761
unsigned int a, b, c, d, e, f, g, h;
usr.sbin/unbound/sldns/str2wire.c
2767
&a, &b, &c, &d, &e, &f, &g, &h, &l) != 8 ||
usr.sbin/unbound/sldns/str2wire.c
2771
rd[1] = b;
usr.sbin/unbound/sldns/str2wire.c
630
static int sldns_str2wire_svcparam_key_cmp(const void *a, const void *b)
usr.sbin/unbound/sldns/str2wire.c
633
- sldns_read_uint16(*(uint8_t**) b);
usr.sbin/unbound/smallapp/unbound-anchor.c
1242
BIO* b = NULL;
usr.sbin/unbound/smallapp/unbound-anchor.c
1244
b = data->ctag;
usr.sbin/unbound/smallapp/unbound-anchor.c
1246
b = data->calgo;
usr.sbin/unbound/smallapp/unbound-anchor.c
1248
b = data->cdigtype;
usr.sbin/unbound/smallapp/unbound-anchor.c
1250
b = data->cdigest;
usr.sbin/unbound/smallapp/unbound-anchor.c
1251
return b;
usr.sbin/unbound/smallapp/unbound-anchor.c
1265
BIO* b = NULL;
usr.sbin/unbound/smallapp/unbound-anchor.c
1288
b = xml_selectbio(data, data->tag);
usr.sbin/unbound/smallapp/unbound-anchor.c
1289
if(b) {
usr.sbin/unbound/smallapp/unbound-anchor.c
1290
if(BIO_write(b, s, len) < 0) {
usr.sbin/unbound/smallapp/unbound-anchor.c
1446
BIO* b;
usr.sbin/unbound/smallapp/unbound-anchor.c
1472
b = xml_selectbio(data, data->tag);
usr.sbin/unbound/smallapp/unbound-anchor.c
1473
if(b) {
usr.sbin/unbound/smallapp/unbound-anchor.c
1475
(void)BIO_reset(b);
usr.sbin/unbound/smallapp/unbound-anchor.c
1481
xml_append_str(BIO* b, const char* s)
usr.sbin/unbound/smallapp/unbound-anchor.c
1483
if(BIO_write(b, s, (int)strlen(s)) < 0) {
usr.sbin/unbound/smallapp/unbound-anchor.c
1491
xml_append_bio(BIO* b, BIO* a)
usr.sbin/unbound/smallapp/unbound-anchor.c
1507
if(BIO_write(b, z, len) < 0) {
usr.sbin/unbound/smallapp/unbound-host.c
149
uint8_t b = ((uint8_t*)&addr)[i];
usr.sbin/unbound/smallapp/unbound-host.c
150
*p++ = hex[ (b&0x0f) ];
usr.sbin/unbound/smallapp/unbound-host.c
152
*p++ = hex[ (b&0xf0) >> 4 ];
usr.sbin/unbound/smallapp/worker_cb.c
181
int context_query_cmp(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
usr.sbin/unbound/smallapp/worker_cb.c
227
codeline_cmp(const void* a, const void* b)
usr.sbin/unbound/smallapp/worker_cb.c
229
return strcmp(a, b);
usr.sbin/unbound/smallapp/worker_cb.c
232
int replay_var_compare(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
usr.sbin/unbound/testcode/doqclient.c
2674
int context_query_cmp(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
usr.sbin/unbound/testcode/doqclient.c
2720
codeline_cmp(const void* a, const void* b)
usr.sbin/unbound/testcode/doqclient.c
2722
return strcmp(a, b);
usr.sbin/unbound/testcode/doqclient.c
2725
int replay_var_compare(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
usr.sbin/unbound/testcode/fake_event.c
1005
comm_base_delete(struct comm_base* b)
usr.sbin/unbound/testcode/fake_event.c
1007
struct replay_runtime* runtime = (struct replay_runtime*)b;
usr.sbin/unbound/testcode/fake_event.c
1037
comm_base_timept(struct comm_base* b, time_t** tt, struct timeval** tv)
usr.sbin/unbound/testcode/fake_event.c
1039
struct replay_runtime* runtime = (struct replay_runtime*)b;
usr.sbin/unbound/testcode/fake_event.c
1045
comm_base_dispatch(struct comm_base* b)
usr.sbin/unbound/testcode/fake_event.c
1047
struct replay_runtime* runtime = (struct replay_runtime*)b;
usr.sbin/unbound/testcode/fake_event.c
1055
comm_base_exit(struct comm_base* b)
usr.sbin/unbound/testcode/fake_event.c
1057
struct replay_runtime* runtime = (struct replay_runtime*)b;
usr.sbin/unbound/testcode/fake_event.c
1632
int pending_cmp(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
usr.sbin/unbound/testcode/fake_event.c
1638
int serviced_cmp(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
usr.sbin/unbound/testcode/fake_event.c
1644
int reuse_cmp(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
usr.sbin/unbound/testcode/fake_event.c
1650
int reuse_id_cmp(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
usr.sbin/unbound/testcode/fake_event.c
1718
void comm_base_set_slow_accept_handlers(struct comm_base* ATTR_UNUSED(b),
usr.sbin/unbound/testcode/fake_event.c
1727
struct ub_event_base* comm_base_internal(struct comm_base* ATTR_UNUSED(b))
usr.sbin/unbound/testcode/replay.c
553
replay_var_compare(const void* a, const void* b)
usr.sbin/unbound/testcode/replay.c
556
struct replay_var* y = (struct replay_var*)b;
usr.sbin/unbound/testcode/replay.h
432
int replay_var_compare(const void* a, const void* b);
usr.sbin/unbound/testcode/signit.c
132
int b;
usr.sbin/unbound/testcode/signit.c
155
b = ldns_key_list_push_key(keys, k);
usr.sbin/unbound/testcode/signit.c
156
assert(b);
usr.sbin/unbound/testcode/signit.c
170
int b;
usr.sbin/unbound/testcode/signit.c
188
b = ldns_rr_list_push_rr(list, rr);
usr.sbin/unbound/testcode/signit.c
189
assert(b);
usr.sbin/unbound/testcode/testpkts.c
1452
char* b = strstr(pstr, "; EDNS");
usr.sbin/unbound/testcode/testpkts.c
1453
if( (a&&!b) || (b&&!a) ) {
usr.sbin/unbound/testcode/unitdname.c
52
dname_to_buf(sldns_buffer* b, const char* str)
usr.sbin/unbound/testcode/unitdname.c
55
size_t len = sldns_buffer_capacity(b);
usr.sbin/unbound/testcode/unitdname.c
56
sldns_buffer_clear(b);
usr.sbin/unbound/testcode/unitdname.c
57
e = sldns_str2wire_dname_buf(str, sldns_buffer_begin(b), &len);
usr.sbin/unbound/testcode/unitdname.c
61
sldns_buffer_set_position(b, len);
usr.sbin/unbound/testcode/unitdname.c
62
sldns_buffer_flip(b);
usr.sbin/unbound/testcode/unitdname.c
63
return b;
usr.sbin/unbound/testcode/unitldns.c
100
err = sldns_str2wire_rr_buf(txt_out, b, &len, NULL, 3600,
usr.sbin/unbound/testcode/unitldns.c
108
buf_to_hex(b, len, wire2, bufs);
usr.sbin/unbound/testcode/unitldns.c
54
buf_to_hex(uint8_t* b, size_t blen, char* s, size_t slen)
usr.sbin/unbound/testcode/unitldns.c
61
s[i*2] = h[(b[i]&0xf0)>>4];
usr.sbin/unbound/testcode/unitldns.c
62
s[i*2+1] = h[b[i]&0x0f];
usr.sbin/unbound/testcode/unitldns.c
79
uint8_t b[65536];
usr.sbin/unbound/testcode/unitldns.c
83
len = sizeof(b);
usr.sbin/unbound/testcode/unitldns.c
84
err = sldns_str2wire_rr_buf(txt_in, b, &len, NULL, 3600,
usr.sbin/unbound/testcode/unitldns.c
92
buf_to_hex(b, len, wire1, bufs);
usr.sbin/unbound/testcode/unitldns.c
95
err = sldns_wire2str_rr_buf(b, len, txt_out, bufs);
usr.sbin/unbound/testcode/unitldns.c
99
len = sizeof(b);
usr.sbin/unbound/testcode/unitmain.c
296
struct sockaddr_storage a, b;
usr.sbin/unbound/testcode/unitmain.c
298
socklen_t blen = (socklen_t)sizeof(b);
usr.sbin/unbound/testcode/unitmain.c
300
unit_assert(ipstrtoaddr("127.255.255.255", 53, &b, &blen));
usr.sbin/unbound/testcode/unitmain.c
301
unit_assert(sockaddr_cmp_addr(&a, alen, &b, blen) < 0);
usr.sbin/unbound/testcode/unitmain.c
302
unit_assert(sockaddr_cmp_addr(&b, blen, &a, alen) > 0);
usr.sbin/unbound/testcode/unitmain.c
304
unit_assert(sockaddr_cmp_addr(&b, blen, &b, blen) == 0);
usr.sbin/unbound/testcode/unitmain.c
306
unit_assert(sockaddr_cmp_addr(&a, alen, &b, blen) > 0);
usr.sbin/unbound/testcode/unitmain.c
307
unit_assert(sockaddr_cmp_addr(&b, blen, &a, alen) < 0);
usr.sbin/unbound/testcode/unitmain.c
309
unit_assert(ipstrtoaddr("2001:3578:ffeb::99", 53, &b, &blen));
usr.sbin/unbound/testcode/unitmain.c
310
unit_assert(sockaddr_cmp_addr(&b, blen, &b, blen) == 0);
usr.sbin/unbound/testcode/unitmain.c
311
unit_assert(sockaddr_cmp_addr(&a, alen, &b, blen) < 0);
usr.sbin/unbound/testcode/unitmain.c
312
unit_assert(sockaddr_cmp_addr(&b, blen, &a, alen) > 0);
usr.sbin/unbound/util/config_file.c
1044
size_t f=cfg->var/(size_t)1000000, b=cfg->var%(size_t)1000000; \
usr.sbin/unbound/util/config_file.c
1045
snprintf(buf, len, "%u%6.6u", (unsigned)f, (unsigned)b); \
usr.sbin/unbound/util/config_file.c
2753
uint8_t b = ad[i];
usr.sbin/unbound/util/config_file.c
2754
*p++ = hex[ (b&0x0f) ];
usr.sbin/unbound/util/config_file.c
2756
*p++ = hex[ (b&0xf0) >> 4 ];
usr.sbin/unbound/util/data/msgreply.c
581
reply_info_sortref_cmp(const void* a, const void* b)
usr.sbin/unbound/util/data/msgreply.c
584
struct rrset_ref* y = (struct rrset_ref*)b;
usr.sbin/unbound/util/fptr_wlist.h
420
int codeline_cmp(const void* a, const void* b);
usr.sbin/unbound/util/fptr_wlist.h
423
int replay_var_compare(const void* a, const void* b);
usr.sbin/unbound/util/mini_event.c
395
int mini_ev_cmp(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
usr.sbin/unbound/util/mini_event.c
55
int mini_ev_cmp(const void* a, const void* b)
usr.sbin/unbound/util/mini_event.c
58
const struct event *f = (const struct event*)b;
usr.sbin/unbound/util/mini_event.h
196
int mini_ev_cmp(const void* a, const void* b);
usr.sbin/unbound/util/module.c
234
char b[1024];
usr.sbin/unbound/util/module.c
239
snprintf(b, sizeof(b), "%s %s", str, buf);
usr.sbin/unbound/util/module.c
240
errinf(qstate, b);
usr.sbin/unbound/util/netevent.c
206
struct comm_base* b = (struct comm_base*)calloc(1,
usr.sbin/unbound/util/netevent.c
210
if(!b)
usr.sbin/unbound/util/netevent.c
212
b->eb = (struct internal_base*)calloc(1, sizeof(struct internal_base));
usr.sbin/unbound/util/netevent.c
213
if(!b->eb) {
usr.sbin/unbound/util/netevent.c
214
free(b);
usr.sbin/unbound/util/netevent.c
217
b->eb->base = ub_default_event_base(sigs, &b->eb->secs, &b->eb->now);
usr.sbin/unbound/util/netevent.c
218
if(!b->eb->base) {
usr.sbin/unbound/util/netevent.c
219
free(b->eb);
usr.sbin/unbound/util/netevent.c
220
free(b);
usr.sbin/unbound/util/netevent.c
223
ub_comm_base_now(b);
usr.sbin/unbound/util/netevent.c
224
ub_get_event_sys(b->eb->base, &evnm, &evsys, &evmethod);
usr.sbin/unbound/util/netevent.c
226
return b;
usr.sbin/unbound/util/netevent.c
232
struct comm_base* b = (struct comm_base*)calloc(1,
usr.sbin/unbound/util/netevent.c
234
if(!b)
usr.sbin/unbound/util/netevent.c
236
b->eb = (struct internal_base*)calloc(1, sizeof(struct internal_base));
usr.sbin/unbound/util/netevent.c
237
if(!b->eb) {
usr.sbin/unbound/util/netevent.c
238
free(b);
usr.sbin/unbound/util/netevent.c
241
b->eb->base = base;
usr.sbin/unbound/util/netevent.c
242
ub_comm_base_now(b);
usr.sbin/unbound/util/netevent.c
243
return b;
usr.sbin/unbound/util/netevent.c
247
comm_base_delete(struct comm_base* b)
usr.sbin/unbound/util/netevent.c
249
if(!b)
usr.sbin/unbound/util/netevent.c
251
if(b->eb->slow_accept_enabled) {
usr.sbin/unbound/util/netevent.c
252
if(ub_event_del(b->eb->slow_accept) != 0) {
usr.sbin/unbound/util/netevent.c
255
ub_event_free(b->eb->slow_accept);
usr.sbin/unbound/util/netevent.c
257
ub_event_base_free(b->eb->base);
usr.sbin/unbound/util/netevent.c
258
b->eb->base = NULL;
usr.sbin/unbound/util/netevent.c
259
free(b->eb);
usr.sbin/unbound/util/netevent.c
260
free(b);
usr.sbin/unbound/util/netevent.c
264
comm_base_delete_no_base(struct comm_base* b)
usr.sbin/unbound/util/netevent.c
266
if(!b)
usr.sbin/unbound/util/netevent.c
268
if(b->eb->slow_accept_enabled) {
usr.sbin/unbound/util/netevent.c
269
if(ub_event_del(b->eb->slow_accept) != 0) {
usr.sbin/unbound/util/netevent.c
272
ub_event_free(b->eb->slow_accept);
usr.sbin/unbound/util/netevent.c
274
b->eb->base = NULL;
usr.sbin/unbound/util/netevent.c
275
free(b->eb);
usr.sbin/unbound/util/netevent.c
276
free(b);
usr.sbin/unbound/util/netevent.c
280
comm_base_timept(struct comm_base* b, time_t** tt, struct timeval** tv)
usr.sbin/unbound/util/netevent.c
282
*tt = &b->eb->secs;
usr.sbin/unbound/util/netevent.c
283
*tv = &b->eb->now;
usr.sbin/unbound/util/netevent.c
287
comm_base_dispatch(struct comm_base* b)
usr.sbin/unbound/util/netevent.c
290
retval = ub_event_base_dispatch(b->eb->base);
usr.sbin/unbound/util/netevent.c
2966
struct comm_base* b = (struct comm_base*)arg;
usr.sbin/unbound/util/netevent.c
2968
if(b->start_accept) {
usr.sbin/unbound/util/netevent.c
297
void comm_base_exit(struct comm_base* b)
usr.sbin/unbound/util/netevent.c
2970
fptr_ok(fptr_whitelist_start_accept(b->start_accept));
usr.sbin/unbound/util/netevent.c
2971
(*b->start_accept)(b->cb_arg);
usr.sbin/unbound/util/netevent.c
2972
b->eb->slow_accept_enabled = 0;
usr.sbin/unbound/util/netevent.c
299
if(ub_event_base_loopexit(b->eb->base) != 0) {
usr.sbin/unbound/util/netevent.c
3007
struct comm_base* b = c->ev->base;
usr.sbin/unbound/util/netevent.c
3011
ub_comm_base_now(b);
usr.sbin/unbound/util/netevent.c
3012
if(b->eb->last_slow_log+SLOW_LOG_TIME <=
usr.sbin/unbound/util/netevent.c
3013
b->eb->secs) {
usr.sbin/unbound/util/netevent.c
3014
b->eb->last_slow_log = b->eb->secs;
usr.sbin/unbound/util/netevent.c
3021
b->eb->slow_accept_enabled = 1;
usr.sbin/unbound/util/netevent.c
3023
b->stop_accept));
usr.sbin/unbound/util/netevent.c
3024
(*b->stop_accept)(b->cb_arg);
usr.sbin/unbound/util/netevent.c
3028
b->eb->slow_accept = ub_event_new(b->eb->base,
usr.sbin/unbound/util/netevent.c
3030
comm_base_handle_slow_accept, b);
usr.sbin/unbound/util/netevent.c
3031
if(b->eb->slow_accept == NULL) {
usr.sbin/unbound/util/netevent.c
3036
else if(ub_event_add(b->eb->slow_accept, &tv)
usr.sbin/unbound/util/netevent.c
304
void comm_base_set_slow_accept_handlers(struct comm_base* b,
usr.sbin/unbound/util/netevent.c
307
b->stop_accept = stop_acc;
usr.sbin/unbound/util/netevent.c
3078
static long win_bio_cb(BIO *b, int oper, const char* ATTR_UNUSED(argp),
usr.sbin/unbound/util/netevent.c
308
b->start_accept = start_acc;
usr.sbin/unbound/util/netevent.c
309
b->cb_arg = arg;
usr.sbin/unbound/util/netevent.c
3100
BIO_get_callback_arg(b), UB_EV_READ);
usr.sbin/unbound/util/netevent.c
3106
BIO_get_callback_arg(b), UB_EV_WRITE);
usr.sbin/unbound/util/netevent.c
312
struct ub_event_base* comm_base_internal(struct comm_base* b)
usr.sbin/unbound/util/netevent.c
314
return b->eb->base;
usr.sbin/unbound/util/netevent.c
472
struct comm_base* b = c->ev->base;
usr.sbin/unbound/util/netevent.c
473
if(b->eb->last_writewait_log+SLOW_LOG_TIME <=
usr.sbin/unbound/util/netevent.c
474
b->eb->secs) {
usr.sbin/unbound/util/netevent.c
475
b->eb->last_writewait_log = b->eb->secs;
usr.sbin/unbound/util/netevent.c
787
struct comm_base* b = c->ev->base;
usr.sbin/unbound/util/netevent.c
788
if(b->eb->last_writewait_log+SLOW_LOG_TIME <=
usr.sbin/unbound/util/netevent.c
789
b->eb->secs) {
usr.sbin/unbound/util/netevent.c
790
b->eb->last_writewait_log = b->eb->secs;
usr.sbin/unbound/util/netevent.h
504
void comm_base_delete_no_base(struct comm_base* b);
usr.sbin/unbound/util/netevent.h
511
void comm_base_delete(struct comm_base* b);
usr.sbin/unbound/util/netevent.h
520
void comm_base_timept(struct comm_base* b, time_t** tt, struct timeval** tv);
usr.sbin/unbound/util/netevent.h
526
void comm_base_dispatch(struct comm_base* b);
usr.sbin/unbound/util/netevent.h
532
void comm_base_exit(struct comm_base* b);
usr.sbin/unbound/util/netevent.h
542
void comm_base_set_slow_accept_handlers(struct comm_base* b,
usr.sbin/unbound/util/netevent.h
550
struct ub_event_base* comm_base_internal(struct comm_base* b);
usr.sbin/unbound/util/rfc_1982.c
45
compare_1982(uint32_t a, uint32_t b)
usr.sbin/unbound/util/rfc_1982.c
50
if (a == b) {
usr.sbin/unbound/util/rfc_1982.c
52
} else if ((a < b && b - a < cutoff) || (a > b && a - b > cutoff)) {
usr.sbin/unbound/util/rfc_1982.c
60
subtract_1982(uint32_t a, uint32_t b)
usr.sbin/unbound/util/rfc_1982.c
65
if(a == b)
usr.sbin/unbound/util/rfc_1982.c
67
if(a < b && b - a < cutoff) {
usr.sbin/unbound/util/rfc_1982.c
68
return b-a;
usr.sbin/unbound/util/rfc_1982.c
70
if(a > b && a - b > cutoff) {
usr.sbin/unbound/util/rfc_1982.c
71
return ((uint32_t)0xffffffff) - (a-b-1);
usr.sbin/unbound/util/rfc_1982.h
51
int compare_1982(uint32_t a, uint32_t b);
usr.sbin/unbound/util/rfc_1982.h
61
uint32_t subtract_1982(uint32_t a, uint32_t b);
usr.sbin/unbound/util/siphash.c
103
uint64_t b = ((uint64_t)inlen) << 56;
usr.sbin/unbound/util/siphash.c
129
b |= ((uint64_t)in[6]) << 48;
usr.sbin/unbound/util/siphash.c
134
b |= ((uint64_t)in[5]) << 40;
usr.sbin/unbound/util/siphash.c
139
b |= ((uint64_t)in[4]) << 32;
usr.sbin/unbound/util/siphash.c
144
b |= ((uint64_t)in[3]) << 24;
usr.sbin/unbound/util/siphash.c
149
b |= ((uint64_t)in[2]) << 16;
usr.sbin/unbound/util/siphash.c
154
b |= ((uint64_t)in[1]) << 8;
usr.sbin/unbound/util/siphash.c
159
b |= ((uint64_t)in[0]);
usr.sbin/unbound/util/siphash.c
165
v3 ^= b;
usr.sbin/unbound/util/siphash.c
171
v0 ^= b;
usr.sbin/unbound/util/siphash.c
182
b = v0 ^ v1 ^ v2 ^ v3;
usr.sbin/unbound/util/siphash.c
183
U64TO8_LE(out, b);
usr.sbin/unbound/util/siphash.c
194
b = v0 ^ v1 ^ v2 ^ v3;
usr.sbin/unbound/util/siphash.c
195
U64TO8_LE(out + 8, b);
usr.sbin/unbound/util/siphash.c
38
#define ROTL(x, b) (uint64_t)(((x) << (b)) | ((x) >> (64 - (b))))
usr.sbin/unbound/util/storage/lookup3.c
1012
uint8_t qa[MAXLEN+1], qb[MAXLEN+2], *a = &qa[0], *b = &qb[1];
usr.sbin/unbound/util/storage/lookup3.c
1036
for (l=0; l<hlen+1; ++l) {a[l] = b[l] = (uint8_t)0;}
usr.sbin/unbound/util/storage/lookup3.c
1041
b[i] ^= ((k+1)<<j);
usr.sbin/unbound/util/storage/lookup3.c
1042
b[i] ^= ((k+1)>>(8-j));
usr.sbin/unbound/util/storage/lookup3.c
1043
d[0] = hashlittle(b, hlen, m);
usr.sbin/unbound/util/storage/lookup3.c
1082
uint8_t buf[MAXLEN+20], *b;
usr.sbin/unbound/util/storage/lookup3.c
1148
for (h=0, b=buf+1; h<8; ++h, ++b)
usr.sbin/unbound/util/storage/lookup3.c
1153
for (j=0; j<i; ++j) *(b+j)=0;
usr.sbin/unbound/util/storage/lookup3.c
1156
ref = hashlittle(b, len, (uint32_t)1);
usr.sbin/unbound/util/storage/lookup3.c
1157
*(b+i)=(uint8_t)~0;
usr.sbin/unbound/util/storage/lookup3.c
1158
*(b-1)=(uint8_t)~0;
usr.sbin/unbound/util/storage/lookup3.c
1159
x = hashlittle(b, len, (uint32_t)1);
usr.sbin/unbound/util/storage/lookup3.c
1160
y = hashlittle(b, len, (uint32_t)1);
usr.sbin/unbound/util/storage/lookup3.c
173
#define mix(a,b,c) \
usr.sbin/unbound/util/storage/lookup3.c
175
a -= c; a ^= rot(c, 4); c += b; \
usr.sbin/unbound/util/storage/lookup3.c
176
b -= a; b ^= rot(a, 6); a += c; \
usr.sbin/unbound/util/storage/lookup3.c
177
c -= b; c ^= rot(b, 8); b += a; \
usr.sbin/unbound/util/storage/lookup3.c
178
a -= c; a ^= rot(c,16); c += b; \
usr.sbin/unbound/util/storage/lookup3.c
179
b -= a; b ^= rot(a,19); a += c; \
usr.sbin/unbound/util/storage/lookup3.c
180
c -= b; c ^= rot(b, 4); b += a; \
usr.sbin/unbound/util/storage/lookup3.c
208
#define final(a,b,c) \
usr.sbin/unbound/util/storage/lookup3.c
210
c ^= b; c -= rot(b,14); \
usr.sbin/unbound/util/storage/lookup3.c
212
b ^= a; b -= rot(a,25); \
usr.sbin/unbound/util/storage/lookup3.c
213
c ^= b; c -= rot(b,16); \
usr.sbin/unbound/util/storage/lookup3.c
215
b ^= a; b -= rot(a,14); \
usr.sbin/unbound/util/storage/lookup3.c
216
c ^= b; c -= rot(b,24); \
usr.sbin/unbound/util/storage/lookup3.c
237
uint32_t a,b,c;
usr.sbin/unbound/util/storage/lookup3.c
240
a = b = c = raninit + (((uint32_t)length)<<2) + initval;
usr.sbin/unbound/util/storage/lookup3.c
246
b += k[1];
usr.sbin/unbound/util/storage/lookup3.c
248
mix(a,b,c);
usr.sbin/unbound/util/storage/lookup3.c
259
case 2 : b+=k[1];
usr.sbin/unbound/util/storage/lookup3.c
263
final(a,b,c);
usr.sbin/unbound/util/storage/lookup3.c
290
uint32_t a,b,c;
usr.sbin/unbound/util/storage/lookup3.c
293
a = b = c = raninit + ((uint32_t)(length<<2)) + *pc;
usr.sbin/unbound/util/storage/lookup3.c
300
b += k[1];
usr.sbin/unbound/util/storage/lookup3.c
302
mix(a,b,c);
usr.sbin/unbound/util/storage/lookup3.c
313
case 2 : b+=k[1];
usr.sbin/unbound/util/storage/lookup3.c
317
final(a,b,c);
usr.sbin/unbound/util/storage/lookup3.c
324
*pc=c; *pb=b;
usr.sbin/unbound/util/storage/lookup3.c
358
uint32_t a,b,c; /* internal state */
usr.sbin/unbound/util/storage/lookup3.c
362
a = b = c = raninit + ((uint32_t)length) + initval;
usr.sbin/unbound/util/storage/lookup3.c
375
b += k[1];
usr.sbin/unbound/util/storage/lookup3.c
377
mix(a,b,c);
usr.sbin/unbound/util/storage/lookup3.c
396
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
397
case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
398
case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
399
case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
400
case 8 : b+=k[1]; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
401
case 7 : b+=k[1]&0xffffff; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
402
case 6 : b+=k[1]&0xffff; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
403
case 5 : b+=k[1]&0xff; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
416
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
426
case 8 : b+=k[1]; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
427
case 7 : b+=((uint32_t)k8[6])<<16;
usr.sbin/unbound/util/storage/lookup3.c
430
case 6 : b+=((uint32_t)k8[5])<<8;
usr.sbin/unbound/util/storage/lookup3.c
433
case 5 : b+=k8[4];
usr.sbin/unbound/util/storage/lookup3.c
457
b += k[2] + (((uint32_t)k[3])<<16);
usr.sbin/unbound/util/storage/lookup3.c
459
mix(a,b,c);
usr.sbin/unbound/util/storage/lookup3.c
469
b+=k[2]+(((uint32_t)k[3])<<16);
usr.sbin/unbound/util/storage/lookup3.c
476
b+=k[2]+(((uint32_t)k[3])<<16);
usr.sbin/unbound/util/storage/lookup3.c
482
case 8 : b+=k[2]+(((uint32_t)k[3])<<16);
usr.sbin/unbound/util/storage/lookup3.c
485
case 7 : b+=((uint32_t)k8[6])<<16;
usr.sbin/unbound/util/storage/lookup3.c
488
case 6 : b+=k[2];
usr.sbin/unbound/util/storage/lookup3.c
491
case 5 : b+=k8[4];
usr.sbin/unbound/util/storage/lookup3.c
516
b += k[4];
usr.sbin/unbound/util/storage/lookup3.c
517
b += ((uint32_t)k[5])<<8;
usr.sbin/unbound/util/storage/lookup3.c
518
b += ((uint32_t)k[6])<<16;
usr.sbin/unbound/util/storage/lookup3.c
519
b += ((uint32_t)k[7])<<24;
usr.sbin/unbound/util/storage/lookup3.c
524
mix(a,b,c);
usr.sbin/unbound/util/storage/lookup3.c
544
case 8 : b+=((uint32_t)k[7])<<24;
usr.sbin/unbound/util/storage/lookup3.c
547
case 7 : b+=((uint32_t)k[6])<<16;
usr.sbin/unbound/util/storage/lookup3.c
550
case 6 : b+=((uint32_t)k[5])<<8;
usr.sbin/unbound/util/storage/lookup3.c
553
case 5 : b+=k[4];
usr.sbin/unbound/util/storage/lookup3.c
571
final(a,b,c);
usr.sbin/unbound/util/storage/lookup3.c
593
uint32_t a,b,c; /* internal state */
usr.sbin/unbound/util/storage/lookup3.c
597
a = b = c = raninit + ((uint32_t)length) + *pc;
usr.sbin/unbound/util/storage/lookup3.c
611
b += k[1];
usr.sbin/unbound/util/storage/lookup3.c
613
mix(a,b,c);
usr.sbin/unbound/util/storage/lookup3.c
632
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
633
case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
634
case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
635
case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
636
case 8 : b+=k[1]; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
637
case 7 : b+=k[1]&0xffffff; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
638
case 6 : b+=k[1]&0xffff; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
639
case 5 : b+=k[1]&0xff; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
644
case 0 : *pc=c; *pb=b; return; /* zero length strings require no mixing */
usr.sbin/unbound/util/storage/lookup3.c
652
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
662
case 8 : b+=k[1]; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
663
case 7 : b+=((uint32_t)k8[6])<<16;
usr.sbin/unbound/util/storage/lookup3.c
666
case 6 : b+=((uint32_t)k8[5])<<8;
usr.sbin/unbound/util/storage/lookup3.c
669
case 5 : b+=k8[4];
usr.sbin/unbound/util/storage/lookup3.c
680
case 0 : *pc=c; *pb=b; return; /* zero length strings require no mixing */
usr.sbin/unbound/util/storage/lookup3.c
693
b += k[2] + (((uint32_t)k[3])<<16);
usr.sbin/unbound/util/storage/lookup3.c
695
mix(a,b,c);
usr.sbin/unbound/util/storage/lookup3.c
705
b+=k[2]+(((uint32_t)k[3])<<16);
usr.sbin/unbound/util/storage/lookup3.c
712
b+=k[2]+(((uint32_t)k[3])<<16);
usr.sbin/unbound/util/storage/lookup3.c
718
case 8 : b+=k[2]+(((uint32_t)k[3])<<16);
usr.sbin/unbound/util/storage/lookup3.c
721
case 7 : b+=((uint32_t)k8[6])<<16;
usr.sbin/unbound/util/storage/lookup3.c
724
case 6 : b+=k[2];
usr.sbin/unbound/util/storage/lookup3.c
727
case 5 : b+=k8[4];
usr.sbin/unbound/util/storage/lookup3.c
739
case 0 : *pc=c; *pb=b; return; /* zero length strings require no mixing */
usr.sbin/unbound/util/storage/lookup3.c
752
b += k[4];
usr.sbin/unbound/util/storage/lookup3.c
753
b += ((uint32_t)k[5])<<8;
usr.sbin/unbound/util/storage/lookup3.c
754
b += ((uint32_t)k[6])<<16;
usr.sbin/unbound/util/storage/lookup3.c
755
b += ((uint32_t)k[7])<<24;
usr.sbin/unbound/util/storage/lookup3.c
760
mix(a,b,c);
usr.sbin/unbound/util/storage/lookup3.c
780
case 8 : b+=((uint32_t)k[7])<<24;
usr.sbin/unbound/util/storage/lookup3.c
783
case 7 : b+=((uint32_t)k[6])<<16;
usr.sbin/unbound/util/storage/lookup3.c
786
case 6 : b+=((uint32_t)k[5])<<8;
usr.sbin/unbound/util/storage/lookup3.c
789
case 5 : b+=k[4];
usr.sbin/unbound/util/storage/lookup3.c
803
case 0 : *pc=c; *pb=b; return; /* zero length strings require no mixing */
usr.sbin/unbound/util/storage/lookup3.c
807
final(a,b,c);
usr.sbin/unbound/util/storage/lookup3.c
808
*pc=c; *pb=b;
usr.sbin/unbound/util/storage/lookup3.c
823
uint32_t a,b,c;
usr.sbin/unbound/util/storage/lookup3.c
827
a = b = c = raninit + ((uint32_t)length) + initval;
usr.sbin/unbound/util/storage/lookup3.c
840
b += k[1];
usr.sbin/unbound/util/storage/lookup3.c
842
mix(a,b,c);
usr.sbin/unbound/util/storage/lookup3.c
861
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
862
case 11: c+=k[2]&0xffffff00; b+=k[1]; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
863
case 10: c+=k[2]&0xffff0000; b+=k[1]; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
864
case 9 : c+=k[2]&0xff000000; b+=k[1]; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
865
case 8 : b+=k[1]; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
866
case 7 : b+=k[1]&0xffffff00; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
867
case 6 : b+=k[1]&0xffff0000; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
868
case 5 : b+=k[1]&0xff000000; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
881
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
891
case 8 : b+=k[1]; a+=k[0]; break;
usr.sbin/unbound/util/storage/lookup3.c
892
case 7 : b+=((uint32_t)k8[6])<<8;
usr.sbin/unbound/util/storage/lookup3.c
895
case 6 : b+=((uint32_t)k8[5])<<16;
usr.sbin/unbound/util/storage/lookup3.c
898
case 5 : b+=((uint32_t)k8[4])<<24;
usr.sbin/unbound/util/storage/lookup3.c
924
b += ((uint32_t)k[4])<<24;
usr.sbin/unbound/util/storage/lookup3.c
925
b += ((uint32_t)k[5])<<16;
usr.sbin/unbound/util/storage/lookup3.c
926
b += ((uint32_t)k[6])<<8;
usr.sbin/unbound/util/storage/lookup3.c
927
b += ((uint32_t)k[7]);
usr.sbin/unbound/util/storage/lookup3.c
932
mix(a,b,c);
usr.sbin/unbound/util/storage/lookup3.c
952
case 8 : b+=k[7];
usr.sbin/unbound/util/storage/lookup3.c
955
case 7 : b+=((uint32_t)k[6])<<8;
usr.sbin/unbound/util/storage/lookup3.c
958
case 6 : b+=((uint32_t)k[5])<<16;
usr.sbin/unbound/util/storage/lookup3.c
961
case 5 : b+=((uint32_t)k[4])<<24;
usr.sbin/unbound/util/storage/lookup3.c
979
final(a,b,c);
usr.sbin/unbound/util/ub_event.c
192
# define NATIVE_BITS(b) (b)
usr.sbin/unbound/util/ub_event.c
211
static const char* ub_ev_backend2str(int b)
usr.sbin/unbound/util/ub_event.c
213
switch(b) {
usr.sbin/unbound/util/ub_event.c
240
struct event_base* b = AS_EVENT_BASE(base);
usr.sbin/unbound/util/ub_event.c
244
if (!b)
usr.sbin/unbound/util/ub_event.c
245
b = (struct event_base*)ev_default_loop(EVFLAG_AUTO);
usr.sbin/unbound/util/ub_event.c
247
*m = ub_ev_backend2str(ev_backend((struct ev_loop*)b));
usr.sbin/unbound/util/ub_event.c
253
if (!b)
usr.sbin/unbound/util/ub_event.c
254
b = event_base_new();
usr.sbin/unbound/util/ub_event.c
255
*m = event_base_get_method(b);
usr.sbin/unbound/util/ub_event.c
259
(void)b;
usr.sbin/unbound/util/ub_event.c
262
if (b && b != AS_EVENT_BASE(base))
usr.sbin/unbound/util/ub_event.c
263
event_base_free(b);
usr.sbin/unbound/util/ub_event.c
80
# define NATIVE_BITS(b) ( \
usr.sbin/unbound/util/ub_event.c
81
(((b) & UB_EV_TIMEOUT) ? EV_TIMEOUT : 0) \
usr.sbin/unbound/util/ub_event.c
82
| (((b) & UB_EV_READ ) ? EV_READ : 0) \
usr.sbin/unbound/util/ub_event.c
83
| (((b) & UB_EV_WRITE ) ? EV_WRITE : 0) \
usr.sbin/unbound/util/ub_event.c
84
| (((b) & UB_EV_SIGNAL ) ? EV_SIGNAL : 0) \
usr.sbin/unbound/util/ub_event.c
85
| (((b) & UB_EV_PERSIST) ? EV_PERSIST : 0))
usr.sbin/unbound/util/ub_event.c
87
# define UB_EV_BITS(b) ( \
usr.sbin/unbound/util/ub_event.c
88
(((b) & EV_TIMEOUT) ? UB_EV_TIMEOUT : 0) \
usr.sbin/unbound/util/ub_event.c
89
| (((b) & EV_READ ) ? UB_EV_READ : 0) \
usr.sbin/unbound/util/ub_event.c
90
| (((b) & EV_WRITE ) ? UB_EV_WRITE : 0) \
usr.sbin/unbound/util/ub_event.c
91
| (((b) & EV_SIGNAL ) ? UB_EV_SIGNAL : 0) \
usr.sbin/unbound/util/ub_event.c
92
| (((b) & EV_PERSIST) ? UB_EV_PERSIST : 0))
usr.sbin/unbound/util/ub_event_pluggable.c
129
# define NATIVE_BITS(b) (b)
usr.sbin/unbound/util/ub_event_pluggable.c
422
static const char* ub_ev_backend2str_pluggable(int b)
usr.sbin/unbound/util/ub_event_pluggable.c
424
switch(b) {
usr.sbin/unbound/util/ub_event_pluggable.c
451
struct event_base* b = ub_libevent_get_event_base(ub_base);
usr.sbin/unbound/util/ub_event_pluggable.c
456
assert(b != NULL);
usr.sbin/unbound/util/ub_event_pluggable.c
462
*m = ub_ev_backend2str_pluggable(ev_backend((struct ev_loop*)b));
usr.sbin/unbound/util/ub_event_pluggable.c
468
*m = event_base_get_method(b);
usr.sbin/unbound/util/ub_event_pluggable.c
75
# define NATIVE_BITS(b) ( \
usr.sbin/unbound/util/ub_event_pluggable.c
76
(((b) & UB_EV_TIMEOUT) ? EV_TIMEOUT : 0) \
usr.sbin/unbound/util/ub_event_pluggable.c
77
| (((b) & UB_EV_READ ) ? EV_READ : 0) \
usr.sbin/unbound/util/ub_event_pluggable.c
78
| (((b) & UB_EV_WRITE ) ? EV_WRITE : 0) \
usr.sbin/unbound/util/ub_event_pluggable.c
79
| (((b) & UB_EV_SIGNAL ) ? EV_SIGNAL : 0) \
usr.sbin/unbound/util/ub_event_pluggable.c
80
| (((b) & UB_EV_PERSIST) ? EV_PERSIST : 0))
usr.sbin/unbound/util/ub_event_pluggable.c
82
# define UB_EV_BITS(b) ( \
usr.sbin/unbound/util/ub_event_pluggable.c
83
(((b) & EV_TIMEOUT) ? UB_EV_TIMEOUT : 0) \
usr.sbin/unbound/util/ub_event_pluggable.c
84
| (((b) & EV_READ ) ? UB_EV_READ : 0) \
usr.sbin/unbound/util/ub_event_pluggable.c
85
| (((b) & EV_WRITE ) ? UB_EV_WRITE : 0) \
usr.sbin/unbound/util/ub_event_pluggable.c
86
| (((b) & EV_SIGNAL ) ? UB_EV_SIGNAL : 0) \
usr.sbin/unbound/util/ub_event_pluggable.c
87
| (((b) & EV_PERSIST) ? UB_EV_PERSIST : 0))
usr.sbin/unbound/util/winsock_event.c
507
BOOL b=0;
usr.sbin/unbound/util/winsock_event.c
51
int mini_ev_cmp(const void* a, const void* b)
usr.sbin/unbound/util/winsock_event.c
531
l = sizeof(b);
usr.sbin/unbound/util/winsock_event.c
533
(void*)&b, &l) != 0)
usr.sbin/unbound/util/winsock_event.c
536
if(b) /* TCP accept socket */
usr.sbin/unbound/util/winsock_event.c
54
const struct event *f = (const struct event*)b;
usr.sbin/unbound/util/winsock_event.h
247
int mini_ev_cmp(const void* a, const void* b);
usr.sbin/unbound/validator/autotrust.c
1362
dnskey_compare_skip_revbit(uint8_t* a, size_t a_len, uint8_t* b, size_t b_len)
usr.sbin/unbound/validator/autotrust.c
1372
rdf2 = b[i];
usr.sbin/unbound/validator/autotrust.c
1387
ta_compare(struct autr_ta* a, uint16_t t, uint8_t* b, size_t b_len)
usr.sbin/unbound/validator/autotrust.c
1390
else if(!b) return -1;
usr.sbin/unbound/validator/autotrust.c
1398
a->dname_len), b, b_len);
usr.sbin/unbound/validator/autotrust.c
1405
a->rr_len, a->dname_len), b, b_len);
usr.sbin/unbound/validator/autotrust.c
95
struct trust_anchor* b = (struct trust_anchor*)y;
usr.sbin/unbound/validator/autotrust.c
96
log_assert(a->autr && b->autr);
usr.sbin/unbound/validator/autotrust.c
97
if(a->autr->next_probe_time < b->autr->next_probe_time)
usr.sbin/unbound/validator/autotrust.c
99
if(a->autr->next_probe_time > b->autr->next_probe_time)
usr.sbin/unbound/validator/val_anchor.c
1024
char b[LDNS_MAX_DOMAINLEN];
usr.sbin/unbound/validator/val_anchor.c
1025
dname_str(ta->name, b);
usr.sbin/unbound/validator/val_anchor.c
1034
")", b);
usr.sbin/unbound/validator/val_neg.c
65
int val_neg_data_compare(const void* a, const void* b)
usr.sbin/unbound/validator/val_neg.c
68
struct val_neg_data* y = (struct val_neg_data*)b;
usr.sbin/unbound/validator/val_neg.c
73
int val_neg_zone_compare(const void* a, const void* b)
usr.sbin/unbound/validator/val_neg.c
76
struct val_neg_zone* y = (struct val_neg_zone*)b;
usr.sbin/unbound/validator/val_neg.h
196
int val_neg_data_compare(const void* a, const void* b);
usr.sbin/unbound/validator/val_neg.h
201
int val_neg_zone_compare(const void* a, const void* b);
usr.sbin/unbound/validator/val_sigcrypt.c
299
sldns_buffer* b = env->scratch_buffer;
usr.sbin/unbound/validator/val_sigcrypt.c
307
sldns_buffer_clear(b);
usr.sbin/unbound/validator/val_sigcrypt.c
308
sldns_buffer_write(b, dnskey_rrset->rk.dname,
usr.sbin/unbound/validator/val_sigcrypt.c
310
query_dname_tolower(sldns_buffer_begin(b));
usr.sbin/unbound/validator/val_sigcrypt.c
311
sldns_buffer_write(b, dnskey_rdata+2, dnskey_len-2); /* skip rdatalen*/
usr.sbin/unbound/validator/val_sigcrypt.c
312
sldns_buffer_flip(b);
usr.sbin/unbound/validator/val_sigcrypt.c
315
(unsigned char*)sldns_buffer_begin(b), sldns_buffer_limit(b),
usr.sbin/unbound/validator/validator.c
251
char b[LDNS_MAX_DOMAINLEN];
usr.sbin/unbound/validator/validator.c
252
dname_str(anchor->name, b);
usr.sbin/unbound/validator/validator.c
253
log_warn("validator: disable-edns-do is enabled, but there is a trust anchor for '%s'. Since DNSSEC could not work, the disable-edns-do setting is turned off. Continuing without it.", b);
usr.sbin/usbdevs/usbdevs.c
50
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
usr.sbin/vmd/pci.c
340
uint8_t b, d, f, o, baridx, cfgidx, ofs, sz;
usr.sbin/vmd/pci.c
359
b = (pci.pci_addr_reg >> 16) & 0xff;
usr.sbin/vmd/pci.c
438
if (d > pci.pci_dev_ct || b > 0 || f > 0)
usr.sbin/vmd/virtio.h
36
#define MIN(a,b) (((a)<(b))?(a):(b))
usr.sbin/wsmoused/wsmoused.c
388
u_char b;
usr.sbin/wsmoused/wsmoused.c
416
res = read(mouse.mfd, &b, 1);
usr.sbin/wsmoused/wsmoused.c
419
if (mouse_protocol(b, &action))
usr.sbin/ypldap/aldap.c
494
struct ber b;
usr.sbin/ypldap/aldap.c
498
b.br_wbuf = NULL;
usr.sbin/ypldap/aldap.c
500
ober_set_readbuf(&b, encoded, control->be_next->be_len);
usr.sbin/ypldap/aldap.c
501
elm = ober_read_elements(&b, NULL);
usr.sbin/ypldap/aldap.c
506
ober_free(&b);
usr.sbin/ypldap/aldap.c
516
ober_free(&b);
usr.sbin/ypldap/aldap.c
523
ober_free(&b);
usr.sbin/ypldap/aldap.c
619
struct ber_element *b;
usr.sbin/ypldap/aldap.c
627
&key, &b) != 0)
usr.sbin/ypldap/aldap.c
632
if ((ret = aldap_get_stringset(b)) == NULL)
usr.sbin/ypldap/aldap.c
684
struct ber_element *a, *b;
usr.sbin/ypldap/aldap.c
698
if (ober_scanf_elements(a, "{s(e", &descr, &b) != 0)
usr.sbin/ypldap/aldap.c
706
if ((ret = aldap_get_stringset(b)) == NULL)
usr.sbin/zdump/zdump.c
59
#define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
usr.sbin/zic/zic.c
1318
const zic_t b = ((const struct attype *) bvp)->at;
usr.sbin/zic/zic.c
1320
return (a < b) ? -1 : (a > b);
usr.sbin/zic/zic.c
1813
rule_cmp(struct rule const *a, struct rule const *b)
usr.sbin/zic/zic.c
1816
return -!!b;
usr.sbin/zic/zic.c
1817
if (!b)
usr.sbin/zic/zic.c
1819
if (a->r_hiyear != b->r_hiyear)
usr.sbin/zic/zic.c
1820
return a->r_hiyear < b->r_hiyear ? -1 : 1;
usr.sbin/zic/zic.c
1821
if (a->r_month - b->r_month != 0)
usr.sbin/zic/zic.c
1822
return a->r_month - b->r_month;
usr.sbin/zic/zic.c
1823
return a->r_dayofmonth - b->r_dayofmonth;