Symbol: d
bin/ed/re.c
117
int c, d;
bin/ed/re.c
124
if (*s == '[' && ((d = *(s+1)) == '.' || d == ':' || d == '='))
bin/ed/re.c
125
for (s++, c = *++s; *s != ']' || c != d; s++)
bin/ls/ls.c
540
DISPLAY d;
bin/ls/ls.c
747
d.list = list;
bin/ls/ls.c
748
d.entries = entries;
bin/ls/ls.c
749
d.maxlen = maxlen;
bin/ls/ls.c
751
d.bcfile = bcfile;
bin/ls/ls.c
752
d.btotal = btotal;
bin/ls/ls.c
754
d.s_block = strlen(buf);
bin/ls/ls.c
755
d.s_flags = maxflags;
bin/ls/ls.c
756
d.s_group = maxgroup;
bin/ls/ls.c
758
d.s_inode = strlen(buf);
bin/ls/ls.c
760
d.s_nlink = strlen(buf);
bin/ls/ls.c
762
d.s_size = strlen(buf);
bin/ls/ls.c
763
d.s_user = maxuser;
bin/ls/ls.c
765
printfcn(&d);
bin/ps/print.c
787
u_int64_t d;
bin/ps/print.c
805
for (d = 1; n / d >= 100000; d *= u) {
bin/ps/print.c
833
if (w > 4 && n / d >= u) {
bin/ps/print.c
836
(uintmax_t)(n / (d * u)),
bin/ps/print.c
837
(u_int)(n / (d * u / 100) % 100),
bin/ps/print.c
841
w - 1, (uintmax_t)n / d, type);
bin/stty/print.c
86
#define put(n, f, d) \
bin/stty/print.c
87
if (fmt >= BSD || on(f) != (d)) \
crypto/libressl/apps/openssl/crl2p7.c
225
p7->d.sign = p7s;
crypto/libressl/apps/openssl/pkcs12.c
849
p7->d.encrypted->enc_data->algorithm);
crypto/libressl/apps/openssl/pkcs7.c
221
certs = p7->d.sign->cert;
crypto/libressl/apps/openssl/pkcs7.c
222
crls = p7->d.sign->crl;
crypto/libressl/apps/openssl/pkcs7.c
225
certs = p7->d.signed_and_enveloped->cert;
crypto/libressl/apps/openssl/pkcs7.c
226
crls = p7->d.signed_and_enveloped->crl;
crypto/libressl/apps/openssl/speed.c
1020
#define COUNT(d) (count)
crypto/libressl/apps/openssl/speed.c
1030
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1031
print_result(D_MD4, j, count, d);
crypto/libressl/apps/openssl/speed.c
1043
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1044
print_result(D_MD5, j, count, d);
crypto/libressl/apps/openssl/speed.c
1078
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1079
print_result(D_HMAC, j, count, d);
crypto/libressl/apps/openssl/speed.c
1091
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1092
print_result(D_SHA1, j, count, d);
crypto/libressl/apps/openssl/speed.c
1102
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1103
print_result(D_SHA256, j, count, d);
crypto/libressl/apps/openssl/speed.c
1115
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1116
print_result(D_SHA512, j, count, d);
crypto/libressl/apps/openssl/speed.c
1129
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1130
print_result(D_WHIRLPOOL, j, count, d);
crypto/libressl/apps/openssl/speed.c
1142
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1143
print_result(D_RMD160, j, count, d);
crypto/libressl/apps/openssl/speed.c
1155
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1156
print_result(D_RC4, j, count, d);
crypto/libressl/apps/openssl/speed.c
1168
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1169
print_result(D_CBC_DES, j, count, d);
crypto/libressl/apps/openssl/speed.c
1180
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1181
print_result(D_EDE3_DES, j, count, d);
crypto/libressl/apps/openssl/speed.c
1194
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1195
print_result(D_CBC_128_AES, j, count, d);
crypto/libressl/apps/openssl/speed.c
1206
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1207
print_result(D_CBC_192_AES, j, count, d);
crypto/libressl/apps/openssl/speed.c
1218
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1219
print_result(D_CBC_256_AES, j, count, d);
crypto/libressl/apps/openssl/speed.c
1230
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1231
print_result(D_IGE_128_AES, j, count, d);
crypto/libressl/apps/openssl/speed.c
1242
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1243
print_result(D_IGE_192_AES, j, count, d);
crypto/libressl/apps/openssl/speed.c
1254
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1255
print_result(D_IGE_256_AES, j, count, d);
crypto/libressl/apps/openssl/speed.c
1267
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1268
print_result(D_GHASH, j, count, d);
crypto/libressl/apps/openssl/speed.c
1294
d=Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1295
print_result(D_AES_128_GCM,j,count,d);
crypto/libressl/apps/openssl/speed.c
1322
d=Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1323
print_result(D_AES_256_GCM, j, count, d);
crypto/libressl/apps/openssl/speed.c
1352
d=Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1353
print_result(D_CHACHA20_POLY1305, j, count, d);
crypto/libressl/apps/openssl/speed.c
1367
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1368
print_result(D_CBC_128_CML, j, count, d);
crypto/libressl/apps/openssl/speed.c
1379
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1380
print_result(D_CBC_192_CML, j, count, d);
crypto/libressl/apps/openssl/speed.c
1391
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1392
print_result(D_CBC_256_CML, j, count, d);
crypto/libressl/apps/openssl/speed.c
1405
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1406
print_result(D_CBC_IDEA, j, count, d);
crypto/libressl/apps/openssl/speed.c
1419
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1420
print_result(D_CBC_RC2, j, count, d);
crypto/libressl/apps/openssl/speed.c
1433
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1434
print_result(D_CBC_BF, j, count, d);
crypto/libressl/apps/openssl/speed.c
1447
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1448
print_result(D_CBC_CAST, j, count, d);
crypto/libressl/apps/openssl/speed.c
1491
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1503
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1505
print_result(D_EVP, j, count, d);
crypto/libressl/apps/openssl/speed.c
1535
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1538
count, rsa_bits[j], d);
crypto/libressl/apps/openssl/speed.c
1539
rsa_results[j][0] = d / (double) count;
crypto/libressl/apps/openssl/speed.c
1564
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1567
count, rsa_bits[j], d);
crypto/libressl/apps/openssl/speed.c
1568
rsa_results[j][1] = d / (double) count;
crypto/libressl/apps/openssl/speed.c
1609
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1612
count, dsa_bits[j], d);
crypto/libressl/apps/openssl/speed.c
1613
dsa_results[j][0] = d / (double) count;
crypto/libressl/apps/openssl/speed.c
1639
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1642
count, dsa_bits[j], d);
crypto/libressl/apps/openssl/speed.c
1643
dsa_results[j][1] = d / (double) count;
crypto/libressl/apps/openssl/speed.c
1693
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1697
count, test_curves_bits[j], d);
crypto/libressl/apps/openssl/speed.c
1698
ecdsa_results[j][0] = d / (double) count;
crypto/libressl/apps/openssl/speed.c
1724
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1727
count, test_curves_bits[j], d);
crypto/libressl/apps/openssl/speed.c
1728
ecdsa_results[j][1] = d / (double) count;
crypto/libressl/apps/openssl/speed.c
1809
d = Time_F(STOP);
crypto/libressl/apps/openssl/speed.c
1813
count, test_curves_bits[j], d);
crypto/libressl/apps/openssl/speed.c
1814
ecdh_results[j][0] = d / (double) count;
crypto/libressl/apps/openssl/speed.c
2108
double d;
crypto/libressl/apps/openssl/speed.c
2115
d = atof(sstrsep(&p, sep));
crypto/libressl/apps/openssl/speed.c
2117
rsa_results[k][0] = 1 / (1 / rsa_results[k][0] + 1 / d);
crypto/libressl/apps/openssl/speed.c
2119
rsa_results[k][0] = d;
crypto/libressl/apps/openssl/speed.c
2121
d = atof(sstrsep(&p, sep));
crypto/libressl/apps/openssl/speed.c
2123
rsa_results[k][1] = 1 / (1 / rsa_results[k][1] + 1 / d);
crypto/libressl/apps/openssl/speed.c
2125
rsa_results[k][1] = d;
crypto/libressl/apps/openssl/speed.c
2128
double d;
crypto/libressl/apps/openssl/speed.c
2135
d = atof(sstrsep(&p, sep));
crypto/libressl/apps/openssl/speed.c
2137
rsa_results[k][0] = 1 / (1 / rsa_results[k][0] + 1 / d);
crypto/libressl/apps/openssl/speed.c
2139
rsa_results[k][0] = d;
crypto/libressl/apps/openssl/speed.c
2141
d = atof(sstrsep(&p, sep));
crypto/libressl/apps/openssl/speed.c
2143
rsa_results[k][1] = 1 / (1 / rsa_results[k][1] + 1 / d);
crypto/libressl/apps/openssl/speed.c
2145
rsa_results[k][1] = d;
crypto/libressl/apps/openssl/speed.c
2149
double d;
crypto/libressl/apps/openssl/speed.c
2156
d = atof(sstrsep(&p, sep));
crypto/libressl/apps/openssl/speed.c
2158
dsa_results[k][0] = 1 / (1 / dsa_results[k][0] + 1 / d);
crypto/libressl/apps/openssl/speed.c
2160
dsa_results[k][0] = d;
crypto/libressl/apps/openssl/speed.c
2162
d = atof(sstrsep(&p, sep));
crypto/libressl/apps/openssl/speed.c
2164
dsa_results[k][1] = 1 / (1 / dsa_results[k][1] + 1 / d);
crypto/libressl/apps/openssl/speed.c
2166
dsa_results[k][1] = d;
crypto/libressl/apps/openssl/speed.c
2170
double d;
crypto/libressl/apps/openssl/speed.c
2177
d = atof(sstrsep(&p, sep));
crypto/libressl/apps/openssl/speed.c
2179
ecdsa_results[k][0] = 1 / (1 / ecdsa_results[k][0] + 1 / d);
crypto/libressl/apps/openssl/speed.c
2181
ecdsa_results[k][0] = d;
crypto/libressl/apps/openssl/speed.c
2183
d = atof(sstrsep(&p, sep));
crypto/libressl/apps/openssl/speed.c
2185
ecdsa_results[k][1] = 1 / (1 / ecdsa_results[k][1] + 1 / d);
crypto/libressl/apps/openssl/speed.c
2187
ecdsa_results[k][1] = d;
crypto/libressl/apps/openssl/speed.c
2192
double d;
crypto/libressl/apps/openssl/speed.c
2199
d = atof(sstrsep(&p, sep));
crypto/libressl/apps/openssl/speed.c
2201
ecdh_results[k][0] = 1 / (1 / ecdh_results[k][0] + 1 / d);
crypto/libressl/apps/openssl/speed.c
2203
ecdh_results[k][0] = d;
crypto/libressl/apps/openssl/speed.c
361
double d = 0.0;
crypto/libressl/apps/openssl/x509.c
1083
unsigned char *d;
crypto/libressl/apps/openssl/x509.c
1108
d = (unsigned char *) m;
crypto/libressl/apps/openssl/x509.c
1109
z = i2d_X509_NAME(X509_get_subject_name(x), &d);
crypto/libressl/apps/openssl/x509.c
1116
d = (unsigned char *) m;
crypto/libressl/apps/openssl/x509.c
1118
BIO_printf(STDout, "0x%02X,", d[y]);
crypto/libressl/apps/openssl/x509.c
1126
z = i2d_X509_PUBKEY(X509_get_X509_PUBKEY(x), &d);
crypto/libressl/apps/openssl/x509.c
1133
d = (unsigned char *) m;
crypto/libressl/apps/openssl/x509.c
1135
BIO_printf(STDout, "0x%02X,", d[y]);
crypto/libressl/apps/openssl/x509.c
1143
z = i2d_X509(x, &d);
crypto/libressl/apps/openssl/x509.c
1150
d = (unsigned char *) m;
crypto/libressl/apps/openssl/x509.c
1152
BIO_printf(STDout, "0x%02X,", d[y]);
crypto/libressl/crypto/aes/aes_ige.c
70
#define load_block(d, s) (d) = *(const aes_block_t *)(s)
crypto/libressl/crypto/aes/aes_ige.c
71
#define store_block(d, s) *(aes_block_t *)(d) = (s)
crypto/libressl/crypto/aes/aes_ige.c
73
#define load_block(d, s) memcpy((d).data, (s), AES_BLOCK_SIZE)
crypto/libressl/crypto/aes/aes_ige.c
74
#define store_block(d, s) memcpy((d), (s).data, AES_BLOCK_SIZE)
crypto/libressl/crypto/asn1/a_bitstr.c
109
ASN1_BIT_STRING_set(ASN1_BIT_STRING *x, unsigned char *d, int len)
crypto/libressl/crypto/asn1/a_bitstr.c
111
return ASN1_STRING_set(x, d, len);
crypto/libressl/crypto/asn1/a_bitstr.c
239
unsigned char *p, *d;
crypto/libressl/crypto/asn1/a_bitstr.c
284
d = a->data;
crypto/libressl/crypto/asn1/a_bitstr.c
286
memcpy(p, d, len);
crypto/libressl/crypto/asn1/a_octet.c
96
ASN1_OCTET_STRING_set(ASN1_OCTET_STRING *x, const unsigned char *d, int len)
crypto/libressl/crypto/asn1/a_octet.c
98
return ASN1_STRING_set(x, d, len);
crypto/libressl/crypto/asn1/a_time_tm.c
520
ASN1_UTCTIME_check(const ASN1_UTCTIME *d)
crypto/libressl/crypto/asn1/a_time_tm.c
522
if (d->type != V_ASN1_UTCTIME)
crypto/libressl/crypto/asn1/a_time_tm.c
524
return (d->type == ASN1_time_parse(d->data, d->length, NULL, d->type));
crypto/libressl/crypto/asn1/a_time_tm.c
561
ASN1_GENERALIZEDTIME_check(const ASN1_GENERALIZEDTIME *d)
crypto/libressl/crypto/asn1/a_time_tm.c
563
if (d->type != V_ASN1_GENERALIZEDTIME)
crypto/libressl/crypto/asn1/a_time_tm.c
565
return (d->type == ASN1_time_parse(d->data, d->length, NULL, d->type));
crypto/libressl/crypto/asn1/t_pkey.c
87
(unsigned long)num->d[0], neg,
crypto/libressl/crypto/asn1/t_pkey.c
88
(unsigned long)num->d[0]) <= 0)
crypto/libressl/crypto/asn1/t_x509.c
378
int y = 0, M = 0, d = 0, h = 0, m = 0, s = 0;
crypto/libressl/crypto/asn1/t_x509.c
397
d = (v[6] - '0') * 10 + (v[7] - '0');
crypto/libressl/crypto/asn1/t_x509.c
416
mon[M - 1], d, h, m, s, f_len, f, y, (gmt) ? " GMT" : "") <= 0)
crypto/libressl/crypto/asn1/t_x509.c
432
int y = 0, M = 0, d = 0, h = 0, m = 0, s = 0;
crypto/libressl/crypto/asn1/t_x509.c
450
d = (v[4] - '0') * 10 + (v[5] - '0');
crypto/libressl/crypto/asn1/t_x509.c
459
mon[M - 1], d, h, m, s, y + 1900, (gmt) ? " GMT" : "") <= 0)
crypto/libressl/crypto/asn1/x_crl.c
601
if (!X509_NAME_cmp(nm, gen->d.directoryName))
crypto/libressl/crypto/bf/bf_ecb.c
82
BF_LONG l,d[2];
crypto/libressl/crypto/bf/bf_ecb.c
84
n2l(in,l); d[0]=l;
crypto/libressl/crypto/bf/bf_ecb.c
85
n2l(in,l); d[1]=l;
crypto/libressl/crypto/bf/bf_ecb.c
87
BF_encrypt(d,key);
crypto/libressl/crypto/bf/bf_ecb.c
89
BF_decrypt(d,key);
crypto/libressl/crypto/bf/bf_ecb.c
90
l=d[0]; l2n(l,out);
crypto/libressl/crypto/bf/bf_ecb.c
91
l=d[1]; l2n(l,out);
crypto/libressl/crypto/bf/bf_ecb.c
92
l=d[0]=d[1]=0;
crypto/libressl/crypto/bf/bf_ofb64.c
72
unsigned char d[8];
crypto/libressl/crypto/bf/bf_ofb64.c
83
dp=(char *)d;
crypto/libressl/crypto/bf/bf_ofb64.c
91
dp=(char *)d;
crypto/libressl/crypto/bf/bf_ofb64.c
96
*(out++)= *(in++)^d[n];
crypto/libressl/crypto/bf/bf_skey.c
70
const unsigned char *d,*end;
crypto/libressl/crypto/bf/bf_skey.c
78
d=data;
crypto/libressl/crypto/bf/bf_skey.c
82
ri= *(d++);
crypto/libressl/crypto/bf/bf_skey.c
83
if (d >= end) d=data;
crypto/libressl/crypto/bf/bf_skey.c
86
ri|= *(d++);
crypto/libressl/crypto/bf/bf_skey.c
87
if (d >= end) d=data;
crypto/libressl/crypto/bf/bf_skey.c
90
ri|= *(d++);
crypto/libressl/crypto/bf/bf_skey.c
91
if (d >= end) d=data;
crypto/libressl/crypto/bf/bf_skey.c
94
ri|= *(d++);
crypto/libressl/crypto/bf/bf_skey.c
95
if (d >= end) d=data;
crypto/libressl/crypto/bn/bn_add.c
123
ap = a->d;
crypto/libressl/crypto/bn/bn_add.c
124
bp = b->d;
crypto/libressl/crypto/bn/bn_add.c
125
rp = r->d;
crypto/libressl/crypto/bn/bn_add.c
168
ap = a->d;
crypto/libressl/crypto/bn/bn_add.c
169
bp = b->d;
crypto/libressl/crypto/bn/bn_add.c
170
rp = r->d;
crypto/libressl/crypto/bn/bn_asm.c
257
bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d)
crypto/libressl/crypto/bn/bn_asm.c
259
return ((BN_ULONG)(((((BN_ULLONG)h) << BN_BITS2)|l)/(BN_ULLONG)d));
crypto/libressl/crypto/bn/bn_asm.c
267
bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d)
crypto/libressl/crypto/bn/bn_asm.c
272
if (d == 0)
crypto/libressl/crypto/bn/bn_asm.c
275
i = BN_num_bits_word(d);
crypto/libressl/crypto/bn/bn_asm.c
279
if (h >= d)
crypto/libressl/crypto/bn/bn_asm.c
280
h -= d;
crypto/libressl/crypto/bn/bn_asm.c
283
d <<= i;
crypto/libressl/crypto/bn/bn_asm.c
287
dh = (d & BN_MASK2h) >> BN_BITS4;
crypto/libressl/crypto/bn/bn_asm.c
288
dl = (d & BN_MASK2l);
crypto/libressl/crypto/bn/bn_asm.c
316
h += d;
crypto/libressl/crypto/bn/bn_ctx.c
402
if (bn->d)
crypto/libressl/crypto/bn/bn_ctx.c
421
if (bn->d)
crypto/libressl/crypto/bn/bn_div.c
133
if (num->top > 0 && num->d[num->top - 1] == 0) {
crypto/libressl/crypto/bn/bn_div.c
193
snum->d[i] = 0;
crypto/libressl/crypto/bn/bn_div.c
198
snum->d[snum->top] = 0;
crypto/libressl/crypto/bn/bn_div.c
210
wnum.d = &(snum->d[loop]);
crypto/libressl/crypto/bn/bn_div.c
218
d0 = sdiv->d[div_n - 1];
crypto/libressl/crypto/bn/bn_div.c
219
d1 = (div_n == 1) ? 0 : sdiv->d[div_n - 2];
crypto/libressl/crypto/bn/bn_div.c
222
wnump = &(snum->d[num_n - 1]);
crypto/libressl/crypto/bn/bn_div.c
229
resp = &(res->d[loop - 1]);
crypto/libressl/crypto/bn/bn_div.c
241
bn_sub_words(wnum.d, wnum.d, sdiv->d, div_n);
crypto/libressl/crypto/bn/bn_div.c
338
l0 = bn_mul_words(tmp->d, sdiv->d, div_n, q);
crypto/libressl/crypto/bn/bn_div.c
339
tmp->d[div_n] = l0;
crypto/libressl/crypto/bn/bn_div.c
340
wnum.d--;
crypto/libressl/crypto/bn/bn_div.c
343
if (bn_sub_words(wnum.d, wnum.d, tmp->d, div_n + 1)) {
crypto/libressl/crypto/bn/bn_div.c
350
if (bn_add_words(wnum.d, wnum.d, sdiv->d, div_n))
crypto/libressl/crypto/bn/bn_exp.c
1067
BIGNUM *d;
crypto/libressl/crypto/bn/bn_exp.c
1089
if ((d = BN_CTX_get(ctx)) == NULL)
crypto/libressl/crypto/bn/bn_exp.c
1104
if (!BN_mod_mul(d, val[0], val[0], m, ctx))
crypto/libressl/crypto/bn/bn_exp.c
1109
!BN_mod_mul(val[i], val[i - 1], d,m, ctx))
crypto/libressl/crypto/bn/bn_exp.c
217
BN_ULONG A = a->d[0];
crypto/libressl/crypto/bn/bn_exp.c
394
BIGNUM *d, *r;
crypto/libressl/crypto/bn/bn_exp.c
425
if ((d = BN_CTX_get(ctx)) == NULL)
crypto/libressl/crypto/bn/bn_exp.c
460
if (!BN_mod_mul_montgomery(d, val[0], val[0], mont, ctx))
crypto/libressl/crypto/bn/bn_exp.c
466
d, mont, ctx))
crypto/libressl/crypto/bn/bn_exp.c
579
table[j] = b->d[i];
crypto/libressl/crypto/bn/bn_exp.c
605
b->d[i] = acc;
crypto/libressl/crypto/bn/bn_exp.c
630
b->d[i] = acc;
crypto/libressl/crypto/bn/bn_exp.c
708
powerbufLen = sizeof(m->d[0]) * (top * numPowers +
crypto/libressl/crypto/bn/bn_exp.c
716
tmp.d = (BN_ULONG *)(powerbuf + sizeof(m->d[0]) * top * numPowers);
crypto/libressl/crypto/bn/bn_exp.c
717
am.d = tmp.d + top;
crypto/libressl/crypto/bn/bn_exp.c
728
tmp.d[0] = (0 - m - >d[0]) & BN_MASK2; /* 2^(top*BN_BITS2) - m */
crypto/libressl/crypto/bn/bn_exp.c
730
tmp.d[i] = (~m->d[i]) & BN_MASK2;
crypto/libressl/crypto/bn/bn_exp.c
759
BN_ULONG *np = mont->N.d, *n0 = mont->n0;
crypto/libressl/crypto/bn/bn_exp.c
764
am.d[i] = 0;
crypto/libressl/crypto/bn/bn_exp.c
766
tmp.d[i] = 0;
crypto/libressl/crypto/bn/bn_exp.c
768
bn_scatter5(tmp.d, top, powerbuf, 0);
crypto/libressl/crypto/bn/bn_exp.c
769
bn_scatter5(am.d, am.top, powerbuf, 1);
crypto/libressl/crypto/bn/bn_exp.c
770
bn_mul_mont(tmp.d, am.d, am.d, np, n0, top);
crypto/libressl/crypto/bn/bn_exp.c
771
bn_scatter5(tmp.d, top, powerbuf, 2);
crypto/libressl/crypto/bn/bn_exp.c
776
bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np,
crypto/libressl/crypto/bn/bn_exp.c
778
bn_scatter5(tmp.d, top, powerbuf, i);
crypto/libressl/crypto/bn/bn_exp.c
783
bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
crypto/libressl/crypto/bn/bn_exp.c
784
bn_scatter5(tmp.d, top, powerbuf, i);
crypto/libressl/crypto/bn/bn_exp.c
788
bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np,
crypto/libressl/crypto/bn/bn_exp.c
790
bn_scatter5(tmp.d, top, powerbuf, i);
crypto/libressl/crypto/bn/bn_exp.c
792
bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
crypto/libressl/crypto/bn/bn_exp.c
793
bn_scatter5(tmp.d, top, powerbuf, j);
crypto/libressl/crypto/bn/bn_exp.c
797
bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np,
crypto/libressl/crypto/bn/bn_exp.c
799
bn_scatter5(tmp.d, top, powerbuf, i);
crypto/libressl/crypto/bn/bn_exp.c
800
bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
crypto/libressl/crypto/bn/bn_exp.c
801
bn_scatter5(tmp.d, top, powerbuf, 2*i);
crypto/libressl/crypto/bn/bn_exp.c
804
bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np,
crypto/libressl/crypto/bn/bn_exp.c
806
bn_scatter5(tmp.d, top, powerbuf, i);
crypto/libressl/crypto/bn/bn_exp.c
812
bn_gather5(tmp.d, top, powerbuf, wvalue);
crypto/libressl/crypto/bn/bn_exp.c
821
bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
crypto/libressl/crypto/bn/bn_exp.c
822
bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
crypto/libressl/crypto/bn/bn_exp.c
823
bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
crypto/libressl/crypto/bn/bn_exp.c
824
bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
crypto/libressl/crypto/bn/bn_exp.c
825
bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
crypto/libressl/crypto/bn/bn_exp.c
826
bn_mul_mont_gather5(tmp.d, tmp.d, powerbuf, np, n0, top, wvalue);
crypto/libressl/crypto/bn/bn_exp.c
916
BIGNUM *d, *r, *t;
crypto/libressl/crypto/bn/bn_exp.c
948
a %= m->d[0]; /* make sure that 'a' is reduced */
crypto/libressl/crypto/bn/bn_exp.c
967
if ((d = BN_CTX_get(ctx)) == NULL)
crypto/libressl/crypto/bn/bn_exp2.c
127
BIGNUM *d, *r;
crypto/libressl/crypto/bn/bn_exp2.c
153
if ((d = BN_CTX_get(ctx)) == NULL)
crypto/libressl/crypto/bn/bn_exp2.c
192
if (!BN_mod_mul_montgomery(d, val1[0], val1[0], mont, ctx))
crypto/libressl/crypto/bn/bn_exp2.c
199
d, mont, ctx))
crypto/libressl/crypto/bn/bn_exp2.c
222
if (!BN_mod_mul_montgomery(d, val2[0], val2[0], mont, ctx))
crypto/libressl/crypto/bn/bn_exp2.c
229
d, mont, ctx))
crypto/libressl/crypto/bn/bn_gcd.c
489
if (!BN_mul_word(tmp, D->d[0]))
crypto/libressl/crypto/bn/bn_gf2m.c
1280
if (!a->d[i])
crypto/libressl/crypto/bn/bn_gf2m.c
1285
if (a->d[i] & mask) {
crypto/libressl/crypto/bn/bn_gf2m.c
343
r->d[i] = at->d[i] ^ bt->d[i];
crypto/libressl/crypto/bn/bn_gf2m.c
346
r->d[i] = at->d[i];
crypto/libressl/crypto/bn/bn_gf2m.c
386
r->d[j] = a->d[j];
crypto/libressl/crypto/bn/bn_gf2m.c
390
z = r->d;
crypto/libressl/crypto/bn/bn_gf2m.c
510
s->d[i] = 0;
crypto/libressl/crypto/bn/bn_gf2m.c
513
y0 = b->d[j];
crypto/libressl/crypto/bn/bn_gf2m.c
514
y1 = ((j + 1) == b->top) ? 0 : b->d[j + 1];
crypto/libressl/crypto/bn/bn_gf2m.c
516
x0 = a->d[i];
crypto/libressl/crypto/bn/bn_gf2m.c
517
x1 = ((i + 1) == a->top) ? 0 : a->d[i + 1];
crypto/libressl/crypto/bn/bn_gf2m.c
520
s->d[i + j + k] ^= zz[k];
crypto/libressl/crypto/bn/bn_gf2m.c
583
s->d[2 * i + 1] = SQR1(a->d[i]);
crypto/libressl/crypto/bn/bn_gf2m.c
584
s->d[2 * i] = SQR0(a->d[i]);
crypto/libressl/crypto/bn/bn_gf2m.c
706
udp = u->d;
crypto/libressl/crypto/bn/bn_gf2m.c
712
bdp = b->d;
crypto/libressl/crypto/bn/bn_gf2m.c
719
cdp = c->d;
crypto/libressl/crypto/bn/bn_gf2m.c
723
vdp = v->d; /* It pays off to "cache" *->d pointers, because
crypto/libressl/crypto/bn/bn_gf2m.c
734
b0 ^= p->d[0] & mask;
crypto/libressl/crypto/bn/bn_gf2m.c
740
b1 = bdp[i + 1] ^ (p->d[i + 1] & mask);
crypto/libressl/crypto/bn/bn_gf2m.c
769
vdp = v->d;
crypto/libressl/crypto/bn/bn_gf2m.c
771
cdp = c->d;
crypto/libressl/crypto/bn/bn_isqrt.c
107
e = d;
crypto/libressl/crypto/bn/bn_isqrt.c
108
d = c >> s;
crypto/libressl/crypto/bn/bn_isqrt.c
110
if (!BN_rshift(b, n, 2 * c - d - e + 1))
crypto/libressl/crypto/bn/bn_isqrt.c
116
if (!BN_lshift(a, a, d - e - 1))
crypto/libressl/crypto/bn/bn_isqrt.c
49
int c, d, e, s;
crypto/libressl/crypto/bn/bn_isqrt.c
86
d = 0;
crypto/libressl/crypto/bn/bn_lcl.h
122
BN_ULONG *d; /* Pointer to an array of 'BN_BITS2' bit chunks. */
crypto/libressl/crypto/bn/bn_lcl.h
334
BN_ULONG *ftl = &(a)->d[(a)->top-1]; \
crypto/libressl/crypto/bn/bn_lcl.h
497
#define BN_lsw(n) (((n)->top == 0) ? (BN_ULONG) 0 : (n)->d[0])
crypto/libressl/crypto/bn/bn_lcl.h
573
memcpy(&_not_const, &_bnum1->d, sizeof(BN_ULONG*)); \
crypto/libressl/crypto/bn/bn_lcl.h
588
(_bnum2->d[_bnum2->top - 1] != 0)); \
crypto/libressl/crypto/bn/bn_lcl.h
618
for (ftl= &((a)->d[tmp_top-1]); tmp_top > 0; tmp_top--) \
crypto/libressl/crypto/bn/bn_lcl.h
628
BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d);
crypto/libressl/crypto/bn/bn_lcl.h
644
int BN_div_nonct(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
crypto/libressl/crypto/bn/bn_lcl.h
646
int BN_div_ct(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
crypto/libressl/crypto/bn/bn_lcl.h
648
#define BN_mod_ct(rem,m,d,ctx) BN_div_ct(NULL,(rem),(m),(d),(ctx))
crypto/libressl/crypto/bn/bn_lcl.h
649
#define BN_mod_nonct(rem,m,d,ctx) BN_div_nonct(NULL,(rem),(m),(d),(ctx))
crypto/libressl/crypto/bn/bn_lib.c
1056
t = (a->d[i] ^ b->d[i]) & condition;
crypto/libressl/crypto/bn/bn_lib.c
1057
a->d[i] ^= t;
crypto/libressl/crypto/bn/bn_lib.c
1058
b->d[i] ^= t;
crypto/libressl/crypto/bn/bn_lib.c
1075
return (a->top == 1 && a->d[0] == w) || (w == 0 && a->top == 0);
crypto/libressl/crypto/bn/bn_lib.c
108
ret->d = NULL;
crypto/libressl/crypto/bn/bn_lib.c
1099
return a->top > 0 && (a->d[0] & 1);
crypto/libressl/crypto/bn/bn_lib.c
124
if (a->d != NULL)
crypto/libressl/crypto/bn/bn_lib.c
125
explicit_bzero(a->d, a->dmax * sizeof(a->d[0]));
crypto/libressl/crypto/bn/bn_lib.c
138
if (a->d != NULL && !(BN_get_flags(a, BN_FLG_STATIC_DATA)))
crypto/libressl/crypto/bn/bn_lib.c
139
freezero(a->d, a->dmax * sizeof(a->d[0]));
crypto/libressl/crypto/bn/bn_lib.c
263
return ((i * BN_BITS2) + BN_num_bits_word(a->d[i]));
crypto/libressl/crypto/bn/bn_lib.c
291
B = b->d;
crypto/libressl/crypto/bn/bn_lib.c
326
memcpy(A, b->d, sizeof(b->d[0]) * b->top);
crypto/libressl/crypto/bn/bn_lib.c
366
r->d = a;
crypto/libressl/crypto/bn/bn_lib.c
398
if (b->d)
crypto/libressl/crypto/bn/bn_lib.c
399
freezero(b->d, b->dmax * sizeof(b->d[0]));
crypto/libressl/crypto/bn/bn_lib.c
400
b->d = a;
crypto/libressl/crypto/bn/bn_lib.c
409
BN_ULONG *A = &(b->d[b->top]);
crypto/libressl/crypto/bn/bn_lib.c
422
assert(A == &(b->d[b->dmax]));
crypto/libressl/crypto/bn/bn_lib.c
464
A = a->d;
crypto/libressl/crypto/bn/bn_lib.c
465
B = b->d;
crypto/libressl/crypto/bn/bn_lib.c
486
memcpy(a->d, b->d, sizeof(b->d[0]) * b->top);
crypto/libressl/crypto/bn/bn_lib.c
508
tmp_d = a->d;
crypto/libressl/crypto/bn/bn_lib.c
513
a->d = b->d;
crypto/libressl/crypto/bn/bn_lib.c
518
b->d = tmp_d;
crypto/libressl/crypto/bn/bn_lib.c
537
return a->d[0];
crypto/libressl/crypto/bn/bn_lib.c
561
a->d[0] = w;
crypto/libressl/crypto/bn/bn_lib.c
599
ret->d[--i] = l;
crypto/libressl/crypto/bn/bn_lib.c
657
l = a->d[i / BN_BYTES];
crypto/libressl/crypto/bn/bn_lib.c
725
ret->d[--i] = l;
crypto/libressl/crypto/bn/bn_lib.c
761
ap = a->d;
crypto/libressl/crypto/bn/bn_lib.c
762
bp = b->d;
crypto/libressl/crypto/bn/bn_lib.c
810
t1 = a->d[i];
crypto/libressl/crypto/bn/bn_lib.c
811
t2 = b->d[i];
crypto/libressl/crypto/bn/bn_lib.c
834
a->d[k] = 0;
crypto/libressl/crypto/bn/bn_lib.c
838
a->d[i] |= (((BN_ULONG)1) << j);
crypto/libressl/crypto/bn/bn_lib.c
857
a->d[i] &= (~(((BN_ULONG)1) << j));
crypto/libressl/crypto/bn/bn_lib.c
874
return (int)(((a->d[i]) >> j) & ((BN_ULONG)1));
crypto/libressl/crypto/bn/bn_lib.c
894
a->d[w] &= ~(BN_MASK2 << b);
crypto/libressl/crypto/bn/bn_lib.c
987
t = (a->d[ind] ^ b->d[ind]) & condition; \
crypto/libressl/crypto/bn/bn_lib.c
988
a->d[ind] ^= t; \
crypto/libressl/crypto/bn/bn_lib.c
989
b->d[ind] ^= t; \
crypto/libressl/crypto/bn/bn_mod.c
119
BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
crypto/libressl/crypto/bn/bn_mod.c
124
if (!(BN_mod_ct(r, m,d, ctx)))
crypto/libressl/crypto/bn/bn_mod.c
129
if (d->neg)
crypto/libressl/crypto/bn/bn_mod.c
130
return BN_sub(r, r, d);
crypto/libressl/crypto/bn/bn_mod.c
132
return BN_add(r, r, d);
crypto/libressl/crypto/bn/bn_mont.c
142
if (bn_mul_mont(r->d, a->d, b->d, mont->N.d, mont->n0, num)) {
crypto/libressl/crypto/bn/bn_mont.c
204
np = n->d;
crypto/libressl/crypto/bn/bn_mont.c
205
rp = r->d;
crypto/libressl/crypto/bn/bn_mont.c
234
rp = ret->d;
crypto/libressl/crypto/bn/bn_mont.c
235
ap = &(r->d[nl]);
crypto/libressl/crypto/bn/bn_mont.c
389
tmod.d = buf;
crypto/libressl/crypto/bn/bn_mont.c
407
if ((buf[0] = mod->d[0]))
crypto/libressl/crypto/bn/bn_mont.c
409
if ((buf[1] = mod->top > 1 ? mod->d[1] : 0))
crypto/libressl/crypto/bn/bn_mont.c
426
Ri->d[0] = BN_MASK2;
crypto/libressl/crypto/bn/bn_mont.c
427
Ri->d[1] = BN_MASK2;
crypto/libressl/crypto/bn/bn_mont.c
434
mont->n0[0] = (Ri->top > 0) ? Ri->d[0] : 0;
crypto/libressl/crypto/bn/bn_mont.c
435
mont->n0[1] = (Ri->top > 1) ? Ri->d[1] : 0;
crypto/libressl/crypto/bn/bn_mont.c
441
buf[0] = mod->d[0]; /* tmod = N mod word size */
crypto/libressl/crypto/bn/bn_mont.c
462
mont->n0[0] = (Ri->top > 0) ? Ri->d[0] : 0;
crypto/libressl/crypto/bn/bn_mul.c
1022
bn_mul_part_recursive(rr->d, a->d, b->d,
crypto/libressl/crypto/bn/bn_mul.c
1023
j, al - j, bl - j, t->d);
crypto/libressl/crypto/bn/bn_mul.c
1031
bn_mul_recursive(rr->d, a->d, b->d,
crypto/libressl/crypto/bn/bn_mul.c
1032
j, al - j, bl - j, t->d);
crypto/libressl/crypto/bn/bn_mul.c
1042
tmp_bn->d[bl] = 0;
crypto/libressl/crypto/bn/bn_mul.c
1049
tmp_bn->d[al] = 0;
crypto/libressl/crypto/bn/bn_mul.c
1067
bn_mul_recursive(rr->d, a->d, b->d, al, t->d);
crypto/libressl/crypto/bn/bn_mul.c
1073
bn_mul_part_recursive(rr->d, a->d, b->d,
crypto/libressl/crypto/bn/bn_mul.c
1074
al - j, j, t->d);
crypto/libressl/crypto/bn/bn_mul.c
1085
bn_mul_normal(rr->d, a->d, al, b->d, bl);
crypto/libressl/crypto/bn/bn_mul.c
988
bn_mul_comba4(rr->d, a->d, b->d);
crypto/libressl/crypto/bn/bn_mul.c
996
bn_mul_comba8(rr->d, a->d, b->d);
crypto/libressl/crypto/bn/bn_nist.c
1033
BN_ULONG *a_d = a->d;
crypto/libressl/crypto/bn/bn_nist.c
1055
r_d = r->d;
crypto/libressl/crypto/bn/bn_nist.c
1285
BN_ULONG *a_d = a->d;
crypto/libressl/crypto/bn/bn_nist.c
1307
r_d = r->d;
crypto/libressl/crypto/bn/bn_nist.c
290
.d = (BN_ULONG *)_nist_p_192[0],
crypto/libressl/crypto/bn/bn_nist.c
298
.d = (BN_ULONG *)_nist_p_192_sqr,
crypto/libressl/crypto/bn/bn_nist.c
306
.d = (BN_ULONG *)_nist_p_224[0],
crypto/libressl/crypto/bn/bn_nist.c
314
.d = (BN_ULONG *)_nist_p_224_sqr,
crypto/libressl/crypto/bn/bn_nist.c
322
.d = (BN_ULONG *)_nist_p_256[0],
crypto/libressl/crypto/bn/bn_nist.c
330
.d = (BN_ULONG *)_nist_p_256_sqr,
crypto/libressl/crypto/bn/bn_nist.c
338
.d = (BN_ULONG *)_nist_p_384[0],
crypto/libressl/crypto/bn/bn_nist.c
346
.d = (BN_ULONG *)_nist_p_384_sqr,
crypto/libressl/crypto/bn/bn_nist.c
354
.d = (BN_ULONG *)_nist_p_521,
crypto/libressl/crypto/bn/bn_nist.c
362
.d = (BN_ULONG *)_nist_p_521_sqr,
crypto/libressl/crypto/bn/bn_nist.c
469
BN_ULONG *a_d = a->d;
crypto/libressl/crypto/bn/bn_nist.c
490
r_d = r->d;
crypto/libressl/crypto/bn/bn_nist.c
617
BN_ULONG *a_d = a->d;
crypto/libressl/crypto/bn/bn_nist.c
639
r_d = r->d;
crypto/libressl/crypto/bn/bn_nist.c
801
BN_ULONG *a_d = a->d;
crypto/libressl/crypto/bn/bn_nist.c
823
r_d = r->d;
crypto/libressl/crypto/bn/bn_print.c
246
ret->d[h++] = l;
crypto/libressl/crypto/bn/bn_print.c
381
v = ((int)(a->d[i] >> (long)j)) & 0x0f;
crypto/libressl/crypto/bn/bn_print.c
94
v = ((int)(a->d[i] >> (long)j)) & 0xff;
crypto/libressl/crypto/bn/bn_recp.c
100
BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *d, BN_CTX *ctx)
crypto/libressl/crypto/bn/bn_recp.c
102
if (!BN_copy(&(recp->N), d))
crypto/libressl/crypto/bn/bn_recp.c
105
recp->num_bits = BN_num_bits(d);
crypto/libressl/crypto/bn/bn_recp.c
146
BIGNUM *a, *b, *d, *r;
crypto/libressl/crypto/bn/bn_recp.c
152
d = dv;
crypto/libressl/crypto/bn/bn_recp.c
154
d = BN_CTX_get(ctx);
crypto/libressl/crypto/bn/bn_recp.c
159
if (a == NULL || b == NULL || d == NULL || r == NULL)
crypto/libressl/crypto/bn/bn_recp.c
163
BN_zero(d);
crypto/libressl/crypto/bn/bn_recp.c
201
if (!BN_rshift(d, b, i - recp->num_bits))
crypto/libressl/crypto/bn/bn_recp.c
203
d->neg = 0;
crypto/libressl/crypto/bn/bn_recp.c
205
if (!BN_mul(b, &(recp->N), d, ctx))
crypto/libressl/crypto/bn/bn_recp.c
220
if (!BN_add_word(d, 1))
crypto/libressl/crypto/bn/bn_recp.c
226
d->neg = m->neg^recp->N.neg;
crypto/libressl/crypto/bn/bn_shift.c
114
ap = a->d;
crypto/libressl/crypto/bn/bn_shift.c
121
rp = r->d;
crypto/libressl/crypto/bn/bn_shift.c
157
f = a->d;
crypto/libressl/crypto/bn/bn_shift.c
158
t = r->d;
crypto/libressl/crypto/bn/bn_shift.c
210
f = &(a->d[nw]);
crypto/libressl/crypto/bn/bn_shift.c
211
t = r->d;
crypto/libressl/crypto/bn/bn_shift.c
84
ap = a->d;
crypto/libressl/crypto/bn/bn_shift.c
85
rp = r->d;
crypto/libressl/crypto/bn/bn_sqr.c
100
bn_sqr_comba4(rr->d, a->d);
crypto/libressl/crypto/bn/bn_sqr.c
105
bn_sqr_normal(rr->d, a->d, 8, t);
crypto/libressl/crypto/bn/bn_sqr.c
107
bn_sqr_comba8(rr->d, a->d);
crypto/libressl/crypto/bn/bn_sqr.c
113
bn_sqr_normal(rr->d, a->d, al, t);
crypto/libressl/crypto/bn/bn_sqr.c
123
bn_sqr_recursive(rr->d, a->d, al, tmp->d);
crypto/libressl/crypto/bn/bn_sqr.c
127
bn_sqr_normal(rr->d, a->d, al, tmp->d);
crypto/libressl/crypto/bn/bn_sqr.c
133
bn_sqr_normal(rr->d, a->d, al, tmp->d);
crypto/libressl/crypto/bn/bn_sqr.c
140
if (a->d[al - 1] == (a->d[al - 1] & BN_MASK2l))
crypto/libressl/crypto/bn/bn_sqr.c
98
bn_sqr_normal(rr->d, a->d, 4, t);
crypto/libressl/crypto/bn/bn_word.c
127
BN_ULONG l, d;
crypto/libressl/crypto/bn/bn_word.c
129
l = a->d[i];
crypto/libressl/crypto/bn/bn_word.c
130
d = bn_div_words(ret, l, w);
crypto/libressl/crypto/bn/bn_word.c
131
ret = (l - ((d*w)&BN_MASK2))&BN_MASK2;
crypto/libressl/crypto/bn/bn_word.c
132
a->d[i] = d;
crypto/libressl/crypto/bn/bn_word.c
134
if ((a->top > 0) && (a->d[a->top - 1] == 0))
crypto/libressl/crypto/bn/bn_word.c
165
a->d[i] = l = (a->d[i] + w) & BN_MASK2;
crypto/libressl/crypto/bn/bn_word.c
172
a->d[i] = w;
crypto/libressl/crypto/bn/bn_word.c
204
if ((a->top == 1) && (a->d[0] < w)) {
crypto/libressl/crypto/bn/bn_word.c
205
a->d[0] = w - a->d[0];
crypto/libressl/crypto/bn/bn_word.c
211
if (a->d[i] >= w) {
crypto/libressl/crypto/bn/bn_word.c
212
a->d[i] -= w;
crypto/libressl/crypto/bn/bn_word.c
215
a->d[i] = (a->d[i] - w) & BN_MASK2;
crypto/libressl/crypto/bn/bn_word.c
220
if ((a->d[i] == 0) && (i == (a->top - 1)))
crypto/libressl/crypto/bn/bn_word.c
237
ll = bn_mul_words(a->d, a->d, a->top, w);
crypto/libressl/crypto/bn/bn_word.c
241
a->d[a->top++] = ll;
crypto/libressl/crypto/bn/bn_word.c
94
ret = ((ret << BN_BITS4) | ((a->d[i] >> BN_BITS4) &
crypto/libressl/crypto/bn/bn_word.c
96
ret = ((ret << BN_BITS4) | (a->d[i] & BN_MASK2l)) % w;
crypto/libressl/crypto/bn/bn_word.c
99
a->d[i]) % (BN_ULLONG)w);
crypto/libressl/crypto/cast/c_ecb.c
66
CAST_LONG l,d[2];
crypto/libressl/crypto/cast/c_ecb.c
68
n2l(in,l); d[0]=l;
crypto/libressl/crypto/cast/c_ecb.c
69
n2l(in,l); d[1]=l;
crypto/libressl/crypto/cast/c_ecb.c
71
CAST_encrypt(d,ks);
crypto/libressl/crypto/cast/c_ecb.c
73
CAST_decrypt(d,ks);
crypto/libressl/crypto/cast/c_ecb.c
74
l=d[0]; l2n(l,out);
crypto/libressl/crypto/cast/c_ecb.c
75
l=d[1]; l2n(l,out);
crypto/libressl/crypto/cast/c_ecb.c
76
l=d[0]=d[1]=0;
crypto/libressl/crypto/cast/c_ofb64.c
73
unsigned char d[8];
crypto/libressl/crypto/cast/c_ofb64.c
84
dp=(char *)d;
crypto/libressl/crypto/cast/c_ofb64.c
92
dp=(char *)d;
crypto/libressl/crypto/cast/c_ofb64.c
97
*(out++)= *(in++)^d[n];
crypto/libressl/crypto/cast/cast_lcl.h
198
CAST_LONG a,b,c,d; \
crypto/libressl/crypto/cast/cast_lcl.h
204
d=CAST_S_table3[(t>>16)&0xff]; \
crypto/libressl/crypto/cast/cast_lcl.h
205
L^=(((((a OP2 b)&0xffffffffL) OP3 c)&0xffffffffL) OP1 d)&0xffffffffL; \
crypto/libressl/crypto/chacha/chacha-merged.c
70
#define QUARTERROUND(a,b,c,d) \
crypto/libressl/crypto/chacha/chacha-merged.c
71
a = PLUS(a,b); d = ROTATE(XOR(d,a),16); \
crypto/libressl/crypto/chacha/chacha-merged.c
72
c = PLUS(c,d); b = ROTATE(XOR(b,c),12); \
crypto/libressl/crypto/chacha/chacha-merged.c
73
a = PLUS(a,b); d = ROTATE(XOR(d,a), 8); \
crypto/libressl/crypto/chacha/chacha-merged.c
74
c = PLUS(c,d); b = ROTATE(XOR(b,c), 7);
crypto/libressl/crypto/cms/cms_asn1.c
120
.offset = offsetof(CMS_CertificateChoices, d.certificate),
crypto/libressl/crypto/cms/cms_asn1.c
1238
.offset = offsetof(CMS_ContentInfo, d.other),
crypto/libressl/crypto/cms/cms_asn1.c
1249
.offset = offsetof(CMS_ContentInfo, d.data),
crypto/libressl/crypto/cms/cms_asn1.c
1260
.offset = offsetof(CMS_ContentInfo, d.signedData),
crypto/libressl/crypto/cms/cms_asn1.c
127
.offset = offsetof(CMS_CertificateChoices, d.extendedCertificate),
crypto/libressl/crypto/cms/cms_asn1.c
1271
.offset = offsetof(CMS_ContentInfo, d.envelopedData),
crypto/libressl/crypto/cms/cms_asn1.c
1282
.offset = offsetof(CMS_ContentInfo, d.digestedData),
crypto/libressl/crypto/cms/cms_asn1.c
1293
.offset = offsetof(CMS_ContentInfo, d.encryptedData),
crypto/libressl/crypto/cms/cms_asn1.c
1304
.offset = offsetof(CMS_ContentInfo, d.authenticatedData),
crypto/libressl/crypto/cms/cms_asn1.c
1315
.offset = offsetof(CMS_ContentInfo, d.compressedData),
crypto/libressl/crypto/cms/cms_asn1.c
134
.offset = offsetof(CMS_CertificateChoices, d.v1AttrCert),
crypto/libressl/crypto/cms/cms_asn1.c
141
.offset = offsetof(CMS_CertificateChoices, d.v2AttrCert),
crypto/libressl/crypto/cms/cms_asn1.c
1453
.offset = offsetof(CMS_ReceiptsFrom, d.allOrFirstTier),
crypto/libressl/crypto/cms/cms_asn1.c
1460
.offset = offsetof(CMS_ReceiptsFrom, d.receiptList),
crypto/libressl/crypto/cms/cms_asn1.c
148
.offset = offsetof(CMS_CertificateChoices, d.other),
crypto/libressl/crypto/cms/cms_asn1.c
168
.offset = offsetof(CMS_SignerIdentifier, d.issuerAndSerialNumber),
crypto/libressl/crypto/cms/cms_asn1.c
175
.offset = offsetof(CMS_SignerIdentifier, d.subjectKeyIdentifier),
crypto/libressl/crypto/cms/cms_asn1.c
332
.offset = offsetof(CMS_RevocationInfoChoice, d.crl),
crypto/libressl/crypto/cms/cms_asn1.c
339
.offset = offsetof(CMS_RevocationInfoChoice, d.other),
crypto/libressl/crypto/cms/cms_asn1.c
577
.offset = offsetof(CMS_KeyAgreeRecipientIdentifier, d.issuerAndSerialNumber),
crypto/libressl/crypto/cms/cms_asn1.c
584
.offset = offsetof(CMS_KeyAgreeRecipientIdentifier, d.rKeyId),
crypto/libressl/crypto/cms/cms_asn1.c
676
.offset = offsetof(CMS_OriginatorIdentifierOrKey, d.issuerAndSerialNumber),
crypto/libressl/crypto/cms/cms_asn1.c
683
.offset = offsetof(CMS_OriginatorIdentifierOrKey, d.subjectKeyIdentifier),
crypto/libressl/crypto/cms/cms_asn1.c
690
.offset = offsetof(CMS_OriginatorIdentifierOrKey, d.originatorKey),
crypto/libressl/crypto/cms/cms_asn1.c
929
CMS_KeyTransRecipientInfo *ktri = ri->d.ktri;
crypto/libressl/crypto/cms/cms_asn1.c
934
CMS_KEKRecipientInfo *kekri = ri->d.kekri;
crypto/libressl/crypto/cms/cms_asn1.c
937
CMS_PasswordRecipientInfo *pwri = ri->d.pwri;
crypto/libressl/crypto/cms/cms_asn1.c
956
.offset = offsetof(CMS_RecipientInfo, d.ktri),
crypto/libressl/crypto/cms/cms_asn1.c
963
.offset = offsetof(CMS_RecipientInfo, d.kari),
crypto/libressl/crypto/cms/cms_asn1.c
970
.offset = offsetof(CMS_RecipientInfo, d.kekri),
crypto/libressl/crypto/cms/cms_asn1.c
977
.offset = offsetof(CMS_RecipientInfo, d.pwri),
crypto/libressl/crypto/cms/cms_asn1.c
984
.offset = offsetof(CMS_RecipientInfo, d.ori),
crypto/libressl/crypto/cms/cms_cd.c
119
cd = cms->d.compressedData;
crypto/libressl/crypto/cms/cms_cd.c
93
cms->d.compressedData = cd;
crypto/libressl/crypto/cms/cms_dd.c
103
dd = cms->d.digestedData;
crypto/libressl/crypto/cms/cms_dd.c
122
dd = cms->d.digestedData;
crypto/libressl/crypto/cms/cms_dd.c
83
cms->d.digestedData = dd;
crypto/libressl/crypto/cms/cms_enc.c
237
cms->d.encryptedData = (CMS_EncryptedData *)ASN1_item_new(&CMS_EncryptedData_it);
crypto/libressl/crypto/cms/cms_enc.c
238
if (!cms->d.encryptedData) {
crypto/libressl/crypto/cms/cms_enc.c
243
cms->d.encryptedData->version = 0;
crypto/libressl/crypto/cms/cms_enc.c
248
ec = cms->d.encryptedData->encryptedContentInfo;
crypto/libressl/crypto/cms/cms_enc.c
256
CMS_EncryptedData *enc = cms->d.encryptedData;
crypto/libressl/crypto/cms/cms_env.c
106
pkey = ri->d.ktri->pkey;
crypto/libressl/crypto/cms/cms_env.c
108
EVP_PKEY_CTX *pctx = ri->d.kari->pctx;
crypto/libressl/crypto/cms/cms_env.c
153
return ri->d.ktri->pctx;
crypto/libressl/crypto/cms/cms_env.c
155
return ri->d.kari->pctx;
crypto/libressl/crypto/cms/cms_env.c
195
ri->d.ktri = (CMS_KeyTransRecipientInfo *)ASN1_item_new(&CMS_KeyTransRecipientInfo_it);
crypto/libressl/crypto/cms/cms_env.c
196
if (!ri->d.ktri)
crypto/libressl/crypto/cms/cms_env.c
200
ktri = ri->d.ktri;
crypto/libressl/crypto/cms/cms_env.c
303
ktri = ri->d.ktri;
crypto/libressl/crypto/cms/cms_env.c
325
ktri = ri->d.ktri;
crypto/libressl/crypto/cms/cms_env.c
338
return cms_SignerIdentifier_cert_cmp(ri->d.ktri->rid, cert);
crypto/libressl/crypto/cms/cms_env.c
348
EVP_PKEY_free(ri->d.ktri->pkey);
crypto/libressl/crypto/cms/cms_env.c
349
ri->d.ktri->pkey = pkey;
crypto/libressl/crypto/cms/cms_env.c
371
ktri = ri->d.ktri;
crypto/libressl/crypto/cms/cms_env.c
372
ec = cms->d.envelopedData->encryptedContentInfo;
crypto/libressl/crypto/cms/cms_env.c
425
CMS_KeyTransRecipientInfo *ktri = ri->d.ktri;
crypto/libressl/crypto/cms/cms_env.c
433
ec = cms->d.envelopedData->encryptedContentInfo;
crypto/libressl/crypto/cms/cms_env.c
440
if (cms->d.envelopedData->encryptedContentInfo->havenocert &&
crypto/libressl/crypto/cms/cms_env.c
441
!cms->d.envelopedData->encryptedContentInfo->debug) {
crypto/libressl/crypto/cms/cms_env.c
517
kekri = ri->d.kekri;
crypto/libressl/crypto/cms/cms_env.c
599
ri->d.kekri = (CMS_KEKRecipientInfo *)ASN1_item_new(&CMS_KEKRecipientInfo_it);
crypto/libressl/crypto/cms/cms_env.c
600
if (!ri->d.kekri)
crypto/libressl/crypto/cms/cms_env.c
604
kekri = ri->d.kekri;
crypto/libressl/crypto/cms/cms_env.c
654
rkid = ri->d.kekri->kekid;
crypto/libressl/crypto/cms/cms_env.c
656
*palg = ri->d.kekri->keyEncryptionAlgorithm;
crypto/libressl/crypto/cms/cms_env.c
688
kekri = ri->d.kekri;
crypto/libressl/crypto/cms/cms_env.c
706
ec = cms->d.envelopedData->encryptedContentInfo;
crypto/libressl/crypto/cms/cms_env.c
707
kekri = ri->d.kekri;
crypto/libressl/crypto/cms/cms_env.c
755
ec = cms->d.envelopedData->encryptedContentInfo;
crypto/libressl/crypto/cms/cms_env.c
756
kekri = ri->d.kekri;
crypto/libressl/crypto/cms/cms_env.c
77
return cms->d.envelopedData;
crypto/libressl/crypto/cms/cms_env.c
83
if (cms->d.other == NULL) {
crypto/libressl/crypto/cms/cms_env.c
84
cms->d.envelopedData = (CMS_EnvelopedData *)ASN1_item_new(&CMS_EnvelopedData_it);
crypto/libressl/crypto/cms/cms_env.c
85
if (!cms->d.envelopedData) {
crypto/libressl/crypto/cms/cms_env.c
89
cms->d.envelopedData->version = 0;
crypto/libressl/crypto/cms/cms_env.c
90
cms->d.envelopedData->encryptedContentInfo->contentType =
crypto/libressl/crypto/cms/cms_env.c
908
|| ri->d.ktri->version != 0) {
crypto/libressl/crypto/cms/cms_env.c
930
ec = cms->d.envelopedData->encryptedContentInfo;
crypto/libressl/crypto/cms/cms_env.c
94
return cms->d.envelopedData;
crypto/libressl/crypto/cms/cms_env.c
940
rinfos = cms->d.envelopedData->recipientInfos;
crypto/libressl/crypto/cms/cms_env.c
949
cms_env_set_version(cms->d.envelopedData);
crypto/libressl/crypto/cms/cms_ess.c
140
rr->receiptsFrom->d.receiptList = receiptList;
crypto/libressl/crypto/cms/cms_ess.c
143
rr->receiptsFrom->d.allOrFirstTier = allorfirst;
crypto/libressl/crypto/cms/cms_ess.c
189
*pallorfirst = (int)rr->receiptsFrom->d.allOrFirstTier;
crypto/libressl/crypto/cms/cms_ess.c
196
*plist = rr->receiptsFrom->d.receiptList;
crypto/libressl/crypto/cms/cms_io.c
153
mdalgs = cms->d.signedData->digestAlgorithms;
crypto/libressl/crypto/cms/cms_kari.c
108
oik = ri->d.kari->originator;
crypto/libressl/crypto/cms/cms_kari.c
121
*issuer = oik->d.issuerAndSerialNumber->issuer;
crypto/libressl/crypto/cms/cms_kari.c
123
*sno = oik->d.issuerAndSerialNumber->serialNumber;
crypto/libressl/crypto/cms/cms_kari.c
126
*keyid = oik->d.subjectKeyIdentifier;
crypto/libressl/crypto/cms/cms_kari.c
129
*pubalg = oik->d.originatorKey->algorithm;
crypto/libressl/crypto/cms/cms_kari.c
131
*pubkey = oik->d.originatorKey->publicKey;
crypto/libressl/crypto/cms/cms_kari.c
147
oik = ri->d.kari->originator;
crypto/libressl/crypto/cms/cms_kari.c
149
return cms_ias_cert_cmp(oik->d.issuerAndSerialNumber, cert);
crypto/libressl/crypto/cms/cms_kari.c
151
return cms_keyid_cert_cmp(oik->d.subjectKeyIdentifier, cert);
crypto/libressl/crypto/cms/cms_kari.c
165
*issuer = rid->d.issuerAndSerialNumber->issuer;
crypto/libressl/crypto/cms/cms_kari.c
167
*sno = rid->d.issuerAndSerialNumber->serialNumber;
crypto/libressl/crypto/cms/cms_kari.c
176
*keyid = rid->d.rKeyId->subjectKeyIdentifier;
crypto/libressl/crypto/cms/cms_kari.c
178
*tm = rid->d.rKeyId->date;
crypto/libressl/crypto/cms/cms_kari.c
180
*other = rid->d.rKeyId->other;
crypto/libressl/crypto/cms/cms_kari.c
197
return cms_ias_cert_cmp(rid->d.issuerAndSerialNumber, cert);
crypto/libressl/crypto/cms/cms_kari.c
199
return cms_keyid_cert_cmp(rid->d.rKeyId->subjectKeyIdentifier, cert);
crypto/libressl/crypto/cms/cms_kari.c
208
CMS_KeyAgreeRecipientInfo *kari = ri->d.kari;
crypto/libressl/crypto/cms/cms_kari.c
229
return ri->d.kari->ctx;
crypto/libressl/crypto/cms/cms_kari.c
298
if (!cms_kek_cipher(&cek, &ceklen, enckey, enckeylen, ri->d.kari, 0))
crypto/libressl/crypto/cms/cms_kari.c
300
ec = cms->d.envelopedData->encryptedContentInfo;
crypto/libressl/crypto/cms/cms_kari.c
354
ri->d.kari = (CMS_KeyAgreeRecipientInfo *)ASN1_item_new(&CMS_KeyAgreeRecipientInfo_it);
crypto/libressl/crypto/cms/cms_kari.c
355
if (!ri->d.kari)
crypto/libressl/crypto/cms/cms_kari.c
359
kari = ri->d.kari;
crypto/libressl/crypto/cms/cms_kari.c
373
rek->rid->d.rKeyId = (CMS_RecipientKeyIdentifier *)ASN1_item_new(&CMS_RecipientKeyIdentifier_it);
crypto/libressl/crypto/cms/cms_kari.c
374
if (rek->rid->d.rKeyId == NULL)
crypto/libressl/crypto/cms/cms_kari.c
376
if (!cms_set1_keyid(&rek->rid->d.rKeyId->subjectKeyIdentifier, recip))
crypto/libressl/crypto/cms/cms_kari.c
380
if (!cms_set1_ias(&rek->rid->d.issuerAndSerialNumber, recip))
crypto/libressl/crypto/cms/cms_kari.c
449
kari = ri->d.kari;
crypto/libressl/crypto/cms/cms_kari.c
451
ec = cms->d.envelopedData->encryptedContentInfo;
crypto/libressl/crypto/cms/cms_kari.c
462
oik->d.originatorKey = (CMS_OriginatorPublicKey *)ASN1_item_new(&CMS_OriginatorPublicKey_it);
crypto/libressl/crypto/cms/cms_kari.c
463
if (!oik->d.originatorKey)
crypto/libressl/crypto/cms/cms_kari.c
78
*palg = ri->d.kari->keyEncryptionAlgorithm;
crypto/libressl/crypto/cms/cms_kari.c
80
*pukm = ri->d.kari->ukm;
crypto/libressl/crypto/cms/cms_kari.c
94
return ri->d.kari->recipientEncryptedKeys;
crypto/libressl/crypto/cms/cms_lcl.h
105
} d;
crypto/libressl/crypto/cms/cms_lcl.h
147
} d;
crypto/libressl/crypto/cms/cms_lcl.h
185
} d;
crypto/libressl/crypto/cms/cms_lcl.h
220
} d;
crypto/libressl/crypto/cms/cms_lcl.h
240
} d;
crypto/libressl/crypto/cms/cms_lcl.h
317
} d;
crypto/libressl/crypto/cms/cms_lcl.h
336
} d;
crypto/libressl/crypto/cms/cms_lcl.h
380
} d;
crypto/libressl/crypto/cms/cms_lib.c
247
return &cms->d.data;
crypto/libressl/crypto/cms/cms_lib.c
250
return &cms->d.signedData->encapContentInfo->eContent;
crypto/libressl/crypto/cms/cms_lib.c
253
return &cms->d.envelopedData->encryptedContentInfo->encryptedContent;
crypto/libressl/crypto/cms/cms_lib.c
256
return &cms->d.digestedData->encapContentInfo->eContent;
crypto/libressl/crypto/cms/cms_lib.c
259
return &cms->d.encryptedData->encryptedContentInfo->encryptedContent;
crypto/libressl/crypto/cms/cms_lib.c
262
return &cms->d.authenticatedData->encapContentInfo->eContent;
crypto/libressl/crypto/cms/cms_lib.c
265
return &cms->d.compressedData->encapContentInfo->eContent;
crypto/libressl/crypto/cms/cms_lib.c
268
if (cms->d.other->type == V_ASN1_OCTET_STRING)
crypto/libressl/crypto/cms/cms_lib.c
269
return &cms->d.other->value.octet_string;
crypto/libressl/crypto/cms/cms_lib.c
285
return &cms->d.signedData->encapContentInfo->eContentType;
crypto/libressl/crypto/cms/cms_lib.c
288
return &cms->d.envelopedData->encryptedContentInfo->contentType;
crypto/libressl/crypto/cms/cms_lib.c
291
return &cms->d.digestedData->encapContentInfo->eContentType;
crypto/libressl/crypto/cms/cms_lib.c
294
return &cms->d.encryptedData->encryptedContentInfo->contentType;
crypto/libressl/crypto/cms/cms_lib.c
297
return &cms->d.authenticatedData->encapContentInfo->eContentType;
crypto/libressl/crypto/cms/cms_lib.c
300
return &cms->d.compressedData->encapContentInfo->eContentType;
crypto/libressl/crypto/cms/cms_lib.c
443
return &cms->d.signedData->certificates;
crypto/libressl/crypto/cms/cms_lib.c
446
if (cms->d.envelopedData->originatorInfo == NULL)
crypto/libressl/crypto/cms/cms_lib.c
448
return &cms->d.envelopedData->originatorInfo->certificates;
crypto/libressl/crypto/cms/cms_lib.c
493
if (!X509_cmp(cch->d.certificate, cert)) {
crypto/libressl/crypto/cms/cms_lib.c
503
cch->d.certificate = cert;
crypto/libressl/crypto/cms/cms_lib.c
525
return &cms->d.signedData->crls;
crypto/libressl/crypto/cms/cms_lib.c
528
if (cms->d.envelopedData->originatorInfo == NULL)
crypto/libressl/crypto/cms/cms_lib.c
530
return &cms->d.envelopedData->originatorInfo->crls;
crypto/libressl/crypto/cms/cms_lib.c
571
rch->d.crl = crl;
crypto/libressl/crypto/cms/cms_lib.c
607
if (!sk_X509_push(certs, cch->d.certificate)) {
crypto/libressl/crypto/cms/cms_lib.c
611
X509_up_ref(cch->d.certificate);
crypto/libressl/crypto/cms/cms_lib.c
636
if (!sk_X509_CRL_push(crls, rch->d.crl)) {
crypto/libressl/crypto/cms/cms_lib.c
640
X509_CRL_up_ref(rch->d.crl);
crypto/libressl/crypto/cms/cms_pwri.c
167
ri->d.pwri = (CMS_PasswordRecipientInfo *)ASN1_item_new(&CMS_PasswordRecipientInfo_it);
crypto/libressl/crypto/cms/cms_pwri.c
168
if (ri->d.pwri == NULL)
crypto/libressl/crypto/cms/cms_pwri.c
172
pwri = ri->d.pwri;
crypto/libressl/crypto/cms/cms_pwri.c
337
ec = cms->d.envelopedData->encryptedContentInfo;
crypto/libressl/crypto/cms/cms_pwri.c
339
pwri = ri->d.pwri;
crypto/libressl/crypto/cms/cms_pwri.c
79
pwri = ri->d.pwri;
crypto/libressl/crypto/cms/cms_sd.c
206
if (!cms_set1_ias(&sid->d.issuerAndSerialNumber, cert))
crypto/libressl/crypto/cms/cms_sd.c
211
if (!cms_set1_keyid(&sid->d.subjectKeyIdentifier, cert))
crypto/libressl/crypto/cms/cms_sd.c
231
*issuer = sid->d.issuerAndSerialNumber->issuer;
crypto/libressl/crypto/cms/cms_sd.c
233
*sno = sid->d.issuerAndSerialNumber->serialNumber;
crypto/libressl/crypto/cms/cms_sd.c
236
*keyid = sid->d.subjectKeyIdentifier;
crypto/libressl/crypto/cms/cms_sd.c
247
return cms_ias_cert_cmp(sid->d.issuerAndSerialNumber, cert);
crypto/libressl/crypto/cms/cms_sd.c
249
return cms_keyid_cert_cmp(sid->d.subjectKeyIdentifier, cert);
crypto/libressl/crypto/cms/cms_sd.c
570
x = cch->d.certificate;
crypto/libressl/crypto/cms/cms_sd.c
630
cms->d.signedData->encapContentInfo->eContentType;
crypto/libressl/crypto/cms/cms_sd.c
704
cms->d.signedData->encapContentInfo->partial = 0;
crypto/libressl/crypto/cms/cms_sd.c
77
return cms->d.signedData;
crypto/libressl/crypto/cms/cms_sd.c
83
if (cms->d.other == NULL) {
crypto/libressl/crypto/cms/cms_sd.c
838
if (cms->d.signedData->encapContentInfo->partial)
crypto/libressl/crypto/cms/cms_sd.c
84
cms->d.signedData = (CMS_SignedData *)ASN1_item_new(&CMS_SignedData_it);
crypto/libressl/crypto/cms/cms_sd.c
85
if (!cms->d.signedData) {
crypto/libressl/crypto/cms/cms_sd.c
89
cms->d.signedData->version = 1;
crypto/libressl/crypto/cms/cms_sd.c
90
cms->d.signedData->encapContentInfo->eContentType =
crypto/libressl/crypto/cms/cms_sd.c
92
cms->d.signedData->encapContentInfo->partial = 1;
crypto/libressl/crypto/cms/cms_sd.c
95
return cms->d.signedData;
crypto/libressl/crypto/cms/cms_smime.c
685
debug = cms->d.envelopedData->encryptedContentInfo->debug;
crypto/libressl/crypto/cms/cms_smime.c
823
cms->d.envelopedData->encryptedContentInfo->debug = 1;
crypto/libressl/crypto/cms/cms_smime.c
825
cms->d.envelopedData->encryptedContentInfo->debug = 0;
crypto/libressl/crypto/cms/cms_smime.c
827
cms->d.envelopedData->encryptedContentInfo->havenocert = 1;
crypto/libressl/crypto/cms/cms_smime.c
829
cms->d.envelopedData->encryptedContentInfo->havenocert = 0;
crypto/libressl/crypto/curve25519/curve25519.c
1012
fe_mul(v, u, d);
crypto/libressl/crypto/curve25519/curve25519.c
996
static const fe d = {-10913610, 13857413, -15372611, 6949391, 114729,
crypto/libressl/crypto/des/des_locl.h
156
#define LOAD_DATA_tmp(a,b,c,d,e,f) LOAD_DATA(a,b,c,d,e,f,g)
crypto/libressl/crypto/des/ofb64ede.c
103
*(out++)= *(in++)^d[n];
crypto/libressl/crypto/des/ofb64ede.c
74
DES_cblock d;
crypto/libressl/crypto/des/ofb64ede.c
85
dp=(char *)d;
crypto/libressl/crypto/des/ofb64ede.c
98
dp=(char *)d;
crypto/libressl/crypto/des/ofb64enc.c
72
DES_cblock d;
crypto/libressl/crypto/des/ofb64enc.c
83
dp=d;
crypto/libressl/crypto/des/ofb64enc.c
91
dp=d;
crypto/libressl/crypto/des/ofb64enc.c
96
*(out++)= *(in++)^d[n];
crypto/libressl/crypto/des/set_key.c
337
DES_LONG c,d,t,s,t2;
crypto/libressl/crypto/des/set_key.c
346
c2l(in,d);
crypto/libressl/crypto/des/set_key.c
351
PERM_OP (d,c,t,4,0x0f0f0f0fL);
crypto/libressl/crypto/des/set_key.c
353
HPERM_OP(d,t,-2,0xcccc0000L);
crypto/libressl/crypto/des/set_key.c
354
PERM_OP (d,c,t,1,0x55555555L);
crypto/libressl/crypto/des/set_key.c
355
PERM_OP (c,d,t,8,0x00ff00ffL);
crypto/libressl/crypto/des/set_key.c
356
PERM_OP (d,c,t,1,0x55555555L);
crypto/libressl/crypto/des/set_key.c
357
d= (((d&0x000000ffL)<<16L)| (d&0x0000ff00L) |
crypto/libressl/crypto/des/set_key.c
358
((d&0x00ff0000L)>>16L)|((c&0xf0000000L)>>4L));
crypto/libressl/crypto/des/set_key.c
364
{ c=((c>>2L)|(c<<26L)); d=((d>>2L)|(d<<26L)); }
crypto/libressl/crypto/des/set_key.c
366
{ c=((c>>1L)|(c<<27L)); d=((d>>1L)|(d<<27L)); }
crypto/libressl/crypto/des/set_key.c
368
d&=0x0fffffffL;
crypto/libressl/crypto/des/set_key.c
376
t= des_skb[4][ (d )&0x3f ]|
crypto/libressl/crypto/des/set_key.c
377
des_skb[5][((d>> 7L)&0x03)|((d>> 8L)&0x3c)]|
crypto/libressl/crypto/des/set_key.c
378
des_skb[6][ (d>>15L)&0x3f ]|
crypto/libressl/crypto/des/set_key.c
379
des_skb[7][((d>>21L)&0x0f)|((d>>22L)&0x30)];
crypto/libressl/crypto/dh/dh_lib.c
225
DH_set_ex_data(DH *d, int idx, void *arg)
crypto/libressl/crypto/dh/dh_lib.c
227
return CRYPTO_set_ex_data(&d->ex_data, idx, arg);
crypto/libressl/crypto/dh/dh_lib.c
231
DH_get_ex_data(DH *d, int idx)
crypto/libressl/crypto/dh/dh_lib.c
233
return CRYPTO_get_ex_data(&d->ex_data, idx);
crypto/libressl/crypto/dsa/dsa_lib.c
244
DSA_set_ex_data(DSA *d, int idx, void *arg)
crypto/libressl/crypto/dsa/dsa_lib.c
246
return CRYPTO_set_ex_data(&d->ex_data, idx, arg);
crypto/libressl/crypto/dsa/dsa_lib.c
250
DSA_get_ex_data(DSA *d, int idx)
crypto/libressl/crypto/dsa/dsa_lib.c
252
return CRYPTO_get_ex_data(&d->ex_data, idx);
crypto/libressl/crypto/dsa/dsa_lib.c
256
DSA_security_bits(const DSA *d)
crypto/libressl/crypto/dsa/dsa_lib.c
258
if (d->p == NULL || d->q == NULL)
crypto/libressl/crypto/dsa/dsa_lib.c
261
return BN_security_bits(BN_num_bits(d->p), BN_num_bits(d->q));
crypto/libressl/crypto/dsa/dsa_lib.c
307
DSA_get0_pqg(const DSA *d, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g)
crypto/libressl/crypto/dsa/dsa_lib.c
310
*p = d->p;
crypto/libressl/crypto/dsa/dsa_lib.c
312
*q = d->q;
crypto/libressl/crypto/dsa/dsa_lib.c
314
*g = d->g;
crypto/libressl/crypto/dsa/dsa_lib.c
318
DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g)
crypto/libressl/crypto/dsa/dsa_lib.c
320
if ((d->p == NULL && p == NULL) || (d->q == NULL && q == NULL) ||
crypto/libressl/crypto/dsa/dsa_lib.c
321
(d->g == NULL && g == NULL))
crypto/libressl/crypto/dsa/dsa_lib.c
325
BN_free(d->p);
crypto/libressl/crypto/dsa/dsa_lib.c
326
d->p = p;
crypto/libressl/crypto/dsa/dsa_lib.c
329
BN_free(d->q);
crypto/libressl/crypto/dsa/dsa_lib.c
330
d->q = q;
crypto/libressl/crypto/dsa/dsa_lib.c
333
BN_free(d->g);
crypto/libressl/crypto/dsa/dsa_lib.c
334
d->g = g;
crypto/libressl/crypto/dsa/dsa_lib.c
341
DSA_get0_key(const DSA *d, const BIGNUM **pub_key, const BIGNUM **priv_key)
crypto/libressl/crypto/dsa/dsa_lib.c
344
*pub_key = d->pub_key;
crypto/libressl/crypto/dsa/dsa_lib.c
346
*priv_key = d->priv_key;
crypto/libressl/crypto/dsa/dsa_lib.c
350
DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key)
crypto/libressl/crypto/dsa/dsa_lib.c
352
if (d->pub_key == NULL && pub_key == NULL)
crypto/libressl/crypto/dsa/dsa_lib.c
356
BN_free(d->pub_key);
crypto/libressl/crypto/dsa/dsa_lib.c
357
d->pub_key = pub_key;
crypto/libressl/crypto/dsa/dsa_lib.c
360
BN_free(d->priv_key);
crypto/libressl/crypto/dsa/dsa_lib.c
361
d->priv_key = priv_key;
crypto/libressl/crypto/dsa/dsa_lib.c
368
DSA_get0_p(const DSA *d)
crypto/libressl/crypto/dsa/dsa_lib.c
370
return d->p;
crypto/libressl/crypto/dsa/dsa_lib.c
374
DSA_get0_q(const DSA *d)
crypto/libressl/crypto/dsa/dsa_lib.c
376
return d->q;
crypto/libressl/crypto/dsa/dsa_lib.c
380
DSA_get0_g(const DSA *d)
crypto/libressl/crypto/dsa/dsa_lib.c
382
return d->g;
crypto/libressl/crypto/dsa/dsa_lib.c
386
DSA_get0_pub_key(const DSA *d)
crypto/libressl/crypto/dsa/dsa_lib.c
388
return d->pub_key;
crypto/libressl/crypto/dsa/dsa_lib.c
392
DSA_get0_priv_key(const DSA *d)
crypto/libressl/crypto/dsa/dsa_lib.c
394
return d->priv_key;
crypto/libressl/crypto/dsa/dsa_lib.c
398
DSA_clear_flags(DSA *d, int flags)
crypto/libressl/crypto/dsa/dsa_lib.c
400
d->flags &= ~flags;
crypto/libressl/crypto/dsa/dsa_lib.c
404
DSA_test_flags(const DSA *d, int flags)
crypto/libressl/crypto/dsa/dsa_lib.c
406
return d->flags & flags;
crypto/libressl/crypto/dsa/dsa_lib.c
410
DSA_set_flags(DSA *d, int flags)
crypto/libressl/crypto/dsa/dsa_lib.c
412
d->flags |= flags;
crypto/libressl/crypto/dsa/dsa_lib.c
416
DSA_get0_engine(DSA *d)
crypto/libressl/crypto/dsa/dsa_lib.c
418
return d->engine;
crypto/libressl/crypto/ec/ec2_mult.c
316
word = scalar->d[i];
crypto/libressl/crypto/ec/ec2_mult.c
326
word = scalar->d[i];
crypto/libressl/crypto/ec/ec2_smpl.c
194
dest->a.d[i] = 0;
crypto/libressl/crypto/ec/ec2_smpl.c
196
dest->b.d[i] = 0;
crypto/libressl/crypto/ec/ec2_smpl.c
222
group->a.d[i] = 0;
crypto/libressl/crypto/ec/ec2_smpl.c
230
group->b.d[i] = 0;
crypto/libressl/crypto/ec/ec_key.c
133
EC_EXTRA_DATA *d;
crypto/libressl/crypto/ec/ec_key.c
181
for (d = src->method_data; d != NULL; d = d->next) {
crypto/libressl/crypto/ec/ec_key.c
182
void *t = d->dup_func(d->data);
crypto/libressl/crypto/ec/ec_key.c
186
if (!EC_EX_DATA_set_data(&dest->method_data, t, d->dup_func,
crypto/libressl/crypto/ec/ec_key.c
187
d->free_func, d->clear_free_func))
crypto/libressl/crypto/ec/ec_lib.c
163
EC_EXTRA_DATA *d;
crypto/libressl/crypto/ec/ec_lib.c
178
for (d = src->extra_data; d != NULL; d = d->next) {
crypto/libressl/crypto/ec/ec_lib.c
179
void *t = d->dup_func(d->data);
crypto/libressl/crypto/ec/ec_lib.c
183
if (!EC_EX_DATA_set_data(&dest->extra_data, t, d->dup_func,
crypto/libressl/crypto/ec/ec_lib.c
184
d->free_func, d->clear_free_func))
crypto/libressl/crypto/ec/ec_lib.c
679
EC_EXTRA_DATA *d;
crypto/libressl/crypto/ec/ec_lib.c
684
for (d = *ex_data; d != NULL; d = d->next) {
crypto/libressl/crypto/ec/ec_lib.c
685
if (d->dup_func == dup_func && d->free_func == free_func &&
crypto/libressl/crypto/ec/ec_lib.c
686
d->clear_free_func == clear_free_func) {
crypto/libressl/crypto/ec/ec_lib.c
696
d = malloc(sizeof *d);
crypto/libressl/crypto/ec/ec_lib.c
697
if (d == NULL)
crypto/libressl/crypto/ec/ec_lib.c
700
d->data = data;
crypto/libressl/crypto/ec/ec_lib.c
701
d->dup_func = dup_func;
crypto/libressl/crypto/ec/ec_lib.c
702
d->free_func = free_func;
crypto/libressl/crypto/ec/ec_lib.c
703
d->clear_free_func = clear_free_func;
crypto/libressl/crypto/ec/ec_lib.c
705
d->next = *ex_data;
crypto/libressl/crypto/ec/ec_lib.c
706
*ex_data = d;
crypto/libressl/crypto/ec/ec_lib.c
718
const EC_EXTRA_DATA *d;
crypto/libressl/crypto/ec/ec_lib.c
720
for (d = ex_data; d != NULL; d = d->next) {
crypto/libressl/crypto/ec/ec_lib.c
721
if (d->dup_func == dup_func && d->free_func == free_func && d->clear_free_func == clear_free_func)
crypto/libressl/crypto/ec/ec_lib.c
722
return d->data;
crypto/libressl/crypto/ec/ec_lib.c
786
EC_EXTRA_DATA *d;
crypto/libressl/crypto/ec/ec_lib.c
791
d = *ex_data;
crypto/libressl/crypto/ec/ec_lib.c
792
while (d) {
crypto/libressl/crypto/ec/ec_lib.c
793
EC_EXTRA_DATA *next = d->next;
crypto/libressl/crypto/ec/ec_lib.c
795
d->free_func(d->data);
crypto/libressl/crypto/ec/ec_lib.c
796
free(d);
crypto/libressl/crypto/ec/ec_lib.c
798
d = next;
crypto/libressl/crypto/ec/ec_lib.c
807
EC_EXTRA_DATA *d;
crypto/libressl/crypto/ec/ec_lib.c
812
d = *ex_data;
crypto/libressl/crypto/ec/ec_lib.c
813
while (d) {
crypto/libressl/crypto/ec/ec_lib.c
814
EC_EXTRA_DATA *next = d->next;
crypto/libressl/crypto/ec/ec_lib.c
816
d->clear_free_func(d->data);
crypto/libressl/crypto/ec/ec_lib.c
817
free(d);
crypto/libressl/crypto/ec/ec_lib.c
819
d = next;
crypto/libressl/crypto/ec/ec_mult.c
227
if (scalar->d == NULL || scalar->top == 0) {
crypto/libressl/crypto/ec/ec_mult.c
240
window_val = scalar->d[0] & mask;
crypto/libressl/crypto/ecdh/ech_lib.c
219
ECDH_set_ex_data(EC_KEY *d, int idx, void *arg)
crypto/libressl/crypto/ecdh/ech_lib.c
222
ecdh = ecdh_check(d);
crypto/libressl/crypto/ecdh/ech_lib.c
229
ECDH_get_ex_data(EC_KEY *d, int idx)
crypto/libressl/crypto/ecdh/ech_lib.c
232
ecdh = ecdh_check(d);
crypto/libressl/crypto/ecdh/ech_lib.c
239
ECDH_size(const EC_KEY *d)
crypto/libressl/crypto/ecdh/ech_lib.c
241
return ((EC_GROUP_get_degree(EC_KEY_get0_group(d)) + 7) / 8);
crypto/libressl/crypto/ecdsa/ecs_lib.c
238
ECDSA_set_ex_data(EC_KEY *d, int idx, void *arg)
crypto/libressl/crypto/ecdsa/ecs_lib.c
241
ecdsa = ecdsa_check(d);
crypto/libressl/crypto/ecdsa/ecs_lib.c
248
ECDSA_get_ex_data(EC_KEY *d, int idx)
crypto/libressl/crypto/ecdsa/ecs_lib.c
251
ecdsa = ecdsa_check(d);
crypto/libressl/crypto/err/err.c
1001
d.error = ERR_PACK(l, f, 0);
crypto/libressl/crypto/err/err.c
1002
p = ERRFN(err_get_item)(&d);
crypto/libressl/crypto/err/err.c
1009
ERR_STRING_DATA d, *p = NULL;
crypto/libressl/crypto/err/err.c
1015
d.error = ERR_PACK(l, 0, r);
crypto/libressl/crypto/err/err.c
1016
p = ERRFN(err_get_item)(&d);
crypto/libressl/crypto/err/err.c
1018
d.error = ERR_PACK(0, 0, r);
crypto/libressl/crypto/err/err.c
1019
p = ERRFN(err_get_item)(&d);
crypto/libressl/crypto/err/err.c
384
int_err_get_item(const ERR_STRING_DATA *d)
crypto/libressl/crypto/err/err.c
395
p = lh_ERR_STRING_DATA_retrieve(hash, d);
crypto/libressl/crypto/err/err.c
402
int_err_set_item(ERR_STRING_DATA *d)
crypto/libressl/crypto/err/err.c
413
p = lh_ERR_STRING_DATA_insert(hash, d);
crypto/libressl/crypto/err/err.c
420
int_err_del_item(ERR_STRING_DATA *d)
crypto/libressl/crypto/err/err.c
431
p = lh_ERR_STRING_DATA_delete(hash, d);
crypto/libressl/crypto/err/err.c
486
int_thread_get_item(const ERR_STATE *d)
crypto/libressl/crypto/err/err.c
497
p = lh_ERR_STATE_retrieve(hash, d);
crypto/libressl/crypto/err/err.c
505
int_thread_set_item(ERR_STATE *d)
crypto/libressl/crypto/err/err.c
516
p = lh_ERR_STATE_insert(hash, d);
crypto/libressl/crypto/err/err.c
524
int_thread_del_item(const ERR_STATE *d)
crypto/libressl/crypto/err/err.c
535
p = lh_ERR_STATE_delete(hash, d);
crypto/libressl/crypto/err/err.c
979
ERR_STRING_DATA d, *p;
crypto/libressl/crypto/err/err.c
987
d.error = ERR_PACK(l, 0, 0);
crypto/libressl/crypto/err/err.c
988
p = ERRFN(err_get_item)(&d);
crypto/libressl/crypto/err/err.c
995
ERR_STRING_DATA d, *p;
crypto/libressl/crypto/evp/digest.c
162
const EVP_MD *d = ENGINE_get_digest(impl, type->type);
crypto/libressl/crypto/evp/digest.c
163
if (d == NULL) {
crypto/libressl/crypto/evp/digest.c
170
type = d;
crypto/libressl/crypto/evp/e_des.c
179
unsigned char c[1], d[1];
crypto/libressl/crypto/evp/e_des.c
189
DES_cfb_encrypt(c, d, 1, 1, ctx->cipher_data,
crypto/libressl/crypto/evp/e_des.c
193
((d[0] & 0x80) >> (unsigned int)(n % 8));
crypto/libressl/crypto/evp/e_des3.c
217
unsigned char c[1], d[1];
crypto/libressl/crypto/evp/e_des3.c
225
DES_ede3_cfb_encrypt(c, d, 1, 1,
crypto/libressl/crypto/evp/e_des3.c
229
((d[0] & 0x80) >> (unsigned int)(n % 8));
crypto/libressl/crypto/evp/encode.c
256
unsigned char *d;
crypto/libressl/crypto/evp/encode.c
259
d = ctx->enc_data;
crypto/libressl/crypto/evp/encode.c
261
if (n > 0 && d[n - 1] == '=') {
crypto/libressl/crypto/evp/encode.c
263
if (n > 1 && d[n - 2] == '=')
crypto/libressl/crypto/evp/encode.c
313
d[n++] = tmp;
crypto/libressl/crypto/evp/encode.c
317
decoded_len = EVP_DecodeBlock(out, d, n);
crypto/libressl/crypto/evp/encode.c
337
decoded_len = EVP_DecodeBlock(out, d, n);
crypto/libressl/crypto/evp/encode.c
362
int i, ret = 0, a, b, c, d;
crypto/libressl/crypto/evp/encode.c
383
d = conv_ascii2bin(*(f++));
crypto/libressl/crypto/evp/encode.c
385
(c & 0x80) || (d & 0x80))
crypto/libressl/crypto/evp/encode.c
390
(((unsigned long)d)));
crypto/libressl/crypto/ex_data.c
312
EX_CLASS_ITEM d, *p, *gen;
crypto/libressl/crypto/ex_data.c
314
d.class_index = class_index;
crypto/libressl/crypto/ex_data.c
318
p = lh_EX_CLASS_ITEM_retrieve(ex_data, &d);
crypto/libressl/crypto/gost/gost2814789.c
455
GOST2814789IMIT(const unsigned char *d, size_t n, unsigned char *md, int nid,
crypto/libressl/crypto/gost/gost2814789.c
466
GOST2814789IMIT_Update(&c, d, n);
crypto/libressl/crypto/gost/gostr341001.c
374
BIGNUM *order = BN_new(), *d = BN_new();
crypto/libressl/crypto/gost/gostr341001.c
378
if (order == NULL || d == NULL)
crypto/libressl/crypto/gost/gostr341001.c
384
if (BN_rand_range(d, order) == 0) {
crypto/libressl/crypto/gost/gostr341001.c
388
} while (BN_is_zero(d));
crypto/libressl/crypto/gost/gostr341001.c
390
if (GOST_KEY_set_private_key(ec, d) == 0)
crypto/libressl/crypto/gost/gostr341001.c
395
BN_free(d);
crypto/libressl/crypto/gost/gostr341194.c
259
GOSTR341194(const unsigned char *d, size_t n, unsigned char *md, int nid)
crypto/libressl/crypto/gost/gostr341194.c
268
GOSTR341194_Update(&c, d, n);
crypto/libressl/crypto/gost/streebog.c
1449
STREEBOG256(const unsigned char *d, size_t n, unsigned char *md)
crypto/libressl/crypto/gost/streebog.c
1457
STREEBOG256_Update(&c, d, n);
crypto/libressl/crypto/gost/streebog.c
1464
STREEBOG512(const unsigned char *d, size_t n, unsigned char *md)
crypto/libressl/crypto/gost/streebog.c
1472
STREEBOG512_Update(&c, d, n);
crypto/libressl/crypto/hmac/hmac.c
259
HMAC(const EVP_MD *evp_md, const void *key, int key_len, const unsigned char *d,
crypto/libressl/crypto/hmac/hmac.c
275
if (!HMAC_Update(&c, d, n))
crypto/libressl/crypto/idea/i_cbc.c
136
void idea_encrypt(unsigned long *d, IDEA_KEY_SCHEDULE *key)
crypto/libressl/crypto/idea/i_cbc.c
141
x2=d[0];
crypto/libressl/crypto/idea/i_cbc.c
143
x4=d[1];
crypto/libressl/crypto/idea/i_cbc.c
166
d[0]=(t0&0xffff)|((x1&0xffff)<<16);
crypto/libressl/crypto/idea/i_cbc.c
167
d[1]=(x4&0xffff)|((t1&0xffff)<<16);
crypto/libressl/crypto/idea/i_ecb.c
74
unsigned long l0,l1,d[2];
crypto/libressl/crypto/idea/i_ecb.c
76
n2l(in,l0); d[0]=l0;
crypto/libressl/crypto/idea/i_ecb.c
77
n2l(in,l1); d[1]=l1;
crypto/libressl/crypto/idea/i_ecb.c
78
idea_encrypt(d,ks);
crypto/libressl/crypto/idea/i_ecb.c
79
l0=d[0]; l2n(l0,out);
crypto/libressl/crypto/idea/i_ecb.c
80
l1=d[1]; l2n(l1,out);
crypto/libressl/crypto/idea/i_ecb.c
81
l0=l1=d[0]=d[1]=0;
crypto/libressl/crypto/idea/i_ofb64.c
73
unsigned char d[8];
crypto/libressl/crypto/idea/i_ofb64.c
84
dp=(char *)d;
crypto/libressl/crypto/idea/i_ofb64.c
92
dp=(char *)d;
crypto/libressl/crypto/idea/i_ofb64.c
97
*(out++)= *(in++)^d[n];
crypto/libressl/crypto/md4/md4_locl.h
100
#define H(b,c,d) ((b) ^ (c) ^ (d))
crypto/libressl/crypto/md4/md4_locl.h
102
#define R0(a,b,c,d,k,s,t) { \
crypto/libressl/crypto/md4/md4_locl.h
103
a+=((k)+(t)+F((b),(c),(d))); \
crypto/libressl/crypto/md4/md4_locl.h
106
#define R1(a,b,c,d,k,s,t) { \
crypto/libressl/crypto/md4/md4_locl.h
107
a+=((k)+(t)+G((b),(c),(d))); \
crypto/libressl/crypto/md4/md4_locl.h
110
#define R2(a,b,c,d,k,s,t) { \
crypto/libressl/crypto/md4/md4_locl.h
111
a+=((k)+(t)+H((b),(c),(d))); \
crypto/libressl/crypto/md4/md4_locl.h
98
#define F(b,c,d) ((((c) ^ (d)) & (b)) ^ (d))
crypto/libressl/crypto/md4/md4_locl.h
99
#define G(b,c,d) (((b) & (c)) | ((b) & (d)) | ((c) & (d)))
crypto/libressl/crypto/md4/md4_one.c
64
unsigned char *MD4(const unsigned char *d, size_t n, unsigned char *md)
crypto/libressl/crypto/md4/md4_one.c
72
MD4_Update(&c,d,n);
crypto/libressl/crypto/md5/md5_locl.h
109
#define F(b,c,d) ((((c) ^ (d)) & (b)) ^ (d))
crypto/libressl/crypto/md5/md5_locl.h
110
#define G(b,c,d) ((((b) ^ (c)) & (d)) ^ (c))
crypto/libressl/crypto/md5/md5_locl.h
111
#define H(b,c,d) ((b) ^ (c) ^ (d))
crypto/libressl/crypto/md5/md5_locl.h
112
#define I(b,c,d) (((~(d)) | (b)) ^ (c))
crypto/libressl/crypto/md5/md5_locl.h
114
#define R0(a,b,c,d,k,s,t) { \
crypto/libressl/crypto/md5/md5_locl.h
115
a+=((k)+(t)+F((b),(c),(d))); \
crypto/libressl/crypto/md5/md5_locl.h
119
#define R1(a,b,c,d,k,s,t) { \
crypto/libressl/crypto/md5/md5_locl.h
120
a+=((k)+(t)+G((b),(c),(d))); \
crypto/libressl/crypto/md5/md5_locl.h
124
#define R2(a,b,c,d,k,s,t) { \
crypto/libressl/crypto/md5/md5_locl.h
125
a+=((k)+(t)+H((b),(c),(d))); \
crypto/libressl/crypto/md5/md5_locl.h
129
#define R3(a,b,c,d,k,s,t) { \
crypto/libressl/crypto/md5/md5_locl.h
130
a+=((k)+(t)+I((b),(c),(d))); \
crypto/libressl/crypto/md5/md5_one.c
64
unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md)
crypto/libressl/crypto/md5/md5_one.c
72
MD5_Update(&c,d,n);
crypto/libressl/crypto/modes/cfb128.c
213
unsigned char c[1],d[1];
crypto/libressl/crypto/modes/cfb128.c
218
cfbr_encrypt_block(c,d,1,key,ivec,enc,block);
crypto/libressl/crypto/modes/cfb128.c
220
((d[0]&0x80) >> (unsigned int)(n%8));
crypto/libressl/crypto/modes/gcm128.c
1007
ctx->Yi.d[3] = BSWAP4(ctr);
crypto/libressl/crypto/modes/gcm128.c
1012
ctx->Yi.d[3] = ctr;
crypto/libressl/crypto/modes/gcm128.c
1028
ctx->Yi.d[3] = BSWAP4(ctr);
crypto/libressl/crypto/modes/gcm128.c
1033
ctx->Yi.d[3] = ctr;
crypto/libressl/crypto/modes/gcm128.c
1051
ctx->Yi.d[3] = BSWAP4(ctr);
crypto/libressl/crypto/modes/gcm128.c
1056
ctx->Yi.d[3] = ctr;
crypto/libressl/crypto/modes/gcm128.c
1099
ctr = BSWAP4(ctx->Yi.d[3]);
crypto/libressl/crypto/modes/gcm128.c
1104
ctr = ctx->Yi.d[3];
crypto/libressl/crypto/modes/gcm128.c
1141
ctx->Yi.d[3] = BSWAP4(ctr);
crypto/libressl/crypto/modes/gcm128.c
1146
ctx->Yi.d[3] = ctr;
crypto/libressl/crypto/modes/gcm128.c
1166
ctx->Yi.d[3] = BSWAP4(ctr);
crypto/libressl/crypto/modes/gcm128.c
1171
ctx->Yi.d[3] = ctr;
crypto/libressl/crypto/modes/gcm128.c
1189
ctx->Yi.d[3] = BSWAP4(ctr);
crypto/libressl/crypto/modes/gcm128.c
1194
ctx->Yi.d[3] = ctr;
crypto/libressl/crypto/modes/gcm128.c
1212
ctx->Yi.d[3] = BSWAP4(ctr);
crypto/libressl/crypto/modes/gcm128.c
1217
ctx->Yi.d[3] = ctr;
crypto/libressl/crypto/modes/gcm128.c
1238
ctx->Yi.d[3] = BSWAP4(ctr);
crypto/libressl/crypto/modes/gcm128.c
1243
ctx->Yi.d[3] = ctr;
crypto/libressl/crypto/modes/gcm128.c
1287
ctr = BSWAP4(ctx->Yi.d[3]);
crypto/libressl/crypto/modes/gcm128.c
1292
ctr = ctx->Yi.d[3];
crypto/libressl/crypto/modes/gcm128.c
1314
ctx->Yi.d[3] = BSWAP4(ctr);
crypto/libressl/crypto/modes/gcm128.c
1319
ctx->Yi.d[3] = ctr;
crypto/libressl/crypto/modes/gcm128.c
1334
ctx->Yi.d[3] = BSWAP4(ctr);
crypto/libressl/crypto/modes/gcm128.c
1339
ctx->Yi.d[3] = ctr;
crypto/libressl/crypto/modes/gcm128.c
1359
ctx->Yi.d[3] = BSWAP4(ctr);
crypto/libressl/crypto/modes/gcm128.c
1364
ctx->Yi.d[3] = ctr;
crypto/libressl/crypto/modes/gcm128.c
1405
ctr = BSWAP4(ctx->Yi.d[3]);
crypto/libressl/crypto/modes/gcm128.c
1410
ctr = ctx->Yi.d[3];
crypto/libressl/crypto/modes/gcm128.c
1435
ctx->Yi.d[3] = BSWAP4(ctr);
crypto/libressl/crypto/modes/gcm128.c
1440
ctx->Yi.d[3] = ctr;
crypto/libressl/crypto/modes/gcm128.c
1466
ctx->Yi.d[3] = BSWAP4(ctr);
crypto/libressl/crypto/modes/gcm128.c
1471
ctx->Yi.d[3] = ctr;
crypto/libressl/crypto/modes/gcm128.c
1482
ctx->Yi.d[3] = BSWAP4(ctr);
crypto/libressl/crypto/modes/gcm128.c
1487
ctx->Yi.d[3] = ctr;
crypto/libressl/crypto/modes/gcm128.c
808
ctr = BSWAP4(ctx->Yi.d[3]);
crypto/libressl/crypto/modes/gcm128.c
813
ctr = ctx->Yi.d[3];
crypto/libressl/crypto/modes/gcm128.c
821
ctx->Yi.d[3] = BSWAP4(ctr);
crypto/libressl/crypto/modes/gcm128.c
826
ctx->Yi.d[3] = ctr;
crypto/libressl/crypto/modes/gcm128.c
917
ctr = BSWAP4(ctx->Yi.d[3]);
crypto/libressl/crypto/modes/gcm128.c
922
ctr = ctx->Yi.d[3];
crypto/libressl/crypto/modes/gcm128.c
956
ctx->Yi.d[3] = BSWAP4(ctr);
crypto/libressl/crypto/modes/gcm128.c
961
ctx->Yi.d[3] = ctr;
crypto/libressl/crypto/modes/gcm128.c
983
ctx->Yi.d[3] = BSWAP4(ctr);
crypto/libressl/crypto/modes/gcm128.c
988
ctx->Yi.d[3] = ctr;
crypto/libressl/crypto/modes/modes_lcl.h
85
union { u64 u[2]; u32 d[4]; u8 c[16]; size_t t[16/sizeof(size_t)]; }
crypto/libressl/crypto/modes/xts128.c
105
res = 0x87&(((int)tweak.d[3])>>31);
crypto/libressl/crypto/modes/xts128.c
140
res = 0x87&(((int)tweak.d[3])>>31);
crypto/libressl/crypto/modes/xts128.c
67
union { u64 u[2]; u32 d[4]; u8 c[16]; } tweak, scratch;
crypto/libressl/crypto/o_time.c
219
date_to_julian(int y, int m, int d)
crypto/libressl/crypto/o_time.c
224
d - 32075;
crypto/libressl/crypto/o_time.c
228
julian_to_date(long jd, int *y, int *m, int *d)
crypto/libressl/crypto/o_time.c
238
*d = L - (2447 * j) / 80;
crypto/libressl/crypto/o_time.c
73
static long date_to_julian(int y, int m, int d);
crypto/libressl/crypto/o_time.c
74
static void julian_to_date(long jd, int *y, int *m, int *d);
crypto/libressl/crypto/objects/o_names.c
244
do_all_fn_doall_arg(const OBJ_NAME *name, struct doall *d)
crypto/libressl/crypto/objects/o_names.c
246
if (name->type == d->type)
crypto/libressl/crypto/objects/o_names.c
247
d->fn(name, d->arg);
crypto/libressl/crypto/objects/o_names.c
255
struct doall d;
crypto/libressl/crypto/objects/o_names.c
257
d.type = type;
crypto/libressl/crypto/objects/o_names.c
258
d.fn = fn;
crypto/libressl/crypto/objects/o_names.c
259
d.arg = arg;
crypto/libressl/crypto/objects/o_names.c
262
struct doall, &d);
crypto/libressl/crypto/objects/o_names.c
274
struct doall_sorted *d = d_;
crypto/libressl/crypto/objects/o_names.c
276
if (name->type != d->type)
crypto/libressl/crypto/objects/o_names.c
279
d->names[d->n++] = name;
crypto/libressl/crypto/objects/o_names.c
295
struct doall_sorted d;
crypto/libressl/crypto/objects/o_names.c
298
d.type = type;
crypto/libressl/crypto/objects/o_names.c
299
d.names = reallocarray(NULL, lh_OBJ_NAME_num_items(names_lh),
crypto/libressl/crypto/objects/o_names.c
300
sizeof *d.names);
crypto/libressl/crypto/objects/o_names.c
301
d.n = 0;
crypto/libressl/crypto/objects/o_names.c
302
if (d.names != NULL) {
crypto/libressl/crypto/objects/o_names.c
303
OBJ_NAME_do_all(type, do_all_sorted_fn, &d);
crypto/libressl/crypto/objects/o_names.c
305
qsort((void *)d.names, d.n, sizeof *d.names, do_all_sorted_cmp);
crypto/libressl/crypto/objects/o_names.c
307
for (n = 0; n < d.n; ++n)
crypto/libressl/crypto/objects/o_names.c
308
fn(d.names[n], arg);
crypto/libressl/crypto/objects/o_names.c
310
free(d.names);
crypto/libressl/crypto/ocsp/ocsp_cl.c
112
if (!X509_NAME_set(&gen->d.directoryName, nm)) {
crypto/libressl/crypto/ocsp/ocsp_ext.c
551
ad->location->d.ia5 = ia5;
crypto/libressl/crypto/ocsp/ocsp_local.h
276
#define OCSP_BASICRESP_sign(o,pkey,md,d) \
crypto/libressl/crypto/ocsp/ocsp_local.h
285
#define OCSP_BASICRESP_verify(a,r,d) \
crypto/libressl/crypto/ocsp/ocsp_vfy.c
399
nm = gen->d.directoryName;
crypto/libressl/crypto/pem/pvkfmt.c
396
if (!read_lebn(&p, nbyte, &rsa->d))
crypto/libressl/crypto/pem/pvkfmt.c
590
if (BN_num_bytes(rsa->d) > nbyte)
crypto/libressl/crypto/pem/pvkfmt.c
622
write_lebn(out, rsa->d, nbyte);
crypto/libressl/crypto/pkcs12/p12_add.c
105
if (!(p7->d.data = ASN1_OCTET_STRING_new())) {
crypto/libressl/crypto/pkcs12/p12_add.c
110
if (!ASN1_item_pack(sk, &PKCS12_SAFEBAGS_it, &p7->d.data)) {
crypto/libressl/crypto/pkcs12/p12_add.c
129
return ASN1_item_unpack(p7->d.data, &PKCS12_SAFEBAGS_it);
crypto/libressl/crypto/pkcs12/p12_add.c
162
X509_ALGOR_free(p7->d.encrypted->enc_data->algorithm);
crypto/libressl/crypto/pkcs12/p12_add.c
163
p7->d.encrypted->enc_data->algorithm = pbe;
crypto/libressl/crypto/pkcs12/p12_add.c
164
ASN1_OCTET_STRING_free(p7->d.encrypted->enc_data->enc_data);
crypto/libressl/crypto/pkcs12/p12_add.c
165
if (!(p7->d.encrypted->enc_data->enc_data = PKCS12_item_i2d_encrypt(
crypto/libressl/crypto/pkcs12/p12_add.c
183
return PKCS12_item_decrypt_d2i(p7->d.encrypted->enc_data->algorithm,
crypto/libressl/crypto/pkcs12/p12_add.c
185
p7->d.encrypted->enc_data->enc_data, 1);
crypto/libressl/crypto/pkcs12/p12_add.c
198
&p12->authsafes->d.data))
crypto/libressl/crypto/pkcs12/p12_add.c
210
return ASN1_item_unpack(p12->authsafes->d.data,
crypto/libressl/crypto/pkcs12/p12_init.c
83
if (!(pkcs12->authsafes->d.data =
crypto/libressl/crypto/pkcs12/p12_mutl.c
156
if (!HMAC_Update(hmac, p12->authsafes->d.data->data,
crypto/libressl/crypto/pkcs12/p12_mutl.c
157
p12->authsafes->d.data->length))
crypto/libressl/crypto/pkcs7/pk7_asn1.c
105
.offset = offsetof(PKCS7, d.enveloped),
crypto/libressl/crypto/pkcs7/pk7_asn1.c
116
.offset = offsetof(PKCS7, d.signed_and_enveloped),
crypto/libressl/crypto/pkcs7/pk7_asn1.c
127
.offset = offsetof(PKCS7, d.digest),
crypto/libressl/crypto/pkcs7/pk7_asn1.c
138
.offset = offsetof(PKCS7, d.encrypted),
crypto/libressl/crypto/pkcs7/pk7_asn1.c
72
.offset = offsetof(PKCS7, d.other),
crypto/libressl/crypto/pkcs7/pk7_asn1.c
83
.offset = offsetof(PKCS7, d.data),
crypto/libressl/crypto/pkcs7/pk7_asn1.c
94
.offset = offsetof(PKCS7, d.sign),
crypto/libressl/crypto/pkcs7/pk7_doit.c
103
return p7->d.data;
crypto/libressl/crypto/pkcs7/pk7_doit.c
104
if (PKCS7_type_is_other(p7) && p7->d.other &&
crypto/libressl/crypto/pkcs7/pk7_doit.c
105
(p7->d.other->type == V_ASN1_OCTET_STRING))
crypto/libressl/crypto/pkcs7/pk7_doit.c
106
return p7->d.other->value.octet_string;
crypto/libressl/crypto/pkcs7/pk7_doit.c
1096
if (p7->d.signed_and_enveloped == NULL)
crypto/libressl/crypto/pkcs7/pk7_doit.c
1098
rsk = p7->d.signed_and_enveloped->recipientinfo;
crypto/libressl/crypto/pkcs7/pk7_doit.c
281
if (p7->d.ptr == NULL) {
crypto/libressl/crypto/pkcs7/pk7_doit.c
291
md_sk = p7->d.sign->md_algs;
crypto/libressl/crypto/pkcs7/pk7_doit.c
292
os = PKCS7_get_octet_string(p7->d.sign->contents);
crypto/libressl/crypto/pkcs7/pk7_doit.c
295
rsk = p7->d.signed_and_enveloped->recipientinfo;
crypto/libressl/crypto/pkcs7/pk7_doit.c
296
md_sk = p7->d.signed_and_enveloped->md_algs;
crypto/libressl/crypto/pkcs7/pk7_doit.c
297
xalg = p7->d.signed_and_enveloped->enc_data->algorithm;
crypto/libressl/crypto/pkcs7/pk7_doit.c
298
evp_cipher = p7->d.signed_and_enveloped->enc_data->cipher;
crypto/libressl/crypto/pkcs7/pk7_doit.c
305
rsk = p7->d.enveloped->recipientinfo;
crypto/libressl/crypto/pkcs7/pk7_doit.c
306
xalg = p7->d.enveloped->enc_data->algorithm;
crypto/libressl/crypto/pkcs7/pk7_doit.c
307
evp_cipher = p7->d.enveloped->enc_data->cipher;
crypto/libressl/crypto/pkcs7/pk7_doit.c
314
xa = p7->d.digest->md;
crypto/libressl/crypto/pkcs7/pk7_doit.c
315
os = PKCS7_get_octet_string(p7->d.digest->contents);
crypto/libressl/crypto/pkcs7/pk7_doit.c
444
if (p7->d.ptr == NULL) {
crypto/libressl/crypto/pkcs7/pk7_doit.c
454
data_body = PKCS7_get_octet_string(p7->d.sign->contents);
crypto/libressl/crypto/pkcs7/pk7_doit.c
455
md_sk = p7->d.sign->md_algs;
crypto/libressl/crypto/pkcs7/pk7_doit.c
458
rsk = p7->d.signed_and_enveloped->recipientinfo;
crypto/libressl/crypto/pkcs7/pk7_doit.c
459
md_sk = p7->d.signed_and_enveloped->md_algs;
crypto/libressl/crypto/pkcs7/pk7_doit.c
460
data_body = p7->d.signed_and_enveloped->enc_data->enc_data;
crypto/libressl/crypto/pkcs7/pk7_doit.c
461
enc_alg = p7->d.signed_and_enveloped->enc_data->algorithm;
crypto/libressl/crypto/pkcs7/pk7_doit.c
469
rsk = p7->d.enveloped->recipientinfo;
crypto/libressl/crypto/pkcs7/pk7_doit.c
470
enc_alg = p7->d.enveloped->enc_data->algorithm;
crypto/libressl/crypto/pkcs7/pk7_doit.c
471
data_body = p7->d.enveloped->enc_data->enc_data;
crypto/libressl/crypto/pkcs7/pk7_doit.c
703
if (p7->d.ptr == NULL) {
crypto/libressl/crypto/pkcs7/pk7_doit.c
714
os = p7->d.data;
crypto/libressl/crypto/pkcs7/pk7_doit.c
718
si_sk = p7->d.signed_and_enveloped->signer_info;
crypto/libressl/crypto/pkcs7/pk7_doit.c
719
os = p7->d.signed_and_enveloped->enc_data->enc_data;
crypto/libressl/crypto/pkcs7/pk7_doit.c
726
p7->d.signed_and_enveloped->enc_data->enc_data = os;
crypto/libressl/crypto/pkcs7/pk7_doit.c
731
os = p7->d.enveloped->enc_data->enc_data;
crypto/libressl/crypto/pkcs7/pk7_doit.c
738
p7->d.enveloped->enc_data->enc_data = os;
crypto/libressl/crypto/pkcs7/pk7_doit.c
742
si_sk = p7->d.sign->signer_info;
crypto/libressl/crypto/pkcs7/pk7_doit.c
743
os = PKCS7_get_octet_string(p7->d.sign->contents);
crypto/libressl/crypto/pkcs7/pk7_doit.c
749
if (PKCS7_type_is_data(p7->d.sign->contents) && p7->detached) {
crypto/libressl/crypto/pkcs7/pk7_doit.c
752
p7->d.sign->contents->d.data = NULL;
crypto/libressl/crypto/pkcs7/pk7_doit.c
757
os = PKCS7_get_octet_string(p7->d.digest->contents);
crypto/libressl/crypto/pkcs7/pk7_doit.c
763
if (PKCS7_type_is_data(p7->d.digest->contents) &&
crypto/libressl/crypto/pkcs7/pk7_doit.c
767
p7->d.digest->contents->d.data = NULL;
crypto/libressl/crypto/pkcs7/pk7_doit.c
820
OBJ_obj2nid(p7->d.digest->md->algorithm)))
crypto/libressl/crypto/pkcs7/pk7_doit.c
824
if (ASN1_STRING_set(p7->d.digest->digest, md_data,
crypto/libressl/crypto/pkcs7/pk7_doit.c
933
if (p7->d.ptr == NULL) {
crypto/libressl/crypto/pkcs7/pk7_doit.c
939
cert = p7->d.sign->cert;
crypto/libressl/crypto/pkcs7/pk7_doit.c
941
cert = p7->d.signed_and_enveloped->cert;
crypto/libressl/crypto/pkcs7/pk7_lib.c
140
if (p7->d.sign->contents != NULL)
crypto/libressl/crypto/pkcs7/pk7_lib.c
141
PKCS7_free(p7->d.sign->contents);
crypto/libressl/crypto/pkcs7/pk7_lib.c
142
p7->d.sign->contents = p7_data;
crypto/libressl/crypto/pkcs7/pk7_lib.c
145
if (p7->d.digest->contents != NULL)
crypto/libressl/crypto/pkcs7/pk7_lib.c
146
PKCS7_free(p7->d.digest->contents);
crypto/libressl/crypto/pkcs7/pk7_lib.c
147
p7->d.digest->contents = p7_data;
crypto/libressl/crypto/pkcs7/pk7_lib.c
173
if ((p7->d.sign = PKCS7_SIGNED_new()) == NULL)
crypto/libressl/crypto/pkcs7/pk7_lib.c
175
if (!ASN1_INTEGER_set(p7->d.sign->version, 1)) {
crypto/libressl/crypto/pkcs7/pk7_lib.c
176
PKCS7_SIGNED_free(p7->d.sign);
crypto/libressl/crypto/pkcs7/pk7_lib.c
177
p7->d.sign = NULL;
crypto/libressl/crypto/pkcs7/pk7_lib.c
183
if ((p7->d.data = ASN1_OCTET_STRING_new()) == NULL)
crypto/libressl/crypto/pkcs7/pk7_lib.c
188
if ((p7->d.signed_and_enveloped =
crypto/libressl/crypto/pkcs7/pk7_lib.c
191
if (!ASN1_INTEGER_set(p7->d.signed_and_enveloped->version, 1))
crypto/libressl/crypto/pkcs7/pk7_lib.c
193
p7->d.signed_and_enveloped->enc_data->content_type =
crypto/libressl/crypto/pkcs7/pk7_lib.c
198
if ((p7->d.enveloped = PKCS7_ENVELOPE_new()) == NULL)
crypto/libressl/crypto/pkcs7/pk7_lib.c
200
if (!ASN1_INTEGER_set(p7->d.enveloped->version, 0))
crypto/libressl/crypto/pkcs7/pk7_lib.c
202
p7->d.enveloped->enc_data->content_type =
crypto/libressl/crypto/pkcs7/pk7_lib.c
207
if ((p7->d.encrypted = PKCS7_ENCRYPT_new()) == NULL)
crypto/libressl/crypto/pkcs7/pk7_lib.c
209
if (!ASN1_INTEGER_set(p7->d.encrypted->version, 0))
crypto/libressl/crypto/pkcs7/pk7_lib.c
211
p7->d.encrypted->enc_data->content_type =
crypto/libressl/crypto/pkcs7/pk7_lib.c
217
if ((p7->d.digest = PKCS7_DIGEST_new()) == NULL)
crypto/libressl/crypto/pkcs7/pk7_lib.c
219
if (!ASN1_INTEGER_set(p7->d.digest->version, 0))
crypto/libressl/crypto/pkcs7/pk7_lib.c
235
p7->d.other = other;
crypto/libressl/crypto/pkcs7/pk7_lib.c
250
signer_sk = p7->d.sign->signer_info;
crypto/libressl/crypto/pkcs7/pk7_lib.c
251
md_sk = p7->d.sign->md_algs;
crypto/libressl/crypto/pkcs7/pk7_lib.c
254
signer_sk = p7->d.signed_and_enveloped->signer_info;
crypto/libressl/crypto/pkcs7/pk7_lib.c
255
md_sk = p7->d.signed_and_enveloped->md_algs;
crypto/libressl/crypto/pkcs7/pk7_lib.c
303
sk = &(p7->d.sign->cert);
crypto/libressl/crypto/pkcs7/pk7_lib.c
306
sk = &(p7->d.signed_and_enveloped->cert);
crypto/libressl/crypto/pkcs7/pk7_lib.c
336
sk = &(p7->d.sign->crl);
crypto/libressl/crypto/pkcs7/pk7_lib.c
339
sk = &(p7->d.signed_and_enveloped->crl);
crypto/libressl/crypto/pkcs7/pk7_lib.c
438
if (!(p7->d.digest->md->parameter = ASN1_TYPE_new())) {
crypto/libressl/crypto/pkcs7/pk7_lib.c
442
p7->d.digest->md->parameter->type = V_ASN1_NULL;
crypto/libressl/crypto/pkcs7/pk7_lib.c
443
p7->d.digest->md->algorithm = OBJ_nid2obj(EVP_MD_nid(md));
crypto/libressl/crypto/pkcs7/pk7_lib.c
454
if (p7 == NULL || p7->d.ptr == NULL)
crypto/libressl/crypto/pkcs7/pk7_lib.c
457
return (p7->d.sign->signer_info);
crypto/libressl/crypto/pkcs7/pk7_lib.c
459
return (p7->d.signed_and_enveloped->signer_info);
crypto/libressl/crypto/pkcs7/pk7_lib.c
510
sk = p7->d.signed_and_enveloped->recipientinfo;
crypto/libressl/crypto/pkcs7/pk7_lib.c
513
sk = p7->d.enveloped->recipientinfo;
crypto/libressl/crypto/pkcs7/pk7_lib.c
575
return(X509_find_by_issuer_and_serial(p7->d.sign->cert,
crypto/libressl/crypto/pkcs7/pk7_lib.c
591
ec = p7->d.signed_and_enveloped->enc_data;
crypto/libressl/crypto/pkcs7/pk7_lib.c
594
ec = p7->d.enveloped->enc_data;
crypto/libressl/crypto/pkcs7/pk7_lib.c
619
os = p7->d.data;
crypto/libressl/crypto/pkcs7/pk7_lib.c
623
os = p7->d.signed_and_enveloped->enc_data->enc_data;
crypto/libressl/crypto/pkcs7/pk7_lib.c
626
p7->d.signed_and_enveloped->enc_data->enc_data = os;
crypto/libressl/crypto/pkcs7/pk7_lib.c
631
os = p7->d.enveloped->enc_data->enc_data;
crypto/libressl/crypto/pkcs7/pk7_lib.c
634
p7->d.enveloped->enc_data->enc_data = os;
crypto/libressl/crypto/pkcs7/pk7_lib.c
639
os = p7->d.sign->contents->d.data;
crypto/libressl/crypto/pkcs7/pk7_lib.c
81
if (ret && PKCS7_type_is_data(p7->d.sign->contents)) {
crypto/libressl/crypto/pkcs7/pk7_lib.c
83
os = p7->d.sign->contents->d.data;
crypto/libressl/crypto/pkcs7/pk7_lib.c
85
p7->d.sign->contents->d.data = NULL;
crypto/libressl/crypto/pkcs7/pk7_lib.c
94
if (!p7->d.sign || !p7->d.sign->contents->d.ptr)
crypto/libressl/crypto/pkcs7/pk7_mime.c
83
mdalgs = p7->d.sign->md_algs;
crypto/libressl/crypto/pkcs7/pk7_smime.c
319
signer, p7->d.sign->cert)) {
crypto/libressl/crypto/pkcs7/pk7_smime.c
336
X509_STORE_CTX_set0_crls(&cert_ctx, p7->d.sign->crl);
crypto/libressl/crypto/pkcs7/pk7_smime.c
467
if (!signer && !(flags & PKCS7_NOINTERN) && p7->d.sign->cert)
crypto/libressl/crypto/pkcs7/pk7_smime.c
469
X509_find_by_issuer_and_serial(p7->d.sign->cert,
crypto/libressl/crypto/rc2/rc2_cbc.c
136
void RC2_encrypt(unsigned long *d, RC2_KEY *key)
crypto/libressl/crypto/rc2/rc2_cbc.c
143
l=d[0];
crypto/libressl/crypto/rc2/rc2_cbc.c
146
l=d[1];
crypto/libressl/crypto/rc2/rc2_cbc.c
177
d[0]=(unsigned long)(x0&0xffff)|((unsigned long)(x1&0xffff)<<16L);
crypto/libressl/crypto/rc2/rc2_cbc.c
178
d[1]=(unsigned long)(x2&0xffff)|((unsigned long)(x3&0xffff)<<16L);
crypto/libressl/crypto/rc2/rc2_cbc.c
181
void RC2_decrypt(unsigned long *d, RC2_KEY *key)
crypto/libressl/crypto/rc2/rc2_cbc.c
188
l=d[0];
crypto/libressl/crypto/rc2/rc2_cbc.c
191
l=d[1];
crypto/libressl/crypto/rc2/rc2_cbc.c
223
d[0]=(unsigned long)(x0&0xffff)|((unsigned long)(x1&0xffff)<<16L);
crypto/libressl/crypto/rc2/rc2_cbc.c
224
d[1]=(unsigned long)(x2&0xffff)|((unsigned long)(x3&0xffff)<<16L);
crypto/libressl/crypto/rc2/rc2_ecb.c
74
unsigned long l,d[2];
crypto/libressl/crypto/rc2/rc2_ecb.c
76
c2l(in,l); d[0]=l;
crypto/libressl/crypto/rc2/rc2_ecb.c
77
c2l(in,l); d[1]=l;
crypto/libressl/crypto/rc2/rc2_ecb.c
79
RC2_encrypt(d,ks);
crypto/libressl/crypto/rc2/rc2_ecb.c
81
RC2_decrypt(d,ks);
crypto/libressl/crypto/rc2/rc2_ecb.c
82
l=d[0]; l2c(l,out);
crypto/libressl/crypto/rc2/rc2_ecb.c
83
l=d[1]; l2c(l,out);
crypto/libressl/crypto/rc2/rc2_ecb.c
84
l=d[0]=d[1]=0;
crypto/libressl/crypto/rc2/rc2_skey.c
112
d=k[len-1];
crypto/libressl/crypto/rc2/rc2_skey.c
116
d=key_table[(k[j]+d)&0xff];
crypto/libressl/crypto/rc2/rc2_skey.c
117
k[i]=d;
crypto/libressl/crypto/rc2/rc2_skey.c
126
d=key_table[k[i]&c];
crypto/libressl/crypto/rc2/rc2_skey.c
127
k[i]=d;
crypto/libressl/crypto/rc2/rc2_skey.c
130
d=key_table[k[i+j]^d];
crypto/libressl/crypto/rc2/rc2_skey.c
131
k[i]=d;
crypto/libressl/crypto/rc2/rc2_skey.c
99
unsigned int c,d;
crypto/libressl/crypto/rc2/rc2ofb64.c
73
unsigned char d[8];
crypto/libressl/crypto/rc2/rc2ofb64.c
84
dp=(char *)d;
crypto/libressl/crypto/rc2/rc2ofb64.c
92
dp=(char *)d;
crypto/libressl/crypto/rc2/rc2ofb64.c
97
*(out++)= *(in++)^d[n];
crypto/libressl/crypto/rc4/rc4_enc.c
118
tx=d[x], \
crypto/libressl/crypto/rc4/rc4_enc.c
120
ty=d[y], \
crypto/libressl/crypto/rc4/rc4_enc.c
121
d[y]=tx, \
crypto/libressl/crypto/rc4/rc4_enc.c
122
d[x]=ty, \
crypto/libressl/crypto/rc4/rc4_enc.c
123
(RC4_CHUNK)d[(tx+ty)&0xff]\
crypto/libressl/crypto/rc4/rc4_enc.c
195
tx=d[x]; \
crypto/libressl/crypto/rc4/rc4_enc.c
197
d[x]=ty=d[y]; \
crypto/libressl/crypto/rc4/rc4_enc.c
198
d[y]=tx; \
crypto/libressl/crypto/rc4/rc4_enc.c
199
(out) = d[(tx+ty)&0xff]^ (in);
crypto/libressl/crypto/rc4/rc4_enc.c
76
RC4_INT *d;
crypto/libressl/crypto/rc4/rc4_enc.c
82
d = key->data;
crypto/libressl/crypto/rc4/rc4_skey.c
100
#define SK_LOOP(d,n) { \
crypto/libressl/crypto/rc4/rc4_skey.c
101
tmp=d[(n)]; \
crypto/libressl/crypto/rc4/rc4_skey.c
104
d[(n)]=d[id2]; \
crypto/libressl/crypto/rc4/rc4_skey.c
105
d[id2]=tmp; }
crypto/libressl/crypto/rc4/rc4_skey.c
108
d[i] = i;
crypto/libressl/crypto/rc4/rc4_skey.c
110
SK_LOOP(d, i + 0);
crypto/libressl/crypto/rc4/rc4_skey.c
111
SK_LOOP(d, i + 1);
crypto/libressl/crypto/rc4/rc4_skey.c
112
SK_LOOP(d, i + 2);
crypto/libressl/crypto/rc4/rc4_skey.c
113
SK_LOOP(d, i + 3);
crypto/libressl/crypto/rc4/rc4_skey.c
92
RC4_INT *d;
crypto/libressl/crypto/rc4/rc4_skey.c
95
d = &(key->data[0]);
crypto/libressl/crypto/ripemd/rmd_dgst.c
192
a=A; b=B; c=C; d=D; e=E;
crypto/libressl/crypto/ripemd/rmd_dgst.c
282
ctx->B=ctx->C+d+E;
crypto/libressl/crypto/ripemd/rmd_dgst.c
90
unsigned MD32_REG_T a,b,c,d,e,l;
crypto/libressl/crypto/ripemd/rmd_locl.h
126
#define RIP1(a,b,c,d,e,w,s) { \
crypto/libressl/crypto/ripemd/rmd_locl.h
127
a+=F1(b,c,d)+X(w); \
crypto/libressl/crypto/ripemd/rmd_locl.h
131
#define RIP2(a,b,c,d,e,w,s,K) { \
crypto/libressl/crypto/ripemd/rmd_locl.h
132
a+=F2(b,c,d)+X(w)+K; \
crypto/libressl/crypto/ripemd/rmd_locl.h
136
#define RIP3(a,b,c,d,e,w,s,K) { \
crypto/libressl/crypto/ripemd/rmd_locl.h
137
a+=F3(b,c,d)+X(w)+K; \
crypto/libressl/crypto/ripemd/rmd_locl.h
141
#define RIP4(a,b,c,d,e,w,s,K) { \
crypto/libressl/crypto/ripemd/rmd_locl.h
142
a+=F4(b,c,d)+X(w)+K; \
crypto/libressl/crypto/ripemd/rmd_locl.h
146
#define RIP5(a,b,c,d,e,w,s,K) { \
crypto/libressl/crypto/ripemd/rmd_locl.h
147
a+=F5(b,c,d)+X(w)+K; \
crypto/libressl/crypto/ripemd/rmd_one.c
64
unsigned char *RIPEMD160(const unsigned char *d, size_t n,
crypto/libressl/crypto/ripemd/rmd_one.c
73
RIPEMD160_Update(&c,d,n);
crypto/libressl/crypto/rsa/rsa_ameth.c
435
update_buflen(x->d, &buf_len);
crypto/libressl/crypto/rsa/rsa_ameth.c
458
if (priv && x->d != NULL) {
crypto/libressl/crypto/rsa/rsa_ameth.c
474
if (!ASN1_bn_print(bp, "privateExponent:", x->d, m, off))
crypto/libressl/crypto/rsa/rsa_asn1.c
118
.offset = offsetof(RSA, d),
crypto/libressl/crypto/rsa/rsa_chk.c
153
r = BN_mod_mul(i, key->d, key->e, k, ctx);
crypto/libressl/crypto/rsa/rsa_chk.c
172
r = BN_mod_ct(j, key->d, i, ctx);
crypto/libressl/crypto/rsa/rsa_chk.c
190
r = BN_mod_ct(j, key->d, i, ctx);
crypto/libressl/crypto/rsa/rsa_chk.c
66
if (!key->p || !key->q || !key->n || !key->e || !key->d) {
crypto/libressl/crypto/rsa/rsa_crpt.c
149
rsa_get_public_exp(const BIGNUM *d, const BIGNUM *p, const BIGNUM *q,
crypto/libressl/crypto/rsa/rsa_crpt.c
154
if (d == NULL || p == NULL || q == NULL)
crypto/libressl/crypto/rsa/rsa_crpt.c
172
ret = BN_mod_inverse_ct(NULL, d, r0, ctx);
crypto/libressl/crypto/rsa/rsa_crpt.c
195
e = rsa_get_public_exp(rsa->d, rsa->p, rsa->q, ctx);
crypto/libressl/crypto/rsa/rsa_eay.c
429
BIGNUM d;
crypto/libressl/crypto/rsa/rsa_eay.c
431
BN_init(&d);
crypto/libressl/crypto/rsa/rsa_eay.c
432
BN_with_flags(&d, rsa->d, BN_FLG_CONSTTIME);
crypto/libressl/crypto/rsa/rsa_eay.c
439
if (!rsa->meth->bn_mod_exp(ret, f, &d, rsa->n, ctx,
crypto/libressl/crypto/rsa/rsa_eay.c
548
BIGNUM d;
crypto/libressl/crypto/rsa/rsa_eay.c
550
BN_init(&d);
crypto/libressl/crypto/rsa/rsa_eay.c
551
BN_with_flags(&d, rsa->d, BN_FLG_CONSTTIME);
crypto/libressl/crypto/rsa/rsa_eay.c
558
if (!rsa->meth->bn_mod_exp(ret, f, &d, rsa->n, ctx,
crypto/libressl/crypto/rsa/rsa_eay.c
666
if (padding == RSA_X931_PADDING && (ret->d[0] & 0xf) != 12)
crypto/libressl/crypto/rsa/rsa_eay.c
832
BIGNUM d;
crypto/libressl/crypto/rsa/rsa_eay.c
834
BN_init(&d);
crypto/libressl/crypto/rsa/rsa_eay.c
835
BN_with_flags(&d, rsa->d, BN_FLG_CONSTTIME);
crypto/libressl/crypto/rsa/rsa_eay.c
837
if (!rsa->meth->bn_mod_exp(r0, I, &d, rsa->n, ctx,
crypto/libressl/crypto/rsa/rsa_gen.c
119
if (!rsa->d && ((rsa->d = BN_new()) == NULL))
crypto/libressl/crypto/rsa/rsa_gen.c
201
if (BN_mod_inverse_ct(rsa->d, rsa->e, &pr0, ctx) == NULL) /* d */
crypto/libressl/crypto/rsa/rsa_gen.c
205
BN_init(&d);
crypto/libressl/crypto/rsa/rsa_gen.c
206
BN_with_flags(&d, rsa->d, BN_FLG_CONSTTIME);
crypto/libressl/crypto/rsa/rsa_gen.c
209
if (!BN_mod_ct(rsa->dmp1, &d, r1, ctx))
crypto/libressl/crypto/rsa/rsa_gen.c
213
if (!BN_mod_ct(rsa->dmq1, &d, r2, ctx))
crypto/libressl/crypto/rsa/rsa_gen.c
96
BIGNUM pr0, d, p;
crypto/libressl/crypto/rsa/rsa_lib.c
205
BN_clear_free(r->d);
crypto/libressl/crypto/rsa/rsa_lib.c
251
RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d)
crypto/libressl/crypto/rsa/rsa_lib.c
257
if (d != NULL)
crypto/libressl/crypto/rsa/rsa_lib.c
258
*d = r->d;
crypto/libressl/crypto/rsa/rsa_lib.c
262
RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)
crypto/libressl/crypto/rsa/rsa_lib.c
275
if (d != NULL) {
crypto/libressl/crypto/rsa/rsa_lib.c
276
BN_free(r->d);
crypto/libressl/crypto/rsa/rsa_lib.c
277
r->d = d;
crypto/libressl/crypto/rsa/rsa_lib.c
361
return r->d;
crypto/libressl/crypto/rsa/rsa_locl.h
59
BIGNUM *d;
crypto/libressl/crypto/sha/sha1_one.c
68
unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md)
crypto/libressl/crypto/sha/sha1_one.c
76
SHA1_Update(&c,d,n);
crypto/libressl/crypto/sha/sha256.c
154
unsigned MD32_REG_T a,b,c,d,e,f,g,h,s0,s1,T1,T2;
crypto/libressl/crypto/sha/sha256.c
161
a = ctx->h[0]; b = ctx->h[1]; c = ctx->h[2]; d = ctx->h[3];
crypto/libressl/crypto/sha/sha256.c
169
h = g; g = f; f = e; e = d + T1;
crypto/libressl/crypto/sha/sha256.c
170
d = c; c = b; b = a; a = T1 + T2;
crypto/libressl/crypto/sha/sha256.c
181
h = g; g = f; f = e; e = d + T1;
crypto/libressl/crypto/sha/sha256.c
182
d = c; c = b; b = a; a = T1 + T2;
crypto/libressl/crypto/sha/sha256.c
185
ctx->h[0] += a; ctx->h[1] += b; ctx->h[2] += c; ctx->h[3] += d;
crypto/libressl/crypto/sha/sha256.c
193
#define ROUND_00_15(i,a,b,c,d,e,f,g,h) do { \
crypto/libressl/crypto/sha/sha256.c
196
d += T1; h += T1; } while (0)
crypto/libressl/crypto/sha/sha256.c
198
#define ROUND_16_63(i,a,b,c,d,e,f,g,h,X) do { \
crypto/libressl/crypto/sha/sha256.c
202
ROUND_00_15(i,a,b,c,d,e,f,g,h); } while (0)
crypto/libressl/crypto/sha/sha256.c
206
unsigned MD32_REG_T a,b,c,d,e,f,g,h,s0,s1,T1;
crypto/libressl/crypto/sha/sha256.c
213
a = ctx->h[0]; b = ctx->h[1]; c = ctx->h[2]; d = ctx->h[3];
crypto/libressl/crypto/sha/sha256.c
221
T1 = X[0] = W[0]; ROUND_00_15(0,a,b,c,d,e,f,g,h);
crypto/libressl/crypto/sha/sha256.c
222
T1 = X[1] = W[1]; ROUND_00_15(1,h,a,b,c,d,e,f,g);
crypto/libressl/crypto/sha/sha256.c
223
T1 = X[2] = W[2]; ROUND_00_15(2,g,h,a,b,c,d,e,f);
crypto/libressl/crypto/sha/sha256.c
224
T1 = X[3] = W[3]; ROUND_00_15(3,f,g,h,a,b,c,d,e);
crypto/libressl/crypto/sha/sha256.c
225
T1 = X[4] = W[4]; ROUND_00_15(4,e,f,g,h,a,b,c,d);
crypto/libressl/crypto/sha/sha256.c
226
T1 = X[5] = W[5]; ROUND_00_15(5,d,e,f,g,h,a,b,c);
crypto/libressl/crypto/sha/sha256.c
227
T1 = X[6] = W[6]; ROUND_00_15(6,c,d,e,f,g,h,a,b);
crypto/libressl/crypto/sha/sha256.c
228
T1 = X[7] = W[7]; ROUND_00_15(7,b,c,d,e,f,g,h,a);
crypto/libressl/crypto/sha/sha256.c
229
T1 = X[8] = W[8]; ROUND_00_15(8,a,b,c,d,e,f,g,h);
crypto/libressl/crypto/sha/sha256.c
230
T1 = X[9] = W[9]; ROUND_00_15(9,h,a,b,c,d,e,f,g);
crypto/libressl/crypto/sha/sha256.c
231
T1 = X[10] = W[10]; ROUND_00_15(10,g,h,a,b,c,d,e,f);
crypto/libressl/crypto/sha/sha256.c
232
T1 = X[11] = W[11]; ROUND_00_15(11,f,g,h,a,b,c,d,e);
crypto/libressl/crypto/sha/sha256.c
233
T1 = X[12] = W[12]; ROUND_00_15(12,e,f,g,h,a,b,c,d);
crypto/libressl/crypto/sha/sha256.c
234
T1 = X[13] = W[13]; ROUND_00_15(13,d,e,f,g,h,a,b,c);
crypto/libressl/crypto/sha/sha256.c
235
T1 = X[14] = W[14]; ROUND_00_15(14,c,d,e,f,g,h,a,b);
crypto/libressl/crypto/sha/sha256.c
236
T1 = X[15] = W[15]; ROUND_00_15(15,b,c,d,e,f,g,h,a);
crypto/libressl/crypto/sha/sha256.c
244
HOST_c2l(data,l); T1 = X[0] = l; ROUND_00_15(0,a,b,c,d,e,f,g,h);
crypto/libressl/crypto/sha/sha256.c
245
HOST_c2l(data,l); T1 = X[1] = l; ROUND_00_15(1,h,a,b,c,d,e,f,g);
crypto/libressl/crypto/sha/sha256.c
246
HOST_c2l(data,l); T1 = X[2] = l; ROUND_00_15(2,g,h,a,b,c,d,e,f);
crypto/libressl/crypto/sha/sha256.c
247
HOST_c2l(data,l); T1 = X[3] = l; ROUND_00_15(3,f,g,h,a,b,c,d,e);
crypto/libressl/crypto/sha/sha256.c
248
HOST_c2l(data,l); T1 = X[4] = l; ROUND_00_15(4,e,f,g,h,a,b,c,d);
crypto/libressl/crypto/sha/sha256.c
249
HOST_c2l(data,l); T1 = X[5] = l; ROUND_00_15(5,d,e,f,g,h,a,b,c);
crypto/libressl/crypto/sha/sha256.c
250
HOST_c2l(data,l); T1 = X[6] = l; ROUND_00_15(6,c,d,e,f,g,h,a,b);
crypto/libressl/crypto/sha/sha256.c
251
HOST_c2l(data,l); T1 = X[7] = l; ROUND_00_15(7,b,c,d,e,f,g,h,a);
crypto/libressl/crypto/sha/sha256.c
252
HOST_c2l(data,l); T1 = X[8] = l; ROUND_00_15(8,a,b,c,d,e,f,g,h);
crypto/libressl/crypto/sha/sha256.c
253
HOST_c2l(data,l); T1 = X[9] = l; ROUND_00_15(9,h,a,b,c,d,e,f,g);
crypto/libressl/crypto/sha/sha256.c
254
HOST_c2l(data,l); T1 = X[10] = l; ROUND_00_15(10,g,h,a,b,c,d,e,f);
crypto/libressl/crypto/sha/sha256.c
255
HOST_c2l(data,l); T1 = X[11] = l; ROUND_00_15(11,f,g,h,a,b,c,d,e);
crypto/libressl/crypto/sha/sha256.c
256
HOST_c2l(data,l); T1 = X[12] = l; ROUND_00_15(12,e,f,g,h,a,b,c,d);
crypto/libressl/crypto/sha/sha256.c
257
HOST_c2l(data,l); T1 = X[13] = l; ROUND_00_15(13,d,e,f,g,h,a,b,c);
crypto/libressl/crypto/sha/sha256.c
258
HOST_c2l(data,l); T1 = X[14] = l; ROUND_00_15(14,c,d,e,f,g,h,a,b);
crypto/libressl/crypto/sha/sha256.c
259
HOST_c2l(data,l); T1 = X[15] = l; ROUND_00_15(15,b,c,d,e,f,g,h,a);
crypto/libressl/crypto/sha/sha256.c
264
ROUND_16_63(i+0,a,b,c,d,e,f,g,h,X);
crypto/libressl/crypto/sha/sha256.c
265
ROUND_16_63(i+1,h,a,b,c,d,e,f,g,X);
crypto/libressl/crypto/sha/sha256.c
266
ROUND_16_63(i+2,g,h,a,b,c,d,e,f,X);
crypto/libressl/crypto/sha/sha256.c
267
ROUND_16_63(i+3,f,g,h,a,b,c,d,e,X);
crypto/libressl/crypto/sha/sha256.c
268
ROUND_16_63(i+4,e,f,g,h,a,b,c,d,X);
crypto/libressl/crypto/sha/sha256.c
269
ROUND_16_63(i+5,d,e,f,g,h,a,b,c,X);
crypto/libressl/crypto/sha/sha256.c
270
ROUND_16_63(i+6,c,d,e,f,g,h,a,b,X);
crypto/libressl/crypto/sha/sha256.c
271
ROUND_16_63(i+7,b,c,d,e,f,g,h,a,X);
crypto/libressl/crypto/sha/sha256.c
274
ctx->h[0] += a; ctx->h[1] += b; ctx->h[2] += c; ctx->h[3] += d;
crypto/libressl/crypto/sha/sha256.c
42
unsigned char *SHA224(const unsigned char *d, size_t n, unsigned char *md)
crypto/libressl/crypto/sha/sha256.c
49
SHA256_Update(&c,d,n);
crypto/libressl/crypto/sha/sha256.c
55
unsigned char *SHA256(const unsigned char *d, size_t n, unsigned char *md)
crypto/libressl/crypto/sha/sha256.c
62
SHA256_Update(&c,d,n);
crypto/libressl/crypto/sha/sha512.c
109
c->u.d[SHA_LBLOCK-2] = c->Nh;
crypto/libressl/crypto/sha/sha512.c
110
c->u.d[SHA_LBLOCK-1] = c->Nl;
crypto/libressl/crypto/sha/sha512.c
209
if ((size_t)data%sizeof(c->u.d[0]) != 0)
crypto/libressl/crypto/sha/sha512.c
234
if ((size_t)data%sizeof(c->u.d[0]) != 0)
crypto/libressl/crypto/sha/sha512.c
241
unsigned char *SHA384(const unsigned char *d, size_t n, unsigned char *md)
crypto/libressl/crypto/sha/sha512.c
248
SHA512_Update(&c,d,n);
crypto/libressl/crypto/sha/sha512.c
254
unsigned char *SHA512(const unsigned char *d, size_t n, unsigned char *md)
crypto/libressl/crypto/sha/sha512.c
261
SHA512_Update(&c,d,n);
crypto/libressl/crypto/sha/sha512.c
413
SHA_LONG64 a,b,c,d,e,f,g,h,s0,s1,T1,T2;
crypto/libressl/crypto/sha/sha512.c
419
a = ctx->h[0]; b = ctx->h[1]; c = ctx->h[2]; d = ctx->h[3];
crypto/libressl/crypto/sha/sha512.c
431
h = g; g = f; f = e; e = d + T1;
crypto/libressl/crypto/sha/sha512.c
432
d = c; c = b; b = a; a = T1 + T2;
crypto/libressl/crypto/sha/sha512.c
443
h = g; g = f; f = e; e = d + T1;
crypto/libressl/crypto/sha/sha512.c
444
d = c; c = b; b = a; a = T1 + T2;
crypto/libressl/crypto/sha/sha512.c
447
ctx->h[0] += a; ctx->h[1] += b; ctx->h[2] += c; ctx->h[3] += d;
crypto/libressl/crypto/sha/sha512.c
456
#define ROUND_00_15(i,a,b,c,d,e,f,g,h) do { \
crypto/libressl/crypto/sha/sha512.c
459
d += T1; h += T1; } while (0)
crypto/libressl/crypto/sha/sha512.c
461
#define ROUND_16_80(i,j,a,b,c,d,e,f,g,h,X) do { \
crypto/libressl/crypto/sha/sha512.c
465
ROUND_00_15(i+j,a,b,c,d,e,f,g,h); } while (0)
crypto/libressl/crypto/sha/sha512.c
470
SHA_LONG64 a,b,c,d,e,f,g,h,s0,s1,T1;
crypto/libressl/crypto/sha/sha512.c
476
a = ctx->h[0]; b = ctx->h[1]; c = ctx->h[2]; d = ctx->h[3];
crypto/libressl/crypto/sha/sha512.c
480
T1 = X[0] = W[0]; ROUND_00_15(0,a,b,c,d,e,f,g,h);
crypto/libressl/crypto/sha/sha512.c
481
T1 = X[1] = W[1]; ROUND_00_15(1,h,a,b,c,d,e,f,g);
crypto/libressl/crypto/sha/sha512.c
482
T1 = X[2] = W[2]; ROUND_00_15(2,g,h,a,b,c,d,e,f);
crypto/libressl/crypto/sha/sha512.c
483
T1 = X[3] = W[3]; ROUND_00_15(3,f,g,h,a,b,c,d,e);
crypto/libressl/crypto/sha/sha512.c
484
T1 = X[4] = W[4]; ROUND_00_15(4,e,f,g,h,a,b,c,d);
crypto/libressl/crypto/sha/sha512.c
485
T1 = X[5] = W[5]; ROUND_00_15(5,d,e,f,g,h,a,b,c);
crypto/libressl/crypto/sha/sha512.c
486
T1 = X[6] = W[6]; ROUND_00_15(6,c,d,e,f,g,h,a,b);
crypto/libressl/crypto/sha/sha512.c
487
T1 = X[7] = W[7]; ROUND_00_15(7,b,c,d,e,f,g,h,a);
crypto/libressl/crypto/sha/sha512.c
488
T1 = X[8] = W[8]; ROUND_00_15(8,a,b,c,d,e,f,g,h);
crypto/libressl/crypto/sha/sha512.c
489
T1 = X[9] = W[9]; ROUND_00_15(9,h,a,b,c,d,e,f,g);
crypto/libressl/crypto/sha/sha512.c
490
T1 = X[10] = W[10]; ROUND_00_15(10,g,h,a,b,c,d,e,f);
crypto/libressl/crypto/sha/sha512.c
491
T1 = X[11] = W[11]; ROUND_00_15(11,f,g,h,a,b,c,d,e);
crypto/libressl/crypto/sha/sha512.c
492
T1 = X[12] = W[12]; ROUND_00_15(12,e,f,g,h,a,b,c,d);
crypto/libressl/crypto/sha/sha512.c
493
T1 = X[13] = W[13]; ROUND_00_15(13,d,e,f,g,h,a,b,c);
crypto/libressl/crypto/sha/sha512.c
494
T1 = X[14] = W[14]; ROUND_00_15(14,c,d,e,f,g,h,a,b);
crypto/libressl/crypto/sha/sha512.c
495
T1 = X[15] = W[15]; ROUND_00_15(15,b,c,d,e,f,g,h,a);
crypto/libressl/crypto/sha/sha512.c
497
T1 = X[0] = PULL64(W[0]); ROUND_00_15(0,a,b,c,d,e,f,g,h);
crypto/libressl/crypto/sha/sha512.c
498
T1 = X[1] = PULL64(W[1]); ROUND_00_15(1,h,a,b,c,d,e,f,g);
crypto/libressl/crypto/sha/sha512.c
499
T1 = X[2] = PULL64(W[2]); ROUND_00_15(2,g,h,a,b,c,d,e,f);
crypto/libressl/crypto/sha/sha512.c
500
T1 = X[3] = PULL64(W[3]); ROUND_00_15(3,f,g,h,a,b,c,d,e);
crypto/libressl/crypto/sha/sha512.c
501
T1 = X[4] = PULL64(W[4]); ROUND_00_15(4,e,f,g,h,a,b,c,d);
crypto/libressl/crypto/sha/sha512.c
502
T1 = X[5] = PULL64(W[5]); ROUND_00_15(5,d,e,f,g,h,a,b,c);
crypto/libressl/crypto/sha/sha512.c
503
T1 = X[6] = PULL64(W[6]); ROUND_00_15(6,c,d,e,f,g,h,a,b);
crypto/libressl/crypto/sha/sha512.c
504
T1 = X[7] = PULL64(W[7]); ROUND_00_15(7,b,c,d,e,f,g,h,a);
crypto/libressl/crypto/sha/sha512.c
505
T1 = X[8] = PULL64(W[8]); ROUND_00_15(8,a,b,c,d,e,f,g,h);
crypto/libressl/crypto/sha/sha512.c
506
T1 = X[9] = PULL64(W[9]); ROUND_00_15(9,h,a,b,c,d,e,f,g);
crypto/libressl/crypto/sha/sha512.c
507
T1 = X[10] = PULL64(W[10]); ROUND_00_15(10,g,h,a,b,c,d,e,f);
crypto/libressl/crypto/sha/sha512.c
508
T1 = X[11] = PULL64(W[11]); ROUND_00_15(11,f,g,h,a,b,c,d,e);
crypto/libressl/crypto/sha/sha512.c
509
T1 = X[12] = PULL64(W[12]); ROUND_00_15(12,e,f,g,h,a,b,c,d);
crypto/libressl/crypto/sha/sha512.c
510
T1 = X[13] = PULL64(W[13]); ROUND_00_15(13,d,e,f,g,h,a,b,c);
crypto/libressl/crypto/sha/sha512.c
511
T1 = X[14] = PULL64(W[14]); ROUND_00_15(14,c,d,e,f,g,h,a,b);
crypto/libressl/crypto/sha/sha512.c
512
T1 = X[15] = PULL64(W[15]); ROUND_00_15(15,b,c,d,e,f,g,h,a);
crypto/libressl/crypto/sha/sha512.c
517
ROUND_16_80(i, 0,a,b,c,d,e,f,g,h,X);
crypto/libressl/crypto/sha/sha512.c
518
ROUND_16_80(i, 1,h,a,b,c,d,e,f,g,X);
crypto/libressl/crypto/sha/sha512.c
519
ROUND_16_80(i, 2,g,h,a,b,c,d,e,f,X);
crypto/libressl/crypto/sha/sha512.c
520
ROUND_16_80(i, 3,f,g,h,a,b,c,d,e,X);
crypto/libressl/crypto/sha/sha512.c
521
ROUND_16_80(i, 4,e,f,g,h,a,b,c,d,X);
crypto/libressl/crypto/sha/sha512.c
522
ROUND_16_80(i, 5,d,e,f,g,h,a,b,c,X);
crypto/libressl/crypto/sha/sha512.c
523
ROUND_16_80(i, 6,c,d,e,f,g,h,a,b,X);
crypto/libressl/crypto/sha/sha512.c
524
ROUND_16_80(i, 7,b,c,d,e,f,g,h,a,X);
crypto/libressl/crypto/sha/sha512.c
525
ROUND_16_80(i, 8,a,b,c,d,e,f,g,h,X);
crypto/libressl/crypto/sha/sha512.c
526
ROUND_16_80(i, 9,h,a,b,c,d,e,f,g,X);
crypto/libressl/crypto/sha/sha512.c
527
ROUND_16_80(i,10,g,h,a,b,c,d,e,f,X);
crypto/libressl/crypto/sha/sha512.c
528
ROUND_16_80(i,11,f,g,h,a,b,c,d,e,X);
crypto/libressl/crypto/sha/sha512.c
529
ROUND_16_80(i,12,e,f,g,h,a,b,c,d,X);
crypto/libressl/crypto/sha/sha512.c
530
ROUND_16_80(i,13,d,e,f,g,h,a,b,c,X);
crypto/libressl/crypto/sha/sha512.c
531
ROUND_16_80(i,14,c,d,e,f,g,h,a,b,X);
crypto/libressl/crypto/sha/sha512.c
532
ROUND_16_80(i,15,b,c,d,e,f,g,h,a,X);
crypto/libressl/crypto/sha/sha512.c
535
ctx->h[0] += a; ctx->h[1] += b; ctx->h[2] += c; ctx->h[3] += d;
crypto/libressl/crypto/sha/sha_locl.h
129
#define F_00_19(b,c,d) ((((c) ^ (d)) & (b)) ^ (d))
crypto/libressl/crypto/sha/sha_locl.h
130
#define F_20_39(b,c,d) ((b) ^ (c) ^ (d))
crypto/libressl/crypto/sha/sha_locl.h
131
#define F_40_59(b,c,d) (((b) & (c)) | (((b)|(c)) & (d)))
crypto/libressl/crypto/sha/sha_locl.h
132
#define F_60_79(b,c,d) F_20_39(b,c,d)
crypto/libressl/crypto/sha/sha_locl.h
136
#define BODY_00_15(i,a,b,c,d,e,f,xi) \
crypto/libressl/crypto/sha/sha_locl.h
137
(f)=xi+(e)+K_00_19+ROTATE((a),5)+F_00_19((b),(c),(d)); \
crypto/libressl/crypto/sha/sha_locl.h
140
#define BODY_16_19(i,a,b,c,d,e,f,xi,xa,xb,xc,xd) \
crypto/libressl/crypto/sha/sha_locl.h
142
(f)+=(e)+K_00_19+ROTATE((a),5)+F_00_19((b),(c),(d)); \
crypto/libressl/crypto/sha/sha_locl.h
145
#define BODY_20_31(i,a,b,c,d,e,f,xi,xa,xb,xc,xd) \
crypto/libressl/crypto/sha/sha_locl.h
147
(f)+=(e)+K_20_39+ROTATE((a),5)+F_20_39((b),(c),(d)); \
crypto/libressl/crypto/sha/sha_locl.h
150
#define BODY_32_39(i,a,b,c,d,e,f,xa,xb,xc,xd) \
crypto/libressl/crypto/sha/sha_locl.h
152
(f)+=(e)+K_20_39+ROTATE((a),5)+F_20_39((b),(c),(d)); \
crypto/libressl/crypto/sha/sha_locl.h
155
#define BODY_40_59(i,a,b,c,d,e,f,xa,xb,xc,xd) \
crypto/libressl/crypto/sha/sha_locl.h
157
(f)+=(e)+K_40_59+ROTATE((a),5)+F_40_59((b),(c),(d)); \
crypto/libressl/crypto/sha/sha_locl.h
160
#define BODY_60_79(i,a,b,c,d,e,f,xa,xb,xc,xd) \
crypto/libressl/crypto/sha/sha_locl.h
162
(f)=xa+(e)+K_60_79+ROTATE((a),5)+F_60_79((b),(c),(d)); \
crypto/libressl/crypto/ts/ts_asn1.c
1004
tst_info_wrapper = enveloped->d.other;
crypto/libressl/crypto/ts/ts_asn1.c
996
pkcs7_signed = token->d.sign;
crypto/libressl/crypto/ts/ts_req_utils.c
127
TS_MSG_IMPRINT_set_msg(TS_MSG_IMPRINT *a, unsigned char *d, int len)
crypto/libressl/crypto/ts/ts_req_utils.c
129
return ASN1_OCTET_STRING_set(a->hashed_msg, d, len);
crypto/libressl/crypto/ts/ts_rsp_sign.c
664
tsa_name->d.dirn =
crypto/libressl/crypto/ts/ts_rsp_sign.c
666
if (!tsa_name->d.dirn)
crypto/libressl/crypto/ts/ts_rsp_sign.c
742
if (!ASN1_INTEGER_set(p7->d.sign->version, 3))
crypto/libressl/crypto/ts/ts_rsp_sign.c
885
if ((name->d.dirn = X509_NAME_dup(X509_get_issuer_name(cert))) == NULL)
crypto/libressl/crypto/ts/ts_rsp_sign.c
915
if (!(ret->d.other = ASN1_TYPE_new()))
crypto/libressl/crypto/ts/ts_rsp_sign.c
920
ASN1_TYPE_set(ret->d.other, V_ASN1_OCTET_STRING, octet_string);
crypto/libressl/crypto/ts/ts_rsp_verify.c
452
X509_NAME_cmp(issuer->d.dirn, X509_get_issuer_name(cert)))
crypto/libressl/crypto/ts/ts_rsp_verify.c
813
X509_name_cmp(tsa_name->d.dirn, X509_get_subject_name(signer)) == 0)
crypto/libressl/crypto/x509/x509_akey.c
220
gen->d.dirn = isname;
crypto/libressl/crypto/x509/x509_alt.c
187
if (!X509V3_add_value_uchar("email", gen->d.ia5->data, &ret))
crypto/libressl/crypto/x509/x509_alt.c
192
if (!X509V3_add_value_uchar("DNS", gen->d.ia5->data, &ret))
crypto/libressl/crypto/x509/x509_alt.c
197
if (!X509V3_add_value_uchar("URI", gen->d.ia5->data, &ret))
crypto/libressl/crypto/x509/x509_alt.c
202
if (X509_NAME_oneline(gen->d.dirn, oline, 256) == NULL)
crypto/libressl/crypto/x509/x509_alt.c
209
p = gen->d.ip->data;
crypto/libressl/crypto/x509/x509_alt.c
210
if (gen->d.ip->length == 4)
crypto/libressl/crypto/x509/x509_alt.c
213
else if (gen->d.ip->length == 16) {
crypto/libressl/crypto/x509/x509_alt.c
233
if (!i2t_ASN1_OBJECT(oline, 256, gen->d.rid))
crypto/libressl/crypto/x509/x509_alt.c
269
BIO_printf(out, "email:%.*s", gen->d.ia5->length,
crypto/libressl/crypto/x509/x509_alt.c
270
gen->d.ia5->data);
crypto/libressl/crypto/x509/x509_alt.c
274
BIO_printf(out, "DNS:%.*s", gen->d.ia5->length,
crypto/libressl/crypto/x509/x509_alt.c
275
gen->d.ia5->data);
crypto/libressl/crypto/x509/x509_alt.c
279
BIO_printf(out, "URI:%.*s", gen->d.ia5->length,
crypto/libressl/crypto/x509/x509_alt.c
280
gen->d.ia5->data);
crypto/libressl/crypto/x509/x509_alt.c
285
X509_NAME_print_ex(out, gen->d.dirn, 0, XN_FLAG_ONELINE);
crypto/libressl/crypto/x509/x509_alt.c
289
p = gen->d.ip->data;
crypto/libressl/crypto/x509/x509_alt.c
290
if (gen->d.ip->length == 4)
crypto/libressl/crypto/x509/x509_alt.c
293
else if (gen->d.ip->length == 16) {
crypto/libressl/crypto/x509/x509_alt.c
308
i2a_ASN1_OBJECT(out, gen->d.rid);
crypto/libressl/crypto/x509/x509_alt.c
469
gen->d.ia5 = email;
crypto/libressl/crypto/x509/x509_alt.c
560
gen->d.rid = obj;
crypto/libressl/crypto/x509/x509_alt.c
566
gen->d.ip = a2i_IPADDRESS_NC(value);
crypto/libressl/crypto/x509/x509_alt.c
568
gen->d.ip = a2i_IPADDRESS(value);
crypto/libressl/crypto/x509/x509_alt.c
569
if (gen->d.ip == NULL) {
crypto/libressl/crypto/x509/x509_alt.c
596
if (!(gen->d.ia5 = ASN1_IA5STRING_new()) ||
crypto/libressl/crypto/x509/x509_alt.c
597
!ASN1_STRING_set(gen->d.ia5, value, strlen(value))) {
crypto/libressl/crypto/x509/x509_alt.c
722
if (!(gen->d.otherName = OTHERNAME_new()))
crypto/libressl/crypto/x509/x509_alt.c
727
ASN1_TYPE_free(gen->d.otherName->value);
crypto/libressl/crypto/x509/x509_alt.c
728
if (!(gen->d.otherName->value = ASN1_generate_v3(p + 1, ctx)))
crypto/libressl/crypto/x509/x509_alt.c
734
gen->d.otherName->type_id = OBJ_txt2obj(objtmp, 0);
crypto/libressl/crypto/x509/x509_alt.c
737
gen->d.otherName->type_id = NULL;
crypto/libressl/crypto/x509/x509_alt.c
738
if (!gen->d.otherName->type_id)
crypto/libressl/crypto/x509/x509_alt.c
763
gen->d.dirn = nm;
crypto/libressl/crypto/x509/x509_constraints.c
674
ASN1_IA5STRING *aname = name->d.dNSName;
crypto/libressl/crypto/x509/x509_constraints.c
682
ASN1_IA5STRING *aname = name->d.rfc822Name;
crypto/libressl/crypto/x509/x509_constraints.c
690
ASN1_IA5STRING *aname = name->d.uniformResourceIdentifier;
crypto/libressl/crypto/x509/x509_constraints.c
698
X509_NAME *dname = name->d.directoryName;
crypto/libressl/crypto/x509/x509_constraints.c
708
*bytes = name->d.ip->data;
crypto/libressl/crypto/x509/x509_constraints.c
709
*len = name->d.ip->length;
crypto/libressl/crypto/x509/x509_cpols.c
203
.offset = offsetof(POLICYQUALINFO, d.other),
crypto/libressl/crypto/x509/x509_cpols.c
214
.offset = offsetof(POLICYQUALINFO, d.cpsuri),
crypto/libressl/crypto/x509/x509_cpols.c
225
.offset = offsetof(POLICYQUALINFO, d.usernotice),
crypto/libressl/crypto/x509/x509_cpols.c
495
nqual->d.cpsuri = ASN1_IA5STRING_new();
crypto/libressl/crypto/x509/x509_cpols.c
496
if (nqual->d.cpsuri == NULL)
crypto/libressl/crypto/x509/x509_cpols.c
498
if (ASN1_STRING_set(nqual->d.cpsuri, cnf->value,
crypto/libressl/crypto/x509/x509_cpols.c
572
qual->d.usernotice = not;
crypto/libressl/crypto/x509/x509_cpols.c
700
qualinfo->d.cpsuri->length,
crypto/libressl/crypto/x509/x509_cpols.c
701
qualinfo->d.cpsuri->data);
crypto/libressl/crypto/x509/x509_cpols.c
706
print_notice(out, qualinfo->d.usernotice, indent + 2);
crypto/libressl/crypto/x509/x509_genn.c
178
.offset = offsetof(GENERAL_NAME, d.otherName),
crypto/libressl/crypto/x509/x509_genn.c
185
.offset = offsetof(GENERAL_NAME, d.rfc822Name),
crypto/libressl/crypto/x509/x509_genn.c
192
.offset = offsetof(GENERAL_NAME, d.dNSName),
crypto/libressl/crypto/x509/x509_genn.c
200
.offset = offsetof(GENERAL_NAME, d.x400Address),
crypto/libressl/crypto/x509/x509_genn.c
208
.offset = offsetof(GENERAL_NAME, d.directoryName),
crypto/libressl/crypto/x509/x509_genn.c
215
.offset = offsetof(GENERAL_NAME, d.ediPartyName),
crypto/libressl/crypto/x509/x509_genn.c
222
.offset = offsetof(GENERAL_NAME, d.uniformResourceIdentifier),
crypto/libressl/crypto/x509/x509_genn.c
229
.offset = offsetof(GENERAL_NAME, d.iPAddress),
crypto/libressl/crypto/x509/x509_genn.c
236
.offset = offsetof(GENERAL_NAME, d.registeredID),
crypto/libressl/crypto/x509/x509_genn.c
369
result = ASN1_TYPE_cmp(a->d.x400Address, b->d.x400Address);
crypto/libressl/crypto/x509/x509_genn.c
373
result = EDIPARTYNAME_cmp(a->d.ediPartyName, b->d.ediPartyName);
crypto/libressl/crypto/x509/x509_genn.c
377
result = OTHERNAME_cmp(a->d.otherName, b->d.otherName);
crypto/libressl/crypto/x509/x509_genn.c
383
result = ASN1_STRING_cmp(a->d.ia5, b->d.ia5);
crypto/libressl/crypto/x509/x509_genn.c
387
result = X509_NAME_cmp(a->d.dirn, b->d.dirn);
crypto/libressl/crypto/x509/x509_genn.c
391
result = ASN1_OCTET_STRING_cmp(a->d.ip, b->d.ip);
crypto/libressl/crypto/x509/x509_genn.c
395
result = OBJ_cmp(a->d.rid, b->d.rid);
crypto/libressl/crypto/x509/x509_genn.c
422
a->d.x400Address = value;
crypto/libressl/crypto/x509/x509_genn.c
426
a->d.ediPartyName = value;
crypto/libressl/crypto/x509/x509_genn.c
430
a->d.otherName = value;
crypto/libressl/crypto/x509/x509_genn.c
436
a->d.ia5 = value;
crypto/libressl/crypto/x509/x509_genn.c
440
a->d.dirn = value;
crypto/libressl/crypto/x509/x509_genn.c
444
a->d.ip = value;
crypto/libressl/crypto/x509/x509_genn.c
448
a->d.rid = value;
crypto/libressl/crypto/x509/x509_genn.c
461
return a->d.x400Address;
crypto/libressl/crypto/x509/x509_genn.c
464
return a->d.ediPartyName;
crypto/libressl/crypto/x509/x509_genn.c
467
return a->d.otherName;
crypto/libressl/crypto/x509/x509_genn.c
472
return a->d.ia5;
crypto/libressl/crypto/x509/x509_genn.c
475
return a->d.dirn;
crypto/libressl/crypto/x509/x509_genn.c
478
return a->d.ip;
crypto/libressl/crypto/x509/x509_genn.c
481
return a->d.rid;
crypto/libressl/crypto/x509/x509_genn.c
510
*poid = gen->d.otherName->type_id;
crypto/libressl/crypto/x509/x509_genn.c
512
*pvalue = gen->d.otherName->value;
crypto/libressl/crypto/x509/x509_ncons.c
258
print_nc_ipadd(bp, tree->base->d.ip);
crypto/libressl/crypto/x509/x509_ncons.c
314
gntmp.d.directoryName = nm;
crypto/libressl/crypto/x509/x509_ncons.c
332
gntmp.d.rfc822Name = X509_NAME_ENTRY_get_data(ne);
crypto/libressl/crypto/x509/x509_ncons.c
333
if (gntmp.d.rfc822Name->type != V_ASN1_IA5STRING)
crypto/libressl/crypto/x509/x509_ncons.c
408
return nc_dn(gen->d.directoryName, base->d.directoryName);
crypto/libressl/crypto/x509/x509_ncons.c
411
return nc_dns(gen->d.dNSName, base->d.dNSName);
crypto/libressl/crypto/x509/x509_ncons.c
414
return nc_email(gen->d.rfc822Name, base->d.rfc822Name);
crypto/libressl/crypto/x509/x509_ncons.c
417
return nc_uri(gen->d.uniformResourceIdentifier,
crypto/libressl/crypto/x509/x509_ncons.c
418
base->d.uniformResourceIdentifier);
crypto/libressl/crypto/x509/x509_purp.c
413
iname = gen->d.directoryName;
crypto/libressl/crypto/x509/x509_purp.c
942
nm = gen->d.dirn;
crypto/libressl/crypto/x509/x509_utl.c
1016
cstr = gen->d.rfc822Name;
crypto/libressl/crypto/x509/x509_utl.c
1018
cstr = gen->d.dNSName;
crypto/libressl/crypto/x509/x509_utl.c
1020
cstr = gen->d.iPAddress;
crypto/libressl/crypto/x509/x509_utl.c
575
ad->location->d.uniformResourceIdentifier))
crypto/libressl/crypto/x509/x509_utl.c
624
if (!append_ia5(&ret, gen->d.ia5))
crypto/libressl/crypto/x509/x509_vfy.c
1526
if (!X509_NAME_cmp(nm, gena->d.directoryName))
crypto/libressl/crypto/x509/x509_vfy.c
1559
if (!X509_NAME_cmp(gen->d.directoryName, nm))
crypto/libressl/include/openssl/asn1.h
578
int ASN1_BIT_STRING_set(ASN1_BIT_STRING *a, unsigned char *d, int length);
crypto/libressl/include/openssl/bn.h
397
int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
crypto/libressl/include/openssl/bn.h
399
#define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx))
crypto/libressl/include/openssl/bn.h
401
int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx);
crypto/libressl/include/openssl/camellia.h
83
double d; /* ensures 64-bit align */
crypto/libressl/include/openssl/dh.h
144
int DH_set_ex_data(DH *d, int idx, void *arg);
crypto/libressl/include/openssl/dh.h
145
void *DH_get_ex_data(DH *d, int idx);
crypto/libressl/include/openssl/dh.h
148
ENGINE *DH_get0_engine(DH *d);
crypto/libressl/include/openssl/dsa.h
143
int DSA_bits(const DSA *d);
crypto/libressl/include/openssl/dsa.h
152
int DSA_set_ex_data(DSA *d, int idx, void *arg);
crypto/libressl/include/openssl/dsa.h
153
void *DSA_get_ex_data(DSA *d, int idx);
crypto/libressl/include/openssl/dsa.h
154
int DSA_security_bits(const DSA *d);
crypto/libressl/include/openssl/dsa.h
205
void DSA_get0_pqg(const DSA *d, const BIGNUM **p, const BIGNUM **q,
crypto/libressl/include/openssl/dsa.h
207
int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g);
crypto/libressl/include/openssl/dsa.h
208
void DSA_get0_key(const DSA *d, const BIGNUM **pub_key, const BIGNUM **priv_key);
crypto/libressl/include/openssl/dsa.h
209
int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key);
crypto/libressl/include/openssl/dsa.h
210
const BIGNUM *DSA_get0_p(const DSA *d);
crypto/libressl/include/openssl/dsa.h
211
const BIGNUM *DSA_get0_q(const DSA *d);
crypto/libressl/include/openssl/dsa.h
212
const BIGNUM *DSA_get0_g(const DSA *d);
crypto/libressl/include/openssl/dsa.h
213
const BIGNUM *DSA_get0_pub_key(const DSA *d);
crypto/libressl/include/openssl/dsa.h
214
const BIGNUM *DSA_get0_priv_key(const DSA *d);
crypto/libressl/include/openssl/dsa.h
215
void DSA_clear_flags(DSA *d, int flags);
crypto/libressl/include/openssl/dsa.h
216
int DSA_test_flags(const DSA *d, int flags);
crypto/libressl/include/openssl/dsa.h
217
void DSA_set_flags(DSA *d, int flags);
crypto/libressl/include/openssl/dsa.h
218
ENGINE *DSA_get0_engine(DSA *d);
crypto/libressl/include/openssl/ecdh.h
101
int ECDH_set_ex_data(EC_KEY *d, int idx, void *arg);
crypto/libressl/include/openssl/ecdh.h
102
void *ECDH_get_ex_data(EC_KEY *d, int idx);
crypto/libressl/include/openssl/ecdsa.h
262
int ECDSA_set_ex_data(EC_KEY *d, int idx, void *arg);
crypto/libressl/include/openssl/ecdsa.h
263
void *ECDSA_get_ex_data(EC_KEY *d, int idx);
crypto/libressl/include/openssl/err.h
133
#define ERR_PUT_error(a,b,c,d,e) ERR_put_error(a,b,c,d,e)
crypto/libressl/include/openssl/err.h
135
#define ERR_PUT_error(a,b,c,d,e) ERR_put_error(a,b,c,NULL,0)
crypto/libressl/include/openssl/evp.h
411
#define EVP_OpenUpdate(a,b,c,d,e) EVP_DecryptUpdate(a,b,c,d,e)
crypto/libressl/include/openssl/evp.h
412
#define EVP_SealUpdate(a,b,c,d,e) EVP_EncryptUpdate(a,b,c,d,e)
crypto/libressl/include/openssl/evp.h
449
int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *d, size_t cnt);
crypto/libressl/include/openssl/gost.h
116
unsigned char *GOST2814789IMIT(const unsigned char *d, size_t n,
crypto/libressl/include/openssl/gost.h
141
unsigned char *GOSTR341194(const unsigned char *d, size_t n,unsigned char *md, int nid);
crypto/libressl/include/openssl/gost.h
169
unsigned char *STREEBOG256(const unsigned char *d, size_t n,unsigned char *md);
crypto/libressl/include/openssl/gost.h
175
unsigned char *STREEBOG512(const unsigned char *d, size_t n,unsigned char *md);
crypto/libressl/include/openssl/hmac.h
88
const unsigned char *d, size_t n, unsigned char *md, unsigned int *md_len);
crypto/libressl/include/openssl/md4.h
97
unsigned char *MD4(const unsigned char *d, size_t n, unsigned char *md);
crypto/libressl/include/openssl/md5.h
105
unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md)
crypto/libressl/include/openssl/pem.h
408
int PEM_SignUpdate(EVP_MD_CTX *ctx, unsigned char *d, unsigned int cnt);
crypto/libressl/include/openssl/pkcs7.h
209
} d;
crypto/libressl/include/openssl/ripemd.h
98
unsigned char *RIPEMD160(const unsigned char *d, size_t n,
crypto/libressl/include/openssl/rsa.h
378
const BIGNUM **d);
crypto/libressl/include/openssl/rsa.h
379
int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
crypto/libressl/include/openssl/sha.h
105
unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md)
crypto/libressl/include/openssl/sha.h
129
unsigned char *SHA224(const unsigned char *d, size_t n,unsigned char *md)
crypto/libressl/include/openssl/sha.h
135
unsigned char *SHA256(const unsigned char *d, size_t n,unsigned char *md)
crypto/libressl/include/openssl/sha.h
165
SHA_LONG64 d[SHA_LBLOCK];
crypto/libressl/include/openssl/sha.h
177
unsigned char *SHA384(const unsigned char *d, size_t n,unsigned char *md)
crypto/libressl/include/openssl/sha.h
183
unsigned char *SHA512(const unsigned char *d, size_t n,unsigned char *md)
crypto/libressl/include/openssl/ssl.h
1180
int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, const unsigned char *d, long len);
crypto/libressl/include/openssl/ssl.h
1182
int SSL_use_PrivateKey_ASN1(int pk, SSL *ssl, const unsigned char *d, long len);
crypto/libressl/include/openssl/ssl.h
1184
int SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len);
crypto/libressl/include/openssl/ssl.h
1265
int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, const unsigned char *d, long len);
crypto/libressl/include/openssl/ssl.h
1267
int SSL_CTX_use_PrivateKey_ASN1(int pk, SSL_CTX *ctx, const unsigned char *d, long len);
crypto/libressl/include/openssl/ssl.h
1269
int SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len, const unsigned char *d);
crypto/libressl/include/openssl/ts.h
230
int TS_MSG_IMPRINT_set_msg(TS_MSG_IMPRINT *a, unsigned char *d, int len);
crypto/libressl/include/openssl/x509v3.h
206
} d;
crypto/libressl/include/openssl/x509v3.h
296
} d;
crypto/libressl/ssl/ssl_rsa.c
131
SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len)
crypto/libressl/ssl/ssl_rsa.c
136
x = d2i_X509(NULL, &d, (long)len);
crypto/libressl/ssl/ssl_rsa.c
264
SSL_use_RSAPrivateKey_ASN1(SSL *ssl, const unsigned char *d, long len)
crypto/libressl/ssl/ssl_rsa.c
269
if ((rsa = d2i_RSAPrivateKey(NULL, &d, (long)len)) == NULL) {
crypto/libressl/ssl/ssl_rsa.c
333
SSL_use_PrivateKey_ASN1(int type, SSL *ssl, const unsigned char *d, long len)
crypto/libressl/ssl/ssl_rsa.c
338
if ((pkey = d2i_PrivateKey(type, NULL, &d, (long)len)) == NULL) {
crypto/libressl/ssl/ssl_rsa.c
480
SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len, const unsigned char *d)
crypto/libressl/ssl/ssl_rsa.c
485
x = d2i_X509(NULL, &d, (long)len);
crypto/libressl/ssl/ssl_rsa.c
560
SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, const unsigned char *d, long len)
crypto/libressl/ssl/ssl_rsa.c
565
if ((rsa = d2i_RSAPrivateKey(NULL, &d, (long)len)) == NULL) {
crypto/libressl/ssl/ssl_rsa.c
626
SSL_CTX_use_PrivateKey_ASN1(int type, SSL_CTX *ctx, const unsigned char *d,
crypto/libressl/ssl/ssl_rsa.c
632
if ((pkey = d2i_PrivateKey(type, NULL, &d, (long)len)) == NULL) {
crypto/libressl/tls/tls.c
277
char d[EVP_MAX_MD_SIZE], *dhex = NULL;
crypto/libressl/tls/tls.c
283
if (X509_digest(cert, EVP_sha256(), d, &dlen) != 1)
crypto/libressl/tls/tls.c
286
if (tls_hex_string(d, dlen, &dhex, NULL) != 0)
crypto/libressl/tls/tls.c
304
char d[EVP_MAX_MD_SIZE], *dhex = NULL;
crypto/libressl/tls/tls.c
310
if (X509_pubkey_digest(cert, EVP_sha256(), d, &dlen) != 1)
crypto/libressl/tls/tls.c
313
if (tls_hex_string(d, dlen, &dhex, NULL) != 0)
crypto/libressl/tls/tls_verify.c
132
format = ASN1_STRING_type(altname->d.dNSName);
crypto/libressl/tls/tls_verify.c
134
data = ASN1_STRING_data(altname->d.dNSName);
crypto/libressl/tls/tls_verify.c
135
len = ASN1_STRING_length(altname->d.dNSName);
crypto/libressl/tls/tls_verify.c
177
datalen = ASN1_STRING_length(altname->d.iPAddress);
crypto/libressl/tls/tls_verify.c
178
data = ASN1_STRING_data(altname->d.iPAddress);
crypto/openssh/bitmap.c
111
b->d[offset] |= (BITMAP_WTYPE)1 << (n & BITMAP_WMASK);
crypto/openssh/bitmap.c
121
while (b->top > 0 && b->d[b->top] == 0)
crypto/openssh/bitmap.c
135
b->d[offset] &= ~((BITMAP_WTYPE)1 << (n & BITMAP_WMASK));
crypto/openssh/bitmap.c
149
if (b->len == 0 || (b->top == 0 && b->d[0] == 0))
crypto/openssh/bitmap.c
152
w = b->d[b->top];
crypto/openssh/bitmap.c
182
s[need - 1 - k++] = (b->d[i] >> (j * 8)) & 0xff;
crypto/openssh/bitmap.c
205
b->d[offset] |= (BITMAP_WTYPE)s[i] << shift;
crypto/openssh/bitmap.c
32
BITMAP_WTYPE *d;
crypto/openssh/bitmap.c
44
if ((ret->d = calloc(1, BITMAP_BYTES)) == NULL) {
crypto/openssh/bitmap.c
56
if (b != NULL && b->d != NULL) {
crypto/openssh/bitmap.c
58
free(b->d);
crypto/openssh/bitmap.c
59
b->d = NULL;
crypto/openssh/bitmap.c
67
memset(b->d, 0, b->len * BITMAP_BYTES);
crypto/openssh/bitmap.c
78
return (b->d[n / BITMAP_BITS] >> (n & BITMAP_WMASK)) & 1;
crypto/openssh/bitmap.c
91
if ((tmp = recallocarray(b->d, b->len,
crypto/openssh/bitmap.c
94
b->d = tmp;
crypto/openssh/chacha.c
45
#define QUARTERROUND(a,b,c,d) \
crypto/openssh/chacha.c
46
a = PLUS(a,b); d = ROTATE(XOR(d,a),16); \
crypto/openssh/chacha.c
47
c = PLUS(c,d); b = ROTATE(XOR(b,c),12); \
crypto/openssh/chacha.c
48
a = PLUS(a,b); d = ROTATE(XOR(d,a), 8); \
crypto/openssh/chacha.c
49
c = PLUS(c,d); b = ROTATE(XOR(b,c), 7);
crypto/openssh/digest-libc.c
219
ssh_digest_final(struct ssh_digest_ctx *ctx, u_char *d, size_t dlen)
crypto/openssh/digest-libc.c
229
digest->md_final(d, ctx->mdctx);
crypto/openssh/digest-libc.c
249
ssh_digest_memory(int alg, const void *m, size_t mlen, u_char *d, size_t dlen)
crypto/openssh/digest-libc.c
256
ssh_digest_final(ctx, d, dlen) != 0)
crypto/openssh/digest-libc.c
263
ssh_digest_buffer(int alg, const struct sshbuf *b, u_char *d, size_t dlen)
crypto/openssh/digest-libc.c
265
return ssh_digest_memory(alg, sshbuf_ptr(b), sshbuf_len(b), d, dlen);
crypto/openssh/digest-openssl.c
159
ssh_digest_final(struct ssh_digest_ctx *ctx, u_char *d, size_t dlen)
crypto/openssh/digest-openssl.c
168
if (EVP_DigestFinal_ex(ctx->mdctx, d, &l) != 1)
crypto/openssh/digest-openssl.c
185
ssh_digest_memory(int alg, const void *m, size_t mlen, u_char *d, size_t dlen)
crypto/openssh/digest-openssl.c
197
if (!EVP_Digest(m, mlen, d, &mdlen, digest->mdfunc(), NULL))
crypto/openssh/digest-openssl.c
203
ssh_digest_buffer(int alg, const struct sshbuf *b, u_char *d, size_t dlen)
crypto/openssh/digest-openssl.c
205
return ssh_digest_memory(alg, sshbuf_ptr(b), sshbuf_len(b), d, dlen);
crypto/openssh/digest.h
53
u_char *d, size_t dlen)
crypto/openssh/digest.h
56
int ssh_digest_buffer(int alg, const struct sshbuf *b, u_char *d, size_t dlen)
crypto/openssh/digest.h
65
int ssh_digest_final(struct ssh_digest_ctx *ctx, u_char *d, size_t dlen)
crypto/openssh/ed25519.c
1674
fe25519 a,b,t1,t2,c,d,e,f,g,h,qt;
crypto/openssh/ed25519.c
1686
fe25519_add(&d, &r->z, &r->z); /* D = Z1*2 */
crypto/openssh/ed25519.c
1687
fe25519_sub(&f, &d, &c); /* F = D-C */
crypto/openssh/ed25519.c
1688
fe25519_add(&g, &d, &c); /* G = D+C */
crypto/openssh/ed25519.c
1697
fe25519 a, b, c, d, t;
crypto/openssh/ed25519.c
1707
fe25519_mul(&d, &p->z, &q->z); /* D = Z1*2*Z2 */
crypto/openssh/ed25519.c
1708
fe25519_add(&d, &d, &d);
crypto/openssh/ed25519.c
1710
fe25519_sub(&r->t, &d, &c); /* F = D-C */
crypto/openssh/ed25519.c
1711
fe25519_add(&r->z, &d, &c); /* G = D+C */
crypto/openssh/ed25519.c
1718
fe25519 a,b,c,d;
crypto/openssh/ed25519.c
1723
fe25519_neg(&d, &a);
crypto/openssh/ed25519.c
1729
fe25519_add(&r->z, &d, &b);
crypto/openssh/ed25519.c
1731
fe25519_sub(&r->y, &d, &b);
crypto/openssh/hmac.c
107
ssh_hmac_final(struct ssh_hmac_ctx *ctx, u_char *d, size_t dlen)
crypto/openssh/hmac.c
118
ssh_digest_final(ctx->digest, d, dlen) < 0)
crypto/openssh/hmac.h
34
int ssh_hmac_final(struct ssh_hmac_ctx *ctx, u_char *d, size_t dlen)
crypto/openssh/packet.c
1803
const u_char *d;
crypto/openssh/packet.c
1865
if ((r = sshpkt_get_string_direct(ssh, &d, &len)) != 0)
crypto/openssh/packet.c
1869
(r = sshpkt_put_string(ssh, d, len)) != 0 ||
crypto/openssh/sftp-usergroup.c
190
collect_ids_from_dirents(SFTP_DIRENT **d, int user, u_int **idsp, u_int *nidsp)
crypto/openssh/sftp-usergroup.c
194
for (i = 0; d[i] != NULL; i++) {
crypto/openssh/sftp-usergroup.c
196
if (ruser_name((uid_t)(d[i]->a.uid)) != NULL)
crypto/openssh/sftp-usergroup.c
198
id = d[i]->a.uid;
crypto/openssh/sftp-usergroup.c
200
if (rgroup_name((gid_t)(d[i]->a.gid)) != NULL)
crypto/openssh/sftp-usergroup.c
202
id = d[i]->a.gid;
crypto/openssh/sftp-usergroup.c
214
get_remote_user_groups_from_dirents(struct sftp_conn *conn, SFTP_DIRENT **d)
crypto/openssh/sftp-usergroup.c
221
collect_ids_from_dirents(d, 1, &uids, &nuids);
crypto/openssh/sftp-usergroup.c
222
collect_ids_from_dirents(d, 0, &gids, &ngids);
crypto/openssh/sftp-usergroup.h
21
void get_remote_user_groups_from_dirents(struct sftp_conn *conn, SFTP_DIRENT **d);
crypto/openssh/sftp.c
854
SFTP_DIRENT **d;
crypto/openssh/sftp.c
856
if ((n = sftp_readdir(conn, path, &d)) != 0)
crypto/openssh/sftp.c
865
for (n = 0; d[n] != NULL; n++) {
crypto/openssh/sftp.c
866
if (d[n]->filename[0] != '.' || (lflag & LS_SHOW_ALL))
crypto/openssh/sftp.c
867
m = MAXIMUM(m, strlen(d[n]->filename));
crypto/openssh/sftp.c
885
for (n = 0; d[n] != NULL; n++)
crypto/openssh/sftp.c
888
qsort(d, n, sizeof(*d), sdirent_comp);
crypto/openssh/sftp.c
891
get_remote_user_groups_from_dirents(conn, d);
crypto/openssh/sftp.c
892
for (n = 0; d[n] != NULL && !interrupted; n++) {
crypto/openssh/sftp.c
895
if (d[n]->filename[0] == '.' && !(lflag & LS_SHOW_ALL))
crypto/openssh/sftp.c
898
tmp = sftp_path_append(path, d[n]->filename);
crypto/openssh/sftp.c
909
attrib_to_stat(&d[n]->a, &sb);
crypto/openssh/sftp.c
917
mprintf("%s\n", d[n]->longname);
crypto/openssh/sftp.c
933
sftp_free_dirents(d);
crypto/openssh/ssh-agent.c
418
struct dest_constraint *d;
crypto/openssh/ssh-agent.c
423
d = id->dest_constraints + i;
crypto/openssh/ssh-agent.c
426
i, d->from.user ? d->from.user : "",
crypto/openssh/ssh-agent.c
427
d->from.user ? "@" : "",
crypto/openssh/ssh-agent.c
428
d->from.hostname ? d->from.hostname : "(ORIGIN)",
crypto/openssh/ssh-agent.c
429
d->from.nkeys,
crypto/openssh/ssh-agent.c
430
d->to.user ? d->to.user : "", d->to.user ? "@" : "",
crypto/openssh/ssh-agent.c
431
d->to.hostname ? d->to.hostname : "(ANY)", d->to.nkeys);
crypto/openssh/ssh-agent.c
436
if (d->from.hostname != NULL || d->from.nkeys != 0)
crypto/openssh/ssh-agent.c
438
} else if (match_key_hop("from", fromkey, &d->from) != 0)
crypto/openssh/ssh-agent.c
442
if (tokey != NULL && match_key_hop("to", tokey, &d->to) != 0)
crypto/openssh/ssh-agent.c
446
if (d->to.user != NULL && user != NULL &&
crypto/openssh/ssh-agent.c
447
!match_pattern(user, d->to.user))
crypto/openssh/ssh-agent.c
452
*hostnamep = d->to.hostname;
crypto/openssh/ssh-agent.c
454
d->to.hostname == NULL ? "*" : d->to.hostname);
crypto/openssh/sshbuf-getput-basic.c
516
u_char *d;
crypto/openssh/sshbuf-getput-basic.c
523
if ((r = sshbuf_reserve(buf, len + 4, &d)) < 0)
crypto/openssh/sshbuf-getput-basic.c
525
POKE_U32(d, len);
crypto/openssh/sshbuf-getput-basic.c
527
memcpy(d + 4, v, len);
crypto/openssh/sshbuf-getput-basic.c
573
u_char *d;
crypto/openssh/sshbuf-getput-basic.c
589
if ((r = sshbuf_reserve(buf, len + 4 + prepend, &d)) < 0)
crypto/openssh/sshbuf-getput-basic.c
591
POKE_U32(d, len + prepend);
crypto/openssh/sshbuf-getput-basic.c
593
d[4] = 0;
crypto/openssh/sshbuf-getput-basic.c
595
memcpy(d + 4 + prepend, s, len);
crypto/openssh/sshbuf-getput-basic.c
603
const u_char *d;
crypto/openssh/sshbuf-getput-basic.c
607
if ((r = sshbuf_peek_string_direct(buf, &d, &olen)) < 0)
crypto/openssh/sshbuf-getput-basic.c
611
if ((len != 0 && (*d & 0x80) != 0))
crypto/openssh/sshbuf-getput-basic.c
615
(len == SSHBUF_MAX_BIGNUM + 1 && *d != 0))
crypto/openssh/sshbuf-getput-basic.c
618
while (len > 0 && *d == 0x00) {
crypto/openssh/sshbuf-getput-basic.c
619
d++;
crypto/openssh/sshbuf-getput-basic.c
623
*valp = d;
crypto/openssh/sshbuf-getput-crypto.c
106
if ((r = sshbuf_peek_string_direct(buf, &d, &len)) < 0) {
crypto/openssh/sshbuf-getput-crypto.c
110
if ((r = get_ec(d, len, pt, EC_KEY_get0_group(v))) != 0) {
crypto/openssh/sshbuf-getput-crypto.c
133
u_char d[SSHBUF_MAX_BIGNUM + 1];
crypto/openssh/sshbuf-getput-crypto.c
138
*d = '\0';
crypto/openssh/sshbuf-getput-crypto.c
139
if (BN_bn2bin(v, d + 1) != len)
crypto/openssh/sshbuf-getput-crypto.c
142
if (len > 0 && (d[1] & 0x80) != 0)
crypto/openssh/sshbuf-getput-crypto.c
144
if ((r = sshbuf_put_string(buf, d + 1 - prepend, len + prepend)) < 0) {
crypto/openssh/sshbuf-getput-crypto.c
145
explicit_bzero(d, sizeof(d));
crypto/openssh/sshbuf-getput-crypto.c
148
explicit_bzero(d, sizeof(d));
crypto/openssh/sshbuf-getput-crypto.c
156
u_char d[SSHBUF_MAX_ECPOINT];
crypto/openssh/sshbuf-getput-crypto.c
165
d, len, NULL) != len) {
crypto/openssh/sshbuf-getput-crypto.c
168
ret = sshbuf_put_string(buf, d, len);
crypto/openssh/sshbuf-getput-crypto.c
169
explicit_bzero(d, len);
crypto/openssh/sshbuf-getput-crypto.c
39
const u_char *d;
crypto/openssh/sshbuf-getput-crypto.c
45
if ((r = sshbuf_get_bignum2_bytes_direct(buf, &d, &len)) != 0)
crypto/openssh/sshbuf-getput-crypto.c
49
BN_bin2bn(d, len, v) == NULL) {
crypto/openssh/sshbuf-getput-crypto.c
60
get_ec(const u_char *d, size_t len, EC_POINT *v, const EC_GROUP *g)
crypto/openssh/sshbuf-getput-crypto.c
66
if (*d != POINT_CONVERSION_UNCOMPRESSED)
crypto/openssh/sshbuf-getput-crypto.c
68
if (v != NULL && EC_POINT_oct2point(g, v, d, len, NULL) != 1)
crypto/openssh/sshbuf-getput-crypto.c
76
const u_char *d;
crypto/openssh/sshbuf-getput-crypto.c
80
if ((r = sshbuf_peek_string_direct(buf, &d, &len)) < 0)
crypto/openssh/sshbuf-getput-crypto.c
82
if ((r = get_ec(d, len, v, g)) != 0)
crypto/openssh/sshbuf-getput-crypto.c
99
const u_char *d;
crypto/openssh/sshbuf-misc.c
100
if (d == NULL || b64 == NULL || sshbuf_len(d) >= SIZE_MAX / 2)
crypto/openssh/sshbuf-misc.c
102
if (sshbuf_len(d) == 0)
crypto/openssh/sshbuf-misc.c
104
slen = ((sshbuf_len(d) + 2) / 3) * 4 + 1;
crypto/openssh/sshbuf-misc.c
107
if (b64_ntop(sshbuf_ptr(d), sshbuf_len(d), s, slen) == -1) {
crypto/openssh/sshbuf-misc.c
172
sshbuf_dtourlb64(const struct sshbuf *d, struct sshbuf *b64, int wrap)
crypto/openssh/sshbuf-misc.c
182
if ((r = sshbuf_dtob64(d, b, wrap)) != 0)
crypto/openssh/sshbuf-misc.c
280
u_char *d;
crypto/openssh/sshbuf-misc.c
284
if ((r = sshbuf_reserve(buf, maxlen, &d)) != 0)
crypto/openssh/sshbuf-misc.c
286
rr = read(fd, d, maxlen);
crypto/openssh/sshbuf-misc.c
293
memset(d + rr, '\0', adjust);
crypto/openssh/sshbuf-misc.c
94
sshbuf_dtob64(const struct sshbuf *d, struct sshbuf *b64, int wrap)
crypto/openssh/sshbuf.c
103
if ((ret->cd = ret->d = calloc(1, ret->alloc)) == NULL) {
crypto/openssh/sshbuf.c
123
ret->d = NULL;
crypto/openssh/sshbuf.c
189
explicit_bzero(buf->d, buf->alloc);
crypto/openssh/sshbuf.c
190
free(buf->d);
crypto/openssh/sshbuf.c
198
u_char *d;
crypto/openssh/sshbuf.c
209
if ((d = recallocarray(buf->d, buf->alloc, SSHBUF_SIZE_INIT,
crypto/openssh/sshbuf.c
211
buf->cd = buf->d = d;
crypto/openssh/sshbuf.c
215
explicit_bzero(buf->d, buf->alloc);
crypto/openssh/sshbuf.c
268
if ((dp = recallocarray(buf->d, buf->alloc, rlen, 1)) == NULL)
crypto/openssh/sshbuf.c
270
buf->cd = buf->d = dp;
crypto/openssh/sshbuf.c
309
return buf->d + buf->off;
crypto/openssh/sshbuf.c
357
if ((dp = recallocarray(buf->d, buf->alloc, rlen, 1)) == NULL) {
crypto/openssh/sshbuf.c
362
buf->cd = buf->d = dp;
crypto/openssh/sshbuf.c
384
dp = buf->d + buf->size;
crypto/openssh/sshbuf.c
43
u_char *d; /* Data */
crypto/openssh/sshbuf.c
59
(!buf->readonly && buf->d != buf->cd) ||
crypto/openssh/sshbuf.c
84
memmove(buf->d, buf->d + buf->off, buf->size - buf->off);
crypto/openssh/sshbuf.h
240
int sshbuf_dtob64(const struct sshbuf *d, struct sshbuf *b64, int wrap);
crypto/openssh/sshbuf.h
242
int sshbuf_dtourlb64(const struct sshbuf *d, struct sshbuf *b64, int wrap);
crypto/openssh/umac.c
342
const UINT32 *d = (const UINT32 *)dp;
crypto/openssh/umac.c
348
d0 = LOAD_UINT32_LITTLE(d+0); d1 = LOAD_UINT32_LITTLE(d+1);
crypto/openssh/umac.c
349
d2 = LOAD_UINT32_LITTLE(d+2); d3 = LOAD_UINT32_LITTLE(d+3);
crypto/openssh/umac.c
350
d4 = LOAD_UINT32_LITTLE(d+4); d5 = LOAD_UINT32_LITTLE(d+5);
crypto/openssh/umac.c
351
d6 = LOAD_UINT32_LITTLE(d+6); d7 = LOAD_UINT32_LITTLE(d+7);
crypto/openssh/umac.c
359
d += 8;
crypto/openssh/umac.c
375
const UINT32 *d = (const UINT32 *)dp;
crypto/openssh/umac.c
384
d0 = LOAD_UINT32_LITTLE(d+0); d1 = LOAD_UINT32_LITTLE(d+1);
crypto/openssh/umac.c
385
d2 = LOAD_UINT32_LITTLE(d+2); d3 = LOAD_UINT32_LITTLE(d+3);
crypto/openssh/umac.c
386
d4 = LOAD_UINT32_LITTLE(d+4); d5 = LOAD_UINT32_LITTLE(d+5);
crypto/openssh/umac.c
387
d6 = LOAD_UINT32_LITTLE(d+6); d7 = LOAD_UINT32_LITTLE(d+7);
crypto/openssh/umac.c
405
d += 8;
crypto/openssh/umac.c
422
const UINT32 *d = (const UINT32 *)dp;
crypto/openssh/umac.c
433
d0 = LOAD_UINT32_LITTLE(d+0); d1 = LOAD_UINT32_LITTLE(d+1);
crypto/openssh/umac.c
434
d2 = LOAD_UINT32_LITTLE(d+2); d3 = LOAD_UINT32_LITTLE(d+3);
crypto/openssh/umac.c
435
d4 = LOAD_UINT32_LITTLE(d+4); d5 = LOAD_UINT32_LITTLE(d+5);
crypto/openssh/umac.c
436
d6 = LOAD_UINT32_LITTLE(d+6); d7 = LOAD_UINT32_LITTLE(d+7);
crypto/openssh/umac.c
459
d += 8;
crypto/openssh/umac.c
477
const UINT32 *d = (const UINT32 *)dp;
crypto/openssh/umac.c
490
d0 = LOAD_UINT32_LITTLE(d+0); d1 = LOAD_UINT32_LITTLE(d+1);
crypto/openssh/umac.c
491
d2 = LOAD_UINT32_LITTLE(d+2); d3 = LOAD_UINT32_LITTLE(d+3);
crypto/openssh/umac.c
492
d4 = LOAD_UINT32_LITTLE(d+4); d5 = LOAD_UINT32_LITTLE(d+5);
crypto/openssh/umac.c
493
d6 = LOAD_UINT32_LITTLE(d+6); d7 = LOAD_UINT32_LITTLE(d+7);
crypto/openssh/umac.c
522
d += 8;
crypto/openssh/xmss_fast.c
101
if (xmss_set_params(&xmss_par, n, (h/d), w, k)) {
crypto/openssh/xmss_fast.c
1013
unsigned long long tmp_sig_len = (params->d * params->xmss_par.wots_par.keysize) + (params->h * n);
crypto/openssh/xmss_fast.c
1053
for (i = 1; i < params->d; i++) {
crypto/openssh/xmss_fast.c
766
setLayerADRS(addr, (params->d-1));
crypto/openssh/xmss_fast.c
768
for (i = 0; i < params->d - 1; i++) {
crypto/openssh/xmss_fast.c
894
for (i = 1; i < params->d; i++) {
crypto/openssh/xmss_fast.c
90
int xmssmt_set_params(xmssmt_params *params, int n, int h, int d, int w, int k)
crypto/openssh/xmss_fast.c
912
bds_state_update(&states[params->d], sk_seed, &(params->xmss_par), pub_seed, addr);
crypto/openssh/xmss_fast.c
915
for (i = 0; i < params->d; i++) {
crypto/openssh/xmss_fast.c
92
if (h % d) {
crypto/openssh/xmss_fast.c
929
if (i > 0 && updates > 0 && states[params->d + i].next_leaf < (1ULL << h)) {
crypto/openssh/xmss_fast.c
930
bds_state_update(&states[params->d + i], sk_seed, &(params->xmss_par), pub_seed, addr);
crypto/openssh/xmss_fast.c
936
memcpy(&tmp, states+params->d + i, sizeof(bds_state));
crypto/openssh/xmss_fast.c
937
memcpy(states+params->d + i, states + i, sizeof(bds_state));
crypto/openssh/xmss_fast.c
947
states[params->d + i].stackoffset = 0;
crypto/openssh/xmss_fast.c
948
states[params->d + i].next_leaf = 0;
crypto/openssh/xmss_fast.c
97
params->d = d;
crypto/openssh/xmss_fast.h
31
unsigned int d;
crypto/openssh/xmss_fast.h
70
int xmssmt_set_params(xmssmt_params *params, int n, int h, int d, int w, int k);
games/adventure/hdr.h
159
#define DECR(a,b,c,d,e) decr(a+'+',b+'-',c+'#',d+'&',e+'%')
games/adventure/init.c
133
decr(int a, int b, int c, int d, int e)
games/adventure/init.c
140
buf[3] = d - '&';
games/adventure/wizard.c
50
datime(int *d, int *t)
games/adventure/wizard.c
58
*d = (tptr->tm_yday + 365 * (tptr->tm_year - 77)
games/adventure/wizard.c
80
int d, t, delay;
games/adventure/wizard.c
82
datime(&d, &t);
games/adventure/wizard.c
83
delay = (d - saveday) * 1440 + (t - savet); /* good for about a
games/atc/update.c
388
dir_deg(int d)
games/atc/update.c
390
switch (d) {
games/backgammon/common_source/board.c
161
char d;
games/backgammon/common_source/board.c
165
d = 'r';
games/backgammon/common_source/board.c
168
d = 'w';
games/backgammon/common_source/board.c
171
ln[j + 1] = d;
games/backgammon/common_source/board.c
173
ln[j] = d;
games/backgammon/common_source/board.c
175
ln[j + 2] = d;
games/backgammon/common_source/one.c
114
checkd(struct move *mm, int d)
games/backgammon/common_source/one.c
116
if (mm->d0 != d)
games/backgammon/common_source/one.c
41
int n, d;
games/backgammon/common_source/one.c
44
d = mm->d0;
games/backgammon/common_source/one.c
48
return (checkd(mm, d) + 2);
games/backgammon/common_source/one.c
50
return (checkd(mm, d) + 3);
games/backgammon/common_source/one.c
53
return (checkd(mm, d) + 1);
games/backgammon/common_source/one.c
56
return (checkd(mm, d) + 1);
games/backgammon/common_source/one.c
59
return (checkd(mm, d) + 1);
games/backgammon/common_source/one.c
64
return (checkd(mm, d) + 4);
games/battlestar/fly.c
245
double d;
games/battlestar/fly.c
260
d = (double) ((row - MIDR) * (row - MIDR) + (column - MIDC) *
games/battlestar/fly.c
262
if (d < 16) {
games/bs/bs.c
1003
ts.x = x; ts.y = y; ts.dir = d*2; ts.hits++;
games/bs/bs.c
1022
d = ts.dir + 4;
games/bs/bs.c
1023
x = ts.x + ts.hits * xincr[d];
games/bs/bs.c
1024
y = ts.y + ts.hits * yincr[d];
games/bs/bs.c
1027
ts.x = x; ts.y = y; ts.dir = d; ts.hits++;
games/bs/bs.c
1060
next, x, y, d);
games/bs/bs.c
953
int navail, x, y, d, n, hit = S_MISS;
games/bs/bs.c
975
for (d = navail = 0; d < 4; d++)
games/bs/bs.c
977
x = ts.x + xincr[d*2]; y = ts.y + yincr[d*2];
games/bs/bs.c
978
if (!used[d] && POSSIBLE(x, y))
games/bs/bs.c
981
used[d] = TRUE;
games/bs/bs.c
987
for (d = 0, n = rnd(navail) + 1; n; n--)
games/bs/bs.c
988
while (used[d])
games/bs/bs.c
989
d++;
games/bs/bs.c
991
assert(d <= 4);
games/bs/bs.c
993
used[d] = FALSE;
games/bs/bs.c
994
x = ts.x + xincr[d*2];
games/bs/bs.c
995
y = ts.y + yincr[d*2];
games/cribbage/cards.c
102
cremove(CARD a, CARD d[], int n)
games/cribbage/cards.c
107
if (!eq(a, d[i]))
games/cribbage/cards.c
108
d[j++] = d[i];
games/cribbage/cards.c
110
d[j].suit = d[j].rank = EMPTY;
games/cribbage/cards.c
44
makedeck(CARD d[])
games/cribbage/cards.c
52
d[k].suit = j;
games/cribbage/cards.c
53
d[k++].rank = i;
games/cribbage/cards.c
62
shuffle(CARD d[])
games/cribbage/cards.c
69
c = d[j - 1]; /* exchange (j - 1) and k */
games/cribbage/cards.c
70
d[j - 1] = d[k];
games/cribbage/cards.c
71
d[k] = c;
games/cribbage/support.c
234
CARD d[CARDS], h[FULLHAND], cb[2];
games/cribbage/support.c
241
makedeck(d);
games/cribbage/support.c
244
cremove(known[i], d, nc--);
games/cribbage/support.c
259
scorehand(h, d[k], CINHAND, true, false);
games/gomoku/makemove.c
120
for (i = 5; --i >= 0; sp += d) { /* for each spot */
games/gomoku/makemove.c
131
sp += d;
games/gomoku/makemove.c
156
for (i = 5; --i >= 0; sp += d) /* for each spot */
games/gomoku/makemove.c
217
int i, f, r, r1, d, d1, n;
games/gomoku/makemove.c
224
d = dd[r];
games/gomoku/makemove.c
227
for (f = 0; f < 6; f++, sp1 -= d) { /* for each frame */
games/gomoku/makemove.c
240
sp2 = sp1 - d;
games/gomoku/makemove.c
241
for (i = f + 1; i < 6; i++, sp2 -= d) {
games/gomoku/makemove.c
252
for (b = i - f; b < 5; b++, sp += d) {
games/gomoku/makemove.c
64
int i, f, r, d, n;
games/gomoku/makemove.c
86
d = dd[r];
games/gomoku/makemove.c
89
for (f = 5; --f >= 0; fsp -= d) { /* for each frame */
games/gomoku/pickmove.c
1014
d = dd[cbp->c_dir];
games/gomoku/pickmove.c
1016
for (; --i >= 0; sp += d, s += d) {
games/gomoku/pickmove.c
1351
int s, d, m, i;
games/gomoku/pickmove.c
1450
d = dd[s = cbp->c_dir];
games/gomoku/pickmove.c
1454
for (; --s >= 0; sp += d, m >>= 1)
games/gomoku/pickmove.c
1464
int d, n, mask;
games/gomoku/pickmove.c
1471
d = dd[n = cbp->c_dir];
games/gomoku/pickmove.c
1474
for (; --n >= 0; sp += d)
games/gomoku/pickmove.c
236
int i, r, d, n;
games/gomoku/pickmove.c
249
cb.s = sp->s_fval[color][d = cbp->c_dir].s;
games/gomoku/pickmove.c
251
d = dd[d];
games/gomoku/pickmove.c
252
for (i = 5 + cb.c.b; --i >= 0; sp += d) {
games/gomoku/pickmove.c
271
d = dd[r];
games/gomoku/pickmove.c
292
sp += d;
games/gomoku/pickmove.c
298
for (; i < 5; i++, sp += d) { /* for each spot */
games/gomoku/pickmove.c
334
d = 2;
games/gomoku/pickmove.c
335
while (d <= ((movenum + 1) >> 1) && combolen > n) {
games/gomoku/pickmove.c
338
d, combolen - n, combocnt, elistcnt);
games/gomoku/pickmove.c
342
addframes(d);
games/gomoku/pickmove.c
343
d++;
games/gomoku/pickmove.c
417
int f, r, d, c;
games/gomoku/pickmove.c
432
d = dd[r];
games/gomoku/pickmove.c
441
for (f = 0; f < 5; f++, fsp -= d) { /* for each frame */
games/gomoku/pickmove.c
548
int i, r, d;
games/gomoku/pickmove.c
610
d = dd[r];
games/gomoku/pickmove.c
611
sp = fsp + d;
games/gomoku/pickmove.c
612
for (i = 1; i < 5; i++, sp += d) {
games/gomoku/pickmove.c
805
int s, d, m, emask, i;
games/gomoku/pickmove.c
912
d = dd[cbp->c_dir];
games/gomoku/pickmove.c
913
for (s = 0, m = 1; s < 5; s++, sp += d, m <<= 1) {
games/gomoku/pickmove.c
961
int i, d;
games/gomoku/pickmove.c
990
d = dd[tcbp->c_dir];
games/gomoku/pickmove.c
992
for (; --i >= 0; sp += d, s += d) {
games/hack/extern.h
539
int d(int, int);
games/hack/hack.bones.c
113
mkgold(somegold() + d(dlevel, 30), u.ux, u.uy);
games/hack/hack.c
692
int dx, dy, adx, ady, sdx, sdy, dmax, d;
games/hack/hack.c
697
d = dist(x, y);
games/hack/hack.c
698
if (d < 3)
games/hack/hack.c
700
if (d > u.uhorizon * u.uhorizon)
games/hack/hack.c
712
for (d = 1; d <= dmax; d++)
games/hack/hack.c
713
if (!rroom(sdx * d, sdy * d))
games/hack/hack.c
717
for (d = 1; d <= ady; d++) {
games/hack/hack.c
718
if (!rroom(sdx * ((d * adx) / ady), sdy * d) ||
games/hack/hack.c
719
!rroom(sdx * ((d * adx - 1) / ady + 1), sdy * d))
games/hack/hack.c
724
for (d = 1; d <= adx; d++) {
games/hack/hack.c
725
if (!rroom(sdx * d, sdy * ((d * ady) / adx)) ||
games/hack/hack.c
726
!rroom(sdx * d, sdy * ((d * ady - 1) / adx + 1)))
games/hack/hack.dog.c
452
(void) hitu(mtmp, d(mdat->damn, mdat->damd) + 1);
games/hack/hack.eat.c
243
Confusion += d(2, 4);
games/hack/hack.eat.c
246
Blind = d(2, 10);
games/hack/hack.fight.c
122
} else if ((mdef->mhp -= d(pa->damn, pa->damd)) < 1) {
games/hack/hack.fight.c
232
tmp += d(2, 6);
games/hack/hack.makemon.c
128
mtmp->mhpmax = mtmp->mhp = d(ptr->mlevel, 8);
games/hack/hack.mhitu.c
102
youswld(mtmp, d(2, 4), 12, "The purple worm");
games/hack/hack.mhitu.c
122
tmp = hitu(mtmp, d(mdat->damn, mdat->damd));
games/hack/hack.mhitu.c
126
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
193
(void) hitu(mtmp, d(3, 10));
games/hack/hack.mhitu.c
202
(void) hitu(mtmp, d(2, (flags.moonphase == FULL_MOON) ? 3 : 4));
games/hack/hack.mhitu.c
205
(void) hitu(mtmp, d(3, 6));
games/hack/hack.mhitu.c
222
losehp_m(d(dn, 6), mtmp);
games/hack/hack.mhitu.c
280
(void) hitu(mtmp, d(2, 6));
games/hack/hack.mhitu.c
281
(void) hitu(mtmp, d(2, 6));
games/hack/hack.mhitu.c
290
u.uhp -= d(2, 8);
games/hack/hack.mhitu.c
292
u.uhp -= d(2, 8);
games/hack/hack.mhitu.c
300
(void) hitu(mtmp, d(2, 4));
games/hack/hack.mhitu.c
342
(void) hitu(mtmp, d(3, 4));
games/hack/hack.mhitu.c
343
(void) hitu(mtmp, d(3, 4));
games/hack/hack.mhitu.c
385
Blind = d(4, 12);
games/hack/hack.mon.c
384
Confusion += d(3, 4); /* timeout */
games/hack/hack.mon.c
503
(void) hitu(mtmp, d(mtmp->data->damn, mtmp->data->damd) + 1);
games/hack/hack.potion.c
226
u.uhp += d(2, 20) + 1;
games/hack/hack.potion.c
95
Confusion += d(3, 8);
games/hack/hack.shk.c
1084
(void) hitu(shkp, d(mdat->damn, mdat->damd) + 1);
games/hack/hack.shk.c
952
(void) hitu(shkp, d(mdat->damn, mdat->damd) + 1);
games/hack/hack.steal.c
272
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
149
losehp(uarmh ? 2 : d(2, 10), "falling rock");
games/hack/hack.wizard.c
141
if (hitu(mtmp, d(mtmp->data->damn, mtmp->data->damd))
games/hack/hack.worm.c
250
d(mtmp2->data->mlevel, 8);
games/hack/hack.zap.c
581
dam = d(2, 6);
games/hack/hack.zap.c
587
dam = d(6, 6);
games/hack/hack.zap.c
598
dam = d(6, 6);
games/hack/hack.zap.c
651
tmp = d(2, 6);
games/hack/hack.zap.c
657
tmp = d(6, 6);
games/hack/hack.zap.c
667
tmp = d(6, 6);
games/hack/hack.zap.c
92
int tmp = d(2, 12);
games/larn/monster.c
230
int i, j, a, b, d;
games/larn/monster.c
247
if ((d = getchr()) == '\33') {
games/larn/monster.c
257
if ((spelcode[i][0] == a) && (spelcode[i][1] == b) && (spelcode[i][2] == d))
games/larn/regen.c
100
if (d[CANCELLATION])
games/larn/regen.c
101
if ((--d[CANCELLATION]) <= 0)
games/larn/regen.c
103
if (d[WTW])
games/larn/regen.c
104
if ((--d[WTW]) <= 0)
games/larn/regen.c
106
if (d[HASTESELF])
games/larn/regen.c
107
if ((--d[HASTESELF]) <= 0)
games/larn/regen.c
109
if (d[AGGRAVATE])
games/larn/regen.c
110
--d[AGGRAVATE];
games/larn/regen.c
111
if (d[SCAREMONST])
games/larn/regen.c
112
if ((--d[SCAREMONST]) <= 0)
games/larn/regen.c
114
if (d[STEALTH])
games/larn/regen.c
115
if ((--d[STEALTH]) <= 0)
games/larn/regen.c
117
if (d[AWARENESS])
games/larn/regen.c
118
--d[AWARENESS];
games/larn/regen.c
119
if (d[HOLDMONST])
games/larn/regen.c
120
if ((--d[HOLDMONST]) <= 0)
games/larn/regen.c
122
if (d[HASTEMONST])
games/larn/regen.c
123
--d[HASTEMONST];
games/larn/regen.c
124
if (d[FIRERESISTANCE])
games/larn/regen.c
125
if ((--d[FIRERESISTANCE]) <= 0)
games/larn/regen.c
127
if (d[GLOBE])
games/larn/regen.c
128
if (--d[GLOBE] <= 0) {
games/larn/regen.c
129
d[MOREDEFENSES] -= 10;
games/larn/regen.c
132
if (d[SPIRITPRO])
games/larn/regen.c
133
if (--d[SPIRITPRO] <= 0)
games/larn/regen.c
135
if (d[UNDEADPRO])
games/larn/regen.c
136
if (--d[UNDEADPRO] <= 0)
games/larn/regen.c
138
if (d[HALFDAM])
games/larn/regen.c
139
if (--d[HALFDAM] <= 0) {
games/larn/regen.c
144
if (d[SEEINVISIBLE])
games/larn/regen.c
145
if (--d[SEEINVISIBLE] <= 0) {
games/larn/regen.c
151
if (d[ITCHING]) {
games/larn/regen.c
152
if (d[ITCHING] > 1)
games/larn/regen.c
153
if ((d[WEAR] != -1) || (d[SHIELD] != -1))
games/larn/regen.c
155
d[WEAR] = d[SHIELD] = -1;
games/larn/regen.c
162
if (--d[ITCHING] <= 0) {
games/larn/regen.c
168
if (d[CLUMSINESS]) {
games/larn/regen.c
169
if (d[WIELD] != -1)
games/larn/regen.c
17
long *d;
games/larn/regen.c
170
if (d[CLUMSINESS] > 1)
games/larn/regen.c
173
drop_object((int)d[WIELD]);
games/larn/regen.c
174
if (--d[CLUMSINESS] <= 0) {
games/larn/regen.c
18
d = c;
games/larn/regen.c
20
d[MOVESMADE]++;
games/larn/regen.c
22
if (d[TIMESTOP]) {
games/larn/regen.c
23
if (--d[TIMESTOP] <= 0)
games/larn/regen.c
29
if (d[STRENGTH] < 3) {
games/larn/regen.c
30
d[STRENGTH] = 3;
games/larn/regen.c
33
if ((d[HASTESELF] == 0) || ((d[HASTESELF] & 1) == 0))
games/larn/regen.c
36
if (d[HP] != d[HPMAX])
games/larn/regen.c
37
if (d[REGENCOUNTER]-- <= 0) { /* regenerate hit points */
games/larn/regen.c
38
d[REGENCOUNTER] = 22 + (d[HARDGAME] << 1) - d[LEVEL];
games/larn/regen.c
39
if ((d[HP] += d[REGEN]) > d[HPMAX])
games/larn/regen.c
40
d[HP] = d[HPMAX];
games/larn/regen.c
44
if (d[SPELLS] < d[SPELLMAX]) /* regenerate spells */
games/larn/regen.c
45
if (d[ECOUNTER]-- <= 0) {
games/larn/regen.c
46
d[ECOUNTER] = 100 + 4 * (d[HARDGAME] - d[LEVEL] - d[ENERGY]);
games/larn/regen.c
47
d[SPELLS]++;
games/larn/regen.c
51
if (d[HERO])
games/larn/regen.c
52
if (--d[HERO] <= 0) {
games/larn/regen.c
54
d[i] -= 10;
games/larn/regen.c
57
if (d[ALTPRO])
games/larn/regen.c
58
if (--d[ALTPRO] <= 0) {
games/larn/regen.c
59
d[MOREDEFENSES] -= 3;
games/larn/regen.c
62
if (d[PROTECTIONTIME])
games/larn/regen.c
63
if (--d[PROTECTIONTIME] <= 0) {
games/larn/regen.c
64
d[MOREDEFENSES] -= 2;
games/larn/regen.c
67
if (d[DEXCOUNT])
games/larn/regen.c
68
if (--d[DEXCOUNT] <= 0) {
games/larn/regen.c
69
d[DEXTERITY] -= 3;
games/larn/regen.c
72
if (d[STRCOUNT])
games/larn/regen.c
73
if (--d[STRCOUNT] <= 0) {
games/larn/regen.c
74
d[STREXTRA] -= 3;
games/larn/regen.c
77
if (d[BLINDCOUNT])
games/larn/regen.c
78
if (--d[BLINDCOUNT] <= 0) {
games/larn/regen.c
83
if (d[CONFUSE])
games/larn/regen.c
84
if (--d[CONFUSE] <= 0) {
games/larn/regen.c
89
if (d[GIANTSTR])
games/larn/regen.c
90
if (--d[GIANTSTR] <= 0) {
games/larn/regen.c
91
d[STREXTRA] -= 20;
games/larn/regen.c
94
if (d[CHARMCOUNT])
games/larn/regen.c
95
if ((--d[CHARMCOUNT]) <= 0)
games/larn/regen.c
97
if (d[INVISIBILITY])
games/larn/regen.c
98
if ((--d[INVISIBILITY]) <= 0)
games/rogue/hit.c
156
rogue_damage(short d, object *monster, short other)
games/rogue/hit.c
158
if (d >= rogue.hp_current) {
games/rogue/hit.c
163
if (d > 0) {
games/rogue/hit.c
164
rogue.hp_current -= d;
games/rogue/hit.c
172
int i = 0, j, n, d, total = 0;
games/rogue/hit.c
178
d = get_number(ds+i);
games/rogue/hit.c
184
total += get_rand(1, d);
games/rogue/hit.c
186
total += d;
games/rogue/hit.c
317
short ch, c, d;
games/rogue/hit.c
323
while (!is_direction(ch = rgetchar(), &d)) {
games/rogue/hit.c
335
get_dir_rc(d, &row, &col, 0);
games/rogue/monster.c
709
short i, rn, d, r;
games/rogue/monster.c
717
d = (r + i) % 4;
games/rogue/monster.c
718
if (rooms[rn].doors[d].oth_room != NO_ROOM) {
games/rogue/monster.c
719
monster->trow = rooms[rn].doors[d].door_row;
games/rogue/monster.c
720
monster->tcol = rooms[rn].doors[d].door_col;
games/rogue/move.c
318
short ch, d;
games/rogue/move.c
321
while (!is_direction(ch = rgetchar(), &d)) {
games/rogue/move.c
335
is_direction(short c, short *d)
games/rogue/move.c
339
*d = LEFT;
games/rogue/move.c
342
*d = DOWN;
games/rogue/move.c
345
*d = UPWARD;
games/rogue/move.c
348
*d = RIGHT;
games/rogue/move.c
351
*d = DOWNLEFT;
games/rogue/move.c
354
*d = UPLEFT;
games/rogue/move.c
357
*d = UPRIGHT;
games/rogue/move.c
360
*d = DOWNRIGHT;
games/rogue/move.c
510
short d;
games/rogue/move.c
512
d = get_rand(1, 8);
games/rogue/move.c
514
switch(d) {
games/rogue/move.c
516
d = 'j';
games/rogue/move.c
519
d = 'k';
games/rogue/move.c
522
d = 'l';
games/rogue/move.c
525
d = 'h';
games/rogue/move.c
528
d = 'y';
games/rogue/move.c
531
d = 'u';
games/rogue/move.c
534
d = 'b';
games/rogue/move.c
537
d = 'n';
games/rogue/move.c
540
return(d);
games/rogue/move.c
67
short n, status, d;
games/rogue/move.c
75
is_direction(dirch, &d);
games/rogue/move.c
76
get_dir_rc(d, &row, &col, 1);
games/rogue/room.c
490
short d = -1;
games/rogue/room.c
493
d = UPWARD/2;
games/rogue/room.c
495
d = DOWN/2;
games/rogue/room.c
497
d = LEFT/2;
games/rogue/room.c
499
d = RIGHT/2;
games/rogue/room.c
501
if ((d != -1) && (rooms[rn].doors[d].oth_room >= 0)) {
games/rogue/room.c
502
*row = rooms[rn].doors[d].oth_row;
games/rogue/room.c
503
*col = rooms[rn].doors[d].oth_col;
games/rogue/throw.c
57
short wch, d;
games/rogue/throw.c
63
while (!is_direction(dir = rgetchar(), &d)) {
games/rogue/throw.c
98
monster = get_thrown_at_monster(weapon, d, &row, &col);
games/rogue/trap.c
182
short dir, row, col, d, t;
games/rogue/trap.c
186
while (!is_direction(dir = rgetchar(), &d)) {
games/rogue/trap.c
197
get_dir_rc(d, &row, &col, 0);
games/rogue/zap.c
63
short dir, d, row, col;
games/rogue/zap.c
66
while (!is_direction(dir = rgetchar(), &d)) {
games/rogue/zap.c
96
bounce((short)wand->which_kind, d, row, col, 0);
games/rogue/zap.c
98
monster = get_zapped_monster(d, &row, &col);
games/sail/extern.h
377
void send_dbp(struct ship *ship, long a, long b, long c, long d);
games/sail/extern.h
385
void send_obp(struct ship *ship, long a, long b, long c, long d);
games/sail/extern.h
391
void send_rigg(struct ship *ship, long a, long b, long c, long d);
games/sail/sync.c
104
static void recv_dbp(struct ship *ship, long a, long b, long c, long d);
games/sail/sync.c
112
static void recv_obp(struct ship *ship, long a, long b, long c, long d);
games/sail/sync.c
118
static void recv_rigg(struct ship *ship, long a, long b, long c, long d);
games/sail/sync.c
286
Write(int type, struct ship *ship, long a, long b, long c, long d)
games/sail/sync.c
292
type, shipindex, a, b, c, d);
games/sail/sync.c
298
sync_update(type, ship, NULL, a, b, c, d);
games/sail/sync.c
323
long a, b, c, d;
games/sail/sync.c
392
a = b = c = d = 0;
games/sail/sync.c
394
if (fscanf(sync_fp, "%ld%ld%ld%ld", &a, &b, &c, &d)
games/sail/sync.c
399
if (sync_update(type, SHIP(shipnum), astr, a, b, c, d) < 0)
games/sail/sync.c
427
long a, long b, long c, long d)
games/sail/sync.c
434
case W_DBP: recv_dbp(ship, a, b, c, d); break;
games/sail/sync.c
442
case W_OBP: recv_obp(ship, a, b, c, d); break;
games/sail/sync.c
448
case W_RIGG: recv_rigg(ship, a, b, c, d); break;
games/sail/sync.c
504
send_dbp(struct ship *ship, long a, long b, long c, long d)
games/sail/sync.c
506
Write(W_DBP, ship, a, b, c, d);
games/sail/sync.c
552
send_obp(struct ship *ship, long a, long b, long c, long d)
games/sail/sync.c
554
Write(W_OBP, ship, a, b, c, d);
games/sail/sync.c
588
send_rigg(struct ship *ship, long a, long b, long c, long d)
games/sail/sync.c
590
Write(W_RIGG, ship, a, b, c, d);
games/sail/sync.c
744
recv_dbp(struct ship *ship, long a, long b, long c, long d)
games/sail/sync.c
750
p->mensent = d;
games/sail/sync.c
809
recv_obp(struct ship *ship, long a, long b, long c, long d)
games/sail/sync.c
815
p->mensent = d;
games/sail/sync.c
869
recv_rigg(struct ship *ship, long a, long b, long c, long d)
games/sail/sync.c
876
s->rig4 = d;
games/snake/snake/snake.c
589
struct point d;
games/snake/snake/snake.c
592
point(&d, you.col - sp->col, you.line - sp->line);
games/snake/snake/snake.c
593
v1 = sqrt((double)(d.col * d.col + d.line * d.line));
games/snake/snake/snake.c
597
vp = d.col * mx[i] + d.line * my[i];
games/snake/snake/snake.c
609
point(&d, sp->col + mx[i], sp->line + my[i]);
games/snake/snake/snake.c
611
if (d.col < 0 || d.col >= ccnt || d.line < 0 || d.line >= lcnt)
games/snake/snake/snake.c
620
if (same(&d, &money))
games/snake/snake/snake.c
622
if (same(&d, &finish))
games/trek/compkl.c
55
double d;
games/trek/compkl.c
64
d = dx * dx + dy * dy;
games/trek/compkl.c
65
d = sqrt(d);
games/trek/compkl.c
70
Etc.klingon[i].avgdist = 0.5 * (temp + d);
games/trek/compkl.c
73
Etc.klingon[i].avgdist = d;
games/trek/compkl.c
75
Etc.klingon[i].dist = d;
games/trek/damaged.c
45
int d;
games/trek/damaged.c
49
d = dev;
games/trek/damaged.c
55
if (e->systemname == d)
games/trek/dumpgame.c
145
struct dump *d;
games/trek/dumpgame.c
151
for (d = Dump_template; d->area; d++) {
games/trek/dumpgame.c
154
if ((char *)junk != d->area)
games/trek/dumpgame.c
156
i = d->count;
games/trek/dumpgame.c
157
if (read(fd, d->area, i) != i)
games/trek/dumpgame.c
79
struct dump *d;
games/trek/dumpgame.c
90
for (d = Dump_template; d->area; d++) {
games/trek/dumpgame.c
91
write(fd, &d->area, sizeof d->area);
games/trek/dumpgame.c
92
i = d->count;
games/trek/dumpgame.c
93
write(fd, d->area, i);
games/trek/getpar.c
281
readdelim(int d)
games/trek/getpar.c
286
if (c == d)
games/trek/getpar.c
72
double d;
games/trek/getpar.c
77
i = scanf("%lf", &d);
games/trek/getpar.c
81
return (d);
games/trek/out.c
44
const struct device *d;
games/trek/out.c
46
d = &Device[dev];
games/trek/out.c
47
printf("%s reports %s ", d->person, d->name);
games/trek/out.c
48
if (d->name[strlen(d->name) - 1] == 's')
games/trek/setup.c
101
d = 0;
games/trek/setup.c
103
d += Game.passwd[i] << i;
games/trek/setup.c
104
srandom(d);
games/trek/setup.c
236
for (d = 1; d < NINHAB; d++) {
games/trek/setup.c
242
q->qsystemname = d;
games/trek/setup.c
78
int d;
games/trek/torped.c
220
int d;
games/trek/torped.c
222
d = ((franf() + franf()) - 1.0) * 20;
games/trek/torped.c
223
if (abs(d) > 12) {
games/trek/torped.c
230
damage(TORPED, 0.2 * abs(d) * (franf() + 1.0));
games/trek/torped.c
232
d *= 1.0 + 2.0 * franf();
games/trek/torped.c
239
d *= r;
games/trek/torped.c
241
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
91
dist = d;
lib/libc/citrus/citrus_none.c
225
struct _stdenc_state_desc * __restrict d)
lib/libc/citrus/citrus_none.c
231
d->u.generic.state = _STDENC_SDGEN_INITIAL;
lib/libc/citrus/citrus_stdenc.h
119
struct _citrus_stdenc_state_desc * __restrict d)
lib/libc/citrus/citrus_stdenc.h
122
return ((*ce->ce_ops->eo_get_state_desc)(ce, ps, id, d));
lib/libc/citrus/citrus_stdenc_template.h
197
struct _citrus_stdenc_state_desc * __restrict d)
lib/libc/citrus/citrus_stdenc_template.h
204
_CE_TO_EI(ce), _TO_STATE(ps), &d->u.generic.state);
lib/libc/gdtoa/_hdtoa.c
118
u.d += redux;
lib/libc/gdtoa/_hdtoa.c
119
u.d -= redux;
lib/libc/gdtoa/_hdtoa.c
71
__hdtoa(double d, const char *xdigs, int ndigits, int *decpt, int *sign,
lib/libc/gdtoa/_hdtoa.c
79
u.d = d;
lib/libc/gdtoa/_hdtoa.c
82
switch (fpclassify(d)) {
lib/libc/gdtoa/_hdtoa.c
90
u.d *= 0x1p514;
lib/libc/gen/fpclassify.c
57
__fpclassifyd(double d)
lib/libc/gen/fpclassify.c
61
u.d = d;
lib/libc/gen/frexp.c
34
frexp(double d, int *ex)
lib/libc/gen/frexp.c
38
u.d = d;
lib/libc/gen/frexp.c
44
u.d *= 0x1.0p514;
lib/libc/gen/frexp.c
56
return (u.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
39
__isinf(double d)
lib/libc/gen/isinf.c
43
u.d = d;
lib/libc/gen/isnan.c
39
__isnan(double d)
lib/libc/gen/isnan.c
43
u.d = 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
51
#define EXTRACT_WORDS(ix0,ix1,d) \
lib/libc/gen/ldexp.c
54
ew_u.value = (d); \
lib/libc/gen/ldexp.c
61
#define GET_HIGH_WORD(i,d) \
lib/libc/gen/ldexp.c
64
gh_u.value = (d); \
lib/libc/gen/ldexp.c
70
#define SET_HIGH_WORD(d,v) \
lib/libc/gen/ldexp.c
73
sh_u.value = (d); \
lib/libc/gen/ldexp.c
75
(d) = sh_u.value; \
lib/libc/gen/modf.c
60
#define EXTRACT_WORDS(ix0,ix1,d) \
lib/libc/gen/modf.c
63
ew_u.value = (d); \
lib/libc/gen/modf.c
70
#define GET_HIGH_WORD(i,d) \
lib/libc/gen/modf.c
73
gh_u.value = (d); \
lib/libc/gen/modf.c
79
#define INSERT_WORDS(d,ix0,ix1) \
lib/libc/gen/modf.c
84
(d) = iw_u.value; \
lib/libc/gen/scandir.c
57
struct dirent *d, *p, **names = NULL;
lib/libc/gen/scandir.c
79
while ((d = readdir(dirp)) != NULL) {
lib/libc/gen/scandir.c
80
if (select != NULL && !(*select)(d))
lib/libc/gen/scandir.c
85
p = (struct dirent *)malloc(_DIRENT_DIRSIZ(d));
lib/libc/gen/scandir.c
88
p->d_ino = d->d_ino;
lib/libc/gen/scandir.c
89
p->d_type = d->d_type;
lib/libc/gen/scandir.c
90
p->d_namlen = d->d_namlen;
lib/libc/gen/scandir.c
91
bcopy(d->d_name, p->d_name, p->d_namlen + 1);
lib/libc/gen/setmode.c
147
#define ADDCMD(a, b, c, d) \
lib/libc/gen/setmode.c
162
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/gen/vis.c
362
wchar_t *dst, *d;
lib/libc/gen/vis.c
376
d = dst + len;
lib/libc/gen/vis.c
378
d = dst + wcslen(dst);
lib/libc/gen/vis.c
381
for (s = char_glob; *s; *d++ = *s++)
lib/libc/gen/vis.c
385
for (s = char_shell; *s; *d++ = *s++)
lib/libc/gen/vis.c
388
if (flags & VIS_SP) *d++ = L' ';
lib/libc/gen/vis.c
389
if (flags & VIS_TAB) *d++ = L'\t';
lib/libc/gen/vis.c
390
if (flags & VIS_NL) *d++ = L'\n';
lib/libc/gen/vis.c
391
if (flags & VIS_DQ) *d++ = L'"';
lib/libc/gen/vis.c
392
if ((flags & VIS_NOSLASH) == 0) *d++ = L'\\';
lib/libc/gen/vis.c
393
*d = L'\0';
lib/libc/include/fpmath.h
56
double d;
lib/libc/include/reentrant.h
127
#define thr_keycreate(k, d) _pthread_key_create(k, d)
lib/libc/net/getaddrinfo.c
2663
size_t n, d;
lib/libc/net/getaddrinfo.c
2687
d = strlen(domain);
lib/libc/net/getaddrinfo.c
2688
if (n + d + 1 >= MAXDNAME) {
lib/libc/net/getaddrinfo.c
824
u_char *s, *d;
lib/libc/net/getaddrinfo.c
832
d = (u_char *)&((struct sockaddr_in6 *)dst)->sin6_addr;
lib/libc/net/getaddrinfo.c
839
d = (u_char *)&((struct sockaddr_in *)dst)->sin_addr;
lib/libc/net/getaddrinfo.c
848
if ((r = (*d++ ^ *s++)) != 0) {
lib/libc/net/name6.c
903
u_char *s, *d;
lib/libc/net/name6.c
911
d = (u_char *)&((struct sockaddr_in6 *)dst)->sin6_addr;
lib/libc/net/name6.c
918
d = (u_char *)&((struct sockaddr_in *)dst)->sin_addr;
lib/libc/net/name6.c
927
if ((r = (*d++ ^ *s++)) != 0) {
lib/libc/resolv/res_query.c
363
int n, d;
lib/libc/resolv/res_query.c
388
d = strlen(domain);
lib/libc/resolv/res_query.c
389
if (n + d + 1 >= MAXDNAME) {
lib/libc/stdio/xprintf_float.c
167
double d;
lib/libc/stdio/xprintf_float.c
212
d = *((double *)arg[0]);
lib/libc/stdio/xprintf_float.c
214
__hdtoa(d, xdigs, prec,
lib/libc/stdio/xprintf_float.c
252
d = *((double *)arg[0]);
lib/libc/stdio/xprintf_float.c
254
dtoa(d, expchar ? 2 : 3, prec,
lib/libc/stdlib/nmalloc.c
1740
magazine_depot *d;
lib/libc/stdlib/nmalloc.c
1797
d = &depots[zi];
lib/libc/stdlib/nmalloc.c
1798
if (SLIST_EMPTY(&d->full)) { /* UNLOCKED TEST IS SAFE */
lib/libc/stdlib/nmalloc.c
1816
depot_lock(d);
lib/libc/stdlib/nmalloc.c
1817
mp = SLIST_FIRST(&d->full);
lib/libc/stdlib/nmalloc.c
1819
SLIST_REMOVE_HEAD(&d->full, nextmagazine);
lib/libc/stdlib/nmalloc.c
1822
SLIST_INSERT_HEAD(&d->empty, emptymag,
lib/libc/stdlib/nmalloc.c
1829
depot_unlock(d);
lib/libc/stdlib/nmalloc.c
1841
magazine_depot *d;
lib/libc/stdlib/nmalloc.c
1906
d = &depots[zi];
lib/libc/stdlib/nmalloc.c
1907
depot_lock(d);
lib/libc/stdlib/nmalloc.c
1910
SLIST_INSERT_HEAD(&d->full, loadedmag, nextmagazine);
lib/libc/stdlib/nmalloc.c
1912
mp = SLIST_FIRST(&d->empty);
lib/libc/stdlib/nmalloc.c
1915
SLIST_REMOVE_HEAD(&d->empty, nextmagazine);
lib/libc/stdlib/nmalloc.c
1916
depot_unlock(d);
lib/libc/stdlib/nmalloc.c
1925
depot_unlock(d);
lib/libc/stdlib/qsort.c
110
size_t d, r;
lib/libc/stdlib/qsort.c
129
d = (n / 8) * es;
lib/libc/stdlib/qsort.c
130
pl = med3(pl, pl + d, pl + 2 * d, cmp, thunk);
lib/libc/stdlib/qsort.c
131
pm = med3(pm - d, pm, pm + d, cmp, thunk);
lib/libc/stdlib/qsort.c
132
pn = med3(pn - 2 * d, pn - d, pn, cmp, thunk);
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/stdtime/localtime.c
852
int d, m1, yy0, yy1, yy2, dow;
lib/libc/stdtime/localtime.c
903
d = rulep->r_day - dow;
lib/libc/stdtime/localtime.c
904
if (d < 0)
lib/libc/stdtime/localtime.c
905
d += DAYSPERWEEK;
lib/libc/stdtime/localtime.c
907
if (d + DAYSPERWEEK >=
lib/libc/stdtime/localtime.c
910
d += DAYSPERWEEK;
lib/libc/stdtime/localtime.c
916
value = d * SECSPERDAY;
lib/libc/string/strlcat.c
34
char *d = dst;
lib/libc/string/strlcat.c
40
while (n-- != 0 && *d != '\0')
lib/libc/string/strlcat.c
41
d++;
lib/libc/string/strlcat.c
42
dlen = d - dst;
lib/libc/string/strlcat.c
49
*d++ = *s;
lib/libc/string/strlcat.c
54
*d = '\0';
lib/libc/string/strlcpy.c
32
char *d = dst;
lib/libc/string/strlcpy.c
39
if ((*d++ = *s++) == '\0')
lib/libc/string/strlcpy.c
47
*d = '\0'; /* NUL-terminate dst */
lib/libc/string/strncat.c
47
char *d = dst;
lib/libc/string/strncat.c
50
while (*d != 0)
lib/libc/string/strncat.c
51
d++;
lib/libc/string/strncat.c
53
if ((*d = *s++) == 0)
lib/libc/string/strncat.c
55
d++;
lib/libc/string/strncat.c
57
*d = 0;
lib/libc/string/strncpy.c
46
char *d = dst;
lib/libc/string/strncpy.c
50
if ((*d++ = *s++) == '\0') {
lib/libc/string/strncpy.c
53
*d++ = '\0';
lib/libc/string/wcslcat.c
44
wchar_t *d = dst;
lib/libc/string/wcslcat.c
50
while (*d != '\0' && n-- != 0)
lib/libc/string/wcslcat.c
51
d++;
lib/libc/string/wcslcat.c
52
dlen = d - dst;
lib/libc/string/wcslcat.c
59
*d++ = *s;
lib/libc/string/wcslcat.c
64
*d = '\0';
lib/libc/string/wcslcpy.c
42
wchar_t *d = dst;
lib/libc/string/wcslcpy.c
49
if ((*d++ = *s++) == 0)
lib/libc/string/wcslcpy.c
57
*d = '\0'; /* NUL-terminate dst */
lib/libc/string/wcsncpy.c
45
wchar_t *d = dst;
lib/libc/string/wcsncpy.c
49
if ((*d++ = *s++) == L'\0') {
lib/libc/string/wcsncpy.c
52
*d++ = L'\0';
lib/libc/string/wmemcpy.c
34
wmemcpy(wchar_t * __restrict d, const wchar_t * __restrict s, size_t n)
lib/libc/string/wmemcpy.c
36
return (wchar_t *)memcpy(d, s, n * sizeof(wchar_t));
lib/libc/string/wmemmove.c
34
wmemmove(wchar_t *d, const wchar_t *s, size_t n)
lib/libc/string/wmemmove.c
36
return (wchar_t *)memmove(d, s, n * sizeof(wchar_t));
lib/libcalendar/calendar.c
118
return (idt->d + month1[idt->m] + idt->y * 365 + idt->y / 4);
lib/libcalendar/calendar.c
140
idt.d = 0;
lib/libcalendar/calendar.c
163
idt.d = ndays - montht[idt.m]; /* the rest is the day in month */
lib/libcalendar/calendar.c
166
if (idt.y == jiswitch.y && idt.m == jiswitch.m && jiswitch.d < idt.d)
lib/libcalendar/calendar.c
167
idt.d += 10;
lib/libcalendar/calendar.c
252
idt.d = 0;
lib/libcalendar/calendar.c
295
idt->d = dt->d - 1;
lib/libcalendar/calendar.c
314
dt->d = idt->d + 1;
lib/libcalendar/calendar.c
75
idt.d = 0;
lib/libcalendar/calendar.c
89
idt.d = r - month1[idt.m];
lib/libcalendar/calendar.h
32
int d; /* day */
lib/libcalendar/easter.c
50
dt->d = l + 28 - 31*(dt->m / 4);
lib/libcalendar/easter.c
89
dt.d = mc[y % 19];
lib/libcalendar/easter.c
91
if (dt.d < 21)
lib/libcrypt/blowfish.c
517
u_int32_t *d;
lib/libcrypt/blowfish.c
520
d = data;
lib/libcrypt/blowfish.c
522
Blowfish_encipher(c, d, d + 1);
lib/libcrypt/blowfish.c
523
d += 2;
lib/libcrypt/blowfish.c
530
u_int32_t *d;
lib/libcrypt/blowfish.c
533
d = data;
lib/libcrypt/blowfish.c
535
Blowfish_decipher(c, d, d + 1);
lib/libcrypt/blowfish.c
536
d += 2;
lib/libcrypt/crypt-sha256.c
120
e = d + T1;
lib/libcrypt/crypt-sha256.c
121
d = c;
lib/libcrypt/crypt-sha256.c
132
d += d_save;
lib/libcrypt/crypt-sha256.c
146
ctx->H[3] = d;
lib/libcrypt/crypt-sha256.c
64
uint32_t d = ctx->H[3];
lib/libcrypt/crypt-sha256.c
85
uint32_t d_save = d;
lib/libcrypt/crypt-sha512.c
116
uint64_t d_save = d;
lib/libcrypt/crypt-sha512.c
151
e = d + T1;
lib/libcrypt/crypt-sha512.c
152
d = c;
lib/libcrypt/crypt-sha512.c
163
d += d_save;
lib/libcrypt/crypt-sha512.c
177
ctx->H[3] = d;
lib/libcrypt/crypt-sha512.c
95
uint64_t d = ctx->H[3];
lib/libefivar/efivar.h
57
#define EFI_GUID(a, b, c, d, e0, e1, e2, e3, e4, e5) \
lib/libefivar/efivar.h
58
((efi_guid_t) {(a), (b), (c), (d) >> 8, (d) & 0xff, \
lib/libefivar/efivar.h
61
#define EFI_GUID(a, b, c, d, e0, e1, e2, e3, e4, e5) \
lib/libefivar/efivar.h
62
((efi_guid_t) {(a), (b), (c), (d) & 0xff, (d) >> 8, \
lib/libefivar/uefi-dplib.h
506
#define CopyMem(d, s, l) memcpy(d, s, l)
lib/libefivar/uefi-dplib.h
521
#define StrCpyS(d, l, s) strcpy(d, s)
lib/libefivar/uefi-dplib.h
526
#define StrnCatS(d, l, s, len) strncat(d, s, len)
lib/libevtr/evtr.c
281
evtr_register_callback(evtr_query_t q, void (*fn)(evtr_event_t, void *), void *d)
lib/libevtr/evtr.c
291
cb->data = d;
lib/libevtr/evtr.c
449
ptrdiff_t d;
lib/libevtr/evtr.c
450
d = a->id - b->id;
lib/libevtr/evtr.c
451
if (d < 0)
lib/libevtr/evtr.c
453
if (!d)
lib/libevtr/evtr.c
789
parse_callback(evtr_event_t ev, void *d)
lib/libevtr/evtr.c
791
evtr_query_t q = (evtr_query_t)d;
lib/libevtr/evtr.c
819
thread_creation_callback(evtr_event_t ev, void *d)
lib/libevtr/evtr.c
821
evtr_query_t q = (evtr_query_t)d;
lib/libevtr/evtr.c
849
thread_switch_callback(evtr_event_t ev, void *d)
lib/libevtr/evtr.c
851
evtr_t evtr = ((evtr_query_t)d)->evtr;
lib/libevtr/evtr.c
891
thread_creation_callback(&tdcr, d);
lib/libexecinfo/private_libelf.h
1139
struct _Libelf_Data *d;
lib/libexecinfo/private_libelf.h
1141
if ((d = calloc((size_t) 1, sizeof(*d))) == NULL) {
lib/libexecinfo/private_libelf.h
1146
d->d_scn = s;
lib/libexecinfo/private_libelf.h
1148
return (d);
lib/libexecinfo/private_libelf.h
1152
_libelf_release_data(struct _Libelf_Data *d)
lib/libexecinfo/private_libelf.h
1155
if (d->d_flags & LIBELF_F_DATA_MALLOCED)
lib/libexecinfo/private_libelf.h
1156
free(d->d_data.d_buf);
lib/libexecinfo/private_libelf.h
1158
free(d);
lib/libexecinfo/private_libelf.h
1188
struct _Libelf_Data *d, *td;
lib/libexecinfo/private_libelf.h
1192
STAILQ_FOREACH_SAFE(d, &s->s_data, d_next, td) {
lib/libexecinfo/private_libelf.h
1193
STAILQ_REMOVE(&s->s_data, d, _Libelf_Data, d_next);
lib/libexecinfo/private_libelf.h
1194
d = _libelf_release_data(d);
lib/libexecinfo/private_libelf.h
1197
STAILQ_FOREACH_SAFE(d, &s->s_rawdata, d_next, td) {
lib/libexecinfo/private_libelf.h
1198
assert((d->d_flags & LIBELF_F_DATA_MALLOCED) == 0);
lib/libexecinfo/private_libelf.h
1199
STAILQ_REMOVE(&s->s_rawdata, d, _Libelf_Data, d_next);
lib/libexecinfo/private_libelf.h
1200
d = _libelf_release_data(d);
lib/libexecinfo/private_libelf.h
1384
Elf64_Addr t, *d = (Elf64_Addr *) (uintptr_t) dst;
lib/libexecinfo/private_libelf.h
1391
(void) memcpy(dst, src, count * sizeof(*d));
lib/libexecinfo/private_libelf.h
1398
*d++ = t;
lib/libexecinfo/private_libelf.h
1408
Elf64_Cap t, *d;
lib/libexecinfo/private_libelf.h
1413
d = ((Elf64_Cap *) (uintptr_t) dst) + (count - 1);
lib/libexecinfo/private_libelf.h
1431
*d-- = t; s0 -= fsz;
lib/libexecinfo/private_libelf.h
1441
Elf64_Dyn t, *d;
lib/libexecinfo/private_libelf.h
1446
d = ((Elf64_Dyn *) (uintptr_t) dst) + (count - 1);
lib/libexecinfo/private_libelf.h
1464
*d-- = t; s0 -= fsz;
lib/libexecinfo/private_libelf.h
1474
Elf64_Ehdr t, *d;
lib/libexecinfo/private_libelf.h
1479
d = ((Elf64_Ehdr *) (uintptr_t) dst) + (count - 1);
lib/libexecinfo/private_libelf.h
1521
*d-- = t; s0 -= fsz;
lib/libexecinfo/private_libelf.h
1531
Elf64_Half t, *d = (Elf64_Half *) (uintptr_t) dst;
lib/libexecinfo/private_libelf.h
1538
(void) memcpy(dst, src, count * sizeof(*d));
lib/libexecinfo/private_libelf.h
1545
*d++ = t;
lib/libexecinfo/private_libelf.h
1555
Elf64_Lword t, *d = (Elf64_Lword *) (uintptr_t) dst;
lib/libexecinfo/private_libelf.h
1562
(void) memcpy(dst, src, count * sizeof(*d));
lib/libexecinfo/private_libelf.h
1569
*d++ = t;
lib/libexecinfo/private_libelf.h
1579
Elf64_Move t, *d;
lib/libexecinfo/private_libelf.h
1584
d = ((Elf64_Move *) (uintptr_t) dst) + (count - 1);
lib/libexecinfo/private_libelf.h
1608
*d-- = t; s0 -= fsz;
lib/libexecinfo/private_libelf.h
1618
Elf64_Off t, *d = (Elf64_Off *) (uintptr_t) dst;
lib/libexecinfo/private_libelf.h
1625
(void) memcpy(dst, src, count * sizeof(*d));
lib/libexecinfo/private_libelf.h
1632
*d++ = t;
lib/libexecinfo/private_libelf.h
1642
Elf64_Phdr t, *d;
lib/libexecinfo/private_libelf.h
1647
d = ((Elf64_Phdr *) (uintptr_t) dst) + (count - 1);
lib/libexecinfo/private_libelf.h
1677
*d-- = t; s0 -= fsz;
lib/libexecinfo/private_libelf.h
1687
Elf64_Rel t, *d;
lib/libexecinfo/private_libelf.h
1692
d = ((Elf64_Rel *) (uintptr_t) dst) + (count - 1);
lib/libexecinfo/private_libelf.h
1710
*d-- = t; s0 -= fsz;
lib/libexecinfo/private_libelf.h
1720
Elf64_Rela t, *d;
lib/libexecinfo/private_libelf.h
1725
d = ((Elf64_Rela *) (uintptr_t) dst) + (count - 1);
lib/libexecinfo/private_libelf.h
1745
*d-- = t; s0 -= fsz;
lib/libexecinfo/private_libelf.h
1755
Elf64_Shdr t, *d;
lib/libexecinfo/private_libelf.h
1760
d = ((Elf64_Shdr *) (uintptr_t) dst) + (count - 1);
lib/libexecinfo/private_libelf.h
1794
*d-- = t; s0 -= fsz;
lib/libexecinfo/private_libelf.h
1804
Elf64_Sword t, *d = (Elf64_Sword *) (uintptr_t) dst;
lib/libexecinfo/private_libelf.h
1811
(void) memcpy(dst, src, count * sizeof(*d));
lib/libexecinfo/private_libelf.h
1818
*d++ = t;
lib/libexecinfo/private_libelf.h
1828
Elf64_Sxword t, *d = (Elf64_Sxword *) (uintptr_t) dst;
lib/libexecinfo/private_libelf.h
1835
(void) memcpy(dst, src, count * sizeof(*d));
lib/libexecinfo/private_libelf.h
1842
*d++ = t;
lib/libexecinfo/private_libelf.h
1852
Elf64_Syminfo t, *d;
lib/libexecinfo/private_libelf.h
1857
d = ((Elf64_Syminfo *) (uintptr_t) dst) + (count - 1);
lib/libexecinfo/private_libelf.h
1875
*d-- = t; s0 -= fsz;
lib/libexecinfo/private_libelf.h
1885
Elf64_Sym t, *d;
lib/libexecinfo/private_libelf.h
1890
d = ((Elf64_Sym *) (uintptr_t) dst) + (count - 1);
lib/libexecinfo/private_libelf.h
1916
*d-- = t; s0 -= fsz;
lib/libexecinfo/private_libelf.h
1926
Elf64_Word t, *d = (Elf64_Word *) (uintptr_t) dst;
lib/libexecinfo/private_libelf.h
1933
(void) memcpy(dst, src, count * sizeof(*d));
lib/libexecinfo/private_libelf.h
1940
*d++ = t;
lib/libexecinfo/private_libelf.h
1950
Elf64_Xword t, *d = (Elf64_Xword *) (uintptr_t) dst;
lib/libexecinfo/private_libelf.h
1957
(void) memcpy(dst, src, count * sizeof(*d));
lib/libexecinfo/private_libelf.h
1964
*d++ = t;
lib/libexecinfo/private_libelf.h
3184
gelf_getshdr(Elf_Scn *s, GElf_Shdr *d)
lib/libexecinfo/private_libelf.h
3193
if (d == NULL) {
lib/libexecinfo/private_libelf.h
3208
d->sh_name = sh32->sh_name;
lib/libexecinfo/private_libelf.h
3209
d->sh_type = sh32->sh_type;
lib/libexecinfo/private_libelf.h
3210
d->sh_flags = (Elf64_Xword) sh32->sh_flags;
lib/libexecinfo/private_libelf.h
3211
d->sh_addr = (Elf64_Addr) sh32->sh_addr;
lib/libexecinfo/private_libelf.h
3212
d->sh_offset = (Elf64_Off) sh32->sh_offset;
lib/libexecinfo/private_libelf.h
3213
d->sh_size = (Elf64_Xword) sh32->sh_size;
lib/libexecinfo/private_libelf.h
3214
d->sh_link = sh32->sh_link;
lib/libexecinfo/private_libelf.h
3215
d->sh_info = sh32->sh_info;
lib/libexecinfo/private_libelf.h
3216
d->sh_addralign = (Elf64_Xword) sh32->sh_addralign;
lib/libexecinfo/private_libelf.h
3217
d->sh_entsize = (Elf64_Xword) sh32->sh_entsize;
lib/libexecinfo/private_libelf.h
3222
*d = *sh64;
lib/libexecinfo/private_libelf.h
3225
return (d);
lib/libexecinfo/private_libelf.h
3241
struct _Libelf_Data *d;
lib/libexecinfo/private_libelf.h
3243
d = (struct _Libelf_Data *) ed;
lib/libexecinfo/private_libelf.h
3245
if (d == NULL || ndx < 0 || dst == NULL ||
lib/libexecinfo/private_libelf.h
3246
(scn = d->d_scn) == NULL ||
lib/libexecinfo/private_libelf.h
3272
if (msz * (size_t) ndx >= d->d_data.d_size) {
lib/libexecinfo/private_libelf.h
3279
sym32 = (Elf32_Sym *) d->d_data.d_buf + ndx;
lib/libexecinfo/private_libelf.h
3290
sym64 = (Elf64_Sym *) d->d_data.d_buf + ndx;
lib/libexecinfo/private_libelf.h
3317
Elf_Data *d;
lib/libexecinfo/private_libelf.h
3336
d = NULL;
lib/libexecinfo/private_libelf.h
3345
while ((d = elf_getdata(s, d)) != NULL) {
lib/libexecinfo/private_libelf.h
3347
if (d->d_buf == 0 || d->d_size == 0)
lib/libexecinfo/private_libelf.h
3350
if (d->d_type != ELF_T_BYTE) {
lib/libexecinfo/private_libelf.h
3355
if (offset >= d->d_off &&
lib/libexecinfo/private_libelf.h
3356
offset < d->d_off + d->d_size)
lib/libexecinfo/private_libelf.h
3357
return ((char *) d->d_buf + offset - d->d_off);
lib/libexecinfo/private_libelf.h
3367
while ((d = elf_getdata(s, d)) != NULL && count <= offset) {
lib/libexecinfo/private_libelf.h
3369
if (d->d_buf == NULL || d->d_size == 0)
lib/libexecinfo/private_libelf.h
3372
if (d->d_type != ELF_T_BYTE) {
lib/libexecinfo/private_libelf.h
3377
if ((alignment = d->d_align) > 1) {
lib/libexecinfo/private_libelf.h
3391
if (offset < count + d->d_size) {
lib/libexecinfo/private_libelf.h
3392
if (d->d_buf != NULL)
lib/libexecinfo/private_libelf.h
3393
return ((char *) d->d_buf +
lib/libexecinfo/private_libelf.h
3399
count += d->d_size;
lib/libexecinfo/private_libelf.h
3415
struct _Libelf_Data *d;
lib/libexecinfo/private_libelf.h
3420
d = (struct _Libelf_Data *) ed;
lib/libexecinfo/private_libelf.h
3423
(d != NULL && s != d->d_scn)) {
lib/libexecinfo/private_libelf.h
3430
if (d == NULL && (d = STAILQ_FIRST(&s->s_data)) != NULL)
lib/libexecinfo/private_libelf.h
3431
return (&d->d_data);
lib/libexecinfo/private_libelf.h
3433
if (d != NULL)
lib/libexecinfo/private_libelf.h
3434
return (&STAILQ_NEXT(d, d_next)->d_data);
lib/libexecinfo/private_libelf.h
3505
if ((d = _libelf_allocate_data(s)) == NULL)
lib/libexecinfo/private_libelf.h
3508
d->d_data.d_buf = NULL;
lib/libexecinfo/private_libelf.h
3509
d->d_data.d_off = 0;
lib/libexecinfo/private_libelf.h
3510
d->d_data.d_align = sh_align;
lib/libexecinfo/private_libelf.h
3511
d->d_data.d_size = msz * count;
lib/libexecinfo/private_libelf.h
3512
d->d_data.d_type = elftype;
lib/libexecinfo/private_libelf.h
3513
d->d_data.d_version = e->e_version;
lib/libexecinfo/private_libelf.h
3516
STAILQ_INSERT_TAIL(&s->s_data, d, d_next);
lib/libexecinfo/private_libelf.h
3517
return (&d->d_data);
lib/libexecinfo/private_libelf.h
3520
if ((d->d_data.d_buf = malloc(msz * count)) == NULL) {
lib/libexecinfo/private_libelf.h
3521
(void) _libelf_release_data(d);
lib/libexecinfo/private_libelf.h
3526
d->d_flags |= LIBELF_F_DATA_MALLOCED;
lib/libexecinfo/private_libelf.h
3529
if (!(*xlate)(d->d_data.d_buf, (size_t) d->d_data.d_size,
lib/libexecinfo/private_libelf.h
3532
_libelf_release_data(d);
lib/libexecinfo/private_libelf.h
3537
STAILQ_INSERT_TAIL(&s->s_data, d, d_next);
lib/libexecinfo/private_libelf.h
3539
return (&d->d_data);
lib/libfetch/common.c
967
ns = (const char *)ASN1_STRING_data(name->d.ia5);
lib/libfetch/common.c
969
ns = (const char *)ASN1_STRING_get0_data(name->d.ia5);
lib/libfetch/common.c
971
nslen = (size_t)ASN1_STRING_length(name->d.ia5);
lib/libfetch/ftp.c
788
int arg, d;
lib/libfetch/ftp.c
877
if ((d = accept(sd, NULL, NULL)) == -1)
lib/libfetch/ftp.c
880
sd = d;
lib/libipfw3/layer4/ipfw3_layer4.c
111
cmd32->d[0] = grp->gr_gid;
lib/libipfw3/layer4/ipfw3_layer4.c
172
struct passwd *pwd = getpwuid(cmd32->d[0]);
lib/libipfw3/layer4/ipfw3_layer4.c
179
printf(" %s %u", word, cmd32->d[0]);
lib/libipfw3/layer4/ipfw3_layer4.c
187
struct group *grp = getgrgid(cmd32->d[0]);
lib/libipfw3/layer4/ipfw3_layer4.c
194
printf(" %s %u", word, cmd32->d[0]);
lib/libipfw3/layer4/ipfw3_layer4.c
89
cmd32->d[0] = pwd->pw_uid;
lib/libm/src/isfinite.c
28
past___isfinite(double d)
lib/libm/src/isfinite.c
30
struct ieee_double *p = (struct ieee_double *)&d;
lib/libm/src/isnormal.c
28
past___isnormal(double d)
lib/libm/src/isnormal.c
30
struct ieee_double *p = (struct ieee_double *)&d;
lib/libm/src/signbit.c
28
past___signbit(double d)
lib/libm/src/signbit.c
30
struct ieee_double *p = (struct ieee_double *)&d;
lib/libssh/openbsd-compat/blowfish.c
514
u_int32_t *d;
lib/libssh/openbsd-compat/blowfish.c
517
d = data;
lib/libssh/openbsd-compat/blowfish.c
519
Blowfish_encipher(c, d, d + 1);
lib/libssh/openbsd-compat/blowfish.c
520
d += 2;
lib/libssh/openbsd-compat/blowfish.c
527
u_int32_t *d;
lib/libssh/openbsd-compat/blowfish.c
530
d = data;
lib/libssh/openbsd-compat/blowfish.c
532
Blowfish_decipher(c, d, d + 1);
lib/libssh/openbsd-compat/blowfish.c
533
d += 2;
lib/libssh/openbsd-compat/glob.h
52
# define glob(a, b, c, d) _ssh__compat_glob(a, b, c, d)
lib/libssh/openbsd-compat/openssl-compat.h
106
const BIGNUM **d);
lib/libssh/openbsd-compat/openssl-compat.h
110
int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
lib/libssh/openbsd-compat/openssl-compat.h
73
void DSA_get0_pqg(const DSA *d, const BIGNUM **p, const BIGNUM **q,
lib/libssh/openbsd-compat/openssl-compat.h
78
int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g);
lib/libssh/openbsd-compat/openssl-compat.h
82
void DSA_get0_key(const DSA *d, const BIGNUM **pub_key,
lib/libssh/openbsd-compat/openssl-compat.h
87
int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key);
lib/libtcplay/crc32.c
106
crc32_intermediate(uint32_t crc, uint8_t d)
lib/libtcplay/crc32.c
108
return crc32_tab[(crc ^ d) & 0xFF] ^ (crc >> 8);
lib/libtcplay/crc32.h
2
uint32_t crc32_intermediate(uint32_t crc, uint8_t d);
lib/libtcplay/humanize.c
127
d = 0;
lib/libtcplay/humanize.c
137
d = strtoull(endptr+1, &endptr, 10);
lib/libtcplay/humanize.c
147
if (d != 0) {
lib/libtcplay/humanize.c
148
while (d < 100)
lib/libtcplay/humanize.c
149
d *= 10;
lib/libtcplay/humanize.c
151
while (d > 1000)
lib/libtcplay/humanize.c
152
d /= 10;
lib/libtcplay/humanize.c
155
d *= (multiplier/1024);
lib/libtcplay/humanize.c
163
n += d;
lib/libtcplay/humanize.c
45
uint64_t i, d;
lib/libtcplay/humanize.c
49
d = 0;
lib/libtcplay/humanize.c
52
d = (i % 1024)/10;
lib/libtcplay/humanize.c
57
if (d > 0)
lib/libtcplay/humanize.c
59
i, d, *prefixp);
lib/libtcplay/humanize.c
76
uint64_t n, n_check, d;
lib/libtelnet/kerberos5.c
101
const unsigned char *cd = d;
lib/libtelnet/kerberos5.c
111
printd(d, c);
lib/libtelnet/kerberos5.c
98
Data(Authenticator *ap, int type, const char *d, int c)
lib/libtelnet/krb4encpwd.c
108
Data(ap, type, d, c)
lib/libtelnet/krb4encpwd.c
111
void *d;
lib/libtelnet/krb4encpwd.c
115
unsigned char *cd = (unsigned char *)d;
lib/libtelnet/krb4encpwd.c
125
printd(d, c);
lib/libtelnet/rsaencpwd.c
104
Data(ap, type, d, c)
lib/libtelnet/rsaencpwd.c
107
void *d;
lib/libtelnet/rsaencpwd.c
111
unsigned char *cd = (unsigned char *)d;
lib/libtelnet/rsaencpwd.c
121
printd(d, c);
lib/libtelnet/sra.c
82
Data(Authenticator *ap, int type, void *d, int c)
lib/libtelnet/sra.c
85
unsigned char *cd = (unsigned char *)d;
lib/libtelnet/sra.c
95
printd(d, c);
lib/libthread_xu/thread/thr_printf.c
101
u = (unsigned long)d;
lib/libthread_xu/thread/thr_printf.c
66
long d;
lib/libthread_xu/thread/thr_printf.c
94
d = va_arg(ap, unsigned long);
lib/libthread_xu/thread/thr_printf.c
96
d = va_arg(ap, unsigned);
lib/libthread_xu/thread/thr_printf.c
97
if (d < 0) {
lib/libthread_xu/thread/thr_printf.c
99
u = (unsigned long)(d * -1);
lib/libu4bhid/descr.c
57
hid_data_t d;
lib/libu4bhid/descr.c
66
for (d = hid_start_parse(rep, kindset, -1); hid_get_item(d, &h); ) {
lib/libu4bhid/descr.c
73
hid_end_parse(d);
lib/libu4bhid/parse.c
152
hid_start_parse(report_desc_t d, int kindset, int id)
lib/libu4bhid/parse.c
158
s->start = s->p = d->data;
lib/libu4bhid/parse.c
159
s->end = d->data + d->size;
lib/libu4bhid/parse.c
528
struct hid_data *d;
lib/libu4bhid/parse.c
539
for (d = hid_start_parse(r, 1 << k, id); hid_get_item(d, &h); ) {
lib/libu4bhid/parse.c
553
hid_end_parse(d);
lib/libu4bhid/parse.c
569
struct hid_data *d;
lib/libu4bhid/parse.c
571
for (d = hid_start_parse(desc, 1 << k, id); hid_get_item(d, h); ) {
lib/libu4bhid/parse.c
573
hid_end_parse(d);
lib/libu4bhid/parse.c
577
hid_end_parse(d);
lib/libu4bhid/usbhid.h
91
hid_data_t hid_start_parse(report_desc_t d, int kindset, int id);
lib/libu4bhid/usbhid.h
94
int hid_report_size(report_desc_t d, enum hid_kind k, int id);
lib/libu4bhid/usbhid.h
95
int hid_locate(report_desc_t d, unsigned int usage, enum hid_kind k,
lib/libusb/libusb01.c
288
uint32_t d;
lib/libusb/libusb01.c
311
d = (sp[3] << 24) | (sp[2] << 16) |
lib/libusb/libusb01.c
318
*((uint32_t *)dp) = d;
lib/libusb/libusb01.c
467
uint32_t d;
lib/libusb/libusb01.c
487
d = ((uint8_t *)(ps.b.currextra) - ((uint8_t *)0));
lib/libusb/libusb01.c
490
ptr = malloc(a + b + c + d);
lib/libusb/libusb_global_linux.h
72
#define strlcpy(d,s,len) do { \
lib/libusb/libusb_global_linux.h
73
strncpy(d,s,len); \
lib/libusb/libusb_global_linux.h
74
((char *)d)[(len) - 1] = 0; \
lib/libutil/efun.c
86
char *d = strdup(s);
lib/libutil/efun.c
87
if (d == NULL)
lib/libutil/efun.c
89
return d;
lib/libutil/efun.c
95
char *d = strndup(s, len);
lib/libutil/efun.c
96
if (d == NULL)
lib/libutil/efun.c
98
return d;
lib/libvgl/simple.c
128
int d, x, y, ax, ay, sx, sy, dx, dy;
lib/libvgl/simple.c
134
d = ay-(ax>>1);
lib/libvgl/simple.c
139
if (d>=0) {
lib/libvgl/simple.c
140
y += sy; d -= ax;
lib/libvgl/simple.c
142
x += sx; d += ay;
lib/libvgl/simple.c
146
d = ax-(ay>>1);
lib/libvgl/simple.c
151
if (d>=0) {
lib/libvgl/simple.c
152
x += sx; d -= ay;
lib/libvgl/simple.c
154
y += sy; d += ax;
lib/libvgl/simple.c
198
int bsq2 = b*b*2, d = bsq-asq*b+asq/4, dx = 0, dy = asq2*b;
lib/libvgl/simple.c
202
if (d>0) {
lib/libvgl/simple.c
203
y--; dy-=asq2; d-=dy;
lib/libvgl/simple.c
205
x++; dx+=bsq2; d+=bsq+dx;
lib/libvgl/simple.c
207
d+=(3*(asq-bsq)/2-(dx+dy))/2;
lib/libvgl/simple.c
210
if (d<0) {
lib/libvgl/simple.c
211
x++; dx+=bsq2; d+=dx;
lib/libvgl/simple.c
213
y--; dy-=asq2; d+=asq-dy;
lib/libvgl/simple.c
234
int bsq2 = b*b*2, d = bsq-asq*b+asq/4, dx = 0, dy = asq2*b;
lib/libvgl/simple.c
238
if (d>0) {
lib/libvgl/simple.c
239
y--; dy-=asq2; d-=dy;
lib/libvgl/simple.c
241
x++; dx+=bsq2; d+=bsq+dx;
lib/libvgl/simple.c
243
d+=(3*(asq-bsq)/2-(dx+dy))/2;
lib/libvgl/simple.c
246
if (d<0) {
lib/libvgl/simple.c
247
x++; dx+=bsq2; d+=dx;
lib/libvgl/simple.c
249
y--; dy-=asq2; d+=asq-dy;
lib/omd/private_md5.h
112
#define _md5_FF(a, b, c, d, x, s, ac) { \
lib/omd/private_md5.h
113
(a) += _md5_F ((b), (c), (d)) + (x) + (u_int32_t)(ac); \
lib/omd/private_md5.h
117
#define _md5_GG(a, b, c, d, x, s, ac) { \
lib/omd/private_md5.h
118
(a) += _md5_G ((b), (c), (d)) + (x) + (u_int32_t)(ac); \
lib/omd/private_md5.h
122
#define _md5_HH(a, b, c, d, x, s, ac) { \
lib/omd/private_md5.h
123
(a) += _md5_H ((b), (c), (d)) + (x) + (u_int32_t)(ac); \
lib/omd/private_md5.h
127
#define _md5_II(a, b, c, d, x, s, ac) { \
lib/omd/private_md5.h
128
(a) += _md5_I ((b), (c), (d)) + (x) + (u_int32_t)(ac); \
lib/omd/private_md5.h
137
u_int32_t a = state[0], b = state[1], c = state[2], d = state[3], x[16];
lib/omd/private_md5.h
146
_md5_FF (a, b, c, d, x[ 0], _md5_S11, 0xd76aa478); /* 1 */
lib/omd/private_md5.h
147
_md5_FF (d, a, b, c, x[ 1], _md5_S12, 0xe8c7b756); /* 2 */
lib/omd/private_md5.h
148
_md5_FF (c, d, a, b, x[ 2], _md5_S13, 0x242070db); /* 3 */
lib/omd/private_md5.h
149
_md5_FF (b, c, d, a, x[ 3], _md5_S14, 0xc1bdceee); /* 4 */
lib/omd/private_md5.h
150
_md5_FF (a, b, c, d, x[ 4], _md5_S11, 0xf57c0faf); /* 5 */
lib/omd/private_md5.h
151
_md5_FF (d, a, b, c, x[ 5], _md5_S12, 0x4787c62a); /* 6 */
lib/omd/private_md5.h
152
_md5_FF (c, d, a, b, x[ 6], _md5_S13, 0xa8304613); /* 7 */
lib/omd/private_md5.h
153
_md5_FF (b, c, d, a, x[ 7], _md5_S14, 0xfd469501); /* 8 */
lib/omd/private_md5.h
154
_md5_FF (a, b, c, d, x[ 8], _md5_S11, 0x698098d8); /* 9 */
lib/omd/private_md5.h
155
_md5_FF (d, a, b, c, x[ 9], _md5_S12, 0x8b44f7af); /* 10 */
lib/omd/private_md5.h
156
_md5_FF (c, d, a, b, x[10], _md5_S13, 0xffff5bb1); /* 11 */
lib/omd/private_md5.h
157
_md5_FF (b, c, d, a, x[11], _md5_S14, 0x895cd7be); /* 12 */
lib/omd/private_md5.h
158
_md5_FF (a, b, c, d, x[12], _md5_S11, 0x6b901122); /* 13 */
lib/omd/private_md5.h
159
_md5_FF (d, a, b, c, x[13], _md5_S12, 0xfd987193); /* 14 */
lib/omd/private_md5.h
160
_md5_FF (c, d, a, b, x[14], _md5_S13, 0xa679438e); /* 15 */
lib/omd/private_md5.h
161
_md5_FF (b, c, d, a, x[15], _md5_S14, 0x49b40821); /* 16 */
lib/omd/private_md5.h
168
_md5_GG (a, b, c, d, x[ 1], _md5_S21, 0xf61e2562); /* 17 */
lib/omd/private_md5.h
169
_md5_GG (d, a, b, c, x[ 6], _md5_S22, 0xc040b340); /* 18 */
lib/omd/private_md5.h
170
_md5_GG (c, d, a, b, x[11], _md5_S23, 0x265e5a51); /* 19 */
lib/omd/private_md5.h
171
_md5_GG (b, c, d, a, x[ 0], _md5_S24, 0xe9b6c7aa); /* 20 */
lib/omd/private_md5.h
172
_md5_GG (a, b, c, d, x[ 5], _md5_S21, 0xd62f105d); /* 21 */
lib/omd/private_md5.h
173
_md5_GG (d, a, b, c, x[10], _md5_S22, 0x2441453); /* 22 */
lib/omd/private_md5.h
174
_md5_GG (c, d, a, b, x[15], _md5_S23, 0xd8a1e681); /* 23 */
lib/omd/private_md5.h
175
_md5_GG (b, c, d, a, x[ 4], _md5_S24, 0xe7d3fbc8); /* 24 */
lib/omd/private_md5.h
176
_md5_GG (a, b, c, d, x[ 9], _md5_S21, 0x21e1cde6); /* 25 */
lib/omd/private_md5.h
177
_md5_GG (d, a, b, c, x[14], _md5_S22, 0xc33707d6); /* 26 */
lib/omd/private_md5.h
178
_md5_GG (c, d, a, b, x[ 3], _md5_S23, 0xf4d50d87); /* 27 */
lib/omd/private_md5.h
179
_md5_GG (b, c, d, a, x[ 8], _md5_S24, 0x455a14ed); /* 28 */
lib/omd/private_md5.h
180
_md5_GG (a, b, c, d, x[13], _md5_S21, 0xa9e3e905); /* 29 */
lib/omd/private_md5.h
181
_md5_GG (d, a, b, c, x[ 2], _md5_S22, 0xfcefa3f8); /* 30 */
lib/omd/private_md5.h
182
_md5_GG (c, d, a, b, x[ 7], _md5_S23, 0x676f02d9); /* 31 */
lib/omd/private_md5.h
183
_md5_GG (b, c, d, a, x[12], _md5_S24, 0x8d2a4c8a); /* 32 */
lib/omd/private_md5.h
190
_md5_HH (a, b, c, d, x[ 5], _md5_S31, 0xfffa3942); /* 33 */
lib/omd/private_md5.h
191
_md5_HH (d, a, b, c, x[ 8], _md5_S32, 0x8771f681); /* 34 */
lib/omd/private_md5.h
192
_md5_HH (c, d, a, b, x[11], _md5_S33, 0x6d9d6122); /* 35 */
lib/omd/private_md5.h
193
_md5_HH (b, c, d, a, x[14], _md5_S34, 0xfde5380c); /* 36 */
lib/omd/private_md5.h
194
_md5_HH (a, b, c, d, x[ 1], _md5_S31, 0xa4beea44); /* 37 */
lib/omd/private_md5.h
195
_md5_HH (d, a, b, c, x[ 4], _md5_S32, 0x4bdecfa9); /* 38 */
lib/omd/private_md5.h
196
_md5_HH (c, d, a, b, x[ 7], _md5_S33, 0xf6bb4b60); /* 39 */
lib/omd/private_md5.h
197
_md5_HH (b, c, d, a, x[10], _md5_S34, 0xbebfbc70); /* 40 */
lib/omd/private_md5.h
198
_md5_HH (a, b, c, d, x[13], _md5_S31, 0x289b7ec6); /* 41 */
lib/omd/private_md5.h
199
_md5_HH (d, a, b, c, x[ 0], _md5_S32, 0xeaa127fa); /* 42 */
lib/omd/private_md5.h
200
_md5_HH (c, d, a, b, x[ 3], _md5_S33, 0xd4ef3085); /* 43 */
lib/omd/private_md5.h
201
_md5_HH (b, c, d, a, x[ 6], _md5_S34, 0x4881d05); /* 44 */
lib/omd/private_md5.h
202
_md5_HH (a, b, c, d, x[ 9], _md5_S31, 0xd9d4d039); /* 45 */
lib/omd/private_md5.h
203
_md5_HH (d, a, b, c, x[12], _md5_S32, 0xe6db99e5); /* 46 */
lib/omd/private_md5.h
204
_md5_HH (c, d, a, b, x[15], _md5_S33, 0x1fa27cf8); /* 47 */
lib/omd/private_md5.h
205
_md5_HH (b, c, d, a, x[ 2], _md5_S34, 0xc4ac5665); /* 48 */
lib/omd/private_md5.h
212
_md5_II (a, b, c, d, x[ 0], _md5_S41, 0xf4292244); /* 49 */
lib/omd/private_md5.h
213
_md5_II (d, a, b, c, x[ 7], _md5_S42, 0x432aff97); /* 50 */
lib/omd/private_md5.h
214
_md5_II (c, d, a, b, x[14], _md5_S43, 0xab9423a7); /* 51 */
lib/omd/private_md5.h
215
_md5_II (b, c, d, a, x[ 5], _md5_S44, 0xfc93a039); /* 52 */
lib/omd/private_md5.h
216
_md5_II (a, b, c, d, x[12], _md5_S41, 0x655b59c3); /* 53 */
lib/omd/private_md5.h
217
_md5_II (d, a, b, c, x[ 3], _md5_S42, 0x8f0ccc92); /* 54 */
lib/omd/private_md5.h
218
_md5_II (c, d, a, b, x[10], _md5_S43, 0xffeff47d); /* 55 */
lib/omd/private_md5.h
219
_md5_II (b, c, d, a, x[ 1], _md5_S44, 0x85845dd1); /* 56 */
lib/omd/private_md5.h
220
_md5_II (a, b, c, d, x[ 8], _md5_S41, 0x6fa87e4f); /* 57 */
lib/omd/private_md5.h
221
_md5_II (d, a, b, c, x[15], _md5_S42, 0xfe2ce6e0); /* 58 */
lib/omd/private_md5.h
222
_md5_II (c, d, a, b, x[ 6], _md5_S43, 0xa3014314); /* 59 */
lib/omd/private_md5.h
223
_md5_II (b, c, d, a, x[13], _md5_S44, 0x4e0811a1); /* 60 */
lib/omd/private_md5.h
224
_md5_II (a, b, c, d, x[ 4], _md5_S41, 0xf7537e82); /* 61 */
lib/omd/private_md5.h
225
_md5_II (d, a, b, c, x[11], _md5_S42, 0xbd3af235); /* 62 */
lib/omd/private_md5.h
226
_md5_II (c, d, a, b, x[ 2], _md5_S43, 0x2ad7d2bb); /* 63 */
lib/omd/private_md5.h
227
_md5_II (b, c, d, a, x[ 9], _md5_S44, 0xeb86d391); /* 64 */
lib/omd/private_md5.h
232
state[3] += d;
libexec/bootpd/dovend.c
285
byte *d;
libexec/bootpd/dovend.c
291
d = *dest; /* Save pointer for later */
libexec/bootpd/dovend.c
303
d[1] = (byte) ((*dest - d - 2) & 0xFF);
libexec/diff3prog/diff3prog.c
203
int a, b, c, d;
libexec/diff3prog/diff3prog.c
219
c = d = number(&p);
libexec/diff3prog/diff3prog.c
222
d = number(&p);
libexec/diff3prog/diff3prog.c
229
d++;
libexec/diff3prog/diff3prog.c
233
(*dd)[i].new.to = d;
libexec/diff3prog/diff3prog.c
482
int c,d;
libexec/diff3prog/diff3prog.c
494
d = getc(fp[1]);
libexec/diff3prog/diff3prog.c
495
if (c == -1 && d == -1)
libexec/diff3prog/diff3prog.c
497
if (c == -1 || d== -1)
libexec/diff3prog/diff3prog.c
500
if (c != d) {
libexec/dma/dfcompat.c
36
char *d = dst;
libexec/dma/dfcompat.c
43
if ((*d++ = *s++) == '\0')
libexec/dma/dfcompat.c
51
*d = '\0'; /* NUL-terminate dst */
libexec/rtld-elf/libmap.c
152
DIR *d;
libexec/rtld-elf/libmap.c
169
d = opendir(idir);
libexec/rtld-elf/libmap.c
170
if (d == NULL) {
libexec/rtld-elf/libmap.c
179
while ((dp = readdir(d)) != NULL) {
libexec/rtld-elf/libmap.c
197
closedir(d);
libexec/rtld-elf/rtld.c
3334
void *d;
libexec/rtld-elf/rtld.c
3338
rv.d = do_dlsym(handle, name, __builtin_return_address(0), NULL,
sbin/fsck/pass5.c
237
for (i = 0, d = dbase;
sbin/fsck/pass5.c
238
d < dmax;
sbin/fsck/pass5.c
239
d += fs->fs_frag, i += fs->fs_frag) {
sbin/fsck/pass5.c
242
if (testbmap(d + j))
sbin/fsck/pass5.c
51
ufs_daddr_t d;
sbin/fsck_msdosfs/dir.c
1085
struct dosDirEntry d;
sbin/fsck_msdosfs/dir.c
1141
memset(&d, 0, sizeof d);
sbin/fsck_msdosfs/dir.c
1143
len = snprintf(d.name, sizeof(d.name), "%u", head);
sbin/fsck_msdosfs/dir.c
1144
d.flags = 0;
sbin/fsck_msdosfs/dir.c
1145
d.head = head;
sbin/fsck_msdosfs/dir.c
1146
d.size = length * boot->ClusterSize;
sbin/fsck_msdosfs/dir.c
1148
memcpy(p, d.name, len);
sbin/fsck_msdosfs/dir.c
1151
p[26] = (u_char)d.head;
sbin/fsck_msdosfs/dir.c
1152
p[27] = (u_char)(d.head >> 8);
sbin/fsck_msdosfs/dir.c
1154
p[20] = (u_char)(d.head >> 16);
sbin/fsck_msdosfs/dir.c
1155
p[21] = (u_char)(d.head >> 24);
sbin/fsck_msdosfs/dir.c
1157
p[28] = (u_char)d.size;
sbin/fsck_msdosfs/dir.c
1158
p[29] = (u_char)(d.size >> 8);
sbin/fsck_msdosfs/dir.c
1159
p[30] = (u_char)(d.size >> 16);
sbin/fsck_msdosfs/dir.c
1160
p[31] = (u_char)(d.size >> 24);
sbin/fsck_msdosfs/dir.c
265
struct dosDirEntry *d, *nd;
sbin/fsck_msdosfs/dir.c
272
for (d = rootDir; d; d = nd) {
sbin/fsck_msdosfs/dir.c
273
if ((nd = d->child) != NULL) {
sbin/fsck_msdosfs/dir.c
274
d->child = 0;
sbin/fsck_msdosfs/dir.c
277
if (!(nd = d->next))
sbin/fsck_msdosfs/dir.c
278
nd = d->parent;
sbin/fsck_msdosfs/dir.c
279
freeDosDirEntry(d);
sbin/fsck_msdosfs/dir.c
546
struct dosDirEntry dirent, *d;
sbin/fsck_msdosfs/dir.c
978
if (!(d = newDosDirEntry())) {
sbin/fsck_msdosfs/dir.c
982
memcpy(d, &dirent, sizeof(struct dosDirEntry));
sbin/fsck_msdosfs/dir.c
984
dir->child = d;
sbin/fsck_msdosfs/dir.c
992
n->dir = d;
sbin/growfs/growfs.c
1009
d--;
sbin/growfs/growfs.c
1012
d);
sbin/growfs/growfs.c
1013
if((d+1)%sblock.fs_frag) {
sbin/growfs/growfs.c
1019
frag_adjust(d%sblock.fs_fpg, -1);
sbin/growfs/growfs.c
1020
for(; (d+1)%sblock.fs_frag; d--) {
sbin/growfs/growfs.c
1022
d);
sbin/growfs/growfs.c
1023
setbit(cg_blksfree(&acg), d%sblock.fs_fpg);
sbin/growfs/growfs.c
1031
d++;
sbin/growfs/growfs.c
1032
frag_adjust(d%sblock.fs_fpg, 1);
sbin/growfs/growfs.c
1035
(d%sblock.fs_fpg)/sblock.fs_frag)) {
sbin/growfs/growfs.c
1037
d);
sbin/growfs/growfs.c
1043
d%sblock.fs_fpg)]++;
sbin/growfs/growfs.c
1045
d%sblock.fs_fpg))[cbtorpos(&sblock,
sbin/growfs/growfs.c
1046
d%sblock.fs_fpg)]++;
sbin/growfs/growfs.c
1049
(d%sblock.fs_fpg)/sblock.fs_frag);
sbin/growfs/growfs.c
1064
d--;
sbin/growfs/growfs.c
1068
d);
sbin/growfs/growfs.c
1069
for(d=rounddown(d, sblock.fs_frag); d >= osblock.fs_csaddr;
sbin/growfs/growfs.c
1070
d-=sblock.fs_frag) {
sbin/growfs/growfs.c
1073
d);
sbin/growfs/growfs.c
1075
(d%sblock.fs_fpg)/sblock.fs_frag);
sbin/growfs/growfs.c
1078
cg_blktot(&acg)[cbtocylno(&sblock, d%sblock.fs_fpg)]++;
sbin/growfs/growfs.c
1080
d%sblock.fs_fpg))[cbtorpos(&sblock,
sbin/growfs/growfs.c
1081
d%sblock.fs_fpg)]++;
sbin/growfs/growfs.c
1084
(d%sblock.fs_fpg)/sblock.fs_frag);
sbin/growfs/growfs.c
1147
for(d=sblock.fs_csaddr; d+sblock.fs_frag <=
sbin/growfs/growfs.c
1149
d+=sblock.fs_frag) {
sbin/growfs/growfs.c
1151
(d%sblock.fs_fpg)/sblock.fs_frag);
sbin/growfs/growfs.c
1154
cg_blktot(&acg)[cbtocylno(&sblock, d%sblock.fs_fpg)]--;
sbin/growfs/growfs.c
1156
d%sblock.fs_fpg))[cbtorpos(&sblock,
sbin/growfs/growfs.c
1157
d%sblock.fs_fpg)]--;
sbin/growfs/growfs.c
1160
(d%sblock.fs_fpg)/sblock.fs_frag);
sbin/growfs/growfs.c
1168
if(d<sblock.fs_csaddr+(sblock.fs_cssize/sblock.fs_fsize)) {
sbin/growfs/growfs.c
1169
for(; d-sblock.fs_csaddr<
sbin/growfs/growfs.c
1171
d++) {
sbin/growfs/growfs.c
1172
clrbit(cg_blksfree(&acg), d%sblock.fs_fpg);
sbin/growfs/growfs.c
1180
cg_blktot(&acg)[cbtocylno(&sblock, d%sblock.fs_fpg)]--;
sbin/growfs/growfs.c
1182
d%sblock.fs_fpg))[cbtorpos(&sblock,
sbin/growfs/growfs.c
1183
d%sblock.fs_fpg)]--;
sbin/growfs/growfs.c
1186
(d%sblock.fs_fpg)/sblock.fs_frag);
sbin/growfs/growfs.c
1189
frag_adjust(d%sblock.fs_fpg, +1);
sbin/growfs/growfs.c
1256
for(d=odupper; ((d<dupper)&&(d%sblock.fs_frag)); d++) {
sbin/growfs/growfs.c
1258
d);
sbin/growfs/growfs.c
1259
if(isclr(cg_blksfree(&acg), d)) {
sbin/growfs/growfs.c
1261
bp[ind].old=d/sblock.fs_frag;
sbin/growfs/growfs.c
1263
if(roundup(d, sblock.fs_frag) >= dupper) {
sbin/growfs/growfs.c
1269
clrbit(cg_blksfree(&acg), d);
sbin/growfs/growfs.c
1286
for(; d+sblock.fs_frag<=dupper; d+=sblock.fs_frag) {
sbin/growfs/growfs.c
1288
d);
sbin/growfs/growfs.c
1289
if(!isblock(&sblock, cg_blksfree(&acg), d/sblock.fs_frag)) {
sbin/growfs/growfs.c
1290
for(f=d; f<d+sblock.fs_frag; f++) {
sbin/growfs/growfs.c
1296
clrblock(&sblock, cg_blksfree(&acg), d/sblock.fs_frag);
sbin/growfs/growfs.c
1297
bp[ind].old=d/sblock.fs_frag;
sbin/growfs/growfs.c
1300
clrblock(&sblock, cg_blksfree(&acg), d/sblock.fs_frag);
sbin/growfs/growfs.c
1303
cg_blktot(&acg)[cbtocylno(&sblock, d)]--;
sbin/growfs/growfs.c
1304
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
sbin/growfs/growfs.c
1305
[cbtorpos(&sblock, d)]--;
sbin/growfs/growfs.c
1307
clrbit(cg_clustersfree(&acg), d/sblock.fs_frag);
sbin/growfs/growfs.c
1308
for(lcs=0, l=(d/sblock.fs_frag)+1;
sbin/growfs/growfs.c
1332
if(d<dupper) {
sbin/growfs/growfs.c
1335
if(isblock(&sblock, cg_blksfree(&acg), d/sblock.fs_frag)) {
sbin/growfs/growfs.c
1340
cg_blktot(&acg)[cbtocylno(&sblock, d)]--;
sbin/growfs/growfs.c
1341
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
sbin/growfs/growfs.c
1342
[cbtorpos(&sblock, d)]--;
sbin/growfs/growfs.c
1344
clrbit(cg_clustersfree(&acg), d/sblock.fs_frag);
sbin/growfs/growfs.c
1345
for(lcs=0, l=(d/sblock.fs_frag)+1;
sbin/growfs/growfs.c
1361
for(; d<dupper; d++) {
sbin/growfs/growfs.c
1363
d);
sbin/growfs/growfs.c
1364
if(isclr(cg_blksfree(&acg), d)) {
sbin/growfs/growfs.c
1365
bp[ind].old=d/sblock.fs_frag;
sbin/growfs/growfs.c
1368
clrbit(cg_blksfree(&acg), d);
sbin/growfs/growfs.c
1593
daddr_t d, blkno;
sbin/growfs/growfs.c
1635
for(d=0; (d<dlower && blkno==-1); d+=sblock.fs_frag) {
sbin/growfs/growfs.c
1636
if(d>=csmin && d<=csmax) {
sbin/growfs/growfs.c
1640
d))) {
sbin/growfs/growfs.c
1641
blkno = fragstoblks(&sblock, d);/* Yeah found a block */
sbin/growfs/growfs.c
1645
for(d=dupper; (d<dmax && blkno==-1); d+=sblock.fs_frag) {
sbin/growfs/growfs.c
1646
if(d>=csmin && d<=csmax) {
sbin/growfs/growfs.c
1650
d))) {
sbin/growfs/growfs.c
1651
blkno = fragstoblks(&sblock, d);/* Yeah found a block */
sbin/growfs/growfs.c
1664
d=blkstofrags(&sblock, blkno);
sbin/growfs/growfs.c
1712
cg_blktot(&acg)[cbtocylno(&sblock, d)]--;
sbin/growfs/growfs.c
1713
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))[cbtorpos(&sblock, d)]--;
sbin/growfs/growfs.c
1716
return (d);
sbin/growfs/growfs.c
348
daddr_t cbase, d, dlower, dupper, dmax, blkno;
sbin/growfs/growfs.c
426
for (d = 0; d < dlower; d += sblock.fs_frag) {
sbin/growfs/growfs.c
427
blkno = d / sblock.fs_frag;
sbin/growfs/growfs.c
433
cg_blktot(&acg)[cbtocylno(&sblock, d)]++;
sbin/growfs/growfs.c
434
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
sbin/growfs/growfs.c
435
[cbtorpos(&sblock, d)]++;
sbin/growfs/growfs.c
441
for (d = dupper + sblock.fs_frag - i; dupper < d; dupper++) {
sbin/growfs/growfs.c
446
for (d = dupper; d + sblock.fs_frag <= dmax - cbase; ) {
sbin/growfs/growfs.c
447
blkno = d / sblock.fs_frag;
sbin/growfs/growfs.c
453
cg_blktot(&acg)[cbtocylno(&sblock, d)]++;
sbin/growfs/growfs.c
454
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
sbin/growfs/growfs.c
455
[cbtorpos(&sblock, d)]++;
sbin/growfs/growfs.c
456
d += sblock.fs_frag;
sbin/growfs/growfs.c
458
if (d < dmax - cbase) {
sbin/growfs/growfs.c
459
acg.cg_frsum[dmax - cbase - d]++;
sbin/growfs/growfs.c
460
for (; d < dmax - cbase; d++) {
sbin/growfs/growfs.c
461
setbit(cg_blksfree(&acg), d);
sbin/growfs/growfs.c
910
daddr_t cbase, dupper, odupper, d, f, g;
sbin/growfs/growfs.c
989
d=osblock.fs_csaddr+(osblock.fs_cssize/osblock.fs_fsize);
sbin/growfs/growfs.c
997
for(block=howmany(d%sblock.fs_fpg, sblock.fs_frag),
sbin/hammer/cmd_stats.c
240
double d;
sbin/hammer/cmd_stats.c
242
d = strtod(arg, NULL);
sbin/hammer/cmd_stats.c
243
if (d < 0.001)
sbin/hammer/cmd_stats.c
244
d = 0.001;
sbin/hammer/cmd_stats.c
245
ts->tv_sec = (int)d;
sbin/hammer/cmd_stats.c
246
ts->tv_nsec = (int)(modf(d, &d) * 1000000000.0);
sbin/hammer2/lz4/hammer2_lz4.c
189
# define LZ4_COPYSTEP(s,d) A64(d) = A64(s); d+=8; s+=8;
sbin/hammer2/lz4/hammer2_lz4.c
190
# define LZ4_COPYPACKET(s,d) LZ4_COPYSTEP(s,d)
sbin/hammer2/lz4/hammer2_lz4.c
191
# define LZ4_SECURECOPY(s,d,e) if (d<e) LZ4_WILDCOPY(s,d,e)
sbin/hammer2/lz4/hammer2_lz4.c
198
# define LZ4_COPYSTEP(s,d) A32(d) = A32(s); d+=4; s+=4;
sbin/hammer2/lz4/hammer2_lz4.c
199
# define LZ4_COPYPACKET(s,d) LZ4_COPYSTEP(s,d); LZ4_COPYSTEP(s,d);
sbin/hammer2/lz4/hammer2_lz4.c
206
# define LZ4_READ_LITTLEENDIAN_16(d,s,p) { U16 v = A16(p);
sbin/hammer2/lz4/hammer2_lz4.c
208
d = (s) - v; }
sbin/hammer2/lz4/hammer2_lz4.c
214
# define LZ4_READ_LITTLEENDIAN_16(d,s,p) { d = (s) - A16(p); }
sbin/hammer2/lz4/hammer2_lz4.c
222
#define LZ4_WILDCOPY(s,d,e) do { LZ4_COPYPACKET(s,d) } while (d<e);
sbin/hammer2/lz4/hammer2_lz4.c
223
#define LZ4_BLINDCOPY(s,d,l) { BYTE* e=(d)+(l); LZ4_WILDCOPY(s,d,e); d=e; }
sbin/ifconfig/ifbridge.c
257
setbridge_add(const char *val, int d __unused, int s,
sbin/ifconfig/ifbridge.c
269
setbridge_delete(const char *val, int d __unused, int s,
sbin/ifconfig/ifbridge.c
281
setbridge_discover(const char *val, int d __unused, int s,
sbin/ifconfig/ifbridge.c
288
unsetbridge_discover(const char *val, int d __unused, int s,
sbin/ifconfig/ifbridge.c
295
setbridge_learn(const char *val, int d __unused, int s,
sbin/ifconfig/ifbridge.c
302
unsetbridge_learn(const char *val, int d __unused, int s,
sbin/ifconfig/ifbridge.c
309
setbridge_span(const char *val, int d __unused, int s,
sbin/ifconfig/ifbridge.c
321
unsetbridge_span(const char *val, int d __unused, int s,
sbin/ifconfig/ifbridge.c
333
setbridge_stp(const char *val, int d __unused, int s,
sbin/ifconfig/ifbridge.c
340
unsetbridge_stp(const char *val, int d __unused, int s,
sbin/ifconfig/ifbridge.c
347
setbridge_flush(const char *val __unused, int d __unused, int s,
sbin/ifconfig/ifbridge.c
359
setbridge_flushall(const char *val __unused, int d __unused, int s,
sbin/ifconfig/ifbridge.c
392
setbridge_deladdr(const char *val, int d __unused, int s,
sbin/ifconfig/ifbridge.c
411
getbridge_addr(const char *val __unused, int d __unused, int s,
sbin/ifconfig/ifbridge.c
418
setbridge_maxaddr(const char *arg, int d __unused, int s,
sbin/ifconfig/ifbridge.c
434
setbridge_hellotime(const char *arg, int d __unused, int s,
sbin/ifconfig/ifbridge.c
450
setbridge_fwddelay(const char *arg, int d __unused, int s,
sbin/ifconfig/ifbridge.c
466
setbridge_maxage(const char *arg, int d __unused, int s,
sbin/ifconfig/ifbridge.c
482
setbridge_priority(const char *arg, int d __unused, int s,
sbin/ifconfig/ifbridge.c
557
setbridge_timeout(const char *arg, int d __unused, int s,
sbin/ifconfig/ifcarp.c
118
setcarp_vhid(const char *val, int d __unused, int s,
sbin/ifconfig/ifcarp.c
145
setcarp_advskew(const char *val, int d __unused, int s,
sbin/ifconfig/ifcarp.c
170
setcarp_advbase(const char *val, int d __unused, int s,
sbin/ifconfig/ifcarp.c
195
getcarp_vhaddr(const char *val __unused, int d __unused, int s,
sbin/ifconfig/ifcarp.c
95
setcarp_passwd(const char *val, int d __unused, int s,
sbin/ifconfig/ifgroup.c
46
setifgroup(const char *group_name, int d __unused, int s,
sbin/ifconfig/ifgroup.c
64
unsetifgroup(const char *group_name, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1007
set80211txpower(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1024
set80211roaming(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1042
set80211wme(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1045
set80211(s, IEEE80211_IOC_WME, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
1049
set80211hidessid(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1052
set80211(s, IEEE80211_IOC_HIDESSID, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
1056
set80211apbridge(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1059
set80211(s, IEEE80211_IOC_APBRIDGE, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
1063
set80211fastframes(const char *val __unused, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1066
set80211(s, IEEE80211_IOC_FF, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
1070
set80211dturbo(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1073
set80211(s, IEEE80211_IOC_TURBOP, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
1077
set80211chanlist(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1128
set80211bssid(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1198
set80211acm(const char *ac, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1205
set80211noacm(const char *ac, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1212
set80211ackpolicy(const char *ac, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1219
set80211noackpolicy(const char *ac, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1258
set80211dtimperiod(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1265
set80211bintval(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1291
set80211addmac(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1298
set80211delmac(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1305
set80211kickmac(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1330
set80211maccmd(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1333
set80211(s, IEEE80211_IOC_MACCMD, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
1357
set80211addmeshrt(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1364
set80211delmeshrt(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1371
set80211meshrtcmd(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1374
set80211(s, IEEE80211_IOC_MESH_RTCMD, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
1378
set80211hwmprootmode(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1395
set80211hwmpmaxhops(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1402
set80211pureg(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1405
set80211(s, IEEE80211_IOC_PUREG, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
1409
set80211bgscan(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1412
set80211(s, IEEE80211_IOC_BGSCAN, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
1416
set80211bgscanidle(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1423
set80211bgscanintvl(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1430
set80211scanvalid(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1569
set80211roamrssi(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1601
set80211roamrate(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1618
set80211mcastrate(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1635
set80211mgtrate(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1652
set80211ucastrate(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1679
set80211maxretry(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1697
set80211fragthreshold(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1706
set80211bmissthreshold(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1715
set80211burst(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1718
set80211(s, IEEE80211_IOC_BURST, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
1722
set80211doth(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1725
set80211(s, IEEE80211_IOC_DOTH, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
1729
set80211dfs(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1732
set80211(s, IEEE80211_IOC_DFS, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
1736
set80211shortgi(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1740
d ? (IEEE80211_HTCAP_SHORTGI20 | IEEE80211_HTCAP_SHORTGI40) : 0,
sbin/ifconfig/ifieee80211.c
1745
set80211ampdu(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1752
if (d < 0) {
sbin/ifconfig/ifieee80211.c
1753
d = -d;
sbin/ifconfig/ifieee80211.c
1754
ampdu &= ~d;
sbin/ifconfig/ifieee80211.c
1756
ampdu |= d;
sbin/ifconfig/ifieee80211.c
1761
set80211ampdulimit(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1790
set80211ampdudensity(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1829
set80211amsdu(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1836
if (d < 0) {
sbin/ifconfig/ifieee80211.c
1837
d = -d;
sbin/ifconfig/ifieee80211.c
1838
amsdu &= ~d;
sbin/ifconfig/ifieee80211.c
1840
amsdu |= d;
sbin/ifconfig/ifieee80211.c
1845
set80211amsdulimit(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1852
set80211puren(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1855
set80211(s, IEEE80211_IOC_PUREN, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
1859
set80211htcompat(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1862
set80211(s, IEEE80211_IOC_HTCOMPAT, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
1866
set80211htconf(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1869
set80211(s, IEEE80211_IOC_HTCONF, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
1870
htconf = d;
sbin/ifconfig/ifieee80211.c
1874
set80211dwds(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1877
set80211(s, IEEE80211_IOC_DWDS, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
1881
set80211inact(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1884
set80211(s, IEEE80211_IOC_INACTIVITY, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
1888
set80211tsn(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1891
set80211(s, IEEE80211_IOC_TSN, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
1895
set80211dotd(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1898
set80211(s, IEEE80211_IOC_DOTD, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
1902
set80211smps(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1905
set80211(s, IEEE80211_IOC_SMPS, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
1909
set80211rifs(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
1912
set80211(s, IEEE80211_IOC_RIFS, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
1916
set80211tdmaslot(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1923
set80211tdmaslotcnt(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1930
set80211tdmaslotlen(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1937
set80211tdmabintval(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1944
set80211meshttl(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1951
set80211meshforward(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1958
set80211meshpeering(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1965
set80211meshmetric(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
1975
set80211meshpath(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
2335
set80211regdomain(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
2364
set80211country(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
2389
set80211location(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
2393
regdomain.location = d;
sbin/ifconfig/ifieee80211.c
2398
set80211ecm(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
2402
regdomain.ecm = d;
sbin/ifconfig/ifieee80211.c
3551
set80211scan(const char *val __unused, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
4293
set80211list(const char *arg, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
5310
set80211clone_wlandev(const char *arg, int d __unused, int s __unused,
sbin/ifconfig/ifieee80211.c
5317
set80211clone_wlanbssid(const char *arg, int d __unused, int s __unused,
sbin/ifconfig/ifieee80211.c
5329
set80211clone_wlanaddr(const char *arg, int d __unused, int s __unused,
sbin/ifconfig/ifieee80211.c
5342
set80211clone_wlanmode(const char *arg, int d __unused, int s __unused,
sbin/ifconfig/ifieee80211.c
5367
set80211clone_beacons(const char *val __unused, int d, int s __unused,
sbin/ifconfig/ifieee80211.c
5371
if (d)
sbin/ifconfig/ifieee80211.c
5378
set80211clone_bssid(const char *val __unused, int d, int s __unused,
sbin/ifconfig/ifieee80211.c
5381
if (d)
sbin/ifconfig/ifieee80211.c
5388
set80211clone_wdslegacy(const char *val __unused, int d, int s __unused,
sbin/ifconfig/ifieee80211.c
5391
if (d)
sbin/ifconfig/ifieee80211.c
573
set80211ssid(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
596
set80211meshid(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
611
set80211stationname(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
773
set80211channel(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
783
set80211chanswitch(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
795
set80211authmode(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
818
set80211powersavemode(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
841
set80211powersave(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
845
(d == 0 ? IEEE80211_POWERSAVE_OFF : IEEE80211_POWERSAVE_ON),
sbin/ifconfig/ifieee80211.c
850
set80211powersavesleep(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
857
set80211wepmode(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
876
set80211wep(const char *val __unused, int d, int s,
sbin/ifconfig/ifieee80211.c
879
set80211(s, IEEE80211_IOC_WEP, d, 0, NULL);
sbin/ifconfig/ifieee80211.c
889
set80211weptxkey(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
898
set80211wepkey(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
923
set80211nwkey(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
962
set80211rtsthreshold(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
971
set80211protmode(const char *val, int d __unused, int s,
sbin/ifconfig/ifieee80211.c
990
set80211htprotmode(const char *val, int d __unused, int s,
sbin/ifconfig/iflagg.c
29
setlaggport(const char *val, int d __unused, int s,
sbin/ifconfig/iflagg.c
52
unsetlaggport(const char *val, int d __unused, int s,
sbin/ifconfig/iflagg.c
66
setlaggproto(const char *val, int d __unused, int s,
sbin/ifconfig/iflagg.c
91
setlagghash(const char *val, int d __unused, int s,
sbin/ifconfig/ifmedia.c
267
setmedia(const char *val, int d __unused, int s,
sbin/ifconfig/ifmedia.c
296
setmediaopt(const char *val, int d __unused, int s,
sbin/ifconfig/ifmedia.c
303
unsetmediaopt(const char *val, int d __unused, int s,
sbin/ifconfig/ifmedia.c
328
setmediamode(const char *val, int d __unused, int s,
sbin/ifconfig/ifvlan.c
106
unsetvlandev(const char *val, int d __unused, int s,
sbin/ifconfig/ifvlan.c
80
setvlantag(const char *val, int d __unused, int s __unused,
sbin/ifconfig/ifvlan.c
98
setvlandev(const char *val, int d __unused, int s __unused,
sbin/ip6fw/ip6fw.c
685
u_char *d;
sbin/ip6fw/ip6fw.c
703
d = reset;
sbin/ip6fw/ip6fw.c
705
d = set;
sbin/ip6fw/ip6fw.c
712
*d |= flags[i].value;
sbin/ip6fw/ip6fw.c
725
u_char *d;
sbin/ip6fw/ip6fw.c
730
d = reset;
sbin/ip6fw/ip6fw.c
732
d = set;
sbin/ip6fw/ip6fw.c
737
if (!strncmp(p,"hopopt",strlen(p))) *d |= IPV6_FW_IP6OPT_HOPOPT;
sbin/ip6fw/ip6fw.c
738
if (!strncmp(p,"route",strlen(p))) *d |= IPV6_FW_IP6OPT_ROUTE;
sbin/ip6fw/ip6fw.c
739
if (!strncmp(p,"frag",strlen(p))) *d |= IPV6_FW_IP6OPT_FRAG;
sbin/ip6fw/ip6fw.c
740
if (!strncmp(p,"esp",strlen(p))) *d |= IPV6_FW_IP6OPT_ESP;
sbin/ip6fw/ip6fw.c
741
if (!strncmp(p,"ah",strlen(p))) *d |= IPV6_FW_IP6OPT_AH;
sbin/ip6fw/ip6fw.c
742
if (!strncmp(p,"nonxt",strlen(p))) *d |= IPV6_FW_IP6OPT_NONXT;
sbin/ip6fw/ip6fw.c
743
if (!strncmp(p,"opts",strlen(p))) *d |= IPV6_FW_IP6OPT_OPTS;
sbin/ipfw/ipfw2.c
1185
printf(" tcpack %u", ntohl(cmd32->d[0]));
sbin/ipfw/ipfw2.c
1189
printf(" tcpseq %u", ntohl(cmd32->d[0]));
sbin/ipfw/ipfw2.c
1194
struct passwd *pwd = getpwuid(cmd32->d[0]);
sbin/ipfw/ipfw2.c
1199
printf(" uid %u", cmd32->d[0]);
sbin/ipfw/ipfw2.c
1205
struct group *grp = getgrgid(cmd32->d[0]);
sbin/ipfw/ipfw2.c
1210
printf(" gid %u", cmd32->d[0]);
sbin/ipfw/ipfw2.c
1265
show_dyn_ipfw(struct ipfw_ioc_state *d, int pcwidth, int bcwidth)
sbin/ipfw/ipfw2.c
1271
if (!d->expire && !(d->dyn_type == O_LIMIT_PARENT))
sbin/ipfw/ipfw2.c
1275
printf("%05u %*ju %*ju (%ds)", d->rulenum, pcwidth, (uintmax_t)d->pcnt,
sbin/ipfw/ipfw2.c
1276
bcwidth, (uintmax_t)d->bcnt, d->expire);
sbin/ipfw/ipfw2.c
1277
switch (d->dyn_type) {
sbin/ipfw/ipfw2.c
1279
printf(" PARENT %d", d->count);
sbin/ipfw/ipfw2.c
1292
if ((pe = getprotobynumber(d->id.u.ip.proto)) != NULL)
sbin/ipfw/ipfw2.c
1295
printf(" proto %u", d->id.u.ip.proto);
sbin/ipfw/ipfw2.c
1297
a.s_addr = htonl(d->id.u.ip.src_ip);
sbin/ipfw/ipfw2.c
1298
printf(" %s %d", inet_ntoa(a), d->id.u.ip.src_port);
sbin/ipfw/ipfw2.c
1300
a.s_addr = htonl(d->id.u.ip.dst_ip);
sbin/ipfw/ipfw2.c
1301
printf(" <-> %s %d", inet_ntoa(a), d->id.u.ip.dst_port);
sbin/ipfw/ipfw2.c
1303
if (d->dyn_type == O_REDIRECT) {
sbin/ipfw/ipfw2.c
1306
xlat_addr.s_addr = htonl(d->xlat_addr);
sbin/ipfw/ipfw2.c
1307
printf(" => %s %d", inet_ntoa(xlat_addr), d->xlat_port);
sbin/ipfw/ipfw2.c
1630
struct ipfw_ioc_state *dynrules, *d;
sbin/ipfw/ipfw2.c
1695
for (n = 0, d = dynrules; n < ndyn; n++, d++) {
sbin/ipfw/ipfw2.c
1696
width = snprintf(NULL, 0, "%ju", (uintmax_t)d->pcnt);
sbin/ipfw/ipfw2.c
1700
width = snprintf(NULL, 0, "%ju", (uintmax_t)d->bcnt);
sbin/ipfw/ipfw2.c
1713
for (n = 0, d = dynrules; n < ndyn; n++, d++)
sbin/ipfw/ipfw2.c
1714
show_dyn_ipfw(d, pcwidth, bcwidth);
sbin/ipfw/ipfw2.c
1753
for (n = 0, d = dynrules; n < ndyn; n++, d++) {
sbin/ipfw/ipfw2.c
1754
if (d->rulenum > rnum)
sbin/ipfw/ipfw2.c
1756
if (d->rulenum == rnum)
sbin/ipfw/ipfw2.c
1757
show_dyn_ipfw(d, pcwidth, bcwidth);
sbin/ipfw/ipfw2.c
1948
u_int32_t *d;
sbin/ipfw/ipfw2.c
1959
d = (u_int32_t *)&cmd->mask;
sbin/ipfw/ipfw2.c
1963
d[ii] = 0; /* clear masks */
sbin/ipfw/ipfw2.c
1980
d[ a/32] |= 1<<(a & 31);
sbin/ipfw/ipfw2.c
2174
double d;
sbin/ipfw/ipfw2.c
2185
d = strtod(av[0], NULL);
sbin/ipfw/ipfw2.c
2186
if (d > 1)
sbin/ipfw/ipfw2.c
2187
d = 1;
sbin/ipfw/ipfw2.c
2188
else if (d < 0)
sbin/ipfw/ipfw2.c
2189
d = 0;
sbin/ipfw/ipfw2.c
2190
pipe.fs.plr = (int)(d*0x7fffffff);
sbin/ipfw/ipfw2.c
3195
cmd32->d[0] = pwd->pw_uid;
sbin/ipfw/ipfw2.c
3213
cmd32->d[0] = grp->gr_gid;
sbin/ipfw/ipfw2.c
3239
cmd32->d[0] = htonl(strtoul(*av, NULL, 0));
sbin/ipfw/ipfw2.c
674
u_int32_t x, *d;
sbin/ipfw/ipfw2.c
685
d = (u_int32_t *)&(cmd->mask);
sbin/ipfw/ipfw2.c
687
if (d[ i/32] & (1<<(i & 31))) {
sbin/ipfw/ipfw2.c
744
cmd->d[idx] = 0;
sbin/ipfw/ipfw2.c
757
cmd->d[idx] |= 1 << (type % 32);
sbin/ipfw/ipfw2.c
779
uint32_t types = cmd->d[idx];
sbin/ipfw/ipfw2.c
895
double d = 1.0 * p->d[0];
sbin/ipfw/ipfw2.c
897
d = (d / 0x7fffffff);
sbin/ipfw/ipfw2.c
898
printf("prob %f ", d);
sbin/ipfw3/ipfw3dummynet.c
174
double d;
sbin/ipfw3/ipfw3dummynet.c
186
d = strtod(av[0], NULL);
sbin/ipfw3/ipfw3dummynet.c
187
if (d > 1)
sbin/ipfw3/ipfw3dummynet.c
188
d = 1;
sbin/ipfw3/ipfw3dummynet.c
189
else if (d < 0)
sbin/ipfw3/ipfw3dummynet.c
190
d = 0;
sbin/ipfw3/ipfw3dummynet.c
191
pipe.fs.plr = (int)(d*0x7fffffff);
sbin/ipfw3/ipfw3state.h
40
void state_show(struct ipfw3_ioc_state *d, int pcwidth, int bcwidth);
sbin/newfs/mkfs.c
1050
daddr_t d, blkno;
sbin/newfs/mkfs.c
1062
for (d = 0; d < acg.cg_ndblk; d += sblock.fs_frag)
sbin/newfs/mkfs.c
1063
if (isblock(&sblock, cg_blksfree(&acg), d / sblock.fs_frag))
sbin/newfs/mkfs.c
1068
blkno = fragstoblks(&sblock, d);
sbin/newfs/mkfs.c
1080
cg_blktot(&acg)[cbtocylno(&sblock, d)]--;
sbin/newfs/mkfs.c
1081
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))[cbtorpos(&sblock, d)]--;
sbin/newfs/mkfs.c
1089
setbit(cg_blksfree(&acg), d + i);
sbin/newfs/mkfs.c
1093
return (d);
sbin/newfs/mkfs.c
1137
daddr_t d;
sbin/newfs/mkfs.c
1159
d = fsbtodb(&sblock, ino_to_fsba(&sblock, ino));
sbin/newfs/mkfs.c
1160
rdfs(d, sblock.fs_bsize, (char *)inobuf);
sbin/newfs/mkfs.c
1162
wtfs(d, sblock.fs_bsize, (char *)inobuf);
sbin/newfs/mkfs.c
767
daddr_t cbase, d, dlower, dupper, dmax, blkno;
sbin/newfs/mkfs.c
847
for (d = 0; d < dlower; d += sblock.fs_frag) {
sbin/newfs/mkfs.c
848
blkno = d / sblock.fs_frag;
sbin/newfs/mkfs.c
853
cg_blktot(&acg)[cbtocylno(&sblock, d)]++;
sbin/newfs/mkfs.c
854
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
sbin/newfs/mkfs.c
855
[cbtorpos(&sblock, d)]++;
sbin/newfs/mkfs.c
862
for (d = dupper + sblock.fs_frag - i; dupper < d; dupper++) {
sbin/newfs/mkfs.c
867
for (d = dupper; d + sblock.fs_frag <= dmax - cbase; ) {
sbin/newfs/mkfs.c
868
blkno = d / sblock.fs_frag;
sbin/newfs/mkfs.c
873
cg_blktot(&acg)[cbtocylno(&sblock, d)]++;
sbin/newfs/mkfs.c
874
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
sbin/newfs/mkfs.c
875
[cbtorpos(&sblock, d)]++;
sbin/newfs/mkfs.c
876
d += sblock.fs_frag;
sbin/newfs/mkfs.c
878
if (d < dmax - cbase) {
sbin/newfs/mkfs.c
879
acg.cg_frsum[dmax - cbase - d]++;
sbin/newfs/mkfs.c
880
for (; d < dmax - cbase; d++) {
sbin/newfs/mkfs.c
881
setbit(cg_blksfree(&acg), d);
sbin/sysctl/sysctl.c
646
dev_t *d = (dev_t *)p;
sbin/sysctl/sysctl.c
647
if (l2 != sizeof(*d))
sbin/sysctl/sysctl.c
648
err(1, "T_dev_T %zu != %zu", l2, sizeof(*d));
sbin/sysctl/sysctl.c
649
if ((int)(*d) != -1) {
sbin/sysctl/sysctl.c
650
if (minor(*d) > 255 || minor(*d) < 0)
sbin/sysctl/sysctl.c
652
major(*d), minor(*d));
sbin/sysctl/sysctl.c
655
major(*d), minor(*d));
sbin/udevd/udevd_monitor.c
451
wildCaseCmp(const char **mary, int d, const char *w, const char *s)
sbin/udevd/udevd_monitor.c
470
for (i = 0; s + i < mary[d]; ++i) {
sbin/udevd/udevd_monitor.c
471
if (s[i] == w[1] && wildCaseCmp(mary, d + 1, w + 1, s + i) == 0)
sbin/udevd/udevd_monitor.c
478
for (i = 0; s + i < mary[d]; ++i) {
sbin/udevd/udevd_monitor.c
479
if (wildCaseCmp(mary, d + 1, w + 1, s + i) == 0)
sbin/udevd/udevd_monitor.c
483
mary[d] = s;
sbin/udevd/udevd_monitor.c
71
static int wildCaseCmp(const char **mary, int d, const char *w, const char *s);
sbin/vinum/commands.c
1525
int d; /* volume number */
sbin/vinum/commands.c
1538
for (d = 0; d < 100000; d++) { /* look for a free drive number */
sbin/vinum/commands.c
1539
sprintf(drivename, "vinumdrive%d", d); /* create the name */
sbin/vinum/vinumparser.c
150
flagkeypair(d),
share/examples/sunrpc/dir/dir_proc.c
18
struct direct *d;
share/examples/sunrpc/dir/dir_proc.c
41
while (d = readdir(dirp)) {
share/examples/sunrpc/dir/dir_proc.c
43
nl->name = malloc(strlen(d->d_name)+1);
share/examples/sunrpc/dir/dir_proc.c
44
strcpy(nl->name, d->d_name);
stand/boot/common/boot2.h
86
extern void memcpy(void *d, const void *s, int len);
stand/boot/common/commands.c
131
char *topic, *subtopic, *t, *s, *d;
stand/boot/common/commands.c
167
while (help_getnext(hfd, &t, &s, &d)) {
stand/boot/common/commands.c
170
help_emitsummary(t, s, d);
stand/boot/common/commands.c
191
help_emitsummary(t, s, d);
stand/boot/common/commands.c
196
free(d);
stand/boot/common/dev_net.c
212
struct iodesc *d;
stand/boot/common/dev_net.c
289
d = socktodesc(sock);
stand/boot/common/dev_net.c
293
setenv("boot.netif.hwaddr", ether_sprintf(d->myea), 1);
stand/boot/common/fs.h
524
#define dtog(fs, d) ((d) / (fs)->fs_fpg)
stand/boot/common/fs.h
525
#define dtogd(fs, d) ((d) % (fs)->fs_fpg)
stand/boot/common/isapnp.c
42
static void isapnp_write(int d, int r);
stand/boot/common/isapnp.c
60
isapnp_write(int d, int r)
stand/boot/common/isapnp.c
62
outb (_PNP_ADDRESS, d);
stand/boot/common/isapnp.h
285
int read_pnp_parms(struct pnp_cinfo *d, int ldn);
stand/boot/common/isapnp.h
286
int write_pnp_parms(struct pnp_cinfo *d, int ldn);
stand/boot/common/load_elf.c
42
#define COPYOUT(s,d,l) archsw.arch_copyout((vm_offset_t)(s), d, l)
stand/boot/common/load_elf_obj.c
43
#define COPYOUT(s,d,l) archsw.arch_copyout((vm_offset_t)(s), d, l)
stand/boot/common/ls.c
103
buf = malloc(strlen(path) + strlen(d->d_name) + 2);
stand/boot/common/ls.c
105
sprintf(buf, "%s", d->d_name);
stand/boot/common/ls.c
107
sprintf(buf, "%s/%s", path, d->d_name);
stand/boot/common/ls.c
112
sprintf(lbuf, " %c %8d %s\n", typestr[d->d_type],
stand/boot/common/ls.c
113
(int)sb.st_size, d->d_name);
stand/boot/common/ls.c
115
sprintf(lbuf, " %c %s\n", typestr[d->d_type], d->d_name);
stand/boot/common/ls.c
58
struct dirent *d;
stand/boot/common/ls.c
98
while ((d = readdirfd(fd)) != NULL) {
stand/boot/common/ls.c
99
if (strcmp(d->d_name, ".") && strcmp(d->d_name, "..")) {
stand/boot/common/reloc_elf.c
40
#define COPYOUT(s,d,l) archsw.arch_copyout((vm_offset_t)(s), d, l)
stand/boot/common/ufsread.c
101
struct direct *d;
stand/boot/common/ufsread.c
108
d = (void *)s;
stand/boot/common/ufsread.c
110
printf("%s ", d->d_name);
stand/boot/common/ufsread.c
111
else if (!strcmp(name, d->d_name)) {
stand/boot/common/ufsread.c
112
*ino = d->d_ino;
stand/boot/common/ufsread.c
113
return d->d_type;
stand/boot/common/ufsread.c
115
s += d->d_reclen;
stand/boot/efi/boot1/boot_module.h
40
#define DSTALL(d) BS->Stall(d)
stand/boot/efi/boot1/boot_module.h
43
#define DSTALL(d) {}
stand/boot/pc32/boot2/boot2.c
187
memcpy(void *d, const void *s, int len)
stand/boot/pc32/boot2/boot2.c
189
char *dd = d;
stand/boot/pc32/boot2/boot2.c
523
struct disklabel64 *d;
stand/boot/pc32/boot2/boot2.c
525
struct disklabel32 *d;
stand/boot/pc32/boot2/boot2.c
569
d = (void *)sec;
stand/boot/pc32/boot2/boot2.c
570
if (d->d_magic != DISKMAGIC64) {
stand/boot/pc32/boot2/boot2.c
574
if (dsk.part >= d->d_npartitions || d->d_partitions[dsk.part].p_bsize == 0) {
stand/boot/pc32/boot2/boot2.c
578
dsk.start += d->d_partitions[dsk.part].p_boffset / 512;
stand/boot/pc32/boot2/boot2.c
583
d = (void *)(sec + LABELOFFSET32);
stand/boot/pc32/boot2/boot2.c
584
if (d->d_magic != DISKMAGIC32 || d->d_magic2 != DISKMAGIC32) {
stand/boot/pc32/boot2/boot2.c
591
if (d->d_type == DTYPE_SCSI)
stand/boot/pc32/boot2/boot2.c
595
if (dsk.part >= d->d_npartitions ||
stand/boot/pc32/boot2/boot2.c
596
!d->d_partitions[dsk.part].p_size) {
stand/boot/pc32/boot2/boot2.c
600
dsk.start += d->d_partitions[dsk.part].p_offset;
stand/boot/pc32/boot2/boot2.c
601
dsk.start -= d->d_partitions[RAW_PART].p_offset;
stand/boot/pc32/libi386/pxe.h
498
uint8_t d[BOOTP_DHCPVEND]; /* raw array of vendor/dhcp options */
stand/lib/arp.c
113
MACPY(d->myea, ah->arp_sha);
stand/lib/arp.c
114
bcopy(&d->myip, ah->arp_spa, sizeof(ah->arp_spa));
stand/lib/arp.c
121
i = sendrecv(d,
stand/lib/arp.c
146
arpsend(struct iodesc *d, void *pkt, size_t len)
stand/lib/arp.c
154
return (sendether(d, pkt, len, bcea, ETHERTYPE_ARP));
stand/lib/arp.c
162
arprecv(struct iodesc *d, void *pkt, size_t len, time_t tleft)
stand/lib/arp.c
173
n = readether(d, pkt, len, tleft, &etype);
stand/lib/arp.c
211
arp_reply(d, ah);
stand/lib/arp.c
251
arp_reply(struct iodesc *d, void *pkt)
stand/lib/arp.c
276
if (bcmp(arp->arp_tpa, &d->myip, sizeof(arp->arp_tpa)))
stand/lib/arp.c
290
bcopy(d->myea, arp->arp_sha, sizeof(arp->arp_sha));
stand/lib/arp.c
291
bcopy(&d->myip, arp->arp_spa, sizeof(arp->arp_spa));
stand/lib/arp.c
297
(void) sendether(d, pkt, sizeof(*arp) + 18,
stand/lib/arp.c
70
arpwhohas(struct iodesc *d, struct in_addr addr)
stand/lib/bootp.c
101
if (!(d = socktodesc(sock))) {
stand/lib/bootp.c
107
printf("bootp: d=%lx\n", (long)d);
stand/lib/bootp.c
116
bp->bp_xid = htonl(d->xid);
stand/lib/bootp.c
117
MACPY(d->myea, bp->bp_chaddr);
stand/lib/bootp.c
141
d->myip.s_addr = INADDR_ANY;
stand/lib/bootp.c
142
d->myport = htons(IPPORT_BOOTPC);
stand/lib/bootp.c
143
d->destip.s_addr = INADDR_BROADCAST;
stand/lib/bootp.c
144
d->destport = htons(IPPORT_BOOTPS);
stand/lib/bootp.c
151
if(sendrecv(d,
stand/lib/bootp.c
183
if(sendrecv(d,
stand/lib/bootp.c
193
myip = d->myip = rbuf.rbootp.bp_yiaddr;
stand/lib/bootp.c
246
++d->xid;
stand/lib/bootp.c
251
bootpsend(struct iodesc *d, void *pkt, size_t len)
stand/lib/bootp.c
257
printf("bootpsend: d=%lx called.\n", (long)d);
stand/lib/bootp.c
268
return (sendudp(d, pkt, len));
stand/lib/bootp.c
272
bootprecv(struct iodesc *d, void *pkt, size_t len, time_t tleft)
stand/lib/bootp.c
282
n = readudp(d, pkt, len, tleft);
stand/lib/bootp.c
293
if (bp->bp_xid != htonl(d->xid)) {
stand/lib/bootp.c
297
d->xid, ntohl(bp->bp_xid));
stand/lib/bootp.c
83
struct iodesc *d;
stand/lib/bootparam.c
125
struct args d;
stand/lib/bootparam.c
129
struct repl d;
stand/lib/bootparam.c
132
struct iodesc *d;
stand/lib/bootparam.c
137
if (!(d = socktodesc(sockfd))) {
stand/lib/bootparam.c
141
args = &sdata.d;
stand/lib/bootparam.c
142
repl = &rdata.d;
stand/lib/bootparam.c
160
d->myport = htons(rpc_newport());
stand/lib/bootparam.c
161
d->destip.s_addr = INADDR_BROADCAST; /* XXX: subnet bcast? */
stand/lib/bootparam.c
164
len = rpc_call(d, PMAPPROG, PMAPVERS, PMAPPROC_CALLIT,
stand/lib/bootparam.c
238
n_long d[64];
stand/lib/bootparam.c
242
n_long d[128];
stand/lib/bootparam.c
247
struct iodesc *d;
stand/lib/bootparam.c
250
if (!(d = socktodesc(sockfd))) {
stand/lib/bootparam.c
255
send_tail = (char*) sdata.d;
stand/lib/bootparam.c
256
recv_head = (char*) rdata.d;
stand/lib/bootparam.c
275
d->myport = htons(rpc_newport());
stand/lib/bootparam.c
276
d->destip = bp_server_addr;
stand/lib/bootparam.c
279
rlen = rpc_call(d,
stand/lib/bootparam.c
281
sdata.d, send_tail - (char*)sdata.d,
stand/lib/bootparam.c
282
rdata.d, sizeof(rdata.d));
stand/lib/bootparam.c
288
recv_head = (char*) rdata.d;
stand/lib/cd9660.c
496
cd9660_readdir(struct open_file *f, struct dirent *d)
stand/lib/cd9660.c
543
d->d_ino = isonum_733(ep->extent);
stand/lib/cd9660.c
545
d->d_type = DT_DIR;
stand/lib/cd9660.c
547
d->d_type = DT_REG;
stand/lib/cd9660.c
548
d->d_namlen = namelen;
stand/lib/cd9660.c
550
bcopy(name, d->d_name, d->d_namlen);
stand/lib/cd9660.c
551
d->d_name[d->d_namlen] = 0;
stand/lib/cd9660.c
71
static int cd9660_readdir(struct open_file *f, struct dirent *d);
stand/lib/dosfs.c
369
dos_readdir(struct open_file *fd, struct dirent *d)
stand/lib/dosfs.c
438
d->d_fileno = (dd.de.clus[1] << 8) + dd.de.clus[0];
stand/lib/dosfs.c
439
d->d_type = (dd.de.attr & FA_DIR) ? DT_DIR : DT_REG;
stand/lib/dosfs.c
440
memcpy(d->d_name, fn, sizeof(d->d_name));
stand/lib/dosfs.c
50
static int dos_readdir(struct open_file *fd, struct dirent *d);
stand/lib/ether.c
100
n = netif_get(d, eh, len, tleft);
stand/lib/ether.c
105
if (bcmp(d->myea, eh->ether_dhost, ETHER_ADDR_LEN) != 0 &&
stand/lib/ether.c
55
sendether(struct iodesc *d, void *pkt, size_t len, u_char *dea, int etype)
stand/lib/ether.c
68
MACPY(d->myea, eh->ether_shost); /* by byte */
stand/lib/ether.c
72
n = netif_put(d, eh, len);
stand/lib/ether.c
86
readether(struct iodesc *d, void *pkt, size_t len, time_t tleft,
stand/lib/ext2fs.c
874
ext2fs_readdir(struct open_file *f, struct dirent *d)
stand/lib/ext2fs.c
895
d->d_type = EXTFTODT(ed->d_type);
stand/lib/ext2fs.c
896
strncpy(d->d_name, ed->d_name, ed->d_namlen);
stand/lib/ext2fs.c
897
d->d_name[ed->d_namlen] = '\0';
stand/lib/ext2fs.c
97
static int ext2fs_readdir(struct open_file *f, struct dirent *d);
stand/lib/hammer1.c
1033
hammer_readdir(struct open_file *f, struct dirent *d)
stand/lib/hammer1.c
1038
int rv = hreaddir(&hf->hfs, hf->ino, &off, d);
stand/lib/net.c
114
cc = (*rproc)(d, rbuf, rsize, tleft);
stand/lib/net.c
70
sendrecv(struct iodesc *d, ssize_t (*sproc)(struct iodesc *, void *, size_t),
stand/lib/net.c
93
cc = (*sproc)(d, sbuf, ssize);
stand/lib/net.h
100
ssize_t sendether(struct iodesc *d, void *pkt, size_t len,
stand/lib/net.h
102
ssize_t readether(struct iodesc *d, void *pkt, size_t len,
stand/lib/net.h
54
#define MACPY(s, d) bcopy((char *)s, (char *)d, 6)
stand/lib/netif.c
100
for (d = 0; netif_drivers[d] != NULL; d++) {
stand/lib/netif.c
101
cur_if.nif_driver = netif_drivers[d];
stand/lib/netif.c
61
int d, i;
stand/lib/netif.c
67
for (d = 0; netif_drivers[d]; d++) {
stand/lib/netif.c
68
drv = netif_drivers[d];
stand/lib/netif.c
90
int d, u, s;
stand/lib/nfs.c
135
static int nfs_readdir(struct open_file *f, struct dirent *d);
stand/lib/nfs.c
157
nfs_getrootfh(struct iodesc *d, char *path, u_char *fhp)
stand/lib/nfs.c
170
struct args d;
stand/lib/nfs.c
174
struct repl d;
stand/lib/nfs.c
183
args = &sdata.d;
stand/lib/nfs.c
184
repl = &rdata.d;
stand/lib/nfs.c
194
cc = rpc_call(d, RPCPROG_MNT, RPCMNT_VER1, RPCMNT_MOUNT,
stand/lib/nfs.c
224
nfs_lookupfh(struct nfs_iodesc *d, const char *name, struct nfs_iodesc *newfd)
stand/lib/nfs.c
239
struct args d;
stand/lib/nfs.c
243
struct repl d;
stand/lib/nfs.c
252
args = &sdata.d;
stand/lib/nfs.c
253
repl = &rdata.d;
stand/lib/nfs.c
256
bcopy(d->fh, args->fh, sizeof(args->fh));
stand/lib/nfs.c
267
cc = rpc_call(d->iodesc, NFS_PROG, NFS_VER2, NFSPROC_LOOKUP,
stand/lib/nfs.c
287
nfs_readlink(struct nfs_iodesc *d, char *buf)
stand/lib/nfs.c
295
struct nfs_readlnk_repl d;
stand/lib/nfs.c
304
bcopy(d->fh, sdata.fh, NFS_FHSIZE);
stand/lib/nfs.c
305
cc = rpc_call(d->iodesc, NFS_PROG, NFS_VER2, NFSPROC_READLINK,
stand/lib/nfs.c
307
&rdata.d, sizeof(rdata.d));
stand/lib/nfs.c
314
if (rdata.d.errno)
stand/lib/nfs.c
315
return (ntohl(rdata.d.errno));
stand/lib/nfs.c
317
rdata.d.len = ntohl(rdata.d.len);
stand/lib/nfs.c
318
if (rdata.d.len > NFS_MAXPATHLEN)
stand/lib/nfs.c
321
bcopy(rdata.d.path, buf, rdata.d.len);
stand/lib/nfs.c
322
buf[rdata.d.len] = 0;
stand/lib/nfs.c
332
nfs_readdata(struct nfs_iodesc *d, off_t off, void *addr, size_t len)
stand/lib/nfs.c
338
struct nfs_read_args d;
stand/lib/nfs.c
342
struct nfs_read_repl d;
stand/lib/nfs.c
348
args = &sdata.d;
stand/lib/nfs.c
349
repl = &rdata.d;
stand/lib/nfs.c
351
bcopy(d->fh, args->fh, NFS_FHSIZE);
stand/lib/nfs.c
359
cc = rpc_call(d->iodesc, NFS_PROG, NFS_VER2, NFSPROC_READ,
stand/lib/nfs.c
650
struct nfs_iodesc *d = (struct nfs_iodesc *)f->f_fsdata;
stand/lib/nfs.c
651
n_long size = ntohl(d->fa.fa_size);
stand/lib/nfs.c
655
d->off = offset;
stand/lib/nfs.c
658
d->off += offset;
stand/lib/nfs.c
661
d->off = size - offset;
stand/lib/nfs.c
667
return (d->off);
stand/lib/nfs.c
694
nfs_readdir(struct open_file *f, struct dirent *d)
stand/lib/nfs.c
707
struct nfs_readdir_args d;
stand/lib/nfs.c
711
u_char d[NFS_READDIRSIZE];
stand/lib/nfs.c
716
args = &sdata.d;
stand/lib/nfs.c
725
rdata.d, sizeof(rdata.d));
stand/lib/nfs.c
726
buf = rdata.d;
stand/lib/nfs.c
744
d->d_namlen = ntohl(rd->len);
stand/lib/nfs.c
745
bcopy(rd->name, d->d_name, d->d_namlen);
stand/lib/nfs.c
746
d->d_name[d->d_namlen] = '\0';
stand/lib/nullfs.c
112
null_readdir(struct open_file *f, struct dirent *d)
stand/lib/printf.c
179
#define PCHAR(c) {int cc=(c); if (func) (*func)(cc, arg); else *d++ = cc; retval++; }
stand/lib/printf.c
181
char *d;
stand/lib/printf.c
193
d = (char *) arg;
stand/lib/printf.c
195
d = NULL;
stand/lib/qdivrem.c
186
d = 0;
stand/lib/qdivrem.c
188
d++;
stand/lib/qdivrem.c
189
if (d > 0) {
stand/lib/qdivrem.c
190
shl(&u[0], m + n, d); /* u <<= d */
stand/lib/qdivrem.c
191
shl(&v[1], n - 1, d); /* v <<= d */
stand/lib/qdivrem.c
265
if (d) {
stand/lib/qdivrem.c
267
u[i] = (u[i] >> d) |
stand/lib/qdivrem.c
268
LHALF(u[i - 1] << (HALF_BITS - d));
stand/lib/qdivrem.c
92
int m, n, d, j, i;
stand/lib/rarp.c
100
bcopy(d->myea, ap->arp_tha, 6);
stand/lib/rarp.c
102
if (sendrecv(d,
stand/lib/rarp.c
125
d->myip = myip;
stand/lib/rarp.c
133
rarpsend(struct iodesc *d, void *pkt, size_t len)
stand/lib/rarp.c
141
return (sendether(d, pkt, len, bcea, ETHERTYPE_REVARP));
stand/lib/rarp.c
149
rarprecv(struct iodesc *d, void *pkt, size_t len, time_t tleft)
stand/lib/rarp.c
160
n = readether(d, pkt, len, tleft, &etype);
stand/lib/rarp.c
200
if (bcmp(ap->arp_tha, d->myea, 6)) {
stand/lib/rarp.c
62
struct iodesc *d;
stand/lib/rarp.c
83
if (!(d = socktodesc(sock))) {
stand/lib/rarp.c
89
printf("rarp: d=%x\n", (u_int)d);
stand/lib/rarp.c
99
bcopy(d->myea, ap->arp_sha, 6);
stand/lib/rpc.c
117
rpc_call(struct iodesc *d, n_long prog, n_long vers, n_long proc, void *sdata,
stand/lib/rpc.c
135
port = rpc_getport(d, prog, vers);
stand/lib/rpc.c
139
d->destport = htons(port);
stand/lib/rpc.c
186
cc = sendrecv(d,
stand/lib/rpc.c
236
recvrpc(struct iodesc *d, void *pkt, size_t len, time_t tleft)
stand/lib/rpc.c
248
n = readudp(d, pkt, len, tleft);
stand/lib/rpc.c
385
rpc_getport(struct iodesc *d, n_long prog, n_long vers)
stand/lib/rpc.c
398
struct args d;
stand/lib/rpc.c
402
struct res d;
stand/lib/rpc.c
418
port = rpc_pmap_getcache(d->destip, prog, vers);
stand/lib/rpc.c
422
args = &sdata.d;
stand/lib/rpc.c
427
res = &rdata.d;
stand/lib/rpc.c
429
cc = rpc_call(d, PMAPPROG, PMAPVERS, PMAPPROC_GETPORT,
stand/lib/rpc.c
438
rpc_pmap_putcache(d->destip, prog, vers, port);
stand/lib/tftp.c
113
recvtftp(struct iodesc *d, void *pkt, size_t max_len, time_t tleft)
stand/lib/tftp.c
129
if (d->xid == 1) {
stand/lib/tftp.c
131
while ((tmp_len = readudp(d, pkt, max_len, tleft)) > 0) {
stand/lib/tftp.c
138
len = readudp(d, pkt, max_len, tleft);
stand/lib/tftp.c
149
if (htons(t->th_block) != (uint16_t)d->xid) {
stand/lib/tftp.c
155
if (d->xid == 1) {
stand/lib/tftp.c
166
d->destport = uh->uh_sport;
stand/lib/tftp.c
167
d->destip = ip->ip_src;
stand/lib/udp.c
115
ea = arpwhohas(d, ip->ip_dst);
stand/lib/udp.c
117
ea = arpwhohas(d, gateip);
stand/lib/udp.c
119
cc = sendether(d, ip, len, ea, ETHERTYPE_IP);
stand/lib/udp.c
132
readudp(struct iodesc *d, void *pkt, size_t len, time_t tleft)
stand/lib/udp.c
148
n = readether(d, ip, len + sizeof(*ip) + sizeof(*uh), tleft, &etype);
stand/lib/udp.c
159
arp_reply(d, ah);
stand/lib/udp.c
199
if (d->myip.s_addr && ip->ip_dst.s_addr != d->myip.s_addr) {
stand/lib/udp.c
202
printf("readudp: bad saddr %s != ", inet_ntoa(d->myip));
stand/lib/udp.c
215
if (uh->uh_dport != d->myport) {
stand/lib/udp.c
219
d->myport, ntohs(uh->uh_dport));
stand/lib/udp.c
60
sendudp(struct iodesc *d, void *pkt, size_t len)
stand/lib/udp.c
69
printf("sendudp: d=%lx called.\n", (long)d);
stand/lib/udp.c
70
if (d) {
stand/lib/udp.c
72
inet_ntoa(d->myip), ntohs(d->myport));
stand/lib/udp.c
74
inet_ntoa(d->destip), ntohs(d->destport));
stand/lib/udp.c
90
ip->ip_src = d->myip;
stand/lib/udp.c
91
ip->ip_dst = d->destip;
stand/lib/udp.c
94
uh->uh_sport = d->myport;
stand/lib/udp.c
95
uh->uh_dport = d->destport;
stand/lib/ufs.c
692
ufs_readdir(struct open_file *f, struct dirent *d)
stand/lib/ufs.c
713
d->d_type = dp->d_type;
stand/lib/ufs.c
714
strcpy(d->d_name, dp->d_name);
stand/lib/ufs.c
81
static int ufs_readdir(struct open_file *f, struct dirent *d);
sys/bus/firewire/firewire.h
127
#define COMMON_HDR(a,b,c,d) u_int32_t a:16,b:8,c:4,d:4
sys/bus/firewire/firewire.h
128
#define COMMON_RES(a,b,c,d) u_int32_t a:16,b:4,c:4,d:8
sys/bus/firewire/firewire.h
130
#define COMMON_HDR(a,b,c,d) u_int32_t d:4,c:4,b:8,a:16
sys/bus/firewire/firewire.h
131
#define COMMON_RES(a,b,c,d) u_int32_t d:8,c:4,b:4,a:16
sys/bus/firewire/fwdev.c
190
struct fw_drv1 *d;
sys/bus/firewire/fwdev.c
201
d = (struct fw_drv1 *)dev->si_drv1;
sys/bus/firewire/fwdev.c
203
if (d->ir != NULL) {
sys/bus/firewire/fwdev.c
204
struct fw_xferq *ir = d->ir;
sys/bus/firewire/fwdev.c
232
d->ir = NULL;
sys/bus/firewire/fwdev.c
235
if (d->it != NULL) {
sys/bus/firewire/fwdev.c
236
struct fw_xferq *it = d->it;
sys/bus/firewire/fwdev.c
248
d->it = NULL;
sys/bus/firewire/fwdev.c
416
struct fw_drv1 *d;
sys/bus/firewire/fwdev.c
442
d = (struct fw_drv1 *)dev->si_drv1;
sys/bus/firewire/fwdev.c
443
ir = d->ir;
sys/bus/firewire/fwdev.c
444
it = d->it;
sys/bus/firewire/fwdev.c
458
err = fwdev_allocbuf(fc, it, &d->bufreq.tx);
sys/bus/firewire/fwdev.c
466
d->it = it;
sys/bus/firewire/fwdev.c
486
err = fwdev_allocbuf(fc, ir, &d->bufreq.rx);
sys/bus/firewire/fwdev.c
494
d->ir = ir;
sys/bus/firewire/fwdev.c
498
if (d->ir != NULL) {
sys/bus/firewire/fwdev.c
505
bcopy(ibufreq, &d->bufreq, sizeof(d->bufreq));
sys/bus/iicbus/iic.c
291
struct iic_rdwr_data *d = (struct iic_rdwr_data *)data;
sys/bus/iicbus/iic.c
351
buf = kmalloc(sizeof(*d->msgs) * d->nmsgs, M_TEMP, M_WAITOK);
sys/bus/iicbus/iic.c
352
usrbufs = kmalloc(sizeof(void *) * d->nmsgs, M_TEMP, M_ZERO | M_WAITOK);
sys/bus/iicbus/iic.c
353
error = copyin(d->msgs, buf, sizeof(*d->msgs) * d->nmsgs);
sys/bus/iicbus/iic.c
357
for (i = 0; i < d->nmsgs; i++) {
sys/bus/iicbus/iic.c
364
error = iicbus_transfer(parent, (struct iic_msg *)buf, d->nmsgs);
sys/bus/iicbus/iic.c
366
for (i = 0; i < d->nmsgs; i++) {
sys/bus/iicbus/iicbus.h
33
#define IICBUS_IVAR(d) (struct iicbus_ivar *) device_get_ivars(d)
sys/bus/iicbus/iicbus.h
34
#define IICBUS_SOFTC(d) (struct iicbus_softc *) device_get_softc(d)
sys/bus/isa/pnp.c
127
pnp_write(int d, u_char r)
sys/bus/isa/pnp.c
129
outb (_PNP_ADDRESS, d);
sys/bus/isa/pnp.c
136
pnp_read(int d)
sys/bus/isa/pnp.c
138
outb (_PNP_ADDRESS, d);
sys/bus/isa/pnpvar.h
36
void pnp_write(int d, u_char r); /* used by Luigi's sound driver */
sys/bus/isa/pnpvar.h
37
u_char pnp_read(int d); /* currently unused, but who knows... */
sys/bus/pccard/pccardvar.h
365
#define PCCARD_SOFTC(d) (struct pccard_softc *) device_get_softc(d)
sys/bus/pccard/pccardvar.h
366
#define PCCARD_IVAR(d) (struct pccard_ivar *) device_get_ivars(d)
sys/bus/pci/pci.c
531
pci_read_device(device_t pcib, int d, int b, int s, int f, size_t size)
sys/bus/pci/pci.c
547
cfg->domain = d;
sys/bus/pci/pci_private.h
88
struct pci_devinfo *pci_read_device(device_t pcib, int d, int b, int s, int f,
sys/bus/u4b/audio/uaudio.c
3293
const struct usb_audio_selector_unit *d = iot[id].u.su_v1;
sys/bus/u4b/audio/uaudio.c
3297
d->bUnitId, d->bNrInPins);
sys/bus/u4b/audio/uaudio.c
3299
if (d->bNrInPins == 0)
sys/bus/u4b/audio/uaudio.c
3304
MIX(sc).wIndex = MAKE_WORD(d->bUnitId, sc->sc_mixer_iface_no);
sys/bus/u4b/audio/uaudio.c
3311
MIX(sc).maxval = d->bNrInPins;
sys/bus/u4b/audio/uaudio.c
3314
i = d->baSourceId[d->bNrInPins];
sys/bus/u4b/audio/uaudio.c
3331
&iot[d->baSourceId[i]], &MIX(sc));
sys/bus/u4b/audio/uaudio.c
3343
const struct usb_audio20_selector_unit *d = iot[id].u.su_v2;
sys/bus/u4b/audio/uaudio.c
3347
d->bUnitId, d->bNrInPins);
sys/bus/u4b/audio/uaudio.c
3349
if (d->bNrInPins == 0)
sys/bus/u4b/audio/uaudio.c
3354
MIX(sc).wIndex = MAKE_WORD(d->bUnitId, sc->sc_mixer_iface_no);
sys/bus/u4b/audio/uaudio.c
3361
MIX(sc).maxval = d->bNrInPins;
sys/bus/u4b/audio/uaudio.c
3364
i = d->baSourceId[d->bNrInPins];
sys/bus/u4b/audio/uaudio.c
3380
&iot[d->baSourceId[i]], &MIX(sc));
sys/bus/u4b/audio/uaudio.c
3389
uaudio_mixer_feature_get_bmaControls(const struct usb_audio_feature_unit *d,
sys/bus/u4b/audio/uaudio.c
3393
uint32_t offset = (i * d->bControlSize);
sys/bus/u4b/audio/uaudio.c
3395
if (d->bControlSize > 0) {
sys/bus/u4b/audio/uaudio.c
3396
temp |= d->bmaControls[offset];
sys/bus/u4b/audio/uaudio.c
3397
if (d->bControlSize > 1) {
sys/bus/u4b/audio/uaudio.c
3398
temp |= d->bmaControls[offset + 1] << 8;
sys/bus/u4b/audio/uaudio.c
3399
if (d->bControlSize > 2) {
sys/bus/u4b/audio/uaudio.c
3400
temp |= d->bmaControls[offset + 2] << 16;
sys/bus/u4b/audio/uaudio.c
3401
if (d->bControlSize > 3) {
sys/bus/u4b/audio/uaudio.c
3402
temp |= d->bmaControls[offset + 3] << 24;
sys/bus/u4b/audio/uaudio.c
3414
const struct usb_audio_feature_unit *d = iot[id].u.fu_v1;
sys/bus/u4b/audio/uaudio.c
3424
if (d->bControlSize == 0)
sys/bus/u4b/audio/uaudio.c
3429
nchan = (d->bLength - 7) / d->bControlSize;
sys/bus/u4b/audio/uaudio.c
3430
mmask = uaudio_mixer_feature_get_bmaControls(d, 0);
sys/bus/u4b/audio/uaudio.c
3440
chan, uaudio_mixer_feature_get_bmaControls(d, chan));
sys/bus/u4b/audio/uaudio.c
3442
cmask |= uaudio_mixer_feature_get_bmaControls(d, chan);
sys/bus/u4b/audio/uaudio.c
3448
MIX(sc).wIndex = MAKE_WORD(d->bUnitId, sc->sc_mixer_iface_no);
sys/bus/u4b/audio/uaudio.c
3450
i = d->bmaControls[d->bControlSize];
sys/bus/u4b/audio/uaudio.c
3470
if (uaudio_mixer_feature_get_bmaControls(d, i) & fumask)
sys/bus/u4b/audio/uaudio.c
3553
const struct usb_audio20_feature_unit *d = iot[id].u.fu_v2;
sys/bus/u4b/audio/uaudio.c
3563
if (UGETDW(d->bmaControls[0]) == 0)
sys/bus/u4b/audio/uaudio.c
3568
nchan = (d->bLength - 6) / 4;
sys/bus/u4b/audio/uaudio.c
3569
mmask = UGETDW(d->bmaControls[0]);
sys/bus/u4b/audio/uaudio.c
3578
cmask |= UGETDW(d->bmaControls[chan]);
sys/bus/u4b/audio/uaudio.c
3583
MIX(sc).wIndex = MAKE_WORD(d->bUnitId, sc->sc_mixer_iface_no);
sys/bus/u4b/audio/uaudio.c
3585
i = d->bmaControls[nchan][0];
sys/bus/u4b/audio/uaudio.c
3673
if ((UGETDW(d->bmaControls[i]) & ctl) == ctl)
sys/bus/u4b/serial/uftdi.c
764
uint32_t d;
sys/bus/u4b/serial/uftdi.c
782
d = (FTDI_8U232AM_FREQ << 4) / speed;
sys/bus/u4b/serial/uftdi.c
783
d = (d & ~15) + roundoff[d & 15];
sys/bus/u4b/serial/uftdi.c
785
if (d < FTDI_8U232AM_MIN_DIV)
sys/bus/u4b/serial/uftdi.c
786
d = FTDI_8U232AM_MIN_DIV;
sys/bus/u4b/serial/uftdi.c
787
else if (d > FTDI_8U232AM_MAX_DIV)
sys/bus/u4b/serial/uftdi.c
788
d = FTDI_8U232AM_MAX_DIV;
sys/bus/u4b/serial/uftdi.c
795
freq = (speed * d);
sys/bus/u4b/serial/uftdi.c
805
result = (d >> 4);
sys/bus/u4b/serial/uftdi.c
806
if (d & 8)
sys/bus/u4b/serial/uftdi.c
808
else if (d & 4)
sys/bus/u4b/serial/uftdi.c
810
else if (d & 2)
sys/bus/u4b/serial/usb_serial.c
1092
int d;
sys/bus/u4b/serial/usb_serial.c
1205
d = *(int *)ap->a_data;
sys/bus/u4b/serial/usb_serial.c
1206
DPRINTF("ucomioctl: TIOCMSET, 0x%x\n", d);
sys/bus/u4b/serial/usb_serial.c
1207
ucom_modem(tp, ucom_fromtio(d), 0);
sys/bus/u4b/serial/usb_serial.c
1210
d = ucom_modem(tp, 0, 0);
sys/bus/u4b/serial/usb_serial.c
1211
DPRINTF("ucomioctl: TIOCMGET, 0x%x\n", d);
sys/bus/u4b/serial/usb_serial.c
1212
*(int *)ap->a_data = ucom_totio(d);
sys/bus/u4b/serial/usb_serial.c
1216
d = *(int *)ap->a_data;
sys/bus/u4b/serial/usb_serial.c
1217
ucom_modem(tp, ucom_fromtio(d), 0);
sys/bus/u4b/serial/usb_serial.c
1220
d = *(int *)ap->a_data;
sys/bus/u4b/serial/usb_serial.c
1221
ucom_modem(tp, 0, ucom_fromtio(d));
sys/bus/u4b/usb.h
282
#define UD_IS_USB2(d) ((d)->bcdUSB[1] == 0x02)
sys/bus/u4b/usb.h
283
#define UD_IS_USB3(d) ((d)->bcdUSB[1] == 0x03)
sys/bus/u4b/usb.h
520
#define UE_SET_DIR(a,d) ((a) | (((d)&1) << 7))
sys/bus/u4b/usb_hid.c
174
hid_start_parse(const void *d, usb_size_t len, int kindset)
sys/bus/u4b/usb_hid.c
185
s->start = s->p = d;
sys/bus/u4b/usb_hid.c
186
s->end = ((const uint8_t *)d) + len;
sys/bus/u4b/usb_hid.c
560
struct hid_data *d;
sys/bus/u4b/usb_hid.c
571
for (d = hid_start_parse(buf, len, 1 << k); hid_get_item(d, &h);) {
sys/bus/u4b/usb_hid.c
589
hid_end_parse(d);
sys/bus/u4b/usb_hid.c
614
struct hid_data *d;
sys/bus/u4b/usb_hid.c
617
for (d = hid_start_parse(desc, size, 1 << k); hid_get_item(d, &h);) {
sys/bus/u4b/usb_hid.c
627
hid_end_parse(d);
sys/bus/u4b/usb_hid.c
637
hid_end_parse(d);
sys/bus/u4b/usb_process.c
264
usb_size_t d;
sys/bus/u4b/usb_process.c
304
d = (pm1->pm_num - pm0->pm_num);
sys/bus/u4b/usb_process.c
307
if (d & 0x80000000) {
sys/bus/u4b/usb_request.c
1268
struct usb_config_descriptor *d, uint8_t conf_index)
sys/bus/u4b/usb_request.c
1274
err = usbd_req_get_desc(udev, lock, NULL, d, sizeof(*d),
sys/bus/u4b/usb_request.c
1275
sizeof(*d), 0, UDESC_CONFIG, conf_index, 0);
sys/bus/u4b/usb_request.c
1280
if (UGETW(d->wTotalLength) < (uint16_t)sizeof(*d)) {
sys/bus/u4b/usb_request.c
1392
struct usb_device_descriptor *d)
sys/bus/u4b/usb_request.c
1395
return (usbd_req_get_desc(udev, lock, NULL, d, sizeof(*d),
sys/bus/u4b/usb_request.c
1396
sizeof(*d), 0, UDESC_DEVICE, 0, 3));
sys/bus/u4b/usb_request.c
1878
void *d, uint16_t size, uint8_t iface_index)
sys/bus/u4b/usb_request.c
1892
return (usbd_do_request(udev, lock, &req, d));
sys/bus/u4b/usb_request.h
44
struct usb_config_descriptor *d, uint8_t conf_index);
sys/bus/u4b/usb_request.h
53
struct usb_device_descriptor *d);
sys/bus/u4b/usbdi.h
409
#define usb_callout_reset(c,t,f,d) callout_reset(&(c)->co, t, f, d)
sys/bus/u4b/usbdi.h
511
#define usbd_do_request(u,m,r,d) \
sys/bus/u4b/usbdi.h
512
usbd_do_request_flags(u,m,r,d,0,NULL,USB_DEFAULT_TIMEOUT)
sys/bus/u4b/usbdi_util.h
66
struct lock *lock, void *d, uint16_t size,
sys/bus/u4b/usbhid.h
224
struct hid_data *hid_start_parse(const void *d, usb_size_t len, int kindset);
sys/bus/u4b/uvc/uvc_drv.c
615
uint32_t maxd, d;
sys/bus/u4b/uvc/uvc_drv.c
652
d = min(w, rw) * min(h, rh);
sys/bus/u4b/uvc/uvc_drv.c
653
d = w * h + rw * rh - 2 * d;
sys/bus/u4b/uvc/uvc_drv.c
654
if (d < maxd) {
sys/bus/u4b/uvc/uvc_drv.c
655
maxd = d;
sys/cpu/x86_64/include/cpufunc.h
60
#define writeb(va, d) (*(volatile u_int8_t *) (va) = (d))
sys/cpu/x86_64/include/cpufunc.h
61
#define writew(va, d) (*(volatile u_int16_t *) (va) = (d))
sys/cpu/x86_64/include/cpufunc.h
62
#define writel(va, d) (*(volatile u_int32_t *) (va) = (d))
sys/cpu/x86_64/include/cpufunc.h
63
#define writeq(va, d) (*(volatile u_int64_t *) (va) = (d))
sys/cpu/x86_64/include/reg.h
101
#define DBREG_DRX(d,x) ((d)->dr[(x)]) /* reference dr0 - dr15 by
sys/crypto/blake2/blake2s.c
122
#define G(r, i, a, b, c, d) do { \
sys/crypto/blake2/blake2s.c
124
d = ror32(d ^ a, 16); \
sys/crypto/blake2/blake2s.c
125
c += d; \
sys/crypto/blake2/blake2s.c
128
d = ror32(d ^ a, 8); \
sys/crypto/blake2/blake2s.c
129
c += d; \
sys/crypto/blowfish/bf_skey.c
75
unsigned char *d, *end;
sys/crypto/blowfish/bf_skey.c
83
d = data;
sys/crypto/blowfish/bf_skey.c
86
ri = *(d++);
sys/crypto/blowfish/bf_skey.c
87
if (d >= end) d = data;
sys/crypto/blowfish/bf_skey.c
90
ri |= *(d++);
sys/crypto/blowfish/bf_skey.c
91
if (d >= end) d = data;
sys/crypto/blowfish/bf_skey.c
94
ri |= *(d++);
sys/crypto/blowfish/bf_skey.c
95
if (d >= end) d = data;
sys/crypto/blowfish/bf_skey.c
98
ri |= *(d++);
sys/crypto/blowfish/bf_skey.c
99
if (d >= end) d = data;
sys/crypto/chacha20/chacha.c
46
#define QUARTERROUND(a,b,c,d) \
sys/crypto/chacha20/chacha.c
47
a = PLUS(a,b); d = ROTATE(XOR(d,a),16); \
sys/crypto/chacha20/chacha.c
48
c = PLUS(c,d); b = ROTATE(XOR(b,c),12); \
sys/crypto/chacha20/chacha.c
49
a = PLUS(a,b); d = ROTATE(XOR(d,a), 8); \
sys/crypto/chacha20/chacha.c
50
c = PLUS(c,d); b = ROTATE(XOR(b,c), 7);
sys/crypto/des/des_locl.h
126
#define LOAD_DATA_tmp(a,b,c,d,e,f) LOAD_DATA(a,b,c,d,e,f,g)
sys/crypto/des/des_setkey.c
172
DES_LONG c,d,t,s,t2;
sys/crypto/des/des_setkey.c
181
c2l(in,d);
sys/crypto/des/des_setkey.c
186
PERM_OP (d,c,t,4,0x0f0f0f0fL);
sys/crypto/des/des_setkey.c
188
HPERM_OP(d,t,-2,0xcccc0000L);
sys/crypto/des/des_setkey.c
189
PERM_OP (d,c,t,1,0x55555555L);
sys/crypto/des/des_setkey.c
190
PERM_OP (c,d,t,8,0x00ff00ffL);
sys/crypto/des/des_setkey.c
191
PERM_OP (d,c,t,1,0x55555555L);
sys/crypto/des/des_setkey.c
192
d= (((d&0x000000ffL)<<16L)| (d&0x0000ff00L) |
sys/crypto/des/des_setkey.c
193
((d&0x00ff0000L)>>16L)|((c&0xf0000000L)>>4L));
sys/crypto/des/des_setkey.c
199
{ c=((c>>2L)|(c<<26L)); d=((d>>2L)|(d<<26L)); }
sys/crypto/des/des_setkey.c
201
{ c=((c>>1L)|(c<<27L)); d=((d>>1L)|(d<<27L)); }
sys/crypto/des/des_setkey.c
203
d&=0x0fffffffL;
sys/crypto/des/des_setkey.c
211
t= des_skb[4][ (d )&0x3f ]|
sys/crypto/des/des_setkey.c
212
des_skb[5][((d>> 7L)&0x03)|((d>> 8L)&0x3c)]|
sys/crypto/des/des_setkey.c
213
des_skb[6][ (d>>15L)&0x3f ]|
sys/crypto/des/des_setkey.c
214
des_skb[7][((d>>21L)&0x0f)|((d>>22L)&0x30)];
sys/crypto/rmd160/rmd160.c
162
u_int32_t a, b, c, d, e, aa, bb, cc, dd, ee, t, x[16];
sys/crypto/rmd160/rmd160.c
176
d = state[3];
sys/crypto/rmd160/rmd160.c
180
R(a, b, c, d, e, F0, K0, 11, 0);
sys/crypto/rmd160/rmd160.c
181
R(e, a, b, c, d, F0, K0, 14, 1);
sys/crypto/rmd160/rmd160.c
182
R(d, e, a, b, c, F0, K0, 15, 2);
sys/crypto/rmd160/rmd160.c
183
R(c, d, e, a, b, F0, K0, 12, 3);
sys/crypto/rmd160/rmd160.c
184
R(b, c, d, e, a, F0, K0, 5, 4);
sys/crypto/rmd160/rmd160.c
185
R(a, b, c, d, e, F0, K0, 8, 5);
sys/crypto/rmd160/rmd160.c
186
R(e, a, b, c, d, F0, K0, 7, 6);
sys/crypto/rmd160/rmd160.c
187
R(d, e, a, b, c, F0, K0, 9, 7);
sys/crypto/rmd160/rmd160.c
188
R(c, d, e, a, b, F0, K0, 11, 8);
sys/crypto/rmd160/rmd160.c
189
R(b, c, d, e, a, F0, K0, 13, 9);
sys/crypto/rmd160/rmd160.c
190
R(a, b, c, d, e, F0, K0, 14, 10);
sys/crypto/rmd160/rmd160.c
191
R(e, a, b, c, d, F0, K0, 15, 11);
sys/crypto/rmd160/rmd160.c
192
R(d, e, a, b, c, F0, K0, 6, 12);
sys/crypto/rmd160/rmd160.c
193
R(c, d, e, a, b, F0, K0, 7, 13);
sys/crypto/rmd160/rmd160.c
194
R(b, c, d, e, a, F0, K0, 9, 14);
sys/crypto/rmd160/rmd160.c
195
R(a, b, c, d, e, F0, K0, 8, 15); /* #15 */
sys/crypto/rmd160/rmd160.c
197
R(e, a, b, c, d, F1, K1, 7, 7);
sys/crypto/rmd160/rmd160.c
198
R(d, e, a, b, c, F1, K1, 6, 4);
sys/crypto/rmd160/rmd160.c
199
R(c, d, e, a, b, F1, K1, 8, 13);
sys/crypto/rmd160/rmd160.c
200
R(b, c, d, e, a, F1, K1, 13, 1);
sys/crypto/rmd160/rmd160.c
201
R(a, b, c, d, e, F1, K1, 11, 10);
sys/crypto/rmd160/rmd160.c
202
R(e, a, b, c, d, F1, K1, 9, 6);
sys/crypto/rmd160/rmd160.c
203
R(d, e, a, b, c, F1, K1, 7, 15);
sys/crypto/rmd160/rmd160.c
204
R(c, d, e, a, b, F1, K1, 15, 3);
sys/crypto/rmd160/rmd160.c
205
R(b, c, d, e, a, F1, K1, 7, 12);
sys/crypto/rmd160/rmd160.c
206
R(a, b, c, d, e, F1, K1, 12, 0);
sys/crypto/rmd160/rmd160.c
207
R(e, a, b, c, d, F1, K1, 15, 9);
sys/crypto/rmd160/rmd160.c
208
R(d, e, a, b, c, F1, K1, 9, 5);
sys/crypto/rmd160/rmd160.c
209
R(c, d, e, a, b, F1, K1, 11, 2);
sys/crypto/rmd160/rmd160.c
210
R(b, c, d, e, a, F1, K1, 7, 14);
sys/crypto/rmd160/rmd160.c
211
R(a, b, c, d, e, F1, K1, 13, 11);
sys/crypto/rmd160/rmd160.c
212
R(e, a, b, c, d, F1, K1, 12, 8); /* #31 */
sys/crypto/rmd160/rmd160.c
214
R(d, e, a, b, c, F2, K2, 11, 3);
sys/crypto/rmd160/rmd160.c
215
R(c, d, e, a, b, F2, K2, 13, 10);
sys/crypto/rmd160/rmd160.c
216
R(b, c, d, e, a, F2, K2, 6, 14);
sys/crypto/rmd160/rmd160.c
217
R(a, b, c, d, e, F2, K2, 7, 4);
sys/crypto/rmd160/rmd160.c
218
R(e, a, b, c, d, F2, K2, 14, 9);
sys/crypto/rmd160/rmd160.c
219
R(d, e, a, b, c, F2, K2, 9, 15);
sys/crypto/rmd160/rmd160.c
220
R(c, d, e, a, b, F2, K2, 13, 8);
sys/crypto/rmd160/rmd160.c
221
R(b, c, d, e, a, F2, K2, 15, 1);
sys/crypto/rmd160/rmd160.c
222
R(a, b, c, d, e, F2, K2, 14, 2);
sys/crypto/rmd160/rmd160.c
223
R(e, a, b, c, d, F2, K2, 8, 7);
sys/crypto/rmd160/rmd160.c
224
R(d, e, a, b, c, F2, K2, 13, 0);
sys/crypto/rmd160/rmd160.c
225
R(c, d, e, a, b, F2, K2, 6, 6);
sys/crypto/rmd160/rmd160.c
226
R(b, c, d, e, a, F2, K2, 5, 13);
sys/crypto/rmd160/rmd160.c
227
R(a, b, c, d, e, F2, K2, 12, 11);
sys/crypto/rmd160/rmd160.c
228
R(e, a, b, c, d, F2, K2, 7, 5);
sys/crypto/rmd160/rmd160.c
229
R(d, e, a, b, c, F2, K2, 5, 12); /* #47 */
sys/crypto/rmd160/rmd160.c
231
R(c, d, e, a, b, F3, K3, 11, 1);
sys/crypto/rmd160/rmd160.c
232
R(b, c, d, e, a, F3, K3, 12, 9);
sys/crypto/rmd160/rmd160.c
233
R(a, b, c, d, e, F3, K3, 14, 11);
sys/crypto/rmd160/rmd160.c
234
R(e, a, b, c, d, F3, K3, 15, 10);
sys/crypto/rmd160/rmd160.c
235
R(d, e, a, b, c, F3, K3, 14, 0);
sys/crypto/rmd160/rmd160.c
236
R(c, d, e, a, b, F3, K3, 15, 8);
sys/crypto/rmd160/rmd160.c
237
R(b, c, d, e, a, F3, K3, 9, 12);
sys/crypto/rmd160/rmd160.c
238
R(a, b, c, d, e, F3, K3, 8, 4);
sys/crypto/rmd160/rmd160.c
239
R(e, a, b, c, d, F3, K3, 9, 13);
sys/crypto/rmd160/rmd160.c
240
R(d, e, a, b, c, F3, K3, 14, 3);
sys/crypto/rmd160/rmd160.c
241
R(c, d, e, a, b, F3, K3, 5, 7);
sys/crypto/rmd160/rmd160.c
242
R(b, c, d, e, a, F3, K3, 6, 15);
sys/crypto/rmd160/rmd160.c
243
R(a, b, c, d, e, F3, K3, 8, 14);
sys/crypto/rmd160/rmd160.c
244
R(e, a, b, c, d, F3, K3, 6, 5);
sys/crypto/rmd160/rmd160.c
245
R(d, e, a, b, c, F3, K3, 5, 6);
sys/crypto/rmd160/rmd160.c
246
R(c, d, e, a, b, F3, K3, 12, 2); /* #63 */
sys/crypto/rmd160/rmd160.c
248
R(b, c, d, e, a, F4, K4, 9, 4);
sys/crypto/rmd160/rmd160.c
249
R(a, b, c, d, e, F4, K4, 15, 0);
sys/crypto/rmd160/rmd160.c
250
R(e, a, b, c, d, F4, K4, 5, 5);
sys/crypto/rmd160/rmd160.c
251
R(d, e, a, b, c, F4, K4, 11, 9);
sys/crypto/rmd160/rmd160.c
252
R(c, d, e, a, b, F4, K4, 6, 7);
sys/crypto/rmd160/rmd160.c
253
R(b, c, d, e, a, F4, K4, 8, 12);
sys/crypto/rmd160/rmd160.c
254
R(a, b, c, d, e, F4, K4, 13, 2);
sys/crypto/rmd160/rmd160.c
255
R(e, a, b, c, d, F4, K4, 12, 10);
sys/crypto/rmd160/rmd160.c
256
R(d, e, a, b, c, F4, K4, 5, 14);
sys/crypto/rmd160/rmd160.c
257
R(c, d, e, a, b, F4, K4, 12, 1);
sys/crypto/rmd160/rmd160.c
258
R(b, c, d, e, a, F4, K4, 13, 3);
sys/crypto/rmd160/rmd160.c
259
R(a, b, c, d, e, F4, K4, 14, 8);
sys/crypto/rmd160/rmd160.c
260
R(e, a, b, c, d, F4, K4, 11, 11);
sys/crypto/rmd160/rmd160.c
261
R(d, e, a, b, c, F4, K4, 8, 6);
sys/crypto/rmd160/rmd160.c
262
R(c, d, e, a, b, F4, K4, 5, 15);
sys/crypto/rmd160/rmd160.c
263
R(b, c, d, e, a, F4, K4, 6, 13); /* #79 */
sys/crypto/rmd160/rmd160.c
265
aa = a ; bb = b; cc = c; dd = d; ee = e;
sys/crypto/rmd160/rmd160.c
270
d = state[3];
sys/crypto/rmd160/rmd160.c
274
R(a, b, c, d, e, F4, KK0, 8, 5);
sys/crypto/rmd160/rmd160.c
275
R(e, a, b, c, d, F4, KK0, 9, 14);
sys/crypto/rmd160/rmd160.c
276
R(d, e, a, b, c, F4, KK0, 9, 7);
sys/crypto/rmd160/rmd160.c
277
R(c, d, e, a, b, F4, KK0, 11, 0);
sys/crypto/rmd160/rmd160.c
278
R(b, c, d, e, a, F4, KK0, 13, 9);
sys/crypto/rmd160/rmd160.c
279
R(a, b, c, d, e, F4, KK0, 15, 2);
sys/crypto/rmd160/rmd160.c
280
R(e, a, b, c, d, F4, KK0, 15, 11);
sys/crypto/rmd160/rmd160.c
281
R(d, e, a, b, c, F4, KK0, 5, 4);
sys/crypto/rmd160/rmd160.c
282
R(c, d, e, a, b, F4, KK0, 7, 13);
sys/crypto/rmd160/rmd160.c
283
R(b, c, d, e, a, F4, KK0, 7, 6);
sys/crypto/rmd160/rmd160.c
284
R(a, b, c, d, e, F4, KK0, 8, 15);
sys/crypto/rmd160/rmd160.c
285
R(e, a, b, c, d, F4, KK0, 11, 8);
sys/crypto/rmd160/rmd160.c
286
R(d, e, a, b, c, F4, KK0, 14, 1);
sys/crypto/rmd160/rmd160.c
287
R(c, d, e, a, b, F4, KK0, 14, 10);
sys/crypto/rmd160/rmd160.c
288
R(b, c, d, e, a, F4, KK0, 12, 3);
sys/crypto/rmd160/rmd160.c
289
R(a, b, c, d, e, F4, KK0, 6, 12); /* #15 */
sys/crypto/rmd160/rmd160.c
291
R(e, a, b, c, d, F3, KK1, 9, 6);
sys/crypto/rmd160/rmd160.c
292
R(d, e, a, b, c, F3, KK1, 13, 11);
sys/crypto/rmd160/rmd160.c
293
R(c, d, e, a, b, F3, KK1, 15, 3);
sys/crypto/rmd160/rmd160.c
294
R(b, c, d, e, a, F3, KK1, 7, 7);
sys/crypto/rmd160/rmd160.c
295
R(a, b, c, d, e, F3, KK1, 12, 0);
sys/crypto/rmd160/rmd160.c
296
R(e, a, b, c, d, F3, KK1, 8, 13);
sys/crypto/rmd160/rmd160.c
297
R(d, e, a, b, c, F3, KK1, 9, 5);
sys/crypto/rmd160/rmd160.c
298
R(c, d, e, a, b, F3, KK1, 11, 10);
sys/crypto/rmd160/rmd160.c
299
R(b, c, d, e, a, F3, KK1, 7, 14);
sys/crypto/rmd160/rmd160.c
300
R(a, b, c, d, e, F3, KK1, 7, 15);
sys/crypto/rmd160/rmd160.c
301
R(e, a, b, c, d, F3, KK1, 12, 8);
sys/crypto/rmd160/rmd160.c
302
R(d, e, a, b, c, F3, KK1, 7, 12);
sys/crypto/rmd160/rmd160.c
303
R(c, d, e, a, b, F3, KK1, 6, 4);
sys/crypto/rmd160/rmd160.c
304
R(b, c, d, e, a, F3, KK1, 15, 9);
sys/crypto/rmd160/rmd160.c
305
R(a, b, c, d, e, F3, KK1, 13, 1);
sys/crypto/rmd160/rmd160.c
306
R(e, a, b, c, d, F3, KK1, 11, 2); /* #31 */
sys/crypto/rmd160/rmd160.c
308
R(d, e, a, b, c, F2, KK2, 9, 15);
sys/crypto/rmd160/rmd160.c
309
R(c, d, e, a, b, F2, KK2, 7, 5);
sys/crypto/rmd160/rmd160.c
310
R(b, c, d, e, a, F2, KK2, 15, 1);
sys/crypto/rmd160/rmd160.c
311
R(a, b, c, d, e, F2, KK2, 11, 3);
sys/crypto/rmd160/rmd160.c
312
R(e, a, b, c, d, F2, KK2, 8, 7);
sys/crypto/rmd160/rmd160.c
313
R(d, e, a, b, c, F2, KK2, 6, 14);
sys/crypto/rmd160/rmd160.c
314
R(c, d, e, a, b, F2, KK2, 6, 6);
sys/crypto/rmd160/rmd160.c
315
R(b, c, d, e, a, F2, KK2, 14, 9);
sys/crypto/rmd160/rmd160.c
316
R(a, b, c, d, e, F2, KK2, 12, 11);
sys/crypto/rmd160/rmd160.c
317
R(e, a, b, c, d, F2, KK2, 13, 8);
sys/crypto/rmd160/rmd160.c
318
R(d, e, a, b, c, F2, KK2, 5, 12);
sys/crypto/rmd160/rmd160.c
319
R(c, d, e, a, b, F2, KK2, 14, 2);
sys/crypto/rmd160/rmd160.c
320
R(b, c, d, e, a, F2, KK2, 13, 10);
sys/crypto/rmd160/rmd160.c
321
R(a, b, c, d, e, F2, KK2, 13, 0);
sys/crypto/rmd160/rmd160.c
322
R(e, a, b, c, d, F2, KK2, 7, 4);
sys/crypto/rmd160/rmd160.c
323
R(d, e, a, b, c, F2, KK2, 5, 13); /* #47 */
sys/crypto/rmd160/rmd160.c
325
R(c, d, e, a, b, F1, KK3, 15, 8);
sys/crypto/rmd160/rmd160.c
326
R(b, c, d, e, a, F1, KK3, 5, 6);
sys/crypto/rmd160/rmd160.c
327
R(a, b, c, d, e, F1, KK3, 8, 4);
sys/crypto/rmd160/rmd160.c
328
R(e, a, b, c, d, F1, KK3, 11, 1);
sys/crypto/rmd160/rmd160.c
329
R(d, e, a, b, c, F1, KK3, 14, 3);
sys/crypto/rmd160/rmd160.c
330
R(c, d, e, a, b, F1, KK3, 14, 11);
sys/crypto/rmd160/rmd160.c
331
R(b, c, d, e, a, F1, KK3, 6, 15);
sys/crypto/rmd160/rmd160.c
332
R(a, b, c, d, e, F1, KK3, 14, 0);
sys/crypto/rmd160/rmd160.c
333
R(e, a, b, c, d, F1, KK3, 6, 5);
sys/crypto/rmd160/rmd160.c
334
R(d, e, a, b, c, F1, KK3, 9, 12);
sys/crypto/rmd160/rmd160.c
335
R(c, d, e, a, b, F1, KK3, 12, 2);
sys/crypto/rmd160/rmd160.c
336
R(b, c, d, e, a, F1, KK3, 9, 13);
sys/crypto/rmd160/rmd160.c
337
R(a, b, c, d, e, F1, KK3, 12, 9);
sys/crypto/rmd160/rmd160.c
338
R(e, a, b, c, d, F1, KK3, 5, 7);
sys/crypto/rmd160/rmd160.c
339
R(d, e, a, b, c, F1, KK3, 15, 10);
sys/crypto/rmd160/rmd160.c
340
R(c, d, e, a, b, F1, KK3, 8, 14); /* #63 */
sys/crypto/rmd160/rmd160.c
342
R(b, c, d, e, a, F0, KK4, 8, 12);
sys/crypto/rmd160/rmd160.c
343
R(a, b, c, d, e, F0, KK4, 5, 15);
sys/crypto/rmd160/rmd160.c
344
R(e, a, b, c, d, F0, KK4, 12, 10);
sys/crypto/rmd160/rmd160.c
345
R(d, e, a, b, c, F0, KK4, 9, 4);
sys/crypto/rmd160/rmd160.c
346
R(c, d, e, a, b, F0, KK4, 12, 1);
sys/crypto/rmd160/rmd160.c
347
R(b, c, d, e, a, F0, KK4, 5, 5);
sys/crypto/rmd160/rmd160.c
348
R(a, b, c, d, e, F0, KK4, 14, 8);
sys/crypto/rmd160/rmd160.c
349
R(e, a, b, c, d, F0, KK4, 6, 7);
sys/crypto/rmd160/rmd160.c
350
R(d, e, a, b, c, F0, KK4, 8, 6);
sys/crypto/rmd160/rmd160.c
351
R(c, d, e, a, b, F0, KK4, 13, 2);
sys/crypto/rmd160/rmd160.c
352
R(b, c, d, e, a, F0, KK4, 6, 13);
sys/crypto/rmd160/rmd160.c
353
R(a, b, c, d, e, F0, KK4, 5, 14);
sys/crypto/rmd160/rmd160.c
354
R(e, a, b, c, d, F0, KK4, 15, 0);
sys/crypto/rmd160/rmd160.c
355
R(d, e, a, b, c, F0, KK4, 13, 3);
sys/crypto/rmd160/rmd160.c
356
R(c, d, e, a, b, F0, KK4, 11, 9);
sys/crypto/rmd160/rmd160.c
357
R(b, c, d, e, a, F0, KK4, 11, 11); /* #79 */
sys/crypto/rmd160/rmd160.c
359
t = state[1] + cc + d;
sys/crypto/rmd160/rmd160.c
81
#define R(a, b, c, d, e, Fj, Kj, sj, rj) \
sys/crypto/rmd160/rmd160.c
83
a = ROL(sj, a + Fj(b,c,d) + X(rj) + Kj) + e; \
sys/crypto/serpent/serpent.c
100
#define ib1(a,b,c,d,e,f,g,h) \
sys/crypto/serpent/serpent.c
101
{ t1 = a ^ d; \
sys/crypto/serpent/serpent.c
105
t5 = b | d; \
sys/crypto/serpent/serpent.c
115
t15 = a & d; \
sys/crypto/serpent/serpent.c
122
#define sb2(a,b,c,d,e,f,g,h) \
sys/crypto/serpent/serpent.c
124
t2 = b ^ d; \
sys/crypto/serpent/serpent.c
126
t13 = d | t1; \
sys/crypto/serpent/serpent.c
133
t9 = d | t7; \
sys/crypto/serpent/serpent.c
143
#define ib2(a,b,c,d,e,f,g,h) \
sys/crypto/serpent/serpent.c
144
{ t1 = b ^ d; \
sys/crypto/serpent/serpent.c
150
t8 = d ^ t7; \
sys/crypto/serpent/serpent.c
154
t14 = d & t11; \
sys/crypto/serpent/serpent.c
164
#define sb3(a,b,c,d,e,f,g,h) \
sys/crypto/serpent/serpent.c
166
t2 = d ^ t1; \
sys/crypto/serpent/serpent.c
168
t4 = d ^ t3; \
sys/crypto/serpent/serpent.c
172
t8 = b | d; \
sys/crypto/serpent/serpent.c
173
t11 = a | d; \
sys/crypto/serpent/serpent.c
189
#define sb3(a,b,c,d,e,f,g,h) \
sys/crypto/serpent/serpent.c
192
t3 = a | d; \
sys/crypto/serpent/serpent.c
193
t4 = c ^ d; \
sys/crypto/serpent/serpent.c
203
t14 = b | d; \
sys/crypto/serpent/serpent.c
212
#define ib3(a,b,c,d,e,f,g,h) \
sys/crypto/serpent/serpent.c
216
t7 = a ^ d; \
sys/crypto/serpent/serpent.c
218
t5 = d | t4; \
sys/crypto/serpent/serpent.c
234
#define sb4(a,b,c,d,e,f,g,h) \
sys/crypto/serpent/serpent.c
235
{ t1 = a ^ d; \
sys/crypto/serpent/serpent.c
236
t2 = d & t1; \
sys/crypto/serpent/serpent.c
254
#define ib4(a,b,c,d,e,f,g,h) \
sys/crypto/serpent/serpent.c
255
{ t1 = c ^ d; \
sys/crypto/serpent/serpent.c
256
t2 = c | d; \
sys/crypto/serpent/serpent.c
260
t6 = a ^ d; \
sys/crypto/serpent/serpent.c
261
t7 = b | d; \
sys/crypto/serpent/serpent.c
276
#define sb5(a,b,c,d,e,f,g,h) \
sys/crypto/serpent/serpent.c
279
t3 = a ^ d; \
sys/crypto/serpent/serpent.c
283
t7 = d & e; \
sys/crypto/serpent/serpent.c
297
#define ib5(a,b,c,d,e,f,g,h) \
sys/crypto/serpent/serpent.c
300
t3 = d ^ t2; \
sys/crypto/serpent/serpent.c
307
t10 = a | d; \
sys/crypto/serpent/serpent.c
318
#define sb6(a,b,c,d,e,f,g,h) \
sys/crypto/serpent/serpent.c
320
t2 = a ^ d; \
sys/crypto/serpent/serpent.c
327
t8 = d ^ t7; \
sys/crypto/serpent/serpent.c
338
#define ib6(a,b,c,d,e,f,g,h) \
sys/crypto/serpent/serpent.c
343
t5 = d ^ t4; \
sys/crypto/serpent/serpent.c
344
t13 = d & t1; \
sys/crypto/serpent/serpent.c
358
#define sb7(a,b,c,d,e,f,g,h) \
sys/crypto/serpent/serpent.c
362
t4 = d ^ t3; \
sys/crypto/serpent/serpent.c
364
t7 = a ^ d; \
sys/crypto/serpent/serpent.c
368
t11 = d & t3; \
sys/crypto/serpent/serpent.c
380
#define ib7(a,b,c,d,e,f,g,h) \
sys/crypto/serpent/serpent.c
384
t4 = d & t2; \
sys/crypto/serpent/serpent.c
386
t6 = ~d; \
sys/crypto/serpent/serpent.c
392
t12 = d | f; \
sys/crypto/serpent/serpent.c
400
#define k_xor(r,a,b,c,d) \
sys/crypto/serpent/serpent.c
404
d ^= ctx->l_key[4 * r + 11]; \
sys/crypto/serpent/serpent.c
407
#define k_set(r,a,b,c,d) \
sys/crypto/serpent/serpent.c
411
d = ctx->l_key[4 * r + 11]; \
sys/crypto/serpent/serpent.c
414
#define k_get(r,a,b,c,d) \
sys/crypto/serpent/serpent.c
418
ctx->l_key[4 * r + 11] = d; \
sys/crypto/serpent/serpent.c
42
#define sb0(a,b,c,d,e,f,g,h) \
sys/crypto/serpent/serpent.c
423
#define rot(a,b,c,d) \
sys/crypto/serpent/serpent.c
426
d ^= c ^ (a << 3); \
sys/crypto/serpent/serpent.c
428
d = rotl(d, 7); \
sys/crypto/serpent/serpent.c
43
{ t1 = a ^ d; \
sys/crypto/serpent/serpent.c
430
a ^= b ^ d; \
sys/crypto/serpent/serpent.c
431
c ^= d ^ (b << 7); \
sys/crypto/serpent/serpent.c
436
#define irot(a,b,c,d) \
sys/crypto/serpent/serpent.c
439
c ^= d ^ (b << 7); \
sys/crypto/serpent/serpent.c
44
t2 = a & d; \
sys/crypto/serpent/serpent.c
440
a ^= b ^ d; \
sys/crypto/serpent/serpent.c
441
d = rotr(d, 7); \
sys/crypto/serpent/serpent.c
443
d ^= c ^ (a << 3); \
sys/crypto/serpent/serpent.c
453
u_int32_t i,lk,a,b,c,d,e,f,g,h;
sys/crypto/serpent/serpent.c
491
k_set( 0,a,b,c,d);sb3(a,b,c,d,e,f,g,h);k_get( 0,e,f,g,h);
sys/crypto/serpent/serpent.c
492
k_set( 1,a,b,c,d);sb2(a,b,c,d,e,f,g,h);k_get( 1,e,f,g,h);
sys/crypto/serpent/serpent.c
493
k_set( 2,a,b,c,d);sb1(a,b,c,d,e,f,g,h);k_get( 2,e,f,g,h);
sys/crypto/serpent/serpent.c
494
k_set( 3,a,b,c,d);sb0(a,b,c,d,e,f,g,h);k_get( 3,e,f,g,h);
sys/crypto/serpent/serpent.c
495
k_set( 4,a,b,c,d);sb7(a,b,c,d,e,f,g,h);k_get( 4,e,f,g,h);
sys/crypto/serpent/serpent.c
496
k_set( 5,a,b,c,d);sb6(a,b,c,d,e,f,g,h);k_get( 5,e,f,g,h);
sys/crypto/serpent/serpent.c
497
k_set( 6,a,b,c,d);sb5(a,b,c,d,e,f,g,h);k_get( 6,e,f,g,h);
sys/crypto/serpent/serpent.c
498
k_set( 7,a,b,c,d);sb4(a,b,c,d,e,f,g,h);k_get( 7,e,f,g,h);
sys/crypto/serpent/serpent.c
499
k_set( 8,a,b,c,d);sb3(a,b,c,d,e,f,g,h);k_get( 8,e,f,g,h);
sys/crypto/serpent/serpent.c
500
k_set( 9,a,b,c,d);sb2(a,b,c,d,e,f,g,h);k_get( 9,e,f,g,h);
sys/crypto/serpent/serpent.c
501
k_set(10,a,b,c,d);sb1(a,b,c,d,e,f,g,h);k_get(10,e,f,g,h);
sys/crypto/serpent/serpent.c
502
k_set(11,a,b,c,d);sb0(a,b,c,d,e,f,g,h);k_get(11,e,f,g,h);
sys/crypto/serpent/serpent.c
503
k_set(12,a,b,c,d);sb7(a,b,c,d,e,f,g,h);k_get(12,e,f,g,h);
sys/crypto/serpent/serpent.c
504
k_set(13,a,b,c,d);sb6(a,b,c,d,e,f,g,h);k_get(13,e,f,g,h);
sys/crypto/serpent/serpent.c
505
k_set(14,a,b,c,d);sb5(a,b,c,d,e,f,g,h);k_get(14,e,f,g,h);
sys/crypto/serpent/serpent.c
506
k_set(15,a,b,c,d);sb4(a,b,c,d,e,f,g,h);k_get(15,e,f,g,h);
sys/crypto/serpent/serpent.c
507
k_set(16,a,b,c,d);sb3(a,b,c,d,e,f,g,h);k_get(16,e,f,g,h);
sys/crypto/serpent/serpent.c
508
k_set(17,a,b,c,d);sb2(a,b,c,d,e,f,g,h);k_get(17,e,f,g,h);
sys/crypto/serpent/serpent.c
509
k_set(18,a,b,c,d);sb1(a,b,c,d,e,f,g,h);k_get(18,e,f,g,h);
sys/crypto/serpent/serpent.c
510
k_set(19,a,b,c,d);sb0(a,b,c,d,e,f,g,h);k_get(19,e,f,g,h);
sys/crypto/serpent/serpent.c
511
k_set(20,a,b,c,d);sb7(a,b,c,d,e,f,g,h);k_get(20,e,f,g,h);
sys/crypto/serpent/serpent.c
512
k_set(21,a,b,c,d);sb6(a,b,c,d,e,f,g,h);k_get(21,e,f,g,h);
sys/crypto/serpent/serpent.c
513
k_set(22,a,b,c,d);sb5(a,b,c,d,e,f,g,h);k_get(22,e,f,g,h);
sys/crypto/serpent/serpent.c
514
k_set(23,a,b,c,d);sb4(a,b,c,d,e,f,g,h);k_get(23,e,f,g,h);
sys/crypto/serpent/serpent.c
515
k_set(24,a,b,c,d);sb3(a,b,c,d,e,f,g,h);k_get(24,e,f,g,h);
sys/crypto/serpent/serpent.c
516
k_set(25,a,b,c,d);sb2(a,b,c,d,e,f,g,h);k_get(25,e,f,g,h);
sys/crypto/serpent/serpent.c
517
k_set(26,a,b,c,d);sb1(a,b,c,d,e,f,g,h);k_get(26,e,f,g,h);
sys/crypto/serpent/serpent.c
518
k_set(27,a,b,c,d);sb0(a,b,c,d,e,f,g,h);k_get(27,e,f,g,h);
sys/crypto/serpent/serpent.c
519
k_set(28,a,b,c,d);sb7(a,b,c,d,e,f,g,h);k_get(28,e,f,g,h);
sys/crypto/serpent/serpent.c
520
k_set(29,a,b,c,d);sb6(a,b,c,d,e,f,g,h);k_get(29,e,f,g,h);
sys/crypto/serpent/serpent.c
521
k_set(30,a,b,c,d);sb5(a,b,c,d,e,f,g,h);k_get(30,e,f,g,h);
sys/crypto/serpent/serpent.c
522
k_set(31,a,b,c,d);sb4(a,b,c,d,e,f,g,h);k_get(31,e,f,g,h);
sys/crypto/serpent/serpent.c
523
k_set(32,a,b,c,d);sb3(a,b,c,d,e,f,g,h);k_get(32,e,f,g,h);
sys/crypto/serpent/serpent.c
533
u_int32_t a,b,c,d,e,f,g,h;
sys/crypto/serpent/serpent.c
539
d = htole32(*((const u_int32_t *)(in_blk + 12)));
sys/crypto/serpent/serpent.c
541
k_xor( 0,a,b,c,d); sb0(a,b,c,d,e,f,g,h); rot(e,f,g,h);
sys/crypto/serpent/serpent.c
542
k_xor( 1,e,f,g,h); sb1(e,f,g,h,a,b,c,d); rot(a,b,c,d);
sys/crypto/serpent/serpent.c
543
k_xor( 2,a,b,c,d); sb2(a,b,c,d,e,f,g,h); rot(e,f,g,h);
sys/crypto/serpent/serpent.c
544
k_xor( 3,e,f,g,h); sb3(e,f,g,h,a,b,c,d); rot(a,b,c,d);
sys/crypto/serpent/serpent.c
545
k_xor( 4,a,b,c,d); sb4(a,b,c,d,e,f,g,h); rot(e,f,g,h);
sys/crypto/serpent/serpent.c
546
k_xor( 5,e,f,g,h); sb5(e,f,g,h,a,b,c,d); rot(a,b,c,d);
sys/crypto/serpent/serpent.c
547
k_xor( 6,a,b,c,d); sb6(a,b,c,d,e,f,g,h); rot(e,f,g,h);
sys/crypto/serpent/serpent.c
548
k_xor( 7,e,f,g,h); sb7(e,f,g,h,a,b,c,d); rot(a,b,c,d);
sys/crypto/serpent/serpent.c
549
k_xor( 8,a,b,c,d); sb0(a,b,c,d,e,f,g,h); rot(e,f,g,h);
sys/crypto/serpent/serpent.c
550
k_xor( 9,e,f,g,h); sb1(e,f,g,h,a,b,c,d); rot(a,b,c,d);
sys/crypto/serpent/serpent.c
551
k_xor(10,a,b,c,d); sb2(a,b,c,d,e,f,g,h); rot(e,f,g,h);
sys/crypto/serpent/serpent.c
552
k_xor(11,e,f,g,h); sb3(e,f,g,h,a,b,c,d); rot(a,b,c,d);
sys/crypto/serpent/serpent.c
553
k_xor(12,a,b,c,d); sb4(a,b,c,d,e,f,g,h); rot(e,f,g,h);
sys/crypto/serpent/serpent.c
554
k_xor(13,e,f,g,h); sb5(e,f,g,h,a,b,c,d); rot(a,b,c,d);
sys/crypto/serpent/serpent.c
555
k_xor(14,a,b,c,d); sb6(a,b,c,d,e,f,g,h); rot(e,f,g,h);
sys/crypto/serpent/serpent.c
556
k_xor(15,e,f,g,h); sb7(e,f,g,h,a,b,c,d); rot(a,b,c,d);
sys/crypto/serpent/serpent.c
557
k_xor(16,a,b,c,d); sb0(a,b,c,d,e,f,g,h); rot(e,f,g,h);
sys/crypto/serpent/serpent.c
558
k_xor(17,e,f,g,h); sb1(e,f,g,h,a,b,c,d); rot(a,b,c,d);
sys/crypto/serpent/serpent.c
559
k_xor(18,a,b,c,d); sb2(a,b,c,d,e,f,g,h); rot(e,f,g,h);
sys/crypto/serpent/serpent.c
560
k_xor(19,e,f,g,h); sb3(e,f,g,h,a,b,c,d); rot(a,b,c,d);
sys/crypto/serpent/serpent.c
561
k_xor(20,a,b,c,d); sb4(a,b,c,d,e,f,g,h); rot(e,f,g,h);
sys/crypto/serpent/serpent.c
562
k_xor(21,e,f,g,h); sb5(e,f,g,h,a,b,c,d); rot(a,b,c,d);
sys/crypto/serpent/serpent.c
563
k_xor(22,a,b,c,d); sb6(a,b,c,d,e,f,g,h); rot(e,f,g,h);
sys/crypto/serpent/serpent.c
564
k_xor(23,e,f,g,h); sb7(e,f,g,h,a,b,c,d); rot(a,b,c,d);
sys/crypto/serpent/serpent.c
565
k_xor(24,a,b,c,d); sb0(a,b,c,d,e,f,g,h); rot(e,f,g,h);
sys/crypto/serpent/serpent.c
566
k_xor(25,e,f,g,h); sb1(e,f,g,h,a,b,c,d); rot(a,b,c,d);
sys/crypto/serpent/serpent.c
567
k_xor(26,a,b,c,d); sb2(a,b,c,d,e,f,g,h); rot(e,f,g,h);
sys/crypto/serpent/serpent.c
568
k_xor(27,e,f,g,h); sb3(e,f,g,h,a,b,c,d); rot(a,b,c,d);
sys/crypto/serpent/serpent.c
569
k_xor(28,a,b,c,d); sb4(a,b,c,d,e,f,g,h); rot(e,f,g,h);
sys/crypto/serpent/serpent.c
570
k_xor(29,e,f,g,h); sb5(e,f,g,h,a,b,c,d); rot(a,b,c,d);
sys/crypto/serpent/serpent.c
571
k_xor(30,a,b,c,d); sb6(a,b,c,d,e,f,g,h); rot(e,f,g,h);
sys/crypto/serpent/serpent.c
572
k_xor(31,e,f,g,h); sb7(e,f,g,h,a,b,c,d); k_xor(32,a,b,c,d);
sys/crypto/serpent/serpent.c
577
*((u_int32_t *)(out_blk + 12)) = le32toh(d);
sys/crypto/serpent/serpent.c
585
u_int32_t a,b,c,d,e,f,g,h;
sys/crypto/serpent/serpent.c
591
d = htole32(*((const u_int32_t *)(in_blk + 12)));
sys/crypto/serpent/serpent.c
593
k_xor(32,a,b,c,d); ib7(a,b,c,d,e,f,g,h); k_xor(31,e,f,g,h);
sys/crypto/serpent/serpent.c
594
irot(e,f,g,h); ib6(e,f,g,h,a,b,c,d); k_xor(30,a,b,c,d);
sys/crypto/serpent/serpent.c
595
irot(a,b,c,d); ib5(a,b,c,d,e,f,g,h); k_xor(29,e,f,g,h);
sys/crypto/serpent/serpent.c
596
irot(e,f,g,h); ib4(e,f,g,h,a,b,c,d); k_xor(28,a,b,c,d);
sys/crypto/serpent/serpent.c
597
irot(a,b,c,d); ib3(a,b,c,d,e,f,g,h); k_xor(27,e,f,g,h);
sys/crypto/serpent/serpent.c
598
irot(e,f,g,h); ib2(e,f,g,h,a,b,c,d); k_xor(26,a,b,c,d);
sys/crypto/serpent/serpent.c
599
irot(a,b,c,d); ib1(a,b,c,d,e,f,g,h); k_xor(25,e,f,g,h);
sys/crypto/serpent/serpent.c
600
irot(e,f,g,h); ib0(e,f,g,h,a,b,c,d); k_xor(24,a,b,c,d);
sys/crypto/serpent/serpent.c
601
irot(a,b,c,d); ib7(a,b,c,d,e,f,g,h); k_xor(23,e,f,g,h);
sys/crypto/serpent/serpent.c
602
irot(e,f,g,h); ib6(e,f,g,h,a,b,c,d); k_xor(22,a,b,c,d);
sys/crypto/serpent/serpent.c
603
irot(a,b,c,d); ib5(a,b,c,d,e,f,g,h); k_xor(21,e,f,g,h);
sys/crypto/serpent/serpent.c
604
irot(e,f,g,h); ib4(e,f,g,h,a,b,c,d); k_xor(20,a,b,c,d);
sys/crypto/serpent/serpent.c
605
irot(a,b,c,d); ib3(a,b,c,d,e,f,g,h); k_xor(19,e,f,g,h);
sys/crypto/serpent/serpent.c
606
irot(e,f,g,h); ib2(e,f,g,h,a,b,c,d); k_xor(18,a,b,c,d);
sys/crypto/serpent/serpent.c
607
irot(a,b,c,d); ib1(a,b,c,d,e,f,g,h); k_xor(17,e,f,g,h);
sys/crypto/serpent/serpent.c
608
irot(e,f,g,h); ib0(e,f,g,h,a,b,c,d); k_xor(16,a,b,c,d);
sys/crypto/serpent/serpent.c
609
irot(a,b,c,d); ib7(a,b,c,d,e,f,g,h); k_xor(15,e,f,g,h);
sys/crypto/serpent/serpent.c
61
#define ib0(a,b,c,d,e,f,g,h) \
sys/crypto/serpent/serpent.c
610
irot(e,f,g,h); ib6(e,f,g,h,a,b,c,d); k_xor(14,a,b,c,d);
sys/crypto/serpent/serpent.c
611
irot(a,b,c,d); ib5(a,b,c,d,e,f,g,h); k_xor(13,e,f,g,h);
sys/crypto/serpent/serpent.c
612
irot(e,f,g,h); ib4(e,f,g,h,a,b,c,d); k_xor(12,a,b,c,d);
sys/crypto/serpent/serpent.c
613
irot(a,b,c,d); ib3(a,b,c,d,e,f,g,h); k_xor(11,e,f,g,h);
sys/crypto/serpent/serpent.c
614
irot(e,f,g,h); ib2(e,f,g,h,a,b,c,d); k_xor(10,a,b,c,d);
sys/crypto/serpent/serpent.c
615
irot(a,b,c,d); ib1(a,b,c,d,e,f,g,h); k_xor( 9,e,f,g,h);
sys/crypto/serpent/serpent.c
616
irot(e,f,g,h); ib0(e,f,g,h,a,b,c,d); k_xor( 8,a,b,c,d);
sys/crypto/serpent/serpent.c
617
irot(a,b,c,d); ib7(a,b,c,d,e,f,g,h); k_xor( 7,e,f,g,h);
sys/crypto/serpent/serpent.c
618
irot(e,f,g,h); ib6(e,f,g,h,a,b,c,d); k_xor( 6,a,b,c,d);
sys/crypto/serpent/serpent.c
619
irot(a,b,c,d); ib5(a,b,c,d,e,f,g,h); k_xor( 5,e,f,g,h);
sys/crypto/serpent/serpent.c
620
irot(e,f,g,h); ib4(e,f,g,h,a,b,c,d); k_xor( 4,a,b,c,d);
sys/crypto/serpent/serpent.c
621
irot(a,b,c,d); ib3(a,b,c,d,e,f,g,h); k_xor( 3,e,f,g,h);
sys/crypto/serpent/serpent.c
622
irot(e,f,g,h); ib2(e,f,g,h,a,b,c,d); k_xor( 2,a,b,c,d);
sys/crypto/serpent/serpent.c
623
irot(a,b,c,d); ib1(a,b,c,d,e,f,g,h); k_xor( 1,e,f,g,h);
sys/crypto/serpent/serpent.c
624
irot(e,f,g,h); ib0(e,f,g,h,a,b,c,d); k_xor( 0,a,b,c,d);
sys/crypto/serpent/serpent.c
629
*((u_int32_t *)(out_blk + 12)) = le32toh(d);
sys/crypto/serpent/serpent.c
65
t4 = d ^ t3; \
sys/crypto/serpent/serpent.c
66
t7 = d & t2; \
sys/crypto/serpent/serpent.c
81
#define sb1(a,b,c,d,e,f,g,h) \
sys/crypto/serpent/serpent.c
85
t4 = d | t2; \
sys/crypto/serpent/serpent.c
87
g = d ^ t5; \
sys/crypto/sha1.c
132
a = H(0); b = H(1); c = H(2); d = H(3); e = H(4);
sys/crypto/sha1.c
139
tmp = S(5, a) + F0(b, c, d) + e + W(s) + K(t);
sys/crypto/sha1.c
140
e = d; d = c; c = S(30, b); b = a; a = tmp;
sys/crypto/sha1.c
145
tmp = S(5, a) + F1(b, c, d) + e + W(s) + K(t);
sys/crypto/sha1.c
146
e = d; d = c; c = S(30, b); b = a; a = tmp;
sys/crypto/sha1.c
151
tmp = S(5, a) + F2(b, c, d) + e + W(s) + K(t);
sys/crypto/sha1.c
152
e = d; d = c; c = S(30, b); b = a; a = tmp;
sys/crypto/sha1.c
157
tmp = S(5, a) + F3(b, c, d) + e + W(s) + K(t);
sys/crypto/sha1.c
158
e = d; d = c; c = S(30, b); b = a; a = tmp;
sys/crypto/sha1.c
164
H(3) = H(3) + d;
sys/crypto/sha1.c
57
#define F0(b, c, d) (((b) & (c)) | ((~(b)) & (d)))
sys/crypto/sha1.c
58
#define F1(b, c, d) (((b) ^ (c)) ^ (d))
sys/crypto/sha1.c
59
#define F2(b, c, d) (((b) & (c)) | ((b) & (d)) | ((c) & (d)))
sys/crypto/sha1.c
60
#define F3(b, c, d) (((b) ^ (c)) ^ (d))
sys/crypto/sha1.c
91
u_int32_t a, b, c, d, e;
sys/crypto/sha2/sha2.c
1012
*d++ = context->state[j];
sys/crypto/sha2/sha2.c
1016
bcopy(context->state, d, SHA384_DIGEST_LENGTH);
sys/crypto/sha2/sha2.c
1025
sha2_byte digest[SHA384_DIGEST_LENGTH], *d = digest;
sys/crypto/sha2/sha2.c
1035
*buffer++ = sha2_hex_digits[(*d & 0xf0) >> 4];
sys/crypto/sha2/sha2.c
1036
*buffer++ = sha2_hex_digits[*d & 0x0f];
sys/crypto/sha2/sha2.c
1037
d++;
sys/crypto/sha2/sha2.c
340
#define ROUND256_0_TO_15(a,b,c,d,e,f,g,h) \
sys/crypto/sha2/sha2.c
344
(d) += T1; \
sys/crypto/sha2/sha2.c
351
#define ROUND256_0_TO_15(a,b,c,d,e,f,g,h) \
sys/crypto/sha2/sha2.c
354
(d) += T1; \
sys/crypto/sha2/sha2.c
360
#define ROUND256(a,b,c,d,e,f,g,h) \
sys/crypto/sha2/sha2.c
367
(d) += T1; \
sys/crypto/sha2/sha2.c
372
sha2_word32 a, b, c, d, e, f, g, h, s0, s1;
sys/crypto/sha2/sha2.c
382
d = context->state[3];
sys/crypto/sha2/sha2.c
391
ROUND256_0_TO_15(a,b,c,d,e,f,g,h);
sys/crypto/sha2/sha2.c
392
ROUND256_0_TO_15(h,a,b,c,d,e,f,g);
sys/crypto/sha2/sha2.c
393
ROUND256_0_TO_15(g,h,a,b,c,d,e,f);
sys/crypto/sha2/sha2.c
394
ROUND256_0_TO_15(f,g,h,a,b,c,d,e);
sys/crypto/sha2/sha2.c
395
ROUND256_0_TO_15(e,f,g,h,a,b,c,d);
sys/crypto/sha2/sha2.c
396
ROUND256_0_TO_15(d,e,f,g,h,a,b,c);
sys/crypto/sha2/sha2.c
397
ROUND256_0_TO_15(c,d,e,f,g,h,a,b);
sys/crypto/sha2/sha2.c
398
ROUND256_0_TO_15(b,c,d,e,f,g,h,a);
sys/crypto/sha2/sha2.c
403
ROUND256(a,b,c,d,e,f,g,h);
sys/crypto/sha2/sha2.c
404
ROUND256(h,a,b,c,d,e,f,g);
sys/crypto/sha2/sha2.c
405
ROUND256(g,h,a,b,c,d,e,f);
sys/crypto/sha2/sha2.c
406
ROUND256(f,g,h,a,b,c,d,e);
sys/crypto/sha2/sha2.c
407
ROUND256(e,f,g,h,a,b,c,d);
sys/crypto/sha2/sha2.c
408
ROUND256(d,e,f,g,h,a,b,c);
sys/crypto/sha2/sha2.c
409
ROUND256(c,d,e,f,g,h,a,b);
sys/crypto/sha2/sha2.c
410
ROUND256(b,c,d,e,f,g,h,a);
sys/crypto/sha2/sha2.c
417
context->state[3] += d;
sys/crypto/sha2/sha2.c
424
a = b = c = d = e = f = g = h = T1 = 0;
sys/crypto/sha2/sha2.c
430
sha2_word32 a, b, c, d, e, f, g, h, s0, s1;
sys/crypto/sha2/sha2.c
440
d = context->state[3];
sys/crypto/sha2/sha2.c
461
e = d + T1;
sys/crypto/sha2/sha2.c
462
d = c;
sys/crypto/sha2/sha2.c
484
e = d + T1;
sys/crypto/sha2/sha2.c
485
d = c;
sys/crypto/sha2/sha2.c
497
context->state[3] += d;
sys/crypto/sha2/sha2.c
504
a = b = c = d = e = f = g = h = T1 = T2 = 0;
sys/crypto/sha2/sha2.c
558
sha2_word32 *d = (sha2_word32*)digest;
sys/crypto/sha2/sha2.c
607
*d++ = context->state[j];
sys/crypto/sha2/sha2.c
611
bcopy(context->state, d, SHA256_DIGEST_LENGTH);
sys/crypto/sha2/sha2.c
621
sha2_byte digest[SHA256_DIGEST_LENGTH], *d = digest;
sys/crypto/sha2/sha2.c
631
*buffer++ = sha2_hex_digits[(*d & 0xf0) >> 4];
sys/crypto/sha2/sha2.c
632
*buffer++ = sha2_hex_digits[*d & 0x0f];
sys/crypto/sha2/sha2.c
633
d++;
sys/crypto/sha2/sha2.c
667
#define ROUND512_0_TO_15(a,b,c,d,e,f,g,h) \
sys/crypto/sha2/sha2.c
671
(d) += T1, \
sys/crypto/sha2/sha2.c
678
#define ROUND512_0_TO_15(a,b,c,d,e,f,g,h) \
sys/crypto/sha2/sha2.c
681
(d) += T1; \
sys/crypto/sha2/sha2.c
687
#define ROUND512(a,b,c,d,e,f,g,h) \
sys/crypto/sha2/sha2.c
694
(d) += T1; \
sys/crypto/sha2/sha2.c
699
sha2_word64 a, b, c, d, e, f, g, h, s0, s1;
sys/crypto/sha2/sha2.c
707
d = context->state[3];
sys/crypto/sha2/sha2.c
715
ROUND512_0_TO_15(a,b,c,d,e,f,g,h);
sys/crypto/sha2/sha2.c
716
ROUND512_0_TO_15(h,a,b,c,d,e,f,g);
sys/crypto/sha2/sha2.c
717
ROUND512_0_TO_15(g,h,a,b,c,d,e,f);
sys/crypto/sha2/sha2.c
718
ROUND512_0_TO_15(f,g,h,a,b,c,d,e);
sys/crypto/sha2/sha2.c
719
ROUND512_0_TO_15(e,f,g,h,a,b,c,d);
sys/crypto/sha2/sha2.c
720
ROUND512_0_TO_15(d,e,f,g,h,a,b,c);
sys/crypto/sha2/sha2.c
721
ROUND512_0_TO_15(c,d,e,f,g,h,a,b);
sys/crypto/sha2/sha2.c
722
ROUND512_0_TO_15(b,c,d,e,f,g,h,a);
sys/crypto/sha2/sha2.c
727
ROUND512(a,b,c,d,e,f,g,h);
sys/crypto/sha2/sha2.c
728
ROUND512(h,a,b,c,d,e,f,g);
sys/crypto/sha2/sha2.c
729
ROUND512(g,h,a,b,c,d,e,f);
sys/crypto/sha2/sha2.c
730
ROUND512(f,g,h,a,b,c,d,e);
sys/crypto/sha2/sha2.c
731
ROUND512(e,f,g,h,a,b,c,d);
sys/crypto/sha2/sha2.c
732
ROUND512(d,e,f,g,h,a,b,c);
sys/crypto/sha2/sha2.c
733
ROUND512(c,d,e,f,g,h,a,b);
sys/crypto/sha2/sha2.c
734
ROUND512(b,c,d,e,f,g,h,a);
sys/crypto/sha2/sha2.c
741
context->state[3] += d;
sys/crypto/sha2/sha2.c
748
a = b = c = d = e = f = g = h = T1 = 0;
sys/crypto/sha2/sha2.c
754
sha2_word64 a, b, c, d, e, f, g, h, s0, s1;
sys/crypto/sha2/sha2.c
762
d = context->state[3];
sys/crypto/sha2/sha2.c
783
e = d + T1;
sys/crypto/sha2/sha2.c
784
d = c;
sys/crypto/sha2/sha2.c
806
e = d + T1;
sys/crypto/sha2/sha2.c
807
d = c;
sys/crypto/sha2/sha2.c
819
context->state[3] += d;
sys/crypto/sha2/sha2.c
826
a = b = c = d = e = f = g = h = T1 = T2 = 0;
sys/crypto/sha2/sha2.c
921
sha2_word64 *d = (sha2_word64*)digest;
sys/crypto/sha2/sha2.c
937
*d++ = context->state[j];
sys/crypto/sha2/sha2.c
941
bcopy(context->state, d, SHA512_DIGEST_LENGTH);
sys/crypto/sha2/sha2.c
950
sha2_byte digest[SHA512_DIGEST_LENGTH], *d = digest;
sys/crypto/sha2/sha2.c
960
*buffer++ = sha2_hex_digits[(*d & 0xf0) >> 4];
sys/crypto/sha2/sha2.c
961
*buffer++ = sha2_hex_digits[*d & 0x0f];
sys/crypto/sha2/sha2.c
962
d++;
sys/crypto/sha2/sha2.c
996
sha2_word64 *d = (sha2_word64*)digest;
sys/ddb/db_sym.c
272
db_expr_t d;
sys/ddb/db_sym.c
280
cursym = db_search_symbol(off, strategy, &d);
sys/ddb/db_sym.c
289
if (name == NULL || d >= (unsigned long)db_maxoff) {
sys/ddb/db_sym.c
295
if (d) {
sys/ddb/db_sym.c
296
db_format_radix(tbuf, 24, (long)d, TRUE);
sys/dev/apple/smc/smc_io.c
416
apple_smc_float_to_u32(uint32_t d)
sys/dev/apple/smc/smc_io.c
425
if (d == 0 || (d >> 31) != 0)
sys/dev/apple/smc/smc_io.c
427
exp = (int32_t)((d >> 23) & 0xff) - 0x7f;
sys/dev/apple/smc/smc_io.c
428
fr = d & 0x7fffff;
sys/dev/apple/smc/smc_io.c
438
apple_smc_u32_to_float(uint32_t d)
sys/dev/apple/smc/smc_io.c
442
if (d == 0) return (0);
sys/dev/apple/smc/smc_io.c
443
dc = d; bc = 0;
sys/dev/apple/smc/smc_io.c
448
return ((exp << 23) | ((d >> (bc - 23)) & 0x7fffff));
sys/dev/apple/smc/smc_io.c
450
return ((exp << 23) | ((d << (23 - bc)) & 0x7fffff));
sys/dev/disk/isp/isp_freebsd.h
399
ispds64_t *d = a; \
sys/dev/disk/isp/isp_freebsd.h
403
d->ds_base = DMA_LO32(e->ds_addr); \
sys/dev/disk/isp/isp_freebsd.h
404
d->ds_basehi = DMA_HI32(e->ds_addr); \
sys/dev/disk/isp/isp_freebsd.h
405
d->ds_count = e->ds_len; \
sys/dev/disk/isp/isp_freebsd.h
409
ispds_t *d = a; \
sys/dev/disk/isp/isp_freebsd.h
413
d->ds_base = DMA_LO32(e->ds_addr); \
sys/dev/disk/isp/isp_freebsd.h
414
d->ds_count = e->ds_len; \
sys/dev/disk/isp/isp_freebsd.h
515
#define ISP_IOXPUT_8(isp, s, d) *(d) = s
sys/dev/disk/isp/isp_freebsd.h
516
#define ISP_IOXPUT_16(isp, s, d) \
sys/dev/disk/isp/isp_freebsd.h
517
*(d) = (isp->isp_bustype == ISP_BT_SBUS)? s : bswap16(s)
sys/dev/disk/isp/isp_freebsd.h
518
#define ISP_IOXPUT_32(isp, s, d) \
sys/dev/disk/isp/isp_freebsd.h
519
*(d) = (isp->isp_bustype == ISP_BT_SBUS)? s : bswap32(s)
sys/dev/disk/isp/isp_freebsd.h
520
#define ISP_IOXGET_8(isp, s, d) d = (*((uint8_t *)s))
sys/dev/disk/isp/isp_freebsd.h
521
#define ISP_IOXGET_16(isp, s, d) \
sys/dev/disk/isp/isp_freebsd.h
522
d = (isp->isp_bustype == ISP_BT_SBUS)? \
sys/dev/disk/isp/isp_freebsd.h
524
#define ISP_IOXGET_32(isp, s, d) \
sys/dev/disk/isp/isp_freebsd.h
525
d = (isp->isp_bustype == ISP_BT_SBUS)? \
sys/dev/disk/isp/isp_freebsd.h
529
#define ISP_IOXPUT_8(isp, s, d) *(d) = s
sys/dev/disk/isp/isp_freebsd.h
530
#define ISP_IOXPUT_16(isp, s, d) *(d) = bswap16(s)
sys/dev/disk/isp/isp_freebsd.h
531
#define ISP_IOXPUT_32(isp, s, d) *(d) = bswap32(s)
sys/dev/disk/isp/isp_freebsd.h
532
#define ISP_IOXGET_8(isp, s, d) d = (*((uint8_t *)s))
sys/dev/disk/isp/isp_freebsd.h
533
#define ISP_IOXGET_16(isp, s, d) d = bswap16(*((uint16_t *)s))
sys/dev/disk/isp/isp_freebsd.h
534
#define ISP_IOXGET_32(isp, s, d) d = bswap32(*((uint32_t *)s))
sys/dev/disk/isp/isp_freebsd.h
539
#define ISP_IOZGET_8(isp, s, d) d = (*((uint8_t *)s))
sys/dev/disk/isp/isp_freebsd.h
540
#define ISP_IOZGET_16(isp, s, d) d = (*((uint16_t *)s))
sys/dev/disk/isp/isp_freebsd.h
541
#define ISP_IOZGET_32(isp, s, d) d = (*((uint32_t *)s))
sys/dev/disk/isp/isp_freebsd.h
542
#define ISP_IOZPUT_8(isp, s, d) *(d) = s
sys/dev/disk/isp/isp_freebsd.h
543
#define ISP_IOZPUT_16(isp, s, d) *(d) = s
sys/dev/disk/isp/isp_freebsd.h
544
#define ISP_IOZPUT_32(isp, s, d) *(d) = s
sys/dev/disk/isp/isp_freebsd.h
548
#define ISP_IOXPUT_8(isp, s, d) *(d) = s
sys/dev/disk/isp/isp_freebsd.h
549
#define ISP_IOXPUT_16(isp, s, d) *(d) = s
sys/dev/disk/isp/isp_freebsd.h
550
#define ISP_IOXPUT_32(isp, s, d) *(d) = s
sys/dev/disk/isp/isp_freebsd.h
551
#define ISP_IOXGET_8(isp, s, d) d = *(s)
sys/dev/disk/isp/isp_freebsd.h
552
#define ISP_IOXGET_16(isp, s, d) d = *(s)
sys/dev/disk/isp/isp_freebsd.h
553
#define ISP_IOXGET_32(isp, s, d) d = *(s)
sys/dev/disk/isp/isp_freebsd.h
557
#define ISP_IOZPUT_8(isp, s, d) *(d) = s
sys/dev/disk/isp/isp_freebsd.h
558
#define ISP_IOZPUT_16(isp, s, d) *(d) = bswap16(s)
sys/dev/disk/isp/isp_freebsd.h
559
#define ISP_IOZPUT_32(isp, s, d) *(d) = bswap32(s)
sys/dev/disk/isp/isp_freebsd.h
561
#define ISP_IOZGET_8(isp, s, d) d = (*((uint8_t *)(s)))
sys/dev/disk/isp/isp_freebsd.h
562
#define ISP_IOZGET_16(isp, s, d) d = bswap16(*((uint16_t *)(s)))
sys/dev/disk/isp/isp_freebsd.h
563
#define ISP_IOZGET_32(isp, s, d) d = bswap32(*((uint32_t *)(s)))
sys/dev/disk/isp/isp_freebsd.h
656
#define isp_sim_alloc(a, b, c, d, e, f, g, h) \
sys/dev/disk/isp/isp_freebsd.h
657
cam_sim_alloc(a, b, c, d, e, &(d)->isp_osinfo.lock, f, g, h)
sys/dev/disk/isp/isp_library.c
1075
uint32_t *s, *d;
sys/dev/disk/isp/isp_library.c
1090
d = (uint32_t *)dst->req_rsp_sense;
sys/dev/disk/isp/isp_library.c
1092
d[i] = ISP_SWAP32(isp, s[i]);
sys/dev/disk/nata/atapi-cd.c
1357
struct dvd_miscauth *d = NULL;
sys/dev/disk/nata/atapi-cd.c
1397
d = kmalloc(length, M_ACD, M_WAITOK | M_ZERO);
sys/dev/disk/nata/atapi-cd.c
1398
d->length = htons(length - 2);
sys/dev/disk/nata/atapi-cd.c
1401
error = ata_atapicmd(dev, ccb, (caddr_t)d, length,
sys/dev/disk/nata/atapi-cd.c
1405
kfree(d, M_ACD);
sys/dev/disk/nata/atapi-cd.c
1411
ai->agid = d->data[3] >> 6;
sys/dev/disk/nata/atapi-cd.c
1415
bcopy(&d->data[0], &ai->keychal[0], 10);
sys/dev/disk/nata/atapi-cd.c
1419
bcopy(&d->data[0], &ai->keychal[0], 5);
sys/dev/disk/nata/atapi-cd.c
1423
ai->cpm = (d->data[0] >> 7);
sys/dev/disk/nata/atapi-cd.c
1424
ai->cp_sec = (d->data[0] >> 6) & 0x1;
sys/dev/disk/nata/atapi-cd.c
1425
ai->cgms = (d->data[0] >> 4) & 0x3;
sys/dev/disk/nata/atapi-cd.c
1426
bcopy(&d->data[1], &ai->keychal[0], 5);
sys/dev/disk/nata/atapi-cd.c
1430
ai->asf = d->data[3] & 1;
sys/dev/disk/nata/atapi-cd.c
1434
ai->reg_type = (d->data[0] >> 6);
sys/dev/disk/nata/atapi-cd.c
1435
ai->vend_rsts = (d->data[0] >> 3) & 0x7;
sys/dev/disk/nata/atapi-cd.c
1436
ai->user_rsts = d->data[0] & 0x7;
sys/dev/disk/nata/atapi-cd.c
1437
ai->region = d->data[1];
sys/dev/disk/nata/atapi-cd.c
1438
ai->rpc_scheme = d->data[2];
sys/dev/disk/nata/atapi-cd.c
1448
kfree(d, M_ACD);
sys/dev/disk/nata/atapi-cd.c
1455
struct dvd_miscauth *d;
sys/dev/disk/nata/atapi-cd.c
1463
d = kmalloc(length, M_ACD, M_WAITOK | M_ZERO);
sys/dev/disk/nata/atapi-cd.c
1464
bcopy(ai->keychal, &d->data[0], 10);
sys/dev/disk/nata/atapi-cd.c
1469
d = kmalloc(length, M_ACD, M_WAITOK | M_ZERO);
sys/dev/disk/nata/atapi-cd.c
1470
bcopy(&ai->keychal[0], &d->data[0], 5);
sys/dev/disk/nata/atapi-cd.c
1475
d = kmalloc(length, M_ACD, M_WAITOK | M_ZERO);
sys/dev/disk/nata/atapi-cd.c
1476
d->data[0] = ai->region;
sys/dev/disk/nata/atapi-cd.c
1488
d->length = htons(length - 2);
sys/dev/disk/nata/atapi-cd.c
1489
error = ata_atapicmd(dev, ccb, (caddr_t)d, length, 0, 10);
sys/dev/disk/nata/atapi-cd.c
1490
kfree(d, M_ACD);
sys/dev/disk/nata/atapi-cd.c
1497
struct dvd_miscauth *d;
sys/dev/disk/nata/atapi-cd.c
1537
d = kmalloc(length, M_ACD, M_WAITOK | M_ZERO);
sys/dev/disk/nata/atapi-cd.c
1538
d->length = htons(length - 2);
sys/dev/disk/nata/atapi-cd.c
1547
error = ata_atapicmd(dev, ccb, (caddr_t)d, length, ATA_R_READ, 30);
sys/dev/disk/nata/atapi-cd.c
1549
kfree(d, M_ACD);
sys/dev/disk/nata/atapi-cd.c
1557
layer->book_type = d->data[0] >> 4;
sys/dev/disk/nata/atapi-cd.c
1558
layer->book_version = d->data[0] & 0xf;
sys/dev/disk/nata/atapi-cd.c
1559
layer->disc_size = d->data[1] >> 4;
sys/dev/disk/nata/atapi-cd.c
1560
layer->max_rate = d->data[1] & 0xf;
sys/dev/disk/nata/atapi-cd.c
1561
layer->nlayers = (d->data[2] >> 5) & 3;
sys/dev/disk/nata/atapi-cd.c
1562
layer->track_path = (d->data[2] >> 4) & 1;
sys/dev/disk/nata/atapi-cd.c
1563
layer->layer_type = d->data[2] & 0xf;
sys/dev/disk/nata/atapi-cd.c
1564
layer->linear_density = d->data[3] >> 4;
sys/dev/disk/nata/atapi-cd.c
1565
layer->track_density = d->data[3] & 0xf;
sys/dev/disk/nata/atapi-cd.c
1566
layer->start_sector = d->data[5] << 16 | d->data[6] << 8 | d->data[7];
sys/dev/disk/nata/atapi-cd.c
1567
layer->end_sector = d->data[9] << 16 | d->data[10] << 8 | d->data[11];
sys/dev/disk/nata/atapi-cd.c
1568
layer->end_sector_l0 = d->data[13] << 16 | d->data[14] << 8|d->data[15];
sys/dev/disk/nata/atapi-cd.c
1569
layer->bca = d->data[16] >> 7;
sys/dev/disk/nata/atapi-cd.c
1574
s->cpst = d->data[0];
sys/dev/disk/nata/atapi-cd.c
1575
s->rmi = d->data[1];
sys/dev/disk/nata/atapi-cd.c
1579
bcopy(&d->data[0], &s->data[0], 2048);
sys/dev/disk/nata/atapi-cd.c
1583
s->length = ntohs(d->length);
sys/dev/disk/nata/atapi-cd.c
1584
bcopy(&d->data[0], &s->data[0], s->length);
sys/dev/disk/nata/atapi-cd.c
1588
s->length = ntohs(d->length);
sys/dev/disk/nata/atapi-cd.c
1589
bcopy(&d->data[0], &s->data[0], s->length);
sys/dev/disk/nata/atapi-cd.c
1595
kfree(d, M_ACD);
sys/dev/disk/sdhci/sdhci.c
513
device_t d = slot->dev;
sys/dev/disk/sdhci/sdhci.c
516
device_delete_child(slot->bus, d);
sys/dev/disk/sdhci/sdhci.c
862
device_t d;
sys/dev/disk/sdhci/sdhci.c
869
d = slot->dev;
sys/dev/disk/sdhci/sdhci.c
872
if (d != NULL)
sys/dev/disk/sdhci/sdhci.c
873
device_delete_child(slot->bus, d);
sys/dev/drm/amd/amdgpu/amdgpu.h
1176
#define amdgpu_asic_set_uvd_clocks(adev, v, d) (adev)->asic_funcs->set_uvd_clocks((adev), (v), (d))
sys/dev/drm/amd/amdgpu/amdgpu_irq.c
619
static int amdgpu_irqdomain_map(struct irq_domain *d,
sys/dev/drm/amd/amdgpu/amdgpu_ring.h
239
#define amdgpu_ring_emit_cntxcntl(r, d) (r)->funcs->emit_cntxcntl((r), (d))
sys/dev/drm/amd/amdgpu/amdgpu_ring.h
240
#define amdgpu_ring_emit_rreg(r, d) (r)->funcs->emit_rreg((r), (d))
sys/dev/drm/amd/amdgpu/amdgpu_ring.h
241
#define amdgpu_ring_emit_wreg(r, d, v) (r)->funcs->emit_wreg((r), (d), (v))
sys/dev/drm/amd/amdgpu/amdgpu_ring.h
242
#define amdgpu_ring_emit_reg_wait(r, d, v, m) (r)->funcs->emit_reg_wait((r), (d), (v), (m))
sys/dev/drm/amd/amdgpu/amdgpu_sdma.h
91
#define amdgpu_emit_copy_buffer(adev, ib, s, d, b) (adev)->mman.buffer_funcs->emit_copy_buffer((ib), (s), (d), (b))
sys/dev/drm/amd/amdgpu/amdgpu_sdma.h
92
#define amdgpu_emit_fill_buffer(adev, ib, s, d, b) (adev)->mman.buffer_funcs->emit_fill_buffer((ib), (s), (d), (b))
sys/dev/drm/amd/amdgpu/si_dpm.c
2349
u64 pwr_efficiency_ratio, n, d;
sys/dev/drm/amd/amdgpu/si_dpm.c
2355
d = prev_vddc * prev_vddc;
sys/dev/drm/amd/amdgpu/si_dpm.c
2356
pwr_efficiency_ratio = div64_u64(n, d);
sys/dev/drm/amd/display/dc/basics/conversion.c
46
uint16_t d = (uint16_t)dc_fixpt_floor(
sys/dev/drm/amd/display/dc/basics/conversion.c
50
if (d <= (uint16_t)(1 << integer_bits) - (1 / (uint16_t)divisor))
sys/dev/drm/amd/display/dc/calcs/dcn_calcs.c
1047
context->bw.dcn.watermarks.d = context->bw.dcn.watermarks.a;
sys/dev/drm/amd/display/dc/calcs/dcn_calcs.c
581
context->bw.dcn.watermarks.d.cstate_pstate.cstate_exit_ns =
sys/dev/drm/amd/display/dc/calcs/dcn_calcs.c
583
context->bw.dcn.watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns =
sys/dev/drm/amd/display/dc/calcs/dcn_calcs.c
585
context->bw.dcn.watermarks.d.cstate_pstate.pstate_change_ns =
sys/dev/drm/amd/display/dc/calcs/dcn_calcs.c
587
context->bw.dcn.watermarks.d.pte_meta_urgent_ns = v->ptemeta_urgent_watermark * 1000;
sys/dev/drm/amd/display/dc/calcs/dcn_calcs.c
588
context->bw.dcn.watermarks.d.urgent_ns = v->urgent_watermark * 1000;
sys/dev/drm/amd/display/dc/calcs/dcn_calcs.c
614
context->bw.dcn.watermarks.d = context->bw.dcn.watermarks.a;
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
456
if (safe_to_lower || watermarks->d.urgent_ns > hubbub->watermarks.d.urgent_ns) {
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
457
hubbub->watermarks.d.urgent_ns = watermarks->d.urgent_ns;
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
458
prog_wm_value = convert_and_clamp(watermarks->d.urgent_ns,
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
464
watermarks->d.urgent_ns, prog_wm_value);
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
467
if (safe_to_lower || watermarks->d.pte_meta_urgent_ns > hubbub->watermarks.d.pte_meta_urgent_ns) {
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
468
hubbub->watermarks.d.pte_meta_urgent_ns = watermarks->d.pte_meta_urgent_ns;
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
469
prog_wm_value = convert_and_clamp(watermarks->d.pte_meta_urgent_ns,
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
474
watermarks->d.pte_meta_urgent_ns, prog_wm_value);
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
478
if (safe_to_lower || watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
479
> hubbub->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns) {
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
480
hubbub->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns =
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
481
watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns;
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
483
watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns,
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
488
watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns, prog_wm_value);
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
491
if (safe_to_lower || watermarks->d.cstate_pstate.cstate_exit_ns
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
492
> hubbub->watermarks.d.cstate_pstate.cstate_exit_ns) {
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
493
hubbub->watermarks.d.cstate_pstate.cstate_exit_ns =
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
494
watermarks->d.cstate_pstate.cstate_exit_ns;
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
496
watermarks->d.cstate_pstate.cstate_exit_ns,
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
501
watermarks->d.cstate_pstate.cstate_exit_ns, prog_wm_value);
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
505
if (safe_to_lower || watermarks->d.cstate_pstate.pstate_change_ns
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
506
> hubbub->watermarks.d.cstate_pstate.pstate_change_ns) {
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
507
hubbub->watermarks.d.cstate_pstate.pstate_change_ns =
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
508
watermarks->d.cstate_pstate.pstate_change_ns;
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
510
watermarks->d.cstate_pstate.pstate_change_ns,
sys/dev/drm/amd/display/dc/dcn10/dcn10_hubbub.c
515
watermarks->d.cstate_pstate.pstate_change_ns, prog_wm_value);
sys/dev/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
1870
uint16_t d = (uint16_t)dc_fixpt_floor(
sys/dev/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
1874
if (d <= (uint16_t)(1 << integer_bits) - (1 / (uint16_t)divisor))
sys/dev/drm/amd/display/dc/dml/dml_inline_defs.h
43
static inline double dml_min4(double a, double b, double c, double d)
sys/dev/drm/amd/display/dc/dml/dml_inline_defs.h
45
return dml_min(dml_min(a, b), dml_min(c, d));
sys/dev/drm/amd/display/dc/dml/dml_inline_defs.h
58
static inline double dml_max4(double a, double b, double c, double d)
sys/dev/drm/amd/display/dc/dml/dml_inline_defs.h
60
return dml_max(dml_max(a, b), dml_max(c, d));
sys/dev/drm/amd/display/dc/dml/dml_inline_defs.h
63
static inline double dml_max5(double a, double b, double c, double d, double e)
sys/dev/drm/amd/display/dc/dml/dml_inline_defs.h
65
return dml_max(dml_max4(a, b, c, d), e);
sys/dev/drm/amd/display/dc/inc/hw/mem_input.h
50
struct dcn_watermarks d;
sys/dev/drm/amd/powerplay/inc/smu72.h
53
int32_t d;
sys/dev/drm/amd/powerplay/inc/smu73.h
45
int32_t d;
sys/dev/drm/amd/powerplay/inc/smu74.h
78
int32_t d;
sys/dev/drm/drm_dp_aux_dev.c
246
#define to_auxdev(d) container_of(d, struct drm_dp_aux_dev, aux)
sys/dev/drm/drm_edid.c
1938
u8 d = ext[0x02];
sys/dev/drm/drm_edid.c
1939
u8 *det_base = ext + d;
sys/dev/drm/drm_edid.c
1941
n = (127 - d) / 18;
sys/dev/drm/drm_legacy.h
106
int drm_legacy_lock(struct drm_device *d, void *v, struct drm_file *f);
sys/dev/drm/drm_legacy.h
107
int drm_legacy_unlock(struct drm_device *d, void *v, struct drm_file *f);
sys/dev/drm/drm_legacy.h
50
int drm_legacy_resctx(struct drm_device *d, void *v, struct drm_file *f);
sys/dev/drm/drm_legacy.h
51
int drm_legacy_addctx(struct drm_device *d, void *v, struct drm_file *f);
sys/dev/drm/drm_legacy.h
52
int drm_legacy_getctx(struct drm_device *d, void *v, struct drm_file *f);
sys/dev/drm/drm_legacy.h
53
int drm_legacy_switchctx(struct drm_device *d, void *v, struct drm_file *f);
sys/dev/drm/drm_legacy.h
54
int drm_legacy_newctx(struct drm_device *d, void *v, struct drm_file *f);
sys/dev/drm/drm_legacy.h
55
int drm_legacy_rmctx(struct drm_device *d, void *v, struct drm_file *f);
sys/dev/drm/drm_legacy.h
57
int drm_legacy_setsareactx(struct drm_device *d, void *v, struct drm_file *f);
sys/dev/drm/drm_legacy.h
58
int drm_legacy_getsareactx(struct drm_device *d, void *v, struct drm_file *f);
sys/dev/drm/drm_legacy.h
68
int drm_legacy_addmap_ioctl(struct drm_device *d, void *v, struct drm_file *f);
sys/dev/drm/drm_legacy.h
69
int drm_legacy_rmmap_ioctl(struct drm_device *d, void *v, struct drm_file *f);
sys/dev/drm/drm_legacy.h
70
int drm_legacy_addbufs(struct drm_device *d, void *v, struct drm_file *f);
sys/dev/drm/drm_legacy.h
71
int drm_legacy_infobufs(struct drm_device *d, void *v, struct drm_file *f);
sys/dev/drm/drm_legacy.h
72
int drm_legacy_markbufs(struct drm_device *d, void *v, struct drm_file *f);
sys/dev/drm/drm_legacy.h
73
int drm_legacy_freebufs(struct drm_device *d, void *v, struct drm_file *f);
sys/dev/drm/drm_legacy.h
74
int drm_legacy_mapbufs(struct drm_device *d, void *v, struct drm_file *f);
sys/dev/drm/drm_legacy.h
75
int drm_legacy_dma_ioctl(struct drm_device *d, void *v, struct drm_file *f);
sys/dev/drm/drm_legacy.h
85
void drm_legacy_vma_flush(struct drm_device *d);
sys/dev/drm/drm_legacy.h
87
static inline void drm_legacy_vma_flush(struct drm_device *d)
sys/dev/drm/i915/dvo_ns2501.c
384
#define NSPTR(d) ((NS2501Ptr)(d->DriverPrivate.ptr))
sys/dev/drm/i915/dvo_sil164.c
66
#define SILPTR(d) ((SIL164Ptr)(d->DriverPrivate.ptr))
sys/dev/drm/i915/i915_drv.h
194
uint_fixed_16_16_t d)
sys/dev/drm/i915/i915_drv.h
196
return DIV_ROUND_UP(val.val, d.val);
sys/dev/drm/i915/i915_drv.h
220
static inline uint_fixed_16_16_t div_fixed16(uint32_t val, uint32_t d)
sys/dev/drm/i915/i915_drv.h
225
interm_val = DIV_ROUND_UP_ULL(interm_val, d);
sys/dev/drm/i915/i915_drv.h
230
uint_fixed_16_16_t d)
sys/dev/drm/i915/i915_drv.h
235
interm_val = DIV_ROUND_UP_ULL(interm_val, d.val);
sys/dev/drm/i915/i915_gem_render_state.c
104
d[i++] = s;
sys/dev/drm/i915/i915_gem_render_state.c
111
d[i++] = s;
sys/dev/drm/i915/i915_gem_render_state.c
123
OUT_BATCH(d, i, MI_NOOP);
sys/dev/drm/i915/i915_gem_render_state.c
146
OUT_BATCH(d, i, GEN9_MEDIA_POOL_STATE);
sys/dev/drm/i915/i915_gem_render_state.c
147
OUT_BATCH(d, i, GEN9_MEDIA_POOL_ENABLE);
sys/dev/drm/i915/i915_gem_render_state.c
148
OUT_BATCH(d, i, eu_pool_config);
sys/dev/drm/i915/i915_gem_render_state.c
149
OUT_BATCH(d, i, 0);
sys/dev/drm/i915/i915_gem_render_state.c
150
OUT_BATCH(d, i, 0);
sys/dev/drm/i915/i915_gem_render_state.c
151
OUT_BATCH(d, i, 0);
sys/dev/drm/i915/i915_gem_render_state.c
154
OUT_BATCH(d, i, MI_BATCH_BUFFER_END);
sys/dev/drm/i915/i915_gem_render_state.c
164
drm_clflush_virt_range(d, i * sizeof(u32));
sys/dev/drm/i915/i915_gem_render_state.c
165
kunmap_atomic(d);
sys/dev/drm/i915/i915_gem_render_state.c
173
kunmap_atomic(d);
sys/dev/drm/i915/i915_gem_render_state.c
84
u32 *d;
sys/dev/drm/i915/i915_gem_render_state.c
91
d = kmap_atomic(i915_gem_object_get_dirty_page(so->obj, 0));
sys/dev/drm/i915/i915_trace.h
111
#define trace_i915_page_table_entry_alloc(a,b,c,d)
sys/dev/drm/i915/i915_trace.h
112
#define trace_i915_page_table_entry_map(a,b,c,d,e,f)
sys/dev/drm/i915/i915_trace.h
120
#define trace_vlv_fifo_size(a,b,c,d)
sys/dev/drm/i915/i915_trace.h
45
#define trace_i915_gem_evict(a,b,c,d)
sys/dev/drm/i915/i915_trace.h
51
#define trace_i915_gem_object_fault(a,b,c,d)
sys/dev/drm/i915/i915_trace.h
83
#define trace_i915_reg_rw(a,b,c,d,trace)
sys/dev/drm/i915/intel_display.c
1154
#define assert_fdi_tx_enabled(d, p) assert_fdi_tx(d, p, true)
sys/dev/drm/i915/intel_display.c
1155
#define assert_fdi_tx_disabled(d, p) assert_fdi_tx(d, p, false)
sys/dev/drm/i915/intel_display.c
1169
#define assert_fdi_rx_enabled(d, p) assert_fdi_rx(d, p, true)
sys/dev/drm/i915/intel_display.c
1170
#define assert_fdi_rx_disabled(d, p) assert_fdi_rx(d, p, false)
sys/dev/drm/i915/intel_display.c
15126
struct pci_dev *d = dev->pdev;
sys/dev/drm/i915/intel_display.c
15132
if (d->device == q->device &&
sys/dev/drm/i915/intel_display.c
15133
(d->subsystem_vendor == q->subsystem_vendor ||
sys/dev/drm/i915/intel_display.c
15135
(d->subsystem_device == q->subsystem_device ||
sys/dev/drm/i915/intel_dp.c
2708
#define assert_dp_port_disabled(d) assert_dp_port((d), false)
sys/dev/drm/i915/intel_dp.c
2718
#define assert_edp_pll_enabled(d) assert_edp_pll((d), true)
sys/dev/drm/i915/intel_dp.c
2719
#define assert_edp_pll_disabled(d) assert_edp_pll((d), false)
sys/dev/drm/i915/intel_dpll_mgr.c
1251
unsigned int dco, d, i;
sys/dev/drm/i915/intel_dpll_mgr.c
1256
for (d = 0; d < ARRAY_SIZE(dividers); d++) {
sys/dev/drm/i915/intel_dpll_mgr.c
1258
for (i = 0; i < dividers[d].n_dividers; i++) {
sys/dev/drm/i915/intel_dpll_mgr.c
1259
unsigned int p = dividers[d].list[i];
sys/dev/drm/i915/intel_dpll_mgr.c
1281
if (d == 0 && ctx.p)
sys/dev/drm/i915/intel_dpll_mgr.c
2247
int d, best_div = 0, pdiv = 0, qdiv = 0, kdiv = 0;
sys/dev/drm/i915/intel_dpll_mgr.c
2249
for (d = 0; d < ARRAY_SIZE(dividers); d++) {
sys/dev/drm/i915/intel_dpll_mgr.c
2250
dco = afe_clock * dividers[d];
sys/dev/drm/i915/intel_dpll_mgr.c
2257
best_div = dividers[d];
sys/dev/drm/i915/intel_dpll_mgr.c
644
uint64_t a, b, c, d, diff, diff_best;
sys/dev/drm/i915/intel_dpll_mgr.c
674
d = 1000000 * diff_best;
sys/dev/drm/i915/intel_dpll_mgr.c
676
if (a < c && b < d) {
sys/dev/drm/i915/intel_dpll_mgr.c
683
} else if (a >= c && b < d) {
sys/dev/drm/i915/intel_dpll_mgr.c
688
} else if (a >= c && b >= d) {
sys/dev/drm/i915/intel_dpll_mgr.h
329
#define assert_shared_dpll_enabled(d, p) assert_shared_dpll(d, p, true)
sys/dev/drm/i915/intel_dpll_mgr.h
330
#define assert_shared_dpll_disabled(d, p) assert_shared_dpll(d, p, false)
sys/dev/drm/i915/intel_drv.h
1625
#define assert_pll_enabled(d, p) assert_pll(d, p, true)
sys/dev/drm/i915/intel_drv.h
1626
#define assert_pll_disabled(d, p) assert_pll(d, p, false)
sys/dev/drm/i915/intel_drv.h
1628
#define assert_dsi_pll_enabled(d) assert_dsi_pll(d, true)
sys/dev/drm/i915/intel_drv.h
1629
#define assert_dsi_pll_disabled(d) assert_dsi_pll(d, false)
sys/dev/drm/i915/intel_drv.h
1632
#define assert_fdi_rx_pll_enabled(d, p) assert_fdi_rx_pll(d, p, true)
sys/dev/drm/i915/intel_drv.h
1633
#define assert_fdi_rx_pll_disabled(d, p) assert_fdi_rx_pll(d, p, false)
sys/dev/drm/i915/intel_drv.h
1635
#define assert_pipe_enabled(d, p) assert_pipe(d, p, true)
sys/dev/drm/i915/intel_drv.h
1636
#define assert_pipe_disabled(d, p) assert_pipe(d, p, false)
sys/dev/drm/i915/intel_lpe_audio.c
149
static void lpe_audio_irq_unmask(struct irq_data *d)
sys/dev/drm/i915/intel_lpe_audio.c
153
static void lpe_audio_irq_mask(struct irq_data *d)
sys/dev/drm/i915/intel_uncore.c
103
const struct intel_uncore_forcewake_domain *d,
sys/dev/drm/i915/intel_uncore.c
106
return __wait_for_ack(i915, d, ack, ack);
sys/dev/drm/i915/intel_uncore.c
111
const struct intel_uncore_forcewake_domain *d)
sys/dev/drm/i915/intel_uncore.c
113
if (wait_ack_clear(i915, d, FORCEWAKE_KERNEL))
sys/dev/drm/i915/intel_uncore.c
115
intel_uncore_forcewake_domain_to_str(d->id));
sys/dev/drm/i915/intel_uncore.c
125
const struct intel_uncore_forcewake_domain *d,
sys/dev/drm/i915/intel_uncore.c
1340
struct intel_uncore_forcewake_domain *d;
sys/dev/drm/i915/intel_uncore.c
1345
d = &dev_priv->uncore.fw_domain[domain_id];
sys/dev/drm/i915/intel_uncore.c
1347
WARN_ON(d->wake_count);
sys/dev/drm/i915/intel_uncore.c
1352
d->wake_count = 0;
sys/dev/drm/i915/intel_uncore.c
1353
d->reg_set = reg_set;
sys/dev/drm/i915/intel_uncore.c
1354
d->reg_ack = reg_ack;
sys/dev/drm/i915/intel_uncore.c
1356
d->id = domain_id;
sys/dev/drm/i915/intel_uncore.c
1369
d->mask = BIT(domain_id);
sys/dev/drm/i915/intel_uncore.c
1371
hrtimer_init(&d->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
sys/dev/drm/i915/intel_uncore.c
1372
d->timer.function = intel_uncore_fw_release_timer;
sys/dev/drm/i915/intel_uncore.c
1376
fw_domain_reset(dev_priv, d);
sys/dev/drm/i915/intel_uncore.c
1382
struct intel_uncore_forcewake_domain *d;
sys/dev/drm/i915/intel_uncore.c
1387
d = &dev_priv->uncore.fw_domain[domain_id];
sys/dev/drm/i915/intel_uncore.c
1389
WARN_ON(d->wake_count);
sys/dev/drm/i915/intel_uncore.c
1390
WARN_ON(hrtimer_cancel(&d->timer));
sys/dev/drm/i915/intel_uncore.c
1391
memset(d, 0, sizeof(*d));
sys/dev/drm/i915/intel_uncore.c
149
wait_ack_clear(i915, d, FORCEWAKE_KERNEL_FALLBACK);
sys/dev/drm/i915/intel_uncore.c
151
__raw_i915_write32(i915, d->reg_set,
sys/dev/drm/i915/intel_uncore.c
1518
#define ASSIGN_FW_DOMAINS_TABLE(d) \
sys/dev/drm/i915/intel_uncore.c
1521
(struct intel_forcewake_range *)(d); \
sys/dev/drm/i915/intel_uncore.c
1522
dev_priv->uncore.fw_domains_table_entries = ARRAY_SIZE((d)); \
sys/dev/drm/i915/intel_uncore.c
155
wait_ack_set(i915, d, FORCEWAKE_KERNEL_FALLBACK);
sys/dev/drm/i915/intel_uncore.c
157
ack_detected = (__raw_i915_read32(i915, d->reg_ack) & ack_bit) == value;
sys/dev/drm/i915/intel_uncore.c
159
__raw_i915_write32(i915, d->reg_set,
sys/dev/drm/i915/intel_uncore.c
164
intel_uncore_forcewake_domain_to_str(d->id),
sys/dev/drm/i915/intel_uncore.c
166
__raw_i915_read32(i915, d->reg_ack),
sys/dev/drm/i915/intel_uncore.c
174
const struct intel_uncore_forcewake_domain *d)
sys/dev/drm/i915/intel_uncore.c
176
if (likely(!wait_ack_clear(i915, d, FORCEWAKE_KERNEL)))
sys/dev/drm/i915/intel_uncore.c
179
if (fw_domain_wait_ack_with_fallback(i915, d, ACK_CLEAR))
sys/dev/drm/i915/intel_uncore.c
180
fw_domain_wait_ack_clear(i915, d);
sys/dev/drm/i915/intel_uncore.c
185
const struct intel_uncore_forcewake_domain *d)
sys/dev/drm/i915/intel_uncore.c
187
__raw_i915_write32(i915, d->reg_set, i915->uncore.fw_set);
sys/dev/drm/i915/intel_uncore.c
192
const struct intel_uncore_forcewake_domain *d)
sys/dev/drm/i915/intel_uncore.c
194
if (wait_ack_set(i915, d, FORCEWAKE_KERNEL))
sys/dev/drm/i915/intel_uncore.c
196
intel_uncore_forcewake_domain_to_str(d->id));
sys/dev/drm/i915/intel_uncore.c
201
const struct intel_uncore_forcewake_domain *d)
sys/dev/drm/i915/intel_uncore.c
203
if (likely(!wait_ack_set(i915, d, FORCEWAKE_KERNEL)))
sys/dev/drm/i915/intel_uncore.c
206
if (fw_domain_wait_ack_with_fallback(i915, d, ACK_SET))
sys/dev/drm/i915/intel_uncore.c
207
fw_domain_wait_ack_set(i915, d);
sys/dev/drm/i915/intel_uncore.c
212
const struct intel_uncore_forcewake_domain *d)
sys/dev/drm/i915/intel_uncore.c
214
__raw_i915_write32(i915, d->reg_set, i915->uncore.fw_clear);
sys/dev/drm/i915/intel_uncore.c
220
struct intel_uncore_forcewake_domain *d;
sys/dev/drm/i915/intel_uncore.c
225
for_each_fw_domain_masked(d, fw_domains, i915, tmp) {
sys/dev/drm/i915/intel_uncore.c
226
fw_domain_wait_ack_clear(i915, d);
sys/dev/drm/i915/intel_uncore.c
227
fw_domain_get(i915, d);
sys/dev/drm/i915/intel_uncore.c
230
for_each_fw_domain_masked(d, fw_domains, i915, tmp)
sys/dev/drm/i915/intel_uncore.c
231
fw_domain_wait_ack_set(i915, d);
sys/dev/drm/i915/intel_uncore.c
240
struct intel_uncore_forcewake_domain *d;
sys/dev/drm/i915/intel_uncore.c
245
for_each_fw_domain_masked(d, fw_domains, i915, tmp) {
sys/dev/drm/i915/intel_uncore.c
246
fw_domain_wait_ack_clear_fallback(i915, d);
sys/dev/drm/i915/intel_uncore.c
247
fw_domain_get(i915, d);
sys/dev/drm/i915/intel_uncore.c
250
for_each_fw_domain_masked(d, fw_domains, i915, tmp)
sys/dev/drm/i915/intel_uncore.c
251
fw_domain_wait_ack_set_fallback(i915, d);
sys/dev/drm/i915/intel_uncore.c
259
struct intel_uncore_forcewake_domain *d;
sys/dev/drm/i915/intel_uncore.c
264
for_each_fw_domain_masked(d, fw_domains, i915, tmp)
sys/dev/drm/i915/intel_uncore.c
265
fw_domain_put(i915, d);
sys/dev/drm/i915/intel_uncore.c
274
struct intel_uncore_forcewake_domain *d;
sys/dev/drm/i915/intel_uncore.c
282
for_each_fw_domain_masked(d, fw_domains, i915, tmp)
sys/dev/drm/i915/intel_uncore.c
283
fw_domain_reset(i915, d);
sys/dev/drm/i915/intel_uncore.c
63
const struct intel_uncore_forcewake_domain *d)
sys/dev/drm/i915/intel_uncore.c
70
__raw_i915_write32(i915, d->reg_set, i915->uncore.fw_reset);
sys/dev/drm/i915/intel_uncore.c
74
fw_domain_arm_timer(struct intel_uncore_forcewake_domain *d)
sys/dev/drm/i915/intel_uncore.c
76
d->wake_count++;
sys/dev/drm/i915/intel_uncore.c
77
hrtimer_start_range_ns(&d->timer,
sys/dev/drm/i915/intel_uncore.c
85
const struct intel_uncore_forcewake_domain *d,
sys/dev/drm/i915/intel_uncore.c
876
#define GEN_FW_RANGE(s, e, d) \
sys/dev/drm/i915/intel_uncore.c
877
{ .start = (s), .end = (e), .domains = (d) }
sys/dev/drm/i915/intel_uncore.c
89
return wait_for_atomic((__raw_i915_read32(i915, d->reg_ack) & ack) == value,
sys/dev/drm/i915/intel_uncore.c
95
const struct intel_uncore_forcewake_domain *d,
sys/dev/drm/i915/intel_uncore.c
98
return __wait_for_ack(i915, d, ack, 0);
sys/dev/drm/i915/vlv_dsi_pll.c
92
int d = abs(target_dsi_clk - calc_dsi_clk);
sys/dev/drm/i915/vlv_dsi_pll.c
93
if (d < delta) {
sys/dev/drm/i915/vlv_dsi_pll.c
94
delta = d;
sys/dev/drm/include/drm/drm_legacy.h
156
int drm_legacy_addmap(struct drm_device *d, resource_size_t offset,
sys/dev/drm/include/drm/drm_legacy.h
159
void drm_legacy_rmmap(struct drm_device *d, struct drm_local_map *map);
sys/dev/drm/include/drm/drm_legacy.h
160
int drm_legacy_rmmap_locked(struct drm_device *d, struct drm_local_map *map);
sys/dev/drm/include/drm/drm_legacy.h
165
int drm_legacy_addbufs_agp(struct drm_device *d, struct drm_buf_desc *req);
sys/dev/drm/include/drm/drm_legacy.h
166
int drm_legacy_addbufs_pci(struct drm_device *d, struct drm_buf_desc *req);
sys/dev/drm/include/drm/drm_os_linux.h
28
#define DRM_UDELAY(d) DELAY(d)
sys/dev/drm/include/linux/bitmap.h
61
bitmap_complement(void *d, void *s, u_int n)
sys/dev/drm/include/linux/bitmap.h
63
u_int *dst = d;
sys/dev/drm/include/linux/kernel.h
129
#define DIV_ROUND_CLOSEST_ULL(ll, d) \
sys/dev/drm/include/linux/kernel.h
130
({ unsigned long long _tmp = (ll)+(d)/2; do_div(_tmp, d); _tmp; })
sys/dev/drm/include/linux/lockdep.h
46
#define lock_acquire_shared_recursive(lock, b, c, d, e) do {} while (0)
sys/dev/drm/include/linux/timer.h
62
#define setup_timer_on_stack(t, f,d) setup_timer(t, f, d)
sys/dev/drm/include/uapi/drm/drm_fourcc.h
69
#define fourcc_code(a, b, c, d) ((__u32)(a) | ((__u32)(b) << 8) | \
sys/dev/drm/include/uapi/drm/drm_fourcc.h
70
((__u32)(c) << 16) | ((__u32)(d) << 24))
sys/dev/drm/radeon/evergreen_cs.c
872
unsigned w, h, d;
sys/dev/drm/radeon/evergreen_cs.c
876
d = r600_mip_minify(depth, i);
sys/dev/drm/radeon/evergreen_cs.c
906
moffset += surf.layer_size * d;
sys/dev/drm/radeon/evergreen_cs.c
916
d, radeon_bo_size(mipmap),
sys/dev/drm/radeon/ni_dpm.c
1395
u64 tmp, n, d;
sys/dev/drm/radeon/ni_dpm.c
1421
d = ((u64)std_vddc_high * (u64)std_vddc_high * 100);
sys/dev/drm/radeon/ni_dpm.c
1422
tmp = div64_u64(n, d);
sys/dev/drm/radeon/r100.c
2170
unsigned u, i, w, h, d;
sys/dev/drm/radeon/r100.c
2205
d = (1 << track->textures[u].txdepth) / (1 << i);
sys/dev/drm/radeon/r100.c
2206
if (!d)
sys/dev/drm/radeon/r100.c
2207
d = 1;
sys/dev/drm/radeon/r100.c
2209
d = 1;
sys/dev/drm/radeon/r100.c
2213
size += r100_track_compress_size(track->textures[u].compress_format, w, h) * d;
sys/dev/drm/radeon/r100.c
2216
size += w * h * d;
sys/dev/drm/radeon/radeon.h
2757
#define radeon_copy_blit(rdev, s, d, np, resv) (rdev)->asic->copy.blit((rdev), (s), (d), (np), (resv))
sys/dev/drm/radeon/radeon.h
2758
#define radeon_copy_dma(rdev, s, d, np, resv) (rdev)->asic->copy.dma((rdev), (s), (d), (np), (resv))
sys/dev/drm/radeon/radeon.h
2759
#define radeon_copy(rdev, s, d, np, resv) (rdev)->asic->copy.copy((rdev), (s), (d), (np), (resv))
sys/dev/drm/radeon/radeon.h
2770
#define radeon_set_uvd_clocks(rdev, v, d) (rdev)->asic->pm.set_uvd_clocks((rdev), (v), (d))
sys/dev/drm/radeon/radeon_display.c
1094
static inline uint32_t radeon_div(uint64_t n, uint32_t d)
sys/dev/drm/radeon/radeon_display.c
1098
n += d / 2;
sys/dev/drm/radeon/radeon_display.c
1100
mod = do_div(n, d);
sys/dev/drm/radeon/si_dpm.c
2260
u64 pwr_efficiency_ratio, n, d;
sys/dev/drm/radeon/si_dpm.c
2266
d = prev_vddc * prev_vddc;
sys/dev/drm/radeon/si_dpm.c
2267
pwr_efficiency_ratio = div64_u64(n, d);
sys/dev/drm/ttm/ttm_bo_util.c
267
struct page *d = ttm->pages[page];
sys/dev/drm/ttm/ttm_bo_util.c
270
if (!d)
sys/dev/drm/ttm/ttm_bo_util.c
276
dst = kmap_atomic_prot(d, prot);
sys/dev/drm/ttm/ttm_bo_util.c
279
dst = vmap(&d, 1, 0, prot);
sys/dev/drm/ttm/ttm_bo_util.c
281
dst = kmap(d);
sys/dev/drm/ttm/ttm_bo_util.c
294
kunmap(d);
sys/dev/misc/evdev/evdev_mt.c
250
int i, j, k, d, e, row, col, delta;
sys/dev/misc/evdev/evdev_mt.c
266
d = *p - red[i];
sys/dev/misc/evdev/evdev_mt.c
267
if (d < delta || (d == delta && r2c[i] < 0)) {
sys/dev/misc/evdev/evdev_mt.c
268
delta = d;
sys/dev/misc/evdev/evdev_mt.c
285
d = p[mc[i]] - cd[mc[i]];
sys/dev/misc/evdev/evdev_mt.c
287
if (e < d) {
sys/dev/misc/evdev/evdev_mt.c
288
d = e;
sys/dev/misc/evdev/evdev_mt.c
291
d -= red[i];
sys/dev/misc/evdev/evdev_mt.c
292
if (d < delta || (d == delta
sys/dev/misc/evdev/evdev_mt.c
294
delta = d;
sys/dev/misc/joy/joy.c
57
#define joypart(d) (minor(d)&1)
sys/dev/misc/joy/joy.c
58
#define UNIT(d) ((minor(d)>>1)&3)
sys/dev/misc/kbd/atkbdc.c
575
write_controller_w1r1(KBDC p, int c, int d)
sys/dev/misc/kbd/atkbdc.c
579
if (!write_controller_data(p, d))
sys/dev/misc/kbd/atkbdc.c
674
send_kbd_command_and_data(KBDC p, int c, int d)
sys/dev/misc/kbd/atkbdc.c
692
if (!write_kbd_command(p, d))
sys/dev/misc/kbd/atkbdc.c
703
send_aux_command_and_data(KBDC p, int c, int d)
sys/dev/misc/kbd/atkbdc.c
722
if (!write_aux_command(p, d))
sys/dev/misc/kbd/atkbdc.c
75
#define write_data(k, d) (bus_space_write_1((k)->iot, (k)->ioh0, 0, (d)))
sys/dev/misc/kbd/atkbdc.c
76
#define write_command(k, d) (bus_space_write_1((k)->iot, (k)->ioh1, 0, (d)))
sys/dev/misc/kbd/atkbdcreg.h
278
int write_controller_w1r1(KBDC kbdc, int c, int d);
sys/dev/misc/kbd/atkbdcreg.h
284
int send_kbd_command_and_data(KBDC kbdc,int c,int d);
sys/dev/misc/kbd/atkbdcreg.h
285
int send_aux_command_and_data(KBDC kbdc,int c,int d);
sys/dev/misc/syscons/logo/logo_saver.c
54
int d, l, o, p;
sys/dev/misc/syscons/logo/logo_saver.c
60
for (d = 0; d < sizeof logo_img; d += logo_w) {
sys/dev/misc/syscons/logo/logo_saver.c
62
bcopy(logo_img + d, vid + p, logo_w);
sys/dev/misc/syscons/logo/logo_saver.c
66
bcopy(logo_img + d, vid + p, l);
sys/dev/misc/syscons/logo/logo_saver.c
68
bcopy(logo_img + d + l, vid, logo_w - l);
sys/dev/misc/syscons/logo/logo_saver.c
73
bcopy(logo_img + d, vid + p, logo_w);
sys/dev/misc/syscons/sckmsrndr.c
418
int i, j, d;
sys/dev/misc/syscons/sckmsrndr.c
420
d = line_width - width * 3;
sys/dev/misc/syscons/sckmsrndr.c
421
KKASSERT(d >= 0);
sys/dev/misc/syscons/sckmsrndr.c
435
draw_pos += d;
sys/dev/misc/syscons/scvgarndr.c
708
vm_offset_t d;
sys/dev/misc/syscons/scvgarndr.c
718
d = VIDEO_MEMORY_POS(scp, from, 1);
sys/dev/misc/syscons/scvgarndr.c
743
writeb(d, 0);
sys/dev/misc/syscons/scvgarndr.c
744
c = readb(d); /* set bg color in the latch */
sys/dev/misc/syscons/scvgarndr.c
749
e = d;
sys/dev/misc/syscons/scvgarndr.c
755
++d;
sys/dev/misc/syscons/scvgarndr.c
757
d += scp->xoff*2
sys/dev/misc/syscons/scvgarndr.c
879
vm_offset_t d;
sys/dev/misc/syscons/scvgarndr.c
890
d = VIDEO_MEMORY_POS(scp, at, 1) +
sys/dev/misc/syscons/scvgarndr.c
904
writeb(d, 0);
sys/dev/misc/syscons/scvgarndr.c
905
c = readb(d); /* set bg color in the latch */
sys/dev/misc/syscons/scvgarndr.c
917
writeb(d, 0);
sys/dev/misc/syscons/scvgarndr.c
918
d -= line_width;
sys/dev/misc/syscons/scvidctl.c
421
#define fb_ioctl(a, c, d) \
sys/dev/misc/syscons/scvidctl.c
423
(*vidsw[(a)->va_index]->ioctl)((a), (c), (caddr_t)(d)))
sys/dev/misc/syscons/scvtb.c
55
sc_vtb_bcopy(void *s, void *d, size_t bytes)
sys/dev/misc/syscons/scvtb.c
60
uint16_t *dw = d;
sys/dev/misc/syscons/scvtb.c
63
if (s < d) {
sys/dev/misc/vkbd/vkbd.c
100
#define VKBD_KEYBOARD(d) \
sys/dev/misc/vkbd/vkbd.c
101
kbd_get_keyboard(kbd_find_keyboard(KEYBOARD_NAME, dev2unit(d)))
sys/dev/misc/vkbd/vkbd.c
88
#define VKBD_SLEEP(s, f, d, t) \
sys/dev/misc/vkbd/vkbd.c
89
msleep(&(s)->f, &(s)->ks_lock, PCATCH | PZERO, d, t)
sys/dev/misc/vkbd/vkbd.c
97
#define VKBD_SLEEP(s, f, d, t) tsleep(&(s)->f, PCATCH | 0, d, t)
sys/dev/netif/alc/if_alc.c
1647
#define ALC_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/netif/alc/if_alc.c
1648
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/netif/alc/if_alc.c
1649
#define ALC_SYSCTL_STAT_ADD64(c, h, n, p, d) \
sys/dev/netif/alc/if_alc.c
1650
SYSCTL_ADD_QUAD(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/netif/ale/if_ale.c
687
#define ALE_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/netif/ale/if_ale.c
688
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/netif/ale/if_ale.c
689
#define ALE_SYSCTL_STAT_ADD64(c, h, n, p, d) \
sys/dev/netif/ale/if_ale.c
690
SYSCTL_ADD_QUAD(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/netif/ath/ath/if_ath_pci.c
119
#define PCI_DEVICE_SUB(v, d, dv, ds) \
sys/dev/netif/ath/ath/if_ath_pci.c
122
.device_id = (d), .match_device_id = 1, \
sys/dev/netif/bfe/if_bfe.c
1226
struct bfe_desc *d;
sys/dev/netif/bfe/if_bfe.c
1239
d = &sc->bfe_tx_list[cur];
sys/dev/netif/bfe/if_bfe.c
1240
d->bfe_addr = segs[i].ds_addr + BFE_PCI_DMA;
sys/dev/netif/bfe/if_bfe.c
1241
d->bfe_ctrl = ctrl;
sys/dev/netif/bfe/if_bfe.c
602
struct bfe_desc *d;
sys/dev/netif/bfe/if_bfe.c
608
d = &sc->bfe_rx_list[c];
sys/dev/netif/bfe/if_bfe.c
622
d->bfe_addr = r->bfe_paddr + BFE_PCI_DMA;
sys/dev/netif/bfe/if_bfe.c
623
d->bfe_ctrl = ctrl;
sys/dev/netif/bge/if_bge.c
3512
struct bge_tx_bd *d = NULL, *last_d;
sys/dev/netif/bge/if_bge.c
3593
d = &sc->bge_ldata.bge_tx_ring[idx];
sys/dev/netif/bge/if_bge.c
3595
d->bge_addr.bge_addr_lo = BGE_ADDR_LO(segs[i].ds_addr);
sys/dev/netif/bge/if_bge.c
3596
d->bge_addr.bge_addr_hi = BGE_ADDR_HI(segs[i].ds_addr);
sys/dev/netif/bge/if_bge.c
3597
d->bge_len = segs[i].ds_len;
sys/dev/netif/bge/if_bge.c
3598
d->bge_flags = csum_flags;
sys/dev/netif/bge/if_bge.c
3599
d->bge_mss = mss;
sys/dev/netif/bge/if_bge.c
3605
last_d = d;
sys/dev/netif/bge/if_bge.c
3608
d = &sc->bge_ldata.bge_tx_ring[*txidx];
sys/dev/netif/bge/if_bge.c
3610
d->bge_flags |= BGE_TXBDFLAG_VLAN_TAG;
sys/dev/netif/bge/if_bge.c
3611
d->bge_vlan_tag = m_head->m_pkthdr.ether_vlantag;
sys/dev/netif/bge/if_bge.c
3613
d->bge_vlan_tag = 0;
sys/dev/netif/bnx/if_bnx.c
3384
struct bge_tx_bd *d = NULL;
sys/dev/netif/bnx/if_bnx.c
3484
d = &txr->bnx_tx_ring[idx];
sys/dev/netif/bnx/if_bnx.c
3486
d->bge_addr.bge_addr_lo = BGE_ADDR_LO(segs[i].ds_addr);
sys/dev/netif/bnx/if_bnx.c
3487
d->bge_addr.bge_addr_hi = BGE_ADDR_HI(segs[i].ds_addr);
sys/dev/netif/bnx/if_bnx.c
3488
d->bge_len = segs[i].ds_len;
sys/dev/netif/bnx/if_bnx.c
3489
d->bge_flags = csum_flags;
sys/dev/netif/bnx/if_bnx.c
3490
d->bge_vlan_tag = vlan_tag;
sys/dev/netif/bnx/if_bnx.c
3491
d->bge_mss = mss;
sys/dev/netif/bnx/if_bnx.c
3498
d->bge_flags |= BGE_TXBDFLAG_END;
sys/dev/netif/bwn/bwn/if_bwn.c
6488
uint32_t d, plen;
sys/dev/netif/bwn/bwn/if_bwn.c
6492
d = bwn_plcp_getofdm(rate);
sys/dev/netif/bwn/bwn/if_bwn.c
6495
d |= (octets << 5);
sys/dev/netif/bwn/bwn/if_bwn.c
6496
plcp->o.data = htole32(d);
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2387
struct bwn_loctl *probe, struct bwn_lo_g_sm *d)
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2400
if (d->curstate == 0) {
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2403
} else if (d->curstate % 2 == 0) {
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2404
begin = d->curstate - 1;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2405
end = d->curstate + 1;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2407
begin = d->curstate - 2;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2408
end = d->curstate + 2;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2417
d->curstate = i;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2421
test.i += modifiers[i - 1].i * d->multipler;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2422
test.q += modifiers[i - 1].q * d->multipler;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2428
if (feedth < d->feedth) {
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2432
d->feedth = feedth;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2433
if (d->nmeasure < 2 && !BWN_HAS_LOOPBACK(phy))
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2444
d->curstate = i;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2455
struct bwn_lo_g_sm d;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2460
d.nmeasure = 0;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2461
d.multipler = 1;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2463
d.multipler = 3;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2465
memcpy(&d.loctl, loctl, sizeof(struct bwn_loctl));
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2469
bwn_lo_write(mac, &d.loctl);
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2480
d.feedth = feedth;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2481
d.curstate = 0;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2483
KASSERT(d.curstate >= 0 && d.curstate <= 8,
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2485
memcpy(&probe, &d.loctl,
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2487
lower = bwn_lo_probe_loctl(mac, &probe, &d);
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2490
if ((probe.i == d.loctl.i) && (probe.q == d.loctl.q))
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2492
memcpy(&d.loctl, &probe, sizeof(struct bwn_loctl));
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2493
d.nmeasure++;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2494
} while (d.nmeasure < 24);
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2495
memcpy(loctl, &d.loctl, sizeof(struct bwn_loctl));
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2498
if (d.feedth > 0x1194)
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2500
else if (d.feedth < 0x5dc)
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2503
if (d.feedth <= 0x5dc) {
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2504
d.multipler = 1;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2507
d.multipler = 2;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2509
d.multipler = 1;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
3509
unsigned int a, b, c, d;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
3517
d = (tmp >> 24) & 0xff;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
3519
c == 0 || c == BWN_TSSI_MAX || d == 0 || d == BWN_TSSI_MAX)
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
3529
d = (d + 32) & 0x3f;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
3532
avg = (a + b + c + d + 2) / 4;
sys/dev/netif/dc/if_dc.c
445
int d, i;
sys/dev/netif/dc/if_dc.c
447
d = DC_EECMD_READ >> 6;
sys/dev/netif/dc/if_dc.c
449
if (d & (1 << i))
sys/dev/netif/de/dc21040reg.h
37
#define TULIP_BITFIELD4(a, b, c, d) d, c, b, a
sys/dev/netif/de/dc21040reg.h
41
#define TULIP_BITFIELD4(a, b, c, d) a, b, c, d
sys/dev/netif/emx/if_emx.c
512
const struct emx_device *d;
sys/dev/netif/emx/if_emx.c
518
for (d = emx_devices; d->desc != NULL; ++d) {
sys/dev/netif/emx/if_emx.c
519
if (vid == d->vid && did == d->did) {
sys/dev/netif/emx/if_emx.c
520
device_set_desc(dev, d->desc);
sys/dev/netif/et/if_et.c
217
const struct et_dev *d;
sys/dev/netif/et/if_et.c
223
for (d = et_devices; d->desc != NULL; ++d) {
sys/dev/netif/et/if_et.c
224
if (vid == d->vid && did == d->did) {
sys/dev/netif/et/if_et.c
225
device_set_desc(dev, d->desc);
sys/dev/netif/ig_hal/e1000_mac.c
110
u16 E1000_UNUSEDARG *s, u16 E1000_UNUSEDARG *d)
sys/dev/netif/ig_hal/e1000_mac.h
42
s32 e1000_null_link_info(struct e1000_hw *hw, u16 *s, u16 *d);
sys/dev/netif/igb/if_igb.c
467
const struct igb_device *d;
sys/dev/netif/igb/if_igb.c
473
for (d = igb_devices; d->desc != NULL; ++d) {
sys/dev/netif/igb/if_igb.c
474
if (vid == d->vid && did == d->did) {
sys/dev/netif/igb/if_igb.c
475
device_set_desc(dev, d->desc);
sys/dev/netif/iwn/if_iwn.c
5155
struct iwn_ioctl_data *d;
sys/dev/netif/iwn/if_iwn.c
5164
d = (struct iwn_ioctl_data *) data;
sys/dev/netif/iwn/if_iwn.c
5167
rc = copyout(&sc->last_stat, d->dst_addr, sizeof(struct iwn_stats));
sys/dev/netif/ix/if_ix.c
401
const struct ix_device *d;
sys/dev/netif/ix/if_ix.c
407
for (d = ix_devices; d->desc != NULL; ++d) {
sys/dev/netif/ix/if_ix.c
408
if (vid == d->vid && did == d->did) {
sys/dev/netif/ix/if_ix.c
409
device_set_desc(dev, d->desc);
sys/dev/netif/jme/if_jmevar.h
116
#define JME_DESC_ADD(x, d, y) ((x) = ((x) + (d)) % (y))
sys/dev/netif/nge/if_nge.c
282
int d, i;
sys/dev/netif/nge/if_nge.c
284
d = addr | NGE_EECMD_READ;
sys/dev/netif/nge/if_nge.c
290
if (d & i)
sys/dev/netif/oce/oce_if.h
945
#define oce_dma_sync(d, f) bus_dmamap_sync((d)->tag, (d)->map, f)
sys/dev/netif/ral/rt2860.c
4234
int8_t ridx, d;
sys/dev/netif/ral/rt2860.c
4249
for (d = 0; d > -4 && bbp49 <= tssi[d - 1]; d--);
sys/dev/netif/ral/rt2860.c
4252
for (d = 0; d < +4 && bbp49 >= tssi[d + 1]; d++);
sys/dev/netif/ral/rt2860.c
4255
d = 0;
sys/dev/netif/ral/rt2860.c
4257
d *= step;
sys/dev/netif/ral/rt2860.c
4259
DPRINTF(("BBP49=0x%02x, adjusting Tx power by %d\n", bbp49, d));
sys/dev/netif/ral/rt2860.c
4266
b4inc(sc->txpow20mhz[ridx], d));
sys/dev/netif/re/if_re.c
1538
struct re_desc *d, *tx_ring;
sys/dev/netif/re/if_re.c
1644
d = &tx_ring[idx];
sys/dev/netif/re/if_re.c
1648
d->re_bufaddr_lo = htole32(RE_ADDR_LO(segs[i].ds_addr));
sys/dev/netif/re/if_re.c
1649
d->re_bufaddr_hi = htole32(RE_ADDR_HI(segs[i].ds_addr));
sys/dev/netif/re/if_re.c
1664
d->re_control = htole32(ctl_csum | vlantag);
sys/dev/netif/re/if_re.c
1665
d->re_cmdstat = htole32(cmdstat | cmd_csum);
sys/dev/netif/re/if_re.c
1672
d->re_cmdstat |= htole32(RE_TDESC_CMD_EOF);
sys/dev/netif/re/if_re.c
1675
d->re_cmdstat |= htole32(RE_TDESC_CMD_OWN);
sys/dev/netif/re/if_re.c
942
struct re_desc *d;
sys/dev/netif/re/if_re.c
945
d = &sc->re_ldata.re_rx_list[idx];
sys/dev/netif/re/if_re.c
947
d->re_bufaddr_lo = htole32(RE_ADDR_LO(paddr));
sys/dev/netif/re/if_re.c
948
d->re_bufaddr_hi = htole32(RE_ADDR_HI(paddr));
sys/dev/netif/re/if_re.c
953
d->re_cmdstat = htole32(cmdstat);
sys/dev/netif/re/re.c
31838
u_int16_t x,d,i;
sys/dev/netif/re/re.c
31842
d = 0;
sys/dev/netif/re/re.c
31845
d = d << 1;
sys/dev/netif/re/re.c
31852
d |= 1;
sys/dev/netif/re/re.c
31857
return d;
sys/dev/netif/rl/if_rl.c
268
int d, i;
sys/dev/netif/rl/if_rl.c
270
d = addr | sc->rl_eecmd_read;
sys/dev/netif/rl/if_rl.c
276
if (d & i)
sys/dev/netif/sis/if_sis.c
270
int d, i;
sys/dev/netif/sis/if_sis.c
272
d = addr | SIS_EECMD_READ;
sys/dev/netif/sis/if_sis.c
278
if (d & i)
sys/dev/netif/sln/if_sln.c
154
const struct sln_dev *d;
sys/dev/netif/sln/if_sln.c
160
for (d = sln_devs; d->desc != NULL; d++) {
sys/dev/netif/sln/if_sln.c
161
if (vid == d->vid && did == d->did) {
sys/dev/netif/sln/if_sln.c
162
device_set_desc(dev, d->desc);
sys/dev/netif/ste/if_ste.c
1354
struct ste_desc *d;
sys/dev/netif/ste/if_ste.c
1357
d = c->ste_ptr;
sys/dev/netif/ste/if_ste.c
1358
d->ste_ctl = 0;
sys/dev/netif/ste/if_ste.c
1366
f = &d->ste_frags[frag];
sys/dev/netif/ste/if_ste.c
1402
d->ste_frags[frag - 1].ste_len |= STE_FRAG_LAST;
sys/dev/netif/ste/if_ste.c
1403
d->ste_ctl = 1;
sys/dev/netif/txp/if_txp.c
1635
txp_show_descriptor(void *d)
sys/dev/netif/txp/if_txp.c
1637
struct txp_cmd_desc *cmd = d;
sys/dev/netif/txp/if_txp.c
1638
struct txp_rsp_desc *rsp = d;
sys/dev/netif/txp/if_txp.c
1639
struct txp_tx_desc *txd = d;
sys/dev/netif/txp/if_txp.c
1640
struct txp_frag_desc *frgd = d;
sys/dev/netif/vge/if_vge.c
626
struct vge_rx_desc *d = NULL;
sys/dev/netif/vge/if_vge.c
642
d = &ctx->sc->vge_ldata.vge_rx_list[ctx->vge_idx];
sys/dev/netif/vge/if_vge.c
645
if (le32toh(d->vge_sts) & VGE_RDSTS_OWN) {
sys/dev/netif/vge/if_vge.c
652
d->vge_buflen = htole16(VGE_BUFLEN(segs[0].ds_len) | VGE_RXDESC_I);
sys/dev/netif/vge/if_vge.c
653
d->vge_addrlo = htole32(VGE_ADDR_LO(segs[0].ds_addr));
sys/dev/netif/vge/if_vge.c
654
d->vge_addrhi = htole16(VGE_ADDR_HI(segs[0].ds_addr) & 0xFFFF);
sys/dev/netif/vge/if_vge.c
655
d->vge_sts = 0;
sys/dev/netif/vge/if_vge.c
656
d->vge_ctl = 0;
sys/dev/netif/vge/if_vge.c
666
struct vge_tx_desc *d = NULL;
sys/dev/netif/vge/if_vge.c
682
d = &ctx->sc->vge_ldata.vge_tx_list[ctx->vge_idx];
sys/dev/netif/vge/if_vge.c
685
if (le32toh(d->vge_sts) & VGE_TDSTS_OWN) {
sys/dev/netif/vge/if_vge.c
691
f = &d->vge_frag[i];
sys/dev/netif/vge/if_vge.c
699
f = &d->vge_frag[i];
sys/dev/netif/vge/if_vge.c
715
d->vge_sts = ctx->vge_m0->m_pkthdr.len << 16;
sys/dev/netif/vge/if_vge.c
716
d->vge_ctl = ctx->vge_flags|(i << 28)|VGE_TD_LS_NORM;
sys/dev/netif/vge/if_vge.c
719
d->vge_ctl |= VGE_TDCTL_JUMBO;
sys/dev/netif/wb/if_wb.c
231
int d, i;
sys/dev/netif/wb/if_wb.c
233
d = addr | WB_EECMD_READ;
sys/dev/netif/wb/if_wb.c
239
if (d & i)
sys/dev/powermng/kate/kate.c
165
uint32_t c, d;
sys/dev/powermng/kate/kate.c
213
d = pci_read_config(dev, K_NORTHBRIDGE_CAP_R, 4);
sys/dev/powermng/kate/kate.c
214
cmpcap = (d >> 12) & 0x3;
sys/dev/raid/arcmsr/arcmsr.h
190
#define CHIP_REG_WRITE32(s, b, r, d) bus_space_write_4(acb->btag[b], acb->bhandle[b], offsetof(struct s, r), d)
sys/dev/raid/arcmsr/arcmsr.h
192
#define WRITE_CHIP_REG32(b, r, d) bus_space_write_4(acb->btag[b], acb->bhandle[b], r, d)
sys/dev/raid/mfi/mfireg.h
1050
uint64_t d[12];
sys/dev/raid/mpr/mpr_table.c
276
MPR_PRINTFIELD(sc, facts, IOCNumber, %d);
sys/dev/raid/mpr/mpr_table.c
278
MPR_PRINTFIELD(sc, facts, MaxChainDepth, %d);
sys/dev/raid/mpr/mpr_table.c
281
MPR_PRINTFIELD(sc, facts, NumberOfPorts, %d);
sys/dev/raid/mpr/mpr_table.c
282
MPR_PRINTFIELD(sc, facts, MaxMSIxVectors, %d);
sys/dev/raid/mpr/mpr_table.c
283
MPR_PRINTFIELD(sc, facts, RequestCredit, %d);
sys/dev/raid/mpr/mpr_table.c
296
MPR_PRINTFIELD(sc, facts, IOCRequestFrameSize, %d);
sys/dev/raid/mpr/mpr_table.c
297
MPR_PRINTFIELD(sc, facts, MaxInitiators, %d);
sys/dev/raid/mpr/mpr_table.c
298
MPR_PRINTFIELD(sc, facts, MaxTargets, %d);
sys/dev/raid/mpr/mpr_table.c
299
MPR_PRINTFIELD(sc, facts, MaxSasExpanders, %d);
sys/dev/raid/mpr/mpr_table.c
300
MPR_PRINTFIELD(sc, facts, MaxEnclosures, %d);
sys/dev/raid/mpr/mpr_table.c
304
MPR_PRINTFIELD(sc, facts, HighPriorityCredit, %d);
sys/dev/raid/mpr/mpr_table.c
305
MPR_PRINTFIELD(sc, facts, MaxReplyDescriptorPostQueueDepth, %d);
sys/dev/raid/mpr/mpr_table.c
306
MPR_PRINTFIELD(sc, facts, ReplyFrameSize, %d);
sys/dev/raid/mpr/mpr_table.c
307
MPR_PRINTFIELD(sc, facts, MaxVolumes, %d);
sys/dev/raid/mpr/mpr_table.c
308
MPR_PRINTFIELD(sc, facts, MaxDevHandle, %d);
sys/dev/raid/mpr/mpr_table.c
309
MPR_PRINTFIELD(sc, facts, MaxPersistentEntries, %d);
sys/dev/raid/mpr/mpr_table.c
317
MPR_PRINTFIELD(sc, facts, PortNumber, %d);
sys/dev/raid/mpr/mpr_table.c
319
MPR_PRINTFIELD(sc, facts, MaxPostedCmdBuffers, %d);
sys/dev/raid/mpr/mpr_table.c
327
MPR_PRINTFIELD(sc, event, EventDataLength, %d);
sys/dev/raid/mpr/mpr_table.c
328
MPR_PRINTFIELD(sc, event, AckRequired, %d);
sys/dev/raid/mpr/mpr_table.c
338
MPR_PRINTFIELD(sc, buf, Slot, %d);
sys/dev/raid/mpr/mpr_table.c
343
MPR_PRINTFIELD(sc, buf, PhyNum, %d);
sys/dev/raid/mpr/mpr_table.c
347
MPR_PRINTFIELD(sc, buf, ZoneGroup, %d);
sys/dev/raid/mpr/mpr_table.c
355
MPR_PRINTFIELD(sc, buf, PhysicalPort, %d);
sys/dev/raid/mpr/mpr_table.c
356
MPR_PRINTFIELD(sc, buf, MaxPortConnections, %d);
sys/dev/raid/mpr/mpr_table.c
359
MPR_PRINTFIELD(sc, buf, PortGroups, %d);
sys/dev/raid/mpr/mpr_table.c
360
MPR_PRINTFIELD(sc, buf, DmaGroup, %d);
sys/dev/raid/mpr/mpr_table.c
361
MPR_PRINTFIELD(sc, buf, ControlGroup, %d);
sys/dev/raid/mpr/mpr_table.c
381
MPR_PRINTFIELD(sc, data, PhysicalPort, %d);
sys/dev/raid/mpr/mpr_table.c
405
MPR_PRINTFIELD(sc, data, NumPhys, %d);
sys/dev/raid/mpr/mpr_table.c
406
MPR_PRINTFIELD(sc, data, NumEntries, %d);
sys/dev/raid/mpr/mpr_table.c
407
MPR_PRINTFIELD(sc, data, StartPhyNum, %d);
sys/dev/raid/mpr/mpr_table.c
411
MPR_PRINTFIELD(sc, data, PhysicalPort, %d);
sys/dev/raid/mpr/mpr_table.c
437
MPR_PRINTFIELD(sc, data, PhysicalPort, %d);
sys/dev/raid/mpr/mpr_table.c
438
MPR_PRINTFIELD(sc, data, NumSlots, %d);
sys/dev/raid/mpr/mpr_table.c
439
MPR_PRINTFIELD(sc, data, StartSlot, %d);
sys/dev/raid/mpr/mpr_table.c
467
MPR_PRINTFIELD(sc, buf, PhysicalPort, %d);
sys/dev/raid/mpr/mpr_table.c
468
MPR_PRINTFIELD(sc, buf, NumPhys, %d);
sys/dev/raid/mpr/mpr_table.c
469
MPR_PRINTFIELD(sc, buf, Phy, %d);
sys/dev/raid/mpr/mpr_table.c
470
MPR_PRINTFIELD(sc, buf, NumTableEntriesProgrammed, %d);
sys/dev/raid/mpr/mpr_table.c
489
MPR_PRINTFIELD(sc, buf, ChangeCount, %d);
sys/dev/raid/mpr/mpr_table.c
493
MPR_PRINTFIELD(sc, buf, PhyIdentifier, %d);
sys/dev/raid/mpr/mpr_table.c
494
MPR_PRINTFIELD(sc, buf, AttachedPhyIdentifier, %d);
sys/dev/raid/mpr/mpr_table.c
500
MPR_PRINTFIELD(sc, buf, ZoneGroup, %d);
sys/dev/raid/mpr/mpr_table.c
510
MPR_PRINTFIELD(sc, buf, AttachedPhyIdentifier, %d);
sys/dev/raid/mpr/mpr_table.c
520
MPR_PRINTFIELD(sc, buf, ChangeCount, %d);
sys/dev/raid/mps/mps_table.c
203
MPS_PRINTFIELD(sc, facts, IOCNumber, %d);
sys/dev/raid/mps/mps_table.c
205
MPS_PRINTFIELD(sc, facts, MaxChainDepth, %d);
sys/dev/raid/mps/mps_table.c
208
MPS_PRINTFIELD(sc, facts, NumberOfPorts, %d);
sys/dev/raid/mps/mps_table.c
209
MPS_PRINTFIELD(sc, facts, RequestCredit, %d);
sys/dev/raid/mps/mps_table.c
221
MPS_PRINTFIELD(sc, facts, IOCRequestFrameSize, %d);
sys/dev/raid/mps/mps_table.c
222
MPS_PRINTFIELD(sc, facts, MaxInitiators, %d);
sys/dev/raid/mps/mps_table.c
223
MPS_PRINTFIELD(sc, facts, MaxTargets, %d);
sys/dev/raid/mps/mps_table.c
224
MPS_PRINTFIELD(sc, facts, MaxSasExpanders, %d);
sys/dev/raid/mps/mps_table.c
225
MPS_PRINTFIELD(sc, facts, MaxEnclosures, %d);
sys/dev/raid/mps/mps_table.c
228
MPS_PRINTFIELD(sc, facts, HighPriorityCredit, %d);
sys/dev/raid/mps/mps_table.c
229
MPS_PRINTFIELD(sc, facts, MaxReplyDescriptorPostQueueDepth, %d);
sys/dev/raid/mps/mps_table.c
230
MPS_PRINTFIELD(sc, facts, ReplyFrameSize, %d);
sys/dev/raid/mps/mps_table.c
231
MPS_PRINTFIELD(sc, facts, MaxVolumes, %d);
sys/dev/raid/mps/mps_table.c
232
MPS_PRINTFIELD(sc, facts, MaxDevHandle, %d);
sys/dev/raid/mps/mps_table.c
233
MPS_PRINTFIELD(sc, facts, MaxPersistentEntries, %d);
sys/dev/raid/mps/mps_table.c
241
MPS_PRINTFIELD(sc, facts, PortNumber, %d);
sys/dev/raid/mps/mps_table.c
243
MPS_PRINTFIELD(sc, facts, MaxPostedCmdBuffers, %d);
sys/dev/raid/mps/mps_table.c
251
MPS_EVENTFIELD(sc, event, EventDataLength, %d);
sys/dev/raid/mps/mps_table.c
252
MPS_EVENTFIELD(sc, event, AckRequired, %d);
sys/dev/raid/mps/mps_table.c
262
MPS_PRINTFIELD(sc, buf, Slot, %d);
sys/dev/raid/mps/mps_table.c
267
MPS_PRINTFIELD(sc, buf, PhyNum, %d);
sys/dev/raid/mps/mps_table.c
271
MPS_PRINTFIELD(sc, buf, ZoneGroup, %d);
sys/dev/raid/mps/mps_table.c
278
MPS_PRINTFIELD(sc, buf, PhysicalPort, %d);
sys/dev/raid/mps/mps_table.c
279
MPS_PRINTFIELD(sc, buf, MaxPortConnections, %d);
sys/dev/raid/mps/mps_table.c
282
MPS_PRINTFIELD(sc, buf, PortGroups, %d);
sys/dev/raid/mps/mps_table.c
283
MPS_PRINTFIELD(sc, buf, DmaGroup, %d);
sys/dev/raid/mps/mps_table.c
284
MPS_PRINTFIELD(sc, buf, ControlGroup, %d);
sys/dev/raid/mps/mps_table.c
303
MPS_EVENTFIELD(sc, data, PhysicalPort, %d);
sys/dev/raid/mps/mps_table.c
325
MPS_EVENTFIELD(sc, data, NumPhys, %d);
sys/dev/raid/mps/mps_table.c
326
MPS_EVENTFIELD(sc, data, NumEntries, %d);
sys/dev/raid/mps/mps_table.c
327
MPS_EVENTFIELD(sc, data, StartPhyNum, %d);
sys/dev/raid/mps/mps_table.c
331
MPS_EVENTFIELD(sc, data, PhysicalPort, %d);
sys/dev/raid/mps/mps_table.c
357
MPS_EVENTFIELD(sc, data, PhysicalPort, %d);
sys/dev/raid/mps/mps_table.c
358
MPS_EVENTFIELD(sc, data, NumSlots, %d);
sys/dev/raid/mps/mps_table.c
359
MPS_EVENTFIELD(sc, data, StartSlot, %d);
sys/dev/raid/mps/mps_table.c
387
MPS_PRINTFIELD(sc, buf, PhysicalPort, %d);
sys/dev/raid/mps/mps_table.c
388
MPS_PRINTFIELD(sc, buf, NumPhys, %d);
sys/dev/raid/mps/mps_table.c
389
MPS_PRINTFIELD(sc, buf, Phy, %d);
sys/dev/raid/mps/mps_table.c
390
MPS_PRINTFIELD(sc, buf, NumTableEntriesProgrammed, %d);
sys/dev/raid/mps/mps_table.c
408
MPS_PRINTFIELD(sc, buf, ChangeCount, %d);
sys/dev/raid/mps/mps_table.c
412
MPS_PRINTFIELD(sc, buf, PhyIdentifier, %d);
sys/dev/raid/mps/mps_table.c
413
MPS_PRINTFIELD(sc, buf, AttachedPhyIdentifier, %d);
sys/dev/raid/mps/mps_table.c
419
MPS_PRINTFIELD(sc, buf, ZoneGroup, %d);
sys/dev/raid/mps/mps_table.c
429
MPS_PRINTFIELD(sc, buf, AttachedPhyIdentifier, %d);
sys/dev/raid/mps/mps_table.c
439
MPS_PRINTFIELD(sc, buf, ChangeCount, %d);
sys/dev/raid/mrsas/mrsas.h
2290
u_int64_t d[12];
sys/dev/raid/vinum/vinumext.h
256
#define LOCKDRIVE(d) lockdrive (d, __FILE__, __LINE__)
sys/dev/raid/vinum/vinumext.h
261
#define LOCKDRIVE(d) lockdrive (d)
sys/dev/raid/vinum/vinumext.h
50
#define read_drive(a, b, c, d) driveio (a, b, c, d, BUF_CMD_READ)
sys/dev/raid/vinum/vinumext.h
51
#define write_drive(a, b, c, d) driveio (a, b, c, d, BUF_CMD_WRITE)
sys/dev/sound/midi/midi.c
436
#define MIDI_LENGTH(d) (midi_lengths[((d) >> 4) & 7])
sys/dev/sound/midi/midi.c
438
#define MIDI_IS_STATUS(d) ((d) >= 0x80)
sys/dev/sound/midi/midi.c
439
#define MIDI_IS_COMMON(d) ((d) >= 0xf0)
sys/dev/sound/midi/midi.c
70
#define PCMMKMINOR(u, d, c) ((((c) & 0xff) << 16) | (((u) & 0x0f) << 4) | ((d) & 0x0f))
sys/dev/sound/midi/midi.c
71
#define MIDIMKMINOR(u, d, c) PCMMKMINOR(u, d, c)
sys/dev/sound/midi/mpu401.c
63
#define CMD(m,d) MPUFOI_WRITE(m, m->cookie, MPU_CMDPORT,d)
sys/dev/sound/midi/mpu401.c
66
#define WRITE(m,d) MPUFOI_WRITE(m, m->cookie, MPU_DATAPORT,d)
sys/dev/sound/midi/sequencer.c
90
#define PCMMKMINOR(u, d, c) \
sys/dev/sound/midi/sequencer.c
91
((((c) & 0xff) << 16) | (((u) & 0x0f) << 4) | ((d) & 0x0f))
sys/dev/sound/midi/sequencer.c
92
#define MIDIMKMINOR(u, d, c) PCMMKMINOR(u, d, c)
sys/dev/sound/pci/cmi.c
787
unsigned int d;
sys/dev/sound/pci/cmi.c
789
d = bus_space_read_1(0,0, 0x330 + reg);
sys/dev/sound/pci/cmi.c
792
return d;
sys/dev/sound/pci/emu10k1.c
1162
unsigned int d;
sys/dev/sound/pci/emu10k1.c
1164
d = emu_rd((struct sc_info *)sc, 0x18 + reg, 1);
sys/dev/sound/pci/emu10k1.c
1165
return d;
sys/dev/sound/pci/emu10kx-midi.c
73
unsigned int d;
sys/dev/sound/pci/emu10kx-midi.c
75
d = 0;
sys/dev/sound/pci/emu10kx-midi.c
77
d = emu_rd(sc->card, 0x18 + reg, 1);
sys/dev/sound/pci/emu10kx-midi.c
79
d = emu_rdptr(sc->card, 0, sc->port + reg);
sys/dev/sound/pci/emu10kx-midi.c
81
return (d);
sys/dev/sound/pci/es137x.c
1511
struct snddev_info *d;
sys/dev/sound/pci/es137x.c
1518
d = device_get_softc(dev);
sys/dev/sound/pci/es137x.c
1519
if (!PCM_REGISTERED(d) || d->mixer_dev == NULL ||
sys/dev/sound/pci/es137x.c
1520
d->mixer_dev->si_drv1 == NULL)
sys/dev/sound/pci/es137x.c
1522
es = d->devinfo;
sys/dev/sound/pci/es137x.c
1537
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pci/es137x.c
1538
m = (d->mixer_dev != NULL) ? d->mixer_dev->si_drv1 : NULL;
sys/dev/sound/pci/es137x.c
1540
PCM_RELEASE_QUICK(d);
sys/dev/sound/pci/es137x.c
1544
PCM_RELEASE_QUICK(d);
sys/dev/sound/pci/es137x.c
1550
PCM_RELEASE_QUICK(d);
sys/dev/sound/pci/es137x.c
1557
PCM_RELEASE_QUICK(d);
sys/dev/sound/pci/es137x.c
1587
PCM_RELEASE_QUICK(d);
sys/dev/sound/pci/hda/hdaa.c
7036
struct snddev_info *d;
sys/dev/sound/pci/hda/hdaa.c
7098
d = device_get_softc(dev);
sys/dev/sound/pci/hda/hdaa.c
7104
SYSCTL_ADD_PROC(&d->play_sysctl_ctx,
sys/dev/sound/pci/hda/hdaa.c
7105
SYSCTL_CHILDREN(d->play_sysctl_tree), OID_AUTO,
sys/dev/sound/pci/hda/hdaa.c
7115
SYSCTL_ADD_PROC(&d->rec_sysctl_ctx,
sys/dev/sound/pci/hda/hdaa.c
7116
SYSCTL_CHILDREN(d->rec_sysctl_tree), OID_AUTO,
sys/dev/sound/pci/hda/hdaa.c
7123
SYSCTL_ADD_INT(&d->rec_sysctl_ctx,
sys/dev/sound/pci/hda/hdaa.c
7124
SYSCTL_CHILDREN(d->rec_sysctl_tree), OID_AUTO,
sys/dev/sound/pcm/channel.c
131
struct snddev_info *d;
sys/dev/sound/pcm/channel.c
137
d = devclass_get_softc(pcm_devclass, i);
sys/dev/sound/pcm/channel.c
138
if (!PCM_REGISTERED(d))
sys/dev/sound/pcm/channel.c
140
PCM_LOCK(d);
sys/dev/sound/pcm/channel.c
141
PCM_WAIT(d);
sys/dev/sound/pcm/channel.c
142
PCM_ACQUIRE(d);
sys/dev/sound/pcm/channel.c
143
CHN_FOREACH(c, d, channels.pcm) {
sys/dev/sound/pcm/channel.c
150
PCM_RELEASE(d);
sys/dev/sound/pcm/channel.c
151
PCM_UNLOCK(d);
sys/dev/sound/pcm/channel.c
2067
struct snddev_info *d;
sys/dev/sound/pcm/channel.c
2070
d = (c != NULL) ? c->parentsnddev : NULL;
sys/dev/sound/pcm/channel.c
2071
m = (d != NULL && d->mixer_dev != NULL) ? d->mixer_dev->si_drv1 :
sys/dev/sound/pcm/channel.c
2074
if (d == NULL || m == NULL)
sys/dev/sound/pcm/channel.c
2084
(d->flags & SD_F_SOFTPCMVOL)) {
sys/dev/sound/pcm/channel.c
2149
if (FEEDER_SET(f, FEEDEQ_PREAMP, d->eqpreamp) != 0)
sys/dev/sound/pcm/channel.c
2152
d->eqpreamp);
sys/dev/sound/pcm/channel.c
2153
if (d->flags & SD_F_EQ_BYPASSED)
sys/dev/sound/pcm/channel.c
2155
else if (d->flags & SD_F_EQ_ENABLED)
sys/dev/sound/pcm/channel.c
2172
struct snddev_info *d = c->parentsnddev;
sys/dev/sound/pcm/channel.c
2200
PCM_LOCK(d);
sys/dev/sound/pcm/channel.c
2201
CHN_INSERT_HEAD(d, c, channels.pcm.busy);
sys/dev/sound/pcm/channel.c
2202
PCM_UNLOCK(d);
sys/dev/sound/pcm/channel.c
2217
PCM_LOCK(d);
sys/dev/sound/pcm/channel.c
2218
CHN_REMOVE(d, c, channels.pcm.busy);
sys/dev/sound/pcm/channel.c
2219
PCM_UNLOCK(d);
sys/dev/sound/pcm/dsp.c
1097
struct snddev_info *d;
sys/dev/sound/pcm/dsp.c
1101
d = dsp_get_info(i_dev);
sys/dev/sound/pcm/dsp.c
1102
if (!DSP_REGISTERED(d, i_dev))
sys/dev/sound/pcm/dsp.c
1105
PCM_GIANT_ENTER(d);
sys/dev/sound/pcm/dsp.c
1115
PCM_GIANT_EXIT(d);
sys/dev/sound/pcm/dsp.c
1120
PCM_GIANT_EXIT(d);
sys/dev/sound/pcm/dsp.c
1124
if (d->mixer_dev != NULL) {
sys/dev/sound/pcm/dsp.c
1125
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/dsp.c
1126
ret = mixer_ioctl_cmd(d->mixer_dev, cmd, arg, -1,
sys/dev/sound/pcm/dsp.c
1128
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
1132
PCM_GIANT_EXIT(d);
sys/dev/sound/pcm/dsp.c
1142
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/dsp.c
1161
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
1162
PCM_GIANT_EXIT(d);
sys/dev/sound/pcm/dsp.c
1174
PCM_GIANT_EXIT(d);
sys/dev/sound/pcm/dsp.c
1204
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/dsp.c
1217
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
1248
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/dsp.c
1281
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
1291
PCM_LOCK(d);
sys/dev/sound/pcm/dsp.c
1311
pdev = d->mixer_dev;
sys/dev/sound/pcm/dsp.c
1319
PCM_UNLOCK(d);
sys/dev/sound/pcm/dsp.c
1391
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/dsp.c
1402
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
1434
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/dsp.c
1448
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
1467
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/dsp.c
1483
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
1508
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/dsp.c
1524
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
153
struct snddev_info *d;
sys/dev/sound/pcm/dsp.c
1561
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/dsp.c
1579
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
158
d = dsp_get_info(dev);
sys/dev/sound/pcm/dsp.c
159
if (!PCM_REGISTERED(d)) {
sys/dev/sound/pcm/dsp.c
1608
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/dsp.c
1629
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
164
PCM_LOCK(d);
sys/dev/sound/pcm/dsp.c
165
PCM_WAIT(d);
sys/dev/sound/pcm/dsp.c
166
PCM_ACQUIRE(d);
sys/dev/sound/pcm/dsp.c
1714
PCM_LOCK(d);
sys/dev/sound/pcm/dsp.c
1718
PCM_UNLOCK(d);
sys/dev/sound/pcm/dsp.c
1811
PCM_LOCK(d);
sys/dev/sound/pcm/dsp.c
1814
PCM_UNLOCK(d);
sys/dev/sound/pcm/dsp.c
1848
PCM_GIANT_EXIT(d);
sys/dev/sound/pcm/dsp.c
1852
if (d->mixer_dev != NULL) {
sys/dev/sound/pcm/dsp.c
1853
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/dsp.c
1854
ret = mixer_ioctl_cmd(d->mixer_dev, xcmd, arg, -1,
sys/dev/sound/pcm/dsp.c
1856
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
1865
if (d->mixer_dev != NULL) {
sys/dev/sound/pcm/dsp.c
1866
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/dsp.c
1867
ret = mixer_ioctl_cmd(d->mixer_dev, cmd, arg, -1,
sys/dev/sound/pcm/dsp.c
1869
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
203
PCM_RELEASE(d);
sys/dev/sound/pcm/dsp.c
204
PCM_UNLOCK(d);
sys/dev/sound/pcm/dsp.c
2057
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/dsp.c
2059
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
2063
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/dsp.c
2065
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
2069
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/dsp.c
2071
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
2075
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/dsp.c
2078
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
2081
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/dsp.c
2083
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
2086
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/dsp.c
2088
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
2091
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/dsp.c
2093
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
2172
PCM_GIANT_LEAVE(d);
sys/dev/sound/pcm/dsp.c
2191
struct snddev_info *d;
sys/dev/sound/pcm/dsp.c
2196
d = dsp_get_info(i_dev);
sys/dev/sound/pcm/dsp.c
2197
if (!DSP_REGISTERED(d, i_dev))
sys/dev/sound/pcm/dsp.c
2200
PCM_GIANT_ENTER(d);
sys/dev/sound/pcm/dsp.c
2241
PCM_GIANT_LEAVE(d);
sys/dev/sound/pcm/dsp.c
2304
struct snddev_info *d;
sys/dev/sound/pcm/dsp.c
2332
d = dsp_get_info(i_dev);
sys/dev/sound/pcm/dsp.c
2333
if (!DSP_REGISTERED(d, i_dev))
sys/dev/sound/pcm/dsp.c
2336
PCM_GIANT_ENTER(d);
sys/dev/sound/pcm/dsp.c
234
struct snddev_info *d;
sys/dev/sound/pcm/dsp.c
2346
PCM_GIANT_EXIT(d);
sys/dev/sound/pcm/dsp.c
2359
PCM_GIANT_LEAVE(d);
sys/dev/sound/pcm/dsp.c
2374
struct snddev_info *d;
sys/dev/sound/pcm/dsp.c
238
d = dsp_get_info(dev);
sys/dev/sound/pcm/dsp.c
240
KASSERT(PCM_REGISTERED(d) && dev != NULL && dev->si_drv1 == NULL &&
sys/dev/sound/pcm/dsp.c
2414
d = devclass_get_softc(pcm_devclass, unit);
sys/dev/sound/pcm/dsp.c
2415
if (!PCM_REGISTERED(d) || d->clones == NULL) {
sys/dev/sound/pcm/dsp.c
2421
PCM_LOCK(d);
sys/dev/sound/pcm/dsp.c
2422
if (snd_clone_disabled(d->clones)) {
sys/dev/sound/pcm/dsp.c
2423
PCM_UNLOCK(d);
sys/dev/sound/pcm/dsp.c
2427
PCM_WAIT(d);
sys/dev/sound/pcm/dsp.c
2428
PCM_ACQUIRE(d);
sys/dev/sound/pcm/dsp.c
2429
PCM_UNLOCK(d);
sys/dev/sound/pcm/dsp.c
243
PCM_BUSYASSERT(d);
sys/dev/sound/pcm/dsp.c
2437
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
244
PCM_LOCKASSERT(d);
sys/dev/sound/pcm/dsp.c
2441
CHN_FOREACH(c, d, channels.pcm) {
sys/dev/sound/pcm/dsp.c
2465
tumax = snd_clone_getmaxunit(d->clones);
sys/dev/sound/pcm/dsp.c
2467
snd_clone_setmaxunit(d->clones, cunit);
sys/dev/sound/pcm/dsp.c
2476
if (((devtype == SND_DEV_DSPHW_VPLAY && d->pvchancount > 0) ||
sys/dev/sound/pcm/dsp.c
2477
(devtype == SND_DEV_DSPHW_VREC && d->rvchancount > 0)) &&
sys/dev/sound/pcm/dsp.c
2480
tumax = snd_clone_getmaxunit(d->clones);
sys/dev/sound/pcm/dsp.c
2482
snd_clone_setmaxunit(d->clones, cunit);
sys/dev/sound/pcm/dsp.c
2487
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
2495
ce = snd_clone_alloc(d->clones, &dev, &cunit, udcmask);
sys/dev/sound/pcm/dsp.c
2497
snd_clone_setmaxunit(d->clones, tumax);
sys/dev/sound/pcm/dsp.c
252
TAILQ_FOREACH(cdi, &d->dsp_cdevinfo_pool, link) {
sys/dev/sound/pcm/dsp.c
2522
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
260
TAILQ_REMOVE(&d->dsp_cdevinfo_pool, cdi, link);
sys/dev/sound/pcm/dsp.c
261
TAILQ_INSERT_TAIL(&d->dsp_cdevinfo_pool, cdi, link);
sys/dev/sound/pcm/dsp.c
2611
struct snddev_info *d;
sys/dev/sound/pcm/dsp.c
2635
d = devclass_get_softc(pcm_devclass, i);
sys/dev/sound/pcm/dsp.c
2636
if (!PCM_REGISTERED(d))
sys/dev/sound/pcm/dsp.c
2642
PCM_UNLOCKASSERT(d);
sys/dev/sound/pcm/dsp.c
2643
PCM_LOCK(d);
sys/dev/sound/pcm/dsp.c
2645
CHN_FOREACH(ch, d, channels.pcm) {
sys/dev/sound/pcm/dsp.c
2649
if (DSP_REGISTERED(d, i_dev) &&
sys/dev/sound/pcm/dsp.c
265
PCM_UNLOCK(d);
sys/dev/sound/pcm/dsp.c
267
PCM_LOCK(d);
sys/dev/sound/pcm/dsp.c
273
TAILQ_INSERT_TAIL(&d->dsp_cdevinfo_pool, cdi, link);
sys/dev/sound/pcm/dsp.c
2760
ai->mixer_dev = (d->mixer_dev != NULL) ? PCMUNIT(d->mixer_dev) : -1;
sys/dev/sound/pcm/dsp.c
2768
ai->enabled = device_is_attached(d->dev) ? 1 : 0;
sys/dev/sound/pcm/dsp.c
2798
PCM_UNLOCK(d);
sys/dev/sound/pcm/dsp.c
280
struct snddev_info *d;
sys/dev/sound/pcm/dsp.c
285
d = dsp_get_info(dev);
sys/dev/sound/pcm/dsp.c
287
KASSERT(PCM_REGISTERED(d) && dev != NULL && dev->si_drv1 != NULL &&
sys/dev/sound/pcm/dsp.c
291
PCM_BUSYASSERT(d);
sys/dev/sound/pcm/dsp.c
292
PCM_LOCKASSERT(d);
sys/dev/sound/pcm/dsp.c
306
TAILQ_REMOVE(&d->dsp_cdevinfo_pool, cdi, link);
sys/dev/sound/pcm/dsp.c
307
TAILQ_INSERT_HEAD(&d->dsp_cdevinfo_pool, cdi, link);
sys/dev/sound/pcm/dsp.c
315
TAILQ_FOREACH_MUTABLE(cdi, &d->dsp_cdevinfo_pool, link, tmp) {
sys/dev/sound/pcm/dsp.c
325
TAILQ_REMOVE(&d->dsp_cdevinfo_pool, cdi, link);
sys/dev/sound/pcm/dsp.c
335
dsp_cdevinfo_init(struct snddev_info *d)
sys/dev/sound/pcm/dsp.c
340
KASSERT(d != NULL, ("NULL snddev_info"));
sys/dev/sound/pcm/dsp.c
341
PCM_BUSYASSERT(d);
sys/dev/sound/pcm/dsp.c
342
PCM_UNLOCKASSERT(d);
sys/dev/sound/pcm/dsp.c
344
TAILQ_INIT(&d->dsp_cdevinfo_pool);
sys/dev/sound/pcm/dsp.c
347
TAILQ_INSERT_HEAD(&d->dsp_cdevinfo_pool, cdi, link);
sys/dev/sound/pcm/dsp.c
352
dsp_cdevinfo_flush(struct snddev_info *d)
sys/dev/sound/pcm/dsp.c
356
KASSERT(d != NULL, ("NULL snddev_info"));
sys/dev/sound/pcm/dsp.c
357
PCM_BUSYASSERT(d);
sys/dev/sound/pcm/dsp.c
358
PCM_UNLOCKASSERT(d);
sys/dev/sound/pcm/dsp.c
360
cdi = TAILQ_FIRST(&d->dsp_cdevinfo_pool);
sys/dev/sound/pcm/dsp.c
366
TAILQ_INIT(&d->dsp_cdevinfo_pool);
sys/dev/sound/pcm/dsp.c
442
((DSP_F_READ(flags) && d->reccount == 0) || \
sys/dev/sound/pcm/dsp.c
443
(DSP_F_WRITE(flags) && d->playcount == 0))) \
sys/dev/sound/pcm/dsp.c
449
else if (DSP_REGISTERED(d, i_dev)) \
sys/dev/sound/pcm/dsp.c
459
struct snddev_info *d;
sys/dev/sound/pcm/dsp.c
467
d = dsp_get_info(i_dev);
sys/dev/sound/pcm/dsp.c
468
if (!PCM_REGISTERED(d))
sys/dev/sound/pcm/dsp.c
471
PCM_GIANT_ENTER(d);
sys/dev/sound/pcm/dsp.c
474
PCM_LOCK(d);
sys/dev/sound/pcm/dsp.c
475
PCM_WAIT(d);
sys/dev/sound/pcm/dsp.c
484
PCM_UNLOCK(d);
sys/dev/sound/pcm/dsp.c
485
PCM_GIANT_EXIT(d);
sys/dev/sound/pcm/dsp.c
494
PCM_UNLOCK(d);
sys/dev/sound/pcm/dsp.c
495
PCM_GIANT_EXIT(d);
sys/dev/sound/pcm/dsp.c
504
PCM_ACQUIRE(d);
sys/dev/sound/pcm/dsp.c
505
PCM_UNLOCK(d);
sys/dev/sound/pcm/dsp.c
532
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
533
PCM_GIANT_EXIT(d);
sys/dev/sound/pcm/dsp.c
546
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
547
PCM_GIANT_EXIT(d);
sys/dev/sound/pcm/dsp.c
570
rderror = pcm_chnalloc(d, &rdch, PCMDIR_REC,
sys/dev/sound/pcm/dsp.c
584
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
585
PCM_GIANT_EXIT(d);
sys/dev/sound/pcm/dsp.c
606
wrerror = pcm_chnalloc(d, &wrch, PCMDIR_PLAY,
sys/dev/sound/pcm/dsp.c
629
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/dsp.c
630
PCM_GIANT_EXIT(d);
sys/dev/sound/pcm/dsp.c
650
PCM_LOCK(d);
sys/dev/sound/pcm/dsp.c
668
PCM_RELEASE(d);
sys/dev/sound/pcm/dsp.c
669
PCM_UNLOCK(d);
sys/dev/sound/pcm/dsp.c
670
PCM_GIANT_EXIT(d);
sys/dev/sound/pcm/dsp.c
679
CHN_INSERT_HEAD(d, rdch, channels.pcm.opened);
sys/dev/sound/pcm/dsp.c
681
CHN_INSERT_HEAD(d, wrch, channels.pcm.opened);
sys/dev/sound/pcm/dsp.c
690
PCM_RELEASE(d);
sys/dev/sound/pcm/dsp.c
691
PCM_UNLOCK(d);
sys/dev/sound/pcm/dsp.c
693
PCM_GIANT_LEAVE(d);
sys/dev/sound/pcm/dsp.c
703
struct snddev_info *d;
sys/dev/sound/pcm/dsp.c
713
d = dsp_get_info(i_dev);
sys/dev/sound/pcm/dsp.c
714
if (!DSP_REGISTERED(d, i_dev))
sys/dev/sound/pcm/dsp.c
717
PCM_GIANT_ENTER(d);
sys/dev/sound/pcm/dsp.c
719
PCM_LOCK(d);
sys/dev/sound/pcm/dsp.c
720
PCM_WAIT(d);
sys/dev/sound/pcm/dsp.c
721
PCM_ACQUIRE(d);
sys/dev/sound/pcm/dsp.c
747
CHN_REMOVE(d, rdch, channels.pcm.opened);
sys/dev/sound/pcm/dsp.c
749
CHN_REMOVE(d, wrch, channels.pcm.opened);
sys/dev/sound/pcm/dsp.c
752
PCM_UNLOCK(d);
sys/dev/sound/pcm/dsp.c
797
PCM_LOCK(d);
sys/dev/sound/pcm/dsp.c
812
PCM_UNLOCK(d);
sys/dev/sound/pcm/dsp.c
814
PCM_LOCK(d);
sys/dev/sound/pcm/dsp.c
816
PCM_RELEASE(d);
sys/dev/sound/pcm/dsp.c
817
PCM_UNLOCK(d);
sys/dev/sound/pcm/dsp.c
819
PCM_GIANT_LEAVE(d);
sys/dev/sound/pcm/dsp.c
838
struct snddev_info *d;
sys/dev/sound/pcm/dsp.c
848
d = dsp_get_info(i_dev);
sys/dev/sound/pcm/dsp.c
849
if (!DSP_REGISTERED(d, i_dev))
sys/dev/sound/pcm/dsp.c
852
PCM_GIANT_ENTER(d);
sys/dev/sound/pcm/dsp.c
877
PCM_GIANT_EXIT(d);
sys/dev/sound/pcm/dsp.c
884
PCM_GIANT_EXIT(d);
sys/dev/sound/pcm/dsp.c
904
PCM_GIANT_LEAVE(d);
sys/dev/sound/pcm/dsp.c
930
struct snddev_info *d;
sys/dev/sound/pcm/dsp.c
937
d = dsp_get_info(dev);
sys/dev/sound/pcm/dsp.c
938
if (!PCM_REGISTERED(d)) {
sys/dev/sound/pcm/dsp.c
943
PCM_UNLOCKASSERT(d);
sys/dev/sound/pcm/dsp.c
955
PCM_LOCK(d);
sys/dev/sound/pcm/dsp.c
956
PCM_WAIT(d);
sys/dev/sound/pcm/dsp.c
957
PCM_ACQUIRE(d);
sys/dev/sound/pcm/dsp.c
961
CHN_FOREACH(c, d, channels.pcm) {
sys/dev/sound/pcm/dsp.c
971
PCM_RELEASE(d);
sys/dev/sound/pcm/dsp.c
972
PCM_UNLOCK(d);
sys/dev/sound/pcm/dsp.c
976
PCM_RELEASE(d);
sys/dev/sound/pcm/dsp.c
977
PCM_UNLOCK(d);
sys/dev/sound/pcm/dsp.c
986
struct snddev_info *d;
sys/dev/sound/pcm/dsp.c
990
d = dsp_get_info(dev);
sys/dev/sound/pcm/dsp.c
991
if (!PCM_REGISTERED(d) || !(dsp_get_flags(dev) & SD_F_VPC))
sys/dev/sound/pcm/dsp.c
994
PCM_UNLOCKASSERT(d);
sys/dev/sound/pcm/feeder_chain.c
568
struct snddev_info *d;
sys/dev/sound/pcm/feeder_chain.c
693
d = c->parentsnddev;
sys/dev/sound/pcm/feeder_chain.c
713
(((d->flags & SD_F_VPC) && !(c->flags & CHN_F_HAS_VCHAN)) ||
sys/dev/sound/pcm/feeder_chain.c
714
(!(d->flags & SD_F_VPC) && (d->flags & SD_F_SOFTPCMVOL) &&
sys/dev/sound/pcm/feeder_chain.c
724
c->direction == PCMDIR_PLAY && (d->flags & SD_F_EQ) &&
sys/dev/sound/pcm/feeder_chain.c
725
(((d->flags & SD_F_EQ_PC) &&
sys/dev/sound/pcm/feeder_chain.c
727
(!(d->flags & SD_F_EQ_PC) && !(c->flags & CHN_F_VIRTUAL))))
sys/dev/sound/pcm/feeder_eq.c
546
struct snddev_info *d;
sys/dev/sound/pcm/feeder_eq.c
551
d = oidp->oid_arg1;
sys/dev/sound/pcm/feeder_eq.c
552
if (!PCM_REGISTERED(d))
sys/dev/sound/pcm/feeder_eq.c
555
PCM_LOCK(d);
sys/dev/sound/pcm/feeder_eq.c
556
PCM_WAIT(d);
sys/dev/sound/pcm/feeder_eq.c
557
if (d->flags & SD_F_EQ_BYPASSED)
sys/dev/sound/pcm/feeder_eq.c
559
else if (d->flags & SD_F_EQ_ENABLED)
sys/dev/sound/pcm/feeder_eq.c
563
PCM_ACQUIRE(d);
sys/dev/sound/pcm/feeder_eq.c
564
PCM_UNLOCK(d);
sys/dev/sound/pcm/feeder_eq.c
571
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/feeder_eq.c
575
PCM_LOCK(d);
sys/dev/sound/pcm/feeder_eq.c
577
d->flags &= ~(SD_F_EQ_ENABLED | SD_F_EQ_BYPASSED);
sys/dev/sound/pcm/feeder_eq.c
580
d->flags |= SD_F_EQ_BYPASSED;
sys/dev/sound/pcm/feeder_eq.c
583
d->flags |= SD_F_EQ_ENABLED;
sys/dev/sound/pcm/feeder_eq.c
587
CHN_FOREACH(c, d, channels.pcm.busy) {
sys/dev/sound/pcm/feeder_eq.c
595
PCM_RELEASE(d);
sys/dev/sound/pcm/feeder_eq.c
596
PCM_UNLOCK(d);
sys/dev/sound/pcm/feeder_eq.c
598
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/feeder_eq.c
606
struct snddev_info *d;
sys/dev/sound/pcm/feeder_eq.c
612
d = oidp->oid_arg1;
sys/dev/sound/pcm/feeder_eq.c
613
if (!PCM_REGISTERED(d))
sys/dev/sound/pcm/feeder_eq.c
616
PCM_LOCK(d);
sys/dev/sound/pcm/feeder_eq.c
617
PCM_WAIT(d);
sys/dev/sound/pcm/feeder_eq.c
618
val = d->eqpreamp;
sys/dev/sound/pcm/feeder_eq.c
623
PCM_ACQUIRE(d);
sys/dev/sound/pcm/feeder_eq.c
624
PCM_UNLOCK(d);
sys/dev/sound/pcm/feeder_eq.c
632
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/feeder_eq.c
636
PCM_LOCK(d);
sys/dev/sound/pcm/feeder_eq.c
644
d->eqpreamp = val;
sys/dev/sound/pcm/feeder_eq.c
646
CHN_FOREACH(c, d, channels.pcm.busy) {
sys/dev/sound/pcm/feeder_eq.c
656
PCM_RELEASE(d);
sys/dev/sound/pcm/feeder_eq.c
657
PCM_UNLOCK(d);
sys/dev/sound/pcm/feeder_eq.c
659
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/feeder_eq.c
667
struct snddev_info *d;
sys/dev/sound/pcm/feeder_eq.c
671
d = device_get_softc(dev);
sys/dev/sound/pcm/feeder_eq.c
675
(d->eqpreamp = feed_eq_scan_preamp_arg(preamp)) !=
sys/dev/sound/pcm/feeder_eq.c
677
d->eqpreamp = FEEDEQ_PREAMP_DEFAULT;
sys/dev/sound/pcm/feeder_eq.c
679
if (d->eqpreamp < FEEDEQ_PREAMP_MIN)
sys/dev/sound/pcm/feeder_eq.c
680
d->eqpreamp = FEEDEQ_PREAMP_MIN;
sys/dev/sound/pcm/feeder_eq.c
681
else if (d->eqpreamp > FEEDEQ_PREAMP_MAX)
sys/dev/sound/pcm/feeder_eq.c
682
d->eqpreamp = FEEDEQ_PREAMP_MAX;
sys/dev/sound/pcm/feeder_eq.c
686
"eq", CTLTYPE_INT | CTLFLAG_RW, d, sizeof(d),
sys/dev/sound/pcm/feeder_eq.c
699
"eq_preamp", CTLTYPE_STRING | CTLFLAG_RW, d, sizeof(d),
sys/dev/sound/pcm/feeder_mixer.c
136
#define FEEDMIXER_INFOIDX(d) ((uint32_t)((uintptr_t)(d) >> 5) & 0x1f)
sys/dev/sound/pcm/feeder_mixer.c
137
#define FEEDMIXER_CHANNELS(d) ((uint32_t)((uintptr_t)(d)) & 0x1f)
sys/dev/sound/pcm/feeder_rate.c
244
struct snddev_info *d;
sys/dev/sound/pcm/feeder_rate.c
267
d = devclass_get_softc(pcm_devclass, i);
sys/dev/sound/pcm/feeder_rate.c
268
if (!PCM_REGISTERED(d))
sys/dev/sound/pcm/feeder_rate.c
270
PCM_LOCK(d);
sys/dev/sound/pcm/feeder_rate.c
271
PCM_WAIT(d);
sys/dev/sound/pcm/feeder_rate.c
272
PCM_ACQUIRE(d);
sys/dev/sound/pcm/feeder_rate.c
273
CHN_FOREACH(c, d, channels.pcm) {
sys/dev/sound/pcm/feeder_rate.c
283
PCM_RELEASE(d);
sys/dev/sound/pcm/feeder_rate.c
284
PCM_UNLOCK(d);
sys/dev/sound/pcm/mixer.c
1040
struct snddev_info *d;
sys/dev/sound/pcm/mixer.c
1048
d = device_get_softc(m->dev);
sys/dev/sound/pcm/mixer.c
1049
if (!PCM_REGISTERED(d))
sys/dev/sound/pcm/mixer.c
1065
struct snddev_info *d;
sys/dev/sound/pcm/mixer.c
1073
d = device_get_softc(m->dev);
sys/dev/sound/pcm/mixer.c
1074
if (!PCM_REGISTERED(d))
sys/dev/sound/pcm/mixer.c
1091
struct snddev_info *d;
sys/dev/sound/pcm/mixer.c
1101
d = device_get_softc(m->dev);
sys/dev/sound/pcm/mixer.c
1133
CHN_FOREACH(c, d, channels.pcm.opened) {
sys/dev/sound/pcm/mixer.c
1202
struct snddev_info *d;
sys/dev/sound/pcm/mixer.c
1208
d = device_get_softc(((struct snd_mixer *)i_dev->si_drv1)->dev);
sys/dev/sound/pcm/mixer.c
1209
if (!PCM_REGISTERED(d))
sys/dev/sound/pcm/mixer.c
1212
PCM_GIANT_ENTER(d);
sys/dev/sound/pcm/mixer.c
1213
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/mixer.c
1217
if (mixer_bypass != 0 && (d->flags & SD_F_VPC))
sys/dev/sound/pcm/mixer.c
1225
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/mixer.c
1226
PCM_GIANT_LEAVE(d);
sys/dev/sound/pcm/mixer.c
1343
struct snddev_info *d;
sys/dev/sound/pcm/mixer.c
1353
d = devclass_get_softc(pcm_devclass, unit);
sys/dev/sound/pcm/mixer.c
1354
if (d == NULL)
sys/dev/sound/pcm/mixer.c
1356
if (!PCM_REGISTERED(d))
sys/dev/sound/pcm/mixer.c
1359
ap->a_dev = d->mixer_dev;
sys/dev/sound/pcm/mixer.c
1406
struct snddev_info *d;
sys/dev/sound/pcm/mixer.c
1417
d = NULL;
sys/dev/sound/pcm/mixer.c
1427
d = devclass_get_softc(pcm_devclass, i);
sys/dev/sound/pcm/mixer.c
1428
if (!PCM_REGISTERED(d))
sys/dev/sound/pcm/mixer.c
1434
PCM_UNLOCKASSERT(d);
sys/dev/sound/pcm/mixer.c
1435
PCM_LOCK(d);
sys/dev/sound/pcm/mixer.c
1437
if (d->mixer_dev != NULL && d->mixer_dev->si_drv1 != NULL &&
sys/dev/sound/pcm/mixer.c
1438
((mi->dev == -1 && d->mixer_dev == i_dev) ||
sys/dev/sound/pcm/mixer.c
1440
m = d->mixer_dev->si_drv1;
sys/dev/sound/pcm/mixer.c
150
mixer_set_softpcmvol(struct snd_mixer *m, struct snddev_info *d,
sys/dev/sound/pcm/mixer.c
1518
PCM_UNLOCK(d);
sys/dev/sound/pcm/mixer.c
156
if (!PCM_REGISTERED(d))
sys/dev/sound/pcm/mixer.c
164
if (!(d->flags & SD_F_MPSAFE) || lockstatus(d->lock, curthread) == LK_EXCLUSIVE)
sys/dev/sound/pcm/mixer.c
177
MIXER_SET_LOCK(d, acquiremtx);
sys/dev/sound/pcm/mixer.c
179
CHN_FOREACH(c, d, channels.pcm.busy) {
sys/dev/sound/pcm/mixer.c
188
MIXER_SET_UNLOCK(d, acquiremtx);
sys/dev/sound/pcm/mixer.c
195
mixer_set_eq(struct snd_mixer *m, struct snddev_info *d,
sys/dev/sound/pcm/mixer.c
209
if (!PCM_REGISTERED(d))
sys/dev/sound/pcm/mixer.c
217
if (!(d->flags & SD_F_MPSAFE) || lockstatus(d->lock, curthread) == LK_EXCLUSIVE)
sys/dev/sound/pcm/mixer.c
230
MIXER_SET_LOCK(d, acquiremtx);
sys/dev/sound/pcm/mixer.c
232
CHN_FOREACH(c, d, channels.pcm.busy) {
sys/dev/sound/pcm/mixer.c
240
MIXER_SET_UNLOCK(d, acquiremtx);
sys/dev/sound/pcm/mixer.c
249
struct snddev_info *d;
sys/dev/sound/pcm/mixer.c
263
d = device_get_softc(m->dev);
sys/dev/sound/pcm/mixer.c
264
if (d == NULL)
sys/dev/sound/pcm/mixer.c
268
if (!(d->flags & SD_F_MPSAFE) && lockstatus(m->lock, curthread) == LK_EXCLUSIVE)
sys/dev/sound/pcm/mixer.c
285
if (dev == SOUND_MIXER_PCM && (d->flags & SD_F_SOFTPCMVOL))
sys/dev/sound/pcm/mixer.c
286
(void)mixer_set_softpcmvol(m, d, tl, tr);
sys/dev/sound/pcm/mixer.c
300
(d->flags & SD_F_SOFTPCMVOL))
sys/dev/sound/pcm/mixer.c
301
(void)mixer_set_softpcmvol(m, d, tl, tr);
sys/dev/sound/pcm/mixer.c
312
if (dev == SOUND_MIXER_PCM && (d->flags & SD_F_SOFTPCMVOL))
sys/dev/sound/pcm/mixer.c
313
(void)mixer_set_softpcmvol(m, d, l, r);
sys/dev/sound/pcm/mixer.c
315
dev == SOUND_MIXER_BASS) && (d->flags & SD_F_EQ))
sys/dev/sound/pcm/mixer.c
316
(void)mixer_set_eq(m, d, dev, (l + r) >> 1);
sys/dev/sound/pcm/mixer.c
343
struct snddev_info *d;
sys/dev/sound/pcm/mixer.c
347
d = device_get_softc(mixer->dev);
sys/dev/sound/pcm/mixer.c
348
if (d == NULL)
sys/dev/sound/pcm/mixer.c
350
if (!(d->flags & SD_F_MPSAFE) && lockstatus(mixer->lock, curthread) == LK_EXCLUSIVE)
sys/dev/sound/pcm/mixer.c
459
struct snddev_info *d;
sys/dev/sound/pcm/mixer.c
465
d = device_get_softc(m->dev);
sys/dev/sound/pcm/mixer.c
466
if (d != NULL && (d->flags & SD_F_SOFTPCMVOL))
sys/dev/sound/pcm/mixer.c
468
if (d != NULL && (d->flags & SD_F_EQ))
sys/dev/sound/pcm/mixer.c
770
struct snddev_info *d;
sys/dev/sound/pcm/mixer.c
774
d = device_get_softc(dev);
sys/dev/sound/pcm/mixer.c
776
if (d == NULL || pdev == NULL || pdev->si_drv1 == NULL)
sys/dev/sound/pcm/mixer.c
814
d->mixer_dev = NULL;
sys/dev/sound/pcm/sndstat.c
375
struct snddev_info *d;
sys/dev/sound/pcm/sndstat.c
397
d = device_get_softc(ent->dev);
sys/dev/sound/pcm/sndstat.c
398
if (!PCM_REGISTERED(d))
sys/dev/sound/pcm/sndstat.c
401
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/sndstat.c
409
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/sndstat.h
36
struct snddev_info *d; \
sys/dev/sound/pcm/sndstat.h
40
d = device_get_softc(dev); \
sys/dev/sound/pcm/sndstat.h
41
PCM_BUSYASSERT(d); \
sys/dev/sound/pcm/sndstat.h
43
if (CHN_EMPTY(d, channels.pcm)) { \
sys/dev/sound/pcm/sndstat.h
50
d->playcount ? "play" : "", \
sys/dev/sound/pcm/sndstat.h
51
(d->playcount && d->reccount) ? "/" : "", \
sys/dev/sound/pcm/sndstat.h
52
d->reccount ? "rec" : ""); \
sys/dev/sound/pcm/sndstat.h
55
d->playcount, d->pvchancount, \
sys/dev/sound/pcm/sndstat.h
56
d->reccount, d->rvchancount); \
sys/dev/sound/pcm/sndstat.h
59
((d->playcount != 0 && d->reccount != 0) && \
sys/dev/sound/pcm/sndstat.h
60
(d->flags & SD_F_SIMPLEX)) ? " simplex" : "", \
sys/dev/sound/pcm/sndstat.h
69
sbuf_printf(s, "snddev flags=0x%pb%i", SD_F_BITS, d->flags); \
sys/dev/sound/pcm/sndstat.h
71
CHN_FOREACH(c, d, channels.pcm) { \
sys/dev/sound/pcm/sound.c
1000
val = snd_clone_gc(d->clones);
sys/dev/sound/pcm/sound.c
1001
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/sound.c
1003
device_printf(d->dev, "clone gc: pruned=%d\n",
sys/dev/sound/pcm/sound.c
1018
struct snddev_info *d;
sys/dev/sound/pcm/sound.c
1035
d = device_get_softc(dev);
sys/dev/sound/pcm/sound.c
1036
d->dev = dev;
sys/dev/sound/pcm/sound.c
1037
d->lock = snd_mtxcreate(device_get_nameunit(dev), "sound cdev");
sys/dev/sound/pcm/sound.c
1038
cv_init(&d->cv, device_get_nameunit(dev));
sys/dev/sound/pcm/sound.c
1039
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/sound.c
1040
dsp_cdevinfo_init(d);
sys/dev/sound/pcm/sound.c
1047
d->flags = 0;
sys/dev/sound/pcm/sound.c
1052
d->flags |= SD_F_VPC;
sys/dev/sound/pcm/sound.c
1056
d->flags |= SD_F_BITPERFECT;
sys/dev/sound/pcm/sound.c
1058
d->devinfo = devinfo;
sys/dev/sound/pcm/sound.c
1059
d->devcount = 0;
sys/dev/sound/pcm/sound.c
1060
d->reccount = 0;
sys/dev/sound/pcm/sound.c
1061
d->playcount = 0;
sys/dev/sound/pcm/sound.c
1062
d->pvchancount = 0;
sys/dev/sound/pcm/sound.c
1063
d->rvchancount = 0;
sys/dev/sound/pcm/sound.c
1064
d->pvchanrate = 0;
sys/dev/sound/pcm/sound.c
1065
d->pvchanformat = 0;
sys/dev/sound/pcm/sound.c
1066
d->rvchanrate = 0;
sys/dev/sound/pcm/sound.c
1067
d->rvchanformat = 0;
sys/dev/sound/pcm/sound.c
1068
d->inprog = 0;
sys/dev/sound/pcm/sound.c
1075
d->clones = snd_clone_create(SND_U_MASK | SND_D_MASK, PCMMAXCLONE,
sys/dev/sound/pcm/sound.c
1080
CHN_INIT(d, channels.pcm);
sys/dev/sound/pcm/sound.c
1081
CHN_INIT(d, channels.pcm.busy);
sys/dev/sound/pcm/sound.c
1082
CHN_INIT(d, channels.pcm.opened);
sys/dev/sound/pcm/sound.c
1086
d->flags |= SD_F_SIMPLEX;
sys/dev/sound/pcm/sound.c
1088
sysctl_ctx_init(&d->play_sysctl_ctx);
sys/dev/sound/pcm/sound.c
1089
d->play_sysctl_tree = SYSCTL_ADD_NODE(&d->play_sysctl_ctx,
sys/dev/sound/pcm/sound.c
1092
sysctl_ctx_init(&d->rec_sysctl_ctx);
sys/dev/sound/pcm/sound.c
1093
d->rec_sysctl_tree = SYSCTL_ADD_NODE(&d->rec_sysctl_ctx,
sys/dev/sound/pcm/sound.c
1100
OID_AUTO, "buffersize", CTLFLAG_RD, &d->bufsz, 0, "allocated buffer size");
sys/dev/sound/pcm/sound.c
1103
"bitperfect", CTLTYPE_INT | CTLFLAG_RW, d, sizeof(d),
sys/dev/sound/pcm/sound.c
1109
"clone_flags", CTLTYPE_UINT | CTLFLAG_RW, d, sizeof(d),
sys/dev/sound/pcm/sound.c
1114
"clone_deadline", CTLTYPE_INT | CTLFLAG_RW, d, sizeof(d),
sys/dev/sound/pcm/sound.c
1119
"clone_gc", CTLTYPE_INT | CTLFLAG_RW, d, sizeof(d),
sys/dev/sound/pcm/sound.c
1125
d->flags |= SD_F_AUTOVCHAN;
sys/dev/sound/pcm/sound.c
1129
if (d->flags & SD_F_EQ)
sys/dev/sound/pcm/sound.c
1134
d->dsp_clonedev = make_dev(&dsp_ops,
sys/dev/sound/pcm/sound.c
1138
devfs_clone_handler_add(devtoname(d->dsp_clonedev), dsp_clone);
sys/dev/sound/pcm/sound.c
1140
sndstat_register(dev, d->status, sndstat_prepare_pcm);
sys/dev/sound/pcm/sound.c
1148
struct snddev_info *d;
sys/dev/sound/pcm/sound.c
1153
d = device_get_softc(dev);
sys/dev/sound/pcm/sound.c
1155
if (!PCM_ALIVE(d)) {
sys/dev/sound/pcm/sound.c
1165
PCM_LOCK(d);
sys/dev/sound/pcm/sound.c
1166
PCM_WAIT(d);
sys/dev/sound/pcm/sound.c
1168
if (d->inprog != 0) {
sys/dev/sound/pcm/sound.c
1170
PCM_UNLOCK(d);
sys/dev/sound/pcm/sound.c
1175
PCM_ACQUIRE(d);
sys/dev/sound/pcm/sound.c
1176
PCM_UNLOCK(d);
sys/dev/sound/pcm/sound.c
1178
CHN_FOREACH(ch, d, channels.pcm) {
sys/dev/sound/pcm/sound.c
1185
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/sound.c
1192
if (d->clones != NULL) {
sys/dev/sound/pcm/sound.c
1193
if (snd_clone_busy(d->clones) != 0) {
sys/dev/sound/pcm/sound.c
1195
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/sound.c
1199
PCM_LOCK(d);
sys/dev/sound/pcm/sound.c
1200
(void)snd_clone_disable(d->clones);
sys/dev/sound/pcm/sound.c
1201
PCM_UNLOCK(d);
sys/dev/sound/pcm/sound.c
1207
PCM_LOCK(d);
sys/dev/sound/pcm/sound.c
1208
if (d->clones != NULL)
sys/dev/sound/pcm/sound.c
1209
(void)snd_clone_enable(d->clones);
sys/dev/sound/pcm/sound.c
1210
PCM_RELEASE(d);
sys/dev/sound/pcm/sound.c
1211
PCM_UNLOCK(d);
sys/dev/sound/pcm/sound.c
1216
PCM_LOCK(d);
sys/dev/sound/pcm/sound.c
1217
d->flags |= SD_F_DYING;
sys/dev/sound/pcm/sound.c
1218
d->flags &= ~SD_F_REGISTERED;
sys/dev/sound/pcm/sound.c
1219
PCM_UNLOCK(d);
sys/dev/sound/pcm/sound.c
1225
if (d->clones != NULL) {
sys/dev/sound/pcm/sound.c
1226
snd_clone_destroy(d->clones);
sys/dev/sound/pcm/sound.c
1227
d->clones = NULL;
sys/dev/sound/pcm/sound.c
1229
devfs_clone_handler_del(devtoname(d->dsp_clonedev));
sys/dev/sound/pcm/sound.c
123
struct snddev_info *d;
sys/dev/sound/pcm/sound.c
1230
destroy_dev(d->dsp_clonedev);
sys/dev/sound/pcm/sound.c
1232
if (d->play_sysctl_tree != NULL) {
sys/dev/sound/pcm/sound.c
1233
sysctl_ctx_free(&d->play_sysctl_ctx);
sys/dev/sound/pcm/sound.c
1234
d->play_sysctl_tree = NULL;
sys/dev/sound/pcm/sound.c
1236
if (d->rec_sysctl_tree != NULL) {
sys/dev/sound/pcm/sound.c
1237
sysctl_ctx_free(&d->rec_sysctl_ctx);
sys/dev/sound/pcm/sound.c
1238
d->rec_sysctl_tree = NULL;
sys/dev/sound/pcm/sound.c
1241
while (!CHN_EMPTY(d, channels.pcm))
sys/dev/sound/pcm/sound.c
1244
dsp_cdevinfo_flush(d);
sys/dev/sound/pcm/sound.c
1246
PCM_LOCK(d);
sys/dev/sound/pcm/sound.c
1247
PCM_RELEASE(d);
sys/dev/sound/pcm/sound.c
1248
cv_destroy(&d->cv);
sys/dev/sound/pcm/sound.c
1249
PCM_UNLOCK(d);
sys/dev/sound/pcm/sound.c
1250
snd_mtxfree(d->lock);
sys/dev/sound/pcm/sound.c
126
d = device_get_softc(dev);
sys/dev/sound/pcm/sound.c
127
if (d != NULL && (flags & INTR_MPSAFE))
sys/dev/sound/pcm/sound.c
128
d->flags |= SD_F_MPSAFE;
sys/dev/sound/pcm/sound.c
1290
struct snddev_info *d;
sys/dev/sound/pcm/sound.c
1312
d = devclass_get_softc(pcm_devclass, i);
sys/dev/sound/pcm/sound.c
1313
if (!PCM_REGISTERED(d))
sys/dev/sound/pcm/sound.c
1319
PCM_UNLOCKASSERT(d);
sys/dev/sound/pcm/sound.c
1320
PCM_LOCK(d);
sys/dev/sound/pcm/sound.c
1322
si->numaudios += d->devcount;
sys/dev/sound/pcm/sound.c
1325
CHN_FOREACH(c, d, channels.pcm) {
sys/dev/sound/pcm/sound.c
1335
PCM_UNLOCK(d);
sys/dev/sound/pcm/sound.c
134
pcm_clonereset(struct snddev_info *d)
sys/dev/sound/pcm/sound.c
1377
struct snddev_info *d;
sys/dev/sound/pcm/sound.c
138
PCM_BUSYASSERT(d);
sys/dev/sound/pcm/sound.c
1384
d = devclass_get_softc(pcm_devclass, i);
sys/dev/sound/pcm/sound.c
1385
if (!PCM_REGISTERED(d))
sys/dev/sound/pcm/sound.c
1391
PCM_UNLOCKASSERT(d);
sys/dev/sound/pcm/sound.c
1392
PCM_LOCK(d);
sys/dev/sound/pcm/sound.c
1394
strlcpy(si->shortname, device_get_nameunit(d->dev),
sys/dev/sound/pcm/sound.c
1396
strlcpy(si->longname, device_get_desc(d->dev),
sys/dev/sound/pcm/sound.c
1398
strlcpy(si->hw_info, d->status, sizeof(si->hw_info));
sys/dev/sound/pcm/sound.c
140
cmax = d->playcount + d->reccount - 1;
sys/dev/sound/pcm/sound.c
1401
PCM_UNLOCK(d);
sys/dev/sound/pcm/sound.c
141
if (d->pvchancount > 0)
sys/dev/sound/pcm/sound.c
142
cmax += max(d->pvchancount, snd_maxautovchans) - 1;
sys/dev/sound/pcm/sound.c
143
if (d->rvchancount > 0)
sys/dev/sound/pcm/sound.c
144
cmax += max(d->rvchancount, snd_maxautovchans) - 1;
sys/dev/sound/pcm/sound.c
147
(void)snd_clone_gc(d->clones);
sys/dev/sound/pcm/sound.c
148
(void)snd_clone_setmaxunit(d->clones, cmax);
sys/dev/sound/pcm/sound.c
152
pcm_setvchans(struct snddev_info *d, int direction, int newcnt, int num)
sys/dev/sound/pcm/sound.c
158
PCM_BUSYASSERT(d);
sys/dev/sound/pcm/sound.c
160
if ((direction == PCMDIR_PLAY && d->playcount < 1) ||
sys/dev/sound/pcm/sound.c
161
(direction == PCMDIR_REC && d->reccount < 1))
sys/dev/sound/pcm/sound.c
164
if (!(d->flags & SD_F_AUTOVCHAN))
sys/dev/sound/pcm/sound.c
171
vcnt = d->pvchancount;
sys/dev/sound/pcm/sound.c
173
vcnt = d->rvchancount;
sys/dev/sound/pcm/sound.c
184
CHN_FOREACH(c, d, channels.pcm) {
sys/dev/sound/pcm/sound.c
227
device_printf(d->dev,
sys/dev/sound/pcm/sound.c
237
pcm_clonereset(d);
sys/dev/sound/pcm/sound.c
241
CHN_FOREACH(c, d, channels.pcm) {
sys/dev/sound/pcm/sound.c
268
pcm_clonereset(d);
sys/dev/sound/pcm/sound.c
276
pcm_chnalloc(struct snddev_info *d, struct pcm_channel **ch, int direction,
sys/dev/sound/pcm/sound.c
282
KASSERT(d != NULL && ch != NULL && (devunit == -1 ||
sys/dev/sound/pcm/sound.c
286
__func__, d, ch, direction, pid, devunit));
sys/dev/sound/pcm/sound.c
287
PCM_BUSYASSERT(d);
sys/dev/sound/pcm/sound.c
312
vchancount = (direction == PCMDIR_PLAY) ? d->pvchancount :
sys/dev/sound/pcm/sound.c
313
d->rvchancount;
sys/dev/sound/pcm/sound.c
318
CHN_FOREACH(c, d, channels.pcm) {
sys/dev/sound/pcm/sound.c
362
err = pcm_setvchans(d, direction, vchancount + 1,
sys/dev/sound/pcm/sound.c
401
pcm_inprog(struct snddev_info *d, int delta)
sys/dev/sound/pcm/sound.c
403
PCM_LOCKASSERT(d);
sys/dev/sound/pcm/sound.c
405
d->inprog += delta;
sys/dev/sound/pcm/sound.c
407
return (d->inprog);
sys/dev/sound/pcm/sound.c
411
pcm_setmaxautovchans(struct snddev_info *d, int num)
sys/dev/sound/pcm/sound.c
413
PCM_BUSYASSERT(d);
sys/dev/sound/pcm/sound.c
418
if (num >= 0 && d->pvchancount > num)
sys/dev/sound/pcm/sound.c
419
(void)pcm_setvchans(d, PCMDIR_PLAY, num, -1);
sys/dev/sound/pcm/sound.c
420
else if (num > 0 && d->pvchancount == 0)
sys/dev/sound/pcm/sound.c
421
(void)pcm_setvchans(d, PCMDIR_PLAY, 1, -1);
sys/dev/sound/pcm/sound.c
423
if (num >= 0 && d->rvchancount > num)
sys/dev/sound/pcm/sound.c
424
(void)pcm_setvchans(d, PCMDIR_REC, num, -1);
sys/dev/sound/pcm/sound.c
425
else if (num > 0 && d->rvchancount == 0)
sys/dev/sound/pcm/sound.c
426
(void)pcm_setvchans(d, PCMDIR_REC, 1, -1);
sys/dev/sound/pcm/sound.c
428
pcm_clonereset(d);
sys/dev/sound/pcm/sound.c
434
struct snddev_info *d;
sys/dev/sound/pcm/sound.c
440
d = devclass_get_softc(pcm_devclass, unit);
sys/dev/sound/pcm/sound.c
441
if (!PCM_REGISTERED(d) || CHN_EMPTY(d, channels.pcm))
sys/dev/sound/pcm/sound.c
458
struct snddev_info *d;
sys/dev/sound/pcm/sound.c
471
d = devclass_get_softc(pcm_devclass, i);
sys/dev/sound/pcm/sound.c
472
if (!PCM_REGISTERED(d))
sys/dev/sound/pcm/sound.c
474
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/sound.c
475
pcm_setmaxautovchans(d, v);
sys/dev/sound/pcm/sound.c
476
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/sound.c
485
pcm_chn_create(struct snddev_info *d, struct pcm_channel *parent, kobj_class_t cls, int dir, int num, void *devinfo)
sys/dev/sound/pcm/sound.c
492
PCM_BUSYASSERT(d);
sys/dev/sound/pcm/sound.c
493
PCM_LOCKASSERT(d);
sys/dev/sound/pcm/sound.c
501
pnum = &d->playcount;
sys/dev/sound/pcm/sound.c
508
pnum = &d->pvchancount;
sys/dev/sound/pcm/sound.c
515
pnum = &d->reccount;
sys/dev/sound/pcm/sound.c
522
pnum = &d->rvchancount;
sys/dev/sound/pcm/sound.c
537
CHN_FOREACH(ch, d, channels.pcm) {
sys/dev/sound/pcm/sound.c
542
device_printf(d->dev,
sys/dev/sound/pcm/sound.c
548
device_printf(d->dev,
sys/dev/sound/pcm/sound.c
557
device_printf(d->dev,
sys/dev/sound/pcm/sound.c
563
udc = snd_mkunit(device_get_unit(d->dev), device, chan);
sys/dev/sound/pcm/sound.c
567
device_printf(d->dev,
sys/dev/sound/pcm/sound.c
572
PCM_UNLOCK(d);
sys/dev/sound/pcm/sound.c
578
ch->parentsnddev = d;
sys/dev/sound/pcm/sound.c
580
ch->dev = d->dev;
sys/dev/sound/pcm/sound.c
586
PCM_LOCK(d);
sys/dev/sound/pcm/sound.c
588
device_printf(d->dev, "chn_init(%s) failed: err = %d\n",
sys/dev/sound/pcm/sound.c
601
struct snddev_info *d;
sys/dev/sound/pcm/sound.c
604
d = ch->parentsnddev;
sys/dev/sound/pcm/sound.c
605
PCM_BUSYASSERT(d);
sys/dev/sound/pcm/sound.c
621
pcm_chn_add(struct snddev_info *d, struct pcm_channel *ch)
sys/dev/sound/pcm/sound.c
623
PCM_BUSYASSERT(d);
sys/dev/sound/pcm/sound.c
624
PCM_LOCKASSERT(d);
sys/dev/sound/pcm/sound.c
628
CHN_INSERT_SORT_ASCEND(d, ch, channels.pcm);
sys/dev/sound/pcm/sound.c
632
d->playcount++;
sys/dev/sound/pcm/sound.c
635
d->pvchancount++;
sys/dev/sound/pcm/sound.c
638
d->reccount++;
sys/dev/sound/pcm/sound.c
641
d->rvchancount++;
sys/dev/sound/pcm/sound.c
647
d->devcount++;
sys/dev/sound/pcm/sound.c
653
pcm_chn_remove(struct snddev_info *d, struct pcm_channel *ch)
sys/dev/sound/pcm/sound.c
657
PCM_BUSYASSERT(d);
sys/dev/sound/pcm/sound.c
658
PCM_LOCKASSERT(d);
sys/dev/sound/pcm/sound.c
662
CHN_FOREACH(tmp, d, channels.pcm) {
sys/dev/sound/pcm/sound.c
670
CHN_REMOVE(d, ch, channels.pcm);
sys/dev/sound/pcm/sound.c
674
d->playcount--;
sys/dev/sound/pcm/sound.c
677
d->pvchancount--;
sys/dev/sound/pcm/sound.c
680
d->reccount--;
sys/dev/sound/pcm/sound.c
683
d->rvchancount--;
sys/dev/sound/pcm/sound.c
689
d->devcount--;
sys/dev/sound/pcm/sound.c
697
struct snddev_info *d = device_get_softc(dev);
sys/dev/sound/pcm/sound.c
701
PCM_BUSYASSERT(d);
sys/dev/sound/pcm/sound.c
703
PCM_LOCK(d);
sys/dev/sound/pcm/sound.c
704
ch = pcm_chn_create(d, NULL, cls, dir, -1, devinfo);
sys/dev/sound/pcm/sound.c
706
device_printf(d->dev, "pcm_chn_create(%s, %d, %p) failed\n",
sys/dev/sound/pcm/sound.c
708
PCM_UNLOCK(d);
sys/dev/sound/pcm/sound.c
712
err = pcm_chn_add(d, ch);
sys/dev/sound/pcm/sound.c
713
PCM_UNLOCK(d);
sys/dev/sound/pcm/sound.c
715
device_printf(d->dev, "pcm_chn_add(%s) failed, err=%d\n",
sys/dev/sound/pcm/sound.c
726
struct snddev_info *d = device_get_softc(dev);
sys/dev/sound/pcm/sound.c
730
PCM_BUSYASSERT(d);
sys/dev/sound/pcm/sound.c
732
ch = CHN_FIRST(d, channels.pcm);
sys/dev/sound/pcm/sound.c
734
PCM_LOCK(d);
sys/dev/sound/pcm/sound.c
735
error = pcm_chn_remove(d, ch);
sys/dev/sound/pcm/sound.c
736
PCM_UNLOCK(d);
sys/dev/sound/pcm/sound.c
745
struct snddev_info *d;
sys/dev/sound/pcm/sound.c
752
d = devclass_get_softc(pcm_devclass, i);
sys/dev/sound/pcm/sound.c
753
if (!PCM_REGISTERED(d))
sys/dev/sound/pcm/sound.c
756
if (d->playcount == 0)
sys/dev/sound/pcm/sound.c
758
if (d->reccount == 0)
sys/dev/sound/pcm/sound.c
771
struct snddev_info *d = device_get_softc(dev);
sys/dev/sound/pcm/sound.c
773
PCM_BUSYASSERT(d);
sys/dev/sound/pcm/sound.c
775
if (d->playcount == 0 || d->reccount == 0)
sys/dev/sound/pcm/sound.c
776
d->flags |= SD_F_SIMPLEX;
sys/dev/sound/pcm/sound.c
778
if ((d->playcount > 0 || d->reccount > 0) &&
sys/dev/sound/pcm/sound.c
779
!(d->flags & SD_F_AUTOVCHAN)) {
sys/dev/sound/pcm/sound.c
780
d->flags |= SD_F_AUTOVCHAN;
sys/dev/sound/pcm/sound.c
784
pcm_setmaxautovchans(d, snd_maxautovchans);
sys/dev/sound/pcm/sound.c
786
strlcpy(d->status, str, SND_STATUSLEN);
sys/dev/sound/pcm/sound.c
788
PCM_LOCK(d);
sys/dev/sound/pcm/sound.c
791
if (d->clones != NULL)
sys/dev/sound/pcm/sound.c
792
(void)snd_clone_enable(d->clones);
sys/dev/sound/pcm/sound.c
795
d->flags |= SD_F_REGISTERED;
sys/dev/sound/pcm/sound.c
797
PCM_RELEASE(d);
sys/dev/sound/pcm/sound.c
799
PCM_UNLOCK(d);
sys/dev/sound/pcm/sound.c
816
struct snddev_info *d = device_get_softc(dev);
sys/dev/sound/pcm/sound.c
818
return d->flags;
sys/dev/sound/pcm/sound.c
824
struct snddev_info *d = device_get_softc(dev);
sys/dev/sound/pcm/sound.c
826
d->flags = val;
sys/dev/sound/pcm/sound.c
832
struct snddev_info *d = device_get_softc(dev);
sys/dev/sound/pcm/sound.c
834
return d->devinfo;
sys/dev/sound/pcm/sound.c
840
struct snddev_info *d = device_get_softc(dev);
sys/dev/sound/pcm/sound.c
862
d->bufsz = sz;
sys/dev/sound/pcm/sound.c
870
struct snddev_info *d;
sys/dev/sound/pcm/sound.c
873
d = oidp->oid_arg1;
sys/dev/sound/pcm/sound.c
874
if (!PCM_REGISTERED(d))
sys/dev/sound/pcm/sound.c
877
PCM_LOCK(d);
sys/dev/sound/pcm/sound.c
878
PCM_WAIT(d);
sys/dev/sound/pcm/sound.c
879
val = (d->flags & SD_F_BITPERFECT) ? 1 : 0;
sys/dev/sound/pcm/sound.c
880
PCM_ACQUIRE(d);
sys/dev/sound/pcm/sound.c
881
PCM_UNLOCK(d);
sys/dev/sound/pcm/sound.c
887
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/sound.c
891
PCM_LOCK(d);
sys/dev/sound/pcm/sound.c
893
d->flags &= ~SD_F_BITPERFECT;
sys/dev/sound/pcm/sound.c
894
d->flags |= (val != 0) ? SD_F_BITPERFECT : 0;
sys/dev/sound/pcm/sound.c
896
PCM_RELEASE(d);
sys/dev/sound/pcm/sound.c
897
PCM_UNLOCK(d);
sys/dev/sound/pcm/sound.c
899
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/sound.c
908
struct snddev_info *d;
sys/dev/sound/pcm/sound.c
912
d = oidp->oid_arg1;
sys/dev/sound/pcm/sound.c
913
if (!PCM_REGISTERED(d) || d->clones == NULL)
sys/dev/sound/pcm/sound.c
916
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/sound.c
918
flags = snd_clone_getflags(d->clones);
sys/dev/sound/pcm/sound.c
925
(void)snd_clone_setflags(d->clones, flags);
sys/dev/sound/pcm/sound.c
928
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/sound.c
936
struct snddev_info *d;
sys/dev/sound/pcm/sound.c
939
d = oidp->oid_arg1;
sys/dev/sound/pcm/sound.c
940
if (!PCM_REGISTERED(d) || d->clones == NULL)
sys/dev/sound/pcm/sound.c
943
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/sound.c
945
deadline = snd_clone_getdeadline(d->clones);
sys/dev/sound/pcm/sound.c
952
(void)snd_clone_setdeadline(d->clones, deadline);
sys/dev/sound/pcm/sound.c
955
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/sound.c
963
struct snddev_info *d;
sys/dev/sound/pcm/sound.c
966
d = oidp->oid_arg1;
sys/dev/sound/pcm/sound.c
967
if (!PCM_REGISTERED(d) || d->clones == NULL)
sys/dev/sound/pcm/sound.c
974
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/sound.c
975
val = snd_clone_gc(d->clones);
sys/dev/sound/pcm/sound.c
976
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/sound.c
978
device_printf(d->dev, "clone gc: pruned=%d\n", val);
sys/dev/sound/pcm/sound.c
987
struct snddev_info *d;
sys/dev/sound/pcm/sound.c
996
d = devclass_get_softc(pcm_devclass, i);
sys/dev/sound/pcm/sound.c
997
if (!PCM_REGISTERED(d) || d->clones == NULL)
sys/dev/sound/pcm/sound.c
999
PCM_ACQUIRE_QUICK(d);
sys/dev/sound/pcm/sound.h
121
#define PCMMKMINOR(u, d, sub) (snd_u2unit(u) | snd_c2unit(sub) | snd_d2unit(d))
sys/dev/sound/pcm/sound.h
129
#define snd_d2unit(d) (((d) & 0x001F) << 27)
sys/dev/sound/pcm/sound.h
131
#define snd_mkunit(u, d, c) (snd_u2unit(u) | snd_d2unit(d) | snd_c2unit(c))
sys/dev/sound/pcm/sound.h
331
int pcm_setvchans(struct snddev_info *d, int direction, int newcnt, int num);
sys/dev/sound/pcm/sound.h
332
int pcm_chnalloc(struct snddev_info *d, struct pcm_channel **ch, int direction,
sys/dev/sound/pcm/sound.h
336
int pcm_inprog(struct snddev_info *d, int delta);
sys/dev/sound/pcm/sound.h
338
struct pcm_channel *pcm_chn_create(struct snddev_info *d, struct pcm_channel *parent, kobj_class_t cls, int dir, int num, void *devinfo);
sys/dev/sound/pcm/sound.h
340
int pcm_chn_add(struct snddev_info *d, struct pcm_channel *ch);
sys/dev/sound/pcm/sound.h
341
int pcm_chn_remove(struct snddev_info *d, struct pcm_channel *ch);
sys/dev/sound/pcm/sound.h
430
#define PCM_LOCKOWNED(d) (lockstatus((d)->lock, curthread) == LK_EXCLUSIVE)
sys/dev/sound/pcm/sound.h
431
#define PCM_LOCK(d) lockmgr((d)->lock, LK_EXCLUSIVE)
sys/dev/sound/pcm/sound.h
432
#define PCM_UNLOCK(d) lockmgr((d)->lock, LK_RELEASE)
sys/dev/sound/pcm/sound.h
433
#define PCM_TRYLOCK(d) lockmgr_try((d)->lock, LK_EXCLUSIVE)
sys/dev/sound/pcm/sound.h
434
#define PCM_LOCKASSERT(d) KKASSERT(lockstatus((d)->lock, curthread) == LK_EXCLUSIVE)
sys/dev/sound/pcm/sound.h
435
#define PCM_UNLOCKASSERT(d) KKASSERT(lockstatus((d)->lock, curthread) != LK_EXCLUSIVE)
sys/dev/sound/pcm/vchan.c
252
pcm_getparentchannel(struct snddev_info *d,
sys/dev/sound/pcm/vchan.c
257
KASSERT(d != NULL, ("%s(): NULL snddev_info", __func__));
sys/dev/sound/pcm/vchan.c
259
PCM_BUSYASSERT(d);
sys/dev/sound/pcm/vchan.c
260
PCM_UNLOCKASSERT(d);
sys/dev/sound/pcm/vchan.c
265
CHN_FOREACH(c, d, channels.pcm) {
sys/dev/sound/pcm/vchan.c
296
struct snddev_info *d;
sys/dev/sound/pcm/vchan.c
300
d = devclass_get_softc(pcm_devclass, VCHAN_SYSCTL_UNIT(oidp->oid_arg1));
sys/dev/sound/pcm/vchan.c
301
if (!PCM_REGISTERED(d) || !(d->flags & SD_F_AUTOVCHAN))
sys/dev/sound/pcm/vchan.c
304
PCM_LOCK(d);
sys/dev/sound/pcm/vchan.c
305
PCM_WAIT(d);
sys/dev/sound/pcm/vchan.c
310
vchancount = d->pvchancount;
sys/dev/sound/pcm/vchan.c
311
cnt = d->playcount;
sys/dev/sound/pcm/vchan.c
315
vchancount = d->rvchancount;
sys/dev/sound/pcm/vchan.c
316
cnt = d->reccount;
sys/dev/sound/pcm/vchan.c
319
PCM_UNLOCK(d);
sys/dev/sound/pcm/vchan.c
325
PCM_UNLOCK(d);
sys/dev/sound/pcm/vchan.c
329
PCM_ACQUIRE(d);
sys/dev/sound/pcm/vchan.c
330
PCM_UNLOCK(d);
sys/dev/sound/pcm/vchan.c
340
err = pcm_setvchans(d, direction, cnt, -1);
sys/dev/sound/pcm/vchan.c
343
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/vchan.c
351
struct snddev_info *d;
sys/dev/sound/pcm/vchan.c
357
d = devclass_get_softc(pcm_devclass, VCHAN_SYSCTL_UNIT(oidp->oid_arg1));
sys/dev/sound/pcm/vchan.c
358
if (!PCM_REGISTERED(d) || !(d->flags & SD_F_AUTOVCHAN))
sys/dev/sound/pcm/vchan.c
361
PCM_LOCK(d);
sys/dev/sound/pcm/vchan.c
362
PCM_WAIT(d);
sys/dev/sound/pcm/vchan.c
372
PCM_UNLOCK(d);
sys/dev/sound/pcm/vchan.c
377
PCM_ACQUIRE(d);
sys/dev/sound/pcm/vchan.c
378
PCM_UNLOCK(d);
sys/dev/sound/pcm/vchan.c
381
pcm_getparentchannel(d, &c, NULL);
sys/dev/sound/pcm/vchan.c
383
pcm_getparentchannel(d, NULL, &c);
sys/dev/sound/pcm/vchan.c
386
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/vchan.c
414
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/vchan.c
421
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/vchan.c
429
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/vchan.c
445
struct snddev_info *d;
sys/dev/sound/pcm/vchan.c
450
d = devclass_get_softc(pcm_devclass, VCHAN_SYSCTL_UNIT(oidp->oid_arg1));
sys/dev/sound/pcm/vchan.c
451
if (!PCM_REGISTERED(d) || !(d->flags & SD_F_AUTOVCHAN))
sys/dev/sound/pcm/vchan.c
454
PCM_LOCK(d);
sys/dev/sound/pcm/vchan.c
455
PCM_WAIT(d);
sys/dev/sound/pcm/vchan.c
460
vchancount = d->pvchancount;
sys/dev/sound/pcm/vchan.c
461
vchanrate = &d->pvchanrate;
sys/dev/sound/pcm/vchan.c
465
vchancount = d->rvchancount;
sys/dev/sound/pcm/vchan.c
466
vchanrate = &d->rvchanrate;
sys/dev/sound/pcm/vchan.c
469
PCM_UNLOCK(d);
sys/dev/sound/pcm/vchan.c
475
PCM_UNLOCK(d);
sys/dev/sound/pcm/vchan.c
479
PCM_ACQUIRE(d);
sys/dev/sound/pcm/vchan.c
480
PCM_UNLOCK(d);
sys/dev/sound/pcm/vchan.c
483
pcm_getparentchannel(d, &c, NULL);
sys/dev/sound/pcm/vchan.c
485
pcm_getparentchannel(d, NULL, &c);
sys/dev/sound/pcm/vchan.c
488
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/vchan.c
501
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/vchan.c
507
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/vchan.c
545
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/vchan.c
553
struct snddev_info *d;
sys/dev/sound/pcm/vchan.c
559
d = devclass_get_softc(pcm_devclass, VCHAN_SYSCTL_UNIT(oidp->oid_arg1));
sys/dev/sound/pcm/vchan.c
560
if (!PCM_REGISTERED(d) || !(d->flags & SD_F_AUTOVCHAN))
sys/dev/sound/pcm/vchan.c
563
PCM_LOCK(d);
sys/dev/sound/pcm/vchan.c
564
PCM_WAIT(d);
sys/dev/sound/pcm/vchan.c
569
vchancount = d->pvchancount;
sys/dev/sound/pcm/vchan.c
570
vchanformat = &d->pvchanformat;
sys/dev/sound/pcm/vchan.c
574
vchancount = d->rvchancount;
sys/dev/sound/pcm/vchan.c
575
vchanformat = &d->rvchanformat;
sys/dev/sound/pcm/vchan.c
578
PCM_UNLOCK(d);
sys/dev/sound/pcm/vchan.c
584
PCM_UNLOCK(d);
sys/dev/sound/pcm/vchan.c
588
PCM_ACQUIRE(d);
sys/dev/sound/pcm/vchan.c
589
PCM_UNLOCK(d);
sys/dev/sound/pcm/vchan.c
592
pcm_getparentchannel(d, &c, NULL);
sys/dev/sound/pcm/vchan.c
594
pcm_getparentchannel(d, NULL, &c);
sys/dev/sound/pcm/vchan.c
597
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/vchan.c
615
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/vchan.c
621
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/vchan.c
652
PCM_RELEASE_QUICK(d);
sys/dev/sound/pcm/vchan.c
667
struct snddev_info *d;
sys/dev/sound/pcm/vchan.c
673
d = parent->parentsnddev;
sys/dev/sound/pcm/vchan.c
675
PCM_BUSYASSERT(d);
sys/dev/sound/pcm/vchan.c
685
d = parent->parentsnddev;
sys/dev/sound/pcm/vchan.c
688
PCM_LOCK(d);
sys/dev/sound/pcm/vchan.c
692
vchanfmt = d->pvchanformat;
sys/dev/sound/pcm/vchan.c
693
vchanspd = d->pvchanrate;
sys/dev/sound/pcm/vchan.c
696
vchanfmt = d->rvchanformat;
sys/dev/sound/pcm/vchan.c
697
vchanspd = d->rvchanrate;
sys/dev/sound/pcm/vchan.c
701
ch = pcm_chn_create(d, parent, &vchan_class, direction, num, parent);
sys/dev/sound/pcm/vchan.c
703
PCM_UNLOCK(d);
sys/dev/sound/pcm/vchan.c
709
ret = pcm_chn_add(d, ch);
sys/dev/sound/pcm/vchan.c
710
PCM_UNLOCK(d);
sys/dev/sound/pcm/vchan.c
816
d->pvchanformat = parent->format;
sys/dev/sound/pcm/vchan.c
817
d->pvchanrate = parent->speed;
sys/dev/sound/pcm/vchan.c
819
d->rvchanformat = parent->format;
sys/dev/sound/pcm/vchan.c
820
d->rvchanrate = parent->speed;
sys/dev/sound/pcm/vchan.c
837
PCM_LOCK(d);
sys/dev/sound/pcm/vchan.c
838
if (pcm_chn_remove(d, ch) == 0) {
sys/dev/sound/pcm/vchan.c
839
PCM_UNLOCK(d);
sys/dev/sound/pcm/vchan.c
842
PCM_UNLOCK(d);
sys/dev/sound/pcm/vchan.c
853
struct snddev_info *d;
sys/dev/sound/pcm/vchan.c
862
d = c->parentsnddev;
sys/dev/sound/pcm/vchan.c
865
PCM_BUSYASSERT(d);
sys/dev/sound/pcm/vchan.c
887
PCM_LOCK(d);
sys/dev/sound/pcm/vchan.c
888
ret = pcm_chn_remove(d, c);
sys/dev/sound/pcm/vchan.c
889
PCM_UNLOCK(d);
sys/dev/sound/pcm/vchan.c
940
struct snddev_info *d;
sys/dev/sound/pcm/vchan.c
944
d = device_get_softc(dev);
sys/dev/sound/pcm/vchan.c
947
SYSCTL_ADD_PROC(&d->play_sysctl_ctx,
sys/dev/sound/pcm/vchan.c
948
SYSCTL_CHILDREN(d->play_sysctl_tree),
sys/dev/sound/pcm/vchan.c
952
SYSCTL_ADD_PROC(&d->play_sysctl_ctx,
sys/dev/sound/pcm/vchan.c
953
SYSCTL_CHILDREN(d->play_sysctl_tree),
sys/dev/sound/pcm/vchan.c
958
SYSCTL_ADD_PROC(&d->play_sysctl_ctx,
sys/dev/sound/pcm/vchan.c
959
SYSCTL_CHILDREN(d->play_sysctl_tree),
sys/dev/sound/pcm/vchan.c
963
SYSCTL_ADD_PROC(&d->play_sysctl_ctx,
sys/dev/sound/pcm/vchan.c
964
SYSCTL_CHILDREN(d->play_sysctl_tree),
sys/dev/sound/pcm/vchan.c
969
SYSCTL_ADD_PROC(&d->rec_sysctl_ctx,
sys/dev/sound/pcm/vchan.c
970
SYSCTL_CHILDREN(d->rec_sysctl_tree),
sys/dev/sound/pcm/vchan.c
974
SYSCTL_ADD_PROC(&d->rec_sysctl_ctx,
sys/dev/sound/pcm/vchan.c
975
SYSCTL_CHILDREN(d->rec_sysctl_tree),
sys/dev/sound/pcm/vchan.c
980
SYSCTL_ADD_PROC(&d->rec_sysctl_ctx,
sys/dev/sound/pcm/vchan.c
981
SYSCTL_CHILDREN(d->rec_sysctl_tree),
sys/dev/sound/pcm/vchan.c
985
SYSCTL_ADD_PROC(&d->rec_sysctl_ctx,
sys/dev/sound/pcm/vchan.c
986
SYSCTL_CHILDREN(d->rec_sysctl_tree),
sys/dev/video/bktr/bktr_tuner.c
1088
#define MT2032_SetRegister(r,d) _MT2032_SetRegister(bktr,r,d)
sys/dev/video/fb/fbreg.h
37
#define bcopy_io(s, d, c) bcopy((void *)(s), (void *)(d), (c))
sys/dev/video/fb/fbreg.h
38
#define bcopy_toio(s, d, c) bcopy((void *)(s), (void *)(d), (c))
sys/dev/video/fb/fbreg.h
39
#define bcopy_fromio(s, d, c) bcopy((void *)(s), (void *)(d), (c))
sys/dev/video/fb/fbreg.h
40
#define bzero_io(d, c) bzero((void *)(d), (c))
sys/dev/video/fb/fbreg.h
41
#define fill_io(p, d, c) fill((p), (void *)(d), (c))
sys/dev/video/fb/fbreg.h
42
#define fillw_io(p, d, c) fillw((p), (void *)(d), (c))
sys/dev/video/fb/vga.c
810
fill(int val, void *d, size_t size)
sys/dev/video/fb/vga.c
812
u_char *p = d;
sys/dev/video/fb/vga.c
820
filll_io(int val, vm_offset_t d, size_t size)
sys/dev/video/fb/vga.c
823
writel(d, val);
sys/dev/video/fb/vga.c
824
d += sizeof(u_int32_t);
sys/dev/virtual/nvmm/x86/nvmm_x86_internal.h
88
#define x86_get_cpuid(l, d) x86_cpuid(l, (uint32_t *)d)
sys/dev/virtual/nvmm/x86/nvmm_x86_internal.h
89
#define x86_get_cpuid2(l, c, d) x86_cpuid2(l, c, (uint32_t *)d)
sys/dev/virtual/nvmm/x86/nvmm_x86_internal.h
91
#define x86_get_cpuid(l, d) do_cpuid(l, (uint32_t *)d)
sys/dev/virtual/nvmm/x86/nvmm_x86_internal.h
92
#define x86_get_cpuid2(l, c, d) cpuid_count(l, c, (uint32_t *)d)
sys/dev/virtual/virtio/mmio/virtio_mmio.c
754
uint8_t *d;
sys/dev/virtual/virtio/mmio/virtio_mmio.c
760
for (d = dst; length > 0; d += size, off += size, length -= size) {
sys/dev/virtual/virtio/mmio/virtio_mmio.c
763
*(uint32_t *)d = vtmmio_read_config_4(sc, off);
sys/dev/virtual/virtio/mmio/virtio_mmio.c
766
*(uint16_t *)d = vtmmio_read_config_2(sc, off);
sys/dev/virtual/virtio/mmio/virtio_mmio.c
769
*d = vtmmio_read_config_1(sc, off);
sys/dev/virtual/virtio/pci/virtio_pci.c
931
uint8_t *d;
sys/dev/virtual/virtio/pci/virtio_pci.c
937
for (d = dst; length > 0; d += size, off += size, length -= size) {
sys/dev/virtual/virtio/pci/virtio_pci.c
940
*(uint32_t *)d = vtpci_read_config_4(sc, off);
sys/dev/virtual/virtio/pci/virtio_pci.c
943
*(uint16_t *)d = vtpci_read_config_2(sc, off);
sys/dev/virtual/virtio/pci/virtio_pci.c
946
*d = vtpci_read_config_1(sc, off);
sys/kern/kern_environment.c
529
struct tunable_int *d = (struct tunable_int *)data;
sys/kern/kern_environment.c
531
TUNABLE_INT_FETCH(d->path, d->var);
sys/kern/kern_environment.c
537
struct tunable_long *d = (struct tunable_long *)data;
sys/kern/kern_environment.c
539
TUNABLE_LONG_FETCH(d->path, d->var);
sys/kern/kern_environment.c
545
struct tunable_ulong *d = (struct tunable_ulong *)data;
sys/kern/kern_environment.c
547
TUNABLE_ULONG_FETCH(d->path, d->var);
sys/kern/kern_environment.c
553
struct tunable_quad *d = (struct tunable_quad *)data;
sys/kern/kern_environment.c
555
TUNABLE_QUAD_FETCH(d->path, d->var);
sys/kern/kern_environment.c
561
struct tunable_str *d = (struct tunable_str *)data;
sys/kern/kern_environment.c
563
TUNABLE_STR_FETCH(d->path, d->var, d->size);
sys/kern/md4c.c
185
UINT4 a = state[0], b = state[1], c = state[2], d = state[3], x[16];
sys/kern/md4c.c
190
FF (a, b, c, d, x[ 0], S11); /* 1 */
sys/kern/md4c.c
191
FF (d, a, b, c, x[ 1], S12); /* 2 */
sys/kern/md4c.c
192
FF (c, d, a, b, x[ 2], S13); /* 3 */
sys/kern/md4c.c
193
FF (b, c, d, a, x[ 3], S14); /* 4 */
sys/kern/md4c.c
194
FF (a, b, c, d, x[ 4], S11); /* 5 */
sys/kern/md4c.c
195
FF (d, a, b, c, x[ 5], S12); /* 6 */
sys/kern/md4c.c
196
FF (c, d, a, b, x[ 6], S13); /* 7 */
sys/kern/md4c.c
197
FF (b, c, d, a, x[ 7], S14); /* 8 */
sys/kern/md4c.c
198
FF (a, b, c, d, x[ 8], S11); /* 9 */
sys/kern/md4c.c
199
FF (d, a, b, c, x[ 9], S12); /* 10 */
sys/kern/md4c.c
200
FF (c, d, a, b, x[10], S13); /* 11 */
sys/kern/md4c.c
201
FF (b, c, d, a, x[11], S14); /* 12 */
sys/kern/md4c.c
202
FF (a, b, c, d, x[12], S11); /* 13 */
sys/kern/md4c.c
203
FF (d, a, b, c, x[13], S12); /* 14 */
sys/kern/md4c.c
204
FF (c, d, a, b, x[14], S13); /* 15 */
sys/kern/md4c.c
205
FF (b, c, d, a, x[15], S14); /* 16 */
sys/kern/md4c.c
208
GG (a, b, c, d, x[ 0], S21); /* 17 */
sys/kern/md4c.c
209
GG (d, a, b, c, x[ 4], S22); /* 18 */
sys/kern/md4c.c
210
GG (c, d, a, b, x[ 8], S23); /* 19 */
sys/kern/md4c.c
211
GG (b, c, d, a, x[12], S24); /* 20 */
sys/kern/md4c.c
212
GG (a, b, c, d, x[ 1], S21); /* 21 */
sys/kern/md4c.c
213
GG (d, a, b, c, x[ 5], S22); /* 22 */
sys/kern/md4c.c
214
GG (c, d, a, b, x[ 9], S23); /* 23 */
sys/kern/md4c.c
215
GG (b, c, d, a, x[13], S24); /* 24 */
sys/kern/md4c.c
216
GG (a, b, c, d, x[ 2], S21); /* 25 */
sys/kern/md4c.c
217
GG (d, a, b, c, x[ 6], S22); /* 26 */
sys/kern/md4c.c
218
GG (c, d, a, b, x[10], S23); /* 27 */
sys/kern/md4c.c
219
GG (b, c, d, a, x[14], S24); /* 28 */
sys/kern/md4c.c
220
GG (a, b, c, d, x[ 3], S21); /* 29 */
sys/kern/md4c.c
221
GG (d, a, b, c, x[ 7], S22); /* 30 */
sys/kern/md4c.c
222
GG (c, d, a, b, x[11], S23); /* 31 */
sys/kern/md4c.c
223
GG (b, c, d, a, x[15], S24); /* 32 */
sys/kern/md4c.c
226
HH (a, b, c, d, x[ 0], S31); /* 33 */
sys/kern/md4c.c
227
HH (d, a, b, c, x[ 8], S32); /* 34 */
sys/kern/md4c.c
228
HH (c, d, a, b, x[ 4], S33); /* 35 */
sys/kern/md4c.c
229
HH (b, c, d, a, x[12], S34); /* 36 */
sys/kern/md4c.c
230
HH (a, b, c, d, x[ 2], S31); /* 37 */
sys/kern/md4c.c
231
HH (d, a, b, c, x[10], S32); /* 38 */
sys/kern/md4c.c
232
HH (c, d, a, b, x[ 6], S33); /* 39 */
sys/kern/md4c.c
233
HH (b, c, d, a, x[14], S34); /* 40 */
sys/kern/md4c.c
234
HH (a, b, c, d, x[ 1], S31); /* 41 */
sys/kern/md4c.c
235
HH (d, a, b, c, x[ 9], S32); /* 42 */
sys/kern/md4c.c
236
HH (c, d, a, b, x[ 5], S33); /* 43 */
sys/kern/md4c.c
237
HH (b, c, d, a, x[13], S34); /* 44 */
sys/kern/md4c.c
238
HH (a, b, c, d, x[ 3], S31); /* 45 */
sys/kern/md4c.c
239
HH (d, a, b, c, x[11], S32); /* 46 */
sys/kern/md4c.c
240
HH (c, d, a, b, x[ 7], S33); /* 47 */
sys/kern/md4c.c
241
HH (b, c, d, a, x[15], S34); /* 48 */
sys/kern/md4c.c
246
state[3] += d;
sys/kern/md4c.c
72
#define FF(a, b, c, d, x, s) { \
sys/kern/md4c.c
73
(a) += F ((b), (c), (d)) + (x); \
sys/kern/md4c.c
76
#define GG(a, b, c, d, x, s) { \
sys/kern/md4c.c
77
(a) += G ((b), (c), (d)) + (x) + (UINT4)0x5a827999; \
sys/kern/md4c.c
80
#define HH(a, b, c, d, x, s) { \
sys/kern/md4c.c
81
(a) += H ((b), (c), (d)) + (x) + (UINT4)0x6ed9eba1; \
sys/kern/md5c.c
109
#define FF(a, b, c, d, x, s, ac) { \
sys/kern/md5c.c
110
(a) += F ((b), (c), (d)) + (x) + (u_int32_t)(ac); \
sys/kern/md5c.c
114
#define GG(a, b, c, d, x, s, ac) { \
sys/kern/md5c.c
115
(a) += G ((b), (c), (d)) + (x) + (u_int32_t)(ac); \
sys/kern/md5c.c
119
#define HH(a, b, c, d, x, s, ac) { \
sys/kern/md5c.c
120
(a) += H ((b), (c), (d)) + (x) + (u_int32_t)(ac); \
sys/kern/md5c.c
124
#define II(a, b, c, d, x, s, ac) { \
sys/kern/md5c.c
125
(a) += I ((b), (c), (d)) + (x) + (u_int32_t)(ac); \
sys/kern/md5c.c
234
u_int32_t a = state[0], b = state[1], c = state[2], d = state[3], x[16];
sys/kern/md5c.c
243
FF (a, b, c, d, x[ 0], S11, 0xd76aa478); /* 1 */
sys/kern/md5c.c
244
FF (d, a, b, c, x[ 1], S12, 0xe8c7b756); /* 2 */
sys/kern/md5c.c
245
FF (c, d, a, b, x[ 2], S13, 0x242070db); /* 3 */
sys/kern/md5c.c
246
FF (b, c, d, a, x[ 3], S14, 0xc1bdceee); /* 4 */
sys/kern/md5c.c
247
FF (a, b, c, d, x[ 4], S11, 0xf57c0faf); /* 5 */
sys/kern/md5c.c
248
FF (d, a, b, c, x[ 5], S12, 0x4787c62a); /* 6 */
sys/kern/md5c.c
249
FF (c, d, a, b, x[ 6], S13, 0xa8304613); /* 7 */
sys/kern/md5c.c
250
FF (b, c, d, a, x[ 7], S14, 0xfd469501); /* 8 */
sys/kern/md5c.c
251
FF (a, b, c, d, x[ 8], S11, 0x698098d8); /* 9 */
sys/kern/md5c.c
252
FF (d, a, b, c, x[ 9], S12, 0x8b44f7af); /* 10 */
sys/kern/md5c.c
253
FF (c, d, a, b, x[10], S13, 0xffff5bb1); /* 11 */
sys/kern/md5c.c
254
FF (b, c, d, a, x[11], S14, 0x895cd7be); /* 12 */
sys/kern/md5c.c
255
FF (a, b, c, d, x[12], S11, 0x6b901122); /* 13 */
sys/kern/md5c.c
256
FF (d, a, b, c, x[13], S12, 0xfd987193); /* 14 */
sys/kern/md5c.c
257
FF (c, d, a, b, x[14], S13, 0xa679438e); /* 15 */
sys/kern/md5c.c
258
FF (b, c, d, a, x[15], S14, 0x49b40821); /* 16 */
sys/kern/md5c.c
265
GG (a, b, c, d, x[ 1], S21, 0xf61e2562); /* 17 */
sys/kern/md5c.c
266
GG (d, a, b, c, x[ 6], S22, 0xc040b340); /* 18 */
sys/kern/md5c.c
267
GG (c, d, a, b, x[11], S23, 0x265e5a51); /* 19 */
sys/kern/md5c.c
268
GG (b, c, d, a, x[ 0], S24, 0xe9b6c7aa); /* 20 */
sys/kern/md5c.c
269
GG (a, b, c, d, x[ 5], S21, 0xd62f105d); /* 21 */
sys/kern/md5c.c
270
GG (d, a, b, c, x[10], S22, 0x2441453); /* 22 */
sys/kern/md5c.c
271
GG (c, d, a, b, x[15], S23, 0xd8a1e681); /* 23 */
sys/kern/md5c.c
272
GG (b, c, d, a, x[ 4], S24, 0xe7d3fbc8); /* 24 */
sys/kern/md5c.c
273
GG (a, b, c, d, x[ 9], S21, 0x21e1cde6); /* 25 */
sys/kern/md5c.c
274
GG (d, a, b, c, x[14], S22, 0xc33707d6); /* 26 */
sys/kern/md5c.c
275
GG (c, d, a, b, x[ 3], S23, 0xf4d50d87); /* 27 */
sys/kern/md5c.c
276
GG (b, c, d, a, x[ 8], S24, 0x455a14ed); /* 28 */
sys/kern/md5c.c
277
GG (a, b, c, d, x[13], S21, 0xa9e3e905); /* 29 */
sys/kern/md5c.c
278
GG (d, a, b, c, x[ 2], S22, 0xfcefa3f8); /* 30 */
sys/kern/md5c.c
279
GG (c, d, a, b, x[ 7], S23, 0x676f02d9); /* 31 */
sys/kern/md5c.c
280
GG (b, c, d, a, x[12], S24, 0x8d2a4c8a); /* 32 */
sys/kern/md5c.c
287
HH (a, b, c, d, x[ 5], S31, 0xfffa3942); /* 33 */
sys/kern/md5c.c
288
HH (d, a, b, c, x[ 8], S32, 0x8771f681); /* 34 */
sys/kern/md5c.c
289
HH (c, d, a, b, x[11], S33, 0x6d9d6122); /* 35 */
sys/kern/md5c.c
290
HH (b, c, d, a, x[14], S34, 0xfde5380c); /* 36 */
sys/kern/md5c.c
291
HH (a, b, c, d, x[ 1], S31, 0xa4beea44); /* 37 */
sys/kern/md5c.c
292
HH (d, a, b, c, x[ 4], S32, 0x4bdecfa9); /* 38 */
sys/kern/md5c.c
293
HH (c, d, a, b, x[ 7], S33, 0xf6bb4b60); /* 39 */
sys/kern/md5c.c
294
HH (b, c, d, a, x[10], S34, 0xbebfbc70); /* 40 */
sys/kern/md5c.c
295
HH (a, b, c, d, x[13], S31, 0x289b7ec6); /* 41 */
sys/kern/md5c.c
296
HH (d, a, b, c, x[ 0], S32, 0xeaa127fa); /* 42 */
sys/kern/md5c.c
297
HH (c, d, a, b, x[ 3], S33, 0xd4ef3085); /* 43 */
sys/kern/md5c.c
298
HH (b, c, d, a, x[ 6], S34, 0x4881d05); /* 44 */
sys/kern/md5c.c
299
HH (a, b, c, d, x[ 9], S31, 0xd9d4d039); /* 45 */
sys/kern/md5c.c
300
HH (d, a, b, c, x[12], S32, 0xe6db99e5); /* 46 */
sys/kern/md5c.c
301
HH (c, d, a, b, x[15], S33, 0x1fa27cf8); /* 47 */
sys/kern/md5c.c
302
HH (b, c, d, a, x[ 2], S34, 0xc4ac5665); /* 48 */
sys/kern/md5c.c
309
II (a, b, c, d, x[ 0], S41, 0xf4292244); /* 49 */
sys/kern/md5c.c
310
II (d, a, b, c, x[ 7], S42, 0x432aff97); /* 50 */
sys/kern/md5c.c
311
II (c, d, a, b, x[14], S43, 0xab9423a7); /* 51 */
sys/kern/md5c.c
312
II (b, c, d, a, x[ 5], S44, 0xfc93a039); /* 52 */
sys/kern/md5c.c
313
II (a, b, c, d, x[12], S41, 0x655b59c3); /* 53 */
sys/kern/md5c.c
314
II (d, a, b, c, x[ 3], S42, 0x8f0ccc92); /* 54 */
sys/kern/md5c.c
315
II (c, d, a, b, x[10], S43, 0xffeff47d); /* 55 */
sys/kern/md5c.c
316
II (b, c, d, a, x[ 1], S44, 0x85845dd1); /* 56 */
sys/kern/md5c.c
317
II (a, b, c, d, x[ 8], S41, 0x6fa87e4f); /* 57 */
sys/kern/md5c.c
318
II (d, a, b, c, x[15], S42, 0xfe2ce6e0); /* 58 */
sys/kern/md5c.c
319
II (c, d, a, b, x[ 6], S43, 0xa3014314); /* 59 */
sys/kern/md5c.c
320
II (b, c, d, a, x[13], S44, 0x4e0811a1); /* 60 */
sys/kern/md5c.c
321
II (a, b, c, d, x[ 4], S41, 0xf7537e82); /* 61 */
sys/kern/md5c.c
322
II (d, a, b, c, x[11], S42, 0xbd3af235); /* 62 */
sys/kern/md5c.c
323
II (c, d, a, b, x[ 2], S43, 0x2ad7d2bb); /* 63 */
sys/kern/md5c.c
324
II (b, c, d, a, x[ 9], S44, 0xeb86d391); /* 64 */
sys/kern/md5c.c
329
state[3] += d;
sys/kern/subr_bus.c
63
#define DEVICENAME(d) ((d)? device_get_name(d): "no device")
sys/kern/subr_bus.c
64
#define DRIVERNAME(d) ((d)? d->name : "no driver")
sys/kern/subr_bus.c
65
#define DEVCLANAME(d) ((d)? d->name : "no devclass")
sys/kern/subr_bus.c
87
#define DEVICENAME(d) /* nop */
sys/kern/subr_bus.c
88
#define DRIVERNAME(d) /* nop */
sys/kern/subr_bus.c
89
#define DEVCLANAME(d) /* nop */
sys/kern/subr_bus.c
91
#define print_device_short(d,i) /* nop */
sys/kern/subr_bus.c
92
#define print_device(d,i) /* nop */
sys/kern/subr_bus.c
93
#define print_device_tree_short(d,i) /* nop */
sys/kern/subr_bus.c
94
#define print_device_tree(d,i) /* nop */
sys/kern/subr_bus.c
95
#define print_driver_short(d,i) /* nop */
sys/kern/subr_bus.c
96
#define print_driver(d,i) /* nop */
sys/kern/subr_bus.c
97
#define print_driver_list(d,i) /* nop */
sys/kern/subr_bus.c
98
#define print_devclass_short(d,i) /* nop */
sys/kern/subr_bus.c
99
#define print_devclass(d,i) /* nop */
sys/kern/subr_fattime.c
269
uint16_t d, t;
sys/kern/subr_fattime.c
286
d = t = p = 0;
sys/kern/subr_fattime.c
287
timet2fattime(&ts, &d, &t, &p);
sys/kern/subr_fattime.c
288
printf("%04x %04x %02x -- ", d, t, p);
sys/kern/subr_fattime.c
290
((d >> 9) & 0x7f) + 1980,
sys/kern/subr_fattime.c
291
(d >> 5) & 0x0f,
sys/kern/subr_fattime.c
292
(d >> 0) & 0x1f,
sys/kern/subr_fattime.c
298
fattime2timet(d, t, p, &ts);
sys/kern/subr_prf.c
549
#define PCHAR(c) {int cc=(c); if(func) (*func)(cc,arg); else *d++=cc; retval++;}
sys/kern/subr_prf.c
555
char *d;
sys/kern/subr_prf.c
575
d = (char *) arg;
sys/kern/subr_prf.c
577
d = NULL;
sys/kern/uipc_usrreq.c
2376
struct unp_defdiscard *d;
sys/kern/uipc_usrreq.c
2384
d = kmalloc(sizeof(*d), M_UNPCB, M_WAITOK);
sys/kern/uipc_usrreq.c
2385
d->fp = fp;
sys/kern/uipc_usrreq.c
2388
SLIST_INSERT_HEAD(&unp_defdiscard_head, d, next);
sys/kern/uipc_usrreq.c
2558
struct unp_defdiscard *d;
sys/kern/uipc_usrreq.c
2561
while ((d = SLIST_FIRST(&unp_defdiscard_head)) != NULL) {
sys/kern/uipc_usrreq.c
2565
fdrop(d->fp);
sys/kern/uipc_usrreq.c
2566
kfree(d, M_UNPCB);
sys/libiconv/iconv.c
529
char *d = dst;
sys/libiconv/iconv.c
540
error = iconv_conv(handle, NULL, NULL, &d, &outlen);
sys/libiconv/iconv.c
543
error = iconv_conv(handle, &s, &inlen, &d, &outlen);
sys/libkern/arc4random.c
104
struct arc4_data *d = arc4_data_pcpu[mycpuid];
sys/libkern/arc4random.c
107
if (++(d->arc4_numruns) > ARC4_MAXRUNS ||
sys/libkern/arc4random.c
108
time_uptime > d->arc4_nextreseed)
sys/libkern/arc4random.c
109
arc4_randomstir(d);
sys/libkern/arc4random.c
111
ret = arc4_randbyte(d);
sys/libkern/arc4random.c
112
ret |= arc4_randbyte(d) << 8;
sys/libkern/arc4random.c
113
ret |= arc4_randbyte(d) << 16;
sys/libkern/arc4random.c
114
ret |= arc4_randbyte(d) << 24;
sys/libkern/arc4random.c
122
struct arc4_data *d = arc4_data_pcpu[mycpuid];
sys/libkern/arc4random.c
125
if (++(d->arc4_numruns) > ARC4_MAXRUNS ||
sys/libkern/arc4random.c
126
time_uptime > d->arc4_nextreseed)
sys/libkern/arc4random.c
127
arc4_randomstir(d);
sys/libkern/arc4random.c
129
ret = arc4_randbyte(d);
sys/libkern/arc4random.c
130
ret |= arc4_randbyte(d) << 8;
sys/libkern/arc4random.c
131
ret |= arc4_randbyte(d) << 16;
sys/libkern/arc4random.c
132
ret |= arc4_randbyte(d) << 24;
sys/libkern/arc4random.c
133
ret |= (uint64_t)arc4_randbyte(d) << 32;
sys/libkern/arc4random.c
134
ret |= (uint64_t)arc4_randbyte(d) << 40;
sys/libkern/arc4random.c
135
ret |= (uint64_t)arc4_randbyte(d) << 48;
sys/libkern/arc4random.c
136
ret |= (uint64_t)arc4_randbyte(d) << 56;
sys/libkern/arc4random.c
144
struct arc4_data *d = arc4_data_pcpu[mycpuid];
sys/libkern/arc4random.c
152
if (++(d->arc4_numruns) > ARC4_MAXRUNS ||
sys/libkern/arc4random.c
153
time_uptime > d->arc4_nextreseed)
sys/libkern/arc4random.c
154
arc4_randomstir(d);
sys/libkern/arc4random.c
157
*p++ = arc4_randbyte(d);
sys/libkern/arc4random.c
170
struct arc4_data *d;
sys/libkern/arc4random.c
176
d = (void *)kmem_alloc3(kernel_map, sizeof(*d), VM_SUBSYS_GD,
sys/libkern/arc4random.c
178
memset(d, 0, sizeof(*d));
sys/libkern/arc4random.c
181
d->arc4_sbox[n] = (uint8_t)n;
sys/libkern/arc4random.c
183
arc4_randomstir(d);
sys/libkern/arc4random.c
190
arc4_randbyte(d);
sys/libkern/arc4random.c
192
arc4_data_pcpu[cpuid] = d;
sys/libkern/arc4random.c
51
arc4_randomstir(struct arc4_data *d)
sys/libkern/arc4random.c
68
d->arc4_j = (d->arc4_j + d->arc4_sbox[n] + key[n]) % 256;
sys/libkern/arc4random.c
69
arc4_swap(&d->arc4_sbox[n], &d->arc4_sbox[d->arc4_j]);
sys/libkern/arc4random.c
77
arc4_randbyte(d);
sys/libkern/arc4random.c
80
d->arc4_nextreseed = time_uptime + ARC4_RESEED_SECONDS;
sys/libkern/arc4random.c
81
d->arc4_numruns = 0;
sys/libkern/arc4random.c
88
arc4_randbyte(struct arc4_data *d)
sys/libkern/arc4random.c
92
d->arc4_i = (d->arc4_i + 1) % 256;
sys/libkern/arc4random.c
93
d->arc4_j = (d->arc4_j + d->arc4_sbox[d->arc4_i]) % 256;
sys/libkern/arc4random.c
95
arc4_swap(&d->arc4_sbox[d->arc4_i], &d->arc4_sbox[d->arc4_j]);
sys/libkern/arc4random.c
97
arc4_t = (d->arc4_sbox[d->arc4_i] + d->arc4_sbox[d->arc4_j]) % 256;
sys/libkern/arc4random.c
98
return d->arc4_sbox[arc4_t];
sys/libkern/qsort.c
109
int d, r, swaptype, swap_cnt;
sys/libkern/qsort.c
125
d = (n / 8) * es;
sys/libkern/qsort.c
126
pl = med3(pl, pl + d, pl + 2 * d, cmp, thunk);
sys/libkern/qsort.c
127
pm = med3(pm - d, pm, pm + d, cmp, thunk);
sys/libkern/qsort.c
128
pn = med3(pn - 2 * d, pn - d, pn, cmp, thunk);
sys/libkern/strlcat.c
45
char *d = dst;
sys/libkern/strlcat.c
51
while (n-- != 0 && *d != '\0')
sys/libkern/strlcat.c
52
d++;
sys/libkern/strlcat.c
53
dlen = d - dst;
sys/libkern/strlcat.c
60
*d++ = *s;
sys/libkern/strlcat.c
65
*d = '\0';
sys/libkern/strlcpy.c
43
char *d = dst;
sys/libkern/strlcpy.c
50
if ((*d++ = *s++) == 0)
sys/libkern/strlcpy.c
58
*d = '\0'; /* NUL-terminate dst */
sys/libkern/strncat.c
47
char *d = dst;
sys/libkern/strncat.c
50
while (*d != 0)
sys/libkern/strncat.c
51
d++;
sys/libkern/strncat.c
53
if ((*d = *s++) == 0)
sys/libkern/strncat.c
55
d++;
sys/libkern/strncat.c
57
*d = 0;
sys/libkern/strncpy.c
46
char *d = dst;
sys/libkern/strncpy.c
50
if ((*d++ = *s++) == 0) {
sys/libkern/strncpy.c
53
*d++ = 0;
sys/libprop/prop_object_impl.h
326
#define _PROP_POOL_INIT(p, s, d) static const size_t p = s;
sys/libprop/prop_object_impl.h
367
#define _PROP_POOL_INIT(p, s, d) static const size_t p = s;
sys/libprop/prop_rb.c
57
#define rb_tree_check_node(a, b, c, d) true
sys/libprop/prop_rb_impl.h
127
#define RB_TAILQ_INSERT_AFTER(a, b, c, d) TAILQ_INSERT_AFTER(a, b, c, d)
sys/libprop/prop_rb_impl.h
133
#define RB_TAILQ_INSERT_AFTER(a, b, c, d) do { } while (/*CONSTCOND*/0)
sys/net/altq/altq_hfsc.c
1473
d2dx(u_int d)
sys/net/altq/altq_hfsc.c
1477
dx = ((uint64_t)d * machclk_freq) / 1000;
sys/net/altq/altq_hfsc.c
1493
uint64_t d;
sys/net/altq/altq_hfsc.c
1495
d = dx * 1000 / machclk_freq;
sys/net/altq/altq_hfsc.c
1496
return ((u_int)d);
sys/net/altq/altq_hfsc.c
1504
isc->dx = d2dx(sc->d);
sys/net/altq/altq_hfsc.c
1640
sp->rsc.d = dx2d(cl->cl_rsc->dx);
sys/net/altq/altq_hfsc.c
1644
sp->rsc.d = 0;
sys/net/altq/altq_hfsc.c
1649
sp->fsc.d = dx2d(cl->cl_fsc->dx);
sys/net/altq/altq_hfsc.c
1653
sp->fsc.d = 0;
sys/net/altq/altq_hfsc.c
1658
sp->usc.d = dx2d(cl->cl_usc->dx);
sys/net/altq/altq_hfsc.c
1662
sp->usc.d = 0;
sys/net/altq/altq_hfsc.c
1669
sp->d = cl->cl_d;
sys/net/altq/altq_hfsc.c
223
rtsc.d = opts->rtsc_d;
sys/net/altq/altq_hfsc.c
226
lssc.d = opts->lssc_d;
sys/net/altq/altq_hfsc.c
229
ulsc.d = opts->ulsc_d;
sys/net/altq/altq_hfsc.h
43
u_int d; /* the x-projection of the first segment in msec */
sys/net/altq/altq_hfsc.h
74
uint64_t d; /* deadline */
sys/net/altq/altq_red.c
394
int d; /* denominator of drop-probability */
sys/net/altq/altq_red.c
396
d = fp_probd - count * fp_len;
sys/net/altq/altq_red.c
397
if (d <= 0) {
sys/net/altq/altq_red.c
408
if ((karc4random() % d) < fp_len) {
sys/net/bpf.c
1003
*(int *)ap->a_data = fgetown(&d->bd_sigio);
sys/net/bpf.c
1008
error = fsetown(-(*(int *)ap->a_data), &d->bd_sigio);
sys/net/bpf.c
1013
*(int *)ap->a_data = -fgetown(&d->bd_sigio);
sys/net/bpf.c
1025
d->bd_sig = sig;
sys/net/bpf.c
1029
*(u_int *)ap->a_data = d->bd_sig;
sys/net/bpf.c
1032
d->bd_locked = 1;
sys/net/bpf.c
1045
bpf_setf(struct bpf_d *d, struct bpf_program *fp, u_long cmd)
sys/net/bpf.c
1051
old = d->bd_wfilter;
sys/net/bpf.c
1055
old = d->bd_rfilter;
sys/net/bpf.c
1061
d->bd_wfilter = NULL;
sys/net/bpf.c
1063
d->bd_rfilter = NULL;
sys/net/bpf.c
1064
bpf_resetd(d);
sys/net/bpf.c
1078
d->bd_wfilter = fcode;
sys/net/bpf.c
1080
d->bd_rfilter = fcode;
sys/net/bpf.c
1081
bpf_resetd(d);
sys/net/bpf.c
1097
bpf_setif(struct bpf_d *d, struct ifreq *ifr)
sys/net/bpf.c
1128
if (d->bd_sbuf == NULL) {
sys/net/bpf.c
1129
error = bpf_allocbufs(d);
sys/net/bpf.c
113
static void bpf_attachd(struct bpf_d *d, struct bpf_if *bp);
sys/net/bpf.c
1135
if (bp != d->bd_bif) {
sys/net/bpf.c
1136
if (d->bd_bif != NULL) {
sys/net/bpf.c
114
static void bpf_detachd(struct bpf_d *d);
sys/net/bpf.c
1140
bpf_detachd(d);
sys/net/bpf.c
1143
bpf_attachd(d, bp);
sys/net/bpf.c
1145
bpf_resetd(d);
sys/net/bpf.c
1166
struct bpf_d *d;
sys/net/bpf.c
1169
d = dev->si_drv1;
sys/net/bpf.c
1170
if (d->bd_bif == NULL) {
sys/net/bpf.c
1180
kn->kn_hook = (caddr_t)d;
sys/net/bpf.c
1188
klist = &d->bd_kq.ki_note;
sys/net/bpf.c
1199
struct bpf_d *d;
sys/net/bpf.c
1201
d = (struct bpf_d *)kn->kn_hook;
sys/net/bpf.c
1202
klist = &d->bd_kq.ki_note;
sys/net/bpf.c
1209
struct bpf_d *d;
sys/net/bpf.c
1212
d = (struct bpf_d *)kn->kn_hook;
sys/net/bpf.c
1213
if (d->bd_hlen != 0 ||
sys/net/bpf.c
1214
((d->bd_immediate || d->bd_state == BPF_TIMED_OUT) &&
sys/net/bpf.c
1215
d->bd_slen != 0)) {
sys/net/bpf.c
1219
if (d->bd_rtout > 0 && d->bd_state == BPF_IDLE) {
sys/net/bpf.c
1220
callout_reset(&d->bd_callout, d->bd_rtout,
sys/net/bpf.c
1221
bpf_timed_out, d);
sys/net/bpf.c
1222
d->bd_state = BPF_WAITING;
sys/net/bpf.c
1238
struct bpf_d *d;
sys/net/bpf.c
1255
SLIST_FOREACH(d, &bp->bif_dlist, bd_next) {
sys/net/bpf.c
1256
++d->bd_rcount;
sys/net/bpf.c
1257
slen = bpf_filter(d->bd_rfilter, pkt, pktlen, pktlen);
sys/net/bpf.c
1263
catchpacket(d, pkt, pktlen, slen, _bcopy, &tv);
sys/net/bpf.c
1301
struct bpf_d *d;
sys/net/bpf.c
1321
SLIST_FOREACH(d, &bp->bif_dlist, bd_next) {
sys/net/bpf.c
1322
if (!d->bd_seesent && (m->m_pkthdr.rcvif == NULL))
sys/net/bpf.c
1324
++d->bd_rcount;
sys/net/bpf.c
1325
slen = bpf_filter(d->bd_rfilter, (u_char *)m, pktlen, 0);
sys/net/bpf.c
1331
catchpacket(d, (u_char *)m, pktlen, slen, bpf_mcopy,
sys/net/bpf.c
1404
catchpacket(struct bpf_d *d, u_char *pkt, u_int pktlen, u_int snaplen,
sys/net/bpf.c
1410
int hdrlen = d->bd_bif->bif_hdrlen;
sys/net/bpf.c
1419
if (totlen > d->bd_bufsize)
sys/net/bpf.c
1420
totlen = d->bd_bufsize;
sys/net/bpf.c
1425
curlen = BPF_WORDALIGN(d->bd_slen);
sys/net/bpf.c
1426
if (curlen + totlen > d->bd_bufsize) {
sys/net/bpf.c
1432
if (d->bd_fbuf == NULL) {
sys/net/bpf.c
1437
++d->bd_dcount;
sys/net/bpf.c
1440
ROTATE_BUFFERS(d);
sys/net/bpf.c
1443
} else if (d->bd_immediate || d->bd_state == BPF_TIMED_OUT) {
sys/net/bpf.c
1455
hp = (struct bpf_hdr *)(d->bd_sbuf + curlen);
sys/net/bpf.c
1463
d->bd_slen = curlen + totlen;
sys/net/bpf.c
1466
bpf_wakeup(d);
sys/net/bpf.c
1473
bpf_allocbufs(struct bpf_d *d)
sys/net/bpf.c
1475
d->bd_fbuf = kmalloc(d->bd_bufsize, M_BPF, M_WAITOK);
sys/net/bpf.c
1476
d->bd_sbuf = kmalloc(d->bd_bufsize, M_BPF, M_WAITOK);
sys/net/bpf.c
1477
d->bd_slen = 0;
sys/net/bpf.c
1478
d->bd_hlen = 0;
sys/net/bpf.c
1487
bpf_freed(struct bpf_d *d)
sys/net/bpf.c
1494
if (d->bd_sbuf != NULL) {
sys/net/bpf.c
1495
kfree(d->bd_sbuf, M_BPF);
sys/net/bpf.c
1496
if (d->bd_hbuf != NULL)
sys/net/bpf.c
1497
kfree(d->bd_hbuf, M_BPF);
sys/net/bpf.c
1498
if (d->bd_fbuf != NULL)
sys/net/bpf.c
1499
kfree(d->bd_fbuf, M_BPF);
sys/net/bpf.c
1501
if (d->bd_rfilter)
sys/net/bpf.c
1502
kfree(d->bd_rfilter, M_BPF);
sys/net/bpf.c
1503
if (d->bd_wfilter)
sys/net/bpf.c
1504
kfree(d->bd_wfilter, M_BPF);
sys/net/bpf.c
1561
struct bpf_d *d;
sys/net/bpf.c
1580
while ((d = SLIST_FIRST(&bp->bif_dlist)) != NULL) {
sys/net/bpf.c
1581
bpf_detachd(d);
sys/net/bpf.c
1582
bpf_wakeup(d);
sys/net/bpf.c
1599
bpf_getdltlist(struct bpf_d *d, struct bpf_dltlist *bfl)
sys/net/bpf.c
1605
ifp = d->bd_bif->bif_ifp;
sys/net/bpf.c
1628
bpf_setdlt(struct bpf_d *d, u_int dlt)
sys/net/bpf.c
1634
if (d->bd_bif->bif_dlt == dlt)
sys/net/bpf.c
1636
ifp = d->bd_bif->bif_ifp;
sys/net/bpf.c
1642
opromisc = d->bd_promisc;
sys/net/bpf.c
1643
bpf_detachd(d);
sys/net/bpf.c
1644
bpf_attachd(d, bp);
sys/net/bpf.c
1645
bpf_resetd(d);
sys/net/bpf.c
1653
d->bd_promisc = 1;
sys/net/bpf.c
287
bpf_attachd(struct bpf_d *d, struct bpf_if *bp)
sys/net/bpf.c
295
d->bd_bif = bp;
sys/net/bpf.c
296
SLIST_INSERT_HEAD(&bp->bif_dlist, d, bd_next);
sys/net/bpf.c
307
bpf_detachd(struct bpf_d *d)
sys/net/bpf.c
314
bp = d->bd_bif;
sys/net/bpf.c
318
SLIST_REMOVE(&bp->bif_dlist, d, bpf_d, bd_next);
sys/net/bpf.c
326
d->bd_bif = NULL;
sys/net/bpf.c
334
if (d->bd_promisc) {
sys/net/bpf.c
335
d->bd_promisc = 0;
sys/net/bpf.c
360
struct bpf_d *d;
sys/net/bpf.c
368
d = dev->si_drv1;
sys/net/bpf.c
373
if (d != NULL) {
sys/net/bpf.c
378
d = kmalloc(sizeof *d, M_BPF, M_WAITOK | M_ZERO);
sys/net/bpf.c
379
dev->si_drv1 = d;
sys/net/bpf.c
380
d->bd_bufsize = bpf_bufsize;
sys/net/bpf.c
381
d->bd_sig = SIGIO;
sys/net/bpf.c
382
d->bd_seesent = 1;
sys/net/bpf.c
383
d->bd_feedback = 0;
sys/net/bpf.c
384
callout_init(&d->bd_callout);
sys/net/bpf.c
410
struct bpf_d *d = dev->si_drv1;
sys/net/bpf.c
414
funsetown(&d->bd_sigio);
sys/net/bpf.c
415
if (d->bd_state == BPF_WAITING)
sys/net/bpf.c
416
callout_stop(&d->bd_callout);
sys/net/bpf.c
417
d->bd_state = BPF_IDLE;
sys/net/bpf.c
418
if (d->bd_bif != NULL)
sys/net/bpf.c
419
bpf_detachd(d);
sys/net/bpf.c
420
bpf_freed(d);
sys/net/bpf.c
428
kfree(d, M_BPF);
sys/net/bpf.c
439
#define ROTATE_BUFFERS(d) \
sys/net/bpf.c
440
(d)->bd_hbuf = (d)->bd_sbuf; \
sys/net/bpf.c
441
(d)->bd_hlen = (d)->bd_slen; \
sys/net/bpf.c
442
(d)->bd_sbuf = (d)->bd_fbuf; \
sys/net/bpf.c
443
(d)->bd_slen = 0; \
sys/net/bpf.c
444
(d)->bd_fbuf = NULL;
sys/net/bpf.c
452
struct bpf_d *d = dev->si_drv1;
sys/net/bpf.c
461
if (ap->a_uio->uio_resid != d->bd_bufsize) {
sys/net/bpf.c
466
if (d->bd_state == BPF_WAITING)
sys/net/bpf.c
467
callout_stop(&d->bd_callout);
sys/net/bpf.c
468
timed_out = (d->bd_state == BPF_TIMED_OUT);
sys/net/bpf.c
469
d->bd_state = BPF_IDLE;
sys/net/bpf.c
475
while (d->bd_hbuf == NULL) {
sys/net/bpf.c
476
if ((d->bd_immediate || (ap->a_ioflag & IO_NDELAY) || timed_out)
sys/net/bpf.c
477
&& d->bd_slen != 0) {
sys/net/bpf.c
486
ROTATE_BUFFERS(d);
sys/net/bpf.c
496
if (d->bd_bif == NULL) {
sys/net/bpf.c
505
error = tsleep(d, PCATCH, "bpf", d->bd_rtout);
sys/net/bpf.c
516
if (d->bd_hbuf)
sys/net/bpf.c
524
if (d->bd_slen == 0) {
sys/net/bpf.c
528
ROTATE_BUFFERS(d);
sys/net/bpf.c
541
error = uiomove(d->bd_hbuf, d->bd_hlen, ap->a_uio);
sys/net/bpf.c
543
d->bd_fbuf = d->bd_hbuf;
sys/net/bpf.c
544
d->bd_hbuf = NULL;
sys/net/bpf.c
545
d->bd_hlen = 0;
sys/net/bpf.c
556
bpf_wakeup(struct bpf_d *d)
sys/net/bpf.c
558
if (d->bd_state == BPF_WAITING) {
sys/net/bpf.c
559
callout_stop(&d->bd_callout);
sys/net/bpf.c
560
d->bd_state = BPF_IDLE;
sys/net/bpf.c
562
wakeup(d);
sys/net/bpf.c
563
if (d->bd_async && d->bd_sig && d->bd_sigio)
sys/net/bpf.c
564
pgsigio(d->bd_sigio, d->bd_sig, 0);
sys/net/bpf.c
566
KNOTE(&d->bd_kq.ki_note, 0);
sys/net/bpf.c
572
struct bpf_d *d = (struct bpf_d *)arg;
sys/net/bpf.c
574
if (d->bd_state == BPF_WAITING) {
sys/net/bpf.c
575
d->bd_state = BPF_TIMED_OUT;
sys/net/bpf.c
576
if (d->bd_slen != 0)
sys/net/bpf.c
577
bpf_wakeup(d);
sys/net/bpf.c
615
struct bpf_d *d = dev->si_drv1;
sys/net/bpf.c
624
if (d->bd_bif == NULL) {
sys/net/bpf.c
629
ifp = d->bd_bif->bif_ifp;
sys/net/bpf.c
636
error = bpf_movein(ap->a_uio, (int)d->bd_bif->bif_dlt, &m,
sys/net/bpf.c
637
&dst, &datlen, d->bd_wfilter);
sys/net/bpf.c
649
if (d->bd_hdrcmplt)
sys/net/bpf.c
658
if (d->bd_feedback)
sys/net/bpf.c
675
bpf_resetd(struct bpf_d *d)
sys/net/bpf.c
677
if (d->bd_hbuf) {
sys/net/bpf.c
679
d->bd_fbuf = d->bd_hbuf;
sys/net/bpf.c
680
d->bd_hbuf = NULL;
sys/net/bpf.c
682
d->bd_slen = 0;
sys/net/bpf.c
683
d->bd_hlen = 0;
sys/net/bpf.c
684
d->bd_rcount = 0;
sys/net/bpf.c
685
d->bd_dcount = 0;
sys/net/bpf.c
717
struct bpf_d *d = dev->si_drv1;
sys/net/bpf.c
721
if (d->bd_state == BPF_WAITING)
sys/net/bpf.c
722
callout_stop(&d->bd_callout);
sys/net/bpf.c
723
d->bd_state = BPF_IDLE;
sys/net/bpf.c
725
if (d->bd_locked == 1) {
sys/net/bpf.c
760
n = d->bd_slen;
sys/net/bpf.c
761
if (d->bd_hbuf)
sys/net/bpf.c
762
n += d->bd_hlen;
sys/net/bpf.c
772
if (d->bd_bif == NULL) {
sys/net/bpf.c
775
ifp = d->bd_bif->bif_ifp;
sys/net/bpf.c
788
*(u_int *)ap->a_data = d->bd_bufsize;
sys/net/bpf.c
795
if (d->bd_bif != NULL) {
sys/net/bpf.c
804
d->bd_bufsize = size;
sys/net/bpf.c
813
error = bpf_setf(d, (struct bpf_program *)ap->a_data,
sys/net/bpf.c
821
bpf_resetd(d);
sys/net/bpf.c
828
if (d->bd_bif == NULL) {
sys/net/bpf.c
835
if (d->bd_promisc == 0) {
sys/net/bpf.c
836
error = ifpromisc(d->bd_bif->bif_ifp, 1);
sys/net/bpf.c
838
d->bd_promisc = 1;
sys/net/bpf.c
846
if (d->bd_bif == NULL)
sys/net/bpf.c
849
*(u_int *)ap->a_data = d->bd_bif->bif_dlt;
sys/net/bpf.c
856
if (d->bd_bif == NULL) {
sys/net/bpf.c
859
error = bpf_getdltlist(d,
sys/net/bpf.c
868
if (d->bd_bif == NULL)
sys/net/bpf.c
871
error = bpf_setdlt(d, *(u_int *)ap->a_data);
sys/net/bpf.c
878
if (d->bd_bif == NULL) {
sys/net/bpf.c
881
struct ifnet *const ifp = d->bd_bif->bif_ifp;
sys/net/bpf.c
893
error = bpf_setif(d, (struct ifreq *)ap->a_data);
sys/net/bpf.c
908
d->bd_rtout = tvtohz_low(tv);
sys/net/bpf.c
919
tv->tv_sec = d->bd_rtout / hz;
sys/net/bpf.c
920
tv->tv_usec = (d->bd_rtout % hz) * ustick;
sys/net/bpf.c
931
bs->bs_recv = d->bd_rcount;
sys/net/bpf.c
932
bs->bs_drop = d->bd_dcount;
sys/net/bpf.c
940
d->bd_immediate = *(u_int *)ap->a_data;
sys/net/bpf.c
956
*(u_int *)ap->a_data = d->bd_hdrcmplt;
sys/net/bpf.c
963
d->bd_hdrcmplt = *(u_int *)ap->a_data ? 1 : 0;
sys/net/bpf.c
970
*(u_int *)ap->a_data = d->bd_seesent;
sys/net/bpf.c
977
d->bd_seesent = *(u_int *)ap->a_data;
sys/net/bpf.c
981
d->bd_async = *(int *)ap->a_data;
sys/net/bpf.c
988
d->bd_feedback = *(int *)ap->a_data;
sys/net/bpf.c
995
*(u_int *)ap->a_data = d->bd_feedback;
sys/net/bpf.c
999
error = fsetown(*(int *)ap->a_data, &d->bd_sigio);
sys/net/bridge/bridgestp.c
1125
int i, d;
sys/net/bridge/bridgestp.c
1127
for (i = 0, d = 0; i < ETHER_ADDR_LEN && d == 0; i++) {
sys/net/bridge/bridgestp.c
1128
d = ((int)a[i]) - ((int)b[i]);
sys/net/bridge/bridgestp.c
1131
return (d);
sys/net/bridge/if_bridge.c
3837
int i, d;
sys/net/bridge/if_bridge.c
3839
for (i = 0, d = 0; i < ETHER_ADDR_LEN && d == 0; i++) {
sys/net/bridge/if_bridge.c
3840
d = ((int)a[i]) - ((int)b[i]);
sys/net/bridge/if_bridge.c
3843
return (d);
sys/net/ipfw/ip_fw2.c
1193
return (cmd->d[idx] & (1 << (type % 32)));
sys/net/ipfw/ip_fw2.c
1205
return (cmd->d[idx] & (1 << (code % 32)));
sys/net/ipfw/ip_fw2.c
3669
(uid_t)((ipfw_insn_u32 *)cmd)->d[0]);
sys/net/ipfw/ip_fw2.c
3786
uint32_t *d = (uint32_t *)(cmd + 1);
sys/net/ipfw/ip_fw2.c
3792
if (addr < d[0])
sys/net/ipfw/ip_fw2.c
3794
addr -= d[0]; /* subtract base */
sys/net/ipfw/ip_fw2.c
3797
(d[1 + (addr >> 5)] &
sys/net/ipfw/ip_fw2.c
3917
((ipfw_insn_u32 *)cmd)->d[0] ==
sys/net/ipfw/ip_fw2.c
3924
((ipfw_insn_u32 *)cmd)->d[0] ==
sys/net/ipfw/ip_fw2.c
3954
((ipfw_insn_u32 *)cmd)->d[0]);
sys/net/ipfw/ip_fw2.h
198
uint32_t d[1]; /* one or more */
sys/net/ipfw3/ip_fw3.h
159
uint32_t d[1]; /* one or more */
sys/net/ipfw3_layer4/ip_fw3_layer4.c
157
(uid_t)((ipfw_insn_u32 *)cmd)->d[0]);
sys/net/ipfw3_layer4/ip_fw3_layer4.c
166
(gid_t)((ipfw_insn_u32 *)cmd)->d[0]);
sys/net/netmap/netmap_mem2.c
743
struct netmap_mem_d *d = NULL;
sys/net/netmap/netmap_mem2.c
748
d = kmalloc(sizeof(struct netmap_mem_d),
sys/net/netmap/netmap_mem2.c
750
if (d == NULL)
sys/net/netmap/netmap_mem2.c
753
*d = nm_blueprint;
sys/net/netmap/netmap_mem2.c
777
ksnprintf(d->pools[i].name, NETMAP_POOL_MAX_NAMSZ,
sys/net/netmap/netmap_mem2.c
780
if (netmap_config_obj_allocator(&d->pools[i],
sys/net/netmap/netmap_mem2.c
785
d->flags &= ~NETMAP_MEM_FINALIZED;
sys/net/netmap/netmap_mem2.c
787
NMA_LOCK_INIT(d);
sys/net/netmap/netmap_mem2.c
789
return d;
sys/net/netmap/netmap_mem2.c
791
netmap_mem_private_delete(d);
sys/net/netmap/netmap_user.h
139
#define IS_NETMAP_DESC(d) (P2NMD(d)->self == P2NMD(d))
sys/net/netmap/netmap_user.h
140
#define NETMAP_FD(d) (P2NMD(d)->fd)
sys/net/netmap/netmap_user.h
145
typedef void (*nm_cb_t)(u_char *, const struct nm_hdr_t *, const u_char *d);
sys/net/netmap/netmap_user.h
175
struct nm_desc_t *d;
sys/net/netmap/netmap_user.h
184
d = (struct nm_desc_t *)calloc(1, sizeof(*d));
sys/net/netmap/netmap_user.h
185
if (d == NULL) {
sys/net/netmap/netmap_user.h
189
d->self = d; /* set this early so nm_close() works */
sys/net/netmap/netmap_user.h
190
d->fd = open("/dev/netmap", O_RDWR);
sys/net/netmap/netmap_user.h
191
if (d->fd < 0)
sys/net/netmap/netmap_user.h
195
d->req.nr_ringid = NETMAP_SW_RING;
sys/net/netmap/netmap_user.h
203
d->req.nr_ringid = r; /* set the ring */
sys/net/netmap/netmap_user.h
205
d->req.nr_ringid |= (flags & ~NETMAP_RING_MASK);
sys/net/netmap/netmap_user.h
206
d->req.nr_version = NETMAP_API;
sys/net/netmap/netmap_user.h
207
strncpy(d->req.nr_name, ifname, sizeof(d->req.nr_name));
sys/net/netmap/netmap_user.h
208
if (ioctl(d->fd, NIOCREGIF, &d->req))
sys/net/netmap/netmap_user.h
211
d->memsize = d->req.nr_memsize;
sys/net/netmap/netmap_user.h
212
d->mem = mmap(0, d->memsize, PROT_WRITE | PROT_READ, MAP_SHARED,
sys/net/netmap/netmap_user.h
213
d->fd, 0);
sys/net/netmap/netmap_user.h
214
if (d->mem == NULL)
sys/net/netmap/netmap_user.h
216
d->nifp = NETMAP_IF(d->mem, d->req.nr_offset);
sys/net/netmap/netmap_user.h
217
if (d->req.nr_ringid & NETMAP_SW_RING) {
sys/net/netmap/netmap_user.h
218
d->first_ring = d->last_ring = d->req.nr_rx_rings;
sys/net/netmap/netmap_user.h
219
} else if (d->req.nr_ringid & NETMAP_HW_RING) {
sys/net/netmap/netmap_user.h
220
d->first_ring = d->last_ring =
sys/net/netmap/netmap_user.h
221
d->req.nr_ringid & NETMAP_RING_MASK;
sys/net/netmap/netmap_user.h
223
d->first_ring = 0;
sys/net/netmap/netmap_user.h
224
d->last_ring = d->req.nr_rx_rings - 1;
sys/net/netmap/netmap_user.h
226
d->cur_ring = d->first_ring;
sys/net/netmap/netmap_user.h
227
for (n = d->first_ring; n <= d->last_ring; n++) {
sys/net/netmap/netmap_user.h
228
struct netmap_ring *ring = NETMAP_RXRING(d->nifp, n);
sys/net/netmap/netmap_user.h
231
return d;
sys/net/netmap/netmap_user.h
234
nm_close(d);
sys/net/netmap/netmap_user.h
241
nm_close(struct nm_desc_t *d)
sys/net/netmap/netmap_user.h
243
if (d == NULL || d->self != d)
sys/net/netmap/netmap_user.h
245
if (d->mem)
sys/net/netmap/netmap_user.h
246
munmap(d->mem, d->memsize);
sys/net/netmap/netmap_user.h
247
if (d->fd)
sys/net/netmap/netmap_user.h
248
close(d->fd);
sys/net/netmap/netmap_user.h
249
bzero(d, sizeof(*d));
sys/net/netmap/netmap_user.h
250
free(d);
sys/net/netmap/netmap_user.h
260
nm_dispatch(struct nm_desc_t *d, int cnt, nm_cb_t cb, u_char *arg)
sys/net/netmap/netmap_user.h
262
int n = d->last_ring - d->first_ring + 1;
sys/net/netmap/netmap_user.h
263
int c, got = 0, ri = d->cur_ring;
sys/net/netmap/netmap_user.h
275
ri = d->cur_ring + c;
sys/net/netmap/netmap_user.h
276
if (ri > d->last_ring)
sys/net/netmap/netmap_user.h
277
ri = d->first_ring;
sys/net/netmap/netmap_user.h
278
ring = NETMAP_RXRING(d->nifp, ri);
sys/net/netmap/netmap_user.h
285
d->hdr.len = d->hdr.caplen = ring->slot[i].len;
sys/net/netmap/netmap_user.h
286
d->hdr.ts = ring->ts;
sys/net/netmap/netmap_user.h
287
cb(arg, &d->hdr, buf);
sys/net/netmap/netmap_user.h
292
d->cur_ring = ri;
sys/net/netmap/netmap_user.h
298
nm_next(struct nm_desc_t *d, struct nm_hdr_t *hdr)
sys/net/netmap/netmap_user.h
300
int ri = d->cur_ring;
sys/net/netmap/netmap_user.h
304
struct netmap_ring *ring = NETMAP_RXRING(d->nifp, ri);
sys/net/netmap/netmap_user.h
315
d->cur_ring = ri;
sys/net/netmap/netmap_user.h
319
if (ri > d->last_ring)
sys/net/netmap/netmap_user.h
320
ri = d->first_ring;
sys/net/netmap/netmap_user.h
321
} while (ri != d->cur_ring);
sys/net/netmap/netmap_vale.c
1164
struct nm_bdg_q *d;
sys/net/netmap/netmap_vale.c
1183
d = dst_ents + d_i;
sys/net/netmap/netmap_vale.c
1186
if (d->bq_head == NM_FT_NULL) { /* new destination */
sys/net/netmap/netmap_vale.c
1187
d->bq_head = d->bq_tail = i;
sys/net/netmap/netmap_vale.c
1192
ft[d->bq_tail].ft_next = i;
sys/net/netmap/netmap_vale.c
1193
d->bq_tail = i;
sys/net/netmap/netmap_vale.c
1195
d->bq_len += ft[i].ft_frags;
sys/net/netmap/netmap_vale.c
1228
struct nm_bdg_q *d;
sys/net/netmap/netmap_vale.c
1234
d = dst_ents + d_i;
sys/net/netmap/netmap_vale.c
1257
next = d->bq_head;
sys/net/netmap/netmap_vale.c
1265
needed = d->bq_len + brddst->bq_len;
sys/net/netmap/netmap_vale.c
1422
d->bq_head = d->bq_tail = NM_FT_NULL; /* cleanup */
sys/net/netmap/netmap_vale.c
1423
d->bq_len = 0;
sys/net/pf/if_pflog.h
72
#define PFLOG_PACKET(i,x,a,b,c,d,e,f,g,h) pflog_packet(i,a,b,c,d,e,f,g,h)
sys/net/pf/if_pflog.h
74
#define PFLOG_PACKET(i,x,a,b,c,d,e,f,g,h) ((void)0)
sys/net/pf/if_pfsync.c
1423
dp = sc->sc_statep_net.d++;
sys/net/pf/if_pfsync.c
240
struct pf_state_peer *d)
sys/net/pf/if_pfsync.c
242
if (s->scrub.scrub_flag && d->scrub == NULL) {
sys/net/pf/if_pfsync.c
243
d->scrub = kmalloc(sizeof(struct pf_state_scrub), M_PFSYNC, M_NOWAIT|M_ZERO);
sys/net/pf/if_pfsync.c
245
if (d->scrub == NULL)
sys/net/pf/if_pfsync.h
119
struct pfsync_state_del *d;
sys/net/pf/pf.c
292
#define STATE_LOOKUP(i, k, d, s, m) \
sys/net/pf/pf.c
294
s = pf_find_state(i, k, d, m); \
sys/net/pf/pf.c
297
if (d == PF_OUT && \
sys/net/pf/pf_table.c
1949
int d;
sys/net/pf/pf_table.c
1951
if ((d = strncmp(p->pfrkt_name, q->pfrkt_name, PF_TABLE_NAME_SIZE)))
sys/net/pf/pf_table.c
1952
return (d);
sys/net/pf/pfvar.h
313
#define PF_POOLMASK(a, b, c, d, f) \
sys/net/pf/pfvar.h
314
pf_poolmask(a, b, c, d, f)
sys/net/pf/pfvar.h
349
#define PF_POOLMASK(a, b, c, d, f) \
sys/net/pf/pfvar.h
350
pf_poolmask(a, b, c, d, f)
sys/net/pf/pfvar.h
377
#define PF_POOLMASK(a, b, c, d, f) \
sys/net/pf/pfvar.h
380
(((c)->addr32[0] ^ 0xffffffff ) & (d)->addr32[0]); \
sys/net/pf/pfvar.h
937
#define pf_state_peer_hton(s,d) do { \
sys/net/pf/pfvar.h
938
(d)->seqlo = htonl((s)->seqlo); \
sys/net/pf/pfvar.h
939
(d)->seqhi = htonl((s)->seqhi); \
sys/net/pf/pfvar.h
940
(d)->seqdiff = htonl((s)->seqdiff); \
sys/net/pf/pfvar.h
941
(d)->max_win = htons((s)->max_win); \
sys/net/pf/pfvar.h
942
(d)->mss = htons((s)->mss); \
sys/net/pf/pfvar.h
943
(d)->state = (s)->state; \
sys/net/pf/pfvar.h
944
(d)->wscale = (s)->wscale; \
sys/net/pf/pfvar.h
946
(d)->scrub.pfss_flags = \
sys/net/pf/pfvar.h
948
(d)->scrub.pfss_ttl = (s)->scrub->pfss_ttl; \
sys/net/pf/pfvar.h
949
(d)->scrub.pfss_ts_mod = htonl((s)->scrub->pfss_ts_mod);\
sys/net/pf/pfvar.h
950
(d)->scrub.scrub_flag = PFSYNC_SCRUB_FLAG_VALID; \
sys/net/pf/pfvar.h
954
#define pf_state_peer_ntoh(s,d) do { \
sys/net/pf/pfvar.h
955
(d)->seqlo = ntohl((s)->seqlo); \
sys/net/pf/pfvar.h
956
(d)->seqhi = ntohl((s)->seqhi); \
sys/net/pf/pfvar.h
957
(d)->seqdiff = ntohl((s)->seqdiff); \
sys/net/pf/pfvar.h
958
(d)->max_win = ntohs((s)->max_win); \
sys/net/pf/pfvar.h
959
(d)->mss = ntohs((s)->mss); \
sys/net/pf/pfvar.h
960
(d)->state = (s)->state; \
sys/net/pf/pfvar.h
961
(d)->wscale = (s)->wscale; \
sys/net/pf/pfvar.h
963
(d)->scrub != NULL) { \
sys/net/pf/pfvar.h
964
(d)->scrub->pfss_flags = \
sys/net/pf/pfvar.h
966
(d)->scrub->pfss_ttl = (s)->scrub.pfss_ttl; \
sys/net/pf/pfvar.h
967
(d)->scrub->pfss_ts_mod = ntohl((s)->scrub.pfss_ts_mod);\
sys/net/pf/pfvar.h
971
#define pf_state_counter_hton(s,d) do { \
sys/net/pf/pfvar.h
972
d[0] = htonl((s>>32)&0xffffffff); \
sys/net/pf/pfvar.h
973
d[1] = htonl(s&0xffffffff); \
sys/net/pf/pfvar.h
979
#define pf_state_counter_ntoh(s,d) do { \
sys/net/pf/pfvar.h
980
d = ntohl(s[0]); \
sys/net/pf/pfvar.h
981
d = d<<32; \
sys/net/pf/pfvar.h
982
d += ntohl(s[1]); \
sys/net/ppp_layer/ppp_defs.h
138
struct compstat d; /* packet decompression statistics */
sys/net/wg/selftest/allowedips.c
482
ip_make_v4(uint8_t a, uint8_t b, uint8_t c, uint8_t d)
sys/net/wg/selftest/allowedips.c
490
split[3] = d;
sys/net/wg/selftest/allowedips.c
496
ip_make_v6(uint32_t a, uint32_t b, uint32_t c, uint32_t d)
sys/net/wg/selftest/allowedips.c
504
split[3] = htobe32(d);
sys/net/wg/selftest/allowedips.c
510
ip_equal_v4(const void *ip, uint8_t a, uint8_t b, uint8_t c, uint8_t d)
sys/net/wg/selftest/allowedips.c
512
return (memcmp(ip, ip_make_v4(a, b, c, d), 4) == 0);
sys/net/wg/selftest/allowedips.c
516
ip_equal_v6(const void *ip, uint32_t a, uint32_t b, uint32_t c, uint32_t d)
sys/net/wg/selftest/allowedips.c
518
return (memcmp(ip, ip_make_v6(a, b, c, d), 16) == 0);
sys/net/wg/selftest/allowedips.c
552
T_NEW_PEER(d); \
sys/net/wg/selftest/allowedips.c
566
if (d != NULL) \
sys/net/wg/selftest/allowedips.c
567
wg_aip_remove_all(&sc, d); \
sys/net/wg/selftest/allowedips.c
586
if (d != NULL) \
sys/net/wg/selftest/allowedips.c
587
kfree(d, M_WG); \
sys/net/wg/selftest/allowedips.c
602
struct wg_peer *a = NULL, *b = NULL, *c = NULL, *d = NULL;
sys/net/wg/selftest/allowedips.c
619
T_INSERT( 4, d, AF_INET, 192, 95, 5, 64, 27);
sys/net/wg/selftest/allowedips.c
622
T_INSERT( 6, d, AF_INET6,
sys/net/wg/selftest/allowedips.c
648
T_INSERT(23, d, AF_INET, 10, 1, 0, 16, 29);
sys/net/wg/selftest/allowedips.c
658
T_LOOKUP( 7, ==, d, AF_INET6,
sys/net/wg/selftest/allowedips.c
690
T_LOOKUP(28, ==, d, AF_INET, 10, 1, 0, 20);
sys/net/zlib.c
3055
const Bytef *d, /* dictionary */
sys/net/zlib.c
4025
inflate_set_dictionary(inflate_blocks_statef *s, const Bytef *d, uInt n)
sys/net/zlib.c
4027
zmemcpy((charf *)s->window, d, n);
sys/net/zlib.c
4217
huft_build(uIntf *b, uInt n, uInt s, const uIntf *d, const uIntf *e,
sys/net/zlib.c
4381
r.base = d[*p++ - s];
sys/net/zlib.c
5017
uInt d; /* distance back to copy from */
sys/net/zlib.c
5061
d = t->base + ((uInt)b & inflate_mask[e]);
sys/net/zlib.c
5063
Tracevv((stderr, "inflate: * distance %u\n", d));
sys/net/zlib.c
5067
if ((uInt)(q - s->window) >= d) /* offset before dest */
sys/net/zlib.c
5069
r = q - d;
sys/net/zlib.c
5075
e = d - (uInt)(q - s->window); /* bytes from offset to end */
sys/netbt/bluetooth.h
80
bdaddr_copy(bdaddr_t *d, const bdaddr_t *s)
sys/netbt/bluetooth.h
83
d->b[0] = s->b[0];
sys/netbt/bluetooth.h
84
d->b[1] = s->b[1];
sys/netbt/bluetooth.h
85
d->b[2] = s->b[2];
sys/netbt/bluetooth.h
86
d->b[3] = s->b[3];
sys/netbt/bluetooth.h
87
d->b[4] = s->b[4];
sys/netbt/bluetooth.h
88
d->b[5] = s->b[5];
sys/netbt/rfcomm_session.c
152
#define FCS(f, d) crctable[(f) ^ (d)]
sys/netgraph/mppc/ng_mppc.c
250
struct ng_mppc_dir *const d = isComp ?
sys/netgraph/mppc/ng_mppc.c
284
d->cfg = *cfg;
sys/netgraph/mppc/ng_mppc.c
288
if (d->history != NULL) {
sys/netgraph/mppc/ng_mppc.c
289
kfree(d->history, M_NETGRAPH);
sys/netgraph/mppc/ng_mppc.c
290
d->history = NULL;
sys/netgraph/mppc/ng_mppc.c
293
d->history = kmalloc(isComp ? MPPC_SizeOfCompressionHistory() : MPPC_SizeOfDecompressionHistory(),
sys/netgraph/mppc/ng_mppc.c
295
if (d->history == NULL)
sys/netgraph/mppc/ng_mppc.c
298
MPPC_InitCompressionHistory(d->history);
sys/netgraph/mppc/ng_mppc.c
301
d->history);
sys/netgraph/mppc/ng_mppc.c
311
bcopy(cfg->startkey, d->key, keylen);
sys/netgraph/mppc/ng_mppc.c
312
ng_mppc_getkey(cfg->startkey, d->key, keylen);
sys/netgraph/mppc/ng_mppc.c
314
bcopy(&ng_mppe_weakenkey, d->key, 3);
sys/netgraph/mppc/ng_mppc.c
316
bcopy(&ng_mppe_weakenkey, d->key, 1);
sys/netgraph/mppc/ng_mppc.c
317
rc4_init(&d->rc4, d->key, keylen);
sys/netgraph/mppc/ng_mppc.c
322
d->cc = 0;
sys/netgraph/mppc/ng_mppc.c
323
d->flushed = 0;
sys/netgraph/mppc/ng_mppc.c
465
struct ng_mppc_dir *const d = &priv->xmit;
sys/netgraph/mppc/ng_mppc.c
472
header = d->cc;
sys/netgraph/mppc/ng_mppc.c
473
if (d->flushed) {
sys/netgraph/mppc/ng_mppc.c
475
d->flushed = 0;
sys/netgraph/mppc/ng_mppc.c
484
if ((d->cfg.bits & MPPC_BIT) != 0)
sys/netgraph/mppc/ng_mppc.c
496
if ((d->cfg.bits & MPPC_BIT) != 0) {
sys/netgraph/mppc/ng_mppc.c
507
if ((d->cfg.bits & MPPE_STATELESS) == 0)
sys/netgraph/mppc/ng_mppc.c
512
&destCnt, d->history, flags, 0);
sys/netgraph/mppc/ng_mppc.c
523
d->flushed = (rtn & MPPC_EXPANDED) != 0
sys/netgraph/mppc/ng_mppc.c
536
if ((d->cfg.bits & MPPE_STATELESS) != 0)
sys/netgraph/mppc/ng_mppc.c
541
if ((d->cfg.bits & MPPE_BITS) != 0) {
sys/netgraph/mppc/ng_mppc.c
546
rc4_init(&d->rc4, d->key, KEYLEN(d->cfg.bits));
sys/netgraph/mppc/ng_mppc.c
549
if ((d->cfg.bits & MPPE_STATELESS) != 0
sys/netgraph/mppc/ng_mppc.c
550
|| (d->cc & MPPE_UPDATE_MASK) == MPPE_UPDATE_FLAG) {
sys/netgraph/mppc/ng_mppc.c
551
ng_mppc_updatekey(d->cfg.bits,
sys/netgraph/mppc/ng_mppc.c
552
d->cfg.startkey, d->key, &d->rc4);
sys/netgraph/mppc/ng_mppc.c
556
rc4_crypt(&d->rc4, outbuf + MPPC_HDRLEN,
sys/netgraph/mppc/ng_mppc.c
562
d->cc++;
sys/netgraph/mppc/ng_mppc.c
581
struct ng_mppc_dir *const d = &priv->recv;
sys/netgraph/mppc/ng_mppc.c
602
numLost = ((cc - d->cc) & MPPC_CCOUNT_MASK);
sys/netgraph/mppc/ng_mppc.c
607
if (d->history != NULL)
sys/netgraph/mppc/ng_mppc.c
608
MPPC_InitDecompressionHistory(d->history);
sys/netgraph/mppc/ng_mppc.c
611
if ((d->cfg.bits & MPPE_BITS) != 0) {
sys/netgraph/mppc/ng_mppc.c
615
rekey = ((d->cfg.bits & MPPE_STATELESS) != 0) ?
sys/netgraph/mppc/ng_mppc.c
626
while (d->cc != cc) {
sys/netgraph/mppc/ng_mppc.c
627
if ((d->cfg.bits & MPPE_STATELESS) != 0
sys/netgraph/mppc/ng_mppc.c
628
|| (d->cc & MPPE_UPDATE_MASK)
sys/netgraph/mppc/ng_mppc.c
630
ng_mppc_updatekey(d->cfg.bits,
sys/netgraph/mppc/ng_mppc.c
631
d->cfg.startkey, d->key, &d->rc4);
sys/netgraph/mppc/ng_mppc.c
633
d->cc++;
sys/netgraph/mppc/ng_mppc.c
637
if ((d->cfg.bits & MPPE_STATELESS) == 0)
sys/netgraph/mppc/ng_mppc.c
638
rc4_init(&d->rc4, d->key, KEYLEN(d->cfg.bits));
sys/netgraph/mppc/ng_mppc.c
641
d->cc = cc; /* skip over lost seq numbers */
sys/netgraph/mppc/ng_mppc.c
653
if ((d->cfg.bits & MPPE_BITS) == 0) {
sys/netgraph/mppc/ng_mppc.c
661
if ((d->cfg.bits & MPPE_STATELESS) != 0
sys/netgraph/mppc/ng_mppc.c
662
|| (d->cc & MPPE_UPDATE_MASK) == MPPE_UPDATE_FLAG) {
sys/netgraph/mppc/ng_mppc.c
663
ng_mppc_updatekey(d->cfg.bits,
sys/netgraph/mppc/ng_mppc.c
664
d->cfg.startkey, d->key, &d->rc4);
sys/netgraph/mppc/ng_mppc.c
668
rc4_crypt(&d->rc4, buf, buf, len);
sys/netgraph/mppc/ng_mppc.c
673
if ((d->cfg.bits & MPPE_BITS) != 0) {
sys/netgraph/mppc/ng_mppc.c
681
d->cc++;
sys/netgraph/mppc/ng_mppc.c
685
&& (d->cfg.bits & MPPC_BIT) == 0) {
sys/netgraph/mppc/ng_mppc.c
720
&sourceCnt, &destCnt, d->history, flags);
sys/netgraph/mppc/ng_mppc.c
752
struct ng_mppc_dir *const d = &priv->xmit;
sys/netgraph/mppc/ng_mppc.c
755
if (d->history != NULL)
sys/netgraph/mppc/ng_mppc.c
756
MPPC_InitCompressionHistory(d->history);
sys/netgraph/mppc/ng_mppc.c
759
if ((d->cfg.bits & MPPE_STATELESS) == 0)
sys/netgraph/mppc/ng_mppc.c
760
rc4_init(&d->rc4, d->key, KEYLEN(d->cfg.bits));
sys/netgraph/mppc/ng_mppc.c
762
d->flushed = 1;
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
670
ng_btsocket_hci_raw_filter(ng_btsocket_hci_raw_pcb_p pcb, struct mbuf *m, int d)
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
687
if (d && !bit_test(pcb->filter.packet_mask, NG_HCI_CMD_PKT - 1))
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
695
!d)
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
700
if (!d)
sys/netgraph7/mppc/ng_mppc.c
116
#define MPPC_CCOUNT_INC(d) ((d) = (((d) + 1) & MPPC_CCOUNT_MASK))
sys/netgraph7/mppc/ng_mppc.c
265
struct ng_mppc_dir *const d = isComp ?
sys/netgraph7/mppc/ng_mppc.c
290
d->cfg = *cfg;
sys/netgraph7/mppc/ng_mppc.c
294
if (d->history != NULL) {
sys/netgraph7/mppc/ng_mppc.c
295
kfree(d->history, M_NETGRAPH_MPPC);
sys/netgraph7/mppc/ng_mppc.c
296
d->history = NULL;
sys/netgraph7/mppc/ng_mppc.c
299
d->history = kmalloc(isComp ? MPPC_SizeOfCompressionHistory() : MPPC_SizeOfDecompressionHistory(),
sys/netgraph7/mppc/ng_mppc.c
302
if (d->history == NULL)
sys/netgraph7/mppc/ng_mppc.c
305
MPPC_InitCompressionHistory(d->history);
sys/netgraph7/mppc/ng_mppc.c
308
d->history);
sys/netgraph7/mppc/ng_mppc.c
318
bcopy(cfg->startkey, d->key, keylen);
sys/netgraph7/mppc/ng_mppc.c
319
ng_mppc_getkey(cfg->startkey, d->key, keylen);
sys/netgraph7/mppc/ng_mppc.c
321
bcopy(&ng_mppe_weakenkey, d->key, 3);
sys/netgraph7/mppc/ng_mppc.c
323
bcopy(&ng_mppe_weakenkey, d->key, 1);
sys/netgraph7/mppc/ng_mppc.c
324
rc4_init(&d->rc4, d->key, keylen);
sys/netgraph7/mppc/ng_mppc.c
329
d->cc = 0;
sys/netgraph7/mppc/ng_mppc.c
330
d->flushed = 0;
sys/netgraph7/mppc/ng_mppc.c
469
struct ng_mppc_dir *const d = &priv->xmit;
sys/netgraph7/mppc/ng_mppc.c
474
header = d->cc;
sys/netgraph7/mppc/ng_mppc.c
477
if (d->flushed || ((d->cfg.bits & MPPE_STATELESS) != 0)) {
sys/netgraph7/mppc/ng_mppc.c
479
d->flushed = 0;
sys/netgraph7/mppc/ng_mppc.c
484
if ((d->cfg.bits & MPPC_BIT) != 0) {
sys/netgraph7/mppc/ng_mppc.c
514
if ((d->cfg.bits & MPPE_STATELESS) == 0)
sys/netgraph7/mppc/ng_mppc.c
519
&destCnt, d->history, flags, 0);
sys/netgraph7/mppc/ng_mppc.c
534
d->flushed = (rtn & MPPC_EXPANDED) != 0
sys/netgraph7/mppc/ng_mppc.c
548
if ((d->cfg.bits & MPPE_BITS) != 0) {
sys/netgraph7/mppc/ng_mppc.c
555
if ((d->cfg.bits & MPPE_STATELESS) != 0
sys/netgraph7/mppc/ng_mppc.c
556
|| (d->cc & MPPE_UPDATE_MASK) == MPPE_UPDATE_FLAG) {
sys/netgraph7/mppc/ng_mppc.c
557
ng_mppc_updatekey(d->cfg.bits,
sys/netgraph7/mppc/ng_mppc.c
558
d->cfg.startkey, d->key, &d->rc4);
sys/netgraph7/mppc/ng_mppc.c
562
rc4_init(&d->rc4, d->key, KEYLEN(d->cfg.bits));
sys/netgraph7/mppc/ng_mppc.c
573
rc4_crypt(&d->rc4, mtod(m1, u_char *),
sys/netgraph7/mppc/ng_mppc.c
581
MPPC_CCOUNT_INC(d->cc);
sys/netgraph7/mppc/ng_mppc.c
600
struct ng_mppc_dir *const d = &priv->recv;
sys/netgraph7/mppc/ng_mppc.c
616
numLost = ((cc - d->cc) & MPPC_CCOUNT_MASK);
sys/netgraph7/mppc/ng_mppc.c
621
if (d->history != NULL)
sys/netgraph7/mppc/ng_mppc.c
622
MPPC_InitDecompressionHistory(d->history);
sys/netgraph7/mppc/ng_mppc.c
625
if ((d->cfg.bits & MPPE_BITS) != 0) {
sys/netgraph7/mppc/ng_mppc.c
629
rekey = ((d->cfg.bits & MPPE_STATELESS) != 0) ?
sys/netgraph7/mppc/ng_mppc.c
640
while (d->cc != cc) {
sys/netgraph7/mppc/ng_mppc.c
641
if ((d->cfg.bits & MPPE_STATELESS) != 0
sys/netgraph7/mppc/ng_mppc.c
642
|| (d->cc & MPPE_UPDATE_MASK)
sys/netgraph7/mppc/ng_mppc.c
644
ng_mppc_updatekey(d->cfg.bits,
sys/netgraph7/mppc/ng_mppc.c
645
d->cfg.startkey, d->key, &d->rc4);
sys/netgraph7/mppc/ng_mppc.c
647
MPPC_CCOUNT_INC(d->cc);
sys/netgraph7/mppc/ng_mppc.c
651
if ((d->cfg.bits & MPPE_STATELESS) == 0)
sys/netgraph7/mppc/ng_mppc.c
652
rc4_init(&d->rc4, d->key, KEYLEN(d->cfg.bits));
sys/netgraph7/mppc/ng_mppc.c
655
d->cc = cc; /* skip over lost seq numbers */
sys/netgraph7/mppc/ng_mppc.c
670
if ((d->cfg.bits & MPPE_BITS) == 0) {
sys/netgraph7/mppc/ng_mppc.c
678
if ((d->cfg.bits & MPPE_STATELESS) != 0
sys/netgraph7/mppc/ng_mppc.c
679
|| (d->cc & MPPE_UPDATE_MASK) == MPPE_UPDATE_FLAG) {
sys/netgraph7/mppc/ng_mppc.c
680
ng_mppc_updatekey(d->cfg.bits,
sys/netgraph7/mppc/ng_mppc.c
681
d->cfg.startkey, d->key, &d->rc4);
sys/netgraph7/mppc/ng_mppc.c
692
rc4_crypt(&d->rc4, mtod(m1, u_char *),
sys/netgraph7/mppc/ng_mppc.c
700
if ((d->cfg.bits & MPPE_BITS) != 0) {
sys/netgraph7/mppc/ng_mppc.c
708
MPPC_CCOUNT_INC(d->cc);
sys/netgraph7/mppc/ng_mppc.c
712
&& (d->cfg.bits & MPPC_BIT) == 0) {
sys/netgraph7/mppc/ng_mppc.c
759
&sourceCnt, &destCnt, d->history, flags);
sys/netgraph7/mppc/ng_mppc.c
794
struct ng_mppc_dir *const d = &priv->xmit;
sys/netgraph7/mppc/ng_mppc.c
797
if (d->history != NULL)
sys/netgraph7/mppc/ng_mppc.c
798
MPPC_InitCompressionHistory(d->history);
sys/netgraph7/mppc/ng_mppc.c
801
if ((d->cfg.bits & MPPE_STATELESS) == 0)
sys/netgraph7/mppc/ng_mppc.c
802
rc4_init(&d->rc4, d->key, KEYLEN(d->cfg.bits));
sys/netgraph7/mppc/ng_mppc.c
804
d->flushed = 1;
sys/netinet/ip_encap.c
136
struct sockaddr_in s, d;
sys/netinet/ip_encap.c
167
bzero(&d, sizeof d);
sys/netinet/ip_encap.c
168
d.sin_family = AF_INET;
sys/netinet/ip_encap.c
169
d.sin_len = sizeof(struct sockaddr_in);
sys/netinet/ip_encap.c
170
d.sin_addr = ip->ip_dst;
sys/netinet/ip_encap.c
187
(struct sockaddr *)&d,
sys/netinet/ip_encap.c
250
struct sockaddr_in6 s, d;
sys/netinet/ip_encap.c
261
bzero(&d, sizeof d);
sys/netinet/ip_encap.c
262
d.sin6_family = AF_INET6;
sys/netinet/ip_encap.c
263
d.sin6_len = sizeof(struct sockaddr_in6);
sys/netinet/ip_encap.c
264
d.sin6_addr = ip6->ip6_dst;
sys/netinet/ip_encap.c
280
prio = mask_match(ep, (struct sockaddr *)&d,
sys/netinet/ip_encap.c
433
struct sockaddr_storage d;
sys/netinet/ip_encap.c
439
if (sp->sa_len > sizeof s || dp->sa_len > sizeof d)
sys/netinet/ip_encap.c
459
r = (u_int8_t *)&d;
sys/netinet/ip_encap.c
469
d.ss_len = dp->sa_len;
sys/netinet/ip_encap.c
470
d.ss_family = dp->sa_family;
sys/netinet/ip_encap.c
473
bcmp(&d, &ep->dst, ep->dst.ss_len) == 0) {
sys/netinet/tcp_input.c
306
#define iceildiv(n, d) (((n)+(d)-1) / (d))
sys/netinet/tcp_subr.c
1553
void *d = msg->ctlinput.nm_extra;
sys/netinet/tcp_subr.c
1580
struct ip6ctlparam *ip6cp = d;
sys/netinet/tcp_subr.c
1601
if (d != NULL) {
sys/netinet/tcp_subr.c
1602
ip6cp = (struct ip6ctlparam *)d;
sys/netinet6/in6.c
1865
const u_char *d;
sys/netinet6/in6.c
1894
d = (const u_char *)a;
sys/netinet6/in6.c
1895
*cp++ = digits[*d >> 4];
sys/netinet6/in6.c
1896
*cp++ = digits[*d++ & 0xf];
sys/netinet6/in6.c
1897
*cp++ = digits[*d >> 4];
sys/netinet6/in6.c
1898
*cp++ = digits[*d & 0xf];
sys/netinet6/in6.c
1947
u_char *s = (u_char *)src, *d = (u_char *)dst;
sys/netinet6/in6.c
1951
if ((r = (*d++ ^ *s++)) != 0) {
sys/netinet6/in6_var.h
383
#define IN6_ARE_MASKED_ADDR_EQUAL(d, a, m) ( \
sys/netinet6/in6_var.h
384
(((d)->s6_addr32[0] ^ (a)->s6_addr32[0]) & (m)->s6_addr32[0]) == 0 && \
sys/netinet6/in6_var.h
385
(((d)->s6_addr32[1] ^ (a)->s6_addr32[1]) & (m)->s6_addr32[1]) == 0 && \
sys/netinet6/in6_var.h
386
(((d)->s6_addr32[2] ^ (a)->s6_addr32[2]) & (m)->s6_addr32[2]) == 0 && \
sys/netinet6/in6_var.h
387
(((d)->s6_addr32[3] ^ (a)->s6_addr32[3]) & (m)->s6_addr32[3]) == 0 )
sys/netinet6/ip6_mroute.c
846
u_long d;
sys/netinet6/ip6_mroute.c
856
d = delta >> 10;
sys/netinet6/ip6_mroute.c
857
if (d > UPCALL_MAX)
sys/netinet6/ip6_mroute.c
858
d = UPCALL_MAX;
sys/netinet6/ip6_mroute.c
860
++upcall_data[d];
sys/netinet6/nd6.c
2161
struct in6_defrouter *d, *de;
sys/netinet6/nd6.c
2170
d = (struct in6_defrouter *)buf;
sys/netinet6/nd6.c
2173
if (d + 1 <= de) {
sys/netinet6/nd6.c
2174
bzero(d, sizeof(*d));
sys/netinet6/nd6.c
2175
d->rtaddr.sin6_family = AF_INET6;
sys/netinet6/nd6.c
2176
d->rtaddr.sin6_len = sizeof(d->rtaddr);
sys/netinet6/nd6.c
2177
if (in6_recoverscope(&d->rtaddr, &dr->rtaddr,
sys/netinet6/nd6.c
2183
d->flags = dr->flags;
sys/netinet6/nd6.c
2184
d->rtlifetime = dr->rtlifetime;
sys/netinet6/nd6.c
2185
d->expire = dr->expire;
sys/netinet6/nd6.c
2186
d->if_index = dr->ifp->if_index;
sys/netinet6/nd6.c
2190
error = SYSCTL_OUT(req, buf, sizeof(*d));
sys/netinet6/raw_ip6.c
233
void *d = msg->ctlinput.nm_extra;
sys/netinet6/raw_ip6.c
245
notify = in6_rtchange, d = NULL;
sys/netinet6/raw_ip6.c
247
d = NULL;
sys/netinet6/raw_ip6.c
252
if (d != NULL) {
sys/netinet6/raw_ip6.c
253
ip6cp = (struct ip6ctlparam *)d;
sys/netinet6/udp6_usrreq.c
388
void *d = msg->ctlinput.nm_extra;
sys/netinet6/udp6_usrreq.c
408
notify = in6_rtchange, d = NULL;
sys/netinet6/udp6_usrreq.c
410
d = NULL;
sys/netinet6/udp6_usrreq.c
415
if (d != NULL) {
sys/netinet6/udp6_usrreq.c
416
ip6cp = (struct ip6ctlparam *)d;
sys/platform/pc64/x86_64/__udivti3.c
102
utwords n, d, q, r;
sys/platform/pc64/x86_64/__udivti3.c
106
d.all = b;
sys/platform/pc64/x86_64/__udivti3.c
110
if (d.s.high == 0) {
sys/platform/pc64/x86_64/__udivti3.c
116
*rem = n.s.low % d.s.low;
sys/platform/pc64/x86_64/__udivti3.c
117
return n.s.low / d.s.low;
sys/platform/pc64/x86_64/__udivti3.c
128
if (d.s.low == 0) {
sys/platform/pc64/x86_64/__udivti3.c
129
if (d.s.high == 0) {
sys/platform/pc64/x86_64/__udivti3.c
135
*rem = n.s.high % d.s.low;
sys/platform/pc64/x86_64/__udivti3.c
136
return n.s.high / d.s.low;
sys/platform/pc64/x86_64/__udivti3.c
145
r.s.high = n.s.high % d.s.high;
sys/platform/pc64/x86_64/__udivti3.c
149
return n.s.high / d.s.high;
sys/platform/pc64/x86_64/__udivti3.c
155
if ((d.s.high & (d.s.high - 1)) == 0) { /* if d is a power of 2 */
sys/platform/pc64/x86_64/__udivti3.c
158
r.s.high = n.s.high & (d.s.high - 1);
sys/platform/pc64/x86_64/__udivti3.c
161
return n.s.high >> __builtin_ctzl(d.s.high);
sys/platform/pc64/x86_64/__udivti3.c
167
sr = __builtin_clzl(d.s.high) - __builtin_clzl(n.s.high);
sys/platform/pc64/x86_64/__udivti3.c
183
if (d.s.high == 0) {
sys/platform/pc64/x86_64/__udivti3.c
188
if ((d.s.low & (d.s.low - 1)) == 0) { /* if d is a power of 2 */
sys/platform/pc64/x86_64/__udivti3.c
190
*rem = n.s.low & (d.s.low - 1);
sys/platform/pc64/x86_64/__udivti3.c
191
if (d.s.low == 1)
sys/platform/pc64/x86_64/__udivti3.c
193
sr = __builtin_ctzl(d.s.low);
sys/platform/pc64/x86_64/__udivti3.c
203
sr = 1 + n_udword_bits + __builtin_clzl(d.s.low) -
sys/platform/pc64/x86_64/__udivti3.c
250
sr = __builtin_clzl(d.s.high) - __builtin_clzl(n.s.high);
sys/platform/pc64/x86_64/__udivti3.c
302
(_int128_t)(d.all - r.all - 1) >> (n_utword_bits - 1);
sys/platform/pc64/x86_64/__udivti3.c
304
r.all -= d.all & s;
sys/platform/pc64/x86_64/db_trace.c
152
int size, int access, struct dbreg * d);
sys/platform/pc64/x86_64/db_trace.c
153
static int kx86_64_clr_watch(int watchnum, struct dbreg * d);
sys/platform/pc64/x86_64/db_trace.c
482
struct dbreg *d)
sys/platform/pc64/x86_64/db_trace.c
489
if ((d->dr[7] & mask) == 0)
sys/platform/pc64/x86_64/db_trace.c
531
d->dr[7] &= ~((0x3 << (watchnum * 2)) | (0x0f << (watchnum * 4 + 16)));
sys/platform/pc64/x86_64/db_trace.c
534
DBREG_DRX(d, watchnum) = watchaddr;
sys/platform/pc64/x86_64/db_trace.c
537
d->dr[7] |= (0x2 << (watchnum * 2)) | (mask << (watchnum * 4 + 16));
sys/platform/pc64/x86_64/db_trace.c
544
kx86_64_clr_watch(int watchnum, struct dbreg *d)
sys/platform/pc64/x86_64/db_trace.c
549
d->dr[7] &= ~((0x3 << (watchnum * 2)) | (0x0f << (watchnum * 4 + 16)));
sys/platform/pc64/x86_64/db_trace.c
550
DBREG_DRX(d, watchnum) = 0;
sys/platform/pc64/x86_64/db_trace.c
561
struct dbreg d;
sys/platform/pc64/x86_64/db_trace.c
563
fill_dbregs(NULL, &d);
sys/platform/pc64/x86_64/db_trace.c
567
if ((d.dr[7] & (3 << (i * 2))) == 0)
sys/platform/pc64/x86_64/db_trace.c
575
if ((d.dr[7] & (3 << (i * 2))) == 0) {
sys/platform/pc64/x86_64/db_trace.c
584
kx86_64_set_watch(i, addr, wsize, DBREG_DR7_WRONLY, &d);
sys/platform/pc64/x86_64/db_trace.c
590
set_dbregs(NULL, &d);
sys/platform/pc64/x86_64/db_trace.c
598
struct dbreg d;
sys/platform/pc64/x86_64/db_trace.c
601
fill_dbregs(NULL, &d);
sys/platform/pc64/x86_64/db_trace.c
604
if (d.dr[7] & (3 << (i * 2))) {
sys/platform/pc64/x86_64/db_trace.c
605
if ((DBREG_DRX((&d), i) >= addr) &&
sys/platform/pc64/x86_64/db_trace.c
606
(DBREG_DRX((&d), i) < addr + size))
sys/platform/pc64/x86_64/db_trace.c
607
kx86_64_clr_watch(i, &d);
sys/platform/pc64/x86_64/db_trace.c
611
set_dbregs(NULL, &d);
sys/platform/pc64/x86_64/db_trace.c
635
struct dbreg d;
sys/platform/pc64/x86_64/db_trace.c
637
fill_dbregs(NULL, &d);
sys/platform/pc64/x86_64/db_trace.c
643
if (d.dr[7] & (0x03 << (i * 2))) {
sys/platform/pc64/x86_64/db_trace.c
645
type = (d.dr[7] >> (16 + (i * 4))) & 3;
sys/platform/pc64/x86_64/db_trace.c
646
len = (d.dr[7] >> (16 + (i * 4) + 2)) & 3;
sys/platform/pc64/x86_64/db_trace.c
649
len + 1, DBREG_DRX((&d), i));
sys/platform/pc64/x86_64/db_trace.c
657
db_printf(" dr%d 0x%08lx\n", i, DBREG_DRX((&d),i));
sys/platform/vkernel64/x86_64/db_trace.c
153
int size, int access, struct dbreg * d);
sys/platform/vkernel64/x86_64/db_trace.c
154
static int kx86_64_clr_watch(int watchnum, struct dbreg * d);
sys/platform/vkernel64/x86_64/db_trace.c
475
struct dbreg *d)
sys/platform/vkernel64/x86_64/db_trace.c
482
if ((d->dr[7] & mask) == 0)
sys/platform/vkernel64/x86_64/db_trace.c
524
d->dr[7] &= ~((0x3 << (watchnum * 2)) | (0x0f << (watchnum * 4 + 16)));
sys/platform/vkernel64/x86_64/db_trace.c
527
DBREG_DRX(d, watchnum) = watchaddr;
sys/platform/vkernel64/x86_64/db_trace.c
530
d->dr[7] |= (0x2 << (watchnum * 2)) | (mask << (watchnum * 4 + 16));
sys/platform/vkernel64/x86_64/db_trace.c
537
kx86_64_clr_watch(int watchnum, struct dbreg *d)
sys/platform/vkernel64/x86_64/db_trace.c
542
d->dr[7] &= ~((0x3 << (watchnum * 2)) | (0x0f << (watchnum * 4 + 16)));
sys/platform/vkernel64/x86_64/db_trace.c
543
DBREG_DRX(d, watchnum) = 0;
sys/platform/vkernel64/x86_64/db_trace.c
554
struct dbreg d;
sys/platform/vkernel64/x86_64/db_trace.c
556
fill_dbregs(NULL, &d);
sys/platform/vkernel64/x86_64/db_trace.c
560
if ((d.dr[7] & (3 << (i * 2))) == 0)
sys/platform/vkernel64/x86_64/db_trace.c
568
if ((d.dr[7] & (3 << (i * 2))) == 0) {
sys/platform/vkernel64/x86_64/db_trace.c
577
kx86_64_set_watch(i, addr, wsize, DBREG_DR7_WRONLY, &d);
sys/platform/vkernel64/x86_64/db_trace.c
583
set_dbregs(NULL, &d);
sys/platform/vkernel64/x86_64/db_trace.c
591
struct dbreg d;
sys/platform/vkernel64/x86_64/db_trace.c
594
fill_dbregs(NULL, &d);
sys/platform/vkernel64/x86_64/db_trace.c
597
if (d.dr[7] & (3 << (i * 2))) {
sys/platform/vkernel64/x86_64/db_trace.c
598
if ((DBREG_DRX((&d), i) >= addr) &&
sys/platform/vkernel64/x86_64/db_trace.c
599
(DBREG_DRX((&d), i) < addr + size))
sys/platform/vkernel64/x86_64/db_trace.c
600
kx86_64_clr_watch(i, &d);
sys/platform/vkernel64/x86_64/db_trace.c
604
set_dbregs(NULL, &d);
sys/platform/vkernel64/x86_64/db_trace.c
628
struct dbreg d;
sys/platform/vkernel64/x86_64/db_trace.c
630
fill_dbregs(NULL, &d);
sys/platform/vkernel64/x86_64/db_trace.c
636
if (d.dr[7] & (0x03 << (i * 2))) {
sys/platform/vkernel64/x86_64/db_trace.c
638
type = (d.dr[7] >> (16 + (i * 4))) & 3;
sys/platform/vkernel64/x86_64/db_trace.c
639
len = (d.dr[7] >> (16 + (i * 4) + 2)) & 3;
sys/platform/vkernel64/x86_64/db_trace.c
642
len + 1, DBREG_DRX((&d), i));
sys/platform/vkernel64/x86_64/db_trace.c
650
db_printf(" dr%d 0x%08lx\n", i, DBREG_DRX((&d),i));
sys/sys/bus.h
567
#define bus_read_multi_1(r, o, d, c) \
sys/sys/bus.h
568
bus_space_read_multi_1((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
569
#define bus_read_region_1(r, o, d, c) \
sys/sys/bus.h
570
bus_space_read_region_1((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
577
#define bus_write_multi_1(r, o, d, c) \
sys/sys/bus.h
578
bus_space_write_multi_1((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
579
#define bus_write_region_1(r, o, d, c) \
sys/sys/bus.h
580
bus_space_write_region_1((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
583
#define bus_read_multi_stream_1(r, o, d, c) \
sys/sys/bus.h
584
bus_space_read_multi_stream_1((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
585
#define bus_read_region_stream_1(r, o, d, c) \
sys/sys/bus.h
586
bus_space_read_region_stream_1((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
593
#define bus_write_multi_stream_1(r, o, d, c) \
sys/sys/bus.h
594
bus_space_write_multi_stream_1((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
595
#define bus_write_region_stream_1(r, o, d, c) \
sys/sys/bus.h
596
bus_space_write_region_stream_1((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
599
#define bus_read_multi_2(r, o, d, c) \
sys/sys/bus.h
600
bus_space_read_multi_2((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
601
#define bus_read_region_2(r, o, d, c) \
sys/sys/bus.h
602
bus_space_read_region_2((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
609
#define bus_write_multi_2(r, o, d, c) \
sys/sys/bus.h
610
bus_space_write_multi_2((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
611
#define bus_write_region_2(r, o, d, c) \
sys/sys/bus.h
612
bus_space_write_region_2((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
615
#define bus_read_multi_stream_2(r, o, d, c) \
sys/sys/bus.h
616
bus_space_read_multi_stream_2((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
617
#define bus_read_region_stream_2(r, o, d, c) \
sys/sys/bus.h
618
bus_space_read_region_stream_2((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
625
#define bus_write_multi_stream_2(r, o, d, c) \
sys/sys/bus.h
626
bus_space_write_multi_stream_2((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
627
#define bus_write_region_stream_2(r, o, d, c) \
sys/sys/bus.h
628
bus_space_write_region_stream_2((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
631
#define bus_read_multi_4(r, o, d, c) \
sys/sys/bus.h
632
bus_space_read_multi_4((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
633
#define bus_read_region_4(r, o, d, c) \
sys/sys/bus.h
634
bus_space_read_region_4((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
641
#define bus_write_multi_4(r, o, d, c) \
sys/sys/bus.h
642
bus_space_write_multi_4((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
643
#define bus_write_region_4(r, o, d, c) \
sys/sys/bus.h
644
bus_space_write_region_4((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
647
#define bus_read_multi_stream_4(r, o, d, c) \
sys/sys/bus.h
648
bus_space_read_multi_stream_4((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
649
#define bus_read_region_stream_4(r, o, d, c) \
sys/sys/bus.h
650
bus_space_read_region_stream_4((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
657
#define bus_write_multi_stream_4(r, o, d, c) \
sys/sys/bus.h
658
bus_space_write_multi_stream_4((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
659
#define bus_write_region_stream_4(r, o, d, c) \
sys/sys/bus.h
660
bus_space_write_region_stream_4((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
663
#define bus_read_multi_8(r, o, d, c) \
sys/sys/bus.h
664
bus_space_read_multi_8((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
665
#define bus_read_region_8(r, o, d, c) \
sys/sys/bus.h
666
bus_space_read_region_8((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
673
#define bus_write_multi_8(r, o, d, c) \
sys/sys/bus.h
674
bus_space_write_multi_8((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
675
#define bus_write_region_8(r, o, d, c) \
sys/sys/bus.h
676
bus_space_write_region_8((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
679
#define bus_read_multi_stream_8(r, o, d, c) \
sys/sys/bus.h
680
bus_space_read_multi_stream_8((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
681
#define bus_read_region_stream_8(r, o, d, c) \
sys/sys/bus.h
682
bus_space_read_region_stream_8((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
689
#define bus_write_multi_stream_8(r, o, d, c) \
sys/sys/bus.h
690
bus_space_write_multi_stream_8((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/bus.h
691
#define bus_write_region_stream_8(r, o, d, c) \
sys/sys/bus.h
692
bus_space_write_region_stream_8((r)->r_bustag, (r)->r_bushandle, (o), (d), (c))
sys/sys/event.h
54
#define EV_SET(kevp_, a, b, c, d, e, f) do { \
sys/sys/event.h
59
(kevp)->fflags = (d); \
sys/sys/iconv.h
203
int type, void *d); \
sys/sys/iconv.h
205
fsname ## _iconv_mod_handler(module_t mod, int type, void *d) \
sys/sys/spinlock.h
53
#define SPINLOCK_INITIALIZER(head, d) { 0, 0 }
sys/sys/sysctl.h
231
#define __DESCR(d) d
sys/sys/sysctl.h
233
#define __DESCR(d) ""
sys/sys/systm.h
505
muldivu64(uint64_t a, uint64_t b, uint64_t d)
sys/sys/systm.h
510
if (t / d > UINT64_MAX) {
sys/sys/systm.h
511
kprintf("muldivu64: overflow %lu,%lu,%lu\n", a, b, d);
sys/sys/systm.h
514
return (t / d);
sys/vfs/devfs/devfs_core.c
2814
wildCmp(const char **mary, int d, const char *w, const char *s)
sys/vfs/devfs/devfs_core.c
2833
for (i = 0; s + i < mary[d]; ++i) {
sys/vfs/devfs/devfs_core.c
2834
if (s[i] == w[1] && wildCmp(mary, d + 1, w + 1, s + i) == 0)
sys/vfs/devfs/devfs_core.c
2841
for (i = 0; s + i < mary[d]; ++i) {
sys/vfs/devfs/devfs_core.c
2842
if (wildCmp(mary, d + 1, w + 1, s + i) == 0)
sys/vfs/devfs/devfs_core.c
2846
mary[d] = s;
sys/vfs/devfs/devfs_core.c
2875
wildCaseCmp(const char **mary, int d, const char *w, const char *s)
sys/vfs/devfs/devfs_core.c
2894
for (i = 0; s + i < mary[d]; ++i) {
sys/vfs/devfs/devfs_core.c
2895
if (s[i] == w[1] && wildCaseCmp(mary, d + 1, w + 1, s + i) == 0)
sys/vfs/devfs/devfs_core.c
2902
for (i = 0; s + i < mary[d]; ++i) {
sys/vfs/devfs/devfs_core.c
2903
if (wildCaseCmp(mary, d + 1, w + 1, s + i) == 0)
sys/vfs/devfs/devfs_core.c
2907
mary[d] = s;
sys/vfs/ext2fs/ext2_hash.c
100
#define HH(a, b, c, d, x, s) { \
sys/vfs/ext2fs/ext2_hash.c
101
(a) += H ((b), (c), (d)) + (x) + (uint32_t)0x6ED9EBA1; \
sys/vfs/ext2fs/ext2_hash.c
119
uint32_t a = hash[0], b = hash[1], c = hash[2], d = hash[3];
sys/vfs/ext2fs/ext2_hash.c
122
FF(a, b, c, d, data[0], 3);
sys/vfs/ext2fs/ext2_hash.c
123
FF(d, a, b, c, data[1], 7);
sys/vfs/ext2fs/ext2_hash.c
124
FF(c, d, a, b, data[2], 11);
sys/vfs/ext2fs/ext2_hash.c
125
FF(b, c, d, a, data[3], 19);
sys/vfs/ext2fs/ext2_hash.c
126
FF(a, b, c, d, data[4], 3);
sys/vfs/ext2fs/ext2_hash.c
127
FF(d, a, b, c, data[5], 7);
sys/vfs/ext2fs/ext2_hash.c
128
FF(c, d, a, b, data[6], 11);
sys/vfs/ext2fs/ext2_hash.c
129
FF(b, c, d, a, data[7], 19);
sys/vfs/ext2fs/ext2_hash.c
132
GG(a, b, c, d, data[1], 3);
sys/vfs/ext2fs/ext2_hash.c
133
GG(d, a, b, c, data[3], 5);
sys/vfs/ext2fs/ext2_hash.c
134
GG(c, d, a, b, data[5], 9);
sys/vfs/ext2fs/ext2_hash.c
135
GG(b, c, d, a, data[7], 13);
sys/vfs/ext2fs/ext2_hash.c
136
GG(a, b, c, d, data[0], 3);
sys/vfs/ext2fs/ext2_hash.c
137
GG(d, a, b, c, data[2], 5);
sys/vfs/ext2fs/ext2_hash.c
138
GG(c, d, a, b, data[4], 9);
sys/vfs/ext2fs/ext2_hash.c
139
GG(b, c, d, a, data[6], 13);
sys/vfs/ext2fs/ext2_hash.c
142
HH(a, b, c, d, data[3], 3);
sys/vfs/ext2fs/ext2_hash.c
143
HH(d, a, b, c, data[7], 9);
sys/vfs/ext2fs/ext2_hash.c
144
HH(c, d, a, b, data[2], 11);
sys/vfs/ext2fs/ext2_hash.c
145
HH(b, c, d, a, data[6], 15);
sys/vfs/ext2fs/ext2_hash.c
146
HH(a, b, c, d, data[1], 3);
sys/vfs/ext2fs/ext2_hash.c
147
HH(d, a, b, c, data[5], 9);
sys/vfs/ext2fs/ext2_hash.c
148
HH(c, d, a, b, data[0], 11);
sys/vfs/ext2fs/ext2_hash.c
149
HH(b, c, d, a, data[4], 15);
sys/vfs/ext2fs/ext2_hash.c
154
hash[3] += d;
sys/vfs/ext2fs/ext2_hash.c
90
#define FF(a, b, c, d, x, s) { \
sys/vfs/ext2fs/ext2_hash.c
91
(a) += F ((b), (c), (d)) + (x); \
sys/vfs/ext2fs/ext2_hash.c
95
#define GG(a, b, c, d, x, s) { \
sys/vfs/ext2fs/ext2_hash.c
96
(a) += G ((b), (c), (d)) + (x) + (uint32_t)0x5A827999; \
sys/vfs/ext2fs/ext2fs.h
437
#define SDT_PROBE_DEFINE1(a, b, c, d, e)
sys/vfs/ext2fs/ext2fs.h
438
#define SDT_PROBE_DEFINE2(a, b, c, d, e, f)
sys/vfs/ext2fs/ext2fs.h
439
#define SDT_PROBE_DEFINE3(a, b, c, d, e, f, g)
sys/vfs/ext2fs/ext2fs.h
440
#define SDT_PROBE_DEFINE4(a, b, c, d, e, f, g, h)
sys/vfs/ext2fs/ext2fs.h
441
#define SDT_PROBE_DEFINE5(a, b, c, d, e, f, g, h, i)
sys/vfs/ext2fs/ext2fs.h
442
#define SDT_PROBE1(a, b, c, d, e)
sys/vfs/ext2fs/ext2fs.h
443
#define SDT_PROBE2(a, b, c, d, e, f)
sys/vfs/ext2fs/ext2fs.h
444
#define SDT_PROBE3(a, b, c, d, e, f, g)
sys/vfs/ext2fs/ext2fs.h
445
#define SDT_PROBE4(a, b, c, d, e, f, g, h)
sys/vfs/ext2fs/ext2fs.h
446
#define SDT_PROBE5(a, b, c, d, e, f, g, h, i)
sys/vfs/ext2fs/fs.h
122
#define dtog(fs, d) (((d) - le32toh(fs->e2fs->e2fs_first_dblock)) / \
sys/vfs/ext2fs/fs.h
124
#define dtogd(fs, d) (((d) - le32toh(fs->e2fs->e2fs_first_dblock)) % \
sys/vfs/fuse/fuse_abi.h
744
#define FUSE_DIRENT_SIZE(d) \
sys/vfs/fuse/fuse_abi.h
745
FUSE_DIRENT_ALIGN(FUSE_NAME_OFFSET + (d)->namelen)
sys/vfs/fuse/fuse_abi.h
754
#define FUSE_DIRENTPLUS_SIZE(d) \
sys/vfs/fuse/fuse_abi.h
755
FUSE_DIRENT_ALIGN(FUSE_NAME_OFFSET_DIRENTPLUS + (d)->dirent.namelen)
sys/vfs/hammer2/hammer2_lz4.c
192
# define LZ4_COPYSTEP(s,d) A64(d) = A64(s); d+=8; s+=8;
sys/vfs/hammer2/hammer2_lz4.c
193
# define LZ4_COPYPACKET(s,d) LZ4_COPYSTEP(s,d)
sys/vfs/hammer2/hammer2_lz4.c
194
# define LZ4_SECURECOPY(s,d,e) if (d<e) LZ4_WILDCOPY(s,d,e)
sys/vfs/hammer2/hammer2_lz4.c
201
# define LZ4_COPYSTEP(s,d) A32(d) = A32(s); d+=4; s+=4;
sys/vfs/hammer2/hammer2_lz4.c
202
# define LZ4_COPYPACKET(s,d) LZ4_COPYSTEP(s,d); LZ4_COPYSTEP(s,d);
sys/vfs/hammer2/hammer2_lz4.c
209
# define LZ4_READ_LITTLEENDIAN_16(d,s,p) { U16 v = A16(p);
sys/vfs/hammer2/hammer2_lz4.c
211
d = (s) - v; }
sys/vfs/hammer2/hammer2_lz4.c
217
# define LZ4_READ_LITTLEENDIAN_16(d,s,p) { d = (s) - A16(p); }
sys/vfs/hammer2/hammer2_lz4.c
225
#define LZ4_WILDCOPY(s,d,e) do { LZ4_COPYPACKET(s,d) } while (d<e);
sys/vfs/hammer2/hammer2_lz4.c
226
#define LZ4_BLINDCOPY(s,d,l) { BYTE* e=(d)+(l); LZ4_WILDCOPY(s,d,e); d=e; }
sys/vfs/isofs/cd9660/cd9660_node.c
346
int y, m, d, hour, minute, second, tz;
sys/vfs/isofs/cd9660/cd9660_node.c
350
d = pi[2];
sys/vfs/isofs/cd9660/cd9660_node.c
368
days = 367*(y-1980)-7*(y+(m+9)/12)/4-3*((y+(m-9)/7)/100+1)/4+275*m/9+d-100;
sys/vfs/isofs/cd9660/cd9660_node.c
374
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/vfs/isofs/cd9660/cd9660_util.c
106
u_short c, d;
sys/vfs/isofs/cd9660/cd9660_util.c
110
d = sgetrune(fn, fnend - fn, __DECONST(const char **, &fn),
sys/vfs/isofs/cd9660/cd9660_util.c
113
return d;
sys/vfs/isofs/cd9660/cd9660_util.c
116
if (d != ';')
sys/vfs/isofs/cd9660/cd9660_util.c
117
return d;
sys/vfs/isofs/cd9660/cd9660_util.c
129
if (c != d) {
sys/vfs/isofs/cd9660/cd9660_util.c
131
if (c + ('a' - 'A') != d) {
sys/vfs/isofs/cd9660/cd9660_util.c
132
if (d >= 'a' && d <= 'z')
sys/vfs/isofs/cd9660/cd9660_util.c
133
return d - ('a' - 'A') - c;
sys/vfs/isofs/cd9660/cd9660_util.c
135
return d - c;
sys/vfs/isofs/cd9660/cd9660_util.c
138
return d - c;
sys/vfs/isofs/cd9660/cd9660_util.c
168
u_short c, d = '\0';
sys/vfs/isofs/cd9660/cd9660_util.c
181
outp -= (d == '.');
sys/vfs/isofs/cd9660/cd9660_util.c
184
d = c;
sys/vfs/nfs/nfs_socket.c
939
int d;
sys/vfs/nfs/nfs_socket.c
944
d = n - NFS_SRTT(rep);
sys/vfs/nfs/nfs_socket.c
951
if (d < 0)
sys/vfs/nfs/nfs_socket.c
952
d = -d;
sys/vfs/nfs/nfs_socket.c
953
d <<= NFSRSB;
sys/vfs/nfs/nfs_socket.c
954
if (d < NFS_SDRTT(rep))
sys/vfs/nfs/nfs_socket.c
955
n = ((NFS_SDRTT(rep) * 15) + d) >> 4;
sys/vfs/nfs/nfs_socket.c
957
n = ((NFS_SDRTT(rep) * 3) + d) >> 2;
sys/vfs/ufs/fs.h
466
#define dtog(fs, d) ((d) / (fs)->fs_fpg)
sys/vfs/ufs/fs.h
467
#define dtogd(fs, d) ((d) % (fs)->fs_fpg)
test/debug/bufqueues.c
238
double d;
test/debug/bufqueues.c
240
d = strtod(arg, NULL);
test/debug/bufqueues.c
241
if (d < 0.001)
test/debug/bufqueues.c
242
d = 0.001;
test/debug/bufqueues.c
243
ts->tv_sec = (int)d;
test/debug/bufqueues.c
244
ts->tv_nsec = (int)(modf(d, &d) * 1000000000.0);
test/nvmm/demo/smallkern/smallkern.h
58
#define memset(d, v, l) __builtin_memset(d, v, l)
test/nvmm/demo/smallkern/smallkern.h
59
#define memcpy(d, v, l) __builtin_memcpy(d, v, l)
test/stress/stress2/testcases/openat/doat.c
44
dev_t d;
test/stress/stress2/testcases/openat/doat.c
453
tests[8].tests[0].params[3].d = 15;
test/stress/stress2/testcases/openat/doat.c
458
tests[8].tests[1].params[3].d = 15;
test/stress/stress2/testcases/openat/doat.c
463
tests[8].tests[2].params[3].d = 2570;
test/sysperf/memcpy.c
12
extern void docopy1(const void *s, void *d, size_t bytes);
test/sysperf/memcpy.c
13
extern void docopy2(const void *s, void *d, size_t bytes);
test/sysperf/memcpy.c
14
extern void docopy3(const void *s, void *d, size_t bytes);
test/sysperf/memcpy.c
15
extern void docopy4(const void *s, void *d, size_t bytes);
test/sysperf/memcpy.c
16
extern void docopy5(const void *s, void *d, size_t bytes);
test/sysperf/memcpy.c
17
extern void docopy6(const void *s, void *d, size_t bytes);
test/sysperf/memcpy.c
18
extern void docopy7(const void *s, void *d, size_t bytes);
test/sysperf/memcpy.c
79
test_using(const char *ctl, char *buf, int bytes, void (*copyf)(const void *s1, void *d, size_t bytes))
test/sysperf/memcpy.c
9
void test_using(const char *ctl, char *buf, int bytes, void (*copyf)(const void *s1, void *d, size_t bytes));
test/sysperf/memzero.c
11
extern void dozero1(void *d, size_t bytes);
test/sysperf/memzero.c
12
extern void dozero2(void *d, size_t bytes);
test/sysperf/memzero.c
13
extern void dozero3(void *d, size_t bytes);
test/sysperf/memzero.c
14
extern void dozero4(void *d, size_t bytes);
test/sysperf/memzero.c
15
extern void dozero5(void *d, size_t bytes);
test/sysperf/memzero.c
16
extern void dozero6(void *d, size_t bytes);
test/sysperf/memzero.c
17
extern void dozero7(void *d, size_t bytes);
test/sysperf/memzero.c
78
test_using(const char *ctl, char *buf, int bytes, void (*zerof)(void *d, size_t bytes))
test/sysperf/memzero.c
9
void test_using(const char *ctl, char *buf, int bytes, void (*zerof)(void *d, size_t bytes));
test/testcases/threads/umtx_errno/umtx_errno.c
15
DIR *d = opendir("/");
test/testcases/threads/umtx_errno/umtx_errno.c
18
if (d == NULL) {
test/testcases/threads/umtx_errno/umtx_errno.c
26
r = readdir_r(d, &en, &enp);
test/testcases/threads/umtx_errno/umtx_errno.c
35
closedir(d);
tools/regression/include/tgmath/tgmath.c
167
double d;
tools/regression/include/tgmath/tgmath.c
193
RUN_TEST(FNC(d), double) && \
tools/regression/include/tgmath/tgmath.c
211
RUN_TEST(FNC(d), RET) && \
tools/regression/include/tgmath/tgmath.c
229
RUN_TEST(FNC(d, ARG2), double) && \
tools/regression/include/tgmath/tgmath.c
254
RUN_TEST(FNC(d, 1.), double) && \
tools/regression/include/tgmath/tgmath.c
255
RUN_TEST(FNC(d, 1.f), double) && \
tools/regression/include/tgmath/tgmath.c
256
RUN_TEST(FNC(d, 1l), double) && \
tools/regression/include/tgmath/tgmath.c
257
RUN_TEST(FNC(d, (_Bool)0), double) && \
tools/regression/include/tgmath/tgmath.c
288
RUN_TEST(FNC(d, 1., ARG3), double) && \
tools/regression/include/tgmath/tgmath.c
289
RUN_TEST(FNC(d, 1.f, ARG3), double) && \
tools/regression/include/tgmath/tgmath.c
290
RUN_TEST(FNC(d, 1l, ARG3), double) && \
tools/regression/include/tgmath/tgmath.c
291
RUN_TEST(FNC(d, (_Bool)0, ARG3), double) && \
tools/regression/include/tgmath/tgmath.c
311
RUN_TEST(FNC(ld, d, f), long double) && \
tools/regression/include/tgmath/tgmath.c
313
RUN_TEST(FNC(1, d, ld), long double) && \
tools/regression/include/tgmath/tgmath.c
316
RUN_TEST(FNC(f, d, 1.f), double) && \
tools/regression/include/tgmath/tgmath.c
328
RUN_TEST(FNC(d), double complex) && \
tools/regression/include/tgmath/tgmath.c
363
RUN_TEST(FNC(ldc, d), long double complex) && \
tools/regression/include/tgmath/tgmath.c
379
RUN_TEST(FNC(dc, d), double complex) && \
tools/regression/include/tgmath/tgmath.c
385
RUN_TEST(FNC(fc, d), double complex) && \
tools/regression/include/tgmath/tgmath.c
570
PASS_REAL_FIXED_ARG_REAL_RET(nexttoward, d) &&
tools/regression/lib/libm/test-csqrt.c
49
_csqrtf(long double complex d)
tools/regression/lib/libm/test-csqrt.c
52
return (csqrtf((float complex)d));
tools/regression/lib/libm/test-csqrt.c
56
_csqrt(long double complex d)
tools/regression/lib/libm/test-csqrt.c
59
return (csqrt((double complex)d));
tools/regression/lib/libm/test-fenv.c
476
volatile double d;
tools/regression/lib/libm/test-fenv.c
486
d = 0.0;
tools/regression/lib/libm/test-fenv.c
487
d = 0.0 / d;
tools/regression/lib/libm/test-fenv.c
490
d = 0.0;
tools/regression/lib/libm/test-fenv.c
491
d = 1.0 / d;
tools/regression/lib/libm/test-fenv.c
494
d = DBL_MAX;
tools/regression/lib/libm/test-fenv.c
495
d *= 2.0;
tools/regression/lib/libm/test-fenv.c
498
d = DBL_MIN;
tools/regression/lib/libm/test-fenv.c
499
d /= DBL_MAX;
tools/regression/lib/libm/test-fenv.c
502
d = DBL_MIN;
tools/regression/lib/libm/test-fenv.c
503
d += 1.0;
tools/regression/lib/libm/test-fenv.c
511
d = 1.0;
tools/regression/lib/libm/test-fenv.c
512
d += 1.0;
tools/regression/lib/libm/test-fenv.c
522
volatile double d;
tools/regression/lib/libm/test-fenv.c
528
d = 1.0;
tools/regression/lib/libm/test-fenv.c
529
d -= 1.0;
tools/regression/lib/libm/test-fenv.c
530
if (copysign(1.0, d) < 0.0)
tools/regression/lib/libm/test-fenv.c
533
d = 1.0;
tools/regression/lib/libm/test-fenv.c
534
if (d + (DBL_EPSILON * 3.0 / 4.0) == 1.0)
tools/regression/lib/libm/test-fenv.c
536
if (d + (DBL_EPSILON * 1.0 / 4.0) > 1.0)
tools/regression/lib/libm/test-ilogb.c
40
double d;
tools/regression/lib/libm/test-ilogb.c
51
d = strtod(buf, &end);
tools/regression/lib/libm/test-ilogb.c
53
i = ilogb(d);
tools/regression/usr.sbin/installer/libaura/dict1/dict1.c
11
d = aura_dict_new(-1, AURA_DICT_HASH);
tools/regression/usr.sbin/installer/libaura/dict1/dict1.c
12
assert (d == NULL);
tools/regression/usr.sbin/installer/libaura/dict1/dict1.c
15
d = aura_dict_new(1, -1);
tools/regression/usr.sbin/installer/libaura/dict1/dict1.c
16
assert(d == NULL);
tools/regression/usr.sbin/installer/libaura/dict1/dict1.c
8
struct aura_dict *d;
tools/regression/usr.sbin/installer/libaura/dict2/dict2.c
100
struct aura_dict *d;
tools/regression/usr.sbin/installer/libaura/dict2/dict2.c
103
d = test_store(i);
tools/regression/usr.sbin/installer/libaura/dict2/dict2.c
105
if ((test_fetch(d, i)) == -1) {
tools/regression/usr.sbin/installer/libaura/dict2/dict2.c
58
struct aura_dict *d;
tools/regression/usr.sbin/installer/libaura/dict2/dict2.c
60
d = aura_dict_new(ELEMS, method);
tools/regression/usr.sbin/installer/libaura/dict2/dict2.c
63
aura_dict_store(d, keys[i], strlen(keys[i]),
tools/regression/usr.sbin/installer/libaura/dict2/dict2.c
68
return d;
tools/regression/usr.sbin/installer/libaura/dict2/dict2.c
72
test_fetch(struct aura_dict *d, int method)
tools/regression/usr.sbin/installer/libaura/dict2/dict2.c
74
if (d == NULL)
tools/regression/usr.sbin/installer/libaura/dict2/dict2.c
77
aura_dict_rewind(d);
tools/regression/usr.sbin/installer/libaura/dict2/dict2.c
81
aura_dict_fetch(d, keys[i], strlen(keys[i]),
tools/regression/usr.sbin/installer/libaura/dict2/dict2.c
92
aura_dict_free(d);
tools/regression/usr.sbin/installer/libaura/dict3/dict3.c
17
struct aura_dict *d;
tools/regression/usr.sbin/installer/libaura/dict3/dict3.c
23
d = aura_dict_new(2, method);
tools/regression/usr.sbin/installer/libaura/dict3/dict3.c
28
aura_dict_store(d, key, strlen(key), first, strlen("first") + 1);
tools/regression/usr.sbin/installer/libaura/dict3/dict3.c
29
aura_dict_store(d, key, strlen(key), second, strlen("second") + 1);
tools/regression/usr.sbin/installer/libaura/dict3/dict3.c
31
return d;
tools/regression/usr.sbin/installer/libaura/dict3/dict3.c
37
struct aura_dict *d;
tools/regression/usr.sbin/installer/libaura/dict3/dict3.c
43
d = dict_create(i);
tools/regression/usr.sbin/installer/libaura/dict3/dict3.c
45
aura_dict_fetch(d, "key", strlen("key"), (void **)&v, &len);
tools/tools/netrate/accept_connect/kq_connect_client/kq_connect_client.c
163
uint8_t d[18];
tools/tools/netrate/accept_connect/kq_connect_client/kq_connect_client.c
177
write(s, d, sizeof(d));
tools/tools/netrate/kq_sendrecv/kq_sendcli/kq_sendcli.c
530
int s, n, ports_sz, d;
tools/tools/netrate/kq_sendrecv/kq_sendcli/kq_sendcli.c
585
for (d = ndaddr; d < ndaddr + info_hdr.ndport; ++d) {
tools/tools/netrate/kq_sendrecv/kq_sendcli/kq_sendcli.c
586
struct sockaddr_in *da = &daddr[d];
tools/tools/netrate/kq_sendrecv/kq_sendcli/kq_sendcli.c
589
da->sin_port = ports[d - ndaddr];
usr.bin/banner/banner.c
114
int d, scnhgt;
usr.bin/banner/banner.c
126
d = dropit(c);
usr.bin/banner/banner.c
127
if ((!d && scnhgt > HEIGHT) || (scnhgt <= DROP && d))
usr.bin/banner/banner.c
131
strp = scnline(scnkey[(int)c][scnhgt-1-d], strp, cc);
usr.bin/calendar/basics.h
49
date_set(struct date *date, int y, int m, int d)
usr.bin/calendar/basics.h
53
date->day = d;
usr.bin/calendar/gregorian.c
151
struct date d = { date->year, 3, 1 };
usr.bin/calendar/gregorian.c
152
if (rd < fixed_from_gregorian(&d))
usr.bin/calendar/gregorian.c
159
d.month = 1;
usr.bin/calendar/gregorian.c
160
pdays = rd - fixed_from_gregorian(&d);
usr.bin/calendar/gregorian.c
163
d.month = date->month;
usr.bin/calendar/gregorian.c
164
date->day = rd - fixed_from_gregorian(&d) + 1;
usr.bin/calendar/julian.c
104
struct date d = { date->year, 3, 1 };
usr.bin/calendar/julian.c
105
if (rd < fixed_from_julian(&d))
usr.bin/calendar/julian.c
112
d.month = 1;
usr.bin/calendar/julian.c
113
pdays = rd - fixed_from_julian(&d);
usr.bin/calendar/julian.c
116
d.month = date->month;
usr.bin/calendar/julian.c
117
date->day = rd - fixed_from_julian(&d) + 1;
usr.bin/calendar/parsedata.c
199
int d = (int)strtol(p2, NULL, 10);
usr.bin/calendar/parsedata.c
200
if (m > 12 && d > 12) {
usr.bin/calendar/parsedata.c
206
swap(&m, &d);
usr.bin/calendar/parsedata.c
209
di->dayofmonth = d;
usr.bin/colcrt/colcrt.c
200
plus(wchar_t c, wchar_t d)
usr.bin/colcrt/colcrt.c
203
return ((c == '|' && d == '-') || d == '_');
usr.bin/crunch/crunchgen/crunchgen.c
965
char *n, *s, *d;
usr.bin/crunch/crunchgen/crunchgen.c
976
for (d = s = n; *s != '\0'; s++) {
usr.bin/crunch/crunchgen/crunchgen.c
978
*d++ = '_';
usr.bin/crunch/crunchgen/crunchgen.c
980
*d++ = *s;
usr.bin/crunch/crunchgen/crunchgen.c
982
*d = '\0';
usr.bin/diff/diffreg.c
1013
c > context_vec_ptr->d + (2 * diff_context) + 1) {
usr.bin/diff/diffreg.c
1027
context_vec_ptr->d = d;
usr.bin/diff/diffreg.c
1038
diff_output("%c", a > b ? 'a' : c > d ? 'd' : 'c');
usr.bin/diff/diffreg.c
1040
range(c, d, ",");
usr.bin/diff/diffreg.c
1044
diff_output("%c", a > b ? 'a' : c > d ? 'd' : 'c');
usr.bin/diff/diffreg.c
1050
diff_output("a%d %d\n", b, d - c + 1);
usr.bin/diff/diffreg.c
1053
if (!(c > d))
usr.bin/diff/diffreg.c
1055
diff_output("a%d %d\n", b, d - c + 1);
usr.bin/diff/diffreg.c
1061
if (a <= b && c <= d && diff_format == D_NORMAL)
usr.bin/diff/diffreg.c
1064
i = fetch(ixnew, c, d, f2, diff_format == D_NORMAL ? '>' : '\0', 0, *pflags);
usr.bin/diff/diffreg.c
1080
if ((diff_format == D_EDIT || diff_format == D_REVERSE) && c <= d)
usr.bin/diff/diffreg.c
1295
int a, b, c, d;
usr.bin/diff/diffreg.c
1301
b = d = 0; /* gcc */
usr.bin/diff/diffreg.c
1305
upd = MINIMUM(len[1], context_vec_ptr->d + diff_context);
usr.bin/diff/diffreg.c
1334
d = cvp->d;
usr.bin/diff/diffreg.c
1336
if (a <= b && c <= d)
usr.bin/diff/diffreg.c
1360
if (cvp->c <= cvp->d) {
usr.bin/diff/diffreg.c
1370
d = cvp->d;
usr.bin/diff/diffreg.c
1372
if (a <= b && c <= d)
usr.bin/diff/diffreg.c
1378
fetch(ixnew, lowc, d, f2, ' ', 0, flags);
usr.bin/diff/diffreg.c
1381
fetch(ixnew, c, d, f2,
usr.bin/diff/diffreg.c
1384
lowc = d + 1;
usr.bin/diff/diffreg.c
1387
fetch(ixnew, d + 1, upd, f2, ' ', 0, flags);
usr.bin/diff/diffreg.c
1398
int a, b, c, d;
usr.bin/diff/diffreg.c
1404
b = d = 0; /* gcc */
usr.bin/diff/diffreg.c
1408
upd = MINIMUM(len[1], context_vec_ptr->d + diff_context);
usr.bin/diff/diffreg.c
1430
d = cvp->d;
usr.bin/diff/diffreg.c
1437
if (a <= b && c <= d)
usr.bin/diff/diffreg.c
1446
fetch(ixnew, c, d, f2, '+', 0, flags);
usr.bin/diff/diffreg.c
1454
fetch(ixnew, c, d, f2, '+', 0, flags);
usr.bin/diff/diffreg.c
1458
lowc = d + 1;
usr.bin/diff/diffreg.c
1460
fetch(ixnew, d + 1, upd, f2, ' ', 0, flags);
usr.bin/diff/diffreg.c
175
int d; /* end line in new file */
usr.bin/diff/diffreg.c
700
int i, j, c, d;
usr.bin/diff/diffreg.c
720
d = getc(f2);
usr.bin/diff/diffreg.c
726
if (c == EOF && d == '\n') {
usr.bin/diff/diffreg.c
729
} else if (c == '\n' && d == EOF) {
usr.bin/diff/diffreg.c
737
isspace(d)) {
usr.bin/diff/diffreg.c
744
if (d == '\n')
usr.bin/diff/diffreg.c
747
} while (isspace(d = getc(f2)));
usr.bin/diff/diffreg.c
753
while (isspace(d) && d != '\n') {
usr.bin/diff/diffreg.c
754
d = getc(f2);
usr.bin/diff/diffreg.c
758
if (chrtran[c] != chrtran[d]) {
usr.bin/diff/diffreg.c
762
if (d != '\n' && c != EOF)
usr.bin/diff/diffreg.c
773
if ((c = getc(f1)) != (d = getc(f2))) {
usr.bin/diff/diffreg.c
777
if (d != '\n' && c != EOF)
usr.bin/diff/diffreg.c
955
change(char *file1, FILE *f1, char *file2, FILE *f2, int a, int b, int c, int d,
usr.bin/diff/diffreg.c
962
if (diff_format != D_IFDEF && a > b && c > d)
usr.bin/diff/diffreg.c
979
if (a > b || c <= d) { /* Changes and inserts. */
usr.bin/diff/diffreg.c
980
for (i = c; i <= d; i++) {
usr.bin/env/envopts.c
101
const char *d;
usr.bin/env/envopts.c
115
while ((d = strsep(&path, ":")) != NULL) {
usr.bin/env/envopts.c
116
if (*d == '\0')
usr.bin/env/envopts.c
117
d = ".";
usr.bin/env/envopts.c
118
if (snprintf(candidate, sizeof(candidate), "%s/%s", d,
usr.bin/find/getdate.y
943
time_t d;
usr.bin/find/getdate.y
948
d = get_date(buff);
usr.bin/find/getdate.y
949
if (d == -1)
usr.bin/find/getdate.y
952
(void)printf("%s", ctime(&d));
usr.bin/fstat/fstat.c
123
#define ALLOC_OFILES(d) \
usr.bin/fstat/fstat.c
124
if ((d) > maxfiles) { \
usr.bin/fstat/fstat.c
126
ofiles = malloc((d) * sizeof(struct fdnode)); \
usr.bin/fstat/fstat.c
130
maxfiles = (d); \
usr.bin/fstat/fstat.c
549
DEVS *d;
usr.bin/fstat/fstat.c
553
for (d = devs; d != NULL; d = d->next)
usr.bin/fstat/fstat.c
554
if (d->fsid == fst.fsid) {
usr.bin/fstat/fstat.c
556
if (d->ino == (ino_t)fst.fileid) {
usr.bin/fstat/fstat.c
557
filename = d->name;
usr.bin/gzip/gzip.c
229
#define getopt_long(a,b,c,d,e) getopt(a,b,c)
usr.bin/indent/indent.c
1188
int d = nitems(recognized);
usr.bin/indent/indent.c
1189
while (--d >= 0)
usr.bin/indent/indent.c
1190
if (strncmp(s_lab + 1, recognized[d].string, recognized[d].size) == 0)
usr.bin/indent/indent.c
1192
if (d < 0) {
usr.bin/m4/extern.h
81
#define macro_getdef(p) ((p)->d)
usr.bin/m4/look.c
110
return p->d;
usr.bin/m4/look.c
116
setup_definition(struct macro_definition *d, const char *defn, const char *name)
usr.bin/m4/look.c
122
d->type = macro_builtin_type(p);
usr.bin/m4/look.c
123
d->defn = xstrdup(defn + sizeof(BUILTIN_MARKER) - 1);
usr.bin/m4/look.c
126
d->defn = __DECONST(char *, null);
usr.bin/m4/look.c
128
d->defn = xstrdup(defn);
usr.bin/m4/look.c
129
d->type = MACRTYPE;
usr.bin/m4/look.c
132
d->type |= RECDEF;
usr.bin/m4/look.c
149
n->d = NULL;
usr.bin/m4/look.c
158
if (n->d != NULL) {
usr.bin/m4/look.c
159
if (n->d->defn != null)
usr.bin/m4/look.c
160
free(n->d->defn);
usr.bin/m4/look.c
162
n->d = xalloc(sizeof(struct macro_definition), NULL);
usr.bin/m4/look.c
163
n->d->next = NULL;
usr.bin/m4/look.c
165
setup_definition(n->d, defn, name);
usr.bin/m4/look.c
172
struct macro_definition *d;
usr.bin/m4/look.c
175
d = xalloc(sizeof(struct macro_definition), NULL);
usr.bin/m4/look.c
176
d->next = n->d;
usr.bin/m4/look.c
177
n->d = d;
usr.bin/m4/look.c
178
setup_definition(n->d, defn, name);
usr.bin/m4/look.c
188
for (r = n->d; r != NULL; r = r2) {
usr.bin/m4/look.c
194
n->d = NULL;
usr.bin/m4/look.c
204
struct macro_definition *r = n->d;
usr.bin/m4/look.c
206
n->d = r->next;
usr.bin/m4/look.c
222
if (n->d != NULL)
usr.bin/m4/look.c
223
f(n->name, n->d);
usr.bin/m4/look.c
241
n->d = xalloc(sizeof(struct macro_definition), NULL);
usr.bin/m4/look.c
242
n->d->defn = name2;
usr.bin/m4/look.c
243
n->d->type = type;
usr.bin/m4/look.c
244
n->d->next = NULL;
usr.bin/m4/manual_tokenizer.c
1827
int d;
usr.bin/m4/manual_tokenizer.c
1837
d = *next - '0';
usr.bin/m4/manual_tokenizer.c
1839
d = *next - 'a' + 10;
usr.bin/m4/manual_tokenizer.c
1842
d = *next - 'A' + 10;
usr.bin/m4/manual_tokenizer.c
1844
if (d >= base) {
usr.bin/m4/manual_tokenizer.c
1849
l = base * l + d;
usr.bin/m4/mdef.h
143
struct macro_definition *d;
usr.bin/m4/misc.c
120
pbnumbase(int n, int base, int d)
usr.bin/m4/misc.c
141
while (printed++ < d)
usr.bin/mail/lex.c
609
int u, n, mdot, d, s;
usr.bin/mail/lex.c
623
s = d = 0;
usr.bin/mail/lex.c
630
d++;
usr.bin/mail/lex.c
652
if (d > 0)
usr.bin/mail/lex.c
653
printf(" %d deleted", d);
usr.bin/ministat/ministat.c
242
double spool, s, d, e, t;
usr.bin/ministat/ministat.c
255
d = Avg(ds) - Avg(rs);
usr.bin/ministat/ministat.c
263
if (fabs(d) > e) {
usr.bin/ministat/ministat.c
265
printf(" %g +/- %g\n", d, e);
usr.bin/ministat/ministat.c
266
printf(" %g%% +/- %g%%\n", d * 100 / Avg(rs), re * 100 / Avg(rs));
usr.bin/ministat/ministat.c
469
double d;
usr.bin/ministat/ministat.c
491
d = strtod(t, &p);
usr.bin/ministat/ministat.c
495
AddPoint(s, d);
usr.bin/mt/mt.c
126
static const char *denstostring(int d);
usr.bin/mt/mt.c
127
static int denstobp(int d, int bpi);
usr.bin/mt/mt.c
491
denstostring(int d)
usr.bin/mt/mt.c
497
if (d == 0)
usr.bin/mt/mt.c
499
if (d == 0x7f)
usr.bin/mt/mt.c
502
if (sd->dens == d)
usr.bin/mt/mt.c
505
sprintf(buf, "0x%02x", d);
usr.bin/mt/mt.c
507
sprintf(buf, "0x%02x:%s", d, sd->name);
usr.bin/mt/mt.c
516
denstobp(int d, int bpi)
usr.bin/mt/mt.c
521
if (sd->dens == d)
usr.bin/ncal/ncal.c
1011
sndaysr(struct date *d)
usr.bin/ncal/ncal.c
1015
if (nswitch < ndaysj(d))
usr.bin/ncal/ncal.c
1016
return (ndaysg(d));
usr.bin/ncal/ncal.c
1018
return (ndaysj(d));
usr.bin/ncal/ncal.c
1020
return ndaysg(d);
usr.bin/ncal/ncal.c
1028
sndaysb(struct date *d)
usr.bin/ncal/ncal.c
1031
if (nswitchb < ndaysj(d))
usr.bin/ncal/ncal.c
1032
return (ndaysg(d));
usr.bin/ncal/ncal.c
1034
return (ndaysj(d));
usr.bin/ncal/ncal.c
1039
sdater(int nd, struct date *d)
usr.bin/ncal/ncal.c
1043
return (gdate(nd, d));
usr.bin/ncal/ncal.c
1045
return (jdate(nd, d));
usr.bin/ncal/ncal.c
1050
sdateb(int nd, struct date *d)
usr.bin/ncal/ncal.c
1054
return (gdate(nd, d));
usr.bin/ncal/ncal.c
1056
return (jdate(nd, d));
usr.bin/ncal/ncal.c
182
static date *sdater(int ndays, struct date * d);
usr.bin/ncal/ncal.c
183
static date *sdateb(int ndays, struct date * d);
usr.bin/ncal/ncal.c
184
static int sndaysr(struct date * d);
usr.bin/ncal/ncal.c
185
static int sndaysb(struct date * d);
usr.bin/ncal/ncal.c
486
dt.d = strtol(flag_highlightdate + 8, NULL, 10);
usr.bin/ncal/ncal.c
495
dt.d = tm1->tm_mday;
usr.bin/ncal/ncal.c
535
#define FSTRARG(p) DFLT(p), (p)->cc, (p)->nm, (p)->dt.y, (p)->dt.m, (p)->dt.d
usr.bin/ncal/ncal.c
572
tm.tm_mday = dt.d;
usr.bin/ncal/ncal.c
832
dt.d = j - jan1 + 1;
usr.bin/ncal/ncal.c
838
ds + dt.d * dw, dw, &l);
usr.bin/ncal/ncal.c
841
ds + dt.d * dw, dw);
usr.bin/ncal/ncal.c
900
dt.d = 1;
usr.bin/ncal/ncal.c
905
dt.d = 1;
usr.bin/ncal/ncal.c
909
dt.d = 1;
usr.bin/ncal/ncal.c
916
dt.d = 1;
usr.bin/ncal/ncal.c
937
dt.d = j - jan1 + 1;
usr.bin/ncal/ncal.c
942
ds + dt.d * dw, dw, &l);
usr.bin/ncal/ncal.c
945
ds + dt.d * dw, dw);
usr.bin/ncal/ncal.c
994
dt.d = 1;
usr.bin/netstat/route.c
65
#define kget(p, d) (kread((u_long)(p), (char *)&(d), sizeof (d)))
usr.bin/sed/compile.c
422
compile_delimited(char *p, char *d, int is_tr)
usr.bin/sed/compile.c
438
if ((d = compile_ccl(&p, d)) == NULL)
usr.bin/sed/compile.c
442
*d++ = *p++;
usr.bin/sed/compile.c
449
*d++ = '\n';
usr.bin/sed/compile.c
452
*d++ = '\r';
usr.bin/sed/compile.c
455
*d++ = '\t';
usr.bin/sed/compile.c
461
if (dohex(&p[2], d, &hexlen)) {
usr.bin/sed/compile.c
462
++d;
usr.bin/sed/compile.c
470
*d++ = *p++;
usr.bin/sed/compile.c
472
*d = '\0';
usr.bin/sed/compile.c
475
*d++ = *p++;
usr.bin/sed/compile.c
485
int c, d, hexlen;
usr.bin/sed/compile.c
494
if (*s == '[' && ((d = *(s+1)) == '.' || d == ':' || d == '=')) {
usr.bin/sed/compile.c
496
for (c = *s; (*t = *s) != ']' || c != d; s++, t++)
usr.bin/sort/coll.c
1075
huge_minus(double d, int err1)
usr.bin/sort/coll.c
1079
if (d == -HUGE_VAL || d == -HUGE_VALF || d == -HUGE_VALL)
usr.bin/sort/coll.c
1089
huge_plus(double d, int err1)
usr.bin/sort/coll.c
1093
if (d == HUGE_VAL || d == HUGE_VALF || d == HUGE_VALL)
usr.bin/sort/coll.c
1103
is_nan(double d)
usr.bin/sort/coll.c
1105
return ((d == NAN) || (isnan(d)));
usr.bin/sort/coll.c
1150
kv1->hint->v.gh.d = d1;
usr.bin/sort/coll.c
1167
kv2->hint->v.gh.d = d2;
usr.bin/sort/coll.c
1185
cmp_nans(kv1->hint->v.gh.d, kv2->hint->v.gh.d) :
usr.bin/sort/coll.c
1190
d1 = kv1->hint->v.gh.d;
usr.bin/sort/coll.c
1191
d2 = kv2->hint->v.gh.d;
usr.bin/sort/coll.h
52
double d;
usr.bin/systat/ifstat.c
119
#define DOPUTRATE(c, r, d) do { \
usr.bin/systat/ifstat.c
122
convert(d##_##c, curscale), \
usr.bin/systat/ifstat.c
123
get_string(d##_##c, curscale), \
usr.bin/systat/ifstat.c
127
#define DOPUTTOTAL(c, r, d) do { \
usr.bin/systat/ifstat.c
130
convert(d##_##c, SC_AUTOBYTE), \
usr.bin/systat/ifstat.c
131
get_string(d##_##c, SC_AUTOBYTE)); \
usr.bin/systat/vmmeter.c
127
struct kinfo_cputime d;
usr.bin/systat/vmmeter.c
136
CPUD(d, i, user);
usr.bin/systat/vmmeter.c
137
CPUD(d, i, idle);
usr.bin/systat/vmmeter.c
138
CPUD(d, i, intr);
usr.bin/systat/vmmeter.c
139
CPUD(d, i, nice);
usr.bin/systat/vmmeter.c
140
CPUD(d, i, sys);
usr.bin/systat/vmmeter.c
146
CPUV(d, user) + CPUV(d, nice));
usr.bin/systat/vmmeter.c
147
DRAW_ROW(n, CPU_START + i, 6, "%*.1f", CPUV(d, sys));
usr.bin/systat/vmmeter.c
148
DRAW_ROW(n, CPU_START + i, 6, "%*.1f", CPUV(d, intr));
usr.bin/systat/vmmeter.c
149
DRAW_ROW(n, CPU_START + i, 6, "%*.1f", CPUV(d, idle));
usr.bin/systat/vmstat.c
739
int64_t d;
usr.bin/systat/vmstat.c
768
for (d = 1; n / d >= 1000; d *= u) {
usr.bin/systat/vmstat.c
793
if (n / d >= 100)
usr.bin/systat/vmstat.c
795
else if (n / d >= 10)
usr.bin/systat/vmstat.c
801
n / d, n / (d / 1000) % 1000, type);
usr.bin/systat/vmstat.c
804
n / d, n / (d / 100) % 100, type);
usr.bin/systat/vmstat.c
807
n / d, n / (d / 10) % 10, type);
usr.bin/systat/vmstat.c
810
n / d, type);
usr.bin/systat/vmstat.c
826
putfloat(double f, int l, int lc, int w, int d, int nz)
usr.bin/systat/vmstat.c
836
snprintf(b, sizeof(b), "%*.*f", w, d, f);
usr.bin/systat/vmstat.c
848
putlongdouble(long double f, int l, int lc, int w, int d, int nz)
usr.bin/systat/vmstat.c
858
sprintf(b, "%*.*Lf", w, d, f);
usr.bin/systat/vmstat.c
870
putlongdoublez(long double f, int l, int lc, int w, int d, int nz)
usr.bin/systat/vmstat.c
879
putlongdouble(f, l, lc, w, d, nz);
usr.bin/telnet/ring.c
67
#define ring_subtract(d,a,b) (((a)-(b) >= 0)? \
usr.bin/telnet/ring.c
68
(a)-(b): (((a)-(b))+(d)->size))
usr.bin/telnet/ring.c
70
#define ring_increment(d,a,c) (((a)+(c) < (d)->top)? \
usr.bin/telnet/ring.c
71
(a)+(c) : (((a)+(c))-(d)->size))
usr.bin/telnet/ring.c
73
#define ring_decrement(d,a,c) (((a)-(c) >= (d)->bottom)? \
usr.bin/telnet/ring.c
74
(a)-(c) : (((a)-(c))-(d)->size))
usr.bin/telnet/ring.c
87
#define ring_empty(d) (((d)->consume == (d)->supply) && \
usr.bin/telnet/ring.c
88
((d)->consumetime >= (d)->supplytime))
usr.bin/telnet/ring.c
89
#define ring_full(d) (((d)->supply == (d)->consume) && \
usr.bin/telnet/ring.c
90
((d)->supplytime > (d)->consumetime))
usr.bin/top/m_dragonfly.c
468
fixup_pctcpu(struct kinfo_proc *fixit, uint64_t d)
usr.bin/top/m_dragonfly.c
474
if (prev_nproc == 0 || d == 0)
usr.bin/top/m_dragonfly.c
504
if (ticks > d * 1000)
usr.bin/top/m_dragonfly.c
505
ticks = d * 1000;
usr.bin/top/m_dragonfly.c
506
LP(fixit, pctcpu) = (ticks * (uint64_t)fscale) / d;
usr.bin/top/m_dragonfly.c
514
uint64_t t, d = 0;
usr.bin/top/m_dragonfly.c
552
d = t - prev_pbase_time;
usr.bin/top/m_dragonfly.c
638
fixup_pctcpu(pp, d);
usr.bin/u4bhidctl/usbhid.c
112
hid_end_parse(d);
usr.bin/u4bhidctl/usbhid.c
135
for (d = hid_start_parse(r,
usr.bin/u4bhidctl/usbhid.c
137
hid_get_item(d, &h); ) {
usr.bin/u4bhidctl/usbhid.c
173
hid_end_parse(d);
usr.bin/u4bhidctl/usbhid.c
240
struct hid_data *d;
usr.bin/u4bhidctl/usbhid.c
244
for (d = hid_start_parse(r, ~0, -1); hid_get_item(d, &h); ) {
usr.bin/u4bhidctl/usbhid.c
266
hid_end_parse(d);
usr.bin/u4bhidctl/usbhid.c
69
struct hid_data *d;
usr.bin/u4bhidctl/usbhid.c
81
for (d = hid_start_parse(r,
usr.bin/u4bhidctl/usbhid.c
83
hid_get_item(d, &h); ) {
usr.bin/uname/uname.c
290
double d;
usr.bin/uname/uname.c
302
d = strtod(osrel, NULL);
usr.bin/uname/uname.c
304
if ((int)(d * 10) & 1)
usr.bin/uname/uname.c
305
d = d + 0.1; /* force to nearest even release */
usr.bin/uname/uname.c
316
asprintf(&pkgabi, "dragonfly:%3.1f:%s", d, mach);
usr.bin/usbhidaction/usbhidaction.c
285
struct hid_data *d;
usr.bin/usbhidaction/usbhidaction.c
370
for (d = hid_start_parse(repd, 1 << hid_input, reportid);
usr.bin/usbhidaction/usbhidaction.c
371
hid_get_item(d, &h); ) {
usr.bin/usbhidaction/usbhidaction.c
444
hid_end_parse(d);
usr.bin/vmstat/vmstat.c
587
double d;
usr.bin/vmstat/vmstat.c
609
d = (double)value;
usr.bin/vmstat/vmstat.c
618
d = d / 1024;
usr.bin/vmstat/vmstat.c
621
d = d / 1024;
usr.bin/vmstat/vmstat.c
624
d = d / (1024 * 1024);
usr.bin/vmstat/vmstat.c
627
d = d / (1024 * 1024);
usr.bin/vmstat/vmstat.c
630
d = d / (1024.0 * 1024.0 * 1024.0);
usr.bin/vmstat/vmstat.c
638
d = d / 1024;
usr.bin/vmstat/vmstat.c
641
d = d / 1024;
usr.bin/vmstat/vmstat.c
644
d = d / 1024;
usr.bin/vmstat/vmstat.c
647
d = d / (1024 * 1024);
usr.bin/vmstat/vmstat.c
650
d = d / (1024 * 1024);
usr.bin/vmstat/vmstat.c
653
d = d / (1024 * 1024);
usr.bin/vmstat/vmstat.c
656
d = d / (1024.0 * 1024.0 * 1024.0);
usr.bin/vmstat/vmstat.c
659
d = d / (1024.0 * 1024.0 * 1024.0);
usr.bin/vmstat/vmstat.c
662
d = d / (1024.0 * 1024.0 * 1024.0);
usr.bin/vmstat/vmstat.c
665
d = d / (1024.0 * 1024.0 * 1024.0 * 1024.0);
usr.bin/vmstat/vmstat.c
673
snprintf(buf[bi], sizeof(buf[bi]), fmt, d);
usr.bin/which/which.c
123
const char *d;
usr.bin/which/which.c
129
while ((d = strsep(&path, ":")) != NULL) {
usr.bin/which/which.c
130
if (*d == '\0')
usr.bin/which/which.c
131
d = ".";
usr.bin/which/which.c
132
if (snprintf(candidate, sizeof(candidate), "%s/%s", d,
usr.bin/window/wwopen.c
102
int d[2];
usr.bin/window/wwopen.c
103
if (socketpair(AF_LOCAL, SOCK_STREAM, PF_UNSPEC, d) < 0) {
usr.bin/window/wwopen.c
107
(void) fcntl(d[0], F_SETFD, 1);
usr.bin/window/wwopen.c
108
(void) fcntl(d[1], F_SETFD, 1);
usr.bin/window/wwopen.c
109
w->ww_pty = d[0];
usr.bin/window/wwopen.c
110
w->ww_socket = d[1];
usr.bin/window/wwtty.c
114
wwgetttysize(int d, int *r, int *c)
usr.bin/window/wwtty.c
118
if (ioctl(d, TIOCGWINSZ, (char *)&winsize) < 0) {
usr.bin/window/wwtty.c
130
wwsetttysize(int d, int r, int c)
usr.bin/window/wwtty.c
137
if (ioctl(d, TIOCSWINSZ, (char *)&winsize) < 0) {
usr.bin/window/wwtty.c
145
wwstoptty(int d)
usr.bin/window/wwtty.c
149
if (tcflow(d, TCOOFF) < 0)
usr.bin/window/wwtty.c
151
if (ioctl(d, TIOCSTOP, (char *)0) < 0)
usr.bin/window/wwtty.c
161
wwstarttty(int d)
usr.bin/window/wwtty.c
165
if (tcflow(d, TCOON) < 0)
usr.bin/window/wwtty.c
167
if (ioctl(d, TIOCSTART, (char *)0) < 0)
usr.bin/window/wwtty.c
44
wwgettty(int d, struct ww_tty *t)
usr.bin/window/wwtty.c
47
if (ioctl(d, TIOCGETP, (char *)&t->ww_sgttyb) < 0)
usr.bin/window/wwtty.c
49
if (ioctl(d, TIOCGETC, (char *)&t->ww_tchars) < 0)
usr.bin/window/wwtty.c
51
if (ioctl(d, TIOCGLTC, (char *)&t->ww_ltchars) < 0)
usr.bin/window/wwtty.c
53
if (ioctl(d, TIOCLGET, (char *)&t->ww_lmode) < 0)
usr.bin/window/wwtty.c
55
if (ioctl(d, TIOCGETD, (char *)&t->ww_ldisc) < 0)
usr.bin/window/wwtty.c
58
if (tcgetattr(d, &t->ww_termios) < 0)
usr.bin/window/wwtty.c
73
wwsettty(int d, struct ww_tty *t)
usr.bin/window/wwtty.c
79
while (ioctl(d, TIOCOUTQ, &i) >= 0 && i > 0)
usr.bin/window/wwtty.c
81
if (ioctl(d, TIOCSETN, (char *)&t->ww_sgttyb) < 0)
usr.bin/window/wwtty.c
83
if (ioctl(d, TIOCSETC, (char *)&t->ww_tchars) < 0)
usr.bin/window/wwtty.c
85
if (ioctl(d, TIOCSLTC, (char *)&t->ww_ltchars) < 0)
usr.bin/window/wwtty.c
87
if (ioctl(d, TIOCLSET, (char *)&t->ww_lmode) < 0)
usr.bin/window/wwtty.c
89
if (ioctl(d, TIOCGETD, (char *)&i) < 0)
usr.bin/window/wwtty.c
92
ioctl(d, TIOCSETD, (char *)&t->ww_ldisc) < 0)
usr.bin/window/wwtty.c
97
(void) tcdrain(d);
usr.bin/window/wwtty.c
99
if (tcsetattr(d, TCSADRAIN, &t->ww_termios) < 0)
usr.bin/xinstall/xinstall.c
520
char *to_name_copy, *cp, *d, *s;
usr.bin/xinstall/xinstall.c
555
for (s = src, d = dst; *s == *d; s++, d++)
usr.bin/xinstall/xinstall.c
558
s--, d--;
usr.bin/xinstall/xinstall.c
561
for (++d, lnk[0] = '\0'; *d; d++)
usr.bin/xinstall/xinstall.c
562
if (*d == '/')
usr.bin/xstr/xstr.c
474
int d = strlen(of) - strlen(str);
usr.bin/xstr/xstr.c
476
if (d < 0 || strcmp(&of[d], str) != 0)
usr.bin/xstr/xstr.c
478
return (d);
usr.sbin/autofs/defined.c
203
struct defined_value *d;
usr.sbin/autofs/defined.c
212
d = calloc(1, sizeof(*d));
usr.sbin/autofs/defined.c
213
if (d == NULL)
usr.sbin/autofs/defined.c
215
d->d_name = checked_strdup(name);
usr.sbin/autofs/defined.c
216
d->d_value = checked_strdup(value);
usr.sbin/autofs/defined.c
218
TAILQ_INSERT_TAIL(&defined_values, d, d_next);
usr.sbin/autofs/defined.c
55
struct defined_value *d;
usr.sbin/autofs/defined.c
57
TAILQ_FOREACH(d, &defined_values, d_next) {
usr.sbin/autofs/defined.c
58
if (strcmp(d->d_name, name) == 0)
usr.sbin/autofs/defined.c
59
return (d->d_value);
usr.sbin/config/mkmakefile.c
519
char c, d;
usr.sbin/config/mkmakefile.c
524
d = isupper(*dp) ? tolower(*dp) : *dp;
usr.sbin/config/mkmakefile.c
525
if (c != d)
usr.sbin/efibootmgr/efibootmgr.c
534
uint16_t d;
usr.sbin/efibootmgr/efibootmgr.c
537
memcpy(&d, b, sizeof(uint16_t));
usr.sbin/efibootmgr/efibootmgr.c
539
if (c < d)
usr.sbin/efibootmgr/efibootmgr.c
541
if (c == d)
usr.sbin/efibootmgr/efibootmgr.c
818
char *d;
usr.sbin/efibootmgr/efibootmgr.c
824
d = get_descr(data);
usr.sbin/efibootmgr/efibootmgr.c
826
((load_attrs & LOAD_OPTION_ACTIVE) ? '*': ' '), d);
usr.sbin/efibootmgr/efibootmgr.c
827
free(d);
usr.sbin/fwcontrol/fwdv.c
117
if (ioctl(d, FW_SSTBUF, &bufreq) < 0) {
usr.sbin/fwcontrol/fwdv.c
124
if( ioctl(d, FW_SRSTREAM, &isoreq) < 0)
usr.sbin/fwcontrol/fwdv.c
131
while ((len = read(d, buf + tlen, PSIZE
usr.sbin/fwcontrol/fwdv.c
147
tlen = len = read(d, buf, RBUFSIZE);
usr.sbin/fwcontrol/fwdv.c
247
dvsend(int d, char *filename, char ich, int count)
usr.sbin/fwcontrol/fwdv.c
275
if (ioctl(d, FW_SSTBUF, &bufreq) < 0) {
usr.sbin/fwcontrol/fwdv.c
282
if( ioctl(d, FW_STSTREAM, &isoreq) < 0)
usr.sbin/fwcontrol/fwdv.c
348
cycle_acc = frame_cycle[systype].d * cycle;
usr.sbin/fwcontrol/fwdv.c
358
f_cycle = (cycle_acc / frame_cycle[systype].d) & 0xf;
usr.sbin/fwcontrol/fwdv.c
360
f_frac = (cycle_acc % frame_cycle[systype].d
usr.sbin/fwcontrol/fwdv.c
361
* CYCLE_FRAC) / frame_cycle[systype].d;
usr.sbin/fwcontrol/fwdv.c
368
cycle_acc %= frame_cycle[systype].d * 0x10;
usr.sbin/fwcontrol/fwdv.c
375
if (pad_acc >= pad_rate[systype].d) {
usr.sbin/fwcontrol/fwdv.c
376
pad_acc -= pad_rate[systype].d;
usr.sbin/fwcontrol/fwdv.c
396
len = writev(d, wbuf, vec);
usr.sbin/fwcontrol/fwdv.c
58
int n,d;
usr.sbin/fwcontrol/fwdv.c
92
dvrecv(int d, char *filename, char ich, int count)
usr.sbin/installer/dfuibe_installer/flow.c
987
struct disk *d;
usr.sbin/installer/dfuibe_installer/flow.c
991
for (d = storage_disk_first(a->s); d != NULL; d = disk_next(d))
usr.sbin/installer/dfuibe_installer/fn_configure.c
456
DIR *d;
usr.sbin/installer/dfuibe_installer/fn_configure.c
474
d = opendir(dir);
usr.sbin/installer/dfuibe_installer/fn_configure.c
475
while ((de = readdir(d)) != NULL) {
usr.sbin/installer/dfuibe_installer/fn_configure.c
482
closedir(d);
usr.sbin/installer/dfuibe_installer/fn_disk.c
108
d = disk_find(a->s, dfui_response_get_action_id(r));
usr.sbin/installer/dfuibe_installer/fn_disk.c
109
if (d == NULL) {
usr.sbin/installer/dfuibe_installer/fn_disk.c
114
storage_set_selected_disk(a->s, d);
usr.sbin/installer/dfuibe_installer/fn_disk.c
515
struct disk *d;
usr.sbin/installer/dfuibe_installer/fn_disk.c
566
for (d = storage_disk_first(a->s); d != NULL; d = disk_next(d)) {
usr.sbin/installer/dfuibe_installer/fn_disk.c
569
disk_get_device_name(d));
usr.sbin/installer/dfuibe_installer/fn_disk.c
79
struct disk *d;
usr.sbin/installer/dfuibe_installer/fn_disk.c
93
for (d = storage_disk_first(a->s); d != NULL; d = disk_next(d)) {
usr.sbin/installer/dfuibe_installer/fn_disk.c
94
dfui_form_action_add(f, disk_get_device_name(d),
usr.sbin/installer/dfuibe_installer/fn_disk.c
95
dfui_info_new(disk_get_desc(d), "", ""));
usr.sbin/installer/dfuibe_installer/fn_subpart_hammer.c
490
struct aura_dict *d;
usr.sbin/installer/dfuibe_installer/fn_subpart_hammer.c
496
d = aura_dict_new(1, AURA_DICT_LIST);
usr.sbin/installer/dfuibe_installer/fn_subpart_hammer.c
511
if (aura_dict_exists(d, mountpoint, strlen(mountpoint) + 1)) {
usr.sbin/installer/dfuibe_installer/fn_subpart_hammer.c
574
aura_dict_store(d, mountpoint, strlen(mountpoint) + 1, "", 1);
usr.sbin/installer/dfuibe_installer/fn_subpart_hammer.c
582
if (aura_dict_size(d) > 16) {
usr.sbin/installer/dfuibe_installer/fn_subpart_hammer.c
589
aura_dict_free(d);
usr.sbin/installer/dfuibe_installer/fn_subpart_ufs.c
412
struct aura_dict *d;
usr.sbin/installer/dfuibe_installer/fn_subpart_ufs.c
418
d = aura_dict_new(1, AURA_DICT_LIST);
usr.sbin/installer/dfuibe_installer/fn_subpart_ufs.c
443
if (aura_dict_exists(d, mountpoint, strlen(mountpoint) + 1)) {
usr.sbin/installer/dfuibe_installer/fn_subpart_ufs.c
506
aura_dict_store(d, mountpoint, strlen(mountpoint) + 1, "", 1);
usr.sbin/installer/dfuibe_installer/fn_subpart_ufs.c
514
if (aura_dict_size(d) > 16) {
usr.sbin/installer/dfuibe_installer/fn_subpart_ufs.c
521
aura_dict_free(d);
usr.sbin/installer/libaura/dict.c
103
d->b[i] = NULL;
usr.sbin/installer/libaura/dict.c
105
d->cursor = NULL;
usr.sbin/installer/libaura/dict.c
106
d->cur_bucket = 0;
usr.sbin/installer/libaura/dict.c
108
return(d);
usr.sbin/installer/libaura/dict.c
126
aura_dict_free(struct aura_dict *d)
usr.sbin/installer/libaura/dict.c
131
while (bucket_no < d->num_buckets) {
usr.sbin/installer/libaura/dict.c
132
b = d->b[bucket_no];
usr.sbin/installer/libaura/dict.c
134
d->b[bucket_no] = b->next;
usr.sbin/installer/libaura/dict.c
136
b = d->b[bucket_no];
usr.sbin/installer/libaura/dict.c
140
AURA_FREE(d, aura_dict);
usr.sbin/installer/libaura/dict.c
192
aura_dict_locate_hash(struct aura_dict *d, const void *key, size_t key_size,
usr.sbin/installer/libaura/dict.c
195
*b_index = hashpjw(key, key_size, d->num_buckets);
usr.sbin/installer/libaura/dict.c
196
for (*b = d->b[*b_index]; *b != NULL; *b = (*b)->next) {
usr.sbin/installer/libaura/dict.c
207
aura_dict_locate_list(struct aura_dict *d, const void *key, size_t key_size,
usr.sbin/installer/libaura/dict.c
210
for (*b = d->b[0]; *b != NULL; *b = (*b)->next) {
usr.sbin/installer/libaura/dict.c
221
aura_dict_fetch_hash(struct aura_dict *d, const void *key, size_t key_size,
usr.sbin/installer/libaura/dict.c
227
aura_dict_locate_hash(d, key, key_size, &i, &b);
usr.sbin/installer/libaura/dict.c
237
aura_dict_store_hash(struct aura_dict *d, const void *key, size_t key_size,
usr.sbin/installer/libaura/dict.c
243
aura_dict_locate_hash(d, key, key_size, &i, &b);
usr.sbin/installer/libaura/dict.c
247
b->next = d->b[i];
usr.sbin/installer/libaura/dict.c
248
d->b[i] = b;
usr.sbin/installer/libaura/dict.c
261
aura_dict_fetch_list(struct aura_dict *d, const void *key, size_t key_size,
usr.sbin/installer/libaura/dict.c
266
for (b = d->b[0]; b != NULL; b = b->next) {
usr.sbin/installer/libaura/dict.c
277
aura_dict_store_list(struct aura_dict *d, const void *key, size_t key_size,
usr.sbin/installer/libaura/dict.c
282
aura_dict_locate_list(d, key, key_size, &b);
usr.sbin/installer/libaura/dict.c
286
b->next = d->b[0];
usr.sbin/installer/libaura/dict.c
287
d->b[0] = b;
usr.sbin/installer/libaura/dict.c
316
aura_dict_store_list_sorted(struct aura_dict *d, const void *key, size_t key_size,
usr.sbin/installer/libaura/dict.c
323
aura_dict_locate_list(d, key, key_size, &b);
usr.sbin/installer/libaura/dict.c
326
if (d->b[0] == NULL) {
usr.sbin/installer/libaura/dict.c
332
d->b[0] = new_b;
usr.sbin/installer/libaura/dict.c
334
for (b = d->b[0]; b != NULL; b = b->next) {
usr.sbin/installer/libaura/dict.c
340
d->b[0] = new_b;
usr.sbin/installer/libaura/dict.c
369
aura_dict_fetch(struct aura_dict *d, const void *key, size_t key_size,
usr.sbin/installer/libaura/dict.c
372
d->fetch(d, key, key_size, data, data_size);
usr.sbin/installer/libaura/dict.c
376
aura_dict_exists(struct aura_dict *d, const void *key, size_t key_size)
usr.sbin/installer/libaura/dict.c
381
d->fetch(d, key, key_size, &data, &data_size);
usr.sbin/installer/libaura/dict.c
389
aura_dict_store(struct aura_dict *d, const void *key, size_t key_size,
usr.sbin/installer/libaura/dict.c
392
d->store(d, key, key_size, data, data_size);
usr.sbin/installer/libaura/dict.c
400
aura_dict_advance(struct aura_dict *d)
usr.sbin/installer/libaura/dict.c
402
while (d->cursor == NULL) {
usr.sbin/installer/libaura/dict.c
403
if (d->cur_bucket == d->num_buckets - 1) {
usr.sbin/installer/libaura/dict.c
407
d->cur_bucket++;
usr.sbin/installer/libaura/dict.c
408
d->cursor = d->b[d->cur_bucket];
usr.sbin/installer/libaura/dict.c
414
aura_dict_rewind(struct aura_dict *d)
usr.sbin/installer/libaura/dict.c
416
d->cur_bucket = 0;
usr.sbin/installer/libaura/dict.c
417
d->cursor = d->b[d->cur_bucket];
usr.sbin/installer/libaura/dict.c
418
aura_dict_advance(d);
usr.sbin/installer/libaura/dict.c
422
aura_dict_eof(struct aura_dict *d)
usr.sbin/installer/libaura/dict.c
424
return(d->cursor == NULL);
usr.sbin/installer/libaura/dict.c
428
aura_dict_get_current_key(struct aura_dict *d, void **key, size_t *key_size)
usr.sbin/installer/libaura/dict.c
430
if (d->cursor == NULL) {
usr.sbin/installer/libaura/dict.c
433
*key = d->cursor->key;
usr.sbin/installer/libaura/dict.c
434
*key_size = d->cursor->key_size;
usr.sbin/installer/libaura/dict.c
439
aura_dict_next(struct aura_dict *d)
usr.sbin/installer/libaura/dict.c
441
if (d->cursor != NULL)
usr.sbin/installer/libaura/dict.c
442
d->cursor = d->cursor->next;
usr.sbin/installer/libaura/dict.c
443
aura_dict_advance(d);
usr.sbin/installer/libaura/dict.c
447
aura_dict_size(struct aura_dict *d)
usr.sbin/installer/libaura/dict.c
453
while (bucket_no < d->num_buckets) {
usr.sbin/installer/libaura/dict.c
454
b = d->b[bucket_no];
usr.sbin/installer/libaura/dict.c
48
void aura_dict_locate_hash(struct aura_dict *d, const void *key, size_t key_size,
usr.sbin/installer/libaura/dict.c
50
void aura_dict_locate_list(struct aura_dict *d, const void *key, size_t key_size,
usr.sbin/installer/libaura/dict.c
52
void aura_dict_advance(struct aura_dict *d);
usr.sbin/installer/libaura/dict.c
54
static void aura_dict_fetch_hash(struct aura_dict *d, const void *key, size_t key_size,
usr.sbin/installer/libaura/dict.c
56
static void aura_dict_store_hash(struct aura_dict *d, const void *key, size_t key_size,
usr.sbin/installer/libaura/dict.c
58
static void aura_dict_fetch_list(struct aura_dict *d, const void *key, size_t key_size,
usr.sbin/installer/libaura/dict.c
60
static void aura_dict_store_list(struct aura_dict *d, const void *key, size_t key_size,
usr.sbin/installer/libaura/dict.c
62
static void aura_dict_store_list_sorted(struct aura_dict *d, const void *key, size_t key_size,
usr.sbin/installer/libaura/dict.c
73
struct aura_dict *d;
usr.sbin/installer/libaura/dict.c
76
AURA_MALLOC(d, aura_dict);
usr.sbin/installer/libaura/dict.c
80
d->fetch = aura_dict_fetch_hash;
usr.sbin/installer/libaura/dict.c
81
d->store = aura_dict_store_hash;
usr.sbin/installer/libaura/dict.c
84
d->fetch = aura_dict_fetch_list;
usr.sbin/installer/libaura/dict.c
85
d->store = aura_dict_store_list;
usr.sbin/installer/libaura/dict.c
88
d->fetch = aura_dict_fetch_list;
usr.sbin/installer/libaura/dict.c
89
d->store = aura_dict_store_list_sorted;
usr.sbin/installer/libaura/dict.c
92
AURA_FREE(d, aura_dict);
usr.sbin/installer/libaura/dict.c
96
d->num_buckets = num_buckets;
usr.sbin/installer/libaura/dict.c
97
d->b = malloc(sizeof(struct bucket *) * num_buckets);
usr.sbin/installer/libaura/dict.c
98
if (d->b == NULL) {
usr.sbin/installer/libaura/dict.c
99
AURA_FREE(d, aura_dict);
usr.sbin/installer/libaura/test.c
48
struct aura_dict *d;
usr.sbin/installer/libaura/test.c
53
d = aura_dict_new(1, AURA_DICT_SORTED_LIST);
usr.sbin/installer/libaura/test.c
66
aura_dict_rewind(d);
usr.sbin/installer/libaura/test.c
67
while (!aura_dict_eof(d)) {
usr.sbin/installer/libaura/test.c
68
aura_dict_get_current_key(d, &rk, &rk_len),
usr.sbin/installer/libaura/test.c
69
aura_dict_fetch(d, rk, rk_len, &rv, &rv_len);
usr.sbin/installer/libaura/test.c
71
aura_dict_next(d);
usr.sbin/installer/libaura/test.c
78
aura_dict_fetch(d, k, strlen(k) + 1, &rv, &rv_len);
usr.sbin/installer/libaura/test.c
84
aura_dict_store(d, k, strlen(k) + 1, v, strlen(v) + 1);
usr.sbin/installer/libaura/test.c
88
aura_dict_free(d);
usr.sbin/installer/libinstaller/confed.c
112
aura_dict_store(cvs->d,
usr.sbin/installer/libinstaller/confed.c
140
aura_dict_rewind(cvs->d);
usr.sbin/installer/libinstaller/confed.c
141
while (!aura_dict_eof(cvs->d)) {
usr.sbin/installer/libinstaller/confed.c
142
aura_dict_get_current_key(cvs->d, &rk, &rk_len),
usr.sbin/installer/libinstaller/confed.c
143
aura_dict_fetch(cvs->d, rk, rk_len, &rv, &rv_len);
usr.sbin/installer/libinstaller/confed.c
146
aura_dict_next(cvs->d);
usr.sbin/installer/libinstaller/confed.c
150
aura_dict_rewind(cvs->d);
usr.sbin/installer/libinstaller/confed.c
151
while (!aura_dict_eof(cvs->d)) {
usr.sbin/installer/libinstaller/confed.c
152
aura_dict_get_current_key(cvs->d, &rk, &rk_len),
usr.sbin/installer/libinstaller/confed.c
153
aura_dict_fetch(cvs->d, rk, rk_len, &rv, &rv_len);
usr.sbin/installer/libinstaller/confed.c
155
aura_dict_next(cvs->d);
usr.sbin/installer/libinstaller/confed.c
69
cvs->d = aura_dict_new(1, AURA_DICT_SORTED_LIST);
usr.sbin/installer/libinstaller/confed.c
83
aura_dict_free(cvs->d);
usr.sbin/installer/libinstaller/confed.c
98
aura_dict_fetch(cvs->d, name, strlen(name) + 1, &rv, &rv_len);
usr.sbin/installer/libinstaller/confed.h
50
struct aura_dict *d;
usr.sbin/installer/libinstaller/diskutil.c
1004
asprintf(&dev, "/dev/%ss%d", d->device, s->number);
usr.sbin/installer/libinstaller/diskutil.c
1025
const struct disk *d)
usr.sbin/installer/libinstaller/diskutil.c
1030
for (s = d->slice_head; s != NULL; s = s->next)
usr.sbin/installer/libinstaller/diskutil.c
1031
swap += measure_activated_swap_from_slice(a, d, s);
usr.sbin/installer/libinstaller/diskutil.c
126
storage_set_selected_disk(struct storage *s, struct disk *d)
usr.sbin/installer/libinstaller/diskutil.c
128
s->selected_disk = d;
usr.sbin/installer/libinstaller/diskutil.c
155
struct disk *d;
usr.sbin/installer/libinstaller/diskutil.c
157
AURA_MALLOC(d, disk);
usr.sbin/installer/libinstaller/diskutil.c
159
d->device = aura_strdup(dev_name);
usr.sbin/installer/libinstaller/diskutil.c
160
d->desc = NULL;
usr.sbin/installer/libinstaller/diskutil.c
161
d->serno = NULL;
usr.sbin/installer/libinstaller/diskutil.c
162
d->we_formatted = 0;
usr.sbin/installer/libinstaller/diskutil.c
163
d->capacity = 0;
usr.sbin/installer/libinstaller/diskutil.c
165
d->cylinders = -1; /* -1 indicates "we don't know" */
usr.sbin/installer/libinstaller/diskutil.c
166
d->heads = -1;
usr.sbin/installer/libinstaller/diskutil.c
167
d->sectors = -1;
usr.sbin/installer/libinstaller/diskutil.c
169
d->slice_head = NULL;
usr.sbin/installer/libinstaller/diskutil.c
170
d->slice_tail = NULL;
usr.sbin/installer/libinstaller/diskutil.c
172
d->next = NULL;
usr.sbin/installer/libinstaller/diskutil.c
174
s->disk_head = d;
usr.sbin/installer/libinstaller/diskutil.c
176
s->disk_tail->next = d;
usr.sbin/installer/libinstaller/diskutil.c
178
d->prev = s->disk_tail;
usr.sbin/installer/libinstaller/diskutil.c
179
s->disk_tail = d;
usr.sbin/installer/libinstaller/diskutil.c
181
return(d);
usr.sbin/installer/libinstaller/diskutil.c
193
disk_get_desc(const struct disk *d)
usr.sbin/installer/libinstaller/diskutil.c
195
return(d->desc);
usr.sbin/installer/libinstaller/diskutil.c
199
disk_get_capacity(const struct disk *d)
usr.sbin/installer/libinstaller/diskutil.c
201
return(d->capacity);
usr.sbin/installer/libinstaller/diskutil.c
206
disk_set_desc(struct disk *d, const char *desc)
usr.sbin/installer/libinstaller/diskutil.c
210
if (!disk_description_is_better(d->desc, desc))
usr.sbin/installer/libinstaller/diskutil.c
212
if (d->desc != NULL)
usr.sbin/installer/libinstaller/diskutil.c
213
free(d->desc);
usr.sbin/installer/libinstaller/diskutil.c
214
d->desc = aura_strdup(desc);
usr.sbin/installer/libinstaller/diskutil.c
220
c = d->desc;
usr.sbin/installer/libinstaller/diskutil.c
224
d->capacity = 0;
usr.sbin/installer/libinstaller/diskutil.c
226
d->capacity = strtoul(c + 1, NULL, 0);
usr.sbin/installer/libinstaller/diskutil.c
235
disk_get_device_name(const struct disk *d)
usr.sbin/installer/libinstaller/diskutil.c
239
snprintf(tmp_dev_name, 256, "%s", d->device);
usr.sbin/installer/libinstaller/diskutil.c
244
disk_get_serno(const struct disk *d)
usr.sbin/installer/libinstaller/diskutil.c
246
return(d->serno);
usr.sbin/installer/libinstaller/diskutil.c
250
disk_set_serno(struct disk *d, const char *serno)
usr.sbin/installer/libinstaller/diskutil.c
252
d->serno = aura_strdup(serno);
usr.sbin/installer/libinstaller/diskutil.c
256
disk_get_number(const struct disk *d)
usr.sbin/installer/libinstaller/diskutil.c
258
return(d->number);
usr.sbin/installer/libinstaller/diskutil.c
262
disk_set_number(struct disk *d, const int number)
usr.sbin/installer/libinstaller/diskutil.c
264
d->number = number;
usr.sbin/installer/libinstaller/diskutil.c
278
struct disk *d = s->disk_head;
usr.sbin/installer/libinstaller/diskutil.c
280
while (d != NULL) {
usr.sbin/installer/libinstaller/diskutil.c
281
if (strncmp(device, d->device, strlen(d->device)) == 0 &&
usr.sbin/installer/libinstaller/diskutil.c
282
strlen(device) == strlen(d->device))
usr.sbin/installer/libinstaller/diskutil.c
283
return(d);
usr.sbin/installer/libinstaller/diskutil.c
284
d = d->next;
usr.sbin/installer/libinstaller/diskutil.c
291
disk_next(const struct disk *d)
usr.sbin/installer/libinstaller/diskutil.c
293
return(d->next);
usr.sbin/installer/libinstaller/diskutil.c
297
disk_slice_first(const struct disk *d)
usr.sbin/installer/libinstaller/diskutil.c
299
return(d->slice_head);
usr.sbin/installer/libinstaller/diskutil.c
303
disk_set_formatted(struct disk *d, int formatted)
usr.sbin/installer/libinstaller/diskutil.c
305
d->we_formatted = formatted;
usr.sbin/installer/libinstaller/diskutil.c
309
disk_get_formatted(const struct disk *d)
usr.sbin/installer/libinstaller/diskutil.c
311
return(d->we_formatted);
usr.sbin/installer/libinstaller/diskutil.c
315
disk_set_geometry(struct disk *d, int cyl, int hd, int sec)
usr.sbin/installer/libinstaller/diskutil.c
317
d->cylinders = cyl;
usr.sbin/installer/libinstaller/diskutil.c
318
d->heads = hd;
usr.sbin/installer/libinstaller/diskutil.c
319
d->sectors = sec;
usr.sbin/installer/libinstaller/diskutil.c
323
disk_get_geometry(const struct disk *d, int *cyl, int *hd, int *sec)
usr.sbin/installer/libinstaller/diskutil.c
325
*cyl = d->cylinders;
usr.sbin/installer/libinstaller/diskutil.c
326
*hd = d->heads;
usr.sbin/installer/libinstaller/diskutil.c
327
*sec = d->sectors;
usr.sbin/installer/libinstaller/diskutil.c
336
struct disk *d = s->disk_head, *next;
usr.sbin/installer/libinstaller/diskutil.c
338
while (d != NULL) {
usr.sbin/installer/libinstaller/diskutil.c
339
next = d->next;
usr.sbin/installer/libinstaller/diskutil.c
340
slices_free(d->slice_head);
usr.sbin/installer/libinstaller/diskutil.c
341
free(d->desc);
usr.sbin/installer/libinstaller/diskutil.c
342
free(d->device);
usr.sbin/installer/libinstaller/diskutil.c
343
AURA_FREE(d, disk);
usr.sbin/installer/libinstaller/diskutil.c
344
d = next;
usr.sbin/installer/libinstaller/diskutil.c
355
slice_new(struct disk *d, int number, int type, int flags,
usr.sbin/installer/libinstaller/diskutil.c
364
"to disk %s\n", number, start, size, type, d->device);
usr.sbin/installer/libinstaller/diskutil.c
368
s->parent = d;
usr.sbin/installer/libinstaller/diskutil.c
397
if (d->slice_head == NULL)
usr.sbin/installer/libinstaller/diskutil.c
398
d->slice_head = s;
usr.sbin/installer/libinstaller/diskutil.c
400
d->slice_tail->next = s;
usr.sbin/installer/libinstaller/diskutil.c
402
s->prev = d->slice_tail;
usr.sbin/installer/libinstaller/diskutil.c
403
d->slice_tail = s;
usr.sbin/installer/libinstaller/diskutil.c
413
slice_find(const struct disk *d, int number)
usr.sbin/installer/libinstaller/diskutil.c
415
struct slice *s = d->slice_head;
usr.sbin/installer/libinstaller/diskutil.c
994
const struct disk *d, const struct slice *s)
usr.sbin/installer/libinstaller/functions.c
205
char d;
usr.sbin/installer/libinstaller/functions.c
211
d = toupper(hex[i]);
usr.sbin/installer/libinstaller/functions.c
212
if (isspace(d))
usr.sbin/installer/libinstaller/functions.c
214
if (isdigit(d))
usr.sbin/installer/libinstaller/functions.c
215
a = a * 16 + (d - '0');
usr.sbin/installer/libinstaller/functions.c
216
else if (d >= 'A' && d <= 'F')
usr.sbin/installer/libinstaller/functions.c
217
a = a * 16 + (d + 10 - 'A');
usr.sbin/installer/libinstaller/survey.c
154
struct disk *d = NULL;
usr.sbin/installer/libinstaller/survey.c
305
d = disk_new(a->s, line);
usr.sbin/installer/libinstaller/survey.c
306
disk_set_number(d, number++);
usr.sbin/installer/libinstaller/survey.c
309
while (d != NULL && strcmp(line, "@END") != 0 && fgets_chomp(line, 255, f)) {
usr.sbin/installer/libinstaller/survey.c
310
disk_set_desc(d, line);
usr.sbin/installer/libinstaller/survey.c
315
disk_set_serno(d, line);
usr.sbin/installer/libinstaller/survey.c
326
while (d != NULL && strcmp(line, "@END") != 0 && fgets_chomp(line, 255, f)) {
usr.sbin/installer/libinstaller/survey.c
330
disk_set_geometry(d, cyl, hd, sec);
usr.sbin/installer/libinstaller/survey.c
340
slice_new(d, sliceno, type, flags, start, size);
usr.sbin/installer/libinstaller/survey.c
353
for (d = storage_disk_first(a->s); d != NULL; d = disk_next(d)) {
usr.sbin/installer/libinstaller/survey.c
354
if (disk_get_desc(d) == NULL)
usr.sbin/installer/libinstaller/survey.c
355
disk_set_desc(d, disk_get_device_name(d));
usr.sbin/lpr/common_source/common.c
103
struct dirent *d;
usr.sbin/lpr/common_source/common.c
132
while ((d = readdir(dirp)) != NULL) {
usr.sbin/lpr/common_source/common.c
133
if (d->d_name[0] != 'c' || d->d_name[1] != 'f')
usr.sbin/lpr/common_source/common.c
136
statres = stat(d->d_name, &stbuf);
usr.sbin/lpr/common_source/common.c
141
strlen(d->d_name) + 1;
usr.sbin/lpr/common_source/common.c
148
strcpy(q->job_cfname, d->d_name);
usr.sbin/lpr/common_source/rmjob.c
376
iscf(const struct dirent *d)
usr.sbin/lpr/common_source/rmjob.c
378
return(d->d_name[0] == 'c' && d->d_name[1] == 'f');
usr.sbin/lpr/lpc/cmds.c
443
doselect(const struct dirent *d)
usr.sbin/lpr/lpc/cmds.c
445
int c = d->d_name[0];
usr.sbin/lpr/lpc/cmds.c
448
d->d_name[1] == 'f')
usr.sbin/lpr/lpc/cmds.c
451
if (!strcmp(d->d_name, "core"))
usr.sbin/lpr/lpc/cmds.c
455
if (!strncmp(d->d_name, "errs.", 5))
usr.sbin/lpr/lpd/lpd.c
617
struct dirent *d;
usr.sbin/lpr/lpd/lpd.c
624
while ((d = readdir(dirp)) != NULL) {
usr.sbin/lpr/lpd/lpd.c
625
if (d->d_name[0] != 'c' || d->d_name[1] != 'f')
usr.sbin/lpr/lpd/printjob.c
1364
int d, scnhgt;
usr.sbin/lpr/lpd/printjob.c
1370
d = dropit(c = TRC(cc = *sp++));
usr.sbin/lpr/lpd/printjob.c
1371
if ((!d && scnhgt > HEIGHT) || (scnhgt <= DROP && d))
usr.sbin/lpr/lpd/printjob.c
1375
strp = scnline(scnkey[(int)c][scnhgt-1-d], strp, cc);
usr.sbin/lpr/lpq/lpq.c
160
struct dirent *d;
usr.sbin/lpr/lpq/lpq.c
167
while ((d = readdir(dirp)) != NULL) {
usr.sbin/lpr/lpq/lpq.c
168
if (d->d_name[0] != 'c' || d->d_name[1] != 'f')
usr.sbin/makefs/ffs.c
1139
makefs_daddr_t d;
usr.sbin/makefs/ffs.c
1215
d = fsbtodb(fs, ino_to_fsba(fs, ino));
usr.sbin/makefs/ffs.c
1216
ffs_rdfs(d, fs->fs_bsize, buf, fsopts);
usr.sbin/makefs/ffs.c
1234
ffs_wtfs(d, fs->fs_bsize, buf, fsopts);
usr.sbin/makefs/ffs/mkfs.c
664
uint32_t i, j, d, dlower, dupper;
usr.sbin/makefs/ffs/mkfs.c
753
for (d = 0, blkno = 0; d < dlower;) {
usr.sbin/makefs/ffs/mkfs.c
759
cg_blktot(&acg)[cbtocylno(&sblock, d)]++;
usr.sbin/makefs/ffs/mkfs.c
760
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
usr.sbin/makefs/ffs/mkfs.c
761
[cbtorpos(&sblock, d)]++;
usr.sbin/makefs/ffs/mkfs.c
763
d += sblock.fs_frag;
usr.sbin/makefs/ffs/mkfs.c
769
for (d = dupper + sblock.fs_frag - i; dupper < d; dupper++) {
usr.sbin/makefs/ffs/mkfs.c
774
for (d = dupper, blkno = dupper >> sblock.fs_fragshift;
usr.sbin/makefs/ffs/mkfs.c
775
d + sblock.fs_frag <= acg.cg_ndblk; ) {
usr.sbin/makefs/ffs/mkfs.c
781
cg_blktot(&acg)[cbtocylno(&sblock, d)]++;
usr.sbin/makefs/ffs/mkfs.c
782
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
usr.sbin/makefs/ffs/mkfs.c
783
[cbtorpos(&sblock, d)]++;
usr.sbin/makefs/ffs/mkfs.c
785
d += sblock.fs_frag;
usr.sbin/makefs/ffs/mkfs.c
788
if (d < acg.cg_ndblk) {
usr.sbin/makefs/ffs/mkfs.c
789
acg.cg_frsum[acg.cg_ndblk - d]++;
usr.sbin/makefs/ffs/mkfs.c
790
for (; d < acg.cg_ndblk; d++) {
usr.sbin/makefs/ffs/mkfs.c
791
setbit(cg_blksfree_swap(&acg, 0), d);
usr.sbin/makefs/hammer2/hammer2_lz4.c
194
# define LZ4_COPYSTEP(s,d) A64(d) = A64(s); d+=8; s+=8;
usr.sbin/makefs/hammer2/hammer2_lz4.c
195
# define LZ4_COPYPACKET(s,d) LZ4_COPYSTEP(s,d)
usr.sbin/makefs/hammer2/hammer2_lz4.c
196
# define LZ4_SECURECOPY(s,d,e) if (d<e) LZ4_WILDCOPY(s,d,e)
usr.sbin/makefs/hammer2/hammer2_lz4.c
203
# define LZ4_COPYSTEP(s,d) A32(d) = A32(s); d+=4; s+=4;
usr.sbin/makefs/hammer2/hammer2_lz4.c
204
# define LZ4_COPYPACKET(s,d) LZ4_COPYSTEP(s,d); LZ4_COPYSTEP(s,d);
usr.sbin/makefs/hammer2/hammer2_lz4.c
211
# define LZ4_READ_LITTLEENDIAN_16(d,s,p) { U16 v = A16(p);
usr.sbin/makefs/hammer2/hammer2_lz4.c
213
d = (s) - v; }
usr.sbin/makefs/hammer2/hammer2_lz4.c
219
# define LZ4_READ_LITTLEENDIAN_16(d,s,p) { d = (s) - A16(p); }
usr.sbin/makefs/hammer2/hammer2_lz4.c
227
#define LZ4_WILDCOPY(s,d,e) do { LZ4_COPYPACKET(s,d) } while (d<e);
usr.sbin/makefs/hammer2/hammer2_lz4.c
228
#define LZ4_BLINDCOPY(s,d,l) { BYTE* e=(d)+(l); LZ4_WILDCOPY(s,d,e); d=e; }
usr.sbin/makefs/makefs.h
238
#define TIMER_RESULTS(x,d) \
usr.sbin/makefs/makefs.h
244
(d), (long long)td.tv_sec, \
usr.sbin/mlxcontrol/interface.c
236
} d;
usr.sbin/mlxcontrol/interface.c
262
*vendor = &dcdb_cmd.d.inq.vendor[0];
usr.sbin/mlxcontrol/interface.c
263
*device = &dcdb_cmd.d.inq.product[0];
usr.sbin/mlxcontrol/interface.c
264
*revision = &dcdb_cmd.d.inq.revision[0];
usr.sbin/mtree/specspec.c
41
#define FF(a, b, c, d) \
usr.sbin/mtree/specspec.c
42
(((a)->flags & (c)) && ((b)->flags & (c)) && ((a)->d) != ((b)->d))
usr.sbin/mtree/specspec.c
43
#define FS(a, b, c, d) \
usr.sbin/mtree/specspec.c
44
(((a)->flags & (c)) && ((b)->flags & (c)) && strcmp((a)->d,(b)->d))
usr.sbin/mtree/specspec.c
45
#define FM(a, b, c, d) \
usr.sbin/mtree/specspec.c
46
(((a)->flags & (c)) && ((b)->flags & (c)) && memcmp(&(a)->d,&(b)->d, sizeof (a)->d))
usr.sbin/newsyslog/newsyslog.c
2569
char *s, *d;
usr.sbin/newsyslog/newsyslog.c
2574
d = mkdirpath;
usr.sbin/newsyslog/newsyslog.c
2577
*d++ = *s++;
usr.sbin/newsyslog/newsyslog.c
2580
*d = '\0';
usr.sbin/pfctl/parse.y
1743
hfsc_opts.linkshare.d = $5;
usr.sbin/pfctl/parse.y
1766
hfsc_opts.realtime.d = $5;
usr.sbin/pfctl/parse.y
1789
hfsc_opts.upperlimit.d = $5;
usr.sbin/pfctl/parse.y
1838
fairq_opts.linkshare.d = $4;
usr.sbin/pfctl/pfctl.c
123
#define INDENT(d, o) do { \
usr.sbin/pfctl/pfctl.c
126
for (i=0; i < d; i++) \
usr.sbin/pfctl/pfctl.c
1822
pfctl_set_debug(struct pfctl *pf, char *d)
usr.sbin/pfctl/pfctl.c
1829
if (!strcmp(d, "none"))
usr.sbin/pfctl/pfctl.c
1831
else if (!strcmp(d, "urgent"))
usr.sbin/pfctl/pfctl.c
1833
else if (!strcmp(d, "misc"))
usr.sbin/pfctl/pfctl.c
1835
else if (!strcmp(d, "loud"))
usr.sbin/pfctl/pfctl.c
1838
warnx("unknown debug level \"%s\"", d);
usr.sbin/pfctl/pfctl.c
1849
printf("set debug %s\n", d);
usr.sbin/pfctl/pfctl.h
101
double x, y, d, m;
usr.sbin/pfctl/pfctl_altq.c
1062
if (sc->d != 0)
usr.sbin/pfctl/pfctl_altq.c
1063
gsc_add_seg(gsc, 0.0, 0.0, (double)sc->d, (double)sc->m1);
usr.sbin/pfctl/pfctl_altq.c
1064
gsc_add_seg(gsc, (double)sc->d, 0.0, INFINITY, (double)sc->m2);
usr.sbin/pfctl/pfctl_altq.c
1105
if (last->x < sc->d && last->m > sc->m1) {
usr.sbin/pfctl/pfctl_altq.c
1106
y = last->y + (sc->d - last->x) * last->m;
usr.sbin/pfctl/pfctl_altq.c
1107
if (y > sc_x2y(sc, sc->d))
usr.sbin/pfctl/pfctl_altq.c
1149
new->d = 0;
usr.sbin/pfctl/pfctl_altq.c
1151
new->d = INFINITY;
usr.sbin/pfctl/pfctl_altq.c
1153
new->d = s->x - x;
usr.sbin/pfctl/pfctl_altq.c
1165
prev->d = INFINITY;
usr.sbin/pfctl/pfctl_altq.c
1171
prev->d = x - prev->x;
usr.sbin/pfctl/pfctl_altq.c
1172
new->y = prev->d * prev->m + prev->y;
usr.sbin/pfctl/pfctl_altq.c
1182
gsc_add_seg(struct gen_sc *gsc, double x, double y, double d, double m)
usr.sbin/pfctl/pfctl_altq.c
1187
if (d == INFINITY)
usr.sbin/pfctl/pfctl_altq.c
1190
x2 = x + d;
usr.sbin/pfctl/pfctl_altq.c
1203
s->y += m * d;
usr.sbin/pfctl/pfctl_altq.c
1215
if (x <= (double)sc->d)
usr.sbin/pfctl/pfctl_altq.c
1220
y = (double)sc->d * (double)sc->m1
usr.sbin/pfctl/pfctl_altq.c
1221
+ (x - (double)sc->d) * (double)sc->m2;
usr.sbin/pfctl/pfctl_altq.c
1328
opts->data.hfsc_opts.linkshare.d;
usr.sbin/pfctl/pfctl_altq.c
1338
opts->data.hfsc_opts.realtime.d;
usr.sbin/pfctl/pfctl_altq.c
1348
opts->data.hfsc_opts.upperlimit.d;
usr.sbin/pfctl/pfctl_altq.c
1365
opts->data.fairq_opts.linkshare.d;
usr.sbin/pfctl/pfctl_altq.c
1391
print_hfsc_sc(const char *scname, u_int m1, u_int d, u_int m2,
usr.sbin/pfctl/pfctl_altq.c
1396
if (d != 0) {
usr.sbin/pfctl/pfctl_altq.c
1402
printf(" %u", d);
usr.sbin/pfctl/pfctl_altq.c
1410
if (d != 0)
usr.sbin/pfctl/pfctl_altq.c
1415
print_fairq_sc(const char *scname, u_int m1, u_int d, u_int m2,
usr.sbin/pfctl/pfctl_altq.c
1420
if (d != 0) {
usr.sbin/pfctl/pfctl_altq.c
1426
printf(" %u", d);
usr.sbin/pfctl/pfctl_altq.c
1434
if (d != 0)
usr.sbin/pfctl/pfctl_altq.c
738
sc.d = altq->pq_u.hfsc_opts.rtsc_d;
usr.sbin/pfctl/pfctl_altq.c
749
sc.d = altq->pq_u.hfsc_opts.lssc_d;
usr.sbin/pfctl/pfctl_altq.c
759
sc.d = opts->rtsc_d;
usr.sbin/pfctl/pfctl_altq.c
764
sc.d = 0;
usr.sbin/pfctl/pfctl_altq.c
777
sc.d = opts->lssc_d;
usr.sbin/pfctl/pfctl_altq.c
782
sc.d = parent->pq_u.hfsc_opts.lssc_d;
usr.sbin/pfctl/pfctl_altq.c
867
sc.d = altq->pq_u.fairq_opts.lssc_d;
usr.sbin/pfctl/pfctl_altq.c
876
sc.d = parent->pq_u.fairq_opts.lssc_d;
usr.sbin/pfctl/pfctl_parser.h
139
u_int d; /* x-projection of m1; msec */
usr.sbin/pfctl/pfctl_parser.h
153
u_int d; /* x-projection of m1; msec */
usr.sbin/powerd/powerd.c
552
uint64_t d;
usr.sbin/powerd/powerd.c
554
d = (ncpu_time[cpu].cp_user + ncpu_time[cpu].cp_sys +
usr.sbin/powerd/powerd.c
558
pcpu_state[cpu].cpu_qavg = (double)d / (pollrate * 1000000.0);
usr.sbin/powerd/powerd.c
560
delta += d;
usr.sbin/ppp/bundle.c
451
bundle_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w, fd_set *e, int *n)
usr.sbin/ppp/bundle.c
453
struct bundle *bundle = descriptor2bundle(d);
usr.sbin/ppp/bundle.c
511
bundle_IsSet(struct fdescriptor *d, const fd_set *fdset)
usr.sbin/ppp/bundle.c
513
struct bundle *bundle = descriptor2bundle(d);
usr.sbin/ppp/bundle.c
532
bundle_DescriptorRead(struct fdescriptor *d __unused, struct bundle *bundle,
usr.sbin/ppp/bundle.c
644
bundle_DescriptorWrite(struct fdescriptor *d __unused, struct bundle *bundle,
usr.sbin/ppp/bundle.h
152
#define descriptor2bundle(d) \
usr.sbin/ppp/bundle.h
153
((d)->type == BUNDLE_DESCRIPTOR ? (struct bundle *)(d) : NULL)
usr.sbin/ppp/chap.c
396
chap_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w __unused,
usr.sbin/ppp/chap.c
399
struct chap *chap = descriptor2chap(d);
usr.sbin/ppp/chap.c
413
chap_IsSet(struct fdescriptor *d, const fd_set *fdset)
usr.sbin/ppp/chap.c
415
struct chap *chap = descriptor2chap(d);
usr.sbin/ppp/chap.c
421
chap_Read(struct fdescriptor *d, struct bundle *bundle __unused,
usr.sbin/ppp/chap.c
424
struct chap *chap = descriptor2chap(d);
usr.sbin/ppp/chap.c
478
chap_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused,
usr.sbin/ppp/chap.h
61
#define descriptor2chap(d) \
usr.sbin/ppp/chap.h
62
((d)->type == CHAP_DESCRIPTOR ? (struct chap *)(d) : NULL)
usr.sbin/ppp/chat.c
141
chat_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w, fd_set *e, int *n)
usr.sbin/ppp/chat.c
143
struct chat *c = descriptor2chat(d);
usr.sbin/ppp/chat.c
269
return chat_UpdateSet(d, r, w, e, n);
usr.sbin/ppp/chat.c
304
return chat_UpdateSet(d, r, w, e, n);
usr.sbin/ppp/chat.c
325
chat_IsSet(struct fdescriptor *d, const fd_set *fdset)
usr.sbin/ppp/chat.c
327
struct chat *c = descriptor2chat(d);
usr.sbin/ppp/chat.c
374
chat_Read(struct fdescriptor *d, struct bundle *bundle __unused,
usr.sbin/ppp/chat.c
377
struct chat *c = descriptor2chat(d);
usr.sbin/ppp/chat.c
489
chat_Write(struct fdescriptor *d, struct bundle *bundle __unused,
usr.sbin/ppp/chat.c
492
struct chat *c = descriptor2chat(d);
usr.sbin/ppp/chat.h
76
#define descriptor2chat(d) \
usr.sbin/ppp/chat.h
77
((d)->type == CHAT_DESCRIPTOR ? (struct chat *)(d) : NULL)
usr.sbin/ppp/datalink.c
250
datalink_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w, fd_set *e,
usr.sbin/ppp/datalink.c
253
struct datalink *dl = descriptor2datalink(d);
usr.sbin/ppp/datalink.c
294
return datalink_UpdateSet(d, r, w, e, n);
usr.sbin/ppp/datalink.c
339
return datalink_UpdateSet(d, r, w, e, n);
usr.sbin/ppp/datalink.c
347
return datalink_UpdateSet(d, r, w, e, n);
usr.sbin/ppp/datalink.c
368
return datalink_UpdateSet(d, r, w, e, n);
usr.sbin/ppp/datalink.c
374
return datalink_UpdateSet(d, r, w, e, n);
usr.sbin/ppp/datalink.c
378
return datalink_UpdateSet(d, r, w, e, n);
usr.sbin/ppp/datalink.c
395
return datalink_UpdateSet(d, r, w, e, n);
usr.sbin/ppp/datalink.c
420
datalink_IsSet(struct fdescriptor *d, const fd_set *fdset)
usr.sbin/ppp/datalink.c
422
struct datalink *dl = descriptor2datalink(d);
usr.sbin/ppp/datalink.c
447
datalink_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset)
usr.sbin/ppp/datalink.c
449
struct datalink *dl = descriptor2datalink(d);
usr.sbin/ppp/datalink.c
477
datalink_Write(struct fdescriptor *d, struct bundle *bundle,
usr.sbin/ppp/datalink.c
480
struct datalink *dl = descriptor2datalink(d);
usr.sbin/ppp/datalink.h
126
#define descriptor2datalink(d) \
usr.sbin/ppp/datalink.h
127
((d)->type == DATALINK_DESCRIPTOR ? (struct datalink *)(d) : NULL)
usr.sbin/ppp/descriptor.h
51
#define descriptor_UpdateSet(d, r, w, e, n) ((*(d)->UpdateSet)(d, r, w, e, n))
usr.sbin/ppp/descriptor.h
52
#define descriptor_IsSet(d, s) ((*(d)->IsSet)(d, s))
usr.sbin/ppp/descriptor.h
53
#define descriptor_Read(d, b, f) ((*(d)->Read)(d, b, f))
usr.sbin/ppp/descriptor.h
54
#define descriptor_Write(d, b, f) ((*(d)->Write)(d, b, f))
usr.sbin/ppp/ether.c
118
#define device2ether(d) \
usr.sbin/ppp/ether.c
119
((d)->type == ETHER_DEVICE ? (struct etherdevice *)d : NULL)
usr.sbin/ppp/ether.c
201
ether_device2iov(struct device *d, struct iovec *iov, int *niov,
usr.sbin/ppp/ether.c
204
struct etherdevice *dev = device2ether(d);
usr.sbin/ppp/ether.c
207
iov[*niov].iov_base = realloc(d, sz);
usr.sbin/ppp/ether.c
383
ether_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w, fd_set *e, int *n)
usr.sbin/ppp/ether.c
385
struct physical *p = descriptor2physical(d);
usr.sbin/ppp/ether.c
396
result += physical_doUpdateSet(d, r, w, e, n, 0);
usr.sbin/ppp/ether.c
402
ether_IsSet(struct fdescriptor *d, const fd_set *fdset)
usr.sbin/ppp/ether.c
404
struct physical *p = descriptor2physical(d);
usr.sbin/ppp/ether.c
409
result += physical_IsSet(d, fdset);
usr.sbin/ppp/ether.c
415
ether_DescriptorRead(struct fdescriptor *d, struct bundle *bundle,
usr.sbin/ppp/ether.c
418
struct physical *p = descriptor2physical(d);
usr.sbin/ppp/ether.c
430
if (physical_IsSet(d, fdset))
usr.sbin/ppp/ether.c
431
physical_DescriptorRead(d, bundle, fdset);
usr.sbin/ppp/mp.c
1041
mpserver_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w, fd_set *e,
usr.sbin/ppp/mp.c
1044
struct mpserver *s = descriptor2mpserver(d);
usr.sbin/ppp/mp.c
1071
mpserver_IsSet(struct fdescriptor *d, const fd_set *fdset)
usr.sbin/ppp/mp.c
1073
struct mpserver *s = descriptor2mpserver(d);
usr.sbin/ppp/mp.c
1078
mpserver_Read(struct fdescriptor *d, struct bundle *bundle,
usr.sbin/ppp/mp.c
1081
struct mpserver *s = descriptor2mpserver(d);
usr.sbin/ppp/mp.c
1087
mpserver_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused,
usr.sbin/ppp/mp.h
124
#define descriptor2mpserver(d) \
usr.sbin/ppp/mp.h
125
((d)->type == MPSERVER_DESCRIPTOR ? (struct mpserver *)(d) : NULL)
usr.sbin/ppp/netgraph.c
104
#define device2ng(d) ((d)->type == NG_DEVICE ? (struct ngdevice *)d : NULL)
usr.sbin/ppp/netgraph.c
289
ng_device2iov(struct device *d, struct iovec *iov, int *niov,
usr.sbin/ppp/netgraph.c
292
struct ngdevice *dev = device2ng(d);
usr.sbin/ppp/netgraph.c
295
iov[*niov].iov_base = realloc(d, sz);
usr.sbin/ppp/netgraph.c
360
ng_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w, fd_set *e, int *n)
usr.sbin/ppp/netgraph.c
362
struct physical *p = descriptor2physical(d);
usr.sbin/ppp/netgraph.c
378
result = physical_doUpdateSet(d, r, w, e, n, 0);
usr.sbin/ppp/netgraph.c
386
ng_IsSet(struct fdescriptor *d, const fd_set *fdset)
usr.sbin/ppp/netgraph.c
388
struct physical *p = descriptor2physical(d);
usr.sbin/ppp/netgraph.c
393
result += physical_IsSet(d, fdset);
usr.sbin/ppp/netgraph.c
399
ng_DescriptorRead(struct fdescriptor *d, struct bundle *bundle,
usr.sbin/ppp/netgraph.c
402
struct physical *p = descriptor2physical(d);
usr.sbin/ppp/netgraph.c
408
if (physical_IsSet(d, fdset))
usr.sbin/ppp/netgraph.c
409
physical_DescriptorRead(d, bundle, fdset);
usr.sbin/ppp/physical.c
137
physical_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w, fd_set *e,
usr.sbin/ppp/physical.c
140
return physical_doUpdateSet(d, r, w, e, n, 0);
usr.sbin/ppp/physical.c
384
physical_DescriptorWrite(struct fdescriptor *d, struct bundle *bundle __unused,
usr.sbin/ppp/physical.c
387
struct physical *p = descriptor2physical(d);
usr.sbin/ppp/physical.c
516
physical_DescriptorRead(struct fdescriptor *d, struct bundle *bundle,
usr.sbin/ppp/physical.c
519
struct physical *p = descriptor2physical(d);
usr.sbin/ppp/physical.c
823
physical_doUpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w, fd_set *e,
usr.sbin/ppp/physical.c
826
struct physical *p = descriptor2physical(d);
usr.sbin/ppp/physical.c
885
physical_IsSet(struct fdescriptor *d, const fd_set *fdset)
usr.sbin/ppp/physical.c
887
struct physical *p = descriptor2physical(d);
usr.sbin/ppp/physical.h
121
#define descriptor2physical(d) \
usr.sbin/ppp/physical.h
122
((d)->type == PHYSICAL_DESCRIPTOR ? field2phys(d, desc) : NULL)
usr.sbin/ppp/prompt.c
133
prompt_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w __unused, fd_set *e, int *n)
usr.sbin/ppp/prompt.c
135
struct prompt *p = descriptor2prompt(d);
usr.sbin/ppp/prompt.c
164
prompt_IsSet(struct fdescriptor *d, const fd_set *fdset)
usr.sbin/ppp/prompt.c
166
struct prompt *p = descriptor2prompt(d);
usr.sbin/ppp/prompt.c
183
prompt_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset __unused)
usr.sbin/ppp/prompt.c
185
struct prompt *p = descriptor2prompt(d);
usr.sbin/ppp/prompt.c
304
prompt_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused, const fd_set *fdset __unused)
usr.sbin/ppp/prompt.h
66
#define descriptor2prompt(d) \
usr.sbin/ppp/prompt.h
67
((d)->type == PROMPT_DESCRIPTOR ? (struct prompt *)(d) : NULL)
usr.sbin/ppp/radius.c
562
radius_Read(struct fdescriptor *d, struct bundle *bundle __unused, const fd_set *fdset __unused)
usr.sbin/ppp/radius.c
564
radius_Continue(descriptor2radius(d), 1);
usr.sbin/ppp/radius.c
571
radius_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w __unused, fd_set *e __unused, int *n)
usr.sbin/ppp/radius.c
573
struct radius *rad = descriptor2radius(d);
usr.sbin/ppp/radius.c
590
radius_IsSet(struct fdescriptor *d, const fd_set *fdset)
usr.sbin/ppp/radius.c
592
struct radius *r = descriptor2radius(d);
usr.sbin/ppp/radius.c
601
radius_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused, const fd_set *fdset __unused)
usr.sbin/ppp/radius.h
78
#define descriptor2radius(d) \
usr.sbin/ppp/radius.h
79
((d)->type == RADIUS_DESCRIPTOR ? (struct radius *)(d) : NULL)
usr.sbin/ppp/server.c
196
server_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused, const fd_set *fdset __unused)
usr.sbin/ppp/server.c
52
server_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w, fd_set *e, int *n)
usr.sbin/ppp/server.c
54
struct server *s = descriptor2server(d);
usr.sbin/ppp/server.c
74
server_IsSet(struct fdescriptor *d, const fd_set *fdset)
usr.sbin/ppp/server.c
76
struct server *s = descriptor2server(d);
usr.sbin/ppp/server.c
90
server_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset)
usr.sbin/ppp/server.c
92
struct server *s = descriptor2server(d);
usr.sbin/ppp/server.h
53
#define descriptor2server(d) \
usr.sbin/ppp/server.h
54
((d)->type == SERVER_DESCRIPTOR ? (struct server *)(d) : NULL)
usr.sbin/ppp/tty.c
112
#define device2tty(d) ((d)->type == TTY_DEVICE ? (struct ttydevice *)d : NULL)
usr.sbin/ppp/tty.c
583
tty_device2iov(struct device *d, struct iovec *iov, int *niov,
usr.sbin/ppp/tty.c
586
struct ttydevice *dev = device2tty(d);
usr.sbin/ppp/tty.c
589
iov[*niov].iov_base = realloc(d, sz);
usr.sbin/ppp/udp.c
141
udp_device2iov(struct device *d, struct iovec *iov, int *niov,
usr.sbin/ppp/udp.c
146
iov[*niov].iov_base = realloc(d, sz);
usr.sbin/ppp/udp.c
75
#define device2udp(d) ((d)->type == UDP_DEVICE ? (struct udpdevice *)d : NULL)
usr.sbin/pw/cpdir.c
120
closedir(d);
usr.sbin/pw/cpdir.c
64
DIR *d = opendir(skel);
usr.sbin/pw/cpdir.c
66
if (d != NULL) {
usr.sbin/pw/cpdir.c
69
while ((e = readdir(d)) != NULL) {
usr.sbin/pw/grupd.c
48
char * d = malloc(strlen(dir)+1);
usr.sbin/pw/grupd.c
49
if (d == NULL)
usr.sbin/pw/grupd.c
51
grpath = strcpy(d, dir);
usr.sbin/pw/pw_user.c
1217
DIR *d = opendir("/var/at/jobs");
usr.sbin/pw/pw_user.c
1219
if (d != NULL) {
usr.sbin/pw/pw_user.c
1222
while ((e = readdir(d)) != NULL) {
usr.sbin/pw/pw_user.c
1235
closedir(d);
usr.sbin/pw/pwupd.c
54
char * d = malloc(strlen(dir)+1);
usr.sbin/pw/pwupd.c
55
if (d == NULL)
usr.sbin/pw/pwupd.c
57
pwpath = strcpy(d, dir);
usr.sbin/pw/rm_r.c
43
DIR *d = opendir(dir);
usr.sbin/pw/rm_r.c
45
if (d != NULL) {
usr.sbin/pw/rm_r.c
50
while ((e = readdir(d)) != NULL) {
usr.sbin/pw/rm_r.c
64
closedir(d);
usr.sbin/rarpd/rarpd.c
544
DIR *d;
usr.sbin/rarpd/rarpd.c
553
if ((d = dd) != NULL)
usr.sbin/rarpd/rarpd.c
554
rewinddir(d);
usr.sbin/rarpd/rarpd.c
560
d = opendir(".");
usr.sbin/rarpd/rarpd.c
561
if (d == NULL) {
usr.sbin/rarpd/rarpd.c
565
dd = d;
usr.sbin/rarpd/rarpd.c
567
while ((dent = readdir(d)) != NULL)
usr.sbin/rrenumd/parser.y
596
int d, h, m, s;
usr.sbin/rrenumd/parser.y
598
d = $1 * 24 * 60 * 60;
usr.sbin/rrenumd/parser.y
602
$$ = d + h + m + s;
usr.sbin/uefisign/uefisign.c
238
PKCS7_set0_type_other(pkcs7->d.sign->contents, nid, t);
usr.sbin/vidcontrol/vidcontrol.c
212
openguess(const char *a[], const char *b[], const char *c[], const char *d[], char **name)
usr.sbin/vidcontrol/vidcontrol.c
220
for (l = 0; d[l] != NULL; l++) {
usr.sbin/vidcontrol/vidcontrol.c
222
a[i], b[j], c[k], d[l]);
usr.sbin/vidcontrol/vidcontrol.c
253
const char *d[] = {"", NULL};
usr.sbin/vidcontrol/vidcontrol.c
255
fd = openguess(a, b, c, d, &name);
usr.sbin/vidcontrol/vidcontrol.c
362
const char *d[] = {"", ".fnt", NULL};
usr.sbin/vidcontrol/vidcontrol.c
383
fd = openguess(a, b, c, d, &name);
usr.sbin/ypbind/ypbind.c
525
int d = 0, a = 0;
usr.sbin/ypbind/ypbind.c
529
if ((d = read(READFD, &buf, sizeof(buf))) <= 0)
usr.sbin/ypbind/ypbind.c
539
if (d > 0 && a > 0)