Symbol: d
bin/csh/csh.h
75
#define isdir(d) (S_ISDIR(d.st_mode))
bin/csh/dir.c
237
struct directory *d = dcwd;
bin/csh/dir.c
240
if (d == &dhead)
bin/csh/dir.c
242
d->di_name = dcanon(d->di_name, STRNULL);
bin/csh/dir.c
243
} while ((d = d->di_prev) != dcwd);
bin/csh/func.c
662
int c, d;
bin/csh/func.c
667
d = 0;
bin/csh/func.c
689
if (d == 0)
bin/csh/func.c
690
d = c;
bin/csh/func.c
691
else if (d == c)
bin/csh/func.c
692
d = 0;
bin/csh/func.c
700
} while ((d || (!(kwd = keyword(owp)) && c != ' '
bin/csh/set.c
604
balance(struct varent *p, int f, int d)
bin/csh/set.c
617
if (f ^ d) { /* right heavy */
bin/csh/set.c
687
if ((p->v_bal == 0) ^ d)
bin/csh/str.c
147
Char *d = dst;
bin/csh/str.c
154
if ((*d++ = *s++) == 0)
bin/csh/str.c
162
*d = '\0'; /* NUL-terminate dst */
bin/csh/str.c
173
Char *d = dst;
bin/csh/str.c
179
while (n-- != 0 && *d != '\0')
bin/csh/str.c
180
d++;
bin/csh/str.c
181
dlen = d - dst;
bin/csh/str.c
188
*d++ = *s;
bin/csh/str.c
193
*d = '\0';
bin/ed/re.c
126
int c, d;
bin/ed/re.c
133
if (*s == '[' && ((d = *(s+1)) == '.' || d == ':' || d == '='))
bin/ed/re.c
134
for (s++, c = *++s; *s != ']' || c != d; s++)
bin/ksh/eval.c
1111
struct dirent *d;
bin/ksh/eval.c
1121
while ((d = readdir(dirp)) != NULL) {
bin/ksh/eval.c
1122
name = d->d_name;
bin/ksh/eval.c
1130
len = strlen(d->d_name) + 1;
bin/ksh/eval.c
1151
char *d, *s;
bin/ksh/eval.c
1158
for (d = dp + slen; *s && (d < dp + dlen); s++)
bin/ksh/eval.c
1161
*d++ = *s;
bin/ksh/eval.c
1165
*d++ = *s & 0x7f;
bin/ksh/eval.c
1166
if (d < dp + dlen)
bin/ksh/eval.c
1167
*d++ = '(';
bin/ksh/eval.c
1169
*d = '\0';
bin/ksh/misc.c
744
int c, d, rv, not, found = 0;
bin/ksh/misc.c
784
d = *p++;
bin/ksh/misc.c
785
if (ISMAGIC(d)) {
bin/ksh/misc.c
786
d = *p++;
bin/ksh/misc.c
787
if ((d & 0x80) && !ISMAGIC(d))
bin/ksh/misc.c
788
d &= 0x7f;
bin/ksh/misc.c
791
if (c > d)
bin/ksh/misc.c
794
d = c;
bin/ksh/misc.c
795
if (c == sub || (c <= sub && sub <= d))
bin/ls/ls.c
431
DISPLAY d;
bin/ls/ls.c
555
d.list = list;
bin/ls/ls.c
556
d.entries = entries;
bin/ls/ls.c
557
d.maxlen = maxlen;
bin/ls/ls.c
559
d.btotal = btotal;
bin/ls/ls.c
560
d.s_block = snprintf(NULL, 0, "%llu",
bin/ls/ls.c
562
d.s_flags = maxflags;
bin/ls/ls.c
563
d.s_group = maxgroup;
bin/ls/ls.c
564
d.s_inode = snprintf(NULL, 0, "%llu",
bin/ls/ls.c
566
d.s_nlink = snprintf(NULL, 0, "%lu",
bin/ls/ls.c
569
d.s_size = snprintf(NULL, 0, "%lld",
bin/ls/ls.c
572
d.s_size = FMT_SCALED_STRSIZE-2; /* no - or '\0' */
bin/ls/ls.c
573
d.s_major = d.s_minor = 3;
bin/ls/ls.c
575
d.s_major = snprintf(NULL, 0, "%u", maxmajor);
bin/ls/ls.c
576
d.s_minor = snprintf(NULL, 0, "%u", maxminor);
bin/ls/ls.c
577
if (d.s_size <= d.s_major + 2 + d.s_minor)
bin/ls/ls.c
578
d.s_size = d.s_major + 2 + d.s_minor;
bin/ls/ls.c
580
d.s_major = d.s_size - 2 - d.s_minor;
bin/ls/ls.c
582
d.s_user = maxuser;
bin/ls/ls.c
585
printfcn(&d);
bin/stty/print.c
87
#define put(n, f, d) \
bin/stty/print.c
88
if (fmt >= BSD || on(f) != d) \
games/adventure/hdr.h
166
#define DECR(a,b,c,d,e) decr(*#a-'+',*#b-'-',*#c-'#',*#d-'&',*#e-'%')
games/adventure/init.c
114
rod = vocab(DECR(r,o,d,\0,\0),1, 0);
games/adventure/init.c
117
bird = vocab(DECR(b,i,r,d,\0),1, 0);
games/adventure/init.c
118
door = vocab(DECR(d,o,o,r,\0),1, 0);
games/adventure/init.c
126
dwarf = vocab(DECR(d,w,a,r,f), 1, 0);
games/adventure/init.c
128
food = vocab(DECR(f,o,o,d,\0),1, 0);
games/adventure/init.c
136
dragon= vocab(DECR(d,r,a,g,o), 1, 0);
games/adventure/init.c
142
vend = vocab(DECR(v,e,n,d,i), 1, 0);
games/adventure/init.c
145
nugget= vocab(DECR(g,o,l,d,\0),1, 0);
games/adventure/init.c
149
tridnt= vocab(DECR(t,r,i,d,e), 1, 0);
games/adventure/init.c
162
dprssn= vocab(DECR(d,e,p,r,e), 0, 0);
games/adventure/init.c
169
find = vocab(DECR(f,i,n,d,\0),2, 0);
games/adventure/init.c
65
decr(char a, char b, char c, char d, char e)
games/adventure/init.c
72
buf[3] = d + '&';
games/adventure/wizard.c
53
strlcpy(magic, DECR(d,w,a,r,f), sizeof magic);
games/atc/update.c
410
dir_deg(int d)
games/atc/update.c
412
switch (d) {
games/backgammon/common_source/one.c
100
checkd(int d)
games/backgammon/common_source/one.c
102
if (d0 != d)
games/backgammon/common_source/one.c
37
int n, d;
games/backgammon/common_source/one.c
40
d = d0;
games/backgammon/common_source/one.c
44
return(checkd(d) + 2);
games/backgammon/common_source/one.c
46
return(checkd(d) + 3);
games/backgammon/common_source/one.c
49
return(checkd(d) + 1);
games/backgammon/common_source/one.c
52
return(checkd(d) + 1);
games/backgammon/common_source/one.c
57
return(checkd(d) + 4);
games/battlestar/fly.c
249
double d;
games/battlestar/fly.c
264
d = (double) ((row - MIDR) * (row - MIDR) + (column - MIDC) * (column - MIDC));
games/battlestar/fly.c
265
if (d < 16) {
games/bs/bs.c
1038
int navail, x, y, d, n, hit = S_MISS;
games/bs/bs.c
1062
for (d = navail = 0; d < 4; d++)
games/bs/bs.c
1064
x = ts.x + xincr[d*2]; y = ts.y + yincr[d*2];
games/bs/bs.c
1065
if (!used[d] && POSSIBLE(x, y))
games/bs/bs.c
1068
used[d] = TRUE;
games/bs/bs.c
1074
for (d = 0, n = rnd(navail) + 1; n; n--,d++)
games/bs/bs.c
1075
while (used[d])
games/bs/bs.c
1076
d++;
games/bs/bs.c
1077
d--;
games/bs/bs.c
1079
x = ts.x + xincr[d*2];
games/bs/bs.c
1080
y = ts.y + yincr[d*2];
games/bs/bs.c
1086
ts.x = x; ts.y = y; ts.dir = d*2; ts.hits++;
games/bs/bs.c
1160
for (d=0 ; d < SHIPTYPES; d++, sp++)
games/bs/bs.c
1189
for (d = 0; d < 8; d += 2)
games/bs/bs.c
1194
ts.x += xincr[d]; ts.y += yincr[d]; ts.hits++;
games/bs/bs.c
1199
ts.dir = d;
games/bs/bs.c
1200
ts.x -= xincr[d]; ts.y -= yincr[d];
games/bs/bs.c
1201
d = 100; /* use as a flag */
games/bs/bs.c
1211
next = (d >= 100) ? FIRST_PASS : RANDOM_HIT;
games/cribbage/cards.c
103
if (!eq(a, d[i]))
games/cribbage/cards.c
104
d[j++] = d[i];
games/cribbage/cards.c
106
d[j].suit = d[j].rank = EMPTY;
games/cribbage/cards.c
41
makedeck(CARD d[])
games/cribbage/cards.c
48
d[k].suit = j;
games/cribbage/cards.c
49
d[k++].rank = i;
games/cribbage/cards.c
58
shuffle(CARD d[])
games/cribbage/cards.c
65
c = d[j - 1]; /* exchange (j - 1) and k */
games/cribbage/cards.c
66
d[j - 1] = d[k];
games/cribbage/cards.c
67
d[k] = c;
games/cribbage/cards.c
98
cremove(CARD a, CARD d[], int n)
games/cribbage/support.c
235
CARD d[CARDS], h[FULLHAND], cb[2];
games/cribbage/support.c
242
makedeck(d);
games/cribbage/support.c
245
cremove(known[i], d, nc--);
games/cribbage/support.c
260
scorehand(h, d[k], CINHAND, TRUE, FALSE);
games/cribbage/support.c
262
sums[ns] += adjust(cb, d[k]);
games/cribbage/support.c
264
sums[ns] -= adjust(cb, d[k]);
games/gomoku/makemove.c
115
for (i = 5; --i >= 0; sp += d) { /* for each spot */
games/gomoku/makemove.c
126
sp += d;
games/gomoku/makemove.c
151
for (i = 5; --i >= 0; sp += d) /* for each spot */
games/gomoku/makemove.c
212
int i, f, r, r1, d, d1, n;
games/gomoku/makemove.c
218
d = dd[r];
games/gomoku/makemove.c
221
for (f = 0; f < 6; f++, sp1 -= d) { /* for each frame */
games/gomoku/makemove.c
234
sp2 = sp1 - d;
games/gomoku/makemove.c
235
for (i = f + 1; i < 6; i++, sp2 -= d) {
games/gomoku/makemove.c
246
for (b = i - f; b < 5; b++, sp += d) {
games/gomoku/makemove.c
59
int i, f, r, d, n;
games/gomoku/makemove.c
81
d = dd[r];
games/gomoku/makemove.c
84
for (f = 5; --f >= 0; fsp -= d) { /* for each frame */
games/gomoku/pickmove.c
1330
int s, d, m, i;
games/gomoku/pickmove.c
1429
d = dd[s = cbp->c_dir];
games/gomoku/pickmove.c
1433
for (; --s >= 0; sp += d, m >>= 1)
games/gomoku/pickmove.c
1443
int d, n, mask;
games/gomoku/pickmove.c
1450
d = dd[n = cbp->c_dir];
games/gomoku/pickmove.c
1453
for (; --n >= 0; sp += d)
games/gomoku/pickmove.c
221
int i, r, d, n;
games/gomoku/pickmove.c
233
cb.s = sp->s_fval[color][d = cbp->c_dir].s;
games/gomoku/pickmove.c
235
d = dd[d];
games/gomoku/pickmove.c
236
for (i = 5 + cb.c.b; --i >= 0; sp += d) {
games/gomoku/pickmove.c
255
d = dd[r];
games/gomoku/pickmove.c
276
sp += d;
games/gomoku/pickmove.c
282
for (; i < 5; i++, sp += d) { /* for each spot */
games/gomoku/pickmove.c
318
d = 2;
games/gomoku/pickmove.c
319
while (d <= ((unsigned)(movenum + 1) >> 1) && combolen > n) {
games/gomoku/pickmove.c
323
d, combolen - n, combocnt, elistcnt);
games/gomoku/pickmove.c
328
addframes(d);
games/gomoku/pickmove.c
329
d++;
games/gomoku/pickmove.c
406
int f, r, d, c;
games/gomoku/pickmove.c
420
d = dd[r];
games/gomoku/pickmove.c
429
for (f = 0; f < 5; f++, fsp -= d) { /* for each frame */
games/gomoku/pickmove.c
537
int i, r, d;
games/gomoku/pickmove.c
597
d = dd[r];
games/gomoku/pickmove.c
598
sp = fsp + d;
games/gomoku/pickmove.c
599
for (i = 1; i < 5; i++, sp += d) {
games/gomoku/pickmove.c
786
int s, d, m, emask, i;
games/gomoku/pickmove.c
892
d = dd[cbp->c_dir];
games/gomoku/pickmove.c
893
for (s = 0, m = 1; s < 5; s++, sp += d, m <<= 1) {
games/gomoku/pickmove.c
943
int i, d;
games/gomoku/pickmove.c
971
d = dd[tcbp->c_dir];
games/gomoku/pickmove.c
973
for (; --i >= 0; sp += d, s += d) {
games/gomoku/pickmove.c
995
d = dd[cbp->c_dir];
games/gomoku/pickmove.c
997
for (; --i >= 0; sp += d, s += d) {
games/hack/hack.bones.c
111
mkgold(somegold() + d(dlevel,30), u.ux, u.uy);
games/hack/hack.c
656
int dx,dy,adx,ady,sdx,sdy,dmax,d;
games/hack/hack.c
660
d = dist(x,y);
games/hack/hack.c
661
if(d < 3) return(1);
games/hack/hack.c
662
if(d > u.uhorizon*u.uhorizon) return(0);
games/hack/hack.c
669
for(d = 1; d <= dmax; d++)
games/hack/hack.c
670
if(!rroom(sdx*d,sdy*d))
games/hack/hack.c
674
for(d = 1; d <= ady; d++){
games/hack/hack.c
675
if(!rroom(sdx*( (d*adx)/ady ), sdy*d) ||
games/hack/hack.c
676
!rroom(sdx*( (d*adx-1)/ady+1 ), sdy*d))
games/hack/hack.c
681
for(d = 1; d <= adx; d++){
games/hack/hack.c
682
if(!rroom(sdx*d, sdy*( (d*ady)/adx )) ||
games/hack/hack.c
683
!rroom(sdx*d, sdy*( (d*ady-1)/adx+1 )))
games/hack/hack.dog.c
429
(void) hitu(mtmp, d(mdat->damn, mdat->damd)+1);
games/hack/hack.eat.c
241
Confusion += d(2,4);
games/hack/hack.eat.c
244
Blind = d(2,10);
games/hack/hack.end.c
574
int d = n%10;
games/hack/hack.end.c
576
return((d==0 || d>3 || n/10==1) ? "th" : (d==1) ? "st" :
games/hack/hack.end.c
577
(d==2) ? "nd" : "rd");
games/hack/hack.fight.c
119
if((mdef->mhp -= d(pa->damn,pa->damd)) < 1) {
games/hack/hack.fight.c
222
if(obj->otyp == TWO_HANDED_SWORD) tmp += d(2,6);
games/hack/hack.h
748
int d(int, int);
games/hack/hack.makemon.c
116
else mtmp->mhpmax = mtmp->mhp = d(ptr->mlevel, 8);
games/hack/hack.mhitu.c
103
youswld(mtmp,d(2,4),12,"The purple worm");
games/hack/hack.mhitu.c
123
tmp = hitu(mtmp,d(mdat->damn,mdat->damd));
games/hack/hack.mhitu.c
127
tmp += hitu(mtmp,d(mdat->damn,mdat->damd));
games/hack/hack.mhitu.c
139
(void) hitu(mtmp,d(2,6));
games/hack/hack.mhitu.c
140
(void) hitu(mtmp,d(2,6));
games/hack/hack.mhitu.c
191
(void) hitu(mtmp,d(3,10));
games/hack/hack.mhitu.c
200
(void) hitu(mtmp,d(2, (flags.moonphase == FULL_MOON) ? 3 : 4));
games/hack/hack.mhitu.c
203
(void) hitu(mtmp,d(3,6));
games/hack/hack.mhitu.c
218
losehp_m(d(dn,6), mtmp);
games/hack/hack.mhitu.c
271
(void) hitu(mtmp,d(2,6));
games/hack/hack.mhitu.c
272
(void) hitu(mtmp,d(2,6));
games/hack/hack.mhitu.c
281
u.uhp -= d(2,8);
games/hack/hack.mhitu.c
283
u.uhp -= d(2,8);
games/hack/hack.mhitu.c
291
(void) hitu(mtmp,d(2,4));
games/hack/hack.mhitu.c
333
(void) hitu(mtmp,d(3,4));
games/hack/hack.mhitu.c
334
(void) hitu(mtmp,d(3,4));
games/hack/hack.mhitu.c
369
Blind = d(4,12);
games/hack/hack.mon.c
201
int d = dochug(mtmp);
games/hack/hack.mon.c
204
if(!d) /* monster still alive */
games/hack/hack.mon.c
212
return(d);
games/hack/hack.mon.c
368
Confusion += d(3,4); /* timeout */
games/hack/hack.mon.c
479
(void) hitu(mtmp, d(mtmp->data->damn, mtmp->data->damd)+1);
games/hack/hack.potion.c
221
u.uhp += d(2,20)+1;
games/hack/hack.potion.c
97
Confusion += d(3,8);
games/hack/hack.shk.c
1079
(void) hitu(shkp, d(mdat->damn, mdat->damd)+1);
games/hack/hack.shk.c
953
(void) hitu(shkp, d(mdat->damn, mdat->damd)+1);
games/hack/hack.steal.c
262
mkgold((long)(tmp + d(dlevel,30)), mtmp->mx, mtmp->my);
games/hack/hack.trap.c
134
(void) thitu(3,d(4,6),"falling piercer");
games/hack/hack.trap.c
148
losehp(uarmh ? 2 : d(2,10),"falling rock");
games/hack/hack.u_init.c
310
int d = rn2(7) - 2; /* biased variation */
games/hack/hack.u_init.c
311
u.ustr += d;
games/hack/hack.u_init.c
312
u.ustrmax += d;
games/hack/hack.wizard.c
139
if(hitu(mtmp, d(mtmp->data->damn,mtmp->data->damd))
games/hack/hack.worm.c
243
d(mtmp2->data->mlevel, 8);
games/hack/hack.zap.c
556
dam = d(2,6);
games/hack/hack.zap.c
561
else dam = d(6,6);
games/hack/hack.zap.c
571
else dam = d(6,6);
games/hack/hack.zap.c
623
tmp = d(2,6);
games/hack/hack.zap.c
628
tmp = d(6,6);
games/hack/hack.zap.c
636
tmp = d(6,6);
games/hack/hack.zap.c
93
int tmp = d(2,12);
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
302
long c, long d)
games/sail/sync.c
309
p->mensent = d;
games/sail/sync.c
316
p->mensent = d;
games/sail/sync.c
434
s->rig4 = d;
games/snake/snake.c
566
struct point d;
games/snake/snake.c
570
d.col = you.col-sp->col;
games/snake/snake.c
571
d.line = you.line-sp->line;
games/snake/snake.c
572
v1 = sqrt((double)(d.col * d.col + d.line * d.line) );
games/snake/snake.c
576
vp = d.col * mx[i] + d.line * my[i];
games/snake/snake.c
588
d.col = sp->col + mx[i];
games/snake/snake.c
589
d.line = sp->line + my[i];
games/snake/snake.c
591
if (d.col < 0 || d.col >= ccnt || d.line < 0 || d.line >= lcnt)
games/snake/snake.c
600
if (same(&d, &money) || same(&d,&finish))
games/trek/compkl.c
55
double d;
games/trek/compkl.c
65
d = dx * dx + dy * dy;
games/trek/compkl.c
66
d = sqrt(d);
games/trek/compkl.c
72
Etc.klingon[i].avgdist = 0.5 * (temp + d);
games/trek/compkl.c
77
Etc.klingon[i].avgdist = d;
games/trek/compkl.c
79
Etc.klingon[i].dist = d;
games/trek/damaged.c
45
int d;
games/trek/damaged.c
49
d = dev;
games/trek/damaged.c
56
if (e->systemname == d)
games/trek/getpar.c
281
readdelim(int d)
games/trek/getpar.c
287
if (c == d)
games/trek/getpar.c
73
double d;
games/trek/getpar.c
79
i = scanf("%lf", &d);
games/trek/getpar.c
83
return (d);
games/trek/out.c
45
const struct device *d;
games/trek/out.c
47
d = &Device[dev];
games/trek/out.c
48
printf("%s reports %s ", d->person, d->name);
games/trek/out.c
49
if (d->name[0] != '\0' && d->name[strlen(d->name) - 1] == 's')
games/trek/setup.c
229
for (d = 1; d < NINHAB; d++)
games/trek/setup.c
237
q->qsystemname = d;
games/trek/setup.c
78
int d;
games/trek/setup.c
94
d = 0;
games/trek/setup.c
96
d += Game.passwd[i] << i;
games/trek/setup.c
97
srandom_deterministic(d);
games/trek/torped.c
227
int d;
games/trek/torped.c
229
d = ((franf() + franf()) - 1.0) * 20;
games/trek/torped.c
230
if (abs(d) > 12)
games/trek/torped.c
239
damage(TORPED, 0.2 * abs(d) * (franf() + 1.0));
games/trek/torped.c
241
d *= 1.0 + 2.0 * franf();
games/trek/torped.c
249
d *= r;
games/trek/torped.c
251
return (d);
games/trek/warp.c
60
double d;
games/trek/warp.c
62
if (getcodi(&c, &d))
games/trek/warp.c
64
warp(fl, c, d);
games/trek/warp.c
68
warp(int fl, int c, double d)
games/trek/warp.c
86
dist = d;
include/rpc/rpc_des.h
129
#define DESIOCBLOCK _IOWR(d, 6, struct desparams)
include/rpc/rpc_des.h
134
#define DESIOCQUICK _IOWR(d, 7, struct desparams)
lib/libc/arch/aarch64/gen/fabs.c
26
fabs(double d)
lib/libc/arch/aarch64/gen/fabs.c
28
struct ieee_double *p = (struct ieee_double *)&d;
lib/libc/arch/aarch64/gen/fabs.c
32
return(d);
lib/libc/arch/arm/gen/fabs.c
26
fabs(double d)
lib/libc/arch/arm/gen/fabs.c
28
struct ieee_double *p = (struct ieee_double *)&d;
lib/libc/arch/arm/gen/fabs.c
32
return(d);
lib/libc/arch/riscv64/gen/fabs.c
26
fabs(double d)
lib/libc/arch/riscv64/gen/fabs.c
28
struct ieee_double *p = (struct ieee_double *)&d;
lib/libc/arch/riscv64/gen/fabs.c
32
return(d);
lib/libc/arch/sh/gen/fabs.c
27
fabs(double d)
lib/libc/arch/sh/gen/fabs.c
30
__asm__ volatile("fabs %0" : "+f" (d));
lib/libc/arch/sh/gen/fabs.c
32
struct ieee_double *p = (struct ieee_double *)&d;
lib/libc/arch/sh/gen/fabs.c
36
return (d);
lib/libc/arch/sparc64/fpu/fpu_qp.c
180
_QP_TTOQ(d, d, double, 31, u_int, a[0], a[1])
lib/libc/arch/sparc64/fpu/fpu_qp.c
187
_QP_QTOT4(d, d, double, a)
lib/libc/asr/asr.c
600
int i, j, d;
lib/libc/asr/asr.c
667
d = strtonum(tok[i] + 6, 1, 16, &e);
lib/libc/asr/asr.c
669
ac->ac_ndots = d;
lib/libc/asr/asr_utils.c
66
char *d;
lib/libc/asr/asr_utils.c
79
for (; *str; str = d + 1) {
lib/libc/asr/asr_utils.c
81
d = strchr(str, '.');
lib/libc/asr/asr_utils.c
82
if (d == NULL || d == str)
lib/libc/asr/asr_utils.c
85
l = (d - str);
lib/libc/crypt/blowfish.c
507
u_int32_t *d;
lib/libc/crypt/blowfish.c
510
d = data;
lib/libc/crypt/blowfish.c
512
Blowfish_encipher(c, d, d + 1);
lib/libc/crypt/blowfish.c
513
d += 2;
lib/libc/crypt/blowfish.c
521
u_int32_t *d;
lib/libc/crypt/blowfish.c
524
d = data;
lib/libc/crypt/blowfish.c
526
Blowfish_decipher(c, d, d + 1);
lib/libc/crypt/blowfish.c
527
d += 2;
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/gdtoa/dtoa.c
127
U d, d2, eps;
lib/libc/gdtoa/dtoa.c
153
d.d = d0;
lib/libc/gdtoa/dtoa.c
154
if (word0(&d) & Sign_bit) {
lib/libc/gdtoa/dtoa.c
157
word0(&d) &= ~Sign_bit; /* clear sign bit */
lib/libc/gdtoa/dtoa.c
164
if ((word0(&d) & Exp_mask) == Exp_mask)
lib/libc/gdtoa/dtoa.c
166
if (word0(&d) == 0x8000)
lib/libc/gdtoa/dtoa.c
172
if (!word1(&d) && !(word0(&d) & 0xfffff))
lib/libc/gdtoa/dtoa.c
179
dval(&d) += 0; /* normalize */
lib/libc/gdtoa/dtoa.c
181
if (!dval(&d)) {
lib/libc/gdtoa/dtoa.c
200
b = d2b(dval(&d), &be, &bbits);
lib/libc/gdtoa/dtoa.c
204
i = (int)(word0(&d) >> Exp_shift1 & (Exp_mask>>Exp_shift1));
lib/libc/gdtoa/dtoa.c
206
if (( i = (int)(word0(&d) >> Exp_shift1 & (Exp_mask>>Exp_shift1)) )!=0) {
lib/libc/gdtoa/dtoa.c
208
dval(&d2) = dval(&d);
lib/libc/gdtoa/dtoa.c
250
x = i > 32 ? word0(&d) << (64 - i) | word1(&d) >> (i - 32)
lib/libc/gdtoa/dtoa.c
251
: word1(&d) << (32 - i);
lib/libc/gdtoa/dtoa.c
264
if (dval(&d) < tens[k])
lib/libc/gdtoa/dtoa.c
343
dval(&d2) = dval(&d);
lib/libc/gdtoa/dtoa.c
353
dval(&d) /= bigtens[n_bigtens-1];
lib/libc/gdtoa/dtoa.c
361
dval(&d) /= ds;
lib/libc/gdtoa/dtoa.c
364
dval(&d) *= tens[j1 & 0xf];
lib/libc/gdtoa/dtoa.c
368
dval(&d) *= bigtens[i];
lib/libc/gdtoa/dtoa.c
371
if (k_check && dval(&d) < 1. && ilim > 0) {
lib/libc/gdtoa/dtoa.c
376
dval(&d) *= 10.;
lib/libc/gdtoa/dtoa.c
379
dval(&eps) = ieps*dval(&d) + 7.;
lib/libc/gdtoa/dtoa.c
383
dval(&d) -= 5.;
lib/libc/gdtoa/dtoa.c
384
if (dval(&d) > dval(&eps))
lib/libc/gdtoa/dtoa.c
386
if (dval(&d) < -dval(&eps))
lib/libc/gdtoa/dtoa.c
397
L = dval(&d);
lib/libc/gdtoa/dtoa.c
398
dval(&d) -= L;
lib/libc/gdtoa/dtoa.c
400
if (dval(&d) < dval(&eps))
lib/libc/gdtoa/dtoa.c
402
if (1. - dval(&d) < dval(&eps))
lib/libc/gdtoa/dtoa.c
407
dval(&d) *= 10.;
lib/libc/gdtoa/dtoa.c
414
for(i = 1;; i++, dval(&d) *= 10.) {
lib/libc/gdtoa/dtoa.c
415
L = (Long)(dval(&d));
lib/libc/gdtoa/dtoa.c
416
if (!(dval(&d) -= L))
lib/libc/gdtoa/dtoa.c
420
if (dval(&d) > 0.5 + dval(&eps))
lib/libc/gdtoa/dtoa.c
422
else if (dval(&d) < 0.5 - dval(&eps)) {
lib/libc/gdtoa/dtoa.c
435
dval(&d) = dval(&d2);
lib/libc/gdtoa/dtoa.c
447
if (ilim < 0 || dval(&d) <= 5*ds)
lib/libc/gdtoa/dtoa.c
451
for(i = 1;; i++, dval(&d) *= 10.) {
lib/libc/gdtoa/dtoa.c
452
L = (Long)(dval(&d) / ds);
lib/libc/gdtoa/dtoa.c
453
dval(&d) -= L*ds;
lib/libc/gdtoa/dtoa.c
456
if (dval(&d) < 0) {
lib/libc/gdtoa/dtoa.c
458
dval(&d) += ds;
lib/libc/gdtoa/dtoa.c
462
if (!dval(&d)) {
lib/libc/gdtoa/dtoa.c
476
dval(&d) += dval(&d);
lib/libc/gdtoa/dtoa.c
478
if (dval(&d) >= ds)
lib/libc/gdtoa/dtoa.c
480
if (dval(&d) > ds || (dval(&d) == ds && L & 1))
lib/libc/gdtoa/dtoa.c
564
if (!word1(&d) && !(word0(&d) & Bndry_mask)
lib/libc/gdtoa/dtoa.c
566
&& word0(&d) & (Exp_mask & ~Exp_msk1)
lib/libc/gdtoa/dtoa.c
675
if (j1 == 0 && mode != 1 && !(word1(&d) & 1)
lib/libc/gdtoa/dtoa.c
694
&& !(word1(&d) & 1)
lib/libc/gdtoa/dtoa.c
825
word0(&d) = Exp_1 + (70 << Exp_shift);
lib/libc/gdtoa/dtoa.c
826
word1(&d) = 0;
lib/libc/gdtoa/dtoa.c
827
dval(&d) += 1.;
lib/libc/gdtoa/gdtoa.c
165
U d, eps;
lib/libc/gdtoa/gdtoa.c
206
dval(&d) = b2d(b, &i);
lib/libc/gdtoa/gdtoa.c
208
word0(&d) &= Frac_mask1;
lib/libc/gdtoa/gdtoa.c
209
word0(&d) |= Exp_11;
lib/libc/gdtoa/gdtoa.c
211
if ( (j = 11 - hi0bits(word0(&d) & Frac_mask)) !=0)
lib/libc/gdtoa/gdtoa.c
212
dval(&d) /= 1 << j;
lib/libc/gdtoa/gdtoa.c
240
ds = (dval(&d)-1.5)*0.289529654602168 + 0.1760912590558 + i*0.301029995663981;
lib/libc/gdtoa/gdtoa.c
255
dval(&d) *= 1 << j1;
lib/libc/gdtoa/gdtoa.c
256
word0(&d) += j << Exp_shift - 2 & Exp_mask;
lib/libc/gdtoa/gdtoa.c
258
word0(&d) += (be + bbits - 1) << Exp_shift;
lib/libc/gdtoa/gdtoa.c
261
if (dval(&d) < tens[k])
lib/libc/gdtoa/gdtoa.c
342
d2 = dval(&d);
lib/libc/gdtoa/gdtoa.c
344
if ( (j = 11 - hi0bits(word0(&d) & Frac_mask)) !=0)
lib/libc/gdtoa/gdtoa.c
345
dval(&d) /= 1 << j;
lib/libc/gdtoa/gdtoa.c
356
dval(&d) /= bigtens[n_bigtens-1];
lib/libc/gdtoa/gdtoa.c
368
dval(&d) *= tens[j1 & 0xf];
lib/libc/gdtoa/gdtoa.c
372
dval(&d) *= bigtens[i];
lib/libc/gdtoa/gdtoa.c
376
if (k_check && dval(&d) < 1. && ilim > 0) {
lib/libc/gdtoa/gdtoa.c
381
dval(&d) *= 10.;
lib/libc/gdtoa/gdtoa.c
384
dval(&eps) = ieps*dval(&d) + 7.;
lib/libc/gdtoa/gdtoa.c
388
dval(&d) -= 5.;
lib/libc/gdtoa/gdtoa.c
389
if (dval(&d) > dval(&eps))
lib/libc/gdtoa/gdtoa.c
391
if (dval(&d) < -dval(&eps))
lib/libc/gdtoa/gdtoa.c
402
L = (Long)(dval(&d)/ds);
lib/libc/gdtoa/gdtoa.c
403
dval(&d) -= L*ds;
lib/libc/gdtoa/gdtoa.c
405
if (dval(&d) < dval(&eps)) {
lib/libc/gdtoa/gdtoa.c
406
if (dval(&d))
lib/libc/gdtoa/gdtoa.c
410
if (ds - dval(&d) < dval(&eps))
lib/libc/gdtoa/gdtoa.c
415
dval(&d) *= 10.;
lib/libc/gdtoa/gdtoa.c
422
for(i = 1;; i++, dval(&d) *= 10.) {
lib/libc/gdtoa/gdtoa.c
423
if ( (L = (Long)(dval(&d)/ds)) !=0)
lib/libc/gdtoa/gdtoa.c
424
dval(&d) -= L*ds;
lib/libc/gdtoa/gdtoa.c
428
if (dval(&d) > ds + dval(&eps))
lib/libc/gdtoa/gdtoa.c
430
else if (dval(&d) < ds - dval(&eps)) {
lib/libc/gdtoa/gdtoa.c
431
if (dval(&d))
lib/libc/gdtoa/gdtoa.c
443
dval(&d) = d2;
lib/libc/gdtoa/gdtoa.c
455
if (ilim < 0 || dval(&d) <= 5*ds)
lib/libc/gdtoa/gdtoa.c
459
for(i = 1;; i++, dval(&d) *= 10.) {
lib/libc/gdtoa/gdtoa.c
460
L = dval(&d) / ds;
lib/libc/gdtoa/gdtoa.c
461
dval(&d) -= L*ds;
lib/libc/gdtoa/gdtoa.c
464
if (dval(&d) < 0) {
lib/libc/gdtoa/gdtoa.c
466
dval(&d) += ds;
lib/libc/gdtoa/gdtoa.c
470
if (dval(&d) == 0.)
lib/libc/gdtoa/gdtoa.c
479
dval(&d) += dval(&d);
lib/libc/gdtoa/gdtoa.c
481
if (dval(&d) >= ds)
lib/libc/gdtoa/gdtoa.c
483
if (dval(&d) > ds || (dval(&d) == ds && L & 1))
lib/libc/gdtoa/gdtoa.h
107
extern char* __dtoa ANSI((double d, int mode, int ndigits, int *decpt,
lib/libc/gdtoa/gdtoaimp.h
277
typedef union { double d; ULong L[2]; } U;
lib/libc/gdtoa/gdtoaimp.h
286
#define dval(x) (x)->d
lib/libc/gdtoa/hdtoa.c
123
__hdtoa(double d, const char *xdigs, int ndigits, int *decpt, int *sign,
lib/libc/gdtoa/hdtoa.c
127
struct ieee_double *p = (struct ieee_double *)&d;
lib/libc/gdtoa/hdtoa.c
133
switch (fpclassify(d)) {
lib/libc/gdtoa/hdtoa.c
141
d *= 0x1p514;
lib/libc/gdtoa/misc.c
659
U d;
lib/libc/gdtoa/misc.c
663
#define d0 word0(&d)
lib/libc/gdtoa/misc.c
664
#define d1 word1(&d)
lib/libc/gdtoa/misc.c
710
word0(&d) = d0 >> 16 | d0 << 16;
lib/libc/gdtoa/misc.c
711
word1(&d) = d1 >> 16 | d1 << 16;
lib/libc/gdtoa/misc.c
713
return dval(&d);
lib/libc/gdtoa/misc.c
727
U d;
lib/libc/gdtoa/misc.c
736
#define d0 word0(&d)
lib/libc/gdtoa/misc.c
737
#define d1 word1(&d)
lib/libc/gdtoa/misc.c
739
d.d = dd;
lib/libc/gdtoa/misc.c
741
d0 = word0(&d) >> 16 | word0(&d) << 16;
lib/libc/gdtoa/misc.c
742
d1 = word1(&d) >> 16 | word1(&d) << 16;
lib/libc/gdtoa/misc.c
837
*bits = 4*P + 8 - k - hi0bits(word0(&d) & Frac_mask);
lib/libc/gdtoa/smisc.c
129
int c, d;
lib/libc/gdtoa/smisc.c
132
while( (d = *t++) !=0) {
lib/libc/gdtoa/smisc.c
135
if (c != d)
lib/libc/gdtoa/strtod.c
373
rv.d = -rv.d;
lib/libc/gdtoa/strtod.c
389
rv.d = -rv.d;
lib/libc/gdtoa/strtod.c
417
rv.d = -rv.d;
lib/libc/gdtoa/strtod.c
736
dval(&rv) += adj.d*ulp(&rv);
lib/libc/gdtoa/strtod.c
741
if (adj.d < 1.)
lib/libc/gdtoa/strtod.c
743
if (adj.d <= 0x7ffffffe) {
lib/libc/gdtoa/strtod.c
745
y = adj.d;
lib/libc/gdtoa/strtod.c
746
if (y != adj.d) {
lib/libc/gdtoa/strtod.c
773
dval(&rv) += adj.d;
lib/libc/gdtoa/strtod.c
776
dval(&rv) -= adj.d;
lib/libc/gdtoa/strtod.c
78
return rv * u.d;
lib/libc/gdtoa/strtodg.c
178
(d, fpi, exp, bits, exact, rd, irv)
lib/libc/gdtoa/strtodg.c
179
U *d; FPI *fpi; Long *exp; ULong *bits; int exact, rd, *irv;
lib/libc/gdtoa/strtodg.c
181
(U *d, FPI *fpi, Long *exp, ULong *bits, int exact, int rd, int *irv)
lib/libc/gdtoa/strtodg.c
189
b = d2b(dval(d), &e, &bdif);
lib/libc/gdtoa/strtodg.c
315
mantbits(d) U *d;
lib/libc/gdtoa/strtodg.c
317
mantbits(U *d)
lib/libc/gdtoa/strtodg.c
322
L = word1(d) << 16 | word1(d) >> 16;
lib/libc/gdtoa/strtodg.c
325
if ( (L = word1(d)) !=0)
lib/libc/gdtoa/strtodg.c
329
L = word0(d) << 16 | word0(d) >> 16 | Exp_msk11;
lib/libc/gdtoa/strtodg.c
331
L = word0(d) | Exp_msk1;
lib/libc/gdtoa/strtord.c
76
strtord(s, sp, rounding, d) CONST char *s; char **sp; int rounding; double *d;
lib/libc/gdtoa/strtord.c
78
strtord(CONST char *s, char **sp, int rounding, double *d)
lib/libc/gdtoa/strtord.c
94
ULtod((ULong*)d, bits, exp, k);
lib/libc/gen/fpclassify.c
24
__fpclassify(double d)
lib/libc/gen/fpclassify.c
26
struct ieee_double *p = (struct ieee_double *)&d;
lib/libc/gen/isfinite.c
24
__isfinite(double d)
lib/libc/gen/isfinite.c
26
struct ieee_double *p = (struct ieee_double *)&d;
lib/libc/gen/isinf.c
24
__isinf(double d)
lib/libc/gen/isinf.c
26
struct ieee_double *p = (struct ieee_double *)&d;
lib/libc/gen/isnan.c
24
__isnan(double d)
lib/libc/gen/isnan.c
26
struct ieee_double *p = (struct ieee_double *)&d;
lib/libc/gen/isnormal.c
24
__isnormal(double d)
lib/libc/gen/isnormal.c
26
struct ieee_double *p = (struct ieee_double *)&d;
lib/libc/gen/ldexp.c
52
#define EXTRACT_WORDS(ix0,ix1,d) \
lib/libc/gen/ldexp.c
55
ew_u.value = (d); \
lib/libc/gen/ldexp.c
62
#define GET_HIGH_WORD(i,d) \
lib/libc/gen/ldexp.c
65
gh_u.value = (d); \
lib/libc/gen/ldexp.c
71
#define SET_HIGH_WORD(d,v) \
lib/libc/gen/ldexp.c
74
sh_u.value = (d); \
lib/libc/gen/ldexp.c
76
(d) = sh_u.value; \
lib/libc/gen/scandir.c
116
p = malloc(DIRSIZ(d));
lib/libc/gen/scandir.c
120
p->d_ino = d->d_ino;
lib/libc/gen/scandir.c
121
p->d_type = d->d_type;
lib/libc/gen/scandir.c
122
p->d_reclen = d->d_reclen;
lib/libc/gen/scandir.c
123
p->d_namlen = d->d_namlen;
lib/libc/gen/scandir.c
124
bcopy(d->d_name, p->d_name, p->d_namlen + 1);
lib/libc/gen/scandir.c
67
struct dirent *d, *p, **names = NULL;
lib/libc/gen/scandir.c
88
while ((d = readdir(dirp)) != NULL) {
lib/libc/gen/scandir.c
89
if (select != NULL && !(*select)(d))
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/gen/signbit.c
24
__signbit(double d)
lib/libc/gen/signbit.c
26
struct ieee_double *p = (struct ieee_double *)&d;
lib/libc/hash/md5.c
163
u_int32_t a, b, c, d, in[MD5_BLOCK_LENGTH / 4];
lib/libc/hash/md5.c
180
d = state[3];
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
253
state[3] += d;
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
188
d = state[3];
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
282
d = state[3];
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
371
t = state[1] + cc + d;
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
105
T = crypto_rol_u32(*a, 5) + Parity(*b, *c, *d) + *e + Kt + Wt;
lib/libc/hash/sha1.c
107
*e = *d;
lib/libc/hash/sha1.c
108
*d = *c;
lib/libc/hash/sha1.c
115
sha1_round3(uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d, uint32_t *e,
lib/libc/hash/sha1.c
121
T = crypto_rol_u32(*a, 5) + Maj(*b, *c, *d) + *e + Kt + Wt;
lib/libc/hash/sha1.c
123
*e = *d;
lib/libc/hash/sha1.c
124
*d = *c;
lib/libc/hash/sha1.c
131
sha1_round4(uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d, uint32_t *e,
lib/libc/hash/sha1.c
137
T = crypto_rol_u32(*a, 5) + Parity(*b, *c, *d) + *e + Kt + Wt;
lib/libc/hash/sha1.c
139
*e = *d;
lib/libc/hash/sha1.c
140
*d = *c;
lib/libc/hash/sha1.c
151
uint32_t a, b, c, d, e;
lib/libc/hash/sha1.c
158
d = state[3];
lib/libc/hash/sha1.c
201
sha1_round1(&a, &b, &c, &d, &e, W[0]);
lib/libc/hash/sha1.c
202
sha1_round1(&a, &b, &c, &d, &e, W[1]);
lib/libc/hash/sha1.c
203
sha1_round1(&a, &b, &c, &d, &e, W[2]);
lib/libc/hash/sha1.c
204
sha1_round1(&a, &b, &c, &d, &e, W[3]);
lib/libc/hash/sha1.c
205
sha1_round1(&a, &b, &c, &d, &e, W[4]);
lib/libc/hash/sha1.c
206
sha1_round1(&a, &b, &c, &d, &e, W[5]);
lib/libc/hash/sha1.c
207
sha1_round1(&a, &b, &c, &d, &e, W[6]);
lib/libc/hash/sha1.c
208
sha1_round1(&a, &b, &c, &d, &e, W[7]);
lib/libc/hash/sha1.c
209
sha1_round1(&a, &b, &c, &d, &e, W[8]);
lib/libc/hash/sha1.c
210
sha1_round1(&a, &b, &c, &d, &e, W[9]);
lib/libc/hash/sha1.c
211
sha1_round1(&a, &b, &c, &d, &e, W[10]);
lib/libc/hash/sha1.c
212
sha1_round1(&a, &b, &c, &d, &e, W[11]);
lib/libc/hash/sha1.c
213
sha1_round1(&a, &b, &c, &d, &e, W[12]);
lib/libc/hash/sha1.c
214
sha1_round1(&a, &b, &c, &d, &e, W[13]);
lib/libc/hash/sha1.c
215
sha1_round1(&a, &b, &c, &d, &e, W[14]);
lib/libc/hash/sha1.c
216
sha1_round1(&a, &b, &c, &d, &e, W[15]);
lib/libc/hash/sha1.c
235
sha1_round1(&a, &b, &c, &d, &e, W[0]);
lib/libc/hash/sha1.c
236
sha1_round1(&a, &b, &c, &d, &e, W[1]);
lib/libc/hash/sha1.c
237
sha1_round1(&a, &b, &c, &d, &e, W[2]);
lib/libc/hash/sha1.c
238
sha1_round1(&a, &b, &c, &d, &e, W[3]);
lib/libc/hash/sha1.c
239
sha1_round2(&a, &b, &c, &d, &e, W[4]);
lib/libc/hash/sha1.c
240
sha1_round2(&a, &b, &c, &d, &e, W[5]);
lib/libc/hash/sha1.c
241
sha1_round2(&a, &b, &c, &d, &e, W[6]);
lib/libc/hash/sha1.c
242
sha1_round2(&a, &b, &c, &d, &e, W[7]);
lib/libc/hash/sha1.c
243
sha1_round2(&a, &b, &c, &d, &e, W[8]);
lib/libc/hash/sha1.c
244
sha1_round2(&a, &b, &c, &d, &e, W[9]);
lib/libc/hash/sha1.c
245
sha1_round2(&a, &b, &c, &d, &e, W[10]);
lib/libc/hash/sha1.c
246
sha1_round2(&a, &b, &c, &d, &e, W[11]);
lib/libc/hash/sha1.c
247
sha1_round2(&a, &b, &c, &d, &e, W[12]);
lib/libc/hash/sha1.c
248
sha1_round2(&a, &b, &c, &d, &e, W[13]);
lib/libc/hash/sha1.c
249
sha1_round2(&a, &b, &c, &d, &e, W[14]);
lib/libc/hash/sha1.c
250
sha1_round2(&a, &b, &c, &d, &e, W[15]);
lib/libc/hash/sha1.c
269
sha1_round2(&a, &b, &c, &d, &e, W[0]);
lib/libc/hash/sha1.c
270
sha1_round2(&a, &b, &c, &d, &e, W[1]);
lib/libc/hash/sha1.c
271
sha1_round2(&a, &b, &c, &d, &e, W[2]);
lib/libc/hash/sha1.c
272
sha1_round2(&a, &b, &c, &d, &e, W[3]);
lib/libc/hash/sha1.c
273
sha1_round2(&a, &b, &c, &d, &e, W[4]);
lib/libc/hash/sha1.c
274
sha1_round2(&a, &b, &c, &d, &e, W[5]);
lib/libc/hash/sha1.c
275
sha1_round2(&a, &b, &c, &d, &e, W[6]);
lib/libc/hash/sha1.c
276
sha1_round2(&a, &b, &c, &d, &e, W[7]);
lib/libc/hash/sha1.c
277
sha1_round3(&a, &b, &c, &d, &e, W[8]);
lib/libc/hash/sha1.c
278
sha1_round3(&a, &b, &c, &d, &e, W[9]);
lib/libc/hash/sha1.c
279
sha1_round3(&a, &b, &c, &d, &e, W[10]);
lib/libc/hash/sha1.c
280
sha1_round3(&a, &b, &c, &d, &e, W[11]);
lib/libc/hash/sha1.c
281
sha1_round3(&a, &b, &c, &d, &e, W[12]);
lib/libc/hash/sha1.c
282
sha1_round3(&a, &b, &c, &d, &e, W[13]);
lib/libc/hash/sha1.c
283
sha1_round3(&a, &b, &c, &d, &e, W[14]);
lib/libc/hash/sha1.c
284
sha1_round3(&a, &b, &c, &d, &e, W[15]);
lib/libc/hash/sha1.c
303
sha1_round3(&a, &b, &c, &d, &e, W[0]);
lib/libc/hash/sha1.c
304
sha1_round3(&a, &b, &c, &d, &e, W[1]);
lib/libc/hash/sha1.c
305
sha1_round3(&a, &b, &c, &d, &e, W[2]);
lib/libc/hash/sha1.c
306
sha1_round3(&a, &b, &c, &d, &e, W[3]);
lib/libc/hash/sha1.c
307
sha1_round3(&a, &b, &c, &d, &e, W[4]);
lib/libc/hash/sha1.c
308
sha1_round3(&a, &b, &c, &d, &e, W[5]);
lib/libc/hash/sha1.c
309
sha1_round3(&a, &b, &c, &d, &e, W[6]);
lib/libc/hash/sha1.c
310
sha1_round3(&a, &b, &c, &d, &e, W[7]);
lib/libc/hash/sha1.c
311
sha1_round3(&a, &b, &c, &d, &e, W[8]);
lib/libc/hash/sha1.c
312
sha1_round3(&a, &b, &c, &d, &e, W[9]);
lib/libc/hash/sha1.c
313
sha1_round3(&a, &b, &c, &d, &e, W[10]);
lib/libc/hash/sha1.c
314
sha1_round3(&a, &b, &c, &d, &e, W[11]);
lib/libc/hash/sha1.c
315
sha1_round4(&a, &b, &c, &d, &e, W[12]);
lib/libc/hash/sha1.c
316
sha1_round4(&a, &b, &c, &d, &e, W[13]);
lib/libc/hash/sha1.c
317
sha1_round4(&a, &b, &c, &d, &e, W[14]);
lib/libc/hash/sha1.c
318
sha1_round4(&a, &b, &c, &d, &e, W[15]);
lib/libc/hash/sha1.c
337
sha1_round4(&a, &b, &c, &d, &e, W[0]);
lib/libc/hash/sha1.c
338
sha1_round4(&a, &b, &c, &d, &e, W[1]);
lib/libc/hash/sha1.c
339
sha1_round4(&a, &b, &c, &d, &e, W[2]);
lib/libc/hash/sha1.c
340
sha1_round4(&a, &b, &c, &d, &e, W[3]);
lib/libc/hash/sha1.c
341
sha1_round4(&a, &b, &c, &d, &e, W[4]);
lib/libc/hash/sha1.c
342
sha1_round4(&a, &b, &c, &d, &e, W[5]);
lib/libc/hash/sha1.c
343
sha1_round4(&a, &b, &c, &d, &e, W[6]);
lib/libc/hash/sha1.c
344
sha1_round4(&a, &b, &c, &d, &e, W[7]);
lib/libc/hash/sha1.c
345
sha1_round4(&a, &b, &c, &d, &e, W[8]);
lib/libc/hash/sha1.c
346
sha1_round4(&a, &b, &c, &d, &e, W[9]);
lib/libc/hash/sha1.c
347
sha1_round4(&a, &b, &c, &d, &e, W[10]);
lib/libc/hash/sha1.c
348
sha1_round4(&a, &b, &c, &d, &e, W[11]);
lib/libc/hash/sha1.c
349
sha1_round4(&a, &b, &c, &d, &e, W[12]);
lib/libc/hash/sha1.c
350
sha1_round4(&a, &b, &c, &d, &e, W[13]);
lib/libc/hash/sha1.c
351
sha1_round4(&a, &b, &c, &d, &e, W[14]);
lib/libc/hash/sha1.c
352
sha1_round4(&a, &b, &c, &d, &e, W[15]);
lib/libc/hash/sha1.c
357
state[3] += d;
lib/libc/hash/sha1.c
369
uint32_t a, b, c, d, e;
lib/libc/hash/sha1.c
377
d = state[3];
lib/libc/hash/sha1.c
389
sha1_round1(&a, &b, &c, &d, &e, W[i % 16]);
lib/libc/hash/sha1.c
391
sha1_round2(&a, &b, &c, &d, &e, W[i % 16]);
lib/libc/hash/sha1.c
393
sha1_round3(&a, &b, &c, &d, &e, W[i % 16]);
lib/libc/hash/sha1.c
395
sha1_round4(&a, &b, &c, &d, &e, W[i % 16]);
lib/libc/hash/sha1.c
404
state[3] += d;
lib/libc/hash/sha1.c
83
sha1_round1(uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d, uint32_t *e,
lib/libc/hash/sha1.c
89
T = crypto_rol_u32(*a, 5) + Ch(*b, *c, *d) + *e + Kt + Wt;
lib/libc/hash/sha1.c
91
*e = *d;
lib/libc/hash/sha1.c
92
*d = *c;
lib/libc/hash/sha1.c
99
sha1_round2(uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d, uint32_t *e,
lib/libc/hash/sha256.c
125
sha256_round(uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d, uint32_t *e,
lib/libc/hash/sha256.c
136
*e = *d + T1;
lib/libc/hash/sha256.c
137
*d = *c;
lib/libc/hash/sha256.c
148
uint32_t a, b, c, d, e, f, g, h;
lib/libc/hash/sha256.c
156
d = state[3];
lib/libc/hash/sha256.c
202
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[0], W[0]);
lib/libc/hash/sha256.c
203
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[1], W[1]);
lib/libc/hash/sha256.c
204
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[2], W[2]);
lib/libc/hash/sha256.c
205
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[3], W[3]);
lib/libc/hash/sha256.c
206
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[4], W[4]);
lib/libc/hash/sha256.c
207
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[5], W[5]);
lib/libc/hash/sha256.c
208
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[6], W[6]);
lib/libc/hash/sha256.c
209
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[7], W[7]);
lib/libc/hash/sha256.c
210
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[8], W[8]);
lib/libc/hash/sha256.c
211
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[9], W[9]);
lib/libc/hash/sha256.c
212
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[10], W[10]);
lib/libc/hash/sha256.c
213
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[11], W[11]);
lib/libc/hash/sha256.c
214
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[12], W[12]);
lib/libc/hash/sha256.c
215
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[13], W[13]);
lib/libc/hash/sha256.c
216
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[14], W[14]);
lib/libc/hash/sha256.c
217
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[15], W[15]);
lib/libc/hash/sha256.c
237
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 0], W[0]);
lib/libc/hash/sha256.c
238
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 1], W[1]);
lib/libc/hash/sha256.c
239
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 2], W[2]);
lib/libc/hash/sha256.c
240
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 3], W[3]);
lib/libc/hash/sha256.c
241
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 4], W[4]);
lib/libc/hash/sha256.c
242
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 5], W[5]);
lib/libc/hash/sha256.c
243
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 6], W[6]);
lib/libc/hash/sha256.c
244
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 7], W[7]);
lib/libc/hash/sha256.c
245
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 8], W[8]);
lib/libc/hash/sha256.c
246
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 9], W[9]);
lib/libc/hash/sha256.c
247
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 10], W[10]);
lib/libc/hash/sha256.c
248
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 11], W[11]);
lib/libc/hash/sha256.c
249
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 12], W[12]);
lib/libc/hash/sha256.c
250
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 13], W[13]);
lib/libc/hash/sha256.c
251
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 14], W[14]);
lib/libc/hash/sha256.c
252
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 15], W[15]);
lib/libc/hash/sha256.c
258
state[3] += d;
lib/libc/hash/sha256.c
273
uint32_t a, b, c, d, e, f, g, h;
lib/libc/hash/sha256.c
281
d = state[3];
lib/libc/hash/sha256.c
294
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i], W[i % 16]);
lib/libc/hash/sha256.c
302
state[3] += d;
lib/libc/hash/sha512.c
143
sha512_round(uint64_t *a, uint64_t *b, uint64_t *c, uint64_t *d,
lib/libc/hash/sha512.c
155
*e = *d + T1;
lib/libc/hash/sha512.c
156
*d = *c;
lib/libc/hash/sha512.c
167
uint64_t a, b, c, d, e, f, g, h;
lib/libc/hash/sha512.c
175
d = state[3];
lib/libc/hash/sha512.c
221
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[0], W[0]);
lib/libc/hash/sha512.c
222
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[1], W[1]);
lib/libc/hash/sha512.c
223
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[2], W[2]);
lib/libc/hash/sha512.c
224
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[3], W[3]);
lib/libc/hash/sha512.c
225
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[4], W[4]);
lib/libc/hash/sha512.c
226
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[5], W[5]);
lib/libc/hash/sha512.c
227
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[6], W[6]);
lib/libc/hash/sha512.c
228
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[7], W[7]);
lib/libc/hash/sha512.c
229
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[8], W[8]);
lib/libc/hash/sha512.c
230
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[9], W[9]);
lib/libc/hash/sha512.c
231
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[10], W[10]);
lib/libc/hash/sha512.c
232
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[11], W[11]);
lib/libc/hash/sha512.c
233
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[12], W[12]);
lib/libc/hash/sha512.c
234
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[13], W[13]);
lib/libc/hash/sha512.c
235
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[14], W[14]);
lib/libc/hash/sha512.c
236
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[15], W[15]);
lib/libc/hash/sha512.c
256
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 0], W[0]);
lib/libc/hash/sha512.c
257
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 1], W[1]);
lib/libc/hash/sha512.c
258
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 2], W[2]);
lib/libc/hash/sha512.c
259
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 3], W[3]);
lib/libc/hash/sha512.c
260
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 4], W[4]);
lib/libc/hash/sha512.c
261
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 5], W[5]);
lib/libc/hash/sha512.c
262
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 6], W[6]);
lib/libc/hash/sha512.c
263
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 7], W[7]);
lib/libc/hash/sha512.c
264
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 8], W[8]);
lib/libc/hash/sha512.c
265
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 9], W[9]);
lib/libc/hash/sha512.c
266
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 10], W[10]);
lib/libc/hash/sha512.c
267
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 11], W[11]);
lib/libc/hash/sha512.c
268
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 12], W[12]);
lib/libc/hash/sha512.c
269
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 13], W[13]);
lib/libc/hash/sha512.c
270
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 14], W[14]);
lib/libc/hash/sha512.c
271
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i + 15], W[15]);
lib/libc/hash/sha512.c
277
state[3] += d;
lib/libc/hash/sha512.c
292
uint64_t a, b, c, d, e, f, g, h;
lib/libc/hash/sha512.c
300
d = state[3];
lib/libc/hash/sha512.c
313
sha512_round(&a, &b, &c, &d, &e, &f, &g, &h, K512[i], W[i % 16]);
lib/libc/hash/sha512.c
321
state[3] += d;
lib/libc/quad/floatdidf.c
43
double d;
lib/libc/quad/floatdidf.c
62
d = (double)u.ul[H] * (((int)1 << (INT_BITS - 2)) * 4.0);
lib/libc/quad/floatdidf.c
63
d += u.ul[L];
lib/libc/quad/floatdidf.c
65
return (neg ? -d : d);
lib/libc/quad/floatunsdidf.c
44
double d;
lib/libc/quad/floatunsdidf.c
48
d = (double)u.ul[H] * (((int)1 << (INT_BITS - 2)) * 4.0);
lib/libc/quad/floatunsdidf.c
49
d += u.ul[L];
lib/libc/quad/floatunsdidf.c
50
return (d);
lib/libc/quad/qdivrem.c
165
d = 0;
lib/libc/quad/qdivrem.c
167
d++;
lib/libc/quad/qdivrem.c
168
if (d > 0) {
lib/libc/quad/qdivrem.c
169
shl(&u[0], m + n, d); /* u <<= d */
lib/libc/quad/qdivrem.c
170
shl(&v[1], n - 1, d); /* v <<= d */
lib/libc/quad/qdivrem.c
244
if (d) {
lib/libc/quad/qdivrem.c
246
u[i] = (digit)(((u_int)u[i] >> d) |
lib/libc/quad/qdivrem.c
247
LHALF((u_int)u[i - 1] << (HALF_BITS - d)));
lib/libc/quad/qdivrem.c
71
int m, n, d, j, i;
lib/libc/regex/engine.c
965
print(struct match *m, const char *caption, states st, int ch, FILE *d)
lib/libc/regex/engine.c
974
(void)fprintf(d, "%s", caption);
lib/libc/regex/engine.c
975
(void)fprintf(d, " %s", pchar(ch));
lib/libc/regex/engine.c
978
(void)fprintf(d, "%s%d", (first) ? "\t" : ", ", i);
lib/libc/regex/engine.c
982
(void)fprintf(d, "\n");
lib/libc/regex/regexec.c
109
#define ASSIGN(d, s) memcpy(d, s, m->g->nstates)
lib/libc/regex/regexec.c
62
#define ASSIGN(d, s) ((d) = (s))
lib/libc/regex/utils.h
54
#define memmove(d, s, c) bcopy(s, d, c)
lib/libc/rpc/getrpcent.c
109
struct rpcdata *d = _rpcdata();
lib/libc/rpc/getrpcent.c
111
if (d == NULL)
lib/libc/rpc/getrpcent.c
113
if (d->rpcf == NULL)
lib/libc/rpc/getrpcent.c
114
d->rpcf = fopen(RPCDB, "re");
lib/libc/rpc/getrpcent.c
116
rewind(d->rpcf);
lib/libc/rpc/getrpcent.c
117
d->stayopen |= f;
lib/libc/rpc/getrpcent.c
124
struct rpcdata *d = _rpcdata();
lib/libc/rpc/getrpcent.c
126
if (d == NULL)
lib/libc/rpc/getrpcent.c
128
if (d->rpcf && !d->stayopen) {
lib/libc/rpc/getrpcent.c
129
fclose(d->rpcf);
lib/libc/rpc/getrpcent.c
130
d->rpcf = NULL;
lib/libc/rpc/getrpcent.c
138
struct rpcdata *d = _rpcdata();
lib/libc/rpc/getrpcent.c
140
if (d == NULL)
lib/libc/rpc/getrpcent.c
142
if (d->rpcf == NULL && (d->rpcf = fopen(RPCDB, "re")) == NULL)
lib/libc/rpc/getrpcent.c
145
if (fgets(d->line, sizeof(d->line) - 1, d->rpcf) == NULL)
lib/libc/rpc/getrpcent.c
147
return (interpret(d->line, strlen(d->line)));
lib/libc/rpc/getrpcent.c
155
struct rpcdata *d = _rpcdata();
lib/libc/rpc/getrpcent.c
159
if (d == NULL)
lib/libc/rpc/getrpcent.c
161
strlcpy(d->line, val, sizeof(d->line));
lib/libc/rpc/getrpcent.c
162
p = d->line;
lib/libc/rpc/getrpcent.c
175
d->rpc.r_name = d->line;
lib/libc/rpc/getrpcent.c
182
d->rpc.r_number = strtonum(num, 0, INT_MAX, &errstr);
lib/libc/rpc/getrpcent.c
185
q = d->rpc.r_aliases = d->rpc_aliases;
lib/libc/rpc/getrpcent.c
191
if (q < &(d->rpc_aliases[MAXALIASES - 1]))
lib/libc/rpc/getrpcent.c
198
return (&d->rpc);
lib/libc/rpc/getrpcent.c
60
struct rpcdata *d = rpcdata;
lib/libc/rpc/getrpcent.c
62
if (d == NULL) {
lib/libc/rpc/getrpcent.c
63
d = calloc(1, sizeof (struct rpcdata));
lib/libc/rpc/getrpcent.c
64
rpcdata = d;
lib/libc/rpc/getrpcent.c
66
return (d);
lib/libc/rpc/getrpcent.c
72
struct rpcdata *d = _rpcdata();
lib/libc/rpc/getrpcent.c
75
if (d == NULL)
lib/libc/stdlib/malloc.c
1019
if (d->chunk_pages_used == chunk_pages ||
lib/libc/stdlib/malloc.c
1020
d->chunk_pages == NULL) {
lib/libc/stdlib/malloc.c
1021
q = MMAP(MALLOC_PAGESIZE * chunk_pages, d->mmap_flag);
lib/libc/stdlib/malloc.c
1024
d->chunk_pages = q;
lib/libc/stdlib/malloc.c
1025
d->chunk_pages_used = 0;
lib/libc/stdlib/malloc.c
1026
STATS_ADD(d->malloc_used, MALLOC_PAGESIZE *
lib/libc/stdlib/malloc.c
1029
q = (char *)d->chunk_pages + d->chunk_pages_used *
lib/libc/stdlib/malloc.c
1031
d->chunk_pages_used++;
lib/libc/stdlib/malloc.c
1035
LIST_INSERT_HEAD(&d->chunk_info_list[bucket], p,
lib/libc/stdlib/malloc.c
1039
p = LIST_FIRST(&d->chunk_info_list[bucket]);
lib/libc/stdlib/malloc.c
1042
init_chunk_info(d, p, bucket);
lib/libc/stdlib/malloc.c
1050
omalloc_make_chunks(struct dir_info *d, u_int bucket, u_int listnum)
lib/libc/stdlib/malloc.c
1057
pp = map(d, MALLOC_PAGESIZE, 0);
lib/libc/stdlib/malloc.c
1061
ff = map(d, MALLOC_PAGESIZE, 0);
lib/libc/stdlib/malloc.c
1072
bp = alloc_chunk_info(d, bucket);
lib/libc/stdlib/malloc.c
1077
if (insert(d, (void *)((uintptr_t)pp | (bucket + 1)), (uintptr_t)bp,
lib/libc/stdlib/malloc.c
1080
LIST_INSERT_HEAD(&d->chunk_dir[bucket][listnum], bp, entries);
lib/libc/stdlib/malloc.c
1082
if (bucket > 0 && d->malloc_junk != 0)
lib/libc/stdlib/malloc.c
1088
unmap(d, pp, MALLOC_PAGESIZE, 0);
lib/libc/stdlib/malloc.c
1090
unmap(d, ff, MALLOC_PAGESIZE, 0);
lib/libc/stdlib/malloc.c
1149
malloc_bytes(struct dir_info *d, size_t size)
lib/libc/stdlib/malloc.c
1156
if (mopts.malloc_canary != (d->canary1 ^ (u_int32_t)(uintptr_t)d) ||
lib/libc/stdlib/malloc.c
1157
d->canary1 != ~d->canary2)
lib/libc/stdlib/malloc.c
1158
wrterror(d, "internal struct corrupt");
lib/libc/stdlib/malloc.c
1162
r = getrbyte(d);
lib/libc/stdlib/malloc.c
1166
if ((bp = LIST_FIRST(&d->chunk_dir[bucket][listnum])) == NULL) {
lib/libc/stdlib/malloc.c
1167
bp = omalloc_make_chunks(d, bucket, listnum);
lib/libc/stdlib/malloc.c
1172
if (bp->canary != (u_short)d->canary1 || bucket != bp->bucket)
lib/libc/stdlib/malloc.c
1173
wrterror(d, "chunk info corrupted");
lib/libc/stdlib/malloc.c
1178
r = r << 8 | getrbyte(d);
lib/libc/stdlib/malloc.c
1213
struct region_info *r = find(d, bp->page);
lib/libc/stdlib/malloc.c
1214
STATS_SETFN(r, k, d->caller);
lib/libc/stdlib/malloc.c
1219
validate_junk(d, p, B2SIZE(bucket));
lib/libc/stdlib/malloc.c
1227
validate_canary(struct dir_info *d, u_char *ptr, size_t sz, size_t allocated)
lib/libc/stdlib/malloc.c
1239
wrterror(d, "canary corrupted %p[%tu]@%zu/%zu%s",
lib/libc/stdlib/malloc.c
1248
find_chunknum(struct dir_info *d, struct chunk_info *info, void *ptr, int check)
lib/libc/stdlib/malloc.c
1252
if (info->canary != (u_short)d->canary1)
lib/libc/stdlib/malloc.c
1253
wrterror(d, "chunk info corrupted");
lib/libc/stdlib/malloc.c
1259
wrterror(d, "modified chunk-pointer %p", ptr);
lib/libc/stdlib/malloc.c
1261
wrterror(d, "double free %p", ptr);
lib/libc/stdlib/malloc.c
1263
validate_canary(d, ptr, info->bits[info->offset + chunknum],
lib/libc/stdlib/malloc.c
1273
free_bytes(struct dir_info *d, struct region_info *r, void *ptr)
lib/libc/stdlib/malloc.c
1281
chunknum = find_chunknum(d, info, ptr, 0);
lib/libc/stdlib/malloc.c
1288
listnum = getrbyte(d) % MALLOC_CHUNK_LISTS;
lib/libc/stdlib/malloc.c
1289
mp = &d->chunk_dir[info->bucket][listnum];
lib/libc/stdlib/malloc.c
1301
unmap(d, info->page, MALLOC_PAGESIZE, 0);
lib/libc/stdlib/malloc.c
1304
unmap(d, r->f, MALLOC_PAGESIZE, MALLOC_PAGESIZE);
lib/libc/stdlib/malloc.c
1309
delete(d, r);
lib/libc/stdlib/malloc.c
1310
mp = &d->chunk_info_list[info->bucket];
lib/libc/stdlib/malloc.c
1387
malloc_recurse(struct dir_info *d)
lib/libc/stdlib/malloc.c
1393
wrterror(d, "recursive call");
lib/libc/stdlib/malloc.c
1395
d->active--;
lib/libc/stdlib/malloc.c
1396
_MALLOC_UNLOCK(d->mutex);
lib/libc/stdlib/malloc.c
1404
struct dir_info *d;
lib/libc/stdlib/malloc.c
1421
sz = mopts.malloc_mutexes * sizeof(*d);
lib/libc/stdlib/malloc.c
1432
d = (struct dir_info *)(p + MALLOC_PAGESIZE +
lib/libc/stdlib/malloc.c
1434
STATS_ADD(d[1].malloc_used, roundup_sz + 2 * MALLOC_PAGESIZE);
lib/libc/stdlib/malloc.c
1436
mopts.malloc_pool[i] = &d[i];
lib/libc/stdlib/malloc.c
1452
d = mopts.malloc_pool[i];
lib/libc/stdlib/malloc.c
1453
d->malloc_mt = from_rthreads;
lib/libc/stdlib/malloc.c
1454
if (d->canary1 == ~d->canary2)
lib/libc/stdlib/malloc.c
1457
omalloc_poolinit(d, MAP_CONCEAL);
lib/libc/stdlib/malloc.c
1458
d->malloc_junk = 2;
lib/libc/stdlib/malloc.c
1459
d->bigcache_size = 0;
lib/libc/stdlib/malloc.c
1461
d->smallcache[j].max = 0;
lib/libc/stdlib/malloc.c
1465
omalloc_poolinit(d, 0);
lib/libc/stdlib/malloc.c
1466
d->malloc_junk = mopts.def_malloc_junk;
lib/libc/stdlib/malloc.c
1467
d->bigcache_size = mopts.def_maxcache;
lib/libc/stdlib/malloc.c
1469
d->smallcache[j].max =
lib/libc/stdlib/malloc.c
1471
sz += d->smallcache[j].max * sizeof(void *);
lib/libc/stdlib/malloc.c
1473
sz += d->bigcache_size * sizeof(struct bigcache);
lib/libc/stdlib/malloc.c
1483
d->smallcache[j].pages = p;
lib/libc/stdlib/malloc.c
1484
p = (char *)p + d->smallcache[j].max *
lib/libc/stdlib/malloc.c
1487
d->bigcache = p;
lib/libc/stdlib/malloc.c
1490
d->mutex = i;
lib/libc/stdlib/malloc.c
1498
d = (p); \
lib/libc/stdlib/malloc.c
1499
if (d == NULL) { \
lib/libc/stdlib/malloc.c
1501
d = (p); \
lib/libc/stdlib/malloc.c
1503
_MALLOC_LOCK(d->mutex); \
lib/libc/stdlib/malloc.c
1504
d->func = fn; \
lib/libc/stdlib/malloc.c
1505
if (d->active++) { \
lib/libc/stdlib/malloc.c
1506
malloc_recurse(d); \
lib/libc/stdlib/malloc.c
1511
d->active--; \
lib/libc/stdlib/malloc.c
1512
_MALLOC_UNLOCK(d->mutex); \
lib/libc/stdlib/malloc.c
1514
wrterror(d, "out of memory"); \
lib/libc/stdlib/malloc.c
1522
struct dir_info *d;
lib/libc/stdlib/malloc.c
1526
SET_CALLER(d, caller(d));
lib/libc/stdlib/malloc.c
1527
r = omalloc(d, size, 0);
lib/libc/stdlib/malloc.c
1537
struct dir_info *d;
lib/libc/stdlib/malloc.c
1541
SET_CALLER(d, caller(d));
lib/libc/stdlib/malloc.c
1542
r = omalloc(d, size, 0);
lib/libc/stdlib/malloc.c
1713
struct dir_info *d;
lib/libc/stdlib/malloc.c
1720
d = getpool();
lib/libc/stdlib/malloc.c
1721
if (d == NULL)
lib/libc/stdlib/malloc.c
1722
wrterror(d, "free() called before allocation");
lib/libc/stdlib/malloc.c
1723
_MALLOC_LOCK(d->mutex);
lib/libc/stdlib/malloc.c
1724
d->func = "free";
lib/libc/stdlib/malloc.c
1725
if (d->active++) {
lib/libc/stdlib/malloc.c
1726
malloc_recurse(d);
lib/libc/stdlib/malloc.c
1729
ofree(&d, ptr, 0, 0, 0);
lib/libc/stdlib/malloc.c
1730
d->active--;
lib/libc/stdlib/malloc.c
1731
_MALLOC_UNLOCK(d->mutex);
lib/libc/stdlib/malloc.c
1746
struct dir_info *d;
lib/libc/stdlib/malloc.c
1758
d = getpool();
lib/libc/stdlib/malloc.c
1759
if (d == NULL)
lib/libc/stdlib/malloc.c
1760
wrterror(d, "freezero() called before allocation");
lib/libc/stdlib/malloc.c
1761
_MALLOC_LOCK(d->mutex);
lib/libc/stdlib/malloc.c
1762
d->func = "freezero";
lib/libc/stdlib/malloc.c
1763
if (d->active++) {
lib/libc/stdlib/malloc.c
1764
malloc_recurse(d);
lib/libc/stdlib/malloc.c
1767
ofree(&d, ptr, 1, 1, sz);
lib/libc/stdlib/malloc.c
1768
d->active--;
lib/libc/stdlib/malloc.c
1769
_MALLOC_UNLOCK(d->mutex);
lib/libc/stdlib/malloc.c
1947
struct dir_info *d;
lib/libc/stdlib/malloc.c
1952
SET_CALLER(d, caller(d));
lib/libc/stdlib/malloc.c
1953
r = orealloc(&d, ptr, size);
lib/libc/stdlib/malloc.c
1968
struct dir_info *d;
lib/libc/stdlib/malloc.c
1973
SET_CALLER(d, caller(d));
lib/libc/stdlib/malloc.c
1976
d->active--;
lib/libc/stdlib/malloc.c
1977
_MALLOC_UNLOCK(d->mutex);
lib/libc/stdlib/malloc.c
1979
wrterror(d, "out of memory");
lib/libc/stdlib/malloc.c
1985
r = omalloc(d, size, 1);
lib/libc/stdlib/malloc.c
1994
struct dir_info *d;
lib/libc/stdlib/malloc.c
1999
SET_CALLER(d, caller(d));
lib/libc/stdlib/malloc.c
2002
d->active--;
lib/libc/stdlib/malloc.c
2003
_MALLOC_UNLOCK(d->mutex);
lib/libc/stdlib/malloc.c
2005
wrterror(d, "out of memory");
lib/libc/stdlib/malloc.c
2011
r = omalloc(d, size, 1);
lib/libc/stdlib/malloc.c
209
static void unmap(struct dir_info *d, void *p, size_t sz, size_t clear);
lib/libc/stdlib/malloc.c
2109
size_t d = oldsize - newsize;
lib/libc/stdlib/malloc.c
2111
if (d < oldsize / 2 && d < MALLOC_PAGESIZE) {
lib/libc/stdlib/malloc.c
2112
memset((char *)ptr + newsize, 0, d);
lib/libc/stdlib/malloc.c
2136
struct dir_info *d;
lib/libc/stdlib/malloc.c
2145
SET_CALLER(d, caller(d));
lib/libc/stdlib/malloc.c
2149
d->active--;
lib/libc/stdlib/malloc.c
2150
_MALLOC_UNLOCK(d->mutex);
lib/libc/stdlib/malloc.c
2152
wrterror(d, "out of memory");
lib/libc/stdlib/malloc.c
2161
d->active--;
lib/libc/stdlib/malloc.c
2162
_MALLOC_UNLOCK(d->mutex);
lib/libc/stdlib/malloc.c
2169
r = orecallocarray(&d, ptr, oldsize, newsize);
lib/libc/stdlib/malloc.c
2176
mapalign(struct dir_info *d, size_t alignment, size_t sz, int zero_fill)
lib/libc/stdlib/malloc.c
2181
wrterror(d, "mapalign bad alignment");
lib/libc/stdlib/malloc.c
2183
wrterror(d, "mapalign round");
lib/libc/stdlib/malloc.c
2194
p = map(d, sz + alignment, zero_fill);
lib/libc/stdlib/malloc.c
2200
wrterror(d, "munmap %p", p);
lib/libc/stdlib/malloc.c
2203
wrterror(d, "munmap %p", q + sz);
lib/libc/stdlib/malloc.c
2204
STATS_SUB(d->malloc_used, alignment);
lib/libc/stdlib/malloc.c
2285
struct dir_info *d;
lib/libc/stdlib/malloc.c
2293
d = getpool();
lib/libc/stdlib/malloc.c
2294
if (d == NULL) {
lib/libc/stdlib/malloc.c
2296
d = getpool();
lib/libc/stdlib/malloc.c
2298
_MALLOC_LOCK(d->mutex);
lib/libc/stdlib/malloc.c
2299
d->func = "posix_memalign";
lib/libc/stdlib/malloc.c
2300
if (d->active++) {
lib/libc/stdlib/malloc.c
2301
malloc_recurse(d);
lib/libc/stdlib/malloc.c
2304
SET_CALLER(d, caller(d));
lib/libc/stdlib/malloc.c
2305
r = omemalign(d, alignment, size, 0);
lib/libc/stdlib/malloc.c
2306
d->active--;
lib/libc/stdlib/malloc.c
2307
_MALLOC_UNLOCK(d->mutex);
lib/libc/stdlib/malloc.c
2310
wrterror(d, "out of memory");
lib/libc/stdlib/malloc.c
2327
struct dir_info *d;
lib/libc/stdlib/malloc.c
2343
SET_CALLER(d, caller(d));
lib/libc/stdlib/malloc.c
2344
r = omemalign(d, alignment, size, 0);
lib/libc/stdlib/malloc.c
2361
store_caller(struct dir_info *d, struct btnode *f)
lib/libc/stdlib/malloc.c
2365
if (DO_STATS == 0 || d->btnodes == MAP_FAILED)
lib/libc/stdlib/malloc.c
2368
p = RBT_FIND(btshead, &d->btraces, f);
lib/libc/stdlib/malloc.c
2371
if (d->btnodes == NULL ||
lib/libc/stdlib/malloc.c
2372
d->btnodesused >= MALLOC_PAGESIZE / sizeof(struct btnode)) {
lib/libc/stdlib/malloc.c
2373
d->btnodes = map(d, MALLOC_PAGESIZE, 0);
lib/libc/stdlib/malloc.c
2374
if (d->btnodes == MAP_FAILED)
lib/libc/stdlib/malloc.c
2376
d->btnodesused = 0;
lib/libc/stdlib/malloc.c
2378
p = &d->btnodes[d->btnodesused++];
lib/libc/stdlib/malloc.c
2380
RBT_INSERT(btshead, &d->btraces, p);
lib/libc/stdlib/malloc.c
2459
struct malloc_leak d;
lib/libc/stdlib/malloc.c
2465
return e1->d.f < e2->d.f ? -1 : e1->d.f > e2->d.f;
lib/libc/stdlib/malloc.c
2498
key.d.f = f;
lib/libc/stdlib/malloc.c
2511
p->d.f = f;
lib/libc/stdlib/malloc.c
2512
p->d.total_size = sz * cnt;
lib/libc/stdlib/malloc.c
2513
p->d.count = cnt;
lib/libc/stdlib/malloc.c
2516
p->d.total_size += sz * cnt;
lib/libc/stdlib/malloc.c
2517
p->d.count += cnt;
lib/libc/stdlib/malloc.c
2542
if (p->d.f == NULL) {
lib/libc/stdlib/malloc.c
2545
p->d.f, p->d.total_size, p->d.count,
lib/libc/stdlib/malloc.c
2546
p->d.total_size / p->d.count, buf);
lib/libc/stdlib/malloc.c
2553
abscaller = ((struct btnode*)p->d.f)->caller[i];
lib/libc/stdlib/malloc.c
2559
abscaller, p->d.total_size, p->d.count,
lib/libc/stdlib/malloc.c
2560
p->d.total_size / p->d.count, buf);
lib/libc/stdlib/malloc.c
2603
dump_free_chunk_info(struct dir_info *d, struct leaktree *leaks)
lib/libc/stdlib/malloc.c
2613
LIST_FOREACH(p, &d->chunk_info_list[i], entries)
lib/libc/stdlib/malloc.c
2616
p = LIST_FIRST(&d->chunk_dir[i][j]);
lib/libc/stdlib/malloc.c
2633
dump_free_page_info(struct dir_info *d)
lib/libc/stdlib/malloc.c
2640
cache = &d->smallcache[i];
lib/libc/stdlib/malloc.c
2647
ulog("Cached in big cache: %zu/%zu\n", d->bigcache_used,
lib/libc/stdlib/malloc.c
2648
d->bigcache_size);
lib/libc/stdlib/malloc.c
2649
for (i = 0; i < d->bigcache_size; i++) {
lib/libc/stdlib/malloc.c
2650
if (d->bigcache[i].psize != 0)
lib/libc/stdlib/malloc.c
2651
ulog("%zu: %zu\n", i, d->bigcache[i].psize);
lib/libc/stdlib/malloc.c
2652
total += d->bigcache[i].psize;
lib/libc/stdlib/malloc.c
2658
malloc_dump1(int poolno, struct dir_info *d, struct leaktree *leaks)
lib/libc/stdlib/malloc.c
2663
ulog("Malloc dir of %s pool %d at %p\n", __progname, poolno, d);
lib/libc/stdlib/malloc.c
2664
ulog("MT=%d J=%d Fl=%#x\n", d->malloc_mt, d->malloc_junk,
lib/libc/stdlib/malloc.c
2665
d->mmap_flag);
lib/libc/stdlib/malloc.c
2667
d->regions_free, d->regions_total);
lib/libc/stdlib/malloc.c
2668
ulog("Inserts %zu/%zu\n", d->inserts, d->insert_collisions);
lib/libc/stdlib/malloc.c
2669
ulog("Deletes %zu/%zu\n", d->deletes, d->delete_moves);
lib/libc/stdlib/malloc.c
2671
d->cheap_reallocs, d->cheap_realloc_tries);
lib/libc/stdlib/malloc.c
2672
ulog("In use %zu\n", d->malloc_used);
lib/libc/stdlib/malloc.c
2673
ulog("Guarded %zu\n", d->malloc_guarded);
lib/libc/stdlib/malloc.c
2674
dump_free_chunk_info(d, leaks);
lib/libc/stdlib/malloc.c
2675
dump_free_page_info(d);
lib/libc/stdlib/malloc.c
2680
for (i = 0; i < d->regions_total; i++) {
lib/libc/stdlib/malloc.c
2681
if (d->r[i].p != NULL) {
lib/libc/stdlib/malloc.c
2682
size_t h = hash(d->r[i].p) &
lib/libc/stdlib/malloc.c
2683
(d->regions_total - 1);
lib/libc/stdlib/malloc.c
2687
REALSIZE(realsize, &d->r[i]);
lib/libc/stdlib/malloc.c
2689
putleakinfo(leaks, d->r[i].f, realsize, 1);
lib/libc/stdlib/malloc.c
269
static __dead void wrterror(struct dir_info *d, char *msg, ...)
lib/libc/stdlib/malloc.c
2691
ulog("pages %18p %18p %zu\n", d->r[i].p,
lib/libc/stdlib/malloc.c
2692
d->r[i].f, realsize);
lib/libc/stdlib/malloc.c
2695
(struct chunk_info *)d->r[i].size,
lib/libc/stdlib/malloc.c
2696
d->r[i].f, 0);
lib/libc/stdlib/malloc.c
287
caller(struct dir_info *d)
lib/libc/stdlib/malloc.c
308
return store_caller(d, &p);
lib/libc/stdlib/malloc.c
312
static inline void* caller(struct dir_info *d)
lib/libc/stdlib/malloc.c
320
return store_caller(d, &p);
lib/libc/stdlib/malloc.c
359
wrterror(struct dir_info *d, char *msg, ...)
lib/libc/stdlib/malloc.c
365
getpid(), (d != NULL && d->func) ? d->func : "unknown");
lib/libc/stdlib/malloc.c
382
rbytes_init(struct dir_info *d)
lib/libc/stdlib/malloc.c
384
arc4random_buf(d->rbytes, sizeof(d->rbytes));
lib/libc/stdlib/malloc.c
386
d->rbytesused = 1 + d->rbytes[0] % (sizeof(d->rbytes) / 2);
lib/libc/stdlib/malloc.c
390
getrbyte(struct dir_info *d)
lib/libc/stdlib/malloc.c
394
if (d->rbytesused >= sizeof(d->rbytes))
lib/libc/stdlib/malloc.c
395
rbytes_init(d);
lib/libc/stdlib/malloc.c
396
x = d->rbytes[d->rbytesused++];
lib/libc/stdlib/malloc.c
576
omalloc_poolinit(struct dir_info *d, int mmap_flag)
lib/libc/stdlib/malloc.c
580
d->r = NULL;
lib/libc/stdlib/malloc.c
581
d->rbytesused = sizeof(d->rbytes);
lib/libc/stdlib/malloc.c
582
d->regions_free = d->regions_total = 0;
lib/libc/stdlib/malloc.c
584
LIST_INIT(&d->chunk_info_list[i]);
lib/libc/stdlib/malloc.c
586
LIST_INIT(&d->chunk_dir[i][j]);
lib/libc/stdlib/malloc.c
588
d->mmap_flag = mmap_flag;
lib/libc/stdlib/malloc.c
589
d->malloc_junk = mopts.def_malloc_junk;
lib/libc/stdlib/malloc.c
591
RBT_INIT(btshead, &d->btraces);
lib/libc/stdlib/malloc.c
593
d->canary1 = mopts.malloc_canary ^ (u_int32_t)(uintptr_t)d;
lib/libc/stdlib/malloc.c
594
d->canary2 = ~d->canary1;
lib/libc/stdlib/malloc.c
598
omalloc_grow(struct dir_info *d)
lib/libc/stdlib/malloc.c
606
if (d->regions_total > SIZE_MAX / sizeof(struct region_info) / 2)
lib/libc/stdlib/malloc.c
609
newtotal = d->regions_total == 0 ? MALLOC_INITIAL_REGIONS :
lib/libc/stdlib/malloc.c
610
d->regions_total * 2;
lib/libc/stdlib/malloc.c
615
p = MMAP(newsize, d->mmap_flag);
lib/libc/stdlib/malloc.c
619
STATS_ADD(d->malloc_used, newsize);
lib/libc/stdlib/malloc.c
620
STATS_ZERO(d->inserts);
lib/libc/stdlib/malloc.c
621
STATS_ZERO(d->insert_collisions);
lib/libc/stdlib/malloc.c
622
for (i = 0; i < d->regions_total; i++) {
lib/libc/stdlib/malloc.c
623
void *q = d->r[i].p;
lib/libc/stdlib/malloc.c
626
STATS_INC(d->inserts);
lib/libc/stdlib/malloc.c
629
STATS_INC(d->insert_collisions);
lib/libc/stdlib/malloc.c
631
p[index] = d->r[i];
lib/libc/stdlib/malloc.c
635
if (d->regions_total > 0) {
lib/libc/stdlib/malloc.c
636
oldpsz = PAGEROUND(d->regions_total *
lib/libc/stdlib/malloc.c
639
unmap(d, d->r, oldpsz, oldpsz);
lib/libc/stdlib/malloc.c
641
d->regions_free += newtotal - d->regions_total;
lib/libc/stdlib/malloc.c
642
d->regions_total = newtotal;
lib/libc/stdlib/malloc.c
643
d->r = p;
lib/libc/stdlib/malloc.c
652
insert(struct dir_info *d, void *p, size_t sz, void *f)
lib/libc/stdlib/malloc.c
658
if (d->regions_free * 4 < d->regions_total || d->regions_total == 0) {
lib/libc/stdlib/malloc.c
659
if (omalloc_grow(d))
lib/libc/stdlib/malloc.c
662
mask = d->regions_total - 1;
lib/libc/stdlib/malloc.c
664
q = d->r[index].p;
lib/libc/stdlib/malloc.c
665
STATS_INC(d->inserts);
lib/libc/stdlib/malloc.c
668
q = d->r[index].p;
lib/libc/stdlib/malloc.c
669
STATS_INC(d->insert_collisions);
lib/libc/stdlib/malloc.c
671
d->r[index].p = p;
lib/libc/stdlib/malloc.c
672
d->r[index].size = sz;
lib/libc/stdlib/malloc.c
673
STATS_SETF(&d->r[index], f);
lib/libc/stdlib/malloc.c
674
d->regions_free--;
lib/libc/stdlib/malloc.c
679
find(struct dir_info *d, void *p)
lib/libc/stdlib/malloc.c
682
size_t mask = d->regions_total - 1;
lib/libc/stdlib/malloc.c
685
if (mopts.malloc_canary != (d->canary1 ^ (u_int32_t)(uintptr_t)d) ||
lib/libc/stdlib/malloc.c
686
d->canary1 != ~d->canary2)
lib/libc/stdlib/malloc.c
687
wrterror(d, "internal struct corrupt");
lib/libc/stdlib/malloc.c
688
if (d->r == NULL)
lib/libc/stdlib/malloc.c
692
r = d->r[index].p;
lib/libc/stdlib/malloc.c
696
r = d->r[index].p;
lib/libc/stdlib/malloc.c
699
return (q == p && r != NULL) ? &d->r[index] : NULL;
lib/libc/stdlib/malloc.c
703
delete(struct dir_info *d, struct region_info *ri)
lib/libc/stdlib/malloc.c
706
size_t mask = d->regions_total - 1;
lib/libc/stdlib/malloc.c
709
if (d->regions_total & (d->regions_total - 1))
lib/libc/stdlib/malloc.c
710
wrterror(d, "regions_total not 2^x");
lib/libc/stdlib/malloc.c
711
d->regions_free++;
lib/libc/stdlib/malloc.c
712
STATS_INC(d->deletes);
lib/libc/stdlib/malloc.c
714
i = ri - d->r;
lib/libc/stdlib/malloc.c
716
d->r[i].p = NULL;
lib/libc/stdlib/malloc.c
717
d->r[i].size = 0;
lib/libc/stdlib/malloc.c
721
if (d->r[i].p == NULL)
lib/libc/stdlib/malloc.c
723
r = hash(d->r[i].p) & mask;
lib/libc/stdlib/malloc.c
727
d->r[j] = d->r[i];
lib/libc/stdlib/malloc.c
728
STATS_INC(d->delete_moves);
lib/libc/stdlib/malloc.c
796
unmap(struct dir_info *d, void *p, size_t sz, size_t clear)
lib/libc/stdlib/malloc.c
804
wrterror(d, "munmap round");
lib/libc/stdlib/malloc.c
806
if (d->bigcache_size > 0 && psz > MAX_SMALLCACHEABLE_SIZE &&
lib/libc/stdlib/malloc.c
808
u_short base = getrbyte(d);
lib/libc/stdlib/malloc.c
812
for (j = 0; j < d->bigcache_size / 4; j++) {
lib/libc/stdlib/malloc.c
813
i = (base + j) & (d->bigcache_size - 1);
lib/libc/stdlib/malloc.c
814
if (d->bigcache_used <
lib/libc/stdlib/malloc.c
815
BIGCACHE_FILL(d->bigcache_size)) {
lib/libc/stdlib/malloc.c
816
if (d->bigcache[i].psize == 0)
lib/libc/stdlib/malloc.c
819
if (d->bigcache[i].psize != 0)
lib/libc/stdlib/malloc.c
824
if (d->bigcache[i].psize != 0) {
lib/libc/stdlib/malloc.c
827
r = d->bigcache[i].page;
lib/libc/stdlib/malloc.c
828
d->bigcache_used -= d->bigcache[i].psize;
lib/libc/stdlib/malloc.c
829
tmp = d->bigcache[i].psize << MALLOC_PAGESHIFT;
lib/libc/stdlib/malloc.c
831
validate_junk(d, r, tmp);
lib/libc/stdlib/malloc.c
833
wrterror(d, "munmap %p", r);
lib/libc/stdlib/malloc.c
834
STATS_SUB(d->malloc_used, tmp);
lib/libc/stdlib/malloc.c
841
wrterror(d, "mprotect %p", r);
lib/libc/stdlib/malloc.c
843
junk_free(d->malloc_junk, p, sz);
lib/libc/stdlib/malloc.c
844
d->bigcache[i].page = p;
lib/libc/stdlib/malloc.c
845
d->bigcache[i].psize = psz;
lib/libc/stdlib/malloc.c
846
d->bigcache_used += psz;
lib/libc/stdlib/malloc.c
849
if (psz > MAX_SMALLCACHEABLE_SIZE || d->smallcache[psz - 1].max == 0) {
lib/libc/stdlib/malloc.c
851
wrterror(d, "munmap %p", p);
lib/libc/stdlib/malloc.c
852
STATS_SUB(d->malloc_used, sz);
lib/libc/stdlib/malloc.c
855
cache = &d->smallcache[psz - 1];
lib/libc/stdlib/malloc.c
859
i = getrbyte(d) & (cache->max - 1);
lib/libc/stdlib/malloc.c
864
validate_junk(d, r, sz);
lib/libc/stdlib/malloc.c
866
wrterror(d, "munmap %p", r);
lib/libc/stdlib/malloc.c
867
STATS_SUB(d->malloc_used, sz);
lib/libc/stdlib/malloc.c
878
junk_free(d->malloc_junk, p, sz);
lib/libc/stdlib/malloc.c
884
map(struct dir_info *d, size_t sz, int zero_fill)
lib/libc/stdlib/malloc.c
891
if (mopts.malloc_canary != (d->canary1 ^ (u_int32_t)(uintptr_t)d) ||
lib/libc/stdlib/malloc.c
892
d->canary1 != ~d->canary2)
lib/libc/stdlib/malloc.c
893
wrterror(d, "internal struct corrupt");
lib/libc/stdlib/malloc.c
895
wrterror(d, "map round");
lib/libc/stdlib/malloc.c
898
if (d->bigcache_size > 0 && psz > MAX_SMALLCACHEABLE_SIZE &&
lib/libc/stdlib/malloc.c
900
size_t base = getrbyte(d);
lib/libc/stdlib/malloc.c
901
size_t cached = d->bigcache_used;
lib/libc/stdlib/malloc.c
904
for (j = 0; j < d->bigcache_size && cached >= psz; j++) {
lib/libc/stdlib/malloc.c
905
i = (j + base) & (d->bigcache_size - 1);
lib/libc/stdlib/malloc.c
906
if (d->bigcache[i].psize == psz) {
lib/libc/stdlib/malloc.c
907
p = d->bigcache[i].page;
lib/libc/stdlib/malloc.c
908
d->bigcache_used -= psz;
lib/libc/stdlib/malloc.c
909
d->bigcache[i].page = NULL;
lib/libc/stdlib/malloc.c
910
d->bigcache[i].psize = 0;
lib/libc/stdlib/malloc.c
913
validate_junk(d, p, sz);
lib/libc/stdlib/malloc.c
919
junk_free(d->malloc_junk, p, sz);
lib/libc/stdlib/malloc.c
922
cached -= d->bigcache[i].psize;
lib/libc/stdlib/malloc.c
925
if (psz <= MAX_SMALLCACHEABLE_SIZE && d->smallcache[psz - 1].max > 0) {
lib/libc/stdlib/malloc.c
926
cache = &d->smallcache[psz - 1];
lib/libc/stdlib/malloc.c
932
i = getrbyte(d) % cache->length;
lib/libc/stdlib/malloc.c
941
validate_junk(d, p, sz);
lib/libc/stdlib/malloc.c
947
junk_free(d->malloc_junk, p, sz);
lib/libc/stdlib/malloc.c
951
p = MMAP(cache->max * sz, d->mmap_flag);
lib/libc/stdlib/malloc.c
953
STATS_ADD(d->malloc_used, cache->max * sz);
lib/libc/stdlib/malloc.c
971
p = MMAP(sz, d->mmap_flag);
lib/libc/stdlib/malloc.c
973
STATS_ADD(d->malloc_used, sz);
lib/libc/stdlib/malloc.c
979
init_chunk_info(struct dir_info *d, struct chunk_info *p, u_int bucket)
lib/libc/stdlib/malloc.c
986
p->canary = (u_short)d->canary1;
lib/libc/stdlib/malloc.c
995
alloc_chunk_info(struct dir_info *d, u_int bucket)
lib/libc/stdlib/malloc.c
999
if (LIST_EMPTY(&d->chunk_info_list[bucket])) {
lib/libc/stdlib/recallocarray.c
58
size_t d = oldsize - newsize;
lib/libc/stdlib/recallocarray.c
60
if (d < oldsize / 2 && d < (size_t)getpagesize()) {
lib/libc/stdlib/recallocarray.c
61
memset((char *)ptr + newsize, 0, d);
lib/libc/string/memset.c
40
unsigned char *d = dst;
lib/libc/string/memset.c
43
*d++ = (unsigned char)c;
lib/libc/string/stpncpy.c
41
char *d = dst;
lib/libc/string/stpncpy.c
46
if ((*d++ = *s++) == 0) {
lib/libc/string/stpncpy.c
47
dst = d - 1;
lib/libc/string/stpncpy.c
50
*d++ = 0;
lib/libc/string/strncat.c
44
char *d = dst;
lib/libc/string/strncat.c
47
while (*d != 0)
lib/libc/string/strncat.c
48
d++;
lib/libc/string/strncat.c
50
if ((*d = *s++) == 0)
lib/libc/string/strncat.c
52
d++;
lib/libc/string/strncat.c
54
*d = 0;
lib/libc/string/strncpy.c
45
char *d = dst;
lib/libc/string/strncpy.c
49
if ((*d++ = *s++) == 0) {
lib/libc/string/strncpy.c
52
*d++ = 0;
lib/libc/string/wmemcpy.c
36
wmemcpy(wchar_t *d, const wchar_t *s, size_t n)
lib/libc/string/wmemcpy.c
39
return (wchar_t *)memcpy(d, s, n * sizeof(wchar_t));
lib/libc/string/wmemmove.c
36
wmemmove(wchar_t *d, const wchar_t *s, size_t n)
lib/libc/string/wmemmove.c
39
return (wchar_t *)memmove(d, s, n * sizeof(wchar_t));
lib/libc/time/localtime.c
816
int i, d, m1, yy0, yy1, yy2, dow;
lib/libc/time/localtime.c
868
d = rulep->r_day - dow;
lib/libc/time/localtime.c
869
if (d < 0)
lib/libc/time/localtime.c
870
d += DAYSPERWEEK;
lib/libc/time/localtime.c
872
if (d + DAYSPERWEEK >=
lib/libc/time/localtime.c
875
d += DAYSPERWEEK;
lib/libc/time/localtime.c
881
value += d * SECSPERDAY;
lib/libcrypto/asn1/a_bitstr.c
147
ASN1_BIT_STRING_set(ASN1_BIT_STRING *x, unsigned char *d, int len)
lib/libcrypto/asn1/a_bitstr.c
149
return ASN1_STRING_set(x, d, len);
lib/libcrypto/asn1/a_bitstr.c
217
unsigned char *p, *d;
lib/libcrypto/asn1/a_bitstr.c
268
d = a->data;
lib/libcrypto/asn1/a_bitstr.c
270
memcpy(p, d, len);
lib/libcrypto/asn1/a_octet.c
101
ASN1_OCTET_STRING_set(ASN1_OCTET_STRING *x, const unsigned char *d, int len)
lib/libcrypto/asn1/a_octet.c
103
return ASN1_STRING_set(x, d, len);
lib/libcrypto/asn1/a_time_tm.c
510
ASN1_UTCTIME_check(const ASN1_UTCTIME *d)
lib/libcrypto/asn1/a_time_tm.c
512
if (d->type != V_ASN1_UTCTIME)
lib/libcrypto/asn1/a_time_tm.c
514
return d->type == ASN1_time_parse(d->data, d->length, NULL, d->type);
lib/libcrypto/asn1/a_time_tm.c
556
ASN1_GENERALIZEDTIME_check(const ASN1_GENERALIZEDTIME *d)
lib/libcrypto/asn1/a_time_tm.c
558
if (d->type != V_ASN1_GENERALIZEDTIME)
lib/libcrypto/asn1/a_time_tm.c
560
return d->type == ASN1_time_parse(d->data, d->length, NULL, d->type);
lib/libcrypto/asn1/asn1.h
547
int ASN1_BIT_STRING_set(ASN1_BIT_STRING *a, unsigned char *d, int length);
lib/libcrypto/asn1/t_x509.c
420
int y = 0, M = 0, d = 0, h = 0, m = 0, s = 0;
lib/libcrypto/asn1/t_x509.c
439
d = (v[6] - '0') * 10 + (v[7] - '0');
lib/libcrypto/asn1/t_x509.c
458
mon[M - 1], d, h, m, s, f_len, f, y, (gmt) ? " GMT" : "") <= 0)
lib/libcrypto/asn1/t_x509.c
475
int y = 0, M = 0, d = 0, h = 0, m = 0, s = 0;
lib/libcrypto/asn1/t_x509.c
493
d = (v[4] - '0') * 10 + (v[5] - '0');
lib/libcrypto/asn1/t_x509.c
502
mon[M - 1], d, h, m, s, y + 1900, (gmt) ? " GMT" : "") <= 0)
lib/libcrypto/asn1/x_crl.c
580
if (!X509_NAME_cmp(nm, gen->d.directoryName))
lib/libcrypto/bf/blowfish.c
573
BF_LONG l, d[2];
lib/libcrypto/bf/blowfish.c
576
d[0] = l;
lib/libcrypto/bf/blowfish.c
578
d[1] = l;
lib/libcrypto/bf/blowfish.c
580
BF_encrypt(d, key);
lib/libcrypto/bf/blowfish.c
582
BF_decrypt(d, key);
lib/libcrypto/bf/blowfish.c
583
l = d[0];
lib/libcrypto/bf/blowfish.c
585
l = d[1];
lib/libcrypto/bf/blowfish.c
587
l = d[0] = d[1] = 0;
lib/libcrypto/bf/blowfish.c
603
unsigned char d[8];
lib/libcrypto/bf/blowfish.c
614
dp = (char *)d;
lib/libcrypto/bf/blowfish.c
620
dp = (char *)d;
lib/libcrypto/bf/blowfish.c
627
*(out++)= *(in++)^d[n];
lib/libcrypto/bf/blowfish.c
647
const unsigned char *d, *end;
lib/libcrypto/bf/blowfish.c
655
d = data;
lib/libcrypto/bf/blowfish.c
658
ri= *(d++);
lib/libcrypto/bf/blowfish.c
659
if (d >= end)
lib/libcrypto/bf/blowfish.c
660
d = data;
lib/libcrypto/bf/blowfish.c
663
ri |= *(d++);
lib/libcrypto/bf/blowfish.c
664
if (d >= end)
lib/libcrypto/bf/blowfish.c
665
d = data;
lib/libcrypto/bf/blowfish.c
668
ri |= *(d++);
lib/libcrypto/bf/blowfish.c
669
if (d >= end)
lib/libcrypto/bf/blowfish.c
670
d = data;
lib/libcrypto/bf/blowfish.c
673
ri |= *(d++);
lib/libcrypto/bf/blowfish.c
674
if (d >= end)
lib/libcrypto/bf/blowfish.c
675
d = data;
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
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
285
: [d]"+&r"(d), [r4]"=&r"(r4), [r3]"=&r"(r3), [r2]"=&r"(r2),
lib/libcrypto/bn/arch/amd64/bn_arch.h
55
bn_div_rem_words_inline(BN_ULONG h, BN_ULONG l, BN_ULONG d, BN_ULONG *out_q,
lib/libcrypto/bn/arch/amd64/bn_arch.h
66
: "d"(h), "a"(l), "rm"(d)
lib/libcrypto/bn/arch/i386/bn_arch.h
43
bn_div_rem_words_inline(BN_ULONG h, BN_ULONG l, BN_ULONG d, BN_ULONG *out_q,
lib/libcrypto/bn/arch/i386/bn_arch.h
54
: "a"(l), "d"(h), "rm"(d)
lib/libcrypto/bn/bn.h
313
int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
lib/libcrypto/bn/bn.h
315
#define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx))
lib/libcrypto/bn/bn.h
317
int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx);
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
176
r->d[rn] = carry;
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_convert.c
115
w = bn->d[j++ % bn->dmax];
lib/libcrypto/bn/bn_convert.c
183
bn->d[i++] = w;
lib/libcrypto/bn/bn_convert.c
205
BN_bin2bn(const unsigned char *d, int len, BIGNUM *bn)
lib/libcrypto/bn/bn_convert.c
212
CBS_init(&cbs, d, len);
lib/libcrypto/bn/bn_convert.c
232
BN_lebin2bn(const unsigned char *d, int len, BIGNUM *bn)
lib/libcrypto/bn/bn_convert.c
239
CBS_init(&cbs, d, len);
lib/libcrypto/bn/bn_convert.c
385
int d, neg, num;
lib/libcrypto/bn/bn_convert.c
422
if ((d = digits % BN_DEC_NUM) == 0)
lib/libcrypto/bn/bn_convert.c
423
d = BN_DEC_NUM;
lib/libcrypto/bn/bn_convert.c
437
d--;
lib/libcrypto/bn/bn_convert.c
439
if (d == 0) {
lib/libcrypto/bn/bn_convert.c
445
d = BN_DEC_NUM;
lib/libcrypto/bn/bn_convert.c
514
w = bn->d[i];
lib/libcrypto/bn/bn_convert.c
645
bn->d[i++] = w;
lib/libcrypto/bn/bn_convert.c
687
BN_bn2mpi(const BIGNUM *bn, unsigned char *d)
lib/libcrypto/bn/bn_convert.c
701
if (d == NULL)
lib/libcrypto/bn/bn_convert.c
704
if (!CBB_init_fixed(&cbb, d, out_len))
lib/libcrypto/bn/bn_convert.c
716
d[4] |= 0x80;
lib/libcrypto/bn/bn_convert.c
728
BN_mpi2bn(const unsigned char *d, int n, BIGNUM *bn_in)
lib/libcrypto/bn/bn_convert.c
739
CBS_init(&cbs, d, n);
lib/libcrypto/bn/bn_div.c
126
h += d;
lib/libcrypto/bn/bn_div.c
150
bn_div_rem_words_inline(BN_ULONG h, BN_ULONG l, BN_ULONG d, BN_ULONG *out_q,
lib/libcrypto/bn/bn_div.c
155
q = bn_div_words(h, l, d);
lib/libcrypto/bn/bn_div.c
156
r = (l - q * d) & BN_MASK2;
lib/libcrypto/bn/bn_div.c
164
bn_div_rem_words(BN_ULONG h, BN_ULONG l, BN_ULONG d, BN_ULONG *out_q,
lib/libcrypto/bn/bn_div.c
167
bn_div_rem_words_inline(h, l, d, out_q, out_r);
lib/libcrypto/bn/bn_div.c
240
if (numerator->top > 0 && numerator->d[numerator->top - 1] == 0) {
lib/libcrypto/bn/bn_div.c
296
snum->d[i] = 0;
lib/libcrypto/bn/bn_div.c
301
snum->d[snum->top] = 0;
lib/libcrypto/bn/bn_div.c
315
wnum.d = &(snum->d[loop]);
lib/libcrypto/bn/bn_div.c
323
d0 = sdiv->d[div_n - 1];
lib/libcrypto/bn/bn_div.c
324
d1 = (div_n == 1) ? 0 : sdiv->d[div_n - 2];
lib/libcrypto/bn/bn_div.c
327
wnump = &(snum->d[num_n - 1]);
lib/libcrypto/bn/bn_div.c
334
resp = &(res->d[loop - 1]);
lib/libcrypto/bn/bn_div.c
342
bn_sub_words(wnum.d, wnum.d, sdiv->d, div_n);
lib/libcrypto/bn/bn_div.c
367
l0 = bn_mulw_words(tmp->d, sdiv->d, div_n, q);
lib/libcrypto/bn/bn_div.c
368
tmp->d[div_n] = l0;
lib/libcrypto/bn/bn_div.c
369
wnum.d--;
lib/libcrypto/bn/bn_div.c
375
if (bn_sub_words(wnum.d, wnum.d, tmp->d, div_n + 1)) {
lib/libcrypto/bn/bn_div.c
383
if (bn_add_words(wnum.d, wnum.d, sdiv->d, div_n)) {
lib/libcrypto/bn/bn_div.c
77
bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d)
lib/libcrypto/bn/bn_div.c
82
if (d == 0)
lib/libcrypto/bn/bn_div.c
85
i = BN_num_bits_word(d);
lib/libcrypto/bn/bn_div.c
89
if (h >= d)
lib/libcrypto/bn/bn_div.c
90
h -= d;
lib/libcrypto/bn/bn_div.c
93
d <<= i;
lib/libcrypto/bn/bn_div.c
97
dh = (d & BN_MASK2h) >> BN_BITS4;
lib/libcrypto/bn/bn_div.c
98
dl = (d & BN_MASK2l);
lib/libcrypto/bn/bn_exp.c
1121
BN_ULONG A = a->d[0];
lib/libcrypto/bn/bn_exp.c
1162
BIGNUM *d, *r;
lib/libcrypto/bn/bn_exp.c
1183
if ((d = BN_CTX_get(ctx)) == NULL)
lib/libcrypto/bn/bn_exp.c
1215
if (!BN_mod_mul_montgomery(d, val1[0], val1[0], mont, ctx))
lib/libcrypto/bn/bn_exp.c
1222
d, mont, ctx))
lib/libcrypto/bn/bn_exp.c
1242
if (!BN_mod_mul_montgomery(d, val2[0], val2[0], mont, ctx))
lib/libcrypto/bn/bn_exp.c
1249
d, mont, ctx))
lib/libcrypto/bn/bn_exp.c
184
BIGNUM *d, *q;
lib/libcrypto/bn/bn_exp.c
212
if ((d = BN_CTX_get(ctx)) == NULL)
lib/libcrypto/bn/bn_exp.c
230
if (!BN_mod_mul(d, val[0], val[0], m, ctx))
lib/libcrypto/bn/bn_exp.c
235
!BN_mod_mul(val[i], val[i - 1], d,m, ctx))
lib/libcrypto/bn/bn_exp.c
324
table[j] = b->d[i];
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
443
powerbufLen = sizeof(m->d[0]) * (top * numPowers +
lib/libcrypto/bn/bn_exp.c
451
tmp.d = (BN_ULONG *)(powerbuf + sizeof(m->d[0]) * top * numPowers);
lib/libcrypto/bn/bn_exp.c
452
am.d = tmp.d + top;
lib/libcrypto/bn/bn_exp.c
463
tmp.d[0] = (0 - m - >d[0]) & BN_MASK2; /* 2^(top*BN_BITS2) - m */
lib/libcrypto/bn/bn_exp.c
465
tmp.d[i] = (~m->d[i]) & BN_MASK2;
lib/libcrypto/bn/bn_exp.c
491
BN_ULONG *np = mont->N.d, *n0 = mont->n0;
lib/libcrypto/bn/bn_exp.c
496
am.d[i] = 0;
lib/libcrypto/bn/bn_exp.c
498
tmp.d[i] = 0;
lib/libcrypto/bn/bn_exp.c
500
bn_scatter5(tmp.d, top, powerbuf, 0);
lib/libcrypto/bn/bn_exp.c
501
bn_scatter5(am.d, am.top, powerbuf, 1);
lib/libcrypto/bn/bn_exp.c
502
bn_mul_mont(tmp.d, am.d, am.d, np, n0, top);
lib/libcrypto/bn/bn_exp.c
503
bn_scatter5(tmp.d, top, powerbuf, 2);
lib/libcrypto/bn/bn_exp.c
508
bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np,
lib/libcrypto/bn/bn_exp.c
510
bn_scatter5(tmp.d, top, powerbuf, i);
lib/libcrypto/bn/bn_exp.c
515
bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
lib/libcrypto/bn/bn_exp.c
516
bn_scatter5(tmp.d, top, powerbuf, i);
lib/libcrypto/bn/bn_exp.c
520
bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np,
lib/libcrypto/bn/bn_exp.c
522
bn_scatter5(tmp.d, top, powerbuf, i);
lib/libcrypto/bn/bn_exp.c
524
bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
lib/libcrypto/bn/bn_exp.c
525
bn_scatter5(tmp.d, top, powerbuf, j);
lib/libcrypto/bn/bn_exp.c
529
bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np,
lib/libcrypto/bn/bn_exp.c
531
bn_scatter5(tmp.d, top, powerbuf, i);
lib/libcrypto/bn/bn_exp.c
532
bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
lib/libcrypto/bn/bn_exp.c
533
bn_scatter5(tmp.d, top, powerbuf, 2*i);
lib/libcrypto/bn/bn_exp.c
536
bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np,
lib/libcrypto/bn/bn_exp.c
538
bn_scatter5(tmp.d, top, powerbuf, i);
lib/libcrypto/bn/bn_exp.c
544
bn_gather5(tmp.d, top, powerbuf, wvalue);
lib/libcrypto/bn/bn_exp.c
553
bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
lib/libcrypto/bn/bn_exp.c
554
bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
lib/libcrypto/bn/bn_exp.c
555
bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
lib/libcrypto/bn/bn_exp.c
556
bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
lib/libcrypto/bn/bn_exp.c
557
bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
lib/libcrypto/bn/bn_exp.c
558
bn_mul_mont_gather5(tmp.d, tmp.d, powerbuf, np, n0, top, wvalue);
lib/libcrypto/bn/bn_exp.c
649
BIGNUM *d, *r;
lib/libcrypto/bn/bn_exp.c
677
if ((d = BN_CTX_get(ctx)) == NULL)
lib/libcrypto/bn/bn_exp.c
702
if (!BN_mod_mul_montgomery(d, val[0], val[0], mont, ctx))
lib/libcrypto/bn/bn_exp.c
708
d, mont, ctx))
lib/libcrypto/bn/bn_exp.c
814
BIGNUM *d, *r, *t;
lib/libcrypto/bn/bn_exp.c
844
a %= m->d[0]; /* make sure that 'a' is reduced */
lib/libcrypto/bn/bn_exp.c
863
if ((d = BN_CTX_get(ctx)) == NULL)
lib/libcrypto/bn/bn_gcd.c
750
if (!BN_mul_word(tmp, D->d[0]))
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
474
bn_mulw_addw_addw(BN_ULONG a, BN_ULONG b, BN_ULONG c, BN_ULONG d,
lib/libcrypto/bn/bn_internal.h
480
bn_addw(r0, d, &carry, &r0);
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_internal.h
585
*out_r4 = d;
lib/libcrypto/bn/bn_isqrt.c
104
e = d;
lib/libcrypto/bn/bn_isqrt.c
105
d = c >> s;
lib/libcrypto/bn/bn_isqrt.c
107
if (!BN_rshift(b, n, 2 * c - d - e + 1))
lib/libcrypto/bn/bn_isqrt.c
113
if (!BN_lshift(a, a, d - e - 1))
lib/libcrypto/bn/bn_isqrt.c
47
int c, d, e, s;
lib/libcrypto/bn/bn_isqrt.c
83
d = 0;
lib/libcrypto/bn/bn_lib.c
108
freezero(bn->d, bn->dmax * sizeof(bn->d[0]));
lib/libcrypto/bn/bn_lib.c
155
.d = (BN_ULONG *)&bn_value_one_data,
lib/libcrypto/bn/bn_lib.c
186
while (a->top > 0 && a->d[a->top - 1] == 0)
lib/libcrypto/bn/bn_lib.c
193
BN_ULONG *d;
lib/libcrypto/bn/bn_lib.c
209
d = recallocarray(bn->d, bn->dmax, words, sizeof(BN_ULONG));
lib/libcrypto/bn/bn_lib.c
210
if (d == NULL) {
lib/libcrypto/bn/bn_lib.c
214
bn->d = d;
lib/libcrypto/bn/bn_lib.c
297
bn_copy_words(a->d, b->d, b->top);
lib/libcrypto/bn/bn_lib.c
326
tmp_d = a->d;
lib/libcrypto/bn/bn_lib.c
331
a->d = b->d;
lib/libcrypto/bn/bn_lib.c
336
b->d = tmp_d;
lib/libcrypto/bn/bn_lib.c
354
return a->d[0];
lib/libcrypto/bn/bn_lib.c
366
a->d[0] = w;
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
426
a->d[k] = 0;
lib/libcrypto/bn/bn_lib.c
430
a->d[i] |= (((BN_ULONG)1) << j);
lib/libcrypto/bn/bn_lib.c
448
a->d[i] &= (~(((BN_ULONG)1) << j));
lib/libcrypto/bn/bn_lib.c
468
return (int)(((a->d[i]) >> j) & ((BN_ULONG)1));
lib/libcrypto/bn/bn_lib.c
488
a->d[w] &= ~(BN_MASK2 << b);
lib/libcrypto/bn/bn_lib.c
532
t = (a->d[ind] ^ b->d[ind]) & condition; \
lib/libcrypto/bn/bn_lib.c
533
a->d[ind] ^= t; \
lib/libcrypto/bn/bn_lib.c
534
b->d[ind] ^= t; \
lib/libcrypto/bn/bn_lib.c
602
t = (a->d[i] ^ b->d[i]) & condition;
lib/libcrypto/bn/bn_lib.c
603
a->d[i] ^= t;
lib/libcrypto/bn/bn_lib.c
604
b->d[i] ^= t;
lib/libcrypto/bn/bn_lib.c
628
return (a->top == 1 && a->d[0] == w) || (w == 0 && a->top == 0);
lib/libcrypto/bn/bn_lib.c
639
bits |= bn->d[i];
lib/libcrypto/bn/bn_lib.c
662
return a->top > 0 && (a->d[0] & 1);
lib/libcrypto/bn/bn_lib.c
94
if (a->d != NULL)
lib/libcrypto/bn/bn_lib.c
95
explicit_bzero(a->d, a->dmax * sizeof(a->d[0]));
lib/libcrypto/bn/bn_local.h
136
BN_ULONG *d; /* Pointer to an array of 'BN_BITS2' bit chunks. */
lib/libcrypto/bn/bn_local.h
249
#define BN_lsw(n) (((n)->top == 0) ? (BN_ULONG) 0 : (n)->d[0])
lib/libcrypto/bn/bn_local.h
277
BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d);
lib/libcrypto/bn/bn_local.h
278
void bn_div_rem_words(BN_ULONG h, BN_ULONG l, BN_ULONG d, BN_ULONG *out_q,
lib/libcrypto/bn/bn_local.h
309
int BN_div_nonct(BIGNUM *q, BIGNUM *r, const BIGNUM *n, const BIGNUM *d,
lib/libcrypto/bn/bn_local.h
311
int BN_div_ct(BIGNUM *q, BIGNUM *r, const BIGNUM *n, const BIGNUM *d,
lib/libcrypto/bn/bn_mont.c
233
if (!BN_set_word(N, mod->d[0]))
lib/libcrypto/bn/bn_mont.c
237
N->d[1] = mod->d[1];
lib/libcrypto/bn/bn_mont.c
238
N->top += bn_ct_ne_zero(N->d[1]);
lib/libcrypto/bn/bn_mont.c
262
mont->n0[0] = Ninv->d[0];
lib/libcrypto/bn/bn_mont.c
266
mont->n0[1] = Ninv->d[1];
lib/libcrypto/bn/bn_mont.c
390
a->d[i] = 0;
lib/libcrypto/bn/bn_mont.c
392
bn_montgomery_reduce_words(r->d, a->d, n->d, mctx->n0[0], n_len);
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
585
if (!bn_mul_mont(r->d, a->d, b->d, mctx->N.d, mctx->n0, mctx->N.top))
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
405
bn_mul_comba4(rr->d, a->d, b->d);
lib/libcrypto/bn/bn_mul.c
407
bn_mul_comba6(rr->d, a->d, b->d);
lib/libcrypto/bn/bn_mul.c
409
bn_mul_comba8(rr->d, a->d, b->d);
lib/libcrypto/bn/bn_primitives.c
56
w = bn->d[i];
lib/libcrypto/bn/bn_recp.c
111
BIGNUM *a, *b, *d, *r;
lib/libcrypto/bn/bn_recp.c
127
if ((d = dv) == NULL)
lib/libcrypto/bn/bn_recp.c
128
d = BN_CTX_get(ctx);
lib/libcrypto/bn/bn_recp.c
129
if (d == NULL)
lib/libcrypto/bn/bn_recp.c
168
if (!BN_rshift(d, b, i - recp->num_bits))
lib/libcrypto/bn/bn_recp.c
170
d->neg = 0;
lib/libcrypto/bn/bn_recp.c
172
if (!BN_mul(b, recp->N, d, ctx))
lib/libcrypto/bn/bn_recp.c
187
if (!BN_add_word(d, 1))
lib/libcrypto/bn/bn_recp.c
193
BN_set_negative(d, m->neg ^ recp->N->neg);
lib/libcrypto/bn/bn_shift.c
131
src = a->d + shift_words;
lib/libcrypto/bn/bn_shift.c
132
dst = r->d;
lib/libcrypto/bn/bn_shift.c
64
src = a->d + a->top - 1;
lib/libcrypto/bn/bn_shift.c
65
dst = r->d + a->top + shift_words;
lib/libcrypto/bn/bn_shift.c
72
while (src > a->d) {
lib/libcrypto/bn/bn_shift.c
80
while (dst > r->d) {
lib/libcrypto/bn/bn_sqr.c
301
bn_sqr_words(r->d, a->d, a->top);
lib/libcrypto/bn/bn_sqr.c
331
bn_sqr_comba4(rr->d, a->d);
lib/libcrypto/bn/bn_sqr.c
333
bn_sqr_comba6(rr->d, a->d);
lib/libcrypto/bn/bn_sqr.c
335
bn_sqr_comba8(rr->d, a->d);
lib/libcrypto/bn/bn_word.c
126
BN_ULONG l, d;
lib/libcrypto/bn/bn_word.c
128
l = a->d[i];
lib/libcrypto/bn/bn_word.c
129
bn_div_rem_words(ret, l, w, &d, &ret);
lib/libcrypto/bn/bn_word.c
130
a->d[i] = d;
lib/libcrypto/bn/bn_word.c
132
if ((a->top > 0) && (a->d[a->top - 1] == 0))
lib/libcrypto/bn/bn_word.c
165
a->d[i] = l = (a->d[i] + w) & BN_MASK2;
lib/libcrypto/bn/bn_word.c
172
a->d[i] = w;
lib/libcrypto/bn/bn_word.c
203
if ((a->top == 1) && (a->d[0] < w)) {
lib/libcrypto/bn/bn_word.c
204
a->d[0] = w - a->d[0];
lib/libcrypto/bn/bn_word.c
210
if (a->d[i] >= w) {
lib/libcrypto/bn/bn_word.c
211
a->d[i] -= w;
lib/libcrypto/bn/bn_word.c
214
a->d[i] = (a->d[i] - w) & BN_MASK2;
lib/libcrypto/bn/bn_word.c
219
if ((a->d[i] == 0) && (i == (a->top - 1)))
lib/libcrypto/bn/bn_word.c
235
ll = bn_mulw_words(a->d, a->d, a->top, w);
lib/libcrypto/bn/bn_word.c
239
a->d[a->top++] = ll;
lib/libcrypto/bn/bn_word.c
93
ret = ((ret << BN_BITS4) | ((a->d[i] >> BN_BITS4) &
lib/libcrypto/bn/bn_word.c
95
ret = ((ret << BN_BITS4) | (a->d[i] & BN_MASK2l)) % w;
lib/libcrypto/bn/bn_word.c
98
a->d[i]) % (BN_ULLONG)w);
lib/libcrypto/bn/s2n_bignum.h
1169
extern int64_t word_divstep59(int64_t m[2][2],int64_t d,uint64_t f,uint64_t g);
lib/libcrypto/bn/s2n_bignum.h
668
extern uint64_t bignum_muladd10 (uint64_t k, uint64_t *z, uint64_t d);
lib/libcrypto/camellia/camellia.h
79
double d; /* ensures 64-bit align */
lib/libcrypto/cast/cast.c
915
CAST_LONG l, d[2];
lib/libcrypto/cast/cast.c
918
d[0] = l;
lib/libcrypto/cast/cast.c
920
d[1] = l;
lib/libcrypto/cast/cast.c
922
CAST_encrypt(d, ks);
lib/libcrypto/cast/cast.c
924
CAST_decrypt(d, ks);
lib/libcrypto/cast/cast.c
925
l = d[0];
lib/libcrypto/cast/cast.c
927
l = d[1];
lib/libcrypto/cast/cast.c
929
l = d[0] = d[1] = 0;
lib/libcrypto/cast/cast.c
946
unsigned char d[8];
lib/libcrypto/cast/cast.c
957
dp = (char *)d;
lib/libcrypto/cast/cast.c
963
dp = (char *)d;
lib/libcrypto/cast/cast.c
970
*(out++)= *(in++)^d[n];
lib/libcrypto/cast/cast_local.h
201
CAST_LONG a,b,c,d; \
lib/libcrypto/cast/cast_local.h
207
d=CAST_S_table3[(t>>16)&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_asn1.c
1243
.offset = offsetof(CMS_ContentInfo, d.other),
lib/libcrypto/cms/cms_asn1.c
125
.offset = offsetof(CMS_CertificateChoices, d.certificate),
lib/libcrypto/cms/cms_asn1.c
1254
.offset = offsetof(CMS_ContentInfo, d.data),
lib/libcrypto/cms/cms_asn1.c
1264
.offset = offsetof(CMS_ContentInfo, d.signedData),
lib/libcrypto/cms/cms_asn1.c
1274
.offset = offsetof(CMS_ContentInfo, d.envelopedData),
lib/libcrypto/cms/cms_asn1.c
1284
.offset = offsetof(CMS_ContentInfo, d.digestedData),
lib/libcrypto/cms/cms_asn1.c
1294
.offset = offsetof(CMS_ContentInfo, d.encryptedData),
lib/libcrypto/cms/cms_asn1.c
1304
.offset = offsetof(CMS_ContentInfo, d.authenticatedData),
lib/libcrypto/cms/cms_asn1.c
1314
.offset = offsetof(CMS_ContentInfo, d.compressedData),
lib/libcrypto/cms/cms_asn1.c
132
.offset = offsetof(CMS_CertificateChoices, d.extendedCertificate),
lib/libcrypto/cms/cms_asn1.c
139
.offset = offsetof(CMS_CertificateChoices, d.v1AttrCert),
lib/libcrypto/cms/cms_asn1.c
1454
.offset = offsetof(CMS_ReceiptsFrom, d.allOrFirstTier),
lib/libcrypto/cms/cms_asn1.c
146
.offset = offsetof(CMS_CertificateChoices, d.v2AttrCert),
lib/libcrypto/cms/cms_asn1.c
1461
.offset = offsetof(CMS_ReceiptsFrom, d.receiptList),
lib/libcrypto/cms/cms_asn1.c
153
.offset = offsetof(CMS_CertificateChoices, d.other),
lib/libcrypto/cms/cms_asn1.c
173
.offset = offsetof(CMS_SignerIdentifier, d.issuerAndSerialNumber),
lib/libcrypto/cms/cms_asn1.c
180
.offset = offsetof(CMS_SignerIdentifier, d.subjectKeyIdentifier),
lib/libcrypto/cms/cms_asn1.c
337
.offset = offsetof(CMS_RevocationInfoChoice, d.crl),
lib/libcrypto/cms/cms_asn1.c
344
.offset = offsetof(CMS_RevocationInfoChoice, d.other),
lib/libcrypto/cms/cms_asn1.c
582
.offset = offsetof(CMS_KeyAgreeRecipientIdentifier, d.issuerAndSerialNumber),
lib/libcrypto/cms/cms_asn1.c
589
.offset = offsetof(CMS_KeyAgreeRecipientIdentifier, d.rKeyId),
lib/libcrypto/cms/cms_asn1.c
681
.offset = offsetof(CMS_OriginatorIdentifierOrKey, d.issuerAndSerialNumber),
lib/libcrypto/cms/cms_asn1.c
688
.offset = offsetof(CMS_OriginatorIdentifierOrKey, d.subjectKeyIdentifier),
lib/libcrypto/cms/cms_asn1.c
695
.offset = offsetof(CMS_OriginatorIdentifierOrKey, d.originatorKey),
lib/libcrypto/cms/cms_asn1.c
934
CMS_KeyTransRecipientInfo *ktri = ri->d.ktri;
lib/libcrypto/cms/cms_asn1.c
939
CMS_KEKRecipientInfo *kekri = ri->d.kekri;
lib/libcrypto/cms/cms_asn1.c
942
CMS_PasswordRecipientInfo *pwri = ri->d.pwri;
lib/libcrypto/cms/cms_asn1.c
961
.offset = offsetof(CMS_RecipientInfo, d.ktri),
lib/libcrypto/cms/cms_asn1.c
968
.offset = offsetof(CMS_RecipientInfo, d.kari),
lib/libcrypto/cms/cms_asn1.c
975
.offset = offsetof(CMS_RecipientInfo, d.kekri),
lib/libcrypto/cms/cms_asn1.c
982
.offset = offsetof(CMS_RecipientInfo, d.pwri),
lib/libcrypto/cms/cms_asn1.c
989
.offset = offsetof(CMS_RecipientInfo, d.ori),
lib/libcrypto/cms/cms_dd.c
105
dd = cms->d.digestedData;
lib/libcrypto/cms/cms_dd.c
124
dd = cms->d.digestedData;
lib/libcrypto/cms/cms_dd.c
84
cms->d.digestedData = dd;
lib/libcrypto/cms/cms_enc.c
240
cms->d.encryptedData = (CMS_EncryptedData *)ASN1_item_new(&CMS_EncryptedData_it);
lib/libcrypto/cms/cms_enc.c
241
if (!cms->d.encryptedData) {
lib/libcrypto/cms/cms_enc.c
246
cms->d.encryptedData->version = 0;
lib/libcrypto/cms/cms_enc.c
251
ec = cms->d.encryptedData->encryptedContentInfo;
lib/libcrypto/cms/cms_enc.c
260
CMS_EncryptedData *enc = cms->d.encryptedData;
lib/libcrypto/cms/cms_env.c
108
pkey = ri->d.ktri->pkey;
lib/libcrypto/cms/cms_env.c
110
EVP_PKEY_CTX *pctx = ri->d.kari->pctx;
lib/libcrypto/cms/cms_env.c
157
return ri->d.ktri->pctx;
lib/libcrypto/cms/cms_env.c
159
return ri->d.kari->pctx;
lib/libcrypto/cms/cms_env.c
201
ri->d.ktri = (CMS_KeyTransRecipientInfo *)ASN1_item_new(&CMS_KeyTransRecipientInfo_it);
lib/libcrypto/cms/cms_env.c
202
if (!ri->d.ktri)
lib/libcrypto/cms/cms_env.c
206
ktri = ri->d.ktri;
lib/libcrypto/cms/cms_env.c
310
ktri = ri->d.ktri;
lib/libcrypto/cms/cms_env.c
333
ktri = ri->d.ktri;
lib/libcrypto/cms/cms_env.c
347
return cms_SignerIdentifier_cert_cmp(ri->d.ktri->rid, cert);
lib/libcrypto/cms/cms_env.c
358
EVP_PKEY_free(ri->d.ktri->pkey);
lib/libcrypto/cms/cms_env.c
359
ri->d.ktri->pkey = pkey;
lib/libcrypto/cms/cms_env.c
382
ktri = ri->d.ktri;
lib/libcrypto/cms/cms_env.c
383
ec = cms->d.envelopedData->encryptedContentInfo;
lib/libcrypto/cms/cms_env.c
436
CMS_KeyTransRecipientInfo *ktri = ri->d.ktri;
lib/libcrypto/cms/cms_env.c
444
ec = cms->d.envelopedData->encryptedContentInfo;
lib/libcrypto/cms/cms_env.c
451
if (cms->d.envelopedData->encryptedContentInfo->havenocert &&
lib/libcrypto/cms/cms_env.c
452
!cms->d.envelopedData->encryptedContentInfo->debug) {
lib/libcrypto/cms/cms_env.c
528
kekri = ri->d.kekri;
lib/libcrypto/cms/cms_env.c
611
ri->d.kekri = (CMS_KEKRecipientInfo *)ASN1_item_new(&CMS_KEKRecipientInfo_it);
lib/libcrypto/cms/cms_env.c
612
if (!ri->d.kekri)
lib/libcrypto/cms/cms_env.c
616
kekri = ri->d.kekri;
lib/libcrypto/cms/cms_env.c
667
rkid = ri->d.kekri->kekid;
lib/libcrypto/cms/cms_env.c
669
*palg = ri->d.kekri->keyEncryptionAlgorithm;
lib/libcrypto/cms/cms_env.c
702
kekri = ri->d.kekri;
lib/libcrypto/cms/cms_env.c
721
ec = cms->d.envelopedData->encryptedContentInfo;
lib/libcrypto/cms/cms_env.c
722
kekri = ri->d.kekri;
lib/libcrypto/cms/cms_env.c
770
ec = cms->d.envelopedData->encryptedContentInfo;
lib/libcrypto/cms/cms_env.c
771
kekri = ri->d.kekri;
lib/libcrypto/cms/cms_env.c
79
return cms->d.envelopedData;
lib/libcrypto/cms/cms_env.c
85
if (cms->d.other == NULL) {
lib/libcrypto/cms/cms_env.c
86
cms->d.envelopedData = (CMS_EnvelopedData *)ASN1_item_new(&CMS_EnvelopedData_it);
lib/libcrypto/cms/cms_env.c
87
if (!cms->d.envelopedData) {
lib/libcrypto/cms/cms_env.c
91
cms->d.envelopedData->version = 0;
lib/libcrypto/cms/cms_env.c
92
cms->d.envelopedData->encryptedContentInfo->contentType =
lib/libcrypto/cms/cms_env.c
925
|| ri->d.ktri->version != 0) {
lib/libcrypto/cms/cms_env.c
947
ec = cms->d.envelopedData->encryptedContentInfo;
lib/libcrypto/cms/cms_env.c
957
rinfos = cms->d.envelopedData->recipientInfos;
lib/libcrypto/cms/cms_env.c
96
return cms->d.envelopedData;
lib/libcrypto/cms/cms_env.c
966
cms_env_set_version(cms->d.envelopedData);
lib/libcrypto/cms/cms_ess.c
146
rr->receiptsFrom->d.receiptList = receiptList;
lib/libcrypto/cms/cms_ess.c
149
rr->receiptsFrom->d.allOrFirstTier = allorfirst;
lib/libcrypto/cms/cms_ess.c
197
*pallorfirst = (int)rr->receiptsFrom->d.allOrFirstTier;
lib/libcrypto/cms/cms_ess.c
204
*plist = rr->receiptsFrom->d.receiptList;
lib/libcrypto/cms/cms_io.c
167
mdalgs = cms->d.signedData->digestAlgorithms;
lib/libcrypto/cms/cms_kari.c
108
oik = ri->d.kari->originator;
lib/libcrypto/cms/cms_kari.c
121
*issuer = oik->d.issuerAndSerialNumber->issuer;
lib/libcrypto/cms/cms_kari.c
123
*sno = oik->d.issuerAndSerialNumber->serialNumber;
lib/libcrypto/cms/cms_kari.c
126
*keyid = oik->d.subjectKeyIdentifier;
lib/libcrypto/cms/cms_kari.c
129
*pubalg = oik->d.originatorKey->algorithm;
lib/libcrypto/cms/cms_kari.c
131
*pubkey = oik->d.originatorKey->publicKey;
lib/libcrypto/cms/cms_kari.c
148
oik = ri->d.kari->originator;
lib/libcrypto/cms/cms_kari.c
150
return cms_ias_cert_cmp(oik->d.issuerAndSerialNumber, cert);
lib/libcrypto/cms/cms_kari.c
152
return cms_keyid_cert_cmp(oik->d.subjectKeyIdentifier, cert);
lib/libcrypto/cms/cms_kari.c
167
*issuer = rid->d.issuerAndSerialNumber->issuer;
lib/libcrypto/cms/cms_kari.c
169
*sno = rid->d.issuerAndSerialNumber->serialNumber;
lib/libcrypto/cms/cms_kari.c
178
*keyid = rid->d.rKeyId->subjectKeyIdentifier;
lib/libcrypto/cms/cms_kari.c
180
*tm = rid->d.rKeyId->date;
lib/libcrypto/cms/cms_kari.c
182
*other = rid->d.rKeyId->other;
lib/libcrypto/cms/cms_kari.c
200
return cms_ias_cert_cmp(rid->d.issuerAndSerialNumber, cert);
lib/libcrypto/cms/cms_kari.c
202
return cms_keyid_cert_cmp(rid->d.rKeyId->subjectKeyIdentifier, cert);
lib/libcrypto/cms/cms_kari.c
212
CMS_KeyAgreeRecipientInfo *kari = ri->d.kari;
lib/libcrypto/cms/cms_kari.c
234
return ri->d.kari->ctx;
lib/libcrypto/cms/cms_kari.c
304
if (!cms_kek_cipher(&cek, &ceklen, enckey, enckeylen, ri->d.kari, 0))
lib/libcrypto/cms/cms_kari.c
306
ec = cms->d.envelopedData->encryptedContentInfo;
lib/libcrypto/cms/cms_kari.c
361
ri->d.kari = (CMS_KeyAgreeRecipientInfo *)ASN1_item_new(&CMS_KeyAgreeRecipientInfo_it);
lib/libcrypto/cms/cms_kari.c
362
if (!ri->d.kari)
lib/libcrypto/cms/cms_kari.c
366
kari = ri->d.kari;
lib/libcrypto/cms/cms_kari.c
380
rek->rid->d.rKeyId = (CMS_RecipientKeyIdentifier *)ASN1_item_new(&CMS_RecipientKeyIdentifier_it);
lib/libcrypto/cms/cms_kari.c
381
if (rek->rid->d.rKeyId == NULL)
lib/libcrypto/cms/cms_kari.c
383
if (!cms_set1_keyid(&rek->rid->d.rKeyId->subjectKeyIdentifier, recip))
lib/libcrypto/cms/cms_kari.c
387
if (!cms_set1_ias(&rek->rid->d.issuerAndSerialNumber, recip))
lib/libcrypto/cms/cms_kari.c
456
kari = ri->d.kari;
lib/libcrypto/cms/cms_kari.c
458
ec = cms->d.envelopedData->encryptedContentInfo;
lib/libcrypto/cms/cms_kari.c
469
oik->d.originatorKey = (CMS_OriginatorPublicKey *)ASN1_item_new(&CMS_OriginatorPublicKey_it);
lib/libcrypto/cms/cms_kari.c
470
if (!oik->d.originatorKey)
lib/libcrypto/cms/cms_kari.c
76
*palg = ri->d.kari->keyEncryptionAlgorithm;
lib/libcrypto/cms/cms_kari.c
78
*pukm = ri->d.kari->ukm;
lib/libcrypto/cms/cms_kari.c
93
return ri->d.kari->recipientEncryptedKeys;
lib/libcrypto/cms/cms_lib.c
245
*version = cms->d.signedData->version;
lib/libcrypto/cms/cms_lib.c
249
*version = cms->d.envelopedData->version;
lib/libcrypto/cms/cms_lib.c
253
*version = cms->d.digestedData->version;
lib/libcrypto/cms/cms_lib.c
257
*version = cms->d.encryptedData->version;
lib/libcrypto/cms/cms_lib.c
261
*version = cms->d.authenticatedData->version;
lib/libcrypto/cms/cms_lib.c
265
*version = cms->d.compressedData->version;
lib/libcrypto/cms/cms_lib.c
293
return &cms->d.data;
lib/libcrypto/cms/cms_lib.c
296
return &cms->d.signedData->encapContentInfo->eContent;
lib/libcrypto/cms/cms_lib.c
299
return &cms->d.envelopedData->encryptedContentInfo->encryptedContent;
lib/libcrypto/cms/cms_lib.c
302
return &cms->d.digestedData->encapContentInfo->eContent;
lib/libcrypto/cms/cms_lib.c
305
return &cms->d.encryptedData->encryptedContentInfo->encryptedContent;
lib/libcrypto/cms/cms_lib.c
308
return &cms->d.authenticatedData->encapContentInfo->eContent;
lib/libcrypto/cms/cms_lib.c
311
return &cms->d.compressedData->encapContentInfo->eContent;
lib/libcrypto/cms/cms_lib.c
314
if (cms->d.other->type == V_ASN1_OCTET_STRING)
lib/libcrypto/cms/cms_lib.c
315
return &cms->d.other->value.octet_string;
lib/libcrypto/cms/cms_lib.c
332
return &cms->d.signedData->encapContentInfo->eContentType;
lib/libcrypto/cms/cms_lib.c
335
return &cms->d.envelopedData->encryptedContentInfo->contentType;
lib/libcrypto/cms/cms_lib.c
338
return &cms->d.digestedData->encapContentInfo->eContentType;
lib/libcrypto/cms/cms_lib.c
341
return &cms->d.encryptedData->encryptedContentInfo->contentType;
lib/libcrypto/cms/cms_lib.c
344
return &cms->d.authenticatedData->encapContentInfo->eContentType;
lib/libcrypto/cms/cms_lib.c
347
return &cms->d.compressedData->encapContentInfo->eContentType;
lib/libcrypto/cms/cms_lib.c
494
return &cms->d.signedData->certificates;
lib/libcrypto/cms/cms_lib.c
497
if (cms->d.envelopedData->originatorInfo == NULL)
lib/libcrypto/cms/cms_lib.c
499
return &cms->d.envelopedData->originatorInfo->certificates;
lib/libcrypto/cms/cms_lib.c
545
if (!X509_cmp(cch->d.certificate, cert)) {
lib/libcrypto/cms/cms_lib.c
555
cch->d.certificate = cert;
lib/libcrypto/cms/cms_lib.c
579
return &cms->d.signedData->crls;
lib/libcrypto/cms/cms_lib.c
582
if (cms->d.envelopedData->originatorInfo == NULL)
lib/libcrypto/cms/cms_lib.c
584
return &cms->d.envelopedData->originatorInfo->crls;
lib/libcrypto/cms/cms_lib.c
626
rch->d.crl = crl;
lib/libcrypto/cms/cms_lib.c
664
if (!sk_X509_push(certs, cch->d.certificate)) {
lib/libcrypto/cms/cms_lib.c
668
X509_up_ref(cch->d.certificate);
lib/libcrypto/cms/cms_lib.c
694
if (!sk_X509_CRL_push(crls, rch->d.crl)) {
lib/libcrypto/cms/cms_lib.c
698
X509_CRL_up_ref(rch->d.crl);
lib/libcrypto/cms/cms_local.h
107
} d;
lib/libcrypto/cms/cms_local.h
149
} d;
lib/libcrypto/cms/cms_local.h
187
} d;
lib/libcrypto/cms/cms_local.h
222
} d;
lib/libcrypto/cms/cms_local.h
242
} d;
lib/libcrypto/cms/cms_local.h
319
} d;
lib/libcrypto/cms/cms_local.h
338
} d;
lib/libcrypto/cms/cms_local.h
380
} d;
lib/libcrypto/cms/cms_pwri.c
171
ri->d.pwri = (CMS_PasswordRecipientInfo *)ASN1_item_new(&CMS_PasswordRecipientInfo_it);
lib/libcrypto/cms/cms_pwri.c
172
if (ri->d.pwri == NULL)
lib/libcrypto/cms/cms_pwri.c
176
pwri = ri->d.pwri;
lib/libcrypto/cms/cms_pwri.c
346
ec = cms->d.envelopedData->encryptedContentInfo;
lib/libcrypto/cms/cms_pwri.c
348
pwri = ri->d.pwri;
lib/libcrypto/cms/cms_pwri.c
82
pwri = ri->d.pwri;
lib/libcrypto/cms/cms_sd.c
211
if (!cms_set1_ias(&sid->d.issuerAndSerialNumber, cert))
lib/libcrypto/cms/cms_sd.c
216
if (!cms_set1_keyid(&sid->d.subjectKeyIdentifier, cert))
lib/libcrypto/cms/cms_sd.c
236
*issuer = sid->d.issuerAndSerialNumber->issuer;
lib/libcrypto/cms/cms_sd.c
238
*sno = sid->d.issuerAndSerialNumber->serialNumber;
lib/libcrypto/cms/cms_sd.c
241
*keyid = sid->d.subjectKeyIdentifier;
lib/libcrypto/cms/cms_sd.c
252
return cms_ias_cert_cmp(sid->d.issuerAndSerialNumber, cert);
lib/libcrypto/cms/cms_sd.c
254
return cms_keyid_cert_cmp(sid->d.subjectKeyIdentifier, cert);
lib/libcrypto/cms/cms_sd.c
607
x = cch->d.certificate;
lib/libcrypto/cms/cms_sd.c
670
cms->d.signedData->encapContentInfo->eContentType;
lib/libcrypto/cms/cms_sd.c
744
cms->d.signedData->encapContentInfo->partial = 0;
lib/libcrypto/cms/cms_sd.c
81
return cms->d.signedData;
lib/libcrypto/cms/cms_sd.c
87
if (cms->d.other == NULL) {
lib/libcrypto/cms/cms_sd.c
874
if (cms->d.signedData->encapContentInfo->partial)
lib/libcrypto/cms/cms_sd.c
88
cms->d.signedData = (CMS_SignedData *)ASN1_item_new(&CMS_SignedData_it);
lib/libcrypto/cms/cms_sd.c
89
if (!cms->d.signedData) {
lib/libcrypto/cms/cms_sd.c
93
cms->d.signedData->version = 1;
lib/libcrypto/cms/cms_sd.c
94
cms->d.signedData->encapContentInfo->eContentType =
lib/libcrypto/cms/cms_sd.c
96
cms->d.signedData->encapContentInfo->partial = 1;
lib/libcrypto/cms/cms_sd.c
99
return cms->d.signedData;
lib/libcrypto/cms/cms_smime.c
710
debug = cms->d.envelopedData->encryptedContentInfo->debug;
lib/libcrypto/cms/cms_smime.c
851
cms->d.envelopedData->encryptedContentInfo->debug = 1;
lib/libcrypto/cms/cms_smime.c
853
cms->d.envelopedData->encryptedContentInfo->debug = 0;
lib/libcrypto/cms/cms_smime.c
855
cms->d.envelopedData->encryptedContentInfo->havenocert = 1;
lib/libcrypto/cms/cms_smime.c
857
cms->d.envelopedData->encryptedContentInfo->havenocert = 0;
lib/libcrypto/curve25519/curve25519.c
980
static const fe d = {-10913610, 13857413, -15372611, 6949391, 114729,
lib/libcrypto/curve25519/curve25519.c
996
fe_mul(v, u, d);
lib/libcrypto/des/des.c
705
DES_cblock d;
lib/libcrypto/des/des.c
716
dp = (char *)d;
lib/libcrypto/des/des.c
727
dp = (char *)d;
lib/libcrypto/des/des.c
732
*(out++) = *(in++) ^ d[n];
lib/libcrypto/des/des.c
757
DES_cblock d;
lib/libcrypto/des/des.c
768
dp = d;
lib/libcrypto/des/des.c
774
dp = d;
lib/libcrypto/des/des.c
781
*(out++) = *(in++) ^ d[n];
lib/libcrypto/des/des_key.c
343
DES_LONG c, d, t, s, t2;
lib/libcrypto/des/des_key.c
352
c2l(in, d);
lib/libcrypto/des/des_key.c
357
PERM_OP(d, c, t, 4, 0x0f0f0f0fL);
lib/libcrypto/des/des_key.c
359
HPERM_OP(d, t, -2, 0xcccc0000L);
lib/libcrypto/des/des_key.c
360
PERM_OP(d, c, t, 1, 0x55555555L);
lib/libcrypto/des/des_key.c
361
PERM_OP(c, d, t, 8, 0x00ff00ffL);
lib/libcrypto/des/des_key.c
362
PERM_OP(d, c, t, 1, 0x55555555L);
lib/libcrypto/des/des_key.c
363
d = (((d & 0x000000ffL) << 16L) | (d & 0x0000ff00L) |
lib/libcrypto/des/des_key.c
364
((d & 0x00ff0000L) >> 16L)|((c & 0xf0000000L) >> 4L));
lib/libcrypto/des/des_key.c
370
d = ((d >> 2L)|(d << 26L));
lib/libcrypto/des/des_key.c
373
d = ((d >> 1L)|(d << 27L));
lib/libcrypto/des/des_key.c
376
d &= 0x0fffffffL;
lib/libcrypto/des/des_key.c
384
t = des_skb[4][(d)&0x3f]|
lib/libcrypto/des/des_key.c
385
des_skb[5][((d >> 7L) & 0x03)|((d >> 8L) & 0x3c)]|
lib/libcrypto/des/des_key.c
386
des_skb[6][(d >> 15L) & 0x3f]|
lib/libcrypto/des/des_key.c
387
des_skb[7][((d >> 21L) & 0x0f)|((d >> 22L) & 0x30)];
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/dh/dh.h
138
int DH_set_ex_data(DH *d, int idx, void *arg);
lib/libcrypto/dh/dh.h
139
void *DH_get_ex_data(DH *d, int idx);
lib/libcrypto/dh/dh.h
142
ENGINE *DH_get0_engine(DH *d);
lib/libcrypto/dsa/dsa.h
137
int DSA_bits(const DSA *d);
lib/libcrypto/dsa/dsa.h
146
int DSA_set_ex_data(DSA *d, int idx, void *arg);
lib/libcrypto/dsa/dsa.h
147
void *DSA_get_ex_data(DSA *d, int idx);
lib/libcrypto/dsa/dsa.h
148
int DSA_security_bits(const DSA *d);
lib/libcrypto/dsa/dsa.h
182
void DSA_get0_pqg(const DSA *d, const BIGNUM **p, const BIGNUM **q,
lib/libcrypto/dsa/dsa.h
184
int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g);
lib/libcrypto/dsa/dsa.h
185
void DSA_get0_key(const DSA *d, const BIGNUM **pub_key, const BIGNUM **priv_key);
lib/libcrypto/dsa/dsa.h
186
int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key);
lib/libcrypto/dsa/dsa.h
187
const BIGNUM *DSA_get0_p(const DSA *d);
lib/libcrypto/dsa/dsa.h
188
const BIGNUM *DSA_get0_q(const DSA *d);
lib/libcrypto/dsa/dsa.h
189
const BIGNUM *DSA_get0_g(const DSA *d);
lib/libcrypto/dsa/dsa.h
190
const BIGNUM *DSA_get0_pub_key(const DSA *d);
lib/libcrypto/dsa/dsa.h
191
const BIGNUM *DSA_get0_priv_key(const DSA *d);
lib/libcrypto/dsa/dsa.h
192
void DSA_clear_flags(DSA *d, int flags);
lib/libcrypto/dsa/dsa.h
193
int DSA_test_flags(const DSA *d, int flags);
lib/libcrypto/dsa/dsa.h
194
void DSA_set_flags(DSA *d, int flags);
lib/libcrypto/dsa/dsa.h
195
ENGINE *DSA_get0_engine(DSA *d);
lib/libcrypto/ec/ec_field.c
120
bn_montgomery_reduce_words(bn->d, t, fm->m.w, fm->minv0, fm->n);
lib/libcrypto/ec/ec_field.c
44
fm->m.w[i] = bn->d[i];
lib/libcrypto/ec/ec_field.c
53
fm->rr.w[i] = mctx->RR.d[i];
lib/libcrypto/ec/ec_field.c
94
fe->w[i] = tmp->d[i];
lib/libcrypto/err/err.c
1002
d.error = ERR_PACK(l, 0, r);
lib/libcrypto/err/err.c
1003
p = err_get_item(&d);
lib/libcrypto/err/err.c
1005
d.error = ERR_PACK(0, 0, r);
lib/libcrypto/err/err.c
1006
p = err_get_item(&d);
lib/libcrypto/err/err.c
298
err_get_item(const ERR_STRING_DATA *d)
lib/libcrypto/err/err.c
308
p = lh_ERR_STRING_DATA_retrieve(hash, d);
lib/libcrypto/err/err.c
315
err_set_item(const ERR_STRING_DATA *d)
lib/libcrypto/err/err.c
325
p = lh_ERR_STRING_DATA_insert(hash, (void *)d);
lib/libcrypto/err/err.c
332
err_del_item(const ERR_STRING_DATA *d)
lib/libcrypto/err/err.c
342
p = lh_ERR_STRING_DATA_delete(hash, d);
lib/libcrypto/err/err.c
394
err_thread_get_item(const ERR_STATE *d)
lib/libcrypto/err/err.c
404
p = lh_ERR_STATE_retrieve(hash, d);
lib/libcrypto/err/err.c
412
err_thread_set_item(ERR_STATE *d)
lib/libcrypto/err/err.c
422
p = lh_ERR_STATE_insert(hash, d);
lib/libcrypto/err/err.c
430
err_thread_del_item(const ERR_STATE *d)
lib/libcrypto/err/err.c
440
p = lh_ERR_STATE_delete(hash, d);
lib/libcrypto/err/err.c
965
ERR_STRING_DATA d;
lib/libcrypto/err/err.c
972
d.error = ERR_PACK(l, 0, 0);
lib/libcrypto/err/err.c
973
p = err_get_item(&d);
lib/libcrypto/err/err.c
982
ERR_STRING_DATA d;
lib/libcrypto/err/err.c
987
d.error = ERR_PACK(l, f, 0);
lib/libcrypto/err/err.c
988
p = err_get_item(&d);
lib/libcrypto/err/err.c
997
ERR_STRING_DATA d;
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/e_des.c
179
unsigned char c[1], d[1];
lib/libcrypto/evp/e_des.c
189
DES_cfb_encrypt(c, d, 1, 1, ctx->cipher_data,
lib/libcrypto/evp/e_des.c
193
((d[0] & 0x80) >> (unsigned int)(n % 8));
lib/libcrypto/evp/e_des3.c
217
unsigned char c[1], d[1];
lib/libcrypto/evp/e_des3.c
225
DES_ede3_cfb_encrypt(c, d, 1, 1,
lib/libcrypto/evp/e_des3.c
229
((d[0] & 0x80) >> (unsigned int)(n % 8));
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
453
int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *d, size_t cnt);
lib/libcrypto/evp/evp_encode.c
263
unsigned char *d;
lib/libcrypto/evp/evp_encode.c
266
d = ctx->enc_data;
lib/libcrypto/evp/evp_encode.c
268
if (n > 0 && d[n - 1] == '=') {
lib/libcrypto/evp/evp_encode.c
270
if (n > 1 && d[n - 2] == '=')
lib/libcrypto/evp/evp_encode.c
320
d[n++] = tmp;
lib/libcrypto/evp/evp_encode.c
324
decoded_len = EVP_DecodeBlock(out, d, n);
lib/libcrypto/evp/evp_encode.c
344
decoded_len = EVP_DecodeBlock(out, d, n);
lib/libcrypto/evp/evp_encode.c
370
int i, ret = 0, a, b, c, d;
lib/libcrypto/evp/evp_encode.c
391
d = conv_ascii2bin(*(f++));
lib/libcrypto/evp/evp_encode.c
393
(c & 0x80) || (d & 0x80))
lib/libcrypto/evp/evp_encode.c
398
(((unsigned long)d)));
lib/libcrypto/hmac/hmac.c
253
HMAC(const EVP_MD *evp_md, const void *key, int key_len, const unsigned char *d,
lib/libcrypto/hmac/hmac.c
266
if (!HMAC_Update(&c, d, n))
lib/libcrypto/hmac/hmac.h
88
const unsigned char *d, size_t n, unsigned char *md, unsigned int *md_len)
lib/libcrypto/idea/idea.c
142
idea_encrypt(unsigned long *d, IDEA_KEY_SCHEDULE *key)
lib/libcrypto/idea/idea.c
147
x2 = d[0];
lib/libcrypto/idea/idea.c
149
x4 = d[1];
lib/libcrypto/idea/idea.c
173
d[0] = (t0 & 0xffff)|((x1 & 0xffff) << 16);
lib/libcrypto/idea/idea.c
174
d[1] = (x4 & 0xffff)|((t1 & 0xffff) << 16);
lib/libcrypto/idea/idea.c
246
unsigned long l0, l1, d[2];
lib/libcrypto/idea/idea.c
249
d[0] = l0;
lib/libcrypto/idea/idea.c
251
d[1] = l1;
lib/libcrypto/idea/idea.c
252
idea_encrypt(d, ks);
lib/libcrypto/idea/idea.c
253
l0 = d[0];
lib/libcrypto/idea/idea.c
255
l1 = d[1];
lib/libcrypto/idea/idea.c
257
l0 = l1 = d[0] = d[1] = 0;
lib/libcrypto/idea/idea.c
274
unsigned char d[8];
lib/libcrypto/idea/idea.c
285
dp = (char *)d;
lib/libcrypto/idea/idea.c
291
dp = (char *)d;
lib/libcrypto/idea/idea.c
298
*(out++) = *(in++) ^ d[n];
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
336
MD4(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/md4/md4.c
342
MD4_Update(&c, d, n);
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
97
unsigned char *MD4(const unsigned char *d, size_t n, unsigned char *md)
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.c
364
MD5(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/md5/md5.c
370
MD5_Update(&c, d, n);
lib/libcrypto/md5/md5.h
91
unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/modes/cfb128.c
220
unsigned char c[1], d[1];
lib/libcrypto/modes/cfb128.c
225
cfbr_encrypt_block(c, d, 1, key, ivec, enc, block);
lib/libcrypto/modes/cfb128.c
227
((d[0] & 0x80) >> (unsigned int)(n % 8));
lib/libcrypto/modes/gcm128.c
296
ctr = be32toh(ctx->Yi.d[3]);
lib/libcrypto/modes/gcm128.c
300
ctx->Yi.d[3] = htobe32(++ctr);
lib/libcrypto/modes/gcm128.c
367
ctr = be32toh(ctx->Yi.d[3]);
lib/libcrypto/modes/gcm128.c
374
ctx->Yi.d[3] = htobe32(++ctr);
lib/libcrypto/modes/gcm128.c
408
ctr = be32toh(ctx->Yi.d[3]);
lib/libcrypto/modes/gcm128.c
415
ctx->Yi.d[3] = htobe32(++ctr);
lib/libcrypto/modes/gcm128.c
450
ctr = be32toh(ctx->Yi.d[3]);
lib/libcrypto/modes/gcm128.c
468
ctx->Yi.d[3] = htobe32(ctr);
lib/libcrypto/modes/gcm128.c
476
ctx->Yi.d[3] = htobe32(++ctr);
lib/libcrypto/modes/gcm128.c
509
ctr = be32toh(ctx->Yi.d[3]);
lib/libcrypto/modes/gcm128.c
530
ctx->Yi.d[3] = htobe32(ctr);
lib/libcrypto/modes/gcm128.c
537
ctx->Yi.d[3] = htobe32(++ctr);
lib/libcrypto/modes/modes_local.h
36
uint32_t d[4];
lib/libcrypto/modes/xts128.c
108
res = 0x87 & (((int)tweak.d[3]) >> 31);
lib/libcrypto/modes/xts128.c
145
res = 0x87 & (((int)tweak.d[3]) >> 31);
lib/libcrypto/modes/xts128.c
65
uint32_t d[4];
lib/libcrypto/ocsp/ocsp_cl.c
115
if (!X509_NAME_set(&gen->d.directoryName, nm)) {
lib/libcrypto/ocsp/ocsp_ext.c
594
ad->location->d.ia5 = ia5;
lib/libcrypto/ocsp/ocsp_local.h
276
#define OCSP_BASICRESP_sign(o,pkey,md,d) \
lib/libcrypto/ocsp/ocsp_local.h
285
#define OCSP_BASICRESP_verify(a,r,d) \
lib/libcrypto/ocsp/ocsp_vfy.c
406
nm = gen->d.directoryName;
lib/libcrypto/pem/pem.h
354
int PEM_SignUpdate(EVP_MD_CTX *ctx, unsigned char *d, unsigned int cnt);
lib/libcrypto/pem/pvkfmt.c
396
if (!read_lebn(&p, nbyte, &rsa->d))
lib/libcrypto/pem/pvkfmt.c
594
if (BN_num_bytes(rsa->d) > nbyte)
lib/libcrypto/pem/pvkfmt.c
626
write_lebn(out, rsa->d, nbyte);
lib/libcrypto/pkcs12/p12_add.c
106
if (!(p7->d.data = ASN1_OCTET_STRING_new())) {
lib/libcrypto/pkcs12/p12_add.c
111
if (!ASN1_item_pack(sk, &PKCS12_SAFEBAGS_it, &p7->d.data)) {
lib/libcrypto/pkcs12/p12_add.c
168
X509_ALGOR_free(p7->d.encrypted->enc_data->algorithm);
lib/libcrypto/pkcs12/p12_add.c
169
p7->d.encrypted->enc_data->algorithm = pbe;
lib/libcrypto/pkcs12/p12_add.c
170
ASN1_OCTET_STRING_free(p7->d.encrypted->enc_data->enc_data);
lib/libcrypto/pkcs12/p12_add.c
171
if (!(p7->d.encrypted->enc_data->enc_data = PKCS12_item_i2d_encrypt(
lib/libcrypto/pkcs12/p12_add.c
191
if (p7->d.encrypted == NULL)
lib/libcrypto/pkcs12/p12_add.c
193
if ((content = p7->d.encrypted->enc_data) == NULL)
lib/libcrypto/pkcs12/p12_add.c
211
&p12->authsafes->d.data))
lib/libcrypto/pkcs12/p12_init.c
83
if (!(pkcs12->authsafes->d.data =
lib/libcrypto/pkcs12/p12_npas.c
188
if (!alg_get(pkcs7->d.encrypted->enc_data->algorithm, &nid,
lib/libcrypto/pkcs12/p12_npas.c
219
if ((old_data = pkcs12->authsafes->d.data) == NULL)
lib/libcrypto/pkcs12/p12_npas.c
221
if ((pkcs12->authsafes->d.data = ASN1_OCTET_STRING_new()) == NULL)
lib/libcrypto/pkcs12/p12_npas.c
243
ASN1_OCTET_STRING_free(pkcs12->authsafes->d.data);
lib/libcrypto/pkcs12/p12_npas.c
244
pkcs12->authsafes->d.data = old_data;
lib/libcrypto/pkcs7/pk7_asn1.c
103
.offset = offsetof(PKCS7, d.enveloped),
lib/libcrypto/pkcs7/pk7_asn1.c
113
.offset = offsetof(PKCS7, d.signed_and_enveloped),
lib/libcrypto/pkcs7/pk7_asn1.c
123
.offset = offsetof(PKCS7, d.digest),
lib/libcrypto/pkcs7/pk7_asn1.c
133
.offset = offsetof(PKCS7, d.encrypted),
lib/libcrypto/pkcs7/pk7_asn1.c
72
.offset = offsetof(PKCS7, d.other),
lib/libcrypto/pkcs7/pk7_asn1.c
83
.offset = offsetof(PKCS7, d.data),
lib/libcrypto/pkcs7/pk7_asn1.c
93
.offset = offsetof(PKCS7, d.sign),
lib/libcrypto/pkcs7/pk7_doit.c
1094
if (p7->d.signed_and_enveloped == NULL)
lib/libcrypto/pkcs7/pk7_doit.c
1096
if ((rsk = p7->d.signed_and_enveloped->recipientinfo) == NULL)
lib/libcrypto/pkcs7/pk7_doit.c
274
if (p7->d.ptr == NULL) {
lib/libcrypto/pkcs7/pk7_doit.c
283
md_sk = p7->d.sign->md_algs;
lib/libcrypto/pkcs7/pk7_doit.c
284
os = PKCS7_get_octet_string(p7->d.sign->contents);
lib/libcrypto/pkcs7/pk7_doit.c
287
rsk = p7->d.signed_and_enveloped->recipientinfo;
lib/libcrypto/pkcs7/pk7_doit.c
288
md_sk = p7->d.signed_and_enveloped->md_algs;
lib/libcrypto/pkcs7/pk7_doit.c
289
xalg = p7->d.signed_and_enveloped->enc_data->algorithm;
lib/libcrypto/pkcs7/pk7_doit.c
290
evp_cipher = p7->d.signed_and_enveloped->enc_data->cipher;
lib/libcrypto/pkcs7/pk7_doit.c
297
rsk = p7->d.enveloped->recipientinfo;
lib/libcrypto/pkcs7/pk7_doit.c
298
xalg = p7->d.enveloped->enc_data->algorithm;
lib/libcrypto/pkcs7/pk7_doit.c
299
evp_cipher = p7->d.enveloped->enc_data->cipher;
lib/libcrypto/pkcs7/pk7_doit.c
306
xa = p7->d.digest->md;
lib/libcrypto/pkcs7/pk7_doit.c
307
os = PKCS7_get_octet_string(p7->d.digest->contents);
lib/libcrypto/pkcs7/pk7_doit.c
437
if (p7->d.ptr == NULL) {
lib/libcrypto/pkcs7/pk7_doit.c
446
data_body = PKCS7_get_octet_string(p7->d.sign->contents);
lib/libcrypto/pkcs7/pk7_doit.c
447
md_sk = p7->d.sign->md_algs;
lib/libcrypto/pkcs7/pk7_doit.c
450
rsk = p7->d.signed_and_enveloped->recipientinfo;
lib/libcrypto/pkcs7/pk7_doit.c
451
md_sk = p7->d.signed_and_enveloped->md_algs;
lib/libcrypto/pkcs7/pk7_doit.c
452
data_body = p7->d.signed_and_enveloped->enc_data->enc_data;
lib/libcrypto/pkcs7/pk7_doit.c
453
enc_alg = p7->d.signed_and_enveloped->enc_data->algorithm;
lib/libcrypto/pkcs7/pk7_doit.c
461
rsk = p7->d.enveloped->recipientinfo;
lib/libcrypto/pkcs7/pk7_doit.c
462
enc_alg = p7->d.enveloped->enc_data->algorithm;
lib/libcrypto/pkcs7/pk7_doit.c
463
data_body = p7->d.enveloped->enc_data->enc_data;
lib/libcrypto/pkcs7/pk7_doit.c
698
if (p7->d.ptr == NULL) {
lib/libcrypto/pkcs7/pk7_doit.c
708
os = p7->d.data;
lib/libcrypto/pkcs7/pk7_doit.c
712
si_sk = p7->d.signed_and_enveloped->signer_info;
lib/libcrypto/pkcs7/pk7_doit.c
713
os = p7->d.signed_and_enveloped->enc_data->enc_data;
lib/libcrypto/pkcs7/pk7_doit.c
720
p7->d.signed_and_enveloped->enc_data->enc_data = os;
lib/libcrypto/pkcs7/pk7_doit.c
725
os = p7->d.enveloped->enc_data->enc_data;
lib/libcrypto/pkcs7/pk7_doit.c
732
p7->d.enveloped->enc_data->enc_data = os;
lib/libcrypto/pkcs7/pk7_doit.c
736
si_sk = p7->d.sign->signer_info;
lib/libcrypto/pkcs7/pk7_doit.c
737
os = PKCS7_get_octet_string(p7->d.sign->contents);
lib/libcrypto/pkcs7/pk7_doit.c
743
if (PKCS7_type_is_data(p7->d.sign->contents) && p7->detached) {
lib/libcrypto/pkcs7/pk7_doit.c
746
p7->d.sign->contents->d.data = NULL;
lib/libcrypto/pkcs7/pk7_doit.c
751
os = PKCS7_get_octet_string(p7->d.digest->contents);
lib/libcrypto/pkcs7/pk7_doit.c
757
if (PKCS7_type_is_data(p7->d.digest->contents) &&
lib/libcrypto/pkcs7/pk7_doit.c
761
p7->d.digest->contents->d.data = NULL;
lib/libcrypto/pkcs7/pk7_doit.c
814
OBJ_obj2nid(p7->d.digest->md->algorithm)))
lib/libcrypto/pkcs7/pk7_doit.c
818
if (ASN1_STRING_set(p7->d.digest->digest, md_data,
lib/libcrypto/pkcs7/pk7_doit.c
91
return p7->d.data;
lib/libcrypto/pkcs7/pk7_doit.c
92
if (PKCS7_type_is_other(p7) && p7->d.other &&
lib/libcrypto/pkcs7/pk7_doit.c
929
if (p7->d.ptr == NULL) {
lib/libcrypto/pkcs7/pk7_doit.c
93
(p7->d.other->type == V_ASN1_OCTET_STRING))
lib/libcrypto/pkcs7/pk7_doit.c
935
cert = p7->d.sign->cert;
lib/libcrypto/pkcs7/pk7_doit.c
937
cert = p7->d.signed_and_enveloped->cert;
lib/libcrypto/pkcs7/pk7_doit.c
94
return p7->d.other->value.octet_string;
lib/libcrypto/pkcs7/pk7_lib.c
147
if (p7->d.sign->contents != NULL)
lib/libcrypto/pkcs7/pk7_lib.c
148
PKCS7_free(p7->d.sign->contents);
lib/libcrypto/pkcs7/pk7_lib.c
149
p7->d.sign->contents = p7_data;
lib/libcrypto/pkcs7/pk7_lib.c
152
if (p7->d.digest->contents != NULL)
lib/libcrypto/pkcs7/pk7_lib.c
153
PKCS7_free(p7->d.digest->contents);
lib/libcrypto/pkcs7/pk7_lib.c
154
p7->d.digest->contents = p7_data;
lib/libcrypto/pkcs7/pk7_lib.c
181
if ((p7->d.sign = PKCS7_SIGNED_new()) == NULL)
lib/libcrypto/pkcs7/pk7_lib.c
183
if (!ASN1_INTEGER_set(p7->d.sign->version, 1)) {
lib/libcrypto/pkcs7/pk7_lib.c
184
PKCS7_SIGNED_free(p7->d.sign);
lib/libcrypto/pkcs7/pk7_lib.c
185
p7->d.sign = NULL;
lib/libcrypto/pkcs7/pk7_lib.c
191
if ((p7->d.data = ASN1_OCTET_STRING_new()) == NULL)
lib/libcrypto/pkcs7/pk7_lib.c
196
if ((p7->d.signed_and_enveloped =
lib/libcrypto/pkcs7/pk7_lib.c
199
if (!ASN1_INTEGER_set(p7->d.signed_and_enveloped->version, 1))
lib/libcrypto/pkcs7/pk7_lib.c
201
p7->d.signed_and_enveloped->enc_data->content_type =
lib/libcrypto/pkcs7/pk7_lib.c
206
if ((p7->d.enveloped = PKCS7_ENVELOPE_new()) == NULL)
lib/libcrypto/pkcs7/pk7_lib.c
208
if (!ASN1_INTEGER_set(p7->d.enveloped->version, 0))
lib/libcrypto/pkcs7/pk7_lib.c
210
p7->d.enveloped->enc_data->content_type =
lib/libcrypto/pkcs7/pk7_lib.c
215
if ((p7->d.encrypted = PKCS7_ENCRYPT_new()) == NULL)
lib/libcrypto/pkcs7/pk7_lib.c
217
if (!ASN1_INTEGER_set(p7->d.encrypted->version, 0))
lib/libcrypto/pkcs7/pk7_lib.c
219
p7->d.encrypted->enc_data->content_type =
lib/libcrypto/pkcs7/pk7_lib.c
225
if ((p7->d.digest = PKCS7_DIGEST_new()) == NULL)
lib/libcrypto/pkcs7/pk7_lib.c
227
if (!ASN1_INTEGER_set(p7->d.digest->version, 0))
lib/libcrypto/pkcs7/pk7_lib.c
244
p7->d.other = other;
lib/libcrypto/pkcs7/pk7_lib.c
260
signer_sk = p7->d.sign->signer_info;
lib/libcrypto/pkcs7/pk7_lib.c
261
md_sk = p7->d.sign->md_algs;
lib/libcrypto/pkcs7/pk7_lib.c
264
signer_sk = p7->d.signed_and_enveloped->signer_info;
lib/libcrypto/pkcs7/pk7_lib.c
265
md_sk = p7->d.signed_and_enveloped->md_algs;
lib/libcrypto/pkcs7/pk7_lib.c
314
sk = &(p7->d.sign->cert);
lib/libcrypto/pkcs7/pk7_lib.c
317
sk = &(p7->d.signed_and_enveloped->cert);
lib/libcrypto/pkcs7/pk7_lib.c
348
sk = &(p7->d.sign->crl);
lib/libcrypto/pkcs7/pk7_lib.c
351
sk = &(p7->d.signed_and_enveloped->crl);
lib/libcrypto/pkcs7/pk7_lib.c
459
if (!(p7->d.digest->md->parameter = ASN1_TYPE_new())) {
lib/libcrypto/pkcs7/pk7_lib.c
463
p7->d.digest->md->parameter->type = V_ASN1_NULL;
lib/libcrypto/pkcs7/pk7_lib.c
464
p7->d.digest->md->algorithm = OBJ_nid2obj(EVP_MD_nid(md));
lib/libcrypto/pkcs7/pk7_lib.c
476
if (p7 == NULL || p7->d.ptr == NULL)
lib/libcrypto/pkcs7/pk7_lib.c
479
return (p7->d.sign->signer_info);
lib/libcrypto/pkcs7/pk7_lib.c
481
return (p7->d.signed_and_enveloped->signer_info);
lib/libcrypto/pkcs7/pk7_lib.c
536
sk = p7->d.signed_and_enveloped->recipientinfo;
lib/libcrypto/pkcs7/pk7_lib.c
539
sk = p7->d.enveloped->recipientinfo;
lib/libcrypto/pkcs7/pk7_lib.c
603
return(X509_find_by_issuer_and_serial(p7->d.sign->cert,
lib/libcrypto/pkcs7/pk7_lib.c
620
ec = p7->d.signed_and_enveloped->enc_data;
lib/libcrypto/pkcs7/pk7_lib.c
623
ec = p7->d.enveloped->enc_data;
lib/libcrypto/pkcs7/pk7_lib.c
649
os = p7->d.data;
lib/libcrypto/pkcs7/pk7_lib.c
653
os = p7->d.signed_and_enveloped->enc_data->enc_data;
lib/libcrypto/pkcs7/pk7_lib.c
656
p7->d.signed_and_enveloped->enc_data->enc_data = os;
lib/libcrypto/pkcs7/pk7_lib.c
661
os = p7->d.enveloped->enc_data->enc_data;
lib/libcrypto/pkcs7/pk7_lib.c
664
p7->d.enveloped->enc_data->enc_data = os;
lib/libcrypto/pkcs7/pk7_lib.c
669
os = p7->d.sign->contents->d.data;
lib/libcrypto/pkcs7/pk7_lib.c
80
if (p7->d.sign == NULL) {
lib/libcrypto/pkcs7/pk7_lib.c
85
if (ret && PKCS7_type_is_data(p7->d.sign->contents)) {
lib/libcrypto/pkcs7/pk7_lib.c
87
os = p7->d.sign->contents->d.data;
lib/libcrypto/pkcs7/pk7_lib.c
89
p7->d.sign->contents->d.data = NULL;
lib/libcrypto/pkcs7/pk7_lib.c
98
if (p7->d.sign == NULL ||
lib/libcrypto/pkcs7/pk7_lib.c
99
p7->d.sign->contents->d.ptr == NULL)
lib/libcrypto/pkcs7/pk7_mime.c
93
if (p7->d.sign == NULL)
lib/libcrypto/pkcs7/pk7_mime.c
95
mdalgs = p7->d.sign->md_algs;
lib/libcrypto/pkcs7/pk7_smime.c
315
signer, p7->d.sign->cert)) {
lib/libcrypto/pkcs7/pk7_smime.c
332
X509_STORE_CTX_set0_crls(&cert_ctx, p7->d.sign->crl);
lib/libcrypto/pkcs7/pk7_smime.c
464
if (!signer && !(flags & PKCS7_NOINTERN) && p7->d.sign->cert)
lib/libcrypto/pkcs7/pk7_smime.c
466
X509_find_by_issuer_and_serial(p7->d.sign->cert,
lib/libcrypto/pkcs7/pkcs7.h
197
} d;
lib/libcrypto/rc2/rc2.c
100
unsigned int c, d;
lib/libcrypto/rc2/rc2.c
116
d = k[len - 1];
lib/libcrypto/rc2/rc2.c
120
d = key_table[(k[j] + d) & 0xff];
lib/libcrypto/rc2/rc2.c
121
k[i] = d;
lib/libcrypto/rc2/rc2.c
130
d = key_table[k[i] & c];
lib/libcrypto/rc2/rc2.c
131
k[i] = d;
lib/libcrypto/rc2/rc2.c
133
d = key_table[k[i + j] ^ d];
lib/libcrypto/rc2/rc2.c
134
k[i] = d;
lib/libcrypto/rc2/rc2.c
145
RC2_encrypt(unsigned long *d, RC2_KEY *key)
lib/libcrypto/rc2/rc2.c
152
l = d[0];
lib/libcrypto/rc2/rc2.c
155
l = d[1];
lib/libcrypto/rc2/rc2.c
185
d[0] = (unsigned long)(x0 & 0xffff)|((unsigned long)(x1 & 0xffff) <<
lib/libcrypto/rc2/rc2.c
187
d[1] = (unsigned long)(x2 & 0xffff)|((unsigned long)(x3 & 0xffff) <<
lib/libcrypto/rc2/rc2.c
193
RC2_decrypt(unsigned long *d, RC2_KEY *key)
lib/libcrypto/rc2/rc2.c
200
l = d[0];
lib/libcrypto/rc2/rc2.c
203
l = d[1];
lib/libcrypto/rc2/rc2.c
234
d[0] = (unsigned long)(x0 & 0xffff)|((unsigned long)(x1 & 0xffff) <<
lib/libcrypto/rc2/rc2.c
236
d[1] = (unsigned long)(x2 & 0xffff)|((unsigned long)(x3 & 0xffff) <<
lib/libcrypto/rc2/rc2.c
394
unsigned long l, d[2];
lib/libcrypto/rc2/rc2.c
397
d[0] = l;
lib/libcrypto/rc2/rc2.c
399
d[1] = l;
lib/libcrypto/rc2/rc2.c
401
RC2_encrypt(d, ks);
lib/libcrypto/rc2/rc2.c
403
RC2_decrypt(d, ks);
lib/libcrypto/rc2/rc2.c
404
l = d[0];
lib/libcrypto/rc2/rc2.c
406
l = d[1];
lib/libcrypto/rc2/rc2.c
408
l = d[0] = d[1] = 0;
lib/libcrypto/rc2/rc2.c
424
unsigned char d[8];
lib/libcrypto/rc2/rc2.c
435
dp = (char *)d;
lib/libcrypto/rc2/rc2.c
441
dp = (char *)d;
lib/libcrypto/rc2/rc2.c
448
*(out++) = *(in++) ^ d[n];
lib/libcrypto/rc4/rc4.c
100
rc4_chunk(RC4_INT *d, RC4_INT *x, RC4_INT *y)
lib/libcrypto/rc4/rc4.c
106
chunk |= (uint64_t)rc4_step(d, x, y) << (i * 8);
lib/libcrypto/rc4/rc4.c
115
RC4_INT *d, x, y;
lib/libcrypto/rc4/rc4.c
120
d = key->data;
lib/libcrypto/rc4/rc4.c
125
*(uint64_t *)out = *(const uint64_t *)in ^ rc4_chunk(d, &x, &y);
lib/libcrypto/rc4/rc4.c
135
out[i] = rc4_step(d, &x, &y) ^ in[i];
lib/libcrypto/rc4/rc4.c
142
out[i] = rc4_step(d, &x, &y) ^ in[i];
lib/libcrypto/rc4/rc4.c
156
RC4_INT *d, tmp;
lib/libcrypto/rc4/rc4.c
160
d = key->data;
lib/libcrypto/rc4/rc4.c
166
d[i] = i;
lib/libcrypto/rc4/rc4.c
169
tmp = d[i + j];
lib/libcrypto/rc4/rc4.c
171
d[i + j] = d[idx2];
lib/libcrypto/rc4/rc4.c
172
d[idx2] = tmp;
lib/libcrypto/rc4/rc4.c
72
rc4_step(RC4_INT *d, RC4_INT *x, RC4_INT *y)
lib/libcrypto/rc4/rc4.c
77
tx = d[*x];
lib/libcrypto/rc4/rc4.c
79
d[*x] = ty = d[*y];
lib/libcrypto/rc4/rc4.c
80
d[*y] = tx;
lib/libcrypto/rc4/rc4.c
82
return d[(tx + ty) & 0xff];
lib/libcrypto/rc4/rc4.c
87
rc4_chunk(RC4_INT *d, RC4_INT *x, RC4_INT *y)
lib/libcrypto/rc4/rc4.c
93
chunk = chunk << 8 | (uint64_t)rc4_step(d, x, y);
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
272
d = D;
lib/libcrypto/ripemd/ripemd.c
367
ctx->B = ctx->C + d + E;
lib/libcrypto/ripemd/ripemd.c
486
RIPEMD160(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/ripemd/ripemd.c
492
RIPEMD160_Update(&c, d, n);
lib/libcrypto/ripemd/ripemd.h
91
unsigned char *RIPEMD160(const unsigned char *d, size_t n,
lib/libcrypto/rsa/rsa.h
367
const BIGNUM **d);
lib/libcrypto/rsa/rsa.h
368
int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
lib/libcrypto/rsa/rsa_ameth.c
463
if (priv && x->d != NULL) {
lib/libcrypto/rsa/rsa_ameth.c
479
if (!bn_printf(bp, x->d, off, "privateExponent:"))
lib/libcrypto/rsa/rsa_asn1.c
118
.offset = offsetof(RSA, d),
lib/libcrypto/rsa/rsa_blinding.c
265
rsa_get_public_exp(const BIGNUM *d, const BIGNUM *p, const BIGNUM *q,
lib/libcrypto/rsa/rsa_blinding.c
270
if (d == NULL || p == NULL || q == NULL)
lib/libcrypto/rsa/rsa_blinding.c
288
ret = BN_mod_inverse_ct(NULL, d, r0, ctx);
lib/libcrypto/rsa/rsa_blinding.c
310
e = rsa_get_public_exp(rsa->d, rsa->p, rsa->q, ctx);
lib/libcrypto/rsa/rsa_chk.c
153
r = BN_mod_mul(i, key->d, key->e, k, ctx);
lib/libcrypto/rsa/rsa_chk.c
172
r = BN_mod_ct(j, key->d, i, ctx);
lib/libcrypto/rsa/rsa_chk.c
190
r = BN_mod_ct(j, key->d, i, ctx);
lib/libcrypto/rsa/rsa_chk.c
66
if (!key->p || !key->q || !key->n || !key->e || !key->d) {
lib/libcrypto/rsa/rsa_eay.c
390
BIGNUM d;
lib/libcrypto/rsa/rsa_eay.c
392
BN_init(&d);
lib/libcrypto/rsa/rsa_eay.c
393
BN_with_flags(&d, rsa->d, BN_FLG_CONSTTIME);
lib/libcrypto/rsa/rsa_eay.c
395
if (!rsa->meth->bn_mod_exp(ret, f, &d, rsa->n, ctx,
lib/libcrypto/rsa/rsa_eay.c
510
BIGNUM d;
lib/libcrypto/rsa/rsa_eay.c
512
BN_init(&d);
lib/libcrypto/rsa/rsa_eay.c
513
BN_with_flags(&d, rsa->d, BN_FLG_CONSTTIME);
lib/libcrypto/rsa/rsa_eay.c
515
if (!rsa->meth->bn_mod_exp(ret, f, &d, rsa->n, ctx,
lib/libcrypto/rsa/rsa_eay.c
624
if (padding == RSA_X931_PADDING && (ret->d[0] & 0xf) != 12)
lib/libcrypto/rsa/rsa_eay.c
791
BIGNUM d;
lib/libcrypto/rsa/rsa_eay.c
793
BN_init(&d);
lib/libcrypto/rsa/rsa_eay.c
794
BN_with_flags(&d, rsa->d, BN_FLG_CONSTTIME);
lib/libcrypto/rsa/rsa_eay.c
796
if (!rsa->meth->bn_mod_exp(r0, I, &d, rsa->n, ctx,
lib/libcrypto/rsa/rsa_gen.c
122
if (!rsa->d && ((rsa->d = BN_new()) == NULL))
lib/libcrypto/rsa/rsa_gen.c
206
if (BN_mod_inverse_ct(rsa->d, rsa->e, &pr0, ctx) == NULL) /* d */
lib/libcrypto/rsa/rsa_gen.c
210
BN_init(&d);
lib/libcrypto/rsa/rsa_gen.c
211
BN_with_flags(&d, rsa->d, BN_FLG_CONSTTIME);
lib/libcrypto/rsa/rsa_gen.c
214
if (!BN_mod_ct(rsa->dmp1, &d, r1, ctx))
lib/libcrypto/rsa/rsa_gen.c
218
if (!BN_mod_ct(rsa->dmq1, &d, r2, ctx))
lib/libcrypto/rsa/rsa_gen.c
84
BIGNUM pr0, d, p;
lib/libcrypto/rsa/rsa_lib.c
179
BN_free(r->d);
lib/libcrypto/rsa/rsa_lib.c
230
RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d)
lib/libcrypto/rsa/rsa_lib.c
236
if (d != NULL)
lib/libcrypto/rsa/rsa_lib.c
237
*d = r->d;
lib/libcrypto/rsa/rsa_lib.c
242
RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)
lib/libcrypto/rsa/rsa_lib.c
255
if (d != NULL) {
lib/libcrypto/rsa/rsa_lib.c
256
BN_free(r->d);
lib/libcrypto/rsa/rsa_lib.c
257
r->d = d;
lib/libcrypto/rsa/rsa_lib.c
348
return r->d;
lib/libcrypto/rsa/rsa_local.h
107
BIGNUM *d;
lib/libcrypto/sha/sha.h
100
unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/sha/sha.h
124
unsigned char *SHA224(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/sha/sha.h
131
unsigned char *SHA256(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/sha/sha.h
161
SHA_LONG64 d[SHA_LBLOCK];
lib/libcrypto/sha/sha.h
173
unsigned char *SHA384(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/sha/sha.h
180
unsigned char *SHA512(const unsigned char *d, size_t n, unsigned char *md)
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
111
*e = *d;
lib/libcrypto/sha/sha1.c
112
*d = *c;
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
127
*e = *d;
lib/libcrypto/sha/sha1.c
128
*d = *c;
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
143
*e = *d;
lib/libcrypto/sha/sha1.c
144
*d = *c;
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
159
*e = *d;
lib/libcrypto/sha/sha1.c
160
*d = *c;
lib/libcrypto/sha/sha1.c
171
unsigned int a, b, c, d, e;
lib/libcrypto/sha/sha1.c
179
d = ctx->h3;
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
378
ctx->h3 += d;
lib/libcrypto/sha/sha1.c
503
SHA1(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/sha/sha1.c
509
SHA1_Update(&c, d, n);
lib/libcrypto/sha/sha256.c
142
sha256_round(uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d, uint32_t *e,
lib/libcrypto/sha/sha256.c
153
*e = *d + T1;
lib/libcrypto/sha/sha256.c
154
*d = *c;
lib/libcrypto/sha/sha256.c
165
uint32_t a, b, c, d, e, f, g, h;
lib/libcrypto/sha/sha256.c
173
d = ctx->h[3];
lib/libcrypto/sha/sha256.c
219
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[0], W[0]);
lib/libcrypto/sha/sha256.c
220
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[1], W[1]);
lib/libcrypto/sha/sha256.c
221
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[2], W[2]);
lib/libcrypto/sha/sha256.c
222
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[3], W[3]);
lib/libcrypto/sha/sha256.c
223
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[4], W[4]);
lib/libcrypto/sha/sha256.c
224
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[5], W[5]);
lib/libcrypto/sha/sha256.c
225
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[6], W[6]);
lib/libcrypto/sha/sha256.c
226
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[7], W[7]);
lib/libcrypto/sha/sha256.c
227
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[8], W[8]);
lib/libcrypto/sha/sha256.c
228
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[9], W[9]);
lib/libcrypto/sha/sha256.c
229
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[10], W[10]);
lib/libcrypto/sha/sha256.c
230
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[11], W[11]);
lib/libcrypto/sha/sha256.c
231
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[12], W[12]);
lib/libcrypto/sha/sha256.c
232
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[13], W[13]);
lib/libcrypto/sha/sha256.c
233
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[14], W[14]);
lib/libcrypto/sha/sha256.c
234
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[15], W[15]);
lib/libcrypto/sha/sha256.c
254
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 0], W[0]);
lib/libcrypto/sha/sha256.c
255
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 1], W[1]);
lib/libcrypto/sha/sha256.c
256
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 2], W[2]);
lib/libcrypto/sha/sha256.c
257
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 3], W[3]);
lib/libcrypto/sha/sha256.c
258
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 4], W[4]);
lib/libcrypto/sha/sha256.c
259
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 5], W[5]);
lib/libcrypto/sha/sha256.c
260
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 6], W[6]);
lib/libcrypto/sha/sha256.c
261
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 7], W[7]);
lib/libcrypto/sha/sha256.c
262
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 8], W[8]);
lib/libcrypto/sha/sha256.c
263
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 9], W[9]);
lib/libcrypto/sha/sha256.c
264
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 10], W[10]);
lib/libcrypto/sha/sha256.c
265
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 11], W[11]);
lib/libcrypto/sha/sha256.c
266
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 12], W[12]);
lib/libcrypto/sha/sha256.c
267
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 13], W[13]);
lib/libcrypto/sha/sha256.c
268
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 14], W[14]);
lib/libcrypto/sha/sha256.c
269
sha256_round(&a, &b, &c, &d, &e, &f, &g, &h, K256[i + 15], W[15]);
lib/libcrypto/sha/sha256.c
275
ctx->h[3] += d;
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
177
*e = *d + T1;
lib/libcrypto/sha/sha512.c
178
*d = *c;
lib/libcrypto/sha/sha512.c
189
SHA_LONG64 a, b, c, d, e, f, g, h;
lib/libcrypto/sha/sha512.c
197
d = ctx->h[3];
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
299
ctx->h[3] += d;
lib/libcrypto/sha/sha512.c
351
SHA384(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/sha/sha512.c
356
SHA512_Update(&c, d, n);
lib/libcrypto/sha/sha512.c
456
c->u.d[SHA_LBLOCK - 2] = htobe64(c->Nh);
lib/libcrypto/sha/sha512.c
457
c->u.d[SHA_LBLOCK - 1] = htobe64(c->Nl);
lib/libcrypto/sha/sha512.c
500
SHA512(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/sha/sha512.c
505
SHA512_Update(&c, d, n);
lib/libcrypto/ts/ts.h
230
int TS_MSG_IMPRINT_set_msg(TS_MSG_IMPRINT *a, unsigned char *d, int len);
lib/libcrypto/ts/ts_asn1.c
1057
pkcs7_signed = token->d.sign;
lib/libcrypto/ts/ts_asn1.c
1065
tst_info_wrapper = enveloped->d.other;
lib/libcrypto/ts/ts_req_utils.c
133
TS_MSG_IMPRINT_set_msg(TS_MSG_IMPRINT *a, unsigned char *d, int len)
lib/libcrypto/ts/ts_req_utils.c
135
return ASN1_OCTET_STRING_set(a->hashed_msg, d, len);
lib/libcrypto/ts/ts_rsp_sign.c
683
tsa_name->d.dirn =
lib/libcrypto/ts/ts_rsp_sign.c
685
if (!tsa_name->d.dirn)
lib/libcrypto/ts/ts_rsp_sign.c
761
if (!ASN1_INTEGER_set(p7->d.sign->version, 3))
lib/libcrypto/ts/ts_rsp_sign.c
904
if ((name->d.dirn = X509_NAME_dup(X509_get_issuer_name(cert))) == NULL)
lib/libcrypto/ts/ts_rsp_sign.c
934
if (!(ret->d.other = ASN1_TYPE_new()))
lib/libcrypto/ts/ts_rsp_sign.c
939
ASN1_TYPE_set(ret->d.other, V_ASN1_OCTET_STRING, octet_string);
lib/libcrypto/ts/ts_rsp_verify.c
455
X509_NAME_cmp(issuer->d.dirn, X509_get_issuer_name(cert)))
lib/libcrypto/ts/ts_rsp_verify.c
818
X509_name_cmp(tsa_name->d.dirn, X509_get_subject_name(signer)) == 0)
lib/libcrypto/x509/x509_akey.c
228
gen->d.dirn = isname;
lib/libcrypto/x509/x509_alt.c
206
if (!X509V3_add_value_uchar("email", gen->d.ia5->data, &ret))
lib/libcrypto/x509/x509_alt.c
211
if (!X509V3_add_value_uchar("DNS", gen->d.ia5->data, &ret))
lib/libcrypto/x509/x509_alt.c
216
if (!X509V3_add_value_uchar("URI", gen->d.ia5->data, &ret))
lib/libcrypto/x509/x509_alt.c
221
if (X509_NAME_oneline(gen->d.dirn, oline, 256) == NULL)
lib/libcrypto/x509/x509_alt.c
228
p = gen->d.ip->data;
lib/libcrypto/x509/x509_alt.c
229
if (gen->d.ip->length == 4)
lib/libcrypto/x509/x509_alt.c
232
else if (gen->d.ip->length == 16) {
lib/libcrypto/x509/x509_alt.c
252
if (!i2t_ASN1_OBJECT(oline, 256, gen->d.rid))
lib/libcrypto/x509/x509_alt.c
289
BIO_printf(out, "email:%.*s", gen->d.ia5->length,
lib/libcrypto/x509/x509_alt.c
290
gen->d.ia5->data);
lib/libcrypto/x509/x509_alt.c
294
BIO_printf(out, "DNS:%.*s", gen->d.ia5->length,
lib/libcrypto/x509/x509_alt.c
295
gen->d.ia5->data);
lib/libcrypto/x509/x509_alt.c
299
BIO_printf(out, "URI:%.*s", gen->d.ia5->length,
lib/libcrypto/x509/x509_alt.c
300
gen->d.ia5->data);
lib/libcrypto/x509/x509_alt.c
305
X509_NAME_print_ex(out, gen->d.dirn, 0, XN_FLAG_ONELINE);
lib/libcrypto/x509/x509_alt.c
309
p = gen->d.ip->data;
lib/libcrypto/x509/x509_alt.c
310
if (gen->d.ip->length == 4)
lib/libcrypto/x509/x509_alt.c
313
else if (gen->d.ip->length == 16) {
lib/libcrypto/x509/x509_alt.c
328
i2a_ASN1_OBJECT(out, gen->d.rid);
lib/libcrypto/x509/x509_alt.c
496
gen->d.ia5 = email;
lib/libcrypto/x509/x509_alt.c
589
gen->d.rid = obj;
lib/libcrypto/x509/x509_alt.c
595
gen->d.ip = a2i_IPADDRESS_NC(value);
lib/libcrypto/x509/x509_alt.c
597
gen->d.ip = a2i_IPADDRESS(value);
lib/libcrypto/x509/x509_alt.c
598
if (gen->d.ip == NULL) {
lib/libcrypto/x509/x509_alt.c
625
if (!(gen->d.ia5 = ASN1_IA5STRING_new()) ||
lib/libcrypto/x509/x509_alt.c
626
!ASN1_STRING_set(gen->d.ia5, value, strlen(value))) {
lib/libcrypto/x509/x509_alt.c
755
if (!(gen->d.otherName = OTHERNAME_new()))
lib/libcrypto/x509/x509_alt.c
760
ASN1_TYPE_free(gen->d.otherName->value);
lib/libcrypto/x509/x509_alt.c
761
if (!(gen->d.otherName->value = ASN1_generate_v3(p + 1, ctx)))
lib/libcrypto/x509/x509_alt.c
767
gen->d.otherName->type_id = OBJ_txt2obj(objtmp, 0);
lib/libcrypto/x509/x509_alt.c
770
gen->d.otherName->type_id = NULL;
lib/libcrypto/x509/x509_alt.c
771
if (!gen->d.otherName->type_id)
lib/libcrypto/x509/x509_alt.c
796
gen->d.dirn = nm;
lib/libcrypto/x509/x509_constraints.c
773
ASN1_IA5STRING *aname = name->d.dNSName;
lib/libcrypto/x509/x509_constraints.c
781
ASN1_IA5STRING *aname = name->d.rfc822Name;
lib/libcrypto/x509/x509_constraints.c
789
ASN1_IA5STRING *aname = name->d.uniformResourceIdentifier;
lib/libcrypto/x509/x509_constraints.c
797
X509_NAME *dname = name->d.directoryName;
lib/libcrypto/x509/x509_constraints.c
807
*bytes = name->d.ip->data;
lib/libcrypto/x509/x509_constraints.c
808
*len = name->d.ip->length;
lib/libcrypto/x509/x509_cpols.c
218
.offset = offsetof(POLICYQUALINFO, d.other),
lib/libcrypto/x509/x509_cpols.c
229
.offset = offsetof(POLICYQUALINFO, d.cpsuri),
lib/libcrypto/x509/x509_cpols.c
239
.offset = offsetof(POLICYQUALINFO, d.usernotice),
lib/libcrypto/x509/x509_cpols.c
522
nqual->d.cpsuri = ASN1_IA5STRING_new();
lib/libcrypto/x509/x509_cpols.c
523
if (nqual->d.cpsuri == NULL)
lib/libcrypto/x509/x509_cpols.c
525
if (ASN1_STRING_set(nqual->d.cpsuri, cnf->value,
lib/libcrypto/x509/x509_cpols.c
598
qual->d.usernotice = not;
lib/libcrypto/x509/x509_cpols.c
723
qualinfo->d.cpsuri->length,
lib/libcrypto/x509/x509_cpols.c
724
qualinfo->d.cpsuri->data);
lib/libcrypto/x509/x509_cpols.c
729
print_notice(out, qualinfo->d.usernotice, indent + 2);
lib/libcrypto/x509/x509_genn.c
190
.offset = offsetof(GENERAL_NAME, d.otherName),
lib/libcrypto/x509/x509_genn.c
197
.offset = offsetof(GENERAL_NAME, d.rfc822Name),
lib/libcrypto/x509/x509_genn.c
204
.offset = offsetof(GENERAL_NAME, d.dNSName),
lib/libcrypto/x509/x509_genn.c
212
.offset = offsetof(GENERAL_NAME, d.x400Address),
lib/libcrypto/x509/x509_genn.c
220
.offset = offsetof(GENERAL_NAME, d.directoryName),
lib/libcrypto/x509/x509_genn.c
227
.offset = offsetof(GENERAL_NAME, d.ediPartyName),
lib/libcrypto/x509/x509_genn.c
234
.offset = offsetof(GENERAL_NAME, d.uniformResourceIdentifier),
lib/libcrypto/x509/x509_genn.c
241
.offset = offsetof(GENERAL_NAME, d.iPAddress),
lib/libcrypto/x509/x509_genn.c
248
.offset = offsetof(GENERAL_NAME, d.registeredID),
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
447
a->d.x400Address = value;
lib/libcrypto/x509/x509_genn.c
451
a->d.ediPartyName = value;
lib/libcrypto/x509/x509_genn.c
455
a->d.otherName = value;
lib/libcrypto/x509/x509_genn.c
461
a->d.ia5 = value;
lib/libcrypto/x509/x509_genn.c
465
a->d.dirn = value;
lib/libcrypto/x509/x509_genn.c
469
a->d.ip = value;
lib/libcrypto/x509/x509_genn.c
473
a->d.rid = value;
lib/libcrypto/x509/x509_genn.c
487
return a->d.x400Address;
lib/libcrypto/x509/x509_genn.c
490
return a->d.ediPartyName;
lib/libcrypto/x509/x509_genn.c
493
return a->d.otherName;
lib/libcrypto/x509/x509_genn.c
498
return a->d.ia5;
lib/libcrypto/x509/x509_genn.c
501
return a->d.dirn;
lib/libcrypto/x509/x509_genn.c
504
return a->d.ip;
lib/libcrypto/x509/x509_genn.c
507
return a->d.rid;
lib/libcrypto/x509/x509_genn.c
538
*poid = gen->d.otherName->type_id;
lib/libcrypto/x509/x509_genn.c
540
*pvalue = gen->d.otherName->value;
lib/libcrypto/x509/x509_ncons.c
270
print_nc_ipadd(bp, tree->base->d.ip);
lib/libcrypto/x509/x509_ncons.c
326
gntmp.d.directoryName = nm;
lib/libcrypto/x509/x509_ncons.c
344
gntmp.d.rfc822Name = X509_NAME_ENTRY_get_data(ne);
lib/libcrypto/x509/x509_ncons.c
345
if (gntmp.d.rfc822Name->type != V_ASN1_IA5STRING)
lib/libcrypto/x509/x509_ncons.c
421
return nc_dn(gen->d.directoryName, base->d.directoryName);
lib/libcrypto/x509/x509_ncons.c
424
return nc_dns(gen->d.dNSName, base->d.dNSName);
lib/libcrypto/x509/x509_ncons.c
427
return nc_email(gen->d.rfc822Name, base->d.rfc822Name);
lib/libcrypto/x509/x509_ncons.c
430
return nc_uri(gen->d.uniformResourceIdentifier,
lib/libcrypto/x509/x509_ncons.c
431
base->d.uniformResourceIdentifier);
lib/libcrypto/x509/x509_purp.c
320
iname = gen->d.directoryName;
lib/libcrypto/x509/x509_purp.c
885
nm = gen->d.dirn;
lib/libcrypto/x509/x509_utl.c
1109
cstr = gen->d.rfc822Name;
lib/libcrypto/x509/x509_utl.c
1111
cstr = gen->d.dNSName;
lib/libcrypto/x509/x509_utl.c
1113
cstr = gen->d.iPAddress;
lib/libcrypto/x509/x509_utl.c
665
ad->location->d.uniformResourceIdentifier))
lib/libcrypto/x509/x509_utl.c
716
if (!append_ia5(&ret, gen->d.ia5))
lib/libcrypto/x509/x509_vfy.c
1446
if (!X509_NAME_cmp(nm, gena->d.directoryName))
lib/libcrypto/x509/x509_vfy.c
1479
if (!X509_NAME_cmp(gen->d.directoryName, nm))
lib/libcrypto/x509/x509v3.h
195
} d;
lib/libcrypto/x509/x509v3.h
271
} d;
lib/libcurses/curses.priv.h
247
#define memmove(d,s,n) bcopy(s,d,n)
lib/libcurses/curses.priv.h
249
#define memmove(d,s,n) _nc_memmove(d,s,n)
lib/libcurses/nc_string.h
63
#define _nc_STRCAT(d,s,n) NCURSES_VOID strlcat((d),(s),NCURSES_CAST(size_t,n))
lib/libcurses/nc_string.h
64
#define _nc_STRNCAT(d,s,m,n) NCURSES_VOID strlcat((d),(s),NCURSES_CAST(size_t,m))
lib/libcurses/nc_string.h
66
#define _nc_STRCAT(d,s,n) NCURSES_VOID strcat((d),(s))
lib/libcurses/nc_string.h
67
#define _nc_STRNCAT(d,s,m,n) NCURSES_VOID strncat((d),(s),(n))
lib/libcurses/nc_string.h
71
#define _nc_STRCPY(d,s,n) NCURSES_VOID strlcpy((d),(s),NCURSES_CAST(size_t,n))
lib/libcurses/nc_string.h
72
#define _nc_STRNCPY(d,s,n) NCURSES_VOID strlcpy((d),(s),NCURSES_CAST(size_t,n))
lib/libcurses/nc_string.h
74
#define _nc_STRCPY(d,s,n) NCURSES_VOID strcpy((d),(s))
lib/libcurses/nc_string.h
75
#define _nc_STRNCPY(d,s,n) NCURSES_VOID strncpy((d),(s),(n))
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
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
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/tinfo/captoinfo.c
137
save_string(char *d, const char *const s)
lib/libcurses/tinfo/captoinfo.c
139
size_t have = (size_t) (d - my_string);
lib/libcurses/tinfo/captoinfo.c
145
d = my_string + have;
lib/libcurses/tinfo/captoinfo.c
147
_nc_STRCPY(d, s, my_length - have);
lib/libcurses/tinfo/captoinfo.c
148
return d + strlen(d);
lib/libcurses/tinfo/name_match.c
102
const char *d, *t;
lib/libcurses/tinfo/name_match.c
105
for (d = name; *d != '\0'; d++) {
lib/libcurses/tinfo/name_match.c
106
if (*s != *d)
lib/libcurses/tinfo/name_match.c
121
if (code && *d == '\0')
lib/libcurses/tty/lib_twait.c
322
bigtime_t d;
lib/libcurses/tty/lib_twait.c
329
for (d = 0; d < useconds; d += step) {
lib/libedit/history.c
1109
void **d = va_arg(va, void **);
lib/libedit/history.c
1110
retval = history_next_evdata(h, ev, num, d);
lib/libedit/history.c
1117
void **d = va_arg(va, void **);
lib/libedit/history.c
1118
retval = history_deldata_nth((history_t *)h->h_ref, ev, num, d);
lib/libedit/history.c
1125
void *d = va_arg(va, void *);
lib/libedit/history.c
1132
((history_t *)h->h_ref)->cursor->data = d;
lib/libedit/history.c
66
#define Strcmp(d, s) strcmp(d, s)
lib/libedit/history.c
67
#define Strncmp(d, s, n) strncmp(d, s, n)
lib/libedit/history.c
68
#define Strncpy(d, s, n) strncpy(d, s, n)
lib/libedit/history.c
69
#define Strncat(d, s, n) strncat(d, s, n)
lib/libedit/history.c
84
#define Strcmp(d, s) wcscmp(d, s)
lib/libedit/history.c
85
#define Strncmp(d, s, n) wcsncmp(d, s, n)
lib/libedit/history.c
86
#define Strncpy(d, s, n) wcsncpy(d, s, n)
lib/libedit/history.c
87
#define Strncat(d, s, n) wcsncat(d, s, n)
lib/libedit/history.c
895
history_next_evdata(TYPE(History) *h, TYPE(HistEvent) *ev, int num, void **d)
lib/libedit/history.c
901
if (d)
lib/libedit/history.c
902
*d = ((history_t *)h->h_ref)->cursor->data;
lib/libedit/refresh.c
356
wchar_t *d, int dat, int dlen, wchar_t *s, int num)
lib/libedit/refresh.c
367
num, dat, dlen, ct_encode_string(d, &el->el_scratch)));
lib/libedit/refresh.c
373
b = d + dlen - 1;
lib/libedit/refresh.c
375
while (a >= &d[dat])
lib/libedit/refresh.c
377
d[dlen] = '\0'; /* just in case */
lib/libedit/refresh.c
382
num, dat, dlen, ct_encode_string(d, &el->el_scratch)));
lib/libedit/refresh.c
387
for (a = d + dat; (a < d + dlen) && (num > 0); num--)
lib/libedit/refresh.c
395
num, dat, dlen, d, s));
lib/libedit/refresh.c
406
wchar_t *d, int dat, int dlen, int num)
lib/libedit/refresh.c
413
d[dat] = '\0';
lib/libedit/refresh.c
418
num, dat, dlen, ct_encode_string(d, &el->el_scratch)));
lib/libedit/refresh.c
422
b = d + dat;
lib/libedit/refresh.c
424
while (a < &d[dlen])
lib/libedit/refresh.c
426
d[dlen] = '\0'; /* just in case */
lib/libedit/refresh.c
430
num, dat, dlen, ct_encode_string(d, &el->el_scratch)));
lib/libedit/tty.c
1152
const wchar_t *s, *d;
lib/libedit/tty.c
1245
d = s;
lib/libedit/tty.c
1248
if ((p ? strncmp(m->m_name, ct_encode_string(d, &el->el_scratch), (size_t)(p - d)) :
lib/libedit/tty.c
1249
strcmp(m->m_name, ct_encode_string(d, &el->el_scratch))) == 0 &&
lib/libedit/tty.c
1255
"%s: Invalid argument `%ls'.\n", name, d);
lib/libelf/elf_data.c
133
if ((d = _libelf_allocate_data(s)) == NULL)
lib/libelf/elf_data.c
136
d->d_data.d_buf = NULL;
lib/libelf/elf_data.c
137
d->d_data.d_off = 0;
lib/libelf/elf_data.c
138
d->d_data.d_align = sh_align;
lib/libelf/elf_data.c
139
d->d_data.d_size = msz * count;
lib/libelf/elf_data.c
140
d->d_data.d_type = elftype;
lib/libelf/elf_data.c
141
d->d_data.d_version = e->e_version;
lib/libelf/elf_data.c
144
STAILQ_INSERT_TAIL(&s->s_data, d, d_next);
lib/libelf/elf_data.c
145
return (&d->d_data);
lib/libelf/elf_data.c
148
if ((d->d_data.d_buf = malloc(msz * count)) == NULL) {
lib/libelf/elf_data.c
149
(void) _libelf_release_data(d);
lib/libelf/elf_data.c
154
d->d_flags |= LIBELF_F_DATA_MALLOCED;
lib/libelf/elf_data.c
158
if (!(*xlate)(d->d_data.d_buf, (size_t) d->d_data.d_size,
lib/libelf/elf_data.c
161
_libelf_release_data(d);
lib/libelf/elf_data.c
166
STAILQ_INSERT_TAIL(&s->s_data, d, d_next);
lib/libelf/elf_data.c
168
return (&d->d_data);
lib/libelf/elf_data.c
175
struct _Libelf_Data *d;
lib/libelf/elf_data.c
192
if ((d = _libelf_allocate_data(s)) == NULL)
lib/libelf/elf_data.c
195
STAILQ_INSERT_TAIL(&s->s_data, d, d_next);
lib/libelf/elf_data.c
197
d->d_data.d_align = 1;
lib/libelf/elf_data.c
198
d->d_data.d_buf = NULL;
lib/libelf/elf_data.c
199
d->d_data.d_off = (uint64_t) ~0;
lib/libelf/elf_data.c
200
d->d_data.d_size = 0;
lib/libelf/elf_data.c
201
d->d_data.d_type = ELF_T_BYTE;
lib/libelf/elf_data.c
202
d->d_data.d_version = LIBELF_PRIVATE(version);
lib/libelf/elf_data.c
206
return (&d->d_data);
lib/libelf/elf_data.c
220
struct _Libelf_Data *d;
lib/libelf/elf_data.c
230
d = (struct _Libelf_Data *) ed;
lib/libelf/elf_data.c
232
if (d == NULL && (d = STAILQ_FIRST(&s->s_rawdata)) != NULL)
lib/libelf/elf_data.c
233
return (&d->d_data);
lib/libelf/elf_data.c
235
if (d != NULL)
lib/libelf/elf_data.c
236
return (&STAILQ_NEXT(d, d_next)->d_data);
lib/libelf/elf_data.c
266
if ((d = _libelf_allocate_data(s)) == NULL)
lib/libelf/elf_data.c
269
d->d_data.d_buf = (sh_type == SHT_NOBITS || sh_size == 0) ? NULL :
lib/libelf/elf_data.c
271
d->d_data.d_off = 0;
lib/libelf/elf_data.c
272
d->d_data.d_align = sh_align;
lib/libelf/elf_data.c
273
d->d_data.d_size = sh_size;
lib/libelf/elf_data.c
274
d->d_data.d_type = ELF_T_BYTE;
lib/libelf/elf_data.c
275
d->d_data.d_version = e->e_version;
lib/libelf/elf_data.c
277
STAILQ_INSERT_TAIL(&s->s_rawdata, d, d_next);
lib/libelf/elf_data.c
279
return (&d->d_data);
lib/libelf/elf_data.c
44
struct _Libelf_Data *d;
lib/libelf/elf_data.c
48
d = (struct _Libelf_Data *) ed;
lib/libelf/elf_data.c
51
(d != NULL && s != d->d_scn)) {
lib/libelf/elf_data.c
58
if (d == NULL && (d = STAILQ_FIRST(&s->s_data)) != NULL)
lib/libelf/elf_data.c
59
return (&d->d_data);
lib/libelf/elf_data.c
61
if (d != NULL)
lib/libelf/elf_data.c
62
return (STAILQ_NEXT(d, d_next) ?
lib/libelf/elf_data.c
63
&STAILQ_NEXT(d, d_next)->d_data : NULL);
lib/libelf/elf_flag.c
56
elf_flagdata(Elf_Data *d, Elf_Cmd c, unsigned int flags)
lib/libelf/elf_flag.c
61
if (d == NULL)
lib/libelf/elf_flag.c
70
ld = (struct _Libelf_Data *) d;
lib/libelf/elf_strptr.c
102
if ((alignment = d->d_align) > 1) {
lib/libelf/elf_strptr.c
116
if (offset < count + d->d_size) {
lib/libelf/elf_strptr.c
117
if (d->d_buf != NULL)
lib/libelf/elf_strptr.c
118
return ((char *) d->d_buf +
lib/libelf/elf_strptr.c
124
count += d->d_size;
lib/libelf/elf_strptr.c
42
Elf_Data *d;
lib/libelf/elf_strptr.c
61
d = NULL;
lib/libelf/elf_strptr.c
70
while ((d = elf_getdata(s, d)) != NULL) {
lib/libelf/elf_strptr.c
72
if (d->d_buf == 0 || d->d_size == 0)
lib/libelf/elf_strptr.c
75
if (d->d_type != ELF_T_BYTE) {
lib/libelf/elf_strptr.c
80
if (offset >= d->d_off &&
lib/libelf/elf_strptr.c
81
offset < d->d_off + d->d_size)
lib/libelf/elf_strptr.c
82
return ((char *) d->d_buf + offset - d->d_off);
lib/libelf/elf_strptr.c
92
while ((d = elf_getdata(s, d)) != NULL && count <= offset) {
lib/libelf/elf_strptr.c
94
if (d->d_buf == NULL || d->d_size == 0)
lib/libelf/elf_strptr.c
97
if (d->d_type != ELF_T_BYTE) {
lib/libelf/elf_update.c
112
Elf_Data *d;
lib/libelf/elf_update.c
195
d = &ld->d_data;
lib/libelf/elf_update.c
200
if (d->d_type >= ELF_T_NUM) {
lib/libelf/elf_update.c
208
if (d->d_version != e->e_version) {
lib/libelf/elf_update.c
217
if ((d_align = d->d_align) == 0 ||
lib/libelf/elf_update.c
227
if ((msz = _libelf_msize(d->d_type, ec, e->e_version)) == 0)
lib/libelf/elf_update.c
234
if (d->d_size % msz) {
lib/libelf/elf_update.c
245
(d->d_off & (d_align - 1))) {
lib/libelf/elf_update.c
254
if ((uint64_t) d->d_off + d->d_size > scn_size)
lib/libelf/elf_update.c
255
scn_size = d->d_off + d->d_size;
lib/libelf/elf_update.c
257
scn_size = roundup2(scn_size, d->d_align);
lib/libelf/elf_update.c
258
d->d_off = scn_size;
lib/libelf/elf_update.c
259
fsz = _libelf_fsize(d->d_type, ec, d->d_version,
lib/libelf/elf_update.c
260
(size_t) d->d_size / msz);
lib/libelf/elf_update.c
724
Elf_Data *d, dst;
lib/libelf/elf_update.c
768
if ((d = elf_rawdata(s, NULL)) == NULL)
lib/libelf/elf_update.c
773
d = &ld->d_data;
lib/libelf/elf_update.c
775
if ((uint64_t) rc < sh_off + d->d_off)
lib/libelf/elf_update.c
778
(size_t) (sh_off + d->d_off -
lib/libelf/elf_update.c
780
rc = (off_t) (sh_off + d->d_off);
lib/libelf/elf_update.c
782
assert(d->d_buf != NULL);
lib/libelf/elf_update.c
783
assert(d->d_type == ELF_T_BYTE);
lib/libelf/elf_update.c
784
assert(d->d_version == e->e_version);
lib/libelf/elf_update.c
787
e->e_rawfile + s->s_rawoff + d->d_off,
lib/libelf/elf_update.c
788
(size_t) d->d_size);
lib/libelf/elf_update.c
790
rc += (off_t) d->d_size;
lib/libelf/elf_update.c
806
d = &ld->d_data;
lib/libelf/elf_update.c
808
if ((msz = _libelf_msize(d->d_type, ec, e->e_version)) == 0)
lib/libelf/elf_update.c
811
if ((uint64_t) rc < sh_off + d->d_off)
lib/libelf/elf_update.c
814
(size_t) (sh_off + d->d_off - (uint64_t) rc));
lib/libelf/elf_update.c
816
rc = (off_t) (sh_off + d->d_off);
lib/libelf/elf_update.c
818
assert(d->d_buf != NULL);
lib/libelf/elf_update.c
819
assert(d->d_version == e->e_version);
lib/libelf/elf_update.c
820
assert(d->d_size % msz == 0);
lib/libelf/elf_update.c
823
nobjects = (size_t) (d->d_size / msz);
lib/libelf/elf_update.c
825
fsz = _libelf_fsize(d->d_type, ec, e->e_version, nobjects);
lib/libelf/elf_update.c
830
if (_libelf_xlate(&dst, d, e->e_byteorder, ec, em, ELF_TOFILE)
lib/libelf/gelf_cap.c
105
struct _Libelf_Data *d;
lib/libelf/gelf_cap.c
107
d = (struct _Libelf_Data *) ed;
lib/libelf/gelf_cap.c
109
if (d == NULL || ndx < 0 || gc == NULL ||
lib/libelf/gelf_cap.c
110
(scn = d->d_scn) == NULL ||
lib/libelf/gelf_cap.c
132
if (msz * (size_t) ndx >= d->d_data.d_size) {
lib/libelf/gelf_cap.c
138
cap32 = (Elf32_Cap *) d->d_data.d_buf + ndx;
lib/libelf/gelf_cap.c
143
cap64 = (Elf64_Cap *) d->d_data.d_buf + ndx;
lib/libelf/gelf_cap.c
46
struct _Libelf_Data *d;
lib/libelf/gelf_cap.c
48
d = (struct _Libelf_Data *) ed;
lib/libelf/gelf_cap.c
50
if (d == NULL || ndx < 0 || dst == NULL ||
lib/libelf/gelf_cap.c
51
(scn = d->d_scn) == NULL ||
lib/libelf/gelf_cap.c
73
if (msz * (size_t) ndx >= d->d_data.d_size) {
lib/libelf/gelf_cap.c
80
cap32 = (Elf32_Cap *) d->d_data.d_buf + ndx;
lib/libelf/gelf_cap.c
87
cap64 = (Elf64_Cap *) d->d_data.d_buf + ndx;
lib/libelf/gelf_dyn.c
106
struct _Libelf_Data *d;
lib/libelf/gelf_dyn.c
108
d = (struct _Libelf_Data *) ed;
lib/libelf/gelf_dyn.c
110
if (d == NULL || ndx < 0 || ds == NULL ||
lib/libelf/gelf_dyn.c
111
(scn = d->d_scn) == NULL ||
lib/libelf/gelf_dyn.c
135
if (msz * (size_t) ndx >= d->d_data.d_size) {
lib/libelf/gelf_dyn.c
141
dyn32 = (Elf32_Dyn *) d->d_data.d_buf + ndx;
lib/libelf/gelf_dyn.c
146
dyn64 = (Elf64_Dyn *) d->d_data.d_buf + ndx;
lib/libelf/gelf_dyn.c
46
struct _Libelf_Data *d;
lib/libelf/gelf_dyn.c
48
d = (struct _Libelf_Data *) ed;
lib/libelf/gelf_dyn.c
50
if (d == NULL || ndx < 0 || dst == NULL ||
lib/libelf/gelf_dyn.c
51
(scn = d->d_scn) == NULL ||
lib/libelf/gelf_dyn.c
75
if (msz * (size_t) ndx >= d->d_data.d_size) {
lib/libelf/gelf_dyn.c
81
dyn32 = (Elf32_Dyn *) d->d_data.d_buf + ndx;
lib/libelf/gelf_dyn.c
88
dyn64 = (Elf64_Dyn *) d->d_data.d_buf + ndx;
lib/libelf/gelf_ehdr.c
51
gelf_getehdr(Elf *e, GElf_Ehdr *d)
lib/libelf/gelf_ehdr.c
57
if (d == NULL || e == NULL ||
lib/libelf/gelf_ehdr.c
67
(void) memcpy(d->e_ident, eh32->e_ident,
lib/libelf/gelf_ehdr.c
69
d->e_type = eh32->e_type;
lib/libelf/gelf_ehdr.c
70
d->e_machine = eh32->e_machine;
lib/libelf/gelf_ehdr.c
71
d->e_version = eh32->e_version;
lib/libelf/gelf_ehdr.c
72
d->e_entry = eh32->e_entry;
lib/libelf/gelf_ehdr.c
73
d->e_phoff = eh32->e_phoff;
lib/libelf/gelf_ehdr.c
74
d->e_shoff = eh32->e_shoff;
lib/libelf/gelf_ehdr.c
75
d->e_flags = eh32->e_flags;
lib/libelf/gelf_ehdr.c
76
d->e_ehsize = eh32->e_ehsize;
lib/libelf/gelf_ehdr.c
77
d->e_phentsize = eh32->e_phentsize;
lib/libelf/gelf_ehdr.c
78
d->e_phnum = eh32->e_phnum;
lib/libelf/gelf_ehdr.c
79
d->e_shentsize = eh32->e_shentsize;
lib/libelf/gelf_ehdr.c
80
d->e_shnum = eh32->e_shnum;
lib/libelf/gelf_ehdr.c
81
d->e_shstrndx = eh32->e_shstrndx;
lib/libelf/gelf_ehdr.c
83
return (d);
lib/libelf/gelf_ehdr.c
90
*d = *eh64;
lib/libelf/gelf_ehdr.c
92
return (d);
lib/libelf/gelf_move.c
109
struct _Libelf_Data *d;
lib/libelf/gelf_move.c
111
d = (struct _Libelf_Data *) ed;
lib/libelf/gelf_move.c
113
if (d == NULL || ndx < 0 || gm == NULL ||
lib/libelf/gelf_move.c
114
(scn = d->d_scn) == NULL ||
lib/libelf/gelf_move.c
138
if (msz * (size_t) ndx >= d->d_data.d_size) {
lib/libelf/gelf_move.c
144
move32 = (Elf32_Move *) d->d_data.d_buf + ndx;
lib/libelf/gelf_move.c
153
move64 = (Elf64_Move *) d->d_data.d_buf + ndx;
lib/libelf/gelf_move.c
46
struct _Libelf_Data *d;
lib/libelf/gelf_move.c
48
d = (struct _Libelf_Data *) ed;
lib/libelf/gelf_move.c
50
if (d == NULL || ndx < 0 || dst == NULL ||
lib/libelf/gelf_move.c
51
(scn = d->d_scn) == NULL ||
lib/libelf/gelf_move.c
75
if (msz * (size_t) ndx >= d->d_data.d_size) {
lib/libelf/gelf_move.c
82
move32 = (Elf32_Move *) d->d_data.d_buf + ndx;
lib/libelf/gelf_move.c
91
move64 = (Elf64_Move *) d->d_data.d_buf + ndx;
lib/libelf/gelf_phdr.c
49
gelf_getphdr(Elf *e, int index, GElf_Phdr *d)
lib/libelf/gelf_phdr.c
58
if (d == NULL || e == NULL ||
lib/libelf/gelf_phdr.c
78
d->p_type = ep32->p_type;
lib/libelf/gelf_phdr.c
79
d->p_offset = ep32->p_offset;
lib/libelf/gelf_phdr.c
80
d->p_vaddr = (Elf64_Addr) ep32->p_vaddr;
lib/libelf/gelf_phdr.c
81
d->p_paddr = (Elf64_Addr) ep32->p_paddr;
lib/libelf/gelf_phdr.c
82
d->p_filesz = (Elf64_Xword) ep32->p_filesz;
lib/libelf/gelf_phdr.c
83
d->p_memsz = (Elf64_Xword) ep32->p_memsz;
lib/libelf/gelf_phdr.c
84
d->p_flags = ep32->p_flags;
lib/libelf/gelf_phdr.c
85
d->p_align = (Elf64_Xword) ep32->p_align;
lib/libelf/gelf_phdr.c
94
*d = *ep64;
lib/libelf/gelf_phdr.c
97
return (d);
lib/libelf/gelf_rel.c
108
struct _Libelf_Data *d;
lib/libelf/gelf_rel.c
110
d = (struct _Libelf_Data *) ed;
lib/libelf/gelf_rel.c
112
if (d == NULL || ndx < 0 || dr == NULL ||
lib/libelf/gelf_rel.c
113
(scn = d->d_scn) == NULL ||
lib/libelf/gelf_rel.c
137
if (msz * (size_t) ndx >= d->d_data.d_size) {
lib/libelf/gelf_rel.c
143
rel32 = (Elf32_Rel *) d->d_data.d_buf + ndx;
lib/libelf/gelf_rel.c
156
rel64 = (Elf64_Rel *) d->d_data.d_buf + ndx;
lib/libelf/gelf_rel.c
46
struct _Libelf_Data *d;
lib/libelf/gelf_rel.c
48
d = (struct _Libelf_Data *) ed;
lib/libelf/gelf_rel.c
50
if (d == NULL || ndx < 0 || dst == NULL ||
lib/libelf/gelf_rel.c
51
(scn = d->d_scn) == NULL ||
lib/libelf/gelf_rel.c
75
if (msz * (size_t) ndx >= d->d_data.d_size) {
lib/libelf/gelf_rel.c
81
rel32 = (Elf32_Rel *) d->d_data.d_buf + ndx;
lib/libelf/gelf_rel.c
90
rel64 = (Elf64_Rel *) d->d_data.d_buf + ndx;
lib/libelf/gelf_rela.c
109
struct _Libelf_Data *d;
lib/libelf/gelf_rela.c
111
d = (struct _Libelf_Data *) ed;
lib/libelf/gelf_rela.c
113
if (d == NULL || ndx < 0 || dr == NULL ||
lib/libelf/gelf_rela.c
114
(scn = d->d_scn) == NULL ||
lib/libelf/gelf_rela.c
138
if (msz * (size_t) ndx >= d->d_data.d_size) {
lib/libelf/gelf_rela.c
144
rela32 = (Elf32_Rela *) d->d_data.d_buf + ndx;
lib/libelf/gelf_rela.c
159
rela64 = (Elf64_Rela *) d->d_data.d_buf + ndx;
lib/libelf/gelf_rela.c
46
struct _Libelf_Data *d;
lib/libelf/gelf_rela.c
48
d = (struct _Libelf_Data *) ed;
lib/libelf/gelf_rela.c
50
if (d == NULL || ndx < 0 || dst == NULL ||
lib/libelf/gelf_rela.c
51
(scn = d->d_scn) == NULL ||
lib/libelf/gelf_rela.c
75
if (msz * (size_t) ndx >= d->d_data.d_size) {
lib/libelf/gelf_rela.c
81
rela32 = (Elf32_Rela *) d->d_data.d_buf + ndx;
lib/libelf/gelf_rela.c
91
rela64 = (Elf64_Rela *) d->d_data.d_buf + ndx;
lib/libelf/gelf_shdr.c
50
gelf_getshdr(Elf_Scn *s, GElf_Shdr *d)
lib/libelf/gelf_shdr.c
57
if (d == NULL) {
lib/libelf/gelf_shdr.c
71
d->sh_name = sh32->sh_name;
lib/libelf/gelf_shdr.c
72
d->sh_type = sh32->sh_type;
lib/libelf/gelf_shdr.c
73
d->sh_flags = (Elf64_Xword) sh32->sh_flags;
lib/libelf/gelf_shdr.c
74
d->sh_addr = (Elf64_Addr) sh32->sh_addr;
lib/libelf/gelf_shdr.c
75
d->sh_offset = (Elf64_Off) sh32->sh_offset;
lib/libelf/gelf_shdr.c
76
d->sh_size = (Elf64_Xword) sh32->sh_size;
lib/libelf/gelf_shdr.c
77
d->sh_link = sh32->sh_link;
lib/libelf/gelf_shdr.c
78
d->sh_info = sh32->sh_info;
lib/libelf/gelf_shdr.c
79
d->sh_addralign = (Elf64_Xword) sh32->sh_addralign;
lib/libelf/gelf_shdr.c
80
d->sh_entsize = (Elf64_Xword) sh32->sh_entsize;
lib/libelf/gelf_shdr.c
83
*d = *sh64;
lib/libelf/gelf_shdr.c
86
return (d);
lib/libelf/gelf_sym.c
108
struct _Libelf_Data *d;
lib/libelf/gelf_sym.c
110
d = (struct _Libelf_Data *) ed;
lib/libelf/gelf_sym.c
112
if (d == NULL || ndx < 0 || gs == NULL ||
lib/libelf/gelf_sym.c
113
(scn = d->d_scn) == NULL ||
lib/libelf/gelf_sym.c
137
if (msz * (size_t) ndx >= d->d_data.d_size) {
lib/libelf/gelf_sym.c
143
sym32 = (Elf32_Sym *) d->d_data.d_buf + ndx;
lib/libelf/gelf_sym.c
153
sym64 = (Elf64_Sym *) d->d_data.d_buf + ndx;
lib/libelf/gelf_sym.c
46
struct _Libelf_Data *d;
lib/libelf/gelf_sym.c
48
d = (struct _Libelf_Data *) ed;
lib/libelf/gelf_sym.c
50
if (d == NULL || ndx < 0 || dst == NULL ||
lib/libelf/gelf_sym.c
51
(scn = d->d_scn) == NULL ||
lib/libelf/gelf_sym.c
75
if (msz * (size_t) ndx >= d->d_data.d_size) {
lib/libelf/gelf_sym.c
81
sym32 = (Elf32_Sym *) d->d_data.d_buf + ndx;
lib/libelf/gelf_sym.c
90
sym64 = (Elf64_Sym *) d->d_data.d_buf + ndx;
lib/libelf/gelf_syminfo.c
103
struct _Libelf_Data *d;
lib/libelf/gelf_syminfo.c
107
d = (struct _Libelf_Data *) ed;
lib/libelf/gelf_syminfo.c
109
if (d == NULL || ndx < 0 || gs == NULL ||
lib/libelf/gelf_syminfo.c
110
(scn = d->d_scn) == NULL ||
lib/libelf/gelf_syminfo.c
134
if (msz * (size_t) ndx >= d->d_data.d_size) {
lib/libelf/gelf_syminfo.c
140
syminfo32 = (Elf32_Syminfo *) d->d_data.d_buf + ndx;
lib/libelf/gelf_syminfo.c
146
syminfo64 = (Elf64_Syminfo *) d->d_data.d_buf + ndx;
lib/libelf/gelf_syminfo.c
42
struct _Libelf_Data *d;
lib/libelf/gelf_syminfo.c
46
d = (struct _Libelf_Data *) ed;
lib/libelf/gelf_syminfo.c
48
if (d == NULL || ndx < 0 || dst == NULL ||
lib/libelf/gelf_syminfo.c
49
(scn = d->d_scn) == NULL ||
lib/libelf/gelf_syminfo.c
73
if (msz * (size_t) ndx >= d->d_data.d_size) {
lib/libelf/gelf_syminfo.c
80
syminfo32 = (Elf32_Syminfo *) d->d_data.d_buf + ndx;
lib/libelf/gelf_syminfo.c
87
syminfo64 = (Elf64_Syminfo *) d->d_data.d_buf + ndx;
lib/libelf/gelf_symshndx.c
101
if (gelf_update_sym(d, ndx, gs) == 0)
lib/libelf/gelf_symshndx.c
119
d->d_type != ELF_T_WORD) {
lib/libelf/gelf_symshndx.c
35
gelf_getsymshndx(Elf_Data *d, Elf_Data *id, int ndx, GElf_Sym *dst,
lib/libelf/gelf_symshndx.c
45
ld = (struct _Libelf_Data *) d;
lib/libelf/gelf_symshndx.c
48
if (gelf_getsym(d, ndx, dst) == 0)
lib/libelf/gelf_symshndx.c
88
gelf_update_symshndx(Elf_Data *d, Elf_Data *id, int ndx, GElf_Sym *gs,
lib/libelf/gelf_symshndx.c
98
ld = (struct _Libelf_Data *) d;
lib/libelf/libelf_allocate.c
122
struct _Libelf_Data *d;
lib/libelf/libelf_allocate.c
124
if ((d = calloc((size_t) 1, sizeof(*d))) == NULL) {
lib/libelf/libelf_allocate.c
129
d->d_scn = s;
lib/libelf/libelf_allocate.c
131
return (d);
lib/libelf/libelf_allocate.c
135
_libelf_release_data(struct _Libelf_Data *d)
lib/libelf/libelf_allocate.c
138
if (d->d_flags & LIBELF_F_DATA_MALLOCED)
lib/libelf/libelf_allocate.c
139
free(d->d_data.d_buf);
lib/libelf/libelf_allocate.c
141
free(d);
lib/libelf/libelf_allocate.c
171
struct _Libelf_Data *d, *td;
lib/libelf/libelf_allocate.c
175
STAILQ_FOREACH_SAFE(d, &s->s_data, d_next, td) {
lib/libelf/libelf_allocate.c
176
STAILQ_REMOVE(&s->s_data, d, _Libelf_Data, d_next);
lib/libelf/libelf_allocate.c
177
d = _libelf_release_data(d);
lib/libelf/libelf_allocate.c
180
STAILQ_FOREACH_SAFE(d, &s->s_rawdata, d_next, td) {
lib/libelf/libelf_allocate.c
181
assert((d->d_flags & LIBELF_F_DATA_MALLOCED) == 0);
lib/libelf/libelf_allocate.c
182
STAILQ_REMOVE(&s->s_rawdata, d, _Libelf_Data, d_next);
lib/libelf/libelf_allocate.c
183
d = _libelf_release_data(d);
lib/libelf/libelf_checksum.c
50
Elf_Data *d;
lib/libelf/libelf_checksum.c
88
d = NULL;
lib/libelf/libelf_checksum.c
89
while ((d = elf_rawdata(scn, d)) != NULL)
lib/libelf/libelf_checksum.c
91
(unsigned char *) d->d_buf, (size_t) d->d_size);
lib/libevent/evutil.h
57
int evutil_socketpair(int d, int type, int protocol, int sv[2]);
lib/libfido2/src/es256.c
227
const BIGNUM *d;
lib/libfido2/src/es256.c
246
(d = EC_KEY_get0_private_key(ec)) == NULL ||
lib/libfido2/src/es256.c
247
(n = BN_num_bytes(d)) < 0 || (size_t)n > sizeof(key->d) ||
lib/libfido2/src/es256.c
248
(n = BN_bn2bin(d, key->d)) < 0 || (size_t)n > sizeof(key->d)) {
lib/libfido2/src/es256.c
413
BIGNUM *d = NULL;
lib/libfido2/src/es256.c
421
if ((d = BN_CTX_get(bnctx)) == NULL ||
lib/libfido2/src/es256.c
422
BN_bin2bn(k->d, sizeof(k->d), d) == NULL) {
lib/libfido2/src/es256.c
428
EC_KEY_set_private_key(ec, d) == 0) {
lib/libfido2/src/es256.c
462
BIGNUM *d = NULL;
lib/libfido2/src/es256.c
468
if ((d = BN_bin2bn(sk->d, (int)sizeof(sk->d), NULL)) == NULL ||
lib/libfido2/src/es256.c
476
if (EC_POINT_mul(g, q, d, NULL, NULL, NULL) == 0 ||
lib/libfido2/src/es256.c
485
if (d != NULL)
lib/libfido2/src/es256.c
486
BN_clear_free(d);
lib/libfido2/src/fido/types.h
73
unsigned char d[32];
lib/libfido2/src/io.c
101
const size_t len = d->tx_len + 1;
lib/libfido2/src/io.c
104
if (d->tx_len - CTAP_CONT_HEADER_LEN > sizeof(fp->body.cont.data))
lib/libfido2/src/io.c
109
fp->cid = d->cid;
lib/libfido2/src/io.c
111
count = MIN(count, d->tx_len - CTAP_CONT_HEADER_LEN);
lib/libfido2/src/io.c
114
if (len > sizeof(pkt) || (n = tx_pkt(d, pkt, len, ms)) < 0 ||
lib/libfido2/src/io.c
122
tx(fido_dev_t *d, uint8_t cmd, const unsigned char *buf, size_t count, int *ms)
lib/libfido2/src/io.c
126
if ((sent = tx_preamble(d, cmd, buf, count, ms)) == 0) {
lib/libfido2/src/io.c
136
if ((n = tx_frame(d, seq++, buf + sent, count - sent,
lib/libfido2/src/io.c
147
transport_tx(fido_dev_t *d, uint8_t cmd, const void *buf, size_t count, int *ms)
lib/libfido2/src/io.c
155
n = d->transport.tx(d, cmd, buf, count);
lib/libfido2/src/io.c
164
fido_tx(fido_dev_t *d, uint8_t cmd, const void *buf, size_t count, int *ms)
lib/libfido2/src/io.c
166
fido_log_debug("%s: dev=%p, cmd=0x%02x", __func__, (void *)d, cmd);
lib/libfido2/src/io.c
169
if (d->transport.tx != NULL)
lib/libfido2/src/io.c
170
return (transport_tx(d, cmd, buf, count, ms));
lib/libfido2/src/io.c
171
if (d->io_handle == NULL || d->io.write == NULL || count > UINT16_MAX) {
lib/libfido2/src/io.c
176
return (count == 0 ? tx_empty(d, cmd, ms) : tx(d, cmd, buf, count, ms));
lib/libfido2/src/io.c
180
rx_frame(fido_dev_t *d, struct frame *fp, int *ms)
lib/libfido2/src/io.c
190
if (d->rx_len > sizeof(*fp) || (n = d->io.read(d->io_handle,
lib/libfido2/src/io.c
191
(unsigned char *)fp, d->rx_len, *ms)) < 0 || (size_t)n != d->rx_len)
lib/libfido2/src/io.c
198
rx_preamble(fido_dev_t *d, uint8_t cmd, struct frame *fp, int *ms)
lib/libfido2/src/io.c
201
if (rx_frame(d, fp, ms) < 0)
lib/libfido2/src/io.c
204
fp->cid = d->cid;
lib/libfido2/src/io.c
206
} while (fp->cid != d->cid || (fp->cid == d->cid &&
lib/libfido2/src/io.c
209
if (d->rx_len > sizeof(*fp))
lib/libfido2/src/io.c
212
fido_log_xxd(fp, d->rx_len, "%s", __func__);
lib/libfido2/src/io.c
217
if (fp->cid != d->cid || fp->body.init.cmd != (CTAP_FRAME_INIT | cmd)) {
lib/libfido2/src/io.c
219
__func__, fp->cid, d->cid, fp->body.init.cmd, cmd);
lib/libfido2/src/io.c
227
rx(fido_dev_t *d, uint8_t cmd, unsigned char *buf, size_t count, int *ms)
lib/libfido2/src/io.c
232
if (d->rx_len <= CTAP_INIT_HEADER_LEN ||
lib/libfido2/src/io.c
233
d->rx_len <= CTAP_CONT_HEADER_LEN)
lib/libfido2/src/io.c
236
init_data_len = d->rx_len - CTAP_INIT_HEADER_LEN;
lib/libfido2/src/io.c
237
cont_data_len = d->rx_len - CTAP_CONT_HEADER_LEN;
lib/libfido2/src/io.c
243
if (rx_preamble(d, cmd, &f, ms) < 0) {
lib/libfido2/src/io.c
265
if (rx_frame(d, &f, ms) < 0) {
lib/libfido2/src/io.c
270
fido_log_xxd(&f, d->rx_len, "%s", __func__);
lib/libfido2/src/io.c
272
f.cid = d->cid;
lib/libfido2/src/io.c
276
if (f.cid != d->cid || f.body.cont.seq != seq) {
lib/libfido2/src/io.c
278
__func__, f.cid, d->cid, f.body.cont.seq, seq);
lib/libfido2/src/io.c
295
transport_rx(fido_dev_t *d, uint8_t cmd, void *buf, size_t count, int *ms)
lib/libfido2/src/io.c
303
n = d->transport.rx(d, cmd, buf, count, *ms);
lib/libfido2/src/io.c
312
fido_rx(fido_dev_t *d, uint8_t cmd, void *buf, size_t count, int *ms)
lib/libfido2/src/io.c
316
fido_log_debug("%s: dev=%p, cmd=0x%02x, ms=%d", __func__, (void *)d,
lib/libfido2/src/io.c
319
if (d->transport.rx != NULL)
lib/libfido2/src/io.c
320
return (transport_rx(d, cmd, buf, count, ms));
lib/libfido2/src/io.c
321
if (d->io_handle == NULL || d->io.read == NULL || count > UINT16_MAX) {
lib/libfido2/src/io.c
325
if ((n = rx(d, cmd, buf, count, ms)) >= 0)
lib/libfido2/src/io.c
33
tx_pkt(fido_dev_t *d, const void *pkt, size_t len, int *ms)
lib/libfido2/src/io.c
332
fido_rx_cbor_status(fido_dev_t *d, int *ms)
lib/libfido2/src/io.c
337
if ((reply_len = fido_rx(d, CTAP_CMD_CBOR, &reply, sizeof(reply),
lib/libfido2/src/io.c
41
n = d->io.write(d->io_handle, pkt, len);
lib/libfido2/src/io.c
50
tx_empty(fido_dev_t *d, uint8_t cmd, int *ms)
lib/libfido2/src/io.c
54
const size_t len = d->tx_len + 1;
lib/libfido2/src/io.c
59
fp->cid = d->cid;
lib/libfido2/src/io.c
62
if (len > sizeof(pkt) || (n = tx_pkt(d, pkt, len, ms)) < 0 ||
lib/libfido2/src/io.c
70
tx_preamble(fido_dev_t *d, uint8_t cmd, const void *buf, size_t count, int *ms)
lib/libfido2/src/io.c
74
const size_t len = d->tx_len + 1;
lib/libfido2/src/io.c
77
if (d->tx_len - CTAP_INIT_HEADER_LEN > sizeof(fp->body.init.data))
lib/libfido2/src/io.c
82
fp->cid = d->cid;
lib/libfido2/src/io.c
86
count = MIN(count, d->tx_len - CTAP_INIT_HEADER_LEN);
lib/libfido2/src/io.c
89
if (len > sizeof(pkt) || (n = tx_pkt(d, pkt, len, ms)) < 0 ||
lib/libfido2/src/io.c
97
tx_frame(fido_dev_t *d, uint8_t seq, const void *buf, size_t count, int *ms)
lib/libfido2/src/nfc.c
133
if (nfc_do_tx(d, ptr, len) < 0) {
lib/libfido2/src/nfc.c
146
rx_init(fido_dev_t *d, unsigned char *buf, size_t count, int ms)
lib/libfido2/src/nfc.c
159
if ((n = d->io.read(d->io_handle, f, sizeof(f), ms)) < 2 ||
lib/libfido2/src/nfc.c
180
memcpy(&attr->nonce, &d->nonce, sizeof(attr->nonce)); /* XXX */
lib/libfido2/src/nfc.c
186
tx_get_response(fido_dev_t *d, uint8_t count)
lib/libfido2/src/nfc.c
194
if (d->io.write(d->io_handle, apdu, sizeof(apdu)) < 0) {
lib/libfido2/src/nfc.c
203
rx_apdu(fido_dev_t *d, uint8_t sw[2], unsigned char **buf, size_t *count, int *ms)
lib/libfido2/src/nfc.c
21
tx_short_apdu(fido_dev_t *d, const iso7816_header_t *h, const uint8_t *payload,
lib/libfido2/src/nfc.c
212
if ((n = d->io.read(d->io_handle, f, sizeof(f), *ms)) < 2) {
lib/libfido2/src/nfc.c
235
rx_msg(fido_dev_t *d, unsigned char *buf, size_t count, int ms)
lib/libfido2/src/nfc.c
240
if (rx_apdu(d, sw, &buf, &count, &ms) < 0) {
lib/libfido2/src/nfc.c
246
if (tx_get_response(d, sw[1]) < 0 ||
lib/libfido2/src/nfc.c
247
rx_apdu(d, sw, &buf, &count, &ms) < 0) {
lib/libfido2/src/nfc.c
266
rx_cbor(fido_dev_t *d, unsigned char *buf, size_t count, int ms)
lib/libfido2/src/nfc.c
270
if ((r = rx_msg(d, buf, count, ms)) < 2)
lib/libfido2/src/nfc.c
277
fido_nfc_rx(fido_dev_t *d, uint8_t cmd, unsigned char *buf, size_t count, int ms)
lib/libfido2/src/nfc.c
281
return rx_init(d, buf, count, ms);
lib/libfido2/src/nfc.c
283
return rx_cbor(d, buf, count, ms);
lib/libfido2/src/nfc.c
285
return rx_msg(d, buf, count, ms);
lib/libfido2/src/nfc.c
300
fido_dev_set_nfc(fido_dev_t *d)
lib/libfido2/src/nfc.c
302
if (d->io_handle != NULL) {
lib/libfido2/src/nfc.c
306
d->io_own = true;
lib/libfido2/src/nfc.c
307
d->io = (fido_dev_io_t) {
lib/libfido2/src/nfc.c
313
d->transport = (fido_dev_transport_t) {
lib/libfido2/src/nfc.c
38
if (d->io.write(d->io_handle, apdu, apdu_len) < 0) {
lib/libfido2/src/nfc.c
44
if (d->io.read(d->io_handle, sw, sizeof(sw), -1) != 2) {
lib/libfido2/src/nfc.c
62
nfc_do_tx(fido_dev_t *d, const uint8_t *apdu_ptr, size_t apdu_len)
lib/libfido2/src/nfc.c
78
if (tx_short_apdu(d, &h, apdu_ptr, TX_CHUNK_SIZE, 0x10) < 0) {
lib/libfido2/src/nfc.c
86
if (tx_short_apdu(d, &h, apdu_ptr, (uint8_t)apdu_len, 0) < 0) {
lib/libfido2/src/nfc.c
95
fido_nfc_tx(fido_dev_t *d, uint8_t cmd, const unsigned char *buf, size_t count)
lib/libfido2/src/rs256.c
177
const BIGNUM *d = NULL;
lib/libfido2/src/rs256.c
185
RSA_get0_key(rsa, &n, &e, &d);
lib/libfuse/dict.c
38
dict_check(struct dict *d, const char *k)
lib/libfuse/dict.c
43
errx(1, "dict_check(%p, %s): key too large", d, k);
lib/libfuse/dict.c
45
return (SPLAY_FIND(dict, d, &key) != NULL);
lib/libfuse/dict.c
49
dict_set(struct dict *d, const char *k, void *data)
lib/libfuse/dict.c
54
errx(1, "dict_set(%p, %s): key too large", d, k);
lib/libfuse/dict.c
55
if ((entry = SPLAY_FIND(dict, d, &key)) == NULL) {
lib/libfuse/dict.c
61
SPLAY_INSERT(dict, d, entry);
lib/libfuse/dict.c
70
dict_get(struct dict *d, const char *k)
lib/libfuse/dict.c
75
errx(1, "dict_get(%p, %s): key too large", d, k);
lib/libfuse/dict.c
76
if ((entry = SPLAY_FIND(dict, d, &key)) == NULL)
lib/libfuse/dict.c
83
dict_pop(struct dict *d, const char *k)
lib/libfuse/dict.c
89
errx(1, "dict_pop(%p, %s): key too large", d, k);
lib/libfuse/dict.c
90
if ((entry = SPLAY_FIND(dict, d, &key)) == NULL)
lib/libfuse/dict.c
94
SPLAY_REMOVE(dict, d, entry);
lib/libm/arch/hppa/fenv.c
103
d = 0.0;
lib/libm/arch/hppa/fenv.c
104
d = 0.0 / d;
lib/libm/arch/hppa/fenv.c
107
d = 0.0;
lib/libm/arch/hppa/fenv.c
108
d = 1.0 / d;
lib/libm/arch/hppa/fenv.c
111
d = 0x1.ffp1023;
lib/libm/arch/hppa/fenv.c
112
d *= 2.0;
lib/libm/arch/hppa/fenv.c
115
d = 0x1p-1022;
lib/libm/arch/hppa/fenv.c
116
d /= 0x1p1023;
lib/libm/arch/hppa/fenv.c
119
d = 0x1p-1022;
lib/libm/arch/hppa/fenv.c
120
d += 1.0;
lib/libm/arch/hppa/fenv.c
122
__asm__ volatile ("fldd 0(%%sr0,%%sp), %0" : "=f" (d));
lib/libm/arch/hppa/fenv.c
91
volatile double d;
lib/libm/arch/m88k/fenv.c
100
d = 0.0 / d;
lib/libm/arch/m88k/fenv.c
103
d = 0.0;
lib/libm/arch/m88k/fenv.c
104
d = 1.0 / d;
lib/libm/arch/m88k/fenv.c
107
d = 0x1.ffp1023;
lib/libm/arch/m88k/fenv.c
108
d *= 2.0;
lib/libm/arch/m88k/fenv.c
111
d = 0x1p1023;
lib/libm/arch/m88k/fenv.c
112
d = 0x1p-1022 / d;
lib/libm/arch/m88k/fenv.c
115
d = 0x1p-1022;
lib/libm/arch/m88k/fenv.c
116
d += 1.0;
lib/libm/arch/m88k/fenv.c
87
volatile double d;
lib/libm/arch/m88k/fenv.c
99
d = 0.0;
lib/libm/arch/sh/e_sqrt.c
14
sqrt(double d)
lib/libm/arch/sh/e_sqrt.c
27
__asm__ volatile ("fsqrt %0" : "+f" (d));
lib/libm/arch/sh/e_sqrt.c
32
return (d);
lib/libm/arch/sh/fenv.c
100
d = 0.0;
lib/libm/arch/sh/fenv.c
101
d = 0.0 / d;
lib/libm/arch/sh/fenv.c
104
d = 0.0;
lib/libm/arch/sh/fenv.c
105
d = 1.0 / d;
lib/libm/arch/sh/fenv.c
108
d = 0x1.ffp1023;
lib/libm/arch/sh/fenv.c
109
d *= 2.0;
lib/libm/arch/sh/fenv.c
112
d = 0x1p-1022;
lib/libm/arch/sh/fenv.c
113
d /= 0x1p1023;
lib/libm/arch/sh/fenv.c
116
d = 0x1p-1022;
lib/libm/arch/sh/fenv.c
117
d += 1.0;
lib/libm/arch/sh/fenv.c
88
volatile double d;
lib/libm/arch/sparc64/fenv.c
120
volatile double d;
lib/libm/arch/sparc64/fenv.c
131
d = 0.0;
lib/libm/arch/sparc64/fenv.c
132
d = 0.0 / d;
lib/libm/arch/sparc64/fenv.c
135
d = 0.0;
lib/libm/arch/sparc64/fenv.c
136
d = 1.0 / d;
lib/libm/arch/sparc64/fenv.c
139
d = 0x1.ffp1023;
lib/libm/arch/sparc64/fenv.c
140
d *= 2.0;
lib/libm/arch/sparc64/fenv.c
143
d = 0x1p-1022;
lib/libm/arch/sparc64/fenv.c
144
d /= 0x1p1023;
lib/libm/arch/sparc64/fenv.c
147
d = 0x1p-1022;
lib/libm/arch/sparc64/fenv.c
148
d += 1.0;
lib/libm/src/b_tgamma.c
234
double t, d;
lib/libm/src/b_tgamma.c
239
d = (t+x)*(x-t);
lib/libm/src/b_tgamma.c
243
xx.b = x - xx.a; xx.b += t; xx.b += d;
lib/libm/src/b_tgamma.c
245
d = (one-x0); d -= t; d += x;
lib/libm/src/b_tgamma.c
252
d = (-x0 -t); d += x;
lib/libm/src/b_tgamma.c
254
r = ratfun_gam(t, d);
lib/libm/src/b_tgamma.c
255
d = r.a/x;
lib/libm/src/b_tgamma.c
256
TRUNC(d);
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
258
return (d + r.a/x);
lib/libm/src/math_private.h
105
#define SET_LDOUBLE_MSW64(d,v) \
lib/libm/src/math_private.h
108
sh_u.value = (d); \
lib/libm/src/math_private.h
110
(d) = sh_u.value; \
lib/libm/src/math_private.h
115
#define GET_LDOUBLE_LSW64(v,d) \
lib/libm/src/math_private.h
118
sh_u.value = (d); \
lib/libm/src/math_private.h
163
#define GET_LDOUBLE_WORDS(se,ix0,ix1,d) \
lib/libm/src/math_private.h
166
ew_u.value = (d); \
lib/libm/src/math_private.h
174
#define SET_LDOUBLE_WORDS(d,se,ix0,ix1) \
lib/libm/src/math_private.h
180
(d) = iw_u.value; \
lib/libm/src/math_private.h
185
#define GET_LDOUBLE_MSW(v,d) \
lib/libm/src/math_private.h
188
sh_u.value = (d); \
lib/libm/src/math_private.h
194
#define SET_LDOUBLE_MSW(d,v) \
lib/libm/src/math_private.h
197
sh_u.value = (d); \
lib/libm/src/math_private.h
199
(d) = sh_u.value; \
lib/libm/src/math_private.h
204
#define GET_LDOUBLE_EXP(se,d) \
lib/libm/src/math_private.h
207
ge_u.value = (d); \
lib/libm/src/math_private.h
213
#define SET_LDOUBLE_EXP(d,se) \
lib/libm/src/math_private.h
216
se_u.value = (d); \
lib/libm/src/math_private.h
218
(d) = se_u.value; \
lib/libm/src/math_private.h
259
#define EXTRACT_WORDS(ix0,ix1,d) \
lib/libm/src/math_private.h
262
ew_u.value = (d); \
lib/libm/src/math_private.h
269
#define GET_HIGH_WORD(i,d) \
lib/libm/src/math_private.h
272
gh_u.value = (d); \
lib/libm/src/math_private.h
278
#define GET_LOW_WORD(i,d) \
lib/libm/src/math_private.h
281
gl_u.value = (d); \
lib/libm/src/math_private.h
287
#define INSERT_WORDS(d,ix0,ix1) \
lib/libm/src/math_private.h
292
(d) = iw_u.value; \
lib/libm/src/math_private.h
297
#define SET_HIGH_WORD(d,v) \
lib/libm/src/math_private.h
300
sh_u.value = (d); \
lib/libm/src/math_private.h
302
(d) = sh_u.value; \
lib/libm/src/math_private.h
307
#define SET_LOW_WORD(d,v) \
lib/libm/src/math_private.h
310
sl_u.value = (d); \
lib/libm/src/math_private.h
312
(d) = sl_u.value; \
lib/libm/src/math_private.h
326
#define GET_FLOAT_WORD(i,d) \
lib/libm/src/math_private.h
329
gf_u.value = (d); \
lib/libm/src/math_private.h
335
#define SET_FLOAT_WORD(d,i) \
lib/libm/src/math_private.h
339
(d) = sf_u.value; \
lib/libm/src/math_private.h
395
#define TRUNC(d) (_b_trunc(&(d)))
lib/libm/src/math_private.h
76
#define GET_LDOUBLE_WORDS64(ix0,ix1,d) \
lib/libm/src/math_private.h
79
qw_u.value = (d); \
lib/libm/src/math_private.h
86
#define SET_LDOUBLE_WORDS64(d,ix0,ix1) \
lib/libm/src/math_private.h
91
(d) = qw_u.value; \
lib/libm/src/math_private.h
96
#define GET_LDOUBLE_MSW64(v,d) \
lib/libm/src/math_private.h
99
sh_u.value = (d); \
lib/libm/src/s_ctan.c
107
d = 0.0;
lib/libm/src/s_ctan.c
117
d += t;
lib/libm/src/s_ctan.c
127
d += t;
lib/libm/src/s_ctan.c
129
while (fabs(t/d) > MACHEP)
lib/libm/src/s_ctan.c
131
return (d);
lib/libm/src/s_ctan.c
138
double d;
lib/libm/src/s_ctan.c
140
d = cos (2.0 * creal (z)) + cosh (2.0 * cimag (z));
lib/libm/src/s_ctan.c
142
if (fabs(d) < 0.25)
lib/libm/src/s_ctan.c
143
d = _ctans (z);
lib/libm/src/s_ctan.c
145
if (d == 0.0) {
lib/libm/src/s_ctan.c
151
w = sin (2.0 * creal(z)) / d + (sinh (2.0 * cimag(z)) / d) * I;
lib/libm/src/s_ctan.c
94
double d;
lib/libm/src/s_ctanf.c
103
d = 0.0f;
lib/libm/src/s_ctanf.c
113
d += t;
lib/libm/src/s_ctanf.c
123
d += t;
lib/libm/src/s_ctanf.c
125
while (fabsf(t/d) > MACHEPF)
lib/libm/src/s_ctanf.c
127
return(d);
lib/libm/src/s_ctanf.c
134
float d;
lib/libm/src/s_ctanf.c
136
d = cosf( 2.0f * crealf(z) ) + coshf( 2.0f * cimagf(z) );
lib/libm/src/s_ctanf.c
138
if(fabsf(d) < 0.25f)
lib/libm/src/s_ctanf.c
139
d = _ctansf(z);
lib/libm/src/s_ctanf.c
141
if (d == 0.0f) {
lib/libm/src/s_ctanf.c
146
w = sinf (2.0f * crealf(z)) / d + (sinhf (2.0f * cimagf(z)) / d) * I;
lib/libm/src/s_ctanf.c
90
float f, x, x2, y, y2, rn, t, d;
lib/libm/src/s_ctanh.c
53
double x, y, d;
lib/libm/src/s_ctanh.c
57
d = cosh (2.0 * x) + cos (2.0 * y);
lib/libm/src/s_ctanh.c
58
w = sinh (2.0 * x) / d + (sin (2.0 * y) / d) * I;
lib/libm/src/s_ctanhf.c
52
float x, y, d;
lib/libm/src/s_ctanhf.c
56
d = coshf (2.0f * x) + cosf (2.0f * y);
lib/libm/src/s_ctanhf.c
57
w = sinhf (2.0f * x) / d + (sinf (2.0f * y) / d) * I;
lib/libm/src/s_ctanhl.c
53
long double x, y, d;
lib/libm/src/s_ctanhl.c
57
d = coshl(2.0L * x) + cosl(2.0L * y);
lib/libm/src/s_ctanhl.c
58
w = sinhl(2.0L * x) / d + (sinl(2.0L * y) / d) * I;
lib/libm/src/s_ctanl.c
109
d = 0.0L;
lib/libm/src/s_ctanl.c
119
d += t;
lib/libm/src/s_ctanl.c
129
d += t;
lib/libm/src/s_ctanl.c
131
while (fabsl(t/d) > MACHEPL);
lib/libm/src/s_ctanl.c
132
return(d);
lib/libm/src/s_ctanl.c
139
long double d, x, y;
lib/libm/src/s_ctanl.c
143
d = cosl(2.0L * x) + coshl(2.0L * y);
lib/libm/src/s_ctanl.c
145
if (fabsl(d) < 0.25L) {
lib/libm/src/s_ctanl.c
146
d = fabsl(d);
lib/libm/src/s_ctanl.c
147
d = ctansl(z);
lib/libm/src/s_ctanl.c
149
if (d == 0.0L) {
lib/libm/src/s_ctanl.c
155
w = sinl(2.0L * x) / d + (sinhl(2.0L * y) / d) * I;
lib/libm/src/s_ctanl.c
96
long double d;
lib/libm/src/s_lrint.c
50
dtype d;
lib/libm/src/s_lrint.c
53
d = (dtype)roundit(x);
lib/libm/src/s_lrint.c
57
return (d);
lib/libm/src/s_lrintf.c
50
dtype d;
lib/libm/src/s_lrintf.c
53
d = (dtype)roundit(x);
lib/libm/src/s_lrintf.c
57
return (d);
lib/libm/src/s_lrintl.c
50
dtype d;
lib/libm/src/s_lrintl.c
53
d = (dtype)roundit(x);
lib/libm/src/s_lrintl.c
57
return (d);
lib/libm/src/s_nan.c
109
return (u.d);
lib/libm/src/s_nan.c
99
double d;
lib/libossaudio/ossaudio.c
105
if (d->addr == i->addr) {
lib/libossaudio/ossaudio.c
115
if (d->type != SIOCTL_NUM || d->node0.unit >= 2 ||
lib/libossaudio/ossaudio.c
116
strcmp(d->func, "level") != 0)
lib/libossaudio/ossaudio.c
127
if (d->group[0] == 0) {
lib/libossaudio/ossaudio.c
128
if (strcmp(d->node0.name, "output") == 0)
lib/libossaudio/ossaudio.c
130
else if (strcmp(d->node0.name, "input") == 0)
lib/libossaudio/ossaudio.c
134
} else if (strcmp(d->group, "hw") == 0) {
lib/libossaudio/ossaudio.c
135
if (strcmp(d->node0.name, "output") == 0)
lib/libossaudio/ossaudio.c
137
else if (strcmp(d->node0.name, "input") == 0)
lib/libossaudio/ossaudio.c
150
i->addr = d->addr;
lib/libossaudio/ossaudio.c
151
i->chan = d->node0.unit;
lib/libossaudio/ossaudio.c
152
i->max = d->maxval;
lib/libossaudio/ossaudio.c
93
mixer_ondesc(void *unused, struct sioctl_desc *d, int val)
lib/libossaudio/ossaudio.c
98
if (d == NULL)
lib/libpcap/etherent.c
100
d = xdtoi(c);
lib/libpcap/etherent.c
103
d <<= 4;
lib/libpcap/etherent.c
104
d |= xdtoi(c);
lib/libpcap/etherent.c
107
e.addr[i] = d;
lib/libpcap/etherent.c
134
d = sizeof(e.name) - 1;
lib/libpcap/etherent.c
138
} while (!isspace(c) && c != EOF && --d > 0);
lib/libpcap/etherent.c
80
int c, d, i;
lib/libpcap/gencode.h
96
#define ATOMELEM(d, n) (d & ATOMMASK(n))
lib/libpcap/grammar.y
51
#define QSET(q, p, d, a) (q).proto = (p),\
lib/libpcap/grammar.y
52
(q).dir = (d),\
lib/libpcap/nametoaddr.c
316
u_int d;
lib/libpcap/nametoaddr.c
325
d = xdtoi(*s++);
lib/libpcap/nametoaddr.c
327
d <<= 4;
lib/libpcap/nametoaddr.c
328
d |= xdtoi(*s++);
lib/libpcap/nametoaddr.c
330
*ep++ = d;
lib/libpcap/pcap-bpf.c
927
pcap_setdirection(pcap_t *p, pcap_direction_t d)
lib/libpcap/pcap-bpf.c
931
switch (d) {
lib/libssl/ssl.h
1147
int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, const unsigned char *d, long len);
lib/libssl/ssl.h
1149
int SSL_use_PrivateKey_ASN1(int pk, SSL *ssl, const unsigned char *d, long len);
lib/libssl/ssl.h
1151
int SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len);
lib/libssl/ssl.h
1233
int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, const unsigned char *d, long len);
lib/libssl/ssl.h
1235
int SSL_CTX_use_PrivateKey_ASN1(int pk, SSL_CTX *ctx, const unsigned char *d, long len);
lib/libssl/ssl.h
1237
int SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len, const unsigned char *d);
lib/libssl/ssl_rsa.c
133
SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len)
lib/libssl/ssl_rsa.c
138
x = d2i_X509(NULL, &d, (long)len);
lib/libssl/ssl_rsa.c
273
SSL_use_RSAPrivateKey_ASN1(SSL *ssl, const unsigned char *d, long len)
lib/libssl/ssl_rsa.c
278
if ((rsa = d2i_RSAPrivateKey(NULL, &d, (long)len)) == NULL) {
lib/libssl/ssl_rsa.c
345
SSL_use_PrivateKey_ASN1(int type, SSL *ssl, const unsigned char *d, long len)
lib/libssl/ssl_rsa.c
350
if ((pkey = d2i_PrivateKey(type, NULL, &d, (long)len)) == NULL) {
lib/libssl/ssl_rsa.c
495
SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len, const unsigned char *d)
lib/libssl/ssl_rsa.c
500
x = d2i_X509(NULL, &d, (long)len);
lib/libssl/ssl_rsa.c
582
SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, const unsigned char *d, long len)
lib/libssl/ssl_rsa.c
587
if ((rsa = d2i_RSAPrivateKey(NULL, &d, (long)len)) == NULL) {
lib/libssl/ssl_rsa.c
651
SSL_CTX_use_PrivateKey_ASN1(int type, SSL_CTX *ctx, const unsigned char *d,
lib/libssl/ssl_rsa.c
657
if ((pkey = d2i_PrivateKey(type, NULL, &d, (long)len)) == NULL) {
lib/libtls/tls.c
287
char d[EVP_MAX_MD_SIZE], *dhex = NULL;
lib/libtls/tls.c
293
if (X509_digest(cert, EVP_sha256(), d, &dlen) != 1)
lib/libtls/tls.c
296
if (tls_hex_string(d, dlen, &dhex, NULL) != 0)
lib/libtls/tls.c
314
char d[EVP_MAX_MD_SIZE], *dhex = NULL;
lib/libtls/tls.c
320
if (X509_pubkey_digest(cert, EVP_sha256(), d, &dlen) != 1)
lib/libtls/tls.c
323
if (tls_hex_string(d, dlen, &dhex, NULL) != 0)
lib/libtls/tls_verify.c
142
format = ASN1_STRING_type(altname->d.dNSName);
lib/libtls/tls_verify.c
144
data = ASN1_STRING_get0_data(altname->d.dNSName);
lib/libtls/tls_verify.c
145
len = ASN1_STRING_length(altname->d.dNSName);
lib/libtls/tls_verify.c
185
datalen = ASN1_STRING_length(altname->d.iPAddress);
lib/libtls/tls_verify.c
186
data = ASN1_STRING_get0_data(altname->d.iPAddress);
lib/libusbhid/descr.c
76
hid_get_report_desc_data(report_desc_t d, uint8_t **data, uint32_t *size)
lib/libusbhid/descr.c
78
*data = d->data;
lib/libusbhid/descr.c
79
*size = d->size;
lib/libusbhid/parse.c
145
hid_start_parse(report_desc_t d, int kindset, int id)
lib/libusbhid/parse.c
152
s->start = s->p = d->data;
lib/libusbhid/parse.c
153
s->end = d->data + d->size;
lib/libusbhid/parse.c
538
struct hid_data *d;
lib/libusbhid/parse.c
549
for (d = hid_start_parse(r, 1 << k, id); hid_get_item(d, &h); ) {
lib/libusbhid/parse.c
563
hid_end_parse(d);
lib/libusbhid/parse.c
579
struct hid_data *d;
lib/libusbhid/parse.c
581
for (d = hid_start_parse(desc, 1 << k, id); hid_get_item(d, h); ) {
lib/libusbhid/parse.c
583
hid_end_parse(d);
lib/libusbhid/parse.c
587
hid_end_parse(d);
lib/libusbhid/usbhid.h
83
hid_data_t hid_start_parse(report_desc_t d, int kindset, int id);
lib/libusbhid/usbhid.h
86
int hid_report_size(report_desc_t d, enum hid_kind k, int id);
lib/libusbhid/usbhid.h
87
int hid_locate(report_desc_t d, unsigned int usage, enum hid_kind k,
lib/libutil/ber.c
584
int d, class, level = 0;
lib/libutil/ber.c
607
d = va_arg(ap, int);
lib/libutil/ber.c
608
if ((ber = ober_add_boolean(ber, d)) == NULL)
lib/libutil/ber.c
612
d = va_arg(ap, int);
lib/libutil/ber.c
613
if ((ber = ober_add_integer(ber, d)) == NULL)
lib/libutil/ber.c
705
int *d, level = -1;
lib/libutil/ber.c
735
d = va_arg(ap, int *);
lib/libutil/ber.c
736
if (ober_get_boolean(ber, d) == -1)
lib/libutil/ber.c
741
d = va_arg(ap, int *);
lib/libutil/ber.c
744
if (d != NULL)
lib/libutil/ber.c
745
*d = l;
lib/libutil/ber.c
781
d = va_arg(ap, int *);
lib/libutil/ber.c
783
if (d != NULL)
lib/libutil/ber.c
784
*d = ber->be_class;
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/malloc.c
1076
mapalign(struct dir_info *d, size_t alignment, size_t sz, int zero_fill)
libexec/ld.so/malloc.c
1094
p = map(d, sz + alignment, zero_fill);
libexec/ld.so/malloc.c
145
static u_char getrbyte(struct dir_info *d);
libexec/ld.so/malloc.c
180
rbytes_init(struct dir_info *d)
libexec/ld.so/malloc.c
182
_dl_arc4randombuf(d->rbytes, sizeof(d->rbytes));
libexec/ld.so/malloc.c
184
d->rbytesused = 1 + d->rbytes[0] % (sizeof(d->rbytes) / 2);
libexec/ld.so/malloc.c
188
getrbyte(struct dir_info *d)
libexec/ld.so/malloc.c
192
if (d->rbytesused >= sizeof(d->rbytes))
libexec/ld.so/malloc.c
193
rbytes_init(d);
libexec/ld.so/malloc.c
194
x = d->rbytes[d->rbytesused++];
libexec/ld.so/malloc.c
207
struct dir_info *d;
libexec/ld.so/malloc.c
224
d_avail = (DIR_INFO_RSZ - sizeof(*d)) >> MALLOC_MINSHIFT;
libexec/ld.so/malloc.c
227
d = (struct dir_info *)(p + MALLOC_PAGESIZE +
libexec/ld.so/malloc.c
230
rbytes_init(d);
libexec/ld.so/malloc.c
231
d->regions_free = d->regions_total = MALLOC_INITIAL_REGIONS;
libexec/ld.so/malloc.c
232
regioninfo_size = d->regions_total * sizeof(struct region_info);
libexec/ld.so/malloc.c
233
d->r = MMAP(regioninfo_size);
libexec/ld.so/malloc.c
234
d->r = MMAP_ERROR(d->r);
libexec/ld.so/malloc.c
235
if (d->r == MAP_FAILED)
libexec/ld.so/malloc.c
238
LIST_INIT(&d->chunk_info_list[i]);
libexec/ld.so/malloc.c
240
LIST_INIT(&d->chunk_dir[i][j]);
libexec/ld.so/malloc.c
242
d->canary1 = mopts.malloc_canary ^ (u_int32_t)(uintptr_t)d;
libexec/ld.so/malloc.c
243
d->canary2 = ~d->canary1;
libexec/ld.so/malloc.c
245
g_pool = d;
libexec/ld.so/malloc.c
249
omalloc_grow(struct dir_info *d)
libexec/ld.so/malloc.c
257
if (d->regions_total > SIZE_MAX / sizeof(struct region_info) / 2)
libexec/ld.so/malloc.c
260
newtotal = d->regions_total * 2;
libexec/ld.so/malloc.c
269
for (i = 0; i < d->regions_total; i++) {
libexec/ld.so/malloc.c
270
void *q = d->r[i].p;
libexec/ld.so/malloc.c
276
p[index] = d->r[i];
libexec/ld.so/malloc.c
280
if (_dl_munmap(d->r, d->regions_total * sizeof(struct region_info)))
libexec/ld.so/malloc.c
282
d->regions_free = d->regions_free + d->regions_total;
libexec/ld.so/malloc.c
283
d->regions_total = newtotal;
libexec/ld.so/malloc.c
284
d->r = p;
libexec/ld.so/malloc.c
293
insert(struct dir_info *d, void *p, size_t sz)
libexec/ld.so/malloc.c
299
if (d->regions_free * 4 < d->regions_total) {
libexec/ld.so/malloc.c
300
if (omalloc_grow(d))
libexec/ld.so/malloc.c
303
mask = d->regions_total - 1;
libexec/ld.so/malloc.c
305
q = d->r[index].p;
libexec/ld.so/malloc.c
308
q = d->r[index].p;
libexec/ld.so/malloc.c
310
d->r[index].p = p;
libexec/ld.so/malloc.c
311
d->r[index].size = sz;
libexec/ld.so/malloc.c
312
d->regions_free--;
libexec/ld.so/malloc.c
317
find(struct dir_info *d, void *p)
libexec/ld.so/malloc.c
320
size_t mask = d->regions_total - 1;
libexec/ld.so/malloc.c
323
if (mopts.malloc_canary != (d->canary1 ^ (u_int32_t)(uintptr_t)d) ||
libexec/ld.so/malloc.c
324
d->canary1 != ~d->canary2)
libexec/ld.so/malloc.c
328
r = d->r[index].p;
libexec/ld.so/malloc.c
332
r = d->r[index].p;
libexec/ld.so/malloc.c
335
return (q == p && r != NULL) ? &d->r[index] : NULL;
libexec/ld.so/malloc.c
339
delete(struct dir_info *d, struct region_info *ri)
libexec/ld.so/malloc.c
342
size_t mask = d->regions_total - 1;
libexec/ld.so/malloc.c
345
if (d->regions_total & (d->regions_total - 1))
libexec/ld.so/malloc.c
347
d->regions_free++;
libexec/ld.so/malloc.c
349
i = ri - d->r;
libexec/ld.so/malloc.c
351
d->r[i].p = NULL;
libexec/ld.so/malloc.c
352
d->r[i].size = 0;
libexec/ld.so/malloc.c
356
if (d->r[i].p == NULL)
libexec/ld.so/malloc.c
358
r = hash(d->r[i].p) & mask;
libexec/ld.so/malloc.c
362
d->r[j] = d->r[i];
libexec/ld.so/malloc.c
377
unmap(struct dir_info *d, void *p, size_t sz, int junk)
libexec/ld.so/malloc.c
387
rsz = MALLOC_CACHE - d->free_regions_size;
libexec/ld.so/malloc.c
394
offset = getrbyte(d);
libexec/ld.so/malloc.c
399
r = &d->free_regions[(i + offset) & mask];
libexec/ld.so/malloc.c
409
d->free_regions_size -= r->size;
libexec/ld.so/malloc.c
418
r = &d->free_regions[(i + offset) & mask];
libexec/ld.so/malloc.c
428
d->free_regions_size += psz;
libexec/ld.so/malloc.c
432
if (d->free_regions_size > MALLOC_CACHE)
libexec/ld.so/malloc.c
437
map(struct dir_info *d, size_t sz, int zero_fill)
libexec/ld.so/malloc.c
444
if (mopts.malloc_canary != (d->canary1 ^ (u_int32_t)(uintptr_t)d) ||
libexec/ld.so/malloc.c
445
d->canary1 != ~d->canary2)
libexec/ld.so/malloc.c
451
if (psz > d->free_regions_size) {
libexec/ld.so/malloc.c
458
r = &d->free_regions[(i + d->rotor) & (MALLOC_CACHE - 1)];
libexec/ld.so/malloc.c
465
d->free_regions_size -= psz;
libexec/ld.so/malloc.c
471
d->rotor += i + 1;
libexec/ld.so/malloc.c
483
d->free_regions_size -= psz;
libexec/ld.so/malloc.c
492
if (d->free_regions_size > MALLOC_CACHE)
libexec/ld.so/malloc.c
499
init_chunk_info(struct dir_info *d, struct chunk_info *p, int bits)
libexec/ld.so/malloc.c
514
p->canary = (u_short)d->canary1;
libexec/ld.so/malloc.c
523
alloc_chunk_info(struct dir_info *d, int bits)
libexec/ld.so/malloc.c
527
if (LIST_EMPTY(&d->chunk_info_list[bits])) {
libexec/ld.so/malloc.c
549
LIST_INSERT_HEAD(&d->chunk_info_list[bits],
libexec/ld.so/malloc.c
552
p = LIST_FIRST(&d->chunk_info_list[bits]);
libexec/ld.so/malloc.c
555
init_chunk_info(d, p, bits);
libexec/ld.so/malloc.c
563
omalloc_make_chunks(struct dir_info *d, int bits, int listnum)
libexec/ld.so/malloc.c
569
pp = map(d, MALLOC_PAGESIZE, 0);
libexec/ld.so/malloc.c
573
bp = alloc_chunk_info(d, bits);
libexec/ld.so/malloc.c
582
if (insert(d, (void *)((uintptr_t)pp | (bits + 1)), (uintptr_t)bp))
libexec/ld.so/malloc.c
584
LIST_INSERT_HEAD(&d->chunk_dir[bits][listnum], bp, entries);
libexec/ld.so/malloc.c
588
unmap(d, pp, MALLOC_PAGESIZE, MALLOC_JUNK);
libexec/ld.so/malloc.c
625
malloc_bytes(struct dir_info *d, size_t size)
libexec/ld.so/malloc.c
634
if (mopts.malloc_canary != (d->canary1 ^ (u_int32_t)(uintptr_t)d) ||
libexec/ld.so/malloc.c
635
d->canary1 != ~d->canary2)
libexec/ld.so/malloc.c
640
r = ((u_int)getrbyte(d) << 8) | getrbyte(d);
libexec/ld.so/malloc.c
643
if ((bp = LIST_FIRST(&d->chunk_dir[j][listnum])) == NULL) {
libexec/ld.so/malloc.c
644
bp = omalloc_make_chunks(d, j, listnum);
libexec/ld.so/malloc.c
649
if (bp->canary != (u_short)d->canary1)
libexec/ld.so/malloc.c
717
find_chunknum(struct dir_info *d, struct region_info *r, void *ptr, int check)
libexec/ld.so/malloc.c
723
if (info->canary != (u_short)d->canary1)
libexec/ld.so/malloc.c
747
free_bytes(struct dir_info *d, struct region_info *r, void *ptr)
libexec/ld.so/malloc.c
755
chunknum = find_chunknum(d, r, ptr, 0);
libexec/ld.so/malloc.c
762
listnum = getrbyte(d) % MALLOC_CHUNK_LISTS;
libexec/ld.so/malloc.c
764
mp = &d->chunk_dir[info->shift][listnum];
libexec/ld.so/malloc.c
766
mp = &d->chunk_dir[0][listnum];
libexec/ld.so/malloc.c
779
unmap(d, info->page, MALLOC_PAGESIZE, 0);
libexec/ld.so/malloc.c
781
delete(d, r);
libexec/ld.so/malloc.c
783
mp = &d->chunk_info_list[info->shift];
libexec/ld.so/malloc.c
785
mp = &d->chunk_info_list[0];
libexec/ld.so/resolve.c
758
Elf_Dyn *d, *dynp = (Elf_Dyn *)((unsigned long)_dynp + loff);
libexec/ld.so/resolve.c
761
for (d = dynp; d->d_tag != DT_NULL; d++)
libexec/ld.so/resolve.c
762
if (d->d_tag == DT_STRTAB) {
libexec/ld.so/resolve.c
763
base = d->d_un.d_ptr + loff;
libexec/ld.so/resolve.c
768
for (d = dynp; d->d_tag != DT_NULL; d++)
libexec/ld.so/resolve.c
769
if (d->d_tag == DT_SONAME) {
libexec/ld.so/resolve.c
770
if (_dl_strncmp((char *)(base + d->d_un.d_ptr),
libexec/ld.so/util.h
115
char *d = dst;
libexec/ld.so/util.h
122
if ((*d++ = *s++) == 0)
libexec/ld.so/util.h
130
*d = '\0'; /* NUL-terminate dst */
libexec/ld.so/util.h
92
char *d = dst;
libexec/ld.so/util.h
95
*d++ = c;
libexec/login_ldap/aldap.c
1113
int d;
libexec/login_ldap/aldap.c
1251
if (ober_get_boolean(root, &d) == -1) {
libexec/login_ldap/aldap.c
1255
fprintf(stderr, "%s(%d)\n", d ? "true" : "false", d);
libexec/login_ldap/util.c
61
dlog(int d, char *fmt, ...)
libexec/login_ldap/util.c
76
} else if (d == 0)
regress/lib/libc/cephes/drand.c
131
unkans.d = sx/30269.0 + sy/30307.0 + sz/30323.0;
regress/lib/libc/cephes/drand.c
132
r = unkans.d;
regress/lib/libc/cephes/drand.c
133
unkans.d -= r;
regress/lib/libc/cephes/drand.c
134
unkans.d += 1.0;
regress/lib/libc/cephes/drand.c
172
*a = unkans.d;
regress/lib/libc/cephes/drand.c
74
double d;
regress/lib/libc/cephes/etodec.c
117
*d++ = 0;
regress/lib/libc/cephes/etodec.c
118
*d++ = 0;
regress/lib/libc/cephes/etodec.c
119
*d++ = 0;
regress/lib/libc/cephes/etodec.c
120
*d++ = 0;
regress/lib/libc/cephes/etodec.c
125
*d++ = 077777;
regress/lib/libc/cephes/etodec.c
126
*d++ = -1;
regress/lib/libc/cephes/etodec.c
127
*d++ = -1;
regress/lib/libc/cephes/etodec.c
128
*d++ = -1;
regress/lib/libc/cephes/etodec.c
136
*d++ |= r;
regress/lib/libc/cephes/etodec.c
137
*d++ = xi[M+1];
regress/lib/libc/cephes/etodec.c
138
*d++ = xi[M+2];
regress/lib/libc/cephes/etodec.c
139
*d++ = xi[M+3];
regress/lib/libc/cephes/etodec.c
145
void etodec( x, d )
regress/lib/libc/cephes/etodec.c
146
unsigned short *x, *d;
regress/lib/libc/cephes/etodec.c
159
todec( xi, d );
regress/lib/libc/cephes/etodec.c
28
void dectoe( d, e )
regress/lib/libc/cephes/etodec.c
29
unsigned short *d;
regress/lib/libc/cephes/etodec.c
37
r = *d; /* get DEC exponent word */
regress/lib/libc/cephes/etodec.c
38
if( *d & (unsigned int )0x8000 )
regress/lib/libc/cephes/etodec.c
51
r = *d++; /* now do the high order mantissa */
regress/lib/libc/cephes/etodec.c
56
*p++ = *d++; /* fill in the rest of our mantissa */
regress/lib/libc/cephes/etodec.c
57
*p++ = *d++;
regress/lib/libc/cephes/etodec.c
58
*p = *d;
regress/lib/libc/cephes/etodec.c
75
void etodec( x, d )
regress/lib/libc/cephes/etodec.c
76
unsigned short *x, *d;
regress/lib/libc/cephes/etodec.c
83
*d = 0;
regress/lib/libc/cephes/etodec.c
85
*d = 0100000;
regress/lib/libc/gcvt/gcvt_test.c
101
got = gcvt(tv->d, tv->ndig, buf);
regress/lib/libc/gcvt/gcvt_test.c
104
tv->d, tv->ndig, tv->expect, got);
regress/lib/libc/gcvt/gcvt_test.c
12
double d;
regress/lib/libc/ieeefp/infinity/infinity.c
22
double d, two;
regress/lib/libc/ieeefp/infinity/infinity.c
34
d = 1.0;
regress/lib/libc/ieeefp/infinity/infinity.c
36
d = d + d;
regress/lib/libc/ieeefp/infinity/infinity.c
39
if (!isinf(d) || copysign(1.0, d) < 0.0)
regress/lib/libc/ieeefp/infinity/infinity.c
44
d = 1.0;
regress/lib/libc/ieeefp/infinity/infinity.c
47
d = d * two;
regress/lib/libc/ieeefp/infinity/infinity.c
50
if (!isinf(d) || copysign(1.0, d) < 0.0)
regress/lib/libc/ieeefp/infinity/infinity.c
55
d = -1.0;
regress/lib/libc/ieeefp/infinity/infinity.c
57
d = d + d;
regress/lib/libc/ieeefp/infinity/infinity.c
60
if (!isinf(d) || copysign(1.0, d) > 0.0)
regress/lib/libc/ieeefp/infinity/infinity.c
65
d = -1.0;
regress/lib/libc/ieeefp/infinity/infinity.c
68
d = d * two;
regress/lib/libc/ieeefp/infinity/infinity.c
71
if (!isinf(d) || copysign(1.0, d) > 0.0)
regress/lib/libc/locale/check_isw/check_isw.c
117
d = towlower(c);
regress/lib/libc/locale/check_isw/check_isw.c
118
if (wctomb(buf, d) == 1) {
regress/lib/libc/locale/check_isw/check_isw.c
123
d = towupper(c);
regress/lib/libc/locale/check_isw/check_isw.c
124
if (wctomb(buf, d) == 1) {
regress/lib/libc/locale/check_isw/check_isw.c
82
wchar_t c, d;
regress/lib/libc/qsort/qsort_test.c
125
check_result(char *sub, size_t es, char *got, char *expected, struct test_distribution *d,
regress/lib/libc/qsort/qsort_test.c
134
"max %zu(%zu)", d->name, sub, m, n,
regress/lib/libc/qsort/qsort_test.c
138
"max %zu(%zu)", d->name, sub, n,
regress/lib/libc/qsort/qsort_test.c
144
"max %zu(%zu)", d->name, m, n,
regress/lib/libc/qsort/qsort_test.c
148
"max %zu(%zu)", d->name, n,
regress/lib/libc/qsort/qsort_test.c
165
d->name, sub, i, m, n);
regress/lib/libc/qsort/qsort_test.c
168
d->name, i, m, n);
regress/lib/libc/qsort/qsort_test.c
398
print_timing(struct test_distribution *d, char *sub, int m, int n, double elapsed)
regress/lib/libc/qsort/qsort_test.c
403
d->name, sub, m, n, elapsed);
regress/lib/libc/qsort/qsort_test.c
406
d->name, sub, n, elapsed);
regress/lib/libc/qsort/qsort_test.c
411
d->name, m, n, elapsed);
regress/lib/libc/qsort/qsort_test.c
414
d->name, n, elapsed);
regress/lib/libc/qsort/qsort_test.c
420
do_test(struct test_distribution *d, char *sub, int m, int n, size_t es, void *y, void *z)
regress/lib/libc/qsort/qsort_test.c
429
d->name, sub, compares, m, n);
regress/lib/libc/qsort/qsort_test.c
432
d->name, compares, m, n);
regress/lib/libc/qsort/qsort_test.c
438
qsort(y, n, es, d->cmp_checked);
regress/lib/libc/qsort/qsort_test.c
444
print_timing(d, sub, m, n, elapsed);
regress/lib/libc/qsort/qsort_test.c
446
if (check_result(sub, es, y, z, d, m, n) != 0)
regress/lib/libc/qsort/qsort_test.c
45
int (*test)(struct test_distribution *d, int n, void *x, void *y, void *z);
regress/lib/libc/qsort/qsort_test.c
452
#define TEST_PERTURBED(d, n, x, y, z) do { \
regress/lib/libc/qsort/qsort_test.c
458
d->fill(x, n, m); \
regress/lib/libc/qsort/qsort_test.c
463
if (mergesort(z, n, es, d->cmp) != 0) \
regress/lib/libc/qsort/qsort_test.c
465
if (do_test(d, "copy", m, n, es, y, z) != 0) \
regress/lib/libc/qsort/qsort_test.c
471
if (mergesort(z, n, es, d->cmp) != 0) \
regress/lib/libc/qsort/qsort_test.c
473
if (do_test(d, "reversed", m, n, es, y, z) != 0) \
regress/lib/libc/qsort/qsort_test.c
481
if (mergesort(z, n, es, d->cmp) != 0) \
regress/lib/libc/qsort/qsort_test.c
483
if (do_test(d, "front reversed", m, n, es, y, z) != 0) \
regress/lib/libc/qsort/qsort_test.c
491
if (mergesort(z, n, es, d->cmp) != 0) \
regress/lib/libc/qsort/qsort_test.c
493
if (do_test(d, "back reversed", m, n, es, y, z) != 0) \
regress/lib/libc/qsort/qsort_test.c
497
if (mergesort(x, n, es, d->cmp) != 0) \
regress/lib/libc/qsort/qsort_test.c
501
if (do_test(d, "sorted", m, n, es, y, x) != 0) \
regress/lib/libc/qsort/qsort_test.c
507
if (mergesort(z, n, es, d->cmp) != 0) \
regress/lib/libc/qsort/qsort_test.c
509
if (do_test(d, "dithered", m, n, es, y, z) != 0) \
regress/lib/libc/qsort/qsort_test.c
515
test_perturbed_i(struct test_distribution *d, int n, void *vx, void *vy, void *vz)
regress/lib/libc/qsort/qsort_test.c
522
TEST_PERTURBED(d, n, x, y, z);
regress/lib/libc/qsort/qsort_test.c
527
test_perturbed_ll(struct test_distribution *d, int n, void *vx, void *vy, void *vz)
regress/lib/libc/qsort/qsort_test.c
534
TEST_PERTURBED(d, n, x, y, z);
regress/lib/libc/qsort/qsort_test.c
539
test_perturbed_double(struct test_distribution *d, int n, void *vx, void *vy, void *vz)
regress/lib/libc/qsort/qsort_test.c
546
TEST_PERTURBED(d, n, x, y, z);
regress/lib/libc/qsort/qsort_test.c
554
#define TEST_SIMPLE(d, n, x, y, z) do { \
regress/lib/libc/qsort/qsort_test.c
558
d->fill(x, n, 0); \
regress/lib/libc/qsort/qsort_test.c
563
if (mergesort(z, n, sizeof(z[0]), d->cmp) != 0) \
regress/lib/libc/qsort/qsort_test.c
565
if (do_test(d, NULL, 0, n, sizeof(x[0]), y, z) != 0) \
regress/lib/libc/qsort/qsort_test.c
570
test_simple_i(struct test_distribution *d, int n, void *vx, void *vy, void *vz)
regress/lib/libc/qsort/qsort_test.c
577
TEST_SIMPLE(d, n, x, y, z);
regress/lib/libc/qsort/qsort_test.c
582
test_simple_ll(struct test_distribution *d, int n, void *vx, void *vy, void *vz)
regress/lib/libc/qsort/qsort_test.c
589
TEST_SIMPLE(d, n, x, y, z);
regress/lib/libc/qsort/qsort_test.c
594
test_simple_double(struct test_distribution *d, int n, void *vx, void *vy, void *vz)
regress/lib/libc/qsort/qsort_test.c
601
TEST_SIMPLE(d, n, x, y, z);
regress/lib/libc/qsort/qsort_test.c
610
test_antiqsort(struct test_distribution *d, int n, void *vx, void *vy, void *vz)
regress/lib/libc/qsort/qsort_test.c
642
print_timing(d, NULL, 0, n, elapsed);
regress/lib/libc/qsort/qsort_test.c
646
d->name, n, i, max_compares, abrt_compares);
regress/lib/libc/qsort/qsort_test.c
686
struct test_distribution *d;
regress/lib/libc/qsort/qsort_test.c
707
for (d = distributions; d->name != NULL; d++) {
regress/lib/libc/qsort/qsort_test.c
708
if (name != NULL && strncmp(name, d->name, strlen(name)) != 0)
regress/lib/libc/qsort/qsort_test.c
710
if (d->test(d, n, x, y, z) != 0)
regress/lib/libc/qsort/qsort_test.c
731
struct test_distribution *d;
regress/lib/libc/qsort/qsort_test.c
741
for (d = distributions; d->name != NULL; d++) {
regress/lib/libc/qsort/qsort_test.c
742
if (strncmp(optarg, d->name, strlen(optarg)) == 0)
regress/lib/libc/qsort/qsort_test.c
745
if (d->name == NULL)
regress/lib/libc/regex/debug.c
101
fprintf(d, "$");
regress/lib/libc/regex/debug.c
104
fprintf(d, "\\{");
regress/lib/libc/regex/debug.c
107
fprintf(d, "\\}");
regress/lib/libc/regex/debug.c
110
fprintf(d, ".");
regress/lib/libc/regex/debug.c
113
fprintf(d, "[(%ld)", (long)opnd);
regress/lib/libc/regex/debug.c
119
fprintf(d, "%s", regchar(i));
regress/lib/libc/regex/debug.c
125
fprintf(d, "-%s",
regress/lib/libc/regex/debug.c
130
fprintf(d, "]");
regress/lib/libc/regex/debug.c
133
fprintf(d, "(\\<%ld>", (long)opnd);
regress/lib/libc/regex/debug.c
136
fprintf(d, "<%ld>\\)", (long)opnd);
regress/lib/libc/regex/debug.c
139
fprintf(d, "(+");
regress/lib/libc/regex/debug.c
141
fprintf(d, "<%ld>", (long)opnd);
regress/lib/libc/regex/debug.c
145
fprintf(d, "<%ld>", (long)opnd);
regress/lib/libc/regex/debug.c
146
fprintf(d, "+)");
regress/lib/libc/regex/debug.c
149
fprintf(d, "(?");
regress/lib/libc/regex/debug.c
151
fprintf(d, "<%ld>", (long)opnd);
regress/lib/libc/regex/debug.c
155
fprintf(d, "<%ld>", (long)opnd);
regress/lib/libc/regex/debug.c
156
fprintf(d, "?)");
regress/lib/libc/regex/debug.c
159
fprintf(d, "((<%ld>", (long)opnd);
regress/lib/libc/regex/debug.c
162
fprintf(d, "<%ld>))", (long)opnd);
regress/lib/libc/regex/debug.c
165
fprintf(d, "<");
regress/lib/libc/regex/debug.c
167
fprintf(d, "<%ld>", (long)opnd);
regress/lib/libc/regex/debug.c
171
fprintf(d, "<%ld>", (long)opnd);
regress/lib/libc/regex/debug.c
172
fprintf(d, "|");
regress/lib/libc/regex/debug.c
175
fprintf(d, "|");
regress/lib/libc/regex/debug.c
177
fprintf(d, "<%ld>", (long)opnd);
regress/lib/libc/regex/debug.c
181
fprintf(d, "<%ld>", (long)opnd);
regress/lib/libc/regex/debug.c
182
fprintf(d, ">");
regress/lib/libc/regex/debug.c
185
fprintf(d, "!%ld(%ld)!", (long)OP(*s), (long)opnd);
regress/lib/libc/regex/debug.c
21
regprint(r, d)
regress/lib/libc/regex/debug.c
23
FILE *d;
regress/lib/libc/regex/debug.c
30
fprintf(d, "%ld states", (long)g->nstates);
regress/lib/libc/regex/debug.c
31
fprintf(d, ", first %ld last %ld", (long)g->firststate,
regress/lib/libc/regex/debug.c
34
fprintf(d, ", USEBOL");
regress/lib/libc/regex/debug.c
36
fprintf(d, ", USEEOL");
regress/lib/libc/regex/debug.c
38
fprintf(d, ", BAD");
regress/lib/libc/regex/debug.c
40
fprintf(d, ", nsub=%ld", (long)g->nsub);
regress/lib/libc/regex/debug.c
42
fprintf(d, ", must(%ld) `%*s'", (long)g->mlen, (int)g->mlen,
regress/lib/libc/regex/debug.c
45
fprintf(d, ", backrefs");
regress/lib/libc/regex/debug.c
47
fprintf(d, ", nplus %ld", (long)g->nplus);
regress/lib/libc/regex/debug.c
48
fprintf(d, "\n");
regress/lib/libc/regex/debug.c
49
s_print(g, d);
regress/lib/libc/regex/debug.c
57
s_print(g, d)
regress/lib/libc/regex/debug.c
59
FILE *d;
regress/lib/libc/regex/debug.c
71
fprintf(d, "\n\t"); \
regress/lib/libc/regex/debug.c
74
fprintf(d, " "); \
regress/lib/libc/regex/debug.c
83
fprintf(d, "missing initial OEND!\n");
regress/lib/libc/regex/debug.c
88
fprintf(d, "\n");
regress/lib/libc/regex/debug.c
93
fprintf(d, "\\%c", (char)opnd);
regress/lib/libc/regex/debug.c
95
fprintf(d, "%s", regchar((char)opnd));
regress/lib/libc/regex/debug.c
98
fprintf(d, "^");
regress/lib/libc/regex/t_exhaust.c
102
char *d, *s1, *s2, *s3;
regress/lib/libc/regex/t_exhaust.c
108
d = concat("(.?)", s3);
regress/lib/libc/regex/t_exhaust.c
110
return d;
regress/lib/libc/regex/t_exhaust.c
140
char *d, *s1, *s2;
regress/lib/libc/regex/t_exhaust.c
145
d = concat(s2, s1);
regress/lib/libc/regex/t_exhaust.c
148
return d;
regress/lib/libc/regex/t_exhaust.c
169
char *d = (*patterns[i])(9999);
regress/lib/libc/regex/t_exhaust.c
170
e = regcomp(&re, d, i == 6 ? REG_BASIC : REG_EXTENDED);
regress/lib/libc/regex/t_exhaust.c
171
free(d);
regress/lib/libc/regex/t_exhaust.c
61
concat(const char *d, const char *s)
regress/lib/libc/regex/t_exhaust.c
63
size_t dlen = strlen(d);
regress/lib/libc/regex/t_exhaust.c
66
strlcpy(p, d, dlen + slen + 1);
regress/lib/libc/regex/t_exhaust.c
74
char *d, *s1, *s2;
regress/lib/libc/regex/t_exhaust.c
78
d = concat("(", s2);
regress/lib/libc/regex/t_exhaust.c
80
return d;
regress/lib/libc/regex/t_exhaust.c
86
char *d, *s1, *s2, *s3;
regress/lib/libc/regex/t_exhaust.c
94
d = concat("(", s1);
regress/lib/libc/regex/t_exhaust.c
96
return d;
regress/lib/libc/strtod/strtodtest.c
17
double d;
regress/lib/libc/strtod/strtodtest.c
19
d = strtod(tmp, NULL);
regress/lib/libcrypto/bn/bn_test.c
1004
BIGNUM *a, *b, *c, *d, *e;
regress/lib/libcrypto/bn/bn_test.c
1016
if ((d = BN_CTX_get(ctx)) == NULL)
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
1045
if (!BN_mod_exp(d, a, b, c, ctx))
regress/lib/libcrypto/bn/bn_test.c
1057
CHECK_GOTO(BN_print(bp, d));
regress/lib/libcrypto/bn/bn_test.c
1061
CHECK_GOTO(BN_sub(e, e, d));
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
1086
CHECK_GOTO(BN_print(bp, d));
regress/lib/libcrypto/bn/bn_test.c
1090
CHECK_GOTO(BN_sub(e, e, d));
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
1115
CHECK_GOTO(BN_print(bp, d));
regress/lib/libcrypto/bn/bn_test.c
1119
CHECK_GOTO(BN_sub(e, e, d));
regress/lib/libcrypto/bn/bn_test.c
1137
BIGNUM *a, *b, *c, *d, *e;
regress/lib/libcrypto/bn/bn_test.c
1149
if ((d = BN_CTX_get(ctx)) == NULL)
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
1177
if (!BN_mod_exp_mont_consttime(d, a, b, c, ctx, NULL))
regress/lib/libcrypto/bn/bn_test.c
1189
CHECK_GOTO(BN_print(bp, d));
regress/lib/libcrypto/bn/bn_test.c
1193
CHECK_GOTO(BN_sub(e, e, d));
regress/lib/libcrypto/bn/bn_test.c
1215
BIGNUM *a, *p, *m, *d, *e;
regress/lib/libcrypto/bn/bn_test.c
1229
if ((d = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
1246
if (!BN_mod_exp_mont_consttime(d, a, p, m, ctx, NULL))
regress/lib/libcrypto/bn/bn_test.c
1248
if (!BN_is_one(d)) {
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
1274
if (BN_cmp(c, d)) {
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
1320
if (BN_cmp(c, d)) {
regress/lib/libcrypto/bn/bn_test.c
1328
if (!BN_mod_exp_mont_consttime(d, a, p, m, ctx, NULL))
regress/lib/libcrypto/bn/bn_test.c
1330
if (!BN_is_zero(d)) {
regress/lib/libcrypto/bn/bn_test.c
1343
if (!BN_mod_exp_mont_consttime(d, e, p, m, ctx, NULL))
regress/lib/libcrypto/bn/bn_test.c
1347
if (BN_cmp(a, d) != 0) {
regress/lib/libcrypto/bn/bn_test.c
1353
if (!BN_mod_exp_mont_consttime(d, e, p, m, ctx, NULL))
regress/lib/libcrypto/bn/bn_test.c
1357
if (BN_cmp(a, d) != 0) {
regress/lib/libcrypto/bn/bn_test.c
1373
BIGNUM *a, *b, *d, *e;
regress/lib/libcrypto/bn/bn_test.c
1383
if ((d = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
1392
if (BN_exp(d, a, b, ctx) <= 0)
regress/lib/libcrypto/bn/bn_test.c
1402
CHECK_GOTO(BN_print(bp, d));
regress/lib/libcrypto/bn/bn_test.c
1408
CHECK_GOTO(BN_sub(e, e, d));
regress/lib/libcrypto/bn/bn_test.c
1641
BIGNUM *a, *b, *c, *d;
regress/lib/libcrypto/bn/bn_test.c
1653
if ((d = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
1678
CHECK_GOTO(BN_mul(d, a, c, ctx));
regress/lib/libcrypto/bn/bn_test.c
1679
CHECK_GOTO(BN_sub(d, d, b));
regress/lib/libcrypto/bn/bn_test.c
1680
if (!BN_is_zero(d)) {
regress/lib/libcrypto/bn/bn_test.c
1689
CHECK_GOTO(BN_print_fp(stderr, d));
regress/lib/libcrypto/bn/bn_test.c
1751
BIGNUM *a, *b, *c, *d, *e;
regress/lib/libcrypto/bn/bn_test.c
1763
if ((d = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
1784
CHECK_GOTO(BN_div(d, e, a, c, ctx));
regress/lib/libcrypto/bn/bn_test.c
1785
CHECK_GOTO(BN_sub(d, d, b));
regress/lib/libcrypto/bn/bn_test.c
1786
if (!BN_is_zero(d)) {
regress/lib/libcrypto/bn/bn_test.c
404
BIGNUM *a, *b, *c, *d, *e;
regress/lib/libcrypto/bn/bn_test.c
416
if ((d = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
424
if (BN_div(d, c, a, b, ctx)) {
regress/lib/libcrypto/bn/bn_test.c
440
CHECK_GOTO(BN_div(d, c, a, b, ctx));
regress/lib/libcrypto/bn/bn_test.c
448
CHECK_GOTO(BN_print(bp, d));
regress/lib/libcrypto/bn/bn_test.c
460
CHECK_GOTO(BN_mul(e, d, b, ctx));
regress/lib/libcrypto/bn/bn_test.c
461
CHECK_GOTO(BN_add(d, e, c));
regress/lib/libcrypto/bn/bn_test.c
462
CHECK_GOTO(BN_sub(d, d, a));
regress/lib/libcrypto/bn/bn_test.c
463
if (!BN_is_zero(d)) {
regress/lib/libcrypto/bn/bn_test.c
558
BIGNUM *a, *b, *c, *d, *e;
regress/lib/libcrypto/bn/bn_test.c
570
if ((d = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
585
CHECK_GOTO(BN_div_reciprocal(d, c, a, recp, ctx));
regress/lib/libcrypto/bn/bn_test.c
593
CHECK_GOTO(BN_print(bp, d));
regress/lib/libcrypto/bn/bn_test.c
605
CHECK_GOTO(BN_mul(e, d, b, ctx));
regress/lib/libcrypto/bn/bn_test.c
606
CHECK_GOTO(BN_add(d, e, c));
regress/lib/libcrypto/bn/bn_test.c
607
CHECK_GOTO(BN_sub(d, d, a));
regress/lib/libcrypto/bn/bn_test.c
608
if (!BN_is_zero(d)) {
regress/lib/libcrypto/bn/bn_test.c
630
BIGNUM *a, *b, *c, *d, *e;
regress/lib/libcrypto/bn/bn_test.c
642
if ((d = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
666
CHECK_GOTO(BN_div(d, e, c, a, ctx));
regress/lib/libcrypto/bn/bn_test.c
667
CHECK_GOTO(BN_sub(d, d, b));
regress/lib/libcrypto/bn/bn_test.c
668
if (!BN_is_zero(d) || !BN_is_zero(e)) {
regress/lib/libcrypto/bn/bn_test.c
684
BIGNUM *a, *c, *d, *e;
regress/lib/libcrypto/bn/bn_test.c
694
if ((d = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
713
CHECK_GOTO(BN_div(d, e, c, a, ctx));
regress/lib/libcrypto/bn/bn_test.c
714
CHECK_GOTO(BN_sub(d, d, a));
regress/lib/libcrypto/bn/bn_test.c
715
if (!BN_is_zero(d) || !BN_is_zero(e)) {
regress/lib/libcrypto/bn/bn_test.c
738
CHECK_GOTO(BN_mul(d, a, a, ctx));
regress/lib/libcrypto/bn/bn_test.c
739
if (BN_cmp(c, d)) {
regress/lib/libcrypto/bn/bn_test.c
763
CHECK_GOTO(BN_mul(d, a, a, ctx));
regress/lib/libcrypto/bn/bn_test.c
764
if (BN_cmp(c, d)) {
regress/lib/libcrypto/bn/bn_test.c
781
BIGNUM *a, *b, *c, *d, *A, *B, *n;
regress/lib/libcrypto/bn/bn_test.c
793
if ((d = BN_CTX_get(ctx)) == NULL)
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
851
CHECK_GOTO(BN_sub(d, d, A));
regress/lib/libcrypto/bn/bn_test.c
852
if (!BN_is_zero(d)) {
regress/lib/libcrypto/bn/bn_test.c
869
BIGNUM *a, *b, *c, *d, *e;
regress/lib/libcrypto/bn/bn_test.c
881
if ((d = BN_CTX_get(ctx)) == NULL)
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
932
if ((d = BN_CTX_get(ctx)) == NULL)
regress/lib/libcrypto/bn/bn_test.c
983
CHECK_GOTO(BN_mul(d, a, b, ctx));
regress/lib/libcrypto/bn/bn_test.c
984
CHECK_GOTO(BN_sub(d, d, e));
regress/lib/libcrypto/bn/bn_test.c
985
CHECK_GOTO(BN_div(a, b, d, c, ctx));
regress/lib/libcrypto/evp/evptest.c
262
const EVP_MD *d;
regress/lib/libcrypto/evp/evptest.c
267
d = EVP_get_digestbyname(digest);
regress/lib/libcrypto/evp/evptest.c
268
if (!d)
regress/lib/libcrypto/evp/evptest.c
272
printf("Testing digest %s\n",EVP_MD_name(d));
regress/lib/libcrypto/evp/evptest.c
282
if (!EVP_DigestInit_ex(ctx, d, NULL)) {
regress/lib/libcrypto/evp/evptest.c
79
unsigned char *d;
regress/lib/libcrypto/evp/evptest.c
81
for (d = s; *s; s += 2,++d) {
regress/lib/libcrypto/evp/evptest.c
93
*d = (unsigned char)n;
regress/lib/libcrypto/evp/evptest.c
95
return s - d;
regress/lib/libcrypto/lhash/lhash_test.c
102
if (lh_retrieve(lh, "d") != d) {
regress/lib/libcrypto/lhash/lhash_test.c
175
if (lh_delete(lh, "d") != d || 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
98
if (lh_insert(lh, (void *)d) != NULL || lh_error(lh) != 0) {
regress/lib/libcrypto/mlkem/mlkem_tests.c
600
CBS z, d, ek, dk;
regress/lib/libcrypto/mlkem/mlkem_tests.c
610
parse_get_cbs(p, NIST_KEYGEN_D, &d);
regress/lib/libcrypto/mlkem/mlkem_tests.c
616
if (!CBB_add_bytes(&seed_cbb, CBS_data(&d), CBS_len(&d)))
regress/lib/libcrypto/rand/randtest.c
134
d=0;
regress/lib/libcrypto/rand/randtest.c
136
d+=n2[i]*n2[i];
regress/lib/libcrypto/rand/randtest.c
137
d=(d*8)/25-500000;
regress/lib/libcrypto/rand/randtest.c
138
if (!((103 < d) && (d < 5740)))
regress/lib/libcrypto/rand/randtest.c
140
printf("test 2 failed, X=%ld.%02ld\n",d/100L,d%100L);
regress/lib/libcrypto/rand/randtest.c
76
long d;
regress/lib/libcrypto/rsa/rsa_test.c
139
static unsigned char d[] =
regress/lib/libcrypto/rsa/rsa_test.c
177
bn_d = BN_bin2bn(d, sizeof(d) - 1, NULL);
regress/lib/libcrypto/rsa/rsa_test.c
238
static unsigned char d[] =
regress/lib/libcrypto/rsa/rsa_test.c
298
bn_d = BN_bin2bn(d, sizeof(d) - 1, NULL);
regress/lib/libcrypto/rsa/rsa_test.c
42
static unsigned char d[] =
regress/lib/libcrypto/rsa/rsa_test.c
83
bn_d = BN_bin2bn(d, sizeof(d) - 1, NULL);
regress/lib/libcrypto/x509/constraints.c
463
char *d;
regress/lib/libcrypto/x509/constraints.c
582
d = "*.openbsd.org";
regress/lib/libcrypto/x509/constraints.c
584
if (!x509_constraints_domain(d, dl, c, cl)) {
regress/lib/libcrypto/x509/constraints.c
586
c, d);
regress/lib/libcrypto/x509/constraints.c
592
if (x509_constraints_domain(d, dl, c, cl)) {
regress/lib/libcrypto/x509/constraints.c
594
c, d);
regress/lib/libcrypto/x509/constraints.c
600
if (!x509_constraints_domain(d, dl, c, cl)) {
regress/lib/libcrypto/x509/constraints.c
602
c, d);
regress/lib/libcrypto/x509/constraints.c
608
d = "oopenbsd.org";
regress/lib/libcrypto/x509/constraints.c
610
if (x509_constraints_sandns(d, dl, c, cl)) {
regress/lib/libcrypto/x509/constraints.c
612
c, d);
regress/lib/libcrypto/x509/constraints.c
616
d = "*.openbsd.org";
regress/lib/libcrypto/x509/constraints.c
618
if (!x509_constraints_sandns(d, dl, c, cl)) {
regress/lib/libcrypto/x509/constraints.c
620
c, d);
regress/lib/libcrypto/x509/constraints.c
626
if (x509_constraints_sandns(d, dl, c, cl)) {
regress/lib/libcrypto/x509/constraints.c
628
c, d);
regress/lib/libcrypto/x509/constraints.c
634
if (!x509_constraints_sandns(d, dl, c, cl)) {
regress/lib/libcrypto/x509/constraints.c
636
c, d);
regress/lib/libcrypto/x509/constraints.c
646
d = ".openbsd.org";
regress/lib/libcrypto/x509/constraints.c
648
if (!x509_constraints_sandns(d, dl, c, cl)) {
regress/lib/libcrypto/x509/constraints.c
650
c, d);
regress/lib/libm/cephes/testvect.c
395
double d;
regress/lib/libm/cephes/testvect.c
400
u.d = x;
regress/lib/libm/cephes/testvect.c
417
double d;
regress/lib/libm/cephes/testvect.c
454
v.d = answer;
regress/lib/libm/cephes/testvect.c
455
u.d = y;
regress/lib/libm/cephes/testvect.c
458
if( isnan(v.d) && isnan(u.d) )
regress/lib/libm/cephes/testvect.c
497
v.d = answer;
regress/lib/libm/cephes/testvect.c
498
u.d = y;
regress/lib/libm/cephes/testvect.c
501
if( isnan(v.d) && isnan(u.d) )
regress/lib/libm/cephes/testvect.c
504
if( isnan(v.d) )
regress/lib/libm/cephes/testvect.c
505
pvec(v.d);
regress/lib/libm/cephes/testvect.c
506
if( isnan(u.d) )
regress/lib/libm/cephes/testvect.c
507
pvec(u.d);
regress/lib/libm/cephes/testvectl.c
392
long double d;
regress/lib/libm/cephes/testvectl.c
415
v.d = answer;
regress/lib/libm/cephes/testvectl.c
416
u.d = y;
regress/lib/libm/cephes/testvectl.c
420
if (__isnanl(v.d) && __isnanl(u.d))
regress/lib/libm/cephes/testvectl.c
459
v.d = answer;
regress/lib/libm/cephes/testvectl.c
460
u.d = y;
regress/lib/libm/cephes/testvectl.c
464
if (__isnanl(v.d) && __isnanl(u.d))
regress/lib/libm/cephes/testvectll.c
391
long double d;
regress/lib/libm/cephes/testvectll.c
396
u.d = x;
regress/lib/libm/cephes/testvectll.c
413
long double d;
regress/lib/libm/cephes/testvectll.c
442
v.d = answer;
regress/lib/libm/cephes/testvectll.c
443
u.d = y;
regress/lib/libm/cephes/testvectll.c
447
if (__isnanl(v.d) && __isnanl(u.d))
regress/lib/libm/cephes/testvectll.c
486
v.d = answer;
regress/lib/libm/cephes/testvectll.c
487
u.d = y;
regress/lib/libm/cephes/testvectll.c
491
if (__isnanl(v.d) && __isnanl(u.d))
regress/lib/libm/fenv/fenv.c
485
volatile double d;
regress/lib/libm/fenv/fenv.c
495
d = 0.0;
regress/lib/libm/fenv/fenv.c
496
d = 0.0 / d;
regress/lib/libm/fenv/fenv.c
499
d = 0.0;
regress/lib/libm/fenv/fenv.c
500
d = 1.0 / d;
regress/lib/libm/fenv/fenv.c
503
d = DBL_MAX;
regress/lib/libm/fenv/fenv.c
504
d *= 2.0;
regress/lib/libm/fenv/fenv.c
507
d = DBL_MIN;
regress/lib/libm/fenv/fenv.c
508
d /= DBL_MAX;
regress/lib/libm/fenv/fenv.c
511
d = DBL_MIN;
regress/lib/libm/fenv/fenv.c
512
d += 1.0;
regress/lib/libm/fenv/fenv.c
520
d = 1.0;
regress/lib/libm/fenv/fenv.c
521
d += 1.0;
regress/lib/libm/fenv/fenv.c
531
volatile double d, e;
regress/lib/libm/fenv/fenv.c
540
d = 1.0;
regress/lib/libm/fenv/fenv.c
541
d -= 1.0;
regress/lib/libm/fenv/fenv.c
542
e = copysign(1.0, d);
regress/lib/libm/fenv/fenv.c
546
d = 1.0;
regress/lib/libm/fenv/fenv.c
547
e = d + (DBL_EPSILON * 3.0 / 4.0);
regress/lib/libm/fenv/fenv.c
550
e = d + (DBL_EPSILON * 1.0 / 4.0);
regress/lib/libm/msun/csqrt_test.c
47
_csqrtf(long double complex d)
regress/lib/libm/msun/csqrt_test.c
50
return (csqrtf((float complex)d));
regress/lib/libm/msun/csqrt_test.c
54
_csqrt(long double complex d)
regress/lib/libm/msun/csqrt_test.c
57
return (csqrt((double complex)d));
regress/lib/libm/msun/fenv_test.c
103
d = 0.0;
regress/lib/libm/msun/fenv_test.c
104
d = 0.0 / d;
regress/lib/libm/msun/fenv_test.c
107
d = 0.0;
regress/lib/libm/msun/fenv_test.c
108
d = 1.0 / d;
regress/lib/libm/msun/fenv_test.c
111
d = DBL_MAX;
regress/lib/libm/msun/fenv_test.c
112
d *= 2.0;
regress/lib/libm/msun/fenv_test.c
115
d = DBL_MIN;
regress/lib/libm/msun/fenv_test.c
116
d /= DBL_MAX;
regress/lib/libm/msun/fenv_test.c
119
d = DBL_MIN;
regress/lib/libm/msun/fenv_test.c
120
d += 1.0;
regress/lib/libm/msun/fenv_test.c
128
d = 1.0;
regress/lib/libm/msun/fenv_test.c
129
d += 1.0;
regress/lib/libm/msun/fenv_test.c
139
volatile double d, e;
regress/lib/libm/msun/fenv_test.c
147
d = 1.0;
regress/lib/libm/msun/fenv_test.c
148
d -= 1.0;
regress/lib/libm/msun/fenv_test.c
149
if (copysign(1.0, d) < 0.0)
regress/lib/libm/msun/fenv_test.c
152
d = 1.0;
regress/lib/libm/msun/fenv_test.c
153
e = d + (DBL_EPSILON * 3.0 / 4.0);
regress/lib/libm/msun/fenv_test.c
156
e = d + (DBL_EPSILON * 1.0 / 4.0);
regress/lib/libm/msun/fenv_test.c
93
volatile double d;
regress/lib/libm/msun/ilogb_test.c
42
double d;
regress/lib/libm/msun/ilogb_test.c
50
d = strtod(buf, &end);
regress/lib/libm/msun/ilogb_test.c
52
i = ilogb(d);
regress/lib/libm/msun/ilogb_test.c
53
ATF_CHECK_EQ_MSG(e, i, "ilogb(%g) returned %d not %d", d, i, e);
regress/lib/libm/toint/toint.c
26
toint(double d)
regress/lib/libm/toint/toint.c
28
return (int)(d + 1);
regress/lib/libm/toint/toint.c
32
toll(double d)
regress/lib/libm/toint/toint.c
34
return (long long)d;
regress/lib/libpthread/blocked_join/blocked_join.c
32
pthread_t d, t, self = pthread_self();
regress/lib/libpthread/blocked_join/blocked_join.c
50
CHECKr(pthread_create(&d, NULL, deadlock_detector, NULL));
regress/lib/libpthread/preemption_float/preemption_float.c
53
double d, d1, d2;
regress/lib/libpthread/preemption_float/preemption_float.c
56
d = 42.0;
regress/lib/libpthread/preemption_float/preemption_float.c
57
d = log (exp (d));
regress/lib/libpthread/preemption_float/preemption_float.c
58
d = (d + 39.0) / d;
regress/lib/libpthread/preemption_float/preemption_float.c
60
d1 = d;
regress/lib/libpthread/preemption_float/preemption_float.c
62
d2 = d;
regress/lib/libpthread/preemption_float/preemption_float.c
63
d = sin(d);
regress/lib/libpthread/preemption_float/preemption_float.c
77
double d, d1, d2;
regress/lib/libpthread/preemption_float/preemption_float.c
80
d = 35.0;
regress/lib/libpthread/preemption_float/preemption_float.c
81
d *= M_PI;
regress/lib/libpthread/preemption_float/preemption_float.c
82
d /= M_LN2;
regress/lib/libpthread/preemption_float/preemption_float.c
83
d = sin (d);
regress/lib/libpthread/preemption_float/preemption_float.c
84
d = cos (1 / d);
regress/lib/libpthread/preemption_float/preemption_float.c
86
d1 = d;
regress/lib/libpthread/preemption_float/preemption_float.c
88
d2 = d;
regress/lib/libpthread/preemption_float/preemption_float.c
89
d = sin(d);
regress/lib/libpthread/stdio/stdio.c
89
double d;
regress/lib/libpthread/stdio/stdio.c
92
ASSERT(sscanf(str, "%d %lf", &i, &d) == 2);
regress/lib/libpthread/stdio/stdio.c
95
snprintf(buf, sizeof buf, "%d %2.2f", i, d);
regress/lib/libtls/verify/verifytest.c
431
alt_name->d.dNSName = alt_name_str;
regress/lib/libtls/verify/verifytest.c
434
alt_name->d.iPAddress = alt_name_str;
regress/libexec/ld.so/initfirst/test2/libad/ad.C
26
AD d;
regress/sbin/ifconfig/ifaddr.c
1277
setifprefixlen(const char *addr, int d)
regress/sbin/ifconfig/ifaddr.c
701
setifrtlabel(const char *label, int d)
regress/sbin/ifconfig/ifaddr.c
703
if (d != 0)
regress/sbin/ifconfig/ifaddr.c
793
setia6pltime(const char *val, int d)
regress/sbin/ifconfig/ifaddr.c
800
setia6vltime(const char *val, int d)
regress/sbin/iked/parser/common.c
94
uint64_t d, uint64_t *e , int f)
regress/sys/altivec_ast/vecast.c
103
double target = answer.d[i];
regress/sys/altivec_ast/vecast.c
122
answer.d[0], answer.d[1], answer.d[2],
regress/sys/altivec_ast/vecast.c
123
answer.d[3], err_den);
regress/sys/altivec_ast/vecast.c
25
double d[4];
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/btcfi/foobar.c
29
uint32_t d;
regress/sys/btcfi/foobar.c
31
asm("cpuid" : "=d" (d) : "a" (7), "c" (0));
regress/sys/btcfi/foobar.c
32
return (d & (1U << 20)) ? 1 : 0;
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/signal/sigfpe/sigfpe.c
51
double d, od;
regress/sys/kern/signal/sigfpe/sigfpe.c
54
d = 256;
regress/sys/kern/signal/sigfpe/sigfpe.c
56
od = d;
regress/sys/kern/signal/sigfpe/sigfpe.c
58
d *= d;
regress/sys/kern/signal/sigfpe/sigfpe.c
60
} while (d != od);
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/usr.bin/ctfdump/example.c
6
double d;
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_getput_basic.c
25
u_char *d, d2[32], x[] = {
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_getput_basic.c
289
ASSERT_INT_EQ(sshbuf_get_string(p1, &d, &s), 0);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_getput_basic.c
291
ASSERT_MEM_EQ(d, x, sizeof(x));
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_getput_basic.c
293
free(d);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_getput_basic.c
304
ASSERT_INT_EQ(sshbuf_get_string(p1, &d, &s), 0);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_getput_basic.c
306
ASSERT_MEM_EQ(d, x, sizeof(x));
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_getput_basic.c
308
free(d);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_getput_basic.c
320
r = sshbuf_get_string(p1, &d, &s);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_getput_basic.c
332
r = sshbuf_get_string(p1, &d, &s);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_getput_crypto.c
230
ASSERT_INT_EQ(sshbuf_get_string_direct(p1, &d, &s), 0);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_getput_crypto.c
232
ASSERT_MEM_EQ(d, expec256, sizeof(expec256));
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_getput_crypto.c
28
const u_char *d;
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
109
const u_char *d, size_t l)
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
114
ASSERT_INT_EQ(sshkey_sign(k, &sig, &len, d, l, sig_alg,
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
118
ASSERT_INT_EQ(sshkey_verify(k, sig, len, d, l, NULL, 0, NULL), 0);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
119
ASSERT_INT_NE(sshkey_verify(bad, sig, len, d, l, NULL, 0, NULL), 0);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
122
ASSERT_INT_NE(sshkey_verify(k, sig, len, d, l, NULL, 0, NULL), 0);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
128
const u_char *d, size_t l)
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
141
ASSERT_INT_EQ(sshkey_sign(k, &sig, &len, d, l, sig_alg,
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
152
const u_char *d, size_t l)
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
164
ASSERT_INT_EQ(sshkey_sign(k, &sig, &len, d, l, sig_alg,
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
167
ASSERT_INT_EQ(sshkey_verify(k, sig, len, d, l, NULL, 0, NULL), 0);
regress/usr.sbin/bgpd/unittests/rde_decide_test.c
71
uint8_t d[6];
regress/usr.sbin/bgpd/unittests/rde_decide_test.c
74
{ .x = { .len = 6, .ascnt = 2, .d = { 2, 1, 0, 0, 0, 1 } } },
regress/usr.sbin/bgpd/unittests/rde_decide_test.c
75
{ .x = { .len = 6, .ascnt = 3, .d = { 2, 1, 0, 0, 0, 1 } } },
regress/usr.sbin/bgpd/unittests/rde_decide_test.c
76
{ .x = { .len = 6, .ascnt = 2, .d = { 2, 1, 0, 0, 0, 2 } } },
regress/usr.sbin/bgpd/unittests/rde_decide_test.c
77
{ .x = { .len = 6, .ascnt = 3, .d = { 2, 1, 0, 0, 0, 2 } } },
sbin/bioctl/bioctl.c
395
int i, d, volheader, hotspare, unused;
sbin/bioctl/bioctl.c
519
for (d = 0; d < bv.bv_nodisk; d++) {
sbin/bioctl/bioctl.c
522
bd.bd_diskid = d;
sbin/bioctl/bioctl.c
729
int v, d, rv;
sbin/bioctl/bioctl.c
772
for (d = 0; d < bv.bv_nodisk; d++) {
sbin/bioctl/bioctl.c
776
bd.bd_diskid = d;
sbin/disklabel/disklabel.c
557
double d;
sbin/disklabel/disklabel.c
585
d = scale(DL_GETDSIZE(lp), unit, lp);
sbin/disklabel/disklabel.c
586
if (d > 0)
sbin/disklabel/disklabel.c
588
d, unit);
sbin/disklabel/editor.c
1100
double d;
sbin/disklabel/editor.c
1117
if (parse_sizespec(p, &d, &unit) == -1)
sbin/disklabel/editor.c
1120
rval = d;
sbin/disklabel/editor.c
1126
rval = d / lp->d_secsize;
sbin/disklabel/editor.c
1129
rval = d * lp->d_secpercyl;
sbin/disklabel/editor.c
1132
rval = DL_GETDSIZE(lp) * (d / 100.0);
sbin/disklabel/editor.c
1135
rval = maxval * (d / 100.0);
sbin/disklabel/editor.c
1138
if (apply_unit(d, *unit, &rval) == -1)
sbin/disklabel/editor.c
1829
double d = scale(sz, unit, lp);
sbin/disklabel/editor.c
1830
if (d < 0)
sbin/disklabel/editor.c
1833
printf("%.*f%c", unit == 'B' ? 0 : 1, d, unit);
sbin/dump/traverse.c
191
int d;
sbin/dump/traverse.c
225
for (d = 0 ; dirv[d] != NULL ; d++) {
sbin/dump/traverse.c
228
if (dirv[d][0] != '/')
sbin/dump/traverse.c
230
curdir, dirv[d]);
sbin/dump/traverse.c
233
dirv[d]);
sbin/fdisk/misc.c
132
double d, d2;
sbin/fdisk/misc.c
212
d = strtod(p, &endptr);
sbin/fdisk/misc.c
214
d2 = d;
sbin/fdisk/misc.c
216
d *= mult;
sbin/fdisk/misc.c
218
d /= (-mult);
sbin/fdisk/misc.c
219
d2 = d;
sbin/fdisk/misc.c
224
d = oval + d;
sbin/fdisk/misc.c
226
d = oval - d;
sbin/fdisk/misc.c
227
d2 = d;
sbin/fdisk/misc.c
230
if (saveerr == ERANGE || d > maxval || d < minval || d < d2) {
sbin/fdisk/misc.c
241
return (uint64_t)d;
sbin/fsck/preen.c
151
TAILQ_FOREACH(d, &diskh, d_entries)
sbin/fsck/preen.c
152
if (d->d_pid == pid)
sbin/fsck/preen.c
155
if (d == NULL) {
sbin/fsck/preen.c
166
p = TAILQ_FIRST(&d->d_part);
sbin/fsck/preen.c
181
TAILQ_REMOVE(&d->d_part, p, p_entries);
sbin/fsck/preen.c
191
d->d_pid = 0;
sbin/fsck/preen.c
194
if (TAILQ_EMPTY(&d->d_part))
sbin/fsck/preen.c
198
if (!TAILQ_EMPTY(&d->d_part)) {
sbin/fsck/preen.c
199
if ((ret = startdisk(d, checkit)) != 0)
sbin/fsck/preen.c
244
struct diskentry *d;
sbin/fsck/preen.c
255
TAILQ_FOREACH(d, &diskh, d_entries)
sbin/fsck/preen.c
256
if (strncmp(d->d_name, name, len) == 0 && d->d_name[len] == 0)
sbin/fsck/preen.c
257
return d;
sbin/fsck/preen.c
259
d = emalloc(sizeof(*d));
sbin/fsck/preen.c
260
d->d_name = estrdup(name);
sbin/fsck/preen.c
261
d->d_name[len] = '\0';
sbin/fsck/preen.c
262
TAILQ_INIT(&d->d_part);
sbin/fsck/preen.c
263
d->d_pid = 0;
sbin/fsck/preen.c
265
TAILQ_INSERT_TAIL(&diskh, d, d_entries);
sbin/fsck/preen.c
268
return d;
sbin/fsck/preen.c
275
struct diskentry *d;
sbin/fsck/preen.c
278
TAILQ_FOREACH(d, &diskh, d_entries) {
sbin/fsck/preen.c
279
(void) printf("disk %s: ", d->d_name);
sbin/fsck/preen.c
280
TAILQ_FOREACH(p, &d->d_part, p_entries)
sbin/fsck/preen.c
290
struct diskentry *d = finddisk(devname);
sbin/fsck/preen.c
293
TAILQ_FOREACH(p, &d->d_part, p_entries)
sbin/fsck/preen.c
305
TAILQ_INSERT_TAIL(&d->d_part, p, p_entries);
sbin/fsck/preen.c
310
startdisk(struct diskentry *d,
sbin/fsck/preen.c
313
struct partentry *p = TAILQ_FIRST(&d->d_part);
sbin/fsck/preen.c
317
p->p_auxarg, &d->d_pid)) != 0 && nrun > 0)
sbin/fsck/preen.c
79
struct diskentry *d, *nextdisk;
sbin/fsck_ext2fs/pass5.c
148
for (i = 0, d = dbase;
sbin/fsck_ext2fs/pass5.c
149
d < dmax;
sbin/fsck_ext2fs/pass5.c
150
d ++, i ++) {
sbin/fsck_ext2fs/pass5.c
151
if (testbmap(d) || d >= sblock.e2fs.e2fs_bcount) {
sbin/fsck_ext2fs/pass5.c
56
daddr32_t d;
sbin/fsck_ffs/pass2.c
468
daddr_t d;
sbin/fsck_ffs/pass2.c
470
d = (* (struct inoinfo **) inpp1)->i_blks[0] -
sbin/fsck_ffs/pass2.c
472
if (d < 0)
sbin/fsck_ffs/pass2.c
474
else if (d > 0)
sbin/fsck_ffs/pass5.c
176
for (d = fs->fs_size; d < dmax; d++)
sbin/fsck_ffs/pass5.c
177
setbmap(d);
sbin/fsck_ffs/pass5.c
266
for (i = 0, d = dbase;
sbin/fsck_ffs/pass5.c
267
d < dmax;
sbin/fsck_ffs/pass5.c
268
d += fs->fs_frag, i += fs->fs_frag) {
sbin/fsck_ffs/pass5.c
271
if (testbmap(d + j))
sbin/fsck_ffs/pass5.c
69
daddr_t d;
sbin/fsck_msdos/dir.c
254
struct dosDirEntry *d, *nd;
sbin/fsck_msdos/dir.c
261
for (d = rootDir; d; d = nd) {
sbin/fsck_msdos/dir.c
262
if ((nd = d->child) != NULL) {
sbin/fsck_msdos/dir.c
263
d->child = 0;
sbin/fsck_msdos/dir.c
266
if (!(nd = d->next))
sbin/fsck_msdos/dir.c
267
nd = d->parent;
sbin/fsck_msdos/dir.c
268
freeDosDirEntry(d);
sbin/fsck_msdos/dir.c
415
struct dosDirEntry dirent, *d;
sbin/fsck_msdos/dir.c
800
if (!(d = newDosDirEntry())) {
sbin/fsck_msdos/dir.c
804
(void)memcpy(d, &dirent, sizeof(struct dosDirEntry));
sbin/fsck_msdos/dir.c
806
dir->child = d;
sbin/fsck_msdos/dir.c
814
n->dir = d;
sbin/fsck_msdos/dir.c
898
struct dosDirEntry d;
sbin/fsck_msdos/dir.c
949
(void)memset(&d, 0, sizeof d);
sbin/fsck_msdos/dir.c
950
snprintf(d.name, sizeof d.name, "%u", head);
sbin/fsck_msdos/dir.c
951
d.flags = 0;
sbin/fsck_msdos/dir.c
952
d.head = head;
sbin/fsck_msdos/dir.c
953
d.size = fat[head].length * boot->ClusterSize;
sbin/fsck_msdos/dir.c
957
(void)memcpy(p, d.name, strlen(d.name));
sbin/fsck_msdos/dir.c
958
p[26] = (u_char)d.head;
sbin/fsck_msdos/dir.c
959
p[27] = (u_char)(d.head >> 8);
sbin/fsck_msdos/dir.c
961
p[20] = (u_char)(d.head >> 16);
sbin/fsck_msdos/dir.c
962
p[21] = (u_char)(d.head >> 24);
sbin/fsck_msdos/dir.c
964
p[28] = (u_char)d.size;
sbin/fsck_msdos/dir.c
965
p[29] = (u_char)(d.size >> 8);
sbin/fsck_msdos/dir.c
966
p[30] = (u_char)(d.size >> 16);
sbin/fsck_msdos/dir.c
967
p[31] = (u_char)(d.size >> 24);
sbin/growfs/growfs.c
1041
for (d = sblock.fs_csaddr; d + sblock.fs_frag <=
sbin/growfs/growfs.c
1043
d += sblock.fs_frag) {
sbin/growfs/growfs.c
1045
(d%sblock.fs_fpg)/sblock.fs_frag);
sbin/growfs/growfs.c
1050
(d % sblock.fs_fpg) / sblock.fs_frag);
sbin/growfs/growfs.c
1058
if (d < sblock.fs_csaddr + (sblock.fs_cssize / sblock.fs_fsize)) {
sbin/growfs/growfs.c
1059
for (; d - sblock.fs_csaddr <
sbin/growfs/growfs.c
1061
d++) {
sbin/growfs/growfs.c
1062
clrbit(cg_blksfree(&acg), d%sblock.fs_fpg);
sbin/growfs/growfs.c
1072
(d%sblock.fs_fpg) / sblock.fs_frag);
sbin/growfs/growfs.c
1075
frag_adjust(d % sblock.fs_fpg, 1);
sbin/growfs/growfs.c
1131
for (d = odupper; ((d < dupper) && (d % sblock.fs_frag)); d++) {
sbin/growfs/growfs.c
1132
if (isclr(cg_blksfree(&acg), d)) {
sbin/growfs/growfs.c
1134
bp[ind].old = d / sblock.fs_frag;
sbin/growfs/growfs.c
1136
if (roundup(d, sblock.fs_frag) >= dupper)
sbin/growfs/growfs.c
1141
clrbit(cg_blksfree(&acg), d);
sbin/growfs/growfs.c
1158
for (; d + sblock.fs_frag <= dupper; d += sblock.fs_frag) {
sbin/growfs/growfs.c
1159
if (!isblock(&sblock, cg_blksfree(&acg), d / sblock.fs_frag)) {
sbin/growfs/growfs.c
1160
for (f = d; f < d + sblock.fs_frag; f++) {
sbin/growfs/growfs.c
1166
clrblock(&sblock, cg_blksfree(&acg), d / sblock.fs_frag);
sbin/growfs/growfs.c
1167
bp[ind].old = d / sblock.fs_frag;
sbin/growfs/growfs.c
1170
clrblock(&sblock, cg_blksfree(&acg), d / sblock.fs_frag);
sbin/growfs/growfs.c
1174
clrbit(cg_clustersfree(&acg), d / sblock.fs_frag);
sbin/growfs/growfs.c
1175
for (lcs = 0, l = (d / sblock.fs_frag) + 1;
sbin/growfs/growfs.c
1197
if (d < dupper) {
sbin/growfs/growfs.c
1200
if (isblock(&sblock, cg_blksfree(&acg), d / sblock.fs_frag)) {
sbin/growfs/growfs.c
1206
clrbit(cg_clustersfree(&acg), d / sblock.fs_frag);
sbin/growfs/growfs.c
1207
for (lcs = 0, l = (d / sblock.fs_frag) + 1;
sbin/growfs/growfs.c
1221
for (; d < dupper; d++) {
sbin/growfs/growfs.c
1222
if (isclr(cg_blksfree(&acg), d)) {
sbin/growfs/growfs.c
1223
bp[ind].old = d / sblock.fs_frag;
sbin/growfs/growfs.c
1226
clrbit(cg_blksfree(&acg), d);
sbin/growfs/growfs.c
1419
daddr_t d, blkno;
sbin/growfs/growfs.c
1450
for (d = 0; (d < dlower && blkno == -1); d += sblock.fs_frag) {
sbin/growfs/growfs.c
1451
if (d >= csmin && d <= csmax) {
sbin/growfs/growfs.c
1455
d))) {
sbin/growfs/growfs.c
1456
blkno = fragstoblks(&sblock, d);/* Yeah found a block */
sbin/growfs/growfs.c
1460
for (d = dupper; (d < dmax && blkno == -1); d += sblock.fs_frag) {
sbin/growfs/growfs.c
1461
if (d >= csmin && d <= csmax) {
sbin/growfs/growfs.c
1465
d))) {
sbin/growfs/growfs.c
1466
blkno = fragstoblks(&sblock, d);/* Yeah found a block */
sbin/growfs/growfs.c
1478
d = blkstofrags(&sblock, blkno);
sbin/growfs/growfs.c
1523
return (d);
sbin/growfs/growfs.c
324
daddr_t d, dlower, dupper, blkno, start;
sbin/growfs/growfs.c
413
for (d = 0; d < dlower; d += sblock.fs_frag) {
sbin/growfs/growfs.c
414
blkno = d / sblock.fs_frag;
sbin/growfs/growfs.c
425
for (d = dupper + sblock.fs_frag - i; dupper < d; dupper++) {
sbin/growfs/growfs.c
430
for (d = dupper; d + sblock.fs_frag <= acg.cg_ndblk;
sbin/growfs/growfs.c
431
d += sblock.fs_frag) {
sbin/growfs/growfs.c
432
blkno = d / sblock.fs_frag;
sbin/growfs/growfs.c
438
if (d < acg.cg_ndblk) {
sbin/growfs/growfs.c
439
acg.cg_frsum[acg.cg_ndblk - d]++;
sbin/growfs/growfs.c
440
for (; d < acg.cg_ndblk; d++) {
sbin/growfs/growfs.c
441
setbit(cg_blksfree(&acg), d);
sbin/growfs/growfs.c
846
daddr_t cbase, dupper, odupper, d, f, g;
sbin/growfs/growfs.c
916
d = osblock.fs_csaddr + (osblock.fs_cssize / osblock.fs_fsize);
sbin/growfs/growfs.c
924
for (block = howmany(d % sblock.fs_fpg, sblock.fs_frag),
sbin/growfs/growfs.c
935
d--;
sbin/growfs/growfs.c
937
if ((d + 1) % sblock.fs_frag) {
sbin/growfs/growfs.c
942
frag_adjust(d % sblock.fs_fpg, -1);
sbin/growfs/growfs.c
943
for (; (d + 1) % sblock.fs_frag; d--) {
sbin/growfs/growfs.c
944
setbit(cg_blksfree(&acg), d % sblock.fs_fpg);
sbin/growfs/growfs.c
952
d++;
sbin/growfs/growfs.c
953
frag_adjust(d % sblock.fs_fpg, 1);
sbin/growfs/growfs.c
956
(d % sblock.fs_fpg) / sblock.fs_frag)) {
sbin/growfs/growfs.c
963
(d % sblock.fs_fpg) / sblock.fs_frag);
sbin/growfs/growfs.c
978
d--;
sbin/growfs/growfs.c
981
for (d = rounddown(d, sblock.fs_frag); d >= osblock.fs_csaddr;
sbin/growfs/growfs.c
982
d -= sblock.fs_frag) {
sbin/growfs/growfs.c
984
(d % sblock.fs_fpg) / sblock.fs_frag);
sbin/growfs/growfs.c
989
(d % sblock.fs_fpg) / sblock.fs_frag);
sbin/ifconfig/brconfig.c
1009
bridge_deladdr(const char *addr, int d)
sbin/ifconfig/brconfig.c
103
setdiscover(const char *val, int d)
sbin/ifconfig/brconfig.c
1069
bridge_delendpoint(const char *addr, int d)
sbin/ifconfig/brconfig.c
109
unsetdiscover(const char *val, int d)
sbin/ifconfig/brconfig.c
115
setblocknonip(const char *val, int d)
sbin/ifconfig/brconfig.c
1157
bridge_vaddrs(const char *cmd, int d)
sbin/ifconfig/brconfig.c
1164
bridge_addrs(const char *delim, int d)
sbin/ifconfig/brconfig.c
121
unsetblocknonip(const char *val, int d)
sbin/ifconfig/brconfig.c
1214
bridge_holdcnt(const char *value, int d)
sbin/ifconfig/brconfig.c
127
setlearn(const char *val, int d)
sbin/ifconfig/brconfig.c
133
unsetlearn(const char *val, int d)
sbin/ifconfig/brconfig.c
139
setlocked(const char *val, int d)
sbin/ifconfig/brconfig.c
1411
bridge_flushrule(const char *ifsname, int d)
sbin/ifconfig/brconfig.c
145
unsetlocked(const char *val, int d)
sbin/ifconfig/brconfig.c
151
setpvptags(const char *val, int d)
sbin/ifconfig/brconfig.c
157
unsetpvptags(const char *val, int d)
sbin/ifconfig/brconfig.c
163
setstp(const char *val, int d)
sbin/ifconfig/brconfig.c
169
unsetstp(const char *val, int d)
sbin/ifconfig/brconfig.c
1694
bridge_rulefile(const char *fname, int d)
sbin/ifconfig/brconfig.c
175
setedge(const char *val, int d)
sbin/ifconfig/brconfig.c
181
unsetedge(const char *val, int d)
sbin/ifconfig/brconfig.c
187
setautoedge(const char *val, int d)
sbin/ifconfig/brconfig.c
193
unsetautoedge(const char *val, int d)
sbin/ifconfig/brconfig.c
199
setptp(const char *val, int d)
sbin/ifconfig/brconfig.c
205
unsetptp(const char *val, int d)
sbin/ifconfig/brconfig.c
211
setautoptp(const char *val, int d)
sbin/ifconfig/brconfig.c
217
unsetautoptp(const char *val, int d)
sbin/ifconfig/brconfig.c
223
addlocal(const char *ifsname, int d)
sbin/ifconfig/brconfig.c
410
bridge_add(const char *ifn, int d)
sbin/ifconfig/brconfig.c
424
bridge_delete(const char *ifn, int d)
sbin/ifconfig/brconfig.c
435
bridge_addspan(const char *ifn, int d)
sbin/ifconfig/brconfig.c
449
bridge_delspan(const char *ifn, int d)
sbin/ifconfig/brconfig.c
460
bridge_timeout(const char *arg, int d)
sbin/ifconfig/brconfig.c
475
bridge_maxage(const char *arg, int d)
sbin/ifconfig/brconfig.c
490
bridge_priority(const char *arg, int d)
sbin/ifconfig/brconfig.c
537
bridge_unprotect(const char *ifsname, int d)
sbin/ifconfig/brconfig.c
581
bridge_unpvid(const char *ifsname, int d)
sbin/ifconfig/brconfig.c
699
bridge_unset_vidmap(const char *ifsname, int d)
sbin/ifconfig/brconfig.c
735
bridge_pvlan_primary(const char *primary, int d)
sbin/ifconfig/brconfig.c
741
bridge_unpvlan_primary(const char *primary, int d)
sbin/ifconfig/brconfig.c
802
bridge_proto(const char *arg, int d)
sbin/ifconfig/brconfig.c
822
bridge_fwddelay(const char *arg, int d)
sbin/ifconfig/brconfig.c
838
bridge_hellotime(const char *arg, int d)
sbin/ifconfig/brconfig.c
854
bridge_maxaddr(const char *arg, int d)
sbin/ifconfig/brconfig.c
903
bridge_noifcost(const char *ifsname, int d)
sbin/ifconfig/ifconfig.c
1364
setifrtlabel(const char *label, int d)
sbin/ifconfig/ifconfig.c
1366
if (d != 0)
sbin/ifconfig/ifconfig.c
1521
setia6pltime(const char *val, int d)
sbin/ifconfig/ifconfig.c
1528
setia6vltime(const char *val, int d)
sbin/ifconfig/ifconfig.c
1641
setifmtu(const char *val, int d)
sbin/ifconfig/ifconfig.c
1655
setifllprio(const char *val, int d)
sbin/ifconfig/ifconfig.c
1810
setifnwid(const char *val, int d)
sbin/ifconfig/ifconfig.c
1823
if (d != 0) {
sbin/ifconfig/ifconfig.c
1853
setifjoin(const char *val, int d)
sbin/ifconfig/ifconfig.c
1865
if (d != 0) {
sbin/ifconfig/ifconfig.c
1884
delifjoin(const char *val, int d)
sbin/ifconfig/ifconfig.c
1893
if (d == -1) {
sbin/ifconfig/ifconfig.c
1912
delifjoinlist(const char *val, int d)
sbin/ifconfig/ifconfig.c
1925
setifbssid(const char *val, int d)
sbin/ifconfig/ifconfig.c
1931
if (d != 0) {
sbin/ifconfig/ifconfig.c
1949
setifnwkey(const char *val, int d)
sbin/ifconfig/ifconfig.c
1960
if (d == -1) {
sbin/ifconfig/ifconfig.c
2048
setifwpa(const char *val, int d)
sbin/ifconfig/ifconfig.c
2055
wpa.i_enabled = d;
sbin/ifconfig/ifconfig.c
2058
join.i_wpaparams.i_enabled = d;
sbin/ifconfig/ifconfig.c
2068
setifwpaprotos(const char *val, int d)
sbin/ifconfig/ifconfig.c
2108
setifwpaakms(const char *val, int d)
sbin/ifconfig/ifconfig.c
2173
setifwpaciphers(const char *val, int d)
sbin/ifconfig/ifconfig.c
2209
setifwpagroupcipher(const char *val, int d)
sbin/ifconfig/ifconfig.c
2235
setifwpakey(const char *val, int d)
sbin/ifconfig/ifconfig.c
2243
if (d != -1) {
sbin/ifconfig/ifconfig.c
2309
setifchan(const char *val, int d)
sbin/ifconfig/ifconfig.c
2321
if (d != 0)
sbin/ifconfig/ifconfig.c
2338
setifscan(const char *val, int d)
sbin/ifconfig/ifconfig.c
2348
setifnwflag(const char *val, int d)
sbin/ifconfig/ifconfig.c
2365
if (d)
sbin/ifconfig/ifconfig.c
2375
unsetifnwflag(const char *val, int d)
sbin/ifconfig/ifconfig.c
2381
setifpowersave(const char *val, int d)
sbin/ifconfig/ifconfig.c
2392
if (d != -1 && val != NULL) {
sbin/ifconfig/ifconfig.c
2398
power.i_enabled = d == -1 ? 0 : 1;
sbin/ifconfig/ifconfig.c
2926
setmedia(const char *val, int d)
sbin/ifconfig/ifconfig.c
2969
setmediamode(const char *val, int d)
sbin/ifconfig/ifconfig.c
2991
unsetmediamode(const char *val, int d)
sbin/ifconfig/ifconfig.c
3012
setmediaopt(const char *val, int d)
sbin/ifconfig/ifconfig.c
3031
unsetmediaopt(const char *val, int d)
sbin/ifconfig/ifconfig.c
3055
setmediainst(const char *val, int d)
sbin/ifconfig/ifconfig.c
3603
setifprefixlen(const char *addr, int d)
sbin/ifconfig/ifconfig.c
4081
setmplslabel(const char *val, int d)
sbin/ifconfig/ifconfig.c
4097
unsetmplslabel(const char *val, int d)
sbin/ifconfig/ifconfig.c
4127
setpwe3cw(const char *val, int d)
sbin/ifconfig/ifconfig.c
4133
unsetpwe3cw(const char *val, int d)
sbin/ifconfig/ifconfig.c
4139
setpwe3fat(const char *val, int d)
sbin/ifconfig/ifconfig.c
4145
unsetpwe3fat(const char *val, int d)
sbin/ifconfig/ifconfig.c
4191
unsetpwe3neighbor(const char *val, int d)
sbin/ifconfig/ifconfig.c
4205
transceiver(const char *value, int d)
sbin/ifconfig/ifconfig.c
4211
transceiverdump(const char *value, int d)
sbin/ifconfig/ifconfig.c
4346
settxprio(const char *val, int d)
sbin/ifconfig/ifconfig.c
4384
setrxprio(const char *val, int d)
sbin/ifconfig/ifconfig.c
4490
settrunkport(const char *val, int d)
sbin/ifconfig/ifconfig.c
4503
unsettrunkport(const char *val, int d)
sbin/ifconfig/ifconfig.c
4517
settrunkproto(const char *val, int d)
sbin/ifconfig/ifconfig.c
4541
settrunklacpmode(const char *val, int d)
sbin/ifconfig/ifconfig.c
4574
settrunklacptimeout(const char *val, int d)
sbin/ifconfig/ifconfig.c
4766
setcarp_passwd(const char *val, int d)
sbin/ifconfig/ifconfig.c
4784
setcarp_vhid(const char *val, int d)
sbin/ifconfig/ifconfig.c
4808
setcarp_advskew(const char *val, int d)
sbin/ifconfig/ifconfig.c
4831
setcarp_advbase(const char *val, int d)
sbin/ifconfig/ifconfig.c
4854
setcarppeer(const char *val, int d)
sbin/ifconfig/ifconfig.c
4887
unsetcarppeer(const char *val, int d)
sbin/ifconfig/ifconfig.c
4904
setcarp_state(const char *val, int d)
sbin/ifconfig/ifconfig.c
4927
setcarpdev(const char *val, int d)
sbin/ifconfig/ifconfig.c
4944
setcarp_nodes(const char *val, int d)
sbin/ifconfig/ifconfig.c
4988
setcarp_balancing(const char *val, int d)
sbin/ifconfig/ifconfig.c
5013
setpfsync_syncdev(const char *val, int d)
sbin/ifconfig/ifconfig.c
5030
unsetpfsync_syncdev(const char *val, int d)
sbin/ifconfig/ifconfig.c
5047
setpfsync_syncpeer(const char *val, int d)
sbin/ifconfig/ifconfig.c
5080
unsetpfsync_syncpeer(const char *val, int d)
sbin/ifconfig/ifconfig.c
5097
setpfsync_maxupd(const char *val, int d)
sbin/ifconfig/ifconfig.c
5120
setpfsync_defer(const char *val, int d)
sbin/ifconfig/ifconfig.c
5130
preq.pfsyncr_defer = d;
sbin/ifconfig/ifconfig.c
5290
setpflow_sender(const char *val, int d)
sbin/ifconfig/ifconfig.c
5304
unsetpflow_sender(const char *val, int d)
sbin/ifconfig/ifconfig.c
5316
setpflow_receiver(const char *val, int d)
sbin/ifconfig/ifconfig.c
5330
unsetpflow_receiver(const char *val, int d)
sbin/ifconfig/ifconfig.c
5343
setpflowproto(const char *val, int d)
sbin/ifconfig/ifconfig.c
5441
setpppoe_dev(const char *val, int d)
sbin/ifconfig/ifconfig.c
5456
setpppoe_svc(const char *val, int d)
sbin/ifconfig/ifconfig.c
5464
if (d == 0)
sbin/ifconfig/ifconfig.c
5474
setpppoe_ac(const char *val, int d)
sbin/ifconfig/ifconfig.c
5482
if (d == 0)
sbin/ifconfig/ifconfig.c
5492
spppauthinfo(struct sauthreq *spa, int d)
sbin/ifconfig/ifconfig.c
5497
spa->cmd = d == 0 ? SPPPIOGMAUTH : SPPPIOGHAUTH;
sbin/ifconfig/ifconfig.c
5514
setspppproto(const char *val, int d)
sbin/ifconfig/ifconfig.c
5518
spppauthinfo(&spa, d);
sbin/ifconfig/ifconfig.c
5529
spa.cmd = d == 0 ? SPPPIOSMAUTH : SPPPIOSHAUTH;
sbin/ifconfig/ifconfig.c
5535
setsppppeerproto(const char *val, int d)
sbin/ifconfig/ifconfig.c
5541
setspppname(const char *val, int d)
sbin/ifconfig/ifconfig.c
5545
spppauthinfo(&spa, d);
sbin/ifconfig/ifconfig.c
5552
spa.cmd = d == 0 ? SPPPIOSMAUTH : SPPPIOSHAUTH;
sbin/ifconfig/ifconfig.c
5558
setsppppeername(const char *val, int d)
sbin/ifconfig/ifconfig.c
5564
setspppkey(const char *val, int d)
sbin/ifconfig/ifconfig.c
5568
spppauthinfo(&spa, d);
sbin/ifconfig/ifconfig.c
5575
spa.cmd = d == 0 ? SPPPIOSMAUTH : SPPPIOSHAUTH;
sbin/ifconfig/ifconfig.c
5581
setsppppeerkey(const char *val, int d)
sbin/ifconfig/ifconfig.c
5587
setsppppeerflag(const char *val, int d)
sbin/ifconfig/ifconfig.c
5603
if (d)
sbin/ifconfig/ifconfig.c
5614
unsetsppppeerflag(const char *val, int d)
sbin/ifconfig/ifconfig.c
5723
unsetkeepalive(const char *val, int d)
sbin/ifconfig/ifconfig.c
6319
umb_setpin(const char *pin, int d)
sbin/ifconfig/ifconfig.c
6363
umb_apn(const char *apn, int d)
sbin/ifconfig/ifconfig.c
6372
if (d != 0)
sbin/ifconfig/ifconfig.c
6383
umb_setclass(const char *val, int d)
sbin/ifconfig/ifconfig.c
6398
if (d != -1)
sbin/ifconfig/ifconfig.c
6407
umb_roaming(const char *val, int d)
sbin/ifconfig/ifconfig.c
6415
mp.roaming = d;
sbin/ifconfig/ifconfig.c
6822
setpair(const char *val, int d)
sbin/ifconfig/ifconfig.c
6834
unsetpair(const char *val, int d)
sbin/ifconfig/sff.c
472
const uint8_t *d = sff->sff_data;
sbin/ifconfig/sff.c
476
ch = d[start];
sbin/ifconfig/sff.c
488
ch = d[end];
sbin/ifconfig/sff.c
497
vis(dst, d[start], VIS_TAB | VIS_NL, 0);
sbin/ifconfig/sff.c
508
const uint8_t *d = sff->sff_data + start;
sbin/ifconfig/sff.c
513
if (!isdigit(d[i])) {
sbin/ifconfig/sff.c
521
d[0], d[1], d[2], d[3], d[4], d[5], trailer);
sbin/ifconfig/sff.c
527
const uint8_t *d = sff->sff_data + start;
sbin/ifconfig/sff.c
529
return (d[0] << 8 | d[1]);
sbin/ifconfig/sff.c
535
const uint8_t *d = sff->sff_data + start;
sbin/ifconfig/sff.c
537
return (d[0] << 8 | d[1]);
sbin/ifconfig/sff.c
543
const uint8_t *d = sff->sff_data + start;
sbin/ifconfig/sff.c
545
int power = d[0] << 8 | d[1];
sbin/ifconfig/sff.c
888
hexdump(const void *d, size_t datalen)
sbin/ifconfig/sff.c
890
const uint8_t *data = d;
sbin/iked/ca.c
1418
uint8_t *d = NULL;
sbin/iked/ca.c
1428
len = BIO_get_mem_data(out, &d);
sbin/iked/ca.c
1429
buf = ibuf_new(d, len);
sbin/iked/ca.c
1440
uint8_t *d;
sbin/iked/ca.c
1458
d = ibuf_data(id->id_buf);
sbin/iked/ca.c
1459
if (i2d_RSAPublicKey(rsa, &d) != len) {
sbin/iked/ca.c
1480
d = ibuf_data(id->id_buf);
sbin/iked/ca.c
1481
if (i2d_EC_PUBKEY(ec, &d) != len) {
sbin/iked/ca.c
1509
uint8_t *d;
sbin/iked/ca.c
1527
d = ibuf_data(id->id_buf);
sbin/iked/ca.c
1528
if (i2d_RSAPrivateKey(rsa, &d) != len) {
sbin/iked/ca.c
1549
d = ibuf_data(id->id_buf);
sbin/iked/ca.c
1550
if (i2d_ECPrivateKey(ec, &d) != len) {
sbin/iked/ca.c
2040
cstr = entry->d.dNSName;
sbin/iked/ca.c
2046
cstr = entry->d.rfc822Name;
sbin/iked/ca.c
2052
cstr = entry->d.iPAddress;
sbin/isakmpd/log.c
600
udp_cksum(struct packhdr *hdr, const struct udphdr *u, u_int16_t *d)
sbin/isakmpd/log.c
664
sp = d;
sbin/isakmpd/message.c
1729
} d;
sbin/isakmpd/message.c
1794
args.u.d.nspis = 1;
sbin/isakmpd/message.c
1800
args.u.d.spis = sa->cookies;
sbin/isakmpd/message.c
1807
args.u.d.spis = proto->spi[1];
sbin/isakmpd/message.c
1860
sz = ISAKMP_DELETE_SPI_OFF + args->u.d.nspis * args->spi_sz;
sbin/isakmpd/message.c
1894
SET_ISAKMP_DELETE_NSPIS(buf, args->u.d.nspis);
sbin/isakmpd/message.c
1895
memcpy(buf + ISAKMP_DELETE_SPI_OFF, args->u.d.spis,
sbin/isakmpd/message.c
1896
args->u.d.nspis * args->spi_sz);
sbin/newfs/mkfs.c
1007
wtfs(d, sblock.fs_bsize, iobuf);
sbin/newfs/mkfs.c
624
u_int i, j, d, dlower, dupper, blkno, start;
sbin/newfs/mkfs.c
691
for (d = 0; d < dlower; d += sblock.fs_frag) {
sbin/newfs/mkfs.c
692
blkno = d / sblock.fs_frag;
sbin/newfs/mkfs.c
696
cg_blktot(&acg)[cbtocylno(&sblock, d)]++;
sbin/newfs/mkfs.c
697
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
sbin/newfs/mkfs.c
698
[cbtorpos(&sblock, d)]++;
sbin/newfs/mkfs.c
704
for (d = dupper + sblock.fs_frag - i; dupper < d; dupper++) {
sbin/newfs/mkfs.c
709
for (d = dupper;
sbin/newfs/mkfs.c
710
d + sblock.fs_frag <= acg.cg_ndblk;
sbin/newfs/mkfs.c
711
d += sblock.fs_frag) {
sbin/newfs/mkfs.c
712
blkno = d / sblock.fs_frag;
sbin/newfs/mkfs.c
716
cg_blktot(&acg)[cbtocylno(&sblock, d)]++;
sbin/newfs/mkfs.c
717
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
sbin/newfs/mkfs.c
718
[cbtorpos(&sblock, d)]++;
sbin/newfs/mkfs.c
721
if (d < acg.cg_ndblk) {
sbin/newfs/mkfs.c
722
acg.cg_frsum[acg.cg_ndblk - d]++;
sbin/newfs/mkfs.c
723
for (; d < acg.cg_ndblk; d++) {
sbin/newfs/mkfs.c
724
setbit(cg_blksfree(&acg), d);
sbin/newfs/mkfs.c
921
daddr_t d, blkno;
sbin/newfs/mkfs.c
933
for (d = 0; d < acg.cg_ndblk; d += sblock.fs_frag)
sbin/newfs/mkfs.c
934
if (isblock(&sblock, cg_blksfree(&acg), d / sblock.fs_frag))
sbin/newfs/mkfs.c
939
blkno = fragstoblks(&sblock, d);
sbin/newfs/mkfs.c
950
cg_blktot(&acg)[cbtocylno(&sblock, d)]--;
sbin/newfs/mkfs.c
951
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
sbin/newfs/mkfs.c
952
[cbtorpos(&sblock, d)]--;
sbin/newfs/mkfs.c
961
setbit(cg_blksfree(&acg), d + i);
sbin/newfs/mkfs.c
965
return (d);
sbin/newfs/mkfs.c
974
daddr_t d;
sbin/newfs/mkfs.c
997
d = fsbtodb(&sblock, ino_to_fsba(&sblock, ino));
sbin/newfs/mkfs.c
998
rdfs(d, sblock.fs_bsize, iobuf);
sbin/newfs_ext2fs/mke2fs.c
1297
daddr32_t d;
sbin/newfs_ext2fs/mke2fs.c
1340
d = fsbtodb(&sblock, ino_to_fsba(&sblock, ino));
sbin/newfs_ext2fs/mke2fs.c
1341
rdfs(d, sblock.e2fs_bsize, bp);
sbin/newfs_ext2fs/mke2fs.c
1354
wtfs(d, sblock.e2fs_bsize, bp);
sbin/pfctl/parse.y
1541
$$.d = 0;
sbin/pfctl/parse.y
1558
$$.d = ul;
sbin/pfctl/parse.y
320
u_int d;
sbin/pfctl/parse.y
4810
qspec.realtime.d = opts->realtime.d;
sbin/pfctl/parse.y
4816
qspec.linkshare.d = opts->linkshare.d;
sbin/pfctl/parse.y
4822
qspec.upperlimit.d = opts->upperlimit.d;
sbin/pfctl/pfctl.c
186
#define INDENT(d, o) do { \
sbin/pfctl/pfctl.c
189
for (i=0; i < d; i++) \
sbin/pfctl/pfctl.c
2657
pfctl_set_debug(struct pfctl *pf, char *d)
sbin/pfctl/pfctl.c
2662
if ((loglevel = string_to_loglevel(d)) >= 0)
sbin/pfctl/pfctl.c
2665
warnx("unknown debug level \"%s\"", d);
sbin/pfctl/pfctl.c
2676
printf("set debug %s\n", d);
sbin/pfctl/pfctl_parser.c
1292
if (sc->d) {
sbin/pfctl/pfctl_parser.c
1295
printf(" for %ums", sc->d);
sbin/pfctl/pfctl_parser.h
173
u_int d; /* x-projection of m1; msec */
sbin/pfctl/pfctl_radix.c
64
int d;
sbin/pfctl/pfctl_radix.c
66
if ((d = strncmp(p->pfrkt_name, q->pfrkt_name, PF_TABLE_NAME_SIZE)))
sbin/pfctl/pfctl_radix.c
67
return (d);
sbin/scsi/libscsi.c
1007
char *d;
sbin/scsi/libscsi.c
1035
d = "Data in";
sbin/scsi/libscsi.c
1037
d = "Data out";
sbin/scsi/libscsi.c
1039
d = "No data transfer?";
sbin/scsi/libscsi.c
1046
scsi_dump(f, d,
sbin/unwind/libunbound/dnscrypt/dnscrypt.h
137
size_t dnsc_shared_secrets_sizefunc(void *k, void *d);
sbin/unwind/libunbound/dnscrypt/dnscrypt.h
152
void dnsc_shared_secrets_deldatafunc(void* d, void* arg);
sbin/unwind/libunbound/dnscrypt/dnscrypt.h
157
size_t dnsc_nonces_sizefunc(void *k, void *d);
sbin/unwind/libunbound/dnscrypt/dnscrypt.h
172
void dnsc_nonces_deldatafunc(void* d, void* arg);
sbin/unwind/libunbound/iterator/iter_delegpt.c
488
struct packed_rrset_data* d=(struct packed_rrset_data*)ak->entry.data;
sbin/unwind/libunbound/iterator/iter_delegpt.c
495
for(i=0; i<d->count; i++) {
sbin/unwind/libunbound/iterator/iter_delegpt.c
496
if(d->rr_len[i] != 2 + INET_SIZE)
sbin/unwind/libunbound/iterator/iter_delegpt.c
498
memmove(&sa.sin_addr, d->rr_data[i]+2, INET_SIZE);
sbin/unwind/libunbound/iterator/iter_delegpt.c
501
len, (d->security==sec_status_bogus), lame, additions))
sbin/unwind/libunbound/iterator/iter_delegpt.c
511
struct packed_rrset_data* d=(struct packed_rrset_data*)ak->entry.data;
sbin/unwind/libunbound/iterator/iter_delegpt.c
518
for(i=0; i<d->count; i++) {
sbin/unwind/libunbound/iterator/iter_delegpt.c
519
if(d->rr_len[i] != 2 + INET6_SIZE) /* rdatalen + len of IP6 */
sbin/unwind/libunbound/iterator/iter_delegpt.c
521
memmove(&sa.sin6_addr, d->rr_data[i]+2, INET6_SIZE);
sbin/unwind/libunbound/iterator/iter_delegpt.c
524
len, (d->security==sec_status_bogus), lame, additions))
sbin/unwind/libunbound/iterator/iter_priv.c
221
uint8_t* d, uint16_t data_len, struct sockaddr_storage* addr,
sbin/unwind/libunbound/iterator/iter_priv.c
231
memmove(&sa.sin_addr, d, LDNS_IP4ADDRLEN);
sbin/unwind/libunbound/iterator/iter_priv.c
236
d += LDNS_IP4ADDRLEN;
sbin/unwind/libunbound/iterator/iter_priv.c
254
uint8_t* d, uint16_t data_len, struct sockaddr_storage* addr,
sbin/unwind/libunbound/iterator/iter_priv.c
264
memmove(&sa.sin6_addr, d, LDNS_IP6ADDRLEN);
sbin/unwind/libunbound/iterator/iter_priv.c
269
d += LDNS_IP6ADDRLEN;
sbin/unwind/libunbound/iterator/iter_priv.c
290
uint8_t* d = rr->ttl_data;
sbin/unwind/libunbound/iterator/iter_priv.c
293
d += 4; /* skip TTL */
sbin/unwind/libunbound/iterator/iter_priv.c
294
rdatalen = sldns_read_uint16(d); /* read rdata length */
sbin/unwind/libunbound/iterator/iter_priv.c
295
d += 2;
sbin/unwind/libunbound/iterator/iter_priv.c
299
d += 2; /* skip priority */
sbin/unwind/libunbound/iterator/iter_priv.c
302
sldns_buffer_set_position(pkt, (size_t)(d - sldns_buffer_begin(pkt)));
sbin/unwind/libunbound/iterator/iter_priv.c
311
d += dname_compr_len; /* skip target */
sbin/unwind/libunbound/iterator/iter_priv.c
315
svcparamkey = sldns_read_uint16(d);
sbin/unwind/libunbound/iterator/iter_priv.c
316
data_len = sldns_read_uint16(d+2);
sbin/unwind/libunbound/iterator/iter_priv.c
317
d += 4;
sbin/unwind/libunbound/iterator/iter_priv.c
331
if(svcb_ipv4hint_contains_priv_addr(priv, d, data_len,
sbin/unwind/libunbound/iterator/iter_priv.c
335
if(svcb_ipv6hint_contains_priv_addr(priv, d, data_len,
sbin/unwind/libunbound/iterator/iter_priv.c
339
d += data_len;
sbin/unwind/libunbound/iterator/iter_scrub.c
847
struct packed_rrset_data* d;
sbin/unwind/libunbound/iterator/iter_scrub.c
859
d = (struct packed_rrset_data*)k->entry.data;
sbin/unwind/libunbound/iterator/iter_scrub.c
860
packed_rrset_ttl_add(d, now);
sbin/unwind/libunbound/iterator/iter_utils.c
129
caps_free(struct rbnode_type* n, void* ATTR_UNUSED(d))
sbin/unwind/libunbound/iterator/iter_utils.c
1434
void iter_dec_attempts(struct delegpt* dp, int d, int outbound_msg_retry)
sbin/unwind/libunbound/iterator/iter_utils.c
1442
if(a->attempts > d)
sbin/unwind/libunbound/iterator/iter_utils.c
1443
a->attempts -= d;
sbin/unwind/libunbound/iterator/iter_utils.h
373
void iter_dec_attempts(struct delegpt* dp, int d, int outbound_msg_retry);
sbin/unwind/libunbound/iterator/iterator.c
4002
struct ub_packed_rrset_key** dest, **d;
sbin/unwind/libunbound/iterator/iterator.c
4018
d = dest;
sbin/unwind/libunbound/iterator/iterator.c
4042
to->rep->rrsets = d;
sbin/unwind/libunbound/libunbound/libunbound.c
534
ub_ctx_debuglevel(struct ub_ctx* ctx, int d)
sbin/unwind/libunbound/libunbound/libunbound.c
537
verbosity = d;
sbin/unwind/libunbound/libunbound/libunbound.c
538
ctx->env->cfg->verbosity = d;
sbin/unwind/libunbound/libunbound/libworker.c
503
struct packed_rrset_data* d =
sbin/unwind/libunbound/libunbound/libworker.c
506
if((int)d->ttl < res->ttl)
sbin/unwind/libunbound/libunbound/libworker.c
507
res->ttl = (int)d->ttl;
sbin/unwind/libunbound/libunbound/unbound.h
472
int ub_ctx_debuglevel(struct ub_ctx* ctx, int d);
sbin/unwind/libunbound/respip/respip.c
499
struct packed_rrset_data* d;
sbin/unwind/libunbound/respip/respip.c
534
d = regional_alloc_zero(region, dsize);
sbin/unwind/libunbound/respip/respip.c
535
if(!d)
sbin/unwind/libunbound/respip/respip.c
537
*d = *data;
sbin/unwind/libunbound/respip/respip.c
538
d->rrsig_count = 0;
sbin/unwind/libunbound/respip/respip.c
539
ck->entry.data = d;
sbin/unwind/libunbound/respip/respip.c
542
d->rr_len = (size_t*)((uint8_t*)d + sizeof(struct packed_rrset_data));
sbin/unwind/libunbound/respip/respip.c
543
d->rr_data = (uint8_t**)&(d->rr_len[d->count]);
sbin/unwind/libunbound/respip/respip.c
544
d->rr_ttl = (time_t*)&(d->rr_data[d->count]);
sbin/unwind/libunbound/respip/respip.c
545
nextrdata = (uint8_t*)&(d->rr_ttl[d->count]);
sbin/unwind/libunbound/respip/respip.c
546
for(i=0; i<d->count; i++) {
sbin/unwind/libunbound/respip/respip.c
547
d->rr_len[i] = data->rr_len[i];
sbin/unwind/libunbound/respip/respip.c
548
d->rr_ttl[i] = data->rr_ttl[i];
sbin/unwind/libunbound/respip/respip.c
549
d->rr_data[i] = nextrdata;
sbin/unwind/libunbound/respip/respip.c
550
memcpy(d->rr_data[i], data->rr_data[i], data->rr_len[i]);
sbin/unwind/libunbound/respip/respip.c
551
nextrdata += d->rr_len[i];
sbin/unwind/libunbound/services/authzone.c
1000
d->ttl = d->rr_ttl[j];
sbin/unwind/libunbound/services/authzone.c
1006
rrset->data = d;
sbin/unwind/libunbound/services/authzone.c
166
struct packed_rrset_data* d = (struct packed_rrset_data*)
sbin/unwind/libunbound/services/authzone.c
168
return d->ttl;
sbin/unwind/libunbound/services/authzone.c
2007
struct packed_rrset_data* d;
sbin/unwind/libunbound/services/authzone.c
2023
d = soa->data;
sbin/unwind/libunbound/services/authzone.c
2024
*serial = sldns_read_uint32(d->rr_data[0]+(d->rr_len[0]-20));
sbin/unwind/libunbound/services/authzone.c
2034
struct packed_rrset_data* d;
sbin/unwind/libunbound/services/authzone.c
2052
d = soa->data;
sbin/unwind/libunbound/services/authzone.c
2054
xfr->serial = sldns_read_uint32(d->rr_data[0]+(d->rr_len[0]-20));
sbin/unwind/libunbound/services/authzone.c
2055
xfr->refresh = sldns_read_uint32(d->rr_data[0]+(d->rr_len[0]-16));
sbin/unwind/libunbound/services/authzone.c
2056
xfr->retry = sldns_read_uint32(d->rr_data[0]+(d->rr_len[0]-12));
sbin/unwind/libunbound/services/authzone.c
2057
xfr->expiry = sldns_read_uint32(d->rr_data[0]+(d->rr_len[0]-8));
sbin/unwind/libunbound/services/authzone.c
2567
struct packed_rrset_data* d = rrset->data;
sbin/unwind/libunbound/services/authzone.c
2569
if(!d) return 0;
sbin/unwind/libunbound/services/authzone.c
2570
for(i=0; i<d->count; i++) {
sbin/unwind/libunbound/services/authzone.c
2574
if(d->rr_len[i] < 2+offset)
sbin/unwind/libunbound/services/authzone.c
2576
if(!(dlen = dname_valid(d->rr_data[i]+2+offset,
sbin/unwind/libunbound/services/authzone.c
2577
d->rr_len[i]-2-offset)))
sbin/unwind/libunbound/services/authzone.c
2579
domain = az_find_name(z, d->rr_data[i]+2+offset, dlen);
sbin/unwind/libunbound/services/authzone.c
2601
struct packed_rrset_data* d;
sbin/unwind/libunbound/services/authzone.c
2613
d = (struct packed_rrset_data*)msg->rep->rrsets[msg->rep->rrset_count-1]->entry.data;
sbin/unwind/libunbound/services/authzone.c
2615
if(d->count == 0) return 0;
sbin/unwind/libunbound/services/authzone.c
2616
if(d->rr_len[0] < 2+4) return 0;
sbin/unwind/libunbound/services/authzone.c
2617
minimum = (time_t)sldns_read_uint32(d->rr_data[0]+(d->rr_len[0]-4));
sbin/unwind/libunbound/services/authzone.c
2618
minimum = d->ttl<minimum?d->ttl:minimum;
sbin/unwind/libunbound/services/authzone.c
2619
d->ttl = minimum;
sbin/unwind/libunbound/services/authzone.c
2620
for(i=0; i < d->count + d->rrsig_count; i++)
sbin/unwind/libunbound/services/authzone.c
2621
d->rr_ttl[i] = minimum;
sbin/unwind/libunbound/services/authzone.c
2688
struct packed_rrset_data* d;
sbin/unwind/libunbound/services/authzone.c
2726
d = (struct packed_rrset_data*)regional_alloc_zero(region,
sbin/unwind/libunbound/services/authzone.c
2730
if(!d)
sbin/unwind/libunbound/services/authzone.c
2732
(*cname)->entry.data = d;
sbin/unwind/libunbound/services/authzone.c
2733
d->ttl = dname->data->ttl; /* RFC6672: synth CNAME TTL == DNAME TTL */
sbin/unwind/libunbound/services/authzone.c
2734
d->count = 1;
sbin/unwind/libunbound/services/authzone.c
2735
d->rrsig_count = 0;
sbin/unwind/libunbound/services/authzone.c
2736
d->trust = rrset_trust_ans_noAA;
sbin/unwind/libunbound/services/authzone.c
2737
d->rr_len = (size_t*)((uint8_t*)d +
sbin/unwind/libunbound/services/authzone.c
2739
d->rr_len[0] = newlen + sizeof(uint16_t);
sbin/unwind/libunbound/services/authzone.c
2740
packed_rrset_ptr_fixup(d);
sbin/unwind/libunbound/services/authzone.c
2741
d->rr_ttl[0] = d->ttl;
sbin/unwind/libunbound/services/authzone.c
2742
sldns_write_uint16(d->rr_data[0], newlen);
sbin/unwind/libunbound/services/authzone.c
2743
memmove(d->rr_data[0] + sizeof(uint16_t), buf, newlen);
sbin/unwind/libunbound/services/authzone.c
3195
struct packed_rrset_data* d)
sbin/unwind/libunbound/services/authzone.c
3204
if(d->count == 0) break; /* no CNAME */
sbin/unwind/libunbound/services/authzone.c
3205
if(d->rr_len[0] < 2+1) break; /* too small */
sbin/unwind/libunbound/services/authzone.c
3206
if((clen=dname_valid(d->rr_data[0]+2, d->rr_len[0]-2))==0)
sbin/unwind/libunbound/services/authzone.c
3208
if(!dname_subdomain_c(d->rr_data[0]+2, z->name))
sbin/unwind/libunbound/services/authzone.c
3210
if((node = az_find_name(z, d->rr_data[0]+2, clen))==NULL)
sbin/unwind/libunbound/services/authzone.c
3221
d = rrset->data;
sbin/unwind/libunbound/services/authzone.c
688
az_rrset_find_rrsig(struct packed_rrset_data* d, uint8_t* rdata, size_t len,
sbin/unwind/libunbound/services/authzone.c
692
for(i=d->count; i<d->count + d->rrsig_count; i++) {
sbin/unwind/libunbound/services/authzone.c
693
if(d->rr_len[i] != len)
sbin/unwind/libunbound/services/authzone.c
695
if(memcmp(d->rr_data[i], rdata, len) == 0) {
sbin/unwind/libunbound/services/authzone.c
705
rdata_duplicate(struct packed_rrset_data* d, uint8_t* rdata, size_t len)
sbin/unwind/libunbound/services/authzone.c
708
for(i=0; i<d->count + d->rrsig_count; i++) {
sbin/unwind/libunbound/services/authzone.c
709
if(d->rr_len[i] != len)
sbin/unwind/libunbound/services/authzone.c
711
if(memcmp(d->rr_data[i], rdata, len) == 0)
sbin/unwind/libunbound/services/authzone.c
735
struct packed_rrset_data* d, *old = rrset->data;
sbin/unwind/libunbound/services/authzone.c
739
d = (struct packed_rrset_data*)calloc(1, packed_rrset_sizeof(old) - (
sbin/unwind/libunbound/services/authzone.c
742
if(!d) {
sbin/unwind/libunbound/services/authzone.c
746
d->ttl = old->ttl;
sbin/unwind/libunbound/services/authzone.c
747
d->count = old->count;
sbin/unwind/libunbound/services/authzone.c
748
d->rrsig_count = old->rrsig_count;
sbin/unwind/libunbound/services/authzone.c
749
if(index < d->count) d->count--;
sbin/unwind/libunbound/services/authzone.c
750
else d->rrsig_count--;
sbin/unwind/libunbound/services/authzone.c
751
d->trust = old->trust;
sbin/unwind/libunbound/services/authzone.c
752
d->security = old->security;
sbin/unwind/libunbound/services/authzone.c
755
d->rr_len = (size_t*)((uint8_t*)d +
sbin/unwind/libunbound/services/authzone.c
758
memmove(d->rr_len, old->rr_len, (index)*sizeof(size_t));
sbin/unwind/libunbound/services/authzone.c
760
memmove(&d->rr_len[index], &old->rr_len[index+1],
sbin/unwind/libunbound/services/authzone.c
762
packed_rrset_ptr_fixup(d);
sbin/unwind/libunbound/services/authzone.c
766
memmove(d->rr_ttl, old->rr_ttl, (index)*sizeof(time_t));
sbin/unwind/libunbound/services/authzone.c
768
memmove(&d->rr_ttl[index], &old->rr_ttl[index+1],
sbin/unwind/libunbound/services/authzone.c
772
for(i=0; i<d->count+d->rrsig_count; i++) {
sbin/unwind/libunbound/services/authzone.c
776
memmove(d->rr_data[i], old->rr_data[oldi], d->rr_len[i]);
sbin/unwind/libunbound/services/authzone.c
780
if(d->count + d->rrsig_count > 0)
sbin/unwind/libunbound/services/authzone.c
781
d->ttl = d->rr_ttl[0];
sbin/unwind/libunbound/services/authzone.c
782
for(i=0; i<d->count+d->rrsig_count; i++) {
sbin/unwind/libunbound/services/authzone.c
783
if(d->rr_ttl[i] < d->ttl)
sbin/unwind/libunbound/services/authzone.c
784
d->ttl = d->rr_ttl[i];
sbin/unwind/libunbound/services/authzone.c
788
rrset->data = d;
sbin/unwind/libunbound/services/authzone.c
798
struct packed_rrset_data* d, *old = rrset->data;
sbin/unwind/libunbound/services/authzone.c
801
d = (struct packed_rrset_data*)calloc(1, packed_rrset_sizeof(old)
sbin/unwind/libunbound/services/authzone.c
804
if(!d) {
sbin/unwind/libunbound/services/authzone.c
809
memcpy(d, old, sizeof(struct packed_rrset_data));
sbin/unwind/libunbound/services/authzone.c
811
d->count++;
sbin/unwind/libunbound/services/authzone.c
813
d->rrsig_count++;
sbin/unwind/libunbound/services/authzone.c
816
total = d->count + d->rrsig_count;
sbin/unwind/libunbound/services/authzone.c
818
d->rr_len = (size_t*)((uint8_t*)d +
sbin/unwind/libunbound/services/authzone.c
821
memmove(d->rr_len, old->rr_len, old->count*sizeof(size_t));
sbin/unwind/libunbound/services/authzone.c
823
memmove(d->rr_len+d->count, old->rr_len+old->count,
sbin/unwind/libunbound/services/authzone.c
826
d->rr_len[d->count-1] = rdatalen;
sbin/unwind/libunbound/services/authzone.c
827
else d->rr_len[total-1] = rdatalen;
sbin/unwind/libunbound/services/authzone.c
828
packed_rrset_ptr_fixup(d);
sbin/unwind/libunbound/services/authzone.c
829
if((time_t)rr_ttl < d->ttl)
sbin/unwind/libunbound/services/authzone.c
830
d->ttl = rr_ttl;
sbin/unwind/libunbound/services/authzone.c
834
memmove(d->rr_ttl, old->rr_ttl, old->count*sizeof(time_t));
sbin/unwind/libunbound/services/authzone.c
837
memmove(d->rr_data[0], old->rr_data[0],
sbin/unwind/libunbound/services/authzone.c
842
memmove(d->rr_ttl+d->count, old->rr_ttl+old->count,
sbin/unwind/libunbound/services/authzone.c
844
memmove(d->rr_data[d->count], old->rr_data[old->count],
sbin/unwind/libunbound/services/authzone.c
851
d->rr_ttl[d->count-1] = rr_ttl;
sbin/unwind/libunbound/services/authzone.c
852
memmove(d->rr_data[d->count-1], rdata, rdatalen);
sbin/unwind/libunbound/services/authzone.c
854
d->rr_ttl[total-1] = rr_ttl;
sbin/unwind/libunbound/services/authzone.c
855
memmove(d->rr_data[total-1], rdata, rdatalen);
sbin/unwind/libunbound/services/authzone.c
858
rrset->data = d;
sbin/unwind/libunbound/services/authzone.c
871
struct packed_rrset_data* d;
sbin/unwind/libunbound/services/authzone.c
879
d = (struct packed_rrset_data*)calloc(1,
sbin/unwind/libunbound/services/authzone.c
882
if(!d) {
sbin/unwind/libunbound/services/authzone.c
887
rrset->data = d;
sbin/unwind/libunbound/services/authzone.c
888
d->ttl = rr_ttl;
sbin/unwind/libunbound/services/authzone.c
889
d->trust = rrset_trust_prim_noglue;
sbin/unwind/libunbound/services/authzone.c
890
d->rr_len = (size_t*)((uint8_t*)d + sizeof(struct packed_rrset_data));
sbin/unwind/libunbound/services/authzone.c
891
d->rr_data = (uint8_t**)&(d->rr_len[1]);
sbin/unwind/libunbound/services/authzone.c
892
d->rr_ttl = (time_t*)&(d->rr_data[1]);
sbin/unwind/libunbound/services/authzone.c
893
d->rr_data[0] = (uint8_t*)&(d->rr_ttl[1]);
sbin/unwind/libunbound/services/authzone.c
896
d->rr_len[0] = rdatalen;
sbin/unwind/libunbound/services/authzone.c
897
d->rr_ttl[0] = rr_ttl;
sbin/unwind/libunbound/services/authzone.c
898
memmove(d->rr_data[0], rdata, rdatalen);
sbin/unwind/libunbound/services/authzone.c
899
d->count++;
sbin/unwind/libunbound/services/authzone.c
920
struct packed_rrset_data* d = rrsig->data;
sbin/unwind/libunbound/services/authzone.c
923
log_assert(d && rrsig->type == LDNS_RR_TYPE_RRSIG);
sbin/unwind/libunbound/services/authzone.c
924
for(i=0; i<d->count+d->rrsig_count; i++) {
sbin/unwind/libunbound/services/authzone.c
925
if(rrsig_rdata_get_type_covered(d->rr_data[i],
sbin/unwind/libunbound/services/authzone.c
926
d->rr_len[i]) == rr_type) {
sbin/unwind/libunbound/services/authzone.c
928
(*sigsz) += d->rr_len[i];
sbin/unwind/libunbound/services/authzone.c
942
struct packed_rrset_data* d, *sigd;
sbin/unwind/libunbound/services/authzone.c
954
d = (struct packed_rrset_data*)calloc(1, packed_rrset_sizeof(old)
sbin/unwind/libunbound/services/authzone.c
957
if(!d) {
sbin/unwind/libunbound/services/authzone.c
963
memcpy(d, old, sizeof(struct packed_rrset_data));
sbin/unwind/libunbound/services/authzone.c
964
d->rrsig_count += sigs;
sbin/unwind/libunbound/services/authzone.c
966
d->rr_len = (size_t*)((uint8_t*)d +
sbin/unwind/libunbound/services/authzone.c
969
memmove(d->rr_len, old->rr_len, total*sizeof(size_t));
sbin/unwind/libunbound/services/authzone.c
970
j = d->count+d->rrsig_count-sigs;
sbin/unwind/libunbound/services/authzone.c
974
d->rr_len[j] = sigold->rr_len[i];
sbin/unwind/libunbound/services/authzone.c
978
packed_rrset_ptr_fixup(d);
sbin/unwind/libunbound/services/authzone.c
982
memmove(d->rr_ttl, old->rr_ttl, total*sizeof(time_t));
sbin/unwind/libunbound/services/authzone.c
985
memmove(d->rr_data[0], old->rr_data[0],
sbin/unwind/libunbound/services/authzone.c
991
j = d->count+d->rrsig_count-sigs;
sbin/unwind/libunbound/services/authzone.c
996
d->rr_ttl[j] = sigold->rr_ttl[i];
sbin/unwind/libunbound/services/authzone.c
997
memmove(d->rr_data[j], sigold->rr_data[i],
sbin/unwind/libunbound/services/authzone.c
999
if(d->rr_ttl[j] < d->ttl)
sbin/unwind/libunbound/services/cache/dns.c
1047
struct packed_rrset_data *d = (struct packed_rrset_data*)
sbin/unwind/libunbound/services/cache/dns.c
1049
if(d->trust != rrset_trust_add_noAA &&
sbin/unwind/libunbound/services/cache/dns.c
1050
d->trust != rrset_trust_add_AA &&
sbin/unwind/libunbound/services/cache/dns.c
1052
(d->trust != rrset_trust_auth_noAA
sbin/unwind/libunbound/services/cache/dns.c
1053
&& d->trust != rrset_trust_auth_AA) )) {
sbin/unwind/libunbound/services/cache/dns.c
295
struct packed_rrset_data* d = rrset->entry.data;
sbin/unwind/libunbound/services/cache/dns.c
298
UPDATE_TTL_FROM_RRSET(msg->rep->ttl, d->ttl);
sbin/unwind/libunbound/services/cache/dns.c
481
struct packed_rrset_data* d = rrset->entry.data;
sbin/unwind/libunbound/services/cache/dns.c
484
UPDATE_TTL_FROM_RRSET(msg->rep->ttl, d->ttl);
sbin/unwind/libunbound/services/cache/dns.c
529
struct packed_rrset_data* d = rrset->entry.data;
sbin/unwind/libunbound/services/cache/dns.c
534
UPDATE_TTL_FROM_RRSET(msg->rep->ttl, d->ttl);
sbin/unwind/libunbound/services/cache/dns.c
542
struct packed_rrset_data* d = rrset->entry.data;
sbin/unwind/libunbound/services/cache/dns.c
547
UPDATE_TTL_FROM_RRSET(msg->rep->ttl, d->ttl);
sbin/unwind/libunbound/services/cache/dns.c
681
struct packed_rrset_data* d;
sbin/unwind/libunbound/services/cache/dns.c
688
d = msg->rep->rrsets[i]->entry.data;
sbin/unwind/libunbound/services/cache/dns.c
689
UPDATE_TTL_FROM_RRSET(msg->rep->ttl, d->ttl);
sbin/unwind/libunbound/services/cache/dns.c
747
struct packed_rrset_data* d = (struct packed_rrset_data*)
sbin/unwind/libunbound/services/cache/dns.c
749
if(TTL_IS_EXPIRED(d->ttl, now))
sbin/unwind/libunbound/services/cache/dns.c
757
msg->rep->ttl = d->ttl - now;
sbin/unwind/libunbound/services/cache/dns.c
780
struct packed_rrset_data* newd, *d = (struct packed_rrset_data*)
sbin/unwind/libunbound/services/cache/dns.c
785
if(TTL_IS_EXPIRED(d->ttl, now)) {
sbin/unwind/libunbound/services/cache/dns.c
791
rr_ttl = d->ttl - now;
sbin/unwind/libunbound/services/cache/dns.c
795
*sec_status = d->security;
sbin/unwind/libunbound/services/cache/dns.c
909
struct packed_rrset_data *d;
sbin/unwind/libunbound/services/cache/dns.c
914
d = (struct packed_rrset_data*)rrset->entry.data;
sbin/unwind/libunbound/services/cache/dns.c
915
if(d->trust == rrset_trust_add_noAA ||
sbin/unwind/libunbound/services/cache/dns.c
916
d->trust == rrset_trust_auth_noAA ||
sbin/unwind/libunbound/services/cache/dns.c
917
d->trust == rrset_trust_add_AA ||
sbin/unwind/libunbound/services/cache/dns.c
918
d->trust == rrset_trust_auth_AA) {
sbin/unwind/libunbound/services/cache/infra.c
1006
free(d);
sbin/unwind/libunbound/services/cache/infra.c
1012
k->entry.data = d;
sbin/unwind/libunbound/services/cache/infra.c
1013
d->qps[0] = 1;
sbin/unwind/libunbound/services/cache/infra.c
1014
d->timestamp[0] = timenow;
sbin/unwind/libunbound/services/cache/infra.c
1015
slabhash_insert(infra->domain_rates, h, &k->entry, d, NULL);
sbin/unwind/libunbound/services/cache/infra.c
1025
struct ip_rate_data* d = (struct ip_rate_data*)calloc(1, sizeof(*d));
sbin/unwind/libunbound/services/cache/infra.c
1026
if(!k || !d) {
sbin/unwind/libunbound/services/cache/infra.c
1028
free(d);
sbin/unwind/libunbound/services/cache/infra.c
1036
k->entry.data = d;
sbin/unwind/libunbound/services/cache/infra.c
1037
d->qps[0] = 1;
sbin/unwind/libunbound/services/cache/infra.c
1038
d->timestamp[0] = timenow;
sbin/unwind/libunbound/services/cache/infra.c
1039
d->mesh_wait = mesh_wait;
sbin/unwind/libunbound/services/cache/infra.c
1040
slabhash_insert(infra->client_ip_rates, h, &k->entry, d, NULL);
sbin/unwind/libunbound/services/cache/infra.c
1047
struct rate_data* d = (struct rate_data*)data;
sbin/unwind/libunbound/services/cache/infra.c
1050
if(d->timestamp[i] == t)
sbin/unwind/libunbound/services/cache/infra.c
1051
return &(d->qps[i]);
sbin/unwind/libunbound/services/cache/infra.c
1057
if(d->timestamp[i] < d->timestamp[oldest])
sbin/unwind/libunbound/services/cache/infra.c
1060
d->timestamp[oldest] = t;
sbin/unwind/libunbound/services/cache/infra.c
1061
d->qps[oldest] = 0;
sbin/unwind/libunbound/services/cache/infra.c
1062
return &(d->qps[oldest]);
sbin/unwind/libunbound/services/cache/infra.c
1081
struct rate_data* d = (struct rate_data*)data;
sbin/unwind/libunbound/services/cache/infra.c
1085
if(now-d->timestamp[i] <= RATE_WINDOW &&
sbin/unwind/libunbound/services/cache/infra.c
1086
d->qps[i] > max) {
sbin/unwind/libunbound/services/cache/infra.c
1087
max = d->qps[i];
sbin/unwind/libunbound/services/cache/infra.c
1090
if(now == d->timestamp[i]) {
sbin/unwind/libunbound/services/cache/infra.c
1091
return d->qps[i];
sbin/unwind/libunbound/services/cache/infra.c
117
infra_deldatafunc(void* d, void* ATTR_UNUSED(arg))
sbin/unwind/libunbound/services/cache/infra.c
119
struct infra_data* data = (struct infra_data*)d;
sbin/unwind/libunbound/services/cache/infra.c
124
rate_sizefunc(void* k, void* ATTR_UNUSED(d))
sbin/unwind/libunbound/services/cache/infra.c
1281
struct rate_data* d = (struct rate_data*)entry->data;
sbin/unwind/libunbound/services/cache/infra.c
1282
int mesh_wait = d->mesh_wait;
sbin/unwind/libunbound/services/cache/infra.c
1316
struct rate_data* d = (struct rate_data*)entry->data;
sbin/unwind/libunbound/services/cache/infra.c
1317
d->mesh_wait++;
sbin/unwind/libunbound/services/cache/infra.c
1337
struct rate_data* d = (struct rate_data*)entry->data;
sbin/unwind/libunbound/services/cache/infra.c
1338
if(d->mesh_wait > 0)
sbin/unwind/libunbound/services/cache/infra.c
1339
d->mesh_wait--;
sbin/unwind/libunbound/services/cache/infra.c
156
rate_deldatafunc(void* d, void* ATTR_UNUSED(arg))
sbin/unwind/libunbound/services/cache/infra.c
158
struct rate_data* data = (struct rate_data*)d;
sbin/unwind/libunbound/services/cache/infra.c
169
struct domain_limit_data* d;
sbin/unwind/libunbound/services/cache/infra.c
180
d = (struct domain_limit_data*)name_tree_find(domain_limits, nm,
sbin/unwind/libunbound/services/cache/infra.c
182
if(d) {
sbin/unwind/libunbound/services/cache/infra.c
184
return d;
sbin/unwind/libunbound/services/cache/infra.c
188
d = (struct domain_limit_data*)calloc(1, sizeof(*d));
sbin/unwind/libunbound/services/cache/infra.c
189
if(!d) {
sbin/unwind/libunbound/services/cache/infra.c
193
d->node.node.key = &d->node;
sbin/unwind/libunbound/services/cache/infra.c
194
d->node.name = nm;
sbin/unwind/libunbound/services/cache/infra.c
195
d->node.len = nmlen;
sbin/unwind/libunbound/services/cache/infra.c
196
d->node.labs = labs;
sbin/unwind/libunbound/services/cache/infra.c
197
d->node.dclass = LDNS_RR_CLASS_IN;
sbin/unwind/libunbound/services/cache/infra.c
198
d->lim = -1;
sbin/unwind/libunbound/services/cache/infra.c
199
d->below = -1;
sbin/unwind/libunbound/services/cache/infra.c
200
if(!name_tree_insert(domain_limits, &d->node, nm, nmlen, labs,
sbin/unwind/libunbound/services/cache/infra.c
204
free(d);
sbin/unwind/libunbound/services/cache/infra.c
207
return d;
sbin/unwind/libunbound/services/cache/infra.c
215
struct domain_limit_data* d;
sbin/unwind/libunbound/services/cache/infra.c
217
d = domain_limit_findcreate(domain_limits, p->str);
sbin/unwind/libunbound/services/cache/infra.c
218
if(!d)
sbin/unwind/libunbound/services/cache/infra.c
220
d->lim = atoi(p->str2);
sbin/unwind/libunbound/services/cache/infra.c
223
d = domain_limit_findcreate(domain_limits, p->str);
sbin/unwind/libunbound/services/cache/infra.c
224
if(!d)
sbin/unwind/libunbound/services/cache/infra.c
226
d->below = atoi(p->str2);
sbin/unwind/libunbound/services/cache/infra.c
249
struct wait_limit_netblock_info* d;
sbin/unwind/libunbound/services/cache/infra.c
257
d = (struct wait_limit_netblock_info*)addr_tree_find(tree, &addr,
sbin/unwind/libunbound/services/cache/infra.c
259
if(d)
sbin/unwind/libunbound/services/cache/infra.c
260
return d;
sbin/unwind/libunbound/services/cache/infra.c
263
d = (struct wait_limit_netblock_info*)calloc(1, sizeof(*d));
sbin/unwind/libunbound/services/cache/infra.c
264
if(!d)
sbin/unwind/libunbound/services/cache/infra.c
266
d->limit = -1;
sbin/unwind/libunbound/services/cache/infra.c
267
if(!addr_tree_insert(tree, &d->node, &addr, addrlen, net)) {
sbin/unwind/libunbound/services/cache/infra.c
269
free(d);
sbin/unwind/libunbound/services/cache/infra.c
272
return d;
sbin/unwind/libunbound/services/cache/infra.c
282
struct wait_limit_netblock_info* d;
sbin/unwind/libunbound/services/cache/infra.c
284
d = wait_limit_netblock_findcreate(wait_limits_netblock,
sbin/unwind/libunbound/services/cache/infra.c
286
if(!d)
sbin/unwind/libunbound/services/cache/infra.c
288
d->limit = atoi(p->str2);
sbin/unwind/libunbound/services/cache/infra.c
291
d = wait_limit_netblock_findcreate(wait_limits_cookie_netblock,
sbin/unwind/libunbound/services/cache/infra.c
293
if(!d)
sbin/unwind/libunbound/services/cache/infra.c
295
d->limit = atoi(p->str2);
sbin/unwind/libunbound/services/cache/infra.c
304
struct wait_limit_netblock_info* d;
sbin/unwind/libunbound/services/cache/infra.c
305
d = wait_limit_netblock_findcreate(tree, str);
sbin/unwind/libunbound/services/cache/infra.c
306
if(!d)
sbin/unwind/libunbound/services/cache/infra.c
308
d->limit = limit;
sbin/unwind/libunbound/services/cache/infra.c
82
infra_sizefunc(void* k, void* ATTR_UNUSED(d))
sbin/unwind/libunbound/services/cache/infra.c
921
struct domain_limit_data* d = (struct domain_limit_data*)
sbin/unwind/libunbound/services/cache/infra.c
924
if(!d) return infra_dp_ratelimit;
sbin/unwind/libunbound/services/cache/infra.c
926
if(d->node.labs == labs && d->lim != -1)
sbin/unwind/libunbound/services/cache/infra.c
927
return d->lim; /* exact match */
sbin/unwind/libunbound/services/cache/infra.c
930
if(d->node.labs == labs)
sbin/unwind/libunbound/services/cache/infra.c
931
d = (struct domain_limit_data*)d->node.parent;
sbin/unwind/libunbound/services/cache/infra.c
932
while(d) {
sbin/unwind/libunbound/services/cache/infra.c
933
if(d->below != -1)
sbin/unwind/libunbound/services/cache/infra.c
934
return d->below;
sbin/unwind/libunbound/services/cache/infra.c
935
d = (struct domain_limit_data*)d->node.parent;
sbin/unwind/libunbound/services/cache/infra.c
940
size_t ip_rate_sizefunc(void* k, void* ATTR_UNUSED(d))
sbin/unwind/libunbound/services/cache/infra.c
996
struct rate_data* d = (struct rate_data*)calloc(1, sizeof(*d));
sbin/unwind/libunbound/services/cache/infra.c
997
if(!k || !d) {
sbin/unwind/libunbound/services/cache/infra.c
999
free(d);
sbin/unwind/libunbound/services/cache/infra.h
471
size_t infra_sizefunc(void* k, void* d);
sbin/unwind/libunbound/services/cache/infra.h
480
void infra_deldatafunc(void* d, void* arg);
sbin/unwind/libunbound/services/cache/infra.h
483
size_t rate_sizefunc(void* k, void* d);
sbin/unwind/libunbound/services/cache/infra.h
492
void rate_deldatafunc(void* d, void* arg);
sbin/unwind/libunbound/services/cache/infra.h
495
size_t ip_rate_sizefunc(void* k, void* d);
sbin/unwind/libunbound/services/cache/infra.h
501
void ip_rate_delkeyfunc(void* d, void* arg);
sbin/unwind/libunbound/services/cache/rrset.c
270
struct packed_rrset_data* d = (struct packed_rrset_data*)
sbin/unwind/libunbound/services/cache/rrset.c
273
if(!d || !d->rrsig_count)
sbin/unwind/libunbound/services/cache/rrset.c
275
for(i=0; i<d->rrsig_count; i++) {
sbin/unwind/libunbound/services/cache/rrset.c
278
rrsig_get_signer(d->rr_data[d->count+i], d->rr_len[d->count+i],
sbin/unwind/libunbound/services/cache/rrset.c
377
struct packed_rrset_data* d;
sbin/unwind/libunbound/services/cache/rrset.c
382
d = ref[i].key->entry.data;
sbin/unwind/libunbound/services/cache/rrset.c
384
TTL_IS_EXPIRED(d->ttl, timenow)) {
sbin/unwind/libunbound/services/listen_dnsport.c
3664
struct doq_conn* d = (struct doq_conn*)key2;
sbin/unwind/libunbound/services/listen_dnsport.c
3674
if(c->key.paddr.addrlen != d->key.paddr.addrlen) {
sbin/unwind/libunbound/services/listen_dnsport.c
3675
if(c->key.paddr.addrlen < d->key.paddr.addrlen)
sbin/unwind/libunbound/services/listen_dnsport.c
3679
if((r=memcmp(&c->key.paddr.addr, &d->key.paddr.addr,
sbin/unwind/libunbound/services/listen_dnsport.c
3682
if(c->key.paddr.localaddrlen != d->key.paddr.localaddrlen) {
sbin/unwind/libunbound/services/listen_dnsport.c
3683
if(c->key.paddr.localaddrlen < d->key.paddr.localaddrlen)
sbin/unwind/libunbound/services/listen_dnsport.c
3687
if((r=memcmp(&c->key.paddr.localaddr, &d->key.paddr.localaddr,
sbin/unwind/libunbound/services/listen_dnsport.c
3690
if(c->key.paddr.ifindex != d->key.paddr.ifindex) {
sbin/unwind/libunbound/services/listen_dnsport.c
3691
if(c->key.paddr.ifindex < d->key.paddr.ifindex)
sbin/unwind/libunbound/services/listen_dnsport.c
3695
if(c->key.dcidlen != d->key.dcidlen) {
sbin/unwind/libunbound/services/listen_dnsport.c
3696
if(c->key.dcidlen < d->key.dcidlen)
sbin/unwind/libunbound/services/listen_dnsport.c
3700
if((r=memcmp(c->key.dcid, d->key.dcid, c->key.dcidlen))!=0)
sbin/unwind/libunbound/services/listen_dnsport.c
3708
struct doq_conid* d = (struct doq_conid*)key2;
sbin/unwind/libunbound/services/listen_dnsport.c
3709
if(c->cidlen != d->cidlen) {
sbin/unwind/libunbound/services/listen_dnsport.c
3710
if(c->cidlen < d->cidlen)
sbin/unwind/libunbound/services/listen_dnsport.c
3714
return memcmp(c->cid, d->cid, c->cidlen);
sbin/unwind/libunbound/services/listen_dnsport.c
3731
struct doq_stream* d = (struct doq_stream*)key2;
sbin/unwind/libunbound/services/listen_dnsport.c
3732
if(c->stream_id != d->stream_id) {
sbin/unwind/libunbound/services/listen_dnsport.c
3733
if(c->stream_id < d->stream_id)
sbin/unwind/libunbound/services/localzone.c
1408
struct packed_rrset_data* d;
sbin/unwind/libunbound/services/localzone.c
1435
d = (struct packed_rrset_data*)regional_alloc_zero(
sbin/unwind/libunbound/services/localzone.c
1439
if(!d) return 0; /* out of memory */
sbin/unwind/libunbound/services/localzone.c
1440
r->entry.data = d;
sbin/unwind/libunbound/services/localzone.c
1441
d->ttl = sldns_wirerr_get_ttl(rr, len, 1);
sbin/unwind/libunbound/services/localzone.c
1442
d->rr_len = (size_t*)((uint8_t*)d +
sbin/unwind/libunbound/services/localzone.c
1444
d->rr_data = (uint8_t**)&(d->rr_len[1]);
sbin/unwind/libunbound/services/localzone.c
1445
d->rr_ttl = (time_t*)&(d->rr_data[1]);
sbin/unwind/libunbound/services/localzone.c
1447
d = (struct packed_rrset_data*)r->entry.data;
sbin/unwind/libunbound/services/localzone.c
1449
if(d->count != 0) {
sbin/unwind/libunbound/services/localzone.c
1450
size_t* oldlen = d->rr_len;
sbin/unwind/libunbound/services/localzone.c
1451
uint8_t** olddata = d->rr_data;
sbin/unwind/libunbound/services/localzone.c
1452
time_t* oldttl = d->rr_ttl;
sbin/unwind/libunbound/services/localzone.c
1456
d->rr_len = (size_t*)regional_alloc_zero(temp,
sbin/unwind/libunbound/services/localzone.c
1457
(d->count+1)*sizeof(size_t));
sbin/unwind/libunbound/services/localzone.c
1458
d->rr_data = (uint8_t**)regional_alloc_zero(temp,
sbin/unwind/libunbound/services/localzone.c
1459
(d->count+1)*sizeof(uint8_t*));
sbin/unwind/libunbound/services/localzone.c
1460
d->rr_ttl = (time_t*)regional_alloc_zero(temp,
sbin/unwind/libunbound/services/localzone.c
1461
(d->count+1)*sizeof(time_t));
sbin/unwind/libunbound/services/localzone.c
1462
if(!d->rr_len || !d->rr_data || !d->rr_ttl)
sbin/unwind/libunbound/services/localzone.c
1467
memmove(d->rr_len, oldlen, d->count*sizeof(size_t));
sbin/unwind/libunbound/services/localzone.c
1468
memmove(d->rr_data, olddata, d->count*sizeof(uint8_t*));
sbin/unwind/libunbound/services/localzone.c
1469
memmove(d->rr_ttl, oldttl, d->count*sizeof(time_t));
sbin/unwind/libunbound/services/localzone.c
1472
d->rr_len[d->count] = sldns_wirerr_get_rdatalen(rr, len, 1)+2;
sbin/unwind/libunbound/services/localzone.c
1473
d->rr_ttl[d->count] = sldns_wirerr_get_ttl(rr, len, 1);
sbin/unwind/libunbound/services/localzone.c
1474
d->rr_data[d->count] = regional_alloc_init(temp,
sbin/unwind/libunbound/services/localzone.c
1476
d->rr_len[d->count]);
sbin/unwind/libunbound/services/localzone.c
1477
if(!d->rr_data[d->count])
sbin/unwind/libunbound/services/localzone.c
1479
d->count++;
sbin/unwind/libunbound/services/localzone.c
1579
struct packed_rrset_data* d, *lr_d;
sbin/unwind/libunbound/services/localzone.c
1601
d = (struct packed_rrset_data*)regional_alloc_zero(temp,
sbin/unwind/libunbound/services/localzone.c
1605
if(!d)
sbin/unwind/libunbound/services/localzone.c
1608
qinfo->local_alias->rrset->entry.data = d;
sbin/unwind/libunbound/services/localzone.c
1609
d->ttl = lr_d->rr_ttl[0]; /* RFC6672-like behavior:
sbin/unwind/libunbound/services/localzone.c
1611
d->count = 1;
sbin/unwind/libunbound/services/localzone.c
1612
d->rrsig_count = 0;
sbin/unwind/libunbound/services/localzone.c
1613
d->trust = rrset_trust_ans_noAA;
sbin/unwind/libunbound/services/localzone.c
1614
d->rr_len = (size_t*)((uint8_t*)d +
sbin/unwind/libunbound/services/localzone.c
1616
d->rr_len[0] = newtargetlen + sizeof(uint16_t);
sbin/unwind/libunbound/services/localzone.c
1617
packed_rrset_ptr_fixup(d);
sbin/unwind/libunbound/services/localzone.c
1618
d->rr_ttl[0] = d->ttl;
sbin/unwind/libunbound/services/localzone.c
1619
sldns_write_uint16(d->rr_data[0], newtargetlen);
sbin/unwind/libunbound/services/localzone.c
1621
memmove(d->rr_data[0] + sizeof(uint16_t), qinfo->qname,
sbin/unwind/libunbound/services/localzone.c
1624
memmove(d->rr_data[0] + sizeof(uint16_t) +
sbin/unwind/libunbound/services/localzone.c
1746
struct packed_rrset_data d;
sbin/unwind/libunbound/services/localzone.c
1752
memset(&d, 0, sizeof(d));
sbin/unwind/libunbound/services/localzone.c
1753
lrr.entry.data = &d;
sbin/unwind/libunbound/services/localzone.c
1767
d.ttl = rr_ttl;
sbin/unwind/libunbound/services/localzone.c
1768
d.count = 1;
sbin/unwind/libunbound/services/localzone.c
1769
d.rr_len = &rr_len;
sbin/unwind/libunbound/services/localzone.c
1770
d.rr_data = &rr_datas;
sbin/unwind/libunbound/services/localzone.c
1771
d.rr_ttl = &rr_ttl;
sbin/unwind/libunbound/services/localzone.c
2155
is_terminal(struct local_data* d)
sbin/unwind/libunbound/services/localzone.c
2160
struct local_data* n = (struct local_data*)rbtree_next(&d->node);
sbin/unwind/libunbound/services/localzone.c
2163
if(dname_strict_subdomain(n->name, n->namelabs, d->name, d->namelabs))
sbin/unwind/libunbound/services/localzone.c
2170
del_empty_term(struct local_zone* z, struct local_data* d,
sbin/unwind/libunbound/services/localzone.c
2173
while(d && d->rrsets == NULL && is_terminal(d)) {
sbin/unwind/libunbound/services/localzone.c
2176
(void)rbtree_delete(&z->data, d);
sbin/unwind/libunbound/services/localzone.c
2183
d = local_zone_find_data(z, name, len, labs);
sbin/unwind/libunbound/services/localzone.c
2189
del_local_rrset(struct local_data* d, uint16_t dtype)
sbin/unwind/libunbound/services/localzone.c
2191
struct local_rrset* prev=NULL, *p=d->rrsets;
sbin/unwind/libunbound/services/localzone.c
2200
else d->rrsets = p->next;
sbin/unwind/libunbound/services/localzone.c
2209
struct local_data* d;
sbin/unwind/libunbound/services/localzone.c
2217
d = local_zone_find_data(z, name, len, labs);
sbin/unwind/libunbound/services/localzone.c
2218
if(d) {
sbin/unwind/libunbound/services/localzone.c
2219
del_local_rrset(d, LDNS_RR_TYPE_DS);
sbin/unwind/libunbound/services/localzone.c
2220
del_empty_term(z, d, name, len, labs);
sbin/unwind/libunbound/services/localzone.c
2238
d = local_zone_find_data(z, name, len, labs);
sbin/unwind/libunbound/services/localzone.c
2239
if(d) {
sbin/unwind/libunbound/services/localzone.c
2241
d->rrsets = NULL;
sbin/unwind/libunbound/services/localzone.c
2243
if(query_dname_compare(d->name, z->name) == 0) {
sbin/unwind/libunbound/services/localzone.c
2249
del_empty_term(z, d, name, len, labs);
sbin/unwind/libunbound/services/localzone.c
81
struct local_data* d;
sbin/unwind/libunbound/services/localzone.c
83
RBTREE_FOR(d, struct local_data*, &z->data) {
sbin/unwind/libunbound/services/localzone.c
84
for(p = d->rrsets; p; p = p->next) {
sbin/unwind/libunbound/services/localzone.c
85
log_nametypeclass(NO_VERBOSE, "rrset", d->name,
sbin/unwind/libunbound/services/mesh.c
2040
struct packed_rrset_data* d;
sbin/unwind/libunbound/services/mesh.c
2070
d = regional_alloc_zero(s->s.region, sizeof(*d));
sbin/unwind/libunbound/services/mesh.c
2071
if(!d)
sbin/unwind/libunbound/services/mesh.c
2073
r->local_alias->rrset->entry.data = d;
sbin/unwind/libunbound/services/mesh.c
2074
if(!rrset_insert_rr(s->s.region, d, dsrc->rr_data[0],
sbin/unwind/libunbound/services/outside_network.c
2877
uint8_t* d = qbuf + 10;
sbin/unwind/libunbound/services/outside_network.c
2882
lablen = *d++;
sbin/unwind/libunbound/services/outside_network.c
2886
if(isalpha((unsigned char)*d)) {
sbin/unwind/libunbound/services/outside_network.c
2893
*d = (uint8_t)toupper((unsigned char)*d);
sbin/unwind/libunbound/services/outside_network.c
2895
*d = (uint8_t)tolower((unsigned char)*d);
sbin/unwind/libunbound/services/outside_network.c
2900
d++;
sbin/unwind/libunbound/services/outside_network.c
2902
lablen = *d++;
sbin/unwind/libunbound/services/rpz.c
1293
struct packed_rrset_data* d;
sbin/unwind/libunbound/services/rpz.c
1305
d = (struct packed_rrset_data*)p->rrset->entry.data;
sbin/unwind/libunbound/services/rpz.c
1306
if(packed_rrset_find_rr(d, rdata, rdatalen, &index)) {
sbin/unwind/libunbound/services/rpz.c
1307
if(d->count == 1) {
sbin/unwind/libunbound/services/rpz.c
1312
if(d->count > 1) {
sbin/unwind/libunbound/services/rpz.c
1313
if(!local_rrset_remove_rr(d, index))
sbin/unwind/libunbound/services/rpz.c
1336
struct packed_rrset_data* d;
sbin/unwind/libunbound/services/rpz.c
1339
d = raddr->data->entry.data;
sbin/unwind/libunbound/services/rpz.c
1343
if(packed_rrset_find_rr(d, rdata, rdatalen, &index)) {
sbin/unwind/libunbound/services/rpz.c
1344
if(d->count == 1) {
sbin/unwind/libunbound/services/rpz.c
1350
if(d->count > 1) {
sbin/unwind/libunbound/services/rpz.c
1351
if(!local_rrset_remove_rr(d, index))
sbin/unwind/libunbound/services/rpz.c
1457
struct packed_rrset_data* d;
sbin/unwind/libunbound/services/rpz.c
1462
d = (struct packed_rrset_data*)rrset->rrset->entry.data;
sbin/unwind/libunbound/services/rpz.c
1463
if(!packed_rrset_find_rr(d, rdatawl, rdatalen, &index))
sbin/unwind/libunbound/services/rpz.c
1465
if(d->count == 1) {
sbin/unwind/libunbound/services/rpz.c
1472
} else if (d->count > 1) {
sbin/unwind/libunbound/services/rpz.c
1473
if(!local_rrset_remove_rr(d, index))
sbin/unwind/libunbound/sldns/parse.c
150
for (d = del; *d; d++) {
sbin/unwind/libunbound/sldns/parse.c
151
if (c == *d)
sbin/unwind/libunbound/sldns/parse.c
155
if (c == *d && i > 0 && prev_c != '\\' && p == 0) {
sbin/unwind/libunbound/sldns/parse.c
294
const char *d;
sbin/unwind/libunbound/sldns/parse.c
392
for (d = del; *d; d++) {
sbin/unwind/libunbound/sldns/parse.c
394
if (c == *d && lc != '\\' && (p == 0 || par)) {
sbin/unwind/libunbound/sldns/parse.c
40
const char *d;
sbin/unwind/libunbound/sldns/parse.c
442
const char *d;
sbin/unwind/libunbound/sldns/parse.c
447
for (d = s; *d; d++) {
sbin/unwind/libunbound/sldns/parse.c
448
if (*d == c) {
sbin/unwind/libunbound/sldns/parse.c
471
const char *d;
sbin/unwind/libunbound/sldns/parse.c
478
for (d = s; *d; d++) {
sbin/unwind/libunbound/sldns/parse.c
479
if (*d == c) {
sbin/unwind/libunbound/sldns/parseutil.c
765
char d = *s++;
sbin/unwind/libunbound/sldns/parseutil.c
767
if(d <= 'Z' && d >= 'A')
sbin/unwind/libunbound/sldns/parseutil.c
768
d -= 'A';
sbin/unwind/libunbound/sldns/parseutil.c
769
else if(d <= 'z' && d >= 'a')
sbin/unwind/libunbound/sldns/parseutil.c
770
d = d - 'a' + 26;
sbin/unwind/libunbound/sldns/parseutil.c
771
else if(d <= '9' && d >= '0')
sbin/unwind/libunbound/sldns/parseutil.c
772
d = d - '0' + 52;
sbin/unwind/libunbound/sldns/parseutil.c
773
else if(!base64url && d == '+')
sbin/unwind/libunbound/sldns/parseutil.c
774
d = 62;
sbin/unwind/libunbound/sldns/parseutil.c
775
else if(base64url && d == '-')
sbin/unwind/libunbound/sldns/parseutil.c
776
d = 62;
sbin/unwind/libunbound/sldns/parseutil.c
777
else if(!base64url && d == '/')
sbin/unwind/libunbound/sldns/parseutil.c
778
d = 63;
sbin/unwind/libunbound/sldns/parseutil.c
779
else if(base64url && d == '_')
sbin/unwind/libunbound/sldns/parseutil.c
780
d = 63;
sbin/unwind/libunbound/sldns/parseutil.c
781
else if(d == '=') {
sbin/unwind/libunbound/sldns/parseutil.c
784
d = 64;
sbin/unwind/libunbound/sldns/parseutil.c
787
in[incount++] = (uint8_t)d;
sbin/unwind/libunbound/sldns/parseutil.c
841
char d = *s++;
sbin/unwind/libunbound/sldns/parseutil.c
845
if(d == '+' || d == '/' || d == '=') {
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
2732
shorts[3] = htons(d);
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
2752
rd[3] = d;
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
2773
rd[3] = d;
sbin/unwind/libunbound/sldns/wire2str.c
1002
int sldns_wire2str_type_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen)
sbin/unwind/libunbound/sldns/wire2str.c
1006
if(*dlen < 2) return print_remainder_hex("Error malformed 0x", d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1007
t = sldns_read_uint16(*d);
sbin/unwind/libunbound/sldns/wire2str.c
1008
(*d)+=2;
sbin/unwind/libunbound/sldns/wire2str.c
1013
int sldns_wire2str_ttl_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen)
sbin/unwind/libunbound/sldns/wire2str.c
1017
if(*dlen < 4) return print_remainder_hex("Error malformed 0x", d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1018
ttl = sldns_read_uint32(*d);
sbin/unwind/libunbound/sldns/wire2str.c
1019
(*d)+=4;
sbin/unwind/libunbound/sldns/wire2str.c
1186
int sldns_wire2str_svcparam_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen)
sbin/unwind/libunbound/sldns/wire2str.c
1197
svcparamkey = sldns_read_uint16(*d);
sbin/unwind/libunbound/sldns/wire2str.c
1198
data_len = sldns_read_uint16(*d+2);
sbin/unwind/libunbound/sldns/wire2str.c
1199
*d += 4;
sbin/unwind/libunbound/sldns/wire2str.c
1225
r = sldns_wire2str_svcparam_port2str(s, slen, data_len, *d);
sbin/unwind/libunbound/sldns/wire2str.c
1228
r = sldns_wire2str_svcparam_ipv4hint2str(s, slen, data_len, *d);
sbin/unwind/libunbound/sldns/wire2str.c
1231
r = sldns_wire2str_svcparam_ipv6hint2str(s, slen, data_len, *d);
sbin/unwind/libunbound/sldns/wire2str.c
1234
r = sldns_wire2str_svcparam_mandatory2str(s, slen, data_len, *d);
sbin/unwind/libunbound/sldns/wire2str.c
1239
r = sldns_wire2str_svcparam_alpn2str(s, slen, data_len, *d);
sbin/unwind/libunbound/sldns/wire2str.c
1242
r = sldns_wire2str_svcparam_ech2str(s, slen, data_len, *d);
sbin/unwind/libunbound/sldns/wire2str.c
1251
ch = (*d)[i];
sbin/unwind/libunbound/sldns/wire2str.c
1270
*d += data_len;
sbin/unwind/libunbound/sldns/wire2str.c
1275
int sldns_wire2str_rdf_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen,
sbin/unwind/libunbound/sldns/wire2str.c
1283
return sldns_wire2str_dname_scan(d, dlen, s, slen, pkt, pktlen, comprloop);
sbin/unwind/libunbound/sldns/wire2str.c
1285
return sldns_wire2str_int8_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1287
return sldns_wire2str_int16_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1289
return sldns_wire2str_int32_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1291
return sldns_wire2str_period_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1293
return sldns_wire2str_tsigtime_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1295
return sldns_wire2str_a_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1297
return sldns_wire2str_aaaa_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1299
return sldns_wire2str_str_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1301
return sldns_wire2str_apl_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1303
return sldns_wire2str_b32_ext_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1305
return sldns_wire2str_b64_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1307
return sldns_wire2str_hex_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1309
return sldns_wire2str_nsec_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1311
return sldns_wire2str_nsec3_salt_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1313
return sldns_wire2str_type_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1315
return sldns_wire2str_class_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1317
return sldns_wire2str_cert_alg_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1319
return sldns_wire2str_alg_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1321
return sldns_wire2str_unknown_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1323
return sldns_wire2str_time_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1325
return sldns_wire2str_loc_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1328
return sldns_wire2str_wks_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1330
return sldns_wire2str_nsap_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1332
return sldns_wire2str_atma_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1334
return sldns_wire2str_ipseckey_scan(d, dlen, s, slen, pkt,
sbin/unwind/libunbound/sldns/wire2str.c
1337
return sldns_wire2str_hip_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1339
return sldns_wire2str_int16_data_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1341
return sldns_wire2str_b32_ext_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1343
return sldns_wire2str_ilnp64_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1345
return sldns_wire2str_eui48_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1347
return sldns_wire2str_eui64_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1349
return sldns_wire2str_unquoted_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1351
return sldns_wire2str_tag_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1353
return sldns_wire2str_long_str_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1355
return sldns_wire2str_svcparam_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1357
return sldns_wire2str_tsigerror_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
1363
int sldns_wire2str_int8_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1367
w = sldns_str_print(s, sl, "%u", (unsigned)**d);
sbin/unwind/libunbound/sldns/wire2str.c
1368
(*d)++;
sbin/unwind/libunbound/sldns/wire2str.c
1373
int sldns_wire2str_int16_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1377
w = sldns_str_print(s, sl, "%lu", (unsigned long)sldns_read_uint16(*d));
sbin/unwind/libunbound/sldns/wire2str.c
1378
(*d)+=2;
sbin/unwind/libunbound/sldns/wire2str.c
1383
int sldns_wire2str_int32_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1387
w = sldns_str_print(s, sl, "%lu", (unsigned long)sldns_read_uint32(*d));
sbin/unwind/libunbound/sldns/wire2str.c
1388
(*d)+=4;
sbin/unwind/libunbound/sldns/wire2str.c
1393
int sldns_wire2str_period_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1397
w = sldns_str_print(s, sl, "%u", (unsigned)sldns_read_uint32(*d));
sbin/unwind/libunbound/sldns/wire2str.c
1398
(*d)+=4;
sbin/unwind/libunbound/sldns/wire2str.c
1403
int sldns_wire2str_tsigtime_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1410
d0 = (*d)[0]; /* cast to uint64 for shift operations */
sbin/unwind/libunbound/sldns/wire2str.c
1411
d1 = (*d)[1];
sbin/unwind/libunbound/sldns/wire2str.c
1412
d2 = (*d)[2];
sbin/unwind/libunbound/sldns/wire2str.c
1413
d3 = (*d)[3];
sbin/unwind/libunbound/sldns/wire2str.c
1414
d4 = (*d)[4];
sbin/unwind/libunbound/sldns/wire2str.c
1415
d5 = (*d)[5];
sbin/unwind/libunbound/sldns/wire2str.c
1422
(*d)+=6;
sbin/unwind/libunbound/sldns/wire2str.c
1427
int sldns_wire2str_a_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1432
if(!inet_ntop(AF_INET, *d, buf, (socklen_t)sizeof(buf)))
sbin/unwind/libunbound/sldns/wire2str.c
1435
(*d)+=4;
sbin/unwind/libunbound/sldns/wire2str.c
1440
int sldns_wire2str_aaaa_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1446
if(!inet_ntop(AF_INET6, *d, buf, (socklen_t)sizeof(buf)))
sbin/unwind/libunbound/sldns/wire2str.c
1449
(*d)+=16;
sbin/unwind/libunbound/sldns/wire2str.c
1473
int sldns_wire2str_str_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1478
len = **d;
sbin/unwind/libunbound/sldns/wire2str.c
1480
(*d)++;
sbin/unwind/libunbound/sldns/wire2str.c
1484
w += str_char_print(s, sl, (*d)[i]);
sbin/unwind/libunbound/sldns/wire2str.c
1486
(*d)+=len;
sbin/unwind/libunbound/sldns/wire2str.c
1491
int sldns_wire2str_apl_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1497
family = sldns_read_uint16(*d);
sbin/unwind/libunbound/sldns/wire2str.c
1498
prefix = (*d)[2];
sbin/unwind/libunbound/sldns/wire2str.c
1499
negation = ((*d)[3] & LDNS_APL_NEGATION);
sbin/unwind/libunbound/sldns/wire2str.c
1500
adflength = ((*d)[3] & LDNS_APL_MASK);
sbin/unwind/libunbound/sldns/wire2str.c
1514
w += sldns_str_print(s, sl, "%d", (*d)[4+i]);
sbin/unwind/libunbound/sldns/wire2str.c
1524
w += sldns_str_print(s, sl, "%02x", (*d)[4+i]);
sbin/unwind/libunbound/sldns/wire2str.c
1529
(*d) += 4+adflength;
sbin/unwind/libunbound/sldns/wire2str.c
1534
int sldns_wire2str_b32_ext_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1539
datalen = (*d)[0];
sbin/unwind/libunbound/sldns/wire2str.c
1543
(*d) += datalen+1;
sbin/unwind/libunbound/sldns/wire2str.c
1548
sldns_b32_ntop_extended_hex((*d)+1, datalen, *s, *sl);
sbin/unwind/libunbound/sldns/wire2str.c
1549
(*d) += datalen+1;
sbin/unwind/libunbound/sldns/wire2str.c
1557
static int sldns_wire2str_b64_scan_num(uint8_t** d, size_t* dl, char** s,
sbin/unwind/libunbound/sldns/wire2str.c
1563
(*d) += num;
sbin/unwind/libunbound/sldns/wire2str.c
1568
sldns_b64_ntop(*d, num, *s, *sl);
sbin/unwind/libunbound/sldns/wire2str.c
1569
(*d) += num;
sbin/unwind/libunbound/sldns/wire2str.c
1576
int sldns_wire2str_b64_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1581
return sldns_wire2str_b64_scan_num(d, dl, s, sl, *dl);
sbin/unwind/libunbound/sldns/wire2str.c
1584
int sldns_wire2str_hex_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1589
return print_remainder_hex("", d, dl, s, sl);
sbin/unwind/libunbound/sldns/wire2str.c
1592
int sldns_wire2str_nsec_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1594
uint8_t* p = *d;
sbin/unwind/libunbound/sldns/wire2str.c
1610
p = *d;
sbin/unwind/libunbound/sldns/wire2str.c
1633
(*d) += *dl;
sbin/unwind/libunbound/sldns/wire2str.c
1638
int sldns_wire2str_nsec3_salt_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1643
salt_len = (size_t)(*d)[0];
sbin/unwind/libunbound/sldns/wire2str.c
1645
(*d)++;
sbin/unwind/libunbound/sldns/wire2str.c
1650
w = print_hex_buf(s, sl, *d, salt_len);
sbin/unwind/libunbound/sldns/wire2str.c
1652
(*d)+=salt_len;
sbin/unwind/libunbound/sldns/wire2str.c
1656
int sldns_wire2str_cert_alg_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1661
data = (int)sldns_read_uint16(*d);
sbin/unwind/libunbound/sldns/wire2str.c
1667
(*d)+=2;
sbin/unwind/libunbound/sldns/wire2str.c
1671
int sldns_wire2str_alg_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1675
return sldns_wire2str_int8_scan(d, dl, s, sl);
sbin/unwind/libunbound/sldns/wire2str.c
1678
int sldns_wire2str_unknown_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1680
return sldns_wire2str_rdata_unknown_scan(d, dl, s, sl);
sbin/unwind/libunbound/sldns/wire2str.c
1683
int sldns_wire2str_time_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1691
t = sldns_read_uint32(*d);
sbin/unwind/libunbound/sldns/wire2str.c
1695
(*d) += 4;
sbin/unwind/libunbound/sldns/wire2str.c
1720
int sldns_wire2str_loc_scan(uint8_t** d, size_t* dl, char** str, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1739
version = (*d)[0];
sbin/unwind/libunbound/sldns/wire2str.c
1741
return sldns_wire2str_hex_scan(d, dl, str, sl);
sbin/unwind/libunbound/sldns/wire2str.c
1742
size = (*d)[1];
sbin/unwind/libunbound/sldns/wire2str.c
1743
horizontal_precision = (*d)[2];
sbin/unwind/libunbound/sldns/wire2str.c
1744
vertical_precision = (*d)[3];
sbin/unwind/libunbound/sldns/wire2str.c
1746
latitude = sldns_read_uint32((*d)+4);
sbin/unwind/libunbound/sldns/wire2str.c
1747
longitude = sldns_read_uint32((*d)+8);
sbin/unwind/libunbound/sldns/wire2str.c
1748
altitude = sldns_read_uint32((*d)+12);
sbin/unwind/libunbound/sldns/wire2str.c
1801
(*d)+=16;
sbin/unwind/libunbound/sldns/wire2str.c
1806
int sldns_wire2str_wks_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1822
protocol_nr = (*d)[0];
sbin/unwind/libunbound/sldns/wire2str.c
1823
(*d)++;
sbin/unwind/libunbound/sldns/wire2str.c
1838
if((*d)[i] == 0)
sbin/unwind/libunbound/sldns/wire2str.c
1841
if(!(((*d)[i])&(0x80>>bit)))
sbin/unwind/libunbound/sldns/wire2str.c
1864
(*d) += *dl;
sbin/unwind/libunbound/sldns/wire2str.c
1869
int sldns_wire2str_nsap_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1871
return print_remainder_hex("0x", d, dl, s, sl);
sbin/unwind/libunbound/sldns/wire2str.c
1874
int sldns_wire2str_atma_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1881
format = (*d)[0];
sbin/unwind/libunbound/sldns/wire2str.c
1882
(*d)+=1;
sbin/unwind/libunbound/sldns/wire2str.c
1887
return print_remainder_hex("", d, dl, s, sl);
sbin/unwind/libunbound/sldns/wire2str.c
1892
if((*d)[i] < '0' || (*d)[0] > '9')
sbin/unwind/libunbound/sldns/wire2str.c
1894
w += sldns_str_print(s, sl, "%c", (*d)[i]);
sbin/unwind/libunbound/sldns/wire2str.c
1896
(*d) += *dl;
sbin/unwind/libunbound/sldns/wire2str.c
1906
static int sldns_wire2str_ipseckey_scan_internal(uint8_t** d, size_t* dl,
sbin/unwind/libunbound/sldns/wire2str.c
1914
precedence = (*d)[0];
sbin/unwind/libunbound/sldns/wire2str.c
1915
gateway_type = (*d)[1];
sbin/unwind/libunbound/sldns/wire2str.c
1916
algorithm = (*d)[2];
sbin/unwind/libunbound/sldns/wire2str.c
1919
(*d)+=3;
sbin/unwind/libunbound/sldns/wire2str.c
1929
w += sldns_wire2str_a_scan(d, dl, s, sl);
sbin/unwind/libunbound/sldns/wire2str.c
1932
w += sldns_wire2str_aaaa_scan(d, dl, s, sl);
sbin/unwind/libunbound/sldns/wire2str.c
1935
w += sldns_wire2str_dname_scan(d, dl, s, sl, pkt, pktlen, comprloop);
sbin/unwind/libunbound/sldns/wire2str.c
1944
w += sldns_wire2str_b64_scan_num(d, dl, s, sl, *dl);
sbin/unwind/libunbound/sldns/wire2str.c
1948
int sldns_wire2str_ipseckey_scan(uint8_t** d, size_t* dl, char** s, size_t* sl,
sbin/unwind/libunbound/sldns/wire2str.c
1951
uint8_t* od = *d;
sbin/unwind/libunbound/sldns/wire2str.c
1954
int w=sldns_wire2str_ipseckey_scan_internal(d, dl, s, sl, pkt, pktlen, comprloop);
sbin/unwind/libunbound/sldns/wire2str.c
1956
*d = od;
sbin/unwind/libunbound/sldns/wire2str.c
1965
int sldns_wire2str_hip_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1974
hitlen = (*d)[0];
sbin/unwind/libunbound/sldns/wire2str.c
1975
algo = (*d)[1];
sbin/unwind/libunbound/sldns/wire2str.c
1976
pklen = sldns_read_uint16((*d)+2);
sbin/unwind/libunbound/sldns/wire2str.c
1982
w += print_hex_buf(s, sl, (*d)+4, hitlen);
sbin/unwind/libunbound/sldns/wire2str.c
1984
(*d)+=4+hitlen;
sbin/unwind/libunbound/sldns/wire2str.c
1986
w += sldns_wire2str_b64_scan_num(d, dl, s, sl, pklen);
sbin/unwind/libunbound/sldns/wire2str.c
1990
int sldns_wire2str_int16_data_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1996
n = sldns_read_uint16(*d);
sbin/unwind/libunbound/sldns/wire2str.c
1999
(*d)+=2;
sbin/unwind/libunbound/sldns/wire2str.c
2005
w += sldns_wire2str_b64_scan_num(d, dl, s, sl, n);
sbin/unwind/libunbound/sldns/wire2str.c
2009
int sldns_wire2str_nsec3_next_owner_scan(uint8_t** d, size_t* dl, char** s,
sbin/unwind/libunbound/sldns/wire2str.c
2012
return sldns_wire2str_b32_ext_scan(d, dl, s, sl);
sbin/unwind/libunbound/sldns/wire2str.c
2015
int sldns_wire2str_ilnp64_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
2021
sldns_read_uint16(*d), sldns_read_uint16((*d)+2),
sbin/unwind/libunbound/sldns/wire2str.c
2022
sldns_read_uint16((*d)+4), sldns_read_uint16((*d)+6));
sbin/unwind/libunbound/sldns/wire2str.c
2023
(*d)+=8;
sbin/unwind/libunbound/sldns/wire2str.c
2028
int sldns_wire2str_eui48_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
2034
(*d)[0], (*d)[1], (*d)[2], (*d)[3], (*d)[4], (*d)[5]);
sbin/unwind/libunbound/sldns/wire2str.c
2035
(*d)+=6;
sbin/unwind/libunbound/sldns/wire2str.c
2040
int sldns_wire2str_eui64_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
2046
(*d)[0], (*d)[1], (*d)[2], (*d)[3], (*d)[4], (*d)[5],
sbin/unwind/libunbound/sldns/wire2str.c
2047
(*d)[6], (*d)[7]);
sbin/unwind/libunbound/sldns/wire2str.c
2048
(*d)+=8;
sbin/unwind/libunbound/sldns/wire2str.c
2053
int sldns_wire2str_unquoted_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
2058
len = **d;
sbin/unwind/libunbound/sldns/wire2str.c
2060
(*d)++;
sbin/unwind/libunbound/sldns/wire2str.c
2063
if(isspace((unsigned char)(*d)[i]) || (*d)[i] == '(' ||
sbin/unwind/libunbound/sldns/wire2str.c
2064
(*d)[i] == ')' || (*d)[i] == '\'')
sbin/unwind/libunbound/sldns/wire2str.c
2065
w += sldns_str_print(s, sl, "\\%c", (char)(*d)[i]);
sbin/unwind/libunbound/sldns/wire2str.c
2066
else w += str_char_print(s, sl, (*d)[i]);
sbin/unwind/libunbound/sldns/wire2str.c
2068
(*d)+=len;
sbin/unwind/libunbound/sldns/wire2str.c
2073
int sldns_wire2str_tag_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
2079
n = (size_t)((*d)[0]);
sbin/unwind/libunbound/sldns/wire2str.c
2083
if(!isalnum((unsigned char)(*d)[i+1]))
sbin/unwind/libunbound/sldns/wire2str.c
2086
w += sldns_str_print(s, sl, "%c", (char)(*d)[i+1]);
sbin/unwind/libunbound/sldns/wire2str.c
2087
(*d)+=n+1;
sbin/unwind/libunbound/sldns/wire2str.c
2092
int sldns_wire2str_long_str_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
2098
w += str_char_print(s, sl, (*d)[i]);
sbin/unwind/libunbound/sldns/wire2str.c
2100
(*d)+=*dl;
sbin/unwind/libunbound/sldns/wire2str.c
2105
int sldns_wire2str_tsigerror_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
2110
data = (int)sldns_read_uint16(*d);
sbin/unwind/libunbound/sldns/wire2str.c
2116
(*d)+=2;
sbin/unwind/libunbound/sldns/wire2str.c
317
int sldns_wire2str_pkt_buf(uint8_t* d, size_t dlen, char* s, size_t slen)
sbin/unwind/libunbound/sldns/wire2str.c
320
return sldns_wire2str_pkt_scan(&d, &dlen, &s, &slen);
sbin/unwind/libunbound/sldns/wire2str.c
323
int sldns_wire2str_rr_buf(uint8_t* d, size_t dlen, char* s, size_t slen)
sbin/unwind/libunbound/sldns/wire2str.c
326
return sldns_wire2str_rr_scan(&d, &dlen, &s, &slen, NULL, 0, NULL);
sbin/unwind/libunbound/sldns/wire2str.c
329
int sldns_wire2str_rrquestion_buf(uint8_t* d, size_t dlen, char* s, size_t slen)
sbin/unwind/libunbound/sldns/wire2str.c
332
return sldns_wire2str_rrquestion_scan(&d, &dlen, &s, &slen, NULL, 0, NULL);
sbin/unwind/libunbound/sldns/wire2str.c
343
int sldns_wire2str_rr_unknown_buf(uint8_t* d, size_t dlen, char* s, size_t slen)
sbin/unwind/libunbound/sldns/wire2str.c
346
return sldns_wire2str_rr_unknown_scan(&d, &dlen, &s, &slen, NULL, 0, NULL);
sbin/unwind/libunbound/sldns/wire2str.c
381
int sldns_wire2str_dname_buf(uint8_t* d, size_t dlen, char* s, size_t slen)
sbin/unwind/libunbound/sldns/wire2str.c
384
return sldns_wire2str_dname_scan(&d, &dlen, &s, &slen, NULL, 0, NULL);
sbin/unwind/libunbound/sldns/wire2str.c
426
static int print_remainder_hex(const char* pref, uint8_t** d, size_t* dlen,
sbin/unwind/libunbound/sldns/wire2str.c
431
w += print_hex_buf(s, slen, *d, *dlen);
sbin/unwind/libunbound/sldns/wire2str.c
432
*d += *dlen;
sbin/unwind/libunbound/sldns/wire2str.c
437
int sldns_wire2str_pkt_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen)
sbin/unwind/libunbound/sldns/wire2str.c
441
uint8_t* pkt = *d;
sbin/unwind/libunbound/sldns/wire2str.c
444
qdcount = (unsigned)LDNS_QDCOUNT(*d);
sbin/unwind/libunbound/sldns/wire2str.c
445
ancount = (unsigned)LDNS_ANCOUNT(*d);
sbin/unwind/libunbound/sldns/wire2str.c
446
nscount = (unsigned)LDNS_NSCOUNT(*d);
sbin/unwind/libunbound/sldns/wire2str.c
447
arcount = (unsigned)LDNS_ARCOUNT(*d);
sbin/unwind/libunbound/sldns/wire2str.c
451
w += sldns_wire2str_header_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
455
w += sldns_wire2str_rrquestion_scan(d, dlen, s, slen,
sbin/unwind/libunbound/sldns/wire2str.c
462
w += sldns_wire2str_rr_scan(d, dlen, s, slen, pkt, pktlen, &comprloop);
sbin/unwind/libunbound/sldns/wire2str.c
468
w += sldns_wire2str_rr_scan(d, dlen, s, slen, pkt, pktlen, &comprloop);
sbin/unwind/libunbound/sldns/wire2str.c
474
w += sldns_wire2str_rr_scan(d, dlen, s, slen, pkt, pktlen, &comprloop);
sbin/unwind/libunbound/sldns/wire2str.c
481
d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
488
static int sldns_rr_tcttl_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
496
d, dl, s, sl);
sbin/unwind/libunbound/sldns/wire2str.c
498
t = sldns_read_uint16(*d);
sbin/unwind/libunbound/sldns/wire2str.c
499
c = sldns_read_uint16((*d)+2);
sbin/unwind/libunbound/sldns/wire2str.c
500
(*d)+=4;
sbin/unwind/libunbound/sldns/wire2str.c
508
"; Error malformed ttl 0x", d, dl, s, sl);
sbin/unwind/libunbound/sldns/wire2str.c
510
t = sldns_read_uint16(*d);
sbin/unwind/libunbound/sldns/wire2str.c
511
c = sldns_read_uint16((*d)+2);
sbin/unwind/libunbound/sldns/wire2str.c
512
ttl = sldns_read_uint32((*d)+4);
sbin/unwind/libunbound/sldns/wire2str.c
513
(*d)+=8;
sbin/unwind/libunbound/sldns/wire2str.c
522
int sldns_wire2str_rr_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen,
sbin/unwind/libunbound/sldns/wire2str.c
526
uint8_t* rr = *d;
sbin/unwind/libunbound/sldns/wire2str.c
530
if(*dlen >= 3 && (*d)[0]==0 &&
sbin/unwind/libunbound/sldns/wire2str.c
531
sldns_read_uint16((*d)+1)==LDNS_RR_TYPE_OPT) {
sbin/unwind/libunbound/sldns/wire2str.c
533
return sldns_wire2str_edns_scan(d, dlen, s, slen, pkt, pktlen);
sbin/unwind/libunbound/sldns/wire2str.c
538
w += sldns_wire2str_dname_scan(d, dlen, s, slen, pkt, pktlen, comprloop);
sbin/unwind/libunbound/sldns/wire2str.c
543
uint16_t t = sldns_read_uint16(*d);
sbin/unwind/libunbound/sldns/wire2str.c
544
uint16_t c = sldns_read_uint16((*d)+2);
sbin/unwind/libunbound/sldns/wire2str.c
545
(*d)+=4;
sbin/unwind/libunbound/sldns/wire2str.c
556
w += print_remainder_hex(";Error partial RR 0x", d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
559
rrtype = sldns_read_uint16(*d);
sbin/unwind/libunbound/sldns/wire2str.c
560
w += sldns_rr_tcttl_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
568
d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
571
rdlen = sldns_read_uint16(*d);
sbin/unwind/libunbound/sldns/wire2str.c
573
(*d)+=2;
sbin/unwind/libunbound/sldns/wire2str.c
579
w += print_remainder_hex(";Error partial rdata 0x", d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
582
w += sldns_wire2str_rdata_scan(d, &rdlen, s, slen, rrtype, pkt, pktlen,
sbin/unwind/libunbound/sldns/wire2str.c
593
int sldns_wire2str_rrquestion_scan(uint8_t** d, size_t* dlen, char** s,
sbin/unwind/libunbound/sldns/wire2str.c
598
w += sldns_wire2str_dname_scan(d, dlen, s, slen, pkt, pktlen, comprloop);
sbin/unwind/libunbound/sldns/wire2str.c
603
w += print_remainder_hex("Error malformed 0x", d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
606
t = sldns_read_uint16(*d);
sbin/unwind/libunbound/sldns/wire2str.c
607
c = sldns_read_uint16((*d)+2);
sbin/unwind/libunbound/sldns/wire2str.c
608
(*d)+=4;
sbin/unwind/libunbound/sldns/wire2str.c
617
int sldns_wire2str_rr_unknown_scan(uint8_t** d, size_t* dlen, char** s,
sbin/unwind/libunbound/sldns/wire2str.c
622
w += sldns_wire2str_dname_scan(d, dlen, s, slen, pkt, pktlen, comprloop);
sbin/unwind/libunbound/sldns/wire2str.c
624
w += sldns_rr_tcttl_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
630
d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
633
rdlen = sldns_read_uint16(*d);
sbin/unwind/libunbound/sldns/wire2str.c
635
(*d) += 2;
sbin/unwind/libunbound/sldns/wire2str.c
641
w += print_remainder_hex(";Error partial rdata 0x", d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
644
w += sldns_wire2str_rdata_unknown_scan(d, &rdlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
733
int sldns_wire2str_header_scan(uint8_t** d, size_t* dlen, char** s,
sbin/unwind/libunbound/sldns/wire2str.c
742
return w+print_remainder_hex("Error header too short 0x", d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
743
opcode = (int)LDNS_OPCODE_WIRE(*d);
sbin/unwind/libunbound/sldns/wire2str.c
744
rcode = (int)LDNS_RCODE_WIRE(*d);
sbin/unwind/libunbound/sldns/wire2str.c
751
w += sldns_str_print(s, slen, "id: %d\n", (int)LDNS_ID_WIRE(*d));
sbin/unwind/libunbound/sldns/wire2str.c
753
if(LDNS_QR_WIRE(*d)) w += sldns_str_print(s, slen, " qr");
sbin/unwind/libunbound/sldns/wire2str.c
754
if(LDNS_AA_WIRE(*d)) w += sldns_str_print(s, slen, " aa");
sbin/unwind/libunbound/sldns/wire2str.c
755
if(LDNS_TC_WIRE(*d)) w += sldns_str_print(s, slen, " tc");
sbin/unwind/libunbound/sldns/wire2str.c
756
if(LDNS_RD_WIRE(*d)) w += sldns_str_print(s, slen, " rd");
sbin/unwind/libunbound/sldns/wire2str.c
757
if(LDNS_CD_WIRE(*d)) w += sldns_str_print(s, slen, " cd");
sbin/unwind/libunbound/sldns/wire2str.c
758
if(LDNS_RA_WIRE(*d)) w += sldns_str_print(s, slen, " ra");
sbin/unwind/libunbound/sldns/wire2str.c
759
if(LDNS_AD_WIRE(*d)) w += sldns_str_print(s, slen, " ad");
sbin/unwind/libunbound/sldns/wire2str.c
760
if(LDNS_Z_WIRE(*d)) w += sldns_str_print(s, slen, " z");
sbin/unwind/libunbound/sldns/wire2str.c
763
return w+print_remainder_hex("Error header too short 0x", d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
764
w += sldns_str_print(s, slen, "QUERY: %d, ", (int)LDNS_QDCOUNT(*d));
sbin/unwind/libunbound/sldns/wire2str.c
765
w += sldns_str_print(s, slen, "ANSWER: %d, ", (int)LDNS_ANCOUNT(*d));
sbin/unwind/libunbound/sldns/wire2str.c
766
w += sldns_str_print(s, slen, "AUTHORITY: %d, ", (int)LDNS_NSCOUNT(*d));
sbin/unwind/libunbound/sldns/wire2str.c
767
w += sldns_str_print(s, slen, "ADDITIONAL: %d ", (int)LDNS_ARCOUNT(*d));
sbin/unwind/libunbound/sldns/wire2str.c
768
*d += LDNS_HEADER_SIZE;
sbin/unwind/libunbound/sldns/wire2str.c
773
int sldns_wire2str_rdata_scan(uint8_t** d, size_t* dlen, char** s,
sbin/unwind/libunbound/sldns/wire2str.c
778
uint8_t* origd = *d;
sbin/unwind/libunbound/sldns/wire2str.c
787
return sldns_wire2str_rdata_unknown_scan(d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
800
n = sldns_wire2str_rdf_scan(d, dlen, s, slen, rdftype,
sbin/unwind/libunbound/sldns/wire2str.c
805
*d = origd; *s = origs;
sbin/unwind/libunbound/sldns/wire2str.c
807
return sldns_wire2str_rdata_unknown_scan(d, dlen,
sbin/unwind/libunbound/sldns/wire2str.c
818
int sldns_wire2str_rdata_unknown_scan(uint8_t** d, size_t* dlen, char** s,
sbin/unwind/libunbound/sldns/wire2str.c
829
w += print_hex_buf(s, slen, *d, *dlen);
sbin/unwind/libunbound/sldns/wire2str.c
830
(*d) += *dlen;
sbin/unwind/libunbound/sldns/wire2str.c
851
int sldns_wire2str_dname_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen,
sbin/unwind/libunbound/sldns/wire2str.c
856
uint8_t* pos = *d;
sbin/unwind/libunbound/sldns/wire2str.c
869
(*d)++;
sbin/unwind/libunbound/sldns/wire2str.c
876
if(in_buf) { (*d)++; (*dlen)--; }
sbin/unwind/libunbound/sldns/wire2str.c
889
if(in_buf) { (*d)++; (*dlen)--; }
sbin/unwind/libunbound/sldns/wire2str.c
930
(*d) += labellen;
sbin/unwind/libunbound/sldns/wire2str.c
937
if(in_buf && *dlen > 0) { (*d)++; (*dlen)--; }
sbin/unwind/libunbound/sldns/wire2str.c
991
int sldns_wire2str_class_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen)
sbin/unwind/libunbound/sldns/wire2str.c
995
if(*dlen < 2) return print_remainder_hex("Error malformed 0x", d, dlen, s, slen);
sbin/unwind/libunbound/sldns/wire2str.c
996
c = sldns_read_uint16(*d);
sbin/unwind/libunbound/sldns/wire2str.c
997
(*d)+=2;
sbin/unwind/libunbound/sldns/wire2str.h
508
int sldns_wire2str_svcparam_scan(uint8_t** d, size_t* dlen, char** s,
sbin/unwind/libunbound/util/alloc.h
221
# define i2d_DSA_SIG(d, s) unbound_lite_i2d_DSA_SIG(d, s)
sbin/unwind/libunbound/util/config_file.c
923
char* d = strdup(val);
sbin/unwind/libunbound/util/config_file.c
926
if(!d || !oi) { free(d); free(oi); return -1; }
sbin/unwind/libunbound/util/config_file.c
931
oi[cfg->num_out_ifs++] = d;
sbin/unwind/libunbound/util/configparser.y
1393
char* d;
sbin/unwind/libunbound/util/configparser.y
1397
d = cfg_parser->cfg->directory;
sbin/unwind/libunbound/util/configparser.y
1401
strncmp(d, cfg_parser->chroot, strlen(
sbin/unwind/libunbound/util/configparser.y
1403
d += strlen(cfg_parser->chroot);
sbin/unwind/libunbound/util/configparser.y
1404
if(d[0]) {
sbin/unwind/libunbound/util/configparser.y
1405
if(chdir(d))
sbin/unwind/libunbound/util/configparser.y
1407
d, strerror(errno));
sbin/unwind/libunbound/util/data/msgreply.c
1013
struct sockaddr_in6 *d = (struct sockaddr_in6 *)daddr;
sbin/unwind/libunbound/util/data/msgreply.c
1014
if(inet_ntop(d->sin6_family, &d->sin6_addr, da,
sbin/unwind/libunbound/util/data/msgreply.c
1018
port = ntohs(d->sin6_port);
sbin/unwind/libunbound/util/data/msgreply.c
1020
struct sockaddr_in *d = (struct sockaddr_in *)daddr;
sbin/unwind/libunbound/util/data/msgreply.c
1021
if(inet_ntop(d->sin_family, &d->sin_addr, da,
sbin/unwind/libunbound/util/data/msgreply.c
1025
port = ntohs(d->sin_port);
sbin/unwind/libunbound/util/data/msgreply.c
1507
struct packed_rrset_data* d = rrset->entry.data;
sbin/unwind/libunbound/util/data/msgreply.c
1513
d->count != 1) {
sbin/unwind/libunbound/util/data/msgreply.c
1517
*qname = d->rr_data[0] + 2;
sbin/unwind/libunbound/util/data/msgreply.c
1518
*qname_len = d->rr_len[0] - 2;
sbin/unwind/libunbound/util/data/msgreply.c
718
msgreply_sizefunc(void* k, void* d)
sbin/unwind/libunbound/util/data/msgreply.c
721
struct reply_info* r = (struct reply_info*)d;
sbin/unwind/libunbound/util/data/msgreply.c
740
reply_info_delete(void* d, void* ATTR_UNUSED(arg))
sbin/unwind/libunbound/util/data/msgreply.c
742
struct reply_info* r = (struct reply_info*)d;
sbin/unwind/libunbound/util/data/msgreply.h
373
size_t msgreply_sizefunc(void* k, void* d);
sbin/unwind/libunbound/util/data/msgreply.h
379
void reply_info_delete(void* d, void* arg);
sbin/unwind/libunbound/util/data/packed_rrset.c
141
struct packed_rrset_data* d = (struct packed_rrset_data*)data;
sbin/unwind/libunbound/util/data/packed_rrset.c
142
free(d);
sbin/unwind/libunbound/util/data/packed_rrset.c
199
struct packed_rrset_data* d;
sbin/unwind/libunbound/util/data/packed_rrset.c
205
d = (struct packed_rrset_data*)rrset->entry.data;
sbin/unwind/libunbound/util/data/packed_rrset.c
206
if(d->count < 1)
sbin/unwind/libunbound/util/data/packed_rrset.c
208
if(d->rr_len[0] < 3) /* at least rdatalen + 0byte root label */
sbin/unwind/libunbound/util/data/packed_rrset.c
210
len = sldns_read_uint16(d->rr_data[0]);
sbin/unwind/libunbound/util/data/packed_rrset.c
211
if(len != d->rr_len[0] - sizeof(uint16_t))
sbin/unwind/libunbound/util/data/packed_rrset.c
213
if(dname_valid(d->rr_data[0]+sizeof(uint16_t), len) != len)
sbin/unwind/libunbound/util/data/packed_rrset.c
215
*dname = d->rr_data[0]+sizeof(uint16_t);
sbin/unwind/libunbound/util/data/packed_rrset.c
276
struct packed_rrset_data* d = (struct packed_rrset_data*)rrset->
sbin/unwind/libunbound/util/data/packed_rrset.c
280
size_t rlen = rrset->rk.dname_len + 2 + 2 + 4 + d->rr_len[i];
sbin/unwind/libunbound/util/data/packed_rrset.c
288
if(i < d->count)
sbin/unwind/libunbound/util/data/packed_rrset.c
292
adjust = SERVE_ORIGINAL_TTL ? d->ttl_add : now;
sbin/unwind/libunbound/util/data/packed_rrset.c
293
if (d->rr_ttl[i] < adjust) adjust = d->rr_ttl[i]; /* Prevent negative TTL overflow */
sbin/unwind/libunbound/util/data/packed_rrset.c
295
(uint32_t)(d->rr_ttl[i]-adjust));
sbin/unwind/libunbound/util/data/packed_rrset.c
296
memmove(rr+rrset->rk.dname_len+8, d->rr_data[i], d->rr_len[i]);
sbin/unwind/libunbound/util/data/packed_rrset.c
300
log_info("rrbuf failure %d %s", (int)d->rr_len[i], dest);
sbin/unwind/libunbound/util/data/packed_rrset.c
310
struct packed_rrset_data* d = (struct packed_rrset_data*)rrset->
sbin/unwind/libunbound/util/data/packed_rrset.c
316
for(i=0; i<d->count+d->rrsig_count; i++) {
sbin/unwind/libunbound/util/data/packed_rrset.c
328
struct packed_rrset_data* d = (struct packed_rrset_data*)key->
sbin/unwind/libunbound/util/data/packed_rrset.c
330
return d->ttl;
sbin/unwind/libunbound/util/data/packed_rrset.c
339
struct packed_rrset_data* d;
sbin/unwind/libunbound/util/data/packed_rrset.c
355
d = regional_alloc_init(region, data, dsize);
sbin/unwind/libunbound/util/data/packed_rrset.c
356
if(!d)
sbin/unwind/libunbound/util/data/packed_rrset.c
358
ck->entry.data = d;
sbin/unwind/libunbound/util/data/packed_rrset.c
359
packed_rrset_ptr_fixup(d);
sbin/unwind/libunbound/util/data/packed_rrset.c
366
log_assert(d->ttl_add <= now ||
sbin/unwind/libunbound/util/data/packed_rrset.c
369
: (d->ttl_add > now ? d->ttl_add : now );
sbin/unwind/libunbound/util/data/packed_rrset.c
370
for(i=0; i<d->count + d->rrsig_count; i++) {
sbin/unwind/libunbound/util/data/packed_rrset.c
371
if(TTL_IS_EXPIRED(d->rr_ttl[i], now_control)) {
sbin/unwind/libunbound/util/data/packed_rrset.c
372
d->rr_ttl[i] = EXPIRED_REPLY_TTL_CALC(d->rr_ttl[i], data->ttl_add);
sbin/unwind/libunbound/util/data/packed_rrset.c
373
} else d->rr_ttl[i] -= now_control;
sbin/unwind/libunbound/util/data/packed_rrset.c
375
if(TTL_IS_EXPIRED(d->ttl, now_control)) {
sbin/unwind/libunbound/util/data/packed_rrset.c
376
d->ttl = EXPIRED_REPLY_TTL_CALC(d->ttl, data->ttl_add);
sbin/unwind/libunbound/util/data/packed_rrset.c
377
} else d->ttl -= now_control;
sbin/unwind/libunbound/util/data/packed_rrset.c
378
d->ttl_add = 0; /* TTLs have been made relative */
sbin/unwind/libunbound/util/data/packed_rrset.c
411
packed_rrset_find_rr(struct packed_rrset_data* d, uint8_t* rdata, size_t len,
sbin/unwind/libunbound/util/data/packed_rrset.c
415
for(i=0; i<d->count; i++) {
sbin/unwind/libunbound/util/data/packed_rrset.c
416
if(d->rr_len[i] != len)
sbin/unwind/libunbound/util/data/packed_rrset.c
418
if(memcmp(d->rr_data[i], rdata, len) == 0) {
sbin/unwind/libunbound/util/data/packed_rrset.c
73
struct packed_rrset_data* d = (struct packed_rrset_data*)data;
sbin/unwind/libunbound/util/data/packed_rrset.c
75
s += packed_rrset_sizeof(d) + lock_get_mem(&k->entry.lock);
sbin/unwind/libunbound/util/data/packed_rrset.c
80
packed_rrset_sizeof(struct packed_rrset_data* d)
sbin/unwind/libunbound/util/data/packed_rrset.c
83
if(d->rrsig_count > 0) {
sbin/unwind/libunbound/util/data/packed_rrset.c
84
s = ((uint8_t*)d->rr_data[d->count+d->rrsig_count-1] -
sbin/unwind/libunbound/util/data/packed_rrset.c
85
(uint8_t*)d) + d->rr_len[d->count+d->rrsig_count-1];
sbin/unwind/libunbound/util/data/packed_rrset.c
87
log_assert(d->count > 0);
sbin/unwind/libunbound/util/data/packed_rrset.c
88
s = ((uint8_t*)d->rr_data[d->count-1] - (uint8_t*)d) +
sbin/unwind/libunbound/util/data/packed_rrset.c
89
d->rr_len[d->count-1];
sbin/unwind/libunbound/util/data/packed_rrset.h
287
struct packed_rrset_data* d;
sbin/unwind/libunbound/util/data/packed_rrset.h
476
packed_rrset_find_rr(struct packed_rrset_data* d, uint8_t* rdata, size_t len,
sbin/unwind/libunbound/util/net_help.c
197
void* d;
sbin/unwind/libunbound/util/net_help.c
200
d = malloc(len);
sbin/unwind/libunbound/util/net_help.c
201
if(!d) return NULL;
sbin/unwind/libunbound/util/net_help.c
202
memcpy(d, data, len);
sbin/unwind/libunbound/util/net_help.c
203
return d;
sbin/unwind/libunbound/util/random.c
226
long int d = MAX_VALUE - (MAX_VALUE % x); /* d is divisible by x */
sbin/unwind/libunbound/util/random.c
228
while(d <= v)
sbin/unwind/libunbound/util/storage/lookup3.c
1013
uint32_t c[HASHSTATE], d[HASHSTATE], i=0, j=0, k, l, m=0, z;
sbin/unwind/libunbound/util/storage/lookup3.c
1043
d[0] = hashlittle(b, hlen, m);
sbin/unwind/libunbound/util/storage/lookup3.c
1047
e[l] &= (c[l]^d[l]);
sbin/unwind/libunbound/util/storage/lookup3.c
1048
f[l] &= ~(c[l]^d[l]);
sbin/unwind/libunbound/util/storage/lookup3.c
1051
x[l] &= d[l];
sbin/unwind/libunbound/util/storage/lookup3.c
1052
y[l] &= ~d[l];
sbin/unwind/libunbound/util/storage/lruhash.c
102
void *d;
sbin/unwind/libunbound/util/storage/lruhash.c
110
d = p->data;
sbin/unwind/libunbound/util/storage/lruhash.c
112
(*table->deldatafunc)(d, table->cb_arg);
sbin/unwind/libunbound/util/storage/lruhash.c
185
struct lruhash_entry* d;
sbin/unwind/libunbound/util/storage/lruhash.c
196
d = table->lru_end;
sbin/unwind/libunbound/util/storage/lruhash.c
199
log_assert(d && d->lru_prev);
sbin/unwind/libunbound/util/storage/lruhash.c
200
table->lru_end = d->lru_prev;
sbin/unwind/libunbound/util/storage/lruhash.c
201
d->lru_prev->lru_next = NULL;
sbin/unwind/libunbound/util/storage/lruhash.c
203
bin = &table->array[d->hash & table->size_mask];
sbin/unwind/libunbound/util/storage/lruhash.c
206
bin_overflow_remove(bin, d);
sbin/unwind/libunbound/util/storage/lruhash.c
207
d->overflow_next = *list;
sbin/unwind/libunbound/util/storage/lruhash.c
208
*list = d;
sbin/unwind/libunbound/util/storage/lruhash.c
209
lock_rw_wrlock(&d->lock);
sbin/unwind/libunbound/util/storage/lruhash.c
210
table->space_used -= table->sizefunc(d->key, d->data);
sbin/unwind/libunbound/util/storage/lruhash.c
212
(*table->markdelfunc)(d->key);
sbin/unwind/libunbound/util/storage/lruhash.c
213
lock_rw_unlock(&d->lock);
sbin/unwind/libunbound/util/storage/lruhash.c
356
void* d = reclaimlist->data;
sbin/unwind/libunbound/util/storage/lruhash.c
358
(*table->deldatafunc)(d, cb_arg);
sbin/unwind/libunbound/util/storage/lruhash.c
390
void *d;
sbin/unwind/libunbound/util/storage/lruhash.c
417
d = entry->data;
sbin/unwind/libunbound/util/storage/lruhash.c
419
(*table->deldatafunc)(d, table->cb_arg);
sbin/unwind/libunbound/util/storage/lruhash.c
427
void *d;
sbin/unwind/libunbound/util/storage/lruhash.c
433
d = p->data;
sbin/unwind/libunbound/util/storage/lruhash.c
438
(*table->deldatafunc)(d, table->cb_arg);
sbin/unwind/libunbound/util/storage/lruhash.c
558
void* d = reclaimlist->data;
sbin/unwind/libunbound/util/storage/lruhash.c
560
(*table->deldatafunc)(d, cb_arg);
sbin/unwind/libunbound/util/storage/lruhash.c
588
void* d = reclaimlist->data;
sbin/unwind/libunbound/util/storage/lruhash.c
590
(*table->deldatafunc)(d, cb_arg);
sbin/unwind/libunbound/util/storage/lruhash.c
697
void* d = reclaimlist->data;
sbin/unwind/libunbound/util/storage/lruhash.c
699
(*table->deldatafunc)(d, cb_arg);
sbin/unwind/libunbound/util/storage/slabhash.c
196
static void deldata(struct slabhash_testdata* d) {free(d);}
sbin/unwind/libunbound/util/timeval_func.c
47
timeval_subtract(struct timeval* d, const struct timeval* end, const struct timeval* start)
sbin/unwind/libunbound/util/timeval_func.c
51
d->tv_sec = end->tv_sec - start->tv_sec;
sbin/unwind/libunbound/util/timeval_func.c
54
d->tv_sec--;
sbin/unwind/libunbound/util/timeval_func.c
56
d->tv_usec = end_usec - start->tv_usec;
sbin/unwind/libunbound/util/timeval_func.c
62
timeval_add(struct timeval* d, const struct timeval* add)
sbin/unwind/libunbound/util/timeval_func.c
65
d->tv_sec += add->tv_sec;
sbin/unwind/libunbound/util/timeval_func.c
66
d->tv_usec += add->tv_usec;
sbin/unwind/libunbound/util/timeval_func.c
67
if(d->tv_usec >= 1000000 ) {
sbin/unwind/libunbound/util/timeval_func.c
68
d->tv_usec -= 1000000;
sbin/unwind/libunbound/util/timeval_func.c
69
d->tv_sec++;
sbin/unwind/libunbound/util/timeval_func.c
76
timeval_divide(struct timeval* avg, const struct timeval* sum, long long d)
sbin/unwind/libunbound/util/timeval_func.c
80
if(d <= 0) {
sbin/unwind/libunbound/util/timeval_func.c
85
avg->tv_sec = sum->tv_sec / d;
sbin/unwind/libunbound/util/timeval_func.c
86
avg->tv_usec = sum->tv_usec / d;
sbin/unwind/libunbound/util/timeval_func.c
88
leftover = sum->tv_sec - avg->tv_sec*d;
sbin/unwind/libunbound/util/timeval_func.c
91
avg->tv_usec += (((long long)leftover)*((long long)1000000))/d;
sbin/unwind/libunbound/util/timeval_func.h
50
void timeval_subtract(struct timeval* d, const struct timeval* end, const struct timeval* start);
sbin/unwind/libunbound/util/timeval_func.h
51
void timeval_add(struct timeval* d, const struct timeval* add);
sbin/unwind/libunbound/util/timeval_func.h
52
void timeval_divide(struct timeval* avg, const struct timeval* sum, long long d);
sbin/unwind/libunbound/util/tube.c
291
ssize_t r, d;
sbin/unwind/libunbound/util/tube.c
307
d = r;
sbin/unwind/libunbound/util/tube.c
308
while(d != (ssize_t)sizeof(len)) {
sbin/unwind/libunbound/util/tube.c
309
if((r=write(fd, ((char*)&len)+d, sizeof(len)-d)) == -1) {
sbin/unwind/libunbound/util/tube.c
316
d += r;
sbin/unwind/libunbound/util/tube.c
318
d = 0;
sbin/unwind/libunbound/util/tube.c
319
while(d != (ssize_t)len) {
sbin/unwind/libunbound/util/tube.c
320
if((r=write(fd, buf+d, len-d)) == -1) {
sbin/unwind/libunbound/util/tube.c
327
d += r;
sbin/unwind/libunbound/util/tube.c
337
ssize_t r, d;
sbin/unwind/libunbound/util/tube.c
356
d = r;
sbin/unwind/libunbound/util/tube.c
357
while(d != (ssize_t)sizeof(*len)) {
sbin/unwind/libunbound/util/tube.c
358
if((r=read(fd, ((char*)len)+d, sizeof(*len)-d)) == -1) {
sbin/unwind/libunbound/util/tube.c
367
d += r;
sbin/unwind/libunbound/util/tube.c
380
d = 0;
sbin/unwind/libunbound/util/tube.c
381
while(d < (ssize_t)*len) {
sbin/unwind/libunbound/util/tube.c
382
if((r=read(fd, (*buf)+d, (size_t)((ssize_t)*len)-d)) == -1) {
sbin/unwind/libunbound/util/tube.c
393
d += r;
sbin/unwind/libunbound/validator/autotrust.c
1286
rrsig_get_expiry(uint8_t* d, size_t len)
sbin/unwind/libunbound/validator/autotrust.c
1291
return sldns_read_uint32(d+2+8);
sbin/unwind/libunbound/validator/autotrust.c
1478
struct packed_rrset_data* d = (struct packed_rrset_data*)k->entry.data;
sbin/unwind/libunbound/validator/autotrust.c
1479
return d->ttl;
sbin/unwind/libunbound/validator/autotrust.c
1592
int d = val_favorite_ds_algo(ds_rrset);
sbin/unwind/libunbound/validator/autotrust.c
1598
ds_get_digest_algo(ds_rrset, ds_idx) != d)
sbin/unwind/libunbound/validator/val_anchor.c
1305
struct packed_rrset_data* d=(struct packed_rrset_data*)
sbin/unwind/libunbound/validator/val_anchor.c
1307
for(i=0; i<d->count; i++) {
sbin/unwind/libunbound/validator/val_anchor.c
1313
struct packed_rrset_data* d=(struct packed_rrset_data*)
sbin/unwind/libunbound/validator/val_anchor.c
1315
for(i=0; i<d->count; i++) {
sbin/unwind/libunbound/validator/val_kcache.c
132
struct key_entry_data* d = (struct key_entry_data*)
sbin/unwind/libunbound/validator/val_kcache.c
134
if(now <= d->ttl) {
sbin/unwind/libunbound/validator/val_kentry.c
123
struct key_entry_data *d = (struct key_entry_data*)
sbin/unwind/libunbound/validator/val_kentry.c
126
newd = regional_alloc_init(region, d, sizeof(*d));
sbin/unwind/libunbound/validator/val_kentry.c
130
if(d->rrset_data) {
sbin/unwind/libunbound/validator/val_kentry.c
132
d->rrset_data,
sbin/unwind/libunbound/validator/val_kentry.c
133
packed_rrset_sizeof(d->rrset_data));
sbin/unwind/libunbound/validator/val_kentry.c
138
if(d->reason) {
sbin/unwind/libunbound/validator/val_kentry.c
139
newd->reason = regional_strdup(region, d->reason);
sbin/unwind/libunbound/validator/val_kentry.c
143
if(d->algo) {
sbin/unwind/libunbound/validator/val_kentry.c
145
(char*)d->algo);
sbin/unwind/libunbound/validator/val_kentry.c
172
struct key_entry_data *d = (struct key_entry_data*)
sbin/unwind/libunbound/validator/val_kentry.c
175
newd = memdup(d, sizeof(*d));
sbin/unwind/libunbound/validator/val_kentry.c
182
if(d->rrset_data) {
sbin/unwind/libunbound/validator/val_kentry.c
183
newd->rrset_data = memdup(d->rrset_data,
sbin/unwind/libunbound/validator/val_kentry.c
184
packed_rrset_sizeof(d->rrset_data));
sbin/unwind/libunbound/validator/val_kentry.c
193
if(copy_reason && d->reason && *d->reason != 0) {
sbin/unwind/libunbound/validator/val_kentry.c
194
newd->reason = strdup(d->reason);
sbin/unwind/libunbound/validator/val_kentry.c
205
if(d->algo) {
sbin/unwind/libunbound/validator/val_kentry.c
206
newd->algo = (uint8_t*)strdup((char*)d->algo);
sbin/unwind/libunbound/validator/val_kentry.c
224
struct key_entry_data* d = (struct key_entry_data*)kkey->entry.data;
sbin/unwind/libunbound/validator/val_kentry.c
225
return (!d->isbad && d->rrset_data == NULL);
sbin/unwind/libunbound/validator/val_kentry.c
231
struct key_entry_data* d = (struct key_entry_data*)kkey->entry.data;
sbin/unwind/libunbound/validator/val_kentry.c
232
return (!d->isbad && d->rrset_data != NULL);
sbin/unwind/libunbound/validator/val_kentry.c
238
struct key_entry_data* d = (struct key_entry_data*)kkey->entry.data;
sbin/unwind/libunbound/validator/val_kentry.c
239
return (int)(d->isbad);
sbin/unwind/libunbound/validator/val_kentry.c
245
struct key_entry_data* d = (struct key_entry_data*)kkey->entry.data;
sbin/unwind/libunbound/validator/val_kentry.c
246
return d->reason;
sbin/unwind/libunbound/validator/val_kentry.c
252
struct key_entry_data* d = (struct key_entry_data*)kkey->entry.data;
sbin/unwind/libunbound/validator/val_kentry.c
253
return d->reason_bogus;
sbin/unwind/libunbound/validator/val_kentry.c
261
struct key_entry_key** k, struct key_entry_data** d)
sbin/unwind/libunbound/validator/val_kentry.c
273
*d = regional_alloc(region, sizeof(**d));
sbin/unwind/libunbound/validator/val_kentry.c
274
if(!*d)
sbin/unwind/libunbound/validator/val_kentry.c
276
(*k)->entry.data = *d;
sbin/unwind/libunbound/validator/val_kentry.c
287
struct key_entry_data* d;
sbin/unwind/libunbound/validator/val_kentry.c
288
if(!key_entry_setup(region, name, namelen, dclass, &k, &d))
sbin/unwind/libunbound/validator/val_kentry.c
290
d->ttl = now + ttl;
sbin/unwind/libunbound/validator/val_kentry.c
291
d->isbad = 0;
sbin/unwind/libunbound/validator/val_kentry.c
292
d->reason = (!reason || *reason == 0)
sbin/unwind/libunbound/validator/val_kentry.c
295
d->reason_bogus = reason_bogus;
sbin/unwind/libunbound/validator/val_kentry.c
296
d->rrset_type = LDNS_RR_TYPE_DNSKEY;
sbin/unwind/libunbound/validator/val_kentry.c
297
d->rrset_data = NULL;
sbin/unwind/libunbound/validator/val_kentry.c
298
d->algo = NULL;
sbin/unwind/libunbound/validator/val_kentry.c
310
struct key_entry_data* d;
sbin/unwind/libunbound/validator/val_kentry.c
313
if(!key_entry_setup(region, name, namelen, dclass, &k, &d))
sbin/unwind/libunbound/validator/val_kentry.c
315
d->ttl = rd->ttl + now;
sbin/unwind/libunbound/validator/val_kentry.c
316
d->isbad = 0;
sbin/unwind/libunbound/validator/val_kentry.c
317
d->reason = (!reason || *reason == 0)
sbin/unwind/libunbound/validator/val_kentry.c
320
d->reason_bogus = reason_bogus;
sbin/unwind/libunbound/validator/val_kentry.c
321
d->rrset_type = ntohs(rrset->rk.type);
sbin/unwind/libunbound/validator/val_kentry.c
322
d->rrset_data = (struct packed_rrset_data*)regional_alloc_init(region,
sbin/unwind/libunbound/validator/val_kentry.c
324
if(!d->rrset_data)
sbin/unwind/libunbound/validator/val_kentry.c
327
d->algo = (uint8_t*)regional_strdup(region, (char*)sigalg);
sbin/unwind/libunbound/validator/val_kentry.c
328
if(!d->algo)
sbin/unwind/libunbound/validator/val_kentry.c
330
} else d->algo = NULL;
sbin/unwind/libunbound/validator/val_kentry.c
331
packed_rrset_ptr_fixup(d->rrset_data);
sbin/unwind/libunbound/validator/val_kentry.c
342
struct key_entry_data* d;
sbin/unwind/libunbound/validator/val_kentry.c
343
if(!key_entry_setup(region, name, namelen, dclass, &k, &d))
sbin/unwind/libunbound/validator/val_kentry.c
345
d->ttl = now + ttl;
sbin/unwind/libunbound/validator/val_kentry.c
346
d->isbad = 1;
sbin/unwind/libunbound/validator/val_kentry.c
347
d->reason = (!reason || *reason == 0)
sbin/unwind/libunbound/validator/val_kentry.c
350
d->reason_bogus = reason_bogus;
sbin/unwind/libunbound/validator/val_kentry.c
351
d->rrset_type = LDNS_RR_TYPE_DNSKEY;
sbin/unwind/libunbound/validator/val_kentry.c
352
d->rrset_data = NULL;
sbin/unwind/libunbound/validator/val_kentry.c
353
d->algo = NULL;
sbin/unwind/libunbound/validator/val_kentry.c
360
struct key_entry_data* d = (struct key_entry_data*)kkey->entry.data;
sbin/unwind/libunbound/validator/val_kentry.c
363
if(!d || !d->rrset_data)
sbin/unwind/libunbound/validator/val_kentry.c
373
rrk->rk.type = htons(d->rrset_type);
sbin/unwind/libunbound/validator/val_kentry.c
376
rrd = regional_alloc_init(region, d->rrset_data,
sbin/unwind/libunbound/validator/val_kentry.c
377
packed_rrset_sizeof(d->rrset_data));
sbin/unwind/libunbound/validator/val_kentry.c
415
struct packed_rrset_data* d;
sbin/unwind/libunbound/validator/val_kentry.c
421
d = ((struct key_entry_data*)kkey->entry.data)->rrset_data;
sbin/unwind/libunbound/validator/val_kentry.c
422
for(i=0; i<d->count; i++) {
sbin/unwind/libunbound/validator/val_kentry.c
423
if(!(kd_get_flags(d, i) & DNSKEY_BIT_ZSK))
sbin/unwind/libunbound/validator/val_kentry.c
425
if(i==0 || dnskey_get_keysize(d, i) < bits)
sbin/unwind/libunbound/validator/val_kentry.c
426
bits = dnskey_get_keysize(d, i);
sbin/unwind/libunbound/validator/val_neg.c
1078
struct packed_rrset_data* d;
sbin/unwind/libunbound/validator/val_neg.c
1080
d = k->entry.data;
sbin/unwind/libunbound/validator/val_neg.c
1082
if( ! ( d->security == sec_status_secure ||
sbin/unwind/libunbound/validator/val_neg.c
1083
(d->security == sec_status_unchecked &&
sbin/unwind/libunbound/validator/val_neg.c
1084
d->rrsig_count > 0) ) ) {
sbin/unwind/libunbound/validator/val_neg.c
123
struct val_neg_data* d = (struct val_neg_data*)n;
sbin/unwind/libunbound/validator/val_neg.c
124
free(d->name);
sbin/unwind/libunbound/validator/val_neg.c
125
free(d);
sbin/unwind/libunbound/validator/val_neg.c
333
uint8_t* d;
sbin/unwind/libunbound/validator/val_neg.c
338
d = rep->rrsets[i]->rk.dname;
sbin/unwind/libunbound/validator/val_neg.c
341
while(!dname_is_root(d)) {
sbin/unwind/libunbound/validator/val_neg.c
343
dname_remove_label(&d, &len);
sbin/unwind/libunbound/validator/val_neg.c
357
static size_t calc_zone_need(uint8_t* d, size_t len)
sbin/unwind/libunbound/validator/val_neg.c
360
while(!dname_is_root(d)) {
sbin/unwind/libunbound/validator/val_neg.c
362
dname_remove_label(&d, &len);
sbin/unwind/libunbound/validator/val_neg.c
587
struct packed_rrset_data* d;
sbin/unwind/libunbound/validator/val_neg.c
592
d = (struct packed_rrset_data*)rep->rrsets[i]->
sbin/unwind/libunbound/validator/val_neg.c
594
if(d->security == sec_status_secure)
sbin/unwind/libunbound/validator/val_neg.c
683
struct packed_rrset_data* d = (struct packed_rrset_data*)nsec->
sbin/unwind/libunbound/validator/val_neg.c
692
if(!d || d->count == 0 || d->rr_len[0] < 2+1)
sbin/unwind/libunbound/validator/val_neg.c
695
end = d->rr_data[0]+2;
sbin/unwind/libunbound/validator/val_neg.c
696
end_len = dname_valid(end, d->rr_len[0]-2);
sbin/unwind/libunbound/validator/val_neg.c
758
struct packed_rrset_data* d;
sbin/unwind/libunbound/validator/val_neg.c
765
d = (struct packed_rrset_data*)nsec->entry.data;
sbin/unwind/libunbound/validator/val_neg.c
766
if( !(d->security == sec_status_secure ||
sbin/unwind/libunbound/validator/val_neg.c
767
(d->security == sec_status_unchecked && d->rrsig_count > 0)))
sbin/unwind/libunbound/validator/val_neg.c
868
struct packed_rrset_data* d;
sbin/unwind/libunbound/validator/val_neg.c
873
d = (struct packed_rrset_data*)rep->rrsets[i]->
sbin/unwind/libunbound/validator/val_neg.c
876
if(d->rrsig_count != 0) {
sbin/unwind/libunbound/validator/val_nsec.c
102
if(!d || d->count == 0 || d->rr_len[0] < 2+1)
sbin/unwind/libunbound/validator/val_nsec.c
104
len = dname_valid(d->rr_data[0]+2, d->rr_len[0]-2);
sbin/unwind/libunbound/validator/val_nsec.c
107
return nsecbitmap_has_type_rdata(d->rr_data[0]+2+len,
sbin/unwind/libunbound/validator/val_nsec.c
108
d->rr_len[0]-2-len, type);
sbin/unwind/libunbound/validator/val_nsec.c
122
struct packed_rrset_data* d = (struct packed_rrset_data*)nsec->
sbin/unwind/libunbound/validator/val_nsec.c
124
if(!d || d->count == 0 || d->rr_len[0] < 2+1) {
sbin/unwind/libunbound/validator/val_nsec.c
129
*nm = d->rr_data[0]+2;
sbin/unwind/libunbound/validator/val_nsec.c
130
*ln = dname_valid(*nm, d->rr_len[0]-2);
sbin/unwind/libunbound/validator/val_nsec.c
182
struct packed_rrset_data* d = (struct packed_rrset_data*)
sbin/unwind/libunbound/validator/val_nsec.c
185
if(!d) return 0;
sbin/unwind/libunbound/validator/val_nsec.c
186
if(d->security == sec_status_secure)
sbin/unwind/libunbound/validator/val_nsec.c
189
if(d->security == sec_status_secure)
sbin/unwind/libunbound/validator/val_nsec.c
191
d->security = val_verify_rrset_entry(env, ve, nsec, kkey, reason,
sbin/unwind/libunbound/validator/val_nsec.c
194
if(d->security == sec_status_secure) {
sbin/unwind/libunbound/validator/val_nsec.c
56
struct packed_rrset_data* d = (struct packed_rrset_data*)k->entry.data;
sbin/unwind/libunbound/validator/val_nsec.c
57
return d->ttl;
sbin/unwind/libunbound/validator/val_nsec.c
99
struct packed_rrset_data* d = (struct packed_rrset_data*)nsec->
sbin/unwind/libunbound/validator/val_nsec3.c
122
struct packed_rrset_data* d = (struct packed_rrset_data*)
sbin/unwind/libunbound/validator/val_nsec3.c
124
if(!d) return 0;
sbin/unwind/libunbound/validator/val_nsec3.c
125
return d->count;
sbin/unwind/libunbound/validator/val_nsec3.c
132
struct packed_rrset_data* d = (struct packed_rrset_data*)
sbin/unwind/libunbound/validator/val_nsec3.c
134
log_assert(d && r < (int)d->count);
sbin/unwind/libunbound/validator/val_nsec3.c
135
if(d->rr_len[r] < 2+2)
sbin/unwind/libunbound/validator/val_nsec3.c
137
return (int)(d->rr_data[r][2+1] & NSEC3_UNKNOWN_FLAGS);
sbin/unwind/libunbound/validator/val_nsec3.c
143
struct packed_rrset_data* d = (struct packed_rrset_data*)
sbin/unwind/libunbound/validator/val_nsec3.c
145
log_assert(d && r < (int)d->count);
sbin/unwind/libunbound/validator/val_nsec3.c
146
if(d->rr_len[r] < 2+2)
sbin/unwind/libunbound/validator/val_nsec3.c
148
return (int)(d->rr_data[r][2+1] & NSEC3_OPTOUT);
sbin/unwind/libunbound/validator/val_nsec3.c
1514
struct packed_rrset_data* d;
sbin/unwind/libunbound/validator/val_nsec3.c
1518
d = (struct packed_rrset_data*)list[i]->entry.data;
sbin/unwind/libunbound/validator/val_nsec3.c
1521
if(d->security == sec_status_secure)
sbin/unwind/libunbound/validator/val_nsec3.c
1524
if(d->security == sec_status_secure)
sbin/unwind/libunbound/validator/val_nsec3.c
1526
d->security = val_verify_rrset_entry(env, ve, list[i], kkey,
sbin/unwind/libunbound/validator/val_nsec3.c
1529
if(d->security != sec_status_secure) {
sbin/unwind/libunbound/validator/val_nsec3.c
155
struct packed_rrset_data* d = (struct packed_rrset_data*)
sbin/unwind/libunbound/validator/val_nsec3.c
157
log_assert(d && r < (int)d->count);
sbin/unwind/libunbound/validator/val_nsec3.c
158
if(d->rr_len[r] < 2+1)
sbin/unwind/libunbound/validator/val_nsec3.c
160
return (int)(d->rr_data[r][2+0]);
sbin/unwind/libunbound/validator/val_nsec3.c
167
struct packed_rrset_data* d = (struct packed_rrset_data*)
sbin/unwind/libunbound/validator/val_nsec3.c
169
log_assert(d && r < (int)d->count);
sbin/unwind/libunbound/validator/val_nsec3.c
170
if(d->rr_len[r] < 2+1)
sbin/unwind/libunbound/validator/val_nsec3.c
172
switch(d->rr_data[r][2+0]) {
sbin/unwind/libunbound/validator/val_nsec3.c
184
struct packed_rrset_data* d = (struct packed_rrset_data*)
sbin/unwind/libunbound/validator/val_nsec3.c
186
log_assert(d && r < (int)d->count);
sbin/unwind/libunbound/validator/val_nsec3.c
187
if(d->rr_len[r] < 2+4)
sbin/unwind/libunbound/validator/val_nsec3.c
189
memmove(&i, d->rr_data[r]+2+2, sizeof(i));
sbin/unwind/libunbound/validator/val_nsec3.c
199
struct packed_rrset_data* d = (struct packed_rrset_data*)
sbin/unwind/libunbound/validator/val_nsec3.c
201
log_assert(d && r < (int)d->count);
sbin/unwind/libunbound/validator/val_nsec3.c
202
if(d->rr_len[r] < 2+5) {
sbin/unwind/libunbound/validator/val_nsec3.c
207
*saltlen = (size_t)d->rr_data[r][2+4];
sbin/unwind/libunbound/validator/val_nsec3.c
208
if(d->rr_len[r] < 2+5+(size_t)*saltlen) {
sbin/unwind/libunbound/validator/val_nsec3.c
213
*salt = d->rr_data[r]+2+5;
sbin/unwind/libunbound/validator/val_nsec3.c
234
struct packed_rrset_data* d = (struct packed_rrset_data*)
sbin/unwind/libunbound/validator/val_nsec3.c
236
log_assert(d && r < (int)d->count);
sbin/unwind/libunbound/validator/val_nsec3.c
237
if(d->rr_len[r] < 2+5) {
sbin/unwind/libunbound/validator/val_nsec3.c
242
saltlen = (size_t)d->rr_data[r][2+4];
sbin/unwind/libunbound/validator/val_nsec3.c
243
if(d->rr_len[r] < 2+5+saltlen+1) {
sbin/unwind/libunbound/validator/val_nsec3.c
248
*nextlen = (size_t)d->rr_data[r][2+5+saltlen];
sbin/unwind/libunbound/validator/val_nsec3.c
249
if(d->rr_len[r] < 2+5+saltlen+1+*nextlen) {
sbin/unwind/libunbound/validator/val_nsec3.c
254
*next = d->rr_data[r]+2+5+saltlen+1;
sbin/unwind/libunbound/validator/val_nsec3.c
295
struct packed_rrset_data* d = (struct packed_rrset_data*)
sbin/unwind/libunbound/validator/val_nsec3.c
297
log_assert(d && r < (int)d->count);
sbin/unwind/libunbound/validator/val_nsec3.c
300
if(d->rr_len[r] < skiplen+1)
sbin/unwind/libunbound/validator/val_nsec3.c
302
skiplen += 1+(size_t)d->rr_data[r][skiplen];
sbin/unwind/libunbound/validator/val_nsec3.c
304
if(d->rr_len[r] < skiplen+1)
sbin/unwind/libunbound/validator/val_nsec3.c
306
skiplen += 1+(size_t)d->rr_data[r][skiplen];
sbin/unwind/libunbound/validator/val_nsec3.c
307
if(d->rr_len[r] < skiplen)
sbin/unwind/libunbound/validator/val_nsec3.c
309
bitlen = d->rr_len[r] - skiplen;
sbin/unwind/libunbound/validator/val_nsec3.c
310
bitmap = d->rr_data[r]+skiplen;
sbin/unwind/libunbound/validator/val_secalgo.c
474
unsigned char* d = *sig;
sbin/unwind/libunbound/validator/val_secalgo.c
481
while(r_rem < bnsize-1 && d[r_rem] == 0)
sbin/unwind/libunbound/validator/val_secalgo.c
484
while(s_rem < bnsize-1 && d[bnsize+s_rem] == 0)
sbin/unwind/libunbound/validator/val_secalgo.c
487
r_high = ((d[0+r_rem]&0x80)?1:0);
sbin/unwind/libunbound/validator/val_secalgo.c
488
s_high = ((d[bnsize+s_rem]&0x80)?1:0);
sbin/unwind/libunbound/validator/val_secalgo.c
504
memmove(p, d+r_rem, (size_t)bnsize-r_rem);
sbin/unwind/libunbound/validator/val_secalgo.c
514
memmove(p, d+bnsize+s_rem, (size_t)bnsize-s_rem);
sbin/unwind/libunbound/validator/val_sigcrypt.c
1002
if(d->rr_len[i] < d->rr_len[j])
sbin/unwind/libunbound/validator/val_sigcrypt.c
1004
if(d->rr_len[i] > d->rr_len[j])
sbin/unwind/libunbound/validator/val_sigcrypt.c
102
struct packed_rrset_data* d = (struct packed_rrset_data*)k->entry.data;
sbin/unwind/libunbound/validator/val_sigcrypt.c
103
return d->rrsig_count;
sbin/unwind/libunbound/validator/val_sigcrypt.c
1031
canonical_sort(struct ub_packed_rrset_key* rrset, struct packed_rrset_data* d,
sbin/unwind/libunbound/validator/val_sigcrypt.c
1036
for(i=0; i<d->count; i++) {
sbin/unwind/libunbound/validator/val_sigcrypt.c
116
struct packed_rrset_data* d = (struct packed_rrset_data*)k->entry.data;
sbin/unwind/libunbound/validator/val_sigcrypt.c
117
log_assert(sig_idx < d->rrsig_count);
sbin/unwind/libunbound/validator/val_sigcrypt.c
118
if(d->rr_len[d->count + sig_idx] < 2+18)
sbin/unwind/libunbound/validator/val_sigcrypt.c
120
memmove(&t, d->rr_data[d->count + sig_idx]+2+16, 2);
sbin/unwind/libunbound/validator/val_sigcrypt.c
1275
struct packed_rrset_data* d = (struct packed_rrset_data*)k->entry.data;
sbin/unwind/libunbound/validator/val_sigcrypt.c
1286
if(d->count > RR_COUNT_MAX)
sbin/unwind/libunbound/validator/val_sigcrypt.c
1288
rrs = regional_alloc(region, sizeof(struct canon_rr)*d->count);
sbin/unwind/libunbound/validator/val_sigcrypt.c
1294
canonical_sort(k, d, *sortree, rrs);
sbin/unwind/libunbound/validator/val_sigcrypt.c
1304
+ d->rr_len[walk->rr_idx]) {
sbin/unwind/libunbound/validator/val_sigcrypt.c
1317
sldns_buffer_write(buf, d->rr_data[walk->rr_idx],
sbin/unwind/libunbound/validator/val_sigcrypt.c
1318
d->rr_len[walk->rr_idx]);
sbin/unwind/libunbound/validator/val_sigcrypt.c
1319
canonicalize_rdata(buf, k, d->rr_len[walk->rr_idx]);
sbin/unwind/libunbound/validator/val_sigcrypt.c
133
struct packed_rrset_data* d = (struct packed_rrset_data*)k->entry.data;
sbin/unwind/libunbound/validator/val_sigcrypt.c
134
log_assert(sig_idx < d->rrsig_count);
sbin/unwind/libunbound/validator/val_sigcrypt.c
1344
struct packed_rrset_data* d = (struct packed_rrset_data*)k->entry.data;
sbin/unwind/libunbound/validator/val_sigcrypt.c
135
if(d->rr_len[d->count + sig_idx] < 2+3)
sbin/unwind/libunbound/validator/val_sigcrypt.c
1354
if(d->count > RR_COUNT_MAX)
sbin/unwind/libunbound/validator/val_sigcrypt.c
1356
rrs = regional_alloc(region, sizeof(struct canon_rr)*d->count);
sbin/unwind/libunbound/validator/val_sigcrypt.c
1361
canonical_sort(k, d, sortree, rrs);
sbin/unwind/libunbound/validator/val_sigcrypt.c
1367
+ d->rr_len[walk->rr_idx]) {
sbin/unwind/libunbound/validator/val_sigcrypt.c
137
return (int)d->rr_data[d->count + sig_idx][2+2];
sbin/unwind/libunbound/validator/val_sigcrypt.c
1383
sldns_buffer_write_u32(buf, d->rr_ttl[walk->rr_idx]);
sbin/unwind/libunbound/validator/val_sigcrypt.c
1384
sldns_buffer_write(buf, d->rr_data[walk->rr_idx],
sbin/unwind/libunbound/validator/val_sigcrypt.c
1385
d->rr_len[walk->rr_idx]);
sbin/unwind/libunbound/validator/val_sigcrypt.c
1386
canonicalize_rdata(buf, k, d->rr_len[walk->rr_idx]);
sbin/unwind/libunbound/validator/val_sigcrypt.c
145
struct packed_rrset_data* d = (struct packed_rrset_data*)k->entry.data;
sbin/unwind/libunbound/validator/val_sigcrypt.c
146
log_assert(d && idx < (d->count + d->rrsig_count));
sbin/unwind/libunbound/validator/val_sigcrypt.c
147
*rdata = d->rr_data[idx];
sbin/unwind/libunbound/validator/val_sigcrypt.c
148
*len = d->rr_len[idx];
sbin/unwind/libunbound/validator/val_sigcrypt.c
1495
struct packed_rrset_data* d =
sbin/unwind/libunbound/validator/val_sigcrypt.c
1521
if(MIN_TTL > (time_t)origttl && d->ttl > MIN_TTL) {
sbin/unwind/libunbound/validator/val_sigcrypt.c
1524
d->ttl = MIN_TTL;
sbin/unwind/libunbound/validator/val_sigcrypt.c
1526
else if(MIN_TTL <= origttl && d->ttl > (time_t)origttl) {
sbin/unwind/libunbound/validator/val_sigcrypt.c
1529
d->ttl = origttl;
sbin/unwind/libunbound/validator/val_sigcrypt.c
1532
if(expittl > 0 && d->ttl > (time_t)expittl) {
sbin/unwind/libunbound/validator/val_sigcrypt.c
1535
d->ttl = expittl;
sbin/unwind/libunbound/validator/val_sigcrypt.c
790
canonical_compare_byfield(struct packed_rrset_data* d,
sbin/unwind/libunbound/validator/val_sigcrypt.c
800
uint8_t* di = d->rr_data[i]+2; /* ptr to current rdata byte */
sbin/unwind/libunbound/validator/val_sigcrypt.c
801
uint8_t* dj = d->rr_data[j]+2;
sbin/unwind/libunbound/validator/val_sigcrypt.c
802
size_t ilen = d->rr_len[i]-2; /* length left in rdata */
sbin/unwind/libunbound/validator/val_sigcrypt.c
803
size_t jlen = d->rr_len[j]-2;
sbin/unwind/libunbound/validator/val_sigcrypt.c
90
struct packed_rrset_data* d = (struct packed_rrset_data*)
sbin/unwind/libunbound/validator/val_sigcrypt.c
92
if(!d) return 0;
sbin/unwind/libunbound/validator/val_sigcrypt.c
93
return d->count;
sbin/unwind/libunbound/validator/val_sigcrypt.c
933
struct packed_rrset_data* d = (struct packed_rrset_data*)
sbin/unwind/libunbound/validator/val_sigcrypt.c
957
if(!dname_valid(d->rr_data[i]+2, d->rr_len[i]-2) ||
sbin/unwind/libunbound/validator/val_sigcrypt.c
958
!dname_valid(d->rr_data[j]+2, d->rr_len[j]-2))
sbin/unwind/libunbound/validator/val_sigcrypt.c
960
return query_dname_compare(d->rr_data[i]+2,
sbin/unwind/libunbound/validator/val_sigcrypt.c
961
d->rr_data[j]+2);
sbin/unwind/libunbound/validator/val_sigcrypt.c
987
return canonical_compare_byfield(d, desc, i, j);
sbin/unwind/libunbound/validator/val_sigcrypt.c
995
minlen = d->rr_len[i]-2;
sbin/unwind/libunbound/validator/val_sigcrypt.c
996
if(minlen > d->rr_len[j]-2)
sbin/unwind/libunbound/validator/val_sigcrypt.c
997
minlen = d->rr_len[j]-2;
sbin/unwind/libunbound/validator/val_sigcrypt.c
998
c = memcmp(d->rr_data[i]+2, d->rr_data[j]+2, minlen);
sbin/unwind/libunbound/validator/val_utils.c
1003
struct packed_rrset_data* d = (struct packed_rrset_data*)rrset->
sbin/unwind/libunbound/validator/val_utils.c
1006
for(i = d->count; i< d->count+d->rrsig_count; i++) {
sbin/unwind/libunbound/validator/val_utils.c
1007
if(d->rr_len[i] > 2+18+len) {
sbin/unwind/libunbound/validator/val_utils.c
1009
if(!dname_valid(d->rr_data[i]+2+18, d->rr_len[i]-2-18))
sbin/unwind/libunbound/validator/val_utils.c
1011
if(query_dname_compare(name, d->rr_data[i]+2+18) == 0)
sbin/unwind/libunbound/validator/val_utils.c
1190
struct packed_rrset_data* d;
sbin/unwind/libunbound/validator/val_utils.c
1192
d = (struct packed_rrset_data*)rep->rrsets[i]->entry.data;
sbin/unwind/libunbound/validator/val_utils.c
1193
if(d->security == sec_status_unchecked &&
sbin/unwind/libunbound/validator/val_utils.c
1199
d->security = sec_status_indeterminate;
sbin/unwind/libunbound/validator/val_utils.c
1210
struct packed_rrset_data* d;
sbin/unwind/libunbound/validator/val_utils.c
1212
d = (struct packed_rrset_data*)rep->rrsets[i]->entry.data;
sbin/unwind/libunbound/validator/val_utils.c
1213
if(d->security == sec_status_unchecked &&
sbin/unwind/libunbound/validator/val_utils.c
1216
d->security = sec_status_insecure;
sbin/unwind/libunbound/validator/val_utils.c
1226
struct packed_rrset_data* d;
sbin/unwind/libunbound/validator/val_utils.c
1228
d = (struct packed_rrset_data*)rep->rrsets[i]->entry.data;
sbin/unwind/libunbound/validator/val_utils.c
1229
if(d->security == sec_status_unchecked) {
sbin/unwind/libunbound/validator/val_utils.c
1289
struct packed_rrset_data* d;
sbin/unwind/libunbound/validator/val_utils.c
1296
d = (struct packed_rrset_data*)rep->rrsets[i]->entry.data;
sbin/unwind/libunbound/validator/val_utils.c
1297
if(d && d->rrsig_count != 0) {
sbin/unwind/libunbound/validator/val_utils.c
1322
struct packed_rrset_data* d = copy->entry.data;
sbin/unwind/libunbound/validator/val_utils.c
1332
UPDATE_TTL_FROM_RRSET(msg->rep->ttl, d->ttl);
sbin/unwind/libunbound/validator/val_utils.c
190
struct packed_rrset_data* d = (struct packed_rrset_data*)
sbin/unwind/libunbound/validator/val_utils.c
193
if(d->rrsig_count == 0) {
sbin/unwind/libunbound/validator/val_utils.c
199
rrsig_get_signer(d->rr_data[d->count], d->rr_len[d->count],
sbin/unwind/libunbound/validator/val_utils.c
217
struct packed_rrset_data* d = (struct packed_rrset_data*)
sbin/unwind/libunbound/validator/val_utils.c
222
for(i=d->count; i<d->count+d->rrsig_count; i++) {
sbin/unwind/libunbound/validator/val_utils.c
223
sign = d->rr_data[i]+2+18;
sbin/unwind/libunbound/validator/val_utils.c
228
if(d->rr_len[i] > 2+19 && /* rdata, sig + root label*/
sbin/unwind/libunbound/validator/val_utils.c
388
struct packed_rrset_data* d = (struct packed_rrset_data*)
sbin/unwind/libunbound/validator/val_utils.c
390
if(!d) return 0;
sbin/unwind/libunbound/validator/val_utils.c
391
return d->count;
sbin/unwind/libunbound/validator/val_utils.c
398
struct packed_rrset_data* d = (struct packed_rrset_data*)
sbin/unwind/libunbound/validator/val_utils.c
400
if(!d) return 0;
sbin/unwind/libunbound/validator/val_utils.c
401
return d->ttl;
sbin/unwind/libunbound/validator/val_utils.c
412
struct packed_rrset_data* d = (struct packed_rrset_data*)rrset->
sbin/unwind/libunbound/validator/val_utils.c
414
if(d->security == sec_status_secure) {
sbin/unwind/libunbound/validator/val_utils.c
420
return d->security;
sbin/unwind/libunbound/validator/val_utils.c
424
if(d->security == sec_status_secure) {
sbin/unwind/libunbound/validator/val_utils.c
429
return d->security;
sbin/unwind/libunbound/validator/val_utils.c
441
if(sec > d->security) {
sbin/unwind/libunbound/validator/val_utils.c
443
d->security = sec;
sbin/unwind/libunbound/validator/val_utils.c
447
d->trust = rrset_trust_validated;
sbin/unwind/libunbound/validator/val_utils.c
453
d->ttl = ve->bogus_ttl;
sbin/unwind/libunbound/validator/val_utils.c
454
for(i=0; i<d->count+d->rrsig_count; i++)
sbin/unwind/libunbound/validator/val_utils.c
455
d->rr_ttl[i] = ve->bogus_ttl;
sbin/unwind/libunbound/validator/val_utils.c
570
int d, digest_algo = 0; /* DS digest algo 0 is not used. */
sbin/unwind/libunbound/validator/val_utils.c
577
d = ds_get_digest_algo(ds_rrset, i);
sbin/unwind/libunbound/validator/val_utils.c
578
if(d > digest_algo)
sbin/unwind/libunbound/validator/val_utils.c
579
digest_algo = d;
sbin/unwind/libunbound/validator/val_utils.c
930
rrsig_get_labcount(struct packed_rrset_data* d, size_t sig)
sbin/unwind/libunbound/validator/val_utils.c
932
if(d->rr_len[sig] < 2+4)
sbin/unwind/libunbound/validator/val_utils.c
934
return d->rr_data[sig][2+3];
sbin/unwind/libunbound/validator/val_utils.c
941
struct packed_rrset_data* d = (struct packed_rrset_data*)rrset->
sbin/unwind/libunbound/validator/val_utils.c
947
if(d->rrsig_count == 0) {
sbin/unwind/libunbound/validator/val_utils.c
950
labcount = rrsig_get_labcount(d, d->count + 0);
sbin/unwind/libunbound/validator/val_utils.c
952
for(i=1; i<d->rrsig_count; i++) {
sbin/unwind/libunbound/validator/val_utils.c
953
if(labcount != rrsig_get_labcount(d, d->count + i)) {
sbin/unwind/libunbound/validator/validator.c
1001
&& d->rrsig_count == 0) {
sbin/unwind/libunbound/validator/validator.c
998
struct packed_rrset_data* d = (struct packed_rrset_data*)
sbin/wsconsctl/mousecfg.c
208
int i, n, d, err;
sbin/wsconsctl/mousecfg.c
210
d = 0;
sbin/wsconsctl/mousecfg.c
215
d |= (cfg_buffer[n].value != field->params[i].value);
sbin/wsconsctl/mousecfg.c
217
if (!d)
sys/arch/alpha/alpha/pmap.c
2116
caddr_t s, d;
sys/arch/alpha/alpha/pmap.c
2123
d = (caddr_t)ALPHA_PHYS_TO_K0SEG(dst);
sys/arch/alpha/alpha/pmap.c
2124
memcpy(d, s, PAGE_SIZE);
sys/arch/alpha/include/loadfile_machdep.h
41
#define BCOPY(s, d, c) bcopy((void *)s, (void *)LOADADDR(d), (c))
sys/arch/alpha/include/loadfile_machdep.h
42
#define BZERO(d, c) bzero((void *)LOADADDR(d), (c))
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
124
int d;
sys/arch/alpha/pci/irongate_pci.c
133
irongate_decompose_tag(ipv, tag, NULL, &d, NULL);
sys/arch/alpha/pci/irongate_pci.c
134
if (d == IRONGATE_PCIHOST_DEV)
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
127
#define alpha_pciide_compat_intr_establish(c, d, p, ch, f, a) \
sys/arch/alpha/pci/pci_machdep.h
129
(*(c)->pc_pciide_compat_intr_establish)((c)->pc_conf_v, (d), (p), \
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_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/alpha/tc/mcclock_ioasic.c
71
struct ioasicdev_attach_args *d = aux;
sys/arch/alpha/tc/mcclock_ioasic.c
73
if (strncmp("TOY_RTC ", d->iada_modname, TC_ROM_LLEN))
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/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/loadfile_machdep.h
52
#define BCOPY(s, d, c) memcpy((void *)LOADADDR(d), (void *)(s), (c))
sys/arch/amd64/include/loadfile_machdep.h
53
#define BZERO(d, c) memset((void *)LOADADDR(d), 0, (c))
sys/arch/amd64/pci/acpipci.c
100
int i, d = 0;
sys/arch/amd64/pci/acpipci.c
106
if (d == domain)
sys/arch/amd64/pci/acpipci.c
108
d++;
sys/arch/amd64/stand/efiboot/diskprobe.c
201
int d = bdi->bios_number;
sys/arch/amd64/stand/efiboot/diskprobe.c
202
int u = d & 0x7f;
sys/arch/amd64/stand/efiboot/diskprobe.c
209
c = (d & 0x80) ? 'h' : 'f';
sys/arch/amd64/stand/efiboot/diskprobe.c
213
c, u, d,
sys/arch/amd64/stand/libsa/diskprobe.c
309
int d = bdi->bios_number;
sys/arch/amd64/stand/libsa/diskprobe.c
310
int u = d & 0x7f;
sys/arch/amd64/stand/libsa/diskprobe.c
317
c = (d & 0x80) ? 'h' : 'f';
sys/arch/amd64/stand/libsa/diskprobe.c
321
c, u, d,
sys/arch/amd64/stand/libsa/pxe.c
125
pxesendudp(struct iodesc *d, void *pkt, size_t len)
sys/arch/amd64/stand/libsa/pxe.c
131
uw->ip = d->destip.s_addr;
sys/arch/amd64/stand/libsa/pxe.c
133
uw->src_port = d->myport;
sys/arch/amd64/stand/libsa/pxe.c
134
uw->dst_port = d->destport;
sys/arch/amd64/stand/libsa/pxe.c
157
pxereadudp(struct iodesc *d, void *pkt, size_t len, time_t tleft)
sys/arch/amd64/stand/libsa/pxe.c
168
ur->dest_ip = d->myip.s_addr;
sys/arch/amd64/stand/libsa/pxe.c
169
ur->d_port = d->myport;
sys/arch/amd64/stand/libsa/pxe.c
188
uh->uh_dport = d->myport;
sys/arch/amd64/stand/libsa/pxe.h
498
uint8_t d[BOOTP_DHCPVEND]; /* raw array of
sys/arch/amd64/stand/pxeboot/pxe_udp.c
62
sendudp(struct iodesc *d, void *pkt, size_t len)
sys/arch/amd64/stand/pxeboot/pxe_udp.c
64
return pxesendudp(d, pkt, len);
sys/arch/amd64/stand/pxeboot/pxe_udp.c
72
readudp(struct iodesc *d, void *pkt, size_t len, time_t tleft)
sys/arch/amd64/stand/pxeboot/pxe_udp.c
74
return pxereadudp(d, pkt, len, tleft);
sys/arch/arm/include/cpufunc.h
164
#define cpu_domains(d) cpufuncs.cf_domains(d)
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
3350
OP4FUNC(op_simd_aes, m, d, Rn, Rt)
sys/arch/arm64/arm64/disasm.c
3358
aesop[m & 1][d & 1],
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
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/dev/apldc.c
57
#define DC_DATA_RX8_COUNT(d) ((d) & 0x7f)
sys/arch/arm64/dev/apldc.c
58
#define DC_DATA_RX8_DATA(d) (((d) >> 8) & 0xff)
sys/arch/arm64/dev/aplsmc.c
102
#define SMC_EV_SUBTYPE(d) (((d) >> 40) & 0xff)
sys/arch/arm64/dev/aplsmc.c
103
#define SMC_EV_DATA(d) (((d) >> 32) & 0xff)
sys/arch/arm64/dev/aplsmc.c
59
#define SMC_CMD(d) ((d) & 0xff)
sys/arch/arm64/dev/aplsmc.c
69
#define SMC_ERROR(d) ((d) & 0xff)
sys/arch/arm64/dev/aplsmc.c
99
#define SMC_EV_TYPE(d) (((d) >> 48) & 0xffff)
sys/arch/arm64/include/bus.h
268
char *d = (char *)(h2 + o2);
sys/arch/arm64/include/bus.h
271
*d++ = *s++;
sys/arch/arm64/include/bus.h
280
short *d = (short *)(h2 + o2);
sys/arch/arm64/include/bus.h
283
*d++ = *s++;
sys/arch/arm64/include/bus.h
291
int *d = (int *)(h2 + o2);
sys/arch/arm64/include/bus.h
294
*d++ = *s++;
sys/arch/arm64/include/bus.h
302
int64_t *d = (int64_t *)(h2 + o2);
sys/arch/arm64/include/bus.h
305
*d++ = *s++;
sys/arch/arm64/include/loadfile_machdep.h
44
#define BCOPY(s, d, c) memcpy((void *)LOADADDR(d), (void *)(s), (c))
sys/arch/arm64/include/loadfile_machdep.h
45
#define BZERO(d, c) memset((void *)LOADADDR(d), 0, (c))
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/include/loadfile_machdep.h
44
#define BCOPY(s, d, c) memcpy((void *)LOADADDR(d), (void *)(s), (c))
sys/arch/armv7/include/loadfile_machdep.h
45
#define BZERO(d, c) memset((void *)LOADADDR(d), 0, (c))
sys/arch/armv7/marvell/mvpcie.c
57
#define PCIE_CONF_DEV(d) (((d) & 0x1f) << 11)
sys/arch/hppa/gsc/harmony.c
1105
struct harmony_dma *d = c->c_current;
sys/arch/hppa/gsc/harmony.c
1114
if (cur < d->d_map->dm_segs[0].ds_addr ||
sys/arch/hppa/gsc/harmony.c
1115
cur >= (d->d_map->dm_segs[0].ds_addr + c->c_segsz))
sys/arch/hppa/gsc/harmony.c
1117
sc->sc_dv.dv_xname, cur, d->d_map->dm_segs[0].ds_addr, cur,
sys/arch/hppa/gsc/harmony.c
1118
d->d_map->dm_segs[0].ds_addr + c->c_segsz);
sys/arch/hppa/gsc/harmony.c
1124
nsegs = (d->d_map->dm_segs[0].ds_addr + c->c_segsz -
sys/arch/hppa/gsc/harmony.c
1126
nsegs += (cur - d->d_map->dm_segs[0].ds_addr) /
sys/arch/hppa/gsc/harmony.c
288
struct harmony_dma *d;
sys/arch/hppa/gsc/harmony.c
294
d = c->c_current;
sys/arch/hppa/gsc/harmony.c
297
nextaddr = d->d_map->dm_segs[0].ds_addr;
sys/arch/hppa/gsc/harmony.c
306
bus_dmamap_sync(sc->sc_dmat, d->d_map,
sys/arch/hppa/gsc/harmony.c
307
nextaddr - d->d_map->dm_segs[0].ds_addr,
sys/arch/hppa/gsc/harmony.c
807
struct harmony_dma *d;
sys/arch/hppa/gsc/harmony.c
810
d = (struct harmony_dma *)malloc(sizeof(struct harmony_dma), pool, flags);
sys/arch/hppa/gsc/harmony.c
811
if (d == NULL)
sys/arch/hppa/gsc/harmony.c
815
&d->d_map) != 0)
sys/arch/hppa/gsc/harmony.c
818
if (bus_dmamem_alloc(sc->sc_dmat, size, PAGE_SIZE, 0, &d->d_seg, 1,
sys/arch/hppa/gsc/harmony.c
822
if (bus_dmamem_map(sc->sc_dmat, &d->d_seg, 1, size, &d->d_kva,
sys/arch/hppa/gsc/harmony.c
826
if (bus_dmamap_load(sc->sc_dmat, d->d_map, d->d_kva, size, NULL,
sys/arch/hppa/gsc/harmony.c
830
d->d_next = sc->sc_dmas;
sys/arch/hppa/gsc/harmony.c
831
sc->sc_dmas = d;
sys/arch/hppa/gsc/harmony.c
832
d->d_size = size;
sys/arch/hppa/gsc/harmony.c
833
return (d->d_kva);
sys/arch/hppa/gsc/harmony.c
836
bus_dmamem_unmap(sc->sc_dmat, d->d_kva, size);
sys/arch/hppa/gsc/harmony.c
838
bus_dmamem_free(sc->sc_dmat, &d->d_seg, 1);
sys/arch/hppa/gsc/harmony.c
840
bus_dmamap_destroy(sc->sc_dmat, d->d_map);
sys/arch/hppa/gsc/harmony.c
842
free(d, pool, sizeof *d);
sys/arch/hppa/gsc/harmony.c
851
struct harmony_dma *d, **dd;
sys/arch/hppa/gsc/harmony.c
853
for (dd = &sc->sc_dmas; (d = *dd) != NULL; dd = &(*dd)->d_next) {
sys/arch/hppa/gsc/harmony.c
854
if (d->d_kva != ptr)
sys/arch/hppa/gsc/harmony.c
856
bus_dmamap_unload(sc->sc_dmat, d->d_map);
sys/arch/hppa/gsc/harmony.c
857
bus_dmamem_unmap(sc->sc_dmat, d->d_kva, d->d_size);
sys/arch/hppa/gsc/harmony.c
858
bus_dmamem_free(sc->sc_dmat, &d->d_seg, 1);
sys/arch/hppa/gsc/harmony.c
859
bus_dmamap_destroy(sc->sc_dmat, d->d_map);
sys/arch/hppa/gsc/harmony.c
860
free(d, pool, sizeof *d);
sys/arch/hppa/gsc/harmony.c
878
struct harmony_dma *d;
sys/arch/hppa/gsc/harmony.c
882
for (d = sc->sc_dmas; d->d_kva != start; d = d->d_next)
sys/arch/hppa/gsc/harmony.c
884
if (d == NULL) {
sys/arch/hppa/gsc/harmony.c
893
c->c_current = d;
sys/arch/hppa/gsc/harmony.c
896
c->c_lastaddr = d->d_map->dm_segs[0].ds_addr;
sys/arch/hppa/gsc/harmony.c
902
nextaddr = d->d_map->dm_segs[0].ds_addr;
sys/arch/hppa/gsc/harmony.c
911
bus_dmamap_sync(sc->sc_dmat, d->d_map,
sys/arch/hppa/gsc/harmony.c
912
nextaddr - d->d_map->dm_segs[0].ds_addr,
sys/arch/hppa/gsc/harmony.c
931
struct harmony_dma *d;
sys/arch/hppa/gsc/harmony.c
941
d = c->c_current;
sys/arch/hppa/gsc/harmony.c
944
nextaddr = d->d_map->dm_segs[0].ds_addr;
sys/arch/hppa/gsc/harmony.c
953
bus_dmamap_sync(sc->sc_dmat, d->d_map,
sys/arch/hppa/gsc/harmony.c
954
nextaddr - d->d_map->dm_segs[0].ds_addr,
sys/arch/hppa/gsc/harmony.c
971
struct harmony_dma *d;
sys/arch/hppa/gsc/harmony.c
973
for (d = sc->sc_dmas; d->d_kva != start; d = d->d_next)
sys/arch/hppa/gsc/harmony.c
975
if (d == NULL) {
sys/arch/hppa/gsc/harmony.c
984
c->c_current = d;
sys/arch/hppa/gsc/harmony.c
987
c->c_lastaddr = d->d_map->dm_segs[0].ds_addr;
sys/arch/hppa/hppa/db_disasm.c
1506
register int d = Disp(w);
sys/arch/hppa/hppa/db_disasm.c
1510
if (d < 0) {
sys/arch/hppa/hppa/db_disasm.c
1511
d = -d;
sys/arch/hppa/hppa/db_disasm.c
1517
db_printf("ldi\t%s%X,%%r%d",s,d,Rta(w));
sys/arch/hppa/hppa/db_disasm.c
1520
db_printf("%s\t%s%s%X",i->mnem,(d < 2048? "R'":""), s, d);
sys/arch/hppa/hppa/db_disasm.c
1532
register int d = Disp(w);
sys/arch/hppa/hppa/db_disasm.c
1538
if (d < 0) {
sys/arch/hppa/hppa/db_disasm.c
1539
d = -d;
sys/arch/hppa/hppa/db_disasm.c
1544
db_printf("%s%s%X", (d < 2048? "R'":""), s, d);
sys/arch/hppa/hppa/db_disasm.c
1680
register int d = Bdisp(w);
sys/arch/hppa/hppa/db_disasm.c
1685
if (d < 0) {
sys/arch/hppa/hppa/db_disasm.c
1686
d = -d;
sys/arch/hppa/hppa/db_disasm.c
1692
db_printf("%s\tR'%s%X(%%sr%d,%%r%d)", p, s, d, Sr(w), Rsb(w));
sys/arch/hppa/include/loadfile_machdep.h
50
#define BCOPY(s, d, c) vpbcopy((s), (void *)LOADADDR(d), (c))
sys/arch/hppa/include/loadfile_machdep.h
51
#define BZERO(d, c) pbzero((void *)LOADADDR(d), (c))
sys/arch/hppa/include/loadfile_machdep.h
68
#define BCOPY(s, d, c) memcpy((void *)LOADADDR(d), (void *)(s), (c))
sys/arch/hppa/include/loadfile_machdep.h
69
#define BZERO(d, c) memset((void *)LOADADDR(d), 0, (c))
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/rbus_machdep.h
38
#define rbus_pccbb_parent_mem(d, p) (*(p)->pa_pc->pc_alloc_parent)((d), (p), 0)
sys/arch/hppa/include/rbus_machdep.h
39
#define rbus_pccbb_parent_io(d, p) (*(p)->pa_pc->pc_alloc_parent)((d), (p), 1)
sys/arch/i386/i386/k6_mem.c
109
for (d = 0; d < sc->mr_ndesc; d++) {
sys/arch/i386/i386/k6_mem.c
110
u_int32_t one = (reg & (0xffffffff << (32 * d))) >> (32 * d);
sys/arch/i386/i386/k6_mem.c
113
sc->mr_desc[d].mr_base = addr;
sys/arch/i386/i386/k6_mem.c
114
sc->mr_desc[d].mr_len = ffs(mask) << 17;
sys/arch/i386/i386/k6_mem.c
116
sc->mr_desc[d].mr_flags |= MDF_WRITECOMBINE;
sys/arch/i386/i386/k6_mem.c
118
sc->mr_desc[d].mr_flags |= MDF_UNCACHEABLE;
sys/arch/i386/i386/k6_mem.c
129
int error, d;
sys/arch/i386/i386/k6_mem.c
137
for (d = 0; d < sc->mr_ndesc; d++) {
sys/arch/i386/i386/k6_mem.c
138
if (!sc->mr_desc[d].mr_len) {
sys/arch/i386/i386/k6_mem.c
139
sc->mr_desc[d] = *desc;
sys/arch/i386/i386/k6_mem.c
142
if (sc->mr_desc[d].mr_base == desc->mr_base &&
sys/arch/i386/i386/k6_mem.c
143
sc->mr_desc[d].mr_len == desc->mr_len)
sys/arch/i386/i386/k6_mem.c
150
for (d = 0; d < sc->mr_ndesc; d++)
sys/arch/i386/i386/k6_mem.c
151
if (sc->mr_desc[d].mr_base == desc->mr_base &&
sys/arch/i386/i386/k6_mem.c
152
sc->mr_desc[d].mr_len == desc->mr_len) {
sys/arch/i386/i386/k6_mem.c
153
bzero(&sc->mr_desc[d], sizeof(sc->mr_desc[d]));
sys/arch/i386/i386/k6_mem.c
167
reg &= ~(0xffffffff << (32 * d));
sys/arch/i386/i386/k6_mem.c
168
reg |= mtrr << (32 * d);
sys/arch/i386/i386/k6_mem.c
184
int d;
sys/arch/i386/i386/k6_mem.c
187
for (d = 0; d < sc->mr_ndesc; d++) {
sys/arch/i386/i386/k6_mem.c
188
k6_mrmake(&sc->mr_desc[d], &mtrr);
sys/arch/i386/i386/k6_mem.c
193
reg &= ~(0xffffffff << (32 * d));
sys/arch/i386/i386/k6_mem.c
194
reg |= mtrr << (32 * d);
sys/arch/i386/i386/k6_mem.c
99
int d;
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/loadfile_machdep.h
46
#define BCOPY(s, d, c) memcpy((void *)LOADADDR(d), (void *)(s), (c))
sys/arch/i386/include/loadfile_machdep.h
47
#define BZERO(d, c) memset((void *)LOADADDR(d), 0, (c))
sys/arch/i386/isa/joyreg.h
52
#define JOYPART(d) (minor(d) & 1)
sys/arch/i386/isa/joyreg.h
53
#define JOYUNIT(d) minor(d) >> 1 & 3
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/stand/libsa/debug.c
104
d_putc(dev_t d, int c)
sys/arch/i386/stand/libsa/diskprobe.c
386
int d = bdi->bios_number;
sys/arch/i386/stand/libsa/diskprobe.c
387
int u = d & 0x7f;
sys/arch/i386/stand/libsa/diskprobe.c
394
c = (d & 0x80) ? 'h' : 'f';
sys/arch/i386/stand/libsa/diskprobe.c
398
c, u, d,
sys/arch/i386/stand/libsa/pxe.c
125
pxesendudp(struct iodesc *d, void *pkt, size_t len)
sys/arch/i386/stand/libsa/pxe.c
131
uw->ip = d->destip.s_addr;
sys/arch/i386/stand/libsa/pxe.c
133
uw->src_port = d->myport;
sys/arch/i386/stand/libsa/pxe.c
134
uw->dst_port = d->destport;
sys/arch/i386/stand/libsa/pxe.c
157
pxereadudp(struct iodesc *d, void *pkt, size_t len, time_t tleft)
sys/arch/i386/stand/libsa/pxe.c
168
ur->dest_ip = d->myip.s_addr;
sys/arch/i386/stand/libsa/pxe.c
169
ur->d_port = d->myport;
sys/arch/i386/stand/libsa/pxe.c
188
uh->uh_dport = d->myport;
sys/arch/i386/stand/libsa/pxe.h
498
uint8_t d[BOOTP_DHCPVEND]; /* raw array of
sys/arch/i386/stand/pxeboot/pxe_udp.c
62
sendudp(struct iodesc *d, void *pkt, size_t len)
sys/arch/i386/stand/pxeboot/pxe_udp.c
64
return pxesendudp(d, pkt, len);
sys/arch/i386/stand/pxeboot/pxe_udp.c
72
readudp(struct iodesc *d, void *pkt, size_t len, time_t tleft)
sys/arch/i386/stand/pxeboot/pxe_udp.c
74
return pxereadudp(d, pkt, len, tleft);
sys/arch/landisk/include/loadfile_machdep.h
42
#define BCOPY(s, d, c) memcpy((void *)LOADADDR(d), (void *)(s), (c))
sys/arch/landisk/include/loadfile_machdep.h
43
#define BZERO(d, c) memset((void *)LOADADDR(d), 0, (c))
sys/arch/landisk/stand/boot/getsecs.c
116
int d;
sys/arch/landisk/stand/boot/getsecs.c
118
d = (SHREG_SCSPTR & SCSPTR_SPB1DT) ? 1 : 0;
sys/arch/landisk/stand/boot/getsecs.c
123
return d;
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
788
d += bc->bc_adbase;
sys/arch/loongson/dev/bonito.c
789
if (d > 31)
sys/arch/loongson/dev/bonito.c
791
*cfgoff = (1 << d) | (f << 8) | offset;
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
251
char *d = (char *)(h2 + o2);
sys/arch/loongson/include/bus.h
254
*d++ = *s++;
sys/arch/loongson/include/bus.h
263
short *d = (short *)(h2 + o2);
sys/arch/loongson/include/bus.h
266
*d++ = *s++;
sys/arch/loongson/include/bus.h
274
int *d = (int *)(h2 + o2);
sys/arch/loongson/include/bus.h
277
*d++ = *s++;
sys/arch/loongson/include/bus.h
285
int64_t *d = (int64_t *)(h2 + o2);
sys/arch/loongson/include/bus.h
288
*d++ = *s++;
sys/arch/loongson/include/loadfile_machdep.h
42
#define BCOPY(s, d, c) memcpy((void *)LOADADDR(d), (void *)(s), (c))
sys/arch/loongson/include/loadfile_machdep.h
43
#define BZERO(d, c) memset((void *)LOADADDR(d), 0, (c))
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
1145
uint base = b, d;
sys/arch/loongson/loongson/machdep.c
1186
d = c - '0';
sys/arch/loongson/loongson/machdep.c
1188
d = c - 'a' + 10;
sys/arch/loongson/loongson/machdep.c
1190
d = c - 'A' + 10;
sys/arch/loongson/loongson/machdep.c
1193
if (d >= base)
sys/arch/loongson/loongson/machdep.c
1196
val += d;
sys/arch/luna88k/cbus/nec86hw.c
1030
register u_int8_t d;
sys/arch/luna88k/cbus/nec86hw.c
1048
d = ((d0 * (hw_orate - acc)) + (d1 * acc)) / hw_orate;
sys/arch/luna88k/cbus/nec86hw.c
1050
d ^= 0x80;
sys/arch/luna88k/cbus/nec86hw.c
1053
bus_space_write_1(iot, ioh, NEC86_FIFODATA, d);
sys/arch/luna88k/cbus/nec86hw.c
1054
bus_space_write_1(iot, ioh, NEC86_FIFODATA, d);
sys/arch/luna88k/cbus/nec86hw.c
1078
register u_short d, d0, d1;
sys/arch/luna88k/cbus/nec86hw.c
1097
d = ((d0 * (hw_orate - acc)) + (d1 * acc)) / hw_orate;
sys/arch/luna88k/cbus/nec86hw.c
1099
d ^= 0x8000;
sys/arch/luna88k/cbus/nec86hw.c
1103
(d >> 8) & 0xff); /* -> big endian */
sys/arch/luna88k/cbus/nec86hw.c
1104
bus_space_write_1(iot, ioh, NEC86_FIFODATA, d & 0xff);
sys/arch/luna88k/cbus/nec86hw.c
1106
(d >> 8) & 0xff);
sys/arch/luna88k/cbus/nec86hw.c
1107
bus_space_write_1(iot, ioh, NEC86_FIFODATA, d & 0xff);
sys/arch/luna88k/cbus/nec86hw.c
1183
register u_short d, d_l, d_r;
sys/arch/luna88k/cbus/nec86hw.c
1194
d = (d_l + d_r) / 2;
sys/arch/luna88k/cbus/nec86hw.c
1198
*p++ = ((d >> 8) & 0xff) ^ 0x80;
sys/arch/luna88k/cbus/nec86hw.c
1199
*p++ = d & 0xff;
sys/arch/luna88k/cbus/nec86hw.c
1202
*p++ = d & 0xff;
sys/arch/luna88k/cbus/nec86hw.c
1203
*p++ = ((d >> 8) & 0xff) ^ 0x80;
sys/arch/luna88k/cbus/nec86hw.c
927
register u_int8_t d;
sys/arch/luna88k/cbus/nec86hw.c
930
d = *p++;
sys/arch/luna88k/cbus/nec86hw.c
931
d ^= 0x80; /* unsigned -> signed */
sys/arch/luna88k/cbus/nec86hw.c
933
bus_space_write_1(iot, ioh, NEC86_FIFODATA, d);
sys/arch/luna88k/cbus/nec86hw.c
934
bus_space_write_1(iot, ioh, NEC86_FIFODATA, d);
sys/arch/luna88k/include/loadfile_machdep.h
40
#define BCOPY(s, d, c) memcpy((void *)LOADADDR(d), (void *)(s), (c))
sys/arch/luna88k/include/loadfile_machdep.h
41
#define BZERO(d, c) memset((void *)LOADADDR(d), 0, (c))
sys/arch/m88k/m88k/db_interface.c
103
m88k_dmx_print(u_int t, u_int d, u_int a, u_int no)
sys/arch/m88k/m88k/db_interface.c
129
((t >> 2 & 0xf) == 0xf) ? d : (d & 0xff), a);
sys/arch/m88k/m88k/db_interface.c
139
ISSET(t, DMT_DAS) ? "" : ".usr", d, a);
sys/arch/m88k/m88k/db_interface.c
156
(d & mask[DMT_ENBITS(t)]) >> shift[DMT_ENBITS(t)],
sys/arch/m88k/m88k/db_trace.c
599
uint32_t s1, d;
sys/arch/m88k/m88k/db_trace.c
617
d = (inst >> 21) & 0x1f;
sys/arch/m88k/m88k/db_trace.c
622
if (!have_local_reg(d)) {
sys/arch/m88k/m88k/db_trace.c
623
if (d == 1)
sys/arch/m88k/m88k/db_trace.c
626
d, check_addr, r31 + IMM16VAL(inst)));
sys/arch/m88k/m88k/db_trace.c
629
save_reg(d, value);
sys/arch/m88k/m88k/db_trace.c
631
if ((flags & DOUBLE) && !have_local_reg(d + 1)) {
sys/arch/m88k/m88k/db_trace.c
632
if (d == 0)
sys/arch/m88k/m88k/db_trace.c
636
d + 1, check_addr, r31 + IMM16VAL(inst)));
sys/arch/m88k/m88k/db_trace.c
639
save_reg(d + 1, value);
sys/arch/m88k/m88k/db_trace.c
645
mark_reg_trashed(d);
sys/arch/m88k/m88k/db_trace.c
647
mark_reg_trashed(d + 1);
sys/arch/m88k/m88k/m88k_machdep.c
486
uint32_t *s, *e, *d;
sys/arch/m88k/m88k/m88k_machdep.c
488
d = __atomic_lock;
sys/arch/m88k/m88k/m88k_machdep.c
492
*d++ = *s++;
sys/arch/m88k/m88k/m88k_machdep.c
494
d = __atomic_unlock;
sys/arch/m88k/m88k/m88k_machdep.c
498
*d++ = *s++;
sys/arch/macppc/dev/dbdma.h
118
#define DBDMA_BUILD_CMD(d, cmd, key, interrupt, wait, branch) { \
sys/arch/macppc/dev/dbdma.h
119
dbdma_st16(&(d)->d_command, \
sys/arch/macppc/dev/dbdma.h
125
#define DBDMA_BUILD(d, cmd, key, count, address, interrupt, wait, branch) { \
sys/arch/macppc/dev/dbdma.h
126
dbdma_st16(&(d)->d_count, count); \
sys/arch/macppc/dev/dbdma.h
127
dbdma_st32(&(d)->d_address, address); \
sys/arch/macppc/dev/dbdma.h
128
(d)->d_resid = 0; \
sys/arch/macppc/dev/dbdma.h
129
(d)->d_status = 0; \
sys/arch/macppc/dev/dbdma.h
130
(d)->d_cmddep = 0; \
sys/arch/macppc/dev/dbdma.h
131
dbdma_st16(&(d)->d_command, \
sys/arch/macppc/include/bus.h
244
volatile u_int8_t *d = __BA(tag, bsh, offset);
sys/arch/macppc/include/bus.h
247
*d++ = *addr++;
sys/arch/macppc/include/bus.h
255
volatile u_int16_t *d = __BA(tag, bsh, offset);
sys/arch/macppc/include/bus.h
259
"r"(*addr++), "r"(d++));
sys/arch/macppc/include/bus.h
267
volatile u_int32_t *d = __BA(tag, bsh, offset);
sys/arch/macppc/include/bus.h
271
"r"(*addr++), "r"(d++));
sys/arch/macppc/include/bus.h
335
volatile u_int16_t *d = __BA(tag, bsh, offset);
sys/arch/macppc/include/bus.h
341
*d++ = *laddr++;
sys/arch/macppc/include/bus.h
349
volatile u_int32_t *d = __BA(tag, bsh, offset);
sys/arch/macppc/include/bus.h
355
*d++ = *laddr++;
sys/arch/macppc/include/bus.h
383
volatile u_int8_t *d = __BA(tag, bsh, offset);
sys/arch/macppc/include/bus.h
386
*d = val;
sys/arch/macppc/include/bus.h
394
volatile u_int16_t *d = __BA(tag, bsh, offset);
sys/arch/macppc/include/bus.h
398
"r"(val), "r"(d));
sys/arch/macppc/include/bus.h
406
volatile u_int32_t *d = __BA(tag, bsh, offset);
sys/arch/macppc/include/bus.h
410
"r"(val), "r"(d));
sys/arch/macppc/include/loadfile_machdep.h
42
#define BCOPY(s, d, c) memcpy((void *)LOADADDR(d), (void *)(s), (c))
sys/arch/macppc/include/loadfile_machdep.h
43
#define BZERO(d, c) memset((void *)LOADADDR(d), 0, (c))
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/pci/pci_machdep.c
108
if (d != OFW_PCI_PHYS_HI_DEVICE(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
126
if (d != NULL)
sys/arch/macppc/pci/pci_machdep.c
127
*d = PCITAG_DEV(tag);
sys/arch/macppc/pci/pci_machdep.c
249
int len, node, b, d, f, ret;
sys/arch/macppc/pci/pci_machdep.c
286
d = OFW_PCI_PHYS_HI_DEVICE(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
314
d = OFW_PCI_PHYS_HI_DEVICE(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
80
return PCITAG_CREATE(0, b, d, f);
sys/arch/mips64/mips64/mips64_machdep.c
115
if (d != 0)
sys/arch/mips64/mips64/mips64_machdep.c
116
*dst++ = *src++ | d;
sys/arch/mips64/mips64/mips64_machdep.c
81
uint32_t a, b, c, d;
sys/arch/mips64/mips64/mips64_machdep.c
87
d = dest & 0xffff;
sys/arch/mips64/mips64/mips64_machdep.c
89
if (d & 0x8000)
sys/arch/mips64/mips64/pmap.c
1395
vaddr_t s, d;
sys/arch/mips64/mips64/pmap.c
1404
d = (vaddr_t)PHYS_TO_XKPHYS(dst, CCA_CACHED);
sys/arch/mips64/mips64/pmap.c
1431
memcpy((void *)d, (void *)s, PAGE_SIZE);
sys/arch/mips64/mips64/pmap.c
1436
Mips_HitSyncDCachePage(ci, d, dst);
sys/arch/octeon/dev/cn30xxuart.c
189
static int d = 0;
sys/arch/octeon/dev/cn30xxuart.c
192
return d;
sys/arch/octeon/dev/cn30xxuart.c
200
cn30xxuart_wait_txhr_empty(int d)
sys/arch/octeon/dev/cn30xxuart.c
204
delay(d);
sys/arch/octeon/dev/cn30xxuart.c
225
int d;
sys/arch/octeon/dev/cn30xxuart.c
228
d = cn30xxuart_delay();
sys/arch/octeon/dev/cn30xxuart.c
229
cn30xxuart_wait_txhr_empty(d);
sys/arch/octeon/dev/cn30xxuart.c
231
cn30xxuart_wait_txhr_empty(d);
sys/arch/octeon/dev/cn30xxuart.c
237
int c, d;
sys/arch/octeon/dev/cn30xxuart.c
240
d = cn30xxuart_delay();
sys/arch/octeon/dev/cn30xxuart.c
243
delay(d);
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/octmmc.c
68
#define divround(n, d) (((n) + (d) / 2) / (d))
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 << 20) | (d << 15) | (f << 12);
sys/arch/octeon/dev/octrtc.c
217
*data = twsi.field.d & 0xff;
sys/arch/octeon/dev/octrtc.c
295
twsi.field.d = data & 0xffffffff;
sys/arch/octeon/dev/octrtc.c
78
uint64_t d:32; /* Data Field */
sys/arch/octeon/include/bus.h
249
char *d = (char *)(h2 + o2);
sys/arch/octeon/include/bus.h
252
*d++ = *s++;
sys/arch/octeon/include/bus.h
261
short *d = (short *)(h2 + o2);
sys/arch/octeon/include/bus.h
264
*d++ = *s++;
sys/arch/octeon/include/bus.h
272
int *d = (int *)(h2 + o2);
sys/arch/octeon/include/bus.h
275
*d++ = *s++;
sys/arch/octeon/include/bus.h
283
int64_t *d = (int64_t *)(h2 + o2);
sys/arch/octeon/include/bus.h
286
*d++ = *s++;
sys/arch/octeon/include/loadfile_machdep.h
42
#define BCOPY(s, d, c) memcpy((void *)LOADADDR(d), (void *)(s), (c))
sys/arch/octeon/include/loadfile_machdep.h
43
#define BZERO(d, c) memset((void *)LOADADDR(d), 0, (c))
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/octeon/octeon/machdep.c
481
DUMP_BOOT_DESC(desc_ver, %d);
sys/arch/octeon/octeon/machdep.c
482
DUMP_BOOT_DESC(desc_size, %d);
sys/arch/octeon/octeon/machdep.c
486
DUMP_BOOT_DESC(argc, %d);
sys/arch/octeon/octeon/machdep.c
489
DUMP_BOOT_DESC(dram_size, %d);
sys/arch/octeon/octeon/machdep.c
492
DUMP_BOOT_DESC(eclock, %d);
sys/arch/octeon/octeon/machdep.c
495
DUMP_BOOT_INFO(ver_major, %d);
sys/arch/octeon/octeon/machdep.c
496
DUMP_BOOT_INFO(ver_minor, %d);
sys/arch/octeon/octeon/machdep.c
502
DUMP_BOOT_INFO(stack_size, %d);
sys/arch/octeon/octeon/machdep.c
505
DUMP_BOOT_INFO(dram_size, %d);
sys/arch/octeon/octeon/machdep.c
508
DUMP_BOOT_INFO(eclock, %d);
sys/arch/octeon/octeon/machdep.c
509
DUMP_BOOT_INFO(dclock, %d);
sys/arch/octeon/octeon/machdep.c
510
DUMP_BOOT_INFO(board_type, %d);
sys/arch/octeon/octeon/machdep.c
511
DUMP_BOOT_INFO(board_rev_major, %d);
sys/arch/octeon/octeon/machdep.c
512
DUMP_BOOT_INFO(board_rev_minor, %d);
sys/arch/octeon/octeon/machdep.c
513
DUMP_BOOT_INFO(mac_addr_count, %d);
sys/arch/octeon/octeon/machdep.c
517
DUMP_BOOT_INFO(dfaclock, %d);
sys/arch/powerpc64/include/bus.h
261
char *d = (char *)(h2 + o2);
sys/arch/powerpc64/include/bus.h
264
*d++ = *s++;
sys/arch/powerpc64/include/bus.h
273
short *d = (short *)(h2 + o2);
sys/arch/powerpc64/include/bus.h
276
*d++ = *s++;
sys/arch/powerpc64/include/bus.h
284
int *d = (int *)(h2 + o2);
sys/arch/powerpc64/include/bus.h
287
*d++ = *s++;
sys/arch/powerpc64/include/bus.h
295
int64_t *d = (int64_t *)(h2 + o2);
sys/arch/powerpc64/include/bus.h
298
*d++ = *s++;
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/riscv64/include/bus.h
268
char *d = (char *)(h2 + o2);
sys/arch/riscv64/include/bus.h
272
*d++ = *s++;
sys/arch/riscv64/include/bus.h
282
short *d = (short *)(h2 + o2);
sys/arch/riscv64/include/bus.h
286
*d++ = *s++;
sys/arch/riscv64/include/bus.h
295
int *d = (int *)(h2 + o2);
sys/arch/riscv64/include/bus.h
299
*d++ = *s++;
sys/arch/riscv64/include/bus.h
308
int64_t *d = (int64_t *)(h2 + o2);
sys/arch/riscv64/include/bus.h
312
*d++ = *s++;
sys/arch/riscv64/include/loadfile_machdep.h
44
#define BCOPY(s, d, c) memcpy((void *)LOADADDR(d), (void *)(s), (c))
sys/arch/riscv64/include/loadfile_machdep.h
45
#define BZERO(d, c) memset((void *)LOADADDR(d), 0, (c))
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/sh/cache.c
148
int d;
sys/arch/sh/sh/cache.c
158
d = *p;
sys/arch/sh/sh/db_disasm.c
153
db_expr_t d, value;
sys/arch/sh/sh/db_disasm.c
165
cursym = db_search_symbol(addr, DB_STGY_PROC, &d);
sys/arch/sh/sh/db_disasm.c
167
if (name && d < db_maxoff && value) {
sys/arch/sh/sh/db_disasm.c
168
if (d == 0)
sys/arch/sh/sh/db_disasm.c
175
db_format(buf, bufsiz, d, DB_FORMAT_R, 1, 0);
sys/arch/sh/sh/mmu_sh3.c
55
uint32_t a, d;
sys/arch/sh/sh/mmu_sh3.c
58
d = (va & SH3_MMUAA_D_VPN_MASK_4K) | asid; /* 4K page */
sys/arch/sh/sh/mmu_sh3.c
65
(SH3_MMUAA_D_VPN_MASK_4K | SH3_MMUAA_D_ASID_MASK)) == d) {
sys/arch/sparc64/dev/cbus.c
269
arc = elem[idx].d.val;
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
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
205
if (d != OFW_PCI_PHYS_HI_DEVICE(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
292
d = OFW_PCI_PHYS_HI_DEVICE(reg.phys_hi);
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/pcons.c
104
#define cn_check_magic(d, k, s) \
sys/arch/sparc64/dev/pcons.c
106
if (cn_isconsole(d)) { \
sys/arch/sparc64/dev/pcons.c
99
#define cn_isconsole(d) ((d) == cn_tab->cn_dev)
sys/arch/sparc64/dev/vcc.c
131
arc = elem[idx].d.val;
sys/arch/sparc64/dev/vcc.c
90
arc = elem[idx].d.val;
sys/arch/sparc64/dev/vds.c
128
arc = elem[idx].d.val;
sys/arch/sparc64/dev/vds.c
90
arc = elem[idx].d.val;
sys/arch/sparc64/dev/vldc.c
132
arc = elem[idx].d.val;
sys/arch/sparc64/dev/vldc.c
91
arc = elem[idx].d.val;
sys/arch/sparc64/dev/vsw.c
128
arc = elem[idx].d.val;
sys/arch/sparc64/dev/vsw.c
90
arc = elem[idx].d.val;
sys/arch/sparc64/include/instr.h
365
#define I_CALL(d) _I_ANY(IOP_CALL, d)
sys/arch/sparc64/include/instr.h
367
#define I_BN(a, d) _I_BRANCH(a, Icc_N, IOP2_Bicc, d)
sys/arch/sparc64/include/instr.h
368
#define I_BE(a, d) _I_BRANCH(a, Icc_E, IOP2_Bicc, d)
sys/arch/sparc64/include/instr.h
369
#define I_BZ(a, d) _I_BRANCH(a, Icc_E, IOP2_Bicc, d)
sys/arch/sparc64/include/instr.h
370
#define I_BLE(a, d) _I_BRANCH(a, Icc_LE, IOP2_Bicc, d)
sys/arch/sparc64/include/instr.h
371
#define I_BL(a, d) _I_BRANCH(a, Icc_L, IOP2_Bicc, d)
sys/arch/sparc64/include/instr.h
372
#define I_BLEU(a, d) _I_BRANCH(a, Icc_LEU, IOP2_Bicc, d)
sys/arch/sparc64/include/instr.h
373
#define I_BCS(a, d) _I_BRANCH(a, Icc_CS, IOP2_Bicc, d)
sys/arch/sparc64/include/instr.h
374
#define I_BLU(a, d) _I_BRANCH(a, Icc_CS, IOP2_Bicc, d)
sys/arch/sparc64/include/instr.h
375
#define I_BNEG(a, d) _I_BRANCH(a, Icc_NEG, IOP2_Bicc, d)
sys/arch/sparc64/include/instr.h
376
#define I_BVS(a, d) _I_BRANCH(a, Icc_VS, IOP2_Bicc, d)
sys/arch/sparc64/include/instr.h
377
#define I_BA(a, d) _I_BRANCH(a, Icc_A, IOP2_Bicc, d)
sys/arch/sparc64/include/instr.h
378
#define I_B(a, d) _I_BRANCH(a, Icc_A, IOP2_Bicc, d)
sys/arch/sparc64/include/instr.h
379
#define I_BNE(a, d) _I_BRANCH(a, Icc_NE, IOP2_Bicc, d)
sys/arch/sparc64/include/instr.h
380
#define I_BNZ(a, d) _I_BRANCH(a, Icc_NE, IOP2_Bicc, d)
sys/arch/sparc64/include/instr.h
381
#define I_BG(a, d) _I_BRANCH(a, Icc_G, IOP2_Bicc, d)
sys/arch/sparc64/include/instr.h
382
#define I_BGE(a, d) _I_BRANCH(a, Icc_GE, IOP2_Bicc, d)
sys/arch/sparc64/include/instr.h
383
#define I_BGU(a, d) _I_BRANCH(a, Icc_GU, IOP2_Bicc, d)
sys/arch/sparc64/include/instr.h
384
#define I_BCC(a, d) _I_BRANCH(a, Icc_CC, IOP2_Bicc, d)
sys/arch/sparc64/include/instr.h
385
#define I_BGEU(a, d) _I_BRANCH(a, Icc_CC, IOP2_Bicc, d)
sys/arch/sparc64/include/instr.h
386
#define I_BPOS(a, d) _I_BRANCH(a, Icc_POS, IOP2_Bicc, d)
sys/arch/sparc64/include/instr.h
387
#define I_BVC(a, d) _I_BRANCH(a, Icc_VC, IOP2_Bicc, d)
sys/arch/sparc64/include/loadfile_machdep.h
47
#define BCOPY(s, d, c) memcpy((void *)LOADADDR(d), (void *)(s), (c))
sys/arch/sparc64/include/loadfile_machdep.h
48
#define BZERO(d, c) memset((void *)LOADADDR(d), 0, (c))
sys/arch/sparc64/include/loadfile_machdep.h
59
#define BCOPY(s, d, c) memcpy((void *)LOADADDR(d), (void *)(s), (c))
sys/arch/sparc64/include/loadfile_machdep.h
60
#define BZERO(d, c) memset((void *)LOADADDR(d), 0, (c))
sys/arch/sparc64/include/mdesc.h
36
} d;
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
73
#define PCITAG_CREATE(n,b,d,f) (((u_int64_t)(n)<<32)|((b)<<16)|((d)<<11)|((f)<<8))
sys/arch/sparc64/sparc64/mdesc.c
192
return (elem[idx].d.val);
sys/arch/sparc64/sparc64/mdesc.c
216
return (data_blk + elem[idx].d.y.data_offset);
sys/arch/sparc64/sparc64/mdesc.c
240
*len = elem[idx].d.y.data_len;
sys/arch/sparc64/sparc64/mdesc.c
241
return (data_blk + elem[idx].d.y.data_offset);
sys/arch/sparc64/sparc64/mdesc.c
261
for (idx = 0; elem[idx].tag == 'N'; idx = elem[idx].d.val) {
sys/arch/sparc64/sparc64/mdesc.c
290
arc = elem[idx].d.val;
sys/arch/sparc64/sparc64/mdesc.c
313
for (idx = 0; elem[idx].tag == 'N'; idx = elem[idx].d.val) {
sys/crypto/blake2s.c
121
#define G(r, i, a, b, c, d) do { \
sys/crypto/blake2s.c
123
d = ror32(d ^ a, 16); \
sys/crypto/blake2s.c
124
c += d; \
sys/crypto/blake2s.c
127
d = ror32(d ^ a, 8); \
sys/crypto/blake2s.c
128
c += d; \
sys/crypto/blf.c
450
u_int32_t d[2];
sys/crypto/blf.c
460
d[0] = 0x00000000;
sys/crypto/blf.c
461
d[1] = 0x00000000;
sys/crypto/blf.c
463
d[0] ^= Blowfish_stream2word(data, databytes, &j);
sys/crypto/blf.c
464
d[1] ^= Blowfish_stream2word(data, databytes, &j);
sys/crypto/blf.c
465
Blowfish_encipher(c, d);
sys/crypto/blf.c
467
c->P[i] = d[0];
sys/crypto/blf.c
468
c->P[i + 1] = d[1];
sys/crypto/blf.c
473
d[0]^= Blowfish_stream2word(data, databytes, &j);
sys/crypto/blf.c
474
d[1] ^= Blowfish_stream2word(data, databytes, &j);
sys/crypto/blf.c
475
Blowfish_encipher(c, d);
sys/crypto/blf.c
477
c->S[i][k] = d[0];
sys/crypto/blf.c
478
c->S[i][k + 1] = d[1];
sys/crypto/blf.c
497
u_int32_t *d;
sys/crypto/blf.c
500
d = data;
sys/crypto/blf.c
502
Blowfish_encipher(c, d);
sys/crypto/blf.c
503
d += 2;
sys/crypto/blf.c
510
u_int32_t *d;
sys/crypto/blf.c
513
d = data;
sys/crypto/blf.c
515
Blowfish_decipher(c, d);
sys/crypto/blf.c
516
d += 2;
sys/crypto/blf.c
523
u_int32_t l, r, d[2];
sys/crypto/blf.c
529
d[0] = l;
sys/crypto/blf.c
530
d[1] = r;
sys/crypto/blf.c
531
Blowfish_encipher(c, d);
sys/crypto/blf.c
532
l = d[0];
sys/crypto/blf.c
533
r = d[1];
sys/crypto/blf.c
549
u_int32_t l, r, d[2];
sys/crypto/blf.c
555
d[0] = l;
sys/crypto/blf.c
556
d[1] = r;
sys/crypto/blf.c
557
Blowfish_decipher(c, d);
sys/crypto/blf.c
558
l = d[0];
sys/crypto/blf.c
559
r = d[1];
sys/crypto/blf.c
575
u_int32_t l, r, d[2];
sys/crypto/blf.c
583
d[0] = l;
sys/crypto/blf.c
584
d[1] = r;
sys/crypto/blf.c
585
Blowfish_encipher(c, d);
sys/crypto/blf.c
586
l = d[0];
sys/crypto/blf.c
587
r = d[1];
sys/crypto/blf.c
604
u_int32_t l, r, d[2];
sys/crypto/blf.c
613
d[0] = l;
sys/crypto/blf.c
614
d[1] = r;
sys/crypto/blf.c
615
Blowfish_decipher(c, d);
sys/crypto/blf.c
616
l = d[0];
sys/crypto/blf.c
617
r = d[1];
sys/crypto/blf.c
633
d[0] = l;
sys/crypto/blf.c
634
d[1] = r;
sys/crypto/blf.c
635
Blowfish_decipher(c, d);
sys/crypto/blf.c
636
l = d[0];
sys/crypto/blf.c
637
r = d[1];
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/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/md5.c
147
u_int32_t a, b, c, d, in[MD5_BLOCK_LENGTH / 4];
sys/crypto/md5.c
164
d = state[3];
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
237
state[3] += d;
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
177
d = state[3];
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
271
d = state[3];
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
360
t = state[1] + cc + d;
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/set_key.c
142
register u_int32_t c, d, t, s;
sys/crypto/set_key.c
159
c2l(in, d);
sys/crypto/set_key.c
177
PERM_OP (d, c, t, 4, 0x0f0f0f0fL);
sys/crypto/set_key.c
179
HPERM_OP(d, t, -2, 0xcccc0000L);
sys/crypto/set_key.c
180
PERM_OP (d, c, t, 1, 0x55555555L);
sys/crypto/set_key.c
181
PERM_OP (c, d, t, 8, 0x00ff00ffL);
sys/crypto/set_key.c
182
PERM_OP (d, c, t, 1, 0x55555555L);
sys/crypto/set_key.c
183
d = (((d & 0x000000ffL) << 16L) | (d & 0x0000ff00L) |
sys/crypto/set_key.c
184
((d & 0x00ff0000L) >> 16L) | ((c & 0xf0000000L) >> 4L));
sys/crypto/set_key.c
189
{ c = ((c >> 2L) | (c << 26L)); d = ((d >> 2L) | (d << 26L)); }
sys/crypto/set_key.c
191
{ c = ((c >> 1L) | (c << 27L)); d = ((d >> 1L) | (d << 27L)); }
sys/crypto/set_key.c
193
d &= 0x0fffffffL;
sys/crypto/set_key.c
201
t = des_skb[4][ (d ) & 0x3f ]|
sys/crypto/set_key.c
202
des_skb[5][((d >> 7L) & 0x03) | ((d >> 8L) & 0x3c)]|
sys/crypto/set_key.c
203
des_skb[6][ (d >> 15L) & 0x3f ]|
sys/crypto/set_key.c
204
des_skb[7][((d >> 21L) & 0x0f) | ((d >> 22L) & 0x30)];
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
70
d = state[3];
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
99
state[3] += d;
sys/crypto/sha2.c
269
#define ROUND256_0_TO_15(a,b,c,d,e,f,g,h) do { \
sys/crypto/sha2.c
274
(d) += T1; \
sys/crypto/sha2.c
279
#define ROUND256(a,b,c,d,e,f,g,h) do { \
sys/crypto/sha2.c
286
(d) += T1; \
sys/crypto/sha2.c
294
u_int32_t a, b, c, d, e, f, g, h, s0, s1;
sys/crypto/sha2.c
302
d = state[3];
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
337
state[3] += d;
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
360
d = state[3];
sys/crypto/sha2.c
377
e = d + T1;
sys/crypto/sha2.c
378
d = c;
sys/crypto/sha2.c
400
e = d + T1;
sys/crypto/sha2.c
401
d = c;
sys/crypto/sha2.c
413
state[3] += d;
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
552
(d) += T1; \
sys/crypto/sha2.c
558
#define ROUND512(a,b,c,d,e,f,g,h) do { \
sys/crypto/sha2.c
565
(d) += T1; \
sys/crypto/sha2.c
573
u_int64_t a, b, c, d, e, f, g, h, s0, s1;
sys/crypto/sha2.c
581
d = state[3];
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
615
state[3] += d;
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
638
d = state[3];
sys/crypto/sha2.c
657
e = d + T1;
sys/crypto/sha2.c
658
d = c;
sys/crypto/sha2.c
680
e = d + T1;
sys/crypto/sha2.c
681
d = c;
sys/crypto/sha2.c
693
state[3] += d;
sys/crypto/sha2.c
700
a = b = c = d = e = f = g = h = T1 = T2 = 0;
sys/ddb/db_dwarf.c
104
read_leb128(struct dwbuf *d, uint64_t *v, bool signextend)
sys/ddb/db_dwarf.c
109
while (shift < 64 && read_u8(d, &x)) {
sys/ddb/db_dwarf.c
123
read_sleb128(struct dwbuf *d, int64_t *v)
sys/ddb/db_dwarf.c
125
return (read_leb128(d, (uint64_t *)v, true));
sys/ddb/db_dwarf.c
129
read_uleb128(struct dwbuf *d, uint64_t *v)
sys/ddb/db_dwarf.c
131
return (read_leb128(d, v, false));
sys/ddb/db_dwarf.c
136
read_string(struct dwbuf *d, const char **s)
sys/ddb/db_dwarf.c
138
const char *end = memchr(d->buf, '\0', d->len);
sys/ddb/db_dwarf.c
141
size_t n = end - d->buf + 1;
sys/ddb/db_dwarf.c
142
*s = d->buf;
sys/ddb/db_dwarf.c
143
d->buf += n;
sys/ddb/db_dwarf.c
144
d->len -= n;
sys/ddb/db_dwarf.c
149
read_buf(struct dwbuf *d, struct dwbuf *v, size_t n)
sys/ddb/db_dwarf.c
151
if (d->len < n)
sys/ddb/db_dwarf.c
153
v->buf = d->buf;
sys/ddb/db_dwarf.c
155
d->buf += n;
sys/ddb/db_dwarf.c
156
d->len -= n;
sys/ddb/db_dwarf.c
161
skip_bytes(struct dwbuf *d, size_t n)
sys/ddb/db_dwarf.c
163
if (d->len < n)
sys/ddb/db_dwarf.c
165
d->buf += n;
sys/ddb/db_dwarf.c
166
d->len -= n;
sys/ddb/db_dwarf.c
62
read_bytes(struct dwbuf *d, void *v, size_t n)
sys/ddb/db_dwarf.c
64
if (d->len < n)
sys/ddb/db_dwarf.c
66
memcpy(v, d->buf, n);
sys/ddb/db_dwarf.c
67
d->buf += n;
sys/ddb/db_dwarf.c
68
d->len -= n;
sys/ddb/db_dwarf.c
73
read_s8(struct dwbuf *d, int8_t *v)
sys/ddb/db_dwarf.c
75
return (read_bytes(d, v, sizeof(*v)));
sys/ddb/db_dwarf.c
79
read_u8(struct dwbuf *d, uint8_t *v)
sys/ddb/db_dwarf.c
81
return (read_bytes(d, v, sizeof(*v)));
sys/ddb/db_dwarf.c
85
read_u16(struct dwbuf *d, uint16_t *v)
sys/ddb/db_dwarf.c
87
return (read_bytes(d, v, sizeof(*v)));
sys/ddb/db_dwarf.c
91
read_u32(struct dwbuf *d, uint32_t *v)
sys/ddb/db_dwarf.c
93
return (read_bytes(d, v, sizeof(*v)));
sys/ddb/db_dwarf.c
97
read_u64(struct dwbuf *d, uint64_t *v)
sys/ddb/db_dwarf.c
99
return (read_bytes(d, v, sizeof(*v)));
sys/ddb/db_examine.c
299
char *d = dst;
sys/ddb/db_examine.c
306
if ((*d++ = *s++) == 0)
sys/ddb/db_examine.c
314
*d = '\0'; /* NUL-terminate dst */
sys/ddb/db_sym.c
141
db_expr_t d;
sys/ddb/db_sym.c
150
cursym = db_search_symbol(off, strategy, &d);
sys/ddb/db_sym.c
152
if (name && (d < db_maxoff) && value) {
sys/ddb/db_sym.c
154
if (d) {
sys/ddb/db_sym.c
156
d, DB_FORMAT_R, 1, 0));
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
1988
d != ACPI_PCI_DEV(ide->addr) ||
sys/dev/acpi/acpi.c
1992
dev->dv_xname, b,d,f, ide->chnl);
sys/dev/acpi/acpidmar.c
2390
struct domain *d = dom;
sys/dev/acpi/acpidmar.c
2397
if (d == NULL)
sys/dev/acpi/acpidmar.c
2399
iommu = d->iommu;
sys/dev/acpi/acpidmar.c
2404
domain_map_check(d);
sys/dev/acpi/acpidmar.c
2412
if (domain_map_page(d, gpa, hpa, PTE_P | PTE_R | PTE_W, 0) != 0)
sys/dev/acpi/acpidmar.c
2422
iommu_flush_tlb_segs(iommu, d->did, &seg, 1);
sys/dev/acpi/acpidmar.c
2614
struct dmar_devlist *d;
sys/dev/acpi/acpidmar.c
2627
d = malloc(sizeof(*d) + dplen, M_DEVBUF, M_ZERO | M_WAITOK);
sys/dev/acpi/acpidmar.c
2628
d->bus = ds->bus;
sys/dev/acpi/acpidmar.c
2629
d->type = ds->type;
sys/dev/acpi/acpidmar.c
2630
d->ndp = dplen / 2;
sys/dev/acpi/acpidmar.c
2631
d->dp = (void *)&d[1];
sys/dev/acpi/acpidmar.c
2632
memcpy(d->dp, &ds[1], dplen);
sys/dev/acpi/acpidmar.c
2633
TAILQ_INSERT_TAIL(devlist, d, link);
sys/dev/acpi/acpidmar.c
2638
d->dp[0].device,
sys/dev/acpi/acpidmar.c
2639
d->dp[0].function);
sys/dev/acpi/acpidmar.c
2641
for (i = 1; i < d->ndp; i++) {
sys/dev/acpi/acpidmar.c
2643
d->dp[i].device,
sys/dev/acpi/acpidmar.c
2644
d->dp[i].function);
sys/dev/acpi/acpidmar.c
93
mksid(int b, int d, int f)
sys/dev/acpi/acpidmar.c
95
return (b << 8) + (d << 3) + f;
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/ata/atascsi.c
1097
struct scsi_unmap_desc *descs, *d;
sys/dev/ata/atascsi.c
1107
len = _2btol(unmap->desc_length) / sizeof(*d);
sys/dev/ata/atascsi.c
1109
d = &descs[i];
sys/dev/ata/atascsi.c
1110
if (_4btol(d->logical_blocks) > ATA_DSM_TRIM_MAX_LEN)
sys/dev/ata/atascsi.c
1113
trims[i] = htole64(ATA_DSM_TRIM_DESC(_8btol(d->logical_addr),
sys/dev/ata/atascsi.c
1114
_4btol(d->logical_blocks)));
sys/dev/ata/atascsi.c
1830
u_int16_t *s = src, *d = dst;
sys/dev/ata/atascsi.c
1836
d[i] = swap16(s[i]);
sys/dev/audio.c
413
int d, e;
sys/dev/audio.c
430
d = -1;
sys/dev/audio.c
433
d = 1;
sys/dev/audio.c
447
q += d;
sys/dev/fdt/amliic.c
181
#define SET_DATA(i, d) \
sys/dev/fdt/amliic.c
182
data |= (((uint64_t)(d)) << ((i) * 8))
sys/dev/fdt/rkclock.c
2854
uint16_t n, d;
sys/dev/fdt/rkclock.c
2858
d = frac & 0xffff;
sys/dev/fdt/rkclock.c
2859
if (n == 0 || d == 0)
sys/dev/fdt/rkclock.c
2860
n = d = 1;
sys/dev/fdt/rkclock.c
2862
return ((uint64_t)parent_freq * n) / d;
sys/dev/fdt/rkclock.c
2869
uint32_t n, d;
sys/dev/fdt/rkclock.c
2875
d = sc->sc_cd.cd_get_frequency(sc, &parent);
sys/dev/fdt/rkclock.c
2881
if (n == 0 || d == 0 || d < 20 * n)
sys/dev/fdt/rkclock.c
2893
while (d != 0) {
sys/dev/fdt/rkclock.c
2898
tmp = d;
sys/dev/fdt/rkclock.c
2899
a = n / d;
sys/dev/fdt/rkclock.c
2900
d = n % d;
sys/dev/fdt/scmi.c
706
struct scmi_perf_domain *d;
sys/dev/fdt/scmi.c
718
d = &sc->sc_perf_domains[i];
sys/dev/fdt/scmi.c
719
if (d->pd_nlevels == 0)
sys/dev/fdt/scmi.c
725
min = d->pd_perf_min;
sys/dev/fdt/scmi.c
726
max = d->pd_perf_max;
sys/dev/fdt/scmi.c
732
for (j = 0; j < d->pd_nlevels - 1; j++)
sys/dev/fdt/scmi.c
733
if (d->pd_levels[j + 1].pl_perf > perf)
sys/dev/fdt/ssdfb.c
594
struct udl_ioctl_damage *d;
sys/dev/fdt/ssdfb.c
671
d = (struct udl_ioctl_damage *)data;
sys/dev/fdt/ssdfb.c
672
d->status = UDLIO_STATUS_OK;
sys/dev/fdt/ssdfb.c
673
ssdfb_partial(sc, d->x1, d->x2, d->y1, d->y2);
sys/dev/hid/hid.c
143
hid_start_parse(const void *d, int len, enum hid_kind kind)
sys/dev/hid/hid.c
149
s->start = s->p = d;
sys/dev/hid/hid.c
150
s->end = ((const uint8_t *)d) + len;
sys/dev/hid/hid.c
513
struct hid_data *d;
sys/dev/hid/hid.c
520
for (d = hid_start_parse(buf, len, k); hid_get_item(d, &h); ) {
sys/dev/hid/hid.c
539
hid_end_parse(d);
sys/dev/hid/hid.c
547
struct hid_data *d;
sys/dev/hid/hid.c
552
for (d = hid_start_parse(desc, size, k); hid_get_item(d, &h); ) {
sys/dev/hid/hid.c
561
hid_end_parse(d);
sys/dev/hid/hid.c
565
hid_end_parse(d);
sys/dev/hid/hidkbd.c
665
hidkbd_bell(d->pitch, d->period, d->volume, 0);
sys/dev/hid/hidkbd.c
711
struct hid_data *d;
sys/dev/hid/hidkbd.c
717
d = hid_start_parse(desc, dlen, hid_input);
sys/dev/hid/hidkbd.c
718
while (hid_get_item(d, &h)) {
sys/dev/hid/hidkbd.c
726
hid_end_parse(d);
sys/dev/hid/hidkbd.c
742
d = hid_start_parse(desc, dlen, hid_input);
sys/dev/hid/hidkbd.c
743
while (hid_get_item(d, &h)) {
sys/dev/hid/hidkbd.c
788
hid_end_parse(d);
sys/dev/hid/hidms.c
155
hidms_pad_buttons_hid_parse(struct hidms *ms, struct hid_data *d,
sys/dev/hid/hidms.c
160
while (hid_get_item(d, &h)) {
sys/dev/hid/hidms.c
251
struct hid_data *d;
sys/dev/hid/hidms.c
437
d = hid_start_parse(desc, dlen, hid_input);
sys/dev/hid/hidms.c
438
while (hid_get_item(d, &h)) {
sys/dev/hid/hidms.c
459
hid_end_parse(d);
sys/dev/hid/hidms.c
65
hidms_stylus_hid_parse(struct hidms *ms, struct hid_data *d,
sys/dev/hid/hidms.c
70
while (hid_get_item(d, &h)) {
sys/dev/hid/hidmt.c
116
int32_t d;
sys/dev/hid/hidmt.c
153
d = hid_get_udata(rep, capsize, &cap);
sys/dev/hid/hidmt.c
154
if (d > HIDMT_MAX_CONTACTS)
sys/dev/hid/hidmt.c
156
d, HIDMT_MAX_CONTACTS);
sys/dev/hid/hidmt.c
158
mt->sc_num_contacts = d;
sys/dev/hid/hidmt.c
164
d = hid_get_udata(rep, capsize, &cap);
sys/dev/hid/hidmt.c
165
mt->sc_clickpad = (d == 0);
sys/dev/hid/hidmt.c
327
int32_t d, firstu = 0;
sys/dev/hid/hidmt.c
387
d = hid_get_udata(data, len, &hi->loc);
sys/dev/hid/hidmt.c
407
hc.x = d;
sys/dev/hid/hidmt.c
411
hc.y = mt->sc_maxy - d;
sys/dev/hid/hidmt.c
413
hc.y = d;
sys/dev/hid/hidmt.c
416
hc.tip = d;
sys/dev/hid/hidmt.c
417
if (d)
sys/dev/hid/hidmt.c
421
hc.confidence = d;
sys/dev/hid/hidmt.c
424
hc.width = d;
sys/dev/hid/hidmt.c
427
hc.height = d;
sys/dev/hid/hidmt.c
430
hc.contactid = d;
sys/dev/hid/hidmt.c
435
if (d)
sys/dev/hid/hidmt.c
436
contactcount = d;
sys/dev/hid/hidmt.c
440
if (d != 0)
sys/dev/hid/hidmt.c
444
if (d != 0)
sys/dev/hil/hilkbd.c
312
d->pitch, d->period, d->volume);
sys/dev/i2c/ihidev.c
382
int d;
sys/dev/i2c/ihidev.c
424
d = tmprep[0] | tmprep[1] << 8;
sys/dev/i2c/ihidev.c
426
d == report_len &&
sys/dev/i2c/ihidev.c
434
d = tmprep[0] | tmprep[1] << 8;
sys/dev/i2c/ihidev.c
435
if (d != report_len)
sys/dev/i2c/ihidev.c
437
sc->sc_dev.dv_xname, d, report_len));
sys/dev/i2c/ihidev.c
439
d = tmprep[2];
sys/dev/i2c/ihidev.c
440
if (d != rreq->id) {
sys/dev/i2c/ihidev.c
442
sc->sc_dev.dv_xname, d, rreq->id));
sys/dev/i2c/ihidev.c
816
struct hid_data *d;
sys/dev/i2c/ihidev.c
822
for (d = hid_start_parse(buf, len, hid_all); hid_get_item(d, &h);)
sys/dev/i2c/ihidev.c
825
hid_end_parse(d);
sys/dev/ic/acxvar.h
100
(off), (const uint8_t *)(d), (dlen))
sys/dev/ic/acxvar.h
98
#define DESC_WRITE_REGION_1(sc, off, d, dlen) \
sys/dev/ic/ami.c
2172
int i, s, t, d;
sys/dev/ic/ami.c
2192
for (s = 0, d = 0; s < p->ald[i].adl_spandepth; s++)
sys/dev/ic/ami.c
2194
if (d != bd->bd_diskid) {
sys/dev/ic/ami.c
2195
d++;
sys/dev/ic/atw.c
3375
struct atw_duration *d)
sys/dev/ic/atw.c
3396
d->d_residue = 0;
sys/dev/ic/atw.c
3400
d->d_residue = (rate - remainder) / 16;
sys/dev/ic/atw.c
3421
d->d_plcp_len = data_dur;
sys/dev/ic/atw.c
3425
d->d_rts_dur =
sys/dev/ic/atw.c
3430
d->d_data_dur = ack;
sys/dev/ic/bwi.c
4590
int32_t q, d;
sys/dev/ic/bwi.c
4594
d = abs(q - f);
sys/dev/ic/bwi.c
4597
if (d < 2)
sys/dev/ic/bwi.c
5604
int d, i;
sys/dev/ic/bwi.c
5606
d = 0x1f - rf->rf_nrssi[0];
sys/dev/ic/bwi.c
5610
val = (((i - d) * rf->rf_nrssi_slope) / 0x10000) + 0x3a;
sys/dev/ic/cissreg.h
64
#define ciss_bitset(d, v) ((v)[(d) >> 3] & (1 << ((d) & 7)))
sys/dev/ic/dc.c
311
int d, i;
sys/dev/ic/dc.c
313
d = DC_EECMD_READ >> 6;
sys/dev/ic/dc.c
316
if (d & (1 << i))
sys/dev/ic/dc21040reg.h
40
#define TULIP_BITFIELD4(a, b, c, d) d, c, b, a
sys/dev/ic/dc21040reg.h
44
#define TULIP_BITFIELD4(a, b, c, d) a, b, c, d
sys/dev/ic/hme.c
1277
hme_newbuf(struct hme_softc *sc, struct hme_sxd *d)
sys/dev/ic/hme.c
1304
map = d->sd_map;
sys/dev/ic/hme.c
1305
d->sd_map = sc->sc_rxmap_spare;
sys/dev/ic/hme.c
1308
bus_dmamap_sync(sc->sc_dmatag, d->sd_map, 0, d->sd_map->dm_mapsize,
sys/dev/ic/hme.c
1312
d->sd_mbuf = m;
sys/dev/ic/lsi64854var.h
78
#define DMA_SETUP(sc, a, l, d, s) (((sc)->setup)(sc, a, l, d, s))
sys/dev/ic/mfi.c
1568
int i, d, size, rv = EINVAL;
sys/dev/ic/mfi.c
1627
for (i = 0, d = 0; i < cfg->mfc_no_ld; i++) {
sys/dev/ic/mfi.c
1634
d += sc->sc_ld_details[i].mld_cfg.mlc_parm.mpa_no_drv_per_span *
sys/dev/ic/mfi.c
1637
sc->sc_no_pd = d;
sys/dev/ic/mfireg.h
637
uint64_t d[12];
sys/dev/ic/osiop.c
128
#define OSIOP_TRACE(a,b,c,d) do { \
sys/dev/ic/osiop.c
132
osiop_trbuf[osiop_trix + 3] = (d); \
sys/dev/ic/osiop.c
140
#define OSIOP_TRACE(a,b,c,d)
sys/dev/ic/re.c
1163
struct rl_desc *d;
sys/dev/ic/re.c
1193
d = &sc->rl_ldata.rl_rx_list[idx];
sys/dev/ic/re.c
1195
cmdstat = letoh32(d->rl_cmdstat);
sys/dev/ic/re.c
1206
d->rl_vlanctl = 0;
sys/dev/ic/re.c
1210
re_set_bufaddr(d, map->dm_segs[0].ds_addr);
sys/dev/ic/re.c
1211
d->rl_cmdstat = htole32(cmdstat);
sys/dev/ic/re.c
1214
d->rl_cmdstat = htole32(cmdstat);
sys/dev/ic/re.c
1623
struct rl_desc *d;
sys/dev/ic/re.c
1749
d = &sc->rl_ldata.rl_tx_list[curidx];
sys/dev/ic/re.c
1753
d->rl_vlanctl = htole32(vlanctl);
sys/dev/ic/re.c
1754
re_set_bufaddr(d, map->dm_segs[seg].ds_addr);
sys/dev/ic/re.c
1760
d->rl_cmdstat = htole32(cmdstat);
sys/dev/ic/re.c
1770
d = &sc->rl_ldata.rl_tx_list[curidx];
sys/dev/ic/re.c
1774
d->rl_vlanctl = htole32(vlanctl);
sys/dev/ic/re.c
1775
re_set_bufaddr(d, RL_TXPADDADDR(sc));
sys/dev/ic/re.c
1783
d->rl_cmdstat = htole32(cmdstat);
sys/dev/ic/re.c
1791
d->rl_cmdstat |= htole32(RL_TDESC_CMD_EOF);
sys/dev/ic/re.c
1794
d = &sc->rl_ldata.rl_tx_list[idx];
sys/dev/ic/re.c
1797
d->rl_cmdstat |= htole32(RL_TDESC_CMD_OWN);
sys/dev/ic/re.c
273
re_set_bufaddr(struct rl_desc *d, bus_addr_t addr)
sys/dev/ic/re.c
275
d->rl_bufaddr_lo = htole32((uint32_t)addr);
sys/dev/ic/re.c
277
d->rl_bufaddr_hi = htole32((uint64_t)addr >> 32);
sys/dev/ic/re.c
279
d->rl_bufaddr_hi = 0;
sys/dev/ic/re.c
288
int d, i;
sys/dev/ic/re.c
290
d = addr | (RL_9346_READ << sc->rl_eewidth);
sys/dev/ic/re.c
297
if (d & i)
sys/dev/ic/rt2860.c
4045
int8_t ridx, d;
sys/dev/ic/rt2860.c
4060
for (d = 0; d > -4 && bbp49 <= tssi[d - 1]; d--)
sys/dev/ic/rt2860.c
4064
for (d = 0; d < +4 && bbp49 >= tssi[d + 1]; d++)
sys/dev/ic/rt2860.c
4068
d = 0;
sys/dev/ic/rt2860.c
4070
d *= step;
sys/dev/ic/rt2860.c
4072
DPRINTF(("BBP49=0x%02x, adjusting Tx power by %d\n", bbp49, d));
sys/dev/ic/rt2860.c
4079
b4inc(sc->txpow20mhz[ridx], d));
sys/dev/ic/rtl81x9.c
167
int d, i;
sys/dev/ic/rtl81x9.c
169
d = (RL_EECMD_READ << addr_len) | addr;
sys/dev/ic/rtl81x9.c
175
if (d & (1 << (i - 1)))
sys/dev/ic/rtw.c
2899
struct rtw_duration *d)
sys/dev/ic/rtw.c
2920
d->d_residue = 0;
sys/dev/ic/rtw.c
2924
d->d_residue = (rate - remainder) / 16;
sys/dev/ic/rtw.c
2945
d->d_plcp_len = data_dur;
sys/dev/ic/rtw.c
2949
d->d_rts_dur =
sys/dev/ic/rtw.c
2954
d->d_data_dur = ack;
sys/dev/ic/rtw.c
4889
#define EXTRACT_NIBBLE(d, which) (((d) >> (4 * (which))) & 0xf)
sys/dev/isa/ess.c
104
#define EWRITE1(t, h, a, d) (printf("EWRITE %02x=%02x\n", ((int)h & 0xfff)+a, d), bus_space_write_1(t, h, a, d))
sys/dev/isa/ess.c
107
#define EWRITE1(t, h, a, d) bus_space_write_1(t, h, a, d)
sys/dev/isa/gus.c
3153
unsigned char c,d,m;
sys/dev/isa/gus.c
3185
d = (unsigned char) (gus_drq_map[sc->sc_drq] |
sys/dev/isa/gus.c
3188
d = (unsigned char) (gus_drq_map[sc->sc_drq] |
sys/dev/isa/gus.c
3211
bus_space_write_1(iot, sc->sc_ioh1, GUS_DMA_CONTROL, d | 0x80);
sys/dev/isa/gus.c
3218
bus_space_write_1(iot, sc->sc_ioh1, GUS_DMA_CONTROL, d);
sys/dev/isa/isapnp.c
418
struct isa_attach_args *l = NULL, *n = NULL, *d;
sys/dev/isa/isapnp.c
423
d = c->ipa_sibling;
sys/dev/isa/isapnp.c
435
c = d;
sys/dev/isa/isapnp.c
835
int c, d;
sys/dev/isa/isapnp.c
864
for (d = 0;
sys/dev/isa/isapnp.c
865
(lpa = isapnp_bestconfig(parent, sc, &ipa)) != NULL; d++) {
sys/dev/isa/isapnp.c
866
isapnp_write_reg(sc, ISAPNP_LOGICAL_DEV_NUM, d);
sys/dev/isa/isapnpres.c
150
isapnp_merge(struct isa_attach_args *c, const struct isa_attach_args *d)
sys/dev/isa/isapnpres.c
154
for (i = 0; i < d->ipa_nio; i++)
sys/dev/isa/isapnpres.c
155
c->ipa_io[c->ipa_nio++] = d->ipa_io[i];
sys/dev/isa/isapnpres.c
157
for (i = 0; i < d->ipa_nmem; i++)
sys/dev/isa/isapnpres.c
158
c->ipa_mem[c->ipa_nmem++] = d->ipa_mem[i];
sys/dev/isa/isapnpres.c
160
for (i = 0; i < d->ipa_nmem32; i++)
sys/dev/isa/isapnpres.c
161
c->ipa_mem32[c->ipa_nmem32++] = d->ipa_mem32[i];
sys/dev/isa/isapnpres.c
163
for (i = 0; i < d->ipa_nirq; i++)
sys/dev/isa/isapnpres.c
164
c->ipa_irq[c->ipa_nirq++] = d->ipa_irq[i];
sys/dev/isa/isapnpres.c
166
for (i = 0; i < d->ipa_ndrq; i++)
sys/dev/isa/isapnpres.c
167
c->ipa_drq[c->ipa_ndrq++] = d->ipa_drq[i];
sys/dev/isa/isapnpres.c
177
struct isa_attach_args *dev, *conf, *d, *c, *pa;
sys/dev/isa/isapnpres.c
182
for (conf = c = NULL, d = dev; d; d = dev) {
sys/dev/isa/isapnpres.c
183
dev = d->ipa_sibling;
sys/dev/isa/isapnpres.c
184
if (d->ipa_child == NULL) {
sys/dev/isa/isapnpres.c
189
d->ipa_sibling = NULL;
sys/dev/isa/isapnpres.c
190
pa = d;
sys/dev/isa/isapnpres.c
197
for (pa = d->ipa_child; pa; pa = pa->ipa_sibling)
sys/dev/isa/isapnpres.c
198
isapnp_merge(pa, d);
sys/dev/isa/isapnpres.c
200
pa = d->ipa_child;
sys/dev/isa/isapnpres.c
201
free(d, M_DEVBUF, 0);
sys/dev/isa/isapnpres.c
437
u_char d, tag;
sys/dev/isa/isapnpres.c
452
d = isapnp_read_reg(sc, ISAPNP_RESOURCE_DATA)
sys/dev/isa/isapnpres.c
457
if (d != sc->sc_id[c][i] && i != ISAPNP_SERIAL_SIZE - 1) {
sys/dev/isa/isapnpres.c
477
if (d & ISAPNP_LARGE_TAG) {
sys/dev/isa/isapnpres.c
478
tag = d;
sys/dev/isa/isapnpres.c
480
buf[0] = d;
sys/dev/isa/isapnpres.c
482
buf[1] = d;
sys/dev/isa/isapnpres.c
486
tag = (d >> 3) & 0xf;
sys/dev/isa/isapnpres.c
487
len = d & 0x7;
sys/dev/isa/isapnpres.c
493
*p++ = d;
sys/dev/isa/mpu401.c
186
mpu_output(void *v, int d)
sys/dev/isa/mpu401.c
190
DPRINTFN(3, ("mpu_output: sc=%p 0x%02x\n", sc, d));
sys/dev/isa/mpu401.c
198
bus_space_write_1(sc->iot, sc->ioh, MPU_DATA, d);
sys/dev/isa/pas.c
141
#define paswrite(d, p) outb(p, d)
sys/dev/isa/sb.c
283
sb_mpu401_output(void *addr, int d)
sys/dev/isa/sb.c
285
return mpu_output(SBMPU(addr), d);
sys/dev/isa/sbdsp.c
2165
sbdsp_midi_output(void *addr, int d)
sys/dev/isa/sbdsp.c
2171
(void)sbdsp_wdsp(sc, d);
sys/dev/mii/miivar.h
224
#define PHY_SERVICE(p, d, o) \
sys/dev/mii/miivar.h
225
(*(p)->mii_funcs->pf_service)((p), (d), (o))
sys/dev/onewire/onewire.c
402
struct onewire_device *d, *next, *nd;
sys/dev/onewire/onewire.c
414
TAILQ_FOREACH(d, &sc->sc_devs, d_list)
sys/dev/onewire/onewire.c
415
d->d_present = 0;
sys/dev/onewire/onewire.c
441
TAILQ_FOREACH(d, &sc->sc_devs, d_list) {
sys/dev/onewire/onewire.c
442
if (d->d_rom == rom) {
sys/dev/onewire/onewire.c
443
d->d_present = 1;
sys/dev/onewire/onewire.c
468
TAILQ_FOREACH_SAFE(d, &sc->sc_devs, d_list, next) {
sys/dev/onewire/onewire.c
469
if (!d->d_present) {
sys/dev/onewire/onewire.c
470
if (d->d_dev != NULL)
sys/dev/onewire/onewire.c
471
config_detach(d->d_dev, DETACH_FORCE);
sys/dev/onewire/onewire.c
472
TAILQ_REMOVE(&sc->sc_devs, d, d_list);
sys/dev/onewire/onewire.c
473
free(d, M_DEVBUF, sizeof *d);
sys/dev/pci/autri.c
1344
autri_midi_output(void *addr, int d)
sys/dev/pci/autri.c
1349
TWRITE1(sc, AUTRI_MPUR0, d);
sys/dev/pci/autri.c
537
} d[] = {
sys/dev/pci/autri.c
549
d[i].class, d[i].device, AudioNmute);
sys/dev/pci/autri.c
551
ctl.dev = autri_get_portnum_by_name(sc,d[i].class,
sys/dev/pci/autri.c
552
d[i].device, AudioNmute);
sys/dev/pci/autri.c
93
int autri_read_codec(void *sc, u_int8_t a, u_int16_t *d);
sys/dev/pci/autri.c
94
int autri_write_codec(void *sc, u_int8_t a, u_int16_t d);
sys/dev/pci/auvia.c
314
} d[] = {
sys/dev/pci/auvia.c
325
d[i].class, d[i].device, AudioNmute);
sys/dev/pci/azalia.c
1353
azalia_alloc_dmamem(azalia_t *az, size_t size, size_t align, azalia_dma_t *d)
sys/dev/pci/azalia.c
1358
d->size = size;
sys/dev/pci/azalia.c
1359
err = bus_dmamem_alloc(az->dmat, size, align, 0, d->segments, 1,
sys/dev/pci/azalia.c
1365
err = bus_dmamem_map(az->dmat, d->segments, 1, size,
sys/dev/pci/azalia.c
1366
&d->addr, BUS_DMA_NOWAIT | BUS_DMA_COHERENT);
sys/dev/pci/azalia.c
1370
BUS_DMA_NOWAIT, &d->map);
sys/dev/pci/azalia.c
1373
err = bus_dmamap_load(az->dmat, d->map, d->addr, size,
sys/dev/pci/azalia.c
1378
if (!az->ok64 && PTR_UPPER32(AZALIA_DMA_DMAADDR(d)) != 0) {
sys/dev/pci/azalia.c
1379
azalia_free_dmamem(az, d);
sys/dev/pci/azalia.c
1385
bus_dmamap_destroy(az->dmat, d->map);
sys/dev/pci/azalia.c
1387
bus_dmamem_unmap(az->dmat, d->addr, size);
sys/dev/pci/azalia.c
1389
bus_dmamem_free(az->dmat, d->segments, 1);
sys/dev/pci/azalia.c
1390
d->addr = NULL;
sys/dev/pci/azalia.c
1395
azalia_free_dmamem(const azalia_t *az, azalia_dma_t* d)
sys/dev/pci/azalia.c
1397
if (d->addr == NULL)
sys/dev/pci/azalia.c
1399
bus_dmamap_unload(az->dmat, d->map);
sys/dev/pci/azalia.c
1400
bus_dmamap_destroy(az->dmat, d->map);
sys/dev/pci/azalia.c
1401
bus_dmamem_unmap(az->dmat, d->addr, d->size);
sys/dev/pci/azalia.c
1402
bus_dmamem_free(az->dmat, d->segments, 1);
sys/dev/pci/azalia.c
1403
d->addr = NULL;
sys/dev/pci/azalia.c
1618
this->w[this->audiofunc].d.audio.encodings = result;
sys/dev/pci/azalia.c
1621
this->w[this->audiofunc].d.audio.bits_rates = result;
sys/dev/pci/azalia.c
1696
switch (CORB_CD_PORT(w->d.pin.config)) {
sys/dev/pci/azalia.c
1698
switch (w->d.pin.device) {
sys/dev/pci/azalia.c
1702
} else if (w->d.pin.association <
sys/dev/pci/azalia.c
1703
this->w[this->speaker].d.pin.association ||
sys/dev/pci/azalia.c
1704
(w->d.pin.association ==
sys/dev/pci/azalia.c
1705
this->w[this->speaker].d.pin.association &&
sys/dev/pci/azalia.c
1706
w->d.pin.sequence <
sys/dev/pci/azalia.c
1707
this->w[this->speaker].d.pin.sequence)) {
sys/dev/pci/azalia.c
1725
if (w->d.pin.device == CORB_CD_LINEOUT)
sys/dev/pci/azalia.c
1727
else if (w->d.pin.device == CORB_CD_HEADPHONE &&
sys/dev/pci/azalia.c
1728
CORB_CD_LOC_GEO(w->d.pin.config) ==
sys/dev/pci/azalia.c
1735
!(w->d.pin.cap & COP_PINCAP_PRESENCE))
sys/dev/pci/azalia.c
1747
if ((w->d.pin.device == CORB_CD_DIGITALOUT) &&
sys/dev/pci/azalia.c
1748
(w->d.pin.cap & COP_PINCAP_HDMI))
sys/dev/pci/azalia.c
1750
else if (w->d.pin.device == CORB_CD_SPDIFOUT ||
sys/dev/pci/azalia.c
1751
w->d.pin.device == CORB_CD_SPDIFIN)
sys/dev/pci/azalia.c
1930
loc = CORB_CD_LOC_GEO(w->d.pin.config);
sys/dev/pci/azalia.c
1932
prio = w->d.pin.association << 4 | w->d.pin.sequence;
sys/dev/pci/azalia.c
1936
if ((w->d.pin.cap & COP_PINCAP_OUTPUT) &&
sys/dev/pci/azalia.c
1940
switch(w->d.pin.device) {
sys/dev/pci/azalia.c
1969
if ((w->d.pin.cap & COP_PINCAP_OUTPUT) &&
sys/dev/pci/azalia.c
1972
switch(w->d.pin.device) {
sys/dev/pci/azalia.c
1985
if ((w->d.pin.cap & COP_PINCAP_INPUT) &&
sys/dev/pci/azalia.c
1989
switch(w->d.pin.device) {
sys/dev/pci/azalia.c
2014
if ((w->d.pin.cap & COP_PINCAP_INPUT) &&
sys/dev/pci/azalia.c
2017
switch(w->d.pin.device) {
sys/dev/pci/azalia.c
2522
if (!COP_VKCAP_NUMSTEPS(w->d.volume.cap))
sys/dev/pci/azalia.c
2671
bits_rates = this->w[group->conv[0]].d.audio.bits_rates;
sys/dev/pci/azalia.c
2696
bits_rates = this->w[group->conv[0]].d.audio.bits_rates;
sys/dev/pci/azalia.c
2745
bits_rates &= this->w[nid].d.audio.bits_rates;
sys/dev/pci/azalia.c
2764
bits_rates &= this->w[nid].d.audio.bits_rates;
sys/dev/pci/azalia.c
2975
this->d.volume.cap = result;
sys/dev/pci/azalia.c
3093
if (w->d.pin.device != CORB_CD_LINEOUT)
sys/dev/pci/azalia.c
3095
if (colors_used & (1 << w->d.pin.color))
sys/dev/pci/azalia.c
3098
colors_used |= (1 << w->d.pin.color);
sys/dev/pci/azalia.c
3109
pins[w->d.pin.device]++;
sys/dev/pci/azalia.c
3110
if (use_colors && w->d.pin.device == CORB_CD_LINEOUT) {
sys/dev/pci/azalia.c
3112
pin_devices[w->d.pin.device],
sys/dev/pci/azalia.c
3113
line_colors[w->d.pin.color]);
sys/dev/pci/azalia.c
3114
} else if (pins[w->d.pin.device] > 1) {
sys/dev/pci/azalia.c
3116
pin_devices[w->d.pin.device],
sys/dev/pci/azalia.c
3117
pins[w->d.pin.device]);
sys/dev/pci/azalia.c
3120
pin_devices[w->d.pin.device]);
sys/dev/pci/azalia.c
3258
this->d.audio.encodings = result;
sys/dev/pci/azalia.c
3261
this->d.audio.encodings =
sys/dev/pci/azalia.c
3262
codec->w[codec->audiofunc].d.audio.encodings;
sys/dev/pci/azalia.c
3263
this->d.audio.bits_rates =
sys/dev/pci/azalia.c
3264
codec->w[codec->audiofunc].d.audio.bits_rates;
sys/dev/pci/azalia.c
3275
this->d.audio.bits_rates = result;
sys/dev/pci/azalia.c
3278
this->d.audio.encodings =
sys/dev/pci/azalia.c
3279
codec->w[codec->audiofunc].d.audio.encodings;
sys/dev/pci/azalia.c
3280
this->d.audio.bits_rates =
sys/dev/pci/azalia.c
3281
codec->w[codec->audiofunc].d.audio.bits_rates;
sys/dev/pci/azalia.c
3296
this->d.pin.config = result;
sys/dev/pci/azalia.c
3297
this->d.pin.sequence = CORB_CD_SEQUENCE(result);
sys/dev/pci/azalia.c
3298
this->d.pin.association = CORB_CD_ASSOCIATION(result);
sys/dev/pci/azalia.c
3299
this->d.pin.color = CORB_CD_COLOR(result);
sys/dev/pci/azalia.c
3300
this->d.pin.device = CORB_CD_DEVICE(result);
sys/dev/pci/azalia.c
3306
this->d.pin.cap = result;
sys/dev/pci/azalia.c
3309
switch (this->d.pin.device) {
sys/dev/pci/azalia.c
3319
if (dir == CORB_PWC_INPUT && !(this->d.pin.cap & COP_PINCAP_INPUT))
sys/dev/pci/azalia.c
3321
if (dir == CORB_PWC_OUTPUT && !(this->d.pin.cap & COP_PINCAP_OUTPUT))
sys/dev/pci/azalia.c
3324
if (dir == CORB_PWC_INPUT && this->d.pin.device == CORB_CD_MICIN) {
sys/dev/pci/azalia.c
3325
if (COP_PINCAP_VREF(this->d.pin.cap) & (1 << CORB_PWC_VREF_80))
sys/dev/pci/azalia.c
3327
else if (COP_PINCAP_VREF(this->d.pin.cap) &
sys/dev/pci/azalia.c
3338
if (this->d.pin.cap & COP_PINCAP_EAPD) {
sys/dev/pci/azalia.c
3352
if (CORB_CD_PORT(this->d.pin.config) == CORB_CD_NONE)
sys/dev/pci/azalia.c
3559
printf("%sencodings=%b\n", lead, this->d.audio.encodings,
sys/dev/pci/azalia.c
3561
printf("%sPCM formats=%b\n", lead, this->d.audio.bits_rates,
sys/dev/pci/azalia.c
3572
pin_colors[w->d.pin.color] : wtypes[w->type],
sys/dev/pci/azalia.c
3581
!!(w->d.volume.cap & COP_VKCAP_DELTA),
sys/dev/pci/azalia.c
3582
COP_VKCAP_NUMSTEPS(w->d.volume.cap));
sys/dev/pci/azalia.c
3611
printf("\tcap=%b\n", this->d.pin.cap, PINCAP_BITS);
sys/dev/pci/azalia.c
3612
printf("\t[%2.2d/%2.2d] ", CORB_CD_ASSOCIATION(this->d.pin.config),
sys/dev/pci/azalia.c
3613
CORB_CD_SEQUENCE(this->d.pin.config));
sys/dev/pci/azalia.c
3614
printf("color=%s ", pin_colors[CORB_CD_COLOR(this->d.pin.config)]);
sys/dev/pci/azalia.c
3615
printf("device=%s ", pin_devices[CORB_CD_DEVICE(this->d.pin.config)]);
sys/dev/pci/azalia.c
3616
printf("conn=%s ", pin_conn[CORB_CD_PORT(this->d.pin.config)]);
sys/dev/pci/azalia.c
3617
printf("conntype=%s\n", pin_conntype[CORB_CD_CONNECTION(this->d.pin.config)]);
sys/dev/pci/azalia.c
3618
printf("\tlocation=%s ", pin_geo[CORB_CD_LOC_GEO(this->d.pin.config)]);
sys/dev/pci/azalia.c
3619
printf("chassis=%s ", pin_chass[CORB_CD_LOC_CHASS(this->d.pin.config)]);
sys/dev/pci/azalia.c
3621
if (CORB_CD_LOC_GEO(this->d.pin.config) == CORB_CD_LOC_SPEC0) {
sys/dev/pci/azalia.c
3622
if (CORB_CD_LOC_CHASS(this->d.pin.config) == CORB_CD_EXTERNAL)
sys/dev/pci/azalia.c
3624
else if (CORB_CD_LOC_CHASS(this->d.pin.config) == CORB_CD_INTERNAL)
sys/dev/pci/azalia.c
3626
else if (CORB_CD_LOC_CHASS(this->d.pin.config) == CORB_CD_LOC_OTHER)
sys/dev/pci/azalia.c
3628
} else if (CORB_CD_LOC_GEO(this->d.pin.config) == CORB_CD_LOC_SPEC1) {
sys/dev/pci/azalia.c
3629
if (CORB_CD_LOC_CHASS(this->d.pin.config) == CORB_CD_EXTERNAL)
sys/dev/pci/azalia.c
3631
else if (CORB_CD_LOC_CHASS(this->d.pin.config) == CORB_CD_INTERNAL)
sys/dev/pci/azalia.c
3633
else if (CORB_CD_LOC_CHASS(this->d.pin.config) == CORB_CD_LOC_OTHER)
sys/dev/pci/azalia.c
3635
} else if (CORB_CD_LOC_GEO(this->d.pin.config) == CORB_CD_LOC_SPEC2) {
sys/dev/pci/azalia.c
3636
if (CORB_CD_LOC_CHASS(this->d.pin.config) == CORB_CD_INTERNAL)
sys/dev/pci/azalia.h
584
} d;
sys/dev/pci/azalia_codec.c
1000
d->mixer_class = AZ_CLASS_INPUT;
sys/dev/pci/azalia_codec.c
1002
azalia_devinfo_offon(d);
sys/dev/pci/azalia_codec.c
1006
snprintf(d->label.name, sizeof(d->label.name),
sys/dev/pci/azalia_codec.c
1009
d->type = AUDIO_MIXER_SET;
sys/dev/pci/azalia_codec.c
1011
d->mixer_class = w->mixer_class;
sys/dev/pci/azalia_codec.c
1013
d->mixer_class = AZ_CLASS_INPUT;
sys/dev/pci/azalia_codec.c
1022
d->un.s.member[k].mask = 1 << j;
sys/dev/pci/azalia_codec.c
1023
strlcpy(d->un.s.member[k].label.name,
sys/dev/pci/azalia_codec.c
1028
d->un.s.num_mem = k;
sys/dev/pci/azalia_codec.c
1042
snprintf(d->label.name, sizeof(d->label.name),
sys/dev/pci/azalia_codec.c
1044
d->type = AUDIO_MIXER_VALUE;
sys/dev/pci/azalia_codec.c
1046
d->mixer_class = w->mixer_class;
sys/dev/pci/azalia_codec.c
1048
d->mixer_class = AZ_CLASS_INPUT;
sys/dev/pci/azalia_codec.c
1050
d->un.v.num_channels = WIDGET_CHANNELS(w);
sys/dev/pci/azalia_codec.c
1051
d->un.v.units.name[0] = 0;
sys/dev/pci/azalia_codec.c
1052
d->un.v.delta =
sys/dev/pci/azalia_codec.c
1064
snprintf(d->label.name,
sys/dev/pci/azalia_codec.c
1065
sizeof(d->label.name), "%s_%s",
sys/dev/pci/azalia_codec.c
1068
d->type = AUDIO_MIXER_VALUE;
sys/dev/pci/azalia_codec.c
1070
d->mixer_class = w->mixer_class;
sys/dev/pci/azalia_codec.c
1072
d->mixer_class = AZ_CLASS_INPUT;
sys/dev/pci/azalia_codec.c
1074
d->un.v.num_channels = WIDGET_CHANNELS(w);
sys/dev/pci/azalia_codec.c
1075
d->un.v.units.name[0] = 0;
sys/dev/pci/azalia_codec.c
1076
d->un.v.delta =
sys/dev/pci/azalia_codec.c
1087
snprintf(d->label.name, sizeof(d->label.name),
sys/dev/pci/azalia_codec.c
1090
d->type = AUDIO_MIXER_SET;
sys/dev/pci/azalia_codec.c
1092
d->mixer_class = w->mixer_class;
sys/dev/pci/azalia_codec.c
1094
d->mixer_class = AZ_CLASS_INPUT;
sys/dev/pci/azalia_codec.c
1103
d->un.s.member[k].mask = 1 << j;
sys/dev/pci/azalia_codec.c
1104
strlcpy(d->un.s.member[k].label.name,
sys/dev/pci/azalia_codec.c
1109
d->un.s.num_mem = k;
sys/dev/pci/azalia_codec.c
1116
((w->d.pin.cap & COP_PINCAP_OUTPUT &&
sys/dev/pci/azalia_codec.c
1117
w->d.pin.cap & COP_PINCAP_INPUT) ||
sys/dev/pci/azalia_codec.c
1118
COP_PINCAP_VREF(w->d.pin.cap) > 1)) {
sys/dev/pci/azalia_codec.c
1121
snprintf(d->label.name, sizeof(d->label.name),
sys/dev/pci/azalia_codec.c
1123
d->type = AUDIO_MIXER_ENUM;
sys/dev/pci/azalia_codec.c
1124
d->mixer_class = AZ_CLASS_OUTPUT;
sys/dev/pci/azalia_codec.c
1128
d->un.e.member[k].ord = 0;
sys/dev/pci/azalia_codec.c
1129
strlcpy(d->un.e.member[k].label.name, "none",
sys/dev/pci/azalia_codec.c
1133
if (w->d.pin.cap & COP_PINCAP_OUTPUT) {
sys/dev/pci/azalia_codec.c
1134
d->un.e.member[k].ord = 1;
sys/dev/pci/azalia_codec.c
1135
strlcpy(d->un.e.member[k].label.name,
sys/dev/pci/azalia_codec.c
1140
if (w->d.pin.cap & COP_PINCAP_INPUT) {
sys/dev/pci/azalia_codec.c
1141
d->un.e.member[k].ord = 2;
sys/dev/pci/azalia_codec.c
1142
strlcpy(d->un.e.member[k].label.name,
sys/dev/pci/azalia_codec.c
1149
strlcpy(d->un.e.member[k].label.name,
sys/dev/pci/azalia_codec.c
1154
strlcpy(d->un.e.member[k].label.name,
sys/dev/pci/azalia_codec.c
1159
strlcpy(d->un.e.member[k].label.name,
sys/dev/pci/azalia_codec.c
1164
strlcpy(d->un.e.member[k].label.name,
sys/dev/pci/azalia_codec.c
1168
if ((COP_PINCAP_VREF(w->d.pin.cap) &
sys/dev/pci/azalia_codec.c
1170
d->un.e.member[k].ord = j + 3;
sys/dev/pci/azalia_codec.c
1175
d->un.e.num_mem = k;
sys/dev/pci/azalia_codec.c
1181
w->d.pin.cap & COP_PINCAP_HEADPHONE &&
sys/dev/pci/azalia_codec.c
1184
snprintf(d->label.name, sizeof(d->label.name),
sys/dev/pci/azalia_codec.c
1186
d->mixer_class = AZ_CLASS_OUTPUT;
sys/dev/pci/azalia_codec.c
1188
azalia_devinfo_offon(d);
sys/dev/pci/azalia_codec.c
1193
w->d.pin.cap & COP_PINCAP_EAPD) {
sys/dev/pci/azalia_codec.c
1195
snprintf(d->label.name, sizeof(d->label.name),
sys/dev/pci/azalia_codec.c
1197
d->mixer_class = AZ_CLASS_OUTPUT;
sys/dev/pci/azalia_codec.c
1199
azalia_devinfo_offon(d);
sys/dev/pci/azalia_codec.c
1214
snprintf(d->label.name, sizeof(d->label.name), "%s_sense",
sys/dev/pci/azalia_codec.c
1216
d->type = AUDIO_MIXER_ENUM;
sys/dev/pci/azalia_codec.c
1217
d->mixer_class = AZ_CLASS_OUTPUT;
sys/dev/pci/azalia_codec.c
1219
d->un.e.num_mem = 2;
sys/dev/pci/azalia_codec.c
1220
d->un.e.member[0].ord = 0;
sys/dev/pci/azalia_codec.c
1221
strlcpy(d->un.e.member[0].label.name, "unplugged",
sys/dev/pci/azalia_codec.c
1223
d->un.e.member[1].ord = 1;
sys/dev/pci/azalia_codec.c
1224
strlcpy(d->un.e.member[1].label.name, "plugged",
sys/dev/pci/azalia_codec.c
1236
else if ((w->d.pin.cap & COP_PINCAP_OUTPUT) &&
sys/dev/pci/azalia_codec.c
1237
(w->d.pin.cap & COP_PINCAP_INPUT))
sys/dev/pci/azalia_codec.c
1251
snprintf(d->label.name, sizeof(d->label.name),
sys/dev/pci/azalia_codec.c
1254
d->type = AUDIO_MIXER_SET;
sys/dev/pci/azalia_codec.c
1255
d->mixer_class = AZ_CLASS_OUTPUT;
sys/dev/pci/azalia_codec.c
1259
if (!(ww->d.pin.cap & COP_PINCAP_OUTPUT))
sys/dev/pci/azalia_codec.c
1263
d->un.s.member[j].mask = 1 << i;
sys/dev/pci/azalia_codec.c
1265
strlcpy(d->un.s.member[j++].label.name, ww->name,
sys/dev/pci/azalia_codec.c
1268
d->un.s.num_mem = j;
sys/dev/pci/azalia_codec.c
1275
mixer_devinfo_t *d;
sys/dev/pci/azalia_codec.c
1283
d = &m->devinfo;
sys/dev/pci/azalia_codec.c
1284
d->mixer_class = AZ_CLASS_OUTPUT;
sys/dev/pci/azalia_codec.c
1285
snprintf(d->label.name, sizeof(d->label.name),
sys/dev/pci/azalia_codec.c
1287
d->type = AUDIO_MIXER_VALUE;
sys/dev/pci/azalia_codec.c
1288
d->un.v.num_channels = 2;
sys/dev/pci/azalia_codec.c
1289
d->un.v.delta = 8;
sys/dev/pci/azalia_codec.c
1291
d->next = this->nmixers;
sys/dev/pci/azalia_codec.c
1297
d = &m->devinfo;
sys/dev/pci/azalia_codec.c
1298
d->prev = this->nmixers - 1;
sys/dev/pci/azalia_codec.c
1299
d->mixer_class = AZ_CLASS_OUTPUT;
sys/dev/pci/azalia_codec.c
1300
snprintf(d->label.name, sizeof(d->label.name),
sys/dev/pci/azalia_codec.c
1302
azalia_devinfo_offon(d);
sys/dev/pci/azalia_codec.c
1304
d->next = this->nmixers;
sys/dev/pci/azalia_codec.c
1310
d = &m->devinfo;
sys/dev/pci/azalia_codec.c
1311
d->prev = this->nmixers - 1;
sys/dev/pci/azalia_codec.c
1312
d->mixer_class = AZ_CLASS_OUTPUT;
sys/dev/pci/azalia_codec.c
1313
snprintf(d->label.name, sizeof(d->label.name),
sys/dev/pci/azalia_codec.c
1315
d->type = AUDIO_MIXER_SET;
sys/dev/pci/azalia_codec.c
1318
d->un.s.member[j].mask = (1 << i);
sys/dev/pci/azalia_codec.c
1319
strlcpy(d->un.s.member[j++].label.name, ww->name,
sys/dev/pci/azalia_codec.c
1322
d->un.s.num_mem = j;
sys/dev/pci/azalia_codec.c
1328
mixer_devinfo_t *d;
sys/dev/pci/azalia_codec.c
1336
d = &m->devinfo;
sys/dev/pci/azalia_codec.c
1337
d->mixer_class = AZ_CLASS_RECORD;
sys/dev/pci/azalia_codec.c
1338
snprintf(d->label.name, sizeof(d->label.name),
sys/dev/pci/azalia_codec.c
1340
d->type = AUDIO_MIXER_VALUE;
sys/dev/pci/azalia_codec.c
1341
d->un.v.num_channels = 2;
sys/dev/pci/azalia_codec.c
1342
d->un.v.delta = 8;
sys/dev/pci/azalia_codec.c
1344
d->next = this->nmixers;
sys/dev/pci/azalia_codec.c
1350
d = &m->devinfo;
sys/dev/pci/azalia_codec.c
1351
d->prev = this->nmixers - 1;
sys/dev/pci/azalia_codec.c
1352
d->mixer_class = AZ_CLASS_RECORD;
sys/dev/pci/azalia_codec.c
1353
snprintf(d->label.name, sizeof(d->label.name),
sys/dev/pci/azalia_codec.c
1355
azalia_devinfo_offon(d);
sys/dev/pci/azalia_codec.c
1357
d->next = this->nmixers;
sys/dev/pci/azalia_codec.c
1363
d = &m->devinfo;
sys/dev/pci/azalia_codec.c
1364
d->prev = this->nmixers - 1;
sys/dev/pci/azalia_codec.c
1365
d->mixer_class = AZ_CLASS_RECORD;
sys/dev/pci/azalia_codec.c
1366
snprintf(d->label.name, sizeof(d->label.name),
sys/dev/pci/azalia_codec.c
1368
d->type = AUDIO_MIXER_SET;
sys/dev/pci/azalia_codec.c
1371
d->un.s.member[j].mask = (1 << i);
sys/dev/pci/azalia_codec.c
1372
strlcpy(d->un.s.member[j++].label.name, ww->name,
sys/dev/pci/azalia_codec.c
1375
d->un.s.num_mem = j;
sys/dev/pci/azalia_codec.c
1384
strlcpy(d->label.name, AudioNmode, sizeof(d->label.name));
sys/dev/pci/azalia_codec.c
1385
d->type = AUDIO_MIXER_ENUM;
sys/dev/pci/azalia_codec.c
1386
d->mixer_class = AZ_CLASS_OUTPUT;
sys/dev/pci/azalia_codec.c
1389
d->un.e.member[0].ord = 0;
sys/dev/pci/azalia_codec.c
1390
strlcpy(d->un.e.member[0].label.name, "analog",
sys/dev/pci/azalia_codec.c
1392
d->un.e.member[1].ord = 1;
sys/dev/pci/azalia_codec.c
1393
strlcpy(d->un.e.member[1].label.name, "digital",
sys/dev/pci/azalia_codec.c
1395
d->un.e.num_mem = 2;
sys/dev/pci/azalia_codec.c
1404
strlcpy(d->label.name, AudioNmode, sizeof(d->label.name));
sys/dev/pci/azalia_codec.c
1405
d->type = AUDIO_MIXER_ENUM;
sys/dev/pci/azalia_codec.c
1406
d->mixer_class = AZ_CLASS_RECORD;
sys/dev/pci/azalia_codec.c
1409
d->un.e.member[0].ord = 0;
sys/dev/pci/azalia_codec.c
1410
strlcpy(d->un.e.member[0].label.name, "analog",
sys/dev/pci/azalia_codec.c
1412
d->un.e.member[1].ord = 1;
sys/dev/pci/azalia_codec.c
1413
strlcpy(d->un.e.member[1].label.name, "digital",
sys/dev/pci/azalia_codec.c
1415
d->un.e.num_mem = 2;
sys/dev/pci/azalia_codec.c
1425
azalia_devinfo_offon(mixer_devinfo_t *d)
sys/dev/pci/azalia_codec.c
1427
d->type = AUDIO_MIXER_ENUM;
sys/dev/pci/azalia_codec.c
1428
d->un.e.num_mem = 2;
sys/dev/pci/azalia_codec.c
1429
d->un.e.member[0].ord = 0;
sys/dev/pci/azalia_codec.c
1430
strlcpy(d->un.e.member[0].label.name, AudioNoff, MAX_AUDIO_DEV_LEN);
sys/dev/pci/azalia_codec.c
1431
d->un.e.member[1].ord = 1;
sys/dev/pci/azalia_codec.c
1432
strlcpy(d->un.e.member[1].label.name, AudioNon, MAX_AUDIO_DEV_LEN);
sys/dev/pci/azalia_codec.c
1463
mixer_devinfo_t *d;
sys/dev/pci/azalia_codec.c
1466
d = &this->mixers[i].devinfo;
sys/dev/pci/azalia_codec.c
1468
if (d->index != 0 && d->index != i)
sys/dev/pci/azalia_codec.c
1470
d->index, i);
sys/dev/pci/azalia_codec.c
1472
d->index = i;
sys/dev/pci/azalia_codec.c
1473
if (d->prev == 0)
sys/dev/pci/azalia_codec.c
1474
d->prev = AUDIO_MIXER_LAST;
sys/dev/pci/azalia_codec.c
1475
if (d->next == 0)
sys/dev/pci/azalia_codec.c
1476
d->next = AUDIO_MIXER_LAST;
sys/dev/pci/azalia_codec.c
1645
this->playvols.hw_nsteps = COP_VKCAP_NUMSTEPS(w->d.volume.cap);
sys/dev/pci/azalia_codec.c
1798
cap = COP_PINCAP_VREF(this->w[nid].d.pin.cap);
sys/dev/pci/azalia_codec.c
2604
w->d.pin.config &= ~(mask);
sys/dev/pci/azalia_codec.c
2605
w->d.pin.config |= val << offset;
sys/dev/pci/azalia_codec.c
2607
w->d.pin.device = val;
sys/dev/pci/azalia_codec.c
2651
w->d.pin.config = 0x23a11040;
sys/dev/pci/azalia_codec.c
2658
w->d.pin.config = 0x2121103f;
sys/dev/pci/azalia_codec.c
2665
w->d.pin.config = 0x21211010;
sys/dev/pci/azalia_codec.c
2672
w->d.pin.config = 0x21a11010;
sys/dev/pci/azalia_codec.c
2679
w->d.pin.config = 0x21a190f0;
sys/dev/pci/azalia_codec.c
2686
w->d.pin.config = 0x212140ff;
sys/dev/pci/azalia_codec.c
2691
nid == 0x1c && w->enable == 0 && w->d.pin.device == CORB_CD_CD) {
sys/dev/pci/azalia_codec.c
776
(this->w[this->speaker2].d.pin.cap & COP_PINCAP_OUTPUT) &&
sys/dev/pci/azalia_codec.c
777
(this->w[this->speaker2].d.pin.cap & COP_PINCAP_INPUT))
sys/dev/pci/azalia_codec.c
893
mixer_devinfo_t *d; \
sys/dev/pci/azalia_codec.c
898
d = &m->devinfo; \
sys/dev/pci/azalia_codec.c
914
snprintf(d->label.name, sizeof(d->label.name),
sys/dev/pci/azalia_codec.c
916
d->type = AUDIO_MIXER_ENUM;
sys/dev/pci/azalia_codec.c
918
d->mixer_class = w->mixer_class;
sys/dev/pci/azalia_codec.c
921
d->mixer_class = AZ_CLASS_INPUT;
sys/dev/pci/azalia_codec.c
923
d->mixer_class = AZ_CLASS_OUTPUT;
sys/dev/pci/azalia_codec.c
930
d->un.e.member[k].ord = j;
sys/dev/pci/azalia_codec.c
931
strlcpy(d->un.e.member[k].label.name,
sys/dev/pci/azalia_codec.c
936
d->un.e.num_mem = k;
sys/dev/pci/azalia_codec.c
945
snprintf(d->label.name, sizeof(d->label.name),
sys/dev/pci/azalia_codec.c
948
d->mixer_class = w->mixer_class;
sys/dev/pci/azalia_codec.c
953
d->mixer_class = AZ_CLASS_OUTPUT;
sys/dev/pci/azalia_codec.c
955
d->mixer_class = AZ_CLASS_INPUT;
sys/dev/pci/azalia_codec.c
958
azalia_devinfo_offon(d);
sys/dev/pci/azalia_codec.c
967
snprintf(d->label.name, sizeof(d->label.name),
sys/dev/pci/azalia_codec.c
969
d->type = AUDIO_MIXER_VALUE;
sys/dev/pci/azalia_codec.c
971
d->mixer_class = w->mixer_class;
sys/dev/pci/azalia_codec.c
976
d->mixer_class = AZ_CLASS_OUTPUT;
sys/dev/pci/azalia_codec.c
978
d->mixer_class = AZ_CLASS_INPUT;
sys/dev/pci/azalia_codec.c
981
d->un.v.num_channels = WIDGET_CHANNELS(w);
sys/dev/pci/azalia_codec.c
982
d->un.v.units.name[0] = 0;
sys/dev/pci/azalia_codec.c
983
d->un.v.delta =
sys/dev/pci/azalia_codec.c
995
snprintf(d->label.name, sizeof(d->label.name),
sys/dev/pci/azalia_codec.c
998
d->mixer_class = w->mixer_class;
sys/dev/pci/cmpci.c
341
int i, v, d;
sys/dev/pci/cmpci.c
405
d = bus_space_read_4(sc->sc_iot, sc->sc_ioh, CMPCI_REG_INTR_CTRL) &
sys/dev/pci/cmpci.c
407
if (d) {
sys/dev/pci/cmpci.c
408
if (d & CMPCI_REG_CHIP_8768) {
sys/dev/pci/cmpci.c
412
} else if (d & CMPCI_REG_CHIP_055) {
sys/dev/pci/cmpci.c
415
} else if (d & CMPCI_REG_CHIP_039) {
sys/dev/pci/cmpci.c
418
((d & CMPCI_REG_CHIP_039_6CH) ? CMPCI_CAP_6CH : 0);
sys/dev/pci/cmpci.c
424
d = bus_space_read_4(sc->sc_iot, sc->sc_ioh,
sys/dev/pci/cmpci.c
426
if (d)
sys/dev/pci/cs4280.c
1668
cs4280_midi_output(void *addr, int d)
sys/dev/pci/cs4280.c
1677
mem |= d & MIDWP_MASK;
sys/dev/pci/cs4280.c
1678
DPRINTFN(5,("midi_output d=0x%08x",d));
sys/dev/pci/cs4280.c
219
int cs4280_read_codec(void *sc, u_int8_t a, u_int16_t *d);
sys/dev/pci/cs4280.c
220
int cs4280_write_codec(void *sc, u_int8_t a, u_int16_t d);
sys/dev/pci/drm/amd/amdgpu/amdgpu.h
1564
#define amdgpu_asic_set_uvd_clocks(adev, v, d) (adev)->asic_funcs->set_uvd_clocks((adev), (v), (d))
sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c
719
static int amdgpu_irqdomain_map(struct irq_domain *d,
sys/dev/pci/drm/amd/amdgpu/amdgpu_ring.h
438
#define amdgpu_ring_emit_cntxcntl(r, d) (r)->funcs->emit_cntxcntl((r), (d))
sys/dev/pci/drm/amd/amdgpu/amdgpu_ring.h
440
#define amdgpu_ring_emit_rreg(r, d, o) (r)->funcs->emit_rreg((r), (d), (o))
sys/dev/pci/drm/amd/amdgpu/amdgpu_ring.h
441
#define amdgpu_ring_emit_wreg(r, d, v) (r)->funcs->emit_wreg((r), (d), (v))
sys/dev/pci/drm/amd/amdgpu/amdgpu_ring.h
442
#define amdgpu_ring_emit_reg_wait(r, d, v, m) (r)->funcs->emit_reg_wait((r), (d), (v), (m))
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/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/amdkfd/kfd_svm.c
959
uint64_t d;
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
967
d = (new_start - old_start) * size;
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
969
new = svm_range_copy_array(pold, size, new_n, d, new_vram_pages);
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
972
d = (new_start == old_start) ? new_n * size : 0;
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
973
old = svm_range_copy_array(pold, size, old_n, d, NULL);
sys/dev/pci/drm/amd/display/dc/basics/conversion.c
45
uint16_t d = (uint16_t)dc_fixpt_floor(
sys/dev/pci/drm/amd/display/dc/basics/conversion.c
49
if (d <= (uint16_t)(1 << integer_bits) - (1 / (uint16_t)divisor))
sys/dev/pci/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1155
context->bw_ctx.bw.dcn.watermarks.d = context->bw_ctx.bw.dcn.watermarks.a;
sys/dev/pci/drm/amd/display/dc/dml/calcs/dcn_calcs.c
601
context->bw_ctx.bw.dcn.watermarks.d.cstate_pstate.cstate_exit_ns =
sys/dev/pci/drm/amd/display/dc/dml/calcs/dcn_calcs.c
603
context->bw_ctx.bw.dcn.watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns =
sys/dev/pci/drm/amd/display/dc/dml/calcs/dcn_calcs.c
605
context->bw_ctx.bw.dcn.watermarks.d.cstate_pstate.pstate_change_ns =
sys/dev/pci/drm/amd/display/dc/dml/calcs/dcn_calcs.c
607
context->bw_ctx.bw.dcn.watermarks.d.pte_meta_urgent_ns = v->ptemeta_urgent_watermark * 1000;
sys/dev/pci/drm/amd/display/dc/dml/calcs/dcn_calcs.c
608
context->bw_ctx.bw.dcn.watermarks.d.urgent_ns = v->urgent_watermark * 1000;
sys/dev/pci/drm/amd/display/dc/dml/calcs/dcn_calcs.c
634
context->bw_ctx.bw.dcn.watermarks.d = context->bw_ctx.bw.dcn.watermarks.a;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1827
context->bw_ctx.bw.dcn.watermarks.d.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
1828
context->bw_ctx.bw.dcn.watermarks.d.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
1829
context->bw_ctx.bw.dcn.watermarks.d.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
1830
context->bw_ctx.bw.dcn.watermarks.d.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
1831
context->bw_ctx.bw.dcn.watermarks.d.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
1832
context->bw_ctx.bw.dcn.watermarks.d.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
1833
context->bw_ctx.bw.dcn.watermarks.d.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
2299
calculate_wm_set_for_vlevel(vlevel, table_entry, &context->bw_ctx.bw.dcn.watermarks.d,
sys/dev/pci/drm/amd/display/dc/dml/dcn30/dcn30_fpu.c
476
context->bw_ctx.bw.dcn.watermarks.d = context->bw_ctx.bw.dcn.watermarks.a;
sys/dev/pci/drm/amd/display/dc/dml/dcn301/dcn301_fpu.c
448
calculate_wm_set_for_vlevel(vlevel, table_entry, &context->bw_ctx.bw.dcn.watermarks.d,
sys/dev/pci/drm/amd/display/dc/dml/dcn31/dcn31_fpu.c
535
context->bw_ctx.bw.dcn.watermarks.d = context->bw_ctx.bw.dcn.watermarks.a;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
2593
context->bw_ctx.bw.dcn.watermarks.d = context->bw_ctx.bw.dcn.watermarks.a;
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
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/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
840
wm_regs = &watermarks->dcn4x.d;
sys/dev/pci/drm/amd/display/dc/dml2/dml2_wrapper.c
491
dml2_extract_watermark_set(&context->bw_ctx.bw.dcn.watermarks.d, &dml2->v20.dml_core_ctx);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
330
if (safe_to_lower || watermarks->d.urgent_ns > hubbub1->watermarks.d.urgent_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
331
hubbub1->watermarks.d.urgent_ns = watermarks->d.urgent_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
332
prog_wm_value = convert_and_clamp(watermarks->d.urgent_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
339
watermarks->d.urgent_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
340
} else if (watermarks->d.urgent_ns < hubbub1->watermarks.d.urgent_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
343
if (safe_to_lower || watermarks->d.pte_meta_urgent_ns > hubbub1->watermarks.d.pte_meta_urgent_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
344
hubbub1->watermarks.d.pte_meta_urgent_ns = watermarks->d.pte_meta_urgent_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
345
prog_wm_value = convert_and_clamp(watermarks->d.pte_meta_urgent_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
350
watermarks->d.pte_meta_urgent_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
351
} else if (watermarks->d.pte_meta_urgent_ns < hubbub1->watermarks.d.pte_meta_urgent_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
467
if (safe_to_lower || watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
468
> hubbub1->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
469
hubbub1->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
470
watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
472
watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
478
watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
479
} else if (watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
480
< hubbub1->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
483
if (safe_to_lower || watermarks->d.cstate_pstate.cstate_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
484
> hubbub1->watermarks.d.cstate_pstate.cstate_exit_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
485
hubbub1->watermarks.d.cstate_pstate.cstate_exit_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
486
watermarks->d.cstate_pstate.cstate_exit_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
488
watermarks->d.cstate_pstate.cstate_exit_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
494
watermarks->d.cstate_pstate.cstate_exit_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
495
} else if (watermarks->d.cstate_pstate.cstate_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
496
< hubbub1->watermarks.d.cstate_pstate.cstate_exit_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
564
if (safe_to_lower || watermarks->d.cstate_pstate.pstate_change_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
565
> hubbub1->watermarks.d.cstate_pstate.pstate_change_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
566
hubbub1->watermarks.d.cstate_pstate.pstate_change_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
567
watermarks->d.cstate_pstate.pstate_change_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
569
watermarks->d.cstate_pstate.pstate_change_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
575
watermarks->d.cstate_pstate.pstate_change_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
576
} else if (watermarks->d.cstate_pstate.pstate_change_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
577
< hubbub1->watermarks.d.cstate_pstate.pstate_change_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
288
if (safe_to_lower || watermarks->d.urgent_ns > hubbub1->watermarks.d.urgent_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
289
hubbub1->watermarks.d.urgent_ns = watermarks->d.urgent_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
290
prog_wm_value = convert_and_clamp(watermarks->d.urgent_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
298
watermarks->d.urgent_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
299
} else if (watermarks->d.urgent_ns < hubbub1->watermarks.d.urgent_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
323
if (safe_to_lower || watermarks->d.urgent_latency_ns > hubbub1->watermarks.d.urgent_latency_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
324
hubbub1->watermarks.d.urgent_latency_ns = watermarks->d.urgent_latency_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
325
prog_wm_value = convert_and_clamp(watermarks->d.urgent_latency_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
329
} else if (watermarks->d.urgent_latency_ns < hubbub1->watermarks.d.urgent_latency_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
451
if (safe_to_lower || watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
452
> hubbub1->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
453
hubbub1->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
454
watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
456
watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
463
watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
464
} else if (watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
465
< hubbub1->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
468
if (safe_to_lower || watermarks->d.cstate_pstate.cstate_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
469
> hubbub1->watermarks.d.cstate_pstate.cstate_exit_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
470
hubbub1->watermarks.d.cstate_pstate.cstate_exit_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
471
watermarks->d.cstate_pstate.cstate_exit_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
473
watermarks->d.cstate_pstate.cstate_exit_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
480
watermarks->d.cstate_pstate.cstate_exit_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
481
} else if (watermarks->d.cstate_pstate.cstate_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
482
< hubbub1->watermarks.d.cstate_pstate.cstate_exit_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
554
if (safe_to_lower || watermarks->d.cstate_pstate.pstate_change_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
555
> hubbub1->watermarks.d.cstate_pstate.pstate_change_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
556
hubbub1->watermarks.d.cstate_pstate.pstate_change_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
557
watermarks->d.cstate_pstate.pstate_change_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
559
watermarks->d.cstate_pstate.pstate_change_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
566
watermarks->d.cstate_pstate.pstate_change_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
567
} else if (watermarks->d.cstate_pstate.pstate_change_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
568
< hubbub1->watermarks.d.cstate_pstate.pstate_change_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
317
if (safe_to_lower || watermarks->d.urgent_ns > hubbub2->watermarks.d.urgent_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
318
hubbub2->watermarks.d.urgent_ns = watermarks->d.urgent_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
319
prog_wm_value = convert_and_clamp(watermarks->d.urgent_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
326
watermarks->d.urgent_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
327
} else if (watermarks->d.urgent_ns < hubbub2->watermarks.d.urgent_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
331
if (safe_to_lower || watermarks->d.frac_urg_bw_flip
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
332
> hubbub2->watermarks.d.frac_urg_bw_flip) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
333
hubbub2->watermarks.d.frac_urg_bw_flip = watermarks->d.frac_urg_bw_flip;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
336
DCHUBBUB_ARB_FRAC_URG_BW_FLIP_D, watermarks->d.frac_urg_bw_flip);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
337
} else if (watermarks->d.frac_urg_bw_flip
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
338
< hubbub2->watermarks.d.frac_urg_bw_flip)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
341
if (safe_to_lower || watermarks->d.frac_urg_bw_nom
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
342
> hubbub2->watermarks.d.frac_urg_bw_nom) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
343
hubbub2->watermarks.d.frac_urg_bw_nom = watermarks->d.frac_urg_bw_nom;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
346
DCHUBBUB_ARB_FRAC_URG_BW_NOM_D, watermarks->d.frac_urg_bw_nom);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
347
} else if (watermarks->d.frac_urg_bw_nom
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
348
< hubbub2->watermarks.d.frac_urg_bw_nom)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
351
if (safe_to_lower || watermarks->d.urgent_latency_ns > hubbub2->watermarks.d.urgent_latency_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
352
hubbub2->watermarks.d.urgent_latency_ns = watermarks->d.urgent_latency_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
353
prog_wm_value = convert_and_clamp(watermarks->d.urgent_latency_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
357
} else if (watermarks->d.urgent_latency_ns < hubbub2->watermarks.d.urgent_latency_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
569
if (safe_to_lower || watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
570
> hubbub2->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
571
hubbub2->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
572
watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
574
watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
580
watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
581
} else if (watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
582
< hubbub2->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
585
if (safe_to_lower || watermarks->d.cstate_pstate.cstate_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
586
> hubbub2->watermarks.d.cstate_pstate.cstate_exit_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
587
hubbub2->watermarks.d.cstate_pstate.cstate_exit_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
588
watermarks->d.cstate_pstate.cstate_exit_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
590
watermarks->d.cstate_pstate.cstate_exit_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
596
watermarks->d.cstate_pstate.cstate_exit_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
597
} else if (watermarks->d.cstate_pstate.cstate_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
598
< hubbub2->watermarks.d.cstate_pstate.cstate_exit_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
601
if (safe_to_lower || watermarks->d.cstate_pstate.cstate_enter_plus_exit_z8_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
602
> hubbub2->watermarks.d.cstate_pstate.cstate_enter_plus_exit_z8_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
603
hubbub2->watermarks.d.cstate_pstate.cstate_enter_plus_exit_z8_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
604
watermarks->d.cstate_pstate.cstate_enter_plus_exit_z8_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
606
watermarks->d.cstate_pstate.cstate_enter_plus_exit_z8_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
612
watermarks->d.cstate_pstate.cstate_enter_plus_exit_z8_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
613
} else if (watermarks->d.cstate_pstate.cstate_enter_plus_exit_z8_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
614
< hubbub2->watermarks.d.cstate_pstate.cstate_enter_plus_exit_z8_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
617
if (safe_to_lower || watermarks->d.cstate_pstate.cstate_exit_z8_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
618
> hubbub2->watermarks.d.cstate_pstate.cstate_exit_z8_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
619
hubbub2->watermarks.d.cstate_pstate.cstate_exit_z8_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
620
watermarks->d.cstate_pstate.cstate_exit_z8_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
622
watermarks->d.cstate_pstate.cstate_exit_z8_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
628
watermarks->d.cstate_pstate.cstate_exit_z8_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
629
} else if (watermarks->d.cstate_pstate.cstate_exit_z8_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
630
< hubbub2->watermarks.d.cstate_pstate.cstate_exit_z8_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
699
if (safe_to_lower || watermarks->d.cstate_pstate.pstate_change_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
700
> hubbub2->watermarks.d.cstate_pstate.pstate_change_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
701
hubbub2->watermarks.d.cstate_pstate.pstate_change_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
702
watermarks->d.cstate_pstate.pstate_change_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
704
watermarks->d.cstate_pstate.pstate_change_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
710
watermarks->d.cstate_pstate.pstate_change_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
711
} else if (watermarks->d.cstate_pstate.pstate_change_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
712
< hubbub2->watermarks.d.cstate_pstate.pstate_change_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
321
if (safe_to_lower || watermarks->d.urgent_ns > hubbub2->watermarks.d.urgent_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
322
hubbub2->watermarks.d.urgent_ns = watermarks->d.urgent_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
323
prog_wm_value = convert_and_clamp(watermarks->d.urgent_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
330
watermarks->d.urgent_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
331
} else if (watermarks->d.urgent_ns < hubbub2->watermarks.d.urgent_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
335
if (safe_to_lower || watermarks->d.frac_urg_bw_flip
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
336
> hubbub2->watermarks.d.frac_urg_bw_flip) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
337
hubbub2->watermarks.d.frac_urg_bw_flip = watermarks->d.frac_urg_bw_flip;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
340
DCHUBBUB_ARB_FRAC_URG_BW_FLIP_D, watermarks->d.frac_urg_bw_flip);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
341
} else if (watermarks->d.frac_urg_bw_flip
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
342
< hubbub2->watermarks.d.frac_urg_bw_flip)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
345
if (safe_to_lower || watermarks->d.frac_urg_bw_nom
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
346
> hubbub2->watermarks.d.frac_urg_bw_nom) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
347
hubbub2->watermarks.d.frac_urg_bw_nom = watermarks->d.frac_urg_bw_nom;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
350
DCHUBBUB_ARB_FRAC_URG_BW_NOM_D, watermarks->d.frac_urg_bw_nom);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
351
} else if (watermarks->d.frac_urg_bw_nom
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
352
< hubbub2->watermarks.d.frac_urg_bw_nom)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
355
if (safe_to_lower || watermarks->d.urgent_latency_ns > hubbub2->watermarks.d.urgent_latency_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
356
hubbub2->watermarks.d.urgent_latency_ns = watermarks->d.urgent_latency_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
357
prog_wm_value = convert_and_clamp(watermarks->d.urgent_latency_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
361
} else if (watermarks->d.urgent_latency_ns < hubbub2->watermarks.d.urgent_latency_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
477
if (safe_to_lower || watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
478
> hubbub2->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
479
hubbub2->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
480
watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
482
watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
488
watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
489
} else if (watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
490
< hubbub2->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
493
if (safe_to_lower || watermarks->d.cstate_pstate.cstate_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
494
> hubbub2->watermarks.d.cstate_pstate.cstate_exit_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
495
hubbub2->watermarks.d.cstate_pstate.cstate_exit_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
496
watermarks->d.cstate_pstate.cstate_exit_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
498
watermarks->d.cstate_pstate.cstate_exit_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
504
watermarks->d.cstate_pstate.cstate_exit_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
505
} else if (watermarks->d.cstate_pstate.cstate_exit_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
506
< hubbub2->watermarks.d.cstate_pstate.cstate_exit_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
577
if (safe_to_lower || watermarks->d.cstate_pstate.pstate_change_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
578
> hubbub2->watermarks.d.cstate_pstate.pstate_change_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
579
hubbub2->watermarks.d.cstate_pstate.pstate_change_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
580
watermarks->d.cstate_pstate.pstate_change_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
582
watermarks->d.cstate_pstate.pstate_change_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
588
watermarks->d.cstate_pstate.pstate_change_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
589
} else if (watermarks->d.cstate_pstate.pstate_change_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
590
< hubbub2->watermarks.d.cstate_pstate.pstate_change_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
646
if (safe_to_lower || watermarks->d.cstate_pstate.fclk_pstate_change_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
647
> hubbub2->watermarks.d.cstate_pstate.fclk_pstate_change_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
648
hubbub2->watermarks.d.cstate_pstate.fclk_pstate_change_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
649
watermarks->d.cstate_pstate.fclk_pstate_change_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
651
watermarks->d.cstate_pstate.fclk_pstate_change_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
657
watermarks->d.cstate_pstate.fclk_pstate_change_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
658
} else if (watermarks->d.cstate_pstate.fclk_pstate_change_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
659
< hubbub2->watermarks.d.cstate_pstate.fclk_pstate_change_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
727
if (safe_to_lower || watermarks->d.usr_retraining_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
728
> hubbub2->watermarks.d.usr_retraining_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
729
hubbub2->watermarks.d.usr_retraining_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
730
watermarks->d.usr_retraining_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
732
watermarks->d.usr_retraining_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
738
watermarks->d.usr_retraining_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
739
} else if (watermarks->d.usr_retraining_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn32/dcn32_hubbub.c
740
< hubbub2->watermarks.d.usr_retraining_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
223
if (safe_to_lower || watermarks->d.cstate_pstate.cstate_enter_plus_exit_z8_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
224
> hubbub2->watermarks.d.cstate_pstate.cstate_enter_plus_exit_z8_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
225
hubbub2->watermarks.d.cstate_pstate.cstate_enter_plus_exit_z8_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
226
watermarks->d.cstate_pstate.cstate_enter_plus_exit_z8_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
228
watermarks->d.cstate_pstate.cstate_enter_plus_exit_z8_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
234
watermarks->d.cstate_pstate.cstate_enter_plus_exit_z8_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
235
} else if (watermarks->d.cstate_pstate.cstate_enter_plus_exit_z8_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
236
< hubbub2->watermarks.d.cstate_pstate.cstate_enter_plus_exit_z8_ns)
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
239
if (safe_to_lower || watermarks->d.cstate_pstate.cstate_exit_z8_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
240
> hubbub2->watermarks.d.cstate_pstate.cstate_exit_z8_ns) {
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
241
hubbub2->watermarks.d.cstate_pstate.cstate_exit_z8_ns =
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
242
watermarks->d.cstate_pstate.cstate_exit_z8_ns;
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
244
watermarks->d.cstate_pstate.cstate_exit_z8_ns,
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
250
watermarks->d.cstate_pstate.cstate_exit_z8_ns, prog_wm_value);
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
251
} else if (watermarks->d.cstate_pstate.cstate_exit_z8_ns
sys/dev/pci/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
252
< hubbub2->watermarks.d.cstate_pstate.cstate_exit_z8_ns)
sys/dev/pci/drm/amd/display/dc/inc/hw/mem_input.h
59
struct dcn_watermarks d;
sys/dev/pci/drm/amd/display/dc/inc/hw/mem_input.h
65
struct dml2_dchub_watermark_regs d;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
2358
u64 pwr_efficiency_ratio, n, d;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
2364
d = prev_vddc * prev_vddc;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
2365
pwr_efficiency_ratio = div64_u64(n, d);
sys/dev/pci/drm/amd/pm/powerplay/inc/smu72.h
53
int32_t d;
sys/dev/pci/drm/amd/pm/powerplay/inc/smu73.h
44
int32_t d;
sys/dev/pci/drm/amd/pm/powerplay/inc/smu74.h
78
int32_t d;
sys/dev/pci/drm/amd/pm/swsmu/inc/amdgpu_smu.h
245
#define SMU_TABLE_INIT(tables, table_id, s, a, d) \
sys/dev/pci/drm/amd/pm/swsmu/inc/amdgpu_smu.h
249
tables[table_id].domain = d; \
sys/dev/pci/drm/apple/iomfb.c
200
u32 d[3];
sys/dev/pci/drm/apple/iomfb.c
207
d[i] = (u32)(tag[i] - '0');
sys/dev/pci/drm/apple/iomfb.c
209
if (d[i] > 9)
sys/dev/pci/drm/apple/iomfb.c
213
return d[0] + (d[1] * 10) + (d[2] * 100);
sys/dev/pci/drm/display/drm_dp_aux_dev.c
249
#define to_auxdev(d) container_of(d, struct drm_dp_aux_dev, aux)
sys/dev/pci/drm/drm_edid.c
3128
u8 d = ext[0x02];
sys/dev/pci/drm/drm_edid.c
3129
const u8 *det_base = ext + d;
sys/dev/pci/drm/drm_edid.c
3131
if (d < 4 || d > 127)
sys/dev/pci/drm/drm_edid.c
3134
n = (127 - d) / 18;
sys/dev/pci/drm/drm_edid.c
5098
u8 d = cta[2];
sys/dev/pci/drm/drm_edid.c
5100
if (d < 4 || d > 127)
sys/dev/pci/drm/drm_edid.c
5103
return d - 4;
sys/dev/pci/drm/drm_trace.h
5
#define trace_drm_vblank_event(a, b, c, d)
sys/dev/pci/drm/i915/display/dvo_ns2501.c
385
#define NSPTR(d) ((NS2501Ptr)(d->DriverPrivate.ptr))
sys/dev/pci/drm/i915/display/dvo_sil164.c
73
#define SILPTR(d) ((SIL164Ptr)(d->DriverPrivate.ptr))
sys/dev/pci/drm/i915/display/g4x_dp.c
182
#define assert_dp_port_disabled(d) assert_dp_port((d), false)
sys/dev/pci/drm/i915/display/g4x_dp.c
192
#define assert_edp_pll_enabled(d) assert_edp_pll((d), true)
sys/dev/pci/drm/i915/display/g4x_dp.c
193
#define assert_edp_pll_disabled(d) assert_edp_pll((d), false)
sys/dev/pci/drm/i915/display/intel_display.h
540
#define assert_transcoder_enabled(d, t) assert_transcoder(d, t, true)
sys/dev/pci/drm/i915/display/intel_display.h
541
#define assert_transcoder_disabled(d, t) assert_transcoder(d, t, false)
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
31
#define trace_intel_plane_scaler_update_arm(a, b, c, d, e, f)
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_dpll_mgr.c
1690
unsigned int dco, d, i;
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
1694
for (d = 0; d < ARRAY_SIZE(dividers); d++) {
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
1696
for (i = 0; i < dividers[d].n_dividers; i++) {
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
1697
unsigned int p = dividers[d].list[i];
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
1719
if (d == 0 && ctx.p)
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
2810
int d, best_div = 0, pdiv = 0, qdiv = 0, kdiv = 0;
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
2812
for (d = 0; d < ARRAY_SIZE(dividers); d++) {
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
2813
dco = afe_clock * dividers[d];
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
2820
best_div = dividers[d];
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
908
d = 1000000 * diff_best;
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
404
#define assert_dpll_enabled(d, p) assert_dpll(d, p, true)
sys/dev/pci/drm/i915/display/intel_dpll_mgr.h
405
#define assert_dpll_disabled(d, p) assert_dpll(d, p, false)
sys/dev/pci/drm/i915/display/intel_fixed.h
102
tmp = DIV_ROUND_UP_ULL(tmp, d);
sys/dev/pci/drm/i915/display/intel_fixed.h
107
static inline u32 div_round_up_u32_fixed16(u32 val, uint_fixed_16_16_t d)
sys/dev/pci/drm/i915/display/intel_fixed.h
112
tmp = DIV_ROUND_UP_ULL(tmp, d.val);
sys/dev/pci/drm/i915/display/intel_fixed.h
70
uint_fixed_16_16_t d)
sys/dev/pci/drm/i915/display/intel_fixed.h
72
return DIV_ROUND_UP(val.val, d.val);
sys/dev/pci/drm/i915/display/intel_fixed.h
97
static inline uint_fixed_16_16_t div_fixed16(u32 val, u32 d)
sys/dev/pci/drm/i915/display/intel_lpe_audio.c
164
static void lpe_audio_irq_unmask(struct irq_data *d)
sys/dev/pci/drm/i915/display/intel_lpe_audio.c
168
static void lpe_audio_irq_mask(struct irq_data *d)
sys/dev/pci/drm/i915/display/intel_quirks.c
259
struct pci_dev *d = display->drm->pdev;
sys/dev/pci/drm/i915/display/intel_quirks.c
265
if (d->device == q->device &&
sys/dev/pci/drm/i915/display/intel_quirks.c
266
(d->subsystem_vendor == q->subsystem_vendor ||
sys/dev/pci/drm/i915/display/intel_quirks.c
268
(d->subsystem_device == q->subsystem_device ||
sys/dev/pci/drm/i915/display/intel_quirks.c
282
struct pci_dev *d = display->drm->pdev;
sys/dev/pci/drm/i915/display/intel_quirks.c
288
if (d->device == q->device &&
sys/dev/pci/drm/i915/display/intel_quirks.c
289
(d->subsystem_vendor == q->subsystem_vendor ||
sys/dev/pci/drm/i915/display/intel_quirks.c
291
(d->subsystem_device == q->subsystem_device ||
sys/dev/pci/drm/i915/display/vlv_dsi_pll.c
100
int d = abs(target_dsi_clk - calc_dsi_clk);
sys/dev/pci/drm/i915/display/vlv_dsi_pll.c
101
if (d < delta) {
sys/dev/pci/drm/i915/display/vlv_dsi_pll.c
102
delta = d;
sys/dev/pci/drm/i915/gt/gen7_renderclear.c
112
static void batch_add(struct batch_chunk *bc, const u32 d)
sys/dev/pci/drm/i915/gt/gen7_renderclear.c
115
*bc->end++ = d;
sys/dev/pci/drm/i915/gt/intel_gsc.c
19
static void gsc_irq_mask(struct irq_data *d)
sys/dev/pci/drm/i915/gt/intel_gsc.c
24
static void gsc_irq_unmask(struct irq_data *d)
sys/dev/pci/drm/i915/gt/intel_gt_sysfs_pm.c
93
#define sysfs_gt_attribute_r_min_func(d, a, f) \
sys/dev/pci/drm/i915/gt/intel_gt_sysfs_pm.c
94
sysfs_gt_attribute_r_func(d, a, f, INTEL_GT_SYSFS_MIN)
sys/dev/pci/drm/i915/gt/intel_gt_sysfs_pm.c
97
#define sysfs_gt_attribute_r_max_func(d, a, f) \
sys/dev/pci/drm/i915/gt/intel_gt_sysfs_pm.c
98
sysfs_gt_attribute_r_func(d, a, f, INTEL_GT_SYSFS_MAX)
sys/dev/pci/drm/i915/gt/intel_migrate.c
164
struct insert_pte_data d = {};
sys/dev/pci/drm/i915/gt/intel_migrate.c
180
d.offset = base + sz;
sys/dev/pci/drm/i915/gt/intel_migrate.c
211
vm->vm.foreach(&vm->vm, base, d.offset - base,
sys/dev/pci/drm/i915/gt/intel_migrate.c
212
xehp_insert_pte, &d);
sys/dev/pci/drm/i915/gt/intel_migrate.c
213
d.offset = base + CHUNK_SZ;
sys/dev/pci/drm/i915/gt/intel_migrate.c
215
d.offset,
sys/dev/pci/drm/i915/gt/intel_migrate.c
217
xehp_toggle_pdes, &d);
sys/dev/pci/drm/i915/gt/intel_migrate.c
219
vm->vm.foreach(&vm->vm, base, d.offset - base,
sys/dev/pci/drm/i915/gt/intel_migrate.c
220
insert_pte, &d);
sys/dev/pci/drm/i915/gt/intel_migrate.c
42
struct insert_pte_data *d = data;
sys/dev/pci/drm/i915/gt/intel_migrate.c
48
vm->insert_page(vm, 0, d->offset,
sys/dev/pci/drm/i915/gt/intel_migrate.c
52
d->offset += SZ_2M;
sys/dev/pci/drm/i915/gt/intel_migrate.c
59
struct insert_pte_data *d = data;
sys/dev/pci/drm/i915/gt/intel_migrate.c
68
vm->insert_page(vm, px_dma(pt), d->offset,
sys/dev/pci/drm/i915/gt/intel_migrate.c
71
d->offset += SZ_64K;
sys/dev/pci/drm/i915/gt/intel_migrate.c
78
struct insert_pte_data *d = data;
sys/dev/pci/drm/i915/gt/intel_migrate.c
80
vm->insert_page(vm, px_dma(pt), d->offset,
sys/dev/pci/drm/i915/gt/intel_migrate.c
83
d->offset += PAGE_SIZE;
sys/dev/pci/drm/i915/gt/intel_renderstate.c
116
OUT_BATCH(d, i, GEN9_MEDIA_POOL_STATE);
sys/dev/pci/drm/i915/gt/intel_renderstate.c
117
OUT_BATCH(d, i, GEN9_MEDIA_POOL_ENABLE);
sys/dev/pci/drm/i915/gt/intel_renderstate.c
118
OUT_BATCH(d, i, eu_pool_config);
sys/dev/pci/drm/i915/gt/intel_renderstate.c
119
OUT_BATCH(d, i, 0);
sys/dev/pci/drm/i915/gt/intel_renderstate.c
120
OUT_BATCH(d, i, 0);
sys/dev/pci/drm/i915/gt/intel_renderstate.c
121
OUT_BATCH(d, i, 0);
sys/dev/pci/drm/i915/gt/intel_renderstate.c
124
OUT_BATCH(d, i, MI_BATCH_BUFFER_END);
sys/dev/pci/drm/i915/gt/intel_renderstate.c
56
u32 *d;
sys/dev/pci/drm/i915/gt/intel_renderstate.c
58
d = i915_gem_object_pin_map(so->vma->obj, I915_MAP_WB);
sys/dev/pci/drm/i915/gt/intel_renderstate.c
59
if (IS_ERR(d))
sys/dev/pci/drm/i915/gt/intel_renderstate.c
60
return PTR_ERR(d);
sys/dev/pci/drm/i915/gt/intel_renderstate.c
74
d[i++] = s;
sys/dev/pci/drm/i915/gt/intel_renderstate.c
81
d[i++] = s;
sys/dev/pci/drm/i915/gt/intel_renderstate.c
93
OUT_BATCH(d, i, MI_NOOP);
sys/dev/pci/drm/i915/gvt/firmware.c
52
#define dev_to_drm_minor(d) dev_get_drvdata((d))
sys/dev/pci/drm/i915/gvt/handlers.c
2159
#define MMIO_F(reg, s, f, am, rm, d, r, w) do { \
sys/dev/pci/drm/i915/gvt/handlers.c
2161
s, f, am, rm, d, r, w); \
sys/dev/pci/drm/i915/gvt/handlers.c
2166
#define MMIO_DH(reg, d, r, w) \
sys/dev/pci/drm/i915/gvt/handlers.c
2167
MMIO_F(reg, 4, 0, 0, 0, d, r, w)
sys/dev/pci/drm/i915/gvt/handlers.c
2169
#define MMIO_DFH(reg, d, f, r, w) \
sys/dev/pci/drm/i915/gvt/handlers.c
2170
MMIO_F(reg, 4, f, 0, 0, d, r, w)
sys/dev/pci/drm/i915/gvt/handlers.c
2172
#define MMIO_GM(reg, d, r, w) \
sys/dev/pci/drm/i915/gvt/handlers.c
2173
MMIO_F(reg, 4, F_GMADR, 0xFFFFF000, 0, d, r, w)
sys/dev/pci/drm/i915/gvt/handlers.c
2175
#define MMIO_GM_RDR(reg, d, r, w) \
sys/dev/pci/drm/i915/gvt/handlers.c
2176
MMIO_F(reg, 4, F_GMADR | F_CMD_ACCESS, 0xFFFFF000, 0, d, r, w)
sys/dev/pci/drm/i915/gvt/handlers.c
2178
#define MMIO_RO(reg, d, f, rm, r, w) \
sys/dev/pci/drm/i915/gvt/handlers.c
2179
MMIO_F(reg, 4, F_RO | f, 0, rm, d, r, w)
sys/dev/pci/drm/i915/gvt/handlers.c
2181
#define MMIO_RING_F(prefix, s, f, am, rm, d, r, w) do { \
sys/dev/pci/drm/i915/gvt/handlers.c
2182
MMIO_F(prefix(RENDER_RING_BASE), s, f, am, rm, d, r, w); \
sys/dev/pci/drm/i915/gvt/handlers.c
2183
MMIO_F(prefix(BLT_RING_BASE), s, f, am, rm, d, r, w); \
sys/dev/pci/drm/i915/gvt/handlers.c
2184
MMIO_F(prefix(GEN6_BSD_RING_BASE), s, f, am, rm, d, r, w); \
sys/dev/pci/drm/i915/gvt/handlers.c
2185
MMIO_F(prefix(VEBOX_RING_BASE), s, f, am, rm, d, r, w); \
sys/dev/pci/drm/i915/gvt/handlers.c
2187
MMIO_F(prefix(GEN8_BSD2_RING_BASE), s, f, am, rm, d, r, w); \
sys/dev/pci/drm/i915/gvt/handlers.c
2190
#define MMIO_RING_DFH(prefix, d, f, r, w) \
sys/dev/pci/drm/i915/gvt/handlers.c
2191
MMIO_RING_F(prefix, 4, f, 0, 0, d, r, w)
sys/dev/pci/drm/i915/gvt/handlers.c
2193
#define MMIO_RING_GM(prefix, d, r, w) \
sys/dev/pci/drm/i915/gvt/handlers.c
2194
MMIO_RING_F(prefix, 4, F_GMADR, 0xFFFF0000, 0, d, r, w)
sys/dev/pci/drm/i915/gvt/handlers.c
2196
#define MMIO_RING_GM_RDR(prefix, d, r, w) \
sys/dev/pci/drm/i915/gvt/handlers.c
2197
MMIO_RING_F(prefix, 4, F_GMADR | F_CMD_ACCESS, 0xFFFF0000, 0, d, r, w)
sys/dev/pci/drm/i915/gvt/handlers.c
2199
#define MMIO_RING_RO(prefix, d, f, rm, r, w) \
sys/dev/pci/drm/i915/gvt/handlers.c
2200
MMIO_RING_F(prefix, 4, F_RO | f, 0, rm, d, r, w)
sys/dev/pci/drm/i915/i915_perf.c
1938
u32 d;
sys/dev/pci/drm/i915/i915_perf.c
1945
for (d = 0; d < dword_count; d++) {
sys/dev/pci/drm/i915/i915_perf.c
1947
*cs++ = i915_mmio_reg_offset(reg) + 4 * d;
sys/dev/pci/drm/i915/i915_perf.c
1948
*cs++ = i915_ggtt_offset(stream->noa_wait) + offset + 4 * d;
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
16
#define trace_i915_gem_object_fault(a, b, c, d)
sys/dev/pci/drm/i915/i915_trace.h
22
#define trace_i915_reg_rw(a, b, c, d, e)
sys/dev/pci/drm/i915/intel_uncore.c
1239
#define GEN_FW_RANGE(s, e, d) \
sys/dev/pci/drm/i915/intel_uncore.c
1240
{ .start = (s), .end = (e), .domains = (d) }
sys/dev/pci/drm/i915/intel_uncore.c
132
#define fw_ack(d) readl((d)->reg_ack)
sys/dev/pci/drm/i915/intel_uncore.c
133
#define fw_set(d, val) writel(_MASKED_BIT_ENABLE((val)), (d)->reg_set)
sys/dev/pci/drm/i915/intel_uncore.c
134
#define fw_clear(d, val) writel(_MASKED_BIT_DISABLE((val)), (d)->reg_set)
sys/dev/pci/drm/i915/intel_uncore.c
137
fw_domain_reset(const struct intel_uncore_forcewake_domain *d)
sys/dev/pci/drm/i915/intel_uncore.c
145
if (GRAPHICS_VER(d->uncore->i915) >= 12)
sys/dev/pci/drm/i915/intel_uncore.c
146
fw_clear(d, 0xefff);
sys/dev/pci/drm/i915/intel_uncore.c
148
fw_clear(d, 0xffff);
sys/dev/pci/drm/i915/intel_uncore.c
152
fw_domain_arm_timer(struct intel_uncore_forcewake_domain *d)
sys/dev/pci/drm/i915/intel_uncore.c
154
GEM_BUG_ON(d->uncore->fw_domains_timer & d->mask);
sys/dev/pci/drm/i915/intel_uncore.c
155
d->uncore->fw_domains_timer |= d->mask;
sys/dev/pci/drm/i915/intel_uncore.c
156
d->wake_count++;
sys/dev/pci/drm/i915/intel_uncore.c
158
hrtimer_start_range_ns(&d->timer,
sys/dev/pci/drm/i915/intel_uncore.c
163
timeout_add_msec(&d->timer, 1);
sys/dev/pci/drm/i915/intel_uncore.c
168
__wait_for_ack(const struct intel_uncore_forcewake_domain *d,
sys/dev/pci/drm/i915/intel_uncore.c
172
return wait_for_atomic((fw_ack(d) & ack) == value,
sys/dev/pci/drm/i915/intel_uncore.c
177
wait_ack_clear(const struct intel_uncore_forcewake_domain *d,
sys/dev/pci/drm/i915/intel_uncore.c
180
return __wait_for_ack(d, ack, 0);
sys/dev/pci/drm/i915/intel_uncore.c
184
wait_ack_set(const struct intel_uncore_forcewake_domain *d,
sys/dev/pci/drm/i915/intel_uncore.c
187
return __wait_for_ack(d, ack, ack);
sys/dev/pci/drm/i915/intel_uncore.c
191
fw_domain_wait_ack_clear(const struct intel_uncore_forcewake_domain *d)
sys/dev/pci/drm/i915/intel_uncore.c
193
if (!wait_ack_clear(d, FORCEWAKE_KERNEL))
sys/dev/pci/drm/i915/intel_uncore.c
196
if (fw_ack(d) == ~0) {
sys/dev/pci/drm/i915/intel_uncore.c
197
drm_err(&d->uncore->i915->drm,
sys/dev/pci/drm/i915/intel_uncore.c
199
intel_uncore_forcewake_domain_to_str(d->id));
sys/dev/pci/drm/i915/intel_uncore.c
200
intel_gt_set_wedged_async(d->uncore->gt);
sys/dev/pci/drm/i915/intel_uncore.c
202
drm_err(&d->uncore->i915->drm,
sys/dev/pci/drm/i915/intel_uncore.c
204
intel_uncore_forcewake_domain_to_str(d->id));
sys/dev/pci/drm/i915/intel_uncore.c
207
add_taint_for_CI(d->uncore->i915, TAINT_WARN); /* CI now unreliable */
sys/dev/pci/drm/i915/intel_uncore.c
2101
struct intel_uncore_forcewake_domain *d;
sys/dev/pci/drm/i915/intel_uncore.c
2109
d = kzalloc(sizeof(*d), GFP_KERNEL);
sys/dev/pci/drm/i915/intel_uncore.c
2110
if (!d)
sys/dev/pci/drm/i915/intel_uncore.c
2116
d->uncore = uncore;
sys/dev/pci/drm/i915/intel_uncore.c
2117
d->wake_count = 0;
sys/dev/pci/drm/i915/intel_uncore.c
2118
d->reg_set = uncore->regs + i915_mmio_reg_offset(reg_set) + uncore->gsi_offset;
sys/dev/pci/drm/i915/intel_uncore.c
2119
d->reg_ack = uncore->regs + i915_mmio_reg_offset(reg_ack) + uncore->gsi_offset;
sys/dev/pci/drm/i915/intel_uncore.c
2121
d->id = domain_id;
sys/dev/pci/drm/i915/intel_uncore.c
2140
d->mask = BIT(domain_id);
sys/dev/pci/drm/i915/intel_uncore.c
2143
hrtimer_setup(&d->timer, intel_uncore_fw_release_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
sys/dev/pci/drm/i915/intel_uncore.c
2145
timeout_set(&d->timer, intel_uncore_fw_release_timer, d);
sys/dev/pci/drm/i915/intel_uncore.c
2150
fw_domain_reset(d);
sys/dev/pci/drm/i915/intel_uncore.c
2152
uncore->fw_domain[domain_id] = d;
sys/dev/pci/drm/i915/intel_uncore.c
216
fw_domain_wait_ack_with_fallback(const struct intel_uncore_forcewake_domain *d,
sys/dev/pci/drm/i915/intel_uncore.c
2160
struct intel_uncore_forcewake_domain *d;
sys/dev/pci/drm/i915/intel_uncore.c
2164
d = fetch_and_zero(&uncore->fw_domain[domain_id]);
sys/dev/pci/drm/i915/intel_uncore.c
2165
if (!d)
sys/dev/pci/drm/i915/intel_uncore.c
2169
drm_WARN_ON(&uncore->i915->drm, d->wake_count);
sys/dev/pci/drm/i915/intel_uncore.c
2170
drm_WARN_ON(&uncore->i915->drm, hrtimer_cancel(&d->timer));
sys/dev/pci/drm/i915/intel_uncore.c
2171
kfree(d);
sys/dev/pci/drm/i915/intel_uncore.c
2176
struct intel_uncore_forcewake_domain *d;
sys/dev/pci/drm/i915/intel_uncore.c
2179
for_each_fw_domain(d, uncore, tmp)
sys/dev/pci/drm/i915/intel_uncore.c
2180
fw_domain_fini(uncore, d->id);
sys/dev/pci/drm/i915/intel_uncore.c
2327
#define ASSIGN_FW_DOMAINS_TABLE(uncore, d) \
sys/dev/pci/drm/i915/intel_uncore.c
2330
(struct intel_forcewake_range *)(d); \
sys/dev/pci/drm/i915/intel_uncore.c
2331
(uncore)->fw_domains_table_entries = ARRAY_SIZE((d)); \
sys/dev/pci/drm/i915/intel_uncore.c
2334
#define ASSIGN_SHADOW_TABLE(uncore, d) \
sys/dev/pci/drm/i915/intel_uncore.c
2336
(uncore)->shadowed_reg_table = d; \
sys/dev/pci/drm/i915/intel_uncore.c
2337
(uncore)->shadowed_reg_table_entries = ARRAY_SIZE((d)); \
sys/dev/pci/drm/i915/intel_uncore.c
240
wait_ack_clear(d, FORCEWAKE_KERNEL_FALLBACK);
sys/dev/pci/drm/i915/intel_uncore.c
242
fw_set(d, FORCEWAKE_KERNEL_FALLBACK);
sys/dev/pci/drm/i915/intel_uncore.c
245
wait_ack_set(d, FORCEWAKE_KERNEL_FALLBACK);
sys/dev/pci/drm/i915/intel_uncore.c
247
ack_detected = (fw_ack(d) & ack_bit) == value;
sys/dev/pci/drm/i915/intel_uncore.c
249
fw_clear(d, FORCEWAKE_KERNEL_FALLBACK);
sys/dev/pci/drm/i915/intel_uncore.c
252
drm_dbg(&d->uncore->i915->drm,
sys/dev/pci/drm/i915/intel_uncore.c
254
intel_uncore_forcewake_domain_to_str(d->id),
sys/dev/pci/drm/i915/intel_uncore.c
256
fw_ack(d),
sys/dev/pci/drm/i915/intel_uncore.c
263
fw_domain_wait_ack_clear_fallback(const struct intel_uncore_forcewake_domain *d)
sys/dev/pci/drm/i915/intel_uncore.c
265
if (likely(!wait_ack_clear(d, FORCEWAKE_KERNEL)))
sys/dev/pci/drm/i915/intel_uncore.c
268
if (fw_domain_wait_ack_with_fallback(d, ACK_CLEAR))
sys/dev/pci/drm/i915/intel_uncore.c
269
fw_domain_wait_ack_clear(d);
sys/dev/pci/drm/i915/intel_uncore.c
273
fw_domain_get(const struct intel_uncore_forcewake_domain *d)
sys/dev/pci/drm/i915/intel_uncore.c
275
fw_set(d, FORCEWAKE_KERNEL);
sys/dev/pci/drm/i915/intel_uncore.c
279
fw_domain_wait_ack_set(const struct intel_uncore_forcewake_domain *d)
sys/dev/pci/drm/i915/intel_uncore.c
281
if (wait_ack_set(d, FORCEWAKE_KERNEL)) {
sys/dev/pci/drm/i915/intel_uncore.c
282
drm_err(&d->uncore->i915->drm,
sys/dev/pci/drm/i915/intel_uncore.c
284
intel_uncore_forcewake_domain_to_str(d->id));
sys/dev/pci/drm/i915/intel_uncore.c
285
add_taint_for_CI(d->uncore->i915, TAINT_WARN); /* CI now unreliable */
sys/dev/pci/drm/i915/intel_uncore.c
290
fw_domain_wait_ack_set_fallback(const struct intel_uncore_forcewake_domain *d)
sys/dev/pci/drm/i915/intel_uncore.c
292
if (likely(!wait_ack_set(d, FORCEWAKE_KERNEL)))
sys/dev/pci/drm/i915/intel_uncore.c
295
if (fw_domain_wait_ack_with_fallback(d, ACK_SET))
sys/dev/pci/drm/i915/intel_uncore.c
296
fw_domain_wait_ack_set(d);
sys/dev/pci/drm/i915/intel_uncore.c
300
fw_domain_put(const struct intel_uncore_forcewake_domain *d)
sys/dev/pci/drm/i915/intel_uncore.c
302
fw_clear(d, FORCEWAKE_KERNEL);
sys/dev/pci/drm/i915/intel_uncore.c
308
struct intel_uncore_forcewake_domain *d;
sys/dev/pci/drm/i915/intel_uncore.c
313
for_each_fw_domain_masked(d, fw_domains, uncore, tmp) {
sys/dev/pci/drm/i915/intel_uncore.c
314
fw_domain_wait_ack_clear(d);
sys/dev/pci/drm/i915/intel_uncore.c
315
fw_domain_get(d);
sys/dev/pci/drm/i915/intel_uncore.c
318
for_each_fw_domain_masked(d, fw_domains, uncore, tmp)
sys/dev/pci/drm/i915/intel_uncore.c
319
fw_domain_wait_ack_set(d);
sys/dev/pci/drm/i915/intel_uncore.c
328
struct intel_uncore_forcewake_domain *d;
sys/dev/pci/drm/i915/intel_uncore.c
333
for_each_fw_domain_masked(d, fw_domains, uncore, tmp) {
sys/dev/pci/drm/i915/intel_uncore.c
334
fw_domain_wait_ack_clear_fallback(d);
sys/dev/pci/drm/i915/intel_uncore.c
335
fw_domain_get(d);
sys/dev/pci/drm/i915/intel_uncore.c
338
for_each_fw_domain_masked(d, fw_domains, uncore, tmp)
sys/dev/pci/drm/i915/intel_uncore.c
339
fw_domain_wait_ack_set_fallback(d);
sys/dev/pci/drm/i915/intel_uncore.c
347
struct intel_uncore_forcewake_domain *d;
sys/dev/pci/drm/i915/intel_uncore.c
352
for_each_fw_domain_masked(d, fw_domains, uncore, tmp)
sys/dev/pci/drm/i915/intel_uncore.c
353
fw_domain_put(d);
sys/dev/pci/drm/i915/intel_uncore.c
362
struct intel_uncore_forcewake_domain *d;
sys/dev/pci/drm/i915/intel_uncore.c
370
for_each_fw_domain_masked(d, fw_domains, uncore, tmp)
sys/dev/pci/drm/i915/intel_uncore.c
371
fw_domain_reset(d);
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_syncmap.c
39
unsigned int d;
sys/dev/pci/drm/i915/selftests/i915_syncmap.c
41
for (d = 0; d < depth - 1; d++) {
sys/dev/pci/drm/i915/selftests/i915_syncmap.c
42
if (last & BIT(depth - d - 1))
sys/dev/pci/drm/include/linux/bitmap.h
118
bitmap_copy(void *d, const void *s, u_int n)
sys/dev/pci/drm/include/linux/bitmap.h
120
u_int *dst = d;
sys/dev/pci/drm/include/linux/bitmap.h
129
bitmap_to_arr32(void *d, const unsigned long *src, u_int n)
sys/dev/pci/drm/include/linux/bitmap.h
131
u_int *dst = d;
sys/dev/pci/drm/include/linux/bitmap.h
142
bitmap_copy(d, src, n);
sys/dev/pci/drm/include/linux/bitmap.h
66
bitmap_or(void *d, const void *s1, const void *s2, u_int n)
sys/dev/pci/drm/include/linux/bitmap.h
68
u_int *dst = d;
sys/dev/pci/drm/include/linux/bitmap.h
78
bitmap_andnot(void *d, void *s1, void *s2, u_int n)
sys/dev/pci/drm/include/linux/bitmap.h
80
u_int *dst = d;
sys/dev/pci/drm/include/linux/bitmap.h
90
bitmap_complement(void *d, void *s, u_int n)
sys/dev/pci/drm/include/linux/bitmap.h
92
u_int *dst = d;
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
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/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/io.h
15
#define memcpy_toio(d, s, n) memcpy(d, s, n)
sys/dev/pci/drm/include/linux/io.h
16
#define memcpy_fromio(d, s, n) memcpy(d, s, n)
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/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
28
#define lockdep_init_map(a, b, c, d)
sys/dev/pci/drm/include/linux/lockdep.h
32
#define mutex_acquire(a, b, c, d)
sys/dev/pci/drm/include/linux/math.h
6
#define mult_frac(x, n, d) (((x) * (n)) / (d))
sys/dev/pci/drm/include/linux/of.h
22
#define of_get_compatible_child(d, n) \
sys/dev/pci/drm/include/linux/of.h
23
__of_get_compatible_child(&(d), (n))
sys/dev/pci/drm/include/linux/of.h
26
#define of_get_child_by_name(d, n) \
sys/dev/pci/drm/include/linux/of.h
27
__of_get_child_by_name(&(d), (n))
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/pci.h
520
pci_unregister_driver(void *d)
sys/dev/pci/drm/include/linux/property.h
14
dev_fwnode(struct device *d)
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/include/uapi/drm/drm_fourcc.h
106
((__u32)(c) << 16) | ((__u32)(d) << 24))
sys/dev/pci/drm/linux_sort.c
104
d = (n / 8) * es;
sys/dev/pci/drm/linux_sort.c
105
pl = med3(pl, pl + d, pl + 2 * d, cmp);
sys/dev/pci/drm/linux_sort.c
106
pm = med3(pm - d, pm, pm + d, cmp);
sys/dev/pci/drm/linux_sort.c
107
pn = med3(pn - 2 * d, pn - d, pn, cmp);
sys/dev/pci/drm/linux_sort.c
88
size_t d, r, s;
sys/dev/pci/drm/linux_sort_r.c
108
d = (n / 8) * es;
sys/dev/pci/drm/linux_sort_r.c
109
pl = med3(pl, pl + d, pl + 2 * d, cmp, p);
sys/dev/pci/drm/linux_sort_r.c
110
pm = med3(pm - d, pm, pm + d, cmp, p);
sys/dev/pci/drm/linux_sort_r.c
111
pn = med3(pn - 2 * d, pn - d, pn, cmp, p);
sys/dev/pci/drm/linux_sort_r.c
92
size_t d, r, s;
sys/dev/pci/drm/radeon/evergreen_cs.c
875
unsigned w, h, d;
sys/dev/pci/drm/radeon/evergreen_cs.c
879
d = r600_mip_minify(depth, i);
sys/dev/pci/drm/radeon/evergreen_cs.c
909
moffset += surf.layer_size * d;
sys/dev/pci/drm/radeon/evergreen_cs.c
919
d, radeon_bo_size(mipmap),
sys/dev/pci/drm/radeon/ni_dpm.c
1395
u64 tmp, n, d;
sys/dev/pci/drm/radeon/ni_dpm.c
1421
d = ((u64)std_vddc_high * (u64)std_vddc_high * 100);
sys/dev/pci/drm/radeon/ni_dpm.c
1422
tmp = div64_u64(n, d);
sys/dev/pci/drm/radeon/r100.c
2190
unsigned u, i, w, h, d;
sys/dev/pci/drm/radeon/r100.c
2225
d = (1 << track->textures[u].txdepth) / (1 << i);
sys/dev/pci/drm/radeon/r100.c
2226
if (!d)
sys/dev/pci/drm/radeon/r100.c
2227
d = 1;
sys/dev/pci/drm/radeon/r100.c
2229
d = 1;
sys/dev/pci/drm/radeon/r100.c
2233
size += r100_track_compress_size(track->textures[u].compress_format, w, h) * d;
sys/dev/pci/drm/radeon/r100.c
2236
size += w * h * d;
sys/dev/pci/drm/radeon/radeon.h
2772
#define radeon_copy_blit(rdev, s, d, np, resv) (rdev)->asic->copy.blit((rdev), (s), (d), (np), (resv))
sys/dev/pci/drm/radeon/radeon.h
2773
#define radeon_copy_dma(rdev, s, d, np, resv) (rdev)->asic->copy.dma((rdev), (s), (d), (np), (resv))
sys/dev/pci/drm/radeon/radeon.h
2774
#define radeon_copy(rdev, s, d, np, resv) (rdev)->asic->copy.copy((rdev), (s), (d), (np), (resv))
sys/dev/pci/drm/radeon/radeon.h
2785
#define radeon_set_uvd_clocks(rdev, v, d) (rdev)->asic->pm.set_uvd_clocks((rdev), (v), (d))
sys/dev/pci/drm/radeon/radeon_display.c
1099
static inline uint32_t radeon_div(uint64_t n, uint32_t d)
sys/dev/pci/drm/radeon/radeon_display.c
1101
n += d / 2;
sys/dev/pci/drm/radeon/radeon_display.c
1103
do_div(n, d);
sys/dev/pci/drm/radeon/si_dpm.c
2195
u64 pwr_efficiency_ratio, n, d;
sys/dev/pci/drm/radeon/si_dpm.c
2201
d = prev_vddc * prev_vddc;
sys/dev/pci/drm/radeon/si_dpm.c
2202
pwr_efficiency_ratio = div64_u64(n, d);
sys/dev/pci/eap.c
1090
eap1370_set_mixer(struct eap_softc *sc, int a, int d)
sys/dev/pci/eap.c
1092
eap1370_write_codec(sc, a, d);
sys/dev/pci/eap.c
1094
sc->sc_port[a] = d;
sys/dev/pci/eap.c
1095
DPRINTFN(1, ("eap1370_mixer_set_port port 0x%02x = 0x%02x\n", a, d));
sys/dev/pci/eap.c
1523
eap_midi_output(void *addr, int d)
sys/dev/pci/eap.c
1529
EWRITE1(sc, EAP_UART_DATA, d);
sys/dev/pci/eap.c
178
void eap1370_set_mixer(struct eap_softc *sc, int a, int d);
sys/dev/pci/eap.c
180
void eap1371_src_write(struct eap_softc *sc, int a, int d);
sys/dev/pci/eap.c
184
int eap1371_read_codec(void *sc, u_int8_t a, u_int16_t *d);
sys/dev/pci/eap.c
185
int eap1371_write_codec(void *sc, u_int8_t a, u_int16_t d);
sys/dev/pci/eap.c
268
eap1370_write_codec(struct eap_softc *sc, int a, int d)
sys/dev/pci/eap.c
282
EWRITE4(sc, EAP_CODEC, EAP_SET_CODEC(a, d));
sys/dev/pci/eap.c
338
eap1371_read_codec(void *sc_, u_int8_t a, u_int16_t *d)
sys/dev/pci/eap.c
365
*d = (u_int16_t)t;
sys/dev/pci/eap.c
367
DPRINTFN(10, ("eap1371: reading codec (%x) = %x\n", a, *d));
sys/dev/pci/eap.c
373
eap1371_write_codec(void *sc_, u_int8_t a, u_int16_t d)
sys/dev/pci/eap.c
377
eap1371_ready_codec(sc, a, E1371_SET_CODEC(a, d));
sys/dev/pci/eap.c
379
DPRINTFN(10, ("eap1371: writing codec %x --> %x\n", d, a));
sys/dev/pci/eap.c
401
eap1371_src_write(struct eap_softc *sc, int a, int d)
sys/dev/pci/eap.c
406
r |= E1371_SRC_RAMWE | E1371_SRC_ADDR(a) | E1371_SRC_DATA(d);
sys/dev/pci/eapreg.h
100
#define E1371_SET_CODEC(a,d) (((a)<<16) | (d))
sys/dev/pci/eapreg.h
110
#define E1371_SRC_DATA(d) (d)
sys/dev/pci/eapreg.h
90
#define EAP_SET_CODEC(a,d) (((a)<<8) | (d))
sys/dev/pci/emuxki.c
1072
chan->fxsend.c.level = chan->fxsend.d.level =
sys/dev/pci/emuxki.c
1082
chan->fxsend.d.dest = 0x3;
sys/dev/pci/emuxki.c
1164
chan->fxsend.d.level = fxsend->d.level;
sys/dev/pci/emuxki.c
1168
chan->fxsend.d.dest = fxsend->d.dest;
sys/dev/pci/emuxki.c
1210
(chan->fxsend.d.dest << 24) |
sys/dev/pci/emuxki.c
1226
(chan->fxsend.d.dest << 28) |
sys/dev/pci/emuxki.c
1235
(chan->fxsend.d.level << 24) | chan->loop.end);
sys/dev/pci/emuxki.c
1547
fxsend.d.dest = 0x3;
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/fms.c
230
} d[] = {
sys/dev/pci/fms.c
240
d[i].class, d[i].device, AudioNmute);
sys/dev/pci/fmsradio.c
218
u_int16_t i, d;
sys/dev/pci/fmsradio.c
220
d = FM_IO_GPIO(FM_IO_PIN1 | FM_IO_PIN2 | FM_IO_PIN3) | PCS_WREN_OFF;
sys/dev/pci/fmsradio.c
223
d |= FM_IO_GPIO_IN(PCS_DATA_ON) | PCS_DATA_ON;
sys/dev/pci/fmsradio.c
225
bus_space_write_2(iot, ioh, offset, d | PCS_CLOCK_OFF);
sys/dev/pci/fmsradio.c
231
bus_space_write_2(iot, ioh, offset, d | PCS_CLOCK_ON);
sys/dev/pci/fmsradio.c
232
bus_space_write_2(iot, ioh, offset, d | PCS_CLOCK_OFF);
sys/dev/pci/fmsradio.c
257
bus_size_t offset, u_int32_t d)
sys/dev/pci/fmsradio.c
259
d = FM_IO_GPIO(FM_IO_PIN1 | FM_IO_PIN2 | FM_IO_PIN3);
sys/dev/pci/fmsradio.c
260
d |= PCS_WREN_ON | PCS_DATA_OFF | PCS_CLOCK_OFF;
sys/dev/pci/fmsradio.c
262
bus_space_write_2(iot, ioh, offset, d);
sys/dev/pci/fmsradio.c
263
bus_space_write_2(iot, ioh, offset, d);
sys/dev/pci/fmsradio.c
268
bus_size_t offset, u_int32_t d)
sys/dev/pci/fmsradio.c
270
d = FM_IO_GPIO(FM_IO_PIN1 | FM_IO_PIN2 | FM_IO_PIN3);
sys/dev/pci/fmsradio.c
271
d |= PCS_WREN_OFF | PCS_DATA_OFF | PCS_CLOCK_OFF;
sys/dev/pci/fmsradio.c
273
bus_space_write_2(iot, ioh, offset, d);
sys/dev/pci/fmsradio.c
274
bus_space_write_2(iot, ioh, offset, d);
sys/dev/pci/fmsradio.c
305
u_int16_t i, d;
sys/dev/pci/fmsradio.c
307
d = FM_IO_GPIO_ALL | FM_IO_GPIO_IN(PCPR_DATA_ON | FM_IO_PIN3);
sys/dev/pci/fmsradio.c
310
d |= PCPR_WREN_OFF | PCPR_DATA_ON;
sys/dev/pci/fmsradio.c
312
bus_space_write_2(iot, ioh, offset, d | PCPR_CLOCK_OFF);
sys/dev/pci/fmsradio.c
318
bus_space_write_2(iot, ioh, offset, d | PCPR_CLOCK_ON);
sys/dev/pci/fmsradio.c
319
bus_space_write_2(iot, ioh, offset, d | PCPR_CLOCK_OFF);
sys/dev/pci/fmsradio.c
343
bus_size_t offset, u_int32_t d)
sys/dev/pci/fmsradio.c
345
d = FM_IO_GPIO_ALL | FM_IO_GPIO_IN(FM_IO_PIN3);
sys/dev/pci/fmsradio.c
346
d |= PCPR_WREN_ON | PCPR_DATA_OFF | PCPR_CLOCK_OFF;
sys/dev/pci/fmsradio.c
348
bus_space_write_2(iot, ioh, offset, d);
sys/dev/pci/fmsradio.c
349
bus_space_write_2(iot, ioh, offset, d);
sys/dev/pci/fmsradio.c
354
bus_size_t offset, u_int32_t d)
sys/dev/pci/fmsradio.c
356
d = FM_IO_GPIO_ALL | FM_IO_GPIO_IN(FM_IO_PIN3);
sys/dev/pci/fmsradio.c
357
d |= PCPR_WREN_OFF | PCPR_DATA_OFF | PCPR_CLOCK_OFF;
sys/dev/pci/fmsradio.c
359
bus_space_write_2(iot, ioh, offset, d);
sys/dev/pci/fmsradio.c
360
bus_space_write_2(iot, ioh, offset, d);
sys/dev/pci/fmsradio.c
390
u_int16_t d, i, ind = 0;
sys/dev/pci/fmsradio.c
392
d = FM_IO_GPIO_ALL | FM_IO_GPIO_IN(PCR_DATA_ON | FM_IO_PIN3);
sys/dev/pci/fmsradio.c
395
d |= PCR_WREN_OFF | PCR_DATA_ON;
sys/dev/pci/fmsradio.c
397
bus_space_write_2(iot, ioh, offset, d | PCR_CLOCK_OFF);
sys/dev/pci/fmsradio.c
403
bus_space_write_2(iot, ioh, offset, d | PCR_CLOCK_ON);
sys/dev/pci/fmsradio.c
406
bus_space_write_2(iot, ioh, offset, d | PCR_CLOCK_OFF);
sys/dev/pci/fmsradio.c
413
bus_space_write_2(iot, ioh, offset, d | PCR_CLOCK_ON);
sys/dev/pci/fmsradio.c
419
bus_space_write_2(iot, ioh, offset, d | PCR_CLOCK_OFF);
sys/dev/pci/fmsradio.c
447
bus_size_t offset, u_int32_t d)
sys/dev/pci/fmsradio.c
449
d = FM_IO_GPIO_ALL | FM_IO_GPIO_IN(FM_IO_PIN3);
sys/dev/pci/fmsradio.c
450
d |= PCR_WREN_ON | PCR_DATA_ON | PCR_CLOCK_OFF;
sys/dev/pci/fmsradio.c
452
bus_space_write_2(iot, ioh, offset, d);
sys/dev/pci/fmsradio.c
458
bus_size_t offset, u_int32_t d)
sys/dev/pci/if_bnxt.c
3796
unsigned char *d;
sys/dev/pci/if_bnxt.c
3799
d = BNXT_DMA_KVA(mem);
sys/dev/pci/if_bnxt.c
3801
memset(d, init_val, len);
sys/dev/pci/if_bnxt.c
3804
d[i + (init_offset*4)] = init_val;
sys/dev/pci/if_casvar.h
218
#define CAS_INIT_RXDESC(sc, d, s) \
sys/dev/pci/if_casvar.h
221
struct cas_desc *__rxd = &sc->sc_rxdescs[(d)]; \
sys/dev/pci/if_casvar.h
227
CAS_CDRXSYNC((sc), (d), BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREWRITE); \
sys/dev/pci/if_ice.c
18821
struct ice_vsig_prof *d, *t;
sys/dev/pci/if_ice.c
18824
TAILQ_FOREACH_SAFE(d, &hw->blk[blk].xlt2.vsig_tbl[idx].prop_lst,
sys/dev/pci/if_ice.c
18828
status = ice_rem_prof_id(hw, blk, d);
sys/dev/pci/if_ice.c
18833
d, list);
sys/dev/pci/if_ice.c
18834
ice_free(hw, d);
sys/dev/pci/if_ixl.c
4775
ixl_hmc_pack(void *d, const void *s, const struct ixl_hmc_pack *packing,
sys/dev/pci/if_ixl.c
4778
uint8_t *dst = d;
sys/dev/pci/if_mcx.c
3593
uint8_t *d;
sys/dev/pci/if_mcx.c
3599
d = mcx_cq_mbox_data(mbox);
sys/dev/pci/if_mcx.c
3603
printf("%.2x ", d[j]);
sys/dev/pci/if_nge.c
233
int d, i;
sys/dev/pci/if_nge.c
235
d = addr | NGE_EECMD_READ;
sys/dev/pci/if_nge.c
241
if (d & i) {
sys/dev/pci/if_oce.c
432
#define oce_dma_sync(d, f) \
sys/dev/pci/if_oce.c
433
bus_dmamap_sync((d)->tag, (d)->map, 0, (d)->map->dm_mapsize, f)
sys/dev/pci/if_rge.c
1305
struct rge_tx_desc *d;
sys/dev/pci/if_rge.c
1313
d = &q->q_tx.rge_tx_list[RGE_TX_LIST_CNT - 1];
sys/dev/pci/if_rge.c
1314
d->rge_cmdsts = htole32(RGE_TDCMDSTS_EOR);
sys/dev/pci/if_rge.c
451
struct rge_tx_desc *d = NULL;
sys/dev/pci/if_rge.c
519
d = &q->q_tx.rge_tx_list[cur];
sys/dev/pci/if_rge.c
520
d->rge_cmdsts = htole32(cmdsts);
sys/dev/pci/if_rge.c
521
d->rge_extsts = htole32(cflags);
sys/dev/pci/if_rge.c
522
d->rge_addr = htole64(txmap->dm_segs[i].ds_addr);
sys/dev/pci/if_rge.c
537
d = &q->q_tx.rge_tx_list[idx];
sys/dev/pci/if_rge.c
538
d->rge_cmdsts = htole32(cmdsts);
sys/dev/pci/if_rge.c
539
d->rge_extsts = htole32(cflags);
sys/dev/pci/if_rge.c
540
d->rge_addr = htole64(txmap->dm_segs[0].ds_addr);
sys/dev/pci/if_rge.c
555
d->rge_cmdsts = htole32(cmdsts);
sys/dev/pci/if_sis.c
222
int d, i;
sys/dev/pci/if_sis.c
224
d = addr | SIS_EECMD_READ;
sys/dev/pci/if_sis.c
230
if (d & i)
sys/dev/pci/if_ste.c
1243
struct ste_desc *d;
sys/dev/pci/if_ste.c
1245
d = c->ste_ptr;
sys/dev/pci/if_ste.c
1246
d->ste_ctl = 0;
sys/dev/pci/if_ste.c
1253
f = &d->ste_frags[frag];
sys/dev/pci/if_ste.c
1290
d->ste_frags[frag - 1].ste_len |= STE_FRAG_LAST;
sys/dev/pci/if_ste.c
1291
d->ste_ctl = 1;
sys/dev/pci/if_tht.c
820
struct device *d;
sys/dev/pci/if_tht.c
825
for (d = TAILQ_NEXT(&thtc->sc_dev, dv_list); d != NULL;
sys/dev/pci/if_tht.c
826
d = TAILQ_NEXT(d, dv_list)) {
sys/dev/pci/if_tht.c
827
sc = (struct tht_softc *)d;
sys/dev/pci/if_txp.c
1729
txp_show_descriptor(void *d)
sys/dev/pci/if_txp.c
1731
struct txp_cmd_desc *cmd = d;
sys/dev/pci/if_txp.c
1732
struct txp_rsp_desc *rsp = d;
sys/dev/pci/if_txp.c
1733
struct txp_tx_desc *txd = d;
sys/dev/pci/if_txp.c
1734
struct txp_frag_desc *frgd = d;
sys/dev/pci/if_vge.c
1313
struct vge_tx_desc *d = NULL;
sys/dev/pci/if_vge.c
1343
d = &sc->vge_ldata.vge_tx_list[idx];
sys/dev/pci/if_vge.c
1345
if (letoh32(d->vge_sts) & VGE_TDSTS_OWN)
sys/dev/pci/if_vge.c
1349
f = &d->vge_frag[frag];
sys/dev/pci/if_vge.c
1357
f = &d->vge_frag[frag];
sys/dev/pci/if_vge.c
1374
d->vge_sts = htole32(len << 16);
sys/dev/pci/if_vge.c
1375
d->vge_ctl = htole32(vge_flags|(frag << 28) | VGE_TD_LS_NORM);
sys/dev/pci/if_vge.c
1378
d->vge_ctl |= htole32(VGE_TDCTL_JUMBO);
sys/dev/pci/if_vge.c
1383
d->vge_ctl |= htole32(m_head->m_pkthdr.ether_vtag |
sys/dev/pci/if_vr.c
1690
struct vr_desc *d;
sys/dev/pci/if_vr.c
1713
d = r->vr_ptr;
sys/dev/pci/if_vr.c
1714
d->vr_data = htole32(r->vr_map->dm_segs[0].ds_addr);
sys/dev/pci/if_vr.c
1716
d->vr_ctl = htole32(VR_RXCTL | VR_RXLEN_BABYJUMBO);
sys/dev/pci/if_vr.c
1718
d->vr_ctl = htole32(VR_RXCTL | VR_RXLEN);
sys/dev/pci/if_vr.c
1723
d->vr_status = htole32(VR_RXSTAT);
sys/dev/pci/if_vr.c
747
struct vr_desc *d;
sys/dev/pci/if_vr.c
759
d = (struct vr_desc *)&ld->vr_rx_list[i];
sys/dev/pci/if_vr.c
760
cd->vr_rx_chain[i].vr_ptr = d;
sys/dev/pci/if_wb.c
184
int d, i;
sys/dev/pci/if_wb.c
186
d = addr | WB_EECMD_READ;
sys/dev/pci/if_wb.c
192
if (d & i) {
sys/dev/pci/kate.c
139
pcireg_t c, d;
sys/dev/pci/kate.c
158
d = pci_conf_read(pa->pa_pc, pa->pa_tag, K_NORTHBRIDGE_CAP_R);
sys/dev/pci/kate.c
159
cmpcap = (d >> 12) & 0x3;
sys/dev/pci/mfii.c
2901
int i, d, rv = EINVAL;
sys/dev/pci/mfii.c
2961
for (i = 0, d = 0; i < cfg->mfc_no_ld; i++) {
sys/dev/pci/mfii.c
2968
d += sc->sc_ld_details[i].mld_cfg.mlc_parm.mpa_no_drv_per_span *
sys/dev/pci/mfii.c
2971
sc->sc_no_pd = d;
sys/dev/pci/neo.c
192
int neo_read_codec(void *sc, u_int8_t a, u_int16_t *d);
sys/dev/pci/neo.c
193
int neo_write_codec(void *sc, u_int8_t a, u_int16_t d);
sys/dev/pci/neo.c
638
neo_read_codec(void *sc_, u_int8_t a, u_int16_t *d)
sys/dev/pci/neo.c
643
*d = nm_rd(sc, sc->ac97_base + a, 2);
sys/dev/pci/neo.c
653
neo_write_codec(void *sc_, u_int8_t a, u_int16_t d)
sys/dev/pci/neo.c
660
nm_wr(sc, sc->ac97_base + a, d, 2);
sys/dev/pci/pciide_cmd_reg.h
73
#define CMD_ARTTIM23_RHAEAD(d) ((0x4) << (d))
sys/dev/pci/pciide_ixp_reg.h
51
#define IXP_UDMA_ENABLE(u, c, d) do { \
sys/dev/pci/pciide_ixp_reg.h
52
(u) |= (1 << (2 * (c) + (d))); \
sys/dev/pci/pciide_ixp_reg.h
54
#define IXP_UDMA_DISABLE(u, c, d) do { \
sys/dev/pci/pciide_ixp_reg.h
55
(u) &= ~(1 << (2 * (c) + (d))); \
sys/dev/pci/pciide_ixp_reg.h
64
#define IXP_SET_MODE(u, c, d, m) do { \
sys/dev/pci/pciide_ixp_reg.h
65
int __ixpshift = 16 + 8*(c) + 4*(d); \
sys/dev/pci/pciide_ixp_reg.h
74
#define IXP_SET_TIMING(m, c, d, t) do { \
sys/dev/pci/pciide_ixp_reg.h
75
int __ixpshift = 16*(c) + 8*(d); \
sys/dev/pci/pciide_natsemi_reg.h
95
#define NATSEMI_RTREG(c,d) (0x44 + (c * 8) + (d * 4) + 0)
sys/dev/pci/pciide_natsemi_reg.h
96
#define NATSEMI_WTREG(c,d) (0x44 + (c * 8) + (d * 4) + 1)
sys/dev/pci/pciide_piix_reg.h
69
#define PIIX_IDETIM_DTE(d) (0x0008 << (4 * (d))) /* DMA timing only */
sys/dev/pci/pciide_piix_reg.h
70
#define PIIX_IDETIM_PPE(d) (0x0004 << (4 * (d))) /* prefetch/posting */
sys/dev/pci/pciide_piix_reg.h
71
#define PIIX_IDETIM_IE(d) (0x0002 << (4 * (d))) /* IORDY enable */
sys/dev/pci/pciide_piix_reg.h
72
#define PIIX_IDETIM_TIME(d) (0x0001 << (4 * (d))) /* Fast timing enable */
sys/dev/pci/pciidereg.h
99
#define IDEDMA_CTL_DRV_DMA(d) (0x20 << (d))
sys/dev/pci/qle.c
2476
u_int8_t *d = buf;
sys/dev/pci/qle.c
2484
printf(" %2.2x", d[l]);
sys/dev/pci/tga.c
543
tga_config_interrupts(struct device *d)
sys/dev/pci/tga.c
545
struct tga_softc *sc = (struct tga_softc *)d;
sys/dev/pci/yds.c
177
int yds_read_codec(void *sc, u_int8_t a, u_int16_t *d);
sys/dev/pci/yds.c
178
int yds_write_codec(void *sc, u_int8_t a, u_int16_t d);
sys/dev/pckbc/pckbd.c
1208
pckbd_bell(d->pitch, d->period, d->volume, 0);
sys/dev/pckbc/pmsreg.h
150
#define SYNAPTICS_X_LIMIT(d) ((((d) & 0xff0000) >> 11) | \
sys/dev/pckbc/pmsreg.h
151
(((d) & 0xf00) >> 7))
sys/dev/pckbc/pmsreg.h
152
#define SYNAPTICS_Y_LIMIT(d) ((((d) & 0xff) << 5) | \
sys/dev/pckbc/pmsreg.h
153
(((d) & 0xf000) >> 11))
sys/dev/pv/viogpu.h
245
__le32 w, h, d;
sys/dev/rasops/rasops.c
1354
slow_bcopy(void *s, void *d, size_t len)
sys/dev/rasops/rasops.c
1357
u_int8_t *dst = d;
sys/dev/rasops/rasops.h
141
#define DELTA(p, d, cast) ((p) = (cast)((caddr_t)(p) + (d)))
sys/dev/rasops/rasops32.c
73
int32_t d[4][2];
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/rasops/rasops32.c
99
u.d[3][0] = f; u.d[3][1] = f;
sys/dev/softraid.c
1620
int sr, not_sr, rv = 1, d, expected = -1, old_meta = 0;
sys/dev/softraid.c
1632
sr = not_sr = d = 0;
sys/dev/softraid.c
1646
if (d == 0) {
sys/dev/softraid.c
1650
d++;
sys/dev/softraid.c
1673
d = 0;
sys/dev/softraid.c
1675
ch_entry = ch_next, d++) {
sys/dev/softraid.c
1685
sd->sd_vol.sv_chunks[d]->src_meta.scm_status =
sys/dev/softraid.c
299
int i, d, type, found, prevf, error;
sys/dev/softraid.c
309
for (d = 0, prevf = SR_META_F_INVALID; d < no_chunk; d++) {
sys/dev/softraid.c
318
dev = dt[d];
sys/dev/softraid_raid6.c
764
sr_raid6_xorp(void *p, void *d, int len)
sys/dev/softraid_raid6.c
766
uint32_t *pbuf = p, *data = d;
sys/dev/softraid_raid6.c
774
sr_raid6_xorq(void *q, void *d, int len, int gn)
sys/dev/softraid_raid6.c
776
uint32_t *qbuf = q, *data = d, x;
sys/dev/tc/asc_tc.c
105
struct tc_attach_args *d = aux;
sys/dev/tc/asc_tc.c
107
if (strncmp("PMAZ-AA ", d->ta_modname, TC_ROM_LLEN))
sys/dev/tc/bba.c
352
struct bba_dma_state *d;
sys/dev/tc/bba.c
356
d = &sc->sc_tx_dma_state;
sys/dev/tc/bba.c
365
if (d->active) {
sys/dev/tc/bba.c
366
bus_dmamap_sync(sc->sc_dmat, d->dmam, 0, d->size,
sys/dev/tc/bba.c
368
bus_dmamap_unload(sc->sc_dmat, d->dmam);
sys/dev/tc/bba.c
369
bus_dmamap_destroy(sc->sc_dmat, d->dmam);
sys/dev/tc/bba.c
370
d->active = 0;
sys/dev/tc/bba.c
380
struct bba_dma_state *d;
sys/dev/tc/bba.c
384
d = &sc->sc_rx_dma_state;
sys/dev/tc/bba.c
393
if (d->active) {
sys/dev/tc/bba.c
394
bus_dmamap_sync(sc->sc_dmat, d->dmam, 0, d->size,
sys/dev/tc/bba.c
396
bus_dmamap_unload(sc->sc_dmat, d->dmam);
sys/dev/tc/bba.c
397
bus_dmamap_destroy(sc->sc_dmat, d->dmam);
sys/dev/tc/bba.c
398
d->active = 0;
sys/dev/tc/bba.c
409
struct bba_dma_state *d;
sys/dev/tc/bba.c
416
d = &sc->sc_tx_dma_state;
sys/dev/tc/bba.c
424
d->size = (vaddr_t)end - (vaddr_t)start;
sys/dev/tc/bba.c
425
if (bus_dmamap_create(sc->sc_dmat, d->size,
sys/dev/tc/bba.c
427
BBA_DMABUF_BOUNDARY, BUS_DMA_NOWAIT, &d->dmam)) {
sys/dev/tc/bba.c
433
if (bus_dmamap_load(sc->sc_dmat, d->dmam, start, d->size, NULL,
sys/dev/tc/bba.c
438
bus_dmamap_sync(sc->sc_dmat, d->dmam, 0, d->size, BUS_DMASYNC_PREWRITE);
sys/dev/tc/bba.c
441
d->intr = intr;
sys/dev/tc/bba.c
442
d->intr_arg = arg;
sys/dev/tc/bba.c
443
d->curseg = 1;
sys/dev/tc/bba.c
446
phys = (tc_addr_t)d->dmam->dm_segs[0].ds_addr;
sys/dev/tc/bba.c
447
nphys = (tc_addr_t)d->dmam->dm_segs[1 % d->dmam->dm_nsegs].ds_addr;
sys/dev/tc/bba.c
460
d->active = 1;
sys/dev/tc/bba.c
466
bus_dmamap_unload(sc->sc_dmat, d->dmam);
sys/dev/tc/bba.c
468
bus_dmamap_destroy(sc->sc_dmat, d->dmam);
sys/dev/tc/bba.c
477
struct bba_dma_state *d;
sys/dev/tc/bba.c
484
d = &sc->sc_rx_dma_state;
sys/dev/tc/bba.c
492
d->size = (vaddr_t)end - (vaddr_t)start;
sys/dev/tc/bba.c
493
if (bus_dmamap_create(sc->sc_dmat, d->size,
sys/dev/tc/bba.c
495
BBA_DMABUF_BOUNDARY, BUS_DMA_NOWAIT, &d->dmam)) {
sys/dev/tc/bba.c
501
if (bus_dmamap_load(sc->sc_dmat, d->dmam, start, d->size, NULL,
sys/dev/tc/bba.c
506
bus_dmamap_sync(sc->sc_dmat, d->dmam, 0, d->size, BUS_DMASYNC_PREREAD);
sys/dev/tc/bba.c
509
d->intr = intr;
sys/dev/tc/bba.c
510
d->intr_arg = arg;
sys/dev/tc/bba.c
511
d->curseg = 1;
sys/dev/tc/bba.c
514
phys = (tc_addr_t)d->dmam->dm_segs[0].ds_addr;
sys/dev/tc/bba.c
515
nphys = (tc_addr_t)d->dmam->dm_segs[1 % d->dmam->dm_nsegs].ds_addr;
sys/dev/tc/bba.c
528
d->active = 1;
sys/dev/tc/bba.c
534
bus_dmamap_unload(sc->sc_dmat, d->dmam);
sys/dev/tc/bba.c
536
bus_dmamap_destroy(sc->sc_dmat, d->dmam);
sys/dev/tc/bba.c
544
struct bba_dma_state *d;
sys/dev/tc/bba.c
553
d = &sc->sc_tx_dma_state;
sys/dev/tc/bba.c
554
d->curseg = (d->curseg+1) % d->dmam->dm_nsegs;
sys/dev/tc/bba.c
555
nphys = (tc_addr_t)d->dmam->dm_segs[d->curseg].ds_addr;
sys/dev/tc/bba.c
558
if (d->intr != NULL)
sys/dev/tc/bba.c
559
(*d->intr)(d->intr_arg);
sys/dev/tc/bba.c
562
d = &sc->sc_rx_dma_state;
sys/dev/tc/bba.c
563
d->curseg = (d->curseg+1) % d->dmam->dm_nsegs;
sys/dev/tc/bba.c
564
nphys = (tc_addr_t)d->dmam->dm_segs[d->curseg].ds_addr;
sys/dev/tc/bba.c
567
if (d->intr != NULL)
sys/dev/tc/bba.c
568
(*d->intr)(d->intr_arg);
sys/dev/tc/if_le_ioasic.c
111
struct ioasicdev_attach_args *d = aux;
sys/dev/tc/if_le_ioasic.c
162
TC_DENSE_TO_SPARSE(TC_PHYS_TO_UNCACHED(d->iada_addr));
sys/dev/tc/if_le_ioasic.c
195
ioasic_intr_establish(parent, d->iada_cookie, IPL_NET,
sys/dev/tc/if_le_ioasic.c
95
struct ioasicdev_attach_args *d = aux;
sys/dev/tc/if_le_ioasic.c
97
if (strncmp("PMAD-BA ", d->iada_modname, TC_ROM_LLEN) != 0)
sys/dev/tc/if_le_tc.c
106
(u_char *)(d->ta_addr + LE_OFFSET_ROM + 2));
sys/dev/tc/if_le_tc.c
108
tc_intr_establish(parent, d->ta_cookie, IPL_NET, am7990_intr, sc,
sys/dev/tc/if_le_tc.c
70
struct tc_attach_args *d = aux;
sys/dev/tc/if_le_tc.c
72
if (strncmp("PMAD-AA ", d->ta_modname, TC_ROM_LLEN) != 0)
sys/dev/tc/if_le_tc.c
83
struct tc_attach_args *d = aux;
sys/dev/tc/if_le_tc.c
90
TC_DENSE_TO_SPARSE(TC_PHYS_TO_UNCACHED(d->ta_addr + LE_OFFSET_LANCE));
sys/dev/tc/if_le_tc.c
91
sc->sc_mem = (void *)(d->ta_addr + LE_OFFSET_RAM);
sys/dev/tc/ioasic_subr.c
42
struct ioasicdev_attach_args *d = aux;
sys/dev/tc/ioasic_subr.c
45
printf("%s at %s", d->iada_modname, pnp);
sys/dev/tc/ioasic_subr.c
46
printf(" offset 0x%lx", (long)d->iada_offset);
sys/dev/tc/ioasic_subr.c
51
ioasic_submatch(void *vcf, struct ioasicdev_attach_args *d)
sys/dev/tc/ioasic_subr.c
55
return ((match->ioasiccf_offset == d->iada_offset) ||
sys/dev/tc/tc.c
196
struct tc_attach_args *d = aux;
sys/dev/tc/tc.c
200
(cf->tccf_slot != d->ta_slot))
sys/dev/tc/tc.c
203
(cf->tccf_offset != d->ta_offset))
sys/dev/tc/zs_ioasic.c
200
struct ioasicdev_attach_args *d = aux;
sys/dev/tc/zs_ioasic.c
206
if (strncmp(d->iada_modname, "z8530 ", TC_ROM_LLEN) != 0 &&
sys/dev/tc/zs_ioasic.c
207
strncmp(d->iada_modname, "scc", TC_ROM_LLEN) != 0)
sys/dev/tc/zs_ioasic.c
213
zs_addr = TC_DENSE_TO_SPARSE((tc_addr_t)d->iada_addr);
sys/dev/tc/zs_ioasic.c
229
struct ioasicdev_attach_args *d = aux;
sys/dev/tc/zs_ioasic.c
244
if (zs_ioasic_isconsole(d->iada_offset, channel)) {
sys/dev/tc/zs_ioasic.c
250
zc = zs_ioasic_get_chan_addr(d->iada_addr, channel);
sys/dev/tc/zs_ioasic.c
262
zs->zsc_addroffset = d->iada_offset; /* cookie only */
sys/dev/tc/zs_ioasic.c
273
if (d->iada_offset == 0x00100000 && channel == 1) {
sys/dev/tc/zs_ioasic.c
302
if (d->iada_offset == 0x00100000) {
sys/dev/tc/zs_ioasic.c
338
ioasic_intr_establish(parent, d->iada_cookie, IPL_TTY,
sys/dev/usb/dwc2/dwc2.c
447
struct dwc2_xfer *d;
sys/dev/usb/dwc2/dwc2.c
505
TAILQ_FOREACH(d, &sc->sc_complete, xnext) {
sys/dev/usb/dwc2/dwc2.c
506
if (d == dxfer) {
sys/dev/usb/dwc2/dwc2.h
67
#define dev_info(d,fmt,...) do { \
sys/dev/usb/dwc2/dwc2.h
68
printf("%s: " fmt, device_xname(d), \
sys/dev/usb/dwc2/dwc2.h
71
#define dev_warn(d,fmt,...) do { \
sys/dev/usb/dwc2/dwc2.h
72
printf("%s: " fmt, device_xname(d), \
sys/dev/usb/dwc2/dwc2.h
75
#define dev_err(d,fmt,...) do { \
sys/dev/usb/dwc2/dwc2.h
76
printf("%s: " fmt, device_xname(d), \
sys/dev/usb/dwc2/dwc2.h
79
#define dev_dbg(d,fmt,...) do { \
sys/dev/usb/dwc2/dwc2.h
81
printf("%s: " fmt, device_xname(d), \
sys/dev/usb/dwc2/dwc2.h
85
#define dev_vdbg(d,fmt,...) do { \
sys/dev/usb/dwc2/dwc2.h
87
printf("%s: " fmt, device_xname(d), \
sys/dev/usb/dwc2/dwc2var.h
130
#define device_xname(d) ((d)->dv_xname)
sys/dev/usb/dwc2/dwc2var.h
65
#define DWC2_DPIPE2SC(d) DWC2_BUS2SC((d)->pipe.device->bus)
sys/dev/usb/uaudio.c
1587
struct uaudio_unit *d = u;
sys/dev/usb/uaudio.c
1589
while (d != NULL) {
sys/dev/usb/uaudio.c
1590
if (d->dst_list == NULL || d->dst_list->dst_next != NULL)
sys/dev/usb/uaudio.c
1592
d = d->dst_list;
sys/dev/usb/uaudio.c
1593
if (d->src_list == NULL || d->src_list->src_next != NULL)
sys/dev/usb/uaudio.c
1595
if (d->name[0] != '\0') {
sys/dev/usb/uaudio.c
1596
if (name != NULL && strcmp(name, d->name) != 0)
sys/dev/usb/uaudio.c
1598
strlcpy(u->name, d->name, UAUDIO_NAMEMAX);
sys/dev/usb/uaudio.c
1640
struct uaudio_unit *s, *d;
sys/dev/usb/uaudio.c
1655
d = u->dst_list;
sys/dev/usb/uaudio.c
1657
if (d == NULL) {
sys/dev/usb/uaudio.c
1662
if (d->name[0] != '\0')
sys/dev/usb/uaudio.c
1664
d = d->dst_list;
sys/dev/usb/uaudio.c
1667
snprintf(name, UAUDIO_NAMEMAX, "%s_%s", d->name, s->name);
sys/dev/usb/udl.c
513
struct udl_ioctl_damage *d;
sys/dev/usb/udl.c
559
d = (struct udl_ioctl_damage *)data;
sys/dev/usb/udl.c
560
d->status = UDLIO_STATUS_OK;
sys/dev/usb/udl.c
561
r = udl_damage(sc, sc->sc_fbmem, d->x1, d->x2, d->y1, d->y2);
sys/dev/usb/udl.c
565
d->status = UDLIO_STATUS_FAILED;
sys/dev/usb/udl.c
567
r = udl_damage(sc, sc->sc_fbmem, d->x1, d->x2,
sys/dev/usb/udl.c
568
d->y1, d->y2);
sys/dev/usb/udl.c
570
d->status = UDLIO_STATUS_FAILED;
sys/dev/usb/uftdi.c
1162
unsigned int d, freq;
sys/dev/usb/uftdi.c
1180
d = (FTDI_8U232AM_FREQ << 4) / speed;
sys/dev/usb/uftdi.c
1181
d = (d & ~15) + roundoff[d & 15];
sys/dev/usb/uftdi.c
1183
if (d < FTDI_8U232AM_MIN_DIV)
sys/dev/usb/uftdi.c
1184
d = FTDI_8U232AM_MIN_DIV;
sys/dev/usb/uftdi.c
1185
else if (d > FTDI_8U232AM_MAX_DIV)
sys/dev/usb/uftdi.c
1186
d = FTDI_8U232AM_MAX_DIV;
sys/dev/usb/uftdi.c
1193
freq = speed * d;
sys/dev/usb/uftdi.c
1204
result = d >> 4;
sys/dev/usb/uftdi.c
1206
if (d & 8)
sys/dev/usb/uftdi.c
1208
else if (d & 4)
sys/dev/usb/uftdi.c
1211
if (d & 2)
sys/dev/usb/uhidev.c
389
struct hid_data *d;
sys/dev/usb/uhidev.c
395
for (d = hid_start_parse(buf, len, hid_all); hid_get_item(d, &h);)
sys/dev/usb/uhidev.c
398
hid_end_parse(d);
sys/dev/usb/uhidev.c
960
u_int8_t *d = data;
sys/dev/usb/uhidev.c
964
DPRINTF((" %02x", d[i]));
sys/dev/usb/umidi.c
1127
out_jack_output(struct umidi_jack *j, int d)
sys/dev/usb/umidi.c
1147
if (!out_build_packet(j->cable_number, &j->packet, d,
sys/dev/usb/umidi.c
295
umidi_output(void *addr, int d)
sys/dev/usb/umidi.c
302
return out_jack_output(mididev->out_jack, d);
sys/dev/usb/usb.h
246
#define UE_SET_DIR(a,d) ((a) | (((d)&1) << 7))
sys/dev/usb/usb_quirks.c
198
usbd_find_quirk(usb_device_descriptor_t *d)
sys/dev/usb/usb_quirks.c
202
u_int16_t vendor = UGETW(d->idVendor);
sys/dev/usb/usb_quirks.c
203
u_int16_t product = UGETW(d->idProduct);
sys/dev/usb/usb_quirks.c
204
u_int16_t revision = UGETW(d->bcdDevice);
sys/dev/usb/usb_quirks.c
214
vendor, product, UGETW(d->bcdDevice),
sys/dev/usb/usb_quirks.c
223
if (td->bDeviceClass == d->bDeviceClass &&
sys/dev/usb/usb_quirks.c
225
td->bDeviceSubClass == d->bDeviceSubClass) &&
sys/dev/usb/usb_quirks.c
227
td->bDeviceProtocol == d->bDeviceProtocol)) {
sys/dev/usb/usb_quirks.c
231
d->bDeviceClass, d->bDeviceSubClass,
sys/dev/usb/usb_quirks.c
232
UGETW(d->bcdDevice),
sys/dev/usb/usb_subr.c
418
usb_interface_descriptor_t *d;
sys/dev/usb/usb_subr.c
422
d = (usb_interface_descriptor_t *)p;
sys/dev/usb/usb_subr.c
426
d->bLength, d->bDescriptorType));
sys/dev/usb/usb_subr.c
427
if (d->bLength == 0) /* bad descriptor */
sys/dev/usb/usb_subr.c
429
p += d->bLength;
sys/dev/usb/usb_subr.c
430
if (p <= end && d->bDescriptorType == UDESC_INTERFACE) {
sys/dev/usb/usb_subr.c
431
if (d->bInterfaceNumber != lastidx) {
sys/dev/usb/usb_subr.c
432
lastidx = d->bInterfaceNumber;
sys/dev/usb/usb_subr.c
438
return (d);
sys/dev/usb/usb_subr.c
450
usb_interface_descriptor_t *d;
sys/dev/usb/usb_subr.c
454
d = usbd_find_idesc(cd, ifaceno, altno);
sys/dev/usb/usb_subr.c
455
if (d == NULL)
sys/dev/usb/usb_subr.c
457
if (endptidx >= d->bNumEndpoints) /* quick exit */
sys/dev/usb/usb_subr.c
461
for (p = (char *)d + d->bLength; p < end; ) {
sys/dev/usb/usbdi.c
704
usb_interface_descriptor_t *d;
sys/dev/usb/usbdi.c
707
for (n = 0; p < end; p += d->bLength) {
sys/dev/usb/usbdi.c
708
d = (usb_interface_descriptor_t *)p;
sys/dev/usb/usbdi.c
709
if (p + d->bLength <= end &&
sys/dev/usb/usbdi.c
710
d->bDescriptorType == UDESC_INTERFACE &&
sys/dev/usb/usbdi.c
711
d->bInterfaceNumber == ifaceno)
sys/dev/usb/uvideo.c
1043
struct usb_video_input_header_desc *d;
sys/dev/usb/uvideo.c
1045
d = (struct usb_video_input_header_desc *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
1048
if (d->bNumFormats == 0) {
sys/dev/usb/uvideo.c
1053
sc->sc_desc_vs_input_header.fix = d;
sys/dev/usb/uvideo.c
1054
sc->sc_desc_vs_input_header.bmaControls = (uByte *)(d + 1);
sys/dev/usb/uvideo.c
1130
struct usb_video_colorformat_desc *d;
sys/dev/usb/uvideo.c
1132
d = (struct usb_video_colorformat_desc *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
1138
if (d->bColorPrimaries < nitems(uvideo_color_primaries))
sys/dev/usb/uvideo.c
1140
uvideo_color_primaries[d->bColorPrimaries];
sys/dev/usb/uvideo.c
1144
if (d->bTransferCharacteristics < nitems(uvideo_xfer_characteristics))
sys/dev/usb/uvideo.c
1146
uvideo_xfer_characteristics[d->bTransferCharacteristics];
sys/dev/usb/uvideo.c
1150
if (d->bMatrixCoefficients < nitems(uvideo_matrix_coefficients))
sys/dev/usb/uvideo.c
1152
uvideo_matrix_coefficients[d->bMatrixCoefficients];
sys/dev/usb/uvideo.c
1163
struct usb_video_format_desc *d;
sys/dev/usb/uvideo.c
1165
d = (struct usb_video_format_desc *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
1167
if (d->bNumFrameDescriptors == 0) {
sys/dev/usb/uvideo.c
1178
sc->sc_fmtgrp[sc->sc_fmtgrp_idx].format = d;
sys/dev/usb/uvideo.c
1179
if (d->u.mjpeg.bDefaultFrameIndex > d->bNumFrameDescriptors ||
sys/dev/usb/uvideo.c
1180
d->u.mjpeg.bDefaultFrameIndex < 1) {
sys/dev/usb/uvideo.c
1185
d->u.mjpeg.bDefaultFrameIndex;
sys/dev/usb/uvideo.c
1201
struct usb_video_format_desc *d;
sys/dev/usb/uvideo.c
1203
d = (struct usb_video_format_desc *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
1205
if (d->bNumFrameDescriptors == 0) {
sys/dev/usb/uvideo.c
1216
sc->sc_fmtgrp[sc->sc_fmtgrp_idx].format = d;
sys/dev/usb/uvideo.c
1217
if (d->u.h264.bDefaultFrameIndex > d->bNumFrameDescriptors ||
sys/dev/usb/uvideo.c
1218
d->u.h264.bDefaultFrameIndex < 1) {
sys/dev/usb/uvideo.c
1223
d->u.h264.bDefaultFrameIndex;
sys/dev/usb/uvideo.c
1239
struct usb_video_format_desc *d;
sys/dev/usb/uvideo.c
1242
d = (struct usb_video_format_desc *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
1244
if (d->bNumFrameDescriptors == 0) {
sys/dev/usb/uvideo.c
1255
sc->sc_fmtgrp[sc->sc_fmtgrp_idx].format = d;
sys/dev/usb/uvideo.c
1256
if (d->u.fb.bDefaultFrameIndex > d->bNumFrameDescriptors ||
sys/dev/usb/uvideo.c
1257
d->u.fb.bDefaultFrameIndex < 1) {
sys/dev/usb/uvideo.c
1262
d->u.fb.bDefaultFrameIndex;
sys/dev/usb/uvideo.c
1294
struct usb_video_format_desc *d;
sys/dev/usb/uvideo.c
1297
d = (struct usb_video_format_desc *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
1299
if (d->bNumFrameDescriptors == 0) {
sys/dev/usb/uvideo.c
1310
sc->sc_fmtgrp[sc->sc_fmtgrp_idx].format = d;
sys/dev/usb/uvideo.c
1311
if (d->u.uc.bDefaultFrameIndex > d->bNumFrameDescriptors ||
sys/dev/usb/uvideo.c
1312
d->u.uc.bDefaultFrameIndex < 1) {
sys/dev/usb/uvideo.c
1317
d->u.uc.bDefaultFrameIndex;
sys/dev/usb/uvideo.c
3071
struct usb_video_header_desc *d;
sys/dev/usb/uvideo.c
3073
d = (struct usb_video_header_desc *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
3075
baInterfaceNr = (uByte *)(d + 1);
sys/dev/usb/uvideo.c
3077
printf("bLength=%d\n", d->bLength);
sys/dev/usb/uvideo.c
3078
printf("bDescriptorType=0x%02x\n", d->bDescriptorType);
sys/dev/usb/uvideo.c
3079
printf("bDescriptorSubtype=0x%02x\n", d->bDescriptorSubtype);
sys/dev/usb/uvideo.c
3080
printf("bcdUVC=0x%04x\n", UGETW(d->bcdUVC));
sys/dev/usb/uvideo.c
3081
printf("wTotalLength=%d\n", UGETW(d->wTotalLength));
sys/dev/usb/uvideo.c
3082
printf("dwClockFrequency=%d\n", UGETDW(d->dwClockFrequency));
sys/dev/usb/uvideo.c
3083
printf("bInCollection=0x%02x\n", d->bInCollection);
sys/dev/usb/uvideo.c
3084
for (i = 0; i < d->bInCollection; i++)
sys/dev/usb/uvideo.c
3092
struct usb_video_input_header_desc *d;
sys/dev/usb/uvideo.c
3094
d = (struct usb_video_input_header_desc *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
3096
printf("bLength=%d\n", d->bLength);
sys/dev/usb/uvideo.c
3097
printf("bDescriptorType=0x%02x\n", d->bDescriptorType);
sys/dev/usb/uvideo.c
3098
printf("bDescriptorSubtype=0x%02x\n", d->bDescriptorSubtype);
sys/dev/usb/uvideo.c
3099
printf("bNumFormats=%d\n", d->bNumFormats);
sys/dev/usb/uvideo.c
3100
printf("wTotalLength=%d\n", UGETW(d->wTotalLength));
sys/dev/usb/uvideo.c
3101
printf("bEndpointAddress=0x%02x\n", d->bEndpointAddress);
sys/dev/usb/uvideo.c
3102
printf("bmInfo=0x%02x\n", d->bmInfo);
sys/dev/usb/uvideo.c
3103
printf("bTerminalLink=0x%02x\n", d->bTerminalLink);
sys/dev/usb/uvideo.c
3104
printf("bStillCaptureMethod=0x%02x\n", d->bStillCaptureMethod);
sys/dev/usb/uvideo.c
3105
printf("bTriggerSupport=0x%02x\n", d->bTriggerSupport);
sys/dev/usb/uvideo.c
3106
printf("bTriggerUsage=0x%02x\n", d->bTriggerUsage);
sys/dev/usb/uvideo.c
3107
printf("bControlSize=%d\n", d->bControlSize);
sys/dev/usb/uvideo.c
3114
struct usb_video_input_terminal_desc *d;
sys/dev/usb/uvideo.c
3116
d = (struct usb_video_input_terminal_desc *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
3118
printf("bLength=%d\n", d->bLength);
sys/dev/usb/uvideo.c
3119
printf("bDescriptorType=0x%02x\n", d->bDescriptorType);
sys/dev/usb/uvideo.c
3120
printf("bDescriptorSubtype=0x%02x\n", d->bDescriptorSubtype);
sys/dev/usb/uvideo.c
3121
printf("bTerminalID=0x%02x\n", d->bTerminalID);
sys/dev/usb/uvideo.c
3122
printf("wTerminalType=0x%04x\n", UGETW(d->wTerminalType));
sys/dev/usb/uvideo.c
3123
printf("bAssocTerminal=0x%02x\n", d->bAssocTerminal);
sys/dev/usb/uvideo.c
3124
printf("iTerminal=0x%02x\n", d->iTerminal);
sys/dev/usb/uvideo.c
3131
struct usb_video_output_terminal_desc *d;
sys/dev/usb/uvideo.c
3133
d = (struct usb_video_output_terminal_desc *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
3135
printf("bLength=%d\n", d->bLength);
sys/dev/usb/uvideo.c
3136
printf("bDescriptorType=0x%02x\n", d->bDescriptorType);
sys/dev/usb/uvideo.c
3137
printf("bDescriptorSubtype=0x%02x\n", d->bDescriptorSubtype);
sys/dev/usb/uvideo.c
3138
printf("bTerminalID=0x%02x\n", d->bTerminalID);
sys/dev/usb/uvideo.c
3139
printf("bAssocTerminal=0x%02x\n", d->bAssocTerminal);
sys/dev/usb/uvideo.c
3140
printf("bSourceID=0x%02x\n", d->bSourceID);
sys/dev/usb/uvideo.c
3141
printf("iTerminal=0x%02x\n", d->iTerminal);
sys/dev/usb/uvideo.c
3149
usb_endpoint_descriptor_t *d;
sys/dev/usb/uvideo.c
3151
d = (usb_endpoint_descriptor_t *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
3153
printf("bLength=%d\n", d->bLength);
sys/dev/usb/uvideo.c
3154
printf("bDescriptorType=0x%02x\n", d->bDescriptorType);
sys/dev/usb/uvideo.c
3155
printf("bEndpointAddress=0x%02x", d->bEndpointAddress);
sys/dev/usb/uvideo.c
3156
if (UE_GET_DIR(d->bEndpointAddress) == UE_DIR_IN)
sys/dev/usb/uvideo.c
3158
if (UE_GET_DIR(d->bEndpointAddress) == UE_DIR_OUT)
sys/dev/usb/uvideo.c
3160
printf("bmAttributes=0x%02x", d->bmAttributes);
sys/dev/usb/uvideo.c
3161
if (UE_GET_XFERTYPE(d->bmAttributes) == UE_ISOCHRONOUS) {
sys/dev/usb/uvideo.c
3163
if (UE_GET_ISO_TYPE(d->bmAttributes) == UE_ISO_ASYNC)
sys/dev/usb/uvideo.c
3165
if (UE_GET_ISO_TYPE(d->bmAttributes) == UE_ISO_ADAPT)
sys/dev/usb/uvideo.c
3167
if (UE_GET_ISO_TYPE(d->bmAttributes) == UE_ISO_SYNC)
sys/dev/usb/uvideo.c
3170
if (UE_GET_XFERTYPE(d->bmAttributes) == UE_CONTROL)
sys/dev/usb/uvideo.c
3172
if (UE_GET_XFERTYPE(d->bmAttributes) == UE_BULK)
sys/dev/usb/uvideo.c
3174
if (UE_GET_XFERTYPE(d->bmAttributes) == UE_INTERRUPT)
sys/dev/usb/uvideo.c
3176
printf("wMaxPacketSize=%d\n", UGETW(d->wMaxPacketSize));
sys/dev/usb/uvideo.c
3177
printf("bInterval=0x%02x\n", d->bInterval);
sys/dev/usb/uvideo.c
3184
usb_endpoint_ss_comp_descriptor_t *d;
sys/dev/usb/uvideo.c
3186
d = (usb_endpoint_ss_comp_descriptor_t *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
3188
printf("bLength=%d\n", d->bLength);
sys/dev/usb/uvideo.c
3189
printf("bDescriptorType=0x%02x\n", d->bDescriptorType);
sys/dev/usb/uvideo.c
3190
printf("bMaxBurst=0x%02x\n", d->bMaxBurst);
sys/dev/usb/uvideo.c
3191
printf("bmAttributes=0x%02x\n", d->bmAttributes);
sys/dev/usb/uvideo.c
3192
printf("wBytesPerInterval=%d\n", UGETW(d->wBytesPerInterval));
sys/dev/usb/uvideo.c
3199
usb_interface_assoc_descriptor_t *d;
sys/dev/usb/uvideo.c
3201
d = (usb_interface_assoc_descriptor_t *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
3203
printf("bLength=%d\n", d->bLength);
sys/dev/usb/uvideo.c
3204
printf("bDescriptorType=0x%02x\n", d->bDescriptorType);
sys/dev/usb/uvideo.c
3205
printf("bFirstInterface=0x%02x\n", d->bFirstInterface);
sys/dev/usb/uvideo.c
3206
printf("bInterfaceCount=%d\n", d->bInterfaceCount);
sys/dev/usb/uvideo.c
3207
printf("bFunctionClass=0x%02x\n", d->bFunctionClass);
sys/dev/usb/uvideo.c
3208
printf("bFunctionSubClass=0x%02x\n", d->bFunctionSubClass);
sys/dev/usb/uvideo.c
3209
printf("bFunctionProtocol=0x%02x\n", d->bFunctionProtocol);
sys/dev/usb/uvideo.c
3210
printf("iFunction=0x%02x\n", d->iFunction);
sys/dev/usb/uvideo.c
3217
usb_interface_descriptor_t *d;
sys/dev/usb/uvideo.c
3219
d = (usb_interface_descriptor_t *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
3221
printf("bLength=%d\n", d->bLength);
sys/dev/usb/uvideo.c
3222
printf("bDescriptorType=0x%02x\n", d->bDescriptorType);
sys/dev/usb/uvideo.c
3223
printf("bInterfaceNumber=0x%02x\n", d->bInterfaceNumber);
sys/dev/usb/uvideo.c
3224
printf("bAlternateSetting=0x%02x\n", d->bAlternateSetting);
sys/dev/usb/uvideo.c
3225
printf("bNumEndpoints=%d\n", d->bNumEndpoints);
sys/dev/usb/uvideo.c
3226
printf("bInterfaceClass=0x%02x\n", d->bInterfaceClass);
sys/dev/usb/uvideo.c
3227
printf("bInterfaceSubClass=0x%02x\n", d->bInterfaceSubClass);
sys/dev/usb/uvideo.c
3228
printf("bInterfaceProtocol=0x%02x\n", d->bInterfaceProtocol);
sys/dev/usb/uvideo.c
3229
printf("iInterface=0x%02x\n", d->iInterface);
sys/dev/usb/uvideo.c
3236
usb_config_descriptor_t *d;
sys/dev/usb/uvideo.c
3238
d = (usb_config_descriptor_t *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
3240
printf("bLength=%d\n", d->bLength);
sys/dev/usb/uvideo.c
3241
printf("bDescriptorType=0x%02x\n", d->bDescriptorType);
sys/dev/usb/uvideo.c
3242
printf("wTotalLength=%d\n", UGETW(d->wTotalLength));
sys/dev/usb/uvideo.c
3243
printf("bNumInterfaces=0x%02x\n", d->bNumInterfaces);
sys/dev/usb/uvideo.c
3244
printf("bConfigurationValue=0x%02x\n", d->bConfigurationValue);
sys/dev/usb/uvideo.c
3245
printf("iConfiguration=0x%02x\n", d->iConfiguration);
sys/dev/usb/uvideo.c
3246
printf("bmAttributes=0x%02x\n", d->bmAttributes);
sys/dev/usb/uvideo.c
3247
printf("bMaxPower=0x%02x\n", d->bMaxPower);
sys/dev/usb/uvideo.c
3254
struct usb_video_vc_endpoint_desc *d;
sys/dev/usb/uvideo.c
3256
d = (struct usb_video_vc_endpoint_desc *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
3258
printf("bLength=%d\n", d->bLength);
sys/dev/usb/uvideo.c
3259
printf("bDescriptorType=0x%02x\n", d->bDescriptorType);
sys/dev/usb/uvideo.c
3260
printf("bDescriptorSubtype=0x%02x\n", d->bDescriptorSubtype);
sys/dev/usb/uvideo.c
3261
printf("wMaxTransferSize=%d\n", UGETW(d->wMaxTransferSize));
sys/dev/usb/uvideo.c
3268
struct usb_video_color_matching_descr *d;
sys/dev/usb/uvideo.c
3270
d = (struct usb_video_color_matching_descr *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
3272
printf("bLength=%d\n", d->bLength);
sys/dev/usb/uvideo.c
3273
printf("bDescriptorType=0x%02x\n", d->bDescriptorType);
sys/dev/usb/uvideo.c
3274
printf("bDescriptorSubtype=0x%02x\n", d->bDescriptorSubtype);
sys/dev/usb/uvideo.c
3275
printf("bColorPrimaries=0x%02x\n", d->bColorPrimaries);
sys/dev/usb/uvideo.c
3277
d->bTransferCharacteristics);
sys/dev/usb/uvideo.c
3278
printf("bMatrixCoefficients=0x%02x\n", d->bMatrixCoefficients);
sys/dev/usb/uvideo.c
3285
struct usb_video_format_desc *d;
sys/dev/usb/uvideo.c
3287
d = (struct usb_video_format_desc *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
3289
printf("bLength=%d\n", d->bLength);
sys/dev/usb/uvideo.c
3290
printf("bDescriptorType=0x%02x\n", d->bDescriptorType);
sys/dev/usb/uvideo.c
3291
printf("bDescriptorSubtype=0x%02x\n", d->bDescriptorSubtype);
sys/dev/usb/uvideo.c
3292
printf("bFormatIndex=0x%02x\n", d->bFormatIndex);
sys/dev/usb/uvideo.c
3293
printf("bNumFrameDescriptors=0x%02x\n", d->bNumFrameDescriptors);
sys/dev/usb/uvideo.c
3294
printf("bmFlags=0x%02x\n", d->u.mjpeg.bmFlags);
sys/dev/usb/uvideo.c
3295
printf("bDefaultFrameIndex=0x%02x\n", d->u.mjpeg.bDefaultFrameIndex);
sys/dev/usb/uvideo.c
3296
printf("bAspectRatioX=0x%02x\n", d->u.mjpeg.bAspectRatioX);
sys/dev/usb/uvideo.c
3297
printf("bAspectRatioY=0x%02x\n", d->u.mjpeg.bAspectRatioY);
sys/dev/usb/uvideo.c
3298
printf("bmInterlaceFlags=0x%02x\n", d->u.mjpeg.bmInterlaceFlags);
sys/dev/usb/uvideo.c
3299
printf("bCopyProtect=0x%02x\n", d->u.mjpeg.bCopyProtect);
sys/dev/usb/uvideo.c
3305
struct usb_video_frame_desc *d;
sys/dev/usb/uvideo.c
3309
d = (struct usb_video_frame_desc *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
3311
printf("bLength=%d\n", d->bLength);
sys/dev/usb/uvideo.c
3312
printf("bDescriptorType=0x%02x\n", d->bDescriptorType);
sys/dev/usb/uvideo.c
3313
printf("bDescriptorSubtype=0x%02x\n", d->bDescriptorSubtype);
sys/dev/usb/uvideo.c
3314
printf("bFrameIndex=0x%02x\n", d->bFrameIndex);
sys/dev/usb/uvideo.c
3315
printf("bmCapabilities=0x%02x\n", d->u.uc.bmCapabilities);
sys/dev/usb/uvideo.c
3316
printf("wWidth=%d\n", UGETW(d->u.uc.wWidth));
sys/dev/usb/uvideo.c
3317
printf("wHeight=%d\n", UGETW(d->u.uc.wHeight));
sys/dev/usb/uvideo.c
3318
printf("dwMinBitRate=%d\n", UGETDW(d->u.uc.dwMinBitRate));
sys/dev/usb/uvideo.c
3319
printf("dwMaxBitRate=%d\n", UGETDW(d->u.uc.dwMaxBitRate));
sys/dev/usb/uvideo.c
3321
UGETDW(d->u.uc.dwMaxVideoFrameBufferSize));
sys/dev/usb/uvideo.c
3323
UGETDW(d->u.uc.dwDefaultFrameInterval));
sys/dev/usb/uvideo.c
3324
printf("bFrameIntervalType=0x%02x\n", d->u.uc.bFrameIntervalType);
sys/dev/usb/uvideo.c
3326
p = (uint8_t *)d + UVIDEO_FRAME_MIN_LEN(d);
sys/dev/usb/uvideo.c
3328
if (!d->u.uc.bFrameIntervalType) {
sys/dev/usb/uvideo.c
3330
if (d->bLength < UVIDEO_FRAME_MIN_LEN(d) +
sys/dev/usb/uvideo.c
3343
length = d->bLength - UVIDEO_FRAME_MIN_LEN(d);
sys/dev/usb/uvideo.c
3344
for (i = 0; i < d->u.uc.bFrameIntervalType; i++) {
sys/dev/usb/uvideo.c
3360
struct usb_video_format_desc *d;
sys/dev/usb/uvideo.c
3362
d = (struct usb_video_format_desc *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
3364
printf("bLength=%d\n", d->bLength);
sys/dev/usb/uvideo.c
3365
printf("bDescriptorType=0x%02x\n", d->bDescriptorType);
sys/dev/usb/uvideo.c
3366
printf("bDescriptorSubtype=0x%02x\n", d->bDescriptorSubtype);
sys/dev/usb/uvideo.c
3367
printf("bFormatIndex=0x%02x\n", d->bFormatIndex);
sys/dev/usb/uvideo.c
3368
printf("bNumFrameDescriptors=0x%02x\n", d->bNumFrameDescriptors);
sys/dev/usb/uvideo.c
3369
printf("guidFormat=%s\n", d->u.uc.guidFormat);
sys/dev/usb/uvideo.c
3370
printf("bBitsPerPixel=0x%02x\n", d->u.uc.bBitsPerPixel);
sys/dev/usb/uvideo.c
3371
printf("bDefaultFrameIndex=0x%02x\n", d->u.uc.bDefaultFrameIndex);
sys/dev/usb/uvideo.c
3372
printf("bAspectRatioX=0x%02x\n", d->u.uc.bAspectRatioX);
sys/dev/usb/uvideo.c
3373
printf("bAspectRatioY=0x%02x\n", d->u.uc.bAspectRatioY);
sys/dev/usb/uvideo.c
3374
printf("bmInterlaceFlags=0x%02x\n", d->u.uc.bmInterlaceFlags);
sys/dev/usb/uvideo.c
3375
printf("bCopyProtect=0x%02x\n", d->u.uc.bCopyProtect);
sys/dev/usb/uvideo.c
3382
struct usb_video_format_desc *d;
sys/dev/usb/uvideo.c
3384
d = (struct usb_video_format_desc *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
3386
printf("bLength=%d\n", d->bLength);
sys/dev/usb/uvideo.c
3387
printf("bDescriptorType=0x%02x\n", d->bDescriptorType);
sys/dev/usb/uvideo.c
3388
printf("bDescriptorSubtype=0x%02x\n", d->bDescriptorSubtype);
sys/dev/usb/uvideo.c
3389
printf("bFormatIndex=0x%02x\n", d->bFormatIndex);
sys/dev/usb/uvideo.c
3390
printf("bNumFrameDescriptors=0x%02x\n", d->bNumFrameDescriptors);
sys/dev/usb/uvideo.c
3391
printf("guidFormat=%s\n", d->u.fb.guidFormat);
sys/dev/usb/uvideo.c
3392
printf("bBitsPerPixel=0x%02x\n", d->u.fb.bBitsPerPixel);
sys/dev/usb/uvideo.c
3393
printf("bDefaultFrameIndex=0x%02x\n", d->u.fb.bDefaultFrameIndex);
sys/dev/usb/uvideo.c
3394
printf("bAspectRatioX=0x%02x\n", d->u.fb.bAspectRatioX);
sys/dev/usb/uvideo.c
3395
printf("bAspectRatioY=0x%02x\n", d->u.fb.bAspectRatioY);
sys/dev/usb/uvideo.c
3396
printf("bmInterlaceFlags=0x%02x\n", d->u.fb.bmInterlaceFlags);
sys/dev/usb/uvideo.c
3397
printf("bCopyProtect=0x%02x\n", d->u.fb.bCopyProtect);
sys/dev/usb/uvideo.c
3398
printf("bVariableSize=0x%02x\n", d->u.fb.bVariableSize);
sys/dev/usb/uvideo.c
3404
struct usb_video_frame_desc *d;
sys/dev/usb/uvideo.c
3408
d = (struct usb_video_frame_desc *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
3410
printf("bLength=%d\n", d->bLength);
sys/dev/usb/uvideo.c
3411
printf("bDescriptorType=0x%02x\n", d->bDescriptorType);
sys/dev/usb/uvideo.c
3412
printf("bDescriptorSubtype=0x%02x\n", d->bDescriptorSubtype);
sys/dev/usb/uvideo.c
3413
printf("bFrameIndex=0x%02x\n", d->bFrameIndex);
sys/dev/usb/uvideo.c
3414
printf("bmCapabilities=0x%02x\n", d->u.fb.bmCapabilities);
sys/dev/usb/uvideo.c
3415
printf("wWidth=%d\n", UGETW(d->u.fb.wWidth));
sys/dev/usb/uvideo.c
3416
printf("wHeight=%d\n", UGETW(d->u.fb.wHeight));
sys/dev/usb/uvideo.c
3417
printf("dwMinBitRate=%d\n", UGETDW(d->u.fb.dwMinBitRate));
sys/dev/usb/uvideo.c
3418
printf("dwMaxBitRate=%d\n", UGETDW(d->u.fb.dwMaxBitRate));
sys/dev/usb/uvideo.c
3420
UGETDW(d->u.fb.dwDefaultFrameInterval));
sys/dev/usb/uvideo.c
3421
printf("bFrameIntervalType=0x%02x\n", d->u.fb.bFrameIntervalType);
sys/dev/usb/uvideo.c
3423
UGETDW(d->u.fb.dwBytesPerLine));
sys/dev/usb/uvideo.c
3425
p = (uint8_t *)d + UVIDEO_FRAME_MIN_LEN(d);
sys/dev/usb/uvideo.c
3427
if (!d->u.uc.bFrameIntervalType) {
sys/dev/usb/uvideo.c
3429
if (d->bLength < UVIDEO_FRAME_MIN_LEN(d) +
sys/dev/usb/uvideo.c
3442
length = d->bLength - UVIDEO_FRAME_MIN_LEN(d);
sys/dev/usb/uvideo.c
3443
for (i = 0; i < d->u.uc.bFrameIntervalType; i++) {
sys/dev/usb/uvideo.c
3459
struct usb_video_format_desc *d;
sys/dev/usb/uvideo.c
3461
d = (struct usb_video_format_desc *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
3463
printf("bLength=%d\n", d->bLength);
sys/dev/usb/uvideo.c
3464
printf("bDescriptorType=0x%02x\n", d->bDescriptorType);
sys/dev/usb/uvideo.c
3465
printf("bDescriptorSubtype=0x%02x\n", d->bDescriptorSubtype);
sys/dev/usb/uvideo.c
3466
printf("bFormatIndex=0x%02x\n", d->bFormatIndex);
sys/dev/usb/uvideo.c
3467
printf("bNumFrameDescriptors=0x%02x\n", d->bNumFrameDescriptors);
sys/dev/usb/uvideo.c
3468
printf("bDefaultFrameIndex=0x%02x\n", d->u.h264.bDefaultFrameIndex);
sys/dev/usb/uvideo.c
3469
printf("bMaxCodecConfigDelay=0x%02x\n", d->u.h264.bMaxCodecConfigDelay);
sys/dev/usb/uvideo.c
3470
printf("bmSupportedSliceModes=0x%02x\n", d->u.h264.bmSupportedSliceModes);
sys/dev/usb/uvideo.c
3472
d->u.h264.bmSupportedSyncFrameTypes);
sys/dev/usb/uvideo.c
3474
d->u.h264.bmSupportedRateControlModes);
sys/dev/usb/uvideo.c
3476
UGETW(d->u.h264.wMaxMBperSecOneResolutionNoScalability));
sys/dev/usb/uvideo.c
3478
UGETW(d->u.h264.wMaxMBperSecTwoResolutionsNoScalability));
sys/dev/usb/uvideo.c
3480
UGETW(d->u.h264.wMaxMBperSecThreeResolutionsNoScalability));
sys/dev/usb/uvideo.c
3482
UGETW(d->u.h264.wMaxMBperSecFourResolutionsNoScalability));
sys/dev/usb/uvideo.c
3484
UGETW(d->u.h264.wMaxMBperSecOneResolutionTemporalScalability));
sys/dev/usb/uvideo.c
3486
UGETW(d->u.h264.wMaxMBperSecTwoResolutionsTemporalScalablility));
sys/dev/usb/uvideo.c
3488
UGETW(d->u.h264.wMaxMBperSecThreeResolutionsTemporalScalability));
sys/dev/usb/uvideo.c
3490
UGETW(d->u.h264.wMaxMBperSecFourResolutionsTemporalScalability));
sys/dev/usb/uvideo.c
3492
UGETW(d->u.h264.wMaxMBperSecOneResolutionTemporalQualityScalability));
sys/dev/usb/uvideo.c
3494
UGETW(d->u.h264.wMaxMBperSecTwoResolutionsTemporalQualityScalability));
sys/dev/usb/uvideo.c
3496
UGETW(d->u.h264.wMaxMBperSecThreeResolutionsTemporalQualityScalablity));
sys/dev/usb/uvideo.c
3498
UGETW(d->u.h264.wMaxMBperSecFourResolutionsTemporalQualityScalability));
sys/dev/usb/uvideo.c
3500
UGETW(d->u.h264.wMaxMBperSecOneResolutionTemporalSpatialScalability));
sys/dev/usb/uvideo.c
3502
UGETW(d->u.h264.wMaxMBperSecTwoResolutionsTemporalSpatialScalability));
sys/dev/usb/uvideo.c
3504
UGETW(d->u.h264.wMaxMBperSecThreeResolutionsTemporalSpatialScalablity));
sys/dev/usb/uvideo.c
3506
UGETW(d->u.h264.wMaxMBperSecFourResolutionsTemporalSpatialScalability));
sys/dev/usb/uvideo.c
3508
UGETW(d->u.h264.wMaxMBperSecOneResolutionFullScalability));
sys/dev/usb/uvideo.c
3510
UGETW(d->u.h264.wMaxMBperSecTwoResolutionsFullScalability));
sys/dev/usb/uvideo.c
3512
UGETW(d->u.h264.wMaxMBperSecThreeResolutionsFullScalability));
sys/dev/usb/uvideo.c
3514
UGETW(d->u.h264.wMaxMBperSecFourResolutionsFullScalability));
sys/dev/usb/uvideo.c
3521
struct usb_video_frame_desc *d;
sys/dev/usb/uvideo.c
3525
d = (struct usb_video_frame_desc *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
3527
printf("bLength=%d\n", d->bLength);
sys/dev/usb/uvideo.c
3528
printf("bDescriptorType=0x%02x\n", d->bDescriptorType);
sys/dev/usb/uvideo.c
3529
printf("bDescriptorSubtype=0x%02x\n", d->bDescriptorSubtype);
sys/dev/usb/uvideo.c
3530
printf("bFrameIndex=0x%02x\n", d->bFrameIndex);
sys/dev/usb/uvideo.c
3531
printf("wWidth=%d\n", UGETW(d->u.h264.wWidth));
sys/dev/usb/uvideo.c
3532
printf("wHeight=%d\n", UGETW(d->u.h264.wHeight));
sys/dev/usb/uvideo.c
3533
printf("wSARwidth=%d\n", UGETW(d->u.h264.wSARwidth));
sys/dev/usb/uvideo.c
3534
printf("wSARheight=%d\n", UGETW(d->u.h264.wSARheight));
sys/dev/usb/uvideo.c
3535
printf("wProfile=0x%04x\n", UGETW(d->u.h264.wProfile));
sys/dev/usb/uvideo.c
3536
printf("bLevelIDC=0x%02x\n", d->u.h264.bLevelIDC);
sys/dev/usb/uvideo.c
3538
UGETW(d->u.h264.wConstrainedToolset));
sys/dev/usb/uvideo.c
3540
UGETDW(d->u.h264.bmSupportedUsages));
sys/dev/usb/uvideo.c
3542
UGETW(d->u.h264.bmCapabilities));
sys/dev/usb/uvideo.c
3544
UGETDW(d->u.h264.bmSVCCapabilities));
sys/dev/usb/uvideo.c
3546
UGETDW(d->u.h264.bmMVCCapabilities));
sys/dev/usb/uvideo.c
3547
printf("dwMinBitRate=%d\n", UGETDW(d->u.h264.dwMinBitRate));
sys/dev/usb/uvideo.c
3548
printf("dwMaxBitRate=%d\n", UGETDW(d->u.h264.dwMaxBitRate));
sys/dev/usb/uvideo.c
3550
UGETDW(d->u.h264.dwDefaultFrameInterval));
sys/dev/usb/uvideo.c
3552
d->u.h264.bNumFrameIntervals);
sys/dev/usb/uvideo.c
3554
p = (uint8_t *)d + UVIDEO_FRAME_MIN_LEN(d);
sys/dev/usb/uvideo.c
3556
length = d->bLength - UVIDEO_FRAME_MIN_LEN(d);
sys/dev/usb/uvideo.c
3557
for (i = 0; i < d->u.h264.bNumFrameIntervals; i++) {
sys/dev/usb/uvideo.c
3572
struct usb_video_vc_processing_desc *d;
sys/dev/usb/uvideo.c
3575
d = (void *)desc;
sys/dev/usb/uvideo.c
3577
printf("bLength=%d\n", d->bLength);
sys/dev/usb/uvideo.c
3578
printf("bDescriptorType=0x%02x\n", d->bDescriptorType);
sys/dev/usb/uvideo.c
3579
printf("bDescriptorSubtype=0x%02x\n", d->bDescriptorSubtype);
sys/dev/usb/uvideo.c
3580
printf("bUnitID=0x%02x\n", d->bUnitID);
sys/dev/usb/uvideo.c
3581
printf("bSourceID=0x%02x\n", d->bSourceID);
sys/dev/usb/uvideo.c
3582
printf("wMaxMultiplier=%d\n", UGETW(d->wMaxMultiplier));
sys/dev/usb/uvideo.c
3583
printf("bControlSize=%d\n", d->bControlSize);
sys/dev/usb/uvideo.c
3585
uvideo_hexdump(d->bmControls, d->bControlSize, 1);
sys/dev/usb/uvideo.c
3586
printf("iProcessing=0x%02x\n", d->bmControls[d->bControlSize]);
sys/dev/usb/uvideo.c
3587
printf("bmVideoStandards=0x%02x\n", d->bmControls[d->bControlSize + 1]);
sys/dev/usb/uvideo.c
3594
struct usb_video_vc_extension_desc *d;
sys/dev/usb/uvideo.c
3596
d = (struct usb_video_vc_extension_desc *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
3598
printf("bLength=%d\n", d->bLength);
sys/dev/usb/uvideo.c
3599
printf("bDescriptorType=0x%02x\n", d->bDescriptorType);
sys/dev/usb/uvideo.c
3600
printf("bDescriptorSubtype=0x%02x\n", d->bDescriptorSubtype);
sys/dev/usb/uvideo.c
3601
printf("bUnitID=0x%02x\n", d->bUnitID);
sys/dev/usb/uvideo.c
3603
uvideo_hexdump(d->guidExtensionCode, sizeof(d->guidExtensionCode), 1);
sys/dev/usb/uvideo.c
3604
printf("bNumControls=0x%02x\n", d->bNumControls);
sys/dev/usb/uvideo.c
3605
printf("bNrInPins=0x%02x\n", d->bNrInPins);
sys/dev/usb/uvideo.c
811
struct usb_video_header_desc *d;
sys/dev/usb/uvideo.c
813
d = (struct usb_video_header_desc *)(uint8_t *)desc;
sys/dev/usb/uvideo.c
815
if (d->bInCollection == 0) {
sys/dev/usb/uvideo.c
821
sc->sc_desc_vc_header.fix = d;
sys/dev/usb/uvideo.c
822
sc->sc_desc_vc_header.baInterfaceNr = (uByte *)(d + 1);
sys/dev/usb/uvideo.c
823
if (UGETW(d->bcdUVC) < 0x0110)
sys/dev/usb/uvideo.c
825
else if (UGETW(d->bcdUVC) < 0x0150)
sys/dev/usb/uvideo.c
837
struct usb_video_vc_processing_desc *d;
sys/dev/usb/uvideo.c
840
d = (void *)desc;
sys/dev/usb/uvideo.c
847
sc->sc_desc_vc_pu[sc->sc_desc_vc_pu_num] = d;
sys/dev/videomode/edid.c
140
edid_is_valid(uint8_t *d)
sys/dev/videomode/edid.c
145
if (memcmp(d, sig, 8) != 0)
sys/dev/videomode/edid.c
149
sum += d[i];
sys/dev/wscons/wsdisplay.c
1154
if (d != WSDISPLAYIO_MODE_EMUL &&
sys/dev/wscons/wsdisplay.c
1155
d != WSDISPLAYIO_MODE_MAPPED &&
sys/dev/wscons/wsdisplay.c
1156
d != WSDISPLAYIO_MODE_DUMBFB)
sys/dev/wscons/wsdisplay.c
1160
if (d == WSDISPLAYIO_MODE_MAPPED ||
sys/dev/wscons/wsdisplay.c
1161
d == WSDISPLAYIO_MODE_DUMBFB) {
sys/dev/wscons/wsdisplay.c
1163
((d == WSDISPLAYIO_MODE_DUMBFB) ? SCR_DUMBFB : 0);
sys/dev/wscons/wsdisplay.c
1184
d->data = NULL;
sys/dev/wscons/wsdisplay.c
1186
scr->scr_dconf->emulcookie, d);
sys/dev/wscons/wsdisplay.c
1210
d->on = sc->sc_burninintvl;
sys/dev/wscons/wsdisplay.c
1211
d->off = sc->sc_burnoutintvl;
sys/dev/wscons/wsdisplay.c
1212
d->flags = sc->sc_burnflags;
sys/dev/wscons/wsdisplay.c
1219
if (d->flags & ~(WSDISPLAY_BURN_VBLANK | WSDISPLAY_BURN_KBD |
sys/dev/wscons/wsdisplay.c
1224
sc->sc_burnflags = d->flags;
sys/dev/wscons/wsdisplay.c
1226
if (d->off==0 || (sc->sc_burnflags & (WSDISPLAY_BURN_OUTPUT |
sys/dev/wscons/wsdisplay.c
1236
if (d->on) {
sys/dev/wscons/wsdisplay.c
1237
sc->sc_burninintvl = d->on;
sys/dev/wscons/wsdisplay.c
1245
sc->sc_burnoutintvl = d->off;
sys/dev/wscons/wsdisplay.c
1265
if (d->idx < 0 || d->idx >= sc->sc_scrdata->nscreens)
sys/dev/wscons/wsdisplay.c
1268
d->nidx = sc->sc_scrdata->nscreens;
sys/dev/wscons/wsdisplay.c
1269
strlcpy(d->name, sc->sc_scrdata->screens[d->idx]->name,
sys/dev/wscons/wsdisplay.c
1271
d->ncols = sc->sc_scrdata->screens[d->idx]->ncols;
sys/dev/wscons/wsdisplay.c
1272
d->nrows = sc->sc_scrdata->screens[d->idx]->nrows;
sys/dev/wscons/wsdisplay.c
1273
d->fontwidth = sc->sc_scrdata->screens[d->idx]->fontwidth;
sys/dev/wscons/wsdisplay.c
1274
d->fontheight = sc->sc_scrdata->screens[d->idx]->fontheight;
sys/dev/wscons/wsdisplay.c
1279
if (wsemul_getname(d->idx) == NULL)
sys/dev/wscons/wsdisplay.c
1281
strlcpy(d->name, wsemul_getname(d->idx), WSEMUL_NAME_SIZE);
sys/dev/wscons/wsdisplay.c
1333
if ((error = wsdisplay_addscreen(sc, d->idx,
sys/dev/wscons/wsdisplay.c
1334
d->screentype, d->emul)) == 0)
sys/dev/wscons/wsdisplay.c
1335
wsdisplay_addscreen_print(sc, d->idx, 0);
sys/dev/wscons/wsdisplay.c
1340
return (wsdisplay_delscreen(sc, d->idx, d->flags));
sys/dev/wscons/wsdisplay.c
1351
if (d->fontheight > 64 || d->stride > 8) /* 64x64 pixels */
sys/dev/wscons/wsdisplay.c
1353
if (d->numchars > 65536) /* unicode plane */
sys/dev/wscons/wsdisplay.c
1360
if (d->firstchar > '?' || d->firstchar + d->numchars <= '?')
sys/dev/wscons/wsdisplay.c
1362
fontsz = d->fontheight * d->stride * d->numchars;
sys/dev/wscons/wsdisplay.c
1367
error = copyin(d->data, buf, fontsz);
sys/dev/wscons/wsdisplay.c
1372
d->data = buf;
sys/dev/wscons/wsdisplay.c
1374
(*sc->sc_accessops->load_font)(sc->sc_accesscookie, 0, d);
sys/dev/wscons/wsdisplay.c
1383
(*sc->sc_accessops->list_font)(sc->sc_accesscookie, d);
sys/dev/wscons/wsdisplay.c
1393
if (d->idx == -1 && d->type == WSMUX_KBD)
sys/dev/wscons/wsdisplay.c
1394
d->idx = wskbd_pickfree();
sys/dev/wscons/wsdisplay_compat_usl.c
382
switch (d) {
sys/dev/wscons/wsdisplay_compat_usl.c
385
return (usl_detachack(sd, (d == VT_TRUE)));
sys/dev/wscons/wsdisplay_compat_usl.c
421
switch (d) {
sys/dev/wscons/wsdisplay_compat_usl.c
439
if (d) {
sys/dev/wscons/wsdisplay_compat_usl.c
441
if (d >> 16) {
sys/dev/wscons/wsdisplay_compat_usl.c
443
bd.period = d >> 16; /* ms */
sys/dev/wscons/wsdisplay_compat_usl.c
446
if (d & 0xffff) {
sys/dev/wscons/wsdisplay_compat_usl.c
448
bd.pitch = PCVT_SYSBEEPF/(d & 0xffff); /* Hz */
sys/dev/wscons/wsdisplay_compat_usl.c
461
if (d & LED_CAP)
sys/dev/wscons/wsdisplay_compat_usl.c
463
if (d & LED_NUM)
sys/dev/wscons/wsdisplay_compat_usl.c
465
if (d & LED_SCR)
sys/dev/wscons/wsdisplay_compat_usl.c
505
d = 0;
sys/dev/wscons/wsdisplay_compat_usl.c
507
d |= LED_CAP;
sys/dev/wscons/wsdisplay_compat_usl.c
509
d |= LED_NUM;
sys/dev/wscons/wsdisplay_compat_usl.c
511
d |= LED_SCR;
sys/dev/wscons/wsmouse.c
1254
int i, j, k, d, e, row, col, delta;
sys/dev/wscons/wsmouse.c
1269
d = *p - red[i];
sys/dev/wscons/wsmouse.c
1270
if (d < delta || (d == delta && r2c[i] < 0)) {
sys/dev/wscons/wsmouse.c
1271
delta = d;
sys/dev/wscons/wsmouse.c
1288
d = p[mc[i]] - cd[mc[i]];
sys/dev/wscons/wsmouse.c
1290
if (e < d) {
sys/dev/wscons/wsmouse.c
1291
d = e;
sys/dev/wscons/wsmouse.c
1294
d -= red[i];
sys/dev/wscons/wsmouse.c
1295
if (d < delta || (d == delta
sys/dev/wscons/wsmouse.c
1297
delta = d;
sys/dev/wscons/wsmux.c
437
d->type, d->idx));
sys/dev/wscons/wsmux.c
438
if (d->idx < 0)
sys/dev/wscons/wsmux.c
440
switch (d->type) {
sys/dev/wscons/wsmux.c
443
return (wsmouse_add_mux(d->idx, sc));
sys/dev/wscons/wsmux.c
447
return (wskbd_add_mux(d->idx, sc));
sys/dev/wscons/wsmux.c
450
return (wsmux_add_mux(d->idx, sc));
sys/dev/wscons/wsmux.c
456
d->type, d->idx));
sys/dev/wscons/wsmux.c
460
if (me->me_ops->type == d->type &&
sys/dev/wscons/wsmux.c
461
me->me_dv.dv_unit == d->idx) {
sys/dev/wscons/wstpad.c
278
#define NORTH(d) ((d) == 0 || (d) == 11)
sys/dev/wscons/wstpad.c
279
#define SOUTH(d) ((d) == 5 || (d) == 6)
sys/dev/wscons/wstpad.c
280
#define EAST(d) ((d) == 2 || (d) == 3)
sys/dev/wscons/wstpad.c
281
#define WEST(d) ((d) == 8 || (d) == 9)
sys/dev/x86emu/x86emu.c
100
static void cmp_word_no_return (struct x86emu *, uint16_t d, uint16_t s);
sys/dev/x86emu/x86emu.c
101
static void cmp_long_no_return (struct x86emu *, uint32_t d, uint32_t s);
sys/dev/x86emu/x86emu.c
102
static uint8_t daa_byte (struct x86emu *, uint8_t d);
sys/dev/x86emu/x86emu.c
103
static uint8_t das_byte (struct x86emu *, uint8_t d);
sys/dev/x86emu/x86emu.c
104
static uint8_t dec_byte (struct x86emu *, uint8_t d);
sys/dev/x86emu/x86emu.c
105
static uint16_t dec_word (struct x86emu *, uint16_t d);
sys/dev/x86emu/x86emu.c
106
static uint32_t dec_long (struct x86emu *, uint32_t d);
sys/dev/x86emu/x86emu.c
107
static uint8_t inc_byte (struct x86emu *, uint8_t d);
sys/dev/x86emu/x86emu.c
108
static uint16_t inc_word (struct x86emu *, uint16_t d);
sys/dev/x86emu/x86emu.c
109
static uint32_t inc_long (struct x86emu *, uint32_t d);
sys/dev/x86emu/x86emu.c
110
static uint8_t or_byte (struct x86emu *, uint8_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
111
static uint16_t or_word (struct x86emu *, uint16_t d, uint16_t s);
sys/dev/x86emu/x86emu.c
112
static uint32_t or_long (struct x86emu *, uint32_t d, uint32_t s);
sys/dev/x86emu/x86emu.c
116
static uint8_t rcl_byte (struct x86emu *, uint8_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
117
static uint16_t rcl_word (struct x86emu *, uint16_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
118
static uint32_t rcl_long (struct x86emu *, uint32_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
119
static uint8_t rcr_byte (struct x86emu *, uint8_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
120
static uint16_t rcr_word (struct x86emu *, uint16_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
121
static uint32_t rcr_long (struct x86emu *, uint32_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
122
static uint8_t rol_byte (struct x86emu *, uint8_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
123
static uint16_t rol_word (struct x86emu *, uint16_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
124
static uint32_t rol_long (struct x86emu *, uint32_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
125
static uint8_t ror_byte (struct x86emu *, uint8_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
126
static uint16_t ror_word (struct x86emu *, uint16_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
127
static uint32_t ror_long (struct x86emu *, uint32_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
128
static uint8_t shl_byte (struct x86emu *, uint8_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
129
static uint16_t shl_word (struct x86emu *, uint16_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
130
static uint32_t shl_long (struct x86emu *, uint32_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
131
static uint8_t shr_byte (struct x86emu *, uint8_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
132
static uint16_t shr_word (struct x86emu *, uint16_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
133
static uint32_t shr_long (struct x86emu *, uint32_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
134
static uint8_t sar_byte (struct x86emu *, uint8_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
135
static uint16_t sar_word (struct x86emu *, uint16_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
136
static uint32_t sar_long (struct x86emu *, uint32_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
137
static uint16_t shld_word (struct x86emu *, uint16_t d, uint16_t fill, uint8_t s);
sys/dev/x86emu/x86emu.c
138
static uint32_t shld_long (struct x86emu *, uint32_t d, uint32_t fill, uint8_t s);
sys/dev/x86emu/x86emu.c
139
static uint16_t shrd_word (struct x86emu *, uint16_t d, uint16_t fill, uint8_t s);
sys/dev/x86emu/x86emu.c
140
static uint32_t shrd_long (struct x86emu *, uint32_t d, uint32_t fill, uint8_t s);
sys/dev/x86emu/x86emu.c
141
static uint8_t sbb_byte (struct x86emu *, uint8_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
142
static uint16_t sbb_word (struct x86emu *, uint16_t d, uint16_t s);
sys/dev/x86emu/x86emu.c
143
static uint32_t sbb_long (struct x86emu *, uint32_t d, uint32_t s);
sys/dev/x86emu/x86emu.c
144
static uint8_t sub_byte (struct x86emu *, uint8_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
145
static uint16_t sub_word (struct x86emu *, uint16_t d, uint16_t s);
sys/dev/x86emu/x86emu.c
146
static uint32_t sub_long (struct x86emu *, uint32_t d, uint32_t s);
sys/dev/x86emu/x86emu.c
147
static void test_byte (struct x86emu *, uint8_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
148
static void test_word (struct x86emu *, uint16_t d, uint16_t s);
sys/dev/x86emu/x86emu.c
149
static void test_long (struct x86emu *, uint32_t d, uint32_t s);
sys/dev/x86emu/x86emu.c
150
static uint8_t xor_byte (struct x86emu *, uint8_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
151
static uint16_t xor_word (struct x86emu *, uint16_t d, uint16_t s);
sys/dev/x86emu/x86emu.c
152
static uint32_t xor_long (struct x86emu *, uint32_t d, uint32_t s);
sys/dev/x86emu/x86emu.c
1754
uint8_t(*const opc80_byte_operation[]) (struct x86emu *, uint8_t d, uint8_t s) =
sys/dev/x86emu/x86emu.c
1790
(struct x86emu *, uint16_t d, uint16_t s) =
sys/dev/x86emu/x86emu.c
1804
(struct x86emu *, uint32_t d, uint32_t s) =
sys/dev/x86emu/x86emu.c
1867
(struct x86emu *, uint8_t s, uint8_t d) =
sys/dev/x86emu/x86emu.c
1904
(struct x86emu *, uint16_t s, uint16_t d) =
sys/dev/x86emu/x86emu.c
1918
(struct x86emu *, uint32_t s, uint32_t d) =
sys/dev/x86emu/x86emu.c
3139
(struct x86emu *, uint8_t d, uint8_t s) =
sys/dev/x86emu/x86emu.c
3174
(struct x86emu *, uint16_t s, uint8_t d) =
sys/dev/x86emu/x86emu.c
3188
(struct x86emu *, uint32_t s, uint8_t d) =
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
5261
"=c" (*c), "=d" (*d)
sys/dev/x86emu/x86emu.c
5985
aaa_word(struct x86emu *emu, uint16_t d)
sys/dev/x86emu/x86emu.c
5988
if ((d & 0xf) > 0x9 || ACCESS_FLAG(F_AF)) {
sys/dev/x86emu/x86emu.c
5989
d += 0x6;
sys/dev/x86emu/x86emu.c
5990
d += 0x100;
sys/dev/x86emu/x86emu.c
5997
res = (uint16_t) (d & 0xFF0F);
sys/dev/x86emu/x86emu.c
6009
aas_word(struct x86emu *emu, uint16_t d)
sys/dev/x86emu/x86emu.c
6012
if ((d & 0xf) > 0x9 || ACCESS_FLAG(F_AF)) {
sys/dev/x86emu/x86emu.c
6013
d -= 0x6;
sys/dev/x86emu/x86emu.c
6014
d -= 0x100;
sys/dev/x86emu/x86emu.c
6021
res = (uint16_t) (d & 0xFF0F);
sys/dev/x86emu/x86emu.c
6033
aad_word(struct x86emu *emu, uint16_t d)
sys/dev/x86emu/x86emu.c
6038
hb = (uint8_t) ((d >> 8) & 0xff);
sys/dev/x86emu/x86emu.c
6039
lb = (uint8_t) ((d & 0xff));
sys/dev/x86emu/x86emu.c
6056
aam_word(struct x86emu *emu, uint8_t d)
sys/dev/x86emu/x86emu.c
6060
h = (uint16_t) (d / 10);
sys/dev/x86emu/x86emu.c
6061
l = (uint16_t) (d % 10);
sys/dev/x86emu/x86emu.c
6078
adc_byte(struct x86emu *emu, uint8_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
6084
res = 1 + d + s;
sys/dev/x86emu/x86emu.c
6086
res = d + s;
sys/dev/x86emu/x86emu.c
6094
cc = (s & d) | ((~res) & (s | d));
sys/dev/x86emu/x86emu.c
6105
adc_word(struct x86emu *emu, uint16_t d, uint16_t s)
sys/dev/x86emu/x86emu.c
6111
res = 1 + d + s;
sys/dev/x86emu/x86emu.c
6113
res = d + s;
sys/dev/x86emu/x86emu.c
6121
cc = (s & d) | ((~res) & (s | d));
sys/dev/x86emu/x86emu.c
6132
adc_long(struct x86emu *emu, uint32_t d, uint32_t s)
sys/dev/x86emu/x86emu.c
6140
lo = 1 + (d & 0xFFFF) + (s & 0xFFFF);
sys/dev/x86emu/x86emu.c
6141
res = 1 + d + s;
sys/dev/x86emu/x86emu.c
6143
lo = (d & 0xFFFF) + (s & 0xFFFF);
sys/dev/x86emu/x86emu.c
6144
res = d + s;
sys/dev/x86emu/x86emu.c
6146
hi = (lo >> 16) + (d >> 16) + (s >> 16);
sys/dev/x86emu/x86emu.c
6154
cc = (s & d) | ((~res) & (s | d));
sys/dev/x86emu/x86emu.c
6165
add_byte(struct x86emu *emu, uint8_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
6170
res = d + s;
sys/dev/x86emu/x86emu.c
6177
cc = (s & d) | ((~res) & (s | d));
sys/dev/x86emu/x86emu.c
6188
add_word(struct x86emu *emu, uint16_t d, uint16_t s)
sys/dev/x86emu/x86emu.c
6193
res = d + s;
sys/dev/x86emu/x86emu.c
6200
cc = (s & d) | ((~res) & (s | d));
sys/dev/x86emu/x86emu.c
6211
add_long(struct x86emu *emu, uint32_t d, uint32_t s)
sys/dev/x86emu/x86emu.c
6218
lo = (d & 0xFFFF) + (s & 0xFFFF);
sys/dev/x86emu/x86emu.c
6219
res = d + s;
sys/dev/x86emu/x86emu.c
6220
hi = (lo >> 16) + (d >> 16) + (s >> 16);
sys/dev/x86emu/x86emu.c
6228
cc = (s & d) | ((~res) & (s | d));
sys/dev/x86emu/x86emu.c
6240
and_byte(struct x86emu *emu, uint8_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
6244
res = d & s;
sys/dev/x86emu/x86emu.c
6261
and_word(struct x86emu *emu, uint16_t d, uint16_t s)
sys/dev/x86emu/x86emu.c
6265
res = d & s;
sys/dev/x86emu/x86emu.c
6282
and_long(struct x86emu *emu, uint32_t d, uint32_t s)
sys/dev/x86emu/x86emu.c
6286
res = d & s;
sys/dev/x86emu/x86emu.c
6303
cmp_byte(struct x86emu *emu, uint8_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
6308
res = d - s;
sys/dev/x86emu/x86emu.c
6315
bc = (res & (~d | s)) | (~d & s);
sys/dev/x86emu/x86emu.c
6319
return d;
sys/dev/x86emu/x86emu.c
6323
cmp_byte_no_return(struct x86emu *emu, uint8_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
6325
cmp_byte(emu, d, s);
sys/dev/x86emu/x86emu.c
6333
cmp_word(struct x86emu *emu, uint16_t d, uint16_t s)
sys/dev/x86emu/x86emu.c
6338
res = d - s;
sys/dev/x86emu/x86emu.c
6344
bc = (res & (~d | s)) | (~d & s);
sys/dev/x86emu/x86emu.c
6348
return d;
sys/dev/x86emu/x86emu.c
6352
cmp_word_no_return(struct x86emu *emu, uint16_t d, uint16_t s)
sys/dev/x86emu/x86emu.c
6354
cmp_word(emu, d, s);
sys/dev/x86emu/x86emu.c
6362
cmp_long(struct x86emu *emu, uint32_t d, uint32_t s)
sys/dev/x86emu/x86emu.c
6367
res = d - s;
sys/dev/x86emu/x86emu.c
6373
bc = (res & (~d | s)) | (~d & s);
sys/dev/x86emu/x86emu.c
6377
return d;
sys/dev/x86emu/x86emu.c
6381
cmp_long_no_return(struct x86emu *emu, uint32_t d, uint32_t s)
sys/dev/x86emu/x86emu.c
6383
cmp_long(emu, d, s);
sys/dev/x86emu/x86emu.c
6391
daa_byte(struct x86emu *emu, uint8_t d)
sys/dev/x86emu/x86emu.c
6393
uint32_t res = d;
sys/dev/x86emu/x86emu.c
6394
if ((d & 0xf) > 9 || ACCESS_FLAG(F_AF)) {
sys/dev/x86emu/x86emu.c
6413
das_byte(struct x86emu *emu, uint8_t d)
sys/dev/x86emu/x86emu.c
6415
if ((d & 0xf) > 9 || ACCESS_FLAG(F_AF)) {
sys/dev/x86emu/x86emu.c
6416
d -= 6;
sys/dev/x86emu/x86emu.c
6419
if (d > 0x9F || ACCESS_FLAG(F_CF)) {
sys/dev/x86emu/x86emu.c
6420
d -= 0x60;
sys/dev/x86emu/x86emu.c
6423
CONDITIONAL_SET_FLAG(d & 0x80, F_SF);
sys/dev/x86emu/x86emu.c
6424
CONDITIONAL_SET_FLAG(d == 0, F_ZF);
sys/dev/x86emu/x86emu.c
6425
CONDITIONAL_SET_FLAG(PARITY(d & 0xff), F_PF);
sys/dev/x86emu/x86emu.c
6426
return d;
sys/dev/x86emu/x86emu.c
6434
dec_byte(struct x86emu *emu, uint8_t d)
sys/dev/x86emu/x86emu.c
6439
res = d - 1;
sys/dev/x86emu/x86emu.c
6446
bc = (res & (~d | 1)) | (~d & 1);
sys/dev/x86emu/x86emu.c
6458
dec_word(struct x86emu *emu, uint16_t d)
sys/dev/x86emu/x86emu.c
6463
res = d - 1;
sys/dev/x86emu/x86emu.c
6470
bc = (res & (~d | 1)) | (~d & 1);
sys/dev/x86emu/x86emu.c
6482
dec_long(struct x86emu *emu, uint32_t d)
sys/dev/x86emu/x86emu.c
6487
res = d - 1;
sys/dev/x86emu/x86emu.c
6494
bc = (res & (~d | 1)) | (~d & 1);
sys/dev/x86emu/x86emu.c
6506
inc_byte(struct x86emu *emu, uint8_t d)
sys/dev/x86emu/x86emu.c
6511
res = d + 1;
sys/dev/x86emu/x86emu.c
6517
cc = ((1 & d) | (~res)) & (1 | d);
sys/dev/x86emu/x86emu.c
6528
inc_word(struct x86emu *emu, uint16_t d)
sys/dev/x86emu/x86emu.c
6533
res = d + 1;
sys/dev/x86emu/x86emu.c
6539
cc = (1 & d) | ((~res) & (1 | d));
sys/dev/x86emu/x86emu.c
6550
inc_long(struct x86emu *emu, uint32_t d)
sys/dev/x86emu/x86emu.c
6555
res = d + 1;
sys/dev/x86emu/x86emu.c
6561
cc = (1 & d) | ((~res) & (1 | d));
sys/dev/x86emu/x86emu.c
6572
or_byte(struct x86emu *emu, uint8_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
6576
res = d | s;
sys/dev/x86emu/x86emu.c
6591
or_word(struct x86emu *emu, uint16_t d, uint16_t s)
sys/dev/x86emu/x86emu.c
6595
res = d | s;
sys/dev/x86emu/x86emu.c
6611
or_long(struct x86emu *emu, uint32_t d, uint32_t s)
sys/dev/x86emu/x86emu.c
6615
res = d | s;
sys/dev/x86emu/x86emu.c
6712
rcl_byte(struct x86emu *emu, uint8_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
6737
res = d;
sys/dev/x86emu/x86emu.c
6741
cf = (d >> (8 - cnt)) & 0x1;
sys/dev/x86emu/x86emu.c
6748
res = (d << cnt) & 0xff;
sys/dev/x86emu/x86emu.c
6758
res |= (d >> (9 - cnt)) & mask;
sys/dev/x86emu/x86emu.c
6783
rcl_word(struct x86emu *emu, uint16_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
6787
res = d;
sys/dev/x86emu/x86emu.c
6789
cf = (d >> (16 - cnt)) & 0x1;
sys/dev/x86emu/x86emu.c
6790
res = (d << cnt) & 0xffff;
sys/dev/x86emu/x86emu.c
6792
res |= (d >> (17 - cnt)) & mask;
sys/dev/x86emu/x86emu.c
6808
rcl_long(struct x86emu *emu, uint32_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
6812
res = d;
sys/dev/x86emu/x86emu.c
6814
cf = (d >> (32 - cnt)) & 0x1;
sys/dev/x86emu/x86emu.c
6815
res = (d << cnt) & 0xffffffff;
sys/dev/x86emu/x86emu.c
6817
res |= (d >> (33 - cnt)) & mask;
sys/dev/x86emu/x86emu.c
6833
rcr_byte(struct x86emu *emu, uint8_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
6857
res = d;
sys/dev/x86emu/x86emu.c
6862
cf = d & 0x1;
sys/dev/x86emu/x86emu.c
6870
cf = (d >> (cnt - 1)) & 0x1;
sys/dev/x86emu/x86emu.c
6879
res = (d >> cnt) & mask;
sys/dev/x86emu/x86emu.c
6886
res |= (d << (9 - cnt));
sys/dev/x86emu/x86emu.c
6899
CONDITIONAL_SET_FLAG(XOR2(ocf + ((d >> 6) & 0x2)),
sys/dev/x86emu/x86emu.c
6911
rcr_word(struct x86emu *emu, uint16_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
6917
res = d;
sys/dev/x86emu/x86emu.c
6920
cf = d & 0x1;
sys/dev/x86emu/x86emu.c
6923
cf = (d >> (cnt - 1)) & 0x1;
sys/dev/x86emu/x86emu.c
6925
res = (d >> cnt) & mask;
sys/dev/x86emu/x86emu.c
6926
res |= (d << (17 - cnt));
sys/dev/x86emu/x86emu.c
6932
CONDITIONAL_SET_FLAG(XOR2(ocf + ((d >> 14) & 0x2)),
sys/dev/x86emu/x86emu.c
6944
rcr_long(struct x86emu *emu, uint32_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
6950
res = d;
sys/dev/x86emu/x86emu.c
6953
cf = d & 0x1;
sys/dev/x86emu/x86emu.c
6956
cf = (d >> (cnt - 1)) & 0x1;
sys/dev/x86emu/x86emu.c
6958
res = (d >> cnt) & mask;
sys/dev/x86emu/x86emu.c
6960
res |= (d << (33 - cnt));
sys/dev/x86emu/x86emu.c
6966
CONDITIONAL_SET_FLAG(XOR2(ocf + ((d >> 30) & 0x2)),
sys/dev/x86emu/x86emu.c
6978
rol_byte(struct x86emu *emu, uint8_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
6995
res = d;
sys/dev/x86emu/x86emu.c
6998
res = (d << cnt);
sys/dev/x86emu/x86emu.c
7002
res |= (d >> (8 - cnt)) & mask;
sys/dev/x86emu/x86emu.c
7025
rol_word(struct x86emu *emu, uint16_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
7029
res = d;
sys/dev/x86emu/x86emu.c
7031
res = (d << cnt);
sys/dev/x86emu/x86emu.c
7033
res |= (d >> (16 - cnt)) & mask;
sys/dev/x86emu/x86emu.c
7051
rol_long(struct x86emu *emu, uint32_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
7055
res = d;
sys/dev/x86emu/x86emu.c
7057
res = (d << cnt);
sys/dev/x86emu/x86emu.c
7059
res |= (d >> (32 - cnt)) & mask;
sys/dev/x86emu/x86emu.c
7077
ror_byte(struct x86emu *emu, uint8_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
7093
res = d;
sys/dev/x86emu/x86emu.c
7096
res = (d << (8 - cnt));
sys/dev/x86emu/x86emu.c
7100
res |= (d >> (cnt)) & mask;
sys/dev/x86emu/x86emu.c
7121
ror_word(struct x86emu *emu, uint16_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
7125
res = d;
sys/dev/x86emu/x86emu.c
7127
res = (d << (16 - cnt));
sys/dev/x86emu/x86emu.c
7129
res |= (d >> (cnt)) & mask;
sys/dev/x86emu/x86emu.c
7145
ror_long(struct x86emu *emu, uint32_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
7149
res = d;
sys/dev/x86emu/x86emu.c
7151
res = (d << (32 - cnt));
sys/dev/x86emu/x86emu.c
7153
res |= (d >> (cnt)) & mask;
sys/dev/x86emu/x86emu.c
7169
shl_byte(struct x86emu *emu, uint8_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
7178
res = d << cnt;
sys/dev/x86emu/x86emu.c
7179
cf = d & (1 << (8 - cnt));
sys/dev/x86emu/x86emu.c
7185
res = (uint8_t) d;
sys/dev/x86emu/x86emu.c
7200
CONDITIONAL_SET_FLAG((d << (s - 1)) & 0x80, F_CF);
sys/dev/x86emu/x86emu.c
7214
shl_word(struct x86emu *emu, uint16_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
7221
res = d << cnt;
sys/dev/x86emu/x86emu.c
7222
cf = d & (1 << (16 - cnt));
sys/dev/x86emu/x86emu.c
7228
res = (uint16_t) d;
sys/dev/x86emu/x86emu.c
7241
CONDITIONAL_SET_FLAG((d << (s - 1)) & 0x8000, F_CF);
sys/dev/x86emu/x86emu.c
7255
shl_long(struct x86emu *emu, uint32_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
7262
res = d << cnt;
sys/dev/x86emu/x86emu.c
7263
cf = d & (1 << (32 - cnt));
sys/dev/x86emu/x86emu.c
7269
res = d;
sys/dev/x86emu/x86emu.c
7279
CONDITIONAL_SET_FLAG((d << (s - 1)) & 0x80000000, F_CF);
sys/dev/x86emu/x86emu.c
7293
shr_byte(struct x86emu *emu, uint8_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
7300
cf = d & (1 << (cnt - 1));
sys/dev/x86emu/x86emu.c
7301
res = d >> cnt;
sys/dev/x86emu/x86emu.c
7307
res = (uint8_t) d;
sys/dev/x86emu/x86emu.c
7317
CONDITIONAL_SET_FLAG((d >> (s - 1)) & 0x1, F_CF);
sys/dev/x86emu/x86emu.c
7331
shr_word(struct x86emu *emu, uint16_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
7338
cf = d & (1 << (cnt - 1));
sys/dev/x86emu/x86emu.c
7339
res = d >> cnt;
sys/dev/x86emu/x86emu.c
7345
res = d;
sys/dev/x86emu/x86emu.c
7369
shr_long(struct x86emu *emu, uint32_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
7376
cf = d & (1 << (cnt - 1));
sys/dev/x86emu/x86emu.c
7377
res = d >> cnt;
sys/dev/x86emu/x86emu.c
7383
res = d;
sys/dev/x86emu/x86emu.c
7406
sar_byte(struct x86emu *emu, uint8_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
7410
res = d;
sys/dev/x86emu/x86emu.c
7411
sf = d & 0x80;
sys/dev/x86emu/x86emu.c
7415
cf = d & (1 << (cnt - 1));
sys/dev/x86emu/x86emu.c
7416
res = (d >> cnt) & mask;
sys/dev/x86emu/x86emu.c
7447
sar_word(struct x86emu *emu, uint16_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
7451
sf = d & 0x8000;
sys/dev/x86emu/x86emu.c
7453
res = d;
sys/dev/x86emu/x86emu.c
7456
cf = d & (1 << (cnt - 1));
sys/dev/x86emu/x86emu.c
7457
res = (d >> cnt) & mask;
sys/dev/x86emu/x86emu.c
7488
sar_long(struct x86emu *emu, uint32_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
7492
sf = d & 0x80000000;
sys/dev/x86emu/x86emu.c
7494
res = d;
sys/dev/x86emu/x86emu.c
7497
cf = d & (1 << (cnt - 1));
sys/dev/x86emu/x86emu.c
7498
res = (d >> cnt) & mask;
sys/dev/x86emu/x86emu.c
7529
shld_word(struct x86emu *emu, uint16_t d, uint16_t fill, uint8_t s)
sys/dev/x86emu/x86emu.c
7536
res = (d << cnt) | (fill >> (16 - cnt));
sys/dev/x86emu/x86emu.c
7537
cf = d & (1 << (16 - cnt));
sys/dev/x86emu/x86emu.c
7543
res = d;
sys/dev/x86emu/x86emu.c
7553
CONDITIONAL_SET_FLAG((d << (s - 1)) & 0x8000, F_CF);
sys/dev/x86emu/x86emu.c
7567
shld_long(struct x86emu *emu, uint32_t d, uint32_t fill, uint8_t s)
sys/dev/x86emu/x86emu.c
7574
res = (d << cnt) | (fill >> (32 - cnt));
sys/dev/x86emu/x86emu.c
7575
cf = d & (1 << (32 - cnt));
sys/dev/x86emu/x86emu.c
7581
res = d;
sys/dev/x86emu/x86emu.c
7591
CONDITIONAL_SET_FLAG((d << (s - 1)) & 0x80000000, F_CF);
sys/dev/x86emu/x86emu.c
7605
shrd_word(struct x86emu *emu, uint16_t d, uint16_t fill, uint8_t s)
sys/dev/x86emu/x86emu.c
7612
cf = d & (1 << (cnt - 1));
sys/dev/x86emu/x86emu.c
7613
res = (d >> cnt) | (fill << (16 - cnt));
sys/dev/x86emu/x86emu.c
7619
res = d;
sys/dev/x86emu/x86emu.c
7643
shrd_long(struct x86emu *emu, uint32_t d, uint32_t fill, uint8_t s)
sys/dev/x86emu/x86emu.c
7650
cf = d & (1 << (cnt - 1));
sys/dev/x86emu/x86emu.c
7651
res = (d >> cnt) | (fill << (32 - cnt));
sys/dev/x86emu/x86emu.c
7657
res = d;
sys/dev/x86emu/x86emu.c
7680
sbb_byte(struct x86emu *emu, uint8_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
7686
res = d - s - 1;
sys/dev/x86emu/x86emu.c
7688
res = d - s;
sys/dev/x86emu/x86emu.c
7694
bc = (res & (~d | s)) | (~d & s);
sys/dev/x86emu/x86emu.c
7706
sbb_word(struct x86emu *emu, uint16_t d, uint16_t s)
sys/dev/x86emu/x86emu.c
7712
res = d - s - 1;
sys/dev/x86emu/x86emu.c
7714
res = d - s;
sys/dev/x86emu/x86emu.c
7720
bc = (res & (~d | s)) | (~d & s);
sys/dev/x86emu/x86emu.c
7732
sbb_long(struct x86emu *emu, uint32_t d, uint32_t s)
sys/dev/x86emu/x86emu.c
7738
res = d - s - 1;
sys/dev/x86emu/x86emu.c
7740
res = d - s;
sys/dev/x86emu/x86emu.c
7746
bc = (res & (~d | s)) | (~d & s);
sys/dev/x86emu/x86emu.c
7758
sub_byte(struct x86emu *emu, uint8_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
7763
res = d - s;
sys/dev/x86emu/x86emu.c
7769
bc = (res & (~d | s)) | (~d & s);
sys/dev/x86emu/x86emu.c
7781
sub_word(struct x86emu *emu, uint16_t d, uint16_t s)
sys/dev/x86emu/x86emu.c
7786
res = d - s;
sys/dev/x86emu/x86emu.c
7792
bc = (res & (~d | s)) | (~d & s);
sys/dev/x86emu/x86emu.c
7804
sub_long(struct x86emu *emu, uint32_t d, uint32_t s)
sys/dev/x86emu/x86emu.c
7809
res = d - s;
sys/dev/x86emu/x86emu.c
7815
bc = (res & (~d | s)) | (~d & s);
sys/dev/x86emu/x86emu.c
7827
test_byte(struct x86emu *emu, uint8_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
7831
res = d & s;
sys/dev/x86emu/x86emu.c
7846
test_word(struct x86emu *emu, uint16_t d, uint16_t s)
sys/dev/x86emu/x86emu.c
7850
res = d & s;
sys/dev/x86emu/x86emu.c
7865
test_long(struct x86emu *emu, uint32_t d, uint32_t s)
sys/dev/x86emu/x86emu.c
7869
res = d & s;
sys/dev/x86emu/x86emu.c
7884
xor_byte(struct x86emu *emu, uint8_t d, uint8_t s)
sys/dev/x86emu/x86emu.c
7888
res = d ^ s;
sys/dev/x86emu/x86emu.c
7903
xor_word(struct x86emu *emu, uint16_t d, uint16_t s)
sys/dev/x86emu/x86emu.c
7907
res = d ^ s;
sys/dev/x86emu/x86emu.c
7922
xor_long(struct x86emu *emu, uint32_t d, uint32_t s)
sys/dev/x86emu/x86emu.c
7926
res = d ^ s;
sys/dev/x86emu/x86emu.c
83
static uint16_t aaa_word (struct x86emu *, uint16_t d);
sys/dev/x86emu/x86emu.c
84
static uint16_t aas_word (struct x86emu *, uint16_t d);
sys/dev/x86emu/x86emu.c
85
static uint16_t aad_word (struct x86emu *, uint16_t d);
sys/dev/x86emu/x86emu.c
86
static uint16_t aam_word (struct x86emu *, uint8_t d);
sys/dev/x86emu/x86emu.c
87
static uint8_t adc_byte (struct x86emu *, uint8_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
88
static uint16_t adc_word (struct x86emu *, uint16_t d, uint16_t s);
sys/dev/x86emu/x86emu.c
89
static uint32_t adc_long (struct x86emu *, uint32_t d, uint32_t s);
sys/dev/x86emu/x86emu.c
90
static uint8_t add_byte (struct x86emu *, uint8_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
91
static uint16_t add_word (struct x86emu *, uint16_t d, uint16_t s);
sys/dev/x86emu/x86emu.c
92
static uint32_t add_long (struct x86emu *, uint32_t d, uint32_t s);
sys/dev/x86emu/x86emu.c
93
static uint8_t and_byte (struct x86emu *, uint8_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
94
static uint16_t and_word (struct x86emu *, uint16_t d, uint16_t s);
sys/dev/x86emu/x86emu.c
95
static uint32_t and_long (struct x86emu *, uint32_t d, uint32_t s);
sys/dev/x86emu/x86emu.c
96
static uint8_t cmp_byte (struct x86emu *, uint8_t d, uint8_t s);
sys/dev/x86emu/x86emu.c
97
static uint16_t cmp_word (struct x86emu *, uint16_t d, uint16_t s);
sys/dev/x86emu/x86emu.c
98
static uint32_t cmp_long (struct x86emu *, uint32_t d, uint32_t s);
sys/dev/x86emu/x86emu.c
99
static void cmp_byte_no_return (struct x86emu *, uint8_t d, uint8_t s);
sys/isofs/cd9660/cd9660_node.c
343
int y, m, d, hour, minute, second;
sys/isofs/cd9660/cd9660_node.c
348
d = pi[2];
sys/isofs/cd9660/cd9660_node.c
362
days = 367*(y-1980)-7*(y+(m+9)/12)/4-3*((y+(m-9)/7)/100+1)/4+275*m/9+d-100;
sys/isofs/cd9660/cd9660_node.c
368
days = 367*(y-1960)-7*(y+(m+9)/12)/4-3*((y+(m+9)/12-1)/100+1)/4+275*m/9+d-239;
sys/isofs/cd9660/cd9660_util.c
163
u_char c, d = '\0', *infnend = infn + infnlen;
sys/isofs/cd9660/cd9660_util.c
173
fnidx -= (d == '.');
sys/isofs/cd9660/cd9660_util.c
177
d = c;
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
69
while (d != 0) {
sys/kern/kern_malloc.c
71
b -= d;
sys/kern/kern_malloc.c
73
b += d;
sys/kern/kern_malloc.c
74
d >>= 1;
sys/kern/subr_autoconf.c
523
struct device *d;
sys/kern/subr_autoconf.c
586
for (d = TAILQ_NEXT(dev, dv_list); d != NULL;
sys/kern/subr_autoconf.c
587
d = TAILQ_NEXT(d, dv_list)) {
sys/kern/subr_autoconf.c
588
if (d->dv_parent == dev) {
sys/kern/subr_autoconf.c
590
d->dv_xname, dev->dv_xname);
sys/kern/subr_autoconf.c
883
struct device *d;
sys/kern/subr_autoconf.c
886
for (d = TAILQ_NEXT(parent, dv_list); d != NULL;
sys/kern/subr_autoconf.c
887
d = TAILQ_NEXT(d, dv_list)) {
sys/kern/subr_autoconf.c
888
if (d->dv_parent != parent)
sys/kern/subr_autoconf.c
896
rv = config_suspend(d, act);
sys/kern/subr_autoconf.c
899
rv = config_deactivate(d);
sys/kern/subr_autoconf.c
912
d->dv_xname, act);
sys/kern/subr_autoconf.c
921
d = TAILQ_PREV(d, devicelist, dv_list);
sys/kern/subr_autoconf.c
922
for (; d != NULL && d != parent;
sys/kern/subr_autoconf.c
923
d = TAILQ_PREV(d, devicelist, dv_list)) {
sys/kern/subr_autoconf.c
924
if (d->dv_parent != parent)
sys/kern/subr_autoconf.c
926
printf("resume %s\n", d->dv_xname);
sys/kern/subr_autoconf.c
927
config_suspend(d, DVACT_RESUME);
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/vfs_syscalls.c
577
char *s, *d;
sys/kern/vfs_syscalls.c
585
d = (char *)uaddr;
sys/kern/vfs_syscalls.c
589
if ((error = copyout(s, d, co_sz1)) != 0)
sys/kern/vfs_syscalls.c
591
if ((error = copyout(&fsid, d + co_sz1, sizeof(fsid))) != 0)
sys/kern/vfs_syscalls.c
593
return (copyout(s + co_off2, d + co_off2, co_sz2));
sys/lib/libkern/qdivrem.c
164
d = 0;
sys/lib/libkern/qdivrem.c
166
d++;
sys/lib/libkern/qdivrem.c
167
if (d > 0) {
sys/lib/libkern/qdivrem.c
168
shl(&u[0], m + n, d); /* u <<= d */
sys/lib/libkern/qdivrem.c
169
shl(&v[1], n - 1, d); /* v <<= d */
sys/lib/libkern/qdivrem.c
243
if (d) {
sys/lib/libkern/qdivrem.c
245
u[i] = (digit)(((u_int)u[i] >> d) |
sys/lib/libkern/qdivrem.c
246
LHALF((u_int)u[i - 1] << (HALF_BITS - d)));
sys/lib/libkern/qdivrem.c
70
int m, n, d, j, i;
sys/lib/libkern/strncpy.c
45
char *d = dst;
sys/lib/libkern/strncpy.c
49
if ((*d++ = *s++) == 0) {
sys/lib/libkern/strncpy.c
52
*d++ = 0;
sys/lib/libsa/arp.c
114
MACPY(d->myea, ah->arp_sha);
sys/lib/libsa/arp.c
115
bcopy(&d->myip, ah->arp_spa, sizeof(ah->arp_spa));
sys/lib/libsa/arp.c
122
i = sendrecv(d,
sys/lib/libsa/arp.c
146
arpsend(struct iodesc *d, void *pkt, size_t len)
sys/lib/libsa/arp.c
154
return (sendether(d, pkt, len, bcea, ETHERTYPE_ARP));
sys/lib/libsa/arp.c
162
arprecv(struct iodesc *d, void *pkt, size_t len, time_t tleft)
sys/lib/libsa/arp.c
173
n = readether(d, pkt, len, tleft, &etype);
sys/lib/libsa/arp.c
210
arp_reply(d, ah);
sys/lib/libsa/arp.c
246
arp_reply(struct iodesc *d, void *pkt)
sys/lib/libsa/arp.c
270
if (bcmp(arp->arp_tpa, &d->myip, sizeof(arp->arp_tpa)))
sys/lib/libsa/arp.c
284
bcopy(d->myea, arp->arp_sha, sizeof(arp->arp_sha));
sys/lib/libsa/arp.c
285
bcopy(&d->myip, arp->arp_spa, sizeof(arp->arp_spa));
sys/lib/libsa/arp.c
291
(void) sendether(d, pkt, sizeof(*arp) + 18,
sys/lib/libsa/arp.c
71
arpwhohas(struct iodesc *d, struct in_addr addr)
sys/lib/libsa/blowfish.c
500
u_int32_t *d;
sys/lib/libsa/blowfish.c
503
d = data;
sys/lib/libsa/blowfish.c
505
Blowfish_encipher(c, d, d + 1);
sys/lib/libsa/blowfish.c
506
d += 2;
sys/lib/libsa/blowfish.c
513
u_int32_t *d;
sys/lib/libsa/blowfish.c
516
d = data;
sys/lib/libsa/blowfish.c
518
Blowfish_decipher(c, d, d + 1);
sys/lib/libsa/blowfish.c
519
d += 2;
sys/lib/libsa/bootp.c
102
bp->bp_xid = htonl(d->xid);
sys/lib/libsa/bootp.c
103
MACPY(d->myea, bp->bp_chaddr);
sys/lib/libsa/bootp.c
107
d->myip = myip;
sys/lib/libsa/bootp.c
108
d->myport = htons(IPPORT_BOOTPC);
sys/lib/libsa/bootp.c
109
d->destip.s_addr = INADDR_BROADCAST;
sys/lib/libsa/bootp.c
110
d->destport = htons(IPPORT_BOOTPS);
sys/lib/libsa/bootp.c
112
(void)sendrecv(d,
sys/lib/libsa/bootp.c
117
++d->xid;
sys/lib/libsa/bootp.c
122
bootpsend(struct iodesc *d, void *pkt, size_t len)
sys/lib/libsa/bootp.c
128
printf("bootpsend: d=%x called.\n", (u_int)d);
sys/lib/libsa/bootp.c
139
return (sendudp(d, pkt, len));
sys/lib/libsa/bootp.c
144
bootprecv(struct iodesc *d, void *pkt, size_t len, time_t tleft)
sys/lib/libsa/bootp.c
154
n = readudp(d, pkt, len, tleft);
sys/lib/libsa/bootp.c
165
if (bp->bp_xid != htonl(d->xid)) {
sys/lib/libsa/bootp.c
169
d->xid, ntohl(bp->bp_xid));
sys/lib/libsa/bootp.c
181
myip = d->myip = bp->bp_yiaddr;
sys/lib/libsa/bootp.c
184
printf("our ip address is %s\n", inet_ntoa(d->myip));
sys/lib/libsa/bootp.c
186
if (IN_CLASSA(d->myip.s_addr))
sys/lib/libsa/bootp.c
188
else if (IN_CLASSB(d->myip.s_addr))
sys/lib/libsa/bootp.c
232
if (!SAMENET(d->myip, rootip, netmask)) {
sys/lib/libsa/bootp.c
239
if (!SAMENET(d->myip, swapip, netmask)) {
sys/lib/libsa/bootp.c
247
if (!SAMENET(d->myip, gateip, netmask)) {
sys/lib/libsa/bootp.c
69
struct iodesc *d;
sys/lib/libsa/bootp.c
87
if (!(d = socktodesc(sock))) {
sys/lib/libsa/bootp.c
93
printf("bootp: d=%x\n", (u_int)d);
sys/lib/libsa/bootparam.c
116
struct args d;
sys/lib/libsa/bootparam.c
120
struct repl d;
sys/lib/libsa/bootparam.c
123
struct iodesc *d;
sys/lib/libsa/bootparam.c
128
if (!(d = socktodesc(sockfd))) {
sys/lib/libsa/bootparam.c
132
args = &sdata.d;
sys/lib/libsa/bootparam.c
133
repl = &rdata.d;
sys/lib/libsa/bootparam.c
151
d->myport = htons(--rpc_port);
sys/lib/libsa/bootparam.c
152
d->destip.s_addr = INADDR_BROADCAST; /* XXX: subnet bcast? */
sys/lib/libsa/bootparam.c
155
len = rpc_call(d, PMAPPROG, PMAPVERS, PMAPPROC_CALLIT,
sys/lib/libsa/bootparam.c
227
u_int32_t d[64];
sys/lib/libsa/bootparam.c
231
u_int32_t d[128];
sys/lib/libsa/bootparam.c
236
struct iodesc *d;
sys/lib/libsa/bootparam.c
239
if (!(d = socktodesc(sockfd))) {
sys/lib/libsa/bootparam.c
244
send_tail = (char *)sdata.d;
sys/lib/libsa/bootparam.c
245
recv_head = (char *)rdata.d;
sys/lib/libsa/bootparam.c
264
d->myport = htons(--rpc_port);
sys/lib/libsa/bootparam.c
265
d->destip = bp_server_addr;
sys/lib/libsa/bootparam.c
268
rlen = rpc_call(d,
sys/lib/libsa/bootparam.c
270
sdata.d, send_tail - (char *)sdata.d,
sys/lib/libsa/bootparam.c
271
rdata.d, sizeof(rdata.d));
sys/lib/libsa/bootparam.c
277
recv_head = (char *)rdata.d;
sys/lib/libsa/ether.c
103
n = netif_get(d, eh, len, tleft);
sys/lib/libsa/ether.c
108
if (bcmp(d->myea, eh->ether_dhost, 6) != 0 &&
sys/lib/libsa/ether.c
58
sendether(struct iodesc *d, void *pkt, size_t len, u_char *dea, int etype)
sys/lib/libsa/ether.c
71
MACPY(d->myea, eh->ether_shost); /* by byte */
sys/lib/libsa/ether.c
75
n = netif_put(d, eh, len);
sys/lib/libsa/ether.c
89
readether(struct iodesc *d, void *pkt, size_t len, time_t tleft,
sys/lib/libsa/net.c
103
cc = (*rproc)(d, rbuf, rsize, tleft);
sys/lib/libsa/net.c
67
sendrecv(struct iodesc *d, ssize_t (*sproc)(struct iodesc *, void *, size_t),
sys/lib/libsa/net.c
90
cc = (*sproc)(d, sbuf, ssize);
sys/lib/libsa/net.h
104
ssize_t sendether(struct iodesc *d, void *pkt, size_t len,
sys/lib/libsa/net.h
106
ssize_t readether(struct iodesc *d, void *pkt, size_t len,
sys/lib/libsa/net.h
54
#define MACPY(s, d) bcopy((char *)s, (char *)d, 6)
sys/lib/libsa/netif.c
103
for (d = 0; d < n_netif_drivers; d++) {
sys/lib/libsa/netif.c
104
cur_if.nif_driver = netif_drivers[d];
sys/lib/libsa/netif.c
59
int d, i;
sys/lib/libsa/netif.c
65
for (d = 0; d < n_netif_drivers; d++) {
sys/lib/libsa/netif.c
66
drv = netif_drivers[d];
sys/lib/libsa/netif.c
88
int d, u, s;
sys/lib/libsa/netudp.c
110
ea = arpwhohas(d, ip->ip_dst);
sys/lib/libsa/netudp.c
112
ea = arpwhohas(d, gateip);
sys/lib/libsa/netudp.c
114
cc = sendether(d, ip, len, ea, ETHERTYPE_IP);
sys/lib/libsa/netudp.c
127
readudp(struct iodesc *d, void *pkt, size_t len, time_t tleft)
sys/lib/libsa/netudp.c
145
n = readether(d, ip, len + sizeof(*ip) + sizeof(*uh), tleft, &etype);
sys/lib/libsa/netudp.c
156
arp_reply(d, ah);
sys/lib/libsa/netudp.c
194
if (d->myip.s_addr && ip->ip_dst.s_addr != d->myip.s_addr) {
sys/lib/libsa/netudp.c
197
printf("readudp: bad saddr %s != ", inet_ntoa(d->myip));
sys/lib/libsa/netudp.c
210
if (uh->uh_dport != d->myport) {
sys/lib/libsa/netudp.c
214
d->myport, ntohs(uh->uh_dport));
sys/lib/libsa/netudp.c
60
sendudp(struct iodesc *d, void *pkt, size_t len)
sys/lib/libsa/netudp.c
71
printf("sendudp: d=%x called.\n", (u_int)d);
sys/lib/libsa/netudp.c
72
if (d) {
sys/lib/libsa/netudp.c
74
inet_ntoa(d->myip), ntohs(d->myport));
sys/lib/libsa/netudp.c
76
inet_ntoa(d->destip), ntohs(d->destport));
sys/lib/libsa/netudp.c
92
ip->ip_src = d->myip;
sys/lib/libsa/netudp.c
93
ip->ip_dst = d->destip;
sys/lib/libsa/netudp.c
96
uh->uh_sport = d->myport;
sys/lib/libsa/netudp.c
97
uh->uh_dport = d->destport;
sys/lib/libsa/nfs.c
105
nfs_getrootfh(struct iodesc *d, const char *path, u_char *fhp)
sys/lib/libsa/nfs.c
118
struct args d;
sys/lib/libsa/nfs.c
122
struct repl d;
sys/lib/libsa/nfs.c
131
args = &sdata.d;
sys/lib/libsa/nfs.c
132
repl = &rdata.d;
sys/lib/libsa/nfs.c
142
cc = rpc_call(d, RPCPROG_MNT, RPCMNT_VER1, RPCMNT_MOUNT,
sys/lib/libsa/nfs.c
165
nfs_lookupfh(struct nfs_iodesc *d, char *name, struct nfs_iodesc *newfd)
sys/lib/libsa/nfs.c
180
struct args d;
sys/lib/libsa/nfs.c
184
struct repl d;
sys/lib/libsa/nfs.c
193
args = &sdata.d;
sys/lib/libsa/nfs.c
194
repl = &rdata.d;
sys/lib/libsa/nfs.c
197
bcopy(d->fh, args->fh, sizeof(args->fh));
sys/lib/libsa/nfs.c
208
cc = rpc_call(d->iodesc, NFS_PROG, NFS_VER2, NFSPROC_LOOKUP,
sys/lib/libsa/nfs.c
227
nfs_readlink(struct nfs_iodesc *d, char *buf)
sys/lib/libsa/nfs.c
235
struct nfs_readlnk_repl d;
sys/lib/libsa/nfs.c
244
bcopy(d->fh, sdata.fh, NFS_FHSIZE);
sys/lib/libsa/nfs.c
245
cc = rpc_call(d->iodesc, NFS_PROG, NFS_VER2, NFSPROC_READLINK,
sys/lib/libsa/nfs.c
247
&rdata.d, sizeof(rdata.d));
sys/lib/libsa/nfs.c
254
if (rdata.d.errno)
sys/lib/libsa/nfs.c
255
return (ntohl(rdata.d.errno));
sys/lib/libsa/nfs.c
257
rdata.d.len = ntohl(rdata.d.len);
sys/lib/libsa/nfs.c
258
if (rdata.d.len > NFS_MAXPATHLEN)
sys/lib/libsa/nfs.c
261
bcopy(rdata.d.path, buf, rdata.d.len);
sys/lib/libsa/nfs.c
262
buf[rdata.d.len] = 0;
sys/lib/libsa/nfs.c
271
nfs_readdata(struct nfs_iodesc *d, off_t off, void *addr, size_t len)
sys/lib/libsa/nfs.c
277
struct nfs_read_args d;
sys/lib/libsa/nfs.c
281
struct nfs_read_repl d;
sys/lib/libsa/nfs.c
287
args = &sdata.d;
sys/lib/libsa/nfs.c
288
repl = &rdata.d;
sys/lib/libsa/nfs.c
290
bcopy(d->fh, args->fh, NFS_FHSIZE);
sys/lib/libsa/nfs.c
298
cc = rpc_call(d->iodesc, NFS_PROG, NFS_VER2, NFSPROC_READ,
sys/lib/libsa/nfs.c
567
struct nfs_iodesc *d = (struct nfs_iodesc *)f->f_fsdata;
sys/lib/libsa/nfs.c
568
u_int32_t size = ntohl(d->fa.fa_size);
sys/lib/libsa/nfs.c
572
d->off = offset;
sys/lib/libsa/nfs.c
575
d->off += offset;
sys/lib/libsa/nfs.c
578
d->off = size - offset;
sys/lib/libsa/nfs.c
584
return (d->off);
sys/lib/libsa/rarp.c
100
bcopy(d->myea, ap->arp_tha, 6);
sys/lib/libsa/rarp.c
102
if (sendrecv(d,
sys/lib/libsa/rarp.c
125
d->myip = myip;
sys/lib/libsa/rarp.c
133
rarpsend(struct iodesc *d, void *pkt, size_t len)
sys/lib/libsa/rarp.c
141
return (sendether(d, pkt, len, bcea, ETHERTYPE_REVARP));
sys/lib/libsa/rarp.c
149
rarprecv(struct iodesc *d, void *pkt, size_t len, time_t tleft)
sys/lib/libsa/rarp.c
160
n = readether(d, pkt, len, tleft, &etype);
sys/lib/libsa/rarp.c
200
if (bcmp(ap->arp_tha, d->myea, 6)) {
sys/lib/libsa/rarp.c
62
struct iodesc *d;
sys/lib/libsa/rarp.c
83
if (!(d = socktodesc(sock))) {
sys/lib/libsa/rarp.c
89
printf("rarp: d=%x\n", (u_int)d);
sys/lib/libsa/rarp.c
99
bcopy(d->myea, ap->arp_sha, 6);
sys/lib/libsa/rpc.c
110
rpc_call(struct iodesc *d, u_int32_t prog, u_int32_t vers, u_int32_t proc, void *sdata,
sys/lib/libsa/rpc.c
128
port = rpc_getport(d, prog, vers);
sys/lib/libsa/rpc.c
132
d->destport = htons(port);
sys/lib/libsa/rpc.c
179
cc = sendrecv(d,
sys/lib/libsa/rpc.c
229
recvrpc(struct iodesc *d, void *pkt, size_t len, time_t tleft)
sys/lib/libsa/rpc.c
241
n = readudp(d, pkt, len, tleft);
sys/lib/libsa/rpc.c
358
rpc_getport(struct iodesc *d, u_int32_t prog, u_int32_t vers)
sys/lib/libsa/rpc.c
371
struct args d;
sys/lib/libsa/rpc.c
375
struct res d;
sys/lib/libsa/rpc.c
391
port = rpc_pmap_getcache(d->destip, prog, vers);
sys/lib/libsa/rpc.c
395
args = &sdata.d;
sys/lib/libsa/rpc.c
400
res = &rdata.d;
sys/lib/libsa/rpc.c
402
cc = rpc_call(d, PMAPPROG, PMAPVERS, PMAPPROC_GETPORT,
sys/lib/libsa/rpc.c
411
rpc_pmap_putcache(d->destip, prog, vers, port);
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
69
d = state[3];
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
98
state[3] += d;
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
354
(d) += T1; \
sys/lib/libsa/sha2.c
359
#define ROUND256(a,b,c,d,e,f,g,h) do { \
sys/lib/libsa/sha2.c
366
(d) += T1; \
sys/lib/libsa/sha2.c
374
u_int32_t a, b, c, d, e, f, g, h, s0, s1;
sys/lib/libsa/sha2.c
382
d = state[3];
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
417
state[3] += d;
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
440
d = state[3];
sys/lib/libsa/sha2.c
456
e = d + T1;
sys/lib/libsa/sha2.c
457
d = c;
sys/lib/libsa/sha2.c
479
e = d + T1;
sys/lib/libsa/sha2.c
480
d = c;
sys/lib/libsa/sha2.c
492
state[3] += d;
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
629
(d) += T1; \
sys/lib/libsa/sha2.c
635
#define ROUND512(a,b,c,d,e,f,g,h) do { \
sys/lib/libsa/sha2.c
642
(d) += T1; \
sys/lib/libsa/sha2.c
650
u_int64_t a, b, c, d, e, f, g, h, s0, s1;
sys/lib/libsa/sha2.c
658
d = state[3];
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
693
state[3] += d;
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
716
d = state[3];
sys/lib/libsa/sha2.c
732
e = d + T1;
sys/lib/libsa/sha2.c
733
d = c;
sys/lib/libsa/sha2.c
755
e = d + T1;
sys/lib/libsa/sha2.c
756
d = c;
sys/lib/libsa/sha2.c
768
state[3] += d;
sys/lib/libsa/sha2.c
775
a = b = c = d = e = f = g = h = T1 = T2 = 0;
sys/lib/libsa/tftp.c
101
recvtftp(struct iodesc *d, void *pkt, size_t len, time_t tleft)
sys/lib/libsa/tftp.c
108
n = readudp(d, pkt, len, tleft);
sys/lib/libsa/tftp.c
116
if (htons(t->th_block) != d->xid) {
sys/lib/libsa/tftp.c
122
if (d->xid == 1) {
sys/lib/libsa/tftp.c
128
d->destport = uh->uh_sport;
sys/net/bpf.c
1003
error = bpf_set_wtout(d, *(int *)addr ? 0 : INFSLP);
sys/net/bpf.c
1010
error = bpf_set_wtimeout(d, (const struct timeval *)addr);
sys/net/bpf.c
1013
error = bpf_get_wtimeout(d, (struct timeval *)addr);
sys/net/bpf.c
1016
error = bpf_set_wtout(d, INFSLP);
sys/net/bpf.c
1029
*(u_int *)addr = d->bd_hdrcmplt;
sys/net/bpf.c
1033
d->bd_hdrcmplt = *(u_int *)addr ? 1 : 0;
sys/net/bpf.c
1037
d->bd_locked = 1;
sys/net/bpf.c
1041
*(u_int *)addr = d->bd_fildrop;
sys/net/bpf.c
1050
d->bd_fildrop = fildrop;
sys/net/bpf.c
1060
*(u_int *)addr = d->bd_dirfilt;
sys/net/bpf.c
1064
d->bd_dirfilt = (*(u_int *)addr) &
sys/net/bpf.c
1069
d->bd_async = *(int *)addr;
sys/net/bpf.c
1074
error = sigio_setown(&d->bd_sigio, cmd, addr);
sys/net/bpf.c
1079
sigio_getown(&d->bd_sigio, cmd, addr);
sys/net/bpf.c
1091
d->bd_sig = sig;
sys/net/bpf.c
1095
*(u_int *)addr = d->bd_sig;
sys/net/bpf.c
1099
bpf_put(d);
sys/net/bpf.c
1108
bpf_setf(struct bpf_d *d, struct bpf_program *fp, u_long cmd)
sys/net/bpf.c
1144
old_bps = SMR_PTR_GET_LOCKED(&d->bd_rfilter);
sys/net/bpf.c
1145
SMR_PTR_SET_LOCKED(&d->bd_rfilter, bps);
sys/net/bpf.c
1147
old_bps = SMR_PTR_GET_LOCKED(&d->bd_wfilter);
sys/net/bpf.c
1148
SMR_PTR_SET_LOCKED(&d->bd_wfilter, bps);
sys/net/bpf.c
1152
mtx_enter(&d->bd_mtx);
sys/net/bpf.c
1153
bpf_resetd(d);
sys/net/bpf.c
1154
mtx_leave(&d->bd_mtx);
sys/net/bpf.c
1169
bpf_setif(struct bpf_d *d, struct ifreq *ifr)
sys/net/bpf.c
1191
mtx_enter(&d->bd_mtx);
sys/net/bpf.c
1192
if (d->bd_sbuf == NULL) {
sys/net/bpf.c
1193
if ((error = bpf_allocbufs(d)))
sys/net/bpf.c
1196
if (bp != d->bd_bif) {
sys/net/bpf.c
1200
bpf_detachd(d);
sys/net/bpf.c
1201
bpf_attachd(d, bp);
sys/net/bpf.c
1203
bpf_resetd(d);
sys/net/bpf.c
1205
mtx_leave(&d->bd_mtx);
sys/net/bpf.c
1230
struct bpf_d *d;
sys/net/bpf.c
1235
d = bpfilter_lookup(minor(dev));
sys/net/bpf.c
1236
if (d == NULL)
sys/net/bpf.c
1241
klist = &d->bd_klist;
sys/net/bpf.c
1248
bpf_get(d);
sys/net/bpf.c
1249
kn->kn_hook = d;
sys/net/bpf.c
1258
struct bpf_d *d = kn->kn_hook;
sys/net/bpf.c
1260
klist_remove(&d->bd_klist, kn);
sys/net/bpf.c
1261
bpf_put(d);
sys/net/bpf.c
1267
struct bpf_d *d = kn->kn_hook;
sys/net/bpf.c
1269
MUTEX_ASSERT_LOCKED(&d->bd_mtx);
sys/net/bpf.c
1271
kn->kn_data = d->bd_hlen;
sys/net/bpf.c
1272
if (d->bd_state == BPF_S_DONE)
sys/net/bpf.c
1273
kn->kn_data += d->bd_slen;
sys/net/bpf.c
1281
struct bpf_d *d = kn->kn_hook;
sys/net/bpf.c
1284
mtx_enter(&d->bd_mtx);
sys/net/bpf.c
1286
mtx_leave(&d->bd_mtx);
sys/net/bpf.c
1294
struct bpf_d *d = kn->kn_hook;
sys/net/bpf.c
1297
mtx_enter(&d->bd_mtx);
sys/net/bpf.c
1299
mtx_leave(&d->bd_mtx);
sys/net/bpf.c
1339
struct bpf_d *d;
sys/net/bpf.c
1357
SMR_SLIST_FOREACH(d, &bp->bif_dlist, bd_next) {
sys/net/bpf.c
136
bpf_movein(struct uio *uio, struct bpf_d *d, struct mbuf **mp,
sys/net/bpf.c
1361
atomic_inc_long(&d->bd_rcount);
sys/net/bpf.c
1363
if (ISSET(d->bd_dirfilt, direction))
sys/net/bpf.c
1366
bps = SMR_PTR_GET(&d->bd_rfilter);
sys/net/bpf.c
1373
if (d->bd_fildrop != BPF_FILDROP_PASS)
sys/net/bpf.c
1375
if (d->bd_fildrop != BPF_FILDROP_DROP) {
sys/net/bpf.c
1401
mtx_enter(&d->bd_mtx);
sys/net/bpf.c
1402
bpf_catchpacket(d, (u_char *)m, pktlen, slen, &tbh);
sys/net/bpf.c
1403
mtx_leave(&d->bd_mtx);
sys/net/bpf.c
1550
bpf_catchpacket(struct bpf_d *d, u_char *pkt, size_t pktlen, size_t snaplen,
sys/net/bpf.c
1557
MUTEX_ASSERT_LOCKED(&d->bd_mtx);
sys/net/bpf.c
1558
if (d->bd_bif == NULL)
sys/net/bpf.c
1561
hdrlen = d->bd_bif->bif_hdrlen;
sys/net/bpf.c
1570
if (totlen > d->bd_bufsize)
sys/net/bpf.c
1571
totlen = d->bd_bufsize;
sys/net/bpf.c
1576
curlen = BPF_WORDALIGN(d->bd_slen);
sys/net/bpf.c
1577
if (curlen + totlen > d->bd_bufsize) {
sys/net/bpf.c
158
linktype = d->bd_bif->bif_dlt;
sys/net/bpf.c
1583
if (d->bd_fbuf == NULL) {
sys/net/bpf.c
1588
++d->bd_dcount;
sys/net/bpf.c
1593
if (timeout_del(&d->bd_wait_tmo))
sys/net/bpf.c
1594
bpf_put(d);
sys/net/bpf.c
1596
ROTATE_BUFFERS(d);
sys/net/bpf.c
1604
bh = (struct bpf_hdr *)(d->bd_sbuf + curlen);
sys/net/bpf.c
1614
d->bd_slen = curlen + totlen;
sys/net/bpf.c
1616
switch (d->bd_wtout) {
sys/net/bpf.c
1622
if (d->bd_state == BPF_S_IDLE)
sys/net/bpf.c
1623
d->bd_state = BPF_S_DONE;
sys/net/bpf.c
1629
if (d->bd_state == BPF_S_IDLE) {
sys/net/bpf.c
1630
d->bd_state = BPF_S_WAIT;
sys/net/bpf.c
1632
bpf_get(d);
sys/net/bpf.c
1633
if (!timeout_add_nsec(&d->bd_wait_tmo, d->bd_wtout))
sys/net/bpf.c
1634
bpf_put(d);
sys/net/bpf.c
1640
bpf_wakeup(d);
sys/net/bpf.c
1647
bpf_allocbufs(struct bpf_d *d)
sys/net/bpf.c
1649
MUTEX_ASSERT_LOCKED(&d->bd_mtx);
sys/net/bpf.c
1651
d->bd_fbuf = malloc(d->bd_bufsize, M_DEVBUF, M_NOWAIT);
sys/net/bpf.c
1652
if (d->bd_fbuf == NULL)
sys/net/bpf.c
1655
d->bd_sbuf = malloc(d->bd_bufsize, M_DEVBUF, M_NOWAIT);
sys/net/bpf.c
1656
if (d->bd_sbuf == NULL) {
sys/net/bpf.c
1657
free(d->bd_fbuf, M_DEVBUF, d->bd_bufsize);
sys/net/bpf.c
1658
d->bd_fbuf = NULL;
sys/net/bpf.c
1662
d->bd_slen = 0;
sys/net/bpf.c
1663
d->bd_hlen = 0;
sys/net/bpf.c
1844
bpf_getdltlist(struct bpf_d *d, struct bpf_dltlist *bfl)
sys/net/bpf.c
1850
name = d->bd_bif->bif_name;
sys/net/bpf.c
1875
bpf_setdlt(struct bpf_d *d, u_int dlt)
sys/net/bpf.c
1880
MUTEX_ASSERT_LOCKED(&d->bd_mtx);
sys/net/bpf.c
1881
if (d->bd_bif->bif_dlt == dlt)
sys/net/bpf.c
1883
name = d->bd_bif->bif_name;
sys/net/bpf.c
1892
bpf_detachd(d);
sys/net/bpf.c
1893
bpf_attachd(d, bp);
sys/net/bpf.c
1894
bpf_resetd(d);
sys/net/bpf.c
237
bps = SMR_PTR_GET(&d->bd_wfilter);
sys/net/bpf.c
285
bpf_attachd(struct bpf_d *d, struct bpf_if *bp)
sys/net/bpf.c
287
MUTEX_ASSERT_LOCKED(&d->bd_mtx);
sys/net/bpf.c
295
d->bd_bif = bp;
sys/net/bpf.c
298
SMR_SLIST_INSERT_HEAD_LOCKED(&bp->bif_dlist, d, bd_next);
sys/net/bpf.c
307
bpf_detachd(struct bpf_d *d)
sys/net/bpf.c
311
MUTEX_ASSERT_LOCKED(&d->bd_mtx);
sys/net/bpf.c
313
bp = d->bd_bif;
sys/net/bpf.c
320
SMR_SLIST_REMOVE_LOCKED(&bp->bif_dlist, d, bpf_d, bd_next);
sys/net/bpf.c
329
d->bd_bif = NULL;
sys/net/bpf.c
335
if (d->bd_promisc) {
sys/net/bpf.c
340
d->bd_promisc = 0;
sys/net/bpf.c
342
bpf_get(d);
sys/net/bpf.c
343
mtx_leave(&d->bd_mtx);
sys/net/bpf.c
347
mtx_enter(&d->bd_mtx);
sys/net/bpf.c
348
bpf_put(d);
sys/net/bpf.c
412
struct bpf_d *d;
sys/net/bpf.c
414
d = bpfilter_lookup(minor(dev));
sys/net/bpf.c
415
mtx_enter(&d->bd_mtx);
sys/net/bpf.c
416
bpf_detachd(d);
sys/net/bpf.c
417
bpf_wakeup(d);
sys/net/bpf.c
418
LIST_REMOVE(d, bd_list);
sys/net/bpf.c
419
mtx_leave(&d->bd_mtx);
sys/net/bpf.c
420
bpf_put(d);
sys/net/bpf.c
430
#define ROTATE_BUFFERS(d) \
sys/net/bpf.c
431
KASSERT(d->bd_in_uiomove == 0); \
sys/net/bpf.c
432
MUTEX_ASSERT_LOCKED(&d->bd_mtx); \
sys/net/bpf.c
433
(d)->bd_hbuf = (d)->bd_sbuf; \
sys/net/bpf.c
434
(d)->bd_hlen = (d)->bd_slen; \
sys/net/bpf.c
435
(d)->bd_sbuf = (d)->bd_fbuf; \
sys/net/bpf.c
436
(d)->bd_state = BPF_S_IDLE; \
sys/net/bpf.c
437
(d)->bd_slen = 0; \
sys/net/bpf.c
438
(d)->bd_fbuf = NULL;
sys/net/bpf.c
447
struct bpf_d *d;
sys/net/bpf.c
453
d = bpfilter_lookup(minor(dev));
sys/net/bpf.c
454
if (d->bd_bif == NULL)
sys/net/bpf.c
457
bpf_get(d);
sys/net/bpf.c
458
mtx_enter(&d->bd_mtx);
sys/net/bpf.c
464
if (uio->uio_resid != d->bd_bufsize) {
sys/net/bpf.c
472
if (d->bd_rtout != 0) {
sys/net/bpf.c
474
end = now + d->bd_rtout;
sys/net/bpf.c
484
while (d->bd_hbuf == NULL) {
sys/net/bpf.c
485
if (d->bd_bif == NULL) {
sys/net/bpf.c
487
if (d->bd_slen == 0) {
sys/net/bpf.c
491
ROTATE_BUFFERS(d);
sys/net/bpf.c
494
if (d->bd_state == BPF_S_DONE) {
sys/net/bpf.c
500
ROTATE_BUFFERS(d);
sys/net/bpf.c
506
} else if (d->bd_rtout == 0) {
sys/net/bpf.c
508
d->bd_nreaders++;
sys/net/bpf.c
509
error = msleep_nsec(d, &d->bd_mtx, PRINET|PCATCH,
sys/net/bpf.c
511
d->bd_nreaders--;
sys/net/bpf.c
514
d->bd_nreaders++;
sys/net/bpf.c
515
error = msleep_nsec(d, &d->bd_mtx, PRINET|PCATCH,
sys/net/bpf.c
517
d->bd_nreaders--;
sys/net/bpf.c
530
if (d->bd_hbuf != NULL)
sys/net/bpf.c
538
if (d->bd_slen == 0) {
sys/net/bpf.c
542
ROTATE_BUFFERS(d);
sys/net/bpf.c
549
hbuf = d->bd_hbuf;
sys/net/bpf.c
550
hlen = d->bd_hlen;
sys/net/bpf.c
551
d->bd_hbuf = NULL;
sys/net/bpf.c
552
d->bd_hlen = 0;
sys/net/bpf.c
553
d->bd_fbuf = NULL;
sys/net/bpf.c
554
d->bd_in_uiomove = 1;
sys/net/bpf.c
561
mtx_leave(&d->bd_mtx);
sys/net/bpf.c
563
mtx_enter(&d->bd_mtx);
sys/net/bpf.c
566
KASSERT(d->bd_fbuf == NULL);
sys/net/bpf.c
567
KASSERT(d->bd_hbuf == NULL);
sys/net/bpf.c
568
d->bd_fbuf = hbuf;
sys/net/bpf.c
569
d->bd_in_uiomove = 0;
sys/net/bpf.c
571
mtx_leave(&d->bd_mtx);
sys/net/bpf.c
572
bpf_put(d);
sys/net/bpf.c
581
bpf_wakeup(struct bpf_d *d)
sys/net/bpf.c
583
MUTEX_ASSERT_LOCKED(&d->bd_mtx);
sys/net/bpf.c
585
if (d->bd_nreaders)
sys/net/bpf.c
586
wakeup(d);
sys/net/bpf.c
588
knote_locked(&d->bd_klist, 0);
sys/net/bpf.c
595
if (d->bd_async && d->bd_sig) {
sys/net/bpf.c
596
bpf_get(d);
sys/net/bpf.c
597
if (!task_add(systq, &d->bd_wake_task))
sys/net/bpf.c
598
bpf_put(d);
sys/net/bpf.c
605
struct bpf_d *d = xd;
sys/net/bpf.c
607
if (d->bd_async && d->bd_sig)
sys/net/bpf.c
608
pgsigio(&d->bd_sigio, d->bd_sig, 0);
sys/net/bpf.c
610
bpf_put(d);
sys/net/bpf.c
616
struct bpf_d *d = xd;
sys/net/bpf.c
618
mtx_enter(&d->bd_mtx);
sys/net/bpf.c
619
if (d->bd_state == BPF_S_WAIT) {
sys/net/bpf.c
620
d->bd_state = BPF_S_DONE;
sys/net/bpf.c
621
bpf_wakeup(d);
sys/net/bpf.c
623
mtx_leave(&d->bd_mtx);
sys/net/bpf.c
625
bpf_put(d);
sys/net/bpf.c
631
struct bpf_d *d;
sys/net/bpf.c
639
d = bpfilter_lookup(minor(dev));
sys/net/bpf.c
640
if (d->bd_bif == NULL)
sys/net/bpf.c
643
bpf_get(d);
sys/net/bpf.c
644
ifp = d->bd_bif->bif_ifp;
sys/net/bpf.c
656
error = bpf_movein(uio, d, &m, sstosa(&dst));
sys/net/bpf.c
669
if (d->bd_hdrcmplt && dst.ss_family == AF_UNSPEC)
sys/net/bpf.c
677
bpf_put(d);
sys/net/bpf.c
686
bpf_resetd(struct bpf_d *d)
sys/net/bpf.c
688
MUTEX_ASSERT_LOCKED(&d->bd_mtx);
sys/net/bpf.c
689
KASSERT(d->bd_in_uiomove == 0);
sys/net/bpf.c
691
if (timeout_del(&d->bd_wait_tmo))
sys/net/bpf.c
692
bpf_put(d);
sys/net/bpf.c
694
if (d->bd_hbuf != NULL) {
sys/net/bpf.c
696
d->bd_fbuf = d->bd_hbuf;
sys/net/bpf.c
697
d->bd_hbuf = NULL;
sys/net/bpf.c
699
d->bd_state = BPF_S_IDLE;
sys/net/bpf.c
700
d->bd_slen = 0;
sys/net/bpf.c
701
d->bd_hlen = 0;
sys/net/bpf.c
702
d->bd_rcount = 0;
sys/net/bpf.c
703
d->bd_dcount = 0;
sys/net/bpf.c
707
bpf_set_wtout(struct bpf_d *d, uint64_t wtout)
sys/net/bpf.c
709
mtx_enter(&d->bd_mtx);
sys/net/bpf.c
710
d->bd_wtout = wtout;
sys/net/bpf.c
711
mtx_leave(&d->bd_mtx);
sys/net/bpf.c
717
bpf_set_wtimeout(struct bpf_d *d, const struct timeval *tv)
sys/net/bpf.c
730
return (bpf_set_wtout(d, nsec));
sys/net/bpf.c
734
bpf_get_wtimeout(struct bpf_d *d, struct timeval *tv)
sys/net/bpf.c
738
mtx_enter(&d->bd_mtx);
sys/net/bpf.c
739
nsec = d->bd_wtout;
sys/net/bpf.c
740
mtx_leave(&d->bd_mtx);
sys/net/bpf.c
777
struct bpf_d *d;
sys/net/bpf.c
780
d = bpfilter_lookup(minor(dev));
sys/net/bpf.c
781
if (d->bd_locked) {
sys/net/bpf.c
809
bpf_get(d);
sys/net/bpf.c
823
mtx_enter(&d->bd_mtx);
sys/net/bpf.c
824
n = d->bd_slen;
sys/net/bpf.c
825
if (d->bd_hbuf != NULL)
sys/net/bpf.c
826
n += d->bd_hlen;
sys/net/bpf.c
827
mtx_leave(&d->bd_mtx);
sys/net/bpf.c
837
*(u_int *)addr = d->bd_bufsize;
sys/net/bpf.c
844
if (d->bd_bif != NULL)
sys/net/bpf.c
855
mtx_enter(&d->bd_mtx);
sys/net/bpf.c
856
d->bd_bufsize = size;
sys/net/bpf.c
857
mtx_leave(&d->bd_mtx);
sys/net/bpf.c
867
error = bpf_setf(d, (struct bpf_program *)addr, cmd);
sys/net/bpf.c
874
mtx_enter(&d->bd_mtx);
sys/net/bpf.c
875
bpf_resetd(d);
sys/net/bpf.c
876
mtx_leave(&d->bd_mtx);
sys/net/bpf.c
883
if (d->bd_bif == NULL) {
sys/net/bpf.c
888
} else if (d->bd_bif->bif_ifp != NULL) {
sys/net/bpf.c
889
if (d->bd_promisc == 0) {
sys/net/bpf.c
890
MUTEX_ASSERT_UNLOCKED(&d->bd_mtx);
sys/net/bpf.c
892
error = ifpromisc(d->bd_bif->bif_ifp, 1);
sys/net/bpf.c
895
d->bd_promisc = 1;
sys/net/bpf.c
904
if (d->bd_bif == NULL)
sys/net/bpf.c
907
error = bpf_getdltlist(d, (struct bpf_dltlist *)addr);
sys/net/bpf.c
914
if (d->bd_bif == NULL)
sys/net/bpf.c
917
*(u_int *)addr = d->bd_bif->bif_dlt;
sys/net/bpf.c
924
if (d->bd_bif == NULL)
sys/net/bpf.c
927
mtx_enter(&d->bd_mtx);
sys/net/bpf.c
928
error = bpf_setdlt(d, *(u_int *)addr);
sys/net/bpf.c
929
mtx_leave(&d->bd_mtx);
sys/net/bpf.c
937
if (d->bd_bif == NULL)
sys/net/bpf.c
940
bpf_ifname(d->bd_bif, (struct ifreq *)addr);
sys/net/bpf.c
947
error = bpf_setif(d, (struct ifreq *)addr);
sys/net/bpf.c
967
mtx_enter(&d->bd_mtx);
sys/net/bpf.c
968
d->bd_rtout = rtout;
sys/net/bpf.c
969
mtx_leave(&d->bd_mtx);
sys/net/bpf.c
981
mtx_enter(&d->bd_mtx);
sys/net/bpf.c
982
NSEC_TO_TIMEVAL(d->bd_rtout, tv);
sys/net/bpf.c
983
mtx_leave(&d->bd_mtx);
sys/net/bpf.c
994
bs->bs_recv = d->bd_rcount;
sys/net/bpf.c
995
bs->bs_drop = d->bd_dcount;
sys/net/bridgestp.c
1833
int i, d;
sys/net/bridgestp.c
1835
for (i = 0, d = 0; i < ETHER_ADDR_LEN && d == 0; i++) {
sys/net/bridgestp.c
1836
d = ((int)a[i]) - ((int)b[i]);
sys/net/bridgestp.c
1839
return (d);
sys/net/hfsc.c
1475
d2dx(u_int d)
sys/net/hfsc.c
1479
dx = ((u_int64_t)d * HFSC_FREQ) / 1000;
sys/net/hfsc.c
1495
u_int64_t d;
sys/net/hfsc.c
1497
d = dx * 1000 / HFSC_FREQ;
sys/net/hfsc.c
1498
return ((u_int)d);
sys/net/hfsc.c
1506
isc->dx = d2dx(sc->d);
sys/net/hfsc.c
1645
sp->rsc.d = dx2d(cl->cl_rsc->dx);
sys/net/hfsc.c
1649
sp->rsc.d = 0;
sys/net/hfsc.c
1654
sp->fsc.d = dx2d(cl->cl_fsc->dx);
sys/net/hfsc.c
1658
sp->fsc.d = 0;
sys/net/hfsc.c
1663
sp->usc.d = dx2d(cl->cl_usc->dx);
sys/net/hfsc.c
1667
sp->usc.d = 0;
sys/net/hfsc.c
1674
sp->d = cl->cl_d;
sys/net/hfsc.c
428
rtsc.d = q->realtime.d;
sys/net/hfsc.c
431
lssc.d = q->linkshare.d;
sys/net/hfsc.c
434
ulsc.d = q->upperlimit.d;
sys/net/hfsc.h
50
u_int d; /* the x-projection of the first segment in msec */
sys/net/hfsc.h
81
u_int64_t d; /* deadline */
sys/net/if_ppp.c
633
(*sc->sc_rcomp->decomp_stat)(sc->sc_rc_state, &pcp->d);
sys/net/if_wg.c
611
wg_aip_add(struct wg_softc *sc, struct wg_peer *peer, struct wg_aip_io *d)
sys/net/if_wg.c
618
switch (d->a_af) {
sys/net/if_wg.c
631
if (d->a_cidr > root->art_alen)
sys/net/if_wg.c
637
art_node_init(&aip->a_node, &d->a_addr.addr_bytes, d->a_cidr);
sys/net/if_wg.c
644
aip->a_data = *d;
sys/net/if_wg.c
673
wg_aip_remove(struct wg_softc *sc, struct wg_peer *peer, struct wg_aip_io *d)
sys/net/if_wg.c
680
switch (d->a_af) {
sys/net/if_wg.c
695
node = art_lookup(root, &d->a_addr, d->a_cidr);
sys/net/if_wg.c
703
if (art_delete(root, &d->a_addr, d->a_cidr) == NULL)
sys/net/pf.c
1555
pf_state_peer_hton(const struct pf_state_peer *s, struct pfsync_state_peer *d)
sys/net/pf.c
1557
d->seqlo = htonl(s->seqlo);
sys/net/pf.c
1558
d->seqhi = htonl(s->seqhi);
sys/net/pf.c
1559
d->seqdiff = htonl(s->seqdiff);
sys/net/pf.c
1560
d->max_win = htons(s->max_win);
sys/net/pf.c
1561
d->mss = htons(s->mss);
sys/net/pf.c
1562
d->state = s->state;
sys/net/pf.c
1563
d->wscale = s->wscale;
sys/net/pf.c
1565
d->scrub.pfss_flags =
sys/net/pf.c
1567
d->scrub.pfss_ttl = (s)->scrub->pfss_ttl;
sys/net/pf.c
1568
d->scrub.pfss_ts_mod = htonl((s)->scrub->pfss_ts_mod);
sys/net/pf.c
1569
d->scrub.scrub_flag = PFSYNC_SCRUB_FLAG_VALID;
sys/net/pf.c
1574
pf_state_peer_ntoh(const struct pfsync_state_peer *s, struct pf_state_peer *d)
sys/net/pf.c
1576
d->seqlo = ntohl(s->seqlo);
sys/net/pf.c
1577
d->seqhi = ntohl(s->seqhi);
sys/net/pf.c
1578
d->seqdiff = ntohl(s->seqdiff);
sys/net/pf.c
1579
d->max_win = ntohs(s->max_win);
sys/net/pf.c
1580
d->mss = ntohs(s->mss);
sys/net/pf.c
1581
d->state = s->state;
sys/net/pf.c
1582
d->wscale = s->wscale;
sys/net/pf.c
1584
d->scrub != NULL) {
sys/net/pf.c
1585
d->scrub->pfss_flags =
sys/net/pf.c
1587
d->scrub->pfss_ttl = s->scrub.pfss_ttl;
sys/net/pf.c
1588
d->scrub->pfss_ts_mod = ntohl(s->scrub.pfss_ts_mod);
sys/net/pf.c
1668
struct pf_state_peer *d)
sys/net/pf.c
1670
if (s->scrub.scrub_flag && d->scrub == NULL)
sys/net/pf.c
1671
return (pf_normalize_tcp_alloc(d));
sys/net/pf.c
3290
int d;
sys/net/pf.c
3363
d = hlen - ohlen;
sys/net/pf.c
3369
htons(dlen), htons(dlen + d), pd->proto);
sys/net/pf.c
3372
pd->tot_len += d;
sys/net/pf.c
3373
pd2->tot_len += d;
sys/net/pf.c
3374
pd2->off += d;
sys/net/pf_ioctl.c
4318
struct pf_statelim_kstat *d = ks->ks_data;
sys/net/pf_ioctl.c
4321
strlcpy(kstat_kv_istr(&d->name), pfstlim->pfstlim_nm,
sys/net/pf_ioctl.c
4322
sizeof(kstat_kv_istr(&d->name)));
sys/net/pf_ioctl.c
4323
kstat_kv_u32(&d->limit) = pfstlim->pfstlim_limit;
sys/net/pf_ioctl.c
4327
kstat_kv_u32(&d->inuse) = pfstlim->pfstlim_inuse;
sys/net/pf_ioctl.c
4328
kstat_kv_u64(&d->admitted) =
sys/net/pf_ioctl.c
4330
kstat_kv_u64(&d->hardlimited) =
sys/net/pf_ioctl.c
4332
kstat_kv_u64(&d->ratelimited) =
sys/net/pf_ioctl.c
4345
struct pf_statelim_kstat *d;
sys/net/pf_ioctl.c
4350
d = malloc(sizeof(*d), M_DEVBUF, M_WAITOK|M_CANFAIL|M_ZERO);
sys/net/pf_ioctl.c
4351
if (d == NULL) {
sys/net/pf_ioctl.c
4360
free(d, M_DEVBUF, sizeof(*d));
sys/net/pf_ioctl.c
4364
kstat_kv_init(&d->name, "name", KSTAT_KV_T_ISTR);
sys/net/pf_ioctl.c
4365
kstat_kv_init(&d->inuse, "in-use", KSTAT_KV_T_UINT32);
sys/net/pf_ioctl.c
4366
kstat_kv_init(&d->limit, "limit", KSTAT_KV_T_UINT32);
sys/net/pf_ioctl.c
4367
kstat_kv_init(&d->admitted, "admitted", KSTAT_KV_T_COUNTER64);
sys/net/pf_ioctl.c
4368
kstat_kv_init(&d->hardlimited, "hard-limited", KSTAT_KV_T_COUNTER64);
sys/net/pf_ioctl.c
4369
kstat_kv_init(&d->ratelimited, "rate-limited", KSTAT_KV_T_COUNTER64);
sys/net/pf_ioctl.c
4372
ks->ks_data = d;
sys/net/pf_ioctl.c
4373
ks->ks_datalen = sizeof(*d);
sys/net/pf_ioctl.c
4385
struct pf_statelim_kstat *d;
sys/net/pf_ioctl.c
4391
d = ks->ks_data;
sys/net/pf_ioctl.c
4394
free(d, M_DEVBUF, sizeof(*d));
sys/net/pf_ioctl.c
4419
struct pf_sourcelim_kstat *d = ks->ks_data;
sys/net/pf_ioctl.c
4422
strlcpy(kstat_kv_istr(&d->name), pfsrlim->pfsrlim_nm,
sys/net/pf_ioctl.c
4423
sizeof(kstat_kv_istr(&d->name)));
sys/net/pf_ioctl.c
4424
kstat_kv_u32(&d->sourcelimit) = pfsrlim->pfsrlim_entries;
sys/net/pf_ioctl.c
4425
kstat_kv_u32(&d->limit) = pfsrlim->pfsrlim_limit;
sys/net/pf_ioctl.c
4429
kstat_kv_u32(&d->sourceinuse) =
sys/net/pf_ioctl.c
4431
kstat_kv_u64(&d->sourceallocs) =
sys/net/pf_ioctl.c
4433
kstat_kv_u64(&d->sourcelimited) =
sys/net/pf_ioctl.c
4435
kstat_kv_u64(&d->sourcenomem) =
sys/net/pf_ioctl.c
4438
kstat_kv_u32(&d->inuse) =
sys/net/pf_ioctl.c
4440
kstat_kv_u64(&d->admitted) =
sys/net/pf_ioctl.c
4442
kstat_kv_u64(&d->hardlimited) =
sys/net/pf_ioctl.c
4444
kstat_kv_u64(&d->ratelimited) =
sys/net/pf_ioctl.c
4457
struct pf_sourcelim_kstat *d;
sys/net/pf_ioctl.c
4462
d = malloc(sizeof(*d), M_DEVBUF, M_WAITOK|M_CANFAIL|M_ZERO);
sys/net/pf_ioctl.c
4463
if (d == NULL) {
sys/net/pf_ioctl.c
4472
free(d, M_DEVBUF, sizeof(*d));
sys/net/pf_ioctl.c
4476
kstat_kv_init(&d->name, "name", KSTAT_KV_T_ISTR);
sys/net/pf_ioctl.c
4478
kstat_kv_init(&d->sourceinuse, "source-in-use", KSTAT_KV_T_UINT32);
sys/net/pf_ioctl.c
4479
kstat_kv_init(&d->sourcelimit, "source-limit", KSTAT_KV_T_UINT32);
sys/net/pf_ioctl.c
4480
kstat_kv_init(&d->sourceallocs, "source-allocs",
sys/net/pf_ioctl.c
4482
kstat_kv_init(&d->sourcelimited, "source-limited",
sys/net/pf_ioctl.c
4484
kstat_kv_init(&d->sourcenomem, "source-nomem",
sys/net/pf_ioctl.c
4487
kstat_kv_init(&d->inuse, "in-use", KSTAT_KV_T_UINT32);
sys/net/pf_ioctl.c
4488
kstat_kv_init(&d->limit, "limit", KSTAT_KV_T_UINT32);
sys/net/pf_ioctl.c
4489
kstat_kv_init(&d->admitted, "admitted", KSTAT_KV_T_COUNTER64);
sys/net/pf_ioctl.c
4490
kstat_kv_init(&d->hardlimited, "hard-limited", KSTAT_KV_T_COUNTER64);
sys/net/pf_ioctl.c
4491
kstat_kv_init(&d->ratelimited, "rate-limited", KSTAT_KV_T_COUNTER64);
sys/net/pf_ioctl.c
4494
ks->ks_data = d;
sys/net/pf_ioctl.c
4495
ks->ks_datalen = sizeof(*d);
sys/net/pf_ioctl.c
4507
struct pf_sourcelim_kstat *d;
sys/net/pf_ioctl.c
4513
d = ks->ks_data;
sys/net/pf_ioctl.c
4516
free(d, M_DEVBUF, sizeof(*d));
sys/net/pf_table.c
2409
int d;
sys/net/pf_table.c
2411
if ((d = strncmp(p->pfrkt_name, q->pfrkt_name, PF_TABLE_NAME_SIZE)))
sys/net/pf_table.c
2412
return (d);
sys/net/pfvar.h
1266
u_int d;
sys/net/pfvar.h
815
#define pf_state_counter_hton(s,d) do { \
sys/net/pfvar.h
816
d[0] = htonl((s>>32)&0xffffffff); \
sys/net/pfvar.h
817
d[1] = htonl(s&0xffffffff); \
sys/net/pfvar.h
823
#define pf_state_counter_ntoh(s,d) do { \
sys/net/pfvar.h
824
d = ntohl(s[0]); \
sys/net/pfvar.h
825
d = d<<32; \
sys/net/pfvar.h
826
d += ntohl(s[1]); \
sys/net/ppp_defs.h
158
struct compstat d; /* packet decompression statistics */
sys/netinet/inet_nat64.c
100
d->u32[0] = inet_nat64_mask(s->u32[3], p->u32[3],
sys/netinet/inet_nat64.c
109
d->u8[j] = s->u8[i++];
sys/netinet/inet_nat64.c
120
union inet_nat64_addr *d = dst;
sys/netinet/inet_nat64.c
124
*d = *p;
sys/netinet/inet_nat64.c
144
d->u32[3] = inet_nat64_mask(s->u32[0], p->u32[3],
sys/netinet/inet_nat64.c
150
d->u8[8] = 0;
sys/netinet/inet_nat64.c
156
d->u8[i++] = s->u8[j];
sys/netinet/inet_nat64.c
192
union inet_nat64_addr *d = dst;
sys/netinet/inet_nat64.c
195
d->u32[0] = inet_nat64_mask(s->u32[3], p->u32[0], pfxlen);
sys/netinet/inet_nat64.c
205
union inet_nat64_addr *d = dst;
sys/netinet/inet_nat64.c
208
d->u32[0] = d->u32[1] = d->u32[2] = 0;
sys/netinet/inet_nat64.c
211
d->u32[3] = inet_nat64_mask(s->u32[0], p->u32[0], pfxlen);
sys/netinet/inet_nat64.c
79
union inet_nat64_addr *d = dst;
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_subr.c
598
tcp6_ctlinput(int cmd, struct sockaddr *sa, u_int rdomain, void *d)
sys/netinet/tcp_subr.c
630
notify = in_pcbrtchange, d = NULL;
sys/netinet/tcp_subr.c
634
d = NULL;
sys/netinet/tcp_subr.c
639
if (d != NULL) {
sys/netinet/tcp_subr.c
640
struct ip6ctlparam *ip6cp = (struct ip6ctlparam *)d;
sys/netinet/tcp_subr.c
683
icmp6_mtudisc_update((struct ip6ctlparam *)d,
sys/netinet/udp_usrreq.c
731
udp6_ctlinput(int cmd, struct sockaddr *sa, u_int rdomain, void *d)
sys/netinet/udp_usrreq.c
756
notify = in_pcbrtchange, d = NULL;
sys/netinet/udp_usrreq.c
758
d = NULL;
sys/netinet/udp_usrreq.c
765
if (d != NULL) {
sys/netinet/udp_usrreq.c
766
ip6cp = (struct ip6ctlparam *)d;
sys/netinet/udp_usrreq.c
860
icmp6_mtudisc_update((struct ip6ctlparam *)d,
sys/netinet6/in6.c
1318
u_char *s = (u_char *)src, *d = (u_char *)dst;
sys/netinet6/in6.c
1322
if ((r = (*d++ ^ *s++)) != 0) {
sys/netinet6/in6_var.h
302
#define IN6_ARE_MASKED_ADDR_EQUAL(d, a, m) ( \
sys/netinet6/in6_var.h
303
(((d)->s6_addr32[0] ^ (a)->s6_addr32[0]) & (m)->s6_addr32[0]) == 0 && \
sys/netinet6/in6_var.h
304
(((d)->s6_addr32[1] ^ (a)->s6_addr32[1]) & (m)->s6_addr32[1]) == 0 && \
sys/netinet6/in6_var.h
305
(((d)->s6_addr32[2] ^ (a)->s6_addr32[2]) & (m)->s6_addr32[2]) == 0 && \
sys/netinet6/in6_var.h
306
(((d)->s6_addr32[3] ^ (a)->s6_addr32[3]) & (m)->s6_addr32[3]) == 0 )
sys/netinet6/raw_ip6.c
298
rip6_ctlinput(int cmd, struct sockaddr *sa, u_int rdomain, void *d)
sys/netinet6/raw_ip6.c
315
notify = in_pcbrtchange, d = NULL;
sys/netinet6/raw_ip6.c
317
d = NULL;
sys/netinet6/raw_ip6.c
324
if (d != NULL) {
sys/netinet6/raw_ip6.c
325
ip6cp = (struct ip6ctlparam *)d;
sys/netinet6/raw_ip6.c
362
icmp6_mtudisc_update((struct ip6ctlparam *)d, valid);
sys/scsi/mpath.c
144
struct mpath_dev *d = sc->sc_devs[link->target];
sys/scsi/mpath.c
146
if (link->lun != 0 || d == NULL)
sys/scsi/mpath.c
149
link->id = devid_copy(d->d_id);
sys/scsi/mpath.c
155
mpath_next_path(struct mpath_dev *d)
sys/scsi/mpath.c
161
if (d == NULL)
sys/scsi/mpath.c
165
p = d->d_next_path;
sys/scsi/mpath.c
167
d->d_next_path = TAILQ_NEXT(p, p_entry);
sys/scsi/mpath.c
168
if (d->d_next_path == NULL &&
sys/scsi/mpath.c
169
(g = TAILQ_FIRST(&d->d_groups)) != NULL)
sys/scsi/mpath.c
170
d->d_next_path = TAILQ_FIRST(&g->g_paths);
sys/scsi/mpath.c
181
struct mpath_dev *d = sc->sc_devs[link->target];
sys/scsi/mpath.c
186
if (d == NULL)
sys/scsi/mpath.c
191
mtx_enter(&d->d_mtx);
sys/scsi/mpath.c
192
p = mpath_next_path(d);
sys/scsi/mpath.c
193
mtx_leave(&d->d_mtx);
sys/scsi/mpath.c
226
mtx_enter(&d->d_mtx);
sys/scsi/mpath.c
227
SIMPLEQ_INSERT_TAIL(&d->d_xfers, xs, xfer_list);
sys/scsi/mpath.c
228
p = mpath_next_path(d);
sys/scsi/mpath.c
229
mtx_leave(&d->d_mtx);
sys/scsi/mpath.c
238
struct mpath_dev *d = p->p_group->g_dev;
sys/scsi/mpath.c
242
if (ISSET(p->p_link->state, SDEV_S_DYING) || d == NULL)
sys/scsi/mpath.c
245
mtx_enter(&d->d_mtx);
sys/scsi/mpath.c
246
xs = SIMPLEQ_FIRST(&d->d_xfers);
sys/scsi/mpath.c
248
SIMPLEQ_REMOVE_HEAD(&d->d_xfers, xfer_list);
sys/scsi/mpath.c
249
if (!SIMPLEQ_EMPTY(&d->d_xfers))
sys/scsi/mpath.c
252
mtx_leave(&d->d_mtx);
sys/scsi/mpath.c
285
struct mpath_dev *d = sc->sc_devs[link->target];
sys/scsi/mpath.c
291
mtx_enter(&d->d_mtx);
sys/scsi/mpath.c
292
SIMPLEQ_INSERT_HEAD(&d->d_xfers, xs, xfer_list);
sys/scsi/mpath.c
293
p = mpath_next_path(d);
sys/scsi/mpath.c
294
mtx_leave(&d->d_mtx);
sys/scsi/mpath.c
302
switch (d->d_ops->op_checksense(mxs)) {
sys/scsi/mpath.c
304
mtx_enter(&d->d_mtx);
sys/scsi/mpath.c
305
SIMPLEQ_INSERT_HEAD(&d->d_xfers, xs, xfer_list);
sys/scsi/mpath.c
306
p = mpath_next_path(d);
sys/scsi/mpath.c
307
mtx_leave(&d->d_mtx);
sys/scsi/mpath.c
311
mpath_failover(d);
sys/scsi/mpath.c
335
mpath_failover(struct mpath_dev *d)
sys/scsi/mpath.c
337
if (!scsi_pending_start(&d->d_mtx, &d->d_failover))
sys/scsi/mpath.c
340
mpath_failover_start(d);
sys/scsi/mpath.c
346
struct mpath_dev *d = xd;
sys/scsi/mpath.c
348
mtx_enter(&d->d_mtx);
sys/scsi/mpath.c
349
d->d_failover_iter = TAILQ_FIRST(&d->d_groups);
sys/scsi/mpath.c
350
mtx_leave(&d->d_mtx);
sys/scsi/mpath.c
352
mpath_failover_check(d);
sys/scsi/mpath.c
356
mpath_failover_check(struct mpath_dev *d)
sys/scsi/mpath.c
358
struct mpath_group *g = d->d_failover_iter;
sys/scsi/mpath.c
362
timeout_add_sec(&d->d_failover_tmo, 1);
sys/scsi/mpath.c
365
d->d_ops->op_status(p->p_link);
sys/scsi/mpath.c
373
struct mpath_dev *d = g->g_dev;
sys/scsi/mpath.c
375
mtx_enter(&d->d_mtx);
sys/scsi/mpath.c
377
TAILQ_REMOVE(&d->d_groups, g, g_entry);
sys/scsi/mpath.c
378
TAILQ_INSERT_HEAD(&d->d_groups, g, g_entry);
sys/scsi/mpath.c
379
d->d_next_path = p;
sys/scsi/mpath.c
381
d->d_failover_iter = TAILQ_NEXT(d->d_failover_iter, g_entry);
sys/scsi/mpath.c
382
mtx_leave(&d->d_mtx);
sys/scsi/mpath.c
386
if (!scsi_pending_finish(&d->d_mtx, &d->d_failover))
sys/scsi/mpath.c
387
mpath_failover_start(d);
sys/scsi/mpath.c
389
mpath_failover_check(d);
sys/scsi/mpath.c
396
struct mpath_dev *d = sc->sc_devs[link->target];
sys/scsi/mpath.c
401
if (d == NULL)
sys/scsi/mpath.c
405
mtx_enter(&d->d_mtx);
sys/scsi/mpath.c
406
TAILQ_FOREACH(g, &d->d_groups, g_entry) {
sys/scsi/mpath.c
414
mtx_leave(&d->d_mtx);
sys/scsi/mpath.c
440
struct mpath_dev *d = NULL;
sys/scsi/mpath.c
453
if ((d = sc->sc_devs[target]) == NULL)
sys/scsi/mpath.c
456
if (DEVID_CMP(d->d_id, link->id) && d->d_ops == ops)
sys/scsi/mpath.c
459
d = NULL;
sys/scsi/mpath.c
462
if (d == NULL) {
sys/scsi/mpath.c
470
d = malloc(sizeof(*d), M_DEVBUF, M_WAITOK | M_CANFAIL | M_ZERO);
sys/scsi/mpath.c
471
if (d == NULL)
sys/scsi/mpath.c
474
mtx_init(&d->d_mtx, IPL_BIO);
sys/scsi/mpath.c
475
TAILQ_INIT(&d->d_groups);
sys/scsi/mpath.c
476
SIMPLEQ_INIT(&d->d_xfers);
sys/scsi/mpath.c
477
d->d_id = devid_copy(link->id);
sys/scsi/mpath.c
478
d->d_ops = ops;
sys/scsi/mpath.c
480
timeout_set(&d->d_failover_tmo, mpath_failover_start, d);
sys/scsi/mpath.c
482
sc->sc_devs[target] = d;
sys/scsi/mpath.c
491
link->id = devid_copy(d->d_id);
sys/scsi/mpath.c
494
TAILQ_FOREACH(g, &d->d_groups, g_entry) {
sys/scsi/mpath.c
504
free(d, M_DEVBUF, sizeof(*d));
sys/scsi/mpath.c
512
g->g_dev = d;
sys/scsi/mpath.c
515
mtx_enter(&d->d_mtx);
sys/scsi/mpath.c
516
TAILQ_INSERT_TAIL(&d->d_groups, g, g_entry);
sys/scsi/mpath.c
517
mtx_leave(&d->d_mtx);
sys/scsi/mpath.c
522
mtx_enter(&d->d_mtx);
sys/scsi/mpath.c
524
if (!SIMPLEQ_EMPTY(&d->d_xfers))
sys/scsi/mpath.c
527
if (d->d_next_path == NULL)
sys/scsi/mpath.c
528
d->d_next_path = p;
sys/scsi/mpath.c
529
mtx_leave(&d->d_mtx);
sys/scsi/mpath.c
543
struct mpath_dev *d;
sys/scsi/mpath.c
550
d = g->g_dev;
sys/scsi/mpath.c
553
mtx_enter(&d->d_mtx);
sys/scsi/mpath.c
555
if (d->d_next_path == p)
sys/scsi/mpath.c
556
d->d_next_path = TAILQ_FIRST(&g->g_paths);
sys/scsi/mpath.c
559
TAILQ_REMOVE(&d->d_groups, g, g_entry);
sys/scsi/mpath.c
563
if (!SIMPLEQ_EMPTY(&d->d_xfers))
sys/scsi/mpath.c
564
np = d->d_next_path;
sys/scsi/mpath.c
565
mtx_leave(&d->d_mtx);
sys/scsi/mpath.c
573
mpath_failover(d);
sys/scsi/mpath.c
584
struct mpath_dev *d;
sys/scsi/mpath.c
593
if ((d = sc->sc_devs[target]) == NULL)
sys/scsi/mpath.c
596
TAILQ_FOREACH(g, &d->d_groups, g_entry) {
sys/scsi/scsiconf.c
1339
struct devid *d;
sys/scsi/scsiconf.c
1341
d = malloc(sizeof(*d) + len, M_DEVBUF, M_WAITOK|M_CANFAIL);
sys/scsi/scsiconf.c
1342
if (d == NULL)
sys/scsi/scsiconf.c
1345
d->d_type = type;
sys/scsi/scsiconf.c
1346
d->d_flags = flags;
sys/scsi/scsiconf.c
1347
d->d_len = len;
sys/scsi/scsiconf.c
1348
d->d_refcount = 1;
sys/scsi/scsiconf.c
1349
memcpy(d + 1, id, len);
sys/scsi/scsiconf.c
1351
return d;
sys/scsi/scsiconf.c
1355
devid_copy(struct devid *d)
sys/scsi/scsiconf.c
1357
d->d_refcount++;
sys/scsi/scsiconf.c
1358
return d;
sys/scsi/scsiconf.c
1362
devid_free(struct devid *d)
sys/scsi/scsiconf.c
1364
if (--d->d_refcount == 0)
sys/scsi/scsiconf.c
1365
free(d, M_DEVBUF, sizeof(*d) + d->d_len);
sys/scsi/ses.h
188
#define SES_S_PSU_IDENT(d) ((d)->f1 & (1<<6)) /* identify */
sys/scsi/ses.h
189
#define SES_S_PSU_DCOC(d) ((d)->f2 & (1<<1)) /* DC over current */
sys/scsi/ses.h
190
#define SES_S_PSU_DCUV(d) ((d)->f2 & (1<<2)) /* DC under voltage */
sys/scsi/ses.h
191
#define SES_S_PSU_DCOV(d) ((d)->f2 & (1<<3)) /* DC over voltage */
sys/scsi/ses.h
192
#define SES_S_PSU_DCFAIL(d) ((d)->f3 & (1<<0)) /* DC fail */
sys/scsi/ses.h
193
#define SES_S_PSU_ACFAIL(d) ((d)->f3 & (1<<1)) /* AC fail */
sys/scsi/ses.h
194
#define SES_S_PSU_TEMPWARN(d) ((d)->f3 & (1<<2)) /* Temp warn */
sys/scsi/ses.h
195
#define SES_S_PSU_OVERTEMP(d) ((d)->f3 & (1<<3)) /* over temp fail */
sys/scsi/ses.h
196
#define SES_S_PSU_OFF(d) ((d)->f3 & (1<<4)) /* is the unit off */
sys/scsi/ses.h
197
#define SES_S_PSU_RQSTON(d) ((d)->f3 & (1<<5)) /* manually on */
sys/scsi/ses.h
198
#define SES_S_PSU_FAIL(d) ((d)->f3 & (1<<6)) /* fail is set on */
sys/scsi/ses.h
201
#define SES_S_COOL_IDENT(d) ((d)->f1 & (1<<6)) /* identify */
sys/scsi/ses.h
203
#define SES_S_COOL_SPEED(d) ((d)->f2 + \
sys/scsi/ses.h
204
((u_int16_t)((d)->f2 & SES_S_COOL_SPEED_MASK) << 8))
sys/scsi/ses.h
206
#define SES_S_COOL_CODE(d) ((d)->f3 & 0x7) /* actual speed code */
sys/scsi/ses.h
215
#define SES_S_COOL_OFF ((d)->f3 & (1<<4)) /* not cooling */
sys/scsi/ses.h
216
#define SES_S_COOL_RQSTON ((d)->f3 & (1<<5)) /* manually on */
sys/scsi/ses.h
217
#define SES_S_COOL_FAIL ((d)->f3 & (1<<6)) /* fail indic is on */
sys/scsi/ses.h
220
#define SES_S_TEMP_IDENT(d) ((d)->f1 & (1<<7)) /* identify */
sys/scsi/ses.h
221
#define SES_S_TEMP(d) ((d)->f2)
sys/scsi/ses.h
223
#define SES_S_TEMP_UTWARN ((d)->f3 & (1<<0)) /* under temp warning */
sys/scsi/ses.h
224
#define SES_S_TEMP_UTFAIL ((d)->f3 & (1<<1)) /* under temp failure */
sys/scsi/ses.h
225
#define SES_S_TEMP_OTWARN ((d)->f3 & (1<<2)) /* over temp warning */
sys/scsi/ses.h
226
#define SES_S_TEMP_OTFAIL ((d)->f3 & (1<<3)) /* over temp failure */
sys/sys/device.h
242
#define config_found(d, a, p) config_found_sm((d), (a), (p), NULL)
sys/sys/disklabel.h
159
#define DL_GETDSIZE(d) (((u_int64_t)(d)->d_secperunith << 32) + \
sys/sys/disklabel.h
160
(d)->d_secperunit)
sys/sys/disklabel.h
161
#define DL_SETDSIZE(d, n) do { \
sys/sys/disklabel.h
163
(d)->d_secperunith = __x >> 32; \
sys/sys/disklabel.h
164
(d)->d_secperunit = __x; \
sys/sys/disklabel.h
166
#define DL_GETBSTART(d) (((u_int64_t)(d)->d_bstarth << 32) + \
sys/sys/disklabel.h
167
(d)->d_bstart)
sys/sys/disklabel.h
168
#define DL_SETBSTART(d, n) do { \
sys/sys/disklabel.h
170
(d)->d_bstarth = __x >> 32; \
sys/sys/disklabel.h
171
(d)->d_bstart = __x; \
sys/sys/disklabel.h
173
#define DL_GETBEND(d) (((u_int64_t)(d)->d_bendh << 32) + \
sys/sys/disklabel.h
174
(d)->d_bend)
sys/sys/disklabel.h
175
#define DL_SETBEND(d, n) do { \
sys/sys/disklabel.h
177
(d)->d_bendh = __x >> 32; \
sys/sys/disklabel.h
178
(d)->d_bend = __x; \
sys/sys/disklabel.h
181
#define DL_BLKSPERSEC(d) ((d)->d_secsize / DEV_BSIZE)
sys/sys/disklabel.h
182
#define DL_SECTOBLK(d, n) ((n) * DL_BLKSPERSEC(d))
sys/sys/disklabel.h
183
#define DL_BLKTOSEC(d, n) ((n) / DL_BLKSPERSEC(d))
sys/sys/disklabel.h
184
#define DL_BLKOFFSET(d, n) (((n) % DL_BLKSPERSEC(d)) * DEV_BSIZE)
sys/sys/event.h
47
#define EV_SET(kevp, a, b, c, d, e, f) do { \
sys/sys/event.h
52
(__kevp)->fflags = (d); \
sys/sys/fusebuf.h
293
#define FUSE_DIRENT_SIZE(d) \
sys/sys/fusebuf.h
294
FUSE_DIRENT_ALIGN(FUSE_NAME_OFFSET + (d)->namelen)
sys/sys/systm.h
405
#define memcpy(d, s, n) __builtin_memcpy((d), (s), (n))
sys/sys/systm.h
408
#define memmove(d, s, n) __builtin_memmove((d), (s), (n))
sys/sys/systm.h
412
#define bcopy(s, d, n) __builtin_bcopy((s), (d), (n))
sys/sys/varargs.h
45
#define __va_copy(d,s) __builtin_va_copy((d),(s))
sys/sys/videoio.h
3718
#define v4l2_fourcc(a, b, c, d)\
sys/sys/videoio.h
3719
((u_int32_t)(a) | ((u_int32_t)(b) << 8) | ((u_int32_t)(c) << 16) | ((u_int32_t)(d) << 24))
sys/sys/videoio.h
3720
#define v4l2_fourcc_be(a, b, c, d) (v4l2_fourcc(a, b, c, d) | (1U << 31))
sys/ufs/ext2fs/ext2fs.h
420
#define dtog(fs, d) (((d) - (fs)->e2fs.e2fs_first_dblock) / (fs)->e2fs.e2fs_fpg)
sys/ufs/ext2fs/ext2fs.h
421
#define dtogd(fs, d) \
sys/ufs/ext2fs/ext2fs.h
422
(((d) - (fs)->e2fs.e2fs_first_dblock) % (fs)->e2fs.e2fs_fpg)
sys/ufs/ffs/fs.h
494
#define dtog(fs, d) ((d) / (fs)->fs_fpg)
sys/ufs/ffs/fs.h
495
#define dtogd(fs, d) ((d) % (fs)->fs_fpg)
usr.bin/awk/parse.c
105
x->narg[2] = d;
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
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
72
Node *node3(int a, Node *b, Node *c, Node *d)
usr.bin/awk/parse.c
80
x->narg[2] = d;
usr.bin/awk/parse.c
84
Node *node4(int a, Node *b, Node *c, Node *d, Node *e)
usr.bin/awk/parse.c
92
x->narg[2] = d;
usr.bin/awk/parse.c
97
Node *node5(int a, Node *b, Node *c, Node *d, Node *e, Node *f)
usr.bin/awk/tran.c
415
static const char *get_inf_nan(double d)
usr.bin/awk/tran.c
417
if (isinf(d)) {
usr.bin/awk/tran.c
418
return (d < 0 ? "-inf" : "+inf");
usr.bin/awk/tran.c
419
} else if (isnan(d)) {
usr.bin/awk/tran.c
420
return (signbit(d) != 0 ? "-nan" : "+nan");
usr.bin/banner/banner.c
112
int d, scnhgt;
usr.bin/banner/banner.c
125
d = dropit(c);
usr.bin/banner/banner.c
126
if ((!d && scnhgt > HEIGHT) || (scnhgt <= DROP && d))
usr.bin/banner/banner.c
130
strp = scnline(scnkey[(int)c][scnhgt-1-d], strp, cc);
usr.bin/cal/cal.c
273
int a, b, c, s, e, f, g, d, n;
usr.bin/cal/cal.c
287
d = (f + g - e) % 7;
usr.bin/cal/cal.c
288
n = f + 3 - d;
usr.bin/calendar/paskha.c
39
int a, b, c, d, e;
usr.bin/calendar/paskha.c
47
d = (19*a + x) % 30;
usr.bin/calendar/paskha.c
48
e = (2*b + 4*c + 6*d + y) % 7;
usr.bin/calendar/paskha.c
52
return ((cumdays + 22) + (d + e) + 13);
usr.bin/calendar/pesach.c
34
double d;
usr.bin/calendar/pesach.c
40
d = (T - 10 * K + L + 14) + K * a + b / 4. - L * y;
usr.bin/calendar/pesach.c
41
cumdays = d;
usr.bin/calendar/pesach.c
46
if (a > 6 && d - cumdays >= (15. + 204. / 1080.) / 24.)
usr.bin/calendar/pesach.c
51
if (a <= 11 || d - cumdays < (21. + 589. / 1080.) / 24.)
usr.bin/ctfconv/dw.c
104
while (shift < 64 && !dw_read_u8(d, &x)) {
usr.bin/ctfconv/dw.c
118
dw_read_sleb128(struct dwbuf *d, int64_t *v)
usr.bin/ctfconv/dw.c
120
return dw_read_leb128(d, (uint64_t *)v, 1);
usr.bin/ctfconv/dw.c
124
dw_read_uleb128(struct dwbuf *d, uint64_t *v)
usr.bin/ctfconv/dw.c
126
return dw_read_leb128(d, v, 0);
usr.bin/ctfconv/dw.c
131
dw_read_string(struct dwbuf *d, const char **s)
usr.bin/ctfconv/dw.c
133
const char *end = memchr(d->buf, '\0', d->len);
usr.bin/ctfconv/dw.c
139
n = end - d->buf + 1;
usr.bin/ctfconv/dw.c
140
*s = d->buf;
usr.bin/ctfconv/dw.c
141
d->buf += n;
usr.bin/ctfconv/dw.c
142
d->len -= n;
usr.bin/ctfconv/dw.c
147
dw_read_buf(struct dwbuf *d, struct dwbuf *v, size_t n)
usr.bin/ctfconv/dw.c
149
if (d->len < n)
usr.bin/ctfconv/dw.c
151
v->buf = d->buf;
usr.bin/ctfconv/dw.c
153
d->buf += n;
usr.bin/ctfconv/dw.c
154
d->len -= n;
usr.bin/ctfconv/dw.c
159
dw_skip_bytes(struct dwbuf *d, size_t n)
usr.bin/ctfconv/dw.c
161
if (d->len < n)
usr.bin/ctfconv/dw.c
163
d->buf += n;
usr.bin/ctfconv/dw.c
164
d->len -= n;
usr.bin/ctfconv/dw.c
62
dw_read_bytes(struct dwbuf *d, void *v, size_t n)
usr.bin/ctfconv/dw.c
64
if (d->len < n)
usr.bin/ctfconv/dw.c
66
memcpy(v, d->buf, n);
usr.bin/ctfconv/dw.c
67
d->buf += n;
usr.bin/ctfconv/dw.c
68
d->len -= n;
usr.bin/ctfconv/dw.c
73
dw_read_u8(struct dwbuf *d, uint8_t *v)
usr.bin/ctfconv/dw.c
75
return dw_read_bytes(d, v, sizeof(*v));
usr.bin/ctfconv/dw.c
79
dw_read_u16(struct dwbuf *d, uint16_t *v)
usr.bin/ctfconv/dw.c
81
return dw_read_bytes(d, v, sizeof(*v));
usr.bin/ctfconv/dw.c
85
dw_read_u32(struct dwbuf *d, uint32_t *v)
usr.bin/ctfconv/dw.c
87
return dw_read_bytes(d, v, sizeof(*v));
usr.bin/ctfconv/dw.c
91
dw_read_u64(struct dwbuf *d, uint64_t *v)
usr.bin/ctfconv/dw.c
93
return dw_read_bytes(d, v, sizeof(*v));
usr.bin/ctfconv/dw.c
98
dw_read_leb128(struct dwbuf *d, uint64_t *v, int signextend)
usr.bin/cvs/admin.c
249
char *d, dbuf[PATH_MAX], *f, fbuf[PATH_MAX];
usr.bin/cvs/admin.c
259
if ((d = dirname(dbuf)) == NULL)
usr.bin/cvs/admin.c
262
cvs_get_repository_path(d, repo, PATH_MAX);
usr.bin/cvs/admin.c
274
ocf = cvs_file_get_cf(d, f, oldfilename, ofd, CVS_FILE, 0);
usr.bin/cvs/checkout.c
237
char *wdir, *d;
usr.bin/cvs/checkout.c
338
d = wdir;
usr.bin/cvs/checkout.c
344
"%s/%s", d, basename(path));
usr.bin/cvs/checkout.c
350
d = dirname(path);
usr.bin/cvs/checkout.c
356
cvs_mkpath(d, cvs_specified_tag);
usr.bin/cvs/checkout.c
401
char *d, dbuf[PATH_MAX], *f, fbuf[PATH_MAX], fpath[PATH_MAX];
usr.bin/cvs/checkout.c
411
d = dirname(dbuf);
usr.bin/cvs/checkout.c
417
(void)xsnprintf(fpath, sizeof(fpath), "%s/%s%s", d, f, RCS_FILE_EXT);
usr.bin/cvs/checkout.c
427
d, CVS_PATH_ATTIC, f, RCS_FILE_EXT);
usr.bin/cvs/client.c
134
char *d;
usr.bin/cvs/client.c
151
d = buf_release(bp);
usr.bin/cvs/client.c
152
return (d);
usr.bin/cvs/client.c
408
char *d, *date, fpath[PATH_MAX], repo[PATH_MAX], *tag;
usr.bin/cvs/client.c
410
d = NULL;
usr.bin/cvs/client.c
426
d = xstrdup(dir);
usr.bin/cvs/client.c
427
cvs_parse_tagfile(d, &tag, &date, &nb);
usr.bin/cvs/client.c
451
free(d);
usr.bin/cvs/commit.c
402
BUF *b, *d;
usr.bin/cvs/commit.c
449
d = NULL;
usr.bin/cvs/commit.c
565
d = commit_diff(cf, cf->file_rcs->rf_head, 0);
usr.bin/cvs/commit.c
576
if (rcs_deltatext_set(cf->file_rcs, crev, d) == -1)
usr.bin/cvs/commit.c
689
int fd1, fd2, d;
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
715
if (d == D_ERROR)
usr.bin/cvs/date.y
873
time_t d;
usr.bin/cvs/date.y
878
d = date_parse(buff);
usr.bin/cvs/date.y
879
if (d == -1)
usr.bin/cvs/date.y
882
(void)printf("%s", ctime(&d));
usr.bin/cvs/diff3.c
440
int a, b, c, d;
usr.bin/cvs/diff3.c
457
c = d = number(&p);
usr.bin/cvs/diff3.c
460
d = number(&p);
usr.bin/cvs/diff3.c
467
d++;
usr.bin/cvs/diff3.c
471
(*dd)[i].new.to = d;
usr.bin/cvs/diff3.c
733
int c,d;
usr.bin/cvs/diff3.c
745
d = getc(fp[1]);
usr.bin/cvs/diff3.c
746
if (c == -1 && d == -1)
usr.bin/cvs/diff3.c
748
if (c == -1 || d== -1)
usr.bin/cvs/diff3.c
751
if (c != d) {
usr.bin/cvs/diff_internals.c
1023
c > context_vec_ptr->d + (2 * diff_context) + 1) {
usr.bin/cvs/diff_internals.c
1037
context_vec_ptr->d = d;
usr.bin/cvs/diff_internals.c
1047
diff_output("%c", a > b ? 'a' : c > d ? 'd' : 'c');
usr.bin/cvs/diff_internals.c
1049
range(c, d, ",");
usr.bin/cvs/diff_internals.c
1054
diff_output("a%d %d\n", b, d - c + 1);
usr.bin/cvs/diff_internals.c
1058
if (!(c > d)) /* add changed lines */
usr.bin/cvs/diff_internals.c
1059
diff_output("a%d %d\n", b, d - c + 1);
usr.bin/cvs/diff_internals.c
1065
if (a <= b && c <= d && diff_format == D_NORMAL)
usr.bin/cvs/diff_internals.c
1068
fetch(ixnew, c, d, f2, diff_format == D_NORMAL ? '>' : '\0', 0, flags);
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
1284
upd = MINIMUM(len[1], context_vec_ptr->d + diff_context);
usr.bin/cvs/diff_internals.c
1313
d = cvp->d;
usr.bin/cvs/diff_internals.c
1315
if (a <= b && c <= d)
usr.bin/cvs/diff_internals.c
1339
if (cvp->c <= cvp->d) {
usr.bin/cvs/diff_internals.c
1349
d = cvp->d;
usr.bin/cvs/diff_internals.c
1351
if (a <= b && c <= d)
usr.bin/cvs/diff_internals.c
1357
fetch(ixnew, lowc, d, f2, ' ', 0, flags);
usr.bin/cvs/diff_internals.c
1360
fetch(ixnew, c, d, f2,
usr.bin/cvs/diff_internals.c
1363
lowc = d + 1;
usr.bin/cvs/diff_internals.c
1366
fetch(ixnew, d + 1, upd, f2, ' ', 0, flags);
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
1387
upd = MINIMUM(len[1], context_vec_ptr->d + diff_context);
usr.bin/cvs/diff_internals.c
1409
d = cvp->d;
usr.bin/cvs/diff_internals.c
1416
if (a <= b && c <= d)
usr.bin/cvs/diff_internals.c
1425
fetch(ixnew, c, d, f2, '+', 0, flags);
usr.bin/cvs/diff_internals.c
1433
fetch(ixnew, c, d, f2, '+', 0, flags);
usr.bin/cvs/diff_internals.c
1437
lowc = d + 1;
usr.bin/cvs/diff_internals.c
1439
fetch(ixnew, d + 1, upd, f2, ' ', 0, flags);
usr.bin/cvs/diff_internals.c
174
int d; /* end line in new file */
usr.bin/cvs/diff_internals.c
652
int i, j, jackpot, c, d;
usr.bin/cvs/diff_internals.c
673
d = getc(f2);
usr.bin/cvs/diff_internals.c
679
((c == EOF && d == '\n') ||
usr.bin/cvs/diff_internals.c
680
(c == '\n' && d == EOF))) {
usr.bin/cvs/diff_internals.c
686
isspace(d)) {
usr.bin/cvs/diff_internals.c
693
if (d == '\n')
usr.bin/cvs/diff_internals.c
696
} while (isspace(d = getc(f2)));
usr.bin/cvs/diff_internals.c
702
while (isspace(d) && d != '\n') {
usr.bin/cvs/diff_internals.c
703
d = getc(f2);
usr.bin/cvs/diff_internals.c
707
if (chrtran[c] != chrtran[d]) {
usr.bin/cvs/diff_internals.c
712
if (d != '\n' && c != EOF)
usr.bin/cvs/diff_internals.c
723
if ((c = getc(f1)) != (d = getc(f2))) {
usr.bin/cvs/diff_internals.c
728
if (d != '\n' && c != EOF)
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
989
if (a > b || c <= d) { /* Changes and inserts. */
usr.bin/cvs/diff_internals.c
990
for (i = c; i <= d; i++) {
usr.bin/cvs/file.c
230
cvs_file_get_cf(const char *d, const char *f, const char *fpath, int fd,
usr.bin/cvs/file.c
242
cf->file_wd = xstrdup(d);
usr.bin/cvs/file.c
268
char *d, dbuf[PATH_MAX], *f, fbuf[PATH_MAX];
usr.bin/cvs/file.c
285
if ((d = dirname(dbuf)) == NULL)
usr.bin/cvs/file.c
316
if (stat(d, &st) == -1) {
usr.bin/cvs/file.c
317
cvs_log(LP_ERRNO, "%s", d);
usr.bin/cvs/file.c
321
cvs_get_repository_path(d, repo, PATH_MAX);
usr.bin/cvs/file.c
356
cf = cvs_file_get_cf(d, f, l->file_path, fd, type, l->flags);
usr.bin/cvs/import.c
393
BUF *b1, *b2, *d;
usr.bin/cvs/import.c
438
d = import_get_rcsdiff(cf, rev);
usr.bin/cvs/import.c
444
if (rcs_deltatext_set(cf->file_rcs, newrev, d) == -1)
usr.bin/cvs/server.c
218
char *d;
usr.bin/cvs/server.c
236
d = buf_release(bp);
usr.bin/cvs/server.c
238
cvs_server_send_response("Valid-requests %s", d);
usr.bin/cvs/server.c
240
free(d);
usr.bin/dc/bcode.c
695
uint d;
usr.bin/dc/bcode.c
709
d = 0;
usr.bin/dc/bcode.c
715
d = (c * bits) >> 32;
usr.bin/dc/bcode.c
718
if (d != (c * (bits - 1)) >> 32) {
usr.bin/dc/bcode.c
725
bn_check(BN_set_word(p, d));
usr.bin/dc/bcode.c
729
d++;
usr.bin/dc/bcode.c
734
d++;
usr.bin/dc/bcode.c
739
return d + n->scale;
usr.bin/diff/diffreg.c
1021
c > context_vec_ptr->d + (2 * diff_context) + 1) {
usr.bin/diff/diffreg.c
1035
context_vec_ptr->d = d;
usr.bin/diff/diffreg.c
1046
diff_output("%c", a > b ? 'a' : c > d ? 'd' : 'c');
usr.bin/diff/diffreg.c
1048
range(c, d, ",");
usr.bin/diff/diffreg.c
1052
diff_output("%c", a > b ? 'a' : c > d ? 'd' : 'c');
usr.bin/diff/diffreg.c
1058
diff_output("a%d %d\n", b, d - c + 1);
usr.bin/diff/diffreg.c
1061
if (!(c > d))
usr.bin/diff/diffreg.c
1063
diff_output("a%d %d\n", b, d - c + 1);
usr.bin/diff/diffreg.c
1069
if (a <= b && c <= d && diff_format == D_NORMAL)
usr.bin/diff/diffreg.c
1072
i = fetch(ixnew, c, d, f2, diff_format == D_NORMAL ? '>' : '\0', 0, *pflags);
usr.bin/diff/diffreg.c
1088
if ((diff_format == D_EDIT || diff_format == D_REVERSE) && c <= d)
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
1313
upd = MINIMUM(len[1], context_vec_ptr->d + diff_context);
usr.bin/diff/diffreg.c
1342
d = cvp->d;
usr.bin/diff/diffreg.c
1344
if (a <= b && c <= d)
usr.bin/diff/diffreg.c
1368
if (cvp->c <= cvp->d) {
usr.bin/diff/diffreg.c
1378
d = cvp->d;
usr.bin/diff/diffreg.c
1380
if (a <= b && c <= d)
usr.bin/diff/diffreg.c
1386
fetch(ixnew, lowc, d, f2, ' ', 0, flags);
usr.bin/diff/diffreg.c
1389
fetch(ixnew, c, d, f2,
usr.bin/diff/diffreg.c
1392
lowc = d + 1;
usr.bin/diff/diffreg.c
1395
fetch(ixnew, d + 1, upd, f2, ' ', 0, flags);
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
1416
upd = MINIMUM(len[1], context_vec_ptr->d + diff_context);
usr.bin/diff/diffreg.c
1438
d = cvp->d;
usr.bin/diff/diffreg.c
1445
if (a <= b && c <= d)
usr.bin/diff/diffreg.c
1454
fetch(ixnew, c, d, f2, '+', 0, flags);
usr.bin/diff/diffreg.c
1462
fetch(ixnew, c, d, f2, '+', 0, flags);
usr.bin/diff/diffreg.c
1466
lowc = d + 1;
usr.bin/diff/diffreg.c
1468
fetch(ixnew, d + 1, upd, f2, ' ', 0, flags);
usr.bin/diff/diffreg.c
176
int d; /* end line in new file */
usr.bin/diff/diffreg.c
701
int i, j, jackpot, c, d;
usr.bin/diff/diffreg.c
722
d = getc(f2);
usr.bin/diff/diffreg.c
728
if (c == EOF && d == '\n') {
usr.bin/diff/diffreg.c
731
} else if (c == '\n' && d == EOF) {
usr.bin/diff/diffreg.c
739
isspace(d)) {
usr.bin/diff/diffreg.c
746
if (d == '\n')
usr.bin/diff/diffreg.c
749
} while (isspace(d = getc(f2)));
usr.bin/diff/diffreg.c
755
while (isspace(d) && d != '\n') {
usr.bin/diff/diffreg.c
756
d = getc(f2);
usr.bin/diff/diffreg.c
760
if (chrtran[c] != chrtran[d]) {
usr.bin/diff/diffreg.c
765
if (d != '\n' && c != EOF)
usr.bin/diff/diffreg.c
776
if ((c = getc(f1)) != (d = getc(f2))) {
usr.bin/diff/diffreg.c
781
if (d != '\n' && c != EOF)
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
987
if (a > b || c <= d) { /* Changes and inserts. */
usr.bin/diff/diffreg.c
988
for (i = c; i <= d; i++) {
usr.bin/diff3/diff3prog.c
206
int a, b, c, d, i;
usr.bin/diff3/diff3prog.c
221
c = d = number(&p);
usr.bin/diff3/diff3prog.c
224
d = number(&p);
usr.bin/diff3/diff3prog.c
231
d++;
usr.bin/diff3/diff3prog.c
235
(*dd)[i].new.to = d;
usr.bin/diff3/diff3prog.c
484
int c,d;
usr.bin/diff3/diff3prog.c
496
d = getc(fp[1]);
usr.bin/diff3/diff3prog.c
497
if (c == -1 && d == -1)
usr.bin/diff3/diff3prog.c
499
if (c == -1 || d== -1)
usr.bin/diff3/diff3prog.c
502
if (c != d) {
usr.bin/ftp/ftp.c
1062
errno = d = 0;
usr.bin/ftp/ftp.c
1068
d = 0;
usr.bin/ftp/ftp.c
1070
wr = write(fileno(fout), buf + d, rd);
usr.bin/ftp/ftp.c
1072
d = -1;
usr.bin/ftp/ftp.c
1075
d += wr;
usr.bin/ftp/ftp.c
1077
} while (d < c);
usr.bin/ftp/ftp.c
1089
if (c == -1 || d < c)
usr.bin/ftp/ftp.c
1102
if (d < c) {
usr.bin/ftp/ftp.c
1103
if (d < 0)
usr.bin/ftp/ftp.c
1967
int d, count=0;
usr.bin/ftp/ftp.c
1972
d = access(cp == local ? "/" : cp ? local : ".", W_OK);
usr.bin/ftp/ftp.c
1975
if (d == -1) {
usr.bin/ftp/ftp.c
1982
while (!d) {
usr.bin/ftp/ftp.c
1993
if ((d = access(new, F_OK)) == -1)
usr.bin/ftp/ftp.c
579
int c, d;
usr.bin/ftp/ftp.c
745
d = 0;
usr.bin/ftp/ftp.c
749
for (bufp = buf; c > 0; c -= d, bufp += d)
usr.bin/ftp/ftp.c
750
if ((d = write(fileno(dout), bufp, (size_t)c))
usr.bin/ftp/ftp.c
761
if (c == -1 || d == -1)
usr.bin/ftp/ftp.c
771
if (d < 0) {
usr.bin/ftp/ftp.c
873
int c, d, serrno;
usr.bin/ftp/ftp.c
941
d = access(dir == local ? "/" : dir ? local : ".", W_OK);
usr.bin/ftp/ftp.c
944
if (d == -1) {
usr.bin/grep/util.c
497
#define wmatch(d, l, s, e) \
usr.bin/grep/util.c
498
((s == 0 || !isword(d[s-1])) && (e == l || !isword(d[e])) && \
usr.bin/grep/util.c
499
e > s && isword(d[s]) && isword(d[e-1]))
usr.bin/kstat/kstat.c
334
hexdump(const void *d, size_t datalen)
usr.bin/kstat/kstat.c
336
const uint8_t *data = d;
usr.bin/kstat/kstat.c
384
kstat_kv(const void *d, ssize_t len)
usr.bin/kstat/kstat.c
398
buf = d;
usr.bin/ldap/aldap.c
1113
int d;
usr.bin/ldap/aldap.c
1251
if (ober_get_boolean(root, &d) == -1) {
usr.bin/ldap/aldap.c
1255
fprintf(stderr, "%s(%d)\n", d ? "true" : "false", d);
usr.bin/lex/ccl.c
128
int d, ch;
usr.bin/lex/ccl.c
131
d = cclinit();
usr.bin/lex/ccl.c
140
ccladd(d, ch);
usr.bin/lex/ccl.c
150
dump_cclp(stderr, d);
usr.bin/lex/ccl.c
153
return d;
usr.bin/lex/ccl.c
160
int d, i;
usr.bin/lex/ccl.c
163
d = cclinit();
usr.bin/lex/ccl.c
167
ccladd(d, ccltbl[cclmap[a] + 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
181
dump_cclp(stderr, d);
usr.bin/lex/ccl.c
184
return d;
usr.bin/lex/gen.c
1325
int d = def[i];
usr.bin/lex/gen.c
1330
if (d == JAMSTATE)
usr.bin/lex/gen.c
1333
else if (d < 0) {
usr.bin/lex/gen.c
1336
def[i] = lastdfa - d + 1;
usr.bin/lex/tblcmp.c
163
d = tbldiff(state, i, extrct[1 - extptr]);
usr.bin/lex/tblcmp.c
164
if (d < mindiff) {
usr.bin/lex/tblcmp.c
166
mindiff = d;
usr.bin/lex/tblcmp.c
87
int mindiff, minprot, i, d;
usr.bin/m4/extern.h
81
#define macro_getdef(p) ((p)->d)
usr.bin/m4/look.c
108
return p->d;
usr.bin/m4/look.c
114
setup_definition(struct macro_definition *d, const char *defn, const char *name)
usr.bin/m4/look.c
120
d->type = macro_builtin_type(p);
usr.bin/m4/look.c
121
d->defn = xstrdup(defn+sizeof(BUILTIN_MARKER)-1);
usr.bin/m4/look.c
124
d->defn = null;
usr.bin/m4/look.c
126
d->defn = xstrdup(defn);
usr.bin/m4/look.c
127
d->type = MACROTYPE;
usr.bin/m4/look.c
130
d->type |= RECDEF;
usr.bin/m4/look.c
147
n->d = NULL;
usr.bin/m4/look.c
156
if (n->d != NULL) {
usr.bin/m4/look.c
157
if (n->d->defn != null)
usr.bin/m4/look.c
158
free_definition(n->d->defn);
usr.bin/m4/look.c
160
n->d = xalloc(sizeof(struct macro_definition), NULL);
usr.bin/m4/look.c
161
n->d->next = NULL;
usr.bin/m4/look.c
163
setup_definition(n->d, defn, name);
usr.bin/m4/look.c
170
struct macro_definition *d;
usr.bin/m4/look.c
173
d = xalloc(sizeof(struct macro_definition), NULL);
usr.bin/m4/look.c
174
d->next = n->d;
usr.bin/m4/look.c
175
n->d = d;
usr.bin/m4/look.c
176
setup_definition(n->d, defn, name);
usr.bin/m4/look.c
186
for (r = n->d; r != NULL; r = r2) {
usr.bin/m4/look.c
192
n->d = NULL;
usr.bin/m4/look.c
202
struct macro_definition *r = n->d;
usr.bin/m4/look.c
204
n->d = r->next;
usr.bin/m4/look.c
220
if (n->d != NULL)
usr.bin/m4/look.c
221
f(n->name, n->d);
usr.bin/m4/look.c
239
n->d = xalloc(sizeof(struct macro_definition), NULL);
usr.bin/m4/look.c
240
n->d->defn = name2;
usr.bin/m4/look.c
241
n->d->type = type;
usr.bin/m4/look.c
242
n->d->next = NULL;
usr.bin/m4/mdef.h
145
struct macro_definition *d;
usr.bin/m4/misc.c
119
pbnumbase(int n, int base, int d)
usr.bin/m4/misc.c
140
while (printed++ < d)
usr.bin/mail/lex.c
629
int u, n, mdot, d, s;
usr.bin/mail/lex.c
643
s = d = 0;
usr.bin/mail/lex.c
650
d++;
usr.bin/mail/lex.c
672
if (d > 0)
usr.bin/mail/lex.c
673
printf(" %d deleted", d);
usr.bin/mail/util.c
231
char *d = dst;
usr.bin/mail/util.c
238
if ((*d++ = tolower((unsigned char)*s++)) == 0)
usr.bin/mail/util.c
246
*d = '\0'; /* NUL-terminate dst */
usr.bin/make/dir.c
298
DIR *d;
usr.bin/make/dir.c
306
if ((d = opendir(p->name)) == NULL)
usr.bin/make/dir.c
311
while ((dp = readdir(d)) != NULL) {
usr.bin/make/dir.c
318
(void)closedir(d);
usr.bin/make/lst.h
157
#define Lst_ForEach(l, proc, d) Lst_ForEachFrom(Lst_First(l), proc, d)
usr.bin/make/lst.h
158
#define Lst_Find(l, cProc, d) Lst_FindFrom(Lst_First(l), cProc, d)
usr.bin/make/lst.h
163
Lst_FindConst(Lst l, FindProcConst cProc, const void *d)
usr.bin/make/lst.h
165
return Lst_FindFrom(Lst_First(l), (FindProc)cProc, (void *)d);
usr.bin/make/lst.h
169
Lst_FindFromConst(LstNode ln, FindProcConst cProc, const void *d)
usr.bin/make/lst.h
171
return Lst_FindFrom(ln, (FindProc)cProc, (void *)d);
usr.bin/make/lst.lib/lst.h
152
#define Lst_ForEach(l, proc, d) Lst_ForEachFrom(Lst_First(l), proc, d)
usr.bin/make/lst.lib/lst.h
153
#define Lst_Find(l, cProc, d) Lst_FindFrom(Lst_First(l), cProc, d)
usr.bin/make/lst.lib/lst.h
158
Lst_FindConst(Lst l, FindProcConst cProc, const void *d)
usr.bin/make/lst.lib/lst.h
160
return Lst_FindFrom(Lst_First(l), (FindProc)cProc, (void *)d);
usr.bin/make/lst.lib/lst.h
164
Lst_FindFromConst(LstNode ln, FindProcConst cProc, const void *d)
usr.bin/make/lst.lib/lst.h
166
return Lst_FindFrom(ln, (FindProc)cProc, (void *)d);
usr.bin/make/lst.lib/lstAddNew.c
39
Lst_AddNew(Lst l, void *d)
usr.bin/make/lst.lib/lstAddNew.c
41
if (Lst_Member(l, d) != NULL)
usr.bin/make/lst.lib/lstAddNew.c
44
Lst_AtEnd(l, d);
usr.bin/make/lst.lib/lstAppend.c
60
Lst_Append(Lst l, LstNode after, void *d)
usr.bin/make/lst.lib/lstAppend.c
65
nLNode->datum = d;
usr.bin/make/lst.lib/lstAppend.c
79
Lst_AtEnd(Lst l, void *d)
usr.bin/make/lst.lib/lstAppend.c
84
ln->datum = d;
usr.bin/make/lst.lib/lstFindFrom.c
56
Lst_FindFrom(LstNode ln, FindProc cProc, void *d)
usr.bin/make/lst.lib/lstFindFrom.c
61
if (!(*cProc)(tln->datum, d))
usr.bin/make/lst.lib/lstForEachFrom.c
57
Lst_ForEachFrom(LstNode ln, ForEachProc proc, void *d)
usr.bin/make/lst.lib/lstForEachFrom.c
62
(*proc)(tln->datum, d);
usr.bin/make/lst.lib/lstInsert.c
59
Lst_Insert(Lst l, LstNode before, void *d)
usr.bin/make/lst.lib/lstInsert.c
72
nLNode->datum = d;
usr.bin/make/lst.lib/lstInsert.c
91
Lst_AtFront(Lst l, void *d)
usr.bin/make/lst.lib/lstInsert.c
96
ln->datum = d;
usr.bin/make/lst.lib/lstMember.c
45
Lst_Member(Lst l, void *d)
usr.bin/make/lst.lib/lstMember.c
50
if (lNode->datum == d)
usr.bin/make/lst.lib/lstReplace.c
51
Lst_Replace(LstNode ln, void *d)
usr.bin/make/lst.lib/lstReplace.c
54
ln->datum = d;
usr.bin/make/main.c
540
chdir_verify_path(const char *path, struct dirs *d)
usr.bin/make/main.c
544
return Str_concat(d->current, path, '/');
usr.bin/make/main.c
552
setup_CURDIR_OBJDIR(struct dirs *d)
usr.bin/make/main.c
556
d->current = figure_out_CURDIR();
usr.bin/make/main.c
569
d->object = chdir_verify_path(path, d);
usr.bin/make/main.c
570
if (d->object == NULL)
usr.bin/make/main.c
571
d->object = d->current;
usr.bin/make/main.c
592
read_makefile_list(Lst mk, struct dirs *d)
usr.bin/make/main.c
595
ln = Lst_Find(mk, ReadMakefile, d);
usr.bin/make/main.c
602
Lst makefiles, struct dirs *d)
usr.bin/make/main.c
616
read_makefile_list(&sysMkPath, d);
usr.bin/make/main.c
620
read_makefile_list(makefiles, d);
usr.bin/make/main.c
621
} else if (!ReadMakefile("makefile", d))
usr.bin/make/main.c
622
(void)ReadMakefile("Makefile", d);
usr.bin/make/main.c
627
(void)ReadMakefile(".depend", d);
usr.bin/make/main.c
655
static struct dirs d;
usr.bin/make/main.c
659
setup_CURDIR_OBJDIR(&d);
usr.bin/make/main.c
661
esetenv("PWD", d.object);
usr.bin/make/main.c
689
if (d.object != d.current)
usr.bin/make/main.c
690
Dir_AddDir(defaultPath, d.current);
usr.bin/make/main.c
691
Var_Set(".CURDIR", d.current);
usr.bin/make/main.c
692
Var_Set(".OBJDIR", d.object);
usr.bin/make/main.c
693
Parse_setcurdir(d.current);
usr.bin/make/main.c
694
Targ_setdirs(d.current, d.object);
usr.bin/make/main.c
717
setenv("MAKEBASEDIRECTORY", d.current, 0);
usr.bin/make/main.c
759
read_all_make_rules(noBuiltins, read_depend, &makefiles, &d);
usr.bin/make/main.c
886
struct dirs *d = q;
usr.bin/make/main.c
897
if (d->current != d->object && *fname != '/') {
usr.bin/make/main.c
900
path = Str_concat(d->current, fname, '/');
usr.bin/make/timestamp.h
55
#define ts_set_from_time_t(d, t) \
usr.bin/make/timestamp.h
57
(t).tv_sec = d; \
usr.bin/mandoc/mdoc_argv.c
600
enum mdelim d;
usr.bin/mandoc/mdoc_argv.c
628
d = mdoc_isdelim(dbuf);
usr.bin/mandoc/mdoc_argv.c
629
if (DELIM_NONE == d || DELIM_OPEN == d)
usr.bin/mandoc/mdoc_macro.c
440
enum mdelim d, int may_append)
usr.bin/mandoc/mdoc_macro.c
443
if (d == DELIM_MAX)
usr.bin/mandoc/mdoc_macro.c
444
d = mdoc_isdelim(p);
usr.bin/mandoc/mdoc_macro.c
447
d == DELIM_NONE && mdoc->last->type == ROFFT_TEXT &&
usr.bin/mandoc/mdoc_macro.c
462
if (d == DELIM_OPEN)
usr.bin/mandoc/mdoc_macro.c
464
else if (d == DELIM_CLOSE &&
usr.bin/mandoc/mdoc_macro.c
770
enum mdelim d;
usr.bin/mandoc/mdoc_macro.c
797
d = DELIM_NONE;
usr.bin/mandoc/mdoc_macro.c
810
if (d == DELIM_OPEN)
usr.bin/mandoc/mdoc_macro.c
864
if ((d = mdoc_isdelim(p)) != DELIM_NONE) {
usr.bin/mandoc/mdoc_macro.c
871
if ((d == DELIM_CLOSE ||
usr.bin/mandoc/mdoc_macro.c
872
(d == DELIM_MIDDLE && tok == MDOC_Fl)) &&
usr.bin/mandoc/mdoc_macro.c
896
dword(mdoc, line, la, p, d,
usr.bin/mandoc/mdoc_macro.c
907
if (firstarg && d == DELIM_CLOSE && !nc)
usr.bin/mandoc/term_tab.c
37
size_t d; /* Default tab width in basic units. */
usr.bin/mandoc/term_tab.c
54
if (tabs.d == 0) {
usr.bin/mandoc/term_tab.c
56
tabs.d = term_hspan(p, &su);
usr.bin/openssl/crl2p7.c
223
p7->d.sign = p7s;
usr.bin/openssl/pkcs12.c
840
p7->d.encrypted->enc_data->algorithm);
usr.bin/openssl/pkcs7.c
219
if (p7->d.sign != NULL) {
usr.bin/openssl/pkcs7.c
220
certs = p7->d.sign->cert;
usr.bin/openssl/pkcs7.c
221
crls = p7->d.sign->crl;
usr.bin/openssl/pkcs7.c
225
if (p7->d.signed_and_enveloped != NULL) {
usr.bin/openssl/pkcs7.c
226
certs = p7->d.signed_and_enveloped->cert;
usr.bin/openssl/pkcs7.c
227
crls = p7->d.signed_and_enveloped->crl;
usr.bin/openssl/speed.c
1070
double d = 0.0;
usr.bin/openssl/speed.c
1621
#define COUNT(d) (count)
usr.bin/openssl/speed.c
1636
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1637
print_result(D_MD4, j, count, d);
usr.bin/openssl/speed.c
1649
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1650
print_result(D_MD5, j, count, d);
usr.bin/openssl/speed.c
1684
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1685
print_result(D_HMAC, j, count, d);
usr.bin/openssl/speed.c
1697
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1698
print_result(D_SHA1, j, count, d);
usr.bin/openssl/speed.c
1708
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1709
print_result(D_SHA256, j, count, d);
usr.bin/openssl/speed.c
1721
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1722
print_result(D_SHA512, j, count, d);
usr.bin/openssl/speed.c
1735
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1736
print_result(D_RMD160, j, count, d);
usr.bin/openssl/speed.c
1748
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1749
print_result(D_RC4, j, count, d);
usr.bin/openssl/speed.c
1761
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1762
print_result(D_CBC_DES, j, count, d);
usr.bin/openssl/speed.c
1773
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1774
print_result(D_EDE3_DES, j, count, d);
usr.bin/openssl/speed.c
1787
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1788
print_result(D_CBC_128_AES, j, count, d);
usr.bin/openssl/speed.c
1799
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1800
print_result(D_CBC_192_AES, j, count, d);
usr.bin/openssl/speed.c
1811
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1812
print_result(D_CBC_256_AES, j, count, d);
usr.bin/openssl/speed.c
1823
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1824
print_result(D_IGE_128_AES, j, count, d);
usr.bin/openssl/speed.c
1835
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1836
print_result(D_IGE_192_AES, j, count, d);
usr.bin/openssl/speed.c
1847
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1848
print_result(D_IGE_256_AES, j, count, d);
usr.bin/openssl/speed.c
1860
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1861
print_result(D_GHASH, j, count, d);
usr.bin/openssl/speed.c
1887
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1888
print_result(D_AES_128_GCM,j,count,d);
usr.bin/openssl/speed.c
1915
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1916
print_result(D_AES_256_GCM, j, count, d);
usr.bin/openssl/speed.c
1944
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1945
print_result(D_CHACHA20_POLY1305, j, count, d);
usr.bin/openssl/speed.c
1959
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1960
print_result(D_CBC_128_CML, j, count, d);
usr.bin/openssl/speed.c
1971
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1972
print_result(D_CBC_192_CML, j, count, d);
usr.bin/openssl/speed.c
1983
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1984
print_result(D_CBC_256_CML, j, count, d);
usr.bin/openssl/speed.c
1997
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
1998
print_result(D_CBC_IDEA, j, count, d);
usr.bin/openssl/speed.c
2011
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
2012
print_result(D_CBC_RC2, j, count, d);
usr.bin/openssl/speed.c
2025
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
2026
print_result(D_CBC_BF, j, count, d);
usr.bin/openssl/speed.c
2039
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
2040
print_result(D_CBC_CAST, j, count, d);
usr.bin/openssl/speed.c
2082
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
2093
d = speed_timer_stop(SECONDS);
usr.bin/openssl/speed.c
2095
print_result(D_EVP, j, count, d);
usr.bin/openssl/speed.c
2125
d = speed_timer_stop(RSA_SECONDS);
usr.bin/openssl/speed.c
2128
count, rsa_bits[j], d);
usr.bin/openssl/speed.c
2129
rsa_results[j][0] = d / (double) count;
usr.bin/openssl/speed.c
2154
d = speed_timer_stop(RSA_SECONDS);
usr.bin/openssl/speed.c
2157
count, rsa_bits[j], d);
usr.bin/openssl/speed.c
2158
rsa_results[j][1] = d / (double) count;
usr.bin/openssl/speed.c
2199
d = speed_timer_stop(DSA_SECONDS);
usr.bin/openssl/speed.c
2202
count, dsa_bits[j], d);
usr.bin/openssl/speed.c
2203
dsa_results[j][0] = d / (double) count;
usr.bin/openssl/speed.c
2229
d = speed_timer_stop(DSA_SECONDS);
usr.bin/openssl/speed.c
2232
count, dsa_bits[j], d);
usr.bin/openssl/speed.c
2233
dsa_results[j][1] = d / (double) count;
usr.bin/openssl/speed.c
2281
d = speed_timer_stop(ECDSA_SECONDS);
usr.bin/openssl/speed.c
2285
count, test_curves_bits[j], d);
usr.bin/openssl/speed.c
2286
ecdsa_results[j][0] = d / (double) count;
usr.bin/openssl/speed.c
2311
d = speed_timer_stop(ECDSA_SECONDS);
usr.bin/openssl/speed.c
2314
count, test_curves_bits[j], d);
usr.bin/openssl/speed.c
2315
ecdsa_results[j][1] = d / (double) count;
usr.bin/openssl/speed.c
2394
d = speed_timer_stop(ECDH_SECONDS);
usr.bin/openssl/speed.c
2398
count, test_curves_bits[j], d);
usr.bin/openssl/speed.c
2399
ecdh_results[j][0] = d / (double) count;
usr.bin/openssl/speed.c
2447
d = speed_timer_stop(MLKEM_SECONDS);
usr.bin/openssl/speed.c
2451
: "%ld %d-bit ML-KEM keygen in %.2fs\n", count, bits, d);
usr.bin/openssl/speed.c
2452
mlkem_results[j][2] = d / (double)count;
usr.bin/openssl/speed.c
2476
d = speed_timer_stop(MLKEM_SECONDS);
usr.bin/openssl/speed.c
2480
: "%ld %d-bit ML-KEM encap in %.2fs\n", count, bits, d);
usr.bin/openssl/speed.c
2481
mlkem_results[j][0] = d / (double)count;
usr.bin/openssl/speed.c
2497
d = speed_timer_stop(MLKEM_SECONDS);
usr.bin/openssl/speed.c
2501
: "%ld %d-bit ML-KEM decap in %.2fs\n", count, bits, d);
usr.bin/openssl/speed.c
2502
mlkem_results[j][1] = d / (double)count;
usr.bin/openssl/speed.c
2811
double d;
usr.bin/openssl/speed.c
2818
d = atof(sstrsep(&p, sep));
usr.bin/openssl/speed.c
2820
rsa_results[k][0] = 1 / (1 / rsa_results[k][0] + 1 / d);
usr.bin/openssl/speed.c
2822
rsa_results[k][0] = d;
usr.bin/openssl/speed.c
2824
d = atof(sstrsep(&p, sep));
usr.bin/openssl/speed.c
2826
rsa_results[k][1] = 1 / (1 / rsa_results[k][1] + 1 / d);
usr.bin/openssl/speed.c
2828
rsa_results[k][1] = d;
usr.bin/openssl/speed.c
2831
double d;
usr.bin/openssl/speed.c
2838
d = atof(sstrsep(&p, sep));
usr.bin/openssl/speed.c
2840
rsa_results[k][0] = 1 / (1 / rsa_results[k][0] + 1 / d);
usr.bin/openssl/speed.c
2842
rsa_results[k][0] = d;
usr.bin/openssl/speed.c
2844
d = atof(sstrsep(&p, sep));
usr.bin/openssl/speed.c
2846
rsa_results[k][1] = 1 / (1 / rsa_results[k][1] + 1 / d);
usr.bin/openssl/speed.c
2848
rsa_results[k][1] = d;
usr.bin/openssl/speed.c
2851
double d;
usr.bin/openssl/speed.c
2858
d = atof(sstrsep(&p, sep));
usr.bin/openssl/speed.c
2860
dsa_results[k][0] = 1 / (1 / dsa_results[k][0] + 1 / d);
usr.bin/openssl/speed.c
2862
dsa_results[k][0] = d;
usr.bin/openssl/speed.c
2864
d = atof(sstrsep(&p, sep));
usr.bin/openssl/speed.c
2866
dsa_results[k][1] = 1 / (1 / dsa_results[k][1] + 1 / d);
usr.bin/openssl/speed.c
2868
dsa_results[k][1] = d;
usr.bin/openssl/speed.c
2871
double d;
usr.bin/openssl/speed.c
2878
d = atof(sstrsep(&p, sep));
usr.bin/openssl/speed.c
2880
ecdsa_results[k][0] = 1 / (1 / ecdsa_results[k][0] + 1 / d);
usr.bin/openssl/speed.c
2882
ecdsa_results[k][0] = d;
usr.bin/openssl/speed.c
2884
d = atof(sstrsep(&p, sep));
usr.bin/openssl/speed.c
2886
ecdsa_results[k][1] = 1 / (1 / ecdsa_results[k][1] + 1 / d);
usr.bin/openssl/speed.c
2888
ecdsa_results[k][1] = d;
usr.bin/openssl/speed.c
2891
double d;
usr.bin/openssl/speed.c
2898
d = atof(sstrsep(&p, sep));
usr.bin/openssl/speed.c
2900
ecdh_results[k][0] = 1 / (1 / ecdh_results[k][0] + 1 / d);
usr.bin/openssl/speed.c
2902
ecdh_results[k][0] = d;
usr.bin/pkgconf/libpkgconf/bsdstubs.c
38
char *d = dst;
usr.bin/pkgconf/libpkgconf/bsdstubs.c
45
if ((*d++ = *s++) == '\0')
usr.bin/pkgconf/libpkgconf/bsdstubs.c
53
*d = '\0'; /* NUL-terminate dst */
usr.bin/pkgconf/libpkgconf/bsdstubs.c
73
char *d = dst;
usr.bin/pkgconf/libpkgconf/bsdstubs.c
79
while (n-- != 0 && *d != '\0')
usr.bin/pkgconf/libpkgconf/bsdstubs.c
80
d++;
usr.bin/pkgconf/libpkgconf/bsdstubs.c
81
dlen = d - dst;
usr.bin/pkgconf/libpkgconf/bsdstubs.c
88
*d++ = *s;
usr.bin/pkgconf/libpkgconf/bsdstubs.c
93
*d = '\0';
usr.bin/rcs/date.y
878
time_t d;
usr.bin/rcs/date.y
883
d = date_parse(buff);
usr.bin/rcs/date.y
884
if (d == -1)
usr.bin/rcs/date.y
887
(void)printf("%s", ctime(&d));
usr.bin/rcs/diff.c
1000
if (a <= b && c <= d && diff_format == D_NORMAL)
usr.bin/rcs/diff.c
1003
fetch(ixnew, c, d, f2, diff_format == D_NORMAL ? '>' : '\0', 0, flags);
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
1211
upd = MINIMUM(len[1], context_vec_ptr->d + diff_context);
usr.bin/rcs/diff.c
1240
d = cvp->d;
usr.bin/rcs/diff.c
1242
if (a <= b && c <= d)
usr.bin/rcs/diff.c
1266
if (cvp->c <= cvp->d) {
usr.bin/rcs/diff.c
1276
d = cvp->d;
usr.bin/rcs/diff.c
1278
if (a <= b && c <= d)
usr.bin/rcs/diff.c
1284
fetch(ixnew, lowc, d, f2, ' ', 0, flags);
usr.bin/rcs/diff.c
1287
fetch(ixnew, c, d, f2,
usr.bin/rcs/diff.c
1290
lowc = d + 1;
usr.bin/rcs/diff.c
1293
fetch(ixnew, d + 1, upd, f2, ' ', 0, flags);
usr.bin/rcs/diff.c
1304
int a, b, c, d;
usr.bin/rcs/diff.c
1310
d = 0; /* gcc */
usr.bin/rcs/diff.c
1314
upd = MINIMUM(len[1], context_vec_ptr->d + diff_context);
usr.bin/rcs/diff.c
1336
d = cvp->d;
usr.bin/rcs/diff.c
1343
if (a <= b && c <= d)
usr.bin/rcs/diff.c
1352
fetch(ixnew, c, d, f2, '+', 0, flags);
usr.bin/rcs/diff.c
1360
fetch(ixnew, c, d, f2, '+', 0, flags);
usr.bin/rcs/diff.c
1364
lowc = d + 1;
usr.bin/rcs/diff.c
1366
fetch(ixnew, d + 1, upd, f2, ' ', 0, flags);
usr.bin/rcs/diff.c
174
int d; /* end line in new file */
usr.bin/rcs/diff.c
634
int i, j, jackpot, c, d;
usr.bin/rcs/diff.c
655
d = getc(f2);
usr.bin/rcs/diff.c
661
((c == EOF && d == '\n') ||
usr.bin/rcs/diff.c
662
(c == '\n' && d == EOF))) {
usr.bin/rcs/diff.c
668
isspace(d)) {
usr.bin/rcs/diff.c
675
if (d == '\n')
usr.bin/rcs/diff.c
678
} while (isspace(d = getc(f2)));
usr.bin/rcs/diff.c
684
while (isspace(d) && d != '\n') {
usr.bin/rcs/diff.c
685
d = getc(f2);
usr.bin/rcs/diff.c
689
if (chrtran[c] != chrtran[d]) {
usr.bin/rcs/diff.c
694
if (d != '\n' && c != EOF)
usr.bin/rcs/diff.c
705
if ((c = getc(f1)) != (d = getc(f2))) {
usr.bin/rcs/diff.c
710
if (d != '\n' && c != EOF)
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
900
if (a > b || c <= d) { /* Changes and inserts. */
usr.bin/rcs/diff.c
901
for (i = c; i <= d; i++) {
usr.bin/rcs/diff.c
958
c > context_vec_ptr->d + (2 * diff_context) + 1) {
usr.bin/rcs/diff.c
972
context_vec_ptr->d = d;
usr.bin/rcs/diff.c
982
diff_output("%c", a > b ? 'a' : c > d ? 'd' : 'c');
usr.bin/rcs/diff.c
984
range(c, d, ",");
usr.bin/rcs/diff.c
989
diff_output("a%d %d\n", b, d - c + 1);
usr.bin/rcs/diff.c
993
if (!(c > d)) /* add changed lines */
usr.bin/rcs/diff.c
994
diff_output("a%d %d\n", b, d - c + 1);
usr.bin/rcs/diff3.c
536
int a, b, c, d;
usr.bin/rcs/diff3.c
552
c = d = number(&p);
usr.bin/rcs/diff3.c
555
d = number(&p);
usr.bin/rcs/diff3.c
562
d++;
usr.bin/rcs/diff3.c
566
(*dd)[i].new.to = d;
usr.bin/rcs/diff3.c
828
int c,d;
usr.bin/rcs/diff3.c
840
d = getc(fp[1]);
usr.bin/rcs/diff3.c
841
if (c == -1 && d == -1)
usr.bin/rcs/diff3.c
843
if (c == -1 || d== -1)
usr.bin/rcs/diff3.c
846
if (c != d) {
usr.bin/rdist/client.c
583
DIR *d;
usr.bin/rdist/client.c
612
if ((d = opendir(target)) == NULL) {
usr.bin/rdist/client.c
619
while ((dp = readdir(d)) != NULL) {
usr.bin/rdist/client.c
638
(void) closedir(d);
usr.bin/rdist/docmd.c
611
DIR *d;
usr.bin/rdist/docmd.c
619
if ((d = opendir((char *) target)) == NULL) {
usr.bin/rdist/docmd.c
625
while ((dp = readdir(d)) != NULL) {
usr.bin/rdist/docmd.c
640
(void) closedir((DIR *) d);
usr.bin/rdistd/server.c
285
DIR *d;
usr.bin/rdistd/server.c
322
if ((d = opendir(target)) == NULL) {
usr.bin/rdistd/server.c
329
while ((dp = readdir(d)) != NULL) {
usr.bin/rdistd/server.c
357
(void) closedir(d);
usr.bin/rdistd/server.c
391
DIR *d;
usr.bin/rdistd/server.c
404
if ((d = opendir(target)) == NULL) {
usr.bin/rdistd/server.c
412
while ((dp = readdir(d)) != NULL) {
usr.bin/rdistd/server.c
447
(void) closedir(d);
usr.bin/sed/compile.c
353
compile_delimited(char *p, char *d)
usr.bin/sed/compile.c
368
*d = '\0';
usr.bin/sed/compile.c
378
*d++ = '\n';
usr.bin/sed/compile.c
382
*d++ = *p++;
usr.bin/sed/compile.c
384
*d++ = *p++;
usr.bin/sed/compile.c
390
*d++ = *p++;
usr.bin/sed/compile.c
395
else if ((d = compile_ccl(&p, d)) == NULL)
usr.bin/sed/compile.c
406
int c, d;
usr.bin/sed/compile.c
415
if (*s == '[' && ((d = *(s+1)) == '.' || d == ':' || d == '=')) {
usr.bin/sed/compile.c
417
for (c = *s; (*t = *s) != ']' || c != d; s++, t++)
usr.bin/signify/mod_ge25519.c
100
fe25519_add(&g, &d, &c); /* G = D+C */
usr.bin/signify/mod_ge25519.c
110
fe25519 a, b, c, d, t;
usr.bin/signify/mod_ge25519.c
120
fe25519_mul(&d, &p->z, &q->z); /* D = Z1*2*Z2 */
usr.bin/signify/mod_ge25519.c
121
fe25519_add(&d, &d, &d);
usr.bin/signify/mod_ge25519.c
123
fe25519_sub(&r->t, &d, &c); /* F = D-C */
usr.bin/signify/mod_ge25519.c
124
fe25519_add(&r->z, &d, &c); /* G = D+C */
usr.bin/signify/mod_ge25519.c
131
fe25519 a,b,c,d;
usr.bin/signify/mod_ge25519.c
136
fe25519_neg(&d, &a);
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
86
fe25519 a,b,t1,t2,c,d,e,f,g,h,qt;
usr.bin/signify/mod_ge25519.c
98
fe25519_add(&d, &r->z, &r->z); /* D = Z1*2 */
usr.bin/signify/mod_ge25519.c
99
fe25519_sub(&f, &d, &c); /* F = D-C */
usr.bin/sndioctl/sndioctl.c
344
char buf[SIOCTL_DISPLAYMAX], *s, *d;
usr.bin/sndioctl/sndioctl.c
348
d = buf;
usr.bin/sndioctl/sndioctl.c
352
*d++ = c;
usr.bin/sndioctl/sndioctl.c
354
*d = 0;
usr.bin/sndioctl/sndioctl.c
902
ondesc(void *arg, struct sioctl_desc *d, int curval)
usr.bin/sndioctl/sndioctl.c
907
if (d == NULL)
usr.bin/sndioctl/sndioctl.c
914
if (d->addr == i->desc.addr) {
usr.bin/sndioctl/sndioctl.c
923
switch (d->type) {
usr.bin/sndioctl/sndioctl.c
938
cmp = cmpdesc(d, &i->desc);
usr.bin/sndioctl/sndioctl.c
947
i->desc = *d;
usr.bin/sndioctl/sndioctl.c
948
i->ctladdr = d->addr;
usr.bin/sndiod/dev.c
1001
if (mtc_array[0].dev == d && mtc_array[0].tstate != MTC_STOP)
usr.bin/sndiod/dev.c
1003
if (d->hold)
usr.bin/sndiod/dev.c
1004
dev_unref(d);
usr.bin/sndiod/dev.c
1010
struct dev *d;
usr.bin/sndiod/dev.c
1012
for (d = dev_list; d != NULL; d = d->next) {
usr.bin/sndiod/dev.c
1013
if (d->num == num)
usr.bin/sndiod/dev.c
1014
return d;
usr.bin/sndiod/dev.c
1023
dev_del(struct dev *d)
usr.bin/sndiod/dev.c
1028
logx(3, "%s: deleting", d->path);
usr.bin/sndiod/dev.c
1030
if (d->pstate != DEV_CFG)
usr.bin/sndiod/dev.c
1031
dev_close(d);
usr.bin/sndiod/dev.c
1032
for (p = &dev_list; *p != d; p = &(*p)->next) {
usr.bin/sndiod/dev.c
1035
logx(0, "%s: not on the list", d->path);
usr.bin/sndiod/dev.c
1040
*p = d->next;
usr.bin/sndiod/dev.c
1041
xfree(d);
usr.bin/sndiod/dev.c
1045
dev_roundof(struct dev *d, unsigned int newrate)
usr.bin/sndiod/dev.c
1047
return (d->round * newrate + d->rate / 2) / d->rate;
usr.bin/sndiod/dev.c
1054
dev_wakeup(struct dev *d)
usr.bin/sndiod/dev.c
1056
if (d->pstate == DEV_INIT) {
usr.bin/sndiod/dev.c
1057
logx(2, "%s: started", d->path);
usr.bin/sndiod/dev.c
1059
if (d->mode & MODE_PLAY) {
usr.bin/sndiod/dev.c
1060
d->prime = d->bufsz;
usr.bin/sndiod/dev.c
1062
d->prime = 0;
usr.bin/sndiod/dev.c
1064
d->idle = 0;
usr.bin/sndiod/dev.c
1065
d->poffs = 0;
usr.bin/sndiod/dev.c
1071
d->delta = 0;
usr.bin/sndiod/dev.c
1073
d->pstate = DEV_RUN;
usr.bin/sndiod/dev.c
1074
dev_sio_start(d);
usr.bin/sndiod/dev.c
1210
mtc_setdev(struct mtc *mtc, struct dev *d)
usr.bin/sndiod/dev.c
1214
if (mtc->dev == d)
usr.bin/sndiod/dev.c
1217
logx(2, "%s: set to be MIDI clock source", d->path);
usr.bin/sndiod/dev.c
1225
mtc->dev = d;
usr.bin/sndiod/dev.c
1246
struct dev *d = s->opt->dev;
usr.bin/sndiod/dev.c
1252
0, d->pchan - 1,
usr.bin/sndiod/dev.c
1262
if (s->rate != d->rate) {
usr.bin/sndiod/dev.c
1263
resamp_init(&s->mix.resamp, s->round, d->round,
usr.bin/sndiod/dev.c
1266
xmalloc(d->round * s->mix.nch * sizeof(adata_t));
usr.bin/sndiod/dev.c
1276
0, d->rchan - 1,
usr.bin/sndiod/dev.c
1283
0, d->pchan - 1,
usr.bin/sndiod/dev.c
1289
if (s->rate != d->rate) {
usr.bin/sndiod/dev.c
1290
resamp_init(&s->sub.resamp, d->round, s->round,
usr.bin/sndiod/dev.c
1293
xmalloc(d->round * s->sub.nch * sizeof(adata_t));
usr.bin/sndiod/dev.c
1309
d->round * s->sub.nch * sizeof(adata_t));
usr.bin/sndiod/dev.c
1455
struct dev *d = s->opt->dev;
usr.bin/sndiod/dev.c
1466
dev_wakeup(d);
usr.bin/sndiod/dev.c
1472
(long long)s->delta * d->round +
usr.bin/sndiod/dev.c
1473
(long long)d->delta * s->round;
usr.bin/sndiod/dev.c
1474
s->delta = pos / (int)d->round;
usr.bin/sndiod/dev.c
1475
s->delta_rem = pos % d->round;
usr.bin/sndiod/dev.c
1477
s->delta_rem += d->round;
usr.bin/sndiod/dev.c
1492
s->next = d->slot_list;
usr.bin/sndiod/dev.c
1493
d->slot_list = s;
usr.bin/sndiod/dev.c
1496
dev_mix_adjvol(d);
usr.bin/sndiod/dev.c
1527
struct dev *d = s->opt->dev;
usr.bin/sndiod/dev.c
1550
s->sub.prime = d->bufsz / d->round;
usr.bin/sndiod/dev.c
1559
s->delta = -(long long)d->bufsz * s->round / d->round;
usr.bin/sndiod/dev.c
1577
struct dev *d = s->opt->dev;
usr.bin/sndiod/dev.c
1580
for (ps = &d->slot_list; *ps != s; ps = &(*ps)->next) {
usr.bin/sndiod/dev.c
1595
(long long)s->delta * d->round -
usr.bin/sndiod/dev.c
1596
(long long)d->delta * s->round;
usr.bin/sndiod/dev.c
1597
s->delta = pos / (int)d->round;
usr.bin/sndiod/dev.c
1598
s->delta_rem = pos % d->round;
usr.bin/sndiod/dev.c
1600
s->delta_rem += d->round;
usr.bin/sndiod/dev.c
1606
s - slot_array, s->delta, s->delta_rem, d->round);
usr.bin/sndiod/dev.c
1609
dev_mix_adjvol(d);
usr.bin/sndiod/dev.c
166
dev_midi_send(struct dev *d, void *msg, int msglen)
usr.bin/sndiod/dev.c
171
if (o->dev != d)
usr.bin/sndiod/dev.c
2173
dev_getdisplay(struct dev *d)
usr.bin/sndiod/dev.c
2181
c->u.hw.dev == d &&
usr.bin/sndiod/dev.c
2183
strcmp(c->group, d->name) == 0 &&
usr.bin/sndiod/dev.c
2193
dev_ctlsync(struct dev *d)
usr.bin/sndiod/dev.c
2203
c->u.hw.dev == d &&
usr.bin/sndiod/dev.c
2205
strcmp(c->group, d->name) == 0 &&
usr.bin/sndiod/dev.c
2211
if (d->master_enabled && found) {
usr.bin/sndiod/dev.c
2212
logx(2, "%s: software master level control disabled", d->path);
usr.bin/sndiod/dev.c
2213
d->master_enabled = 0;
usr.bin/sndiod/dev.c
2214
ctl_del(CTL_DEV_MASTER, d, NULL);
usr.bin/sndiod/dev.c
2215
} else if (!d->master_enabled && !found) {
usr.bin/sndiod/dev.c
2216
logx(2, "%s: software master level control enabled", d->path);
usr.bin/sndiod/dev.c
2217
d->master_enabled = 1;
usr.bin/sndiod/dev.c
2218
ctl_new(CTL_DEV_MASTER, d, NULL,
usr.bin/sndiod/dev.c
2219
CTL_NUM, "", d->name, "output", -1, "level",
usr.bin/sndiod/dev.c
2220
NULL, -1, 127, d->master);
usr.bin/sndiod/dev.c
2226
display = dev_getdisplay(d);
usr.bin/sndiod/dev.c
2229
c->u.opt_dev.dev != d ||
usr.bin/sndiod/dev.c
2239
if (s->opt != NULL && s->opt->dev == d)
usr.bin/sndiod/dev.c
294
dev_midi_master(struct dev *d)
usr.bin/sndiod/dev.c
300
if (d->master_enabled)
usr.bin/sndiod/dev.c
301
master = d->master;
usr.bin/sndiod/dev.c
306
strcmp(c->group, d->name) != 0 ||
usr.bin/sndiod/dev.c
310
if (c->u.any.arg0 != d)
usr.bin/sndiod/dev.c
327
dev_midi_send(d, (unsigned char *)&x, SYSEX_SIZE(master));
usr.bin/sndiod/dev.c
369
dev_mix_badd(struct dev *d, struct slot *s)
usr.bin/sndiod/dev.c
374
odata = DEV_PBUF(d);
usr.bin/sndiod/dev.c
409
in, s->mix.resampbuf, s->round, d->round);
usr.bin/sndiod/dev.c
415
d->round, 1);
usr.bin/sndiod/dev.c
424
dev_mix_adjvol(struct dev *d)
usr.bin/sndiod/dev.c
430
for (i = d->slot_list; i != NULL; i = i->next) {
usr.bin/sndiod/dev.c
435
if (d->autovol) {
usr.bin/sndiod/dev.c
441
for (j = d->slot_list; j != NULL; j = j->next) {
usr.bin/sndiod/dev.c
453
i->mix.weight = d->master_enabled ?
usr.bin/sndiod/dev.c
454
ADATA_MUL(weight, MIDI_TO_ADATA(d->master)) : weight;
usr.bin/sndiod/dev.c
466
dev_sub_bcopy(struct dev *d, struct slot *s)
usr.bin/sndiod/dev.c
505
moffs = d->poffs + d->round;
usr.bin/sndiod/dev.c
506
if (moffs == d->psize)
usr.bin/sndiod/dev.c
508
cmap_do(&s->sub.cmap_mon, d->pbuf + moffs * d->pchan, cmap_out,
usr.bin/sndiod/dev.c
509
ADATA_UNIT, d->round, mix++);
usr.bin/sndiod/dev.c
512
cmap_do(&s->sub.cmap_rec, d->rbuf, cmap_out,
usr.bin/sndiod/dev.c
513
ADATA_UNIT, d->round, mix++);
usr.bin/sndiod/dev.c
517
s->sub.resampbuf, resamp_out, d->round, s->round);
usr.bin/sndiod/dev.c
530
dev_cycle(struct dev *d)
usr.bin/sndiod/dev.c
540
if (d->slot_list == NULL && d->idle >= d->bufsz &&
usr.bin/sndiod/dev.c
541
(mtc_array[0].dev != d || mtc_array[0].tstate != MTC_RUN)) {
usr.bin/sndiod/dev.c
542
logx(2, "%s: device stopped", d->path);
usr.bin/sndiod/dev.c
543
dev_sio_stop(d);
usr.bin/sndiod/dev.c
544
d->pstate = DEV_INIT;
usr.bin/sndiod/dev.c
545
if (d->refcnt == 0)
usr.bin/sndiod/dev.c
546
dev_close(d);
usr.bin/sndiod/dev.c
550
if (d->prime > 0) {
usr.bin/sndiod/dev.c
552
logx(4, "%s: empty cycle, prime = %u", d->path, d->prime);
usr.bin/sndiod/dev.c
554
base = (unsigned char *)DEV_PBUF(d);
usr.bin/sndiod/dev.c
555
nsamp = d->round * d->pchan;
usr.bin/sndiod/dev.c
557
if (d->encbuf) {
usr.bin/sndiod/dev.c
558
enc_do(&d->enc, (unsigned char *)DEV_PBUF(d),
usr.bin/sndiod/dev.c
559
d->encbuf, d->round);
usr.bin/sndiod/dev.c
561
d->prime -= d->round;
usr.bin/sndiod/dev.c
565
d->delta -= d->round;
usr.bin/sndiod/dev.c
567
logx(4, "%s: full cycle: delta = %d", d->path, d->delta);
usr.bin/sndiod/dev.c
569
if (d->mode & MODE_PLAY) {
usr.bin/sndiod/dev.c
570
base = (unsigned char *)DEV_PBUF(d);
usr.bin/sndiod/dev.c
571
nsamp = d->round * d->pchan;
usr.bin/sndiod/dev.c
574
if ((d->mode & MODE_REC) && d->decbuf)
usr.bin/sndiod/dev.c
575
dec_do(&d->dec, d->decbuf, (unsigned char *)d->rbuf, d->round);
usr.bin/sndiod/dev.c
577
for (s = d->slot_list; s != NULL; s = snext) {
usr.bin/sndiod/dev.c
582
d->idle = 0;
usr.bin/sndiod/dev.c
661
dev_sub_bcopy(d, s);
usr.bin/sndiod/dev.c
672
dev_mix_badd(d, s);
usr.bin/sndiod/dev.c
677
if ((d->mode & MODE_PLAY) && d->encbuf) {
usr.bin/sndiod/dev.c
678
enc_do(&d->enc, (unsigned char *)DEV_PBUF(d),
usr.bin/sndiod/dev.c
679
d->encbuf, d->round);
usr.bin/sndiod/dev.c
687
dev_onmove(struct dev *d, int delta)
usr.bin/sndiod/dev.c
692
d->delta += delta;
usr.bin/sndiod/dev.c
694
if (d->slot_list == NULL)
usr.bin/sndiod/dev.c
695
d->idle += delta;
usr.bin/sndiod/dev.c
697
for (s = d->slot_list; s != NULL; s = snext) {
usr.bin/sndiod/dev.c
703
(long long)s->delta * d->round +
usr.bin/sndiod/dev.c
705
s->delta = pos / (int)d->round;
usr.bin/sndiod/dev.c
706
s->delta_rem = pos % d->round;
usr.bin/sndiod/dev.c
708
s->delta_rem += d->round;
usr.bin/sndiod/dev.c
715
if (mtc_array[0].dev == d && mtc_array[0].tstate == MTC_RUN)
usr.bin/sndiod/dev.c
720
dev_master(struct dev *d, unsigned int master)
usr.bin/sndiod/dev.c
725
logx(2, "%s: master volume set to %u", d->path, master);
usr.bin/sndiod/dev.c
727
if (d->master_enabled) {
usr.bin/sndiod/dev.c
728
d->master = master;
usr.bin/sndiod/dev.c
729
if (d->mode & MODE_PLAY)
usr.bin/sndiod/dev.c
730
dev_mix_adjvol(d);
usr.bin/sndiod/dev.c
733
if (c->scope != CTL_HW || c->u.hw.dev != d)
usr.bin/sndiod/dev.c
736
strcmp(c->group, d->name) != 0 ||
usr.bin/sndiod/dev.c
752
struct dev *d, **pd;
usr.bin/sndiod/dev.c
758
d = xmalloc(sizeof(struct dev));
usr.bin/sndiod/dev.c
759
d->path = path;
usr.bin/sndiod/dev.c
760
d->num = dev_sndnum++;
usr.bin/sndiod/dev.c
762
d->reqpar = *par;
usr.bin/sndiod/dev.c
763
d->reqpchan = d->reqrchan = 0;
usr.bin/sndiod/dev.c
764
d->hold = hold;
usr.bin/sndiod/dev.c
765
d->autovol = autovol;
usr.bin/sndiod/dev.c
766
d->refcnt = 0;
usr.bin/sndiod/dev.c
767
d->pstate = DEV_CFG;
usr.bin/sndiod/dev.c
768
d->slot_list = NULL;
usr.bin/sndiod/dev.c
769
d->master = MIDI_MAXCTL;
usr.bin/sndiod/dev.c
770
d->master_enabled = 0;
usr.bin/sndiod/dev.c
771
snprintf(d->name, CTL_NAMEMAX, "%u", d->num);
usr.bin/sndiod/dev.c
774
d->next = *pd;
usr.bin/sndiod/dev.c
775
*pd = d;
usr.bin/sndiod/dev.c
776
return d;
usr.bin/sndiod/dev.c
783
dev_adjpar(struct dev *d, int pmax, int rmax)
usr.bin/sndiod/dev.c
785
if (d->reqpchan < pmax + 1)
usr.bin/sndiod/dev.c
786
d->reqpchan = pmax + 1;
usr.bin/sndiod/dev.c
787
if (d->reqrchan < rmax + 1)
usr.bin/sndiod/dev.c
788
d->reqrchan = rmax + 1;
usr.bin/sndiod/dev.c
799
dev_allocbufs(struct dev *d)
usr.bin/sndiod/dev.c
808
d->rbuf = xmalloc(d->round * d->rchan * sizeof(adata_t));
usr.bin/sndiod/dev.c
811
if (!aparams_native(&d->par)) {
usr.bin/sndiod/dev.c
812
dec_init(&d->dec, &d->par, d->rchan);
usr.bin/sndiod/dev.c
813
d->decbuf = xmalloc(d->round * d->rchan * d->par.bps);
usr.bin/sndiod/dev.c
815
d->decbuf = NULL;
usr.bin/sndiod/dev.c
822
d->poffs = 0;
usr.bin/sndiod/dev.c
823
d->psize = d->bufsz + d->round;
usr.bin/sndiod/dev.c
824
d->pbuf = xmalloc(d->psize * d->pchan * sizeof(adata_t));
usr.bin/sndiod/dev.c
825
d->mode |= MODE_MON;
usr.bin/sndiod/dev.c
828
if (!aparams_native(&d->par)) {
usr.bin/sndiod/dev.c
829
enc_init(&d->enc, &d->par, d->pchan);
usr.bin/sndiod/dev.c
830
d->encbuf = xmalloc(d->round * d->pchan * d->par.bps);
usr.bin/sndiod/dev.c
832
d->encbuf = NULL;
usr.bin/sndiod/dev.c
839
memset(d->rbuf, 0, d->round * d->rchan * sizeof(adata_t));
usr.bin/sndiod/dev.c
842
d->path, d->rate,
usr.bin/sndiod/dev.c
843
(aparams_enctostr(&d->par, enc_str), enc_str),
usr.bin/sndiod/dev.c
845
d->mode & (MODE_PLAY | MODE_REC),
usr.bin/sndiod/dev.c
846
0, d->pchan - 1, 0, d->rchan - 1), chans_str),
usr.bin/sndiod/dev.c
847
d->bufsz / d->round, d->round);
usr.bin/sndiod/dev.c
856
dev_open(struct dev *d)
usr.bin/sndiod/dev.c
858
d->mode = MODE_AUDIOMASK;
usr.bin/sndiod/dev.c
859
d->round = dev_round;
usr.bin/sndiod/dev.c
860
d->bufsz = dev_bufsz;
usr.bin/sndiod/dev.c
861
d->rate = dev_rate;
usr.bin/sndiod/dev.c
862
d->pchan = d->reqpchan;
usr.bin/sndiod/dev.c
863
d->rchan = d->reqrchan;
usr.bin/sndiod/dev.c
864
d->par = d->reqpar;
usr.bin/sndiod/dev.c
865
if (d->pchan == 0)
usr.bin/sndiod/dev.c
866
d->pchan = 2;
usr.bin/sndiod/dev.c
867
if (d->rchan == 0)
usr.bin/sndiod/dev.c
868
d->rchan = 2;
usr.bin/sndiod/dev.c
869
if (!dev_sio_open(d)) {
usr.bin/sndiod/dev.c
870
logx(1, "%s: failed to open audio device", d->path);
usr.bin/sndiod/dev.c
873
if (!dev_allocbufs(d))
usr.bin/sndiod/dev.c
876
d->pstate = DEV_INIT;
usr.bin/sndiod/dev.c
884
dev_abort(struct dev *d)
usr.bin/sndiod/dev.c
892
if (s->opt == NULL || s->opt->dev != d)
usr.bin/sndiod/dev.c
899
d->slot_list = NULL;
usr.bin/sndiod/dev.c
902
if (o->dev != d)
usr.bin/sndiod/dev.c
916
if (d->pstate != DEV_CFG)
usr.bin/sndiod/dev.c
917
dev_close(d);
usr.bin/sndiod/dev.c
925
dev_freebufs(struct dev *d)
usr.bin/sndiod/dev.c
928
logx(3, "%s: closing", d->path);
usr.bin/sndiod/dev.c
930
if (d->mode & MODE_PLAY) {
usr.bin/sndiod/dev.c
931
if (d->encbuf != NULL)
usr.bin/sndiod/dev.c
932
xfree(d->encbuf);
usr.bin/sndiod/dev.c
933
xfree(d->pbuf);
usr.bin/sndiod/dev.c
935
if (d->mode & MODE_REC) {
usr.bin/sndiod/dev.c
936
if (d->decbuf != NULL)
usr.bin/sndiod/dev.c
937
xfree(d->decbuf);
usr.bin/sndiod/dev.c
938
xfree(d->rbuf);
usr.bin/sndiod/dev.c
946
dev_close(struct dev *d)
usr.bin/sndiod/dev.c
948
d->pstate = DEV_CFG;
usr.bin/sndiod/dev.c
949
dev_sio_close(d);
usr.bin/sndiod/dev.c
950
dev_freebufs(d);
usr.bin/sndiod/dev.c
952
if (d->master_enabled) {
usr.bin/sndiod/dev.c
953
d->master_enabled = 0;
usr.bin/sndiod/dev.c
954
ctl_del(CTL_DEV_MASTER, d, NULL);
usr.bin/sndiod/dev.c
959
dev_ref(struct dev *d)
usr.bin/sndiod/dev.c
962
logx(3, "%s: device requested", d->path);
usr.bin/sndiod/dev.c
964
if (d->pstate == DEV_CFG && !dev_open(d))
usr.bin/sndiod/dev.c
966
d->refcnt++;
usr.bin/sndiod/dev.c
971
dev_unref(struct dev *d)
usr.bin/sndiod/dev.c
974
logx(3, "%s: device released", d->path);
usr.bin/sndiod/dev.c
976
d->refcnt--;
usr.bin/sndiod/dev.c
977
if (d->refcnt == 0 && d->pstate == DEV_INIT)
usr.bin/sndiod/dev.c
978
dev_close(d);
usr.bin/sndiod/dev.c
985
dev_init(struct dev *d)
usr.bin/sndiod/dev.c
987
if (d->hold && !dev_ref(d))
usr.bin/sndiod/dev.c
996
dev_done(struct dev *d)
usr.bin/sndiod/dev.c
999
logx(3, "%s: draining", d->path);
usr.bin/sndiod/dev.h
239
#define DEV_PBUF(d) ((d)->pbuf + (d)->poffs * (d)->pchan)
usr.bin/sndiod/dev_sioctl.c
104
dev_sioctl_open(struct dev *d)
usr.bin/sndiod/dev_sioctl.c
106
if (d->sioctl.hdl == NULL) {
usr.bin/sndiod/dev_sioctl.c
113
dev_ctlsync(d);
usr.bin/sndiod/dev_sioctl.c
116
sioctl_ondesc(d->sioctl.hdl, dev_sioctl_ondesc, d);
usr.bin/sndiod/dev_sioctl.c
117
sioctl_onval(d->sioctl.hdl, dev_sioctl_onval, d);
usr.bin/sndiod/dev_sioctl.c
124
dev_sioctl_close(struct dev *d)
usr.bin/sndiod/dev_sioctl.c
126
ctl_del(CTL_HW, d, NULL);
usr.bin/sndiod/dev_sioctl.c
127
dev_ctlsync(d);
usr.bin/sndiod/dev_sioctl.c
133
struct dev *d = arg;
usr.bin/sndiod/dev_sioctl.c
138
if (c->scope == CTL_HW && c->u.hw.dev == d && c->dirty)
usr.bin/sndiod/dev_sioctl.c
141
return sioctl_pollfd(d->sioctl.hdl, pfd, events);
usr.bin/sndiod/dev_sioctl.c
147
struct dev *d = arg;
usr.bin/sndiod/dev_sioctl.c
149
return sioctl_revents(d->sioctl.hdl, pfd);
usr.bin/sndiod/dev_sioctl.c
160
struct dev *d = arg;
usr.bin/sndiod/dev_sioctl.c
171
if (c->scope != CTL_HW || c->u.hw.dev != d || !c->dirty)
usr.bin/sndiod/dev_sioctl.c
173
if (!sioctl_setval(d->sioctl.hdl, c->u.hw.addr, c->curval)) {
usr.bin/sndiod/dev_sioctl.c
181
dev_unref(d);
usr.bin/sndiod/dev_sioctl.c
187
struct dev *d = arg;
usr.bin/sndiod/dev_sioctl.c
189
dev_sioctl_close(d);
usr.bin/sndiod/dev_sioctl.c
190
file_del(d->sioctl.file);
usr.bin/sndiod/dev_sioctl.c
191
sioctl_close(d->sioctl.hdl);
usr.bin/sndiod/dev_sioctl.c
192
d->sioctl.hdl = NULL;
usr.bin/sndiod/dev_sioctl.c
53
struct dev *d = arg;
usr.bin/sndiod/dev_sioctl.c
57
dev_ctlsync(d);
usr.bin/sndiod/dev_sioctl.c
61
ctl_del(CTL_HW, d, &desc->addr);
usr.bin/sndiod/dev_sioctl.c
64
group = d->name;
usr.bin/sndiod/dev_sioctl.c
67
d->name, desc->group) >= CTL_NAMEMAX)
usr.bin/sndiod/dev_sioctl.c
72
ctl_new(CTL_HW, d, &desc->addr,
usr.bin/sndiod/dev_sioctl.c
82
struct dev *d = arg;
usr.bin/sndiod/dev_sioctl.c
85
logx(2, "%s: onctl: addr = %u, val = %u", d->path, addr, val);
usr.bin/sndiod/dev_sioctl.c
88
if (c->scope != CTL_HW || c->u.hw.dev != d ||
usr.bin/sndiod/fdpass.c
268
struct dev *d;
usr.bin/sndiod/fdpass.c
275
d = dev_bynum(num);
usr.bin/sndiod/fdpass.c
276
if (d == NULL || !(mode & (SIO_PLAY | SIO_REC))) {
usr.bin/sndiod/fdpass.c
281
fd = sio_sun_getfd(d->path, mode, 1);
usr.bin/sndiod/fdpass.c
293
d = dev_bynum(num);
usr.bin/sndiod/fdpass.c
294
if (d == NULL || !(mode & (SIOCTL_READ | SIOCTL_WRITE))) {
usr.bin/sndiod/fdpass.c
299
fd = sioctl_sun_getfd(d->path, mode, 1);
usr.bin/sndiod/opt.c
320
opt_new(struct dev *d, char *name,
usr.bin/sndiod/opt.c
330
name = d->name;
usr.bin/sndiod/opt.c
360
if (mtc_array[0].dev != NULL && mtc_array[0].dev != d) {
usr.bin/sndiod/opt.c
364
mtc_array[0].dev = d;
usr.bin/sndiod/opt.c
365
logx(2, "%s: initial MTC source, controlled by MMC", d->path);
usr.bin/sndiod/opt.c
370
o->dev = d;
usr.bin/sndiod/opt.c
394
opt_setalt(o, d);
usr.bin/sndiod/opt.c
410
opt_setalt(struct opt *o, struct dev *d)
usr.bin/sndiod/opt.c
417
a->dev = d;
usr.bin/sndiod/opt.c
419
} else if (a->dev == d) {
usr.bin/sndiod/opt.c
501
struct dev *d;
usr.bin/sndiod/opt.c
515
for (d = dev_list; d != NULL; d = d->next)
usr.bin/sndiod/opt.c
516
ctl_del(CTL_OPT_DEV, o, d);
usr.bin/sndiod/opt.c
665
struct dev *d;
usr.bin/sndiod/opt.c
684
for (d = dev_list; d != NULL; d = d->next) {
usr.bin/sndiod/opt.c
685
d->refcnt++;
usr.bin/sndiod/opt.c
686
if (d->pstate == DEV_CFG)
usr.bin/sndiod/opt.c
687
dev_open(d);
usr.bin/sndiod/opt.c
688
ctl_new(CTL_OPT_DEV, o, d,
usr.bin/sndiod/opt.c
689
CTL_SEL, dev_getdisplay(d),
usr.bin/sndiod/opt.c
691
d->name, -1, 1, o->dev == d);
usr.bin/sndiod/opt.c
705
struct dev *d;
usr.bin/sndiod/opt.c
710
for (d = dev_list; d != NULL; d = d->next) {
usr.bin/sndiod/opt.c
711
if (ctl_del(CTL_OPT_DEV, o, d))
usr.bin/sndiod/opt.c
712
dev_unref(d);
usr.bin/sndiod/siofile.c
104
dev_sio_open(struct dev *d)
usr.bin/sndiod/siofile.c
109
d->sio.hdl = fdpass_sio_open(d->num, mode);
usr.bin/sndiod/siofile.c
110
if (d->sio.hdl == NULL) {
usr.bin/sndiod/siofile.c
113
d->sio.hdl = fdpass_sio_open(d->num, SIO_PLAY);
usr.bin/sndiod/siofile.c
114
if (d->sio.hdl != NULL)
usr.bin/sndiod/siofile.c
117
d->sio.hdl = fdpass_sio_open(d->num, SIO_REC);
usr.bin/sndiod/siofile.c
118
if (d->sio.hdl != NULL)
usr.bin/sndiod/siofile.c
124
d->path, mode == SIO_PLAY ? "play-only" : "rec-only");
usr.bin/sndiod/siofile.c
126
d->mode = mode;
usr.bin/sndiod/siofile.c
128
d->sioctl.hdl = fdpass_sioctl_open(d->num, SIOCTL_READ | SIOCTL_WRITE);
usr.bin/sndiod/siofile.c
129
if (d->sioctl.hdl == NULL)
usr.bin/sndiod/siofile.c
130
logx(1, "%s: no control device", d->path);
usr.bin/sndiod/siofile.c
133
par.bits = d->par.bits;
usr.bin/sndiod/siofile.c
134
par.bps = d->par.bps;
usr.bin/sndiod/siofile.c
135
par.sig = d->par.sig;
usr.bin/sndiod/siofile.c
136
par.le = d->par.le;
usr.bin/sndiod/siofile.c
137
par.msb = d->par.msb;
usr.bin/sndiod/siofile.c
138
if (d->mode & SIO_PLAY)
usr.bin/sndiod/siofile.c
139
par.pchan = d->pchan;
usr.bin/sndiod/siofile.c
140
if (d->mode & SIO_REC)
usr.bin/sndiod/siofile.c
141
par.rchan = d->rchan;
usr.bin/sndiod/siofile.c
142
par.appbufsz = d->bufsz;
usr.bin/sndiod/siofile.c
143
par.round = d->round;
usr.bin/sndiod/siofile.c
144
par.rate = d->rate;
usr.bin/sndiod/siofile.c
145
if (!sio_setpar(d->sio.hdl, &par))
usr.bin/sndiod/siofile.c
147
if (!sio_getpar(d->sio.hdl, &par))
usr.bin/sndiod/siofile.c
156
if (rate != d->rate) {
usr.bin/sndiod/siofile.c
158
par.bits = d->par.bits;
usr.bin/sndiod/siofile.c
159
par.bps = d->par.bps;
usr.bin/sndiod/siofile.c
160
par.sig = d->par.sig;
usr.bin/sndiod/siofile.c
161
par.le = d->par.le;
usr.bin/sndiod/siofile.c
162
par.msb = d->par.msb;
usr.bin/sndiod/siofile.c
164
par.pchan = d->reqpchan;
usr.bin/sndiod/siofile.c
166
par.rchan = d->reqrchan;
usr.bin/sndiod/siofile.c
167
par.appbufsz = d->bufsz * rate / d->rate;
usr.bin/sndiod/siofile.c
168
par.round = d->round * rate / d->rate;
usr.bin/sndiod/siofile.c
170
if (!sio_setpar(d->sio.hdl, &par))
usr.bin/sndiod/siofile.c
172
if (!sio_getpar(d->sio.hdl, &par))
usr.bin/sndiod/siofile.c
186
logx(0, "%s: %u: unsupported number of bits", d->path, par.bits);
usr.bin/sndiod/siofile.c
190
logx(0, "%s: %u: unsupported sample size", d->path, par.bps);
usr.bin/sndiod/siofile.c
193
if ((d->mode & SIO_PLAY) && par.pchan > NCHAN_MAX) {
usr.bin/sndiod/siofile.c
194
logx(0, "%s: %u: unsupported number of play channels", d->path, par.pchan);
usr.bin/sndiod/siofile.c
197
if ((d->mode & SIO_REC) && par.rchan > NCHAN_MAX) {
usr.bin/sndiod/siofile.c
198
logx(0, "%s: %u: unsupported number of rec channels", d->path, par.rchan);
usr.bin/sndiod/siofile.c
202
logx(0, "%s: %u: unsupported buffer size", d->path, par.bufsz);
usr.bin/sndiod/siofile.c
207
logx(0, "%s: %u: unsupported block size", d->path, par.round);
usr.bin/sndiod/siofile.c
211
logx(0, "%s: %u: unsupported rate", d->path, par.rate);
usr.bin/sndiod/siofile.c
215
d->par.bits = par.bits;
usr.bin/sndiod/siofile.c
216
d->par.bps = par.bps;
usr.bin/sndiod/siofile.c
217
d->par.sig = par.sig;
usr.bin/sndiod/siofile.c
218
d->par.le = par.le;
usr.bin/sndiod/siofile.c
219
d->par.msb = par.msb;
usr.bin/sndiod/siofile.c
220
if (d->mode & SIO_PLAY)
usr.bin/sndiod/siofile.c
221
d->pchan = par.pchan;
usr.bin/sndiod/siofile.c
222
if (d->mode & SIO_REC)
usr.bin/sndiod/siofile.c
223
d->rchan = par.rchan;
usr.bin/sndiod/siofile.c
224
d->bufsz = par.bufsz;
usr.bin/sndiod/siofile.c
225
d->round = par.round;
usr.bin/sndiod/siofile.c
226
d->rate = par.rate;
usr.bin/sndiod/siofile.c
227
if (d->mode & MODE_PLAY)
usr.bin/sndiod/siofile.c
228
d->mode |= MODE_MON;
usr.bin/sndiod/siofile.c
229
sio_onmove(d->sio.hdl, dev_sio_onmove, d);
usr.bin/sndiod/siofile.c
230
sio_onxrun(d->sio.hdl, dev_sio_onxrun, d);
usr.bin/sndiod/siofile.c
231
d->sio.file = file_new(&dev_sio_ops, d, "dev", sio_nfds(d->sio.hdl));
usr.bin/sndiod/siofile.c
232
if (d->sioctl.hdl) {
usr.bin/sndiod/siofile.c
233
d->sioctl.file = file_new(&dev_sioctl_ops, d, "mix",
usr.bin/sndiod/siofile.c
234
sioctl_nfds(d->sioctl.hdl));
usr.bin/sndiod/siofile.c
236
timo_set(&d->sio.watchdog, dev_sio_timeout, d);
usr.bin/sndiod/siofile.c
237
dev_sioctl_open(d);
usr.bin/sndiod/siofile.c
240
sio_close(d->sio.hdl);
usr.bin/sndiod/siofile.c
241
if (d->sioctl.hdl) {
usr.bin/sndiod/siofile.c
242
sioctl_close(d->sioctl.hdl);
usr.bin/sndiod/siofile.c
243
d->sioctl.hdl = NULL;
usr.bin/sndiod/siofile.c
249
dev_sio_close(struct dev *d)
usr.bin/sndiod/siofile.c
251
dev_sioctl_close(d);
usr.bin/sndiod/siofile.c
253
logx(3, "%s: closed", d->path);
usr.bin/sndiod/siofile.c
255
timo_del(&d->sio.watchdog);
usr.bin/sndiod/siofile.c
256
file_del(d->sio.file);
usr.bin/sndiod/siofile.c
257
sio_close(d->sio.hdl);
usr.bin/sndiod/siofile.c
258
if (d->sioctl.hdl) {
usr.bin/sndiod/siofile.c
259
file_del(d->sioctl.file);
usr.bin/sndiod/siofile.c
260
sioctl_close(d->sioctl.hdl);
usr.bin/sndiod/siofile.c
261
d->sioctl.hdl = NULL;
usr.bin/sndiod/siofile.c
266
dev_sio_start(struct dev *d)
usr.bin/sndiod/siofile.c
268
if (!sio_start(d->sio.hdl)) {
usr.bin/sndiod/siofile.c
269
logx(1, "%s: failed to start device", d->path);
usr.bin/sndiod/siofile.c
272
if (d->mode & MODE_PLAY) {
usr.bin/sndiod/siofile.c
273
d->sio.cstate = DEV_SIO_CYCLE;
usr.bin/sndiod/siofile.c
274
d->sio.todo = 0;
usr.bin/sndiod/siofile.c
276
d->sio.cstate = DEV_SIO_READ;
usr.bin/sndiod/siofile.c
277
d->sio.todo = d->round * d->rchan * d->par.bps;
usr.bin/sndiod/siofile.c
280
d->sio.pused = 0;
usr.bin/sndiod/siofile.c
281
d->sio.rused = 0;
usr.bin/sndiod/siofile.c
282
d->sio.sum_utime = 0;
usr.bin/sndiod/siofile.c
283
d->sio.sum_wtime = 0;
usr.bin/sndiod/siofile.c
284
d->sio.wtime = file_wtime;
usr.bin/sndiod/siofile.c
285
d->sio.utime = file_utime;
usr.bin/sndiod/siofile.c
286
logx(3, "%s: started", d->path);
usr.bin/sndiod/siofile.c
288
timo_add(&d->sio.watchdog, WATCHDOG_USEC);
usr.bin/sndiod/siofile.c
292
dev_sio_stop(struct dev *d)
usr.bin/sndiod/siofile.c
294
if (!sio_eof(d->sio.hdl) && !sio_flush(d->sio.hdl)) {
usr.bin/sndiod/siofile.c
295
logx(1, "%s: failed to stop device", d->path);
usr.bin/sndiod/siofile.c
300
d->path, d->sio.sum_utime / 1000, d->sio.sum_wtime / 1000);
usr.bin/sndiod/siofile.c
302
timo_del(&d->sio.watchdog);
usr.bin/sndiod/siofile.c
308
struct dev *d = arg;
usr.bin/sndiod/siofile.c
311
events = (d->sio.cstate == DEV_SIO_READ) ? POLLIN : POLLOUT;
usr.bin/sndiod/siofile.c
312
return sio_pollfd(d->sio.hdl, pfd, events);
usr.bin/sndiod/siofile.c
318
struct dev *d = arg;
usr.bin/sndiod/siofile.c
321
events = sio_revents(d->sio.hdl, pfd);
usr.bin/sndiod/siofile.c
323
d->sio.events = events;
usr.bin/sndiod/siofile.c
331
struct dev *d = arg;
usr.bin/sndiod/siofile.c
342
if (d->pstate != DEV_RUN)
usr.bin/sndiod/siofile.c
344
switch (d->sio.cstate) {
usr.bin/sndiod/siofile.c
347
if (!(d->sio.events & POLLIN)) {
usr.bin/sndiod/siofile.c
348
logx(0, "%s: recording, but POLLIN not set", d->path);
usr.bin/sndiod/siofile.c
351
if (d->sio.todo == 0) {
usr.bin/sndiod/siofile.c
352
logx(0, "%s: can't read data", d->path);
usr.bin/sndiod/siofile.c
355
if (d->prime > 0) {
usr.bin/sndiod/siofile.c
356
logx(0, "%s: unexpected data", d->path);
usr.bin/sndiod/siofile.c
360
base = d->decbuf ? d->decbuf : (unsigned char *)d->rbuf;
usr.bin/sndiod/siofile.c
362
d->rchan * d->round * d->par.bps -
usr.bin/sndiod/siofile.c
363
d->sio.todo;
usr.bin/sndiod/siofile.c
364
n = sio_read(d->sio.hdl, data, d->sio.todo);
usr.bin/sndiod/siofile.c
365
d->sio.todo -= n;
usr.bin/sndiod/siofile.c
367
logx(4, "%s: read %u bytes, todo %u / %u", d->path,
usr.bin/sndiod/siofile.c
368
n, d->sio.todo, d->round * d->rchan * d->par.bps);
usr.bin/sndiod/siofile.c
370
if (d->sio.todo > 0)
usr.bin/sndiod/siofile.c
373
d->sio.rused -= d->round;
usr.bin/sndiod/siofile.c
374
if (d->sio.rused >= d->round) {
usr.bin/sndiod/siofile.c
376
d->path, d->sio.rused, d->bufsz);
usr.bin/sndiod/siofile.c
379
d->sio.cstate = DEV_SIO_CYCLE;
usr.bin/sndiod/siofile.c
382
timo_del(&d->sio.watchdog);
usr.bin/sndiod/siofile.c
383
timo_add(&d->sio.watchdog, WATCHDOG_USEC);
usr.bin/sndiod/siofile.c
391
if (!((d->mode & MODE_REC) && d->prime == 0) &&
usr.bin/sndiod/siofile.c
392
!(d->sio.events & POLLOUT)) {
usr.bin/sndiod/siofile.c
393
logx(0, "%s: cycle not at block boundary", d->path);
usr.bin/sndiod/siofile.c
397
dev_cycle(d);
usr.bin/sndiod/siofile.c
398
if (d->mode & MODE_PLAY) {
usr.bin/sndiod/siofile.c
399
d->sio.cstate = DEV_SIO_WRITE;
usr.bin/sndiod/siofile.c
400
d->sio.todo = d->round * d->pchan * d->par.bps;
usr.bin/sndiod/siofile.c
403
d->sio.cstate = DEV_SIO_READ;
usr.bin/sndiod/siofile.c
404
d->sio.todo = d->round * d->rchan * d->par.bps;
usr.bin/sndiod/siofile.c
409
if (d->sio.todo == 0) {
usr.bin/sndiod/siofile.c
410
logx(0, "%s: can't write data", d->path);
usr.bin/sndiod/siofile.c
414
base = d->encbuf ? d->encbuf : (unsigned char *)DEV_PBUF(d);
usr.bin/sndiod/siofile.c
416
d->pchan * d->round * d->par.bps -
usr.bin/sndiod/siofile.c
417
d->sio.todo;
usr.bin/sndiod/siofile.c
418
n = sio_write(d->sio.hdl, data, d->sio.todo);
usr.bin/sndiod/siofile.c
419
d->sio.todo -= n;
usr.bin/sndiod/siofile.c
422
d->path, n, d->sio.todo, d->round * d->pchan * d->par.bps);
usr.bin/sndiod/siofile.c
424
if (d->sio.todo > 0)
usr.bin/sndiod/siofile.c
427
d->sio.pused += d->round;
usr.bin/sndiod/siofile.c
428
if (d->prime == 0 &&
usr.bin/sndiod/siofile.c
429
d->sio.pused <= d->bufsz - d->round) {
usr.bin/sndiod/siofile.c
431
d->path, d->sio.pused, d->bufsz);
usr.bin/sndiod/siofile.c
433
if (d->sio.pused < 0 ||
usr.bin/sndiod/siofile.c
434
d->sio.pused > d->bufsz) {
usr.bin/sndiod/siofile.c
437
d->path, d->sio.pused, d->bufsz);
usr.bin/sndiod/siofile.c
440
d->poffs += d->round;
usr.bin/sndiod/siofile.c
441
if (d->poffs == d->psize)
usr.bin/sndiod/siofile.c
442
d->poffs = 0;
usr.bin/sndiod/siofile.c
443
if ((d->mode & MODE_REC) && d->prime == 0) {
usr.bin/sndiod/siofile.c
444
d->sio.cstate = DEV_SIO_READ;
usr.bin/sndiod/siofile.c
445
d->sio.todo = d->round * d->rchan * d->par.bps;
usr.bin/sndiod/siofile.c
447
d->sio.cstate = DEV_SIO_CYCLE;
usr.bin/sndiod/siofile.c
456
struct dev *d = arg;
usr.bin/sndiod/siofile.c
459
logx(2, "%s: disconnected", d->path);
usr.bin/sndiod/siofile.c
461
dev_migrate(d);
usr.bin/sndiod/siofile.c
462
dev_abort(d);
usr.bin/sndiod/siofile.c
60
struct dev *d = arg;
usr.bin/sndiod/siofile.c
63
logx(4, "%s: tick, delta = %d", d->path, delta);
usr.bin/sndiod/siofile.c
65
d->sio.sum_utime += file_utime - d->sio.utime;
usr.bin/sndiod/siofile.c
66
d->sio.sum_wtime += file_wtime - d->sio.wtime;
usr.bin/sndiod/siofile.c
67
d->sio.wtime = file_wtime;
usr.bin/sndiod/siofile.c
68
d->sio.utime = file_utime;
usr.bin/sndiod/siofile.c
69
if (d->mode & MODE_PLAY)
usr.bin/sndiod/siofile.c
70
d->sio.pused -= delta;
usr.bin/sndiod/siofile.c
71
if (d->mode & MODE_REC)
usr.bin/sndiod/siofile.c
72
d->sio.rused += delta;
usr.bin/sndiod/siofile.c
74
dev_onmove(d, delta);
usr.bin/sndiod/siofile.c
80
struct dev *d = arg;
usr.bin/sndiod/siofile.c
84
logx(1, "%s: xrun", d->path);
usr.bin/sndiod/siofile.c
86
for (s = d->slot_list; s != NULL; s = s->next)
usr.bin/sndiod/siofile.c
93
struct dev *d = arg;
usr.bin/sndiod/siofile.c
95
logx(1, "%s: watchdog timeout", d->path);
usr.bin/sndiod/siofile.c
97
timo_add(&d->sio.watchdog, WATCHDOG_USEC);
usr.bin/sndiod/sndiod.c
264
struct dev *d;
usr.bin/sndiod/sndiod.c
283
for (d = dev_list; d != NULL; d = d->next) {
usr.bin/sndiod/sndiod.c
284
if (d->refcnt > 0 && d->pstate == DEV_CFG)
usr.bin/sndiod/sndiod.c
285
dev_open(d);
usr.bin/sndiod/sndiod.c
327
struct dev *d;
usr.bin/sndiod/sndiod.c
329
for (d = dev_list; d != NULL; d = d->next) {
usr.bin/sndiod/sndiod.c
330
if (strcmp(d->path, path) == 0)
usr.bin/sndiod/sndiod.c
331
return d;
usr.bin/sndiod/sndiod.c
333
d = dev_new(path, par, hold, autovol);
usr.bin/sndiod/sndiod.c
334
if (d == NULL)
usr.bin/sndiod/sndiod.c
336
return d;
usr.bin/sndiod/sndiod.c
355
mkopt(char *path, struct dev *d, struct opt_alt *alt_list,
usr.bin/sndiod/sndiod.c
362
o = opt_new(d, path, pmin, pmax, rmin, rmax,
usr.bin/sndiod/sndiod.c
366
dev_adjpar(d, o->pmax, o->rmax);
usr.bin/sndiod/sndiod.c
390
struct dev *d;
usr.bin/sndiod/sndiod.c
427
for (d = dev_list; d != NULL; d = d->next) {
usr.bin/sndiod/sndiod.c
428
dounveil(d->path, "rsnd/", "/dev/audio");
usr.bin/sndiod/sndiod.c
429
dounveil(d->path, "rsnd/", "/dev/audioctl");
usr.bin/sndiod/sndiod.c
464
struct dev *d;
usr.bin/sndiod/sndiod.c
499
d = NULL;
usr.bin/sndiod/sndiod.c
549
if (d == NULL) {
usr.bin/sndiod/sndiod.c
553
d = dev_list;
usr.bin/sndiod/sndiod.c
555
if (mkopt(optarg, d, alt_list, pmin, pmax, rmin, rmax,
usr.bin/sndiod/sndiod.c
580
d = mkdev(optarg, &par, hold, autovol);
usr.bin/sndiod/sndiod.c
587
if (d == NULL)
usr.bin/sndiod/sndiod.c
648
for (d = dev_list; d != NULL; d = d->next) {
usr.bin/sndiod/sndiod.c
649
if (opt_new(d, NULL, o->pmin, o->pmax, o->rmin, o->rmax,
usr.bin/sndiod/sndiod.c
652
dev_adjpar(d, o->pmax, o->rmax);
usr.bin/sndiod/sndiod.c
686
for (d = dev_list; d != NULL; d = d->next) {
usr.bin/sndiod/sndiod.c
687
if (!dev_init(d))
usr.bin/sndiod/sndiod.c
736
for (d = dev_list; d != NULL; d = d->next)
usr.bin/sndiod/sndiod.c
737
dev_done(d);
usr.bin/sndiod/sock.c
112
struct dev *d;
usr.bin/sndiod/sock.c
115
d = dev_bynum(devnum);
usr.bin/sndiod/sock.c
116
if (d == NULL)
usr.bin/sndiod/sock.c
120
if (strcmp(o->name, d->name) == 0)
usr.bin/sndiod/sock.c
126
return (o != NULL && o->dev == d) ? o : NULL;
usr.bin/sndiod/sock.c
593
struct dev *d = s->opt->dev;
usr.bin/sndiod/sock.c
649
s->round = dev_roundof(d, rate);
usr.bin/sndiod/sock.c
652
appbufsz = d->bufsz / d->round * s->round;
usr.bin/sndiod/sock.c
670
max = 1 + rate / d->round;
usr.bin/sort/coll.c
1024
huge_minus(double d, int err1)
usr.bin/sort/coll.c
1027
if (d == -HUGE_VAL || d == -HUGE_VALF || d == -HUGE_VALL)
usr.bin/sort/coll.c
1037
huge_plus(double d, int err1)
usr.bin/sort/coll.c
1040
if (d == HUGE_VAL || d == HUGE_VALF || d == HUGE_VALL)
usr.bin/sort/coll.c
1050
is_nan(double d)
usr.bin/sort/coll.c
1053
return (d == NAN || isnan(d));
usr.bin/sort/coll.c
1055
return (isnan(d));
usr.bin/sort/coll.c
1099
kv1->hint->v.gh.d = d1;
usr.bin/sort/coll.c
1117
kv2->hint->v.gh.d = d2;
usr.bin/sort/coll.c
1140
cmp_nans(kv1->hint->v.gh.d, kv2->hint->v.gh.d) : -1;
usr.bin/sort/coll.c
1144
d1 = kv1->hint->v.gh.d;
usr.bin/sort/coll.c
1145
d2 = kv2->hint->v.gh.d;
usr.bin/sort/coll.h
50
double d;
usr.bin/spell/spellprog.c
395
nop(char *ep, char *d, char *a, int lev)
usr.bin/spell/spellprog.c
402
strip(char *ep, char *d, char *a, int lev)
usr.bin/spell/spellprog.c
409
s(char *ep, char *d, char *a, int lev)
usr.bin/spell/spellprog.c
416
return (strip(ep, d, a, lev));
usr.bin/spell/spellprog.c
420
an(char *ep, char *d, char *a, int lev)
usr.bin/spell/spellprog.c
429
ize(char *ep, char *d, char *a, int lev)
usr.bin/spell/spellprog.c
433
return (strip(ep ,"", d, lev));
usr.bin/spell/spellprog.c
437
y_to_e(char *ep, char *d, char *a, int lev)
usr.bin/spell/spellprog.c
442
if (strip(ep, "", d, lev))
usr.bin/spell/spellprog.c
449
ily(char *ep, char *d, char *a, int lev)
usr.bin/spell/spellprog.c
453
return (i_to_y(ep, d, a, lev));
usr.bin/spell/spellprog.c
455
return (strip(ep, d, a, lev));
usr.bin/spell/spellprog.c
459
ncy(char *ep, char *d, char *a, int lev)
usr.bin/spell/spellprog.c
465
return (strip(ep, d, a, lev));
usr.bin/spell/spellprog.c
469
bility(char *ep, char *d, char *a, int lev)
usr.bin/spell/spellprog.c
473
return (y_to_e(ep, d, a, lev));
usr.bin/spell/spellprog.c
477
i_to_y(char *ep, char *d, char *a, int lev)
usr.bin/spell/spellprog.c
482
a = d;
usr.bin/spell/spellprog.c
488
es(char *ep, char *d, char *a, int lev)
usr.bin/spell/spellprog.c
498
return (i_to_y(ep, d, a, lev));
usr.bin/spell/spellprog.c
503
return (strip(ep, d, a, lev));
usr.bin/spell/spellprog.c
508
metry(char *ep, char *d, char *a, int lev)
usr.bin/spell/spellprog.c
513
return (strip(ep, d, a, lev));
usr.bin/spell/spellprog.c
517
tion(char *ep, char *d, char *a, int lev)
usr.bin/spell/spellprog.c
525
return (y_to_e(ep, d, a, lev));
usr.bin/spell/spellprog.c
534
CCe(char *ep, char *d, char *a, int lev)
usr.bin/spell/spellprog.c
547
return (y_to_e(ep, d, a, lev));
usr.bin/spell/spellprog.c
562
if (y_to_e(ep, d, a, lev))
usr.bin/spell/spellprog.c
567
return (VCe(ep, d, a, lev));
usr.bin/spell/spellprog.c
574
VCe(char *ep, char *d, char *a, int lev)
usr.bin/spell/spellprog.c
584
if (trypref(ep, d, lev) || suffix(ep, lev))
usr.bin/spell/spellprog.c
589
return (strip(ep, d, a, lev));
usr.bin/spell/spellprog.c
758
char *d;
usr.bin/spell/spellprog.c
760
if ((d = strdup(s)) == NULL)
usr.bin/spell/spellprog.c
762
return (d);
usr.bin/ssh/bitmap.c
109
b->d[offset] |= (BITMAP_WTYPE)1 << (n & BITMAP_WMASK);
usr.bin/ssh/bitmap.c
119
while (b->top > 0 && b->d[b->top] == 0)
usr.bin/ssh/bitmap.c
133
b->d[offset] &= ~((BITMAP_WTYPE)1 << (n & BITMAP_WMASK));
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
180
s[need - 1 - k++] = (b->d[i] >> (j * 8)) & 0xff;
usr.bin/ssh/bitmap.c
203
b->d[offset] |= (BITMAP_WTYPE)s[i] << shift;
usr.bin/ssh/bitmap.c
30
BITMAP_WTYPE *d;
usr.bin/ssh/bitmap.c
42
if ((ret->d = calloc(1, BITMAP_BYTES)) == NULL) {
usr.bin/ssh/bitmap.c
54
if (b != NULL && b->d != NULL) {
usr.bin/ssh/bitmap.c
56
free(b->d);
usr.bin/ssh/bitmap.c
57
b->d = NULL;
usr.bin/ssh/bitmap.c
65
memset(b->d, 0, b->len * BITMAP_BYTES);
usr.bin/ssh/bitmap.c
76
return (b->d[n / BITMAP_BITS] >> (n & BITMAP_WMASK)) & 1;
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/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/digest-libc.c
198
ssh_digest_final(struct ssh_digest_ctx *ctx, u_char *d, size_t dlen)
usr.bin/ssh/digest-libc.c
208
digest->md_final(d, ctx->mdctx);
usr.bin/ssh/digest-libc.c
228
ssh_digest_memory(int alg, const void *m, size_t mlen, u_char *d, size_t dlen)
usr.bin/ssh/digest-libc.c
236
ssh_digest_final(ctx, d, dlen) != 0)
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
141
ssh_digest_final(struct ssh_digest_ctx *ctx, u_char *d, size_t dlen)
usr.bin/ssh/digest-openssl.c
150
if (EVP_DigestFinal_ex(ctx->mdctx, d, &l) != 1)
usr.bin/ssh/digest-openssl.c
167
ssh_digest_memory(int alg, const void *m, size_t mlen, u_char *d, size_t dlen)
usr.bin/ssh/digest-openssl.c
179
if (!EVP_Digest(m, mlen, d, &mdlen, digest->mdfunc(), NULL))
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
53
u_char *d, size_t 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
65
int ssh_digest_final(struct ssh_digest_ctx *ctx, u_char *d, size_t dlen)
usr.bin/ssh/ed25519.c
1672
fe25519 a,b,t1,t2,c,d,e,f,g,h,qt;
usr.bin/ssh/ed25519.c
1684
fe25519_add(&d, &r->z, &r->z); /* D = Z1*2 */
usr.bin/ssh/ed25519.c
1685
fe25519_sub(&f, &d, &c); /* F = D-C */
usr.bin/ssh/ed25519.c
1686
fe25519_add(&g, &d, &c); /* G = D+C */
usr.bin/ssh/ed25519.c
1695
fe25519 a, b, c, d, t;
usr.bin/ssh/ed25519.c
1705
fe25519_mul(&d, &p->z, &q->z); /* D = Z1*2*Z2 */
usr.bin/ssh/ed25519.c
1706
fe25519_add(&d, &d, &d);
usr.bin/ssh/ed25519.c
1708
fe25519_sub(&r->t, &d, &c); /* F = D-C */
usr.bin/ssh/ed25519.c
1709
fe25519_add(&r->z, &d, &c); /* G = D+C */
usr.bin/ssh/ed25519.c
1716
fe25519 a,b,c,d;
usr.bin/ssh/ed25519.c
1721
fe25519_neg(&d, &a);
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/hmac.c
104
ssh_hmac_final(struct ssh_hmac_ctx *ctx, u_char *d, size_t dlen)
usr.bin/ssh/hmac.c
115
ssh_digest_final(ctx->digest, d, dlen) < 0)
usr.bin/ssh/hmac.h
34
int ssh_hmac_final(struct ssh_hmac_ctx *ctx, u_char *d, size_t dlen)
usr.bin/ssh/libcrux_internal.h
4064
uint64_t d,
usr.bin/ssh/libcrux_internal.h
4068
return (((a ^ b) ^ c) ^ d) ^ e;
usr.bin/ssh/libcrux_internal.h
4075
libcrux_sha3_simd_portable_xor5_d2(uint64_t a, uint64_t b, uint64_t c, uint64_t d, uint64_t e)
usr.bin/ssh/libcrux_internal.h
4077
return libcrux_sha3_simd_portable__veor5q_u64(a, b, c, d, e);
usr.bin/ssh/misc-agent.c
267
DIR *d = NULL;
usr.bin/ssh/misc-agent.c
293
if ((d = opendir(dirpath)) == NULL) {
usr.bin/ssh/misc-agent.c
298
while ((dp = readdir(d)) != NULL) {
usr.bin/ssh/misc-agent.c
301
if (fstatat(dirfd(d), dp->d_name,
usr.bin/ssh/misc-agent.c
323
unlinkat(dirfd(d), dp->d_name, 0);
usr.bin/ssh/misc-agent.c
328
if (d != NULL)
usr.bin/ssh/misc-agent.c
329
closedir(d);
usr.bin/ssh/packet.c
1847
const u_char *d;
usr.bin/ssh/packet.c
1909
if ((r = sshpkt_get_string_direct(ssh, &d, &len)) != 0)
usr.bin/ssh/packet.c
1921
(r = sshpkt_put_string(ssh, d, len)) != 0 ||
usr.bin/ssh/sftp-usergroup.c
189
collect_ids_from_dirents(SFTP_DIRENT **d, int user, u_int **idsp, u_int *nidsp)
usr.bin/ssh/sftp-usergroup.c
193
for (i = 0; d[i] != NULL; i++) {
usr.bin/ssh/sftp-usergroup.c
195
if (ruser_name((uid_t)(d[i]->a.uid)) != NULL)
usr.bin/ssh/sftp-usergroup.c
197
id = d[i]->a.uid;
usr.bin/ssh/sftp-usergroup.c
199
if (rgroup_name((gid_t)(d[i]->a.gid)) != NULL)
usr.bin/ssh/sftp-usergroup.c
201
id = d[i]->a.gid;
usr.bin/ssh/sftp-usergroup.c
213
get_remote_user_groups_from_dirents(struct sftp_conn *conn, SFTP_DIRENT **d)
usr.bin/ssh/sftp-usergroup.c
220
collect_ids_from_dirents(d, 1, &uids, &nuids);
usr.bin/ssh/sftp-usergroup.c
221
collect_ids_from_dirents(d, 0, &gids, &ngids);
usr.bin/ssh/sftp-usergroup.h
21
void get_remote_user_groups_from_dirents(struct sftp_conn *conn, SFTP_DIRENT **d);
usr.bin/ssh/sftp.c
839
SFTP_DIRENT **d;
usr.bin/ssh/sftp.c
841
if ((n = sftp_readdir(conn, path, &d)) != 0)
usr.bin/ssh/sftp.c
850
for (n = 0; d[n] != NULL; n++) {
usr.bin/ssh/sftp.c
851
if (d[n]->filename[0] != '.' || (lflag & LS_SHOW_ALL))
usr.bin/ssh/sftp.c
852
m = MAXIMUM(m, strlen(d[n]->filename));
usr.bin/ssh/sftp.c
870
for (n = 0; d[n] != NULL; n++)
usr.bin/ssh/sftp.c
873
qsort(d, n, sizeof(*d), sdirent_comp);
usr.bin/ssh/sftp.c
876
get_remote_user_groups_from_dirents(conn, d);
usr.bin/ssh/sftp.c
877
for (n = 0; d[n] != NULL && !interrupted; n++) {
usr.bin/ssh/sftp.c
880
if (d[n]->filename[0] == '.' && !(lflag & LS_SHOW_ALL))
usr.bin/ssh/sftp.c
883
tmp = sftp_path_append(path, d[n]->filename);
usr.bin/ssh/sftp.c
895
attrib_to_stat(&d[n]->a, &sb);
usr.bin/ssh/sftp.c
905
mprintf("%s\n", d[n]->longname);
usr.bin/ssh/sftp.c
921
sftp_free_dirents(d);
usr.bin/ssh/ssh-agent.c
413
struct dest_constraint *d;
usr.bin/ssh/ssh-agent.c
418
d = id->dest_constraints + i;
usr.bin/ssh/ssh-agent.c
421
i, d->from.user ? d->from.user : "",
usr.bin/ssh/ssh-agent.c
422
d->from.user ? "@" : "",
usr.bin/ssh/ssh-agent.c
423
d->from.hostname ? d->from.hostname : "(ORIGIN)",
usr.bin/ssh/ssh-agent.c
424
d->from.nkeys,
usr.bin/ssh/ssh-agent.c
425
d->to.user ? d->to.user : "", d->to.user ? "@" : "",
usr.bin/ssh/ssh-agent.c
426
d->to.hostname ? d->to.hostname : "(ANY)", d->to.nkeys);
usr.bin/ssh/ssh-agent.c
431
if (d->from.hostname != NULL || d->from.nkeys != 0)
usr.bin/ssh/ssh-agent.c
433
} else if (match_key_hop("from", fromkey, &d->from) != 0)
usr.bin/ssh/ssh-agent.c
437
if (tokey != NULL && match_key_hop("to", tokey, &d->to) != 0)
usr.bin/ssh/ssh-agent.c
441
if (d->to.user != NULL && user != NULL &&
usr.bin/ssh/ssh-agent.c
442
!match_pattern(user, d->to.user))
usr.bin/ssh/ssh-agent.c
447
*hostnamep = d->to.hostname;
usr.bin/ssh/ssh-agent.c
449
d->to.hostname == NULL ? "*" : d->to.hostname);
usr.bin/ssh/ssh-pkcs11.c
1091
const unsigned char *d = NULL;
usr.bin/ssh/ssh-pkcs11.c
1144
d = (u_char *)key_attr[2].pValue;
usr.bin/ssh/ssh-pkcs11.c
1146
if ((len != sizeof(id1) || memcmp(d, id1, sizeof(id1)) != 0) &&
usr.bin/ssh/ssh-pkcs11.c
1147
(len != sizeof(id2) || memcmp(d, id2, sizeof(id2)) != 0)) {
usr.bin/ssh/ssh-pkcs11.c
1148
hex = tohex(d, len);
usr.bin/ssh/ssh-pkcs11.c
1157
d = (u_char *)key_attr[1].pValue;
usr.bin/ssh/ssh-pkcs11.c
1159
if (len == ED25519_PK_SZ + 2 && d[0] == 0x04 && d[1] == ED25519_PK_SZ) {
usr.bin/ssh/ssh-pkcs11.c
1160
d += 2;
usr.bin/ssh/ssh-pkcs11.c
1173
memcpy(key->ed25519_pk, d, ED25519_PK_SZ);
usr.bin/ssh/sshbuf-getput-basic.c
512
u_char *d;
usr.bin/ssh/sshbuf-getput-basic.c
519
if ((r = sshbuf_reserve(buf, len + 4, &d)) < 0)
usr.bin/ssh/sshbuf-getput-basic.c
521
POKE_U32(d, len);
usr.bin/ssh/sshbuf-getput-basic.c
523
memcpy(d + 4, v, len);
usr.bin/ssh/sshbuf-getput-basic.c
569
u_char *d;
usr.bin/ssh/sshbuf-getput-basic.c
585
if ((r = sshbuf_reserve(buf, len + 4 + prepend, &d)) < 0)
usr.bin/ssh/sshbuf-getput-basic.c
587
POKE_U32(d, len + prepend);
usr.bin/ssh/sshbuf-getput-basic.c
589
d[4] = 0;
usr.bin/ssh/sshbuf-getput-basic.c
591
memcpy(d + 4 + prepend, s, len);
usr.bin/ssh/sshbuf-getput-basic.c
599
const u_char *d;
usr.bin/ssh/sshbuf-getput-basic.c
603
if ((r = sshbuf_peek_string_direct(buf, &d, &olen)) < 0)
usr.bin/ssh/sshbuf-getput-basic.c
607
if ((len != 0 && (*d & 0x80) != 0))
usr.bin/ssh/sshbuf-getput-basic.c
611
(len == SSHBUF_MAX_BIGNUM + 1 && *d != 0))
usr.bin/ssh/sshbuf-getput-basic.c
614
while (len > 0 && *d == 0x00) {
usr.bin/ssh/sshbuf-getput-basic.c
615
d++;
usr.bin/ssh/sshbuf-getput-basic.c
619
*valp = d;
usr.bin/ssh/sshbuf-getput-crypto.c
100
if ((r = sshbuf_peek_string_direct(buf, &d, &len)) < 0) {
usr.bin/ssh/sshbuf-getput-crypto.c
104
if ((r = get_ec(d, len, pt, EC_KEY_get0_group(v))) != 0) {
usr.bin/ssh/sshbuf-getput-crypto.c
126
u_char d[SSHBUF_MAX_BIGNUM + 1];
usr.bin/ssh/sshbuf-getput-crypto.c
131
*d = '\0';
usr.bin/ssh/sshbuf-getput-crypto.c
132
if (BN_bn2bin(v, d + 1) != len)
usr.bin/ssh/sshbuf-getput-crypto.c
135
if (len > 0 && (d[1] & 0x80) != 0)
usr.bin/ssh/sshbuf-getput-crypto.c
137
if ((r = sshbuf_put_string(buf, d + 1 - prepend, len + prepend)) < 0) {
usr.bin/ssh/sshbuf-getput-crypto.c
138
explicit_bzero(d, sizeof(d));
usr.bin/ssh/sshbuf-getput-crypto.c
141
explicit_bzero(d, sizeof(d));
usr.bin/ssh/sshbuf-getput-crypto.c
148
u_char d[SSHBUF_MAX_ECPOINT];
usr.bin/ssh/sshbuf-getput-crypto.c
157
d, len, NULL) != len) {
usr.bin/ssh/sshbuf-getput-crypto.c
160
ret = sshbuf_put_string(buf, d, len);
usr.bin/ssh/sshbuf-getput-crypto.c
161
explicit_bzero(d, len);
usr.bin/ssh/sshbuf-getput-crypto.c
34
const u_char *d;
usr.bin/ssh/sshbuf-getput-crypto.c
40
if ((r = sshbuf_get_bignum2_bytes_direct(buf, &d, &len)) != 0)
usr.bin/ssh/sshbuf-getput-crypto.c
44
BN_bin2bn(d, len, v) == NULL) {
usr.bin/ssh/sshbuf-getput-crypto.c
54
get_ec(const u_char *d, size_t len, EC_POINT *v, const EC_GROUP *g)
usr.bin/ssh/sshbuf-getput-crypto.c
60
if (*d != POINT_CONVERSION_UNCOMPRESSED)
usr.bin/ssh/sshbuf-getput-crypto.c
62
if (v != NULL && EC_POINT_oct2point(g, v, d, len, NULL) != 1)
usr.bin/ssh/sshbuf-getput-crypto.c
70
const u_char *d;
usr.bin/ssh/sshbuf-getput-crypto.c
74
if ((r = sshbuf_peek_string_direct(buf, &d, &len)) < 0)
usr.bin/ssh/sshbuf-getput-crypto.c
76
if ((r = get_ec(d, len, v, g)) != 0)
usr.bin/ssh/sshbuf-getput-crypto.c
93
const u_char *d;
usr.bin/ssh/sshbuf-misc.c
126
sshbuf_dtob64(const struct sshbuf *d, struct sshbuf *b64, int wrap)
usr.bin/ssh/sshbuf-misc.c
132
if (d == NULL || b64 == NULL || sshbuf_len(d) >= SIZE_MAX / 2)
usr.bin/ssh/sshbuf-misc.c
134
if (sshbuf_len(d) == 0)
usr.bin/ssh/sshbuf-misc.c
136
slen = ((sshbuf_len(d) + 2) / 3) * 4 + 1;
usr.bin/ssh/sshbuf-misc.c
139
if (b64_ntop(sshbuf_ptr(d), sshbuf_len(d), s, slen) == -1) {
usr.bin/ssh/sshbuf-misc.c
204
sshbuf_dtourlb64(const struct sshbuf *d, struct sshbuf *b64, int wrap)
usr.bin/ssh/sshbuf-misc.c
211
if (sshbuf_len(d) == 0)
usr.bin/ssh/sshbuf-misc.c
217
if ((r = sshbuf_dtob64(d, b, wrap)) != 0)
usr.bin/ssh/sshbuf-misc.c
329
u_char *d;
usr.bin/ssh/sshbuf-misc.c
333
if ((r = sshbuf_reserve(buf, maxlen, &d)) != 0)
usr.bin/ssh/sshbuf-misc.c
335
rr = read(fd, d, maxlen);
usr.bin/ssh/sshbuf-misc.c
342
memset(d + rr, '\0', adjust);
usr.bin/ssh/sshbuf.c
102
if ((ret->cd = ret->d = calloc(1, ret->alloc)) == NULL) {
usr.bin/ssh/sshbuf.c
122
ret->d = NULL;
usr.bin/ssh/sshbuf.c
189
freezero(buf->d, buf->alloc);
usr.bin/ssh/sshbuf.c
196
u_char *d;
usr.bin/ssh/sshbuf.c
207
if ((d = recallocarray(buf->d, buf->alloc, SSHBUF_SIZE_INIT,
usr.bin/ssh/sshbuf.c
209
buf->cd = buf->d = d;
usr.bin/ssh/sshbuf.c
213
explicit_bzero(buf->d, buf->alloc);
usr.bin/ssh/sshbuf.c
266
if ((dp = recallocarray(buf->d, buf->alloc, rlen, 1)) == NULL)
usr.bin/ssh/sshbuf.c
268
buf->cd = buf->d = dp;
usr.bin/ssh/sshbuf.c
307
return buf->d + buf->off;
usr.bin/ssh/sshbuf.c
355
if ((dp = recallocarray(buf->d, buf->alloc, rlen, 1)) == NULL) {
usr.bin/ssh/sshbuf.c
360
buf->cd = buf->d = dp;
usr.bin/ssh/sshbuf.c
382
dp = buf->d + buf->size;
usr.bin/ssh/sshbuf.c
41
u_char *d; /* Data */
usr.bin/ssh/sshbuf.c
57
(!buf->readonly && buf->d != buf->cd) ||
usr.bin/ssh/sshbuf.c
83
memmove(buf->d, buf->d + buf->off, buf->size - buf->off);
usr.bin/ssh/sshbuf.h
270
int sshbuf_dtob64(const struct sshbuf *d, struct sshbuf *b64, int wrap);
usr.bin/ssh/sshbuf.h
272
int sshbuf_dtourlb64(const struct sshbuf *d, struct sshbuf *b64, int wrap);
usr.bin/ssh/umac.c
336
const UINT32 *d = (const UINT32 *)dp;
usr.bin/ssh/umac.c
342
d0 = LOAD_UINT32_LITTLE(d+0); d1 = LOAD_UINT32_LITTLE(d+1);
usr.bin/ssh/umac.c
343
d2 = LOAD_UINT32_LITTLE(d+2); d3 = LOAD_UINT32_LITTLE(d+3);
usr.bin/ssh/umac.c
344
d4 = LOAD_UINT32_LITTLE(d+4); d5 = LOAD_UINT32_LITTLE(d+5);
usr.bin/ssh/umac.c
345
d6 = LOAD_UINT32_LITTLE(d+6); d7 = LOAD_UINT32_LITTLE(d+7);
usr.bin/ssh/umac.c
353
d += 8;
usr.bin/ssh/umac.c
369
const UINT32 *d = (const UINT32 *)dp;
usr.bin/ssh/umac.c
378
d0 = LOAD_UINT32_LITTLE(d+0); d1 = LOAD_UINT32_LITTLE(d+1);
usr.bin/ssh/umac.c
379
d2 = LOAD_UINT32_LITTLE(d+2); d3 = LOAD_UINT32_LITTLE(d+3);
usr.bin/ssh/umac.c
380
d4 = LOAD_UINT32_LITTLE(d+4); d5 = LOAD_UINT32_LITTLE(d+5);
usr.bin/ssh/umac.c
381
d6 = LOAD_UINT32_LITTLE(d+6); d7 = LOAD_UINT32_LITTLE(d+7);
usr.bin/ssh/umac.c
399
d += 8;
usr.bin/ssh/umac.c
416
const UINT32 *d = (const UINT32 *)dp;
usr.bin/ssh/umac.c
427
d0 = LOAD_UINT32_LITTLE(d+0); d1 = LOAD_UINT32_LITTLE(d+1);
usr.bin/ssh/umac.c
428
d2 = LOAD_UINT32_LITTLE(d+2); d3 = LOAD_UINT32_LITTLE(d+3);
usr.bin/ssh/umac.c
429
d4 = LOAD_UINT32_LITTLE(d+4); d5 = LOAD_UINT32_LITTLE(d+5);
usr.bin/ssh/umac.c
430
d6 = LOAD_UINT32_LITTLE(d+6); d7 = LOAD_UINT32_LITTLE(d+7);
usr.bin/ssh/umac.c
453
d += 8;
usr.bin/ssh/umac.c
471
const UINT32 *d = (const UINT32 *)dp;
usr.bin/ssh/umac.c
484
d0 = LOAD_UINT32_LITTLE(d+0); d1 = LOAD_UINT32_LITTLE(d+1);
usr.bin/ssh/umac.c
485
d2 = LOAD_UINT32_LITTLE(d+2); d3 = LOAD_UINT32_LITTLE(d+3);
usr.bin/ssh/umac.c
486
d4 = LOAD_UINT32_LITTLE(d+4); d5 = LOAD_UINT32_LITTLE(d+5);
usr.bin/ssh/umac.c
487
d6 = LOAD_UINT32_LITTLE(d+6); d7 = LOAD_UINT32_LITTLE(d+7);
usr.bin/ssh/umac.c
516
d += 8;
usr.bin/systat/engine.c
163
int d, s;
usr.bin/systat/engine.c
177
d = s = 0;
usr.bin/systat/engine.c
179
while (curdigit && d < tb_len) {
usr.bin/systat/engine.c
181
tb_ptr[d++] = ',';
usr.bin/systat/engine.c
182
tb_ptr[d++] = buf[s++];
usr.bin/systat/engine.c
186
while (len > digits && d < tb_len) {
usr.bin/systat/engine.c
187
tb_ptr[d++] = buf[s++];
usr.bin/systat/engine.c
190
tb_ptr[d] = '\0';
usr.bin/systat/engine.c
191
tb_ptr += d;
usr.bin/systat/engine.c
192
tb_len -= d;
usr.bin/systat/engine.c
193
len = d;
usr.bin/systat/engine.c
312
int len, i, d, tr, tw, val, pos, cur;
usr.bin/systat/engine.c
332
d = divs[i];
usr.bin/systat/engine.c
336
tr = fld->arg % d;
usr.bin/systat/engine.c
337
tw = fld->width % d;
usr.bin/systat/engine.c
341
for(i = 0; i < d; i++) {
usr.bin/systat/engine.c
345
while (tr >= d) {
usr.bin/systat/engine.c
347
tr -= d;
usr.bin/systat/engine.c
349
while (tw >= d) {
usr.bin/systat/engine.c
351
tw -= d;
usr.bin/systat/engine.c
726
print_fld_sdiv(field_def *fld, u_int64_t size, int d)
usr.bin/systat/engine.c
742
size /= d;
usr.bin/systat/engine.c
754
size /= d;
usr.bin/systat/engine.c
773
print_fld_ssdiv(field_def *fld, int64_t size, int d)
usr.bin/systat/engine.c
789
size /= d;
usr.bin/systat/engine.c
796
size /= d;
usr.bin/systat/engine.c
803
size /= d;
usr.bin/systat/engine.c
810
size /= d;
usr.bin/systat/main.c
427
double d = 0;
usr.bin/systat/main.c
445
d = strtod(nptr, &ep);
usr.bin/systat/main.c
448
else if ((d == -HUGE_VAL && errno == ERANGE) || d < minval)
usr.bin/systat/main.c
450
else if ((d == HUGE_VAL && errno == ERANGE) || d > maxval)
usr.bin/systat/main.c
457
d = 0;
usr.bin/systat/main.c
459
return (d);
usr.bin/systat/swap.c
176
int d, used, xsize;
usr.bin/systat/swap.c
180
d = blocksize / 512;
usr.bin/systat/swap.c
192
print_fld_uint(FLD_SW_BLOCKS, xsize / d);
usr.bin/systat/swap.c
193
print_fld_uint(FLD_SW_USED, used / d);
usr.bin/systat/swap.c
203
int d, i, avail, used, xsize, mfree;
usr.bin/systat/swap.c
205
d = blocksize / 512;
usr.bin/systat/swap.c
217
print_fld_uint(FLD_SW_BLOCKS, avail / d);
usr.bin/systat/swap.c
218
print_fld_uint(FLD_SW_USED, used / d);
usr.bin/systat/vmstat.c
573
putfloat(double f, int l, int c, int w, int d, int nz)
usr.bin/systat/vmstat.c
583
snprintf(b, sizeof b, "%*.*f", w, d, f);
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/telnet/ring.c
51
#define ring_increment(d,a,c) (((a)+(c) < (d)->top)? \
usr.bin/telnet/ring.c
52
(a)+(c) : (((a)+(c))-(d)->size))
usr.bin/telnet/ring.c
54
#define ring_decrement(d,a,c) (((a)-(c) >= (d)->bottom)? \
usr.bin/telnet/ring.c
55
(a)-(c) : (((a)-(c))-(d)->size))
usr.bin/telnet/ring.c
68
#define ring_empty(d) (((d)->consume == (d)->supply) && \
usr.bin/telnet/ring.c
69
((d)->consumetime >= (d)->supplytime))
usr.bin/telnet/ring.c
70
#define ring_full(d) (((d)->supply == (d)->consume) && \
usr.bin/telnet/ring.c
71
((d)->supplytime > (d)->consumetime))
usr.bin/tic/dump_entry.c
1134
char *s = srccap, *d = buffer;
usr.bin/tic/dump_entry.c
1136
while ((*d = *s++) != 0) {
usr.bin/tic/dump_entry.c
1137
if ((d - buffer + 2) >= (int) sizeof(buffer)) {
usr.bin/tic/dump_entry.c
1142
*d = '\0';
usr.bin/tic/dump_entry.c
1145
if (*d == ':') {
usr.bin/tic/dump_entry.c
1146
*d++ = '\\';
usr.bin/tic/dump_entry.c
1147
*d = ':';
usr.bin/tic/dump_entry.c
1148
} else if (*d == '\\') {
usr.bin/tic/dump_entry.c
1149
if ((*++d = *s++) == '\0')
usr.bin/tic/dump_entry.c
1152
d++;
usr.bin/tic/dump_entry.c
1153
*d = '\0';
usr.bin/tic/dump_entry.c
1155
need += (int) (d - buffer);
usr.bin/tic/dump_entry.c
533
size_t s, d;
usr.bin/tic/dump_entry.c
535
for (s = d = 0; src[s] != '\0'; ++s) {
usr.bin/tic/dump_entry.c
538
_nc_STRCPY(&result[d], fill, need + 1 - d);
usr.bin/tic/dump_entry.c
539
d += size;
usr.bin/tic/dump_entry.c
545
result[d++] = src[s];
usr.bin/tic/dump_entry.c
547
++d;
usr.bin/tic/dump_entry.c
552
result[d] = '\0';
usr.bin/tic/tic.c
208
char *s, *d, *t;
usr.bin/tic/tic.c
219
d = result;
usr.bin/tic/tic.c
222
*d++ = (char) ch;
usr.bin/tic/tic.c
224
if ((*d++ = *t++) == '\0')
usr.bin/tic/tic.c
236
*d++ = S_QUOTE;
usr.bin/tic/tic.c
237
*d++ = (char) value;
usr.bin/tic/tic.c
238
*d++ = S_QUOTE;
usr.bin/tic/tic.c
243
*d = 0;
usr.bin/tmux/cmd-run-shell.c
120
double d;
usr.bin/tmux/cmd-run-shell.c
127
d = strtod(delay, &end);
usr.bin/tmux/cmd-run-shell.c
181
tv.tv_sec = (time_t)d;
usr.bin/tmux/cmd-run-shell.c
182
tv.tv_usec = (d - (double)tv.tv_sec) * 1000000U;
usr.bin/tmux/colour.c
140
int qr, qg, qb, cr, cg, cb, d, idx;
usr.bin/tmux/colour.c
161
d = colour_dist_sq(cr, cg, cb, r, g, b);
usr.bin/tmux/colour.c
162
if (colour_dist_sq(grey, grey, grey, r, g, b) < d)
usr.bin/tmux/format.c
4410
u_int d, h, m, s;
usr.bin/tmux/format.c
4420
d = age / 86400;
usr.bin/tmux/format.c
4425
if (d != 0) {
usr.bin/tmux/format.c
4427
xsnprintf(out, sizeof out, "%ud%uh", d, h);
usr.bin/tmux/format.c
4429
xsnprintf(out, sizeof out, "%ud", d);
usr.bin/tmux/window-copy.c
4245
const char *d;
usr.bin/tmux/window-copy.c
4260
d = window_copy_cellstring(gl, ax, &dlen, &allocated);
usr.bin/tmux/window-copy.c
4267
buf[bx++] = *d;
usr.bin/tmux/window-copy.c
4269
memcpy(buf + bx, d, dlen);
usr.bin/tmux/window-copy.c
4273
free((void *)d);
usr.bin/tmux/window-copy.c
4289
const char *d;
usr.bin/tmux/window-copy.c
4292
const char *d;
usr.bin/tmux/window-copy.c
4308
cells[cell].d = window_copy_cellstring(gl, px,
usr.bin/tmux/window-copy.c
4333
d = cells[ccell].d;
usr.bin/tmux/window-copy.c
4336
if (str[pos] != *d) {
usr.bin/tmux/window-copy.c
4344
if (memcmp(str + pos, d, dlen) != 0) {
usr.bin/tmux/window-copy.c
4371
free((void *)cells[cell].d);
usr.bin/tset/tset.c
587
char *s, *t, *d;
usr.bin/tset/tset.c
590
for (s = buffer, t = d = 0; *s; s++) {
usr.bin/tset/tset.c
595
else if (d == 0 && s != buffer && s[-1] == '\0')
usr.bin/tset/tset.c
596
d = s;
usr.bin/tset/tset.c
598
if (t != 0 && d != 0 && !strcmp(d, p)) {
usr.bin/usbhidaction/usbhidaction.c
238
struct hid_data *d;
usr.bin/usbhidaction/usbhidaction.c
302
d = hid_start_parse(repd, 1 << hid_input, reportid);
usr.bin/usbhidaction/usbhidaction.c
303
if (d == NULL)
usr.bin/usbhidaction/usbhidaction.c
305
while (hid_get_item(d, &h)) {
usr.bin/usbhidaction/usbhidaction.c
357
hid_end_parse(d);
usr.bin/usbhidaction/usbhidaction.c
378
hid_end_parse(d);
usr.bin/watch/watch.c
140
opt_interval.d = intvl;
usr.bin/watch/watch.c
279
printw("Every %.4gs: ", opt_interval.d);
usr.bin/watch/watch.c
67
double d;
usr.bin/watch/watch.c
70
.d = DEFAULT_INTERVAL
usr.bin/x99token/x99token.c
113
int d;
usr.bin/x99token/x99token.c
118
d = buf[i] - '0';
usr.bin/x99token/x99token.c
120
d = buf[i] - 'A' + 10;
usr.bin/x99token/x99token.c
125
key[i>>1] |= d << ((i & 1) ? 0 : 4);
usr.sbin/acme-client/json.c
101
if (n->d.obj == NULL)
usr.sbin/acme-client/json.c
105
&n->d.obj[i].lhs,
usr.sbin/acme-client/json.c
111
&n->d.obj[i].rhs,
usr.sbin/acme-client/json.c
122
n->d.array = calloc(n->fields,
usr.sbin/acme-client/json.c
124
if (n->d.array == NULL)
usr.sbin/acme-client/json.c
128
&n->d.array[i],
usr.sbin/acme-client/json.c
159
free(n->d.array);
usr.sbin/acme-client/json.c
162
free(n->d.obj);
usr.sbin/acme-client/json.c
165
free(n->d.str);
usr.sbin/acme-client/json.c
168
free(n->d.str);
usr.sbin/acme-client/json.c
238
return n->type != JSMN_STRING ? NULL : n->d.str;
usr.sbin/acme-client/json.c
254
if (n->d.obj[i].lhs->type != JSMN_STRING &&
usr.sbin/acme-client/json.c
255
n->d.obj[i].lhs->type != JSMN_PRIMITIVE)
usr.sbin/acme-client/json.c
257
else if (strcmp(name, n->d.obj[i].lhs->d.str))
usr.sbin/acme-client/json.c
263
if (n->d.obj[i].rhs->type != JSMN_ARRAY)
usr.sbin/acme-client/json.c
265
return n->d.obj[i].rhs;
usr.sbin/acme-client/json.c
281
if (n->d.obj[i].lhs->type != JSMN_STRING &&
usr.sbin/acme-client/json.c
282
n->d.obj[i].lhs->type != JSMN_PRIMITIVE)
usr.sbin/acme-client/json.c
284
else if (strcmp(name, n->d.obj[i].lhs->d.str))
usr.sbin/acme-client/json.c
290
if (n->d.obj[i].rhs->type != JSMN_OBJECT)
usr.sbin/acme-client/json.c
292
return n->d.obj[i].rhs;
usr.sbin/acme-client/json.c
309
if (n->d.obj[i].lhs->type != JSMN_STRING &&
usr.sbin/acme-client/json.c
310
n->d.obj[i].lhs->type != JSMN_PRIMITIVE)
usr.sbin/acme-client/json.c
312
else if (strcmp(name, n->d.obj[i].lhs->d.str))
usr.sbin/acme-client/json.c
318
if (n->d.obj[i].rhs->type != JSMN_STRING &&
usr.sbin/acme-client/json.c
319
n->d.obj[i].rhs->type != JSMN_PRIMITIVE)
usr.sbin/acme-client/json.c
322
cp = strdup(n->d.obj[i].rhs->d.str);
usr.sbin/acme-client/json.c
389
obj = json_getarrayobj(array->d.array[i]);
usr.sbin/acme-client/json.c
42
} d;
usr.sbin/acme-client/json.c
475
str = json_getarraystr(array->d.array[i]);
usr.sbin/acme-client/json.c
91
n->d.str = strndup
usr.sbin/acme-client/json.c
94
if (n->d.str == NULL)
usr.sbin/acme-client/json.c
99
n->d.obj = calloc(n->fields,
usr.sbin/acme-client/parse.y
1013
struct domain_c *d;
usr.sbin/acme-client/parse.y
1015
d = domain_find_handle(c, s);
usr.sbin/acme-client/parse.y
1016
if (d != NULL)
usr.sbin/acme-client/parse.y
1018
if ((d = calloc(1, sizeof(struct domain_c))) == NULL)
usr.sbin/acme-client/parse.y
1020
TAILQ_INSERT_TAIL(&c->domain_list, d, entry);
usr.sbin/acme-client/parse.y
1022
d->handle = s;
usr.sbin/acme-client/parse.y
1023
TAILQ_INIT(&d->altname_list);
usr.sbin/acme-client/parse.y
1025
return d;
usr.sbin/acme-client/parse.y
1031
struct domain_c *d;
usr.sbin/acme-client/parse.y
1033
TAILQ_FOREACH(d, &c->domain_list, entry) {
usr.sbin/acme-client/parse.y
1034
if (strncmp(d->handle, s, DOMAIN_MAXLEN) == 0) {
usr.sbin/acme-client/parse.y
1035
return d;
usr.sbin/acme-client/parse.y
1064
struct domain_c *d;
usr.sbin/acme-client/parse.y
1071
while ((d = TAILQ_FIRST(&xconf->domain_list)) != NULL) {
usr.sbin/acme-client/parse.y
1072
while ((ac = TAILQ_FIRST(&d->altname_list)) != NULL) {
usr.sbin/acme-client/parse.y
1073
TAILQ_REMOVE(&d->altname_list, ac, entry);
usr.sbin/acme-client/parse.y
1076
TAILQ_REMOVE(&xconf->domain_list, d, entry);
usr.sbin/acme-client/parse.y
1077
free(d);
usr.sbin/acme-client/parse.y
1099
struct domain_c *d;
usr.sbin/acme-client/parse.y
1114
TAILQ_FOREACH(d, &xconf->domain_list, entry) {
usr.sbin/acme-client/parse.y
1116
printf("domain %s {\n", d->handle);
usr.sbin/acme-client/parse.y
1117
if (d->domain != NULL)
usr.sbin/acme-client/parse.y
1118
printf("\tdomain name \"%s\"\n", d->domain);
usr.sbin/acme-client/parse.y
1119
TAILQ_FOREACH(ac, &d->altname_list, entry) {
usr.sbin/acme-client/parse.y
1129
if (d->key != NULL)
usr.sbin/acme-client/parse.y
1130
printf("\tdomain key \"%s\" %s\n", d->key, kt2txt(
usr.sbin/acme-client/parse.y
1131
d->keytype));
usr.sbin/acme-client/parse.y
1132
if (d->cert != NULL)
usr.sbin/acme-client/parse.y
1133
printf("\tdomain certificate \"%s\"\n", d->cert);
usr.sbin/acme-client/parse.y
1134
if (d->chain != NULL)
usr.sbin/acme-client/parse.y
1135
printf("\tdomain chain certificate \"%s\"\n", d->chain);
usr.sbin/acme-client/parse.y
1136
if (d->fullchain != NULL)
usr.sbin/acme-client/parse.y
1138
d->fullchain);
usr.sbin/acme-client/parse.y
1139
if (d->profile != NULL)
usr.sbin/acme-client/parse.y
1140
printf("\tprofile \"%s\"\n", d->profile);
usr.sbin/acme-client/parse.y
1141
if (d->auth != NULL)
usr.sbin/acme-client/parse.y
1142
printf("\tsign with \"%s\"\n", d->auth);
usr.sbin/acme-client/parse.y
1143
if (d->challengedir != NULL)
usr.sbin/acme-client/parse.y
1144
printf("\tchallengedir \"%s\"\n", d->challengedir);
usr.sbin/acme-client/revokeproc.c
198
name_len = ASN1_STRING_length(gen_name->d.iPAddress);
usr.sbin/acme-client/revokeproc.c
202
ASN1_STRING_get0_data(gen_name->d.iPAddress),
usr.sbin/acme-client/revokeproc.c
207
ASN1_STRING_get0_data(gen_name->d.iPAddress),
usr.sbin/acme-client/revokeproc.c
220
name_len = ASN1_STRING_length(gen_name->d.dNSName);
usr.sbin/acme-client/revokeproc.c
223
ASN1_STRING_get0_data(gen_name->d.dNSName));
usr.sbin/bgpd/chash.c
964
uint64_t c, d;
usr.sbin/bgpd/chash.c
967
d = (ch_rotate(a, 25) + b) * mul;
usr.sbin/bgpd/chash.c
968
return ch_mix(c, d, mul);
usr.sbin/bgpd/control.c
341
monotime_t d;
usr.sbin/bgpd/control.c
348
i, &d))
usr.sbin/bgpd/control.c
351
ct.val = d;
usr.sbin/bgpd/rtr_proto.c
1572
monotime_t d;
usr.sbin/bgpd/rtr_proto.c
1597
if (!timer_running(&rs->timers, i, &d))
usr.sbin/bgpd/rtr_proto.c
1600
ct.val = d;
usr.sbin/bgplgd/slowcgi.c
1117
const char *d = buf;
usr.sbin/bgplgd/slowcgi.c
1133
memcpy(resp->data + sizeof(struct fcgi_record_header), d, n);
usr.sbin/bgplgd/slowcgi.c
1141
d += n;
usr.sbin/config/main.c
653
struct devbase *d;
usr.sbin/config/main.c
659
for (d = allbases; d != NULL; d = d->d_next) {
usr.sbin/config/main.c
660
for (da = d->d_ahead; da != NULL; da = da->d_bsame)
usr.sbin/config/main.c
667
if (ht_lookup(needcnttab, d->d_name)) {
usr.sbin/config/main.c
669
d->d_name);
usr.sbin/config/mkioconf.c
145
struct devbase *d;
usr.sbin/config/mkioconf.c
149
for (d = allbases; d != NULL; d = d->d_next) {
usr.sbin/config/mkioconf.c
150
if (!devbase_has_instances(d, WILD))
usr.sbin/config/mkioconf.c
153
d->d_name) < 0)
usr.sbin/config/mkioconf.c
424
struct devbase *d;
usr.sbin/config/mkioconf.c
436
d = i->i_base;
usr.sbin/config/mkioconf.c
437
if (fprintf(fp, "\t\"%s\",\n", d->d_name) < 0)
usr.sbin/config/mkioconf.c
448
d = i->i_base;
usr.sbin/config/mkioconf.c
449
umax = d->d_umax;
usr.sbin/config/mkioconf.c
453
d->d_name, umax) < 0)
usr.sbin/config/mkswap.c
74
mkdevstr(dev_t d)
usr.sbin/config/mkswap.c
78
if (d == nodev)
usr.sbin/config/mkswap.c
82
major(d), minor(d));
usr.sbin/config/pack.c
165
struct deva *d;
usr.sbin/config/pack.c
170
for (d = alldevas; d != NULL; d = d->d_next) {
usr.sbin/config/pack.c
175
for (i = d->d_ihead; i != NULL; i = i->i_asame) {
usr.sbin/config/sem.c
1031
selectbase(struct devbase *d, struct deva *da)
usr.sbin/config/sem.c
1036
(void)ht_insert(selecttab, d->d_name, (char *)d->d_name);
usr.sbin/config/sem.c
1037
for (nv = d->d_attrs; nv != NULL; nv = nv->nv_next) {
usr.sbin/config/sem.c
488
setmajor(struct devbase *d, int n)
usr.sbin/config/sem.c
491
if (d != &errdev && d->d_major != nodev)
usr.sbin/config/sem.c
493
d->d_name, d->d_major);
usr.sbin/config/sem.c
495
d->d_major = n;
usr.sbin/config/sem.c
529
dev_t d = nodev;
usr.sbin/config/sem.c
537
d = makedev(maj, min);
usr.sbin/config/sem.c
539
*nvp = nv = newnv(NULL, NULL, NULL, d, NULL);
usr.sbin/config/sem.c
675
newdevi(const char *name, int unit, struct devbase *d)
usr.sbin/config/sem.c
682
i->i_base = d;
usr.sbin/config/sem.c
695
if (unit >= d->d_umax)
usr.sbin/config/sem.c
696
d->d_umax = unit + 1;
usr.sbin/config/sem.c
83
static struct devi *newdevi(const char *, int, struct devbase *d);
usr.sbin/config/sem.c
892
struct devbase *d;
usr.sbin/config/sem.c
895
d = ht_lookup(devbasetab, name);
usr.sbin/config/sem.c
896
if (d == NULL) {
usr.sbin/config/sem.c
900
if (!d->d_ispseudo) {
usr.sbin/config/sem.c
906
d->d_umax = number;
usr.sbin/config/sem.c
909
i = newdevi(name, number - 1, d); /* foo 16 => "foo0..foo15" */
usr.sbin/config/sem.c
913
selectbase(d, NULL);
usr.sbin/config/sem.c
926
struct devbase *d;
usr.sbin/config/sem.c
934
d = ht_lookup(devbasetab, intern(base));
usr.sbin/config/sem.c
935
if (d == NULL) {
usr.sbin/config/sem.c
939
if (d->d_ispseudo) {
usr.sbin/config/sem.c
944
i = newdevi(name, unit, d);
usr.sbin/config/sem.c
948
*d->d_ipp = i;
usr.sbin/config/sem.c
949
d->d_ipp = &i->i_bsame;
usr.sbin/config/sem.h
55
void setmajor(struct devbase *d, int n);
usr.sbin/crunchgen/crunchgen.c
852
char *n, *s, *d;
usr.sbin/crunchgen/crunchgen.c
862
for (d = s = n; *s != '\0'; s++) {
usr.sbin/crunchgen/crunchgen.c
864
*d++ = '_';
usr.sbin/crunchgen/crunchgen.c
866
*d++ = *s;
usr.sbin/crunchgen/crunchgen.c
868
*d = '\0';
usr.sbin/dhcp6leasectl/dhcp6leasectl.c
189
time_t d, h, m, s;
usr.sbin/dhcp6leasectl/dhcp6leasectl.c
214
d = s / 86400;
usr.sbin/dhcp6leasectl/dhcp6leasectl.c
217
if (s - d * 86400 > 43200)
usr.sbin/dhcp6leasectl/dhcp6leasectl.c
218
d++;
usr.sbin/dhcp6leasectl/dhcp6leasectl.c
219
printf("\tlease %lld day%s\n", d, d > 1 ? "s" : "");
usr.sbin/dhcpd/tree.c
102
memcpy(d, data, len);
usr.sbin/dhcpd/tree.c
105
nt->data.const_val.data = d;
usr.sbin/dhcpd/tree.c
94
unsigned char *d;
usr.sbin/dhcpd/tree.c
97
d = calloc(1, len);
usr.sbin/dhcpd/tree.c
99
if (!nt || !d)
usr.sbin/dhcpleasectl/dhcpleasectl.c
223
time_t d, h, m, s;
usr.sbin/dhcpleasectl/dhcpleasectl.c
283
d = s / 86400;
usr.sbin/dhcpleasectl/dhcpleasectl.c
286
if (s - d * 86400 > 43200)
usr.sbin/dhcpleasectl/dhcpleasectl.c
287
d++;
usr.sbin/dhcpleasectl/dhcpleasectl.c
288
printf("\tlease %lld day%s\n", d, d > 1 ? "s" : "");
usr.sbin/installboot/util.c
103
char *r = NULL, *d, *b, *s;
usr.sbin/installboot/util.c
115
if ((d = dirname(s)) == NULL) {
usr.sbin/installboot/util.c
119
if ((r = realpath(d, NULL)) == NULL) {
usr.sbin/ldapd/btree.c
220
#define LEAFSIZE(k, d) (NODESIZE + (k)->size + (d)->size)
usr.sbin/ldapd/logmsg.c
268
if (ober_get_boolean(root, &d) == -1) {
usr.sbin/ldapd/logmsg.c
272
fprintf(stderr, "%s(%d)\n", d ? "true" : "false", d);
usr.sbin/ldapd/logmsg.c
41
ldap_loginit(const char *name, int d, int v)
usr.sbin/ldapd/logmsg.c
46
debug = d;
usr.sbin/ldapd/logmsg.c
94
int d;
usr.sbin/ldomctl/config.c
154
node2 = prop->d.arc.node;
usr.sbin/ldomctl/config.c
1683
node2 = prop->d.arc.node;
usr.sbin/ldomctl/config.c
1759
node2 = prop->d.arc.node;
usr.sbin/ldomctl/config.c
1832
node2 = prop->d.arc.node;
usr.sbin/ldomctl/config.c
2119
node2 = prop->d.arc.node;
usr.sbin/ldomctl/config.c
2225
node2 = prop->d.arc.node;
usr.sbin/ldomctl/config.c
2269
node2 = prop->d.arc.node;
usr.sbin/ldomctl/config.c
2347
node2 = prop->d.arc.node;
usr.sbin/ldomctl/config.c
2404
prop->d.arc.node == port) {
usr.sbin/ldomctl/config.c
2424
node2 = prop->d.arc.node;
usr.sbin/ldomctl/config.c
2703
node2 = prop->d.arc.node;
usr.sbin/ldomctl/config.c
2725
node2 = prop->d.arc.node;
usr.sbin/ldomctl/config.c
2739
node2 = prop->d.arc.node;
usr.sbin/ldomctl/config.c
456
node2 = prop->d.arc.node;
usr.sbin/ldomctl/config.c
500
pri_add_cpu(md, prop->d.arc.node);
usr.sbin/ldomctl/config.c
507
pri_add_mblock(md, prop->d.arc.node);
usr.sbin/ldomctl/config.c
523
if (prop->d.arc.node == node)
usr.sbin/ldomctl/config.c
619
node2 = prop->d.arc.node;
usr.sbin/ldomctl/config.c
677
node2 = prop->d.arc.node;
usr.sbin/ldomctl/config.c
719
node2 = prop->d.arc.node;
usr.sbin/ldomctl/config.c
832
node2 = prop->d.arc.node;
usr.sbin/ldomctl/config.c
927
hvmd_init_frag(md, prop->d.arc.node);
usr.sbin/ldomctl/config.c
935
hvmd_init_console(md, prop->d.arc.node);
usr.sbin/ldomctl/config.c
942
hvmd_init_cpu(md, prop->d.arc.node);
usr.sbin/ldomctl/config.c
952
hvmd_init_device(md, prop->d.arc.node);
usr.sbin/ldomctl/config.c
959
hvmd_init_mblock(md, prop->d.arc.node);
usr.sbin/ldomctl/config.c
966
hvmd_init_endpoint(md, prop->d.arc.node);
usr.sbin/ldomctl/config.c
973
hvmd_init_guest(md, prop->d.arc.node);
usr.sbin/ldomctl/ldomctl.c
159
if (strcmp(prop->d.arc.node->name->str, "cpu") == 0)
usr.sbin/ldomctl/ldomctl.c
789
add_guest(prop->d.arc.node);
usr.sbin/ldomctl/mdesc.c
133
strcmp(prop->d.arc.node->name->str, name) == 0)
usr.sbin/ldomctl/mdesc.c
134
return prop->d.arc.node;
usr.sbin/ldomctl/mdesc.c
193
prop->d.val = val;
usr.sbin/ldomctl/mdesc.c
206
prop->d.data = md_add_data(md, str, strlen(str) + 1);
usr.sbin/ldomctl/mdesc.c
219
prop->d.data = md_add_data(md, data, len);
usr.sbin/ldomctl/mdesc.c
232
prop->d.arc.node = target_node;
usr.sbin/ldomctl/mdesc.c
242
md_free_data(md, prop->d.data);
usr.sbin/ldomctl/mdesc.c
257
*val = prop->d.val;
usr.sbin/ldomctl/mdesc.c
271
prop->d.val = val;
usr.sbin/ldomctl/mdesc.c
285
*str = prop->d.data->data;
usr.sbin/ldomctl/mdesc.c
299
*data = prop->d.data->data;
usr.sbin/ldomctl/mdesc.c
300
*len = prop->d.data->len;
usr.sbin/ldomctl/mdesc.c
314
md_free_data(md, prop->d.data);
usr.sbin/ldomctl/mdesc.c
315
prop->d.data = md_add_data(md, data, len);
usr.sbin/ldomctl/mdesc.c
328
prop->d.arc.node == node)
usr.sbin/ldomctl/mdesc.c
383
prop->d.arc.node =
usr.sbin/ldomctl/mdesc.c
384
md_find_index(md, prop->d.arc.index);
usr.sbin/ldomctl/mdesc.c
398
md_walk_graph(md, prop->d.arc.node);
usr.sbin/ldomctl/mdesc.c
467
md_add_prop_val(md, node, str, betoh64(mde->d.val));
usr.sbin/ldomctl/mdesc.c
473
data = data_blk + betoh32(mde->d.y.data_offset);
usr.sbin/ldomctl/mdesc.c
480
data = data_blk + betoh32(mde->d.y.data_offset);
usr.sbin/ldomctl/mdesc.c
482
betoh32(mde->d.y.data_len));
usr.sbin/ldomctl/mdesc.c
490
prop->d.arc.index = betoh64(mde->d.val);
usr.sbin/ldomctl/mdesc.c
491
prop->d.arc.node = NULL;
usr.sbin/ldomctl/mdesc.c
565
mde->d.val = htobe64(TAILQ_NEXT(node, link)->index);
usr.sbin/ldomctl/mdesc.c
567
mde->d.val = htobe64(index);
usr.sbin/ldomctl/mdesc.c
576
mde->d.val = htobe64(prop->d.val);
usr.sbin/ldomctl/mdesc.c
580
mde->d.y.data_len =
usr.sbin/ldomctl/mdesc.c
581
htobe32(prop->d.data->len);
usr.sbin/ldomctl/mdesc.c
582
mde->d.y.data_offset =
usr.sbin/ldomctl/mdesc.c
583
htobe32(prop->d.data->offset);
usr.sbin/ldomctl/mdesc.c
586
mde->d.val =
usr.sbin/ldomctl/mdesc.c
587
htobe64(prop->d.arc.node->index);
usr.sbin/ldomctl/mdesc.h
54
} d;
usr.sbin/ldomctl/mdesc.h
81
} d;
usr.sbin/ldomctl/mdstore.c
497
add_guest(prop->d.arc.node);
usr.sbin/ldomctl/mdstore.c
561
add_frag_mblock(prop->d.arc.node);
usr.sbin/ldomd/ldomd.c
189
add_guest(prop->d.arc.node);
usr.sbin/ldomd/ldomd.c
320
add_frag_mblock(prop->d.arc.node);
usr.sbin/lldp/lldp.c
1123
hexdump(const void *d, size_t datalen)
usr.sbin/lldp/lldp.c
1125
const uint8_t *data = d;
usr.sbin/lldp/lldp.c
508
time_t d = sec / ival->s;
usr.sbin/lldp/lldp.c
509
fprintf(scratch, "%lld%c", d, ival->p);
usr.sbin/lldp/lldp.c
510
sec -= d * ival->s;
usr.sbin/lpd/lp.c
163
#define CGETNUM(x, d) if (cgetnum(buf, #x, &(lp->lp_ ## x)) == -1) \
usr.sbin/lpd/lp.c
164
(lp->lp_ ## x) = d;
usr.sbin/lpd/lp.c
280
struct dirent *d;
usr.sbin/lpd/lp.c
317
while ((d = readdir(dp))) {
usr.sbin/lpd/lp.c
318
if (d->d_name[0] != 'c' || d->d_name[1] != 'f')
usr.sbin/lpd/lp.c
321
if (strlen(d->d_name) < 7)
usr.sbin/lpd/lp.c
324
if (!isdigit((unsigned char)d->d_name[3]) ||
usr.sbin/lpd/lp.c
325
!isdigit((unsigned char)d->d_name[4]) ||
usr.sbin/lpd/lp.c
326
!isdigit((unsigned char)d->d_name[5]))
usr.sbin/lpd/lp.c
329
if (strlcpy(end, d->d_name, sz) >= sz) {
usr.sbin/lpd/lp.c
351
if ((qe[nqe].name = strdup(d->d_name)) == NULL) {
usr.sbin/lpd/lp_banner.c
1126
int d, scnhgt;
usr.sbin/lpd/lp_banner.c
1132
d = dropit(c = TRC(cc = *sp++));
usr.sbin/lpd/lp_banner.c
1133
if ((!d && scnhgt > HEIGHT) || (scnhgt <= DROP && d))
usr.sbin/lpd/lp_banner.c
1137
strp = scnline(scnkey[(int)c][scnhgt-1-d],
usr.sbin/lpr/common_source/common.c
229
struct dirent *d;
usr.sbin/lpr/common_source/common.c
252
while ((d = readdir(dirp)) != NULL) {
usr.sbin/lpr/common_source/common.c
253
if (d->d_name[0] != 'c' || d->d_name[1] != 'f')
usr.sbin/lpr/common_source/common.c
256
if (stat(d->d_name, &stbuf) < 0) {
usr.sbin/lpr/common_source/common.c
265
strlcpy(q->q_name, d->d_name, sizeof(q->q_name));
usr.sbin/lpr/common_source/common.c
459
struct dirent *d;
usr.sbin/lpr/common_source/common.c
471
while ((d = readdir(dirp)) != NULL) {
usr.sbin/lpr/common_source/common.c
472
if (d->d_name[0] == 'c' && d->d_name[1] == 'f') {
usr.sbin/lpr/common_source/rmjob.c
400
iscf(const struct dirent *d)
usr.sbin/lpr/common_source/rmjob.c
402
return(d->d_name[0] == 'c' && d->d_name[1] == 'f');
usr.sbin/lpr/lpc/cmds.c
255
doselect(const struct dirent *d)
usr.sbin/lpr/lpc/cmds.c
257
int c = d->d_name[0];
usr.sbin/lpr/lpc/cmds.c
259
if ((c == 't' || c == 'c' || c == 'd') && d->d_name[1] == 'f')
usr.sbin/lpr/lpd/printjob.c
1061
int d, scnhgt;
usr.sbin/lpr/lpd/printjob.c
1068
d = dropit(c = TRC(cc = *sp++));
usr.sbin/lpr/lpd/printjob.c
1069
if ((!d && scnhgt > HEIGHT) || (scnhgt <= DROP && d))
usr.sbin/lpr/lpd/printjob.c
1073
strp = scnline(scnkey[(int)c][scnhgt-1-d],
usr.sbin/makefs/ffs.c
925
daddr_t d;
usr.sbin/makefs/ffs.c
993
d = fsbtodb(fs, ino_to_fsba(fs, ino));
usr.sbin/makefs/ffs.c
994
ffs_rdfs(d, fs->fs_bsize, buf, fsopts);
usr.sbin/makefs/ffs.c
999
ffs_wtfs(d, fs->fs_bsize, buf, fsopts);
usr.sbin/makefs/ffs/mkfs.c
565
int i, j, d, dlower, dupper, blkno;
usr.sbin/makefs/ffs/mkfs.c
644
for (d = 0, blkno = 0; d < dlower;) {
usr.sbin/makefs/ffs/mkfs.c
649
d += sblock.fs_frag;
usr.sbin/makefs/ffs/mkfs.c
655
for (d = dupper + sblock.fs_frag - i; dupper < d; dupper++) {
usr.sbin/makefs/ffs/mkfs.c
660
for (d = dupper, blkno = dupper >> sblock.fs_fragshift;
usr.sbin/makefs/ffs/mkfs.c
661
d + sblock.fs_frag <= acg.cg_ndblk; ) {
usr.sbin/makefs/ffs/mkfs.c
666
d += sblock.fs_frag;
usr.sbin/makefs/ffs/mkfs.c
669
if (d < acg.cg_ndblk) {
usr.sbin/makefs/ffs/mkfs.c
670
acg.cg_frsum[acg.cg_ndblk - d]++;
usr.sbin/makefs/ffs/mkfs.c
671
for (; d < acg.cg_ndblk; d++) {
usr.sbin/makefs/ffs/mkfs.c
672
setbit(cg_blksfree(&acg), d);
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
339
int d = a - b;
usr.sbin/mtrace/mtrace.c
341
return ((d * 125) >> 13);
usr.sbin/mtrace/mtrace.c
87
char d[MAX_DVMRP_DATA_LEN]; /* Neighbor data */
usr.sbin/mtrace/mtrace.c
93
#define ndata u.d
usr.sbin/npppd/npppd/ppp.h
693
#define BCOPY(s, d, l) memcpy(d, s, l)
usr.sbin/npppd/pptp/pptp_call.c
99
#define RUPDIV(n,d) (((n) + ((d) - ((n) % (d)))) / (d))
usr.sbin/nsd/difffile.c
1664
static void udb_task_walk_chunk(void* base, void* d, uint64_t s, udb_walk_relptr_cb* cb, void *arg)
usr.sbin/nsd/difffile.c
1666
struct task_list_d* p = (struct task_list_d*)d;
usr.sbin/nsd/difffile.c
1672
void udb_walkfunc(void* base, void* warg, uint8_t t, void* d, uint64_t s,
usr.sbin/nsd/difffile.c
1678
udb_task_walk_chunk(base, d, s, cb, arg);
usr.sbin/nsd/difffile.c
250
domain_type* d = top;
usr.sbin/nsd/difffile.c
251
assert(d != NULL);
usr.sbin/nsd/difffile.c
253
d = domain_next(d);
usr.sbin/nsd/difffile.c
254
while(d != NULL && domain_is_subdomain(d, top)) {
usr.sbin/nsd/difffile.c
255
if(d->is_existing)
usr.sbin/nsd/difffile.c
257
d = domain_next(d);
usr.sbin/nsd/difffile.c
627
domain_type *d;
usr.sbin/nsd/difffile.c
628
for(d=domain_next(domain); d && domain_is_subdomain(d, domain);
usr.sbin/nsd/difffile.c
629
d=domain_next(d)) {
usr.sbin/nsd/difffile.c
630
nsec3_rrsets_changed_add_prehash(db, d, zone);
usr.sbin/nsd/difffile.c
685
domain_type *d;
usr.sbin/nsd/difffile.c
686
for(d=domain_next(domain); d && domain_is_subdomain(d, domain);
usr.sbin/nsd/difffile.c
687
d=domain_next(d)) {
usr.sbin/nsd/difffile.c
688
nsec3_rrsets_changed_remove_prehash(d, zone);
usr.sbin/nsd/dname.c
187
uint8_t *d = dname;
usr.sbin/nsd/dname.c
196
for (h = d, p = h + 1; *s; ++s, ++p) {
usr.sbin/nsd/dname.c
594
is_dname_subdomain_of_case(const uint8_t* d, unsigned int len,
usr.sbin/nsd/dname.c
601
if(memcmp(d, d2, len) == 0)
usr.sbin/nsd/dname.c
607
if(memcmp(d+len-len2, d2, len2) != 0)
usr.sbin/nsd/dname.c
614
i += d[i];
usr.sbin/nsd/dname.h
403
int is_dname_subdomain_of_case(const uint8_t* d, unsigned int len,
usr.sbin/nsd/dnstap/dnstap.c
115
dm->d.base.descriptor = &dnstap__dnstap__descriptor;
usr.sbin/nsd/dnstap/dnstap.c
117
dm->d.type = DNSTAP__DNSTAP__TYPE__MESSAGE;
usr.sbin/nsd/dnstap/dnstap.c
118
dm->d.message = &dm->m;
usr.sbin/nsd/dnstap/dnstap.c
121
dm->d.identity.data = (uint8_t *) env->identity;
usr.sbin/nsd/dnstap/dnstap.c
122
dm->d.identity.len = (size_t) env->len_identity;
usr.sbin/nsd/dnstap/dnstap.c
123
dm->d.has_identity = 1;
usr.sbin/nsd/dnstap/dnstap.c
126
dm->d.version.data = (uint8_t *) env->version;
usr.sbin/nsd/dnstap/dnstap.c
127
dm->d.version.len = (size_t) env->len_version;
usr.sbin/nsd/dnstap/dnstap.c
128
dm->d.has_version = 1;
usr.sbin/nsd/dnstap/dnstap.c
71
Dnstap__Dnstap d;
usr.sbin/nsd/dnstap/dnstap.c
76
dt_pack(const Dnstap__Dnstap *d, void **buf, size_t *sz)
usr.sbin/nsd/dnstap/dnstap.c
867
if (dt_pack(&dm.d, &dm.buf, &dm.len_buf))
usr.sbin/nsd/dnstap/dnstap.c
89
*sz = dnstap__dnstap__pack_to_buffer(d, (ProtobufCBuffer *) &sbuf);
usr.sbin/nsd/dnstap/dnstap.c
912
if (dt_pack(&dm.d, &dm.buf, &dm.len_buf))
usr.sbin/nsd/lookup3.c
862
uint32_t c[HASHSTATE], d[HASHSTATE], i=0, j=0, k, l, m=0, z;
usr.sbin/nsd/lookup3.c
892
d[0] = hashlittle(b, hlen, m);
usr.sbin/nsd/lookup3.c
896
e[l] &= (c[l]^d[l]);
usr.sbin/nsd/lookup3.c
897
f[l] &= ~(c[l]^d[l]);
usr.sbin/nsd/lookup3.c
900
x[l] &= d[l];
usr.sbin/nsd/lookup3.c
901
y[l] &= ~d[l];
usr.sbin/nsd/namedb.c
127
domain_type* d = table->numlist_last;
usr.sbin/nsd/namedb.c
131
return d;
usr.sbin/nsd/namedb.c
173
domain_type* d = table->prehash_list, *n;
usr.sbin/nsd/namedb.c
174
while(d) {
usr.sbin/nsd/namedb.c
175
n = d->nsec3->prehash_next;
usr.sbin/nsd/namedb.c
176
d->nsec3->prehash_prev = NULL;
usr.sbin/nsd/namedb.c
177
d->nsec3->prehash_next = NULL;
usr.sbin/nsd/namedb.c
178
d = n;
usr.sbin/nsd/namedb.c
638
domain_type* d = domain->parent;
usr.sbin/nsd/namedb.c
639
while(d && d != zone->apex) {
usr.sbin/nsd/namedb.c
640
if(domain_find_rrset(d, zone, TYPE_DNAME))
usr.sbin/nsd/namedb.c
641
return d;
usr.sbin/nsd/namedb.c
642
d = d->parent;
usr.sbin/nsd/nsec3.c
1004
for(d = db->domains->prehash_list; d; d = d->nsec3->prehash_next) {
usr.sbin/nsd/nsec3.c
1005
process_prehash_domain(d, zone);
usr.sbin/nsd/nsec3.c
519
nsec3_domain_part_of_zone(domain_type* d, zone_type* z)
usr.sbin/nsd/nsec3.c
521
while(d) {
usr.sbin/nsd/nsec3.c
522
if(d->is_apex)
usr.sbin/nsd/nsec3.c
523
return (z->apex == d); /* zonecut, if right zone*/
usr.sbin/nsd/nsec3.c
524
d = d->parent;
usr.sbin/nsd/nsec3.c
531
nsec3_condition_hash(domain_type* d, zone_type* z)
usr.sbin/nsd/nsec3.c
533
return d->is_existing && !domain_has_only_NSEC3(d, z) &&
usr.sbin/nsd/nsec3.c
534
nsec3_domain_part_of_zone(d, z) && !domain_is_glue(d, z);
usr.sbin/nsd/nsec3.c
539
nsec3_condition_dshash(domain_type* d, zone_type* z)
usr.sbin/nsd/nsec3.c
541
return d->is_existing && !domain_has_only_NSEC3(d, z) &&
usr.sbin/nsd/nsec3.c
542
(domain_find_rrset(d, z, TYPE_DS) ||
usr.sbin/nsd/nsec3.c
543
domain_find_rrset(d, z, TYPE_NS)) && d != z->apex
usr.sbin/nsd/nsec3.c
544
&& nsec3_domain_part_of_zone(d->parent, z);
usr.sbin/nsd/nsec3.c
548
nsec3_tree_zone(namedb_type* db, domain_type* d)
usr.sbin/nsd/nsec3.c
554
while(d) {
usr.sbin/nsd/nsec3.c
555
if(d->is_apex) {
usr.sbin/nsd/nsec3.c
559
for (rrset = d->rrsets; rrset; rrset = rrset->next)
usr.sbin/nsd/nsec3.c
564
return namedb_find_zone(db, domain_dname(d));
usr.sbin/nsd/nsec3.c
566
d = d->parent;
usr.sbin/nsd/nsec3.c
572
nsec3_tree_dszone(namedb_type* db, domain_type* d)
usr.sbin/nsd/nsec3.c
575
if(d->is_apex)
usr.sbin/nsd/nsec3.c
576
d = d->parent;
usr.sbin/nsd/nsec3.c
577
while (d) {
usr.sbin/nsd/nsec3.c
578
if (d->is_apex) {
usr.sbin/nsd/nsec3.c
580
for (rrset_type *rrset = d->rrsets; rrset; rrset = rrset->next)
usr.sbin/nsd/nsec3.c
586
zone = namedb_find_zone(db, domain_dname(d));
usr.sbin/nsd/nsec3.c
590
d = d->parent;
usr.sbin/nsd/nsec3.c
601
domain_type d;
usr.sbin/nsd/nsec3.c
607
d.dname = (dname_type*)n;
usr.sbin/nsd/nsec3.c
609
d.node.key = n;
usr.sbin/nsd/nsec3.c
620
exact = rbtree_find_less_equal(zone->nsec3tree, &d, &r);
usr.sbin/nsd/nsec3.c
812
init_lookup_key_hash_tree(domain_type* d, uint8_t* hash)
usr.sbin/nsd/nsec3.c
813
{ memcpy(d->nsec3->hash_wc->hash.hash, hash, NSEC3_HASH_LEN); }
usr.sbin/nsd/nsec3.c
816
init_lookup_key_wc_tree(domain_type* d, uint8_t* hash)
usr.sbin/nsd/nsec3.c
817
{ memcpy(d->nsec3->hash_wc->wc.hash, hash, NSEC3_HASH_LEN); }
usr.sbin/nsd/nsec3.c
820
init_lookup_key_ds_tree(domain_type* d, uint8_t* hash)
usr.sbin/nsd/nsec3.c
821
{ memcpy(d->nsec3->ds_parent_hash->hash, hash, NSEC3_HASH_LEN); }
usr.sbin/nsd/nsec3.c
828
domain_type d;
usr.sbin/nsd/nsec3.c
842
d.nsec3 = &n;
usr.sbin/nsd/nsec3.c
843
init(&d, hash);
usr.sbin/nsd/nsec3.c
844
if(rbtree_find_less_equal(tree, &d, p)) {
usr.sbin/nsd/nsec3.c
862
domain_type d;
usr.sbin/nsd/nsec3.c
876
d.nsec3 = &n;
usr.sbin/nsd/nsec3.c
877
init(&d, hash);
usr.sbin/nsd/nsec3.c
878
if(rbtree_find_less_equal(tree, &d, p)) {
usr.sbin/nsd/nsec3.c
991
domain_type* d;
usr.sbin/nsd/nsec3.h
88
int nsec3_domain_part_of_zone(struct domain* d, struct zone* z);
usr.sbin/nsd/nsec3.h
90
int nsec3_condition_hash(struct domain* d, struct zone* z);
usr.sbin/nsd/nsec3.h
92
int nsec3_condition_dshash(struct domain* d, struct zone* z);
usr.sbin/nsd/options.c
2297
str = (const char *)ASN1_STRING_get0_data(current_name->d.dNSName);
usr.sbin/nsd/options.c
2299
str = (const char *)ASN1_STRING_data(current_name->d.dNSName);
usr.sbin/nsd/options.c
2303
len = ASN1_STRING_length(current_name->d.dNSName);
usr.sbin/nsd/options.c
2533
const dname_type* d = (const dname_type*)zone->node.key;
usr.sbin/nsd/options.c
2534
if(i >= d->label_count) {
usr.sbin/nsd/options.c
2537
return wirelabel2str(dname_label(d, i));
usr.sbin/nsd/query.c
295
static domain_type d[EXTRA_DOMAIN_NUMBERS];
usr.sbin/nsd/query.c
299
memset(&d[q->number_temporary_domains-1], 0, sizeof(domain_type));
usr.sbin/nsd/query.c
300
d[q->number_temporary_domains-1].number = q->compressed_dname_offsets_size +
usr.sbin/nsd/query.c
302
return &d[q->number_temporary_domains-1];
usr.sbin/nsd/radtree.c
1172
radname_insert(struct radtree* rt, const uint8_t* d, size_t max, void* elem)
usr.sbin/nsd/radtree.c
1179
radname_d2r(radname, &len, d, max);
usr.sbin/nsd/radtree.c
1185
radname_delete(struct radtree* rt, const uint8_t* d, size_t max)
usr.sbin/nsd/radtree.c
1188
struct radnode* n = radname_search(rt, d, max);
usr.sbin/nsd/radtree.c
1193
struct radnode* radname_search(struct radtree* rt, const uint8_t* d,
usr.sbin/nsd/radtree.c
1207
if(d[0] == 0) {
usr.sbin/nsd/radtree.c
1217
if((d[dpos] & 0xc0))
usr.sbin/nsd/radtree.c
1219
labstart[lab++] = &d[dpos];
usr.sbin/nsd/radtree.c
1220
if(dpos + d[dpos] + 1 >= max)
usr.sbin/nsd/radtree.c
1223
dpos += d[dpos];
usr.sbin/nsd/radtree.c
1225
} while(d[dpos] != 0);
usr.sbin/nsd/radtree.c
1278
int radname_find_less_equal(struct radtree* rt, const uint8_t* d, size_t max,
usr.sbin/nsd/radtree.c
1300
if(d[0] == 0) {
usr.sbin/nsd/radtree.c
1315
if((d[dpos] & 0xc0)) {
usr.sbin/nsd/radtree.c
1319
labstart[lab++] = &d[dpos];
usr.sbin/nsd/radtree.c
1320
if(dpos + d[dpos] + 1 >= max) {
usr.sbin/nsd/radtree.c
1325
dpos += d[dpos];
usr.sbin/nsd/radtree.c
1327
} while(d[dpos] != 0);
usr.sbin/nsd/radtree.h
198
struct radnode* radname_search(struct radtree* rt, const uint8_t* d,
usr.sbin/nsd/radtree.h
213
int radname_find_less_equal(struct radtree* rt, const uint8_t* d, size_t max,
usr.sbin/nsd/radtree.h
227
struct radnode* radname_insert(struct radtree* rt, const uint8_t* d,
usr.sbin/nsd/radtree.h
236
void radname_delete(struct radtree* rt, const uint8_t* d, size_t max);
usr.sbin/nsd/rbtree.h
64
#define RBTREE_WALK(rbtree, k, d) \
usr.sbin/nsd/rbtree.h
67
((d) = (void *) (rbtree)->_node); (rbtree)->_node = rbtree_next((rbtree)->_node))
usr.sbin/nsd/remote.c
251
timeval_subtract(struct timeval* d, const struct timeval* end,
usr.sbin/nsd/remote.c
256
d->tv_sec = end->tv_sec - start->tv_sec;
usr.sbin/nsd/remote.c
259
d->tv_sec--;
usr.sbin/nsd/remote.c
261
d->tv_usec = end_usec - start->tv_usec;
usr.sbin/nsd/remote.c
3028
print_stat_block(RES* ssl, char* n, char* d, struct nsdst* st)
usr.sbin/nsd/remote.c
3040
if(!ssl_printf(ssl, "%s%snum.type.%s=%lu\n", n, d,
usr.sbin/nsd/remote.c
3049
if(!ssl_printf(ssl, "%s%snum.opcode.%s=%lu\n", n, d,
usr.sbin/nsd/remote.c
3058
if(!ssl_printf(ssl, "%s%snum.class.%s=%lu\n", n, d,
usr.sbin/nsd/remote.c
3068
if(!ssl_printf(ssl, "%s%snum.rcode.%s=%lu\n", n, d, rcstr[i],
usr.sbin/nsd/remote.c
3074
if(!ssl_printf(ssl, "%s%snum.edns=%lu\n", n, d, (unsigned long)st->edns))
usr.sbin/nsd/remote.c
3078
if(!ssl_printf(ssl, "%s%snum.ednserr=%lu\n", n, d,
usr.sbin/nsd/remote.c
3083
if(!ssl_printf(ssl, "%s%snum.udp=%lu\n", n, d, (unsigned long)st->qudp))
usr.sbin/nsd/remote.c
3086
if(!ssl_printf(ssl, "%s%snum.udp6=%lu\n", n, d, (unsigned long)st->qudp6))
usr.sbin/nsd/remote.c
3089
if(!ssl_printf(ssl, "%s%snum.tcp=%lu\n", n, d, (unsigned long)st->ctcp))
usr.sbin/nsd/remote.c
3092
if(!ssl_printf(ssl, "%s%snum.tcp6=%lu\n", n, d, (unsigned long)st->ctcp6))
usr.sbin/nsd/remote.c
3095
if(!ssl_printf(ssl, "%s%snum.tls=%lu\n", n, d, (unsigned long)st->ctls))
usr.sbin/nsd/remote.c
3098
if(!ssl_printf(ssl, "%s%snum.tls6=%lu\n", n, d, (unsigned long)st->ctls6))
usr.sbin/nsd/remote.c
3102
if(!ssl_printf(ssl, "%s%snum.answer_wo_aa=%lu\n", n, d,
usr.sbin/nsd/remote.c
3107
if(!ssl_printf(ssl, "%s%snum.rxerr=%lu\n", n, d, (unsigned long)st->rxerr))
usr.sbin/nsd/remote.c
3111
if(!ssl_printf(ssl, "%s%snum.txerr=%lu\n", n, d, (unsigned long)st->txerr))
usr.sbin/nsd/remote.c
3115
if(!ssl_printf(ssl, "%s%snum.raxfr=%lu\n", n, d, (unsigned long)st->raxfr))
usr.sbin/nsd/remote.c
3119
if(!ssl_printf(ssl, "%s%snum.rixfr=%lu\n", n, d, (unsigned long)st->rixfr))
usr.sbin/nsd/remote.c
3123
if(!ssl_printf(ssl, "%s%snum.truncated=%lu\n", n, d,
usr.sbin/nsd/remote.c
3128
if(!ssl_printf(ssl, "%s%snum.dropped=%lu\n", n, d,
usr.sbin/nsd/remote.h
193
void timeval_subtract(struct timeval *d, const struct timeval *end,
usr.sbin/nsd/rrl.c
242
static uint16_t rrl_classify(query_type* query, const uint8_t** d,
usr.sbin/nsd/rrl.c
247
*d = dname_name(domain_dname(query->zone->apex));
usr.sbin/nsd/rrl.c
254
*d = dname_name(domain_dname(query->zone->apex));
usr.sbin/nsd/rrl.c
260
*d = dname_name(domain_dname(query->delegation_domain));
usr.sbin/nsd/rrl.c
266
*d = dname_name(query->qname);
usr.sbin/nsd/rrl.c
273
*d = dname_name(query->qname);
usr.sbin/nsd/rrl.c
279
*d = dname_name(domain_dname(query->wildcard_domain));
usr.sbin/nsd/rrl.c
285
*d = dname_name(domain_dname(query->zone->apex));
usr.sbin/nsd/rrl.c
292
*d = dname_name(query->qname);
usr.sbin/nsd/rrl.c
299
*d = dname_name(query->qname);
usr.sbin/nsd/rrl.c
357
const uint8_t* d = NULL;
usr.sbin/nsd/rrl.c
364
c = rrl_classify(query, &d, &d_len) | c2;
usr.sbin/nsd/rrl.c
369
str, d?wiredname2str(d):"", rrltype2str(c),
usr.sbin/nsd/simdzone/src/fallback/text.h
15
uint8_t d[3];
usr.sbin/nsd/simdzone/src/fallback/text.h
17
if ((d[0] = (uint8_t)text[1] - '0') > 9) {
usr.sbin/nsd/simdzone/src/fallback/text.h
21
d[1] = (uint8_t)text[2] - '0';
usr.sbin/nsd/simdzone/src/fallback/text.h
22
d[2] = (uint8_t)text[3] - '0';
usr.sbin/nsd/simdzone/src/fallback/text.h
23
uint32_t o = d[0] * 100 + d[1] * 10 + d[2];
usr.sbin/nsd/simdzone/src/fallback/text.h
25
return (o > 255 || d[1] > 9 || d[2] > 9) ? 0 : 4u;
usr.sbin/nsd/simdzone/src/generic/text.h
15
uint8_t d[3];
usr.sbin/nsd/simdzone/src/generic/text.h
18
if ((d[0] = (uint8_t)text[1] - '0') > 9) {
usr.sbin/nsd/simdzone/src/generic/text.h
23
d[1] = (uint8_t)text[2] - '0';
usr.sbin/nsd/simdzone/src/generic/text.h
24
d[2] = (uint8_t)text[3] - '0';
usr.sbin/nsd/simdzone/src/generic/text.h
25
o = d[0] * 100 + d[1] * 10 + d[2];
usr.sbin/nsd/simdzone/src/generic/text.h
27
return (o > 255 || d[1] > 9 || d[2] > 9) ? 0 : 4u;
usr.sbin/nsd/simdzone/src/generic/time.h
42
uint64_t d[14]; // YYYYmmddHHMMSS
usr.sbin/nsd/simdzone/src/generic/time.h
45
d[i] = (uint8_t)p[i] - '0';
usr.sbin/nsd/simdzone/src/generic/time.h
46
if (d[i] > 9)
usr.sbin/nsd/simdzone/src/generic/time.h
51
const uint64_t year = (d[0] * 1000) + (d[1] * 100) + (d[2] * 10) + d[3];
usr.sbin/nsd/simdzone/src/generic/time.h
52
const uint64_t mon = (d[4] * 10) + d[5];
usr.sbin/nsd/simdzone/src/generic/time.h
53
const uint64_t mday = (d[6] * 10) + d[7];
usr.sbin/nsd/simdzone/src/generic/time.h
54
const uint64_t hour = (d[8] * 10) + d[9];
usr.sbin/nsd/simdzone/src/generic/time.h
55
const uint64_t min = (d[10] * 10) + d[11];
usr.sbin/nsd/simdzone/src/generic/time.h
56
const uint64_t sec = (d[12] * 10) + d[13];
usr.sbin/nsd/simdzone/src/isadetection.h
150
uint32_t a = *eax, b, c = *ecx, d;
usr.sbin/nsd/simdzone/src/isadetection.h
151
asm volatile("cpuid\n\t" : "+a"(a), "=b"(b), "+c"(c), "=d"(d));
usr.sbin/nsd/simdzone/src/isadetection.h
155
*edx = d;
usr.sbin/nsd/simdzone/src/isadetection.h
164
uint32_t a, c = ecx, d;
usr.sbin/nsd/simdzone/src/isadetection.h
165
asm volatile("xgetbv\n\t" : "=d"(d), "=a"(a) : "c"(c));
usr.sbin/nsd/simdzone/src/isadetection.h
166
uint64_t xcr0 = ((uint64_t)d << 32) | (uint64_t)a;
usr.sbin/nsd/tsig-openssl.c
46
struct tsig_openssl_data* d = (struct tsig_openssl_data*)data;
usr.sbin/nsd/tsig-openssl.c
47
EVP_MAC_free(d->mac);
usr.sbin/nsd/tsig-openssl.c
48
d->mac = NULL;
usr.sbin/nsd/udb.c
1389
udb_void d[2];
usr.sbin/nsd/udb.c
1390
d[0] = olddata;
usr.sbin/nsd/udb.c
1391
d[1] = data;
usr.sbin/nsd/udb.c
1393
dsz, &chunk_fix_ptr_each, d);
usr.sbin/nsd/udb.c
1834
udb_void udb_alloc_init(udb_alloc* alloc, void* d, size_t sz)
usr.sbin/nsd/udb.c
1839
memcpy(UDB_REL(alloc->udb->base, r), d, sz);
usr.sbin/nsd/udb.c
2088
udb_void d = ptr->data;
usr.sbin/nsd/udb.c
2090
udb_alloc_free(udb->alloc, d, sz);
usr.sbin/nsd/udb.h
512
udb_void udb_alloc_init(udb_alloc* alloc, void* d, size_t sz);
usr.sbin/nsd/udb.h
727
static inline void udb_ptr_new(udb_ptr* ptr, udb_base* udb, udb_rel_ptr* d) {
usr.sbin/nsd/udb.h
729
udb_ptr_set(ptr, udb, d->data);
usr.sbin/nsd/udb.h
794
udb_void d = ptr->data;
usr.sbin/nsd/udb.h
796
if(d) { assert(udb_valid_rptr(udb, UDB_SYSTOREL(udb->base, ptr), d)); }
usr.sbin/nsd/udb.h
799
udb_alloc_free(udb->alloc, d, sz);
usr.sbin/nsd/util.c
668
uint8_t d;
usr.sbin/nsd/util.c
679
d=ch-'0';
usr.sbin/nsd/util.c
681
d=ch-'A'+10;
usr.sbin/nsd/util.c
683
d=ch-'a'+10;
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/xfrd-disk.c
389
uint8_t* d= dname+1;
usr.sbin/nsd/xfrd-disk.c
390
uint8_t len = *d++;
usr.sbin/nsd/xfrd-disk.c
400
assert(d - (dname+1) <= dname[0]);
usr.sbin/nsd/xfrd-disk.c
403
uint8_t ch = *d++;
usr.sbin/nsd/xfrd-disk.c
413
len = *d++;
usr.sbin/ntpd/ntpd.c
395
double d;
usr.sbin/ntpd/ntpd.c
409
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(d))
usr.sbin/ntpd/ntpd.c
411
memcpy(&d, imsg.data, sizeof(d));
usr.sbin/ntpd/ntpd.c
412
n = ntpd_adjtime(d);
usr.sbin/ntpd/ntpd.c
419
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(d))
usr.sbin/ntpd/ntpd.c
421
memcpy(&d, imsg.data, sizeof(d));
usr.sbin/ntpd/ntpd.c
422
ntpd_adjfreq(d, 1);
usr.sbin/ntpd/ntpd.c
425
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(d))
usr.sbin/ntpd/ntpd.c
431
memcpy(&d, imsg.data, sizeof(d));
usr.sbin/ntpd/ntpd.c
432
ntpd_settime(d);
usr.sbin/ntpd/ntpd.c
467
ntpd_adjtime(double d)
usr.sbin/ntpd/ntpd.c
473
d += getoffset();
usr.sbin/ntpd/ntpd.c
474
if (d >= (double)LOG_NEGLIGIBLE_ADJTIME / 1000 ||
usr.sbin/ntpd/ntpd.c
475
d <= -1 * (double)LOG_NEGLIGIBLE_ADJTIME / 1000)
usr.sbin/ntpd/ntpd.c
476
log_info("adjusting local clock by %fs", d);
usr.sbin/ntpd/ntpd.c
478
log_debug("adjusting local clock by %fs", d);
usr.sbin/ntpd/ntpd.c
479
if (d_to_tv(d, &tv) == -1)
usr.sbin/ntpd/ntpd.c
525
ntpd_settime(double d)
usr.sbin/ntpd/ntpd.c
531
if (d == 0)
usr.sbin/ntpd/ntpd.c
538
if (d_to_tv(d, &tv) == -1) {
usr.sbin/ntpd/ntpd.c
553
log_info("set local clock to %s (offset %fs)", buf, d);
usr.sbin/ntpd/ntpd.c
563
double d;
usr.sbin/ntpd/ntpd.c
581
if (fscanf(freqfp, "%lf", &d) == 1) {
usr.sbin/ntpd/ntpd.c
582
d /= 1e6; /* scale from ppm */
usr.sbin/ntpd/ntpd.c
583
ntpd_adjfreq(d, 0);
usr.sbin/ntpd/ntpd.c
590
writefreq(double d)
usr.sbin/ntpd/ntpd.c
598
r = fprintf(freqfp, "%.3f\n", d * 1e6); /* scale to ppm */
usr.sbin/ntpd/sensors.c
52
char d[MAXDEVNAMLEN];
usr.sbin/ntpd/sensors.c
57
if ((err = sensor_probe(i, d, &s))) {
usr.sbin/ntpd/sensors.c
62
sensor_add(i, d);
usr.sbin/ntpd/util.c
113
d_to_lfp(double d)
usr.sbin/ntpd/util.c
117
while (d > SECS_IN_ERA)
usr.sbin/ntpd/util.c
118
d -= SECS_IN_ERA;
usr.sbin/ntpd/util.c
119
lfp.int_partl = htonl((u_int32_t)d);
usr.sbin/ntpd/util.c
120
lfp.fractionl = htonl((u_int32_t)((d - (u_int32_t)d) * L_DENOMINATOR));
usr.sbin/ntpd/util.c
139
d_to_sfp(double d)
usr.sbin/ntpd/util.c
143
sfp.int_parts = htons((u_int16_t)d);
usr.sbin/ntpd/util.c
144
sfp.fractions = htons((u_int16_t)((d - (u_int16_t)d) * S_DENOMINATOR));
usr.sbin/ntpd/util.c
78
d_to_tv(double d, struct timeval *tv)
usr.sbin/ntpd/util.c
81
if (!isfinite(d) || d > (double)LLONG_MAX || d < (double)LLONG_MIN)
usr.sbin/ntpd/util.c
84
tv->tv_sec = d;
usr.sbin/ntpd/util.c
85
tv->tv_usec = (d - tv->tv_sec) * 1000000;
usr.sbin/ospf6d/lsack.c
75
send_direct_ack(struct iface *iface, struct in6_addr addr, void *d, size_t len)
usr.sbin/ospf6d/lsack.c
84
if (ibuf_add(buf, d, len)) {
usr.sbin/ospf6d/lsupdate.c
450
int d, bigpkt;
usr.sbin/ospf6d/lsupdate.c
494
d = now - le->le_ref->stamp;
usr.sbin/ospf6d/lsupdate.c
495
if (d < 0)
usr.sbin/ospf6d/lsupdate.c
496
d = 0;
usr.sbin/ospf6d/lsupdate.c
497
else if (d > MAX_AGE)
usr.sbin/ospf6d/lsupdate.c
498
d = MAX_AGE;
usr.sbin/ospf6d/lsupdate.c
501
le->le_ref->len, d) == 0) {
usr.sbin/ospf6d/rde_lsdb.c
549
int d;
usr.sbin/ospf6d/rde_lsdb.c
555
d = now - v->stamp;
usr.sbin/ospf6d/rde_lsdb.c
559
if (d < 0) {
usr.sbin/ospf6d/rde_lsdb.c
565
if (age + d > MAX_AGE)
usr.sbin/ospf6d/rde_lsdb.c
568
age += d;
usr.sbin/ospf6d/rde_spf.c
134
d = v->cost + ntohs(rtr_link->metric);
usr.sbin/ospf6d/rde_spf.c
136
d = v->cost;
usr.sbin/ospf6d/rde_spf.c
139
if (d > w->cost)
usr.sbin/ospf6d/rde_spf.c
141
if (d < w->cost) {
usr.sbin/ospf6d/rde_spf.c
142
w->cost = d;
usr.sbin/ospf6d/rde_spf.c
154
} else if (w->cost == LS_INFINITY && d < LS_INFINITY) {
usr.sbin/ospf6d/rde_spf.c
155
w->cost = d;
usr.sbin/ospf6d/rde_spf.c
62
u_int32_t d;
usr.sbin/ospfd/lsack.c
81
send_direct_ack(struct iface *iface, struct in_addr addr, void *d, size_t len)
usr.sbin/ospfd/lsack.c
90
if (ibuf_add(buf, d, len)) {
usr.sbin/ospfd/lsupdate.c
443
int d;
usr.sbin/ospfd/lsupdate.c
486
d = now - le->le_ref->stamp;
usr.sbin/ospfd/lsupdate.c
487
if (d < 0)
usr.sbin/ospfd/lsupdate.c
488
d = 0;
usr.sbin/ospfd/lsupdate.c
489
else if (d > MAX_AGE)
usr.sbin/ospfd/lsupdate.c
490
d = MAX_AGE;
usr.sbin/ospfd/lsupdate.c
493
le->le_ref->len, d) == 0) {
usr.sbin/ospfd/rde_lsdb.c
463
int d;
usr.sbin/ospfd/rde_lsdb.c
469
d = now - v->stamp;
usr.sbin/ospfd/rde_lsdb.c
473
if (d < 0) {
usr.sbin/ospfd/rde_lsdb.c
479
if (age + d > MAX_AGE)
usr.sbin/ospfd/rde_lsdb.c
482
age += d;
usr.sbin/ospfd/rde_spf.c
133
d = v->cost + ntohs(rtr_link->metric);
usr.sbin/ospfd/rde_spf.c
135
d = v->cost;
usr.sbin/ospfd/rde_spf.c
138
if (d > w->cost)
usr.sbin/ospfd/rde_spf.c
140
if (d < w->cost) {
usr.sbin/ospfd/rde_spf.c
141
w->cost = d;
usr.sbin/ospfd/rde_spf.c
153
} else if (w->cost == LS_INFINITY && d < LS_INFINITY) {
usr.sbin/ospfd/rde_spf.c
154
w->cost = d;
usr.sbin/ospfd/rde_spf.c
58
u_int32_t d;
usr.sbin/pcidump/pcidump.c
289
char b[80], *d, *f;
usr.sbin/pcidump/pcidump.c
293
d = strchr(b, ':');
usr.sbin/pcidump/pcidump.c
294
if (d == NULL)
usr.sbin/pcidump/pcidump.c
296
*d++ = '\0';
usr.sbin/pcidump/pcidump.c
298
f = strchr(d, ':');
usr.sbin/pcidump/pcidump.c
306
*dev = strtonum(d, 0, 31, &errstr);
usr.sbin/pppd/ipcp.c
765
int d;
usr.sbin/pppd/ipcp.c
898
d = citype == CI_MS_DNS2;
usr.sbin/pppd/ipcp.c
899
IPCPDEBUG((LOG_INFO, "ipcp: received DNS%d Request ", d+1));
usr.sbin/pppd/ipcp.c
902
if (ao->dnsaddr[d] == 0 ||
usr.sbin/pppd/ipcp.c
908
if (htonl(tl) != ao->dnsaddr[d]) {
usr.sbin/pppd/ipcp.c
910
tl = ntohl(ao->dnsaddr[d]);
usr.sbin/pppd/ipcp.c
919
d = citype == CI_MS_WINS2;
usr.sbin/pppd/ipcp.c
920
IPCPDEBUG((LOG_INFO, "ipcp: received WINS%d Request ", d+1));
usr.sbin/pppd/ipcp.c
923
if (ao->winsaddr[d] == 0 ||
usr.sbin/pppd/ipcp.c
929
if (htonl(tl) != ao->winsaddr[d]) {
usr.sbin/pppd/ipcp.c
931
tl = ntohl(ao->winsaddr[d]);
usr.sbin/pppd/pppd.h
404
#define BCOPY(s, d, l) memcpy(d, s, l)
usr.sbin/pppd/pppd.h
405
#define BMOVE(s, d, l) memmove(d, s, l)
usr.sbin/pppd/pppstats/pppstats.c
214
KBPS(W(d.comp_bytes)), W(d.comp_packets),
usr.sbin/pppd/pppstats/pppstats.c
215
KBPS(W(d.inc_bytes)), W(d.inc_packets),
usr.sbin/pppd/pppstats/pppstats.c
216
ccs.d.ratio * 256.0);
usr.sbin/pppd/pppstats/pppstats.c
224
W(d.comp_bytes), W(d.comp_packets),
usr.sbin/pppd/pppstats/pppstats.c
225
W(d.inc_bytes), W(d.inc_packets),
usr.sbin/pppd/pppstats/pppstats.c
226
ccs.d.ratio * 256.0);
usr.sbin/pppd/pppstats/pppstats.c
250
printf(" %6.2f ", CRATE(d));
usr.sbin/pppd/pppstats/pppstats.c
252
printf("%6.2f", KBPS(W(d.unc_bytes)));
usr.sbin/pppd/pppstats/pppstats.c
254
printf("%6u", W(d.unc_bytes));
usr.sbin/procmap/procmap.c
151
#define D(x,d) (&((x)->k_data.d))
usr.sbin/procmap/procmap.c
696
#define V_DATA_IS(vp, type, d, i) do { \
usr.sbin/procmap/procmap.c
701
dev = D(&data, type)->d; \
usr.sbin/rarpd/rarpd.c
412
DIR *d;
usr.sbin/rarpd/rarpd.c
416
if ((d = dd))
usr.sbin/rarpd/rarpd.c
417
rewinddir(d);
usr.sbin/rarpd/rarpd.c
421
d = opendir(".");
usr.sbin/rarpd/rarpd.c
422
if (d == 0)
usr.sbin/rarpd/rarpd.c
424
dd = d;
usr.sbin/rarpd/rarpd.c
426
while ((dent = readdir(d)))
usr.sbin/rdate/ntp.c
403
double d;
usr.sbin/rdate/ntp.c
412
for (i = 0, d = 0.0; i < 8; ++i)
usr.sbin/rdate/ntp.c
413
d = 256.0*d+packet[NTP_RECEIVE+i];
usr.sbin/rdate/ntp.c
418
data->receive = d / NTP_SCALE;
usr.sbin/rdate/ntp.c
421
for (i = 0, d = 0.0; i < 8; ++i)
usr.sbin/rdate/ntp.c
422
d = 256.0*d+packet[NTP_TRANSMIT+i];
usr.sbin/rdate/ntp.c
427
data->transmit = d / NTP_SCALE;
usr.sbin/relayd/agentx_control.c
1002
u_int32_t d;
usr.sbin/relayd/agentx_control.c
1017
d = (u_int32_t)val;
usr.sbin/relayd/agentx_control.c
1019
&d, sizeof(d)) == -1)
usr.sbin/relayd/agentx_control.c
1024
d = (u_int32_t)val;
usr.sbin/relayd/agentx_control.c
1026
&d, sizeof(d)) == -1)
usr.sbin/relayd/agentx_control.c
1031
d = (u_int32_t)val;
usr.sbin/relayd/agentx_control.c
1033
&d, sizeof(d)) == -1)
usr.sbin/relayd/agentx_control.c
1046
d = (u_int32_t)val;
usr.sbin/rpki-client/aspa.c
120
aspa_parse_econtent(const char *fn, void *obj, const unsigned char *d,
usr.sbin/rpki-client/aspa.c
128
oder = d;
usr.sbin/rpki-client/aspa.c
129
if ((aspa_asn1 = d2i_ASProviderAttestation(NULL, &d, dsz)) == NULL) {
usr.sbin/rpki-client/aspa.c
133
if (d != oder + dsz) {
usr.sbin/rpki-client/aspa.c
135
oder + dsz - d);
usr.sbin/rpki-client/crl.c
108
d = ASN1_STRING_get0_data(os);
usr.sbin/rpki-client/crl.c
118
res = hex_encode(d, dsz);
usr.sbin/rpki-client/crl.c
75
const unsigned char *d;
usr.sbin/rpki-client/mft.c
293
mft_parse_econtent(const char *fn, void *obj, const unsigned char *d,
usr.sbin/rpki-client/mft.c
302
oder = d;
usr.sbin/rpki-client/mft.c
303
if ((mft_asn1 = d2i_Manifest(NULL, &d, dsz)) == NULL) {
usr.sbin/rpki-client/mft.c
307
if (d != oder + dsz) {
usr.sbin/rpki-client/mft.c
309
oder + dsz - d);
usr.sbin/rpki-client/roa.c
67
roa_parse_econtent(const char *fn, void *obj, const unsigned char *d,
usr.sbin/rpki-client/roa.c
84
oder = d;
usr.sbin/rpki-client/roa.c
85
if ((roa_asn1 = d2i_RouteOriginAttestation(NULL, &d, dsz)) == NULL) {
usr.sbin/rpki-client/roa.c
90
if (d != oder + dsz) {
usr.sbin/rpki-client/roa.c
92
oder + dsz - d);
usr.sbin/rpki-client/rrdp_notification.c
109
struct delta_item *d;
usr.sbin/rpki-client/rrdp_notification.c
112
TAILQ_FOREACH(d, &nxml->delta_q, q) {
usr.sbin/rpki-client/rrdp_notification.c
113
if (serial != 0 && serial + 1 != d->serial)
usr.sbin/rpki-client/rrdp_notification.c
115
serial = d->serial;
usr.sbin/rpki-client/rrdp_notification.c
121
free_delta(struct delta_item *d)
usr.sbin/rpki-client/rrdp_notification.c
123
free(d->uri);
usr.sbin/rpki-client/rrdp_notification.c
124
free(d);
usr.sbin/rpki-client/rrdp_notification.c
403
struct delta_item *d = TAILQ_FIRST(&nxml->delta_q);
usr.sbin/rpki-client/rrdp_notification.c
404
TAILQ_REMOVE(&nxml->delta_q, d, q);
usr.sbin/rpki-client/rrdp_notification.c
405
free_delta(d);
usr.sbin/rpki-client/rrdp_notification.c
427
struct delta_item *d;
usr.sbin/rpki-client/rrdp_notification.c
438
TAILQ_FOREACH(d, &nxml->delta_q, q) {
usr.sbin/rpki-client/rrdp_notification.c
439
if (d->serial >= keep_serial) {
usr.sbin/rpki-client/rrdp_notification.c
441
hash = hex_encode(d->hash, sizeof(d->hash));
usr.sbin/rpki-client/rrdp_notification.c
443
"%lld %s", d->serial, hash) == -1)
usr.sbin/rpki-client/rrdp_notification.c
459
struct delta_item *d, *nextd;
usr.sbin/rpki-client/rrdp_notification.c
468
TAILQ_FOREACH_SAFE(d, &nxml->delta_q, q, nextd) {
usr.sbin/rpki-client/rrdp_notification.c
469
while (exp_serial != 0 && exp_serial < d->serial) {
usr.sbin/rpki-client/rrdp_notification.c
474
if (d->serial == exp_serial) {
usr.sbin/rpki-client/rrdp_notification.c
475
hash = hex_encode(d->hash, sizeof(d->hash));
usr.sbin/rpki-client/rrdp_notification.c
490
if (d->serial < new_serial) {
usr.sbin/rpki-client/rrdp_notification.c
491
TAILQ_REMOVE(&nxml->delta_q, d, q);
usr.sbin/rpki-client/rrdp_notification.c
492
free_delta(d);
usr.sbin/rpki-client/rrdp_notification.c
565
struct delta_item *d;
usr.sbin/rpki-client/rrdp_notification.c
580
d = TAILQ_FIRST(&nxml->delta_q);
usr.sbin/rpki-client/rrdp_notification.c
581
assert(d->serial == nxml->current->serial);
usr.sbin/rpki-client/rrdp_notification.c
582
assert(hlen == sizeof(d->hash));
usr.sbin/rpki-client/rrdp_notification.c
583
memcpy(hash, d->hash, hlen);
usr.sbin/rpki-client/rrdp_notification.c
584
return d->uri;
usr.sbin/rpki-client/rrdp_notification.c
597
struct delta_item *d;
usr.sbin/rpki-client/rrdp_notification.c
599
d = TAILQ_FIRST(&nxml->delta_q);
usr.sbin/rpki-client/rrdp_notification.c
600
assert(d->serial == nxml->current->serial);
usr.sbin/rpki-client/rrdp_notification.c
601
TAILQ_REMOVE(&nxml->delta_q, d, q);
usr.sbin/rpki-client/rrdp_notification.c
602
free_delta(d);
usr.sbin/rpki-client/rrdp_notification.c
613
struct delta_item *d;
usr.sbin/rpki-client/rrdp_notification.c
622
TAILQ_FOREACH(d, &nxml->delta_q, q) {
usr.sbin/rpki-client/rrdp_notification.c
623
logx("delta serial %lld uri: %s", d->serial, d->uri);
usr.sbin/rpki-client/rrdp_notification.c
624
hash = hex_encode(d->hash, sizeof(d->hash));
usr.sbin/rpki-client/rrdp_notification.c
74
struct delta_item *d, *n;
usr.sbin/rpki-client/rrdp_notification.c
76
if ((d = calloc(1, sizeof(struct delta_item))) == NULL)
usr.sbin/rpki-client/rrdp_notification.c
79
d->serial = serial;
usr.sbin/rpki-client/rrdp_notification.c
80
d->uri = xstrdup(uri);
usr.sbin/rpki-client/rrdp_notification.c
81
memcpy(d->hash, hash, sizeof(d->hash));
usr.sbin/rpki-client/rrdp_notification.c
86
TAILQ_INSERT_HEAD(&nxml->delta_q, d, q);
usr.sbin/rpki-client/rrdp_notification.c
88
TAILQ_INSERT_TAIL(&nxml->delta_q, d, q);
usr.sbin/rpki-client/rrdp_notification.c
93
free_delta(d);
usr.sbin/rpki-client/rrdp_notification.c
97
TAILQ_INSERT_BEFORE(n, d, q);
usr.sbin/rpki-client/rsc.c
291
rsc_parse_econtent(const char *fn, void *obj, const unsigned char *d,
usr.sbin/rpki-client/rsc.c
304
oder = d;
usr.sbin/rpki-client/rsc.c
305
if ((rsc_asn1 = d2i_RpkiSignedChecklist(NULL, &d, dsz)) == NULL) {
usr.sbin/rpki-client/rsc.c
309
if (d != oder + dsz) {
usr.sbin/rpki-client/rsc.c
311
oder + dsz - d);
usr.sbin/rpki-client/spl.c
101
spl_parse_econtent(const char *fn, void *obj, const unsigned char *d,
usr.sbin/rpki-client/spl.c
117
oder = d;
usr.sbin/rpki-client/spl.c
118
if ((spl_asn1 = d2i_SignedPrefixList(NULL, &d, dsz)) == NULL) {
usr.sbin/rpki-client/spl.c
122
if (d != oder + dsz) {
usr.sbin/rpki-client/spl.c
124
oder + dsz - d);
usr.sbin/rpki-client/tak.c
143
tak_parse_econtent(const char *fn, void *obj, const unsigned char *d,
usr.sbin/rpki-client/tak.c
151
oder = d;
usr.sbin/rpki-client/tak.c
152
if ((tak_asn1 = d2i_TAK(NULL, &d, dsz)) == NULL) {
usr.sbin/rpki-client/tak.c
156
if (d != oder + dsz) {
usr.sbin/rpki-client/tak.c
158
oder + dsz - d);
usr.sbin/rpki-client/tal.c
168
const char *d;
usr.sbin/rpki-client/tal.c
176
d = strrchr(fn, '/');
usr.sbin/rpki-client/tal.c
177
if (d == NULL)
usr.sbin/rpki-client/tal.c
178
d = fn;
usr.sbin/rpki-client/tal.c
180
d++;
usr.sbin/rpki-client/tal.c
181
dlen = strlen(d);
usr.sbin/rpki-client/tal.c
182
if (dlen > 4 && strcasecmp(d + dlen - 4, ".tal") == 0)
usr.sbin/rpki-client/tal.c
184
if ((p->descr = strndup(d, dlen)) == NULL)
usr.sbin/rpki-client/x509.c
340
data = ASN1_STRING_get0_data(location->d.uniformResourceIdentifier);
usr.sbin/rpki-client/x509.c
341
length = ASN1_STRING_length(location->d.uniformResourceIdentifier);
usr.sbin/sasyncd/conf.y
352
char *buf, *s, *d;
usr.sbin/sasyncd/conf.y
394
for (s = buf, d = s; s < buf + conflen && *s; s++) {
usr.sbin/sasyncd/conf.y
405
if (d == buf && isspace(*s))
usr.sbin/sasyncd/conf.y
407
*d++ = *s;
usr.sbin/sasyncd/conf.y
409
*d = (char)0;
usr.sbin/sasyncd/conf.y
410
for (s = buf; s <= d; s++)
usr.sbin/sasyncd/net_ctl.c
156
net_ctl_send(struct syncpeer *p, u_int32_t type, u_int32_t d, u_int32_t d2)
usr.sbin/sasyncd/net_ctl.c
167
m->data = htonl(d);
usr.sbin/smtpd/bounce.c
309
bounce_duration(long long d)
usr.sbin/smtpd/bounce.c
313
if (d < 60) {
usr.sbin/smtpd/bounce.c
314
(void)snprintf(buf, sizeof buf, "%lld second%s", d,
usr.sbin/smtpd/bounce.c
315
(d == 1) ? "" : "s");
usr.sbin/smtpd/bounce.c
316
} else if (d < 3600) {
usr.sbin/smtpd/bounce.c
317
d = d / 60;
usr.sbin/smtpd/bounce.c
318
(void)snprintf(buf, sizeof buf, "%lld minute%s", d,
usr.sbin/smtpd/bounce.c
319
(d == 1) ? "" : "s");
usr.sbin/smtpd/bounce.c
321
else if (d < 3600 * 24) {
usr.sbin/smtpd/bounce.c
322
d = d / 3600;
usr.sbin/smtpd/bounce.c
323
(void)snprintf(buf, sizeof buf, "%lld hour%s", d,
usr.sbin/smtpd/bounce.c
324
(d == 1) ? "" : "s");
usr.sbin/smtpd/bounce.c
327
d = d / (3600 * 24);
usr.sbin/smtpd/bounce.c
328
(void)snprintf(buf, sizeof buf, "%lld day%s", d,
usr.sbin/smtpd/bounce.c
329
(d == 1) ? "" : "s");
usr.sbin/smtpd/config.c
225
struct dispatcher *d;
usr.sbin/smtpd/config.c
259
while (dict_poproot(env->sc_dispatchers, (void **)&d)) {
usr.sbin/smtpd/config.c
260
free(d);
usr.sbin/smtpd/dict.c
103
if ((entry = SPLAY_FIND(_dict, &d->dict, &key)) == NULL)
usr.sbin/smtpd/dict.c
110
dict_xget(struct dict *d, const char *k)
usr.sbin/smtpd/dict.c
115
if ((entry = SPLAY_FIND(_dict, &d->dict, &key)) == NULL)
usr.sbin/smtpd/dict.c
116
fatalx("dict_xget(%p, %s)", d, k);
usr.sbin/smtpd/dict.c
122
dict_pop(struct dict *d, const char *k)
usr.sbin/smtpd/dict.c
128
if ((entry = SPLAY_FIND(_dict, &d->dict, &key)) == NULL)
usr.sbin/smtpd/dict.c
132
SPLAY_REMOVE(_dict, &d->dict, entry);
usr.sbin/smtpd/dict.c
134
d->count -= 1;
usr.sbin/smtpd/dict.c
140
dict_xpop(struct dict *d, const char *k)
usr.sbin/smtpd/dict.c
146
if ((entry = SPLAY_FIND(_dict, &d->dict, &key)) == NULL)
usr.sbin/smtpd/dict.c
147
fatalx("dict_xpop(%p, %s)", d, k);
usr.sbin/smtpd/dict.c
150
SPLAY_REMOVE(_dict, &d->dict, entry);
usr.sbin/smtpd/dict.c
152
d->count -= 1;
usr.sbin/smtpd/dict.c
158
dict_poproot(struct dict *d, void **data)
usr.sbin/smtpd/dict.c
162
entry = SPLAY_ROOT(&d->dict);
usr.sbin/smtpd/dict.c
167
SPLAY_REMOVE(_dict, &d->dict, entry);
usr.sbin/smtpd/dict.c
169
d->count -= 1;
usr.sbin/smtpd/dict.c
175
dict_root(struct dict *d, const char **k, void **data)
usr.sbin/smtpd/dict.c
179
entry = SPLAY_ROOT(&d->dict);
usr.sbin/smtpd/dict.c
190
dict_iter(struct dict *d, void **hdl, const char **k, void **data)
usr.sbin/smtpd/dict.c
195
curr = SPLAY_MIN(_dict, &d->dict);
usr.sbin/smtpd/dict.c
197
curr = SPLAY_NEXT(_dict, &d->dict, curr);
usr.sbin/smtpd/dict.c
212
dict_iterfrom(struct dict *d, void **hdl, const char *kfrom, const char **k,
usr.sbin/smtpd/dict.c
219
curr = SPLAY_MIN(_dict, &d->dict);
usr.sbin/smtpd/dict.c
222
curr = SPLAY_FIND(_dict, &d->dict, &key);
usr.sbin/smtpd/dict.c
224
SPLAY_INSERT(_dict, &d->dict, &key);
usr.sbin/smtpd/dict.c
225
curr = SPLAY_NEXT(_dict, &d->dict, &key);
usr.sbin/smtpd/dict.c
226
SPLAY_REMOVE(_dict, &d->dict, &key);
usr.sbin/smtpd/dict.c
230
curr = SPLAY_NEXT(_dict, &d->dict, curr);
usr.sbin/smtpd/dict.c
39
dict_check(struct dict *d, const char *k)
usr.sbin/smtpd/dict.c
44
return (SPLAY_FIND(_dict, &d->dict, &key) != NULL);
usr.sbin/smtpd/dict.c
65
dict_set(struct dict *d, const char *k, void *data)
usr.sbin/smtpd/dict.c
71
if ((entry = SPLAY_FIND(_dict, &d->dict, &key)) == NULL) {
usr.sbin/smtpd/dict.c
74
SPLAY_INSERT(_dict, &d->dict, entry);
usr.sbin/smtpd/dict.c
76
d->count += 1;
usr.sbin/smtpd/dict.c
86
dict_xset(struct dict *d, const char * k, void *data)
usr.sbin/smtpd/dict.c
92
if (SPLAY_INSERT(_dict, &d->dict, entry))
usr.sbin/smtpd/dict.c
93
fatalx("dict_xset(%p, %s)", d, k);
usr.sbin/smtpd/dict.c
94
d->count += 1;
usr.sbin/smtpd/dict.c
98
dict_get(struct dict *d, const char *k)
usr.sbin/smtpd/dict.h
32
#define dict_init(d) do { SPLAY_INIT(&((d)->dict)); (d)->count = 0; } while(0)
usr.sbin/smtpd/dict.h
33
#define dict_empty(d) SPLAY_EMPTY(&((d)->dict))
usr.sbin/smtpd/dict.h
34
#define dict_count(d) ((d)->count)
usr.sbin/smtpd/envelope.c
100
dict_set(d, field, buf);
usr.sbin/smtpd/envelope.c
113
struct dict d;
usr.sbin/smtpd/envelope.c
118
dict_init(&d);
usr.sbin/smtpd/envelope.c
119
if (!envelope_buffer_to_dict(&d, ibuf, buflen)) {
usr.sbin/smtpd/envelope.c
124
val = dict_get(&d, "version");
usr.sbin/smtpd/envelope.c
141
ret = envelope_ascii_load(ep, &d);
usr.sbin/smtpd/envelope.c
145
while (dict_poproot(&d, NULL))
usr.sbin/smtpd/envelope.c
466
envelope_ascii_load(struct envelope *ep, struct dict *d)
usr.sbin/smtpd/envelope.c
473
while (dict_iter(d, &hdl, &field, (void **)&value))
usr.sbin/smtpd/envelope.c
65
envelope_buffer_to_dict(struct dict *d, const char *ibuf, size_t buflen)
usr.sbin/smtpd/lka_filter.c
1380
struct dict *d;
usr.sbin/smtpd/lka_filter.c
1385
d = &report_smtp_in;
usr.sbin/smtpd/lka_filter.c
1388
d = &report_smtp_out;
usr.sbin/smtpd/lka_filter.c
1393
tailq = dict_xget(d, event);
usr.sbin/smtpd/mproc.c
478
m_add_params(struct mproc *m, struct dict *d)
usr.sbin/smtpd/mproc.c
484
if (d == NULL) {
usr.sbin/smtpd/mproc.c
488
m_add_size(m, dict_count(d));
usr.sbin/smtpd/mproc.c
490
while (dict_iter(d, &iter, &key, (void **)&value)) {
usr.sbin/smtpd/mproc.c
620
m_get_params(struct msg *m, struct dict *d)
usr.sbin/smtpd/mproc.c
627
dict_init(d);
usr.sbin/smtpd/mproc.c
636
dict_set(d, key, tmp);
usr.sbin/smtpd/mproc.c
641
m_clear_params(struct dict *d)
usr.sbin/smtpd/mproc.c
645
while (dict_poproot(d, (void **)&value))
usr.sbin/smtpd/mta.c
2248
struct mta_domain key, *d;
usr.sbin/smtpd/mta.c
2252
d = SPLAY_FIND(mta_domain_tree, &domains, &key);
usr.sbin/smtpd/mta.c
2254
if (d == NULL) {
usr.sbin/smtpd/mta.c
2255
d = xcalloc(1, sizeof(*d));
usr.sbin/smtpd/mta.c
2256
d->name = xstrdup(name);
usr.sbin/smtpd/mta.c
2257
d->as_host = as_host;
usr.sbin/smtpd/mta.c
2258
TAILQ_INIT(&d->mxs);
usr.sbin/smtpd/mta.c
2259
SPLAY_INSERT(mta_domain_tree, &domains, d);
usr.sbin/smtpd/mta.c
2263
d->refcount++;
usr.sbin/smtpd/mta.c
2264
return (d);
usr.sbin/smtpd/mta.c
2269
mta_domain_ref(struct mta_domain *d)
usr.sbin/smtpd/mta.c
2271
d->refcount++;
usr.sbin/smtpd/mta.c
2276
mta_domain_unref(struct mta_domain *d)
usr.sbin/smtpd/mta.c
2280
if (--d->refcount)
usr.sbin/smtpd/mta.c
2283
while ((mx = TAILQ_FIRST(&d->mxs))) {
usr.sbin/smtpd/mta.c
2284
TAILQ_REMOVE(&d->mxs, mx, entry);
usr.sbin/smtpd/mta.c
2290
SPLAY_REMOVE(mta_domain_tree, &domains, d);
usr.sbin/smtpd/mta.c
2291
free(d->name);
usr.sbin/smtpd/mta.c
2292
free(d);
usr.sbin/smtpd/parse.y
2015
time_t d;
usr.sbin/smtpd/parse.y
2018
d = delaytonum($1);
usr.sbin/smtpd/parse.y
2019
if (d < 0) {
usr.sbin/smtpd/parse.y
2028
conf->sc_bounce_warn[i] = d;
usr.sbin/smtpd/parse.y
375
struct mta_limits *d;
usr.sbin/smtpd/parse.y
381
d = dict_xget(conf->sc_limits_dict, "default");
usr.sbin/smtpd/parse.y
382
memmove(limits, d, sizeof(*limits));
usr.sbin/smtpd/queue.c
558
queue_bounce(struct envelope *e, struct delivery_bounce *d)
usr.sbin/smtpd/queue.c
564
b.agent.bounce = *d;
usr.sbin/smtpd/smtpd.c
1223
struct dirent *d;
usr.sbin/smtpd/smtpd.c
1234
while ((d = readdir(dp)) != NULL) {
usr.sbin/smtpd/smtpd.c
1235
if (strcmp(d->d_name, ".") == 0 ||
usr.sbin/smtpd/smtpd.c
1236
strcmp(d->d_name, "..") == 0)
usr.sbin/smtpd/to.c
178
long long d;
usr.sbin/smtpd/to.c
196
d = t / 24;
usr.sbin/smtpd/to.c
198
if (d) {
usr.sbin/smtpd/to.c
199
(void)snprintf(buf, sizeof buf, "%lldd", d);
usr.sbin/syslogd/syslogd.c
2712
struct filed *xf, *f, *d;
usr.sbin/syslogd/syslogd.c
2926
d = find_dup(f);
usr.sbin/syslogd/syslogd.c
2927
if (d != NULL) {
usr.sbin/syslogd/syslogd.c
2930
d->f_pmask[i] = f->f_pmask[i];
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/parsenfsfh.c
94
((lsb) + ((e)<<8) + ((d)<<16) + ((c)<<24))
usr.sbin/tcpdump/print-pfsync.c
275
const struct pfsync_del_c *d = bp;
usr.sbin/tcpdump/print-pfsync.c
277
printf("\n\tid: %016llx creatorid: %08x", betoh64(d->id),
usr.sbin/tcpdump/print-pfsync.c
278
ntohl(d->creatorid));
usr.sbin/tcpdump/print-wb.c
48
#define DOP_NEXT(d)\
usr.sbin/tcpdump/print-wb.c
49
((struct dophdr *)((u_char *)(d) + \
usr.sbin/tcpdump/print-wb.c
50
DOP_ROUNDUP(ntohs((d)->dh_len) + sizeof(*(d)))))
usr.sbin/tcpdump/smbutil.c
102
d += (3*24*60*60 + 6*60*60 + 2);
usr.sbin/tcpdump/smbutil.c
104
if (d<0)
usr.sbin/tcpdump/smbutil.c
107
ret = (time_t)d;
usr.sbin/tcpdump/smbutil.c
92
double d;
usr.sbin/tcpdump/smbutil.c
96
d = (IVAL(p,4)*256.0 + CVAL(p,3)) * (1.0e-7 * (1<<24));
usr.sbin/tcpdump/smbutil.c
99
d -= 369.0*365.25*24*60*60;
usr.sbin/unbound/cachedb/cachedb.c
107
struct testframe_moddata* d;
usr.sbin/unbound/cachedb/cachedb.c
109
d = (struct testframe_moddata*)calloc(1,
usr.sbin/unbound/cachedb/cachedb.c
111
cachedb_env->backend_data = (void*)d;
usr.sbin/unbound/cachedb/cachedb.c
122
free(d);
usr.sbin/unbound/cachedb/cachedb.c
125
lock_basic_init(&d->lock);
usr.sbin/unbound/cachedb/cachedb.c
126
lock_protect(&d->lock, d, sizeof(*d));
usr.sbin/unbound/cachedb/cachedb.c
133
struct testframe_moddata* d = (struct testframe_moddata*)
usr.sbin/unbound/cachedb/cachedb.c
137
if(!d)
usr.sbin/unbound/cachedb/cachedb.c
139
lock_basic_destroy(&d->lock);
usr.sbin/unbound/cachedb/cachedb.c
140
free(d->stored_key);
usr.sbin/unbound/cachedb/cachedb.c
141
free(d->stored_data);
usr.sbin/unbound/cachedb/cachedb.c
142
free(d);
usr.sbin/unbound/cachedb/cachedb.c
149
struct testframe_moddata* d = (struct testframe_moddata*)
usr.sbin/unbound/cachedb/cachedb.c
153
lock_basic_lock(&d->lock);
usr.sbin/unbound/cachedb/cachedb.c
154
if(d->stored_key && strcmp(d->stored_key, key) == 0) {
usr.sbin/unbound/cachedb/cachedb.c
155
if(d->stored_datalen > sldns_buffer_capacity(result_buffer)) {
usr.sbin/unbound/cachedb/cachedb.c
156
lock_basic_unlock(&d->lock);
usr.sbin/unbound/cachedb/cachedb.c
160
(int)d->stored_datalen);
usr.sbin/unbound/cachedb/cachedb.c
162
sldns_buffer_write(result_buffer, d->stored_data,
usr.sbin/unbound/cachedb/cachedb.c
163
d->stored_datalen);
usr.sbin/unbound/cachedb/cachedb.c
165
lock_basic_unlock(&d->lock);
usr.sbin/unbound/cachedb/cachedb.c
168
lock_basic_unlock(&d->lock);
usr.sbin/unbound/cachedb/cachedb.c
176
struct testframe_moddata* d = (struct testframe_moddata*)
usr.sbin/unbound/cachedb/cachedb.c
179
lock_basic_lock(&d->lock);
usr.sbin/unbound/cachedb/cachedb.c
183
free(d->stored_key);
usr.sbin/unbound/cachedb/cachedb.c
184
d->stored_key = NULL;
usr.sbin/unbound/cachedb/cachedb.c
185
free(d->stored_data);
usr.sbin/unbound/cachedb/cachedb.c
186
d->stored_data = NULL;
usr.sbin/unbound/cachedb/cachedb.c
187
d->stored_datalen = 0;
usr.sbin/unbound/cachedb/cachedb.c
189
d->stored_data = memdup(data, data_len);
usr.sbin/unbound/cachedb/cachedb.c
190
if(!d->stored_data) {
usr.sbin/unbound/cachedb/cachedb.c
191
lock_basic_unlock(&d->lock);
usr.sbin/unbound/cachedb/cachedb.c
195
d->stored_datalen = data_len;
usr.sbin/unbound/cachedb/cachedb.c
196
d->stored_key = strdup(key);
usr.sbin/unbound/cachedb/cachedb.c
197
if(!d->stored_key) {
usr.sbin/unbound/cachedb/cachedb.c
198
free(d->stored_data);
usr.sbin/unbound/cachedb/cachedb.c
199
d->stored_data = NULL;
usr.sbin/unbound/cachedb/cachedb.c
200
d->stored_datalen = 0;
usr.sbin/unbound/cachedb/cachedb.c
201
lock_basic_unlock(&d->lock);
usr.sbin/unbound/cachedb/cachedb.c
204
lock_basic_unlock(&d->lock);
usr.sbin/unbound/cachedb/redis.c
437
struct redis_moddata* d = (struct redis_moddata*)
usr.sbin/unbound/cachedb/redis.c
445
log_assert(env->alloc->thread_num < d->numctxs);
usr.sbin/unbound/cachedb/redis.c
447
ctx_selector = !write && d->replica_ctxs
usr.sbin/unbound/cachedb/redis.c
448
?d->replica_ctxs
usr.sbin/unbound/cachedb/redis.c
449
:d->ctxs;
usr.sbin/unbound/cachedb/redis.c
456
if(!write && d->replica_ctxs) {
usr.sbin/unbound/cachedb/redis.c
458
d->replica_server_host,
usr.sbin/unbound/cachedb/redis.c
459
d->replica_server_port,
usr.sbin/unbound/cachedb/redis.c
460
d->replica_server_path,
usr.sbin/unbound/cachedb/redis.c
461
d->replica_server_password,
usr.sbin/unbound/cachedb/redis.c
462
d->replica_logical_db,
usr.sbin/unbound/cachedb/redis.c
463
d->replica_connect_timeout,
usr.sbin/unbound/cachedb/redis.c
464
d->replica_command_timeout,
usr.sbin/unbound/cachedb/redis.c
465
&d->replica_reconnect_interval,
usr.sbin/unbound/cachedb/redis.c
466
&d->replica_reconnect_attempts,
usr.sbin/unbound/cachedb/redis.c
467
&d->replica_reconnect_wait,
usr.sbin/unbound/cachedb/redis.c
468
&d->replica_wait_lock,
usr.sbin/unbound/cachedb/redis.c
473
d->server_host,
usr.sbin/unbound/cachedb/redis.c
474
d->server_port,
usr.sbin/unbound/cachedb/redis.c
475
d->server_path,
usr.sbin/unbound/cachedb/redis.c
476
d->server_password,
usr.sbin/unbound/cachedb/redis.c
477
d->logical_db,
usr.sbin/unbound/cachedb/redis.c
478
d->connect_timeout,
usr.sbin/unbound/cachedb/redis.c
479
d->command_timeout,
usr.sbin/unbound/cachedb/redis.c
480
&d->reconnect_interval,
usr.sbin/unbound/cachedb/redis.c
481
&d->reconnect_attempts,
usr.sbin/unbound/cachedb/redis.c
482
&d->reconnect_wait,
usr.sbin/unbound/cachedb/redis.c
483
&d->wait_lock,
usr.sbin/unbound/daemon/cachedump.c
113
struct packed_rrset_data* d, time_t now)
usr.sbin/unbound/daemon/cachedump.c
117
if(!k || !d) return;
usr.sbin/unbound/daemon/cachedump.c
119
if(d->ttl < now) return; /* expired */
usr.sbin/unbound/daemon/cachedump.c
124
(long long)(d->ttl - now),
usr.sbin/unbound/daemon/cachedump.c
125
(unsigned)d->count, (unsigned)d->rrsig_count,
usr.sbin/unbound/daemon/cachedump.c
126
(int)d->trust, (int)d->security
usr.sbin/unbound/daemon/cachedump.c
128
for(i=0; i<d->count + d->rrsig_count; i++) {
usr.sbin/unbound/daemon/cachedump.c
311
struct reply_info* d, time_t now)
usr.sbin/unbound/daemon/cachedump.c
315
if(!k || !d) return;
usr.sbin/unbound/daemon/cachedump.c
316
if(d->ttl < now) return; /* expired */
usr.sbin/unbound/daemon/cachedump.c
327
if(!rrset_array_lock(d->ref, d->rrset_count, now)) {
usr.sbin/unbound/daemon/cachedump.c
339
(int)d->flags, (int)d->qdcount,
usr.sbin/unbound/daemon/cachedump.c
340
(long long)(d->ttl-now), (int)d->security,
usr.sbin/unbound/daemon/cachedump.c
341
(unsigned)d->an_numrrsets,
usr.sbin/unbound/daemon/cachedump.c
342
(unsigned)d->ns_numrrsets,
usr.sbin/unbound/daemon/cachedump.c
343
(unsigned)d->ar_numrrsets,
usr.sbin/unbound/daemon/cachedump.c
344
(int)d->reason_bogus,
usr.sbin/unbound/daemon/cachedump.c
345
d->reason_bogus_str?d->reason_bogus_str:"");
usr.sbin/unbound/daemon/cachedump.c
350
for(i=0; i<d->rrset_count; i++) {
usr.sbin/unbound/daemon/cachedump.c
351
dump_msg_ref(txt, d->rrsets[i]);
usr.sbin/unbound/daemon/cachedump.c
353
rrset_array_unlock(d->ref, d->rrset_count);
usr.sbin/unbound/daemon/cachedump.c
359
struct query_info** k, struct reply_info** d)
usr.sbin/unbound/daemon/cachedump.c
364
*d = (struct reply_info*)regional_alloc_init(region, e->data,
usr.sbin/unbound/daemon/cachedump.c
368
if(!*d)
usr.sbin/unbound/daemon/cachedump.c
370
(*d)->rrsets = (struct ub_packed_rrset_key**)(void *)(
usr.sbin/unbound/daemon/cachedump.c
371
(uint8_t*)(&((*d)->ref[0])) +
usr.sbin/unbound/daemon/cachedump.c
389
struct reply_info* d;
usr.sbin/unbound/daemon/cachedump.c
394
if(!copy_msg(dump_info->worker->scratchpad, e, &k, &d)) {
usr.sbin/unbound/daemon/cachedump.c
402
dump_msg(txt, k, d, *dump_info->worker->env.now);
usr.sbin/unbound/daemon/cachedump.c
448
struct ub_packed_rrset_key* rk, struct packed_rrset_data* d,
usr.sbin/unbound/daemon/cachedump.c
478
d->rr_ttl[i] = (time_t)sldns_wirerr_get_ttl(rr, rr_len, dname_len) + now;
usr.sbin/unbound/daemon/cachedump.c
480
d->rr_len[i] = sldns_wirerr_get_rdatalen(rr, rr_len, dname_len)+2;
usr.sbin/unbound/daemon/cachedump.c
481
d->rr_data[i] = (uint8_t*)regional_alloc_init(region,
usr.sbin/unbound/daemon/cachedump.c
482
sldns_wirerr_get_rdatawl(rr, rr_len, dname_len), d->rr_len[i]);
usr.sbin/unbound/daemon/cachedump.c
483
if(!d->rr_data[i]) {
usr.sbin/unbound/daemon/cachedump.c
506
struct packed_rrset_data* d, struct worker* worker)
usr.sbin/unbound/daemon/cachedump.c
510
size_t s, i, num = d->count + d->rrsig_count;
usr.sbin/unbound/daemon/cachedump.c
531
s += d->rr_len[i];
usr.sbin/unbound/daemon/cachedump.c
539
memmove(p, d, sizeof(*ad));
usr.sbin/unbound/daemon/cachedump.c
541
memmove(p, &d->rr_len[0], sizeof(size_t)*num);
usr.sbin/unbound/daemon/cachedump.c
543
memmove(p, &d->rr_data[0], sizeof(uint8_t*)*num);
usr.sbin/unbound/daemon/cachedump.c
545
memmove(p, &d->rr_ttl[0], sizeof(time_t)*num);
usr.sbin/unbound/daemon/cachedump.c
548
memmove(p, d->rr_data[i], d->rr_len[i]);
usr.sbin/unbound/daemon/cachedump.c
549
p += d->rr_len[i];
usr.sbin/unbound/daemon/cachedump.c
570
struct packed_rrset_data* d;
usr.sbin/unbound/daemon/cachedump.c
579
d = (struct packed_rrset_data*)regional_alloc_zero(region, sizeof(*d));
usr.sbin/unbound/daemon/cachedump.c
580
if(!rk || !d) {
usr.sbin/unbound/daemon/cachedump.c
607
d->count = (size_t)rr_count;
usr.sbin/unbound/daemon/cachedump.c
608
d->rrsig_count = (size_t)rrsig_count;
usr.sbin/unbound/daemon/cachedump.c
609
d->security = (enum sec_status)security;
usr.sbin/unbound/daemon/cachedump.c
610
d->trust = (enum rrset_trust)trust;
usr.sbin/unbound/daemon/cachedump.c
611
d->ttl = (time_t)ttl + *worker->env.now;
usr.sbin/unbound/daemon/cachedump.c
613
d->rr_len = regional_alloc_zero(region,
usr.sbin/unbound/daemon/cachedump.c
614
sizeof(size_t)*(d->count+d->rrsig_count));
usr.sbin/unbound/daemon/cachedump.c
615
d->rr_ttl = regional_alloc_zero(region,
usr.sbin/unbound/daemon/cachedump.c
616
sizeof(time_t)*(d->count+d->rrsig_count));
usr.sbin/unbound/daemon/cachedump.c
617
d->rr_data = regional_alloc_zero(region,
usr.sbin/unbound/daemon/cachedump.c
618
sizeof(uint8_t*)*(d->count+d->rrsig_count));
usr.sbin/unbound/daemon/cachedump.c
619
if(!d->rr_len || !d->rr_ttl || !d->rr_data) {
usr.sbin/unbound/daemon/cachedump.c
626
if(!load_rr(ssl, buf, region, rk, d, i, 0,
usr.sbin/unbound/daemon/cachedump.c
633
if(!load_rr(ssl, buf, region, rk, d, i+rr_count, 1,
usr.sbin/unbound/daemon/cachedump.c
644
return move_into_cache(rk, d, worker);
usr.sbin/unbound/daemon/cachedump.c
935
struct packed_rrset_data* d =
usr.sbin/unbound/daemon/cachedump.c
939
if(d->security == sec_status_bogus) {
usr.sbin/unbound/daemon/cachedump.c
943
dump_rrset(&txt, k, d, 0);
usr.sbin/unbound/daemon/remote.c
1809
cache_lookup_subnet_addrnode(struct query_info* q, struct reply_info* d,
usr.sbin/unbound/daemon/remote.c
1828
sldns_wire2str_rcode_buf(FLAGS_GET_RCODE(d->flags),
usr.sbin/unbound/daemon/remote.c
1831
((d->flags&BIT_QR)?" QR":""),
usr.sbin/unbound/daemon/remote.c
1832
((d->flags&BIT_AA)?" AA":""),
usr.sbin/unbound/daemon/remote.c
1833
((d->flags&BIT_TC)?" TC":""),
usr.sbin/unbound/daemon/remote.c
1834
((d->flags&BIT_RD)?" RD":""),
usr.sbin/unbound/daemon/remote.c
1835
((d->flags&BIT_RA)?" RA":""),
usr.sbin/unbound/daemon/remote.c
1836
((d->flags&BIT_Z)?" Z":""),
usr.sbin/unbound/daemon/remote.c
1837
((d->flags&BIT_AD)?" AD":""),
usr.sbin/unbound/daemon/remote.c
1838
((d->flags&BIT_CD)?" CD":""));
usr.sbin/unbound/daemon/remote.c
1839
if(!rrset_array_lock(d->ref, d->rrset_count,
usr.sbin/unbound/daemon/remote.c
1847
rrset_array_unlock(d->ref, d->rrset_count);
usr.sbin/unbound/daemon/remote.c
1853
(int)d->flags, (int)d->qdcount,
usr.sbin/unbound/daemon/remote.c
1854
(long long)(d->ttl-*inf->worker->env.now),
usr.sbin/unbound/daemon/remote.c
1855
(int)d->security,
usr.sbin/unbound/daemon/remote.c
1856
(unsigned)d->an_numrrsets,
usr.sbin/unbound/daemon/remote.c
1857
(unsigned)d->ns_numrrsets,
usr.sbin/unbound/daemon/remote.c
1858
(unsigned)d->ar_numrrsets,
usr.sbin/unbound/daemon/remote.c
1859
(int)d->reason_bogus,
usr.sbin/unbound/daemon/remote.c
1860
d->reason_bogus_str?d->reason_bogus_str:"");
usr.sbin/unbound/daemon/remote.c
1861
for(i=0; i<d->rrset_count; i++) {
usr.sbin/unbound/daemon/remote.c
1862
struct ub_packed_rrset_key* rk = d->rrsets[i];
usr.sbin/unbound/daemon/remote.c
1874
rrset_array_unlock(d->ref, d->rrset_count);
usr.sbin/unbound/daemon/remote.c
1938
struct subnet_msg_cache_data* d =
usr.sbin/unbound/daemon/remote.c
1943
if(d->tree4) {
usr.sbin/unbound/daemon/remote.c
1944
addrtree_traverse(d->tree4, 0, *inf->worker->env.now, &k->key,
usr.sbin/unbound/daemon/remote.c
1947
if(d->tree6) {
usr.sbin/unbound/daemon/remote.c
1948
addrtree_traverse(d->tree6, 1, *inf->worker->env.now, &k->key,
usr.sbin/unbound/daemon/remote.c
1959
struct packed_rrset_data* d = (struct packed_rrset_data*)e->data;
usr.sbin/unbound/daemon/remote.c
1960
if(*inf->worker->env.now < d->ttl &&
usr.sbin/unbound/daemon/remote.c
1964
for(i=0; i<d->count + d->rrsig_count; i++) {
usr.sbin/unbound/daemon/remote.c
1982
struct reply_info* d = (struct reply_info*)e->data;
usr.sbin/unbound/daemon/remote.c
1983
if(*inf->worker->env.now < d->ttl &&
usr.sbin/unbound/daemon/remote.c
1991
sldns_wire2str_rcode_buf(FLAGS_GET_RCODE(d->flags),
usr.sbin/unbound/daemon/remote.c
1994
((d->flags&BIT_QR)?" QR":""),
usr.sbin/unbound/daemon/remote.c
1995
((d->flags&BIT_AA)?" AA":""),
usr.sbin/unbound/daemon/remote.c
1996
((d->flags&BIT_TC)?" TC":""),
usr.sbin/unbound/daemon/remote.c
1997
((d->flags&BIT_RD)?" RD":""),
usr.sbin/unbound/daemon/remote.c
1998
((d->flags&BIT_RA)?" RA":""),
usr.sbin/unbound/daemon/remote.c
1999
((d->flags&BIT_Z)?" Z":""),
usr.sbin/unbound/daemon/remote.c
2000
((d->flags&BIT_AD)?" AD":""),
usr.sbin/unbound/daemon/remote.c
2001
((d->flags&BIT_CD)?" CD":""));
usr.sbin/unbound/daemon/remote.c
2002
if(!rrset_array_lock(d->ref, d->rrset_count,
usr.sbin/unbound/daemon/remote.c
2010
(int)d->flags, (int)d->qdcount,
usr.sbin/unbound/daemon/remote.c
2011
(long long)(d->ttl-*inf->worker->env.now),
usr.sbin/unbound/daemon/remote.c
2012
(int)d->security,
usr.sbin/unbound/daemon/remote.c
2013
(unsigned)d->an_numrrsets,
usr.sbin/unbound/daemon/remote.c
2014
(unsigned)d->ns_numrrsets,
usr.sbin/unbound/daemon/remote.c
2015
(unsigned)d->ar_numrrsets,
usr.sbin/unbound/daemon/remote.c
2016
(int)d->reason_bogus,
usr.sbin/unbound/daemon/remote.c
2017
d->reason_bogus_str?d->reason_bogus_str:"");
usr.sbin/unbound/daemon/remote.c
2018
for(i=0; i<d->rrset_count; i++) {
usr.sbin/unbound/daemon/remote.c
2019
struct ub_packed_rrset_key* rk = d->rrsets[i];
usr.sbin/unbound/daemon/remote.c
2025
rrset_array_unlock(d->ref, d->rrset_count);
usr.sbin/unbound/daemon/remote.c
2032
rrset_array_unlock(d->ref, d->rrset_count);
usr.sbin/unbound/daemon/remote.c
2250
struct infra_data* d = (struct infra_data*)e->data;
usr.sbin/unbound/daemon/remote.c
2251
d->probedelay = 0;
usr.sbin/unbound/daemon/remote.c
2252
d->timeout_A = 0;
usr.sbin/unbound/daemon/remote.c
2253
d->timeout_AAAA = 0;
usr.sbin/unbound/daemon/remote.c
2254
d->timeout_other = 0;
usr.sbin/unbound/daemon/remote.c
2255
rtt_init(&d->rtt);
usr.sbin/unbound/daemon/remote.c
2256
if(d->ttl > inf->expired) {
usr.sbin/unbound/daemon/remote.c
2257
d->ttl = inf->expired;
usr.sbin/unbound/daemon/remote.c
2314
struct packed_rrset_data* d =
usr.sbin/unbound/daemon/remote.c
2316
if(d->ttl > inf->expired) {
usr.sbin/unbound/daemon/remote.c
2317
d->ttl = inf->expired;
usr.sbin/unbound/daemon/remote.c
2331
struct reply_info* d = (struct reply_info*)e->data;
usr.sbin/unbound/daemon/remote.c
2332
if(d->ttl > inf->expired) {
usr.sbin/unbound/daemon/remote.c
2333
d->ttl = inf->expired;
usr.sbin/unbound/daemon/remote.c
2334
d->prefetch_ttl = inf->expired;
usr.sbin/unbound/daemon/remote.c
2335
d->serve_expired_ttl = inf->expired;
usr.sbin/unbound/daemon/remote.c
2353
struct key_entry_data* d = (struct key_entry_data*)e->data;
usr.sbin/unbound/daemon/remote.c
2354
if(d->ttl > inf->expired) {
usr.sbin/unbound/daemon/remote.c
2355
d->ttl = inf->expired;
usr.sbin/unbound/daemon/remote.c
2410
struct packed_rrset_data* d = (struct packed_rrset_data*)e->data;
usr.sbin/unbound/daemon/remote.c
2411
if(d->security == sec_status_bogus && d->ttl > inf->expired) {
usr.sbin/unbound/daemon/remote.c
2412
d->ttl = inf->expired;
usr.sbin/unbound/daemon/remote.c
2423
struct reply_info* d = (struct reply_info*)e->data;
usr.sbin/unbound/daemon/remote.c
2424
if(d->security == sec_status_bogus && d->ttl > inf->expired) {
usr.sbin/unbound/daemon/remote.c
2425
d->ttl = inf->expired;
usr.sbin/unbound/daemon/remote.c
2426
d->prefetch_ttl = inf->expired;
usr.sbin/unbound/daemon/remote.c
2427
d->serve_expired_ttl = inf->expired;
usr.sbin/unbound/daemon/remote.c
2443
struct key_entry_data* d = (struct key_entry_data*)e->data;
usr.sbin/unbound/daemon/remote.c
2444
if(d->isbad && d->ttl > inf->expired) {
usr.sbin/unbound/daemon/remote.c
2445
d->ttl = inf->expired;
usr.sbin/unbound/daemon/remote.c
2489
struct packed_rrset_data* d = (struct packed_rrset_data*)e->data;
usr.sbin/unbound/daemon/remote.c
2492
if((k->rk.flags & PACKED_RRSET_PARENT_SIDE) && d->count == 1 &&
usr.sbin/unbound/daemon/remote.c
2493
d->rrsig_count == 0 && d->rr_len[0] == 0 &&
usr.sbin/unbound/daemon/remote.c
2494
d->ttl > inf->expired) {
usr.sbin/unbound/daemon/remote.c
2495
d->ttl = inf->expired;
usr.sbin/unbound/daemon/remote.c
2506
struct reply_info* d = (struct reply_info*)e->data;
usr.sbin/unbound/daemon/remote.c
2509
if((FLAGS_GET_RCODE(d->flags) != 0 || d->an_numrrsets == 0) &&
usr.sbin/unbound/daemon/remote.c
2510
d->ttl > inf->expired) {
usr.sbin/unbound/daemon/remote.c
2511
d->ttl = inf->expired;
usr.sbin/unbound/daemon/remote.c
2512
d->prefetch_ttl = inf->expired;
usr.sbin/unbound/daemon/remote.c
2513
d->serve_expired_ttl = inf->expired;
usr.sbin/unbound/daemon/remote.c
2529
struct key_entry_data* d = (struct key_entry_data*)e->data;
usr.sbin/unbound/daemon/remote.c
2532
if(d->isbad && d->ttl > inf->expired) {
usr.sbin/unbound/daemon/remote.c
2533
d->ttl = inf->expired;
usr.sbin/unbound/daemon/remote.c
3025
struct timeval d;
usr.sbin/unbound/daemon/remote.c
3030
timeval_subtract(&d, env->now_tv, &r->start_time);
usr.sbin/unbound/daemon/remote.c
3032
(long long)d.tv_sec, (int)d.tv_usec);
usr.sbin/unbound/daemon/remote.c
3147
struct infra_data* d = (struct infra_data*)e->data;
usr.sbin/unbound/daemon/remote.c
3161
if(d->ttl < a->now) {
usr.sbin/unbound/daemon/remote.c
3162
if(d->rtt.rto >= USEFUL_SERVER_TOP_TIMEOUT) {
usr.sbin/unbound/daemon/remote.c
3164
name, d->rtt.rto)) {
usr.sbin/unbound/daemon/remote.c
3174
"other %d\n", ip_str, name, (unsigned long)(d->ttl - a->now),
usr.sbin/unbound/daemon/remote.c
3175
d->rtt.srtt, d->rtt.rttvar, rtt_notimeout(&d->rtt), d->rtt.rto,
usr.sbin/unbound/daemon/remote.c
3176
d->timeout_A, d->timeout_AAAA, d->timeout_other,
usr.sbin/unbound/daemon/remote.c
3177
(int)d->edns_lame_known, (int)d->edns_version,
usr.sbin/unbound/daemon/remote.c
3178
(int)(a->now<d->probedelay?(d->probedelay - a->now):0),
usr.sbin/unbound/daemon/remote.c
3179
(int)d->isdnsseclame, (int)d->rec_lame, (int)d->lame_type_A,
usr.sbin/unbound/daemon/remote.c
3180
(int)d->lame_other)) {
usr.sbin/unbound/daemon/remote.c
3494
struct local_data* d;
usr.sbin/unbound/daemon/remote.c
3501
RBTREE_FOR(d, struct local_data*, &z->data) {
usr.sbin/unbound/daemon/remote.c
3502
for(p = d->rrsets; p; p = p->next) {
usr.sbin/unbound/daemon/remote.c
3503
struct packed_rrset_data* d =
usr.sbin/unbound/daemon/remote.c
3506
for(i=0; i<d->count + d->rrsig_count; i++) {
usr.sbin/unbound/daemon/remote.c
3582
struct rate_data* d = (struct rate_data*)e->data;
usr.sbin/unbound/daemon/remote.c
3585
int max = infra_rate_max(d, a->now, a->backoff);
usr.sbin/unbound/daemon/remote.c
3601
struct ip_rate_data* d = (struct ip_rate_data*)e->data;
usr.sbin/unbound/daemon/remote.c
3603
int max = infra_rate_max(d, a->now, a->backoff);
usr.sbin/unbound/dnscrypt/dnscrypt.c
1053
dnsc_shared_secrets_sizefunc(void *k, void* ATTR_UNUSED(d))
usr.sbin/unbound/dnscrypt/dnscrypt.c
1078
dnsc_shared_secrets_deldatafunc(void* d, void* ATTR_UNUSED(arg))
usr.sbin/unbound/dnscrypt/dnscrypt.c
1080
uint8_t* data = (uint8_t*)d;
usr.sbin/unbound/dnscrypt/dnscrypt.c
1091
dnsc_nonces_sizefunc(void *k, void* ATTR_UNUSED(d))
usr.sbin/unbound/dnscrypt/dnscrypt.c
1127
dnsc_nonces_deldatafunc(void* ATTR_UNUSED(d), void* ATTR_UNUSED(arg))
usr.sbin/unbound/dnscrypt/dnscrypt.c
116
uint8_t* d = malloc(crypto_box_BEFORENMBYTES);
usr.sbin/unbound/dnscrypt/dnscrypt.c
117
if(!k || !d) {
usr.sbin/unbound/dnscrypt/dnscrypt.c
119
free(d);
usr.sbin/unbound/dnscrypt/dnscrypt.c
122
memcpy(d, nmkey, crypto_box_BEFORENMBYTES);
usr.sbin/unbound/dnscrypt/dnscrypt.c
127
k->entry.data = d;
usr.sbin/unbound/dnscrypt/dnscrypt.c
130
d,
usr.sbin/unbound/dnscrypt/dnscrypt.h
137
size_t dnsc_shared_secrets_sizefunc(void *k, void *d);
usr.sbin/unbound/dnscrypt/dnscrypt.h
152
void dnsc_shared_secrets_deldatafunc(void* d, void* arg);
usr.sbin/unbound/dnscrypt/dnscrypt.h
157
size_t dnsc_nonces_sizefunc(void *k, void *d);
usr.sbin/unbound/dnscrypt/dnscrypt.h
172
void dnsc_nonces_deldatafunc(void* d, void* arg);
usr.sbin/unbound/dnstap/dnstap.c
126
dm->d.base.descriptor = &dnstap__dnstap__descriptor;
usr.sbin/unbound/dnstap/dnstap.c
128
dm->d.type = DNSTAP__DNSTAP__TYPE__MESSAGE;
usr.sbin/unbound/dnstap/dnstap.c
129
dm->d.message = &dm->m;
usr.sbin/unbound/dnstap/dnstap.c
132
dm->d.identity.data = (uint8_t *) env->identity;
usr.sbin/unbound/dnstap/dnstap.c
133
dm->d.identity.len = (size_t) env->len_identity;
usr.sbin/unbound/dnstap/dnstap.c
134
dm->d.has_identity = 1;
usr.sbin/unbound/dnstap/dnstap.c
137
dm->d.version.data = (uint8_t *) env->version;
usr.sbin/unbound/dnstap/dnstap.c
138
dm->d.version.len = (size_t) env->len_version;
usr.sbin/unbound/dnstap/dnstap.c
139
dm->d.has_version = 1;
usr.sbin/unbound/dnstap/dnstap.c
483
if (dt_pack(&dm.d, &dm.buf, &dm.len_buf))
usr.sbin/unbound/dnstap/dnstap.c
521
if (dt_pack(&dm.d, &dm.buf, &dm.len_buf))
usr.sbin/unbound/dnstap/dnstap.c
575
if (dt_pack(&dm.d, &dm.buf, &dm.len_buf))
usr.sbin/unbound/dnstap/dnstap.c
63
Dnstap__Dnstap d;
usr.sbin/unbound/dnstap/dnstap.c
637
if (dt_pack(&dm.d, &dm.buf, &dm.len_buf))
usr.sbin/unbound/dnstap/dnstap.c
68
dt_pack(const Dnstap__Dnstap *d, void **buf, size_t *sz)
usr.sbin/unbound/dnstap/dnstap.c
81
*sz = dnstap__dnstap__pack_to_buffer(d, (ProtobufCBuffer *) &sbuf);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
111
struct tap_data* d;
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1367
free(list->d);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1368
list->d = NULL;
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1377
free(list->d);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1378
list->d = NULL;
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1388
free(list->d);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1389
list->d = NULL;
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1391
while(list->d) list = list->next;
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1401
free(list->d);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1402
list->d = NULL;
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1430
free(list->d);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1431
list->d = NULL;
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
182
log_assert(!list->d);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
187
if(list->d) /* a tail entry still has data; return */
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
218
data->data_list->d = NULL;
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
227
struct tap_data* d)
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
234
entry->d = d;
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
235
d->data_list = entry;
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
246
if(e->d) {
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
247
tap_data_free(e->d, 0);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
248
e->d = NULL;
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
616
Dnstap__Dnstap* d = dnstap__dnstap__unpack(NULL, len, pkt);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
619
if(!d) {
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
623
if(d->base.descriptor != &dnstap__dnstap__descriptor) {
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
625
dnstap__dnstap__free_unpacked(d, NULL);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
628
if(d->type != DNSTAP__DNSTAP__TYPE__MESSAGE) {
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
630
dnstap__dnstap__free_unpacked(d, NULL);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
633
if(d->message) {
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
634
mtype = mtype_to_str(d->message->type);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
635
if(d->message->has_query_address)
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
636
maddr = str_of_addr(d->message->query_address);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
637
else if(d->message->has_response_address)
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
638
maddr = str_of_addr(d->message->response_address);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
639
if(d->message->has_query_message)
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
640
qinf = q_of_msg(d->message->query_message);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
641
else if(d->message->has_response_message)
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
642
qinf = q_of_msg(d->message->response_message);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
655
if(d->has_identity) {
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
656
id=possible_str(d->identity);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
658
if(d->has_version) {
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
659
vs=possible_str(d->version);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
667
if(d->message && d->message->has_query_message &&
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
668
d->message->query_message.data) {
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
670
d->message->query_message.data,
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
671
d->message->query_message.len);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
677
if(d->message && d->message->has_query_time_sec) {
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
678
char* qtv = tv_to_str(d->message->has_query_time_sec,
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
679
d->message->query_time_sec,
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
680
d->message->has_query_time_nsec,
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
681
d->message->query_time_nsec);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
687
if(d->message && d->message->has_response_message &&
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
688
d->message->response_message.data) {
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
690
d->message->response_message.data,
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
691
d->message->response_message.len);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
697
if(d->message && d->message->has_response_time_sec) {
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
698
char* rtv = tv_to_str(d->message->has_response_time_sec,
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
699
d->message->response_time_sec,
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
700
d->message->has_response_time_nsec,
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
701
d->message->response_time_nsec);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
709
dnstap__dnstap__free_unpacked(d, NULL);
usr.sbin/unbound/edns-subnet/subnetmod.c
67
subnet_data_delete(void *d, void *ATTR_UNUSED(arg))
usr.sbin/unbound/edns-subnet/subnetmod.c
70
r = (struct subnet_msg_cache_data*)d;
usr.sbin/unbound/edns-subnet/subnetmod.c
79
msg_cache_sizefunc(void *k, void *d)
usr.sbin/unbound/edns-subnet/subnetmod.c
82
struct subnet_msg_cache_data *r = (struct subnet_msg_cache_data*)d;
usr.sbin/unbound/edns-subnet/subnetmod.h
125
void subnet_data_delete(void* d, void* ATTR_UNUSED(arg));
usr.sbin/unbound/edns-subnet/subnetmod.h
126
size_t msg_cache_sizefunc(void* k, void* d);
usr.sbin/unbound/ipsecmod/ipsecmod-whitelist.c
111
whitelist_free(struct rbnode_type* n, void* ATTR_UNUSED(d))
usr.sbin/unbound/ipset/ipset.c
184
struct packed_rrset_data *d, const char* setname, int af,
usr.sbin/unbound/ipset/ipset.c
192
for (j = 0; j < d->count; j++) {
usr.sbin/unbound/ipset/ipset.c
193
rr_len = d->rr_len[j];
usr.sbin/unbound/ipset/ipset.c
194
rr_data = d->rr_data[j];
usr.sbin/unbound/ipset/ipset.c
234
struct packed_rrset_data *d;
usr.sbin/unbound/ipset/ipset.c
264
d = (struct packed_rrset_data*)rrset->entry.data;
usr.sbin/unbound/ipset/ipset.c
265
ipset_add_rrset_data(ie, d, setname, af, dname);
usr.sbin/unbound/iterator/iter_delegpt.c
488
struct packed_rrset_data* d=(struct packed_rrset_data*)ak->entry.data;
usr.sbin/unbound/iterator/iter_delegpt.c
495
for(i=0; i<d->count; i++) {
usr.sbin/unbound/iterator/iter_delegpt.c
496
if(d->rr_len[i] != 2 + INET_SIZE)
usr.sbin/unbound/iterator/iter_delegpt.c
498
memmove(&sa.sin_addr, d->rr_data[i]+2, INET_SIZE);
usr.sbin/unbound/iterator/iter_delegpt.c
501
len, (d->security==sec_status_bogus), lame, additions))
usr.sbin/unbound/iterator/iter_delegpt.c
511
struct packed_rrset_data* d=(struct packed_rrset_data*)ak->entry.data;
usr.sbin/unbound/iterator/iter_delegpt.c
518
for(i=0; i<d->count; i++) {
usr.sbin/unbound/iterator/iter_delegpt.c
519
if(d->rr_len[i] != 2 + INET6_SIZE) /* rdatalen + len of IP6 */
usr.sbin/unbound/iterator/iter_delegpt.c
521
memmove(&sa.sin6_addr, d->rr_data[i]+2, INET6_SIZE);
usr.sbin/unbound/iterator/iter_delegpt.c
524
len, (d->security==sec_status_bogus), lame, additions))
usr.sbin/unbound/iterator/iter_priv.c
221
uint8_t* d, uint16_t data_len, struct sockaddr_storage* addr,
usr.sbin/unbound/iterator/iter_priv.c
231
memmove(&sa.sin_addr, d, LDNS_IP4ADDRLEN);
usr.sbin/unbound/iterator/iter_priv.c
236
d += LDNS_IP4ADDRLEN;
usr.sbin/unbound/iterator/iter_priv.c
254
uint8_t* d, uint16_t data_len, struct sockaddr_storage* addr,
usr.sbin/unbound/iterator/iter_priv.c
264
memmove(&sa.sin6_addr, d, LDNS_IP6ADDRLEN);
usr.sbin/unbound/iterator/iter_priv.c
269
d += LDNS_IP6ADDRLEN;
usr.sbin/unbound/iterator/iter_priv.c
290
uint8_t* d = rr->ttl_data;
usr.sbin/unbound/iterator/iter_priv.c
293
d += 4; /* skip TTL */
usr.sbin/unbound/iterator/iter_priv.c
294
rdatalen = sldns_read_uint16(d); /* read rdata length */
usr.sbin/unbound/iterator/iter_priv.c
295
d += 2;
usr.sbin/unbound/iterator/iter_priv.c
299
d += 2; /* skip priority */
usr.sbin/unbound/iterator/iter_priv.c
302
sldns_buffer_set_position(pkt, (size_t)(d - sldns_buffer_begin(pkt)));
usr.sbin/unbound/iterator/iter_priv.c
311
d += dname_compr_len; /* skip target */
usr.sbin/unbound/iterator/iter_priv.c
315
svcparamkey = sldns_read_uint16(d);
usr.sbin/unbound/iterator/iter_priv.c
316
data_len = sldns_read_uint16(d+2);
usr.sbin/unbound/iterator/iter_priv.c
317
d += 4;
usr.sbin/unbound/iterator/iter_priv.c
331
if(svcb_ipv4hint_contains_priv_addr(priv, d, data_len,
usr.sbin/unbound/iterator/iter_priv.c
335
if(svcb_ipv6hint_contains_priv_addr(priv, d, data_len,
usr.sbin/unbound/iterator/iter_priv.c
339
d += data_len;
usr.sbin/unbound/iterator/iter_scrub.c
847
struct packed_rrset_data* d;
usr.sbin/unbound/iterator/iter_scrub.c
859
d = (struct packed_rrset_data*)k->entry.data;
usr.sbin/unbound/iterator/iter_scrub.c
860
packed_rrset_ttl_add(d, now);
usr.sbin/unbound/iterator/iter_utils.c
129
caps_free(struct rbnode_type* n, void* ATTR_UNUSED(d))
usr.sbin/unbound/iterator/iter_utils.c
1434
void iter_dec_attempts(struct delegpt* dp, int d, int outbound_msg_retry)
usr.sbin/unbound/iterator/iter_utils.c
1442
if(a->attempts > d)
usr.sbin/unbound/iterator/iter_utils.c
1443
a->attempts -= d;
usr.sbin/unbound/iterator/iter_utils.h
373
void iter_dec_attempts(struct delegpt* dp, int d, int outbound_msg_retry);
usr.sbin/unbound/iterator/iterator.c
4002
struct ub_packed_rrset_key** dest, **d;
usr.sbin/unbound/iterator/iterator.c
4018
d = dest;
usr.sbin/unbound/iterator/iterator.c
4042
to->rep->rrsets = d;
usr.sbin/unbound/libunbound/libunbound.c
534
ub_ctx_debuglevel(struct ub_ctx* ctx, int d)
usr.sbin/unbound/libunbound/libunbound.c
537
verbosity = d;
usr.sbin/unbound/libunbound/libunbound.c
538
ctx->env->cfg->verbosity = d;
usr.sbin/unbound/libunbound/libworker.c
503
struct packed_rrset_data* d =
usr.sbin/unbound/libunbound/libworker.c
506
if((int)d->ttl < res->ttl)
usr.sbin/unbound/libunbound/libworker.c
507
res->ttl = (int)d->ttl;
usr.sbin/unbound/libunbound/unbound.h
472
int ub_ctx_debuglevel(struct ub_ctx* ctx, int d);
usr.sbin/unbound/respip/respip.c
499
struct packed_rrset_data* d;
usr.sbin/unbound/respip/respip.c
534
d = regional_alloc_zero(region, dsize);
usr.sbin/unbound/respip/respip.c
535
if(!d)
usr.sbin/unbound/respip/respip.c
537
*d = *data;
usr.sbin/unbound/respip/respip.c
538
d->rrsig_count = 0;
usr.sbin/unbound/respip/respip.c
539
ck->entry.data = d;
usr.sbin/unbound/respip/respip.c
542
d->rr_len = (size_t*)((uint8_t*)d + sizeof(struct packed_rrset_data));
usr.sbin/unbound/respip/respip.c
543
d->rr_data = (uint8_t**)&(d->rr_len[d->count]);
usr.sbin/unbound/respip/respip.c
544
d->rr_ttl = (time_t*)&(d->rr_data[d->count]);
usr.sbin/unbound/respip/respip.c
545
nextrdata = (uint8_t*)&(d->rr_ttl[d->count]);
usr.sbin/unbound/respip/respip.c
546
for(i=0; i<d->count; i++) {
usr.sbin/unbound/respip/respip.c
547
d->rr_len[i] = data->rr_len[i];
usr.sbin/unbound/respip/respip.c
548
d->rr_ttl[i] = data->rr_ttl[i];
usr.sbin/unbound/respip/respip.c
549
d->rr_data[i] = nextrdata;
usr.sbin/unbound/respip/respip.c
550
memcpy(d->rr_data[i], data->rr_data[i], data->rr_len[i]);
usr.sbin/unbound/respip/respip.c
551
nextrdata += d->rr_len[i];
usr.sbin/unbound/services/authzone.c
1000
d->ttl = d->rr_ttl[j];
usr.sbin/unbound/services/authzone.c
1006
rrset->data = d;
usr.sbin/unbound/services/authzone.c
166
struct packed_rrset_data* d = (struct packed_rrset_data*)
usr.sbin/unbound/services/authzone.c
168
return d->ttl;
usr.sbin/unbound/services/authzone.c
2007
struct packed_rrset_data* d;
usr.sbin/unbound/services/authzone.c
2023
d = soa->data;
usr.sbin/unbound/services/authzone.c
2024
*serial = sldns_read_uint32(d->rr_data[0]+(d->rr_len[0]-20));
usr.sbin/unbound/services/authzone.c
2034
struct packed_rrset_data* d;
usr.sbin/unbound/services/authzone.c
2052
d = soa->data;
usr.sbin/unbound/services/authzone.c
2054
xfr->serial = sldns_read_uint32(d->rr_data[0]+(d->rr_len[0]-20));
usr.sbin/unbound/services/authzone.c
2055
xfr->refresh = sldns_read_uint32(d->rr_data[0]+(d->rr_len[0]-16));
usr.sbin/unbound/services/authzone.c
2056
xfr->retry = sldns_read_uint32(d->rr_data[0]+(d->rr_len[0]-12));
usr.sbin/unbound/services/authzone.c
2057
xfr->expiry = sldns_read_uint32(d->rr_data[0]+(d->rr_len[0]-8));
usr.sbin/unbound/services/authzone.c
2567
struct packed_rrset_data* d = rrset->data;
usr.sbin/unbound/services/authzone.c
2569
if(!d) return 0;
usr.sbin/unbound/services/authzone.c
2570
for(i=0; i<d->count; i++) {
usr.sbin/unbound/services/authzone.c
2574
if(d->rr_len[i] < 2+offset)
usr.sbin/unbound/services/authzone.c
2576
if(!(dlen = dname_valid(d->rr_data[i]+2+offset,
usr.sbin/unbound/services/authzone.c
2577
d->rr_len[i]-2-offset)))
usr.sbin/unbound/services/authzone.c
2579
domain = az_find_name(z, d->rr_data[i]+2+offset, dlen);
usr.sbin/unbound/services/authzone.c
2601
struct packed_rrset_data* d;
usr.sbin/unbound/services/authzone.c
2613
d = (struct packed_rrset_data*)msg->rep->rrsets[msg->rep->rrset_count-1]->entry.data;
usr.sbin/unbound/services/authzone.c
2615
if(d->count == 0) return 0;
usr.sbin/unbound/services/authzone.c
2616
if(d->rr_len[0] < 2+4) return 0;
usr.sbin/unbound/services/authzone.c
2617
minimum = (time_t)sldns_read_uint32(d->rr_data[0]+(d->rr_len[0]-4));
usr.sbin/unbound/services/authzone.c
2618
minimum = d->ttl<minimum?d->ttl:minimum;
usr.sbin/unbound/services/authzone.c
2619
d->ttl = minimum;
usr.sbin/unbound/services/authzone.c
2620
for(i=0; i < d->count + d->rrsig_count; i++)
usr.sbin/unbound/services/authzone.c
2621
d->rr_ttl[i] = minimum;
usr.sbin/unbound/services/authzone.c
2688
struct packed_rrset_data* d;
usr.sbin/unbound/services/authzone.c
2726
d = (struct packed_rrset_data*)regional_alloc_zero(region,
usr.sbin/unbound/services/authzone.c
2730
if(!d)
usr.sbin/unbound/services/authzone.c
2732
(*cname)->entry.data = d;
usr.sbin/unbound/services/authzone.c
2733
d->ttl = dname->data->ttl; /* RFC6672: synth CNAME TTL == DNAME TTL */
usr.sbin/unbound/services/authzone.c
2734
d->count = 1;
usr.sbin/unbound/services/authzone.c
2735
d->rrsig_count = 0;
usr.sbin/unbound/services/authzone.c
2736
d->trust = rrset_trust_ans_noAA;
usr.sbin/unbound/services/authzone.c
2737
d->rr_len = (size_t*)((uint8_t*)d +
usr.sbin/unbound/services/authzone.c
2739
d->rr_len[0] = newlen + sizeof(uint16_t);
usr.sbin/unbound/services/authzone.c
2740
packed_rrset_ptr_fixup(d);
usr.sbin/unbound/services/authzone.c
2741
d->rr_ttl[0] = d->ttl;
usr.sbin/unbound/services/authzone.c
2742
sldns_write_uint16(d->rr_data[0], newlen);
usr.sbin/unbound/services/authzone.c
2743
memmove(d->rr_data[0] + sizeof(uint16_t), buf, newlen);
usr.sbin/unbound/services/authzone.c
3195
struct packed_rrset_data* d)
usr.sbin/unbound/services/authzone.c
3204
if(d->count == 0) break; /* no CNAME */
usr.sbin/unbound/services/authzone.c
3205
if(d->rr_len[0] < 2+1) break; /* too small */
usr.sbin/unbound/services/authzone.c
3206
if((clen=dname_valid(d->rr_data[0]+2, d->rr_len[0]-2))==0)
usr.sbin/unbound/services/authzone.c
3208
if(!dname_subdomain_c(d->rr_data[0]+2, z->name))
usr.sbin/unbound/services/authzone.c
3210
if((node = az_find_name(z, d->rr_data[0]+2, clen))==NULL)
usr.sbin/unbound/services/authzone.c
3221
d = rrset->data;
usr.sbin/unbound/services/authzone.c
688
az_rrset_find_rrsig(struct packed_rrset_data* d, uint8_t* rdata, size_t len,
usr.sbin/unbound/services/authzone.c
692
for(i=d->count; i<d->count + d->rrsig_count; i++) {
usr.sbin/unbound/services/authzone.c
693
if(d->rr_len[i] != len)
usr.sbin/unbound/services/authzone.c
695
if(memcmp(d->rr_data[i], rdata, len) == 0) {
usr.sbin/unbound/services/authzone.c
705
rdata_duplicate(struct packed_rrset_data* d, uint8_t* rdata, size_t len)
usr.sbin/unbound/services/authzone.c
708
for(i=0; i<d->count + d->rrsig_count; i++) {
usr.sbin/unbound/services/authzone.c
709
if(d->rr_len[i] != len)
usr.sbin/unbound/services/authzone.c
711
if(memcmp(d->rr_data[i], rdata, len) == 0)
usr.sbin/unbound/services/authzone.c
735
struct packed_rrset_data* d, *old = rrset->data;
usr.sbin/unbound/services/authzone.c
739
d = (struct packed_rrset_data*)calloc(1, packed_rrset_sizeof(old) - (
usr.sbin/unbound/services/authzone.c
742
if(!d) {
usr.sbin/unbound/services/authzone.c
746
d->ttl = old->ttl;
usr.sbin/unbound/services/authzone.c
747
d->count = old->count;
usr.sbin/unbound/services/authzone.c
748
d->rrsig_count = old->rrsig_count;
usr.sbin/unbound/services/authzone.c
749
if(index < d->count) d->count--;
usr.sbin/unbound/services/authzone.c
750
else d->rrsig_count--;
usr.sbin/unbound/services/authzone.c
751
d->trust = old->trust;
usr.sbin/unbound/services/authzone.c
752
d->security = old->security;
usr.sbin/unbound/services/authzone.c
755
d->rr_len = (size_t*)((uint8_t*)d +
usr.sbin/unbound/services/authzone.c
758
memmove(d->rr_len, old->rr_len, (index)*sizeof(size_t));
usr.sbin/unbound/services/authzone.c
760
memmove(&d->rr_len[index], &old->rr_len[index+1],
usr.sbin/unbound/services/authzone.c
762
packed_rrset_ptr_fixup(d);
usr.sbin/unbound/services/authzone.c
766
memmove(d->rr_ttl, old->rr_ttl, (index)*sizeof(time_t));
usr.sbin/unbound/services/authzone.c
768
memmove(&d->rr_ttl[index], &old->rr_ttl[index+1],
usr.sbin/unbound/services/authzone.c
772
for(i=0; i<d->count+d->rrsig_count; i++) {
usr.sbin/unbound/services/authzone.c
776
memmove(d->rr_data[i], old->rr_data[oldi], d->rr_len[i]);
usr.sbin/unbound/services/authzone.c
780
if(d->count + d->rrsig_count > 0)
usr.sbin/unbound/services/authzone.c
781
d->ttl = d->rr_ttl[0];
usr.sbin/unbound/services/authzone.c
782
for(i=0; i<d->count+d->rrsig_count; i++) {
usr.sbin/unbound/services/authzone.c
783
if(d->rr_ttl[i] < d->ttl)
usr.sbin/unbound/services/authzone.c
784
d->ttl = d->rr_ttl[i];
usr.sbin/unbound/services/authzone.c
788
rrset->data = d;
usr.sbin/unbound/services/authzone.c
798
struct packed_rrset_data* d, *old = rrset->data;
usr.sbin/unbound/services/authzone.c
801
d = (struct packed_rrset_data*)calloc(1, packed_rrset_sizeof(old)
usr.sbin/unbound/services/authzone.c
804
if(!d) {
usr.sbin/unbound/services/authzone.c
809
memcpy(d, old, sizeof(struct packed_rrset_data));
usr.sbin/unbound/services/authzone.c
811
d->count++;
usr.sbin/unbound/services/authzone.c
813
d->rrsig_count++;
usr.sbin/unbound/services/authzone.c
816
total = d->count + d->rrsig_count;
usr.sbin/unbound/services/authzone.c
818
d->rr_len = (size_t*)((uint8_t*)d +
usr.sbin/unbound/services/authzone.c
821
memmove(d->rr_len, old->rr_len, old->count*sizeof(size_t));
usr.sbin/unbound/services/authzone.c
823
memmove(d->rr_len+d->count, old->rr_len+old->count,
usr.sbin/unbound/services/authzone.c
826
d->rr_len[d->count-1] = rdatalen;
usr.sbin/unbound/services/authzone.c
827
else d->rr_len[total-1] = rdatalen;
usr.sbin/unbound/services/authzone.c
828
packed_rrset_ptr_fixup(d);
usr.sbin/unbound/services/authzone.c
829
if((time_t)rr_ttl < d->ttl)
usr.sbin/unbound/services/authzone.c
830
d->ttl = rr_ttl;
usr.sbin/unbound/services/authzone.c
834
memmove(d->rr_ttl, old->rr_ttl, old->count*sizeof(time_t));
usr.sbin/unbound/services/authzone.c
837
memmove(d->rr_data[0], old->rr_data[0],
usr.sbin/unbound/services/authzone.c
842
memmove(d->rr_ttl+d->count, old->rr_ttl+old->count,
usr.sbin/unbound/services/authzone.c
844
memmove(d->rr_data[d->count], old->rr_data[old->count],
usr.sbin/unbound/services/authzone.c
851
d->rr_ttl[d->count-1] = rr_ttl;
usr.sbin/unbound/services/authzone.c
852
memmove(d->rr_data[d->count-1], rdata, rdatalen);
usr.sbin/unbound/services/authzone.c
854
d->rr_ttl[total-1] = rr_ttl;
usr.sbin/unbound/services/authzone.c
855
memmove(d->rr_data[total-1], rdata, rdatalen);
usr.sbin/unbound/services/authzone.c
858
rrset->data = d;
usr.sbin/unbound/services/authzone.c
871
struct packed_rrset_data* d;
usr.sbin/unbound/services/authzone.c
879
d = (struct packed_rrset_data*)calloc(1,
usr.sbin/unbound/services/authzone.c
882
if(!d) {
usr.sbin/unbound/services/authzone.c
887
rrset->data = d;
usr.sbin/unbound/services/authzone.c
888
d->ttl = rr_ttl;
usr.sbin/unbound/services/authzone.c
889
d->trust = rrset_trust_prim_noglue;
usr.sbin/unbound/services/authzone.c
890
d->rr_len = (size_t*)((uint8_t*)d + sizeof(struct packed_rrset_data));
usr.sbin/unbound/services/authzone.c
891
d->rr_data = (uint8_t**)&(d->rr_len[1]);
usr.sbin/unbound/services/authzone.c
892
d->rr_ttl = (time_t*)&(d->rr_data[1]);
usr.sbin/unbound/services/authzone.c
893
d->rr_data[0] = (uint8_t*)&(d->rr_ttl[1]);
usr.sbin/unbound/services/authzone.c
896
d->rr_len[0] = rdatalen;
usr.sbin/unbound/services/authzone.c
897
d->rr_ttl[0] = rr_ttl;
usr.sbin/unbound/services/authzone.c
898
memmove(d->rr_data[0], rdata, rdatalen);
usr.sbin/unbound/services/authzone.c
899
d->count++;
usr.sbin/unbound/services/authzone.c
920
struct packed_rrset_data* d = rrsig->data;
usr.sbin/unbound/services/authzone.c
923
log_assert(d && rrsig->type == LDNS_RR_TYPE_RRSIG);
usr.sbin/unbound/services/authzone.c
924
for(i=0; i<d->count+d->rrsig_count; i++) {
usr.sbin/unbound/services/authzone.c
925
if(rrsig_rdata_get_type_covered(d->rr_data[i],
usr.sbin/unbound/services/authzone.c
926
d->rr_len[i]) == rr_type) {
usr.sbin/unbound/services/authzone.c
928
(*sigsz) += d->rr_len[i];
usr.sbin/unbound/services/authzone.c
942
struct packed_rrset_data* d, *sigd;
usr.sbin/unbound/services/authzone.c
954
d = (struct packed_rrset_data*)calloc(1, packed_rrset_sizeof(old)
usr.sbin/unbound/services/authzone.c
957
if(!d) {
usr.sbin/unbound/services/authzone.c
963
memcpy(d, old, sizeof(struct packed_rrset_data));
usr.sbin/unbound/services/authzone.c
964
d->rrsig_count += sigs;
usr.sbin/unbound/services/authzone.c
966
d->rr_len = (size_t*)((uint8_t*)d +
usr.sbin/unbound/services/authzone.c
969
memmove(d->rr_len, old->rr_len, total*sizeof(size_t));
usr.sbin/unbound/services/authzone.c
970
j = d->count+d->rrsig_count-sigs;
usr.sbin/unbound/services/authzone.c
974
d->rr_len[j] = sigold->rr_len[i];
usr.sbin/unbound/services/authzone.c
978
packed_rrset_ptr_fixup(d);
usr.sbin/unbound/services/authzone.c
982
memmove(d->rr_ttl, old->rr_ttl, total*sizeof(time_t));
usr.sbin/unbound/services/authzone.c
985
memmove(d->rr_data[0], old->rr_data[0],
usr.sbin/unbound/services/authzone.c
991
j = d->count+d->rrsig_count-sigs;
usr.sbin/unbound/services/authzone.c
996
d->rr_ttl[j] = sigold->rr_ttl[i];
usr.sbin/unbound/services/authzone.c
997
memmove(d->rr_data[j], sigold->rr_data[i],
usr.sbin/unbound/services/authzone.c
999
if(d->rr_ttl[j] < d->ttl)
usr.sbin/unbound/services/cache/dns.c
1047
struct packed_rrset_data *d = (struct packed_rrset_data*)
usr.sbin/unbound/services/cache/dns.c
1049
if(d->trust != rrset_trust_add_noAA &&
usr.sbin/unbound/services/cache/dns.c
1050
d->trust != rrset_trust_add_AA &&
usr.sbin/unbound/services/cache/dns.c
1052
(d->trust != rrset_trust_auth_noAA
usr.sbin/unbound/services/cache/dns.c
1053
&& d->trust != rrset_trust_auth_AA) )) {
usr.sbin/unbound/services/cache/dns.c
295
struct packed_rrset_data* d = rrset->entry.data;
usr.sbin/unbound/services/cache/dns.c
298
UPDATE_TTL_FROM_RRSET(msg->rep->ttl, d->ttl);
usr.sbin/unbound/services/cache/dns.c
481
struct packed_rrset_data* d = rrset->entry.data;
usr.sbin/unbound/services/cache/dns.c
484
UPDATE_TTL_FROM_RRSET(msg->rep->ttl, d->ttl);
usr.sbin/unbound/services/cache/dns.c
529
struct packed_rrset_data* d = rrset->entry.data;
usr.sbin/unbound/services/cache/dns.c
534
UPDATE_TTL_FROM_RRSET(msg->rep->ttl, d->ttl);
usr.sbin/unbound/services/cache/dns.c
542
struct packed_rrset_data* d = rrset->entry.data;
usr.sbin/unbound/services/cache/dns.c
547
UPDATE_TTL_FROM_RRSET(msg->rep->ttl, d->ttl);
usr.sbin/unbound/services/cache/dns.c
681
struct packed_rrset_data* d;
usr.sbin/unbound/services/cache/dns.c
688
d = msg->rep->rrsets[i]->entry.data;
usr.sbin/unbound/services/cache/dns.c
689
UPDATE_TTL_FROM_RRSET(msg->rep->ttl, d->ttl);
usr.sbin/unbound/services/cache/dns.c
747
struct packed_rrset_data* d = (struct packed_rrset_data*)
usr.sbin/unbound/services/cache/dns.c
749
if(TTL_IS_EXPIRED(d->ttl, now))
usr.sbin/unbound/services/cache/dns.c
757
msg->rep->ttl = d->ttl - now;
usr.sbin/unbound/services/cache/dns.c
780
struct packed_rrset_data* newd, *d = (struct packed_rrset_data*)
usr.sbin/unbound/services/cache/dns.c
785
if(TTL_IS_EXPIRED(d->ttl, now)) {
usr.sbin/unbound/services/cache/dns.c
791
rr_ttl = d->ttl - now;
usr.sbin/unbound/services/cache/dns.c
795
*sec_status = d->security;
usr.sbin/unbound/services/cache/dns.c
909
struct packed_rrset_data *d;
usr.sbin/unbound/services/cache/dns.c
914
d = (struct packed_rrset_data*)rrset->entry.data;
usr.sbin/unbound/services/cache/dns.c
915
if(d->trust == rrset_trust_add_noAA ||
usr.sbin/unbound/services/cache/dns.c
916
d->trust == rrset_trust_auth_noAA ||
usr.sbin/unbound/services/cache/dns.c
917
d->trust == rrset_trust_add_AA ||
usr.sbin/unbound/services/cache/dns.c
918
d->trust == rrset_trust_auth_AA) {
usr.sbin/unbound/services/cache/infra.c
1006
free(d);
usr.sbin/unbound/services/cache/infra.c
1012
k->entry.data = d;
usr.sbin/unbound/services/cache/infra.c
1013
d->qps[0] = 1;
usr.sbin/unbound/services/cache/infra.c
1014
d->timestamp[0] = timenow;
usr.sbin/unbound/services/cache/infra.c
1015
slabhash_insert(infra->domain_rates, h, &k->entry, d, NULL);
usr.sbin/unbound/services/cache/infra.c
1025
struct ip_rate_data* d = (struct ip_rate_data*)calloc(1, sizeof(*d));
usr.sbin/unbound/services/cache/infra.c
1026
if(!k || !d) {
usr.sbin/unbound/services/cache/infra.c
1028
free(d);
usr.sbin/unbound/services/cache/infra.c
1036
k->entry.data = d;
usr.sbin/unbound/services/cache/infra.c
1037
d->qps[0] = 1;
usr.sbin/unbound/services/cache/infra.c
1038
d->timestamp[0] = timenow;
usr.sbin/unbound/services/cache/infra.c
1039
d->mesh_wait = mesh_wait;
usr.sbin/unbound/services/cache/infra.c
1040
slabhash_insert(infra->client_ip_rates, h, &k->entry, d, NULL);
usr.sbin/unbound/services/cache/infra.c
1047
struct rate_data* d = (struct rate_data*)data;
usr.sbin/unbound/services/cache/infra.c
1050
if(d->timestamp[i] == t)
usr.sbin/unbound/services/cache/infra.c
1051
return &(d->qps[i]);
usr.sbin/unbound/services/cache/infra.c
1057
if(d->timestamp[i] < d->timestamp[oldest])
usr.sbin/unbound/services/cache/infra.c
1060
d->timestamp[oldest] = t;
usr.sbin/unbound/services/cache/infra.c
1061
d->qps[oldest] = 0;
usr.sbin/unbound/services/cache/infra.c
1062
return &(d->qps[oldest]);
usr.sbin/unbound/services/cache/infra.c
1081
struct rate_data* d = (struct rate_data*)data;
usr.sbin/unbound/services/cache/infra.c
1085
if(now-d->timestamp[i] <= RATE_WINDOW &&
usr.sbin/unbound/services/cache/infra.c
1086
d->qps[i] > max) {
usr.sbin/unbound/services/cache/infra.c
1087
max = d->qps[i];
usr.sbin/unbound/services/cache/infra.c
1090
if(now == d->timestamp[i]) {
usr.sbin/unbound/services/cache/infra.c
1091
return d->qps[i];
usr.sbin/unbound/services/cache/infra.c
117
infra_deldatafunc(void* d, void* ATTR_UNUSED(arg))
usr.sbin/unbound/services/cache/infra.c
119
struct infra_data* data = (struct infra_data*)d;
usr.sbin/unbound/services/cache/infra.c
124
rate_sizefunc(void* k, void* ATTR_UNUSED(d))
usr.sbin/unbound/services/cache/infra.c
1281
struct rate_data* d = (struct rate_data*)entry->data;
usr.sbin/unbound/services/cache/infra.c
1282
int mesh_wait = d->mesh_wait;
usr.sbin/unbound/services/cache/infra.c
1316
struct rate_data* d = (struct rate_data*)entry->data;
usr.sbin/unbound/services/cache/infra.c
1317
d->mesh_wait++;
usr.sbin/unbound/services/cache/infra.c
1337
struct rate_data* d = (struct rate_data*)entry->data;
usr.sbin/unbound/services/cache/infra.c
1338
if(d->mesh_wait > 0)
usr.sbin/unbound/services/cache/infra.c
1339
d->mesh_wait--;
usr.sbin/unbound/services/cache/infra.c
156
rate_deldatafunc(void* d, void* ATTR_UNUSED(arg))
usr.sbin/unbound/services/cache/infra.c
158
struct rate_data* data = (struct rate_data*)d;
usr.sbin/unbound/services/cache/infra.c
169
struct domain_limit_data* d;
usr.sbin/unbound/services/cache/infra.c
180
d = (struct domain_limit_data*)name_tree_find(domain_limits, nm,
usr.sbin/unbound/services/cache/infra.c
182
if(d) {
usr.sbin/unbound/services/cache/infra.c
184
return d;
usr.sbin/unbound/services/cache/infra.c
188
d = (struct domain_limit_data*)calloc(1, sizeof(*d));
usr.sbin/unbound/services/cache/infra.c
189
if(!d) {
usr.sbin/unbound/services/cache/infra.c
193
d->node.node.key = &d->node;
usr.sbin/unbound/services/cache/infra.c
194
d->node.name = nm;
usr.sbin/unbound/services/cache/infra.c
195
d->node.len = nmlen;
usr.sbin/unbound/services/cache/infra.c
196
d->node.labs = labs;
usr.sbin/unbound/services/cache/infra.c
197
d->node.dclass = LDNS_RR_CLASS_IN;
usr.sbin/unbound/services/cache/infra.c
198
d->lim = -1;
usr.sbin/unbound/services/cache/infra.c
199
d->below = -1;
usr.sbin/unbound/services/cache/infra.c
200
if(!name_tree_insert(domain_limits, &d->node, nm, nmlen, labs,
usr.sbin/unbound/services/cache/infra.c
204
free(d);
usr.sbin/unbound/services/cache/infra.c
207
return d;
usr.sbin/unbound/services/cache/infra.c
215
struct domain_limit_data* d;
usr.sbin/unbound/services/cache/infra.c
217
d = domain_limit_findcreate(domain_limits, p->str);
usr.sbin/unbound/services/cache/infra.c
218
if(!d)
usr.sbin/unbound/services/cache/infra.c
220
d->lim = atoi(p->str2);
usr.sbin/unbound/services/cache/infra.c
223
d = domain_limit_findcreate(domain_limits, p->str);
usr.sbin/unbound/services/cache/infra.c
224
if(!d)
usr.sbin/unbound/services/cache/infra.c
226
d->below = atoi(p->str2);
usr.sbin/unbound/services/cache/infra.c
249
struct wait_limit_netblock_info* d;
usr.sbin/unbound/services/cache/infra.c
257
d = (struct wait_limit_netblock_info*)addr_tree_find(tree, &addr,
usr.sbin/unbound/services/cache/infra.c
259
if(d)
usr.sbin/unbound/services/cache/infra.c
260
return d;
usr.sbin/unbound/services/cache/infra.c
263
d = (struct wait_limit_netblock_info*)calloc(1, sizeof(*d));
usr.sbin/unbound/services/cache/infra.c
264
if(!d)
usr.sbin/unbound/services/cache/infra.c
266
d->limit = -1;
usr.sbin/unbound/services/cache/infra.c
267
if(!addr_tree_insert(tree, &d->node, &addr, addrlen, net)) {
usr.sbin/unbound/services/cache/infra.c
269
free(d);
usr.sbin/unbound/services/cache/infra.c
272
return d;
usr.sbin/unbound/services/cache/infra.c
282
struct wait_limit_netblock_info* d;
usr.sbin/unbound/services/cache/infra.c
284
d = wait_limit_netblock_findcreate(wait_limits_netblock,
usr.sbin/unbound/services/cache/infra.c
286
if(!d)
usr.sbin/unbound/services/cache/infra.c
288
d->limit = atoi(p->str2);
usr.sbin/unbound/services/cache/infra.c
291
d = wait_limit_netblock_findcreate(wait_limits_cookie_netblock,
usr.sbin/unbound/services/cache/infra.c
293
if(!d)
usr.sbin/unbound/services/cache/infra.c
295
d->limit = atoi(p->str2);
usr.sbin/unbound/services/cache/infra.c
304
struct wait_limit_netblock_info* d;
usr.sbin/unbound/services/cache/infra.c
305
d = wait_limit_netblock_findcreate(tree, str);
usr.sbin/unbound/services/cache/infra.c
306
if(!d)
usr.sbin/unbound/services/cache/infra.c
308
d->limit = limit;
usr.sbin/unbound/services/cache/infra.c
82
infra_sizefunc(void* k, void* ATTR_UNUSED(d))
usr.sbin/unbound/services/cache/infra.c
921
struct domain_limit_data* d = (struct domain_limit_data*)
usr.sbin/unbound/services/cache/infra.c
924
if(!d) return infra_dp_ratelimit;
usr.sbin/unbound/services/cache/infra.c
926
if(d->node.labs == labs && d->lim != -1)
usr.sbin/unbound/services/cache/infra.c
927
return d->lim; /* exact match */
usr.sbin/unbound/services/cache/infra.c
930
if(d->node.labs == labs)
usr.sbin/unbound/services/cache/infra.c
931
d = (struct domain_limit_data*)d->node.parent;
usr.sbin/unbound/services/cache/infra.c
932
while(d) {
usr.sbin/unbound/services/cache/infra.c
933
if(d->below != -1)
usr.sbin/unbound/services/cache/infra.c
934
return d->below;
usr.sbin/unbound/services/cache/infra.c
935
d = (struct domain_limit_data*)d->node.parent;
usr.sbin/unbound/services/cache/infra.c
940
size_t ip_rate_sizefunc(void* k, void* ATTR_UNUSED(d))
usr.sbin/unbound/services/cache/infra.c
996
struct rate_data* d = (struct rate_data*)calloc(1, sizeof(*d));
usr.sbin/unbound/services/cache/infra.c
997
if(!k || !d) {
usr.sbin/unbound/services/cache/infra.c
999
free(d);
usr.sbin/unbound/services/cache/infra.h
471
size_t infra_sizefunc(void* k, void* d);
usr.sbin/unbound/services/cache/infra.h
480
void infra_deldatafunc(void* d, void* arg);
usr.sbin/unbound/services/cache/infra.h
483
size_t rate_sizefunc(void* k, void* d);
usr.sbin/unbound/services/cache/infra.h
492
void rate_deldatafunc(void* d, void* arg);
usr.sbin/unbound/services/cache/infra.h
495
size_t ip_rate_sizefunc(void* k, void* d);
usr.sbin/unbound/services/cache/infra.h
501
void ip_rate_delkeyfunc(void* d, void* arg);
usr.sbin/unbound/services/cache/rrset.c
270
struct packed_rrset_data* d = (struct packed_rrset_data*)
usr.sbin/unbound/services/cache/rrset.c
273
if(!d || !d->rrsig_count)
usr.sbin/unbound/services/cache/rrset.c
275
for(i=0; i<d->rrsig_count; i++) {
usr.sbin/unbound/services/cache/rrset.c
278
rrsig_get_signer(d->rr_data[d->count+i], d->rr_len[d->count+i],
usr.sbin/unbound/services/cache/rrset.c
377
struct packed_rrset_data* d;
usr.sbin/unbound/services/cache/rrset.c
382
d = ref[i].key->entry.data;
usr.sbin/unbound/services/cache/rrset.c
384
TTL_IS_EXPIRED(d->ttl, timenow)) {
usr.sbin/unbound/services/listen_dnsport.c
3664
struct doq_conn* d = (struct doq_conn*)key2;
usr.sbin/unbound/services/listen_dnsport.c
3674
if(c->key.paddr.addrlen != d->key.paddr.addrlen) {
usr.sbin/unbound/services/listen_dnsport.c
3675
if(c->key.paddr.addrlen < d->key.paddr.addrlen)
usr.sbin/unbound/services/listen_dnsport.c
3679
if((r=memcmp(&c->key.paddr.addr, &d->key.paddr.addr,
usr.sbin/unbound/services/listen_dnsport.c
3682
if(c->key.paddr.localaddrlen != d->key.paddr.localaddrlen) {
usr.sbin/unbound/services/listen_dnsport.c
3683
if(c->key.paddr.localaddrlen < d->key.paddr.localaddrlen)
usr.sbin/unbound/services/listen_dnsport.c
3687
if((r=memcmp(&c->key.paddr.localaddr, &d->key.paddr.localaddr,
usr.sbin/unbound/services/listen_dnsport.c
3690
if(c->key.paddr.ifindex != d->key.paddr.ifindex) {
usr.sbin/unbound/services/listen_dnsport.c
3691
if(c->key.paddr.ifindex < d->key.paddr.ifindex)
usr.sbin/unbound/services/listen_dnsport.c
3695
if(c->key.dcidlen != d->key.dcidlen) {
usr.sbin/unbound/services/listen_dnsport.c
3696
if(c->key.dcidlen < d->key.dcidlen)
usr.sbin/unbound/services/listen_dnsport.c
3700
if((r=memcmp(c->key.dcid, d->key.dcid, c->key.dcidlen))!=0)
usr.sbin/unbound/services/listen_dnsport.c
3708
struct doq_conid* d = (struct doq_conid*)key2;
usr.sbin/unbound/services/listen_dnsport.c
3709
if(c->cidlen != d->cidlen) {
usr.sbin/unbound/services/listen_dnsport.c
3710
if(c->cidlen < d->cidlen)
usr.sbin/unbound/services/listen_dnsport.c
3714
return memcmp(c->cid, d->cid, c->cidlen);
usr.sbin/unbound/services/listen_dnsport.c
3731
struct doq_stream* d = (struct doq_stream*)key2;
usr.sbin/unbound/services/listen_dnsport.c
3732
if(c->stream_id != d->stream_id) {
usr.sbin/unbound/services/listen_dnsport.c
3733
if(c->stream_id < d->stream_id)
usr.sbin/unbound/services/localzone.c
1408
struct packed_rrset_data* d;
usr.sbin/unbound/services/localzone.c
1435
d = (struct packed_rrset_data*)regional_alloc_zero(
usr.sbin/unbound/services/localzone.c
1439
if(!d) return 0; /* out of memory */
usr.sbin/unbound/services/localzone.c
1440
r->entry.data = d;
usr.sbin/unbound/services/localzone.c
1441
d->ttl = sldns_wirerr_get_ttl(rr, len, 1);
usr.sbin/unbound/services/localzone.c
1442
d->rr_len = (size_t*)((uint8_t*)d +
usr.sbin/unbound/services/localzone.c
1444
d->rr_data = (uint8_t**)&(d->rr_len[1]);
usr.sbin/unbound/services/localzone.c
1445
d->rr_ttl = (time_t*)&(d->rr_data[1]);
usr.sbin/unbound/services/localzone.c
1447
d = (struct packed_rrset_data*)r->entry.data;
usr.sbin/unbound/services/localzone.c
1449
if(d->count != 0) {
usr.sbin/unbound/services/localzone.c
1450
size_t* oldlen = d->rr_len;
usr.sbin/unbound/services/localzone.c
1451
uint8_t** olddata = d->rr_data;
usr.sbin/unbound/services/localzone.c
1452
time_t* oldttl = d->rr_ttl;
usr.sbin/unbound/services/localzone.c
1456
d->rr_len = (size_t*)regional_alloc_zero(temp,
usr.sbin/unbound/services/localzone.c
1457
(d->count+1)*sizeof(size_t));
usr.sbin/unbound/services/localzone.c
1458
d->rr_data = (uint8_t**)regional_alloc_zero(temp,
usr.sbin/unbound/services/localzone.c
1459
(d->count+1)*sizeof(uint8_t*));
usr.sbin/unbound/services/localzone.c
1460
d->rr_ttl = (time_t*)regional_alloc_zero(temp,
usr.sbin/unbound/services/localzone.c
1461
(d->count+1)*sizeof(time_t));
usr.sbin/unbound/services/localzone.c
1462
if(!d->rr_len || !d->rr_data || !d->rr_ttl)
usr.sbin/unbound/services/localzone.c
1467
memmove(d->rr_len, oldlen, d->count*sizeof(size_t));
usr.sbin/unbound/services/localzone.c
1468
memmove(d->rr_data, olddata, d->count*sizeof(uint8_t*));
usr.sbin/unbound/services/localzone.c
1469
memmove(d->rr_ttl, oldttl, d->count*sizeof(time_t));
usr.sbin/unbound/services/localzone.c
1472
d->rr_len[d->count] = sldns_wirerr_get_rdatalen(rr, len, 1)+2;
usr.sbin/unbound/services/localzone.c
1473
d->rr_ttl[d->count] = sldns_wirerr_get_ttl(rr, len, 1);
usr.sbin/unbound/services/localzone.c
1474
d->rr_data[d->count] = regional_alloc_init(temp,
usr.sbin/unbound/services/localzone.c
1476
d->rr_len[d->count]);
usr.sbin/unbound/services/localzone.c
1477
if(!d->rr_data[d->count])
usr.sbin/unbound/services/localzone.c
1479
d->count++;
usr.sbin/unbound/services/localzone.c
1579
struct packed_rrset_data* d, *lr_d;
usr.sbin/unbound/services/localzone.c
1601
d = (struct packed_rrset_data*)regional_alloc_zero(temp,
usr.sbin/unbound/services/localzone.c
1605
if(!d)
usr.sbin/unbound/services/localzone.c
1608
qinfo->local_alias->rrset->entry.data = d;
usr.sbin/unbound/services/localzone.c
1609
d->ttl = lr_d->rr_ttl[0]; /* RFC6672-like behavior:
usr.sbin/unbound/services/localzone.c
1611
d->count = 1;
usr.sbin/unbound/services/localzone.c
1612
d->rrsig_count = 0;
usr.sbin/unbound/services/localzone.c
1613
d->trust = rrset_trust_ans_noAA;
usr.sbin/unbound/services/localzone.c
1614
d->rr_len = (size_t*)((uint8_t*)d +
usr.sbin/unbound/services/localzone.c
1616
d->rr_len[0] = newtargetlen + sizeof(uint16_t);
usr.sbin/unbound/services/localzone.c
1617
packed_rrset_ptr_fixup(d);
usr.sbin/unbound/services/localzone.c
1618
d->rr_ttl[0] = d->ttl;
usr.sbin/unbound/services/localzone.c
1619
sldns_write_uint16(d->rr_data[0], newtargetlen);
usr.sbin/unbound/services/localzone.c
1621
memmove(d->rr_data[0] + sizeof(uint16_t), qinfo->qname,
usr.sbin/unbound/services/localzone.c
1624
memmove(d->rr_data[0] + sizeof(uint16_t) +
usr.sbin/unbound/services/localzone.c
1746
struct packed_rrset_data d;
usr.sbin/unbound/services/localzone.c
1752
memset(&d, 0, sizeof(d));
usr.sbin/unbound/services/localzone.c
1753
lrr.entry.data = &d;
usr.sbin/unbound/services/localzone.c
1767
d.ttl = rr_ttl;
usr.sbin/unbound/services/localzone.c
1768
d.count = 1;
usr.sbin/unbound/services/localzone.c
1769
d.rr_len = &rr_len;
usr.sbin/unbound/services/localzone.c
1770
d.rr_data = &rr_datas;
usr.sbin/unbound/services/localzone.c
1771
d.rr_ttl = &rr_ttl;
usr.sbin/unbound/services/localzone.c
2155
is_terminal(struct local_data* d)
usr.sbin/unbound/services/localzone.c
2160
struct local_data* n = (struct local_data*)rbtree_next(&d->node);
usr.sbin/unbound/services/localzone.c
2163
if(dname_strict_subdomain(n->name, n->namelabs, d->name, d->namelabs))
usr.sbin/unbound/services/localzone.c
2170
del_empty_term(struct local_zone* z, struct local_data* d,
usr.sbin/unbound/services/localzone.c
2173
while(d && d->rrsets == NULL && is_terminal(d)) {
usr.sbin/unbound/services/localzone.c
2176
(void)rbtree_delete(&z->data, d);
usr.sbin/unbound/services/localzone.c
2183
d = local_zone_find_data(z, name, len, labs);
usr.sbin/unbound/services/localzone.c
2189
del_local_rrset(struct local_data* d, uint16_t dtype)
usr.sbin/unbound/services/localzone.c
2191
struct local_rrset* prev=NULL, *p=d->rrsets;
usr.sbin/unbound/services/localzone.c
2200
else d->rrsets = p->next;
usr.sbin/unbound/services/localzone.c
2209
struct local_data* d;
usr.sbin/unbound/services/localzone.c
2217
d = local_zone_find_data(z, name, len, labs);
usr.sbin/unbound/services/localzone.c
2218
if(d) {
usr.sbin/unbound/services/localzone.c
2219
del_local_rrset(d, LDNS_RR_TYPE_DS);
usr.sbin/unbound/services/localzone.c
2220
del_empty_term(z, d, name, len, labs);
usr.sbin/unbound/services/localzone.c
2238
d = local_zone_find_data(z, name, len, labs);
usr.sbin/unbound/services/localzone.c
2239
if(d) {
usr.sbin/unbound/services/localzone.c
2241
d->rrsets = NULL;
usr.sbin/unbound/services/localzone.c
2243
if(query_dname_compare(d->name, z->name) == 0) {
usr.sbin/unbound/services/localzone.c
2249
del_empty_term(z, d, name, len, labs);
usr.sbin/unbound/services/localzone.c
81
struct local_data* d;
usr.sbin/unbound/services/localzone.c
83
RBTREE_FOR(d, struct local_data*, &z->data) {
usr.sbin/unbound/services/localzone.c
84
for(p = d->rrsets; p; p = p->next) {
usr.sbin/unbound/services/localzone.c
85
log_nametypeclass(NO_VERBOSE, "rrset", d->name,
usr.sbin/unbound/services/mesh.c
2040
struct packed_rrset_data* d;
usr.sbin/unbound/services/mesh.c
2070
d = regional_alloc_zero(s->s.region, sizeof(*d));
usr.sbin/unbound/services/mesh.c
2071
if(!d)
usr.sbin/unbound/services/mesh.c
2073
r->local_alias->rrset->entry.data = d;
usr.sbin/unbound/services/mesh.c
2074
if(!rrset_insert_rr(s->s.region, d, dsrc->rr_data[0],
usr.sbin/unbound/services/outside_network.c
2877
uint8_t* d = qbuf + 10;
usr.sbin/unbound/services/outside_network.c
2882
lablen = *d++;
usr.sbin/unbound/services/outside_network.c
2886
if(isalpha((unsigned char)*d)) {
usr.sbin/unbound/services/outside_network.c
2893
*d = (uint8_t)toupper((unsigned char)*d);
usr.sbin/unbound/services/outside_network.c
2895
*d = (uint8_t)tolower((unsigned char)*d);
usr.sbin/unbound/services/outside_network.c
2900
d++;
usr.sbin/unbound/services/outside_network.c
2902
lablen = *d++;
usr.sbin/unbound/services/rpz.c
1293
struct packed_rrset_data* d;
usr.sbin/unbound/services/rpz.c
1305
d = (struct packed_rrset_data*)p->rrset->entry.data;
usr.sbin/unbound/services/rpz.c
1306
if(packed_rrset_find_rr(d, rdata, rdatalen, &index)) {
usr.sbin/unbound/services/rpz.c
1307
if(d->count == 1) {
usr.sbin/unbound/services/rpz.c
1312
if(d->count > 1) {
usr.sbin/unbound/services/rpz.c
1313
if(!local_rrset_remove_rr(d, index))
usr.sbin/unbound/services/rpz.c
1336
struct packed_rrset_data* d;
usr.sbin/unbound/services/rpz.c
1339
d = raddr->data->entry.data;
usr.sbin/unbound/services/rpz.c
1343
if(packed_rrset_find_rr(d, rdata, rdatalen, &index)) {
usr.sbin/unbound/services/rpz.c
1344
if(d->count == 1) {
usr.sbin/unbound/services/rpz.c
1350
if(d->count > 1) {
usr.sbin/unbound/services/rpz.c
1351
if(!local_rrset_remove_rr(d, index))
usr.sbin/unbound/services/rpz.c
1457
struct packed_rrset_data* d;
usr.sbin/unbound/services/rpz.c
1462
d = (struct packed_rrset_data*)rrset->rrset->entry.data;
usr.sbin/unbound/services/rpz.c
1463
if(!packed_rrset_find_rr(d, rdatawl, rdatalen, &index))
usr.sbin/unbound/services/rpz.c
1465
if(d->count == 1) {
usr.sbin/unbound/services/rpz.c
1472
} else if (d->count > 1) {
usr.sbin/unbound/services/rpz.c
1473
if(!local_rrset_remove_rr(d, index))
usr.sbin/unbound/sldns/parse.c
150
for (d = del; *d; d++) {
usr.sbin/unbound/sldns/parse.c
151
if (c == *d)
usr.sbin/unbound/sldns/parse.c
155
if (c == *d && i > 0 && prev_c != '\\' && p == 0) {
usr.sbin/unbound/sldns/parse.c
294
const char *d;
usr.sbin/unbound/sldns/parse.c
392
for (d = del; *d; d++) {
usr.sbin/unbound/sldns/parse.c
394
if (c == *d && lc != '\\' && (p == 0 || par)) {
usr.sbin/unbound/sldns/parse.c
40
const char *d;
usr.sbin/unbound/sldns/parse.c
442
const char *d;
usr.sbin/unbound/sldns/parse.c
447
for (d = s; *d; d++) {
usr.sbin/unbound/sldns/parse.c
448
if (*d == c) {
usr.sbin/unbound/sldns/parse.c
471
const char *d;
usr.sbin/unbound/sldns/parse.c
478
for (d = s; *d; d++) {
usr.sbin/unbound/sldns/parse.c
479
if (*d == c) {
usr.sbin/unbound/sldns/parseutil.c
765
char d = *s++;
usr.sbin/unbound/sldns/parseutil.c
767
if(d <= 'Z' && d >= 'A')
usr.sbin/unbound/sldns/parseutil.c
768
d -= 'A';
usr.sbin/unbound/sldns/parseutil.c
769
else if(d <= 'z' && d >= 'a')
usr.sbin/unbound/sldns/parseutil.c
770
d = d - 'a' + 26;
usr.sbin/unbound/sldns/parseutil.c
771
else if(d <= '9' && d >= '0')
usr.sbin/unbound/sldns/parseutil.c
772
d = d - '0' + 52;
usr.sbin/unbound/sldns/parseutil.c
773
else if(!base64url && d == '+')
usr.sbin/unbound/sldns/parseutil.c
774
d = 62;
usr.sbin/unbound/sldns/parseutil.c
775
else if(base64url && d == '-')
usr.sbin/unbound/sldns/parseutil.c
776
d = 62;
usr.sbin/unbound/sldns/parseutil.c
777
else if(!base64url && d == '/')
usr.sbin/unbound/sldns/parseutil.c
778
d = 63;
usr.sbin/unbound/sldns/parseutil.c
779
else if(base64url && d == '_')
usr.sbin/unbound/sldns/parseutil.c
780
d = 63;
usr.sbin/unbound/sldns/parseutil.c
781
else if(d == '=') {
usr.sbin/unbound/sldns/parseutil.c
784
d = 64;
usr.sbin/unbound/sldns/parseutil.c
787
in[incount++] = (uint8_t)d;
usr.sbin/unbound/sldns/parseutil.c
841
char d = *s++;
usr.sbin/unbound/sldns/parseutil.c
845
if(d == '+' || d == '/' || d == '=') {
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
2732
shorts[3] = htons(d);
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
2752
rd[3] = d;
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
2773
rd[3] = d;
usr.sbin/unbound/sldns/wire2str.c
1002
int sldns_wire2str_type_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen)
usr.sbin/unbound/sldns/wire2str.c
1006
if(*dlen < 2) return print_remainder_hex("Error malformed 0x", d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1007
t = sldns_read_uint16(*d);
usr.sbin/unbound/sldns/wire2str.c
1008
(*d)+=2;
usr.sbin/unbound/sldns/wire2str.c
1013
int sldns_wire2str_ttl_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen)
usr.sbin/unbound/sldns/wire2str.c
1017
if(*dlen < 4) return print_remainder_hex("Error malformed 0x", d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1018
ttl = sldns_read_uint32(*d);
usr.sbin/unbound/sldns/wire2str.c
1019
(*d)+=4;
usr.sbin/unbound/sldns/wire2str.c
1186
int sldns_wire2str_svcparam_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen)
usr.sbin/unbound/sldns/wire2str.c
1197
svcparamkey = sldns_read_uint16(*d);
usr.sbin/unbound/sldns/wire2str.c
1198
data_len = sldns_read_uint16(*d+2);
usr.sbin/unbound/sldns/wire2str.c
1199
*d += 4;
usr.sbin/unbound/sldns/wire2str.c
1225
r = sldns_wire2str_svcparam_port2str(s, slen, data_len, *d);
usr.sbin/unbound/sldns/wire2str.c
1228
r = sldns_wire2str_svcparam_ipv4hint2str(s, slen, data_len, *d);
usr.sbin/unbound/sldns/wire2str.c
1231
r = sldns_wire2str_svcparam_ipv6hint2str(s, slen, data_len, *d);
usr.sbin/unbound/sldns/wire2str.c
1234
r = sldns_wire2str_svcparam_mandatory2str(s, slen, data_len, *d);
usr.sbin/unbound/sldns/wire2str.c
1239
r = sldns_wire2str_svcparam_alpn2str(s, slen, data_len, *d);
usr.sbin/unbound/sldns/wire2str.c
1242
r = sldns_wire2str_svcparam_ech2str(s, slen, data_len, *d);
usr.sbin/unbound/sldns/wire2str.c
1251
ch = (*d)[i];
usr.sbin/unbound/sldns/wire2str.c
1270
*d += data_len;
usr.sbin/unbound/sldns/wire2str.c
1275
int sldns_wire2str_rdf_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen,
usr.sbin/unbound/sldns/wire2str.c
1283
return sldns_wire2str_dname_scan(d, dlen, s, slen, pkt, pktlen, comprloop);
usr.sbin/unbound/sldns/wire2str.c
1285
return sldns_wire2str_int8_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1287
return sldns_wire2str_int16_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1289
return sldns_wire2str_int32_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1291
return sldns_wire2str_period_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1293
return sldns_wire2str_tsigtime_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1295
return sldns_wire2str_a_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1297
return sldns_wire2str_aaaa_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1299
return sldns_wire2str_str_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1301
return sldns_wire2str_apl_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1303
return sldns_wire2str_b32_ext_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1305
return sldns_wire2str_b64_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1307
return sldns_wire2str_hex_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1309
return sldns_wire2str_nsec_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1311
return sldns_wire2str_nsec3_salt_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1313
return sldns_wire2str_type_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1315
return sldns_wire2str_class_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1317
return sldns_wire2str_cert_alg_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1319
return sldns_wire2str_alg_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1321
return sldns_wire2str_unknown_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1323
return sldns_wire2str_time_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1325
return sldns_wire2str_loc_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1328
return sldns_wire2str_wks_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1330
return sldns_wire2str_nsap_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1332
return sldns_wire2str_atma_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1334
return sldns_wire2str_ipseckey_scan(d, dlen, s, slen, pkt,
usr.sbin/unbound/sldns/wire2str.c
1337
return sldns_wire2str_hip_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1339
return sldns_wire2str_int16_data_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1341
return sldns_wire2str_b32_ext_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1343
return sldns_wire2str_ilnp64_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1345
return sldns_wire2str_eui48_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1347
return sldns_wire2str_eui64_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1349
return sldns_wire2str_unquoted_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1351
return sldns_wire2str_tag_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1353
return sldns_wire2str_long_str_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1355
return sldns_wire2str_svcparam_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1357
return sldns_wire2str_tsigerror_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
1363
int sldns_wire2str_int8_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1367
w = sldns_str_print(s, sl, "%u", (unsigned)**d);
usr.sbin/unbound/sldns/wire2str.c
1368
(*d)++;
usr.sbin/unbound/sldns/wire2str.c
1373
int sldns_wire2str_int16_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1377
w = sldns_str_print(s, sl, "%lu", (unsigned long)sldns_read_uint16(*d));
usr.sbin/unbound/sldns/wire2str.c
1378
(*d)+=2;
usr.sbin/unbound/sldns/wire2str.c
1383
int sldns_wire2str_int32_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1387
w = sldns_str_print(s, sl, "%lu", (unsigned long)sldns_read_uint32(*d));
usr.sbin/unbound/sldns/wire2str.c
1388
(*d)+=4;
usr.sbin/unbound/sldns/wire2str.c
1393
int sldns_wire2str_period_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1397
w = sldns_str_print(s, sl, "%u", (unsigned)sldns_read_uint32(*d));
usr.sbin/unbound/sldns/wire2str.c
1398
(*d)+=4;
usr.sbin/unbound/sldns/wire2str.c
1403
int sldns_wire2str_tsigtime_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1410
d0 = (*d)[0]; /* cast to uint64 for shift operations */
usr.sbin/unbound/sldns/wire2str.c
1411
d1 = (*d)[1];
usr.sbin/unbound/sldns/wire2str.c
1412
d2 = (*d)[2];
usr.sbin/unbound/sldns/wire2str.c
1413
d3 = (*d)[3];
usr.sbin/unbound/sldns/wire2str.c
1414
d4 = (*d)[4];
usr.sbin/unbound/sldns/wire2str.c
1415
d5 = (*d)[5];
usr.sbin/unbound/sldns/wire2str.c
1422
(*d)+=6;
usr.sbin/unbound/sldns/wire2str.c
1427
int sldns_wire2str_a_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1432
if(!inet_ntop(AF_INET, *d, buf, (socklen_t)sizeof(buf)))
usr.sbin/unbound/sldns/wire2str.c
1435
(*d)+=4;
usr.sbin/unbound/sldns/wire2str.c
1440
int sldns_wire2str_aaaa_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1446
if(!inet_ntop(AF_INET6, *d, buf, (socklen_t)sizeof(buf)))
usr.sbin/unbound/sldns/wire2str.c
1449
(*d)+=16;
usr.sbin/unbound/sldns/wire2str.c
1473
int sldns_wire2str_str_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1478
len = **d;
usr.sbin/unbound/sldns/wire2str.c
1480
(*d)++;
usr.sbin/unbound/sldns/wire2str.c
1484
w += str_char_print(s, sl, (*d)[i]);
usr.sbin/unbound/sldns/wire2str.c
1486
(*d)+=len;
usr.sbin/unbound/sldns/wire2str.c
1491
int sldns_wire2str_apl_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1497
family = sldns_read_uint16(*d);
usr.sbin/unbound/sldns/wire2str.c
1498
prefix = (*d)[2];
usr.sbin/unbound/sldns/wire2str.c
1499
negation = ((*d)[3] & LDNS_APL_NEGATION);
usr.sbin/unbound/sldns/wire2str.c
1500
adflength = ((*d)[3] & LDNS_APL_MASK);
usr.sbin/unbound/sldns/wire2str.c
1514
w += sldns_str_print(s, sl, "%d", (*d)[4+i]);
usr.sbin/unbound/sldns/wire2str.c
1524
w += sldns_str_print(s, sl, "%02x", (*d)[4+i]);
usr.sbin/unbound/sldns/wire2str.c
1529
(*d) += 4+adflength;
usr.sbin/unbound/sldns/wire2str.c
1534
int sldns_wire2str_b32_ext_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1539
datalen = (*d)[0];
usr.sbin/unbound/sldns/wire2str.c
1543
(*d) += datalen+1;
usr.sbin/unbound/sldns/wire2str.c
1548
sldns_b32_ntop_extended_hex((*d)+1, datalen, *s, *sl);
usr.sbin/unbound/sldns/wire2str.c
1549
(*d) += datalen+1;
usr.sbin/unbound/sldns/wire2str.c
1557
static int sldns_wire2str_b64_scan_num(uint8_t** d, size_t* dl, char** s,
usr.sbin/unbound/sldns/wire2str.c
1563
(*d) += num;
usr.sbin/unbound/sldns/wire2str.c
1568
sldns_b64_ntop(*d, num, *s, *sl);
usr.sbin/unbound/sldns/wire2str.c
1569
(*d) += num;
usr.sbin/unbound/sldns/wire2str.c
1576
int sldns_wire2str_b64_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1581
return sldns_wire2str_b64_scan_num(d, dl, s, sl, *dl);
usr.sbin/unbound/sldns/wire2str.c
1584
int sldns_wire2str_hex_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1589
return print_remainder_hex("", d, dl, s, sl);
usr.sbin/unbound/sldns/wire2str.c
1592
int sldns_wire2str_nsec_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1594
uint8_t* p = *d;
usr.sbin/unbound/sldns/wire2str.c
1610
p = *d;
usr.sbin/unbound/sldns/wire2str.c
1633
(*d) += *dl;
usr.sbin/unbound/sldns/wire2str.c
1638
int sldns_wire2str_nsec3_salt_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1643
salt_len = (size_t)(*d)[0];
usr.sbin/unbound/sldns/wire2str.c
1645
(*d)++;
usr.sbin/unbound/sldns/wire2str.c
1650
w = print_hex_buf(s, sl, *d, salt_len);
usr.sbin/unbound/sldns/wire2str.c
1652
(*d)+=salt_len;
usr.sbin/unbound/sldns/wire2str.c
1656
int sldns_wire2str_cert_alg_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1661
data = (int)sldns_read_uint16(*d);
usr.sbin/unbound/sldns/wire2str.c
1667
(*d)+=2;
usr.sbin/unbound/sldns/wire2str.c
1671
int sldns_wire2str_alg_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1675
return sldns_wire2str_int8_scan(d, dl, s, sl);
usr.sbin/unbound/sldns/wire2str.c
1678
int sldns_wire2str_unknown_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1680
return sldns_wire2str_rdata_unknown_scan(d, dl, s, sl);
usr.sbin/unbound/sldns/wire2str.c
1683
int sldns_wire2str_time_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1691
t = sldns_read_uint32(*d);
usr.sbin/unbound/sldns/wire2str.c
1695
(*d) += 4;
usr.sbin/unbound/sldns/wire2str.c
1720
int sldns_wire2str_loc_scan(uint8_t** d, size_t* dl, char** str, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1739
version = (*d)[0];
usr.sbin/unbound/sldns/wire2str.c
1741
return sldns_wire2str_hex_scan(d, dl, str, sl);
usr.sbin/unbound/sldns/wire2str.c
1742
size = (*d)[1];
usr.sbin/unbound/sldns/wire2str.c
1743
horizontal_precision = (*d)[2];
usr.sbin/unbound/sldns/wire2str.c
1744
vertical_precision = (*d)[3];
usr.sbin/unbound/sldns/wire2str.c
1746
latitude = sldns_read_uint32((*d)+4);
usr.sbin/unbound/sldns/wire2str.c
1747
longitude = sldns_read_uint32((*d)+8);
usr.sbin/unbound/sldns/wire2str.c
1748
altitude = sldns_read_uint32((*d)+12);
usr.sbin/unbound/sldns/wire2str.c
1801
(*d)+=16;
usr.sbin/unbound/sldns/wire2str.c
1806
int sldns_wire2str_wks_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1822
protocol_nr = (*d)[0];
usr.sbin/unbound/sldns/wire2str.c
1823
(*d)++;
usr.sbin/unbound/sldns/wire2str.c
1838
if((*d)[i] == 0)
usr.sbin/unbound/sldns/wire2str.c
1841
if(!(((*d)[i])&(0x80>>bit)))
usr.sbin/unbound/sldns/wire2str.c
1864
(*d) += *dl;
usr.sbin/unbound/sldns/wire2str.c
1869
int sldns_wire2str_nsap_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1871
return print_remainder_hex("0x", d, dl, s, sl);
usr.sbin/unbound/sldns/wire2str.c
1874
int sldns_wire2str_atma_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1881
format = (*d)[0];
usr.sbin/unbound/sldns/wire2str.c
1882
(*d)+=1;
usr.sbin/unbound/sldns/wire2str.c
1887
return print_remainder_hex("", d, dl, s, sl);
usr.sbin/unbound/sldns/wire2str.c
1892
if((*d)[i] < '0' || (*d)[0] > '9')
usr.sbin/unbound/sldns/wire2str.c
1894
w += sldns_str_print(s, sl, "%c", (*d)[i]);
usr.sbin/unbound/sldns/wire2str.c
1896
(*d) += *dl;
usr.sbin/unbound/sldns/wire2str.c
1906
static int sldns_wire2str_ipseckey_scan_internal(uint8_t** d, size_t* dl,
usr.sbin/unbound/sldns/wire2str.c
1914
precedence = (*d)[0];
usr.sbin/unbound/sldns/wire2str.c
1915
gateway_type = (*d)[1];
usr.sbin/unbound/sldns/wire2str.c
1916
algorithm = (*d)[2];
usr.sbin/unbound/sldns/wire2str.c
1919
(*d)+=3;
usr.sbin/unbound/sldns/wire2str.c
1929
w += sldns_wire2str_a_scan(d, dl, s, sl);
usr.sbin/unbound/sldns/wire2str.c
1932
w += sldns_wire2str_aaaa_scan(d, dl, s, sl);
usr.sbin/unbound/sldns/wire2str.c
1935
w += sldns_wire2str_dname_scan(d, dl, s, sl, pkt, pktlen, comprloop);
usr.sbin/unbound/sldns/wire2str.c
1944
w += sldns_wire2str_b64_scan_num(d, dl, s, sl, *dl);
usr.sbin/unbound/sldns/wire2str.c
1948
int sldns_wire2str_ipseckey_scan(uint8_t** d, size_t* dl, char** s, size_t* sl,
usr.sbin/unbound/sldns/wire2str.c
1951
uint8_t* od = *d;
usr.sbin/unbound/sldns/wire2str.c
1954
int w=sldns_wire2str_ipseckey_scan_internal(d, dl, s, sl, pkt, pktlen, comprloop);
usr.sbin/unbound/sldns/wire2str.c
1956
*d = od;
usr.sbin/unbound/sldns/wire2str.c
1965
int sldns_wire2str_hip_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1974
hitlen = (*d)[0];
usr.sbin/unbound/sldns/wire2str.c
1975
algo = (*d)[1];
usr.sbin/unbound/sldns/wire2str.c
1976
pklen = sldns_read_uint16((*d)+2);
usr.sbin/unbound/sldns/wire2str.c
1982
w += print_hex_buf(s, sl, (*d)+4, hitlen);
usr.sbin/unbound/sldns/wire2str.c
1984
(*d)+=4+hitlen;
usr.sbin/unbound/sldns/wire2str.c
1986
w += sldns_wire2str_b64_scan_num(d, dl, s, sl, pklen);
usr.sbin/unbound/sldns/wire2str.c
1990
int sldns_wire2str_int16_data_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1996
n = sldns_read_uint16(*d);
usr.sbin/unbound/sldns/wire2str.c
1999
(*d)+=2;
usr.sbin/unbound/sldns/wire2str.c
2005
w += sldns_wire2str_b64_scan_num(d, dl, s, sl, n);
usr.sbin/unbound/sldns/wire2str.c
2009
int sldns_wire2str_nsec3_next_owner_scan(uint8_t** d, size_t* dl, char** s,
usr.sbin/unbound/sldns/wire2str.c
2012
return sldns_wire2str_b32_ext_scan(d, dl, s, sl);
usr.sbin/unbound/sldns/wire2str.c
2015
int sldns_wire2str_ilnp64_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
2021
sldns_read_uint16(*d), sldns_read_uint16((*d)+2),
usr.sbin/unbound/sldns/wire2str.c
2022
sldns_read_uint16((*d)+4), sldns_read_uint16((*d)+6));
usr.sbin/unbound/sldns/wire2str.c
2023
(*d)+=8;
usr.sbin/unbound/sldns/wire2str.c
2028
int sldns_wire2str_eui48_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
2034
(*d)[0], (*d)[1], (*d)[2], (*d)[3], (*d)[4], (*d)[5]);
usr.sbin/unbound/sldns/wire2str.c
2035
(*d)+=6;
usr.sbin/unbound/sldns/wire2str.c
2040
int sldns_wire2str_eui64_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
2046
(*d)[0], (*d)[1], (*d)[2], (*d)[3], (*d)[4], (*d)[5],
usr.sbin/unbound/sldns/wire2str.c
2047
(*d)[6], (*d)[7]);
usr.sbin/unbound/sldns/wire2str.c
2048
(*d)+=8;
usr.sbin/unbound/sldns/wire2str.c
2053
int sldns_wire2str_unquoted_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
2058
len = **d;
usr.sbin/unbound/sldns/wire2str.c
2060
(*d)++;
usr.sbin/unbound/sldns/wire2str.c
2063
if(isspace((unsigned char)(*d)[i]) || (*d)[i] == '(' ||
usr.sbin/unbound/sldns/wire2str.c
2064
(*d)[i] == ')' || (*d)[i] == '\'')
usr.sbin/unbound/sldns/wire2str.c
2065
w += sldns_str_print(s, sl, "\\%c", (char)(*d)[i]);
usr.sbin/unbound/sldns/wire2str.c
2066
else w += str_char_print(s, sl, (*d)[i]);
usr.sbin/unbound/sldns/wire2str.c
2068
(*d)+=len;
usr.sbin/unbound/sldns/wire2str.c
2073
int sldns_wire2str_tag_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
2079
n = (size_t)((*d)[0]);
usr.sbin/unbound/sldns/wire2str.c
2083
if(!isalnum((unsigned char)(*d)[i+1]))
usr.sbin/unbound/sldns/wire2str.c
2086
w += sldns_str_print(s, sl, "%c", (char)(*d)[i+1]);
usr.sbin/unbound/sldns/wire2str.c
2087
(*d)+=n+1;
usr.sbin/unbound/sldns/wire2str.c
2092
int sldns_wire2str_long_str_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
2098
w += str_char_print(s, sl, (*d)[i]);
usr.sbin/unbound/sldns/wire2str.c
2100
(*d)+=*dl;
usr.sbin/unbound/sldns/wire2str.c
2105
int sldns_wire2str_tsigerror_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
2110
data = (int)sldns_read_uint16(*d);
usr.sbin/unbound/sldns/wire2str.c
2116
(*d)+=2;
usr.sbin/unbound/sldns/wire2str.c
317
int sldns_wire2str_pkt_buf(uint8_t* d, size_t dlen, char* s, size_t slen)
usr.sbin/unbound/sldns/wire2str.c
320
return sldns_wire2str_pkt_scan(&d, &dlen, &s, &slen);
usr.sbin/unbound/sldns/wire2str.c
323
int sldns_wire2str_rr_buf(uint8_t* d, size_t dlen, char* s, size_t slen)
usr.sbin/unbound/sldns/wire2str.c
326
return sldns_wire2str_rr_scan(&d, &dlen, &s, &slen, NULL, 0, NULL);
usr.sbin/unbound/sldns/wire2str.c
329
int sldns_wire2str_rrquestion_buf(uint8_t* d, size_t dlen, char* s, size_t slen)
usr.sbin/unbound/sldns/wire2str.c
332
return sldns_wire2str_rrquestion_scan(&d, &dlen, &s, &slen, NULL, 0, NULL);
usr.sbin/unbound/sldns/wire2str.c
343
int sldns_wire2str_rr_unknown_buf(uint8_t* d, size_t dlen, char* s, size_t slen)
usr.sbin/unbound/sldns/wire2str.c
346
return sldns_wire2str_rr_unknown_scan(&d, &dlen, &s, &slen, NULL, 0, NULL);
usr.sbin/unbound/sldns/wire2str.c
381
int sldns_wire2str_dname_buf(uint8_t* d, size_t dlen, char* s, size_t slen)
usr.sbin/unbound/sldns/wire2str.c
384
return sldns_wire2str_dname_scan(&d, &dlen, &s, &slen, NULL, 0, NULL);
usr.sbin/unbound/sldns/wire2str.c
426
static int print_remainder_hex(const char* pref, uint8_t** d, size_t* dlen,
usr.sbin/unbound/sldns/wire2str.c
431
w += print_hex_buf(s, slen, *d, *dlen);
usr.sbin/unbound/sldns/wire2str.c
432
*d += *dlen;
usr.sbin/unbound/sldns/wire2str.c
437
int sldns_wire2str_pkt_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen)
usr.sbin/unbound/sldns/wire2str.c
441
uint8_t* pkt = *d;
usr.sbin/unbound/sldns/wire2str.c
444
qdcount = (unsigned)LDNS_QDCOUNT(*d);
usr.sbin/unbound/sldns/wire2str.c
445
ancount = (unsigned)LDNS_ANCOUNT(*d);
usr.sbin/unbound/sldns/wire2str.c
446
nscount = (unsigned)LDNS_NSCOUNT(*d);
usr.sbin/unbound/sldns/wire2str.c
447
arcount = (unsigned)LDNS_ARCOUNT(*d);
usr.sbin/unbound/sldns/wire2str.c
451
w += sldns_wire2str_header_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
455
w += sldns_wire2str_rrquestion_scan(d, dlen, s, slen,
usr.sbin/unbound/sldns/wire2str.c
462
w += sldns_wire2str_rr_scan(d, dlen, s, slen, pkt, pktlen, &comprloop);
usr.sbin/unbound/sldns/wire2str.c
468
w += sldns_wire2str_rr_scan(d, dlen, s, slen, pkt, pktlen, &comprloop);
usr.sbin/unbound/sldns/wire2str.c
474
w += sldns_wire2str_rr_scan(d, dlen, s, slen, pkt, pktlen, &comprloop);
usr.sbin/unbound/sldns/wire2str.c
481
d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
488
static int sldns_rr_tcttl_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
496
d, dl, s, sl);
usr.sbin/unbound/sldns/wire2str.c
498
t = sldns_read_uint16(*d);
usr.sbin/unbound/sldns/wire2str.c
499
c = sldns_read_uint16((*d)+2);
usr.sbin/unbound/sldns/wire2str.c
500
(*d)+=4;
usr.sbin/unbound/sldns/wire2str.c
508
"; Error malformed ttl 0x", d, dl, s, sl);
usr.sbin/unbound/sldns/wire2str.c
510
t = sldns_read_uint16(*d);
usr.sbin/unbound/sldns/wire2str.c
511
c = sldns_read_uint16((*d)+2);
usr.sbin/unbound/sldns/wire2str.c
512
ttl = sldns_read_uint32((*d)+4);
usr.sbin/unbound/sldns/wire2str.c
513
(*d)+=8;
usr.sbin/unbound/sldns/wire2str.c
522
int sldns_wire2str_rr_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen,
usr.sbin/unbound/sldns/wire2str.c
526
uint8_t* rr = *d;
usr.sbin/unbound/sldns/wire2str.c
530
if(*dlen >= 3 && (*d)[0]==0 &&
usr.sbin/unbound/sldns/wire2str.c
531
sldns_read_uint16((*d)+1)==LDNS_RR_TYPE_OPT) {
usr.sbin/unbound/sldns/wire2str.c
533
return sldns_wire2str_edns_scan(d, dlen, s, slen, pkt, pktlen);
usr.sbin/unbound/sldns/wire2str.c
538
w += sldns_wire2str_dname_scan(d, dlen, s, slen, pkt, pktlen, comprloop);
usr.sbin/unbound/sldns/wire2str.c
543
uint16_t t = sldns_read_uint16(*d);
usr.sbin/unbound/sldns/wire2str.c
544
uint16_t c = sldns_read_uint16((*d)+2);
usr.sbin/unbound/sldns/wire2str.c
545
(*d)+=4;
usr.sbin/unbound/sldns/wire2str.c
556
w += print_remainder_hex(";Error partial RR 0x", d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
559
rrtype = sldns_read_uint16(*d);
usr.sbin/unbound/sldns/wire2str.c
560
w += sldns_rr_tcttl_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
568
d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
571
rdlen = sldns_read_uint16(*d);
usr.sbin/unbound/sldns/wire2str.c
573
(*d)+=2;
usr.sbin/unbound/sldns/wire2str.c
579
w += print_remainder_hex(";Error partial rdata 0x", d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
582
w += sldns_wire2str_rdata_scan(d, &rdlen, s, slen, rrtype, pkt, pktlen,
usr.sbin/unbound/sldns/wire2str.c
593
int sldns_wire2str_rrquestion_scan(uint8_t** d, size_t* dlen, char** s,
usr.sbin/unbound/sldns/wire2str.c
598
w += sldns_wire2str_dname_scan(d, dlen, s, slen, pkt, pktlen, comprloop);
usr.sbin/unbound/sldns/wire2str.c
603
w += print_remainder_hex("Error malformed 0x", d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
606
t = sldns_read_uint16(*d);
usr.sbin/unbound/sldns/wire2str.c
607
c = sldns_read_uint16((*d)+2);
usr.sbin/unbound/sldns/wire2str.c
608
(*d)+=4;
usr.sbin/unbound/sldns/wire2str.c
617
int sldns_wire2str_rr_unknown_scan(uint8_t** d, size_t* dlen, char** s,
usr.sbin/unbound/sldns/wire2str.c
622
w += sldns_wire2str_dname_scan(d, dlen, s, slen, pkt, pktlen, comprloop);
usr.sbin/unbound/sldns/wire2str.c
624
w += sldns_rr_tcttl_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
630
d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
633
rdlen = sldns_read_uint16(*d);
usr.sbin/unbound/sldns/wire2str.c
635
(*d) += 2;
usr.sbin/unbound/sldns/wire2str.c
641
w += print_remainder_hex(";Error partial rdata 0x", d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
644
w += sldns_wire2str_rdata_unknown_scan(d, &rdlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
733
int sldns_wire2str_header_scan(uint8_t** d, size_t* dlen, char** s,
usr.sbin/unbound/sldns/wire2str.c
742
return w+print_remainder_hex("Error header too short 0x", d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
743
opcode = (int)LDNS_OPCODE_WIRE(*d);
usr.sbin/unbound/sldns/wire2str.c
744
rcode = (int)LDNS_RCODE_WIRE(*d);
usr.sbin/unbound/sldns/wire2str.c
751
w += sldns_str_print(s, slen, "id: %d\n", (int)LDNS_ID_WIRE(*d));
usr.sbin/unbound/sldns/wire2str.c
753
if(LDNS_QR_WIRE(*d)) w += sldns_str_print(s, slen, " qr");
usr.sbin/unbound/sldns/wire2str.c
754
if(LDNS_AA_WIRE(*d)) w += sldns_str_print(s, slen, " aa");
usr.sbin/unbound/sldns/wire2str.c
755
if(LDNS_TC_WIRE(*d)) w += sldns_str_print(s, slen, " tc");
usr.sbin/unbound/sldns/wire2str.c
756
if(LDNS_RD_WIRE(*d)) w += sldns_str_print(s, slen, " rd");
usr.sbin/unbound/sldns/wire2str.c
757
if(LDNS_CD_WIRE(*d)) w += sldns_str_print(s, slen, " cd");
usr.sbin/unbound/sldns/wire2str.c
758
if(LDNS_RA_WIRE(*d)) w += sldns_str_print(s, slen, " ra");
usr.sbin/unbound/sldns/wire2str.c
759
if(LDNS_AD_WIRE(*d)) w += sldns_str_print(s, slen, " ad");
usr.sbin/unbound/sldns/wire2str.c
760
if(LDNS_Z_WIRE(*d)) w += sldns_str_print(s, slen, " z");
usr.sbin/unbound/sldns/wire2str.c
763
return w+print_remainder_hex("Error header too short 0x", d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
764
w += sldns_str_print(s, slen, "QUERY: %d, ", (int)LDNS_QDCOUNT(*d));
usr.sbin/unbound/sldns/wire2str.c
765
w += sldns_str_print(s, slen, "ANSWER: %d, ", (int)LDNS_ANCOUNT(*d));
usr.sbin/unbound/sldns/wire2str.c
766
w += sldns_str_print(s, slen, "AUTHORITY: %d, ", (int)LDNS_NSCOUNT(*d));
usr.sbin/unbound/sldns/wire2str.c
767
w += sldns_str_print(s, slen, "ADDITIONAL: %d ", (int)LDNS_ARCOUNT(*d));
usr.sbin/unbound/sldns/wire2str.c
768
*d += LDNS_HEADER_SIZE;
usr.sbin/unbound/sldns/wire2str.c
773
int sldns_wire2str_rdata_scan(uint8_t** d, size_t* dlen, char** s,
usr.sbin/unbound/sldns/wire2str.c
778
uint8_t* origd = *d;
usr.sbin/unbound/sldns/wire2str.c
787
return sldns_wire2str_rdata_unknown_scan(d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
800
n = sldns_wire2str_rdf_scan(d, dlen, s, slen, rdftype,
usr.sbin/unbound/sldns/wire2str.c
805
*d = origd; *s = origs;
usr.sbin/unbound/sldns/wire2str.c
807
return sldns_wire2str_rdata_unknown_scan(d, dlen,
usr.sbin/unbound/sldns/wire2str.c
818
int sldns_wire2str_rdata_unknown_scan(uint8_t** d, size_t* dlen, char** s,
usr.sbin/unbound/sldns/wire2str.c
829
w += print_hex_buf(s, slen, *d, *dlen);
usr.sbin/unbound/sldns/wire2str.c
830
(*d) += *dlen;
usr.sbin/unbound/sldns/wire2str.c
851
int sldns_wire2str_dname_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen,
usr.sbin/unbound/sldns/wire2str.c
856
uint8_t* pos = *d;
usr.sbin/unbound/sldns/wire2str.c
869
(*d)++;
usr.sbin/unbound/sldns/wire2str.c
876
if(in_buf) { (*d)++; (*dlen)--; }
usr.sbin/unbound/sldns/wire2str.c
889
if(in_buf) { (*d)++; (*dlen)--; }
usr.sbin/unbound/sldns/wire2str.c
930
(*d) += labellen;
usr.sbin/unbound/sldns/wire2str.c
937
if(in_buf && *dlen > 0) { (*d)++; (*dlen)--; }
usr.sbin/unbound/sldns/wire2str.c
991
int sldns_wire2str_class_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen)
usr.sbin/unbound/sldns/wire2str.c
995
if(*dlen < 2) return print_remainder_hex("Error malformed 0x", d, dlen, s, slen);
usr.sbin/unbound/sldns/wire2str.c
996
c = sldns_read_uint16(*d);
usr.sbin/unbound/sldns/wire2str.c
997
(*d)+=2;
usr.sbin/unbound/sldns/wire2str.h
508
int sldns_wire2str_svcparam_scan(uint8_t** d, size_t* dlen, char** s,
usr.sbin/unbound/smallapp/unbound-anchor.c
1093
char* data, *d = NULL;
usr.sbin/unbound/smallapp/unbound-anchor.c
1099
l = (size_t)BIO_get_mem_data(tmp, &d);
usr.sbin/unbound/smallapp/unbound-anchor.c
1101
if(l == 0 || d == NULL) {
usr.sbin/unbound/smallapp/unbound-anchor.c
1111
memcpy(data, d, l);
usr.sbin/unbound/smallapp/unbound-anchor.c
449
char* d = strdup(builtin_cert); /* to avoid const warnings in the
usr.sbin/unbound/smallapp/unbound-anchor.c
451
if(!d) {
usr.sbin/unbound/smallapp/unbound-anchor.c
455
bio = BIO_new_mem_buf(d, (int)strlen(d));
usr.sbin/unbound/smallapp/unbound-anchor.c
466
free(d);
usr.sbin/unbound/smallapp/unbound-checkconf.c
195
struct config_strlist* d;
usr.sbin/unbound/smallapp/unbound-checkconf.c
205
for(d = cfg->local_zones_nodefault; d; d = d->next) {
usr.sbin/unbound/smallapp/unbound-checkconf.c
209
if(COMPARE_ZONE_NAME(d->str, *zstr, len))
usr.sbin/unbound/smallapp/unbound-checkconf.c
215
if(COMPARE_ZONE_NAME(d->str, *zstr, len))
usr.sbin/unbound/smallapp/unbound-checkconf.c
220
if(COMPARE_ZONE_NAME(d->str, *zstr, len))
usr.sbin/unbound/smallapp/unbound-checkconf.c
223
if(COMPARE_ZONE_NAME(d->str, "localhost.", 10 - 1))
usr.sbin/unbound/smallapp/unbound-checkconf.c
229
d->str);
usr.sbin/unbound/smallapp/unbound-checkconf.c
253
int d;
usr.sbin/unbound/smallapp/unbound-checkconf.c
264
&d)) {
usr.sbin/unbound/smallapp/unbound-checkconf.c
280
&d)) {
usr.sbin/unbound/smallapp/unbound-checkconf.c
290
&d)) {
usr.sbin/unbound/smallapp/unbound-checkconf.c
314
&d)) {
usr.sbin/unbound/smallapp/unbound-checkconf.c
389
int d;
usr.sbin/unbound/smallapp/unbound-checkconf.c
468
!netblockstrtoaddr(cfg->out_ifs[i], UNBOUND_DNS_PORT, &a, &alen, &d)) {
usr.sbin/unbound/smallapp/unbound-checkconf.c
540
int d;
usr.sbin/unbound/smallapp/unbound-checkconf.c
546
&d)) {
usr.sbin/unbound/smallapp/unbound-checkconf.c
557
int d;
usr.sbin/unbound/smallapp/unbound-checkconf.c
563
&d)) {
usr.sbin/unbound/smallapp/unbound-host.c
233
char d[16];
usr.sbin/unbound/smallapp/unbound-host.c
234
sldns_wire2str_type_buf((uint16_t)t, d, sizeof(d));
usr.sbin/unbound/smallapp/unbound-host.c
235
snprintf(s, len, "%s", d);
usr.sbin/unbound/smallapp/unbound-host.c
242
char d[16];
usr.sbin/unbound/smallapp/unbound-host.c
243
sldns_wire2str_class_buf((uint16_t)c, d, sizeof(d));
usr.sbin/unbound/smallapp/unbound-host.c
244
snprintf(s, len, "%s", d);
usr.sbin/unbound/smallapp/unbound-host.c
251
char d[16];
usr.sbin/unbound/smallapp/unbound-host.c
252
sldns_wire2str_rcode_buf(r, d, sizeof(d));
usr.sbin/unbound/smallapp/unbound-host.c
253
snprintf(s, len, "%s", d);
usr.sbin/unbound/testcode/perf.c
504
uint8_t** d = (uint8_t**)calloc(newcap, sizeof(uint8_t*));
usr.sbin/unbound/testcode/perf.c
506
if(!d || !l) fatal_exit("out of memory");
usr.sbin/unbound/testcode/perf.c
508
memcpy(d, info->qlist_data, sizeof(uint8_t*)*
usr.sbin/unbound/testcode/perf.c
515
info->qlist_data = d;
usr.sbin/unbound/testcode/testpkts.c
738
uint8_t* d;
usr.sbin/unbound/testcode/testpkts.c
747
d = pkt+LDNS_HEADER_SIZE;
usr.sbin/unbound/testcode/testpkts.c
749
(void)sldns_wire2str_dname_scan(&d, &dl, &snull, &sl, pkt, pktlen, &comprloop);
usr.sbin/unbound/testcode/testpkts.c
752
return sldns_read_uint16(d);
usr.sbin/unbound/testcode/testpkts.c
758
uint8_t* d;
usr.sbin/unbound/testcode/testpkts.c
767
d = pkt+LDNS_HEADER_SIZE;
usr.sbin/unbound/testcode/testpkts.c
769
(void)sldns_wire2str_dname_scan(&d, &dl, &snull, &sl, pkt, pktlen, &comprloop);
usr.sbin/unbound/testcode/unitauth.c
814
struct packed_rrset_data* d;
usr.sbin/unbound/testcode/unitauth.c
827
d = (struct packed_rrset_data*)rep->rrsets[i]->entry.data;
usr.sbin/unbound/testcode/unitauth.c
828
for(j=0; j<d->count+d->rrsig_count; j++) {
usr.sbin/unbound/testcode/unitinfra.c
100
probedelay = d->probedelay;
usr.sbin/unbound/testcode/unitinfra.c
127
struct infra_data* d;
usr.sbin/unbound/testcode/unitinfra.c
162
unit_assert( (d=infra_lookup_host(slab, &one, onelen, zone, zonelen, 0, now, &k)) );
usr.sbin/unbound/testcode/unitinfra.c
163
unit_assert( d->ttl == now+cfg->host_ttl );
usr.sbin/unbound/testcode/unitinfra.c
164
unit_assert( d->edns_version == 0 );
usr.sbin/unbound/testcode/unitinfra.c
165
unit_assert(!d->isdnsseclame && !d->rec_lame && d->lame_type_A &&
usr.sbin/unbound/testcode/unitinfra.c
166
!d->lame_other);
usr.sbin/unbound/testcode/unitinfra.c
172
unit_assert( (d=infra_lookup_host(slab, &one, onelen, zone, zonelen, 0, now, &k)) );
usr.sbin/unbound/testcode/unitinfra.c
173
unit_assert(!d->isdnsseclame && !d->rec_lame && d->lame_type_A &&
usr.sbin/unbound/testcode/unitinfra.c
174
d->lame_other);
usr.sbin/unbound/testcode/unitinfra.c
53
struct infra_data* d;
usr.sbin/unbound/testcode/unitinfra.c
57
d = (struct infra_data*)e->data;
usr.sbin/unbound/testcode/unitinfra.c
58
if(d->ttl < now) {
usr.sbin/unbound/testcode/unitinfra.c
63
return d;
usr.sbin/unbound/testcode/unitinfra.c
74
struct infra_data* d;
usr.sbin/unbound/testcode/unitinfra.c
97
unit_assert( (d=infra_lookup_host(slab, &one, onelen, zone, zonelen, 0, *now, &k)) );
usr.sbin/unbound/testcode/unitinfra.c
98
unit_assert( d->timeout_A >= TIMEOUT_COUNT_MAX );
usr.sbin/unbound/testcode/unitinfra.c
99
unit_assert( d->probedelay > 0 );
usr.sbin/unbound/testcode/unitlruhash.c
158
deldata(d);
usr.sbin/unbound/testcode/unitlruhash.c
213
testdata_type* d = newdata(128);
usr.sbin/unbound/testcode/unitlruhash.c
216
k->entry.data = d;
usr.sbin/unbound/testcode/unitlruhash.c
219
lruhash_insert(table, myhash(12), &k->entry, d, NULL);
usr.sbin/unbound/testcode/unitlruhash.c
56
static void deldata(struct slabhash_testdata* d) {free(d);}
usr.sbin/unbound/testcode/unitlruhash.c
72
testdata_type* d = (testdata_type*)calloc(1,
usr.sbin/unbound/testcode/unitlruhash.c
74
if(!d) fatal_exit("out of memory");
usr.sbin/unbound/testcode/unitlruhash.c
75
d->data = val;
usr.sbin/unbound/testcode/unitlruhash.c
76
return d;
usr.sbin/unbound/testcode/unitlruhash.c
84
testdata_type* d = newdata(128);
usr.sbin/unbound/testcode/unitmsgparse.c
239
struct packed_rrset_data* d = (struct packed_rrset_data*)rrset->
usr.sbin/unbound/testcode/unitmsgparse.c
243
for(i=0; i<d->count+d->rrsig_count; i++) {
usr.sbin/unbound/testcode/unitneg.c
246
struct val_neg_data* d;
usr.sbin/unbound/testcode/unitneg.c
284
d = (struct val_neg_data*)walk;
usr.sbin/unbound/testcode/unitneg.c
285
n = random() % (int)(d->count);
usr.sbin/unbound/testcode/unitneg.c
290
d = (struct val_neg_data*)walk;
usr.sbin/unbound/testcode/unitneg.c
291
while(i!=n+1 && walk && walk != RBTREE_NULL && !d->in_use) {
usr.sbin/unbound/testcode/unitneg.c
293
d = (struct val_neg_data*)walk;
usr.sbin/unbound/testcode/unitneg.c
294
if(d->in_use)
usr.sbin/unbound/testcode/unitneg.c
301
if(d->in_use) {
usr.sbin/unbound/testcode/unitneg.c
303
log_nametypeclass(0, "neg delete item:", d->name, 0, 0);
usr.sbin/unbound/testcode/unitneg.c
304
neg_delete_data(neg, d);
usr.sbin/unbound/testcode/unitneg.c
325
struct val_neg_data* d;
usr.sbin/unbound/testcode/unitneg.c
328
d = (struct val_neg_data*)rbtree_first(&z->tree);
usr.sbin/unbound/testcode/unitneg.c
329
if(d && (rbnode_type*)d!=RBTREE_NULL)
usr.sbin/unbound/testcode/unitneg.c
330
res += d->count;
usr.sbin/unbound/testcode/unitneg.c
368
struct val_neg_data* d;
usr.sbin/unbound/testcode/unitneg.c
370
RBTREE_FOR(d, struct val_neg_data*, &zone->tree) {
usr.sbin/unbound/testcode/unitneg.c
371
if(dname_subdomain_c(d->name, data->name)) {
usr.sbin/unbound/testcode/unitneg.c
372
if(d->in_use)
usr.sbin/unbound/testcode/unitneg.c
419
struct val_neg_data* d;
usr.sbin/unbound/testcode/unitneg.c
422
RBTREE_FOR(d, struct val_neg_data*, &zone->tree) {
usr.sbin/unbound/testcode/unitneg.c
423
check_data(zone, d);
usr.sbin/unbound/testcode/unitneg.c
58
struct val_neg_data* d;
usr.sbin/unbound/testcode/unitneg.c
85
RBTREE_FOR(d, struct val_neg_data*, &z->tree) {
usr.sbin/unbound/testcode/unitneg.c
86
dname_str(d->name, buf);
usr.sbin/unbound/testcode/unitneg.c
89
(int)d->len, d->labs, (int)d->in_use, d->count);
usr.sbin/unbound/testcode/unitslabhash.c
74
testdata_type* d = (testdata_type*)calloc(1,
usr.sbin/unbound/testcode/unitslabhash.c
76
if(!d) fatal_exit("out of memory");
usr.sbin/unbound/testcode/unitslabhash.c
77
d->data = val;
usr.sbin/unbound/testcode/unitslabhash.c
78
return d;
usr.sbin/unbound/testcode/unitslabhash.c
87
testdata_type* d = newdata(128);
usr.sbin/unbound/testcode/unitslabhash.c
90
k->entry.data = d;
usr.sbin/unbound/testcode/unitslabhash.c
93
slabhash_insert(table, myhash(12), &k->entry, d, NULL);
usr.sbin/unbound/testcode/unitverify.c
141
struct packed_rrset_data* d = (struct packed_rrset_data*)rrset->
usr.sbin/unbound/testcode/unitverify.c
143
if(d->rrsig_count == 0)
usr.sbin/unbound/testcode/unitverify.c
157
struct packed_rrset_data* d = (struct packed_rrset_data*)
usr.sbin/unbound/testcode/unitverify.c
159
if(!d) return 0;
usr.sbin/unbound/testcode/unitverify.c
160
return d->count;
usr.sbin/unbound/util/alloc.h
221
# define i2d_DSA_SIG(d, s) unbound_lite_i2d_DSA_SIG(d, s)
usr.sbin/unbound/util/config_file.c
923
char* d = strdup(val);
usr.sbin/unbound/util/config_file.c
926
if(!d || !oi) { free(d); free(oi); return -1; }
usr.sbin/unbound/util/config_file.c
931
oi[cfg->num_out_ifs++] = d;
usr.sbin/unbound/util/configparser.y
1393
char* d;
usr.sbin/unbound/util/configparser.y
1397
d = cfg_parser->cfg->directory;
usr.sbin/unbound/util/configparser.y
1401
strncmp(d, cfg_parser->chroot, strlen(
usr.sbin/unbound/util/configparser.y
1403
d += strlen(cfg_parser->chroot);
usr.sbin/unbound/util/configparser.y
1404
if(d[0]) {
usr.sbin/unbound/util/configparser.y
1405
if(chdir(d))
usr.sbin/unbound/util/configparser.y
1407
d, strerror(errno));
usr.sbin/unbound/util/data/msgreply.c
1013
struct sockaddr_in6 *d = (struct sockaddr_in6 *)daddr;
usr.sbin/unbound/util/data/msgreply.c
1014
if(inet_ntop(d->sin6_family, &d->sin6_addr, da,
usr.sbin/unbound/util/data/msgreply.c
1018
port = ntohs(d->sin6_port);
usr.sbin/unbound/util/data/msgreply.c
1020
struct sockaddr_in *d = (struct sockaddr_in *)daddr;
usr.sbin/unbound/util/data/msgreply.c
1021
if(inet_ntop(d->sin_family, &d->sin_addr, da,
usr.sbin/unbound/util/data/msgreply.c
1025
port = ntohs(d->sin_port);
usr.sbin/unbound/util/data/msgreply.c
1507
struct packed_rrset_data* d = rrset->entry.data;
usr.sbin/unbound/util/data/msgreply.c
1513
d->count != 1) {
usr.sbin/unbound/util/data/msgreply.c
1517
*qname = d->rr_data[0] + 2;
usr.sbin/unbound/util/data/msgreply.c
1518
*qname_len = d->rr_len[0] - 2;
usr.sbin/unbound/util/data/msgreply.c
718
msgreply_sizefunc(void* k, void* d)
usr.sbin/unbound/util/data/msgreply.c
721
struct reply_info* r = (struct reply_info*)d;
usr.sbin/unbound/util/data/msgreply.c
740
reply_info_delete(void* d, void* ATTR_UNUSED(arg))
usr.sbin/unbound/util/data/msgreply.c
742
struct reply_info* r = (struct reply_info*)d;
usr.sbin/unbound/util/data/msgreply.h
373
size_t msgreply_sizefunc(void* k, void* d);
usr.sbin/unbound/util/data/msgreply.h
379
void reply_info_delete(void* d, void* arg);
usr.sbin/unbound/util/data/packed_rrset.c
141
struct packed_rrset_data* d = (struct packed_rrset_data*)data;
usr.sbin/unbound/util/data/packed_rrset.c
142
free(d);
usr.sbin/unbound/util/data/packed_rrset.c
199
struct packed_rrset_data* d;
usr.sbin/unbound/util/data/packed_rrset.c
205
d = (struct packed_rrset_data*)rrset->entry.data;
usr.sbin/unbound/util/data/packed_rrset.c
206
if(d->count < 1)
usr.sbin/unbound/util/data/packed_rrset.c
208
if(d->rr_len[0] < 3) /* at least rdatalen + 0byte root label */
usr.sbin/unbound/util/data/packed_rrset.c
210
len = sldns_read_uint16(d->rr_data[0]);
usr.sbin/unbound/util/data/packed_rrset.c
211
if(len != d->rr_len[0] - sizeof(uint16_t))
usr.sbin/unbound/util/data/packed_rrset.c
213
if(dname_valid(d->rr_data[0]+sizeof(uint16_t), len) != len)
usr.sbin/unbound/util/data/packed_rrset.c
215
*dname = d->rr_data[0]+sizeof(uint16_t);
usr.sbin/unbound/util/data/packed_rrset.c
276
struct packed_rrset_data* d = (struct packed_rrset_data*)rrset->
usr.sbin/unbound/util/data/packed_rrset.c
280
size_t rlen = rrset->rk.dname_len + 2 + 2 + 4 + d->rr_len[i];
usr.sbin/unbound/util/data/packed_rrset.c
288
if(i < d->count)
usr.sbin/unbound/util/data/packed_rrset.c
292
adjust = SERVE_ORIGINAL_TTL ? d->ttl_add : now;
usr.sbin/unbound/util/data/packed_rrset.c
293
if (d->rr_ttl[i] < adjust) adjust = d->rr_ttl[i]; /* Prevent negative TTL overflow */
usr.sbin/unbound/util/data/packed_rrset.c
295
(uint32_t)(d->rr_ttl[i]-adjust));
usr.sbin/unbound/util/data/packed_rrset.c
296
memmove(rr+rrset->rk.dname_len+8, d->rr_data[i], d->rr_len[i]);
usr.sbin/unbound/util/data/packed_rrset.c
300
log_info("rrbuf failure %d %s", (int)d->rr_len[i], dest);
usr.sbin/unbound/util/data/packed_rrset.c
310
struct packed_rrset_data* d = (struct packed_rrset_data*)rrset->
usr.sbin/unbound/util/data/packed_rrset.c
316
for(i=0; i<d->count+d->rrsig_count; i++) {
usr.sbin/unbound/util/data/packed_rrset.c
328
struct packed_rrset_data* d = (struct packed_rrset_data*)key->
usr.sbin/unbound/util/data/packed_rrset.c
330
return d->ttl;
usr.sbin/unbound/util/data/packed_rrset.c
339
struct packed_rrset_data* d;
usr.sbin/unbound/util/data/packed_rrset.c
355
d = regional_alloc_init(region, data, dsize);
usr.sbin/unbound/util/data/packed_rrset.c
356
if(!d)
usr.sbin/unbound/util/data/packed_rrset.c
358
ck->entry.data = d;
usr.sbin/unbound/util/data/packed_rrset.c
359
packed_rrset_ptr_fixup(d);
usr.sbin/unbound/util/data/packed_rrset.c
366
log_assert(d->ttl_add <= now ||
usr.sbin/unbound/util/data/packed_rrset.c
369
: (d->ttl_add > now ? d->ttl_add : now );
usr.sbin/unbound/util/data/packed_rrset.c
370
for(i=0; i<d->count + d->rrsig_count; i++) {
usr.sbin/unbound/util/data/packed_rrset.c
371
if(TTL_IS_EXPIRED(d->rr_ttl[i], now_control)) {
usr.sbin/unbound/util/data/packed_rrset.c
372
d->rr_ttl[i] = EXPIRED_REPLY_TTL_CALC(d->rr_ttl[i], data->ttl_add);
usr.sbin/unbound/util/data/packed_rrset.c
373
} else d->rr_ttl[i] -= now_control;
usr.sbin/unbound/util/data/packed_rrset.c
375
if(TTL_IS_EXPIRED(d->ttl, now_control)) {
usr.sbin/unbound/util/data/packed_rrset.c
376
d->ttl = EXPIRED_REPLY_TTL_CALC(d->ttl, data->ttl_add);
usr.sbin/unbound/util/data/packed_rrset.c
377
} else d->ttl -= now_control;
usr.sbin/unbound/util/data/packed_rrset.c
378
d->ttl_add = 0; /* TTLs have been made relative */
usr.sbin/unbound/util/data/packed_rrset.c
411
packed_rrset_find_rr(struct packed_rrset_data* d, uint8_t* rdata, size_t len,
usr.sbin/unbound/util/data/packed_rrset.c
415
for(i=0; i<d->count; i++) {
usr.sbin/unbound/util/data/packed_rrset.c
416
if(d->rr_len[i] != len)
usr.sbin/unbound/util/data/packed_rrset.c
418
if(memcmp(d->rr_data[i], rdata, len) == 0) {
usr.sbin/unbound/util/data/packed_rrset.c
73
struct packed_rrset_data* d = (struct packed_rrset_data*)data;
usr.sbin/unbound/util/data/packed_rrset.c
75
s += packed_rrset_sizeof(d) + lock_get_mem(&k->entry.lock);
usr.sbin/unbound/util/data/packed_rrset.c
80
packed_rrset_sizeof(struct packed_rrset_data* d)
usr.sbin/unbound/util/data/packed_rrset.c
83
if(d->rrsig_count > 0) {
usr.sbin/unbound/util/data/packed_rrset.c
84
s = ((uint8_t*)d->rr_data[d->count+d->rrsig_count-1] -
usr.sbin/unbound/util/data/packed_rrset.c
85
(uint8_t*)d) + d->rr_len[d->count+d->rrsig_count-1];
usr.sbin/unbound/util/data/packed_rrset.c
87
log_assert(d->count > 0);
usr.sbin/unbound/util/data/packed_rrset.c
88
s = ((uint8_t*)d->rr_data[d->count-1] - (uint8_t*)d) +
usr.sbin/unbound/util/data/packed_rrset.c
89
d->rr_len[d->count-1];
usr.sbin/unbound/util/data/packed_rrset.h
287
struct packed_rrset_data* d;
usr.sbin/unbound/util/data/packed_rrset.h
476
packed_rrset_find_rr(struct packed_rrset_data* d, uint8_t* rdata, size_t len,
usr.sbin/unbound/util/net_help.c
197
void* d;
usr.sbin/unbound/util/net_help.c
200
d = malloc(len);
usr.sbin/unbound/util/net_help.c
201
if(!d) return NULL;
usr.sbin/unbound/util/net_help.c
202
memcpy(d, data, len);
usr.sbin/unbound/util/net_help.c
203
return d;
usr.sbin/unbound/util/random.c
226
long int d = MAX_VALUE - (MAX_VALUE % x); /* d is divisible by x */
usr.sbin/unbound/util/random.c
228
while(d <= v)
usr.sbin/unbound/util/storage/lookup3.c
1013
uint32_t c[HASHSTATE], d[HASHSTATE], i=0, j=0, k, l, m=0, z;
usr.sbin/unbound/util/storage/lookup3.c
1043
d[0] = hashlittle(b, hlen, m);
usr.sbin/unbound/util/storage/lookup3.c
1047
e[l] &= (c[l]^d[l]);
usr.sbin/unbound/util/storage/lookup3.c
1048
f[l] &= ~(c[l]^d[l]);
usr.sbin/unbound/util/storage/lookup3.c
1051
x[l] &= d[l];
usr.sbin/unbound/util/storage/lookup3.c
1052
y[l] &= ~d[l];
usr.sbin/unbound/util/storage/lruhash.c
102
void *d;
usr.sbin/unbound/util/storage/lruhash.c
110
d = p->data;
usr.sbin/unbound/util/storage/lruhash.c
112
(*table->deldatafunc)(d, table->cb_arg);
usr.sbin/unbound/util/storage/lruhash.c
185
struct lruhash_entry* d;
usr.sbin/unbound/util/storage/lruhash.c
196
d = table->lru_end;
usr.sbin/unbound/util/storage/lruhash.c
199
log_assert(d && d->lru_prev);
usr.sbin/unbound/util/storage/lruhash.c
200
table->lru_end = d->lru_prev;
usr.sbin/unbound/util/storage/lruhash.c
201
d->lru_prev->lru_next = NULL;
usr.sbin/unbound/util/storage/lruhash.c
203
bin = &table->array[d->hash & table->size_mask];
usr.sbin/unbound/util/storage/lruhash.c
206
bin_overflow_remove(bin, d);
usr.sbin/unbound/util/storage/lruhash.c
207
d->overflow_next = *list;
usr.sbin/unbound/util/storage/lruhash.c
208
*list = d;
usr.sbin/unbound/util/storage/lruhash.c
209
lock_rw_wrlock(&d->lock);
usr.sbin/unbound/util/storage/lruhash.c
210
table->space_used -= table->sizefunc(d->key, d->data);
usr.sbin/unbound/util/storage/lruhash.c
212
(*table->markdelfunc)(d->key);
usr.sbin/unbound/util/storage/lruhash.c
213
lock_rw_unlock(&d->lock);
usr.sbin/unbound/util/storage/lruhash.c
356
void* d = reclaimlist->data;
usr.sbin/unbound/util/storage/lruhash.c
358
(*table->deldatafunc)(d, cb_arg);
usr.sbin/unbound/util/storage/lruhash.c
390
void *d;
usr.sbin/unbound/util/storage/lruhash.c
417
d = entry->data;
usr.sbin/unbound/util/storage/lruhash.c
419
(*table->deldatafunc)(d, table->cb_arg);
usr.sbin/unbound/util/storage/lruhash.c
427
void *d;
usr.sbin/unbound/util/storage/lruhash.c
433
d = p->data;
usr.sbin/unbound/util/storage/lruhash.c
438
(*table->deldatafunc)(d, table->cb_arg);
usr.sbin/unbound/util/storage/lruhash.c
558
void* d = reclaimlist->data;
usr.sbin/unbound/util/storage/lruhash.c
560
(*table->deldatafunc)(d, cb_arg);
usr.sbin/unbound/util/storage/lruhash.c
588
void* d = reclaimlist->data;
usr.sbin/unbound/util/storage/lruhash.c
590
(*table->deldatafunc)(d, cb_arg);
usr.sbin/unbound/util/storage/lruhash.c
697
void* d = reclaimlist->data;
usr.sbin/unbound/util/storage/lruhash.c
699
(*table->deldatafunc)(d, cb_arg);
usr.sbin/unbound/util/storage/slabhash.c
196
static void deldata(struct slabhash_testdata* d) {free(d);}
usr.sbin/unbound/util/timeval_func.c
47
timeval_subtract(struct timeval* d, const struct timeval* end, const struct timeval* start)
usr.sbin/unbound/util/timeval_func.c
51
d->tv_sec = end->tv_sec - start->tv_sec;
usr.sbin/unbound/util/timeval_func.c
54
d->tv_sec--;
usr.sbin/unbound/util/timeval_func.c
56
d->tv_usec = end_usec - start->tv_usec;
usr.sbin/unbound/util/timeval_func.c
62
timeval_add(struct timeval* d, const struct timeval* add)
usr.sbin/unbound/util/timeval_func.c
65
d->tv_sec += add->tv_sec;
usr.sbin/unbound/util/timeval_func.c
66
d->tv_usec += add->tv_usec;
usr.sbin/unbound/util/timeval_func.c
67
if(d->tv_usec >= 1000000 ) {
usr.sbin/unbound/util/timeval_func.c
68
d->tv_usec -= 1000000;
usr.sbin/unbound/util/timeval_func.c
69
d->tv_sec++;
usr.sbin/unbound/util/timeval_func.c
76
timeval_divide(struct timeval* avg, const struct timeval* sum, long long d)
usr.sbin/unbound/util/timeval_func.c
80
if(d <= 0) {
usr.sbin/unbound/util/timeval_func.c
85
avg->tv_sec = sum->tv_sec / d;
usr.sbin/unbound/util/timeval_func.c
86
avg->tv_usec = sum->tv_usec / d;
usr.sbin/unbound/util/timeval_func.c
88
leftover = sum->tv_sec - avg->tv_sec*d;
usr.sbin/unbound/util/timeval_func.c
91
avg->tv_usec += (((long long)leftover)*((long long)1000000))/d;
usr.sbin/unbound/util/timeval_func.h
50
void timeval_subtract(struct timeval* d, const struct timeval* end, const struct timeval* start);
usr.sbin/unbound/util/timeval_func.h
51
void timeval_add(struct timeval* d, const struct timeval* add);
usr.sbin/unbound/util/timeval_func.h
52
void timeval_divide(struct timeval* avg, const struct timeval* sum, long long d);
usr.sbin/unbound/util/tube.c
291
ssize_t r, d;
usr.sbin/unbound/util/tube.c
307
d = r;
usr.sbin/unbound/util/tube.c
308
while(d != (ssize_t)sizeof(len)) {
usr.sbin/unbound/util/tube.c
309
if((r=write(fd, ((char*)&len)+d, sizeof(len)-d)) == -1) {
usr.sbin/unbound/util/tube.c
316
d += r;
usr.sbin/unbound/util/tube.c
318
d = 0;
usr.sbin/unbound/util/tube.c
319
while(d != (ssize_t)len) {
usr.sbin/unbound/util/tube.c
320
if((r=write(fd, buf+d, len-d)) == -1) {
usr.sbin/unbound/util/tube.c
327
d += r;
usr.sbin/unbound/util/tube.c
337
ssize_t r, d;
usr.sbin/unbound/util/tube.c
356
d = r;
usr.sbin/unbound/util/tube.c
357
while(d != (ssize_t)sizeof(*len)) {
usr.sbin/unbound/util/tube.c
358
if((r=read(fd, ((char*)len)+d, sizeof(*len)-d)) == -1) {
usr.sbin/unbound/util/tube.c
367
d += r;
usr.sbin/unbound/util/tube.c
380
d = 0;
usr.sbin/unbound/util/tube.c
381
while(d < (ssize_t)*len) {
usr.sbin/unbound/util/tube.c
382
if((r=read(fd, (*buf)+d, (size_t)((ssize_t)*len)-d)) == -1) {
usr.sbin/unbound/util/tube.c
393
d += r;
usr.sbin/unbound/validator/autotrust.c
1282
rrsig_get_expiry(uint8_t* d, size_t len)
usr.sbin/unbound/validator/autotrust.c
1287
return sldns_read_uint32(d+2+8);
usr.sbin/unbound/validator/autotrust.c
1474
struct packed_rrset_data* d = (struct packed_rrset_data*)k->entry.data;
usr.sbin/unbound/validator/autotrust.c
1475
return d->ttl;
usr.sbin/unbound/validator/autotrust.c
1588
int d = val_favorite_ds_algo(ds_rrset);
usr.sbin/unbound/validator/autotrust.c
1594
ds_get_digest_algo(ds_rrset, ds_idx) != d)
usr.sbin/unbound/validator/val_anchor.c
1305
struct packed_rrset_data* d=(struct packed_rrset_data*)
usr.sbin/unbound/validator/val_anchor.c
1307
for(i=0; i<d->count; i++) {
usr.sbin/unbound/validator/val_anchor.c
1313
struct packed_rrset_data* d=(struct packed_rrset_data*)
usr.sbin/unbound/validator/val_anchor.c
1315
for(i=0; i<d->count; i++) {
usr.sbin/unbound/validator/val_kcache.c
132
struct key_entry_data* d = (struct key_entry_data*)
usr.sbin/unbound/validator/val_kcache.c
134
if(now <= d->ttl) {
usr.sbin/unbound/validator/val_kentry.c
123
struct key_entry_data *d = (struct key_entry_data*)
usr.sbin/unbound/validator/val_kentry.c
126
newd = regional_alloc_init(region, d, sizeof(*d));
usr.sbin/unbound/validator/val_kentry.c
130
if(d->rrset_data) {
usr.sbin/unbound/validator/val_kentry.c
132
d->rrset_data,
usr.sbin/unbound/validator/val_kentry.c
133
packed_rrset_sizeof(d->rrset_data));
usr.sbin/unbound/validator/val_kentry.c
138
if(d->reason) {
usr.sbin/unbound/validator/val_kentry.c
139
newd->reason = regional_strdup(region, d->reason);
usr.sbin/unbound/validator/val_kentry.c
143
if(d->algo) {
usr.sbin/unbound/validator/val_kentry.c
145
(char*)d->algo);
usr.sbin/unbound/validator/val_kentry.c
172
struct key_entry_data *d = (struct key_entry_data*)
usr.sbin/unbound/validator/val_kentry.c
175
newd = memdup(d, sizeof(*d));
usr.sbin/unbound/validator/val_kentry.c
182
if(d->rrset_data) {
usr.sbin/unbound/validator/val_kentry.c
183
newd->rrset_data = memdup(d->rrset_data,
usr.sbin/unbound/validator/val_kentry.c
184
packed_rrset_sizeof(d->rrset_data));
usr.sbin/unbound/validator/val_kentry.c
193
if(copy_reason && d->reason && *d->reason != 0) {
usr.sbin/unbound/validator/val_kentry.c
194
newd->reason = strdup(d->reason);
usr.sbin/unbound/validator/val_kentry.c
205
if(d->algo) {
usr.sbin/unbound/validator/val_kentry.c
206
newd->algo = (uint8_t*)strdup((char*)d->algo);
usr.sbin/unbound/validator/val_kentry.c
224
struct key_entry_data* d = (struct key_entry_data*)kkey->entry.data;
usr.sbin/unbound/validator/val_kentry.c
225
return (!d->isbad && d->rrset_data == NULL);
usr.sbin/unbound/validator/val_kentry.c
231
struct key_entry_data* d = (struct key_entry_data*)kkey->entry.data;
usr.sbin/unbound/validator/val_kentry.c
232
return (!d->isbad && d->rrset_data != NULL);
usr.sbin/unbound/validator/val_kentry.c
238
struct key_entry_data* d = (struct key_entry_data*)kkey->entry.data;
usr.sbin/unbound/validator/val_kentry.c
239
return (int)(d->isbad);
usr.sbin/unbound/validator/val_kentry.c
245
struct key_entry_data* d = (struct key_entry_data*)kkey->entry.data;
usr.sbin/unbound/validator/val_kentry.c
246
return d->reason;
usr.sbin/unbound/validator/val_kentry.c
252
struct key_entry_data* d = (struct key_entry_data*)kkey->entry.data;
usr.sbin/unbound/validator/val_kentry.c
253
return d->reason_bogus;
usr.sbin/unbound/validator/val_kentry.c
261
struct key_entry_key** k, struct key_entry_data** d)
usr.sbin/unbound/validator/val_kentry.c
273
*d = regional_alloc(region, sizeof(**d));
usr.sbin/unbound/validator/val_kentry.c
274
if(!*d)
usr.sbin/unbound/validator/val_kentry.c
276
(*k)->entry.data = *d;
usr.sbin/unbound/validator/val_kentry.c
287
struct key_entry_data* d;
usr.sbin/unbound/validator/val_kentry.c
288
if(!key_entry_setup(region, name, namelen, dclass, &k, &d))
usr.sbin/unbound/validator/val_kentry.c
290
d->ttl = now + ttl;
usr.sbin/unbound/validator/val_kentry.c
291
d->isbad = 0;
usr.sbin/unbound/validator/val_kentry.c
292
d->reason = (!reason || *reason == 0)
usr.sbin/unbound/validator/val_kentry.c
295
d->reason_bogus = reason_bogus;
usr.sbin/unbound/validator/val_kentry.c
296
d->rrset_type = LDNS_RR_TYPE_DNSKEY;
usr.sbin/unbound/validator/val_kentry.c
297
d->rrset_data = NULL;
usr.sbin/unbound/validator/val_kentry.c
298
d->algo = NULL;
usr.sbin/unbound/validator/val_kentry.c
310
struct key_entry_data* d;
usr.sbin/unbound/validator/val_kentry.c
313
if(!key_entry_setup(region, name, namelen, dclass, &k, &d))
usr.sbin/unbound/validator/val_kentry.c
315
d->ttl = rd->ttl + now;
usr.sbin/unbound/validator/val_kentry.c
316
d->isbad = 0;
usr.sbin/unbound/validator/val_kentry.c
317
d->reason = (!reason || *reason == 0)
usr.sbin/unbound/validator/val_kentry.c
320
d->reason_bogus = reason_bogus;
usr.sbin/unbound/validator/val_kentry.c
321
d->rrset_type = ntohs(rrset->rk.type);
usr.sbin/unbound/validator/val_kentry.c
322
d->rrset_data = (struct packed_rrset_data*)regional_alloc_init(region,
usr.sbin/unbound/validator/val_kentry.c
324
if(!d->rrset_data)
usr.sbin/unbound/validator/val_kentry.c
327
d->algo = (uint8_t*)regional_strdup(region, (char*)sigalg);
usr.sbin/unbound/validator/val_kentry.c
328
if(!d->algo)
usr.sbin/unbound/validator/val_kentry.c
330
} else d->algo = NULL;
usr.sbin/unbound/validator/val_kentry.c
331
packed_rrset_ptr_fixup(d->rrset_data);
usr.sbin/unbound/validator/val_kentry.c
342
struct key_entry_data* d;
usr.sbin/unbound/validator/val_kentry.c
343
if(!key_entry_setup(region, name, namelen, dclass, &k, &d))
usr.sbin/unbound/validator/val_kentry.c
345
d->ttl = now + ttl;
usr.sbin/unbound/validator/val_kentry.c
346
d->isbad = 1;
usr.sbin/unbound/validator/val_kentry.c
347
d->reason = (!reason || *reason == 0)
usr.sbin/unbound/validator/val_kentry.c
350
d->reason_bogus = reason_bogus;
usr.sbin/unbound/validator/val_kentry.c
351
d->rrset_type = LDNS_RR_TYPE_DNSKEY;
usr.sbin/unbound/validator/val_kentry.c
352
d->rrset_data = NULL;
usr.sbin/unbound/validator/val_kentry.c
353
d->algo = NULL;
usr.sbin/unbound/validator/val_kentry.c
360
struct key_entry_data* d = (struct key_entry_data*)kkey->entry.data;
usr.sbin/unbound/validator/val_kentry.c
363
if(!d || !d->rrset_data)
usr.sbin/unbound/validator/val_kentry.c
373
rrk->rk.type = htons(d->rrset_type);
usr.sbin/unbound/validator/val_kentry.c
376
rrd = regional_alloc_init(region, d->rrset_data,
usr.sbin/unbound/validator/val_kentry.c
377
packed_rrset_sizeof(d->rrset_data));
usr.sbin/unbound/validator/val_kentry.c
415
struct packed_rrset_data* d;
usr.sbin/unbound/validator/val_kentry.c
421
d = ((struct key_entry_data*)kkey->entry.data)->rrset_data;
usr.sbin/unbound/validator/val_kentry.c
422
for(i=0; i<d->count; i++) {
usr.sbin/unbound/validator/val_kentry.c
423
if(!(kd_get_flags(d, i) & DNSKEY_BIT_ZSK))
usr.sbin/unbound/validator/val_kentry.c
425
if(i==0 || dnskey_get_keysize(d, i) < bits)
usr.sbin/unbound/validator/val_kentry.c
426
bits = dnskey_get_keysize(d, i);
usr.sbin/unbound/validator/val_neg.c
1078
struct packed_rrset_data* d;
usr.sbin/unbound/validator/val_neg.c
1080
d = k->entry.data;
usr.sbin/unbound/validator/val_neg.c
1082
if( ! ( d->security == sec_status_secure ||
usr.sbin/unbound/validator/val_neg.c
1083
(d->security == sec_status_unchecked &&
usr.sbin/unbound/validator/val_neg.c
1084
d->rrsig_count > 0) ) ) {
usr.sbin/unbound/validator/val_neg.c
123
struct val_neg_data* d = (struct val_neg_data*)n;
usr.sbin/unbound/validator/val_neg.c
124
free(d->name);
usr.sbin/unbound/validator/val_neg.c
125
free(d);
usr.sbin/unbound/validator/val_neg.c
333
uint8_t* d;
usr.sbin/unbound/validator/val_neg.c
338
d = rep->rrsets[i]->rk.dname;
usr.sbin/unbound/validator/val_neg.c
341
while(!dname_is_root(d)) {
usr.sbin/unbound/validator/val_neg.c
343
dname_remove_label(&d, &len);
usr.sbin/unbound/validator/val_neg.c
357
static size_t calc_zone_need(uint8_t* d, size_t len)
usr.sbin/unbound/validator/val_neg.c
360
while(!dname_is_root(d)) {
usr.sbin/unbound/validator/val_neg.c
362
dname_remove_label(&d, &len);
usr.sbin/unbound/validator/val_neg.c
587
struct packed_rrset_data* d;
usr.sbin/unbound/validator/val_neg.c
592
d = (struct packed_rrset_data*)rep->rrsets[i]->
usr.sbin/unbound/validator/val_neg.c
594
if(d->security == sec_status_secure)
usr.sbin/unbound/validator/val_neg.c
683
struct packed_rrset_data* d = (struct packed_rrset_data*)nsec->
usr.sbin/unbound/validator/val_neg.c
692
if(!d || d->count == 0 || d->rr_len[0] < 2+1)
usr.sbin/unbound/validator/val_neg.c
695
end = d->rr_data[0]+2;
usr.sbin/unbound/validator/val_neg.c
696
end_len = dname_valid(end, d->rr_len[0]-2);
usr.sbin/unbound/validator/val_neg.c
758
struct packed_rrset_data* d;
usr.sbin/unbound/validator/val_neg.c
765
d = (struct packed_rrset_data*)nsec->entry.data;
usr.sbin/unbound/validator/val_neg.c
766
if( !(d->security == sec_status_secure ||
usr.sbin/unbound/validator/val_neg.c
767
(d->security == sec_status_unchecked && d->rrsig_count > 0)))
usr.sbin/unbound/validator/val_neg.c
868
struct packed_rrset_data* d;
usr.sbin/unbound/validator/val_neg.c
873
d = (struct packed_rrset_data*)rep->rrsets[i]->
usr.sbin/unbound/validator/val_neg.c
876
if(d->rrsig_count != 0) {
usr.sbin/unbound/validator/val_nsec.c
102
if(!d || d->count == 0 || d->rr_len[0] < 2+1)
usr.sbin/unbound/validator/val_nsec.c
104
len = dname_valid(d->rr_data[0]+2, d->rr_len[0]-2);
usr.sbin/unbound/validator/val_nsec.c
107
return nsecbitmap_has_type_rdata(d->rr_data[0]+2+len,
usr.sbin/unbound/validator/val_nsec.c
108
d->rr_len[0]-2-len, type);
usr.sbin/unbound/validator/val_nsec.c
122
struct packed_rrset_data* d = (struct packed_rrset_data*)nsec->
usr.sbin/unbound/validator/val_nsec.c
124
if(!d || d->count == 0 || d->rr_len[0] < 2+1) {
usr.sbin/unbound/validator/val_nsec.c
129
*nm = d->rr_data[0]+2;
usr.sbin/unbound/validator/val_nsec.c
130
*ln = dname_valid(*nm, d->rr_len[0]-2);
usr.sbin/unbound/validator/val_nsec.c
182
struct packed_rrset_data* d = (struct packed_rrset_data*)
usr.sbin/unbound/validator/val_nsec.c
185
if(!d) return 0;
usr.sbin/unbound/validator/val_nsec.c
186
if(d->security == sec_status_secure)
usr.sbin/unbound/validator/val_nsec.c
189
if(d->security == sec_status_secure)
usr.sbin/unbound/validator/val_nsec.c
191
d->security = val_verify_rrset_entry(env, ve, nsec, kkey, reason,
usr.sbin/unbound/validator/val_nsec.c
194
if(d->security == sec_status_secure) {
usr.sbin/unbound/validator/val_nsec.c
56
struct packed_rrset_data* d = (struct packed_rrset_data*)k->entry.data;
usr.sbin/unbound/validator/val_nsec.c
57
return d->ttl;
usr.sbin/unbound/validator/val_nsec.c
99
struct packed_rrset_data* d = (struct packed_rrset_data*)nsec->
usr.sbin/unbound/validator/val_nsec3.c
122
struct packed_rrset_data* d = (struct packed_rrset_data*)
usr.sbin/unbound/validator/val_nsec3.c
124
if(!d) return 0;
usr.sbin/unbound/validator/val_nsec3.c
125
return d->count;
usr.sbin/unbound/validator/val_nsec3.c
132
struct packed_rrset_data* d = (struct packed_rrset_data*)
usr.sbin/unbound/validator/val_nsec3.c
134
log_assert(d && r < (int)d->count);
usr.sbin/unbound/validator/val_nsec3.c
135
if(d->rr_len[r] < 2+2)
usr.sbin/unbound/validator/val_nsec3.c
137
return (int)(d->rr_data[r][2+1] & NSEC3_UNKNOWN_FLAGS);
usr.sbin/unbound/validator/val_nsec3.c
143
struct packed_rrset_data* d = (struct packed_rrset_data*)
usr.sbin/unbound/validator/val_nsec3.c
145
log_assert(d && r < (int)d->count);
usr.sbin/unbound/validator/val_nsec3.c
146
if(d->rr_len[r] < 2+2)
usr.sbin/unbound/validator/val_nsec3.c
148
return (int)(d->rr_data[r][2+1] & NSEC3_OPTOUT);
usr.sbin/unbound/validator/val_nsec3.c
1514
struct packed_rrset_data* d;
usr.sbin/unbound/validator/val_nsec3.c
1518
d = (struct packed_rrset_data*)list[i]->entry.data;
usr.sbin/unbound/validator/val_nsec3.c
1521
if(d->security == sec_status_secure)
usr.sbin/unbound/validator/val_nsec3.c
1524
if(d->security == sec_status_secure)
usr.sbin/unbound/validator/val_nsec3.c
1526
d->security = val_verify_rrset_entry(env, ve, list[i], kkey,
usr.sbin/unbound/validator/val_nsec3.c
1529
if(d->security != sec_status_secure) {
usr.sbin/unbound/validator/val_nsec3.c
155
struct packed_rrset_data* d = (struct packed_rrset_data*)
usr.sbin/unbound/validator/val_nsec3.c
157
log_assert(d && r < (int)d->count);
usr.sbin/unbound/validator/val_nsec3.c
158
if(d->rr_len[r] < 2+1)
usr.sbin/unbound/validator/val_nsec3.c
160
return (int)(d->rr_data[r][2+0]);
usr.sbin/unbound/validator/val_nsec3.c
167
struct packed_rrset_data* d = (struct packed_rrset_data*)
usr.sbin/unbound/validator/val_nsec3.c
169
log_assert(d && r < (int)d->count);
usr.sbin/unbound/validator/val_nsec3.c
170
if(d->rr_len[r] < 2+1)
usr.sbin/unbound/validator/val_nsec3.c
172
switch(d->rr_data[r][2+0]) {
usr.sbin/unbound/validator/val_nsec3.c
184
struct packed_rrset_data* d = (struct packed_rrset_data*)
usr.sbin/unbound/validator/val_nsec3.c
186
log_assert(d && r < (int)d->count);
usr.sbin/unbound/validator/val_nsec3.c
187
if(d->rr_len[r] < 2+4)
usr.sbin/unbound/validator/val_nsec3.c
189
memmove(&i, d->rr_data[r]+2+2, sizeof(i));
usr.sbin/unbound/validator/val_nsec3.c
199
struct packed_rrset_data* d = (struct packed_rrset_data*)
usr.sbin/unbound/validator/val_nsec3.c
201
log_assert(d && r < (int)d->count);
usr.sbin/unbound/validator/val_nsec3.c
202
if(d->rr_len[r] < 2+5) {
usr.sbin/unbound/validator/val_nsec3.c
207
*saltlen = (size_t)d->rr_data[r][2+4];
usr.sbin/unbound/validator/val_nsec3.c
208
if(d->rr_len[r] < 2+5+(size_t)*saltlen) {
usr.sbin/unbound/validator/val_nsec3.c
213
*salt = d->rr_data[r]+2+5;
usr.sbin/unbound/validator/val_nsec3.c
234
struct packed_rrset_data* d = (struct packed_rrset_data*)
usr.sbin/unbound/validator/val_nsec3.c
236
log_assert(d && r < (int)d->count);
usr.sbin/unbound/validator/val_nsec3.c
237
if(d->rr_len[r] < 2+5) {
usr.sbin/unbound/validator/val_nsec3.c
242
saltlen = (size_t)d->rr_data[r][2+4];
usr.sbin/unbound/validator/val_nsec3.c
243
if(d->rr_len[r] < 2+5+saltlen+1) {
usr.sbin/unbound/validator/val_nsec3.c
248
*nextlen = (size_t)d->rr_data[r][2+5+saltlen];
usr.sbin/unbound/validator/val_nsec3.c
249
if(d->rr_len[r] < 2+5+saltlen+1+*nextlen) {
usr.sbin/unbound/validator/val_nsec3.c
254
*next = d->rr_data[r]+2+5+saltlen+1;
usr.sbin/unbound/validator/val_nsec3.c
295
struct packed_rrset_data* d = (struct packed_rrset_data*)
usr.sbin/unbound/validator/val_nsec3.c
297
log_assert(d && r < (int)d->count);
usr.sbin/unbound/validator/val_nsec3.c
300
if(d->rr_len[r] < skiplen+1)
usr.sbin/unbound/validator/val_nsec3.c
302
skiplen += 1+(size_t)d->rr_data[r][skiplen];
usr.sbin/unbound/validator/val_nsec3.c
304
if(d->rr_len[r] < skiplen+1)
usr.sbin/unbound/validator/val_nsec3.c
306
skiplen += 1+(size_t)d->rr_data[r][skiplen];
usr.sbin/unbound/validator/val_nsec3.c
307
if(d->rr_len[r] < skiplen)
usr.sbin/unbound/validator/val_nsec3.c
309
bitlen = d->rr_len[r] - skiplen;
usr.sbin/unbound/validator/val_nsec3.c
310
bitmap = d->rr_data[r]+skiplen;
usr.sbin/unbound/validator/val_secalgo.c
474
unsigned char* d = *sig;
usr.sbin/unbound/validator/val_secalgo.c
481
while(r_rem < bnsize-1 && d[r_rem] == 0)
usr.sbin/unbound/validator/val_secalgo.c
484
while(s_rem < bnsize-1 && d[bnsize+s_rem] == 0)
usr.sbin/unbound/validator/val_secalgo.c
487
r_high = ((d[0+r_rem]&0x80)?1:0);
usr.sbin/unbound/validator/val_secalgo.c
488
s_high = ((d[bnsize+s_rem]&0x80)?1:0);
usr.sbin/unbound/validator/val_secalgo.c
504
memmove(p, d+r_rem, (size_t)bnsize-r_rem);
usr.sbin/unbound/validator/val_secalgo.c
514
memmove(p, d+bnsize+s_rem, (size_t)bnsize-s_rem);
usr.sbin/unbound/validator/val_sigcrypt.c
1002
if(d->rr_len[i] < d->rr_len[j])
usr.sbin/unbound/validator/val_sigcrypt.c
1004
if(d->rr_len[i] > d->rr_len[j])
usr.sbin/unbound/validator/val_sigcrypt.c
102
struct packed_rrset_data* d = (struct packed_rrset_data*)k->entry.data;
usr.sbin/unbound/validator/val_sigcrypt.c
103
return d->rrsig_count;
usr.sbin/unbound/validator/val_sigcrypt.c
1031
canonical_sort(struct ub_packed_rrset_key* rrset, struct packed_rrset_data* d,
usr.sbin/unbound/validator/val_sigcrypt.c
1036
for(i=0; i<d->count; i++) {
usr.sbin/unbound/validator/val_sigcrypt.c
116
struct packed_rrset_data* d = (struct packed_rrset_data*)k->entry.data;
usr.sbin/unbound/validator/val_sigcrypt.c
117
log_assert(sig_idx < d->rrsig_count);
usr.sbin/unbound/validator/val_sigcrypt.c
118
if(d->rr_len[d->count + sig_idx] < 2+18)
usr.sbin/unbound/validator/val_sigcrypt.c
120
memmove(&t, d->rr_data[d->count + sig_idx]+2+16, 2);
usr.sbin/unbound/validator/val_sigcrypt.c
1275
struct packed_rrset_data* d = (struct packed_rrset_data*)k->entry.data;
usr.sbin/unbound/validator/val_sigcrypt.c
1286
if(d->count > RR_COUNT_MAX)
usr.sbin/unbound/validator/val_sigcrypt.c
1288
rrs = regional_alloc(region, sizeof(struct canon_rr)*d->count);
usr.sbin/unbound/validator/val_sigcrypt.c
1294
canonical_sort(k, d, *sortree, rrs);
usr.sbin/unbound/validator/val_sigcrypt.c
1304
+ d->rr_len[walk->rr_idx]) {
usr.sbin/unbound/validator/val_sigcrypt.c
1317
sldns_buffer_write(buf, d->rr_data[walk->rr_idx],
usr.sbin/unbound/validator/val_sigcrypt.c
1318
d->rr_len[walk->rr_idx]);
usr.sbin/unbound/validator/val_sigcrypt.c
1319
canonicalize_rdata(buf, k, d->rr_len[walk->rr_idx]);
usr.sbin/unbound/validator/val_sigcrypt.c
133
struct packed_rrset_data* d = (struct packed_rrset_data*)k->entry.data;
usr.sbin/unbound/validator/val_sigcrypt.c
134
log_assert(sig_idx < d->rrsig_count);
usr.sbin/unbound/validator/val_sigcrypt.c
1344
struct packed_rrset_data* d = (struct packed_rrset_data*)k->entry.data;
usr.sbin/unbound/validator/val_sigcrypt.c
135
if(d->rr_len[d->count + sig_idx] < 2+3)
usr.sbin/unbound/validator/val_sigcrypt.c
1354
if(d->count > RR_COUNT_MAX)
usr.sbin/unbound/validator/val_sigcrypt.c
1356
rrs = regional_alloc(region, sizeof(struct canon_rr)*d->count);
usr.sbin/unbound/validator/val_sigcrypt.c
1361
canonical_sort(k, d, sortree, rrs);
usr.sbin/unbound/validator/val_sigcrypt.c
1367
+ d->rr_len[walk->rr_idx]) {
usr.sbin/unbound/validator/val_sigcrypt.c
137
return (int)d->rr_data[d->count + sig_idx][2+2];
usr.sbin/unbound/validator/val_sigcrypt.c
1383
sldns_buffer_write_u32(buf, d->rr_ttl[walk->rr_idx]);
usr.sbin/unbound/validator/val_sigcrypt.c
1384
sldns_buffer_write(buf, d->rr_data[walk->rr_idx],
usr.sbin/unbound/validator/val_sigcrypt.c
1385
d->rr_len[walk->rr_idx]);
usr.sbin/unbound/validator/val_sigcrypt.c
1386
canonicalize_rdata(buf, k, d->rr_len[walk->rr_idx]);
usr.sbin/unbound/validator/val_sigcrypt.c
145
struct packed_rrset_data* d = (struct packed_rrset_data*)k->entry.data;
usr.sbin/unbound/validator/val_sigcrypt.c
146
log_assert(d && idx < (d->count + d->rrsig_count));
usr.sbin/unbound/validator/val_sigcrypt.c
147
*rdata = d->rr_data[idx];
usr.sbin/unbound/validator/val_sigcrypt.c
148
*len = d->rr_len[idx];
usr.sbin/unbound/validator/val_sigcrypt.c
1495
struct packed_rrset_data* d =
usr.sbin/unbound/validator/val_sigcrypt.c
1521
if(MIN_TTL > (time_t)origttl && d->ttl > MIN_TTL) {
usr.sbin/unbound/validator/val_sigcrypt.c
1524
d->ttl = MIN_TTL;
usr.sbin/unbound/validator/val_sigcrypt.c
1526
else if(MIN_TTL <= origttl && d->ttl > (time_t)origttl) {
usr.sbin/unbound/validator/val_sigcrypt.c
1529
d->ttl = origttl;
usr.sbin/unbound/validator/val_sigcrypt.c
1532
if(expittl > 0 && d->ttl > (time_t)expittl) {
usr.sbin/unbound/validator/val_sigcrypt.c
1535
d->ttl = expittl;
usr.sbin/unbound/validator/val_sigcrypt.c
790
canonical_compare_byfield(struct packed_rrset_data* d,
usr.sbin/unbound/validator/val_sigcrypt.c
800
uint8_t* di = d->rr_data[i]+2; /* ptr to current rdata byte */
usr.sbin/unbound/validator/val_sigcrypt.c
801
uint8_t* dj = d->rr_data[j]+2;
usr.sbin/unbound/validator/val_sigcrypt.c
802
size_t ilen = d->rr_len[i]-2; /* length left in rdata */
usr.sbin/unbound/validator/val_sigcrypt.c
803
size_t jlen = d->rr_len[j]-2;
usr.sbin/unbound/validator/val_sigcrypt.c
90
struct packed_rrset_data* d = (struct packed_rrset_data*)
usr.sbin/unbound/validator/val_sigcrypt.c
92
if(!d) return 0;
usr.sbin/unbound/validator/val_sigcrypt.c
93
return d->count;
usr.sbin/unbound/validator/val_sigcrypt.c
933
struct packed_rrset_data* d = (struct packed_rrset_data*)
usr.sbin/unbound/validator/val_sigcrypt.c
957
if(!dname_valid(d->rr_data[i]+2, d->rr_len[i]-2) ||
usr.sbin/unbound/validator/val_sigcrypt.c
958
!dname_valid(d->rr_data[j]+2, d->rr_len[j]-2))
usr.sbin/unbound/validator/val_sigcrypt.c
960
return query_dname_compare(d->rr_data[i]+2,
usr.sbin/unbound/validator/val_sigcrypt.c
961
d->rr_data[j]+2);
usr.sbin/unbound/validator/val_sigcrypt.c
987
return canonical_compare_byfield(d, desc, i, j);
usr.sbin/unbound/validator/val_sigcrypt.c
995
minlen = d->rr_len[i]-2;
usr.sbin/unbound/validator/val_sigcrypt.c
996
if(minlen > d->rr_len[j]-2)
usr.sbin/unbound/validator/val_sigcrypt.c
997
minlen = d->rr_len[j]-2;
usr.sbin/unbound/validator/val_sigcrypt.c
998
c = memcmp(d->rr_data[i]+2, d->rr_data[j]+2, minlen);
usr.sbin/unbound/validator/val_utils.c
1003
struct packed_rrset_data* d = (struct packed_rrset_data*)rrset->
usr.sbin/unbound/validator/val_utils.c
1006
for(i = d->count; i< d->count+d->rrsig_count; i++) {
usr.sbin/unbound/validator/val_utils.c
1007
if(d->rr_len[i] > 2+18+len) {
usr.sbin/unbound/validator/val_utils.c
1009
if(!dname_valid(d->rr_data[i]+2+18, d->rr_len[i]-2-18))
usr.sbin/unbound/validator/val_utils.c
1011
if(query_dname_compare(name, d->rr_data[i]+2+18) == 0)
usr.sbin/unbound/validator/val_utils.c
1190
struct packed_rrset_data* d;
usr.sbin/unbound/validator/val_utils.c
1192
d = (struct packed_rrset_data*)rep->rrsets[i]->entry.data;
usr.sbin/unbound/validator/val_utils.c
1193
if(d->security == sec_status_unchecked &&
usr.sbin/unbound/validator/val_utils.c
1199
d->security = sec_status_indeterminate;
usr.sbin/unbound/validator/val_utils.c
1210
struct packed_rrset_data* d;
usr.sbin/unbound/validator/val_utils.c
1212
d = (struct packed_rrset_data*)rep->rrsets[i]->entry.data;
usr.sbin/unbound/validator/val_utils.c
1213
if(d->security == sec_status_unchecked &&
usr.sbin/unbound/validator/val_utils.c
1216
d->security = sec_status_insecure;
usr.sbin/unbound/validator/val_utils.c
1226
struct packed_rrset_data* d;
usr.sbin/unbound/validator/val_utils.c
1228
d = (struct packed_rrset_data*)rep->rrsets[i]->entry.data;
usr.sbin/unbound/validator/val_utils.c
1229
if(d->security == sec_status_unchecked) {
usr.sbin/unbound/validator/val_utils.c
1289
struct packed_rrset_data* d;
usr.sbin/unbound/validator/val_utils.c
1296
d = (struct packed_rrset_data*)rep->rrsets[i]->entry.data;
usr.sbin/unbound/validator/val_utils.c
1297
if(d && d->rrsig_count != 0) {
usr.sbin/unbound/validator/val_utils.c
1322
struct packed_rrset_data* d = copy->entry.data;
usr.sbin/unbound/validator/val_utils.c
1332
UPDATE_TTL_FROM_RRSET(msg->rep->ttl, d->ttl);
usr.sbin/unbound/validator/val_utils.c
190
struct packed_rrset_data* d = (struct packed_rrset_data*)
usr.sbin/unbound/validator/val_utils.c
193
if(d->rrsig_count == 0) {
usr.sbin/unbound/validator/val_utils.c
199
rrsig_get_signer(d->rr_data[d->count], d->rr_len[d->count],
usr.sbin/unbound/validator/val_utils.c
217
struct packed_rrset_data* d = (struct packed_rrset_data*)
usr.sbin/unbound/validator/val_utils.c
222
for(i=d->count; i<d->count+d->rrsig_count; i++) {
usr.sbin/unbound/validator/val_utils.c
223
sign = d->rr_data[i]+2+18;
usr.sbin/unbound/validator/val_utils.c
228
if(d->rr_len[i] > 2+19 && /* rdata, sig + root label*/
usr.sbin/unbound/validator/val_utils.c
388
struct packed_rrset_data* d = (struct packed_rrset_data*)
usr.sbin/unbound/validator/val_utils.c
390
if(!d) return 0;
usr.sbin/unbound/validator/val_utils.c
391
return d->count;
usr.sbin/unbound/validator/val_utils.c
398
struct packed_rrset_data* d = (struct packed_rrset_data*)
usr.sbin/unbound/validator/val_utils.c
400
if(!d) return 0;
usr.sbin/unbound/validator/val_utils.c
401
return d->ttl;
usr.sbin/unbound/validator/val_utils.c
412
struct packed_rrset_data* d = (struct packed_rrset_data*)rrset->
usr.sbin/unbound/validator/val_utils.c
414
if(d->security == sec_status_secure) {
usr.sbin/unbound/validator/val_utils.c
420
return d->security;
usr.sbin/unbound/validator/val_utils.c
424
if(d->security == sec_status_secure) {
usr.sbin/unbound/validator/val_utils.c
429
return d->security;
usr.sbin/unbound/validator/val_utils.c
441
if(sec > d->security) {
usr.sbin/unbound/validator/val_utils.c
443
d->security = sec;
usr.sbin/unbound/validator/val_utils.c
447
d->trust = rrset_trust_validated;
usr.sbin/unbound/validator/val_utils.c
453
d->ttl = ve->bogus_ttl;
usr.sbin/unbound/validator/val_utils.c
454
for(i=0; i<d->count+d->rrsig_count; i++)
usr.sbin/unbound/validator/val_utils.c
455
d->rr_ttl[i] = ve->bogus_ttl;
usr.sbin/unbound/validator/val_utils.c
570
int d, digest_algo = 0; /* DS digest algo 0 is not used. */
usr.sbin/unbound/validator/val_utils.c
577
d = ds_get_digest_algo(ds_rrset, i);
usr.sbin/unbound/validator/val_utils.c
578
if(d > digest_algo)
usr.sbin/unbound/validator/val_utils.c
579
digest_algo = d;
usr.sbin/unbound/validator/val_utils.c
930
rrsig_get_labcount(struct packed_rrset_data* d, size_t sig)
usr.sbin/unbound/validator/val_utils.c
932
if(d->rr_len[sig] < 2+4)
usr.sbin/unbound/validator/val_utils.c
934
return d->rr_data[sig][2+3];
usr.sbin/unbound/validator/val_utils.c
941
struct packed_rrset_data* d = (struct packed_rrset_data*)rrset->
usr.sbin/unbound/validator/val_utils.c
947
if(d->rrsig_count == 0) {
usr.sbin/unbound/validator/val_utils.c
950
labcount = rrsig_get_labcount(d, d->count + 0);
usr.sbin/unbound/validator/val_utils.c
952
for(i=1; i<d->rrsig_count; i++) {
usr.sbin/unbound/validator/val_utils.c
953
if(labcount != rrsig_get_labcount(d, d->count + i)) {
usr.sbin/unbound/validator/validator.c
1001
&& d->rrsig_count == 0) {
usr.sbin/unbound/validator/validator.c
998
struct packed_rrset_data* d = (struct packed_rrset_data*)
usr.sbin/vmd/pci.c
340
uint8_t b, d, f, o, baridx, cfgidx, ofs, sz;
usr.sbin/vmd/pci.c
360
d = (pci.pci_addr_reg >> 11) & 0x1f;
usr.sbin/vmd/pci.c
364
if (d >= pci.pci_dev_ct) {
usr.sbin/vmd/pci.c
366
DPRINTF("%s: invalid pci device access (%u)", __func__, d);
usr.sbin/vmd/pci.c
371
pd = &pci.pci_devices[d];
usr.sbin/vmd/pci.c
386
"pci device %d", d);
usr.sbin/vmd/pci.c
438
if (d > pci.pci_dev_ct || b > 0 || f > 0)
usr.sbin/vmd/vioqcow2.c
333
struct qcdisk *disk, *d;
usr.sbin/vmd/vioqcow2.c
345
for (d = disk; d; d = d->base)
usr.sbin/vmd/vioqcow2.c
346
if ((phys_off = xlate(d, off, NULL)) > 0)
usr.sbin/vmd/vioqcow2.c
374
if (!d)
usr.sbin/vmd/vioqcow2.c
376
else if (pread(d->fd, buf, sz, phys_off) != sz)
usr.sbin/vmd/vioqcow2.c
406
struct qcdisk *disk, *d;
usr.sbin/vmd/vioqcow2.c
411
d = p;
usr.sbin/vmd/vioqcow2.c
435
for (d = disk->base; d; d = d->base)
usr.sbin/vmd/vioqcow2.c
436
if ((phys_off = xlate(d, off, NULL)) > 0)
usr.sbin/vmd/vioqcow2.c
439
phys_off = mkcluster(disk, d, off, phys_off);
usr.sbin/ypldap/aldap.c
1149
int d;
usr.sbin/ypldap/aldap.c
1287
if (ober_get_boolean(root, &d) == -1) {
usr.sbin/ypldap/aldap.c
1291
fprintf(stderr, "%s(%d)\n", d ? "true" : "false", d);
usr.sbin/ypserv/ypserv/ypserv_db.c
202
struct opt_domain *d = NULL;
usr.sbin/ypserv/ypserv/ypserv_db.c
212
LIST_FOREACH(d, &doms, domsl) {
usr.sbin/ypserv/ypserv/ypserv_db.c
213
if (strcmp(domain, d->domain) == 0)
usr.sbin/ypserv/ypserv/ypserv_db.c
217
if (d) {
usr.sbin/ypserv/ypserv/ypserv_db.c
218
LIST_FOREACH(m, &d->dmaps, mapsl)
usr.sbin/ypserv/ypserv/ypserv_db.c
296
if (d == NULL) { /* allocate new domain? */
usr.sbin/ypserv/ypserv/ypserv_db.c
297
d = malloc(sizeof(*d));
usr.sbin/ypserv/ypserv/ypserv_db.c
298
if (d)
usr.sbin/ypserv/ypserv/ypserv_db.c
299
d->domain = strdup(domain);
usr.sbin/ypserv/ypserv/ypserv_db.c
300
if (d == NULL || d->domain == NULL) {
usr.sbin/ypserv/ypserv/ypserv_db.c
303
free(d);
usr.sbin/ypserv/ypserv/ypserv_db.c
306
LIST_INIT(&d->dmaps);
usr.sbin/ypserv/ypserv/ypserv_db.c
307
LIST_INSERT_HEAD(&doms, d, domsl);
usr.sbin/ypserv/ypserv/ypserv_db.c
327
m->dom = d;
usr.sbin/ypserv/ypserv/ypserv_db.c
330
LIST_INSERT_HEAD(&d->dmaps, m, mapsl);